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;i0?Pe.bottom-Ye:0,Ze))));var Me=0,Ce=0;if(r._shiftPusher&&(Me=Math.max(Ze,Pe.height>0?Ee==="l"?Ye-Pe.left:Pe.right-Ye:0),r.title.text!==s._dfltTitle[f]&&(Ce=(r._titleStandoff||0)+(r._titleScoot||0),Ee==="l"&&(Ce+=b8(r))),r._fullDepth=Math.max(Me,Ce)),r.automargin){Be={x:0,y:0,r:0,l:0,t:0,b:0};var sr=[0,1],tr=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Ee==="b"?Be[Ee]=r._depth:(Be[Ee]=r._depth=Math.max(Pe.width>0?Ye-Pe.top:0,Ze),sr.reverse()),Pe.width>0){var De=Pe.right-(r._offset+r._length);De>0&&(Be.xr=1,Be.r=De);var Le=r._offset-Pe.left;Le>0&&(Be.xl=0,Be.l=Le)}}else if(Ee==="l"?(r._depth=Math.max(Pe.height>0?Ye-Pe.left:0,Ze),Be[Ee]=r._depth-tr):(r._depth=Math.max(Pe.height>0?Pe.right-Ye:0,Ze),Be[Ee]=r._depth+tr,sr.reverse()),Pe.height>0){var Ue=Pe.bottom-(r._offset+r._length);Ue>0&&(Be.yb=0,Be.b=Ue);var Xe=r._offset-Pe.top;Xe>0&&(Be.yt=1,Be.t=Xe)}Be[v]=r.anchor==="free"?r.position:r._anchorAxis.domain[sr[0]],r.title.text!==s._dfltTitle[f]&&(Be[Ee]+=b8(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Oe={x:0,y:0,r:0,l:0,t:0,b:0},Oe[ze]=r.linewidth,r.mirror&&r.mirror!==!0&&(Oe[ze]+=Ze),r.mirror===!0||r.mirror==="ticks"?Oe[v]=r._anchorAxis.domain[sr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Oe[v]=[r._counterDomainMin,r._counterDomainMax][sr[1]]))}Fe&&(ne=vf.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(g8(Be,r.automargin),g8(Oe,r.automargin)),zs.autoMargin(e,Zm(r),Be),zs.autoMargin(e,C8(r),Oe),zs.autoMargin(e,L8(r),ne)}),br.syncOrAsync(ye)}};function g8(e,r){if(e){var t=Object.keys(c8).reduce(function(a,n){return r.indexOf(n)!==-1&&c8[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function OG(e,r){var t=[],a,n=function(i,l){var o=i.xbnd[l];o!==null&&t.push(br.extendFlat({},i,{x:o}))};if(r.length){for(a=0;ae.range[1],o=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!o;if(t){var u=l?-1:1;t=t*u}if(a){var f=e.side,v=o&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*v}return e._id.charAt(0)==="x"?function(h){return Ns(n+e._offset+e.l2p(Ym(h))+t,i+a)}:function(h){return Ns(i+a,n+e._offset+e.l2p(Ym(h))+t)}};function Ym(e){return e.periodX!==void 0?e.periodX:e.x}function GG(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(m){return r.indexOf(m)!==-1},n=a("top"),i=a("left"),l=a("right"),o=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(o||i||n||l);if(!u&&!s)return[0,0];var f=e.side,v=u?(e.tickwidth||0)/2:0,h=q0,d=e.tickfont?e.tickfont.size:12;return(o||n)&&(v+=d*xo,h+=(e.linewidth||0)/2),(i||l)&&(v+=(e.linewidth||0)/2,h+=q0),s&&f==="top"&&(h-=d*(1-xo)),(i||n)&&(v=-v),(f==="bottom"||f==="right")&&(h=-h),[u?v:0,s?h:0]}We.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,l=e._id.charAt(0),o=(e.linewidth||1)/2;return l==="x"?"M0,"+(r+o*t)+"v"+i*t:"M"+(r+o*t)+",0h"+i*t};We.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(I){return a.indexOf(I)!==-1},l=i("top"),o=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||o||l||s),v=i("inside"),h=a==="inside"&&e.ticks==="inside"||!v&&e.ticks==="outside"&&n!=="boundaries",d=0,m=0,g=h?e.ticklen:0;if(v?g*=-1:f&&(g=0),h&&(d+=g,t)){var y=br.deg2rad(t);d=g*Math.cos(y)+1,m=g*Math.sin(y)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(v?-1:1);var _={labelStandoff:d,labelShift:m},w,T,b,A,C=0,k=e.side,q=e._id.charAt(0),D=e.tickangle,R;if(q==="x")R=!v&&k==="bottom"||v&&k==="top",A=R?1:-1,v&&(A*=-1),w=m*A,T=r+d*A,b=R?1:-.2,Math.abs(D)===90&&(v?b+=cf:D===-90&&k==="bottom"?b=xo:D===90&&k==="top"?b=cf:b=.5,C=cf/2*(D/90)),_.xFn=function(I){return I.dx+w+C*I.fontSize},_.yFn=function(I){return I.dy+T+I.fontSize*b},_.anchorFn=function(I,O){if(f){if(o)return"end";if(s)return"start"}return!zt(O)||O===0||O===180?"middle":O*A<0!==v?"end":"start"},_.heightFn=function(I,O,X){return O<-60||O>60?-.5*X:e.side==="top"!==v?-X:0};else if(q==="y"){if(R=!v&&k==="left"||v&&k==="right",A=R?1:-1,v&&(A*=-1),w=d,T=m*A,b=0,!v&&Math.abs(D)===90&&(D===-90&&k==="left"||D===90&&k==="right"?b=xo:b=.5),v){var z=zt(D)?+D:0;if(z!==0){var F=br.deg2rad(z);C=Math.abs(Math.sin(F))*xo*A,b=0}}_.xFn=function(I){return I.dx+r-(w+I.fontSize*b)*A+C*I.fontSize},_.yFn=function(I){return I.dy+T+I.fontSize*cf},_.anchorFn=function(I,O){return zt(O)&&Math.abs(O)===90?"middle":R?"end":"start"},_.heightFn=function(I,O,X){return e.side==="right"&&(O*=-1),O<-30?-X:O<30?-.5*X:0}}return _};function R0(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}We.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(r.ticks?t.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,R0);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(l){return hf.stroke(Mn.select(this),l.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(l){return on.crispRound(e,l.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),z0(r,[x8]),i.attr("transform",t.transFn)};We.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(_){return _.minor}):[],l=r.showgrid?t.vals.filter(function(_){return!_.minor}):[],o=t.counterAxis;if(o&&We.shouldShowZeroLine(e,r,o))for(var s=r.tickmode==="array",u=0;u=0;m--){var g=m?h:d;if(g){var y=g.selectAll("path."+a).data(m?l:i,R0);y.exit().remove(),y.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(_){return hf.stroke(Mn.select(this),_.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(_){return on.dashStyle(_.minor?r.minor.griddash:r.griddash,_.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(_){return(_.minor?v:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}z0(r,[Om,Bm])}};We.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=We.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(l,o){return _G(l.id,o.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(hf.stroke,r.zerolinecolor||hf.defaultLine).style("stroke-width",on.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),z0(r,[Hm])};We.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",l=t.cls||n+"tick",o=t.vals.filter(function(G){return G.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[l],v=t.layer.selectAll("g."+l).data(r.showticklabels?o:[],R0),h=[];v.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(G){var Q=Mn.select(this),K=e._promises.length;Q.call(go.positionText,s.xFn(G),s.yFn(G)).call(on.font,{family:G.font,size:G.fontSize,color:G.fontColor,weight:G.fontWeight,style:G.fontStyle,variant:G.fontVariant,textcase:G.fontTextcase,lineposition:G.fontLineposition,shadow:G.fontShadow}).text(G.text).call(go.convertToTspans,e),e._promises[K]?h.push(e._promises.pop().then(function(){d(Q,u)})):d(Q,u)}),z0(r,[f8]),v.exit().remove(),t.repositionOnUpdate&&v.each(function(G){Mn.select(this).select("text").call(go.positionText,s.xFn(G),s.yFn(G))});function d(G,Q){G.each(function(K){var ie=Mn.select(this),de=ie.select(".text-math-group"),pe=s.anchorFn(K,Q),Ae=t.transFn.call(ie.node(),K)+(zt(Q)&&+Q!=0?" rotate("+Q+","+s.xFn(K)+","+(s.yFn(K)-K.fontSize/2)+")":""),ee=go.lineCount(ie),ke=pf*K.fontSize,ve=s.heightFn(K,zt(Q)?+Q:0,(ee-1)*ke);if(ve&&(Ae+=Ns(0,ve)),de.empty()){var be=ie.select("text");be.attr({transform:Ae,"text-anchor":pe}),be.style("opacity",1),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var se=on.bBox(de.node()).width,ge=se*{end:-.5,start:.5}[pe];de.attr("transform",Ae+Ns(ge,0))}})}r._adjustTickLabelsOverflow=function(){var G=r.ticklabeloverflow;if(!(!G||G==="allow")){var Q=G.indexOf("hide")!==-1,K=r._id.charAt(0)==="x",ie=0,de=K?e._fullLayout.width:e._fullLayout.height;if(G.indexOf("domain")!==-1){var pe=br.simpleMap(r.range,r.r2l);ie=r.l2p(pe[0])+r._offset,de=r.l2p(pe[1])+r._offset}var Ae=Math.min(ie,de),ee=Math.max(ie,de),ke=r.side,ve=1/0,be=-1/0;v.each(function(re){var U=Mn.select(this),me=U.select(".text-math-group");if(me.empty()){var we=on.bBox(U.node()),ye=0;K?(we.right>ee||we.leftee||we.top+(r.tickangle?0:re.fontSize/4)r["_visibleLabelMin_"+pe._id]?U.style("display","none"):ee.K==="tick"&&!Ae&&U.style("display",null)})})})})},d(v,f+1?f:u);function m(){return h.length&&Promise.all(h)}var g=null;function y(){if(d(v,u),o.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){g=r.autotickangles[0];var G=0,Q=[],K,ie=1;v.each(function(Be){G=Math.max(G,Be.fontSize);var Oe=r.l2p(Be.x),ne=Um(this),Me=on.bBox(ne.node());ie=Math.max(ie,go.lineCount(ne)),Q.push({top:0,bottom:10,height:10,left:Oe-Me.width/2,right:Oe+Me.width/2+2,width:Me.width+2})});var de=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,pe=o.length,Ae=Math.abs((o[pe-1].x-o[0].x)*r._m)/(pe-1),ee=de?Ae/2:Ae,ke=de?r.ticklen:G*1.25*ie,ve=Math.sqrt(Math.pow(ee,2)+Math.pow(ke,2)),be=ee/ve,se=r.autotickangles.map(function(Be){return Be*Math.PI/180}),ge=se.find(function(Be){return Math.abs(Math.cos(Be))<=be});ge===void 0&&(ge=se.reduce(function(Be,Oe){return Math.abs(Math.cos(Be))J*X&&(F=X,D[q]=R[q]=I[q])}var Y=Math.abs(F-z);Y-A>0?(Y-=A,A*=1+A/Y):A=0,r._id.charAt(0)!=="y"&&(A=-A),D[k]=T.p2r(T.r2p(R[k])+C*A),T.autorange==="min"||T.autorange==="max reversed"?(D[0]=null,T._rangeInitial0=void 0,T._rangeInitial1=void 0):(T.autorange==="max"||T.autorange==="min reversed")&&(D[1]=null,T._rangeInitial0=void 0,T._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[T._name+".range"]=D}var H=br.syncOrAsync(_);return H&&H.then&&e._promises.push(H),H};function VG(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,R0);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(hf.stroke,r.dividercolor).style("stroke-width",on.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}We.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function b8(e){var r=e.title.font.size,t=(e.title.text.match(go.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(xo+t*pf):t?r*(t+1)*pf:r}function WG(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,l,o=(r.title.text.match(go.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?l=r._depth+r.title.standoff+i*xo:(r.side==="top"||r.side==="left")&&(l=r._depth+r.title.standoff+i*(cf+o*pf));else{var s=yf(r);if(r.type==="multicategory")l=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),l=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?l+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):l+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=We.getPxPosition(e,r),v,h,d;n==="x"?(h=r._offset+r._length/2,d=r.side==="top"?f-l:f+l):(d=r._offset+r._length/2,h=r.side==="right"?f+l:f-l,v={rotate:"-90",offset:0});var m;if(r.type!=="multicategory"){var g=r._selections[r._id+"tick"];if(m={selection:g,side:r.side},g&&g.node()&&g.node().parentNode){var y=on.getTranslate(g.node().parentNode);m.offsetLeft=y.x,m.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=l,vG.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:m,transform:v,attributes:{x:h,y:d,"text-anchor":"middle"}})}We.shouldShowZeroLine=function(e,r,t){var a=br.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===E0)&&(S8(r,0)||!ZG(e,r,t,a)||XG(e,r))};We.clipEnds=function(e,r){return r.filter(function(t){return S8(e,t.x)})};function S8(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=gG:/%L/.test(r)?e>=yG:/%[SX]/.test(r)?e>=L0:/%M/.test(r)?e>=df:/%[HI]/.test(r)?e>=Ti:/%p/.test(r)?e>=_l:/%[Aadejuwx]/.test(r)?e>=Ea:/%[UVW]/.test(r)?e>=sn:/%[Bbm]/.test(r)?e>=C0:/%[q]/.test(r)?e>=S0:/%[Yy]/.test(r)?e>=k0:!0}});var E8=Z((Joe,D8)=>{"use strict";D8.exports=function(r,t,a){var n,i;if(a){var l=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[l?1:0],i=a[l?0:1]}var o=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);o===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var Jm=Z((Koe,P8)=>{"use strict";var eV=E8();P8.exports=function(r,t,a,n){var i=t._template||{},l=t.type||i.type||"-";a("minallowed"),a("maxallowed");var o=a("range");if(!o){var s;!n.noInsiderange&&l!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(o=a("range",s)))}var u=t.getAutorangeDflt(o,n),f=a("autorange",u),v;o&&(o[0]===null&&o[1]===null||(o[0]===null||o[1]===null)&&(f==="reversed"||f===!0)||o[0]!==null&&(f==="min"||f==="max reversed")||o[1]!==null&&(f==="max"||f==="min reversed"))&&(o=void 0,delete t.range,t.autorange=!0,v=!0),v||(u=t.getAutorangeDflt(o,n),f=a("autorange",u)),f&&(eV(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var z8=Z((Qoe,R8)=>{var rV={left:0,top:0};R8.exports=tV;function tV(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=aV(r);return t[0]=a-i.left,t[1]=n-i.top,t}function aV(e){return e===window||e===document||e===document.body?rV:e.getBoundingClientRect()}});var Km=Z(($oe,N8)=>{"use strict";var nV=Ap();function iV(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}N8.exports=nV&&iV()});var I8=Z((joe,F8)=>{"use strict";F8.exports=function(r,t,a,n,i){var l=(r-a)/(n-a),o=l+t/(n-a),s=(l+o)/2;return i==="left"||i==="bottom"?l:i==="center"||i==="middle"?s:i==="right"||i==="top"?o:l<2/3-s?l:o>4/3-s?o:s}});var B8=Z((ese,O8)=>{"use strict";var H8=Ie(),lV=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];O8.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=H8.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=H8.constrain(Math.floor(t*3),0,2),lV[t][r]}});var U8=Z((rse,Y8)=>{"use strict";var oV=$u(),sV=zv(),uV=Gu().getGraphDiv,fV=Yu(),Qm=Y8.exports={};Qm.wrapped=function(e,r,t){e=uV(e),e._fullLayout&&sV.clear(e._fullLayout._uid+fV.HOVERID),Qm.raw(e,r,t)};Qm.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&oV.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var Qn=Z((tse,Z8)=>{"use strict";var cV=z8(),$m=Sp(),vV=Km(),hV=Ie().removeElement,dV=da(),_o=Z8.exports={};_o.align=I8();_o.getCursor=B8();var V8=U8();_o.unhover=V8.wrapped;_o.unhoverRaw=V8.raw;_o.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,l,o,s,u,f,v,h,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,vV?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function m(T,b,A){return Math.abs(T)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var b;v.target===h?b=v:(b={target:h,srcElement:h,toElement:h},Object.keys(v).concat(Object.keys(v.__proto__)).forEach(A=>{var C=v[A];!b[A]&&typeof C!="function"&&(b[A]=C)})),r.clickFn&&r.clickFn(a,b),d||h.dispatchEvent(new MouseEvent("click",T))}t._dragging=!1,t._dragged=!1}};function W8(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}_o.coverSlip=W8;function G8(e){return cV(e.changedTouches?e.changedTouches[0]:e,document.body)}});var wl=Z((ase,X8)=>{"use strict";X8.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var Q8=Z((nse,K8)=>{"use strict";var jm=wl(),gf="data-savedcursor",J8="!!";K8.exports=function(r,t){var a=r.attr(gf);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var ey=ha(),pV=hi();$8.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:pV.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:ey({editType:"legend"}),grouptitlefont:ey({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:ey({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var F0=Z(N0=>{"use strict";N0.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};N0.isVertical=function(r){return r.orientation!=="h"};N0.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1}});var ny=Z((ose,j8)=>{"use strict";var ty=gr(),un=Ie(),mV=ct(),yV=Gn(),gV=ry(),bV=ds(),ay=F0();function xV(e,r,t,a){var n=r[e]||{},i=mV.newContainer(t,e);function l(Y,H){return un.coerce(n,i,gV,Y,H)}var o=un.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var s=l("visible");if(s){for(var u,f=function(Y,H){var G=u._input,Q=u;return un.coerce(G,Q,yV,Y,H)},v=t.font||{},h=un.coerceFont(l,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),d=0,m=!1,g="normal",y=(t.shapes||[]).filter(function(Y){return Y.showlegend}),_=a.concat(y).filter(function(Y){return e===(Y.legend||"legend")}),w=0;w<_.length;w++)if(u=_[w],!!u.visible){var T=u._isShape;(u.showlegend||u._dfltShowLegend&&!(u._module&&u._module.attributes&&u._module.attributes.showlegend&&u._module.attributes.showlegend.dflt===!1))&&(d++,u.showlegend&&(m=!0,(!T&&ty.traceIs(u,"pie-like")||u._input.showlegend===!0)&&d++),un.coerceFont(f,"legendgrouptitle.font",h)),(!T&&ty.traceIs(u,"bar")&&t.barmode==="stack"||["tonextx","tonexty"].indexOf(u.fill)!==-1)&&(g=ay.isGrouped({traceorder:g})?"grouped+reversed":"reversed"),u.legendgroup!==void 0&&u.legendgroup!==""&&(g=ay.isReversed({traceorder:g})?"reversed+grouped":"grouped")}var b=un.coerce(r,t,bV,"showlegend",m&&d>(e==="legend"?1:0));if(b===!1&&(t[e]=void 0),!(b===!1&&!n.uirevision)&&(l("uirevision",t.uirevision),b!==!1)){l("borderwidth");var A=l("orientation"),C=l("yref"),k=l("xref"),q=A==="h",D=C==="paper",R=k==="paper",z,F,I,O="left";q?(z=0,ty.getComponentMethod("rangeslider","isVisible")(r.xaxis)?D?(F=1.1,I="bottom"):(F=1,I="top"):D?(F=-.1,I="top"):(F=0,I="bottom")):(F=1,I="auto",R?z=1.02:(z=1,O="right")),un.coerce(n,i,{x:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:z}},"x"),un.coerce(n,i,{y:{valType:"number",editType:"legend",min:D?-2:0,max:D?3:1,dflt:F}},"y"),l("traceorder",g),ay.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",O),l("yanchor",I),l("maxheight",q?.5:1),l("valign"),un.noneOrAll(n,i,["x","y"]);var X=l("title.text");if(X){l("title.side",q?"left":"top");var J=un.extendFlat({},o,{size:un.bigFont(o.size)});un.coerceFont(l,"title.font",J)}}}}j8.exports=function(r,t,a){var n,i=a.slice(),l=t.shapes;if(l)for(n=0;n{"use strict";var Is=gr(),ly=Ie(),_V=ly.pushUnique,iy=!0;ew.exports=function(r,t,a){var n=t._fullLayout;if(t._dragged||t._editing)return;var i=n.legend.itemclick,l=n.legend.itemdoubleclick,o=n.legend.groupclick;a===1&&i==="toggle"&&l==="toggleothers"&&iy&&t.data&&t._context.showTips&&ly.notifier(ly._(t,"Double-click on legend to isolate one trace"),"long"),iy=!1;var s;if(a===1?s=i:a===2&&(s=l),!s)return;var u=o==="togglegroup",f=n.hiddenlabels?n.hiddenlabels.slice():[],v=r.data()[0][0];if(v.groupTitle&&v.noClick)return;var h=t._fullData,d=(n.shapes||[]).filter(function(ze){return ze.showlegend}),m=h.concat(d),g=v.trace;g._isShape&&(g=g._fullInput);var y=g.legendgroup,_,w,T,b,A,C,k={},q=[],D=[],R=[];function z(ze,Ye){var Ze=q.indexOf(ze),Pe=k.visible;return Pe||(Pe=k.visible=[]),q.indexOf(ze)===-1&&(q.push(ze),Ze=q.length-1),Pe[Ze]=Ye,Ze}var F=(n.shapes||[]).map(function(ze){return ze._input}),I=!1;function O(ze,Ye){F[ze].visible=Ye,I=!0}function X(ze,Ye){if(!(v.groupTitle&&!u)){var Ze=ze._fullInput||ze,Pe=Ze._isShape,Be=Ze.index;Be===void 0&&(Be=Ze._index);var Oe=Ze.visible===!1?!1:Ye;Pe?O(Be,Oe):z(Be,Oe)}}var J=g.legend,Y=g._fullInput,H=Y&&Y._isShape;if(!H&&Is.traceIs(g,"pie-like")){var G=v.label,Q=f.indexOf(G);if(s==="toggle")Q===-1?f.push(G):f.splice(Q,1);else if(s==="toggleothers"){var K=Q!==-1,ie=[];for(_=0;_{"use strict";tw.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var iw=Z((fse,nw)=>{"use strict";var aw=gr(),sy=F0();nw.exports=function(r,t,a){var n=t._inHover,i=sy.isGrouped(t),l=sy.isReversed(t),o={},s=[],u=!1,f={},v=0,h=0,d,m;function g(Y,H,G){if(t.visible!==!1&&!(a&&Y!==t._id))if(H===""||!sy.isGrouped(t)){var Q="~~i"+v;s.push(Q),o[Q]=[G],v++}else s.indexOf(H)===-1?(s.push(H),u=!0,o[H]=[G]):o[H].push(G)}for(d=0;dR&&(D=R)}k[d][0]._groupMinRank=D,k[d][0]._preGroupSort=d}var z=function(Y,H){return Y[0]._groupMinRank-H[0]._groupMinRank||Y[0]._preGroupSort-H[0]._preGroupSort},F=function(Y,H){return Y.trace.legendrank-H.trace.legendrank||Y._preSort-H._preSort};for(k.forEach(function(Y,H){Y[0]._preGroupSort=H}),k.sort(z),d=0;d{"use strict";var I0=Ie();function lw(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}wo.formatPiePercent=function(r,t){var a=lw((r*100).toPrecision(3));return I0.numSeparate(a,t)+"%"};wo.formatPieValue=function(r,t){var a=lw(r.toPrecision(10));return I0.numSeparate(a,t)};wo.getFirstFilled=function(r,t){if(I0.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var wV=at(),TV=Er();ow.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?wV.pointStyle(r,a,n,t):TV.fill(r,t.color)}});var O0=Z((hse,cw)=>{"use strict";var uw=Er(),fw=H0().castOption,MV=sw();cw.exports=function(r,t,a,n){var i=a.marker.line,l=fw(i.color,t.pts)||uw.defaultLine,o=fw(i.width,t.pts)||0;r.call(MV,t,a,n).style("stroke-width",o).call(uw.stroke,l)}});var vy=Z((dse,yw)=>{"use strict";var Pa=Ir(),uy=gr(),wa=Ie(),vw=wa.strTranslate,fn=at(),An=Er(),fy=Tn().extractOpts,B0=ln(),AV=O0(),kV=H0().castOption,SV=oy(),hw=12,dw=5,To=2,CV=10,Hs=5;yw.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",l=a.itemwidth,o=(l+SV.itemGap*2)/2,s=vw(o,0),u=function(k,q,D,R){var z;if(k+1)z=k;else if(q&&q.width>0)z=q.width;else return 0;return i?R:Math.min(z,D)};r.each(function(k){var q=Pa.select(this),D=wa.ensureSingle(q,"g","layers");D.style("opacity",k[0].trace.opacity);var R=a.indentation,z=a.valign,F=k[0].lineHeight,I=k[0].height;if(z==="middle"&&R===0||!F||!I)D.attr("transform",null);else{var O={top:1,bottom:-1}[z],X=O*(.5*(F-I+3))||0,J=a.indentation;D.attr("transform",vw(J,X))}var Y=D.selectAll("g.legendfill").data([k]);Y.enter().append("g").classed("legendfill",!0);var H=D.selectAll("g.legendlines").data([k]);H.enter().append("g").classed("legendlines",!0);var G=D.selectAll("g.legendsymbols").data([k]);G.enter().append("g").classed("legendsymbols",!0),G.selectAll("g.legendpoints").data([k]).enter().append("g").classed("legendpoints",!0)}).each(C).each(h).each(m).each(d).each(y).each(b).each(T).each(f).each(v).each(_).each(w);function f(k){var q=pw(k),D=q.showFill,R=q.showLine,z=q.showGradientLine,F=q.showGradientFill,I=q.anyFill,O=q.anyLine,X=k[0],J=X.trace,Y,H,G=fy(J),Q=G.colorscale,K=G.reversescale,ie=function(be){if(be.size())if(D)fn.fillGroupStyle(be,t,!0);else{var se="legendfill-"+J.uid;fn.gradient(be,t,se,cy(K),Q,"fill")}},de=function(be){if(be.size()){var se="legendline-"+J.uid;fn.lineGroupStyle(be),fn.gradient(be,t,se,cy(K),Q,"stroke")}},pe=B0.hasMarkers(J)||!I?"M5,0":O?"M5,-2":"M5,-3",Ae=Pa.select(this),ee=Ae.select(".legendfill").selectAll("path").data(D||F?[k]:[]);if(ee.enter().append("path").classed("js-fill",!0),ee.exit().remove(),ee.attr("d",pe+"h"+l+"v6h-"+l+"z").call(ie),R||z){var ke=u(void 0,J.line,CV,dw);H=wa.minExtend(J,{line:{width:ke}}),Y=[wa.minExtend(X,{trace:H})]}var ve=Ae.select(".legendlines").selectAll("path").data(R||z?[Y]:[]);ve.enter().append("path").classed("js-line",!0),ve.exit().remove(),ve.attr("d",pe+(z?"l"+l+",0.0001":"h"+l)).call(R?fn.lineGroupStyle:de)}function v(k){var q=pw(k),D=q.anyFill,R=q.anyLine,z=q.showLine,F=q.showMarker,I=k[0],O=I.trace,X=!F&&!R&&!D&&B0.hasText(O),J,Y;function H(ee,ke,ve,be){var se=wa.nestedProperty(O,ee).get(),ge=wa.isArrayOrTypedArray(se)&&ke?ke(se):se;if(i&&ge&&be!==void 0&&(ge=be),ve){if(geve[1])return ve[1]}return ge}function G(ee){return I._distinct&&I.index&&ee[I.index]?ee[I.index]:ee[0]}if(F||X||z){var Q={},K={};if(F){Q.mc=H("marker.color",G),Q.mx=H("marker.symbol",G),Q.mo=H("marker.opacity",wa.mean,[.2,1]),Q.mlc=H("marker.line.color",G),Q.mlw=H("marker.line.width",wa.mean,[0,5],To),K.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ie=H("marker.size",wa.mean,[2,16],hw);Q.ms=ie,K.marker.size=ie}z&&(K.line={width:H("line.width",G,[0,10],dw)}),X&&(Q.tx="Aa",Q.tp=H("textposition",G),Q.ts=10,Q.tc=H("textfont.color",G),Q.tf=H("textfont.family",G),Q.tw=H("textfont.weight",G),Q.ty=H("textfont.style",G),Q.tv=H("textfont.variant",G),Q.tC=H("textfont.textcase",G),Q.tE=H("textfont.lineposition",G),Q.tS=H("textfont.shadow",G)),J=[wa.minExtend(I,Q)],Y=wa.minExtend(O,K),Y.selectedpoints=null,Y.texttemplate=null}var de=Pa.select(this).select("g.legendpoints"),pe=de.selectAll("path.scatterpts").data(F?J:[]);pe.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),pe.exit().remove(),pe.call(fn.pointStyle,Y,t),F&&(J[0].mrc=3);var Ae=de.selectAll("g.pointtext").data(X?J:[]);Ae.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Ae.exit().remove(),Ae.selectAll("text").call(fn.textPointStyle,Y,t)}function h(k){var q=k[0].trace,D=q.type==="waterfall";if(k[0]._distinct&&D){var R=k[0].trace[k[0].dir].marker;return k[0].mc=R.color,k[0].mlw=R.line.width,k[0].mlc=R.line.color,g(k,this,"waterfall")}var z=[];q.visible&&D&&(z=k[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var F=Pa.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(z);F.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(I){var O=Pa.select(this),X=q[I[0]].marker,J=u(void 0,X.line,Hs,To);O.attr("d",I[1]).style("stroke-width",J+"px").call(An.fill,X.color),J&&O.call(An.stroke,X.line.color)})}function d(k){g(k,this)}function m(k){g(k,this,"funnel")}function g(k,q,D){var R=k[0].trace,z=R.marker||{},F=z.line||{},I=z.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",O=D?R.visible&&R.type===D:uy.traceIs(R,"bar"),X=Pa.select(q).select("g.legendpoints").selectAll("path.legend"+D).data(O?[k]:[]);X.enter().append("path").classed("legend"+D,!0).attr("d",I).attr("transform",s),X.exit().remove(),X.each(function(J){var Y=Pa.select(this),H=J[0],G=u(H.mlw,z.line,Hs,To);Y.style("stroke-width",G+"px");var Q=H.mcc;if(!a._inHover&&"mc"in H){var K=fy(z),ie=K.mid;ie===void 0&&(ie=(K.max+K.min)/2),Q=fn.tryColorscale(z,"")(ie)}var de=Q||H.mc||z.color,pe=z.pattern,Ae=fn.getPatternAttr,ee=pe&&(Ae(pe.shape,0,"")||Ae(pe.path,0,""));if(ee){var ke=Ae(pe.bgcolor,0,null),ve=Ae(pe.fgcolor,0,null),be=pe.fgopacity,se=mw(pe.size,8,10),ge=mw(pe.solidity,.5,1),B="legend-"+R.uid;Y.call(fn.pattern,"legend",t,B,ee,se,ge,Q,pe.fillmode,ke,ve,be)}else Y.call(An.fill,de);G&&An.stroke(Y,H.mlc||F.color)})}function y(k){var q=k[0].trace,D=Pa.select(this).select("g.legendpoints").selectAll("path.legendbox").data(q.visible&&uy.traceIs(q,"box-violin")?[k]:[]);D.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),D.exit().remove(),D.each(function(){var R=Pa.select(this);if((q.boxpoints==="all"||q.points==="all")&&An.opacity(q.fillcolor)===0&&An.opacity((q.line||{}).color)===0){var z=wa.minExtend(q,{marker:{size:i?hw:wa.constrain(q.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});D.call(fn.pointStyle,z,t)}else{var F=u(void 0,q.line,Hs,To);R.style("stroke-width",F+"px").call(An.fill,q.fillcolor),F&&An.stroke(R,q.line.color)}})}function _(k){var q=k[0].trace,D=Pa.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(q.visible&&q.type==="candlestick"?[k,k]:[]);D.enter().append("path").classed("legendcandle",!0).attr("d",function(R,z){return z?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(R,z){var F=Pa.select(this),I=q[z?"increasing":"decreasing"],O=u(void 0,I.line,Hs,To);F.style("stroke-width",O+"px").call(An.fill,I.fillcolor),O&&An.stroke(F,I.line.color)})}function w(k){var q=k[0].trace,D=Pa.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(q.visible&&q.type==="ohlc"?[k,k]:[]);D.enter().append("path").classed("legendohlc",!0).attr("d",function(R,z){return z?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(R,z){var F=Pa.select(this),I=q[z?"increasing":"decreasing"],O=u(void 0,I.line,Hs,To);F.style("fill","none").call(fn.dashLine,I.line.dash,O),O&&An.stroke(F,I.line.color)})}function T(k){A(k,this,"pie")}function b(k){A(k,this,"funnelarea")}function A(k,q,D){var R=k[0],z=R.trace,F=D?z.visible&&z.type===D:uy.traceIs(z,D),I=Pa.select(q).select("g.legendpoints").selectAll("path.legend"+D).data(F?[k]:[]);if(I.enter().append("path").classed("legend"+D,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),I.exit().remove(),I.size()){var O=z.marker||{},X=u(kV(O.line.width,R.pts),O.line,Hs,To),J="pieLike",Y=wa.minExtend(z,{marker:{line:{width:X}}},J),H=wa.minExtend(R,{trace:Y},J);AV(I,H,Y,t)}}function C(k){var q=k[0].trace,D,R=[];if(q.visible)switch(q.type){case"histogram2d":case"heatmap":R=[["M-15,-2V4H15V-2Z"]],D=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":R=[["M-6,-6V6H6V-6Z"]],D=!0;break;case"densitymapbox":case"densitymap":R=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],D="radial";break;case"cone":R=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],D=!1;break;case"streamtube":R=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],D=!1;break;case"surface":R=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],D=!0;break;case"mesh3d":R=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!1;break;case"volume":R=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!0;break;case"isosurface":R=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],D=!1;break}var z=Pa.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(R);z.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(F,I){var O=Pa.select(this),X=fy(q),J=X.colorscale,Y=X.reversescale,H=function(ie){if(ie.size()){var de="legendfill-"+q.uid;fn.gradient(ie,t,de,cy(Y,D==="radial"),J,"fill")}},G;if(J){if(!D){var K=J.length;G=I===0?J[Y?K-1:0][1]:I===1?J[Y?0:K-1][1]:J[Math.floor((K-1)/2)][1]}}else{var Q=q.vertexcolor||q.facecolor||q.color;G=wa.isArrayOrTypedArray(Q)?Q[I]||Q[0]:Q}O.attr("d",F[0]),G?O.call(An.fill,G):O.call(H)})}};function cy(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function pw(e){var r=e[0].trace,t=r.contours,a=B0.hasLines(r),n=B0.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",l=!1,o=!1;if(t){var s=t.coloring;s==="lines"?l=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(o=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:l,showGradientFill:o,anyLine:a||l,anyFill:i||o}}function mw(e,r,t){return e&&wa.isArrayOrTypedArray(e)?r:e>t?t:e}});var my=Z((pse,Sw)=>{"use strict";var Ka=Ir(),Nt=Ie(),dy=Pt(),Ys=gr(),gw=$u(),hy=Qn(),Ft=at(),U0=Er(),Mo=xa(),bw=rw(),Gt=oy(),py=Da(),Aw=py.LINE_SPACING,Bs=py.FROM_TL,xw=py.FROM_BR,_w=iw(),LV=vy(),ww=F0(),Os=1,qV=/^legend[0-9]*$/;Sw.exports=function(r,t){if(t)Tw(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Ka.select(this),f=u.attr("class"),v=f.split(" ")[0];v.match(qV)&&n.indexOf(v)===-1&&u.remove()});for(var l=0;l1)}var m=a.hiddenlabels||[];if(!o&&(!a.showlegend||!s.length))return l.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),dy.autoMargin(e,n);var g=Nt.ensureSingle(l,"g",n,function(q){o||q.attr("pointer-events","all")}),y=Nt.ensureSingleById(a._topdefs,"clipPath",i,function(q){q.append("rect")}),_=Nt.ensureSingle(g,"rect","bg",function(q){q.attr("shape-rendering","crispEdges")});_.call(U0.stroke,t.bordercolor).call(U0.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var w=Nt.ensureSingle(g,"g","scrollbox"),T=t.title;t._titleWidth=0,t._titleHeight=0;var b;T.text?(b=Nt.ensureSingle(w,"text",n+"titletext"),b.attr("text-anchor","start").call(Ft.font,T.font).text(T.text),G0(b,w,e,t,Os)):w.selectAll("."+n+"titletext").remove();var A=Nt.ensureSingle(g,"rect","scrollbar",function(q){q.attr(Gt.scrollBarEnterAttrs).call(U0.fill,Gt.scrollBarColor)}),C=w.selectAll("g.groups").data(s);C.enter().append("g").attr("class","groups"),C.exit().remove();var k=C.selectAll("g.traces").data(Nt.identity);k.enter().append("g").attr("class","traces"),k.exit().remove(),k.style("opacity",function(q){var D=q[0].trace;return Ys.traceIs(D,"pie-like")?m.indexOf(q[0].label)!==-1?.5:1:D.visible==="legendonly"?.5:1}).each(function(){Ka.select(this).call(EV,e,t)}).call(LV,e,t).each(function(){o||Ka.select(this).call(PV,e,n)}),Nt.syncOrAsync([dy.previousPromises,function(){return NV(e,C,k,t)},function(){var q=a._size,D=t.borderwidth,R=t.xref==="paper",z=t.yref==="paper";if(T.text&&DV(b,t,D),!o){var F,I;R?F=q.l+q.w*t.x-Bs[V0(t)]*t._width:F=a.width*t.x-Bs[V0(t)]*t._width,z?I=q.t+q.h*(1-t.y)-Bs[W0(t)]*t._effHeight:I=a.height*(1-t.y)-Bs[W0(t)]*t._effHeight;var O=FV(e,n,F,I);if(O)return;if(a.margin.autoexpand){var X=F,J=I;F=R?Nt.constrain(F,0,a.width-t._width):X,I=z?Nt.constrain(I,0,a.height-t._effHeight):J,F!==X&&Nt.log("Constrain "+n+".x to make legend fit inside graph"),I!==J&&Nt.log("Constrain "+n+".y to make legend fit inside graph")}Ft.setTranslate(g,F,I)}if(A.on(".drag",null),g.on("wheel",null),o||t._height<=t._maxHeight||e._context.staticPlot){var Y=t._effHeight;o&&(Y=t._height),_.attr({width:t._width-D,height:Y-D,x:D/2,y:D/2}),Ft.setTranslate(w,0,0),y.select("rect").attr({width:t._width-2*D,height:Y-2*D,x:D,y:D}),Ft.setClipUrl(w,i,e),Ft.setRect(A,0,0,0,0),delete t._scrollY}else{var H=Math.max(Gt.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),G=t._effHeight-H-2*Gt.scrollBarMargin,Q=t._height-t._effHeight,K=G/Q,ie=Math.min(t._scrollY||0,Q);_.attr({width:t._width-2*D+Gt.scrollBarWidth+Gt.scrollBarMargin,height:t._effHeight-D,x:D/2,y:D/2}),y.select("rect").attr({width:t._width-2*D+Gt.scrollBarWidth+Gt.scrollBarMargin,height:t._effHeight-2*D,x:D,y:D+ie}),Ft.setClipUrl(w,i,e),se(ie,H,K),g.on("wheel",function(){ie=Nt.constrain(t._scrollY+Ka.event.deltaY/G*Q,0,Q),se(ie,H,K),ie!==0&&ie!==Q&&Ka.event.preventDefault()});var de,pe,Ae,ee=function(me,we,ye){var Re=(ye-we)/K+me;return Nt.constrain(Re,0,Q)},ke=function(me,we,ye){var Re=(we-ye)/K+me;return Nt.constrain(Re,0,Q)},ve=Ka.behavior.drag().on("dragstart",function(){var me=Ka.event.sourceEvent;me.type==="touchstart"?de=me.changedTouches[0].clientY:de=me.clientY,Ae=ie}).on("drag",function(){var me=Ka.event.sourceEvent;me.buttons===2||me.ctrlKey||(me.type==="touchmove"?pe=me.changedTouches[0].clientY:pe=me.clientY,ie=ee(Ae,de,pe),se(ie,H,K))});A.call(ve);var be=Ka.behavior.drag().on("dragstart",function(){var me=Ka.event.sourceEvent;me.type==="touchstart"&&(de=me.changedTouches[0].clientY,Ae=ie)}).on("drag",function(){var me=Ka.event.sourceEvent;me.type==="touchmove"&&(pe=me.changedTouches[0].clientY,ie=ke(Ae,de,pe),se(ie,H,K))});w.call(be)}function se(me,we,ye){t._scrollY=e._fullLayout[n]._scrollY=me,Ft.setTranslate(w,0,-me),Ft.setRect(A,t._width,Gt.scrollBarMargin+me*ye,Gt.scrollBarWidth,we),y.select("rect").attr("y",D+me)}if(e._context.edits.legendPosition){var ge,B,re,U;g.classed("cursor-move",!0),hy.init({element:g.node(),gd:e,prepFn:function(me){if(me.target!==A.node()){var we=Ft.getTranslate(g);re=we.x,U=we.y}},moveFn:function(me,we){if(re!==void 0&&U!==void 0){var ye=re+me,Re=U+we;Ft.setTranslate(g,ye,Re),ge=hy.align(ye,t._width,q.l,q.l+q.w,t.xanchor),B=hy.align(Re+t._height,-t._height,q.t+q.h,q.t,t.yanchor)}},doneFn:function(){if(ge!==void 0&&B!==void 0){var me={};me[n+".x"]=ge,me[n+".y"]=B,Ys.call("_guiRelayout",e,me)}},clickFn:function(me,we){var ye=l.selectAll("g.traces").filter(function(){var Re=this.getBoundingClientRect();return we.clientX>=Re.left&&we.clientX<=Re.right&&we.clientY>=Re.top&&we.clientY<=Re.bottom});ye.size()>0&&kw(e,g,ye,me,we)}})}}],e)}}function Y0(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,l=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*l:t+(l||n)}function kw(e,r,t,a,n){var i=t.data()[0][0].trace,l={event:n,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(l.group=i._group),Ys.traceIs(i,"pie-like")&&(l.label=t.datum()[0].label);var o=gw.triggerHandler(e,"plotly_legendclick",l);if(a===1){if(o===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&bw(t,e,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var s=gw.triggerHandler(e,"plotly_legenddoubleclick",l);s!==!1&&o!==!1&&bw(t,e,a)}}function EV(e,r,t){var a=Z0(t),n=e.data()[0][0],i=n.trace,l=Ys.traceIs(i,"pie-like"),o=!t._inHover&&r._context.edits.legendText&&!l,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=l?n.label:i.name,i._meta&&(u=Nt.templateString(u,i._meta))));var v=Nt.ensureSingle(e,"text",a+"text");v.attr("text-anchor","start").call(Ft.font,f).text(o?Mw(u,s):u);var h=t.indentation+t.itemwidth+Gt.itemGap*2;Mo.positionText(v,h,0),o?v.call(Mo.makeEditable,{gd:r,text:u}).call(G0,e,r,t).on("edit",function(d){this.text(Mw(d,s)).call(G0,e,r,t);var m=n.trace._fullInput||{},g={};return g.name=d,m._isShape?Ys.call("_guiRelayout",r,"shapes["+i.index+"].name",g.name):Ys.call("_guiRestyle",r,g,i.index)}):G0(v,e,r,t)}function Mw(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function PV(e,r,t){var a=r._context.doubleClickDelay,n,i=1,l=Nt.ensureSingle(e,"rect",t+"toggle",function(o){r._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call(U0.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(l.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),kw(r,o,e,i,Ka.event)}}))}function G0(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),Mo.convertToTspans(e,t,function(){RV(r,t,a,n)})}function RV(e,r,t,a){var n=e.data()[0][0];if(!t._inHover&&n&&!n.trace.showlegend){e.remove();return}var i=e.select("g[class*=math-group]"),l=i.node(),o=Z0(t);t||(t=r._fullLayout[o]);var s=t.borderwidth,u;a===Os?u=t.title.font:n.groupTitle?u=n.groupTitle.font:u=t.font;var f=u.size*Aw,v,h;if(l){var d=Ft.bBox(l);v=d.height,h=d.width,a===Os?Ft.setTranslate(i,s,s+v*.75):Ft.setTranslate(i,0,v*.25)}else{var m="."+o+(a===Os?"title":"")+"text",g=e.select(m),y=Mo.lineCount(g),_=g.node();if(v=f*y,h=_?Ft.bBox(_).width:0,a===Os)t.title.side==="left"&&(h+=Gt.itemGap*2),Mo.positionText(g,s+Gt.titlePad,s+f);else{var w=Gt.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(w=Gt.itemGap,h-=t.indentation+t.itemwidth),Mo.positionText(g,w,-f*((y-1)/2-.3))}}a===Os?(t._titleWidth=h,t._titleHeight=v):(n.lineHeight=f,n.height=Math.max(v,16)+3,n.width=h)}function zV(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function NV(e,r,t,a){var n=e._fullLayout,i=Z0(a);a||(a=n[i]);var l=n._size,o=ww.isVertical(a),s=ww.isGrouped(a),u=a.entrywidthmode==="fraction",f=a.borderwidth,v=2*f,h=Gt.itemGap,d=a.indentation+a.itemwidth+h*2,m=2*(f+h),g=W0(a),y=a.y<0||a.y===0&&g==="top",_=a.y>1||a.y===1&&g==="bottom",w=a.tracegroupgap,T={},{maxheight:b,orientation:A,yref:C}=a,k=A==="v"&&C==="paper"?l.h:n.height;a._maxHeight=Math.max(b>1?b:b*k,30);var q=0;a._width=0,a._height=0;var D=zV(a);if(o)t.each(function(be){var se=be[0].height;Ft.setTranslate(this,f+D[0],f+D[1]+a._height+se/2+h),a._height+=se,a._width=Math.max(a._width,be[0].width)}),q=d+a._width,a._width+=h+d+v,a._height+=m,s&&(r.each(function(be,se){Ft.setTranslate(this,0,se*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var R=V0(a),z=a.x<0||a.x===0&&R==="right",F=a.x>1||a.x===1&&R==="left",I=_||y,O=n.width/2;a._maxWidth=Math.max(z?I&&R==="left"?l.l+l.w:O:F?I&&R==="right"?l.r+l.w:O:l.w,2*d);var X=0,J=0;t.each(function(be){var se=Y0(be,a,d);X=Math.max(X,se),J+=se}),q=null;var Y=0;if(s){var H=0,G=0,Q=0;r.each(function(){var be=0,se=0;Ka.select(this).selectAll("g.traces").each(function(B){var re=Y0(B,a,d),U=B[0].height;Ft.setTranslate(this,D[0],D[1]+f+h+U/2+se),se+=U,be=Math.max(be,re),T[B[0].trace.legendgroup]=be});var ge=be+h;G>0&&ge+f+G>a._maxWidth?(Y=Math.max(Y,G),G=0,Q+=H+w,H=se):H=Math.max(H,se),Ft.setTranslate(this,G,Q),G+=ge}),a._width=Math.max(Y,G)+f,a._height=Q+H+m}else{var K=t.size(),ie=J+v+(K-1)*h=a._maxWidth&&(Y=Math.max(Y,ee),pe=0,Ae+=de,a._height+=de,de=0),Ft.setTranslate(this,D[0]+f+pe,D[1]+f+Ae+se/2+h),ee=pe+ge+h,pe+=B,de=Math.max(de,se)}),ie?(a._width=pe+v,a._height=de+m):(a._width=Math.max(Y,ee)+v,a._height+=de+m)}}a._width=Math.ceil(Math.max(a._width+D[0],a._titleWidth+2*(f+Gt.titlePad))),a._height=Math.ceil(Math.max(a._height+D[1],a._titleHeight+2*(f+Gt.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var ke=e._context.edits,ve=ke.legendText||ke.legendPosition;t.each(function(be){var se=Ka.select(this).select("."+i+"toggle"),ge=be[0].height,B=be[0].trace.legendgroup,re=Y0(be,a,d);s&&B!==""&&(re=T[B]);var U=ve?d:q||re;!o&&!u&&(U+=h/2),Ft.setRect(se,0,-ge/2,U,ge)})}function FV(e,r,t,a){var n=e._fullLayout,i=n[r],l=V0(i),o=W0(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",v=i.x<.5?"l":"r",h={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return dy.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*Bs[l],r:i._width*xw[l],b:i._effHeight*xw[o],t:i._effHeight*Bs[o]});s?e._fullLayout._reservedMargin[r][f]=h[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][v]=h[v]:e._fullLayout._reservedMargin[r][f]=h[f]}function V0(e){return Nt.isRightAnchor(e)?"right":Nt.isCenterAnchor(e)?"center":"left"}function W0(e){return Nt.isBottomAnchor(e)?"bottom":Nt.isMiddleAnchor(e)?"middle":"top"}function Z0(e){return e._id||"legend"}});var xy=Z(by=>{"use strict";var Ao=Ir(),Gi=Hr(),Cw=bn(),Mt=Ie(),IV=Mt.pushUnique,yy=Mt.strTranslate,HV=Mt.strRotate,OV=$u(),kn=xa(),BV=Q8(),Mi=at(),Kt=Er(),X0=Qn(),Ai=dt(),YV=da().zindexSeparator,Gs=gr(),$n=bi(),ko=Yu(),UV=ny(),GV=my(),Nw=ko.YANGLE,gy=Math.PI*Nw/180,VV=1/Math.sin(gy),WV=Math.cos(gy),ZV=Math.sin(gy),gt=ko.HOVERARROWSIZE,Or=ko.HOVERTEXTPAD,Lw={box:!0,ohlc:!0,violin:!0,candlestick:!0},XV={scatter:!0,scattergl:!0,splom:!0};function qw(e,r){return e.distance-r.distance}by.hover=function(r,t,a,n){r=Mt.getGraphDiv(r);var i=t.target;Mt.throttle(r._fullLayout._uid+ko.HOVERID,ko.HOVERMINTIME,function(){JV(r,t,a,n,i)})};by.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=Bw(n),l=Yw(n),o=r.map(function(y){var _=y._x0||y.x0||y.x||0,w=y._x1||y.x1||y.x||0,T=y._y0||y.y0||y.y||0,b=y._y1||y.y1||y.y||0,A=y.eventData;if(A){var C=Math.min(_,w),k=Math.max(_,w),q=Math.min(T,b),D=Math.max(T,b),R=y.trace;if(Gs.traceIs(R,"gl3d")){var z=n._fullLayout[R.scene]._scene.container,F=z.offsetLeft,I=z.offsetTop;C+=F,k+=F,q+=I,D+=I}A.bbox={x0:C+l,x1:k+l,y0:q+i,y1:D+i},t.inOut_bbox&&t.inOut_bbox.push(A.bbox)}else A=!1;return{color:y.color||Kt.defaultLine,x0:y.x0||y.x||0,x1:y.x1||y.x||0,y0:y.y0||y.y||0,y1:y.y1||y.y||0,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:y.text,name:y.name,idealAlign:y.idealAlign,borderColor:y.borderColor,fontFamily:y.fontFamily,fontSize:y.fontSize,fontColor:y.fontColor,fontWeight:y.fontWeight,fontStyle:y.fontStyle,fontVariant:y.fontVariant,nameLength:y.nameLength,textAlign:y.textAlign,trace:y.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:y.hovertemplate||!1,hovertemplateLabels:y.hovertemplateLabels||!1,eventData:A}}),s=!1,u=Iw(o,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||Kt.background,container:Ao.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,v=5,h=0,d=0;f.sort(function(y,_){return y.y0-_.y0}).each(function(y,_){var w=y.y0-y.by/2;w-vk[0]._length||U<0||U>q[0]._length)return X0.unhoverRaw(e,r)}if(r.pointerX=re+k[0]._offset,r.pointerY=U+q[0]._offset,"xval"in r?J=$n.flat(i,r.xval):J=$n.p2c(k,re),"yval"in r?Y=$n.flat(i,r.yval):Y=$n.p2c(q,U),!Gi(J[0])||!Gi(Y[0]))return Mt.warn("Fx.hover failed",r,e),X0.unhoverRaw(e,r)}var ye=1/0;function Re(yr,lt){for(G=0;Gve&&(O.splice(0,ve),ye=O[0].distance),v&&I!==0&&O.length===0){ke.distance=I,ke.index=!1;var yt=K._module.hoverPoints(ke,Ae,ee,"closest",{hoverLayer:o._hoverlayer});if(yt&&(yt=yt.filter(function(nt){return nt.spikeDistance<=I})),yt&&yt.length){var Sa,aa=yt.filter(function(nt){return nt.xa.showspikes&&nt.xa.spikesnap!=="hovered data"});if(aa.length){var In=aa[0];Gi(In.x0)&&Gi(In.y0)&&(Sa=Ee(In),(!be.vLinePoint||be.vLinePoint.spikeDistance>Sa.spikeDistance)&&(be.vLinePoint=Sa))}var Hn=yt.filter(function(nt){return nt.ya.showspikes&&nt.ya.spikesnap!=="hovered data"});if(Hn.length){var Wt=Hn[0];Gi(Wt.x0)&&Gi(Wt.y0)&&(Sa=Ee(Wt),(!be.hLinePoint||be.hLinePoint.spikeDistance>Sa.spikeDistance)&&(be.hLinePoint=Sa))}}}}}Re();function Fe(yr,lt,Wr){for(var mt=null,Tt=1/0,ot,yt=0;yt0&&Math.abs(yr.distance)Le-1;lr--)cr(O[lr]);O=Ge,Pe()}var Ne=e._hoverdata,ae=[],oe=Bw(e),qe=Yw(e);for(H=0;H1||O.length>1)||h==="closest"&&se&&O.length>1,pn=Kt.combine(o.plot_bgcolor||Kt.background,o.paper_bgcolor),Ia=Iw(O,{gd:e,hovermode:h,rotateLabels:ra,bgColor:pn,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),ta=Ia.hoverLabels;if($n.isUnifiedHover(h)||(QV(ta,ra,o,Ia.commonLabelBoundingBox),Ow(ta,ra,o._invScaleX,o._invScaleY)),n&&n.tagName){var Ha=Gs.getComponentMethod("annotations","hasClickToShow")(e,ae);BV(Ao.select(n),Ha?"pointer":"")}!n||a||!eW(e,r,Ne)||(Ne&&e.emit("plotly_unhover",{event:r,points:Ne}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:k,yaxes:q,xvals:J,yvals:Y}))}function Fw(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var KV=/([\s\S]*)<\/extra>/;function Iw(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,l=r.bgColor,o=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||ko.HOVERFONT,v=r.fontSize||ko.HOVERFONTSIZE,h=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,m=r.fontVariant||a.font.variant,g=r.fontTextcase||a.font.textcase,y=r.fontLineposition||a.font.lineposition,_=r.fontShadow||a.font.shadow,w=e[0],T=w.xa,b=w.ya,A=n.charAt(0),C=A+"Label",k=w[C];if(k===void 0&&T.type==="multicategory")for(var q=0;qa.width-Ne&&(ae=a.width-Ne),sr.attr("d","M"+(Ke-ae)+",0L"+(Ke-ae+gt)+","+lr+gt+"H"+Ne+"v"+lr+(Or*2+He.height)+"H"+-Ne+"V"+lr+gt+"H"+(Ke-ae-gt)+"Z"),Ke=ae,G.minX=Ke-Ne,G.maxX=Ke+Ne,T.side==="top"?(G.minY=cr-(Or*2+He.height),G.maxY=cr-Or):(G.minY=cr+Or,G.maxY=cr+(Or*2+He.height))}else{var oe,qe,Se;b.side==="right"?(oe="start",qe=1,Se="",Ke=T._offset+T._length):(oe="end",qe=-1,Se="-",Ke=T._offset),cr=b._offset+(w.y0+w.y1)/2,tr.attr("text-anchor",oe),sr.attr("d","M0,0L"+Se+gt+","+gt+"V"+(Or+He.height/2)+"h"+Se+(Or*2+He.width)+"V-"+(Or+He.height/2)+"H"+Se+gt+"V-"+gt+"Z"),G.minY=cr-(Or+He.height/2),G.maxY=cr+(Or+He.height/2),b.side==="right"?(G.minX=Ke+gt,G.maxX=Ke+gt+(Or*2+He.width)):(G.minX=Ke-gt-(Or*2+He.width),G.maxX=Ke-gt);var ir=He.height/2,vr=R-He.top-ir,ur="clip"+a._uid+"commonlabel"+b._id,Mr;if(Ke=0?Oe=Ye:Ze+U=0?Oe=Ze:Pe+U=0?ne=Ee:ze+me=0?ne=ze:Be+me=0,(Ce.idealAlign==="top"||!Vr)&&Ct?(Se-=vr/2,Ce.anchor="end"):Vr?(Se+=vr/2,Ce.anchor="start"):Ce.anchor="middle",Ce.crossPos=Se;else{if(Ce.pos=Se,Vr=qe+ir/2+$r<=z,Ct=qe-ir/2-$r>=0,(Ce.idealAlign==="left"||!Vr)&&Ct)qe-=ir/2,Ce.anchor="end";else if(Vr)qe+=ir/2,Ce.anchor="start";else{Ce.anchor="middle";var ea=$r/2,ka=qe+ea-z,ra=qe-ea;ka>0&&(qe-=ka),ra<0&&(qe+=-ra)}Ce.crossPos=qe}cr.attr("text-anchor",Ce.anchor),Ne&&lr.attr("text-anchor",Ce.anchor),sr.attr("transform",yy(qe,Se)+(i?HV(Nw):""))}),{hoverLabels:Me,commonLabelBoundingBox:G}}function Dw(e,r,t,a,n,i){var l="",o="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Mt.templateString(e.name,e.trace._meta)),l=Rw(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(o+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(o+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(o+=(o?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?o=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(o=e.yLabel):e.yLabel===void 0?o=e.xLabel:o="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(o+=(o?"
":"")+e.text),e.extraText!==void 0&&(o+=(o?"
":"")+e.extraText),i&&o===""&&!e.hovertemplate&&(l===""&&i.remove(),o=l);var f=e.hovertemplate||!1;if(f){var v=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(v[s+"other"]=v[s+"Val"],v[s+"otherLabel"]=v[s+"Label"]),o=Mt.hovertemplateString(f,v,a._d3locale,e.eventData[0]||{},e.trace._meta),o=o.replace(KV,function(h,d){return l=Rw(d,e.nameLength),""})}return[o,l]}function QV(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",l=0,o=1,s=e.size(),u=new Array(s),f=0,v=a.minX,h=a.maxX,d=a.minY,m=a.maxY,g=function(J){return J*t._invScaleX},y=function(J){return J*t._invScaleY};e.each(function(J){var Y=J[n],H=J[i],G=Y._id.charAt(0)==="x",Q=Y.range;f===0&&Q&&Q[0]>Q[1]!==G&&(o=-1);var K=0,ie=G?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var de=Hw(J,r),pe=J.anchor,Ae=pe==="end"?-1:1,ee,ke;if(pe==="middle")ee=J.crossPos+(G?y(de.y-J.by/2):g(J.bx/2+J.tx2width/2)),ke=ee+(G?y(J.by):g(J.bx));else if(G)ee=J.crossPos+y(gt+de.y)-y(J.by/2-gt),ke=ee+y(J.by);else{var ve=g(Ae*gt+de.x),be=ve+g(Ae*J.bx);ee=J.crossPos+Math.min(ve,be),ke=J.crossPos+Math.max(ve,be)}G?d!==void 0&&m!==void 0&&Math.min(ke,m)-Math.max(ee,d)>1&&(H.side==="left"?(K=H._mainLinePosition,ie=t.width):ie=H._mainLinePosition):v!==void 0&&h!==void 0&&Math.min(ke,h)-Math.max(ee,v)>1&&(H.side==="top"?(K=H._mainLinePosition,ie=t.height):ie=H._mainLinePosition)}u[f++]=[{datum:J,traceIndex:J.trace.index,dp:0,pos:J.pos,posref:J.posref,size:J.by*(G?VV:1)/2,pmin:K,pmax:ie}]}),u.sort(function(J,Y){return J[0].posref-Y[0].posref||o*(Y[0].traceIndex-J[0].traceIndex)});var _,w,T,b,A,C,k;function q(J){var Y=J[0],H=J[J.length-1];if(w=Y.pmin-Y.pos-Y.dp+Y.size,T=H.pos+H.dp+H.size-Y.pmax,w>.01){for(A=J.length-1;A>=0;A--)J[A].dp+=w;_=!1}if(!(T<.01)){if(w<-.01){for(A=J.length-1;A>=0;A--)J[A].dp-=T;_=!1}if(_){var G=0;for(b=0;bY.pmax&&G++;for(b=J.length-1;b>=0&&!(G<=0);b--)C=J[b],C.pos>Y.pmax-1&&(C.del=!0,G--);for(b=0;b=0;A--)J[A].dp-=T;for(b=J.length-1;b>=0&&!(G<=0);b--)C=J[b],C.pos+C.dp+C.size>Y.pmax&&(C.del=!0,G--)}}}for(;!_&&l<=s;){for(l++,_=!0,b=0;b.01){for(A=R.length-1;A>=0;A--)R[A].dp+=w;for(D.push.apply(D,R),u.splice(b+1,1),k=0,A=D.length-1;A>=0;A--)k+=D[A].dp;for(T=k/D.length,A=D.length-1;A>=0;A--)D[A].dp-=T;_=!1}else b++}u.forEach(q)}for(b=u.length-1;b>=0;b--){var I=u[b];for(A=I.length-1;A>=0;A--){var O=I[A],X=O.datum;X.offset=O.dp,X.del=O.del}}}function Hw(e,r){var t=0,a=e.offset;return r&&(a*=-ZV,t=e.offset*WV),{x:t,y:a}}function $V(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(gt+Or),a=t+r*(e.txwidth+Or),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Or),{alignShift:r,textShiftX:t,text2ShiftX:a}}function Ow(e,r,t,a){var n=function(l){return l*t},i=function(l){return l*a};e.each(function(l){var o=Ao.select(this);if(l.del)return o.remove();var s=o.select("text.nums"),u=l.anchor,f=u==="end"?-1:1,v=$V(l),h=Hw(l,r),d=h.x,m=h.y,g=u==="middle";o.select("path").attr("d",g?"M-"+n(l.bx/2+l.tx2width/2)+","+i(m-l.by/2)+"h"+n(l.bx)+"v"+i(l.by)+"h-"+n(l.bx)+"Z":"M0,0L"+n(f*gt+d)+","+i(gt+m)+"v"+i(l.by/2-gt)+"h"+n(f*l.bx)+"v-"+i(l.by)+"H"+n(f*gt+d)+"V"+i(m-gt)+"Z");var y=d+v.textShiftX,_=m+l.ty0-l.by/2+Or,w=l.textAlign||"auto";w!=="auto"&&(w==="left"&&u!=="start"?(s.attr("text-anchor","start"),y=g?-l.bx/2-l.tx2width/2+Or:-l.bx-Or):w==="right"&&u!=="end"&&(s.attr("text-anchor","end"),y=g?l.bx/2-l.tx2width/2-Or:l.bx+Or)),s.call(kn.positionText,n(y),i(_)),l.tx2width&&(o.select("text.name").call(kn.positionText,n(v.text2ShiftX+v.alignShift*Or+d),i(m+l.ty0-l.by/2+Or)),o.select("rect").call(Mi.setRect,n(v.text2ShiftX+(v.alignShift-1)*l.tx2width/2+d),i(m-l.by/2-1),n(l.tx2width),i(l.by+2)))})}function jV(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function l(h){return h||Gi(h)&&h===0}var o=Array.isArray(t)?function(h,d){var m=Mt.castOption(n,t,h);return l(m)?m:Mt.extractOption({},a,"",d)}:function(h,d){return Mt.extractOption(i,a,h,d)};function s(h,d,m){var g=o(d,m);l(g)&&(e[h]=g)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Mt.constrain(e.x0,0,e.xa._length),e.x1=Mt.constrain(e.x1,0,e.xa._length),e.y0=Mt.constrain(e.y0,0,e.ya._length),e.y1=Mt.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Ai.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Ai.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=Ai.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Ai.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Ai.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Ai.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var v=e.hoverinfo||e.trace.hoverinfo;return v&&v!=="all"&&(v=Array.isArray(v)?v:v.split("+"),v.indexOf("x")===-1&&(e.xLabel=void 0),v.indexOf("y")===-1&&(e.yLabel=void 0),v.indexOf("z")===-1&&(e.zLabel=void 0),v.indexOf("text")===-1&&(e.text=void 0),v.indexOf("name")===-1&&(e.name=void 0)),e}function Ew(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,l=t.event,o=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||o)){var v=Kt.combine(n.plot_bgcolor,n.paper_bgcolor);if(o){var h=r.hLinePoint,d,m;u=h&&h.xa,f=h&&h.ya;var g=f.spikesnap;g==="cursor"?(d=l.pointerX,m=l.pointerY):(d=u._offset+h.x,m=f._offset+h.y);var y=Cw.readability(h.color,v)<1.5?Kt.contrast(v):h.color,_=f.spikemode,w=f.spikethickness,T=f.spikecolor||y,b=Ai.getPxPosition(e,f),A,C;if(_.indexOf("toaxis")!==-1||_.indexOf("across")!==-1){if(_.indexOf("toaxis")!==-1&&(A=b,C=d),_.indexOf("across")!==-1){var k=f._counterDomainMin,q=f._counterDomainMax;f.anchor==="free"&&(k=Math.min(k,f.position),q=Math.max(q,f.position)),A=i.l+k*i.w,C=i.l+q*i.w}a.insert("line",":first-child").attr({x1:A,x2:C,y1:m,y2:m,"stroke-width":w,stroke:T,"stroke-dasharray":Mi.dashStyle(f.spikedash,w)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:A,x2:C,y1:m,y2:m,"stroke-width":w+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}_.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?w:-w),cy:m,r:w,fill:T}).classed("spikeline",!0)}if(s){var D=r.vLinePoint,R,z;u=D&&D.xa,f=D&&D.ya;var F=u.spikesnap;F==="cursor"?(R=l.pointerX,z=l.pointerY):(R=u._offset+D.x,z=f._offset+D.y);var I=Cw.readability(D.color,v)<1.5?Kt.contrast(v):D.color,O=u.spikemode,X=u.spikethickness,J=u.spikecolor||I,Y=Ai.getPxPosition(e,u),H,G;if(O.indexOf("toaxis")!==-1||O.indexOf("across")!==-1){if(O.indexOf("toaxis")!==-1&&(H=Y,G=z),O.indexOf("across")!==-1){var Q=u._counterDomainMin,K=u._counterDomainMax;u.anchor==="free"&&(Q=Math.min(Q,u.position),K=Math.max(K,u.position)),H=i.t+(1-K)*i.h,G=i.t+(1-Q)*i.h}a.insert("line",":first-child").attr({x1:R,x2:R,y1:H,y2:G,"stroke-width":X,stroke:J,"stroke-dasharray":Mi.dashStyle(u.spikedash,X)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:R,x2:R,y1:H,y2:G,"stroke-width":X+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}O.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:R,cy:Y-(u.side!=="top"?X:-X),r:X,fill:J}).classed("spikeline",!0)}}}function eW(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers))return!0}return!1}function Pw(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function Rw(e,r){return kn.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function rW(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;l{"use strict";var tW=Ie(),aW=Er(),nW=bi().isUnifiedHover;Uw.exports=function(r,t,a,n){n=n||{};var i=t.legend;function l(o){n.font[o]||(n.font[o]=i?t.legend.font[o]:t.font[o])}t&&nW(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=aW.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),tW.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var Vw=Z((gse,Gw)=>{"use strict";var iW=Ie(),lW=J0(),oW=fs();Gw.exports=function(r,t){function a(n,i){return iW.coerce(r,t,oW,n,i)}lW(r,t,a)}});var Xw=Z((bse,Zw)=>{"use strict";var Ww=Ie(),sW=mv(),uW=J0();Zw.exports=function(r,t,a,n){function i(o,s){return Ww.coerce(r,t,sW,o,s)}var l=Ww.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),uW(r,t,i,l)}});var _y=Z((xse,Jw)=>{"use strict";var fW=Ie(),cW=fs();Jw.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:fW.coerce(r,t,cW,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var $w=Z((_se,Qw)=>{"use strict";var Kw=Ie(),vW=fs(),hW=_y(),dW=J0();Qw.exports=function(r,t){function a(f,v){return Kw.coerce(r,t,vW,f,v)}var n=hW(r,t);n&&(a("hoverdistance"),a("spikedistance"));var i=a("dragmode");i==="select"&&a("selectdirection");var l=t._has("mapbox"),o=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((l||o||s)&&u===1||(l||o)&&s&&u===2)&&(t.dragmode="pan"),dW(r,t,a),Kw.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var rT=Z((wse,eT)=>{"use strict";var wy=Ie(),jw=gr();eT.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return wy.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var mW=gr(),yW=xy().hover;tT.exports=function(r,t,a){var n=mW.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&yW(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var ki=Z((Mse,lT)=>{"use strict";var gW=Ir(),K0=Ie(),bW=Qn(),bf=bi(),nT=fs(),iT=xy();lT.exports={moduleType:"component",name:"fx",constants:Yu(),schema:{layout:nT},attributes:mv(),layoutAttributes:nT,supplyLayoutGlobalDefaults:Vw(),supplyDefaults:Xw(),supplyLayoutDefaults:$w(),calc:rT(),getDistanceFunction:bf.getDistanceFunction,getClosest:bf.getClosest,inbox:bf.inbox,quadrature:bf.quadrature,appendArrayPointValue:bf.appendArrayPointValue,castHoverOption:_W,castHoverinfo:wW,hover:iT.hover,unhover:bW.unhover,loneHover:iT.loneHover,loneUnhover:xW,click:aT()};function xW(e){var r=K0.isD3Selection(e)?e:gW.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function _W(e,r,t){return K0.castOption(e,r,"hoverlabel."+t)}function wW(e,r,t){function a(n){return K0.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return K0.castOption(e,t,"hoverinfo",a)}});var Vs=Z(Vi=>{"use strict";Vi.selectMode=function(e){return e==="lasso"||e==="select"};Vi.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Vi.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Vi.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Vi.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Vi.selectingOrDrawing=function(e){return Vi.freeMode(e)||Vi.rectMode(e)}});var Q0=Z((kse,oT)=>{"use strict";oT.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var $0=Z((Sse,sT)=>{"use strict";sT.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var eh=Z((Cse,uT)=>{"use strict";var j0=32;uT.exports={CIRCLE_SIDES:j0,i000:0,i090:j0/4,i180:j0/2,i270:j0/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var rh=Z((Lse,cT)=>{"use strict";var TW=Ie().strTranslate;function fT(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function MW(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function AW(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return fT(e,t[r])}}function kW(e){return TW(e.xaxis._offset,e.yaxis._offset)}cT.exports={p2r:fT,r2p:MW,axValue:AW,getTransform:kW}});var Tl=Z(Wi=>{"use strict";var SW=cm(),dT=eh(),Ws=dT.CIRCLE_SIDES,Ty=dT.SQRT2,pT=rh(),vT=pT.p2r,hT=pT.r2p,CW=[0,3,4,5,6,1,2],LW=[0,3,4,1,2];Wi.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var xT=Vs(),qW=xT.drawMode,DW=xT.openMode,Zs=eh(),mT=Zs.i000,yT=Zs.i090,gT=Zs.i180,bT=Zs.i270,EW=Zs.cos45,PW=Zs.sin45,_T=rh(),ah=_T.p2r,Ml=_T.r2p,RW=pl(),zW=RW.clearOutline,nh=Tl(),NW=nh.readPaths,FW=nh.writePaths,IW=nh.ellipseOver,HW=nh.fixDatesForPaths;function OW(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,l=(a.layout||{}).shapes||[];if(!qW(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o{"use strict";var BW=Vs(),YW=BW.selectMode,UW=pl(),GW=UW.clearOutline,My=Tl(),VW=My.readPaths,WW=My.writePaths,ZW=My.fixDatesForPaths;MT.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,l=i._fullLayout.newselection,o=t.plotinfo,s=o.xaxis,u=o.yaxis,f=t.isActiveSelection,v=t.dragmode,h=(i.layout||{}).selections||[];if(!YW(v)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";AT.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var Al=Z(ia=>{"use strict";var So=_f(),kT=Ie(),lh=dt();ia.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};ia.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};ia.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};ia.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};ia.extractPathCoords=function(e,r,t){var a=[],n=e.match(So.segmentRE);return n.forEach(function(i){var l=r[i.charAt(0)].drawn;if(l!==void 0){var o=i.substr(1).match(So.paramRE);if(!(!o||o.lengthd&&(g="X"),g});return u>d&&(m=m.replace(/[\s,]*X.*/,""),kT.log("Ignoring extra params in segment "+s)),f+m})}function wf(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var Sy=Z((zse,qT)=>{"use strict";var JW=Ie(),Xs=dt(),ST=xa(),CT=at(),KW=Tl().readPaths,ky=Al(),QW=ky.getPathString,LT=kv(),$W=Da().FROM_TL;qT.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var l={};if(a.type!=="path"){var o=Xs.getFromId(r,a.xref),s=Xs.getFromId(r,a.yref);for(var u in LT){var f=LT[u](a,o,s);f!==void 0&&(l[u]=f)}}i=JW.texttemplateStringForShapes(a.label.texttemplate,{},r._fullLayout._d3locale,l)}else i=a.label.text;var v={"data-index":t},h=a.label.font,d={"data-notex":1},m=n.append("g").attr(v).classed("shape-label",!0),g=m.append("text").attr(d).classed("shape-label-text",!0).text(i),y,_,w,T;if(a.path){var b=QW(r,a),A=KW(b,r);y=1/0,w=1/0,_=-1/0,T=-1/0;for(var C=0;C=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function eZ(e,r,t,a,n,i,l){var o=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,v=Math.PI/180*i,h=Math.sin(v),d=Math.cos(v),m=n.label.xanchor,g=n.label.yanchor,y,_,w,T;if(f==="line"){o==="start"?(y=e,_=r):o==="end"?(y=t,_=a):(y=(e+t)/2,_=(r+a)/2),m==="auto"&&(o==="start"?s==="auto"?t>e?m="left":te?m="right":te?m="right":te?m="left":t{"use strict";var rZ=Ie(),tZ=rZ.strTranslate,DT=Qn(),RT=Vs(),aZ=RT.drawMode,zT=RT.selectMode,NT=gr(),ET=Er(),sh=eh(),nZ=sh.i000,iZ=sh.i090,lZ=sh.i180,oZ=sh.i270,sZ=pl(),FT=sZ.clearOutlineControllers,Ly=Tl(),oh=Ly.pointsOnRectangle,Cy=Ly.pointsOnEllipse,uZ=Ly.writePaths,fZ=ih().newShapes,cZ=ih().createShapeObj,vZ=Ay(),hZ=Sy();IT.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function l(){e(r,t,a,n++),(Cy(r[0])||a.hasText)&&o({redrawing:!0})}function o(Y){var H={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,H=fZ(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,H=vZ(t,a),i._fullLayout._reselect=!0),Object.keys(H).length&&NT.call((Y||{}).redrawing?"relayout":"_guiRelayout",i,H)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,v=aZ(f),h=zT(f);(v||h)&&(i._fullLayout._outlining=!0),FT(i),t.attr("d",uZ(r));var d,m,g,y,_;if(!n&&(a.isActiveShape||a.isActiveSelection)){_=dZ([],r);var w=u.append("g").attr("class","outline-controllers");R(w),J()}if(v&&a.hasText){var T=u.select(".label-temp"),b=cZ(t,a,a.dragmode);hZ(i,"label-temp",b,T)}function A(Y){g=+Y.srcElement.getAttribute("data-i"),y=+Y.srcElement.getAttribute("data-j"),d[g][y].moveFn=C}function C(Y,H){if(r.length){var G=_[g][y][1],Q=_[g][y][2],K=r[g],ie=K.length;if(oh(K)){var de=Y,pe=H;if(a.isActiveSelection){var Ae=PT(K,y);Ae[1]===K[y][1]?pe=0:de=0}for(var ee=0;ee1&&!(Y.length===2&&Y[1][0]==="Z")&&(y===0&&(Y[0][0]="M"),r[g]=Y,l(),o())}}function D(Y,H){if(Y===2){g=+H.srcElement.getAttribute("data-i"),y=+H.srcElement.getAttribute("data-j");var G=r[g];!oh(G)&&!Cy(G)&&q()}}function R(Y){d=[];for(var H=0;H{"use strict";var mZ=Ir(),GT=gr(),HT=Ie(),Js=dt(),yZ=Tl().readPaths,gZ=uh(),ch=Sy(),VT=pl().clearOutlineControllers,qy=Er(),Ey=at(),bZ=ct().arrayEditor,OT=Qn(),BT=wl(),Co=_f(),Qa=Al(),Dy=Qa.getPathString;XT.exports={draw:Py,drawOne:WT,eraseActiveShape:wZ,drawLabel:ch};function Py(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;nl&&Ye>o&&!Fe.shiftKey?OT.getCursor(Ze/ze,1-Pe/Ye):"move";BT(r,Be),ke=Be.split("-")[0]}}function ge(Fe){fh(e)||(s&&(_=K(t.xanchor)),u&&(w=ie(t.yanchor)),t.type==="path"?z=t.path:(d=s?t.x0:K(t.x0),m=u?t.y0:ie(t.y0),g=s?t.x1:K(t.x1),y=u?t.y1:ie(t.y1)),dy?(T=m,k="y0",b=y,q="y1"):(T=y,k="y1",b=m,q="y0"),se(Fe),we(n,t),Re(r,t,e),ee.moveFn=ke==="move"?U:me,ee.altKey=Fe.altKey)}function B(){fh(e)||(BT(r),ye(n),ZT(r,e,t),GT.call("_guiRelayout",e,i.getUpdateObj()))}function re(){fh(e)||ye(n)}function U(Fe,Ee){if(t.type==="path"){var ze=function(Pe){return Pe},Ye=ze,Ze=ze;s?h("xanchor",t.xanchor=de(_+Fe)):(Ye=function(Be){return de(K(Be)+Fe)},I&&I.type==="date"&&(Ye=Qa.encodeDate(Ye))),u?h("yanchor",t.yanchor=pe(w+Ee)):(Ze=function(Be){return pe(ie(Be)+Ee)},X&&X.type==="date"&&(Ze=Qa.encodeDate(Ze))),h("path",t.path=YT(z,Ye,Ze))}else s?h("xanchor",t.xanchor=de(_+Fe)):(h("x0",t.x0=de(d+Fe)),h("x1",t.x1=de(g+Fe))),u?h("yanchor",t.yanchor=pe(w+Ee)):(h("y0",t.y0=pe(m+Ee)),h("y1",t.y1=pe(y+Ee)));r.attr("d",Dy(e,t)),we(n,t),ch(e,a,t,F)}function me(Fe,Ee){if(v){var ze=function(He){return He},Ye=ze,Ze=ze;s?h("xanchor",t.xanchor=de(_+Fe)):(Ye=function(Ke){return de(K(Ke)+Fe)},I&&I.type==="date"&&(Ye=Qa.encodeDate(Ye))),u?h("yanchor",t.yanchor=pe(w+Ee)):(Ze=function(Ke){return pe(ie(Ke)+Ee)},X&&X.type==="date"&&(Ze=Qa.encodeDate(Ze))),h("path",t.path=YT(z,Ye,Ze))}else if(f){if(ke==="resize-over-start-point"){var Pe=d+Fe,Be=u?m-Ee:m+Ee;h("x0",t.x0=s?Pe:de(Pe)),h("y0",t.y0=u?Be:pe(Be))}else if(ke==="resize-over-end-point"){var Oe=g+Fe,ne=u?y-Ee:y+Ee;h("x1",t.x1=s?Oe:de(Oe)),h("y1",t.y1=u?ne:pe(ne))}}else{var Me=function(He){return ke.indexOf(He)!==-1},Ce=Me("n"),sr=Me("s"),tr=Me("w"),De=Me("e"),Le=Ce?T+Ee:T,Ue=sr?b+Ee:b,Xe=tr?A+Fe:A,Ge=De?C+Fe:C;u&&(Ce&&(Le=T-Ee),sr&&(Ue=b-Ee)),(!u&&Ue-Le>o||u&&Le-Ue>o)&&(h(k,t[k]=u?Le:pe(Le)),h(q,t[q]=u?Ue:pe(Ue))),Ge-Xe>l&&(h(D,t[D]=s?Xe:de(Xe)),h(R,t[R]=s?Ge:de(Ge)))}r.attr("d",Dy(e,t)),we(n,t),ch(e,a,t,F)}function we(Fe,Ee){(s||u)&&ze();function ze(){var Ye=Ee.type!=="path",Ze=Fe.selectAll(".visual-cue").data([0]),Pe=1;Ze.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Pe}).classed("visual-cue",!0);var Be=K(s?Ee.xanchor:HT.midRange(Ye?[Ee.x0,Ee.x1]:Qa.extractPathCoords(Ee.path,Co.paramIsX))),Oe=ie(u?Ee.yanchor:HT.midRange(Ye?[Ee.y0,Ee.y1]:Qa.extractPathCoords(Ee.path,Co.paramIsY)));if(Be=Qa.roundPositionForSharpStrokeRendering(Be,Pe),Oe=Qa.roundPositionForSharpStrokeRendering(Oe,Pe),s&&u){var ne="M"+(Be-1-Pe)+","+(Oe-1-Pe)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ze.attr("d",ne)}else if(s){var Me="M"+(Be-1-Pe)+","+(Oe-9-Pe)+"v18 h2 v-18 Z";Ze.attr("d",Me)}else{var Ce="M"+(Be-9-Pe)+","+(Oe-1-Pe)+"h18 v2 h-18 Z";Ze.attr("d",Ce)}}}function ye(Fe){Fe.selectAll(".visual-cue").remove()}function Re(Fe,Ee,ze){var Ye=Ee.xref,Ze=Ee.yref,Pe=Js.getFromId(ze,Ye),Be=Js.getFromId(ze,Ze),Oe="";Ye!=="paper"&&!Pe.autorange&&(Oe+=Ye),Ze!=="paper"&&!Be.autorange&&(Oe+=Ze),Ey.setClipUrl(Fe,Oe?"clip"+ze._fullLayout._uid+Oe:null,ze)}}function YT(e,r,t){return e.replace(Co.segmentRE,function(a){var n=0,i=a.charAt(0),l=Co.paramIsX[i],o=Co.paramIsY[i],s=Co.numParams[i],u=a.substr(1).replace(Co.paramRE,function(f){return n>=s||(l[n]?f=r(f):o[n]&&(f=t(f)),n++),f});return i+u})}function _Z(e,r){if(vh(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){UT(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=UT,Py(e)}}}function UT(e){if(vh(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(VT(e),delete e._fullLayout._activeShapeIndex,Py(e))}}function wZ(e){if(vh(e)){VT(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Sn=gr(),JT=Pt(),KT=Xt(),Br=$0(),TZ=hh().eraseActiveShape,dh=Ie(),Nr=dh._,Yr=aM.exports={};Yr.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Nr(e,"Download plot as a PNG"):Nr(e,"Download plot")},icon:Br.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};dh.notifier(Nr(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Sn.call("downloadImage",e,t).then(function(a){dh.notifier(Nr(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){dh.notifier(Nr(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Yr.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Nr(e,"Edit in Chart Studio")},icon:Br.disk,click:function(e){JT.sendDataToCloud(e)}};Yr.editInChartStudio={name:"editInChartStudio",title:function(e){return Nr(e,"Edit in Chart Studio")},icon:Br.pencil,click:function(e){JT.sendDataToCloud(e)}};Yr.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Nr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Br.zoombox,click:Ra};Yr.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Nr(e,"Pan")},attr:"dragmode",val:"pan",icon:Br.pan,click:Ra};Yr.select2d={name:"select2d",_cat:"select",title:function(e){return Nr(e,"Box Select")},attr:"dragmode",val:"select",icon:Br.selectbox,click:Ra};Yr.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Nr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Br.lasso,click:Ra};Yr.drawclosedpath={name:"drawclosedpath",title:function(e){return Nr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Br.drawclosedpath,click:Ra};Yr.drawopenpath={name:"drawopenpath",title:function(e){return Nr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Br.drawopenpath,click:Ra};Yr.drawline={name:"drawline",title:function(e){return Nr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Br.drawline,click:Ra};Yr.drawrect={name:"drawrect",title:function(e){return Nr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Br.drawrect,click:Ra};Yr.drawcircle={name:"drawcircle",title:function(e){return Nr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Br.drawcircle,click:Ra};Yr.eraseshape={name:"eraseshape",title:function(e){return Nr(e,"Erase active shape")},icon:Br.eraseshape,click:TZ};Yr.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Nr(e,"Zoom in")},attr:"zoom",val:"in",icon:Br.zoom_plus,click:Ra};Yr.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Nr(e,"Zoom out")},attr:"zoom",val:"out",icon:Br.zoom_minus,click:Ra};Yr.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Nr(e,"Autoscale")},attr:"zoom",val:"auto",icon:Br.autoscale,click:Ra};Yr.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Nr(e,"Reset axes")},attr:"zoom",val:"reset",icon:Br.home,click:Ra};Yr.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Nr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Br.tooltip_basic,gravity:"ne",click:Ra};Yr.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Nr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Br.tooltip_compare,gravity:"ne",click:Ra};function Ra(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,l={},o=KT.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var v=n==="in"?.5:2,h=(1+v)/2,d=(1-v)/2,m;for(f=0;f{"use strict";var nM=Ny(),kZ=Object.keys(nM),iM=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],lM=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(iM),Qs=[],SZ=function(e){if(lM.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();Qs.indexOf(r)===-1&&Qs.push(r),Qs.indexOf(t)===-1&&Qs.push(t)}};kZ.forEach(function(e){SZ(nM[e])});Qs.sort();oM.exports={DRAW_MODES:iM,backButtons:lM,foreButtons:Qs}});var Iy=Z((Bse,sM)=>{"use strict";var Ose=Fy();sM.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var fM=Z((Yse,uM)=>{"use strict";var CZ=Ie(),Tf=Er(),LZ=ct(),qZ=Iy();uM.exports=function(r,t){var a=r.modebar||{},n=LZ.newContainer(t,"modebar");function i(o,s){return CZ.coerce(a,n,qZ,o,s)}i("orientation"),i("bgcolor",Tf.addOpacity(t.paper_bgcolor,.5));var l=Tf.contrast(Tf.rgb(t.modebar.bgcolor));i("color",Tf.addOpacity(l,.3)),i("activecolor",Tf.addOpacity(l,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var dM=Z((Use,hM)=>{"use strict";var Hy=Ir(),DZ=Hr(),mh=Ie(),cM=$0(),EZ=tv().version,PZ=new DOMParser;function vM(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Si=vM.prototype;Si.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this._uid=n,this.element.className="modebar",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,l="#"+n+" .modebar-group";document.querySelectorAll(l).forEach(function(v){v.style.backgroundColor=i.bgcolor});var o=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(o||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),mh.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Si.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var l=r.createButton(n);r.buttonElements.push(l),a.appendChild(l)}),r.element.appendChild(a)})};Si.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Si.createButton=function(e){var r=this,t=document.createElement("a");t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&t.setAttribute("data-title",a),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(o){e.click(r.graphInfo,o),r.updateActiveButton(o.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&Hy.select(t).classed("active",!0);var l=e.icon;return typeof l=="function"?t.appendChild(l()):t.appendChild(this.createIcon(l||cM.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Si.createIcon=function(e){var r=DZ(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=PZ.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Si.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),l=a.getAttribute("data-toggle")==="true",o=Hy.select(a),s=function(v,h){var d=r.modebar,m=v.querySelector(".icon path");m&&(h||v.matches(":hover")?m.style.fill=d.activecolor:m.style.fill=d.color)};if(l){if(i===t){var u=!o.classed("active");o.classed("active",u),s(a,u)}}else{var f=i===null?i:mh.nestedProperty(r,i).get();o.classed("active",f===n),s(a,f===n)}})};Si.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var NZ=Xt(),pM=ln(),Oy=gr(),FZ=bi().isUnifiedHover,IZ=dM(),yh=Ny(),HZ=Fy().DRAW_MODES,OZ=Ie().extendDeep;mM.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,l;Array.isArray(i)&&i.length?l=WZ(i):!a.displayModeBar&&a.watermark?l=[]:l=BZ(r),n?n.update(r,l):t._modeBar=IZ(r,l)};function BZ(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(H,G){if(typeof G=="string"){if(G.toLowerCase()===H.toLowerCase())return!0}else{var Q=G.name,K=G._cat||G.name;if(Q===H||K===H.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var l=r.modebar.remove;typeof l=="string"&&(l=[l]);var o=a.modeBarButtonsToAdd.concat(i.filter(function(H){for(var G=0;G1?(R=["toggleHover"],z=["resetViews"]):v?(D=["zoomInGeo","zoomOutGeo"],R=["hoverClosestGeo"],z=["resetGeo"]):f?(R=["hoverClosest3d"],z=["resetCameraDefault3d","resetCameraLastSave3d"]):g?(D=["zoomInMapbox","zoomOutMapbox"],R=["toggleHover"],z=["resetViewMapbox"]):y?(D=["zoomInMap","zoomOutMap"],R=["toggleHover"],z=["resetViewMap"]):h?R=["hoverClosestPie"]:T?(R=["hoverClosestCartesian","hoverCompareCartesian"],z=["resetViewSankey"]):R=["toggleHover"],u&&R.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(GZ(t)||A)&&(R=[]),u&&!b&&(D=["zoomIn2d","zoomOut2d","autoScale2d"],z[0]!=="resetViews"&&(z=["resetScale2d"])),f?F=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!b||m?F=["zoom2d","pan2d"]:g||y||v?F=["pan2d"]:_&&(F=["zoom2d"]),UZ(t)&&F.push("select2d","lasso2d");var I=[],O=function(H){I.indexOf(H)===-1&&R.indexOf(H)!==-1&&I.push(H)};if(Array.isArray(o)){for(var X=[],J=0;J{"use strict";gM.exports={moduleType:"component",name:"modebar",layoutAttributes:Iy(),supplyLayoutDefaults:fM(),manage:yM()}});var Yy=Z((Wse,bM)=>{"use strict";var ZZ=Da().FROM_BL;bM.exports=function(r,t,a){a===void 0&&(a=ZZ[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var Af=Z(Mf=>{"use strict";var Lo=Ie(),Uy=ff(),jn=Xt().id2name,XZ=Xn(),xM=Yy(),JZ=b0(),KZ=Bt().ALMOST_EQUAL,QZ=Da().FROM_BL;Mf.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],l=r._axisMatchGroups=[],o,s,u,f,v,h,d,m;for(o=0;oi?t.substr(i):a.substr(n))+l}function jZ(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;lKZ*m&&!w)){for(i=0;iF&&QR&&(R=Q);var ie=(R-D)/(2*z);v/=ie,D=s.l2r(D),R=s.l2r(R),s.range=s._input.range=C{"use strict";var bh=Ir(),za=gr(),cn=Pt(),Cn=Ie(),Wy=xa(),Zy=Q0(),kf=Er(),$s=at(),MM=sf(),LM=By(),Sf=dt(),Zi=Da(),qM=Af(),eX=qM.enforce,rX=qM.clean,AM=ff().doAutoRange,DM="start",tX="middle",EM="end",aX=da().zindexSeparator;Qt.layoutStyles=function(e){return Cn.syncOrAsync([cn.doAutoMargin,iX],e)};function nX(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function iX(e){var r=e._fullLayout,t=r._size,a=t.p,n=Sf.list(e,"",!0),i,l,o,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call($s.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),Qt.drawMainTitle(e),LM.manage(e),!r._has("cartesian"))return cn.previousPromises(e);function v(ge,B,re){var U=ge._lw/2;if(ge._id.charAt(0)==="x"){if(B){if(re==="top")return B._offset-a-U}else return t.t+t.h*(1-(ge.position||0))+U%1;return B._offset+B._length+a+U}if(B){if(re==="right")return B._offset+B._length+a+U}else return t.l+t.w*(ge.position||0)+U%1;return B._offset-a-U}for(i=0;i0){uX(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:CM(r.yanchor)}).call(Wy.positionText,l,i);var f=(r.text.match(Wy.BR_TAG_ALL)||[]).length;if(f){var v=Zi.LINE_SPACING*f+Zi.MID_SHIFT;r.y===0&&(v=-v),o.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-v+"em";this.setAttribute("dy",y)})}var h=bh.selectAll(".gtitle-subtitle");if(h.node()){var d=o.node().getBBox(),m=d.y+d.height,g=m+MM.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:l,y:g,"text-anchor":a,dy:CM(r.yanchor)}).call(Wy.positionText,l,g)}}}};function lX(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=Cn.isTopAnchor(r)?a:a-n,o=t==="b"?i-l:l;return Cn.isTopAnchor(r)&&t==="t"||Cn.isBottomAnchor(r)&&t==="b"?!1:o.5?"t":"b",l=e._fullLayout.margin[i],o=0;return r.yref==="paper"?o=t+r.pad.t+r.pad.b:r.yref==="container"&&(o=oX(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function uX(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,l=i.y>.5?"t":"b",o={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&lX(e,i,l,r,a)?o[l]=t:i.yref==="container"&&(s[l]=t,e._fullLayout._reservedMargin[n]=s),cn.allowAutoMargin(e,n),cn.autoMargin(e,n,o)}function fX(e,r){var t=e.title,a=e._size,n=0;switch(r===DM?n=t.pad.l:r===EM&&(n=-t.pad.r),t.xref){case"paper":return a.l+a.w*t.x+n;case"container":default:return e.width*t.x+n}}function cX(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===Zi.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto")return a.t/2;switch(t.yref){case"paper":return a.t+a.h-a.h*t.y+n;case"container":default:return e.height-e.height*t.y+n}}function CM(e){return e==="top"?Zi.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Zi.MID_SHIFT+"em"}function vX(e){var r=e.title,t=tX;return Cn.isRightAnchor(r)?t=EM:Cn.isLeftAnchor(r)&&(t=DM),t}function hX(e){var r=e.title,t="0em";return Cn.isTopAnchor(r)?t=Zi.CAP_SHIFT+"em":Cn.isMiddleAnchor(r)&&(t=Zi.MID_SHIFT+"em"),t}Qt.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var dX=Tl().readPaths,pX=uh(),PM=pl().clearOutlineControllers,Xy=Er(),RM=at(),mX=ct().arrayEditor,zM=Al(),yX=zM.getPathString;FM.exports={draw:_h,drawOne:NM,activateLastSelection:xX};function _h(e){var r=e._fullLayout;PM(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;y--){var _=l.append("path").attr(s).style("opacity",y?.1:u).call(Xy.stroke,v).call(Xy.fill,f).call(RM.dashLine,y?"solid":d,y?4+h:h);if(gX(_,e,a),m){var w=mX(e.layout,"selections",a);_.style({cursor:"move"});var T={element:_.node(),plotinfo:n,gd:e,editHelpers:w,isActiveSelection:!0},b=dX(o,e);pX(b,_,T)}else _.style("pointer-events",y?"all":"none");g[y]=_}var A=g[0],C=g[1];C.node().addEventListener("click",function(){return bX(e,A)})}}function gX(e,r,t){var a=t.xref+t.yref;RM.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function bX(e,r){if(wh(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){Jy(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=Jy,_h(e)}}}function xX(e){if(wh(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=Jy,_h(e)}}function Jy(e){if(wh(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(PM(e),delete e._fullLayout._activeSelectionIndex,_h(e))}}});var HM=Z((Kse,IM)=>{function _X(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,l){return a("temp_status",{seg:n,above:i,below:l})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,l){return a("status",{seg:n,above:i,below:l})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}IM.exports=_X});var BM=Z((Qse,OM)=>{function wX(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],l=a[1],o=n[0],s=n[1],u=t[0],f=t[1];return(o-i)*(f-l)-(s-l)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],l=n[0]-a[0],o=t[0]-a[0],s=n[1]-a[1],u=o*l+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=o-i>e&&(l-f)*(i-v)/(o-v)+f-n>e&&(s=!s),l=f,o=v}return s}};return r}OM.exports=wX});var UM=Z(($se,YM)=>{var TX={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};YM.exports=TX});var VM=Z((jse,GM)=>{var Cf=UM();function MX(e,r,t){function a(m,g){return{id:t?t.segmentId():-1,start:m,end:g,myFill:{above:null,below:null},otherFill:null}}function n(m,g,y){return{id:t?t.segmentId():-1,start:m,end:g,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=Cf.create();function l(m,g,y,_,w,T){var b=r.pointsCompare(g,w);return b!==0?b:r.pointsSame(y,T)?0:m!==_?m?1:-1:r.pointAboveOrOnLine(y,_?w:T,_?T:w)?1:-1}function o(m,g){i.insertBefore(m,function(y){var _=l(m.isStart,m.pt,g,y.isStart,y.pt,y.other.pt);return _<0})}function s(m,g){var y=Cf.node({isStart:!0,pt:m.start,seg:m,primary:g,other:null,status:null});return o(y,m.end),y}function u(m,g,y){var _=Cf.node({isStart:!1,pt:g.end,seg:g,primary:y,other:m,status:null});m.other=_,o(_,m.pt)}function f(m,g){var y=s(m,g);return u(y,m,g),y}function v(m,g){t&&t.segmentChop(m.seg,g),m.other.remove(),m.seg.end=g,m.other.pt=g,o(m.other,m.pt)}function h(m,g){var y=n(g,m.seg.end,m.seg);return v(m,g),f(y,m.primary)}function d(m,g){var y=Cf.create();function _(X,J){var Y=X.seg.start,H=X.seg.end,G=J.seg.start,Q=J.seg.end;return r.pointsCollinear(Y,G,Q)?r.pointsCollinear(H,G,Q)||r.pointAboveOrOnLine(H,G,Q)?1:-1:r.pointAboveOrOnLine(Y,G,Q)?1:-1}function w(X){return y.findTransition(function(J){var Y=_(X,J.ev);return Y>0})}function T(X,J){var Y=X.seg,H=J.seg,G=Y.start,Q=Y.end,K=H.start,ie=H.end;t&&t.checkIntersection(Y,H);var de=r.linesIntersect(G,Q,K,ie);if(de===!1){if(!r.pointsCollinear(G,Q,K)||r.pointsSame(G,ie)||r.pointsSame(Q,K))return!1;var pe=r.pointsSame(G,K),Ae=r.pointsSame(Q,ie);if(pe&&Ae)return J;var ee=!pe&&r.pointBetween(G,K,ie),ke=!Ae&&r.pointBetween(Q,K,ie);if(pe)return ke?h(J,Q):h(X,ie),J;ee&&(Ae||(ke?h(J,Q):h(X,ie)),h(J,G))}else de.alongA===0&&(de.alongB===-1?h(X,K):de.alongB===0?h(X,de.pt):de.alongB===1&&h(X,ie)),de.alongB===0&&(de.alongA===-1?h(J,G):de.alongA===0?h(J,de.pt):de.alongA===1&&h(J,Q));return!1}for(var b=[];!i.isEmpty();){var A=i.getHead();if(t&&t.vert(A.pt[0]),A.isStart){let X=function(){if(k){var J=T(A,k);if(J)return J}return q?T(A,q):!1};var O=X;t&&t.segmentNew(A.seg,A.primary);var C=w(A),k=C.before?C.before.ev:null,q=C.after?C.after.ev:null;t&&t.tempStatus(A.seg,k?k.seg:!1,q?q.seg:!1);var D=X();if(D){if(e){var R;A.seg.myFill.below===null?R=!0:R=A.seg.myFill.above!==A.seg.myFill.below,R&&(D.seg.myFill.above=!D.seg.myFill.above)}else D.seg.otherFill=A.seg.myFill;t&&t.segmentUpdate(D.seg),A.other.remove(),A.remove()}if(i.getHead()!==A){t&&t.rewind(A.seg);continue}if(e){var R;A.seg.myFill.below===null?R=!0:R=A.seg.myFill.above!==A.seg.myFill.below,q?A.seg.myFill.below=q.seg.myFill.above:A.seg.myFill.below=m,R?A.seg.myFill.above=!A.seg.myFill.below:A.seg.myFill.above=A.seg.myFill.below}else if(A.seg.otherFill===null){var z;q?A.primary===q.primary?z=q.seg.otherFill.above:z=q.seg.myFill.above:z=A.primary?g:m,A.seg.otherFill={above:z,below:z}}t&&t.status(A.seg,k?k.seg:!1,q?q.seg:!1),A.other.status=C.insert(Cf.node({ev:A}))}else{var F=A.status;if(F===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(F.prev)&&y.exists(F.next)&&T(F.prev.ev,F.next.ev),t&&t.statusRemove(F.ev.seg),F.remove(),!A.primary){var I=A.seg.myFill;A.seg.myFill=A.seg.otherFill,A.seg.otherFill=I}b.push(A.seg)}i.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(m){for(var g,y=m[m.length-1],_=0;_{function AX(e,r,t){var a=[],n=[];return e.forEach(function(i){var l=i.start,o=i.end;if(r.pointsSame(l,o)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function v(O,X,J){return f.index=O,f.matches_head=X,f.matches_pt1=J,f===s?(f=u,!1):(f=null,!0)}for(var h=0;h{function Lf(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var kX={union:function(e,r){return Lf(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Lf(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Lf(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Lf(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Lf(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};XM.exports=kX});var QM=Z((tue,KM)=>{var SX={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function l(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var o=l(i[0]),s=1;s{var CX=HM(),LX=BM(),$M=VM(),qX=ZM(),qf=JM(),jM=QM(),Ln=!1,Df=LX(),$a;$a={buildLog:function(e){return e===!0?Ln=CX():e===!1&&(Ln=!1),Ln===!1?!1:Ln.list},epsilon:function(e){return Df.epsilon(e)},segments:function(e){var r=$M(!0,Df,Ln);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=$M(!1,Df,Ln);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:qf.union(e.combined,Ln),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:qf.intersect(e.combined,Ln),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:qf.difference(e.combined,Ln),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:qf.differenceRev(e.combined,Ln),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:qf.xor(e.combined,Ln),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:qX(e.segments,Df,Ln),inverted:e.inverted}},polygonFromGeoJSON:function(e){return jM.toPolygon($a,e)},polygonToGeoJSON:function(e){return jM.fromPolygon($a,Df,e)},union:function(e,r){return Ef(e,r,$a.selectUnion)},intersect:function(e,r){return Ef(e,r,$a.selectIntersect)},difference:function(e,r){return Ef(e,r,$a.selectDifference)},differenceRev:function(e,r){return Ef(e,r,$a.selectDifferenceRev)},xor:function(e,r){return Ef(e,r,$a.selectXor)}};function Ef(e,r,t){var a=$a.segments(e),n=$a.segments(r),i=$a.combine(a,n),l=t(i);return $a.polygon(l)}typeof window=="object"&&(window.PolyBool=$a);eA.exports=$a});var aA=Z((nue,tA)=>{tA.exports=function(r,t,a,n){var i=r[0],l=r[1],o=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;ul!=m>l&&i<(d-v)*(l-h)/(m-h)+v;g&&(o=!o)}return o}});var $y=Z((iue,nA)=>{"use strict";var Qy=wv().dot,Th=Bt().BADNUM,Mh=nA.exports={};Mh.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],l=i,o;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),o=1;on||_===Th||_l||g&&u(m))}function v(m,g){var y=m[0],_=m[1];if(y===Th||yn||_===Th||_l)return!1;var w=t.length,T=t[0][0],b=t[0][1],A=0,C,k,q,D,R;for(C=1;CMath.max(k,T)||_>Math.max(q,b)))if(_o||Math.abs(Qy(v,u))>n)return!0;return!1};Mh.filter=function(r,t){var a=[r[0]],n=0,i=0;function l(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var v=f+1;v1){var o=r.pop();l(o)}return{addPt:l,raw:r,filtered:a}}});var lA=Z((lue,iA)=>{"use strict";iA.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var CA=Z((oue,SA)=>{"use strict";var oA=rA(),DX=aA(),zf=gr(),EX=at().dashStyle,Pf=Er(),PX=ki(),RX=bi().makeEventData,Of=Vs(),zX=Of.freeMode,NX=Of.rectMode,Nf=Of.drawMode,tg=Of.openMode,ag=Of.selectMode,sA=Al(),uA=_f(),dA=uh(),pA=pl().clearOutline,mA=Tl(),jy=mA.handleEllipse,FX=mA.readPaths,IX=ih().newShapes,HX=Ay(),OX=Ky().activateLastSelection,kh=Ie(),BX=kh.sorterAsc,yA=$y(),Rf=zv(),qn=Xt().getFromId,YX=Q0(),UX=xh().redrawReglTraces,Sh=lA(),Ci=Sh.MINSELECT,GX=yA.filter,ng=yA.tester,ig=rh(),fA=ig.p2r,VX=ig.axValue,WX=ig.getTransform;function lg(e){return e.subplot!==void 0}function ZX(e,r,t,a,n){var i=!lg(a),l=zX(n),o=NX(n),s=tg(n),u=Nf(n),f=ag(n),v=n==="drawline",h=n==="drawcircle",d=v||h,m=a.gd,g=m._fullLayout,y=f&&g.newselection.mode==="immediate"&&i,_=g._zoomlayer,w=a.element.getBoundingClientRect(),T=a.plotinfo,b=WX(T),A=r-w.left,C=t-w.top;g._calcInverseTransform(m);var k=kh.apply3DTransform(g._invTransform)(A,C);A=k[0],C=k[1];var q=g._invScaleX,D=g._invScaleY,R=A,z=C,F="M"+A+","+C,I=a.xaxes[0],O=a.yaxes[0],X=I._length,J=O._length,Y=e.altKey&&!(Nf(n)&&s),H,G,Q,K,ie,de,pe;bA(e,m,a),l&&(H=GX([[A,C]],Sh.BENDPX));var Ae=_.selectAll("path.select-outline-"+T.id).data([1]),ee=u?g.newshape:g.newselection;u&&(a.hasText=ee.label.text||ee.label.texttemplate);var ke=u&&!s?ee.fillcolor:"rgba(0,0,0,0)",ve=ee.line.color||(i?Pf.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");Ae.enter().append("path").attr("class","select-outline select-outline-"+T.id).style({opacity:u?ee.opacity/2:1,"stroke-dasharray":EX(ee.line.dash,ee.line.width),"stroke-width":ee.line.width+"px","shape-rendering":"crispEdges"}).call(Pf.stroke,ve).call(Pf.fill,ke).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",F+"Z");var be=_.append("path").attr("class","zoombox-corners").style({fill:Pf.background,stroke:Pf.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&a.hasText){var se=_.select(".label-temp");se.empty()&&(se=_.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ge=g._uid+Sh.SELECTID,B=[],re=Ch(m,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var me=I._id,we=O._id;MA(m,me,we,re);for(var ye=(m.layout||{}).selections||[],Re=[],Fe=!1,Ee=0;Ee=0){m._fullLayout._deactivateShape(m);return}if(!u){var ye=g.clickmode;Rf.done(ge).then(function(){if(Rf.clear(ge),me===2){for(Ae.remove(),ie=0;ie-1&&gA(we,m,a.xaxes,a.yaxes,a.subplot,a,Ae),ye==="event"&&Hf(m,void 0);PX.click(m,we,T.id)}).catch(kh.error)}},a.doneFn=function(){be.remove(),Rf.done(ge).then(function(){Rf.clear(ge),!y&&K&&a.selectionDefs&&(K.subtract=Y,a.selectionDefs.push(K),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,Q)),(y||u)&&Ff(a,y),a.doneFnCompleted&&a.doneFnCompleted(B),f&&Hf(m,pe)}).catch(kh.error)}}function gA(e,r,t,a,n,i,l){var o=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,v=[],h,d,m,g,y,_,w,T,b,A;if($X(o)){bA(e,r,i),h=Ch(r,t,a,n);var C=jX(o,h),k=C.pointNumbers.length>0;if(k?eJ(h,C):rJ(h)&&(w=vA(C))){for(l&&l.remove(),A=0;A=0}function QX(e){return e._fullLayout._activeSelectionIndex>=0}function Ff(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;KX(n)&&n._fullLayout._deactivateShape(n),QX(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,l=i._zoomlayer,o=Nf(t),s=ag(t);if(o||s){var u=l.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;o&&(f=IX(u,e)),f&&zf.call("_guiRelayout",n,{shapes:f});var v;s&&!lg(e)&&(v=HX(u,e)),v&&(n._fullLayout._noEmitSelectedAtStart=!0,zf.call("_guiRelayout",n,{selections:v}).then(function(){r&&OX(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function cA(e){return e._id}function Ch(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(cA),l=t.map(cA),o,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function eJ(e,r){var t=[],a,n,i,l;for(l=0;l0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(l=0;l1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function If(e,r,t){var a;for(a=0;a-1&&r;if(!l&&r){var me=hA(e,!0);if(me.length){var we=me[0].xref,ye=me[0].yref;if(we&&ye){var Re=AA(me),Fe=kA([qn(e,we,"x"),qn(e,ye,"y")]);Fe(B,Re)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:U&&Hf(e,B),h._reselect=!1}if(!l&&h._deselect){var Ee=h._deselect;o=Ee.xref,s=Ee.yref,nJ(o,s,f)||MA(e,o,s,a),U&&(B.points.length?Hf(e,B):ug(e)),h._deselect=!1}return{eventData:B,selectionTesters:t}}function aJ(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";LA.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Bf=Z((uue,qA)=>{"use strict";qA.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var js=Z((cue,PA)=>{"use strict";var DA=fg(),EA=ha(),Lh=da(),uJ=ct().templatedArray,fue=Bf();PA.exports=uJ("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:EA({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:DA.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:DA.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Lh.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Lh.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Lh.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Lh.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:EA({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var qh=Z((vue,RA)=>{"use strict";RA.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var NA=Z((hue,zA)=>{"use strict";zA.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var qo=Z((due,YA)=>{"use strict";var FA=r0().axisHoverFormat,fJ=zi().texttemplateAttrs,cJ=zi().hovertemplateAttrs,IA=nf(),vJ=ha(),hJ=mi().dash,dJ=mi().pattern,pJ=at(),mJ=qh(),Dh=Yt().extendFlat,yJ=NA();function HA(e){return{valType:"any",dflt:0,editType:"calc"}}function OA(e){return{valType:"any",editType:"calc"}}function BA(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}YA.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:HA("x"),yperiod:HA("y"),xperiod0:OA("x0"),yperiod0:OA("y0"),xperiodalignment:BA("x"),yperiodalignment:BA("y"),xhoverformat:FA("x"),yhoverformat:FA("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:fJ({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:cJ({},{keys:mJ.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Dh({},hJ,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:yJ(!0),fillgradient:Dh({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:dJ,marker:Dh({symbol:{valType:"enumerated",values:pJ.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Dh({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},IA("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},IA("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:vJ({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var cg=Z((mue,VA)=>{"use strict";var UA=js(),GA=qo().line,gJ=mi().dash,Eh=Yt().extendFlat,bJ=pi().overrideAll,xJ=ct().templatedArray,pue=Bf();VA.exports=bJ(xJ("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Eh({},UA.xref,{}),yref:Eh({},UA.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:GA.color,width:Eh({},GA.width,{min:1,dflt:1}),dash:Eh({},gJ,{dflt:"dot"})}}),"arraydraw","from-root")});var JA=Z((yue,XA)=>{"use strict";var WA=Ie(),Ph=dt(),_J=Jn(),wJ=cg(),ZA=Al();XA.exports=function(r,t){_J(r,t,{name:"selections",handleItemDefaults:TJ});for(var a=t.selections,n=0;n{"use strict";KA.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var Yf=Z((bue,ek)=>{"use strict";var MJ=gr(),$A=Ie(),jA=Xt();ek.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=MJ.subplotsRegistry.cartesian,o=l.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,v=s.cartesian,h=n._has("cartesian"),d=0;d{"use strict";var rk=Ky(),Uf=CA();tk.exports={moduleType:"component",name:"selections",layoutAttributes:cg(),supplyLayoutDefaults:JA(),supplyDrawNewSelectionDefaults:QA(),includeBasePlot:Yf()("selections"),draw:rk.draw,drawOne:rk.drawOne,reselect:Uf.reselect,prepSelect:Uf.prepSelect,clearOutline:Uf.clearOutline,clearSelectionsCache:Uf.clearSelectionsCache,selectOnClick:Uf.selectOnClick}});var Tk=Z((_ue,wk)=>{"use strict";var mg=Ir(),Dn=Ie(),ak=Dn.numberFormat,AJ=bn(),kJ=Km(),Rh=gr(),vk=Dn.strTranslate,SJ=xa(),nk=Er(),Sl=at(),CJ=ki(),ik=dt(),LJ=wl(),qJ=Qn(),hk=Vs(),zh=hk.selectingOrDrawing,DJ=hk.freeMode,EJ=Da().FROM_TL,PJ=Q0(),RJ=xh().redrawReglTraces,zJ=Pt(),hg=Xt().getFromId,NJ=eu().prepSelect,FJ=eu().clearOutline,IJ=eu().selectOnClick,vg=Yy(),yg=da(),lk=yg.MINDRAG,Ba=yg.MINZOOM,ok=!0;function HJ(e,r,t,a,n,i,l,o){var s=e._fullLayout._zoomlayer,u=l+o==="nsew",f=(l+o).length===1,v,h,d,m,g,y,_,w,T,b,A,C,k,q,D,R,z,F,I,O,X,J,Y;t+=r.yaxis._shift;function H(){if(v=r.xaxis,h=r.yaxis,T=v._length,b=h._length,_=v._offset,w=h._offset,d={},d[v._id]=v,m={},m[h._id]=h,l&&o)for(var De=r.overlays,Le=0;Le=0){Ue._fullLayout._deactivateShape(Ue);return}var Xe=Ue._fullLayout.clickmode;if(pg(Ue),De===2&&!f&&Oe(),u)Xe.indexOf("select")>-1&&IJ(Le,Ue,g,y,r.id,K),Xe.indexOf("event")>-1&&CJ.click(Ue,Le,r.id);else if(De===1&&f){var Ge=l?h:v,He=l==="s"||o==="w"?0:1,Ke=Ge._name+".range["+He+"]",cr=OJ(Ge,He),lr="left",Ne="middle";if(Ge.fixedrange)return;l?(Ne=l==="n"?"top":"bottom",Ge.side==="right"&&(lr="right")):o==="e"&&(lr="right"),Ue._context.showAxisRangeEntryBoxes&&mg.select(Q).call(SJ.makeEditable,{gd:Ue,immediate:!0,background:Ue._fullLayout.paper_bgcolor,text:String(cr),fill:Ge.tickfont?Ge.tickfont.color:"#444",horizontalAlign:lr,verticalAlign:Ne}).on("edit",function(ae){var oe=Ge.d2r(ae);oe!==void 0&&Rh.call("_guiRelayout",Ue,Ke,oe)})}}qJ.init(K);var pe,Ae,ee,ke,ve,be,se,ge,B,re;function U(De,Le,Ue){var Xe=Q.getBoundingClientRect();pe=Le-Xe.left,Ae=Ue-Xe.top,e._fullLayout._calcInverseTransform(e);var Ge=Dn.apply3DTransform(e._fullLayout._invTransform)(pe,Ae);pe=Ge[0],Ae=Ge[1],ee={l:pe,r:pe,w:0,t:Ae,b:Ae,h:0},ke=e._hmpixcount?e._hmlumcount/e._hmpixcount:AJ(e._fullLayout.plot_bgcolor).getLuminance(),ve="M0,0H"+T+"V"+b+"H0V0",be=!1,se="xy",re=!1,ge=mk(s,ke,_,w,ve),B=yk(s,_,w)}function me(De,Le){if(e._transitioningWithDuration)return!1;var Ue=Math.max(0,Math.min(T,J*De+pe)),Xe=Math.max(0,Math.min(b,Y*Le+Ae)),Ge=Math.abs(Ue-pe),He=Math.abs(Xe-Ae);ee.l=Math.min(pe,Ue),ee.r=Math.max(pe,Ue),ee.t=Math.min(Ae,Xe),ee.b=Math.max(Ae,Xe);function Ke(){se="",ee.r=ee.l,ee.t=ee.b,B.attr("d","M0,0Z")}if(A.isSubplotConstrained)Ge>Ba||He>Ba?(se="xy",Ge/T>He/b?(He=Ge*b/T,Ae>Xe?ee.t=Ae-He:ee.b=Ae+He):(Ge=He*T/b,pe>Ue?ee.l=pe-Ge:ee.r=pe+Ge),B.attr("d",Nh(ee))):Ke();else if(C.isSubplotConstrained)if(Ge>Ba||He>Ba){se="xy";var cr=Math.min(ee.l/T,(b-ee.b)/b),lr=Math.max(ee.r/T,(b-ee.t)/b);ee.l=cr*T,ee.r=lr*T,ee.b=(1-cr)*b,ee.t=(1-lr)*b,B.attr("d",Nh(ee))}else Ke();else!q||He0){var ae;if(C.isSubplotConstrained||!k&&q.length===1){for(ae=0;ae1&&(Ke.maxallowed!==void 0&&R===(Ke.range[0]1&&(cr.maxallowed!==void 0&&z===(cr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function YJ(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function mk(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",vk(t,a)).attr("d",n+"Z")}function yk(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:nk.background,stroke:nk.defaultLine,"stroke-width":1,opacity:0}).attr("transform",vk(r,t)).attr("d","M0,0Z")}function gk(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),bk(e,r,n,i)}function bk(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function pg(e){mg.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function xk(e){ok&&e.data&&e._context.showTips&&(Dn.notifier(Dn._(e,"Double-click to zoom back out"),"long"),ok=!1)}function UJ(e,r){return"M"+(e.l-.5)+","+(r-Ba-.5)+"h-3v"+(2*Ba+1)+"h3ZM"+(e.r+.5)+","+(r-Ba-.5)+"h3v"+(2*Ba+1)+"h-3Z"}function GJ(e,r){return"M"+(r-Ba-.5)+","+(e.t-.5)+"v-3h"+(2*Ba+1)+"v3ZM"+(r-Ba-.5)+","+(e.b+.5)+"v3h"+(2*Ba+1)+"v-3Z"}function Nh(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Ba)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function fk(e,r,t,a,n){for(var i=!1,l={},o={},s,u,f,v,h=(n||{}).xaHash,d=(n||{}).yaHash,m=0;m{"use strict";var VJ=Ir(),Fh=ki(),WJ=Qn(),ZJ=wl(),ei=Tk().makeDragBox,$t=da().DRAGGERSIZE;Ih.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){VJ.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,l){if((t._plots[i].mainplot&&!0)===(t._plots[l].mainplot&&!0)){var o=i.split("y"),s=l.split("y");return o[0]===s[0]?Number(o[1]||1)-Number(s[1]||1):Number(o[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var l=t._plots[i],o=l.xaxis,s=l.yaxis;if(!l.mainplot){var u=ei(r,l,o._offset,s._offset,o._length,s._length,"ns","ew");u.onmousemove=function(h){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Fh.hover(r,h,i)},Fh.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,WJ.unhover(r,h))},r._context.showAxisDragHandles&&(ei(r,l,o._offset-$t,s._offset-$t,$t,$t,"n","w"),ei(r,l,o._offset+o._length,s._offset-$t,$t,$t,"n","e"),ei(r,l,o._offset-$t,s._offset+s._length,$t,$t,"s","w"),ei(r,l,o._offset+o._length,s._offset+s._length,$t,$t,"s","e"))}if(r._context.showAxisDragHandles){if(i===o._mainSubplot){var f=o._mainLinePosition;o.side==="top"&&(f-=$t),ei(r,l,o._offset+o._length*.1,f,o._length*.8,$t,"","ew"),ei(r,l,o._offset,f,o._length*.1,$t,"","w"),ei(r,l,o._offset+o._length*.9,f,o._length*.1,$t,"","e")}if(i===s._mainSubplot){var v=s._mainLinePosition;s.side!=="right"&&(v-=$t),ei(r,l,v,s._offset+s._length*.1,$t,s._length*.8,"ns",""),ei(r,l,v,s._offset+s._length*.9,$t,s._length*.1,"s",""),ei(r,l,v,s._offset,$t,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Fh.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Fh.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Ih.updateFx(r)}};Ih.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";ZJ(r._draggers,t)}});var kk=Z((Tue,Ak)=>{"use strict";var Mk=gr();Ak.exports=function(r){for(var t=Mk.layoutArrayContainers,a=Mk.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o{"use strict";var XJ=nl(),bg=_v(),Gf=ro(),JJ=hp().sorterAsc,xg=gr();Vf.containerArrayMatch=kk();var KJ=Vf.isAddVal=function(r){return r==="add"||XJ(r)},Sk=Vf.isRemoveVal=function(r){return r===null||r==="remove"};Vf.applyContainerArrayChanges=function(r,t,a,n,i){var l=t.astr,o=xg.getComponentMethod(l,"supplyLayoutDefaults"),s=xg.getComponentMethod(l,"draw"),u=xg.getComponentMethod(l,"drawOne"),f=n.replot||n.recalc||o===bg||s===bg,v=r.layout,h=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Gf.warn("Full array edits are incompatible with other edits",l);var d=a[""][""];if(Sk(d))t.set(null);else if(Array.isArray(d))t.set(d);else return Gf.warn("Unrecognized full array edit value",l,d),!0;return f?!1:(o(v,h),s(r),!0)}var m=Object.keys(a).map(Number).sort(JJ),g=t.get(),y=g||[],_=i(h,l).get(),w=[],T=-1,b=y.length,A,C,k,q,D,R,z,F;for(A=0;Ay.length-(z?0:1)){Gf.warn("index out of range",l,k);continue}if(R!==void 0)D.length>1&&Gf.warn("Insertion & removal are incompatible with edits to the same index.",l,k),Sk(R)?w.push(k):z?(R==="add"&&(R={}),y.splice(k,0,R),_&&_.splice(k,0,{})):Gf.warn("Unrecognized full object edit value",l,k,R),T===-1&&(T=k);else for(C=0;C=0;A--)y.splice(w[A],1),_&&_.splice(w[A],1);if(y.length?g||t.set(y):t.set(null),f)return!1;if(o(v,h),u!==bg){var I;if(T===-1)I=m;else{for(b=Math.max(y.length,b),I=[],A=0;A=T));A++)I.push(k);for(A=T;A{"use strict";var Ek=Hr(),Aue=ap(),Pk=gr(),ja=Ie(),Wf=Pt(),Rk=Xt(),zk=Er(),Zf=Rk.cleanId,QJ=Rk.getFromTrace,_g=Pk.traceIs;ri.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&ja.log("Clearing previous rejected promises from queue."),e._promises=[]};ri.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(Wf.subplotsRegistry.cartesian||{}).attrRegex,n=(Wf.subplotsRegistry.polar||{}).attrRegex,i=(Wf.subplotsRegistry.ternary||{}).attrRegex,l=(Wf.subplotsRegistry.gl3d||{}).attrRegex,o=Object.keys(e);for(r=0;r3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),zk.clean(e),e.template&&e.template.layout&&ri.cleanLayout(e.template.layout),e};function ru(e,r){var t=e[r],a=r.charAt(0);t&&t!=="paper"&&(e[r]=Zf(t,a,!0))}ri.cleanData=function(e){for(var r=0;r0)return e.substr(0,r)}ri.hasParent=function(e,r){for(var t=Dk(r);t;){if(t in e)return!0;t=Dk(t)}return!1};var eK=["x","y","z"];ri.clearAxisTypes=function(e,r,t){for(var a=0;a{"use strict";var Yh=Ir(),rK=Hr(),tK=Sp(),Qe=Ie(),ut=Qe.nestedProperty,Mg=$u(),Ya=p6(),En=gr(),Jh=As(),xr=Pt(),Na=dt(),aK=Jm(),nK=Xn(),wg=at(),iK=Er(),lK=gg().initInteractions,oK=fo(),sK=eu().clearOutline,Bk=eo().dfltConfig,Oh=Ck(),It=Nk(),et=xh(),Cl=pi(),uK=da().AX_NAME_PATTERN,Tg=0,Fk=5;function fK(e,r,t,a){var n;if(e=Qe.getGraphDiv(e),Mg.init(e),Qe.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var l=Mg.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(l===!1)return Promise.reject();!r&&!t&&!Qe.isPlotDiv(e)&&Qe.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function o(){if(n)return Gr.addFrames(e,n)}Uk(e,a),t||(t={}),Yh.select(e).classed("js-plotly-plot",!0),wg.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(It.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=It.cleanLayout(t)),xr.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(PK(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),wg.initGradients(e),wg.initPatterns(e),s&&Na.saveShowSpikeInitial(e);var v=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;v&&xr.doCalcdata(e);for(var h=0;h=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function Gk(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),Gh(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Gh(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function pK(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof q.parts[z]!="string";)z--;var F=q.parts[z],I=q.parts[z-1]+"."+F,O=q.parts.slice(0,z).join("."),X=ut(e.layout,O).get(),J=ut(a,O).get(),Y=q.get();if(D!==void 0){_[k]=D,w[k]=F==="reverse"?D:Xi(Y);var H=Jh.getLayoutValObject(a,q.parts);if(H&&H.impliedEdits&&D!==null)for(var G in H.impliedEdits)T(Qe.relativeAttr(k,G),H.impliedEdits[G]);if(["width","height"].indexOf(k)!==-1)if(D){T("autosize",null);var Q=k==="height"?"width":"height";T(Q,a[Q])}else a[k]=e._initialAutoSize[k];else if(k==="autosize")T("width",D?null:a.width),T("height",D?null:a.height);else if(I.match(jk))C(I),ut(a,O+"._inputRange").set(null);else if(I.match(eS)){C(I),ut(a,O+"._inputRange").set(null);var K=ut(a,O).get();K._inputDomain&&(K._input.domain=K._inputDomain.slice())}else I.match(bK)&&ut(a,O+"._inputDomain").set(null);if(F==="type"){A=X;var ie=J.type==="linear"&&D==="log",de=J.type==="log"&&D==="linear";if(ie||de){if(!A||!A.range)T(O+".autorange",!0);else if(J.autorange)ie&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var pe=A.range[0],Ae=A.range[1];ie?(pe<=0&&Ae<=0&&T(O+".autorange",!0),pe<=0?pe=Ae/1e6:Ae<=0&&(Ae=pe/1e6),T(O+".range[0]",Math.log(pe)/Math.LN10),T(O+".range[1]",Math.log(Ae)/Math.LN10)):(T(O+".range[0]",Math.pow(10,pe)),T(O+".range[1]",Math.pow(10,Ae)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[q.parts[0]]&&q.parts[1]==="radialaxis"&&delete a[q.parts[0]]._subplot.viewInitial["radialaxis.range"],En.getComponentMethod("annotations","convertCoords")(e,J,D,T),En.getComponentMethod("images","convertCoords")(e,J,D,T)}else T(O+".autorange",!0),T(O+".range",null);ut(a,O+"._inputRange").set(null)}else if(F.match(uK)){var ee=ut(a,k).get(),ke=(D||{}).type;(!ke||ke==="-")&&(ke="linear"),En.getComponentMethod("annotations","convertCoords")(e,ee,ke,T),En.getComponentMethod("images","convertCoords")(e,ee,ke,T)}var ve=Oh.containerArrayMatch(k);if(ve){f=ve.array,v=ve.index;var be=ve.property,se=H||{editType:"calc"};v!==""&&be===""&&(Oh.isAddVal(D)?w[k]=null:Oh.isRemoveVal(D)?w[k]=(ut(t,f).get()||[])[v]:Qe.warn("unrecognized full object value",r)),Cl.update(y,se),u[f]||(u[f]={});var ge=u[f][v];ge||(ge=u[f][v]={}),ge[be]=D,delete r[k]}else F==="reverse"?(X.range?X.range.reverse():(T(O+".autorange",!0),X.range=[1,0]),J.autorange?y.calc=!0:y.plot=!0):(k==="dragmode"&&(D===!1&&Y!==!1||D!==!1&&Y===!1)||a._has("scatter-like")&&a._has("regl")&&k==="dragmode"&&(D==="lasso"||D==="select")&&!(Y==="lasso"||Y==="select")?y.plot=!0:H?Cl.update(y,H):y.calc=!0,q.set(D))}}for(f in u){var B=Oh.applyContainerArrayChanges(e,i(t,f),u[f],y,i);B||(y.plot=!0)}for(var re in b){A=Na.getFromId(e,re);var U=A&&A._constraintGroup;if(U){y.calc=!0;for(var me in U)b[me]||(Na.getFromId(e,me)._constraintShrinkable=!0)}}(tS(e)||r.height||r.width)&&(y.plot=!0);var we=a.shapes;for(v=0;v1;)if(a.pop(),t=ut(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function wK(e,r){for(var t=0;t=n.length?n[0]:n[u]:n}function o(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var v=0;return function(){if(u&&++v===f)return u()}}return new Promise(function(u,f){function v(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var F=a._frameQueue.pop();F.onInterrupt&&F.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(F){if(F.length!==0){for(var I=0;Ia._timeToNext&&m()};F()}var y=0;function _(F){return Array.isArray(n)?y>=n.length?F.transitionOpts=n[y]:F.transitionOpts=n[0]:F.transitionOpts=n,y++,F}var w,T,b=[],A=r==null,C=Array.isArray(r),k=!A&&!C&&Qe.isPlainObject(r);if(k)b.push({type:"object",data:_(Qe.extendFlat({},r))});else if(A||["string","number"].indexOf(typeof r)!==-1)for(w=0;w0&&RR)&&z.push(T);b=z}}b.length>0?h(b):(e.emit("plotly_animated"),u())})}function LK(e,r,t){if(e=Qe.getGraphDiv(e),r==null)return Promise.resolve();if(!Qe.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,l,o=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=o.length+r.length*2,f=[],v={};for(a=r.length-1;a>=0;a--)if(Qe.isPlainObject(r[a])){var h=r[a].name,d=(s[h]||v[h]||{}).name,m=r[a].name,g=s[d]||v[d];d&&m&&typeof m=="number"&&g&&Tgq.index?-1:k.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&Qe.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),l.unshift({type:"insert",index:a,value:n[a]});var o=xr.modifyFrames,s=xr.modifyFrames,u=[e,l],f=[e,i];return Ya&&Ya.add(e,o,u,s,f),xr.modifyFrames(e,i)}function DK(e){e=Qe.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return xr.cleanPlot([],{},t,r),xr.purge(e),Mg.purge(e),r._container&&r._container.remove(),delete e._context,e}function EK(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Qe.equalDomRects(t,r._lastBBox)){var a=r._invTransform=Qe.inverseTransformMatrix(Qe.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function PK(e){var r=Yh.select(e),t=e._fullLayout;if(t._calcInverseTransform=EK,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};Yh.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=Qe.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(oK.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Gr.animate=CK;Gr.addFrames=LK;Gr.deleteFrames=qK;Gr.addTraces=Jk;Gr.deleteTraces=Kk;Gr.extendTraces=Zk;Gr.moveTraces=Ag;Gr.prependTraces=Xk;Gr.newPlot=dK;Gr._doPlot=fK;Gr.purge=DK;Gr.react=AK;Gr.redraw=hK;Gr.relayout=Xf;Gr.restyle=Vh;Gr.setPlotConfig=cK;Gr.update=Zh;Gr._guiRelayout=Sg(Xf);Gr._guiRestyle=Sg(Vh);Gr._guiUpdate=Sg(Zh);Gr._storeDirectGUIEdit=gK});var Do=Z(Li=>{"use strict";var RK=gr();Li.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Li.getRedrawFunc=function(e){return function(){RK.getComponentMethod("colorbar","draw")(e)}};Li.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Li.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var aS=window.URL||window.webkitURL;Li.createObjectURL=function(e){return aS.createObjectURL(e)};Li.revokeObjectURL=function(e){return aS.revokeObjectURL(e)};Li.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=zK(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Li.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function zK(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var qg=Ir(),Lue=Ie(),NK=at(),FK=Er(),que=fo(),Lg=/"/g,Kf="TOBESTRIPPED",IK=new RegExp('("'+Kf+")|("+Kf+'")',"g");function HK(e){var r=qg.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(a){return a==="<"?"<":a==="&rt;"?">":a.indexOf("<")!==-1||a.indexOf(">")!==-1?"":r.html(a).text()});return r.remove(),t}function OK(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}nS.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,l=n._toppaper,o=n.width,s=n.height,u;i.insert("rect",":first-child").call(NK.setRect,0,0,o,s).call(FK.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var BK=Ie(),YK=Yv().EventEmitter,Qf=Do();function UK(e){var r=e.emitter||new YK,t=new Promise(function(a,n){var i=window.Image,l=e.svg,o=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,v=e.height||150,h=u*f,d=u*v,m=s.getContext("2d",{willReadFrequently:!0}),g=new i,y,_;o==="svg"||BK.isSafari()?_=Qf.encodeSVG(l):(y=Qf.createBlob(l,"svg"),_=Qf.createObjectURL(y)),s.width=h,s.height=d,g.onload=function(){var w;switch(y=null,Qf.revokeObjectURL(_),o!=="svg"&&m.drawImage(g,0,0,h,d),o){case"jpeg":w=s.toDataURL("image/jpeg");break;case"png":w=s.toDataURL("image/png");break;case"webp":w=s.toDataURL("image/webp");break;case"svg":w=_;break;default:var T="Image format is not jpeg, png, svg or webp.";if(n(new Error(T)),!e.promise)return r.emit("error",T)}a(w),e.promise||r.emit("success",w)},g.onerror=function(w){if(y=null,Qf.revokeObjectURL(_),n(w),!e.promise)return r.emit("error",w)},g.src=_});return e.promise?t:r}iS.exports=UK});var Eg=Z((Pue,sS)=>{"use strict";var lS=Hr(),oS=Cg(),GK=Pt(),qi=Ie(),$f=Do(),VK=Qh(),WK=$h(),ZK=tv().version,Dg={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function XK(e,r){r=r||{};var t,a,n,i;qi.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=qi.getGraphDiv(e),t=qi.extendDeep([],e.data),a=qi.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function l(C){return!(C in r)||qi.validate(r[C],Dg[C])}if(!l("width")&&r.width!==null||!l("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+qi.join2(Dg.format.values,", "," or ")+".");var o={};function s(C,k){return qi.coerce(r,o,Dg,C,k)}var u=s("format"),f=s("width"),v=s("height"),h=s("scale"),d=s("setBackground"),m=s("imageDataOnly"),g=document.createElement("div");g.style.position="absolute",g.style.left="-5000px",document.body.appendChild(g);var y=qi.extendFlat({},a);f?y.width=f:r.width===null&&lS(i.width)&&(y.width=i.width),v?y.height=v:r.height===null&&lS(i.height)&&(y.height=i.height);var _=qi.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),w=$f.getRedrawFunc(g);function T(){return new Promise(function(C){setTimeout(C,$f.getDelay(g._fullLayout))})}function b(){return new Promise(function(C,k){var q=VK(g,u,h),D=g._fullLayout.width,R=g._fullLayout.height;function z(){oS.purge(g),document.body.removeChild(g)}if(u==="full-json"){var F=GK.graphJson(g,!1,"keepdata","object",!0,!0);return F.version=ZK,F=JSON.stringify(F),z(),C(m?F:$f.encodeJSON(F))}if(z(),u==="svg")return C(m?q:$f.encodeSVG(q));var I=document.createElement("canvas");I.id=qi.randstr(),WK({format:u,width:D,height:R,scale:h,canvas:I,svg:q,promise:!0}).then(C).catch(k)})}function A(C){return m?C.replace($f.IMAGE_URL_PREFIX,""):C}return new Promise(function(C,k){oS.newPlot(g,t,y,_).then(w).then(T).then(b).then(function(q){C(A(q))}).catch(function(q){k(q)})})}sS.exports=XK});var cS=Z((Rue,fS)=>{"use strict";var Pn=Ie(),JK=Pt(),KK=As(),QK=eo().dfltConfig,ti=Pn.isPlainObject,Po=Array.isArray,Pg=Pn.isArrayOrTypedArray;fS.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=KK.get(),n=[],i={_context:Pn.extendFlat({},QK)},l,o;Po(r)?(i.data=Pn.extendDeep([],r),l=r):(i.data=[],l=[],n.push(jt("array","data"))),ti(t)?(i.layout=Pn.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(jt("object","layout"))),JK.supplyDefaults(i);for(var s=i._fullData,u=l.length,f=0;fv.length&&a.push(jt("unused",n,u.concat(v.length)));var _=v.length,w=Array.isArray(y);w&&(_=Math.min(_,y.length));var T,b,A,C,k;if(h.dimensions===2)for(b=0;b<_;b++)if(Po(f[b])){f[b].length>v[b].length&&a.push(jt("unused",n,u.concat(b,v[b].length)));var q=v[b].length;for(T=0;T<(w?Math.min(q,y[b].length):q);T++)A=w?y[b][T]:y,C=f[b][T],k=v[b][T],Pn.validate(C,A)?k!==C&&k!==+C&&a.push(jt("dynamic",n,u.concat(b,T),C,k)):a.push(jt("value",n,u.concat(b,T),C))}else a.push(jt("array",n,u.concat(b),f[b]));else for(b=0;b<_;b++)A=w?y[b]:y,C=f[b],k=v[b],Pn.validate(C,A)?k!==C&&k!==+C&&a.push(jt("dynamic",n,u.concat(b),C,k)):a.push(jt("value",n,u.concat(b),C))}else if(h.items&&!m&&Po(f)){var D=y[Object.keys(y)[0]],R=[],z,F;for(z=0;z{"use strict";var nQ=Ie(),ed=Do();function iQ(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(l,o){var s,u;if(n)return s=ed.createBlob(e,t),u=ed.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),ed.revokeObjectURL(u),s=null,l(r);if(nQ.isSafari()){var f=t==="svg"?",":";base64,";return ed.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}vS.exports=iQ});var Rg=Z((Fue,pS)=>{"use strict";var dS=Ie(),lQ=Eg(),oQ=hS(),Nue=Do();function sQ(e,r){var t;return dS.isPlainObject(e)||(t=dS.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=lQ(e,r),l=r.filename||e.fn||"newplot";l+="."+r.format.replace("-","."),i.then(function(o){return t&&(t._snapshotInProgress=!1),oQ(o,l,r.format)}).then(function(o){a(o)}).catch(function(o){t&&(t._snapshotInProgress=!1),n(o)})})}pS.exports=sQ});var xS=Z(zg=>{"use strict";var en=Ie(),rn=en.isPlainObject,mS=As(),yS=Pt(),uQ=Gn(),gS=ct(),bS=eo().dfltConfig;zg.makeTemplate=function(e){e=en.isPlainObject(e)?e:en.getGraphDiv(e),e=en.extendDeep({_context:bS},{data:e.data,layout:e.layout}),yS.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var m={};jf(d,m,cQ.bind(null,d));var g=en.coerce(d,{},uQ,"type"),y=a.data[g];y||(y=a.data[g]=[]),y.push(m)}),jf(t,a.layout,fQ.bind(null,t)),delete a.layout.template;var n=t.template;if(rn(n)){var i=n.layout,l,o,s,u,f,v;rn(i)&&rd(i,a.layout);var h=n.data;if(rn(h)){for(o in a.data)if(s=h[o],Array.isArray(s)){for(f=a.data[o],v=f.length,u=s.length,l=0;l_?l.push({code:"unused",traceType:d,templateCount:y,dataCount:_}):_>y&&l.push({code:"reused",traceType:d,templateCount:y,dataCount:_})}}function w(T,b){for(var A in T)if(A.charAt(0)!=="_"){var C=T[A],k=Rn(T,A,b);rn(C)?(Array.isArray(T)&&C._template===!1&&C.templateitemname&&l.push({code:"missing",path:k,templateitemname:C.templateitemname}),w(C,k)):Array.isArray(C)&&vQ(C)&&w(C,k)}}if(w({data:s,layout:o},""),l.length)return l.map(hQ)};function vQ(e){for(var r=0;r{"use strict";var Vt=Cg();pt._doPlot=Vt._doPlot;pt.newPlot=Vt.newPlot;pt.restyle=Vt.restyle;pt.relayout=Vt.relayout;pt.redraw=Vt.redraw;pt.update=Vt.update;pt._guiRestyle=Vt._guiRestyle;pt._guiRelayout=Vt._guiRelayout;pt._guiUpdate=Vt._guiUpdate;pt._storeDirectGUIEdit=Vt._storeDirectGUIEdit;pt.react=Vt.react;pt.extendTraces=Vt.extendTraces;pt.prependTraces=Vt.prependTraces;pt.addTraces=Vt.addTraces;pt.deleteTraces=Vt.deleteTraces;pt.moveTraces=Vt.moveTraces;pt.purge=Vt.purge;pt.addFrames=Vt.addFrames;pt.deleteFrames=Vt.deleteFrames;pt.animate=Vt.animate;pt.setPlotConfig=Vt.setPlotConfig;var dQ=Gu().getGraphDiv,pQ=hh().eraseActiveShape;pt.deleteActiveShape=function(e){return pQ(dQ(e))};pt.toImage=Eg();pt.validate=cS();pt.downloadImage=Rg();var _S=xS();pt.makeTemplate=_S.makeTemplate;pt.validateTemplate=_S.validateTemplate});var Fg=Z((Oue,TS)=>{"use strict";var Ng=Ie(),mQ=gr();TS.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=mQ.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=Ng.minRowLength(i);l?o=Math.min(u,Ng.minRowLength(l)):(o=u,n("y0"),n("dy"))}else{if(!l)return 0;o=Ng.minRowLength(l),n("x0"),n("dx")}return t._length=o,o}});var Ig=Z((Bue,kS)=>{"use strict";var MS=Ie().dateTick0,yQ=Bt(),gQ=yQ.ONEWEEK;function AS(e,r){return e%gQ===0?MS(r,1):MS(r,0)}kS.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",AS(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",AS(o,t.ycalendar)),n("yperiodalignment"))}}});var LS=Z((Yue,CS)=>{"use strict";var SS=["orientation","groupnorm","stackgaps"];CS.exports=function(r,t,a,n){var i=a._scatterStackOpts,l=n("stackgroup");if(l){var o=t.xaxis+t.yaxis,s=i[o];s||(s=i[o]={});var u=s[l],f=!1;u?u.traces.push(t):(u=s[l]={traceIndices:[],traces:[t]},f=!0);for(var v={orientation:t.x&&!t.y?"h":"v"},h=0;h{"use strict";var qS=Er(),DS=Tn().hasColorscale,ES=Ls(),bQ=ln();PS.exports=function(r,t,a,n,i,l){var o=bQ.isBubble(r),s=(r.line||{}).color,u;if(l=l||{},s&&(a=s),i("marker.symbol"),i("marker.opacity",o?.7:1),i("marker.size"),l.noAngle||(i("marker.angle"),l.noAngleRef||i("marker.angleref"),l.noStandOff||i("marker.standoff")),i("marker.color",a),DS(r,"marker")&&ES(r,t,n,i,{prefix:"marker.",cLetter:"c"}),l.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),l.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:o?u=qS.background:u=qS.defaultLine,i("marker.line.color",u),DS(r,"marker.line")&&ES(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",o?1:0)),o&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),l.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var NS=Z((Gue,zS)=>{"use strict";var xQ=Ie().isArrayOrTypedArray,_Q=Tn().hasColorscale,wQ=Ls();zS.exports=function(r,t,a,n,i,l){l||(l={});var o=(r.marker||{}).color;if(o&&o._inputArray&&(o=o._inputArray),i("line.color",a),_Q(r,"line"))wQ(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(xQ(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var IS=Z((Vue,FS)=>{"use strict";FS.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var OS=Z((Wue,HS)=>{"use strict";var TQ=Ie();HS.exports=function(e,r,t,a,n){n=n||{},a("textposition"),TQ.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var US=Z((Zue,YS)=>{"use strict";var ad=Er(),BS=Ie().isArrayOrTypedArray;function MQ(e){for(var r=ad.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var GS=Ie(),AQ=gr(),kQ=qo(),SQ=qh(),tu=ln(),CQ=Fg(),LQ=Ig(),qQ=LS(),DQ=RS(),EQ=NS(),VS=IS(),PQ=OS(),RQ=US(),zQ=Ie().coercePattern;WS.exports=function(r,t,a,n){function i(d,m){return GS.coerce(r,t,kQ,d,m)}var l=CQ(r,t,n,i);if(l||(t.visible=!1),!!t.visible){LQ(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=qQ(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l{"use strict";var NQ=Af().getAxisGroup;XS.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=NQ(a,o)+l,u=a._alignmentOpts||{},f=n("alignmentgroup"),v=u[s];v||(v=u[s]={});var h=v[f];h?h.traces.push(t):h=v[f]={traces:[t],alignmentIndex:Object.keys(v).length,offsetGroups:{}};var d=n("offsetgroup")||"",m=h.offsetGroups,g=m[d];t._offsetIndex=0,(i!=="group"||d)&&(g||(g=m[d]={offsetIndex:Object.keys(m).length}),t._offsetIndex=g.offsetIndex)}});var KS=Z((Kue,JS)=>{"use strict";var FQ=Ie(),IQ=Hg(),HQ=qo();JS.exports=function(r,t){var a,n,i,l=t.scattermode;function o(h){return FQ.coerce(n._input,n,HQ,h)}if(t.scattermode==="group")for(i=0;i=0;f--){var v=r[f];if(v.type==="scatter"&&v.xaxis===s.xaxis&&v.yaxis===s.yaxis){v.opacity=void 0;break}}}}}});var $S=Z((Que,QS)=>{"use strict";var OQ=Ie(),BQ=Zv();QS.exports=function(e,r){function t(n,i){return OQ.coerce(e,r,BQ,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var Og=Z(($ue,eC)=>{"use strict";var YQ=Hr(),jS=Ie(),UQ=jS.dateTime2ms,nd=jS.incrementMonth,GQ=Bt(),VQ=GQ.ONEAVGMONTH;eC.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var l=r[a+"period"],o;if(YQ(l)){if(l=+l,l<=0)return{vals:n}}else if(typeof l=="string"&&l.charAt(0)==="M"){var s=+l.substring(1);if(s>0&&Math.round(s)===s)o=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",v=i==="end",h=r[a+"period0"],d=UQ(h,u)||0,m=[],g=[],y=[],_=n.length,w=0;w<_;w++){var T=n[w],b,A,C;if(o){for(b=Math.round((T-d)/(o*VQ)),C=nd(d,o*b,u);C>T;)C=nd(C,-o,u);for(;C<=T;)C=nd(C,o,u);A=nd(C,-o,u)}else{for(b=Math.round((T-d)/l),C=d+b*l;C>T;)C-=l;for(;C<=T;)C+=l;A=C-l}m[w]=f?A:v?C:(A+C)/2,g[w]=A,y[w]=C}return{vals:m,starts:g,ends:y}}});var aC=Z((jue,tC)=>{"use strict";var Bg=Tn().hasColorscale,Yg=i0(),rC=ln();tC.exports=function(r,t){rC.hasLines(t)&&Bg(t,"line")&&Yg(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),rC.hasMarkers(t)&&(Bg(t,"marker")&&Yg(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Bg(t,"marker.line")&&Yg(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Ug=Z((efe,nC)=>{"use strict";var At=Ie();nC.exports=function(r,t){for(var a=0;a{"use strict";var iC=Ie();lC.exports=function(r,t){iC.isArrayOrTypedArray(t.selectedpoints)&&iC.tagSelected(r,t)}});var Jg=Z((tfe,hC)=>{"use strict";var oC=Hr(),Wg=Ie(),ec=dt(),sC=Og(),Vg=Bt().BADNUM,Zg=ln(),WQ=aC(),ZQ=Ug(),XQ=Gg();function JQ(e,r){var t=e._fullLayout,a=r._xA=ec.getFromId(e,r.xaxis||"x","x"),n=r._yA=ec.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),l=n.makeCalcdata(r,"y"),o=sC(r,a,"x",i),s=sC(r,n,"y",l),u=o.vals,f=s.vals,v=r._length,h=new Array(v),d=r.ids,m=Xg(r,t,a,n),g=!1,y,_,w,T,b,A;cC(t,r);var C="x",k="y",q;if(m)Wg.pushUnique(m.traceIndices,r.index),y=m.orientation==="v",y?(k="s",q="x"):(C="s",q="y"),b=m.stackgaps==="interpolate";else{var D=fC(r,v);uC(e,r,a,n,u,f,D)}var R=!!r.xperiodalignment,z=!!r.yperiodalignment;for(_=0;__&&h[T].gap;)T--;for(A=h[T].s,w=h.length-1;w>T;w--)h[w].s=A;for(;_{"use strict";dC.exports=id;var KQ=Ie().distinctVals;function id(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";var zn=Hr(),Ll=Ie().isArrayOrTypedArray,au=Bt().BADNUM,QQ=gr(),rc=dt(),$Q=Af().getAxisGroup,ld=pC();function jQ(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;us+l||!zn(o))}for(var f=0;f{"use strict";var xC=Jg(),_C=e2().setGroupPositions;function c$(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;uD[f]&&f{"use strict";var h$=at(),SC=Bt(),tc=SC.BADNUM,CC=SC.LOG_CLIP,MC=CC+.5,AC=CC-.5,od=Ie(),d$=od.segmentsIntersect,kC=od.constrain,t2=qh();LC.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,l=n.type==="log",o=i.type==="log",s=n._length,u=i._length,f=t.backoff,v=a.marker,h=t.connectGaps,d=t.baseTolerance,m=t.shape,g=m==="linear",y=a.fill&&a.fill!=="none",_=[],w=t2.minTolerance,T=r.length,b=new Array(T),A=0,C,k,q,D,R,z,F,I,O,X,J,Y,H,G,Q,K;function ie(Ne){var ae=r[Ne];if(!ae)return!1;var oe=t.linearized?n.l2p(ae.x):n.c2p(ae.x),qe=t.linearized?i.l2p(ae.y):i.c2p(ae.y);if(oe===tc){if(l&&(oe=n.c2p(ae.x,!0)),oe===tc)return!1;o&&qe===tc&&(oe*=Math.abs(n._m*u*(n._m>0?MC:AC)/(i._m*s*(i._m>0?MC:AC)))),oe*=1e3}if(qe===tc){if(o&&(qe=i.c2p(ae.y,!0)),qe===tc)return!1;qe*=1e3}return[oe,qe]}function de(Ne,ae,oe,qe){var Se=oe-Ne,ir=qe-ae,vr=.5-Ne,ur=.5-ae,Mr=Se*Se+ir*ir,Ur=Se*vr+ir*ur;if(Ur>0&&Ur1||Math.abs(vr.y-oe[0][1])>1)&&(vr=[vr.x,vr.y],qe&&ke(vr,Ne)se||Ne[1]B)return[kC(Ne[0],be,se),kC(Ne[1],ge,B)]}function Ye(Ne,ae){if(Ne[0]===ae[0]&&(Ne[0]===be||Ne[0]===se)||Ne[1]===ae[1]&&(Ne[1]===ge||Ne[1]===B))return!0}function Ze(Ne,ae){var oe=[],qe=ze(Ne),Se=ze(ae);return qe&&Se&&Ye(qe,Se)||(qe&&oe.push(qe),Se&&oe.push(Se)),oe}function Pe(Ne,ae,oe){return function(qe,Se){var ir=ze(qe),vr=ze(Se),ur=[];if(ir&&vr&&Ye(ir,vr))return ur;ir&&ur.push(ir),vr&&ur.push(vr);var Mr=2*od.constrain((qe[Ne]+Se[Ne])/2,ae,oe)-((ir||qe)[Ne]+(vr||Se)[Ne]);if(Mr){var Ur;ir&&vr?Ur=Mr>0==ir[Ne]>vr[Ne]?ir:vr:Ur=ir||vr,Ur[Ne]+=Mr}return ur}}var Be;m==="linear"||m==="spline"?Be=Ee:m==="hv"||m==="vh"?Be=Ze:m==="hvh"?Be=Pe(0,be,se):m==="vhv"&&(Be=Pe(1,ge,B));function Oe(Ne,ae){var oe=ae[0]-Ne[0],qe=(ae[1]-Ne[1])/oe,Se=(Ne[1]*ae[0]-ae[1]*Ne[0])/oe;return Se>0?[qe>0?be:se,B]:[qe>0?se:be,ge]}function ne(Ne){var ae=Ne[0],oe=Ne[1],qe=ae===b[A-1][0],Se=oe===b[A-1][1];if(!(qe&&Se))if(A>1){var ir=ae===b[A-2][0],vr=oe===b[A-2][1];qe&&(ae===be||ae===se)&&ir?vr?A--:b[A-1]=Ne:Se&&(oe===ge||oe===B)&&vr?ir?A--:b[A-1]=Ne:b[A++]=Ne}else b[A++]=Ne}function Me(Ne){b[A-1][0]!==Ne[0]&&b[A-1][1]!==Ne[1]&&ne([we,ye]),ne(Ne),Re=null,we=ye=0}var Ce=od.isArrayOrTypedArray(v);function sr(Ne){if(Ne&&f&&(Ne.i=C,Ne.d=r,Ne.trace=a,Ne.marker=Ce?v[Ne.i]:v,Ne.backoff=f),pe=Ne[0]/s,Ae=Ne[1]/u,U=Ne[0]se?se:0,me=Ne[1]B?B:0,U||me){if(!A)b[A++]=[U||Ne[0],me||Ne[1]];else if(Re){var ae=Be(Re,Ne);ae.length>1&&(Me(ae[0]),b[A++]=ae[1])}else Fe=Be(b[A-1],Ne)[0],b[A++]=Fe;var oe=b[A-1];U&&me&&(oe[0]!==U||oe[1]!==me)?(Re&&(we!==U&&ye!==me?ne(we&&ye?Oe(Re,Ne):[we||U,ye||me]):we&&ye&&ne([we,ye])),ne([U,me])):we-U&&ye-me&&ne([U||we,me||ye]),Re=Ne,we=U,ye=me}else Re&&Me(Be(Re,Ne)[0]),b[A++]=Ne}for(C=0;Cee(z,tr))break;q=z,H=O[0]*I[0]+O[1]*I[1],H>J?(J=H,D=z,F=!1):H=r.length||!z)break;sr(z),k=z}}Re&&ne([we||Re[0],ye||Re[1]]),_.push(b.slice(0,A))}var De=m.slice(m.length-1);if(f&&De!=="h"&&De!=="v"){for(var Le=!1,Ue=-1,Xe=[],Ge=0;Ge<_.length;Ge++)for(var He=0;He<_[Ge].length-1;He++){var Ke=_[Ge][He],cr=_[Ge][He+1],lr=h$.applyBackoff(cr,Ke);(lr[0]!==cr[0]||lr[1]!==cr[1])&&(Le=!0),Xe[Ue+1]||(Ue++,Xe[Ue]=[Ke,[lr[0],lr[1]]])}return Le?Xe:_}return _}});var PC=Z((ofe,EC)=>{"use strict";var DC={tonextx:1,tonexty:1,tonext:1};EC.exports=function(r,t,a){var n,i,l,o,s,u={},f=!1,v=-1,h=0,d=-1;for(i=0;i=0?s=d:(s=d=h,h++),s{"use strict";var ai=Ir(),p$=gr(),ac=Ie(),iu=ac.ensureSingle,zC=ac.identity,kt=at(),lu=ln(),m$=qC(),y$=PC(),sd=$y().tester;NC.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,v=y$(r,t,a);if(o=n.selectAll("g.trace").data(v,function(d){return d[0].trace.uid}),o.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),o.order(),g$(r,o,t),f){l&&(s=l());var h=ai.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});h.each(function(){n.selectAll("g.trace").each(function(d,m){RC(r,m,t,d,v,this,i)})})}else o.each(function(d,m){RC(r,m,t,d,v,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function g$(e,r,t){r.each(function(a){var n=iu(ai.select(this),"g","fills");kt.setClipUrl(n,t.layerClipId,e);var i=a[0].trace,l=[];i._ownfill&&l.push("_ownFill"),i._nexttrace&&l.push("_nextFill");var o=n.selectAll("g").data(l,zC);o.enter().append("g"),o.exit().each(function(s){i[s]=null}).remove(),o.order().each(function(s){i[s]=iu(ai.select(this),"path","js-fill")})})}function RC(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;b$(e,r,t,a,n);var u=!!l&&l.duration>0;function f(Pe){return u?Pe.transition():Pe}var v=t.xaxis,h=t.yaxis,d=a[0].trace,m=d.line,g=ai.select(i),y=iu(g,"g","errorbars"),_=iu(g,"g","lines"),w=iu(g,"g","points"),T=iu(g,"g","text");if(p$.getComponentMethod("errorbars","plot")(e,y,t,l),d.visible!==!0)return;f(g).style("opacity",d.opacity);var b,A,C=d.fill.charAt(d.fill.length-1);C!=="x"&&C!=="y"&&(C="");var k,q;C==="y"?(k=1,q=h.c2p(0,!0)):C==="x"&&(k=0,q=v.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=g;var D="",R=[],z=d._prevtrace,F=null,I=null;z&&(D=z._prevRevpath||"",A=z._nextFill,R=z._ownPolygons,F=z._fillsegments,I=z._fillElement);var O,X,J="",Y="",H,G,Q,K,ie,de,pe=[];d._polygons=[];var Ae=[],ee=[],ke=ac.noop;if(b=d._ownFill,lu.hasLines(d)||d.fill!=="none"){A&&A.datum(a),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(H=kt.steps(m.shape),G=kt.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?H=G=function(Pe){var Be=Pe[Pe.length-1];return Pe.length>1&&Pe[0][0]===Be[0]&&Pe[0][1]===Be[1]?kt.smoothclosed(Pe.slice(1),m.smoothing):kt.smoothopen(Pe,m.smoothing)}:H=G=function(Pe){return"M"+Pe.join("L")},Q=function(Pe){return G(Pe.reverse())},ee=m$(a,{xaxis:v,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(m.width||1,3)/4,shape:m.shape,backoff:m.backoff,simplify:m.simplify,fill:d.fill}),Ae=new Array(ee.length);var ve=0;for(s=0;s=o[0]&&g.x<=o[1]&&g.y>=s[0]&&g.y<=s[1]}),h=Math.ceil(v.length/f),d=0;n.forEach(function(g,y){var _=g[0].trace;lu.hasMarkers(_)&&_.marker.maxdisplayed>0&&y{"use strict";IC.exports={container:"marker",min:"cmin",max:"cmax"}});var OC=Z((ffe,HC)=>{"use strict";var ud=dt();HC.exports=function(r,t,a){var n={},i={_fullLayout:a},l=ud.getFromTrace(i,t,"x"),o=ud.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=ud.tickText(l,l.c2l(s),!0).text,n.yLabel=ud.tickText(o,o.c2l(u),!0).text,n}});var o2=Z((cfe,BC)=>{"use strict";var n2=Ir(),ou=at(),x$=gr();function _$(e){var r=n2.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=n2.select(this),n=t.trace||t[0].trace;i2(a,n,e)}),r.selectAll("g.text").each(function(t){var a=n2.select(this),n=t.trace||t[0].trace;l2(a,n,e)}),r.selectAll("g.trace path.js-line").call(ou.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(ou.fillGroupStyle,e,!1),x$.getComponentMethod("errorbars","style")(r)}function i2(e,r,t){ou.pointStyle(e.selectAll("path.point"),r,t)}function l2(e,r,t){ou.textPointStyle(e.selectAll("text"),r,t)}function w$(e,r,t){var a=r[0].trace;a.selectedpoints?(ou.selectedPointStyle(t.selectAll("path.point"),a),ou.selectedTextStyle(t.selectAll("text"),a)):(i2(t,a,e),l2(t,a,e))}BC.exports={style:_$,stylePoints:i2,styleText:l2,styleOnSelect:w$}});var UC=Z((vfe,YC)=>{"use strict";var su=Er(),T$=ln();YC.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&su.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,l=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&su.opacity(i)?i:l&&su.opacity(l)&&(t.mlw||((r.marker||{}).line||{}).width)?l:"",n?su.opacity(n)<.3?su.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&su.opacity(a)&&T$.hasLines(r)&&r.line.width?a:r.fillcolor)}});var WC=Z((hfe,VC)=>{"use strict";var fd=Ie(),GC=ki(),M$=gr(),A$=UC(),s2=Er(),k$=fd.fillText;VC.exports=function(r,t,a,n){var i=r.cd,l=i[0].trace,o=r.xa,s=r.ya,u=o.c2p(t),f=s.c2p(a),v=[u,f],h=l.hoveron||"",d=l.mode.indexOf("markers")!==-1?3:.5,m=!!l.xperiodalignment,g=!!l.yperiodalignment;if(h.indexOf("points")!==-1){var y=function(Y){if(m){var H=o.c2p(Y.xStart),G=o.c2p(Y.xEnd);return u>=Math.min(H,G)&&u<=Math.max(H,G)?0:1/0}var Q=Math.max(3,Y.mrc||0),K=1-1/Q,ie=Math.abs(o.c2p(Y.x)-u);return ie=Math.min(H,G)&&f<=Math.max(H,G)?0:1/0}var Q=Math.max(3,Y.mrc||0),K=1-1/Q,ie=Math.abs(s.c2p(Y.y)-f);return iepe!=B>=pe&&(be=ke[ee-1][0],se=ke[ee][0],B-ge&&(ve=be+(se-be)*(pe-ge)/(B-ge),Q=Math.min(Q,ve),K=Math.max(K,ve)));return Q=Math.max(Q,0),K=Math.min(K,o._length),{x0:Q,x1:K,y0:pe,y1:pe}}if(h.indexOf("fills")!==-1&&l._fillElement){var O=F(l._fillElement)&&!F(l._fillExclusionElement);if(O){var X=I(l._polygons);X===null&&(X={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var J=s2.defaultLine;return s2.opacity(l.fillcolor)?J=l.fillcolor:s2.opacity((l.line||{}).color)&&(J=l.line.color),fd.extendFlat(r,{distance:r.maxHoverDistance,x0:X.x0,x1:X.x1,y0:X.y0,y1:X.y1,color:J,hovertemplate:!1}),delete r.index,l.text&&!fd.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var JC=Z((dfe,XC)=>{"use strict";var ZC=ln();XC.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o=a[0].trace,s,u,f,v,h=!ZC.hasMarkers(o)&&!ZC.hasText(o);if(h)return[];if(t===!1)for(s=0;s{"use strict";KC.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var rL=Z((mfe,eL)=>{"use strict";var nc=gr().traceIs,u2=Lm();eL.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(S$(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function S$(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=C$(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var l=a+"calendar",o=i[l],s={noMultiCategory:!nc(i,"cartesian")||nc(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,jC(i,a)){var u=$C(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(jC(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function $C(e){return{v:"x",h:"y"}[e.orientation||"v"]}function jC(e,r){var t=$C(e),a=nc(e,"box-violin"),n=nc(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var aL=Z((yfe,tL)=>{"use strict";var L$=an().isTypedArraySpec;function q$(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,l;if(r.axData)n=r.axData;else for(n=[],i=0;i0||L$(i),o;l&&(o="array");var s=a("categoryorder",o),u;s==="array"&&(u=a("categoryarray")),!l&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=q$(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var lL=Z((gfe,iL)=>{"use strict";var nL=bn().mix,D$=hi(),E$=Ie();iL.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(q,D){return E$.coerce2(r,t,n.attributes,q,D)}var o=l("linecolor",i),s=l("linewidth"),u=a("showline",n.showLine||!!o||!!s);u||(delete t.linecolor,delete t.linewidth);var f=nL(i,n.bgColor,n.blend||D$.lightFraction).toRgbString(),v=l("gridcolor",f),h=l("gridwidth"),d=l("griddash"),m=a("showgrid",n.showGrid||!!v||!!h||!!d);if(m||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var g=nL(t.gridcolor,n.bgColor,67).toRgbString(),y=l("minor.gridcolor",g),_=l("minor.gridwidth",t.gridwidth||1),w=l("minor.griddash",t.griddash||"solid"),T=a("minor.showgrid",!!y||!!_||!!w);T||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var b=l("zerolinelayer"),A=l("zerolinecolor",i),C=l("zerolinewidth"),k=a("zeroline",n.showGrid||!!A||!!C);k||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var c2=Z((bfe,vL)=>{"use strict";var oL=Hr(),P$=gr(),ic=Ie(),R$=ct(),z$=Jn(),f2=Xn(),sL=$p(),uL=em(),N$=am(),F$=nm(),I$=aL(),H$=lL(),O$=Jm(),fL=b0(),cd=da().WEEKDAY_PATTERN,B$=da().HOUR_PATTERN;vL.exports=function(r,t,a,n,i){var l=n.letter,o=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},v=t.type||f.type||"-",h;if(v==="date"){var d=P$.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(h=a("ticklabelmode"))}!n.noTicklabelindex&&(v==="date"||v==="linear")&&a("ticklabelindex");var m="";(!n.noTicklabelposition||v==="multicategory")&&(m=ic.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:l==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",m.indexOf("inside")!==-1?"hide past domain":v==="category"||v==="multicategory"?"allow":"hide past div"),fL(t,i),O$(r,t,a,n),I$(r,t,a,n),v!=="category"&&!n.noHover&&a("hoverformat");var g=a("color"),y=g!==f2.color.dflt?g:o.color,_=s.label||i._dfltTitle[l];if(F$(r,t,a,v,n),!u)return t;a("title.text",_),ic.coerceFont(a,"title.font",o,{overrideDflt:{size:ic.bigFont(o.size),color:y}}),sL(r,t,a,v);var w=n.hasMinor;if(w&&(R$.newContainer(t,"minor"),sL(r,t,a,v,{isMinor:!0})),N$(r,t,a,v,n),uL(r,t,a,n),w){var T=n.isMinor;n.isMinor=!0,uL(r,t,a,n),n.isMinor=T}H$(r,t,a,{dfltColor:g,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:w,attributes:f2}),w&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var b=v==="multicategory";if(!n.noTickson&&(v==="category"||b)&&(t.ticks||t.showgrid)&&(b?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),b){var A=a("showdividers");A&&(a("dividercolor"),a("dividerwidth"))}if(v==="date")if(z$(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Y$}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var C=0;C=2){var l="",o,s;if(i.length===2){for(o=0;o<2;o++)if(s=cL(i[o]),s){l=cd;break}}var u=a("pattern",l);if(u===cd)for(o=0;o<2;o++)s=cL(i[o]),s&&(r.bounds[o]=i[o]=s-1);if(u)for(o=0;o<2;o++)switch(s=i[o],u){case cd:if(!oL(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[o]=i[o]=s;break;case B$:if(!oL(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[o]=i[o]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var G$=Hr(),vd=Ie();hL.exports=function(r,t,a,n){var i=n.counterAxes||[],l=n.overlayableAxes||[],o=n.letter,s=n.grid,u=n.overlayingDomain,f,v,h,d,m,g;s&&(v=s._domains[o][s._axisMap[t._id]],f=s._anchors[t._id],v&&(h=s[o+"side"].split(" ")[0],d=s.domain[o][h==="right"||h==="top"?1:0])),v=v||[0,1],f=f||(G$(r.position)?"free":i[0]||"free"),h=h||(o==="x"?"bottom":"left"),d=d||0,m=0,g=!1;var y=vd.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),_=vd.coerce(r,t,{side:{valType:"enumerated",values:o==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(y==="free"){if(o==="y"){var w=a("autoshift");w&&(d=_==="left"?u[0]:u[1],g=t.automargin?t.automargin:!0,m=_==="left"?-3:3),a("shift",m)}a("position",d)}a("automargin",g);var T=!1;if(l.length&&(T=vd.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!T){var b=a("domain",v);b[0]>b[1]-1/4096&&(t.domain=v),vd.noneOrAll(r.domain,t.domain,v),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var wL=Z((_fe,_L)=>{"use strict";var Ro=Ie(),dL=Er(),V$=bi().isUnifiedHover,W$=_y(),pL=ct(),Z$=ds(),mL=Xn(),X$=rL(),yL=c2(),J$=Af(),gL=v2(),d2=Xt(),Di=d2.id2name,bL=d2.name2id,K$=da().AX_ID_PATTERN,xL=gr(),hd=xL.traceIs,h2=xL.getComponentMethod;function dd(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}_L.exports=function(r,t,a){var n=t.autotypenumbers,i={},l={},o={},s={},u={},f={},v={},h={},d={},m={},g,y;for(g=0;g{"use strict";var Q$=Ir(),TL=gr(),pd=Ie(),vn=at(),md=dt();ML.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){md.redrawComponents(r);return}function l(y){var _=y.xaxis,w=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(vn.setTranslate,0,0).call(vn.setScale,1,1),y.plot.call(vn.setTranslate,_._offset,w._offset).call(vn.setScale,1,1);var T=y.plot.selectAll(".scatterlayer .trace");T.selectAll(".point").call(vn.setPointGroupScale,1,1),T.selectAll(".textpoint").call(vn.setTextPointsScale,1,1),T.call(vn.hideOutsideRangePoints,y)}function o(y,_){var w=y.plotinfo,T=w.xaxis,b=w.yaxis,A=T._length,C=b._length,k=!!y.xr1,q=!!y.yr1,D=[];if(k){var R=pd.simpleMap(y.xr0,T.r2l),z=pd.simpleMap(y.xr1,T.r2l),F=R[1]-R[0],I=z[1]-z[0];D[0]=(R[0]*(1-_)+_*z[0]-R[0])/(R[1]-R[0])*A,D[2]=A*(1-_+_*I/F),T.range[0]=T.l2r(R[0]*(1-_)+_*z[0]),T.range[1]=T.l2r(R[1]*(1-_)+_*z[1])}else D[0]=0,D[2]=A;if(q){var O=pd.simpleMap(y.yr0,b.r2l),X=pd.simpleMap(y.yr1,b.r2l),J=O[1]-O[0],Y=X[1]-X[0];D[1]=(O[1]*(1-_)+_*X[1]-O[1])/(O[0]-O[1])*C,D[3]=C*(1-_+_*Y/J),b.range[0]=T.l2r(O[0]*(1-_)+_*X[0]),b.range[1]=b.l2r(O[1]*(1-_)+_*X[1])}else D[1]=0,D[3]=C;md.drawOne(r,T,{skipTitle:!0}),md.drawOne(r,b,{skipTitle:!0}),md.redrawComponents(r,[T._id,b._id]);var H=k?A/D[2]:1,G=q?C/D[3]:1,Q=k?D[0]:0,K=q?D[1]:0,ie=k?D[0]/D[2]*A:0,de=q?D[1]/D[3]*C:0,pe=T._offset-ie,Ae=b._offset-de;w.clipRect.call(vn.setTranslate,Q,K).call(vn.setScale,1/H,1/G),w.plot.call(vn.setTranslate,pe,Ae).call(vn.setScale,H,G),vn.setPointGroupScale(w.zoomScalePts,1/H,1/G),vn.setTextPointsScale(w.zoomScaleTxt,1/H,1/G)}var s;n&&(s=n());function u(){for(var y={},_=0;_a.duration?(u(),d=window.cancelAnimationFrame(g)):d=window.requestAnimationFrame(g)}return v=Date.now(),d=window.requestAnimationFrame(g),Promise.resolve()}});var bd=Z(Ta=>{"use strict";var gd=Ir(),kL=gr(),zo=Ie(),$$=Pt(),j$=at(),SL=Np().getModuleCalcData,ql=Xt(),ni=da(),ej=fo(),Jr=zo.ensureSingle;function yd(e,r,t){return zo.ensureSingle(e,r,t,function(a){a.datum(t)})}var No=ni.zindexSeparator;Ta.name="cartesian";Ta.attr=["xaxis","yaxis"];Ta.idRoot=["x","y"];Ta.idRegex=ni.idRegex;Ta.attrRegex=ni.attrRegex;Ta.attributes=QC();Ta.layoutAttributes=Xn();Ta.supplyLayoutDefaults=wL();Ta.transitionAxes=AL();Ta.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,l=i,o={},s={},u,f,v;for(u=0;u0){var d=h.id;if(d.indexOf(No)!==-1)continue;d+=No+(u+1),h=zo.extendFlat({},h,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var m=[],g,y=0;y1&&(A+=No+b),T.push(o+A),l=0;l1,v=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=Jr(a,"path","xlines-above"),r.ylines=Jr(a,"path","ylines-above"),r.xaxislayer=Jr(a,"g","xaxislayer-above"),r.yaxislayer=Jr(a,"g","yaxislayer-above");else{if(!l){var h=Jr(a,"g","layer-subplot");r.shapelayer=Jr(h,"g","shapelayer"),r.imagelayer=Jr(h,"g","imagelayer"),v&&f?(r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer):(r.minorGridlayer=Jr(a,"g","minor-gridlayer"),r.gridlayer=Jr(a,"g","gridlayer"),r.zerolinelayer=Jr(a,"g","zerolinelayer"));var d=Jr(a,"g","layer-between");r.shapelayerBetween=Jr(d,"g","shapelayer"),r.imagelayerBetween=Jr(d,"g","imagelayer"),Jr(a,"path","xlines-below"),Jr(a,"path","ylines-below"),r.overlinesBelow=Jr(a,"g","overlines-below"),Jr(a,"g","xaxislayer-below"),Jr(a,"g","yaxislayer-below"),r.overaxesBelow=Jr(a,"g","overaxes-below")}r.overplot=Jr(a,"g","overplot"),r.plot=Jr(r.overplot,"g",n),v&&f?r.zerolinelayerAbove=v.zerolinelayerAbove:r.zerolinelayerAbove=Jr(a,"g","zerolinelayer-above"),l||(r.xlines=Jr(a,"path","xlines-above"),r.ylines=Jr(a,"path","ylines-above"),r.overlinesAbove=Jr(a,"g","overlines-above"),Jr(a,"g","xaxislayer-above"),Jr(a,"g","yaxislayer-above"),r.overaxesAbove=Jr(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+o),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+o),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var m=v.plotgroup,g=n+"-x",y=n+"-y";r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer,r.zerolinelayerAbove=v.zerolinelayerAbove,Jr(v.overlinesBelow,"path",g),Jr(v.overlinesBelow,"path",y),Jr(v.overaxesBelow,"g",g),Jr(v.overaxesBelow,"g",y),r.plot=Jr(v.overplot,"g",n),Jr(v.overlinesAbove,"path",g),Jr(v.overlinesAbove,"path",y),Jr(v.overaxesAbove,"g",g),Jr(v.overaxesAbove,"g",y),r.xlines=m.select(".overlines-"+o).select("."+g),r.ylines=m.select(".overlines-"+s).select("."+y),r.xaxislayer=m.select(".overaxes-"+o).select("."+g),r.yaxislayer=m.select(".overaxes-"+s).select("."+y)}l||(u||(yd(r.minorGridlayer,"g",r.xaxis._id),yd(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(_){return _[0]}).sort(ql.idSort),yd(r.gridlayer,"g",r.xaxis._id),yd(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(_){return _[0]}).sort(ql.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function qL(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=gd.select(this);f.remove(),DL(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],l=0;l{"use strict";var xd=ln();EL.exports={hasLines:xd.hasLines,hasMarkers:xd.hasMarkers,hasText:xd.hasText,isBubble:xd.isBubble,attributes:qo(),layoutAttributes:Zv(),supplyDefaults:ZS(),crossTraceDefaults:KS(),supplyLayoutDefaults:$S(),calc:Jg().calc,crossTraceCalc:TC(),arraysToCalcdata:Ug(),plot:FC(),colorbar:a2(),formatLabels:OC(),style:o2().style,styleOnSelect:o2().styleOnSelect,hoverPoints:WC(),selectPoints:JC(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:bd(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var NL=Z((Afe,zL)=>{"use strict";var tj=Ir(),aj=Er(),RL=fg(),p2=Ie(),nj=p2.strScale,ij=p2.strRotate,lj=p2.strTranslate;zL.exports=function(r,t,a){var n=r.node(),i=RL[a.arrowhead||0],l=RL[a.startarrowhead||0],o=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,v=i.backoff*o+a.standoff,h=l.backoff*s+a.startstandoff,d,m,g,y;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},m={x:+r.attr("x2"),y:+r.attr("y2")};var _=d.x-m.x,w=d.y-m.y;if(g=Math.atan2(w,_),y=g+Math.PI,v&&h&&v+h>Math.sqrt(_*_+w*w)){O();return}if(v){if(v*v>_*_+w*w){O();return}var T=v*Math.cos(g),b=v*Math.sin(g);m.x+=T,m.y+=b,r.attr({x2:m.x,y2:m.y})}if(h){if(h*h>_*_+w*w){O();return}var A=h*Math.cos(g),C=h*Math.sin(g);d.x-=A,d.y-=C,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var k=n.getTotalLength(),q="";if(k{"use strict";var FL=Ir(),m2=gr(),oj=Pt(),El=Ie(),y2=El.strTranslate,oc=dt(),Fo=Er(),Ji=at(),IL=ki(),g2=xa(),b2=wl(),lc=Qn(),sj=ct().arrayEditor,uj=NL();BL.exports={draw:fj,drawOne:HL,drawRaw:OL};function fj(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Se="right":Se="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Se]}for(var ge=!1,B=["x","y"],re=0;re1)&&(we===me?(tr=ye.r2fraction(r["a"+U]),(tr<0||tr>1)&&(ge=!0)):ge=!0),Be=ye._offset+ye.r2p(r[U]),Me=.5}else{var De=sr==="domain";U==="x"?(ne=r[U],Be=De?ye._offset+ye._length*ne:Be=o.l+o.w*ne):(ne=1-r[U],Be=De?ye._offset+ye._length*ne:Be=o.t+o.h*ne),Me=r.showarrow?.5:ne}if(r.showarrow){Pe.head=Be;var Le=r["a"+U];if(Ce=Fe*se(.5,r.xanchor)-Ee*se(.5,r.yanchor),we===me){var Ue=oc.getRefType(we);Ue==="domain"?(U==="y"&&(Le=1-Le),Pe.tail=ye._offset+ye._length*Le):Ue==="paper"?U==="y"?(Le=1-Le,Pe.tail=o.t+o.h*Le):Pe.tail=o.l+o.w*Le:Pe.tail=ye._offset+ye.r2p(Le),Oe=Ce}else Pe.tail=Be+Le,Oe=Ce+Le;Pe.text=Pe.tail+Ce;var Xe=l[U==="x"?"width":"height"];if(me==="paper"&&(Pe.head=El.constrain(Pe.head,1,Xe-1)),we==="pixel"){var Ge=-Math.max(Pe.tail-3,Pe.text),He=Math.min(Pe.tail+3,Pe.text)-Xe;Ge>0?(Pe.tail+=Ge,Pe.text+=Ge):He>0&&(Pe.tail-=He,Pe.text-=He)}Pe.tail+=Ze,Pe.head+=Ze}else Ce=ze*se(Me,Ye),Oe=Ce,Pe.text=Be+Ce;Pe.text+=Ze,Ce+=Ze,Oe+=Ze,r["_"+U+"padplus"]=ze/2+Oe,r["_"+U+"padminus"]=ze/2-Oe,r["_"+U+"size"]=ze,r["_"+U+"shift"]=Ce}if(ge){k.remove();return}var Ke=0,cr=0;if(r.align!=="left"&&(Ke=(ee-pe)*(r.align==="center"?.5:1)),r.valign!=="top"&&(cr=(ke-Ae)*(r.valign==="middle"?.5:1)),ie)K.select("svg").attr({x:R+Ke-1,y:R+cr}).call(Ji.setClipUrl,F?g:null,e);else{var lr=R+cr-de.top,Ne=R+Ke-de.left;J.call(g2.positionText,Ne,lr).call(Ji.setClipUrl,F?g:null,e)}I.select("rect").call(Ji.setRect,R,R,ee,ke),z.call(Ji.setRect,q/2,q/2,ve-q,be-q),k.call(Ji.setTranslate,Math.round(y.x.text-ve/2),Math.round(y.y.text-be/2)),T.attr({transform:"rotate("+_+","+y.x.text+","+y.y.text+")"});var ae=function(qe,Se){w.selectAll(".annotation-arrow-g").remove();var ir=y.x.head,vr=y.y.head,ur=y.x.tail+qe,Mr=y.y.tail+Se,Ur=y.x.text+qe,$r=y.y.text+Se,Vr=El.rotationXYMatrix(_,Ur,$r),Ct=El.apply2DTransform(Vr),ea=El.apply2DTransform2(Vr),ka=+z.attr("width"),ra=+z.attr("height"),pn=Ur-.5*ka,Ia=pn+ka,ta=$r-.5*ra,Ha=ta+ra,yr=[[pn,ta,pn,Ha],[pn,Ha,Ia,Ha],[Ia,Ha,Ia,ta],[Ia,ta,pn,ta]].map(ea);if(!yr.reduce(function(nt,sa){return nt^!!El.segmentsIntersect(ir,vr,ir+1e6,vr+1e6,sa[0],sa[1],sa[2],sa[3])},!1)){yr.forEach(function(nt){var sa=El.segmentsIntersect(ur,Mr,ir,vr,nt[0],nt[1],nt[2],nt[3]);sa&&(ur=sa.x,Mr=sa.y)});var lt=r.arrowwidth,Wr=r.arrowcolor,mt=r.arrowside,Tt=w.append("g").style({opacity:Fo.opacity(Wr)}).classed("annotation-arrow-g",!0),ot=Tt.append("path").attr("d","M"+ur+","+Mr+"L"+ir+","+vr).style("stroke-width",lt+"px").call(Fo.stroke,Fo.rgb(Wr));if(uj(ot,mt,r),s.annotationPosition&&ot.node().parentNode&&!a){var yt=ir,Sa=vr;if(r.standoff){var aa=Math.sqrt(Math.pow(ir-ur,2)+Math.pow(vr-Mr,2));yt+=r.standoff*(ur-ir)/aa,Sa+=r.standoff*(Mr-vr)/aa}var In=Tt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ur-yt)+","+(Mr-Sa),transform:y2(yt,Sa)}).style("stroke-width",lt+6+"px").call(Fo.stroke,"rgba(0,0,0,0)").call(Fo.fill,"rgba(0,0,0,0)"),Hn,Wt;lc.init({element:In.node(),gd:e,prepFn:function(){var nt=Ji.getTranslate(k);Hn=nt.x,Wt=nt.y,n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(nt,sa){var Ul=Ct(Hn,Wt),Gl=Ul[0]+nt,rl=Ul[1]+sa;k.call(Ji.setTranslate,Gl,rl),d("x",Dl(n,nt,"x",o,r)),d("y",Dl(i,sa,"y",o,r)),r.axref===r.xref&&d("ax",Dl(n,nt,"ax",o,r)),r.ayref===r.yref&&d("ay",Dl(i,sa,"ay",o,r)),Tt.attr("transform",y2(nt,sa)),T.attr({transform:"rotate("+_+","+Gl+","+rl+")"})},doneFn:function(){m2.call("_guiRelayout",e,m());var nt=document.querySelector(".js-notes-box-panel");nt&&nt.redraw(nt.selectedObj)}})}}};if(r.showarrow&&ae(0,0),b){var oe;lc.init({element:k.node(),gd:e,prepFn:function(){oe=T.attr("transform")},moveFn:function(qe,Se){var ir="pointer";if(r.showarrow)r.axref===r.xref?d("ax",Dl(n,qe,"ax",o,r)):d("ax",r.ax+qe),r.ayref===r.yref?d("ay",Dl(i,Se,"ay",o.w,r)):d("ay",r.ay+Se),ae(qe,Se);else{if(a)return;var vr,ur;if(n)vr=Dl(n,qe,"x",o,r);else{var Mr=r._xsize/o.w,Ur=r.x+(r._xshift-r.xshift)/o.w-Mr/2;vr=lc.align(Ur+qe/o.w,Mr,0,1,r.xanchor)}if(i)ur=Dl(i,Se,"y",o,r);else{var $r=r._ysize/o.h,Vr=r.y-(r._yshift+r.yshift)/o.h-$r/2;ur=lc.align(Vr-Se/o.h,$r,0,1,r.yanchor)}d("x",vr),d("y",ur),(!n||!i)&&(ir=lc.getCursor(n?.5:vr,i?.5:ur,r.xanchor,r.yanchor))}T.attr({transform:y2(qe,Se)+oe}),b2(k,ir)},clickFn:function(qe,Se){r.captureevents&&e.emit("plotly_clickannotation",C(Se))},doneFn:function(){b2(k),m2.call("_guiRelayout",e,m());var qe=document.querySelector(".js-notes-box-panel");qe&&qe.redraw(qe.selectedObj)}})}}s.annotationText?J.call(g2.makeEditable,{delegate:k,gd:e}).call(Y).on("edit",function(G){r.text=G,this.call(Y),d("text",G),n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),m2.call("_guiRelayout",e,m())}):J.call(Y)}});var ZL=Z((Sfe,WL)=>{"use strict";var YL=Ie(),cj=gr(),UL=ct().arrayEditor;WL.exports={hasClickToShow:vj,onClick:hj};function vj(e,r){var t=VL(e,r);return t.on.length>0||t.explicitOff.length>0}function hj(e,r){var t=VL(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},l=e._fullLayout.annotations,o,s;if(a.length||n.length){for(o=0;o{"use strict";var x2=Ie(),uu=Er();XL.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),l=n("bordercolor"),o=uu.opacity(l);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),x2.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var v=n("arrowside"),h,d;v.indexOf("end")!==-1&&(h=n("arrowhead"),d=n("arrowsize")),v.indexOf("start")!==-1&&(n("startarrowhead",h),n("startarrowsize",d)),n("arrowcolor",o?t.bordercolor:uu.defaultLine),n("arrowwidth",(o&&s||1)*2),n("standoff"),n("startstandoff")}var m=n("hovertext"),g=a.hoverlabel||{};if(m){var y=n("hoverlabel.bgcolor",g.bgcolor||(uu.opacity(i)?uu.rgb(i):uu.defaultLine)),_=n("hoverlabel.bordercolor",g.bordercolor||uu.contrast(y)),w=x2.extendFlat({},g.font);w.color||(w.color=_),x2.coerceFont(n,"hoverlabel.font",w)}n("captureevents",!!m)}});var KL=Z((Lfe,JL)=>{"use strict";var w2=Ie(),Io=dt(),dj=Jn(),pj=_2(),mj=js();JL.exports=function(r,t){dj(r,t,{name:"annotations",handleItemDefaults:yj})};function yj(e,r,t){function a(T,b){return w2.coerce(e,r,mj,T,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){pj(e,r,t,a);for(var l=r.showarrow,o=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var v=o[f],h=Io.coerceRef(e,r,u,v,"","paper");if(h!=="paper"){var d=Io.getFromId(u,h);d._annIndices.push(r._index)}if(Io.coercePosition(r,u,a,h,v,.5),l){var m="a"+v,g=Io.coerceRef(e,r,u,m,"pixel",["pixel","paper"]);g!=="pixel"&&g!==h&&(g=r[m]="pixel");var y=g==="pixel"?s[f]:.4;Io.coercePosition(r,u,a,g,m,y)}a(v+"anchor"),a(v+"shift")}if(w2.noneOrAll(e,r,["x","y"]),l&&w2.noneOrAll(e,r,["ax","ay"]),i){var _=a("xclick"),w=a("yclick");r._xclick=_===void 0?r.x:Io.cleanPosition(_,u,r.xref),r._yclick=w===void 0?r.y:Io.cleanPosition(w,u,r.yref)}}}});var jL=Z((qfe,$L)=>{"use strict";var T2=Ie(),Ho=dt(),gj=_d().draw;$L.exports=function(r){var t=r._fullLayout,a=T2.filterVisible(t.annotations);if(a.length&&r._fullData.length)return T2.syncOrAsync([gj,bj],r)};function bj(e){var r=e._fullLayout;T2.filterVisible(r.annotations).forEach(function(t){var a=Ho.getFromId(e,t.xref),n=Ho.getFromId(e,t.yref),i=Ho.getRefType(t.xref),l=Ho.getRefType(t.yref);t._extremes={},i==="range"&&QL(t,a),l==="range"&&QL(t,n)})}function QL(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],l=e[a+"ref"],o=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],v=3*e.arrowsize*e.arrowwidth||0,h=v+f,d=v-f,m=3*e.startarrowsize*e.arrowwidth||0,g=m+f,y=m-f,_;if(o===l){var w=Ho.findExtremes(r,[r.r2c(n)],{ppadplus:h,ppadminus:d}),T=Ho.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,g),ppadminus:Math.max(u,y)});_={min:[w.min[0],T.min[0]],max:[w.max[0],T.max[0]]}}else g=i?g+i:g,y=i?y-i:y,_=Ho.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,h,g),ppadminus:Math.max(u,d,y)});e._extremes[t]=_}});var rq=Z((Dfe,eq)=>{"use strict";var xj=Hr(),_j=vv();eq.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(!(i||l))return;var o=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function v(d){var m=u[d],g=null;i?g=_j(m,t.range):g=Math.pow(10,m),xj(g)||(g=null),n(f+d,g)}for(var h=0;h{"use strict";var M2=_d(),tq=ZL();aq.exports={moduleType:"component",name:"annotations",layoutAttributes:js(),supplyLayoutDefaults:KL(),includeBasePlot:Yf()("annotations"),calcAutorange:jL(),draw:M2.draw,drawOne:M2.drawOne,drawRaw:M2.drawRaw,hasClickToShow:tq.hasClickToShow,onClick:tq.onClick,convertCoords:rq()}});var wd=Z((Pfe,iq)=>{"use strict";var ft=js(),wj=pi().overrideAll,Tj=ct().templatedArray;iq.exports=wj(Tj("annotation",{visible:ft.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:ft.xanchor,xshift:ft.xshift,yanchor:ft.yanchor,yshift:ft.yshift,text:ft.text,textangle:ft.textangle,font:ft.font,width:ft.width,height:ft.height,opacity:ft.opacity,align:ft.align,valign:ft.valign,bgcolor:ft.bgcolor,bordercolor:ft.bordercolor,borderpad:ft.borderpad,borderwidth:ft.borderwidth,showarrow:ft.showarrow,arrowcolor:ft.arrowcolor,arrowhead:ft.arrowhead,startarrowhead:ft.startarrowhead,arrowside:ft.arrowside,arrowsize:ft.arrowsize,startarrowsize:ft.startarrowsize,arrowwidth:ft.arrowwidth,standoff:ft.standoff,startstandoff:ft.startstandoff,hovertext:ft.hovertext,hoverlabel:ft.hoverlabel,captureevents:ft.captureevents}),"calc","from-root")});var oq=Z((Rfe,lq)=>{"use strict";var A2=Ie(),Mj=dt(),Aj=Jn(),kj=_2(),Sj=wd();lq.exports=function(r,t,a){Aj(r,t,{name:"annotations",handleItemDefaults:Cj,fullLayout:a.fullLayout})};function Cj(e,r,t,a){function n(o,s){return A2.coerce(e,r,Sj,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],Mj.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(kj(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),A2.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),A2.noneOrAll(e,r,["ax","ay"])))}});var cq=Z((zfe,fq)=>{"use strict";var sq=Ie(),uq=dt();fq.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function k2(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function qj(e,r){var t=k2(e.projection,k2(e.view,k2(e.model,[r[0],r[1],r[2],1])));return t}vq.exports=qj});var pq=Z((Ffe,dq)=>{"use strict";var Dj=_d().drawRaw,Ej=hq(),Pj=["x","y","z"];dq.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){o=!0;break}}o?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(l._pdata=Ej(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),Dj(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var gq=Z((Ife,yq)=>{"use strict";var Rj=gr(),mq=Ie();yq.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:wd()}}},layoutAttributes:wd(),handleDefaults:oq(),includeBasePlot:zj,convert:cq(),draw:pq()};function zj(e,r){var t=Rj.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var bq=js(),xq=ha(),_q=qo().line,Nj=mi().dash,ii=Yt().extendFlat,Fj=ct().templatedArray,Hfe=Bf(),fu=Gn(),Ij=zi().shapeTexttemplateAttrs,Hj=kv();wq.exports=Fj("shape",{visible:ii({},fu.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:ii({},fu.legend,{editType:"calc+arraydraw"}),legendgroup:ii({},fu.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:ii({},fu.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:xq({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:ii({},fu.legendrank,{editType:"calc+arraydraw"}),legendwidth:ii({},fu.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:ii({},bq.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:ii({},bq.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:ii({},_q.color,{editType:"arraydraw"}),width:ii({},_q.width,{editType:"calc+arraydraw"}),dash:ii({},Nj,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Ij({},{keys:Object.keys(Hj)}),font:xq({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var Aq=Z((Bfe,Mq)=>{"use strict";var sc=Ie(),cu=dt(),Oj=Jn(),Bj=S2(),Tq=Al();Mq.exports=function(r,t){Oj(r,t,{name:"shapes",handleItemDefaults:Uj})};function Yj(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Uj(e,r,t){function a(G,Q){return sc.coerce(e,r,Bj,G,Q)}r._isShape=!0;var n=a("visible");if(n){var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),sc.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var l=a("path"),o=l?"path":"rect",s=a("type",o),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));for(var v=a("xsizemode"),h=a("ysizemode"),d=["x","y"],m=0;m<2;m++){var g=d[m],y=g+"anchor",_=g==="x"?v:h,w={_fullLayout:t},T,b,A,C=cu.coerceRef(e,r,w,g,void 0,"paper"),k=cu.getRefType(C);if(k==="range"?(T=cu.getFromId(w,C),T._shapeIndices.push(r._index),A=Tq.rangeToShapePosition(T),b=Tq.shapePositionToRange(T),(T.type==="category"||T.type==="multicategory")&&(a(g+"0shift"),a(g+"1shift"))):b=A=sc.identity,u){var q=.25,D=.75,R=g+"0",z=g+"1",F=e[R],I=e[z];e[R]=b(e[R],!0),e[z]=b(e[z],!0),_==="pixel"?(a(R,0),a(z,10)):(cu.coercePosition(r,w,a,C,R,q),cu.coercePosition(r,w,a,C,z,D)),r[R]=A(r[R]),r[z]=A(r[z]),e[R]=F,e[z]=I}if(_==="pixel"){var O=e[y];e[y]=b(e[y],!0),cu.coercePosition(r,w,a,C,y,.25),r[y]=A(r[y]),e[y]=O}}u&&sc.noneOrAll(e,r,["x0","x1","y0","y1"]);var X=s==="line",J,Y;if(u&&(J=a("label.texttemplate")),J||(Y=a("label.text")),Y||J){a("label.textangle");var H=a("label.textposition",X?"middle":"middle center");a("label.xanchor"),a("label.yanchor",Yj(X,H)),a("label.padding"),sc.coerceFont(a,"label.font",t.font)}}}});var Cq=Z((Yfe,Sq)=>{"use strict";var Gj=Er(),kq=Ie();function Vj(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}Sq.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),kq.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",Gj.contrast(i)),a("newshape.line.dash")}var l=r.dragmode==="drawline",o=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(o||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",l?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",Vj(l,u)),a("newshape.label.padding"),kq.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var Pq=Z((Ufe,Eq)=>{"use strict";var C2=Ie(),vu=dt(),hu=_f(),qq=Al();Eq.exports=function(r){var t=r._fullLayout,a=C2.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n0?u+l:l;return{ppad:l,ppadplus:o?v:h,ppadminus:o?h:v}}else return{ppad:l}}function Lq(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,l,o=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],l=r[a+"1"],n&&(o=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],l=r[a+"anchor"]),i!==void 0)return[u(i)+o,u(l)+s];if(r.path){var v=1/0,h=-1/0,d=r.path.match(hu.segmentRE),m,g,y,_,w;for(e.type==="date"&&(u=qq.decodeDate(u)),m=0;mh&&(h=w)));if(h>=v)return[v,h]}}});var Nq=Z((Gfe,zq)=>{"use strict";var Rq=hh();zq.exports={moduleType:"component",name:"shapes",layoutAttributes:S2(),supplyLayoutDefaults:Aq(),supplyDrawNewShapeDefaults:Cq(),includeBasePlot:Yf()("shapes"),calcAutorange:Pq(),draw:Rq.draw,drawOne:Rq.drawOne}});var L2=Z((Wfe,Iq)=>{"use strict";var Fq=da(),Xj=ct().templatedArray,Vfe=Bf();Iq.exports=Xj("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",Fq.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",Fq.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var Oq=Z((Zfe,Hq)=>{"use strict";var Jj=Ie(),q2=dt(),Kj=Jn(),Qj=L2(),$j="images";Hq.exports=function(r,t){var a={name:$j,handleItemDefaults:jj};Kj(r,t,a)};function jj(e,r,t){function a(h,d){return Jj.coerce(e,r,Qj,h,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var l={_fullLayout:t},o=["x","y"],s=0;s<2;s++){var u=o[s],f=q2.coerceRef(e,r,l,u,"paper",void 0);if(f!=="paper"){var v=q2.getFromId(l,f);v._imgIndices.push(r._index)}q2.coercePosition(r,l,a,f,u,0)}return r}});var Gq=Z((Xfe,Uq)=>{"use strict";var Bq=Ir(),eee=at(),du=dt(),Yq=Xt(),ree=fo();Uq.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o{"use strict";var Vq=Hr(),tee=vv();Wq.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(i||l){for(var o=r._fullLayout.images,s=t._id.charAt(0),u,f,v=0;v{"use strict";Xq.exports={moduleType:"component",name:"images",layoutAttributes:L2(),supplyLayoutDefaults:Oq(),includeBasePlot:Yf()("images"),draw:Gq(),convertCoords:Zq()}});var Td=Z((Qfe,Kq)=>{"use strict";Kq.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var D2=Z(($fe,$q)=>{"use strict";var aee=ha(),nee=hi(),iee=Yt().extendFlat,lee=pi().overrideAll,oee=Sv(),Qq=ct().templatedArray,see=Qq("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});$q.exports=lee(Qq("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:see,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:iee(oee({editType:"arraydraw"}),{}),font:aee({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:nee.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var tD=Z((jfe,rD)=>{"use strict";var Md=Ie(),jq=Jn(),eD=D2(),uee=Td(),fee=uee.name,cee=eD.buttons;rD.exports=function(r,t){var a={name:fee,handleItemDefaults:vee};jq(r,t,a)};function vee(e,r,t){function a(l,o){return Md.coerce(e,r,eD,l,o)}var n=jq(e,r,{name:"buttons",handleItemDefaults:hee}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Md.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Md.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function hee(e,r){function t(n,i){return Md.coerce(e,r,cee,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var iD=Z((ece,nD)=>{"use strict";nD.exports=xt;var li=Ir(),aD=Er(),pu=at(),Ad=Ie();function xt(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}xt.barWidth=2;xt.barLength=20;xt.barRadius=2;xt.barPad=1;xt.barColor="#808BA4";xt.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,l=n.height;this.position=r;var o=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,v=this.position.direction,h=v==="down",d=v==="left",m=v==="right",g=v==="up",y=s,_=f,w,T,b,A;!h&&!d&&!m&&!g&&(this.position.direction="down",h=!0);var C=h||g;C?(w=o,T=w+y,h?(b=u,A=Math.min(b+_,l),_=A-b):(A=u+_,b=Math.max(A-_,0),_=A-b)):(b=u,A=b+_,d?(T=o+y,w=Math.max(T-y,0),y=T-w):(w=o,T=Math.min(w+y,i),y=T-w)),this._box={l:w,t:b,w:y,h:_};var k=s>y,q=xt.barLength+2*xt.barPad,D=xt.barWidth+2*xt.barPad,R=o,z=u+f;z+D>l&&(z=l-D);var F=this.container.selectAll("rect.scrollbar-horizontal").data(k?[0]:[]);F.exit().on(".drag",null).remove(),F.enter().append("rect").classed("scrollbar-horizontal",!0).call(aD.fill,xt.barColor),k?(this.hbar=F.attr({rx:xt.barRadius,ry:xt.barRadius,x:R,y:z,width:q,height:D}),this._hbarXMin=R+q/2,this._hbarTranslateMax=y-q):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var I=f>_,O=xt.barWidth+2*xt.barPad,X=xt.barLength+2*xt.barPad,J=o+s,Y=u;J+O>i&&(J=i-O);var H=this.container.selectAll("rect.scrollbar-vertical").data(I?[0]:[]);H.exit().on(".drag",null).remove(),H.enter().append("rect").classed("scrollbar-vertical",!0).call(aD.fill,xt.barColor),I?(this.vbar=H.attr({rx:xt.barRadius,ry:xt.barRadius,x:J,y:Y,width:O,height:X}),this._vbarYMin=Y+X/2,this._vbarTranslateMax=_-X):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var G=this.id,Q=w-.5,K=I?T+O+.5:T+.5,ie=b-.5,de=k?A+D+.5:A+.5,pe=n._topdefs.selectAll("#"+G).data(k||I?[0]:[]);if(pe.exit().remove(),pe.enter().append("clipPath").attr("id",G).append("rect"),k||I?(this._clipRect=pe.select("rect").attr({x:Math.floor(Q),y:Math.floor(ie),width:Math.ceil(K)-Math.floor(Q),height:Math.ceil(de)-Math.floor(ie)}),this.container.call(pu.setClipUrl,G,this.gd),this.bg.attr({x:o,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(pu.setClipUrl,null),delete this._clipRect),k||I){var Ae=li.behavior.drag().on("dragstart",function(){li.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Ae);var ee=li.behavior.drag().on("dragstart",function(){li.event.sourceEvent.preventDefault(),li.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));k&&this.hbar.on(".drag",null).call(ee),I&&this.vbar.on(".drag",null).call(ee)}this.setTranslate(t,a)};xt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(pu.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};xt.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=li.event.dx),this.vbar&&(t-=li.event.dy),this.setTranslate(r,t)};xt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=li.event.deltaY),this.vbar&&(t+=li.event.deltaY),this.setTranslate(r,t)};xt.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Ad.constrain(li.event.x,a,n),l=(i-a)/(n-a),o=this.position.w-this._box.w;r=l*o}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=Ad.constrain(li.event.y,s,u),v=(f-s)/(u-s),h=this.position.h-this._box.h;t=v*h}this.setTranslate(r,t)};xt.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Ad.constrain(r||0,0,a),t=Ad.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(pu.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(pu.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(pu.setTranslate,r,t+l*this._vbarTranslateMax)}}});var pD=Z((rce,dD)=>{"use strict";var mu=Ir(),uc=Pt(),fc=Er(),yu=at(),hn=Ie(),kd=xa(),dee=ct().arrayEditor,oD=Da().LINE_SPACING,_r=Td(),pee=iD();dD.exports=function(r){var t=r._fullLayout,a=hn.filterVisible(t[_r.name]);function n(h){uc.autoMargin(r,vD(h))}var i=t._menulayer.selectAll("g."+_r.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(_r.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){mu.select(this).selectAll("g."+_r.headerGroupClassName).each(n)}).remove(),a.length!==0){var l=i.selectAll("g."+_r.headerGroupClassName).data(a,mee);l.enter().append("g").classed(_r.headerGroupClassName,!0);for(var o=hn.ensureSingle(i,"g",_r.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s{"use strict";var Tee=Td();mD.exports={moduleType:"component",name:Tee.name,layoutAttributes:D2(),supplyLayoutDefaults:tD(),draw:pD()}});var vc=Z((ace,gD)=>{"use strict";gD.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var z2=Z((nce,_D)=>{"use strict";var bD=ha(),Mee=Sv(),Aee=Yt().extendDeepAll,kee=pi().overrideAll,See=Vu(),xD=ct().templatedArray,Oo=vc(),Cee=xD("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});_D.exports=kee(xD("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Cee,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:Aee(Mee({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:See.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:bD({})},font:bD({}),activebgcolor:{valType:"color",dflt:Oo.gripBgActiveColor},bgcolor:{valType:"color",dflt:Oo.railBgColor},bordercolor:{valType:"color",dflt:Oo.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Oo.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Oo.tickLength},tickcolor:{valType:"color",dflt:Oo.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Oo.minorTickLength}}),"arraydraw","from-root")});var AD=Z((ice,MD)=>{"use strict";var gu=Ie(),wD=Jn(),TD=z2(),Lee=vc(),qee=Lee.name,Dee=TD.steps;MD.exports=function(r,t){wD(r,t,{name:qee,handleItemDefaults:Eee})};function Eee(e,r,t){function a(v,h){return gu.coerce(e,r,TD,v,h)}for(var n=wD(e,r,{name:"steps",handleItemDefaults:Pee}),i=0,l=0;l{"use strict";var oi=Ir(),Sd=Pt(),Pl=Er(),si=at(),dn=Ie(),Ree=dn.strTranslate,hc=xa(),zee=ct().arrayEditor,Dr=vc(),I2=Da(),CD=I2.LINE_SPACING,N2=I2.FROM_TL,F2=I2.FROM_BR;RD.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=Nee(a,r),i=a._infolayer.selectAll("g."+Dr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Dr.containerClassName,!0).style("cursor",t?null:"ew-resize");function l(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Sd.autoMargin(r,LD(f))}if(i.exit().each(function(){oi.select(this).selectAll("g."+Dr.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Dr.groupClassName).data(n,Fee);o.enter().append("g").classed(Dr.groupClassName,!0),o.exit().each(l).remove();for(var s=0;s0&&(o=o.transition().duration(r.transition.duration).ease(r.transition.easing)),o.attr("transform",Ree(l-Dr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function H2(e,r){var t=e._dims;return t.inputAreaStart+Dr.stepInset+(t.inputAreaLength-2*Dr.stepInset)*Math.min(1,Math.max(0,r))}function SD(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Dr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Dr.stepInset-2*t.inputAreaStart)))}function Gee(e,r,t){var a=t._dims,n=dn.ensureSingle(e,"rect",Dr.railTouchRectClass,function(i){i.call(ED,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Dr.tickOffset+t.ticklen+a.labelHeight)}).call(Pl.fill,t.bgcolor).attr("opacity",0),si.setTranslate(n,0,a.currentValueTotalHeight)}function Vee(e,r){var t=r._dims,a=t.inputAreaLength-Dr.railInset*2,n=dn.ensureSingle(e,"rect",Dr.railRectClass);n.attr({width:a,height:Dr.railWidth,rx:Dr.railRadius,ry:Dr.railRadius,"shape-rendering":"crispEdges"}).call(Pl.stroke,r.bordercolor).call(Pl.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),si.setTranslate(n,Dr.railInset,(t.inputAreaWidth-Dr.railWidth)*.5+t.currentValueTotalHeight)}});var FD=Z((oce,ND)=>{"use strict";var Wee=vc();ND.exports={moduleType:"component",name:Wee.name,layoutAttributes:z2(),supplyLayoutDefaults:AD(),draw:zD()}});var Ld=Z((sce,HD)=>{"use strict";var ID=hi();HD.exports={bgcolor:{valType:"color",dflt:ID.background,editType:"plot"},bordercolor:{valType:"color",dflt:ID.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var O2=Z((uce,OD)=>{"use strict";OD.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var qd=Z((fce,BD)=>{"use strict";BD.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var GD=Z(Ed=>{"use strict";var Zee=Xt(),Xee=xa(),YD=qd(),Jee=Da().LINE_SPACING,Dd=YD.name;function UD(e){var r=e&&e[Dd];return r&&r.visible}Ed.isVisible=UD;Ed.makeData=function(e){for(var r=Zee.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Pd=Ie(),VD=ct(),WD=Xt(),Kee=Ld(),Qee=O2();ZD.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Pd.isPlainObject(n.rangeslider)||(n.rangeslider={});var l=n.rangeslider,o=VD.newContainer(i,"rangeslider");function s(A,C){return Pd.coerce(l,o,Kee,A,C)}var u,f;function v(A,C){return Pd.coerce(u,f,Qee,A,C)}var h=s("visible");if(h){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(l.range)),s("range");var d=t._subplots;if(d)for(var m=d.cartesian.filter(function(A){return A.substr(0,A.indexOf("y"))===WD.name2id(a)}).map(function(A){return A.substr(A.indexOf("y"),A.length)}),g=Pd.simpleMap(m,WD.id2name),y=0;y{"use strict";var $ee=Xt().list,jee=ff().getAutoRange,ere=qd();JD.exports=function(r){for(var t=$ee(r,"x",!0),a=0;a{"use strict";var Rd=Ir(),rre=gr(),tre=Pt(),St=Ie(),zd=St.strTranslate,$D=at(),Rl=Er(),are=sf(),nre=bd(),B2=Xt(),ire=Qn(),lre=wl(),Fr=qd();jD.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=H.max)J=z[Y+1];else if(X=H.pmax)J=z[Y+1];else if(X0?e.touches[0].clientX:0}function ore(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Fr.slideBoxClassName).node(),i=e.select("rect."+Fr.grabAreaMinClassName).node(),l=e.select("rect."+Fr.grabAreaMaxClassName).node();function o(){var s=Rd.event,u=s.target,f=QD(s),v=f-e.node().getBoundingClientRect().left,h=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),m=ire.coverSlip();this.addEventListener("touchmove",g),this.addEventListener("touchend",y),m.addEventListener("mousemove",g),m.addEventListener("mouseup",y);function g(_){var w=QD(_),T=+w-f,b,A,C;switch(u){case n:if(C="ew-resize",h+T>t._length||d+T<0)return;b=h+T,A=d+T;break;case i:if(C="col-resize",h+T>t._length)return;b=h+T,A=d;break;case l:if(C="col-resize",d+T<0)return;b=h,A=d+T;break;default:C="ew-resize",b=v,A=v+T;break}if(A{"use strict";var yre=Ie(),gre=Ld(),bre=O2(),Y2=GD();rE.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:yre.extendFlat({},gre,{yaxis:bre})}}},layoutAttributes:Ld(),handleDefaults:XD(),calcAutorange:KD(),draw:eE(),isVisible:Y2.isVisible,makeData:Y2.makeData,autoMarginOpts:Y2.autoMarginOpts}});var Nd=Z((mce,nE)=>{"use strict";var xre=ha(),aE=hi(),_re=ct().templatedArray,wre=_re("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});nE.exports={visible:{valType:"boolean",editType:"plot"},buttons:wre,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:xre({editType:"plot"}),bgcolor:{valType:"color",dflt:aE.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:aE.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var U2=Z((yce,iE)=>{"use strict";iE.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var sE=Z((gce,oE)=>{"use strict";var Fd=Ie(),Tre=Er(),Mre=ct(),Are=Jn(),lE=Nd(),G2=U2();oE.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=Mre.newContainer(t,"rangeselector");function s(d,m){return Fd.coerce(l,o,lE,d,m)}var u=Are(l,o,{name:"buttons",handleItemDefaults:kre,calendar:i}),f=s("visible",u.length>0);if(f){var v=Sre(t,a,n);s("x",v[0]),s("y",v[1]),Fd.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Fd.coerceFont(s,"font",a.font);var h=s("bgcolor");s("activecolor",Tre.contrast(h,G2.lightAmount,G2.darkAmount)),s("bordercolor"),s("borderwidth")}};function kre(e,r,t,a){var n=a.calendar;function i(s,u){return Fd.coerce(e,r,lE.buttons,s,u)}var l=i("visible");if(l){var o=i("step");o!=="all"&&(n&&n!=="gregorian"&&(o==="month"||o==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function Sre(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i{"use strict";var Cre=O1(),Lre=Ie().titleCase;uE.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=qre(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function qre(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=Cre["utc"+Lre(n)],l=r.count,o;switch(r.stepmode){case"backward":o=e.l2r(+i.offset(a,-l));break;case"todate":var s=i.offset(a,-l);o=e.l2r(+i.ceil(s));break}var u=t[1];return[o,u]}});var gE=Z((xce,yE)=>{"use strict";var Hd=Ir(),Dre=gr(),Ere=Pt(),cE=Er(),mE=at(),Ki=Ie(),vE=Ki.strTranslate,Id=xa(),Pre=Xt(),Z2=Da(),hE=Z2.LINE_SPACING,dE=Z2.FROM_TL,pE=Z2.FROM_BR,W2=U2(),Rre=fE();yE.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(zre(r),Nre);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Hd.select(this),l=n,o=l.rangeselector,s=i.selectAll("g.button").data(Ki.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Hd.select(this),v=Rre(l,u);u._isActive=Fre(l,u,v),f.call(V2,o,u),f.call(Hre,o,u,r),f.on("click",function(){r._dragged||Dre.call("_guiRelayout",r,v)}),f.on("mouseover",function(){u._isHovered=!0,f.call(V2,o,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(V2,o,u)})}),Bre(r,s,o,l._name,i)})};function zre(e){for(var r=Pre.list(e,"x",!0),t=[],a=0;a{"use strict";bE.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Nd()}}},layoutAttributes:Nd(),handleDefaults:sE(),draw:gE()}});var Od=Z(X2=>{"use strict";var _E=Yt().extendFlat;X2.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",l={x:_E({},t,{}),y:_E({},t,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};X2.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],l=r.grid;if(l){var o=t("domain.column");o!==void 0&&(o{"use strict";var Yre=Ie(),Ure=cs().counter,Gre=Od().attributes,wE=da().idRegex,Vre=ct(),J2={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Ure("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[wE.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[wE.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Gre({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Bd(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function Wre(e,r){var t=e.grid||{},a=Bd(r,t,"x"),n=Bd(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),l=Array.isArray(a),o=Array.isArray(n),s=l&&a!==t.xaxes&&o&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(o&&(u=n.length),l&&(f=a.length));var v=Vre.newContainer(r,"grid");function h(C,k){return Yre.coerce(t,v,J2,C,k)}var d=h("rows",u),m=h("columns",f);if(!(d*m>1)){delete r.grid;return}if(!i&&!l&&!o){var g=h("pattern")==="independent";g&&(i=!0)}v._hasSubplotGrid=i;var y=h("roworder"),_=y==="top to bottom",w=i?.2:.1,T=i?.3:.1,b,A;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,A=r._splomGridDflt.yside),v._domains={x:TE("x",h,w,b,m),y:TE("y",h,T,A,d,_)}}function TE(e,r,t,a,n,i){var l=r(e+"gap",t),o=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=o[0],f=(o[1]-u)/(n-l),v=f*(1-l),h=0;h{"use strict";SE.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var qE=Z((Ace,LE)=>{"use strict";var CE=Hr(),Xre=gr(),Jre=Ie(),Kre=ct(),Qre=K2();LE.exports=function(e,r,t,a){var n="error_"+a.axis,i=Kre.newContainer(r,n),l=e[n]||{};function o(m,g){return Jre.coerce(l,i,Qre,m,g)}var s=l.array!==void 0||l.value!==void 0||l.type==="sqrt",u=o("visible",s);if(u!==!1){var f=o("type","array"in l?"data":"percent"),v=!0;f!=="sqrt"&&(v=o("symmetric",!((f==="data"?"arrayminus":"valueminus")in l))),f==="data"?(o("array"),o("traceref"),v||(o("arrayminus"),o("tracerefminus"))):(f==="percent"||f==="constant")&&(o("value"),v||o("valueminus"));var h="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&o(h,!(l.color||CE(l.thickness)||CE(l.width)))}(!a.inherit||!i[h])&&(o("color",t),o("thickness"),o("width",Xre.traceIs(r,"gl3d")?0:4))}}});var Q2=Z((kce,EE)=>{"use strict";EE.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var v=+n[f];return[v,v]};var i=r.arrayminus||[];return function(u,f){var v=+n[f],h=+i[f];return!isNaN(v)||!isNaN(h)?[h||0,v||0]:[NaN,NaN]}}else{var l=DE(t,r.value),o=DE(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=l(u);return[f,f]}:function(u){return[o(u),l(u)]}}};function DE(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var zE=Z((Sce,RE)=>{"use strict";var $2=Hr(),$re=gr(),j2=dt(),jre=Ie(),ete=Q2();RE.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var NE=Ir(),zl=Hr(),rte=at(),tte=ln();FE.exports=function(r,t,a,n){var i,l=a.xaxis,o=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var v=f[0].trace,h=v.error_x||{},d=v.error_y||{},m;v.ids&&(m=function(w){return w.id});var g=tte.hasMarkers(v)&&v.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var y=NE.select(this).selectAll("g.errorbar").data(f,m);if(y.exit().remove(),!!f.length){h.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var _=y.enter().append("g").classed("errorbar",!0);s&&_.style("opacity",0).transition().duration(n.duration).style("opacity",1),rte.setClipUrl(y,a.layerClipId,r),y.each(function(w){var T=NE.select(this),b=ate(w,l,o);if(!(g&&!w.vis)){var A,C=T.select("path.yerror");if(d.visible&&zl(b.x)&&zl(b.yh)&&zl(b.ys)){var k=d.width;A="M"+(b.x-k)+","+b.yh+"h"+2*k+"m-"+k+",0V"+b.ys,b.noYS||(A+="m-"+k+",0h"+2*k),i=!C.size(),i?C=T.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(C=C.transition().duration(n.duration).ease(n.easing)),C.attr("d",A)}else C.remove();var q=T.select("path.xerror");if(h.visible&&zl(b.y)&&zl(b.xh)&&zl(b.xs)){var D=(h.copy_ystyle?d:h).width;A="M"+b.xh+","+(b.y-D)+"v"+2*D+"m0,-"+D+"H"+b.xs,b.noXS||(A+="m0,-"+D+"v"+2*D),i=!q.size(),i?q=T.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(q=q.transition().duration(n.duration).ease(n.easing)),q.attr("d",A)}else q.remove()}})}})};function ate(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),zl(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),zl(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var BE=Z((Lce,OE)=>{"use strict";var nte=Ir(),HE=Er();OE.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=nte.select(this);l.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(HE.stroke,n.color),i.copy_ystyle&&(i=n),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(HE.stroke,i.color)})}});var GE=Z((qce,UE)=>{"use strict";var dc=Ie(),YE=pi().overrideAll,pc=K2(),Bo={error_x:dc.extendFlat({},pc),error_y:dc.extendFlat({},pc)};delete Bo.error_x.copy_zstyle;delete Bo.error_y.copy_zstyle;delete Bo.error_y.copy_ystyle;var mc={error_x:dc.extendFlat({},pc),error_y:dc.extendFlat({},pc),error_z:dc.extendFlat({},pc)};delete mc.error_x.copy_ystyle;delete mc.error_y.copy_ystyle;delete mc.error_z.copy_ystyle;delete mc.error_z.copy_zstyle;UE.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Bo,bar:Bo,histogram:Bo,scatter3d:YE(mc,"calc","nested"),scattergl:YE(Bo,"calc","nested")}},supplyDefaults:qE(),calc:zE(),makeComputeError:Q2(),plot:IE(),style:BE(),hoverInfo:ite};function ite(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var WE=Z((Dce,VE)=>{"use strict";VE.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var jE=Z((Ece,$E)=>{"use strict";var Nl=Ir(),e3=bn(),Ud=Pt(),ZE=gr(),Qi=dt(),Yd=Qn(),Nn=Ie(),fi=Nn.strTranslate,QE=Yt().extendFlat,r3=wl(),ui=at(),t3=Er(),lte=sf(),ote=xa(),ste=Tn().flipScale,ute=c2(),fte=v2(),cte=Xn(),a3=Da(),XE=a3.LINE_SPACING,JE=a3.FROM_TL,KE=a3.FROM_BR,bt=WE().cn;function vte(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+bt.colorbar).data(hte(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(bt.colorbar,!0),t.each(function(a){var n=Nl.select(this);Nn.ensureSingle(n,"rect",bt.cbbg),Nn.ensureSingle(n,"g",bt.cbfills),Nn.ensureSingle(n,"g",bt.cblines),Nn.ensureSingle(n,"g",bt.cbaxis,function(l){l.classed(bt.crisp,!0)}),Nn.ensureSingle(n,"g",bt.cbtitleunshift,function(l){l.append("g").classed(bt.cbtitle,!0)}),Nn.ensureSingle(n,"rect",bt.cboutline);var i=dte(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&pte(n,a,e)}),t.exit().each(function(a){Ud.autoMargin(e,a._id)}).remove(),t.order()}function hte(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(T){return QE(T,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof o.calc=="function"?o.calc(e,l,n):(n._fillgradient=i.reversescale?ste(i.colorscale):i.colorscale,n._zrange=[i[o.min],i[o.max]])}for(var f=0;f1){var re=Math.pow(10,Math.floor(Math.log(B)/Math.LN10));se*=re*Nn.roundUp(B/re,[2,5,10]),(Math.abs(F.start)/F.size+1e-6)%1<2e-6&&(ve.tick0=0)}ve.dtick=se}ve.domain=a?[ee+m/b.h,ee+G-m/b.h]:[ee+d/b.w,ee+G-d/b.w],ve.setScale(),e.attr("transform",fi(Math.round(b.l),Math.round(b.t)));var U=e.select("."+bt.cbtitleunshift).attr("transform",fi(-Math.round(b.l),-Math.round(b.t))),me=ve.ticklabelposition,we=ve.title.font.size,ye=e.select("."+bt.cbaxis),Re,Fe=0,Ee=0;function ze(Oe,ne){var Me={propContainer:ve,propName:r._propPrefix+"title",traceIndex:r._traceIndex,_meta:r._meta,placeholder:T._dfltTitle.colorbar,containerGroup:e.select("."+bt.cbtitle)},Ce=Oe.charAt(0)==="h"?Oe.substr(1):"h"+Oe;e.selectAll("."+Ce+",."+Ce+"-math-group").remove(),lte.draw(t,Oe,QE(Me,ne||{}))}function Ye(){if(a&&be||!a&&!be){var Oe,ne;q==="top"&&(Oe=d+b.l+Q*g,ne=m+b.t+K*(1-ee-G)+3+we*.75),q==="bottom"&&(Oe=d+b.l+Q*g,ne=m+b.t+K*(1-ee)-3-we*.25),q==="right"&&(ne=m+b.t+K*y+3+we*.75,Oe=d+b.l+Q*ee),ze(ve._id+"title",{attributes:{x:Oe,y:ne,"text-anchor":a?"start":"middle"}})}}function Ze(){if(a&&!be||!a&&be){var Oe=ve.position||0,ne=ve._offset+ve._length/2,Me,Ce;if(q==="right")Ce=ne,Me=b.l+Q*Oe+10+we*(ve.showticklabels?1:.5);else if(Me=ne,q==="bottom"&&(Ce=b.t+K*Oe+10+(me.indexOf("inside")===-1?ve.tickfont.size:0)+(ve.ticks!=="intside"&&r.ticklen||0)),q==="top"){var sr=k.text.split("
").length;Ce=b.t+K*Oe+10-J-XE*we*sr}ze((a?"h":"v")+ve._id+"title",{avoid:{selection:Nl.select(t).selectAll("g."+ve._id+"tick"),side:q,offsetTop:a?0:b.t,offsetLeft:a?b.l:0,maxShift:a?T.width:T.height},attributes:{x:Me,y:Ce,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function Pe(){if(!a&&!be||a&&be){var Oe=e.select("."+bt.cbtitle),ne=Oe.select("text"),Me=[-s/2,s/2],Ce=Oe.select(".h"+ve._id+"title-math-group").node(),sr=15.6;ne.node()&&(sr=parseInt(ne.node().style.fontSize,10)*XE);var tr;if(Ce?(tr=ui.bBox(Ce),Ee=tr.width,Fe=tr.height,Fe>sr&&(Me[1]-=(Fe-sr)/2)):ne.node()&&!ne.classed(bt.jsPlaceholder)&&(tr=ui.bBox(ne.node()),Ee=tr.width,Fe=tr.height),a){if(Fe){if(Fe+=5,q==="top")ve.domain[1]-=Fe/b.h,Me[1]*=-1;else{ve.domain[0]+=Fe/b.h;var De=ote.lineCount(ne);Me[1]+=(1-De)*sr}Oe.attr("transform",fi(Me[0],Me[1])),ve.setScale()}}else Ee&&(q==="right"&&(ve.domain[0]+=(Ee+we/2)/b.w),Oe.attr("transform",fi(Me[0],Me[1])),ve.setScale())}e.selectAll("."+bt.cbfills+",."+bt.cblines).attr("transform",a?fi(0,Math.round(b.h*(1-ve.domain[1]))):fi(Math.round(b.w*ve.domain[0]),0)),ye.attr("transform",a?fi(0,Math.round(-b.t)):fi(Math.round(-b.l),0));var Le=e.select("."+bt.cbfills).selectAll("rect."+bt.cbfill).attr("style","").data(O);Le.enter().append("rect").classed(bt.cbfill,!0).attr("style",""),Le.exit().remove();var Ue=D.map(ve.c2p).map(Math.round).sort(function(cr,lr){return cr-lr});Le.each(function(cr,lr){var Ne=[lr===0?D[0]:(O[lr]+O[lr-1])/2,lr===O.length-1?D[1]:(O[lr]+O[lr+1])/2].map(ve.c2p).map(Math.round);a&&(Ne[1]=Nn.constrain(Ne[1]+(Ne[1]>Ne[0])?1:-1,Ue[0],Ue[1]));var ae=Nl.select(this).attr(a?"x":"y",ie).attr(a?"y":"x",Nl.min(Ne)).attr(a?"width":"height",Math.max(J,2)).attr(a?"height":"width",Math.max(Nl.max(Ne)-Nl.min(Ne),2));if(r._fillgradient)ui.gradient(ae,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var oe=z(cr).replace("e-","");ae.attr("fill",e3(oe).toHexString())}});var Xe=e.select("."+bt.cblines).selectAll("path."+bt.cbline).data(C.color&&C.width?X:[]);Xe.enter().append("path").classed(bt.cbline,!0),Xe.exit().remove(),Xe.each(function(cr){var lr=ie,Ne=Math.round(ve.c2p(cr))+C.width/2%1;Nl.select(this).attr("d","M"+(a?lr+","+Ne:Ne+","+lr)+(a?"h":"v")+J).call(ui.lineGroupStyle,C.width,R(cr),C.dash)}),ye.selectAll("g."+ve._id+"tick,path").remove();var Ge=ie+J+(s||0)/2-(r.ticks==="outside"?1:0),He=Qi.calcTicks(ve),Ke=Qi.getTickSigns(ve)[2];return Qi.drawTicks(t,ve,{vals:ve.ticks==="inside"?Qi.clipEnds(ve,He):He,layer:ye,path:Qi.makeTickPath(ve,Ge,Ke),transFn:Qi.makeTransTickFn(ve)}),Qi.drawLabels(t,ve,{vals:He,layer:ye,transFn:Qi.makeTransTickLabelFn(ve),labelFns:Qi.makeLabelFns(ve,Ge)})}function Be(){var Oe,ne=J+s/2;me.indexOf("inside")===-1&&(Oe=ui.bBox(ye.node()),ne+=a?Oe.width:Oe.height),Re=U.select("text");var Me=0,Ce=a&&q==="top",sr=!a&&q==="right",tr=0;if(Re.node()&&!Re.classed(bt.jsPlaceholder)){var De,Le=U.select(".h"+ve._id+"title-math-group").node();Le&&(a&&be||!a&&!be)?(Oe=ui.bBox(Le),Me=Oe.width,De=Oe.height):(Oe=ui.bBox(U.node()),Me=Oe.right-b.l-(a?ie:ke),De=Oe.bottom-b.t-(a?ke:ie),!a&&q==="top"&&(ne+=Oe.height,tr=Oe.height)),sr&&(Re.attr("transform",fi(Me/2+we/2,0)),Me*=2),ne=Math.max(ne,a?Me:De)}var Ue=(a?d:m)*2+ne+u+s/2,Xe=0;!a&&k.text&&h==="bottom"&&y<=0&&(Xe=Ue/2,Ue+=Xe,tr+=Xe),T._hColorbarMoveTitle=Xe,T._hColorbarMoveCBTitle=tr;var Ge=u+s,He=(a?ie:ke)-Ge/2-(a?d:0),Ke=(a?ke:ie)-(a?H:m+tr-Xe);e.select("."+bt.cbbg).attr("x",He).attr("y",Ke).attr(a?"width":"height",Math.max(Ue-Xe,2)).attr(a?"height":"width",Math.max(H+Ge,2)).call(t3.fill,f).call(t3.stroke,r.bordercolor).style("stroke-width",u);var cr=sr?Math.max(Me-10,0):0;e.selectAll("."+bt.cboutline).attr("x",(a?ie:ke+d)+cr).attr("y",(a?ke+m-H:ie)+(Ce?Fe:0)).attr(a?"width":"height",Math.max(J,2)).attr(a?"height":"width",Math.max(H-(a?2*m+Fe:2*d+cr),2)).call(t3.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var lr=a?de*Ue:0,Ne=a?0:(1-pe)*Ue-tr;if(lr=w?b.l-lr:-lr,Ne=_?b.t-Ne:-Ne,e.attr("transform",fi(lr,Ne)),!a&&(u||e3(f).getAlpha()&&!e3.equals(T.paper_bgcolor,f))){var ae=ye.selectAll("text"),oe=ae[0].length,qe=e.select("."+bt.cbbg).node(),Se=ui.bBox(qe),ir=ui.getTranslate(e),vr=2;ae.each(function(pn,Ia){var ta=0,Ha=oe-1;if(Ia===ta||Ia===Ha){var yr=ui.bBox(this),lt=ui.getTranslate(this),Wr;if(Ia===Ha){var mt=yr.right+lt.x,Tt=Se.right+ir.x+ke-u-vr+g;Wr=Tt-mt,Wr>0&&(Wr=0)}else if(Ia===ta){var ot=yr.left+lt.x,yt=Se.left+ir.x+ke+u+vr;Wr=yt-ot,Wr<0&&(Wr=0)}Wr&&(oe<3?this.setAttribute("transform","translate("+Wr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ur={},Mr=JE[v],Ur=KE[v],$r=JE[h],Vr=KE[h],Ct=Ue-J;a?(i==="pixels"?(ur.y=y,ur.t=H*$r,ur.b=H*Vr):(ur.t=ur.b=0,ur.yt=y+n*$r,ur.yb=y-n*Vr),o==="pixels"?(ur.x=g,ur.l=Ue*Mr,ur.r=Ue*Ur):(ur.l=Ct*Mr,ur.r=Ct*Ur,ur.xl=g-l*Mr,ur.xr=g+l*Ur)):(i==="pixels"?(ur.x=g,ur.l=H*Mr,ur.r=H*Ur):(ur.l=ur.r=0,ur.xl=g+n*Mr,ur.xr=g-n*Ur),o==="pixels"?(ur.y=1-y,ur.t=Ue*$r,ur.b=Ue*Vr):(ur.t=Ct*$r,ur.b=Ct*Vr,ur.yt=y-l*$r,ur.yb=y+l*Vr));var ea=r.y<.5?"b":"t",ka=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var ra={r:T.width-He-lr,l:He+ur.r,b:T.height-Ke-Ne,t:Ke+ur.b};w&&_?Ud.autoMargin(t,r._id,ur):w?t._fullLayout._reservedMargin[r._id][ea]=ra[ea]:_||a?t._fullLayout._reservedMargin[r._id][ka]=ra[ka]:t._fullLayout._reservedMargin[r._id][ea]=ra[ea]}return Nn.syncOrAsync([Ud.previousPromises,Ye,Pe,Ze,Ud.previousPromises,Be],t)}function pte(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,l,o,s;Yd.init({element:e.node(),gd:t,prepFn:function(){l=e.attr("transform"),r3(e)},moveFn:function(u,f){e.attr("transform",l+fi(u,f)),o=Yd.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Yd.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var v=Yd.getCursor(o,s,r.xanchor,r.yanchor);r3(e,v)},doneFn:function(){if(r3(e),o!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=o,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?ZE.call("_guiRestyle",t,u,r._traceIndex):ZE.call("_guiRelayout",t,u)}}})}function mte(e,r,t){var a=r._levels,n=[],i=[],l,o,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],v=1.001*t[1]-.001*t[0];for(o=0;o<1e5&&(l=a.start+o*u,!(u>0?l>=s:l<=s));o++)l>f&&l0?l>=s:l<=s));o++)l>t[0]&&l{"use strict";eP.exports={moduleType:"component",name:"colorbar",attributes:t0(),supplyDefaults:im(),draw:jE().draw,hasColorbar:Xp()}});var aP=Z((Rce,tP)=>{"use strict";tP.exports={moduleType:"component",name:"legend",layoutAttributes:ry(),supplyLayoutDefaults:ny(),draw:my(),style:vy()}});var iP=Z((zce,nP)=>{"use strict";nP.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var oP=Z((Nce,lP)=>{"use strict";lP.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var i3=Z((Fce,cP)=>{"use strict";var gte=gr(),fP=Ie(),n3=fP.extendFlat,sP=fP.extendDeep;function uP(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function bte(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}cP.exports=function(r,t){var a,n=r.data,i=r.layout,l=sP([],n),o=sP({},i,uP(t.tileClass)),s=r._context||{};if(t.width&&(o.width=t.width),t.height&&(o.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){o.annotations=[];var u=Object.keys(o);for(a=0;a{"use strict";var xte=Yv().EventEmitter,_te=gr(),wte=Ie(),vP=Do(),Tte=i3(),Mte=Qh(),Ate=$h();function kte(e,r){var t=new xte,a=Tte(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=vP.getDelay(n._fullLayout);setTimeout(function(){var s=Mte(n),u=document.createElement("canvas");u.id=wte.randstr(),t=Ate({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},o)}var l=vP.getRedrawFunc(n);return _te.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}hP.exports=kte});var yP=Z((Hce,mP)=>{"use strict";var pP=Do(),Ste={getDelay:pP.getDelay,getRedrawFunc:pP.getRedrawFunc,clone:i3(),toSVG:Qh(),svgToImg:$h(),toImage:dP(),downloadImage:Rg()};mP.exports=Ste});var bP=Z($i=>{"use strict";$i.version=tv().version;ub();j4();var Cte=gr(),yc=$i.register=Cte.register,o3=wS(),gP=Object.keys(o3);for(Gd=0;Gd{"use strict";xP.exports=bP()});var Wd=Z((Yce,wP)=>{"use strict";wP.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var gc=Z((Uce,kP)=>{"use strict";var wt=qo(),TP=r0().axisHoverFormat,Lte=zi().hovertemplateAttrs,qte=zi().texttemplateAttrs,AP=nf(),Dte=ha(),MP=Wd(),Ete=mi().pattern,Yo=Yt().extendFlat,s3=Dte({editType:"calc",arrayOk:!0,colorEditType:"style"}),Pte=wt.marker,Rte=Pte.line,zte=Yo({},Rte.width,{dflt:0}),Nte=Yo({width:zte,editType:"calc"},AP("marker.line")),Fte=Yo({line:Nte,editType:"calc"},AP("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:Ete,cornerradius:{valType:"any",editType:"calc"}});kP.exports={x:wt.x,x0:wt.x0,dx:wt.dx,y:wt.y,y0:wt.y0,dy:wt.dy,xperiod:wt.xperiod,yperiod:wt.yperiod,xperiod0:wt.xperiod0,yperiod0:wt.yperiod0,xperiodalignment:wt.xperiodalignment,yperiodalignment:wt.yperiodalignment,xhoverformat:TP("x"),yhoverformat:TP("y"),text:wt.text,texttemplate:qte({editType:"plot"},{keys:MP.eventDataKeys}),hovertext:wt.hovertext,hovertemplate:Lte({},{keys:MP.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Yo({},s3,{}),insidetextfont:Yo({},s3,{}),outsidetextfont:Yo({},s3,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Yo({},wt.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:Fte,offsetgroup:wt.offsetgroup,alignmentgroup:wt.alignmentgroup,selected:{marker:{opacity:wt.selected.marker.opacity,color:wt.selected.marker.color,editType:"style"},textfont:wt.selected.textfont,editType:"style"},unselected:{marker:{opacity:wt.unselected.marker.opacity,color:wt.unselected.marker.color,editType:"style"},textfont:wt.unselected.textfont,editType:"style"},zorder:wt.zorder}});var u3=Z((Gce,SP)=>{"use strict";SP.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var DP=Z((Vce,qP)=>{"use strict";var Ite=Er(),CP=Tn().hasColorscale,LP=Ls(),Hte=Ie().coercePattern;qP.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=CP(r,"marker");o&&LP(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",Ite.defaultLine),CP(r,"marker.line")&&LP(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),Hte(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var bc=Z((Wce,FP)=>{"use strict";var EP=Hr(),xu=Ie(),PP=Er(),Ote=gr(),Bte=Fg(),Yte=Ig(),Ute=DP(),Gte=Hg(),RP=gc(),Zd=xu.coerceFont;function Vte(e,r,t,a){function n(u,f){return xu.coerce(e,r,RP,u,f)}var i=Bte(e,r,a,n);if(!i){r.visible=!1;return}Yte(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate");var l=n("textposition");NP(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),Ute(e,r,n,t,a);var o=(r.marker.line||{}).color,s=Ote.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||PP.defaultLine,{axis:"y"}),s(e,r,o||PP.defaultLine,{axis:"x",inherit:"y"}),xu.coerceSelectionMarkerOpacity(r,n)}function Wte(e,r){var t,a;function n(o,s){return xu.coerce(a._input,a,RP,o,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&EP(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function NP(e,r,t,a,n,i){i=i||{};var l=i.moduleHasSelected!==!1,o=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,v=i.moduleHasInsideanchor!==!1,h=!!i.hasPathbar,d=Array.isArray(n)||n==="auto",m=d||n==="inside",g=d||n==="outside";if(m||g){var y=Zd(a,"textfont",t.font),_=xu.extendFlat({},y),w=e.textfont&&e.textfont.color,T=!w;if(T&&delete _.color,Zd(a,"insidetextfont",_),h){var b=xu.extendFlat({},y);T&&delete b.color,Zd(a,"pathbar.textfont",b)}g&&Zd(a,"outsidetextfont",y),l&&a("selected.textfont.color"),o&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate")}m&&v&&a("insidetextanchor")}FP.exports={supplyDefaults:Vte,crossTraceDefaults:Wte,handleText:NP,validateCornerradius:zP}});var HP=Z((Zce,IP)=>{"use strict";var Zte=gr(),Xte=dt(),Jte=Ie(),Kte=u3(),Qte=bc().validateCornerradius;IP.exports=function(e,r,t){function a(g,y){return Jte.coerce(e,r,Kte,g,y)}for(var n=!1,i=!1,l=!1,o={},s=a("barmode"),u=s==="group",f=0;f0&&!o[h]&&(l=!0),o[h]=!0),v.visible&&v.type==="histogram"){var d=Xte.getFromId({_fullLayout:r},v[v.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!l?0:.2),a("bargroupgap");var m=a("barcornerradius");r.barcornerradius=Qte(m)}});var f3=Z((Xce,OP)=>{"use strict";var _u=Ie();OP.exports=function(r,t){for(var a=0;a{"use strict";var BP=dt(),YP=Og(),UP=Tn().hasColorscale,GP=i0(),$te=f3(),jte=Gg();VP.exports=function(r,t){var a=BP.getFromId(r,t.xaxis||"x"),n=BP.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,v={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",v),o=n.makeCalcdata(t,"y"),s=YP(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",v),o=a.makeCalcdata(t,"x"),s=YP(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var h=Math.min(l.length,i.length),d=new Array(h),m=0;m{"use strict";var eae=Ir(),rae=Ie();function tae(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",l;switch(t){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":case"icicle":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}r.selectAll(l).each(function(o){var s=o.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=eae.select(this).select("text");rae.setTransormAndDisplay(u,s)}})}}function aae(e,r,t){if(t.uniformtext.mode){var a=ZP(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var iae=Hr(),lae=bn(),JP=Ie().isArrayOrTypedArray;Uo.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};Uo.coerceNumber=function(e,r,t){if(iae(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};Uo.coerceColor=function(e,r,t){return lae(r).isValid()?r:t!==void 0?t:e.dflt};Uo.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Uo.getValue=function(e,r){var t;return JP(e)?r{"use strict";var _c=Ir(),oae=Er(),wc=at(),KP=Ie(),QP=gr(),$P=xc().resizeText,c3=gc(),sae=c3.textfont,uae=c3.insidetextfont,fae=c3.outsidetextfont,ya=Xd();function cae(e){var r=_c.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");$P(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&_c.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=_c.select(this),l=n[0].trace;jP(i,l,e)}),QP.getComponentMethod("errorbars","style")(r)}function jP(e,r,t){wc.pointStyle(e.selectAll("path"),r,t),eR(e,r,t)}function eR(e,r,t){e.selectAll("text").each(function(a){var n=_c.select(this),i=KP.ensureUniformFontSize(t,rR(n,a,r,t));wc.font(n,i)})}function vae(e,r,t){var a=r[0].trace;a.selectedpoints?hae(t,a,e):(jP(t,a,e),QP.getComponentMethod("errorbars","style")(t))}function hae(e,r,t){wc.selectedPointStyle(e.selectAll("path"),r),dae(e.selectAll("text"),r,t)}function dae(e,r,t){e.each(function(a){var n=_c.select(this),i;if(a.selected){i=KP.ensureUniformFontSize(t,rR(n,a,r,t));var l=r.selected.textfont&&r.selected.textfont.color;l&&(i.color=l),wc.font(n,i)}else wc.selectedTextStyle(n,r)})}function rR(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=iR(r,t);i=aR(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=nR(t,r.i,n));return i}function tR(e,r,t){return v3(sae,e.textfont,r,t)}function aR(e,r,t,a){var n=tR(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:oae.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),v3(uae,e.insidetextfont,r,n)}function nR(e,r,t){var a=tR(e,r,t);return v3(fae,e.outsidetextfont,r,a)}function v3(e,r,t,a){r=r||{};var n=ya.getValue(r.family,t),i=ya.getValue(r.size,t),l=ya.getValue(r.color,t),o=ya.getValue(r.weight,t),s=ya.getValue(r.style,t),u=ya.getValue(r.variant,t),f=ya.getValue(r.textcase,t),v=ya.getValue(r.lineposition,t),h=ya.getValue(r.shadow,t);return{family:ya.coerceString(e.family,n,a.family),size:ya.coerceNumber(e.size,i,a.size),color:ya.coerceColor(e.color,l,a.color),weight:ya.coerceString(e.weight,o,a.weight),style:ya.coerceString(e.style,s,a.style),variant:ya.coerceString(e.variant,u,a.variant),textcase:ya.coerceString(e.variant,f,a.textcase),lineposition:ya.coerceString(e.variant,v,a.lineposition),shadow:ya.coerceString(e.variant,h,a.shadow)}}function iR(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}lR.exports={style:cae,styleTextPoints:eR,styleOnSelect:vae,getInsideTextFont:aR,getOutsideTextFont:nR,getBarColor:iR,resizeText:$P}});var pR=Z((jce,dR)=>{"use strict";var Kd=Ir(),Qd=Hr(),la=Ie(),pae=xa(),mae=Er(),Fl=at(),yae=gr(),$d=dt().tickText,oR=xc(),gae=oR.recordMinTextSize,bae=oR.clearMinTextSize,h3=Jd(),wu=Xd(),xae=Wd(),sR=gc(),_ae=sR.text,wae=sR.textposition,Tae=bi().appendArrayPointValue,Fa=xae.TEXTPAD;function Mae(e){return e.id}function Aae(e){if(e.ids)return Mae}function d3(e){return(e>0)-(e<0)}function Ei(e,r){return e0}function Sae(e,r,t,a,n,i){var l=r.xaxis,o=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},bae("bar",s));var f=la.makeTraceGroups(a,t,"trace bars").each(function(v){var h=Kd.select(this),d=v[0].trace,m=v[0].t,g=d.type==="waterfall",y=d.type==="funnel",_=d.type==="histogram",w=d.type==="bar",T=w||y,b=0;g&&d.connector.visible&&d.connector.mode==="between"&&(b=d.connector.line.width/2);var A=d.orientation==="h",C=fR(n),k=la.ensureSingle(h,"g","points"),q=Aae(d),D=k.selectAll("g.point").data(la.identity,q);D.enter().append("g").classed("point",!0),D.exit().remove(),D.each(function(z,F){var I=Kd.select(this),O=kae(z,l,o,A),X=O[0][0],J=O[0][1],Y=O[1][0],H=O[1][1],G=(A?J-X:H-Y)===0;G&&T&&wu.getLineWidth(d,z)&&(G=!1),G||(G=!Qd(X)||!Qd(J)||!Qd(Y)||!Qd(H)),z.isBlank=G,G&&(A?J=X:H=Y),b&&!G&&(A?(X-=Ei(X,J)*b,J+=Ei(X,J)*b):(Y-=Ei(Y,H)*b,H+=Ei(Y,H)*b));var Q,K;if(d.type==="waterfall"){if(!G){var ie=d[z.dir].marker;Q=ie.line.width,K=ie.color}}else Q=wu.getLineWidth(d,z),K=z.mc||d.marker.color;function de(ne){var Me=Kd.round(Q/2%1,2);return n.gap===0&&n.groupgap===0?Kd.round(Math.round(ne)-Me,2):ne}function pe(ne,Me,Ce){return Ce&&ne===Me?ne:Math.abs(ne-Me)>=2?de(ne):ne>Me?Math.ceil(ne):Math.floor(ne)}var Ae=mae.opacity(K),ee=Ae<1||Q>.01?de:pe;e._context.staticPlot||(X=ee(X,J,A),J=ee(J,X,A),Y=ee(Y,H,!A),H=ee(H,Y,!A));var ke=A?l.c2p:o.c2p,ve;z.s0>0?ve=z._sMax:z.s0<0?ve=z._sMin:ve=z.s1>0?z._sMax:z._sMin;function be(ne,Me){if(!ne)return 0;var Ce=Math.abs(A?H-Y:J-X),sr=Math.abs(A?J-X:H-Y),tr=ee(Math.abs(ke(ve,!0)-ke(0,!0))),De=z.hasB?Math.min(Ce/2,sr/2):Math.min(Ce/2,tr),Le;if(Me==="%"){var Ue=Math.min(50,ne);Le=Ce*(Ue/100)}else Le=ne;return ee(Math.max(Math.min(Le,De),0))}var se=w||_?be(m.cornerradiusvalue,m.cornerradiusform):0,ge,B,re="M"+X+","+Y+"V"+H+"H"+J+"V"+Y+"Z",U=0;if(se&&z.s){var me=d3(z.s0)===0||d3(z.s)===d3(z.s0)?z.s1:z.s0;if(U=ee(z.hasB?0:Math.abs(ke(ve,!0)-ke(me,!0))),U0?Math.sqrt(U*(2*se-U)):0,ze=we>0?Math.max:Math.min;ge="M"+X+","+Y+"V"+(H-Fe*ye)+"H"+ze(J-(se-U)*we,X)+"A "+se+","+se+" 0 0 "+Re+" "+J+","+(H-se*ye-Ee)+"V"+(Y+se*ye+Ee)+"A "+se+","+se+" 0 0 "+Re+" "+ze(J-(se-U)*we,X)+","+(Y+Fe*ye)+"Z"}else if(z.hasB)ge="M"+(X+se*we)+","+Y+"A "+se+","+se+" 0 0 "+Re+" "+X+","+(Y+se*ye)+"V"+(H-se*ye)+"A "+se+","+se+" 0 0 "+Re+" "+(X+se*we)+","+H+"H"+(J-se*we)+"A "+se+","+se+" 0 0 "+Re+" "+J+","+(H-se*ye)+"V"+(Y+se*ye)+"A "+se+","+se+" 0 0 "+Re+" "+(J-se*we)+","+Y+"Z";else{B=Math.abs(H-Y)+U;var Ye=B0?Math.sqrt(U*(2*se-U)):0,Pe=ye>0?Math.max:Math.min;ge="M"+(X+Ye*we)+","+Y+"V"+Pe(H-(se-U)*ye,Y)+"A "+se+","+se+" 0 0 "+Re+" "+(X+se*we-Ze)+","+H+"H"+(J-se*we+Ze)+"A "+se+","+se+" 0 0 "+Re+" "+(J-Ye*we)+","+Pe(H-(se-U)*ye,Y)+"V"+Y+"Z"}}else ge=re}else ge=re;var Be=uR(la.ensureSingle(I,"path"),s,n,i);if(Be.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((J-X)*(H-Y))||G&&e._context.staticPlot?"M0,0Z":ge).call(Fl.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&C){var Oe=Fl.makePointStyleFns(d);Fl.singlePointStyle(z,Be,d,Oe,e)}Cae(e,r,I,v,F,X,J,Y,H,se,U,n,i),r.layerClipId&&Fl.hideOutsideRangePoint(z,I.select("text"),l,o,d.xcalendar,d.ycalendar)});var R=d.cliponaxis===!1;Fl.setClipUrl(h,R?null:r.layerClipId,e)});yae.getComponentMethod("errorbars","plot")(e,f,r,n)}function Cae(e,r,t,a,n,i,l,o,s,u,f,v,h){var d=r.xaxis,m=r.yaxis,g=e._fullLayout,y;function _(B,re,U){var me=la.ensureSingle(B,"text").text(re).attr({class:"bartext bartext-"+y,"text-anchor":"middle","data-notex":1}).call(Fl.font,U).call(pae.convertToTspans,e);return me}var w=a[0].trace,T=w.orientation==="h",b=Dae(g,a,n,d,m);y=Eae(w,n);var A=v.mode==="stack"||v.mode==="relative",C=a[n],k=!A||C._outmost,q=C.hasB,D=u&&u-f>Fa;if(!b||y==="none"||(C.isBlank||i===l||o===s)&&(y==="auto"||y==="inside")){t.select("text").remove();return}var R=g.font,z=h3.getBarColor(a[n],w),F=h3.getInsideTextFont(w,n,R,z),I=h3.getOutsideTextFont(w,n,R),O=w.insidetextanchor||"end",X=t.datum();T?d.type==="log"&&X.s0<=0&&(d.range[0]0&&de>0,ee;D?q?ee=Go(H-2*u,G,ie,de,T)||Go(H,G-2*u,ie,de,T):T?ee=Go(H-(u-f),G,ie,de,T)||Go(H,G-2*(u-f),ie,de,T):ee=Go(H,G-(u-f),ie,de,T)||Go(H-2*(u-f),G,ie,de,T):ee=Go(H,G,ie,de,T),Ae&&ee?y="inside":(y="outside",Q.remove(),Q=null)}else y="inside";if(!Q){pe=la.ensureUniformFontSize(e,y==="outside"?I:F),Q=_(t,b,pe);var ke=Q.attr("transform");if(Q.attr("transform",""),K=Fl.bBox(Q.node()),ie=K.width,de=K.height,Q.attr("transform",ke),ie<=0||de<=0){Q.remove();return}}var ve=w.textangle,be,se;y==="outside"?(se=w.constraintext==="both"||w.constraintext==="outside",be=qae(i,l,o,s,K,{isHorizontal:T,constrained:se,angle:ve})):(se=w.constraintext==="both"||w.constraintext==="inside",be=hR(i,l,o,s,K,{isHorizontal:T,constrained:se,angle:ve,anchor:O,hasB:q,r:u,overhead:f})),be.fontSize=pe.size,gae(w.type==="histogram"?"bar":w.type,be,g),C.transform=be;var ge=uR(Q,g,v,h);la.setTransormAndDisplay(ge,be)}function Go(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,l=t<=r&&a<=e,o=n?e>=t*(r/a):r>=a*(e/t);return i||l||o}function cR(e){return e==="auto"?0:e}function vR(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function hR(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",v=u==="start",h=i.leftToRight||0,d=(h+1)/2,m=1-d,g=i.hasB,y=i.r,_=i.overhead,w=n.width,T=n.height,b=Math.abs(r-e),A=Math.abs(a-t),C=b>2*Fa&&A>2*Fa?Fa:0;b-=2*C,A-=2*C;var k=cR(s);s==="auto"&&!(w<=b&&T<=A)&&(w>b||T>A)&&(!(w>A||T>b)||wFa){var z=Lae(e,r,t,a,q,y,_,l,g);D=z.scale,R=z.pad}else D=1,o&&(D=Math.min(1,b/q.x,A/q.y)),R=0;var F=n.left*m+n.right*d,I=(n.top+n.bottom)/2,O=(e+Fa)*m+(r-Fa)*d,X=(t+a)/2,J=0,Y=0;if(v||f){var H=(l?q.x:q.y)/2;y&&(f||g)&&(C+=R);var G=l?Ei(e,r):Ei(t,a);l?v?(O=e+G*C,J=-G*H):(O=r-G*C,J=G*H):v?(X=t+G*C,Y=-G*H):(X=a-G*C,Y=G*H)}return{textX:F,textY:I,targetX:O,targetY:X,anchorX:J,anchorY:Y,scale:D,rotate:k}}function Lae(e,r,t,a,n,i,l,o,s){var u=Math.max(0,Math.abs(r-e)-2*Fa),f=Math.max(0,Math.abs(a-t)-2*Fa),v=i-Fa,h=l?v-Math.sqrt(v*v-(v-l)*(v-l)):v,d=s?v*2:o?v-l:2*h,m=s?v*2:o?2*h:v-l,g,y,_,w,T;return n.y/n.x>=f/(u-d)?w=f/n.y:n.y/n.x<=(f-m)/u?w=u/n.x:!s&&o?(g=n.x*n.x+n.y*n.y/4,y=-2*n.x*(u-v)-n.y*(f/2-v),_=(u-v)*(u-v)+(f/2-v)*(f/2-v)-v*v,w=(-y+Math.sqrt(y*y-4*g*_))/(2*g)):s?(g=(n.x*n.x+n.y*n.y)/4,y=-n.x*(u/2-v)-n.y*(f/2-v),_=(u/2-v)*(u/2-v)+(f/2-v)*(f/2-v)-v*v,w=(-y+Math.sqrt(y*y-4*g*_))/(2*g)):(g=n.x*n.x/4+n.y*n.y,y=-n.x*(u/2-v)-2*n.y*(f-v),_=(u/2-v)*(u/2-v)+(f-v)*(f-v)-v*v,w=(-y+Math.sqrt(y*y-4*g*_))/(2*g)),w=Math.min(1,w),o?T=Math.max(0,v-Math.sqrt(Math.max(0,v*v-(v-(f-n.y*w)/2)*(v-(f-n.y*w)/2)))-l):T=Math.max(0,v-Math.sqrt(Math.max(0,v*v-(v-(u-n.x*w)/2)*(v-(u-n.x*w)/2)))-l),{scale:w,pad:T}}function qae(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,v=Math.abs(r-e),h=Math.abs(a-t),d;l?d=h>2*Fa?Fa:0:d=v>2*Fa?Fa:0;var m=1;o&&(m=l?Math.min(1,h/f):Math.min(1,v/u));var g=cR(s),y=vR(n,g),_=(l?y.x:y.y)/2,w=(n.left+n.right)/2,T=(n.top+n.bottom)/2,b=(e+r)/2,A=(t+a)/2,C=0,k=0,q=l?Ei(r,e):Ei(t,a);return l?(b=r-q*d,C=q*_):(A=a+q*d,k=-q*_),{textX:w,textY:T,targetX:b,targetY:A,anchorX:C,anchorY:k,scale:m,rotate:g}}function Dae(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=Pae(e,r,t,a,n):i.textinfo?o=Rae(r,t,a,n):o=wu.getValue(i.text,t),wu.coerceString(_ae,o)}function Eae(e,r){var t=wu.getValue(e.textposition,r);return wu.coerceEnumerated(wae,t)}function Pae(e,r,t,a,n){var i=r[0].trace,l=la.castOption(i,t,"texttemplate");if(!l)return"";var o=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",v,h,d,m;f?(v="y",h=n,d="x",m=a):(v="x",h=a,d="y",m=n);function g(C){return $d(h,h.c2l(C),!0).text}function y(C){return $d(m,m.c2l(C),!0).text}var _=r[t],w={};w.label=_.p,w.labelLabel=w[v+"Label"]=g(_.p);var T=la.castOption(i,_.i,"text");(T===0||T)&&(w.text=T),w.value=_.s,w.valueLabel=w[d+"Label"]=y(_.s);var b={};Tae(b,i,_.i),(o||b.x===void 0)&&(b.x=f?w.value:w.label),(o||b.y===void 0)&&(b.y=f?w.label:w.value),(o||b.xLabel===void 0)&&(b.xLabel=f?w.valueLabel:w.labelLabel),(o||b.yLabel===void 0)&&(b.yLabel=f?w.labelLabel:w.valueLabel),s&&(w.delta=+_.rawS||_.s,w.deltaLabel=y(w.delta),w.final=_.v,w.finalLabel=y(w.final),w.initial=w.final-w.delta,w.initialLabel=y(w.initial)),u&&(w.value=_.s,w.valueLabel=y(w.value),w.percentInitial=_.begR,w.percentInitialLabel=la.formatPercent(_.begR),w.percentPrevious=_.difR,w.percentPreviousLabel=la.formatPercent(_.difR),w.percentTotal=_.sumR,w.percenTotalLabel=la.formatPercent(_.sumR));var A=la.castOption(i,_.i,"customdata");return A&&(w.customdata=A),la.texttemplateString(l,w,e._d3locale,b,w,i._meta||{})}function Rae(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",l=n.type==="waterfall",o=n.type==="funnel";function s(A){var C=i?a:t;return $d(C,A,!0).text}function u(A){var C=i?t:a;return $d(C,+A,!0).text}var f=n.textinfo,v=e[r],h=f.split("+"),d=[],m,g=function(A){return h.indexOf(A)!==-1};if(g("label")&&d.push(s(e[r].p)),g("text")&&(m=la.castOption(n,v.i,"text"),(m===0||m)&&d.push(m)),l){var y=+v.rawS||v.s,_=v.v,w=_-y;g("initial")&&d.push(u(w)),g("delta")&&d.push(u(y)),g("final")&&d.push(u(_))}if(o){g("value")&&d.push(u(v.s));var T=0;g("percent initial")&&T++,g("percent previous")&&T++,g("percent total")&&T++;var b=T>1;g("percent initial")&&(m=la.formatPercent(v.begR),b&&(m+=" of initial"),d.push(m)),g("percent previous")&&(m=la.formatPercent(v.difR),b&&(m+=" of previous"),d.push(m)),g("percent total")&&(m=la.formatPercent(v.sumR),b&&(m+=" of total"),d.push(m))}return d.join("
")}dR.exports={plot:Sae,toMoveInsideBar:hR}});var xR=Z((eve,bR)=>{"use strict";var Tc=ki(),zae=gr(),mR=Er(),Nae=Ie().fillText,Fae=Xd().getLineWidth,p3=dt().hoverLabelText,Iae=Bt().BADNUM;function Hae(e,r,t,a,n){var i=yR(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=gR(o,s),zae.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function yR(e,r,t,a,n){var i=e.cd,l=i[0].trace,o=i[0].t,s=a==="closest",u=l.type==="waterfall",f=e.maxHoverDistance,v=e.maxSpikeDistance,h,d,m,g,y,_,w;l.orientation==="h"?(h=t,d=r,m="y",g="x",y=X,_=F):(h=r,d=t,m="x",g="y",_=X,y=F);var T=l[m+"period"],b=s||T;function A(ee){return k(ee,-1)}function C(ee){return k(ee,1)}function k(ee,ke){var ve=ee.w;return ee[m]+ke*ve/2}function q(ee){return ee[m+"End"]-ee[m+"Start"]}var D=s?A:T?function(ee){return ee.p-q(ee)/2}:function(ee){return Math.min(A(ee),ee.p-o.bardelta/2)},R=s?C:T?function(ee){return ee.p+q(ee)/2}:function(ee){return Math.max(C(ee),ee.p+o.bardelta/2)};function z(ee,ke,ve){return n.finiteRange&&(ve=0),Tc.inbox(ee-h,ke-h,ve+Math.min(1,Math.abs(ke-ee)/w)-1)}function F(ee){return z(D(ee),R(ee),f)}function I(ee){return z(A(ee),C(ee),v)}function O(ee){var ke=ee[g];if(u){var ve=Math.abs(ee.rawS)||0;d>0?ke+=ve:d<0&&(ke-=ve)}return ke}function X(ee){var ke=d,ve=ee.b,be=O(ee);return Tc.inbox(ve-ke,be-ke,f+(be-ke)/(be-ve)-1)}function J(ee){var ke=d,ve=ee.b,be=O(ee);return Tc.inbox(ve-ke,be-ke,v+(be-ke)/(be-ve)-1)}var Y=e[m+"a"],H=e[g+"a"];w=Math.abs(Y.r2c(Y.range[1])-Y.r2c(Y.range[0]));function G(ee){return(y(ee)+_(ee))/2}var Q=Tc.getDistanceFunction(a,y,_,G);if(Tc.getClosest(i,Q,e),e.index!==!1&&i[e.index].p!==Iae){b||(D=function(ee){return Math.min(A(ee),ee.p-o.bargroupwidth/2)},R=function(ee){return Math.max(C(ee),ee.p+o.bargroupwidth/2)});var K=e.index,ie=i[K],de=l.base?ie.b+ie.s:ie.s;e[g+"0"]=e[g+"1"]=H.c2p(ie[g],!0),e[g+"LabelVal"]=de;var pe=o.extents[o.extents.round(ie.p)];e[m+"0"]=Y.c2p(s?D(ie):pe[0],!0),e[m+"1"]=Y.c2p(s?R(ie):pe[1],!0);var Ae=ie.orig_p!==void 0;return e[m+"LabelVal"]=Ae?ie.orig_p:ie.p,e.labelLabel=p3(Y,e[m+"LabelVal"],l[m+"hoverformat"]),e.valueLabel=p3(H,e[g+"LabelVal"],l[g+"hoverformat"]),e.baseLabel=p3(H,ie.b,l[g+"hoverformat"]),e.spikeDistance=(J(ie)+I(ie))/2,e[m+"Spike"]=Y.c2p(ie.p,!0),Nae(ie,l,e),e.hovertemplate=l.hovertemplate,e}}function gR(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=Fae(e,r);if(mR.opacity(t))return t;if(mR.opacity(a)&&n)return a}bR.exports={hoverPoints:Hae,hoverOnBars:yR,getTraceColor:gR}});var wR=Z((rve,_R)=>{"use strict";_R.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var MR=Z((tve,TR)=>{"use strict";TR.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=a[0].trace,o=l.type==="funnel",s=l.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";AR.exports={attributes:gc(),layoutAttributes:u3(),supplyDefaults:bc().supplyDefaults,crossTraceDefaults:bc().crossTraceDefaults,supplyLayoutDefaults:HP(),calc:WP(),crossTraceCalc:e2().crossTraceCalc,colorbar:a2(),arraysToCalcdata:f3(),plot:pR().plot,style:Jd().style,styleOnSelect:Jd().styleOnSelect,hoverPoints:xR().hoverPoints,eventData:wR(),selectPoints:MR(),moduleType:"trace",name:"bar",basePlotModule:bd(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var CR=Z((nve,SR)=>{"use strict";SR.exports=kR()});var m3=Z((ive,LR)=>{"use strict";var Bae=Gn(),Yae=Od().attributes,Uae=ha(),Gae=hi(),Vae=zi().hovertemplateAttrs,Wae=zi().texttemplateAttrs,Mc=Yt().extendFlat,Zae=mi().pattern,jd=Uae({editType:"plot",arrayOk:!0,colorEditType:"plot"});LR.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Gae.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:Zae,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:Mc({},Bae.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Vae({},{keys:["label","color","value","percent","text"]}),texttemplate:Wae({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:Mc({},jd,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:Mc({},jd,{}),outsidetextfont:Mc({},jd,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:Mc({},jd,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:Yae({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var PR=Z((lve,ER)=>{"use strict";var Xae=Hr(),Ac=Ie(),Jae=m3(),Kae=Od().defaults,Qae=bc().handleText,$ae=Ie().coercePattern;function qR(e,r){var t=Ac.isArrayOrTypedArray(e),a=Ac.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,l=0;l0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function DR(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var l=a("marker.colors");$ae(a,"marker.pattern",l),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function jae(e,r,t,a){function n(w,T){return Ac.coerce(e,r,Jae,w,T)}var i=n("labels"),l=n("values"),o=qR(i,l),s=o.len;if(r._hasLabels=o.hasLabels,r._hasValues=o.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,DR(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate"),v;if(f||(v=n("textinfo",Ac.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),f||v&&v!=="none"){var h=n("textposition");Qae(e,r,a,n,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",m=d||h==="outside";m&&n("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&n("insidetextorientation")}else v==="none"&&n("textposition","none");Kae(r,a,n);var g=n("hole"),y=n("title.text");if(y){var _=n("title.position",g?"middle center":"top center");!g&&_==="middle center"&&(r.title.position="top center"),Ac.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}ER.exports={handleLabelsAndValues:qR,handleMarkerDefaults:DR,supplyDefaults:jae}});var y3=Z((ove,RR)=>{"use strict";RR.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var NR=Z((sve,zR)=>{"use strict";var ene=Ie(),rne=y3();zR.exports=function(r,t){function a(n,i){return ene.coerce(r,t,rne,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var b3=Z((uve,HR)=>{"use strict";var tne=Hr(),g3=bn(),ane=Er(),nne={};function ine(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,l=r.marker.colors||[],o=r.values,s=r._length,u=r._hasValues&&s,f,v;if(r.dlabel)for(i=new Array(s),f=0;f=0});var b=r.type==="funnelarea"?g:r.sort;return b&&t.sort(function(A,C){return C.v-A.v}),t[0]&&(t[0].vTotal=m),t}function FR(e){return function(t,a){return!t||(t=g3(t),!t.isValid())?!1:(t=ane.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function lne(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],l=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=IR(i,nne));for(var o=0,s=0;s{"use strict";var one=bi().appendArrayMultiPointValues;OR.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),one(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var uz=Z((cve,sz)=>{"use strict";var tn=Ir(),sne=Pt(),e1=ki(),ZR=Er(),ji=at(),ga=Ie(),une=ga.strScale,YR=ga.strTranslate,x3=xa(),XR=xc(),fne=XR.recordMinTextSize,cne=XR.clearMinTextSize,JR=Wd().TEXTPAD,wr=H0(),r1=BR(),UR=Ie().isValidTextValue;function vne(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;cne("pie",a),$R(r,e),iz(r,n);var i=ga.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=tn.select(this),s=l[0],u=s.trace;_ne(l),o.attr("stroke-linejoin","round"),o.each(function(){var f=tn.select(this).selectAll("g.slice").data(l);f.enter().append("g").classed("slice",!0),f.exit().remove();var v=[[[],[]],[[],[]]],h=!1;f.each(function(b,A){if(b.hidden){tn.select(this).selectAll("path,g").remove();return}b.pointNumber=b.i,b.curveNumber=u.index,v[b.pxmid[1]<0?0:1][b.pxmid[0]<0?0:1].push(b);var C=s.cx,k=s.cy,q=tn.select(this),D=q.selectAll("path.surface").data([b]);if(D.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),q.call(KR,e,l),u.pull){var R=+wr.castOption(u.pull,b.pts)||0;R>0&&(C+=R*b.pxmid[0],k+=R*b.pxmid[1])}b.cxFinal=C,b.cyFinal=k;function z(H,G,Q,K){var ie=K*(G[0]-H[0]),de=K*(G[1]-H[1]);return"a"+K*s.r+","+K*s.r+" 0 "+b.largeArc+(Q?" 1 ":" 0 ")+ie+","+de}var F=u.hole;if(b.v===s.vTotal){var I="M"+(C+b.px0[0])+","+(k+b.px0[1])+z(b.px0,b.pxmid,!0,1)+z(b.pxmid,b.px0,!0,1)+"Z";F?D.attr("d","M"+(C+F*b.px0[0])+","+(k+F*b.px0[1])+z(b.px0,b.pxmid,!1,F)+z(b.pxmid,b.px0,!1,F)+"Z"+I):D.attr("d",I)}else{var O=z(b.px0,b.px1,!0,1);if(F){var X=1-F;D.attr("d","M"+(C+F*b.px1[0])+","+(k+F*b.px1[1])+z(b.px1,b.px0,!1,F)+"l"+X*b.px0[0]+","+X*b.px0[1]+O+"Z")}else D.attr("d","M"+C+","+k+"l"+b.px0[0]+","+b.px0[1]+O+"Z")}lz(e,b,s);var J=wr.castOption(u.textposition,b.pts),Y=q.selectAll("g.slicetext").data(b.text&&J!=="none"?[0]:[]);Y.enter().append("g").classed("slicetext",!0),Y.exit().remove(),Y.each(function(){var H=ga.ensureSingle(tn.select(this),"text","",function(ee){ee.attr("data-notex",1)}),G=ga.ensureUniformFontSize(e,J==="outside"?dne(u,b,a.font):QR(u,b,a.font));H.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(ji.font,G).call(x3.convertToTspans,e);var Q=ji.bBox(H.node()),K;if(J==="outside")K=WR(Q,b);else if(K=jR(Q,b,s),J==="auto"&&K.scale<1){var ie=ga.ensureUniformFontSize(e,u.outsidetextfont);H.call(ji.font,ie),Q=ji.bBox(H.node()),K=WR(Q,b)}var de=K.textPosAngle,pe=de===void 0?b.pxmid:t1(s.r,de);if(K.targetX=C+pe[0]*K.rCenter+(K.x||0),K.targetY=k+pe[1]*K.rCenter+(K.y||0),oz(K,Q),K.outside){var Ae=K.targetY;b.yLabelMin=Ae-Q.height/2,b.yLabelMid=Ae,b.yLabelMax=Ae+Q.height/2,b.labelExtraX=0,b.labelExtraY=0,h=!0}K.fontSize=G.size,fne(u.type,K,a),l[A].transform=K,ga.setTransormAndDisplay(H,K)})});var d=tn.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var b=ga.ensureSingle(tn.select(this),"text","",function(k){k.attr("data-notex",1)}),A=u.title.text;u._meta&&(A=ga.templateString(A,u._meta)),b.text(A).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(ji.font,u.title.font).call(x3.convertToTspans,e);var C;u.title.position==="middle center"?C=yne(s):C=az(s,n),b.attr("transform",YR(C.x,C.y)+une(Math.min(1,C.scale))+YR(C.tx,C.ty))}),h&&bne(v,u),hne(f,u),h&&u.automargin){var m=ji.bBox(o.node()),g=u.domain,y=n.w*(g.x[1]-g.x[0]),_=n.h*(g.y[1]-g.y[0]),w=(.5*y-s.r)/n.w,T=(.5*_-s.r)/n.h;sne.autoMargin(e,"pie."+u.uid+".automargin",{xl:g.x[0]-w,xr:g.x[1]+w,yb:g.y[0]-T,yt:g.y[1]+T,l:Math.max(s.cx-s.r-m.left,0),r:Math.max(m.right-(s.cx+s.r),0),b:Math.max(m.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-m.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var l=tn.select(this);l.attr("dy")&&l.attr("dy",l.attr("dy"))})},0)}function hne(e,r){e.each(function(t){var a=tn.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,ga.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],l=t.cyFinal+t.pxmid[1],o="M"+i+","+l,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?o+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):o+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else o+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;ga.ensureSingle(a,"path","textline").call(ZR.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function KR(e,r,t){var a=t[0],n=a.cx,i=a.cy,l=a.trace,o=l.type==="funnelarea";"_hasHoverLabel"in l||(l._hasHoverLabel=!1),"_hasHoverEvent"in l||(l._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[l.index];if(!(r._dragging||u.hovermode===!1)){var v=f.hoverinfo;if(Array.isArray(v)&&(v=e1.castHoverinfo({hoverinfo:[wr.castOption(v,s.pts)],_module:l._module},u,0)),v==="all"&&(v="label+text+value+percent+name"),f.hovertemplate||v!=="none"&&v!=="skip"&&v){var h=s.rInscribed||0,d=n+s.pxmid[0]*(1-h),m=i+s.pxmid[1]*(1-h),g=u.separators,y=[];if(v&&v.indexOf("label")!==-1&&y.push(s.label),s.text=wr.castOption(f.hovertext||f.text,s.pts),v&&v.indexOf("text")!==-1){var _=s.text;ga.isValidTextValue(_)&&y.push(_)}s.value=s.v,s.valueLabel=wr.formatPieValue(s.v,g),v&&v.indexOf("value")!==-1&&y.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=wr.formatPiePercent(s.percent,g),v&&v.indexOf("percent")!==-1&&y.push(s.percentLabel);var w=f.hoverlabel,T=w.font,b=[];e1.loneHover({trace:l,x0:d-h*a.r,x1:d+h*a.r,y:m,_x0:o?n+s.TL[0]:d-h*a.r,_x1:o?n+s.TR[0]:d+h*a.r,_y0:o?i+s.TL[1]:m-h*a.r,_y1:o?i+s.BL[1]:m+h*a.r,text:y.join("
"),name:f.hovertemplate||v.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:wr.castOption(w.bgcolor,s.pts)||s.color,borderColor:wr.castOption(w.bordercolor,s.pts),fontFamily:wr.castOption(T.family,s.pts),fontSize:wr.castOption(T.size,s.pts),fontColor:wr.castOption(T.color,s.pts),nameLength:wr.castOption(w.namelength,s.pts),textAlign:wr.castOption(w.align,s.pts),hovertemplate:wr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[r1(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:b}),s.bbox=b[0],l._hasHoverLabel=!0}l._hasHoverEvent=!0,r.emit("plotly_hover",{points:[r1(s,f)],event:tn.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[l.index],v=tn.select(this).datum();l._hasHoverEvent&&(s.originalEvent=tn.event,r.emit("plotly_unhover",{points:[r1(v,f)],event:tn.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(e1.loneUnhover(u._hoverlayer.node()),l._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[l.index];r._dragging||u.hovermode===!1||(r._hoverdata=[r1(s,f)],e1.click(r,tn.event))})}function dne(e,r,t){var a=wr.castOption(e.outsidetextfont.color,r.pts)||wr.castOption(e.textfont.color,r.pts)||t.color,n=wr.castOption(e.outsidetextfont.family,r.pts)||wr.castOption(e.textfont.family,r.pts)||t.family,i=wr.castOption(e.outsidetextfont.size,r.pts)||wr.castOption(e.textfont.size,r.pts)||t.size,l=wr.castOption(e.outsidetextfont.weight,r.pts)||wr.castOption(e.textfont.weight,r.pts)||t.weight,o=wr.castOption(e.outsidetextfont.style,r.pts)||wr.castOption(e.textfont.style,r.pts)||t.style,s=wr.castOption(e.outsidetextfont.variant,r.pts)||wr.castOption(e.textfont.variant,r.pts)||t.variant,u=wr.castOption(e.outsidetextfont.textcase,r.pts)||wr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=wr.castOption(e.outsidetextfont.lineposition,r.pts)||wr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,v=wr.castOption(e.outsidetextfont.shadow,r.pts)||wr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:v}}function QR(e,r,t){var a=wr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=wr.castOption(e._input.textfont.color,r.pts));var n=wr.castOption(e.insidetextfont.family,r.pts)||wr.castOption(e.textfont.family,r.pts)||t.family,i=wr.castOption(e.insidetextfont.size,r.pts)||wr.castOption(e.textfont.size,r.pts)||t.size,l=wr.castOption(e.insidetextfont.weight,r.pts)||wr.castOption(e.textfont.weight,r.pts)||t.weight,o=wr.castOption(e.insidetextfont.style,r.pts)||wr.castOption(e.textfont.style,r.pts)||t.style,s=wr.castOption(e.insidetextfont.variant,r.pts)||wr.castOption(e.textfont.variant,r.pts)||t.variant,u=wr.castOption(e.insidetextfont.textcase,r.pts)||wr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=wr.castOption(e.insidetextfont.lineposition,r.pts)||wr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,v=wr.castOption(e.insidetextfont.shadow,r.pts)||wr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||ZR.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:v}}function $R(e,r){for(var t,a,n=0;n=-4;w-=2)_(Math.PI*w,"tan");for(w=4;w>=-4;w-=2)_(Math.PI*(w+1),"tan")}if(v||d){for(w=4;w>=-4;w-=2)_(Math.PI*(w+1.5),"rad");for(w=4;w>=-4;w-=2)_(Math.PI*(w+.5),"rad")}}if(o||m||v){var T=Math.sqrt(e.width*e.width+e.height*e.height);if(y={scale:n*a*2/T,rCenter:1-n,rotate:0},y.textPosAngle=(r.startangle+r.stopangle)/2,y.scale>=1)return y;g.push(y)}(m||d)&&(y=GR(e,a,l,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,g.push(y)),(m||h)&&(y=VR(e,a,l,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,g.push(y));for(var b=0,A=0,C=0;C=1)break}return g[b]}function pne(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function yne(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function az(e,r){var t=1,a=1,n,i=e.trace,l={x:e.cx,y:e.cy},o={tx:0,ty:0};o.ty+=i.title.font.size,n=nz(i),i.title.position.indexOf("top")!==-1?(l.y-=(1+n)*e.r,o.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(l.y+=(1+n)*e.r);var s=gne(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,l.x-=(1+n)*s,o.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,l.x+=(1+n)*s,o.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=_3(e,r)/e.titleBox.height,{x:l.x,y:l.y,scale:Math.min(t,a),tx:o.tx,ty:o.ty}}function gne(e,r){return e/(r===void 0?1:r)}function _3(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function nz(e){var r=e.pull;if(!r)return 0;var t;if(ga.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function bne(e,r){var t,a,n,i,l,o,s,u,f,v,h,d,m;function g(T,b){return T.pxmid[1]-b.pxmid[1]}function y(T,b){return b.pxmid[1]-T.pxmid[1]}function _(T,b){b||(b={});var A=b.labelExtraY+(a?b.yLabelMax:b.yLabelMin),C=a?T.yLabelMin:T.yLabelMax,k=a?T.yLabelMax:T.yLabelMin,q=T.cyFinal+l(T.px0[1],T.px1[1]),D=A-C,R,z,F,I,O,X;if(D*s>0&&(T.labelExtraY=D),!!ga.isArrayOrTypedArray(r.pull))for(z=0;z=(wr.castOption(r.pull,F.pts)||0))&&((T.pxmid[1]-F.pxmid[1])*s>0?(I=F.cyFinal+l(F.px0[1],F.px1[1]),D=I-C-T.labelExtraY,D*s>0&&(T.labelExtraY+=D)):(k+T.labelExtraY-q)*s>0&&(R=3*o*Math.abs(z-v.indexOf(T)),O=F.cxFinal+i(F.px0[0],F.px1[0]),X=O+R-(T.cxFinal+T.pxmid[0])-T.labelExtraX,X*o>0&&(T.labelExtraX+=X)))}for(a=0;a<2;a++)for(n=a?g:y,l=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,o=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],v=f.concat(u),d=[],h=0;h1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}l=Math.min(l,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=mne(u,r))}function t1(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function lz(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,l=n.textinfo;if(!i&&l&&l!=="none"){var o=l.split("+"),s=function(b){return o.indexOf(b)!==-1},u=s("label"),f=s("text"),v=s("value"),h=s("percent"),d=a.separators,m;if(m=u?[r.label]:[],f){var g=wr.getFirstFilled(n.text,r.pts);UR(g)&&m.push(g)}v&&m.push(wr.formatPieValue(r.v,d)),h&&m.push(wr.formatPiePercent(r.v/t.vTotal,d)),r.text=m.join("
")}function y(b){return{label:b.label,value:b.v,valueLabel:wr.formatPieValue(b.v,a.separators),percent:b.v/t.vTotal,percentLabel:wr.formatPiePercent(b.v/t.vTotal,a.separators),color:b.color,text:b.text,customdata:ga.castOption(n,b.i,"customdata")}}if(i){var _=ga.castOption(n,r.i,"texttemplate");if(!_)r.text="";else{var w=y(r),T=wr.getFirstFilled(n.text,r.pts);(UR(T)||T==="")&&(w.text=T),r.text=ga.texttemplateString(_,w,e._fullLayout._d3locale,w,n._meta||{})}}}function oz(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,l=(r.top+r.bottom)/2;e.textX=i*a-l*n,e.textY=i*n+l*a,e.noCenter=!0}sz.exports={plot:vne,formatSliceLabel:lz,transformInsideText:jR,determineInsideTextFont:QR,positionTitleOutside:az,prerenderTitles:$R,layoutAreas:iz,attachFxHandlers:KR,computeTransform:oz}});var vz=Z((vve,cz)=>{"use strict";var fz=Ir(),wne=O0(),Tne=xc().resizeText;cz.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");Tne(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=fz.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){fz.select(this).call(wne,o,i,r)})})}});var dz=Z(Tu=>{"use strict";var hz=Pt();Tu.name="pie";Tu.plot=function(e,r,t,a){hz.plotBasePlot(Tu.name,e,r,t,a)};Tu.clean=function(e,r,t,a){hz.cleanBasePlot(Tu.name,e,r,t,a)}});var mz=Z((dve,pz)=>{"use strict";pz.exports={attributes:m3(),supplyDefaults:PR().supplyDefaults,supplyLayoutDefaults:NR(),layoutAttributes:y3(),calc:b3().calc,crossTraceCalc:b3().crossTraceCalc,plot:uz().plot,style:vz(),styleOne:O0(),moduleType:"trace",name:"pie",basePlotModule:dz(),categories:["pie-like","pie","showLegend"],meta:{}}});var gz=Z((pve,yz)=>{"use strict";yz.exports=mz()});var Ma=Z((mve,xz)=>{"use strict";var bz=Object.getOwnPropertySymbols,Mne=Object.prototype.hasOwnProperty,Ane=Object.prototype.propertyIsEnumerable;function kne(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Sne(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}xz.exports=Sne()?Object.assign:function(e,r){for(var t,a=kne(e),n,i=1;i{var n1=Ma();function _z(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}n1(_z.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function w3(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function a1(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}n1(w3.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Pr.local.differentCalendars||Pr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+a1(Math.abs(this.year()),4)+"-"+a1(this.month(),2)+"-"+a1(this.day(),2)}});function T3(){this.shortYearCutoff="+10"}n1(T3.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new w3(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+a1(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Pr.local.invalidMonth||Pr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Pr.local.invalidMonth||Pr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),l=e.monthOfYear()+(t==="m"?r:0),n=e.day(),o=function(f){for(;lv-1+f.minMonth;)i++,l-=v,v=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,l)&&(l=this.newDate(i,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l)))):t==="m"&&(o(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l))));var s=[i,this.fromMonthOfYear(i,l),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,o)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Pr=wz.exports=new _z;Pr.cdate=w3;Pr.baseCalendar=T3;Pr.calendars.gregorian=M3});var Tz=Z(()=>{var A3=Ma(),oa=Aa();A3(oa.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});oa.local=oa.regionalOptions[""];A3(oa.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});A3(oa.baseCalendar.prototype,{UNIX_EPOCH:oa.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:oa.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw oa.local.invalidFormat||oa.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,l=t.monthNamesShort||this.local.monthNamesShort,o=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(b,A){for(var C=1;T+C1},f=function(b,A,C,k){var q=""+A;if(u(b,k))for(;q.length1},w=function(F,I){var O=_(F,I),X=[2,3,O?4:2,O?4:2,10,11,20]["oyYJ@!".indexOf(F)+1],J=new RegExp("^-?\\d{1,"+X+"}"),Y=r.substring(q).match(J);if(!Y)throw(oa.local.missingNumberAt||oa.regionalOptions[""].missingNumberAt).replace(/\{0\}/,q);return q+=Y[0].length,parseInt(Y[0],10)},T=this,b=function(){if(typeof o=="function"){_("m");var F=o.call(T,r.substring(q));return q+=F.length,F}return w("m")},A=function(F,I,O,X){for(var J=_(F,X)?O:I,Y=0;Y-1){h=1,d=m;for(var z=this.daysInMonth(v,h);d>z;z=this.daysInMonth(v,h))h++,d-=z}return f>-1?this.fromJD(f):this.newDate(v,h,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,l=function(o){try{return i.parseDate(a,o,n)}catch(v){}o=o.toLowerCase();for(var s=(o.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(o);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(o);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var Mz=Z(()=>{var Il=Aa(),Cne=Ma(),k3=Il.instance();function i1(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i1.prototype=new Il.baseCalendar;Cne(i1.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(qne);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(Dne);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(Ene);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw Il.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw Il.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,Il.local.invalidyear),n=Ol[a-Ol[0]],i=n>>9&4095,l=n>>5&15,o=n&31,s;s=k3.newDate(i,l,o),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Hl[e-Hl[0]],a=t>>13,n=a?12:11;if(r>n)throw Il.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,Il.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),l=Rne(e,i,t,n);return k3.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=k3.fromJD(e),t=Pne(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(Lne),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),l=+r[4];return this.newDate(t,i,l)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),l=this.toChineseMonth(a,n),o=Object.getPrototypeOf(i1.prototype).add.call(this,e,r,t);if(t==="y"){var s=o.year(),u=o.month(),f=this.isIntercalaryMonth(s,l),v=i&&f?this.toMonthIndex(s,l,!0):this.toMonthIndex(s,l,!1);v!==u&&o.month(v)}return o}});var Lne=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,qne=/^\d?\d[iI]?/m,Dne=/^闰?十?[一二三四五六七八九]?月/m,Ene=/^闰?十?[一二三四五六七八九]?/m;Il.calendars.chinese=i1;var Hl=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Ol=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function Pne(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var o=typeof r=="number"&&r>=1&&r<=12;if(!o)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=Ol[n.year-Ol[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Ol[i.year-Ol[0]];var v=u>>9&4095,h=u>>5&15,d=u&31,m,g=new Date(v,h-1,d),y=new Date(n.year,n.month-1,n.day);m=Math.round((y-g)/(24*3600*1e3));var _=Hl[i.year-Hl[0]],w;for(w=0;w<13;w++){var T=_&1<<12-w?30:29;if(m>13;return!b||w=1888&&e<=2111;if(!o)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),l={year:e,month:r,day:t,isIntercalary:f}}var v;v=l.day-1;var h=Hl[l.year-Hl[0]],d=h>>13,m;d&&(l.month>d||l.isIntercalary)?m=l.month:m=l.month-1;for(var g=0;g>9&4095,T=_>>5&15,b=_&31,A=new Date(w,T-1,b+v);return i.year=A.getFullYear(),i.month=1+A.getMonth(),i.day=A.getDate(),i}});var Az=Z(()=>{var Vo=Aa(),zne=Ma();function S3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}S3.prototype=new Vo.baseCalendar;zne(S3.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Vo.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Vo.local.invalidYear||Vo.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Vo.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Vo.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Vo.calendars.coptic=S3});var kz=Z(()=>{var el=Aa(),Nne=Ma();function C3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C3.prototype=new el.baseCalendar;Nne(C3.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,el.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,el.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,el.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,el.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,el.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,el.local.invalidDate);return{century:Fne[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,el.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var Fne={20:"Fruitbat",21:"Anchovy"};el.calendars.discworld=C3});var Sz=Z(()=>{var Wo=Aa(),Ine=Ma();function L3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}L3.prototype=new Wo.baseCalendar;Ine(L3.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Wo.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Wo.local.invalidYear||Wo.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Wo.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Wo.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Wo.calendars.ethiopian=L3});var Cz=Z(()=>{var Bl=Aa(),Hne=Ma();function q3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}q3.prototype=new Bl.baseCalendar;Hne(q3.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Bl.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,l1(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Bl.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Bl.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Bl.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&l1(this.daysInYear(e),10)===5?30:r===9&&l1(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Bl.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,Bl.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var l=7;l<=this.monthsInYear(e);l++)i+=this.daysInMonth(e,l);for(var l=1;l=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function l1(e,r){return e-r*Math.floor(e/r)}Bl.calendars.hebrew=q3});var Lz=Z(()=>{var kc=Aa(),One=Ma();function D3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}D3.prototype=new kc.baseCalendar;One(D3.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,kc.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,kc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,kc.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});kc.calendars.islamic=D3});var qz=Z(()=>{var Sc=Aa(),Bne=Ma();function E3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}E3.prototype=new Sc.baseCalendar;Bne(E3.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Sc.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Sc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Sc.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),l=i-Math.floor(i<14?1:13),o=a-Math.floor(l>2?4716:4715),s=t-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,l,s)}});Sc.calendars.julian=E3});var Ez=Z(()=>{var Fn=Aa(),Yne=Ma();function R3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}R3.prototype=new Fn.baseCalendar;Yne(R3.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fn.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Fn.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fn.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Fn.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fn.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Fn.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Fn.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Fn.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Fn.local.invalidDate),n=a.toJD(),i=this._toHaab(n),l=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=P3(e+8+17*20,365);return[Math.floor(r/20)+1,P3(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[Dz(e+20,20),Dz(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Fn.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function P3(e,r){return e-r*Math.floor(e/r)}function Dz(e,r){return P3(e-1,r)+1}Fn.calendars.mayan=R3});var Rz=Z(()=>{var Zo=Aa(),Une=Ma();function z3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}z3.prototype=new Zo.baseCalendar;var Pz=Zo.instance("gregorian");Une(z3.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Zo.local.invalidYear||Zo.regionalOptions[""].invalidYear);return Pz.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Zo.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Zo.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),l=1;l=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});Zo.calendars.nanakshahi=z3});var zz=Z(()=>{var Xo=Aa(),Gne=Ma();function N3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}N3.prototype=new Xo.baseCalendar;Gne(N3.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Xo.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Xo.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,Xo.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=Xo.instance(),i=0,l=r,o=e;this._createMissingCalendarData(e);var s=e-(l>9||l===9&&t>=this.NEPALI_CALENDAR_DATA[o][0]?56:57);for(r!==9&&(i=t,l--);l!==9;)l<=0&&(l=12,o--),i+=this.NEPALI_CALENDAR_DATA[o][l],l--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[o][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[o][9]-this.NEPALI_CALENDAR_DATA[o][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=Xo.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var l=9,o=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][l]-o+1;n>s;)l++,l>12&&(l=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][l];var u=this.NEPALI_CALENDAR_DATA[i][l]-(s-n);return this.newDate(i,l,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Mu=Aa(),Vne=Ma();function s1(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function o1(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),l=n-Math.floor(n);return i>l}s1.prototype=new Mu.baseCalendar;Vne(s1.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Mu.local.invalidYear);return o1(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Mu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Mu.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,o1(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});Mu.calendars.persian=s1;Mu.calendars.jalali=s1});var Fz=Z(()=>{var Jo=Aa(),Wne=Ma(),u1=Jo.instance();function F3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}F3.prototype=new Jo.baseCalendar;Wne(F3.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Jo.local.invalidYear),t=this._t2gYear(r.year());return u1.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Jo.local.invalidYear),n=this._t2gYear(a.year());return u1.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Jo.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Jo.local.invalidDate),n=this._t2gYear(a.year());return u1.toJD(n,a.month(),a.day())},fromJD:function(e){var r=u1.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Jo.calendars.taiwan=F3});var Iz=Z(()=>{var Ko=Aa(),Zne=Ma(),f1=Ko.instance();function I3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}I3.prototype=new Ko.baseCalendar;Zne(I3.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Ko.local.invalidYear),t=this._t2gYear(r.year());return f1.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Ko.local.invalidYear),n=this._t2gYear(a.year());return f1.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ko.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Ko.local.invalidDate),n=this._t2gYear(a.year());return f1.toJD(n,a.month(),a.day())},fromJD:function(e){var r=f1.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Ko.calendars.thai=I3});var Hz=Z(()=>{var Qo=Aa(),Xne=Ma();function H3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}H3.prototype=new Qo.baseCalendar;Xne(H3.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Qo.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,Qo.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Yl[n]-Yl[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Qo.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Yl[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),l=i+1,o=n-12*i,s=r-Yl[t-1]+1;return this.newDate(l,o,s)},isValid:function(e,r,t){var a=Qo.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=Qo.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});Qo.calendars.ummalqura=H3;var Yl=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var Bz=Z((Xve,Oz)=>{"use strict";Oz.exports=Aa();Tz();Mz();Az();kz();Sz();Cz();Lz();qz();Ez();Rz();zz();Nz();Fz();Iz();Hz()});var Xz=Z((Jve,Zz)=>{"use strict";var Uz=Bz(),Cc=Ie(),Gz=Bt(),Jne=Gz.EPOCHJD,Kne=Gz.ONEDAY,Y3={valType:"enumerated",values:Cc.sortObjectKeys(Uz.calendars),editType:"calc",dflt:"gregorian"},Vz=function(e,r,t,a){var n={};return n[t]=Y3,Cc.coerce(e,r,n,t,a)},Qne=function(e,r,t,a){for(var n=0;n{"use strict";Jz.exports=Xz()});var aie=Z((Qve,$z)=>{var Qz=_P();Qz.register([CR(),gz(),Kz()]);$z.exports=Qz});return aie();})(); +`)};function E(V){return V.map(N).join(c)}function N(V){return x.test(V)?'"'+V.replace(/\"/g,'""')+'"':V}return S},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var Nc,Fc,Ic,Hc,G3=this[U(this,"requestAnimationFrame")]||function(c){setTimeout(c,17)};e.timer=function(){Oc.apply(this,arguments)};function Oc(c,p,x){var M=arguments.length;M<2&&(p=0),M<3&&(x=Date.now());var S=x+p,L={c,t:S,n:null};return Fc?Fc.n=L:Nc=L,Fc=L,Ic||(Hc=clearTimeout(Hc),Ic=1,G3(v1)),L}function v1(){var c=V3(),p=W3()-c;p>24?(isFinite(p)&&(clearTimeout(Hc),Hc=setTimeout(v1,p)),Ic=0):(Ic=1,G3(v1))}e.timer.flush=function(){V3(),W3()};function V3(){for(var c=Date.now(),p=Nc;p;)c>=p.t&&p.c(c-p.t)&&(p.c=null),p=p.n;return c}function W3(){for(var c,p=Nc,x=1/0;p;)p.c?(p.t=0;--E)te.push(S[V[$[E]][2]]);for(E=+pe;E1&&Qr(c[x[M-2]],c[x[M-1]],c[S])<=0;)--M;x[M++]=S}return x.slice(0,M)}function tN(c,p){return c[0]-p[0]||c[1]-p[1]}e.geom.polygon=function(c){return ee(c,Bc),c};var Bc=e.geom.polygon.prototype=[];Bc.area=function(){for(var c=-1,p=this.length,x,M=this[p-1],S=0;++cue)E=E.L;else if(P=p-lN(E,x),P>ue){if(!E.R){M=E;break}E=E.R}else{L>-ue?(M=E.P,S=E):P>-ue?(M=E,S=E.N):M=S=E;break}var N=Q3(c);if(ts.insert(M,N),!(!M&&!S)){if(M===S){ns(M),S=Q3(M.site),ts.insert(N,S),N.edge=S.edge=Du(M.site,N.site),as(M),as(S);return}if(!S){N.edge=Du(M.site,N.site);return}ns(M),ns(S);var V=M.site,W=V.x,$=V.y,j=c.x-W,pe=c.y-$,_e=S.site,te=_e.x-W,oe=_e.y-$,ce=2*(j*oe-pe*te),xe=j*j+pe*pe,we=te*te+oe*oe,de={x:(oe*xe-pe*we)/ce+W,y:(j*we-te*xe)/ce+$};Yc(S.edge,V,_e,de),N.edge=Du(V,c,null,de),S.edge=Du(c,_e,null,de),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 lN(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 oN(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,pe,_e,te,oe;W--;)if($=V[W],!(!$||!$.prepare()))for(pe=$.edges,_e=pe.length,j=0;j<_e;)oe=pe[j].end(),E=oe.x,N=oe.y,te=pe[++j%_e].start(),L=te.x,P=te.y,(_(E-L)>ue||_(N-P)>ue)&&(pe.splice(j,0,new Uc(vN($.site,oe,_(E-p)ue?{x:p,y:_(L-p)ue?{x:_(P-S)ue?{x,y:_(L-x)ue?{x:_(P-M)=-qe)){var j=N*N+V*V,pe=W*W+oe*oe,_e=(oe*j-V*pe)/$,te=(N*pe-W*j)/$,oe=te+E,ce=K3.pop()||new sN;ce.arc=c,ce.site=S,ce.x=_e+P,ce.y=oe+Math.sqrt(_e*_e+te*te),ce.cy=oe,c.circle=ce;for(var xe=null,we=qu._;we;)if(ce.y0)){if(te/=pe,pe<0){if(te<$)return;te0){if(te>j)return;te>$&&($=te)}if(te=x-E,!(!pe&&te<0)){if(te/=pe,pe<0){if(te>j)return;te>$&&($=te)}else if(pe>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+$*pe,y:N+$*_e}),j<1&&(S.b={x:E+j*pe,y:N+j*_e}),S}}}}}}function fN(c){for(var p=rs,x=uN(c[0][0],c[0][1],c[1][0],c[1][1]),M=p.length,S;M--;)S=p[M],(!cN(S,c)||!x(S)||_(S.a.x-S.b.x)=L)return;if(W>j){if(!M)M={x:_e,y:P};else if(M.y>=E)return;x={x:_e,y:E}}else{if(!M)M={x:_e,y:E};else if(M.y1)if(W>j){if(!M)M={x:(P-ce)/oe,y:P};else if(M.y>=E)return;x={x:(E-ce)/oe,y:E}}else{if(!M)M={x:(E-ce)/oe,y:E};else if(M.y=L)return;x={x:L,y:oe*L+ce}}else{if(!M)M={x:L,y:oe*L+ce};else if(M.x=W&&ce.x<=j&&ce.y>=$&&ce.y<=pe?[[W,pe],[j,pe],[j,$],[W,$]]:[];xe.point=N[te]}),V}function E(N){return N.map(function(V,W){return{x:Math.round(M(V,W)/ue)*ue,y:Math.round(S(V,W)/ue)*ue,i:W}})}return P.links=function(N){return g1(E(N)).edges.filter(function(V){return V.l&&V.r}).map(function(V){return{source:N[V.l.i],target:N[V.r.i]}})},P.triangles=function(N){var V=[];return g1(E(N)).cells.forEach(function(W,$){for(var j=W.site,pe=W.edges.sort(e5),_e=-1,te=pe.length,oe,ce,xe=pe[te-1].edge,we=xe.l===j?xe.r:xe.l;++_ewe&&(we=W.x),W.y>de&&(de=W.y),pe.push(W.x),_e.push(W.y);else for(te=0;tewe&&(we=Be),tr>de&&(de=tr),pe.push(Be),_e.push(tr)}var sr=we-ce,nr=de-xe;sr>nr?de=xe+sr:we=ce+nr;function hr(pr,Tr,Jr,Dt,rt,er,Lr,qr){if(!(isNaN(Jr)||isNaN(Dt)))if(pr.leaf){var Kr=pr.x,wt=pr.y;if(Kr!=null)if(_(Kr-Jr)+_(wt-Dt)<.01)dr(pr,Tr,Jr,Dt,rt,er,Lr,qr);else{var Ut=pr.point;pr.x=pr.y=pr.point=null,dr(pr,Ut,Kr,wt,rt,er,Lr,qr),dr(pr,Tr,Jr,Dt,rt,er,Lr,qr)}else pr.x=Jr,pr.y=Dt,pr.point=Tr}else dr(pr,Tr,Jr,Dt,rt,er,Lr,qr)}function dr(pr,Tr,Jr,Dt,rt,er,Lr,qr){var Kr=(rt+Lr)*.5,wt=(er+qr)*.5,Ut=Jr>=Kr,da=Dt>=wt,Da=da<<1|Ut;pr.leaf=!1,pr=pr.nodes[Da]||(pr.nodes[Da]=a5()),Ut?rt=Kr:Lr=Kr,da?er=wt:qr=wt,hr(pr,Tr,Jr,Dt,rt,er,Lr,qr)}var Cr=a5();if(Cr.add=function(pr){hr(Cr,pr,+$(pr,++te),+j(pr,te),ce,xe,we,de)},Cr.visit=function(pr){Ru(pr,Cr,ce,xe,we,de)},Cr.find=function(pr){return yN(Cr,pr[0],pr[1],ce,xe,we,de)},te=-1,p==null){for(;++teL||j>P||pe=Be,nr=x>=tr,hr=nr<<1|sr,dr=hr+4;hrx&&(L=p.slice(x,L),E[P]?E[P]+=L:E[++P]=L),(M=M[0])===(S=S[0])?E[P]?E[P]+=S:E[++P]=S:(E[++P]=null,N.push({i:P,x:zi(M,S)})),x=_1.lastIndex;return x=0&&!(M=e.interpolators[x](c,p)););return M}e.interpolators=[function(c,p){var x=typeof p;return(x==="string"?ha.has(p.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(p)?b1:i5:p instanceof kt?b1:Array.isArray(p)?Wc:x==="object"&&isNaN(p)?n5:zi)(c,p)}],e.interpolateArray=Wc;function Wc(c,p){var x=[],M=[],S=c.length,L=p.length,P=Math.min(c.length,p.length),E;for(E=0;E=0?c.slice(0,p):c,M=p>=0?c.slice(p+1):"in";return x=gN.get(x)||l5,M=bN.get(M)||X,xN(M(x.apply(null,r.call(arguments,1))))};function xN(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 _N(c){return c*c}function wN(c){return c*c*c}function TN(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 MN(c){return function(p){return Math.pow(p,c)}}function AN(c){return 1-Math.cos(c*ar)}function kN(c){return Math.pow(2,10*(c-1))}function SN(c){return 1-Math.sqrt(1-c*c)}function CN(c,p){var x;return arguments.length<2&&(p=.45),arguments.length?x=p/or*Math.asin(1/c):(c=1,x=p/4),function(M){return 1+c*Math.pow(2,-10*M)*Math.sin((M-x)*or/p)}}function LN(c){return c||(c=1.70158),function(p){return p*p*((c+1)*p-c)}}function qN(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=DN;function DN(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=EN;function EN(c,p){c=e.hsl(c),p=e.hsl(p);var x=c.h,M=c.s,S=c.l,L=p.h-x,P=p.s-M,E=p.l-S;return isNaN(P)&&(P=0,M=isNaN(M)?p.s:M),isNaN(L)?(L=0,x=isNaN(x)?p.h:x):L>180?L-=360:L<-180&&(L+=360),function(N){return La(x+L*N,M+P*N,S+E*N)+""}}e.interpolateLab=PN;function PN(c,p){c=e.lab(c),p=e.lab(p);var x=c.l,M=c.a,S=c.b,L=p.l-x,P=p.a-M,E=p.b-S;return function(N){return Pc(x+L*N,M+P*N,S+E*N)+""}}e.interpolateRound=u5;function u5(c,p){return p-=c,function(x){return Math.round(c+p*x)}}e.transform=function(c){var p=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(x){if(x!=null){p.setAttribute("transform",x);var M=p.transform.baseVal.consolidate()}return new f5(M?M.matrix:zN)})(c)};function f5(c){var p=[c.a,c.b],x=[c.c,c.d],M=v5(p),S=c5(p,x),L=v5(RN(x,p,-S))||0;p[0]*x[1]180?p+=360:p-c>180&&(c+=360),M.push({i:x.push(is(x)+"rotate(",null,")")-2,x:zi(c,p)})):p&&x.push(is(x)+"rotate("+p+")")}function IN(c,p,x,M){c!==p?M.push({i:x.push(is(x)+"skewX(",null,")")-2,x:zi(c,p)}):p&&x.push(is(x)+"skewX("+p+")")}function HN(c,p,x,M){if(c[0]!==p[0]||c[1]!==p[1]){var S=x.push(is(x)+"scale(",null,",",null,")");M.push({i:S-4,x:zi(c[0],p[0])},{i:S-2,x:zi(c[1],p[1])})}else(p[0]!==1||p[1]!==1)&&x.push(is(x)+"scale("+p+")")}function h5(c,p){var x=[],M=[];return c=e.transform(c),p=e.transform(p),NN(c.translate,p.translate,x,M),FN(c.rotate,p.rotate,x,M),IN(c.skew,p.skew,x,M),HN(c.scale,p.scale,x,M),c=p=null,function(S){for(var L=-1,P=M.length,E;++L0?L=de:(x.c=null,x.t=NaN,x=null,p.end({type:"end",alpha:L=0})):de>0&&(p.start({type:"start",alpha:L=de}),x=Oc(c.tick)),c):L},c.start=function(){var de,Be=pe.length,tr=_e.length,sr=M[0],nr=M[1],hr,dr;for(de=0;de=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,pe;c&&(j=$.children)&&j.sort(c),x&&(pe=$.parent)&&(pe.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=eF,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 oF(c){return c.reduce(sF,0)}function sF(c,p){return c+p[1]}e.layout.histogram=function(){var c=!0,p=Number,x=fF,M=uF;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,pe=N.length,_e=W.length-1,te=c?1:1/pe,oe;++j<_e;)$=E[j]=[],$.dx=W[j+1]-($.x=W[j]),$.y=0;if(_e>0)for(j=-1;++j=V[0]&&oe<=V[1]&&($=E[e.bisect(W,oe,1,_e)-1],$.y+=te,$.push(L[j]));return E}return S.value=function(L){return arguments.length?(p=L,S):p},S.range=function(L){return arguments.length?(x=Rr(L),S):x},S.bins=function(L){return arguments.length?(M=typeof L=="number"?function(P){return y5(P,L)}:Rr(L),S):M},S.frequency=function(L){return arguments.length?(c=!!L,S):c},S};function uF(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 fF(c){return[e.min(c),e.max(c)]}e.layout.pack=function(){var c=e.layout.hierarchy().sort(cF),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(pe){pe.r=+$(pe.value)}),ci(N,x5),p){var j=p*(M?1:Math.max(2*N.r/V,2*N.r/W))/2;ci(N,function(pe){pe.r+=j}),ci(N,x5),ci(N,function(pe){pe.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 cF(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 pe(de){x=Math.min(de.x-de.r,x),M=Math.max(de.x+de.r,M),S=Math.min(de.y-de.r,S),L=Math.max(de.y+de.r,L)}if(p.forEach(vF),P=p[0],P.x=-P.r,P.y=0,pe(P),j>1&&(E=p[1],E.x=E.r,E.y=0,pe(E),j>2))for(N=p[2],w5(P,E,N),pe(N),M1(P,N),P._pack_prev=N,M1(N,E),E=P._pack_next,V=3;Voe.x&&(oe=Be),Be.depth>ce.depth&&(ce=Be)});var xe=p(te,oe)/2-te.x,we=x[0]/(oe.x+p(oe,te)/2+xe),de=x[1]/(ce.depth||1);Nu(pe,function(Be){Be.x=(Be.x+xe)*we,Be.y=Be.depth*de})}return j}function L(W){for(var $={A:null,children:[W]},j=[$],pe;(pe=j.pop())!=null;)for(var _e=pe.children,te,oe=0,ce=_e.length;oe0&&(dF(mF(te,W,j),W,Be),ce+=Be,xe+=Be),we+=te.m,ce+=pe.m,de+=oe.m,xe+=_e.m;te&&!k1(_e)&&(_e.t=te,_e.m+=we-xe),pe&&!A1(oe)&&(oe.t=pe,oe.m+=ce-de,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 dF(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 pF(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 mF(c,p,x){return c.a.parent===p.parent?c.a:x}e.layout.cluster=function(){var c=e.layout.hierarchy().sort(null).value(null),p=T5,x=[1,1],M=!1;function S(L,P){var E=c.call(this,L,P),N=E[0],V,W=0;ci(N,function(te){var oe=te.children;oe&&oe.length?(te.x=gF(oe),te.y=yF(oe)):(te.x=V?W+=p(te,V):0,te.y=0,V=te)});var $=M5(N),j=A5(N),pe=$.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-pe)/(_e-pe)*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 yF(c){return 1+e.max(c,function(p){return p.y})}function gF(c){return c.reduce(function(p,x){return p+x.x},0)/c.length}function M5(c){var p=c.children;return p&&p.length?M5(p[0]):c}function A5(c){var p=c.children,x;return p&&(x=p.length)?A5(p[x-1]):c}e.layout.treemap=function(){var c=e.layout.hierarchy(),p=Math.round,x=[1,1],M=null,S=S1,L=!1,P,E="squarify",N=.5*(1+Math.sqrt(5));function V(te,oe){for(var ce=-1,xe=te.length,we,de;++ce0;)xe.push(de=we[nr-1]),xe.area+=de.area,E!=="squarify"||(tr=j(xe,sr))<=Be?(we.pop(),Be=tr):(xe.area-=xe.pop().area,pe(xe,sr,ce,!1),sr=Math.min(ce.dx,ce.dy),xe.length=xe.area=0,Be=1/0);xe.length&&(pe(xe,sr,ce,!0),xe.length=xe.area=0),oe.forEach(W)}}function $(te){var oe=te.children;if(oe&&oe.length){var ce=S(te),xe=oe.slice(),we,de=[];for(V(xe,ce.dx*ce.dy/te.value),de.area=0;we=xe.pop();)de.push(we),de.area+=we.area,we.z!=null&&(pe(de,we.z?ce.dx:ce.dy,ce,!xe.length),de.length=de.area=0);oe.forEach($)}}function j(te,oe){for(var ce=te.area,xe,we=0,de=1/0,Be=-1,tr=te.length;++Bewe&&(we=xe));return ce*=ce,oe*=oe,ce?Math.max(oe*we*N/ce,ce/(oe*de*N)):1/0}function pe(te,oe,ce,xe){var we=-1,de=te.length,Be=ce.x,tr=ce.y,sr=oe?p(te.area/oe):0,nr;if(oe==ce.dx){for((xe||sr>ce.dy)&&(sr=ce.dy);++wece.dx)&&(sr=ce.dx);++we1);return c+p*M*Math.sqrt(-2*Math.log(L)/L)}},logNormal:function(){var c=e.random.normal.apply(e,arguments);return function(){return Math.exp(c())}},bates:function(c){var p=e.random.irwinHall(c);return function(){return p()/c}},irwinHall:function(c){return function(){for(var p=0,x=0;x2?_F:bF,V=M?BN:ON;return S=N(c,p,V,x),L=N(p,c,V,Zl),E}function E(N){return S(N)}return E.invert=function(N){return L(N)},E.domain=function(N){return arguments.length?(c=N.map(Number),P()):c},E.range=function(N){return arguments.length?(p=N,P()):p},E.rangeRound=function(N){return E.range(N).interpolate(u5)},E.clamp=function(N){return arguments.length?(M=N,P()):M},E.interpolate=function(N){return arguments.length?(x=N,P()):x},E.ticks=function(N){return q1(c,N)},E.tickFormat=function(N,V){return d3_scale_linearTickFormat(c,N,V)},E.nice=function(N){return q5(c,N),P()},E.copy=function(){return C5(c,p,x,M)},P()}function L5(c,p){return e.rebind(c,p,"range","rangeRound","interpolate","clamp")}function q5(c,p){return C1(c,S5(L1(c,p)[2])),C1(c,S5(L1(c,p)[2])),c}function L1(c,p){p==null&&(p=10);var x=Zc(c),M=x[1]-x[0],S=Math.pow(10,Math.floor(Math.log(M/p)/Math.LN10)),L=p/M*S;return L<=.15?S*=10:L<=.35?S*=5:L<=.75&&(S*=2),x[0]=Math.ceil(x[0]/S)*S,x[1]=Math.floor(x[1]/S)*S+S*.5,x[2]=S,x}function q1(c,p){return e.range.apply(e,L1(c,p))}var wF={s:1,g:1,p:1,r:1,e:1};function D5(c){return-Math.floor(Math.log(c)/Math.LN10+.01)}function uie(c,p){var x=D5(p[2]);return c in wF?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:TF);return c.domain(E),M=E.map(L),P},P.ticks=function(){var E=Zc(M),N=[],V=E[0],W=E[1],$=Math.floor(S(V)),j=Math.ceil(S(W)),pe=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 TF={floor:function(c){return-Math.ceil(-c)},ceil:function(c){return-Math.floor(-c)}};e.scale.pow=function(){return P5(e.scale.linear(),1,[0,1])};function P5(c,p,x){var M=Jc(p),S=Jc(1/p);function L(P){return c(M(P))}return L.invert=function(P){return S(c.invert(P))},L.domain=function(P){return arguments.length?(c.domain((x=P.map(Number)).map(M)),L):x},L.ticks=function(P){return q1(x,P)},L.tickFormat=function(P,E){return d3_scale_linearTickFormat(x,P,E)},L.nice=function(P){return L.domain(q5(x,P))},L.exponent=function(P){return arguments.length?(M=Jc(p=P),S=Jc(1/p),c.domain(x.map(M)),L):p},L.copy=function(){return P5(c.copy(),p,x)},L5(L,c)}function Jc(c){return function(p){return p<0?-Math.pow(-p,c):Math.pow(p,c)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return R5([],{t:"range",a:[[]]})};function R5(c,p){var x,M,S;function L(E){return M[((x.get(E)||(p.t==="range"?x.set(E,c.push(E)):NaN))-1)%M.length]}function P(E,N){return e.range(c.length).map(function(V){return E+N*V})}return L.domain=function(E){if(!arguments.length)return c;c=[],x=new b;for(var N=-1,V=E.length,W;++N0?x[L-1]:c[0],Lj?0:1;if(W=lr)return N(W,_e)+(V?N(V,1-_e):"")+"Z";var te,oe,ce,xe,we=0,de=0,Be,tr,sr,nr,hr,dr,Cr,pr,Tr=[];if((xe=(+P.apply(this,arguments)||0)/2)&&(ce=M===Kc?Math.sqrt(V*V+W*W):+M.apply(this,arguments),_e||(de*=-1),W&&(de=qt(ce/W*Math.sin(xe))),V&&(we=qt(ce/V*Math.sin(xe)))),W){Be=W*Math.cos($+de),tr=W*Math.sin($+de),sr=W*Math.cos(j-de),nr=W*Math.sin(j-de);var Jr=Math.abs(j-$-2*de)<=Ce?0:1;if(de&&Qc(Be,tr,sr,nr)===_e^Jr){var Dt=($+j)/2;Be=W*Math.cos(Dt),tr=W*Math.sin(Dt),sr=nr=null}}else Be=tr=0;if(V){hr=V*Math.cos(j-we),dr=V*Math.sin(j-we),Cr=V*Math.cos($+we),pr=V*Math.sin($+we);var rt=Math.abs($-j+2*we)<=Ce?0:1;if(we&&Qc(hr,dr,Cr,pr)===1-_e^rt){var er=($+j)/2;hr=V*Math.cos(er),dr=V*Math.sin(er),Cr=pr=null}}else hr=dr=0;if(pe>ue&&(te=Math.min(Math.abs(W-V)/2,+x.apply(this,arguments)))>.001){oe=V0?0:1}function $c(c,p,x,M,S){var L=c[0]-p[0],P=c[1]-p[1],E=(S?M:-M)/Math.sqrt(L*L+P*P),N=E*P,V=-E*L,W=c[0]+N,$=c[1]+V,j=p[0]+N,pe=p[1]+V,_e=(W+j)/2,te=($+pe)/2,oe=j-W,ce=pe-$,xe=oe*oe+ce*ce,we=x-M,de=W*pe-j*$,Be=(ce<0?-1:1)*Math.sqrt(Math.max(0,we*we*xe-de*de)),tr=(de*ce-oe*Be)/xe,sr=(-de*oe-ce*Be)/xe,nr=(de*ce+oe*Be)/xe,hr=(-de*oe+ce*Be)/xe,dr=tr-_e,Cr=sr-te,pr=nr-_e,Tr=hr-te;return dr*dr+Cr*Cr>pr*pr+Tr*Tr&&(tr=nr,sr=hr),[[tr-N,sr-V],[tr*x/we,sr*x/we]]}function B5(){return!0}function Y5(c){var p=es,x=Lu,M=B5,S=Bn,L=S.key,P=.7;function E(N){var V=[],W=[],$=-1,j=N.length,pe,_e=Rr(p),te=Rr(x);function oe(){V.push("M",S(c(W),P))}for(;++$1?c.join("L"):c+"Z"}function U5(c){return c.join("L")+"Z"}function EF(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 BF(c){return c.length<3?Bn(c):c[0]+jc(c,OF(c))}e.svg.line.radial=function(){var c=Y5(Z5);return c.radius=c.x,delete c.x,c.angle=c.y,delete c.y,c};function Z5(c){for(var p,x=-1,M=c.length,S,L;++xCe)+",1 "+$}function V(W,$,j,pe){return"Q 0,0 "+pe}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 YF(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(UF(p=M)):p},c};function UF(c){return function(){var p=c.apply(this,arguments),x=p[0],M=p[1]-ar;return[x*Math.cos(M),x*Math.sin(M)]}}e.svg.symbol=function(){var c=VF,p=GF;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 GF(){return 64}function VF(){return"circle"}function $5(c){var p=Math.sqrt(c/Ce);return"M0,"+p+"A"+p+","+p+" 0 1,1 0,"+-p+"A"+p+","+p+" 0 1,1 0,"+p+"Z"}var j5=e.map({circle:$5,cross:function(c){var p=Math.sqrt(c/5)/2;return"M"+-3*p+","+-p+"H"+-p+"V"+-3*p+"H"+p+"V"+-p+"H"+3*p+"V"+p+"H"+p+"V"+3*p+"H"+-p+"V"+p+"H"+-3*p+"Z"},diamond:function(c){var p=Math.sqrt(c/(2*eb)),x=p*eb;return"M0,"+-p+"L"+x+",0 0,"+p+" "+-x+",0Z"},square:function(c){var p=Math.sqrt(c)/2;return"M"+-p+","+-p+"L"+p+","+-p+" "+p+","+p+" "+-p+","+p+"Z"},"triangle-down":function(c){var p=Math.sqrt(c/ev),x=p*ev/2;return"M0,"+x+"L"+p+","+-x+" "+-p+","+-x+"Z"},"triangle-up":function(c){var p=Math.sqrt(c/ev),x=p*ev/2;return"M0,"+-x+"L"+p+","+x+" "+-p+","+x+"Z"}});e.svg.symbolTypes=j5.keys();var ev=Math.sqrt(3),eb=Math.tan(30*Mr);Ae.transition=function(c){for(var p=Xl||++tb,x=I1(c),M=[],S,L,P=tv||{time:Date.now(),ease:TN,delay:0,duration:250},E=-1,N=this.length;++E0;)$[--xe].call(c,ce);if(oe>=1)return P.event&&P.event.end.call(c,c.__data__,p),--L.count?delete L[M]:delete c[x],1}P||(E=S.time,N=Oc(j,0,E),P=L[M]={tween:new b,time:E,timer:N,delay:S.delay,duration:S.duration,ease:S.ease,index:p},S=null,++L.count)}e.svg.axis=function(){var c=e.scale.linear(),p=ab,x=6,M=6,S=3,L=[10],P=null,E;function N(V){V.each(function(){var W=e.select(this),$=this.__chart__||c,j=this.__chart__=c.copy(),pe=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(pe,j),oe=te.enter().insert("g",".domain").attr("class","tick").style("opacity",ue),ce=e.transition(te.exit()).style("opacity",ue).remove(),xe=e.transition(te.order()).style("opacity",1),we=Math.max(x,0)+S,de,Be=Xc(j),tr=W.selectAll(".domain").data([0]),sr=(tr.enter().append("path").attr("class","domain"),e.transition(tr));oe.append("line"),oe.append("text");var nr=oe.select("line"),hr=xe.select("line"),dr=te.select("text").text(_e),Cr=oe.select("text"),pr=xe.select("text"),Tr=p==="top"||p==="left"?-1:1,Jr,Dt,rt,er;if(p==="bottom"||p==="top"?(de=XF,Jr="x",rt="y",Dt="x2",er="y2",dr.attr("dy",Tr<0?"0em":".71em").style("text-anchor","middle"),sr.attr("d","M"+Be[0]+","+Tr*M+"V0H"+Be[1]+"V"+Tr*M)):(de=JF,Jr="y",rt="x",Dt="y2",er="x2",dr.attr("dy",".32em").style("text-anchor",Tr<0?"end":"start"),sr.attr("d","M"+Tr*M+","+Be[0]+"H0V"+Be[1]+"H"+Tr*M)),nr.attr(er,Tr*x),Cr.attr(rt,Tr*we),hr.attr(Dt,0).attr(er,Tr*x),pr.attr(Jr,0).attr(rt,Tr*we),j.rangeBand){var Lr=j,qr=Lr.rangeBand()/2;$=j=function(Kr){return Lr(Kr)+qr}}else $.rangeBand?$=j:ce.call(de,j,$);oe.call(de,$,j),xe.call(de,j,j)})}return N.scale=function(V){return arguments.length?(c=V,N):c},N.orient=function(V){return arguments.length?(p=V in ZF?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",ZF={top:1,right:1,bottom:1,left:1};function XF(c,p,x){c.attr("transform",function(M){var S=p(M);return"translate("+(isFinite(S)?S:x(M))+",0)"})}function JF(c,p,x){c.attr("transform",function(M){var S=p(M);return"translate(0,"+(isFinite(S)?S:x(M))+")"})}e.svg.brush=function(){var c=me(W,"brushstart","brush","brushend"),p=null,x=null,M=[0,0],S=[0,0],L,P,E=!0,N=!0,V=H1[0];function W(te){te.each(function(){var oe=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",_e).on("touchstart.brush",_e),ce=oe.selectAll(".background").data([0]);ce.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),oe.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var xe=oe.selectAll(".resize").data(V,X);xe.exit().remove(),xe.enter().append("g").attr("class",function(tr){return"resize "+tr}).style("cursor",function(tr){return KF[tr]}).append("rect").attr("x",function(tr){return/[ew]$/.test(tr)?-3:null}).attr("y",function(tr){return/^[ns]/.test(tr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),xe.style("display",W.empty()?"none":null);var we=e.transition(oe),de=e.transition(ce),Be;p&&(Be=Xc(p),de.attr("x",Be[0]).attr("width",Be[1]-Be[0]),j(we)),x&&(Be=Xc(x),de.attr("y",Be[0]).attr("height",Be[1]-Be[0]),pe(we)),$(we)})}W.event=function(te){te.each(function(){var oe=c.of(this,arguments),ce={x:M,y:S,i:L,j:P},xe=this.__chart__||ce;this.__chart__=ce,Xl?e.select(this).transition().each("start.brush",function(){L=xe.i,P=xe.j,M=xe.x,S=xe.y,oe({type:"brushstart"})}).tween("brush:brush",function(){var we=Wc(M,ce.x),de=Wc(S,ce.y);return L=P=null,function(Be){M=ce.x=we(Be),S=ce.y=de(Be),oe({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=ce.i,P=ce.j,oe({type:"brush",mode:"resize"}),oe({type:"brushend"})}):(oe({type:"brushstart"}),oe({type:"brush",mode:"resize"}),oe({type:"brushend"}))})};function $(te){te.selectAll(".resize").attr("transform",function(oe){return"translate("+M[+/e$/.test(oe)]+","+S[+/^s/.test(oe)]+")"})}function j(te){te.select(".extent").attr("x",M[0]),te.selectAll(".extent,.n>rect,.s>rect").attr("width",M[1]-M[0])}function pe(te){te.select(".extent").attr("y",S[0]),te.selectAll(".extent,.e>rect,.w>rect").attr("height",S[1]-S[0])}function _e(){var te=this,oe=e.select(e.event.target),ce=c.of(te,arguments),xe=e.select(te),we=oe.datum(),de=!/^(n|s)$/.test(we)&&p,Be=!/^(e|w)$/.test(we)&&x,tr=oe.classed("extent"),sr=vr(te),nr,hr=e.mouse(te),dr,Cr=e.select(i(te)).on("keydown.brush",Jr).on("keyup.brush",Dt);if(e.event.changedTouches?Cr.on("touchmove.brush",rt).on("touchend.brush",Lr):Cr.on("mousemove.brush",rt).on("mouseup.brush",Lr),xe.interrupt().selectAll("*").interrupt(),tr)hr[0]=M[0]-hr[0],hr[1]=S[0]-hr[1];else if(we){var pr=+/w$/.test(we),Tr=+/^n/.test(we);dr=[M[1-pr]-hr[0],S[1-Tr]-hr[1]],hr[0]=M[pr],hr[1]=S[Tr]}else e.event.altKey&&(nr=hr.slice());xe.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",oe.style("cursor")),ce({type:"brushstart"}),rt();function Jr(){e.event.keyCode==32&&(tr||(nr=null,hr[0]-=M[1],hr[1]-=S[1],tr=2),ie())}function Dt(){e.event.keyCode==32&&tr==2&&(hr[0]+=M[1],hr[1]+=S[1],tr=0,ie())}function rt(){var qr=e.mouse(te),Kr=!1;dr&&(qr[0]+=dr[0],qr[1]+=dr[1]),tr||(e.event.altKey?(nr||(nr=[(M[0]+M[1])/2,(S[0]+S[1])/2]),hr[0]=M[+(qr[0]{(function(e,r){typeof sv=="object"&&typeof fb!="undefined"?r(sv):(e=e||self,r(e.d3=e.d3||{}))})(sv,function(e){"use strict";var r=new Date,t=new Date;function a(ne,Te,Xe,cr){function fr(le){return ne(le=arguments.length===0?new Date:new Date(+le)),le}return fr.floor=function(le){return ne(le=new Date(+le)),le},fr.ceil=function(le){return ne(le=new Date(le-1)),Te(le,1),ne(le),le},fr.round=function(le){var Se=fr(le),Fe=fr.ceil(le);return le-Se0))return We;do We.push(Ge=new Date(+le)),Te(le,Fe),ne(le);while(Ge=Se)for(;ne(Se),!le(Se);)Se.setTime(Se-1)},function(Se,Fe){if(Se>=Se)if(Fe<0)for(;++Fe<=0;)for(;Te(Se,-1),!le(Se););else for(;--Fe>=0;)for(;Te(Se,1),!le(Se););})},Xe&&(fr.count=function(le,Se){return r.setTime(+le),t.setTime(+Se),ne(r),ne(t),Math.floor(Xe(r,t))},fr.every=function(le){return le=Math.floor(le),!isFinite(le)||!(le>0)?null:le>1?fr.filter(cr?function(Se){return cr(Se)%le===0}:function(Se){return fr.count(0,Se)%le===0}):fr}),fr}var n=a(function(){},function(ne,Te){ne.setTime(+ne+Te)},function(ne,Te){return Te-ne});n.every=function(ne){return ne=Math.floor(ne),!isFinite(ne)||!(ne>0)?null:ne>1?a(function(Te){Te.setTime(Math.floor(Te/ne)*ne)},function(Te,Xe){Te.setTime(+Te+Xe*ne)},function(Te,Xe){return(Xe-Te)/ne}):n};var i=n.range,l=1e3,o=6e4,s=36e5,u=864e5,f=6048e5,v=a(function(ne){ne.setTime(ne-ne.getMilliseconds())},function(ne,Te){ne.setTime(+ne+Te*l)},function(ne,Te){return(Te-ne)/l},function(ne){return ne.getUTCSeconds()}),h=v.range,d=a(function(ne){ne.setTime(ne-ne.getMilliseconds()-ne.getSeconds()*l)},function(ne,Te){ne.setTime(+ne+Te*o)},function(ne,Te){return(Te-ne)/o},function(ne){return ne.getMinutes()}),m=d.range,g=a(function(ne){ne.setTime(ne-ne.getMilliseconds()-ne.getSeconds()*l-ne.getMinutes()*o)},function(ne,Te){ne.setTime(+ne+Te*s)},function(ne,Te){return(Te-ne)/s},function(ne){return ne.getHours()}),y=g.range,_=a(function(ne){ne.setHours(0,0,0,0)},function(ne,Te){ne.setDate(ne.getDate()+Te)},function(ne,Te){return(Te-ne-(Te.getTimezoneOffset()-ne.getTimezoneOffset())*o)/u},function(ne){return ne.getDate()-1}),w=_.range;function T(ne){return a(function(Te){Te.setDate(Te.getDate()-(Te.getDay()+7-ne)%7),Te.setHours(0,0,0,0)},function(Te,Xe){Te.setDate(Te.getDate()+Xe*7)},function(Te,Xe){return(Xe-Te-(Xe.getTimezoneOffset()-Te.getTimezoneOffset())*o)/f})}var b=T(0),A=T(1),C=T(2),k=T(3),q=T(4),D=T(5),R=T(6),z=b.range,F=A.range,I=C.range,O=k.range,X=q.range,J=D.range,U=R.range,H=a(function(ne){ne.setDate(1),ne.setHours(0,0,0,0)},function(ne,Te){ne.setMonth(ne.getMonth()+Te)},function(ne,Te){return Te.getMonth()-ne.getMonth()+(Te.getFullYear()-ne.getFullYear())*12},function(ne){return ne.getMonth()}),G=H.range,Q=a(function(ne){ne.setMonth(0,1),ne.setHours(0,0,0,0)},function(ne,Te){ne.setFullYear(ne.getFullYear()+Te)},function(ne,Te){return Te.getFullYear()-ne.getFullYear()},function(ne){return ne.getFullYear()});Q.every=function(ne){return!isFinite(ne=Math.floor(ne))||!(ne>0)?null:a(function(Te){Te.setFullYear(Math.floor(Te.getFullYear()/ne)*ne),Te.setMonth(0,1),Te.setHours(0,0,0,0)},function(Te,Xe){Te.setFullYear(Te.getFullYear()+Xe*ne)})};var K=Q.range,ie=a(function(ne){ne.setUTCSeconds(0,0)},function(ne,Te){ne.setTime(+ne+Te*o)},function(ne,Te){return(Te-ne)/o},function(ne){return ne.getUTCMinutes()}),he=ie.range,me=a(function(ne){ne.setUTCMinutes(0,0,0)},function(ne,Te){ne.setTime(+ne+Te*s)},function(ne,Te){return(Te-ne)/s},function(ne){return ne.getUTCHours()}),ke=me.range,ee=a(function(ne){ne.setUTCHours(0,0,0,0)},function(ne,Te){ne.setUTCDate(ne.getUTCDate()+Te)},function(ne,Te){return(Te-ne)/u},function(ne){return ne.getUTCDate()-1}),Le=ee.range;function fe(ne){return a(function(Te){Te.setUTCDate(Te.getUTCDate()-(Te.getUTCDay()+7-ne)%7),Te.setUTCHours(0,0,0,0)},function(Te,Xe){Te.setUTCDate(Te.getUTCDate()+Xe*7)},function(Te,Xe){return(Xe-Te)/f})}var be=fe(0),se=fe(1),Ae=fe(2),Y=fe(3),re=fe(4),B=fe(5),ge=fe(6),Me=be.range,ye=se.range,Re=Ae.range,Ne=Y.range,Ee=re.range,ze=B.range,Ve=ge.range,Ue=a(function(ne){ne.setUTCDate(1),ne.setUTCHours(0,0,0,0)},function(ne,Te){ne.setUTCMonth(ne.getUTCMonth()+Te)},function(ne,Te){return Te.getUTCMonth()-ne.getUTCMonth()+(Te.getUTCFullYear()-ne.getUTCFullYear())*12},function(ne){return ne.getUTCMonth()}),De=Ue.range,He=a(function(ne){ne.setUTCMonth(0,1),ne.setUTCHours(0,0,0,0)},function(ne,Te){ne.setUTCFullYear(ne.getUTCFullYear()+Te)},function(ne,Te){return Te.getUTCFullYear()-ne.getUTCFullYear()},function(ne){return ne.getUTCFullYear()});He.every=function(ne){return!isFinite(ne=Math.floor(ne))||!(ne>0)?null:a(function(Te){Te.setUTCFullYear(Math.floor(Te.getUTCFullYear()/ne)*ne),Te.setUTCMonth(0,1),Te.setUTCHours(0,0,0,0)},function(Te,Xe){Te.setUTCFullYear(Te.getUTCFullYear()+Xe*ne)})};var Oe=He.range;e.timeDay=_,e.timeDays=w,e.timeFriday=D,e.timeFridays=J,e.timeHour=g,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=m,e.timeMonday=A,e.timeMondays=F,e.timeMonth=H,e.timeMonths=G,e.timeSaturday=R,e.timeSaturdays=U,e.timeSecond=v,e.timeSeconds=h,e.timeSunday=b,e.timeSundays=z,e.timeThursday=q,e.timeThursdays=X,e.timeTuesday=C,e.timeTuesdays=I,e.timeWednesday=k,e.timeWednesdays=O,e.timeWeek=b,e.timeWeeks=z,e.timeYear=Q,e.timeYears=K,e.utcDay=ee,e.utcDays=Le,e.utcFriday=B,e.utcFridays=ze,e.utcHour=me,e.utcHours=ke,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=ie,e.utcMinutes=he,e.utcMonday=se,e.utcMondays=ye,e.utcMonth=Ue,e.utcMonths=De,e.utcSaturday=ge,e.utcSaturdays=Ve,e.utcSecond=v,e.utcSeconds=h,e.utcSunday=be,e.utcSundays=Me,e.utcThursday=re,e.utcThursdays=Ee,e.utcTuesday=Ae,e.utcTuesdays=Re,e.utcWednesday=Y,e.utcWednesdays=Ne,e.utcWeek=be,e.utcWeeks=Me,e.utcYear=He,e.utcYears=Oe,Object.defineProperty(e,"__esModule",{value:!0})})});var os=Z((uv,cb)=>{(function(e,r){typeof uv=="object"&&typeof cb!="undefined"?r(uv,O1()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(uv,function(e,r){"use strict";function t(ae){if(0<=ae.y&&ae.y<100){var ue=new Date(-1,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L);return ue.setFullYear(ae.y),ue}return new Date(ae.y,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L)}function a(ae){if(0<=ae.y&&ae.y<100){var ue=new Date(Date.UTC(-1,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L));return ue.setUTCFullYear(ae.y),ue}return new Date(Date.UTC(ae.y,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L))}function n(ae,ue,qe){return{y:ae,m:ue,d:qe,H:0,M:0,S:0,L:0}}function i(ae){var ue=ae.dateTime,qe=ae.date,Ce=ae.time,or=ae.periods,lr=ae.days,ar=ae.shortDays,Mr=ae.months,Br=ae.shortMonths,et=h(or),Qr=d(or),Kt=h(lr),qt=d(lr),yt=h(ar),At=d(ar),ua=h(Mr),fa=d(Mr),zt=h(Br),Oa=d(Br),yr={a:Ul,A:Gl,b:rl,B:Pc,c:null,d:H,e:H,f:he,H:G,I:Q,j:K,L:ie,m:me,M:ke,p:Rc,q:ku,Q:Se,s:Fe,S:ee,u:Le,U:fe,V:be,w:se,W:Ae,x:null,X:null,y:Y,Y:re,Z:B,"%":le},lt={a:Su,A:Cu,b:qa,B:zc,c:null,d:ge,e:ge,f:Ee,H:Me,I:ye,j:Re,L:Ne,m:ze,M:Ve,p:$o,q:jo,Q:Se,s:Fe,S:Ue,u:De,U:He,V:Oe,w:ne,W:Te,x:null,X:null,y:Xe,Y:cr,Z:fr,"%":le},Vr={a:La,A:na,b:In,B:Hn,c:Qt,d:q,e:q,f:O,H:R,I:R,j:D,L:I,m:k,M:z,p:bt,q:C,Q:J,s:U,S:F,u:g,U:y,V:_,w:m,W:w,x:nt,X:ca,y:b,Y:T,Z:A,"%":X};yr.x=gt(qe,yr),yr.X=gt(Ce,yr),yr.c=gt(ue,yr),lt.x=gt(qe,lt),lt.X=gt(Ce,lt),lt.c=gt(ue,lt);function gt(mr,Wr){return function($r){var ir=[],va=-1,st=0,ha=mr.length,Rr,On,Vl;for($r instanceof Date||($r=new Date(+$r));++va53)return null;"w"in ir||(ir.w=1),"Z"in ir?(st=a(n(ir.y,0,1)),ha=st.getUTCDay(),st=ha>4||ha===0?r.utcMonday.ceil(st):r.utcMonday(st),st=r.utcDay.offset(st,(ir.V-1)*7),ir.y=st.getUTCFullYear(),ir.m=st.getUTCMonth(),ir.d=st.getUTCDate()+(ir.w+6)%7):(st=t(n(ir.y,0,1)),ha=st.getDay(),st=ha>4||ha===0?r.timeMonday.ceil(st):r.timeMonday(st),st=r.timeDay.offset(st,(ir.V-1)*7),ir.y=st.getFullYear(),ir.m=st.getMonth(),ir.d=st.getDate()+(ir.w+6)%7)}else("W"in ir||"U"in ir)&&("w"in ir||(ir.w="u"in ir?ir.u%7:"W"in ir?1:0),ha="Z"in ir?a(n(ir.y,0,1)).getUTCDay():t(n(ir.y,0,1)).getDay(),ir.m=0,ir.d="W"in ir?(ir.w+6)%7+ir.W*7-(ha+5)%7:ir.w+ir.U*7-(ha+6)%7);return"Z"in ir?(ir.H+=ir.Z/100|0,ir.M+=ir.Z%100,a(ir)):t(ir)}}function ot(mr,Wr,$r,ir){for(var va=0,st=Wr.length,ha=$r.length,Rr,On;va=ha)return-1;if(Rr=Wr.charCodeAt(va++),Rr===37){if(Rr=Wr.charAt(va++),On=Vr[Rr in l?Wr.charAt(va++):Rr],!On||(ir=On(mr,$r,ir))<0)return-1}else if(Rr!=$r.charCodeAt(ir++))return-1}return ir}function bt(mr,Wr,$r){var ir=et.exec(Wr.slice($r));return ir?(mr.p=Qr[ir[0].toLowerCase()],$r+ir[0].length):-1}function La(mr,Wr,$r){var ir=yt.exec(Wr.slice($r));return ir?(mr.w=At[ir[0].toLowerCase()],$r+ir[0].length):-1}function na(mr,Wr,$r){var ir=Kt.exec(Wr.slice($r));return ir?(mr.w=qt[ir[0].toLowerCase()],$r+ir[0].length):-1}function In(mr,Wr,$r){var ir=zt.exec(Wr.slice($r));return ir?(mr.m=Oa[ir[0].toLowerCase()],$r+ir[0].length):-1}function Hn(mr,Wr,$r){var ir=ua.exec(Wr.slice($r));return ir?(mr.m=fa[ir[0].toLowerCase()],$r+ir[0].length):-1}function Qt(mr,Wr,$r){return ot(mr,ue,Wr,$r)}function nt(mr,Wr,$r){return ot(mr,qe,Wr,$r)}function ca(mr,Wr,$r){return ot(mr,Ce,Wr,$r)}function Ul(mr){return ar[mr.getDay()]}function Gl(mr){return lr[mr.getDay()]}function rl(mr){return Br[mr.getMonth()]}function Pc(mr){return Mr[mr.getMonth()]}function Rc(mr){return or[+(mr.getHours()>=12)]}function ku(mr){return 1+~~(mr.getMonth()/3)}function Su(mr){return ar[mr.getUTCDay()]}function Cu(mr){return lr[mr.getUTCDay()]}function qa(mr){return Br[mr.getUTCMonth()]}function zc(mr){return Mr[mr.getUTCMonth()]}function $o(mr){return or[+(mr.getUTCHours()>=12)]}function jo(mr){return 1+~~(mr.getUTCMonth()/3)}return{format:function(mr){var Wr=gt(mr+="",yr);return Wr.toString=function(){return mr},Wr},parse:function(mr){var Wr=kt(mr+="",!1);return Wr.toString=function(){return mr},Wr},utcFormat:function(mr){var Wr=gt(mr+="",lt);return Wr.toString=function(){return mr},Wr},utcParse:function(mr){var Wr=kt(mr+="",!0);return Wr.toString=function(){return mr},Wr}}}var l={"-":"",_:" ",0:"0"},o=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ae,ue,qe){var Ce=ae<0?"-":"",or=(Ce?-ae:ae)+"",lr=or.length;return Ce+(lr68?1900:2e3),qe+Ce[0].length):-1}function A(ae,ue,qe){var Ce=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ue.slice(qe,qe+6));return Ce?(ae.Z=Ce[1]?0:-(Ce[2]+(Ce[3]||"00")),qe+Ce[0].length):-1}function C(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+1));return Ce?(ae.q=Ce[0]*3-3,qe+Ce[0].length):-1}function k(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+2));return Ce?(ae.m=Ce[0]-1,qe+Ce[0].length):-1}function q(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+2));return Ce?(ae.d=+Ce[0],qe+Ce[0].length):-1}function D(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+3));return Ce?(ae.m=0,ae.d=+Ce[0],qe+Ce[0].length):-1}function R(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+2));return Ce?(ae.H=+Ce[0],qe+Ce[0].length):-1}function z(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+2));return Ce?(ae.M=+Ce[0],qe+Ce[0].length):-1}function F(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+2));return Ce?(ae.S=+Ce[0],qe+Ce[0].length):-1}function I(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+3));return Ce?(ae.L=+Ce[0],qe+Ce[0].length):-1}function O(ae,ue,qe){var Ce=o.exec(ue.slice(qe,qe+6));return Ce?(ae.L=Math.floor(Ce[0]/1e3),qe+Ce[0].length):-1}function X(ae,ue,qe){var Ce=s.exec(ue.slice(qe,qe+1));return Ce?qe+Ce[0].length:-1}function J(ae,ue,qe){var Ce=o.exec(ue.slice(qe));return Ce?(ae.Q=+Ce[0],qe+Ce[0].length):-1}function U(ae,ue,qe){var Ce=o.exec(ue.slice(qe));return Ce?(ae.s=+Ce[0],qe+Ce[0].length):-1}function H(ae,ue){return f(ae.getDate(),ue,2)}function G(ae,ue){return f(ae.getHours(),ue,2)}function Q(ae,ue){return f(ae.getHours()%12||12,ue,2)}function K(ae,ue){return f(1+r.timeDay.count(r.timeYear(ae),ae),ue,3)}function ie(ae,ue){return f(ae.getMilliseconds(),ue,3)}function he(ae,ue){return ie(ae,ue)+"000"}function me(ae,ue){return f(ae.getMonth()+1,ue,2)}function ke(ae,ue){return f(ae.getMinutes(),ue,2)}function ee(ae,ue){return f(ae.getSeconds(),ue,2)}function Le(ae){var ue=ae.getDay();return ue===0?7:ue}function fe(ae,ue){return f(r.timeSunday.count(r.timeYear(ae)-1,ae),ue,2)}function be(ae,ue){var qe=ae.getDay();return ae=qe>=4||qe===0?r.timeThursday(ae):r.timeThursday.ceil(ae),f(r.timeThursday.count(r.timeYear(ae),ae)+(r.timeYear(ae).getDay()===4),ue,2)}function se(ae){return ae.getDay()}function Ae(ae,ue){return f(r.timeMonday.count(r.timeYear(ae)-1,ae),ue,2)}function Y(ae,ue){return f(ae.getFullYear()%100,ue,2)}function re(ae,ue){return f(ae.getFullYear()%1e4,ue,4)}function B(ae){var ue=ae.getTimezoneOffset();return(ue>0?"-":(ue*=-1,"+"))+f(ue/60|0,"0",2)+f(ue%60,"0",2)}function ge(ae,ue){return f(ae.getUTCDate(),ue,2)}function Me(ae,ue){return f(ae.getUTCHours(),ue,2)}function ye(ae,ue){return f(ae.getUTCHours()%12||12,ue,2)}function Re(ae,ue){return f(1+r.utcDay.count(r.utcYear(ae),ae),ue,3)}function Ne(ae,ue){return f(ae.getUTCMilliseconds(),ue,3)}function Ee(ae,ue){return Ne(ae,ue)+"000"}function ze(ae,ue){return f(ae.getUTCMonth()+1,ue,2)}function Ve(ae,ue){return f(ae.getUTCMinutes(),ue,2)}function Ue(ae,ue){return f(ae.getUTCSeconds(),ue,2)}function De(ae){var ue=ae.getUTCDay();return ue===0?7:ue}function He(ae,ue){return f(r.utcSunday.count(r.utcYear(ae)-1,ae),ue,2)}function Oe(ae,ue){var qe=ae.getUTCDay();return ae=qe>=4||qe===0?r.utcThursday(ae):r.utcThursday.ceil(ae),f(r.utcThursday.count(r.utcYear(ae),ae)+(r.utcYear(ae).getUTCDay()===4),ue,2)}function ne(ae){return ae.getUTCDay()}function Te(ae,ue){return f(r.utcMonday.count(r.utcYear(ae)-1,ae),ue,2)}function Xe(ae,ue){return f(ae.getUTCFullYear()%100,ue,2)}function cr(ae,ue){return f(ae.getUTCFullYear()%1e4,ue,4)}function fr(){return"+0000"}function le(){return"%"}function Se(ae){return+ae}function Fe(ae){return Math.floor(+ae/1e3)}var We;Ge({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ge(ae){return We=i(ae),e.timeFormat=We.format,e.timeParse=We.parse,e.utcFormat=We.utcFormat,e.utcParse=We.utcParse,We}var Je="%Y-%m-%dT%H:%M:%S.%LZ";function je(ae){return ae.toISOString()}var vr=Date.prototype.toISOString?je:e.utcFormat(Je);function Ke(ae){var ue=new Date(ae);return isNaN(ue)?null:ue}var Pe=+new Date("2000-01-01T00:00:00.000Z")?Ke:e.utcParse(Je);e.isoFormat=vr,e.isoParse=Pe,e.timeFormatDefaultLocale=Ge,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var B1=Z((fv,vb)=>{(function(e,r){typeof fv=="object"&&typeof vb!="undefined"?r(fv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(fv,function(e){"use strict";function r(k){return Math.abs(k=Math.round(k))>=1e21?k.toLocaleString("en").replace(/,/g,""):k.toString(10)}function t(k,q){if((D=(k=q?k.toExponential(q-1):k.toExponential()).indexOf("e"))<0)return null;var D,R=k.slice(0,D);return[R.length>1?R[0]+R.slice(2):R,+k.slice(D+1)]}function a(k){return k=t(Math.abs(k)),k?k[1]:NaN}function n(k,q){return function(D,R){for(var z=D.length,F=[],I=0,O=k[0],X=0;z>0&&O>0&&(X+O+1>R&&(O=Math.max(1,R-X)),F.push(D.substring(z-=O,z+O)),!((X+=O+1)>R));)O=k[I=(I+1)%k.length];return F.reverse().join(q)}}function i(k){return function(q){return q.replace(/[0-9]/g,function(D){return k[+D]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(k){if(!(q=l.exec(k)))throw new Error("invalid format: "+k);var q;return new s({fill:q[1],align:q[2],sign:q[3],symbol:q[4],zero:q[5],width:q[6],comma:q[7],precision:q[8]&&q[8].slice(1),trim:q[9],type:q[10]})}o.prototype=s.prototype;function s(k){this.fill=k.fill===void 0?" ":k.fill+"",this.align=k.align===void 0?">":k.align+"",this.sign=k.sign===void 0?"-":k.sign+"",this.symbol=k.symbol===void 0?"":k.symbol+"",this.zero=!!k.zero,this.width=k.width===void 0?void 0:+k.width,this.comma=!!k.comma,this.precision=k.precision===void 0?void 0:+k.precision,this.trim=!!k.trim,this.type=k.type===void 0?"":k.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(k){e:for(var q=k.length,D=1,R=-1,z;D0&&(R=0);break}return R>0?k.slice(0,R)+k.slice(z+1):k}var f;function v(k,q){var D=t(k,q);if(!D)return k+"";var R=D[0],z=D[1],F=z-(f=Math.max(-8,Math.min(8,Math.floor(z/3)))*3)+1,I=R.length;return F===I?R:F>I?R+new Array(F-I+1).join("0"):F>0?R.slice(0,F)+"."+R.slice(F):"0."+new Array(1-F).join("0")+t(k,Math.max(0,q+F-1))[0]}function h(k,q){var D=t(k,q);if(!D)return k+"";var R=D[0],z=D[1];return z<0?"0."+new Array(-z).join("0")+R:R.length>z+1?R.slice(0,z+1)+"."+R.slice(z+1):R+new Array(z-R.length+2).join("0")}var d={"%":function(k,q){return(k*100).toFixed(q)},b:function(k){return Math.round(k).toString(2)},c:function(k){return k+""},d:r,e:function(k,q){return k.toExponential(q)},f:function(k,q){return k.toFixed(q)},g:function(k,q){return k.toPrecision(q)},o:function(k){return Math.round(k).toString(8)},p:function(k,q){return h(k*100,q)},r:h,s:v,X:function(k){return Math.round(k).toString(16).toUpperCase()},x:function(k){return Math.round(k).toString(16)}};function m(k){return k}var g=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function _(k){var q=k.grouping===void 0||k.thousands===void 0?m:n(g.call(k.grouping,Number),k.thousands+""),D=k.currency===void 0?"":k.currency[0]+"",R=k.currency===void 0?"":k.currency[1]+"",z=k.decimal===void 0?".":k.decimal+"",F=k.numerals===void 0?m:i(g.call(k.numerals,String)),I=k.percent===void 0?"%":k.percent+"",O=k.minus===void 0?"-":k.minus+"",X=k.nan===void 0?"NaN":k.nan+"";function J(H){H=o(H);var G=H.fill,Q=H.align,K=H.sign,ie=H.symbol,he=H.zero,me=H.width,ke=H.comma,ee=H.precision,Le=H.trim,fe=H.type;fe==="n"?(ke=!0,fe="g"):d[fe]||(ee===void 0&&(ee=12),Le=!0,fe="g"),(he||G==="0"&&Q==="=")&&(he=!0,G="0",Q="=");var be=ie==="$"?D:ie==="#"&&/[boxX]/.test(fe)?"0"+fe.toLowerCase():"",se=ie==="$"?R:/[%p]/.test(fe)?I:"",Ae=d[fe],Y=/[defgprs%]/.test(fe);ee=ee===void 0?6:/[gprs]/.test(fe)?Math.max(1,Math.min(21,ee)):Math.max(0,Math.min(20,ee));function re(B){var ge=be,Me=se,ye,Re,Ne;if(fe==="c")Me=Ae(B)+Me,B="";else{B=+B;var Ee=B<0||1/B<0;if(B=isNaN(B)?X:Ae(Math.abs(B),ee),Le&&(B=u(B)),Ee&&+B==0&&K!=="+"&&(Ee=!1),ge=(Ee?K==="("?K:O:K==="-"||K==="("?"":K)+ge,Me=(fe==="s"?y[8+f/3]:"")+Me+(Ee&&K==="("?")":""),Y){for(ye=-1,Re=B.length;++yeNe||Ne>57){Me=(Ne===46?z+B.slice(ye+1):B.slice(ye))+Me,B=B.slice(0,ye);break}}}ke&&!he&&(B=q(B,1/0));var ze=ge.length+B.length+Me.length,Ve=ze>1)+ge+B+Me+Ve.slice(ze);break;default:B=Ve+ge+B+Me;break}return F(B)}return re.toString=function(){return H+""},re}function U(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),he=y[8+K/3];return function(me){return Q(ie*me)+he}}return{format:J,formatPrefix:U}}var w;T({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function T(k){return w=_(k),e.format=w.format,e.formatPrefix=w.formatPrefix,w}function b(k){return Math.max(0,-a(Math.abs(k)))}function A(k,q){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(q)/3)))*3-a(Math.abs(k)))}function C(k,q){return k=Math.abs(k),q=Math.abs(q)-k,Math.max(0,a(q)-a(k))+1}e.FormatSpecifier=s,e.formatDefaultLocale=T,e.formatLocale=_,e.formatSpecifier=o,e.precisionFixed=b,e.precisionPrefix=A,e.precisionRound=C,Object.defineProperty(e,"__esModule",{value:!0})})});var db=Z((hie,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((die,pb)=>{"use strict";var iI=db();pb.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&iI(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Gt=Z((pie,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((cv,yb)=>{(function(e,r){typeof cv=="object"&&typeof yb!="undefined"?r(cv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(cv,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(o[s]&3)<<4|o[s+1]>>4],f+=r[(o[s+1]&15)<<2|o[s+2]>>6],f+=r[o[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(l){var o=l.length*.75,s=l.length,u,f=0,v,h,d,m;l[l.length-1]==="="&&(o--,l[l.length-2]==="="&&o--);var g=new ArrayBuffer(o),y=new Uint8Array(g);for(u=0;u>4,y[f++]=(h&15)<<4|d>>2,y[f++]=(d&3)<<6|m&63;return g};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})})});var nl=Z((mie,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 nn=Z(Un=>{"use strict";var lI=Y1().decode,oI=nl(),U1=Array.isArray,sI=ArrayBuffer,uI=DataView;function bb(e){return sI.isView(e)&&!(e instanceof uI)}Un.isTypedArray=bb;function vv(e){return U1(e)||bb(e)}Un.isArrayOrTypedArray=vv;function fI(e){return!vv(e[0])}Un.isArray1D=fI;Un.ensureArray=function(e,r){return U1(e)||(e=[]),e.length=r,e};var ia={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};ia.uint8c=ia.u1c;ia.uint8=ia.u1;ia.int8=ia.i1;ia.uint16=ia.u2;ia.int16=ia.i2;ia.uint32=ia.u4;ia.int32=ia.i4;ia.float32=ia.f4;ia.float64=ia.f8;function G1(e){return e.constructor===ArrayBuffer}Un.isArrayBuffer=G1;Un.decodeTypedArraySpec=function(e){var r=[],t=cI(e),a=t.dtype,n=ia[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;G1(l)||(l=lI(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=nn().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=hv(),mI=/^\w*$/,yI=0,kb=1,dv=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]|dv,v.set(h,null);if(f){for(i=d;i{"use strict";var gI=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,bI=/^[^\.\[\]]+$/;qb.exports=function(e,r){for(;r;){var t=e.match(gI);if(t)e=t[1];else if(e.match(bI))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var pv=Z((_ie,Eb)=>{"use strict";var xI=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 xI(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var zb=Z((wie,Rb)=>{"use strict";var Pb=nn().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 _I(e,r){var t=e%r;return t<0?t+r:t}function wI(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}Nb.exports={mod:_I,modHalf:wI}});var bn=Z((Mie,mv)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,l=e.max,o=e.random;function s(Y,re){if(Y=Y||"",re=re||{},Y instanceof s)return Y;if(!(this instanceof s))return new s(Y,re);var B=u(Y);this._originalInput=Y,this._r=B.r,this._g=B.g,this._b=B.b,this._a=B.a,this._roundA=n(100*this._a)/100,this._format=re.format||B.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=B.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Y=this.toRgb();return(Y.r*299+Y.g*587+Y.b*114)/1e3},getLuminance:function(){var Y=this.toRgb(),re,B,ge,Me,ye,Re;return re=Y.r/255,B=Y.g/255,ge=Y.b/255,re<=.03928?Me=re/12.92:Me=e.pow((re+.055)/1.055,2.4),B<=.03928?ye=B/12.92:ye=e.pow((B+.055)/1.055,2.4),ge<=.03928?Re=ge/12.92:Re=e.pow((ge+.055)/1.055,2.4),.2126*Me+.7152*ye+.0722*Re},setAlpha:function(Y){return this._a=H(Y),this._roundA=n(100*this._a)/100,this},toHsv:function(){var Y=d(this._r,this._g,this._b);return{h:Y.h*360,s:Y.s,v:Y.v,a:this._a}},toHsvString:function(){var Y=d(this._r,this._g,this._b),re=n(Y.h*360),B=n(Y.s*100),ge=n(Y.v*100);return this._a==1?"hsv("+re+", "+B+"%, "+ge+"%)":"hsva("+re+", "+B+"%, "+ge+"%, "+this._roundA+")"},toHsl:function(){var Y=v(this._r,this._g,this._b);return{h:Y.h*360,s:Y.s,l:Y.l,a:this._a}},toHslString:function(){var Y=v(this._r,this._g,this._b),re=n(Y.h*360),B=n(Y.s*100),ge=n(Y.l*100);return this._a==1?"hsl("+re+", "+B+"%, "+ge+"%)":"hsla("+re+", "+B+"%, "+ge+"%, "+this._roundA+")"},toHex:function(Y){return g(this._r,this._g,this._b,Y)},toHexString:function(Y){return"#"+this.toHex(Y)},toHex8:function(Y){return y(this._r,this._g,this._b,this._a,Y)},toHex8String:function(Y){return"#"+this.toHex8(Y)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(G(this._r,255)*100)+"%",g:n(G(this._g,255)*100)+"%",b:n(G(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(G(this._r,255)*100)+"%, "+n(G(this._g,255)*100)+"%, "+n(G(this._b,255)*100)+"%)":"rgba("+n(G(this._r,255)*100)+"%, "+n(G(this._g,255)*100)+"%, "+n(G(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:J[g(this._r,this._g,this._b,!0)]||!1},toFilter:function(Y){var re="#"+_(this._r,this._g,this._b,this._a),B=re,ge=this._gradientType?"GradientType = 1, ":"";if(Y){var Me=s(Y);B="#"+_(Me._r,Me._g,Me._b,Me._a)}return"progid:DXImageTransform.Microsoft.gradient("+ge+"startColorstr="+re+",endColorstr="+B+")"},toString:function(Y){var re=!!Y;Y=Y||this._format;var B=!1,ge=this._a<1&&this._a>=0,Me=!re&&ge&&(Y==="hex"||Y==="hex6"||Y==="hex3"||Y==="hex4"||Y==="hex8"||Y==="name");return Me?Y==="name"&&this._a===0?this.toName():this.toRgbString():(Y==="rgb"&&(B=this.toRgbString()),Y==="prgb"&&(B=this.toPercentageRgbString()),(Y==="hex"||Y==="hex6")&&(B=this.toHexString()),Y==="hex3"&&(B=this.toHexString(!0)),Y==="hex4"&&(B=this.toHex8String(!0)),Y==="hex8"&&(B=this.toHex8String()),Y==="name"&&(B=this.toName()),Y==="hsl"&&(B=this.toHslString()),Y==="hsv"&&(B=this.toHsvString()),B||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(Y,re){var B=Y.apply(null,[this].concat([].slice.call(re)));return this._r=B._r,this._g=B._g,this._b=B._b,this.setAlpha(B._a),this},lighten:function(){return this._applyModification(A,arguments)},brighten:function(){return this._applyModification(C,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(T,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(q,arguments)},_applyCombination:function(Y,re){return Y.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(Y,re){if(typeof Y=="object"){var B={};for(var ge in Y)Y.hasOwnProperty(ge)&&(ge==="a"?B[ge]=Y[ge]:B[ge]=ke(Y[ge]));Y=B}return s(Y,re)};function u(Y){var re={r:0,g:0,b:0},B=1,ge=null,Me=null,ye=null,Re=!1,Ne=!1;return typeof Y=="string"&&(Y=se(Y)),typeof Y=="object"&&(be(Y.r)&&be(Y.g)&&be(Y.b)?(re=f(Y.r,Y.g,Y.b),Re=!0,Ne=String(Y.r).substr(-1)==="%"?"prgb":"rgb"):be(Y.h)&&be(Y.s)&&be(Y.v)?(ge=ke(Y.s),Me=ke(Y.v),re=m(Y.h,ge,Me),Re=!0,Ne="hsv"):be(Y.h)&&be(Y.s)&&be(Y.l)&&(ge=ke(Y.s),ye=ke(Y.l),re=h(Y.h,ge,ye),Re=!0,Ne="hsl"),Y.hasOwnProperty("a")&&(B=Y.a)),B=H(B),{ok:Re,format:Y.format||Ne,r:i(255,l(re.r,0)),g:i(255,l(re.g,0)),b:i(255,l(re.b,0)),a:B}}function f(Y,re,B){return{r:G(Y,255)*255,g:G(re,255)*255,b:G(B,255)*255}}function v(Y,re,B){Y=G(Y,255),re=G(re,255),B=G(B,255);var ge=l(Y,re,B),Me=i(Y,re,B),ye,Re,Ne=(ge+Me)/2;if(ge==Me)ye=Re=0;else{var Ee=ge-Me;switch(Re=Ne>.5?Ee/(2-ge-Me):Ee/(ge+Me),ge){case Y:ye=(re-B)/Ee+(re1&&(Ue-=1),Ue<1/6?ze+(Ve-ze)*6*Ue:Ue<1/2?Ve:Ue<2/3?ze+(Ve-ze)*(2/3-Ue)*6:ze}if(re===0)ge=Me=ye=B;else{var Ne=B<.5?B*(1+re):B+re-B*re,Ee=2*B-Ne;ge=Re(Ee,Ne,Y+1/3),Me=Re(Ee,Ne,Y),ye=Re(Ee,Ne,Y-1/3)}return{r:ge*255,g:Me*255,b:ye*255}}function d(Y,re,B){Y=G(Y,255),re=G(re,255),B=G(B,255);var ge=l(Y,re,B),Me=i(Y,re,B),ye,Re,Ne=ge,Ee=ge-Me;if(Re=ge===0?0:Ee/ge,ge==Me)ye=0;else{switch(ge){case Y:ye=(re-B)/Ee+(re>1)+720)%360;--re;)ge.h=(ge.h+Me)%360,ye.push(s(ge));return ye}function O(Y,re){re=re||6;for(var B=s(Y).toHsv(),ge=B.h,Me=B.s,ye=B.v,Re=[],Ne=1/re;re--;)Re.push(s({h:ge,s:Me,v:ye})),ye=(ye+Ne)%1;return Re}s.mix=function(Y,re,B){B=B===0?0:B||50;var ge=s(Y).toRgb(),Me=s(re).toRgb(),ye=B/100,Re={r:(Me.r-ge.r)*ye+ge.r,g:(Me.g-ge.g)*ye+ge.g,b:(Me.b-ge.b)*ye+ge.b,a:(Me.a-ge.a)*ye+ge.a};return s(Re)},s.readability=function(Y,re){var B=s(Y),ge=s(re);return(e.max(B.getLuminance(),ge.getLuminance())+.05)/(e.min(B.getLuminance(),ge.getLuminance())+.05)},s.isReadable=function(Y,re,B){var ge=s.readability(Y,re),Me,ye;switch(ye=!1,Me=Ae(B),Me.level+Me.size){case"AAsmall":case"AAAlarge":ye=ge>=4.5;break;case"AAlarge":ye=ge>=3;break;case"AAAsmall":ye=ge>=7;break}return ye},s.mostReadable=function(Y,re,B){var ge=null,Me=0,ye,Re,Ne,Ee;B=B||{},Re=B.includeFallbackColors,Ne=B.level,Ee=B.size;for(var ze=0;zeMe&&(Me=ye,ge=s(re[ze]));return s.isReadable(Y,ge,{level:Ne,size:Ee})||!Re?ge:(B.includeFallbackColors=!1,s.mostReadable(Y,["#fff","#000"],B))};var X=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},J=s.hexNames=U(X);function U(Y){var re={};for(var B in Y)Y.hasOwnProperty(B)&&(re[Y[B]]=B);return re}function H(Y){return Y=parseFloat(Y),(isNaN(Y)||Y<0||Y>1)&&(Y=1),Y}function G(Y,re){ie(Y)&&(Y="100%");var B=he(Y);return Y=i(re,l(0,parseFloat(Y))),B&&(Y=parseInt(Y*re,10)/100),e.abs(Y-re)<1e-6?1:Y%re/parseFloat(re)}function Q(Y){return i(1,l(0,Y))}function K(Y){return parseInt(Y,16)}function ie(Y){return typeof Y=="string"&&Y.indexOf(".")!=-1&&parseFloat(Y)===1}function he(Y){return typeof Y=="string"&&Y.indexOf("%")!=-1}function me(Y){return Y.length==1?"0"+Y:""+Y}function ke(Y){return Y<=1&&(Y=Y*100+"%"),Y}function ee(Y){return e.round(parseFloat(Y)*255).toString(16)}function Le(Y){return K(Y)/255}var fe=function(){var Y="[-\\+]?\\d+%?",re="[-\\+]?\\d*\\.\\d+%?",B="(?:"+re+")|(?:"+Y+")",ge="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",Me="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?";return{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+ge),rgba:new RegExp("rgba"+Me),hsl:new RegExp("hsl"+ge),hsla:new RegExp("hsla"+Me),hsv:new RegExp("hsv"+ge),hsva:new RegExp("hsva"+Me),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function be(Y){return!!fe.CSS_UNIT.exec(Y)}function se(Y){Y=Y.replace(r,"").replace(t,"").toLowerCase();var re=!1;if(X[Y])Y=X[Y],re=!0;else if(Y=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var B;return(B=fe.rgb.exec(Y))?{r:B[1],g:B[2],b:B[3]}:(B=fe.rgba.exec(Y))?{r:B[1],g:B[2],b:B[3],a:B[4]}:(B=fe.hsl.exec(Y))?{h:B[1],s:B[2],l:B[3]}:(B=fe.hsla.exec(Y))?{h:B[1],s:B[2],l:B[3],a:B[4]}:(B=fe.hsv.exec(Y))?{h:B[1],s:B[2],v:B[3]}:(B=fe.hsva.exec(Y))?{h:B[1],s:B[2],v:B[3],a:B[4]}:(B=fe.hex8.exec(Y))?{r:K(B[1]),g:K(B[2]),b:K(B[3]),a:Le(B[4]),format:re?"name":"hex8"}:(B=fe.hex6.exec(Y))?{r:K(B[1]),g:K(B[2]),b:K(B[3]),format:re?"name":"hex"}:(B=fe.hex4.exec(Y))?{r:K(B[1]+""+B[1]),g:K(B[2]+""+B[2]),b:K(B[3]+""+B[3]),a:Le(B[4]+""+B[4]),format:re?"name":"hex8"}:(B=fe.hex3.exec(Y))?{r:K(B[1]+""+B[1]),g:K(B[2]+""+B[2]),b:K(B[3]+""+B[3]),format:re?"name":"hex"}:!1}function Ae(Y){var re,B;return Y=Y||{level:"AA",size:"small"},re=(Y.level||"AA").toUpperCase(),B=(Y.size||"small").toLowerCase(),re!=="AA"&&re!=="AAA"&&(re="AA"),B!=="small"&&B!=="large"&&(B="small"),{level:re,size:B}}typeof mv!="undefined"&&mv.exports?mv.exports=s:window.tinycolor=s})(Math)});var Vt=Z(Bu=>{"use strict";var Fb=nl(),Hu=Array.isArray;function TI(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((Sie,Hb)=>{"use strict";Hb.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var fs=Z((Cie,Yb)=>{"use strict";var Ob=Yu(),Bb=ma(),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"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var yv=Z((Lie,Ub)=>{"use strict";var MI=ma(),Uu=fs().hoverlabel,Gu=Vt().extendFlat;Ub.exports={hoverlabel:{bgcolor:Gu({},Uu.bgcolor,{arrayOk:!0}),bordercolor:Gu({},Uu.bordercolor,{arrayOk:!0}),font:MI({arrayOk:!0,editType:"none"}),align:Gu({},Uu.align,{arrayOk:!0}),namelength:Gu({},Uu.namelength,{arrayOk:!0}),showarrow:Gu({},Uu.showarrow),editType:"none"}}});var Gn=Z((qie,Gb)=>{"use strict";var AI=ma(),kI=yv();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:AI({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:kI.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((Die,Zb)=>{"use strict";var SI=bn(),gv={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},Vb=gv.RdBu;function CI(e,r){if(r||(r=Vb),!e)return r;function t(){try{e=gv[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),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((Pie,Xb)=>{"use strict";var Wa=bn(),qI=Hr(),DI=nn().isTypedArray,$t=Xb.exports={},bv=hi();$t.defaults=bv.defaults;var EI=$t.defaultLine=bv.defaultLine;$t.lightLine=bv.lightLine;var J1=$t.background=bv.background;$t.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};$t.rgb=function(e){return $t.tinyRGB(Wa(e))};$t.opacity=function(e){return e?Wa(e).getAlpha():0};$t.addOpacity=function(e,r){var t=Wa(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};$t.combine=function(e,r){var t=Wa(e).toRgb();if(t.a===1)return Wa(e).toRgbString();var a=Wa(r||J1).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return Wa(i).toRgbString()};$t.interpolate=function(e,r,t){var a=Wa(e).toRgb(),n=Wa(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return Wa(i).toRgbString()};$t.contrast=function(e,r,t){var a=Wa(e);a.getAlpha()!==1&&(a=Wa($t.combine(e,J1)));var n=a.isDark()?r?a.lighten(r):J1:t?a.darken(t):EI;return n.toString()};$t.stroke=function(e,r){var t=Wa(r);e.style({stroke:$t.tinyRGB(t),"stroke-opacity":t.getAlpha()})};$t.fill=function(e,r){var t=Wa(r);e.style({fill:$t.tinyRGB(t),"fill-opacity":t.getAlpha()})};$t.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var l=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+l+", "+a[3]+")":"rgb("+l+")"}});var xv=Z((Rie,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(Za=>{"use strict";var K1=Hr(),Qb=bn(),$b=Vt().extendFlat,PI=Gn(),RI=$l(),zI=Er(),NI=xv().DESELECTDIM,vs=hv(),jb=cs().counter,FI=us().modHalf,di=nn().isArrayOrTypedArray,il=nn().isTypedArraySpec,ll=nn().decodeTypedArraySpec;Za.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(di(e)?e:il(e)?ll(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;aa.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}il(e)&&(e=ll(e)),e%1||!K1(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){il(e)&&(e=ll(e)),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(RI.get(e,t))}},angle:{coerceFunction:function(e,r,t){il(e)&&(e=ll(e)),e==="auto"?r.set("auto"):K1(e)?r.set(FI(+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((Iie,ix)=>{"use strict";var Q1=Ir(),II=Hr(),Vu=[];ix.exports=function(e,r){if(Vu.indexOf(e)!==-1)return;Vu.push(e);var t=1e3;II(r)?t=r:r==="long"&&(t=3e3);var a=Q1.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(Vu);function i(l){l.duration(700).style("opacity",0).each("end",function(o){var s=Vu.indexOf(o);s!==-1&&Vu.splice(s,1),Q1.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var o=Q1.select(this);o.append("button").classed("notifier-close",!0).html("×").on("click",function(){o.transition().call(i)});for(var s=o.append("p"),u=l.split(//g),f=0;f{"use strict";var hs=eo().dfltConfig,j1=$1(),ep=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 wv=Z((Oie,ox)=>{"use strict";ox.exports=function(){}});var rp=Z((Bie,sx)=>{"use strict";sx.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{ux.exports=HI;function HI(){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((Uie,cx)=>{cx.exports=OI;function OI(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((Gie,hx)=>{hx.exports=BI;function BI(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((Vie,px)=>{px.exports=YI;function YI(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((Wie,mx)=>{mx.exports=UI;function UI(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((Zie,gx)=>{gx.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],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((Xie,xx)=>{xx.exports=VI;function VI(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((Jie,wx)=>{wx.exports=WI;function WI(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((Kie,Mx)=>{Mx.exports=ZI;function ZI(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((Qie,kx)=>{kx.exports=XI;function XI(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(($ie,Cx)=>{Cx.exports=JI;function JI(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((jie,qx)=>{qx.exports=KI;function KI(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((ele,Ex)=>{Ex.exports=QI;function QI(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((rle,Rx)=>{Rx.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[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((tle,Nx)=>{Nx.exports=jI;function jI(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((ale,Ix)=>{Ix.exports=eH;function eH(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((nle,Ox)=>{Ox.exports=rH;function rH(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((ile,Yx)=>{Yx.exports=tH;function tH(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((lle,Gx)=>{Gx.exports=aH;function aH(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((ole,Wx)=>{Wx.exports=nH;function nH(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((sle,Xx)=>{Xx.exports=iH;function iH(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((ule,Kx)=>{Kx.exports=lH;function lH(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((fle,$x)=>{$x.exports=oH;function oH(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((cle,jx)=>{jx.exports=sH;function sH(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((vle,r_)=>{r_.exports=uH;function uH(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((hle,a_)=>{a_.exports=fH;function fH(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((dle,i_)=>{i_.exports=cH;function cH(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((ple,o_)=>{var vH=tp();o_.exports=hH;function hH(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?vH(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((mle,u_)=>{u_.exports=dH;function dH(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((yle,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 Tv=Z(Et=>{"use strict";var pH=np();Et.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var mH=Ir(),v_=ro(),yH=Tv(),gH=np();function bH(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 xH(e){var r=mH.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 _H(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 wH(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&h_(t)}function TH(e,r,t,a,n,i){var l=a.split(":"),o=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[l[0]]=l[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[l[0]]=l[1]:f.style[o[0]]=o[1])}),u.setAttribute(s,!0))})}function MH(e){var r=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=yH.convertCssMatrix(n);t=gH.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=[];AH(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function AH(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function kH(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}y_.exports={getGraphDiv:bH,isPlotDiv:xH,removeElement:h_,addStyleRule:_H,addRelatedStyleRule:d_,deleteRelatedStyleRule:wH,setStyleOnHover:TH,getFullTransformMatrix:MH,getElementTransformMatrix:p_,getElementAndAncestors:m_,equalDomRects:kH}});var Zu=Z((xle,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((_le,A_)=>{"use strict";var x_=Vt().extendFlat,SH=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"]},CH=__.flags.slice().concat(["fullReplot"]),LH=w_.flags.slice().concat("layoutReplot");A_.exports={traces:__,layout:w_,traceFlags:function(){return b_(CH)},layoutFlags:function(){return b_(LH)},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((Tle,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 yi=Z(Xu=>{"use strict";var S_=lp(),qH=S_.FORMAT_LINK,DH=S_.DATE_FORMAT_LINK;function EH(e){var r=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(r?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,qH,"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}".`,DH,"for details on the date formatting syntax."].join(" ")}Xu.templateFormatStringDescription=EH;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 PH(e){return e.x0}function RH(e){return e.x1}function zH(e){return e.y0}function NH(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 FH(e,r){return Math.abs(Mv(e,r))}function IH(e,r,t){return Math.abs(Av(e,r,t))}function HH(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 OH(e,r){return C_((ol(e.x1,r)+q_(e)+ol(e.x0,r)+L_(e))/2,r)}function BH(e,r,t){return C_((ol(e.y1,t)+E_(e)+ol(e.y0,t)+D_(e))/2,t)}function YH(e,r,t){return e.type!=="line"?void 0:Av(e,r,t)/Mv(e,r)}P_.exports={x0:PH,x1:RH,y0:zH,y1:NH,slope:YH,dx:Mv,dy:Av,width:FH,height:IH,length:HH,xcenter:OH,ycenter:BH}});var N_=Z((kle,z_)=>{"use strict";var UH=pi().overrideAll,to=Gn(),R_=ma(),GH=mi().dash,sl=Vt().extendFlat,VH=yi().shapeTexttemplateAttrs,WH=kv();z_.exports=UH({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({},GH,{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:VH({newshape:!0},{keys:Object.keys(WH)}),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((Sle,F_)=>{"use strict";var ZH=mi().dash,XH=Vt().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:XH({},ZH,{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((Cle,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((Lle,U_)=>{"use strict";var sp=ma(),JH=Zu(),Cv=hi(),O_=N_(),B_=I_(),KH=Sv(),Y_=Vt().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_(KH({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_({},JH.transition,{editType:"none"})}});var G_=lb(()=>{});var QH={};var V_=lb(()=>{G_()});var br=Z(zr=>{"use strict";var ps=ro(),W_=wv(),Z_=rp(),$H=nl(),jH=Wu().addStyleRule,X_=Vt(),eO=Gn(),rO=ds(),tO=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 sO=os().timeFormat,i4=Hr(),fp=ro(),fl=us().mod,gs=Gt(),xn=gs.BADNUM,Xa=gs.ONEDAY,Ju=gs.ONEHOUR,ul=gs.ONEMIN,ys=gs.ONESEC,Ku=gs.EPOCHJD,Ni=br(),j_=os().utcFormat,uO=/^\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,fO=/^\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"}Pt.dateTick0=function(e,r){var t=cO(e,!!r);if(r<2)return t;var a=Pt.dateTime2ms(t,e);return a+=Xa*(r-1),Pt.ms2DateTime(a,0,e)};function cO(e,r){return Fi(e)?r?Ni.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Ni.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Pt.dfltRange=function(e){return Fi(e)?Ni.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Pt.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Dv,Ev;Pt.dateTime2ms=function(e,r){if(Pt.isJSDate(e)){var t=e.getTimezoneOffset()*ul,a=(e.getUTCMinutes()-e.getMinutes())*ul+(e.getUTCSeconds()-e.getSeconds())*ys+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*ul;t=t-n/2+fl(a-t+n/2,n)}return e=Number(e)-t,e>=Dv&&e<=Ev?e:xn}if(typeof e!="string"&&typeof e!="number")return xn;e=String(e);var i=Fi(r),l=e.charAt(0);i&&(l==="G"||l==="g")&&(e=e.substr(1),r="");var o=i&&r.substr(0,7)==="chinese",s=e.match(o?fO:uO);if(!s)return xn;var u=s[1],f=s[3]||"1",v=Number(s[5]||1),h=Number(s[7]||0),d=Number(s[9]||0),m=Number(s[11]||0);if(i){if(u.length===2)return xn;u=Number(u);var g;try{var y=Ni.getComponentMethod("calendars","getCal")(r);if(o){var _=f.charAt(f.length-1)==="i";f=parseInt(f,10),g=y.newDate(u,y.toMonthIndex(u,f,_),v)}else g=y.newDate(u,Number(f),v)}catch(T){return xn}return g?(g.toJD()-Ku)*Xa+h*Ju+d*ul+m*ys:xn}u.length===2?u=(Number(u)+2e3-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=Pt.MIN_MS=Pt.dateTime2ms("-9999");Ev=Pt.MAX_MS=Pt.dateTime2ms("9999-12-31 23:59:59.9999");Pt.isDateTime=function(e,r){return Pt.dateTime2ms(e,r)!==xn};function ms(e,r){return String(e+Math.pow(10,r)).substr(1)}var qv=90*Xa,r4=3*Ju,t4=5*ul;Pt.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Dv&&e<=Ev))return xn;r||(r=0);var a=Math.floor(fl(e+.05,1)*10),n=Math.round(e-a/10),i,l,o,s,u,f;if(Fi(t)){var v=Math.floor(n/Xa)+Ku,h=Math.floor(fl(e,Xa));try{i=Ni.getComponentMethod("calendars","getCal")(t).fromJD(v).formatDate("yyyy-mm-dd")}catch(d){i=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+Xa&&e<=Ev-Xa))return xn;var r=Math.floor(fl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=sO("%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}Pt.cleanDate=function(e,r,t){if(e===xn)return r;if(Pt.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Fi(t))return fp.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Pt.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Pt.isDateTime(e,t))return fp.error("unrecognized date",e),r;return e};var vO=/%\d?f/g,hO=/%h/g,dO={1:"1",2:"1",3:"2",4:"2"};function a4(e,r,t,a){e=e.replace(vO,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(hO,function(){return dO[t("%q")(n)]}),Fi(a))try{e=Ni.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var pO=[59,59.9,59.99,59.999,59.9999];function mO(e,r){var t=fl(e+.05,Xa),a=ms(Math.floor(t/Ju),2)+":"+ms(fl(Math.floor(t/ul),60),2);if(r!=="M"){i4(r)||(r=0);var n=Math.min(fl(e/ys,60),pO[r]),i=(100+n).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Pt.formatDate=function(e,r,t,a,n,i){if(n=Fi(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`+i.year;else return mO(e,t)+` +`+a4(i.dayMonthYear,e,a,n);return a4(r,e,a,n)};var n4=3*Xa;Pt.incrementMonth=function(e,r,t){t=Fi(t)&&t;var a=fl(e,Xa);if(e=Math.round(e-a),t)try{var n=Math.round(e/Xa)+Ku,i=Ni.getComponentMethod("calendars","getCal")(t),l=i.fromJD(n);return r%12?i.add(l,r,"m"):i.add(l,r/12,"y"),(l.toJD()-Ku)*Xa+a}catch(s){fp.error("invalid ms "+e+" in calendar "+t)}var o=new Date(e+n4);return o.setUTCMonth(o.getUTCMonth()+r)+a-n4};Pt.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,l,o,s=Fi(r)&&Ni.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";s4.exports=function(r){return r}});var hp=Z(Ii=>{"use strict";var yO=Hr(),gO=ro(),bO=cp(),xO=Gt().BADNUM,vp=1e-9;Ii.findBin=function(e,r,t){if(yO(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?_O:wO:s=t?MO:TO,e+=l*vp*(t?-1:1)*(l>=0?1:-1);a90&&gO.log("Long binary search..."),a-1};function _O(e,r){return er}function MO(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]===xO;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||bO;for(var t=1/0,a,n=0;n{"use strict";u4.exports=function(r){return Object.keys(r).sort()}});var f4=Z(Rt=>{"use strict";var Qu=Hr(),AO=nn().isArrayOrTypedArray;Rt.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),Qu(r)||(r=!1),AO(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((Hle,d4)=>{"use strict";var c4=us(),pp=c4.mod,kO=c4.modHalf,$u=Math.PI,cl=2*$u;function SO(e){return e/180*$u}function CO(e){return e/$u*180}function mp(e){return Math.abs(e[1]-e[0])>cl-1e-14}function v4(e,r){return kO(r-e,cl)}function LO(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 qO(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=$u,f=cl):t{"use strict";ao.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};ao.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};ao.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};ao.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};ao.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};ao.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var 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(ju=>{"use strict";var Hi={};ju.throttle=function(r,t,a){var n=Hi[r],i=Date.now();if(!n){for(var l in Hi)Hi[l].tsn.ts+t){o();return}n.timer=setTimeout(function(){o(),n.timer=null},t)};ju.done=function(e){var r=Hi[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};ju.clear=function(e){if(e)x4(Hi[e]),delete Hi[e];else for(var r in Hi)ju.clear(r)};function x4(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var w4=Z((Ule,_4)=>{"use strict";_4.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var T4=Z((Gle,Nv)=>{"use strict";Nv.exports=xp;Nv.exports.isMobile=xp;Nv.exports.default=xp;var RO=/(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,zO=/CrOS/,NO=/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=RO.test(r)&&!zO.test(r)||!!e.tablet&&NO.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((Vle,M4)=>{"use strict";var FO=Hr(),IO=T4();M4.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=HO(),typeof t!="string")return!0;var a=IO({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(FO(u)&&(u=+u),u>=13)return!0}}}return a};function HO(){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((Wle,k4)=>{"use strict";var OO=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]=OO.select(this)}),n}});var L4=Z((Zle,C4)=>{"use strict";var BO=br();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=BO.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var D4=Z((Xle,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=GO(r)?UO:YO,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((Qle,N4)=>{"use strict";var VO=Hr(),WO=Gt().BADNUM,ZO=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;N4.exports=function(r){return typeof r=="string"&&(r=r.replace(ZO,"")),VO(r)?Number(r):WO}});var Ie=Z(($le,K4)=>{"use strict";var ef=Ir(),XO=os().utcFormat,JO=B1().format,U4=Hr(),G4=Gt(),V4=G4.FP_SAFE,KO=-V4,I4=G4.BADNUM,ve=K4.exports={};ve.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var H4={};ve.warnBadFormat=function(e){var r=String(e);H4[r]||(H4[r]=1,ve.warn('encountered bad format: "'+r+'"'))};ve.noFormat=function(e){return String(e)};ve.numberFormat=function(e){var r;try{r=JO(ve.adjustFormat(e))}catch(t){return ve.warnBadFormat(e),ve.noFormat}return r};ve.nestedProperty=hv();ve.keyedContainer=Lb();ve.relativeAttr=Db();ve.isPlainObject=nl();ve.toLogRange=pv();ve.relinkPrivateKeys=zb();var vl=nn();ve.isArrayBuffer=vl.isArrayBuffer;ve.isTypedArray=vl.isTypedArray;ve.isArrayOrTypedArray=vl.isArrayOrTypedArray;ve.isArray1D=vl.isArray1D;ve.ensureArray=vl.ensureArray;ve.concat=vl.concat;ve.maxRowLength=vl.maxRowLength;ve.minRowLength=vl.minRowLength;var W4=us();ve.mod=W4.mod;ve.modHalf=W4.modHalf;var hl=ex();ve.valObjectMeta=hl.valObjectMeta;ve.coerce=hl.coerce;ve.coerce2=hl.coerce2;ve.coerceFont=hl.coerceFont;ve.coercePattern=hl.coercePattern;ve.coerceHoverinfo=hl.coerceHoverinfo;ve.coerceSelectionMarkerOpacity=hl.coerceSelectionMarkerOpacity;ve.validate=hl.validate;var ln=o4();ve.dateTime2ms=ln.dateTime2ms;ve.isDateTime=ln.isDateTime;ve.ms2DateTime=ln.ms2DateTime;ve.ms2DateTimeLocal=ln.ms2DateTimeLocal;ve.cleanDate=ln.cleanDate;ve.isJSDate=ln.isJSDate;ve.formatDate=ln.formatDate;ve.incrementMonth=ln.incrementMonth;ve.dateTick0=ln.dateTick0;ve.dfltRange=ln.dfltRange;ve.findExactDates=ln.findExactDates;ve.MIN_MS=ln.MIN_MS;ve.MAX_MS=ln.MAX_MS;var io=hp();ve.findBin=io.findBin;ve.sorterAsc=io.sorterAsc;ve.sorterDes=io.sorterDes;ve.distinctVals=io.distinctVals;ve.roundUp=io.roundUp;ve.sort=io.sort;ve.findIndexOfMin=io.findIndexOfMin;ve.sortObjectKeys=dp();var Oi=f4();ve.aggNums=Oi.aggNums;ve.len=Oi.len;ve.mean=Oi.mean;ve.geometricMean=Oi.geometricMean;ve.median=Oi.median;ve.midRange=Oi.midRange;ve.variance=Oi.variance;ve.stdev=Oi.stdev;ve.interp=Oi.interp;var Vn=Tv();ve.init2dArray=Vn.init2dArray;ve.transposeRagged=Vn.transposeRagged;ve.dot=Vn.dot;ve.translationMatrix=Vn.translationMatrix;ve.rotationMatrix=Vn.rotationMatrix;ve.rotationXYMatrix=Vn.rotationXYMatrix;ve.apply3DTransform=Vn.apply3DTransform;ve.apply2DTransform=Vn.apply2DTransform;ve.apply2DTransform2=Vn.apply2DTransform2;ve.convertCssMatrix=Vn.convertCssMatrix;ve.inverseTransformMatrix=Vn.inverseTransformMatrix;var gi=p4();ve.deg2rad=gi.deg2rad;ve.rad2deg=gi.rad2deg;ve.angleDelta=gi.angleDelta;ve.angleDist=gi.angleDist;ve.isFullCircle=gi.isFullCircle;ve.isAngleInsideSector=gi.isAngleInsideSector;ve.isPtInsideSector=gi.isPtInsideSector;ve.pathArc=gi.pathArc;ve.pathSector=gi.pathSector;ve.pathAnnulus=gi.pathAnnulus;var xs=m4();ve.isLeftAnchor=xs.isLeftAnchor;ve.isCenterAnchor=xs.isCenterAnchor;ve.isRightAnchor=xs.isRightAnchor;ve.isTopAnchor=xs.isTopAnchor;ve.isMiddleAnchor=xs.isMiddleAnchor;ve.isBottomAnchor=xs.isBottomAnchor;var _s=b4();ve.segmentsIntersect=_s.segmentsIntersect;ve.segmentDistance=_s.segmentDistance;ve.getTextLocation=_s.getTextLocation;ve.clearLocationCache=_s.clearLocationCache;ve.getVisibleSegment=_s.getVisibleSegment;ve.findPointOnPath=_s.findPointOnPath;var Hv=Vt();ve.extendFlat=Hv.extendFlat;ve.extendDeep=Hv.extendDeep;ve.extendDeepAll=Hv.extendDeepAll;ve.extendDeepNoArrays=Hv.extendDeepNoArrays;var _p=ro();ve.log=_p.log;ve.warn=_p.warn;ve.error=_p.error;var QO=cs();ve.counterRegex=QO.counter;var wp=zv();ve.throttle=wp.throttle;ve.throttleDone=wp.done;ve.clearThrottle=wp.clear;var Wn=Wu();ve.getGraphDiv=Wn.getGraphDiv;ve.isPlotDiv=Wn.isPlotDiv;ve.removeElement=Wn.removeElement;ve.addStyleRule=Wn.addStyleRule;ve.addRelatedStyleRule=Wn.addRelatedStyleRule;ve.deleteRelatedStyleRule=Wn.deleteRelatedStyleRule;ve.setStyleOnHover=Wn.setStyleOnHover;ve.getFullTransformMatrix=Wn.getFullTransformMatrix;ve.getElementTransformMatrix=Wn.getElementTransformMatrix;ve.getElementAndAncestors=Wn.getElementAndAncestors;ve.equalDomRects=Wn.equalDomRects;ve.clearResponsive=w4();ve.preserveDrawingBuffer=A4();ve.makeTraceGroups=S4();ve._=L4();ve.notifier=$1();ve.filterUnique=D4();ve.filterVisible=P4();ve.pushUnique=rp();ve.increment=z4();ve.cleanNumber=F4();ve.ensureNumber=function(r){return U4(r)?(r=Number(r),r>V4||r=r?!1:U4(e)&&e>=0&&e%1===0};ve.noop=wv();ve.identity=cp();ve.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};ve.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};ve.simpleMap=function(e,r,t,a,n){for(var i=e.length,l=new Array(i),o=0;o=Math.pow(2,t)?n>10?(ve.warn("randstr failed uniqueness"),l):e(r,t,a,(n||0)+1):l};ve.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};ve.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),l=new Array(t),o,s,u,f;for(o=0;o=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];l[o]=f}return l};ve.syncOrAsync=function(e,r,t){var a,n;function i(){return ve.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};ve.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};ve.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,l;for(i=0;i0?n:0})};ve.fillArray=function(e,r,t,a){if(a=a||ve.identity,ve.isArrayOrTypedArray(e))for(var n=0;neB.test(window.navigator.userAgent);var rB=/Firefox\/(\d+)\.\d+/;ve.getFirefoxVersion=function(){var e=rB.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};ve.isD3Selection=function(e){return e instanceof ef.selection};ve.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};ve.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};ve.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+l[1]:"";if(i&&(l.length>1||o.length>4||t))for(;a.test(o);)o=o.replace(a,"$1"+i+"$2");return o+s};ve.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var J4=/^\w*$/;ve.templateString=function(e,r){var t={};return e.replace(ve.TEMPLATE_STRING_REGEX,function(a,n){var i;return J4.test(n)?i=r[n]:(t[n]=t[n]||ve.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var nB={max:10,count:0,name:"hovertemplate"};ve.hovertemplateString=function(){return Tp.apply(nB,arguments)};var iB={max:10,count:0,name:"texttemplate"};ve.texttemplateString=function(){return Tp.apply(iB,arguments)};var lB=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function oB(e){var r=e.match(lB);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var sB={max:10,count:0,name:"texttemplate",parseMultDiv:!0};ve.texttemplateStringForShapes=function(){return Tp.apply(sB,arguments)};var O4=/^[:|\|]/;function Tp(e,r,t){var a=this,n=arguments;return r||(r={}),e.replace(ve.TEMPLATE_STRING_REGEX,function(i,l,o){var s=l==="xother"||l==="yother",u=l==="_xother"||l==="_yother",f=l==="_xother_"||l==="_yother_",v=l==="xother_"||l==="yother_",h=s||u||v||f,d=l;(u||f)&&(d=d.substring(1)),(v||f)&&(d=d.substring(0,d.length-1));var m=null,g=null;if(a.parseMultDiv){var y=oB(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;ve.seedPseudoRandom=function(){bs=2e9};ve.pseudoRandom=function(){var e=bs;return bs=(69069*bs+1)%4294967296,Math.abs(bs-e)<429496729?ve.pseudoRandom():bs/4294967296};ve.fillText=function(e,r,t){var a=Array.isArray(t)?function(l){t.push(l)}:function(l){t.text=l},n=ve.extractOption(e,r,"htx","hovertext");if(ve.isValidTextValue(n))return a(n);var i=ve.extractOption(e,r,"tx","text");if(ve.isValidTextValue(i))return a(i)};ve.isValidTextValue=function(e){return e||e===0};ve.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,ve.strTranslate(n-u*(t+l),i-u*(a+o))+ve.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};ve.setTransormAndDisplay=function(e,r){e.attr("transform",ve.getTextTransform(r)),e.style("display",r.scale?null:"none")};ve.ensureUniformFontSize=function(e,r){var t=ve.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};ve.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};ve.bigFont=function(e){return Math.round(1.2*e)};var Y4=ve.getFirefoxVersion(),uB=Y4!==null&&Y4<86;ve.getPositionFromD3Event=function(){return uB?[ef.event.layerX,ef.event.layerY]:[ef.event.offsetX,ef.event.offsetY]}});var j4=Z(()=>{"use strict";var fB=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:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(Mp in Q4)$4=Mp.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),fB.addStyleRule($4,Q4[Mp]);var $4,Mp});var Ap=Z((roe,e6)=>{e6.exports=!0});var Sp=Z((toe,r6)=>{"use strict";var cB=Ap(),kp;typeof window.matchMedia=="function"?kp=!window.matchMedia("(hover: none)").matches:kp=cB;r6.exports=kp});var Yv=Z((aoe,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 vB(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=mB;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,vB(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 hB(){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=hB.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():dB(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?pB(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,gB={init:function(e){if(e._ev instanceof Lp)return e;var r=new Lp,t=new Lp;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{}),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(),bB=eo().dfltConfig;function xB(e,r){for(var t=[],a,n=0;nbB.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(Wt=>{"use strict";var _n=br(),tf=Ie(),Gv=Gn(),Dp=ds(),_B=qp(),wB=Zu(),TB=eo().configAttributes,y6=pi(),Zn=tf.extendDeepAll,Ts=tf.isPlainObject,MB=tf.isArrayOrTypedArray,Vv=tf.nestedProperty,AB=tf.valObjectMeta,Ep="_isSubplotObj",Wv="_isLinkedToArray",kB="_arrayAttrRegexps",b6="_deprecated",Pp=[Ep,Wv,kB,b6];Wt.IS_SUBPLOT_OBJ=Ep;Wt.IS_LINKED_TO_ARRAY=Wv;Wt.DEPRECATED=b6;Wt.UNDERSCORE_ATTRS=Pp;Wt.get=function(){var e={};return _n.allTypes.forEach(function(r){e[r]=CB(r)}),{defs:{valObjects:AB,metaKeys:Pp.concat(["description","role","editType","impliedEdits"]),editType:{traces:y6.traces,layout:y6.layout},impliedEdits:{}},traces:e,layout:LB(),frames:qB(),animation:Ms(wB),config:Ms(TB)}};Wt.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var l=e[i];if(Pp.indexOf(i)===-1){var o=(a?a+".":"")+i;r(l,i,e,n,o),!Wt.isValObject(l)&&Ts(l)&&i!=="impliedEdits"&&Wt.crawl(l,r,n+1,o)}})};Wt.isValObject=function(e){return e&&e.valType!==void 0};Wt.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function l(s,u,f,v){t=t.slice(0,v).concat([u]),a=a.slice(0,v).concat([s&&s._isLinkedToArray]);var h=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[v-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&o(n,0,"")}function o(s,u,f){var v=s[t[u]],h=f+t[u];if(u===t.length-1)MB(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 CB(e){var r,t;r=_n.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Zn({},Gv),i=Zn({},r.attributes);Wt.crawl(i,function(s,u,f,v,h){Vv(n,h).set(void 0),s===void 0&&Vv(i,h).set(void 0)}),Zn(a,n),_n.traceIs(e,"noOpacity")&&delete a.opacity,_n.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),_n.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Zn(a,i),t.attributes&&Zn(a,t.attributes),a.type=e;var l={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Ms(a)};if(r.layoutAttributes){var o={};Zn(o,r.layoutAttributes),l.layoutAttributes=Ms(o)}return r.animatable||Wt.crawl(l,function(s){Wt.isValObject(s)&&"anim"in s&&delete s.anim}),l}function LB(){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(),zB=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,{},zB,"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 ya=Z((uoe,T6)=>{"use strict";var af=cs().counter;T6.exports={idRegex:{x:af("x","( domain)?"),y:af("y","( domain)?")},attrRegex:af("[xy]axis"),xAxisMatch:af("xaxis"),yAxisMatch:af("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var Zt=Z(Ja=>{"use strict";var NB=br(),zp=ya();Ja.id2name=function(r){if(!(typeof r!="string"||!r.match(zp.AX_ID_PATTERN))){var t=r.split(" ")[0].substr(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Ja.name2id=function(r){if(r.match(zp.AX_NAME_PATTERN)){var t=r.substr(5);return t==="1"&&(t=""),r.charAt(0)+t}};Ja.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(zp.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].substr(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};Ja.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Ja.listIds(e,r),i=new Array(n.length),l;for(l=0;la?1:-1:+(e.substr(1)||1)-+(r.substr(1)||1)};Ja.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function M6(e,r){if(r&&r.length){for(var t=0;t{"use strict";function FB(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function IB(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}A6.exports={clearOutlineControllers:FB,clearOutline:IB}});var Zv=Z((voe,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=br(),hoe=ya().SUBPLOT_PATTERN;Jv.getSubplotCalcData=function(e,r,t){var a=Xv.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],l=0;l{"use strict";var HB=br(),Ss=Ie();oo.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var l=oo.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(l)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(l){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 Nt=Z((moe,G6)=>{"use strict";var F6=Ir(),BB=os().timeFormatLocale,YB=B1().formatLocale,nf=Hr(),UB=Y1(),Zr=br(),I6=As(),GB=ct(),ur=Ie(),H6=Er(),D6=Gt().BADNUM,Ka=Zt(),VB=pl().clearOutline,WB=Zv(),Ip=Zu(),ZB=qp(),XB=Np().getModuleCalcData,E6=ur.relinkPrivateKeys,so=ur._,$e=G6.exports={};ur.extendFlat($e,Zr);$e.attributes=Gn();$e.attributes.type.values=$e.allTypes;$e.fontAttrs=ma();$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=ur.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Zr.getComponentMethod("annotations","draw")(e),Zr.getComponentMethod("legend","draw")(e),Zr.getComponentMethod("colorbar","draw")(e),r($e.previousPromises(e)))},300)})};$e.resize=function(e){e=ur.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||ur.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||ur.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Zr.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};$e.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};$e.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=ur.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill: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&&JB(e,i),l.text(i.text()&&o.text()?" - ":"")}};function JB(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 KB=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],QB=["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,KB);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=eY(h,n.separators),n._extraFormat=P6(e,QB),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var T=n._subplots=jB(),b=n._splomAxes={x:{},y:{}},A=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=$B(l,s),$e.supplyDataDefaults(s,o,i,n);var C=Object.keys(b.x),k=Object.keys(b.y);if(C.length>1&&k.length>1){for(Zr.getComponentMethod("grid","sizeDefaults")(i,n),v=0;v15&&k.length>15&&n.shapes.length===0&&n.images.length===0,$e.linkSubplots(o,n,l,a),$e.cleanPlot(o,n,l,a);var F=!!(a._has&&a._has("cartesian")),I=!!(n._has&&n._has("cartesian")),O=F,X=I;O&&!X?a._bgLayer.remove():X&&!O&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&VB({_fullLayout:a}),rY(o,n),E6(n,a),Zr.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var J=n._tracePreGUI,U={},H;for(H in J)U[H]="old";for(v=0;v0){var f=1-2*i;l=Math.round(f*l),o=Math.round(f*o)}}var v=$e.layoutAttributes.width.min,h=$e.layoutAttributes.height.min;l1,m=!t.height&&Math.abs(a.height-o)>1;(m||d)&&(d&&(a.width=l),m&&(a.height=o)),r._initialAutoSize||(r._initialAutoSize={width:l,height:o}),$e.sanitizeMargins(a)};$e.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Zr.componentsRegistry,i=r._basePlotModules,l,o,s,u=Zr.subplotsRegistry.cartesian;for(l in n)s=n[l],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Zr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(ur.subplotSort);for(o=0;o1&&(t.l/=y,t.r/=y)}if(h){var _=(t.t+t.b)/h;_>1&&(t.t/=_,t.b/=_)}var w=t.xl!==void 0?t.xl:t.x,T=t.xr!==void 0?t.xr:t.x,b=t.yt!==void 0?t.yt:t.y,A=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:w,size:t.l+g},r:{val:T,size:t.r+g},b:{val:A,size:t.b+g},t:{val:b,size:t.t+g}},m[r]=1}if(!a._replotting)return $e.doAutoMargin(e)}};function aY(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Ka.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}$e.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),O6(r);var n=r._size,i=r.margin,l={t:0,b:0,l:0,r:0},o=ur.extendFlat({},n),s=i.l,u=i.r,f=i.t,v=i.b,h=r._pushmargin,d=r._pushmarginIds,m=r.minreducedwidth,g=r.minreducedheight;if(i.autoexpand!==!1){for(var y in h)d[y]||delete h[y];var _=e._fullLayout._reservedMargin;for(var w in _)for(var T in _[w]){var b=_[w][T];l[T]=Math.max(l[T],b)}h.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:v}};for(var A in l){var C=0;for(var k in h)k!=="base"&&nf(h[k][A].size)&&(C=h[k][A].size>C?h[k][A].size:C);var q=Math.max(0,i[A]-C);l[A]=Math.max(0,l[A]-q)}for(var D in h){var R=h[D].l||{},z=h[D].b||{},F=R.val,I=R.size,O=z.val,X=z.size,J=t-l.r-l.l,U=a-l.t-l.b;for(var H in h){if(nf(I)&&h[H].r){var G=h[H].r.val,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(nf(X)&&h[H].t){var he=h[H].t.val,me=h[H].t.size;if(he>O){var ke=(X*he+(me-U)*O)/(he-O),ee=(me*(1-O)+(X-U)*(1-he))/(he-O);ke+ee>v+f&&(v=ke,f=ee)}}}}}var Le=ur.constrain(t-i.l-i.r,B6,m),fe=ur.constrain(a-i.t-i.b,Y6,g),be=Math.max(0,t-Le),se=Math.max(0,a-fe);if(be){var Ae=(s+u)/be;Ae>1&&(s/=Ae,u/=Ae)}if(se){var Y=(v+f)/se;Y>1&&(v/=Y,f/=Y)}if(n.l=Math.round(s)+l.l,n.r=Math.round(u)+l.r,n.t=Math.round(f)+l.t,n.b=Math.round(v)+l.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&($e.didMarginChange(o,n)||aY(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(ur.isPlainObject(h)){var m={},g;return Object.keys(h).sort().forEach(function(T){if(["_","["].indexOf(T.charAt(0))===-1){if(typeof h[T]=="function"){d&&(m[T]="_function");return}if(t==="keepdata"){if(T.substr(T.length-3)==="src")return}else if(t==="keepstream"){if(g=h[T+"src"],typeof g=="string"&&g.indexOf(":")>0&&!ur.isPlainObject(h.stream))return}else if(t!=="keepall"&&(g=h[T+"src"],typeof g=="string"&&g.indexOf(":")>0))return;m[T]=u(h[T],d)}}),m}var y=Array.isArray(h),_=ur.isTypedArray(h);if((y||_)&&h.dtype&&h.shape){var w=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:ur.isArrayBuffer(w)?UB.encode(w):w},d)}return y?h.map(function(T){return u(T,d)}):_?ur.simpleMap(h,ur.identity):ur.isJSDate(h)?ur.ms2DateTimeLocal(+h):h}var f={data:(l||[]).map(function(h){var d=u(h);return r&&delete d.fit,d})};if(!r&&(f.layout=u(o),n)){var v=o._size;f.layout.computed={margin:{b:v.b,l:v.l,r:v.r,t:v.t}}}return s&&(f.frames=u(s)),i&&(f.config=u(e._context,!0)),a==="object"?f:JSON.stringify(f)};$e.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,l=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Zr.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function m(){return h++,function(){d++,!a&&d===h&&o(v)}}t.runFn(m),setTimeout(m())})}function o(v){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Zr.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(v)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[$e.previousPromises,s,t.prepareFn,$e.rehover,$e.reselect,l],f=ur.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}$e.doCalcdata=function(e,r){var t=Ka.list(e),a=e._fullData,n=e._fullLayout,i,l,o,s,u=new Array(a.length),f=(e.calcdata||[]).slice();for(e.calcdata=u,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},o=0;o=0;s--)if(A[s].enabled){i._indexToPoints=A[s]._indexToPoints;break}l&&l.calc&&(b=l.calc(e,i))}(!Array.isArray(b)||!b[0])&&(b=[{x: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 Pa=Z((goe,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 Ta=Z(wn=>{"use strict";var Ft=Ir(),Yi=Ie(),oY=Yi.strTranslate,Hp=fo(),sY=Pa().LINE_SPACING,uY=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;wn.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(uY),i=Ft.select(e.node().parentNode);if(i.empty())return;var l=e.attr("class")?e.attr("class").split(" ")[0]:"text";l+="-math",i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function o(){i.empty()||(l=e.attr("class")+"-math",i.select("svg."+l).remove()),e.text("").style("white-space","pre");var s=wY(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};hY(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]+")"+oY(-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 fY=/(<|<|<)/g,cY=/(>|>|>)/g;function vY(e){return e.replace(fY,"\\lt ").replace(cY,"\\gt ")}var W6=[["$","$"],["\\(","\\)"]];function hY(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=Ft.select("body").append("div").attr({id:w}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(vY(e));var T=o.node();return a===2?MathJax.Hub.Typeset(T):MathJax.typeset([T])},d=function(){var w=o.select(a===2?".MathJax_SVG":".MathJax"),T=!w.empty()&&o.select("svg").node();if(!T)Yi.log("There was an error in the tex syntax.",e),t();else{var b=T.getBoundingClientRect(),A;a===2?A=Ft.select("body").select("#MathJax_SVG_glyphs"):A=w.select("defs"),t(w,A,b)}o.remove()},m=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},g=function(){n!=="svg"&&(MathJax.config.startup.output=n)},y=function(){return l!==void 0&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(i)},_=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(s,f,h,d,m,y):a===3&&(u(),v(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),g(),_()}))}var 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"},dY={sub:"0.3em",sup:"-0.6em"},pY={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,mY=//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,yY=/(^|[\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 gY=/(^|;)\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 bY={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},xY=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function $v(e){return e.replace(xY,function(r,t){var a;return t.charAt(0)==="#"?a=_Y(t.charAt(1)==="x"?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):a=bY[t],a||r})}wn.convertEntities=$v;function _Y(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 wY(e,r){r=r.replace(Q6," ");var t=!1,a=[],n,i=-1;function l(){i++;var C=document.createElementNS(Hp.svg,"tspan");Ft.select(C).attr({class:"line",dy:i*sY+"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=mY.test(r);f?l():(n=e,a=[{node:e}]);for(var v=r.split(Bp),h=0;h{"use strict";var TY=Ir(),e0=bn(),of=Hr(),jv=Ie(),t7=Er(),MY=$l().isValid;function AY(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(),SY=f7.FORMAT_LINK,CY=f7.DATE_FORMAT_LINK;function LY(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: "+SY+"."].join(" ")}function c7(e,r){return Up(e,r)+[" And for dates see: "+CY+".","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:LY,descriptionOnlyNumbers:Up,descriptionWithDates:c7}});var Xn=Z((Toe,L7)=>{"use strict";var h7=ma(),Cs=hi(),C7=mi().dash,Vp=Vt().extendFlat,d7=ct().templatedArray,woe=yi().templateFormatStringDescription,p7=r0().descriptionWithDates,qY=Gt().ONEDAY,bi=ya(),DY=bi.HOUR_PATTERN,EY=bi.WEEKDAY_PATTERN,Gp={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},PY=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"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[bi.idRegex.x.toString(),bi.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[bi.idRegex.x.toString(),bi.idRegex.y.toString()],editType:"calc"},rangebreaks: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:[EY,DY,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:qY},editType:"calc"}),tickmode:PY,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")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Cs.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid: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",bi.idRegex.x.toString(),bi.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",bi.idRegex.x.toString(),bi.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Gp,nticks: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"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var t0=Z((Moe,E7)=>{"use strict";var ht=Xn(),q7=ma(),D7=Vt().extendFlat,RY=pi().overrideAll;E7.exports=RY({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 sf=Z((koe,R7)=>{"use strict";var zY=t0(),NY=cs().counter,FY=dp(),P7=$l().scales,Aoe=FY(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=zY),t.noColorAxis||(k.coloraxis={valType:"subplotid",regex:NY("coloraxis"),dflt:null,editType:"calc"}),k}});var Zp=Z((Soe,z7)=>{"use strict";var IY=Vt().extendFlat,HY=sf(),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:IY({_isSubplotObj:!0,editType:"calc"},HY("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Xp=Z((Coe,N7)=>{"use strict";var OY=Ie();N7.exports=function(r){return OY.isPlainObject(r.colorbar)}});var Qp=Z(Kp=>{"use strict";var Jp=Hr(),F7=Ie(),I7=Gt(),BY=I7.ONEDAY,YY=I7.ONEWEEK;Kp.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?BY: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%YY===0?1:0));if(!(a==="D1"||a==="D2"))return Jp(e)?Number(e):0}});var $p=Z((qoe,O7)=>{"use strict";var H7=Qp(),UY=Ie().isArrayOrTypedArray,GY=nn().isTypedArraySpec,VY=nn().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 GY(T)&&(T=VY(T)),T!==void 0?T:(s._template||{})[w]}var v=f("tick0"),h=f("dtick"),d=f("tickvals"),m=UY(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((Doe,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((Eoe,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((Poe,G7)=>{"use strict";var n0=Ie(),WY=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=WY.arrayTemplater(t,n,i),f,v;for(f=0;f{"use strict";var tm=Ie(),ZY=Er().contrast,V7=Xn(),XY=rm(),JY=Jn();W7.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");tm.isPlainObject(l)||delete t.labelalias;var o=XY(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?ZY(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");JY(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:KY}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!m&&n!=="date"&&(a("showexponent",o),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function KY(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((zoe,Z7)=>{"use strict";var QY=rm();Z7.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=QY(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var im=Z((Noe,X7)=>{"use strict";var ml=Ie(),$Y=ct(),jY=$p(),eU=em(),rU=am(),tU=nm(),aU=t0();X7.exports=function(r,t,a){var n=$Y.newContainer(t,"colorbar"),i=r.colorbar||{};function l(z,F){return ml.coerce(i,n,aU,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"),jY(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"),tU(i,n,l,"linear",q),rU(i,n,l,"linear",q),eU(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((Foe,Q7)=>{"use strict";var J7=Hr(),om=Ie(),nU=Xp(),iU=im(),K7=$l().isValid,lU=br().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=lU(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(),oU=ct(),j7=Zp(),sU=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=oU.newContainer(t,s,"coloraxis"),l._name=s,sU(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var uU=Ie(),fU=Tn().hasColorscale,cU=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?uU.nestedProperty(f,v.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=cU(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(),vU=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=vU(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((Boe,l9)=>{"use strict";var l0=$l(),qs=Tn();l9.exports={moduleType:"component",name:"colorscale",attributes:sf(),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 on=Z((Yoe,s9)=>{"use strict";var o9=Ie(),hU=nn().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)||hU(r.size))}}});var f9=Z((Uoe,u9)=>{"use strict";var dU=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 dU(s)&&s>0?Math.max(s,i):0}}});var xi=Z(Ma=>{"use strict";var c9=Ie();Ma.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Ma.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{d9.exports=bU;var fm={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},gU=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function bU(e){var r=[];return e.replace(gU,function(t,a,n){var i=a.toLowerCase();for(n=_U(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 wU=cm(),Ze=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=Ze(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Sr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.3,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.4,2),n=Ze(e*1.2,2);return Sr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.8/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=Ze(e*2/yl,2),n=Ze(e/2,2),i=Ze(e,2);return Sr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2/yl,2),n=Ze(e/2,2),i=Ze(e,2);return Sr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2/yl,2),n=Ze(e/2,2),i=Ze(e,2);return Sr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2/yl,2),n=Ze(e/2,2),i=Ze(e,2);return Sr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.6,2),n=Ze(e*1.2,2);return Sr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.6,2),n=Ze(e*1.2,2);return Sr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.6,2),n=Ze(e*1.2,2);return Sr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.6,2),n=Ze(e*1.2,2);return Sr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.951,2),n=Ze(e*.588,2),i=Ze(-e,2),l=Ze(e*-.309,2),o=Ze(e*.809,2);return Sr(r,t,"M"+a+","+l+"L"+n+","+o+"H-"+n+"L-"+a+","+l+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e/2,2),i=Ze(e*yl/2,2);return Sr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e/2,2),i=Ze(e*yl/2,2);return Sr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.924,2),n=Ze(e*.383,2);return Sr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(kr(r))return Ar;var a=e*1.4,n=Ze(a*.225,2),i=Ze(a*.951,2),l=Ze(a*.363,2),o=Ze(a*.588,2),s=Ze(-a,2),u=Ze(a*-.309,2),f=Ze(a*.118,2),v=Ze(a*.809,2),h=Ze(a*.382,2);return Sr(r,t,"M"+n+","+u+"H"+i+"L"+l+","+f+"L"+o+","+v+"L0,"+h+"L-"+o+","+v+"L-"+l+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.66,2),n=Ze(e*.38,2),i=Ze(e*.76,2);return Sr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*yl*.8,2),n=Ze(e*.8,2),i=Ze(e*1.6,2),l=Ze(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Sr(r,t,"M-"+a+","+n+o+a+","+n+o+"0,-"+i+o+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*yl*.8,2),n=Ze(e*.8,2),i=Ze(e*1.6,2),l=Ze(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Sr(r,t,"M"+a+",-"+n+o+"-"+a+",-"+n+o+"0,"+i+o+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.1,2),n=Ze(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Sr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.4,2),n=Ze(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Sr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*.7,2),n=Ze(e*1.4,2);return Sr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.4,2),n=Ze(e*.7,2);return Sr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e/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=Ze(e,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.3,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.3,2),n=Ze(e*.65,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.4,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.2,2),n=Ze(e*.85,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e/2,2),n=Ze(e,2);return Sr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(e*.8,2);return Sr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(e*.8,2);return Sr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(e*.8,2);return Sr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.2,2),n=Ze(e*1.6,2),i=Ze(e*.8,2);return Sr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.4,2);return Sr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*1.4,2);return Sr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e*2,2);return Sr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e*2,2);return Sr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2,2),n=Ze(e,2);return Sr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2,2),n=Ze(e,2);return Sr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e*2,2);return Sr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e,2),n=Ze(e*2,2);return Sr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2,2),n=Ze(e,2);return Sr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(kr(r))return Ar;var a=Ze(e*2,2),n=Ze(e,2);return Sr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(kr(r))return Ar;var a=vm/2.5,n=2*e*hm(a),i=2*e*dm(a);return Sr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(kr(r))return Ar;var a=vm/4,n=2*e*hm(a),i=2*e*dm(a);return Sr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function kr(e){return e===null}var 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=wU(t),s="",u=0;u{"use strict";var jt=Ir(),tt=Ie(),TU=tt.numberFormat,mo=Hr(),xm=bn(),s0=br(),ga=Er(),MU=um(),ff=tt.strTranslate,u0=Ta(),AU=fo(),kU=Pa(),SU=kU.LINE_SPACING,D9=xv().DESELECTDIM,CU=on(),LU=f9(),qU=xi().appendArrayPointValue,rr=B9.exports={};rr.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,l=r.size,o=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;o&&e.style("font-family",o),l+1&&e.style("font-size",l+"px"),i&&e.call(ga.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",pm(EU(f))),s&&e.style("text-shadow",s==="auto"?u0.makeTextShadow(ga.contrast(i)):pm(s)),u&&e.style("text-decoration-line",pm(PU(u)))};function pm(e){return e==="none"?void 0:e}var DU={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function EU(e){return DU[e]}function PU(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}rr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};rr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};rr.setRect=function(e,r,t,a,n){e.call(rr.setPosition,r,t).call(rr.setSize,a,n)};rr.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(mo(n)&&mo(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",ff(n,i));else return!1;return!0};rr.translatePoints=function(e,r,t){e.each(function(a){var n=jt.select(this);rr.translatePoint(a,n,r,t)})};rr.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};rr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,l=i.xcalendar,o=i.ycalendar,s=s0.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){rr.hideOutsideRangePoint(u,jt.select(this),t,a,l,o)})})}};rr.crispRound=function(e,r,t){return!r||!mo(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};rr.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},l=t||i.width||0,o=n||i.dash||"";ga.stroke(r,a||i.color),rr.dashLine(r,o,l)};rr.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},l=r||i.width||0,o=a||i.dash||"";jt.select(this).call(ga.stroke,t||i.color).call(rr.dashLine,o,l)})};rr.dashLine=function(e,r,t){t=+t||0,r=rr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};rr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function E9(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,l=rr.getPatternAttr,o=n&&(l(n.shape,0,"")||l(n.path,0,""));if(o){var s=l(n.bgcolor,0,null),u=l(n.fgcolor,0,null),f=n.fgopacity,v=l(n.size,0,8),h=l(n.solidity,0,.3),d=r.uid;rr.pattern(e,"point",t,d,o,v,h,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var m=i.type,g="scatterfill-"+r.uid;if(a&&(g="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var y,_;m==="horizontal"?(y={x:i.start,y:0},_={x:i.stop,y:0}):m==="vertical"&&(y={x:0,y:i.start},_={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),_.x=r._xA.c2p(_.x===void 0?r._extremes.x.max[0].val:_.x,!0),_.y=r._yA.c2p(_.y===void 0?r._extremes.y.max[0].val:_.y,!0),e.call(z9,t,g,"linear",i.colorscale,"fill",y,_,!0,!1)}else m==="horizontal"&&(m=m+"reversed"),e.call(rr.gradient,t,g,m,i.colorscale,"fill")}else r.fillcolor&&e.call(ga.fill,r.fillcolor)}rr.singleFillStyle=function(e,r){var t=jt.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};E9(e,n,r,!1)};rr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=jt.select(this);a[0].trace&&E9(n,a[0].trace,r,t)})};var w9=_9();rr.symbolNames=[];rr.symbolFuncs=[];rr.symbolBackOffs=[];rr.symbolNeedLines={};rr.symbolNoDot={};rr.symbolNoFill={};rr.symbolList=[];Object.keys(w9).forEach(function(e){var r=w9[e],t=r.n;rr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),rr.symbolNames[t]=e,rr.symbolFuncs[t]=r.f,rr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(rr.symbolNeedLines[t]=!0),r.noDot?rr.symbolNoDot[t]=!0:rr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(rr.symbolNoFill[t]=!0)});var RU=rr.symbolNames.length,zU="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";rr.symbolNumber=function(e){if(mo(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=rr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=RU||e>=400?0:Math.floor(Math.max(e,0))};function P9(e,r,t,a){var n=e%100;return rr.symbolFuncs[n](r,t,a)+(e>=200?zU:"")}var T9=TU("~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}};rr.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=rr.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=ga.defaultLine:m=o.color,tt.isArrayOrTypedArray(l.color)&&(d=ga.defaultLine,h=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=l.color||l.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}if(e.om)r.call(ga.stroke,d).style({"stroke-width":(g||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:g)+"px");var _=l.gradient,w=e.mgt;w?h=!0:w=_&&_.type,tt.isArrayOrTypedArray(w)&&(w=w[0],R9[w]||(w=0));var T=l.pattern,b=rr.getPatternAttr,A=T&&(b(T.shape,e.i,"")||b(T.path,e.i,""));if(w&&w!=="none"){var C=e.mgc;C?h=!0:C=_.color;var k=t.uid;h&&(k+="-"+e.i),rr.gradient(r,n,k,w,[[0,C],[1,d]],"fill")}else if(A){var q=!1,D=T.fgcolor;!D&&i&&i.color&&(D=i.color,q=!0);var R=b(D,e.i,i&&i.color||null),z=b(T.bgcolor,e.i,null),F=T.fgopacity,I=b(T.size,e.i,8),O=b(T.solidity,e.i,.3);q=q||e.mcc||tt.isArrayOrTypedArray(T.shape)||tt.isArrayOrTypedArray(T.path)||tt.isArrayOrTypedArray(T.bgcolor)||tt.isArrayOrTypedArray(T.fgcolor)||tt.isArrayOrTypedArray(T.size)||tt.isArrayOrTypedArray(T.solidity);var X=t.uid;q&&(X+="-"+e.i),rr.pattern(r,"point",n,X,A,I,O,e.mcc,T.fillmode,z,R,F)}else tt.isArrayOrTypedArray(d)?ga.fill(r,d[e.i]):ga.fill(r,d);g&&ga.stroke(r,m)}};rr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=rr.tryColorscale(t,""),r.lineScale=rr.tryColorscale(t,"line"),s0.traceIs(e,"symbols")&&(r.ms2mrc=CU.isBubble(e)?LU(e):function(){return(t.size||6)/2}),e.selectedpoints&&tt.extendFlat(r,rr.makeSelectedPointStyleFns(e)),r};rr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},l=a.marker||{},o=n.opacity,s=i.opacity,u=l.opacity,f=s!==void 0,v=u!==void 0;(tt.isArrayOrTypedArray(o)||f||v)&&(r.selectedOpacityFn=function(b){var A=b.mo===void 0?n.opacity:b.mo;return b.selected?f?s:A:v?u: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};rr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},l=a.textfont||{},o=n.color,s=i.color,u=l.color;return r.selectedTextColorFn=function(f){var v=f.tc||o;return f.selected?s||v:u||(s?v:ga.addOpacity(v,D9))},r};rr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=rr.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,l){i.style("opacity",t.selectedOpacityFn(l))}),t.selectedColorFn&&n.push(function(i,l){ga.fill(i,t.selectedColorFn(l))}),t.selectedSizeFn&&n.push(function(i,l){var o=l.mx||a.symbol||0,s=t.selectedSizeFn(l);i.attr("d",P9(rr.symbolNumber(o),s,Tm(l,r),wm(l,r))),l.mrc2=s}),n.length&&e.each(function(i){for(var l=jt.select(this),o=0;o0?t:0}rr.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=rr.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,l=t._fullLayout;e.each(function(o){var s=jt.select(this),u=i?tt.extractOption(o,r,"txt","texttemplate"):tt.extractOption(o,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,v=f?f(o,r,l):{},h={};qU(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(rr.font,{family:o.tf||r.textfont.family,weight:o.tw||r.textfont.weight,style:o.ty||r.textfont.style,variant:o.tv||r.textfont.variant,textcase:o.tC||r.textfont.textcase,lineposition:o.tE||r.textfont.lineposition,shadow:o.tS||r.textfont.shadow,size:g,color:y}).text(u).call(u0.convertToTspans,t).call(N9,m,g,o.mrc)})}};rr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=rr.makeSelectedTextStyleFns(r);e.each(function(a){var n=jt.select(this),i=t.selectedTextColorFn(a),l=a.tp||r.textposition,o=F9(a,r);ga.fill(n,i);var s=s0.traceIs(r,"bar-like");N9(n,l,o,a.mrc2||a.mrc,s)})}};var M9=.5;rr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||b>=f&&b<=s)&&(A<=v&&A>=u||A>=v&&A<=u)&&(e=[b,A])}return e}rr.applyBackoff=O9;rr.makeTester=function(){var e=tt.ensureSingleById(jt.select("body"),"svg","js-plotly-tester",function(t){t.attr(AU.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=tt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});rr.tester=e,rr.testref=r};rr.savedBBoxes={};var ym=0,IU=1e4;rr.bBox=function(e,r,t){t||(t=A9(e));var a;if(t){if(a=rr.savedBBoxes[t],a)return tt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=A9(n),t){var i=+n.getAttribute("x")||0,l=+n.getAttribute("y")||0,o=n.getAttribute("transform");if(!o){var s=rr.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),l&&(s.top+=l,s.bottom+=l),s}if(t+="~"+i+"~"+l+"~"+o,a=rr.savedBBoxes[t],a)return tt.extendFlat({},a)}}var u,f;r?u=e:(f=rr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),jt.select(u).attr("transform",null).call(u0.positionText,0,0);var v=u.getBoundingClientRect(),h=rr.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:v.height,width:v.width,left:v.left-h.left,top:v.top-h.top,right:v.right-h.left,bottom:v.bottom-h.top};return ym>=IU&&(rr.savedBBoxes={},ym=0),t&&(rr.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")}rr.setClipUrl=function(e,r,t){e.attr("clip-path",_m(r,t))};function _m(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}rr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};rr.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||0,t=t||0,l=l.replace(a,"").trim(),l+=ff(r,t),l=l.trim(),e[i]("transform",l),l};rr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};rr.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||1,t=t||1,l=l.replace(a,"").trim(),l+="scale("+r+","+t+")",l=l.trim(),e[i]("transform",l),l};var HU=/\s*sc.*/;rr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(HU,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var OU=/translate\([^)]*\)\s*$/;rr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=jt.select(this),i=n.select("text");if(i.node()){var l=parseFloat(i.attr("x")||0),o=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(OU);r===1&&t===1?a=[]:a=[ff(l,o),"scale("+r+","+t+")",ff(-l,-o)],s&&a.push(s),n.attr("transform",a.join(""))}})};function wm(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}rr.getMarkerStandoff=wm;var uf=Math.atan2,vo=Math.cos,Es=Math.sin;function 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=uf(h[1]-n,h[0]-a),m=uf(v[1]-n,v[0]-a),g;if(i==="north")g=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,_=f/180*Math.PI,w=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=-uf(A,C)-Math.PI,S9=u,C9=f}var k=k9(d,[vo(g),0]),q=k9(m,[Es(g),0]);t=uf(k[1]+q[1],k[0]+q[0])/Math.PI*180,i==="previous"&&!(bm===r.uid&&e.i===gm+1)&&(t=null)}if(i==="previous"&&!r._geo)if(bm===r.uid&&e.i===gm+1&&mo(a)&&mo(n)){var D=a-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+=uf(R,D)/Math.PI*180+90}else t=null}return L9=a,q9=n,gm=e.i,bm=r.uid,t}rr.getMarkerAngle=Tm});var cf=Z((Xoe,V9)=>{"use strict";var Ps=Ir(),BU=Hr(),YU=Nt(),Mm=br(),yo=Ie(),Y9=yo.strTranslate,f0=at(),c0=Er(),Rs=Ta(),U9=xv(),UU=Pa().OPPOSITE_SIDE,G9=/ [XY][0-9]* /,Am=1.6,km=1.6;function GU(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,l=t.placeholder,o=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,v=t.containerGroup,h=1,d=n.title,m=(d&&d.text?d.text:"").trim(),g=!1,y=d&&d.font?d.font:{},_=y.family,w=y.size,T=y.color,b=y.weight,A=y.style,C=y.variant,k=y.textcase,q=y.lineposition,D=y.shadow,R=t.subtitlePropName,z=!!R,F=t.subtitlePlaceholder,I=(n.title||{}).subtitle||{text:"",font:{}},O=I.text.trim(),X=!1,J=1,U=I.font,H=U.family,G=U.size,Q=U.color,K=U.weight,ie=U.style,he=U.variant,me=U.textcase,ke=U.lineposition,ee=U.shadow,Le;i==="title.text"?Le="titleText":i.indexOf("axis")!==-1?Le="axisTitleText":i.indexOf("colorbar")!==-1&&(Le="colorbarTitleText");var fe=e._context.edits[Le];function be(Ve,Ue){return Ve===void 0||Ue===void 0?!1:Ve.replace(G9," % ")===Ue.replace(G9," % ")}m===""?h=0:be(m,l)&&(fe||(m=""),h=.2,g=!0),z&&(O===""?J=0:be(O,F)&&(fe||(O=""),J=.2,X=!0)),t._meta?m=yo.templateString(m,t._meta):a._meta&&(m=yo.templateString(m,a._meta));var se=m||O||fe,Ae;v||(v=yo.ensureSingle(a._infolayer,"g","g-"+r),Ae=a._hColorbarMoveTitle);var Y=v.selectAll("text."+r).data(se?[0]:[]);Y.enter().append("text"),Y.text(m).attr("class",r),Y.exit().remove();var re=null,B=r+"-subtitle",ge=O||fe;if(z&&ge&&(re=v.selectAll("text."+B).data(ge?[0]:[]),re.enter().append("text"),re.text(O).attr("class",B),re.exit().remove()),!se)return v;function Me(Ve,Ue){yo.syncOrAsync([ye,Re],{title:Ve,subtitle:Ue})}function ye(Ve){var Ue=Ve.title,De=Ve.subtitle,He;!f&&Ae&&(f={}),f?(He="",f.rotate&&(He+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||Ae)&&(He+=Y9(0,(f.offset||0)-(Ae||0)))):He=null,Ue.attr("transform",He);function Oe(le){if(le){var Se=Ps.select(le.node().parentNode).select("."+B);if(!Se.empty()){var Fe=le.node().getBBox();if(Fe.height){var We=Fe.y+Fe.height+Am*G;Se.attr("y",We)}}}}if(Ue.style("opacity",h*c0.opacity(T)).call(f0.font,{color:c0.rgb(T),size:Ps.round(w,2),family:_,weight:b,style:A,variant:C,textcase:k,shadow:D,lineposition:q}).attr(u).call(Rs.convertToTspans,e,Oe),De){var ne=v.select("."+r+"-math-group"),Te=Ue.node().getBBox(),Xe=ne.node()?ne.node().getBBox():void 0,cr=Xe?Xe.y+Xe.height+Am*G:Te.y+Te.height+km*G,fr=yo.extendFlat({},u,{y:cr});De.attr("transform",He),De.style("opacity",J*c0.opacity(Q)).call(f0.font,{color:c0.rgb(Q),size:Ps.round(G,2),family:H,weight:K,style:ie,variant:he,textcase:me,shadow:ee,lineposition:ke}).attr(fr).call(Rs.convertToTspans,e)}return YU.previousPromises(e)}function Re(Ve){var Ue=Ve.title,De=Ps.select(Ue.node().parentNode);if(s&&s.selection&&s.side&&m){De.attr("transform",null);var He=UU[s.side],Oe=s.side==="left"||s.side==="top"?-1:1,ne=BU(s.pad)?s.pad:2,Te=f0.bBox(De.node()),Xe={t:0,b:0,l:0,r:0},cr=e._fullLayout._reservedMargin;for(var fr in cr)for(var le in cr[fr]){var Se=cr[fr][le];Xe[le]=Math.max(Xe[le],Se)}var Fe={left:Xe.l,top:Xe.t,right:a.width-Xe.r,bottom:a.height-Xe.b},We=s.maxShift||Oe*(Fe[s.side]-Te[s.side]),Ge=0;if(We<0)Ge=We;else{var Je=s.offsetLeft||0,je=s.offsetTop||0;Te.left-=Je,Te.right-=Je,Te.top-=je,Te.bottom-=je,s.selection.each(function(){var Ke=f0.bBox(this);yo.bBoxIntersect(Te,Ke,ne)&&(Ge=Math.max(Ge,Oe*(Ke[s.side]-Te[He])+ne))}),Ge=Math.min(We,Ge),n._titleScoot=Math.abs(Ge)}if(Ge>0||We<0){var vr={left:[-Ge,0],right:[Ge,0],top:[0,-Ge],bottom:[0,Ge]}[s.side];De.attr("transform",Y9(vr[0],vr[1]))}}}Y.call(Me,re);function Ne(Ve,Ue){Ve.text(Ue).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(fe&&(m?Y.on(".opacity",null):(Ne(Y,l),g=!0),Y.call(Rs.makeEditable,{gd:e}).on("edit",function(Ve){o!==void 0?Mm.call("_guiRestyle",e,i,Ve,o):Mm.call("_guiRelayout",e,i,Ve)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Me)}).on("input",function(Ve){this.text(Ve||" ").call(Rs.positionText,u.x,u.y)}),z)){if(z&&!m){var Ee=Y.node().getBBox(),ze=Ee.y+Ee.height+km*G;re.attr("y",ze)}O?re.on(".opacity",null):(Ne(re,F),X=!0),re.call(Rs.makeEditable,{gd:e}).on("edit",function(Ve){Mm.call("_guiRelayout",e,"title.subtitle.text",Ve)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Me)}).on("input",function(Ve){this.text(Ve||" ").call(Rs.positionText,re.attr("x"),re.attr("y"))})}return Y.classed("js-placeholder",g),re&&re.classed("js-placeholder",X),v}V9.exports={draw:GU,SUBTITLE_PADDING_EM:km,SUBTITLE_PADDING_MATHJAX_EM:Am}});var b0=Z((Joe,K9)=>{"use strict";var VU=Ir(),WU=os().utcFormat,it=Ie(),ZU=it.numberFormat,_i=Hr(),gl=it.cleanNumber,XU=it.ms2DateTime,W9=it.dateTime2ms,wi=it.ensureNumber,Z9=it.isArrayOrTypedArray,bl=Gt(),v0=bl.FP_SAFE,Kn=bl.BADNUM,JU=bl.LOG_CLIP,KU=bl.ONEWEEK,h0=bl.ONEDAY,d0=bl.ONEHOUR,X9=bl.ONEMIN,J9=bl.ONESEC,p0=Zt(),g0=ya(),m0=g0.HOUR_PATTERN,y0=g0.WEEKDAY_PATTERN;function vf(e){return Math.pow(10,e)}function Sm(e){return e!=null}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*JU*Math.abs(C-k))}else return Kn}function l(b,A,C,k){if((k||{}).msUTC&&_i(b))return+b;var q=W9(b,C||r.calendar);if(q===Kn)if(_i(b)){b=+b;var D=Math.floor(it.mod(b+.05,1)*10),R=Math.round(b-D/10);q=W9(new Date(R))+D/10}else return Kn;return q}function o(b,A,C){return XU(b,A,C||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(Sm(b)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[b]!==void 0)return r._categoriesMap[b];r._categories.push(typeof b=="number"?String(b):b);var A=r._categories.length-1;return r._categoriesMap[b]=A,A}return Kn}function f(b,A){for(var C=new Array(A),k=0;kr.range[1]&&(C=!C);for(var k=C?-1:1,q=k*b,D=0,R=0;RF)D=R+1;else{D=q<(z+F)/2?R:R+1;break}}var I=r._B[D]||0;return isFinite(I)?m(b,r._m2,I):0},_=function(b){var A=r._rangebreaks.length;if(!A)return g(b,r._m,r._b);for(var C=0,k=0;kr._rangebreaks[k].pmax&&(C=k+1);return g(b,r._m2,r._B[C])}}r.c2l=r.type==="log"?i:wi,r.l2c=r.type==="log"?vf:wi,r.l2p=y,r.p2l=_,r.c2p=r.type==="log"?function(b,A){return y(i(b,A))}:y,r.p2c=r.type==="log"?function(b){return vf(_(b))}:_,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=gl,r.c2d=r.c2r=r.l2d=r.l2r=wi,r.d2p=r.r2p=function(b){return r.l2p(gl(b))},r.p2d=r.p2r=_,r.cleanPos=wi):r.type==="log"?(r.d2r=r.d2l=function(b,A){return i(gl(b),A)},r.r2d=r.r2c=function(b){return vf(gl(b))},r.d2c=r.r2l=gl,r.c2d=r.l2r=wi,r.c2r=i,r.l2d=vf,r.d2p=function(b,A){return r.l2p(r.d2r(b,A))},r.p2d=function(b){return vf(_(b))},r.r2p=function(b){return r.l2p(gl(b))},r.p2r=_,r.cleanPos=wi):r.type==="date"?(r.d2r=r.r2d=it.identity,r.d2c=r.r2c=r.d2l=r.r2l=l,r.c2d=r.c2r=r.l2d=r.l2r=o,r.d2p=r.r2p=function(b,A,C){return r.l2p(l(b,0,C))},r.p2d=r.p2r=function(b,A,C){return o(_(b),A,C)},r.cleanPos=function(b){return it.cleanDate(b,Kn,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(b){var A=d(b);return A!==void 0?A:r.fraction2r(.5)},r.l2r=r.c2r=wi,r.r2l=d,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(_(b))},r.r2p=r.d2p,r.p2r=_,r.cleanPos=function(b){return typeof b=="string"&&b!==""?b:wi(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(b){var A=h(b);return A!==void 0?A:r.fraction2r(.5)},r.r2c_just_indices=v,r.l2r=r.c2r=wi,r.r2l=h,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(_(b))},r.r2p=r.d2p,r.p2r=_,r.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:wi(b)},r.setupMultiCategory=function(b){var A=r._traceIndices,C,k,q=r._matchGroup;if(q&&r._categories.length===0){for(var D in q)if(D!==a){var R=t[p0.id2name(D)];A=A.concat(R._traceIndices)}}var z=[[0,{}],[0,{}]],F=[];for(C=0;CR[1]&&(k[D?0:1]=C),k[0]===k[1]){var z=r.l2r(A),F=r.l2r(C);if(A!==void 0){var I=z+1;C!==void 0&&(I=Math.min(I,F)),k[D?1:0]=I}if(C!==void 0){var O=F+1;A!==void 0&&(O=Math.max(O,z)),k[D?0:1]=O}}}},r.cleanRange=function(b,A){r._cleanRange(b,A),r.limitRange(b)},r._cleanRange=function(b,A){A||(A={}),b||(b="range");var C=it.nestedProperty(r,b).get(),k,q;if(r.type==="date"?q=it.dfltRange(r.calendar):n==="y"?q=g0.DFLTRANGEY:r._name==="realaxis"?q=[0,1]:q=A.dfltRange||g0.DFLTRANGEX,q=q.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(q[0]=0),!C||C.length!==2){it.nestedProperty(r,b).set(q);return}var D=C[0]===null,R=C[1]===null;for(r.type==="date"&&!r.autorange&&(C[0]=it.cleanDate(C[0],Kn,r.calendar),C[1]=it.cleanDate(C[1],Kn,r.calendar)),k=0;k<2;k++)if(r.type==="date"){if(!it.isDateTime(C[k],r.calendar)){r[b]=q;break}if(r.r2l(C[0])===r.r2l(C[1])){var z=it.constrain(r.r2l(C[0]),it.MIN_MS+1e3,it.MAX_MS-1e3);C[0]=r.l2r(z-1e3),C[1]=r.l2r(z+1e3);break}}else{if(!_i(C[k]))if(!(D||R)&&_i(C[1-k]))C[k]=C[1-k]*(k?10:.1);else{r[b]=q;break}if(C[k]<-v0?C[k]=-v0:C[k]>v0&&(C[k]=v0),C[0]===C[1]){var F=Math.max(1,Math.abs(C[0]*1e-6));C[0]-=F,C[1]+=F}}},r.setScale=function(b){var A=t._size;if(r.overlaying){var C=p0.getFromId({_fullLayout:t},r.overlaying);r.domain=C.domain}var k=b&&r._r?"_r":"range",q=r.calendar;r.cleanRange(k);var D=r.r2l(r[k][0],q),R=r.r2l(r[k][1],q),z=n==="y";if(z?(r._offset=A.t+(1-r.domain[1])*A.h,r._length=A.h*(r.domain[1]-r.domain[0]),r._m=r._length/(D-R),r._b=-r._m*R):(r._offset=A.l+r.domain[0]*A.w,r._length=A.w*(r.domain[1]-r.domain[0]),r._m=r._length/(R-D),r._b=-r._m*D),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var F,I;if(r._rangebreaks=r.locateBreaks(Math.min(D,R),Math.max(D,R)),r._rangebreaks.length){for(F=0;FR&&(O=!O),O&&r._rangebreaks.reverse();var X=O?-1:1;for(r._m2=X*r._length/(Math.abs(R-D)-r._lBreaks),r._B.push(-r._m2*(z?R:D)),F=0;Fq&&(q+=7,Dq&&(q+=24,D=k&&D=k&&b=ee.min&&(ieee.max&&(ee.max=he),me=!1)}me&&R.push({min:ie,max:he})}};for(C=0;C{"use strict";var Q9=Hr(),Cm=Ie(),QU=Gt().BADNUM,x0=Cm.isArrayOrTypedArray,$U=Cm.isDateTime,jU=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&&nG(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 aG(e,r){for(var t=e.length,a=j9(t),n=0,i=0,l={},o=0;on*2}function nG(e){return x0(e[0])&&x0(e[1])}});var hf=Z((Qoe,s8)=>{"use strict";var iG=Ir(),n8=Hr(),xl=Ie(),_0=Gt().FP_SAFE,lG=br(),oG=at(),i8=Zt(),sG=i8.getFromId,uG=i8.isLinked;s8.exports={applyAutorangeOptions:o8,getAutoRange:qm,makePadFn:Dm,doAutoRange:cG,findExtremes:vG,concatExtremes:Rm};function qm(e,r){var t,a,n=[],i=e._fullLayout,l=Dm(i,r,0),o=Dm(i,r,1),s=Rm(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return xl.simpleMap(r.range,r.r2l);var v=u[0].val,h=f[0].val;for(t=1;t0&&(R=T-l(C)-o(k),R>b?z/R>A&&(q=C,D=k,A=z/R):z/T>A&&(q={val:C.val,nopad:1},D={val:k.val,nopad:1},A=z/T));function F(U,H){return Math.max(U,o(H))}if(v===h){var I=v-1,O=v+1;if(_)if(v===0)n=[0,1];else{var X=(v>0?f:u).reduce(F,0),J=v/(1-Math.min(.5,X/T));n=v>0?[0,J]:[J,0]}else w?n=[Math.max(0,I),Math.max(1,O)]:n=[I,O]}else _?(q.val>=0&&(q={val:0,nopad:1}),D.val<=0&&(D={val:0,nopad:1})):w&&(q.val-A*l(q)<0&&(q={val:0,nopad:1}),D.val<=0&&(D={val:1,nopad:1})),A=(D.val-q.val-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,hG)}function Pm(e,r,t,a){l8(e,r,t,a,dG)}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 hG(e,r){return e<=r}function dG(e,r){return e>=r}function pG(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 mG(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=pG(t,r),a=mG(a,r),[t,a]}});var dt=Z(($oe,q8)=>{"use strict";var Mn=Ir(),It=Hr(),zs=Nt(),pf=br(),gr=Ie(),Ns=gr.strTranslate,go=Ta(),yG=cf(),mf=Er(),sn=at(),gG=Xn(),u8=Qp(),ba=Gt(),bG=ba.ONEMAXYEAR,A0=ba.ONEAVGYEAR,k0=ba.ONEMINYEAR,xG=ba.ONEMAXQUARTER,Im=ba.ONEAVGQUARTER,S0=ba.ONEMINQUARTER,_G=ba.ONEMAXMONTH,Fs=ba.ONEAVGMONTH,C0=ba.ONEMINMONTH,un=ba.ONEWEEK,Ra=ba.ONEDAY,_l=Ra/2,Mi=ba.ONEHOUR,yf=ba.ONEMIN,L0=ba.ONESEC,wG=ba.ONEMILLI,TG=ba.ONEMICROSEC,bo=ba.MINUS_SIGN,E0=ba.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=Pa(),df=P0.MID_SHIFT,xo=P0.CAP_SHIFT,gf=P0.LINE_SPACING,MG=P0.OPPOSITE_SIDE,q0=3,Ye=q8.exports={};Ye.setConvert=b0();var AG=Lm(),Ui=Zt(),kG=Ui.idSort,SG=Ui.isLinked;Ye.id2name=Ui.id2name;Ye.name2id=Ui.name2id;Ye.cleanId=Ui.cleanId;Ye.list=Ui.list;Ye.listIds=Ui.listIds;Ye.getFromId=Ui.getFromId;Ye.getFromTrace=Ui.getFromTrace;var _8=hf();Ye.getAutoRange=_8.getAutoRange;Ye.findExtremes=_8.findExtremes;var CG=1e-4;function Vm(e){var r=(e[1]-e[0])*CG;return[e[0]-r,e[1]+r]}Ye.coerceRef=function(e,r,t,a,n,i){var l=a.charAt(a.length-1),o=t._fullLayout._subplots[l+"axis"],s=a+"ref",u={};return n||(n=o[0]||(typeof i=="string"?i:i[0])),i||(i=n),o=o.concat(o.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:o.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},gr.coerce(e,r,u,s)};Ye.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Ye.coercePosition=function(e,r,t,a,n,i){var l,o,s=Ye.getRefType(a);if(s!=="range")l=gr.ensureNumber,o=t(n,i);else{var u=Ye.getFromId(r,a);i=u.fraction2r(i),o=t(n,i),l=u.cleanPos}e[n]=l(o)};Ye.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?gr.ensureNumber:Ye.getFromId(r,t).cleanPos;return a(e)};Ye.redrawComponents=function(e,r){r=r||Ye.listIds(e);var t=e._fullLayout;function a(n,i,l,o){for(var s=pf.getComponentMethod(n,i),u={},f=0;f2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Ye.saveRangeInitial=function(e,r){for(var t=Ye.list(e,"",!0),a=!1,n=0;nv*.3||u(a)||u(n))){var h=t.dtick/2;e+=e+hl){var o=Number(t.substr(1));i.exactYears>l&&o%12===0?e=Ye.tickIncrement(e,"M6","reverse")+Ra*1.5:i.exactMonths>l?e=Ye.tickIncrement(e,"M1","reverse")+Ra*15.5:e-=_l;var s=Ye.tickIncrement(e,t);if(s<=a)return s}return e}Ye.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var a=r.dtick&&It(r._tmin),n;if(a){var i=Ye.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var l=gr.simpleMap(r.range,r.r2l);n=[l[0],.8*l[0]+.2*l[1]]}if(e.range=gr.simpleMap(n,r.l2r),e._isMinor=!0,Ye.prepTicks(e,t),a){var o=It(r.dtick),s=It(e.dtick),u=o?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);o&&s?zm(u,f)?u===2*un&&f===2*Ra&&(e.dtick=un):u===2*un&&f===3*Ra?e.dtick=un:u===un&&!(r._input.minor||{}).nticks?e.dtick=Ra: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}Ye.prepTicks=function(e,r){var t=gr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?gr.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=gr.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Ye.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,l=a):(i=a,l=a);var o=e[i].value,s=e[l].value,u=Math.abs(s-o),f=t||u,v=0;f>=k0?u>=k0&&u<=bG?v=u:v=A0:t===Im&&f>=S0?u>=S0&&u<=xG?v=u:v=Im:f>=C0?u>=C0&&u<=_G?v=u:v=Fs:t===un&&f>=un?v=un:f>=Ra?v=Ra:t===_l&&f>=_l?v=_l:t===Mi&&f>=Mi&&(v=Mi);var h;v>=u&&(v=u,h=!0);var d=n+v;if(r.rangebreaks&&v>0){for(var m=84,g=0,y=0;yun&&(v=u)}(v>0||a===0)&&(e[a].periodX=n+v/2)}}Ye.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,l=r.ticklabelmode==="period",o=r.range[0]>r.range[1],s=!r.ticklabelindex||gr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=gr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(T?0:1);b--){var A=!b;b?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var C=b?r:gr.extendFlat({},r,r.minor);if(A?Ye.prepMinorTicks(C,r,t):Ye.prepTicks(C,t),C.tickmode==="array"){b?(y=[],m=p8(r,!A)):(_=[],g=p8(r,!A));continue}if(C.tickmode==="sync"){y=[],m=RG(r);continue}var k=Vm(u),q=k[0],D=k[1],R=It(C.dtick),z=a==="log"&&!(R||C.dtick.charAt(0)==="L"),F=Ye.tickFirst(C,t);if(b){if(r._tmin=F,F=D:O<=D;O=Ye.tickIncrement(O,U,f,n)){if(b&&X++,C.rangebreaks&&!f){if(O=h)break}if(y.length>d||O===I)break;I=O;var H={value:O};b?(z&&O!==(O|0)&&(H.simpleLabel=!0),i>1&&X%i&&(H.skipLabel=!0),y.push(H)):(H.minor=!0,_.push(H))}}if(!_||_.length<2)s=!1;else{var G=(_[1].value-_[0].value)*(o?-1:1);nV(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,Ve){return ze.value-Ve.value}).filter(function(ze,Ve,Ue){return Ve===0||ze.value!==Ue[Ve-1].value});var K=Q.map(function(ze,Ve){return ze.minor===void 0&&!ze.skipLabel?Ve:null}).filter(function(ze){return ze!==null});K.forEach(function(ze){s.map(function(Ve){var Ue=ze+Ve;Ue>=0&&Ue-1;se--){if(y[se].drop){y.splice(se,1);continue}y[se].value=Fm(y[se].value,r);var B=r.c2p(y[se].value);(Ae?re>B-Y:reh||Deh&&(Ue.periodX=h),Den&&hA0)r/=A0,a=n(10),e.dtick="M"+12*Ti(r,a,T0);else if(i>Fs)r/=Fs,e.dtick="M"+Ti(r,1,m8);else if(i>Ra){if(e.dtick=Ti(r,Ra,e._hasDayOfWeekBreaks?[1,2,7,14]:zG),!t){var l=Ye.getTickFormat(e),o=e.ticklabelmode==="period";o&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=gr.dateTick0(e.calendar,2):e.tick0=gr.dateTick0(e.calendar,1),o&&(e._dowTick0=e.tick0)}}else i>Mi?e.dtick=Ti(r,Mi,m8):i>yf?e.dtick=Ti(r,yf,y8):i>L0?e.dtick=Ti(r,L0,y8):(a=n(10),e.dtick=Ti(r,a,T0))}else if(e.type==="log"){e.tick0=0;var s=gr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+Ti(r,a,T0)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):Xm(e)?(e.tick0=0,a=1,e.dtick=Ti(r,a,NG)):(e.tick0=0,a=n(10),e.dtick=Ti(r,a,T0));if(e.dtick===0&&(e.dtick=1),!It(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function A8(e){var r=e.dtick;if(e._tickexponent=0,!It(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.substr(5)!=="01-01"?e._tickround="d":e._tickround=+r.substr(1)%12===0?"y":"m";else if(r>=Ra&&n<=10||r>=Ra*15)e._tickround="d";else if(r>=yf&&n<=16||r>=Mi)e._tickround="M";else if(r>=L0&&n<=19||r>=yf)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(It(r)||r.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);It(r)||(r=Number(r.substr(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var o=Math.max(Math.abs(l[0]),Math.abs(l[1])),s=Math.floor(Math.log(o)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(D0(e.exponentformat)&&!Wm(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Ye.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(It(r))return gr.increment(e,n*r);var i=r.charAt(0),l=n*Number(r.substr(1));if(i==="M")return gr.incrementMonth(e,l,a);if(i==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(i==="D"){var o=r==="D2"?M8:T8,s=e+n*.01,u=gr.roundUp(gr.mod(s,1),o,t);return Math.floor(s)+Math.log(Mn.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Ye.tickFirst=function(e,r){var t=e.r2l||Number,a=gr.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&_<=e._length?y:null};if(i&&gr.isArrayOrTypedArray(e.ticktext)){var v=gr.simpleMap(e.range,e.r2l),h=(Math.abs(v[1]-v[0])-(e._lBreaks||0))/1e4;for(u=0;u"+o;else{var u=xf(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(l+="
")}r.text=l}function IG(e,r,t,a,n){var i=e.dtick,l=r.x,o=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),o||s==="L")r.text=bf(Math.pow(10,l),e,n,a);else if(It(i)||s==="D"&&(e.minorloglabels==="complete"||gr.mod(l+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(gr.mod(l+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,l).toExponential(0),v=f.split("e"),h=+v[1],d=Math.abs(h),m=e.exponentformat;m==="power"||D0(m)&&Wm(h)?(r.text=v[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),h!==0&&h!==1&&(r.text+=""+(h>0?"":bo)+d+""),r.fontSize*=1.25):(m==="e"||m==="E")&&d>2?r.text=v[0]+m+(h>0?"+":bo)+d:(r.text=bf(Math.pow(10,l),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,gr.mod(l,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var g=String(r.text).charAt(0);(g==="0"||g==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(l<0?.5:.25)))}}function HG(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function OG(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 BG(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=bf(r.x,e,n,a)}function YG(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=UG(i);if(l[1]>=100)r.text=bf(gr.deg2rad(r.x),e,n,a);else{var o=r.x<0;l[1]===1?l[0]===1?r.text="\u03C0":r.text=l[0]+"\u03C0":r.text=["",l[0],"","\u2044","",l[1],"","\u03C0"].join(""),o&&(r.text=bo+r.text)}}}else r.text=bf(r.x,e,n,a)}function UG(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 GG=["f","p","n","\u03BC","m","","k","M","G","T"];function D0(e){return e==="SI"||e==="B"}function Wm(e){return e>14||e<-15}function bf(e,r,t,a){var n=e<0,i=r._tickround,l=t||r.exponentformat||"B",o=r._tickexponent,s=Ye.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:l,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:It(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};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+=GG[o/3+5])}return n?bo+e:e}Ye.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Fs}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var v=f.indexOf(s.charAt(0)),h=f.indexOf(u.charAt(0));return v===h?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):v-h}else return typeof s=="number"?1:-1}function n(s,u,f){var v=f||function(m){return m},h=u[0],d=u[1];return(!h&&typeof h!="number"||v(h)<=v(s))&&(!d&&typeof d!="number"||v(d)>=v(s))}function i(s,u){var f=u[0]===null,v=u[1]===null,h=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||h)&&(v||d)}var l,o;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var o={false:{left:0,right:0}};return gr.syncOrAsync(n.map(function(s){return function(){if(s){var u=Ye.getFromId(e,s);t||(t={}),t.axShifts=o,t.overlayingShiftedAx=l;var f=Ye.drawOne(e,u,t);return u._shiftPusher&&Gm(u,u._fullDepth||0,o,!0),u._r=u.range.slice(),u._rl=gr.simpleMap(u._r,u.r2l),f}}}))};Ye.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,l,o;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),v=Ye.counterLetter(u),h=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!h)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var m=r.linewidth/2||0;r.ticks==="inside"&&(m+=r.ticklen),Gm(r,m,a,!0),Gm(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=aV(r,a));var g=h[f+"axislayer"],y=r._mainLinePosition,_=y+=r._shift,w=r._mainMirrorPosition,T=r._vals=Ye.calcTicks(r),b=[r.mirror,_,w].join("_");for(i=0;i0?De.bottom-Ve:0,Ue))));var Te=0,Xe=0;if(r._shiftPusher&&(Te=Math.max(Ue,De.height>0?Ee==="l"?Ve-De.left:De.right-Ve:0),r.title.text!==s._dfltTitle[f]&&(Xe=(r._titleStandoff||0)+(r._titleScoot||0),Ee==="l"&&(Xe+=b8(r))),r._fullDepth=Math.max(Te,Xe)),r.automargin){He={x:0,y:0,r:0,l:0,t:0,b:0};var cr=[0,1],fr=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Ee==="b"?He[Ee]=r._depth:(He[Ee]=r._depth=Math.max(De.width>0?Ve-De.top:0,Ue),cr.reverse()),De.width>0){var le=De.right-(r._offset+r._length);le>0&&(He.xr=1,He.r=le);var Se=r._offset-De.left;Se>0&&(He.xl=0,He.l=Se)}}else if(Ee==="l"?(r._depth=Math.max(De.height>0?Ve-De.left:0,Ue),He[Ee]=r._depth-fr):(r._depth=Math.max(De.height>0?De.right-Ve:0,Ue),He[Ee]=r._depth+fr,cr.reverse()),De.height>0){var Fe=De.bottom-(r._offset+r._length);Fe>0&&(He.yb=0,He.b=Fe);var We=r._offset-De.top;We>0&&(He.yt=1,He.t=We)}He[v]=r.anchor==="free"?r.position:r._anchorAxis.domain[cr[0]],r.title.text!==s._dfltTitle[f]&&(He[Ee]+=b8(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Oe={x:0,y:0,r:0,l:0,t:0,b:0},Oe[ze]=r.linewidth,r.mirror&&r.mirror!==!0&&(Oe[ze]+=Ue),r.mirror===!0||r.mirror==="ticks"?Oe[v]=r._anchorAxis.domain[cr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Oe[v]=[r._counterDomainMin,r._counterDomainMax][cr[1]]))}Ne&&(ne=pf.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(g8(He,r.automargin),g8(Oe,r.automargin)),zs.autoMargin(e,Zm(r),He),zs.autoMargin(e,C8(r),Oe),zs.autoMargin(e,L8(r),ne)}),gr.syncOrAsync(ye)}};function g8(e,r){if(e){var t=Object.keys(c8).reduce(function(a,n){return r.indexOf(n)!==-1&&c8[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function VG(e,r){var t=[],a,n=function(i,l){var o=i.xbnd[l];o!==null&&t.push(gr.extendFlat({},i,{x:o}))};if(r.length){for(a=0;ae.range[1],o=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!o;if(t){var u=l?-1:1;t=t*u}if(a){var f=e.side,v=o&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*v}return e._id.charAt(0)==="x"?function(h){return Ns(n+e._offset+e.l2p(Ym(h))+t,i+a)}:function(h){return Ns(i+a,n+e._offset+e.l2p(Ym(h))+t)}};function Ym(e){return e.periodX!==void 0?e.periodX:e.x}function JG(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(m){return r.indexOf(m)!==-1},n=a("top"),i=a("left"),l=a("right"),o=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(o||i||n||l);if(!u&&!s)return[0,0];var f=e.side,v=u?(e.tickwidth||0)/2:0,h=q0,d=e.tickfont?e.tickfont.size:12;return(o||n)&&(v+=d*xo,h+=(e.linewidth||0)/2),(i||l)&&(v+=(e.linewidth||0)/2,h+=q0),s&&f==="top"&&(h-=d*(1-xo)),(i||n)&&(v=-v),(f==="bottom"||f==="right")&&(h=-h),[u?v:0,s?h:0]}Ye.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,l=e._id.charAt(0),o=(e.linewidth||1)/2;return l==="x"?"M0,"+(r+o*t)+"v"+i*t:"M"+(r+o*t)+",0h"+i*t};Ye.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(I){return a.indexOf(I)!==-1},l=i("top"),o=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||o||l||s),v=i("inside"),h=a==="inside"&&e.ticks==="inside"||!v&&e.ticks==="outside"&&n!=="boundaries",d=0,m=0,g=h?e.ticklen:0;if(v?g*=-1:f&&(g=0),h&&(d+=g,t)){var y=gr.deg2rad(t);d=g*Math.cos(y)+1,m=g*Math.sin(y)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(v?-1:1);var _={labelStandoff:d,labelShift:m},w,T,b,A,C=0,k=e.side,q=e._id.charAt(0),D=e.tickangle,R;if(q==="x")R=!v&&k==="bottom"||v&&k==="top",A=R?1:-1,v&&(A*=-1),w=m*A,T=r+d*A,b=R?1:-.2,Math.abs(D)===90&&(v?b+=df:D===-90&&k==="bottom"?b=xo:D===90&&k==="top"?b=df:b=.5,C=df/2*(D/90)),_.xFn=function(I){return I.dx+w+C*I.fontSize},_.yFn=function(I){return I.dy+T+I.fontSize*b},_.anchorFn=function(I,O){if(f){if(o)return"end";if(s)return"start"}return!It(O)||O===0||O===180?"middle":O*A<0!==v?"end":"start"},_.heightFn=function(I,O,X){return O<-60||O>60?-.5*X:e.side==="top"!==v?-X:0};else if(q==="y"){if(R=!v&&k==="left"||v&&k==="right",A=R?1:-1,v&&(A*=-1),w=d,T=m*A,b=0,!v&&Math.abs(D)===90&&(D===-90&&k==="left"||D===90&&k==="right"?b=xo:b=.5),v){var z=It(D)?+D:0;if(z!==0){var F=gr.deg2rad(z);C=Math.abs(Math.sin(F))*xo*A,b=0}}_.xFn=function(I){return I.dx+r-(w+I.fontSize*b)*A+C*I.fontSize},_.yFn=function(I){return I.dy+T+I.fontSize*df},_.anchorFn=function(I,O){return It(O)&&Math.abs(O)===90?"middle":R?"end":"start"},_.heightFn=function(I,O,X){return e.side==="right"&&(O*=-1),O<-30?-X:O<30?-.5*X:0}}return _};function R0(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Ye.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(r.ticks?t.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,R0);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(l){return mf.stroke(Mn.select(this),l.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(l){return sn.crispRound(e,l.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),z0(r,[x8]),i.attr("transform",t.transFn)};Ye.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(_){return _.minor}):[],l=r.showgrid?t.vals.filter(function(_){return!_.minor}):[],o=t.counterAxis;if(o&&Ye.shouldShowZeroLine(e,r,o))for(var s=r.tickmode==="array",u=0;u=0;m--){var g=m?h:d;if(g){var y=g.selectAll("path."+a).data(m?l:i,R0);y.exit().remove(),y.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(_){return mf.stroke(Mn.select(this),_.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(_){return sn.dashStyle(_.minor?r.minor.griddash:r.griddash,_.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(_){return(_.minor?v:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}z0(r,[Om,Bm])}};Ye.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Ye.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(l,o){return kG(l.id,o.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(mf.stroke,r.zerolinecolor||mf.defaultLine).style("stroke-width",sn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),z0(r,[Hm])};Ye.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",l=t.cls||n+"tick",o=t.vals.filter(function(G){return G.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[l],v=t.layer.selectAll("g."+l).data(r.showticklabels?o:[],R0),h=[];v.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(G){var Q=Mn.select(this),K=e._promises.length;Q.call(go.positionText,s.xFn(G),s.yFn(G)).call(sn.font,{family:G.font,size:G.fontSize,color:G.fontColor,weight:G.fontWeight,style:G.fontStyle,variant:G.fontVariant,textcase:G.fontTextcase,lineposition:G.fontLineposition,shadow:G.fontShadow}).text(G.text).call(go.convertToTspans,e),e._promises[K]?h.push(e._promises.pop().then(function(){d(Q,u)})):d(Q,u)}),z0(r,[f8]),v.exit().remove(),t.repositionOnUpdate&&v.each(function(G){Mn.select(this).select("text").call(go.positionText,s.xFn(G),s.yFn(G))});function d(G,Q){G.each(function(K){var ie=Mn.select(this),he=ie.select(".text-math-group"),me=s.anchorFn(K,Q),ke=t.transFn.call(ie.node(),K)+(It(Q)&&+Q!=0?" rotate("+Q+","+s.xFn(K)+","+(s.yFn(K)-K.fontSize/2)+")":""),ee=go.lineCount(ie),Le=gf*K.fontSize,fe=s.heightFn(K,It(Q)?+Q:0,(ee-1)*Le);if(fe&&(ke+=Ns(0,fe)),he.empty()){var be=ie.select("text");be.attr({transform:ke,"text-anchor":me}),be.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var se=sn.bBox(he.node()).width,Ae=se*{end:-.5,start:.5}[me];he.attr("transform",ke+Ns(Ae,0))}})}r._adjustTickLabelsOverflow=function(){var G=r.ticklabeloverflow;if(!(!G||G==="allow")){var Q=G.indexOf("hide")!==-1,K=r._id.charAt(0)==="x",ie=0,he=K?e._fullLayout.width:e._fullLayout.height;if(G.indexOf("domain")!==-1){var me=gr.simpleMap(r.range,r.r2l);ie=r.l2p(me[0])+r._offset,he=r.l2p(me[1])+r._offset}var ke=Math.min(ie,he),ee=Math.max(ie,he),Le=r.side,fe=1/0,be=-1/0;v.each(function(re){var B=Mn.select(this),ge=B.select(".text-math-group");if(ge.empty()){var Me=sn.bBox(B.node()),ye=0;K?(Me.right>ee||Me.leftee||Me.top+(r.tickangle?0:re.fontSize/4)r["_visibleLabelMin_"+me._id]?B.style("display","none"):ee.K==="tick"&&!ke&&B.node().style.display!=="none"&&B.style("display",null)})})})})},d(v,f+1?f:u);function m(){return h.length&&Promise.all(h)}var g=null;function y(){if(d(v,u),o.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){g=r.autotickangles[0];var G=0,Q=[],K,ie=1;v.each(function(He){G=Math.max(G,He.fontSize);var Oe=r.l2p(He.x),ne=Um(this),Te=sn.bBox(ne.node());ie=Math.max(ie,go.lineCount(ne)),Q.push({top:0,bottom:10,height:10,left:Oe-Te.width/2,right:Oe+Te.width/2+2,width:Te.width+2})});var he=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,me=o.length,ke=Math.abs((o[me-1].x-o[0].x)*r._m)/(me-1),ee=he?ke/2:ke,Le=he?r.ticklen:G*1.25*ie,fe=Math.sqrt(Math.pow(ee,2)+Math.pow(Le,2)),be=ee/fe,se=r.autotickangles.map(function(He){return He*Math.PI/180}),Ae=se.find(function(He){return Math.abs(Math.cos(He))<=be});Ae===void 0&&(Ae=se.reduce(function(He,Oe){return Math.abs(Math.cos(He))J*X&&(F=X,D[q]=R[q]=I[q])}var U=Math.abs(F-z);U-A>0?(U-=A,A*=1+A/U):A=0,r._id.charAt(0)!=="y"&&(A=-A),D[k]=T.p2r(T.r2p(R[k])+C*A),T.autorange==="min"||T.autorange==="max reversed"?(D[0]=null,T._rangeInitial0=void 0,T._rangeInitial1=void 0):(T.autorange==="max"||T.autorange==="min reversed")&&(D[1]=null,T._rangeInitial0=void 0,T._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[T._name+".range"]=D}var H=gr.syncOrAsync(_);return H&&H.then&&e._promises.push(H),H};function KG(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,R0);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(mf.stroke,r.dividercolor).style("stroke-width",sn.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Ye.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function b8(e){var r=e.title.font.size,t=(e.title.text.match(go.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(xo+t*gf):t?r*(t+1)*gf:r}function QG(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,l,o=(r.title.text.match(go.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?l=r._depth+r.title.standoff+i*xo:(r.side==="top"||r.side==="left")&&(l=r._depth+r.title.standoff+i*(df+o*gf));else{var s=xf(r);if(r.type==="multicategory")l=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),l=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?l+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):l+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Ye.getPxPosition(e,r),v,h,d;n==="x"?(h=r._offset+r._length/2,d=r.side==="top"?f-l:f+l):(d=r._offset+r._length/2,h=r.side==="right"?f+l:f-l,v={rotate:"-90",offset:0});var m;if(r.type!=="multicategory"){var g=r._selections[r._id+"tick"];if(m={selection:g,side:r.side},g&&g.node()&&g.node().parentNode){var y=sn.getTranslate(g.node().parentNode);m.offsetLeft=y.x,m.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=l,yG.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:m,transform:v,attributes:{x:h,y:d,"text-anchor":"middle"}})}Ye.shouldShowZeroLine=function(e,r,t){var a=gr.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===E0)&&(S8(r,0)||!$G(e,r,t,a)||jG(e,r))};Ye.clipEnds=function(e,r){return r.filter(function(t){return S8(e,t.x)})};function S8(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=TG:/%L/.test(r)?e>=wG:/%[SX]/.test(r)?e>=L0:/%M/.test(r)?e>=yf:/%[HI]/.test(r)?e>=Mi:/%p/.test(r)?e>=_l:/%[Aadejuwx]/.test(r)?e>=Ra:/%[UVW]/.test(r)?e>=un:/%[Bbm]/.test(r)?e>=C0:/%[q]/.test(r)?e>=S0:/%[Yy]/.test(r)?e>=k0:!0}});var E8=Z((joe,D8)=>{"use strict";D8.exports=function(r,t,a){var n,i;if(a){var l=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[l?1:0],i=a[l?0:1]}var o=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);o===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var Jm=Z((ese,P8)=>{"use strict";var iV=E8();P8.exports=function(r,t,a,n){var i=t._template||{},l=t.type||i.type||"-";a("minallowed"),a("maxallowed");var o=a("range");if(!o){var s;!n.noInsiderange&&l!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(o=a("range",s)))}var u=t.getAutorangeDflt(o,n),f=a("autorange",u),v;o&&(o[0]===null&&o[1]===null||(o[0]===null||o[1]===null)&&(f==="reversed"||f===!0)||o[0]!==null&&(f==="min"||f==="max reversed")||o[1]!==null&&(f==="max"||f==="min reversed"))&&(o=void 0,delete t.range,t.autorange=!0,v=!0),v||(u=t.getAutorangeDflt(o,n),f=a("autorange",u)),f&&(iV(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var z8=Z((rse,R8)=>{var lV={left:0,top:0};R8.exports=oV;function oV(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=sV(r);return t[0]=a-i.left,t[1]=n-i.top,t}function sV(e){return e===window||e===document||e===document.body?lV:e.getBoundingClientRect()}});var Km=Z((tse,N8)=>{"use strict";var uV=Ap();function fV(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}N8.exports=uV&&fV()});var I8=Z((ase,F8)=>{"use strict";F8.exports=function(r,t,a,n,i){var l=(r-a)/(n-a),o=l+t/(n-a),s=(l+o)/2;return i==="left"||i==="bottom"?l:i==="center"||i==="middle"?s:i==="right"||i==="top"?o:l<2/3-s?l:o>4/3-s?o:s}});var B8=Z((nse,O8)=>{"use strict";var H8=Ie(),cV=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];O8.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=H8.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=H8.constrain(Math.floor(t*3),0,2),cV[t][r]}});var U8=Z((ise,Y8)=>{"use strict";var vV=rf(),hV=zv(),dV=Wu().getGraphDiv,pV=Yu(),Qm=Y8.exports={};Qm.wrapped=function(e,r,t){e=dV(e),e._fullLayout&&hV.clear(e._fullLayout._uid+pV.HOVERID),Qm.raw(e,r,t)};Qm.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&vV.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var Qn=Z((lse,Z8)=>{"use strict";var mV=z8(),$m=Sp(),yV=Km(),gV=Ie().removeElement,bV=ya(),_o=Z8.exports={};_o.align=I8();_o.getCursor=B8();var V8=U8();_o.unhover=V8.wrapped;_o.unhoverRaw=V8.raw;_o.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,l,o,s,u,f,v,h,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,yV?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function m(T,b,A){return Math.abs(T)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var b;v.target===h?b=v:(b={target:h,srcElement:h,toElement:h},Object.keys(v).concat(Object.keys(v.__proto__)).forEach(A=>{var C=v[A];!b[A]&&typeof C!="function"&&(b[A]=C)})),r.clickFn&&r.clickFn(a,b),d||h.dispatchEvent(new MouseEvent("click",T))}t._dragging=!1,t._dragged=!1}};function W8(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}_o.coverSlip=W8;function G8(e){return mV(e.changedTouches?e.changedTouches[0]:e,document.body)}});var wl=Z((ose,X8)=>{"use strict";X8.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var Q8=Z((sse,K8)=>{"use strict";var jm=wl(),_f="data-savedcursor",J8="!!";K8.exports=function(r,t){var a=r.attr(_f);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var ey=ma(),xV=hi();$8.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:xV.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:ey({editType:"legend"}),grouptitlefont:ey({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:ey({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var F0=Z(N0=>{"use strict";N0.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};N0.isVertical=function(r){return r.orientation!=="h"};N0.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1}});var ny=Z((cse,j8)=>{"use strict";var ty=br(),fn=Ie(),_V=ct(),wV=Gn(),TV=ry(),MV=ds(),ay=F0();function AV(e,r,t,a){var n=r[e]||{},i=_V.newContainer(t,e);function l(U,H){return fn.coerce(n,i,TV,U,H)}var o=fn.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var s=l("visible");if(s){for(var u,f=function(U,H){var G=u._input,Q=u;return fn.coerce(G,Q,wV,U,H)},v=t.font||{},h=fn.coerceFont(l,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),d=0,m=!1,g="normal",y=(t.shapes||[]).filter(function(U){return U.showlegend}),_=a.concat(y).filter(function(U){return e===(U.legend||"legend")}),w=0;w<_.length;w++)if(u=_[w],!!u.visible){var T=u._isShape;(u.showlegend||u._dfltShowLegend&&!(u._module&&u._module.attributes&&u._module.attributes.showlegend&&u._module.attributes.showlegend.dflt===!1))&&(d++,u.showlegend&&(m=!0,(!T&&ty.traceIs(u,"pie-like")||u._input.showlegend===!0)&&d++),fn.coerceFont(f,"legendgrouptitle.font",h)),(!T&&ty.traceIs(u,"bar")&&t.barmode==="stack"||["tonextx","tonexty"].indexOf(u.fill)!==-1)&&(g=ay.isGrouped({traceorder:g})?"grouped+reversed":"reversed"),u.legendgroup!==void 0&&u.legendgroup!==""&&(g=ay.isReversed({traceorder:g})?"reversed+grouped":"grouped")}var b=fn.coerce(r,t,MV,"showlegend",m&&d>(e==="legend"?1:0));if(b===!1&&(t[e]=void 0),!(b===!1&&!n.uirevision)&&(l("uirevision",t.uirevision),b!==!1)){l("borderwidth");var A=l("orientation"),C=l("yref"),k=l("xref"),q=A==="h",D=C==="paper",R=k==="paper",z,F,I,O="left";q?(z=0,ty.getComponentMethod("rangeslider","isVisible")(r.xaxis)?D?(F=1.1,I="bottom"):(F=1,I="top"):D?(F=-.1,I="top"):(F=0,I="bottom")):(F=1,I="auto",R?z=1.02:(z=1,O="right")),fn.coerce(n,i,{x:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:z}},"x"),fn.coerce(n,i,{y:{valType:"number",editType:"legend",min:D?-2:0,max:D?3:1,dflt:F}},"y"),l("traceorder",g),ay.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",O),l("yanchor",I),l("maxheight",q?.5:1),l("valign"),fn.noneOrAll(n,i,["x","y"]);var X=l("title.text");if(X){l("title.side",q?"left":"top");var J=fn.extendFlat({},o,{size:fn.bigFont(o.size)});fn.coerceFont(l,"title.font",J)}}}}j8.exports=function(r,t,a){var n,i=a.slice(),l=t.shapes;if(l)for(n=0;n{"use strict";var Is=br(),ly=Ie(),kV=ly.pushUnique,iy=!0;ew.exports=function(r,t,a){var n=t._fullLayout;if(t._dragged||t._editing)return;var i=n.legend.itemclick,l=n.legend.itemdoubleclick,o=n.legend.groupclick;a===1&&i==="toggle"&&l==="toggleothers"&&iy&&t.data&&t._context.showTips&&ly.notifier(ly._(t,"Double-click on legend to isolate one trace"),"long"),iy=!1;var s;if(a===1?s=i:a===2&&(s=l),!s)return;var u=o==="togglegroup",f=n.hiddenlabels?n.hiddenlabels.slice():[],v=r.data()[0][0];if(v.groupTitle&&v.noClick)return;var h=t._fullData,d=(n.shapes||[]).filter(function(ze){return ze.showlegend}),m=h.concat(d),g=v.trace;g._isShape&&(g=g._fullInput);var y=g.legendgroup,_,w,T,b,A,C,k={},q=[],D=[],R=[];function z(ze,Ve){var Ue=q.indexOf(ze),De=k.visible;return De||(De=k.visible=[]),q.indexOf(ze)===-1&&(q.push(ze),Ue=q.length-1),De[Ue]=Ve,Ue}var F=(n.shapes||[]).map(function(ze){return ze._input}),I=!1;function O(ze,Ve){F[ze].visible=Ve,I=!0}function X(ze,Ve){if(!(v.groupTitle&&!u)){var Ue=ze._fullInput||ze,De=Ue._isShape,He=Ue.index;He===void 0&&(He=Ue._index);var Oe=Ue.visible===!1?!1:Ve;De?O(He,Oe):z(He,Oe)}}var J=g.legend,U=g._fullInput,H=U&&U._isShape;if(!H&&Is.traceIs(g,"pie-like")){var G=v.label,Q=f.indexOf(G);if(s==="toggle")Q===-1?f.push(G):f.splice(Q,1);else if(s==="toggleothers"){var K=Q!==-1,ie=[];for(_=0;_{"use strict";tw.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var iw=Z((dse,nw)=>{"use strict";var aw=br(),sy=F0();nw.exports=function(r,t,a){var n=t._inHover,i=sy.isGrouped(t),l=sy.isReversed(t),o={},s=[],u=!1,f={},v=0,h=0,d,m;function g(U,H,G){if(t.visible!==!1&&!(a&&U!==t._id))if(H===""||!sy.isGrouped(t)){var Q="~~i"+v;s.push(Q),o[Q]=[G],v++}else s.indexOf(H)===-1?(s.push(H),u=!0,o[H]=[G]):o[H].push(G)}for(d=0;dR&&(D=R)}k[d][0]._groupMinRank=D,k[d][0]._preGroupSort=d}var z=function(U,H){return U[0]._groupMinRank-H[0]._groupMinRank||U[0]._preGroupSort-H[0]._preGroupSort},F=function(U,H){return U.trace.legendrank-H.trace.legendrank||U._preSort-H._preSort};for(k.forEach(function(U,H){U[0]._preGroupSort=H}),k.sort(z),d=0;d{"use strict";var I0=Ie();function lw(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}wo.formatPiePercent=function(r,t){var a=lw((r*100).toPrecision(3));return I0.numSeparate(a,t)+"%"};wo.formatPieValue=function(r,t){var a=lw(r.toPrecision(10));return I0.numSeparate(a,t)};wo.getFirstFilled=function(r,t){if(I0.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var SV=at(),CV=Er();ow.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?SV.pointStyle(r,a,n,t):CV.fill(r,t.color)}});var O0=Z((yse,cw)=>{"use strict";var uw=Er(),fw=H0().castOption,LV=sw();cw.exports=function(r,t,a,n){var i=a.marker.line,l=fw(i.color,t.pts)||uw.defaultLine,o=fw(i.width,t.pts)||0;r.call(LV,t,a,n).style("stroke-width",o).call(uw.stroke,l)}});var vy=Z((gse,yw)=>{"use strict";var za=Ir(),uy=br(),Aa=Ie(),vw=Aa.strTranslate,cn=at(),An=Er(),fy=Tn().extractOpts,B0=on(),qV=O0(),DV=H0().castOption,EV=oy(),hw=12,dw=5,To=2,PV=10,Hs=5;yw.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",l=a.itemwidth,o=(l+EV.itemGap*2)/2,s=vw(o,0),u=function(k,q,D,R){var z;if(k+1)z=k;else if(q&&q.width>0)z=q.width;else return 0;return i?R:Math.min(z,D)};r.each(function(k){var q=za.select(this),D=Aa.ensureSingle(q,"g","layers");D.style("opacity",k[0].trace.opacity);var R=a.indentation,z=a.valign,F=k[0].lineHeight,I=k[0].height;if(z==="middle"&&R===0||!F||!I)D.attr("transform",null);else{var O={top:1,bottom:-1}[z],X=O*(.5*(F-I+3))||0,J=a.indentation;D.attr("transform",vw(J,X))}var U=D.selectAll("g.legendfill").data([k]);U.enter().append("g").classed("legendfill",!0);var H=D.selectAll("g.legendlines").data([k]);H.enter().append("g").classed("legendlines",!0);var G=D.selectAll("g.legendsymbols").data([k]);G.enter().append("g").classed("legendsymbols",!0),G.selectAll("g.legendpoints").data([k]).enter().append("g").classed("legendpoints",!0)}).each(C).each(h).each(m).each(d).each(y).each(b).each(T).each(f).each(v).each(_).each(w);function f(k){var q=pw(k),D=q.showFill,R=q.showLine,z=q.showGradientLine,F=q.showGradientFill,I=q.anyFill,O=q.anyLine,X=k[0],J=X.trace,U,H,G=fy(J),Q=G.colorscale,K=G.reversescale,ie=function(be){if(be.size())if(D)cn.fillGroupStyle(be,t,!0);else{var se="legendfill-"+J.uid;cn.gradient(be,t,se,cy(K),Q,"fill")}},he=function(be){if(be.size()){var se="legendline-"+J.uid;cn.lineGroupStyle(be),cn.gradient(be,t,se,cy(K),Q,"stroke")}},me=B0.hasMarkers(J)||!I?"M5,0":O?"M5,-2":"M5,-3",ke=za.select(this),ee=ke.select(".legendfill").selectAll("path").data(D||F?[k]:[]);if(ee.enter().append("path").classed("js-fill",!0),ee.exit().remove(),ee.attr("d",me+"h"+l+"v6h-"+l+"z").call(ie),R||z){var Le=u(void 0,J.line,PV,dw);H=Aa.minExtend(J,{line:{width:Le}}),U=[Aa.minExtend(X,{trace:H})]}var fe=ke.select(".legendlines").selectAll("path").data(R||z?[U]:[]);fe.enter().append("path").classed("js-line",!0),fe.exit().remove(),fe.attr("d",me+(z?"l"+l+",0.0001":"h"+l)).call(R?cn.lineGroupStyle:he)}function v(k){var q=pw(k),D=q.anyFill,R=q.anyLine,z=q.showLine,F=q.showMarker,I=k[0],O=I.trace,X=!F&&!R&&!D&&B0.hasText(O),J,U;function H(ee,Le,fe,be){var se=Aa.nestedProperty(O,ee).get(),Ae=Aa.isArrayOrTypedArray(se)&&Le?Le(se):se;if(i&&Ae&&be!==void 0&&(Ae=be),fe){if(Aefe[1])return fe[1]}return Ae}function G(ee){return I._distinct&&I.index&&ee[I.index]?ee[I.index]:ee[0]}if(F||X||z){var Q={},K={};if(F){Q.mc=H("marker.color",G),Q.mx=H("marker.symbol",G),Q.mo=H("marker.opacity",Aa.mean,[.2,1]),Q.mlc=H("marker.line.color",G),Q.mlw=H("marker.line.width",Aa.mean,[0,5],To),K.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ie=H("marker.size",Aa.mean,[2,16],hw);Q.ms=ie,K.marker.size=ie}z&&(K.line={width:H("line.width",G,[0,10],dw)}),X&&(Q.tx="Aa",Q.tp=H("textposition",G),Q.ts=10,Q.tc=H("textfont.color",G),Q.tf=H("textfont.family",G),Q.tw=H("textfont.weight",G),Q.ty=H("textfont.style",G),Q.tv=H("textfont.variant",G),Q.tC=H("textfont.textcase",G),Q.tE=H("textfont.lineposition",G),Q.tS=H("textfont.shadow",G)),J=[Aa.minExtend(I,Q)],U=Aa.minExtend(O,K),U.selectedpoints=null,U.texttemplate=null}var he=za.select(this).select("g.legendpoints"),me=he.selectAll("path.scatterpts").data(F?J:[]);me.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),me.exit().remove(),me.call(cn.pointStyle,U,t),F&&(J[0].mrc=3);var ke=he.selectAll("g.pointtext").data(X?J:[]);ke.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),ke.exit().remove(),ke.selectAll("text").call(cn.textPointStyle,U,t)}function h(k){var q=k[0].trace,D=q.type==="waterfall";if(k[0]._distinct&&D){var R=k[0].trace[k[0].dir].marker;return k[0].mc=R.color,k[0].mlw=R.line.width,k[0].mlc=R.line.color,g(k,this,"waterfall")}var z=[];q.visible&&D&&(z=k[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var F=za.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(z);F.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(I){var O=za.select(this),X=q[I[0]].marker,J=u(void 0,X.line,Hs,To);O.attr("d",I[1]).style("stroke-width",J+"px").call(An.fill,X.color),J&&O.call(An.stroke,X.line.color)})}function d(k){g(k,this)}function m(k){g(k,this,"funnel")}function g(k,q,D){var R=k[0].trace,z=R.marker||{},F=z.line||{},I=z.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",O=D?R.visible&&R.type===D:uy.traceIs(R,"bar"),X=za.select(q).select("g.legendpoints").selectAll("path.legend"+D).data(O?[k]:[]);X.enter().append("path").classed("legend"+D,!0).attr("d",I).attr("transform",s),X.exit().remove(),X.each(function(J){var U=za.select(this),H=J[0],G=u(H.mlw,z.line,Hs,To);U.style("stroke-width",G+"px");var Q=H.mcc;if(!a._inHover&&"mc"in H){var K=fy(z),ie=K.mid;ie===void 0&&(ie=(K.max+K.min)/2),Q=cn.tryColorscale(z,"")(ie)}var he=Q||H.mc||z.color,me=z.pattern,ke=cn.getPatternAttr,ee=me&&(ke(me.shape,0,"")||ke(me.path,0,""));if(ee){var Le=ke(me.bgcolor,0,null),fe=ke(me.fgcolor,0,null),be=me.fgopacity,se=mw(me.size,8,10),Ae=mw(me.solidity,.5,1),Y="legend-"+R.uid;U.call(cn.pattern,"legend",t,Y,ee,se,Ae,Q,me.fillmode,Le,fe,be)}else U.call(An.fill,he);G&&An.stroke(U,H.mlc||F.color)})}function y(k){var q=k[0].trace,D=za.select(this).select("g.legendpoints").selectAll("path.legendbox").data(q.visible&&uy.traceIs(q,"box-violin")?[k]:[]);D.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),D.exit().remove(),D.each(function(){var R=za.select(this);if((q.boxpoints==="all"||q.points==="all")&&An.opacity(q.fillcolor)===0&&An.opacity((q.line||{}).color)===0){var z=Aa.minExtend(q,{marker:{size:i?hw:Aa.constrain(q.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});D.call(cn.pointStyle,z,t)}else{var F=u(void 0,q.line,Hs,To);R.style("stroke-width",F+"px").call(An.fill,q.fillcolor),F&&An.stroke(R,q.line.color)}})}function _(k){var q=k[0].trace,D=za.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(q.visible&&q.type==="candlestick"?[k,k]:[]);D.enter().append("path").classed("legendcandle",!0).attr("d",function(R,z){return z?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(R,z){var F=za.select(this),I=q[z?"increasing":"decreasing"],O=u(void 0,I.line,Hs,To);F.style("stroke-width",O+"px").call(An.fill,I.fillcolor),O&&An.stroke(F,I.line.color)})}function w(k){var q=k[0].trace,D=za.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(q.visible&&q.type==="ohlc"?[k,k]:[]);D.enter().append("path").classed("legendohlc",!0).attr("d",function(R,z){return z?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(R,z){var F=za.select(this),I=q[z?"increasing":"decreasing"],O=u(void 0,I.line,Hs,To);F.style("fill","none").call(cn.dashLine,I.line.dash,O),O&&An.stroke(F,I.line.color)})}function T(k){A(k,this,"pie")}function b(k){A(k,this,"funnelarea")}function A(k,q,D){var R=k[0],z=R.trace,F=D?z.visible&&z.type===D:uy.traceIs(z,D),I=za.select(q).select("g.legendpoints").selectAll("path.legend"+D).data(F?[k]:[]);if(I.enter().append("path").classed("legend"+D,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),I.exit().remove(),I.size()){var O=z.marker||{},X=u(DV(O.line.width,R.pts),O.line,Hs,To),J="pieLike",U=Aa.minExtend(z,{marker:{line:{width:X}}},J),H=Aa.minExtend(R,{trace:U},J);qV(I,H,U,t)}}function C(k){var q=k[0].trace,D,R=[];if(q.visible)switch(q.type){case"histogram2d":case"heatmap":R=[["M-15,-2V4H15V-2Z"]],D=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":R=[["M-6,-6V6H6V-6Z"]],D=!0;break;case"densitymapbox":case"densitymap":R=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],D="radial";break;case"cone":R=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],D=!1;break;case"streamtube":R=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],D=!1;break;case"surface":R=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],D=!0;break;case"mesh3d":R=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!1;break;case"volume":R=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!0;break;case"isosurface":R=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],D=!1;break}var z=za.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(R);z.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(F,I){var O=za.select(this),X=fy(q),J=X.colorscale,U=X.reversescale,H=function(ie){if(ie.size()){var he="legendfill-"+q.uid;cn.gradient(ie,t,he,cy(U,D==="radial"),J,"fill")}},G;if(J){if(!D){var K=J.length;G=I===0?J[U?K-1:0][1]:I===1?J[U?0:K-1][1]:J[Math.floor((K-1)/2)][1]}}else{var Q=q.vertexcolor||q.facecolor||q.color;G=Aa.isArrayOrTypedArray(Q)?Q[I]||Q[0]:Q}O.attr("d",F[0]),G?O.call(An.fill,G):O.call(H)})}};function cy(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function pw(e){var r=e[0].trace,t=r.contours,a=B0.hasLines(r),n=B0.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",l=!1,o=!1;if(t){var s=t.coloring;s==="lines"?l=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(o=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:l,showGradientFill:o,anyLine:a||l,anyFill:i||o}}function mw(e,r,t){return e&&Aa.isArrayOrTypedArray(e)?r:e>t?t:e}});var my=Z((bse,Sw)=>{"use strict";var Qa=Ir(),Ht=Ie(),dy=Nt(),Ys=br(),gw=rf(),hy=Qn(),Ot=at(),U0=Er(),Mo=Ta(),bw=rw(),Xt=oy(),py=Pa(),Aw=py.LINE_SPACING,Bs=py.FROM_TL,xw=py.FROM_BR,_w=iw(),RV=vy(),ww=F0(),Os=1,zV=/^legend[0-9]*$/;Sw.exports=function(r,t){if(t)Tw(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Qa.select(this),f=u.attr("class"),v=f.split(" ")[0];v.match(zV)&&n.indexOf(v)===-1&&u.remove()});for(var l=0;l1)}var m=a.hiddenlabels||[];if(!o&&(!a.showlegend||!s.length))return l.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),dy.autoMargin(e,n);var g=Ht.ensureSingle(l,"g",n,function(q){o||q.attr("pointer-events","all")}),y=Ht.ensureSingleById(a._topdefs,"clipPath",i,function(q){q.append("rect")}),_=Ht.ensureSingle(g,"rect","bg",function(q){q.attr("shape-rendering","crispEdges")});_.call(U0.stroke,t.bordercolor).call(U0.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var w=Ht.ensureSingle(g,"g","scrollbox"),T=t.title;t._titleWidth=0,t._titleHeight=0;var b;T.text?(b=Ht.ensureSingle(w,"text",n+"titletext"),b.attr("text-anchor","start").call(Ot.font,T.font).text(T.text),G0(b,w,e,t,Os)):w.selectAll("."+n+"titletext").remove();var A=Ht.ensureSingle(g,"rect","scrollbar",function(q){q.attr(Xt.scrollBarEnterAttrs).call(U0.fill,Xt.scrollBarColor)}),C=w.selectAll("g.groups").data(s);C.enter().append("g").attr("class","groups"),C.exit().remove();var k=C.selectAll("g.traces").data(Ht.identity);k.enter().append("g").attr("class","traces"),k.exit().remove(),k.style("opacity",function(q){var D=q[0].trace;return Ys.traceIs(D,"pie-like")?m.indexOf(q[0].label)!==-1?.5:1:D.visible==="legendonly"?.5:1}).each(function(){Qa.select(this).call(FV,e,t)}).call(RV,e,t).each(function(){o||Qa.select(this).call(IV,e,n)}),Ht.syncOrAsync([dy.previousPromises,function(){return BV(e,C,k,t)},function(){var q=a._size,D=t.borderwidth,R=t.xref==="paper",z=t.yref==="paper";if(T.text&&NV(b,t,D),!o){var F,I;R?F=q.l+q.w*t.x-Bs[V0(t)]*t._width:F=a.width*t.x-Bs[V0(t)]*t._width,z?I=q.t+q.h*(1-t.y)-Bs[W0(t)]*t._effHeight:I=a.height*(1-t.y)-Bs[W0(t)]*t._effHeight;var O=YV(e,n,F,I);if(O)return;if(a.margin.autoexpand){var X=F,J=I;F=R?Ht.constrain(F,0,a.width-t._width):X,I=z?Ht.constrain(I,0,a.height-t._effHeight):J,F!==X&&Ht.log("Constrain "+n+".x to make legend fit inside graph"),I!==J&&Ht.log("Constrain "+n+".y to make legend fit inside graph")}Ot.setTranslate(g,F,I)}if(A.on(".drag",null),g.on("wheel",null),o||t._height<=t._maxHeight||e._context.staticPlot){var U=t._effHeight;o&&(U=t._height),_.attr({width:t._width-D,height:U-D,x:D/2,y:D/2}),Ot.setTranslate(w,0,0),y.select("rect").attr({width:t._width-2*D,height:U-2*D,x:D,y:D}),Ot.setClipUrl(w,i,e),Ot.setRect(A,0,0,0,0),delete t._scrollY}else{var H=Math.max(Xt.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),G=t._effHeight-H-2*Xt.scrollBarMargin,Q=t._height-t._effHeight,K=G/Q,ie=Math.min(t._scrollY||0,Q);_.attr({width:t._width-2*D+Xt.scrollBarWidth+Xt.scrollBarMargin,height:t._effHeight-D,x:D/2,y:D/2}),y.select("rect").attr({width:t._width-2*D+Xt.scrollBarWidth+Xt.scrollBarMargin,height:t._effHeight-2*D,x:D,y:D+ie}),Ot.setClipUrl(w,i,e),se(ie,H,K),g.on("wheel",function(){ie=Ht.constrain(t._scrollY+Qa.event.deltaY/G*Q,0,Q),se(ie,H,K),ie!==0&&ie!==Q&&Qa.event.preventDefault()});var he,me,ke,ee=function(ge,Me,ye){var Re=(ye-Me)/K+ge;return Ht.constrain(Re,0,Q)},Le=function(ge,Me,ye){var Re=(Me-ye)/K+ge;return Ht.constrain(Re,0,Q)},fe=Qa.behavior.drag().on("dragstart",function(){var ge=Qa.event.sourceEvent;ge.type==="touchstart"?he=ge.changedTouches[0].clientY:he=ge.clientY,ke=ie}).on("drag",function(){var ge=Qa.event.sourceEvent;ge.buttons===2||ge.ctrlKey||(ge.type==="touchmove"?me=ge.changedTouches[0].clientY:me=ge.clientY,ie=ee(ke,he,me),se(ie,H,K))});A.call(fe);var be=Qa.behavior.drag().on("dragstart",function(){var ge=Qa.event.sourceEvent;ge.type==="touchstart"&&(he=ge.changedTouches[0].clientY,ke=ie)}).on("drag",function(){var ge=Qa.event.sourceEvent;ge.type==="touchmove"&&(me=ge.changedTouches[0].clientY,ie=Le(ke,he,me),se(ie,H,K))});w.call(be)}function se(ge,Me,ye){t._scrollY=e._fullLayout[n]._scrollY=ge,Ot.setTranslate(w,0,-ge),Ot.setRect(A,t._width,Xt.scrollBarMargin+ge*ye,Xt.scrollBarWidth,Me),y.select("rect").attr("y",D+ge)}if(e._context.edits.legendPosition){var Ae,Y,re,B;g.classed("cursor-move",!0),hy.init({element:g.node(),gd:e,prepFn:function(ge){if(ge.target!==A.node()){var Me=Ot.getTranslate(g);re=Me.x,B=Me.y}},moveFn:function(ge,Me){if(re!==void 0&&B!==void 0){var ye=re+ge,Re=B+Me;Ot.setTranslate(g,ye,Re),Ae=hy.align(ye,t._width,q.l,q.l+q.w,t.xanchor),Y=hy.align(Re+t._height,-t._height,q.t+q.h,q.t,t.yanchor)}},doneFn:function(){if(Ae!==void 0&&Y!==void 0){var ge={};ge[n+".x"]=Ae,ge[n+".y"]=Y,Ys.call("_guiRelayout",e,ge)}},clickFn:function(ge,Me){var ye=l.selectAll("g.traces").filter(function(){var Re=this.getBoundingClientRect();return Me.clientX>=Re.left&&Me.clientX<=Re.right&&Me.clientY>=Re.top&&Me.clientY<=Re.bottom});ye.size()>0&&kw(e,g,ye,ge,Me)}})}}],e)}}function Y0(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,l=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*l:t+(l||n)}function kw(e,r,t,a,n){var i=t.data()[0][0].trace,l={event:n,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(l.group=i._group),Ys.traceIs(i,"pie-like")&&(l.label=t.datum()[0].label);var o=gw.triggerHandler(e,"plotly_legendclick",l);if(a===1){if(o===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&bw(t,e,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var s=gw.triggerHandler(e,"plotly_legenddoubleclick",l);s!==!1&&o!==!1&&bw(t,e,a)}}function FV(e,r,t){var a=Z0(t),n=e.data()[0][0],i=n.trace,l=Ys.traceIs(i,"pie-like"),o=!t._inHover&&r._context.edits.legendText&&!l,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=l?n.label:i.name,i._meta&&(u=Ht.templateString(u,i._meta))));var v=Ht.ensureSingle(e,"text",a+"text");v.attr("text-anchor","start").call(Ot.font,f).text(o?Mw(u,s):u);var h=t.indentation+t.itemwidth+Xt.itemGap*2;Mo.positionText(v,h,0),o?v.call(Mo.makeEditable,{gd:r,text:u}).call(G0,e,r,t).on("edit",function(d){this.text(Mw(d,s)).call(G0,e,r,t);var m=n.trace._fullInput||{},g={};return g.name=d,m._isShape?Ys.call("_guiRelayout",r,"shapes["+i.index+"].name",g.name):Ys.call("_guiRestyle",r,g,i.index)}):G0(v,e,r,t)}function Mw(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function IV(e,r,t){var a=r._context.doubleClickDelay,n,i=1,l=Ht.ensureSingle(e,"rect",t+"toggle",function(o){r._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call(U0.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(l.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),kw(r,o,e,i,Qa.event)}}))}function G0(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),Mo.convertToTspans(e,t,function(){HV(r,t,a,n)})}function HV(e,r,t,a){var n=e.data()[0][0];if(!t._inHover&&n&&!n.trace.showlegend){e.remove();return}var i=e.select("g[class*=math-group]"),l=i.node(),o=Z0(t);t||(t=r._fullLayout[o]);var s=t.borderwidth,u;a===Os?u=t.title.font:n.groupTitle?u=n.groupTitle.font:u=t.font;var f=u.size*Aw,v,h;if(l){var d=Ot.bBox(l);v=d.height,h=d.width,a===Os?Ot.setTranslate(i,s,s+v*.75):Ot.setTranslate(i,0,v*.25)}else{var m="."+o+(a===Os?"title":"")+"text",g=e.select(m),y=Mo.lineCount(g),_=g.node();if(v=f*y,h=_?Ot.bBox(_).width:0,a===Os)t.title.side==="left"&&(h+=Xt.itemGap*2),Mo.positionText(g,s+Xt.titlePad,s+f);else{var w=Xt.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(w=Xt.itemGap,h-=t.indentation+t.itemwidth),Mo.positionText(g,w,-f*((y-1)/2-.3))}}a===Os?(t._titleWidth=h,t._titleHeight=v):(n.lineHeight=f,n.height=Math.max(v,16)+3,n.width=h)}function OV(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function BV(e,r,t,a){var n=e._fullLayout,i=Z0(a);a||(a=n[i]);var l=n._size,o=ww.isVertical(a),s=ww.isGrouped(a),u=a.entrywidthmode==="fraction",f=a.borderwidth,v=2*f,h=Xt.itemGap,d=a.indentation+a.itemwidth+h*2,m=2*(f+h),g=W0(a),y=a.y<0||a.y===0&&g==="top",_=a.y>1||a.y===1&&g==="bottom",w=a.tracegroupgap,T={},{maxheight:b,orientation:A,yref:C}=a,k=A==="v"&&C==="paper"?l.h:n.height;a._maxHeight=Math.max(b>1?b:b*k,30);var q=0;a._width=0,a._height=0;var D=OV(a);if(o)t.each(function(be){var se=be[0].height;Ot.setTranslate(this,f+D[0],f+D[1]+a._height+se/2+h),a._height+=se,a._width=Math.max(a._width,be[0].width)}),q=d+a._width,a._width+=h+d+v,a._height+=m,s&&(r.each(function(be,se){Ot.setTranslate(this,0,se*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var R=V0(a),z=a.x<0||a.x===0&&R==="right",F=a.x>1||a.x===1&&R==="left",I=_||y,O=n.width/2;a._maxWidth=Math.max(z?I&&R==="left"?l.l+l.w:O:F?I&&R==="right"?l.r+l.w:O:l.w,2*d);var X=0,J=0;t.each(function(be){var se=Y0(be,a,d);X=Math.max(X,se),J+=se}),q=null;var U=0;if(s){var H=0,G=0,Q=0;r.each(function(){var be=0,se=0;Qa.select(this).selectAll("g.traces").each(function(Y){var re=Y0(Y,a,d),B=Y[0].height;Ot.setTranslate(this,D[0],D[1]+f+h+B/2+se),se+=B,be=Math.max(be,re),T[Y[0].trace.legendgroup]=be});var Ae=be+h;G>0&&Ae+f+G>a._maxWidth?(U=Math.max(U,G),G=0,Q+=H+w,H=se):H=Math.max(H,se),Ot.setTranslate(this,G,Q),G+=Ae}),a._width=Math.max(U,G)+f,a._height=Q+H+m}else{var K=t.size(),ie=J+v+(K-1)*h=a._maxWidth&&(U=Math.max(U,ee),me=0,ke+=he,a._height+=he,he=0),Ot.setTranslate(this,D[0]+f+me,D[1]+f+ke+se/2+h),ee=me+Ae+h,me+=Y,he=Math.max(he,se)}),ie?(a._width=me+v,a._height=he+m):(a._width=Math.max(U,ee)+v,a._height+=he+m)}}a._width=Math.ceil(Math.max(a._width+D[0],a._titleWidth+2*(f+Xt.titlePad))),a._height=Math.ceil(Math.max(a._height+D[1],a._titleHeight+2*(f+Xt.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var Le=e._context.edits,fe=Le.legendText||Le.legendPosition;t.each(function(be){var se=Qa.select(this).select("."+i+"toggle"),Ae=be[0].height,Y=be[0].trace.legendgroup,re=Y0(be,a,d);s&&Y!==""&&(re=T[Y]);var B=fe?d:q||re;!o&&!u&&(B+=h/2),Ot.setRect(se,0,-Ae/2,B,Ae)})}function YV(e,r,t,a){var n=e._fullLayout,i=n[r],l=V0(i),o=W0(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",v=i.x<.5?"l":"r",h={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return dy.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*Bs[l],r:i._width*xw[l],b:i._effHeight*xw[o],t:i._effHeight*Bs[o]});s?e._fullLayout._reservedMargin[r][f]=h[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][v]=h[v]:e._fullLayout._reservedMargin[r][f]=h[f]}function V0(e){return Ht.isRightAnchor(e)?"right":Ht.isCenterAnchor(e)?"center":"left"}function W0(e){return Ht.isBottomAnchor(e)?"bottom":Ht.isMiddleAnchor(e)?"middle":"top"}function Z0(e){return e._id||"legend"}});var xy=Z(by=>{"use strict";var Ao=Ir(),Gi=Hr(),Cw=bn(),Tt=Ie(),UV=Tt.pushUnique,yy=Tt.strTranslate,GV=Tt.strRotate,VV=rf(),kn=Ta(),WV=Q8(),Ai=at(),ea=Er(),X0=Qn(),ki=dt(),ZV=ya().zindexSeparator,Gs=br(),$n=xi(),ko=Yu(),XV=ny(),JV=my(),Nw=ko.YANGLE,gy=Math.PI*Nw/180,KV=1/Math.sin(gy),QV=Math.cos(gy),$V=Math.sin(gy),pt=ko.HOVERARROWSIZE,Or=ko.HOVERTEXTPAD,Lw={box:!0,ohlc:!0,violin:!0,candlestick:!0},jV={scatter:!0,scattergl:!0,splom:!0};function qw(e,r){return e.distance-r.distance}by.hover=function(r,t,a,n){r=Tt.getGraphDiv(r);var i=t.target;Tt.throttle(r._fullLayout._uid+ko.HOVERID,ko.HOVERMINTIME,function(){eW(r,t,a,n,i)})};by.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=Bw(n),l=Yw(n),o=r.map(function(y){var _=y._x0||y.x0||y.x||0,w=y._x1||y.x1||y.x||0,T=y._y0||y.y0||y.y||0,b=y._y1||y.y1||y.y||0,A=y.eventData;if(A){var C=Math.min(_,w),k=Math.max(_,w),q=Math.min(T,b),D=Math.max(T,b),R=y.trace;if(Gs.traceIs(R,"gl3d")){var z=n._fullLayout[R.scene]._scene.container,F=z.offsetLeft,I=z.offsetTop;C+=F,k+=F,q+=I,D+=I}A.bbox={x0:C+l,x1:k+l,y0:q+i,y1:D+i},t.inOut_bbox&&t.inOut_bbox.push(A.bbox)}else A=!1;return{color:y.color||ea.defaultLine,x0:y.x0||y.x||0,x1:y.x1||y.x||0,y0:y.y0||y.y||0,y1:y.y1||y.y||0,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:y.text,name:y.name,idealAlign:y.idealAlign,borderColor:y.borderColor,fontFamily:y.fontFamily,fontSize:y.fontSize,fontColor:y.fontColor,fontWeight:y.fontWeight,fontStyle:y.fontStyle,fontVariant:y.fontVariant,nameLength:y.nameLength,textAlign:y.textAlign,trace:y.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:y.hovertemplate||!1,hovertemplateLabels:y.hovertemplateLabels||!1,eventData:A}}),s=!1,u=Iw(o,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||ea.background,container:Ao.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,v=5,h=0,d=0;f.sort(function(y,_){return y.y0-_.y0}).each(function(y,_){var w=y.y0-y.by/2;w-vk[0]._length||B<0||B>q[0]._length)return X0.unhoverRaw(e,r)}if(r.pointerX=re+k[0]._offset,r.pointerY=B+q[0]._offset,"xval"in r?J=$n.flat(i,r.xval):J=$n.p2c(k,re),"yval"in r?U=$n.flat(i,r.yval):U=$n.p2c(q,B),!Gi(J[0])||!Gi(U[0]))return Tt.warn("Fx.hover failed",r,e),X0.unhoverRaw(e,r)}var ye=1/0;function Re(yr,lt){for(G=0;Gfe&&(O.splice(0,fe),ye=O[0].distance),v&&I!==0&&O.length===0){Le.distance=I,Le.index=!1;var bt=K._module.hoverPoints(Le,ke,ee,"closest",{hoverLayer:o._hoverlayer});if(bt&&(bt=bt.filter(function(nt){return nt.spikeDistance<=I})),bt&&bt.length){var La,na=bt.filter(function(nt){return nt.xa.showspikes&&nt.xa.spikesnap!=="hovered data"});if(na.length){var In=na[0];Gi(In.x0)&&Gi(In.y0)&&(La=Ee(In),(!be.vLinePoint||be.vLinePoint.spikeDistance>La.spikeDistance)&&(be.vLinePoint=La))}var Hn=bt.filter(function(nt){return nt.ya.showspikes&&nt.ya.spikesnap!=="hovered data"});if(Hn.length){var Qt=Hn[0];Gi(Qt.x0)&&Gi(Qt.y0)&&(La=Ee(Qt),(!be.hLinePoint||be.hLinePoint.spikeDistance>La.spikeDistance)&&(be.hLinePoint=La))}}}}}Re();function Ne(yr,lt,Vr){for(var gt=null,kt=1/0,ot,bt=0;bt0&&Math.abs(yr.distance)Se-1;Ke--)vr(O[Ke]);O=Ge,De()}var Pe=e._hoverdata,ae=[],ue=Bw(e),qe=Yw(e);for(H=0;H1||O.length>1)||h==="closest"&&se&&O.length>1,ua=ea.combine(o.plot_bgcolor||ea.background,o.paper_bgcolor),fa=Iw(O,{gd:e,hovermode:h,rotateLabels:At,bgColor:ua,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),zt=fa.hoverLabels;if($n.isUnifiedHover(h)||(tW(zt,At,o,fa.commonLabelBoundingBox),Ow(zt,At,o._invScaleX,o._invScaleY)),n&&n.tagName){var Oa=Gs.getComponentMethod("annotations","hasClickToShow")(e,ae);WV(Ao.select(n),Oa?"pointer":"")}!n||a||!iW(e,r,Pe)||(Pe&&e.emit("plotly_unhover",{event:r,points:Pe}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:k,yaxes:q,xvals:J,yvals:U}))}function Fw(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var rW=/([\s\S]*)<\/extra>/;function Iw(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,l=r.bgColor,o=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||ko.HOVERFONT,v=r.fontSize||ko.HOVERFONTSIZE,h=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,m=r.fontVariant||a.font.variant,g=r.fontTextcase||a.font.textcase,y=r.fontLineposition||a.font.lineposition,_=r.fontShadow||a.font.shadow,w=e[0],T=w.xa,b=w.ya,A=n.charAt(0),C=A+"Label",k=w[C];if(k===void 0&&T.type==="multicategory")for(var q=0;qa.width-qe&&(Ce=a.width-qe),Se.attr("d","M"+(Pe-Ce)+",0L"+(Pe-Ce+pt)+","+ue+pt+"H"+qe+"v"+ue+(Or*2+Ke.height)+"H"+-qe+"V"+ue+pt+"H"+(Pe-Ce-pt)+"Z"),Pe=Ce,G.minX=Pe-qe,G.maxX=Pe+qe,T.side==="top"?(G.minY=ae-(Or*2+Ke.height),G.maxY=ae-Or):(G.minY=ae+Or,G.maxY=ae+(Or*2+Ke.height))}else{var or,lr,ar;b.side==="right"?(or="start",lr=1,ar="",Pe=T._offset+T._length):(or="end",lr=-1,ar="-",Pe=T._offset),ae=b._offset+(w.y0+w.y1)/2,Fe.attr("text-anchor",or),Se.attr("d","M0,0L"+ar+pt+","+pt+"V"+(Or+Ke.height/2)+"h"+ar+(Or*2+Ke.width)+"V-"+(Or+Ke.height/2)+"H"+ar+pt+"V-"+pt+"Z"),G.minY=ae-(Or+Ke.height/2),G.maxY=ae+(Or+Ke.height/2),b.side==="right"?(G.minX=Pe+pt,G.maxX=Pe+pt+(Or*2+Ke.width)):(G.minX=Pe-pt-(Or*2+Ke.width),G.maxX=Pe-pt);var Mr=Ke.height/2,Br=R-Ke.top-Mr,et="clip"+a._uid+"commonlabel"+b._id,Qr;if(Pe=0?Xe=He:Oe+ye=0?Xe=Oe:ne+ye=0?cr=Ue:De+Re=0?cr=De:Te+Re=0,(le.idealAlign==="top"||!yt)&&At?(ar-=Br/2,le.anchor="end"):yt?(ar+=Br/2,le.anchor="start"):le.anchor="middle",le.crossPos=ar;else{if(le.pos=ar,yt=lr+Mr/2+qt<=z,At=lr-Mr/2-qt>=0,(le.idealAlign==="left"||!yt)&&At)lr-=Mr/2,le.anchor="end";else if(yt)lr+=Mr/2,le.anchor="start";else{le.anchor="middle";var ua=qt/2,fa=lr+ua-z,zt=lr-ua;fa>0&&(lr-=fa),zt<0&&(lr+=-zt)}le.crossPos=lr}ae.attr("text-anchor",le.anchor),qe&&ue.attr("text-anchor",le.anchor),Se.attr("transform",yy(lr,ar)+(i?GV(Nw):""))}),{hoverLabels:fr,commonLabelBoundingBox:G}}function Dw(e,r,t,a,n,i){var l="",o="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Tt.templateString(e.name,e.trace._meta)),l=Rw(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(o+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(o+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(o+=(o?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?o=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(o=e.yLabel):e.yLabel===void 0?o=e.xLabel:o="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(o+=(o?"
":"")+e.text),e.extraText!==void 0&&(o+=(o?"
":"")+e.extraText),i&&o===""&&!e.hovertemplate&&(l===""&&i.remove(),o=l);var f=e.hovertemplate||!1;if(f){var v=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(v[s+"other"]=v[s+"Val"],v[s+"otherLabel"]=v[s+"Label"]),o=Tt.hovertemplateString(f,v,a._d3locale,e.eventData[0]||{},e.trace._meta),o=o.replace(rW,function(h,d){return l=Rw(d,e.nameLength),""})}return[o,l]}function tW(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",l=0,o=1,s=e.size(),u=new Array(s),f=0,v=a.minX,h=a.maxX,d=a.minY,m=a.maxY,g=function(J){return J*t._invScaleX},y=function(J){return J*t._invScaleY};e.each(function(J){var U=J[n],H=J[i],G=U._id.charAt(0)==="x",Q=U.range;f===0&&Q&&Q[0]>Q[1]!==G&&(o=-1);var K=0,ie=G?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var he=Hw(J,r),me=J.anchor,ke=me==="end"?-1:1,ee,Le;if(me==="middle")ee=J.crossPos+(G?y(he.y-J.by/2):g(J.bx/2+J.tx2width/2)),Le=ee+(G?y(J.by):g(J.bx));else if(G)ee=J.crossPos+y(pt+he.y)-y(J.by/2-pt),Le=ee+y(J.by);else{var fe=g(ke*pt+he.x),be=fe+g(ke*J.bx);ee=J.crossPos+Math.min(fe,be),Le=J.crossPos+Math.max(fe,be)}G?d!==void 0&&m!==void 0&&Math.min(Le,m)-Math.max(ee,d)>1&&(H.side==="left"?(K=H._mainLinePosition,ie=t.width):ie=H._mainLinePosition):v!==void 0&&h!==void 0&&Math.min(Le,h)-Math.max(ee,v)>1&&(H.side==="top"?(K=H._mainLinePosition,ie=t.height):ie=H._mainLinePosition)}u[f++]=[{datum:J,traceIndex:J.trace.index,dp:0,pos:J.pos,posref:J.posref,size:J.by*(G?KV:1)/2,pmin:K,pmax:ie}]}),u.sort(function(J,U){return J[0].posref-U[0].posref||o*(U[0].traceIndex-J[0].traceIndex)});var _,w,T,b,A,C,k;function q(J){var U=J[0],H=J[J.length-1];if(w=U.pmin-U.pos-U.dp+U.size,T=H.pos+H.dp+H.size-U.pmax,w>.01){for(A=J.length-1;A>=0;A--)J[A].dp+=w;_=!1}if(!(T<.01)){if(w<-.01){for(A=J.length-1;A>=0;A--)J[A].dp-=T;_=!1}if(_){var G=0;for(b=0;bU.pmax&&G++;for(b=J.length-1;b>=0&&!(G<=0);b--)C=J[b],C.pos>U.pmax-1&&(C.del=!0,G--);for(b=0;b=0;A--)J[A].dp-=T;for(b=J.length-1;b>=0&&!(G<=0);b--)C=J[b],C.pos+C.dp+C.size>U.pmax&&(C.del=!0,G--)}}}for(;!_&&l<=s;){for(l++,_=!0,b=0;b.01){for(A=R.length-1;A>=0;A--)R[A].dp+=w;for(D.push.apply(D,R),u.splice(b+1,1),k=0,A=D.length-1;A>=0;A--)k+=D[A].dp;for(T=k/D.length,A=D.length-1;A>=0;A--)D[A].dp-=T;_=!1}else b++}u.forEach(q)}for(b=u.length-1;b>=0;b--){var I=u[b];for(A=I.length-1;A>=0;A--){var O=I[A],X=O.datum;X.offset=O.dp,X.del=O.del}}}function Hw(e,r){var t=0,a=e.offset;return r&&(a*=-$V,t=e.offset*QV),{x:t,y:a}}function aW(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(pt+Or),a=t+r*(e.txwidth+Or),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Or),{alignShift:r,textShiftX:t,text2ShiftX:a}}function Ow(e,r,t,a){var n=function(l){return l*t},i=function(l){return l*a};e.each(function(l){var o=Ao.select(this);if(l.del)return o.remove();var s=o.select("text.nums"),u=l.anchor,f=u==="end"?-1:1,v=aW(l),h=Hw(l,r),d=h.x,m=h.y,g=u==="middle",y="hoverlabel"in l.trace?l.trace.hoverlabel.showarrow:!0,_;g?_="M-"+n(l.bx/2+l.tx2width/2)+","+i(m-l.by/2)+"h"+n(l.bx)+"v"+i(l.by)+"h-"+n(l.bx)+"Z":y?_="M0,0L"+n(f*pt+d)+","+i(pt+m)+"v"+i(l.by/2-pt)+"h"+n(f*l.bx)+"v-"+i(l.by)+"H"+n(f*pt+d)+"V"+i(m-pt)+"Z":_="M"+n(f*pt+d)+","+i(m-l.by/2)+"h"+n(f*l.bx)+"v"+i(l.by)+"h"+n(-f*l.bx)+"Z",o.select("path").attr("d",_);var w=d+v.textShiftX,T=m+l.ty0-l.by/2+Or,b=l.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(s.attr("text-anchor","start"),w=g?-l.bx/2-l.tx2width/2+Or:-l.bx-Or):b==="right"&&u!=="end"&&(s.attr("text-anchor","end"),w=g?l.bx/2-l.tx2width/2-Or:l.bx+Or)),s.call(kn.positionText,n(w),i(T)),l.tx2width&&(o.select("text.name").call(kn.positionText,n(v.text2ShiftX+v.alignShift*Or+d),i(m+l.ty0-l.by/2+Or)),o.select("rect").call(Ai.setRect,n(v.text2ShiftX+(v.alignShift-1)*l.tx2width/2+d),i(m-l.by/2-1),n(l.tx2width),i(l.by+2)))})}function nW(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function l(h){return h||Gi(h)&&h===0}var o=Array.isArray(t)?function(h,d){var m=Tt.castOption(n,t,h);return l(m)?m:Tt.extractOption({},a,"",d)}:function(h,d){return Tt.extractOption(i,a,h,d)};function s(h,d,m){var g=o(d,m);l(g)&&(e[h]=g)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Tt.constrain(e.x0,0,e.xa._length),e.x1=Tt.constrain(e.x1,0,e.xa._length),e.y0=Tt.constrain(e.y0,0,e.ya._length),e.y1=Tt.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:ki.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:ki.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=ki.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+ki.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=ki.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+ki.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var v=e.hoverinfo||e.trace.hoverinfo;return v&&v!=="all"&&(v=Array.isArray(v)?v:v.split("+"),v.indexOf("x")===-1&&(e.xLabel=void 0),v.indexOf("y")===-1&&(e.yLabel=void 0),v.indexOf("z")===-1&&(e.zLabel=void 0),v.indexOf("text")===-1&&(e.text=void 0),v.indexOf("name")===-1&&(e.name=void 0)),e}function Ew(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,l=t.event,o=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||o)){var v=ea.combine(n.plot_bgcolor,n.paper_bgcolor);if(o){var h=r.hLinePoint,d,m;u=h&&h.xa,f=h&&h.ya;var g=f.spikesnap;g==="cursor"?(d=l.pointerX,m=l.pointerY):(d=u._offset+h.x,m=f._offset+h.y);var y=Cw.readability(h.color,v)<1.5?ea.contrast(v):h.color,_=f.spikemode,w=f.spikethickness,T=f.spikecolor||y,b=ki.getPxPosition(e,f),A,C;if(_.indexOf("toaxis")!==-1||_.indexOf("across")!==-1){if(_.indexOf("toaxis")!==-1&&(A=b,C=d),_.indexOf("across")!==-1){var k=f._counterDomainMin,q=f._counterDomainMax;f.anchor==="free"&&(k=Math.min(k,f.position),q=Math.max(q,f.position)),A=i.l+k*i.w,C=i.l+q*i.w}a.insert("line",":first-child").attr({x1:A,x2:C,y1:m,y2:m,"stroke-width":w,stroke:T,"stroke-dasharray":Ai.dashStyle(f.spikedash,w)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:A,x2:C,y1:m,y2:m,"stroke-width":w+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}_.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?w:-w),cy:m,r:w,fill:T}).classed("spikeline",!0)}if(s){var D=r.vLinePoint,R,z;u=D&&D.xa,f=D&&D.ya;var F=u.spikesnap;F==="cursor"?(R=l.pointerX,z=l.pointerY):(R=u._offset+D.x,z=f._offset+D.y);var I=Cw.readability(D.color,v)<1.5?ea.contrast(v):D.color,O=u.spikemode,X=u.spikethickness,J=u.spikecolor||I,U=ki.getPxPosition(e,u),H,G;if(O.indexOf("toaxis")!==-1||O.indexOf("across")!==-1){if(O.indexOf("toaxis")!==-1&&(H=U,G=z),O.indexOf("across")!==-1){var Q=u._counterDomainMin,K=u._counterDomainMax;u.anchor==="free"&&(Q=Math.min(Q,u.position),K=Math.max(K,u.position)),H=i.t+(1-K)*i.h,G=i.t+(1-Q)*i.h}a.insert("line",":first-child").attr({x1:R,x2:R,y1:H,y2:G,"stroke-width":X,stroke:J,"stroke-dasharray":Ai.dashStyle(u.spikedash,X)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:R,x2:R,y1:H,y2:G,"stroke-width":X+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}O.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:R,cy:U-(u.side!=="top"?X:-X),r:X,fill:J}).classed("spikeline",!0)}}}function iW(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers))return!0}return!1}function Pw(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function Rw(e,r){return kn.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function lW(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;l{"use strict";var oW=Ie(),sW=Er(),uW=xi().isUnifiedHover;Uw.exports=function(r,t,a,n){n=n||{};var i=t.legend;function l(o){n.font[o]||(n.font[o]=i?t.legend.font[o]:t.font[o])}t&&uW(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=sW.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),oW.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var Vw=Z((wse,Gw)=>{"use strict";var fW=Ie(),cW=J0(),vW=fs();Gw.exports=function(r,t){function a(n,i){return fW.coerce(r,t,vW,n,i)}cW(r,t,a)}});var Xw=Z((Tse,Zw)=>{"use strict";var Ww=Ie(),hW=yv(),dW=J0();Zw.exports=function(r,t,a,n){function i(o,s){return Ww.coerce(r,t,hW,o,s)}var l=Ww.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),dW(r,t,i,l)}});var _y=Z((Mse,Jw)=>{"use strict";var pW=Ie(),mW=fs();Jw.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:pW.coerce(r,t,mW,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var $w=Z((Ase,Qw)=>{"use strict";var Kw=Ie(),yW=fs(),gW=_y(),bW=J0();Qw.exports=function(r,t){function a(f,v){return Kw.coerce(r,t,yW,f,v)}var n=gW(r,t);n&&(a("hoverdistance"),a("spikedistance"));var i=a("dragmode");i==="select"&&a("selectdirection");var l=t._has("mapbox"),o=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((l||o||s)&&u===1||(l||o)&&s&&u===2)&&(t.dragmode="pan"),bW(r,t,a),Kw.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var rT=Z((kse,eT)=>{"use strict";var wy=Ie(),jw=br();eT.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return wy.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var _W=br(),wW=xy().hover;tT.exports=function(r,t,a){var n=_W.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&wW(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Si=Z((Cse,lT)=>{"use strict";var TW=Ir(),K0=Ie(),MW=Qn(),wf=xi(),nT=fs(),iT=xy();lT.exports={moduleType:"component",name:"fx",constants:Yu(),schema:{layout:nT},attributes:yv(),layoutAttributes:nT,supplyLayoutGlobalDefaults:Vw(),supplyDefaults:Xw(),supplyLayoutDefaults:$w(),calc:rT(),getDistanceFunction:wf.getDistanceFunction,getClosest:wf.getClosest,inbox:wf.inbox,quadrature:wf.quadrature,appendArrayPointValue:wf.appendArrayPointValue,castHoverOption:kW,castHoverinfo:SW,hover:iT.hover,unhover:MW.unhover,loneHover:iT.loneHover,loneUnhover:AW,click:aT()};function AW(e){var r=K0.isD3Selection(e)?e:TW.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function kW(e,r,t){return K0.castOption(e,r,"hoverlabel."+t)}function SW(e,r,t){function a(n){return K0.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return K0.castOption(e,t,"hoverinfo",a)}});var Vs=Z(Vi=>{"use strict";Vi.selectMode=function(e){return e==="lasso"||e==="select"};Vi.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Vi.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Vi.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Vi.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Vi.selectingOrDrawing=function(e){return Vi.freeMode(e)||Vi.rectMode(e)}});var Q0=Z((qse,oT)=>{"use strict";oT.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var $0=Z((Dse,sT)=>{"use strict";sT.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var eh=Z((Ese,uT)=>{"use strict";var j0=32;uT.exports={CIRCLE_SIDES:j0,i000:0,i090:j0/4,i180:j0/2,i270:j0/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var rh=Z((Pse,cT)=>{"use strict";var CW=Ie().strTranslate;function fT(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function LW(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function qW(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return fT(e,t[r])}}function DW(e){return CW(e.xaxis._offset,e.yaxis._offset)}cT.exports={p2r:fT,r2p:LW,axValue:qW,getTransform:DW}});var Tl=Z(Wi=>{"use strict";var EW=cm(),dT=eh(),Ws=dT.CIRCLE_SIDES,Ty=dT.SQRT2,pT=rh(),vT=pT.p2r,hT=pT.r2p,PW=[0,3,4,5,6,1,2],RW=[0,3,4,1,2];Wi.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var mT=Zt(),_T=Vs(),zW=_T.drawMode,NW=_T.openMode,Zs=eh(),yT=Zs.i000,gT=Zs.i090,bT=Zs.i180,xT=Zs.i270,FW=Zs.cos45,IW=Zs.sin45,wT=rh(),ah=wT.p2r,Ml=wT.r2p,HW=pl(),OW=HW.clearOutline,nh=Tl(),BW=nh.readPaths,YW=nh.writePaths,UW=nh.ellipseOver,GW=nh.fixDatesForPaths;function VW(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,l=(a.layout||{}).shapes||[];if(!zW(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o{"use strict";var WW=Vs(),ZW=WW.selectMode,XW=pl(),JW=XW.clearOutline,My=Tl(),KW=My.readPaths,QW=My.writePaths,$W=My.fixDatesForPaths;AT.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,l=i._fullLayout.newselection,o=t.plotinfo,s=o.xaxis,u=o.yaxis,f=t.isActiveSelection,v=t.dragmode,h=(i.layout||{}).selections||[];if(!ZW(v)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";kT.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var Al=Z(la=>{"use strict";var So=Mf(),ST=Ie(),lh=dt();la.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};la.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};la.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};la.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};la.extractPathCoords=function(e,r,t){var a=[],n=e.match(So.segmentRE);return n.forEach(function(i){var l=r[i.charAt(0)].drawn;if(l!==void 0){var o=i.substr(1).match(So.paramRE);if(!(!o||o.lengthd&&(g="X"),g});return u>d&&(m=m.replace(/[\s,]*X.*/,""),ST.log("Ignoring extra params in segment "+s)),f+m})}function Af(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var Sy=Z((Hse,DT)=>{"use strict";var eZ=Ie(),Xs=dt(),CT=Ta(),LT=at(),rZ=Tl().readPaths,ky=Al(),tZ=ky.getPathString,qT=kv(),aZ=Pa().FROM_TL;DT.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var l={};if(a.type!=="path"){var o=Xs.getFromId(r,a.xref),s=Xs.getFromId(r,a.yref);for(var u in qT){var f=qT[u](a,o,s);f!==void 0&&(l[u]=f)}}i=eZ.texttemplateStringForShapes(a.label.texttemplate,{},r._fullLayout._d3locale,l)}else i=a.label.text;var v={"data-index":t},h=a.label.font,d={"data-notex":1},m=n.append("g").attr(v).classed("shape-label",!0),g=m.append("text").attr(d).classed("shape-label-text",!0).text(i),y,_,w,T;if(a.path){var b=tZ(r,a),A=rZ(b,r);y=1/0,w=1/0,_=-1/0,T=-1/0;for(var C=0;C=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function iZ(e,r,t,a,n,i,l){var o=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,v=Math.PI/180*i,h=Math.sin(v),d=Math.cos(v),m=n.label.xanchor,g=n.label.yanchor,y,_,w,T;if(f==="line"){o==="start"?(y=e,_=r):o==="end"?(y=t,_=a):(y=(e+t)/2,_=(r+a)/2),m==="auto"&&(o==="start"?s==="auto"?t>e?m="left":te?m="right":te?m="right":te?m="left":t{"use strict";var lZ=Ie(),oZ=lZ.strTranslate,ET=Qn(),zT=Vs(),sZ=zT.drawMode,NT=zT.selectMode,FT=br(),PT=Er(),sh=eh(),uZ=sh.i000,fZ=sh.i090,cZ=sh.i180,vZ=sh.i270,hZ=pl(),IT=hZ.clearOutlineControllers,Ly=Tl(),oh=Ly.pointsOnRectangle,Cy=Ly.pointsOnEllipse,dZ=Ly.writePaths,pZ=ih().newShapes,mZ=ih().createShapeObj,yZ=Ay(),gZ=Sy();HT.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function l(){e(r,t,a,n++),(Cy(r[0])||a.hasText)&&o({redrawing:!0})}function o(U){var H={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,H=pZ(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,H=yZ(t,a),i._fullLayout._reselect=!0),Object.keys(H).length&&FT.call((U||{}).redrawing?"relayout":"_guiRelayout",i,H)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,v=sZ(f),h=NT(f);(v||h)&&(i._fullLayout._outlining=!0),IT(i),t.attr("d",dZ(r));var d,m,g,y,_;if(!n&&(a.isActiveShape||a.isActiveSelection)){_=bZ([],r);var w=u.append("g").attr("class","outline-controllers");R(w),J()}if(v&&a.hasText){var T=u.select(".label-temp"),b=mZ(t,a,a.dragmode);gZ(i,"label-temp",b,T)}function A(U){g=+U.srcElement.getAttribute("data-i"),y=+U.srcElement.getAttribute("data-j"),d[g][y].moveFn=C}function C(U,H){if(r.length){var G=_[g][y][1],Q=_[g][y][2],K=r[g],ie=K.length;if(oh(K)){var he=U,me=H;if(a.isActiveSelection){var ke=RT(K,y);ke[1]===K[y][1]?me=0:he=0}for(var ee=0;ee1&&!(U.length===2&&U[1][0]==="Z")&&(y===0&&(U[0][0]="M"),r[g]=U,l(),o())}}function D(U,H){if(U===2){g=+H.srcElement.getAttribute("data-i"),y=+H.srcElement.getAttribute("data-j");var G=r[g];!oh(G)&&!Cy(G)&&q()}}function R(U){d=[];for(var H=0;H{"use strict";var _Z=Ir(),VT=br(),OT=Ie(),Js=dt(),wZ=Tl().readPaths,TZ=uh(),ch=Sy(),WT=pl().clearOutlineControllers,qy=Er(),Ey=at(),MZ=ct().arrayEditor,BT=Qn(),YT=wl(),Co=Mf(),$a=Al(),Dy=$a.getPathString;JT.exports={draw:Py,drawOne:ZT,eraseActiveShape:SZ,drawLabel:ch};function Py(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;nl&&Ve>o&&!Ne.shiftKey?BT.getCursor(Ue/ze,1-De/Ve):"move";YT(r,He),Le=He.split("-")[0]}}function Ae(Ne){fh(e)||(s&&(_=K(t.xanchor)),u&&(w=ie(t.yanchor)),t.type==="path"?z=t.path:(d=s?t.x0:K(t.x0),m=u?t.y0:ie(t.y0),g=s?t.x1:K(t.x1),y=u?t.y1:ie(t.y1)),dy?(T=m,k="y0",b=y,q="y1"):(T=y,k="y1",b=m,q="y0"),se(Ne),Me(n,t),Re(r,t,e),ee.moveFn=Le==="move"?B:ge,ee.altKey=Ne.altKey)}function Y(){fh(e)||(YT(r),ye(n),XT(r,e,t),VT.call("_guiRelayout",e,i.getUpdateObj()))}function re(){fh(e)||ye(n)}function B(Ne,Ee){if(t.type==="path"){var ze=function(De){return De},Ve=ze,Ue=ze;s?h("xanchor",t.xanchor=he(_+Ne)):(Ve=function(He){return he(K(He)+Ne)},I&&I.type==="date"&&(Ve=$a.encodeDate(Ve))),u?h("yanchor",t.yanchor=me(w+Ee)):(Ue=function(He){return me(ie(He)+Ee)},X&&X.type==="date"&&(Ue=$a.encodeDate(Ue))),h("path",t.path=UT(z,Ve,Ue))}else s?h("xanchor",t.xanchor=he(_+Ne)):(h("x0",t.x0=he(d+Ne)),h("x1",t.x1=he(g+Ne))),u?h("yanchor",t.yanchor=me(w+Ee)):(h("y0",t.y0=me(m+Ee)),h("y1",t.y1=me(y+Ee)));r.attr("d",Dy(e,t)),Me(n,t),ch(e,a,t,F)}function ge(Ne,Ee){if(v){var ze=function(Je){return Je},Ve=ze,Ue=ze;s?h("xanchor",t.xanchor=he(_+Ne)):(Ve=function(je){return he(K(je)+Ne)},I&&I.type==="date"&&(Ve=$a.encodeDate(Ve))),u?h("yanchor",t.yanchor=me(w+Ee)):(Ue=function(je){return me(ie(je)+Ee)},X&&X.type==="date"&&(Ue=$a.encodeDate(Ue))),h("path",t.path=UT(z,Ve,Ue))}else if(f){if(Le==="resize-over-start-point"){var De=d+Ne,He=u?m-Ee:m+Ee;h("x0",t.x0=s?De:he(De)),h("y0",t.y0=u?He:me(He))}else if(Le==="resize-over-end-point"){var Oe=g+Ne,ne=u?y-Ee:y+Ee;h("x1",t.x1=s?Oe:he(Oe)),h("y1",t.y1=u?ne:me(ne))}}else{var Te=function(Je){return Le.indexOf(Je)!==-1},Xe=Te("n"),cr=Te("s"),fr=Te("w"),le=Te("e"),Se=Xe?T+Ee:T,Fe=cr?b+Ee:b,We=fr?A+Ne:A,Ge=le?C+Ne:C;u&&(Xe&&(Se=T-Ee),cr&&(Fe=b-Ee)),(!u&&Fe-Se>o||u&&Se-Fe>o)&&(h(k,t[k]=u?Se:me(Se)),h(q,t[q]=u?Fe:me(Fe))),Ge-We>l&&(h(D,t[D]=s?We:he(We)),h(R,t[R]=s?Ge:he(Ge)))}r.attr("d",Dy(e,t)),Me(n,t),ch(e,a,t,F)}function Me(Ne,Ee){(s||u)&&ze();function ze(){var Ve=Ee.type!=="path",Ue=Ne.selectAll(".visual-cue").data([0]),De=1;Ue.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":De}).classed("visual-cue",!0);var He=K(s?Ee.xanchor:OT.midRange(Ve?[Ee.x0,Ee.x1]:$a.extractPathCoords(Ee.path,Co.paramIsX))),Oe=ie(u?Ee.yanchor:OT.midRange(Ve?[Ee.y0,Ee.y1]:$a.extractPathCoords(Ee.path,Co.paramIsY)));if(He=$a.roundPositionForSharpStrokeRendering(He,De),Oe=$a.roundPositionForSharpStrokeRendering(Oe,De),s&&u){var ne="M"+(He-1-De)+","+(Oe-1-De)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ue.attr("d",ne)}else if(s){var Te="M"+(He-1-De)+","+(Oe-9-De)+"v18 h2 v-18 Z";Ue.attr("d",Te)}else{var Xe="M"+(He-9-De)+","+(Oe-1-De)+"h18 v2 h-18 Z";Ue.attr("d",Xe)}}}function ye(Ne){Ne.selectAll(".visual-cue").remove()}function Re(Ne,Ee,ze){var Ve=Ee.xref,Ue=Ee.yref,De=Js.getFromId(ze,Ve),He=Js.getFromId(ze,Ue),Oe="";Ve!=="paper"&&!De.autorange&&(Oe+=Ve),Ue!=="paper"&&!He.autorange&&(Oe+=Ue),Ey.setClipUrl(Ne,Oe?"clip"+ze._fullLayout._uid+Oe:null,ze)}}function UT(e,r,t){return e.replace(Co.segmentRE,function(a){var n=0,i=a.charAt(0),l=Co.paramIsX[i],o=Co.paramIsY[i],s=Co.numParams[i],u=a.substr(1).replace(Co.paramRE,function(f){return n>=s||(l[n]?f=r(f):o[n]&&(f=t(f)),n++),f});return i+u})}function kZ(e,r){if(vh(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){GT(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=GT,Py(e)}}}function GT(e){if(vh(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(WT(e),delete e._fullLayout._activeShapeIndex,Py(e))}}function SZ(e){if(vh(e)){WT(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Sn=br(),KT=Nt(),QT=Zt(),Yr=$0(),CZ=hh().eraseActiveShape,dh=Ie(),Nr=dh._,Ur=nM.exports={};Ur.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Nr(e,"Download plot as a PNG"):Nr(e,"Download plot")},icon:Yr.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};dh.notifier(Nr(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Sn.call("downloadImage",e,t).then(function(a){dh.notifier(Nr(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){dh.notifier(Nr(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Ur.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Nr(e,"Edit in Chart Studio")},icon:Yr.disk,click:function(e){KT.sendDataToCloud(e)}};Ur.editInChartStudio={name:"editInChartStudio",title:function(e){return Nr(e,"Edit in Chart Studio")},icon:Yr.pencil,click:function(e){KT.sendDataToCloud(e)}};Ur.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Nr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Yr.zoombox,click:Na};Ur.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Nr(e,"Pan")},attr:"dragmode",val:"pan",icon:Yr.pan,click:Na};Ur.select2d={name:"select2d",_cat:"select",title:function(e){return Nr(e,"Box Select")},attr:"dragmode",val:"select",icon:Yr.selectbox,click:Na};Ur.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Nr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Yr.lasso,click:Na};Ur.drawclosedpath={name:"drawclosedpath",title:function(e){return Nr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Yr.drawclosedpath,click:Na};Ur.drawopenpath={name:"drawopenpath",title:function(e){return Nr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Yr.drawopenpath,click:Na};Ur.drawline={name:"drawline",title:function(e){return Nr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Yr.drawline,click:Na};Ur.drawrect={name:"drawrect",title:function(e){return Nr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Yr.drawrect,click:Na};Ur.drawcircle={name:"drawcircle",title:function(e){return Nr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Yr.drawcircle,click:Na};Ur.eraseshape={name:"eraseshape",title:function(e){return Nr(e,"Erase active shape")},icon:Yr.eraseshape,click:CZ};Ur.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Nr(e,"Zoom in")},attr:"zoom",val:"in",icon:Yr.zoom_plus,click:Na};Ur.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Nr(e,"Zoom out")},attr:"zoom",val:"out",icon:Yr.zoom_minus,click:Na};Ur.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Nr(e,"Autoscale")},attr:"zoom",val:"auto",icon:Yr.autoscale,click:Na};Ur.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Nr(e,"Reset axes")},attr:"zoom",val:"reset",icon:Yr.home,click:Na};Ur.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Nr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Yr.tooltip_basic,gravity:"ne",click:Na};Ur.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Nr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Yr.tooltip_compare,gravity:"ne",click:Na};function Na(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,l={},o=QT.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var v=n==="in"?.5:2,h=(1+v)/2,d=(1-v)/2,m,g;for(f=0;f{"use strict";var iM=Ny(),DZ=Object.keys(iM),lM=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],oM=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(lM),Qs=[],EZ=function(e){if(oM.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();Qs.indexOf(r)===-1&&Qs.push(r),Qs.indexOf(t)===-1&&Qs.push(t)}};DZ.forEach(function(e){EZ(iM[e])});Qs.sort();sM.exports={DRAW_MODES:lM,backButtons:oM,foreButtons:Qs}});var Iy=Z((Vse,uM)=>{"use strict";var Gse=Fy();uM.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var cM=Z((Wse,fM)=>{"use strict";var PZ=Ie(),kf=Er(),RZ=ct(),zZ=Iy();fM.exports=function(r,t){var a=r.modebar||{},n=RZ.newContainer(t,"modebar");function i(o,s){return PZ.coerce(a,n,zZ,o,s)}i("orientation"),i("bgcolor",kf.addOpacity(t.paper_bgcolor,.5));var l=kf.contrast(kf.rgb(t.modebar.bgcolor));i("color",kf.addOpacity(l,.3)),i("activecolor",kf.addOpacity(l,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var pM=Z((Zse,dM)=>{"use strict";var Hy=Ir(),NZ=Hr(),mh=Ie(),vM=$0(),FZ=iv().version,IZ=new DOMParser;function hM(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Ci=hM.prototype;Ci.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,l="#"+n+" .modebar-group";document.querySelectorAll(l).forEach(function(v){v.style.backgroundColor=i.bgcolor});var o=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(o||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),mh.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Ci.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var l=r.createButton(n);r.buttonElements.push(l),a.appendChild(l)}),r.element.appendChild(a)})};Ci.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Ci.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(o){e.click(r.graphInfo,o),r.updateActiveButton(o.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&Hy.select(t).classed("active",!0);var l=e.icon;return typeof l=="function"?t.appendChild(l()):t.appendChild(this.createIcon(l||vM.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Ci.createIcon=function(e){var r=NZ(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=IZ.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Ci.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),l=a.getAttribute("data-toggle")==="true",o=Hy.select(a),s=function(v,h){var d=r.modebar,m=v.querySelector(".icon path");m&&(h||v.matches(":hover")?m.style.fill=d.activecolor:m.style.fill=d.color)};if(l){if(i===t){var u=!o.classed("active");o.classed("active",u),s(a,u)}}else{var f=i===null?i:mh.nestedProperty(r,i).get();o.classed("active",f===n),s(a,f===n)}})};Ci.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var BZ=Zt(),mM=on(),Oy=br(),YZ=xi().isUnifiedHover,UZ=pM(),yh=Ny(),GZ=Fy().DRAW_MODES,VZ=Ie().extendDeep;yM.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,l;Array.isArray(i)&&i.length?l=QZ(i):!a.displayModeBar&&a.watermark?l=[]:l=WZ(r),n?n.update(r,l):t._modeBar=UZ(r,l)};function WZ(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(H,G){if(typeof G=="string"){if(G.toLowerCase()===H.toLowerCase())return!0}else{var Q=G.name,K=G._cat||G.name;if(Q===H||K===H.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var l=r.modebar.remove;typeof l=="string"&&(l=[l]);var o=a.modeBarButtonsToAdd.concat(i.filter(function(H){for(var G=0;G1?(R=["toggleHover"],z=["resetViews"]):v?(D=["zoomInGeo","zoomOutGeo"],R=["hoverClosestGeo"],z=["resetGeo"]):f?(R=["hoverClosest3d"],z=["resetCameraDefault3d","resetCameraLastSave3d"]):g?(D=["zoomInMapbox","zoomOutMapbox"],R=["toggleHover"],z=["resetViewMapbox"]):y?(D=["zoomInMap","zoomOutMap"],R=["toggleHover"],z=["resetViewMap"]):h?R=["hoverClosestPie"]:T?(R=["hoverClosestCartesian","hoverCompareCartesian"],z=["resetViewSankey"]):R=["toggleHover"],u&&R.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(JZ(t)||A)&&(R=[]),u&&!b&&(D=["zoomIn2d","zoomOut2d","autoScale2d"],z[0]!=="resetViews"&&(z=["resetScale2d"])),f?F=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!b||m?F=["zoom2d","pan2d"]:g||y||v?F=["pan2d"]:_&&(F=["zoom2d"]),XZ(t)&&F.push("select2d","lasso2d");var I=[],O=function(H){I.indexOf(H)===-1&&R.indexOf(H)!==-1&&I.push(H)};if(Array.isArray(o)){for(var X=[],J=0;J{"use strict";bM.exports={moduleType:"component",name:"modebar",layoutAttributes:Iy(),supplyLayoutDefaults:cM(),manage:gM()}});var Yy=Z((Kse,xM)=>{"use strict";var $Z=Pa().FROM_BL;xM.exports=function(r,t,a){a===void 0&&(a=$Z[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var Cf=Z(Sf=>{"use strict";var Lo=Ie(),Uy=hf(),jn=Zt().id2name,jZ=Xn(),_M=Yy(),eX=b0(),rX=Gt().ALMOST_EQUAL,tX=Pa().FROM_BL;Sf.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],l=r._axisMatchGroups=[],o,s,u,f,v,h,d,m;for(o=0;oi?t.substr(i):a.substr(n))+l}function nX(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;lrX*m&&!w)){for(i=0;iF&&QR&&(R=Q);var ie=(R-D)/(2*z);v/=ie,D=s.l2r(D),R=s.l2r(R),s.range=s._input.range=C{"use strict";var bh=Ir(),Fa=br(),vn=Nt(),Cn=Ie(),Wy=Ta(),Zy=Q0(),Lf=Er(),$s=at(),AM=cf(),qM=By(),qf=dt(),Zi=Pa(),DM=Cf(),iX=DM.enforce,lX=DM.clean,kM=hf().doAutoRange,EM="start",oX="middle",PM="end",sX=ya().zindexSeparator;ra.layoutStyles=function(e){return Cn.syncOrAsync([vn.doAutoMargin,fX],e)};function uX(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function fX(e){var r=e._fullLayout,t=r._size,a=t.p,n=qf.list(e,"",!0),i,l,o,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call($s.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),ra.drawMainTitle(e),qM.manage(e),!r._has("cartesian"))return vn.previousPromises(e);function v(Ae,Y,re){var B=Ae._lw/2;if(Ae._id.charAt(0)==="x"){if(Y){if(re==="top")return Y._offset-a-B}else return t.t+t.h*(1-(Ae.position||0))+B%1;return Y._offset+Y._length+a+B}if(Y){if(re==="right")return Y._offset+Y._length+a+B}else return t.l+t.w*(Ae.position||0)+B%1;return Y._offset-a-B}for(i=0;i0){dX(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:LM(r.yanchor)}).call(Wy.positionText,l,i);var f=(r.text.match(Wy.BR_TAG_ALL)||[]).length;if(f){var v=Zi.LINE_SPACING*f+Zi.MID_SHIFT;r.y===0&&(v=-v),o.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-v+"em";this.setAttribute("dy",y)})}var h=bh.selectAll(".gtitle-subtitle");if(h.node()){var d=o.node().getBBox(),m=d.y+d.height,g=m+AM.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:l,y:g,"text-anchor":a,dy:LM(r.yanchor)}).call(Wy.positionText,l,g)}}}};function cX(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=Cn.isTopAnchor(r)?a:a-n,o=t==="b"?i-l:l;return Cn.isTopAnchor(r)&&t==="t"||Cn.isBottomAnchor(r)&&t==="b"?!1:o.5?"t":"b",l=e._fullLayout.margin[i],o=0;return r.yref==="paper"?o=t+r.pad.t+r.pad.b:r.yref==="container"&&(o=vX(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function dX(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,l=i.y>.5?"t":"b",o={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&cX(e,i,l,r,a)?o[l]=t:i.yref==="container"&&(s[l]=t,e._fullLayout._reservedMargin[n]=s),vn.allowAutoMargin(e,n),vn.autoMargin(e,n,o)}function pX(e,r){var t=e.title,a=e._size,n=0;switch(r===EM?n=t.pad.l:r===PM&&(n=-t.pad.r),t.xref){case"paper":return a.l+a.w*t.x+n;case"container":default:return e.width*t.x+n}}function mX(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===Zi.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto")return a.t/2;switch(t.yref){case"paper":return a.t+a.h-a.h*t.y+n;case"container":default:return e.height-e.height*t.y+n}}function LM(e){return e==="top"?Zi.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Zi.MID_SHIFT+"em"}function yX(e){var r=e.title,t=oX;return Cn.isRightAnchor(r)?t=PM:Cn.isLeftAnchor(r)&&(t=EM),t}function gX(e){var r=e.title,t="0em";return Cn.isTopAnchor(r)?t=Zi.CAP_SHIFT+"em":Cn.isMiddleAnchor(r)&&(t=Zi.MID_SHIFT+"em"),t}ra.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var bX=Tl().readPaths,xX=uh(),RM=pl().clearOutlineControllers,Xy=Er(),zM=at(),_X=ct().arrayEditor,NM=Al(),wX=NM.getPathString;IM.exports={draw:_h,drawOne:FM,activateLastSelection:AX};function _h(e){var r=e._fullLayout;RM(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;y--){var _=l.append("path").attr(s).style("opacity",y?.1:u).call(Xy.stroke,v).call(Xy.fill,f).call(zM.dashLine,y?"solid":d,y?4+h:h);if(TX(_,e,a),m){var w=_X(e.layout,"selections",a);_.style({cursor:"move"});var T={element:_.node(),plotinfo:n,gd:e,editHelpers:w,isActiveSelection:!0},b=bX(o,e);xX(b,_,T)}else _.style("pointer-events",y?"all":"none");g[y]=_}var A=g[0],C=g[1];C.node().addEventListener("click",function(){return MX(e,A)})}}function TX(e,r,t){var a=t.xref+t.yref;zM.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function MX(e,r){if(wh(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){Jy(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=Jy,_h(e)}}}function AX(e){if(wh(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=Jy,_h(e)}}function Jy(e){if(wh(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(RM(e),delete e._fullLayout._activeSelectionIndex,_h(e))}}});var OM=Z((eue,HM)=>{function kX(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,l){return a("temp_status",{seg:n,above:i,below:l})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,l){return a("status",{seg:n,above:i,below:l})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}HM.exports=kX});var YM=Z((rue,BM)=>{function SX(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],l=a[1],o=n[0],s=n[1],u=t[0],f=t[1];return(o-i)*(f-l)-(s-l)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],l=n[0]-a[0],o=t[0]-a[0],s=n[1]-a[1],u=o*l+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=o-i>e&&(l-f)*(i-v)/(o-v)+f-n>e&&(s=!s),l=f,o=v}return s}};return r}BM.exports=SX});var GM=Z((tue,UM)=>{var CX={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};UM.exports=CX});var WM=Z((aue,VM)=>{var Df=GM();function LX(e,r,t){function a(m,g){return{id:t?t.segmentId():-1,start:m,end:g,myFill:{above:null,below:null},otherFill:null}}function n(m,g,y){return{id:t?t.segmentId():-1,start:m,end:g,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=Df.create();function l(m,g,y,_,w,T){var b=r.pointsCompare(g,w);return b!==0?b:r.pointsSame(y,T)?0:m!==_?m?1:-1:r.pointAboveOrOnLine(y,_?w:T,_?T:w)?1:-1}function o(m,g){i.insertBefore(m,function(y){var _=l(m.isStart,m.pt,g,y.isStart,y.pt,y.other.pt);return _<0})}function s(m,g){var y=Df.node({isStart:!0,pt:m.start,seg:m,primary:g,other:null,status:null});return o(y,m.end),y}function u(m,g,y){var _=Df.node({isStart:!1,pt:g.end,seg:g,primary:y,other:m,status:null});m.other=_,o(_,m.pt)}function f(m,g){var y=s(m,g);return u(y,m,g),y}function v(m,g){t&&t.segmentChop(m.seg,g),m.other.remove(),m.seg.end=g,m.other.pt=g,o(m.other,m.pt)}function h(m,g){var y=n(g,m.seg.end,m.seg);return v(m,g),f(y,m.primary)}function d(m,g){var y=Df.create();function _(X,J){var U=X.seg.start,H=X.seg.end,G=J.seg.start,Q=J.seg.end;return r.pointsCollinear(U,G,Q)?r.pointsCollinear(H,G,Q)||r.pointAboveOrOnLine(H,G,Q)?1:-1:r.pointAboveOrOnLine(U,G,Q)?1:-1}function w(X){return y.findTransition(function(J){var U=_(X,J.ev);return U>0})}function T(X,J){var U=X.seg,H=J.seg,G=U.start,Q=U.end,K=H.start,ie=H.end;t&&t.checkIntersection(U,H);var he=r.linesIntersect(G,Q,K,ie);if(he===!1){if(!r.pointsCollinear(G,Q,K)||r.pointsSame(G,ie)||r.pointsSame(Q,K))return!1;var me=r.pointsSame(G,K),ke=r.pointsSame(Q,ie);if(me&&ke)return J;var ee=!me&&r.pointBetween(G,K,ie),Le=!ke&&r.pointBetween(Q,K,ie);if(me)return Le?h(J,Q):h(X,ie),J;ee&&(ke||(Le?h(J,Q):h(X,ie)),h(J,G))}else he.alongA===0&&(he.alongB===-1?h(X,K):he.alongB===0?h(X,he.pt):he.alongB===1&&h(X,ie)),he.alongB===0&&(he.alongA===-1?h(J,G):he.alongA===0?h(J,he.pt):he.alongA===1&&h(J,Q));return!1}for(var b=[];!i.isEmpty();){var A=i.getHead();if(t&&t.vert(A.pt[0]),A.isStart){let X=function(){if(k){var J=T(A,k);if(J)return J}return q?T(A,q):!1};var O=X;t&&t.segmentNew(A.seg,A.primary);var C=w(A),k=C.before?C.before.ev:null,q=C.after?C.after.ev:null;t&&t.tempStatus(A.seg,k?k.seg:!1,q?q.seg:!1);var D=X();if(D){if(e){var R;A.seg.myFill.below===null?R=!0:R=A.seg.myFill.above!==A.seg.myFill.below,R&&(D.seg.myFill.above=!D.seg.myFill.above)}else D.seg.otherFill=A.seg.myFill;t&&t.segmentUpdate(D.seg),A.other.remove(),A.remove()}if(i.getHead()!==A){t&&t.rewind(A.seg);continue}if(e){var R;A.seg.myFill.below===null?R=!0:R=A.seg.myFill.above!==A.seg.myFill.below,q?A.seg.myFill.below=q.seg.myFill.above:A.seg.myFill.below=m,R?A.seg.myFill.above=!A.seg.myFill.below:A.seg.myFill.above=A.seg.myFill.below}else if(A.seg.otherFill===null){var z;q?A.primary===q.primary?z=q.seg.otherFill.above:z=q.seg.myFill.above:z=A.primary?g:m,A.seg.otherFill={above:z,below:z}}t&&t.status(A.seg,k?k.seg:!1,q?q.seg:!1),A.other.status=C.insert(Df.node({ev:A}))}else{var F=A.status;if(F===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(F.prev)&&y.exists(F.next)&&T(F.prev.ev,F.next.ev),t&&t.statusRemove(F.ev.seg),F.remove(),!A.primary){var I=A.seg.myFill;A.seg.myFill=A.seg.otherFill,A.seg.otherFill=I}b.push(A.seg)}i.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(m){for(var g,y=m[m.length-1],_=0;_{function qX(e,r,t){var a=[],n=[];return e.forEach(function(i){var l=i.start,o=i.end;if(r.pointsSame(l,o)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function v(O,X,J){return f.index=O,f.matches_head=X,f.matches_pt1=J,f===s?(f=u,!1):(f=null,!0)}for(var h=0;h{function Ef(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var DX={union:function(e,r){return Ef(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Ef(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Ef(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Ef(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Ef(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};JM.exports=DX});var $M=Z((lue,QM)=>{var EX={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function l(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var o=l(i[0]),s=1;s{var PX=OM(),RX=YM(),jM=WM(),zX=XM(),Pf=KM(),eA=$M(),Ln=!1,Rf=RX(),ja;ja={buildLog:function(e){return e===!0?Ln=PX():e===!1&&(Ln=!1),Ln===!1?!1:Ln.list},epsilon:function(e){return Rf.epsilon(e)},segments:function(e){var r=jM(!0,Rf,Ln);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=jM(!1,Rf,Ln);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Pf.union(e.combined,Ln),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Pf.intersect(e.combined,Ln),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Pf.difference(e.combined,Ln),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Pf.differenceRev(e.combined,Ln),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Pf.xor(e.combined,Ln),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:zX(e.segments,Rf,Ln),inverted:e.inverted}},polygonFromGeoJSON:function(e){return eA.toPolygon(ja,e)},polygonToGeoJSON:function(e){return eA.fromPolygon(ja,Rf,e)},union:function(e,r){return zf(e,r,ja.selectUnion)},intersect:function(e,r){return zf(e,r,ja.selectIntersect)},difference:function(e,r){return zf(e,r,ja.selectDifference)},differenceRev:function(e,r){return zf(e,r,ja.selectDifferenceRev)},xor:function(e,r){return zf(e,r,ja.selectXor)}};function zf(e,r,t){var a=ja.segments(e),n=ja.segments(r),i=ja.combine(a,n),l=t(i);return ja.polygon(l)}typeof window=="object"&&(window.PolyBool=ja);rA.exports=ja});var nA=Z((sue,aA)=>{aA.exports=function(r,t,a,n){var i=r[0],l=r[1],o=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;ul!=m>l&&i<(d-v)*(l-h)/(m-h)+v;g&&(o=!o)}return o}});var $y=Z((uue,iA)=>{"use strict";var Qy=Tv().dot,Th=Gt().BADNUM,Mh=iA.exports={};Mh.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],l=i,o;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),o=1;on||_===Th||_l||g&&u(m))}function v(m,g){var y=m[0],_=m[1];if(y===Th||yn||_===Th||_l)return!1;var w=t.length,T=t[0][0],b=t[0][1],A=0,C,k,q,D,R;for(C=1;CMath.max(k,T)||_>Math.max(q,b)))if(_o||Math.abs(Qy(v,u))>n)return!0;return!1};Mh.filter=function(r,t){var a=[r[0]],n=0,i=0;function l(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var v=f+1;v1){var o=r.pop();l(o)}return{addPt:l,raw:r,filtered:a}}});var oA=Z((fue,lA)=>{"use strict";lA.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var LA=Z((cue,CA)=>{"use strict";var sA=tA(),NX=nA(),If=br(),FX=at().dashStyle,Nf=Er(),IX=Si(),HX=xi().makeEventData,Uf=Vs(),OX=Uf.freeMode,BX=Uf.rectMode,Hf=Uf.drawMode,tg=Uf.openMode,ag=Uf.selectMode,uA=Al(),fA=Mf(),pA=uh(),mA=pl().clearOutline,yA=Tl(),jy=yA.handleEllipse,YX=yA.readPaths,UX=ih().newShapes,GX=Ay(),VX=Ky().activateLastSelection,kh=Ie(),WX=kh.sorterAsc,gA=$y(),Ff=zv(),qn=Zt().getFromId,ZX=Q0(),XX=xh().redrawReglTraces,Sh=oA(),Li=Sh.MINSELECT,JX=gA.filter,ng=gA.tester,ig=rh(),cA=ig.p2r,KX=ig.axValue,QX=ig.getTransform;function lg(e){return e.subplot!==void 0}function $X(e,r,t,a,n){var i=!lg(a),l=OX(n),o=BX(n),s=tg(n),u=Hf(n),f=ag(n),v=n==="drawline",h=n==="drawcircle",d=v||h,m=a.gd,g=m._fullLayout,y=f&&g.newselection.mode==="immediate"&&i,_=g._zoomlayer,w=a.element.getBoundingClientRect(),T=a.plotinfo,b=QX(T),A=r-w.left,C=t-w.top;g._calcInverseTransform(m);var k=kh.apply3DTransform(g._invTransform)(A,C);A=k[0],C=k[1];var q=g._invScaleX,D=g._invScaleY,R=A,z=C,F="M"+A+","+C,I=a.xaxes[0],O=a.yaxes[0],X=I._length,J=O._length,U=e.altKey&&!(Hf(n)&&s),H,G,Q,K,ie,he,me;xA(e,m,a),l&&(H=JX([[A,C]],Sh.BENDPX));var ke=_.selectAll("path.select-outline-"+T.id).data([1]),ee=u?g.newshape:g.newselection;u&&(a.hasText=ee.label.text||ee.label.texttemplate);var Le=u&&!s?ee.fillcolor:"rgba(0,0,0,0)",fe=ee.line.color||(i?Nf.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");ke.enter().append("path").attr("class","select-outline select-outline-"+T.id).style({opacity:u?ee.opacity/2:1,"stroke-dasharray":FX(ee.line.dash,ee.line.width),"stroke-width":ee.line.width+"px","shape-rendering":"crispEdges"}).call(Nf.stroke,fe).call(Nf.fill,Le).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",F+"Z");var be=_.append("path").attr("class","zoombox-corners").style({fill:Nf.background,stroke:Nf.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&a.hasText){var se=_.select(".label-temp");se.empty()&&(se=_.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Ae=g._uid+Sh.SELECTID,Y=[],re=Ch(m,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var ge=I._id,Me=O._id;AA(m,ge,Me,re);for(var ye=(m.layout||{}).selections||[],Re=[],Ne=!1,Ee=0;Ee=0){m._fullLayout._deactivateShape(m);return}if(!u){var ye=g.clickmode;Ff.done(Ae).then(function(){if(Ff.clear(Ae),ge===2){for(ke.remove(),ie=0;ie-1&&bA(Me,m,a.xaxes,a.yaxes,a.subplot,a,ke),ye==="event"&&Yf(m,void 0);IX.click(m,Me,T.id)}).catch(kh.error)}},a.doneFn=function(){be.remove(),Ff.done(Ae).then(function(){Ff.clear(Ae),!y&&K&&a.selectionDefs&&(K.subtract=U,a.selectionDefs.push(K),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,Q)),(y||u)&&Of(a,y),a.doneFnCompleted&&a.doneFnCompleted(Y),f&&Yf(m,me)}).catch(kh.error)}}function bA(e,r,t,a,n,i,l){var o=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,v=[],h,d,m,g,y,_,w,T,b,A;if(aJ(o)){xA(e,r,i),h=Ch(r,t,a,n);var C=nJ(o,h),k=C.pointNumbers.length>0;if(k?iJ(h,C):lJ(h)&&(w=hA(C))){for(l&&l.remove(),A=0;A=0}function tJ(e){return e._fullLayout._activeSelectionIndex>=0}function Of(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;rJ(n)&&n._fullLayout._deactivateShape(n),tJ(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,l=i._zoomlayer,o=Hf(t),s=ag(t);if(o||s){var u=l.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;o&&(f=UX(u,e)),f&&If.call("_guiRelayout",n,{shapes:f});var v;s&&!lg(e)&&(v=GX(u,e)),v&&(n._fullLayout._noEmitSelectedAtStart=!0,If.call("_guiRelayout",n,{selections:v}).then(function(){r&&VX(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function vA(e){return e._id}function Ch(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(vA),l=t.map(vA),o,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function iJ(e,r){var t=[],a,n,i,l;for(l=0;l0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(l=0;l1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function Bf(e,r,t){var a;for(a=0;a-1&&r;if(!l&&r){var ge=dA(e,!0);if(ge.length){var Me=ge[0].xref,ye=ge[0].yref;if(Me&&ye){var Re=kA(ge),Ne=SA([qn(e,Me,"x"),qn(e,ye,"y")]);Ne(Y,Re)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:B&&Yf(e,Y),h._reselect=!1}if(!l&&h._deselect){var Ee=h._deselect;o=Ee.xref,s=Ee.yref,uJ(o,s,f)||AA(e,o,s,a),B&&(Y.points.length?Yf(e,Y):ug(e)),h._deselect=!1}return{eventData:Y,selectionTesters:t}}function sJ(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";qA.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Gf=Z((hue,DA)=>{"use strict";DA.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var js=Z((pue,RA)=>{"use strict";var EA=fg(),PA=ma(),Lh=ya(),dJ=ct().templatedArray,due=Gf();RA.exports=dJ("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:PA({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:EA.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:EA.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Lh.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Lh.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Lh.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Lh.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:PA({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var qh=Z((mue,zA)=>{"use strict";zA.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var FA=Z((yue,NA)=>{"use strict";NA.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var qo=Z((gue,UA)=>{"use strict";var IA=r0().axisHoverFormat,pJ=yi().texttemplateAttrs,mJ=yi().hovertemplateAttrs,HA=sf(),yJ=ma(),gJ=mi().dash,bJ=mi().pattern,xJ=at(),_J=qh(),Dh=Vt().extendFlat,wJ=FA();function OA(e){return{valType:"any",dflt:0,editType:"calc"}}function BA(e){return{valType:"any",editType:"calc"}}function YA(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}UA.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:OA("x"),yperiod:OA("y"),xperiod0:BA("x0"),yperiod0:BA("y0"),xperiodalignment:YA("x"),yperiodalignment:YA("y"),xhoverformat:IA("x"),yhoverformat:IA("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:pJ({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:mJ({},{keys:_J.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Dh({},gJ,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:wJ(!0),fillgradient:Dh({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:bJ,marker:Dh({symbol:{valType:"enumerated",values:xJ.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Dh({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},HA("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},HA("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:yJ({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var cg=Z((xue,WA)=>{"use strict";var GA=js(),VA=qo().line,TJ=mi().dash,Eh=Vt().extendFlat,MJ=pi().overrideAll,AJ=ct().templatedArray,bue=Gf();WA.exports=MJ(AJ("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Eh({},GA.xref,{}),yref:Eh({},GA.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:VA.color,width:Eh({},VA.width,{min:1,dflt:1}),dash:Eh({},TJ,{dflt:"dot"})}}),"arraydraw","from-root")});var KA=Z((_ue,JA)=>{"use strict";var ZA=Ie(),Ph=dt(),kJ=Jn(),SJ=cg(),XA=Al();JA.exports=function(r,t){kJ(r,t,{name:"selections",handleItemDefaults:CJ});for(var a=t.selections,n=0;n{"use strict";QA.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var Vf=Z((Tue,rk)=>{"use strict";var LJ=br(),jA=Ie(),ek=Zt();rk.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=LJ.subplotsRegistry.cartesian,o=l.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,v=s.cartesian,h=n._has("cartesian"),d=0;d{"use strict";var tk=Ky(),Wf=LA();ak.exports={moduleType:"component",name:"selections",layoutAttributes:cg(),supplyLayoutDefaults:KA(),supplyDrawNewSelectionDefaults:$A(),includeBasePlot:Vf()("selections"),draw:tk.draw,drawOne:tk.drawOne,reselect:Wf.reselect,prepSelect:Wf.prepSelect,clearOutline:Wf.clearOutline,clearSelectionsCache:Wf.clearSelectionsCache,selectOnClick:Wf.selectOnClick}});var Mk=Z((Aue,Tk)=>{"use strict";var mg=Ir(),Dn=Ie(),nk=Dn.numberFormat,qJ=bn(),DJ=Km(),Rh=br(),hk=Dn.strTranslate,EJ=Ta(),ik=Er(),Sl=at(),PJ=Si(),lk=dt(),RJ=wl(),zJ=Qn(),dk=Vs(),zh=dk.selectingOrDrawing,NJ=dk.freeMode,FJ=Pa().FROM_TL,IJ=Q0(),HJ=xh().redrawReglTraces,OJ=Nt(),hg=Zt().getFromId,BJ=eu().prepSelect,YJ=eu().clearOutline,UJ=eu().selectOnClick,vg=Yy(),yg=ya(),ok=yg.MINDRAG,Ya=yg.MINZOOM,sk=!0;function GJ(e,r,t,a,n,i,l,o){var s=e._fullLayout._zoomlayer,u=l+o==="nsew",f=(l+o).length===1,v,h,d,m,g,y,_,w,T,b,A,C,k,q,D,R,z,F,I,O,X,J,U;t+=r.yaxis._shift;function H(){if(v=r.xaxis,h=r.yaxis,T=v._length,b=h._length,_=v._offset,w=h._offset,d={},d[v._id]=v,m={},m[h._id]=h,l&&o)for(var le=r.overlays,Se=0;Se=0){Fe._fullLayout._deactivateShape(Fe);return}var We=Fe._fullLayout.clickmode;if(pg(Fe),le===2&&!f&&Oe(),u)We.indexOf("select")>-1&&UJ(Se,Fe,g,y,r.id,K),We.indexOf("event")>-1&&PJ.click(Fe,Se,r.id);else if(le===1&&f){var Ge=l?h:v,Je=l==="s"||o==="w"?0:1,je=Ge._name+".range["+Je+"]",vr=VJ(Ge,Je),Ke="left",Pe="middle";if(Ge.fixedrange)return;l?(Pe=l==="n"?"top":"bottom",Ge.side==="right"&&(Ke="right")):o==="e"&&(Ke="right"),Fe._context.showAxisRangeEntryBoxes&&mg.select(Q).call(EJ.makeEditable,{gd:Fe,immediate:!0,background:Fe._fullLayout.paper_bgcolor,text:String(vr),fill:Ge.tickfont?Ge.tickfont.color:"#444",horizontalAlign:Ke,verticalAlign:Pe}).on("edit",function(ae){var ue=Ge.d2r(ae);ue!==void 0&&Rh.call("_guiRelayout",Fe,je,ue)})}}zJ.init(K);var me,ke,ee,Le,fe,be,se,Ae,Y,re;function B(le,Se,Fe){var We=Q.getBoundingClientRect();me=Se-We.left,ke=Fe-We.top,e._fullLayout._calcInverseTransform(e);var Ge=Dn.apply3DTransform(e._fullLayout._invTransform)(me,ke);me=Ge[0],ke=Ge[1],ee={l:me,r:me,w:0,t:ke,b:ke,h:0},Le=e._hmpixcount?e._hmlumcount/e._hmpixcount:qJ(e._fullLayout.plot_bgcolor).getLuminance(),fe="M0,0H"+T+"V"+b+"H0V0",be=!1,se="xy",re=!1,Ae=yk(s,Le,_,w,fe),Y=gk(s,_,w)}function ge(le,Se){if(e._transitioningWithDuration)return!1;var Fe=Math.max(0,Math.min(T,J*le+me)),We=Math.max(0,Math.min(b,U*Se+ke)),Ge=Math.abs(Fe-me),Je=Math.abs(We-ke);ee.l=Math.min(me,Fe),ee.r=Math.max(me,Fe),ee.t=Math.min(ke,We),ee.b=Math.max(ke,We);function je(){se="",ee.r=ee.l,ee.t=ee.b,Y.attr("d","M0,0Z")}if(A.isSubplotConstrained)Ge>Ya||Je>Ya?(se="xy",Ge/T>Je/b?(Je=Ge*b/T,ke>We?ee.t=ke-Je:ee.b=ke+Je):(Ge=Je*T/b,me>Fe?ee.l=me-Ge:ee.r=me+Ge),Y.attr("d",Nh(ee))):je();else if(C.isSubplotConstrained)if(Ge>Ya||Je>Ya){se="xy";var vr=Math.min(ee.l/T,(b-ee.b)/b),Ke=Math.max(ee.r/T,(b-ee.t)/b);ee.l=vr*T,ee.r=Ke*T,ee.b=(1-vr)*b,ee.t=(1-Ke)*b,Y.attr("d",Nh(ee))}else je();else!q||Je0){var ae;if(C.isSubplotConstrained||!k&&q.length===1){for(ae=0;ae1&&(je.maxallowed!==void 0&&R===(je.range[0]1&&(vr.maxallowed!==void 0&&z===(vr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function ZJ(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function yk(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",hk(t,a)).attr("d",n+"Z")}function gk(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:ik.background,stroke:ik.defaultLine,"stroke-width":1,opacity:0}).attr("transform",hk(r,t)).attr("d","M0,0Z")}function bk(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),xk(e,r,n,i)}function xk(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function pg(e){mg.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function _k(e){sk&&e.data&&e._context.showTips&&(Dn.notifier(Dn._(e,"Double-click to zoom back out"),"long"),sk=!1)}function XJ(e,r){return"M"+(e.l-.5)+","+(r-Ya-.5)+"h-3v"+(2*Ya+1)+"h3ZM"+(e.r+.5)+","+(r-Ya-.5)+"h3v"+(2*Ya+1)+"h-3Z"}function JJ(e,r){return"M"+(r-Ya-.5)+","+(e.t-.5)+"v-3h"+(2*Ya+1)+"v3ZM"+(r-Ya-.5)+","+(e.b+.5)+"v3h"+(2*Ya+1)+"v-3Z"}function Nh(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Ya)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function ck(e,r,t,a,n){for(var i=!1,l={},o={},s,u,f,v,h=(n||{}).xaHash,d=(n||{}).yaHash,m=0;m{"use strict";var KJ=Ir(),Fh=Si(),QJ=Qn(),$J=wl(),ei=Mk().makeDragBox,ta=ya().DRAGGERSIZE;Ih.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){KJ.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,l){if((t._plots[i].mainplot&&!0)===(t._plots[l].mainplot&&!0)){var o=i.split("y"),s=l.split("y");return o[0]===s[0]?Number(o[1]||1)-Number(s[1]||1):Number(o[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var l=t._plots[i],o=l.xaxis,s=l.yaxis;if(!l.mainplot){var u=ei(r,l,o._offset,s._offset,o._length,s._length,"ns","ew");u.onmousemove=function(h){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Fh.hover(r,h,i)},Fh.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,QJ.unhover(r,h))},r._context.showAxisDragHandles&&(ei(r,l,o._offset-ta,s._offset-ta,ta,ta,"n","w"),ei(r,l,o._offset+o._length,s._offset-ta,ta,ta,"n","e"),ei(r,l,o._offset-ta,s._offset+s._length,ta,ta,"s","w"),ei(r,l,o._offset+o._length,s._offset+s._length,ta,ta,"s","e"))}if(r._context.showAxisDragHandles){if(i===o._mainSubplot){var f=o._mainLinePosition;o.side==="top"&&(f-=ta),ei(r,l,o._offset+o._length*.1,f,o._length*.8,ta,"","ew"),ei(r,l,o._offset,f,o._length*.1,ta,"","w"),ei(r,l,o._offset+o._length*.9,f,o._length*.1,ta,"","e")}if(i===s._mainSubplot){var v=s._mainLinePosition;s.side!=="right"&&(v-=ta),ei(r,l,v,s._offset+s._length*.1,ta,s._length*.8,"ns",""),ei(r,l,v,s._offset+s._length*.9,ta,s._length*.1,"s",""),ei(r,l,v,s._offset,ta,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Fh.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Fh.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Ih.updateFx(r)}};Ih.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";$J(r._draggers,t)}});var Sk=Z((Sue,kk)=>{"use strict";var Ak=br();kk.exports=function(r){for(var t=Ak.layoutArrayContainers,a=Ak.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o{"use strict";var jJ=nl(),bg=wv(),Zf=ro(),eK=hp().sorterAsc,xg=br();Xf.containerArrayMatch=Sk();var rK=Xf.isAddVal=function(r){return r==="add"||jJ(r)},Ck=Xf.isRemoveVal=function(r){return r===null||r==="remove"};Xf.applyContainerArrayChanges=function(r,t,a,n,i){var l=t.astr,o=xg.getComponentMethod(l,"supplyLayoutDefaults"),s=xg.getComponentMethod(l,"draw"),u=xg.getComponentMethod(l,"drawOne"),f=n.replot||n.recalc||o===bg||s===bg,v=r.layout,h=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Zf.warn("Full array edits are incompatible with other edits",l);var d=a[""][""];if(Ck(d))t.set(null);else if(Array.isArray(d))t.set(d);else return Zf.warn("Unrecognized full array edit value",l,d),!0;return f?!1:(o(v,h),s(r),!0)}var m=Object.keys(a).map(Number).sort(eK),g=t.get(),y=g||[],_=i(h,l).get(),w=[],T=-1,b=y.length,A,C,k,q,D,R,z,F;for(A=0;Ay.length-(z?0:1)){Zf.warn("index out of range",l,k);continue}if(R!==void 0)D.length>1&&Zf.warn("Insertion & removal are incompatible with edits to the same index.",l,k),Ck(R)?w.push(k):z?(R==="add"&&(R={}),y.splice(k,0,R),_&&_.splice(k,0,{})):Zf.warn("Unrecognized full object edit value",l,k,R),T===-1&&(T=k);else for(C=0;C=0;A--)y.splice(w[A],1),_&&_.splice(w[A],1);if(y.length?g||t.set(y):t.set(null),f)return!1;if(o(v,h),u!==bg){var I;if(T===-1)I=m;else{for(b=Math.max(y.length,b),I=[],A=0;A=T));A++)I.push(k);for(A=T;A{"use strict";var Pk=Hr(),Lue=ap(),Rk=br(),en=Ie(),Jf=Nt(),zk=Zt(),Nk=Er(),Kf=zk.cleanId,tK=zk.getFromTrace,_g=Rk.traceIs;ri.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&en.log("Clearing previous rejected promises from queue."),e._promises=[]};ri.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(Jf.subplotsRegistry.cartesian||{}).attrRegex,n=(Jf.subplotsRegistry.polar||{}).attrRegex,i=(Jf.subplotsRegistry.ternary||{}).attrRegex,l=(Jf.subplotsRegistry.gl3d||{}).attrRegex,o=Object.keys(e);for(r=0;r3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),Nk.clean(e),e.template&&e.template.layout&&ri.cleanLayout(e.template.layout),e};function ru(e,r){var t=e[r],a=r.charAt(0);t&&t!=="paper"&&(e[r]=Kf(t,a,!0))}ri.cleanData=function(e){for(var r=0;r0)return e.substr(0,r)}ri.hasParent=function(e,r){for(var t=Ek(r);t;){if(t in e)return!0;t=Ek(t)}return!1};var iK=["x","y","z"];ri.clearAxisTypes=function(e,r,t){for(var a=0;a{"use strict";var Yh=Ir(),lK=Hr(),oK=Sp(),Qe=Ie(),ut=Qe.nestedProperty,Mg=rf(),Ua=p6(),En=br(),Jh=As(),xr=Nt(),Ia=dt(),sK=Jm(),uK=Xn(),wg=at(),fK=Er(),cK=gg().initInteractions,vK=fo(),hK=eu().clearOutline,Yk=eo().dfltConfig,Oh=Lk(),Bt=Fk(),jr=xh(),Cl=pi(),dK=ya().AX_NAME_PATTERN,Tg=0,Ik=5;function pK(e,r,t,a){var n;if(e=Qe.getGraphDiv(e),Mg.init(e),Qe.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var l=Mg.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(l===!1)return Promise.reject();!r&&!t&&!Qe.isPlotDiv(e)&&Qe.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function o(){if(n)return Gr.addFrames(e,n)}Gk(e,a),t||(t={}),Yh.select(e).classed("js-plotly-plot",!0),wg.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Bt.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=Bt.cleanLayout(t)),xr.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(IK(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),wg.initGradients(e),wg.initPatterns(e),s&&Ia.saveShowSpikeInitial(e);var v=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;v&&xr.doCalcdata(e);for(var h=0;h=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function Vk(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),Gh(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Gh(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function xK(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof q.parts[z]!="string";)z--;var F=q.parts[z],I=q.parts[z-1]+"."+F,O=q.parts.slice(0,z).join("."),X=ut(e.layout,O).get(),J=ut(a,O).get(),U=q.get();if(D!==void 0){_[k]=D,w[k]=F==="reverse"?D:Xi(U);var H=Jh.getLayoutValObject(a,q.parts);if(H&&H.impliedEdits&&D!==null)for(var G in H.impliedEdits)T(Qe.relativeAttr(k,G),H.impliedEdits[G]);if(["width","height"].indexOf(k)!==-1)if(D){T("autosize",null);var Q=k==="height"?"width":"height";T(Q,a[Q])}else a[k]=e._initialAutoSize[k];else if(k==="autosize")T("width",D?null:a.width),T("height",D?null:a.height);else if(I.match(eS))C(I),ut(a,O+"._inputRange").set(null);else if(I.match(rS)){C(I),ut(a,O+"._inputRange").set(null);var K=ut(a,O).get();K._inputDomain&&(K._input.domain=K._inputDomain.slice())}else I.match(MK)&&ut(a,O+"._inputDomain").set(null);if(F==="type"){A=X;var ie=J.type==="linear"&&D==="log",he=J.type==="log"&&D==="linear";if(ie||he){if(!A||!A.range)T(O+".autorange",!0);else if(J.autorange)ie&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var me=A.range[0],ke=A.range[1];ie?(me<=0&&ke<=0&&T(O+".autorange",!0),me<=0?me=ke/1e6:ke<=0&&(ke=me/1e6),T(O+".range[0]",Math.log(me)/Math.LN10),T(O+".range[1]",Math.log(ke)/Math.LN10)):(T(O+".range[0]",Math.pow(10,me)),T(O+".range[1]",Math.pow(10,ke)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[q.parts[0]]&&q.parts[1]==="radialaxis"&&delete a[q.parts[0]]._subplot.viewInitial["radialaxis.range"],En.getComponentMethod("annotations","convertCoords")(e,J,D,T),En.getComponentMethod("images","convertCoords")(e,J,D,T)}else T(O+".autorange",!0),T(O+".range",null);ut(a,O+"._inputRange").set(null)}else if(F.match(dK)){var ee=ut(a,k).get(),Le=(D||{}).type;(!Le||Le==="-")&&(Le="linear"),En.getComponentMethod("annotations","convertCoords")(e,ee,Le,T),En.getComponentMethod("images","convertCoords")(e,ee,Le,T)}var fe=Oh.containerArrayMatch(k);if(fe){f=fe.array,v=fe.index;var be=fe.property,se=H||{editType:"calc"};v!==""&&be===""&&(Oh.isAddVal(D)?w[k]=null:Oh.isRemoveVal(D)?w[k]=(ut(t,f).get()||[])[v]:Qe.warn("unrecognized full object value",r)),Cl.update(y,se),u[f]||(u[f]={});var Ae=u[f][v];Ae||(Ae=u[f][v]={}),Ae[be]=D,delete r[k]}else F==="reverse"?(X.range?X.range.reverse():(T(O+".autorange",!0),X.range=[1,0]),J.autorange?y.calc=!0:y.plot=!0):(k==="dragmode"&&(D===!1&&U!==!1||D!==!1&&U===!1)||a._has("scatter-like")&&a._has("regl")&&k==="dragmode"&&(D==="lasso"||D==="select")&&!(U==="lasso"||U==="select")?y.plot=!0:H?Cl.update(y,H):y.calc=!0,q.set(D))}}for(f in u){var Y=Oh.applyContainerArrayChanges(e,i(t,f),u[f],y,i);Y||(y.plot=!0)}for(var re in b){A=Ia.getFromId(e,re);var B=A&&A._constraintGroup;if(B){y.calc=!0;for(var ge in B)b[ge]||(Ia.getFromId(e,ge)._constraintShrinkable=!0)}}(aS(e)||r.height||r.width)&&(y.plot=!0);var Me=a.shapes;for(v=0;v1;)if(a.pop(),t=ut(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function SK(e,r){for(var t=0;t=n.length?n[0]:n[u]:n}function o(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var v=0;return function(){if(u&&++v===f)return u()}}return new Promise(function(u,f){function v(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var F=a._frameQueue.pop();F.onInterrupt&&F.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(F){if(F.length!==0){for(var I=0;Ia._timeToNext&&m()};F()}var y=0;function _(F){return Array.isArray(n)?y>=n.length?F.transitionOpts=n[y]:F.transitionOpts=n[0]:F.transitionOpts=n,y++,F}var w,T,b=[],A=r==null,C=Array.isArray(r),k=!A&&!C&&Qe.isPlainObject(r);if(k)b.push({type:"object",data:_(Qe.extendFlat({},r))});else if(A||["string","number"].indexOf(typeof r)!==-1)for(w=0;w0&&RR)&&z.push(T);b=z}}b.length>0?h(b):(e.emit("plotly_animated"),u())})}function RK(e,r,t){if(e=Qe.getGraphDiv(e),r==null)return Promise.resolve();if(!Qe.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,l,o=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=o.length+r.length*2,f=[],v={};for(a=r.length-1;a>=0;a--)if(Qe.isPlainObject(r[a])){var h=r[a].name,d=(s[h]||v[h]||{}).name,m=r[a].name,g=s[d]||v[d];d&&m&&typeof m=="number"&&g&&Tgq.index?-1:k.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&Qe.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),l.unshift({type:"insert",index:a,value:n[a]});var o=xr.modifyFrames,s=xr.modifyFrames,u=[e,l],f=[e,i];return Ua&&Ua.add(e,o,u,s,f),xr.modifyFrames(e,i)}function NK(e){e=Qe.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return xr.cleanPlot([],{},t,r),xr.purge(e),Mg.purge(e),r._container&&r._container.remove(),delete e._context,e}function FK(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Qe.equalDomRects(t,r._lastBBox)){var a=r._invTransform=Qe.inverseTransformMatrix(Qe.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function IK(e){var r=Yh.select(e),t=e._fullLayout;if(t._calcInverseTransform=FK,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};Yh.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=Qe.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(vK.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Gr.animate=PK;Gr.addFrames=RK;Gr.deleteFrames=zK;Gr.addTraces=Kk;Gr.deleteTraces=Qk;Gr.extendTraces=Xk;Gr.moveTraces=Ag;Gr.prependTraces=Jk;Gr.newPlot=bK;Gr._doPlot=pK;Gr.purge=NK;Gr.react=qK;Gr.redraw=gK;Gr.relayout=Qf;Gr.restyle=Vh;Gr.setPlotConfig=mK;Gr.update=Zh;Gr._guiRelayout=Sg(Qf);Gr._guiRestyle=Sg(Vh);Gr._guiUpdate=Sg(Zh);Gr._storeDirectGUIEdit=TK});var Do=Z(qi=>{"use strict";var HK=br();qi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};qi.getRedrawFunc=function(e){return function(){HK.getComponentMethod("colorbar","draw")(e)}};qi.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};qi.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var nS=window.URL||window.webkitURL;qi.createObjectURL=function(e){return nS.createObjectURL(e)};qi.revokeObjectURL=function(e){return nS.revokeObjectURL(e)};qi.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=OK(window.atob(e));return new window.Blob([t],{type:"image/"+r})};qi.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function OK(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var qg=Ir(),Pue=Ie(),BK=at(),YK=Er(),Rue=fo(),Lg=/"/g,jf="TOBESTRIPPED",UK=new RegExp('("'+jf+")|("+jf+'")',"g");function GK(e){var r=qg.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(a){return a==="<"?"<":a==="&rt;"?">":a.indexOf("<")!==-1||a.indexOf(">")!==-1?"":r.html(a).text()});return r.remove(),t}function VK(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}iS.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,l=n._toppaper,o=n.width,s=n.height,u;i.insert("rect",":first-child").call(BK.setRect,0,0,o,s).call(YK.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var WK=Ie(),ZK=Yv().EventEmitter,ec=Do();function XK(e){var r=e.emitter||new ZK,t=new Promise(function(a,n){var i=window.Image,l=e.svg,o=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,v=e.height||150,h=u*f,d=u*v,m=s.getContext("2d",{willReadFrequently:!0}),g=new i,y,_;o==="svg"||WK.isSafari()?_=ec.encodeSVG(l):(y=ec.createBlob(l,"svg"),_=ec.createObjectURL(y)),s.width=h,s.height=d,g.onload=function(){var w;switch(y=null,ec.revokeObjectURL(_),o!=="svg"&&m.drawImage(g,0,0,h,d),o){case"jpeg":w=s.toDataURL("image/jpeg");break;case"png":w=s.toDataURL("image/png");break;case"webp":w=s.toDataURL("image/webp");break;case"svg":w=_;break;default:var T="Image format is not jpeg, png, svg or webp.";if(n(new Error(T)),!e.promise)return r.emit("error",T)}a(w),e.promise||r.emit("success",w)},g.onerror=function(w){if(y=null,ec.revokeObjectURL(_),n(w),!e.promise)return r.emit("error",w)},g.src=_});return e.promise?t:r}lS.exports=XK});var Eg=Z((Fue,uS)=>{"use strict";var oS=Hr(),sS=Cg(),JK=Nt(),Di=Ie(),rc=Do(),KK=Qh(),QK=$h(),$K=iv().version,Dg={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function jK(e,r){r=r||{};var t,a,n,i;Di.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Di.getGraphDiv(e),t=Di.extendDeep([],e.data),a=Di.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function l(C){return!(C in r)||Di.validate(r[C],Dg[C])}if(!l("width")&&r.width!==null||!l("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+Di.join2(Dg.format.values,", "," or ")+".");var o={};function s(C,k){return Di.coerce(r,o,Dg,C,k)}var u=s("format"),f=s("width"),v=s("height"),h=s("scale"),d=s("setBackground"),m=s("imageDataOnly"),g=document.createElement("div");g.style.position="absolute",g.style.left="-5000px",document.body.appendChild(g);var y=Di.extendFlat({},a);f?y.width=f:r.width===null&&oS(i.width)&&(y.width=i.width),v?y.height=v:r.height===null&&oS(i.height)&&(y.height=i.height);var _=Di.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),w=rc.getRedrawFunc(g);function T(){return new Promise(function(C){setTimeout(C,rc.getDelay(g._fullLayout))})}function b(){return new Promise(function(C,k){var q=KK(g,u,h),D=g._fullLayout.width,R=g._fullLayout.height;function z(){sS.purge(g),document.body.removeChild(g)}if(u==="full-json"){var F=JK.graphJson(g,!1,"keepdata","object",!0,!0);return F.version=$K,F=JSON.stringify(F),z(),C(m?F:rc.encodeJSON(F))}if(z(),u==="svg")return C(m?q:rc.encodeSVG(q));var I=document.createElement("canvas");I.id=Di.randstr(),QK({format:u,width:D,height:R,scale:h,canvas:I,svg:q,promise:!0}).then(C).catch(k)})}function A(C){return m?C.replace(rc.IMAGE_URL_PREFIX,""):C}return new Promise(function(C,k){sS.newPlot(g,t,y,_).then(w).then(T).then(b).then(function(q){C(A(q))}).catch(function(q){k(q)})})}uS.exports=jK});var vS=Z((Iue,cS)=>{"use strict";var Pn=Ie(),eQ=Nt(),rQ=As(),tQ=eo().dfltConfig,ti=Pn.isPlainObject,Po=Array.isArray,Pg=Pn.isArrayOrTypedArray;cS.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=rQ.get(),n=[],i={_context:Pn.extendFlat({},tQ)},l,o;Po(r)?(i.data=Pn.extendDeep([],r),l=r):(i.data=[],l=[],n.push(aa("array","data"))),ti(t)?(i.layout=Pn.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(aa("object","layout"))),eQ.supplyDefaults(i);for(var s=i._fullData,u=l.length,f=0;fv.length&&a.push(aa("unused",n,u.concat(v.length)));var _=v.length,w=Array.isArray(y);w&&(_=Math.min(_,y.length));var T,b,A,C,k;if(h.dimensions===2)for(b=0;b<_;b++)if(Po(f[b])){f[b].length>v[b].length&&a.push(aa("unused",n,u.concat(b,v[b].length)));var q=v[b].length;for(T=0;T<(w?Math.min(q,y[b].length):q);T++)A=w?y[b][T]:y,C=f[b][T],k=v[b][T],Pn.validate(C,A)?k!==C&&k!==+C&&a.push(aa("dynamic",n,u.concat(b,T),C,k)):a.push(aa("value",n,u.concat(b,T),C))}else a.push(aa("array",n,u.concat(b),f[b]));else for(b=0;b<_;b++)A=w?y[b]:y,C=f[b],k=v[b],Pn.validate(C,A)?k!==C&&k!==+C&&a.push(aa("dynamic",n,u.concat(b),C,k)):a.push(aa("value",n,u.concat(b),C))}else if(h.items&&!m&&Po(f)){var D=y[Object.keys(y)[0]],R=[],z,F;for(z=0;z{"use strict";var uQ=Ie(),ed=Do();function fQ(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(l,o){var s,u;if(n)return s=ed.createBlob(e,t),u=ed.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),ed.revokeObjectURL(u),s=null,l(r);if(uQ.isSafari()){var f=t==="svg"?",":";base64,";return ed.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}hS.exports=fQ});var Rg=Z((Bue,mS)=>{"use strict";var pS=Ie(),cQ=Eg(),vQ=dS(),Oue=Do();function hQ(e,r){var t;return pS.isPlainObject(e)||(t=pS.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=cQ(e,r),l=r.filename||e.fn||"newplot";l+="."+r.format.replace("-","."),i.then(function(o){return t&&(t._snapshotInProgress=!1),vQ(o,l,r.format)}).then(function(o){a(o)}).catch(function(o){t&&(t._snapshotInProgress=!1),n(o)})})}mS.exports=hQ});var _S=Z(zg=>{"use strict";var rn=Ie(),tn=rn.isPlainObject,yS=As(),gS=Nt(),dQ=Gn(),bS=ct(),xS=eo().dfltConfig;zg.makeTemplate=function(e){e=rn.isPlainObject(e)?e:rn.getGraphDiv(e),e=rn.extendDeep({_context:xS},{data:e.data,layout:e.layout}),gS.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var m={};tc(d,m,mQ.bind(null,d));var g=rn.coerce(d,{},dQ,"type"),y=a.data[g];y||(y=a.data[g]=[]),y.push(m)}),tc(t,a.layout,pQ.bind(null,t)),delete a.layout.template;var n=t.template;if(tn(n)){var i=n.layout,l,o,s,u,f,v;tn(i)&&rd(i,a.layout);var h=n.data;if(tn(h)){for(o in a.data)if(s=h[o],Array.isArray(s)){for(f=a.data[o],v=f.length,u=s.length,l=0;l_?l.push({code:"unused",traceType:d,templateCount:y,dataCount:_}):_>y&&l.push({code:"reused",traceType:d,templateCount:y,dataCount:_})}}function w(T,b){for(var A in T)if(A.charAt(0)!=="_"){var C=T[A],k=Rn(T,A,b);tn(C)?(Array.isArray(T)&&C._template===!1&&C.templateitemname&&l.push({code:"missing",path:k,templateitemname:C.templateitemname}),w(C,k)):Array.isArray(C)&&yQ(C)&&w(C,k)}}if(w({data:s,layout:o},""),l.length)return l.map(gQ)};function yQ(e){for(var r=0;r{"use strict";var Jt=Cg();mt._doPlot=Jt._doPlot;mt.newPlot=Jt.newPlot;mt.restyle=Jt.restyle;mt.relayout=Jt.relayout;mt.redraw=Jt.redraw;mt.update=Jt.update;mt._guiRestyle=Jt._guiRestyle;mt._guiRelayout=Jt._guiRelayout;mt._guiUpdate=Jt._guiUpdate;mt._storeDirectGUIEdit=Jt._storeDirectGUIEdit;mt.react=Jt.react;mt.extendTraces=Jt.extendTraces;mt.prependTraces=Jt.prependTraces;mt.addTraces=Jt.addTraces;mt.deleteTraces=Jt.deleteTraces;mt.moveTraces=Jt.moveTraces;mt.purge=Jt.purge;mt.addFrames=Jt.addFrames;mt.deleteFrames=Jt.deleteFrames;mt.animate=Jt.animate;mt.setPlotConfig=Jt.setPlotConfig;var bQ=Wu().getGraphDiv,xQ=hh().eraseActiveShape;mt.deleteActiveShape=function(e){return xQ(bQ(e))};mt.toImage=Eg();mt.validate=vS();mt.downloadImage=Rg();var wS=_S();mt.makeTemplate=wS.makeTemplate;mt.validateTemplate=wS.validateTemplate});var Fg=Z((Gue,MS)=>{"use strict";var Ng=Ie(),_Q=br();MS.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=_Q.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=Ng.minRowLength(i);l?o=Math.min(u,Ng.minRowLength(l)):(o=u,n("y0"),n("dy"))}else{if(!l)return 0;o=Ng.minRowLength(l),n("x0"),n("dx")}return t._length=o,o}});var Ig=Z((Vue,SS)=>{"use strict";var AS=Ie().dateTick0,wQ=Gt(),TQ=wQ.ONEWEEK;function kS(e,r){return e%TQ===0?AS(r,1):AS(r,0)}SS.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",kS(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",kS(o,t.ycalendar)),n("yperiodalignment"))}}});var qS=Z((Wue,LS)=>{"use strict";var CS=["orientation","groupnorm","stackgaps"];LS.exports=function(r,t,a,n){var i=a._scatterStackOpts,l=n("stackgroup");if(l){var o=t.xaxis+t.yaxis,s=i[o];s||(s=i[o]={});var u=s[l],f=!1;u?u.traces.push(t):(u=s[l]={traceIndices:[],traces:[t]},f=!0);for(var v={orientation:t.x&&!t.y?"h":"v"},h=0;h{"use strict";var DS=Er(),ES=Tn().hasColorscale,PS=Ls(),MQ=on();RS.exports=function(r,t,a,n,i,l){var o=MQ.isBubble(r),s=(r.line||{}).color,u;if(l=l||{},s&&(a=s),i("marker.symbol"),i("marker.opacity",o?.7:1),i("marker.size"),l.noAngle||(i("marker.angle"),l.noAngleRef||i("marker.angleref"),l.noStandOff||i("marker.standoff")),i("marker.color",a),ES(r,"marker")&&PS(r,t,n,i,{prefix:"marker.",cLetter:"c"}),l.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),l.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:o?u=DS.background:u=DS.defaultLine,i("marker.line.color",u),ES(r,"marker.line")&&PS(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",o?1:0)),o&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),l.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var FS=Z((Xue,NS)=>{"use strict";var AQ=Ie().isArrayOrTypedArray,kQ=Tn().hasColorscale,SQ=Ls();NS.exports=function(r,t,a,n,i,l){l||(l={});var o=(r.marker||{}).color;if(o&&o._inputArray&&(o=o._inputArray),i("line.color",a),kQ(r,"line"))SQ(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(AQ(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var HS=Z((Jue,IS)=>{"use strict";IS.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var BS=Z((Kue,OS)=>{"use strict";var CQ=Ie();OS.exports=function(e,r,t,a,n){n=n||{},a("textposition"),CQ.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var GS=Z((Que,US)=>{"use strict";var ad=Er(),YS=Ie().isArrayOrTypedArray;function LQ(e){for(var r=ad.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var VS=Ie(),qQ=br(),DQ=qo(),EQ=qh(),tu=on(),PQ=Fg(),RQ=Ig(),zQ=qS(),NQ=zS(),FQ=FS(),WS=HS(),IQ=BS(),HQ=GS(),OQ=Ie().coercePattern;ZS.exports=function(r,t,a,n){function i(d,m){return VS.coerce(r,t,DQ,d,m)}var l=PQ(r,t,n,i);if(l||(t.visible=!1),!!t.visible){RQ(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=zQ(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l{"use strict";var BQ=Cf().getAxisGroup;JS.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=BQ(a,o)+l,u=a._alignmentOpts||{},f=n("alignmentgroup"),v=u[s];v||(v=u[s]={});var h=v[f];h?h.traces.push(t):h=v[f]={traces:[t],alignmentIndex:Object.keys(v).length,offsetGroups:{}};var d=n("offsetgroup")||"",m=h.offsetGroups,g=m[d];t._offsetIndex=0,(i!=="group"||d)&&(g||(g=m[d]={offsetIndex:Object.keys(m).length}),t._offsetIndex=g.offsetIndex)}});var QS=Z((efe,KS)=>{"use strict";var YQ=Ie(),UQ=Hg(),GQ=qo();KS.exports=function(r,t){var a,n,i,l=t.scattermode;function o(h){return YQ.coerce(n._input,n,GQ,h)}if(t.scattermode==="group")for(i=0;i=0;f--){var v=r[f];if(v.type==="scatter"&&v.xaxis===s.xaxis&&v.yaxis===s.yaxis){v.opacity=void 0;break}}}}}});var jS=Z((rfe,$S)=>{"use strict";var VQ=Ie(),WQ=Zv();$S.exports=function(e,r){function t(n,i){return VQ.coerce(e,r,WQ,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var Og=Z((tfe,rC)=>{"use strict";var ZQ=Hr(),eC=Ie(),XQ=eC.dateTime2ms,nd=eC.incrementMonth,JQ=Gt(),KQ=JQ.ONEAVGMONTH;rC.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var l=r[a+"period"],o;if(ZQ(l)){if(l=+l,l<=0)return{vals:n}}else if(typeof l=="string"&&l.charAt(0)==="M"){var s=+l.substring(1);if(s>0&&Math.round(s)===s)o=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",v=i==="end",h=r[a+"period0"],d=XQ(h,u)||0,m=[],g=[],y=[],_=n.length,w=0;w<_;w++){var T=n[w],b,A,C;if(o){for(b=Math.round((T-d)/(o*KQ)),C=nd(d,o*b,u);C>T;)C=nd(C,-o,u);for(;C<=T;)C=nd(C,o,u);A=nd(C,-o,u)}else{for(b=Math.round((T-d)/l),C=d+b*l;C>T;)C-=l;for(;C<=T;)C+=l;A=C-l}m[w]=f?A:v?C:(A+C)/2,g[w]=A,y[w]=C}return{vals:m,starts:g,ends:y}}});var nC=Z((afe,aC)=>{"use strict";var Bg=Tn().hasColorscale,Yg=i0(),tC=on();aC.exports=function(r,t){tC.hasLines(t)&&Bg(t,"line")&&Yg(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),tC.hasMarkers(t)&&(Bg(t,"marker")&&Yg(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Bg(t,"marker.line")&&Yg(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Ug=Z((nfe,iC)=>{"use strict";var St=Ie();iC.exports=function(r,t){for(var a=0;a{"use strict";var lC=Ie();oC.exports=function(r,t){lC.isArrayOrTypedArray(t.selectedpoints)&&lC.tagSelected(r,t)}});var Jg=Z((lfe,dC)=>{"use strict";var sC=Hr(),Wg=Ie(),ac=dt(),uC=Og(),Vg=Gt().BADNUM,Zg=on(),QQ=nC(),$Q=Ug(),jQ=Gg();function e$(e,r){var t=e._fullLayout,a=r._xA=ac.getFromId(e,r.xaxis||"x","x"),n=r._yA=ac.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),l=n.makeCalcdata(r,"y"),o=uC(r,a,"x",i),s=uC(r,n,"y",l),u=o.vals,f=s.vals,v=r._length,h=new Array(v),d=r.ids,m=Xg(r,t,a,n),g=!1,y,_,w,T,b,A;vC(t,r);var C="x",k="y",q;if(m)Wg.pushUnique(m.traceIndices,r.index),y=m.orientation==="v",y?(k="s",q="x"):(C="s",q="y"),b=m.stackgaps==="interpolate";else{var D=cC(r,v);fC(e,r,a,n,u,f,D)}var R=!!r.xperiodalignment,z=!!r.yperiodalignment;for(_=0;__&&h[T].gap;)T--;for(A=h[T].s,w=h.length-1;w>T;w--)h[w].s=A;for(;_{"use strict";pC.exports=id;var r$=Ie().distinctVals;function id(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";var zn=Hr(),Ll=Ie().isArrayOrTypedArray,au=Gt().BADNUM,t$=br(),nc=dt(),a$=Cf().getAxisGroup,ld=mC();function n$(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;us+l||!zn(o))}for(var f=0;f{"use strict";var _C=Jg(),wC=e2().setGroupPositions;function m$(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;uD[f]&&f{"use strict";var g$=at(),CC=Gt(),ic=CC.BADNUM,LC=CC.LOG_CLIP,AC=LC+.5,kC=LC-.5,od=Ie(),b$=od.segmentsIntersect,SC=od.constrain,t2=qh();qC.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,l=n.type==="log",o=i.type==="log",s=n._length,u=i._length,f=t.backoff,v=a.marker,h=t.connectGaps,d=t.baseTolerance,m=t.shape,g=m==="linear",y=a.fill&&a.fill!=="none",_=[],w=t2.minTolerance,T=r.length,b=new Array(T),A=0,C,k,q,D,R,z,F,I,O,X,J,U,H,G,Q,K;function ie(Pe){var ae=r[Pe];if(!ae)return!1;var ue=t.linearized?n.l2p(ae.x):n.c2p(ae.x),qe=t.linearized?i.l2p(ae.y):i.c2p(ae.y);if(ue===ic){if(l&&(ue=n.c2p(ae.x,!0)),ue===ic)return!1;o&&qe===ic&&(ue*=Math.abs(n._m*u*(n._m>0?AC:kC)/(i._m*s*(i._m>0?AC:kC)))),ue*=1e3}if(qe===ic){if(o&&(qe=i.c2p(ae.y,!0)),qe===ic)return!1;qe*=1e3}return[ue,qe]}function he(Pe,ae,ue,qe){var Ce=ue-Pe,or=qe-ae,lr=.5-Pe,ar=.5-ae,Mr=Ce*Ce+or*or,Br=Ce*lr+or*ar;if(Br>0&&Br1||Math.abs(lr.y-ue[0][1])>1)&&(lr=[lr.x,lr.y],qe&&Le(lr,Pe)se||Pe[1]Y)return[SC(Pe[0],be,se),SC(Pe[1],Ae,Y)]}function Ve(Pe,ae){if(Pe[0]===ae[0]&&(Pe[0]===be||Pe[0]===se)||Pe[1]===ae[1]&&(Pe[1]===Ae||Pe[1]===Y))return!0}function Ue(Pe,ae){var ue=[],qe=ze(Pe),Ce=ze(ae);return qe&&Ce&&Ve(qe,Ce)||(qe&&ue.push(qe),Ce&&ue.push(Ce)),ue}function De(Pe,ae,ue){return function(qe,Ce){var or=ze(qe),lr=ze(Ce),ar=[];if(or&&lr&&Ve(or,lr))return ar;or&&ar.push(or),lr&&ar.push(lr);var Mr=2*od.constrain((qe[Pe]+Ce[Pe])/2,ae,ue)-((or||qe)[Pe]+(lr||Ce)[Pe]);if(Mr){var Br;or&&lr?Br=Mr>0==or[Pe]>lr[Pe]?or:lr:Br=or||lr,Br[Pe]+=Mr}return ar}}var He;m==="linear"||m==="spline"?He=Ee:m==="hv"||m==="vh"?He=Ue:m==="hvh"?He=De(0,be,se):m==="vhv"&&(He=De(1,Ae,Y));function Oe(Pe,ae){var ue=ae[0]-Pe[0],qe=(ae[1]-Pe[1])/ue,Ce=(Pe[1]*ae[0]-ae[1]*Pe[0])/ue;return Ce>0?[qe>0?be:se,Y]:[qe>0?se:be,Ae]}function ne(Pe){var ae=Pe[0],ue=Pe[1],qe=ae===b[A-1][0],Ce=ue===b[A-1][1];if(!(qe&&Ce))if(A>1){var or=ae===b[A-2][0],lr=ue===b[A-2][1];qe&&(ae===be||ae===se)&&or?lr?A--:b[A-1]=Pe:Ce&&(ue===Ae||ue===Y)&&lr?or?A--:b[A-1]=Pe:b[A++]=Pe}else b[A++]=Pe}function Te(Pe){b[A-1][0]!==Pe[0]&&b[A-1][1]!==Pe[1]&&ne([Me,ye]),ne(Pe),Re=null,Me=ye=0}var Xe=od.isArrayOrTypedArray(v);function cr(Pe){if(Pe&&f&&(Pe.i=C,Pe.d=r,Pe.trace=a,Pe.marker=Xe?v[Pe.i]:v,Pe.backoff=f),me=Pe[0]/s,ke=Pe[1]/u,B=Pe[0]se?se:0,ge=Pe[1]Y?Y:0,B||ge){if(!A)b[A++]=[B||Pe[0],ge||Pe[1]];else if(Re){var ae=He(Re,Pe);ae.length>1&&(Te(ae[0]),b[A++]=ae[1])}else Ne=He(b[A-1],Pe)[0],b[A++]=Ne;var ue=b[A-1];B&&ge&&(ue[0]!==B||ue[1]!==ge)?(Re&&(Me!==B&&ye!==ge?ne(Me&&ye?Oe(Re,Pe):[Me||B,ye||ge]):Me&&ye&&ne([Me,ye])),ne([B,ge])):Me-B&&ye-ge&&ne([B||Me,ge||ye]),Re=Pe,Me=B,ye=ge}else Re&&Te(He(Re,Pe)[0]),b[A++]=Pe}for(C=0;Cee(z,fr))break;q=z,H=O[0]*I[0]+O[1]*I[1],H>J?(J=H,D=z,F=!1):H=r.length||!z)break;cr(z),k=z}}Re&&ne([Me||Re[0],ye||Re[1]]),_.push(b.slice(0,A))}var le=m.slice(m.length-1);if(f&&le!=="h"&&le!=="v"){for(var Se=!1,Fe=-1,We=[],Ge=0;Ge<_.length;Ge++)for(var Je=0;Je<_[Ge].length-1;Je++){var je=_[Ge][Je],vr=_[Ge][Je+1],Ke=g$.applyBackoff(vr,je);(Ke[0]!==vr[0]||Ke[1]!==vr[1])&&(Se=!0),We[Fe+1]||(Fe++,We[Fe]=[je,[Ke[0],Ke[1]]])}return Se?We:_}return _}});var RC=Z((cfe,PC)=>{"use strict";var EC={tonextx:1,tonexty:1,tonext:1};PC.exports=function(r,t,a){var n,i,l,o,s,u={},f=!1,v=-1,h=0,d=-1;for(i=0;i=0?s=d:(s=d=h,h++),s{"use strict";var ai=Ir(),x$=br(),lc=Ie(),iu=lc.ensureSingle,NC=lc.identity,Ct=at(),lu=on(),_$=DC(),w$=RC(),sd=$y().tester;FC.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,v=w$(r,t,a);if(o=n.selectAll("g.trace").data(v,function(d){return d[0].trace.uid}),o.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),o.order(),T$(r,o,t),f){l&&(s=l());var h=ai.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});h.each(function(){n.selectAll("g.trace").each(function(d,m){zC(r,m,t,d,v,this,i)})})}else o.each(function(d,m){zC(r,m,t,d,v,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function T$(e,r,t){r.each(function(a){var n=iu(ai.select(this),"g","fills");Ct.setClipUrl(n,t.layerClipId,e);var i=a[0].trace,l=[];i._ownfill&&l.push("_ownFill"),i._nexttrace&&l.push("_nextFill");var o=n.selectAll("g").data(l,NC);o.enter().append("g"),o.exit().each(function(s){i[s]=null}).remove(),o.order().each(function(s){i[s]=iu(ai.select(this),"path","js-fill")})})}function zC(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;M$(e,r,t,a,n);var u=!!l&&l.duration>0;function f(De){return u?De.transition():De}var v=t.xaxis,h=t.yaxis,d=a[0].trace,m=d.line,g=ai.select(i),y=iu(g,"g","errorbars"),_=iu(g,"g","lines"),w=iu(g,"g","points"),T=iu(g,"g","text");if(x$.getComponentMethod("errorbars","plot")(e,y,t,l),d.visible!==!0)return;f(g).style("opacity",d.opacity);var b,A,C=d.fill.charAt(d.fill.length-1);C!=="x"&&C!=="y"&&(C="");var k,q;C==="y"?(k=1,q=h.c2p(0,!0)):C==="x"&&(k=0,q=v.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=g;var D="",R=[],z=d._prevtrace,F=null,I=null;z&&(D=z._prevRevpath||"",A=z._nextFill,R=z._ownPolygons,F=z._fillsegments,I=z._fillElement);var O,X,J="",U="",H,G,Q,K,ie,he,me=[];d._polygons=[];var ke=[],ee=[],Le=lc.noop;if(b=d._ownFill,lu.hasLines(d)||d.fill!=="none"){A&&A.datum(a),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(H=Ct.steps(m.shape),G=Ct.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?H=G=function(De){var He=De[De.length-1];return De.length>1&&De[0][0]===He[0]&&De[0][1]===He[1]?Ct.smoothclosed(De.slice(1),m.smoothing):Ct.smoothopen(De,m.smoothing)}:H=G=function(De){return"M"+De.join("L")},Q=function(De){return G(De.reverse())},ee=_$(a,{xaxis:v,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(m.width||1,3)/4,shape:m.shape,backoff:m.backoff,simplify:m.simplify,fill:d.fill}),ke=new Array(ee.length);var fe=0;for(s=0;s=o[0]&&g.x<=o[1]&&g.y>=s[0]&&g.y<=s[1]}),h=Math.ceil(v.length/f),d=0;n.forEach(function(g,y){var _=g[0].trace;lu.hasMarkers(_)&&_.marker.maxdisplayed>0&&y{"use strict";HC.exports={container:"marker",min:"cmin",max:"cmax"}});var BC=Z((dfe,OC)=>{"use strict";var ud=dt();OC.exports=function(r,t,a){var n={},i={_fullLayout:a},l=ud.getFromTrace(i,t,"x"),o=ud.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=ud.tickText(l,l.c2l(s),!0).text,n.yLabel=ud.tickText(o,o.c2l(u),!0).text,n}});var o2=Z((pfe,YC)=>{"use strict";var n2=Ir(),ou=at(),A$=br();function k$(e){var r=n2.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=n2.select(this),n=t.trace||t[0].trace;i2(a,n,e)}),r.selectAll("g.text").each(function(t){var a=n2.select(this),n=t.trace||t[0].trace;l2(a,n,e)}),r.selectAll("g.trace path.js-line").call(ou.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(ou.fillGroupStyle,e,!1),A$.getComponentMethod("errorbars","style")(r)}function i2(e,r,t){ou.pointStyle(e.selectAll("path.point"),r,t)}function l2(e,r,t){ou.textPointStyle(e.selectAll("text"),r,t)}function S$(e,r,t){var a=r[0].trace;a.selectedpoints?(ou.selectedPointStyle(t.selectAll("path.point"),a),ou.selectedTextStyle(t.selectAll("text"),a)):(i2(t,a,e),l2(t,a,e))}YC.exports={style:k$,stylePoints:i2,styleText:l2,styleOnSelect:S$}});var GC=Z((mfe,UC)=>{"use strict";var su=Er(),C$=on();UC.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&su.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,l=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&su.opacity(i)?i:l&&su.opacity(l)&&(t.mlw||((r.marker||{}).line||{}).width)?l:"",n?su.opacity(n)<.3?su.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&su.opacity(a)&&C$.hasLines(r)&&r.line.width?a:r.fillcolor)}});var ZC=Z((yfe,WC)=>{"use strict";var fd=Ie(),VC=Si(),L$=br(),q$=GC(),s2=Er(),D$=fd.fillText;WC.exports=function(r,t,a,n){var i=r.cd,l=i[0].trace,o=r.xa,s=r.ya,u=o.c2p(t),f=s.c2p(a),v=[u,f],h=l.hoveron||"",d=l.mode.indexOf("markers")!==-1?3:.5,m=!!l.xperiodalignment,g=!!l.yperiodalignment;if(h.indexOf("points")!==-1){var y=function(U){if(m){var H=o.c2p(U.xStart),G=o.c2p(U.xEnd);return u>=Math.min(H,G)&&u<=Math.max(H,G)?0:1/0}var Q=Math.max(3,U.mrc||0),K=1-1/Q,ie=Math.abs(o.c2p(U.x)-u);return ie=Math.min(H,G)&&f<=Math.max(H,G)?0:1/0}var Q=Math.max(3,U.mrc||0),K=1-1/Q,ie=Math.abs(s.c2p(U.y)-f);return ieme!=Y>=me&&(be=Le[ee-1][0],se=Le[ee][0],Y-Ae&&(fe=be+(se-be)*(me-Ae)/(Y-Ae),Q=Math.min(Q,fe),K=Math.max(K,fe)));return Q=Math.max(Q,0),K=Math.min(K,o._length),{x0:Q,x1:K,y0:me,y1:me}}if(h.indexOf("fills")!==-1&&l._fillElement){var O=F(l._fillElement)&&!F(l._fillExclusionElement);if(O){var X=I(l._polygons);X===null&&(X={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var J=s2.defaultLine;return s2.opacity(l.fillcolor)?J=l.fillcolor:s2.opacity((l.line||{}).color)&&(J=l.line.color),fd.extendFlat(r,{distance:r.maxHoverDistance,x0:X.x0,x1:X.x1,y0:X.y0,y1:X.y1,color:J,hovertemplate:!1}),delete r.index,l.text&&!fd.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var KC=Z((gfe,JC)=>{"use strict";var XC=on();JC.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o=a[0].trace,s,u,f,v,h=!XC.hasMarkers(o)&&!XC.hasText(o);if(h)return[];if(t===!1)for(s=0;s{"use strict";QC.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var tL=Z((xfe,rL)=>{"use strict";var oc=br().traceIs,u2=Lm();rL.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(E$(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function E$(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=P$(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var l=a+"calendar",o=i[l],s={noMultiCategory:!oc(i,"cartesian")||oc(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,eL(i,a)){var u=jC(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(eL(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function jC(e){return{v:"x",h:"y"}[e.orientation||"v"]}function eL(e,r){var t=jC(e),a=oc(e,"box-violin"),n=oc(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var nL=Z((_fe,aL)=>{"use strict";var R$=nn().isTypedArraySpec;function z$(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,l;if(r.axData)n=r.axData;else for(n=[],i=0;i0||R$(i),o;l&&(o="array");var s=a("categoryorder",o),u;s==="array"&&(u=a("categoryarray")),!l&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=z$(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var oL=Z((wfe,lL)=>{"use strict";var iL=bn().mix,N$=hi(),F$=Ie();lL.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(q,D){return F$.coerce2(r,t,n.attributes,q,D)}var o=l("linecolor",i),s=l("linewidth"),u=a("showline",n.showLine||!!o||!!s);u||(delete t.linecolor,delete t.linewidth);var f=iL(i,n.bgColor,n.blend||N$.lightFraction).toRgbString(),v=l("gridcolor",f),h=l("gridwidth"),d=l("griddash"),m=a("showgrid",n.showGrid||!!v||!!h||!!d);if(m||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var g=iL(t.gridcolor,n.bgColor,67).toRgbString(),y=l("minor.gridcolor",g),_=l("minor.gridwidth",t.gridwidth||1),w=l("minor.griddash",t.griddash||"solid"),T=a("minor.showgrid",!!y||!!_||!!w);T||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var b=l("zerolinelayer"),A=l("zerolinecolor",i),C=l("zerolinewidth"),k=a("zeroline",n.showGrid||!!A||!!C);k||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var c2=Z((Tfe,hL)=>{"use strict";var sL=Hr(),I$=br(),sc=Ie(),H$=ct(),O$=Jn(),f2=Xn(),uL=$p(),fL=em(),B$=am(),Y$=nm(),U$=nL(),G$=oL(),V$=Jm(),cL=b0(),cd=ya().WEEKDAY_PATTERN,W$=ya().HOUR_PATTERN;hL.exports=function(r,t,a,n,i){var l=n.letter,o=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},v=t.type||f.type||"-",h;if(v==="date"){var d=I$.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(h=a("ticklabelmode"))}!n.noTicklabelindex&&(v==="date"||v==="linear")&&a("ticklabelindex");var m="";(!n.noTicklabelposition||v==="multicategory")&&(m=sc.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:l==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",m.indexOf("inside")!==-1?"hide past domain":v==="category"||v==="multicategory"?"allow":"hide past div"),cL(t,i),V$(r,t,a,n),U$(r,t,a,n),n.noHover||(v!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var g=a("color"),y=g!==f2.color.dflt?g:o.color,_=s.label||i._dfltTitle[l];if(Y$(r,t,a,v,n),!u)return t;a("title.text",_),sc.coerceFont(a,"title.font",o,{overrideDflt:{size:sc.bigFont(o.size),color:y}}),uL(r,t,a,v);var w=n.hasMinor;if(w&&(H$.newContainer(t,"minor"),uL(r,t,a,v,{isMinor:!0})),B$(r,t,a,v,n),fL(r,t,a,n),w){var T=n.isMinor;n.isMinor=!0,fL(r,t,a,n),n.isMinor=T}G$(r,t,a,{dfltColor:g,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:w,attributes:f2}),w&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var b=v==="multicategory";if(!n.noTickson&&(v==="category"||b)&&(t.ticks||t.showgrid)&&(b?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),b){var A=a("showdividers");A&&(a("dividercolor"),a("dividerwidth"))}if(v==="date")if(O$(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Z$}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var C=0;C=2){var l="",o,s;if(i.length===2){for(o=0;o<2;o++)if(s=vL(i[o]),s){l=cd;break}}var u=a("pattern",l);if(u===cd)for(o=0;o<2;o++)s=vL(i[o]),s&&(r.bounds[o]=i[o]=s-1);if(u)for(o=0;o<2;o++)switch(s=i[o],u){case cd:if(!sL(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[o]=i[o]=s;break;case W$:if(!sL(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[o]=i[o]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var J$=Hr(),vd=Ie();dL.exports=function(r,t,a,n){var i=n.counterAxes||[],l=n.overlayableAxes||[],o=n.letter,s=n.grid,u=n.overlayingDomain,f,v,h,d,m,g;s&&(v=s._domains[o][s._axisMap[t._id]],f=s._anchors[t._id],v&&(h=s[o+"side"].split(" ")[0],d=s.domain[o][h==="right"||h==="top"?1:0])),v=v||[0,1],f=f||(J$(r.position)?"free":i[0]||"free"),h=h||(o==="x"?"bottom":"left"),d=d||0,m=0,g=!1;var y=vd.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),_=vd.coerce(r,t,{side:{valType:"enumerated",values:o==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(y==="free"){if(o==="y"){var w=a("autoshift");w&&(d=_==="left"?u[0]:u[1],g=t.automargin?t.automargin:!0,m=_==="left"?-3:3),a("shift",m)}a("position",d)}a("automargin",g);var T=!1;if(l.length&&(T=vd.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!T){var b=a("domain",v);b[0]>b[1]-1/4096&&(t.domain=v),vd.noneOrAll(r.domain,t.domain,v),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var TL=Z((Afe,wL)=>{"use strict";var Ro=Ie(),pL=Er(),K$=xi().isUnifiedHover,Q$=_y(),mL=ct(),$$=ds(),yL=Xn(),j$=tL(),gL=c2(),ej=Cf(),bL=v2(),d2=Zt(),Ei=d2.id2name,xL=d2.name2id,rj=ya().AX_ID_PATTERN,_L=br(),hd=_L.traceIs,h2=_L.getComponentMethod;function dd(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}wL.exports=function(r,t,a){var n=t.autotypenumbers,i={},l={},o={},s={},u={},f={},v={},h={},d={},m={},g,y;for(g=0;g{"use strict";var tj=Ir(),ML=br(),pd=Ie(),hn=at(),md=dt();AL.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){md.redrawComponents(r);return}function l(y){var _=y.xaxis,w=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(hn.setTranslate,0,0).call(hn.setScale,1,1),y.plot.call(hn.setTranslate,_._offset,w._offset).call(hn.setScale,1,1);var T=y.plot.selectAll(".scatterlayer .trace");T.selectAll(".point").call(hn.setPointGroupScale,1,1),T.selectAll(".textpoint").call(hn.setTextPointsScale,1,1),T.call(hn.hideOutsideRangePoints,y)}function o(y,_){var w=y.plotinfo,T=w.xaxis,b=w.yaxis,A=T._length,C=b._length,k=!!y.xr1,q=!!y.yr1,D=[];if(k){var R=pd.simpleMap(y.xr0,T.r2l),z=pd.simpleMap(y.xr1,T.r2l),F=R[1]-R[0],I=z[1]-z[0];D[0]=(R[0]*(1-_)+_*z[0]-R[0])/(R[1]-R[0])*A,D[2]=A*(1-_+_*I/F),T.range[0]=T.l2r(R[0]*(1-_)+_*z[0]),T.range[1]=T.l2r(R[1]*(1-_)+_*z[1])}else D[0]=0,D[2]=A;if(q){var O=pd.simpleMap(y.yr0,b.r2l),X=pd.simpleMap(y.yr1,b.r2l),J=O[1]-O[0],U=X[1]-X[0];D[1]=(O[1]*(1-_)+_*X[1]-O[1])/(O[0]-O[1])*C,D[3]=C*(1-_+_*U/J),b.range[0]=T.l2r(O[0]*(1-_)+_*X[0]),b.range[1]=b.l2r(O[1]*(1-_)+_*X[1])}else D[1]=0,D[3]=C;md.drawOne(r,T,{skipTitle:!0}),md.drawOne(r,b,{skipTitle:!0}),md.redrawComponents(r,[T._id,b._id]);var H=k?A/D[2]:1,G=q?C/D[3]:1,Q=k?D[0]:0,K=q?D[1]:0,ie=k?D[0]/D[2]*A:0,he=q?D[1]/D[3]*C:0,me=T._offset-ie,ke=b._offset-he;w.clipRect.call(hn.setTranslate,Q,K).call(hn.setScale,1/H,1/G),w.plot.call(hn.setTranslate,me,ke).call(hn.setScale,H,G),hn.setPointGroupScale(w.zoomScalePts,1/H,1/G),hn.setTextPointsScale(w.zoomScaleTxt,1/H,1/G)}var s;n&&(s=n());function u(){for(var y={},_=0;_a.duration?(u(),d=window.cancelAnimationFrame(g)):d=window.requestAnimationFrame(g)}return v=Date.now(),d=window.requestAnimationFrame(g),Promise.resolve()}});var bd=Z(ka=>{"use strict";var gd=Ir(),SL=br(),zo=Ie(),aj=Nt(),nj=at(),CL=Np().getModuleCalcData,ql=Zt(),ni=ya(),ij=fo(),Xr=zo.ensureSingle;function yd(e,r,t){return zo.ensureSingle(e,r,t,function(a){a.datum(t)})}var No=ni.zindexSeparator;ka.name="cartesian";ka.attr=["xaxis","yaxis"];ka.idRoot=["x","y"];ka.idRegex=ni.idRegex;ka.attrRegex=ni.attrRegex;ka.attributes=$C();ka.layoutAttributes=Xn();ka.supplyLayoutDefaults=TL();ka.transitionAxes=kL();ka.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,l=i,o={},s={},u,f,v;for(u=0;u0){var d=h.id;if(d.indexOf(No)!==-1)continue;d+=No+(u+1),h=zo.extendFlat({},h,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var m=[],g,y=0;y1&&(A+=No+b),T.push(o+A),l=0;l1,v=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=Xr(a,"path","xlines-above"),r.ylines=Xr(a,"path","ylines-above"),r.xaxislayer=Xr(a,"g","xaxislayer-above"),r.yaxislayer=Xr(a,"g","yaxislayer-above");else{if(!l){var h=Xr(a,"g","layer-subplot");r.shapelayer=Xr(h,"g","shapelayer"),r.imagelayer=Xr(h,"g","imagelayer"),v&&f?(r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer):(r.minorGridlayer=Xr(a,"g","minor-gridlayer"),r.gridlayer=Xr(a,"g","gridlayer"),r.zerolinelayer=Xr(a,"g","zerolinelayer"));var d=Xr(a,"g","layer-between");r.shapelayerBetween=Xr(d,"g","shapelayer"),r.imagelayerBetween=Xr(d,"g","imagelayer"),Xr(a,"path","xlines-below"),Xr(a,"path","ylines-below"),r.overlinesBelow=Xr(a,"g","overlines-below"),Xr(a,"g","xaxislayer-below"),Xr(a,"g","yaxislayer-below"),r.overaxesBelow=Xr(a,"g","overaxes-below")}r.overplot=Xr(a,"g","overplot"),r.plot=Xr(r.overplot,"g",n),v&&f?r.zerolinelayerAbove=v.zerolinelayerAbove:r.zerolinelayerAbove=Xr(a,"g","zerolinelayer-above"),l||(r.xlines=Xr(a,"path","xlines-above"),r.ylines=Xr(a,"path","ylines-above"),r.overlinesAbove=Xr(a,"g","overlines-above"),Xr(a,"g","xaxislayer-above"),Xr(a,"g","yaxislayer-above"),r.overaxesAbove=Xr(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+o),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+o),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var m=v.plotgroup,g=n+"-x",y=n+"-y";r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer,r.zerolinelayerAbove=v.zerolinelayerAbove,Xr(v.overlinesBelow,"path",g),Xr(v.overlinesBelow,"path",y),Xr(v.overaxesBelow,"g",g),Xr(v.overaxesBelow,"g",y),r.plot=Xr(v.overplot,"g",n),Xr(v.overlinesAbove,"path",g),Xr(v.overlinesAbove,"path",y),Xr(v.overaxesAbove,"g",g),Xr(v.overaxesAbove,"g",y),r.xlines=m.select(".overlines-"+o).select("."+g),r.ylines=m.select(".overlines-"+s).select("."+y),r.xaxislayer=m.select(".overaxes-"+o).select("."+g),r.yaxislayer=m.select(".overaxes-"+s).select("."+y)}l||(u||(yd(r.minorGridlayer,"g",r.xaxis._id),yd(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(_){return _[0]}).sort(ql.idSort),yd(r.gridlayer,"g",r.xaxis._id),yd(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(_){return _[0]}).sort(ql.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function DL(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=gd.select(this);f.remove(),EL(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],l=0;l{"use strict";var xd=on();PL.exports={hasLines:xd.hasLines,hasMarkers:xd.hasMarkers,hasText:xd.hasText,isBubble:xd.isBubble,attributes:qo(),layoutAttributes:Zv(),supplyDefaults:XS(),crossTraceDefaults:QS(),supplyLayoutDefaults:jS(),calc:Jg().calc,crossTraceCalc:MC(),arraysToCalcdata:Ug(),plot:IC(),colorbar:a2(),formatLabels:BC(),style:o2().style,styleOnSelect:o2().styleOnSelect,hoverPoints:ZC(),selectPoints:KC(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:bd(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var FL=Z((Lfe,NL)=>{"use strict";var oj=Ir(),sj=Er(),zL=fg(),p2=Ie(),uj=p2.strScale,fj=p2.strRotate,cj=p2.strTranslate;NL.exports=function(r,t,a){var n=r.node(),i=zL[a.arrowhead||0],l=zL[a.startarrowhead||0],o=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,v=i.backoff*o+a.standoff,h=l.backoff*s+a.startstandoff,d,m,g,y;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},m={x:+r.attr("x2"),y:+r.attr("y2")};var _=d.x-m.x,w=d.y-m.y;if(g=Math.atan2(w,_),y=g+Math.PI,v&&h&&v+h>Math.sqrt(_*_+w*w)){O();return}if(v){if(v*v>_*_+w*w){O();return}var T=v*Math.cos(g),b=v*Math.sin(g);m.x+=T,m.y+=b,r.attr({x2:m.x,y2:m.y})}if(h){if(h*h>_*_+w*w){O();return}var A=h*Math.cos(g),C=h*Math.sin(g);d.x-=A,d.y-=C,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var k=n.getTotalLength(),q="";if(k{"use strict";var IL=Ir(),m2=br(),vj=Nt(),El=Ie(),y2=El.strTranslate,fc=dt(),Fo=Er(),Ji=at(),HL=Si(),g2=Ta(),b2=wl(),uc=Qn(),hj=ct().arrayEditor,dj=FL();YL.exports={draw:pj,drawOne:OL,drawRaw:BL};function pj(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Ce="right":Ce="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ce]}for(var Ae=!1,Y=["x","y"],re=0;re1)&&(Me===ge?(fr=ye.r2fraction(r["a"+B]),(fr<0||fr>1)&&(Ae=!0)):Ae=!0),He=ye._offset+ye.r2p(r[B]),Te=.5}else{var le=cr==="domain";B==="x"?(ne=r[B],He=le?ye._offset+ye._length*ne:He=o.l+o.w*ne):(ne=1-r[B],He=le?ye._offset+ye._length*ne:He=o.t+o.h*ne),Te=r.showarrow?.5:ne}if(r.showarrow){De.head=He;var Se=r["a"+B];if(Xe=Ne*se(.5,r.xanchor)-Ee*se(.5,r.yanchor),Me===ge){var Fe=fc.getRefType(Me);Fe==="domain"?(B==="y"&&(Se=1-Se),De.tail=ye._offset+ye._length*Se):Fe==="paper"?B==="y"?(Se=1-Se,De.tail=o.t+o.h*Se):De.tail=o.l+o.w*Se:De.tail=ye._offset+ye.r2p(Se),Oe=Xe}else De.tail=He+Se,Oe=Xe+Se;De.text=De.tail+Xe;var We=l[B==="x"?"width":"height"];if(ge==="paper"&&(De.head=El.constrain(De.head,1,We-1)),Me==="pixel"){var Ge=-Math.max(De.tail-3,De.text),Je=Math.min(De.tail+3,De.text)-We;Ge>0?(De.tail+=Ge,De.text+=Ge):Je>0&&(De.tail-=Je,De.text-=Je)}De.tail+=Ue,De.head+=Ue}else Xe=ze*se(Te,Ve),Oe=Xe,De.text=He+Xe;De.text+=Ue,Xe+=Ue,Oe+=Ue,r["_"+B+"padplus"]=ze/2+Oe,r["_"+B+"padminus"]=ze/2-Oe,r["_"+B+"size"]=ze,r["_"+B+"shift"]=Xe}if(Ae){k.remove();return}var je=0,vr=0;if(r.align!=="left"&&(je=(ee-me)*(r.align==="center"?.5:1)),r.valign!=="top"&&(vr=(Le-ke)*(r.valign==="middle"?.5:1)),ie)K.select("svg").attr({x:R+je-1,y:R+vr}).call(Ji.setClipUrl,F?g:null,e);else{var Ke=R+vr-he.top,Pe=R+je-he.left;J.call(g2.positionText,Pe,Ke).call(Ji.setClipUrl,F?g:null,e)}I.select("rect").call(Ji.setRect,R,R,ee,Le),z.call(Ji.setRect,q/2,q/2,fe-q,be-q),k.call(Ji.setTranslate,Math.round(y.x.text-fe/2),Math.round(y.y.text-be/2)),T.attr({transform:"rotate("+_+","+y.x.text+","+y.y.text+")"});var ae=function(qe,Ce){w.selectAll(".annotation-arrow-g").remove();var or=y.x.head,lr=y.y.head,ar=y.x.tail+qe,Mr=y.y.tail+Ce,Br=y.x.text+qe,et=y.y.text+Ce,Qr=El.rotationXYMatrix(_,Br,et),Kt=El.apply2DTransform(Qr),qt=El.apply2DTransform2(Qr),yt=+z.attr("width"),At=+z.attr("height"),ua=Br-.5*yt,fa=ua+yt,zt=et-.5*At,Oa=zt+At,yr=[[ua,zt,ua,Oa],[ua,Oa,fa,Oa],[fa,Oa,fa,zt],[fa,zt,ua,zt]].map(qt);if(!yr.reduce(function(nt,ca){return nt^!!El.segmentsIntersect(or,lr,or+1e6,lr+1e6,ca[0],ca[1],ca[2],ca[3])},!1)){yr.forEach(function(nt){var ca=El.segmentsIntersect(ar,Mr,or,lr,nt[0],nt[1],nt[2],nt[3]);ca&&(ar=ca.x,Mr=ca.y)});var lt=r.arrowwidth,Vr=r.arrowcolor,gt=r.arrowside,kt=w.append("g").style({opacity:Fo.opacity(Vr)}).classed("annotation-arrow-g",!0),ot=kt.append("path").attr("d","M"+ar+","+Mr+"L"+or+","+lr).style("stroke-width",lt+"px").call(Fo.stroke,Fo.rgb(Vr));if(dj(ot,gt,r),s.annotationPosition&&ot.node().parentNode&&!a){var bt=or,La=lr;if(r.standoff){var na=Math.sqrt(Math.pow(or-ar,2)+Math.pow(lr-Mr,2));bt+=r.standoff*(ar-or)/na,La+=r.standoff*(Mr-lr)/na}var In=kt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ar-bt)+","+(Mr-La),transform:y2(bt,La)}).style("stroke-width",lt+6+"px").call(Fo.stroke,"rgba(0,0,0,0)").call(Fo.fill,"rgba(0,0,0,0)"),Hn,Qt;uc.init({element:In.node(),gd:e,prepFn:function(){var nt=Ji.getTranslate(k);Hn=nt.x,Qt=nt.y,n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(nt,ca){var Ul=Kt(Hn,Qt),Gl=Ul[0]+nt,rl=Ul[1]+ca;k.call(Ji.setTranslate,Gl,rl),d("x",Dl(n,nt,"x",o,r)),d("y",Dl(i,ca,"y",o,r)),r.axref===r.xref&&d("ax",Dl(n,nt,"ax",o,r)),r.ayref===r.yref&&d("ay",Dl(i,ca,"ay",o,r)),kt.attr("transform",y2(nt,ca)),T.attr({transform:"rotate("+_+","+Gl+","+rl+")"})},doneFn:function(){m2.call("_guiRelayout",e,m());var nt=document.querySelector(".js-notes-box-panel");nt&&nt.redraw(nt.selectedObj)}})}}};if(r.showarrow&&ae(0,0),b){var ue;uc.init({element:k.node(),gd:e,prepFn:function(){ue=T.attr("transform")},moveFn:function(qe,Ce){var or="pointer";if(r.showarrow)r.axref===r.xref?d("ax",Dl(n,qe,"ax",o,r)):d("ax",r.ax+qe),r.ayref===r.yref?d("ay",Dl(i,Ce,"ay",o.w,r)):d("ay",r.ay+Ce),ae(qe,Ce);else{if(a)return;var lr,ar;if(n)lr=Dl(n,qe,"x",o,r);else{var Mr=r._xsize/o.w,Br=r.x+(r._xshift-r.xshift)/o.w-Mr/2;lr=uc.align(Br+qe/o.w,Mr,0,1,r.xanchor)}if(i)ar=Dl(i,Ce,"y",o,r);else{var et=r._ysize/o.h,Qr=r.y-(r._yshift+r.yshift)/o.h-et/2;ar=uc.align(Qr-Ce/o.h,et,0,1,r.yanchor)}d("x",lr),d("y",ar),(!n||!i)&&(or=uc.getCursor(n?.5:lr,i?.5:ar,r.xanchor,r.yanchor))}T.attr({transform:y2(qe,Ce)+ue}),b2(k,or)},clickFn:function(qe,Ce){r.captureevents&&e.emit("plotly_clickannotation",C(Ce))},doneFn:function(){b2(k),m2.call("_guiRelayout",e,m());var qe=document.querySelector(".js-notes-box-panel");qe&&qe.redraw(qe.selectedObj)}})}}s.annotationText?J.call(g2.makeEditable,{delegate:k,gd:e}).call(U).on("edit",function(G){r.text=G,this.call(U),d("text",G),n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),m2.call("_guiRelayout",e,m())}):J.call(U)}});var XL=Z((Dfe,ZL)=>{"use strict";var UL=Ie(),mj=br(),GL=ct().arrayEditor;ZL.exports={hasClickToShow:yj,onClick:gj};function yj(e,r){var t=WL(e,r);return t.on.length>0||t.explicitOff.length>0}function gj(e,r){var t=WL(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},l=e._fullLayout.annotations,o,s;if(a.length||n.length){for(o=0;o{"use strict";var x2=Ie(),uu=Er();JL.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),l=n("bordercolor"),o=uu.opacity(l);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),x2.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var v=n("arrowside"),h,d;v.indexOf("end")!==-1&&(h=n("arrowhead"),d=n("arrowsize")),v.indexOf("start")!==-1&&(n("startarrowhead",h),n("startarrowsize",d)),n("arrowcolor",o?t.bordercolor:uu.defaultLine),n("arrowwidth",(o&&s||1)*2),n("standoff"),n("startstandoff")}var m=n("hovertext"),g=a.hoverlabel||{};if(m){var y=n("hoverlabel.bgcolor",g.bgcolor||(uu.opacity(i)?uu.rgb(i):uu.defaultLine)),_=n("hoverlabel.bordercolor",g.bordercolor||uu.contrast(y)),w=x2.extendFlat({},g.font);w.color||(w.color=_),x2.coerceFont(n,"hoverlabel.font",w)}n("captureevents",!!m)}});var QL=Z((Pfe,KL)=>{"use strict";var w2=Ie(),Io=dt(),bj=Jn(),xj=_2(),_j=js();KL.exports=function(r,t){bj(r,t,{name:"annotations",handleItemDefaults:wj})};function wj(e,r,t){function a(T,b){return w2.coerce(e,r,_j,T,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){xj(e,r,t,a);for(var l=r.showarrow,o=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var v=o[f],h=Io.coerceRef(e,r,u,v,"","paper");if(h!=="paper"){var d=Io.getFromId(u,h);d._annIndices.push(r._index)}if(Io.coercePosition(r,u,a,h,v,.5),l){var m="a"+v,g=Io.coerceRef(e,r,u,m,"pixel",["pixel","paper"]);g!=="pixel"&&g!==h&&(g=r[m]="pixel");var y=g==="pixel"?s[f]:.4;Io.coercePosition(r,u,a,g,m,y)}a(v+"anchor"),a(v+"shift")}if(w2.noneOrAll(e,r,["x","y"]),l&&w2.noneOrAll(e,r,["ax","ay"]),i){var _=a("xclick"),w=a("yclick");r._xclick=_===void 0?r.x:Io.cleanPosition(_,u,r.xref),r._yclick=w===void 0?r.y:Io.cleanPosition(w,u,r.yref)}}}});var eq=Z((Rfe,jL)=>{"use strict";var T2=Ie(),Ho=dt(),Tj=_d().draw;jL.exports=function(r){var t=r._fullLayout,a=T2.filterVisible(t.annotations);if(a.length&&r._fullData.length)return T2.syncOrAsync([Tj,Mj],r)};function Mj(e){var r=e._fullLayout;T2.filterVisible(r.annotations).forEach(function(t){var a=Ho.getFromId(e,t.xref),n=Ho.getFromId(e,t.yref),i=Ho.getRefType(t.xref),l=Ho.getRefType(t.yref);t._extremes={},i==="range"&&$L(t,a),l==="range"&&$L(t,n)})}function $L(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],l=e[a+"ref"],o=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],v=3*e.arrowsize*e.arrowwidth||0,h=v+f,d=v-f,m=3*e.startarrowsize*e.arrowwidth||0,g=m+f,y=m-f,_;if(o===l){var w=Ho.findExtremes(r,[r.r2c(n)],{ppadplus:h,ppadminus:d}),T=Ho.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,g),ppadminus:Math.max(u,y)});_={min:[w.min[0],T.min[0]],max:[w.max[0],T.max[0]]}}else g=i?g+i:g,y=i?y-i:y,_=Ho.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,h,g),ppadminus:Math.max(u,d,y)});e._extremes[t]=_}});var tq=Z((zfe,rq)=>{"use strict";var Aj=Hr(),kj=pv();rq.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(!(i||l))return;var o=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function v(d){var m=u[d],g=null;i?g=kj(m,t.range):g=Math.pow(10,m),Aj(g)||(g=null),n(f+d,g)}for(var h=0;h{"use strict";var M2=_d(),aq=XL();nq.exports={moduleType:"component",name:"annotations",layoutAttributes:js(),supplyLayoutDefaults:QL(),includeBasePlot:Vf()("annotations"),calcAutorange:eq(),draw:M2.draw,drawOne:M2.drawOne,drawRaw:M2.drawRaw,hasClickToShow:aq.hasClickToShow,onClick:aq.onClick,convertCoords:tq()}});var wd=Z((Ffe,lq)=>{"use strict";var ft=js(),Sj=pi().overrideAll,Cj=ct().templatedArray;lq.exports=Sj(Cj("annotation",{visible:ft.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:ft.xanchor,xshift:ft.xshift,yanchor:ft.yanchor,yshift:ft.yshift,text:ft.text,textangle:ft.textangle,font:ft.font,width:ft.width,height:ft.height,opacity:ft.opacity,align:ft.align,valign:ft.valign,bgcolor:ft.bgcolor,bordercolor:ft.bordercolor,borderpad:ft.borderpad,borderwidth:ft.borderwidth,showarrow:ft.showarrow,arrowcolor:ft.arrowcolor,arrowhead:ft.arrowhead,startarrowhead:ft.startarrowhead,arrowside:ft.arrowside,arrowsize:ft.arrowsize,startarrowsize:ft.startarrowsize,arrowwidth:ft.arrowwidth,standoff:ft.standoff,startstandoff:ft.startstandoff,hovertext:ft.hovertext,hoverlabel:ft.hoverlabel,captureevents:ft.captureevents}),"calc","from-root")});var sq=Z((Ife,oq)=>{"use strict";var A2=Ie(),Lj=dt(),qj=Jn(),Dj=_2(),Ej=wd();oq.exports=function(r,t,a){qj(r,t,{name:"annotations",handleItemDefaults:Pj,fullLayout:a.fullLayout})};function Pj(e,r,t,a){function n(o,s){return A2.coerce(e,r,Ej,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],Lj.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(Dj(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),A2.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),A2.noneOrAll(e,r,["ax","ay"])))}});var vq=Z((Hfe,cq)=>{"use strict";var uq=Ie(),fq=dt();cq.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function k2(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function zj(e,r){var t=k2(e.projection,k2(e.view,k2(e.model,[r[0],r[1],r[2],1])));return t}hq.exports=zj});var mq=Z((Bfe,pq)=>{"use strict";var Nj=_d().drawRaw,Fj=dq(),Ij=["x","y","z"];pq.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){o=!0;break}}o?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(l._pdata=Fj(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),Nj(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var bq=Z((Yfe,gq)=>{"use strict";var Hj=br(),yq=Ie();gq.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:wd()}}},layoutAttributes:wd(),handleDefaults:sq(),includeBasePlot:Oj,convert:vq(),draw:mq()};function Oj(e,r){var t=Hj.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var xq=js(),_q=ma(),wq=qo().line,Bj=mi().dash,ii=Vt().extendFlat,Yj=ct().templatedArray,Ufe=Gf(),fu=Gn(),Uj=yi().shapeTexttemplateAttrs,Gj=kv();Tq.exports=Yj("shape",{visible:ii({},fu.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:ii({},fu.legend,{editType:"calc+arraydraw"}),legendgroup:ii({},fu.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:ii({},fu.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:_q({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:ii({},fu.legendrank,{editType:"calc+arraydraw"}),legendwidth:ii({},fu.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:ii({},xq.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:ii({},xq.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:ii({},wq.color,{editType:"arraydraw"}),width:ii({},wq.width,{editType:"calc+arraydraw"}),dash:ii({},Bj,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Uj({},{keys:Object.keys(Gj)}),font:_q({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var kq=Z((Vfe,Aq)=>{"use strict";var cc=Ie(),cu=dt(),Vj=Jn(),Wj=S2(),Mq=Al();Aq.exports=function(r,t){Vj(r,t,{name:"shapes",handleItemDefaults:Xj})};function Zj(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Xj(e,r,t){function a(G,Q){return cc.coerce(e,r,Wj,G,Q)}r._isShape=!0;var n=a("visible");if(n){var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),cc.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var l=a("path"),o=l?"path":"rect",s=a("type",o),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));for(var v=a("xsizemode"),h=a("ysizemode"),d=["x","y"],m=0;m<2;m++){var g=d[m],y=g+"anchor",_=g==="x"?v:h,w={_fullLayout:t},T,b,A,C=cu.coerceRef(e,r,w,g,void 0,"paper"),k=cu.getRefType(C);if(k==="range"?(T=cu.getFromId(w,C),T._shapeIndices.push(r._index),A=Mq.rangeToShapePosition(T),b=Mq.shapePositionToRange(T),(T.type==="category"||T.type==="multicategory")&&(a(g+"0shift"),a(g+"1shift"))):b=A=cc.identity,u){var q=.25,D=.75,R=g+"0",z=g+"1",F=e[R],I=e[z];e[R]=b(e[R],!0),e[z]=b(e[z],!0),_==="pixel"?(a(R,0),a(z,10)):(cu.coercePosition(r,w,a,C,R,q),cu.coercePosition(r,w,a,C,z,D)),r[R]=A(r[R]),r[z]=A(r[z]),e[R]=F,e[z]=I}if(_==="pixel"){var O=e[y];e[y]=b(e[y],!0),cu.coercePosition(r,w,a,C,y,.25),r[y]=A(r[y]),e[y]=O}}u&&cc.noneOrAll(e,r,["x0","x1","y0","y1"]);var X=s==="line",J,U;if(u&&(J=a("label.texttemplate")),J||(U=a("label.text")),U||J){a("label.textangle");var H=a("label.textposition",X?"middle":"middle center");a("label.xanchor"),a("label.yanchor",Zj(X,H)),a("label.padding"),cc.coerceFont(a,"label.font",t.font)}}}});var Lq=Z((Wfe,Cq)=>{"use strict";var Jj=Er(),Sq=Ie();function Kj(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}Cq.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),Sq.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",Jj.contrast(i)),a("newshape.line.dash")}var l=r.dragmode==="drawline",o=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(o||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",l?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",Kj(l,u)),a("newshape.label.padding"),Sq.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var Rq=Z((Zfe,Pq)=>{"use strict";var C2=Ie(),vu=dt(),hu=Mf(),Dq=Al();Pq.exports=function(r){var t=r._fullLayout,a=C2.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n0?u+l:l;return{ppad:l,ppadplus:o?v:h,ppadminus:o?h:v}}else return{ppad:l}}function qq(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,l,o=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],l=r[a+"1"],n&&(o=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],l=r[a+"anchor"]),i!==void 0)return[u(i)+o,u(l)+s];if(r.path){var v=1/0,h=-1/0,d=r.path.match(hu.segmentRE),m,g,y,_,w;for(e.type==="date"&&(u=Dq.decodeDate(u)),m=0;mh&&(h=w)));if(h>=v)return[v,h]}}});var Fq=Z((Xfe,Nq)=>{"use strict";var zq=hh();Nq.exports={moduleType:"component",name:"shapes",layoutAttributes:S2(),supplyLayoutDefaults:kq(),supplyDrawNewShapeDefaults:Lq(),includeBasePlot:Vf()("shapes"),calcAutorange:Rq(),draw:zq.draw,drawOne:zq.drawOne}});var L2=Z((Kfe,Hq)=>{"use strict";var Iq=ya(),jj=ct().templatedArray,Jfe=Gf();Hq.exports=jj("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",Iq.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",Iq.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var Bq=Z((Qfe,Oq)=>{"use strict";var eee=Ie(),q2=dt(),ree=Jn(),tee=L2(),aee="images";Oq.exports=function(r,t){var a={name:aee,handleItemDefaults:nee};ree(r,t,a)};function nee(e,r,t){function a(h,d){return eee.coerce(e,r,tee,h,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var l={_fullLayout:t},o=["x","y"],s=0;s<2;s++){var u=o[s],f=q2.coerceRef(e,r,l,u,"paper",void 0);if(f!=="paper"){var v=q2.getFromId(l,f);v._imgIndices.push(r._index)}q2.coercePosition(r,l,a,f,u,0)}return r}});var Vq=Z(($fe,Gq)=>{"use strict";var Yq=Ir(),iee=at(),du=dt(),Uq=Zt(),lee=fo();Gq.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o{"use strict";var Wq=Hr(),oee=pv();Zq.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(i||l){for(var o=r._fullLayout.images,s=t._id.charAt(0),u,f,v=0;v{"use strict";Jq.exports={moduleType:"component",name:"images",layoutAttributes:L2(),supplyLayoutDefaults:Bq(),includeBasePlot:Vf()("images"),draw:Vq(),convertCoords:Xq()}});var Td=Z((rce,Qq)=>{"use strict";Qq.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var D2=Z((tce,jq)=>{"use strict";var see=ma(),uee=hi(),fee=Vt().extendFlat,cee=pi().overrideAll,vee=Sv(),$q=ct().templatedArray,hee=$q("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});jq.exports=cee($q("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:hee,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:fee(vee({editType:"arraydraw"}),{}),font:see({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:uee.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var aD=Z((ace,tD)=>{"use strict";var Md=Ie(),eD=Jn(),rD=D2(),dee=Td(),pee=dee.name,mee=rD.buttons;tD.exports=function(r,t){var a={name:pee,handleItemDefaults:yee};eD(r,t,a)};function yee(e,r,t){function a(l,o){return Md.coerce(e,r,rD,l,o)}var n=eD(e,r,{name:"buttons",handleItemDefaults:gee}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Md.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Md.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function gee(e,r){function t(n,i){return Md.coerce(e,r,mee,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var lD=Z((nce,iD)=>{"use strict";iD.exports=_t;var li=Ir(),nD=Er(),pu=at(),Ad=Ie();function _t(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}_t.barWidth=2;_t.barLength=20;_t.barRadius=2;_t.barPad=1;_t.barColor="#808BA4";_t.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,l=n.height;this.position=r;var o=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,v=this.position.direction,h=v==="down",d=v==="left",m=v==="right",g=v==="up",y=s,_=f,w,T,b,A;!h&&!d&&!m&&!g&&(this.position.direction="down",h=!0);var C=h||g;C?(w=o,T=w+y,h?(b=u,A=Math.min(b+_,l),_=A-b):(A=u+_,b=Math.max(A-_,0),_=A-b)):(b=u,A=b+_,d?(T=o+y,w=Math.max(T-y,0),y=T-w):(w=o,T=Math.min(w+y,i),y=T-w)),this._box={l:w,t:b,w:y,h:_};var k=s>y,q=_t.barLength+2*_t.barPad,D=_t.barWidth+2*_t.barPad,R=o,z=u+f;z+D>l&&(z=l-D);var F=this.container.selectAll("rect.scrollbar-horizontal").data(k?[0]:[]);F.exit().on(".drag",null).remove(),F.enter().append("rect").classed("scrollbar-horizontal",!0).call(nD.fill,_t.barColor),k?(this.hbar=F.attr({rx:_t.barRadius,ry:_t.barRadius,x:R,y:z,width:q,height:D}),this._hbarXMin=R+q/2,this._hbarTranslateMax=y-q):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var I=f>_,O=_t.barWidth+2*_t.barPad,X=_t.barLength+2*_t.barPad,J=o+s,U=u;J+O>i&&(J=i-O);var H=this.container.selectAll("rect.scrollbar-vertical").data(I?[0]:[]);H.exit().on(".drag",null).remove(),H.enter().append("rect").classed("scrollbar-vertical",!0).call(nD.fill,_t.barColor),I?(this.vbar=H.attr({rx:_t.barRadius,ry:_t.barRadius,x:J,y:U,width:O,height:X}),this._vbarYMin=U+X/2,this._vbarTranslateMax=_-X):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var G=this.id,Q=w-.5,K=I?T+O+.5:T+.5,ie=b-.5,he=k?A+D+.5:A+.5,me=n._topdefs.selectAll("#"+G).data(k||I?[0]:[]);if(me.exit().remove(),me.enter().append("clipPath").attr("id",G).append("rect"),k||I?(this._clipRect=me.select("rect").attr({x:Math.floor(Q),y:Math.floor(ie),width:Math.ceil(K)-Math.floor(Q),height:Math.ceil(he)-Math.floor(ie)}),this.container.call(pu.setClipUrl,G,this.gd),this.bg.attr({x:o,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(pu.setClipUrl,null),delete this._clipRect),k||I){var ke=li.behavior.drag().on("dragstart",function(){li.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ke);var ee=li.behavior.drag().on("dragstart",function(){li.event.sourceEvent.preventDefault(),li.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));k&&this.hbar.on(".drag",null).call(ee),I&&this.vbar.on(".drag",null).call(ee)}this.setTranslate(t,a)};_t.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(pu.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};_t.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=li.event.dx),this.vbar&&(t-=li.event.dy),this.setTranslate(r,t)};_t.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=li.event.deltaY),this.vbar&&(t+=li.event.deltaY),this.setTranslate(r,t)};_t.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Ad.constrain(li.event.x,a,n),l=(i-a)/(n-a),o=this.position.w-this._box.w;r=l*o}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=Ad.constrain(li.event.y,s,u),v=(f-s)/(u-s),h=this.position.h-this._box.h;t=v*h}this.setTranslate(r,t)};_t.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Ad.constrain(r||0,0,a),t=Ad.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(pu.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(pu.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(pu.setTranslate,r,t+l*this._vbarTranslateMax)}}});var mD=Z((ice,pD)=>{"use strict";var mu=Ir(),vc=Nt(),hc=Er(),yu=at(),dn=Ie(),kd=Ta(),bee=ct().arrayEditor,sD=Pa().LINE_SPACING,_r=Td(),xee=lD();pD.exports=function(r){var t=r._fullLayout,a=dn.filterVisible(t[_r.name]);function n(h){vc.autoMargin(r,hD(h))}var i=t._menulayer.selectAll("g."+_r.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(_r.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){mu.select(this).selectAll("g."+_r.headerGroupClassName).each(n)}).remove(),a.length!==0){var l=i.selectAll("g."+_r.headerGroupClassName).data(a,_ee);l.enter().append("g").classed(_r.headerGroupClassName,!0);for(var o=dn.ensureSingle(i,"g",_r.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s{"use strict";var Cee=Td();yD.exports={moduleType:"component",name:Cee.name,layoutAttributes:D2(),supplyLayoutDefaults:aD(),draw:mD()}});var pc=Z((oce,bD)=>{"use strict";bD.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var z2=Z((sce,wD)=>{"use strict";var xD=ma(),Lee=Sv(),qee=Vt().extendDeepAll,Dee=pi().overrideAll,Eee=Zu(),_D=ct().templatedArray,Oo=pc(),Pee=_D("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});wD.exports=Dee(_D("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Pee,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:qee(Lee({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:Eee.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:xD({})},font:xD({}),activebgcolor:{valType:"color",dflt:Oo.gripBgActiveColor},bgcolor:{valType:"color",dflt:Oo.railBgColor},bordercolor:{valType:"color",dflt:Oo.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Oo.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Oo.tickLength},tickcolor:{valType:"color",dflt:Oo.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Oo.minorTickLength}}),"arraydraw","from-root")});var kD=Z((uce,AD)=>{"use strict";var gu=Ie(),TD=Jn(),MD=z2(),Ree=pc(),zee=Ree.name,Nee=MD.steps;AD.exports=function(r,t){TD(r,t,{name:zee,handleItemDefaults:Fee})};function Fee(e,r,t){function a(v,h){return gu.coerce(e,r,MD,v,h)}for(var n=TD(e,r,{name:"steps",handleItemDefaults:Iee}),i=0,l=0;l{"use strict";var oi=Ir(),Sd=Nt(),Pl=Er(),si=at(),pn=Ie(),Hee=pn.strTranslate,mc=Ta(),Oee=ct().arrayEditor,Dr=pc(),I2=Pa(),LD=I2.LINE_SPACING,N2=I2.FROM_TL,F2=I2.FROM_BR;zD.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=Bee(a,r),i=a._infolayer.selectAll("g."+Dr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Dr.containerClassName,!0).style("cursor",t?null:"ew-resize");function l(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Sd.autoMargin(r,qD(f))}if(i.exit().each(function(){oi.select(this).selectAll("g."+Dr.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Dr.groupClassName).data(n,Yee);o.enter().append("g").classed(Dr.groupClassName,!0),o.exit().each(l).remove();for(var s=0;s0&&(o=o.transition().duration(r.transition.duration).ease(r.transition.easing)),o.attr("transform",Hee(l-Dr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function H2(e,r){var t=e._dims;return t.inputAreaStart+Dr.stepInset+(t.inputAreaLength-2*Dr.stepInset)*Math.min(1,Math.max(0,r))}function CD(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Dr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Dr.stepInset-2*t.inputAreaStart)))}function Jee(e,r,t){var a=t._dims,n=pn.ensureSingle(e,"rect",Dr.railTouchRectClass,function(i){i.call(PD,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Dr.tickOffset+t.ticklen+a.labelHeight)}).call(Pl.fill,t.bgcolor).attr("opacity",0),si.setTranslate(n,0,a.currentValueTotalHeight)}function Kee(e,r){var t=r._dims,a=t.inputAreaLength-Dr.railInset*2,n=pn.ensureSingle(e,"rect",Dr.railRectClass);n.attr({width:a,height:Dr.railWidth,rx:Dr.railRadius,ry:Dr.railRadius,"shape-rendering":"crispEdges"}).call(Pl.stroke,r.bordercolor).call(Pl.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),si.setTranslate(n,Dr.railInset,(t.inputAreaWidth-Dr.railWidth)*.5+t.currentValueTotalHeight)}});var ID=Z((cce,FD)=>{"use strict";var Qee=pc();FD.exports={moduleType:"component",name:Qee.name,layoutAttributes:z2(),supplyLayoutDefaults:kD(),draw:ND()}});var Ld=Z((vce,OD)=>{"use strict";var HD=hi();OD.exports={bgcolor:{valType:"color",dflt:HD.background,editType:"plot"},bordercolor:{valType:"color",dflt:HD.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var O2=Z((hce,BD)=>{"use strict";BD.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var qd=Z((dce,YD)=>{"use strict";YD.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var VD=Z(Ed=>{"use strict";var $ee=Zt(),jee=Ta(),UD=qd(),ere=Pa().LINE_SPACING,Dd=UD.name;function GD(e){var r=e&&e[Dd];return r&&r.visible}Ed.isVisible=GD;Ed.makeData=function(e){for(var r=$ee.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Pd=Ie(),WD=ct(),ZD=Zt(),rre=Ld(),tre=O2();XD.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Pd.isPlainObject(n.rangeslider)||(n.rangeslider={});var l=n.rangeslider,o=WD.newContainer(i,"rangeslider");function s(A,C){return Pd.coerce(l,o,rre,A,C)}var u,f;function v(A,C){return Pd.coerce(u,f,tre,A,C)}var h=s("visible");if(h){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(l.range)),s("range");var d=t._subplots;if(d)for(var m=d.cartesian.filter(function(A){return A.substr(0,A.indexOf("y"))===ZD.name2id(a)}).map(function(A){return A.substr(A.indexOf("y"),A.length)}),g=Pd.simpleMap(m,ZD.id2name),y=0;y{"use strict";var are=Zt().list,nre=hf().getAutoRange,ire=qd();KD.exports=function(r){for(var t=are(r,"x",!0),a=0;a{"use strict";var Rd=Ir(),lre=br(),ore=Nt(),Lt=Ie(),zd=Lt.strTranslate,jD=at(),Rl=Er(),sre=cf(),ure=bd(),B2=Zt(),fre=Qn(),cre=wl(),Fr=qd();eE.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=H.max)J=z[U+1];else if(X=H.pmax)J=z[U+1];else if(X0?e.touches[0].clientX:0}function vre(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Fr.slideBoxClassName).node(),i=e.select("rect."+Fr.grabAreaMinClassName).node(),l=e.select("rect."+Fr.grabAreaMaxClassName).node();function o(){var s=Rd.event,u=s.target,f=$D(s),v=f-e.node().getBoundingClientRect().left,h=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),m=fre.coverSlip();this.addEventListener("touchmove",g),this.addEventListener("touchend",y),m.addEventListener("mousemove",g),m.addEventListener("mouseup",y);function g(_){var w=$D(_),T=+w-f,b,A,C;switch(u){case n:if(C="ew-resize",h+T>t._length||d+T<0)return;b=h+T,A=d+T;break;case i:if(C="col-resize",h+T>t._length)return;b=h+T,A=d;break;case l:if(C="col-resize",d+T<0)return;b=h,A=d+T;break;default:C="ew-resize",b=v,A=v+T;break}if(A{"use strict";var wre=Ie(),Tre=Ld(),Mre=O2(),Y2=VD();tE.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:wre.extendFlat({},Tre,{yaxis:Mre})}}},layoutAttributes:Ld(),handleDefaults:JD(),calcAutorange:QD(),draw:rE(),isVisible:Y2.isVisible,makeData:Y2.makeData,autoMarginOpts:Y2.autoMarginOpts}});var Nd=Z((xce,iE)=>{"use strict";var Are=ma(),nE=hi(),kre=ct().templatedArray,Sre=kre("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});iE.exports={visible:{valType:"boolean",editType:"plot"},buttons:Sre,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:Are({editType:"plot"}),bgcolor:{valType:"color",dflt:nE.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:nE.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var U2=Z((_ce,lE)=>{"use strict";lE.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var uE=Z((wce,sE)=>{"use strict";var Fd=Ie(),Cre=Er(),Lre=ct(),qre=Jn(),oE=Nd(),G2=U2();sE.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=Lre.newContainer(t,"rangeselector");function s(d,m){return Fd.coerce(l,o,oE,d,m)}var u=qre(l,o,{name:"buttons",handleItemDefaults:Dre,calendar:i}),f=s("visible",u.length>0);if(f){var v=Ere(t,a,n);s("x",v[0]),s("y",v[1]),Fd.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Fd.coerceFont(s,"font",a.font);var h=s("bgcolor");s("activecolor",Cre.contrast(h,G2.lightAmount,G2.darkAmount)),s("bordercolor"),s("borderwidth")}};function Dre(e,r,t,a){var n=a.calendar;function i(s,u){return Fd.coerce(e,r,oE.buttons,s,u)}var l=i("visible");if(l){var o=i("step");o!=="all"&&(n&&n!=="gregorian"&&(o==="month"||o==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function Ere(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i{"use strict";var Pre=O1(),Rre=Ie().titleCase;fE.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=zre(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function zre(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=Pre["utc"+Rre(n)],l=r.count,o;switch(r.stepmode){case"backward":o=e.l2r(+i.offset(a,-l));break;case"todate":var s=i.offset(a,-l);o=e.l2r(+i.ceil(s));break}var u=t[1];return[o,u]}});var bE=Z((Mce,gE)=>{"use strict";var Hd=Ir(),Nre=br(),Fre=Nt(),vE=Er(),yE=at(),Ki=Ie(),hE=Ki.strTranslate,Id=Ta(),Ire=Zt(),Z2=Pa(),dE=Z2.LINE_SPACING,pE=Z2.FROM_TL,mE=Z2.FROM_BR,W2=U2(),Hre=cE();gE.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(Ore(r),Bre);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Hd.select(this),l=n,o=l.rangeselector,s=i.selectAll("g.button").data(Ki.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Hd.select(this),v=Hre(l,u);u._isActive=Yre(l,u,v),f.call(V2,o,u),f.call(Gre,o,u,r),f.on("click",function(){r._dragged||Nre.call("_guiRelayout",r,v)}),f.on("mouseover",function(){u._isHovered=!0,f.call(V2,o,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(V2,o,u)})}),Wre(r,s,o,l._name,i)})};function Ore(e){for(var r=Ire.list(e,"x",!0),t=[],a=0;a{"use strict";xE.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Nd()}}},layoutAttributes:Nd(),handleDefaults:uE(),draw:bE()}});var Od=Z(X2=>{"use strict";var wE=Vt().extendFlat;X2.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",l={x:wE({},t,{}),y:wE({},t,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};X2.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],l=r.grid;if(l){var o=t("domain.column");o!==void 0&&(o{"use strict";var Zre=Ie(),Xre=cs().counter,Jre=Od().attributes,TE=ya().idRegex,Kre=ct(),J2={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Xre("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[TE.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[TE.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Jre({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Bd(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function Qre(e,r){var t=e.grid||{},a=Bd(r,t,"x"),n=Bd(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),l=Array.isArray(a),o=Array.isArray(n),s=l&&a!==t.xaxes&&o&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(o&&(u=n.length),l&&(f=a.length));var v=Kre.newContainer(r,"grid");function h(C,k){return Zre.coerce(t,v,J2,C,k)}var d=h("rows",u),m=h("columns",f);if(!(d*m>1)){delete r.grid;return}if(!i&&!l&&!o){var g=h("pattern")==="independent";g&&(i=!0)}v._hasSubplotGrid=i;var y=h("roworder"),_=y==="top to bottom",w=i?.2:.1,T=i?.3:.1,b,A;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,A=r._splomGridDflt.yside),v._domains={x:ME("x",h,w,b,m),y:ME("y",h,T,A,d,_)}}function ME(e,r,t,a,n,i){var l=r(e+"gap",t),o=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=o[0],f=(o[1]-u)/(n-l),v=f*(1-l),h=0;h{"use strict";CE.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var DE=Z((Lce,qE)=>{"use strict";var LE=Hr(),jre=br(),ete=Ie(),rte=ct(),tte=K2();qE.exports=function(e,r,t,a){var n="error_"+a.axis,i=rte.newContainer(r,n),l=e[n]||{};function o(m,g){return ete.coerce(l,i,tte,m,g)}var s=l.array!==void 0||l.value!==void 0||l.type==="sqrt",u=o("visible",s);if(u!==!1){var f=o("type","array"in l?"data":"percent"),v=!0;f!=="sqrt"&&(v=o("symmetric",!((f==="data"?"arrayminus":"valueminus")in l))),f==="data"?(o("array"),o("traceref"),v||(o("arrayminus"),o("tracerefminus"))):(f==="percent"||f==="constant")&&(o("value"),v||o("valueminus"));var h="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&o(h,!(l.color||LE(l.thickness)||LE(l.width)))}(!a.inherit||!i[h])&&(o("color",t),o("thickness"),o("width",jre.traceIs(r,"gl3d")?0:4))}}});var Q2=Z((qce,PE)=>{"use strict";PE.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var v=+n[f];return[v,v]};var i=r.arrayminus||[];return function(u,f){var v=+n[f],h=+i[f];return!isNaN(v)||!isNaN(h)?[h||0,v||0]:[NaN,NaN]}}else{var l=EE(t,r.value),o=EE(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=l(u);return[f,f]}:function(u){return[o(u),l(u)]}}};function EE(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var NE=Z((Dce,zE)=>{"use strict";var $2=Hr(),ate=br(),j2=dt(),nte=Ie(),ite=Q2();zE.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var FE=Ir(),zl=Hr(),lte=at(),ote=on();IE.exports=function(r,t,a,n){var i,l=a.xaxis,o=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var v=f[0].trace,h=v.error_x||{},d=v.error_y||{},m;v.ids&&(m=function(w){return w.id});var g=ote.hasMarkers(v)&&v.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var y=FE.select(this).selectAll("g.errorbar").data(f,m);if(y.exit().remove(),!!f.length){h.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var _=y.enter().append("g").classed("errorbar",!0);s&&_.style("opacity",0).transition().duration(n.duration).style("opacity",1),lte.setClipUrl(y,a.layerClipId,r),y.each(function(w){var T=FE.select(this),b=ste(w,l,o);if(!(g&&!w.vis)){var A,C=T.select("path.yerror");if(d.visible&&zl(b.x)&&zl(b.yh)&&zl(b.ys)){var k=d.width;A="M"+(b.x-k)+","+b.yh+"h"+2*k+"m-"+k+",0V"+b.ys,b.noYS||(A+="m-"+k+",0h"+2*k),i=!C.size(),i?C=T.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(C=C.transition().duration(n.duration).ease(n.easing)),C.attr("d",A)}else C.remove();var q=T.select("path.xerror");if(h.visible&&zl(b.y)&&zl(b.xh)&&zl(b.xs)){var D=(h.copy_ystyle?d:h).width;A="M"+b.xh+","+(b.y-D)+"v"+2*D+"m0,-"+D+"H"+b.xs,b.noXS||(A+="m0,-"+D+"v"+2*D),i=!q.size(),i?q=T.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(q=q.transition().duration(n.duration).ease(n.easing)),q.attr("d",A)}else q.remove()}})}})};function ste(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),zl(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),zl(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var YE=Z((Pce,BE)=>{"use strict";var ute=Ir(),OE=Er();BE.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=ute.select(this);l.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(OE.stroke,n.color),i.copy_ystyle&&(i=n),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(OE.stroke,i.color)})}});var VE=Z((Rce,GE)=>{"use strict";var yc=Ie(),UE=pi().overrideAll,gc=K2(),Bo={error_x:yc.extendFlat({},gc),error_y:yc.extendFlat({},gc)};delete Bo.error_x.copy_zstyle;delete Bo.error_y.copy_zstyle;delete Bo.error_y.copy_ystyle;var bc={error_x:yc.extendFlat({},gc),error_y:yc.extendFlat({},gc),error_z:yc.extendFlat({},gc)};delete bc.error_x.copy_ystyle;delete bc.error_y.copy_ystyle;delete bc.error_z.copy_ystyle;delete bc.error_z.copy_zstyle;GE.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Bo,bar:Bo,histogram:Bo,scatter3d:UE(bc,"calc","nested"),scattergl:UE(Bo,"calc","nested")}},supplyDefaults:DE(),calc:NE(),makeComputeError:Q2(),plot:HE(),style:YE(),hoverInfo:fte};function fte(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var ZE=Z((zce,WE)=>{"use strict";WE.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var eP=Z((Nce,jE)=>{"use strict";var Nl=Ir(),e3=bn(),Ud=Nt(),XE=br(),Qi=dt(),Yd=Qn(),Nn=Ie(),fi=Nn.strTranslate,$E=Vt().extendFlat,r3=wl(),ui=at(),t3=Er(),cte=cf(),vte=Ta(),hte=Tn().flipScale,dte=c2(),pte=v2(),mte=Xn(),a3=Pa(),JE=a3.LINE_SPACING,KE=a3.FROM_TL,QE=a3.FROM_BR,xt=ZE().cn;function yte(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+xt.colorbar).data(gte(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(xt.colorbar,!0),t.each(function(a){var n=Nl.select(this);Nn.ensureSingle(n,"rect",xt.cbbg),Nn.ensureSingle(n,"g",xt.cbfills),Nn.ensureSingle(n,"g",xt.cblines),Nn.ensureSingle(n,"g",xt.cbaxis,function(l){l.classed(xt.crisp,!0)}),Nn.ensureSingle(n,"g",xt.cbtitleunshift,function(l){l.append("g").classed(xt.cbtitle,!0)}),Nn.ensureSingle(n,"rect",xt.cboutline);var i=bte(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&xte(n,a,e)}),t.exit().each(function(a){Ud.autoMargin(e,a._id)}).remove(),t.order()}function gte(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(T){return $E(T,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof o.calc=="function"?o.calc(e,l,n):(n._fillgradient=i.reversescale?hte(i.colorscale):i.colorscale,n._zrange=[i[o.min],i[o.max]])}for(var f=0;f1){var re=Math.pow(10,Math.floor(Math.log(Y)/Math.LN10));se*=re*Nn.roundUp(Y/re,[2,5,10]),(Math.abs(F.start)/F.size+1e-6)%1<2e-6&&(fe.tick0=0)}fe.dtick=se}fe.domain=a?[ee+m/b.h,ee+G-m/b.h]:[ee+d/b.w,ee+G-d/b.w],fe.setScale(),e.attr("transform",fi(Math.round(b.l),Math.round(b.t)));var B=e.select("."+xt.cbtitleunshift).attr("transform",fi(-Math.round(b.l),-Math.round(b.t))),ge=fe.ticklabelposition,Me=fe.title.font.size,ye=e.select("."+xt.cbaxis),Re,Ne=0,Ee=0;function ze(Oe,ne){var Te={propContainer:fe,propName:r._propPrefix+"title",traceIndex:r._traceIndex,_meta:r._meta,placeholder:T._dfltTitle.colorbar,containerGroup:e.select("."+xt.cbtitle)},Xe=Oe.charAt(0)==="h"?Oe.substr(1):"h"+Oe;e.selectAll("."+Xe+",."+Xe+"-math-group").remove(),cte.draw(t,Oe,$E(Te,ne||{}))}function Ve(){if(a&&be||!a&&!be){var Oe,ne;q==="top"&&(Oe=d+b.l+Q*g,ne=m+b.t+K*(1-ee-G)+3+Me*.75),q==="bottom"&&(Oe=d+b.l+Q*g,ne=m+b.t+K*(1-ee)-3-Me*.25),q==="right"&&(ne=m+b.t+K*y+3+Me*.75,Oe=d+b.l+Q*ee),ze(fe._id+"title",{attributes:{x:Oe,y:ne,"text-anchor":a?"start":"middle"}})}}function Ue(){if(a&&!be||!a&&be){var Oe=fe.position||0,ne=fe._offset+fe._length/2,Te,Xe;if(q==="right")Xe=ne,Te=b.l+Q*Oe+10+Me*(fe.showticklabels?1:.5);else if(Te=ne,q==="bottom"&&(Xe=b.t+K*Oe+10+(ge.indexOf("inside")===-1?fe.tickfont.size:0)+(fe.ticks!=="intside"&&r.ticklen||0)),q==="top"){var cr=k.text.split("
").length;Xe=b.t+K*Oe+10-J-JE*Me*cr}ze((a?"h":"v")+fe._id+"title",{avoid:{selection:Nl.select(t).selectAll("g."+fe._id+"tick"),side:q,offsetTop:a?0:b.t,offsetLeft:a?b.l:0,maxShift:a?T.width:T.height},attributes:{x:Te,y:Xe,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function De(){if(!a&&!be||a&&be){var Oe=e.select("."+xt.cbtitle),ne=Oe.select("text"),Te=[-s/2,s/2],Xe=Oe.select(".h"+fe._id+"title-math-group").node(),cr=15.6;ne.node()&&(cr=parseInt(ne.node().style.fontSize,10)*JE);var fr;if(Xe?(fr=ui.bBox(Xe),Ee=fr.width,Ne=fr.height,Ne>cr&&(Te[1]-=(Ne-cr)/2)):ne.node()&&!ne.classed(xt.jsPlaceholder)&&(fr=ui.bBox(ne.node()),Ee=fr.width,Ne=fr.height),a){if(Ne){if(Ne+=5,q==="top")fe.domain[1]-=Ne/b.h,Te[1]*=-1;else{fe.domain[0]+=Ne/b.h;var le=vte.lineCount(ne);Te[1]+=(1-le)*cr}Oe.attr("transform",fi(Te[0],Te[1])),fe.setScale()}}else Ee&&(q==="right"&&(fe.domain[0]+=(Ee+Me/2)/b.w),Oe.attr("transform",fi(Te[0],Te[1])),fe.setScale())}e.selectAll("."+xt.cbfills+",."+xt.cblines).attr("transform",a?fi(0,Math.round(b.h*(1-fe.domain[1]))):fi(Math.round(b.w*fe.domain[0]),0)),ye.attr("transform",a?fi(0,Math.round(-b.t)):fi(Math.round(-b.l),0));var Se=e.select("."+xt.cbfills).selectAll("rect."+xt.cbfill).attr("style","").data(O);Se.enter().append("rect").classed(xt.cbfill,!0).attr("style",""),Se.exit().remove();var Fe=D.map(fe.c2p).map(Math.round).sort(function(vr,Ke){return vr-Ke});Se.each(function(vr,Ke){var Pe=[Ke===0?D[0]:(O[Ke]+O[Ke-1])/2,Ke===O.length-1?D[1]:(O[Ke]+O[Ke+1])/2].map(fe.c2p).map(Math.round);a&&(Pe[1]=Nn.constrain(Pe[1]+(Pe[1]>Pe[0])?1:-1,Fe[0],Fe[1]));var ae=Nl.select(this).attr(a?"x":"y",ie).attr(a?"y":"x",Nl.min(Pe)).attr(a?"width":"height",Math.max(J,2)).attr(a?"height":"width",Math.max(Nl.max(Pe)-Nl.min(Pe),2));if(r._fillgradient)ui.gradient(ae,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var ue=z(vr).replace("e-","");ae.attr("fill",e3(ue).toHexString())}});var We=e.select("."+xt.cblines).selectAll("path."+xt.cbline).data(C.color&&C.width?X:[]);We.enter().append("path").classed(xt.cbline,!0),We.exit().remove(),We.each(function(vr){var Ke=ie,Pe=Math.round(fe.c2p(vr))+C.width/2%1;Nl.select(this).attr("d","M"+(a?Ke+","+Pe:Pe+","+Ke)+(a?"h":"v")+J).call(ui.lineGroupStyle,C.width,R(vr),C.dash)}),ye.selectAll("g."+fe._id+"tick,path").remove();var Ge=ie+J+(s||0)/2-(r.ticks==="outside"?1:0),Je=Qi.calcTicks(fe),je=Qi.getTickSigns(fe)[2];return Qi.drawTicks(t,fe,{vals:fe.ticks==="inside"?Qi.clipEnds(fe,Je):Je,layer:ye,path:Qi.makeTickPath(fe,Ge,je),transFn:Qi.makeTransTickFn(fe)}),Qi.drawLabels(t,fe,{vals:Je,layer:ye,transFn:Qi.makeTransTickLabelFn(fe),labelFns:Qi.makeLabelFns(fe,Ge)})}function He(){var Oe,ne=J+s/2;ge.indexOf("inside")===-1&&(Oe=ui.bBox(ye.node()),ne+=a?Oe.width:Oe.height),Re=B.select("text");var Te=0,Xe=a&&q==="top",cr=!a&&q==="right",fr=0;if(Re.node()&&!Re.classed(xt.jsPlaceholder)){var le,Se=B.select(".h"+fe._id+"title-math-group").node();Se&&(a&&be||!a&&!be)?(Oe=ui.bBox(Se),Te=Oe.width,le=Oe.height):(Oe=ui.bBox(B.node()),Te=Oe.right-b.l-(a?ie:Le),le=Oe.bottom-b.t-(a?Le:ie),!a&&q==="top"&&(ne+=Oe.height,fr=Oe.height)),cr&&(Re.attr("transform",fi(Te/2+Me/2,0)),Te*=2),ne=Math.max(ne,a?Te:le)}var Fe=(a?d:m)*2+ne+u+s/2,We=0;!a&&k.text&&h==="bottom"&&y<=0&&(We=Fe/2,Fe+=We,fr+=We),T._hColorbarMoveTitle=We,T._hColorbarMoveCBTitle=fr;var Ge=u+s,Je=(a?ie:Le)-Ge/2-(a?d:0),je=(a?Le:ie)-(a?H:m+fr-We);e.select("."+xt.cbbg).attr("x",Je).attr("y",je).attr(a?"width":"height",Math.max(Fe-We,2)).attr(a?"height":"width",Math.max(H+Ge,2)).call(t3.fill,f).call(t3.stroke,r.bordercolor).style("stroke-width",u);var vr=cr?Math.max(Te-10,0):0;e.selectAll("."+xt.cboutline).attr("x",(a?ie:Le+d)+vr).attr("y",(a?Le+m-H:ie)+(Xe?Ne:0)).attr(a?"width":"height",Math.max(J,2)).attr(a?"height":"width",Math.max(H-(a?2*m+Ne:2*d+vr),2)).call(t3.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Ke=a?he*Fe:0,Pe=a?0:(1-me)*Fe-fr;if(Ke=w?b.l-Ke:-Ke,Pe=_?b.t-Pe:-Pe,e.attr("transform",fi(Ke,Pe)),!a&&(u||e3(f).getAlpha()&&!e3.equals(T.paper_bgcolor,f))){var ae=ye.selectAll("text"),ue=ae[0].length,qe=e.select("."+xt.cbbg).node(),Ce=ui.bBox(qe),or=ui.getTranslate(e),lr=2;ae.each(function(ua,fa){var zt=0,Oa=ue-1;if(fa===zt||fa===Oa){var yr=ui.bBox(this),lt=ui.getTranslate(this),Vr;if(fa===Oa){var gt=yr.right+lt.x,kt=Ce.right+or.x+Le-u-lr+g;Vr=kt-gt,Vr>0&&(Vr=0)}else if(fa===zt){var ot=yr.left+lt.x,bt=Ce.left+or.x+Le+u+lr;Vr=bt-ot,Vr<0&&(Vr=0)}Vr&&(ue<3?this.setAttribute("transform","translate("+Vr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ar={},Mr=KE[v],Br=QE[v],et=KE[h],Qr=QE[h],Kt=Fe-J;a?(i==="pixels"?(ar.y=y,ar.t=H*et,ar.b=H*Qr):(ar.t=ar.b=0,ar.yt=y+n*et,ar.yb=y-n*Qr),o==="pixels"?(ar.x=g,ar.l=Fe*Mr,ar.r=Fe*Br):(ar.l=Kt*Mr,ar.r=Kt*Br,ar.xl=g-l*Mr,ar.xr=g+l*Br)):(i==="pixels"?(ar.x=g,ar.l=H*Mr,ar.r=H*Br):(ar.l=ar.r=0,ar.xl=g+n*Mr,ar.xr=g-n*Br),o==="pixels"?(ar.y=1-y,ar.t=Fe*et,ar.b=Fe*Qr):(ar.t=Kt*et,ar.b=Kt*Qr,ar.yt=y-l*et,ar.yb=y+l*Qr));var qt=r.y<.5?"b":"t",yt=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var At={r:T.width-Je-Ke,l:Je+ar.r,b:T.height-je-Pe,t:je+ar.b};w&&_?Ud.autoMargin(t,r._id,ar):w?t._fullLayout._reservedMargin[r._id][qt]=At[qt]:_||a?t._fullLayout._reservedMargin[r._id][yt]=At[yt]:t._fullLayout._reservedMargin[r._id][qt]=At[qt]}return Nn.syncOrAsync([Ud.previousPromises,Ve,De,Ue,Ud.previousPromises,He],t)}function xte(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,l,o,s;Yd.init({element:e.node(),gd:t,prepFn:function(){l=e.attr("transform"),r3(e)},moveFn:function(u,f){e.attr("transform",l+fi(u,f)),o=Yd.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Yd.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var v=Yd.getCursor(o,s,r.xanchor,r.yanchor);r3(e,v)},doneFn:function(){if(r3(e),o!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=o,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?XE.call("_guiRestyle",t,u,r._traceIndex):XE.call("_guiRelayout",t,u)}}})}function _te(e,r,t){var a=r._levels,n=[],i=[],l,o,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],v=1.001*t[1]-.001*t[0];for(o=0;o<1e5&&(l=a.start+o*u,!(u>0?l>=s:l<=s));o++)l>f&&l0?l>=s:l<=s));o++)l>t[0]&&l{"use strict";rP.exports={moduleType:"component",name:"colorbar",attributes:t0(),supplyDefaults:im(),draw:eP().draw,hasColorbar:Xp()}});var nP=Z((Ice,aP)=>{"use strict";aP.exports={moduleType:"component",name:"legend",layoutAttributes:ry(),supplyLayoutDefaults:ny(),draw:my(),style:vy()}});var lP=Z((Hce,iP)=>{"use strict";iP.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var sP=Z((Oce,oP)=>{"use strict";oP.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var i3=Z((Bce,vP)=>{"use strict";var Tte=br(),cP=Ie(),n3=cP.extendFlat,uP=cP.extendDeep;function fP(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function Mte(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}vP.exports=function(r,t){var a,n=r.data,i=r.layout,l=uP([],n),o=uP({},i,fP(t.tileClass)),s=r._context||{};if(t.width&&(o.width=t.width),t.height&&(o.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){o.annotations=[];var u=Object.keys(o);for(a=0;a{"use strict";var Ate=Yv().EventEmitter,kte=br(),Ste=Ie(),hP=Do(),Cte=i3(),Lte=Qh(),qte=$h();function Dte(e,r){var t=new Ate,a=Cte(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=hP.getDelay(n._fullLayout);setTimeout(function(){var s=Lte(n),u=document.createElement("canvas");u.id=Ste.randstr(),t=qte({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},o)}var l=hP.getRedrawFunc(n);return kte.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}dP.exports=Dte});var gP=Z((Uce,yP)=>{"use strict";var mP=Do(),Ete={getDelay:mP.getDelay,getRedrawFunc:mP.getRedrawFunc,clone:i3(),toSVG:Qh(),svgToImg:$h(),toImage:pP(),downloadImage:Rg()};yP.exports=Ete});var xP=Z($i=>{"use strict";$i.version=iv().version;ub();j4();var Pte=br(),xc=$i.register=Pte.register,o3=TS(),bP=Object.keys(o3);for(Gd=0;Gd{"use strict";_P.exports=xP()});var Wd=Z((Wce,TP)=>{"use strict";TP.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var _c=Z((Zce,SP)=>{"use strict";var Mt=qo(),MP=r0().axisHoverFormat,Rte=yi().hovertemplateAttrs,zte=yi().texttemplateAttrs,kP=sf(),Nte=ma(),AP=Wd(),Fte=mi().pattern,Yo=Vt().extendFlat,s3=Nte({editType:"calc",arrayOk:!0,colorEditType:"style"}),Ite=Mt.marker,Hte=Ite.line,Ote=Yo({},Hte.width,{dflt:0}),Bte=Yo({width:Ote,editType:"calc"},kP("marker.line")),Yte=Yo({line:Bte,editType:"calc"},kP("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:Fte,cornerradius:{valType:"any",editType:"calc"}});SP.exports={x:Mt.x,x0:Mt.x0,dx:Mt.dx,y:Mt.y,y0:Mt.y0,dy:Mt.dy,xperiod:Mt.xperiod,yperiod:Mt.yperiod,xperiod0:Mt.xperiod0,yperiod0:Mt.yperiod0,xperiodalignment:Mt.xperiodalignment,yperiodalignment:Mt.yperiodalignment,xhoverformat:MP("x"),yhoverformat:MP("y"),text:Mt.text,texttemplate:zte({editType:"plot"},{keys:AP.eventDataKeys}),hovertext:Mt.hovertext,hovertemplate:Rte({},{keys:AP.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Yo({},s3,{}),insidetextfont:Yo({},s3,{}),outsidetextfont:Yo({},s3,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Yo({},Mt.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:Yte,offsetgroup:Mt.offsetgroup,alignmentgroup:Mt.alignmentgroup,selected:{marker:{opacity:Mt.selected.marker.opacity,color:Mt.selected.marker.color,editType:"style"},textfont:Mt.selected.textfont,editType:"style"},unselected:{marker:{opacity:Mt.unselected.marker.opacity,color:Mt.unselected.marker.color,editType:"style"},textfont:Mt.unselected.textfont,editType:"style"},zorder:Mt.zorder}});var u3=Z((Xce,CP)=>{"use strict";CP.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var EP=Z((Jce,DP)=>{"use strict";var Ute=Er(),LP=Tn().hasColorscale,qP=Ls(),Gte=Ie().coercePattern;DP.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=LP(r,"marker");o&&qP(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",Ute.defaultLine),LP(r,"marker.line")&&qP(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),Gte(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var wc=Z((Kce,IP)=>{"use strict";var PP=Hr(),xu=Ie(),RP=Er(),Vte=br(),Wte=Fg(),Zte=Ig(),Xte=EP(),Jte=Hg(),zP=_c(),Zd=xu.coerceFont;function Kte(e,r,t,a){function n(u,f){return xu.coerce(e,r,zP,u,f)}var i=Wte(e,r,a,n);if(!i){r.visible=!1;return}Zte(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate");var l=n("textposition");FP(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),Xte(e,r,n,t,a);var o=(r.marker.line||{}).color,s=Vte.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||RP.defaultLine,{axis:"y"}),s(e,r,o||RP.defaultLine,{axis:"x",inherit:"y"}),xu.coerceSelectionMarkerOpacity(r,n)}function Qte(e,r){var t,a;function n(o,s){return xu.coerce(a._input,a,zP,o,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&PP(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function FP(e,r,t,a,n,i){i=i||{};var l=i.moduleHasSelected!==!1,o=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,v=i.moduleHasInsideanchor!==!1,h=!!i.hasPathbar,d=Array.isArray(n)||n==="auto",m=d||n==="inside",g=d||n==="outside";if(m||g){var y=Zd(a,"textfont",t.font),_=xu.extendFlat({},y),w=e.textfont&&e.textfont.color,T=!w;if(T&&delete _.color,Zd(a,"insidetextfont",_),h){var b=xu.extendFlat({},y);T&&delete b.color,Zd(a,"pathbar.textfont",b)}g&&Zd(a,"outsidetextfont",y),l&&a("selected.textfont.color"),o&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate")}m&&v&&a("insidetextanchor")}IP.exports={supplyDefaults:Kte,crossTraceDefaults:Qte,handleText:FP,validateCornerradius:NP}});var OP=Z((Qce,HP)=>{"use strict";var $te=br(),jte=dt(),eae=Ie(),rae=u3(),tae=wc().validateCornerradius;HP.exports=function(e,r,t){function a(g,y){return eae.coerce(e,r,rae,g,y)}for(var n=!1,i=!1,l=!1,o={},s=a("barmode"),u=s==="group",f=0;f0&&!o[h]&&(l=!0),o[h]=!0),v.visible&&v.type==="histogram"){var d=jte.getFromId({_fullLayout:r},v[v.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!l?0:.2),a("bargroupgap");var m=a("barcornerradius");r.barcornerradius=tae(m)}});var f3=Z(($ce,BP)=>{"use strict";var _u=Ie();BP.exports=function(r,t){for(var a=0;a{"use strict";var YP=dt(),UP=Og(),GP=Tn().hasColorscale,VP=i0(),aae=f3(),nae=Gg();WP.exports=function(r,t){var a=YP.getFromId(r,t.xaxis||"x"),n=YP.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,v={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",v),o=n.makeCalcdata(t,"y"),s=UP(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",v),o=a.makeCalcdata(t,"x"),s=UP(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var h=Math.min(l.length,i.length),d=new Array(h),m=0;m{"use strict";var iae=Ir(),lae=Ie();function oae(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",l;switch(t){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":case"icicle":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}r.selectAll(l).each(function(o){var s=o.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=iae.select(this).select("text");lae.setTransormAndDisplay(u,s)}})}}function sae(e,r,t){if(t.uniformtext.mode){var a=XP(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var fae=Hr(),cae=bn(),KP=Ie().isArrayOrTypedArray;Uo.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};Uo.coerceNumber=function(e,r,t){if(fae(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};Uo.coerceColor=function(e,r,t){return cae(r).isValid()?r:t!==void 0?t:e.dflt};Uo.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Uo.getValue=function(e,r){var t;return KP(e)?r{"use strict";var Mc=Ir(),vae=Er(),Ac=at(),QP=Ie(),$P=br(),jP=Tc().resizeText,c3=_c(),hae=c3.textfont,dae=c3.insidetextfont,pae=c3.outsidetextfont,xa=Xd();function mae(e){var r=Mc.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");jP(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&Mc.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=Mc.select(this),l=n[0].trace;eR(i,l,e)}),$P.getComponentMethod("errorbars","style")(r)}function eR(e,r,t){Ac.pointStyle(e.selectAll("path"),r,t),rR(e,r,t)}function rR(e,r,t){e.selectAll("text").each(function(a){var n=Mc.select(this),i=QP.ensureUniformFontSize(t,tR(n,a,r,t));Ac.font(n,i)})}function yae(e,r,t){var a=r[0].trace;a.selectedpoints?gae(t,a,e):(eR(t,a,e),$P.getComponentMethod("errorbars","style")(t))}function gae(e,r,t){Ac.selectedPointStyle(e.selectAll("path"),r),bae(e.selectAll("text"),r,t)}function bae(e,r,t){e.each(function(a){var n=Mc.select(this),i;if(a.selected){i=QP.ensureUniformFontSize(t,tR(n,a,r,t));var l=r.selected.textfont&&r.selected.textfont.color;l&&(i.color=l),Ac.font(n,i)}else Ac.selectedTextStyle(n,r)})}function tR(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=lR(r,t);i=nR(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=iR(t,r.i,n));return i}function aR(e,r,t){return v3(hae,e.textfont,r,t)}function nR(e,r,t,a){var n=aR(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:vae.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),v3(dae,e.insidetextfont,r,n)}function iR(e,r,t){var a=aR(e,r,t);return v3(pae,e.outsidetextfont,r,a)}function v3(e,r,t,a){r=r||{};var n=xa.getValue(r.family,t),i=xa.getValue(r.size,t),l=xa.getValue(r.color,t),o=xa.getValue(r.weight,t),s=xa.getValue(r.style,t),u=xa.getValue(r.variant,t),f=xa.getValue(r.textcase,t),v=xa.getValue(r.lineposition,t),h=xa.getValue(r.shadow,t);return{family:xa.coerceString(e.family,n,a.family),size:xa.coerceNumber(e.size,i,a.size),color:xa.coerceColor(e.color,l,a.color),weight:xa.coerceString(e.weight,o,a.weight),style:xa.coerceString(e.style,s,a.style),variant:xa.coerceString(e.variant,u,a.variant),textcase:xa.coerceString(e.variant,f,a.textcase),lineposition:xa.coerceString(e.variant,v,a.lineposition),shadow:xa.coerceString(e.variant,h,a.shadow)}}function lR(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}oR.exports={style:mae,styleTextPoints:rR,styleOnSelect:yae,getInsideTextFont:nR,getOutsideTextFont:iR,getBarColor:lR,resizeText:jP}});var mR=Z((ave,pR)=>{"use strict";var Kd=Ir(),Qd=Hr(),oa=Ie(),xae=Ta(),_ae=Er(),Fl=at(),wae=br(),$d=dt().tickText,sR=Tc(),Tae=sR.recordMinTextSize,Mae=sR.clearMinTextSize,h3=Jd(),wu=Xd(),Aae=Wd(),uR=_c(),kae=uR.text,Sae=uR.textposition,Cae=xi().appendArrayPointValue,Ha=Aae.TEXTPAD;function Lae(e){return e.id}function qae(e){if(e.ids)return Lae}function d3(e){return(e>0)-(e<0)}function Pi(e,r){return e0}function Eae(e,r,t,a,n,i){var l=r.xaxis,o=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},Mae("bar",s));var f=oa.makeTraceGroups(a,t,"trace bars").each(function(v){var h=Kd.select(this),d=v[0].trace,m=v[0].t,g=d.type==="waterfall",y=d.type==="funnel",_=d.type==="histogram",w=d.type==="bar",T=w||y,b=0;g&&d.connector.visible&&d.connector.mode==="between"&&(b=d.connector.line.width/2);var A=d.orientation==="h",C=cR(n),k=oa.ensureSingle(h,"g","points"),q=qae(d),D=k.selectAll("g.point").data(oa.identity,q);D.enter().append("g").classed("point",!0),D.exit().remove(),D.each(function(z,F){var I=Kd.select(this),O=Dae(z,l,o,A),X=O[0][0],J=O[0][1],U=O[1][0],H=O[1][1],G=(A?J-X:H-U)===0;G&&T&&wu.getLineWidth(d,z)&&(G=!1),G||(G=!Qd(X)||!Qd(J)||!Qd(U)||!Qd(H)),z.isBlank=G,G&&(A?J=X:H=U),b&&!G&&(A?(X-=Pi(X,J)*b,J+=Pi(X,J)*b):(U-=Pi(U,H)*b,H+=Pi(U,H)*b));var Q,K;if(d.type==="waterfall"){if(!G){var ie=d[z.dir].marker;Q=ie.line.width,K=ie.color}}else Q=wu.getLineWidth(d,z),K=z.mc||d.marker.color;function he(ne){var Te=Kd.round(Q/2%1,2);return n.gap===0&&n.groupgap===0?Kd.round(Math.round(ne)-Te,2):ne}function me(ne,Te,Xe){return Xe&&ne===Te?ne:Math.abs(ne-Te)>=2?he(ne):ne>Te?Math.ceil(ne):Math.floor(ne)}var ke=_ae.opacity(K),ee=ke<1||Q>.01?he:me;e._context.staticPlot||(X=ee(X,J,A),J=ee(J,X,A),U=ee(U,H,!A),H=ee(H,U,!A));var Le=A?l.c2p:o.c2p,fe;z.s0>0?fe=z._sMax:z.s0<0?fe=z._sMin:fe=z.s1>0?z._sMax:z._sMin;function be(ne,Te){if(!ne)return 0;var Xe=Math.abs(A?H-U:J-X),cr=Math.abs(A?J-X:H-U),fr=ee(Math.abs(Le(fe,!0)-Le(0,!0))),le=z.hasB?Math.min(Xe/2,cr/2):Math.min(Xe/2,fr),Se;if(Te==="%"){var Fe=Math.min(50,ne);Se=Xe*(Fe/100)}else Se=ne;return ee(Math.max(Math.min(Se,le),0))}var se=w||_?be(m.cornerradiusvalue,m.cornerradiusform):0,Ae,Y,re="M"+X+","+U+"V"+H+"H"+J+"V"+U+"Z",B=0;if(se&&z.s){var ge=d3(z.s0)===0||d3(z.s)===d3(z.s0)?z.s1:z.s0;if(B=ee(z.hasB?0:Math.abs(Le(fe,!0)-Le(ge,!0))),B0?Math.sqrt(B*(2*se-B)):0,ze=Me>0?Math.max:Math.min;Ae="M"+X+","+U+"V"+(H-Ne*ye)+"H"+ze(J-(se-B)*Me,X)+"A "+se+","+se+" 0 0 "+Re+" "+J+","+(H-se*ye-Ee)+"V"+(U+se*ye+Ee)+"A "+se+","+se+" 0 0 "+Re+" "+ze(J-(se-B)*Me,X)+","+(U+Ne*ye)+"Z"}else if(z.hasB)Ae="M"+(X+se*Me)+","+U+"A "+se+","+se+" 0 0 "+Re+" "+X+","+(U+se*ye)+"V"+(H-se*ye)+"A "+se+","+se+" 0 0 "+Re+" "+(X+se*Me)+","+H+"H"+(J-se*Me)+"A "+se+","+se+" 0 0 "+Re+" "+J+","+(H-se*ye)+"V"+(U+se*ye)+"A "+se+","+se+" 0 0 "+Re+" "+(J-se*Me)+","+U+"Z";else{Y=Math.abs(H-U)+B;var Ve=Y0?Math.sqrt(B*(2*se-B)):0,De=ye>0?Math.max:Math.min;Ae="M"+(X+Ve*Me)+","+U+"V"+De(H-(se-B)*ye,U)+"A "+se+","+se+" 0 0 "+Re+" "+(X+se*Me-Ue)+","+H+"H"+(J-se*Me+Ue)+"A "+se+","+se+" 0 0 "+Re+" "+(J-Ve*Me)+","+De(H-(se-B)*ye,U)+"V"+U+"Z"}}else Ae=re}else Ae=re;var He=fR(oa.ensureSingle(I,"path"),s,n,i);if(He.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((J-X)*(H-U))||G&&e._context.staticPlot?"M0,0Z":Ae).call(Fl.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&C){var Oe=Fl.makePointStyleFns(d);Fl.singlePointStyle(z,He,d,Oe,e)}Pae(e,r,I,v,F,X,J,U,H,se,B,n,i),r.layerClipId&&Fl.hideOutsideRangePoint(z,I.select("text"),l,o,d.xcalendar,d.ycalendar)});var R=d.cliponaxis===!1;Fl.setClipUrl(h,R?null:r.layerClipId,e)});wae.getComponentMethod("errorbars","plot")(e,f,r,n)}function Pae(e,r,t,a,n,i,l,o,s,u,f,v,h){var d=r.xaxis,m=r.yaxis,g=e._fullLayout,y;function _(Y,re,B){var ge=oa.ensureSingle(Y,"text").text(re).attr({class:"bartext bartext-"+y,"text-anchor":"middle","data-notex":1}).call(Fl.font,B).call(xae.convertToTspans,e);return ge}var w=a[0].trace,T=w.orientation==="h",b=Nae(g,a,n,d,m);y=Fae(w,n);var A=v.mode==="stack"||v.mode==="relative",C=a[n],k=!A||C._outmost,q=C.hasB,D=u&&u-f>Ha;if(!b||y==="none"||(C.isBlank||i===l||o===s)&&(y==="auto"||y==="inside")){t.select("text").remove();return}var R=g.font,z=h3.getBarColor(a[n],w),F=h3.getInsideTextFont(w,n,R,z),I=h3.getOutsideTextFont(w,n,R),O=w.insidetextanchor||"end",X=t.datum();T?d.type==="log"&&X.s0<=0&&(d.range[0]0&&he>0,ee;D?q?ee=Go(H-2*u,G,ie,he,T)||Go(H,G-2*u,ie,he,T):T?ee=Go(H-(u-f),G,ie,he,T)||Go(H,G-2*(u-f),ie,he,T):ee=Go(H,G-(u-f),ie,he,T)||Go(H-2*(u-f),G,ie,he,T):ee=Go(H,G,ie,he,T),ke&&ee?y="inside":(y="outside",Q.remove(),Q=null)}else y="inside";if(!Q){me=oa.ensureUniformFontSize(e,y==="outside"?I:F),Q=_(t,b,me);var Le=Q.attr("transform");if(Q.attr("transform",""),K=Fl.bBox(Q.node()),ie=K.width,he=K.height,Q.attr("transform",Le),ie<=0||he<=0){Q.remove();return}}var fe=w.textangle,be,se;y==="outside"?(se=w.constraintext==="both"||w.constraintext==="outside",be=zae(i,l,o,s,K,{isHorizontal:T,constrained:se,angle:fe})):(se=w.constraintext==="both"||w.constraintext==="inside",be=dR(i,l,o,s,K,{isHorizontal:T,constrained:se,angle:fe,anchor:O,hasB:q,r:u,overhead:f})),be.fontSize=me.size,Tae(w.type==="histogram"?"bar":w.type,be,g),C.transform=be;var Ae=fR(Q,g,v,h);oa.setTransormAndDisplay(Ae,be)}function Go(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,l=t<=r&&a<=e,o=n?e>=t*(r/a):r>=a*(e/t);return i||l||o}function vR(e){return e==="auto"?0:e}function hR(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function dR(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",v=u==="start",h=i.leftToRight||0,d=(h+1)/2,m=1-d,g=i.hasB,y=i.r,_=i.overhead,w=n.width,T=n.height,b=Math.abs(r-e),A=Math.abs(a-t),C=b>2*Ha&&A>2*Ha?Ha:0;b-=2*C,A-=2*C;var k=vR(s);s==="auto"&&!(w<=b&&T<=A)&&(w>b||T>A)&&(!(w>A||T>b)||wHa){var z=Rae(e,r,t,a,q,y,_,l,g);D=z.scale,R=z.pad}else D=1,o&&(D=Math.min(1,b/q.x,A/q.y)),R=0;var F=n.left*m+n.right*d,I=(n.top+n.bottom)/2,O=(e+Ha)*m+(r-Ha)*d,X=(t+a)/2,J=0,U=0;if(v||f){var H=(l?q.x:q.y)/2;y&&(f||g)&&(C+=R);var G=l?Pi(e,r):Pi(t,a);l?v?(O=e+G*C,J=-G*H):(O=r-G*C,J=G*H):v?(X=t+G*C,U=-G*H):(X=a-G*C,U=G*H)}return{textX:F,textY:I,targetX:O,targetY:X,anchorX:J,anchorY:U,scale:D,rotate:k}}function Rae(e,r,t,a,n,i,l,o,s){var u=Math.max(0,Math.abs(r-e)-2*Ha),f=Math.max(0,Math.abs(a-t)-2*Ha),v=i-Ha,h=l?v-Math.sqrt(v*v-(v-l)*(v-l)):v,d=s?v*2:o?v-l:2*h,m=s?v*2:o?2*h:v-l,g,y,_,w,T;return n.y/n.x>=f/(u-d)?w=f/n.y:n.y/n.x<=(f-m)/u?w=u/n.x:!s&&o?(g=n.x*n.x+n.y*n.y/4,y=-2*n.x*(u-v)-n.y*(f/2-v),_=(u-v)*(u-v)+(f/2-v)*(f/2-v)-v*v,w=(-y+Math.sqrt(y*y-4*g*_))/(2*g)):s?(g=(n.x*n.x+n.y*n.y)/4,y=-n.x*(u/2-v)-n.y*(f/2-v),_=(u/2-v)*(u/2-v)+(f/2-v)*(f/2-v)-v*v,w=(-y+Math.sqrt(y*y-4*g*_))/(2*g)):(g=n.x*n.x/4+n.y*n.y,y=-n.x*(u/2-v)-2*n.y*(f-v),_=(u/2-v)*(u/2-v)+(f-v)*(f-v)-v*v,w=(-y+Math.sqrt(y*y-4*g*_))/(2*g)),w=Math.min(1,w),o?T=Math.max(0,v-Math.sqrt(Math.max(0,v*v-(v-(f-n.y*w)/2)*(v-(f-n.y*w)/2)))-l):T=Math.max(0,v-Math.sqrt(Math.max(0,v*v-(v-(u-n.x*w)/2)*(v-(u-n.x*w)/2)))-l),{scale:w,pad:T}}function zae(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,v=Math.abs(r-e),h=Math.abs(a-t),d;l?d=h>2*Ha?Ha:0:d=v>2*Ha?Ha:0;var m=1;o&&(m=l?Math.min(1,h/f):Math.min(1,v/u));var g=vR(s),y=hR(n,g),_=(l?y.x:y.y)/2,w=(n.left+n.right)/2,T=(n.top+n.bottom)/2,b=(e+r)/2,A=(t+a)/2,C=0,k=0,q=l?Pi(r,e):Pi(t,a);return l?(b=r-q*d,C=q*_):(A=a+q*d,k=-q*_),{textX:w,textY:T,targetX:b,targetY:A,anchorX:C,anchorY:k,scale:m,rotate:g}}function Nae(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=Iae(e,r,t,a,n):i.textinfo?o=Hae(r,t,a,n):o=wu.getValue(i.text,t),wu.coerceString(kae,o)}function Fae(e,r){var t=wu.getValue(e.textposition,r);return wu.coerceEnumerated(Sae,t)}function Iae(e,r,t,a,n){var i=r[0].trace,l=oa.castOption(i,t,"texttemplate");if(!l)return"";var o=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",v,h,d,m;f?(v="y",h=n,d="x",m=a):(v="x",h=a,d="y",m=n);function g(C){return $d(h,h.c2l(C),!0).text}function y(C){return $d(m,m.c2l(C),!0).text}var _=r[t],w={};w.label=_.p,w.labelLabel=w[v+"Label"]=g(_.p);var T=oa.castOption(i,_.i,"text");(T===0||T)&&(w.text=T),w.value=_.s,w.valueLabel=w[d+"Label"]=y(_.s);var b={};Cae(b,i,_.i),(o||b.x===void 0)&&(b.x=f?w.value:w.label),(o||b.y===void 0)&&(b.y=f?w.label:w.value),(o||b.xLabel===void 0)&&(b.xLabel=f?w.valueLabel:w.labelLabel),(o||b.yLabel===void 0)&&(b.yLabel=f?w.labelLabel:w.valueLabel),s&&(w.delta=+_.rawS||_.s,w.deltaLabel=y(w.delta),w.final=_.v,w.finalLabel=y(w.final),w.initial=w.final-w.delta,w.initialLabel=y(w.initial)),u&&(w.value=_.s,w.valueLabel=y(w.value),w.percentInitial=_.begR,w.percentInitialLabel=oa.formatPercent(_.begR),w.percentPrevious=_.difR,w.percentPreviousLabel=oa.formatPercent(_.difR),w.percentTotal=_.sumR,w.percenTotalLabel=oa.formatPercent(_.sumR));var A=oa.castOption(i,_.i,"customdata");return A&&(w.customdata=A),oa.texttemplateString(l,w,e._d3locale,b,w,i._meta||{})}function Hae(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",l=n.type==="waterfall",o=n.type==="funnel";function s(A){var C=i?a:t;return $d(C,A,!0).text}function u(A){var C=i?t:a;return $d(C,+A,!0).text}var f=n.textinfo,v=e[r],h=f.split("+"),d=[],m,g=function(A){return h.indexOf(A)!==-1};if(g("label")&&d.push(s(e[r].p)),g("text")&&(m=oa.castOption(n,v.i,"text"),(m===0||m)&&d.push(m)),l){var y=+v.rawS||v.s,_=v.v,w=_-y;g("initial")&&d.push(u(w)),g("delta")&&d.push(u(y)),g("final")&&d.push(u(_))}if(o){g("value")&&d.push(u(v.s));var T=0;g("percent initial")&&T++,g("percent previous")&&T++,g("percent total")&&T++;var b=T>1;g("percent initial")&&(m=oa.formatPercent(v.begR),b&&(m+=" of initial"),d.push(m)),g("percent previous")&&(m=oa.formatPercent(v.difR),b&&(m+=" of previous"),d.push(m)),g("percent total")&&(m=oa.formatPercent(v.sumR),b&&(m+=" of total"),d.push(m))}return d.join("
")}pR.exports={plot:Eae,toMoveInsideBar:dR}});var _R=Z((nve,xR)=>{"use strict";var kc=Si(),Oae=br(),yR=Er(),Bae=Ie().fillText,Yae=Xd().getLineWidth,p3=dt().hoverLabelText,Uae=Gt().BADNUM;function Gae(e,r,t,a,n){var i=gR(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=bR(o,s),Oae.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function gR(e,r,t,a,n){var i=e.cd,l=i[0].trace,o=i[0].t,s=a==="closest",u=l.type==="waterfall",f=e.maxHoverDistance,v=e.maxSpikeDistance,h,d,m,g,y,_,w;l.orientation==="h"?(h=t,d=r,m="y",g="x",y=X,_=F):(h=r,d=t,m="x",g="y",_=X,y=F);var T=l[m+"period"],b=s||T;function A(ee){return k(ee,-1)}function C(ee){return k(ee,1)}function k(ee,Le){var fe=ee.w;return ee[m]+Le*fe/2}function q(ee){return ee[m+"End"]-ee[m+"Start"]}var D=s?A:T?function(ee){return ee.p-q(ee)/2}:function(ee){return Math.min(A(ee),ee.p-o.bardelta/2)},R=s?C:T?function(ee){return ee.p+q(ee)/2}:function(ee){return Math.max(C(ee),ee.p+o.bardelta/2)};function z(ee,Le,fe){return n.finiteRange&&(fe=0),kc.inbox(ee-h,Le-h,fe+Math.min(1,Math.abs(Le-ee)/w)-1)}function F(ee){return z(D(ee),R(ee),f)}function I(ee){return z(A(ee),C(ee),v)}function O(ee){var Le=ee[g];if(u){var fe=Math.abs(ee.rawS)||0;d>0?Le+=fe:d<0&&(Le-=fe)}return Le}function X(ee){var Le=d,fe=ee.b,be=O(ee);return kc.inbox(fe-Le,be-Le,f+(be-Le)/(be-fe)-1)}function J(ee){var Le=d,fe=ee.b,be=O(ee);return kc.inbox(fe-Le,be-Le,v+(be-Le)/(be-fe)-1)}var U=e[m+"a"],H=e[g+"a"];w=Math.abs(U.r2c(U.range[1])-U.r2c(U.range[0]));function G(ee){return(y(ee)+_(ee))/2}var Q=kc.getDistanceFunction(a,y,_,G);if(kc.getClosest(i,Q,e),e.index!==!1&&i[e.index].p!==Uae){b||(D=function(ee){return Math.min(A(ee),ee.p-o.bargroupwidth/2)},R=function(ee){return Math.max(C(ee),ee.p+o.bargroupwidth/2)});var K=e.index,ie=i[K],he=l.base?ie.b+ie.s:ie.s;e[g+"0"]=e[g+"1"]=H.c2p(ie[g],!0),e[g+"LabelVal"]=he;var me=o.extents[o.extents.round(ie.p)];e[m+"0"]=U.c2p(s?D(ie):me[0],!0),e[m+"1"]=U.c2p(s?R(ie):me[1],!0);var ke=ie.orig_p!==void 0;return e[m+"LabelVal"]=ke?ie.orig_p:ie.p,e.labelLabel=p3(U,e[m+"LabelVal"],l[m+"hoverformat"]),e.valueLabel=p3(H,e[g+"LabelVal"],l[g+"hoverformat"]),e.baseLabel=p3(H,ie.b,l[g+"hoverformat"]),e.spikeDistance=(J(ie)+I(ie))/2,e[m+"Spike"]=U.c2p(ie.p,!0),Bae(ie,l,e),e.hovertemplate=l.hovertemplate,e}}function bR(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=Yae(e,r);if(yR.opacity(t))return t;if(yR.opacity(a)&&n)return a}xR.exports={hoverPoints:Gae,hoverOnBars:gR,getTraceColor:bR}});var TR=Z((ive,wR)=>{"use strict";wR.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var AR=Z((lve,MR)=>{"use strict";MR.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=a[0].trace,o=l.type==="funnel",s=l.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";kR.exports={attributes:_c(),layoutAttributes:u3(),supplyDefaults:wc().supplyDefaults,crossTraceDefaults:wc().crossTraceDefaults,supplyLayoutDefaults:OP(),calc:ZP(),crossTraceCalc:e2().crossTraceCalc,colorbar:a2(),arraysToCalcdata:f3(),plot:mR().plot,style:Jd().style,styleOnSelect:Jd().styleOnSelect,hoverPoints:_R().hoverPoints,eventData:TR(),selectPoints:AR(),moduleType:"trace",name:"bar",basePlotModule:bd(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var LR=Z((sve,CR)=>{"use strict";CR.exports=SR()});var m3=Z((uve,qR)=>{"use strict";var Wae=Gn(),Zae=Od().attributes,Xae=ma(),Jae=hi(),Kae=yi().hovertemplateAttrs,Qae=yi().texttemplateAttrs,Sc=Vt().extendFlat,$ae=mi().pattern,jd=Xae({editType:"plot",arrayOk:!0,colorEditType:"plot"});qR.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Jae.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:$ae,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:Sc({},Wae.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Kae({},{keys:["label","color","value","percent","text"]}),texttemplate:Qae({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:Sc({},jd,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:Sc({},jd,{}),outsidetextfont:Sc({},jd,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:Sc({},jd,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:Zae({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var RR=Z((fve,PR)=>{"use strict";var jae=Hr(),Cc=Ie(),ene=m3(),rne=Od().defaults,tne=wc().handleText,ane=Ie().coercePattern;function DR(e,r){var t=Cc.isArrayOrTypedArray(e),a=Cc.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,l=0;l0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function ER(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var l=a("marker.colors");ane(a,"marker.pattern",l),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function nne(e,r,t,a){function n(w,T){return Cc.coerce(e,r,ene,w,T)}var i=n("labels"),l=n("values"),o=DR(i,l),s=o.len;if(r._hasLabels=o.hasLabels,r._hasValues=o.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,ER(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate"),v;if(f||(v=n("textinfo",Cc.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),f||v&&v!=="none"){var h=n("textposition");tne(e,r,a,n,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",m=d||h==="outside";m&&n("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&n("insidetextorientation")}else v==="none"&&n("textposition","none");rne(r,a,n);var g=n("hole"),y=n("title.text");if(y){var _=n("title.position",g?"middle center":"top center");!g&&_==="middle center"&&(r.title.position="top center"),Cc.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}PR.exports={handleLabelsAndValues:DR,handleMarkerDefaults:ER,supplyDefaults:nne}});var y3=Z((cve,zR)=>{"use strict";zR.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var FR=Z((vve,NR)=>{"use strict";var ine=Ie(),lne=y3();NR.exports=function(r,t){function a(n,i){return ine.coerce(r,t,lne,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var b3=Z((hve,OR)=>{"use strict";var one=Hr(),g3=bn(),sne=Er(),une={};function fne(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,l=r.marker.colors||[],o=r.values,s=r._length,u=r._hasValues&&s,f,v;if(r.dlabel)for(i=new Array(s),f=0;f=0});var b=r.type==="funnelarea"?g:r.sort;return b&&t.sort(function(A,C){return C.v-A.v}),t[0]&&(t[0].vTotal=m),t}function IR(e){return function(t,a){return!t||(t=g3(t),!t.isValid())?!1:(t=sne.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function cne(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],l=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=HR(i,une));for(var o=0,s=0;s{"use strict";var vne=xi().appendArrayMultiPointValues;BR.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),vne(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var fz=Z((pve,uz)=>{"use strict";var an=Ir(),hne=Nt(),e1=Si(),XR=Er(),ji=at(),_a=Ie(),dne=_a.strScale,UR=_a.strTranslate,x3=Ta(),JR=Tc(),pne=JR.recordMinTextSize,mne=JR.clearMinTextSize,KR=Wd().TEXTPAD,wr=H0(),r1=YR(),GR=Ie().isValidTextValue;function yne(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;mne("pie",a),jR(r,e),lz(r,n);var i=_a.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=an.select(this),s=l[0],u=s.trace;kne(l),o.attr("stroke-linejoin","round"),o.each(function(){var f=an.select(this).selectAll("g.slice").data(l);f.enter().append("g").classed("slice",!0),f.exit().remove();var v=[[[],[]],[[],[]]],h=!1;f.each(function(b,A){if(b.hidden){an.select(this).selectAll("path,g").remove();return}b.pointNumber=b.i,b.curveNumber=u.index,v[b.pxmid[1]<0?0:1][b.pxmid[0]<0?0:1].push(b);var C=s.cx,k=s.cy,q=an.select(this),D=q.selectAll("path.surface").data([b]);if(D.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),q.call(QR,e,l),u.pull){var R=+wr.castOption(u.pull,b.pts)||0;R>0&&(C+=R*b.pxmid[0],k+=R*b.pxmid[1])}b.cxFinal=C,b.cyFinal=k;function z(H,G,Q,K){var ie=K*(G[0]-H[0]),he=K*(G[1]-H[1]);return"a"+K*s.r+","+K*s.r+" 0 "+b.largeArc+(Q?" 1 ":" 0 ")+ie+","+he}var F=u.hole;if(b.v===s.vTotal){var I="M"+(C+b.px0[0])+","+(k+b.px0[1])+z(b.px0,b.pxmid,!0,1)+z(b.pxmid,b.px0,!0,1)+"Z";F?D.attr("d","M"+(C+F*b.px0[0])+","+(k+F*b.px0[1])+z(b.px0,b.pxmid,!1,F)+z(b.pxmid,b.px0,!1,F)+"Z"+I):D.attr("d",I)}else{var O=z(b.px0,b.px1,!0,1);if(F){var X=1-F;D.attr("d","M"+(C+F*b.px1[0])+","+(k+F*b.px1[1])+z(b.px1,b.px0,!1,F)+"l"+X*b.px0[0]+","+X*b.px0[1]+O+"Z")}else D.attr("d","M"+C+","+k+"l"+b.px0[0]+","+b.px0[1]+O+"Z")}oz(e,b,s);var J=wr.castOption(u.textposition,b.pts),U=q.selectAll("g.slicetext").data(b.text&&J!=="none"?[0]:[]);U.enter().append("g").classed("slicetext",!0),U.exit().remove(),U.each(function(){var H=_a.ensureSingle(an.select(this),"text","",function(ee){ee.attr("data-notex",1)}),G=_a.ensureUniformFontSize(e,J==="outside"?bne(u,b,a.font):$R(u,b,a.font));H.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(ji.font,G).call(x3.convertToTspans,e);var Q=ji.bBox(H.node()),K;if(J==="outside")K=ZR(Q,b);else if(K=ez(Q,b,s),J==="auto"&&K.scale<1){var ie=_a.ensureUniformFontSize(e,u.outsidetextfont);H.call(ji.font,ie),Q=ji.bBox(H.node()),K=ZR(Q,b)}var he=K.textPosAngle,me=he===void 0?b.pxmid:t1(s.r,he);if(K.targetX=C+me[0]*K.rCenter+(K.x||0),K.targetY=k+me[1]*K.rCenter+(K.y||0),sz(K,Q),K.outside){var ke=K.targetY;b.yLabelMin=ke-Q.height/2,b.yLabelMid=ke,b.yLabelMax=ke+Q.height/2,b.labelExtraX=0,b.labelExtraY=0,h=!0}K.fontSize=G.size,pne(u.type,K,a),l[A].transform=K,_a.setTransormAndDisplay(H,K)})});var d=an.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var b=_a.ensureSingle(an.select(this),"text","",function(k){k.attr("data-notex",1)}),A=u.title.text;u._meta&&(A=_a.templateString(A,u._meta)),b.text(A).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(ji.font,u.title.font).call(x3.convertToTspans,e);var C;u.title.position==="middle center"?C=wne(s):C=nz(s,n),b.attr("transform",UR(C.x,C.y)+dne(Math.min(1,C.scale))+UR(C.tx,C.ty))}),h&&Mne(v,u),gne(f,u),h&&u.automargin){var m=ji.bBox(o.node()),g=u.domain,y=n.w*(g.x[1]-g.x[0]),_=n.h*(g.y[1]-g.y[0]),w=(.5*y-s.r)/n.w,T=(.5*_-s.r)/n.h;hne.autoMargin(e,"pie."+u.uid+".automargin",{xl:g.x[0]-w,xr:g.x[1]+w,yb:g.y[0]-T,yt:g.y[1]+T,l:Math.max(s.cx-s.r-m.left,0),r:Math.max(m.right-(s.cx+s.r),0),b:Math.max(m.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-m.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var l=an.select(this);l.attr("dy")&&l.attr("dy",l.attr("dy"))})},0)}function gne(e,r){e.each(function(t){var a=an.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,_a.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],l=t.cyFinal+t.pxmid[1],o="M"+i+","+l,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?o+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):o+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else o+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;_a.ensureSingle(a,"path","textline").call(XR.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function QR(e,r,t){var a=t[0],n=a.cx,i=a.cy,l=a.trace,o=l.type==="funnelarea";"_hasHoverLabel"in l||(l._hasHoverLabel=!1),"_hasHoverEvent"in l||(l._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[l.index];if(!(r._dragging||u.hovermode===!1)){var v=f.hoverinfo;if(Array.isArray(v)&&(v=e1.castHoverinfo({hoverinfo:[wr.castOption(v,s.pts)],_module:l._module},u,0)),v==="all"&&(v="label+text+value+percent+name"),f.hovertemplate||v!=="none"&&v!=="skip"&&v){var h=s.rInscribed||0,d=n+s.pxmid[0]*(1-h),m=i+s.pxmid[1]*(1-h),g=u.separators,y=[];if(v&&v.indexOf("label")!==-1&&y.push(s.label),s.text=wr.castOption(f.hovertext||f.text,s.pts),v&&v.indexOf("text")!==-1){var _=s.text;_a.isValidTextValue(_)&&y.push(_)}s.value=s.v,s.valueLabel=wr.formatPieValue(s.v,g),v&&v.indexOf("value")!==-1&&y.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=wr.formatPiePercent(s.percent,g),v&&v.indexOf("percent")!==-1&&y.push(s.percentLabel);var w=f.hoverlabel,T=w.font,b=[];e1.loneHover({trace:l,x0:d-h*a.r,x1:d+h*a.r,y:m,_x0:o?n+s.TL[0]:d-h*a.r,_x1:o?n+s.TR[0]:d+h*a.r,_y0:o?i+s.TL[1]:m-h*a.r,_y1:o?i+s.BL[1]:m+h*a.r,text:y.join("
"),name:f.hovertemplate||v.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:wr.castOption(w.bgcolor,s.pts)||s.color,borderColor:wr.castOption(w.bordercolor,s.pts),fontFamily:wr.castOption(T.family,s.pts),fontSize:wr.castOption(T.size,s.pts),fontColor:wr.castOption(T.color,s.pts),nameLength:wr.castOption(w.namelength,s.pts),textAlign:wr.castOption(w.align,s.pts),hovertemplate:wr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[r1(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:b}),s.bbox=b[0],l._hasHoverLabel=!0}l._hasHoverEvent=!0,r.emit("plotly_hover",{points:[r1(s,f)],event:an.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[l.index],v=an.select(this).datum();l._hasHoverEvent&&(s.originalEvent=an.event,r.emit("plotly_unhover",{points:[r1(v,f)],event:an.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(e1.loneUnhover(u._hoverlayer.node()),l._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[l.index];r._dragging||u.hovermode===!1||(r._hoverdata=[r1(s,f)],e1.click(r,an.event))})}function bne(e,r,t){var a=wr.castOption(e.outsidetextfont.color,r.pts)||wr.castOption(e.textfont.color,r.pts)||t.color,n=wr.castOption(e.outsidetextfont.family,r.pts)||wr.castOption(e.textfont.family,r.pts)||t.family,i=wr.castOption(e.outsidetextfont.size,r.pts)||wr.castOption(e.textfont.size,r.pts)||t.size,l=wr.castOption(e.outsidetextfont.weight,r.pts)||wr.castOption(e.textfont.weight,r.pts)||t.weight,o=wr.castOption(e.outsidetextfont.style,r.pts)||wr.castOption(e.textfont.style,r.pts)||t.style,s=wr.castOption(e.outsidetextfont.variant,r.pts)||wr.castOption(e.textfont.variant,r.pts)||t.variant,u=wr.castOption(e.outsidetextfont.textcase,r.pts)||wr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=wr.castOption(e.outsidetextfont.lineposition,r.pts)||wr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,v=wr.castOption(e.outsidetextfont.shadow,r.pts)||wr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:v}}function $R(e,r,t){var a=wr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=wr.castOption(e._input.textfont.color,r.pts));var n=wr.castOption(e.insidetextfont.family,r.pts)||wr.castOption(e.textfont.family,r.pts)||t.family,i=wr.castOption(e.insidetextfont.size,r.pts)||wr.castOption(e.textfont.size,r.pts)||t.size,l=wr.castOption(e.insidetextfont.weight,r.pts)||wr.castOption(e.textfont.weight,r.pts)||t.weight,o=wr.castOption(e.insidetextfont.style,r.pts)||wr.castOption(e.textfont.style,r.pts)||t.style,s=wr.castOption(e.insidetextfont.variant,r.pts)||wr.castOption(e.textfont.variant,r.pts)||t.variant,u=wr.castOption(e.insidetextfont.textcase,r.pts)||wr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=wr.castOption(e.insidetextfont.lineposition,r.pts)||wr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,v=wr.castOption(e.insidetextfont.shadow,r.pts)||wr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||XR.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:v}}function jR(e,r){for(var t,a,n=0;n=-4;w-=2)_(Math.PI*w,"tan");for(w=4;w>=-4;w-=2)_(Math.PI*(w+1),"tan")}if(v||d){for(w=4;w>=-4;w-=2)_(Math.PI*(w+1.5),"rad");for(w=4;w>=-4;w-=2)_(Math.PI*(w+.5),"rad")}}if(o||m||v){var T=Math.sqrt(e.width*e.width+e.height*e.height);if(y={scale:n*a*2/T,rCenter:1-n,rotate:0},y.textPosAngle=(r.startangle+r.stopangle)/2,y.scale>=1)return y;g.push(y)}(m||d)&&(y=VR(e,a,l,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,g.push(y)),(m||h)&&(y=WR(e,a,l,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,g.push(y));for(var b=0,A=0,C=0;C=1)break}return g[b]}function xne(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function wne(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function nz(e,r){var t=1,a=1,n,i=e.trace,l={x:e.cx,y:e.cy},o={tx:0,ty:0};o.ty+=i.title.font.size,n=iz(i),i.title.position.indexOf("top")!==-1?(l.y-=(1+n)*e.r,o.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(l.y+=(1+n)*e.r);var s=Tne(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,l.x-=(1+n)*s,o.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,l.x+=(1+n)*s,o.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=_3(e,r)/e.titleBox.height,{x:l.x,y:l.y,scale:Math.min(t,a),tx:o.tx,ty:o.ty}}function Tne(e,r){return e/(r===void 0?1:r)}function _3(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function iz(e){var r=e.pull;if(!r)return 0;var t;if(_a.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function Mne(e,r){var t,a,n,i,l,o,s,u,f,v,h,d,m;function g(T,b){return T.pxmid[1]-b.pxmid[1]}function y(T,b){return b.pxmid[1]-T.pxmid[1]}function _(T,b){b||(b={});var A=b.labelExtraY+(a?b.yLabelMax:b.yLabelMin),C=a?T.yLabelMin:T.yLabelMax,k=a?T.yLabelMax:T.yLabelMin,q=T.cyFinal+l(T.px0[1],T.px1[1]),D=A-C,R,z,F,I,O,X;if(D*s>0&&(T.labelExtraY=D),!!_a.isArrayOrTypedArray(r.pull))for(z=0;z=(wr.castOption(r.pull,F.pts)||0))&&((T.pxmid[1]-F.pxmid[1])*s>0?(I=F.cyFinal+l(F.px0[1],F.px1[1]),D=I-C-T.labelExtraY,D*s>0&&(T.labelExtraY+=D)):(k+T.labelExtraY-q)*s>0&&(R=3*o*Math.abs(z-v.indexOf(T)),O=F.cxFinal+i(F.px0[0],F.px1[0]),X=O+R-(T.cxFinal+T.pxmid[0])-T.labelExtraX,X*o>0&&(T.labelExtraX+=X)))}for(a=0;a<2;a++)for(n=a?g:y,l=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,o=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],v=f.concat(u),d=[],h=0;h1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}l=Math.min(l,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=_ne(u,r))}function t1(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function oz(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,l=n.textinfo;if(!i&&l&&l!=="none"){var o=l.split("+"),s=function(b){return o.indexOf(b)!==-1},u=s("label"),f=s("text"),v=s("value"),h=s("percent"),d=a.separators,m;if(m=u?[r.label]:[],f){var g=wr.getFirstFilled(n.text,r.pts);GR(g)&&m.push(g)}v&&m.push(wr.formatPieValue(r.v,d)),h&&m.push(wr.formatPiePercent(r.v/t.vTotal,d)),r.text=m.join("
")}function y(b){return{label:b.label,value:b.v,valueLabel:wr.formatPieValue(b.v,a.separators),percent:b.v/t.vTotal,percentLabel:wr.formatPiePercent(b.v/t.vTotal,a.separators),color:b.color,text:b.text,customdata:_a.castOption(n,b.i,"customdata")}}if(i){var _=_a.castOption(n,r.i,"texttemplate");if(!_)r.text="";else{var w=y(r),T=wr.getFirstFilled(n.text,r.pts);(GR(T)||T==="")&&(w.text=T),r.text=_a.texttemplateString(_,w,e._fullLayout._d3locale,w,n._meta||{})}}}function sz(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,l=(r.top+r.bottom)/2;e.textX=i*a-l*n,e.textY=i*n+l*a,e.noCenter=!0}uz.exports={plot:yne,formatSliceLabel:oz,transformInsideText:ez,determineInsideTextFont:$R,positionTitleOutside:nz,prerenderTitles:jR,layoutAreas:lz,attachFxHandlers:QR,computeTransform:sz}});var hz=Z((mve,vz)=>{"use strict";var cz=Ir(),Sne=O0(),Cne=Tc().resizeText;vz.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");Cne(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=cz.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){cz.select(this).call(Sne,o,i,r)})})}});var pz=Z(Tu=>{"use strict";var dz=Nt();Tu.name="pie";Tu.plot=function(e,r,t,a){dz.plotBasePlot(Tu.name,e,r,t,a)};Tu.clean=function(e,r,t,a){dz.cleanBasePlot(Tu.name,e,r,t,a)}});var yz=Z((gve,mz)=>{"use strict";mz.exports={attributes:m3(),supplyDefaults:RR().supplyDefaults,supplyLayoutDefaults:FR(),layoutAttributes:y3(),calc:b3().calc,crossTraceCalc:b3().crossTraceCalc,plot:fz().plot,style:hz(),styleOne:O0(),moduleType:"trace",name:"pie",basePlotModule:pz(),categories:["pie-like","pie","showLegend"],meta:{}}});var bz=Z((bve,gz)=>{"use strict";gz.exports=yz()});var Sa=Z((xve,_z)=>{"use strict";var xz=Object.getOwnPropertySymbols,Lne=Object.prototype.hasOwnProperty,qne=Object.prototype.propertyIsEnumerable;function Dne(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Ene(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}_z.exports=Ene()?Object.assign:function(e,r){for(var t,a=Dne(e),n,i=1;i{var n1=Sa();function wz(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}n1(wz.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function w3(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function a1(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}n1(w3.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Pr.local.differentCalendars||Pr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+a1(Math.abs(this.year()),4)+"-"+a1(this.month(),2)+"-"+a1(this.day(),2)}});function T3(){this.shortYearCutoff="+10"}n1(T3.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new w3(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+a1(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Pr.local.invalidMonth||Pr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Pr.local.invalidMonth||Pr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pr.local.invalidYear||Pr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),l=e.monthOfYear()+(t==="m"?r:0),n=e.day(),o=function(f){for(;lv-1+f.minMonth;)i++,l-=v,v=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,l)&&(l=this.newDate(i,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l)))):t==="m"&&(o(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l))));var s=[i,this.fromMonthOfYear(i,l),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,o)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Pr.local.invalidDate||Pr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Pr=Tz.exports=new wz;Pr.cdate=w3;Pr.baseCalendar=T3;Pr.calendars.gregorian=M3});var Mz=Z(()=>{var A3=Sa(),sa=Ca();A3(sa.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});sa.local=sa.regionalOptions[""];A3(sa.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});A3(sa.baseCalendar.prototype,{UNIX_EPOCH:sa.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:sa.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw sa.local.invalidFormat||sa.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,l=t.monthNamesShort||this.local.monthNamesShort,o=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(b,A){for(var C=1;T+C1},f=function(b,A,C,k){var q=""+A;if(u(b,k))for(;q.length1},w=function(F,I){var O=_(F,I),X=[2,3,O?4:2,O?4:2,10,11,20]["oyYJ@!".indexOf(F)+1],J=new RegExp("^-?\\d{1,"+X+"}"),U=r.substring(q).match(J);if(!U)throw(sa.local.missingNumberAt||sa.regionalOptions[""].missingNumberAt).replace(/\{0\}/,q);return q+=U[0].length,parseInt(U[0],10)},T=this,b=function(){if(typeof o=="function"){_("m");var F=o.call(T,r.substring(q));return q+=F.length,F}return w("m")},A=function(F,I,O,X){for(var J=_(F,X)?O:I,U=0;U-1){h=1,d=m;for(var z=this.daysInMonth(v,h);d>z;z=this.daysInMonth(v,h))h++,d-=z}return f>-1?this.fromJD(f):this.newDate(v,h,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,l=function(o){try{return i.parseDate(a,o,n)}catch(v){}o=o.toLowerCase();for(var s=(o.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(o);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(o);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var Az=Z(()=>{var Il=Ca(),Pne=Sa(),k3=Il.instance();function i1(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i1.prototype=new Il.baseCalendar;Pne(i1.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(zne);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(Nne);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(Fne);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw Il.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw Il.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,Il.local.invalidyear),n=Ol[a-Ol[0]],i=n>>9&4095,l=n>>5&15,o=n&31,s;s=k3.newDate(i,l,o),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Hl[e-Hl[0]],a=t>>13,n=a?12:11;if(r>n)throw Il.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,Il.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),l=Hne(e,i,t,n);return k3.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=k3.fromJD(e),t=Ine(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(Rne),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),l=+r[4];return this.newDate(t,i,l)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),l=this.toChineseMonth(a,n),o=Object.getPrototypeOf(i1.prototype).add.call(this,e,r,t);if(t==="y"){var s=o.year(),u=o.month(),f=this.isIntercalaryMonth(s,l),v=i&&f?this.toMonthIndex(s,l,!0):this.toMonthIndex(s,l,!1);v!==u&&o.month(v)}return o}});var Rne=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,zne=/^\d?\d[iI]?/m,Nne=/^闰?十?[一二三四五六七八九]?月/m,Fne=/^闰?十?[一二三四五六七八九]?/m;Il.calendars.chinese=i1;var Hl=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Ol=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function Ine(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var o=typeof r=="number"&&r>=1&&r<=12;if(!o)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=Ol[n.year-Ol[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Ol[i.year-Ol[0]];var v=u>>9&4095,h=u>>5&15,d=u&31,m,g=new Date(v,h-1,d),y=new Date(n.year,n.month-1,n.day);m=Math.round((y-g)/(24*3600*1e3));var _=Hl[i.year-Hl[0]],w;for(w=0;w<13;w++){var T=_&1<<12-w?30:29;if(m>13;return!b||w=1888&&e<=2111;if(!o)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),l={year:e,month:r,day:t,isIntercalary:f}}var v;v=l.day-1;var h=Hl[l.year-Hl[0]],d=h>>13,m;d&&(l.month>d||l.isIntercalary)?m=l.month:m=l.month-1;for(var g=0;g>9&4095,T=_>>5&15,b=_&31,A=new Date(w,T-1,b+v);return i.year=A.getFullYear(),i.month=1+A.getMonth(),i.day=A.getDate(),i}});var kz=Z(()=>{var Vo=Ca(),One=Sa();function S3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}S3.prototype=new Vo.baseCalendar;One(S3.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Vo.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Vo.local.invalidYear||Vo.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Vo.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Vo.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Vo.calendars.coptic=S3});var Sz=Z(()=>{var el=Ca(),Bne=Sa();function C3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C3.prototype=new el.baseCalendar;Bne(C3.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,el.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,el.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,el.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,el.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,el.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,el.local.invalidDate);return{century:Yne[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,el.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var Yne={20:"Fruitbat",21:"Anchovy"};el.calendars.discworld=C3});var Cz=Z(()=>{var Wo=Ca(),Une=Sa();function L3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}L3.prototype=new Wo.baseCalendar;Une(L3.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Wo.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Wo.local.invalidYear||Wo.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Wo.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Wo.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Wo.calendars.ethiopian=L3});var Lz=Z(()=>{var Bl=Ca(),Gne=Sa();function q3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}q3.prototype=new Bl.baseCalendar;Gne(q3.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Bl.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,l1(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Bl.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Bl.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Bl.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&l1(this.daysInYear(e),10)===5?30:r===9&&l1(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Bl.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,Bl.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var l=7;l<=this.monthsInYear(e);l++)i+=this.daysInMonth(e,l);for(var l=1;l=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function l1(e,r){return e-r*Math.floor(e/r)}Bl.calendars.hebrew=q3});var qz=Z(()=>{var Lc=Ca(),Vne=Sa();function D3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}D3.prototype=new Lc.baseCalendar;Vne(D3.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Lc.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Lc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Lc.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});Lc.calendars.islamic=D3});var Dz=Z(()=>{var qc=Ca(),Wne=Sa();function E3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}E3.prototype=new qc.baseCalendar;Wne(E3.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,qc.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,qc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,qc.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),l=i-Math.floor(i<14?1:13),o=a-Math.floor(l>2?4716:4715),s=t-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,l,s)}});qc.calendars.julian=E3});var Pz=Z(()=>{var Fn=Ca(),Zne=Sa();function R3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}R3.prototype=new Fn.baseCalendar;Zne(R3.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fn.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Fn.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fn.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Fn.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fn.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Fn.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Fn.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Fn.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Fn.local.invalidDate),n=a.toJD(),i=this._toHaab(n),l=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=P3(e+8+17*20,365);return[Math.floor(r/20)+1,P3(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[Ez(e+20,20),Ez(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Fn.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function P3(e,r){return e-r*Math.floor(e/r)}function Ez(e,r){return P3(e-1,r)+1}Fn.calendars.mayan=R3});var zz=Z(()=>{var Zo=Ca(),Xne=Sa();function z3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}z3.prototype=new Zo.baseCalendar;var Rz=Zo.instance("gregorian");Xne(z3.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Zo.local.invalidYear||Zo.regionalOptions[""].invalidYear);return Rz.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Zo.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Zo.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),l=1;l=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});Zo.calendars.nanakshahi=z3});var Nz=Z(()=>{var Xo=Ca(),Jne=Sa();function N3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}N3.prototype=new Xo.baseCalendar;Jne(N3.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Xo.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Xo.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,Xo.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=Xo.instance(),i=0,l=r,o=e;this._createMissingCalendarData(e);var s=e-(l>9||l===9&&t>=this.NEPALI_CALENDAR_DATA[o][0]?56:57);for(r!==9&&(i=t,l--);l!==9;)l<=0&&(l=12,o--),i+=this.NEPALI_CALENDAR_DATA[o][l],l--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[o][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[o][9]-this.NEPALI_CALENDAR_DATA[o][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=Xo.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var l=9,o=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][l]-o+1;n>s;)l++,l>12&&(l=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][l];var u=this.NEPALI_CALENDAR_DATA[i][l]-(s-n);return this.newDate(i,l,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Mu=Ca(),Kne=Sa();function s1(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function o1(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),l=n-Math.floor(n);return i>l}s1.prototype=new Mu.baseCalendar;Kne(s1.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Mu.local.invalidYear);return o1(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Mu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Mu.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,o1(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});Mu.calendars.persian=s1;Mu.calendars.jalali=s1});var Iz=Z(()=>{var Jo=Ca(),Qne=Sa(),u1=Jo.instance();function F3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}F3.prototype=new Jo.baseCalendar;Qne(F3.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Jo.local.invalidYear),t=this._t2gYear(r.year());return u1.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Jo.local.invalidYear),n=this._t2gYear(a.year());return u1.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Jo.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Jo.local.invalidDate),n=this._t2gYear(a.year());return u1.toJD(n,a.month(),a.day())},fromJD:function(e){var r=u1.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Jo.calendars.taiwan=F3});var Hz=Z(()=>{var Ko=Ca(),$ne=Sa(),f1=Ko.instance();function I3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}I3.prototype=new Ko.baseCalendar;$ne(I3.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Ko.local.invalidYear),t=this._t2gYear(r.year());return f1.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Ko.local.invalidYear),n=this._t2gYear(a.year());return f1.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ko.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Ko.local.invalidDate),n=this._t2gYear(a.year());return f1.toJD(n,a.month(),a.day())},fromJD:function(e){var r=f1.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Ko.calendars.thai=I3});var Oz=Z(()=>{var Qo=Ca(),jne=Sa();function H3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}H3.prototype=new Qo.baseCalendar;jne(H3.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Qo.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,Qo.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Yl[n]-Yl[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Qo.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Yl[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),l=i+1,o=n-12*i,s=r-Yl[t-1]+1;return this.newDate(l,o,s)},isValid:function(e,r,t){var a=Qo.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=Qo.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});Qo.calendars.ummalqura=H3;var Yl=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var Yz=Z(($ve,Bz)=>{"use strict";Bz.exports=Ca();Mz();Az();kz();Sz();Cz();Lz();qz();Dz();Pz();zz();Nz();Fz();Iz();Hz();Oz()});var Jz=Z((jve,Xz)=>{"use strict";var Gz=Yz(),Dc=Ie(),Vz=Gt(),eie=Vz.EPOCHJD,rie=Vz.ONEDAY,Y3={valType:"enumerated",values:Dc.sortObjectKeys(Gz.calendars),editType:"calc",dflt:"gregorian"},Wz=function(e,r,t,a){var n={};return n[t]=Y3,Dc.coerce(e,r,n,t,a)},tie=function(e,r,t,a){for(var n=0;n{"use strict";Kz.exports=Jz()});var sie=Z((r0e,jz)=>{var $z=wP();$z.register([LR(),bz(),Qz()]);jz.exports=$z});return sie();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-cartesian.js b/dist/plotly-cartesian.js index 2e3f9b2526f..07656a43cb6 100644 --- a/dist/plotly-cartesian.js +++ b/dist/plotly-cartesian.js @@ -1,5 +1,5 @@ /** -* plotly.js (cartesian) v3.1.0-rc.0 +* plotly.js (cartesian) 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), @@ -64271,7 +64382,7 @@ var Plotly = (() => { return _supportsPixelated; } _supportsPixelated = false; - var unsupportedBrowser = Lib.isSafari() || Lib.isIOS(); + var unsupportedBrowser = Lib.isSafari() || Lib.isMacWKWebView() || Lib.isIOS(); if (window.navigator.userAgent && !unsupportedBrowser) { var declarations = Array.from(constants.CSS_DECLARATIONS).reverse(); var supports = window.CSS && window.CSS.supports || window.supportsCSS; diff --git a/dist/plotly-cartesian.min.js b/dist/plotly-cartesian.min.js index d162cb48eac..4ce4333b2d8 100644 --- a/dist/plotly-cartesian.min.js +++ b/dist/plotly-cartesian.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (cartesian - minified) v3.1.0-rc.0 +* plotly.js (cartesian - minified) v3.1.0-rc.1 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,38 +12,38 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var OA=Object.defineProperty;var Uie=Object.getOwnPropertyDescriptor;var Gie=Object.getOwnPropertyNames;var Yie=Object.prototype.hasOwnProperty;var BA=(e,r)=>()=>(e&&(r=e(e=0)),r);var N=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Vie=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Gie(r))!Yie.call(e,n)&&n!==t&&OA(e,n,{get:()=>r[n],enumerable:!(a=Uie(r,n))||a.enumerable});return e};var jie=e=>Vie(OA({},"__esModule",{value:!0}),e);var tp=N(HA=>{"use strict";HA.version="3.1.0-rc.0"});var GA=N((UA,ap)=>{(function(r,t,a){t[r]=t[r]||a(),typeof ap!="undefined"&&ap.exports&&(ap.exports=t[r])})("Promise",typeof window!="undefined"?window:UA,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(w){return setImmediate(w)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(w,_,b,T){return Object.defineProperty(w,_,{value:b,writable:!0,configurable:T!==!1})}}catch(x){r=function(_,b,T){return _[b]=T,_}}a=function(){var w,_,b;function T(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,S){b=new T(M,S),_?_.next=b:w=b,_=b,b=void 0},drain:function(){var M=w;for(w=_=t=void 0;M;)M.fn.call(M.self),M=M.next}}}();function o(x,w){a.add(x,w),t||(t=i(a.drain))}function l(x){var w,_=typeof x;return x!=null&&(_=="object"||_=="function")&&(w=x.then),typeof w=="function"?w:!1}function s(){for(var x=0;x0&&o(s,_))}catch(b){c.call(new d(_),b)}}}function c(x){var w=this;w.triggered||(w.triggered=!0,w.def&&(w=w.def),w.msg=x,w.state=2,w.chain.length>0&&o(s,w))}function v(x,w,_,b){for(var T=0;T{(function(){var e={version:"3.8.2"},r=[].slice,t=function(h){return r.call(h)},a=self.document;function n(h){return h&&(h.ownerDocument||h.document||h).documentElement}function i(h){return h&&(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(h){t=function(g){for(var A=g.length,q=new Array(A);A--;)q[A]=g[A];return q}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(h){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,A){l.call(this,g,A+"")},o.setAttributeNS=function(g,A,q){s.call(this,g,A,q+"")},u.setProperty=function(g,A,q){f.call(this,g,A+"",q)}}e.ascending=c;function c(h,g){return hg?1:h>=g?0:NaN}e.descending=function(h,g){return gh?1:g>=h?0:NaN},e.min=function(h,g){var A=-1,q=h.length,L,C;if(arguments.length===1){for(;++A=C){L=C;break}for(;++AC&&(L=C)}else{for(;++A=C){L=C;break}for(;++AC&&(L=C)}return L},e.max=function(h,g){var A=-1,q=h.length,L,C;if(arguments.length===1){for(;++A=C){L=C;break}for(;++AL&&(L=C)}else{for(;++A=C){L=C;break}for(;++AL&&(L=C)}return L},e.extent=function(h,g){var A=-1,q=h.length,L,C,I;if(arguments.length===1){for(;++A=C){L=I=C;break}for(;++AC&&(L=C),I=C){L=I=C;break}for(;++AC&&(L=C),I1)return I/(H-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(g,A,q,L){for(arguments.length<3&&(q=0),arguments.length<4&&(L=g.length);q>>1;h(g[C],A)<0?q=C+1:L=C}return q},right:function(g,A,q,L){for(arguments.length<3&&(q=0),arguments.length<4&&(L=g.length);q>>1;h(g[C],A)>0?L=C:q=C+1}return q}}}var m=p(c);e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(h){return p(h.length===1?function(g,A){return c(h(g),A)}:h)},e.shuffle=function(h,g,A){(q=arguments.length)<3&&(A=h.length,q<2&&(g=0));for(var q=A-g,L,C;q;)C=Math.random()*q--|0,L=h[q+g],h[q+g]=h[C+g],h[C+g]=L;return h},e.permute=function(h,g){for(var A=g.length,q=new Array(A);A--;)q[A]=h[g[A]];return q},e.pairs=function(h){for(var g=0,A=h.length-1,q,L=h[0],C=new Array(A<0?0:A);g=0;)for(I=h[g],A=I.length;--A>=0;)C[--L]=I[A];return C};var x=Math.abs;e.range=function(h,g,A){if(arguments.length<3&&(A=1,arguments.length<2&&(g=h,h=0)),(g-h)/A===1/0)throw new Error("infinite range");var q=[],L=w(x(A)),C=-1,I;if(h*=L,g*=L,A*=L,A<0)for(;(I=h+A*++C)>g;)q.push(I/L);else for(;(I=h+A*++C)=g.length)return L?L.call(h,H):q?H.sort(q):H;for(var $=-1,ee=H.length,te=g[X++],we,Me,ae,he=new b,ge;++$=g.length)return F;var X=[],$=A[H++];return F.forEach(function(ee,te){X.push({key:ee,values:I(te,H)})}),$?X.sort(function(ee,te){return $(ee.key,te.key)}):X}return h.map=function(F,H){return C(H,F,0)},h.entries=function(F){return I(C(e.map,F,0),0)},h.key=function(F){return g.push(F),h},h.sortKeys=function(F){return A[g.length-1]=F,h},h.sortValues=function(F){return q=F,h},h.rollup=function(F){return L=F,h},h},e.set=function(h){var g=new O;if(h)for(var A=0,q=h.length;A=0&&(q=h.slice(A+1),h=h.slice(0,A)),h)return arguments.length<2?this[h].on(q):this[h].on(q,g);if(arguments.length===2){if(g==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(q,null);return this}};function Z(h){var g=[],A=new b;function q(){for(var L=g,C=-1,I=L.length,F;++C=0&&(A=h.slice(0,g))!=="xmlns"&&(h=h.slice(g+1)),pe.hasOwnProperty(A)?{space:pe[A],local:h}:h}},ce.attr=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node();return h=e.ns.qualify(h),h.local?A.getAttributeNS(h.space,h.local):A.getAttribute(h)}for(g in h)this.each(be(g,h[g]));return this}return this.each(be(h,g))};function be(h,g){h=e.ns.qualify(h);function A(){this.removeAttribute(h)}function q(){this.removeAttributeNS(h.space,h.local)}function L(){this.setAttribute(h,g)}function C(){this.setAttributeNS(h.space,h.local,g)}function I(){var H=g.apply(this,arguments);H==null?this.removeAttribute(h):this.setAttribute(h,H)}function F(){var H=g.apply(this,arguments);H==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,H)}return g==null?h.local?q:A:typeof g=="function"?h.local?F:I:h.local?C:L}function me(h){return h.trim().replace(/\s+/g," ")}ce.classed=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node(),q=(h=ze(h)).length,L=-1;if(g=A.classList){for(;++L=0;)(C=A[q])&&(L&&L!==C.nextSibling&&L.parentNode.insertBefore(C,L),L=C);return this},ce.sort=function(h){h=Te.apply(this,arguments);for(var g=-1,A=this.length;++g=g&&(g=L+1);!(H=I[g])&&++g0&&(h=h.slice(0,L));var I=Ye.get(h);I&&(h=I,C=Ve);function F(){var $=this[q];$&&(this.removeEventListener(h,$,$.$),delete this[q])}function H(){var $=C(g,t(arguments));F.call(this),this.addEventListener(h,this[q]=$,$.$=A),$._=g}function X(){var $=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),ee;for(var te in this)if(ee=te.match($)){var we=this[te];this.removeEventListener(ee[1],we,we.$),delete this[te]}}return L?g?H:F:g?Y:X}var Ye=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Ye.forEach(function(h){"on"+h in a&&Ye.remove(h)});function Xe(h,g){return function(A){var q=e.event;e.event=A,g[0]=this.__data__;try{h.apply(this,g)}finally{e.event=q}}}function Ve(h,g){var A=Xe(h,g);return function(q){var L=this,C=q.relatedTarget;(!C||C!==L&&!(C.compareDocumentPosition(L)&8))&&A.call(L,q)}}var Ge,$e=0;function cr(h){var g=".dragsuppress-"+ ++$e,A="click"+g,q=e.select(i(h)).on("touchmove"+g,re).on("dragstart"+g,re).on("selectstart"+g,re);if(Ge==null&&(Ge="onselectstart"in h?!1:G(h.style,"userSelect")),Ge){var L=n(h).style,C=L[Ge];L[Ge]="none"}return function(I){if(q.on(g,null),Ge&&(L[Ge]=C),I){var F=function(){q.on(A,null)};q.on(A,function(){re(),F()},!0),setTimeout(F,0)}}}e.mouse=function(h){return Ie(h,fe())};var lr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ie(h,g){g.changedTouches&&(g=g.changedTouches[0]);var A=h.ownerSVGElement||h;if(A.createSVGPoint){var q=A.createSVGPoint();if(lr<0){var L=i(h);if(L.scrollX||L.scrollY){A=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var C=A[0][0].getScreenCTM();lr=!(C.f||C.e),A.remove()}}return lr?(q.x=g.pageX,q.y=g.pageY):(q.x=g.clientX,q.y=g.clientY),q=q.matrixTransform(h.getScreenCTM().inverse()),[q.x,q.y]}var I=h.getBoundingClientRect();return[g.clientX-I.left-h.clientLeft,g.clientY-I.top-h.clientTop]}e.touch=function(h,g,A){if(arguments.length<3&&(A=g,g=fe().changedTouches),g){for(var q=0,L=g.length,C;q0?1:h<0?-1:0}function zr(h,g,A){return(g[0]-h[0])*(A[1]-h[1])-(g[1]-h[1])*(A[0]-h[0])}function Et(h){return h>1?0:h<-1?qe:Math.acos(h)}function Dt(h){return h>1?ur:h<-1?-ur:Math.asin(h)}function ma(h){return((h=Math.exp(h))-1/h)/2}function St(h){return((h=Math.exp(h))+1/h)/2}function Wa(h){return((h=Math.exp(2*h))-1)/(h+1)}function ga(h){return(h=Math.sin(h/2))*h}var Wt=Math.SQRT2,Na=2,br=4;e.interpolateZoom=function(h,g){var A=h[0],q=h[1],L=h[2],C=g[0],I=g[1],F=g[2],H=C-A,X=I-q,$=H*H+X*X,ee,te;if($0&&(rr=rr.transition().duration(I)),rr.call(ke.event)}function dr(){he&&he.domain(ae.range().map(function(rr){return(rr-h.x)/h.k}).map(ae.invert)),Ae&&Ae.domain(ge.range().map(function(rr){return(rr-h.y)/h.k}).map(ge.invert))}function pr(rr){F++||rr({type:"zoomstart"})}function Er(rr){dr(),rr({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function mr(rr){--F||(rr({type:"zoomend"}),A=null)}function kr(){var rr=this,Dr=Me.of(rr,arguments),Pr=0,at=e.select(i(rr)).on(X,Oa).on($,an),Bt=_e(e.mouse(rr)),ua=cr(rr);Kd.call(rr),pr(Dr);function Oa(){Pr=1,fr(e.mouse(rr),Bt),Er(Dr)}function an(){at.on(X,null).on($,null),ua(Pr),mr(Dr)}}function tt(){var rr=this,Dr=Me.of(rr,arguments),Pr={},at=0,Bt,ua=".zoom-"+e.event.changedTouches[0].identifier,Oa="touchmove"+ua,an="touchend"+ua,yn=[],nn=e.select(rr),An=cr(rr);Mn(),pr(Dr),nn.on(H,null).on(te,Mn);function Za(){var Wi=e.touches(rr);return Bt=h.k,Wi.forEach(function(Ba){Ba.identifier in Pr&&(Pr[Ba.identifier]=_e(Ba))}),Wi}function Mn(){var Wi=e.event.target;e.select(Wi).on(Oa,Us).on(an,Hie),yn.push(Wi);for(var Ba=e.event.changedTouches,ii=0,wo=Ba.length;ii1){var Gs=oi[0],Nl=oi[1],rp=Gs[0]-Nl[0],IA=Gs[1]-Nl[1];at=rp*rp+IA*IA}}function Us(){var Wi=e.touches(rr),Ba,ii,wo,oi;Kd.call(rr);for(var bf=0,Gs=Wi.length;bf1?1:g,A=A<0?0:A>1?1:A,L=A<=.5?A*(1+g):A+g-A*g,q=2*A-L;function C(F){return F>360?F-=360:F<0&&(F+=360),F<60?q+(L-q)*F/60:F<180?L:F<240?q+(L-q)*(240-F)/60:q}function I(F){return Math.round(C(F)*255)}return new Ut(I(h+120),I(h),I(h-120))}e.hcl=Zt;function Zt(h,g,A){return this instanceof Zt?(this.h=+h,this.c=+g,void(this.l=+A)):arguments.length<2?h instanceof Zt?new Zt(h.h,h.c,h.l):h instanceof Xt?Pt(h.l,h.a,h.b):Pt((h=sr((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new Zt(h,g,A)}var tn=Zt.prototype=new Rt;tn.brighter=function(h){return new Zt(this.h,this.c,Math.min(100,this.l+ft*(arguments.length?h:1)))},tn.darker=function(h){return new Zt(this.h,this.c,Math.max(0,this.l-ft*(arguments.length?h:1)))},tn.rgb=function(){return wn(this.h,this.c,this.l).rgb()};function wn(h,g,A){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new Xt(A,Math.cos(h*=Ar)*g,Math.sin(h)*g)}e.lab=Xt;function Xt(h,g,A){return this instanceof Xt?(this.l=+h,this.a=+g,void(this.b=+A)):arguments.length<2?h instanceof Xt?new Xt(h.l,h.a,h.b):h instanceof Zt?wn(h.h,h.c,h.l):sr((h=Ut(h)).r,h.g,h.b):new Xt(h,g,A)}var ft=18,xa=.95047,Ko=1,Qo=1.08883,vt=Xt.prototype=new Rt;vt.brighter=function(h){return new Xt(Math.min(100,this.l+ft*(arguments.length?h:1)),this.a,this.b)},vt.darker=function(h){return new Xt(Math.max(0,this.l-ft*(arguments.length?h:1)),this.a,this.b)},vt.rgb=function(){return Tn(this.l,this.a,this.b)};function Tn(h,g,A){var q=(h+16)/116,L=q+g/500,C=q-A/200;return L=zs(L)*xa,q=zs(q)*Ko,C=zs(C)*Qo,new Ut(Gi(3.2404542*L-1.5371385*q-.4985314*C),Gi(-.969266*L+1.8760108*q+.041556*C),Gi(.0556434*L-.2040259*q+1.0572252*C))}function Pt(h,g,A){return h>0?new Zt(Math.atan2(A,g)*jr,Math.sqrt(g*g+A*A),h):new Zt(NaN,NaN,h)}function zs(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function pn(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function Gi(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=Ut;function Ut(h,g,A){return this instanceof Ut?(this.r=~~h,this.g=~~g,void(this.b=~~A)):arguments.length<2?h instanceof Ut?new Ut(h.r,h.g,h.b):$r(""+h,Ut,ba):new Ut(h,g,A)}function Yi(h){return new Ut(h>>16,h>>8&255,h&255)}function Rl(h){return Yi(h)+""}var Pl=Ut.prototype=new Rt;Pl.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var g=this.r,A=this.g,q=this.b,L=30;return!g&&!A&&!q?new Ut(L,L,L):(g&&g>4,q=q>>4|q,L=H&240,L=L>>4|L,C=H&15,C=C<<4|C):h.length===7&&(q=(H&16711680)>>16,L=(H&65280)>>8,C=H&255)),g(q,L,C))}function ht(h,g,A){var q=Math.min(h/=255,g/=255,A/=255),L=Math.max(h,g,A),C=L-q,I,F,H=(L+q)/2;return C?(F=H<.5?C/(L+q):C/(2-L-q),h==L?I=(g-A)/C+(g0&&H<1?0:I),new Qr(I,F,H)}function sr(h,g,A){h=za(h),g=za(g),A=za(A);var q=pn((.4124564*h+.3575761*g+.1804375*A)/xa),L=pn((.2126729*h+.7151522*g+.072175*A)/Ko),C=pn((.0193339*h+.119192*g+.9503041*A)/Qo);return Xt(116*L-16,500*(q-L),200*(L-C))}function za(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function Tt(h){var g=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(g*2.55):g}var Ia=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});Ia.forEach(function(h,g){Ia.set(h,Yi(g))});function Br(h){return typeof h=="function"?h:function(){return h}}e.functor=Br,e.xhr=Vi(B);function Vi(h){return function(g,A,q){return arguments.length===2&&typeof A=="function"&&(q=A,A=null),Is(g,A,h,q)}}function Is(h,g,A,q){var L={},C=e.dispatch("beforesend","progress","load","error"),I={},F=new XMLHttpRequest,H=null;self.XDomainRequest&&!("withCredentials"in F)&&/^(http(s)?:)?\/\//.test(h)&&(F=new XDomainRequest),"onload"in F?F.onload=F.onerror=X:F.onreadystatechange=function(){F.readyState>3&&X()};function X(){var $=F.status,ee;if(!$&&Gae(F)||$>=200&&$<300||$===304){try{ee=A.call(L,F)}catch(te){C.error.call(L,te);return}C.load.call(L,ee)}else C.error.call(L,F)}return F.onprogress=function($){var ee=e.event;e.event=$;try{C.progress.call(L,F)}finally{e.event=ee}},L.header=function($,ee){return $=($+"").toLowerCase(),arguments.length<2?I[$]:(ee==null?delete I[$]:I[$]=ee+"",L)},L.mimeType=function($){return arguments.length?(g=$==null?null:$+"",L):g},L.responseType=function($){return arguments.length?(H=$,L):H},L.response=function($){return A=$,L},["get","post"].forEach(function($){L[$]=function(){return L.send.apply(L,[$].concat(t(arguments)))}}),L.send=function($,ee,te){if(arguments.length===2&&typeof ee=="function"&&(te=ee,ee=null),F.open($,h,!0),g!=null&&!("accept"in I)&&(I.accept=g+",*/*"),F.setRequestHeader)for(var we in I)F.setRequestHeader(we,I[we]);return g!=null&&F.overrideMimeType&&F.overrideMimeType(g),H!=null&&(F.responseType=H),te!=null&&L.on("error",te).on("load",function(Me){te(null,Me)}),C.beforesend.call(L,F),F.send(ee==null?null:ee),L},L.abort=function(){return F.abort(),L},e.rebind(L,C,"on"),q==null?L:L.get(Uae(q))}function Uae(h){return h.length===1?function(g,A){h(g==null?A:null)}:h}function Gae(h){var g=h.responseType;return g&&g!=="text"?h.response:h.responseText}e.dsv=function(h,g){var A=new RegExp('["'+h+` -]`),q=h.charCodeAt(0);function L(X,$,ee){arguments.length<3&&(ee=$,$=null);var te=Is(X,g,$==null?C:I($),ee);return te.row=function(we){return arguments.length?te.response(($=we)==null?C:I(we)):$},te}function C(X){return L.parse(X.responseText)}function I(X){return function($){return L.parse($.responseText,X)}}L.parse=function(X,$){var ee;return L.parseRows(X,function(te,we){if(ee)return ee(te,we-1);var Me=function(ae){for(var he={},ge=te.length,Ae=0;Ae=Me)return te;if(Ae)return Ae=!1,ee;var je=ae;if(X.charCodeAt(je)===34){for(var ir=je;ir++{var BA=Object.defineProperty;var Gie=Object.getOwnPropertyDescriptor;var Yie=Object.getOwnPropertyNames;var Vie=Object.prototype.hasOwnProperty;var HA=(e,r)=>()=>(e&&(r=e(e=0)),r);var N=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Wie=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Yie(r))!Vie.call(e,n)&&n!==t&&BA(e,n,{get:()=>r[n],enumerable:!(a=Gie(r,n))||a.enumerable});return e};var jie=e=>Wie(BA({},"__esModule",{value:!0}),e);var ip=N(UA=>{"use strict";UA.version="3.1.0-rc.1"});var YA=N((GA,op)=>{(function(r,t,a){t[r]=t[r]||a(),typeof op!="undefined"&&op.exports&&(op.exports=t[r])})("Promise",typeof window!="undefined"?window:GA,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(w){return setImmediate(w)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(w,_,b,T){return Object.defineProperty(w,_,{value:b,writable:!0,configurable:T!==!1})}}catch(x){r=function(_,b,T){return _[b]=T,_}}a=function(){var w,_,b;function T(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,S){b=new T(M,S),_?_.next=b:w=b,_=b,b=void 0},drain:function(){var M=w;for(w=_=t=void 0;M;)M.fn.call(M.self),M=M.next}}}();function o(x,w){a.add(x,w),t||(t=i(a.drain))}function l(x){var w,_=typeof x;return x!=null&&(_=="object"||_=="function")&&(w=x.then),typeof w=="function"?w:!1}function s(){for(var x=0;x0&&o(s,_))}catch(b){c.call(new d(_),b)}}}function c(x){var w=this;w.triggered||(w.triggered=!0,w.def&&(w=w.def),w.msg=x,w.state=2,w.chain.length>0&&o(s,w))}function v(x,w,_,b){for(var T=0;T{(function(){var e={version:"3.8.2"},r=[].slice,t=function(h){return r.call(h)},a=self.document;function n(h){return h&&(h.ownerDocument||h.document||h).documentElement}function i(h){return h&&(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(h){t=function(g){for(var A=g.length,q=new Array(A);A--;)q[A]=g[A];return q}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(h){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,A){l.call(this,g,A+"")},o.setAttributeNS=function(g,A,q){s.call(this,g,A,q+"")},u.setProperty=function(g,A,q){f.call(this,g,A+"",q)}}e.ascending=c;function c(h,g){return hg?1:h>=g?0:NaN}e.descending=function(h,g){return gh?1:g>=h?0:NaN},e.min=function(h,g){var A=-1,q=h.length,L,C;if(arguments.length===1){for(;++A=C){L=C;break}for(;++AC&&(L=C)}else{for(;++A=C){L=C;break}for(;++AC&&(L=C)}return L},e.max=function(h,g){var A=-1,q=h.length,L,C;if(arguments.length===1){for(;++A=C){L=C;break}for(;++AL&&(L=C)}else{for(;++A=C){L=C;break}for(;++AL&&(L=C)}return L},e.extent=function(h,g){var A=-1,q=h.length,L,C,I;if(arguments.length===1){for(;++A=C){L=I=C;break}for(;++AC&&(L=C),I=C){L=I=C;break}for(;++AC&&(L=C),I1)return I/(H-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(g,A,q,L){for(arguments.length<3&&(q=0),arguments.length<4&&(L=g.length);q>>1;h(g[C],A)<0?q=C+1:L=C}return q},right:function(g,A,q,L){for(arguments.length<3&&(q=0),arguments.length<4&&(L=g.length);q>>1;h(g[C],A)>0?L=C:q=C+1}return q}}}var m=p(c);e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(h){return p(h.length===1?function(g,A){return c(h(g),A)}:h)},e.shuffle=function(h,g,A){(q=arguments.length)<3&&(A=h.length,q<2&&(g=0));for(var q=A-g,L,C;q;)C=Math.random()*q--|0,L=h[q+g],h[q+g]=h[C+g],h[C+g]=L;return h},e.permute=function(h,g){for(var A=g.length,q=new Array(A);A--;)q[A]=h[g[A]];return q},e.pairs=function(h){for(var g=0,A=h.length-1,q,L=h[0],C=new Array(A<0?0:A);g=0;)for(I=h[g],A=I.length;--A>=0;)C[--L]=I[A];return C};var x=Math.abs;e.range=function(h,g,A){if(arguments.length<3&&(A=1,arguments.length<2&&(g=h,h=0)),(g-h)/A===1/0)throw new Error("infinite range");var q=[],L=w(x(A)),C=-1,I;if(h*=L,g*=L,A*=L,A<0)for(;(I=h+A*++C)>g;)q.push(I/L);else for(;(I=h+A*++C)=g.length)return L?L.call(h,H):q?H.sort(q):H;for(var $=-1,ee=H.length,te=g[X++],we,ke,ae,he=new b,ge;++$=g.length)return F;var X=[],$=A[H++];return F.forEach(function(ee,te){X.push({key:ee,values:I(te,H)})}),$?X.sort(function(ee,te){return $(ee.key,te.key)}):X}return h.map=function(F,H){return C(H,F,0)},h.entries=function(F){return I(C(e.map,F,0),0)},h.key=function(F){return g.push(F),h},h.sortKeys=function(F){return A[g.length-1]=F,h},h.sortValues=function(F){return q=F,h},h.rollup=function(F){return L=F,h},h},e.set=function(h){var g=new O;if(h)for(var A=0,q=h.length;A=0&&(q=h.slice(A+1),h=h.slice(0,A)),h)return arguments.length<2?this[h].on(q):this[h].on(q,g);if(arguments.length===2){if(g==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(q,null);return this}};function Z(h){var g=[],A=new b;function q(){for(var L=g,C=-1,I=L.length,F;++C=0&&(A=h.slice(0,g))!=="xmlns"&&(h=h.slice(g+1)),me.hasOwnProperty(A)?{space:me[A],local:h}:h}},pe.attr=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node();return h=e.ns.qualify(h),h.local?A.getAttributeNS(h.space,h.local):A.getAttribute(h)}for(g in h)this.each(_e(g,h[g]));return this}return this.each(_e(h,g))};function _e(h,g){h=e.ns.qualify(h);function A(){this.removeAttribute(h)}function q(){this.removeAttributeNS(h.space,h.local)}function L(){this.setAttribute(h,g)}function C(){this.setAttributeNS(h.space,h.local,g)}function I(){var H=g.apply(this,arguments);H==null?this.removeAttribute(h):this.setAttribute(h,H)}function F(){var H=g.apply(this,arguments);H==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,H)}return g==null?h.local?q:A:typeof g=="function"?h.local?F:I:h.local?C:L}function ye(h){return h.trim().replace(/\s+/g," ")}pe.classed=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node(),q=(h=Ne(h)).length,L=-1;if(g=A.classList){for(;++L=0;)(C=A[q])&&(L&&L!==C.nextSibling&&L.parentNode.insertBefore(C,L),L=C);return this},pe.sort=function(h){h=Ae.apply(this,arguments);for(var g=-1,A=this.length;++g=g&&(g=L+1);!(H=I[g])&&++g0&&(h=h.slice(0,L));var I=Oe.get(h);I&&(h=I,C=Ue);function F(){var $=this[q];$&&(this.removeEventListener(h,$,$.$),delete this[q])}function H(){var $=C(g,t(arguments));F.call(this),this.addEventListener(h,this[q]=$,$.$=A),$._=g}function X(){var $=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),ee;for(var te in this)if(ee=te.match($)){var we=this[te];this.removeEventListener(ee[1],we,we.$),delete this[te]}}return L?g?H:F:g?Y:X}var Oe=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Oe.forEach(function(h){"on"+h in a&&Oe.remove(h)});function Ze(h,g){return function(A){var q=e.event;e.event=A,g[0]=this.__data__;try{h.apply(this,g)}finally{e.event=q}}}function Ue(h,g){var A=Ze(h,g);return function(q){var L=this,C=q.relatedTarget;(!C||C!==L&&!(C.compareDocumentPosition(L)&8))&&A.call(L,q)}}var Xe,Qe=0;function hr(h){var g=".dragsuppress-"+ ++Qe,A="click"+g,q=e.select(i(h)).on("touchmove"+g,re).on("dragstart"+g,re).on("selectstart"+g,re);if(Xe==null&&(Xe="onselectstart"in h?!1:G(h.style,"userSelect")),Xe){var L=n(h).style,C=L[Xe];L[Xe]="none"}return function(I){if(q.on(g,null),Xe&&(L[Xe]=C),I){var F=function(){q.on(A,null)};q.on(A,function(){re(),F()},!0),setTimeout(F,0)}}}e.mouse=function(h){return Fe(h,se())};var $e=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Fe(h,g){g.changedTouches&&(g=g.changedTouches[0]);var A=h.ownerSVGElement||h;if(A.createSVGPoint){var q=A.createSVGPoint();if($e<0){var L=i(h);if(L.scrollX||L.scrollY){A=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var C=A[0][0].getScreenCTM();$e=!(C.f||C.e),A.remove()}}return $e?(q.x=g.pageX,q.y=g.pageY):(q.x=g.clientX,q.y=g.clientY),q=q.matrixTransform(h.getScreenCTM().inverse()),[q.x,q.y]}var I=h.getBoundingClientRect();return[g.clientX-I.left-h.clientLeft,g.clientY-I.top-h.clientTop]}e.touch=function(h,g,A){if(arguments.length<3&&(A=g,g=se().changedTouches),g){for(var q=0,L=g.length,C;q0?1:h<0?-1:0}function Vr(h,g,A){return(g[0]-h[0])*(A[1]-h[1])-(g[1]-h[1])*(A[0]-h[0])}function Yt(h){return h>1?0:h<-1?Le:Math.acos(h)}function wt(h){return h>1?nr:h<-1?-nr:Math.asin(h)}function Tt(h){return((h=Math.exp(h))-1/h)/2}function pt(h){return((h=Math.exp(h))+1/h)/2}function Xt(h){return((h=Math.exp(2*h))-1)/(h+1)}function Jt(h){return(h=Math.sin(h/2))*h}var It=Math.SQRT2,za=2,br=4;e.interpolateZoom=function(h,g){var A=h[0],q=h[1],L=h[2],C=g[0],I=g[1],F=g[2],H=C-A,X=I-q,$=H*H+X*X,ee,te;if($0&&(rr=rr.transition().duration(I)),rr.call(Se.event)}function dr(){he&&he.domain(ae.range().map(function(rr){return(rr-h.x)/h.k}).map(ae.invert)),Me&&Me.domain(ge.range().map(function(rr){return(rr-h.y)/h.k}).map(ge.invert))}function pr(rr){F++||rr({type:"zoomstart"})}function Er(rr){dr(),rr({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function mr(rr){--F||(rr({type:"zoomend"}),A=null)}function kr(){var rr=this,Dr=ke.of(rr,arguments),Pr=0,at=e.select(i(rr)).on(X,Ba).on($,an),Ht=xe(e.mouse(rr)),ha=hr(rr);rp.call(rr),pr(Dr);function Ba(){Pr=1,cr(e.mouse(rr),Ht),Er(Dr)}function an(){at.on(X,null).on($,null),ha(Pr),mr(Dr)}}function tt(){var rr=this,Dr=ke.of(rr,arguments),Pr={},at=0,Ht,ha=".zoom-"+e.event.changedTouches[0].identifier,Ba="touchmove"+ha,an="touchend"+ha,yn=[],nn=e.select(rr),An=hr(rr);Mn(),pr(Dr),nn.on(H,null).on(te,Mn);function Za(){var ji=e.touches(rr);return Ht=h.k,ji.forEach(function(Ha){Ha.identifier in Pr&&(Pr[Ha.identifier]=xe(Ha))}),ji}function Mn(){var ji=e.event.target;e.select(ji).on(Ba,Us).on(an,Uie),yn.push(ji);for(var Ha=e.event.changedTouches,ii=0,wo=Ha.length;ii1){var Gs=oi[0],Nl=oi[1],np=Gs[0]-Nl[0],OA=Gs[1]-Nl[1];at=np*np+OA*OA}}function Us(){var ji=e.touches(rr),Ha,ii,wo,oi;rp.call(rr);for(var bf=0,Gs=ji.length;bf1?1:g,A=A<0?0:A>1?1:A,L=A<=.5?A*(1+g):A+g-A*g,q=2*A-L;function C(F){return F>360?F-=360:F<0&&(F+=360),F<60?q+(L-q)*F/60:F<180?L:F<240?q+(L-q)*(240-F)/60:q}function I(F){return Math.round(C(F)*255)}return new Vt(I(h+120),I(h),I(h-120))}e.hcl=$t;function $t(h,g,A){return this instanceof $t?(this.h=+h,this.c=+g,void(this.l=+A)):arguments.length<2?h instanceof $t?new $t(h.h,h.c,h.l):h instanceof Kt?Ft(h.l,h.a,h.b):Ft((h=fr((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new $t(h,g,A)}var tn=$t.prototype=new Pt;tn.brighter=function(h){return new $t(this.h,this.c,Math.min(100,this.l+ft*(arguments.length?h:1)))},tn.darker=function(h){return new $t(this.h,this.c,Math.max(0,this.l-ft*(arguments.length?h:1)))},tn.rgb=function(){return wn(this.h,this.c,this.l).rgb()};function wn(h,g,A){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new Kt(A,Math.cos(h*=Mr)*g,Math.sin(h)*g)}e.lab=Kt;function Kt(h,g,A){return this instanceof Kt?(this.l=+h,this.a=+g,void(this.b=+A)):arguments.length<2?h instanceof Kt?new Kt(h.l,h.a,h.b):h instanceof $t?wn(h.h,h.c,h.l):fr((h=Vt(h)).r,h.g,h.b):new Kt(h,g,A)}var ft=18,_a=.95047,Ko=1,Qo=1.08883,vt=Kt.prototype=new Pt;vt.brighter=function(h){return new Kt(Math.min(100,this.l+ft*(arguments.length?h:1)),this.a,this.b)},vt.darker=function(h){return new Kt(Math.max(0,this.l-ft*(arguments.length?h:1)),this.a,this.b)},vt.rgb=function(){return Tn(this.l,this.a,this.b)};function Tn(h,g,A){var q=(h+16)/116,L=q+g/500,C=q-A/200;return L=zs(L)*_a,q=zs(q)*Ko,C=zs(C)*Qo,new Vt(Gi(3.2404542*L-1.5371385*q-.4985314*C),Gi(-.969266*L+1.8760108*q+.041556*C),Gi(.0556434*L-.2040259*q+1.0572252*C))}function Ft(h,g,A){return h>0?new $t(Math.atan2(A,g)*Or,Math.sqrt(g*g+A*A),h):new $t(NaN,NaN,h)}function zs(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function pn(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function Gi(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=Vt;function Vt(h,g,A){return this instanceof Vt?(this.r=~~h,this.g=~~g,void(this.b=~~A)):arguments.length<2?h instanceof Vt?new Vt(h.r,h.g,h.b):$r(""+h,Vt,xa):new Vt(h,g,A)}function Yi(h){return new Vt(h>>16,h>>8&255,h&255)}function Rl(h){return Yi(h)+""}var Pl=Vt.prototype=new Pt;Pl.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var g=this.r,A=this.g,q=this.b,L=30;return!g&&!A&&!q?new Vt(L,L,L):(g&&g>4,q=q>>4|q,L=H&240,L=L>>4|L,C=H&15,C=C<<4|C):h.length===7&&(q=(H&16711680)>>16,L=(H&65280)>>8,C=H&255)),g(q,L,C))}function ht(h,g,A){var q=Math.min(h/=255,g/=255,A/=255),L=Math.max(h,g,A),C=L-q,I,F,H=(L+q)/2;return C?(F=H<.5?C/(L+q):C/(2-L-q),h==L?I=(g-A)/C+(g0&&H<1?0:I),new Qr(I,F,H)}function fr(h,g,A){h=Ia(h),g=Ia(g),A=Ia(A);var q=pn((.4124564*h+.3575761*g+.1804375*A)/_a),L=pn((.2126729*h+.7151522*g+.072175*A)/Ko),C=pn((.0193339*h+.119192*g+.9503041*A)/Qo);return Kt(116*L-16,500*(q-L),200*(L-C))}function Ia(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function kt(h){var g=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(g*2.55):g}var Oa=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Oa.forEach(function(h,g){Oa.set(h,Yi(g))});function Br(h){return typeof h=="function"?h:function(){return h}}e.functor=Br,e.xhr=Vi(B);function Vi(h){return function(g,A,q){return arguments.length===2&&typeof A=="function"&&(q=A,A=null),Is(g,A,h,q)}}function Is(h,g,A,q){var L={},C=e.dispatch("beforesend","progress","load","error"),I={},F=new XMLHttpRequest,H=null;self.XDomainRequest&&!("withCredentials"in F)&&/^(http(s)?:)?\/\//.test(h)&&(F=new XDomainRequest),"onload"in F?F.onload=F.onerror=X:F.onreadystatechange=function(){F.readyState>3&&X()};function X(){var $=F.status,ee;if(!$&&Yae(F)||$>=200&&$<300||$===304){try{ee=A.call(L,F)}catch(te){C.error.call(L,te);return}C.load.call(L,ee)}else C.error.call(L,F)}return F.onprogress=function($){var ee=e.event;e.event=$;try{C.progress.call(L,F)}finally{e.event=ee}},L.header=function($,ee){return $=($+"").toLowerCase(),arguments.length<2?I[$]:(ee==null?delete I[$]:I[$]=ee+"",L)},L.mimeType=function($){return arguments.length?(g=$==null?null:$+"",L):g},L.responseType=function($){return arguments.length?(H=$,L):H},L.response=function($){return A=$,L},["get","post"].forEach(function($){L[$]=function(){return L.send.apply(L,[$].concat(t(arguments)))}}),L.send=function($,ee,te){if(arguments.length===2&&typeof ee=="function"&&(te=ee,ee=null),F.open($,h,!0),g!=null&&!("accept"in I)&&(I.accept=g+",*/*"),F.setRequestHeader)for(var we in I)F.setRequestHeader(we,I[we]);return g!=null&&F.overrideMimeType&&F.overrideMimeType(g),H!=null&&(F.responseType=H),te!=null&&L.on("error",te).on("load",function(ke){te(null,ke)}),C.beforesend.call(L,F),F.send(ee==null?null:ee),L},L.abort=function(){return F.abort(),L},e.rebind(L,C,"on"),q==null?L:L.get(Gae(q))}function Gae(h){return h.length===1?function(g,A){h(g==null?A:null)}:h}function Yae(h){var g=h.responseType;return g&&g!=="text"?h.response:h.responseText}e.dsv=function(h,g){var A=new RegExp('["'+h+` +]`),q=h.charCodeAt(0);function L(X,$,ee){arguments.length<3&&(ee=$,$=null);var te=Is(X,g,$==null?C:I($),ee);return te.row=function(we){return arguments.length?te.response(($=we)==null?C:I(we)):$},te}function C(X){return L.parse(X.responseText)}function I(X){return function($){return L.parse($.responseText,X)}}L.parse=function(X,$){var ee;return L.parseRows(X,function(te,we){if(ee)return ee(te,we-1);var ke=function(ae){for(var he={},ge=te.length,Me=0;Me=ke)return te;if(Me)return Me=!1,ee;var Ye=ae;if(X.charCodeAt(Ye)===34){for(var ir=Ye;ir++24?(isFinite(g)&&(clearTimeout(Nd),Nd=setTimeout(A3,g)),Fd=0):(Fd=1,A8(A3))}e.timer.flush=function(){M8(),k8()};function M8(){for(var h=Date.now(),g=Rd;g;)h>=g.t&&g.c(h-g.t)&&(g.c=null),g=g.n;return h}function k8(){for(var h,g=Rd,A=1/0;g;)g.c?(g.t=0;--F)ae.push(L[X[ee[F]][2]]);for(F=+we;F1&&zr(h[A[q-2]],h[A[q-1]],h[L])<=0;)--q;A[q++]=L}return A.slice(0,q)}function Yae(h,g){return h[0]-g[0]||h[1]-g[1]}e.geom.polygon=function(h){return K(h,Id),h};var Id=e.geom.polygon.prototype=[];Id.area=function(){for(var h=-1,g=this.length,A,q=this[g-1],L=0;++hde)F=F.L;else if(I=g-Zae(F,A),I>de){if(!F.R){q=F;break}F=F.R}else{C>-de?(q=F.P,L=F):I>-de?(q=F,L=F.N):q=L=F;break}var H=E8(h);if(pf.insert(q,H),!(!q&&!L)){if(q===L){mf(q),L=E8(q.site),pf.insert(H,L),H.edge=L.edge=Pv(q.site,H.site),yf(q),yf(L);return}if(!L){H.edge=Pv(q.site,H.site);return}mf(q),mf(L);var X=q.site,$=X.x,ee=X.y,te=h.x-$,we=h.y-ee,Me=L.site,ae=Me.x-$,he=Me.y-ee,ge=2*(te*he-we*ae),Ae=te*te+we*we,ke=ae*ae+he*he,_e={x:(he*Ae-we*ke)/ge+$,y:(te*ke-ae*Ae)/ge+ee};Od(L.edge,X,Me,_e),H.edge=Pv(X,h,null,_e),L.edge=Pv(h,Me,null,_e),yf(q),yf(L)}}function D8(h,g){var A=h.site,q=A.x,L=A.y,C=L-g;if(!C)return q;var I=h.P;if(!I)return-1/0;A=I.site;var F=A.x,H=A.y,X=H-g;if(!X)return F;var $=F-q,ee=1/C-1/X,te=$/X;return ee?(-te+Math.sqrt(te*te-2*ee*($*$/(-2*X)-H+X/2+L-C/2)))/ee+q:(q+F)/2}function Zae(h,g){var A=h.N;if(A)return D8(A,g);var q=h.site;return q.y===g?q.x:1/0}function R8(h){this.site=h,this.edges=[]}R8.prototype.prepare=function(){for(var h=this.edges,g=h.length,A;g--;)A=h[g].edge,(!A.b||!A.a)&&h.splice(g,1);return h.sort(P8),h.length};function Xae(h){for(var g=h[0][0],A=h[1][0],q=h[0][1],L=h[1][1],C,I,F,H,X=Os,$=X.length,ee,te,we,Me,ae,he;$--;)if(ee=X[$],!(!ee||!ee.prepare()))for(we=ee.edges,Me=we.length,te=0;tede||x(H-I)>de)&&(we.splice(te,0,new Bd(ene(ee.site,he,x(F-g)de?{x:g,y:x(C-g)de?{x:x(I-L)de?{x:A,y:x(C-A)de?{x:x(I-q)=-De)){var te=H*H+X*X,we=$*$+he*he,Me=(he*te-X*we)/ee,ae=(H*we-$*te)/ee,he=ae+F,ge=C8.pop()||new Jae;ge.arc=h,ge.site=L,ge.x=Me+I,ge.y=he+Math.sqrt(Me*Me+ae*ae),ge.cy=he,h.circle=ge;for(var Ae=null,ke=Rv._;ke;)if(ge.y0)){if(ae/=we,we<0){if(ae0){if(ae>te)return;ae>ee&&(ee=ae)}if(ae=A-F,!(!we&&ae<0)){if(ae/=we,we<0){if(ae>te)return;ae>ee&&(ee=ae)}else if(we>0){if(ae0)){if(ae/=Me,Me<0){if(ae0){if(ae>te)return;ae>ee&&(ee=ae)}if(ae=q-H,!(!Me&&ae<0)){if(ae/=Me,Me<0){if(ae>te)return;ae>ee&&(ee=ae)}else if(Me>0){if(ae0&&(L.a={x:F+ee*we,y:H+ee*Me}),te<1&&(L.b={x:F+te*we,y:H+te*Me}),L}}}}}}function Kae(h){for(var g=df,A=$ae(h[0][0],h[0][1],h[1][0],h[1][1]),q=g.length,L;q--;)L=g[q],(!Qae(L,h)||!A(L)||x(L.a.x-L.b.x)=C)return;if($>te){if(!q)q={x:Me,y:I};else if(q.y>=F)return;A={x:Me,y:F}}else{if(!q)q={x:Me,y:F};else if(q.y1)if($>te){if(!q)q={x:(I-ge)/he,y:I};else if(q.y>=F)return;A={x:(F-ge)/he,y:F}}else{if(!q)q={x:(F-ge)/he,y:F};else if(q.y=C)return;A={x:C,y:he*C+ge}}else{if(!q)q={x:C,y:he*C+ge};else if(q.x=$&&ge.x<=te&&ge.y>=ee&&ge.y<=we?[[$,we],[te,we],[te,ee],[$,ee]]:[];Ae.point=H[ae]}),X}function F(H){return H.map(function(X,$){return{x:Math.round(q(X,$)/de)*de,y:Math.round(L(X,$)/de)*de,i:$}})}return I.links=function(H){return C3(F(H)).edges.filter(function(X){return X.l&&X.r}).map(function(X){return{source:H[X.l.i],target:H[X.r.i]}})},I.triangles=function(H){var X=[];return C3(F(H)).cells.forEach(function($,ee){for(var te=$.site,we=$.edges.sort(P8),Me=-1,ae=we.length,he,ge,Ae=we[ae-1].edge,ke=Ae.l===te?Ae.r:Ae.l;++Meke&&(ke=$.x),$.y>_e&&(_e=$.y),we.push($.x),Me.push($.y);else for(ae=0;aeke&&(ke=je),ir>_e&&(_e=ir),we.push(je),Me.push(ir)}var fr=ke-ge,or=_e-Ae;fr>or?_e=Ae+fr:ke=ge+or;function dr(mr,kr,tt,Jt,yt,rr,Dr,Pr){if(!(isNaN(tt)||isNaN(Jt)))if(mr.leaf){var at=mr.x,Bt=mr.y;if(at!=null)if(x(at-tt)+x(Bt-Jt)<.01)pr(mr,kr,tt,Jt,yt,rr,Dr,Pr);else{var ua=mr.point;mr.x=mr.y=mr.point=null,pr(mr,ua,at,Bt,yt,rr,Dr,Pr),pr(mr,kr,tt,Jt,yt,rr,Dr,Pr)}else mr.x=tt,mr.y=Jt,mr.point=kr}else pr(mr,kr,tt,Jt,yt,rr,Dr,Pr)}function pr(mr,kr,tt,Jt,yt,rr,Dr,Pr){var at=(yt+Dr)*.5,Bt=(rr+Pr)*.5,ua=tt>=at,Oa=Jt>=Bt,an=Oa<<1|ua;mr.leaf=!1,mr=mr.nodes[an]||(mr.nodes[an]=z8()),ua?yt=at:Dr=at,Oa?rr=Bt:Pr=Bt,dr(mr,kr,tt,Jt,yt,rr,Dr,Pr)}var Er=z8();if(Er.add=function(mr){dr(Er,mr,+ee(mr,++ae),+te(mr,ae),ge,Ae,ke,_e)},Er.visit=function(mr){zv(mr,Er,ge,Ae,ke,_e)},Er.find=function(mr){return ine(Er,mr[0],mr[1],ge,Ae,ke,_e)},ae=-1,g==null){for(;++aeC||te>I||we=je,or=A>=ir,dr=or<<1|fr,pr=dr+4;drA&&(C=g.slice(A,C),F[I]?F[I]+=C:F[++I]=C),(q=q[0])===(L=L[0])?F[I]?F[I]+=L:F[++I]=L:(F[++I]=null,H.push({i:I,x:el(q,L)})),A=R3.lastIndex;return A=0&&!(q=e.interpolators[A](h,g)););return q}e.interpolators=[function(h,g){var A=typeof g;return(A==="string"?Ia.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?E3:O8:g instanceof Rt?E3:Array.isArray(g)?Gd:A==="object"&&isNaN(g)?I8:el)(h,g)}],e.interpolateArray=Gd;function Gd(h,g){var A=[],q=[],L=h.length,C=g.length,I=Math.min(h.length,g.length),F;for(F=0;F=0?h.slice(0,g):h,q=g>=0?h.slice(g+1):"in";return A=one.get(A)||B8,q=lne.get(q)||B,sne(q(A.apply(null,r.call(arguments,1))))};function sne(h){return function(g){return g<=0?0:g>=1?1:h(g)}}function H8(h){return function(g){return 1-h(1-g)}}function U8(h){return function(g){return .5*(g<.5?h(2*g):2-h(2-2*g))}}function une(h){return h*h}function fne(h){return h*h*h}function cne(h){if(h<=0)return 0;if(h>=1)return 1;var g=h*h,A=g*h;return 4*(h<.5?A:3*(h-g)+A-.75)}function vne(h){return function(g){return Math.pow(g,h)}}function hne(h){return 1-Math.cos(h*ur)}function dne(h){return Math.pow(2,10*(h-1))}function pne(h){return 1-Math.sqrt(1-h*h)}function yne(h,g){var A;return arguments.length<2&&(g=.45),arguments.length?A=g/ar*Math.asin(1/h):(h=1,A=g/4),function(q){return 1+h*Math.pow(2,-10*q)*Math.sin((q-A)*ar/g)}}function mne(h){return h||(h=1.70158),function(g){return g*g*((h+1)*g-h)}}function gne(h){return h<1/2.75?7.5625*h*h:h<2/2.75?7.5625*(h-=1.5/2.75)*h+.75:h<2.5/2.75?7.5625*(h-=2.25/2.75)*h+.9375:7.5625*(h-=2.625/2.75)*h+.984375}e.interpolateHcl=bne;function bne(h,g){h=e.hcl(h),g=e.hcl(g);var A=h.h,q=h.c,L=h.l,C=g.h-A,I=g.c-q,F=g.l-L;return isNaN(I)&&(I=0,q=isNaN(q)?g.c:q),isNaN(C)?(C=0,A=isNaN(A)?g.h:A):C>180?C-=360:C<-180&&(C+=360),function(H){return wn(A+C*H,q+I*H,L+F*H)+""}}e.interpolateHsl=xne;function xne(h,g){h=e.hsl(h),g=e.hsl(g);var A=h.h,q=h.s,L=h.l,C=g.h-A,I=g.s-q,F=g.l-L;return isNaN(I)&&(I=0,q=isNaN(q)?g.s:q),isNaN(C)?(C=0,A=isNaN(A)?g.h:A):C>180?C-=360:C<-180&&(C+=360),function(H){return ba(A+C*H,q+I*H,L+F*H)+""}}e.interpolateLab=_ne;function _ne(h,g){h=e.lab(h),g=e.lab(g);var A=h.l,q=h.a,L=h.b,C=g.l-A,I=g.a-q,F=g.b-L;return function(H){return Tn(A+C*H,q+I*H,L+F*H)+""}}e.interpolateRound=G8;function G8(h,g){return g-=h,function(A){return Math.round(h+g*A)}}e.transform=function(h){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(A){if(A!=null){g.setAttribute("transform",A);var q=g.transform.baseVal.consolidate()}return new Y8(q?q.matrix:Tne)})(h)};function Y8(h){var g=[h.a,h.b],A=[h.c,h.d],q=j8(g),L=V8(g,A),C=j8(wne(A,g,-L))||0;g[0]*A[1]180?g+=360:g-h>180&&(h+=360),q.push({i:A.push(gf(A)+"rotate(",null,")")-2,x:el(h,g)})):g&&A.push(gf(A)+"rotate("+g+")")}function kne(h,g,A,q){h!==g?q.push({i:A.push(gf(A)+"skewX(",null,")")-2,x:el(h,g)}):g&&A.push(gf(A)+"skewX("+g+")")}function Sne(h,g,A,q){if(h[0]!==g[0]||h[1]!==g[1]){var L=A.push(gf(A)+"scale(",null,",",null,")");q.push({i:L-4,x:el(h[0],g[0])},{i:L-2,x:el(h[1],g[1])})}else(g[0]!==1||g[1]!==1)&&A.push(gf(A)+"scale("+g+")")}function W8(h,g){var A=[],q=[];return h=e.transform(h),g=e.transform(g),Ane(h.translate,g.translate,A,q),Mne(h.rotate,g.rotate,A,q),kne(h.skew,g.skew,A,q),Sne(h.scale,g.scale,A,q),h=g=null,function(L){for(var C=-1,I=q.length,F;++C0?C=_e:(A.c=null,A.t=NaN,A=null,g.end({type:"end",alpha:C=0})):_e>0&&(g.start({type:"start",alpha:C=_e}),A=zd(h.tick)),h):C},h.start=function(){var _e,je=we.length,ir=Me.length,fr=q[0],or=q[1],dr,pr;for(_e=0;_e=0;)C.push($=X[H]),$.parent=F,$.depth=F.depth+1;A&&(F.value=0),F.children=X}else A&&(F.value=+A.call(q,F,F.depth)||0),delete F.children;return _o(L,function(ee){var te,we;h&&(te=ee.children)&&te.sort(h),A&&(we=ee.parent)&&(we.value+=ee.value)}),I}return q.sort=function(L){return arguments.length?(h=L,q):h},q.children=function(L){return arguments.length?(g=L,q):g},q.value=function(L){return arguments.length?(A=L,q):A},q.revalue=function(L){return A&&(Ov(L,function(C){C.children&&(C.value=0)}),_o(L,function(C){var I;C.children||(C.value=+A.call(q,C,C.depth)||0),(I=C.parent)&&(I.value+=C.value)})),L},q};function Iv(h,g){return e.rebind(h,g,"sort","children","value"),h.nodes=h,h.links=Une,h}function Ov(h,g){for(var A=[h];(h=A.pop())!=null;)if(g(h),(L=h.children)&&(q=L.length))for(var q,L;--q>=0;)A.push(L[q])}function _o(h,g){for(var A=[h],q=[];(h=A.pop())!=null;)if(q.push(h),(I=h.children)&&(C=I.length))for(var L=-1,C,I;++LL&&(L=F),q.push(F)}for(I=0;Iq&&(A=g,q=L);return A}function Xne(h){return h.reduce(Jne,0)}function Jne(h,g){return h+g[1]}e.layout.histogram=function(){var h=!0,g=Number,A=Kne,q=$ne;function L(C,te){for(var F=[],H=C.map(g,this),X=A.call(this,H,te),$=q.call(this,X,H,te),ee,te=-1,we=H.length,Me=$.length-1,ae=h?1:1/we,he;++te0)for(te=-1;++te=X[0]&&he<=X[1]&&(ee=F[e.bisect($,he,1,Me)-1],ee.y+=ae,ee.push(C[te]));return F}return L.value=function(C){return arguments.length?(g=C,L):g},L.range=function(C){return arguments.length?(A=Br(C),L):A},L.bins=function(C){return arguments.length?(q=typeof C=="number"?function(I){return $8(I,C)}:Br(C),L):q},L.frequency=function(C){return arguments.length?(h=!!C,L):h},L};function $ne(h,g){return $8(h,Math.ceil(Math.log(g.length)/Math.LN2+1))}function $8(h,g){for(var A=-1,q=+h[0],L=(h[1]-q)/g,C=[];++A<=g;)C[A]=L*A+q;return C}function Kne(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(Qne),g=0,A=[1,1],q;function L(C,I){var F=h.call(this,C,I),H=F[0],X=A[0],$=A[1],ee=q==null?Math.sqrt:typeof q=="function"?q:function(){return q};if(H.x=H.y=0,_o(H,function(we){we.r=+ee(we.value)}),_o(H,eA),g){var te=g*(q?1:Math.max(2*H.r/X,2*H.r/$))/2;_o(H,function(we){we.r+=te}),_o(H,eA),_o(H,function(we){we.r-=te})}return rA(H,X/2,$/2,q?1:1/Math.max(2*H.r/X,2*H.r/$)),F}return L.size=function(C){return arguments.length?(A=C,L):A},L.radius=function(C){return arguments.length?(q=C==null||typeof C=="function"?C:+C,L):q},L.padding=function(C){return arguments.length?(g=+C,L):g},Iv(L,h)};function Qne(h,g){return h.value-g.value}function N3(h,g){var A=h._pack_next;h._pack_next=g,g._pack_prev=h,g._pack_next=A,A._pack_prev=g}function K8(h,g){h._pack_next=g,g._pack_prev=h}function Q8(h,g){var A=g.x-h.x,q=g.y-h.y,L=h.r+g.r;return .999*L*L>A*A+q*q}function eA(h){if(!(g=h.children)||!(te=g.length))return;var g,A=1/0,q=-1/0,L=1/0,C=-1/0,I,F,H,X,$,ee,te;function we(_e){A=Math.min(_e.x-_e.r,A),q=Math.max(_e.x+_e.r,q),L=Math.min(_e.y-_e.r,L),C=Math.max(_e.y+_e.r,C)}if(g.forEach(eie),I=g[0],I.x=-I.r,I.y=0,we(I),te>1&&(F=g[1],F.x=F.r,F.y=0,we(F),te>2))for(H=g[2],tA(I,F,H),we(H),N3(I,H),I._pack_prev=H,N3(H,F),F=I._pack_next,X=3;Xhe.x&&(he=je),je.depth>ge.depth&&(ge=je)});var Ae=g(ae,he)/2-ae.x,ke=A[0]/(he.x+g(he,ae)/2+Ae),_e=A[1]/(ge.depth||1);Ov(we,function(je){je.x=(je.x+Ae)*ke,je.y=je.depth*_e})}return te}function C($){for(var ee={A:null,children:[$]},te=[ee],we;(we=te.pop())!=null;)for(var Me=we.children,ae,he=0,ge=Me.length;he0&&(tie(nie(ae,$,te),$,je),ge+=je,Ae+=je),ke+=ae.m,ge+=we.m,_e+=he.m,Ae+=Me.m;ae&&!I3(Me)&&(Me.t=ae,Me.m+=ke-Ae),we&&!z3(he)&&(he.t=we,he.m+=ge-_e,te=$)}return te}function X($){$.x*=A[0],$.y=$.depth*A[1]}return L.separation=function($){return arguments.length?(g=$,L):g},L.size=function($){return arguments.length?(q=(A=$)==null?X:null,L):q?null:A},L.nodeSize=function($){return arguments.length?(q=(A=$)==null?null:X,L):q?A:null},Iv(L,h)};function aA(h,g){return h.parent==g.parent?1:2}function z3(h){var g=h.children;return g.length?g[0]:h.t}function I3(h){var g=h.children,A;return(A=g.length)?g[A-1]:h.t}function tie(h,g,A){var q=A/(g.i-h.i);g.c-=q,g.s+=A,h.c+=q,g.z+=A,g.m+=A}function aie(h){for(var g=0,A=0,q=h.children,L=q.length,C;--L>=0;)C=q[L],C.z+=g,C.m+=g,g+=C.s+(A+=C.c)}function nie(h,g,A){return h.a.parent===g.parent?h.a:A}e.layout.cluster=function(){var h=e.layout.hierarchy().sort(null).value(null),g=aA,A=[1,1],q=!1;function L(C,I){var F=h.call(this,C,I),H=F[0],X,$=0;_o(H,function(ae){var he=ae.children;he&&he.length?(ae.x=oie(he),ae.y=iie(he)):(ae.x=X?$+=g(ae,X):0,ae.y=0,X=ae)});var ee=nA(H),te=iA(H),we=ee.x-g(ee,te)/2,Me=te.x+g(te,ee)/2;return _o(H,q?function(ae){ae.x=(ae.x-H.x)*A[0],ae.y=(H.y-ae.y)*A[1]}:function(ae){ae.x=(ae.x-we)/(Me-we)*A[0],ae.y=(1-(H.y?ae.y/H.y:1))*A[1]}),F}return L.separation=function(C){return arguments.length?(g=C,L):g},L.size=function(C){return arguments.length?(q=(A=C)==null,L):q?null:A},L.nodeSize=function(C){return arguments.length?(q=(A=C)!=null,L):q?A:null},Iv(L,h)};function iie(h){return 1+e.max(h,function(g){return g.y})}function oie(h){return h.reduce(function(g,A){return g+A.x},0)/h.length}function nA(h){var g=h.children;return g&&g.length?nA(g[0]):h}function iA(h){var g=h.children,A;return g&&(A=g.length)?iA(g[A-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),g=Math.round,A=[1,1],q=null,L=O3,C=!1,I,F="squarify",H=.5*(1+Math.sqrt(5));function X(ae,he){for(var ge=-1,Ae=ae.length,ke,_e;++ge0;)Ae.push(_e=ke[or-1]),Ae.area+=_e.area,F!=="squarify"||(ir=te(Ae,fr))<=je?(ke.pop(),je=ir):(Ae.area-=Ae.pop().area,we(Ae,fr,ge,!1),fr=Math.min(ge.dx,ge.dy),Ae.length=Ae.area=0,je=1/0);Ae.length&&(we(Ae,fr,ge,!0),Ae.length=Ae.area=0),he.forEach($)}}function ee(ae){var he=ae.children;if(he&&he.length){var ge=L(ae),Ae=he.slice(),ke,_e=[];for(X(Ae,ge.dx*ge.dy/ae.value),_e.area=0;ke=Ae.pop();)_e.push(ke),_e.area+=ke.area,ke.z!=null&&(we(_e,ke.z?ge.dx:ge.dy,ge,!Ae.length),_e.length=_e.area=0);he.forEach(ee)}}function te(ae,he){for(var ge=ae.area,Ae,ke=0,_e=1/0,je=-1,ir=ae.length;++jeke&&(ke=Ae));return ge*=ge,he*=he,ge?Math.max(he*ke*H/ge,ge/(he*_e*H)):1/0}function we(ae,he,ge,Ae){var ke=-1,_e=ae.length,je=ge.x,ir=ge.y,fr=he?g(ae.area/he):0,or;if(he==ge.dx){for((Ae||fr>ge.dy)&&(fr=ge.dy);++ke<_e;)or=ae[ke],or.x=je,or.y=ir,or.dy=fr,je+=or.dx=Math.min(ge.x+ge.dx-je,fr?g(or.area/fr):0);or.z=!0,or.dx+=ge.x+ge.dx-je,ge.y+=fr,ge.dy-=fr}else{for((Ae||fr>ge.dx)&&(fr=ge.dx);++ke<_e;)or=ae[ke],or.x=je,or.y=ir,or.dx=fr,ir+=or.dy=Math.min(ge.y+ge.dy-ir,fr?g(or.area/fr):0);or.z=!1,or.dy+=ge.y+ge.dy-ir,ge.x+=fr,ge.dx-=fr}}function Me(ae){var he=I||h(ae),ge=he[0];return ge.x=ge.y=0,ge.value?(ge.dx=A[0],ge.dy=A[1]):ge.dx=ge.dy=0,I&&h.revalue(ge),X([ge],ge.dx*ge.dy/ge.value),(I?ee:$)(ge),C&&(I=he),he}return Me.size=function(ae){return arguments.length?(A=ae,Me):A},Me.padding=function(ae){if(!arguments.length)return q;function he(ke){var _e=ae.call(Me,ke,ke.depth);return _e==null?O3(ke):oA(ke,typeof _e=="number"?[_e,_e,_e,_e]:_e)}function ge(ke){return oA(ke,ae)}var Ae;return L=(q=ae)==null?O3:(Ae=typeof ae)=="function"?he:(Ae==="number"&&(ae=[ae,ae,ae,ae]),ge),Me},Me.round=function(ae){return arguments.length?(g=ae?Math.round:Number,Me):g!=Number},Me.sticky=function(ae){return arguments.length?(C=ae,I=null,Me):C},Me.ratio=function(ae){return arguments.length?(H=ae,Me):H},Me.mode=function(ae){return arguments.length?(F=ae+"",Me):F},Iv(Me,h)};function O3(h){return{x:h.x,y:h.y,dx:h.dx,dy:h.dy}}function oA(h,g){var A=h.x+g[3],q=h.y+g[0],L=h.dx-g[1]-g[3],C=h.dy-g[0]-g[2];return L<0&&(A+=L/2,L=0),C<0&&(q+=C/2,C=0),{x:A,y:q,dx:L,dy:C}}e.random={normal:function(h,g){var A=arguments.length;return A<2&&(g=1),A<1&&(h=0),function(){var q,L,C;do q=Math.random()*2-1,L=Math.random()*2-1,C=q*q+L*L;while(!C||C>1);return h+g*q*Math.sqrt(-2*Math.log(C)/C)}},logNormal:function(){var h=e.random.normal.apply(e,arguments);return function(){return Math.exp(h())}},bates:function(h){var g=e.random.irwinHall(h);return function(){return g()/h}},irwinHall:function(h){return function(){for(var g=0,A=0;A2?uie:lie,X=q?Lne:qne;return L=H(h,g,X,A),C=H(g,h,X,Bs),F}function F(H){return L(H)}return F.invert=function(H){return C(H)},F.domain=function(H){return arguments.length?(h=H.map(Number),I()):h},F.range=function(H){return arguments.length?(g=H,I()):g},F.rangeRound=function(H){return F.range(H).interpolate(G8)},F.clamp=function(H){return arguments.length?(q=H,I()):q},F.interpolate=function(H){return arguments.length?(A=H,I()):A},F.ticks=function(H){return U3(h,H)},F.tickFormat=function(H,X){return d3_scale_linearTickFormat(h,H,X)},F.nice=function(H){return fA(h,H),I()},F.copy=function(){return sA(h,g,A,q)},I()}function uA(h,g){return e.rebind(h,g,"range","rangeRound","interpolate","clamp")}function fA(h,g){return B3(h,lA(H3(h,g)[2])),B3(h,lA(H3(h,g)[2])),h}function H3(h,g){g==null&&(g=10);var A=Yd(h),q=A[1]-A[0],L=Math.pow(10,Math.floor(Math.log(q/g)/Math.LN10)),C=g/q*L;return C<=.15?L*=10:C<=.35?L*=5:C<=.75&&(L*=2),A[0]=Math.ceil(A[0]/L)*L,A[1]=Math.floor(A[1]/L)*L+L*.5,A[2]=L,A}function U3(h,g){return e.range.apply(e,H3(h,g))}var fie={s:1,g:1,p:1,r:1,e:1};function cA(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function $Le(h,g){var A=cA(g[2]);return h in fie?Math.abs(A-cA(Math.max(x(g[0]),x(g[1]))))+ +(h!=="e"):A-(h==="%")*2}e.scale.log=function(){return vA(e.scale.linear().domain([0,1]),10,!0,[1,10])};function vA(h,g,A,q){function L(F){return(A?Math.log(F<0?0:F):-Math.log(F>0?0:-F))/Math.log(g)}function C(F){return A?Math.pow(g,F):-Math.pow(g,-F)}function I(F){return h(L(F))}return I.invert=function(F){return C(h.invert(F))},I.domain=function(F){return arguments.length?(A=F[0]>=0,h.domain((q=F.map(Number)).map(L)),I):q},I.base=function(F){return arguments.length?(g=+F,h.domain(q.map(L)),I):g},I.nice=function(){var F=B3(q.map(L),A?Math:cie);return h.domain(F),q=F.map(C),I},I.ticks=function(){var F=Yd(q),H=[],X=F[0],$=F[1],ee=Math.floor(L(X)),te=Math.ceil(L($)),we=g%1?2:g;if(isFinite(te-ee)){if(A){for(;ee0;Me--)H.push(C(ee)*Me);for(ee=0;H[ee]$;te--);H=H.slice(ee,te)}return H},I.copy=function(){return vA(h.copy(),g,A,q)},uA(I,h)}var cie={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return hA(e.scale.linear(),1,[0,1])};function hA(h,g,A){var q=jd(g),L=jd(1/g);function C(I){return h(q(I))}return C.invert=function(I){return L(h.invert(I))},C.domain=function(I){return arguments.length?(h.domain((A=I.map(Number)).map(q)),C):A},C.ticks=function(I){return U3(A,I)},C.tickFormat=function(I,F){return d3_scale_linearTickFormat(A,I,F)},C.nice=function(I){return C.domain(fA(A,I))},C.exponent=function(I){return arguments.length?(q=jd(g=I),L=jd(1/g),h.domain(A.map(q)),C):g},C.copy=function(){return hA(h.copy(),g,A)},uA(C,h)}function jd(h){return function(g){return g<0?-Math.pow(-g,h):Math.pow(g,h)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return dA([],{t:"range",a:[[]]})};function dA(h,g){var A,q,L;function C(F){return q[((A.get(F)||(g.t==="range"?A.set(F,h.push(F)):NaN))-1)%q.length]}function I(F,H){return e.range(h.length).map(function(X){return F+H*X})}return C.domain=function(F){if(!arguments.length)return h;h=[],A=new b;for(var H=-1,X=F.length,$;++H0?A[C-1]:h[0],Cte?0:1;if($=hr)return H($,Me)+(X?H(X,1-Me):"")+"Z";var ae,he,ge,Ae,ke=0,_e=0,je,ir,fr,or,dr,pr,Er,mr,kr=[];if((Ae=(+I.apply(this,arguments)||0)/2)&&(ge=q===Wd?Math.sqrt(X*X+$*$):+q.apply(this,arguments),Me||(_e*=-1),$&&(_e=Dt(ge/$*Math.sin(Ae))),X&&(ke=Dt(ge/X*Math.sin(Ae)))),$){je=$*Math.cos(ee+_e),ir=$*Math.sin(ee+_e),fr=$*Math.cos(te-_e),or=$*Math.sin(te-_e);var tt=Math.abs(te-ee-2*_e)<=qe?0:1;if(_e&&Zd(je,ir,fr,or)===Me^tt){var Jt=(ee+te)/2;je=$*Math.cos(Jt),ir=$*Math.sin(Jt),fr=or=null}}else je=ir=0;if(X){dr=X*Math.cos(te-ke),pr=X*Math.sin(te-ke),Er=X*Math.cos(ee+ke),mr=X*Math.sin(ee+ke);var yt=Math.abs(ee-te+2*ke)<=qe?0:1;if(ke&&Zd(dr,pr,Er,mr)===1-Me^yt){var rr=(ee+te)/2;dr=X*Math.cos(rr),pr=X*Math.sin(rr),Er=mr=null}}else dr=pr=0;if(we>de&&(ae=Math.min(Math.abs($-X)/2,+A.apply(this,arguments)))>.001){he=X<$^Me?0:1;var Dr=ae,Pr=ae;if(we0?0:1}function Xd(h,g,A,q,L){var C=h[0]-g[0],I=h[1]-g[1],F=(L?q:-q)/Math.sqrt(C*C+I*I),H=F*I,X=-F*C,$=h[0]+H,ee=h[1]+X,te=g[0]+H,we=g[1]+X,Me=($+te)/2,ae=(ee+we)/2,he=te-$,ge=we-ee,Ae=he*he+ge*ge,ke=A-q,_e=$*we-te*ee,je=(ge<0?-1:1)*Math.sqrt(Math.max(0,ke*ke*Ae-_e*_e)),ir=(_e*ge-he*je)/Ae,fr=(-_e*he-ge*je)/Ae,or=(_e*ge+he*je)/Ae,dr=(-_e*he+ge*je)/Ae,pr=ir-Me,Er=fr-ae,mr=or-Me,kr=dr-ae;return pr*pr+Er*Er>mr*mr+kr*kr&&(ir=or,fr=dr),[[ir-H,fr-X],[ir*A/ke,fr*A/ke]]}function _A(){return!0}function wA(h){var g=hf,A=Dv,q=_A,L=ji,C=L.key,I=.7;function F(H){var X=[],$=[],ee=-1,te=H.length,we,Me=Br(g),ae=Br(A);function he(){X.push("M",L(h($),I))}for(;++ee1?h.join("L"):h+"Z"}function TA(h){return h.join("L")+"Z"}function xie(h){for(var g=0,A=h.length,q=h[0],L=[q[0],",",q[1]];++g1&&L.push("H",q[0]),L.join("")}function Y3(h){for(var g=0,A=h.length,q=h[0],L=[q[0],",",q[1]];++g1){F=g[1],C=h[H],H++,q+="C"+(L[0]+I[0])+","+(L[1]+I[1])+","+(C[0]-F[0])+","+(C[1]-F[1])+","+C[0]+","+C[1];for(var X=2;X9&&(C=A*3/Math.sqrt(C),I[F]=C*q,I[F+1]=C*L));for(F=-1;++F<=H;)C=(h[Math.min(H,F+1)][0]-h[Math.max(0,F-1)][0])/(6*(1+I[F]*I[F])),g.push([C||0,I[F]*C||0]);return g}function Lie(h){return h.length<3?ji(h):h[0]+Jd(h,qie(h))}e.svg.line.radial=function(){var h=wA(SA);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function SA(h){for(var g,A=-1,q=h.length,L,C;++Aqe)+",1 "+ee}function X($,ee,te,we){return"Q 0,0 "+we}return C.radius=function($){return arguments.length?(A=Br($),C):A},C.source=function($){return arguments.length?(h=Br($),C):h},C.target=function($){return arguments.length?(g=Br($),C):g},C.startAngle=function($){return arguments.length?(q=Br($),C):q},C.endAngle=function($){return arguments.length?(L=Br($),C):L},C};function Cie(h){return h.radius}e.svg.diagonal=function(){var h=LA,g=CA,A=EA;function q(L,C){var I=h.call(this,L,C),F=g.call(this,L,C),H=(I.y+F.y)/2,X=[I,{x:I.x,y:H},{x:F.x,y:H},F];return X=X.map(A),"M"+X[0]+"C"+X[1]+" "+X[2]+" "+X[3]}return q.source=function(L){return arguments.length?(h=Br(L),q):h},q.target=function(L){return arguments.length?(g=Br(L),q):g},q.projection=function(L){return arguments.length?(A=L,q):A},q};function EA(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),g=EA,A=h.projection;return h.projection=function(q){return arguments.length?A(Eie(g=q)):g},h};function Eie(h){return function(){var g=h.apply(this,arguments),A=g[0],q=g[1]-ur;return[A*Math.cos(q),A*Math.sin(q)]}}e.svg.symbol=function(){var h=Rie,g=Die;function A(q,L){return(RA.get(h.call(this,q,L))||DA)(g.call(this,q,L))}return A.type=function(q){return arguments.length?(h=Br(q),A):h},A.size=function(q){return arguments.length?(g=Br(q),A):g},A};function Die(){return 64}function Rie(){return"circle"}function DA(h){var g=Math.sqrt(h/qe);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var RA=e.map({circle:DA,cross:function(h){var g=Math.sqrt(h/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(h){var g=Math.sqrt(h/(2*PA)),A=g*PA;return"M0,"+-g+"L"+A+",0 0,"+g+" "+-A+",0Z"},square:function(h){var g=Math.sqrt(h)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(h){var g=Math.sqrt(h/$d),A=g*$d/2;return"M0,"+A+"L"+g+","+-A+" "+-g+","+-A+"Z"},"triangle-up":function(h){var g=Math.sqrt(h/$d),A=g*$d/2;return"M0,"+-A+"L"+g+","+A+" "+-g+","+A+"Z"}});e.svg.symbolTypes=RA.keys();var $d=Math.sqrt(3),PA=Math.tan(30*Ar);ce.transition=function(h){for(var g=Hs||++NA,A=J3(h),q=[],L,C,I=Qd||{time:Date.now(),ease:cne,delay:0,duration:250},F=-1,H=this.length;++F0;)ee[--Ae].call(h,ge);if(he>=1)return I.event&&I.event.end.call(h,h.__data__,g),--C.count?delete C[q]:delete h[A],1}I||(F=L.time,H=zd(te,0,F),I=C[q]={tween:new b,time:F,timer:H,delay:L.delay,duration:L.duration,ease:L.ease,index:g},L=null,++C.count)}e.svg.axis=function(){var h=e.scale.linear(),g=zA,A=6,q=6,L=3,C=[10],I=null,F;function H(X){X.each(function(){var $=e.select(this),ee=this.__chart__||h,te=this.__chart__=h.copy(),we=I==null?te.ticks?te.ticks.apply(te,C):te.domain():I,Me=F==null?te.tickFormat?te.tickFormat.apply(te,C):B:F,ae=$.selectAll(".tick").data(we,te),he=ae.enter().insert("g",".domain").attr("class","tick").style("opacity",de),ge=e.transition(ae.exit()).style("opacity",de).remove(),Ae=e.transition(ae.order()).style("opacity",1),ke=Math.max(A,0)+L,_e,je=Vd(te),ir=$.selectAll(".domain").data([0]),fr=(ir.enter().append("path").attr("class","domain"),e.transition(ir));he.append("line"),he.append("text");var or=he.select("line"),dr=Ae.select("line"),pr=ae.select("text").text(Me),Er=he.select("text"),mr=Ae.select("text"),kr=g==="top"||g==="left"?-1:1,tt,Jt,yt,rr;if(g==="bottom"||g==="top"?(_e=Nie,tt="x",yt="y",Jt="x2",rr="y2",pr.attr("dy",kr<0?"0em":".71em").style("text-anchor","middle"),fr.attr("d","M"+je[0]+","+kr*q+"V0H"+je[1]+"V"+kr*q)):(_e=zie,tt="y",yt="x",Jt="y2",rr="x2",pr.attr("dy",".32em").style("text-anchor",kr<0?"end":"start"),fr.attr("d","M"+kr*q+","+je[0]+"H0V"+je[1]+"H"+kr*q)),or.attr(rr,kr*A),Er.attr(yt,kr*ke),dr.attr(Jt,0).attr(rr,kr*A),mr.attr(tt,0).attr(yt,kr*ke),te.rangeBand){var Dr=te,Pr=Dr.rangeBand()/2;ee=te=function(at){return Dr(at)+Pr}}else ee.rangeBand?ee=te:ge.call(_e,te,ee);he.call(_e,ee,te),Ae.call(_e,te,te)})}return H.scale=function(X){return arguments.length?(h=X,H):h},H.orient=function(X){return arguments.length?(g=X in Fie?X+"":zA,H):g},H.ticks=function(){return arguments.length?(C=t(arguments),H):C},H.tickValues=function(X){return arguments.length?(I=X,H):I},H.tickFormat=function(X){return arguments.length?(F=X,H):F},H.tickSize=function(X){var $=arguments.length;return $?(A=+X,q=+arguments[$-1],H):A},H.innerTickSize=function(X){return arguments.length?(A=+X,H):A},H.outerTickSize=function(X){return arguments.length?(q=+X,H):q},H.tickPadding=function(X){return arguments.length?(L=+X,H):L},H.tickSubdivide=function(){return arguments.length&&H},H};var zA="bottom",Fie={top:1,right:1,bottom:1,left:1};function Nie(h,g,A){h.attr("transform",function(q){var L=g(q);return"translate("+(isFinite(L)?L:A(q))+",0)"})}function zie(h,g,A){h.attr("transform",function(q){var L=g(q);return"translate(0,"+(isFinite(L)?L:A(q))+")"})}e.svg.brush=function(){var h=ie($,"brushstart","brush","brushend"),g=null,A=null,q=[0,0],L=[0,0],C,I,F=!0,H=!0,X=$3[0];function $(ae){ae.each(function(){var he=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Me).on("touchstart.brush",Me),ge=he.selectAll(".background").data([0]);ge.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),he.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ae=he.selectAll(".resize").data(X,B);Ae.exit().remove(),Ae.enter().append("g").attr("class",function(ir){return"resize "+ir}).style("cursor",function(ir){return Iie[ir]}).append("rect").attr("x",function(ir){return/[ew]$/.test(ir)?-3:null}).attr("y",function(ir){return/^[ns]/.test(ir)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ae.style("display",$.empty()?"none":null);var ke=e.transition(he),_e=e.transition(ge),je;g&&(je=Vd(g),_e.attr("x",je[0]).attr("width",je[1]-je[0]),te(ke)),A&&(je=Vd(A),_e.attr("y",je[0]).attr("height",je[1]-je[0]),we(ke)),ee(ke)})}$.event=function(ae){ae.each(function(){var he=h.of(this,arguments),ge={x:q,y:L,i:C,j:I},Ae=this.__chart__||ge;this.__chart__=ge,Hs?e.select(this).transition().each("start.brush",function(){C=Ae.i,I=Ae.j,q=Ae.x,L=Ae.y,he({type:"brushstart"})}).tween("brush:brush",function(){var ke=Gd(q,ge.x),_e=Gd(L,ge.y);return C=I=null,function(je){q=ge.x=ke(je),L=ge.y=_e(je),he({type:"brush",mode:"resize"})}}).each("end.brush",function(){C=ge.i,I=ge.j,he({type:"brush",mode:"resize"}),he({type:"brushend"})}):(he({type:"brushstart"}),he({type:"brush",mode:"resize"}),he({type:"brushend"}))})};function ee(ae){ae.selectAll(".resize").attr("transform",function(he){return"translate("+q[+/e$/.test(he)]+","+L[+/^s/.test(he)]+")"})}function te(ae){ae.select(".extent").attr("x",q[0]),ae.selectAll(".extent,.n>rect,.s>rect").attr("width",q[1]-q[0])}function we(ae){ae.select(".extent").attr("y",L[0]),ae.selectAll(".extent,.e>rect,.w>rect").attr("height",L[1]-L[0])}function Me(){var ae=this,he=e.select(e.event.target),ge=h.of(ae,arguments),Ae=e.select(ae),ke=he.datum(),_e=!/^(n|s)$/.test(ke)&&g,je=!/^(e|w)$/.test(ke)&&A,ir=he.classed("extent"),fr=cr(ae),or,dr=e.mouse(ae),pr,Er=e.select(i(ae)).on("keydown.brush",tt).on("keyup.brush",Jt);if(e.event.changedTouches?Er.on("touchmove.brush",yt).on("touchend.brush",Dr):Er.on("mousemove.brush",yt).on("mouseup.brush",Dr),Ae.interrupt().selectAll("*").interrupt(),ir)dr[0]=q[0]-dr[0],dr[1]=L[0]-dr[1];else if(ke){var mr=+/w$/.test(ke),kr=+/^n/.test(ke);pr=[q[1-mr]-dr[0],L[1-kr]-dr[1]],dr[0]=q[mr],dr[1]=L[kr]}else e.event.altKey&&(or=dr.slice());Ae.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",he.style("cursor")),ge({type:"brushstart"}),yt();function tt(){e.event.keyCode==32&&(ir||(or=null,dr[0]-=q[1],dr[1]-=L[1],ir=2),re())}function Jt(){e.event.keyCode==32&&ir==2&&(dr[0]+=q[1],dr[1]+=L[1],ir=0,re())}function yt(){var Pr=e.mouse(ae),at=!1;pr&&(Pr[0]+=pr[0],Pr[1]+=pr[1]),ir||(e.event.altKey?(or||(or=[(q[0]+q[1])/2,(L[0]+L[1])/2]),dr[0]=q[+(Pr[0]{(function(e,r){typeof ip=="object"&&typeof YA!="undefined"?r(ip):(e=e||self,r(e.d3=e.d3||{}))})(ip,function(e){"use strict";var r=new Date,t=new Date;function a(le,Te,Se,nr){function Ke(Le){return le(Le=arguments.length===0?new Date:new Date(+Le)),Le}return Ke.floor=function(Le){return le(Le=new Date(+Le)),Le},Ke.ceil=function(Le){return le(Le=new Date(Le-1)),Te(Le,1),le(Le),Le},Ke.round=function(Le){var Ce=Ke(Le),Ye=Ke.ceil(Le);return Le-Ce0))return Xe;do Xe.push(Ve=new Date(+Le)),Te(Le,Ye),le(Le);while(Ve=Ce)for(;le(Ce),!Le(Ce);)Ce.setTime(Ce-1)},function(Ce,Ye){if(Ce>=Ce)if(Ye<0)for(;++Ye<=0;)for(;Te(Ce,-1),!Le(Ce););else for(;--Ye>=0;)for(;Te(Ce,1),!Le(Ce););})},Se&&(Ke.count=function(Le,Ce){return r.setTime(+Le),t.setTime(+Ce),le(r),le(t),Math.floor(Se(r,t))},Ke.every=function(Le){return Le=Math.floor(Le),!isFinite(Le)||!(Le>0)?null:Le>1?Ke.filter(nr?function(Ce){return nr(Ce)%Le===0}:function(Ce){return Ke.count(0,Ce)%Le===0}):Ke}),Ke}var n=a(function(){},function(le,Te){le.setTime(+le+Te)},function(le,Te){return Te-le});n.every=function(le){return le=Math.floor(le),!isFinite(le)||!(le>0)?null:le>1?a(function(Te){Te.setTime(Math.floor(Te/le)*le)},function(Te,Se){Te.setTime(+Te+Se*le)},function(Te,Se){return(Se-Te)/le}):n};var i=n.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(le){le.setTime(le-le.getMilliseconds())},function(le,Te){le.setTime(+le+Te*o)},function(le,Te){return(Te-le)/o},function(le){return le.getUTCSeconds()}),v=c.range,d=a(function(le){le.setTime(le-le.getMilliseconds()-le.getSeconds()*o)},function(le,Te){le.setTime(+le+Te*l)},function(le,Te){return(Te-le)/l},function(le){return le.getMinutes()}),p=d.range,m=a(function(le){le.setTime(le-le.getMilliseconds()-le.getSeconds()*o-le.getMinutes()*l)},function(le,Te){le.setTime(+le+Te*s)},function(le,Te){return(Te-le)/s},function(le){return le.getHours()}),y=m.range,x=a(function(le){le.setHours(0,0,0,0)},function(le,Te){le.setDate(le.getDate()+Te)},function(le,Te){return(Te-le-(Te.getTimezoneOffset()-le.getTimezoneOffset())*l)/u},function(le){return le.getDate()-1}),w=x.range;function _(le){return a(function(Te){Te.setDate(Te.getDate()-(Te.getDay()+7-le)%7),Te.setHours(0,0,0,0)},function(Te,Se){Te.setDate(Te.getDate()+Se*7)},function(Te,Se){return(Se-Te-(Se.getTimezoneOffset()-Te.getTimezoneOffset())*l)/f})}var b=_(0),T=_(1),k=_(2),M=_(3),S=_(4),E=_(5),D=_(6),P=b.range,R=T.range,z=k.range,O=M.range,B=S.range,V=E.range,G=D.range,U=a(function(le){le.setDate(1),le.setHours(0,0,0,0)},function(le,Te){le.setMonth(le.getMonth()+Te)},function(le,Te){return Te.getMonth()-le.getMonth()+(Te.getFullYear()-le.getFullYear())*12},function(le){return le.getMonth()}),Y=U.range,J=a(function(le){le.setMonth(0,1),le.setHours(0,0,0,0)},function(le,Te){le.setFullYear(le.getFullYear()+Te)},function(le,Te){return Te.getFullYear()-le.getFullYear()},function(le){return le.getFullYear()});J.every=function(le){return!isFinite(le=Math.floor(le))||!(le>0)?null:a(function(Te){Te.setFullYear(Math.floor(Te.getFullYear()/le)*le),Te.setMonth(0,1),Te.setHours(0,0,0,0)},function(Te,Se){Te.setFullYear(Te.getFullYear()+Se*le)})};var Z=J.range,re=a(function(le){le.setUTCSeconds(0,0)},function(le,Te){le.setTime(+le+Te*l)},function(le,Te){return(Te-le)/l},function(le){return le.getUTCMinutes()}),fe=re.range,ie=a(function(le){le.setUTCMinutes(0,0,0)},function(le,Te){le.setTime(+le+Te*s)},function(le,Te){return(Te-le)/s},function(le){return le.getUTCHours()}),ue=ie.range,K=a(function(le){le.setUTCHours(0,0,0,0)},function(le,Te){le.setUTCDate(le.getUTCDate()+Te)},function(le,Te){return(Te-le)/u},function(le){return le.getUTCDate()-1}),ye=K.range;function se(le){return a(function(Te){Te.setUTCDate(Te.getUTCDate()-(Te.getUTCDay()+7-le)%7),Te.setUTCHours(0,0,0,0)},function(Te,Se){Te.setUTCDate(Te.getUTCDate()+Se*7)},function(Te,Se){return(Se-Te)/f})}var ve=se(0),oe=se(1),ce=se(2),j=se(3),Q=se(4),W=se(5),pe=se(6),be=ve.range,me=oe.range,Fe=ce.range,ze=j.range,Re=Q.range,Ne=W.range,Ue=pe.range,He=a(function(le){le.setUTCDate(1),le.setUTCHours(0,0,0,0)},function(le,Te){le.setUTCMonth(le.getUTCMonth()+Te)},function(le,Te){return Te.getUTCMonth()-le.getUTCMonth()+(Te.getUTCFullYear()-le.getUTCFullYear())*12},function(le){return le.getUTCMonth()}),Pe=He.range,Oe=a(function(le){le.setUTCMonth(0,1),le.setUTCHours(0,0,0,0)},function(le,Te){le.setUTCFullYear(le.getUTCFullYear()+Te)},function(le,Te){return Te.getUTCFullYear()-le.getUTCFullYear()},function(le){return le.getUTCFullYear()});Oe.every=function(le){return!isFinite(le=Math.floor(le))||!(le>0)?null:a(function(Te){Te.setUTCFullYear(Math.floor(Te.getUTCFullYear()/le)*le),Te.setUTCMonth(0,1),Te.setUTCHours(0,0,0,0)},function(Te,Se){Te.setUTCFullYear(Te.getUTCFullYear()+Se*le)})};var Be=Oe.range;e.timeDay=x,e.timeDays=w,e.timeFriday=E,e.timeFridays=V,e.timeHour=m,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=T,e.timeMondays=R,e.timeMonth=U,e.timeMonths=Y,e.timeSaturday=D,e.timeSaturdays=G,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=b,e.timeSundays=P,e.timeThursday=S,e.timeThursdays=B,e.timeTuesday=k,e.timeTuesdays=z,e.timeWednesday=M,e.timeWednesdays=O,e.timeWeek=b,e.timeWeeks=P,e.timeYear=J,e.timeYears=Z,e.utcDay=K,e.utcDays=ye,e.utcFriday=W,e.utcFridays=Ne,e.utcHour=ie,e.utcHours=ue,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=re,e.utcMinutes=fe,e.utcMonday=oe,e.utcMondays=me,e.utcMonth=He,e.utcMonths=Pe,e.utcSaturday=pe,e.utcSaturdays=Ue,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=ve,e.utcSundays=be,e.utcThursday=Q,e.utcThursdays=Re,e.utcTuesday=ce,e.utcTuesdays=Fe,e.utcWednesday=j,e.utcWednesdays=ze,e.utcWeek=ve,e.utcWeeks=be,e.utcYear=Oe,e.utcYears=Be,Object.defineProperty(e,"__esModule",{value:!0})})});var xf=N((op,VA)=>{(function(e,r){typeof op=="object"&&typeof VA!="undefined"?r(op,K3()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(op,function(e,r){"use strict";function t(ne){if(0<=ne.y&&ne.y<100){var de=new Date(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L);return de.setFullYear(ne.y),de}return new Date(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L)}function a(ne){if(0<=ne.y&&ne.y<100){var de=new Date(Date.UTC(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L));return de.setUTCFullYear(ne.y),de}return new Date(Date.UTC(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L))}function n(ne,de,De){return{y:ne,m:de,d:De,H:0,M:0,S:0,L:0}}function i(ne){var de=ne.dateTime,De=ne.date,qe=ne.time,ar=ne.periods,hr=ne.days,ur=ne.shortDays,Ar=ne.months,jr=ne.shortMonths,Vr=v(ar),zr=d(ar),Et=v(hr),Dt=d(hr),ma=v(ur),St=d(ur),Wa=v(Ar),ga=d(Ar),Wt=v(jr),Na=d(jr),br={a:Ko,A:Qo,b:vt,B:Tn,c:null,d:U,e:U,f:fe,H:Y,I:J,j:Z,L:re,m:ie,M:ue,p:Pt,q:zs,Q:Ce,s:Ye,S:K,u:ye,U:se,V:ve,w:oe,W:ce,x:null,X:null,y:j,Y:Q,Z:W,"%":Le},pt={a:pn,A:Gi,b:Ut,B:Yi,c:null,d:pe,e:pe,f:Re,H:be,I:me,j:Fe,L:ze,m:Ne,M:Ue,p:Rl,q:Pl,Q:Ce,s:Ye,S:He,u:Pe,U:Oe,V:Be,w:le,W:Te,x:null,X:null,y:Se,Y:nr,Z:Ke,"%":Le},Nr={a:ba,A:Zt,b:tn,B:wn,c:Xt,d:S,e:S,f:O,H:D,I:D,j:E,L:z,m:M,M:P,p:ct,q:k,Q:V,s:G,S:R,u:m,U:y,V:x,w:p,W:w,x:ft,X:xa,y:b,Y:_,Z:T,"%":B};br.x=ut(De,br),br.X=ut(qe,br),br.c=ut(de,br),pt.x=ut(De,pt),pt.X=ut(qe,pt),pt.c=ut(de,pt);function ut(yr,$r){return function(ht){var sr=[],za=-1,Tt=0,Ia=yr.length,Br,Vi,Is;for(ht instanceof Date||(ht=new Date(+ht));++za53)return null;"w"in sr||(sr.w=1),"Z"in sr?(Tt=a(n(sr.y,0,1)),Ia=Tt.getUTCDay(),Tt=Ia>4||Ia===0?r.utcMonday.ceil(Tt):r.utcMonday(Tt),Tt=r.utcDay.offset(Tt,(sr.V-1)*7),sr.y=Tt.getUTCFullYear(),sr.m=Tt.getUTCMonth(),sr.d=Tt.getUTCDate()+(sr.w+6)%7):(Tt=t(n(sr.y,0,1)),Ia=Tt.getDay(),Tt=Ia>4||Ia===0?r.timeMonday.ceil(Tt):r.timeMonday(Tt),Tt=r.timeDay.offset(Tt,(sr.V-1)*7),sr.y=Tt.getFullYear(),sr.m=Tt.getMonth(),sr.d=Tt.getDate()+(sr.w+6)%7)}else("W"in sr||"U"in sr)&&("w"in sr||(sr.w="u"in sr?sr.u%7:"W"in sr?1:0),Ia="Z"in sr?a(n(sr.y,0,1)).getUTCDay():t(n(sr.y,0,1)).getDay(),sr.m=0,sr.d="W"in sr?(sr.w+6)%7+sr.W*7-(Ia+5)%7:sr.w+sr.U*7-(Ia+6)%7);return"Z"in sr?(sr.H+=sr.Z/100|0,sr.M+=sr.Z%100,a(sr)):t(sr)}}function Qr(yr,$r,ht,sr){for(var za=0,Tt=$r.length,Ia=ht.length,Br,Vi;za=Ia)return-1;if(Br=$r.charCodeAt(za++),Br===37){if(Br=$r.charAt(za++),Vi=Nr[Br in o?$r.charAt(za++):Br],!Vi||(sr=Vi(yr,ht,sr))<0)return-1}else if(Br!=ht.charCodeAt(sr++))return-1}return sr}function ct(yr,$r,ht){var sr=Vr.exec($r.slice(ht));return sr?(yr.p=zr[sr[0].toLowerCase()],ht+sr[0].length):-1}function ba(yr,$r,ht){var sr=ma.exec($r.slice(ht));return sr?(yr.w=St[sr[0].toLowerCase()],ht+sr[0].length):-1}function Zt(yr,$r,ht){var sr=Et.exec($r.slice(ht));return sr?(yr.w=Dt[sr[0].toLowerCase()],ht+sr[0].length):-1}function tn(yr,$r,ht){var sr=Wt.exec($r.slice(ht));return sr?(yr.m=Na[sr[0].toLowerCase()],ht+sr[0].length):-1}function wn(yr,$r,ht){var sr=Wa.exec($r.slice(ht));return sr?(yr.m=ga[sr[0].toLowerCase()],ht+sr[0].length):-1}function Xt(yr,$r,ht){return Qr(yr,de,$r,ht)}function ft(yr,$r,ht){return Qr(yr,De,$r,ht)}function xa(yr,$r,ht){return Qr(yr,qe,$r,ht)}function Ko(yr){return ur[yr.getDay()]}function Qo(yr){return hr[yr.getDay()]}function vt(yr){return jr[yr.getMonth()]}function Tn(yr){return Ar[yr.getMonth()]}function Pt(yr){return ar[+(yr.getHours()>=12)]}function zs(yr){return 1+~~(yr.getMonth()/3)}function pn(yr){return ur[yr.getUTCDay()]}function Gi(yr){return hr[yr.getUTCDay()]}function Ut(yr){return jr[yr.getUTCMonth()]}function Yi(yr){return Ar[yr.getUTCMonth()]}function Rl(yr){return ar[+(yr.getUTCHours()>=12)]}function Pl(yr){return 1+~~(yr.getUTCMonth()/3)}return{format:function(yr){var $r=ut(yr+="",br);return $r.toString=function(){return yr},$r},parse:function(yr){var $r=Rt(yr+="",!1);return $r.toString=function(){return yr},$r},utcFormat:function(yr){var $r=ut(yr+="",pt);return $r.toString=function(){return yr},$r},utcParse:function(yr){var $r=Rt(yr+="",!0);return $r.toString=function(){return yr},$r}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ne,de,De){var qe=ne<0?"-":"",ar=(qe?-ne:ne)+"",hr=ar.length;return qe+(hr68?1900:2e3),De+qe[0].length):-1}function T(ne,de,De){var qe=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(de.slice(De,De+6));return qe?(ne.Z=qe[1]?0:-(qe[2]+(qe[3]||"00")),De+qe[0].length):-1}function k(ne,de,De){var qe=l.exec(de.slice(De,De+1));return qe?(ne.q=qe[0]*3-3,De+qe[0].length):-1}function M(ne,de,De){var qe=l.exec(de.slice(De,De+2));return qe?(ne.m=qe[0]-1,De+qe[0].length):-1}function S(ne,de,De){var qe=l.exec(de.slice(De,De+2));return qe?(ne.d=+qe[0],De+qe[0].length):-1}function E(ne,de,De){var qe=l.exec(de.slice(De,De+3));return qe?(ne.m=0,ne.d=+qe[0],De+qe[0].length):-1}function D(ne,de,De){var qe=l.exec(de.slice(De,De+2));return qe?(ne.H=+qe[0],De+qe[0].length):-1}function P(ne,de,De){var qe=l.exec(de.slice(De,De+2));return qe?(ne.M=+qe[0],De+qe[0].length):-1}function R(ne,de,De){var qe=l.exec(de.slice(De,De+2));return qe?(ne.S=+qe[0],De+qe[0].length):-1}function z(ne,de,De){var qe=l.exec(de.slice(De,De+3));return qe?(ne.L=+qe[0],De+qe[0].length):-1}function O(ne,de,De){var qe=l.exec(de.slice(De,De+6));return qe?(ne.L=Math.floor(qe[0]/1e3),De+qe[0].length):-1}function B(ne,de,De){var qe=s.exec(de.slice(De,De+1));return qe?De+qe[0].length:-1}function V(ne,de,De){var qe=l.exec(de.slice(De));return qe?(ne.Q=+qe[0],De+qe[0].length):-1}function G(ne,de,De){var qe=l.exec(de.slice(De));return qe?(ne.s=+qe[0],De+qe[0].length):-1}function U(ne,de){return f(ne.getDate(),de,2)}function Y(ne,de){return f(ne.getHours(),de,2)}function J(ne,de){return f(ne.getHours()%12||12,de,2)}function Z(ne,de){return f(1+r.timeDay.count(r.timeYear(ne),ne),de,3)}function re(ne,de){return f(ne.getMilliseconds(),de,3)}function fe(ne,de){return re(ne,de)+"000"}function ie(ne,de){return f(ne.getMonth()+1,de,2)}function ue(ne,de){return f(ne.getMinutes(),de,2)}function K(ne,de){return f(ne.getSeconds(),de,2)}function ye(ne){var de=ne.getDay();return de===0?7:de}function se(ne,de){return f(r.timeSunday.count(r.timeYear(ne)-1,ne),de,2)}function ve(ne,de){var De=ne.getDay();return ne=De>=4||De===0?r.timeThursday(ne):r.timeThursday.ceil(ne),f(r.timeThursday.count(r.timeYear(ne),ne)+(r.timeYear(ne).getDay()===4),de,2)}function oe(ne){return ne.getDay()}function ce(ne,de){return f(r.timeMonday.count(r.timeYear(ne)-1,ne),de,2)}function j(ne,de){return f(ne.getFullYear()%100,de,2)}function Q(ne,de){return f(ne.getFullYear()%1e4,de,4)}function W(ne){var de=ne.getTimezoneOffset();return(de>0?"-":(de*=-1,"+"))+f(de/60|0,"0",2)+f(de%60,"0",2)}function pe(ne,de){return f(ne.getUTCDate(),de,2)}function be(ne,de){return f(ne.getUTCHours(),de,2)}function me(ne,de){return f(ne.getUTCHours()%12||12,de,2)}function Fe(ne,de){return f(1+r.utcDay.count(r.utcYear(ne),ne),de,3)}function ze(ne,de){return f(ne.getUTCMilliseconds(),de,3)}function Re(ne,de){return ze(ne,de)+"000"}function Ne(ne,de){return f(ne.getUTCMonth()+1,de,2)}function Ue(ne,de){return f(ne.getUTCMinutes(),de,2)}function He(ne,de){return f(ne.getUTCSeconds(),de,2)}function Pe(ne){var de=ne.getUTCDay();return de===0?7:de}function Oe(ne,de){return f(r.utcSunday.count(r.utcYear(ne)-1,ne),de,2)}function Be(ne,de){var De=ne.getUTCDay();return ne=De>=4||De===0?r.utcThursday(ne):r.utcThursday.ceil(ne),f(r.utcThursday.count(r.utcYear(ne),ne)+(r.utcYear(ne).getUTCDay()===4),de,2)}function le(ne){return ne.getUTCDay()}function Te(ne,de){return f(r.utcMonday.count(r.utcYear(ne)-1,ne),de,2)}function Se(ne,de){return f(ne.getUTCFullYear()%100,de,2)}function nr(ne,de){return f(ne.getUTCFullYear()%1e4,de,4)}function Ke(){return"+0000"}function Le(){return"%"}function Ce(ne){return+ne}function Ye(ne){return Math.floor(+ne/1e3)}var Xe;Ve({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ve(ne){return Xe=i(ne),e.timeFormat=Xe.format,e.timeParse=Xe.parse,e.utcFormat=Xe.utcFormat,e.utcParse=Xe.utcParse,Xe}var Ge="%Y-%m-%dT%H:%M:%S.%LZ";function $e(ne){return ne.toISOString()}var cr=Date.prototype.toISOString?$e:e.utcFormat(Ge);function lr(ne){var de=new Date(ne);return isNaN(de)?null:de}var Ie=+new Date("2000-01-01T00:00:00.000Z")?lr:e.utcParse(Ge);e.isoFormat=cr,e.isoParse=Ie,e.timeFormatDefaultLocale=Ve,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Q3=N((lp,jA)=>{(function(e,r){typeof lp=="object"&&typeof jA!="undefined"?r(lp):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(lp,function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,S){if((E=(M=S?M.toExponential(S-1):M.toExponential()).indexOf("e"))<0)return null;var E,D=M.slice(0,E);return[D.length>1?D[0]+D.slice(2):D,+M.slice(E+1)]}function a(M){return M=t(Math.abs(M)),M?M[1]:NaN}function n(M,S){return function(E,D){for(var P=E.length,R=[],z=0,O=M[0],B=0;P>0&&O>0&&(B+O+1>D&&(O=Math.max(1,D-B)),R.push(E.substring(P-=O,P+O)),!((B+=O+1)>D));)O=M[z=(z+1)%M.length];return R.reverse().join(S)}}function i(M){return function(S){return S.replace(/[0-9]/g,function(E){return M[+E]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(S=o.exec(M)))throw new Error("invalid format: "+M);var S;return new s({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(M){e:for(var S=M.length,E=1,D=-1,P;E0&&(D=0);break}return D>0?M.slice(0,D)+M.slice(P+1):M}var f;function c(M,S){var E=t(M,S);if(!E)return M+"";var D=E[0],P=E[1],R=P-(f=Math.max(-8,Math.min(8,Math.floor(P/3)))*3)+1,z=D.length;return R===z?D:R>z?D+new Array(R-z+1).join("0"):R>0?D.slice(0,R)+"."+D.slice(R):"0."+new Array(1-R).join("0")+t(M,Math.max(0,S+R-1))[0]}function v(M,S){var E=t(M,S);if(!E)return M+"";var D=E[0],P=E[1];return P<0?"0."+new Array(-P).join("0")+D:D.length>P+1?D.slice(0,P+1)+"."+D.slice(P+1):D+new Array(P-D.length+2).join("0")}var d={"%":function(M,S){return(M*100).toFixed(S)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,S){return M.toExponential(S)},f:function(M,S){return M.toFixed(S)},g:function(M,S){return M.toPrecision(S)},o:function(M){return Math.round(M).toString(8)},p:function(M,S){return v(M*100,S)},r:v,s:c,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function p(M){return M}var m=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function x(M){var S=M.grouping===void 0||M.thousands===void 0?p:n(m.call(M.grouping,Number),M.thousands+""),E=M.currency===void 0?"":M.currency[0]+"",D=M.currency===void 0?"":M.currency[1]+"",P=M.decimal===void 0?".":M.decimal+"",R=M.numerals===void 0?p:i(m.call(M.numerals,String)),z=M.percent===void 0?"%":M.percent+"",O=M.minus===void 0?"-":M.minus+"",B=M.nan===void 0?"NaN":M.nan+"";function V(U){U=l(U);var Y=U.fill,J=U.align,Z=U.sign,re=U.symbol,fe=U.zero,ie=U.width,ue=U.comma,K=U.precision,ye=U.trim,se=U.type;se==="n"?(ue=!0,se="g"):d[se]||(K===void 0&&(K=12),ye=!0,se="g"),(fe||Y==="0"&&J==="=")&&(fe=!0,Y="0",J="=");var ve=re==="$"?E:re==="#"&&/[boxX]/.test(se)?"0"+se.toLowerCase():"",oe=re==="$"?D:/[%p]/.test(se)?z:"",ce=d[se],j=/[defgprs%]/.test(se);K=K===void 0?6:/[gprs]/.test(se)?Math.max(1,Math.min(21,K)):Math.max(0,Math.min(20,K));function Q(W){var pe=ve,be=oe,me,Fe,ze;if(se==="c")be=ce(W)+be,W="";else{W=+W;var Re=W<0||1/W<0;if(W=isNaN(W)?B:ce(Math.abs(W),K),ye&&(W=u(W)),Re&&+W==0&&Z!=="+"&&(Re=!1),pe=(Re?Z==="("?Z:O:Z==="-"||Z==="("?"":Z)+pe,be=(se==="s"?y[8+f/3]:"")+be+(Re&&Z==="("?")":""),j){for(me=-1,Fe=W.length;++meze||ze>57){be=(ze===46?P+W.slice(me+1):W.slice(me))+be,W=W.slice(0,me);break}}}ue&&!fe&&(W=S(W,1/0));var Ne=pe.length+W.length+be.length,Ue=Ne>1)+pe+W+be+Ue.slice(Ne);break;default:W=Ue+pe+W+be;break}return R(W)}return Q.toString=function(){return U+""},Q}function G(U,Y){var J=V((U=l(U),U.type="f",U)),Z=Math.max(-8,Math.min(8,Math.floor(a(Y)/3)))*3,re=Math.pow(10,-Z),fe=y[8+Z/3];return function(ie){return J(re*ie)+fe}}return{format:V,formatPrefix:G}}var w;_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function _(M){return w=x(M),e.format=w.format,e.formatPrefix=w.formatPrefix,w}function b(M){return Math.max(0,-a(Math.abs(M)))}function T(M,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(S)/3)))*3-a(Math.abs(M)))}function k(M,S){return M=Math.abs(M),S=Math.abs(S)-M,Math.max(0,a(S)-a(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=_,e.formatLocale=x,e.formatSpecifier=l,e.precisionFixed=b,e.precisionPrefix=T,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})})});var ZA=N((rCe,WA)=>{"use strict";WA.exports=function(e){for(var r=e.length,t,a=0;a13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var Rr=N((tCe,XA)=>{"use strict";var Wie=ZA();XA.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&Wie(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Ft=N((aCe,JA)=>{"use strict";JA.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var eb=N((sp,$A)=>{(function(e,r){typeof sp=="object"&&typeof $A!="undefined"?r(sp):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(sp,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,c,v,d,p;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var m=new ArrayBuffer(l),y=new Uint8Array(m);for(u=0;u>4,y[f++]=(v&15)<<4|d>>2,y[f++]=(d&3)<<6|p&63;return m};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})})});var zl=N((nCe,KA)=>{"use strict";KA.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var Vn=N(Zi=>{"use strict";var Zie=eb().decode,Xie=zl(),rb=Array.isArray,Jie=ArrayBuffer,$ie=DataView;function QA(e){return Jie.isView(e)&&!(e instanceof $ie)}Zi.isTypedArray=QA;function up(e){return rb(e)||QA(e)}Zi.isArrayOrTypedArray=up;function Kie(e){return!up(e[0])}Zi.isArray1D=Kie;Zi.ensureArray=function(e,r){return rb(e)||(e=[]),e.length=r,e};var qa={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};qa.uint8c=qa.u1c;qa.uint8=qa.u1;qa.int8=qa.i1;qa.uint16=qa.u2;qa.int16=qa.i2;qa.uint32=qa.u4;qa.int32=qa.i4;qa.float32=qa.f4;qa.float64=qa.f8;function tb(e){return e.constructor===ArrayBuffer}Zi.isArrayBuffer=tb;Zi.decodeTypedArraySpec=function(e){var r=[],t=Qie(e),a=t.dtype,n=qa[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;tb(o)||(o=Zie(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,c=+l[0],v=i*c,d=0;if(s===1)r=new n(o);else if(s===2)for(u=+l[1],f=0;f{"use strict";var rM=Rr(),nb=Vn().isArrayOrTypedArray;iM.exports=function(r,t){if(rM(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,o,l;for(l=0;l{"use strict";var _f=fp(),noe=/^\w*$/,ioe=0,oM=1,cp=2,lM=3,Ys=4;sM.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=_f(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i2)return s[d]=s[d]|cp,c.set(v,null);if(f){for(i=d;i{"use strict";var ooe=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,loe=/^[^\.\[\]]+$/;fM.exports=function(e,r){for(;r;){var t=e.match(ooe);if(t)e=t[1];else if(e.match(loe))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 vp=N((uCe,vM)=>{"use strict";var soe=Rr();vM.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 soe(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var pM=N((fCe,dM)=>{"use strict";var hM=Vn().isArrayOrTypedArray,Hv=zl();dM.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(hM(n)&&hM(i)&&Hv(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;l{"use strict";function uoe(e,r){var t=e%r;return t<0?t+r:t}function foe(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}yM.exports={mod:uoe,modHalf:foe}});var kn=N((vCe,hp)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,o=e.max,l=e.random;function s(j,Q){if(j=j||"",Q=Q||{},j instanceof s)return j;if(!(this instanceof s))return new s(j,Q);var W=u(j);this._originalInput=j,this._r=W.r,this._g=W.g,this._b=W.b,this._a=W.a,this._roundA=n(100*this._a)/100,this._format=Q.format||W.format,this._gradientType=Q.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=W.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 j=this.toRgb();return(j.r*299+j.g*587+j.b*114)/1e3},getLuminance:function(){var j=this.toRgb(),Q,W,pe,be,me,Fe;return Q=j.r/255,W=j.g/255,pe=j.b/255,Q<=.03928?be=Q/12.92:be=e.pow((Q+.055)/1.055,2.4),W<=.03928?me=W/12.92:me=e.pow((W+.055)/1.055,2.4),pe<=.03928?Fe=pe/12.92:Fe=e.pow((pe+.055)/1.055,2.4),.2126*be+.7152*me+.0722*Fe},setAlpha:function(j){return this._a=U(j),this._roundA=n(100*this._a)/100,this},toHsv:function(){var j=d(this._r,this._g,this._b);return{h:j.h*360,s:j.s,v:j.v,a:this._a}},toHsvString:function(){var j=d(this._r,this._g,this._b),Q=n(j.h*360),W=n(j.s*100),pe=n(j.v*100);return this._a==1?"hsv("+Q+", "+W+"%, "+pe+"%)":"hsva("+Q+", "+W+"%, "+pe+"%, "+this._roundA+")"},toHsl:function(){var j=c(this._r,this._g,this._b);return{h:j.h*360,s:j.s,l:j.l,a:this._a}},toHslString:function(){var j=c(this._r,this._g,this._b),Q=n(j.h*360),W=n(j.s*100),pe=n(j.l*100);return this._a==1?"hsl("+Q+", "+W+"%, "+pe+"%)":"hsla("+Q+", "+W+"%, "+pe+"%, "+this._roundA+")"},toHex:function(j){return m(this._r,this._g,this._b,j)},toHexString:function(j){return"#"+this.toHex(j)},toHex8:function(j){return y(this._r,this._g,this._b,this._a,j)},toHex8String:function(j){return"#"+this.toHex8(j)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(Y(this._r,255)*100)+"%",g:n(Y(this._g,255)*100)+"%",b:n(Y(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(Y(this._r,255)*100)+"%, "+n(Y(this._g,255)*100)+"%, "+n(Y(this._b,255)*100)+"%)":"rgba("+n(Y(this._r,255)*100)+"%, "+n(Y(this._g,255)*100)+"%, "+n(Y(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:V[m(this._r,this._g,this._b,!0)]||!1},toFilter:function(j){var Q="#"+x(this._r,this._g,this._b,this._a),W=Q,pe=this._gradientType?"GradientType = 1, ":"";if(j){var be=s(j);W="#"+x(be._r,be._g,be._b,be._a)}return"progid:DXImageTransform.Microsoft.gradient("+pe+"startColorstr="+Q+",endColorstr="+W+")"},toString:function(j){var Q=!!j;j=j||this._format;var W=!1,pe=this._a<1&&this._a>=0,be=!Q&&pe&&(j==="hex"||j==="hex6"||j==="hex3"||j==="hex4"||j==="hex8"||j==="name");return be?j==="name"&&this._a===0?this.toName():this.toRgbString():(j==="rgb"&&(W=this.toRgbString()),j==="prgb"&&(W=this.toPercentageRgbString()),(j==="hex"||j==="hex6")&&(W=this.toHexString()),j==="hex3"&&(W=this.toHexString(!0)),j==="hex4"&&(W=this.toHex8String(!0)),j==="hex8"&&(W=this.toHex8String()),j==="name"&&(W=this.toName()),j==="hsl"&&(W=this.toHslString()),j==="hsv"&&(W=this.toHsvString()),W||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(j,Q){var W=j.apply(null,[this].concat([].slice.call(Q)));return this._r=W._r,this._g=W._g,this._b=W._b,this.setAlpha(W._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(j,Q){return j.apply(null,[this].concat([].slice.call(Q)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(O,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(D,arguments)},tetrad:function(){return this._applyCombination(P,arguments)}},s.fromRatio=function(j,Q){if(typeof j=="object"){var W={};for(var pe in j)j.hasOwnProperty(pe)&&(pe==="a"?W[pe]=j[pe]:W[pe]=ue(j[pe]));j=W}return s(j,Q)};function u(j){var Q={r:0,g:0,b:0},W=1,pe=null,be=null,me=null,Fe=!1,ze=!1;return typeof j=="string"&&(j=oe(j)),typeof j=="object"&&(ve(j.r)&&ve(j.g)&&ve(j.b)?(Q=f(j.r,j.g,j.b),Fe=!0,ze=String(j.r).substr(-1)==="%"?"prgb":"rgb"):ve(j.h)&&ve(j.s)&&ve(j.v)?(pe=ue(j.s),be=ue(j.v),Q=p(j.h,pe,be),Fe=!0,ze="hsv"):ve(j.h)&&ve(j.s)&&ve(j.l)&&(pe=ue(j.s),me=ue(j.l),Q=v(j.h,pe,me),Fe=!0,ze="hsl"),j.hasOwnProperty("a")&&(W=j.a)),W=U(W),{ok:Fe,format:j.format||ze,r:i(255,o(Q.r,0)),g:i(255,o(Q.g,0)),b:i(255,o(Q.b,0)),a:W}}function f(j,Q,W){return{r:Y(j,255)*255,g:Y(Q,255)*255,b:Y(W,255)*255}}function c(j,Q,W){j=Y(j,255),Q=Y(Q,255),W=Y(W,255);var pe=o(j,Q,W),be=i(j,Q,W),me,Fe,ze=(pe+be)/2;if(pe==be)me=Fe=0;else{var Re=pe-be;switch(Fe=ze>.5?Re/(2-pe-be):Re/(pe+be),pe){case j:me=(Q-W)/Re+(Q1&&(He-=1),He<1/6?Ne+(Ue-Ne)*6*He:He<1/2?Ue:He<2/3?Ne+(Ue-Ne)*(2/3-He)*6:Ne}if(Q===0)pe=be=me=W;else{var ze=W<.5?W*(1+Q):W+Q-W*Q,Re=2*W-ze;pe=Fe(Re,ze,j+1/3),be=Fe(Re,ze,j),me=Fe(Re,ze,j-1/3)}return{r:pe*255,g:be*255,b:me*255}}function d(j,Q,W){j=Y(j,255),Q=Y(Q,255),W=Y(W,255);var pe=o(j,Q,W),be=i(j,Q,W),me,Fe,ze=pe,Re=pe-be;if(Fe=pe===0?0:Re/pe,pe==be)me=0;else{switch(pe){case j:me=(Q-W)/Re+(Q>1)+720)%360;--Q;)pe.h=(pe.h+be)%360,me.push(s(pe));return me}function O(j,Q){Q=Q||6;for(var W=s(j).toHsv(),pe=W.h,be=W.s,me=W.v,Fe=[],ze=1/Q;Q--;)Fe.push(s({h:pe,s:be,v:me})),me=(me+ze)%1;return Fe}s.mix=function(j,Q,W){W=W===0?0:W||50;var pe=s(j).toRgb(),be=s(Q).toRgb(),me=W/100,Fe={r:(be.r-pe.r)*me+pe.r,g:(be.g-pe.g)*me+pe.g,b:(be.b-pe.b)*me+pe.b,a:(be.a-pe.a)*me+pe.a};return s(Fe)},s.readability=function(j,Q){var W=s(j),pe=s(Q);return(e.max(W.getLuminance(),pe.getLuminance())+.05)/(e.min(W.getLuminance(),pe.getLuminance())+.05)},s.isReadable=function(j,Q,W){var pe=s.readability(j,Q),be,me;switch(me=!1,be=ce(W),be.level+be.size){case"AAsmall":case"AAAlarge":me=pe>=4.5;break;case"AAlarge":me=pe>=3;break;case"AAAsmall":me=pe>=7;break}return me},s.mostReadable=function(j,Q,W){var pe=null,be=0,me,Fe,ze,Re;W=W||{},Fe=W.includeFallbackColors,ze=W.level,Re=W.size;for(var Ne=0;Nebe&&(be=me,pe=s(Q[Ne]));return s.isReadable(j,pe,{level:ze,size:Re})||!Fe?pe:(W.includeFallbackColors=!1,s.mostReadable(j,["#fff","#000"],W))};var B=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},V=s.hexNames=G(B);function G(j){var Q={};for(var W in j)j.hasOwnProperty(W)&&(Q[j[W]]=W);return Q}function U(j){return j=parseFloat(j),(isNaN(j)||j<0||j>1)&&(j=1),j}function Y(j,Q){re(j)&&(j="100%");var W=fe(j);return j=i(Q,o(0,parseFloat(j))),W&&(j=parseInt(j*Q,10)/100),e.abs(j-Q)<1e-6?1:j%Q/parseFloat(Q)}function J(j){return i(1,o(0,j))}function Z(j){return parseInt(j,16)}function re(j){return typeof j=="string"&&j.indexOf(".")!=-1&&parseFloat(j)===1}function fe(j){return typeof j=="string"&&j.indexOf("%")!=-1}function ie(j){return j.length==1?"0"+j:""+j}function ue(j){return j<=1&&(j=j*100+"%"),j}function K(j){return e.round(parseFloat(j)*255).toString(16)}function ye(j){return Z(j)/255}var se=function(){var j="[-\\+]?\\d+%?",Q="[-\\+]?\\d*\\.\\d+%?",W="(?:"+Q+")|(?:"+j+")",pe="[\\s|\\(]+("+W+")[,|\\s]+("+W+")[,|\\s]+("+W+")\\s*\\)?",be="[\\s|\\(]+("+W+")[,|\\s]+("+W+")[,|\\s]+("+W+")[,|\\s]+("+W+")\\s*\\)?";return{CSS_UNIT:new RegExp(W),rgb:new RegExp("rgb"+pe),rgba:new RegExp("rgba"+be),hsl:new RegExp("hsl"+pe),hsla:new RegExp("hsla"+be),hsv:new RegExp("hsv"+pe),hsva:new RegExp("hsva"+be),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 ve(j){return!!se.CSS_UNIT.exec(j)}function oe(j){j=j.replace(r,"").replace(t,"").toLowerCase();var Q=!1;if(B[j])j=B[j],Q=!0;else if(j=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var W;return(W=se.rgb.exec(j))?{r:W[1],g:W[2],b:W[3]}:(W=se.rgba.exec(j))?{r:W[1],g:W[2],b:W[3],a:W[4]}:(W=se.hsl.exec(j))?{h:W[1],s:W[2],l:W[3]}:(W=se.hsla.exec(j))?{h:W[1],s:W[2],l:W[3],a:W[4]}:(W=se.hsv.exec(j))?{h:W[1],s:W[2],v:W[3]}:(W=se.hsva.exec(j))?{h:W[1],s:W[2],v:W[3],a:W[4]}:(W=se.hex8.exec(j))?{r:Z(W[1]),g:Z(W[2]),b:Z(W[3]),a:ye(W[4]),format:Q?"name":"hex8"}:(W=se.hex6.exec(j))?{r:Z(W[1]),g:Z(W[2]),b:Z(W[3]),format:Q?"name":"hex"}:(W=se.hex4.exec(j))?{r:Z(W[1]+""+W[1]),g:Z(W[2]+""+W[2]),b:Z(W[3]+""+W[3]),a:ye(W[4]+""+W[4]),format:Q?"name":"hex8"}:(W=se.hex3.exec(j))?{r:Z(W[1]+""+W[1]),g:Z(W[2]+""+W[2]),b:Z(W[3]+""+W[3]),format:Q?"name":"hex"}:!1}function ce(j){var Q,W;return j=j||{level:"AA",size:"small"},Q=(j.level||"AA").toUpperCase(),W=(j.size||"small").toLowerCase(),Q!=="AA"&&Q!=="AAA"&&(Q="AA"),W!=="small"&&W!=="large"&&(W="small"),{level:Q,size:W}}typeof hp!="undefined"&&hp.exports?hp.exports=s:window.tinycolor=s})(Math)});var bt=N(Yv=>{"use strict";var mM=zl(),Uv=Array.isArray;function coe(e,r){var t,a;for(t=0;t{"use strict";gM.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 Vv=N((pCe,bM)=>{"use strict";bM.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var Tf=N((yCe,wM)=>{"use strict";var xM=Vv(),_M=fa(),ib=_M({editType:"none"});ib.family.dflt=xM.HOVERFONT;ib.size.dflt=xM.HOVERFONTSIZE;wM.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:ib,grouptitlefont:_M({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 yp=N((mCe,TM)=>{"use strict";var voe=fa(),dp=Tf().hoverlabel,pp=bt().extendFlat;TM.exports={hoverlabel:{bgcolor:pp({},dp.bgcolor,{arrayOk:!0}),bordercolor:pp({},dp.bordercolor,{arrayOk:!0}),font:voe({arrayOk:!0,editType:"none"}),align:pp({},dp.align,{arrayOk:!0}),namelength:pp({},dp.namelength,{arrayOk:!0}),editType:"none"}}});var mn=N((gCe,AM)=>{"use strict";var hoe=fa(),doe=yp();AM.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:hoe({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:doe.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var Vs=N((bCe,SM)=>{"use strict";var poe=kn(),mp={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)"]]},MM=mp.RdBu;function yoe(e,r){if(r||(r=MM),!e)return r;function t(){try{e=mp[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),kM(e)?e:r}function kM(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";js.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];js.defaultLine="#444";js.lightLine="#eee";js.background="#fff";js.borderLine="#BEC8D9";js.lightFraction=100*10/11});var Tr=N((_Ce,qM)=>{"use strict";var Sn=kn(),goe=Rr(),boe=Vn().isTypedArray,_a=qM.exports={},gp=li();_a.defaults=gp.defaults;var xoe=_a.defaultLine=gp.defaultLine;_a.lightLine=gp.lightLine;var lb=_a.background=gp.background;_a.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};_a.rgb=function(e){return _a.tinyRGB(Sn(e))};_a.opacity=function(e){return e?Sn(e).getAlpha():0};_a.addOpacity=function(e,r){var t=Sn(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};_a.combine=function(e,r){var t=Sn(e).toRgb();if(t.a===1)return Sn(e).toRgbString();var a=Sn(r||lb).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return Sn(i).toRgbString()};_a.interpolate=function(e,r,t){var a=Sn(e).toRgb(),n=Sn(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return Sn(i).toRgbString()};_a.contrast=function(e,r,t){var a=Sn(e);a.getAlpha()!==1&&(a=Sn(_a.combine(e,lb)));var n=a.isDark()?r?a.lighten(r):lb:t?a.darken(t):xoe;return n.toString()};_a.stroke=function(e,r){var t=Sn(r);e.style({stroke:_a.tinyRGB(t),"stroke-opacity":t.getAlpha()})};_a.fill=function(e,r){var t=Sn(r);e.style({fill:_a.tinyRGB(t),"fill-opacity":t.getAlpha()})};_a.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var o=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+o+", "+a[3]+")":"rgb("+o+")"}});var bp=N((wCe,LM)=>{"use strict";LM.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var Af=N(CM=>{"use strict";CM.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 PM=N(qn=>{"use strict";var sb=Rr(),EM=kn(),DM=bt().extendFlat,_oe=mn(),woe=Vs(),Toe=Tr(),Aoe=bp().DESELECTDIM,Mf=fp(),RM=Af().counter,Moe=wf().modHalf,To=Vn().isArrayOrTypedArray,Il=Vn().isTypedArraySpec,Ol=Vn().decodeTypedArraySpec;qn.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(To(e)?e:Il(e)?Ol(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;aa.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}Il(e)&&(e=Ol(e)),e%1||!sb(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Il(e)&&(e=Ol(e)),EM(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return EM(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(woe.get(e,t))}},angle:{coerceFunction:function(e,r,t){Il(e)&&(e=Ol(e)),e==="auto"?r.set("auto"):sb(e)?r.set(Moe(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||RM(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:!!RM(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 FM={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:{}}},NM={};function zM(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),zM(a,r[t]))}}zM(FM,NM);IM.exports={configAttributes:FM,dfltConfig:NM}});var fb=N((kCe,OM)=>{"use strict";var ub=Sr(),koe=Rr(),jv=[];OM.exports=function(e,r){if(jv.indexOf(e)!==-1)return;jv.push(e);var t=1e3;koe(r)?t=r:r==="long"&&(t=3e3);var a=ub.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(jv);function i(o){o.duration(700).style("opacity",0).each("end",function(l){var s=jv.indexOf(l);s!==-1&&jv.splice(s,1),ub.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var l=ub.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(i)});for(var s=l.append("p"),u=o.split(//g),f=0;f{"use strict";var kf=Ws().dfltConfig,cb=fb(),vb=BM.exports={};vb.log=function(){var e;if(kf.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};vb.warn=function(){var e;if(kf.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};vb.error=function(){var e;if(kf.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var _p=N((qCe,HM)=>{"use strict";HM.exports=function(){}});var hb=N((LCe,UM)=>{"use strict";UM.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{GM.exports=Soe;function Soe(){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 jM=N((ECe,VM)=>{VM.exports=qoe;function qoe(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 ZM=N((DCe,WM)=>{WM.exports=Loe;function Loe(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var db=N((RCe,XM)=>{XM.exports=Coe;function Coe(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 $M=N((PCe,JM)=>{JM.exports=Eoe;function Eoe(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var QM=N((FCe,KM)=>{KM.exports=Doe;function Doe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],m=r[13],y=r[14],x=r[15],w=t*l-a*o,_=t*s-n*o,b=t*u-i*o,T=a*s-n*l,k=a*u-i*l,M=n*u-i*s,S=f*m-c*p,E=f*y-v*p,D=f*x-d*p,P=c*y-v*m,R=c*x-d*m,z=v*x-d*y,O=w*z-_*R+b*P+T*D-k*E+M*S;return O?(O=1/O,e[0]=(l*z-s*R+u*P)*O,e[1]=(n*R-a*z-i*P)*O,e[2]=(m*M-y*k+x*T)*O,e[3]=(v*k-c*M-d*T)*O,e[4]=(s*D-o*z-u*E)*O,e[5]=(t*z-n*D+i*E)*O,e[6]=(y*b-p*M-x*_)*O,e[7]=(f*M-v*b+d*_)*O,e[8]=(o*R-l*D+u*S)*O,e[9]=(a*D-t*R-i*S)*O,e[10]=(p*k-m*b+x*w)*O,e[11]=(c*b-f*k-d*w)*O,e[12]=(l*E-o*P-s*S)*O,e[13]=(t*P-a*E+n*S)*O,e[14]=(m*_-p*T-y*w)*O,e[15]=(f*T-c*_+v*w)*O,e):null}});var r9=N((NCe,e9)=>{e9.exports=Roe;function Roe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],m=r[13],y=r[14],x=r[15];return e[0]=l*(v*x-d*y)-c*(s*x-u*y)+m*(s*d-u*v),e[1]=-(a*(v*x-d*y)-c*(n*x-i*y)+m*(n*d-i*v)),e[2]=a*(s*x-u*y)-l*(n*x-i*y)+m*(n*u-i*s),e[3]=-(a*(s*d-u*v)-l*(n*d-i*v)+c*(n*u-i*s)),e[4]=-(o*(v*x-d*y)-f*(s*x-u*y)+p*(s*d-u*v)),e[5]=t*(v*x-d*y)-f*(n*x-i*y)+p*(n*d-i*v),e[6]=-(t*(s*x-u*y)-o*(n*x-i*y)+p*(n*u-i*s)),e[7]=t*(s*d-u*v)-o*(n*d-i*v)+f*(n*u-i*s),e[8]=o*(c*x-d*m)-f*(l*x-u*m)+p*(l*d-u*c),e[9]=-(t*(c*x-d*m)-f*(a*x-i*m)+p*(a*d-i*c)),e[10]=t*(l*x-u*m)-o*(a*x-i*m)+p*(a*u-i*l),e[11]=-(t*(l*d-u*c)-o*(a*d-i*c)+f*(a*u-i*l)),e[12]=-(o*(c*y-v*m)-f*(l*y-s*m)+p*(l*v-s*c)),e[13]=t*(c*y-v*m)-f*(a*y-n*m)+p*(a*v-n*c),e[14]=-(t*(l*y-s*m)-o*(a*y-n*m)+p*(a*s-n*l)),e[15]=t*(l*v-s*c)-o*(a*v-n*c)+f*(a*s-n*l),e}});var a9=N((zCe,t9)=>{t9.exports=Poe;function Poe(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],c=e[10],v=e[11],d=e[12],p=e[13],m=e[14],y=e[15],x=r*o-t*i,w=r*l-a*i,_=r*s-n*i,b=t*l-a*o,T=t*s-n*o,k=a*s-n*l,M=u*p-f*d,S=u*m-c*d,E=u*y-v*d,D=f*m-c*p,P=f*y-v*p,R=c*y-v*m;return x*R-w*P+_*D+b*E-T*S+k*M}});var i9=N((ICe,n9)=>{n9.exports=Foe;function Foe(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],c=r[8],v=r[9],d=r[10],p=r[11],m=r[12],y=r[13],x=r[14],w=r[15],_=t[0],b=t[1],T=t[2],k=t[3];return e[0]=_*a+b*l+T*c+k*m,e[1]=_*n+b*s+T*v+k*y,e[2]=_*i+b*u+T*d+k*x,e[3]=_*o+b*f+T*p+k*w,_=t[4],b=t[5],T=t[6],k=t[7],e[4]=_*a+b*l+T*c+k*m,e[5]=_*n+b*s+T*v+k*y,e[6]=_*i+b*u+T*d+k*x,e[7]=_*o+b*f+T*p+k*w,_=t[8],b=t[9],T=t[10],k=t[11],e[8]=_*a+b*l+T*c+k*m,e[9]=_*n+b*s+T*v+k*y,e[10]=_*i+b*u+T*d+k*x,e[11]=_*o+b*f+T*p+k*w,_=t[12],b=t[13],T=t[14],k=t[15],e[12]=_*a+b*l+T*c+k*m,e[13]=_*n+b*s+T*v+k*y,e[14]=_*i+b*u+T*d+k*x,e[15]=_*o+b*f+T*p+k*w,e}});var l9=N((OCe,o9)=>{o9.exports=Noe;function Noe(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,u,f,c,v,d,p,m,y,x;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],c=r[5],v=r[6],d=r[7],p=r[8],m=r[9],y=r[10],x=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=v,e[7]=d,e[8]=p,e[9]=m,e[10]=y,e[11]=x,e[12]=o*a+f*n+p*i+r[12],e[13]=l*a+c*n+m*i+r[13],e[14]=s*a+v*n+y*i+r[14],e[15]=u*a+d*n+x*i+r[15]),e}});var u9=N((BCe,s9)=>{s9.exports=zoe;function zoe(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 c9=N((HCe,f9)=>{f9.exports=Ioe;function Ioe(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,u,f,c,v,d,p,m,y,x,w,_,b,T,k,M,S,E,D,P,R,z,O,B;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],v=r[1],d=r[2],p=r[3],m=r[4],y=r[5],x=r[6],w=r[7],_=r[8],b=r[9],T=r[10],k=r[11],M=n*n*f+u,S=i*n*f+o*s,E=o*n*f-i*s,D=n*i*f-o*s,P=i*i*f+u,R=o*i*f+n*s,z=n*o*f+i*s,O=i*o*f-n*s,B=o*o*f+u,e[0]=c*M+m*S+_*E,e[1]=v*M+y*S+b*E,e[2]=d*M+x*S+T*E,e[3]=p*M+w*S+k*E,e[4]=c*D+m*P+_*R,e[5]=v*D+y*P+b*R,e[6]=d*D+x*P+T*R,e[7]=p*D+w*P+k*R,e[8]=c*z+m*O+_*B,e[9]=v*z+y*O+b*B,e[10]=d*z+x*O+T*B,e[11]=p*z+w*O+k*B,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var h9=N((UCe,v9)=>{v9.exports=Ooe;function Ooe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=o*n+f*a,e[6]=l*n+c*a,e[7]=s*n+v*a,e[8]=u*n-i*a,e[9]=f*n-o*a,e[10]=c*n-l*a,e[11]=v*n-s*a,e}});var p9=N((GCe,d9)=>{d9.exports=Boe;function Boe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=o*n-f*a,e[2]=l*n-c*a,e[3]=s*n-v*a,e[8]=i*a+u*n,e[9]=o*a+f*n,e[10]=l*a+c*n,e[11]=s*a+v*n,e}});var m9=N((YCe,y9)=>{y9.exports=Hoe;function Hoe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],c=r[6],v=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=o*n+f*a,e[2]=l*n+c*a,e[3]=s*n+v*a,e[4]=u*n-i*a,e[5]=f*n-o*a,e[6]=c*n-l*a,e[7]=v*n-s*a,e}});var b9=N((VCe,g9)=>{g9.exports=Uoe;function Uoe(e,r,t){var a,n,i,o=t[0],l=t[1],s=t[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,l*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+s*a,e[2]=s*o*i-l*a,e[3]=0,e[4]=o*l*i-s*a,e[5]=l*l*i+n,e[6]=s*l*i+o*a,e[7]=0,e[8]=o*s*i+l*a,e[9]=l*s*i-o*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var _9=N((jCe,x9)=>{x9.exports=Goe;function Goe(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,u=i+i,f=a*l,c=a*s,v=a*u,d=n*s,p=n*u,m=i*u,y=o*l,x=o*s,w=o*u;return e[0]=1-(d+m),e[1]=c+w,e[2]=v-x,e[3]=0,e[4]=c-w,e[5]=1-(f+m),e[6]=p+y,e[7]=0,e[8]=v+x,e[9]=p-y,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var T9=N((WCe,w9)=>{w9.exports=Yoe;function Yoe(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 M9=N((ZCe,A9)=>{A9.exports=Voe;function Voe(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 S9=N((XCe,k9)=>{k9.exports=joe;function joe(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 L9=N((JCe,q9)=>{q9.exports=Woe;function Woe(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 E9=N(($Ce,C9)=>{C9.exports=Zoe;function Zoe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var pb=N((KCe,D9)=>{D9.exports=Xoe;function Xoe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,u=t*o,f=a*o,c=a*l,v=n*o,d=n*l,p=n*s,m=i*o,y=i*l,x=i*s;return e[0]=1-c-p,e[1]=f+x,e[2]=v-y,e[3]=0,e[4]=f-x,e[5]=1-u-p,e[6]=d+m,e[7]=0,e[8]=v+y,e[9]=d-m,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var P9=N((QCe,R9)=>{R9.exports=Joe;function Joe(e,r,t,a,n,i,o){var l=1/(t-r),s=1/(n-a),u=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var N9=N((eEe,F9)=>{F9.exports=$oe;function $oe(e,r,t,a,n){var i=1/Math.tan(r/2),o=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var I9=N((rEe,z9)=>{z9.exports=Koe;function Koe(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var B9=N((tEe,O9)=>{O9.exports=Qoe;function Qoe(e,r,t,a,n,i,o){var l=1/(r-t),s=1/(a-n),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*s,e[14]=(o+i)*u,e[15]=1,e}});var U9=N((aEe,H9)=>{var ele=db();H9.exports=rle;function rle(e,r,t,a){var n,i,o,l,s,u,f,c,v,d,p=r[0],m=r[1],y=r[2],x=a[0],w=a[1],_=a[2],b=t[0],T=t[1],k=t[2];return Math.abs(p-b)<1e-6&&Math.abs(m-T)<1e-6&&Math.abs(y-k)<1e-6?ele(e):(f=p-b,c=m-T,v=y-k,d=1/Math.sqrt(f*f+c*c+v*v),f*=d,c*=d,v*=d,n=w*v-_*c,i=_*f-x*v,o=x*c-w*f,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-v*i,s=v*n-f*o,u=f*i-c*n,d=Math.sqrt(l*l+s*s+u*u),d?(d=1/d,l*=d,s*=d,u*=d):(l=0,s=0,u=0),e[0]=n,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=u,e[10]=v,e[11]=0,e[12]=-(n*p+i*m+o*y),e[13]=-(l*p+s*m+u*y),e[14]=-(f*p+c*m+v*y),e[15]=1,e)}});var Y9=N((nEe,G9)=>{G9.exports=tle;function tle(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var yb=N((iEe,V9)=>{V9.exports={create:YM(),clone:jM(),copy:ZM(),identity:db(),transpose:$M(),invert:QM(),adjoint:r9(),determinant:a9(),multiply:i9(),translate:l9(),scale:u9(),rotate:c9(),rotateX:h9(),rotateY:p9(),rotateZ:m9(),fromRotation:b9(),fromRotationTranslation:_9(),fromScaling:T9(),fromTranslation:M9(),fromXRotation:S9(),fromYRotation:L9(),fromZRotation:E9(),fromQuat:pb(),frustum:P9(),perspective:N9(),perspectiveFromFieldOfView:I9(),ortho:B9(),lookAt:U9(),str:Y9()}});var wp=N($t=>{"use strict";var ale=yb();$t.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var nle=Sr(),j9=Zs(),ile=wp(),ole=yb();function lle(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 sle(e){var r=nle.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function W9(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function ule(e,r){Z9("global",e,r)}function Z9(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):j9.warn("addStyleRule failed"):j9.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function fle(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&W9(t)}function cle(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[o[0]]=o[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[o[0]]=o[1]:f.style[l[0]]=l[1])}),u.setAttribute(s,!0))})}function vle(e){var r=J9(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=X9(a);if(n){var i=ile.convertCssMatrix(n);t=ole.multiply(t,t,i)}}),t}function X9(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function J9(e){for(var r=[];hle(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function hle(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function dle(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}$9.exports={getGraphDiv:lle,isPlotDiv:sle,removeElement:W9,addStyleRule:ule,addRelatedStyleRule:Z9,deleteRelatedStyleRule:fle,setStyleOnHover:cle,getFullTransformMatrix:vle,getElementTransformMatrix:X9,getElementAndAncestors:J9,equalDomRects:dle}});var Zv=N((sEe,K9)=>{"use strict";K9.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Xi=N((uEe,ik)=>{"use strict";var ek=bt().extendFlat,ple=zl(),rk={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},tk={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},yle=rk.flags.slice().concat(["fullReplot"]),mle=tk.flags.slice().concat("layoutReplot");ik.exports={traces:rk,layout:tk,traceFlags:function(){return Q9(yle)},layoutFlags:function(){return Q9(mle)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";mb.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};mb.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var gb=N((cEe,ok)=>{"use strict";ok.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var La=N(Tp=>{"use strict";var lk=gb(),vEe=lk.FORMAT_LINK,hEe=lk.DATE_FORMAT_LINK;function bb(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var a=[],n=0;n{"use strict";function Bl(e,r){return r?r.d2l(e):e}function sk(e,r){return r?r.l2d(e):e}function gle(e){return e.x0}function ble(e){return e.x1}function xle(e){return e.y0}function _le(e){return e.y1}function uk(e){return e.x0shift||0}function fk(e){return e.x1shift||0}function ck(e){return e.y0shift||0}function vk(e){return e.y1shift||0}function Ap(e,r){return Bl(e.x1,r)+fk(e)-Bl(e.x0,r)-uk(e)}function Mp(e,r,t){return Bl(e.y1,t)+vk(e)-Bl(e.y0,t)-ck(e)}function wle(e,r){return Math.abs(Ap(e,r))}function Tle(e,r,t){return Math.abs(Mp(e,r,t))}function Ale(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Ap(e,r),2)+Math.pow(Mp(e,r,t),2))}function Mle(e,r){return sk((Bl(e.x1,r)+fk(e)+Bl(e.x0,r)+uk(e))/2,r)}function kle(e,r,t){return sk((Bl(e.y1,t)+vk(e)+Bl(e.y0,t)+ck(e))/2,t)}function Sle(e,r,t){return e.type!=="line"?void 0:Mp(e,r,t)/Ap(e,r)}hk.exports={x0:gle,x1:ble,y0:xle,y1:_le,slope:Sle,dx:Ap,dy:Mp,width:wle,height:Tle,length:Ale,xcenter:Mle,ycenter:kle}});var yk=N((yEe,pk)=>{"use strict";var qle=Xi().overrideAll,Xs=mn(),dk=fa(),Lle=si().dash,Hl=bt().extendFlat,Cle=La().shapeTexttemplateAttrs,Ele=kp();pk.exports=qle({newshape:{visible:Hl({},Xs.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Hl({},Xs.legend,{}),legendgroup:Hl({},Xs.legendgroup,{}),legendgrouptitle:{text:Hl({},Xs.legendgrouptitle.text,{}),font:dk({})},legendrank:Hl({},Xs.legendrank,{}),legendwidth:Hl({},Xs.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Hl({},Lle,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Hl({},Xs.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:Cle({newshape:!0},{keys:Object.keys(Ele)}),font:dk({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var gk=N((mEe,mk)=>{"use strict";var Dle=si().dash,Rle=bt().extendFlat;mk.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:Rle({},Dle,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Sp=N((gEe,bk)=>{"use strict";bk.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var Sf=N((bEe,Tk)=>{"use strict";var xb=fa(),Ple=Zv(),qp=li(),xk=yk(),_k=gk(),Fle=Sp(),wk=bt().extendFlat,Lp=xb({editType:"calc"});Lp.family.dflt='"Open Sans", verdana, arial, sans-serif';Lp.size.dflt=12;Lp.color.dflt=qp.defaultLine;Tk.exports={font:Lp,title:{text:{valType:"string",editType:"layoutstyle"},font:xb({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:xb({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:wk(Fle({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:qp.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:qp.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:qp.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:xk.newshape,activeshape:xk.activeshape,newselection:_k.newselection,activeselection:_k.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:wk({},Ple.transition,{editType:"none"})}});var Ak=BA(()=>{});var Nle={};var Mk=BA(()=>{Ak()});var gr=N(Hr=>{"use strict";var qf=Zs(),kk=_p(),Sk=hb(),zle=zl(),Ile=Wv().addStyleRule,qk=bt(),Ole=mn(),Ble=Sf(),Hle=qk.extendFlat,_b=qk.extendDeepAll;Hr.modules={};Hr.allCategories={};Hr.allTypes=[];Hr.subplotsRegistry={};Hr.componentsRegistry={};Hr.layoutArrayContainers=[];Hr.layoutArrayRegexes=[];Hr.traceLayoutAttributes={};Hr.localeRegistry={};Hr.apiMethodRegistry={};Hr.collectableSubplotTypes=null;Hr.register=function(r){if(Hr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var Wle=xf().timeFormat,Ok=Rr(),wb=Zs(),Gl=wf().mod,Ef=Ft(),ui=Ef.BADNUM,Ln=Ef.ONEDAY,Xv=Ef.ONEHOUR,Ul=Ef.ONEMIN,Cf=Ef.ONESEC,Jv=Ef.EPOCHJD,rl=gr(),Rk=xf().utcFormat,Zle=/^\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,Xle=/^\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,Pk=new Date().getFullYear()-70;function tl(e){return e&&rl.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Kt.dateTick0=function(e,r){var t=Jle(e,!!r);if(r<2)return t;var a=Kt.dateTime2ms(t,e);return a+=Ln*(r-1),Kt.ms2DateTime(a,0,e)};function Jle(e,r){return tl(e)?r?rl.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:rl.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Kt.dfltRange=function(e){return tl(e)?rl.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Kt.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Ep,Dp;Kt.dateTime2ms=function(e,r){if(Kt.isJSDate(e)){var t=e.getTimezoneOffset()*Ul,a=(e.getUTCMinutes()-e.getMinutes())*Ul+(e.getUTCSeconds()-e.getSeconds())*Cf+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Ul;t=t-n/2+Gl(a-t+n/2,n)}return e=Number(e)-t,e>=Ep&&e<=Dp?e:ui}if(typeof e!="string"&&typeof e!="number")return ui;e=String(e);var i=tl(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.substr(1),r="");var l=i&&r.substr(0,7)==="chinese",s=e.match(l?Xle:Zle);if(!s)return ui;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),v=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return ui;u=Number(u);var m;try{var y=rl.getComponentMethod("calendars","getCal")(r);if(l){var x=f.charAt(f.length-1)==="i";f=parseInt(f,10),m=y.newDate(u,y.toMonthIndex(u,f,x),c)}else m=y.newDate(u,Number(f),c)}catch(_){return ui}return m?(m.toJD()-Jv)*Ln+v*Xv+d*Ul+p*Cf:ui}u.length===2?u=(Number(u)+2e3-Pk)%100+Pk:u=Number(u),f-=1;var w=new Date(Date.UTC(2e3,f,c,v,d));return w.setUTCFullYear(u),w.getUTCMonth()!==f||w.getUTCDate()!==c?ui:w.getTime()+p*Cf};Ep=Kt.MIN_MS=Kt.dateTime2ms("-9999");Dp=Kt.MAX_MS=Kt.dateTime2ms("9999-12-31 23:59:59.9999");Kt.isDateTime=function(e,r){return Kt.dateTime2ms(e,r)!==ui};function Lf(e,r){return String(e+Math.pow(10,r)).substr(1)}var Cp=90*Ln,Fk=3*Xv,Nk=5*Ul;Kt.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Ep&&e<=Dp))return ui;r||(r=0);var a=Math.floor(Gl(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,u,f;if(tl(t)){var c=Math.floor(n/Ln)+Jv,v=Math.floor(Gl(e,Ln));try{i=rl.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=Rk("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=r=Ep+Ln&&e<=Dp-Ln))return ui;var r=Math.floor(Gl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=Wle("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return Bk(a,n,i,o,l)};function Bk(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Lf(r,2)+":"+Lf(t,2),(a||n)&&(e+=":"+Lf(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Lf(n,i)}return e}Kt.cleanDate=function(e,r,t){if(e===ui)return r;if(Kt.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(tl(t))return wb.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Kt.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Kt.isDateTime(e,t))return wb.error("unrecognized date",e),r;return e};var $le=/%\d?f/g,Kle=/%h/g,Qle={1:"1",2:"1",3:"2",4:"2"};function zk(e,r,t,a){e=e.replace($le,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return l});var n=new Date(Math.floor(r+.05));if(e=e.replace(Kle,function(){return Qle[t("%q")(n)]}),tl(a))try{e=rl.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var ese=[59,59.9,59.99,59.999,59.9999];function rse(e,r){var t=Gl(e+.05,Ln),a=Lf(Math.floor(t/Xv),2)+":"+Lf(Gl(Math.floor(t/Ul),60),2);if(r!=="M"){Ok(r)||(r=0);var n=Math.min(Gl(e/Cf,60),ese[r]),i=(100+n).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Kt.formatDate=function(e,r,t,a,n,i){if(n=tl(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` -`+i.year;else return rse(e,t)+` -`+zk(i.dayMonthYear,e,a,n);return zk(r,e,a,n)};var Ik=3*Ln;Kt.incrementMonth=function(e,r,t){t=tl(t)&&t;var a=Gl(e,Ln);if(e=Math.round(e-a),t)try{var n=Math.round(e/Ln)+Jv,i=rl.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-Jv)*Ln+a}catch(s){wb.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+Ik);return l.setUTCMonth(l.getUTCMonth()+r)+a-Ik};Kt.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=tl(r)&&rl.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";Uk.exports=function(r){return r}});var Mb=N(al=>{"use strict";var tse=Rr(),ase=Zs(),nse=Tb(),ise=Ft().BADNUM,Ab=1e-9;al.findBin=function(e,r,t){if(tse(r.start))return t?Math.ceil((e-r.start)/r.size-Ab)-1:Math.floor((e-r.start)/r.size+Ab);var a=0,n=r.length,i=0,o=n>1?(r[n-1]-r[0])/(n-1):1,l,s;for(o>=0?s=t?ose:lse:s=t?use:sse,e+=o*Ab*(t?-1:1)*(o>=0?1:-1);a90&&ase.log("Long binary search..."),a-1};function ose(e,r){return er}function use(e,r){return e>=r}al.sorterAsc=function(e,r){return e-r};al.sorterDes=function(e,r){return r-e};al.distinctVals=function(e){var r=e.slice();r.sort(al.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===ise;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],u=s-o;o===void 0?(i.push(s),o=s):u>n&&(a=Math.min(a,u),i.push(s),o=s)}return{vals:i,minDiff:a}};al.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,o=0,l=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};al.findIndexOfMin=function(e,r){r=r||nse;for(var t=1/0,a,n=0;n{"use strict";Gk.exports=function(r){return Object.keys(r).sort()}});var Yk=N(Qt=>{"use strict";var $v=Rr(),fse=Vn().isArrayOrTypedArray;Qt.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),$v(r)||(r=!1),fse(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 Xk=N((LEe,Zk)=>{"use strict";var Vk=wf(),Sb=Vk.mod,cse=Vk.modHalf,Kv=Math.PI,Yl=2*Kv;function vse(e){return e/180*Kv}function hse(e){return e/Kv*180}function qb(e){return Math.abs(e[1]-e[0])>Yl-1e-14}function jk(e,r){return cse(r-e,Yl)}function dse(e,r){return Math.abs(jk(e,r))}function Wk(e,r){if(qb(r))return!0;var t,a;r[0]a&&(a+=Yl);var n=Sb(e,Yl),i=n+Yl;return n>=t&&n<=a||i>=t&&i<=a}function pse(e,r,t,a){if(!Wk(r,a))return!1;var n,i;return t[0]=n&&e<=i}function Lb(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=qb([t,a]),s,u,f,c,v;l?(s=0,u=Kv,f=Yl):t{"use strict";Js.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Js.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Js.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Js.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Js.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Js.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var Qk=N($s=>{"use strict";var Cb=wf().mod;$s.segmentsIntersect=Kk;function Kk(e,r,t,a,n,i,o,l){var s=t-e,u=n-e,f=o-n,c=a-r,v=i-r,d=l-i,p=s*d-f*c;if(p===0)return null;var m=(u*d-f*v)/p,y=(u*c-s*v)/p;return y<0||y>1||m<0||m>1?null:{x:e+s*m,y:r+c*m}}$s.segmentDistance=function(r,t,a,n,i,o,l,s){if(Kk(r,t,a,n,i,o,l,s))return 0;var u=a-r,f=n-t,c=l-i,v=s-o,d=u*u+f*f,p=c*c+v*v,m=Math.min(Rp(u,f,d,i-r,o-t),Rp(u,f,d,l-r,s-t),Rp(c,v,p,r-i,t-o),Rp(c,v,p,a-i,n-o));return Math.sqrt(m)};function Rp(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var o=a-e,l=n-r;return o*o+l*l}else{var s=a*r-n*e;return s*s/t}}var Pp,Eb,$k;$s.getTextLocation=function(r,t,a,n){if((r!==Eb||n!==$k)&&(Pp={},Eb=r,$k=n),Pp[a])return Pp[a];var i=r.getPointAtLength(Cb(a-n/2,t)),o=r.getPointAtLength(Cb(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(Cb(a,t)),u=(s.x*4+i.x+o.x)/6,f=(s.y*4+i.y+o.y)/6,c={x:u,y:f,theta:l};return Pp[a]=c,c};$s.clearLocationCache=function(){Eb=null};$s.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,s=0,u=r.getTotalLength(),f=u,c,v;function d(m){var y=r.getPointAtLength(m);m===0?c=y:m===u&&(v=y);var x=y.xi?y.x-i:0,w=y.yl?y.y-l:0;return Math.sqrt(x*x+w*w)}for(var p=d(s);p;){if(s+=p+a,s>f)return;p=d(s)}for(p=d(f);p;){if(f-=p+a,s>f)return;p=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-v.x)<.1&&Math.abs(c.y-v.y)<.1}};$s.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),o=n.tolerance||.001,l=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,v,d,p;u0?c=v:f=v,u++}return d}});var Fp=N(Qv=>{"use strict";var nl={};Qv.throttle=function(r,t,a){var n=nl[r],i=Date.now();if(!n){for(var o in nl)nl[o].tsn.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};Qv.done=function(e){var r=nl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};Qv.clear=function(e){if(e)eS(nl[e]),delete nl[e];else for(var r in nl)Qv.clear(r)};function eS(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var tS=N((REe,rS)=>{"use strict";rS.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var aS=N((PEe,Np)=>{"use strict";Np.exports=Db;Np.exports.isMobile=Db;Np.exports.default=Db;var bse=/(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,xse=/CrOS/,_se=/android|ipad|playbook|silk/i;function Db(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=bse.test(r)&&!xse.test(r)||!!e.tablet&&_se.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var iS=N((FEe,nS)=>{"use strict";var wse=Rr(),Tse=aS();nS.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=Ase(),typeof t!="string")return!0;var a=Tse({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;l--){var s=n[l];if(s.substr(0,8)==="Version/"){var u=s.substr(8).split(".")[0];if(wse(u)&&(u=+u),u>=13)return!0}}}return a};function Ase(){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 lS=N((NEe,oS)=>{"use strict";var Mse=Sr();oS.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][i]=Mse.select(this)}),n}});var uS=N((zEe,sS)=>{"use strict";var kse=gr();sS.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[a]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=kse.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var cS=N((IEe,fS)=>{"use strict";fS.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";vS.exports=function(r){for(var t=Lse(r)?qse:Sse,a=[],n=0;n{"use strict";dS.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var mS=N((HEe,yS)=>{"use strict";var Cse=Rr(),Ese=Ft().BADNUM,Dse=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;yS.exports=function(r){return typeof r=="string"&&(r=r.replace(Dse,"")),Cse(r)?Number(r):Ese}});var Ee=N((UEe,CS)=>{"use strict";var eh=Sr(),Rse=xf().utcFormat,Pse=Q3().format,TS=Rr(),AS=Ft(),MS=AS.FP_SAFE,Fse=-MS,gS=AS.BADNUM,xe=CS.exports={};xe.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 bS={};xe.warnBadFormat=function(e){var r=String(e);bS[r]||(bS[r]=1,xe.warn('encountered bad format: "'+r+'"'))};xe.noFormat=function(e){return String(e)};xe.numberFormat=function(e){var r;try{r=Pse(xe.adjustFormat(e))}catch(t){return xe.warnBadFormat(e),xe.noFormat}return r};xe.nestedProperty=fp();xe.keyedContainer=uM();xe.relativeAttr=cM();xe.isPlainObject=zl();xe.toLogRange=vp();xe.relinkPrivateKeys=pM();var Vl=Vn();xe.isArrayBuffer=Vl.isArrayBuffer;xe.isTypedArray=Vl.isTypedArray;xe.isArrayOrTypedArray=Vl.isArrayOrTypedArray;xe.isArray1D=Vl.isArray1D;xe.ensureArray=Vl.ensureArray;xe.concat=Vl.concat;xe.maxRowLength=Vl.maxRowLength;xe.minRowLength=Vl.minRowLength;var kS=wf();xe.mod=kS.mod;xe.modHalf=kS.modHalf;var jl=PM();xe.valObjectMeta=jl.valObjectMeta;xe.coerce=jl.coerce;xe.coerce2=jl.coerce2;xe.coerceFont=jl.coerceFont;xe.coercePattern=jl.coercePattern;xe.coerceHoverinfo=jl.coerceHoverinfo;xe.coerceSelectionMarkerOpacity=jl.coerceSelectionMarkerOpacity;xe.validate=jl.validate;var jn=Hk();xe.dateTime2ms=jn.dateTime2ms;xe.isDateTime=jn.isDateTime;xe.ms2DateTime=jn.ms2DateTime;xe.ms2DateTimeLocal=jn.ms2DateTimeLocal;xe.cleanDate=jn.cleanDate;xe.isJSDate=jn.isJSDate;xe.formatDate=jn.formatDate;xe.incrementMonth=jn.incrementMonth;xe.dateTick0=jn.dateTick0;xe.dfltRange=jn.dfltRange;xe.findExactDates=jn.findExactDates;xe.MIN_MS=jn.MIN_MS;xe.MAX_MS=jn.MAX_MS;var Ks=Mb();xe.findBin=Ks.findBin;xe.sorterAsc=Ks.sorterAsc;xe.sorterDes=Ks.sorterDes;xe.distinctVals=Ks.distinctVals;xe.roundUp=Ks.roundUp;xe.sort=Ks.sort;xe.findIndexOfMin=Ks.findIndexOfMin;xe.sortObjectKeys=kb();var il=Yk();xe.aggNums=il.aggNums;xe.len=il.len;xe.mean=il.mean;xe.geometricMean=il.geometricMean;xe.median=il.median;xe.midRange=il.midRange;xe.variance=il.variance;xe.stdev=il.stdev;xe.interp=il.interp;var Ji=wp();xe.init2dArray=Ji.init2dArray;xe.transposeRagged=Ji.transposeRagged;xe.dot=Ji.dot;xe.translationMatrix=Ji.translationMatrix;xe.rotationMatrix=Ji.rotationMatrix;xe.rotationXYMatrix=Ji.rotationXYMatrix;xe.apply3DTransform=Ji.apply3DTransform;xe.apply2DTransform=Ji.apply2DTransform;xe.apply2DTransform2=Ji.apply2DTransform2;xe.convertCssMatrix=Ji.convertCssMatrix;xe.inverseTransformMatrix=Ji.inverseTransformMatrix;var Ao=Xk();xe.deg2rad=Ao.deg2rad;xe.rad2deg=Ao.rad2deg;xe.angleDelta=Ao.angleDelta;xe.angleDist=Ao.angleDist;xe.isFullCircle=Ao.isFullCircle;xe.isAngleInsideSector=Ao.isAngleInsideSector;xe.isPtInsideSector=Ao.isPtInsideSector;xe.pathArc=Ao.pathArc;xe.pathSector=Ao.pathSector;xe.pathAnnulus=Ao.pathAnnulus;var Rf=Jk();xe.isLeftAnchor=Rf.isLeftAnchor;xe.isCenterAnchor=Rf.isCenterAnchor;xe.isRightAnchor=Rf.isRightAnchor;xe.isTopAnchor=Rf.isTopAnchor;xe.isMiddleAnchor=Rf.isMiddleAnchor;xe.isBottomAnchor=Rf.isBottomAnchor;var Pf=Qk();xe.segmentsIntersect=Pf.segmentsIntersect;xe.segmentDistance=Pf.segmentDistance;xe.getTextLocation=Pf.getTextLocation;xe.clearLocationCache=Pf.clearLocationCache;xe.getVisibleSegment=Pf.getVisibleSegment;xe.findPointOnPath=Pf.findPointOnPath;var Op=bt();xe.extendFlat=Op.extendFlat;xe.extendDeep=Op.extendDeep;xe.extendDeepAll=Op.extendDeepAll;xe.extendDeepNoArrays=Op.extendDeepNoArrays;var Rb=Zs();xe.log=Rb.log;xe.warn=Rb.warn;xe.error=Rb.error;var Nse=Af();xe.counterRegex=Nse.counter;var Pb=Fp();xe.throttle=Pb.throttle;xe.throttleDone=Pb.done;xe.clearThrottle=Pb.clear;var $i=Wv();xe.getGraphDiv=$i.getGraphDiv;xe.isPlotDiv=$i.isPlotDiv;xe.removeElement=$i.removeElement;xe.addStyleRule=$i.addStyleRule;xe.addRelatedStyleRule=$i.addRelatedStyleRule;xe.deleteRelatedStyleRule=$i.deleteRelatedStyleRule;xe.setStyleOnHover=$i.setStyleOnHover;xe.getFullTransformMatrix=$i.getFullTransformMatrix;xe.getElementTransformMatrix=$i.getElementTransformMatrix;xe.getElementAndAncestors=$i.getElementAndAncestors;xe.equalDomRects=$i.equalDomRects;xe.clearResponsive=tS();xe.preserveDrawingBuffer=iS();xe.makeTraceGroups=lS();xe._=uS();xe.notifier=fb();xe.filterUnique=cS();xe.filterVisible=hS();xe.pushUnique=hb();xe.increment=pS();xe.cleanNumber=mS();xe.ensureNumber=function(r){return TS(r)?(r=Number(r),r>MS||r=r?!1:TS(e)&&e>=0&&e%1===0};xe.noop=_p();xe.identity=Tb();xe.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))};xe.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};xe.simpleMap=function(e,r,t,a,n){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,t)?n>10?(xe.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};xe.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};xe.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),o=new Array(t),l,s,u,f;for(l=0;l=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];o[l]=f}return o};xe.syncOrAsync=function(e,r,t){var a,n;function i(){return xe.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)};xe.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};xe.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,o;for(i=0;i0?n:0})};xe.fillArray=function(e,r,t,a){if(a=a||xe.identity,xe.isArrayOrTypedArray(e))for(var n=0;n1?n+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;a.test(l);)l=l.replace(a,"$1"+i+"$2");return l+s};xe.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var LS=/^\w*$/;xe.templateString=function(e,r){var t={};return e.replace(xe.TEMPLATE_STRING_REGEX,function(a,n){var i;return LS.test(n)?i=r[n]:(t[n]=t[n]||xe.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var Use={max:10,count:0,name:"hovertemplate"};xe.hovertemplateString=function(){return Fb.apply(Use,arguments)};var Gse={max:10,count:0,name:"texttemplate"};xe.texttemplateString=function(){return Fb.apply(Gse,arguments)};var Yse=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Vse(e){var r=e.match(Yse);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var jse={max:10,count:0,name:"texttemplate",parseMultDiv:!0};xe.texttemplateStringForShapes=function(){return Fb.apply(jse,arguments)};var xS=/^[:|\|]/;function Fb(e,r,t){var a=this,n=arguments;return r||(r={}),e.replace(xe.TEMPLATE_STRING_REGEX,function(i,o,l){var s=o==="xother"||o==="yother",u=o==="_xother"||o==="_yother",f=o==="_xother_"||o==="_yother_",c=o==="xother_"||o==="yother_",v=s||u||c||f,d=o;(u||f)&&(d=d.substring(1)),(c||f)&&(d=d.substring(0,d.length-1));var p=null,m=null;if(a.parseMultDiv){var y=Vse(d);d=y.key,p=y.op,m=y.number}var x;if(v){if(x=r[d],x===void 0)return""}else{var w,_;for(_=3;_=Ip&&o<=_S,u=l>=Ip&&l<=_S;if(s&&(a=10*a+o-Ip),u&&(n=10*n+l-Ip),!s||!u){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var Df=2e9;xe.seedPseudoRandom=function(){Df=2e9};xe.pseudoRandom=function(){var e=Df;return Df=(69069*Df+1)%4294967296,Math.abs(Df-e)<429496729?xe.pseudoRandom():Df/4294967296};xe.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=xe.extractOption(e,r,"htx","hovertext");if(xe.isValidTextValue(n))return a(n);var i=xe.extractOption(e,r,"tx","text");if(xe.isValidTextValue(i))return a(i)};xe.isValidTextValue=function(e){return e||e===0};xe.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,xe.strTranslate(n-u*(t+o),i-u*(a+l))+xe.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};xe.setTransormAndDisplay=function(e,r){e.attr("transform",xe.getTextTransform(r)),e.style("display",r.scale?null:"none")};xe.ensureUniformFontSize=function(e,r){var t=xe.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};xe.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)};xe.bigFont=function(e){return Math.round(1.2*e)};var wS=xe.getFirefoxVersion(),Wse=wS!==null&&wS<86;xe.getPositionFromD3Event=function(){return Wse?[eh.event.layerX,eh.event.layerY]:[eh.event.offsetX,eh.event.offsetY]}});var RS=N(()=>{"use strict";var Zse=Ee(),ES={"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(Nb in ES)DS=Nb.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Zse.addStyleRule(DS,ES[Nb]);var DS,Nb});var zb=N((VEe,PS)=>{PS.exports=!0});var Ob=N((jEe,FS)=>{"use strict";var Xse=zb(),Ib;typeof window.matchMedia=="function"?Ib=!window.matchMedia("(hover: none)").matches:Ib=Xse;FS.exports=Ib});var Qs=N((WEe,Bb)=>{"use strict";var Ff=typeof Reflect=="object"?Reflect:null,NS=Ff&&typeof Ff.apply=="function"?Ff.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Bp;Ff&&typeof Ff.ownKeys=="function"?Bp=Ff.ownKeys:Object.getOwnPropertySymbols?Bp=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Bp=function(r){return Object.getOwnPropertyNames(r)};function Jse(e){console&&console.warn&&console.warn(e)}var IS=Number.isNaN||function(r){return r!==r};function qt(){qt.init.call(this)}Bb.exports=qt;Bb.exports.once=eue;qt.EventEmitter=qt;qt.prototype._events=void 0;qt.prototype._eventsCount=0;qt.prototype._maxListeners=void 0;var zS=10;function Hp(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(qt,"defaultMaxListeners",{enumerable:!0,get:function(){return zS},set:function(e){if(typeof e!="number"||e<0||IS(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");zS=e}});qt.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};qt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||IS(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 OS(e){return e._maxListeners===void 0?qt.defaultMaxListeners:e._maxListeners}qt.prototype.getMaxListeners=function(){return OS(this)};qt.prototype.emit=function(r){for(var t=[],a=1;a0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")NS(s,this,t);else for(var u=s.length,f=YS(s,u),a=0;a0&&o.length>n&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,Jse(l)}return e}qt.prototype.addListener=function(r,t){return BS(this,r,t,!1)};qt.prototype.on=qt.prototype.addListener;qt.prototype.prependListener=function(r,t){return BS(this,r,t,!0)};function $se(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function HS(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=$se.bind(a);return n.listener=t,a.wrapFn=n,n}qt.prototype.once=function(r,t){return Hp(t),this.on(r,HS(this,r,t)),this};qt.prototype.prependOnceListener=function(r,t){return Hp(t),this.prependListener(r,HS(this,r,t)),this};qt.prototype.removeListener=function(r,t){var a,n,i,o,l;if(Hp(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,o=a.length-1;o>=0;o--)if(a[o]===t||a[o].listener===t){l=a[o].listener,i=o;break}if(i<0)return this;i===0?a.shift():Kse(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};qt.prototype.off=qt.prototype.removeListener;qt.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),o;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function US(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?Qse(n):YS(n,n.length)}qt.prototype.listeners=function(r){return US(this,r,!0)};qt.prototype.rawListeners=function(r){return US(this,r,!1)};qt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):GS.call(e,r)};qt.prototype.listenerCount=GS;function GS(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}qt.prototype.eventNames=function(){return this._eventsCount>0?Bp(this._events):[]};function YS(e,r){for(var t=new Array(r),a=0;a{"use strict";var Hb=Qs().EventEmitter,tue={init:function(e){if(e._ev instanceof Hb)return e;var r=new Hb,t=new Hb;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function o(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l{"use strict";var WS=Ee(),aue=Ws().dfltConfig;function nue(e,r){for(var t=[],a,n=0;naue.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};ol.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};ol.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};ol.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";JS.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var If=N(ca=>{"use strict";var fi=gr(),th=Ee(),Gp=mn(),Gb=Sf(),iue=Ub(),oue=Zv(),lue=Ws().configAttributes,$S=Xi(),Ki=th.extendDeepAll,Nf=th.isPlainObject,sue=th.isArrayOrTypedArray,Yp=th.nestedProperty,uue=th.valObjectMeta,Yb="_isSubplotObj",Vp="_isLinkedToArray",fue="_arrayAttrRegexps",QS="_deprecated",Vb=[Yb,Vp,fue,QS];ca.IS_SUBPLOT_OBJ=Yb;ca.IS_LINKED_TO_ARRAY=Vp;ca.DEPRECATED=QS;ca.UNDERSCORE_ATTRS=Vb;ca.get=function(){var e={};return fi.allTypes.forEach(function(r){e[r]=vue(r)}),{defs:{valObjects:uue,metaKeys:Vb.concat(["description","role","editType","impliedEdits"]),editType:{traces:$S.traces,layout:$S.layout},impliedEdits:{}},traces:e,layout:hue(),frames:due(),animation:zf(oue),config:zf(lue)}};ca.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(Vb.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!ca.isValObject(o)&&Nf(o)&&i!=="impliedEdits"&&ca.crawl(o,r,n+1,l)}})};ca.isValObject=function(e){return e&&e.valType!==void 0};ca.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function o(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var v=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));v&&l(n,0,"")}function l(s,u,f){var c=s[t[u]],v=f+t[u];if(u===t.length-1)sue(c)&&r.push(i+v);else if(a[u]){if(Array.isArray(c))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!Up(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function Up(e){return e===Math.round(e)&&e>=0}function vue(e){var r,t;r=fi.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Ki({},Gp),i=Ki({},r.attributes);ca.crawl(i,function(s,u,f,c,v){Yp(n,v).set(void 0),s===void 0&&Yp(i,v).set(void 0)}),Ki(a,n),fi.traceIs(e,"noOpacity")&&delete a.opacity,fi.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),fi.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Ki(a,i),t.attributes&&Ki(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:zf(a)};if(r.layoutAttributes){var l={};Ki(l,r.layoutAttributes),o.layoutAttributes=zf(l)}return r.animatable||ca.crawl(o,function(s){ca.isValObject(s)&&"anim"in s&&delete s.anim}),o}function hue(){var e={},r,t;Ki(e,Gb);for(r in fi.subplotsRegistry)if(t=fi.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Of=Ee(),bue=mn(),Wl="templateitemname",jb={name:{valType:"string",editType:"none"}};jb[Wl]={valType:"string",editType:"calc"};eu.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=jb.name,r[Wl]=jb[Wl],r};eu.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=Of.coerce(i,{},bue,"type");var o={type:t,_template:null};if(t in r){a=e[t];var l=r[t]%a.length;r[t]++,o._template=a[l]}return o}return{newTrace:n}};eu.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Of.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};eu.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[tq(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(u){var f={name:u.name,_input:u},c=f[Wl]=u[Wl];if(!rq(c))return f._template=n,f;for(var v=0;v=a&&(t._input||{})._templateitemname;i&&(n=a);var o=r+"["+n+"]",l;function s(){l={},i&&(l[o]={},l[o][Wl]=i)}s();function u(d,p){l[d]=p}function f(d,p){i?Of.nestedProperty(l[o],d).set(p):l[o+"."+d]=p}function c(){var d=l;return s(),d}function v(d,p){d&&f(d,p);var m=c();for(var y in m)Of.nestedProperty(e,y).set(m[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:v}}});var Ca=N((QEe,aq)=>{"use strict";var ah=Af().counter;aq.exports={idRegex:{x:ah("x","( domain)?"),y:ah("y","( domain)?")},attrRegex:ah("[xy]axis"),xAxisMatch:ah("xaxis"),yAxisMatch:ah("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 va=N(Cn=>{"use strict";var xue=gr(),Wb=Ca();Cn.id2name=function(r){if(!(typeof r!="string"||!r.match(Wb.AX_ID_PATTERN))){var t=r.split(" ")[0].substr(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Cn.name2id=function(r){if(r.match(Wb.AX_NAME_PATTERN)){var t=r.substr(5);return t==="1"&&(t=""),r.charAt(0)+t}};Cn.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(Wb.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].substr(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};Cn.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Cn.listIds(e,r),i=new Array(n.length),o;for(o=0;oa?1:-1:+(e.substr(1)||1)-+(r.substr(1)||1)};Cn.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function nq(e,r){if(r&&r.length){for(var t=0;t{"use strict";function _ue(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function wue(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}iq.exports={clearOutlineControllers:_ue,clearOutline:wue}});var jp=N((tDe,oq)=>{"use strict";oq.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Xp=N(Zp=>{"use strict";var Wp=gr(),aDe=Ca().SUBPLOT_PATTERN;Zp.getSubplotCalcData=function(e,r,t){var a=Wp.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o{"use strict";var Tue=gr(),Bf=Ee();ru.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=ru.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(o)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(o){lq(e,o,n.cache),n.check=function(){if(i){var f=lq(e,o,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;Bf.isPlainObject(i)?Zb(i,r,o,a+1):r(o,n,i)}})}});var ea=N((oDe,Aq)=>{"use strict";var mq=Sr(),Mue=xf().timeFormatLocale,kue=Q3().formatLocale,nh=Rr(),Sue=eb(),Kr=gr(),gq=If(),que=_t(),vr=Ee(),bq=Tr(),cq=Ft().BADNUM,En=va(),Lue=Zl().clearOutline,Cue=jp(),Xb=Zv(),Eue=Ub(),Due=Xp().getModuleCalcData,vq=vr.relinkPrivateKeys,tu=vr._,er=Aq.exports={};vr.extendFlat(er,Kr);er.attributes=mn();er.attributes.type.values=er.allTypes;er.fontAttrs=fa();er.layoutAttributes=Sf();var $p=fq();er.executeAPICommand=$p.executeAPICommand;er.computeAPICommandBindings=$p.computeAPICommandBindings;er.manageCommandObserver=$p.manageCommandObserver;er.hasSimpleAPICommandBindings=$p.hasSimpleAPICommandBindings;er.redrawText=function(e){return e=vr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Kr.getComponentMethod("annotations","draw")(e),Kr.getComponentMethod("legend","draw")(e),Kr.getComponentMethod("colorbar","draw")(e),r(er.previousPromises(e)))},300)})};er.resize=function(e){e=vr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||vr.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||vr.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Kr.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};er.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};er.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=vr.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:bq.defaultLine,"pointer-events":"all"}).each(function(){var u=mq.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),a=t.node(),n={y:r._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=r.width-20?(n["text-anchor"]="start",n.x=5):(n["text-anchor"]="end",n.x=r._paper.attr("width")-7),t.attr(n);var i=t.select(".js-link-to-tool"),o=t.select(".js-link-spacer"),l=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&Rue(e,i),o.text(i.text()&&l.text()?" - ":"")}};function Rue(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){er.sendDataToCloud(e)});else{var a=window.location.pathname.split("/"),n=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}er.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=mq.select(e).append("div").attr("id","hiddenform").style("display","none"),a=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),n=a.append("input").attr({type:"text",name:"data"});return n.node().value=er.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var Pue=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Fue=["year","month","dayMonth","dayMonthYear"];er.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||er.createTransitionData(e),n._dfltTitle={plot:tu(e,"Click to enter Plot title"),subtitle:tu(e,"Click to enter Plot subtitle"),x:tu(e,"Click to enter X axis title"),y:tu(e,"Click to enter Y axis title"),colorbar:tu(e,"Click to enter Colorscale title"),annotation:tu(e,"new text")},n._traceWord=tu(e,"trace");var v=hq(e,Pue);if(n._mapboxAccessToken=f.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,p=a.height;er.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),er.sanitizeMargins(n)}else{er.supplyLayoutGlobalDefaults(i,n,v);var m=!i.width||!i.height,y=n.autosize,x=f.autosizable,w=m&&(y||x);w?er.plotAutoSize(e,i,n):m&&er.sanitizeMargins(n),!y&&m&&(i.width=n.width,i.height=n.height)}n._d3locale=Iue(v,n.separators),n._extraFormat=hq(e,Fue),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=zue(),b=n._splomAxes={x:{},y:{}},T=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=Nue(o,s),er.supplyDataDefaults(s,l,i,n);var k=Object.keys(b.x),M=Object.keys(b.y);if(k.length>1&&M.length>1){for(Kr.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&M.length>15&&n.shapes.length===0&&n.images.length===0,er.linkSubplots(l,n,o,a),er.cleanPlot(l,n,o,a);var R=!!(a._has&&a._has("cartesian")),z=!!(n._has&&n._has("cartesian")),O=R,B=z;O&&!B?a._bgLayer.remove():B&&!O&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Lue({_fullLayout:a}),Oue(l,n),vq(n,a),Kr.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var V=n._tracePreGUI,G={},U;for(U in V)G[U]="old";for(c=0;c0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var c=er.layoutAttributes.width.min,v=er.layoutAttributes.height.min;o1,p=!t.height&&Math.abs(a.height-l)>1;(p||d)&&(d&&(a.width=o),p&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),er.sanitizeMargins(a)};er.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Kr.componentsRegistry,i=r._basePlotModules,o,l,s,u=Kr.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Kr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(vr.subplotSort);for(l=0;l1&&(t.l/=y,t.r/=y)}if(v){var x=(t.t+t.b)/v;x>1&&(t.t/=x,t.b/=x)}var w=t.xl!==void 0?t.xl:t.x,_=t.xr!==void 0?t.xr:t.x,b=t.yt!==void 0?t.yt:t.y,T=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:w,size:t.l+m},r:{val:_,size:t.r+m},b:{val:T,size:t.b+m},t:{val:b,size:t.t+m}},p[r]=1}if(!a._replotting)return er.doAutoMargin(e)}};function Hue(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=En.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}er.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),xq(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=vr.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,v=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,m=r.minreducedheight;if(i.autoexpand!==!1){for(var y in v)d[y]||delete v[y];var x=e._fullLayout._reservedMargin;for(var w in x)for(var _ in x[w]){var b=x[w][_];o[_]=Math.max(o[_],b)}v.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var T in o){var k=0;for(var M in v)M!=="base"&&nh(v[M][T].size)&&(k=v[M][T].size>k?v[M][T].size:k);var S=Math.max(0,i[T]-k);o[T]=Math.max(0,o[T]-S)}for(var E in v){var D=v[E].l||{},P=v[E].b||{},R=D.val,z=D.size,O=P.val,B=P.size,V=t-o.r-o.l,G=a-o.t-o.b;for(var U in v){if(nh(z)&&v[U].r){var Y=v[U].r.val,J=v[U].r.size;if(Y>R){var Z=(z*Y+(J-V)*R)/(Y-R),re=(J*(1-R)+(z-V)*(1-Y))/(Y-R);Z+re>s+u&&(s=Z,u=re)}}if(nh(B)&&v[U].t){var fe=v[U].t.val,ie=v[U].t.size;if(fe>O){var ue=(B*fe+(ie-G)*O)/(fe-O),K=(ie*(1-O)+(B-G)*(1-fe))/(fe-O);ue+K>c+f&&(c=ue,f=K)}}}}}var ye=vr.constrain(t-i.l-i.r,_q,p),se=vr.constrain(a-i.t-i.b,wq,m),ve=Math.max(0,t-ye),oe=Math.max(0,a-se);if(ve){var ce=(s+u)/ve;ce>1&&(s/=ce,u/=ce)}if(oe){var j=(c+f)/oe;j>1&&(c/=j,f/=j)}if(n.l=Math.round(s)+o.l,n.r=Math.round(u)+o.r,n.t=Math.round(f)+o.t,n.b=Math.round(c)+o.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(er.didMarginChange(l,n)||Hue(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Q=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};er.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&er.supplyDefaults(e);var o=n?e._fullData:e.data,l=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(v,d){if(typeof v=="function")return d?"_function_":null;if(vr.isPlainObject(v)){var p={},m;return Object.keys(v).sort().forEach(function(_){if(["_","["].indexOf(_.charAt(0))===-1){if(typeof v[_]=="function"){d&&(p[_]="_function");return}if(t==="keepdata"){if(_.substr(_.length-3)==="src")return}else if(t==="keepstream"){if(m=v[_+"src"],typeof m=="string"&&m.indexOf(":")>0&&!vr.isPlainObject(v.stream))return}else if(t!=="keepall"&&(m=v[_+"src"],typeof m=="string"&&m.indexOf(":")>0))return;p[_]=u(v[_],d)}}),p}var y=Array.isArray(v),x=vr.isTypedArray(v);if((y||x)&&v.dtype&&v.shape){var w=v.bdata;return u({dtype:v.dtype,shape:v.shape,bdata:vr.isArrayBuffer(w)?Sue.encode(w):w},d)}return y?v.map(function(_){return u(_,d)}):x?vr.simpleMap(v,vr.identity):vr.isJSDate(v)?vr.ms2DateTimeLocal(+v):v}var f={data:(o||[]).map(function(v){var d=u(v);return r&&delete d.fit,d})};if(!r&&(f.layout=u(l),n)){var c=l._size;f.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return s&&(f.frames=u(s)),i&&(f.config=u(e._context,!0)),a==="object"?f:JSON.stringify(f)};er.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Kr.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var v=0,d=0;function p(){return v++,function(){d++,!a&&d===v&&l(c)}}t.runFn(p),setTimeout(p())})}function l(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Kr.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[er.previousPromises,s,t.prepareFn,er.rehover,er.reselect,o],f=vr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}er.doCalcdata=function(e,r){var t=En.list(e),a=e._fullData,n=e._fullLayout,i,o,l,s,u=new Array(a.length),f=(e.calcdata||[]).slice();for(e.calcdata=u,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},l=0;l=0;s--)if(T[s].enabled){i._indexToPoints=T[s]._indexToPoints;break}o&&o.calc&&(b=o.calc(e,i))}(!Array.isArray(b)||!b[0])&&(b=[{x:cq,y:cq}]),b[0].t||(b[0].t={}),b[0].trace=i,u[w]=b}}for(pq(t,a,n),l=0;l{"use strict";au.xmlns="http://www.w3.org/2000/xmlns/";au.svg="http://www.w3.org/2000/svg";au.xlink="http://www.w3.org/1999/xlink";au.svgAttrs={xmlns:au.svg,"xmlns:xlink":au.xlink}});var Xa=N((sDe,Mq)=>{"use strict";Mq.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 Ea=N(ci=>{"use strict";var ta=Sr(),sl=Ee(),Vue=sl.strTranslate,Jb=ll(),jue=Xa().LINE_SPACING,Wue=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;ci.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(Wue),i=ta.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=ofe(e.node(),a);s&&e.style("pointer-events","all"),ci.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u};$ue(n[2],f,function(c,v,d){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var p=c&&c.select("svg");if(!p||!p.node()){l(),s();return}var m=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});m.node().appendChild(p.node()),v&&v.node()&&p.node().insertBefore(v.node().cloneNode(!0),p.node().firstChild);var y=d.width,x=d.height;p.attr({class:o,height:x,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var w=e.node().style.fill||"black",_=p.select("g");_.attr({fill:w,stroke:w});var b=_.node().getBoundingClientRect(),T=b.width,k=b.height;(T>y||k>x)&&(p.style("overflow","hidden"),b=p.node().getBoundingClientRect(),T=b.width,k=b.height);var M=+e.attr("x"),S=+e.attr("y"),E=u||e.node().getBoundingClientRect().height,D=-E/4;if(o[0]==="y")m.attr({transform:"rotate("+[-90,M,S]+")"+Vue(-T/2,D-k/2)});else if(o[0]==="l")S=D-k/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)M=0,S=D;else{var P=e.attr("text-anchor");M=M-T*(P==="middle"?.5:P==="end"?1:0),S=S+D-k/2}p.attr({x:M,y:S}),t&&t.call(e,m),s(m)})})):l(),e};var Zue=/(<|<|<)/g,Xue=/(>|>|>)/g;function Jue(e){return e.replace(Zue,"\\lt ").replace(Xue,"\\gt ")}var kq=[["$","$"],["\\(","\\)"]];function $ue(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){sl.warn("No MathJax version:",MathJax.version);return}var n,i,o,l,s=function(){return i=sl.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:kq},displayAlign:"left"})},u=function(){i=sl.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=kq},f=function(){if(n=MathJax.Hub.config.menuSettings.renderer,n!=="SVG")return MathJax.Hub.setRenderer("SVG")},c=function(){n=MathJax.config.startup.output,n!=="svg"&&(MathJax.config.startup.output="svg")},v=function(){var w="math-output-"+sl.randstr({},64);l=ta.select("body").append("div").attr({id:w}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(Jue(e));var _=l.node();return a===2?MathJax.Hub.Typeset(_):MathJax.typeset([_])},d=function(){var w=l.select(a===2?".MathJax_SVG":".MathJax"),_=!w.empty()&&l.select("svg").node();if(!_)sl.log("There was an error in the tex syntax.",e),t();else{var b=_.getBoundingClientRect(),T;a===2?T=ta.select("body").select("#MathJax_SVG_glyphs"):T=w.select("defs"),t(w,T,b)}l.remove()},p=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},m=function(){n!=="svg"&&(MathJax.config.startup.output=n)},y=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(i)},x=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(s,f,v,d,p,y):a===3&&(u(),c(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){v(),d(),m(),x()}))}var Cq={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},Kue={sub:"0.3em",sup:"-0.6em"},Que={sub:"-0.21em",sup:"0.42em"},Sq="\u200B",qq=["http:","https:","mailto:","",void 0,":"],Eq=ci.NEWLINES=/(\r\n?|\n)/g,Kb=/(<[^<>]*>)/,Qb=/<(\/?)([^ >]*)(\s+(.*))?>/i,efe=//i;ci.BR_TAG_ALL=//gi;var Dq=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Rq=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,Pq=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,rfe=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function nu(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&Kp(a)}var tfe=/(^|;)\s*color:/;ci.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,o=e.split(Kb),l=[],s="",u=0,f=0;fi?l.push(c.substr(0,m-i)+n):l.push(c.substr(0,m));break}s=""}}return l.join("")};var afe={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},nfe=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Kp(e){return e.replace(nfe,function(r,t){var a;return t.charAt(0)==="#"?a=ife(t.charAt(1)==="x"?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):a=afe[t],a||r})}ci.convertEntities=Kp;function ife(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function ofe(e,r){r=r.replace(Eq," ");var t=!1,a=[],n,i=-1;function o(){i++;var k=document.createElementNS(Jb.svg,"tspan");ta.select(k).attr({class:"line",dy:i*jue+"em"}),e.appendChild(k),n=k;var M=a;if(a=[{node:k}],M.length>1)for(var S=1;S.",r);return}var M=a.pop();k!==M.type&&sl.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=efe.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(Kb),v=0;v{"use strict";var lfe=Sr(),e1=kn(),oh=Rr(),Qp=Ee(),Nq=Tr(),sfe=Vs().isValid;function ufe(e,r,t){var a=r?Qp.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(Qp.isArrayOrTypedArray(n)){for(var o=0;o=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function Uq(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),o=0;o{"use strict";var Yq=gb(),cfe=Yq.FORMAT_LINK,vfe=Yq.DATE_FORMAT_LINK;function hfe(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?ex:Vq)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function ex(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+cfe+"."].join(" ")}function Vq(e,r){return ex(e,r)+[" And for dates see: "+vfe+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}jq.exports={axisHoverFormat:hfe,descriptionOnlyNumbers:ex,descriptionWithDates:Vq}});var hi=N((vDe,uL)=>{"use strict";var Wq=fa(),Hf=li(),sL=si().dash,tx=bt().extendFlat,Zq=_t().templatedArray,Xq=Qi().descriptionWithDates,dfe=Ft().ONEDAY,Mo=Ca(),pfe=Mo.HOUR_PATTERN,yfe=Mo.WEEKDAY_PATTERN,rx={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},mfe=tx({},rx,{values:rx.values.slice().concat(["sync"])});function Jq(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var $q={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Kq={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Qq={valType:"data_array",editType:"ticks"},eL={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function rL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function tL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var aL={valType:"color",dflt:Hf.defaultLine,editType:"ticks"},nL={valType:"color",dflt:Hf.lightLine,editType:"ticks"};function iL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var oL=tx({},sL,{editType:"ticks"}),lL={valType:"boolean",editType:"ticks"};uL.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Hf.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:Wq({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Mo.idRegex.x.toString(),Mo.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Mo.idRegex.x.toString(),Mo.idRegex.y.toString()],editType:"calc"},rangebreaks:Zq("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[yfe,pfe,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:dfe},editType:"calc"}),tickmode:mfe,nticks:Jq(),tick0:$q,dtick:Kq,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:Qq,ticktext:{valType:"data_array",editType:"ticks"},ticks:eL,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:rL(),tickwidth:tL(),tickcolor:aL,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:tx({},sL,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:Wq({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],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:Xq("tick label")},tickformatstops:Zq("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:Xq("hover text")},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Hf.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:lL,gridcolor:nL,gridwidth:iL(),griddash:oL,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Hf.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Hf.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Mo.idRegex.x.toString(),Mo.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Mo.idRegex.x.toString(),Mo.idRegex.y.toString()],editType:"plot"},minor:{tickmode:rx,nticks:Jq("minor"),tick0:$q,dtick:Kq,tickvals:Qq,ticks:eL,ticklen:rL("minor"),tickwidth:tL("minor"),tickcolor:aL,gridcolor:nL,gridwidth:iL("minor"),griddash:oL,showgrid:lL,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 r1=N((hDe,vL)=>{"use strict";var Lt=hi(),fL=fa(),cL=bt().extendFlat,gfe=Xi().overrideAll;vL.exports=gfe({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:Lt.linecolor,outlinewidth:Lt.linewidth,bordercolor:Lt.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Lt.minor.tickmode,nticks:Lt.nticks,tick0:Lt.tick0,dtick:Lt.dtick,tickvals:Lt.tickvals,ticktext:Lt.ticktext,ticks:cL({},Lt.ticks,{dflt:""}),ticklabeloverflow:cL({},Lt.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:Lt.ticklen,tickwidth:Lt.tickwidth,tickcolor:Lt.tickcolor,ticklabelstep:Lt.ticklabelstep,showticklabels:Lt.showticklabels,labelalias:Lt.labelalias,tickfont:fL({}),tickangle:Lt.tickangle,tickformat:Lt.tickformat,tickformatstops:Lt.tickformatstops,tickprefix:Lt.tickprefix,showtickprefix:Lt.showtickprefix,ticksuffix:Lt.ticksuffix,showticksuffix:Lt.showticksuffix,separatethousands:Lt.separatethousands,exponentformat:Lt.exponentformat,minexponent:Lt.minexponent,showexponent:Lt.showexponent,title:{text:{valType:"string"},font:fL({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var ko=N((pDe,dL)=>{"use strict";var bfe=r1(),xfe=Af().counter,_fe=kb(),hL=Vs().scales,dDe=_fe(hL);function t1(e){return"`"+e+"`"}dL.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:a==="z",l=typeof t.colorscaleDflt=="string"?hL[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+t1(u+f));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",m=a+"max",y=a+"mid",x=t1(u+d),w=t1(u+p),_=t1(u+m),b=w+" and "+_,T={};T[p]=T[m]=void 0;var k={};k[d]=!1;var M={};return f==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},M.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=bfe),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:xfe("coloraxis"),dflt:null,editType:"calc"}),M}});var nx=N((yDe,pL)=>{"use strict";var wfe=bt().extendFlat,Tfe=ko(),ax=Vs().scales;pL.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:ax.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:ax.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:ax.RdBu,editType:"calc"}},coloraxis:wfe({_isSubplotObj:!0,editType:"calc"},Tfe("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var ix=N((mDe,yL)=>{"use strict";var Afe=Ee();yL.exports=function(r){return Afe.isPlainObject(r.colorbar)}});var sx=N(lx=>{"use strict";var ox=Rr(),mL=Ee(),gL=Ft(),Mfe=gL.ONEDAY,kfe=gL.ONEWEEK;lx.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Mfe:1;if(!e)return i;if(ox(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var o=e.charAt(0),l=e.substr(1);return l=ox(l)?Number(l):0,l<=0||!(a&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};lx.tick0=function(e,r,t,a){if(r==="date")return mL.cleanDate(e,mL.dateTick0(t,a%kfe===0?1:0));if(!(a==="D1"||a==="D2"))return ox(e)?Number(e):0}});var a1=N((bDe,xL)=>{"use strict";var bL=sx(),Sfe=Ee().isArrayOrTypedArray,qfe=Vn().isTypedArraySpec,Lfe=Vn().decodeTypedArraySpec;xL.exports=function(r,t,a,n,i){i||(i={});var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,u=o?"minor.":"";function f(w){var _=l[w];return qfe(_)&&(_=Lfe(_)),_!==void 0?_:(s._template||{})[w]}var c=f("tick0"),v=f("dtick"),d=f("tickvals"),p=Sfe(d)?"array":v?"linear":"auto",m=a(u+"tickmode",p);if(m==="auto"||m==="sync")a(u+"nticks");else if(m==="linear"){var y=s.dtick=bL.dtick(v,n);s.tick0=bL.tick0(c,n,t.calendar,y)}else if(n!=="multicategory"){var x=a(u+"tickvals");x===void 0?s.tickmode="auto":o||a("ticktext")}}});var n1=N((xDe,wL)=>{"use strict";var ux=Ee(),_L=hi();wL.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?_L.minor:_L,u=i?"minor.":"",f=ux.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=ux.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),v=ux.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=a(u+"ticks",!i&&n.outerTicks||f||c||v?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var fx=N((_De,TL)=>{"use strict";TL.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var eo=N((wDe,AL)=>{"use strict";var i1=Ee(),Cfe=_t();AL.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=i1.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=Cfe.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var cx=Ee(),Efe=Tr().contrast,ML=hi(),Dfe=fx(),Rfe=eo();kL.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");cx.isPlainObject(o)||delete t.labelalias;var l=Dfe(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",v=c.indexOf("inside")!==-1?Efe(i.bgColor):f&&f!==ML.color.dflt?f:u.color;if(cx.coerceFont(a,"tickfont",u,{overrideDflt:{color:v}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");Rfe(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Pfe}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",l),a("exponentformat"),a("minexponent"),a("separatethousands"))}}};function Pfe(e,r){function t(n,i){return cx.coerce(e,r,ML.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var l1=N((ADe,SL)=>{"use strict";var Ffe=fx();SL.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=Ffe(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var vx=N((MDe,qL)=>{"use strict";var Xl=Ee(),Nfe=_t(),zfe=a1(),Ife=n1(),Ofe=o1(),Bfe=l1(),Hfe=r1();qL.exports=function(r,t,a){var n=Nfe.newContainer(t,"colorbar"),i=r.colorbar||{};function o(P,R){return Xl.coerce(i,n,Hfe,P,R)}var l=a.margin||{t:0,b:0,l:0,r:0},s=a.width-l.l-l.r,u=a.height-l.t-l.b,f=o("orientation"),c=f==="v",v=o("thicknessmode");o("thickness",v==="fraction"?30/(c?s:u):30);var d=o("lenmode");o("len",d==="fraction"?1:c?u:s);var p=o("yref"),m=o("xref"),y=p==="paper",x=m==="paper",w,_,b,T="left";c?(b="middle",T=x?"left":"right",w=x?1.02:1,_=.5):(b=y?"bottom":"top",T="center",w=.5,_=y?1.02:1),Xl.coerce(i,n,{x:{valType:"number",min:x?-2:0,max:x?3:1,dflt:w}},"x"),Xl.coerce(i,n,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:_}},"y"),o("xanchor",T),o("xpad"),o("yanchor",b),o("ypad"),Xl.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var k=Xl.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),zfe(i,n,o,"linear");var M=a.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};k.indexOf("inside")!==-1&&(S.bgColor="black"),Bfe(i,n,o,"linear",S),Ofe(i,n,o,"linear",S),Ife(i,n,o,"linear",S),o("title.text",a._dfltTitle.colorbar);var E=n.showticklabels?n.tickfont:M,D=Xl.extendFlat({},M,{family:E.family,size:Xl.bigFont(E.size)});Xl.coerceFont(o,"title.font",D),o("title.side",c?"top":"right")}});var ul=N((kDe,EL)=>{"use strict";var LL=Rr(),dx=Ee(),Ufe=ix(),Gfe=vx(),CL=Vs().isValid,Yfe=gr().traceIs;function hx(e,r){var t=r.slice(0,r.length-1);return r?dx.nestedProperty(e,t).get()||{}:e}EL.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=hx(r,o),f=hx(t,o),c=hx(t._template||{},o)||{},v=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},p=n(o+"coloraxis");if(p){var m=Yfe(t,"contour")&&dx.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[p];y?(y[2].push(v),y[0]!==m&&(y[0]=!1,dx.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[m,t,[v]];return}}var x=u[l+"min"],w=u[l+"max"],_=LL(x)&&LL(w)&&x{"use strict";var DL=Ee(),Vfe=_t(),RL=nx(),jfe=ul();PL.exports=function(r,t){function a(c,v){return DL.coerce(r,t,RL,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return DL.coerce(i,o,RL.coloraxis,c,v)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},o=Vfe.newContainer(t,s,"coloraxis"),o._name=s,jfe(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var Wfe=Ee(),Zfe=vi().hasColorscale,Xfe=vi().extractOpts;NL.exports=function(r,t){function a(f,c){var v=f["_"+c];v!==void 0&&(f[c]=v)}function n(f,c){var v=c.container?Wfe.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=Xfe(v),p=d.auto;(p||d.min===void 0)&&a(v,c.min),(p||d.max===void 0)&&a(v,c.max),d.autocolorscale&&a(v,"colorscale")}}for(var i=0;i{"use strict";var IL=Rr(),px=Ee(),Jfe=vi().extractOpts;OL.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?px.nestedProperty(t,o).get():t,s=Jfe(l),u=s.auto!==!1,f=s.min,c=s.max,v=s.mid,d=function(){return px.aggNums(Math.min,null,i)},p=function(){return px.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&IL(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(l._colorAx&&IL(c)?c=Math.max(c,p()):c=p()),u&&v!==void 0&&(c-v>v-f?f=v-(c-v):c-v=0?m=n.colorscale.sequential:m=n.colorscale.sequentialminus,s._sync("colorscale",m)}}});var So=N((CDe,BL)=>{"use strict";var s1=Vs(),Uf=vi();BL.exports={moduleType:"component",name:"colorscale",attributes:ko(),layoutAttributes:nx(),supplyLayoutDefaults:FL(),handleDefaults:ul(),crossTraceDefaults:zL(),calc:lh(),scales:s1.scales,defaultScale:s1.defaultScale,getScale:s1.get,isValidScale:s1.isValid,hasColorscale:Uf.hasColorscale,extractOpts:Uf.extractOpts,extractScale:Uf.extractScale,flipScale:Uf.flipScale,makeColorScaleFunc:Uf.makeColorScaleFunc,makeColorScaleFuncFromTrace:Uf.makeColorScaleFuncFromTrace}});var Dn=N((EDe,UL)=>{"use strict";var HL=Ee(),$fe=Vn().isTypedArraySpec;UL.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 HL.isPlainObject(r)&&(HL.isArrayOrTypedArray(r.size)||$fe(r.size))}}});var YL=N((DDe,GL)=>{"use strict";var Kfe=Rr();GL.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,o=a.sizemode==="area"?function(l){return Math.sqrt(l/n)}:function(l){return l/n};return function(l){var s=o(l/t);return Kfe(s)&&s>0?Math.max(s,i):0}}});var qo=N(Ja=>{"use strict";var VL=Ee();Ja.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Ja.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{ZL.exports=ace;var yx={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},tce=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function ace(e){var r=[];return e.replace(tce,function(t,a,n){var i=a.toLowerCase();for(n=ice(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==yx[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var oce=mx(),Je=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},qr="M0,0Z",XL=Math.sqrt(2),Jl=Math.sqrt(3),gx=Math.PI,bx=Math.cos,xx=Math.sin;eC.exports={circle:{n:0,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Cr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.3,2);return Cr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.4,2),n=Je(e*1.2,2);return Cr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.8/XL,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return Cr(r,t,"M0,"+a+n+i+o+i+o+l+o+l+n+l+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2/Jl,2),n=Je(e/2,2),i=Je(e,2);return Cr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2/Jl,2),n=Je(e/2,2),i=Je(e,2);return Cr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2/Jl,2),n=Je(e/2,2),i=Je(e,2);return Cr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2/Jl,2),n=Je(e/2,2),i=Je(e,2);return Cr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Cr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Cr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Cr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Cr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.951,2),n=Je(e*.588,2),i=Je(-e,2),o=Je(e*-.309,2),l=Je(e*.809,2);return Cr(r,t,"M"+a+","+o+"L"+n+","+l+"H-"+n+"L-"+a+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e/2,2),i=Je(e*Jl/2,2);return Cr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e/2,2),i=Je(e*Jl/2,2);return Cr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.924,2),n=Je(e*.383,2);return Cr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(Lr(r))return qr;var a=e*1.4,n=Je(a*.225,2),i=Je(a*.951,2),o=Je(a*.363,2),l=Je(a*.588,2),s=Je(-a,2),u=Je(a*-.309,2),f=Je(a*.118,2),c=Je(a*.809,2),v=Je(a*.382,2);return Cr(r,t,"M"+n+","+u+"H"+i+"L"+o+","+f+"L"+l+","+c+"L0,"+v+"L-"+l+","+c+"L-"+o+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.66,2),n=Je(e*.38,2),i=Je(e*.76,2);return Cr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*Jl*.8,2),n=Je(e*.8,2),i=Je(e*1.6,2),o=Je(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Cr(r,t,"M-"+a+","+n+l+a+","+n+l+"0,-"+i+l+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*Jl*.8,2),n=Je(e*.8,2),i=Je(e*1.6,2),o=Je(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Cr(r,t,"M"+a+",-"+n+l+"-"+a+",-"+n+l+"0,"+i+l+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.1,2),n=Je(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Cr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.4,2),n=Je(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Cr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.7,2),n=Je(e*1.4,2);return Cr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.4,2),n=Je(e*.7,2);return Cr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e/XL,2);return Cr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.3,2);return Cr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.3,2),n=Je(e*.65,2);return Cr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.4,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.2,2),n=Je(e*.85,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e/2,2),n=Je(e,2);return Cr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Cr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Cr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Cr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Cr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.4,2);return Cr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.4,2);return Cr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e*2,2);return Cr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e*2,2);return Cr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2,2),n=Je(e,2);return Cr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2,2),n=Je(e,2);return Cr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e*2,2);return Cr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e*2,2);return Cr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2,2),n=Je(e,2);return Cr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2,2),n=Je(e,2);return Cr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Lr(r))return qr;var a=gx/2.5,n=2*e*bx(a),i=2*e*xx(a);return Cr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Lr(r))return qr;var a=gx/4,n=2*e*bx(a),i=2*e*xx(a);return Cr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Lr(e){return e===null}var JL,$L,KL,QL;function Cr(e,r,t){if((!e||e%360===0)&&!r)return t;if(KL===e&&QL===r&&JL===t)return $L;KL=e,QL=r,JL=t;function a(y,x){var w=bx(y),_=xx(y),b=x[0],T=x[1]+(r||0);return[b*w-T*_,b*_+T*w]}for(var n=e/180*gx,i=0,o=0,l=oce(t),s="",u=0;u{"use strict";var wa=Sr(),mt=Ee(),lce=mt.numberFormat,su=Rr(),kx=kn(),f1=gr(),Ha=Tr(),sce=So(),uh=mt.strTranslate,c1=Ea(),uce=ll(),fce=Xa(),cce=fce.LINE_SPACING,cC=bp().DESELECTDIM,vce=Dn(),hce=YL(),dce=qo().appendArrayPointValue,tr=_C.exports={};tr.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Ha.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",_x(yce(f))),s&&e.style("text-shadow",s==="auto"?c1.makeTextShadow(Ha.contrast(i)):_x(s)),u&&e.style("text-decoration-line",_x(mce(u)))};function _x(e){return e==="none"?void 0:e}var pce={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function yce(e){return pce[e]}function mce(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}tr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};tr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};tr.setRect=function(e,r,t,a,n){e.call(tr.setPosition,r,t).call(tr.setSize,a,n)};tr.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(su(n)&&su(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",uh(n,i));else return!1;return!0};tr.translatePoints=function(e,r,t){e.each(function(a){var n=wa.select(this);tr.translatePoint(a,n,r,t)})};tr.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};tr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,o=i.xcalendar,l=i.ycalendar,s=f1.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){tr.hideOutsideRangePoint(u,wa.select(this),t,a,o,l)})})}};tr.crispRound=function(e,r,t){return!r||!su(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};tr.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=n||i.dash||"";Ha.stroke(r,a||i.color),tr.dashLine(r,l,o)};tr.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";wa.select(this).call(Ha.stroke,t||i.color).call(tr.dashLine,l,o)})};tr.dashLine=function(e,r,t){t=+t||0,r=tr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};tr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function vC(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=tr.getPatternAttr,l=n&&(o(n.shape,0,"")||o(n.path,0,""));if(l){var s=o(n.bgcolor,0,null),u=o(n.fgcolor,0,null),f=n.fgopacity,c=o(n.size,0,8),v=o(n.solidity,0,.3),d=r.uid;tr.pattern(e,"point",t,d,l,c,v,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var p=i.type,m="scatterfill-"+r.uid;if(a&&(m="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var y,x;p==="horizontal"?(y={x:i.start,y:0},x={x:i.stop,y:0}):p==="vertical"&&(y={x:0,y:i.start},x={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),x.x=r._xA.c2p(x.x===void 0?r._extremes.x.max[0].val:x.x,!0),x.y=r._yA.c2p(x.y===void 0?r._extremes.y.max[0].val:x.y,!0),e.call(pC,t,m,"linear",i.colorscale,"fill",y,x,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(tr.gradient,t,m,p,i.colorscale,"fill")}else r.fillcolor&&e.call(Ha.fill,r.fillcolor)}tr.singleFillStyle=function(e,r){var t=wa.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};vC(e,n,r,!1)};tr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=wa.select(this);a[0].trace&&vC(n,a[0].trace,r,t)})};var tC=rC();tr.symbolNames=[];tr.symbolFuncs=[];tr.symbolBackOffs=[];tr.symbolNeedLines={};tr.symbolNoDot={};tr.symbolNoFill={};tr.symbolList=[];Object.keys(tC).forEach(function(e){var r=tC[e],t=r.n;tr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),tr.symbolNames[t]=e,tr.symbolFuncs[t]=r.f,tr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(tr.symbolNeedLines[t]=!0),r.noDot?tr.symbolNoDot[t]=!0:tr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(tr.symbolNoFill[t]=!0)});var gce=tr.symbolNames.length,bce="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";tr.symbolNumber=function(e){if(su(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=tr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=gce||e>=400?0:Math.floor(Math.max(e,0))};function hC(e,r,t,a){var n=e%100;return tr.symbolFuncs[n](r,t,a)+(e>=200?bce:"")}var aC=lce("~f"),dC={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};tr.gradient=function(e,r,t,a,n,i){var o=dC[a];return pC(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function pC(e,r,t,a,n,i,o,l,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var v=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=tr.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=Lx(e,t),c=qx(e,t);r.attr("d",hC(u,s,f,c))}var v=!1,d,p,m;if(e.so)m=l.outlierwidth,p=l.outliercolor,d=o.outliercolor;else{var y=(l||{}).width;m=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):mt.isArrayOrTypedArray(l.color)?p=Ha.defaultLine:p=l.color,mt.isArrayOrTypedArray(o.color)&&(d=Ha.defaultLine,v=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}if(e.om)r.call(Ha.stroke,d).style({"stroke-width":(m||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:m)+"px");var x=o.gradient,w=e.mgt;w?v=!0:w=x&&x.type,mt.isArrayOrTypedArray(w)&&(w=w[0],dC[w]||(w=0));var _=o.pattern,b=tr.getPatternAttr,T=_&&(b(_.shape,e.i,"")||b(_.path,e.i,""));if(w&&w!=="none"){var k=e.mgc;k?v=!0:k=x.color;var M=t.uid;v&&(M+="-"+e.i),tr.gradient(r,n,M,w,[[0,k],[1,d]],"fill")}else if(T){var S=!1,E=_.fgcolor;!E&&i&&i.color&&(E=i.color,S=!0);var D=b(E,e.i,i&&i.color||null),P=b(_.bgcolor,e.i,null),R=_.fgopacity,z=b(_.size,e.i,8),O=b(_.solidity,e.i,.3);S=S||e.mcc||mt.isArrayOrTypedArray(_.shape)||mt.isArrayOrTypedArray(_.path)||mt.isArrayOrTypedArray(_.bgcolor)||mt.isArrayOrTypedArray(_.fgcolor)||mt.isArrayOrTypedArray(_.size)||mt.isArrayOrTypedArray(_.solidity);var B=t.uid;S&&(B+="-"+e.i),tr.pattern(r,"point",n,B,T,z,O,e.mcc,_.fillmode,P,D,R)}else mt.isArrayOrTypedArray(d)?Ha.fill(r,d[e.i]):Ha.fill(r,d);m&&Ha.stroke(r,p)}};tr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=tr.tryColorscale(t,""),r.lineScale=tr.tryColorscale(t,"line"),f1.traceIs(e,"symbols")&&(r.ms2mrc=vce.isBubble(e)?hce(e):function(){return(t.size||6)/2}),e.selectedpoints&&mt.extendFlat(r,tr.makeSelectedPointStyleFns(e)),r};tr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},o=a.marker||{},l=n.opacity,s=i.opacity,u=o.opacity,f=s!==void 0,c=u!==void 0;(mt.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(b){var T=b.mo===void 0?n.opacity:b.mo;return b.selected?f?s:T:c?u:cC*T});var v=n.color,d=i.color,p=o.color;(d||p)&&(r.selectedColorFn=function(b){var T=b.mcc||v;return b.selected?d||T:p||T});var m=n.size,y=i.size,x=o.size,w=y!==void 0,_=x!==void 0;return f1.traceIs(e,"symbols")&&(w||_)&&(r.selectedSizeFn=function(b){var T=b.mrc||m/2;return b.selected?w?y/2:T:_?x/2:T}),r};tr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},o=a.textfont||{},l=n.color,s=i.color,u=o.color;return r.selectedTextColorFn=function(f){var c=f.tc||l;return f.selected?s||c:u||(s?c:Ha.addOpacity(c,cC))},r};tr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=tr.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&n.push(function(i,o){Ha.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&n.push(function(i,o){var l=o.mx||a.symbol||0,s=t.selectedSizeFn(o);i.attr("d",hC(tr.symbolNumber(l),s,Lx(o,r),qx(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=wa.select(this),l=0;l0?t:0}tr.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=tr.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=wa.select(this),u=i?mt.extractOption(l,r,"txt","texttemplate"):mt.extractOption(l,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(l,r,o):{},v={};dce(v,r,l.i);var d=r._meta||{};u=mt.texttemplateString(u,c,o._d3locale,v,l,d)}var p=l.tp||r.textposition,m=mC(l,r),y=a?a(l):l.tc||r.textfont.color;s.call(tr.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:m,color:y}).text(u).call(c1.convertToTspans,t).call(yC,p,m,l.mrc)})}};tr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=tr.makeSelectedTextStyleFns(r);e.each(function(a){var n=wa.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=mC(a,r);Ha.fill(n,i);var s=f1.traceIs(r,"bar-like");yC(n,o,l,a.mrc2||a.mrc,s)})}};var nC=.5;tr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||b>=f&&b<=s)&&(T<=c&&T>=u||T>=c&&T<=u)&&(e=[b,T])}return e}tr.applyBackoff=xC;tr.makeTester=function(){var e=mt.ensureSingleById(wa.select("body"),"svg","js-plotly-tester",function(t){t.attr(uce.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=mt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});tr.tester=e,tr.testref=r};tr.savedBBoxes={};var Tx=0,wce=1e4;tr.bBox=function(e,r,t){t||(t=iC(e));var a;if(t){if(a=tr.savedBBoxes[t],a)return mt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=iC(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=tr.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,a=tr.savedBBoxes[t],a)return mt.extendFlat({},a)}}var u,f;r?u=e:(f=tr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),wa.select(u).attr("transform",null).call(c1.positionText,0,0);var c=u.getBoundingClientRect(),v=tr.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:c.height,width:c.width,left:c.left-v.left,top:c.top-v.top,right:c.right-v.left,bottom:c.bottom-v.top};return Tx>=wce&&(tr.savedBBoxes={},Tx=0),t&&(tr.savedBBoxes[t]=d),Tx++,mt.extendFlat({},d)};function iC(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}tr.setClipUrl=function(e,r,t){e.attr("clip-path",Sx(r,t))};function Sx(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}tr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};tr.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||0,t=t||0,o=o.replace(a,"").trim(),o+=uh(r,t),o=o.trim(),e[i]("transform",o),o};tr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};tr.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||1,t=t||1,o=o.replace(a,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var Tce=/\s*sc.*/;tr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(Tce,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var Ace=/translate\([^)]*\)\s*$/;tr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=wa.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(Ace);r===1&&t===1?a=[]:a=[uh(o,l),"scale("+r+","+t+")",uh(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function qx(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}tr.getMarkerStandoff=qx;var sh=Math.atan2,iu=Math.cos,Yf=Math.sin;function oC(e,r){var t=r[0],a=r[1];return[t*iu(e)-a*Yf(e),t*Yf(e)+a*iu(e)]}var lC,sC,uC,fC,Ax,Mx;function Lx(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||mt.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);a=o[0],n=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)a=l.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),v=r._geo.project([u+1e-5,f]),d=sh(v[1]-n,v[0]-a),p=sh(c[1]-n,c[0]-a),m;if(i==="north")m=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,x=f/180*Math.PI,w=lC/180*Math.PI,_=sC/180*Math.PI,b=w-y,T=iu(_)*Yf(b),k=Yf(_)*iu(x)-iu(_)*Yf(x)*iu(b);m=-sh(T,k)-Math.PI,lC=u,sC=f}var M=oC(d,[iu(m),0]),S=oC(p,[Yf(m),0]);t=sh(M[1]+S[1],M[0]+S[0])/Math.PI*180,i==="previous"&&!(Mx===r.uid&&e.i===Ax+1)&&(t=null)}if(i==="previous"&&!r._geo)if(Mx===r.uid&&e.i===Ax+1&&su(a)&&su(n)){var E=a-uC,D=n-fC,P=r.line&&r.line.shape||"",R=P.slice(P.length-1);R==="h"&&(D=0),R==="v"&&(E=0),t+=sh(D,E)/Math.PI*180+90}else t=null}return uC=a,fC=n,Ax=e.i,Mx=r.uid,t}tr.getMarkerAngle=Lx});var Wf=N((zDe,MC)=>{"use strict";var Vf=Sr(),Mce=Rr(),kce=ea(),Cx=gr(),uu=Ee(),wC=uu.strTranslate,v1=Wr(),h1=Tr(),jf=Ea(),TC=bp(),Sce=Xa().OPPOSITE_SIDE,AC=/ [XY][0-9]* /,Ex=1.6,Dx=1.6;function qce(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,v=1,d=n.title,p=(d&&d.text?d.text:"").trim(),m=!1,y=d&&d.font?d.font:{},x=y.family,w=y.size,_=y.color,b=y.weight,T=y.style,k=y.variant,M=y.textcase,S=y.lineposition,E=y.shadow,D=t.subtitlePropName,P=!!D,R=t.subtitlePlaceholder,z=(n.title||{}).subtitle||{text:"",font:{}},O=z.text.trim(),B=!1,V=1,G=z.font,U=G.family,Y=G.size,J=G.color,Z=G.weight,re=G.style,fe=G.variant,ie=G.textcase,ue=G.lineposition,K=G.shadow,ye;i==="title.text"?ye="titleText":i.indexOf("axis")!==-1?ye="axisTitleText":i.indexOf(!0)&&(ye="colorbarTitleText");var se=e._context.edits[ye];function ve(Ue,He){return Ue===void 0||He===void 0?!1:Ue.replace(AC," % ")===He.replace(AC," % ")}p===""?v=0:ve(p,o)&&(se||(p=""),v=.2,m=!0),P&&(O===""?V=0:ve(O,R)&&(se||(O=""),V=.2,B=!0)),t._meta?p=uu.templateString(p,t._meta):a._meta&&(p=uu.templateString(p,a._meta));var oe=p||O||se,ce;c||(c=uu.ensureSingle(a._infolayer,"g","g-"+r),ce=a._hColorbarMoveTitle);var j=c.selectAll("text."+r).data(oe?[0]:[]);j.enter().append("text"),j.text(p).attr("class",r),j.exit().remove();var Q=null,W=r+"-subtitle",pe=O||se;if(P&&pe&&(Q=c.selectAll("text."+W).data(pe?[0]:[]),Q.enter().append("text"),Q.text(O).attr("class",W),Q.exit().remove()),!oe)return c;function be(Ue,He){uu.syncOrAsync([me,Fe],{title:Ue,subtitle:He})}function me(Ue){var He=Ue.title,Pe=Ue.subtitle,Oe;!f&&ce&&(f={}),f?(Oe="",f.rotate&&(Oe+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||ce)&&(Oe+=wC(0,(f.offset||0)-(ce||0)))):Oe=null,He.attr("transform",Oe);function Be(Le){if(Le){var Ce=Vf.select(Le.node().parentNode).select("."+W);if(!Ce.empty()){var Ye=Le.node().getBBox();if(Ye.height){var Xe=Ye.y+Ye.height+Ex*Y;Ce.attr("y",Xe)}}}}if(He.style("opacity",v*h1.opacity(_)).call(v1.font,{color:h1.rgb(_),size:Vf.round(w,2),family:x,weight:b,style:T,variant:k,textcase:M,shadow:E,lineposition:S}).attr(u).call(jf.convertToTspans,e,Be),Pe){var le=c.select("."+r+"-math-group"),Te=He.node().getBBox(),Se=le.node()?le.node().getBBox():void 0,nr=Se?Se.y+Se.height+Ex*Y:Te.y+Te.height+Dx*Y,Ke=uu.extendFlat({},u,{y:nr});Pe.attr("transform",Oe),Pe.style("opacity",V*h1.opacity(J)).call(v1.font,{color:h1.rgb(J),size:Vf.round(Y,2),family:U,weight:Z,style:re,variant:fe,textcase:ie,shadow:K,lineposition:ue}).attr(Ke).call(jf.convertToTspans,e)}return kce.previousPromises(e)}function Fe(Ue){var He=Ue.title,Pe=Vf.select(He.node().parentNode);if(s&&s.selection&&s.side&&p){Pe.attr("transform",null);var Oe=Sce[s.side],Be=s.side==="left"||s.side==="top"?-1:1,le=Mce(s.pad)?s.pad:2,Te=v1.bBox(Pe.node()),Se={t:0,b:0,l:0,r:0},nr=e._fullLayout._reservedMargin;for(var Ke in nr)for(var Le in nr[Ke]){var Ce=nr[Ke][Le];Se[Le]=Math.max(Se[Le],Ce)}var Ye={left:Se.l,top:Se.t,right:a.width-Se.r,bottom:a.height-Se.b},Xe=s.maxShift||Be*(Ye[s.side]-Te[s.side]),Ve=0;if(Xe<0)Ve=Xe;else{var Ge=s.offsetLeft||0,$e=s.offsetTop||0;Te.left-=Ge,Te.right-=Ge,Te.top-=$e,Te.bottom-=$e,s.selection.each(function(){var lr=v1.bBox(this);uu.bBoxIntersect(Te,lr,le)&&(Ve=Math.max(Ve,Be*(lr[s.side]-Te[Oe])+le))}),Ve=Math.min(Xe,Ve),n._titleScoot=Math.abs(Ve)}if(Ve>0||Xe<0){var cr={left:[-Ve,0],right:[Ve,0],top:[0,-Ve],bottom:[0,Ve]}[s.side];Pe.attr("transform",wC(cr[0],cr[1]))}}}j.call(be,Q);function ze(Ue,He){Ue.text(He).on("mouseover.opacity",function(){Vf.select(this).transition().duration(TC.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Vf.select(this).transition().duration(TC.HIDE_PLACEHOLDER).style("opacity",0)})}if(se&&(p?j.on(".opacity",null):(ze(j,o),m=!0),j.call(jf.makeEditable,{gd:e}).on("edit",function(Ue){l!==void 0?Cx.call("_guiRestyle",e,i,Ue,l):Cx.call("_guiRelayout",e,i,Ue)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(be)}).on("input",function(Ue){this.text(Ue||" ").call(jf.positionText,u.x,u.y)}),P)){if(P&&!p){var Re=j.node().getBBox(),Ne=Re.y+Re.height+Dx*Y;Q.attr("y",Ne)}O?Q.on(".opacity",null):(ze(Q,R),B=!0),Q.call(jf.makeEditable,{gd:e}).on("edit",function(Ue){Cx.call("_guiRelayout",e,"title.subtitle.text",Ue)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(be)}).on("input",function(Ue){this.text(Ue||" ").call(jf.positionText,Q.attr("x"),Q.attr("y"))})}return j.classed("js-placeholder",m),Q&&Q.classed("js-placeholder",B),c}MC.exports={draw:qce,SUBTITLE_PADDING_EM:Dx,SUBTITLE_PADDING_MATHJAX_EM:Ex}});var Zf=N((IDe,CC)=>{"use strict";var Lce=Sr(),Cce=xf().utcFormat,wt=Ee(),Ece=wt.numberFormat,Lo=Rr(),$l=wt.cleanNumber,Dce=wt.ms2DateTime,kC=wt.dateTime2ms,Co=wt.ensureNumber,SC=wt.isArrayOrTypedArray,Kl=Ft(),d1=Kl.FP_SAFE,ro=Kl.BADNUM,Rce=Kl.LOG_CLIP,Pce=Kl.ONEWEEK,p1=Kl.ONEDAY,y1=Kl.ONEHOUR,qC=Kl.ONEMIN,LC=Kl.ONESEC,m1=va(),x1=Ca(),g1=x1.HOUR_PATTERN,b1=x1.WEEKDAY_PATTERN;function fh(e){return Math.pow(10,e)}function Rx(e){return e!=null}CC.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(b,T){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&T&&r.range&&r.range.length===2){var k=r.range[0],M=r.range[1];return .5*(k+M-2*Rce*Math.abs(k-M))}else return ro}function o(b,T,k,M){if((M||{}).msUTC&&Lo(b))return+b;var S=kC(b,k||r.calendar);if(S===ro)if(Lo(b)){b=+b;var E=Math.floor(wt.mod(b+.05,1)*10),D=Math.round(b-E/10);S=kC(new Date(D))+E/10}else return ro;return S}function l(b,T,k){return Dce(b,T,k||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(Rx(b)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[b]!==void 0)return r._categoriesMap[b];r._categories.push(typeof b=="number"?String(b):b);var T=r._categories.length-1;return r._categoriesMap[b]=T,T}return ro}function f(b,T){for(var k=new Array(T),M=0;Mr.range[1]&&(k=!k);for(var M=k?-1:1,S=M*b,E=0,D=0;DR)E=D+1;else{E=S<(P+R)/2?D:D+1;break}}var z=r._B[E]||0;return isFinite(z)?p(b,r._m2,z):0},x=function(b){var T=r._rangebreaks.length;if(!T)return m(b,r._m,r._b);for(var k=0,M=0;Mr._rangebreaks[M].pmax&&(k=M+1);return m(b,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:Co,r.l2c=r.type==="log"?fh:Co,r.l2p=y,r.p2l=x,r.c2p=r.type==="log"?function(b,T){return y(i(b,T))}:y,r.p2c=r.type==="log"?function(b){return fh(x(b))}:x,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=$l,r.c2d=r.c2r=r.l2d=r.l2r=Co,r.d2p=r.r2p=function(b){return r.l2p($l(b))},r.p2d=r.p2r=x,r.cleanPos=Co):r.type==="log"?(r.d2r=r.d2l=function(b,T){return i($l(b),T)},r.r2d=r.r2c=function(b){return fh($l(b))},r.d2c=r.r2l=$l,r.c2d=r.l2r=Co,r.c2r=i,r.l2d=fh,r.d2p=function(b,T){return r.l2p(r.d2r(b,T))},r.p2d=function(b){return fh(x(b))},r.r2p=function(b){return r.l2p($l(b))},r.p2r=x,r.cleanPos=Co):r.type==="date"?(r.d2r=r.r2d=wt.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(b,T,k){return r.l2p(o(b,0,k))},r.p2d=r.p2r=function(b,T,k){return l(x(b),T,k)},r.cleanPos=function(b){return wt.cleanDate(b,ro,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(b){var T=d(b);return T!==void 0?T:r.fraction2r(.5)},r.l2r=r.c2r=Co,r.r2l=d,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(x(b))},r.r2p=r.d2p,r.p2r=x,r.cleanPos=function(b){return typeof b=="string"&&b!==""?b:Co(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(b){var T=v(b);return T!==void 0?T:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Co,r.r2l=v,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(x(b))},r.r2p=r.d2p,r.p2r=x,r.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:Co(b)},r.setupMultiCategory=function(b){var T=r._traceIndices,k,M,S=r._matchGroup;if(S&&r._categories.length===0){for(var E in S)if(E!==a){var D=t[m1.id2name(E)];T=T.concat(D._traceIndices)}}var P=[[0,{}],[0,{}]],R=[];for(k=0;kD[1]&&(M[E?0:1]=k),M[0]===M[1]){var P=r.l2r(T),R=r.l2r(k);if(T!==void 0){var z=P+1;k!==void 0&&(z=Math.min(z,R)),M[E?1:0]=z}if(k!==void 0){var O=R+1;T!==void 0&&(O=Math.max(O,P)),M[E?0:1]=O}}}},r.cleanRange=function(b,T){r._cleanRange(b,T),r.limitRange(b)},r._cleanRange=function(b,T){T||(T={}),b||(b="range");var k=wt.nestedProperty(r,b).get(),M,S;if(r.type==="date"?S=wt.dfltRange(r.calendar):n==="y"?S=x1.DFLTRANGEY:r._name==="realaxis"?S=[0,1]:S=T.dfltRange||x1.DFLTRANGEX,S=S.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(S[0]=0),!k||k.length!==2){wt.nestedProperty(r,b).set(S);return}var E=k[0]===null,D=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=wt.cleanDate(k[0],ro,r.calendar),k[1]=wt.cleanDate(k[1],ro,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!wt.isDateTime(k[M],r.calendar)){r[b]=S;break}if(r.r2l(k[0])===r.r2l(k[1])){var P=wt.constrain(r.r2l(k[0]),wt.MIN_MS+1e3,wt.MAX_MS-1e3);k[0]=r.l2r(P-1e3),k[1]=r.l2r(P+1e3);break}}else{if(!Lo(k[M]))if(!(E||D)&&Lo(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[b]=S;break}if(k[M]<-d1?k[M]=-d1:k[M]>d1&&(k[M]=d1),k[0]===k[1]){var R=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=R,k[1]+=R}}},r.setScale=function(b){var T=t._size;if(r.overlaying){var k=m1.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var M=b&&r._r?"_r":"range",S=r.calendar;r.cleanRange(M);var E=r.r2l(r[M][0],S),D=r.r2l(r[M][1],S),P=n==="y";if(P?(r._offset=T.t+(1-r.domain[1])*T.h,r._length=T.h*(r.domain[1]-r.domain[0]),r._m=r._length/(E-D),r._b=-r._m*D):(r._offset=T.l+r.domain[0]*T.w,r._length=T.w*(r.domain[1]-r.domain[0]),r._m=r._length/(D-E),r._b=-r._m*E),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var R,z;if(r._rangebreaks=r.locateBreaks(Math.min(E,D),Math.max(E,D)),r._rangebreaks.length){for(R=0;RD&&(O=!O),O&&r._rangebreaks.reverse();var B=O?-1:1;for(r._m2=B*r._length/(Math.abs(D-E)-r._lBreaks),r._B.push(-r._m2*(P?D:E)),R=0;RS&&(S+=7,ES&&(S+=24,E=M&&E=M&&b=K.min&&(reK.max&&(K.max=fe),ie=!1)}ie&&D.push({min:re,max:fe})}};for(k=0;k{"use strict";var EC=Rr(),Px=Ee(),Fce=Ft().BADNUM,_1=Px.isArrayOrTypedArray,Nce=Px.isDateTime,zce=Px.cleanNumber,DC=Math.round;PC.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(_1(n)&&!n.length)return"-";if(!i&&Uce(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;li*2}function RC(e){return Math.max(1,(e-1)/1e3)}function Hce(e,r){for(var t=e.length,a=RC(t),n=0,i=0,o={},l=0;ln*2}function Uce(e){return _1(e[0])&&_1(e[1])}});var ch=N((BDe,UC)=>{"use strict";var Gce=Sr(),IC=Rr(),Ql=Ee(),T1=Ft().FP_SAFE,Yce=gr(),Vce=Wr(),OC=va(),jce=OC.getFromId,Wce=OC.isLinked;UC.exports={applyAutorangeOptions:HC,getAutoRange:Fx,makePadFn:Nx,doAutoRange:Xce,findExtremes:Jce,concatExtremes:Ox};function Fx(e,r){var t,a,n=[],i=e._fullLayout,o=Nx(i,r,0),l=Nx(i,r,1),s=Ox(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return Ql.simpleMap(r.range,r.r2l);var c=u[0].val,v=f[0].val;for(t=1;t0&&(D=_-o(k)-l(M),D>b?P/D>T&&(S=k,E=M,T=P/D):P/_>T&&(S={val:k.val,nopad:1},E={val:M.val,nopad:1},T=P/_));function R(G,U){return Math.max(G,l(U))}if(c===v){var z=c-1,O=c+1;if(x)if(c===0)n=[0,1];else{var B=(c>0?f:u).reduce(R,0),V=c/(1-Math.min(.5,B/_));n=c>0?[0,V]:[V,0]}else w?n=[Math.max(0,z),Math.max(1,O)]:n=[z,O]}else x?(S.val>=0&&(S={val:0,nopad:1}),E.val<=0&&(E={val:0,nopad:1})):w&&(S.val-T*o(S)<0&&(S={val:0,nopad:1}),E.val<=0&&(E={val:1,nopad:1})),T=(E.val-S.val-FC(r,k.val,M.val))/(_-o(S)-l(E)),n=[S.val-T*o(S),E.val+T*l(E)];return n=HC(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Ql.simpleMap(n,r.l2r||Number)}function FC(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),k=b((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=b(t.vpadplus||t.vpad),S=b(t.vpadminus||t.vpad);if(!u){if(w=1/0,_=-1/0,s)for(c=0;c0&&(w=v),v>_&&v-T1&&(w=v),v>_&&v=P;c--)D(c);return{min:a,max:n,opts:t}}function zx(e,r,t,a){BC(e,r,t,a,$ce)}function Ix(e,r,t,a){BC(e,r,t,a,Kce)}function BC(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,s=0;s=t&&(u.extrapad||!o)){l=!1;break}else n(r,u.val)&&u.pad<=t&&(o||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:o})}}function zC(e){return IC(e)&&Math.abs(e)=r}function Qce(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&A1(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&A1(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function eve(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&A1(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&A1(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function A1(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,a=s)}}return t=Qce(t,r),a=eve(a,r),[t,a]}});var Or=N((HDe,fE)=>{"use strict";var di=Sr(),aa=Rr(),Xf=ea(),hh=gr(),xr=Ee(),Jf=xr.strTranslate,fu=Ea(),rve=Wf(),dh=Tr(),Wn=Wr(),tve=hi(),GC=sx(),Ua=Ft(),ave=Ua.ONEMAXYEAR,S1=Ua.ONEAVGYEAR,q1=Ua.ONEMINYEAR,nve=Ua.ONEMAXQUARTER,Gx=Ua.ONEAVGQUARTER,L1=Ua.ONEMINQUARTER,ive=Ua.ONEMAXMONTH,$f=Ua.ONEAVGMONTH,C1=Ua.ONEMINMONTH,Zn=Ua.ONEWEEK,on=Ua.ONEDAY,es=on/2,Do=Ua.ONEHOUR,ph=Ua.ONEMIN,E1=Ua.ONESEC,ove=Ua.ONEMILLI,lve=Ua.ONEMICROSEC,cu=Ua.MINUS_SIGN,P1=Ua.BADNUM,Yx={K:"zeroline"},Vx={K:"gridline",L:"path"},jx={K:"minor-gridline",L:"path"},eE={K:"tick",L:"path"},YC={K:"tick",L:"text"},VC={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},F1=Xa(),vh=F1.MID_SHIFT,vu=F1.CAP_SHIFT,yh=F1.LINE_SPACING,sve=F1.OPPOSITE_SIDE,D1=3,We=fE.exports={};We.setConvert=Zf();var uve=w1(),fl=va(),fve=fl.idSort,cve=fl.isLinked;We.id2name=fl.id2name;We.name2id=fl.name2id;We.cleanId=fl.cleanId;We.list=fl.list;We.listIds=fl.listIds;We.getFromId=fl.getFromId;We.getFromTrace=fl.getFromTrace;var rE=ch();We.getAutoRange=rE.getAutoRange;We.findExtremes=rE.findExtremes;var vve=1e-4;function Jx(e){var r=(e[1]-e[0])*vve;return[e[0]-r,e[1]+r]}We.coerceRef=function(e,r,t,a,n,i){var o=a.charAt(a.length-1),l=t._fullLayout._subplots[o+"axis"],s=a+"ref",u={};return n||(n=l[0]||(typeof i=="string"?i:i[0])),i||(i=n),l=l.concat(l.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},xr.coerce(e,r,u,s)};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 o,l,s=We.getRefType(a);if(s!=="range")o=xr.ensureNumber,l=t(n,i);else{var u=We.getFromId(r,a);i=u.fraction2r(i),l=t(n,i),o=u.cleanPos}e[n]=o(l)};We.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?xr.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,o,l){for(var s=hh.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;nc*.3||u(a)||u(n))){var v=t.dtick/2;e+=e+vo){var l=Number(t.substr(1));i.exactYears>o&&l%12===0?e=We.tickIncrement(e,"M6","reverse")+on*1.5:i.exactMonths>o?e=We.tickIncrement(e,"M1","reverse")+on*15.5:e-=es;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&&aa(r._tmin),n;if(a){var i=We.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=xr.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=xr.simpleMap(n,r.l2r),e._isMinor=!0,We.prepTicks(e,t),a){var l=aa(r.dtick),s=aa(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?Bx(u,f)?u===2*Zn&&f===2*on&&(e.dtick=Zn):u===2*Zn&&f===3*on?e.dtick=Zn:u===Zn&&!(r._input.minor||{}).nticks?e.dtick=on:ZC(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":Bx(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?Bx(u,f)||(e.dtick=ZC(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function Bx(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function ZC(e,r){return Math.abs(e/r-1)<.001}We.prepTicks=function(e,r){var t=xr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?xr.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=xr.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,We.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,o=a):(i=a,o=a);var l=e[i].value,s=e[o].value,u=Math.abs(s-l),f=t||u,c=0;f>=q1?u>=q1&&u<=ave?c=u:c=S1:t===Gx&&f>=L1?u>=L1&&u<=nve?c=u:c=Gx:f>=C1?u>=C1&&u<=ive?c=u:c=$f:t===Zn&&f>=Zn?c=Zn:f>=on?c=on:t===es&&f>=es?c=es:t===Do&&f>=Do&&(c=Do);var v;c>=u&&(c=u,v=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,m=0,y=0;yZn&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}We.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||xr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=xr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(_?0:1);b--){var T=!b;b?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var k=b?r:xr.extendFlat({},r,r.minor);if(T?We.prepMinorTicks(k,r,t):We.prepTicks(k,t),k.tickmode==="array"){b?(y=[],p=XC(r,!T)):(x=[],m=XC(r,!T));continue}if(k.tickmode==="sync"){y=[],p=gve(r);continue}var M=Jx(u),S=M[0],E=M[1],D=aa(k.dtick),P=a==="log"&&!(D||k.dtick.charAt(0)==="L"),R=We.tickFirst(k,t);if(b){if(r._tmin=R,R=E:O<=E;O=We.tickIncrement(O,G,f,n)){if(b&&B++,k.rangebreaks&&!f){if(O=v)break}if(y.length>d||O===z)break;z=O;var U={value:O};b?(P&&O!==(O|0)&&(U.simpleLabel=!0),i>1&&B%i&&(U.skipLabel=!0),y.push(U)):(U.minor=!0,x.push(U))}}if(!x||x.length<2)s=!1;else{var Y=(x[1].value-x[0].value)*(l?-1:1);Uve(Y,r.tickformat)||(s=!1)}if(!s)w=y;else{var J=y.concat(x);o&&y.length&&(J=J.slice(1)),J=J.sort(function(Ne,Ue){return Ne.value-Ue.value}).filter(function(Ne,Ue,He){return Ue===0||Ne.value!==He[Ue-1].value});var Z=J.map(function(Ne,Ue){return Ne.minor===void 0&&!Ne.skipLabel?Ue:null}).filter(function(Ne){return Ne!==null});Z.forEach(function(Ne){s.map(function(Ue){var He=Ne+Ue;He>=0&&He-1;oe--){if(y[oe].drop){y.splice(oe,1);continue}y[oe].value=Ux(y[oe].value,r);var W=r.c2p(y[oe].value);(ce?Q>W-j:Qv||Pev&&(He.periodX=v),Pen&&vS1)r/=S1,a=n(10),e.dtick="M"+12*Eo(r,a,M1);else if(i>$f)r/=$f,e.dtick="M"+Eo(r,1,JC);else if(i>on){if(e.dtick=Eo(r,on,e._hasDayOfWeekBreaks?[1,2,7,14]:bve),!t){var o=We.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=xr.dateTick0(e.calendar,2):e.tick0=xr.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>Do?e.dtick=Eo(r,Do,JC):i>ph?e.dtick=Eo(r,ph,$C):i>E1?e.dtick=Eo(r,E1,$C):(a=n(10),e.dtick=Eo(r,a,M1))}else if(e.type==="log"){e.tick0=0;var s=xr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+Eo(r,a,M1)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):Qx(e)?(e.tick0=0,a=1,e.dtick=Eo(r,a,xve)):(e.tick0=0,a=n(10),e.dtick=Eo(r,a,M1));if(e.dtick===0&&(e.dtick=1),!aa(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function iE(e){var r=e.dtick;if(e._tickexponent=0,!aa(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.substr(5)!=="01-01"?e._tickround="d":e._tickround=+r.substr(1)%12===0?"y":"m";else if(r>=on&&n<=10||r>=on*15)e._tickround="d";else if(r>=ph&&n<=16||r>=Do)e._tickround="M";else if(r>=E1&&n<=19||r>=ph)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(aa(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);aa(r)||(r=Number(r.substr(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(R1(e.exponentformat)&&!$x(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}We.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(aa(r))return xr.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.substr(1));if(i==="M")return xr.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?nE:aE,s=e+n*.01,u=xr.roundUp(xr.mod(s,1),l,t);return Math.floor(s)+Math.log(di.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};We.tickFirst=function(e,r){var t=e.r2l||Number,a=xr.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&x<=e._length?y:null};if(i&&xr.isArrayOrTypedArray(e.ticktext)){var c=xr.simpleMap(e.range,e.r2l),v=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(u=0;u"+l;else{var u=gh(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}r.text=o}function wve(e,r,t,a,n){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=mh(Math.pow(10,o),e,n,a);else if(aa(i)||s==="D"&&xr.mod(o+.01,1)<.1){var u=Math.round(o),f=Math.abs(u),c=e.exponentformat;c==="power"||R1(c)&&$x(u)?(u===0?r.text=1:u===1?r.text="10":r.text="10"+(u>1?"":cu)+f+"",r.fontSize*=1.25):(c==="e"||c==="E")&&f>2?r.text="1"+c+(u>0?"+":cu)+f:(r.text=mh(Math.pow(10,o),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,xr.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var v=String(r.text).charAt(0);(v==="0"||v==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function Tve(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Ave(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function Mve(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=mh(r.x,e,n,a)}function kve(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=Sve(i);if(o[1]>=100)r.text=mh(xr.deg2rad(r.x),e,n,a);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=cu+r.text)}}}else r.text=mh(r.x,e,n,a)}function Sve(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function a(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var n=a(e),i=e*n,o=Math.abs(t(i,n));return[Math.round(i/o),Math.round(n/o)]}var qve=["f","p","n","\u03BC","m","","k","M","G","T"];function R1(e){return e==="SI"||e==="B"}function $x(e){return e>14||e<-15}function mh(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=We.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:aa(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};iE(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,cu);var c=Math.pow(10,-i)/2;if(o==="none"&&(l=0),e=Math.abs(e),e"+p+"":o==="B"&&l===9?e+="B":R1(o)&&(e+=qve[l/3+5])}return n?cu+e:e}We.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*$f}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),v=f.indexOf(u.charAt(0));return c===v?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-v}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},v=u[0],d=u[1];return(!v&&typeof v!="number"||c(v)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,v=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||v)&&(c||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var l={false:{left:0,right:0}};return xr.syncOrAsync(n.map(function(s){return function(){if(s){var u=We.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=We.drawOne(e,u,t);return u._shiftPusher&&Xx(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=xr.simpleMap(u._r,u.r2l),f}}}))};We.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=We.counterLetter(u),v=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!v)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),Xx(r,p,a,!0),Xx(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=Hve(r,a));var m=v[f+"axislayer"],y=r._mainLinePosition,x=y+=r._shift,w=r._mainMirrorPosition,_=r._vals=We.calcTicks(r),b=[r.mirror,x,w].join("_");for(i=0;i<_.length;i++)_[i].axInfo=b;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var T={};function k(Re){var Ne=u+(Re||"tick");return T[Ne]||(T[Ne]=Dve(r,Ne,x)),T[Ne]}if(r.visible){var M=We.makeTransTickFn(r),S=We.makeTransTickLabelFn(r),E,D,P=r.ticks==="inside",R=r.ticks==="outside";if(r.tickson==="boundaries"){var z=Lve(r,_);D=We.clipEnds(r,z),E=P?D:z}else D=We.clipEnds(r,_),E=P&&r.ticklabelmode!=="period"?D:_;var O=r._gridVals=D,B=Eve(r,_);if(!s._hasOnlyLargeSploms){var V=r._subplotsWith,G={};for(i=0;i0?Pe.bottom-Ue:0,He))));var Te=0,Se=0;if(r._shiftPusher&&(Te=Math.max(He,Pe.height>0?Re==="l"?Ue-Pe.left:Pe.right-Ue:0),r.title.text!==s._dfltTitle[f]&&(Se=(r._titleStandoff||0)+(r._titleScoot||0),Re==="l"&&(Se+=QC(r))),r._fullDepth=Math.max(Te,Se)),r.automargin){Oe={x:0,y:0,r:0,l:0,t:0,b:0};var nr=[0,1],Ke=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Re==="b"?Oe[Re]=r._depth:(Oe[Re]=r._depth=Math.max(Pe.width>0?Ue-Pe.top:0,He),nr.reverse()),Pe.width>0){var Le=Pe.right-(r._offset+r._length);Le>0&&(Oe.xr=1,Oe.r=Le);var Ce=r._offset-Pe.left;Ce>0&&(Oe.xl=0,Oe.l=Ce)}}else if(Re==="l"?(r._depth=Math.max(Pe.height>0?Ue-Pe.left:0,He),Oe[Re]=r._depth-Ke):(r._depth=Math.max(Pe.height>0?Pe.right-Ue:0,He),Oe[Re]=r._depth+Ke,nr.reverse()),Pe.height>0){var Ye=Pe.bottom-(r._offset+r._length);Ye>0&&(Oe.yb=0,Oe.b=Ye);var Xe=r._offset-Pe.top;Xe>0&&(Oe.yt=1,Oe.t=Xe)}Oe[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[nr[0]],r.title.text!==s._dfltTitle[f]&&(Oe[Re]+=QC(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Be={x:0,y:0,r:0,l:0,t:0,b:0},Be[Ne]=r.linewidth,r.mirror&&r.mirror!==!0&&(Be[Ne]+=He),r.mirror===!0||r.mirror==="ticks"?Be[c]=r._anchorAxis.domain[nr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Be[c]=[r._counterDomainMin,r._counterDomainMax][nr[1]]))}ze&&(le=hh.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(KC(Oe,r.automargin),KC(Be,r.automargin)),Xf.autoMargin(e,Kx(r),Oe),Xf.autoMargin(e,sE(r),Be),Xf.autoMargin(e,uE(r),le)}),xr.syncOrAsync(me)}};function KC(e,r){if(e){var t=Object.keys(VC).reduce(function(a,n){return r.indexOf(n)!==-1&&VC[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function Lve(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(xr.extendFlat({},i,{x:l}))};if(r.length){for(a=0;ae.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var u=o?-1:1;t=t*u}if(a){var f=e.side,c=l&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(v){return Jf(n+e._offset+e.l2p(Wx(v))+t,i+a)}:function(v){return Jf(i+a,n+e._offset+e.l2p(Wx(v))+t)}};function Wx(e){return e.periodX!==void 0?e.periodX:e.x}function Rve(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),o=a("right"),l=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(l||i||n||o);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,v=D1,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*vu,v+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,v+=D1),s&&f==="top"&&(v-=d*(1-vu)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(v=-v),[u?c:0,s?v:0]}We.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};We.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(z){return a.indexOf(z)!==-1},o=i("top"),l=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||l||o||s),c=i("inside"),v=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,m=v?e.ticklen:0;if(c?m*=-1:f&&(m=0),v&&(d+=m,t)){var y=xr.deg2rad(t);d=m*Math.cos(y)+1,p=m*Math.sin(y)}e.showticklabels&&(v||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var x={labelStandoff:d,labelShift:p},w,_,b,T,k=0,M=e.side,S=e._id.charAt(0),E=e.tickangle,D;if(S==="x")D=!c&&M==="bottom"||c&&M==="top",T=D?1:-1,c&&(T*=-1),w=p*T,_=r+d*T,b=D?1:-.2,Math.abs(E)===90&&(c?b+=vh:E===-90&&M==="bottom"?b=vu:E===90&&M==="top"?b=vh:b=.5,k=vh/2*(E/90)),x.xFn=function(z){return z.dx+w+k*z.fontSize},x.yFn=function(z){return z.dy+_+z.fontSize*b},x.anchorFn=function(z,O){if(f){if(l)return"end";if(s)return"start"}return!aa(O)||O===0||O===180?"middle":O*T<0!==c?"end":"start"},x.heightFn=function(z,O,B){return O<-60||O>60?-.5*B:e.side==="top"!==c?-B:0};else if(S==="y"){if(D=!c&&M==="left"||c&&M==="right",T=D?1:-1,c&&(T*=-1),w=d,_=p*T,b=0,!c&&Math.abs(E)===90&&(E===-90&&M==="left"||E===90&&M==="right"?b=vu:b=.5),c){var P=aa(E)?+E:0;if(P!==0){var R=xr.deg2rad(P);k=Math.abs(Math.sin(R))*vu*T,b=0}}x.xFn=function(z){return z.dx+r-(w+z.fontSize*b)*T+k*z.fontSize},x.yFn=function(z){return z.dy+_+z.fontSize*vh},x.anchorFn=function(z,O){return aa(O)&&Math.abs(O)===90?"middle":D?"end":"start"},x.heightFn=function(z,O,B){return e.side==="right"&&(O*=-1),O<-30?-B:O<30?-.5*B:0}}return x};function N1(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}We.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,N1);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return dh.stroke(di.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return Wn.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),z1(r,[eE]),i.attr("transform",t.transFn)};We.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(x){return x.minor}):[],o=r.showgrid?t.vals.filter(function(x){return!x.minor}):[],l=t.counterAxis;if(l&&We.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",u=0;u=0;p--){var m=p?v:d;if(m){var y=m.selectAll("path."+a).data(p?o:i,N1);y.exit().remove(),y.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(x){return dh.stroke(di.select(this),x.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(x){return Wn.dashStyle(x.minor?r.minor.griddash:r.griddash,x.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(x){return(x.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}z1(r,[Vx,jx])}};We.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=We.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return fve(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(dh.stroke,r.zerolinecolor||dh.defaultLine).style("stroke-width",Wn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),z1(r,[Yx])};We.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",o=t.cls||n+"tick",l=t.vals.filter(function(Y){return Y.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],N1),v=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(Y){var J=di.select(this),Z=e._promises.length;J.call(fu.positionText,s.xFn(Y),s.yFn(Y)).call(Wn.font,{family:Y.font,size:Y.fontSize,color:Y.fontColor,weight:Y.fontWeight,style:Y.fontStyle,variant:Y.fontVariant,textcase:Y.fontTextcase,lineposition:Y.fontLineposition,shadow:Y.fontShadow}).text(Y.text).call(fu.convertToTspans,e),e._promises[Z]?v.push(e._promises.pop().then(function(){d(J,u)})):d(J,u)}),z1(r,[YC]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(Y){di.select(this).select("text").call(fu.positionText,s.xFn(Y),s.yFn(Y))});function d(Y,J){Y.each(function(Z){var re=di.select(this),fe=re.select(".text-math-group"),ie=s.anchorFn(Z,J),ue=t.transFn.call(re.node(),Z)+(aa(J)&&+J!=0?" rotate("+J+","+s.xFn(Z)+","+(s.yFn(Z)-Z.fontSize/2)+")":""),K=fu.lineCount(re),ye=yh*Z.fontSize,se=s.heightFn(Z,aa(J)?+J:0,(K-1)*ye);if(se&&(ue+=Jf(0,se)),fe.empty()){var ve=re.select("text");ve.attr({transform:ue,"text-anchor":ie}),ve.style("opacity",1),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var oe=Wn.bBox(fe.node()).width,ce=oe*{end:-.5,start:.5}[ie];fe.attr("transform",ue+Jf(ce,0))}})}r._adjustTickLabelsOverflow=function(){var Y=r.ticklabeloverflow;if(!(!Y||Y==="allow")){var J=Y.indexOf("hide")!==-1,Z=r._id.charAt(0)==="x",re=0,fe=Z?e._fullLayout.width:e._fullLayout.height;if(Y.indexOf("domain")!==-1){var ie=xr.simpleMap(r.range,r.r2l);re=r.l2p(ie[0])+r._offset,fe=r.l2p(ie[1])+r._offset}var ue=Math.min(re,fe),K=Math.max(re,fe),ye=r.side,se=1/0,ve=-1/0;c.each(function(Q){var W=di.select(this),pe=W.select(".text-math-group");if(pe.empty()){var be=Wn.bBox(W.node()),me=0;Z?(be.right>K||be.leftK||be.top+(r.tickangle?0:Q.fontSize/4)r["_visibleLabelMin_"+ie._id]?W.style("display","none"):K.K==="tick"&&!ue&&W.style("display",null)})})})})},d(c,f+1?f:u);function p(){return v.length&&Promise.all(v)}var m=null;function y(){if(d(c,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){m=r.autotickangles[0];var Y=0,J=[],Z,re=1;c.each(function(Oe){Y=Math.max(Y,Oe.fontSize);var Be=r.l2p(Oe.x),le=Zx(this),Te=Wn.bBox(le.node());re=Math.max(re,fu.lineCount(le)),J.push({top:0,bottom:10,height:10,left:Be-Te.width/2,right:Be+Te.width/2+2,width:Te.width+2})});var fe=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,ie=l.length,ue=Math.abs((l[ie-1].x-l[0].x)*r._m)/(ie-1),K=fe?ue/2:ue,ye=fe?r.ticklen:Y*1.25*re,se=Math.sqrt(Math.pow(K,2)+Math.pow(ye,2)),ve=K/se,oe=r.autotickangles.map(function(Oe){return Oe*Math.PI/180}),ce=oe.find(function(Oe){return Math.abs(Math.cos(Oe))<=ve});ce===void 0&&(ce=oe.reduce(function(Oe,Be){return Math.abs(Math.cos(Oe))V*B&&(R=B,E[S]=D[S]=z[S])}var G=Math.abs(R-P);G-T>0?(G-=T,T*=1+T/G):T=0,r._id.charAt(0)!=="y"&&(T=-T),E[M]=_.p2r(_.r2p(D[M])+k*T),_.autorange==="min"||_.autorange==="max reversed"?(E[0]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0):(_.autorange==="max"||_.autorange==="min reversed")&&(E[1]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[_._name+".range"]=E}var U=xr.syncOrAsync(x);return U&&U.then&&e._promises.push(U),U};function Pve(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,N1);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(dh.stroke,r.dividercolor).style("stroke-width",Wn.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}We.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function QC(e){var r=e.title.font.size,t=(e.title.text.match(fu.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(vu+t*yh):t?r*(t+1)*yh:r}function Fve(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(fu.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*vu:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(vh+l*yh));else{var s=gh(r);if(r.type==="multicategory")o=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),o=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=We.getPxPosition(e,r),c,v,d;n==="x"?(v=r._offset+r._length/2,d=r.side==="top"?f-o:f+o):(d=r._offset+r._length/2,v=r.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var m=r._selections[r._id+"tick"];if(p={selection:m,side:r.side},m&&m.node()&&m.node().parentNode){var y=Wn.getTranslate(m.node().parentNode);p.offsetLeft=y.x,p.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,rve.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:v,y:d,"text-anchor":"middle"}})}We.shouldShowZeroLine=function(e,r,t){var a=xr.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===P1)&&(lE(r,0)||!Nve(e,r,t,a)||zve(e,r))};We.clipEnds=function(e,r){return r.filter(function(t){return lE(e,t.x)})};function lE(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=lve:/%L/.test(r)?e>=ove:/%[SX]/.test(r)?e>=E1:/%M/.test(r)?e>=ph:/%[HI]/.test(r)?e>=Do:/%p/.test(r)?e>=es:/%[Aadejuwx]/.test(r)?e>=on:/%[UVW]/.test(r)?e>=Zn:/%[Bbm]/.test(r)?e>=C1:/%[q]/.test(r)?e>=L1:/%[Yy]/.test(r)?e>=q1:!0}});var vE=N((UDe,cE)=>{"use strict";cE.exports=function(r,t,a){var n,i;if(a){var o=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[o?1:0],i=a[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var e5=N((GDe,hE)=>{"use strict";var Gve=vE();hE.exports=function(r,t,a,n){var i=t._template||{},o=t.type||i.type||"-";a("minallowed"),a("maxallowed");var l=a("range");if(!l){var s;!n.noInsiderange&&o!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=a("range",s)))}var u=t.getAutorangeDflt(l,n),f=a("autorange",u),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(l,n),f=a("autorange",u)),f&&(Gve(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var pE=N((YDe,dE)=>{var Yve={left:0,top:0};dE.exports=Vve;function Vve(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=jve(r);return t[0]=a-i.left,t[1]=n-i.top,t}function jve(e){return e===window||e===document||e===document.body?Yve:e.getBoundingClientRect()}});var r5=N((VDe,yE)=>{"use strict";var Wve=zb();function Zve(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}yE.exports=Wve&&Zve()});var gE=N((jDe,mE)=>{"use strict";mE.exports=function(r,t,a,n,i){var o=(r-a)/(n-a),l=o+t/(n-a),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var _E=N((WDe,xE)=>{"use strict";var bE=Ee(),Xve=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];xE.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=bE.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=bE.constrain(Math.floor(t*3),0,2),Xve[t][r]}});var TE=N((ZDe,wE)=>{"use strict";var Jve=rh(),$ve=Fp(),Kve=Wv().getGraphDiv,Qve=Vv(),t5=wE.exports={};t5.wrapped=function(e,r,t){e=Kve(e),e._fullLayout&&$ve.clear(e._fullLayout._uid+Qve.HOVERID),t5.raw(e,r,t)};t5.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&Jve.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var pi=N((XDe,SE)=>{"use strict";var ehe=pE(),a5=Ob(),rhe=r5(),the=Ee().removeElement,ahe=Ca(),hu=SE.exports={};hu.align=gE();hu.getCursor=_E();var ME=TE();hu.unhover=ME.wrapped;hu.unhoverRaw=ME.raw;hu.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,s,u,f,c,v,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,rhe?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function p(_,b,T){return Math.abs(_)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var b;c.target===v?b=c:(b={target:v,srcElement:v,toElement:v},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(T=>{var k=c[T];!b[T]&&typeof k!="function"&&(b[T]=k)})),r.clickFn&&r.clickFn(a,b),d||v.dispatchEvent(new MouseEvent("click",_))}t._dragging=!1,t._dragged=!1}};function kE(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}hu.coverSlip=kE;function AE(e){return ehe(e.changedTouches?e.changedTouches[0]:e,document.body)}});var rs=N((JDe,qE)=>{"use strict";qE.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var EE=N(($De,CE)=>{"use strict";var n5=rs(),bh="data-savedcursor",LE="!!";CE.exports=function(r,t){var a=r.attr(bh);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var i5=fa(),nhe=li();DE.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:nhe.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:i5({editType:"legend"}),grouptitlefont:i5({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:i5({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var O1=N(I1=>{"use strict";I1.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};I1.isVertical=function(r){return r.orientation!=="h"};I1.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1}});var u5=N((eRe,RE)=>{"use strict";var l5=gr(),Xn=Ee(),ihe=_t(),ohe=mn(),lhe=o5(),she=Sf(),s5=O1();function uhe(e,r,t,a){var n=r[e]||{},i=ihe.newContainer(t,e);function o(G,U){return Xn.coerce(n,i,lhe,G,U)}var l=Xn.coerceFont(o,"font",t.font);o("bgcolor",t.paper_bgcolor),o("bordercolor");var s=o("visible");if(s){for(var u,f=function(G,U){var Y=u._input,J=u;return Xn.coerce(Y,J,ohe,G,U)},c=t.font||{},v=Xn.coerceFont(o,"grouptitlefont",c,{overrideDflt:{size:Math.round(c.size*1.1)}}),d=0,p=!1,m="normal",y=(t.shapes||[]).filter(function(G){return G.showlegend}),x=a.concat(y).filter(function(G){return e===(G.legend||"legend")}),w=0;w(e==="legend"?1:0));if(b===!1&&(t[e]=void 0),!(b===!1&&!n.uirevision)&&(o("uirevision",t.uirevision),b!==!1)){o("borderwidth");var T=o("orientation"),k=o("yref"),M=o("xref"),S=T==="h",E=k==="paper",D=M==="paper",P,R,z,O="left";S?(P=0,l5.getComponentMethod("rangeslider","isVisible")(r.xaxis)?E?(R=1.1,z="bottom"):(R=1,z="top"):E?(R=-.1,z="top"):(R=0,z="bottom")):(R=1,z="auto",D?P=1.02:(P=1,O="right")),Xn.coerce(n,i,{x:{valType:"number",editType:"legend",min:D?-2:0,max:D?3:1,dflt:P}},"x"),Xn.coerce(n,i,{y:{valType:"number",editType:"legend",min:E?-2:0,max:E?3:1,dflt:R}},"y"),o("traceorder",m),s5.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",O),o("yanchor",z),o("maxheight",S?.5:1),o("valign"),Xn.noneOrAll(n,i,["x","y"]);var B=o("title.text");if(B){o("title.side",S?"left":"top");var V=Xn.extendFlat({},l,{size:Xn.bigFont(l.size)});Xn.coerceFont(o,"title.font",V)}}}}RE.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n{"use strict";var Kf=gr(),c5=Ee(),fhe=c5.pushUnique,f5=!0;PE.exports=function(r,t,a){var n=t._fullLayout;if(t._dragged||t._editing)return;var i=n.legend.itemclick,o=n.legend.itemdoubleclick,l=n.legend.groupclick;a===1&&i==="toggle"&&o==="toggleothers"&&f5&&t.data&&t._context.showTips&&c5.notifier(c5._(t,"Double-click on legend to isolate one trace"),"long"),f5=!1;var s;if(a===1?s=i:a===2&&(s=o),!s)return;var u=l==="togglegroup",f=n.hiddenlabels?n.hiddenlabels.slice():[],c=r.data()[0][0];if(c.groupTitle&&c.noClick)return;var v=t._fullData,d=(n.shapes||[]).filter(function(Ne){return Ne.showlegend}),p=v.concat(d),m=c.trace;m._isShape&&(m=m._fullInput);var y=m.legendgroup,x,w,_,b,T,k,M={},S=[],E=[],D=[];function P(Ne,Ue){var He=S.indexOf(Ne),Pe=M.visible;return Pe||(Pe=M.visible=[]),S.indexOf(Ne)===-1&&(S.push(Ne),He=S.length-1),Pe[He]=Ue,He}var R=(n.shapes||[]).map(function(Ne){return Ne._input}),z=!1;function O(Ne,Ue){R[Ne].visible=Ue,z=!0}function B(Ne,Ue){if(!(c.groupTitle&&!u)){var He=Ne._fullInput||Ne,Pe=He._isShape,Oe=He.index;Oe===void 0&&(Oe=He._index);var Be=He.visible===!1?!1:Ue;Pe?O(Oe,Be):P(Oe,Be)}}var V=m.legend,G=m._fullInput,U=G&&G._isShape;if(!U&&Kf.traceIs(m,"pie-like")){var Y=c.label,J=f.indexOf(Y);if(s==="toggle")J===-1?f.push(Y):f.splice(J,1);else if(s==="toggleothers"){var Z=J!==-1,re=[];for(x=0;x{"use strict";NE.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var OE=N((aRe,IE)=>{"use strict";var zE=gr(),h5=O1();IE.exports=function(r,t,a){var n=t._inHover,i=h5.isGrouped(t),o=h5.isReversed(t),l={},s=[],u=!1,f={},c=0,v=0,d,p;function m(G,U,Y){if(t.visible!==!1&&!(a&&G!==t._id))if(U===""||!h5.isGrouped(t)){var J="~~i"+c;s.push(J),l[J]=[Y],c++}else s.indexOf(U)===-1?(s.push(U),u=!0,l[U]=[Y]):l[U].push(Y)}for(d=0;dD&&(E=D)}M[d][0]._groupMinRank=E,M[d][0]._preGroupSort=d}var P=function(G,U){return G[0]._groupMinRank-U[0]._groupMinRank||G[0]._preGroupSort-U[0]._preGroupSort},R=function(G,U){return G.trace.legendrank-U.trace.legendrank||G._preSort-U._preSort};for(M.forEach(function(G,U){G[0]._preGroupSort=U}),M.sort(P),d=0;d{"use strict";var B1=Ee();function BE(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}du.formatPiePercent=function(r,t){var a=BE((r*100).toPrecision(3));return B1.numSeparate(a,t)+"%"};du.formatPieValue=function(r,t){var a=BE(r.toPrecision(10));return B1.numSeparate(a,t)};du.getFirstFilled=function(r,t){if(B1.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var che=Wr(),vhe=Tr();HE.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?che.pointStyle(r,a,n,t):vhe.fill(r,t.color)}});var U1=N((oRe,VE)=>{"use strict";var GE=Tr(),YE=H1().castOption,hhe=UE();VE.exports=function(r,t,a,n){var i=a.marker.line,o=YE(i.color,t.pts)||GE.defaultLine,l=YE(i.width,t.pts)||0;r.call(hhe,t,a,n).style("stroke-width",l).call(GE.stroke,o)}});var m5=N((lRe,$E)=>{"use strict";var ln=Sr(),d5=gr(),$a=Ee(),jE=$a.strTranslate,Jn=Wr(),yi=Tr(),p5=vi().extractOpts,G1=Dn(),dhe=U1(),phe=H1().castOption,yhe=v5(),WE=12,ZE=5,pu=2,mhe=10,Qf=5;$E.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+yhe.itemGap*2)/2,s=jE(l,0),u=function(M,S,E,D){var P;if(M+1)P=M;else if(S&&S.width>0)P=S.width;else return 0;return i?D:Math.min(P,E)};r.each(function(M){var S=ln.select(this),E=$a.ensureSingle(S,"g","layers");E.style("opacity",M[0].trace.opacity);var D=a.indentation,P=a.valign,R=M[0].lineHeight,z=M[0].height;if(P==="middle"&&D===0||!R||!z)E.attr("transform",null);else{var O={top:1,bottom:-1}[P],B=O*(.5*(R-z+3))||0,V=a.indentation;E.attr("transform",jE(V,B))}var G=E.selectAll("g.legendfill").data([M]);G.enter().append("g").classed("legendfill",!0);var U=E.selectAll("g.legendlines").data([M]);U.enter().append("g").classed("legendlines",!0);var Y=E.selectAll("g.legendsymbols").data([M]);Y.enter().append("g").classed("legendsymbols",!0),Y.selectAll("g.legendpoints").data([M]).enter().append("g").classed("legendpoints",!0)}).each(k).each(v).each(p).each(d).each(y).each(b).each(_).each(f).each(c).each(x).each(w);function f(M){var S=XE(M),E=S.showFill,D=S.showLine,P=S.showGradientLine,R=S.showGradientFill,z=S.anyFill,O=S.anyLine,B=M[0],V=B.trace,G,U,Y=p5(V),J=Y.colorscale,Z=Y.reversescale,re=function(ve){if(ve.size())if(E)Jn.fillGroupStyle(ve,t,!0);else{var oe="legendfill-"+V.uid;Jn.gradient(ve,t,oe,y5(Z),J,"fill")}},fe=function(ve){if(ve.size()){var oe="legendline-"+V.uid;Jn.lineGroupStyle(ve),Jn.gradient(ve,t,oe,y5(Z),J,"stroke")}},ie=G1.hasMarkers(V)||!z?"M5,0":O?"M5,-2":"M5,-3",ue=ln.select(this),K=ue.select(".legendfill").selectAll("path").data(E||R?[M]:[]);if(K.enter().append("path").classed("js-fill",!0),K.exit().remove(),K.attr("d",ie+"h"+o+"v6h-"+o+"z").call(re),D||P){var ye=u(void 0,V.line,mhe,ZE);U=$a.minExtend(V,{line:{width:ye}}),G=[$a.minExtend(B,{trace:U})]}var se=ue.select(".legendlines").selectAll("path").data(D||P?[G]:[]);se.enter().append("path").classed("js-line",!0),se.exit().remove(),se.attr("d",ie+(P?"l"+o+",0.0001":"h"+o)).call(D?Jn.lineGroupStyle:fe)}function c(M){var S=XE(M),E=S.anyFill,D=S.anyLine,P=S.showLine,R=S.showMarker,z=M[0],O=z.trace,B=!R&&!D&&!E&&G1.hasText(O),V,G;function U(K,ye,se,ve){var oe=$a.nestedProperty(O,K).get(),ce=$a.isArrayOrTypedArray(oe)&&ye?ye(oe):oe;if(i&&ce&&ve!==void 0&&(ce=ve),se){if(cese[1])return se[1]}return ce}function Y(K){return z._distinct&&z.index&&K[z.index]?K[z.index]:K[0]}if(R||B||P){var J={},Z={};if(R){J.mc=U("marker.color",Y),J.mx=U("marker.symbol",Y),J.mo=U("marker.opacity",$a.mean,[.2,1]),J.mlc=U("marker.line.color",Y),J.mlw=U("marker.line.width",$a.mean,[0,5],pu),Z.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var re=U("marker.size",$a.mean,[2,16],WE);J.ms=re,Z.marker.size=re}P&&(Z.line={width:U("line.width",Y,[0,10],ZE)}),B&&(J.tx="Aa",J.tp=U("textposition",Y),J.ts=10,J.tc=U("textfont.color",Y),J.tf=U("textfont.family",Y),J.tw=U("textfont.weight",Y),J.ty=U("textfont.style",Y),J.tv=U("textfont.variant",Y),J.tC=U("textfont.textcase",Y),J.tE=U("textfont.lineposition",Y),J.tS=U("textfont.shadow",Y)),V=[$a.minExtend(z,J)],G=$a.minExtend(O,Z),G.selectedpoints=null,G.texttemplate=null}var fe=ln.select(this).select("g.legendpoints"),ie=fe.selectAll("path.scatterpts").data(R?V:[]);ie.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),ie.exit().remove(),ie.call(Jn.pointStyle,G,t),R&&(V[0].mrc=3);var ue=fe.selectAll("g.pointtext").data(B?V:[]);ue.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),ue.exit().remove(),ue.selectAll("text").call(Jn.textPointStyle,G,t)}function v(M){var S=M[0].trace,E=S.type==="waterfall";if(M[0]._distinct&&E){var D=M[0].trace[M[0].dir].marker;return M[0].mc=D.color,M[0].mlw=D.line.width,M[0].mlc=D.line.color,m(M,this,"waterfall")}var P=[];S.visible&&E&&(P=M[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var R=ln.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(P);R.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(z){var O=ln.select(this),B=S[z[0]].marker,V=u(void 0,B.line,Qf,pu);O.attr("d",z[1]).style("stroke-width",V+"px").call(yi.fill,B.color),V&&O.call(yi.stroke,B.line.color)})}function d(M){m(M,this)}function p(M){m(M,this,"funnel")}function m(M,S,E){var D=M[0].trace,P=D.marker||{},R=P.line||{},z=P.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",O=E?D.visible&&D.type===E:d5.traceIs(D,"bar"),B=ln.select(S).select("g.legendpoints").selectAll("path.legend"+E).data(O?[M]:[]);B.enter().append("path").classed("legend"+E,!0).attr("d",z).attr("transform",s),B.exit().remove(),B.each(function(V){var G=ln.select(this),U=V[0],Y=u(U.mlw,P.line,Qf,pu);G.style("stroke-width",Y+"px");var J=U.mcc;if(!a._inHover&&"mc"in U){var Z=p5(P),re=Z.mid;re===void 0&&(re=(Z.max+Z.min)/2),J=Jn.tryColorscale(P,"")(re)}var fe=J||U.mc||P.color,ie=P.pattern,ue=Jn.getPatternAttr,K=ie&&(ue(ie.shape,0,"")||ue(ie.path,0,""));if(K){var ye=ue(ie.bgcolor,0,null),se=ue(ie.fgcolor,0,null),ve=ie.fgopacity,oe=JE(ie.size,8,10),ce=JE(ie.solidity,.5,1),j="legend-"+D.uid;G.call(Jn.pattern,"legend",t,j,K,oe,ce,J,ie.fillmode,ye,se,ve)}else G.call(yi.fill,fe);Y&&yi.stroke(G,U.mlc||R.color)})}function y(M){var S=M[0].trace,E=ln.select(this).select("g.legendpoints").selectAll("path.legendbox").data(S.visible&&d5.traceIs(S,"box-violin")?[M]:[]);E.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),E.exit().remove(),E.each(function(){var D=ln.select(this);if((S.boxpoints==="all"||S.points==="all")&&yi.opacity(S.fillcolor)===0&&yi.opacity((S.line||{}).color)===0){var P=$a.minExtend(S,{marker:{size:i?WE:$a.constrain(S.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});E.call(Jn.pointStyle,P,t)}else{var R=u(void 0,S.line,Qf,pu);D.style("stroke-width",R+"px").call(yi.fill,S.fillcolor),R&&yi.stroke(D,S.line.color)}})}function x(M){var S=M[0].trace,E=ln.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(S.visible&&S.type==="candlestick"?[M,M]:[]);E.enter().append("path").classed("legendcandle",!0).attr("d",function(D,P){return P?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(D,P){var R=ln.select(this),z=S[P?"increasing":"decreasing"],O=u(void 0,z.line,Qf,pu);R.style("stroke-width",O+"px").call(yi.fill,z.fillcolor),O&&yi.stroke(R,z.line.color)})}function w(M){var S=M[0].trace,E=ln.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(S.visible&&S.type==="ohlc"?[M,M]:[]);E.enter().append("path").classed("legendohlc",!0).attr("d",function(D,P){return P?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(D,P){var R=ln.select(this),z=S[P?"increasing":"decreasing"],O=u(void 0,z.line,Qf,pu);R.style("fill","none").call(Jn.dashLine,z.line.dash,O),O&&yi.stroke(R,z.line.color)})}function _(M){T(M,this,"pie")}function b(M){T(M,this,"funnelarea")}function T(M,S,E){var D=M[0],P=D.trace,R=E?P.visible&&P.type===E:d5.traceIs(P,E),z=ln.select(S).select("g.legendpoints").selectAll("path.legend"+E).data(R?[M]:[]);if(z.enter().append("path").classed("legend"+E,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),z.exit().remove(),z.size()){var O=P.marker||{},B=u(phe(O.line.width,D.pts),O.line,Qf,pu),V="pieLike",G=$a.minExtend(P,{marker:{line:{width:B}}},V),U=$a.minExtend(D,{trace:G},V);dhe(z,U,G,t)}}function k(M){var S=M[0].trace,E,D=[];if(S.visible)switch(S.type){case"histogram2d":case"heatmap":D=[["M-15,-2V4H15V-2Z"]],E=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":D=[["M-6,-6V6H6V-6Z"]],E=!0;break;case"densitymapbox":case"densitymap":D=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],E="radial";break;case"cone":D=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],E=!1;break;case"streamtube":D=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],E=!1;break;case"surface":D=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],E=!0;break;case"mesh3d":D=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!1;break;case"volume":D=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!0;break;case"isosurface":D=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],E=!1;break}var P=ln.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(D);P.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(R,z){var O=ln.select(this),B=p5(S),V=B.colorscale,G=B.reversescale,U=function(re){if(re.size()){var fe="legendfill-"+S.uid;Jn.gradient(re,t,fe,y5(G,E==="radial"),V,"fill")}},Y;if(V){if(!E){var Z=V.length;Y=z===0?V[G?Z-1:0][1]:z===1?V[G?0:Z-1][1]:V[Math.floor((Z-1)/2)][1]}}else{var J=S.vertexcolor||S.facecolor||S.color;Y=$a.isArrayOrTypedArray(J)?J[z]||J[0]:J}O.attr("d",R[0]),Y?O.call(yi.fill,Y):O.call(U)})}};function y5(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function XE(e){var r=e[0].trace,t=r.contours,a=G1.hasLines(r),n=G1.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function JE(e,r,t){return e&&$a.isArrayOrTypedArray(e)?r:e>t?t:e}});var _5=N((sRe,lD)=>{"use strict";var Rn=Sr(),na=Ee(),b5=ea(),tc=gr(),KE=rh(),g5=pi(),ia=Wr(),V1=Tr(),yu=Ea(),QE=FE(),ha=v5(),x5=Xa(),iD=x5.LINE_SPACING,rc=x5.FROM_TL,eD=x5.FROM_BR,rD=OE(),ghe=m5(),tD=O1(),ec=1,bhe=/^legend[0-9]*$/;lD.exports=function(r,t){if(t)aD(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Rn.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(bhe)&&n.indexOf(c)===-1&&u.remove()});for(var o=0;o1)}var p=a.hiddenlabels||[];if(!l&&(!a.showlegend||!s.length))return o.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),b5.autoMargin(e,n);var m=na.ensureSingle(o,"g",n,function(S){l||S.attr("pointer-events","all")}),y=na.ensureSingleById(a._topdefs,"clipPath",i,function(S){S.append("rect")}),x=na.ensureSingle(m,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});x.call(V1.stroke,t.bordercolor).call(V1.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var w=na.ensureSingle(m,"g","scrollbox"),_=t.title;t._titleWidth=0,t._titleHeight=0;var b;_.text?(b=na.ensureSingle(w,"text",n+"titletext"),b.attr("text-anchor","start").call(ia.font,_.font).text(_.text),j1(b,w,e,t,ec)):w.selectAll("."+n+"titletext").remove();var T=na.ensureSingle(m,"rect","scrollbar",function(S){S.attr(ha.scrollBarEnterAttrs).call(V1.fill,ha.scrollBarColor)}),k=w.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var M=k.selectAll("g.traces").data(na.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(S){var E=S[0].trace;return tc.traceIs(E,"pie-like")?p.indexOf(S[0].label)!==-1?.5:1:E.visible==="legendonly"?.5:1}).each(function(){Rn.select(this).call(_he,e,t)}).call(ghe,e,t).each(function(){l||Rn.select(this).call(whe,e,n)}),na.syncOrAsync([b5.previousPromises,function(){return Mhe(e,k,M,t)},function(){var S=a._size,E=t.borderwidth,D=t.xref==="paper",P=t.yref==="paper";if(_.text&&xhe(b,t,E),!l){var R,z;D?R=S.l+S.w*t.x-rc[W1(t)]*t._width:R=a.width*t.x-rc[W1(t)]*t._width,P?z=S.t+S.h*(1-t.y)-rc[Z1(t)]*t._effHeight:z=a.height*(1-t.y)-rc[Z1(t)]*t._effHeight;var O=khe(e,n,R,z);if(O)return;if(a.margin.autoexpand){var B=R,V=z;R=D?na.constrain(R,0,a.width-t._width):B,z=P?na.constrain(z,0,a.height-t._effHeight):V,R!==B&&na.log("Constrain "+n+".x to make legend fit inside graph"),z!==V&&na.log("Constrain "+n+".y to make legend fit inside graph")}ia.setTranslate(m,R,z)}if(T.on(".drag",null),m.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var G=t._effHeight;l&&(G=t._height),x.attr({width:t._width-E,height:G-E,x:E/2,y:E/2}),ia.setTranslate(w,0,0),y.select("rect").attr({width:t._width-2*E,height:G-2*E,x:E,y:E}),ia.setClipUrl(w,i,e),ia.setRect(T,0,0,0,0),delete t._scrollY}else{var U=Math.max(ha.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),Y=t._effHeight-U-2*ha.scrollBarMargin,J=t._height-t._effHeight,Z=Y/J,re=Math.min(t._scrollY||0,J);x.attr({width:t._width-2*E+ha.scrollBarWidth+ha.scrollBarMargin,height:t._effHeight-E,x:E/2,y:E/2}),y.select("rect").attr({width:t._width-2*E+ha.scrollBarWidth+ha.scrollBarMargin,height:t._effHeight-2*E,x:E,y:E+re}),ia.setClipUrl(w,i,e),oe(re,U,Z),m.on("wheel",function(){re=na.constrain(t._scrollY+Rn.event.deltaY/Y*J,0,J),oe(re,U,Z),re!==0&&re!==J&&Rn.event.preventDefault()});var fe,ie,ue,K=function(pe,be,me){var Fe=(me-be)/Z+pe;return na.constrain(Fe,0,J)},ye=function(pe,be,me){var Fe=(be-me)/Z+pe;return na.constrain(Fe,0,J)},se=Rn.behavior.drag().on("dragstart",function(){var pe=Rn.event.sourceEvent;pe.type==="touchstart"?fe=pe.changedTouches[0].clientY:fe=pe.clientY,ue=re}).on("drag",function(){var pe=Rn.event.sourceEvent;pe.buttons===2||pe.ctrlKey||(pe.type==="touchmove"?ie=pe.changedTouches[0].clientY:ie=pe.clientY,re=K(ue,fe,ie),oe(re,U,Z))});T.call(se);var ve=Rn.behavior.drag().on("dragstart",function(){var pe=Rn.event.sourceEvent;pe.type==="touchstart"&&(fe=pe.changedTouches[0].clientY,ue=re)}).on("drag",function(){var pe=Rn.event.sourceEvent;pe.type==="touchmove"&&(ie=pe.changedTouches[0].clientY,re=ye(ue,fe,ie),oe(re,U,Z))});w.call(ve)}function oe(pe,be,me){t._scrollY=e._fullLayout[n]._scrollY=pe,ia.setTranslate(w,0,-pe),ia.setRect(T,t._width,ha.scrollBarMargin+pe*me,ha.scrollBarWidth,be),y.select("rect").attr("y",E+pe)}if(e._context.edits.legendPosition){var ce,j,Q,W;m.classed("cursor-move",!0),g5.init({element:m.node(),gd:e,prepFn:function(pe){if(pe.target!==T.node()){var be=ia.getTranslate(m);Q=be.x,W=be.y}},moveFn:function(pe,be){if(Q!==void 0&&W!==void 0){var me=Q+pe,Fe=W+be;ia.setTranslate(m,me,Fe),ce=g5.align(me,t._width,S.l,S.l+S.w,t.xanchor),j=g5.align(Fe+t._height,-t._height,S.t+S.h,S.t,t.yanchor)}},doneFn:function(){if(ce!==void 0&&j!==void 0){var pe={};pe[n+".x"]=ce,pe[n+".y"]=j,tc.call("_guiRelayout",e,pe)}},clickFn:function(pe,be){var me=o.selectAll("g.traces").filter(function(){var Fe=this.getBoundingClientRect();return be.clientX>=Fe.left&&be.clientX<=Fe.right&&be.clientY>=Fe.top&&be.clientY<=Fe.bottom});me.size()>0&&oD(e,m,me,pe,be)}})}}],e)}}function Y1(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,o=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||n)}function oD(e,r,t,a,n){var i=t.data()[0][0].trace,o={event:n,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(o.group=i._group),tc.traceIs(i,"pie-like")&&(o.label=t.datum()[0].label);var l=KE.triggerHandler(e,"plotly_legendclick",o);if(a===1){if(l===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&QE(t,e,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var s=KE.triggerHandler(e,"plotly_legenddoubleclick",o);s!==!1&&l!==!1&&QE(t,e,a)}}function _he(e,r,t){var a=X1(t),n=e.data()[0][0],i=n.trace,o=tc.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=o?n.label:i.name,i._meta&&(u=na.templateString(u,i._meta))));var c=na.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(ia.font,f).text(l?nD(u,s):u);var v=t.indentation+t.itemwidth+ha.itemGap*2;yu.positionText(c,v,0),l?c.call(yu.makeEditable,{gd:r,text:u}).call(j1,e,r,t).on("edit",function(d){this.text(nD(d,s)).call(j1,e,r,t);var p=n.trace._fullInput||{},m={};return m.name=d,p._isShape?tc.call("_guiRelayout",r,"shapes["+i.index+"].name",m.name):tc.call("_guiRestyle",r,m,i.index)}):j1(c,e,r,t)}function nD(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function whe(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=na.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(V1.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),oD(r,l,e,i,Rn.event)}}))}function j1(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),yu.convertToTspans(e,t,function(){The(r,t,a,n)})}function The(e,r,t,a){var n=e.data()[0][0];if(!t._inHover&&n&&!n.trace.showlegend){e.remove();return}var i=e.select("g[class*=math-group]"),o=i.node(),l=X1(t);t||(t=r._fullLayout[l]);var s=t.borderwidth,u;a===ec?u=t.title.font:n.groupTitle?u=n.groupTitle.font:u=t.font;var f=u.size*iD,c,v;if(o){var d=ia.bBox(o);c=d.height,v=d.width,a===ec?ia.setTranslate(i,s,s+c*.75):ia.setTranslate(i,0,c*.25)}else{var p="."+l+(a===ec?"title":"")+"text",m=e.select(p),y=yu.lineCount(m),x=m.node();if(c=f*y,v=x?ia.bBox(x).width:0,a===ec)t.title.side==="left"&&(v+=ha.itemGap*2),yu.positionText(m,s+ha.titlePad,s+f);else{var w=ha.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(w=ha.itemGap,v-=t.indentation+t.itemwidth),yu.positionText(m,w,-f*((y-1)/2-.3))}}a===ec?(t._titleWidth=v,t._titleHeight=c):(n.lineHeight=f,n.height=Math.max(c,16)+3,n.width=v)}function Ahe(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function Mhe(e,r,t,a){var n=e._fullLayout,i=X1(a);a||(a=n[i]);var o=n._size,l=tD.isVertical(a),s=tD.isGrouped(a),u=a.entrywidthmode==="fraction",f=a.borderwidth,c=2*f,v=ha.itemGap,d=a.indentation+a.itemwidth+v*2,p=2*(f+v),m=Z1(a),y=a.y<0||a.y===0&&m==="top",x=a.y>1||a.y===1&&m==="bottom",w=a.tracegroupgap,_={},{maxheight:b,orientation:T,yref:k}=a,M=T==="v"&&k==="paper"?o.h:n.height;a._maxHeight=Math.max(b>1?b:b*M,30);var S=0;a._width=0,a._height=0;var E=Ahe(a);if(l)t.each(function(ve){var oe=ve[0].height;ia.setTranslate(this,f+E[0],f+E[1]+a._height+oe/2+v),a._height+=oe,a._width=Math.max(a._width,ve[0].width)}),S=d+a._width,a._width+=v+d+c,a._height+=p,s&&(r.each(function(ve,oe){ia.setTranslate(this,0,oe*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var D=W1(a),P=a.x<0||a.x===0&&D==="right",R=a.x>1||a.x===1&&D==="left",z=x||y,O=n.width/2;a._maxWidth=Math.max(P?z&&D==="left"?o.l+o.w:O:R?z&&D==="right"?o.r+o.w:O:o.w,2*d);var B=0,V=0;t.each(function(ve){var oe=Y1(ve,a,d);B=Math.max(B,oe),V+=oe}),S=null;var G=0;if(s){var U=0,Y=0,J=0;r.each(function(){var ve=0,oe=0;Rn.select(this).selectAll("g.traces").each(function(j){var Q=Y1(j,a,d),W=j[0].height;ia.setTranslate(this,E[0],E[1]+f+v+W/2+oe),oe+=W,ve=Math.max(ve,Q),_[j[0].trace.legendgroup]=ve});var ce=ve+v;Y>0&&ce+f+Y>a._maxWidth?(G=Math.max(G,Y),Y=0,J+=U+w,U=oe):U=Math.max(U,oe),ia.setTranslate(this,Y,J),Y+=ce}),a._width=Math.max(G,Y)+f,a._height=J+U+p}else{var Z=t.size(),re=V+c+(Z-1)*v=a._maxWidth&&(G=Math.max(G,K),ie=0,ue+=fe,a._height+=fe,fe=0),ia.setTranslate(this,E[0]+f+ie,E[1]+f+ue+oe/2+v),K=ie+ce+v,ie+=j,fe=Math.max(fe,oe)}),re?(a._width=ie+c,a._height=fe+p):(a._width=Math.max(G,K)+c,a._height+=fe+p)}}a._width=Math.ceil(Math.max(a._width+E[0],a._titleWidth+2*(f+ha.titlePad))),a._height=Math.ceil(Math.max(a._height+E[1],a._titleHeight+2*(f+ha.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var ye=e._context.edits,se=ye.legendText||ye.legendPosition;t.each(function(ve){var oe=Rn.select(this).select("."+i+"toggle"),ce=ve[0].height,j=ve[0].trace.legendgroup,Q=Y1(ve,a,d);s&&j!==""&&(Q=_[j]);var W=se?d:S||Q;!l&&!u&&(W+=v/2),ia.setRect(oe,0,-ce/2,W,ce)})}function khe(e,r,t,a){var n=e._fullLayout,i=n[r],o=W1(i),l=Z1(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",v={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return b5.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*rc[o],r:i._width*eD[o],b:i._effHeight*eD[l],t:i._effHeight*rc[l]});s?e._fullLayout._reservedMargin[r][f]=v[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=v[c]:e._fullLayout._reservedMargin[r][f]=v[f]}function W1(e){return na.isRightAnchor(e)?"right":na.isCenterAnchor(e)?"center":"left"}function Z1(e){return na.isBottomAnchor(e)?"bottom":na.isMiddleAnchor(e)?"middle":"top"}function X1(e){return e._id||"legend"}});var M5=N(A5=>{"use strict";var mu=Sr(),cl=Rr(),sD=kn(),Gt=Ee(),She=Gt.pushUnique,w5=Gt.strTranslate,qhe=Gt.strRotate,Lhe=rh(),mi=Ea(),Che=EE(),Ro=Wr(),Ta=Tr(),J1=pi(),Po=Or(),Ehe=Ca().zindexSeparator,nc=gr(),to=qo(),gu=Vv(),Dhe=u5(),Rhe=_5(),yD=gu.YANGLE,T5=Math.PI*yD/180,Phe=1/Math.sin(T5),Fhe=Math.cos(T5),Nhe=Math.sin(T5),Nt=gu.HOVERARROWSIZE,Yr=gu.HOVERTEXTPAD,uD={box:!0,ohlc:!0,violin:!0,candlestick:!0},zhe={scatter:!0,scattergl:!0,splom:!0};function fD(e,r){return e.distance-r.distance}A5.hover=function(r,t,a,n){r=Gt.getGraphDiv(r);var i=t.target;Gt.throttle(r._fullLayout._uid+gu.HOVERID,gu.HOVERMINTIME,function(){Ihe(r,t,a,n,i)})};A5.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=_D(n),o=wD(n),l=r.map(function(y){var x=y._x0||y.x0||y.x||0,w=y._x1||y.x1||y.x||0,_=y._y0||y.y0||y.y||0,b=y._y1||y.y1||y.y||0,T=y.eventData;if(T){var k=Math.min(x,w),M=Math.max(x,w),S=Math.min(_,b),E=Math.max(_,b),D=y.trace;if(nc.traceIs(D,"gl3d")){var P=n._fullLayout[D.scene]._scene.container,R=P.offsetLeft,z=P.offsetTop;k+=R,M+=R,S+=z,E+=z}T.bbox={x0:k+o,x1:M+o,y0:S+i,y1:E+i},t.inOut_bbox&&t.inOut_bbox.push(T.bbox)}else T=!1;return{color:y.color||Ta.defaultLine,x0:y.x0||y.x||0,x1:y.x1||y.x||0,y0:y.y0||y.y||0,y1:y.y1||y.y||0,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:y.text,name:y.name,idealAlign:y.idealAlign,borderColor:y.borderColor,fontFamily:y.fontFamily,fontSize:y.fontSize,fontColor:y.fontColor,fontWeight:y.fontWeight,fontStyle:y.fontStyle,fontVariant:y.fontVariant,nameLength:y.nameLength,textAlign:y.textAlign,trace:y.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:y.hovertemplate||!1,hovertemplateLabels:y.hovertemplateLabels||!1,eventData:T}}),s=!1,u=gD(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||Ta.background,container:mu.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,c=5,v=0,d=0;f.sort(function(y,x){return y.y0-x.y0}).each(function(y,x){var w=y.y0-y.by/2;w-cM[0]._length||W<0||W>S[0]._length)return J1.unhoverRaw(e,r)}if(r.pointerX=Q+M[0]._offset,r.pointerY=W+S[0]._offset,"xval"in r?V=to.flat(i,r.xval):V=to.p2c(M,Q),"yval"in r?G=to.flat(i,r.yval):G=to.p2c(S,W),!cl(V[0])||!cl(G[0]))return Gt.warn("Fx.hover failed",r,e),J1.unhoverRaw(e,r)}var me=1/0;function Fe(br,pt){for(Y=0;Yse&&(O.splice(0,se),me=O[0].distance),c&&z!==0&&O.length===0){ye.distance=z,ye.index=!1;var ct=Z._module.hoverPoints(ye,ue,K,"closest",{hoverLayer:l._hoverlayer});if(ct&&(ct=ct.filter(function(ft){return ft.spikeDistance<=z})),ct&&ct.length){var ba,Zt=ct.filter(function(ft){return ft.xa.showspikes&&ft.xa.spikesnap!=="hovered data"});if(Zt.length){var tn=Zt[0];cl(tn.x0)&&cl(tn.y0)&&(ba=Re(tn),(!ve.vLinePoint||ve.vLinePoint.spikeDistance>ba.spikeDistance)&&(ve.vLinePoint=ba))}var wn=ct.filter(function(ft){return ft.ya.showspikes&&ft.ya.spikesnap!=="hovered data"});if(wn.length){var Xt=wn[0];cl(Xt.x0)&&cl(Xt.y0)&&(ba=Re(Xt),(!ve.hLinePoint||ve.hLinePoint.spikeDistance>ba.spikeDistance)&&(ve.hLinePoint=ba))}}}}}Fe();function ze(br,pt,Nr){for(var ut=null,Rt=1/0,Qr,ct=0;ct0&&Math.abs(br.distance)Ce-1;lr--)cr(O[lr]);O=Ve,Pe()}var Ie=e._hoverdata,ne=[],de=_D(e),De=wD(e);for(U=0;U1||O.length>1)||v==="closest"&&oe&&O.length>1,Wa=Ta.combine(l.plot_bgcolor||Ta.background,l.paper_bgcolor),ga=gD(O,{gd:e,hovermode:v,rotateLabels:St,bgColor:Wa,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),Wt=ga.hoverLabels;if(to.isUnifiedHover(v)||(Bhe(Wt,St,l,ga.commonLabelBoundingBox),xD(Wt,St,l._invScaleX,l._invScaleY)),n&&n.tagName){var Na=nc.getComponentMethod("annotations","hasClickToShow")(e,ne);Che(mu.select(n),Na?"pointer":"")}!n||a||!Ghe(e,r,Ie)||(Ie&&e.emit("plotly_unhover",{event:r,points:Ie}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:M,yaxes:S,xvals:V,yvals:G}))}function mD(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Ohe=/([\s\S]*)<\/extra>/;function gD(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||gu.HOVERFONT,c=r.fontSize||gu.HOVERFONTSIZE,v=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,p=r.fontVariant||a.font.variant,m=r.fontTextcase||a.font.textcase,y=r.fontLineposition||a.font.lineposition,x=r.fontShadow||a.font.shadow,w=e[0],_=w.xa,b=w.ya,T=n.charAt(0),k=T+"Label",M=w[k];if(M===void 0&&_.type==="multicategory")for(var S=0;Sa.width-Ie&&(ne=a.width-Ie),nr.attr("d","M"+($e-ne)+",0L"+($e-ne+Nt)+","+lr+Nt+"H"+Ie+"v"+lr+(Yr*2+Ge.height)+"H"+-Ie+"V"+lr+Nt+"H"+($e-ne-Nt)+"Z"),$e=ne,Y.minX=$e-Ie,Y.maxX=$e+Ie,_.side==="top"?(Y.minY=cr-(Yr*2+Ge.height),Y.maxY=cr-Yr):(Y.minY=cr+Yr,Y.maxY=cr+(Yr*2+Ge.height))}else{var de,De,qe;b.side==="right"?(de="start",De=1,qe="",$e=_._offset+_._length):(de="end",De=-1,qe="-",$e=_._offset),cr=b._offset+(w.y0+w.y1)/2,Ke.attr("text-anchor",de),nr.attr("d","M0,0L"+qe+Nt+","+Nt+"V"+(Yr+Ge.height/2)+"h"+qe+(Yr*2+Ge.width)+"V-"+(Yr+Ge.height/2)+"H"+qe+Nt+"V-"+Nt+"Z"),Y.minY=cr-(Yr+Ge.height/2),Y.maxY=cr+(Yr+Ge.height/2),b.side==="right"?(Y.minX=$e+Nt,Y.maxX=$e+Nt+(Yr*2+Ge.width)):(Y.minX=$e-Nt-(Yr*2+Ge.width),Y.maxX=$e-Nt);var ar=Ge.height/2,hr=D-Ge.top-ar,ur="clip"+a._uid+"commonlabel"+b._id,Ar;if($e=0?Be=Ue:He+W=0?Be=He:Pe+W=0?le=Re:Ne+pe=0?le=Ne:Oe+pe=0,(Se.idealAlign==="top"||!zr)&&Et?(qe-=hr/2,Se.anchor="end"):zr?(qe+=hr/2,Se.anchor="start"):Se.anchor="middle",Se.crossPos=qe;else{if(Se.pos=qe,zr=De+ar/2+Vr<=P,Et=De-ar/2-Vr>=0,(Se.idealAlign==="left"||!zr)&&Et)De-=ar/2,Se.anchor="end";else if(zr)De+=ar/2,Se.anchor="start";else{Se.anchor="middle";var Dt=Vr/2,ma=De+Dt-P,St=De-Dt;ma>0&&(De-=ma),St<0&&(De+=-St)}Se.crossPos=De}cr.attr("text-anchor",Se.anchor),Ie&&lr.attr("text-anchor",Se.anchor),nr.attr("transform",w5(De,qe)+(i?qhe(yD):""))}),{hoverLabels:Te,commonLabelBoundingBox:Y}}function cD(e,r,t,a,n,i){var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Gt.templateString(e.name,e.trace._meta)),o=dD(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?l=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o);var f=e.hovertemplate||!1;if(f){var c=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(c[s+"other"]=c[s+"Val"],c[s+"otherLabel"]=c[s+"Label"]),l=Gt.hovertemplateString(f,c,a._d3locale,e.eventData[0]||{},e.trace._meta),l=l.replace(Ohe,function(v,d){return o=dD(d,e.nameLength),""})}return[l,o]}function Bhe(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),u=new Array(s),f=0,c=a.minX,v=a.maxX,d=a.minY,p=a.maxY,m=function(V){return V*t._invScaleX},y=function(V){return V*t._invScaleY};e.each(function(V){var G=V[n],U=V[i],Y=G._id.charAt(0)==="x",J=G.range;f===0&&J&&J[0]>J[1]!==Y&&(l=-1);var Z=0,re=Y?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var fe=bD(V,r),ie=V.anchor,ue=ie==="end"?-1:1,K,ye;if(ie==="middle")K=V.crossPos+(Y?y(fe.y-V.by/2):m(V.bx/2+V.tx2width/2)),ye=K+(Y?y(V.by):m(V.bx));else if(Y)K=V.crossPos+y(Nt+fe.y)-y(V.by/2-Nt),ye=K+y(V.by);else{var se=m(ue*Nt+fe.x),ve=se+m(ue*V.bx);K=V.crossPos+Math.min(se,ve),ye=V.crossPos+Math.max(se,ve)}Y?d!==void 0&&p!==void 0&&Math.min(ye,p)-Math.max(K,d)>1&&(U.side==="left"?(Z=U._mainLinePosition,re=t.width):re=U._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(ye,v)-Math.max(K,c)>1&&(U.side==="top"?(Z=U._mainLinePosition,re=t.height):re=U._mainLinePosition)}u[f++]=[{datum:V,traceIndex:V.trace.index,dp:0,pos:V.pos,posref:V.posref,size:V.by*(Y?Phe:1)/2,pmin:Z,pmax:re}]}),u.sort(function(V,G){return V[0].posref-G[0].posref||l*(G[0].traceIndex-V[0].traceIndex)});var x,w,_,b,T,k,M;function S(V){var G=V[0],U=V[V.length-1];if(w=G.pmin-G.pos-G.dp+G.size,_=U.pos+U.dp+U.size-G.pmax,w>.01){for(T=V.length-1;T>=0;T--)V[T].dp+=w;x=!1}if(!(_<.01)){if(w<-.01){for(T=V.length-1;T>=0;T--)V[T].dp-=_;x=!1}if(x){var Y=0;for(b=0;bG.pmax&&Y++;for(b=V.length-1;b>=0&&!(Y<=0);b--)k=V[b],k.pos>G.pmax-1&&(k.del=!0,Y--);for(b=0;b=0;T--)V[T].dp-=_;for(b=V.length-1;b>=0&&!(Y<=0);b--)k=V[b],k.pos+k.dp+k.size>G.pmax&&(k.del=!0,Y--)}}}for(;!x&&o<=s;){for(o++,x=!0,b=0;b.01){for(T=D.length-1;T>=0;T--)D[T].dp+=w;for(E.push.apply(E,D),u.splice(b+1,1),M=0,T=E.length-1;T>=0;T--)M+=E[T].dp;for(_=M/E.length,T=E.length-1;T>=0;T--)E[T].dp-=_;x=!1}else b++}u.forEach(S)}for(b=u.length-1;b>=0;b--){var z=u[b];for(T=z.length-1;T>=0;T--){var O=z[T],B=O.datum;B.offset=O.dp,B.del=O.del}}}function bD(e,r){var t=0,a=e.offset;return r&&(a*=-Nhe,t=e.offset*Fhe),{x:t,y:a}}function Hhe(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Nt+Yr),a=t+r*(e.txwidth+Yr),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Yr),{alignShift:r,textShiftX:t,text2ShiftX:a}}function xD(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=mu.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,c=Hhe(o),v=bD(o,r),d=v.x,p=v.y,m=u==="middle";l.select("path").attr("d",m?"M-"+n(o.bx/2+o.tx2width/2)+","+i(p-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":"M0,0L"+n(f*Nt+d)+","+i(Nt+p)+"v"+i(o.by/2-Nt)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*Nt+d)+"V"+i(p-Nt)+"Z");var y=d+c.textShiftX,x=p+o.ty0-o.by/2+Yr,w=o.textAlign||"auto";w!=="auto"&&(w==="left"&&u!=="start"?(s.attr("text-anchor","start"),y=m?-o.bx/2-o.tx2width/2+Yr:-o.bx-Yr):w==="right"&&u!=="end"&&(s.attr("text-anchor","end"),y=m?o.bx/2-o.tx2width/2-Yr:o.bx+Yr)),s.call(mi.positionText,n(y),i(x)),o.tx2width&&(l.select("text.name").call(mi.positionText,n(c.text2ShiftX+c.alignShift*Yr+d),i(p+o.ty0-o.by/2+Yr)),l.select("rect").call(Ro.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),i(p-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function Uhe(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||cl(v)&&v===0}var l=Array.isArray(t)?function(v,d){var p=Gt.castOption(n,t,v);return o(p)?p:Gt.extractOption({},a,"",d)}:function(v,d){return Gt.extractOption(i,a,v,d)};function s(v,d,p){var m=l(d,p);o(m)&&(e[v]=m)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Gt.constrain(e.x0,0,e.xa._length),e.x1=Gt.constrain(e.x1,0,e.xa._length),e.y0=Gt.constrain(e.y0,0,e.ya._length),e.y1=Gt.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Po.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Po.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=Po.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Po.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Po.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Po.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function vD(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||l)){var c=Ta.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var v=r.hLinePoint,d,p;u=v&&v.xa,f=v&&v.ya;var m=f.spikesnap;m==="cursor"?(d=o.pointerX,p=o.pointerY):(d=u._offset+v.x,p=f._offset+v.y);var y=sD.readability(v.color,c)<1.5?Ta.contrast(c):v.color,x=f.spikemode,w=f.spikethickness,_=f.spikecolor||y,b=Po.getPxPosition(e,f),T,k;if(x.indexOf("toaxis")!==-1||x.indexOf("across")!==-1){if(x.indexOf("toaxis")!==-1&&(T=b,k=d),x.indexOf("across")!==-1){var M=f._counterDomainMin,S=f._counterDomainMax;f.anchor==="free"&&(M=Math.min(M,f.position),S=Math.max(S,f.position)),T=i.l+M*i.w,k=i.l+S*i.w}a.insert("line",":first-child").attr({x1:T,x2:k,y1:p,y2:p,"stroke-width":w,stroke:_,"stroke-dasharray":Ro.dashStyle(f.spikedash,w)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:T,x2:k,y1:p,y2:p,"stroke-width":w+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}x.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?w:-w),cy:p,r:w,fill:_}).classed("spikeline",!0)}if(s){var E=r.vLinePoint,D,P;u=E&&E.xa,f=E&&E.ya;var R=u.spikesnap;R==="cursor"?(D=o.pointerX,P=o.pointerY):(D=u._offset+E.x,P=f._offset+E.y);var z=sD.readability(E.color,c)<1.5?Ta.contrast(c):E.color,O=u.spikemode,B=u.spikethickness,V=u.spikecolor||z,G=Po.getPxPosition(e,u),U,Y;if(O.indexOf("toaxis")!==-1||O.indexOf("across")!==-1){if(O.indexOf("toaxis")!==-1&&(U=G,Y=P),O.indexOf("across")!==-1){var J=u._counterDomainMin,Z=u._counterDomainMax;u.anchor==="free"&&(J=Math.min(J,u.position),Z=Math.max(Z,u.position)),U=i.t+(1-Z)*i.h,Y=i.t+(1-J)*i.h}a.insert("line",":first-child").attr({x1:D,x2:D,y1:U,y2:Y,"stroke-width":B,stroke:V,"stroke-dasharray":Ro.dashStyle(u.spikedash,B)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:D,x2:D,y1:U,y2:Y,"stroke-width":B+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}O.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:D,cy:G-(u.side!=="top"?B:-B),r:B,fill:V}).classed("spikeline",!0)}}}function Ghe(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers))return!0}return!1}function hD(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function dD(e,r){return mi.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Yhe(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;o{"use strict";var Vhe=Ee(),jhe=Tr(),Whe=qo().isUnifiedHover;TD.exports=function(r,t,a,n){n=n||{};var i=t.legend;function o(l){n.font[l]||(n.font[l]=i?t.legend.font[l]:t.font[l])}t&&Whe(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=jhe.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),Vhe.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var MD=N((cRe,AD)=>{"use strict";var Zhe=Ee(),Xhe=$1(),Jhe=Tf();AD.exports=function(r,t){function a(n,i){return Zhe.coerce(r,t,Jhe,n,i)}Xhe(r,t,a)}});var qD=N((vRe,SD)=>{"use strict";var kD=Ee(),$he=yp(),Khe=$1();SD.exports=function(r,t,a,n){function i(l,s){return kD.coerce(r,t,$he,l,s)}var o=kD.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),Khe(r,t,i,o)}});var k5=N((hRe,LD)=>{"use strict";var Qhe=Ee(),e0e=Tf();LD.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:Qhe.coerce(r,t,e0e,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var DD=N((dRe,ED)=>{"use strict";var CD=Ee(),r0e=Tf(),t0e=k5(),a0e=$1();ED.exports=function(r,t){function a(f,c){return CD.coerce(r,t,r0e,f,c)}var n=t0e(r,t);n&&(a("hoverdistance"),a("spikedistance"));var i=a("dragmode");i==="select"&&a("selectdirection");var o=t._has("mapbox"),l=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l||s)&&u===1||(o||l)&&s&&u===2)&&(t.dragmode="pan"),a0e(r,t,a),CD.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var FD=N((pRe,PD)=>{"use strict";var S5=Ee(),RD=gr();PD.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return S5.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var i0e=gr(),o0e=M5().hover;ND.exports=function(r,t,a){var n=i0e.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&o0e(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Pn=N((mRe,BD)=>{"use strict";var l0e=Sr(),K1=Ee(),s0e=pi(),xh=qo(),ID=Tf(),OD=M5();BD.exports={moduleType:"component",name:"fx",constants:Vv(),schema:{layout:ID},attributes:yp(),layoutAttributes:ID,supplyLayoutGlobalDefaults:MD(),supplyDefaults:qD(),supplyLayoutDefaults:DD(),calc:FD(),getDistanceFunction:xh.getDistanceFunction,getClosest:xh.getClosest,inbox:xh.inbox,quadrature:xh.quadrature,appendArrayPointValue:xh.appendArrayPointValue,castHoverOption:f0e,castHoverinfo:c0e,hover:OD.hover,unhover:s0e.unhover,loneHover:OD.loneHover,loneUnhover:u0e,click:zD()};function u0e(e){var r=K1.isD3Selection(e)?e:l0e.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function f0e(e,r,t){return K1.castOption(e,r,"hoverlabel."+t)}function c0e(e,r,t){function a(n){return K1.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return K1.castOption(e,t,"hoverinfo",a)}});var bu=N(vl=>{"use strict";vl.selectMode=function(e){return e==="lasso"||e==="select"};vl.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};vl.openMode=function(e){return e==="drawline"||e==="drawopenpath"};vl.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};vl.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};vl.selectingOrDrawing=function(e){return vl.freeMode(e)||vl.rectMode(e)}});var Q1=N((bRe,HD)=>{"use strict";HD.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var ey=N((xRe,UD)=>{"use strict";UD.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var ty=N((_Re,GD)=>{"use strict";var ry=32;GD.exports={CIRCLE_SIDES:ry,i000:0,i090:ry/4,i180:ry/2,i270:ry/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var ay=N((wRe,VD)=>{"use strict";var v0e=Ee().strTranslate;function YD(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function h0e(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function d0e(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return YD(e,t[r])}}function p0e(e){return v0e(e.xaxis._offset,e.yaxis._offset)}VD.exports={p2r:YD,r2p:h0e,axValue:d0e,getTransform:p0e}});var ts=N(hl=>{"use strict";var y0e=mx(),ZD=ty(),ic=ZD.CIRCLE_SIDES,q5=ZD.SQRT2,XD=ay(),jD=XD.p2r,WD=XD.r2p,m0e=[0,3,4,5,6,1,2],g0e=[0,3,4,1,2];hl.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var eR=bu(),b0e=eR.drawMode,x0e=eR.openMode,oc=ty(),JD=oc.i000,$D=oc.i090,KD=oc.i180,QD=oc.i270,_0e=oc.cos45,w0e=oc.sin45,rR=ay(),iy=rR.p2r,as=rR.r2p,T0e=Zl(),A0e=T0e.clearOutline,oy=ts(),M0e=oy.readPaths,k0e=oy.writePaths,S0e=oy.ellipseOver,q0e=oy.fixDatesForPaths;function L0e(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,o=(a.layout||{}).shapes||[];if(!b0e(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var C0e=bu(),E0e=C0e.selectMode,D0e=Zl(),R0e=D0e.clearOutline,L5=ts(),P0e=L5.readPaths,F0e=L5.writePaths,N0e=L5.fixDatesForPaths;nR.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,u=l.yaxis,f=t.isActiveSelection,c=t.dragmode,v=(i.layout||{}).selections||[];if(!E0e(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";iR.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var ns=N(Da=>{"use strict";var xu=wh(),oR=Ee(),sy=Or();Da.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Da.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Da.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Da.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Da.extractPathCoords=function(e,r,t){var a=[],n=e.match(xu.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.substr(1).match(xu.paramRE);if(!(!l||l.lengthd&&(m="X"),m});return u>d&&(p=p.replace(/[\s,]*X.*/,""),oR.log("Ignoring extra params in segment "+s)),f+p})}function Th(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var D5=N((qRe,fR)=>{"use strict";var I0e=Ee(),lc=Or(),lR=Ea(),sR=Wr(),O0e=ts().readPaths,E5=ns(),B0e=E5.getPathString,uR=kp(),H0e=Xa().FROM_TL;fR.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var o={};if(a.type!=="path"){var l=lc.getFromId(r,a.xref),s=lc.getFromId(r,a.yref);for(var u in uR){var f=uR[u](a,l,s);f!==void 0&&(o[u]=f)}}i=I0e.texttemplateStringForShapes(a.label.texttemplate,{},r._fullLayout._d3locale,o)}else i=a.label.text;var c={"data-index":t},v=a.label.font,d={"data-notex":1},p=n.append("g").attr(c).classed("shape-label",!0),m=p.append("text").attr(d).classed("shape-label-text",!0).text(i),y,x,w,_;if(a.path){var b=B0e(r,a),T=O0e(b,r);y=1/0,w=1/0,x=-1/0,_=-1/0;for(var k=0;k=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function G0e(e,r,t,a,n,i,o){var l=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,v=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,m=n.label.yanchor,y,x,w,_;if(f==="line"){l==="start"?(y=e,x=r):l==="end"?(y=t,x=a):(y=(e+t)/2,x=(r+a)/2),p==="auto"&&(l==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var Y0e=Ee(),V0e=Y0e.strTranslate,cR=pi(),dR=bu(),j0e=dR.drawMode,pR=dR.selectMode,yR=gr(),vR=Tr(),fy=ty(),W0e=fy.i000,Z0e=fy.i090,X0e=fy.i180,J0e=fy.i270,$0e=Zl(),mR=$0e.clearOutlineControllers,P5=ts(),uy=P5.pointsOnRectangle,R5=P5.pointsOnEllipse,K0e=P5.writePaths,Q0e=ly().newShapes,ede=ly().createShapeObj,rde=C5(),tde=D5();gR.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(R5(r[0])||a.hasText)&&l({redrawing:!0})}function l(G){var U={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,U=Q0e(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,U=rde(t,a),i._fullLayout._reselect=!0),Object.keys(U).length&&yR.call((G||{}).redrawing?"relayout":"_guiRelayout",i,U)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=j0e(f),v=pR(f);(c||v)&&(i._fullLayout._outlining=!0),mR(i),t.attr("d",K0e(r));var d,p,m,y,x;if(!n&&(a.isActiveShape||a.isActiveSelection)){x=ade([],r);var w=u.append("g").attr("class","outline-controllers");D(w),V()}if(c&&a.hasText){var _=u.select(".label-temp"),b=ede(t,a,a.dragmode);tde(i,"label-temp",b,_)}function T(G){m=+G.srcElement.getAttribute("data-i"),y=+G.srcElement.getAttribute("data-j"),d[m][y].moveFn=k}function k(G,U){if(r.length){var Y=x[m][y][1],J=x[m][y][2],Z=r[m],re=Z.length;if(uy(Z)){var fe=G,ie=U;if(a.isActiveSelection){var ue=hR(Z,y);ue[1]===Z[y][1]?ie=0:fe=0}for(var K=0;K1&&!(G.length===2&&G[1][0]==="Z")&&(y===0&&(G[0][0]="M"),r[m]=G,o(),l())}}function E(G,U){if(G===2){m=+U.srcElement.getAttribute("data-i"),y=+U.srcElement.getAttribute("data-j");var Y=r[m];!uy(Y)&&!R5(Y)&&S()}}function D(G){d=[];for(var U=0;U{"use strict";var ide=Sr(),AR=gr(),bR=Ee(),sc=Or(),ode=ts().readPaths,lde=cy(),hy=D5(),MR=Zl().clearOutlineControllers,F5=Tr(),z5=Wr(),sde=_t().arrayEditor,xR=pi(),_R=rs(),_u=wh(),Fn=ns(),N5=Fn.getPathString;qR.exports={draw:I5,drawOne:kR,eraseActiveShape:cde,drawLabel:hy};function I5(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;no&&Ue>l&&!ze.shiftKey?xR.getCursor(He/Ne,1-Pe/Ue):"move";_R(r,Oe),ye=Oe.split("-")[0]}}function ce(ze){vy(e)||(s&&(x=Z(t.xanchor)),u&&(w=re(t.yanchor)),t.type==="path"?P=t.path:(d=s?t.x0:Z(t.x0),p=u?t.y0:re(t.y0),m=s?t.x1:Z(t.x1),y=u?t.y1:re(t.y1)),dy?(_=p,M="y0",b=y,S="y1"):(_=y,M="y1",b=p,S="y0"),oe(ze),be(n,t),Fe(r,t,e),K.moveFn=ye==="move"?W:pe,K.altKey=ze.altKey)}function j(){vy(e)||(_R(r),me(n),SR(r,e,t),AR.call("_guiRelayout",e,i.getUpdateObj()))}function Q(){vy(e)||me(n)}function W(ze,Re){if(t.type==="path"){var Ne=function(Pe){return Pe},Ue=Ne,He=Ne;s?v("xanchor",t.xanchor=fe(x+ze)):(Ue=function(Oe){return fe(Z(Oe)+ze)},z&&z.type==="date"&&(Ue=Fn.encodeDate(Ue))),u?v("yanchor",t.yanchor=ie(w+Re)):(He=function(Oe){return ie(re(Oe)+Re)},B&&B.type==="date"&&(He=Fn.encodeDate(He))),v("path",t.path=wR(P,Ue,He))}else s?v("xanchor",t.xanchor=fe(x+ze)):(v("x0",t.x0=fe(d+ze)),v("x1",t.x1=fe(m+ze))),u?v("yanchor",t.yanchor=ie(w+Re)):(v("y0",t.y0=ie(p+Re)),v("y1",t.y1=ie(y+Re)));r.attr("d",N5(e,t)),be(n,t),hy(e,a,t,R)}function pe(ze,Re){if(c){var Ne=function(Ge){return Ge},Ue=Ne,He=Ne;s?v("xanchor",t.xanchor=fe(x+ze)):(Ue=function($e){return fe(Z($e)+ze)},z&&z.type==="date"&&(Ue=Fn.encodeDate(Ue))),u?v("yanchor",t.yanchor=ie(w+Re)):(He=function($e){return ie(re($e)+Re)},B&&B.type==="date"&&(He=Fn.encodeDate(He))),v("path",t.path=wR(P,Ue,He))}else if(f){if(ye==="resize-over-start-point"){var Pe=d+ze,Oe=u?p-Re:p+Re;v("x0",t.x0=s?Pe:fe(Pe)),v("y0",t.y0=u?Oe:ie(Oe))}else if(ye==="resize-over-end-point"){var Be=m+ze,le=u?y-Re:y+Re;v("x1",t.x1=s?Be:fe(Be)),v("y1",t.y1=u?le:ie(le))}}else{var Te=function(Ge){return ye.indexOf(Ge)!==-1},Se=Te("n"),nr=Te("s"),Ke=Te("w"),Le=Te("e"),Ce=Se?_+Re:_,Ye=nr?b+Re:b,Xe=Ke?T+ze:T,Ve=Le?k+ze:k;u&&(Se&&(Ce=_-Re),nr&&(Ye=b-Re)),(!u&&Ye-Ce>l||u&&Ce-Ye>l)&&(v(M,t[M]=u?Ce:ie(Ce)),v(S,t[S]=u?Ye:ie(Ye))),Ve-Xe>o&&(v(E,t[E]=s?Xe:fe(Xe)),v(D,t[D]=s?Ve:fe(Ve)))}r.attr("d",N5(e,t)),be(n,t),hy(e,a,t,R)}function be(ze,Re){(s||u)&&Ne();function Ne(){var Ue=Re.type!=="path",He=ze.selectAll(".visual-cue").data([0]),Pe=1;He.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Pe}).classed("visual-cue",!0);var Oe=Z(s?Re.xanchor:bR.midRange(Ue?[Re.x0,Re.x1]:Fn.extractPathCoords(Re.path,_u.paramIsX))),Be=re(u?Re.yanchor:bR.midRange(Ue?[Re.y0,Re.y1]:Fn.extractPathCoords(Re.path,_u.paramIsY)));if(Oe=Fn.roundPositionForSharpStrokeRendering(Oe,Pe),Be=Fn.roundPositionForSharpStrokeRendering(Be,Pe),s&&u){var le="M"+(Oe-1-Pe)+","+(Be-1-Pe)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";He.attr("d",le)}else if(s){var Te="M"+(Oe-1-Pe)+","+(Be-9-Pe)+"v18 h2 v-18 Z";He.attr("d",Te)}else{var Se="M"+(Oe-9-Pe)+","+(Be-1-Pe)+"h18 v2 h-18 Z";He.attr("d",Se)}}}function me(ze){ze.selectAll(".visual-cue").remove()}function Fe(ze,Re,Ne){var Ue=Re.xref,He=Re.yref,Pe=sc.getFromId(Ne,Ue),Oe=sc.getFromId(Ne,He),Be="";Ue!=="paper"&&!Pe.autorange&&(Be+=Ue),He!=="paper"&&!Oe.autorange&&(Be+=He),z5.setClipUrl(ze,Be?"clip"+Ne._fullLayout._uid+Be:null,Ne)}}function wR(e,r,t){return e.replace(_u.segmentRE,function(a){var n=0,i=a.charAt(0),o=_u.paramIsX[i],l=_u.paramIsY[i],s=_u.numParams[i],u=a.substr(1).replace(_u.paramRE,function(f){return n>=s||(o[n]?f=r(f):l[n]&&(f=t(f)),n++),f});return i+u})}function fde(e,r){if(dy(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){TR(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=TR,I5(e)}}}function TR(e){if(dy(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(MR(e),delete e._fullLayout._activeShapeIndex,I5(e))}}function cde(e){if(dy(e)){MR(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var gi=gr(),LR=ea(),CR=va(),Zr=ey(),vde=py().eraseActiveShape,yy=Ee(),Ur=yy._,Xr=zR.exports={};Xr.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Ur(e,"Download plot as a PNG"):Ur(e,"Download plot")},icon:Zr.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};yy.notifier(Ur(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),gi.call("downloadImage",e,t).then(function(a){yy.notifier(Ur(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){yy.notifier(Ur(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Xr.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Ur(e,"Edit in Chart Studio")},icon:Zr.disk,click:function(e){LR.sendDataToCloud(e)}};Xr.editInChartStudio={name:"editInChartStudio",title:function(e){return Ur(e,"Edit in Chart Studio")},icon:Zr.pencil,click:function(e){LR.sendDataToCloud(e)}};Xr.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Ur(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Zr.zoombox,click:sn};Xr.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Ur(e,"Pan")},attr:"dragmode",val:"pan",icon:Zr.pan,click:sn};Xr.select2d={name:"select2d",_cat:"select",title:function(e){return Ur(e,"Box Select")},attr:"dragmode",val:"select",icon:Zr.selectbox,click:sn};Xr.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Ur(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Zr.lasso,click:sn};Xr.drawclosedpath={name:"drawclosedpath",title:function(e){return Ur(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Zr.drawclosedpath,click:sn};Xr.drawopenpath={name:"drawopenpath",title:function(e){return Ur(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Zr.drawopenpath,click:sn};Xr.drawline={name:"drawline",title:function(e){return Ur(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Zr.drawline,click:sn};Xr.drawrect={name:"drawrect",title:function(e){return Ur(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Zr.drawrect,click:sn};Xr.drawcircle={name:"drawcircle",title:function(e){return Ur(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Zr.drawcircle,click:sn};Xr.eraseshape={name:"eraseshape",title:function(e){return Ur(e,"Erase active shape")},icon:Zr.eraseshape,click:vde};Xr.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Ur(e,"Zoom in")},attr:"zoom",val:"in",icon:Zr.zoom_plus,click:sn};Xr.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Ur(e,"Zoom out")},attr:"zoom",val:"out",icon:Zr.zoom_minus,click:sn};Xr.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Ur(e,"Autoscale")},attr:"zoom",val:"auto",icon:Zr.autoscale,click:sn};Xr.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Ur(e,"Reset axes")},attr:"zoom",val:"reset",icon:Zr.home,click:sn};Xr.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Ur(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Zr.tooltip_basic,gravity:"ne",click:sn};Xr.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Ur(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Zr.tooltip_compare,gravity:"ne",click:sn};function sn(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=CR.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,v=(1+c)/2,d=(1-c)/2,p;for(f=0;f{"use strict";var IR=H5(),pde=Object.keys(IR),OR=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],BR=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(OR),fc=[],yde=function(e){if(BR.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();fc.indexOf(r)===-1&&fc.push(r),fc.indexOf(t)===-1&&fc.push(t)}};pde.forEach(function(e){yde(IR[e])});fc.sort();HR.exports={DRAW_MODES:OR,backButtons:BR,foreButtons:fc}});var G5=N((PRe,UR)=>{"use strict";var RRe=U5();UR.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var YR=N((FRe,GR)=>{"use strict";var mde=Ee(),Ah=Tr(),gde=_t(),bde=G5();GR.exports=function(r,t){var a=r.modebar||{},n=gde.newContainer(t,"modebar");function i(l,s){return mde.coerce(a,n,bde,l,s)}i("orientation"),i("bgcolor",Ah.addOpacity(t.paper_bgcolor,.5));var o=Ah.contrast(Ah.rgb(t.modebar.bgcolor));i("color",Ah.addOpacity(o,.3)),i("activecolor",Ah.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var ZR=N((NRe,WR)=>{"use strict";var Y5=Sr(),xde=Rr(),gy=Ee(),VR=ey(),_de=tp().version,wde=new DOMParser;function jR(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Fo=jR.prototype;Fo.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this._uid=n,this.element.className="modebar",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(l||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),gy.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Fo.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(n);r.buttonElements.push(o),a.appendChild(o)}),r.element.appendChild(a)})};Fo.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Fo.createButton=function(e){var r=this,t=document.createElement("a");t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&t.setAttribute("data-title",a),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&Y5.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||VR.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Fo.createIcon=function(e){var r=xde(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=wde.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Fo.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),o=a.getAttribute("data-toggle")==="true",l=Y5.select(a),s=function(c,v){var d=r.modebar,p=c.querySelector(".icon path");p&&(v||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(i===t){var u=!l.classed("active");l.classed("active",u),s(a,u)}}else{var f=i===null?i:gy.nestedProperty(r,i).get();l.classed("active",f===n),s(a,f===n)}})};Fo.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var Mde=va(),XR=Dn(),V5=gr(),kde=qo().isUnifiedHover,Sde=ZR(),by=H5(),qde=U5().DRAW_MODES,Lde=Ee().extendDeep;JR.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,o;Array.isArray(i)&&i.length?o=Fde(i):!a.displayModeBar&&a.watermark?o=[]:o=Cde(r),n?n.update(r,o):t._modeBar=Sde(r,o)};function Cde(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(U,Y){if(typeof Y=="string"){if(Y.toLowerCase()===U.toLowerCase())return!0}else{var J=Y.name,Z=Y._cat||Y.name;if(J===U||Z===U.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=a.modeBarButtonsToAdd.concat(i.filter(function(U){for(var Y=0;Y1?(D=["toggleHover"],P=["resetViews"]):c?(E=["zoomInGeo","zoomOutGeo"],D=["hoverClosestGeo"],P=["resetGeo"]):f?(D=["hoverClosest3d"],P=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(E=["zoomInMapbox","zoomOutMapbox"],D=["toggleHover"],P=["resetViewMapbox"]):y?(E=["zoomInMap","zoomOutMap"],D=["toggleHover"],P=["resetViewMap"]):v?D=["hoverClosestPie"]:_?(D=["hoverClosestCartesian","hoverCompareCartesian"],P=["resetViewSankey"]):D=["toggleHover"],u&&D.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Rde(t)||T)&&(D=[]),u&&!b&&(E=["zoomIn2d","zoomOut2d","autoScale2d"],P[0]!=="resetViews"&&(P=["resetScale2d"])),f?R=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!b||p?R=["zoom2d","pan2d"]:m||y||c?R=["pan2d"]:x&&(R=["zoom2d"]),Dde(t)&&R.push("select2d","lasso2d");var z=[],O=function(U){z.indexOf(U)===-1&&D.indexOf(U)!==-1&&z.push(U)};if(Array.isArray(l)){for(var B=[],V=0;V{"use strict";KR.exports={moduleType:"component",name:"modebar",layoutAttributes:G5(),supplyLayoutDefaults:YR(),manage:$R()}});var W5=N((ORe,QR)=>{"use strict";var Nde=Xa().FROM_BL;QR.exports=function(r,t,a){a===void 0&&(a=Nde[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var Tu=N(Mh=>{"use strict";var wu=Ee(),Z5=ch(),ao=va().id2name,zde=hi(),eP=W5(),Ide=Zf(),Ode=Ft().ALMOST_EQUAL,Bde=Xa().FROM_BL;Mh.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,u,f,c,v,d,p;for(l=0;li?t.substr(i):a.substr(n))+o}function Ude(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;oOde*p&&!w)){for(i=0;iR&&JD&&(D=J);var re=(D-E)/(2*P);c/=re,E=s.l2r(E),D=s.l2r(D),s.range=s._input.range=k{"use strict";var _y=Sr(),un=gr(),$n=ea(),bi=Ee(),$5=Ea(),K5=Q1(),kh=Tr(),cc=Wr(),nP=Wf(),uP=j5(),Sh=Or(),dl=Xa(),fP=Tu(),Gde=fP.enforce,Yde=fP.clean,iP=ch().doAutoRange,cP="start",Vde="middle",vP="end",jde=Ca().zindexSeparator;Aa.layoutStyles=function(e){return bi.syncOrAsync([$n.doAutoMargin,Zde],e)};function Wde(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function Zde(e){var r=e._fullLayout,t=r._size,a=t.p,n=Sh.list(e,"",!0),i,o,l,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(cc.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),Aa.drawMainTitle(e),uP.manage(e),!r._has("cartesian"))return $n.previousPromises(e);function c(ce,j,Q){var W=ce._lw/2;if(ce._id.charAt(0)==="x"){if(j){if(Q==="top")return j._offset-a-W}else return t.t+t.h*(1-(ce.position||0))+W%1;return j._offset+j._length+a+W}if(j){if(Q==="right")return j._offset+j._length+a+W}else return t.l+t.w*(ce.position||0)+W%1;return j._offset-a-W}for(i=0;i0){Kde(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:sP(r.yanchor)}).call($5.positionText,o,i);var f=(r.text.match($5.BR_TAG_ALL)||[]).length;if(f){var c=dl.LINE_SPACING*f+dl.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",y)})}var v=_y.selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,m=p+nP.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y:m,"text-anchor":a,dy:sP(r.yanchor)}).call($5.positionText,o,m)}}}};function Xde(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=bi.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return bi.isTopAnchor(r)&&t==="t"||bi.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=Jde(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function Kde(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&Xde(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),$n.allowAutoMargin(e,n),$n.autoMargin(e,n,l)}function Qde(e,r){var t=e.title,a=e._size,n=0;switch(r===cP?n=t.pad.l:r===vP&&(n=-t.pad.r),t.xref){case"paper":return a.l+a.w*t.x+n;case"container":default:return e.width*t.x+n}}function epe(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===dl.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto")return a.t/2;switch(t.yref){case"paper":return a.t+a.h-a.h*t.y+n;case"container":default:return e.height-e.height*t.y+n}}function sP(e){return e==="top"?dl.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":dl.MID_SHIFT+"em"}function rpe(e){var r=e.title,t=Vde;return bi.isRightAnchor(r)?t=vP:bi.isLeftAnchor(r)&&(t=cP),t}function tpe(e){var r=e.title,t="0em";return bi.isTopAnchor(r)?t=dl.CAP_SHIFT+"em":bi.isMiddleAnchor(r)&&(t=dl.MID_SHIFT+"em"),t}Aa.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var ape=ts().readPaths,npe=cy(),hP=Zl().clearOutlineControllers,Q5=Tr(),dP=Wr(),ipe=_t().arrayEditor,pP=ns(),ope=pP.getPathString;mP.exports={draw:Ty,drawOne:yP,activateLastSelection:upe};function Ty(e){var r=e._fullLayout;hP(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;y--){var x=o.append("path").attr(s).style("opacity",y?.1:u).call(Q5.stroke,c).call(Q5.fill,f).call(dP.dashLine,y?"solid":d,y?4+v:v);if(lpe(x,e,a),p){var w=ipe(e.layout,"selections",a);x.style({cursor:"move"});var _={element:x.node(),plotinfo:n,gd:e,editHelpers:w,isActiveSelection:!0},b=ape(l,e);npe(b,x,_)}else x.style("pointer-events",y?"all":"none");m[y]=x}var T=m[0],k=m[1];k.node().addEventListener("click",function(){return spe(e,T)})}}function lpe(e,r,t){var a=t.xref+t.yref;dP.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function spe(e,r){if(Ay(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){e_(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=e_,Ty(e)}}}function upe(e){if(Ay(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=e_,Ty(e)}}function e_(e){if(Ay(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(hP(e),delete e._fullLayout._activeSelectionIndex,Ty(e))}}});var bP=N((GRe,gP)=>{function fpe(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,o){return a("temp_status",{seg:n,above:i,below:o})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,o){return a("status",{seg:n,above:i,below:o})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}gP.exports=fpe});var _P=N((YRe,xP)=>{function cpe(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],o=a[1],l=n[0],s=n[1],u=t[0],f=t[1];return(l-i)*(f-o)-(s-o)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],o=n[0]-a[0],l=t[0]-a[0],s=n[1]-a[1],u=l*o+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=l-i>e&&(o-f)*(i-c)/(l-c)+f-n>e&&(s=!s),o=f,l=c}return s}};return r}xP.exports=cpe});var TP=N((VRe,wP)=>{var vpe={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};wP.exports=vpe});var MP=N((jRe,AP)=>{var qh=TP();function hpe(e,r,t){function a(p,m){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:null,below:null},otherFill:null}}function n(p,m,y){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=qh.create();function o(p,m,y,x,w,_){var b=r.pointsCompare(m,w);return b!==0?b:r.pointsSame(y,_)?0:p!==x?p?1:-1:r.pointAboveOrOnLine(y,x?w:_,x?_:w)?1:-1}function l(p,m){i.insertBefore(p,function(y){var x=o(p.isStart,p.pt,m,y.isStart,y.pt,y.other.pt);return x<0})}function s(p,m){var y=qh.node({isStart:!0,pt:p.start,seg:p,primary:m,other:null,status:null});return l(y,p.end),y}function u(p,m,y){var x=qh.node({isStart:!1,pt:m.end,seg:m,primary:y,other:p,status:null});p.other=x,l(x,p.pt)}function f(p,m){var y=s(p,m);return u(y,p,m),y}function c(p,m){t&&t.segmentChop(p.seg,m),p.other.remove(),p.seg.end=m,p.other.pt=m,l(p.other,p.pt)}function v(p,m){var y=n(m,p.seg.end,p.seg);return c(p,m),f(y,p.primary)}function d(p,m){var y=qh.create();function x(B,V){var G=B.seg.start,U=B.seg.end,Y=V.seg.start,J=V.seg.end;return r.pointsCollinear(G,Y,J)?r.pointsCollinear(U,Y,J)||r.pointAboveOrOnLine(U,Y,J)?1:-1:r.pointAboveOrOnLine(G,Y,J)?1:-1}function w(B){return y.findTransition(function(V){var G=x(B,V.ev);return G>0})}function _(B,V){var G=B.seg,U=V.seg,Y=G.start,J=G.end,Z=U.start,re=U.end;t&&t.checkIntersection(G,U);var fe=r.linesIntersect(Y,J,Z,re);if(fe===!1){if(!r.pointsCollinear(Y,J,Z)||r.pointsSame(Y,re)||r.pointsSame(J,Z))return!1;var ie=r.pointsSame(Y,Z),ue=r.pointsSame(J,re);if(ie&&ue)return V;var K=!ie&&r.pointBetween(Y,Z,re),ye=!ue&&r.pointBetween(J,Z,re);if(ie)return ye?v(V,J):v(B,re),V;K&&(ue||(ye?v(V,J):v(B,re)),v(V,Y))}else fe.alongA===0&&(fe.alongB===-1?v(B,Z):fe.alongB===0?v(B,fe.pt):fe.alongB===1&&v(B,re)),fe.alongB===0&&(fe.alongA===-1?v(V,Y):fe.alongA===0?v(V,fe.pt):fe.alongA===1&&v(V,J));return!1}for(var b=[];!i.isEmpty();){var T=i.getHead();if(t&&t.vert(T.pt[0]),T.isStart){let B=function(){if(M){var V=_(T,M);if(V)return V}return S?_(T,S):!1};var O=B;t&&t.segmentNew(T.seg,T.primary);var k=w(T),M=k.before?k.before.ev:null,S=k.after?k.after.ev:null;t&&t.tempStatus(T.seg,M?M.seg:!1,S?S.seg:!1);var E=B();if(E){if(e){var D;T.seg.myFill.below===null?D=!0:D=T.seg.myFill.above!==T.seg.myFill.below,D&&(E.seg.myFill.above=!E.seg.myFill.above)}else E.seg.otherFill=T.seg.myFill;t&&t.segmentUpdate(E.seg),T.other.remove(),T.remove()}if(i.getHead()!==T){t&&t.rewind(T.seg);continue}if(e){var D;T.seg.myFill.below===null?D=!0:D=T.seg.myFill.above!==T.seg.myFill.below,S?T.seg.myFill.below=S.seg.myFill.above:T.seg.myFill.below=p,D?T.seg.myFill.above=!T.seg.myFill.below:T.seg.myFill.above=T.seg.myFill.below}else if(T.seg.otherFill===null){var P;S?T.primary===S.primary?P=S.seg.otherFill.above:P=S.seg.myFill.above:P=T.primary?m:p,T.seg.otherFill={above:P,below:P}}t&&t.status(T.seg,M?M.seg:!1,S?S.seg:!1),T.other.status=k.insert(qh.node({ev:T}))}else{var R=T.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(R.prev)&&y.exists(R.next)&&_(R.prev.ev,R.next.ev),t&&t.statusRemove(R.ev.seg),R.remove(),!T.primary){var z=T.seg.myFill;T.seg.myFill=T.seg.otherFill,T.seg.otherFill=z}b.push(T.seg)}i.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(p){for(var m,y=p[p.length-1],x=0;x{function dpe(e,r,t){var a=[],n=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(O,B,V){return f.index=O,f.matches_head=B,f.matches_pt1=V,f===s?(f=u,!1):(f=null,!0)}for(var v=0;v{function Lh(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var ppe={union:function(e,r){return Lh(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Lh(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Lh(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Lh(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Lh(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};qP.exports=ppe});var EP=N((XRe,CP)=>{var ype={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),s=1;s{var mpe=bP(),gpe=_P(),DP=MP(),bpe=SP(),Ch=LP(),RP=EP(),xi=!1,Eh=gpe(),Nn;Nn={buildLog:function(e){return e===!0?xi=mpe():e===!1&&(xi=!1),xi===!1?!1:xi.list},epsilon:function(e){return Eh.epsilon(e)},segments:function(e){var r=DP(!0,Eh,xi);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=DP(!1,Eh,xi);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Ch.union(e.combined,xi),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Ch.intersect(e.combined,xi),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Ch.difference(e.combined,xi),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Ch.differenceRev(e.combined,xi),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Ch.xor(e.combined,xi),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:bpe(e.segments,Eh,xi),inverted:e.inverted}},polygonFromGeoJSON:function(e){return RP.toPolygon(Nn,e)},polygonToGeoJSON:function(e){return RP.fromPolygon(Nn,Eh,e)},union:function(e,r){return Dh(e,r,Nn.selectUnion)},intersect:function(e,r){return Dh(e,r,Nn.selectIntersect)},difference:function(e,r){return Dh(e,r,Nn.selectDifference)},differenceRev:function(e,r){return Dh(e,r,Nn.selectDifferenceRev)},xor:function(e,r){return Dh(e,r,Nn.selectXor)}};function Dh(e,r,t){var a=Nn.segments(e),n=Nn.segments(r),i=Nn.combine(a,n),o=t(i);return Nn.polygon(o)}typeof window=="object"&&(window.PolyBool=Nn);PP.exports=Nn});var zP=N(($Re,NP)=>{NP.exports=function(r,t,a,n){var i=r[0],o=r[1],l=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;uo!=p>o&&i<(d-c)*(o-v)/(p-v)+c;m&&(l=!l)}return l}});var a_=N((KRe,IP)=>{"use strict";var t_=wp().dot,My=Ft().BADNUM,ky=IP.exports={};ky.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;ln||x===My||xo||m&&u(p))}function c(p,m){var y=p[0],x=p[1];if(y===My||yn||x===My||xo)return!1;var w=t.length,_=t[0][0],b=t[0][1],T=0,k,M,S,E,D;for(k=1;kMath.max(M,_)||x>Math.max(S,b)))if(xl||Math.abs(t_(c,u))>n)return!0;return!1};ky.filter=function(r,t){var a=[r[0]],n=0,i=0;function o(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:a}}});var BP=N((QRe,OP)=>{"use strict";OP.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var sF=N((ePe,lF)=>{"use strict";var HP=FP(),xpe=zP(),Fh=gr(),_pe=Wr().dashStyle,Rh=Tr(),wpe=Pn(),Tpe=qo().makeEventData,Bh=bu(),Ape=Bh.freeMode,Mpe=Bh.rectMode,Nh=Bh.drawMode,l_=Bh.openMode,s_=Bh.selectMode,UP=ns(),GP=wh(),ZP=cy(),XP=Zl().clearOutline,JP=ts(),n_=JP.handleEllipse,kpe=JP.readPaths,Spe=ly().newShapes,qpe=C5(),Lpe=r_().activateLastSelection,qy=Ee(),Cpe=qy.sorterAsc,$P=a_(),Ph=Fp(),_i=va().getFromId,Epe=Q1(),Dpe=wy().redrawReglTraces,Ly=BP(),No=Ly.MINSELECT,Rpe=$P.filter,u_=$P.tester,f_=ay(),YP=f_.p2r,Ppe=f_.axValue,Fpe=f_.getTransform;function c_(e){return e.subplot!==void 0}function Npe(e,r,t,a,n){var i=!c_(a),o=Ape(n),l=Mpe(n),s=l_(n),u=Nh(n),f=s_(n),c=n==="drawline",v=n==="drawcircle",d=c||v,p=a.gd,m=p._fullLayout,y=f&&m.newselection.mode==="immediate"&&i,x=m._zoomlayer,w=a.element.getBoundingClientRect(),_=a.plotinfo,b=Fpe(_),T=r-w.left,k=t-w.top;m._calcInverseTransform(p);var M=qy.apply3DTransform(m._invTransform)(T,k);T=M[0],k=M[1];var S=m._invScaleX,E=m._invScaleY,D=T,P=k,R="M"+T+","+k,z=a.xaxes[0],O=a.yaxes[0],B=z._length,V=O._length,G=e.altKey&&!(Nh(n)&&s),U,Y,J,Z,re,fe,ie;QP(e,p,a),o&&(U=Rpe([[T,k]],Ly.BENDPX));var ue=x.selectAll("path.select-outline-"+_.id).data([1]),K=u?m.newshape:m.newselection;u&&(a.hasText=K.label.text||K.label.texttemplate);var ye=u&&!s?K.fillcolor:"rgba(0,0,0,0)",se=K.line.color||(i?Rh.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");ue.enter().append("path").attr("class","select-outline select-outline-"+_.id).style({opacity:u?K.opacity/2:1,"stroke-dasharray":_pe(K.line.dash,K.line.width),"stroke-width":K.line.width+"px","shape-rendering":"crispEdges"}).call(Rh.stroke,se).call(Rh.fill,ye).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",R+"Z");var ve=x.append("path").attr("class","zoombox-corners").style({fill:Rh.background,stroke:Rh.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&a.hasText){var oe=x.select(".label-temp");oe.empty()&&(oe=x.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ce=m._uid+Ly.SELECTID,j=[],Q=Cy(p,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var pe=z._id,be=O._id;nF(p,pe,be,Q);for(var me=(p.layout||{}).selections||[],Fe=[],ze=!1,Re=0;Re=0){p._fullLayout._deactivateShape(p);return}if(!u){var me=m.clickmode;Ph.done(ce).then(function(){if(Ph.clear(ce),pe===2){for(ue.remove(),re=0;re-1&&KP(be,p,a.xaxes,a.yaxes,a.subplot,a,ue),me==="event"&&Oh(p,void 0);wpe.click(p,be,_.id)}).catch(qy.error)}},a.doneFn=function(){ve.remove(),Ph.done(ce).then(function(){Ph.clear(ce),!y&&Z&&a.selectionDefs&&(Z.subtract=G,a.selectionDefs.push(Z),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,J)),(y||u)&&zh(a,y),a.doneFnCompleted&&a.doneFnCompleted(j),f&&Oh(p,ie)}).catch(qy.error)}}function KP(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],v,d,p,m,y,x,w,_,b,T;if(Hpe(l)){QP(e,r,i),v=Cy(r,t,a,n);var k=Upe(l,v),M=k.pointNumbers.length>0;if(M?Gpe(v,k):Ype(v)&&(w=jP(k))){for(o&&o.remove(),T=0;T=0}function Bpe(e){return e._fullLayout._activeSelectionIndex>=0}function zh(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;Ope(n)&&n._fullLayout._deactivateShape(n),Bpe(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=Nh(t),s=s_(t);if(l||s){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;l&&(f=Spe(u,e)),f&&Fh.call("_guiRelayout",n,{shapes:f});var c;s&&!c_(e)&&(c=qpe(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,Fh.call("_guiRelayout",n,{selections:c}).then(function(){r&&Lpe(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function VP(e){return e._id}function Cy(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(VP),o=t.map(VP),l,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function Gpe(e,r){var t=[],a,n,i,o;for(o=0;o0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(o=0;o1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function Ih(e,r,t){var a;for(a=0;a-1&&r;if(!o&&r){var pe=WP(e,!0);if(pe.length){var be=pe[0].xref,me=pe[0].yref;if(be&&me){var Fe=iF(pe),ze=oF([_i(e,be,"x"),_i(e,me,"y")]);ze(j,Fe)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:W&&Oh(e,j),v._reselect=!1}if(!o&&v._deselect){var Re=v._deselect;l=Re.xref,s=Re.yref,Wpe(l,s,f)||nF(e,l,s,a),W&&(j.points.length?Oh(e,j):d_(e)),v._deselect=!1}return{eventData:j,selectionTesters:t}}function jpe(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";uF.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Hh=N((tPe,fF)=>{"use strict";fF.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var vc=N((nPe,hF)=>{"use strict";var cF=p_(),vF=fa(),Ey=Ca(),Kpe=_t().templatedArray,aPe=Hh();hF.exports=Kpe("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:vF({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:cF.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:cF.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Ey.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Ey.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Ey.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Ey.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:vF({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Uh=N((iPe,dF)=>{"use strict";dF.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Dy=N((oPe,pF)=>{"use strict";pF.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var wi=N((lPe,_F)=>{"use strict";var yF=Qi().axisHoverFormat,Qpe=La().texttemplateAttrs,e1e=La().hovertemplateAttrs,mF=ko(),r1e=fa(),t1e=si().dash,a1e=si().pattern,n1e=Wr(),i1e=Uh(),Ry=bt().extendFlat,o1e=Dy();function gF(e){return{valType:"any",dflt:0,editType:"calc"}}function bF(e){return{valType:"any",editType:"calc"}}function xF(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}_F.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:gF("x"),yperiod:gF("y"),xperiod0:bF("x0"),yperiod0:bF("y0"),xperiodalignment:xF("x"),yperiodalignment:xF("y"),xhoverformat:yF("x"),yhoverformat:yF("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:Qpe({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:e1e({},{keys:i1e.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Ry({},t1e,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:o1e(!0),fillgradient:Ry({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:a1e,marker:Ry({symbol:{valType:"enumerated",values:n1e.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Ry({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},mF("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},mF("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:r1e({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var y_=N((uPe,AF)=>{"use strict";var wF=vc(),TF=wi().line,l1e=si().dash,Py=bt().extendFlat,s1e=Xi().overrideAll,u1e=_t().templatedArray,sPe=Hh();AF.exports=s1e(u1e("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Py({},wF.xref,{}),yref:Py({},wF.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:TF.color,width:Py({},TF.width,{min:1,dflt:1}),dash:Py({},l1e,{dflt:"dot"})}}),"arraydraw","from-root")});var qF=N((fPe,SF)=>{"use strict";var MF=Ee(),Fy=Or(),f1e=eo(),c1e=y_(),kF=ns();SF.exports=function(r,t){f1e(r,t,{name:"selections",handleItemDefaults:v1e});for(var a=t.selections,n=0;n{"use strict";LF.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var Gh=N((vPe,RF)=>{"use strict";var h1e=gr(),EF=Ee(),DF=va();RF.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=h1e.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,v=n._has("cartesian"),d=0;d{"use strict";var PF=r_(),Yh=sF();FF.exports={moduleType:"component",name:"selections",layoutAttributes:y_(),supplyLayoutDefaults:qF(),supplyDrawNewSelectionDefaults:CF(),includeBasePlot:Gh()("selections"),draw:PF.draw,drawOne:PF.drawOne,reselect:Yh.reselect,prepSelect:Yh.prepSelect,clearOutline:Yh.clearOutline,clearSelectionsCache:Yh.clearSelectionsCache,selectOnClick:Yh.selectOnClick}});var tN=N((dPe,rN)=>{"use strict";var __=Sr(),Ti=Ee(),NF=Ti.numberFormat,d1e=kn(),p1e=r5(),Ny=gr(),VF=Ti.strTranslate,y1e=Ea(),zF=Tr(),os=Wr(),m1e=Pn(),IF=Or(),g1e=rs(),b1e=pi(),jF=bu(),zy=jF.selectingOrDrawing,x1e=jF.freeMode,_1e=Xa().FROM_TL,w1e=Q1(),T1e=wy().redrawReglTraces,A1e=ea(),g_=va().getFromId,M1e=zo().prepSelect,k1e=zo().clearOutline,S1e=zo().selectOnClick,m_=W5(),w_=Ca(),OF=w_.MINDRAG,gn=w_.MINZOOM,BF=!0;function q1e(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,c,v,d,p,m,y,x,w,_,b,T,k,M,S,E,D,P,R,z,O,B,V,G;t+=r.yaxis._shift;function U(){if(c=r.xaxis,v=r.yaxis,_=c._length,b=v._length,x=c._offset,w=v._offset,d={},d[c._id]=c,p={},p[v._id]=v,o&&l)for(var Le=r.overlays,Ce=0;Ce=0){Ye._fullLayout._deactivateShape(Ye);return}var Xe=Ye._fullLayout.clickmode;if(x_(Ye),Le===2&&!f&&Be(),u)Xe.indexOf("select")>-1&&S1e(Ce,Ye,m,y,r.id,Z),Xe.indexOf("event")>-1&&m1e.click(Ye,Ce,r.id);else if(Le===1&&f){var Ve=o?v:c,Ge=o==="s"||l==="w"?0:1,$e=Ve._name+".range["+Ge+"]",cr=L1e(Ve,Ge),lr="left",Ie="middle";if(Ve.fixedrange)return;o?(Ie=o==="n"?"top":"bottom",Ve.side==="right"&&(lr="right")):l==="e"&&(lr="right"),Ye._context.showAxisRangeEntryBoxes&&__.select(J).call(y1e.makeEditable,{gd:Ye,immediate:!0,background:Ye._fullLayout.paper_bgcolor,text:String(cr),fill:Ve.tickfont?Ve.tickfont.color:"#444",horizontalAlign:lr,verticalAlign:Ie}).on("edit",function(ne){var de=Ve.d2r(ne);de!==void 0&&Ny.call("_guiRelayout",Ye,$e,de)})}}b1e.init(Z);var ie,ue,K,ye,se,ve,oe,ce,j,Q;function W(Le,Ce,Ye){var Xe=J.getBoundingClientRect();ie=Ce-Xe.left,ue=Ye-Xe.top,e._fullLayout._calcInverseTransform(e);var Ve=Ti.apply3DTransform(e._fullLayout._invTransform)(ie,ue);ie=Ve[0],ue=Ve[1],K={l:ie,r:ie,w:0,t:ue,b:ue,h:0},ye=e._hmpixcount?e._hmlumcount/e._hmpixcount:d1e(e._fullLayout.plot_bgcolor).getLuminance(),se="M0,0H"+_+"V"+b+"H0V0",ve=!1,oe="xy",Q=!1,ce=XF(s,ye,x,w,se),j=JF(s,x,w)}function pe(Le,Ce){if(e._transitioningWithDuration)return!1;var Ye=Math.max(0,Math.min(_,V*Le+ie)),Xe=Math.max(0,Math.min(b,G*Ce+ue)),Ve=Math.abs(Ye-ie),Ge=Math.abs(Xe-ue);K.l=Math.min(ie,Ye),K.r=Math.max(ie,Ye),K.t=Math.min(ue,Xe),K.b=Math.max(ue,Xe);function $e(){oe="",K.r=K.l,K.t=K.b,j.attr("d","M0,0Z")}if(T.isSubplotConstrained)Ve>gn||Ge>gn?(oe="xy",Ve/_>Ge/b?(Ge=Ve*b/_,ue>Xe?K.t=ue-Ge:K.b=ue+Ge):(Ve=Ge*_/b,ie>Ye?K.l=ie-Ve:K.r=ie+Ve),j.attr("d",Iy(K))):$e();else if(k.isSubplotConstrained)if(Ve>gn||Ge>gn){oe="xy";var cr=Math.min(K.l/_,(b-K.b)/b),lr=Math.max(K.r/_,(b-K.t)/b);K.l=cr*_,K.r=lr*_,K.b=(1-cr)*b,K.t=(1-lr)*b,j.attr("d",Iy(K))}else $e();else!S||Ge0){var ne;if(k.isSubplotConstrained||!M&&S.length===1){for(ne=0;ne1&&($e.maxallowed!==void 0&&D===($e.range[0]<$e.range[1]?"e":"w")||$e.minallowed!==void 0&&D===($e.range[0]<$e.range[1]?"w":"e"))&&(ar=1,ur=0),qe?(hr=de,Ar=o||k.isSubplotConstrained?Le[1]:Ke(cr,hr)):k.yaHash[cr._id]?(hr=de,Ar=Le[1]*cr._length/v._length):k.xaHash[cr._id]?(hr=ne,Ar=M==="ew"?-Le[0]*cr._length/c._length:Ke(cr,hr,{e:"right",w:"left"}[M])):(hr=Se(cr,ne,de),Ar=nr(cr,hr)),hr>1&&(cr.maxallowed!==void 0&&P===(cr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function E1e(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function XF(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",VF(t,a)).attr("d",n+"Z")}function JF(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:zF.background,stroke:zF.defaultLine,"stroke-width":1,opacity:0}).attr("transform",VF(r,t)).attr("d","M0,0Z")}function $F(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),KF(e,r,n,i)}function KF(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function x_(e){__.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function QF(e){BF&&e.data&&e._context.showTips&&(Ti.notifier(Ti._(e,"Double-click to zoom back out"),"long"),BF=!1)}function D1e(e,r){return"M"+(e.l-.5)+","+(r-gn-.5)+"h-3v"+(2*gn+1)+"h3ZM"+(e.r+.5)+","+(r-gn-.5)+"h3v"+(2*gn+1)+"h-3Z"}function R1e(e,r){return"M"+(r-gn-.5)+","+(e.t-.5)+"v-3h"+(2*gn+1)+"v3ZM"+(r-gn-.5)+","+(e.b+.5)+"v3h"+(2*gn+1)+"v-3Z"}function Iy(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,gn)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function GF(e,r,t,a,n){for(var i=!1,o={},l={},s,u,f,c,v=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var P1e=Sr(),Oy=Pn(),F1e=pi(),N1e=rs(),no=tN().makeDragBox,Ma=Ca().DRAGGERSIZE;By.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){P1e.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var u=no(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");u.onmousemove=function(v){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Oy.hover(r,v,i)},Oy.hover(r,v,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,F1e.unhover(r,v))},r._context.showAxisDragHandles&&(no(r,o,l._offset-Ma,s._offset-Ma,Ma,Ma,"n","w"),no(r,o,l._offset+l._length,s._offset-Ma,Ma,Ma,"n","e"),no(r,o,l._offset-Ma,s._offset+s._length,Ma,Ma,"s","w"),no(r,o,l._offset+l._length,s._offset+s._length,Ma,Ma,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=Ma),no(r,o,l._offset+l._length*.1,f,l._length*.8,Ma,"","ew"),no(r,o,l._offset,f,l._length*.1,Ma,"","w"),no(r,o,l._offset+l._length*.9,f,l._length*.1,Ma,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=Ma),no(r,o,c,s._offset+s._length*.1,Ma,s._length*.8,"ns",""),no(r,o,c,s._offset+s._length*.9,Ma,s._length*.1,"s",""),no(r,o,c,s._offset,Ma,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Oy.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Oy.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},By.updateFx(r)}};By.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";N1e(r._draggers,t)}});var iN=N((yPe,nN)=>{"use strict";var aN=gr();nN.exports=function(r){for(var t=aN.layoutArrayContainers,a=aN.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var z1e=zl(),A_=_p(),Vh=Zs(),I1e=Mb().sorterAsc,M_=gr();jh.containerArrayMatch=iN();var O1e=jh.isAddVal=function(r){return r==="add"||z1e(r)},oN=jh.isRemoveVal=function(r){return r===null||r==="remove"};jh.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=M_.getComponentMethod(o,"supplyLayoutDefaults"),s=M_.getComponentMethod(o,"draw"),u=M_.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||l===A_||s===A_,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Vh.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(oN(d))t.set(null);else if(Array.isArray(d))t.set(d);else return Vh.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(l(c,v),s(r),!0)}var p=Object.keys(a).map(Number).sort(I1e),m=t.get(),y=m||[],x=i(v,o).get(),w=[],_=-1,b=y.length,T,k,M,S,E,D,P,R;for(T=0;Ty.length-(P?0:1)){Vh.warn("index out of range",o,M);continue}if(D!==void 0)E.length>1&&Vh.warn("Insertion & removal are incompatible with edits to the same index.",o,M),oN(D)?w.push(M):P?(D==="add"&&(D={}),y.splice(M,0,D),x&&x.splice(M,0,{})):Vh.warn("Unrecognized full object edit value",o,M,D),_===-1&&(_=M);else for(k=0;k=0;T--)y.splice(w[T],1),x&&x.splice(w[T],1);if(y.length?m||t.set(y):t.set(null),f)return!1;if(l(c,v),u!==A_){var z;if(_===-1)z=p;else{for(b=Math.max(y.length,b),z=[],T=0;T=_));T++)z.push(M);for(T=_;T{"use strict";var cN=Rr(),gPe=pb(),vN=gr(),zn=Ee(),Wh=ea(),hN=va(),dN=Tr(),Zh=hN.cleanId,B1e=hN.getFromTrace,k_=vN.traceIs;io.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&zn.log("Clearing previous rejected promises from queue."),e._promises=[]};io.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(Wh.subplotsRegistry.cartesian||{}).attrRegex,n=(Wh.subplotsRegistry.polar||{}).attrRegex,i=(Wh.subplotsRegistry.ternary||{}).attrRegex,o=(Wh.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),dN.clean(e),e.template&&e.template.layout&&io.cleanLayout(e.template.layout),e};function hc(e,r){var t=e[r],a=r.charAt(0);t&&t!=="paper"&&(e[r]=Zh(t,a,!0))}io.cleanData=function(e){for(var r=0;r0)return e.substr(0,r)}io.hasParent=function(e,r){for(var t=fN(r);t;){if(t in e)return!0;t=fN(t)}return!1};var G1e=["x","y","z"];io.clearAxisTypes=function(e,r,t){for(var a=0;a{"use strict";var Yy=Sr(),Y1e=Rr(),V1e=Ob(),Qe=Ee(),At=Qe.nestedProperty,L_=rh(),bn=XS(),Ai=gr(),$y=If(),_r=ea(),fn=Or(),j1e=e5(),W1e=hi(),S_=Wr(),Z1e=Tr(),X1e=T_().initInteractions,J1e=ll(),$1e=zo().clearOutline,xN=Ws().dfltConfig,Uy=lN(),oa=pN(),dt=wy(),ls=Xi(),K1e=Ca().AX_NAME_PATTERN,q_=0,yN=5;function Q1e(e,r,t,a){var n;if(e=Qe.getGraphDiv(e),L_.init(e),Qe.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=L_.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!Qe.isPlotDiv(e)&&Qe.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return Jr.addFrames(e,n)}wN(e,a),t||(t={}),Yy.select(e).classed("js-plotly-plot",!0),S_.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(oa.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=oa.cleanLayout(t)),_r.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(wye(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),S_.initGradients(e),S_.initPatterns(e),s&&fn.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&_r.doCalcdata(e);for(var v=0;v=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function TN(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),jy(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&jy(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function nye(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof S.parts[P]!="string";)P--;var R=S.parts[P],z=S.parts[P-1]+"."+R,O=S.parts.slice(0,P).join("."),B=At(e.layout,O).get(),V=At(a,O).get(),G=S.get();if(E!==void 0){x[M]=E,w[M]=R==="reverse"?E:pl(G);var U=$y.getLayoutValObject(a,S.parts);if(U&&U.impliedEdits&&E!==null)for(var Y in U.impliedEdits)_(Qe.relativeAttr(M,Y),U.impliedEdits[Y]);if(["width","height"].indexOf(M)!==-1)if(E){_("autosize",null);var J=M==="height"?"width":"height";_(J,a[J])}else a[M]=e._initialAutoSize[M];else if(M==="autosize")_("width",E?null:a.width),_("height",E?null:a.height);else if(z.match(DN))k(z),At(a,O+"._inputRange").set(null);else if(z.match(RN)){k(z),At(a,O+"._inputRange").set(null);var Z=At(a,O).get();Z._inputDomain&&(Z._input.domain=Z._inputDomain.slice())}else z.match(sye)&&At(a,O+"._inputDomain").set(null);if(R==="type"){T=B;var re=V.type==="linear"&&E==="log",fe=V.type==="log"&&E==="linear";if(re||fe){if(!T||!T.range)_(O+".autorange",!0);else if(V.autorange)re&&(T.range=T.range[1]>T.range[0]?[1,2]:[2,1]);else{var ie=T.range[0],ue=T.range[1];re?(ie<=0&&ue<=0&&_(O+".autorange",!0),ie<=0?ie=ue/1e6:ue<=0&&(ue=ie/1e6),_(O+".range[0]",Math.log(ie)/Math.LN10),_(O+".range[1]",Math.log(ue)/Math.LN10)):(_(O+".range[0]",Math.pow(10,ie)),_(O+".range[1]",Math.pow(10,ue)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[S.parts[0]]&&S.parts[1]==="radialaxis"&&delete a[S.parts[0]]._subplot.viewInitial["radialaxis.range"],Ai.getComponentMethod("annotations","convertCoords")(e,V,E,_),Ai.getComponentMethod("images","convertCoords")(e,V,E,_)}else _(O+".autorange",!0),_(O+".range",null);At(a,O+"._inputRange").set(null)}else if(R.match(K1e)){var K=At(a,M).get(),ye=(E||{}).type;(!ye||ye==="-")&&(ye="linear"),Ai.getComponentMethod("annotations","convertCoords")(e,K,ye,_),Ai.getComponentMethod("images","convertCoords")(e,K,ye,_)}var se=Uy.containerArrayMatch(M);if(se){f=se.array,c=se.index;var ve=se.property,oe=U||{editType:"calc"};c!==""&&ve===""&&(Uy.isAddVal(E)?w[M]=null:Uy.isRemoveVal(E)?w[M]=(At(t,f).get()||[])[c]:Qe.warn("unrecognized full object value",r)),ls.update(y,oe),u[f]||(u[f]={});var ce=u[f][c];ce||(ce=u[f][c]={}),ce[ve]=E,delete r[M]}else R==="reverse"?(B.range?B.range.reverse():(_(O+".autorange",!0),B.range=[1,0]),V.autorange?y.calc=!0:y.plot=!0):(M==="dragmode"&&(E===!1&&G!==!1||E!==!1&&G===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(E==="lasso"||E==="select")&&!(G==="lasso"||G==="select")?y.plot=!0:U?ls.update(y,U):y.calc=!0,S.set(E))}}for(f in u){var j=Uy.applyContainerArrayChanges(e,i(t,f),u[f],y,i);j||(y.plot=!0)}for(var Q in b){T=fn.getFromId(e,Q);var W=T&&T._constraintGroup;if(W){y.calc=!0;for(var pe in W)b[pe]||(fn.getFromId(e,pe)._constraintShrinkable=!0)}}(FN(e)||r.height||r.width)&&(y.plot=!0);var be=a.shapes;for(c=0;c1;)if(a.pop(),t=At(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function cye(e,r){for(var t=0;t=n.length?n[0]:n[u]:n}function l(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var R=a._frameQueue.pop();R.onInterrupt&&R.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function v(R){if(R.length!==0){for(var z=0;za._timeToNext&&p()};R()}var y=0;function x(R){return Array.isArray(n)?y>=n.length?R.transitionOpts=n[y]:R.transitionOpts=n[0]:R.transitionOpts=n,y++,R}var w,_,b=[],T=r==null,k=Array.isArray(r),M=!T&&!k&&Qe.isPlainObject(r);if(M)b.push({type:"object",data:x(Qe.extendFlat({},r))});else if(T||["string","number"].indexOf(typeof r)!==-1)for(w=0;w0&&DD)&&P.push(_);b=P}}b.length>0?v(b):(e.emit("plotly_animated"),u())})}function gye(e,r,t){if(e=Qe.getGraphDiv(e),r==null)return Promise.resolve();if(!Qe.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=l.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(Qe.isPlainObject(r[a])){var v=r[a].name,d=(s[v]||c[v]||{}).name,p=r[a].name,m=s[d]||c[d];d&&p&&typeof p=="number"&&m&&q_S.index?-1:M.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&Qe.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),o.unshift({type:"insert",index:a,value:n[a]});var l=_r.modifyFrames,s=_r.modifyFrames,u=[e,o],f=[e,i];return bn&&bn.add(e,l,u,s,f),_r.modifyFrames(e,i)}function xye(e){e=Qe.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return _r.cleanPlot([],{},t,r),_r.purge(e),L_.purge(e),r._container&&r._container.remove(),delete e._context,e}function _ye(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Qe.equalDomRects(t,r._lastBBox)){var a=r._invTransform=Qe.inverseTransformMatrix(Qe.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function wye(e){var r=Yy.select(e),t=e._fullLayout;if(t._calcInverseTransform=_ye,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};Yy.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=Qe.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(J1e.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Jr.animate=mye;Jr.addFrames=gye;Jr.deleteFrames=bye;Jr.addTraces=qN;Jr.deleteTraces=LN;Jr.extendTraces=kN;Jr.moveTraces=C_;Jr.prependTraces=SN;Jr.newPlot=aye;Jr._doPlot=Q1e;Jr.purge=xye;Jr.react=dye;Jr.redraw=tye;Jr.relayout=Xh;Jr.restyle=Wy;Jr.setPlotConfig=eye;Jr.update=Xy;Jr._guiRelayout=D_(Xh);Jr._guiRestyle=D_(Wy);Jr._guiUpdate=D_(Xy);Jr._storeDirectGUIEdit=lye});var yl=N(Io=>{"use strict";var Tye=gr();Io.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Io.getRedrawFunc=function(e){return function(){Tye.getComponentMethod("colorbar","draw")(e)}};Io.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Io.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var NN=window.URL||window.webkitURL;Io.createObjectURL=function(e){return NN.createObjectURL(e)};Io.revokeObjectURL=function(e){return NN.revokeObjectURL(e)};Io.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=Aye(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Io.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function Aye(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var F_=Sr(),wPe=Ee(),Mye=Wr(),kye=Tr(),TPe=ll(),P_=/"/g,$h="TOBESTRIPPED",Sye=new RegExp('("'+$h+")|("+$h+'")',"g");function qye(e){var r=F_.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(a){return a==="<"?"<":a==="&rt;"?">":a.indexOf("<")!==-1||a.indexOf(">")!==-1?"":r.html(a).text()});return r.remove(),t}function Lye(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}zN.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,o=n._toppaper,l=n.width,s=n.height,u;i.insert("rect",":first-child").call(Mye.setRect,0,0,l,s).call(kye.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var Cye=Ee(),Eye=Qs().EventEmitter,Kh=yl();function Dye(e){var r=e.emitter||new Eye,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,v=u*f,d=u*c,p=s.getContext("2d",{willReadFrequently:!0}),m=new i,y,x;l==="svg"||Cye.isSafari()?x=Kh.encodeSVG(o):(y=Kh.createBlob(o,"svg"),x=Kh.createObjectURL(y)),s.width=v,s.height=d,m.onload=function(){var w;switch(y=null,Kh.revokeObjectURL(x),l!=="svg"&&p.drawImage(m,0,0,v,d),l){case"jpeg":w=s.toDataURL("image/jpeg");break;case"png":w=s.toDataURL("image/png");break;case"webp":w=s.toDataURL("image/webp");break;case"svg":w=x;break;default:var _="Image format is not jpeg, png, svg or webp.";if(n(new Error(_)),!e.promise)return r.emit("error",_)}a(w),e.promise||r.emit("success",w)},m.onerror=function(w){if(y=null,Kh.revokeObjectURL(x),n(w),!e.promise)return r.emit("error",w)},m.src=x});return e.promise?t:r}IN.exports=Dye});var z_=N((kPe,HN)=>{"use strict";var ON=Rr(),BN=R_(),Rye=ea(),Oo=Ee(),Qh=yl(),Pye=Qy(),Fye=em(),Nye=tp().version,N_={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function zye(e,r){r=r||{};var t,a,n,i;Oo.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Oo.getGraphDiv(e),t=Oo.extendDeep([],e.data),a=Oo.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||Oo.validate(r[k],N_[k])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Oo.join2(N_.format.values,", "," or ")+".");var l={};function s(k,M){return Oo.coerce(r,l,N_,k,M)}var u=s("format"),f=s("width"),c=s("height"),v=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),m=document.createElement("div");m.style.position="absolute",m.style.left="-5000px",document.body.appendChild(m);var y=Oo.extendFlat({},a);f?y.width=f:r.width===null&&ON(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&ON(i.height)&&(y.height=i.height);var x=Oo.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),w=Qh.getRedrawFunc(m);function _(){return new Promise(function(k){setTimeout(k,Qh.getDelay(m._fullLayout))})}function b(){return new Promise(function(k,M){var S=Pye(m,u,v),E=m._fullLayout.width,D=m._fullLayout.height;function P(){BN.purge(m),document.body.removeChild(m)}if(u==="full-json"){var R=Rye.graphJson(m,!1,"keepdata","object",!0,!0);return R.version=Nye,R=JSON.stringify(R),P(),k(p?R:Qh.encodeJSON(R))}if(P(),u==="svg")return k(p?S:Qh.encodeSVG(S));var z=document.createElement("canvas");z.id=Oo.randstr(),Fye({format:u,width:E,height:D,scale:v,canvas:z,svg:S,promise:!0}).then(k).catch(M)})}function T(k){return p?k.replace(Qh.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){BN.newPlot(m,t,y,x).then(w).then(_).then(b).then(function(S){k(T(S))}).catch(function(S){M(S)})})}HN.exports=zye});var YN=N((SPe,GN)=>{"use strict";var Mi=Ee(),Iye=ea(),Oye=If(),Bye=Ws().dfltConfig,oo=Mi.isPlainObject,Mu=Array.isArray,I_=Mi.isArrayOrTypedArray;GN.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=Oye.get(),n=[],i={_context:Mi.extendFlat({},Bye)},o,l;Mu(r)?(i.data=Mi.extendDeep([],r),o=r):(i.data=[],o=[],n.push(ka("array","data"))),oo(t)?(i.layout=Mi.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(ka("object","layout"))),Iye.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;fc.length&&a.push(ka("unused",n,u.concat(c.length)));var x=c.length,w=Array.isArray(y);w&&(x=Math.min(x,y.length));var _,b,T,k,M;if(v.dimensions===2)for(b=0;bc[b].length&&a.push(ka("unused",n,u.concat(b,c[b].length)));var S=c[b].length;for(_=0;_<(w?Math.min(S,y[b].length):S);_++)T=w?y[b][_]:y,k=f[b][_],M=c[b][_],Mi.validate(k,T)?M!==k&&M!==+k&&a.push(ka("dynamic",n,u.concat(b,_),k,M)):a.push(ka("value",n,u.concat(b,_),k))}else a.push(ka("array",n,u.concat(b),f[b]));else for(b=0;b{"use strict";var Wye=Ee(),tm=yl();function Zye(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var s,u;if(n)return s=tm.createBlob(e,t),u=tm.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),tm.revokeObjectURL(u),s=null,o(r);if(Wye.isSafari()){var f=t==="svg"?",":";base64,";return tm.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}VN.exports=Zye});var O_=N((CPe,ZN)=>{"use strict";var WN=Ee(),Xye=z_(),Jye=jN(),LPe=yl();function $ye(e,r){var t;return WN.isPlainObject(e)||(t=WN.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=Xye(e,r),o=r.filename||e.fn||"newplot";o+="."+r.format.replace("-","."),i.then(function(l){return t&&(t._snapshotInProgress=!1),Jye(l,o,r.format)}).then(function(l){a(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),n(l)})})}ZN.exports=$ye});var QN=N(B_=>{"use strict";var In=Ee(),On=In.isPlainObject,XN=If(),JN=ea(),Kye=mn(),$N=_t(),KN=Ws().dfltConfig;B_.makeTemplate=function(e){e=In.isPlainObject(e)?e:In.getGraphDiv(e),e=In.extendDeep({_context:KN},{data:e.data,layout:e.layout}),JN.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var p={};e0(d,p,eme.bind(null,d));var m=In.coerce(d,{},Kye,"type"),y=a.data[m];y||(y=a.data[m]=[]),y.push(p)}),e0(t,a.layout,Qye.bind(null,t)),delete a.layout.template;var n=t.template;if(On(n)){var i=n.layout,o,l,s,u,f,c;On(i)&&am(i,a.layout);var v=n.data;if(On(v)){for(l in a.data)if(s=v[l],Array.isArray(s)){for(f=a.data[l],c=f.length,u=s.length,o=0;ox?o.push({code:"unused",traceType:d,templateCount:y,dataCount:x}):x>y&&o.push({code:"reused",traceType:d,templateCount:y,dataCount:x})}}function w(_,b){for(var T in _)if(T.charAt(0)!=="_"){var k=_[T],M=ki(_,T,b);On(k)?(Array.isArray(_)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:M,templateitemname:k.templateitemname}),w(k,M)):Array.isArray(k)&&rme(k)&&w(k,M)}}if(w({data:s,layout:l},""),o.length)return o.map(tme)};function rme(e){for(var r=0;r{"use strict";var da=R_();Ct._doPlot=da._doPlot;Ct.newPlot=da.newPlot;Ct.restyle=da.restyle;Ct.relayout=da.relayout;Ct.redraw=da.redraw;Ct.update=da.update;Ct._guiRestyle=da._guiRestyle;Ct._guiRelayout=da._guiRelayout;Ct._guiUpdate=da._guiUpdate;Ct._storeDirectGUIEdit=da._storeDirectGUIEdit;Ct.react=da.react;Ct.extendTraces=da.extendTraces;Ct.prependTraces=da.prependTraces;Ct.addTraces=da.addTraces;Ct.deleteTraces=da.deleteTraces;Ct.moveTraces=da.moveTraces;Ct.purge=da.purge;Ct.addFrames=da.addFrames;Ct.deleteFrames=da.deleteFrames;Ct.animate=da.animate;Ct.setPlotConfig=da.setPlotConfig;var ame=Wv().getGraphDiv,nme=py().eraseActiveShape;Ct.deleteActiveShape=function(e){return nme(ame(e))};Ct.toImage=z_();Ct.validate=YN();Ct.downloadImage=O_();var ez=QN();Ct.makeTemplate=ez.makeTemplate;Ct.validateTemplate=ez.validateTemplate});var U_=N((RPe,tz)=>{"use strict";var H_=Ee(),ime=gr();tz.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=ime.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=H_.minRowLength(i);o?l=Math.min(u,H_.minRowLength(o)):(l=u,n("y0"),n("dy"))}else{if(!o)return 0;l=H_.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var dc=N((PPe,iz)=>{"use strict";var az=Ee().dateTick0,ome=Ft(),lme=ome.ONEWEEK;function nz(e,r){return e%lme===0?az(r,1):az(r,0)}iz.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",nz(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",nz(l,t.ycalendar)),n("yperiodalignment"))}}});var sz=N((FPe,lz)=>{"use strict";var oz=["orientation","groupnorm","stackgaps"];lz.exports=function(r,t,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var u=s[o],f=!1;u?u.traces.push(t):(u=s[o]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},v=0;v{"use strict";var uz=Tr(),fz=vi().hasColorscale,cz=ul(),sme=Dn();vz.exports=function(r,t,a,n,i,o){var l=sme.isBubble(r),s=(r.line||{}).color,u;if(o=o||{},s&&(a=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",a),fz(r,"marker")&&cz(r,t,n,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:l?u=uz.background:u=uz.defaultLine,i("marker.line.color",u),fz(r,"marker.line")&&cz(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0)),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var Y_=N((zPe,hz)=>{"use strict";var ume=Ee().isArrayOrTypedArray,fme=vi().hasColorscale,cme=ul();hz.exports=function(r,t,a,n,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",a),fme(r,"line"))cme(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(ume(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var V_=N((IPe,dz)=>{"use strict";dz.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var j_=N((OPe,pz)=>{"use strict";var vme=Ee();pz.exports=function(e,r,t,a,n){n=n||{},a("textposition"),vme.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var W_=N((BPe,mz)=>{"use strict";var im=Tr(),yz=Ee().isArrayOrTypedArray;function hme(e){for(var r=im.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var gz=Ee(),dme=gr(),pme=wi(),yme=Uh(),pc=Dn(),mme=U_(),gme=dc(),bme=sz(),xme=G_(),_me=Y_(),bz=V_(),wme=j_(),Tme=W_(),Ame=Ee().coercePattern;xz.exports=function(r,t,a,n){function i(d,p){return gz.coerce(r,t,pme,d,p)}var o=mme(r,t,n,i);if(o||(t.visible=!1),!!t.visible){gme(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=bme(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var Mme=Tu().getAxisGroup;wz.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=Mme(a,l)+o,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var v=c[f];v?v.traces.push(t):v=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=v.offsetGroups,m=p[d];t._offsetIndex=0,(i!=="group"||d)&&(m||(m=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=m.offsetIndex)}});var Az=N((GPe,Tz)=>{"use strict";var kme=Ee(),Sme=r0(),qme=wi();Tz.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return kme.coerce(n._input,n,qme,v)}if(t.scattermode==="group")for(i=0;i=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var kz=N((YPe,Mz)=>{"use strict";var Lme=Ee(),Cme=jp();Mz.exports=function(e,r){function t(n,i){return Lme.coerce(e,r,Cme,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var yc=N((VPe,qz)=>{"use strict";var Eme=Rr(),Sz=Ee(),Dme=Sz.dateTime2ms,om=Sz.incrementMonth,Rme=Ft(),Pme=Rme.ONEAVGMONTH;qz.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var o=r[a+"period"],l;if(Eme(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",v=r[a+"period0"],d=Dme(v,u)||0,p=[],m=[],y=[],x=n.length,w=0;w_;)k=om(k,-l,u);for(;k<=_;)k=om(k,l,u);T=om(k,-l,u)}else{for(b=Math.round((_-d)/o),k=d+b*o;k>_;)k-=o;for(;k<=_;)k+=o;T=k-o}p[w]=f?T:c?k:(T+k)/2,m[w]=T,y[w]=k}return{vals:p,starts:m,ends:y}}});var J_=N((jPe,Cz)=>{"use strict";var Z_=vi().hasColorscale,X_=lh(),Lz=Dn();Cz.exports=function(r,t){Lz.hasLines(t)&&Z_(t,"line")&&X_(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),Lz.hasMarkers(t)&&(Z_(t,"marker")&&X_(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Z_(t,"marker.line")&&X_(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var lm=N((WPe,Ez)=>{"use strict";var Yt=Ee();Ez.exports=function(r,t){for(var a=0;a{"use strict";var Dz=Ee();Rz.exports=function(r,t){Dz.isArrayOrTypedArray(t.selectedpoints)&&Dz.tagSelected(r,t)}});var um=N((XPe,Bz)=>{"use strict";var Pz=Rr(),K_=Ee(),t0=Or(),Fz=yc(),$_=Ft().BADNUM,Q_=Dn(),Fme=J_(),Nme=lm(),zme=sm();function Ime(e,r){var t=e._fullLayout,a=r._xA=t0.getFromId(e,r.xaxis||"x","x"),n=r._yA=t0.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=Fz(r,a,"x",i),s=Fz(r,n,"y",o),u=l.vals,f=s.vals,c=r._length,v=new Array(c),d=r.ids,p=e4(r,t,a,n),m=!1,y,x,w,_,b,T;Iz(t,r);var k="x",M="y",S;if(p)K_.pushUnique(p.traceIndices,r.index),y=p.orientation==="v",y?(M="s",S="x"):(k="s",S="y"),b=p.stackgaps==="interpolate";else{var E=zz(r,c);Nz(e,r,a,n,u,f,E)}var D=!!r.xperiodalignment,P=!!r.yperiodalignment;for(x=0;xx&&v[_].gap;)_--;for(T=v[_].s,w=v.length-1;w>_;w--)v[w].s=T;for(;x<_;)if(x++,v[x].gap){for(w=x+1;v[w].gap;)w++;for(var B=v[x-1][S],V=v[x-1].s,G=(v[w].s-V)/(v[w][S]-B);x{"use strict";Hz.exports=fm;var Ome=Ee().distinctVals;function fm(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";var Si=Rr(),ss=Ee().isArrayOrTypedArray,mc=Ft().BADNUM,Bme=gr(),a0=Or(),Hme=Tu().getAxisGroup,cm=Uz();function Ume(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;us+o||!Si(l))}for(var f=0;f{"use strict";var Wz=um(),Zz=vm().setGroupPositions;function ege(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;uE[f]&&f{"use strict";var tge=Wr(),eI=Ft(),n0=eI.BADNUM,rI=eI.LOG_CLIP,$z=rI+.5,Kz=rI-.5,hm=Ee(),age=hm.segmentsIntersect,Qz=hm.constrain,o4=Uh();tI.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,v=t.connectGaps,d=t.baseTolerance,p=t.shape,m=p==="linear",y=a.fill&&a.fill!=="none",x=[],w=o4.minTolerance,_=r.length,b=new Array(_),T=0,k,M,S,E,D,P,R,z,O,B,V,G,U,Y,J,Z;function re(Ie){var ne=r[Ie];if(!ne)return!1;var de=t.linearized?n.l2p(ne.x):n.c2p(ne.x),De=t.linearized?i.l2p(ne.y):i.c2p(ne.y);if(de===n0){if(o&&(de=n.c2p(ne.x,!0)),de===n0)return!1;l&&De===n0&&(de*=Math.abs(n._m*u*(n._m>0?$z:Kz)/(i._m*s*(i._m>0?$z:Kz)))),de*=1e3}if(De===n0){if(l&&(De=i.c2p(ne.y,!0)),De===n0)return!1;De*=1e3}return[de,De]}function fe(Ie,ne,de,De){var qe=de-Ie,ar=De-ne,hr=.5-Ie,ur=.5-ne,Ar=qe*qe+ar*ar,jr=qe*hr+ar*ur;if(jr>0&&jr1||Math.abs(hr.y-de[0][1])>1)&&(hr=[hr.x,hr.y],De&&ye(hr,Ie)oe||Ie[1]j)return[Qz(Ie[0],ve,oe),Qz(Ie[1],ce,j)]}function Ue(Ie,ne){if(Ie[0]===ne[0]&&(Ie[0]===ve||Ie[0]===oe)||Ie[1]===ne[1]&&(Ie[1]===ce||Ie[1]===j))return!0}function He(Ie,ne){var de=[],De=Ne(Ie),qe=Ne(ne);return De&&qe&&Ue(De,qe)||(De&&de.push(De),qe&&de.push(qe)),de}function Pe(Ie,ne,de){return function(De,qe){var ar=Ne(De),hr=Ne(qe),ur=[];if(ar&&hr&&Ue(ar,hr))return ur;ar&&ur.push(ar),hr&&ur.push(hr);var Ar=2*hm.constrain((De[Ie]+qe[Ie])/2,ne,de)-((ar||De)[Ie]+(hr||qe)[Ie]);if(Ar){var jr;ar&&hr?jr=Ar>0==ar[Ie]>hr[Ie]?ar:hr:jr=ar||hr,jr[Ie]+=Ar}return ur}}var Oe;p==="linear"||p==="spline"?Oe=Re:p==="hv"||p==="vh"?Oe=He:p==="hvh"?Oe=Pe(0,ve,oe):p==="vhv"&&(Oe=Pe(1,ce,j));function Be(Ie,ne){var de=ne[0]-Ie[0],De=(ne[1]-Ie[1])/de,qe=(Ie[1]*ne[0]-ne[1]*Ie[0])/de;return qe>0?[De>0?ve:oe,j]:[De>0?oe:ve,ce]}function le(Ie){var ne=Ie[0],de=Ie[1],De=ne===b[T-1][0],qe=de===b[T-1][1];if(!(De&&qe))if(T>1){var ar=ne===b[T-2][0],hr=de===b[T-2][1];De&&(ne===ve||ne===oe)&&ar?hr?T--:b[T-1]=Ie:qe&&(de===ce||de===j)&&hr?ar?T--:b[T-1]=Ie:b[T++]=Ie}else b[T++]=Ie}function Te(Ie){b[T-1][0]!==Ie[0]&&b[T-1][1]!==Ie[1]&&le([be,me]),le(Ie),Fe=null,be=me=0}var Se=hm.isArrayOrTypedArray(c);function nr(Ie){if(Ie&&f&&(Ie.i=k,Ie.d=r,Ie.trace=a,Ie.marker=Se?c[Ie.i]:c,Ie.backoff=f),ie=Ie[0]/s,ue=Ie[1]/u,W=Ie[0]oe?oe:0,pe=Ie[1]j?j:0,W||pe){if(!T)b[T++]=[W||Ie[0],pe||Ie[1]];else if(Fe){var ne=Oe(Fe,Ie);ne.length>1&&(Te(ne[0]),b[T++]=ne[1])}else ze=Oe(b[T-1],Ie)[0],b[T++]=ze;var de=b[T-1];W&&pe&&(de[0]!==W||de[1]!==pe)?(Fe&&(be!==W&&me!==pe?le(be&&me?Be(Fe,Ie):[be||W,me||pe]):be&&me&&le([be,me])),le([W,pe])):be-W&&me-pe&&le([W||be,pe||me]),Fe=Ie,be=W,me=pe}else Fe&&Te(Oe(Fe,Ie)[0]),b[T++]=Ie}for(k=0;k<_;k++)if(M=re(k),!!M){for(T=0,Fe=null,nr(M),k++;k<_;k++){if(E=re(k),!E){if(v)continue;break}if(!m||!t.simplify){nr(E);continue}var Ke=re(k+1);if(B=ye(E,M),!(!(y&&(T===0||T===_-1))&&BK(P,Ke))break;S=P,U=O[0]*z[0]+O[1]*z[1],U>V?(V=U,E=P,R=!1):U=r.length||!P)break;nr(P),M=P}}Fe&&le([be||Fe[0],me||Fe[1]]),x.push(b.slice(0,T))}var Le=p.slice(p.length-1);if(f&&Le!=="h"&&Le!=="v"){for(var Ce=!1,Ye=-1,Xe=[],Ve=0;Ve{"use strict";var aI={tonextx:1,tonexty:1,tonext:1};nI.exports=function(r,t,a){var n,i,o,l,s,u={},f=!1,c=-1,v=0,d=-1;for(i=0;i=0?s=d:(s=d=v,v++),s{"use strict";var lo=Sr(),nge=gr(),i0=Ee(),bc=i0.ensureSingle,lI=i0.identity,Vt=Wr(),xc=Dn(),ige=l4(),oge=iI(),dm=a_().tester;sI.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=oge(r,t,a);if(l=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),lge(r,l,t),f){o&&(s=o());var v=lo.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});v.each(function(){n.selectAll("g.trace").each(function(d,p){oI(r,p,t,d,c,this,i)})})}else l.each(function(d,p){oI(r,p,t,d,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function lge(e,r,t){r.each(function(a){var n=bc(lo.select(this),"g","fills");Vt.setClipUrl(n,t.layerClipId,e);var i=a[0].trace,o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=n.selectAll("g").data(o,lI);l.enter().append("g"),l.exit().each(function(s){i[s]=null}).remove(),l.order().each(function(s){i[s]=bc(lo.select(this),"path","js-fill")})})}function oI(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;sge(e,r,t,a,n);var u=!!o&&o.duration>0;function f(Pe){return u?Pe.transition():Pe}var c=t.xaxis,v=t.yaxis,d=a[0].trace,p=d.line,m=lo.select(i),y=bc(m,"g","errorbars"),x=bc(m,"g","lines"),w=bc(m,"g","points"),_=bc(m,"g","text");if(nge.getComponentMethod("errorbars","plot")(e,y,t,o),d.visible!==!0)return;f(m).style("opacity",d.opacity);var b,T,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var M,S;k==="y"?(M=1,S=v.c2p(0,!0)):k==="x"&&(M=0,S=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=m;var E="",D=[],P=d._prevtrace,R=null,z=null;P&&(E=P._prevRevpath||"",T=P._nextFill,D=P._ownPolygons,R=P._fillsegments,z=P._fillElement);var O,B,V="",G="",U,Y,J,Z,re,fe,ie=[];d._polygons=[];var ue=[],K=[],ye=i0.noop;if(b=d._ownFill,xc.hasLines(d)||d.fill!=="none"){T&&T.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(U=Vt.steps(p.shape),Y=Vt.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?U=Y=function(Pe){var Oe=Pe[Pe.length-1];return Pe.length>1&&Pe[0][0]===Oe[0]&&Pe[0][1]===Oe[1]?Vt.smoothclosed(Pe.slice(1),p.smoothing):Vt.smoothopen(Pe,p.smoothing)}:U=Y=function(Pe){return"M"+Pe.join("L")},J=function(Pe){return Y(Pe.reverse())},K=ige(a,{xaxis:c,yaxis:v,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),ue=new Array(K.length);var se=0;for(s=0;s=l[0]&&m.x<=l[1]&&m.y>=s[0]&&m.y<=s[1]}),v=Math.ceil(c.length/f),d=0;n.forEach(function(m,y){var x=m[0].trace;xc.hasMarkers(x)&&x.marker.maxdisplayed>0&&y{"use strict";uI.exports={container:"marker",min:"cmin",max:"cmax"}});var u4=N((aFe,fI)=>{"use strict";var pm=Or();fI.exports=function(r,t,a){var n={},i={_fullLayout:a},o=pm.getFromTrace(i,t,"x"),l=pm.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=pm.tickText(o,o.c2l(s),!0).text,n.yLabel=pm.tickText(l,l.c2l(u),!0).text,n}});var ku=N((nFe,cI)=>{"use strict";var f4=Sr(),_c=Wr(),uge=gr();function fge(e){var r=f4.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=f4.select(this),n=t.trace||t[0].trace;c4(a,n,e)}),r.selectAll("g.text").each(function(t){var a=f4.select(this),n=t.trace||t[0].trace;v4(a,n,e)}),r.selectAll("g.trace path.js-line").call(_c.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(_c.fillGroupStyle,e,!1),uge.getComponentMethod("errorbars","style")(r)}function c4(e,r,t){_c.pointStyle(e.selectAll("path.point"),r,t)}function v4(e,r,t){_c.textPointStyle(e.selectAll("text"),r,t)}function cge(e,r,t){var a=r[0].trace;a.selectedpoints?(_c.selectedPointStyle(t.selectAll("path.point"),a),_c.selectedTextStyle(t.selectAll("text"),a)):(c4(t,a,e),v4(t,a,e))}cI.exports={style:fge,stylePoints:c4,styleText:v4,styleOnSelect:cge}});var hI=N((iFe,vI)=>{"use strict";var wc=Tr(),vge=Dn();vI.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&wc.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&wc.opacity(i)?i:o&&wc.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?wc.opacity(n)<.3?wc.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&wc.opacity(a)&&vge.hasLines(r)&&r.line.width?a:r.fillcolor)}});var d4=N((oFe,pI)=>{"use strict";var ym=Ee(),dI=Pn(),hge=gr(),dge=hI(),h4=Tr(),pge=ym.fillText;pI.exports=function(r,t,a,n){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,u=l.c2p(t),f=s.c2p(a),c=[u,f],v=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,m=!!o.yperiodalignment;if(v.indexOf("points")!==-1){var y=function(G){if(p){var U=l.c2p(G.xStart),Y=l.c2p(G.xEnd);return u>=Math.min(U,Y)&&u<=Math.max(U,Y)?0:1/0}var J=Math.max(3,G.mrc||0),Z=1-1/J,re=Math.abs(l.c2p(G.x)-u);return re=Math.min(U,Y)&&f<=Math.max(U,Y)?0:1/0}var J=Math.max(3,G.mrc||0),Z=1-1/J,re=Math.abs(s.c2p(G.y)-f);return reie!=j>=ie&&(ve=ye[K-1][0],oe=ye[K][0],j-ce&&(se=ve+(oe-ve)*(ie-ce)/(j-ce),J=Math.min(J,se),Z=Math.max(Z,se)));return J=Math.max(J,0),Z=Math.min(Z,l._length),{x0:J,x1:Z,y0:ie,y1:ie}}if(v.indexOf("fills")!==-1&&o._fillElement){var O=R(o._fillElement)&&!R(o._fillExclusionElement);if(O){var B=z(o._polygons);B===null&&(B={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var V=h4.defaultLine;return h4.opacity(o.fillcolor)?V=o.fillcolor:h4.opacity((o.line||{}).color)&&(V=o.line.color),ym.extendFlat(r,{distance:r.maxHoverDistance,x0:B.x0,x1:B.x1,y0:B.y0,y1:B.y1,color:V,hovertemplate:!1}),delete r.index,o.text&&!ym.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var p4=N((lFe,mI)=>{"use strict";var yI=Dn();mI.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,v=!yI.hasMarkers(l)&&!yI.hasText(l);if(v)return[];if(t===!1)for(s=0;s{"use strict";gI.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var TI=N((uFe,wI)=>{"use strict";var l0=gr().traceIs,y4=w1();wI.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(yge(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function yge(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=mge(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=a+"calendar",l=i[o],s={noMultiCategory:!l0(i,"cartesian")||l0(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,_I(i,a)){var u=xI(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(_I(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function xI(e){return{v:"x",h:"y"}[e.orientation||"v"]}function _I(e,r){var t=xI(e),a=l0(e,"box-violin"),n=l0(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var MI=N((fFe,AI)=>{"use strict";var gge=Vn().isTypedArraySpec;function bge(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,o;if(r.axData)n=r.axData;else for(n=[],i=0;i0||gge(i),l;o&&(l="array");var s=a("categoryorder",l),u;s==="array"&&(u=a("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=bge(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var m4=N((cFe,SI)=>{"use strict";var kI=kn().mix,xge=li(),_ge=Ee();SI.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(S,E){return _ge.coerce2(r,t,n.attributes,S,E)}var l=o("linecolor",i),s=o("linewidth"),u=a("showline",n.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=kI(i,n.bgColor,n.blend||xge.lightFraction).toRgbString(),c=o("gridcolor",f),v=o("gridwidth"),d=o("griddash"),p=a("showgrid",n.showGrid||!!c||!!v||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var m=kI(t.gridcolor,n.bgColor,67).toRgbString(),y=o("minor.gridcolor",m),x=o("minor.gridwidth",t.gridwidth||1),w=o("minor.griddash",t.griddash||"solid"),_=a("minor.showgrid",!!y||!!x||!!w);_||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var b=o("zerolinelayer"),T=o("zerolinecolor",i),k=o("zerolinewidth"),M=a("zeroline",n.showGrid||!!T||!!k);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var b4=N((vFe,RI)=>{"use strict";var qI=Rr(),wge=gr(),s0=Ee(),Tge=_t(),Age=eo(),g4=hi(),LI=a1(),CI=n1(),Mge=o1(),kge=l1(),Sge=MI(),qge=m4(),Lge=e5(),EI=Zf(),mm=Ca().WEEKDAY_PATTERN,Cge=Ca().HOUR_PATTERN;RI.exports=function(r,t,a,n,i){var o=n.letter,l=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",v;if(c==="date"){var d=wge.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(v=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=s0.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),EI(t,i),Lge(r,t,a,n),Sge(r,t,a,n),c!=="category"&&!n.noHover&&a("hoverformat");var m=a("color"),y=m!==g4.color.dflt?m:l.color,x=s.label||i._dfltTitle[o];if(kge(r,t,a,c,n),!u)return t;a("title.text",x),s0.coerceFont(a,"title.font",l,{overrideDflt:{size:s0.bigFont(l.size),color:y}}),LI(r,t,a,c);var w=n.hasMinor;if(w&&(Tge.newContainer(t,"minor"),LI(r,t,a,c,{isMinor:!0})),Mge(r,t,a,c,n),CI(r,t,a,n),w){var _=n.isMinor;n.isMinor=!0,CI(r,t,a,n),n.isMinor=_}qge(r,t,a,{dfltColor:m,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:w,attributes:g4}),w&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var b=c==="multicategory";if(!n.noTickson&&(c==="category"||b)&&(t.ticks||t.showgrid)&&(b?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),b){var T=a("showdividers");T&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(Age(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Ege}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=DI(i[l]),s){o=mm;break}}var u=a("pattern",o);if(u===mm)for(l=0;l<2;l++)s=DI(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case mm:if(!qI(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case Cge:if(!qI(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var Rge=Rr(),gm=Ee();PI.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,u=n.overlayingDomain,f,c,v,d,p,m;s&&(c=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],c&&(v=s[l+"side"].split(" ")[0],d=s.domain[l][v==="right"||v==="top"?1:0])),c=c||[0,1],f=f||(Rge(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,m=!1;var y=gm.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),x=gm.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:v}},"side");if(y==="free"){if(l==="y"){var w=a("autoshift");w&&(d=x==="left"?u[0]:u[1],m=t.automargin?t.automargin:!0,p=x==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",m);var _=!1;if(o.length&&(_=gm.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!_){var b=a("domain",c);b[0]>b[1]-1/4096&&(t.domain=c),gm.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var GI=N((dFe,UI)=>{"use strict";var Su=Ee(),FI=Tr(),Pge=qo().isUnifiedHover,Fge=k5(),NI=_t(),Nge=Sf(),zI=hi(),zge=TI(),II=b4(),Ige=Tu(),OI=x4(),w4=va(),Bo=w4.id2name,BI=w4.name2id,Oge=Ca().AX_ID_PATTERN,HI=gr(),bm=HI.traceIs,_4=HI.getComponentMethod;function xm(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}UI.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},u={},f={},c={},v={},d={},p={},m,y;for(m=0;m{"use strict";var Bge=Sr(),YI=gr(),_m=Ee(),Kn=Wr(),wm=Or();VI.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){wm.redrawComponents(r);return}function o(y){var x=y.xaxis,w=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(Kn.setTranslate,0,0).call(Kn.setScale,1,1),y.plot.call(Kn.setTranslate,x._offset,w._offset).call(Kn.setScale,1,1);var _=y.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call(Kn.setPointGroupScale,1,1),_.selectAll(".textpoint").call(Kn.setTextPointsScale,1,1),_.call(Kn.hideOutsideRangePoints,y)}function l(y,x){var w=y.plotinfo,_=w.xaxis,b=w.yaxis,T=_._length,k=b._length,M=!!y.xr1,S=!!y.yr1,E=[];if(M){var D=_m.simpleMap(y.xr0,_.r2l),P=_m.simpleMap(y.xr1,_.r2l),R=D[1]-D[0],z=P[1]-P[0];E[0]=(D[0]*(1-x)+x*P[0]-D[0])/(D[1]-D[0])*T,E[2]=T*(1-x+x*z/R),_.range[0]=_.l2r(D[0]*(1-x)+x*P[0]),_.range[1]=_.l2r(D[1]*(1-x)+x*P[1])}else E[0]=0,E[2]=T;if(S){var O=_m.simpleMap(y.yr0,b.r2l),B=_m.simpleMap(y.yr1,b.r2l),V=O[1]-O[0],G=B[1]-B[0];E[1]=(O[1]*(1-x)+x*B[1]-O[1])/(O[0]-O[1])*k,E[3]=k*(1-x+x*G/V),b.range[0]=_.l2r(O[0]*(1-x)+x*B[0]),b.range[1]=b.l2r(O[1]*(1-x)+x*B[1])}else E[1]=0,E[3]=k;wm.drawOne(r,_,{skipTitle:!0}),wm.drawOne(r,b,{skipTitle:!0}),wm.redrawComponents(r,[_._id,b._id]);var U=M?T/E[2]:1,Y=S?k/E[3]:1,J=M?E[0]:0,Z=S?E[1]:0,re=M?E[0]/E[2]*T:0,fe=S?E[1]/E[3]*k:0,ie=_._offset-re,ue=b._offset-fe;w.clipRect.call(Kn.setTranslate,J,Z).call(Kn.setScale,1/U,1/Y),w.plot.call(Kn.setTranslate,ie,ue).call(Kn.setScale,U,Y),Kn.setPointGroupScale(w.zoomScalePts,1/U,1/Y),Kn.setTextPointsScale(w.zoomScaleTxt,1/U,1/Y)}var s;n&&(s=n());function u(){for(var y={},x=0;xa.duration?(u(),d=window.cancelAnimationFrame(m)):d=window.requestAnimationFrame(m)}return c=Date.now(),d=window.requestAnimationFrame(m),Promise.resolve()}});var qi=N(Ka=>{"use strict";var Am=Sr(),WI=gr(),qu=Ee(),Hge=ea(),Uge=Wr(),ZI=Xp().getModuleCalcData,us=va(),so=Ca(),Gge=ll(),et=qu.ensureSingle;function Tm(e,r,t){return qu.ensureSingle(e,r,t,function(a){a.datum(t)})}var Lu=so.zindexSeparator;Ka.name="cartesian";Ka.attr=["xaxis","yaxis"];Ka.idRoot=["x","y"];Ka.idRegex=so.idRegex;Ka.attrRegex=so.attrRegex;Ka.attributes=bI();Ka.layoutAttributes=hi();Ka.supplyLayoutDefaults=GI();Ka.transitionAxes=jI();Ka.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,o=i,l={},s={},u,f,c;for(u=0;u0){var d=v.id;if(d.indexOf(Lu)!==-1)continue;d+=Lu+(u+1),v=qu.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],m,y=0;y1&&(T+=Lu+b),_.push(l+T),o=0;o1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=et(a,"path","xlines-above"),r.ylines=et(a,"path","ylines-above"),r.xaxislayer=et(a,"g","xaxislayer-above"),r.yaxislayer=et(a,"g","yaxislayer-above");else{if(!o){var v=et(a,"g","layer-subplot");r.shapelayer=et(v,"g","shapelayer"),r.imagelayer=et(v,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=et(a,"g","minor-gridlayer"),r.gridlayer=et(a,"g","gridlayer"),r.zerolinelayer=et(a,"g","zerolinelayer"));var d=et(a,"g","layer-between");r.shapelayerBetween=et(d,"g","shapelayer"),r.imagelayerBetween=et(d,"g","imagelayer"),et(a,"path","xlines-below"),et(a,"path","ylines-below"),r.overlinesBelow=et(a,"g","overlines-below"),et(a,"g","xaxislayer-below"),et(a,"g","yaxislayer-below"),r.overaxesBelow=et(a,"g","overaxes-below")}r.overplot=et(a,"g","overplot"),r.plot=et(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=et(a,"g","zerolinelayer-above"),o||(r.xlines=et(a,"path","xlines-above"),r.ylines=et(a,"path","ylines-above"),r.overlinesAbove=et(a,"g","overlines-above"),et(a,"g","xaxislayer-above"),et(a,"g","yaxislayer-above"),r.overaxesAbove=et(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,m=n+"-x",y=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,et(c.overlinesBelow,"path",m),et(c.overlinesBelow,"path",y),et(c.overaxesBelow,"g",m),et(c.overaxesBelow,"g",y),r.plot=et(c.overplot,"g",n),et(c.overlinesAbove,"path",m),et(c.overlinesAbove,"path",y),et(c.overaxesAbove,"g",m),et(c.overaxesAbove,"g",y),r.xlines=p.select(".overlines-"+l).select("."+m),r.ylines=p.select(".overlines-"+s).select("."+y),r.xaxislayer=p.select(".overaxes-"+l).select("."+m),r.yaxislayer=p.select(".overaxes-"+s).select("."+y)}o||(u||(Tm(r.minorGridlayer,"g",r.xaxis._id),Tm(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(x){return x[0]}).sort(us.idSort),Tm(r.gridlayer,"g",r.xaxis._id),Tm(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(x){return x[0]}).sort(us.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function $I(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=Am.select(this);f.remove(),KI(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],o=0;o{"use strict";var Mm=Dn();QI.exports={hasLines:Mm.hasLines,hasMarkers:Mm.hasMarkers,hasText:Mm.hasText,isBubble:Mm.isBubble,attributes:wi(),layoutAttributes:jp(),supplyDefaults:_z(),crossTraceDefaults:Az(),supplyLayoutDefaults:kz(),calc:um().calc,crossTraceCalc:Jz(),arraysToCalcdata:lm(),plot:s4(),colorbar:o0(),formatLabels:u4(),style:ku().style,styleOnSelect:ku().styleOnSelect,hoverPoints:d4(),selectPoints:p4(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:qi(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var aO=N((gFe,tO)=>{"use strict";var Vge=Sr(),jge=Tr(),rO=p_(),T4=Ee(),Wge=T4.strScale,Zge=T4.strRotate,Xge=T4.strTranslate;tO.exports=function(r,t,a){var n=r.node(),i=rO[a.arrowhead||0],o=rO[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,v=o.backoff*s+a.startstandoff,d,p,m,y;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var x=d.x-p.x,w=d.y-p.y;if(m=Math.atan2(w,x),y=m+Math.PI,c&&v&&c+v>Math.sqrt(x*x+w*w)){O();return}if(c){if(c*c>x*x+w*w){O();return}var _=c*Math.cos(m),b=c*Math.sin(m);p.x+=_,p.y+=b,r.attr({x2:p.x,y2:p.y})}if(v){if(v*v>x*x+w*w){O();return}var T=v*Math.cos(m),k=v*Math.sin(m);d.x-=T,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var M=n.getTotalLength(),S="";if(M{"use strict";var nO=Sr(),A4=gr(),Jge=ea(),cs=Ee(),M4=cs.strTranslate,f0=Or(),Cu=Tr(),ml=Wr(),iO=Pn(),k4=Ea(),S4=rs(),u0=pi(),$ge=_t().arrayEditor,Kge=aO();sO.exports={draw:Qge,drawOne:oO,drawRaw:lO};function Qge(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?qe="right":qe="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[qe]}for(var ce=!1,j=["x","y"],Q=0;Q1)&&(be===pe?(Ke=me.r2fraction(r["a"+W]),(Ke<0||Ke>1)&&(ce=!0)):ce=!0),Oe=me._offset+me.r2p(r[W]),Te=.5}else{var Le=nr==="domain";W==="x"?(le=r[W],Oe=Le?me._offset+me._length*le:Oe=l.l+l.w*le):(le=1-r[W],Oe=Le?me._offset+me._length*le:Oe=l.t+l.h*le),Te=r.showarrow?.5:le}if(r.showarrow){Pe.head=Oe;var Ce=r["a"+W];if(Se=ze*oe(.5,r.xanchor)-Re*oe(.5,r.yanchor),be===pe){var Ye=f0.getRefType(be);Ye==="domain"?(W==="y"&&(Ce=1-Ce),Pe.tail=me._offset+me._length*Ce):Ye==="paper"?W==="y"?(Ce=1-Ce,Pe.tail=l.t+l.h*Ce):Pe.tail=l.l+l.w*Ce:Pe.tail=me._offset+me.r2p(Ce),Be=Se}else Pe.tail=Oe+Ce,Be=Se+Ce;Pe.text=Pe.tail+Se;var Xe=o[W==="x"?"width":"height"];if(pe==="paper"&&(Pe.head=cs.constrain(Pe.head,1,Xe-1)),be==="pixel"){var Ve=-Math.max(Pe.tail-3,Pe.text),Ge=Math.min(Pe.tail+3,Pe.text)-Xe;Ve>0?(Pe.tail+=Ve,Pe.text+=Ve):Ge>0&&(Pe.tail-=Ge,Pe.text-=Ge)}Pe.tail+=He,Pe.head+=He}else Se=Ne*oe(Te,Ue),Be=Se,Pe.text=Oe+Se;Pe.text+=He,Se+=He,Be+=He,r["_"+W+"padplus"]=Ne/2+Be,r["_"+W+"padminus"]=Ne/2-Be,r["_"+W+"size"]=Ne,r["_"+W+"shift"]=Se}if(ce){M.remove();return}var $e=0,cr=0;if(r.align!=="left"&&($e=(K-ie)*(r.align==="center"?.5:1)),r.valign!=="top"&&(cr=(ye-ue)*(r.valign==="middle"?.5:1)),re)Z.select("svg").attr({x:D+$e-1,y:D+cr}).call(ml.setClipUrl,R?m:null,e);else{var lr=D+cr-fe.top,Ie=D+$e-fe.left;V.call(k4.positionText,Ie,lr).call(ml.setClipUrl,R?m:null,e)}z.select("rect").call(ml.setRect,D,D,K,ye),P.call(ml.setRect,S/2,S/2,se-S,ve-S),M.call(ml.setTranslate,Math.round(y.x.text-se/2),Math.round(y.y.text-ve/2)),_.attr({transform:"rotate("+x+","+y.x.text+","+y.y.text+")"});var ne=function(De,qe){w.selectAll(".annotation-arrow-g").remove();var ar=y.x.head,hr=y.y.head,ur=y.x.tail+De,Ar=y.y.tail+qe,jr=y.x.text+De,Vr=y.y.text+qe,zr=cs.rotationXYMatrix(x,jr,Vr),Et=cs.apply2DTransform(zr),Dt=cs.apply2DTransform2(zr),ma=+P.attr("width"),St=+P.attr("height"),Wa=jr-.5*ma,ga=Wa+ma,Wt=Vr-.5*St,Na=Wt+St,br=[[Wa,Wt,Wa,Na],[Wa,Na,ga,Na],[ga,Na,ga,Wt],[ga,Wt,Wa,Wt]].map(Dt);if(!br.reduce(function(ft,xa){return ft^!!cs.segmentsIntersect(ar,hr,ar+1e6,hr+1e6,xa[0],xa[1],xa[2],xa[3])},!1)){br.forEach(function(ft){var xa=cs.segmentsIntersect(ur,Ar,ar,hr,ft[0],ft[1],ft[2],ft[3]);xa&&(ur=xa.x,Ar=xa.y)});var pt=r.arrowwidth,Nr=r.arrowcolor,ut=r.arrowside,Rt=w.append("g").style({opacity:Cu.opacity(Nr)}).classed("annotation-arrow-g",!0),Qr=Rt.append("path").attr("d","M"+ur+","+Ar+"L"+ar+","+hr).style("stroke-width",pt+"px").call(Cu.stroke,Cu.rgb(Nr));if(Kge(Qr,ut,r),s.annotationPosition&&Qr.node().parentNode&&!a){var ct=ar,ba=hr;if(r.standoff){var Zt=Math.sqrt(Math.pow(ar-ur,2)+Math.pow(hr-Ar,2));ct+=r.standoff*(ur-ar)/Zt,ba+=r.standoff*(Ar-hr)/Zt}var tn=Rt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ur-ct)+","+(Ar-ba),transform:M4(ct,ba)}).style("stroke-width",pt+6+"px").call(Cu.stroke,"rgba(0,0,0,0)").call(Cu.fill,"rgba(0,0,0,0)"),wn,Xt;u0.init({element:tn.node(),gd:e,prepFn:function(){var ft=ml.getTranslate(M);wn=ft.x,Xt=ft.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(ft,xa){var Ko=Et(wn,Xt),Qo=Ko[0]+ft,vt=Ko[1]+xa;M.call(ml.setTranslate,Qo,vt),d("x",fs(n,ft,"x",l,r)),d("y",fs(i,xa,"y",l,r)),r.axref===r.xref&&d("ax",fs(n,ft,"ax",l,r)),r.ayref===r.yref&&d("ay",fs(i,xa,"ay",l,r)),Rt.attr("transform",M4(ft,xa)),_.attr({transform:"rotate("+x+","+Qo+","+vt+")"})},doneFn:function(){A4.call("_guiRelayout",e,p());var ft=document.querySelector(".js-notes-box-panel");ft&&ft.redraw(ft.selectedObj)}})}}};if(r.showarrow&&ne(0,0),b){var de;u0.init({element:M.node(),gd:e,prepFn:function(){de=_.attr("transform")},moveFn:function(De,qe){var ar="pointer";if(r.showarrow)r.axref===r.xref?d("ax",fs(n,De,"ax",l,r)):d("ax",r.ax+De),r.ayref===r.yref?d("ay",fs(i,qe,"ay",l.w,r)):d("ay",r.ay+qe),ne(De,qe);else{if(a)return;var hr,ur;if(n)hr=fs(n,De,"x",l,r);else{var Ar=r._xsize/l.w,jr=r.x+(r._xshift-r.xshift)/l.w-Ar/2;hr=u0.align(jr+De/l.w,Ar,0,1,r.xanchor)}if(i)ur=fs(i,qe,"y",l,r);else{var Vr=r._ysize/l.h,zr=r.y-(r._yshift+r.yshift)/l.h-Vr/2;ur=u0.align(zr-qe/l.h,Vr,0,1,r.yanchor)}d("x",hr),d("y",ur),(!n||!i)&&(ar=u0.getCursor(n?.5:hr,i?.5:ur,r.xanchor,r.yanchor))}_.attr({transform:M4(De,qe)+de}),S4(M,ar)},clickFn:function(De,qe){r.captureevents&&e.emit("plotly_clickannotation",k(qe))},doneFn:function(){S4(M),A4.call("_guiRelayout",e,p());var De=document.querySelector(".js-notes-box-panel");De&&De.redraw(De.selectedObj)}})}}s.annotationText?V.call(k4.makeEditable,{delegate:M,gd:e}).call(G).on("edit",function(Y){r.text=Y,this.call(G),d("text",Y),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),A4.call("_guiRelayout",e,p())}):V.call(G)}});var dO=N((xFe,hO)=>{"use strict";var uO=Ee(),e2e=gr(),fO=_t().arrayEditor;hO.exports={hasClickToShow:r2e,onClick:t2e};function r2e(e,r){var t=vO(e,r);return t.on.length>0||t.explicitOff.length>0}function t2e(e,r){var t=vO(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(a.length||n.length){for(l=0;l{"use strict";var q4=Ee(),Tc=Tr();pO.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=Tc.opacity(o);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),q4.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),v,d;c.indexOf("end")!==-1&&(v=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",v),n("startarrowsize",d)),n("arrowcolor",l?t.bordercolor:Tc.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),m=a.hoverlabel||{};if(p){var y=n("hoverlabel.bgcolor",m.bgcolor||(Tc.opacity(i)?Tc.rgb(i):Tc.defaultLine)),x=n("hoverlabel.bordercolor",m.bordercolor||Tc.contrast(y)),w=q4.extendFlat({},m.font);w.color||(w.color=x),q4.coerceFont(n,"hoverlabel.font",w)}n("captureevents",!!p)}});var mO=N((wFe,yO)=>{"use strict";var C4=Ee(),Eu=Or(),a2e=eo(),n2e=L4(),i2e=vc();yO.exports=function(r,t){a2e(r,t,{name:"annotations",handleItemDefaults:o2e})};function o2e(e,r,t){function a(_,b){return C4.coerce(e,r,i2e,_,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){n2e(e,r,t,a);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=l[f],v=Eu.coerceRef(e,r,u,c,"","paper");if(v!=="paper"){var d=Eu.getFromId(u,v);d._annIndices.push(r._index)}if(Eu.coercePosition(r,u,a,v,c,.5),o){var p="a"+c,m=Eu.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);m!=="pixel"&&m!==v&&(m=r[p]="pixel");var y=m==="pixel"?s[f]:.4;Eu.coercePosition(r,u,a,m,p,y)}a(c+"anchor"),a(c+"shift")}if(C4.noneOrAll(e,r,["x","y"]),o&&C4.noneOrAll(e,r,["ax","ay"]),i){var x=a("xclick"),w=a("yclick");r._xclick=x===void 0?r.x:Eu.cleanPosition(x,u,r.xref),r._yclick=w===void 0?r.y:Eu.cleanPosition(w,u,r.yref)}}}});var xO=N((TFe,bO)=>{"use strict";var E4=Ee(),Du=Or(),l2e=km().draw;bO.exports=function(r){var t=r._fullLayout,a=E4.filterVisible(t.annotations);if(a.length&&r._fullData.length)return E4.syncOrAsync([l2e,s2e],r)};function s2e(e){var r=e._fullLayout;E4.filterVisible(r.annotations).forEach(function(t){var a=Du.getFromId(e,t.xref),n=Du.getFromId(e,t.yref),i=Du.getRefType(t.xref),o=Du.getRefType(t.yref);t._extremes={},i==="range"&&gO(t,a),o==="range"&&gO(t,n)})}function gO(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],l=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,v=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,m=p+f,y=p-f,x;if(l===o){var w=Du.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),_=Du.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,m),ppadminus:Math.max(u,y)});x={min:[w.min[0],_.min[0]],max:[w.max[0],_.max[0]]}}else m=i?m+i:m,y=i?y-i:y,x=Du.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,m),ppadminus:Math.max(u,d,y)});e._extremes[t]=x}});var wO=N((AFe,_O)=>{"use strict";var u2e=Rr(),f2e=vp();_O.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(d){var p=u[d],m=null;i?m=f2e(p,t.range):m=Math.pow(10,p),u2e(m)||(m=null),n(f+d,m)}for(var v=0;v{"use strict";var D4=km(),TO=dO();AO.exports={moduleType:"component",name:"annotations",layoutAttributes:vc(),supplyLayoutDefaults:mO(),includeBasePlot:Gh()("annotations"),calcAutorange:xO(),draw:D4.draw,drawOne:D4.drawOne,drawRaw:D4.drawRaw,hasClickToShow:TO.hasClickToShow,onClick:TO.onClick,convertCoords:wO()}});var Sm=N((kFe,kO)=>{"use strict";var Mt=vc(),c2e=Xi().overrideAll,v2e=_t().templatedArray;kO.exports=c2e(v2e("annotation",{visible:Mt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Mt.xanchor,xshift:Mt.xshift,yanchor:Mt.yanchor,yshift:Mt.yshift,text:Mt.text,textangle:Mt.textangle,font:Mt.font,width:Mt.width,height:Mt.height,opacity:Mt.opacity,align:Mt.align,valign:Mt.valign,bgcolor:Mt.bgcolor,bordercolor:Mt.bordercolor,borderpad:Mt.borderpad,borderwidth:Mt.borderwidth,showarrow:Mt.showarrow,arrowcolor:Mt.arrowcolor,arrowhead:Mt.arrowhead,startarrowhead:Mt.startarrowhead,arrowside:Mt.arrowside,arrowsize:Mt.arrowsize,startarrowsize:Mt.startarrowsize,arrowwidth:Mt.arrowwidth,standoff:Mt.standoff,startstandoff:Mt.startstandoff,hovertext:Mt.hovertext,hoverlabel:Mt.hoverlabel,captureevents:Mt.captureevents}),"calc","from-root")});var qO=N((SFe,SO)=>{"use strict";var R4=Ee(),h2e=Or(),d2e=eo(),p2e=L4(),y2e=Sm();SO.exports=function(r,t,a){d2e(r,t,{name:"annotations",handleItemDefaults:m2e,fullLayout:a.fullLayout})};function m2e(e,r,t,a){function n(l,s){return R4.coerce(e,r,y2e,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],h2e.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(p2e(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),R4.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),R4.noneOrAll(e,r,["ax","ay"])))}});var DO=N((qFe,EO)=>{"use strict";var LO=Ee(),CO=Or();EO.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function P4(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function b2e(e,r){var t=P4(e.projection,P4(e.view,P4(e.model,[r[0],r[1],r[2],1])));return t}RO.exports=b2e});var NO=N((CFe,FO)=>{"use strict";var x2e=km().drawRaw,_2e=PO(),w2e=["x","y","z"];FO.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=_2e(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),x2e(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var OO=N((EFe,IO)=>{"use strict";var T2e=gr(),zO=Ee();IO.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Sm()}}},layoutAttributes:Sm(),handleDefaults:qO(),includeBasePlot:A2e,convert:DO(),draw:NO()};function A2e(e,r){var t=T2e.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var BO=vc(),HO=fa(),UO=wi().line,M2e=si().dash,uo=bt().extendFlat,k2e=_t().templatedArray,DFe=Hh(),Ac=mn(),S2e=La().shapeTexttemplateAttrs,q2e=kp();GO.exports=k2e("shape",{visible:uo({},Ac.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:uo({},Ac.legend,{editType:"calc+arraydraw"}),legendgroup:uo({},Ac.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:uo({},Ac.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:HO({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:uo({},Ac.legendrank,{editType:"calc+arraydraw"}),legendwidth:uo({},Ac.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:uo({},BO.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:uo({},BO.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:uo({},UO.color,{editType:"arraydraw"}),width:uo({},UO.width,{editType:"calc+arraydraw"}),dash:uo({},M2e,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:S2e({},{keys:Object.keys(q2e)}),font:HO({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var jO=N((PFe,VO)=>{"use strict";var c0=Ee(),Mc=Or(),L2e=eo(),C2e=F4(),YO=ns();VO.exports=function(r,t){L2e(r,t,{name:"shapes",handleItemDefaults:D2e})};function E2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function D2e(e,r,t){function a(Y,J){return c0.coerce(e,r,C2e,Y,J)}r._isShape=!0;var n=a("visible");if(n){var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),c0.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var o=a("path"),l=o?"path":"rect",s=a("type",l),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));for(var c=a("xsizemode"),v=a("ysizemode"),d=["x","y"],p=0;p<2;p++){var m=d[p],y=m+"anchor",x=m==="x"?c:v,w={_fullLayout:t},_,b,T,k=Mc.coerceRef(e,r,w,m,void 0,"paper"),M=Mc.getRefType(k);if(M==="range"?(_=Mc.getFromId(w,k),_._shapeIndices.push(r._index),T=YO.rangeToShapePosition(_),b=YO.shapePositionToRange(_),(_.type==="category"||_.type==="multicategory")&&(a(m+"0shift"),a(m+"1shift"))):b=T=c0.identity,u){var S=.25,E=.75,D=m+"0",P=m+"1",R=e[D],z=e[P];e[D]=b(e[D],!0),e[P]=b(e[P],!0),x==="pixel"?(a(D,0),a(P,10)):(Mc.coercePosition(r,w,a,k,D,S),Mc.coercePosition(r,w,a,k,P,E)),r[D]=T(r[D]),r[P]=T(r[P]),e[D]=R,e[P]=z}if(x==="pixel"){var O=e[y];e[y]=b(e[y],!0),Mc.coercePosition(r,w,a,k,y,.25),r[y]=T(r[y]),e[y]=O}}u&&c0.noneOrAll(e,r,["x0","x1","y0","y1"]);var B=s==="line",V,G;if(u&&(V=a("label.texttemplate")),V||(G=a("label.text")),G||V){a("label.textangle");var U=a("label.textposition",B?"middle":"middle center");a("label.xanchor"),a("label.yanchor",E2e(B,U)),a("label.padding"),c0.coerceFont(a,"label.font",t.font)}}}});var XO=N((FFe,ZO)=>{"use strict";var R2e=Tr(),WO=Ee();function P2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}ZO.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),WO.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",R2e.contrast(i)),a("newshape.line.dash")}var o=r.dragmode==="drawline",l=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(l||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",P2e(o,u)),a("newshape.label.padding"),WO.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var eB=N((NFe,QO)=>{"use strict";var N4=Ee(),kc=Or(),Sc=wh(),$O=ns();QO.exports=function(r){var t=r._fullLayout,a=N4.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n0?u+o:o;return{ppad:o,ppadplus:l?c:v,ppadminus:l?v:c}}else return{ppad:o}}function JO(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],o=r[a+"1"],n&&(l=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],o=r[a+"anchor"]),i!==void 0)return[u(i)+l,u(o)+s];if(r.path){var c=1/0,v=-1/0,d=r.path.match(Sc.segmentRE),p,m,y,x,w;for(e.type==="date"&&(u=$O.decodeDate(u)),p=0;pv&&(v=w)));if(v>=c)return[c,v]}}});var aB=N((zFe,tB)=>{"use strict";var rB=py();tB.exports={moduleType:"component",name:"shapes",layoutAttributes:F4(),supplyLayoutDefaults:jO(),supplyDrawNewShapeDefaults:XO(),includeBasePlot:Gh()("shapes"),calcAutorange:eB(),draw:rB.draw,drawOne:rB.drawOne}});var z4=N((OFe,iB)=>{"use strict";var nB=Ca(),z2e=_t().templatedArray,IFe=Hh();iB.exports=z2e("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",nB.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",nB.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var lB=N((BFe,oB)=>{"use strict";var I2e=Ee(),I4=Or(),O2e=eo(),B2e=z4(),H2e="images";oB.exports=function(r,t){var a={name:H2e,handleItemDefaults:U2e};O2e(r,t,a)};function U2e(e,r,t){function a(v,d){return I2e.coerce(e,r,B2e,v,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var u=l[s],f=I4.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var c=I4.getFromId(o,f);c._imgIndices.push(r._index)}I4.coercePosition(r,o,a,f,u,0)}return r}});var cB=N((HFe,fB)=>{"use strict";var sB=Sr(),G2e=Wr(),qc=Or(),uB=va(),Y2e=ll();fB.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var vB=Rr(),V2e=vp();hB.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c{"use strict";pB.exports={moduleType:"component",name:"images",layoutAttributes:z4(),supplyLayoutDefaults:lB(),includeBasePlot:Gh()("images"),draw:cB(),convertCoords:dB()}});var qm=N((YFe,mB)=>{"use strict";mB.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var O4=N((VFe,bB)=>{"use strict";var j2e=fa(),W2e=li(),Z2e=bt().extendFlat,X2e=Xi().overrideAll,J2e=Sp(),gB=_t().templatedArray,$2e=gB("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});bB.exports=X2e(gB("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:$2e,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Z2e(J2e({editType:"arraydraw"}),{}),font:j2e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:W2e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var TB=N((jFe,wB)=>{"use strict";var Lm=Ee(),xB=eo(),_B=O4(),K2e=qm(),Q2e=K2e.name,e3e=_B.buttons;wB.exports=function(r,t){var a={name:Q2e,handleItemDefaults:r3e};xB(r,t,a)};function r3e(e,r,t){function a(o,l){return Lm.coerce(e,r,_B,o,l)}var n=xB(e,r,{name:"buttons",handleItemDefaults:t3e}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Lm.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Lm.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function t3e(e,r){function t(n,i){return Lm.coerce(e,r,e3e,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var kB=N((WFe,MB)=>{"use strict";MB.exports=It;var fo=Sr(),AB=Tr(),Lc=Wr(),Cm=Ee();function It(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}It.barWidth=2;It.barLength=20;It.barRadius=2;It.barPad=1;It.barColor="#808BA4";It.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,o=n.height;this.position=r;var l=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,v=c==="down",d=c==="left",p=c==="right",m=c==="up",y=s,x=f,w,_,b,T;!v&&!d&&!p&&!m&&(this.position.direction="down",v=!0);var k=v||m;k?(w=l,_=w+y,v?(b=u,T=Math.min(b+x,o),x=T-b):(T=u+x,b=Math.max(T-x,0),x=T-b)):(b=u,T=b+x,d?(_=l+y,w=Math.max(_-y,0),y=_-w):(w=l,_=Math.min(w+y,i),y=_-w)),this._box={l:w,t:b,w:y,h:x};var M=s>y,S=It.barLength+2*It.barPad,E=It.barWidth+2*It.barPad,D=l,P=u+f;P+E>o&&(P=o-E);var R=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(AB.fill,It.barColor),M?(this.hbar=R.attr({rx:It.barRadius,ry:It.barRadius,x:D,y:P,width:S,height:E}),this._hbarXMin=D+S/2,this._hbarTranslateMax=y-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var z=f>x,O=It.barWidth+2*It.barPad,B=It.barLength+2*It.barPad,V=l+s,G=u;V+O>i&&(V=i-O);var U=this.container.selectAll("rect.scrollbar-vertical").data(z?[0]:[]);U.exit().on(".drag",null).remove(),U.enter().append("rect").classed("scrollbar-vertical",!0).call(AB.fill,It.barColor),z?(this.vbar=U.attr({rx:It.barRadius,ry:It.barRadius,x:V,y:G,width:O,height:B}),this._vbarYMin=G+B/2,this._vbarTranslateMax=x-B):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var Y=this.id,J=w-.5,Z=z?_+O+.5:_+.5,re=b-.5,fe=M?T+E+.5:T+.5,ie=n._topdefs.selectAll("#"+Y).data(M||z?[0]:[]);if(ie.exit().remove(),ie.enter().append("clipPath").attr("id",Y).append("rect"),M||z?(this._clipRect=ie.select("rect").attr({x:Math.floor(J),y:Math.floor(re),width:Math.ceil(Z)-Math.floor(J),height:Math.ceil(fe)-Math.floor(re)}),this.container.call(Lc.setClipUrl,Y,this.gd),this.bg.attr({x:l,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Lc.setClipUrl,null),delete this._clipRect),M||z){var ue=fo.behavior.drag().on("dragstart",function(){fo.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ue);var K=fo.behavior.drag().on("dragstart",function(){fo.event.sourceEvent.preventDefault(),fo.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(K),z&&this.vbar.on(".drag",null).call(K)}this.setTranslate(t,a)};It.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Lc.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};It.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=fo.event.dx),this.vbar&&(t-=fo.event.dy),this.setTranslate(r,t)};It.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=fo.event.deltaY),this.vbar&&(t+=fo.event.deltaY),this.setTranslate(r,t)};It.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Cm.constrain(fo.event.x,a,n),o=(i-a)/(n-a),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=Cm.constrain(fo.event.y,s,u),c=(f-s)/(u-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};It.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Cm.constrain(r||0,0,a),t=Cm.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Lc.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(Lc.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(Lc.setTranslate,r,t+o*this._vbarTranslateMax)}}});var NB=N((ZFe,FB)=>{"use strict";var Cc=Sr(),v0=ea(),h0=Tr(),Ec=Wr(),Qn=Ee(),Em=Ea(),a3e=_t().arrayEditor,qB=Xa().LINE_SPACING,wr=qm(),n3e=kB();FB.exports=function(r){var t=r._fullLayout,a=Qn.filterVisible(t[wr.name]);function n(v){v0.autoMargin(r,RB(v))}var i=t._menulayer.selectAll("g."+wr.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(wr.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){Cc.select(this).selectAll("g."+wr.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+wr.headerGroupClassName).data(a,i3e);o.enter().append("g").classed(wr.headerGroupClassName,!0);for(var l=Qn.ensureSingle(i,"g",wr.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s{"use strict";var v3e=qm();zB.exports={moduleType:"component",name:v3e.name,layoutAttributes:O4(),supplyLayoutDefaults:TB(),draw:NB()}});var p0=N((JFe,OB)=>{"use strict";OB.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var G4=N(($Fe,UB)=>{"use strict";var BB=fa(),h3e=Sp(),d3e=bt().extendDeepAll,p3e=Xi().overrideAll,y3e=Zv(),HB=_t().templatedArray,Ru=p0(),m3e=HB("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});UB.exports=p3e(HB("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:m3e,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:d3e(h3e({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:y3e.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:BB({})},font:BB({}),activebgcolor:{valType:"color",dflt:Ru.gripBgActiveColor},bgcolor:{valType:"color",dflt:Ru.railBgColor},bordercolor:{valType:"color",dflt:Ru.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Ru.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Ru.tickLength},tickcolor:{valType:"color",dflt:Ru.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Ru.minorTickLength}}),"arraydraw","from-root")});var jB=N((KFe,VB)=>{"use strict";var Dc=Ee(),GB=eo(),YB=G4(),g3e=p0(),b3e=g3e.name,x3e=YB.steps;VB.exports=function(r,t){GB(r,t,{name:b3e,handleItemDefaults:_3e})};function _3e(e,r,t){function a(c,v){return Dc.coerce(e,r,YB,c,v)}for(var n=GB(e,r,{name:"steps",handleItemDefaults:w3e}),i=0,o=0;o{"use strict";var co=Sr(),Dm=ea(),vs=Tr(),vo=Wr(),ei=Ee(),T3e=ei.strTranslate,y0=Ea(),A3e=_t().arrayEditor,Fr=p0(),j4=Xa(),XB=j4.LINE_SPACING,Y4=j4.FROM_TL,V4=j4.FROM_BR;rH.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=M3e(a,r),i=a._infolayer.selectAll("g."+Fr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Fr.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Dm.autoMargin(r,JB(f))}if(i.exit().each(function(){co.select(this).selectAll("g."+Fr.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+Fr.groupClassName).data(n,k3e);l.enter().append("g").classed(Fr.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",T3e(o-Fr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function W4(e,r){var t=e._dims;return t.inputAreaStart+Fr.stepInset+(t.inputAreaLength-2*Fr.stepInset)*Math.min(1,Math.max(0,r))}function ZB(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Fr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Fr.stepInset-2*t.inputAreaStart)))}function R3e(e,r,t){var a=t._dims,n=ei.ensureSingle(e,"rect",Fr.railTouchRectClass,function(i){i.call(QB,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Fr.tickOffset+t.ticklen+a.labelHeight)}).call(vs.fill,t.bgcolor).attr("opacity",0),vo.setTranslate(n,0,a.currentValueTotalHeight)}function P3e(e,r){var t=r._dims,a=t.inputAreaLength-Fr.railInset*2,n=ei.ensureSingle(e,"rect",Fr.railRectClass);n.attr({width:a,height:Fr.railWidth,rx:Fr.railRadius,ry:Fr.railRadius,"shape-rendering":"crispEdges"}).call(vs.stroke,r.bordercolor).call(vs.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),vo.setTranslate(n,Fr.railInset,(t.inputAreaWidth-Fr.railWidth)*.5+t.currentValueTotalHeight)}});var nH=N((eNe,aH)=>{"use strict";var F3e=p0();aH.exports={moduleType:"component",name:F3e.name,layoutAttributes:G4(),supplyLayoutDefaults:jB(),draw:tH()}});var Pm=N((rNe,oH)=>{"use strict";var iH=li();oH.exports={bgcolor:{valType:"color",dflt:iH.background,editType:"plot"},bordercolor:{valType:"color",dflt:iH.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var Z4=N((tNe,lH)=>{"use strict";lH.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Fm=N((aNe,sH)=>{"use strict";sH.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var cH=N(zm=>{"use strict";var N3e=va(),z3e=Ea(),uH=Fm(),I3e=Xa().LINE_SPACING,Nm=uH.name;function fH(e){var r=e&&e[Nm];return r&&r.visible}zm.isVisible=fH;zm.makeData=function(e){for(var r=N3e.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Im=Ee(),vH=_t(),hH=va(),O3e=Pm(),B3e=Z4();dH.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Im.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=vH.newContainer(i,"rangeslider");function s(T,k){return Im.coerce(o,l,O3e,T,k)}var u,f;function c(T,k){return Im.coerce(u,f,B3e,T,k)}var v=s("visible");if(v){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var p=d.cartesian.filter(function(T){return T.substr(0,T.indexOf("y"))===hH.name2id(a)}).map(function(T){return T.substr(T.indexOf("y"),T.length)}),m=Im.simpleMap(p,hH.id2name),y=0;y{"use strict";var H3e=va().list,U3e=ch().getAutoRange,G3e=Fm();yH.exports=function(r){for(var t=H3e(r,"x",!0),a=0;a{"use strict";var Om=Sr(),Y3e=gr(),V3e=ea(),jt=Ee(),Bm=jt.strTranslate,bH=Wr(),hs=Tr(),j3e=Wf(),W3e=qi(),X4=va(),Z3e=pi(),X3e=rs(),Gr=Fm();xH.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=U.max)V=P[G+1];else if(B=U.pmax)V=P[G+1];else if(B0?e.touches[0].clientX:0}function J3e(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Gr.slideBoxClassName).node(),i=e.select("rect."+Gr.grabAreaMinClassName).node(),o=e.select("rect."+Gr.grabAreaMaxClassName).node();function l(){var s=Om.event,u=s.target,f=gH(s),c=f-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=Z3e.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",y),p.addEventListener("mousemove",m),p.addEventListener("mouseup",y);function m(x){var w=gH(x),_=+w-f,b,T,k;switch(u){case n:if(k="ew-resize",v+_>t._length||d+_<0)return;b=v+_,T=d+_;break;case i:if(k="col-resize",v+_>t._length)return;b=v+_,T=d;break;case o:if(k="col-resize",d+_<0)return;b=v,T=d+_;break;default:k="ew-resize",b=c,T=c+_;break}if(T{"use strict";var obe=Ee(),lbe=Pm(),sbe=Z4(),J4=cH();wH.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:obe.extendFlat({},lbe,{yaxis:sbe})}}},layoutAttributes:Pm(),handleDefaults:pH(),calcAutorange:mH(),draw:_H(),isVisible:J4.isVisible,makeData:J4.makeData,autoMarginOpts:J4.autoMarginOpts}});var Hm=N((uNe,MH)=>{"use strict";var ube=fa(),AH=li(),fbe=_t().templatedArray,cbe=fbe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});MH.exports={visible:{valType:"boolean",editType:"plot"},buttons:cbe,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:ube({editType:"plot"}),bgcolor:{valType:"color",dflt:AH.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:AH.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var $4=N((fNe,kH)=>{"use strict";kH.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var LH=N((cNe,qH)=>{"use strict";var Um=Ee(),vbe=Tr(),hbe=_t(),dbe=eo(),SH=Hm(),K4=$4();qH.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=hbe.newContainer(t,"rangeselector");function s(d,p){return Um.coerce(o,l,SH,d,p)}var u=dbe(o,l,{name:"buttons",handleItemDefaults:pbe,calendar:i}),f=s("visible",u.length>0);if(f){var c=ybe(t,a,n);s("x",c[0]),s("y",c[1]),Um.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Um.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",vbe.contrast(v,K4.lightAmount,K4.darkAmount)),s("bordercolor"),s("borderwidth")}};function pbe(e,r,t,a){var n=a.calendar;function i(s,u){return Um.coerce(e,r,SH.buttons,s,u)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(n&&n!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function ybe(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i{"use strict";var mbe=K3(),gbe=Ee().titleCase;CH.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=bbe(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function bbe(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=mbe["utc"+gbe(n)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(a,-o));break;case"todate":var s=i.offset(a,-o);l=e.l2r(+i.ceil(s));break}var u=t[1];return[l,u]}});var OH=N((hNe,IH)=>{"use strict";var Ym=Sr(),xbe=gr(),_be=ea(),DH=Tr(),zH=Wr(),gl=Ee(),RH=gl.strTranslate,Gm=Ea(),wbe=va(),rw=Xa(),PH=rw.LINE_SPACING,FH=rw.FROM_TL,NH=rw.FROM_BR,ew=$4(),Tbe=EH();IH.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(Abe(r),Mbe);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Ym.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(gl.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Ym.select(this),c=Tbe(o,u);u._isActive=kbe(o,u,c),f.call(Q4,l,u),f.call(qbe,l,u,r),f.on("click",function(){r._dragged||xbe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(Q4,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(Q4,l,u)})}),Cbe(r,s,l,o._name,i)})};function Abe(e){for(var r=wbe.list(e,"x",!0),t=[],a=0;a{"use strict";BH.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Hm()}}},layoutAttributes:Hm(),handleDefaults:LH(),draw:OH()}});var Rc=N(tw=>{"use strict";var UH=bt().extendFlat;tw.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",o={x:UH({},t,{}),y:UH({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};tw.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l{"use strict";var Ebe=Ee(),Dbe=Af().counter,Rbe=Rc().attributes,GH=Ca().idRegex,Pbe=_t(),aw={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Dbe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[GH.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[GH.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Rbe({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Vm(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function Fbe(e,r){var t=e.grid||{},a=Vm(r,t,"x"),n=Vm(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(a),l=Array.isArray(n),s=o&&a!==t.xaxes&&l&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(l&&(u=n.length),o&&(f=a.length));var c=Pbe.newContainer(r,"grid");function v(k,M){return Ebe.coerce(t,c,aw,k,M)}var d=v("rows",u),p=v("columns",f);if(!(d*p>1)){delete r.grid;return}if(!i&&!o&&!l){var m=v("pattern")==="independent";m&&(i=!0)}c._hasSubplotGrid=i;var y=v("roworder"),x=y==="top to bottom",w=i?.2:.1,_=i?.3:.1,b,T;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,T=r._splomGridDflt.yside),c._domains={x:YH("x",v,w,b,p),y:YH("y",v,_,T,d,x)}}function YH(e,r,t,a,n,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=l[0],f=(l[1]-u)/(n-o),c=f*(1-o),v=0;v{"use strict";ZH.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var $H=N((gNe,JH)=>{"use strict";var XH=Rr(),zbe=gr(),Ibe=Ee(),Obe=_t(),Bbe=nw();JH.exports=function(e,r,t,a){var n="error_"+a.axis,i=Obe.newContainer(r,n),o=e[n]||{};function l(p,m){return Ibe.coerce(o,i,Bbe,p,m)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=l("visible",s);if(u!==!1){var f=l("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),c||l("valueminus"));var v="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(v,!(o.color||XH(o.thickness)||XH(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",zbe.traceIs(r,"gl3d")?0:4))}}});var iw=N((bNe,QH)=>{"use strict";QH.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],v=+i[f];return!isNaN(c)||!isNaN(v)?[v||0,c||0]:[NaN,NaN]}}else{var o=KH(t,r.value),l=KH(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=o(u);return[f,f]}:function(u){return[l(u),o(u)]}}};function KH(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var tU=N((xNe,rU)=>{"use strict";var ow=Rr(),Hbe=gr(),lw=Or(),Ube=Ee(),Gbe=iw();rU.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var aU=Sr(),ds=Rr(),Ybe=Wr(),Vbe=Dn();nU.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,v=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(w){return w.id});var m=Vbe.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(f=[]);var y=aU.select(this).selectAll("g.errorbar").data(f,p);if(y.exit().remove(),!!f.length){v.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var x=y.enter().append("g").classed("errorbar",!0);s&&x.style("opacity",0).transition().duration(n.duration).style("opacity",1),Ybe.setClipUrl(y,a.layerClipId,r),y.each(function(w){var _=aU.select(this),b=jbe(w,o,l);if(!(m&&!w.vis)){var T,k=_.select("path.yerror");if(d.visible&&ds(b.x)&&ds(b.yh)&&ds(b.ys)){var M=d.width;T="M"+(b.x-M)+","+b.yh+"h"+2*M+"m-"+M+",0V"+b.ys,b.noYS||(T+="m-"+M+",0h"+2*M),i=!k.size(),i?k=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",T)}else k.remove();var S=_.select("path.xerror");if(v.visible&&ds(b.y)&&ds(b.xh)&&ds(b.xs)){var E=(v.copy_ystyle?d:v).width;T="M"+b.xh+","+(b.y-E)+"v"+2*E+"m0,-"+E+"H"+b.xs,b.noXS||(T+="m0,-"+E+"v"+2*E),i=!S.size(),i?S=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(S=S.transition().duration(n.duration).ease(n.easing)),S.attr("d",T)}else S.remove()}})}})};function jbe(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),ds(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),ds(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var sU=N((wNe,lU)=>{"use strict";var Wbe=Sr(),oU=Tr();lU.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=Wbe.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(oU.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(oU.stroke,i.color)})}});var cU=N((TNe,fU)=>{"use strict";var m0=Ee(),uU=Xi().overrideAll,g0=nw(),Pu={error_x:m0.extendFlat({},g0),error_y:m0.extendFlat({},g0)};delete Pu.error_x.copy_zstyle;delete Pu.error_y.copy_zstyle;delete Pu.error_y.copy_ystyle;var b0={error_x:m0.extendFlat({},g0),error_y:m0.extendFlat({},g0),error_z:m0.extendFlat({},g0)};delete b0.error_x.copy_ystyle;delete b0.error_y.copy_ystyle;delete b0.error_z.copy_ystyle;delete b0.error_z.copy_zstyle;fU.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Pu,bar:Pu,histogram:Pu,scatter3d:uU(b0,"calc","nested"),scattergl:uU(Pu,"calc","nested")}},supplyDefaults:$H(),calc:tU(),makeComputeError:iw(),plot:iU(),style:sU(),hoverInfo:Zbe};function Zbe(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var hU=N((ANe,vU)=>{"use strict";vU.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var xU=N((MNe,bU)=>{"use strict";var ps=Sr(),sw=kn(),Wm=ea(),dU=gr(),bl=Or(),jm=pi(),Li=Ee(),po=Li.strTranslate,gU=bt().extendFlat,uw=rs(),ho=Wr(),fw=Tr(),Xbe=Wf(),Jbe=Ea(),$be=vi().flipScale,Kbe=b4(),Qbe=x4(),exe=hi(),cw=Xa(),pU=cw.LINE_SPACING,yU=cw.FROM_TL,mU=cw.FROM_BR,zt=hU().cn;function rxe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+zt.colorbar).data(txe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(zt.colorbar,!0),t.each(function(a){var n=ps.select(this);Li.ensureSingle(n,"rect",zt.cbbg),Li.ensureSingle(n,"g",zt.cbfills),Li.ensureSingle(n,"g",zt.cblines),Li.ensureSingle(n,"g",zt.cbaxis,function(o){o.classed(zt.crisp,!0)}),Li.ensureSingle(n,"g",zt.cbtitleunshift,function(o){o.append("g").classed(zt.cbtitle,!0)}),Li.ensureSingle(n,"rect",zt.cboutline);var i=axe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&nxe(n,a,e)}),t.exit().each(function(a){Wm.autoMargin(e,a._id)}).remove(),t.order()}function txe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(_){return gU(_,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof l.calc=="function"?l.calc(e,o,n):(n._fillgradient=i.reversescale?$be(i.colorscale):i.colorscale,n._zrange=[i[l.min],i[l.max]])}for(var f=0;f1){var Q=Math.pow(10,Math.floor(Math.log(j)/Math.LN10));oe*=Q*Li.roundUp(j/Q,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(se.tick0=0)}se.dtick=oe}se.domain=a?[K+p/b.h,K+Y-p/b.h]:[K+d/b.w,K+Y-d/b.w],se.setScale(),e.attr("transform",po(Math.round(b.l),Math.round(b.t)));var W=e.select("."+zt.cbtitleunshift).attr("transform",po(-Math.round(b.l),-Math.round(b.t))),pe=se.ticklabelposition,be=se.title.font.size,me=e.select("."+zt.cbaxis),Fe,ze=0,Re=0;function Ne(Be,le){var Te={propContainer:se,propName:r._propPrefix+"title",traceIndex:r._traceIndex,_meta:r._meta,placeholder:_._dfltTitle.colorbar,containerGroup:e.select("."+zt.cbtitle)},Se=Be.charAt(0)==="h"?Be.substr(1):"h"+Be;e.selectAll("."+Se+",."+Se+"-math-group").remove(),Xbe.draw(t,Be,gU(Te,le||{}))}function Ue(){if(a&&ve||!a&&!ve){var Be,le;S==="top"&&(Be=d+b.l+J*m,le=p+b.t+Z*(1-K-Y)+3+be*.75),S==="bottom"&&(Be=d+b.l+J*m,le=p+b.t+Z*(1-K)-3-be*.25),S==="right"&&(le=p+b.t+Z*y+3+be*.75,Be=d+b.l+J*K),Ne(se._id+"title",{attributes:{x:Be,y:le,"text-anchor":a?"start":"middle"}})}}function He(){if(a&&!ve||!a&&ve){var Be=se.position||0,le=se._offset+se._length/2,Te,Se;if(S==="right")Se=le,Te=b.l+J*Be+10+be*(se.showticklabels?1:.5);else if(Te=le,S==="bottom"&&(Se=b.t+Z*Be+10+(pe.indexOf("inside")===-1?se.tickfont.size:0)+(se.ticks!=="intside"&&r.ticklen||0)),S==="top"){var nr=M.text.split("
").length;Se=b.t+Z*Be+10-V-pU*be*nr}Ne((a?"h":"v")+se._id+"title",{avoid:{selection:ps.select(t).selectAll("g."+se._id+"tick"),side:S,offsetTop:a?0:b.t,offsetLeft:a?b.l:0,maxShift:a?_.width:_.height},attributes:{x:Te,y:Se,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function Pe(){if(!a&&!ve||a&&ve){var Be=e.select("."+zt.cbtitle),le=Be.select("text"),Te=[-s/2,s/2],Se=Be.select(".h"+se._id+"title-math-group").node(),nr=15.6;le.node()&&(nr=parseInt(le.node().style.fontSize,10)*pU);var Ke;if(Se?(Ke=ho.bBox(Se),Re=Ke.width,ze=Ke.height,ze>nr&&(Te[1]-=(ze-nr)/2)):le.node()&&!le.classed(zt.jsPlaceholder)&&(Ke=ho.bBox(le.node()),Re=Ke.width,ze=Ke.height),a){if(ze){if(ze+=5,S==="top")se.domain[1]-=ze/b.h,Te[1]*=-1;else{se.domain[0]+=ze/b.h;var Le=Jbe.lineCount(le);Te[1]+=(1-Le)*nr}Be.attr("transform",po(Te[0],Te[1])),se.setScale()}}else Re&&(S==="right"&&(se.domain[0]+=(Re+be/2)/b.w),Be.attr("transform",po(Te[0],Te[1])),se.setScale())}e.selectAll("."+zt.cbfills+",."+zt.cblines).attr("transform",a?po(0,Math.round(b.h*(1-se.domain[1]))):po(Math.round(b.w*se.domain[0]),0)),me.attr("transform",a?po(0,Math.round(-b.t)):po(Math.round(-b.l),0));var Ce=e.select("."+zt.cbfills).selectAll("rect."+zt.cbfill).attr("style","").data(O);Ce.enter().append("rect").classed(zt.cbfill,!0).attr("style",""),Ce.exit().remove();var Ye=E.map(se.c2p).map(Math.round).sort(function(cr,lr){return cr-lr});Ce.each(function(cr,lr){var Ie=[lr===0?E[0]:(O[lr]+O[lr-1])/2,lr===O.length-1?E[1]:(O[lr]+O[lr+1])/2].map(se.c2p).map(Math.round);a&&(Ie[1]=Li.constrain(Ie[1]+(Ie[1]>Ie[0])?1:-1,Ye[0],Ye[1]));var ne=ps.select(this).attr(a?"x":"y",re).attr(a?"y":"x",ps.min(Ie)).attr(a?"width":"height",Math.max(V,2)).attr(a?"height":"width",Math.max(ps.max(Ie)-ps.min(Ie),2));if(r._fillgradient)ho.gradient(ne,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var de=P(cr).replace("e-","");ne.attr("fill",sw(de).toHexString())}});var Xe=e.select("."+zt.cblines).selectAll("path."+zt.cbline).data(k.color&&k.width?B:[]);Xe.enter().append("path").classed(zt.cbline,!0),Xe.exit().remove(),Xe.each(function(cr){var lr=re,Ie=Math.round(se.c2p(cr))+k.width/2%1;ps.select(this).attr("d","M"+(a?lr+","+Ie:Ie+","+lr)+(a?"h":"v")+V).call(ho.lineGroupStyle,k.width,D(cr),k.dash)}),me.selectAll("g."+se._id+"tick,path").remove();var Ve=re+V+(s||0)/2-(r.ticks==="outside"?1:0),Ge=bl.calcTicks(se),$e=bl.getTickSigns(se)[2];return bl.drawTicks(t,se,{vals:se.ticks==="inside"?bl.clipEnds(se,Ge):Ge,layer:me,path:bl.makeTickPath(se,Ve,$e),transFn:bl.makeTransTickFn(se)}),bl.drawLabels(t,se,{vals:Ge,layer:me,transFn:bl.makeTransTickLabelFn(se),labelFns:bl.makeLabelFns(se,Ve)})}function Oe(){var Be,le=V+s/2;pe.indexOf("inside")===-1&&(Be=ho.bBox(me.node()),le+=a?Be.width:Be.height),Fe=W.select("text");var Te=0,Se=a&&S==="top",nr=!a&&S==="right",Ke=0;if(Fe.node()&&!Fe.classed(zt.jsPlaceholder)){var Le,Ce=W.select(".h"+se._id+"title-math-group").node();Ce&&(a&&ve||!a&&!ve)?(Be=ho.bBox(Ce),Te=Be.width,Le=Be.height):(Be=ho.bBox(W.node()),Te=Be.right-b.l-(a?re:ye),Le=Be.bottom-b.t-(a?ye:re),!a&&S==="top"&&(le+=Be.height,Ke=Be.height)),nr&&(Fe.attr("transform",po(Te/2+be/2,0)),Te*=2),le=Math.max(le,a?Te:Le)}var Ye=(a?d:p)*2+le+u+s/2,Xe=0;!a&&M.text&&v==="bottom"&&y<=0&&(Xe=Ye/2,Ye+=Xe,Ke+=Xe),_._hColorbarMoveTitle=Xe,_._hColorbarMoveCBTitle=Ke;var Ve=u+s,Ge=(a?re:ye)-Ve/2-(a?d:0),$e=(a?ye:re)-(a?U:p+Ke-Xe);e.select("."+zt.cbbg).attr("x",Ge).attr("y",$e).attr(a?"width":"height",Math.max(Ye-Xe,2)).attr(a?"height":"width",Math.max(U+Ve,2)).call(fw.fill,f).call(fw.stroke,r.bordercolor).style("stroke-width",u);var cr=nr?Math.max(Te-10,0):0;e.selectAll("."+zt.cboutline).attr("x",(a?re:ye+d)+cr).attr("y",(a?ye+p-U:re)+(Se?ze:0)).attr(a?"width":"height",Math.max(V,2)).attr(a?"height":"width",Math.max(U-(a?2*p+ze:2*d+cr),2)).call(fw.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var lr=a?fe*Ye:0,Ie=a?0:(1-ie)*Ye-Ke;if(lr=w?b.l-lr:-lr,Ie=x?b.t-Ie:-Ie,e.attr("transform",po(lr,Ie)),!a&&(u||sw(f).getAlpha()&&!sw.equals(_.paper_bgcolor,f))){var ne=me.selectAll("text"),de=ne[0].length,De=e.select("."+zt.cbbg).node(),qe=ho.bBox(De),ar=ho.getTranslate(e),hr=2;ne.each(function(Wa,ga){var Wt=0,Na=de-1;if(ga===Wt||ga===Na){var br=ho.bBox(this),pt=ho.getTranslate(this),Nr;if(ga===Na){var ut=br.right+pt.x,Rt=qe.right+ar.x+ye-u-hr+m;Nr=Rt-ut,Nr>0&&(Nr=0)}else if(ga===Wt){var Qr=br.left+pt.x,ct=qe.left+ar.x+ye+u+hr;Nr=ct-Qr,Nr<0&&(Nr=0)}Nr&&(de<3?this.setAttribute("transform","translate("+Nr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ur={},Ar=yU[c],jr=mU[c],Vr=yU[v],zr=mU[v],Et=Ye-V;a?(i==="pixels"?(ur.y=y,ur.t=U*Vr,ur.b=U*zr):(ur.t=ur.b=0,ur.yt=y+n*Vr,ur.yb=y-n*zr),l==="pixels"?(ur.x=m,ur.l=Ye*Ar,ur.r=Ye*jr):(ur.l=Et*Ar,ur.r=Et*jr,ur.xl=m-o*Ar,ur.xr=m+o*jr)):(i==="pixels"?(ur.x=m,ur.l=U*Ar,ur.r=U*jr):(ur.l=ur.r=0,ur.xl=m+n*Ar,ur.xr=m-n*jr),l==="pixels"?(ur.y=1-y,ur.t=Ye*Vr,ur.b=Ye*zr):(ur.t=Et*Vr,ur.b=Et*zr,ur.yt=y-o*Vr,ur.yb=y+o*zr));var Dt=r.y<.5?"b":"t",ma=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var St={r:_.width-Ge-lr,l:Ge+ur.r,b:_.height-$e-Ie,t:$e+ur.b};w&&x?Wm.autoMargin(t,r._id,ur):w?t._fullLayout._reservedMargin[r._id][Dt]=St[Dt]:x||a?t._fullLayout._reservedMargin[r._id][ma]=St[ma]:t._fullLayout._reservedMargin[r._id][Dt]=St[Dt]}return Li.syncOrAsync([Wm.previousPromises,Ue,Pe,He,Wm.previousPromises,Oe],t)}function nxe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;jm.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),uw(e)},moveFn:function(u,f){e.attr("transform",o+po(u,f)),l=jm.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=jm.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=jm.getCursor(l,s,r.xanchor,r.yanchor);uw(e,c)},doneFn:function(){if(uw(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?dU.call("_guiRestyle",t,u,r._traceIndex):dU.call("_guiRelayout",t,u)}}})}function ixe(e,r,t){var a=r._levels,n=[],i=[],o,l,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=a.start+l*u,!(u>0?o>=s:o<=s));l++)o>f&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";_U.exports={moduleType:"component",name:"colorbar",attributes:r1(),supplyDefaults:vx(),draw:xU().draw,hasColorbar:ix()}});var AU=N((SNe,TU)=>{"use strict";TU.exports={moduleType:"component",name:"legend",layoutAttributes:o5(),supplyLayoutDefaults:u5(),draw:_5(),style:m5()}});var kU=N((qNe,MU)=>{"use strict";MU.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var qU=N((LNe,SU)=>{"use strict";SU.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var hw=N((CNe,DU)=>{"use strict";var lxe=gr(),EU=Ee(),vw=EU.extendFlat,LU=EU.extendDeep;function CU(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function sxe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}DU.exports=function(r,t){var a,n=r.data,i=r.layout,o=LU([],n),l=LU({},i,CU(t.tileClass)),s=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var u=Object.keys(l);for(a=0;a{"use strict";var uxe=Qs().EventEmitter,fxe=gr(),cxe=Ee(),RU=yl(),vxe=hw(),hxe=Qy(),dxe=em();function pxe(e,r){var t=new uxe,a=vxe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=RU.getDelay(n._fullLayout);setTimeout(function(){var s=hxe(n),u=document.createElement("canvas");u.id=cxe.randstr(),t=dxe({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},l)}var o=RU.getRedrawFunc(n);return fxe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}PU.exports=pxe});var IU=N((DNe,zU)=>{"use strict";var NU=yl(),yxe={getDelay:NU.getDelay,getRedrawFunc:NU.getRedrawFunc,clone:hw(),toSVG:Qy(),svgToImg:em(),toImage:FU(),downloadImage:O_()};zU.exports=yxe});var BU=N(xl=>{"use strict";xl.version=tp().version;GA();RS();var mxe=gr(),x0=xl.register=mxe.register,pw=rz(),OU=Object.keys(pw);for(Zm=0;Zm{"use strict";HU.exports=BU()});var Jm=N((FNe,GU)=>{"use strict";GU.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Nu=N((NNe,WU)=>{"use strict";var Ht=wi(),YU=Qi().axisHoverFormat,gxe=La().hovertemplateAttrs,bxe=La().texttemplateAttrs,jU=ko(),xxe=fa(),VU=Jm(),_xe=si().pattern,Fu=bt().extendFlat,yw=xxe({editType:"calc",arrayOk:!0,colorEditType:"style"}),wxe=Ht.marker,Txe=wxe.line,Axe=Fu({},Txe.width,{dflt:0}),Mxe=Fu({width:Axe,editType:"calc"},jU("marker.line")),kxe=Fu({line:Mxe,editType:"calc"},jU("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:_xe,cornerradius:{valType:"any",editType:"calc"}});WU.exports={x:Ht.x,x0:Ht.x0,dx:Ht.dx,y:Ht.y,y0:Ht.y0,dy:Ht.dy,xperiod:Ht.xperiod,yperiod:Ht.yperiod,xperiod0:Ht.xperiod0,yperiod0:Ht.yperiod0,xperiodalignment:Ht.xperiodalignment,yperiodalignment:Ht.yperiodalignment,xhoverformat:YU("x"),yhoverformat:YU("y"),text:Ht.text,texttemplate:bxe({editType:"plot"},{keys:VU.eventDataKeys}),hovertext:Ht.hovertext,hovertemplate:gxe({},{keys:VU.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Fu({},yw,{}),insidetextfont:Fu({},yw,{}),outsidetextfont:Fu({},yw,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Fu({},Ht.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:kxe,offsetgroup:Ht.offsetgroup,alignmentgroup:Ht.alignmentgroup,selected:{marker:{opacity:Ht.selected.marker.opacity,color:Ht.selected.marker.color,editType:"style"},textfont:Ht.selected.textfont,editType:"style"},unselected:{marker:{opacity:Ht.unselected.marker.opacity,color:Ht.unselected.marker.color,editType:"style"},textfont:Ht.unselected.textfont,editType:"style"},zorder:Ht.zorder}});var $m=N((zNe,ZU)=>{"use strict";ZU.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var mw=N((INe,$U)=>{"use strict";var Sxe=Tr(),XU=vi().hasColorscale,JU=ul(),qxe=Ee().coercePattern;$U.exports=function(r,t,a,n,i){var o=a("marker.color",n),l=XU(r,"marker");l&&JU(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",Sxe.defaultLine),XU(r,"marker.line")&&JU(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),qxe(a,"marker.pattern",o,l),a("selected.marker.color"),a("unselected.marker.color")}});var zu=N((ONe,aG)=>{"use strict";var KU=Rr(),Fc=Ee(),QU=Tr(),Lxe=gr(),Cxe=U_(),Exe=dc(),Dxe=mw(),Rxe=r0(),eG=Nu(),Km=Fc.coerceFont;function Pxe(e,r,t,a){function n(u,f){return Fc.coerce(e,r,eG,u,f)}var i=Cxe(e,r,a,n);if(!i){r.visible=!1;return}Exe(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate");var o=n("textposition");tG(e,r,a,n,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),Dxe(e,r,n,t,a);var l=(r.marker.line||{}).color,s=Lxe.getComponentMethod("errorbars","supplyDefaults");s(e,r,l||QU.defaultLine,{axis:"y"}),s(e,r,l||QU.defaultLine,{axis:"x",inherit:"y"}),Fc.coerceSelectionMarkerOpacity(r,n)}function Fxe(e,r){var t,a;function n(l,s){return Fc.coerce(a._input,a,eG,l,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&KU(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function tG(e,r,t,a,n,i){i=i||{};var o=i.moduleHasSelected!==!1,l=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,c=i.moduleHasInsideanchor!==!1,v=!!i.hasPathbar,d=Array.isArray(n)||n==="auto",p=d||n==="inside",m=d||n==="outside";if(p||m){var y=Km(a,"textfont",t.font),x=Fc.extendFlat({},y),w=e.textfont&&e.textfont.color,_=!w;if(_&&delete x.color,Km(a,"insidetextfont",x),v){var b=Fc.extendFlat({},y);_&&delete b.color,Km(a,"pathbar.textfont",b)}m&&Km(a,"outsidetextfont",y),o&&a("selected.textfont.color"),l&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate")}p&&c&&a("insidetextanchor")}aG.exports={supplyDefaults:Pxe,crossTraceDefaults:Fxe,handleText:tG,validateCornerradius:rG}});var gw=N((BNe,nG)=>{"use strict";var Nxe=gr(),zxe=Or(),Ixe=Ee(),Oxe=$m(),Bxe=zu().validateCornerradius;nG.exports=function(e,r,t){function a(m,y){return Ixe.coerce(e,r,Oxe,m,y)}for(var n=!1,i=!1,o=!1,l={},s=a("barmode"),u=s==="group",f=0;f0&&!l[v]&&(o=!0),l[v]=!0),c.visible&&c.type==="histogram"){var d=zxe.getFromId({_fullLayout:r},c[c.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!o?0:.2),a("bargroupgap");var p=a("barcornerradius");r.barcornerradius=Bxe(p)}});var Qm=N((HNe,iG)=>{"use strict";var Nc=Ee();iG.exports=function(r,t){for(var a=0;a{"use strict";var oG=Or(),lG=yc(),sG=vi().hasColorscale,uG=lh(),Hxe=Qm(),Uxe=sm();fG.exports=function(r,t){var a=oG.getFromId(r,t.xaxis||"x"),n=oG.getFromId(r,t.yaxis||"y"),i,o,l,s,u,f,c={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",c),l=n.makeCalcdata(t,"y"),s=lG(t,n,"y",l),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),l=a.makeCalcdata(t,"x"),s=lG(t,a,"x",l),u=!!t.xperiodalignment,f="x"),o=s.vals;for(var v=Math.min(o.length,i.length),d=new Array(v),p=0;p{"use strict";var Gxe=Sr(),Yxe=Ee();function Vxe(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",o;switch(t){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}r.selectAll(o).each(function(l){var s=l.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=Gxe.select(this).select("text");Yxe.setTransormAndDisplay(u,s)}})}}function jxe(e,r,t){if(t.uniformtext.mode){var a=vG(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var Zxe=Rr(),Xxe=kn(),dG=Ee().isArrayOrTypedArray;Iu.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};Iu.coerceNumber=function(e,r,t){if(Zxe(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};Iu.coerceColor=function(e,r,t){return Xxe(r).isValid()?r:t!==void 0?t:e.dflt};Iu.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Iu.getValue=function(e,r){var t;return dG(e)?r{"use strict";var w0=Sr(),Jxe=Tr(),T0=Wr(),pG=Ee(),yG=gr(),mG=_0().resizeText,bw=Nu(),$xe=bw.textfont,Kxe=bw.insidetextfont,Qxe=bw.outsidetextfont,Ga=eg();function e5e(e){var r=w0.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");mG(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&w0.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=w0.select(this),o=n[0].trace;gG(i,o,e)}),yG.getComponentMethod("errorbars","style")(r)}function gG(e,r,t){T0.pointStyle(e.selectAll("path"),r,t),bG(e,r,t)}function bG(e,r,t){e.selectAll("text").each(function(a){var n=w0.select(this),i=pG.ensureUniformFontSize(t,xG(n,a,r,t));T0.font(n,i)})}function r5e(e,r,t){var a=r[0].trace;a.selectedpoints?t5e(t,a,e):(gG(t,a,e),yG.getComponentMethod("errorbars","style")(t))}function t5e(e,r,t){T0.selectedPointStyle(e.selectAll("path"),r),a5e(e.selectAll("text"),r,t)}function a5e(e,r,t){e.each(function(a){var n=w0.select(this),i;if(a.selected){i=pG.ensureUniformFontSize(t,xG(n,a,r,t));var o=r.selected.textfont&&r.selected.textfont.color;o&&(i.color=o),T0.font(n,i)}else T0.selectedTextStyle(n,r)})}function xG(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var o=AG(r,t);i=wG(t,r.i,n,o)}else e.classed("bartext-outside")&&(i=TG(t,r.i,n));return i}function _G(e,r,t){return xw($xe,e.textfont,r,t)}function wG(e,r,t,a){var n=_G(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:Jxe.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),xw(Kxe,e.insidetextfont,r,n)}function TG(e,r,t){var a=_G(e,r,t);return xw(Qxe,e.outsidetextfont,r,a)}function xw(e,r,t,a){r=r||{};var n=Ga.getValue(r.family,t),i=Ga.getValue(r.size,t),o=Ga.getValue(r.color,t),l=Ga.getValue(r.weight,t),s=Ga.getValue(r.style,t),u=Ga.getValue(r.variant,t),f=Ga.getValue(r.textcase,t),c=Ga.getValue(r.lineposition,t),v=Ga.getValue(r.shadow,t);return{family:Ga.coerceString(e.family,n,a.family),size:Ga.coerceNumber(e.size,i,a.size),color:Ga.coerceColor(e.color,o,a.color),weight:Ga.coerceString(e.weight,l,a.weight),style:Ga.coerceString(e.style,s,a.style),variant:Ga.coerceString(e.variant,u,a.variant),textcase:Ga.coerceString(e.variant,f,a.textcase),lineposition:Ga.coerceString(e.variant,c,a.lineposition),shadow:Ga.coerceString(e.variant,v,a.shadow)}}function AG(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}MG.exports={style:e5e,styleTextPoints:bG,styleOnSelect:r5e,getInsideTextFont:wG,getOutsideTextFont:TG,getBarColor:AG,resizeText:mG}});var Tw=N((jNe,RG)=>{"use strict";var rg=Sr(),tg=Rr(),Ra=Ee(),n5e=Ea(),i5e=Tr(),ys=Wr(),o5e=gr(),ag=Or().tickText,kG=_0(),l5e=kG.recordMinTextSize,s5e=kG.clearMinTextSize,_w=zc(),Ic=eg(),u5e=Jm(),SG=Nu(),f5e=SG.text,c5e=SG.textposition,v5e=qo().appendArrayPointValue,cn=u5e.TEXTPAD;function h5e(e){return e.id}function d5e(e){if(e.ids)return h5e}function ww(e){return(e>0)-(e<0)}function Ho(e,r){return e0}function y5e(e,r,t,a,n,i){var o=r.xaxis,l=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},s5e("bar",s));var f=Ra.makeTraceGroups(a,t,"trace bars").each(function(c){var v=rg.select(this),d=c[0].trace,p=c[0].t,m=d.type==="waterfall",y=d.type==="funnel",x=d.type==="histogram",w=d.type==="bar",_=w||y,b=0;m&&d.connector.visible&&d.connector.mode==="between"&&(b=d.connector.line.width/2);var T=d.orientation==="h",k=LG(n),M=Ra.ensureSingle(v,"g","points"),S=d5e(d),E=M.selectAll("g.point").data(Ra.identity,S);E.enter().append("g").classed("point",!0),E.exit().remove(),E.each(function(P,R){var z=rg.select(this),O=p5e(P,o,l,T),B=O[0][0],V=O[0][1],G=O[1][0],U=O[1][1],Y=(T?V-B:U-G)===0;Y&&_&&Ic.getLineWidth(d,P)&&(Y=!1),Y||(Y=!tg(B)||!tg(V)||!tg(G)||!tg(U)),P.isBlank=Y,Y&&(T?V=B:U=G),b&&!Y&&(T?(B-=Ho(B,V)*b,V+=Ho(B,V)*b):(G-=Ho(G,U)*b,U+=Ho(G,U)*b));var J,Z;if(d.type==="waterfall"){if(!Y){var re=d[P.dir].marker;J=re.line.width,Z=re.color}}else J=Ic.getLineWidth(d,P),Z=P.mc||d.marker.color;function fe(le){var Te=rg.round(J/2%1,2);return n.gap===0&&n.groupgap===0?rg.round(Math.round(le)-Te,2):le}function ie(le,Te,Se){return Se&&le===Te?le:Math.abs(le-Te)>=2?fe(le):le>Te?Math.ceil(le):Math.floor(le)}var ue=i5e.opacity(Z),K=ue<1||J>.01?fe:ie;e._context.staticPlot||(B=K(B,V,T),V=K(V,B,T),G=K(G,U,!T),U=K(U,G,!T));var ye=T?o.c2p:l.c2p,se;P.s0>0?se=P._sMax:P.s0<0?se=P._sMin:se=P.s1>0?P._sMax:P._sMin;function ve(le,Te){if(!le)return 0;var Se=Math.abs(T?U-G:V-B),nr=Math.abs(T?V-B:U-G),Ke=K(Math.abs(ye(se,!0)-ye(0,!0))),Le=P.hasB?Math.min(Se/2,nr/2):Math.min(Se/2,Ke),Ce;if(Te==="%"){var Ye=Math.min(50,le);Ce=Se*(Ye/100)}else Ce=le;return K(Math.max(Math.min(Ce,Le),0))}var oe=w||x?ve(p.cornerradiusvalue,p.cornerradiusform):0,ce,j,Q="M"+B+","+G+"V"+U+"H"+V+"V"+G+"Z",W=0;if(oe&&P.s){var pe=ww(P.s0)===0||ww(P.s)===ww(P.s0)?P.s1:P.s0;if(W=K(P.hasB?0:Math.abs(ye(se,!0)-ye(pe,!0))),W0?Math.sqrt(W*(2*oe-W)):0,Ne=be>0?Math.max:Math.min;ce="M"+B+","+G+"V"+(U-ze*me)+"H"+Ne(V-(oe-W)*be,B)+"A "+oe+","+oe+" 0 0 "+Fe+" "+V+","+(U-oe*me-Re)+"V"+(G+oe*me+Re)+"A "+oe+","+oe+" 0 0 "+Fe+" "+Ne(V-(oe-W)*be,B)+","+(G+ze*me)+"Z"}else if(P.hasB)ce="M"+(B+oe*be)+","+G+"A "+oe+","+oe+" 0 0 "+Fe+" "+B+","+(G+oe*me)+"V"+(U-oe*me)+"A "+oe+","+oe+" 0 0 "+Fe+" "+(B+oe*be)+","+U+"H"+(V-oe*be)+"A "+oe+","+oe+" 0 0 "+Fe+" "+V+","+(U-oe*me)+"V"+(G+oe*me)+"A "+oe+","+oe+" 0 0 "+Fe+" "+(V-oe*be)+","+G+"Z";else{j=Math.abs(U-G)+W;var Ue=j0?Math.sqrt(W*(2*oe-W)):0,Pe=me>0?Math.max:Math.min;ce="M"+(B+Ue*be)+","+G+"V"+Pe(U-(oe-W)*me,G)+"A "+oe+","+oe+" 0 0 "+Fe+" "+(B+oe*be-He)+","+U+"H"+(V-oe*be+He)+"A "+oe+","+oe+" 0 0 "+Fe+" "+(V-Ue*be)+","+Pe(U-(oe-W)*me,G)+"V"+G+"Z"}}else ce=Q}else ce=Q;var Oe=qG(Ra.ensureSingle(z,"path"),s,n,i);if(Oe.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((V-B)*(U-G))||Y&&e._context.staticPlot?"M0,0Z":ce).call(ys.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&k){var Be=ys.makePointStyleFns(d);ys.singlePointStyle(P,Oe,d,Be,e)}m5e(e,r,z,c,R,B,V,G,U,oe,W,n,i),r.layerClipId&&ys.hideOutsideRangePoint(P,z.select("text"),o,l,d.xcalendar,d.ycalendar)});var D=d.cliponaxis===!1;ys.setClipUrl(v,D?null:r.layerClipId,e)});o5e.getComponentMethod("errorbars","plot")(e,f,r,n)}function m5e(e,r,t,a,n,i,o,l,s,u,f,c,v){var d=r.xaxis,p=r.yaxis,m=e._fullLayout,y;function x(j,Q,W){var pe=Ra.ensureSingle(j,"text").text(Q).attr({class:"bartext bartext-"+y,"text-anchor":"middle","data-notex":1}).call(ys.font,W).call(n5e.convertToTspans,e);return pe}var w=a[0].trace,_=w.orientation==="h",b=x5e(m,a,n,d,p);y=_5e(w,n);var T=c.mode==="stack"||c.mode==="relative",k=a[n],M=!T||k._outmost,S=k.hasB,E=u&&u-f>cn;if(!b||y==="none"||(k.isBlank||i===o||l===s)&&(y==="auto"||y==="inside")){t.select("text").remove();return}var D=m.font,P=_w.getBarColor(a[n],w),R=_w.getInsideTextFont(w,n,D,P),z=_w.getOutsideTextFont(w,n,D),O=w.insidetextanchor||"end",B=t.datum();_?d.type==="log"&&B.s0<=0&&(d.range[0]0&&fe>0,K;E?S?K=Ou(U-2*u,Y,re,fe,_)||Ou(U,Y-2*u,re,fe,_):_?K=Ou(U-(u-f),Y,re,fe,_)||Ou(U,Y-2*(u-f),re,fe,_):K=Ou(U,Y-(u-f),re,fe,_)||Ou(U-2*(u-f),Y,re,fe,_):K=Ou(U,Y,re,fe,_),ue&&K?y="inside":(y="outside",J.remove(),J=null)}else y="inside";if(!J){ie=Ra.ensureUniformFontSize(e,y==="outside"?z:R),J=x(t,b,ie);var ye=J.attr("transform");if(J.attr("transform",""),Z=ys.bBox(J.node()),re=Z.width,fe=Z.height,J.attr("transform",ye),re<=0||fe<=0){J.remove();return}}var se=w.textangle,ve,oe;y==="outside"?(oe=w.constraintext==="both"||w.constraintext==="outside",ve=b5e(i,o,l,s,Z,{isHorizontal:_,constrained:oe,angle:se})):(oe=w.constraintext==="both"||w.constraintext==="inside",ve=DG(i,o,l,s,Z,{isHorizontal:_,constrained:oe,angle:se,anchor:O,hasB:S,r:u,overhead:f})),ve.fontSize=ie.size,l5e(w.type==="histogram"?"bar":w.type,ve,m),k.transform=ve;var ce=qG(J,m,c,v);Ra.setTransormAndDisplay(ce,ve)}function Ou(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,o=t<=r&&a<=e,l=n?e>=t*(r/a):r>=a*(e/t);return i||o||l}function CG(e){return e==="auto"?0:e}function EG(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function DG(e,r,t,a,n,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",c=u==="start",v=i.leftToRight||0,d=(v+1)/2,p=1-d,m=i.hasB,y=i.r,x=i.overhead,w=n.width,_=n.height,b=Math.abs(r-e),T=Math.abs(a-t),k=b>2*cn&&T>2*cn?cn:0;b-=2*k,T-=2*k;var M=CG(s);s==="auto"&&!(w<=b&&_<=T)&&(w>b||_>T)&&(!(w>T||_>b)||w<_!=bcn){var P=g5e(e,r,t,a,S,y,x,o,m);E=P.scale,D=P.pad}else E=1,l&&(E=Math.min(1,b/S.x,T/S.y)),D=0;var R=n.left*p+n.right*d,z=(n.top+n.bottom)/2,O=(e+cn)*p+(r-cn)*d,B=(t+a)/2,V=0,G=0;if(c||f){var U=(o?S.x:S.y)/2;y&&(f||m)&&(k+=D);var Y=o?Ho(e,r):Ho(t,a);o?c?(O=e+Y*k,V=-Y*U):(O=r-Y*k,V=Y*U):c?(B=t+Y*k,G=-Y*U):(B=a-Y*k,G=Y*U)}return{textX:R,textY:z,targetX:O,targetY:B,anchorX:V,anchorY:G,scale:E,rotate:M}}function g5e(e,r,t,a,n,i,o,l,s){var u=Math.max(0,Math.abs(r-e)-2*cn),f=Math.max(0,Math.abs(a-t)-2*cn),c=i-cn,v=o?c-Math.sqrt(c*c-(c-o)*(c-o)):c,d=s?c*2:l?c-o:2*v,p=s?c*2:l?2*v:c-o,m,y,x,w,_;return n.y/n.x>=f/(u-d)?w=f/n.y:n.y/n.x<=(f-p)/u?w=u/n.x:!s&&l?(m=n.x*n.x+n.y*n.y/4,y=-2*n.x*(u-c)-n.y*(f/2-c),x=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,w=(-y+Math.sqrt(y*y-4*m*x))/(2*m)):s?(m=(n.x*n.x+n.y*n.y)/4,y=-n.x*(u/2-c)-n.y*(f/2-c),x=(u/2-c)*(u/2-c)+(f/2-c)*(f/2-c)-c*c,w=(-y+Math.sqrt(y*y-4*m*x))/(2*m)):(m=n.x*n.x/4+n.y*n.y,y=-n.x*(u/2-c)-2*n.y*(f-c),x=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,w=(-y+Math.sqrt(y*y-4*m*x))/(2*m)),w=Math.min(1,w),l?_=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*w)/2)*(c-(f-n.y*w)/2)))-o):_=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*w)/2)*(c-(u-n.x*w)/2)))-o),{scale:w,pad:_}}function b5e(e,r,t,a,n,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,c=Math.abs(r-e),v=Math.abs(a-t),d;o?d=v>2*cn?cn:0:d=c>2*cn?cn:0;var p=1;l&&(p=o?Math.min(1,v/f):Math.min(1,c/u));var m=CG(s),y=EG(n,m),x=(o?y.x:y.y)/2,w=(n.left+n.right)/2,_=(n.top+n.bottom)/2,b=(e+r)/2,T=(t+a)/2,k=0,M=0,S=o?Ho(r,e):Ho(t,a);return o?(b=r-S*d,k=S*x):(T=a+S*d,M=-S*x),{textX:w,textY:_,targetX:b,targetY:T,anchorX:k,anchorY:M,scale:p,rotate:m}}function x5e(e,r,t,a,n){var i=r[0].trace,o=i.texttemplate,l;return o?l=w5e(e,r,t,a,n):i.textinfo?l=T5e(r,t,a,n):l=Ic.getValue(i.text,t),Ic.coerceString(f5e,l)}function _5e(e,r){var t=Ic.getValue(e.textposition,r);return Ic.coerceEnumerated(c5e,t)}function w5e(e,r,t,a,n){var i=r[0].trace,o=Ra.castOption(i,t,"texttemplate");if(!o)return"";var l=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",c,v,d,p;f?(c="y",v=n,d="x",p=a):(c="x",v=a,d="y",p=n);function m(k){return ag(v,v.c2l(k),!0).text}function y(k){return ag(p,p.c2l(k),!0).text}var x=r[t],w={};w.label=x.p,w.labelLabel=w[c+"Label"]=m(x.p);var _=Ra.castOption(i,x.i,"text");(_===0||_)&&(w.text=_),w.value=x.s,w.valueLabel=w[d+"Label"]=y(x.s);var b={};v5e(b,i,x.i),(l||b.x===void 0)&&(b.x=f?w.value:w.label),(l||b.y===void 0)&&(b.y=f?w.label:w.value),(l||b.xLabel===void 0)&&(b.xLabel=f?w.valueLabel:w.labelLabel),(l||b.yLabel===void 0)&&(b.yLabel=f?w.labelLabel:w.valueLabel),s&&(w.delta=+x.rawS||x.s,w.deltaLabel=y(w.delta),w.final=x.v,w.finalLabel=y(w.final),w.initial=w.final-w.delta,w.initialLabel=y(w.initial)),u&&(w.value=x.s,w.valueLabel=y(w.value),w.percentInitial=x.begR,w.percentInitialLabel=Ra.formatPercent(x.begR),w.percentPrevious=x.difR,w.percentPreviousLabel=Ra.formatPercent(x.difR),w.percentTotal=x.sumR,w.percenTotalLabel=Ra.formatPercent(x.sumR));var T=Ra.castOption(i,x.i,"customdata");return T&&(w.customdata=T),Ra.texttemplateString(o,w,e._d3locale,b,w,i._meta||{})}function T5e(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",o=n.type==="waterfall",l=n.type==="funnel";function s(T){var k=i?a:t;return ag(k,T,!0).text}function u(T){var k=i?t:a;return ag(k,+T,!0).text}var f=n.textinfo,c=e[r],v=f.split("+"),d=[],p,m=function(T){return v.indexOf(T)!==-1};if(m("label")&&d.push(s(e[r].p)),m("text")&&(p=Ra.castOption(n,c.i,"text"),(p===0||p)&&d.push(p)),o){var y=+c.rawS||c.s,x=c.v,w=x-y;m("initial")&&d.push(u(w)),m("delta")&&d.push(u(y)),m("final")&&d.push(u(x))}if(l){m("value")&&d.push(u(c.s));var _=0;m("percent initial")&&_++,m("percent previous")&&_++,m("percent total")&&_++;var b=_>1;m("percent initial")&&(p=Ra.formatPercent(c.begR),b&&(p+=" of initial"),d.push(p)),m("percent previous")&&(p=Ra.formatPercent(c.difR),b&&(p+=" of previous"),d.push(p)),m("percent total")&&(p=Ra.formatPercent(c.sumR),b&&(p+=" of total"),d.push(p))}return d.join("
")}RG.exports={plot:y5e,toMoveInsideBar:DG}});var Mw=N((WNe,zG)=>{"use strict";var A0=Pn(),A5e=gr(),PG=Tr(),M5e=Ee().fillText,k5e=eg().getLineWidth,Aw=Or().hoverLabelText,S5e=Ft().BADNUM;function q5e(e,r,t,a,n){var i=FG(e,r,t,a,n);if(i){var o=i.cd,l=o[0].trace,s=o[i.index];return i.color=NG(l,s),A5e.getComponentMethod("errorbars","hoverInfo")(s,l,i),[i]}}function FG(e,r,t,a,n){var i=e.cd,o=i[0].trace,l=i[0].t,s=a==="closest",u=o.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,v,d,p,m,y,x,w;o.orientation==="h"?(v=t,d=r,p="y",m="x",y=B,x=R):(v=r,d=t,p="x",m="y",x=B,y=R);var _=o[p+"period"],b=s||_;function T(K){return M(K,-1)}function k(K){return M(K,1)}function M(K,ye){var se=K.w;return K[p]+ye*se/2}function S(K){return K[p+"End"]-K[p+"Start"]}var E=s?T:_?function(K){return K.p-S(K)/2}:function(K){return Math.min(T(K),K.p-l.bardelta/2)},D=s?k:_?function(K){return K.p+S(K)/2}:function(K){return Math.max(k(K),K.p+l.bardelta/2)};function P(K,ye,se){return n.finiteRange&&(se=0),A0.inbox(K-v,ye-v,se+Math.min(1,Math.abs(ye-K)/w)-1)}function R(K){return P(E(K),D(K),f)}function z(K){return P(T(K),k(K),c)}function O(K){var ye=K[m];if(u){var se=Math.abs(K.rawS)||0;d>0?ye+=se:d<0&&(ye-=se)}return ye}function B(K){var ye=d,se=K.b,ve=O(K);return A0.inbox(se-ye,ve-ye,f+(ve-ye)/(ve-se)-1)}function V(K){var ye=d,se=K.b,ve=O(K);return A0.inbox(se-ye,ve-ye,c+(ve-ye)/(ve-se)-1)}var G=e[p+"a"],U=e[m+"a"];w=Math.abs(G.r2c(G.range[1])-G.r2c(G.range[0]));function Y(K){return(y(K)+x(K))/2}var J=A0.getDistanceFunction(a,y,x,Y);if(A0.getClosest(i,J,e),e.index!==!1&&i[e.index].p!==S5e){b||(E=function(K){return Math.min(T(K),K.p-l.bargroupwidth/2)},D=function(K){return Math.max(k(K),K.p+l.bargroupwidth/2)});var Z=e.index,re=i[Z],fe=o.base?re.b+re.s:re.s;e[m+"0"]=e[m+"1"]=U.c2p(re[m],!0),e[m+"LabelVal"]=fe;var ie=l.extents[l.extents.round(re.p)];e[p+"0"]=G.c2p(s?E(re):ie[0],!0),e[p+"1"]=G.c2p(s?D(re):ie[1],!0);var ue=re.orig_p!==void 0;return e[p+"LabelVal"]=ue?re.orig_p:re.p,e.labelLabel=Aw(G,e[p+"LabelVal"],o[p+"hoverformat"]),e.valueLabel=Aw(U,e[m+"LabelVal"],o[m+"hoverformat"]),e.baseLabel=Aw(U,re.b,o[m+"hoverformat"]),e.spikeDistance=(V(re)+z(re))/2,e[p+"Spike"]=G.c2p(re.p,!0),M5e(re,o,e),e.hovertemplate=o.hovertemplate,e}}function NG(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=k5e(e,r);if(PG.opacity(t))return t;if(PG.opacity(a)&&n)return a}zG.exports={hoverPoints:q5e,hoverOnBars:FG,getTraceColor:NG}});var OG=N((ZNe,IG)=>{"use strict";IG.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var kw=N((XNe,BG)=>{"use strict";BG.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=a[0].trace,l=o.type==="funnel",s=o.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";HG.exports={attributes:Nu(),layoutAttributes:$m(),supplyDefaults:zu().supplyDefaults,crossTraceDefaults:zu().crossTraceDefaults,supplyLayoutDefaults:gw(),calc:cG(),crossTraceCalc:vm().crossTraceCalc,colorbar:o0(),arraysToCalcdata:Qm(),plot:Tw().plot,style:zc().style,styleOnSelect:zc().styleOnSelect,hoverPoints:Mw().hoverPoints,eventData:OG(),selectPoints:kw(),moduleType:"trace",name:"bar",basePlotModule:qi(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var YG=N(($Ne,GG)=>{"use strict";GG.exports=UG()});var ng=N((KNe,ZG)=>{"use strict";var C5e=Dy(),Ci=wi(),VG=Nu(),E5e=li(),jG=Qi().axisHoverFormat,D5e=La().hovertemplateAttrs,_l=bt().extendFlat,Oc=Ci.marker,WG=Oc.line;ZG.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:Ci.xperiod,yperiod:Ci.yperiod,xperiod0:Ci.xperiod0,yperiod0:Ci.yperiod0,xperiodalignment:Ci.xperiodalignment,yperiodalignment:Ci.yperiodalignment,xhoverformat:jG("x"),yhoverformat:jG("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:_l({},Oc.symbol,{arrayOk:!1,editType:"plot"}),opacity:_l({},Oc.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:_l({},Oc.angle,{arrayOk:!1,editType:"calc"}),size:_l({},Oc.size,{arrayOk:!1,editType:"calc"}),color:_l({},Oc.color,{arrayOk:!1,editType:"style"}),line:{color:_l({},WG.color,{arrayOk:!1,dflt:E5e.defaultLine,editType:"style"}),width:_l({},WG.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:C5e(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:VG.offsetgroup,alignmentgroup:VG.alignmentgroup,selected:{marker:Ci.selected.marker,editType:"style"},unselected:{marker:Ci.unselected.marker,editType:"style"},text:_l({},Ci.text,{}),hovertext:_l({},Ci.hovertext,{}),hovertemplate:D5e({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:Ci.zorder}});var ig=N((QNe,XG)=>{"use strict";XG.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var k0=N((eze,QG)=>{"use strict";var Ei=Ee(),R5e=gr(),P5e=Tr(),F5e=dc(),N5e=r0(),JG=w1(),M0=ng();function z5e(e,r,t,a){function n(p,m){return Ei.coerce(e,r,M0,p,m)}if($G(e,r,n,a),r.visible!==!1){F5e(e,r,a,n),n("xhoverformat"),n("yhoverformat");var i=r._hasPreCompStats;i&&(n("lowerfence"),n("upperfence")),n("line.color",(e.marker||{}).color||t),n("line.width"),n("fillcolor",P5e.addOpacity(r.line.color,.5));var o=!1;if(i){var l=n("mean"),s=n("sd");l&&l.length&&(o=!0,s&&s.length&&(o="sd"))}n("whiskerwidth");var u=n("sizemode"),f;u==="quartiles"&&(f=n("boxmean",o)),n("showwhiskers",u==="quartiles"),(u==="sd"||f==="sd")&&n("sdmultiple"),n("width"),n("quartilemethod");var c=!1;if(i){var v=n("notchspan");v&&v.length&&(c=!0)}else Ei.validate(e.notchwidth,M0.notchwidth)&&(c=!0);var d=n("notched",c);d&&n("notchwidth"),KG(e,r,n,{prefix:"box"}),n("zorder")}}function $G(e,r,t,a){function n(D){var P=0;return D&&D.length&&(P+=1,Ei.isArrayOrTypedArray(D[0])&&D[0].length&&(P+=1)),P}function i(D){return Ei.validate(e[D],M0[D])}var o=t("y"),l=t("x"),s;if(r.type==="box"){var u=t("q1"),f=t("median"),c=t("q3");r._hasPreCompStats=u&&u.length&&f&&f.length&&c&&c.length,s=Math.min(Ei.minRowLength(u),Ei.minRowLength(f),Ei.minRowLength(c))}var v=n(o),d=n(l),p=v&&Ei.minRowLength(o),m=d&&Ei.minRowLength(l),y=a.calendar,x={autotypenumbers:a.autotypenumbers},w,_;if(r._hasPreCompStats)switch(String(d)+String(v)){case"00":var b=i("x0")||i("dx"),T=i("y0")||i("dy");T&&!b?w="h":w="v",_=s;break;case"10":w="v",_=Math.min(s,m);break;case"20":w="h",_=Math.min(s,l.length);break;case"01":w="h",_=Math.min(s,p);break;case"02":w="v",_=Math.min(s,o.length);break;case"12":w="v",_=Math.min(s,m,o.length);break;case"21":w="h",_=Math.min(s,l.length,p);break;case"11":_=0;break;case"22":var k=!1,M;for(M=0;M0?(w="v",d>0?_=Math.min(m,p):_=Math.min(p)):d>0?(w="h",_=Math.min(m)):_=0;if(!_){r.visible=!1;return}r._length=_;var S=t("orientation",w);r._hasPreCompStats?S==="v"&&d===0?(t("x0",0),t("dx",1)):S==="h"&&v===0&&(t("y0",0),t("dy",1)):S==="v"&&d===0?t("x0"):S==="h"&&v===0&&t("y0");var E=R5e.getComponentMethod("calendars","handleTraceDefaults");E(e,r,["x","y"],a)}function KG(e,r,t,a){var n=a.prefix,i=Ei.coerce2(e,r,M0,"marker.outliercolor"),o=t("marker.line.outliercolor"),l="outliers";r._hasPreCompStats?l="all":(i||o)&&(l="suspectedoutliers");var s=t(n+"points",l);s?(t("jitter",s==="all"?.3:0),t("pointpos",s==="all"?-1.5:0),t("marker.symbol"),t("marker.opacity"),t("marker.size"),t("marker.angle"),t("marker.color",r.line.color),t("marker.line.color"),t("marker.line.width"),s==="suspectedoutliers"&&(t("marker.line.outliercolor",r.marker.color),t("marker.line.outlierwidth")),t("selected.marker.color"),t("unselected.marker.color"),t("selected.marker.size"),t("unselected.marker.size"),t("text"),t("hovertext")):delete r.marker;var u=t("hoveron");(u==="all"||u.indexOf("points")!==-1)&&t("hovertemplate"),Ei.coerceSelectionMarkerOpacity(r,t)}function I5e(e,r){var t,a;function n(s){return Ei.coerce(a._input,a,M0,s)}for(var i=0;i{"use strict";var O5e=gr(),B5e=Ee(),H5e=ig();function eY(e,r,t,a,n){for(var i=n+"Layout",o=!1,l=0;l{"use strict";var Lw=Rr(),og=Or(),G5e=yc(),ra=Ee(),ri=Ft().BADNUM,wl=ra._;fY.exports=function(r,t){var a=r._fullLayout,n=og.getFromId(r,t.xaxis||"x"),i=og.getFromId(r,t.yaxis||"y"),o=[],l=t.type==="violin"?"_numViolins":"_numBoxes",s,u,f,c,v,d,p;t.orientation==="h"?(f=n,c="x",v=i,d="y",p=!!t.yperiodalignment):(f=i,c="y",v=n,d="x",p=!!t.xperiodalignment);var m=Y5e(t,d,v,a[l]),y=m[0],x=m[1],w=ra.distinctVals(y,v),_=w.vals,b=w.minDiff/2,T,k,M,S,E,D,P=(t.boxpoints||t.points)==="all"?ra.identity:function(Fe){return Fe.vT.uf};if(t._hasPreCompStats){var R=t[c],z=function(Fe){return f.d2c((t[Fe]||[])[s])},O=1/0,B=-1/0;for(s=0;s=T.q1&&T.q3>=T.med){var G=z("lowerfence");T.lf=G!==ri&&G<=T.q1?G:iY(T,M,S);var U=z("upperfence");T.uf=U!==ri&&U>=T.q3?U:oY(T,M,S);var Y=z("mean");T.mean=Y!==ri?Y:S?ra.mean(M,S):(T.q1+T.q3)/2;var J=z("sd");T.sd=Y!==ri&&J>=0?J:S?ra.stdev(M,S,T.mean):T.q3-T.q1,T.lo=lY(T),T.uo=sY(T);var Z=z("notchspan");Z=Z!==ri&&Z>0?Z:uY(T,S),T.ln=T.med-Z,T.un=T.med+Z;var re=T.lf,fe=T.uf;t.boxpoints&&M.length&&(re=Math.min(re,M[0]),fe=Math.max(fe,M[S-1])),t.notched&&(re=Math.min(re,T.ln),fe=Math.max(fe,T.un)),T.min=re,T.max=fe}else{ra.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+T.q1,"median = "+T.med,"q3 = "+T.q3].join(` -`));var ie;T.med!==ri?ie=T.med:T.q1!==ri?T.q3!==ri?ie=(T.q1+T.q3)/2:ie=T.q1:T.q3!==ri?ie=T.q3:ie=0,T.med=ie,T.q1=T.q3=ie,T.lf=T.uf=ie,T.mean=T.sd=ie,T.ln=T.un=ie,T.min=T.max=ie}O=Math.min(O,T.min),B=Math.max(B,T.max),T.pts2=k.filter(P),o.push(T)}}t._extremes[f._id]=og.findExtremes(f,[O,B],{padded:!0})}else{var ue=f.makeCalcdata(t,c),K=V5e(_,b),ye=_.length,se=j5e(ye);for(s=0;s=0&&ve0){if(T={},T.pos=T[d]=_[s],k=T.pts=se[s].sort(aY),M=T[c]=k.map(nY),S=M.length,T.min=M[0],T.max=M[S-1],T.mean=ra.mean(M,S),T.sd=ra.stdev(M,S,T.mean)*t.sdmultiple,T.med=ra.interp(M,.5),S%2&&(Q||W)){var pe,be;Q?(pe=M.slice(0,S/2),be=M.slice(S/2+1)):W&&(pe=M.slice(0,S/2+1),be=M.slice(S/2)),T.q1=ra.interp(pe,.5),T.q3=ra.interp(be,.5)}else T.q1=ra.interp(M,.25),T.q3=ra.interp(M,.75);T.lf=iY(T,M,S),T.uf=oY(T,M,S),T.lo=lY(T),T.uo=sY(T);var me=uY(T,S);T.ln=T.med-me,T.un=T.med+me,oe=Math.min(oe,T.ln),ce=Math.max(ce,T.un),T.pts2=k.filter(P),o.push(T)}t.notched&&ra.isTypedArray(ue)&&(ue=Array.from(ue)),t._extremes[f._id]=og.findExtremes(f,t.notched?ue.concat([oe,ce]):ue,{padded:!0})}return W5e(o,t),o.length>0?(o[0].t={num:a[l],dPos:b,posLetter:d,valLetter:c,labels:{med:wl(r,"median:"),min:wl(r,"min:"),q1:wl(r,"q1:"),q3:wl(r,"q3:"),max:wl(r,"max:"),mean:t.boxmean==="sd"||t.sizemode==="sd"?wl(r,"mean \xB1 \u03C3:").replace("\u03C3",t.sdmultiple===1?"\u03C3":t.sdmultiple+"\u03C3"):wl(r,"mean:"),lf:wl(r,"lower fence:"),uf:wl(r,"upper fence:")}},a[l]++,o):[{t:{empty:!0}}]};function Y5e(e,r,t,a){var n=r in e,i=r+"0"in e,o="d"+r in e;if(n||i&&o){var l=t.makeCalcdata(e,r),s=G5e(e,t,r,l).vals;return[s,l]}var u;i?u=e[r+"0"]:"name"in e&&(t.type==="category"||Lw(e.name)&&["linear","log"].indexOf(t.type)!==-1||ra.isDateTime(e.name)&&t.type==="date")?u=e.name:u=a;for(var f=t.type==="multicategory"?t.r2c_just_indices(u):t.d2c(u,0,e[r+"calendar"]),c=e._length,v=new Array(c),d=0;d{"use strict";var cY=Or(),Z5e=Ee(),X5e=Tu().getAxisGroup,vY=["v","h"];function J5e(e,r){for(var t=e.calcdata,a=r.xaxis,n=r.yaxis,i=0;i1,w=1-i[e+"gap"],_=1-i[e+"groupgap"];for(s=0;s0;if(M==="positive"?(U=S*(k?1:.5),Z=J,Y=Z=D):M==="negative"?(U=Z=D,Y=S*(k?1:.5),re=J):(U=Y=S,Z=re=J),se){var ve=b.pointpos,oe=b.jitter,ce=b.marker.size/2,j=0;ve+oe>=0&&(j=J*(ve+oe),j>U?(ye=!0,ue=ce,fe=j):j>Z&&(ue=ce,fe=U)),j<=U&&(fe=U);var Q=0;ve-oe<=0&&(Q=-J*(ve-oe),Q>Y?(ye=!0,K=ce,ie=Q):Q>re&&(K=ce,ie=Y)),Q<=Y&&(ie=Y)}else fe=U,ie=Y;var W=new Array(f.length);for(u=0;u{"use strict";var Bc=Sr(),Bu=Ee(),$5e=Wr(),pY=5,K5e=.01;function Q5e(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,o=r.yaxis;Bu.makeTraceGroups(a,t,"trace boxes").each(function(l){var s=Bc.select(this),u=l[0],f=u.t,c=u.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){s.remove();return}var v,d;c.orientation==="h"?(v=o,d=i):(v=i,d=o),yY(s,{pos:v,val:d},c,f,n),mY(s,{x:i,y:o},c,f),gY(s,{pos:v,val:d},c,f)})}function yY(e,r,t,a,n){var i=t.orientation==="h",o=r.val,l=r.pos,s=!!l.rangebreaks,u=a.bPos,f=a.wdPos||0,c=a.bPosPxOffset||0,v=t.whiskerwidth||0,d=t.showwhiskers!==!1,p=t.notched||!1,m=p?1-2*t.notchwidth:1,y,x;Array.isArray(a.bdPos)?(y=a.bdPos[0],x=a.bdPos[1]):(y=a.bdPos,x=a.bdPos);var w=e.selectAll("path.box").data(t.type!=="violin"||t.box.visible?Bu.identity:[]);w.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),w.exit().remove(),w.each(function(_){if(_.empty)return Bc.select(this).attr("d","M0,0Z");var b=l.c2l(_.pos+u,!0),T=l.l2p(b-y)+c,k=l.l2p(b+x)+c,M=s?(T+k)/2:l.l2p(b)+c,S=t.whiskerwidth,E=s?T*S+(1-S)*M:l.l2p(b-f)+c,D=s?k*S+(1-S)*M:l.l2p(b+f)+c,P=l.l2p(b-y*m)+c,R=l.l2p(b+x*m)+c,z=t.sizemode==="sd",O=o.c2p(z?_.mean-_.sd:_.q1,!0),B=z?o.c2p(_.mean+_.sd,!0):o.c2p(_.q3,!0),V=Bu.constrain(z?o.c2p(_.mean,!0):o.c2p(_.med,!0),Math.min(O,B)+1,Math.max(O,B)-1),G=_.lf===void 0||t.boxpoints===!1||z,U=o.c2p(G?_.min:_.lf,!0),Y=o.c2p(G?_.max:_.uf,!0),J=o.c2p(_.ln,!0),Z=o.c2p(_.un,!0);i?Bc.select(this).attr("d","M"+V+","+P+"V"+R+"M"+O+","+T+"V"+k+(p?"H"+J+"L"+V+","+R+"L"+Z+","+k:"")+"H"+B+"V"+T+(p?"H"+Z+"L"+V+","+P+"L"+J+","+T:"")+"Z"+(d?"M"+O+","+M+"H"+U+"M"+B+","+M+"H"+Y+(v===0?"":"M"+U+","+E+"V"+D+"M"+Y+","+E+"V"+D):"")):Bc.select(this).attr("d","M"+P+","+V+"H"+R+"M"+T+","+O+"H"+k+(p?"V"+J+"L"+R+","+V+"L"+k+","+Z:"")+"V"+B+"H"+T+(p?"V"+Z+"L"+P+","+V+"L"+T+","+J:"")+"Z"+(d?"M"+M+","+O+"V"+U+"M"+M+","+B+"V"+Y+(v===0?"":"M"+E+","+U+"H"+D+"M"+E+","+Y+"H"+D):""))})}function mY(e,r,t,a){var n=r.x,i=r.y,o=a.bdPos,l=a.bPos,s=t.boxpoints||t.points;Bu.seedPseudoRandom();var u=function(v){return v.forEach(function(d){d.t=a,d.trace=t}),v},f=e.selectAll("g.points").data(s?u:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(v){var d,p=v.pts2,m=Math.max((v.max-v.min)/10,v.q3-v.q1),y=m*1e-9,x=m*K5e,w=[],_=0,b;if(t.jitter){if(m===0)for(_=1,w=new Array(p.length),d=0;dv.lo&&(D.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call($5e.translatePoints,n,i)}function gY(e,r,t,a){var n=r.val,i=r.pos,o=!!i.rangebreaks,l=a.bPos,s=a.bPosPxOffset||0,u=t.boxmean||(t.meanline||{}).visible,f,c;Array.isArray(a.bdPos)?(f=a.bdPos[0],c=a.bdPos[1]):(f=a.bdPos,c=a.bdPos);var v=e.selectAll("path.mean").data(t.type==="box"&&t.boxmean||t.type==="violin"&&t.box.visible&&t.meanline.visible?Bu.identity:[]);v.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),v.exit().remove(),v.each(function(d){var p=i.c2l(d.pos+l,!0),m=i.l2p(p-f)+s,y=i.l2p(p+c)+s,x=o?(m+y)/2:i.l2p(p)+s,w=n.c2p(d.mean,!0),_=n.c2p(d.mean-d.sd,!0),b=n.c2p(d.mean+d.sd,!0);t.orientation==="h"?Bc.select(this).attr("d","M"+w+","+m+"V"+y+(u==="sd"?"m0,0L"+_+","+x+"L"+w+","+m+"L"+b+","+x+"Z":"")):Bc.select(this).attr("d","M"+m+","+w+"H"+y+(u==="sd"?"m0,0L"+x+","+_+"L"+m+","+w+"L"+x+","+b+"Z":""))})}bY.exports={plot:Q5e,plotBoxAndWhiskers:yY,plotPoints:mY,plotBoxMean:gY}});var Nw=N((ize,xY)=>{"use strict";var Rw=Sr(),Pw=Tr(),Fw=Wr();function e_e(e,r,t){var a=t||Rw.select(e).selectAll("g.trace.boxes");a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=Rw.select(this),o=n[0].trace,l=o.line.width;function s(c,v,d,p){c.style("stroke-width",v+"px").call(Pw.stroke,d).call(Pw.fill,p)}var u=i.selectAll("path.box");if(o.type==="candlestick")u.each(function(c){if(!c.empty){var v=Rw.select(this),d=o[c.dir];s(v,d.line.width,d.line.color,d.fillcolor),v.style("opacity",o.selectedpoints&&!c.selected?.3:1)}});else{s(u,l,o.line.color,o.fillcolor),i.selectAll("path.mean").style({"stroke-width":l,"stroke-dasharray":2*l+"px,"+l+"px"}).call(Pw.stroke,o.line.color);var f=i.selectAll("path.point");Fw.pointStyle(f,o,e)}})}function r_e(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?Fw.selectedPointStyle(n,a):Fw.pointStyle(n,a,e)}xY.exports={style:e_e,styleOnSelect:r_e}});var Iw=N((oze,AY)=>{"use strict";var t_e=Or(),zw=Ee(),ms=Pn(),_Y=Tr(),a_e=zw.fillText;function n_e(e,r,t,a){var n=e.cd,i=n[0].trace,o=i.hoveron,l=[],s;return o.indexOf("boxes")!==-1&&(l=l.concat(wY(e,r,t,a))),o.indexOf("points")!==-1&&(s=TY(e,r,t)),a==="closest"?s?[s]:l:(s&&l.push(s),l)}function wY(e,r,t,a){var n=e.cd,i=e.xa,o=e.ya,l=n[0].trace,s=n[0].t,u=l.type==="violin",f,c,v,d,p,m,y,x,w,_,b,T=s.bdPos,k,M,S=s.wHover,E=function(ce){return v.c2l(ce.pos)+s.bPos-v.c2l(m)};u&&l.side!=="both"?(l.side==="positive"&&(w=function(ce){var j=E(ce);return ms.inbox(j,j+S,_)},k=T,M=0),l.side==="negative"&&(w=function(ce){var j=E(ce);return ms.inbox(j-S,j,_)},k=0,M=T)):(w=function(ce){var j=E(ce);return ms.inbox(j-S,j+S,_)},k=M=T);var D;u?D=function(ce){return ms.inbox(ce.span[0]-p,ce.span[1]-p,_)}:D=function(ce){return ms.inbox(ce.min-p,ce.max-p,_)},l.orientation==="h"?(p=r,m=t,y=D,x=w,f="y",v=o,c="x",d=i):(p=t,m=r,y=w,x=D,f="x",v=i,c="y",d=o);var P=Math.min(1,T/Math.abs(v.r2c(v.range[1])-v.r2c(v.range[0])));_=e.maxHoverDistance-P,b=e.maxSpikeDistance-P;function R(ce){return(y(ce)+x(ce))/2}var z=ms.getDistanceFunction(a,y,x,R);if(ms.getClosest(n,z,e),e.index===!1)return[];var O=n[e.index],B=l.line.color,V=(l.marker||{}).color;_Y.opacity(B)&&l.line.width?e.color=B:_Y.opacity(V)&&l.boxpoints?e.color=V:e.color=l.fillcolor,e[f+"0"]=v.c2p(O.pos+s.bPos-M,!0),e[f+"1"]=v.c2p(O.pos+s.bPos+k,!0),e[f+"LabelVal"]=O.orig_p!==void 0?O.orig_p:O.pos;var G=f+"Spike";e.spikeDistance=R(O)*b/_,e[G]=v.c2p(O.pos,!0);var U=l.boxmean||l.sizemode==="sd"||(l.meanline||{}).visible,Y=l.boxpoints||l.points,J=Y&&U?["max","uf","q3","med","mean","q1","lf","min"]:Y&&!U?["max","uf","q3","med","q1","lf","min"]:!Y&&U?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],Z=d.range[1]{"use strict";MY.exports=function(r,t){return t.hoverOnBox&&(r.hoverOnBox=t.hoverOnBox),"xVal"in t&&(r.x=t.xVal),"yVal"in t&&(r.y=t.yVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var Ow=N((sze,SY)=>{"use strict";SY.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l,s;if(t===!1)for(l=0;l{"use strict";qY.exports={attributes:ng(),layoutAttributes:ig(),supplyDefaults:k0().supplyDefaults,crossTraceDefaults:k0().crossTraceDefaults,supplyLayoutDefaults:Sw().supplyLayoutDefaults,calc:Cw(),crossTraceCalc:Ew().crossTraceCalc,plot:Dw().plot,style:Nw().style,styleOnSelect:Nw().styleOnSelect,hoverPoints:Iw().hoverPoints,eventData:kY(),selectPoints:Ow(),moduleType:"trace",name:"box",basePlotModule:qi(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var EY=N((fze,CY)=>{"use strict";CY.exports=LY()});var S0=N((cze,DY)=>{"use strict";var ti=wi(),i_e=mn(),o_e=fa(),Bw=Qi().axisHoverFormat,l_e=La().hovertemplateAttrs,s_e=La().texttemplateAttrs,u_e=ko(),Bn=bt().extendFlat;DY.exports=Bn({z:{valType:"data_array",editType:"calc"},x:Bn({},ti.x,{impliedEdits:{xtype:"array"}}),x0:Bn({},ti.x0,{impliedEdits:{xtype:"scaled"}}),dx:Bn({},ti.dx,{impliedEdits:{xtype:"scaled"}}),y:Bn({},ti.y,{impliedEdits:{ytype:"array"}}),y0:Bn({},ti.y0,{impliedEdits:{ytype:"scaled"}}),dy:Bn({},ti.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:Bn({},ti.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:Bn({},ti.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:Bn({},ti.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:Bn({},ti.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:Bn({},ti.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:Bn({},ti.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:Bw("x"),yhoverformat:Bw("y"),zhoverformat:Bw("z",1),hovertemplate:l_e(),texttemplate:s_e({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:o_e({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Bn({},i_e.showlegend,{dflt:!1}),zorder:ti.zorder},u_e("",{cLetter:"z",autoColorDflt:!1}))});var Hw=N((vze,PY)=>{"use strict";var f_e=Rr(),lg=Ee(),c_e=gr();PY.exports=function(r,t,a,n,i,o){var l=a("z");i=i||"x",o=o||"y";var s,u;if(l===void 0||!l.length)return 0;if(lg.isArray1D(l)){s=a(i),u=a(o);var f=lg.minRowLength(s),c=lg.minRowLength(u);if(f===0||c===0)return 0;t._length=Math.min(f,c,l.length)}else{if(s=RY(i,a),u=RY(o,a),!v_e(l))return 0;a("transpose"),t._length=null}var v=c_e.getComponentMethod("calendars","handleTraceDefaults");return v(r,t,[i,o],n),!0};function RY(e,r){var t=r(e),a=t?r(e+"type","array"):"scaled";return a==="scaled"&&(r(e+"0"),r("d"+e)),t}function v_e(e){for(var r=!0,t=!1,a=!1,n,i=0;i0&&(t=!0);for(var o=0;o{"use strict";var FY=Ee();NY.exports=function(r,t){r("texttemplate");var a=FY.extendFlat({},t.font,{color:"auto",size:"auto"});FY.coerceFont(r,"textfont",a)}});var Uw=N((dze,zY)=>{"use strict";zY.exports=function(r,t,a){var n=a("zsmooth");n===!1&&(a("xgap"),a("ygap")),a("zhoverformat")}});var BY=N((pze,OY)=>{"use strict";var IY=Ee(),h_e=Hw(),d_e=q0(),p_e=dc(),y_e=Uw(),m_e=ul(),g_e=S0();OY.exports=function(r,t,a,n){function i(l,s){return IY.coerce(r,t,g_e,l,s)}var o=h_e(r,t,i,n);if(!o){t.visible=!1;return}p_e(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hovertemplate"),d_e(i,n),y_e(r,t,i,n),i("hoverongaps"),i("connectgaps",IY.isArray1D(t.z)&&t.zsmooth!==!1),m_e(r,t,n,i,{prefix:"",cLetter:"z"}),i("zorder")}});var Gw=N((yze,HY)=>{"use strict";var Hc=Rr();HY.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return Hc(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return Hc(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if(Hc(n))if(n=Number(n),Hc(t[e])){if(t[e]>n){var i=n-t[e];return t[e]=n,i}}else return t[e]=n,n;return 0},max:function(e,r,t,a){var n=a[r];if(Hc(n))if(n=Number(n),Hc(t[e])){if(t[e]{"use strict";UY.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n{"use strict";GY.exports=function(r,t){for(var a=r.length,n=0,i=0;i{"use strict";var Uc=Ft(),Hu=Uc.ONEAVGYEAR,YY=Uc.ONEAVGMONTH,ug=Uc.ONEDAY,VY=Uc.ONEHOUR,jY=Uc.ONEMIN,WY=Uc.ONESEC,ZY=Or().tickIncrement;$Y.exports=function(r,t,a,n,i){var o=-1.1*t,l=-.1*t,s=r-l,u=a[0],f=a[1],c=Math.min(sg(u+l,u+s,n,i),sg(f+l,f+s,n,i)),v=Math.min(sg(u+o,u+l,n,i),sg(f+o,f+l,n,i)),d,p;if(c>v&&vug){var m=d===Hu?1:6,y=d===Hu?"M12":"M1";return function(x,w){var _=n.c2d(x,Hu,i),b=_.indexOf("-",m);b>0&&(_=_.substr(0,b));var T=n.d2c(_,0,i);if(TWY?e>ug?e>Hu*1.1?Hu:e>YY*1.1?YY:ug:e>VY?VY:e>jY?jY:WY:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function b_e(e,r,t,a,n,i){if(a&&e>ug){var o=JY(r,n,i),l=JY(t,n,i),s=e===Hu?0:1;return o[s]!==l[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function JY(e,r,t){var a=r.c2d(e,Hu,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var Xw=N((xze,eV)=>{"use strict";var Ww=Rr(),vn=Ee(),KY=gr(),Di=Or(),x_e=Qm(),QY=Gw(),__e=Yw(),w_e=Vw(),T_e=jw();function A_e(e,r){var t=[],a=[],n=r.orientation==="h",i=Di.getFromId(e,n?r.yaxis:r.xaxis),o=n?"y":"x",l={x:"y",y:"x"}[o],s=r[o+"calendar"],u=r.cumulative,f,c=Zw(e,r,i,o),v=c[0],d=c[1],p=typeof v.size=="string",m=[],y=p?m:v,x=[],w=[],_=[],b=0,T=r.histnorm,k=r.histfunc,M=T.indexOf("density")!==-1,S,E,D;u.enabled&&M&&(T=T.replace(/ ?density$/,""),M=!1);var P=k==="max"||k==="min",R=P?null:0,z=QY.count,O=__e[T],B=!1,V=function(j){return i.r2c(j,0,s)},G;for(vn.isArrayOrTypedArray(r[l])&&k!=="count"&&(G=r[l],B=k==="avg",z=QY[k]),f=V(v.start),E=V(v.end)+(f-Di.tickIncrement(f,v.size,!1,s))/1e6;f=0&&D=ve;f--)if(a[f]){oe=f;break}for(f=ve;f<=oe;f++)if(Ww(t[f])&&Ww(a[f])){var ce={p:t[f],s:a[f],b:0};u.enabled||(ce.pts=_[f],Z?ce.ph0=ce.ph1=_[f].length?d[_[f][0]]:t[f]:(r._computePh=!0,ce.ph0=K(m[f]),ce.ph1=K(m[f+1],!0))),se.push(ce)}return se.length===1&&(se[0].width1=Di.tickIncrement(se[0].p,v.size,!1,s)-se[0].p),x_e(se,r),vn.isArrayOrTypedArray(r.selectedpoints)&&vn.tagSelected(se,r,ie),se}function Zw(e,r,t,a,n){var i=a+"bins",o=e._fullLayout,l=r["_"+a+"bingroup"],s=o._histogramBinOpts[l],u=o.barmode==="overlay",f,c,v,d,p,m,y,x=function(ue){return t.r2c(ue,0,d)},w=function(ue){return t.c2r(ue,0,d)},_=t.type==="date"?function(ue){return ue||ue===0?vn.cleanDate(ue,null,d):null}:function(ue){return Ww(ue)?Number(ue):null};function b(ue,K,ye){K[ue+"Found"]?(K[ue]=_(K[ue]),K[ue]===null&&(K[ue]=ye[ue])):(m[ue]=K[ue]=ye[ue],vn.nestedProperty(c[0],i+"."+ue).set(ye[ue]))}if(r["_"+a+"autoBinFinished"])delete r["_"+a+"autoBinFinished"];else{c=s.traces;var T=[],k=!0,M=!1,S=!1;for(f=0;ft.r2l(G)&&(Y=Di.tickIncrement(Y,s.size,!0,d)),z.start=t.l2r(Y),V||vn.nestedProperty(r,i+".start").set(z.start)}var J=s.end,Z=t.r2l(R.end),re=Z!==void 0;if((s.endFound||re)&&Z!==t.r2l(J)){var fe=re?Z:vn.aggNums(Math.max,null,p);z.end=t.l2r(fe),re||vn.nestedProperty(r,i+".start").set(z.end)}var ie="autobin"+a;return r._input[ie]===!1&&(r._input[i]=vn.extendFlat({},r[i]||{}),delete r._input[ie],delete r[ie]),[z,p]}function M_e(e,r,t,a,n){var i=e._fullLayout,o=k_e(e,r),l=!1,s=1/0,u=[r],f,c,v;for(f=0;f=0;a--)l(a);else if(r==="increasing"){for(a=1;a=0;a--)e[a]+=e[a+1];t==="exclude"&&(e.push(0),e.shift())}}eV.exports={calc:A_e,calcAllAutoBins:Zw}});var sV=N((_ze,lV)=>{"use strict";var rV=Ee(),Gc=Or(),tV=Gw(),q_e=Yw(),L_e=Vw(),C_e=jw(),aV=Xw().calcAllAutoBins;lV.exports=function(r,t){var a=Gc.getFromId(r,t.xaxis),n=Gc.getFromId(r,t.yaxis),i=t.xcalendar,o=t.ycalendar,l=function(Le){return a.r2c(Le,0,i)},s=function(Le){return n.r2c(Le,0,o)},u=function(Le){return a.c2r(Le,0,i)},f=function(Le){return n.c2r(Le,0,o)},c,v,d,p,m=aV(r,t,a,"x"),y=m[0],x=m[1],w=aV(r,t,n,"y"),_=w[0],b=w[1],T=t._length;x.length>T&&x.splice(T,x.length-T),b.length>T&&b.splice(T,b.length-T);var k=[],M=[],S=[],E=typeof y.size=="string",D=typeof _.size=="string",P=[],R=[],z=E?P:y,O=D?R:_,B=0,V=[],G=[],U=t.histnorm,Y=t.histfunc,J=U.indexOf("density")!==-1,Z=Y==="max"||Y==="min",re=Z?null:0,fe=tV.count,ie=q_e[U],ue=!1,K=[],ye=[],se="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";se&&Y!=="count"&&(ue=Y==="avg",fe=tV[Y]);var ve=y.size,oe=l(y.start),ce=l(y.end)+(oe-Gc.tickIncrement(oe,ve,!1,i))/1e6;for(c=oe;c=0&&d=0&&p{"use strict";var Uo=Ee(),uV=Ft().BADNUM,fV=yc();cV.exports=function(r,t,a,n,i,o){var l=r._length,s=t.makeCalcdata(r,n),u=a.makeCalcdata(r,i);s=fV(r,t,n,s).vals,u=fV(r,a,i,u).vals;var f=r.text,c=f!==void 0&&Uo.isArray1D(f),v=r.hovertext,d=v!==void 0&&Uo.isArray1D(v),p,m,y=Uo.distinctVals(s),x=y.vals,w=Uo.distinctVals(u),_=w.vals,b=[],T,k,M=_.length,S=x.length;for(p=0;p{"use strict";var E_e=Rr(),D_e=Ee(),fg=Ft().BADNUM;hV.exports=function(r,t,a,n){var i,o,l,s,u,f;function c(x){if(E_e(x))return+x}if(t&&t.transpose){for(i=0,u=0;u{"use strict";var R_e=Ee(),pV=.01,P_e=[[-1,0],[1,0],[0,-1],[0,1]];function F_e(e){return .5-.25*Math.min(1,e*.5)}mV.exports=function(r,t){var a=1,n;for(yV(r,t),n=0;npV;n++)a=yV(r,t,F_e(a));return a>pV&&R_e.log("interp2d didn't converge quickly",a),r};function yV(e,r,t){var a=0,n,i,o,l,s,u,f,c,v,d,p,m,y;for(l=0;lm&&(a=Math.max(a,Math.abs(e[i][o]-p)/(y-m))))}return a}});var xV=N((Mze,bV)=>{"use strict";var N_e=Ee().maxRowLength;bV.exports=function(r){var t=[],a={},n=[],i=r[0],o=[],l=[0,0,0],s=N_e(r),u,f,c,v,d,p,m,y;for(f=0;f=0;d--)v=n[d],f=v[0],c=v[1],p=((a[[f-1,c]]||l)[2]+(a[[f+1,c]]||l)[2]+(a[[f,c-1]]||l)[2]+(a[[f,c+1]]||l)[2])/20,p&&(m[v]=[f,c,p],n.splice(d,1),y=!0);if(!y)throw"findEmpties iterated with no new neighbors";for(v in m)a[v]=m[v],t.push(m[v])}return t.sort(function(x,w){return w[2]-x[2]})}});var AV=N((kze,TV)=>{"use strict";var _V=gr(),wV=Ee().isArrayOrTypedArray;TV.exports=function(r,t,a,n,i,o){var l=[],s=_V.traceIs(r,"contour"),u=_V.traceIs(r,"histogram"),f,c,v,d=wV(t)&&t.length>1;if(d&&!u&&o.type!=="category"){var p=t.length;if(p<=i){if(s)l=Array.from(t).slice(0,i);else if(i===1)o.type==="log"?l=[.5*t[0],2*t[0]]:l=[t[0]-.5,t[0]+.5];else if(o.type==="log"){for(l=[Math.pow(t[0],1.5)/Math.pow(t[1],.5)],v=1;v{"use strict";var MV=gr(),Jw=Ee(),cg=Or(),kV=yc(),z_e=sV(),I_e=lh(),O_e=vV(),B_e=dV(),H_e=gV(),U_e=xV(),vg=AV(),$w=Ft().BADNUM;qV.exports=function(r,t){var a=cg.getFromId(r,t.xaxis||"x"),n=cg.getFromId(r,t.yaxis||"y"),i=MV.traceIs(t,"contour"),o=MV.traceIs(t,"histogram"),l=i?"best":t.zsmooth,s,u,f,c,v,d,p,m,y,x,w;if(a._minDtick=0,n._minDtick=0,o)w=z_e(r,t),c=w.orig_x,s=w.x,u=w.x0,f=w.dx,m=w.orig_y,v=w.y,d=w.y0,p=w.dy,y=w.z;else{var _=t.z;Jw.isArray1D(_)?(O_e(t,a,n,"x","y",["z"]),s=t._x,v=t._y,_=t._z):(c=t.x?a.makeCalcdata(t,"x"):[],m=t.y?n.makeCalcdata(t,"y"):[],s=kV(t,a,"x",c).vals,v=kV(t,n,"y",m).vals,t._x=s,t._y=v),u=t.x0,f=t.dx,d=t.y0,p=t.dy,y=B_e(_,t,a,n)}(a.rangebreaks||n.rangebreaks)&&(y=G_e(s,v,y),o||(s=SV(s),v=SV(v),t._x=s,t._y=v)),!o&&(i||t.connectgaps)&&(t._emptypoints=U_e(y),H_e(y,t._emptypoints));function b(z){l=t._input.zsmooth=t.zsmooth=!1,Jw.warn('cannot use zsmooth: "fast": '+z)}function T(z){if(z.length>1){var O=(z[z.length-1]-z[0])/(z.length-1),B=Math.abs(O/100);for(x=0;xB)return!1}return!0}t._islinear=!1,a.type==="log"||n.type==="log"?l==="fast"&&b("log axis found"):T(s)?T(v)?t._islinear=!0:l==="fast"&&b("y scale is not linear"):l==="fast"&&b("x scale is not linear");var k=Jw.maxRowLength(y),M=t.xtype==="scaled"?"":s,S=vg(t,M,u,f,k,a),E=t.ytype==="scaled"?"":v,D=vg(t,E,d,p,y.length,n);t._extremes[a._id]=cg.findExtremes(a,S),t._extremes[n._id]=cg.findExtremes(n,D);var P={x:S,y:D,z:y,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(t.xperiodalignment&&c&&(P.orig_x=c),t.yperiodalignment&&m&&(P.orig_y=m),M&&M.length===S.length-1&&(P.xCenter=M),E&&E.length===D.length-1&&(P.yCenter=E),o&&(P.xRanges=w.xRanges,P.yRanges=w.yRanges,P.pts=w.pts),i||I_e(r,t,{vals:y,cLetter:"z"}),i&&t.contours&&t.contours.coloring==="heatmap"){var R={type:t.type==="contour"?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};P.xfill=vg(R,M,u,f,k,a),P.yfill=vg(R,E,d,p,y.length,n)}return[P]};function SV(e){for(var r=[],t=e.length,a=0;a{"use strict";dg.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]];dg.STYLE=dg.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var Kw=N((Lze,EV)=>{"use strict";var LV=pg(),Y_e=Wr(),CV=Ee(),Yc=null;function V_e(){if(Yc!==null)return Yc;Yc=!1;var e=CV.isSafari()||CV.isIOS();if(window.navigator.userAgent&&!e){var r=Array.from(LV.CSS_DECLARATIONS).reverse(),t=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof t=="function")Yc=r.some(function(o){return t.apply(null,o)});else{var a=Y_e.tester.append("image").attr("style",LV.STYLE),n=window.getComputedStyle(a.node()),i=n.imageRendering;Yc=r.some(function(o){var l=o[1];return i===l||i===l.toLowerCase()}),a.remove()}}return Yc}EV.exports=V_e});var yg=N((Cze,BV)=>{"use strict";var DV=Sr(),j_e=kn(),W_e=gr(),Z_e=Wr(),X_e=Or(),Ri=Ee(),RV=Ea(),J_e=u4(),$_e=Tr(),K_e=So().extractOpts,Q_e=So().makeColorScaleFuncFromTrace,e4e=ll(),r4e=Xa(),Qw=r4e.LINE_SPACING,t4e=Kw(),a4e=pg().STYLE,IV="heatmap-label";function OV(e){return e.selectAll("g."+IV)}function PV(e){OV(e).remove()}BV.exports=function(e,r,t,a){var n=r.xaxis,i=r.yaxis;Ri.makeTraceGroups(a,t,"hm").each(function(o){var l=DV.select(this),s=o[0],u=s.trace,f=u.xgap||0,c=u.ygap||0,v=s.z,d=s.x,p=s.y,m=s.xCenter,y=s.yCenter,x=W_e.traceIs(u,"contour"),w=x?"best":u.zsmooth,_=v.length,b=Ri.maxRowLength(v),T=!1,k=!1,M,S,E,D,P,R,z,O;for(R=0;M===void 0&&R0;)S=n.c2p(d[R]),R--;for(S0;)P=i.c2p(p[R]),R--;P=n._length||S<=0||D>=i._length||P<=0;if(Y){var J=l.selectAll("image").data([]);J.exit().remove(),PV(l);return}var Z,re;B==="fast"?(Z=b,re=_):(Z=G,re=U);var fe=document.createElement("canvas");fe.width=Z,fe.height=re;var ie=fe.getContext("2d",{willReadFrequently:!0}),ue=Q_e(u,{noNumericCheck:!0,returnArray:!0}),K,ye;B==="fast"?(K=T?function(vt){return b-1-vt}:Ri.identity,ye=k?function(vt){return _-1-vt}:Ri.identity):(K=function(vt){return Ri.constrain(Math.round(n.c2p(d[vt])-M),0,G)},ye=function(vt){return Ri.constrain(Math.round(i.c2p(p[vt])-D),0,U)});var se=ye(0),ve=[se,se],oe=T?0:1,ce=k?0:1,j=0,Q=0,W=0,pe=0,be,me,Fe,ze,Re;function Ne(vt,Tn){if(vt!==void 0){var Pt=ue(vt);return Pt[0]=Math.round(Pt[0]),Pt[1]=Math.round(Pt[1]),Pt[2]=Math.round(Pt[2]),j+=Tn,Q+=Pt[0]*Tn,W+=Pt[1]*Tn,pe+=Pt[2]*Tn,Pt}return[0,0,0,0]}function Ue(vt,Tn,Pt,zs){var pn=vt[Pt.bin0];if(pn===void 0)return Ne(void 0,1);var Gi=vt[Pt.bin1],Ut=Tn[Pt.bin0],Yi=Tn[Pt.bin1],Rl=Gi-pn||0,Pl=Ut-pn||0,yr;return Gi===void 0?Yi===void 0?yr=0:Ut===void 0?yr=2*(Yi-pn):yr=(2*Yi-Ut-pn)*2/3:Yi===void 0?Ut===void 0?yr=0:yr=(2*pn-Gi-Ut)*2/3:Ut===void 0?yr=(2*Yi-Gi-pn)*2/3:yr=Yi+pn-Gi-Ut,Ne(pn+Pt.frac*Rl+zs.frac*(Pl+Pt.frac*yr))}if(B!=="default"){var He=0,Pe;try{Pe=new Uint8Array(Z*re*4)}catch(vt){Pe=new Array(Z*re*4)}if(B==="smooth"){var Oe=m||d,Be=y||p,le=new Array(Oe.length),Te=new Array(Be.length),Se=new Array(G),nr=m?NV:FV,Ke=y?NV:FV,Le,Ce,Ye;for(R=0;REt||Et>i._length))for(z=Ar;zma||ma>n._length)){var St=J_e({x:Dt,y:zr},u,e._fullLayout);St.x=Dt,St.y=zr;var Wa=s.z[R][z];Wa===void 0?(St.z="",St.zLabel=""):(St.z=Wa,St.zLabel=X_e.tickText(De,Wa,"hover").text);var ga=s.text&&s.text[R]&&s.text[R][z];(ga===void 0||ga===!1)&&(ga=""),St.text=ga;var Wt=Ri.texttemplateString(ne,St,e._fullLayout._d3locale,St,u._meta||{});if(Wt){var Na=Wt.split("
"),br=Na.length,pt=0;for(O=0;O{"use strict";HV.exports={min:"zmin",max:"zmax"}});var mg=N((Dze,UV)=>{"use strict";var n4e=Sr();UV.exports=function(r){n4e.select(r).selectAll(".hm image").style("opacity",function(t){return t.trace.opacity})}});var bg=N((Rze,YV)=>{"use strict";var GV=Pn(),L0=Ee(),gg=L0.isArrayOrTypedArray,i4e=Or(),o4e=So().extractOpts;YV.exports=function(r,t,a,n,i){i||(i={});var o=i.isContour,l=r.cd[0],s=l.trace,u=r.xa,f=r.ya,c=l.x,v=l.y,d=l.z,p=l.xCenter,m=l.yCenter,y=l.zmask,x=s.zhoverformat,w=c,_=v,b,T,k,M;if(r.index!==!1){try{k=Math.round(r.index[1]),M=Math.round(r.index[0])}catch(J){L0.error("Error hovering on heatmap, pointNumber must be [row,col], found:",r.index);return}if(k<0||k>=d[0].length||M<0||M>d.length)return}else{if(GV.inbox(t-c[0],t-c[c.length-1],0)>0||GV.inbox(a-v[0],a-v[v.length-1],0)>0)return;if(o){var S;for(w=[2*c[0]-c[1]],S=1;S{"use strict";VV.exports={attributes:S0(),supplyDefaults:BY(),calc:hg(),plot:yg(),colorbar:e6(),style:mg(),hoverPoints:bg(),moduleType:"trace",name:"heatmap",basePlotModule:qi(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var ZV=N((Fze,WV)=>{"use strict";WV.exports=jV()});var r6=N((Nze,XV)=>{"use strict";XV.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var $V=N((zze,JV)=>{"use strict";JV.exports={eventDataKeys:["binNumber"]}});var xg=N((Ize,ej)=>{"use strict";var Hn=Nu(),KV=Qi().axisHoverFormat,l4e=La().hovertemplateAttrs,s4e=La().texttemplateAttrs,t6=fa(),QV=r6(),u4e=$V(),a6=bt().extendFlat;ej.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:KV("x"),yhoverformat:KV("y"),text:a6({},Hn.text,{}),hovertext:a6({},Hn.hovertext,{}),orientation:Hn.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:QV("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:QV("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:l4e({},{keys:u4e.eventDataKeys}),texttemplate:s4e({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),textposition:a6({},Hn.textposition,{arrayOk:!1}),textfont:t6({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:t6({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:t6({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Hn.insidetextanchor,textangle:Hn.textangle,cliponaxis:Hn.cliponaxis,constraintext:Hn.constraintext,marker:Hn.marker,offsetgroup:Hn.offsetgroup,alignmentgroup:Hn.alignmentgroup,selected:Hn.selected,unselected:Hn.unselected,zorder:Hn.zorder}});var nj=N((Oze,aj)=>{"use strict";var rj=gr(),C0=Ee(),tj=Tr(),f4e=zu().handleText,c4e=mw(),v4e=xg();aj.exports=function(r,t,a,n){function i(w,_){return C0.coerce(r,t,v4e,w,_)}var o=i("x"),l=i("y"),s=i("cumulative.enabled");s&&(i("cumulative.direction"),i("cumulative.currentbin")),i("text");var u=i("textposition");f4e(r,t,n,i,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),i("hovertext"),i("hovertemplate"),i("xhoverformat"),i("yhoverformat");var f=i("orientation",l&&!o?"h":"v"),c=f==="v"?"x":"y",v=f==="v"?"y":"x",d=o&&l?Math.min(C0.minRowLength(o)&&C0.minRowLength(l)):C0.minRowLength(t[c]||[]);if(!d){t.visible=!1;return}t._length=d;var p=rj.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var m=t[v];m&&i("histfunc"),i("histnorm"),i("autobin"+c),c4e(r,t,i,a,n),C0.coerceSelectionMarkerOpacity(t,i);var y=(t.marker.line||{}).color,x=rj.getComponentMethod("errorbars","supplyDefaults");x(r,t,y||tj.defaultLine,{axis:"y"}),x(r,t,y||tj.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var wg=N((Bze,lj)=>{"use strict";var E0=Ee(),h4e=va(),_g=gr().traceIs,d4e=r0(),p4e=zu().validateCornerradius,ij=E0.nestedProperty,n6=Tu().getAxisGroup,oj=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],y4e=["x","y"];lj.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},o=[],l,s,u,f,c,v,d;function p(B,V){return E0.coerce(l._input,l,l._module.attributes,B,V)}function m(B){return B.orientation==="v"?"x":"y"}function y(B,V){var G=h4e.getFromTrace({_fullLayout:t},B,V);return G.type}function x(B,V,G){var U=B.uid+"__"+G;V||(V=U);var Y=y(B,G),J=B[G+"calendar"]||"",Z=a[V],re=!0;Z&&(Y===Z.axType&&J===Z.calendar?(re=!1,Z.traces.push(B),Z.dirs.push(G)):(V=U,Y!==Z.axType&&E0.warn(["Attempted to group the bins of trace",B.index,"set on a","type:"+Y,"axis","with bins on","type:"+Z.axType,"axis."].join(" ")),J!==Z.calendar&&E0.warn(["Attempted to group the bins of trace",B.index,"set with a",J,"calendar","with bins",Z.calendar?"on a "+Z.calendar+" calendar":"w/o a set calendar"].join(" ")))),re&&(a[V]={traces:[B],dirs:[G],axType:Y,calendar:B[G+"calendar"]||""}),B["_"+G+"bingroup"]=V}for(c=0;c{"use strict";var m4e=Mw().hoverPoints,g4e=Or().hoverLabelText;sj.exports=function(r,t,a,n,i){var o=m4e(r,t,a,n,i);if(o){r=o[0];var l=r.cd[r.index],s=r.cd[0].trace;if(!s.cumulative.enabled){var u=s.orientation==="h"?"y":"x";r[u+"Label"]=g4e(r[u+"a"],[l.ph0,l.ph1],s[u+"hoverformat"])}return o}}});var i6=N((Uze,fj)=>{"use strict";fj.exports=function(r,t,a,n,i){if(r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"zLabelVal"in t&&(r.z=t.zLabelVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),!(a.cumulative||{}).enabled){var o=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;r.pointNumbers=o,r.binNumber=r.pointNumber,delete r.pointNumber,delete r.pointIndex;var l;if(a._indexToPoints){l=[];for(var s=0;s{"use strict";cj.exports={attributes:xg(),layoutAttributes:$m(),supplyDefaults:nj(),crossTraceDefaults:wg(),supplyLayoutDefaults:gw(),calc:Xw().calc,crossTraceCalc:vm().crossTraceCalc,plot:Tw().plot,layerName:"barlayer",style:zc().style,styleOnSelect:zc().styleOnSelect,colorbar:o0(),hoverPoints:uj(),selectPoints:kw(),eventData:i6(),moduleType:"trace",name:"histogram",basePlotModule:qi(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var dj=N((Yze,hj)=>{"use strict";hj.exports=vj()});var Ag=N((Vze,yj)=>{"use strict";var yo=xg(),pj=r6(),Tg=S0(),b4e=mn(),o6=Qi().axisHoverFormat,x4e=La().hovertemplateAttrs,_4e=La().texttemplateAttrs,w4e=ko(),D0=bt().extendFlat;yj.exports=D0({x:yo.x,y:yo.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:yo.histnorm,histfunc:yo.histfunc,nbinsx:yo.nbinsx,xbins:pj("x"),nbinsy:yo.nbinsy,ybins:pj("y"),autobinx:yo.autobinx,autobiny:yo.autobiny,bingroup:D0({},yo.bingroup,{}),xbingroup:D0({},yo.bingroup,{}),ybingroup:D0({},yo.bingroup,{}),xgap:Tg.xgap,ygap:Tg.ygap,zsmooth:Tg.zsmooth,xhoverformat:o6("x"),yhoverformat:o6("y"),zhoverformat:o6("z",1),hovertemplate:x4e({},{keys:"z"}),texttemplate:_4e({arrayOk:!1,editType:"plot"},{keys:"z"}),textfont:Tg.textfont,showlegend:D0({},b4e.showlegend,{dflt:!1})},w4e("",{cLetter:"z",autoColorDflt:!1}))});var l6=N((jze,gj)=>{"use strict";var T4e=gr(),mj=Ee();gj.exports=function(r,t,a,n){var i=a("x"),o=a("y"),l=mj.minRowLength(i),s=mj.minRowLength(o);if(!l||!s){t.visible=!1;return}t._length=Math.min(l,s);var u=T4e.getComponentMethod("calendars","handleTraceDefaults");u(r,t,["x","y"],n);var f=a("z")||a("marker.color");f&&a("histfunc"),a("histnorm"),a("autobinx"),a("autobiny")}});var xj=N((Wze,bj)=>{"use strict";var A4e=Ee(),M4e=l6(),k4e=Uw(),S4e=ul(),q4e=q0(),L4e=Ag();bj.exports=function(r,t,a,n){function i(o,l){return A4e.coerce(r,t,L4e,o,l)}M4e(r,t,i,n),t.visible!==!1&&(k4e(r,t,i,n),S4e(r,t,n,i,{prefix:"",cLetter:"z"}),i("hovertemplate"),q4e(i,n),i("xhoverformat"),i("yhoverformat"))}});var Tj=N((Zze,wj)=>{"use strict";var C4e=bg(),_j=Or().hoverLabelText;wj.exports=function(r,t,a,n,i){var o=C4e(r,t,a,n,i);if(o){r=o[0];var l=r.index,s=l[0],u=l[1],f=r.cd[0],c=f.trace,v=f.xRanges[u],d=f.yRanges[s];return r.xLabel=_j(r.xa,[v[0],v[1]],c.xhoverformat),r.yLabel=_j(r.ya,[d[0],d[1]],c.yhoverformat),o}}});var Mj=N((Xze,Aj)=>{"use strict";Aj.exports={attributes:Ag(),supplyDefaults:xj(),crossTraceDefaults:wg(),calc:hg(),plot:yg(),layerName:"heatmaplayer",colorbar:e6(),style:mg(),hoverPoints:Tj(),eventData:i6(),moduleType:"trace",name:"histogram2d",basePlotModule:qi(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var Sj=N((Jze,kj)=>{"use strict";kj.exports=Mj()});var Mg=N(($ze,qj)=>{"use strict";qj.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var Sg=N((Kze,Dj)=>{"use strict";var pa=S0(),kg=wi(),Cj=Qi(),s6=Cj.axisHoverFormat,E4e=Cj.descriptionOnlyNumbers,D4e=ko(),R4e=si().dash,P4e=fa(),Vc=bt().extendFlat,Ej=Mg(),F4e=Ej.COMPARISON_OPS2,N4e=Ej.INTERVAL_OPS,Lj=kg.line;Dj.exports=Vc({z:pa.z,x:pa.x,x0:pa.x0,dx:pa.dx,y:pa.y,y0:pa.y0,dy:pa.dy,xperiod:pa.xperiod,yperiod:pa.yperiod,xperiod0:kg.xperiod0,yperiod0:kg.yperiod0,xperiodalignment:pa.xperiodalignment,yperiodalignment:pa.yperiodalignment,text:pa.text,hovertext:pa.hovertext,transpose:pa.transpose,xtype:pa.xtype,ytype:pa.ytype,xhoverformat:s6("x"),yhoverformat:s6("y"),zhoverformat:s6("z",1),hovertemplate:pa.hovertemplate,texttemplate:Vc({},pa.texttemplate,{}),textfont:Vc({},pa.textfont,{}),hoverongaps:pa.hoverongaps,connectgaps:Vc({},pa.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:P4e({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:E4e("contour label")},operation:{valType:"enumerated",values:[].concat(F4e).concat(N4e),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:Vc({},Lj.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:R4e,smoothing:Vc({},Lj.smoothing,{}),editType:"plot"},zorder:kg.zorder},D4e("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var f6=N((Qze,Pj)=>{"use strict";var hn=Ag(),Tl=Sg(),z4e=ko(),u6=Qi().axisHoverFormat,Rj=bt().extendFlat;Pj.exports=Rj({x:hn.x,y:hn.y,z:hn.z,marker:hn.marker,histnorm:hn.histnorm,histfunc:hn.histfunc,nbinsx:hn.nbinsx,xbins:hn.xbins,nbinsy:hn.nbinsy,ybins:hn.ybins,autobinx:hn.autobinx,autobiny:hn.autobiny,bingroup:hn.bingroup,xbingroup:hn.xbingroup,ybingroup:hn.ybingroup,autocontour:Tl.autocontour,ncontours:Tl.ncontours,contours:Tl.contours,line:{color:Tl.line.color,width:Rj({},Tl.line.width,{dflt:.5}),dash:Tl.line.dash,smoothing:Tl.line.smoothing,editType:"plot"},xhoverformat:u6("x"),yhoverformat:u6("y"),zhoverformat:u6("z",1),hovertemplate:hn.hovertemplate,texttemplate:Tl.texttemplate,textfont:Tl.textfont},z4e("",{cLetter:"z",editTypeOverride:"calc"}))});var c6=N((eIe,Fj)=>{"use strict";Fj.exports=function(r,t,a,n){var i=n("contours.start"),o=n("contours.end"),l=i===!1||o===!1,s=a("contours.size"),u;l?u=t.autocontour=!0:u=a("autocontour",!1),(u||!s)&&a("ncontours")}});var v6=N((rIe,Nj)=>{"use strict";var I4e=Ee();Nj.exports=function(r,t,a,n){n||(n={});var i=r("contours.showlabels");if(i){var o=t.font;I4e.coerceFont(r,"contours.labelfont",o,{overrideDflt:{color:a}}),r("contours.labelformat")}n.hasHover!==!1&&r("zhoverformat")}});var h6=N((tIe,zj)=>{"use strict";var O4e=ul(),B4e=v6();zj.exports=function(r,t,a,n,i){var o=a("contours.coloring"),l,s="";o==="fill"&&(l=a("contours.showlines")),l!==!1&&(o!=="lines"&&(s=a("line.color","#000")),a("line.width",.5),a("line.dash")),o!=="none"&&(r.showlegend!==!0&&(t.showlegend=!1),t._dfltShowLegend=!1,O4e(r,t,n,a,{prefix:"",cLetter:"z"})),a("line.smoothing"),B4e(a,n,s,i)}});var Hj=N((aIe,Bj)=>{"use strict";var Ij=Ee(),H4e=l6(),U4e=c6(),G4e=h6(),Y4e=q0(),Oj=f6();Bj.exports=function(r,t,a,n){function i(l,s){return Ij.coerce(r,t,Oj,l,s)}function o(l){return Ij.coerce2(r,t,Oj,l)}H4e(r,t,i,n),t.visible!==!1&&(U4e(r,t,i,o),G4e(r,t,i,n),i("xhoverformat"),i("yhoverformat"),i("hovertemplate"),t.contours&&t.contours.coloring==="heatmap"&&Y4e(i,n))}});var Yj=N((nIe,Gj)=>{"use strict";var p6=Or(),d6=Ee();Gj.exports=function(r,t){var a=r.contours;if(r.autocontour){var n=r.zmin,i=r.zmax;(r.zauto||n===void 0)&&(n=d6.aggNums(Math.min,null,t)),(r.zauto||i===void 0)&&(i=d6.aggNums(Math.max,null,t));var o=Uj(n,i,r.ncontours);a.size=o.dtick,a.start=p6.tickFirst(o),o.range.reverse(),a.end=p6.tickFirst(o),a.start===n&&(a.start+=a.size),a.end===i&&(a.end-=a.size),a.start>a.end&&(a.start=a.end=(a.start+a.end)/2),r._input.contours||(r._input.contours={}),d6.extendFlat(r._input.contours,{start:a.start,end:a.end,size:a.size}),r._input.autocontour=!0}else if(a.type!=="constraint"){var l=a.start,s=a.end,u=r._input.contours;if(l>s&&(a.start=u.start=s,s=a.end=u.end=l,l=a.start),!(a.size>0)){var f;l===s?f=1:f=Uj(l,s,r.ncontours).dtick,u.size=a.size=f}}};function Uj(e,r,t){var a={type:"linear",range:[e,r]};return p6.autoTicks(a,(r-e)/(t||15)),a}});var R0=N((iIe,Vj)=>{"use strict";Vj.exports=function(r){return r.end+r.size/1e6}});var y6=N((oIe,Wj)=>{"use strict";var jj=So(),V4e=hg(),j4e=Yj(),W4e=R0();Wj.exports=function(r,t){var a=V4e(r,t),n=a[0].z;j4e(t,n);var i=t.contours,o=jj.extractOpts(t),l;if(i.coloring==="heatmap"&&o.auto&&t.autocontour===!1){var s=i.start,u=W4e(i),f=i.size||1,c=Math.floor((u-s)/f)+1;isFinite(f)||(f=1,c=1);var v=s-f/2,d=v+c*f;l=[v,d]}else l=n;return jj.calc(r,t,{vals:l,cLetter:"z"}),a}});var qg=N((lIe,Zj)=>{"use strict";Zj.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}});var Jj=N((sIe,Xj)=>{"use strict";var Lg=qg();Xj.exports=function(r){var t=r[0].z,a=t.length,n=t[0].length,i=a===2||n===2,o,l,s,u,f,c,v,d,p;for(l=0;le?0:1)+(r[0][1]>e?0:2)+(r[1][1]>e?0:4)+(r[1][0]>e?0:8);if(t===5||t===10){var a=(r[0][0]+r[0][1]+r[1][0]+r[1][1])/4;return e>a?t===5?713:1114:t===5?104:208}return t===15?0:t}});var eW=N((uIe,Qj)=>{"use strict";var Cg=Ee(),jc=qg();Qj.exports=function(r,t,a){var n,i,o,l,s;for(t=t||.01,a=a||.01,o=0;o20?(o=jc.CHOOSESADDLE[o][(l[0]||l[1])<0?0:1],e.crossings[i]=jc.SADDLEREMAINDER[o]):delete e.crossings[i],l=jc.NEWDELTA[o],!l){Cg.log("Found bad marching index:",o,r,e.level);break}s.push(Kj(e,r,l)),r[0]+=l[0],r[1]+=l[1],i=r.join(","),P0(s[s.length-1],s[s.length-2],a,n)&&s.pop();var p=l[0]&&(r[0]<0||r[0]>f-2)||l[1]&&(r[1]<0||r[1]>u-2),m=r[0]===c[0]&&r[1]===c[1]&&l[0]===v[0]&&l[1]===v[1];if(m||t&&p)break;o=e.crossings[i]}d===1e4&&Cg.log("Infinite loop in contour?");var y=P0(s[0],s[s.length-1],a,n),x=0,w=.2*e.smoothing,_=[],b=0,T,k,M,S,E,D,P,R,z,O,B;for(d=1;d=b;d--)if(T=_[d],T=b&&T+_[k]R&&z--,e.edgepaths[z]=B.concat(s,O));break}Y||(e.edgepaths[R]=s.concat(O))}for(R=0;R20&&r?e===208||e===1114?a=t[0]===0?1:-1:n=t[1]===0?1:-1:jc.BOTTOMSTART.indexOf(e)!==-1?n=1:jc.LEFTSTART.indexOf(e)!==-1?a=1:jc.TOPSTART.indexOf(e)!==-1?n=-1:a=-1,[a,n]}function Kj(e,r,t){var a=r[0]+Math.max(t[0],0),n=r[1]+Math.max(t[1],0),i=e.z[n][a],o=e.xaxis,l=e.yaxis;if(t[1]){var s=(e.level-i)/(e.z[n][a+1]-i),u=(s!==1?(1-s)*o.c2l(e.x[a]):0)+(s!==0?s*o.c2l(e.x[a+1]):0);return[o.c2p(o.l2c(u),!0),l.c2p(e.y[n],!0),a+s,n]}else{var f=(e.level-i)/(e.z[n+1][a]-i),c=(f!==1?(1-f)*l.c2l(e.y[n]):0)+(f!==0?f*l.c2l(e.y[n+1]):0);return[o.c2p(e.x[a],!0),l.c2p(l.l2c(c),!0),a,n+f]}}});var nW=N((fIe,aW)=>{"use strict";var m6=Mg(),$4e=Rr();aW.exports={"[]":rW("[]"),"][":rW("]["),">":g6(">"),"<":g6("<"),"=":g6("=")};function tW(e,r){var t=Array.isArray(r),a;function n(i){return $4e(i)?+i:null}return m6.COMPARISON_OPS2.indexOf(e)!==-1?a=n(t?r[0]:r):m6.INTERVAL_OPS.indexOf(e)!==-1?a=t?[n(r[0]),n(r[1])]:[n(r),n(r)]:m6.SET_OPS.indexOf(e)!==-1&&(a=t?r.map(n):[n(r)]),a}function rW(e){return function(r){r=tW(e,r);var t=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return{start:t,end:a,size:a-t}}}function g6(e){return function(r){return r=tW(e,r),{start:r,end:1/0,size:1/0}}}});var lW=N((cIe,oW)=>{"use strict";var iW=Ee(),K4e=nW(),Q4e=R0();oW.exports=function(r,t,a){for(var n=r.type==="constraint"?K4e[r._operation](r.value):r,i=n.size,o=[],l=Q4e(n),s=a.trace._carpetTrace,u=s?{xaxis:s.aaxis,yaxis:s.baxis,x:a.a,y:a.b}:{xaxis:t.xaxis,yaxis:t.yaxis,x:a.x,y:a.y},f=n.start;f1e3){iW.warn("Too many contours, clipping at 1000",r);break}return o}});var fW=N((vIe,uW)=>{"use strict";var Wc=Ee();uW.exports=function(e,r){var t,a,n,i=function(s){return s.reverse()},o=function(s){return s};switch(r){case"=":case"<":return e;case">":for(e.length!==1&&Wc.warn("Contour data invalid for the specified inequality operation."),a=e[0],t=0;t{"use strict";cW.exports=function(e,r){var t=e[0],a=t.z,n;switch(r.type){case"levels":var i=Math.min(a[0][0],a[0][1]);for(n=0;no.level||o.starts.length&&i===o.level)}break;case"constraint":if(t.prefixBoundary=!1,t.edgepaths.length)return;var l=t.x.length,s=t.y.length,u=-1/0,f=1/0;for(n=0;n":c>u&&(t.prefixBoundary=!0);break;case"<":(cu||t.starts.length&&d===f)&&(t.prefixBoundary=!0);break;case"][":v=Math.min(c[0],c[1]),d=Math.max(c[0],c[1]),vu&&(t.prefixBoundary=!0);break}break}}});var b6=N(dn=>{"use strict";var N0=Sr(),Pa=Ee(),Al=Wr(),ewe=So(),pW=Ea(),hW=Or(),dW=Zf(),rwe=yg(),yW=Jj(),mW=eW(),twe=lW(),awe=fW(),gW=vW(),F0=qg(),Go=F0.LABELOPTIMIZER;dn.plot=function(r,t,a,n){var i=t.xaxis,o=t.yaxis;Pa.makeTraceGroups(n,a,"contour").each(function(l){var s=N0.select(this),u=l[0],f=u.trace,c=u.x,v=u.y,d=f.contours,p=twe(d,t,u),m=Pa.ensureSingle(s,"g","heatmapcoloring"),y=[];d.coloring==="heatmap"&&(y=[l]),rwe(r,t,y,m),yW(p),mW(p);var x=i.c2p(c[0],!0),w=i.c2p(c[c.length-1],!0),_=o.c2p(v[0],!0),b=o.c2p(v[v.length-1],!0),T=[[x,b],[w,b],[w,_],[x,_]],k=p;d.type==="constraint"&&(k=awe(p,d._operation)),nwe(s,T,d),iwe(s,k,T,d),owe(s,p,r,u,d),swe(s,t,r,u,T)})};function nwe(e,r,t){var a=Pa.ensureSingle(e,"g","contourbg"),n=a.selectAll("path").data(t.coloring==="fill"?[0]:[]);n.enter().append("path"),n.exit().remove(),n.attr("d","M"+r.join("L")+"Z").style("stroke","none")}function iwe(e,r,t,a){var n=a.coloring==="fill"||a.type==="constraint"&&a._operation!=="=",i="M"+t.join("L")+"Z";n&&gW(r,a);var o=Pa.ensureSingle(e,"g","contourfill"),l=o.selectAll("path").data(n?r:[]);l.enter().append("path"),l.exit().remove(),l.each(function(s){var u=(s.prefixBoundary?i:"")+bW(s,t);u?N0.select(this).attr("d",u).style("stroke","none"):N0.select(this).remove()})}function bW(e,r){var t="",a=0,n=e.edgepaths.map(function(x,w){return w}),i=!0,o,l,s,u,f,c;function v(x){return Math.abs(x[1]-r[0][1])<.01}function d(x){return Math.abs(x[1]-r[2][1])<.01}function p(x){return Math.abs(x[0]-r[0][0])<.01}function m(x){return Math.abs(x[0]-r[2][0])<.01}for(;n.length;){for(c=Al.smoothopen(e.edgepaths[a],e.smoothing),t+=i?c:c.replace(/^M/,"L"),n.splice(n.indexOf(a),1),o=e.edgepaths[a][e.edgepaths[a].length-1],u=-1,s=0;s<4;s++){if(!o){Pa.log("Missing end?",a,e);break}for(v(o)&&!m(o)?l=r[1]:p(o)?l=r[0]:d(o)?l=r[3]:m(o)&&(l=r[2]),f=0;f=0&&(l=y,u=f):Math.abs(o[1]-l[1])<.01?Math.abs(o[1]-y[1])<.01&&(y[0]-o[0])*(l[0]-y[0])>=0&&(l=y,u=f):Pa.log("endpt to newendpt is not vert. or horz.",o,l,y)}if(o=l,u>=0)break;t+="L"+l}if(u===e.edgepaths.length){Pa.log("unclosed perimeter path");break}a=u,i=n.indexOf(a)===-1,i&&(a=n[0],t+="Z")}for(a=0;aGo.MAXCOST*2)break;v&&(l/=2),o=u-l/2,s=o+l*1.5}if(c<=Go.MAXCOST)return f};function lwe(e,r,t,a){var n=r.width/2,i=r.height/2,o=e.x,l=e.y,s=e.theta,u=Math.cos(s)*n,f=Math.sin(s)*n,c=(o>a.center?a.right-o:o-a.left)/(u+Math.abs(Math.sin(s)*i)),v=(l>a.middle?a.bottom-l:l-a.top)/(Math.abs(f)+Math.cos(s)*i);if(c<1||v<1)return 1/0;var d=Go.EDGECOST*(1/(c-1)+1/(v-1));d+=Go.ANGLECOST*s*s;for(var p=o-u,m=l-f,y=o+u,x=l+f,w=0;w{"use strict";var fwe=Sr(),x6=So(),cwe=R0();xW.exports=function(r){var t=r.contours,a=t.start,n=cwe(t),i=t.size||1,o=Math.floor((n-a)/i)+1,l=t.coloring==="lines"?0:1,s=x6.extractOpts(r);isFinite(i)||(i=1,o=1);var u=s.reversescale?x6.flipScale(s.colorscale):s.colorscale,f=u.length,c=new Array(f),v=new Array(f),d,p,m=s.min,y=s.max;if(t.coloring==="heatmap"){for(p=0;p=y)&&(a<=m&&(a=m),n>=y&&(n=y),o=Math.floor((n-a)/i)+1,l=0),p=0;pm&&(c.unshift(m),v.unshift(v[0])),c[c.length-1]{"use strict";var Eg=Sr(),_W=Wr(),vwe=mg(),hwe=_6();wW.exports=function(r){var t=Eg.select(r).selectAll("g.contour");t.style("opacity",function(a){return a[0].trace.opacity}),t.each(function(a){var n=Eg.select(this),i=a[0].trace,o=i.contours,l=i.line,s=o.size||1,u=o.start,f=o.type==="constraint",c=!f&&o.coloring==="lines",v=!f&&o.coloring==="fill",d=c||v?hwe(i):null;n.selectAll("g.contourlevel").each(function(y){Eg.select(this).selectAll("path").call(_W.lineGroupStyle,l.width,c?d(y.level):l.color,l.dash)});var p=o.labelfont;if(n.selectAll("g.contourlabels text").each(function(y){_W.font(Eg.select(this),{weight:p.weight,style:p.style,variant:p.variant,textcase:p.textcase,lineposition:p.lineposition,shadow:p.shadow,family:p.family,size:p.size,color:p.color||(c?d(y.level):l.color)})}),f)n.selectAll("g.contourfill path").style("fill",i.fillcolor);else if(v){var m;n.selectAll("g.contourfill path").style("fill",function(y){return m===void 0&&(m=y.level),d(y.level+.5*s)}),m===void 0&&(m=u),n.selectAll("g.contourbg path").style("fill",d(m-.5*s))}}),vwe(r)}});var T6=N((mIe,AW)=>{"use strict";var TW=So(),dwe=_6(),pwe=R0();function ywe(e,r,t){var a=r.contours,n=r.line,i=a.size||1,o=a.coloring,l=dwe(r,{isColorbar:!0});if(o==="heatmap"){var s=TW.extractOpts(r);t._fillgradient=s.reversescale?TW.flipScale(s.colorscale):s.colorscale,t._zrange=[s.min,s.max]}else o==="fill"&&(t._fillcolor=l);t._line={color:o==="lines"?l:n.color,width:a.showlines!==!1?n.width:0,dash:n.dash},t._levels={start:a.start,end:pwe(a),size:i}}AW.exports={min:"zmin",max:"zmax",calc:ywe}});var A6=N((gIe,MW)=>{"use strict";var Dg=Tr(),mwe=bg();MW.exports=function(r,t,a,n,i){i||(i={}),i.isContour=!0;var o=mwe(r,t,a,n,i);return o&&o.forEach(function(l){var s=l.trace;s.contours.type==="constraint"&&(s.fillcolor&&Dg.opacity(s.fillcolor)?l.color=Dg.addOpacity(s.fillcolor,1):s.contours.showlines&&Dg.opacity(s.line.color)&&(l.color=Dg.addOpacity(s.line.color,1)))}),o}});var SW=N((bIe,kW)=>{"use strict";kW.exports={attributes:f6(),supplyDefaults:Hj(),crossTraceDefaults:wg(),calc:y6(),plot:b6().plot,layerName:"contourlayer",style:w6(),colorbar:T6(),hoverPoints:A6(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:qi(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var LW=N((xIe,qW)=>{"use strict";qW.exports=SW()});var NW=N((_Ie,FW)=>{"use strict";var CW=Rr(),gwe=v6(),RW=Tr(),EW=RW.addOpacity,bwe=RW.opacity,PW=Mg(),DW=Ee().isArrayOrTypedArray,xwe=PW.CONSTRAINT_REDUCTION,_we=PW.COMPARISON_OPS2;FW.exports=function(r,t,a,n,i,o){var l=t.contours,s,u,f,c=a("contours.operation");if(l._operation=xwe[c],wwe(a,l),c==="="?s=l.showlines=!0:(s=a("contours.showlines"),f=a("fillcolor",EW((r.line||{}).color||i,.5))),s){var v=f&&bwe(f)?EW(t.fillcolor,1):i;u=a("line.color",v),a("line.width",2),a("line.dash")}a("line.smoothing"),gwe(a,n,u,o)};function wwe(e,r){var t;_we.indexOf(r.operation)===-1?(e("contours.value",[0,1]),DW(r.value)?r.value.length>2?r.value=r.value.slice(2):r.length===0?r.value=[0,1]:r.length<2?(t=parseFloat(r.value[0]),r.value=[t,t+1]):r.value=[parseFloat(r.value[0]),parseFloat(r.value[1])]:CW(r.value)&&(t=parseFloat(r.value),r.value=[t,t+1])):(e("contours.value",0),CW(r.value)||(DW(r.value)?r.value=parseFloat(r.value[0]):r.value=0))}});var OW=N((wIe,IW)=>{"use strict";var M6=Ee(),Twe=Hw(),Awe=dc(),Mwe=NW(),kwe=c6(),Swe=h6(),qwe=q0(),zW=Sg();IW.exports=function(r,t,a,n){function i(u,f){return M6.coerce(r,t,zW,u,f)}function o(u){return M6.coerce2(r,t,zW,u)}var l=Twe(r,t,i,n);if(!l){t.visible=!1;return}Awe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hoverongaps"),i("hovertemplate");var s=i("contours.type")==="constraint";i("connectgaps",M6.isArray1D(t.z)),s?Mwe(r,t,i,n,a):(kwe(r,t,i,o),Swe(r,t,i,n)),t.contours&&t.contours.coloring==="heatmap"&&qwe(i,n),i("zorder")}});var HW=N((TIe,BW)=>{"use strict";BW.exports={attributes:Sg(),supplyDefaults:OW(),calc:y6(),plot:b6().plot,style:w6(),colorbar:T6(),hoverPoints:A6(),moduleType:"trace",name:"contour",basePlotModule:qi(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var GW=N((AIe,UW)=>{"use strict";UW.exports=HW()});var k6=N((MIe,VW)=>{"use strict";var Lwe=La().hovertemplateAttrs,Cwe=La().texttemplateAttrs,Ewe=Dy(),ai=wi(),Dwe=mn(),YW=ko(),Rwe=si().dash,gs=bt().extendFlat,Pi=ai.marker,z0=ai.line,Pwe=Pi.line;VW.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:gs({},ai.mode,{dflt:"markers"}),text:gs({},ai.text,{}),texttemplate:Cwe({editType:"plot"},{keys:["a","b","c","text"]}),hovertext:gs({},ai.hovertext,{}),line:{color:z0.color,width:z0.width,dash:Rwe,backoff:z0.backoff,shape:gs({},z0.shape,{values:["linear","spline"]}),smoothing:z0.smoothing,editType:"calc"},connectgaps:ai.connectgaps,cliponaxis:ai.cliponaxis,fill:gs({},ai.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:Ewe(),marker:gs({symbol:Pi.symbol,opacity:Pi.opacity,angle:Pi.angle,angleref:Pi.angleref,standoff:Pi.standoff,maxdisplayed:Pi.maxdisplayed,size:Pi.size,sizeref:Pi.sizeref,sizemin:Pi.sizemin,sizemode:Pi.sizemode,line:gs({width:Pwe.width,editType:"calc"},YW("marker.line")),gradient:Pi.gradient,editType:"calc"},YW("marker")),textfont:ai.textfont,textposition:ai.textposition,selected:ai.selected,unselected:ai.unselected,hoverinfo:gs({},Dwe.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:ai.hoveron,hovertemplate:Lwe()}});var XW=N((kIe,ZW)=>{"use strict";var jW=Ee(),Fwe=Uh(),Zc=Dn(),Nwe=G_(),zwe=Y_(),WW=V_(),Iwe=j_(),Owe=W_(),Bwe=k6();ZW.exports=function(r,t,a,n){function i(v,d){return jW.coerce(r,t,Bwe,v,d)}var o=i("a"),l=i("b"),s=i("c"),u;if(o?(u=o.length,l?(u=Math.min(u,l.length),s&&(u=Math.min(u,s.length))):s?u=Math.min(u,s.length):u=0):l&&s&&(u=Math.min(l.length,s.length)),!u){t.visible=!1;return}t._length=u,i("sum"),i("text"),i("hovertext"),t.hoveron!=="fills"&&i("hovertemplate");var f=u{"use strict";var S6=Or();JW.exports=function(r,t,a){var n={},i=a[t.subplot]._subplot;return n.aLabel=S6.tickText(i.aaxis,r.a,!0).text,n.bLabel=S6.tickText(i.baxis,r.b,!0).text,n.cLabel=S6.tickText(i.caxis,r.c,!0).text,n}});var rZ=N((qIe,eZ)=>{"use strict";var q6=Rr(),Hwe=J_(),Uwe=lm(),Gwe=sm(),Ywe=um().calcMarkerSize,KW=["a","b","c"],QW={a:["b","c"],b:["a","c"],c:["a","b"]};eZ.exports=function(r,t){var a=r._fullLayout[t.subplot],n=a.sum,i=t.sum||n,o={a:t.a,b:t.b,c:t.c},l=t.ids,s,u,f,c,v,d;for(s=0;s{"use strict";var Vwe=s4();tZ.exports=function(r,t,a){var n=t.plotContainer;n.select(".scatterlayer").selectAll("*").remove();for(var i=t.xaxis,o=t.yaxis,l={xaxis:i,yaxis:o,plot:n,layerClipId:t._hasClipOnAxisFalse?t.clipIdRelative:null},s=t.layers.frontplot.select("g.scatterlayer"),u=0;u{"use strict";var jwe=d4();nZ.exports=function(r,t,a,n){var i=jwe(r,t,a,n);if(!i||i[0].index===!1)return;var o=i[0];if(o.index===void 0){var l=1-o.y0/r.ya._length,s=r.xa._length,u=s*l/2,f=s-u;return o.x0=Math.max(Math.min(o.x0,f),u),o.x1=Math.max(Math.min(o.x1,f),u),i}var c=o.cd[o.index],v=o.trace,d=o.subplot;o.a=c.a,o.b=c.b,o.c=c.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var p={};p[v.subplot]={_subplot:d};var m=v._module.formatLabels(c,v,p);o.aLabel=m.aLabel,o.bLabel=m.bLabel,o.cLabel=m.cLabel;var y=c.hi||v.hoverinfo,x=[];function w(b,T){x.push(b._hovertitle+": "+T)}if(!v.hovertemplate){var _=y.split("+");_.indexOf("all")!==-1&&(_=["a","b","c"]),_.indexOf("a")!==-1&&w(d.aaxis,o.aLabel),_.indexOf("b")!==-1&&w(d.baxis,o.bLabel),_.indexOf("c")!==-1&&w(d.caxis,o.cLabel)}return o.extraText=x.join("
"),o.hovertemplate=v.hovertemplate,i}});var lZ=N((EIe,oZ)=>{"use strict";oZ.exports=function(r,t,a,n,i){if(t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),n[i]){var o=n[i];r.a=o.a,r.b=o.b,r.c=o.c}else r.a=t.a,r.b=t.b,r.c=t.c;return r}});var gZ=N((DIe,mZ)=>{"use strict";var hZ=Sr(),Wwe=kn(),L6=gr(),Ml=Ee(),Yo=Ml.strTranslate,Rg=Ml._,Jc=Tr(),Pg=Wr(),I0=Zf(),C6=bt().extendFlat,Zwe=ea(),bs=Or(),sZ=pi(),uZ=Pn(),dZ=bu(),fZ=dZ.freeMode,Xwe=dZ.rectMode,E6=Wf(),Jwe=zo().prepSelect,$we=zo().selectOnClick,Kwe=zo().clearOutline,Qwe=zo().clearSelectionsCache,pZ=Ca();function yZ(e,r){this.id=e.id,this.graphDiv=e.graphDiv,this.init(r),this.makeFramework(r),this.updateFx(r),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}mZ.exports=yZ;var Vo=yZ.prototype;Vo.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Vo.plot=function(e,r){var t=this,a=r[t.id],n=r._size;t._hasClipOnAxisFalse=!1;for(var i=0;iXc*u?(x=u,y=x*Xc):(y=s,x=y/Xc),w=o*y/s,_=l*x/u,p=r.l+r.w*n-y/2,m=r.t+r.h*(1-i)-x/2,t.x0=p,t.y0=m,t.w=y,t.h=x,t.sum=f,t.xaxis={type:"linear",range:[c+2*d-f,f-c-2*v],domain:[n-w/2,n+w/2],_id:"x"},I0(t.xaxis,t.graphDiv._fullLayout),t.xaxis.setScale(),t.xaxis.isPtWithinRange=function(O){return O.a>=t.aaxis.range[0]&&O.a<=t.aaxis.range[1]&&O.b>=t.baxis.range[1]&&O.b<=t.baxis.range[0]&&O.c>=t.caxis.range[1]&&O.c<=t.caxis.range[0]},t.yaxis={type:"linear",range:[c,f-v-d],domain:[i-_/2,i+_/2],_id:"y"},I0(t.yaxis,t.graphDiv._fullLayout),t.yaxis.setScale(),t.yaxis.isPtWithinRange=function(){return!0};var b=t.yaxis.domain[0],T=t.aaxis=C6({},e.aaxis,{range:[c,f-v-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[b,b+_*Xc],anchor:"free",position:0,_id:"y",_length:y});I0(T,t.graphDiv._fullLayout),T.setScale();var k=t.baxis=C6({},e.baxis,{range:[f-c-d,v],side:"bottom",domain:t.xaxis.domain,anchor:"free",position:0,_id:"x",_length:y});I0(k,t.graphDiv._fullLayout),k.setScale();var M=t.caxis=C6({},e.caxis,{range:[f-c-v,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[b,b+_*Xc],anchor:"free",position:0,_id:"y",_length:y});I0(M,t.graphDiv._fullLayout),M.setScale();var S="M"+p+","+(m+x)+"h"+y+"l-"+y/2+",-"+x+"Z";t.clipDef.select("path").attr("d",S),t.layers.plotbg.select("path").attr("d",S);var E="M0,"+x+"h"+y+"l-"+y/2+",-"+x+"Z";t.clipDefRelative.select("path").attr("d",E);var D=Yo(p,m);t.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",D),t.clipDefRelative.select("path").attr("transform",null);var P=Yo(p-k._offset,m+x);t.layers.baxis.attr("transform",P),t.layers.bgrid.attr("transform",P);var R=Yo(p+y/2,m)+"rotate(30)"+Yo(0,-T._offset);t.layers.aaxis.attr("transform",R),t.layers.agrid.attr("transform",R);var z=Yo(p+y/2,m)+"rotate(-30)"+Yo(0,-M._offset);t.layers.caxis.attr("transform",z),t.layers.cgrid.attr("transform",z),t.drawAxes(!0),t.layers.aline.select("path").attr("d",T.showline?"M"+p+","+(m+x)+"l"+y/2+",-"+x:"M0,0").call(Jc.stroke,T.linecolor||"#000").style("stroke-width",(T.linewidth||0)+"px"),t.layers.bline.select("path").attr("d",k.showline?"M"+p+","+(m+x)+"h"+y:"M0,0").call(Jc.stroke,k.linecolor||"#000").style("stroke-width",(k.linewidth||0)+"px"),t.layers.cline.select("path").attr("d",M.showline?"M"+(p+y/2)+","+m+"l"+y/2+","+x:"M0,0").call(Jc.stroke,M.linecolor||"#000").style("stroke-width",(M.linewidth||0)+"px"),t.graphDiv._context.staticPlot||t.initInteractions(),Pg.setClipUrl(t.layers.frontplot,t._hasClipOnAxisFalse?null:t.clipId,t.graphDiv)};Vo.drawAxes=function(e){var r=this,t=r.graphDiv,a=r.id.substr(7)+"title",n=r.layers,i=r.aaxis,o=r.baxis,l=r.caxis;if(r.drawAx(i),r.drawAx(o),r.drawAx(l),e){var s=Math.max(i.showticklabels?i.tickfont.size/2:0,(l.showticklabels?l.tickfont.size*.75:0)+(l.ticks==="outside"?l.ticklen*.87:0)),u=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;n["a-title"]=E6.draw(t,"a"+a,{propContainer:i,propName:r.id+".aaxis.title",placeholder:Rg(t,"Click to enter Component A title"),attributes:{x:r.x0+r.w/2,y:r.y0-i.title.font.size/3-s,"text-anchor":"middle"}}),n["b-title"]=E6.draw(t,"b"+a,{propContainer:o,propName:r.id+".baxis.title",placeholder:Rg(t,"Click to enter Component B title"),attributes:{x:r.x0-u,y:r.y0+r.h+o.title.font.size*.83+u,"text-anchor":"middle"}}),n["c-title"]=E6.draw(t,"c"+a,{propContainer:l,propName:r.id+".caxis.title",placeholder:Rg(t,"Click to enter Component C title"),attributes:{x:r.x0+r.w+u,y:r.y0+r.h+l.title.font.size*.83+u,"text-anchor":"middle"}})}};Vo.drawAx=function(e){var r=this,t=r.graphDiv,a=e._name,n=a.charAt(0),i=e._id,o=r.layers[a],l=30,s=n+"tickLayout",u=e6e(e);r[s]!==u&&(o.selectAll("."+i+"tick").remove(),r[s]=u),e.setScale();var f=bs.calcTicks(e),c=bs.clipEnds(e,f),v=bs.makeTransTickFn(e),d=bs.getTickSigns(e)[2],p=Ml.deg2rad(l),m=d*(e.linewidth||1)/2,y=d*e.ticklen,x=r.w,w=r.h,_=n==="b"?"M0,"+m+"l"+Math.sin(p)*y+","+Math.cos(p)*y:"M"+m+",0l"+Math.cos(p)*y+","+-Math.sin(p)*y,b={a:"M0,0l"+w+",-"+x/2,b:"M0,0l-"+x/2+",-"+w,c:"M0,0l-"+w+","+x/2}[n];bs.drawTicks(t,e,{vals:e.ticks==="inside"?c:f,layer:o,path:_,transFn:v,crisp:!1}),bs.drawGrid(t,e,{vals:c,layer:r.layers[n+"grid"],path:b,transFn:v,crisp:!1}),bs.drawLabels(t,e,{vals:f,layer:o,transFn:v,labelFns:bs.makeLabelFns(e,0,l)})};function e6e(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var Sa=pZ.MINZOOM/2+.87,r6e="m-0.87,.5h"+Sa+"v3h-"+(Sa+5.2)+"l"+(Sa/2+2.6)+",-"+(Sa*.87+4.5)+"l2.6,1.5l-"+Sa/2+","+Sa*.87+"Z",t6e="m0.87,.5h-"+Sa+"v3h"+(Sa+5.2)+"l-"+(Sa/2+2.6)+",-"+(Sa*.87+4.5)+"l-2.6,1.5l"+Sa/2+","+Sa*.87+"Z",a6e="m0,1l"+Sa/2+","+Sa*.87+"l2.6,-1.5l-"+(Sa/2+2.6)+",-"+(Sa*.87+4.5)+"l-"+(Sa/2+2.6)+","+(Sa*.87+4.5)+"l2.6,1.5l"+Sa/2+",-"+Sa*.87+"Z",n6e="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",cZ=!0;Vo.clearOutline=function(){Qwe(this.dragOptions),Kwe(this.dragOptions.gd)};Vo.initInteractions=function(){var e=this,r=e.layers.plotbg.select("path").node(),t=e.graphDiv,a=t._fullLayout._zoomlayer,n,i;this.dragOptions={element:r,gd:t,plotinfo:{id:e.id,domain:t._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(P,R,z){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],n=t._fullLayout._invScaleX,i=t._fullLayout._invScaleY;var O=e.dragOptions.dragmode=t._fullLayout.dragmode;fZ(O)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,O==="zoom"?(e.dragOptions.moveFn=k,e.dragOptions.clickFn=x,e.dragOptions.doneFn=M,w(P,R,z)):O==="pan"?(e.dragOptions.moveFn=E,e.dragOptions.clickFn=x,e.dragOptions.doneFn=D,S(),e.clearOutline(t)):(Xwe(O)||fZ(O))&&Jwe(P,R,z,e.dragOptions,O)}};var o,l,s,u,f,c,v,d,p,m;function y(P){var R={};return R[e.id+".aaxis.min"]=P.a,R[e.id+".baxis.min"]=P.b,R[e.id+".caxis.min"]=P.c,R}function x(P,R){var z=t._fullLayout.clickmode;vZ(t),P===2&&(t.emit("plotly_doubleclick",null),L6.call("_guiRelayout",t,y({a:0,b:0,c:0}))),z.indexOf("select")>-1&&P===1&&$we(R,t,[e.xaxis],[e.yaxis],e.id,e.dragOptions),z.indexOf("event")>-1&&uZ.click(t,R,e.id)}function w(P,R,z){var O=r.getBoundingClientRect();o=R-O.left,l=z-O.top,t._fullLayout._calcInverseTransform(t);var B=t._fullLayout._invTransform,V=Ml.apply3DTransform(B)(o,l);o=V[0],l=V[1],s={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=s,u=e.aaxis.range[1]-s.a,c=Wwe(e.graphDiv._fullLayout[e.id].bgcolor).getLuminance(),v="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,p=a.append("path").attr("class","zoombox").attr("transform",Yo(e.x0,e.y0)).style({fill:c>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",v),m=a.append("path").attr("class","zoombox-corners").attr("transform",Yo(e.x0,e.y0)).style({fill:Jc.background,stroke:Jc.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(t)}function _(P,R){return 1-R/e.h}function b(P,R){return 1-(P+(e.h-R)/Math.sqrt(3))/e.w}function T(P,R){return(P-(e.h-R)/Math.sqrt(3))/e.w}function k(P,R){var z=o+P*n,O=l+R*i,B=Math.max(0,Math.min(1,_(o,l),_(z,O))),V=Math.max(0,Math.min(1,b(o,l),b(z,O))),G=Math.max(0,Math.min(1,T(o,l),T(z,O))),U=(B/2+G)*e.w,Y=(1-B/2-V)*e.w,J=(U+Y)/2,Z=Y-U,re=(1-B)*e.h,fe=re-Z/Xc;Z.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),m.transition().style("opacity",1).duration(200),d=!0),t.emit("plotly_relayouting",y(f))}function M(){vZ(t),f!==s&&(L6.call("_guiRelayout",t,y(f)),cZ&&t.data&&t._context.showTips&&(Ml.notifier(Rg(t,"Double-click to zoom back out"),"long"),cZ=!1))}function S(){s={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=s}function E(P,R){var z=P/e.xaxis._m,O=R/e.yaxis._m;f={a:s.a-O,b:s.b+(z+O)/2,c:s.c-(z-O)/2};var B=[f.a,f.b,f.c].sort(Ml.sorterAsc),V={a:B.indexOf(f.a),b:B.indexOf(f.b),c:B.indexOf(f.c)};B[0]<0&&(B[1]+B[0]/2<0?(B[2]+=B[0]+B[1],B[0]=B[1]=0):(B[2]+=B[0]/2,B[1]+=B[0]/2,B[0]=0),f={a:B[V.a],b:B[V.b],c:B[V.c]},R=(s.a-f.a)*e.yaxis._m,P=(s.c-f.c-s.b+f.b)*e.xaxis._m);var G=Yo(e.x0+P,e.y0+R);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",G);var U=Yo(-P,-R);e.clipDefRelative.select("path").attr("transform",U),e.aaxis.range=[f.a,e.sum-f.b-f.c],e.baxis.range=[e.sum-f.a-f.c,f.b],e.caxis.range=[e.sum-f.a-f.b,f.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(Pg.hideOutsideRangePoints,e),t.emit("plotly_relayouting",y(f))}function D(){L6.call("_guiRelayout",t,y(f))}r.onmousemove=function(P){uZ.hover(t,P,e.id),t._fullLayout._lasthover=r,t._fullLayout._hoversubplot=e.id},r.onmouseout=function(P){t._dragging||sZ.unhover(t,P)},sZ.init(this.dragOptions)};function vZ(e){hZ.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var P6=N((RIe,bZ)=>{"use strict";var i6e=li(),o6e=Rc().attributes,nt=hi(),l6e=Xi().overrideAll,D6=bt().extendFlat,R6={title:{text:nt.title.text,font:nt.title.font},color:nt.color,tickmode:nt.minor.tickmode,nticks:D6({},nt.nticks,{dflt:6,min:1}),tick0:nt.tick0,dtick:nt.dtick,tickvals:nt.tickvals,ticktext:nt.ticktext,ticks:nt.ticks,ticklen:nt.ticklen,tickwidth:nt.tickwidth,tickcolor:nt.tickcolor,ticklabelstep:nt.ticklabelstep,showticklabels:nt.showticklabels,labelalias:nt.labelalias,showtickprefix:nt.showtickprefix,tickprefix:nt.tickprefix,showticksuffix:nt.showticksuffix,ticksuffix:nt.ticksuffix,showexponent:nt.showexponent,exponentformat:nt.exponentformat,minexponent:nt.minexponent,separatethousands:nt.separatethousands,tickfont:nt.tickfont,tickangle:nt.tickangle,tickformat:nt.tickformat,tickformatstops:nt.tickformatstops,hoverformat:nt.hoverformat,showline:D6({},nt.showline,{dflt:!0}),linecolor:nt.linecolor,linewidth:nt.linewidth,showgrid:D6({},nt.showgrid,{dflt:!0}),gridcolor:nt.gridcolor,gridwidth:nt.gridwidth,griddash:nt.griddash,layer:nt.layer,min:{valType:"number",dflt:0,min:0}},Fg=bZ.exports=l6e({domain:o6e({name:"ternary"}),bgcolor:{valType:"color",dflt:i6e.background},sum:{valType:"number",dflt:1,min:0},aaxis:R6,baxis:R6,caxis:R6},"plot","from-root");Fg.uirevision={valType:"any",editType:"none"};Fg.aaxis.uirevision=Fg.baxis.uirevision=Fg.caxis.uirevision={valType:"any",editType:"none"}});var _Z=N((PIe,xZ)=>{"use strict";var s6e=Ee(),u6e=_t(),f6e=Rc().defaults;xZ.exports=function(r,t,a,n){var i=n.type,o=n.attributes,l=n.handleDefaults,s=n.partition||"x",u=t._subplots[i],f=u.length,c=f&&u[0].replace(/\d+$/,""),v,d;function p(w,_){return s6e.coerce(v,d,o,w,_)}for(var m=0;m{"use strict";var c6e=Tr(),v6e=_t(),Ng=Ee(),h6e=_Z(),d6e=o1(),p6e=l1(),y6e=n1(),m6e=a1(),g6e=m4(),TZ=P6(),wZ=["aaxis","baxis","caxis"];AZ.exports=function(r,t,a){h6e(r,t,a,{type:"ternary",attributes:TZ,handleDefaults:b6e,font:t.font,paper_bgcolor:t.paper_bgcolor})};function b6e(e,r,t,a){var n=t("bgcolor"),i=t("sum");a.bgColor=c6e.combine(n,a.paper_bgcolor);for(var o,l,s,u=0;u=i&&(f.min=0,c.min=0,v.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function x6e(e,r,t,a){var n=TZ[r._name];function i(d,p){return Ng.coerce(e,r,n,d,p)}i("uirevision",a.uirevision),r.type="linear";var o=i("color"),l=o!==n.color.dflt?o:t.font.color,s=r._name,u=s.charAt(0).toUpperCase(),f="Component "+u,c=i("title.text",f);r._hovertitle=c===f?c:u,Ng.coerceFont(i,"title.font",t.font,{overrideDflt:{size:Ng.bigFont(t.font.size),color:l}}),i("min"),m6e(e,r,i,"linear"),p6e(e,r,i,"linear"),d6e(e,r,i,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),y6e(e,r,i,{outerTicks:!0});var v=i("showticklabels");v&&(Ng.coerceFont(i,"tickfont",t.font,{overrideDflt:{color:l}}),i("tickangle"),i("tickformat")),g6e(e,r,i,{dfltColor:o,bgColor:t.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:n}),i("hoverformat"),i("layer")}});var kZ=N(Fi=>{"use strict";var _6e=gZ(),w6e=Xp().getSubplotCalcData,T6e=Ee().counterRegex,$c="ternary";Fi.name=$c;var A6e=Fi.attr="subplot";Fi.idRoot=$c;Fi.idRegex=Fi.attrRegex=T6e($c);var M6e=Fi.attributes={};M6e[A6e]={valType:"subplotid",dflt:"ternary",editType:"calc"};Fi.layoutAttributes=P6();Fi.supplyLayoutDefaults=MZ();Fi.plot=function(r){for(var t=r._fullLayout,a=r.calcdata,n=t._subplots[$c],i=0;i{"use strict";SZ.exports={attributes:k6(),supplyDefaults:XW(),colorbar:o0(),formatLabels:$W(),calc:rZ(),plot:aZ(),style:ku().style,styleOnSelect:ku().styleOnSelect,hoverPoints:iZ(),selectPoints:p4(),eventData:lZ(),moduleType:"trace",name:"scatterternary",basePlotModule:kZ(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var CZ=N((IIe,LZ)=>{"use strict";LZ.exports=qZ()});var F6=N((OIe,DZ)=>{"use strict";var ya=ng(),Kc=bt().extendFlat,EZ=Qi().axisHoverFormat;DZ.exports={y:ya.y,x:ya.x,x0:ya.x0,y0:ya.y0,xhoverformat:EZ("x"),yhoverformat:EZ("y"),name:Kc({},ya.name,{}),orientation:Kc({},ya.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:ya.fillcolor,points:Kc({},ya.boxpoints,{}),jitter:Kc({},ya.jitter,{}),pointpos:Kc({},ya.pointpos,{}),width:Kc({},ya.width,{}),marker:ya.marker,text:ya.text,hovertext:ya.hovertext,hovertemplate:ya.hovertemplate,quartilemethod:ya.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:ya.offsetgroup,alignmentgroup:ya.alignmentgroup,selected:ya.selected,unselected:ya.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:ya.zorder}});var I6=N((BIe,RZ)=>{"use strict";var N6=ig(),z6=Ee().extendFlat;RZ.exports={violinmode:z6({},N6.boxmode,{}),violingap:z6({},N6.boxgap,{}),violingroupgap:z6({},N6.boxgroupgap,{})}});var IZ=N((HIe,zZ)=>{"use strict";var PZ=Ee(),k6e=Tr(),FZ=k0(),NZ=F6();zZ.exports=function(r,t,a,n){function i(T,k){return PZ.coerce(r,t,NZ,T,k)}function o(T,k){return PZ.coerce2(r,t,NZ,T,k)}if(FZ.handleSampleDefaults(r,t,i,n),t.visible!==!1){i("bandwidth"),i("side");var l=i("width");l||(i("scalegroup",t.name),i("scalemode"));var s=i("span"),u;Array.isArray(s)&&(u="manual"),i("spanmode",u);var f=i("line.color",(r.marker||{}).color||a),c=i("line.width"),v=i("fillcolor",k6e.addOpacity(t.line.color,.5));FZ.handlePointsDefaults(r,t,i,{prefix:""});var d=o("box.width"),p=o("box.fillcolor",v),m=o("box.line.color",f),y=o("box.line.width",c),x=i("box.visible",!!(d||p||m||y));x||(t.box={visible:!1});var w=o("meanline.color",f),_=o("meanline.width",c),b=i("meanline.visible",!!(w||_));b||(t.meanline={visible:!1}),i("quartilemethod"),i("zorder")}}});var BZ=N((UIe,OZ)=>{"use strict";var S6e=Ee(),q6e=I6(),L6e=Sw();OZ.exports=function(r,t,a){function n(i,o){return S6e.coerce(r,t,q6e,i,o)}L6e._supply(r,t,a,n,"violin")}});var zg=N(Uu=>{"use strict";var C6e=Ee(),E6e={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};Uu.makeKDE=function(e,r,t){var a=t.length,n=E6e.gaussian,i=e.bandwidth,o=1/(a*i);return function(l){for(var s=0,u=0;u{"use strict";var O6=Ee(),B6=Or(),D6e=Cw(),HZ=zg(),R6e=Ft().BADNUM;UZ.exports=function(r,t){var a=D6e(r,t);if(a[0].t.empty)return a;for(var n=r._fullLayout,i=B6.getFromId(r,t[t.orientation==="h"?"xaxis":"yaxis"]),o=1/0,l=-1/0,s=0,u=0,f=0;f{"use strict";var z6e=Ew().setPositionOffset,YZ=["v","h"];VZ.exports=function(r,t){for(var a=r.calcdata,n=t.xaxis,i=t.yaxis,o=0;o{"use strict";var H6=Sr(),U6=Ee(),I6e=Wr(),G6=Dw(),O6e=l4(),B6e=zg();WZ.exports=function(r,t,a,n){var i=r._context.staticPlot,o=r._fullLayout,l=t.xaxis,s=t.yaxis;function u(f,c){var v=O6e(f,{xaxis:l,yaxis:s,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return I6e.smoothopen(v[0],1)}U6.makeTraceGroups(n,a,"trace violins").each(function(f){var c=H6.select(this),v=f[0],d=v.t,p=v.trace;if(p.visible!==!0||d.empty){c.remove();return}var m=d.bPos,y=d.bdPos,x=t[d.valLetter+"axis"],w=t[d.posLetter+"axis"],_=p.side==="both",b=_||p.side==="positive",T=_||p.side==="negative",k=c.selectAll("path.violin").data(U6.identity);k.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","violin"),k.exit().remove(),k.each(function(O){var B=H6.select(this),V=O.density,G=V.length,U=w.c2l(O.pos+m,!0),Y=w.l2p(U),J;if(p.width)J=d.maxKDE/y;else{var Z=o._violinScaleGroupStats[p.scalegroup];J=p.scalemode==="count"?Z.maxKDE/y*(Z.maxCount/O.pts.length):Z.maxKDE/y}var re,fe,ie,ue,K,ye,se;if(b){for(ye=new Array(G),ue=0;ue{"use strict";var XZ=Sr(),Qc=Tr(),H6e=ku().stylePoints;JZ.exports=function(r){var t=XZ.select(r).selectAll("g.trace.violins");t.style("opacity",function(a){return a[0].trace.opacity}),t.each(function(a){var n=a[0].trace,i=XZ.select(this),o=n.box||{},l=o.line||{},s=n.meanline||{},u=s.width;i.selectAll("path.violin").style("stroke-width",n.line.width+"px").call(Qc.stroke,n.line.color).call(Qc.fill,n.fillcolor),i.selectAll("path.box").style("stroke-width",l.width+"px").call(Qc.stroke,l.color).call(Qc.fill,o.fillcolor);var f={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};i.selectAll("path.mean").style(f).call(Qc.stroke,s.color),i.selectAll("path.meanline").style(f).call(Qc.stroke,s.color),H6e(i,n,r)})}});var rX=N((ZIe,eX)=>{"use strict";var U6e=Tr(),Y6=Ee(),G6e=Or(),KZ=Iw(),QZ=zg();eX.exports=function(r,t,a,n,i){i||(i={});var o=i.hoverLayer,l=r.cd,s=l[0].trace,u=s.hoveron,f=u.indexOf("violins")!==-1,c=u.indexOf("kde")!==-1,v=[],d,p;if(f||c){var m=KZ.hoverOnBoxes(r,t,a,n);if(c&&m.length>0){var y=r.xa,x=r.ya,w,_,b,T,k;s.orientation==="h"?(k=t,w="y",b=x,_="x",T=y):(k=a,w="x",b=y,_="y",T=x);var M=l[r.index];if(k>=M.span[0]&&k<=M.span[1]){var S=Y6.extendFlat({},r),E=T.c2p(k,!0),D=QZ.getKdeValue(M,s,k),P=QZ.getPositionOnKdePath(M,s,E),R=b._offset,z=b._length;S[w+"0"]=P[0],S[w+"1"]=P[1],S[_+"0"]=S[_+"1"]=E,S[_+"Label"]=_+": "+G6e.hoverLabelText(T,k,s[_+"hoverformat"])+", "+l[0].t.labels.kde+" "+D.toFixed(3);for(var O=0,B=0;B{"use strict";tX.exports={attributes:F6(),layoutAttributes:I6(),supplyDefaults:IZ(),crossTraceDefaults:k0().crossTraceDefaults,supplyLayoutDefaults:BZ(),calc:GZ(),crossTraceCalc:jZ(),plot:ZZ(),style:$Z(),styleOnSelect:ku().styleOnSelect,hoverPoints:rX(),selectPoints:Ow(),moduleType:"trace",name:"violin",basePlotModule:qi(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var iX=N((JIe,nX)=>{"use strict";nX.exports=aX()});var ev=N(($Ie,oX)=>{"use strict";oX.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var r=e.slice(0,3);return r[1]=r[1]+"%",r[2]=r[2]+"%",r},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var r=e.slice(0,4);return r[1]=r[1]+"%",r[2]=r[2]+"%",r},suffix:["\xB0","%","%",""]}}}});var V6=N((KIe,sX)=>{"use strict";var Y6e=mn(),V6e=wi().zorder,j6e=La().hovertemplateAttrs,lX=bt().extendFlat,W6e=ev().colormodel,B0=["rgb","rgba","rgba256","hsl","hsla"],Z6e=[],X6e=[];for(rv=0;rv{"use strict";var J6e=Ee(),$6e=V6(),uX=ev(),K6e=yl().IMAGE_URL_PREFIX;fX.exports=function(r,t){function a(o,l){return J6e.coerce(r,t,$6e,o,l)}a("source"),t.source&&!t.source.match(K6e)&&delete t.source,t._hasSource=!!t.source;var n=a("z");if(t._hasZ=!(n===void 0||!n.length||!n[0]||!n[0].length),!t._hasZ&&!t._hasSource){t.visible=!1;return}a("x0"),a("y0"),a("dx"),a("dy");var i;t._hasZ?(a("colormodel","rgb"),i=uX.colormodel[t.colormodel],a("zmin",i.zminDflt||i.min),a("zmax",i.zmaxDflt||i.max)):t._hasSource&&(t.colormodel="rgba256",i=uX.colormodel[t.colormodel],t.zmin=i.zminDflt,t.zmax=i.zmaxDflt),a("zsmooth"),a("text"),a("hovertext"),a("hovertemplate"),t._length=null,a("zorder")}});var kl=N((eOe,j6)=>{typeof Object.create=="function"?j6.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:j6.exports=function(r,t){if(t){r.super_=t;var a=function(){};a.prototype=t.prototype,r.prototype=new a,r.prototype.constructor=r}}});var W6=N((rOe,vX)=>{vX.exports=Qs().EventEmitter});var pX=N(Ig=>{"use strict";Ig.byteLength=e7e;Ig.toByteArray=t7e;Ig.fromByteArray=i7e;var jo=[],Ni=[],Q6e=typeof Uint8Array!="undefined"?Uint8Array:Array,Z6="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Gu=0,hX=Z6.length;Gu0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var a=t===r?0:4-t%4;return[t,a]}function e7e(e){var r=dX(e),t=r[0],a=r[1];return(t+a)*3/4-a}function r7e(e,r,t){return(r+t)*3/4-t}function t7e(e){var r,t=dX(e),a=t[0],n=t[1],i=new Q6e(r7e(e,a,n)),o=0,l=n>0?a-4:a,s;for(s=0;s>16&255,i[o++]=r>>8&255,i[o++]=r&255;return n===2&&(r=Ni[e.charCodeAt(s)]<<2|Ni[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=Ni[e.charCodeAt(s)]<<10|Ni[e.charCodeAt(s+1)]<<4|Ni[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function a7e(e){return jo[e>>18&63]+jo[e>>12&63]+jo[e>>6&63]+jo[e&63]}function n7e(e,r,t){for(var a,n=[],i=r;il?l:o+i));return a===1?(r=e[t-1],n.push(jo[r>>2]+jo[r<<4&63]+"==")):a===2&&(r=(e[t-2]<<8)+e[t-1],n.push(jo[r>>10]+jo[r>>4&63]+jo[r<<2&63]+"=")),n.join("")}});var yX=N(X6=>{X6.read=function(e,r,t,a,n){var i,o,l=n*8-a-1,s=(1<>1,f=-7,c=t?n-1:0,v=t?-1:1,d=e[r+c];for(c+=v,i=d&(1<<-f)-1,d>>=-f,f+=l;f>0;i=i*256+e[r+c],c+=v,f-=8);for(o=i&(1<<-f)-1,i>>=-f,f+=a;f>0;o=o*256+e[r+c],c+=v,f-=8);if(i===0)i=1-u;else{if(i===s)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,a),i=i-u}return(d?-1:1)*o*Math.pow(2,i-a)};X6.write=function(e,r,t,a,n,i){var o,l,s,u=i*8-n-1,f=(1<>1,v=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:i-1,p=a?1:-1,m=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,o=f):(o=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+c>=1?r+=v/s:r+=v*Math.pow(2,1-c),r*s>=2&&(o++,s/=2),o+c>=f?(l=0,o=f):o+c>=1?(l=(r*s-1)*Math.pow(2,n),o=o+c):(l=r*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[t+d]=l&255,d+=p,l/=256,n-=8);for(o=o<0;e[t+d]=o&255,d+=p,o/=256,u-=8);e[t+d-p]|=m*128}});var ov=N(iv=>{"use strict";var J6=pX(),av=yX(),mX=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;iv.Buffer=Ze;iv.SlowBuffer=c7e;iv.INSPECT_MAX_BYTES=50;var Og=2147483647;iv.kMaxLength=Og;Ze.TYPED_ARRAY_SUPPORT=o7e();!Ze.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o7e(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(e){return!1}}Object.defineProperty(Ze.prototype,"parent",{enumerable:!0,get:function(){if(Ze.isBuffer(this))return this.buffer}});Object.defineProperty(Ze.prototype,"offset",{enumerable:!0,get:function(){if(Ze.isBuffer(this))return this.byteOffset}});function Sl(e){if(e>Og)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,Ze.prototype),r}function Ze(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return e7(e)}return _X(e,r,t)}Ze.poolSize=8192;function _X(e,r,t){if(typeof e=="string")return s7e(e,r);if(ArrayBuffer.isView(e))return u7e(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Wo(e,ArrayBuffer)||e&&Wo(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Wo(e,SharedArrayBuffer)||e&&Wo(e.buffer,SharedArrayBuffer)))return K6(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let a=e.valueOf&&e.valueOf();if(a!=null&&a!==e)return Ze.from(a,r,t);let n=f7e(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Ze.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}Ze.from=function(e,r,t){return _X(e,r,t)};Object.setPrototypeOf(Ze.prototype,Uint8Array.prototype);Object.setPrototypeOf(Ze,Uint8Array);function wX(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l7e(e,r,t){return wX(e),e<=0?Sl(e):r!==void 0?typeof t=="string"?Sl(e).fill(r,t):Sl(e).fill(r):Sl(e)}Ze.alloc=function(e,r,t){return l7e(e,r,t)};function e7(e){return wX(e),Sl(e<0?0:r7(e)|0)}Ze.allocUnsafe=function(e){return e7(e)};Ze.allocUnsafeSlow=function(e){return e7(e)};function s7e(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!Ze.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=TX(e,r)|0,a=Sl(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function $6(e){let r=e.length<0?0:r7(e.length)|0,t=Sl(r);for(let a=0;a=Og)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Og.toString(16)+" bytes");return e|0}function c7e(e){return+e!=e&&(e=0),Ze.alloc(+e)}Ze.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==Ze.prototype};Ze.compare=function(r,t){if(Wo(r,Uint8Array)&&(r=Ze.from(r,r.offset,r.byteLength)),Wo(t,Uint8Array)&&(t=Ze.from(t,t.offset,t.byteLength)),!Ze.isBuffer(r)||!Ze.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let a=r.length,n=t.length;for(let i=0,o=Math.min(a,n);in.length?(Ze.isBuffer(o)||(o=Ze.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(Ze.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function TX(e,r){if(Ze.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Wo(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,a=arguments.length>2&&arguments[2]===!0;if(!a&&t===0)return 0;let n=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return Q6(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return DX(e).length;default:if(n)return a?-1:Q6(e).length;r=(""+r).toLowerCase(),n=!0}}Ze.byteLength=TX;function v7e(e,r,t){let a=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return w7e(this,r,t);case"utf8":case"utf-8":return MX(this,r,t);case"ascii":return x7e(this,r,t);case"latin1":case"binary":return _7e(this,r,t);case"base64":return g7e(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T7e(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}Ze.prototype._isBuffer=!0;function Yu(e,r,t){let a=e[r];e[r]=e[t],e[t]=a}Ze.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(r+=" ... "),""};mX&&(Ze.prototype[mX]=Ze.prototype.inspect);Ze.prototype.compare=function(r,t,a,n,i){if(Wo(r,Uint8Array)&&(r=Ze.from(r,r.offset,r.byteLength)),!Ze.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),a===void 0&&(a=r?r.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||a>r.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=a)return 0;if(n>=i)return-1;if(t>=a)return 1;if(t>>>=0,a>>>=0,n>>>=0,i>>>=0,this===r)return 0;let o=i-n,l=a-t,s=Math.min(o,l),u=this.slice(n,i),f=r.slice(t,a);for(let c=0;c2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,a7(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=Ze.from(r,a)),Ze.isBuffer(r))return r.length===0?-1:gX(e,r,t,a,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):gX(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function gX(e,r,t,a,n){let i=1,o=e.length,l=r.length;if(a!==void 0&&(a=String(a).toLowerCase(),a==="ucs2"||a==="ucs-2"||a==="utf16le"||a==="utf-16le")){if(e.length<2||r.length<2)return-1;i=2,o/=2,l/=2,t/=2}function s(f,c){return i===1?f[c]:f.readUInt16BE(c*i)}let u;if(n){let f=-1;for(u=t;uo&&(t=o-l),u=t;u>=0;u--){let f=!0;for(let c=0;cn&&(a=n)):a=n;let i=r.length;a>i/2&&(a=i/2);let o;for(o=0;o>>0,isFinite(a)?(a=a>>>0,n===void 0&&(n="utf8")):(n=a,a=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((a===void 0||a>i)&&(a=i),r.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return h7e(this,r,t,a);case"utf8":case"utf-8":return d7e(this,r,t,a);case"ascii":case"latin1":case"binary":return p7e(this,r,t,a);case"base64":return y7e(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m7e(this,r,t,a);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};Ze.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function g7e(e,r,t){return r===0&&t===e.length?J6.fromByteArray(e):J6.fromByteArray(e.slice(r,t))}function MX(e,r,t){t=Math.min(e.length,t);let a=[],n=r;for(;n239?4:i>223?3:i>191?2:1;if(n+l<=t){let s,u,f,c;switch(l){case 1:i<128&&(o=i);break;case 2:s=e[n+1],(s&192)===128&&(c=(i&31)<<6|s&63,c>127&&(o=c));break;case 3:s=e[n+1],u=e[n+2],(s&192)===128&&(u&192)===128&&(c=(i&15)<<12|(s&63)<<6|u&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:s=e[n+1],u=e[n+2],f=e[n+3],(s&192)===128&&(u&192)===128&&(f&192)===128&&(c=(i&15)<<18|(s&63)<<12|(u&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,a.push(o>>>10&1023|55296),o=56320|o&1023),a.push(o),n+=l}return b7e(a)}var bX=4096;function b7e(e){let r=e.length;if(r<=bX)return String.fromCharCode.apply(String,e);let t="",a=0;for(;aa)&&(t=a);let n="";for(let i=r;ia&&(r=a),t<0?(t+=a,t<0&&(t=0)):t>a&&(t=a),tt)throw new RangeError("Trying to access beyond buffer length")}Ze.prototype.readUintLE=Ze.prototype.readUIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||Ya(r,t,this.length);let n=this[r],i=1,o=0;for(;++o>>0,t=t>>>0,a||Ya(r,t,this.length);let n=this[r+--t],i=1;for(;t>0&&(i*=256);)n+=this[r+--t]*i;return n};Ze.prototype.readUint8=Ze.prototype.readUInt8=function(r,t){return r=r>>>0,t||Ya(r,1,this.length),this[r]};Ze.prototype.readUint16LE=Ze.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||Ya(r,2,this.length),this[r]|this[r+1]<<8};Ze.prototype.readUint16BE=Ze.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||Ya(r,2,this.length),this[r]<<8|this[r+1]};Ze.prototype.readUint32LE=Ze.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||Ya(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};Ze.prototype.readUint32BE=Ze.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||Ya(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};Ze.prototype.readBigUInt64LE=xs(function(r){r=r>>>0,nv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&H0(r,this.length-8);let n=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,i=this[++r]+this[++r]*2**8+this[++r]*2**16+a*2**24;return BigInt(n)+(BigInt(i)<>>0,nv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&H0(r,this.length-8);let n=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],i=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a;return(BigInt(n)<>>0,t=t>>>0,a||Ya(r,t,this.length);let n=this[r],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};Ze.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||Ya(r,t,this.length);let n=t,i=1,o=this[r+--n];for(;n>0&&(i*=256);)o+=this[r+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};Ze.prototype.readInt8=function(r,t){return r=r>>>0,t||Ya(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};Ze.prototype.readInt16LE=function(r,t){r=r>>>0,t||Ya(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};Ze.prototype.readInt16BE=function(r,t){r=r>>>0,t||Ya(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};Ze.prototype.readInt32LE=function(r,t){return r=r>>>0,t||Ya(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};Ze.prototype.readInt32BE=function(r,t){return r=r>>>0,t||Ya(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};Ze.prototype.readBigInt64LE=xs(function(r){r=r>>>0,nv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&H0(r,this.length-8);let n=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(a<<24);return(BigInt(n)<>>0,nv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&H0(r,this.length-8);let n=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(n)<>>0,t||Ya(r,4,this.length),av.read(this,r,!0,23,4)};Ze.prototype.readFloatBE=function(r,t){return r=r>>>0,t||Ya(r,4,this.length),av.read(this,r,!1,23,4)};Ze.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||Ya(r,8,this.length),av.read(this,r,!0,52,8)};Ze.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||Ya(r,8,this.length),av.read(this,r,!1,52,8)};function Un(e,r,t,a,n,i){if(!Ze.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.length)throw new RangeError("Index out of range")}Ze.prototype.writeUintLE=Ze.prototype.writeUIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;Un(this,r,t,a,l,0)}let i=1,o=0;for(this[t]=r&255;++o>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;Un(this,r,t,a,l,0)}let i=a-1,o=1;for(this[t+i]=r&255;--i>=0&&(o*=256);)this[t+i]=r/o&255;return t+a};Ze.prototype.writeUint8=Ze.prototype.writeUInt8=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,1,255,0),this[t]=r&255,t+1};Ze.prototype.writeUint16LE=Ze.prototype.writeUInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};Ze.prototype.writeUint16BE=Ze.prototype.writeUInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};Ze.prototype.writeUint32LE=Ze.prototype.writeUInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};Ze.prototype.writeUint32BE=Ze.prototype.writeUInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function kX(e,r,t,a,n){EX(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,t}function SX(e,r,t,a,n){EX(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t+7]=i,i=i>>8,e[t+6]=i,i=i>>8,e[t+5]=i,i=i>>8,e[t+4]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=o,o=o>>8,e[t+2]=o,o=o>>8,e[t+1]=o,o=o>>8,e[t]=o,t+8}Ze.prototype.writeBigUInt64LE=xs(function(r,t=0){return kX(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});Ze.prototype.writeBigUInt64BE=xs(function(r,t=0){return SX(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});Ze.prototype.writeIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);Un(this,r,t,a,s-1,-s)}let i=0,o=1,l=0;for(this[t]=r&255;++i>0)-l&255;return t+a};Ze.prototype.writeIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);Un(this,r,t,a,s-1,-s)}let i=a-1,o=1,l=0;for(this[t+i]=r&255;--i>=0&&(o*=256);)r<0&&l===0&&this[t+i+1]!==0&&(l=1),this[t+i]=(r/o>>0)-l&255;return t+a};Ze.prototype.writeInt8=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};Ze.prototype.writeInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};Ze.prototype.writeInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};Ze.prototype.writeInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};Ze.prototype.writeInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};Ze.prototype.writeBigInt64LE=xs(function(r,t=0){return kX(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Ze.prototype.writeBigInt64BE=xs(function(r,t=0){return SX(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function qX(e,r,t,a,n,i){if(t+a>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function LX(e,r,t,a,n){return r=+r,t=t>>>0,n||qX(e,r,t,4,34028234663852886e22,-34028234663852886e22),av.write(e,r,t,a,23,4),t+4}Ze.prototype.writeFloatLE=function(r,t,a){return LX(this,r,t,!0,a)};Ze.prototype.writeFloatBE=function(r,t,a){return LX(this,r,t,!1,a)};function CX(e,r,t,a,n){return r=+r,t=t>>>0,n||qX(e,r,t,8,17976931348623157e292,-17976931348623157e292),av.write(e,r,t,a,52,8),t+8}Ze.prototype.writeDoubleLE=function(r,t,a){return CX(this,r,t,!0,a)};Ze.prototype.writeDoubleBE=function(r,t,a){return CX(this,r,t,!1,a)};Ze.prototype.copy=function(r,t,a,n){if(!Ze.isBuffer(r))throw new TypeError("argument should be a Buffer");if(a||(a=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t>>0,a=a===void 0?this.length:a>>>0,r||(r=0);let i;if(typeof r=="number")for(i=t;i2**32?n=xX(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=xX(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function xX(e){let r="",t=e.length,a=e[0]==="-"?1:0;for(;t>=a+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return`${e.slice(0,t)}${r}`}function A7e(e,r,t){nv(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&H0(r,e.length-(t+1))}function EX(e,r,t,a,n,i){if(e>t||e3?r===0||r===BigInt(0)?l=`>= 0${o} and < 2${o} ** ${(i+1)*8}${o}`:l=`>= -(2${o} ** ${(i+1)*8-1}${o}) and < 2 ** ${(i+1)*8-1}${o}`:l=`>= ${r}${o} and <= ${t}${o}`,new tv.ERR_OUT_OF_RANGE("value",l,e)}A7e(a,n,i)}function nv(e,r){if(typeof e!="number")throw new tv.ERR_INVALID_ARG_TYPE(r,"number",e)}function H0(e,r,t){throw Math.floor(e)!==e?(nv(e,t),new tv.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new tv.ERR_BUFFER_OUT_OF_BOUNDS:new tv.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var M7e=/[^+/0-9A-Za-z-_]/g;function k7e(e){if(e=e.split("=")[0],e=e.trim().replace(M7e,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Q6(e,r){r=r||1/0;let t,a=e.length,n=null,i=[];for(let o=0;o55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&i.push(239,191,189);continue}else if(o+1===a){(r-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&i.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;i.push(t)}else if(t<2048){if((r-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function S7e(e){let r=[];for(let t=0;t>8,n=t%256,i.push(n),i.push(a);return i}function DX(e){return J6.toByteArray(k7e(e))}function Bg(e,r,t,a){let n;for(n=0;n=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function Wo(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function a7(e){return e!==e}var L7e=function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let a=t*16;for(let n=0;n<16;++n)r[a+n]=e[t]+e[n]}return r}();function xs(e){return typeof BigInt=="undefined"?C7e:e}function C7e(){throw new Error("BigInt not supported")}});var Hg=N((oOe,RX)=>{"use strict";RX.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),a=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;r[t]=n;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var o=Object.getOwnPropertySymbols(r);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(r,t);if(l.value!==n||l.enumerable!==!0)return!1}return!0}});var U0=N((lOe,PX)=>{"use strict";var E7e=Hg();PX.exports=function(){return E7e()&&!!Symbol.toStringTag}});var n7=N((sOe,FX)=>{"use strict";FX.exports=Object});var zX=N((uOe,NX)=>{"use strict";NX.exports=Error});var OX=N((fOe,IX)=>{"use strict";IX.exports=EvalError});var HX=N((cOe,BX)=>{"use strict";BX.exports=RangeError});var GX=N((vOe,UX)=>{"use strict";UX.exports=ReferenceError});var i7=N((hOe,YX)=>{"use strict";YX.exports=SyntaxError});var lv=N((dOe,VX)=>{"use strict";VX.exports=TypeError});var WX=N((pOe,jX)=>{"use strict";jX.exports=URIError});var XX=N((yOe,ZX)=>{"use strict";ZX.exports=Math.abs});var $X=N((mOe,JX)=>{"use strict";JX.exports=Math.floor});var QX=N((gOe,KX)=>{"use strict";KX.exports=Math.max});var rJ=N((bOe,eJ)=>{"use strict";eJ.exports=Math.min});var aJ=N((xOe,tJ)=>{"use strict";tJ.exports=Math.pow});var iJ=N((_Oe,nJ)=>{"use strict";nJ.exports=Math.round});var lJ=N((wOe,oJ)=>{"use strict";oJ.exports=Number.isNaN||function(r){return r!==r}});var uJ=N((TOe,sJ)=>{"use strict";var D7e=lJ();sJ.exports=function(r){return D7e(r)||r===0?r:r<0?-1:1}});var cJ=N((AOe,fJ)=>{"use strict";fJ.exports=Object.getOwnPropertyDescriptor});var Vu=N((MOe,vJ)=>{"use strict";var Ug=cJ();if(Ug)try{Ug([],"length")}catch(e){Ug=null}vJ.exports=Ug});var G0=N((kOe,hJ)=>{"use strict";var Gg=Object.defineProperty||!1;if(Gg)try{Gg({},"a",{value:1})}catch(e){Gg=!1}hJ.exports=Gg});var yJ=N((SOe,pJ)=>{"use strict";var dJ=typeof Symbol!="undefined"&&Symbol,R7e=Hg();pJ.exports=function(){return typeof dJ!="function"||typeof Symbol!="function"||typeof dJ("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:R7e()}});var o7=N((qOe,mJ)=>{"use strict";mJ.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var l7=N((LOe,gJ)=>{"use strict";var P7e=n7();gJ.exports=P7e.getPrototypeOf||null});var _J=N((COe,xJ)=>{"use strict";var F7e="Function.prototype.bind called on incompatible ",N7e=Object.prototype.toString,z7e=Math.max,I7e="[object Function]",bJ=function(r,t){for(var a=[],n=0;n{"use strict";var H7e=_J();wJ.exports=Function.prototype.bind||H7e});var Yg=N((DOe,TJ)=>{"use strict";TJ.exports=Function.prototype.call});var s7=N((ROe,AJ)=>{"use strict";AJ.exports=Function.prototype.apply});var kJ=N((POe,MJ)=>{"use strict";MJ.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var qJ=N((FOe,SJ)=>{"use strict";var U7e=sv(),G7e=s7(),Y7e=Yg(),V7e=kJ();SJ.exports=V7e||U7e.call(Y7e,G7e)});var CJ=N((NOe,LJ)=>{"use strict";var j7e=sv(),W7e=lv(),Z7e=Yg(),X7e=qJ();LJ.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new W7e("a function is required");return X7e(j7e,Z7e,r)}});var NJ=N((zOe,FJ)=>{"use strict";var J7e=CJ(),EJ=Vu(),RJ;try{RJ=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var u7=!!RJ&&EJ&&EJ(Object.prototype,"__proto__"),PJ=Object,DJ=PJ.getPrototypeOf;FJ.exports=u7&&typeof u7.get=="function"?J7e([u7.get]):typeof DJ=="function"?function(r){return DJ(r==null?r:PJ(r))}:!1});var HJ=N((IOe,BJ)=>{"use strict";var zJ=o7(),IJ=l7(),OJ=NJ();BJ.exports=zJ?function(r){return zJ(r)}:IJ?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return IJ(r)}:OJ?function(r){return OJ(r)}:null});var GJ=N((OOe,UJ)=>{"use strict";var $7e=Function.prototype.call,K7e=Object.prototype.hasOwnProperty,Q7e=sv();UJ.exports=Q7e.call($7e,K7e)});var Wg=N((BOe,XJ)=>{"use strict";var it,eTe=n7(),rTe=zX(),tTe=OX(),aTe=HX(),nTe=GX(),vv=i7(),cv=lv(),iTe=WX(),oTe=XX(),lTe=$X(),sTe=QX(),uTe=rJ(),fTe=aJ(),cTe=iJ(),vTe=uJ(),WJ=Function,f7=function(e){try{return WJ('"use strict"; return ('+e+").constructor;")()}catch(r){}},Y0=Vu(),hTe=G0(),c7=function(){throw new cv},dTe=Y0?function(){try{return arguments.callee,c7}catch(e){try{return Y0(arguments,"callee").get}catch(r){return c7}}}():c7,uv=yJ()(),Va=HJ(),pTe=l7(),yTe=o7(),ZJ=s7(),V0=Yg(),fv={},mTe=typeof Uint8Array=="undefined"||!Va?it:Va(Uint8Array),ju={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?it:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?it:ArrayBuffer,"%ArrayIteratorPrototype%":uv&&Va?Va([][Symbol.iterator]()):it,"%AsyncFromSyncIteratorPrototype%":it,"%AsyncFunction%":fv,"%AsyncGenerator%":fv,"%AsyncGeneratorFunction%":fv,"%AsyncIteratorPrototype%":fv,"%Atomics%":typeof Atomics=="undefined"?it:Atomics,"%BigInt%":typeof BigInt=="undefined"?it:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?it:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?it:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?it:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":rTe,"%eval%":eval,"%EvalError%":tTe,"%Float16Array%":typeof Float16Array=="undefined"?it:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?it:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?it:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?it:FinalizationRegistry,"%Function%":WJ,"%GeneratorFunction%":fv,"%Int8Array%":typeof Int8Array=="undefined"?it:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?it:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?it:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":uv&&Va?Va(Va([][Symbol.iterator]())):it,"%JSON%":typeof JSON=="object"?JSON:it,"%Map%":typeof Map=="undefined"?it:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!uv||!Va?it:Va(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":eTe,"%Object.getOwnPropertyDescriptor%":Y0,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?it:Promise,"%Proxy%":typeof Proxy=="undefined"?it:Proxy,"%RangeError%":aTe,"%ReferenceError%":nTe,"%Reflect%":typeof Reflect=="undefined"?it:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?it:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!uv||!Va?it:Va(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?it:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":uv&&Va?Va(""[Symbol.iterator]()):it,"%Symbol%":uv?Symbol:it,"%SyntaxError%":vv,"%ThrowTypeError%":dTe,"%TypedArray%":mTe,"%TypeError%":cv,"%Uint8Array%":typeof Uint8Array=="undefined"?it:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?it:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?it:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?it:Uint32Array,"%URIError%":iTe,"%WeakMap%":typeof WeakMap=="undefined"?it:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?it:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?it:WeakSet,"%Function.prototype.call%":V0,"%Function.prototype.apply%":ZJ,"%Object.defineProperty%":hTe,"%Object.getPrototypeOf%":pTe,"%Math.abs%":oTe,"%Math.floor%":lTe,"%Math.max%":sTe,"%Math.min%":uTe,"%Math.pow%":fTe,"%Math.round%":cTe,"%Math.sign%":vTe,"%Reflect.getPrototypeOf%":yTe};if(Va)try{null.error}catch(e){YJ=Va(Va(e)),ju["%Error.prototype%"]=YJ}var YJ,gTe=function e(r){var t;if(r==="%AsyncFunction%")t=f7("async function () {}");else if(r==="%GeneratorFunction%")t=f7("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=f7("async function* () {}");else if(r==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(t=a.prototype)}else if(r==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Va&&(t=Va(n.prototype))}return ju[r]=t,t},VJ={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},j0=sv(),Vg=GJ(),bTe=j0.call(V0,Array.prototype.concat),xTe=j0.call(ZJ,Array.prototype.splice),jJ=j0.call(V0,String.prototype.replace),jg=j0.call(V0,String.prototype.slice),_Te=j0.call(V0,RegExp.prototype.exec),wTe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,TTe=/\\(\\)?/g,ATe=function(r){var t=jg(r,0,1),a=jg(r,-1);if(t==="%"&&a!=="%")throw new vv("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&t!=="%")throw new vv("invalid intrinsic syntax, expected opening `%`");var n=[];return jJ(r,wTe,function(i,o,l,s){n[n.length]=l?jJ(s,TTe,"$1"):o||i}),n},MTe=function(r,t){var a=r,n;if(Vg(VJ,a)&&(n=VJ[a],a="%"+n[0]+"%"),Vg(ju,a)){var i=ju[a];if(i===fv&&(i=gTe(a)),typeof i=="undefined"&&!t)throw new cv("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:i}}throw new vv("intrinsic "+r+" does not exist!")};XJ.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new cv("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new cv('"allowMissing" argument must be a boolean');if(_Te(/^%?[^%]*%?$/,r)===null)throw new vv("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=ATe(r),n=a.length>0?a[0]:"",i=MTe("%"+n+"%",t),o=i.name,l=i.value,s=!1,u=i.alias;u&&(n=u[0],xTe(a,bTe([0,1],u)));for(var f=1,c=!0;f=a.length){var m=Y0(l,v);c=!!m,c&&"get"in m&&!("originalValue"in m.get)?l=m.get:l=l[v]}else c=Vg(l,v),l=l[v];c&&!s&&(ju[o]=l)}}return l}});var QJ=N((HOe,KJ)=>{"use strict";var JJ=G0(),kTe=i7(),hv=lv(),$J=Vu();KJ.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new hv("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new hv("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new hv("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new hv("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new hv("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new hv("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,s=!!$J&&$J(r,t);if(JJ)JJ(r,t,{configurable:o===null&&s?s.configurable:!o,enumerable:n===null&&s?s.enumerable:!n,value:a,writable:i===null&&s?s.writable:!i});else if(l||!n&&!i&&!o)r[t]=a;else throw new kTe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var h7=N((UOe,r$)=>{"use strict";var v7=G0(),e$=function(){return!!v7};e$.hasArrayLengthDefineBug=function(){if(!v7)return null;try{return v7([],"length",{value:1}).length!==1}catch(r){return!0}};r$.exports=e$});var o$=N((GOe,i$)=>{"use strict";var STe=Wg(),t$=QJ(),qTe=h7()(),a$=Vu(),n$=lv(),LTe=STe("%Math.floor%");i$.exports=function(r,t){if(typeof r!="function")throw new n$("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||LTe(t)!==t)throw new n$("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in r&&a$){var o=a$(r,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(i=!1)}return(n||i||!a)&&(qTe?t$(r,"length",t,!0,!0):t$(r,"length",t)),r}});var W0=N((YOe,Zg)=>{"use strict";var d7=sv(),Xg=Wg(),CTe=o$(),ETe=lv(),u$=Xg("%Function.prototype.apply%"),f$=Xg("%Function.prototype.call%"),c$=Xg("%Reflect.apply%",!0)||d7.call(f$,u$),l$=G0(),DTe=Xg("%Math.max%");Zg.exports=function(r){if(typeof r!="function")throw new ETe("a function is required");var t=c$(d7,f$,arguments);return CTe(t,1+DTe(0,r.length-(arguments.length-1)),!0)};var s$=function(){return c$(d7,u$,arguments)};l$?l$(Zg.exports,"apply",{value:s$}):Zg.exports.apply=s$});var dv=N((VOe,d$)=>{"use strict";var v$=Wg(),h$=W0(),RTe=h$(v$("String.prototype.indexOf"));d$.exports=function(r,t){var a=v$(r,!!t);return typeof a=="function"&&RTe(r,".prototype.")>-1?h$(a):a}});var m$=N((jOe,y$)=>{"use strict";var PTe=U0()(),FTe=dv(),p7=FTe("Object.prototype.toString"),Jg=function(r){return PTe&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:p7(r)==="[object Arguments]"},p$=function(r){return Jg(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&p7(r)!=="[object Array]"&&p7(r.callee)==="[object Function]"},NTe=function(){return Jg(arguments)}();Jg.isLegacyArguments=p$;y$.exports=NTe?Jg:p$});var x$=N((WOe,b$)=>{"use strict";var zTe=Object.prototype.toString,ITe=Function.prototype.toString,OTe=/^\s*(?:function)?\*/,g$=U0()(),y7=Object.getPrototypeOf,BTe=function(){if(!g$)return!1;try{return Function("return function*() {}")()}catch(e){}},m7;b$.exports=function(r){if(typeof r!="function")return!1;if(OTe.test(ITe.call(r)))return!0;if(!g$){var t=zTe.call(r);return t==="[object GeneratorFunction]"}if(!y7)return!1;if(typeof m7=="undefined"){var a=BTe();m7=a?y7(a):!1}return y7(r)===m7}});var A$=N((ZOe,T$)=>{"use strict";var w$=Function.prototype.toString,pv=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,b7,$g;if(typeof pv=="function"&&typeof Object.defineProperty=="function")try{b7=Object.defineProperty({},"length",{get:function(){throw $g}}),$g={},pv(function(){throw 42},null,b7)}catch(e){e!==$g&&(pv=null)}else pv=null;var HTe=/^\s*class\b/,x7=function(r){try{var t=w$.call(r);return HTe.test(t)}catch(a){return!1}},g7=function(r){try{return x7(r)?!1:(w$.call(r),!0)}catch(t){return!1}},Kg=Object.prototype.toString,UTe="[object Object]",GTe="[object Function]",YTe="[object GeneratorFunction]",VTe="[object HTMLAllCollection]",jTe="[object HTML document.all class]",WTe="[object HTMLCollection]",ZTe=typeof Symbol=="function"&&!!Symbol.toStringTag,XTe=!(0 in[,]),_7=function(){return!1};typeof document=="object"&&(_$=document.all,Kg.call(_$)===Kg.call(document.all)&&(_7=function(r){if((XTe||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=Kg.call(r);return(t===VTe||t===jTe||t===WTe||t===UTe)&&r("")==null}catch(a){}return!1}));var _$;T$.exports=pv?function(r){if(_7(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{pv(r,null,b7)}catch(t){if(t!==$g)return!1}return!x7(r)&&g7(r)}:function(r){if(_7(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(ZTe)return g7(r);if(x7(r))return!1;var t=Kg.call(r);return t!==GTe&&t!==YTe&&!/^\[object HTML/.test(t)?!1:g7(r)}});var w7=N((XOe,k$)=>{"use strict";var JTe=A$(),$Te=Object.prototype.toString,M$=Object.prototype.hasOwnProperty,KTe=function(r,t,a){for(var n=0,i=r.length;n=3&&(n=a),$Te.call(r)==="[object Array]"?KTe(r,t,n):typeof r=="string"?QTe(r,t,n):e8e(r,t,n)};k$.exports=r8e});var A7=N((JOe,S$)=>{"use strict";var T7=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],t8e=typeof globalThis=="undefined"?window:globalThis;S$.exports=function(){for(var r=[],t=0;t{"use strict";var e2=w7(),a8e=A7(),q$=W0(),S7=dv(),Qg=Vu(),n8e=S7("Object.prototype.toString"),C$=U0()(),L$=typeof globalThis=="undefined"?window:globalThis,k7=a8e(),q7=S7("String.prototype.slice"),M7=Object.getPrototypeOf,i8e=S7("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1?t:t!=="Object"?!1:l8e(r)}return Qg?o8e(r):null}});var I$=N((KOe,z$)=>{"use strict";var R$=w7(),s8e=A7(),C7=dv(),u8e=C7("Object.prototype.toString"),P$=U0()(),t2=Vu(),f8e=typeof globalThis=="undefined"?window:globalThis,F$=s8e(),c8e=C7("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1}return t2?h8e(r):!1}});var R7=N(ot=>{"use strict";var d8e=m$(),p8e=x$(),mo=D$(),O$=I$();function yv(e){return e.call.bind(e)}var B$=typeof BigInt!="undefined",H$=typeof Symbol!="undefined",zi=yv(Object.prototype.toString),y8e=yv(Number.prototype.valueOf),m8e=yv(String.prototype.valueOf),g8e=yv(Boolean.prototype.valueOf);B$&&(U$=yv(BigInt.prototype.valueOf));var U$;H$&&(G$=yv(Symbol.prototype.valueOf));var G$;function X0(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch(t){return!1}}ot.isArgumentsObject=d8e;ot.isGeneratorFunction=p8e;ot.isTypedArray=O$;function b8e(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}ot.isPromise=b8e;function x8e(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):O$(e)||V$(e)}ot.isArrayBufferView=x8e;function _8e(e){return mo(e)==="Uint8Array"}ot.isUint8Array=_8e;function w8e(e){return mo(e)==="Uint8ClampedArray"}ot.isUint8ClampedArray=w8e;function T8e(e){return mo(e)==="Uint16Array"}ot.isUint16Array=T8e;function A8e(e){return mo(e)==="Uint32Array"}ot.isUint32Array=A8e;function M8e(e){return mo(e)==="Int8Array"}ot.isInt8Array=M8e;function k8e(e){return mo(e)==="Int16Array"}ot.isInt16Array=k8e;function S8e(e){return mo(e)==="Int32Array"}ot.isInt32Array=S8e;function q8e(e){return mo(e)==="Float32Array"}ot.isFloat32Array=q8e;function L8e(e){return mo(e)==="Float64Array"}ot.isFloat64Array=L8e;function C8e(e){return mo(e)==="BigInt64Array"}ot.isBigInt64Array=C8e;function E8e(e){return mo(e)==="BigUint64Array"}ot.isBigUint64Array=E8e;function a2(e){return zi(e)==="[object Map]"}a2.working=typeof Map!="undefined"&&a2(new Map);function D8e(e){return typeof Map=="undefined"?!1:a2.working?a2(e):e instanceof Map}ot.isMap=D8e;function n2(e){return zi(e)==="[object Set]"}n2.working=typeof Set!="undefined"&&n2(new Set);function R8e(e){return typeof Set=="undefined"?!1:n2.working?n2(e):e instanceof Set}ot.isSet=R8e;function i2(e){return zi(e)==="[object WeakMap]"}i2.working=typeof WeakMap!="undefined"&&i2(new WeakMap);function P8e(e){return typeof WeakMap=="undefined"?!1:i2.working?i2(e):e instanceof WeakMap}ot.isWeakMap=P8e;function D7(e){return zi(e)==="[object WeakSet]"}D7.working=typeof WeakSet!="undefined"&&D7(new WeakSet);function F8e(e){return D7(e)}ot.isWeakSet=F8e;function o2(e){return zi(e)==="[object ArrayBuffer]"}o2.working=typeof ArrayBuffer!="undefined"&&o2(new ArrayBuffer);function Y$(e){return typeof ArrayBuffer=="undefined"?!1:o2.working?o2(e):e instanceof ArrayBuffer}ot.isArrayBuffer=Y$;function l2(e){return zi(e)==="[object DataView]"}l2.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&l2(new DataView(new ArrayBuffer(1),0,1));function V$(e){return typeof DataView=="undefined"?!1:l2.working?l2(e):e instanceof DataView}ot.isDataView=V$;var E7=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function Z0(e){return zi(e)==="[object SharedArrayBuffer]"}function j$(e){return typeof E7=="undefined"?!1:(typeof Z0.working=="undefined"&&(Z0.working=Z0(new E7)),Z0.working?Z0(e):e instanceof E7)}ot.isSharedArrayBuffer=j$;function N8e(e){return zi(e)==="[object AsyncFunction]"}ot.isAsyncFunction=N8e;function z8e(e){return zi(e)==="[object Map Iterator]"}ot.isMapIterator=z8e;function I8e(e){return zi(e)==="[object Set Iterator]"}ot.isSetIterator=I8e;function O8e(e){return zi(e)==="[object Generator]"}ot.isGeneratorObject=O8e;function B8e(e){return zi(e)==="[object WebAssembly.Module]"}ot.isWebAssemblyCompiledModule=B8e;function W$(e){return X0(e,y8e)}ot.isNumberObject=W$;function Z$(e){return X0(e,m8e)}ot.isStringObject=Z$;function X$(e){return X0(e,g8e)}ot.isBooleanObject=X$;function J$(e){return B$&&X0(e,U$)}ot.isBigIntObject=J$;function $$(e){return H$&&X0(e,G$)}ot.isSymbolObject=$$;function H8e(e){return W$(e)||Z$(e)||X$(e)||J$(e)||$$(e)}ot.isBoxedPrimitive=H8e;function U8e(e){return typeof Uint8Array!="undefined"&&(Y$(e)||j$(e))}ot.isAnyArrayBuffer=U8e;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(ot,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var P7=N((eBe,K$)=>{K$.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var B7=N(lt=>{var Q$=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),I7(r)?t.showHidden=r:r&<._extend(t,r),Zu(t.showHidden)&&(t.showHidden=!1),Zu(t.depth)&&(t.depth=2),Zu(t.colors)&&(t.colors=!1),Zu(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=Y8e),c2(t,e,t.depth)}lt.inspect=_s;_s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};_s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Y8e(e,r){var t=_s.styles[r];return t?"\x1B["+_s.colors[t][0]+"m"+e+"\x1B["+_s.colors[t][1]+"m":e}function V8e(e,r){return e}function j8e(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function c2(e,r,t){if(e.customInspect&&r&&f2(r.inspect)&&r.inspect!==lt.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return d2(a)||(a=c2(e,a,t)),a}var n=W8e(e,r);if(n)return n;var i=Object.keys(r),o=j8e(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),$0(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return F7(r);if(i.length===0){if(f2(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(J0(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(v2(r))return e.stylize(Date.prototype.toString.call(r),"date");if($0(r))return F7(r)}var s="",u=!1,f=["{","}"];if(rK(r)&&(u=!0,f=["[","]"]),f2(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(J0(r)&&(s=" "+RegExp.prototype.toString.call(r)),v2(r)&&(s=" "+Date.prototype.toUTCString.call(r)),$0(r)&&(s=" "+F7(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return J0(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=Z8e(e,r,t,o,i):v=i.map(function(d){return z7(e,r,t,o,d,u)}),e.seen.pop(),X8e(v,s,f)}function W8e(e,r){if(Zu(r))return e.stylize("undefined","undefined");if(d2(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(tK(r))return e.stylize(""+r,"number");if(I7(r))return e.stylize(""+r,"boolean");if(h2(r))return e.stylize("null","null")}function F7(e){return"["+Error.prototype.toString.call(e)+"]"}function Z8e(e,r,t,a,n){for(var i=[],o=0,l=r.length;o24?(isFinite(g)&&(clearTimeout(Od),Od=setTimeout(A3,g)),Id=0):(Id=1,M8(A3))}e.timer.flush=function(){k8(),S8()};function k8(){for(var h=Date.now(),g=Nd;g;)h>=g.t&&g.c(h-g.t)&&(g.c=null),g=g.n;return h}function S8(){for(var h,g=Nd,A=1/0;g;)g.c?(g.t=0;--F)ae.push(L[X[ee[F]][2]]);for(F=+we;F1&&Vr(h[A[q-2]],h[A[q-1]],h[L])<=0;)--q;A[q++]=L}return A.slice(0,q)}function Vae(h,g){return h[0]-g[0]||h[1]-g[1]}e.geom.polygon=function(h){return K(h,Hd),h};var Hd=e.geom.polygon.prototype=[];Hd.area=function(){for(var h=-1,g=this.length,A,q=this[g-1],L=0;++hde)F=F.L;else if(I=g-Xae(F,A),I>de){if(!F.R){q=F;break}F=F.R}else{C>-de?(q=F.P,L=F):I>-de?(q=F,L=F.N):q=L=F;break}var H=D8(h);if(pf.insert(q,H),!(!q&&!L)){if(q===L){mf(q),L=D8(q.site),pf.insert(H,L),H.edge=L.edge=Pv(q.site,H.site),yf(q),yf(L);return}if(!L){H.edge=Pv(q.site,H.site);return}mf(q),mf(L);var X=q.site,$=X.x,ee=X.y,te=h.x-$,we=h.y-ee,ke=L.site,ae=ke.x-$,he=ke.y-ee,ge=2*(te*he-we*ae),Me=te*te+we*we,Se=ae*ae+he*he,xe={x:(he*Me-we*Se)/ge+$,y:(te*Se-ae*Me)/ge+ee};Ud(L.edge,X,ke,xe),H.edge=Pv(X,h,null,xe),L.edge=Pv(h,ke,null,xe),yf(q),yf(L)}}function R8(h,g){var A=h.site,q=A.x,L=A.y,C=L-g;if(!C)return q;var I=h.P;if(!I)return-1/0;A=I.site;var F=A.x,H=A.y,X=H-g;if(!X)return F;var $=F-q,ee=1/C-1/X,te=$/X;return ee?(-te+Math.sqrt(te*te-2*ee*($*$/(-2*X)-H+X/2+L-C/2)))/ee+q:(q+F)/2}function Xae(h,g){var A=h.N;if(A)return R8(A,g);var q=h.site;return q.y===g?q.x:1/0}function P8(h){this.site=h,this.edges=[]}P8.prototype.prepare=function(){for(var h=this.edges,g=h.length,A;g--;)A=h[g].edge,(!A.b||!A.a)&&h.splice(g,1);return h.sort(F8),h.length};function Jae(h){for(var g=h[0][0],A=h[1][0],q=h[0][1],L=h[1][1],C,I,F,H,X=Os,$=X.length,ee,te,we,ke,ae,he;$--;)if(ee=X[$],!(!ee||!ee.prepare()))for(we=ee.edges,ke=we.length,te=0;tede||x(H-I)>de)&&(we.splice(te,0,new Gd(rne(ee.site,he,x(F-g)de?{x:g,y:x(C-g)de?{x:x(I-L)de?{x:A,y:x(C-A)de?{x:x(I-q)=-Ee)){var te=H*H+X*X,we=$*$+he*he,ke=(he*te-X*we)/ee,ae=(H*we-$*te)/ee,he=ae+F,ge=E8.pop()||new $ae;ge.arc=h,ge.site=L,ge.x=ke+I,ge.y=he+Math.sqrt(ke*ke+ae*ae),ge.cy=he,h.circle=ge;for(var Me=null,Se=Rv._;Se;)if(ge.y0)){if(ae/=we,we<0){if(ae0){if(ae>te)return;ae>ee&&(ee=ae)}if(ae=A-F,!(!we&&ae<0)){if(ae/=we,we<0){if(ae>te)return;ae>ee&&(ee=ae)}else if(we>0){if(ae0)){if(ae/=ke,ke<0){if(ae0){if(ae>te)return;ae>ee&&(ee=ae)}if(ae=q-H,!(!ke&&ae<0)){if(ae/=ke,ke<0){if(ae>te)return;ae>ee&&(ee=ae)}else if(ke>0){if(ae0&&(L.a={x:F+ee*we,y:H+ee*ke}),te<1&&(L.b={x:F+te*we,y:H+te*ke}),L}}}}}}function Qae(h){for(var g=df,A=Kae(h[0][0],h[0][1],h[1][0],h[1][1]),q=g.length,L;q--;)L=g[q],(!ene(L,h)||!A(L)||x(L.a.x-L.b.x)=C)return;if($>te){if(!q)q={x:ke,y:I};else if(q.y>=F)return;A={x:ke,y:F}}else{if(!q)q={x:ke,y:F};else if(q.y1)if($>te){if(!q)q={x:(I-ge)/he,y:I};else if(q.y>=F)return;A={x:(F-ge)/he,y:F}}else{if(!q)q={x:(F-ge)/he,y:F};else if(q.y=C)return;A={x:C,y:he*C+ge}}else{if(!q)q={x:C,y:he*C+ge};else if(q.x=$&&ge.x<=te&&ge.y>=ee&&ge.y<=we?[[$,we],[te,we],[te,ee],[$,ee]]:[];Me.point=H[ae]}),X}function F(H){return H.map(function(X,$){return{x:Math.round(q(X,$)/de)*de,y:Math.round(L(X,$)/de)*de,i:$}})}return I.links=function(H){return C3(F(H)).edges.filter(function(X){return X.l&&X.r}).map(function(X){return{source:H[X.l.i],target:H[X.r.i]}})},I.triangles=function(H){var X=[];return C3(F(H)).cells.forEach(function($,ee){for(var te=$.site,we=$.edges.sort(F8),ke=-1,ae=we.length,he,ge,Me=we[ae-1].edge,Se=Me.l===te?Me.r:Me.l;++keSe&&(Se=$.x),$.y>xe&&(xe=$.y),we.push($.x),ke.push($.y);else for(ae=0;aeSe&&(Se=Ye),ir>xe&&(xe=ir),we.push(Ye),ke.push(ir)}var cr=Se-ge,or=xe-Me;cr>or?xe=Me+cr:Se=ge+or;function dr(mr,kr,tt,Qt,mt,rr,Dr,Pr){if(!(isNaN(tt)||isNaN(Qt)))if(mr.leaf){var at=mr.x,Ht=mr.y;if(at!=null)if(x(at-tt)+x(Ht-Qt)<.01)pr(mr,kr,tt,Qt,mt,rr,Dr,Pr);else{var ha=mr.point;mr.x=mr.y=mr.point=null,pr(mr,ha,at,Ht,mt,rr,Dr,Pr),pr(mr,kr,tt,Qt,mt,rr,Dr,Pr)}else mr.x=tt,mr.y=Qt,mr.point=kr}else pr(mr,kr,tt,Qt,mt,rr,Dr,Pr)}function pr(mr,kr,tt,Qt,mt,rr,Dr,Pr){var at=(mt+Dr)*.5,Ht=(rr+Pr)*.5,ha=tt>=at,Ba=Qt>=Ht,an=Ba<<1|ha;mr.leaf=!1,mr=mr.nodes[an]||(mr.nodes[an]=I8()),ha?mt=at:Dr=at,Ba?rr=Ht:Pr=Ht,dr(mr,kr,tt,Qt,mt,rr,Dr,Pr)}var Er=I8();if(Er.add=function(mr){dr(Er,mr,+ee(mr,++ae),+te(mr,ae),ge,Me,Se,xe)},Er.visit=function(mr){zv(mr,Er,ge,Me,Se,xe)},Er.find=function(mr){return one(Er,mr[0],mr[1],ge,Me,Se,xe)},ae=-1,g==null){for(;++aeC||te>I||we=Ye,or=A>=ir,dr=or<<1|cr,pr=dr+4;drA&&(C=g.slice(A,C),F[I]?F[I]+=C:F[++I]=C),(q=q[0])===(L=L[0])?F[I]?F[I]+=L:F[++I]=L:(F[++I]=null,H.push({i:I,x:el(q,L)})),A=R3.lastIndex;return A=0&&!(q=e.interpolators[A](h,g)););return q}e.interpolators=[function(h,g){var A=typeof g;return(A==="string"?Oa.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?E3:B8:g instanceof Pt?E3:Array.isArray(g)?Wd:A==="object"&&isNaN(g)?O8:el)(h,g)}],e.interpolateArray=Wd;function Wd(h,g){var A=[],q=[],L=h.length,C=g.length,I=Math.min(h.length,g.length),F;for(F=0;F=0?h.slice(0,g):h,q=g>=0?h.slice(g+1):"in";return A=lne.get(A)||H8,q=sne.get(q)||B,une(q(A.apply(null,r.call(arguments,1))))};function une(h){return function(g){return g<=0?0:g>=1?1:h(g)}}function U8(h){return function(g){return 1-h(1-g)}}function G8(h){return function(g){return .5*(g<.5?h(2*g):2-h(2-2*g))}}function fne(h){return h*h}function cne(h){return h*h*h}function vne(h){if(h<=0)return 0;if(h>=1)return 1;var g=h*h,A=g*h;return 4*(h<.5?A:3*(h-g)+A-.75)}function hne(h){return function(g){return Math.pow(g,h)}}function dne(h){return 1-Math.cos(h*nr)}function pne(h){return Math.pow(2,10*(h-1))}function yne(h){return 1-Math.sqrt(1-h*h)}function mne(h,g){var A;return arguments.length<2&&(g=.45),arguments.length?A=g/ar*Math.asin(1/h):(h=1,A=g/4),function(q){return 1+h*Math.pow(2,-10*q)*Math.sin((q-A)*ar/g)}}function gne(h){return h||(h=1.70158),function(g){return g*g*((h+1)*g-h)}}function bne(h){return h<1/2.75?7.5625*h*h:h<2/2.75?7.5625*(h-=1.5/2.75)*h+.75:h<2.5/2.75?7.5625*(h-=2.25/2.75)*h+.9375:7.5625*(h-=2.625/2.75)*h+.984375}e.interpolateHcl=xne;function xne(h,g){h=e.hcl(h),g=e.hcl(g);var A=h.h,q=h.c,L=h.l,C=g.h-A,I=g.c-q,F=g.l-L;return isNaN(I)&&(I=0,q=isNaN(q)?g.c:q),isNaN(C)?(C=0,A=isNaN(A)?g.h:A):C>180?C-=360:C<-180&&(C+=360),function(H){return wn(A+C*H,q+I*H,L+F*H)+""}}e.interpolateHsl=_ne;function _ne(h,g){h=e.hsl(h),g=e.hsl(g);var A=h.h,q=h.s,L=h.l,C=g.h-A,I=g.s-q,F=g.l-L;return isNaN(I)&&(I=0,q=isNaN(q)?g.s:q),isNaN(C)?(C=0,A=isNaN(A)?g.h:A):C>180?C-=360:C<-180&&(C+=360),function(H){return xa(A+C*H,q+I*H,L+F*H)+""}}e.interpolateLab=wne;function wne(h,g){h=e.lab(h),g=e.lab(g);var A=h.l,q=h.a,L=h.b,C=g.l-A,I=g.a-q,F=g.b-L;return function(H){return Tn(A+C*H,q+I*H,L+F*H)+""}}e.interpolateRound=Y8;function Y8(h,g){return g-=h,function(A){return Math.round(h+g*A)}}e.transform=function(h){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(A){if(A!=null){g.setAttribute("transform",A);var q=g.transform.baseVal.consolidate()}return new V8(q?q.matrix:Ane)})(h)};function V8(h){var g=[h.a,h.b],A=[h.c,h.d],q=j8(g),L=W8(g,A),C=j8(Tne(A,g,-L))||0;g[0]*A[1]180?g+=360:g-h>180&&(h+=360),q.push({i:A.push(gf(A)+"rotate(",null,")")-2,x:el(h,g)})):g&&A.push(gf(A)+"rotate("+g+")")}function Sne(h,g,A,q){h!==g?q.push({i:A.push(gf(A)+"skewX(",null,")")-2,x:el(h,g)}):g&&A.push(gf(A)+"skewX("+g+")")}function qne(h,g,A,q){if(h[0]!==g[0]||h[1]!==g[1]){var L=A.push(gf(A)+"scale(",null,",",null,")");q.push({i:L-4,x:el(h[0],g[0])},{i:L-2,x:el(h[1],g[1])})}else(g[0]!==1||g[1]!==1)&&A.push(gf(A)+"scale("+g+")")}function Z8(h,g){var A=[],q=[];return h=e.transform(h),g=e.transform(g),Mne(h.translate,g.translate,A,q),kne(h.rotate,g.rotate,A,q),Sne(h.skew,g.skew,A,q),qne(h.scale,g.scale,A,q),h=g=null,function(L){for(var C=-1,I=q.length,F;++C0?C=xe:(A.c=null,A.t=NaN,A=null,g.end({type:"end",alpha:C=0})):xe>0&&(g.start({type:"start",alpha:C=xe}),A=Bd(h.tick)),h):C},h.start=function(){var xe,Ye=we.length,ir=ke.length,cr=q[0],or=q[1],dr,pr;for(xe=0;xe=0;)C.push($=X[H]),$.parent=F,$.depth=F.depth+1;A&&(F.value=0),F.children=X}else A&&(F.value=+A.call(q,F,F.depth)||0),delete F.children;return _o(L,function(ee){var te,we;h&&(te=ee.children)&&te.sort(h),A&&(we=ee.parent)&&(we.value+=ee.value)}),I}return q.sort=function(L){return arguments.length?(h=L,q):h},q.children=function(L){return arguments.length?(g=L,q):g},q.value=function(L){return arguments.length?(A=L,q):A},q.revalue=function(L){return A&&(Ov(L,function(C){C.children&&(C.value=0)}),_o(L,function(C){var I;C.children||(C.value=+A.call(q,C,C.depth)||0),(I=C.parent)&&(I.value+=C.value)})),L},q};function Iv(h,g){return e.rebind(h,g,"sort","children","value"),h.nodes=h,h.links=Gne,h}function Ov(h,g){for(var A=[h];(h=A.pop())!=null;)if(g(h),(L=h.children)&&(q=L.length))for(var q,L;--q>=0;)A.push(L[q])}function _o(h,g){for(var A=[h],q=[];(h=A.pop())!=null;)if(q.push(h),(I=h.children)&&(C=I.length))for(var L=-1,C,I;++LL&&(L=F),q.push(F)}for(I=0;Iq&&(A=g,q=L);return A}function Jne(h){return h.reduce($ne,0)}function $ne(h,g){return h+g[1]}e.layout.histogram=function(){var h=!0,g=Number,A=Qne,q=Kne;function L(C,te){for(var F=[],H=C.map(g,this),X=A.call(this,H,te),$=q.call(this,X,H,te),ee,te=-1,we=H.length,ke=$.length-1,ae=h?1:1/we,he;++te0)for(te=-1;++te=X[0]&&he<=X[1]&&(ee=F[e.bisect($,he,1,ke)-1],ee.y+=ae,ee.push(C[te]));return F}return L.value=function(C){return arguments.length?(g=C,L):g},L.range=function(C){return arguments.length?(A=Br(C),L):A},L.bins=function(C){return arguments.length?(q=typeof C=="number"?function(I){return K8(I,C)}:Br(C),L):q},L.frequency=function(C){return arguments.length?(h=!!C,L):h},L};function Kne(h,g){return K8(h,Math.ceil(Math.log(g.length)/Math.LN2+1))}function K8(h,g){for(var A=-1,q=+h[0],L=(h[1]-q)/g,C=[];++A<=g;)C[A]=L*A+q;return C}function Qne(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(eie),g=0,A=[1,1],q;function L(C,I){var F=h.call(this,C,I),H=F[0],X=A[0],$=A[1],ee=q==null?Math.sqrt:typeof q=="function"?q:function(){return q};if(H.x=H.y=0,_o(H,function(we){we.r=+ee(we.value)}),_o(H,rA),g){var te=g*(q?1:Math.max(2*H.r/X,2*H.r/$))/2;_o(H,function(we){we.r+=te}),_o(H,rA),_o(H,function(we){we.r-=te})}return tA(H,X/2,$/2,q?1:1/Math.max(2*H.r/X,2*H.r/$)),F}return L.size=function(C){return arguments.length?(A=C,L):A},L.radius=function(C){return arguments.length?(q=C==null||typeof C=="function"?C:+C,L):q},L.padding=function(C){return arguments.length?(g=+C,L):g},Iv(L,h)};function eie(h,g){return h.value-g.value}function N3(h,g){var A=h._pack_next;h._pack_next=g,g._pack_prev=h,g._pack_next=A,A._pack_prev=g}function Q8(h,g){h._pack_next=g,g._pack_prev=h}function eA(h,g){var A=g.x-h.x,q=g.y-h.y,L=h.r+g.r;return .999*L*L>A*A+q*q}function rA(h){if(!(g=h.children)||!(te=g.length))return;var g,A=1/0,q=-1/0,L=1/0,C=-1/0,I,F,H,X,$,ee,te;function we(xe){A=Math.min(xe.x-xe.r,A),q=Math.max(xe.x+xe.r,q),L=Math.min(xe.y-xe.r,L),C=Math.max(xe.y+xe.r,C)}if(g.forEach(rie),I=g[0],I.x=-I.r,I.y=0,we(I),te>1&&(F=g[1],F.x=F.r,F.y=0,we(F),te>2))for(H=g[2],aA(I,F,H),we(H),N3(I,H),I._pack_prev=H,N3(H,F),F=I._pack_next,X=3;Xhe.x&&(he=Ye),Ye.depth>ge.depth&&(ge=Ye)});var Me=g(ae,he)/2-ae.x,Se=A[0]/(he.x+g(he,ae)/2+Me),xe=A[1]/(ge.depth||1);Ov(we,function(Ye){Ye.x=(Ye.x+Me)*Se,Ye.y=Ye.depth*xe})}return te}function C($){for(var ee={A:null,children:[$]},te=[ee],we;(we=te.pop())!=null;)for(var ke=we.children,ae,he=0,ge=ke.length;he0&&(aie(iie(ae,$,te),$,Ye),ge+=Ye,Me+=Ye),Se+=ae.m,ge+=we.m,xe+=he.m,Me+=ke.m;ae&&!I3(ke)&&(ke.t=ae,ke.m+=Se-Me),we&&!z3(he)&&(he.t=we,he.m+=ge-xe,te=$)}return te}function X($){$.x*=A[0],$.y=$.depth*A[1]}return L.separation=function($){return arguments.length?(g=$,L):g},L.size=function($){return arguments.length?(q=(A=$)==null?X:null,L):q?null:A},L.nodeSize=function($){return arguments.length?(q=(A=$)==null?null:X,L):q?A:null},Iv(L,h)};function nA(h,g){return h.parent==g.parent?1:2}function z3(h){var g=h.children;return g.length?g[0]:h.t}function I3(h){var g=h.children,A;return(A=g.length)?g[A-1]:h.t}function aie(h,g,A){var q=A/(g.i-h.i);g.c-=q,g.s+=A,h.c+=q,g.z+=A,g.m+=A}function nie(h){for(var g=0,A=0,q=h.children,L=q.length,C;--L>=0;)C=q[L],C.z+=g,C.m+=g,g+=C.s+(A+=C.c)}function iie(h,g,A){return h.a.parent===g.parent?h.a:A}e.layout.cluster=function(){var h=e.layout.hierarchy().sort(null).value(null),g=nA,A=[1,1],q=!1;function L(C,I){var F=h.call(this,C,I),H=F[0],X,$=0;_o(H,function(ae){var he=ae.children;he&&he.length?(ae.x=lie(he),ae.y=oie(he)):(ae.x=X?$+=g(ae,X):0,ae.y=0,X=ae)});var ee=iA(H),te=oA(H),we=ee.x-g(ee,te)/2,ke=te.x+g(te,ee)/2;return _o(H,q?function(ae){ae.x=(ae.x-H.x)*A[0],ae.y=(H.y-ae.y)*A[1]}:function(ae){ae.x=(ae.x-we)/(ke-we)*A[0],ae.y=(1-(H.y?ae.y/H.y:1))*A[1]}),F}return L.separation=function(C){return arguments.length?(g=C,L):g},L.size=function(C){return arguments.length?(q=(A=C)==null,L):q?null:A},L.nodeSize=function(C){return arguments.length?(q=(A=C)!=null,L):q?A:null},Iv(L,h)};function oie(h){return 1+e.max(h,function(g){return g.y})}function lie(h){return h.reduce(function(g,A){return g+A.x},0)/h.length}function iA(h){var g=h.children;return g&&g.length?iA(g[0]):h}function oA(h){var g=h.children,A;return g&&(A=g.length)?oA(g[A-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),g=Math.round,A=[1,1],q=null,L=O3,C=!1,I,F="squarify",H=.5*(1+Math.sqrt(5));function X(ae,he){for(var ge=-1,Me=ae.length,Se,xe;++ge0;)Me.push(xe=Se[or-1]),Me.area+=xe.area,F!=="squarify"||(ir=te(Me,cr))<=Ye?(Se.pop(),Ye=ir):(Me.area-=Me.pop().area,we(Me,cr,ge,!1),cr=Math.min(ge.dx,ge.dy),Me.length=Me.area=0,Ye=1/0);Me.length&&(we(Me,cr,ge,!0),Me.length=Me.area=0),he.forEach($)}}function ee(ae){var he=ae.children;if(he&&he.length){var ge=L(ae),Me=he.slice(),Se,xe=[];for(X(Me,ge.dx*ge.dy/ae.value),xe.area=0;Se=Me.pop();)xe.push(Se),xe.area+=Se.area,Se.z!=null&&(we(xe,Se.z?ge.dx:ge.dy,ge,!Me.length),xe.length=xe.area=0);he.forEach(ee)}}function te(ae,he){for(var ge=ae.area,Me,Se=0,xe=1/0,Ye=-1,ir=ae.length;++YeSe&&(Se=Me));return ge*=ge,he*=he,ge?Math.max(he*Se*H/ge,ge/(he*xe*H)):1/0}function we(ae,he,ge,Me){var Se=-1,xe=ae.length,Ye=ge.x,ir=ge.y,cr=he?g(ae.area/he):0,or;if(he==ge.dx){for((Me||cr>ge.dy)&&(cr=ge.dy);++Sege.dx)&&(cr=ge.dx);++Se1);return h+g*q*Math.sqrt(-2*Math.log(C)/C)}},logNormal:function(){var h=e.random.normal.apply(e,arguments);return function(){return Math.exp(h())}},bates:function(h){var g=e.random.irwinHall(h);return function(){return g()/h}},irwinHall:function(h){return function(){for(var g=0,A=0;A2?fie:sie,X=q?Cne:Lne;return L=H(h,g,X,A),C=H(g,h,X,Bs),F}function F(H){return L(H)}return F.invert=function(H){return C(H)},F.domain=function(H){return arguments.length?(h=H.map(Number),I()):h},F.range=function(H){return arguments.length?(g=H,I()):g},F.rangeRound=function(H){return F.range(H).interpolate(Y8)},F.clamp=function(H){return arguments.length?(q=H,I()):q},F.interpolate=function(H){return arguments.length?(A=H,I()):A},F.ticks=function(H){return U3(h,H)},F.tickFormat=function(H,X){return d3_scale_linearTickFormat(h,H,X)},F.nice=function(H){return cA(h,H),I()},F.copy=function(){return uA(h,g,A,q)},I()}function fA(h,g){return e.rebind(h,g,"range","rangeRound","interpolate","clamp")}function cA(h,g){return B3(h,sA(H3(h,g)[2])),B3(h,sA(H3(h,g)[2])),h}function H3(h,g){g==null&&(g=10);var A=jd(h),q=A[1]-A[0],L=Math.pow(10,Math.floor(Math.log(q/g)/Math.LN10)),C=g/q*L;return C<=.15?L*=10:C<=.35?L*=5:C<=.75&&(L*=2),A[0]=Math.ceil(A[0]/L)*L,A[1]=Math.floor(A[1]/L)*L+L*.5,A[2]=L,A}function U3(h,g){return e.range.apply(e,H3(h,g))}var cie={s:1,g:1,p:1,r:1,e:1};function vA(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function tCe(h,g){var A=vA(g[2]);return h in cie?Math.abs(A-vA(Math.max(x(g[0]),x(g[1]))))+ +(h!=="e"):A-(h==="%")*2}e.scale.log=function(){return hA(e.scale.linear().domain([0,1]),10,!0,[1,10])};function hA(h,g,A,q){function L(F){return(A?Math.log(F<0?0:F):-Math.log(F>0?0:-F))/Math.log(g)}function C(F){return A?Math.pow(g,F):-Math.pow(g,-F)}function I(F){return h(L(F))}return I.invert=function(F){return C(h.invert(F))},I.domain=function(F){return arguments.length?(A=F[0]>=0,h.domain((q=F.map(Number)).map(L)),I):q},I.base=function(F){return arguments.length?(g=+F,h.domain(q.map(L)),I):g},I.nice=function(){var F=B3(q.map(L),A?Math:vie);return h.domain(F),q=F.map(C),I},I.ticks=function(){var F=jd(q),H=[],X=F[0],$=F[1],ee=Math.floor(L(X)),te=Math.ceil(L($)),we=g%1?2:g;if(isFinite(te-ee)){if(A){for(;ee0;ke--)H.push(C(ee)*ke);for(ee=0;H[ee]$;te--);H=H.slice(ee,te)}return H},I.copy=function(){return hA(h.copy(),g,A,q)},fA(I,h)}var vie={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return dA(e.scale.linear(),1,[0,1])};function dA(h,g,A){var q=Xd(g),L=Xd(1/g);function C(I){return h(q(I))}return C.invert=function(I){return L(h.invert(I))},C.domain=function(I){return arguments.length?(h.domain((A=I.map(Number)).map(q)),C):A},C.ticks=function(I){return U3(A,I)},C.tickFormat=function(I,F){return d3_scale_linearTickFormat(A,I,F)},C.nice=function(I){return C.domain(cA(A,I))},C.exponent=function(I){return arguments.length?(q=Xd(g=I),L=Xd(1/g),h.domain(A.map(q)),C):g},C.copy=function(){return dA(h.copy(),g,A)},fA(C,h)}function Xd(h){return function(g){return g<0?-Math.pow(-g,h):Math.pow(g,h)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return pA([],{t:"range",a:[[]]})};function pA(h,g){var A,q,L;function C(F){return q[((A.get(F)||(g.t==="range"?A.set(F,h.push(F)):NaN))-1)%q.length]}function I(F,H){return e.range(h.length).map(function(X){return F+H*X})}return C.domain=function(F){if(!arguments.length)return h;h=[],A=new b;for(var H=-1,X=F.length,$;++H0?A[C-1]:h[0],Cte?0:1;if($=sr)return H($,ke)+(X?H(X,1-ke):"")+"Z";var ae,he,ge,Me,Se=0,xe=0,Ye,ir,cr,or,dr,pr,Er,mr,kr=[];if((Me=(+I.apply(this,arguments)||0)/2)&&(ge=q===Jd?Math.sqrt(X*X+$*$):+q.apply(this,arguments),ke||(xe*=-1),$&&(xe=wt(ge/$*Math.sin(Me))),X&&(Se=wt(ge/X*Math.sin(Me)))),$){Ye=$*Math.cos(ee+xe),ir=$*Math.sin(ee+xe),cr=$*Math.cos(te-xe),or=$*Math.sin(te-xe);var tt=Math.abs(te-ee-2*xe)<=Le?0:1;if(xe&&$d(Ye,ir,cr,or)===ke^tt){var Qt=(ee+te)/2;Ye=$*Math.cos(Qt),ir=$*Math.sin(Qt),cr=or=null}}else Ye=ir=0;if(X){dr=X*Math.cos(te-Se),pr=X*Math.sin(te-Se),Er=X*Math.cos(ee+Se),mr=X*Math.sin(ee+Se);var mt=Math.abs(ee-te+2*Se)<=Le?0:1;if(Se&&$d(dr,pr,Er,mr)===1-ke^mt){var rr=(ee+te)/2;dr=X*Math.cos(rr),pr=X*Math.sin(rr),Er=mr=null}}else dr=pr=0;if(we>de&&(ae=Math.min(Math.abs($-X)/2,+A.apply(this,arguments)))>.001){he=X<$^ke?0:1;var Dr=ae,Pr=ae;if(we0?0:1}function Kd(h,g,A,q,L){var C=h[0]-g[0],I=h[1]-g[1],F=(L?q:-q)/Math.sqrt(C*C+I*I),H=F*I,X=-F*C,$=h[0]+H,ee=h[1]+X,te=g[0]+H,we=g[1]+X,ke=($+te)/2,ae=(ee+we)/2,he=te-$,ge=we-ee,Me=he*he+ge*ge,Se=A-q,xe=$*we-te*ee,Ye=(ge<0?-1:1)*Math.sqrt(Math.max(0,Se*Se*Me-xe*xe)),ir=(xe*ge-he*Ye)/Me,cr=(-xe*he-ge*Ye)/Me,or=(xe*ge+he*Ye)/Me,dr=(-xe*he+ge*Ye)/Me,pr=ir-ke,Er=cr-ae,mr=or-ke,kr=dr-ae;return pr*pr+Er*Er>mr*mr+kr*kr&&(ir=or,cr=dr),[[ir-H,cr-X],[ir*A/Se,cr*A/Se]]}function wA(){return!0}function TA(h){var g=hf,A=Dv,q=wA,L=Wi,C=L.key,I=.7;function F(H){var X=[],$=[],ee=-1,te=H.length,we,ke=Br(g),ae=Br(A);function he(){X.push("M",L(h($),I))}for(;++ee1?h.join("L"):h+"Z"}function AA(h){return h.join("L")+"Z"}function _ie(h){for(var g=0,A=h.length,q=h[0],L=[q[0],",",q[1]];++g1&&L.push("H",q[0]),L.join("")}function Y3(h){for(var g=0,A=h.length,q=h[0],L=[q[0],",",q[1]];++g1){F=g[1],C=h[H],H++,q+="C"+(L[0]+I[0])+","+(L[1]+I[1])+","+(C[0]-F[0])+","+(C[1]-F[1])+","+C[0]+","+C[1];for(var X=2;X9&&(C=A*3/Math.sqrt(C),I[F]=C*q,I[F+1]=C*L));for(F=-1;++F<=H;)C=(h[Math.min(H,F+1)][0]-h[Math.max(0,F-1)][0])/(6*(1+I[F]*I[F])),g.push([C||0,I[F]*C||0]);return g}function Cie(h){return h.length<3?Wi(h):h[0]+Qd(h,Lie(h))}e.svg.line.radial=function(){var h=TA(qA);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function qA(h){for(var g,A=-1,q=h.length,L,C;++ALe)+",1 "+ee}function X($,ee,te,we){return"Q 0,0 "+we}return C.radius=function($){return arguments.length?(A=Br($),C):A},C.source=function($){return arguments.length?(h=Br($),C):h},C.target=function($){return arguments.length?(g=Br($),C):g},C.startAngle=function($){return arguments.length?(q=Br($),C):q},C.endAngle=function($){return arguments.length?(L=Br($),C):L},C};function Eie(h){return h.radius}e.svg.diagonal=function(){var h=CA,g=EA,A=DA;function q(L,C){var I=h.call(this,L,C),F=g.call(this,L,C),H=(I.y+F.y)/2,X=[I,{x:I.x,y:H},{x:F.x,y:H},F];return X=X.map(A),"M"+X[0]+"C"+X[1]+" "+X[2]+" "+X[3]}return q.source=function(L){return arguments.length?(h=Br(L),q):h},q.target=function(L){return arguments.length?(g=Br(L),q):g},q.projection=function(L){return arguments.length?(A=L,q):A},q};function DA(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),g=DA,A=h.projection;return h.projection=function(q){return arguments.length?A(Die(g=q)):g},h};function Die(h){return function(){var g=h.apply(this,arguments),A=g[0],q=g[1]-nr;return[A*Math.cos(q),A*Math.sin(q)]}}e.svg.symbol=function(){var h=Pie,g=Rie;function A(q,L){return(PA.get(h.call(this,q,L))||RA)(g.call(this,q,L))}return A.type=function(q){return arguments.length?(h=Br(q),A):h},A.size=function(q){return arguments.length?(g=Br(q),A):g},A};function Rie(){return 64}function Pie(){return"circle"}function RA(h){var g=Math.sqrt(h/Le);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var PA=e.map({circle:RA,cross:function(h){var g=Math.sqrt(h/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(h){var g=Math.sqrt(h/(2*FA)),A=g*FA;return"M0,"+-g+"L"+A+",0 0,"+g+" "+-A+",0Z"},square:function(h){var g=Math.sqrt(h)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(h){var g=Math.sqrt(h/ep),A=g*ep/2;return"M0,"+A+"L"+g+","+-A+" "+-g+","+-A+"Z"},"triangle-up":function(h){var g=Math.sqrt(h/ep),A=g*ep/2;return"M0,"+-A+"L"+g+","+A+" "+-g+","+A+"Z"}});e.svg.symbolTypes=PA.keys();var ep=Math.sqrt(3),FA=Math.tan(30*Mr);pe.transition=function(h){for(var g=Hs||++zA,A=J3(h),q=[],L,C,I=tp||{time:Date.now(),ease:vne,delay:0,duration:250},F=-1,H=this.length;++F0;)ee[--Me].call(h,ge);if(he>=1)return I.event&&I.event.end.call(h,h.__data__,g),--C.count?delete C[q]:delete h[A],1}I||(F=L.time,H=Bd(te,0,F),I=C[q]={tween:new b,time:F,timer:H,delay:L.delay,duration:L.duration,ease:L.ease,index:g},L=null,++C.count)}e.svg.axis=function(){var h=e.scale.linear(),g=IA,A=6,q=6,L=3,C=[10],I=null,F;function H(X){X.each(function(){var $=e.select(this),ee=this.__chart__||h,te=this.__chart__=h.copy(),we=I==null?te.ticks?te.ticks.apply(te,C):te.domain():I,ke=F==null?te.tickFormat?te.tickFormat.apply(te,C):B:F,ae=$.selectAll(".tick").data(we,te),he=ae.enter().insert("g",".domain").attr("class","tick").style("opacity",de),ge=e.transition(ae.exit()).style("opacity",de).remove(),Me=e.transition(ae.order()).style("opacity",1),Se=Math.max(A,0)+L,xe,Ye=Zd(te),ir=$.selectAll(".domain").data([0]),cr=(ir.enter().append("path").attr("class","domain"),e.transition(ir));he.append("line"),he.append("text");var or=he.select("line"),dr=Me.select("line"),pr=ae.select("text").text(ke),Er=he.select("text"),mr=Me.select("text"),kr=g==="top"||g==="left"?-1:1,tt,Qt,mt,rr;if(g==="bottom"||g==="top"?(xe=zie,tt="x",mt="y",Qt="x2",rr="y2",pr.attr("dy",kr<0?"0em":".71em").style("text-anchor","middle"),cr.attr("d","M"+Ye[0]+","+kr*q+"V0H"+Ye[1]+"V"+kr*q)):(xe=Iie,tt="y",mt="x",Qt="y2",rr="x2",pr.attr("dy",".32em").style("text-anchor",kr<0?"end":"start"),cr.attr("d","M"+kr*q+","+Ye[0]+"H0V"+Ye[1]+"H"+kr*q)),or.attr(rr,kr*A),Er.attr(mt,kr*Se),dr.attr(Qt,0).attr(rr,kr*A),mr.attr(tt,0).attr(mt,kr*Se),te.rangeBand){var Dr=te,Pr=Dr.rangeBand()/2;ee=te=function(at){return Dr(at)+Pr}}else ee.rangeBand?ee=te:ge.call(xe,te,ee);he.call(xe,ee,te),Me.call(xe,te,te)})}return H.scale=function(X){return arguments.length?(h=X,H):h},H.orient=function(X){return arguments.length?(g=X in Nie?X+"":IA,H):g},H.ticks=function(){return arguments.length?(C=t(arguments),H):C},H.tickValues=function(X){return arguments.length?(I=X,H):I},H.tickFormat=function(X){return arguments.length?(F=X,H):F},H.tickSize=function(X){var $=arguments.length;return $?(A=+X,q=+arguments[$-1],H):A},H.innerTickSize=function(X){return arguments.length?(A=+X,H):A},H.outerTickSize=function(X){return arguments.length?(q=+X,H):q},H.tickPadding=function(X){return arguments.length?(L=+X,H):L},H.tickSubdivide=function(){return arguments.length&&H},H};var IA="bottom",Nie={top:1,right:1,bottom:1,left:1};function zie(h,g,A){h.attr("transform",function(q){var L=g(q);return"translate("+(isFinite(L)?L:A(q))+",0)"})}function Iie(h,g,A){h.attr("transform",function(q){var L=g(q);return"translate(0,"+(isFinite(L)?L:A(q))+")"})}e.svg.brush=function(){var h=oe($,"brushstart","brush","brushend"),g=null,A=null,q=[0,0],L=[0,0],C,I,F=!0,H=!0,X=$3[0];function $(ae){ae.each(function(){var he=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",ke).on("touchstart.brush",ke),ge=he.selectAll(".background").data([0]);ge.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),he.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Me=he.selectAll(".resize").data(X,B);Me.exit().remove(),Me.enter().append("g").attr("class",function(ir){return"resize "+ir}).style("cursor",function(ir){return Oie[ir]}).append("rect").attr("x",function(ir){return/[ew]$/.test(ir)?-3:null}).attr("y",function(ir){return/^[ns]/.test(ir)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Me.style("display",$.empty()?"none":null);var Se=e.transition(he),xe=e.transition(ge),Ye;g&&(Ye=Zd(g),xe.attr("x",Ye[0]).attr("width",Ye[1]-Ye[0]),te(Se)),A&&(Ye=Zd(A),xe.attr("y",Ye[0]).attr("height",Ye[1]-Ye[0]),we(Se)),ee(Se)})}$.event=function(ae){ae.each(function(){var he=h.of(this,arguments),ge={x:q,y:L,i:C,j:I},Me=this.__chart__||ge;this.__chart__=ge,Hs?e.select(this).transition().each("start.brush",function(){C=Me.i,I=Me.j,q=Me.x,L=Me.y,he({type:"brushstart"})}).tween("brush:brush",function(){var Se=Wd(q,ge.x),xe=Wd(L,ge.y);return C=I=null,function(Ye){q=ge.x=Se(Ye),L=ge.y=xe(Ye),he({type:"brush",mode:"resize"})}}).each("end.brush",function(){C=ge.i,I=ge.j,he({type:"brush",mode:"resize"}),he({type:"brushend"})}):(he({type:"brushstart"}),he({type:"brush",mode:"resize"}),he({type:"brushend"}))})};function ee(ae){ae.selectAll(".resize").attr("transform",function(he){return"translate("+q[+/e$/.test(he)]+","+L[+/^s/.test(he)]+")"})}function te(ae){ae.select(".extent").attr("x",q[0]),ae.selectAll(".extent,.n>rect,.s>rect").attr("width",q[1]-q[0])}function we(ae){ae.select(".extent").attr("y",L[0]),ae.selectAll(".extent,.e>rect,.w>rect").attr("height",L[1]-L[0])}function ke(){var ae=this,he=e.select(e.event.target),ge=h.of(ae,arguments),Me=e.select(ae),Se=he.datum(),xe=!/^(n|s)$/.test(Se)&&g,Ye=!/^(e|w)$/.test(Se)&&A,ir=he.classed("extent"),cr=hr(ae),or,dr=e.mouse(ae),pr,Er=e.select(i(ae)).on("keydown.brush",tt).on("keyup.brush",Qt);if(e.event.changedTouches?Er.on("touchmove.brush",mt).on("touchend.brush",Dr):Er.on("mousemove.brush",mt).on("mouseup.brush",Dr),Me.interrupt().selectAll("*").interrupt(),ir)dr[0]=q[0]-dr[0],dr[1]=L[0]-dr[1];else if(Se){var mr=+/w$/.test(Se),kr=+/^n/.test(Se);pr=[q[1-mr]-dr[0],L[1-kr]-dr[1]],dr[0]=q[mr],dr[1]=L[kr]}else e.event.altKey&&(or=dr.slice());Me.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",he.style("cursor")),ge({type:"brushstart"}),mt();function tt(){e.event.keyCode==32&&(ir||(or=null,dr[0]-=q[1],dr[1]-=L[1],ir=2),re())}function Qt(){e.event.keyCode==32&&ir==2&&(dr[0]+=q[1],dr[1]+=L[1],ir=0,re())}function mt(){var Pr=e.mouse(ae),at=!1;pr&&(Pr[0]+=pr[0],Pr[1]+=pr[1]),ir||(e.event.altKey?(or||(or=[(q[0]+q[1])/2,(L[0]+L[1])/2]),dr[0]=q[+(Pr[0]{(function(e,r){typeof sp=="object"&&typeof VA!="undefined"?r(sp):(e=e||self,r(e.d3=e.d3||{}))})(sp,function(e){"use strict";var r=new Date,t=new Date;function a(ue,Ae,je,ur){function lr(fe){return ue(fe=arguments.length===0?new Date:new Date(+fe)),fe}return lr.floor=function(fe){return ue(fe=new Date(+fe)),fe},lr.ceil=function(fe){return ue(fe=new Date(fe-1)),Ae(fe,1),ue(fe),fe},lr.round=function(fe){var qe=lr(fe),Oe=lr.ceil(fe);return fe-qe0))return Ze;do Ze.push(Ue=new Date(+fe)),Ae(fe,Oe),ue(fe);while(Ue=qe)for(;ue(qe),!fe(qe);)qe.setTime(qe-1)},function(qe,Oe){if(qe>=qe)if(Oe<0)for(;++Oe<=0;)for(;Ae(qe,-1),!fe(qe););else for(;--Oe>=0;)for(;Ae(qe,1),!fe(qe););})},je&&(lr.count=function(fe,qe){return r.setTime(+fe),t.setTime(+qe),ue(r),ue(t),Math.floor(je(r,t))},lr.every=function(fe){return fe=Math.floor(fe),!isFinite(fe)||!(fe>0)?null:fe>1?lr.filter(ur?function(qe){return ur(qe)%fe===0}:function(qe){return lr.count(0,qe)%fe===0}):lr}),lr}var n=a(function(){},function(ue,Ae){ue.setTime(+ue+Ae)},function(ue,Ae){return Ae-ue});n.every=function(ue){return ue=Math.floor(ue),!isFinite(ue)||!(ue>0)?null:ue>1?a(function(Ae){Ae.setTime(Math.floor(Ae/ue)*ue)},function(Ae,je){Ae.setTime(+Ae+je*ue)},function(Ae,je){return(je-Ae)/ue}):n};var i=n.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(ue){ue.setTime(ue-ue.getMilliseconds())},function(ue,Ae){ue.setTime(+ue+Ae*o)},function(ue,Ae){return(Ae-ue)/o},function(ue){return ue.getUTCSeconds()}),v=c.range,d=a(function(ue){ue.setTime(ue-ue.getMilliseconds()-ue.getSeconds()*o)},function(ue,Ae){ue.setTime(+ue+Ae*l)},function(ue,Ae){return(Ae-ue)/l},function(ue){return ue.getMinutes()}),p=d.range,m=a(function(ue){ue.setTime(ue-ue.getMilliseconds()-ue.getSeconds()*o-ue.getMinutes()*l)},function(ue,Ae){ue.setTime(+ue+Ae*s)},function(ue,Ae){return(Ae-ue)/s},function(ue){return ue.getHours()}),y=m.range,x=a(function(ue){ue.setHours(0,0,0,0)},function(ue,Ae){ue.setDate(ue.getDate()+Ae)},function(ue,Ae){return(Ae-ue-(Ae.getTimezoneOffset()-ue.getTimezoneOffset())*l)/u},function(ue){return ue.getDate()-1}),w=x.range;function _(ue){return a(function(Ae){Ae.setDate(Ae.getDate()-(Ae.getDay()+7-ue)%7),Ae.setHours(0,0,0,0)},function(Ae,je){Ae.setDate(Ae.getDate()+je*7)},function(Ae,je){return(je-Ae-(je.getTimezoneOffset()-Ae.getTimezoneOffset())*l)/f})}var b=_(0),T=_(1),k=_(2),M=_(3),S=_(4),E=_(5),D=_(6),P=b.range,R=T.range,z=k.range,O=M.range,B=S.range,V=E.range,G=D.range,U=a(function(ue){ue.setDate(1),ue.setHours(0,0,0,0)},function(ue,Ae){ue.setMonth(ue.getMonth()+Ae)},function(ue,Ae){return Ae.getMonth()-ue.getMonth()+(Ae.getFullYear()-ue.getFullYear())*12},function(ue){return ue.getMonth()}),Y=U.range,J=a(function(ue){ue.setMonth(0,1),ue.setHours(0,0,0,0)},function(ue,Ae){ue.setFullYear(ue.getFullYear()+Ae)},function(ue,Ae){return Ae.getFullYear()-ue.getFullYear()},function(ue){return ue.getFullYear()});J.every=function(ue){return!isFinite(ue=Math.floor(ue))||!(ue>0)?null:a(function(Ae){Ae.setFullYear(Math.floor(Ae.getFullYear()/ue)*ue),Ae.setMonth(0,1),Ae.setHours(0,0,0,0)},function(Ae,je){Ae.setFullYear(Ae.getFullYear()+je*ue)})};var Z=J.range,re=a(function(ue){ue.setUTCSeconds(0,0)},function(ue,Ae){ue.setTime(+ue+Ae*l)},function(ue,Ae){return(Ae-ue)/l},function(ue){return ue.getUTCMinutes()}),se=re.range,oe=a(function(ue){ue.setUTCMinutes(0,0,0)},function(ue,Ae){ue.setTime(+ue+Ae*s)},function(ue,Ae){return(Ae-ue)/s},function(ue){return ue.getUTCHours()}),ce=oe.range,K=a(function(ue){ue.setUTCHours(0,0,0,0)},function(ue,Ae){ue.setUTCDate(ue.getUTCDate()+Ae)},function(ue,Ae){return(Ae-ue)/u},function(ue){return ue.getUTCDate()-1}),Te=K.range;function le(ue){return a(function(Ae){Ae.setUTCDate(Ae.getUTCDate()-(Ae.getUTCDay()+7-ue)%7),Ae.setUTCHours(0,0,0,0)},function(Ae,je){Ae.setUTCDate(Ae.getUTCDate()+je*7)},function(Ae,je){return(je-Ae)/f})}var ve=le(0),ie=le(1),pe=le(2),W=le(3),Q=le(4),j=le(5),me=le(6),_e=ve.range,ye=ie.range,Pe=pe.range,Ne=W.range,Re=Q.range,ze=j.range,Ge=me.range,He=a(function(ue){ue.setUTCDate(1),ue.setUTCHours(0,0,0,0)},function(ue,Ae){ue.setUTCMonth(ue.getUTCMonth()+Ae)},function(ue,Ae){return Ae.getUTCMonth()-ue.getUTCMonth()+(Ae.getUTCFullYear()-ue.getUTCFullYear())*12},function(ue){return ue.getUTCMonth()}),De=He.range,Ie=a(function(ue){ue.setUTCMonth(0,1),ue.setUTCHours(0,0,0,0)},function(ue,Ae){ue.setUTCFullYear(ue.getUTCFullYear()+Ae)},function(ue,Ae){return Ae.getUTCFullYear()-ue.getUTCFullYear()},function(ue){return ue.getUTCFullYear()});Ie.every=function(ue){return!isFinite(ue=Math.floor(ue))||!(ue>0)?null:a(function(Ae){Ae.setUTCFullYear(Math.floor(Ae.getUTCFullYear()/ue)*ue),Ae.setUTCMonth(0,1),Ae.setUTCHours(0,0,0,0)},function(Ae,je){Ae.setUTCFullYear(Ae.getUTCFullYear()+je*ue)})};var Be=Ie.range;e.timeDay=x,e.timeDays=w,e.timeFriday=E,e.timeFridays=V,e.timeHour=m,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=T,e.timeMondays=R,e.timeMonth=U,e.timeMonths=Y,e.timeSaturday=D,e.timeSaturdays=G,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=b,e.timeSundays=P,e.timeThursday=S,e.timeThursdays=B,e.timeTuesday=k,e.timeTuesdays=z,e.timeWednesday=M,e.timeWednesdays=O,e.timeWeek=b,e.timeWeeks=P,e.timeYear=J,e.timeYears=Z,e.utcDay=K,e.utcDays=Te,e.utcFriday=j,e.utcFridays=ze,e.utcHour=oe,e.utcHours=ce,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=re,e.utcMinutes=se,e.utcMonday=ie,e.utcMondays=ye,e.utcMonth=He,e.utcMonths=De,e.utcSaturday=me,e.utcSaturdays=Ge,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=ve,e.utcSundays=_e,e.utcThursday=Q,e.utcThursdays=Re,e.utcTuesday=pe,e.utcTuesdays=Pe,e.utcWednesday=W,e.utcWednesdays=Ne,e.utcWeek=ve,e.utcWeeks=_e,e.utcYear=Ie,e.utcYears=Be,Object.defineProperty(e,"__esModule",{value:!0})})});var xf=N((up,WA)=>{(function(e,r){typeof up=="object"&&typeof WA!="undefined"?r(up,K3()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(up,function(e,r){"use strict";function t(ne){if(0<=ne.y&&ne.y<100){var de=new Date(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L);return de.setFullYear(ne.y),de}return new Date(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L)}function a(ne){if(0<=ne.y&&ne.y<100){var de=new Date(Date.UTC(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L));return de.setUTCFullYear(ne.y),de}return new Date(Date.UTC(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L))}function n(ne,de,Ee){return{y:ne,m:de,d:Ee,H:0,M:0,S:0,L:0}}function i(ne){var de=ne.dateTime,Ee=ne.date,Le=ne.time,ar=ne.periods,sr=ne.days,nr=ne.shortDays,Mr=ne.months,Or=ne.shortMonths,jr=v(ar),Vr=d(ar),Yt=v(sr),wt=d(sr),Tt=v(nr),pt=d(nr),Xt=v(Mr),Jt=d(Mr),It=v(Or),za=d(Or),br={a:Ko,A:Qo,b:vt,B:Tn,c:null,d:U,e:U,f:se,H:Y,I:J,j:Z,L:re,m:oe,M:ce,p:Ft,q:zs,Q:qe,s:Oe,S:K,u:Te,U:le,V:ve,w:ie,W:pe,x:null,X:null,y:W,Y:Q,Z:j,"%":fe},yt={a:pn,A:Gi,b:Vt,B:Yi,c:null,d:me,e:me,f:Re,H:_e,I:ye,j:Pe,L:Ne,m:ze,M:Ge,p:Rl,q:Pl,Q:qe,s:Oe,S:He,u:De,U:Ie,V:Be,w:ue,W:Ae,x:null,X:null,y:je,Y:ur,Z:lr,"%":fe},Nr={a:xa,A:$t,b:tn,B:wn,c:Kt,d:S,e:S,f:O,H:D,I:D,j:E,L:z,m:M,M:P,p:ct,q:k,Q:V,s:G,S:R,u:m,U:y,V:x,w:p,W:w,x:ft,X:_a,y:b,Y:_,Z:T,"%":B};br.x=ut(Ee,br),br.X=ut(Le,br),br.c=ut(de,br),yt.x=ut(Ee,yt),yt.X=ut(Le,yt),yt.c=ut(de,yt);function ut(yr,$r){return function(ht){var fr=[],Ia=-1,kt=0,Oa=yr.length,Br,Vi,Is;for(ht instanceof Date||(ht=new Date(+ht));++Ia53)return null;"w"in fr||(fr.w=1),"Z"in fr?(kt=a(n(fr.y,0,1)),Oa=kt.getUTCDay(),kt=Oa>4||Oa===0?r.utcMonday.ceil(kt):r.utcMonday(kt),kt=r.utcDay.offset(kt,(fr.V-1)*7),fr.y=kt.getUTCFullYear(),fr.m=kt.getUTCMonth(),fr.d=kt.getUTCDate()+(fr.w+6)%7):(kt=t(n(fr.y,0,1)),Oa=kt.getDay(),kt=Oa>4||Oa===0?r.timeMonday.ceil(kt):r.timeMonday(kt),kt=r.timeDay.offset(kt,(fr.V-1)*7),fr.y=kt.getFullYear(),fr.m=kt.getMonth(),fr.d=kt.getDate()+(fr.w+6)%7)}else("W"in fr||"U"in fr)&&("w"in fr||(fr.w="u"in fr?fr.u%7:"W"in fr?1:0),Oa="Z"in fr?a(n(fr.y,0,1)).getUTCDay():t(n(fr.y,0,1)).getDay(),fr.m=0,fr.d="W"in fr?(fr.w+6)%7+fr.W*7-(Oa+5)%7:fr.w+fr.U*7-(Oa+6)%7);return"Z"in fr?(fr.H+=fr.Z/100|0,fr.M+=fr.Z%100,a(fr)):t(fr)}}function Qr(yr,$r,ht,fr){for(var Ia=0,kt=$r.length,Oa=ht.length,Br,Vi;Ia=Oa)return-1;if(Br=$r.charCodeAt(Ia++),Br===37){if(Br=$r.charAt(Ia++),Vi=Nr[Br in o?$r.charAt(Ia++):Br],!Vi||(fr=Vi(yr,ht,fr))<0)return-1}else if(Br!=ht.charCodeAt(fr++))return-1}return fr}function ct(yr,$r,ht){var fr=jr.exec($r.slice(ht));return fr?(yr.p=Vr[fr[0].toLowerCase()],ht+fr[0].length):-1}function xa(yr,$r,ht){var fr=Tt.exec($r.slice(ht));return fr?(yr.w=pt[fr[0].toLowerCase()],ht+fr[0].length):-1}function $t(yr,$r,ht){var fr=Yt.exec($r.slice(ht));return fr?(yr.w=wt[fr[0].toLowerCase()],ht+fr[0].length):-1}function tn(yr,$r,ht){var fr=It.exec($r.slice(ht));return fr?(yr.m=za[fr[0].toLowerCase()],ht+fr[0].length):-1}function wn(yr,$r,ht){var fr=Xt.exec($r.slice(ht));return fr?(yr.m=Jt[fr[0].toLowerCase()],ht+fr[0].length):-1}function Kt(yr,$r,ht){return Qr(yr,de,$r,ht)}function ft(yr,$r,ht){return Qr(yr,Ee,$r,ht)}function _a(yr,$r,ht){return Qr(yr,Le,$r,ht)}function Ko(yr){return nr[yr.getDay()]}function Qo(yr){return sr[yr.getDay()]}function vt(yr){return Or[yr.getMonth()]}function Tn(yr){return Mr[yr.getMonth()]}function Ft(yr){return ar[+(yr.getHours()>=12)]}function zs(yr){return 1+~~(yr.getMonth()/3)}function pn(yr){return nr[yr.getUTCDay()]}function Gi(yr){return sr[yr.getUTCDay()]}function Vt(yr){return Or[yr.getUTCMonth()]}function Yi(yr){return Mr[yr.getUTCMonth()]}function Rl(yr){return ar[+(yr.getUTCHours()>=12)]}function Pl(yr){return 1+~~(yr.getUTCMonth()/3)}return{format:function(yr){var $r=ut(yr+="",br);return $r.toString=function(){return yr},$r},parse:function(yr){var $r=Pt(yr+="",!1);return $r.toString=function(){return yr},$r},utcFormat:function(yr){var $r=ut(yr+="",yt);return $r.toString=function(){return yr},$r},utcParse:function(yr){var $r=Pt(yr+="",!0);return $r.toString=function(){return yr},$r}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ne,de,Ee){var Le=ne<0?"-":"",ar=(Le?-ne:ne)+"",sr=ar.length;return Le+(sr68?1900:2e3),Ee+Le[0].length):-1}function T(ne,de,Ee){var Le=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(de.slice(Ee,Ee+6));return Le?(ne.Z=Le[1]?0:-(Le[2]+(Le[3]||"00")),Ee+Le[0].length):-1}function k(ne,de,Ee){var Le=l.exec(de.slice(Ee,Ee+1));return Le?(ne.q=Le[0]*3-3,Ee+Le[0].length):-1}function M(ne,de,Ee){var Le=l.exec(de.slice(Ee,Ee+2));return Le?(ne.m=Le[0]-1,Ee+Le[0].length):-1}function S(ne,de,Ee){var Le=l.exec(de.slice(Ee,Ee+2));return Le?(ne.d=+Le[0],Ee+Le[0].length):-1}function E(ne,de,Ee){var Le=l.exec(de.slice(Ee,Ee+3));return Le?(ne.m=0,ne.d=+Le[0],Ee+Le[0].length):-1}function D(ne,de,Ee){var Le=l.exec(de.slice(Ee,Ee+2));return Le?(ne.H=+Le[0],Ee+Le[0].length):-1}function P(ne,de,Ee){var Le=l.exec(de.slice(Ee,Ee+2));return Le?(ne.M=+Le[0],Ee+Le[0].length):-1}function R(ne,de,Ee){var Le=l.exec(de.slice(Ee,Ee+2));return Le?(ne.S=+Le[0],Ee+Le[0].length):-1}function z(ne,de,Ee){var Le=l.exec(de.slice(Ee,Ee+3));return Le?(ne.L=+Le[0],Ee+Le[0].length):-1}function O(ne,de,Ee){var Le=l.exec(de.slice(Ee,Ee+6));return Le?(ne.L=Math.floor(Le[0]/1e3),Ee+Le[0].length):-1}function B(ne,de,Ee){var Le=s.exec(de.slice(Ee,Ee+1));return Le?Ee+Le[0].length:-1}function V(ne,de,Ee){var Le=l.exec(de.slice(Ee));return Le?(ne.Q=+Le[0],Ee+Le[0].length):-1}function G(ne,de,Ee){var Le=l.exec(de.slice(Ee));return Le?(ne.s=+Le[0],Ee+Le[0].length):-1}function U(ne,de){return f(ne.getDate(),de,2)}function Y(ne,de){return f(ne.getHours(),de,2)}function J(ne,de){return f(ne.getHours()%12||12,de,2)}function Z(ne,de){return f(1+r.timeDay.count(r.timeYear(ne),ne),de,3)}function re(ne,de){return f(ne.getMilliseconds(),de,3)}function se(ne,de){return re(ne,de)+"000"}function oe(ne,de){return f(ne.getMonth()+1,de,2)}function ce(ne,de){return f(ne.getMinutes(),de,2)}function K(ne,de){return f(ne.getSeconds(),de,2)}function Te(ne){var de=ne.getDay();return de===0?7:de}function le(ne,de){return f(r.timeSunday.count(r.timeYear(ne)-1,ne),de,2)}function ve(ne,de){var Ee=ne.getDay();return ne=Ee>=4||Ee===0?r.timeThursday(ne):r.timeThursday.ceil(ne),f(r.timeThursday.count(r.timeYear(ne),ne)+(r.timeYear(ne).getDay()===4),de,2)}function ie(ne){return ne.getDay()}function pe(ne,de){return f(r.timeMonday.count(r.timeYear(ne)-1,ne),de,2)}function W(ne,de){return f(ne.getFullYear()%100,de,2)}function Q(ne,de){return f(ne.getFullYear()%1e4,de,4)}function j(ne){var de=ne.getTimezoneOffset();return(de>0?"-":(de*=-1,"+"))+f(de/60|0,"0",2)+f(de%60,"0",2)}function me(ne,de){return f(ne.getUTCDate(),de,2)}function _e(ne,de){return f(ne.getUTCHours(),de,2)}function ye(ne,de){return f(ne.getUTCHours()%12||12,de,2)}function Pe(ne,de){return f(1+r.utcDay.count(r.utcYear(ne),ne),de,3)}function Ne(ne,de){return f(ne.getUTCMilliseconds(),de,3)}function Re(ne,de){return Ne(ne,de)+"000"}function ze(ne,de){return f(ne.getUTCMonth()+1,de,2)}function Ge(ne,de){return f(ne.getUTCMinutes(),de,2)}function He(ne,de){return f(ne.getUTCSeconds(),de,2)}function De(ne){var de=ne.getUTCDay();return de===0?7:de}function Ie(ne,de){return f(r.utcSunday.count(r.utcYear(ne)-1,ne),de,2)}function Be(ne,de){var Ee=ne.getUTCDay();return ne=Ee>=4||Ee===0?r.utcThursday(ne):r.utcThursday.ceil(ne),f(r.utcThursday.count(r.utcYear(ne),ne)+(r.utcYear(ne).getUTCDay()===4),de,2)}function ue(ne){return ne.getUTCDay()}function Ae(ne,de){return f(r.utcMonday.count(r.utcYear(ne)-1,ne),de,2)}function je(ne,de){return f(ne.getUTCFullYear()%100,de,2)}function ur(ne,de){return f(ne.getUTCFullYear()%1e4,de,4)}function lr(){return"+0000"}function fe(){return"%"}function qe(ne){return+ne}function Oe(ne){return Math.floor(+ne/1e3)}var Ze;Ue({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ue(ne){return Ze=i(ne),e.timeFormat=Ze.format,e.timeParse=Ze.parse,e.utcFormat=Ze.utcFormat,e.utcParse=Ze.utcParse,Ze}var Xe="%Y-%m-%dT%H:%M:%S.%LZ";function Qe(ne){return ne.toISOString()}var hr=Date.prototype.toISOString?Qe:e.utcFormat(Xe);function $e(ne){var de=new Date(ne);return isNaN(de)?null:de}var Fe=+new Date("2000-01-01T00:00:00.000Z")?$e:e.utcParse(Xe);e.isoFormat=hr,e.isoParse=Fe,e.timeFormatDefaultLocale=Ue,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Q3=N((fp,jA)=>{(function(e,r){typeof fp=="object"&&typeof jA!="undefined"?r(fp):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(fp,function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,S){if((E=(M=S?M.toExponential(S-1):M.toExponential()).indexOf("e"))<0)return null;var E,D=M.slice(0,E);return[D.length>1?D[0]+D.slice(2):D,+M.slice(E+1)]}function a(M){return M=t(Math.abs(M)),M?M[1]:NaN}function n(M,S){return function(E,D){for(var P=E.length,R=[],z=0,O=M[0],B=0;P>0&&O>0&&(B+O+1>D&&(O=Math.max(1,D-B)),R.push(E.substring(P-=O,P+O)),!((B+=O+1)>D));)O=M[z=(z+1)%M.length];return R.reverse().join(S)}}function i(M){return function(S){return S.replace(/[0-9]/g,function(E){return M[+E]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(S=o.exec(M)))throw new Error("invalid format: "+M);var S;return new s({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(M){e:for(var S=M.length,E=1,D=-1,P;E0&&(D=0);break}return D>0?M.slice(0,D)+M.slice(P+1):M}var f;function c(M,S){var E=t(M,S);if(!E)return M+"";var D=E[0],P=E[1],R=P-(f=Math.max(-8,Math.min(8,Math.floor(P/3)))*3)+1,z=D.length;return R===z?D:R>z?D+new Array(R-z+1).join("0"):R>0?D.slice(0,R)+"."+D.slice(R):"0."+new Array(1-R).join("0")+t(M,Math.max(0,S+R-1))[0]}function v(M,S){var E=t(M,S);if(!E)return M+"";var D=E[0],P=E[1];return P<0?"0."+new Array(-P).join("0")+D:D.length>P+1?D.slice(0,P+1)+"."+D.slice(P+1):D+new Array(P-D.length+2).join("0")}var d={"%":function(M,S){return(M*100).toFixed(S)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,S){return M.toExponential(S)},f:function(M,S){return M.toFixed(S)},g:function(M,S){return M.toPrecision(S)},o:function(M){return Math.round(M).toString(8)},p:function(M,S){return v(M*100,S)},r:v,s:c,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function p(M){return M}var m=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function x(M){var S=M.grouping===void 0||M.thousands===void 0?p:n(m.call(M.grouping,Number),M.thousands+""),E=M.currency===void 0?"":M.currency[0]+"",D=M.currency===void 0?"":M.currency[1]+"",P=M.decimal===void 0?".":M.decimal+"",R=M.numerals===void 0?p:i(m.call(M.numerals,String)),z=M.percent===void 0?"%":M.percent+"",O=M.minus===void 0?"-":M.minus+"",B=M.nan===void 0?"NaN":M.nan+"";function V(U){U=l(U);var Y=U.fill,J=U.align,Z=U.sign,re=U.symbol,se=U.zero,oe=U.width,ce=U.comma,K=U.precision,Te=U.trim,le=U.type;le==="n"?(ce=!0,le="g"):d[le]||(K===void 0&&(K=12),Te=!0,le="g"),(se||Y==="0"&&J==="=")&&(se=!0,Y="0",J="=");var ve=re==="$"?E:re==="#"&&/[boxX]/.test(le)?"0"+le.toLowerCase():"",ie=re==="$"?D:/[%p]/.test(le)?z:"",pe=d[le],W=/[defgprs%]/.test(le);K=K===void 0?6:/[gprs]/.test(le)?Math.max(1,Math.min(21,K)):Math.max(0,Math.min(20,K));function Q(j){var me=ve,_e=ie,ye,Pe,Ne;if(le==="c")_e=pe(j)+_e,j="";else{j=+j;var Re=j<0||1/j<0;if(j=isNaN(j)?B:pe(Math.abs(j),K),Te&&(j=u(j)),Re&&+j==0&&Z!=="+"&&(Re=!1),me=(Re?Z==="("?Z:O:Z==="-"||Z==="("?"":Z)+me,_e=(le==="s"?y[8+f/3]:"")+_e+(Re&&Z==="("?")":""),W){for(ye=-1,Pe=j.length;++yeNe||Ne>57){_e=(Ne===46?P+j.slice(ye+1):j.slice(ye))+_e,j=j.slice(0,ye);break}}}ce&&!se&&(j=S(j,1/0));var ze=me.length+j.length+_e.length,Ge=ze>1)+me+j+_e+Ge.slice(ze);break;default:j=Ge+me+j+_e;break}return R(j)}return Q.toString=function(){return U+""},Q}function G(U,Y){var J=V((U=l(U),U.type="f",U)),Z=Math.max(-8,Math.min(8,Math.floor(a(Y)/3)))*3,re=Math.pow(10,-Z),se=y[8+Z/3];return function(oe){return J(re*oe)+se}}return{format:V,formatPrefix:G}}var w;_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function _(M){return w=x(M),e.format=w.format,e.formatPrefix=w.formatPrefix,w}function b(M){return Math.max(0,-a(Math.abs(M)))}function T(M,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(S)/3)))*3-a(Math.abs(M)))}function k(M,S){return M=Math.abs(M),S=Math.abs(S)-M,Math.max(0,a(S)-a(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=_,e.formatLocale=x,e.formatSpecifier=l,e.precisionFixed=b,e.precisionPrefix=T,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})})});var XA=N((oCe,ZA)=>{"use strict";ZA.exports=function(e){for(var r=e.length,t,a=0;a13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var Rr=N((lCe,JA)=>{"use strict";var Zie=XA();JA.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&Zie(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Nt=N((sCe,$A)=>{"use strict";$A.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var eb=N((cp,KA)=>{(function(e,r){typeof cp=="object"&&typeof KA!="undefined"?r(cp):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(cp,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,c,v,d,p;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var m=new ArrayBuffer(l),y=new Uint8Array(m);for(u=0;u>4,y[f++]=(v&15)<<4|d>>2,y[f++]=(d&3)<<6|p&63;return m};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})})});var zl=N((uCe,QA)=>{"use strict";QA.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var Vn=N(Zi=>{"use strict";var Xie=eb().decode,Jie=zl(),rb=Array.isArray,$ie=ArrayBuffer,Kie=DataView;function eM(e){return $ie.isView(e)&&!(e instanceof Kie)}Zi.isTypedArray=eM;function vp(e){return rb(e)||eM(e)}Zi.isArrayOrTypedArray=vp;function Qie(e){return!vp(e[0])}Zi.isArray1D=Qie;Zi.ensureArray=function(e,r){return rb(e)||(e=[]),e.length=r,e};var Ca={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Ca.uint8c=Ca.u1c;Ca.uint8=Ca.u1;Ca.int8=Ca.i1;Ca.uint16=Ca.u2;Ca.int16=Ca.i2;Ca.uint32=Ca.u4;Ca.int32=Ca.i4;Ca.float32=Ca.f4;Ca.float64=Ca.f8;function tb(e){return e.constructor===ArrayBuffer}Zi.isArrayBuffer=tb;Zi.decodeTypedArraySpec=function(e){var r=[],t=eoe(e),a=t.dtype,n=Ca[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;tb(o)||(o=Xie(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,c=+l[0],v=i*c,d=0;if(s===1)r=new n(o);else if(s===2)for(u=+l[1],f=0;f{"use strict";var tM=Rr(),nb=Vn().isArrayOrTypedArray;oM.exports=function(r,t){if(tM(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,o,l;for(l=0;l{"use strict";var _f=hp(),ioe=/^\w*$/,ooe=0,lM=1,dp=2,sM=3,Ys=4;uM.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=_f(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i2)return s[d]=s[d]|dp,c.set(v,null);if(f){for(i=d;i{"use strict";var loe=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,soe=/^[^\.\[\]]+$/;cM.exports=function(e,r){for(;r;){var t=e.match(loe);if(t)e=t[1];else if(e.match(soe))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var pp=N((dCe,hM)=>{"use strict";var uoe=Rr();hM.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 uoe(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var yM=N((pCe,pM)=>{"use strict";var dM=Vn().isArrayOrTypedArray,Hv=zl();pM.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(dM(n)&&dM(i)&&Hv(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;l{"use strict";function foe(e,r){var t=e%r;return t<0?t+r:t}function coe(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}mM.exports={mod:foe,modHalf:coe}});var kn=N((mCe,yp)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,o=e.max,l=e.random;function s(W,Q){if(W=W||"",Q=Q||{},W instanceof s)return W;if(!(this instanceof s))return new s(W,Q);var j=u(W);this._originalInput=W,this._r=j.r,this._g=j.g,this._b=j.b,this._a=j.a,this._roundA=n(100*this._a)/100,this._format=Q.format||j.format,this._gradientType=Q.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=j.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var W=this.toRgb();return(W.r*299+W.g*587+W.b*114)/1e3},getLuminance:function(){var W=this.toRgb(),Q,j,me,_e,ye,Pe;return Q=W.r/255,j=W.g/255,me=W.b/255,Q<=.03928?_e=Q/12.92:_e=e.pow((Q+.055)/1.055,2.4),j<=.03928?ye=j/12.92:ye=e.pow((j+.055)/1.055,2.4),me<=.03928?Pe=me/12.92:Pe=e.pow((me+.055)/1.055,2.4),.2126*_e+.7152*ye+.0722*Pe},setAlpha:function(W){return this._a=U(W),this._roundA=n(100*this._a)/100,this},toHsv:function(){var W=d(this._r,this._g,this._b);return{h:W.h*360,s:W.s,v:W.v,a:this._a}},toHsvString:function(){var W=d(this._r,this._g,this._b),Q=n(W.h*360),j=n(W.s*100),me=n(W.v*100);return this._a==1?"hsv("+Q+", "+j+"%, "+me+"%)":"hsva("+Q+", "+j+"%, "+me+"%, "+this._roundA+")"},toHsl:function(){var W=c(this._r,this._g,this._b);return{h:W.h*360,s:W.s,l:W.l,a:this._a}},toHslString:function(){var W=c(this._r,this._g,this._b),Q=n(W.h*360),j=n(W.s*100),me=n(W.l*100);return this._a==1?"hsl("+Q+", "+j+"%, "+me+"%)":"hsla("+Q+", "+j+"%, "+me+"%, "+this._roundA+")"},toHex:function(W){return m(this._r,this._g,this._b,W)},toHexString:function(W){return"#"+this.toHex(W)},toHex8:function(W){return y(this._r,this._g,this._b,this._a,W)},toHex8String:function(W){return"#"+this.toHex8(W)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(Y(this._r,255)*100)+"%",g:n(Y(this._g,255)*100)+"%",b:n(Y(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(Y(this._r,255)*100)+"%, "+n(Y(this._g,255)*100)+"%, "+n(Y(this._b,255)*100)+"%)":"rgba("+n(Y(this._r,255)*100)+"%, "+n(Y(this._g,255)*100)+"%, "+n(Y(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:V[m(this._r,this._g,this._b,!0)]||!1},toFilter:function(W){var Q="#"+x(this._r,this._g,this._b,this._a),j=Q,me=this._gradientType?"GradientType = 1, ":"";if(W){var _e=s(W);j="#"+x(_e._r,_e._g,_e._b,_e._a)}return"progid:DXImageTransform.Microsoft.gradient("+me+"startColorstr="+Q+",endColorstr="+j+")"},toString:function(W){var Q=!!W;W=W||this._format;var j=!1,me=this._a<1&&this._a>=0,_e=!Q&&me&&(W==="hex"||W==="hex6"||W==="hex3"||W==="hex4"||W==="hex8"||W==="name");return _e?W==="name"&&this._a===0?this.toName():this.toRgbString():(W==="rgb"&&(j=this.toRgbString()),W==="prgb"&&(j=this.toPercentageRgbString()),(W==="hex"||W==="hex6")&&(j=this.toHexString()),W==="hex3"&&(j=this.toHexString(!0)),W==="hex4"&&(j=this.toHex8String(!0)),W==="hex8"&&(j=this.toHex8String()),W==="name"&&(j=this.toName()),W==="hsl"&&(j=this.toHslString()),W==="hsv"&&(j=this.toHsvString()),j||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(W,Q){var j=W.apply(null,[this].concat([].slice.call(Q)));return this._r=j._r,this._g=j._g,this._b=j._b,this.setAlpha(j._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(W,Q){return W.apply(null,[this].concat([].slice.call(Q)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(O,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(D,arguments)},tetrad:function(){return this._applyCombination(P,arguments)}},s.fromRatio=function(W,Q){if(typeof W=="object"){var j={};for(var me in W)W.hasOwnProperty(me)&&(me==="a"?j[me]=W[me]:j[me]=ce(W[me]));W=j}return s(W,Q)};function u(W){var Q={r:0,g:0,b:0},j=1,me=null,_e=null,ye=null,Pe=!1,Ne=!1;return typeof W=="string"&&(W=ie(W)),typeof W=="object"&&(ve(W.r)&&ve(W.g)&&ve(W.b)?(Q=f(W.r,W.g,W.b),Pe=!0,Ne=String(W.r).substr(-1)==="%"?"prgb":"rgb"):ve(W.h)&&ve(W.s)&&ve(W.v)?(me=ce(W.s),_e=ce(W.v),Q=p(W.h,me,_e),Pe=!0,Ne="hsv"):ve(W.h)&&ve(W.s)&&ve(W.l)&&(me=ce(W.s),ye=ce(W.l),Q=v(W.h,me,ye),Pe=!0,Ne="hsl"),W.hasOwnProperty("a")&&(j=W.a)),j=U(j),{ok:Pe,format:W.format||Ne,r:i(255,o(Q.r,0)),g:i(255,o(Q.g,0)),b:i(255,o(Q.b,0)),a:j}}function f(W,Q,j){return{r:Y(W,255)*255,g:Y(Q,255)*255,b:Y(j,255)*255}}function c(W,Q,j){W=Y(W,255),Q=Y(Q,255),j=Y(j,255);var me=o(W,Q,j),_e=i(W,Q,j),ye,Pe,Ne=(me+_e)/2;if(me==_e)ye=Pe=0;else{var Re=me-_e;switch(Pe=Ne>.5?Re/(2-me-_e):Re/(me+_e),me){case W:ye=(Q-j)/Re+(Q1&&(He-=1),He<1/6?ze+(Ge-ze)*6*He:He<1/2?Ge:He<2/3?ze+(Ge-ze)*(2/3-He)*6:ze}if(Q===0)me=_e=ye=j;else{var Ne=j<.5?j*(1+Q):j+Q-j*Q,Re=2*j-Ne;me=Pe(Re,Ne,W+1/3),_e=Pe(Re,Ne,W),ye=Pe(Re,Ne,W-1/3)}return{r:me*255,g:_e*255,b:ye*255}}function d(W,Q,j){W=Y(W,255),Q=Y(Q,255),j=Y(j,255);var me=o(W,Q,j),_e=i(W,Q,j),ye,Pe,Ne=me,Re=me-_e;if(Pe=me===0?0:Re/me,me==_e)ye=0;else{switch(me){case W:ye=(Q-j)/Re+(Q>1)+720)%360;--Q;)me.h=(me.h+_e)%360,ye.push(s(me));return ye}function O(W,Q){Q=Q||6;for(var j=s(W).toHsv(),me=j.h,_e=j.s,ye=j.v,Pe=[],Ne=1/Q;Q--;)Pe.push(s({h:me,s:_e,v:ye})),ye=(ye+Ne)%1;return Pe}s.mix=function(W,Q,j){j=j===0?0:j||50;var me=s(W).toRgb(),_e=s(Q).toRgb(),ye=j/100,Pe={r:(_e.r-me.r)*ye+me.r,g:(_e.g-me.g)*ye+me.g,b:(_e.b-me.b)*ye+me.b,a:(_e.a-me.a)*ye+me.a};return s(Pe)},s.readability=function(W,Q){var j=s(W),me=s(Q);return(e.max(j.getLuminance(),me.getLuminance())+.05)/(e.min(j.getLuminance(),me.getLuminance())+.05)},s.isReadable=function(W,Q,j){var me=s.readability(W,Q),_e,ye;switch(ye=!1,_e=pe(j),_e.level+_e.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(W,Q,j){var me=null,_e=0,ye,Pe,Ne,Re;j=j||{},Pe=j.includeFallbackColors,Ne=j.level,Re=j.size;for(var ze=0;ze_e&&(_e=ye,me=s(Q[ze]));return s.isReadable(W,me,{level:Ne,size:Re})||!Pe?me:(j.includeFallbackColors=!1,s.mostReadable(W,["#fff","#000"],j))};var B=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},V=s.hexNames=G(B);function G(W){var Q={};for(var j in W)W.hasOwnProperty(j)&&(Q[W[j]]=j);return Q}function U(W){return W=parseFloat(W),(isNaN(W)||W<0||W>1)&&(W=1),W}function Y(W,Q){re(W)&&(W="100%");var j=se(W);return W=i(Q,o(0,parseFloat(W))),j&&(W=parseInt(W*Q,10)/100),e.abs(W-Q)<1e-6?1:W%Q/parseFloat(Q)}function J(W){return i(1,o(0,W))}function Z(W){return parseInt(W,16)}function re(W){return typeof W=="string"&&W.indexOf(".")!=-1&&parseFloat(W)===1}function se(W){return typeof W=="string"&&W.indexOf("%")!=-1}function oe(W){return W.length==1?"0"+W:""+W}function ce(W){return W<=1&&(W=W*100+"%"),W}function K(W){return e.round(parseFloat(W)*255).toString(16)}function Te(W){return Z(W)/255}var le=function(){var W="[-\\+]?\\d+%?",Q="[-\\+]?\\d*\\.\\d+%?",j="(?:"+Q+")|(?:"+W+")",me="[\\s|\\(]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")\\s*\\)?",_e="[\\s|\\(]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")\\s*\\)?";return{CSS_UNIT:new RegExp(j),rgb:new RegExp("rgb"+me),rgba:new RegExp("rgba"+_e),hsl:new RegExp("hsl"+me),hsla:new RegExp("hsla"+_e),hsv:new RegExp("hsv"+me),hsva:new RegExp("hsva"+_e),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ve(W){return!!le.CSS_UNIT.exec(W)}function ie(W){W=W.replace(r,"").replace(t,"").toLowerCase();var Q=!1;if(B[W])W=B[W],Q=!0;else if(W=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var j;return(j=le.rgb.exec(W))?{r:j[1],g:j[2],b:j[3]}:(j=le.rgba.exec(W))?{r:j[1],g:j[2],b:j[3],a:j[4]}:(j=le.hsl.exec(W))?{h:j[1],s:j[2],l:j[3]}:(j=le.hsla.exec(W))?{h:j[1],s:j[2],l:j[3],a:j[4]}:(j=le.hsv.exec(W))?{h:j[1],s:j[2],v:j[3]}:(j=le.hsva.exec(W))?{h:j[1],s:j[2],v:j[3],a:j[4]}:(j=le.hex8.exec(W))?{r:Z(j[1]),g:Z(j[2]),b:Z(j[3]),a:Te(j[4]),format:Q?"name":"hex8"}:(j=le.hex6.exec(W))?{r:Z(j[1]),g:Z(j[2]),b:Z(j[3]),format:Q?"name":"hex"}:(j=le.hex4.exec(W))?{r:Z(j[1]+""+j[1]),g:Z(j[2]+""+j[2]),b:Z(j[3]+""+j[3]),a:Te(j[4]+""+j[4]),format:Q?"name":"hex8"}:(j=le.hex3.exec(W))?{r:Z(j[1]+""+j[1]),g:Z(j[2]+""+j[2]),b:Z(j[3]+""+j[3]),format:Q?"name":"hex"}:!1}function pe(W){var Q,j;return W=W||{level:"AA",size:"small"},Q=(W.level||"AA").toUpperCase(),j=(W.size||"small").toLowerCase(),Q!=="AA"&&Q!=="AAA"&&(Q="AA"),j!=="small"&&j!=="large"&&(j="small"),{level:Q,size:j}}typeof yp!="undefined"&&yp.exports?yp.exports=s:window.tinycolor=s})(Math)});var xt=N(Yv=>{"use strict";var gM=zl(),Uv=Array.isArray;function voe(e,r){var t,a;for(t=0;t{"use strict";bM.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 Vv=N((xCe,xM)=>{"use strict";xM.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var Tf=N((_Ce,TM)=>{"use strict";var _M=Vv(),wM=da(),ib=wM({editType:"none"});ib.family.dflt=_M.HOVERFONT;ib.size.dflt=_M.HOVERFONTSIZE;TM.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:ib,grouptitlefont:wM({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var mp=N((wCe,AM)=>{"use strict";var hoe=da(),Wv=Tf().hoverlabel,jv=xt().extendFlat;AM.exports={hoverlabel:{bgcolor:jv({},Wv.bgcolor,{arrayOk:!0}),bordercolor:jv({},Wv.bordercolor,{arrayOk:!0}),font:hoe({arrayOk:!0,editType:"none"}),align:jv({},Wv.align,{arrayOk:!0}),namelength:jv({},Wv.namelength,{arrayOk:!0}),showarrow:jv({},Wv.showarrow),editType:"none"}}});var mn=N((TCe,MM)=>{"use strict";var doe=da(),poe=mp();MM.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:doe({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:poe.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var Vs=N((ACe,qM)=>{"use strict";var yoe=kn(),gp={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},kM=gp.RdBu;function moe(e,r){if(r||(r=kM),!e)return r;function t(){try{e=gp[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),SM(e)?e:r}function SM(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";Ws.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Ws.defaultLine="#444";Ws.lightLine="#eee";Ws.background="#fff";Ws.borderLine="#BEC8D9";Ws.lightFraction=100*10/11});var Tr=N((kCe,LM)=>{"use strict";var Sn=kn(),boe=Rr(),xoe=Vn().isTypedArray,wa=LM.exports={},bp=li();wa.defaults=bp.defaults;var _oe=wa.defaultLine=bp.defaultLine;wa.lightLine=bp.lightLine;var lb=wa.background=bp.background;wa.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};wa.rgb=function(e){return wa.tinyRGB(Sn(e))};wa.opacity=function(e){return e?Sn(e).getAlpha():0};wa.addOpacity=function(e,r){var t=Sn(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};wa.combine=function(e,r){var t=Sn(e).toRgb();if(t.a===1)return Sn(e).toRgbString();var a=Sn(r||lb).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return Sn(i).toRgbString()};wa.interpolate=function(e,r,t){var a=Sn(e).toRgb(),n=Sn(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return Sn(i).toRgbString()};wa.contrast=function(e,r,t){var a=Sn(e);a.getAlpha()!==1&&(a=Sn(wa.combine(e,lb)));var n=a.isDark()?r?a.lighten(r):lb:t?a.darken(t):_oe;return n.toString()};wa.stroke=function(e,r){var t=Sn(r);e.style({stroke:wa.tinyRGB(t),"stroke-opacity":t.getAlpha()})};wa.fill=function(e,r){var t=Sn(r);e.style({fill:wa.tinyRGB(t),"fill-opacity":t.getAlpha()})};wa.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var o=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+o+", "+a[3]+")":"rgb("+o+")"}});var xp=N((SCe,CM)=>{"use strict";CM.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var Af=N(EM=>{"use strict";EM.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 FM=N(qn=>{"use strict";var sb=Rr(),DM=kn(),RM=xt().extendFlat,woe=mn(),Toe=Vs(),Aoe=Tr(),Moe=xp().DESELECTDIM,Mf=hp(),PM=Af().counter,koe=wf().modHalf,To=Vn().isArrayOrTypedArray,Il=Vn().isTypedArraySpec,Ol=Vn().decodeTypedArraySpec;qn.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(To(e)?e:Il(e)?Ol(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;aa.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}Il(e)&&(e=Ol(e)),e%1||!sb(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Il(e)&&(e=Ol(e)),DM(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return DM(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(Toe.get(e,t))}},angle:{coerceFunction:function(e,r,t){Il(e)&&(e=Ol(e)),e==="auto"?r.set("auto"):sb(e)?r.set(koe(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||PM(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:!!PM(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 NM={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:{}}},zM={};function IM(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),IM(a,r[t]))}}IM(NM,zM);OM.exports={configAttributes:NM,dfltConfig:zM}});var fb=N((ECe,BM)=>{"use strict";var ub=Sr(),Soe=Rr(),Zv=[];BM.exports=function(e,r){if(Zv.indexOf(e)!==-1)return;Zv.push(e);var t=1e3;Soe(r)?t=r:r==="long"&&(t=3e3);var a=ub.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(Zv);function i(o){o.duration(700).style("opacity",0).each("end",function(l){var s=Zv.indexOf(l);s!==-1&&Zv.splice(s,1),ub.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var l=ub.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(i)});for(var s=l.append("p"),u=o.split(//g),f=0;f{"use strict";var kf=js().dfltConfig,cb=fb(),vb=HM.exports={};vb.log=function(){var e;if(kf.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};vb.warn=function(){var e;if(kf.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};vb.error=function(){var e;if(kf.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var wp=N((RCe,UM)=>{"use strict";UM.exports=function(){}});var hb=N((PCe,GM)=>{"use strict";GM.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{YM.exports=qoe;function qoe(){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 jM=N((NCe,WM)=>{WM.exports=Loe;function Loe(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 XM=N((zCe,ZM)=>{ZM.exports=Coe;function Coe(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var db=N((ICe,JM)=>{JM.exports=Eoe;function Eoe(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 KM=N((OCe,$M)=>{$M.exports=Doe;function Doe(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var e9=N((BCe,QM)=>{QM.exports=Roe;function Roe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],m=r[13],y=r[14],x=r[15],w=t*l-a*o,_=t*s-n*o,b=t*u-i*o,T=a*s-n*l,k=a*u-i*l,M=n*u-i*s,S=f*m-c*p,E=f*y-v*p,D=f*x-d*p,P=c*y-v*m,R=c*x-d*m,z=v*x-d*y,O=w*z-_*R+b*P+T*D-k*E+M*S;return O?(O=1/O,e[0]=(l*z-s*R+u*P)*O,e[1]=(n*R-a*z-i*P)*O,e[2]=(m*M-y*k+x*T)*O,e[3]=(v*k-c*M-d*T)*O,e[4]=(s*D-o*z-u*E)*O,e[5]=(t*z-n*D+i*E)*O,e[6]=(y*b-p*M-x*_)*O,e[7]=(f*M-v*b+d*_)*O,e[8]=(o*R-l*D+u*S)*O,e[9]=(a*D-t*R-i*S)*O,e[10]=(p*k-m*b+x*w)*O,e[11]=(c*b-f*k-d*w)*O,e[12]=(l*E-o*P-s*S)*O,e[13]=(t*P-a*E+n*S)*O,e[14]=(m*_-p*T-y*w)*O,e[15]=(f*T-c*_+v*w)*O,e):null}});var t9=N((HCe,r9)=>{r9.exports=Poe;function Poe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],m=r[13],y=r[14],x=r[15];return e[0]=l*(v*x-d*y)-c*(s*x-u*y)+m*(s*d-u*v),e[1]=-(a*(v*x-d*y)-c*(n*x-i*y)+m*(n*d-i*v)),e[2]=a*(s*x-u*y)-l*(n*x-i*y)+m*(n*u-i*s),e[3]=-(a*(s*d-u*v)-l*(n*d-i*v)+c*(n*u-i*s)),e[4]=-(o*(v*x-d*y)-f*(s*x-u*y)+p*(s*d-u*v)),e[5]=t*(v*x-d*y)-f*(n*x-i*y)+p*(n*d-i*v),e[6]=-(t*(s*x-u*y)-o*(n*x-i*y)+p*(n*u-i*s)),e[7]=t*(s*d-u*v)-o*(n*d-i*v)+f*(n*u-i*s),e[8]=o*(c*x-d*m)-f*(l*x-u*m)+p*(l*d-u*c),e[9]=-(t*(c*x-d*m)-f*(a*x-i*m)+p*(a*d-i*c)),e[10]=t*(l*x-u*m)-o*(a*x-i*m)+p*(a*u-i*l),e[11]=-(t*(l*d-u*c)-o*(a*d-i*c)+f*(a*u-i*l)),e[12]=-(o*(c*y-v*m)-f*(l*y-s*m)+p*(l*v-s*c)),e[13]=t*(c*y-v*m)-f*(a*y-n*m)+p*(a*v-n*c),e[14]=-(t*(l*y-s*m)-o*(a*y-n*m)+p*(a*s-n*l)),e[15]=t*(l*v-s*c)-o*(a*v-n*c)+f*(a*s-n*l),e}});var n9=N((UCe,a9)=>{a9.exports=Foe;function Foe(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],c=e[10],v=e[11],d=e[12],p=e[13],m=e[14],y=e[15],x=r*o-t*i,w=r*l-a*i,_=r*s-n*i,b=t*l-a*o,T=t*s-n*o,k=a*s-n*l,M=u*p-f*d,S=u*m-c*d,E=u*y-v*d,D=f*m-c*p,P=f*y-v*p,R=c*y-v*m;return x*R-w*P+_*D+b*E-T*S+k*M}});var o9=N((GCe,i9)=>{i9.exports=Noe;function Noe(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],c=r[8],v=r[9],d=r[10],p=r[11],m=r[12],y=r[13],x=r[14],w=r[15],_=t[0],b=t[1],T=t[2],k=t[3];return e[0]=_*a+b*l+T*c+k*m,e[1]=_*n+b*s+T*v+k*y,e[2]=_*i+b*u+T*d+k*x,e[3]=_*o+b*f+T*p+k*w,_=t[4],b=t[5],T=t[6],k=t[7],e[4]=_*a+b*l+T*c+k*m,e[5]=_*n+b*s+T*v+k*y,e[6]=_*i+b*u+T*d+k*x,e[7]=_*o+b*f+T*p+k*w,_=t[8],b=t[9],T=t[10],k=t[11],e[8]=_*a+b*l+T*c+k*m,e[9]=_*n+b*s+T*v+k*y,e[10]=_*i+b*u+T*d+k*x,e[11]=_*o+b*f+T*p+k*w,_=t[12],b=t[13],T=t[14],k=t[15],e[12]=_*a+b*l+T*c+k*m,e[13]=_*n+b*s+T*v+k*y,e[14]=_*i+b*u+T*d+k*x,e[15]=_*o+b*f+T*p+k*w,e}});var s9=N((YCe,l9)=>{l9.exports=zoe;function zoe(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,u,f,c,v,d,p,m,y,x;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],c=r[5],v=r[6],d=r[7],p=r[8],m=r[9],y=r[10],x=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=v,e[7]=d,e[8]=p,e[9]=m,e[10]=y,e[11]=x,e[12]=o*a+f*n+p*i+r[12],e[13]=l*a+c*n+m*i+r[13],e[14]=s*a+v*n+y*i+r[14],e[15]=u*a+d*n+x*i+r[15]),e}});var f9=N((VCe,u9)=>{u9.exports=Ioe;function Ioe(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 v9=N((WCe,c9)=>{c9.exports=Ooe;function Ooe(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,u,f,c,v,d,p,m,y,x,w,_,b,T,k,M,S,E,D,P,R,z,O,B;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],v=r[1],d=r[2],p=r[3],m=r[4],y=r[5],x=r[6],w=r[7],_=r[8],b=r[9],T=r[10],k=r[11],M=n*n*f+u,S=i*n*f+o*s,E=o*n*f-i*s,D=n*i*f-o*s,P=i*i*f+u,R=o*i*f+n*s,z=n*o*f+i*s,O=i*o*f-n*s,B=o*o*f+u,e[0]=c*M+m*S+_*E,e[1]=v*M+y*S+b*E,e[2]=d*M+x*S+T*E,e[3]=p*M+w*S+k*E,e[4]=c*D+m*P+_*R,e[5]=v*D+y*P+b*R,e[6]=d*D+x*P+T*R,e[7]=p*D+w*P+k*R,e[8]=c*z+m*O+_*B,e[9]=v*z+y*O+b*B,e[10]=d*z+x*O+T*B,e[11]=p*z+w*O+k*B,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var d9=N((jCe,h9)=>{h9.exports=Boe;function Boe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=o*n+f*a,e[6]=l*n+c*a,e[7]=s*n+v*a,e[8]=u*n-i*a,e[9]=f*n-o*a,e[10]=c*n-l*a,e[11]=v*n-s*a,e}});var y9=N((ZCe,p9)=>{p9.exports=Hoe;function Hoe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=o*n-f*a,e[2]=l*n-c*a,e[3]=s*n-v*a,e[8]=i*a+u*n,e[9]=o*a+f*n,e[10]=l*a+c*n,e[11]=s*a+v*n,e}});var g9=N((XCe,m9)=>{m9.exports=Uoe;function Uoe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],c=r[6],v=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=o*n+f*a,e[2]=l*n+c*a,e[3]=s*n+v*a,e[4]=u*n-i*a,e[5]=f*n-o*a,e[6]=c*n-l*a,e[7]=v*n-s*a,e}});var x9=N((JCe,b9)=>{b9.exports=Goe;function Goe(e,r,t){var a,n,i,o=t[0],l=t[1],s=t[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,l*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+s*a,e[2]=s*o*i-l*a,e[3]=0,e[4]=o*l*i-s*a,e[5]=l*l*i+n,e[6]=s*l*i+o*a,e[7]=0,e[8]=o*s*i+l*a,e[9]=l*s*i-o*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var w9=N(($Ce,_9)=>{_9.exports=Yoe;function Yoe(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,u=i+i,f=a*l,c=a*s,v=a*u,d=n*s,p=n*u,m=i*u,y=o*l,x=o*s,w=o*u;return e[0]=1-(d+m),e[1]=c+w,e[2]=v-x,e[3]=0,e[4]=c-w,e[5]=1-(f+m),e[6]=p+y,e[7]=0,e[8]=v+x,e[9]=p-y,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var A9=N((KCe,T9)=>{T9.exports=Voe;function Voe(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 k9=N((QCe,M9)=>{M9.exports=Woe;function Woe(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 q9=N((eEe,S9)=>{S9.exports=joe;function joe(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 C9=N((rEe,L9)=>{L9.exports=Zoe;function Zoe(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 D9=N((tEe,E9)=>{E9.exports=Xoe;function Xoe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var pb=N((aEe,R9)=>{R9.exports=Joe;function Joe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,u=t*o,f=a*o,c=a*l,v=n*o,d=n*l,p=n*s,m=i*o,y=i*l,x=i*s;return e[0]=1-c-p,e[1]=f+x,e[2]=v-y,e[3]=0,e[4]=f-x,e[5]=1-u-p,e[6]=d+m,e[7]=0,e[8]=v+y,e[9]=d-m,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var F9=N((nEe,P9)=>{P9.exports=$oe;function $oe(e,r,t,a,n,i,o){var l=1/(t-r),s=1/(n-a),u=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var z9=N((iEe,N9)=>{N9.exports=Koe;function Koe(e,r,t,a,n){var i=1/Math.tan(r/2),o=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var O9=N((oEe,I9)=>{I9.exports=Qoe;function Qoe(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var H9=N((lEe,B9)=>{B9.exports=ele;function ele(e,r,t,a,n,i,o){var l=1/(r-t),s=1/(a-n),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*s,e[14]=(o+i)*u,e[15]=1,e}});var G9=N((sEe,U9)=>{var rle=db();U9.exports=tle;function tle(e,r,t,a){var n,i,o,l,s,u,f,c,v,d,p=r[0],m=r[1],y=r[2],x=a[0],w=a[1],_=a[2],b=t[0],T=t[1],k=t[2];return Math.abs(p-b)<1e-6&&Math.abs(m-T)<1e-6&&Math.abs(y-k)<1e-6?rle(e):(f=p-b,c=m-T,v=y-k,d=1/Math.sqrt(f*f+c*c+v*v),f*=d,c*=d,v*=d,n=w*v-_*c,i=_*f-x*v,o=x*c-w*f,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-v*i,s=v*n-f*o,u=f*i-c*n,d=Math.sqrt(l*l+s*s+u*u),d?(d=1/d,l*=d,s*=d,u*=d):(l=0,s=0,u=0),e[0]=n,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=u,e[10]=v,e[11]=0,e[12]=-(n*p+i*m+o*y),e[13]=-(l*p+s*m+u*y),e[14]=-(f*p+c*m+v*y),e[15]=1,e)}});var V9=N((uEe,Y9)=>{Y9.exports=ale;function ale(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var yb=N((fEe,W9)=>{W9.exports={create:VM(),clone:jM(),copy:XM(),identity:db(),transpose:KM(),invert:e9(),adjoint:t9(),determinant:n9(),multiply:o9(),translate:s9(),scale:f9(),rotate:v9(),rotateX:d9(),rotateY:y9(),rotateZ:g9(),fromRotation:x9(),fromRotationTranslation:w9(),fromScaling:A9(),fromTranslation:k9(),fromXRotation:q9(),fromYRotation:C9(),fromZRotation:D9(),fromQuat:pb(),frustum:F9(),perspective:z9(),perspectiveFromFieldOfView:O9(),ortho:H9(),lookAt:G9(),str:V9()}});var Tp=N(ea=>{"use strict";var nle=yb();ea.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var ile=Sr(),j9=Zs(),ole=Tp(),lle=yb();function sle(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 ule(e){var r=ile.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function Z9(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function fle(e,r){X9("global",e,r)}function X9(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):j9.warn("addStyleRule failed"):j9.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function cle(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&Z9(t)}function vle(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[o[0]]=o[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[o[0]]=o[1]:f.style[l[0]]=l[1])}),u.setAttribute(s,!0))})}function hle(e){var r=$9(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=J9(a);if(n){var i=ole.convertCssMatrix(n);t=lle.multiply(t,t,i)}}),t}function J9(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 $9(e){for(var r=[];dle(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function dle(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function ple(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}K9.exports={getGraphDiv:sle,isPlotDiv:ule,removeElement:Z9,addStyleRule:fle,addRelatedStyleRule:X9,deleteRelatedStyleRule:cle,setStyleOnHover:vle,getFullTransformMatrix:hle,getElementTransformMatrix:J9,getElementAndAncestors:$9,equalDomRects:ple}});var Jv=N((hEe,Q9)=>{"use strict";Q9.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Xi=N((dEe,ok)=>{"use strict";var rk=xt().extendFlat,yle=zl(),tk={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},ak={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},mle=tk.flags.slice().concat(["fullReplot"]),gle=ak.flags.slice().concat("layoutReplot");ok.exports={traces:tk,layout:ak,traceFlags:function(){return ek(mle)},layoutFlags:function(){return ek(gle)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";mb.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};mb.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var gb=N((yEe,lk)=>{"use strict";lk.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Ta=N($v=>{"use strict";var sk=gb(),ble=sk.FORMAT_LINK,xle=sk.DATE_FORMAT_LINK;function _le(e){var r=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(r?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,ble,"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}".`,xle,"for details on the date formatting syntax."].join(" ")}$v.templateFormatStringDescription=_le;function bb(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var a=[],n=0;n{"use strict";function Bl(e,r){return r?r.d2l(e):e}function uk(e,r){return r?r.l2d(e):e}function wle(e){return e.x0}function Tle(e){return e.x1}function Ale(e){return e.y0}function Mle(e){return e.y1}function fk(e){return e.x0shift||0}function ck(e){return e.x1shift||0}function vk(e){return e.y0shift||0}function hk(e){return e.y1shift||0}function Ap(e,r){return Bl(e.x1,r)+ck(e)-Bl(e.x0,r)-fk(e)}function Mp(e,r,t){return Bl(e.y1,t)+hk(e)-Bl(e.y0,t)-vk(e)}function kle(e,r){return Math.abs(Ap(e,r))}function Sle(e,r,t){return Math.abs(Mp(e,r,t))}function qle(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Ap(e,r),2)+Math.pow(Mp(e,r,t),2))}function Lle(e,r){return uk((Bl(e.x1,r)+ck(e)+Bl(e.x0,r)+fk(e))/2,r)}function Cle(e,r,t){return uk((Bl(e.y1,t)+hk(e)+Bl(e.y0,t)+vk(e))/2,t)}function Ele(e,r,t){return e.type!=="line"?void 0:Mp(e,r,t)/Ap(e,r)}dk.exports={x0:wle,x1:Tle,y0:Ale,y1:Mle,slope:Ele,dx:Ap,dy:Mp,width:kle,height:Sle,length:qle,xcenter:Lle,ycenter:Cle}});var mk=N((bEe,yk)=>{"use strict";var Dle=Xi().overrideAll,Xs=mn(),pk=da(),Rle=si().dash,Hl=xt().extendFlat,Ple=Ta().shapeTexttemplateAttrs,Fle=kp();yk.exports=Dle({newshape:{visible:Hl({},Xs.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Hl({},Xs.legend,{}),legendgroup:Hl({},Xs.legendgroup,{}),legendgrouptitle:{text:Hl({},Xs.legendgrouptitle.text,{}),font:pk({})},legendrank:Hl({},Xs.legendrank,{}),legendwidth:Hl({},Xs.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Hl({},Rle,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Hl({},Xs.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:Ple({newshape:!0},{keys:Object.keys(Fle)}),font:pk({}),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 bk=N((xEe,gk)=>{"use strict";var Nle=si().dash,zle=xt().extendFlat;gk.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:zle({},Nle,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Sp=N((_Ee,xk)=>{"use strict";xk.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var Sf=N((wEe,Ak)=>{"use strict";var xb=da(),Ile=Jv(),qp=li(),_k=mk(),wk=bk(),Ole=Sp(),Tk=xt().extendFlat,Lp=xb({editType:"calc"});Lp.family.dflt='"Open Sans", verdana, arial, sans-serif';Lp.size.dflt=12;Lp.color.dflt=qp.defaultLine;Ak.exports={font:Lp,title:{text:{valType:"string",editType:"layoutstyle"},font:xb({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:xb({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:Tk(Ole({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:qp.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:qp.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:qp.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:_k.newshape,activeshape:_k.activeshape,newselection:wk.newselection,activeselection:wk.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:Tk({},Ile.transition,{editType:"none"})}});var Mk=HA(()=>{});var Ble={};var kk=HA(()=>{Mk()});var gr=N(Hr=>{"use strict";var qf=Zs(),Sk=wp(),qk=hb(),Hle=zl(),Ule=Xv().addStyleRule,Lk=xt(),Gle=mn(),Yle=Sf(),Vle=Lk.extendFlat,_b=Lk.extendDeepAll;Hr.modules={};Hr.allCategories={};Hr.allTypes=[];Hr.subplotsRegistry={};Hr.componentsRegistry={};Hr.layoutArrayContainers=[];Hr.layoutArrayRegexes=[];Hr.traceLayoutAttributes={};Hr.localeRegistry={};Hr.apiMethodRegistry={};Hr.collectableSubplotTypes=null;Hr.register=function(r){if(Hr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var $le=xf().timeFormat,Bk=Rr(),wb=Zs(),Gl=wf().mod,Ef=Nt(),ui=Ef.BADNUM,Ln=Ef.ONEDAY,Kv=Ef.ONEHOUR,Ul=Ef.ONEMIN,Cf=Ef.ONESEC,Qv=Ef.EPOCHJD,rl=gr(),Pk=xf().utcFormat,Kle=/^\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,Qle=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Fk=new Date().getFullYear()-70;function tl(e){return e&&rl.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}ra.dateTick0=function(e,r){var t=ese(e,!!r);if(r<2)return t;var a=ra.dateTime2ms(t,e);return a+=Ln*(r-1),ra.ms2DateTime(a,0,e)};function ese(e,r){return tl(e)?r?rl.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:rl.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}ra.dfltRange=function(e){return tl(e)?rl.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};ra.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Ep,Dp;ra.dateTime2ms=function(e,r){if(ra.isJSDate(e)){var t=e.getTimezoneOffset()*Ul,a=(e.getUTCMinutes()-e.getMinutes())*Ul+(e.getUTCSeconds()-e.getSeconds())*Cf+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Ul;t=t-n/2+Gl(a-t+n/2,n)}return e=Number(e)-t,e>=Ep&&e<=Dp?e:ui}if(typeof e!="string"&&typeof e!="number")return ui;e=String(e);var i=tl(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.substr(1),r="");var l=i&&r.substr(0,7)==="chinese",s=e.match(l?Qle:Kle);if(!s)return ui;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),v=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return ui;u=Number(u);var m;try{var y=rl.getComponentMethod("calendars","getCal")(r);if(l){var x=f.charAt(f.length-1)==="i";f=parseInt(f,10),m=y.newDate(u,y.toMonthIndex(u,f,x),c)}else m=y.newDate(u,Number(f),c)}catch(_){return ui}return m?(m.toJD()-Qv)*Ln+v*Kv+d*Ul+p*Cf:ui}u.length===2?u=(Number(u)+2e3-Fk)%100+Fk:u=Number(u),f-=1;var w=new Date(Date.UTC(2e3,f,c,v,d));return w.setUTCFullYear(u),w.getUTCMonth()!==f||w.getUTCDate()!==c?ui:w.getTime()+p*Cf};Ep=ra.MIN_MS=ra.dateTime2ms("-9999");Dp=ra.MAX_MS=ra.dateTime2ms("9999-12-31 23:59:59.9999");ra.isDateTime=function(e,r){return ra.dateTime2ms(e,r)!==ui};function Lf(e,r){return String(e+Math.pow(10,r)).substr(1)}var Cp=90*Ln,Nk=3*Kv,zk=5*Ul;ra.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Ep&&e<=Dp))return ui;r||(r=0);var a=Math.floor(Gl(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,u,f;if(tl(t)){var c=Math.floor(n/Ln)+Qv,v=Math.floor(Gl(e,Ln));try{i=rl.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=Pk("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=r=Ep+Ln&&e<=Dp-Ln))return ui;var r=Math.floor(Gl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=$le("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return Hk(a,n,i,o,l)};function Hk(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Lf(r,2)+":"+Lf(t,2),(a||n)&&(e+=":"+Lf(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Lf(n,i)}return e}ra.cleanDate=function(e,r,t){if(e===ui)return r;if(ra.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(tl(t))return wb.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=ra.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!ra.isDateTime(e,t))return wb.error("unrecognized date",e),r;return e};var rse=/%\d?f/g,tse=/%h/g,ase={1:"1",2:"1",3:"2",4:"2"};function Ik(e,r,t,a){e=e.replace(rse,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return l});var n=new Date(Math.floor(r+.05));if(e=e.replace(tse,function(){return ase[t("%q")(n)]}),tl(a))try{e=rl.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var nse=[59,59.9,59.99,59.999,59.9999];function ise(e,r){var t=Gl(e+.05,Ln),a=Lf(Math.floor(t/Kv),2)+":"+Lf(Gl(Math.floor(t/Ul),60),2);if(r!=="M"){Bk(r)||(r=0);var n=Math.min(Gl(e/Cf,60),nse[r]),i=(100+n).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}ra.formatDate=function(e,r,t,a,n,i){if(n=tl(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`+i.year;else return ise(e,t)+` +`+Ik(i.dayMonthYear,e,a,n);return Ik(r,e,a,n)};var Ok=3*Ln;ra.incrementMonth=function(e,r,t){t=tl(t)&&t;var a=Gl(e,Ln);if(e=Math.round(e-a),t)try{var n=Math.round(e/Ln)+Qv,i=rl.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-Qv)*Ln+a}catch(s){wb.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+Ok);return l.setUTCMonth(l.getUTCMonth()+r)+a-Ok};ra.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=tl(r)&&rl.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";Gk.exports=function(r){return r}});var Mb=N(al=>{"use strict";var ose=Rr(),lse=Zs(),sse=Tb(),use=Nt().BADNUM,Ab=1e-9;al.findBin=function(e,r,t){if(ose(r.start))return t?Math.ceil((e-r.start)/r.size-Ab)-1:Math.floor((e-r.start)/r.size+Ab);var a=0,n=r.length,i=0,o=n>1?(r[n-1]-r[0])/(n-1):1,l,s;for(o>=0?s=t?fse:cse:s=t?hse:vse,e+=o*Ab*(t?-1:1)*(o>=0?1:-1);a90&&lse.log("Long binary search..."),a-1};function fse(e,r){return er}function hse(e,r){return e>=r}al.sorterAsc=function(e,r){return e-r};al.sorterDes=function(e,r){return r-e};al.distinctVals=function(e){var r=e.slice();r.sort(al.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===use;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],u=s-o;o===void 0?(i.push(s),o=s):u>n&&(a=Math.min(a,u),i.push(s),o=s)}return{vals:i,minDiff:a}};al.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,o=0,l=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};al.findIndexOfMin=function(e,r){r=r||sse;for(var t=1/0,a,n=0;n{"use strict";Yk.exports=function(r){return Object.keys(r).sort()}});var Vk=N(ta=>{"use strict";var eh=Rr(),dse=Vn().isArrayOrTypedArray;ta.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),eh(r)||(r=!1),dse(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var Jk=N((DEe,Xk)=>{"use strict";var Wk=wf(),Sb=Wk.mod,pse=Wk.modHalf,rh=Math.PI,Yl=2*rh;function yse(e){return e/180*rh}function mse(e){return e/rh*180}function qb(e){return Math.abs(e[1]-e[0])>Yl-1e-14}function jk(e,r){return pse(r-e,Yl)}function gse(e,r){return Math.abs(jk(e,r))}function Zk(e,r){if(qb(r))return!0;var t,a;r[0]a&&(a+=Yl);var n=Sb(e,Yl),i=n+Yl;return n>=t&&n<=a||i>=t&&i<=a}function bse(e,r,t,a){if(!Zk(r,a))return!1;var n,i;return t[0]=n&&e<=i}function Lb(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=qb([t,a]),s,u,f,c,v;l?(s=0,u=rh,f=Yl):t{"use strict";Js.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Js.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Js.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Js.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Js.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Js.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var eS=N($s=>{"use strict";var Cb=wf().mod;$s.segmentsIntersect=Qk;function Qk(e,r,t,a,n,i,o,l){var s=t-e,u=n-e,f=o-n,c=a-r,v=i-r,d=l-i,p=s*d-f*c;if(p===0)return null;var m=(u*d-f*v)/p,y=(u*c-s*v)/p;return y<0||y>1||m<0||m>1?null:{x:e+s*m,y:r+c*m}}$s.segmentDistance=function(r,t,a,n,i,o,l,s){if(Qk(r,t,a,n,i,o,l,s))return 0;var u=a-r,f=n-t,c=l-i,v=s-o,d=u*u+f*f,p=c*c+v*v,m=Math.min(Rp(u,f,d,i-r,o-t),Rp(u,f,d,l-r,s-t),Rp(c,v,p,r-i,t-o),Rp(c,v,p,a-i,n-o));return Math.sqrt(m)};function Rp(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var o=a-e,l=n-r;return o*o+l*l}else{var s=a*r-n*e;return s*s/t}}var Pp,Eb,Kk;$s.getTextLocation=function(r,t,a,n){if((r!==Eb||n!==Kk)&&(Pp={},Eb=r,Kk=n),Pp[a])return Pp[a];var i=r.getPointAtLength(Cb(a-n/2,t)),o=r.getPointAtLength(Cb(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(Cb(a,t)),u=(s.x*4+i.x+o.x)/6,f=(s.y*4+i.y+o.y)/6,c={x:u,y:f,theta:l};return Pp[a]=c,c};$s.clearLocationCache=function(){Eb=null};$s.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,s=0,u=r.getTotalLength(),f=u,c,v;function d(m){var y=r.getPointAtLength(m);m===0?c=y:m===u&&(v=y);var x=y.xi?y.x-i:0,w=y.yl?y.y-l:0;return Math.sqrt(x*x+w*w)}for(var p=d(s);p;){if(s+=p+a,s>f)return;p=d(s)}for(p=d(f);p;){if(f-=p+a,s>f)return;p=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-v.x)<.1&&Math.abs(c.y-v.y)<.1}};$s.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),o=n.tolerance||.001,l=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,v,d,p;u0?c=v:f=v,u++}return d}});var Fp=N(th=>{"use strict";var nl={};th.throttle=function(r,t,a){var n=nl[r],i=Date.now();if(!n){for(var o in nl)nl[o].tsn.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};th.done=function(e){var r=nl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};th.clear=function(e){if(e)rS(nl[e]),delete nl[e];else for(var r in nl)th.clear(r)};function rS(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var aS=N((NEe,tS)=>{"use strict";tS.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var nS=N((zEe,Np)=>{"use strict";Np.exports=Db;Np.exports.isMobile=Db;Np.exports.default=Db;var Tse=/(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,Ase=/CrOS/,Mse=/android|ipad|playbook|silk/i;function Db(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=Tse.test(r)&&!Ase.test(r)||!!e.tablet&&Mse.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var oS=N((IEe,iS)=>{"use strict";var kse=Rr(),Sse=nS();iS.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=qse(),typeof t!="string")return!0;var a=Sse({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;l--){var s=n[l];if(s.substr(0,8)==="Version/"){var u=s.substr(8).split(".")[0];if(kse(u)&&(u=+u),u>=13)return!0}}}return a};function qse(){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 sS=N((OEe,lS)=>{"use strict";var Lse=Sr();lS.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][i]=Lse.select(this)}),n}});var fS=N((BEe,uS)=>{"use strict";var Cse=gr();uS.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[a]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=Cse.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var vS=N((HEe,cS)=>{"use strict";cS.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";hS.exports=function(r){for(var t=Rse(r)?Dse:Ese,a=[],n=0;n{"use strict";pS.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var gS=N((YEe,mS)=>{"use strict";var Pse=Rr(),Fse=Nt().BADNUM,Nse=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;mS.exports=function(r){return typeof r=="string"&&(r=r.replace(Nse,"")),Pse(r)?Number(r):Fse}});var Ce=N((VEe,ES)=>{"use strict";var ah=Sr(),zse=xf().utcFormat,Ise=Q3().format,AS=Rr(),MS=Nt(),kS=MS.FP_SAFE,Ose=-kS,bS=MS.BADNUM,be=ES.exports={};be.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var xS={};be.warnBadFormat=function(e){var r=String(e);xS[r]||(xS[r]=1,be.warn('encountered bad format: "'+r+'"'))};be.noFormat=function(e){return String(e)};be.numberFormat=function(e){var r;try{r=Ise(be.adjustFormat(e))}catch(t){return be.warnBadFormat(e),be.noFormat}return r};be.nestedProperty=hp();be.keyedContainer=fM();be.relativeAttr=vM();be.isPlainObject=zl();be.toLogRange=pp();be.relinkPrivateKeys=yM();var Vl=Vn();be.isArrayBuffer=Vl.isArrayBuffer;be.isTypedArray=Vl.isTypedArray;be.isArrayOrTypedArray=Vl.isArrayOrTypedArray;be.isArray1D=Vl.isArray1D;be.ensureArray=Vl.ensureArray;be.concat=Vl.concat;be.maxRowLength=Vl.maxRowLength;be.minRowLength=Vl.minRowLength;var SS=wf();be.mod=SS.mod;be.modHalf=SS.modHalf;var Wl=FM();be.valObjectMeta=Wl.valObjectMeta;be.coerce=Wl.coerce;be.coerce2=Wl.coerce2;be.coerceFont=Wl.coerceFont;be.coercePattern=Wl.coercePattern;be.coerceHoverinfo=Wl.coerceHoverinfo;be.coerceSelectionMarkerOpacity=Wl.coerceSelectionMarkerOpacity;be.validate=Wl.validate;var Wn=Uk();be.dateTime2ms=Wn.dateTime2ms;be.isDateTime=Wn.isDateTime;be.ms2DateTime=Wn.ms2DateTime;be.ms2DateTimeLocal=Wn.ms2DateTimeLocal;be.cleanDate=Wn.cleanDate;be.isJSDate=Wn.isJSDate;be.formatDate=Wn.formatDate;be.incrementMonth=Wn.incrementMonth;be.dateTick0=Wn.dateTick0;be.dfltRange=Wn.dfltRange;be.findExactDates=Wn.findExactDates;be.MIN_MS=Wn.MIN_MS;be.MAX_MS=Wn.MAX_MS;var Ks=Mb();be.findBin=Ks.findBin;be.sorterAsc=Ks.sorterAsc;be.sorterDes=Ks.sorterDes;be.distinctVals=Ks.distinctVals;be.roundUp=Ks.roundUp;be.sort=Ks.sort;be.findIndexOfMin=Ks.findIndexOfMin;be.sortObjectKeys=kb();var il=Vk();be.aggNums=il.aggNums;be.len=il.len;be.mean=il.mean;be.geometricMean=il.geometricMean;be.median=il.median;be.midRange=il.midRange;be.variance=il.variance;be.stdev=il.stdev;be.interp=il.interp;var Ji=Tp();be.init2dArray=Ji.init2dArray;be.transposeRagged=Ji.transposeRagged;be.dot=Ji.dot;be.translationMatrix=Ji.translationMatrix;be.rotationMatrix=Ji.rotationMatrix;be.rotationXYMatrix=Ji.rotationXYMatrix;be.apply3DTransform=Ji.apply3DTransform;be.apply2DTransform=Ji.apply2DTransform;be.apply2DTransform2=Ji.apply2DTransform2;be.convertCssMatrix=Ji.convertCssMatrix;be.inverseTransformMatrix=Ji.inverseTransformMatrix;var Ao=Jk();be.deg2rad=Ao.deg2rad;be.rad2deg=Ao.rad2deg;be.angleDelta=Ao.angleDelta;be.angleDist=Ao.angleDist;be.isFullCircle=Ao.isFullCircle;be.isAngleInsideSector=Ao.isAngleInsideSector;be.isPtInsideSector=Ao.isPtInsideSector;be.pathArc=Ao.pathArc;be.pathSector=Ao.pathSector;be.pathAnnulus=Ao.pathAnnulus;var Rf=$k();be.isLeftAnchor=Rf.isLeftAnchor;be.isCenterAnchor=Rf.isCenterAnchor;be.isRightAnchor=Rf.isRightAnchor;be.isTopAnchor=Rf.isTopAnchor;be.isMiddleAnchor=Rf.isMiddleAnchor;be.isBottomAnchor=Rf.isBottomAnchor;var Pf=eS();be.segmentsIntersect=Pf.segmentsIntersect;be.segmentDistance=Pf.segmentDistance;be.getTextLocation=Pf.getTextLocation;be.clearLocationCache=Pf.clearLocationCache;be.getVisibleSegment=Pf.getVisibleSegment;be.findPointOnPath=Pf.findPointOnPath;var Op=xt();be.extendFlat=Op.extendFlat;be.extendDeep=Op.extendDeep;be.extendDeepAll=Op.extendDeepAll;be.extendDeepNoArrays=Op.extendDeepNoArrays;var Rb=Zs();be.log=Rb.log;be.warn=Rb.warn;be.error=Rb.error;var Bse=Af();be.counterRegex=Bse.counter;var Pb=Fp();be.throttle=Pb.throttle;be.throttleDone=Pb.done;be.clearThrottle=Pb.clear;var $i=Xv();be.getGraphDiv=$i.getGraphDiv;be.isPlotDiv=$i.isPlotDiv;be.removeElement=$i.removeElement;be.addStyleRule=$i.addStyleRule;be.addRelatedStyleRule=$i.addRelatedStyleRule;be.deleteRelatedStyleRule=$i.deleteRelatedStyleRule;be.setStyleOnHover=$i.setStyleOnHover;be.getFullTransformMatrix=$i.getFullTransformMatrix;be.getElementTransformMatrix=$i.getElementTransformMatrix;be.getElementAndAncestors=$i.getElementAndAncestors;be.equalDomRects=$i.equalDomRects;be.clearResponsive=aS();be.preserveDrawingBuffer=oS();be.makeTraceGroups=sS();be._=fS();be.notifier=fb();be.filterUnique=vS();be.filterVisible=dS();be.pushUnique=hb();be.increment=yS();be.cleanNumber=gS();be.ensureNumber=function(r){return AS(r)?(r=Number(r),r>kS||r=r?!1:AS(e)&&e>=0&&e%1===0};be.noop=wp();be.identity=Tb();be.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};be.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};be.simpleMap=function(e,r,t,a,n){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,t)?n>10?(be.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};be.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};be.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),o=new Array(t),l,s,u,f;for(l=0;l=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];o[l]=f}return o};be.syncOrAsync=function(e,r,t){var a,n;function i(){return be.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};be.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};be.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,o;for(i=0;i0?n:0})};be.fillArray=function(e,r,t,a){if(a=a||be.identity,be.isArrayOrTypedArray(e))for(var n=0;nGse.test(window.navigator.userAgent);var Yse=/Firefox\/(\d+)\.\d+/;be.getFirefoxVersion=function(){var e=Yse.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};be.isD3Selection=function(e){return e instanceof ah.selection};be.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};be.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};be.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;a.test(l);)l=l.replace(a,"$1"+i+"$2");return l+s};be.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var CS=/^\w*$/;be.templateString=function(e,r){var t={};return e.replace(be.TEMPLATE_STRING_REGEX,function(a,n){var i;return CS.test(n)?i=r[n]:(t[n]=t[n]||be.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var jse={max:10,count:0,name:"hovertemplate"};be.hovertemplateString=function(){return Fb.apply(jse,arguments)};var Zse={max:10,count:0,name:"texttemplate"};be.texttemplateString=function(){return Fb.apply(Zse,arguments)};var Xse=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Jse(e){var r=e.match(Xse);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var $se={max:10,count:0,name:"texttemplate",parseMultDiv:!0};be.texttemplateStringForShapes=function(){return Fb.apply($se,arguments)};var _S=/^[:|\|]/;function Fb(e,r,t){var a=this,n=arguments;return r||(r={}),e.replace(be.TEMPLATE_STRING_REGEX,function(i,o,l){var s=o==="xother"||o==="yother",u=o==="_xother"||o==="_yother",f=o==="_xother_"||o==="_yother_",c=o==="xother_"||o==="yother_",v=s||u||c||f,d=o;(u||f)&&(d=d.substring(1)),(c||f)&&(d=d.substring(0,d.length-1));var p=null,m=null;if(a.parseMultDiv){var y=Jse(d);d=y.key,p=y.op,m=y.number}var x;if(v){if(x=r[d],x===void 0)return""}else{var w,_;for(_=3;_=Ip&&o<=wS,u=l>=Ip&&l<=wS;if(s&&(a=10*a+o-Ip),u&&(n=10*n+l-Ip),!s||!u){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var Df=2e9;be.seedPseudoRandom=function(){Df=2e9};be.pseudoRandom=function(){var e=Df;return Df=(69069*Df+1)%4294967296,Math.abs(Df-e)<429496729?be.pseudoRandom():Df/4294967296};be.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=be.extractOption(e,r,"htx","hovertext");if(be.isValidTextValue(n))return a(n);var i=be.extractOption(e,r,"tx","text");if(be.isValidTextValue(i))return a(i)};be.isValidTextValue=function(e){return e||e===0};be.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,be.strTranslate(n-u*(t+o),i-u*(a+l))+be.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};be.setTransormAndDisplay=function(e,r){e.attr("transform",be.getTextTransform(r)),e.style("display",r.scale?null:"none")};be.ensureUniformFontSize=function(e,r){var t=be.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};be.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};be.bigFont=function(e){return Math.round(1.2*e)};var TS=be.getFirefoxVersion(),Kse=TS!==null&&TS<86;be.getPositionFromD3Event=function(){return Kse?[ah.event.layerX,ah.event.layerY]:[ah.event.offsetX,ah.event.offsetY]}});var PS=N(()=>{"use strict";var Qse=Ce(),DS={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(Nb in DS)RS=Nb.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Qse.addStyleRule(RS,DS[Nb]);var RS,Nb});var zb=N((ZEe,FS)=>{FS.exports=!0});var Ob=N((XEe,NS)=>{"use strict";var eue=zb(),Ib;typeof window.matchMedia=="function"?Ib=!window.matchMedia("(hover: none)").matches:Ib=eue;NS.exports=Ib});var Qs=N((JEe,Bb)=>{"use strict";var Ff=typeof Reflect=="object"?Reflect:null,zS=Ff&&typeof Ff.apply=="function"?Ff.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Bp;Ff&&typeof Ff.ownKeys=="function"?Bp=Ff.ownKeys:Object.getOwnPropertySymbols?Bp=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Bp=function(r){return Object.getOwnPropertyNames(r)};function rue(e){console&&console.warn&&console.warn(e)}var OS=Number.isNaN||function(r){return r!==r};function Ct(){Ct.init.call(this)}Bb.exports=Ct;Bb.exports.once=iue;Ct.EventEmitter=Ct;Ct.prototype._events=void 0;Ct.prototype._eventsCount=0;Ct.prototype._maxListeners=void 0;var IS=10;function Hp(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Ct,"defaultMaxListeners",{enumerable:!0,get:function(){return IS},set:function(e){if(typeof e!="number"||e<0||OS(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");IS=e}});Ct.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ct.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||OS(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 BS(e){return e._maxListeners===void 0?Ct.defaultMaxListeners:e._maxListeners}Ct.prototype.getMaxListeners=function(){return BS(this)};Ct.prototype.emit=function(r){for(var t=[],a=1;a0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")zS(s,this,t);else for(var u=s.length,f=VS(s,u),a=0;a0&&o.length>n&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,rue(l)}return e}Ct.prototype.addListener=function(r,t){return HS(this,r,t,!1)};Ct.prototype.on=Ct.prototype.addListener;Ct.prototype.prependListener=function(r,t){return HS(this,r,t,!0)};function tue(){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 US(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=tue.bind(a);return n.listener=t,a.wrapFn=n,n}Ct.prototype.once=function(r,t){return Hp(t),this.on(r,US(this,r,t)),this};Ct.prototype.prependOnceListener=function(r,t){return Hp(t),this.prependListener(r,US(this,r,t)),this};Ct.prototype.removeListener=function(r,t){var a,n,i,o,l;if(Hp(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,o=a.length-1;o>=0;o--)if(a[o]===t||a[o].listener===t){l=a[o].listener,i=o;break}if(i<0)return this;i===0?a.shift():aue(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};Ct.prototype.off=Ct.prototype.removeListener;Ct.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),o;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function GS(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?nue(n):VS(n,n.length)}Ct.prototype.listeners=function(r){return GS(this,r,!0)};Ct.prototype.rawListeners=function(r){return GS(this,r,!1)};Ct.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):YS.call(e,r)};Ct.prototype.listenerCount=YS;function YS(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}Ct.prototype.eventNames=function(){return this._eventsCount>0?Bp(this._events):[]};function VS(e,r){for(var t=new Array(r),a=0;a{"use strict";var Hb=Qs().EventEmitter,lue={init:function(e){if(e._ev instanceof Hb)return e;var r=new Hb,t=new Hb;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function o(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l{"use strict";var ZS=Ce(),sue=js().dfltConfig;function uue(e,r){for(var t=[],a,n=0;nsue.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};ol.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};ol.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};ol.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";$S.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var If=N(pa=>{"use strict";var fi=gr(),ih=Ce(),Gp=mn(),Gb=Sf(),fue=Ub(),cue=Jv(),vue=js().configAttributes,KS=Xi(),Ki=ih.extendDeepAll,Nf=ih.isPlainObject,hue=ih.isArrayOrTypedArray,Yp=ih.nestedProperty,due=ih.valObjectMeta,Yb="_isSubplotObj",Vp="_isLinkedToArray",pue="_arrayAttrRegexps",eq="_deprecated",Vb=[Yb,Vp,pue,eq];pa.IS_SUBPLOT_OBJ=Yb;pa.IS_LINKED_TO_ARRAY=Vp;pa.DEPRECATED=eq;pa.UNDERSCORE_ATTRS=Vb;pa.get=function(){var e={};return fi.allTypes.forEach(function(r){e[r]=mue(r)}),{defs:{valObjects:due,metaKeys:Vb.concat(["description","role","editType","impliedEdits"]),editType:{traces:KS.traces,layout:KS.layout},impliedEdits:{}},traces:e,layout:gue(),frames:bue(),animation:zf(cue),config:zf(vue)}};pa.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(Vb.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!pa.isValObject(o)&&Nf(o)&&i!=="impliedEdits"&&pa.crawl(o,r,n+1,l)}})};pa.isValObject=function(e){return e&&e.valType!==void 0};pa.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function o(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var v=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));v&&l(n,0,"")}function l(s,u,f){var c=s[t[u]],v=f+t[u];if(u===t.length-1)hue(c)&&r.push(i+v);else if(a[u]){if(Array.isArray(c))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!Up(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function Up(e){return e===Math.round(e)&&e>=0}function mue(e){var r,t;r=fi.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Ki({},Gp),i=Ki({},r.attributes);pa.crawl(i,function(s,u,f,c,v){Yp(n,v).set(void 0),s===void 0&&Yp(i,v).set(void 0)}),Ki(a,n),fi.traceIs(e,"noOpacity")&&delete a.opacity,fi.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),fi.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Ki(a,i),t.attributes&&Ki(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:zf(a)};if(r.layoutAttributes){var l={};Ki(l,r.layoutAttributes),o.layoutAttributes=zf(l)}return r.animatable||pa.crawl(o,function(s){pa.isValObject(s)&&"anim"in s&&delete s.anim}),o}function gue(){var e={},r,t;Ki(e,Gb);for(r in fi.subplotsRegistry)if(t=fi.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Of=Ce(),Aue=mn(),jl="templateitemname",Wb={name:{valType:"string",editType:"none"}};Wb[jl]={valType:"string",editType:"calc"};eu.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=Wb.name,r[jl]=Wb[jl],r};eu.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=Of.coerce(i,{},Aue,"type");var o={type:t,_template:null};if(t in r){a=e[t];var l=r[t]%a.length;r[t]++,o._template=a[l]}return o}return{newTrace:n}};eu.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Of.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};eu.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[aq(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(u){var f={name:u.name,_input:u},c=f[jl]=u[jl];if(!tq(c))return f._template=n,f;for(var v=0;v=a&&(t._input||{})._templateitemname;i&&(n=a);var o=r+"["+n+"]",l;function s(){l={},i&&(l[o]={},l[o][jl]=i)}s();function u(d,p){l[d]=p}function f(d,p){i?Of.nestedProperty(l[o],d).set(p):l[o+"."+d]=p}function c(){var d=l;return s(),d}function v(d,p){d&&f(d,p);var m=c();for(var y in m)Of.nestedProperty(e,y).set(m[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:v}}});var Ea=N((tDe,nq)=>{"use strict";var oh=Af().counter;nq.exports={idRegex:{x:oh("x","( domain)?"),y:oh("y","( domain)?")},attrRegex:oh("[xy]axis"),xAxisMatch:oh("xaxis"),yAxisMatch:oh("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var ia=N(Cn=>{"use strict";var Mue=gr(),jb=Ea();Cn.id2name=function(r){if(!(typeof r!="string"||!r.match(jb.AX_ID_PATTERN))){var t=r.split(" ")[0].substr(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Cn.name2id=function(r){if(r.match(jb.AX_NAME_PATTERN)){var t=r.substr(5);return t==="1"&&(t=""),r.charAt(0)+t}};Cn.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(jb.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].substr(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};Cn.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Cn.listIds(e,r),i=new Array(n.length),o;for(o=0;oa?1:-1:+(e.substr(1)||1)-+(r.substr(1)||1)};Cn.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function iq(e,r){if(r&&r.length){for(var t=0;t{"use strict";function kue(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function Sue(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}oq.exports={clearOutlineControllers:kue,clearOutline:Sue}});var Wp=N((iDe,lq)=>{"use strict";lq.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Xp=N(Zp=>{"use strict";var jp=gr(),oDe=Ea().SUBPLOT_PATTERN;Zp.getSubplotCalcData=function(e,r,t){var a=jp.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o{"use strict";var que=gr(),Bf=Ce();ru.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=ru.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(o)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(o){sq(e,o,n.cache),n.check=function(){if(i){var f=sq(e,o,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;Bf.isPlainObject(i)?Zb(i,r,o,a+1):r(o,n,i)}})}});var aa=N((uDe,Mq)=>{"use strict";var gq=Sr(),Cue=xf().timeFormatLocale,Eue=Q3().formatLocale,lh=Rr(),Due=eb(),Kr=gr(),bq=If(),Rue=At(),vr=Ce(),xq=Tr(),vq=Nt().BADNUM,En=ia(),Pue=Zl().clearOutline,Fue=Wp(),Xb=Jv(),Nue=Ub(),zue=Xp().getModuleCalcData,hq=vr.relinkPrivateKeys,tu=vr._,er=Mq.exports={};vr.extendFlat(er,Kr);er.attributes=mn();er.attributes.type.values=er.allTypes;er.fontAttrs=da();er.layoutAttributes=Sf();var $p=cq();er.executeAPICommand=$p.executeAPICommand;er.computeAPICommandBindings=$p.computeAPICommandBindings;er.manageCommandObserver=$p.manageCommandObserver;er.hasSimpleAPICommandBindings=$p.hasSimpleAPICommandBindings;er.redrawText=function(e){return e=vr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Kr.getComponentMethod("annotations","draw")(e),Kr.getComponentMethod("legend","draw")(e),Kr.getComponentMethod("colorbar","draw")(e),r(er.previousPromises(e)))},300)})};er.resize=function(e){e=vr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||vr.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||vr.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Kr.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};er.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};er.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=vr.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:xq.defaultLine,"pointer-events":"all"}).each(function(){var u=gq.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),a=t.node(),n={y:r._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=r.width-20?(n["text-anchor"]="start",n.x=5):(n["text-anchor"]="end",n.x=r._paper.attr("width")-7),t.attr(n);var i=t.select(".js-link-to-tool"),o=t.select(".js-link-spacer"),l=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&Iue(e,i),o.text(i.text()&&l.text()?" - ":"")}};function Iue(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){er.sendDataToCloud(e)});else{var a=window.location.pathname.split("/"),n=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}er.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=gq.select(e).append("div").attr("id","hiddenform").style("display","none"),a=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),n=a.append("input").attr({type:"text",name:"data"});return n.node().value=er.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var Oue=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Bue=["year","month","dayMonth","dayMonthYear"];er.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||er.createTransitionData(e),n._dfltTitle={plot:tu(e,"Click to enter Plot title"),subtitle:tu(e,"Click to enter Plot subtitle"),x:tu(e,"Click to enter X axis title"),y:tu(e,"Click to enter Y axis title"),colorbar:tu(e,"Click to enter Colorscale title"),annotation:tu(e,"new text")},n._traceWord=tu(e,"trace");var v=dq(e,Oue);if(n._mapboxAccessToken=f.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,p=a.height;er.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),er.sanitizeMargins(n)}else{er.supplyLayoutGlobalDefaults(i,n,v);var m=!i.width||!i.height,y=n.autosize,x=f.autosizable,w=m&&(y||x);w?er.plotAutoSize(e,i,n):m&&er.sanitizeMargins(n),!y&&m&&(i.width=n.width,i.height=n.height)}n._d3locale=Gue(v,n.separators),n._extraFormat=dq(e,Bue),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=Uue(),b=n._splomAxes={x:{},y:{}},T=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=Hue(o,s),er.supplyDataDefaults(s,l,i,n);var k=Object.keys(b.x),M=Object.keys(b.y);if(k.length>1&&M.length>1){for(Kr.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&M.length>15&&n.shapes.length===0&&n.images.length===0,er.linkSubplots(l,n,o,a),er.cleanPlot(l,n,o,a);var R=!!(a._has&&a._has("cartesian")),z=!!(n._has&&n._has("cartesian")),O=R,B=z;O&&!B?a._bgLayer.remove():B&&!O&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Pue({_fullLayout:a}),Yue(l,n),hq(n,a),Kr.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var V=n._tracePreGUI,G={},U;for(U in V)G[U]="old";for(c=0;c0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var c=er.layoutAttributes.width.min,v=er.layoutAttributes.height.min;o1,p=!t.height&&Math.abs(a.height-l)>1;(p||d)&&(d&&(a.width=o),p&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),er.sanitizeMargins(a)};er.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Kr.componentsRegistry,i=r._basePlotModules,o,l,s,u=Kr.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Kr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(vr.subplotSort);for(l=0;l1&&(t.l/=y,t.r/=y)}if(v){var x=(t.t+t.b)/v;x>1&&(t.t/=x,t.b/=x)}var w=t.xl!==void 0?t.xl:t.x,_=t.xr!==void 0?t.xr:t.x,b=t.yt!==void 0?t.yt:t.y,T=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:w,size:t.l+m},r:{val:_,size:t.r+m},b:{val:T,size:t.b+m},t:{val:b,size:t.t+m}},p[r]=1}if(!a._replotting)return er.doAutoMargin(e)}};function Wue(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=En.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}er.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),_q(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=vr.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,v=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,m=r.minreducedheight;if(i.autoexpand!==!1){for(var y in v)d[y]||delete v[y];var x=e._fullLayout._reservedMargin;for(var w in x)for(var _ in x[w]){var b=x[w][_];o[_]=Math.max(o[_],b)}v.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var T in o){var k=0;for(var M in v)M!=="base"&&lh(v[M][T].size)&&(k=v[M][T].size>k?v[M][T].size:k);var S=Math.max(0,i[T]-k);o[T]=Math.max(0,o[T]-S)}for(var E in v){var D=v[E].l||{},P=v[E].b||{},R=D.val,z=D.size,O=P.val,B=P.size,V=t-o.r-o.l,G=a-o.t-o.b;for(var U in v){if(lh(z)&&v[U].r){var Y=v[U].r.val,J=v[U].r.size;if(Y>R){var Z=(z*Y+(J-V)*R)/(Y-R),re=(J*(1-R)+(z-V)*(1-Y))/(Y-R);Z+re>s+u&&(s=Z,u=re)}}if(lh(B)&&v[U].t){var se=v[U].t.val,oe=v[U].t.size;if(se>O){var ce=(B*se+(oe-G)*O)/(se-O),K=(oe*(1-O)+(B-G)*(1-se))/(se-O);ce+K>c+f&&(c=ce,f=K)}}}}}var Te=vr.constrain(t-i.l-i.r,wq,p),le=vr.constrain(a-i.t-i.b,Tq,m),ve=Math.max(0,t-Te),ie=Math.max(0,a-le);if(ve){var pe=(s+u)/ve;pe>1&&(s/=pe,u/=pe)}if(ie){var W=(c+f)/ie;W>1&&(c/=W,f/=W)}if(n.l=Math.round(s)+o.l,n.r=Math.round(u)+o.r,n.t=Math.round(f)+o.t,n.b=Math.round(c)+o.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(er.didMarginChange(l,n)||Wue(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Q=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};er.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&er.supplyDefaults(e);var o=n?e._fullData:e.data,l=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(v,d){if(typeof v=="function")return d?"_function_":null;if(vr.isPlainObject(v)){var p={},m;return Object.keys(v).sort().forEach(function(_){if(["_","["].indexOf(_.charAt(0))===-1){if(typeof v[_]=="function"){d&&(p[_]="_function");return}if(t==="keepdata"){if(_.substr(_.length-3)==="src")return}else if(t==="keepstream"){if(m=v[_+"src"],typeof m=="string"&&m.indexOf(":")>0&&!vr.isPlainObject(v.stream))return}else if(t!=="keepall"&&(m=v[_+"src"],typeof m=="string"&&m.indexOf(":")>0))return;p[_]=u(v[_],d)}}),p}var y=Array.isArray(v),x=vr.isTypedArray(v);if((y||x)&&v.dtype&&v.shape){var w=v.bdata;return u({dtype:v.dtype,shape:v.shape,bdata:vr.isArrayBuffer(w)?Due.encode(w):w},d)}return y?v.map(function(_){return u(_,d)}):x?vr.simpleMap(v,vr.identity):vr.isJSDate(v)?vr.ms2DateTimeLocal(+v):v}var f={data:(o||[]).map(function(v){var d=u(v);return r&&delete d.fit,d})};if(!r&&(f.layout=u(l),n)){var c=l._size;f.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return s&&(f.frames=u(s)),i&&(f.config=u(e._context,!0)),a==="object"?f:JSON.stringify(f)};er.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Kr.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var v=0,d=0;function p(){return v++,function(){d++,!a&&d===v&&l(c)}}t.runFn(p),setTimeout(p())})}function l(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Kr.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[er.previousPromises,s,t.prepareFn,er.rehover,er.reselect,o],f=vr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}er.doCalcdata=function(e,r){var t=En.list(e),a=e._fullData,n=e._fullLayout,i,o,l,s,u=new Array(a.length),f=(e.calcdata||[]).slice();for(e.calcdata=u,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},l=0;l=0;s--)if(T[s].enabled){i._indexToPoints=T[s]._indexToPoints;break}o&&o.calc&&(b=o.calc(e,i))}(!Array.isArray(b)||!b[0])&&(b=[{x:vq,y:vq}]),b[0].t||(b[0].t={}),b[0].trace=i,u[w]=b}}for(yq(t,a,n),l=0;l{"use strict";au.xmlns="http://www.w3.org/2000/xmlns/";au.svg="http://www.w3.org/2000/svg";au.xlink="http://www.w3.org/1999/xlink";au.svgAttrs={xmlns:au.svg,"xmlns:xlink":au.xlink}});var Xa=N((cDe,kq)=>{"use strict";kq.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var Da=N(ci=>{"use strict";var oa=Sr(),sl=Ce(),Jue=sl.strTranslate,Jb=ll(),$ue=Xa().LINE_SPACING,Kue=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;ci.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(Kue),i=oa.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=cfe(e.node(),a);s&&e.style("pointer-events","all"),ci.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};tfe(n[2],f,function(c,v,d){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var p=c&&c.select("svg");if(!p||!p.node()){l(),s();return}var m=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});m.node().appendChild(p.node()),v&&v.node()&&p.node().insertBefore(v.node().cloneNode(!0),p.node().firstChild);var y=d.width,x=d.height;p.attr({class:o,height:x,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var w=e.node().style.fill||"black",_=p.select("g");_.attr({fill:w,stroke:w});var b=_.node().getBoundingClientRect(),T=b.width,k=b.height;(T>y||k>x)&&(p.style("overflow","hidden"),b=p.node().getBoundingClientRect(),T=b.width,k=b.height);var M=+e.attr("x"),S=+e.attr("y"),E=u||e.node().getBoundingClientRect().height,D=-E/4;if(o[0]==="y")m.attr({transform:"rotate("+[-90,M,S]+")"+Jue(-T/2,D-k/2)});else if(o[0]==="l")S=D-k/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)M=0,S=D;else{var P=e.attr("text-anchor");M=M-T*(P==="middle"?.5:P==="end"?1:0),S=S+D-k/2}p.attr({x:M,y:S}),t&&t.call(e,m),s(m)})})):l(),e};var Que=/(<|<|<)/g,efe=/(>|>|>)/g;function rfe(e){return e.replace(Que,"\\lt ").replace(efe,"\\gt ")}var Sq=[["$","$"],["\\(","\\)"]];function tfe(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){sl.warn("No MathJax version:",MathJax.version);return}var n,i,o,l,s=function(){return i=sl.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:Sq},displayAlign:"left"})},u=function(){i=sl.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=Sq},f=function(){if(n=MathJax.Hub.config.menuSettings.renderer,n!=="SVG")return MathJax.Hub.setRenderer("SVG")},c=function(){n=MathJax.config.startup.output,n!=="svg"&&(MathJax.config.startup.output="svg")},v=function(){var w="math-output-"+sl.randstr({},64);l=oa.select("body").append("div").attr({id:w}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(rfe(e));var _=l.node();return a===2?MathJax.Hub.Typeset(_):MathJax.typeset([_])},d=function(){var w=l.select(a===2?".MathJax_SVG":".MathJax"),_=!w.empty()&&l.select("svg").node();if(!_)sl.log("There was an error in the tex syntax.",e),t();else{var b=_.getBoundingClientRect(),T;a===2?T=oa.select("body").select("#MathJax_SVG_glyphs"):T=w.select("defs"),t(w,T,b)}l.remove()},p=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},m=function(){n!=="svg"&&(MathJax.config.startup.output=n)},y=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(i)},x=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(s,f,v,d,p,y):a===3&&(u(),c(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){v(),d(),m(),x()}))}var Eq={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"},afe={sub:"0.3em",sup:"-0.6em"},nfe={sub:"-0.21em",sup:"0.42em"},qq="\u200B",Lq=["http:","https:","mailto:","",void 0,":"],Dq=ci.NEWLINES=/(\r\n?|\n)/g,Kb=/(<[^<>]*>)/,Qb=/<(\/?)([^ >]*)(\s+(.*))?>/i,ife=//i;ci.BR_TAG_ALL=//gi;var Rq=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Pq=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,Fq=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,ofe=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function nu(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&Kp(a)}var lfe=/(^|;)\s*color:/;ci.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,o=e.split(Kb),l=[],s="",u=0,f=0;fi?l.push(c.substr(0,m-i)+n):l.push(c.substr(0,m));break}s=""}}return l.join("")};var sfe={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},ufe=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Kp(e){return e.replace(ufe,function(r,t){var a;return t.charAt(0)==="#"?a=ffe(t.charAt(1)==="x"?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):a=sfe[t],a||r})}ci.convertEntities=Kp;function ffe(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 cfe(e,r){r=r.replace(Dq," ");var t=!1,a=[],n,i=-1;function o(){i++;var k=document.createElementNS(Jb.svg,"tspan");oa.select(k).attr({class:"line",dy:i*$ue+"em"}),e.appendChild(k),n=k;var M=a;if(a=[{node:k}],M.length>1)for(var S=1;S.",r);return}var M=a.pop();k!==M.type&&sl.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=ife.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(Kb),v=0;v{"use strict";var vfe=Sr(),e1=kn(),uh=Rr(),Qp=Ce(),zq=Tr(),hfe=Vs().isValid;function dfe(e,r,t){var a=r?Qp.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(Qp.isArrayOrTypedArray(n)){for(var o=0;o=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function Gq(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),o=0;o{"use strict";var Vq=gb(),yfe=Vq.FORMAT_LINK,mfe=Vq.DATE_FORMAT_LINK;function gfe(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?ex:Wq)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function ex(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+yfe+"."].join(" ")}function Wq(e,r){return ex(e,r)+[" And for dates see: "+mfe+".","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(" ")}jq.exports={axisHoverFormat:gfe,descriptionOnlyNumbers:ex,descriptionWithDates:Wq}});var hi=N((yDe,fL)=>{"use strict";var Zq=da(),Hf=li(),uL=si().dash,tx=xt().extendFlat,Xq=At().templatedArray,pDe=Ta().templateFormatStringDescription,Jq=Qi().descriptionWithDates,bfe=Nt().ONEDAY,Mo=Ea(),xfe=Mo.HOUR_PATTERN,_fe=Mo.WEEKDAY_PATTERN,rx={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},wfe=tx({},rx,{values:rx.values.slice().concat(["sync"])});function $q(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var Kq={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Qq={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},eL={valType:"data_array",editType:"ticks"},rL={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function tL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function aL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var nL={valType:"color",dflt:Hf.defaultLine,editType:"ticks"},iL={valType:"color",dflt:Hf.lightLine,editType:"ticks"};function oL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var lL=tx({},uL,{editType:"ticks"}),sL={valType:"boolean",editType:"ticks"};fL.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Hf.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:Zq({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Mo.idRegex.x.toString(),Mo.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Mo.idRegex.x.toString(),Mo.idRegex.y.toString()],editType:"calc"},rangebreaks:Xq("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:[_fe,xfe,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:bfe},editType:"calc"}),tickmode:wfe,nticks:$q(),tick0:Kq,dtick:Qq,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:eL,ticktext:{valType:"data_array",editType:"ticks"},ticks:rL,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:tL(),tickwidth:aL(),tickcolor:nL,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:tx({},uL,{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:Zq({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:Jq("tick label")},tickformatstops:Xq("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:Jq("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Hf.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:sL,gridcolor:iL,gridwidth:oL(),griddash:lL,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Hf.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Hf.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Mo.idRegex.x.toString(),Mo.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Mo.idRegex.x.toString(),Mo.idRegex.y.toString()],editType:"plot"},minor:{tickmode:rx,nticks:$q("minor"),tick0:Kq,dtick:Qq,tickvals:eL,ticks:rL,ticklen:tL("minor"),tickwidth:aL("minor"),tickcolor:nL,gridcolor:iL,gridwidth:oL("minor"),griddash:lL,showgrid:sL,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var r1=N((mDe,hL)=>{"use strict";var Et=hi(),cL=da(),vL=xt().extendFlat,Tfe=Xi().overrideAll;hL.exports=Tfe({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:Et.linecolor,outlinewidth:Et.linewidth,bordercolor:Et.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Et.minor.tickmode,nticks:Et.nticks,tick0:Et.tick0,dtick:Et.dtick,tickvals:Et.tickvals,ticktext:Et.ticktext,ticks:vL({},Et.ticks,{dflt:""}),ticklabeloverflow:vL({},Et.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:Et.ticklen,tickwidth:Et.tickwidth,tickcolor:Et.tickcolor,ticklabelstep:Et.ticklabelstep,showticklabels:Et.showticklabels,labelalias:Et.labelalias,tickfont:cL({}),tickangle:Et.tickangle,tickformat:Et.tickformat,tickformatstops:Et.tickformatstops,tickprefix:Et.tickprefix,showtickprefix:Et.showtickprefix,ticksuffix:Et.ticksuffix,showticksuffix:Et.showticksuffix,separatethousands:Et.separatethousands,exponentformat:Et.exponentformat,minexponent:Et.minexponent,showexponent:Et.showexponent,title:{text:{valType:"string"},font:cL({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var ko=N((bDe,pL)=>{"use strict";var Afe=r1(),Mfe=Af().counter,kfe=kb(),dL=Vs().scales,gDe=kfe(dL);function t1(e){return"`"+e+"`"}pL.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:a==="z",l=typeof t.colorscaleDflt=="string"?dL[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+t1(u+f));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",m=a+"max",y=a+"mid",x=t1(u+d),w=t1(u+p),_=t1(u+m),b=w+" and "+_,T={};T[p]=T[m]=void 0;var k={};k[d]=!1;var M={};return f==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},M.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=Afe),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:Mfe("coloraxis"),dflt:null,editType:"calc"}),M}});var nx=N((xDe,yL)=>{"use strict";var Sfe=xt().extendFlat,qfe=ko(),ax=Vs().scales;yL.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:ax.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:ax.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:ax.RdBu,editType:"calc"}},coloraxis:Sfe({_isSubplotObj:!0,editType:"calc"},qfe("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var ix=N((_De,mL)=>{"use strict";var Lfe=Ce();mL.exports=function(r){return Lfe.isPlainObject(r.colorbar)}});var sx=N(lx=>{"use strict";var ox=Rr(),gL=Ce(),bL=Nt(),Cfe=bL.ONEDAY,Efe=bL.ONEWEEK;lx.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Cfe:1;if(!e)return i;if(ox(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var o=e.charAt(0),l=e.substr(1);return l=ox(l)?Number(l):0,l<=0||!(a&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};lx.tick0=function(e,r,t,a){if(r==="date")return gL.cleanDate(e,gL.dateTick0(t,a%Efe===0?1:0));if(!(a==="D1"||a==="D2"))return ox(e)?Number(e):0}});var a1=N((TDe,_L)=>{"use strict";var xL=sx(),Dfe=Ce().isArrayOrTypedArray,Rfe=Vn().isTypedArraySpec,Pfe=Vn().decodeTypedArraySpec;_L.exports=function(r,t,a,n,i){i||(i={});var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,u=o?"minor.":"";function f(w){var _=l[w];return Rfe(_)&&(_=Pfe(_)),_!==void 0?_:(s._template||{})[w]}var c=f("tick0"),v=f("dtick"),d=f("tickvals"),p=Dfe(d)?"array":v?"linear":"auto",m=a(u+"tickmode",p);if(m==="auto"||m==="sync")a(u+"nticks");else if(m==="linear"){var y=s.dtick=xL.dtick(v,n);s.tick0=xL.tick0(c,n,t.calendar,y)}else if(n!=="multicategory"){var x=a(u+"tickvals");x===void 0?s.tickmode="auto":o||a("ticktext")}}});var n1=N((ADe,TL)=>{"use strict";var ux=Ce(),wL=hi();TL.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?wL.minor:wL,u=i?"minor.":"",f=ux.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=ux.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),v=ux.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=a(u+"ticks",!i&&n.outerTicks||f||c||v?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var fx=N((MDe,AL)=>{"use strict";AL.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var eo=N((kDe,ML)=>{"use strict";var i1=Ce(),Ffe=At();ML.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=i1.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=Ffe.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var cx=Ce(),Nfe=Tr().contrast,kL=hi(),zfe=fx(),Ife=eo();SL.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");cx.isPlainObject(o)||delete t.labelalias;var l=zfe(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",v=c.indexOf("inside")!==-1?Nfe(i.bgColor):f&&f!==kL.color.dflt?f:u.color;if(cx.coerceFont(a,"tickfont",u,{overrideDflt:{color:v}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");Ife(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Ofe}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",l),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function Ofe(e,r){function t(n,i){return cx.coerce(e,r,kL.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var l1=N((qDe,qL)=>{"use strict";var Bfe=fx();qL.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=Bfe(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var vx=N((LDe,LL)=>{"use strict";var Xl=Ce(),Hfe=At(),Ufe=a1(),Gfe=n1(),Yfe=o1(),Vfe=l1(),Wfe=r1();LL.exports=function(r,t,a){var n=Hfe.newContainer(t,"colorbar"),i=r.colorbar||{};function o(P,R){return Xl.coerce(i,n,Wfe,P,R)}var l=a.margin||{t:0,b:0,l:0,r:0},s=a.width-l.l-l.r,u=a.height-l.t-l.b,f=o("orientation"),c=f==="v",v=o("thicknessmode");o("thickness",v==="fraction"?30/(c?s:u):30);var d=o("lenmode");o("len",d==="fraction"?1:c?u:s);var p=o("yref"),m=o("xref"),y=p==="paper",x=m==="paper",w,_,b,T="left";c?(b="middle",T=x?"left":"right",w=x?1.02:1,_=.5):(b=y?"bottom":"top",T="center",w=.5,_=y?1.02:1),Xl.coerce(i,n,{x:{valType:"number",min:x?-2:0,max:x?3:1,dflt:w}},"x"),Xl.coerce(i,n,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:_}},"y"),o("xanchor",T),o("xpad"),o("yanchor",b),o("ypad"),Xl.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var k=Xl.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),Ufe(i,n,o,"linear");var M=a.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};k.indexOf("inside")!==-1&&(S.bgColor="black"),Vfe(i,n,o,"linear",S),Yfe(i,n,o,"linear",S),Gfe(i,n,o,"linear",S),o("title.text",a._dfltTitle.colorbar);var E=n.showticklabels?n.tickfont:M,D=Xl.extendFlat({},M,{family:E.family,size:Xl.bigFont(E.size)});Xl.coerceFont(o,"title.font",D),o("title.side",c?"top":"right")}});var ul=N((CDe,DL)=>{"use strict";var CL=Rr(),dx=Ce(),jfe=ix(),Zfe=vx(),EL=Vs().isValid,Xfe=gr().traceIs;function hx(e,r){var t=r.slice(0,r.length-1);return r?dx.nestedProperty(e,t).get()||{}:e}DL.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=hx(r,o),f=hx(t,o),c=hx(t._template||{},o)||{},v=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},p=n(o+"coloraxis");if(p){var m=Xfe(t,"contour")&&dx.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[p];y?(y[2].push(v),y[0]!==m&&(y[0]=!1,dx.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[m,t,[v]];return}}var x=u[l+"min"],w=u[l+"max"],_=CL(x)&&CL(w)&&x{"use strict";var RL=Ce(),Jfe=At(),PL=nx(),$fe=ul();FL.exports=function(r,t){function a(c,v){return RL.coerce(r,t,PL,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return RL.coerce(i,o,PL.coloraxis,c,v)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},o=Jfe.newContainer(t,s,"coloraxis"),o._name=s,$fe(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var Kfe=Ce(),Qfe=vi().hasColorscale,ece=vi().extractOpts;zL.exports=function(r,t){function a(f,c){var v=f["_"+c];v!==void 0&&(f[c]=v)}function n(f,c){var v=c.container?Kfe.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=ece(v),p=d.auto;(p||d.min===void 0)&&a(v,c.min),(p||d.max===void 0)&&a(v,c.max),d.autocolorscale&&a(v,"colorscale")}}for(var i=0;i{"use strict";var OL=Rr(),px=Ce(),rce=vi().extractOpts;BL.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?px.nestedProperty(t,o).get():t,s=rce(l),u=s.auto!==!1,f=s.min,c=s.max,v=s.mid,d=function(){return px.aggNums(Math.min,null,i)},p=function(){return px.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&OL(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(l._colorAx&&OL(c)?c=Math.max(c,p()):c=p()),u&&v!==void 0&&(c-v>v-f?f=v-(c-v):c-v=0?m=n.colorscale.sequential:m=n.colorscale.sequentialminus,s._sync("colorscale",m)}}});var So=N((PDe,HL)=>{"use strict";var s1=Vs(),Uf=vi();HL.exports={moduleType:"component",name:"colorscale",attributes:ko(),layoutAttributes:nx(),supplyLayoutDefaults:NL(),handleDefaults:ul(),crossTraceDefaults:IL(),calc:fh(),scales:s1.scales,defaultScale:s1.defaultScale,getScale:s1.get,isValidScale:s1.isValid,hasColorscale:Uf.hasColorscale,extractOpts:Uf.extractOpts,extractScale:Uf.extractScale,flipScale:Uf.flipScale,makeColorScaleFunc:Uf.makeColorScaleFunc,makeColorScaleFuncFromTrace:Uf.makeColorScaleFuncFromTrace}});var Dn=N((FDe,GL)=>{"use strict";var UL=Ce(),tce=Vn().isTypedArraySpec;GL.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 UL.isPlainObject(r)&&(UL.isArrayOrTypedArray(r.size)||tce(r.size))}}});var VL=N((NDe,YL)=>{"use strict";var ace=Rr();YL.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,o=a.sizemode==="area"?function(l){return Math.sqrt(l/n)}:function(l){return l/n};return function(l){var s=o(l/t);return ace(s)&&s>0?Math.max(s,i):0}}});var qo=N(Ja=>{"use strict";var WL=Ce();Ja.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Ja.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{XL.exports=sce;var yx={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},lce=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function sce(e){var r=[];return e.replace(lce,function(t,a,n){var i=a.toLowerCase();for(n=fce(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==yx[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var cce=mx(),Je=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},qr="M0,0Z",JL=Math.sqrt(2),Jl=Math.sqrt(3),gx=Math.PI,bx=Math.cos,xx=Math.sin;rC.exports={circle:{n:0,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Cr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.3,2);return Cr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.4,2),n=Je(e*1.2,2);return Cr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.8/JL,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return Cr(r,t,"M0,"+a+n+i+o+i+o+l+o+l+n+l+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2/Jl,2),n=Je(e/2,2),i=Je(e,2);return Cr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2/Jl,2),n=Je(e/2,2),i=Je(e,2);return Cr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2/Jl,2),n=Je(e/2,2),i=Je(e,2);return Cr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2/Jl,2),n=Je(e/2,2),i=Je(e,2);return Cr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Cr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Cr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Cr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Cr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.951,2),n=Je(e*.588,2),i=Je(-e,2),o=Je(e*-.309,2),l=Je(e*.809,2);return Cr(r,t,"M"+a+","+o+"L"+n+","+l+"H-"+n+"L-"+a+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e/2,2),i=Je(e*Jl/2,2);return Cr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e/2,2),i=Je(e*Jl/2,2);return Cr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.924,2),n=Je(e*.383,2);return Cr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(Lr(r))return qr;var a=e*1.4,n=Je(a*.225,2),i=Je(a*.951,2),o=Je(a*.363,2),l=Je(a*.588,2),s=Je(-a,2),u=Je(a*-.309,2),f=Je(a*.118,2),c=Je(a*.809,2),v=Je(a*.382,2);return Cr(r,t,"M"+n+","+u+"H"+i+"L"+o+","+f+"L"+l+","+c+"L0,"+v+"L-"+l+","+c+"L-"+o+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.66,2),n=Je(e*.38,2),i=Je(e*.76,2);return Cr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*Jl*.8,2),n=Je(e*.8,2),i=Je(e*1.6,2),o=Je(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Cr(r,t,"M-"+a+","+n+l+a+","+n+l+"0,-"+i+l+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*Jl*.8,2),n=Je(e*.8,2),i=Je(e*1.6,2),o=Je(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Cr(r,t,"M"+a+",-"+n+l+"-"+a+",-"+n+l+"0,"+i+l+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.1,2),n=Je(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Cr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.4,2),n=Je(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Cr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*.7,2),n=Je(e*1.4,2);return Cr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.4,2),n=Je(e*.7,2);return Cr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e/JL,2);return Cr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.3,2);return Cr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.3,2),n=Je(e*.65,2);return Cr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.4,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.2,2),n=Je(e*.85,2);return Cr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e/2,2),n=Je(e,2);return Cr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Cr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Cr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Cr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Cr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.4,2);return Cr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*1.4,2);return Cr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2);return Cr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e*2,2);return Cr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e*2,2);return Cr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2,2),n=Je(e,2);return Cr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2,2),n=Je(e,2);return Cr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e*2,2);return Cr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e,2),n=Je(e*2,2);return Cr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2,2),n=Je(e,2);return Cr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Lr(r))return qr;var a=Je(e*2,2),n=Je(e,2);return Cr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Lr(r))return qr;var a=gx/2.5,n=2*e*bx(a),i=2*e*xx(a);return Cr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Lr(r))return qr;var a=gx/4,n=2*e*bx(a),i=2*e*xx(a);return Cr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Lr(e){return e===null}var $L,KL,QL,eC;function Cr(e,r,t){if((!e||e%360===0)&&!r)return t;if(QL===e&&eC===r&&$L===t)return KL;QL=e,eC=r,$L=t;function a(y,x){var w=bx(y),_=xx(y),b=x[0],T=x[1]+(r||0);return[b*w-T*_,b*_+T*w]}for(var n=e/180*gx,i=0,o=0,l=cce(t),s="",u=0;u{"use strict";var Aa=Sr(),gt=Ce(),vce=gt.numberFormat,su=Rr(),kx=kn(),f1=gr(),Ua=Tr(),hce=So(),vh=gt.strTranslate,c1=Da(),dce=ll(),pce=Xa(),yce=pce.LINE_SPACING,vC=xp().DESELECTDIM,mce=Dn(),gce=VL(),bce=qo().appendArrayPointValue,tr=wC.exports={};tr.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Ua.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",_x(_ce(f))),s&&e.style("text-shadow",s==="auto"?c1.makeTextShadow(Ua.contrast(i)):_x(s)),u&&e.style("text-decoration-line",_x(wce(u)))};function _x(e){return e==="none"?void 0:e}var xce={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function _ce(e){return xce[e]}function wce(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}tr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};tr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};tr.setRect=function(e,r,t,a,n){e.call(tr.setPosition,r,t).call(tr.setSize,a,n)};tr.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(su(n)&&su(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",vh(n,i));else return!1;return!0};tr.translatePoints=function(e,r,t){e.each(function(a){var n=Aa.select(this);tr.translatePoint(a,n,r,t)})};tr.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};tr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,o=i.xcalendar,l=i.ycalendar,s=f1.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){tr.hideOutsideRangePoint(u,Aa.select(this),t,a,o,l)})})}};tr.crispRound=function(e,r,t){return!r||!su(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};tr.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=n||i.dash||"";Ua.stroke(r,a||i.color),tr.dashLine(r,l,o)};tr.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";Aa.select(this).call(Ua.stroke,t||i.color).call(tr.dashLine,l,o)})};tr.dashLine=function(e,r,t){t=+t||0,r=tr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};tr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function hC(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=tr.getPatternAttr,l=n&&(o(n.shape,0,"")||o(n.path,0,""));if(l){var s=o(n.bgcolor,0,null),u=o(n.fgcolor,0,null),f=n.fgopacity,c=o(n.size,0,8),v=o(n.solidity,0,.3),d=r.uid;tr.pattern(e,"point",t,d,l,c,v,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var p=i.type,m="scatterfill-"+r.uid;if(a&&(m="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var y,x;p==="horizontal"?(y={x:i.start,y:0},x={x:i.stop,y:0}):p==="vertical"&&(y={x:0,y:i.start},x={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),x.x=r._xA.c2p(x.x===void 0?r._extremes.x.max[0].val:x.x,!0),x.y=r._yA.c2p(x.y===void 0?r._extremes.y.max[0].val:x.y,!0),e.call(yC,t,m,"linear",i.colorscale,"fill",y,x,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(tr.gradient,t,m,p,i.colorscale,"fill")}else r.fillcolor&&e.call(Ua.fill,r.fillcolor)}tr.singleFillStyle=function(e,r){var t=Aa.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};hC(e,n,r,!1)};tr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=Aa.select(this);a[0].trace&&hC(n,a[0].trace,r,t)})};var aC=tC();tr.symbolNames=[];tr.symbolFuncs=[];tr.symbolBackOffs=[];tr.symbolNeedLines={};tr.symbolNoDot={};tr.symbolNoFill={};tr.symbolList=[];Object.keys(aC).forEach(function(e){var r=aC[e],t=r.n;tr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),tr.symbolNames[t]=e,tr.symbolFuncs[t]=r.f,tr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(tr.symbolNeedLines[t]=!0),r.noDot?tr.symbolNoDot[t]=!0:tr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(tr.symbolNoFill[t]=!0)});var Tce=tr.symbolNames.length,Ace="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";tr.symbolNumber=function(e){if(su(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=tr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=Tce||e>=400?0:Math.floor(Math.max(e,0))};function dC(e,r,t,a){var n=e%100;return tr.symbolFuncs[n](r,t,a)+(e>=200?Ace:"")}var nC=vce("~f"),pC={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};tr.gradient=function(e,r,t,a,n,i){var o=pC[a];return yC(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function yC(e,r,t,a,n,i,o,l,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var v=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=tr.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=Lx(e,t),c=qx(e,t);r.attr("d",dC(u,s,f,c))}var v=!1,d,p,m;if(e.so)m=l.outlierwidth,p=l.outliercolor,d=o.outliercolor;else{var y=(l||{}).width;m=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):gt.isArrayOrTypedArray(l.color)?p=Ua.defaultLine:p=l.color,gt.isArrayOrTypedArray(o.color)&&(d=Ua.defaultLine,v=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}if(e.om)r.call(Ua.stroke,d).style({"stroke-width":(m||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:m)+"px");var x=o.gradient,w=e.mgt;w?v=!0:w=x&&x.type,gt.isArrayOrTypedArray(w)&&(w=w[0],pC[w]||(w=0));var _=o.pattern,b=tr.getPatternAttr,T=_&&(b(_.shape,e.i,"")||b(_.path,e.i,""));if(w&&w!=="none"){var k=e.mgc;k?v=!0:k=x.color;var M=t.uid;v&&(M+="-"+e.i),tr.gradient(r,n,M,w,[[0,k],[1,d]],"fill")}else if(T){var S=!1,E=_.fgcolor;!E&&i&&i.color&&(E=i.color,S=!0);var D=b(E,e.i,i&&i.color||null),P=b(_.bgcolor,e.i,null),R=_.fgopacity,z=b(_.size,e.i,8),O=b(_.solidity,e.i,.3);S=S||e.mcc||gt.isArrayOrTypedArray(_.shape)||gt.isArrayOrTypedArray(_.path)||gt.isArrayOrTypedArray(_.bgcolor)||gt.isArrayOrTypedArray(_.fgcolor)||gt.isArrayOrTypedArray(_.size)||gt.isArrayOrTypedArray(_.solidity);var B=t.uid;S&&(B+="-"+e.i),tr.pattern(r,"point",n,B,T,z,O,e.mcc,_.fillmode,P,D,R)}else gt.isArrayOrTypedArray(d)?Ua.fill(r,d[e.i]):Ua.fill(r,d);m&&Ua.stroke(r,p)}};tr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=tr.tryColorscale(t,""),r.lineScale=tr.tryColorscale(t,"line"),f1.traceIs(e,"symbols")&&(r.ms2mrc=mce.isBubble(e)?gce(e):function(){return(t.size||6)/2}),e.selectedpoints&>.extendFlat(r,tr.makeSelectedPointStyleFns(e)),r};tr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},o=a.marker||{},l=n.opacity,s=i.opacity,u=o.opacity,f=s!==void 0,c=u!==void 0;(gt.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(b){var T=b.mo===void 0?n.opacity:b.mo;return b.selected?f?s:T:c?u:vC*T});var v=n.color,d=i.color,p=o.color;(d||p)&&(r.selectedColorFn=function(b){var T=b.mcc||v;return b.selected?d||T:p||T});var m=n.size,y=i.size,x=o.size,w=y!==void 0,_=x!==void 0;return f1.traceIs(e,"symbols")&&(w||_)&&(r.selectedSizeFn=function(b){var T=b.mrc||m/2;return b.selected?w?y/2:T:_?x/2:T}),r};tr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},o=a.textfont||{},l=n.color,s=i.color,u=o.color;return r.selectedTextColorFn=function(f){var c=f.tc||l;return f.selected?s||c:u||(s?c:Ua.addOpacity(c,vC))},r};tr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=tr.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&n.push(function(i,o){Ua.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&n.push(function(i,o){var l=o.mx||a.symbol||0,s=t.selectedSizeFn(o);i.attr("d",dC(tr.symbolNumber(l),s,Lx(o,r),qx(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=Aa.select(this),l=0;l0?t:0}tr.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=tr.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=Aa.select(this),u=i?gt.extractOption(l,r,"txt","texttemplate"):gt.extractOption(l,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(l,r,o):{},v={};bce(v,r,l.i);var d=r._meta||{};u=gt.texttemplateString(u,c,o._d3locale,v,l,d)}var p=l.tp||r.textposition,m=gC(l,r),y=a?a(l):l.tc||r.textfont.color;s.call(tr.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:m,color:y}).text(u).call(c1.convertToTspans,t).call(mC,p,m,l.mrc)})}};tr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=tr.makeSelectedTextStyleFns(r);e.each(function(a){var n=Aa.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=gC(a,r);Ua.fill(n,i);var s=f1.traceIs(r,"bar-like");mC(n,o,l,a.mrc2||a.mrc,s)})}};var iC=.5;tr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||b>=f&&b<=s)&&(T<=c&&T>=u||T>=c&&T<=u)&&(e=[b,T])}return e}tr.applyBackoff=_C;tr.makeTester=function(){var e=gt.ensureSingleById(Aa.select("body"),"svg","js-plotly-tester",function(t){t.attr(dce.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=gt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});tr.tester=e,tr.testref=r};tr.savedBBoxes={};var Tx=0,Sce=1e4;tr.bBox=function(e,r,t){t||(t=oC(e));var a;if(t){if(a=tr.savedBBoxes[t],a)return gt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=oC(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=tr.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,a=tr.savedBBoxes[t],a)return gt.extendFlat({},a)}}var u,f;r?u=e:(f=tr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),Aa.select(u).attr("transform",null).call(c1.positionText,0,0);var c=u.getBoundingClientRect(),v=tr.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:c.height,width:c.width,left:c.left-v.left,top:c.top-v.top,right:c.right-v.left,bottom:c.bottom-v.top};return Tx>=Sce&&(tr.savedBBoxes={},Tx=0),t&&(tr.savedBBoxes[t]=d),Tx++,gt.extendFlat({},d)};function oC(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}tr.setClipUrl=function(e,r,t){e.attr("clip-path",Sx(r,t))};function Sx(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}tr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};tr.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||0,t=t||0,o=o.replace(a,"").trim(),o+=vh(r,t),o=o.trim(),e[i]("transform",o),o};tr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};tr.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||1,t=t||1,o=o.replace(a,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var qce=/\s*sc.*/;tr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(qce,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var Lce=/translate\([^)]*\)\s*$/;tr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=Aa.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(Lce);r===1&&t===1?a=[]:a=[vh(o,l),"scale("+r+","+t+")",vh(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function qx(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}tr.getMarkerStandoff=qx;var ch=Math.atan2,iu=Math.cos,Yf=Math.sin;function lC(e,r){var t=r[0],a=r[1];return[t*iu(e)-a*Yf(e),t*Yf(e)+a*iu(e)]}var sC,uC,fC,cC,Ax,Mx;function Lx(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||gt.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);a=o[0],n=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)a=l.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),v=r._geo.project([u+1e-5,f]),d=ch(v[1]-n,v[0]-a),p=ch(c[1]-n,c[0]-a),m;if(i==="north")m=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,x=f/180*Math.PI,w=sC/180*Math.PI,_=uC/180*Math.PI,b=w-y,T=iu(_)*Yf(b),k=Yf(_)*iu(x)-iu(_)*Yf(x)*iu(b);m=-ch(T,k)-Math.PI,sC=u,uC=f}var M=lC(d,[iu(m),0]),S=lC(p,[Yf(m),0]);t=ch(M[1]+S[1],M[0]+S[0])/Math.PI*180,i==="previous"&&!(Mx===r.uid&&e.i===Ax+1)&&(t=null)}if(i==="previous"&&!r._geo)if(Mx===r.uid&&e.i===Ax+1&&su(a)&&su(n)){var E=a-fC,D=n-cC,P=r.line&&r.line.shape||"",R=P.slice(P.length-1);R==="h"&&(D=0),R==="v"&&(E=0),t+=ch(D,E)/Math.PI*180+90}else t=null}return fC=a,cC=n,Ax=e.i,Mx=r.uid,t}tr.getMarkerAngle=Lx});var jf=N((HDe,kC)=>{"use strict";var Vf=Sr(),Cce=Rr(),Ece=aa(),Cx=gr(),uu=Ce(),TC=uu.strTranslate,v1=Wr(),h1=Tr(),Wf=Da(),AC=xp(),Dce=Xa().OPPOSITE_SIDE,MC=/ [XY][0-9]* /,Ex=1.6,Dx=1.6;function Rce(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,v=1,d=n.title,p=(d&&d.text?d.text:"").trim(),m=!1,y=d&&d.font?d.font:{},x=y.family,w=y.size,_=y.color,b=y.weight,T=y.style,k=y.variant,M=y.textcase,S=y.lineposition,E=y.shadow,D=t.subtitlePropName,P=!!D,R=t.subtitlePlaceholder,z=(n.title||{}).subtitle||{text:"",font:{}},O=z.text.trim(),B=!1,V=1,G=z.font,U=G.family,Y=G.size,J=G.color,Z=G.weight,re=G.style,se=G.variant,oe=G.textcase,ce=G.lineposition,K=G.shadow,Te;i==="title.text"?Te="titleText":i.indexOf("axis")!==-1?Te="axisTitleText":i.indexOf("colorbar")!==-1&&(Te="colorbarTitleText");var le=e._context.edits[Te];function ve(Ge,He){return Ge===void 0||He===void 0?!1:Ge.replace(MC," % ")===He.replace(MC," % ")}p===""?v=0:ve(p,o)&&(le||(p=""),v=.2,m=!0),P&&(O===""?V=0:ve(O,R)&&(le||(O=""),V=.2,B=!0)),t._meta?p=uu.templateString(p,t._meta):a._meta&&(p=uu.templateString(p,a._meta));var ie=p||O||le,pe;c||(c=uu.ensureSingle(a._infolayer,"g","g-"+r),pe=a._hColorbarMoveTitle);var W=c.selectAll("text."+r).data(ie?[0]:[]);W.enter().append("text"),W.text(p).attr("class",r),W.exit().remove();var Q=null,j=r+"-subtitle",me=O||le;if(P&&me&&(Q=c.selectAll("text."+j).data(me?[0]:[]),Q.enter().append("text"),Q.text(O).attr("class",j),Q.exit().remove()),!ie)return c;function _e(Ge,He){uu.syncOrAsync([ye,Pe],{title:Ge,subtitle:He})}function ye(Ge){var He=Ge.title,De=Ge.subtitle,Ie;!f&&pe&&(f={}),f?(Ie="",f.rotate&&(Ie+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||pe)&&(Ie+=TC(0,(f.offset||0)-(pe||0)))):Ie=null,He.attr("transform",Ie);function Be(fe){if(fe){var qe=Vf.select(fe.node().parentNode).select("."+j);if(!qe.empty()){var Oe=fe.node().getBBox();if(Oe.height){var Ze=Oe.y+Oe.height+Ex*Y;qe.attr("y",Ze)}}}}if(He.style("opacity",v*h1.opacity(_)).call(v1.font,{color:h1.rgb(_),size:Vf.round(w,2),family:x,weight:b,style:T,variant:k,textcase:M,shadow:E,lineposition:S}).attr(u).call(Wf.convertToTspans,e,Be),De){var ue=c.select("."+r+"-math-group"),Ae=He.node().getBBox(),je=ue.node()?ue.node().getBBox():void 0,ur=je?je.y+je.height+Ex*Y:Ae.y+Ae.height+Dx*Y,lr=uu.extendFlat({},u,{y:ur});De.attr("transform",Ie),De.style("opacity",V*h1.opacity(J)).call(v1.font,{color:h1.rgb(J),size:Vf.round(Y,2),family:U,weight:Z,style:re,variant:se,textcase:oe,shadow:K,lineposition:ce}).attr(lr).call(Wf.convertToTspans,e)}return Ece.previousPromises(e)}function Pe(Ge){var He=Ge.title,De=Vf.select(He.node().parentNode);if(s&&s.selection&&s.side&&p){De.attr("transform",null);var Ie=Dce[s.side],Be=s.side==="left"||s.side==="top"?-1:1,ue=Cce(s.pad)?s.pad:2,Ae=v1.bBox(De.node()),je={t:0,b:0,l:0,r:0},ur=e._fullLayout._reservedMargin;for(var lr in ur)for(var fe in ur[lr]){var qe=ur[lr][fe];je[fe]=Math.max(je[fe],qe)}var Oe={left:je.l,top:je.t,right:a.width-je.r,bottom:a.height-je.b},Ze=s.maxShift||Be*(Oe[s.side]-Ae[s.side]),Ue=0;if(Ze<0)Ue=Ze;else{var Xe=s.offsetLeft||0,Qe=s.offsetTop||0;Ae.left-=Xe,Ae.right-=Xe,Ae.top-=Qe,Ae.bottom-=Qe,s.selection.each(function(){var $e=v1.bBox(this);uu.bBoxIntersect(Ae,$e,ue)&&(Ue=Math.max(Ue,Be*($e[s.side]-Ae[Ie])+ue))}),Ue=Math.min(Ze,Ue),n._titleScoot=Math.abs(Ue)}if(Ue>0||Ze<0){var hr={left:[-Ue,0],right:[Ue,0],top:[0,-Ue],bottom:[0,Ue]}[s.side];De.attr("transform",TC(hr[0],hr[1]))}}}W.call(_e,Q);function Ne(Ge,He){Ge.text(He).on("mouseover.opacity",function(){Vf.select(this).transition().duration(AC.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Vf.select(this).transition().duration(AC.HIDE_PLACEHOLDER).style("opacity",0)})}if(le&&(p?W.on(".opacity",null):(Ne(W,o),m=!0),W.call(Wf.makeEditable,{gd:e}).on("edit",function(Ge){l!==void 0?Cx.call("_guiRestyle",e,i,Ge,l):Cx.call("_guiRelayout",e,i,Ge)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(_e)}).on("input",function(Ge){this.text(Ge||" ").call(Wf.positionText,u.x,u.y)}),P)){if(P&&!p){var Re=W.node().getBBox(),ze=Re.y+Re.height+Dx*Y;Q.attr("y",ze)}O?Q.on(".opacity",null):(Ne(Q,R),B=!0),Q.call(Wf.makeEditable,{gd:e}).on("edit",function(Ge){Cx.call("_guiRelayout",e,"title.subtitle.text",Ge)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(_e)}).on("input",function(Ge){this.text(Ge||" ").call(Wf.positionText,Q.attr("x"),Q.attr("y"))})}return W.classed("js-placeholder",m),Q&&Q.classed("js-placeholder",B),c}kC.exports={draw:Rce,SUBTITLE_PADDING_EM:Dx,SUBTITLE_PADDING_MATHJAX_EM:Ex}});var Zf=N((UDe,EC)=>{"use strict";var Pce=Sr(),Fce=xf().utcFormat,Mt=Ce(),Nce=Mt.numberFormat,Lo=Rr(),$l=Mt.cleanNumber,zce=Mt.ms2DateTime,SC=Mt.dateTime2ms,Co=Mt.ensureNumber,qC=Mt.isArrayOrTypedArray,Kl=Nt(),d1=Kl.FP_SAFE,ro=Kl.BADNUM,Ice=Kl.LOG_CLIP,Oce=Kl.ONEWEEK,p1=Kl.ONEDAY,y1=Kl.ONEHOUR,LC=Kl.ONEMIN,CC=Kl.ONESEC,m1=ia(),x1=Ea(),g1=x1.HOUR_PATTERN,b1=x1.WEEKDAY_PATTERN;function hh(e){return Math.pow(10,e)}function Rx(e){return e!=null}EC.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(b,T){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&T&&r.range&&r.range.length===2){var k=r.range[0],M=r.range[1];return .5*(k+M-2*Ice*Math.abs(k-M))}else return ro}function o(b,T,k,M){if((M||{}).msUTC&&Lo(b))return+b;var S=SC(b,k||r.calendar);if(S===ro)if(Lo(b)){b=+b;var E=Math.floor(Mt.mod(b+.05,1)*10),D=Math.round(b-E/10);S=SC(new Date(D))+E/10}else return ro;return S}function l(b,T,k){return zce(b,T,k||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(Rx(b)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[b]!==void 0)return r._categoriesMap[b];r._categories.push(typeof b=="number"?String(b):b);var T=r._categories.length-1;return r._categoriesMap[b]=T,T}return ro}function f(b,T){for(var k=new Array(T),M=0;Mr.range[1]&&(k=!k);for(var M=k?-1:1,S=M*b,E=0,D=0;DR)E=D+1;else{E=S<(P+R)/2?D:D+1;break}}var z=r._B[E]||0;return isFinite(z)?p(b,r._m2,z):0},x=function(b){var T=r._rangebreaks.length;if(!T)return m(b,r._m,r._b);for(var k=0,M=0;Mr._rangebreaks[M].pmax&&(k=M+1);return m(b,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:Co,r.l2c=r.type==="log"?hh:Co,r.l2p=y,r.p2l=x,r.c2p=r.type==="log"?function(b,T){return y(i(b,T))}:y,r.p2c=r.type==="log"?function(b){return hh(x(b))}:x,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=$l,r.c2d=r.c2r=r.l2d=r.l2r=Co,r.d2p=r.r2p=function(b){return r.l2p($l(b))},r.p2d=r.p2r=x,r.cleanPos=Co):r.type==="log"?(r.d2r=r.d2l=function(b,T){return i($l(b),T)},r.r2d=r.r2c=function(b){return hh($l(b))},r.d2c=r.r2l=$l,r.c2d=r.l2r=Co,r.c2r=i,r.l2d=hh,r.d2p=function(b,T){return r.l2p(r.d2r(b,T))},r.p2d=function(b){return hh(x(b))},r.r2p=function(b){return r.l2p($l(b))},r.p2r=x,r.cleanPos=Co):r.type==="date"?(r.d2r=r.r2d=Mt.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(b,T,k){return r.l2p(o(b,0,k))},r.p2d=r.p2r=function(b,T,k){return l(x(b),T,k)},r.cleanPos=function(b){return Mt.cleanDate(b,ro,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(b){var T=d(b);return T!==void 0?T:r.fraction2r(.5)},r.l2r=r.c2r=Co,r.r2l=d,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(x(b))},r.r2p=r.d2p,r.p2r=x,r.cleanPos=function(b){return typeof b=="string"&&b!==""?b:Co(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(b){var T=v(b);return T!==void 0?T:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Co,r.r2l=v,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(x(b))},r.r2p=r.d2p,r.p2r=x,r.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:Co(b)},r.setupMultiCategory=function(b){var T=r._traceIndices,k,M,S=r._matchGroup;if(S&&r._categories.length===0){for(var E in S)if(E!==a){var D=t[m1.id2name(E)];T=T.concat(D._traceIndices)}}var P=[[0,{}],[0,{}]],R=[];for(k=0;kD[1]&&(M[E?0:1]=k),M[0]===M[1]){var P=r.l2r(T),R=r.l2r(k);if(T!==void 0){var z=P+1;k!==void 0&&(z=Math.min(z,R)),M[E?1:0]=z}if(k!==void 0){var O=R+1;T!==void 0&&(O=Math.max(O,P)),M[E?0:1]=O}}}},r.cleanRange=function(b,T){r._cleanRange(b,T),r.limitRange(b)},r._cleanRange=function(b,T){T||(T={}),b||(b="range");var k=Mt.nestedProperty(r,b).get(),M,S;if(r.type==="date"?S=Mt.dfltRange(r.calendar):n==="y"?S=x1.DFLTRANGEY:r._name==="realaxis"?S=[0,1]:S=T.dfltRange||x1.DFLTRANGEX,S=S.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(S[0]=0),!k||k.length!==2){Mt.nestedProperty(r,b).set(S);return}var E=k[0]===null,D=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=Mt.cleanDate(k[0],ro,r.calendar),k[1]=Mt.cleanDate(k[1],ro,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!Mt.isDateTime(k[M],r.calendar)){r[b]=S;break}if(r.r2l(k[0])===r.r2l(k[1])){var P=Mt.constrain(r.r2l(k[0]),Mt.MIN_MS+1e3,Mt.MAX_MS-1e3);k[0]=r.l2r(P-1e3),k[1]=r.l2r(P+1e3);break}}else{if(!Lo(k[M]))if(!(E||D)&&Lo(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[b]=S;break}if(k[M]<-d1?k[M]=-d1:k[M]>d1&&(k[M]=d1),k[0]===k[1]){var R=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=R,k[1]+=R}}},r.setScale=function(b){var T=t._size;if(r.overlaying){var k=m1.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var M=b&&r._r?"_r":"range",S=r.calendar;r.cleanRange(M);var E=r.r2l(r[M][0],S),D=r.r2l(r[M][1],S),P=n==="y";if(P?(r._offset=T.t+(1-r.domain[1])*T.h,r._length=T.h*(r.domain[1]-r.domain[0]),r._m=r._length/(E-D),r._b=-r._m*D):(r._offset=T.l+r.domain[0]*T.w,r._length=T.w*(r.domain[1]-r.domain[0]),r._m=r._length/(D-E),r._b=-r._m*E),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var R,z;if(r._rangebreaks=r.locateBreaks(Math.min(E,D),Math.max(E,D)),r._rangebreaks.length){for(R=0;RD&&(O=!O),O&&r._rangebreaks.reverse();var B=O?-1:1;for(r._m2=B*r._length/(Math.abs(D-E)-r._lBreaks),r._B.push(-r._m2*(P?D:E)),R=0;RS&&(S+=7,ES&&(S+=24,E=M&&E=M&&b=K.min&&(reK.max&&(K.max=se),oe=!1)}oe&&D.push({min:re,max:se})}};for(k=0;k{"use strict";var DC=Rr(),Px=Ce(),Bce=Nt().BADNUM,_1=Px.isArrayOrTypedArray,Hce=Px.isDateTime,Uce=Px.cleanNumber,RC=Math.round;FC.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(_1(n)&&!n.length)return"-";if(!i&&jce(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;li*2}function PC(e){return Math.max(1,(e-1)/1e3)}function Wce(e,r){for(var t=e.length,a=PC(t),n=0,i=0,o={},l=0;ln*2}function jce(e){return _1(e[0])&&_1(e[1])}});var dh=N((YDe,GC)=>{"use strict";var Zce=Sr(),OC=Rr(),Ql=Ce(),T1=Nt().FP_SAFE,Xce=gr(),Jce=Wr(),BC=ia(),$ce=BC.getFromId,Kce=BC.isLinked;GC.exports={applyAutorangeOptions:UC,getAutoRange:Fx,makePadFn:Nx,doAutoRange:eve,findExtremes:rve,concatExtremes:Ox};function Fx(e,r){var t,a,n=[],i=e._fullLayout,o=Nx(i,r,0),l=Nx(i,r,1),s=Ox(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return Ql.simpleMap(r.range,r.r2l);var c=u[0].val,v=f[0].val;for(t=1;t0&&(D=_-o(k)-l(M),D>b?P/D>T&&(S=k,E=M,T=P/D):P/_>T&&(S={val:k.val,nopad:1},E={val:M.val,nopad:1},T=P/_));function R(G,U){return Math.max(G,l(U))}if(c===v){var z=c-1,O=c+1;if(x)if(c===0)n=[0,1];else{var B=(c>0?f:u).reduce(R,0),V=c/(1-Math.min(.5,B/_));n=c>0?[0,V]:[V,0]}else w?n=[Math.max(0,z),Math.max(1,O)]:n=[z,O]}else x?(S.val>=0&&(S={val:0,nopad:1}),E.val<=0&&(E={val:0,nopad:1})):w&&(S.val-T*o(S)<0&&(S={val:0,nopad:1}),E.val<=0&&(E={val:1,nopad:1})),T=(E.val-S.val-NC(r,k.val,M.val))/(_-o(S)-l(E)),n=[S.val-T*o(S),E.val+T*l(E)];return n=UC(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Ql.simpleMap(n,r.l2r||Number)}function NC(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),k=b((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=b(t.vpadplus||t.vpad),S=b(t.vpadminus||t.vpad);if(!u){if(w=1/0,_=-1/0,s)for(c=0;c0&&(w=v),v>_&&v-T1&&(w=v),v>_&&v=P;c--)D(c);return{min:a,max:n,opts:t}}function zx(e,r,t,a){HC(e,r,t,a,tve)}function Ix(e,r,t,a){HC(e,r,t,a,ave)}function HC(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,s=0;s=t&&(u.extrapad||!o)){l=!1;break}else n(r,u.val)&&u.pad<=t&&(o||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:o})}}function IC(e){return OC(e)&&Math.abs(e)=r}function nve(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&A1(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&A1(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function ive(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&A1(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&A1(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function A1(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,a=s)}}return t=nve(t,r),a=ive(a,r),[t,a]}});var Ir=N((VDe,cE)=>{"use strict";var di=Sr(),la=Rr(),Xf=aa(),yh=gr(),xr=Ce(),Jf=xr.strTranslate,fu=Da(),ove=jf(),mh=Tr(),jn=Wr(),lve=hi(),YC=sx(),Ga=Nt(),sve=Ga.ONEMAXYEAR,S1=Ga.ONEAVGYEAR,q1=Ga.ONEMINYEAR,uve=Ga.ONEMAXQUARTER,Gx=Ga.ONEAVGQUARTER,L1=Ga.ONEMINQUARTER,fve=Ga.ONEMAXMONTH,$f=Ga.ONEAVGMONTH,C1=Ga.ONEMINMONTH,Zn=Ga.ONEWEEK,on=Ga.ONEDAY,es=on/2,Do=Ga.ONEHOUR,gh=Ga.ONEMIN,E1=Ga.ONESEC,cve=Ga.ONEMILLI,vve=Ga.ONEMICROSEC,cu=Ga.MINUS_SIGN,P1=Ga.BADNUM,Yx={K:"zeroline"},Vx={K:"gridline",L:"path"},Wx={K:"minor-gridline",L:"path"},rE={K:"tick",L:"path"},VC={K:"tick",L:"text"},WC={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},F1=Xa(),ph=F1.MID_SHIFT,vu=F1.CAP_SHIFT,bh=F1.LINE_SPACING,hve=F1.OPPOSITE_SIDE,D1=3,Ve=cE.exports={};Ve.setConvert=Zf();var dve=w1(),fl=ia(),pve=fl.idSort,yve=fl.isLinked;Ve.id2name=fl.id2name;Ve.name2id=fl.name2id;Ve.cleanId=fl.cleanId;Ve.list=fl.list;Ve.listIds=fl.listIds;Ve.getFromId=fl.getFromId;Ve.getFromTrace=fl.getFromTrace;var tE=dh();Ve.getAutoRange=tE.getAutoRange;Ve.findExtremes=tE.findExtremes;var mve=1e-4;function Jx(e){var r=(e[1]-e[0])*mve;return[e[0]-r,e[1]+r]}Ve.coerceRef=function(e,r,t,a,n,i){var o=a.charAt(a.length-1),l=t._fullLayout._subplots[o+"axis"],s=a+"ref",u={};return n||(n=l[0]||(typeof i=="string"?i:i[0])),i||(i=n),l=l.concat(l.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},xr.coerce(e,r,u,s)};Ve.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Ve.coercePosition=function(e,r,t,a,n,i){var o,l,s=Ve.getRefType(a);if(s!=="range")o=xr.ensureNumber,l=t(n,i);else{var u=Ve.getFromId(r,a);i=u.fraction2r(i),l=t(n,i),o=u.cleanPos}e[n]=o(l)};Ve.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?xr.ensureNumber:Ve.getFromId(r,t).cleanPos;return a(e)};Ve.redrawComponents=function(e,r){r=r||Ve.listIds(e);var t=e._fullLayout;function a(n,i,o,l){for(var s=yh.getComponentMethod(n,i),u={},f=0;f2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Ve.saveRangeInitial=function(e,r){for(var t=Ve.list(e,"",!0),a=!1,n=0;nc*.3||u(a)||u(n))){var v=t.dtick/2;e+=e+vo){var l=Number(t.substr(1));i.exactYears>o&&l%12===0?e=Ve.tickIncrement(e,"M6","reverse")+on*1.5:i.exactMonths>o?e=Ve.tickIncrement(e,"M1","reverse")+on*15.5:e-=es;var s=Ve.tickIncrement(e,t);if(s<=a)return s}return e}Ve.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var a=r.dtick&&la(r._tmin),n;if(a){var i=Ve.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=xr.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=xr.simpleMap(n,r.l2r),e._isMinor=!0,Ve.prepTicks(e,t),a){var l=la(r.dtick),s=la(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?Bx(u,f)?u===2*Zn&&f===2*on&&(e.dtick=Zn):u===2*Zn&&f===3*on?e.dtick=Zn:u===Zn&&!(r._input.minor||{}).nticks?e.dtick=on:XC(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":Bx(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?Bx(u,f)||(e.dtick=XC(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function Bx(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function XC(e,r){return Math.abs(e/r-1)<.001}Ve.prepTicks=function(e,r){var t=xr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?xr.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=xr.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Ve.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,o=a):(i=a,o=a);var l=e[i].value,s=e[o].value,u=Math.abs(s-l),f=t||u,c=0;f>=q1?u>=q1&&u<=sve?c=u:c=S1:t===Gx&&f>=L1?u>=L1&&u<=uve?c=u:c=Gx:f>=C1?u>=C1&&u<=fve?c=u:c=$f:t===Zn&&f>=Zn?c=Zn:f>=on?c=on:t===es&&f>=es?c=es:t===Do&&f>=Do&&(c=Do);var v;c>=u&&(c=u,v=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,m=0,y=0;yZn&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}Ve.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||xr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=xr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(_?0:1);b--){var T=!b;b?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var k=b?r:xr.extendFlat({},r,r.minor);if(T?Ve.prepMinorTicks(k,r,t):Ve.prepTicks(k,t),k.tickmode==="array"){b?(y=[],p=JC(r,!T)):(x=[],m=JC(r,!T));continue}if(k.tickmode==="sync"){y=[],p=Tve(r);continue}var M=Jx(u),S=M[0],E=M[1],D=la(k.dtick),P=a==="log"&&!(D||k.dtick.charAt(0)==="L"),R=Ve.tickFirst(k,t);if(b){if(r._tmin=R,R=E:O<=E;O=Ve.tickIncrement(O,G,f,n)){if(b&&B++,k.rangebreaks&&!f){if(O=v)break}if(y.length>d||O===z)break;z=O;var U={value:O};b?(P&&O!==(O|0)&&(U.simpleLabel=!0),i>1&&B%i&&(U.skipLabel=!0),y.push(U)):(U.minor=!0,x.push(U))}}if(!x||x.length<2)s=!1;else{var Y=(x[1].value-x[0].value)*(l?-1:1);jve(Y,r.tickformat)||(s=!1)}if(!s)w=y;else{var J=y.concat(x);o&&y.length&&(J=J.slice(1)),J=J.sort(function(ze,Ge){return ze.value-Ge.value}).filter(function(ze,Ge,He){return Ge===0||ze.value!==He[Ge-1].value});var Z=J.map(function(ze,Ge){return ze.minor===void 0&&!ze.skipLabel?Ge:null}).filter(function(ze){return ze!==null});Z.forEach(function(ze){s.map(function(Ge){var He=ze+Ge;He>=0&&He-1;ie--){if(y[ie].drop){y.splice(ie,1);continue}y[ie].value=Ux(y[ie].value,r);var j=r.c2p(y[ie].value);(pe?Q>j-W:Qv||Dev&&(He.periodX=v),Den&&vS1)r/=S1,a=n(10),e.dtick="M"+12*Eo(r,a,M1);else if(i>$f)r/=$f,e.dtick="M"+Eo(r,1,$C);else if(i>on){if(e.dtick=Eo(r,on,e._hasDayOfWeekBreaks?[1,2,7,14]:Ave),!t){var o=Ve.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=xr.dateTick0(e.calendar,2):e.tick0=xr.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>Do?e.dtick=Eo(r,Do,$C):i>gh?e.dtick=Eo(r,gh,KC):i>E1?e.dtick=Eo(r,E1,KC):(a=n(10),e.dtick=Eo(r,a,M1))}else if(e.type==="log"){e.tick0=0;var s=xr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+Eo(r,a,M1)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):Qx(e)?(e.tick0=0,a=1,e.dtick=Eo(r,a,Mve)):(e.tick0=0,a=n(10),e.dtick=Eo(r,a,M1));if(e.dtick===0&&(e.dtick=1),!la(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function oE(e){var r=e.dtick;if(e._tickexponent=0,!la(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.substr(5)!=="01-01"?e._tickround="d":e._tickround=+r.substr(1)%12===0?"y":"m";else if(r>=on&&n<=10||r>=on*15)e._tickround="d";else if(r>=gh&&n<=16||r>=Do)e._tickround="M";else if(r>=E1&&n<=19||r>=gh)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(la(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);la(r)||(r=Number(r.substr(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(R1(e.exponentformat)&&!$x(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Ve.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(la(r))return xr.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.substr(1));if(i==="M")return xr.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?iE:nE,s=e+n*.01,u=xr.roundUp(xr.mod(s,1),l,t);return Math.floor(s)+Math.log(di.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Ve.tickFirst=function(e,r){var t=e.r2l||Number,a=xr.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&x<=e._length?y:null};if(i&&xr.isArrayOrTypedArray(e.ticktext)){var c=xr.simpleMap(e.range,e.r2l),v=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(u=0;u"+l;else{var u=_h(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}r.text=o}function Sve(e,r,t,a,n){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=xh(Math.pow(10,o),e,n,a);else if(la(i)||s==="D"&&(e.minorloglabels==="complete"||xr.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(xr.mod(o+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),v=+c[1],d=Math.abs(v),p=e.exponentformat;p==="power"||R1(p)&&$x(v)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),v!==0&&v!==1&&(r.text+=""+(v>0?"":cu)+d+""),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(v>0?"+":cu)+d:(r.text=xh(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,xr.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var m=String(r.text).charAt(0);(m==="0"||m==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function qve(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Lve(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function Cve(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=xh(r.x,e,n,a)}function Eve(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=Dve(i);if(o[1]>=100)r.text=xh(xr.deg2rad(r.x),e,n,a);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=cu+r.text)}}}else r.text=xh(r.x,e,n,a)}function Dve(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function a(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var n=a(e),i=e*n,o=Math.abs(t(i,n));return[Math.round(i/o),Math.round(n/o)]}var Rve=["f","p","n","\u03BC","m","","k","M","G","T"];function R1(e){return e==="SI"||e==="B"}function $x(e){return e>14||e<-15}function xh(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=Ve.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:la(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};oE(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,cu);var c=Math.pow(10,-i)/2;if(o==="none"&&(l=0),e=Math.abs(e),e"+p+"":o==="B"&&l===9?e+="B":R1(o)&&(e+=Rve[l/3+5])}return n?cu+e:e}Ve.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*$f}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),v=f.indexOf(u.charAt(0));return c===v?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-v}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},v=u[0],d=u[1];return(!v&&typeof v!="number"||c(v)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,v=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||v)&&(c||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var l={false:{left:0,right:0}};return xr.syncOrAsync(n.map(function(s){return function(){if(s){var u=Ve.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=Ve.drawOne(e,u,t);return u._shiftPusher&&Xx(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=xr.simpleMap(u._r,u.r2l),f}}}))};Ve.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=Ve.counterLetter(u),v=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!v)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),Xx(r,p,a,!0),Xx(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=Wve(r,a));var m=v[f+"axislayer"],y=r._mainLinePosition,x=y+=r._shift,w=r._mainMirrorPosition,_=r._vals=Ve.calcTicks(r),b=[r.mirror,x,w].join("_");for(i=0;i<_.length;i++)_[i].axInfo=b;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var T={};function k(Re){var ze=u+(Re||"tick");return T[ze]||(T[ze]=zve(r,ze,x)),T[ze]}if(r.visible){var M=Ve.makeTransTickFn(r),S=Ve.makeTransTickLabelFn(r),E,D,P=r.ticks==="inside",R=r.ticks==="outside";if(r.tickson==="boundaries"){var z=Pve(r,_);D=Ve.clipEnds(r,z),E=P?D:z}else D=Ve.clipEnds(r,_),E=P&&r.ticklabelmode!=="period"?D:_;var O=r._gridVals=D,B=Nve(r,_);if(!s._hasOnlyLargeSploms){var V=r._subplotsWith,G={};for(i=0;i0?De.bottom-Ge:0,He))));var Ae=0,je=0;if(r._shiftPusher&&(Ae=Math.max(He,De.height>0?Re==="l"?Ge-De.left:De.right-Ge:0),r.title.text!==s._dfltTitle[f]&&(je=(r._titleStandoff||0)+(r._titleScoot||0),Re==="l"&&(je+=eE(r))),r._fullDepth=Math.max(Ae,je)),r.automargin){Ie={x:0,y:0,r:0,l:0,t:0,b:0};var ur=[0,1],lr=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Re==="b"?Ie[Re]=r._depth:(Ie[Re]=r._depth=Math.max(De.width>0?Ge-De.top:0,He),ur.reverse()),De.width>0){var fe=De.right-(r._offset+r._length);fe>0&&(Ie.xr=1,Ie.r=fe);var qe=r._offset-De.left;qe>0&&(Ie.xl=0,Ie.l=qe)}}else if(Re==="l"?(r._depth=Math.max(De.height>0?Ge-De.left:0,He),Ie[Re]=r._depth-lr):(r._depth=Math.max(De.height>0?De.right-Ge:0,He),Ie[Re]=r._depth+lr,ur.reverse()),De.height>0){var Oe=De.bottom-(r._offset+r._length);Oe>0&&(Ie.yb=0,Ie.b=Oe);var Ze=r._offset-De.top;Ze>0&&(Ie.yt=1,Ie.t=Ze)}Ie[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[ur[0]],r.title.text!==s._dfltTitle[f]&&(Ie[Re]+=eE(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Be={x:0,y:0,r:0,l:0,t:0,b:0},Be[ze]=r.linewidth,r.mirror&&r.mirror!==!0&&(Be[ze]+=He),r.mirror===!0||r.mirror==="ticks"?Be[c]=r._anchorAxis.domain[ur[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Be[c]=[r._counterDomainMin,r._counterDomainMax][ur[1]]))}Ne&&(ue=yh.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(QC(Ie,r.automargin),QC(Be,r.automargin)),Xf.autoMargin(e,Kx(r),Ie),Xf.autoMargin(e,uE(r),Be),Xf.autoMargin(e,fE(r),ue)}),xr.syncOrAsync(ye)}};function QC(e,r){if(e){var t=Object.keys(WC).reduce(function(a,n){return r.indexOf(n)!==-1&&WC[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function Pve(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(xr.extendFlat({},i,{x:l}))};if(r.length){for(a=0;ae.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var u=o?-1:1;t=t*u}if(a){var f=e.side,c=l&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(v){return Jf(n+e._offset+e.l2p(jx(v))+t,i+a)}:function(v){return Jf(i+a,n+e._offset+e.l2p(jx(v))+t)}};function jx(e){return e.periodX!==void 0?e.periodX:e.x}function Ive(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),o=a("right"),l=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(l||i||n||o);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,v=D1,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*vu,v+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,v+=D1),s&&f==="top"&&(v-=d*(1-vu)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(v=-v),[u?c:0,s?v:0]}Ve.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};Ve.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(z){return a.indexOf(z)!==-1},o=i("top"),l=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||l||o||s),c=i("inside"),v=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,m=v?e.ticklen:0;if(c?m*=-1:f&&(m=0),v&&(d+=m,t)){var y=xr.deg2rad(t);d=m*Math.cos(y)+1,p=m*Math.sin(y)}e.showticklabels&&(v||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var x={labelStandoff:d,labelShift:p},w,_,b,T,k=0,M=e.side,S=e._id.charAt(0),E=e.tickangle,D;if(S==="x")D=!c&&M==="bottom"||c&&M==="top",T=D?1:-1,c&&(T*=-1),w=p*T,_=r+d*T,b=D?1:-.2,Math.abs(E)===90&&(c?b+=ph:E===-90&&M==="bottom"?b=vu:E===90&&M==="top"?b=ph:b=.5,k=ph/2*(E/90)),x.xFn=function(z){return z.dx+w+k*z.fontSize},x.yFn=function(z){return z.dy+_+z.fontSize*b},x.anchorFn=function(z,O){if(f){if(l)return"end";if(s)return"start"}return!la(O)||O===0||O===180?"middle":O*T<0!==c?"end":"start"},x.heightFn=function(z,O,B){return O<-60||O>60?-.5*B:e.side==="top"!==c?-B:0};else if(S==="y"){if(D=!c&&M==="left"||c&&M==="right",T=D?1:-1,c&&(T*=-1),w=d,_=p*T,b=0,!c&&Math.abs(E)===90&&(E===-90&&M==="left"||E===90&&M==="right"?b=vu:b=.5),c){var P=la(E)?+E:0;if(P!==0){var R=xr.deg2rad(P);k=Math.abs(Math.sin(R))*vu*T,b=0}}x.xFn=function(z){return z.dx+r-(w+z.fontSize*b)*T+k*z.fontSize},x.yFn=function(z){return z.dy+_+z.fontSize*ph},x.anchorFn=function(z,O){return la(O)&&Math.abs(O)===90?"middle":D?"end":"start"},x.heightFn=function(z,O,B){return e.side==="right"&&(O*=-1),O<-30?-B:O<30?-.5*B:0}}return x};function N1(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Ve.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,N1);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return mh.stroke(di.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return jn.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),z1(r,[rE]),i.attr("transform",t.transFn)};Ve.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(x){return x.minor}):[],o=r.showgrid?t.vals.filter(function(x){return!x.minor}):[],l=t.counterAxis;if(l&&Ve.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",u=0;u=0;p--){var m=p?v:d;if(m){var y=m.selectAll("path."+a).data(p?o:i,N1);y.exit().remove(),y.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(x){return mh.stroke(di.select(this),x.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(x){return jn.dashStyle(x.minor?r.minor.griddash:r.griddash,x.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(x){return(x.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}z1(r,[Vx,Wx])}};Ve.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Ve.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return pve(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(mh.stroke,r.zerolinecolor||mh.defaultLine).style("stroke-width",jn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),z1(r,[Yx])};Ve.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",o=t.cls||n+"tick",l=t.vals.filter(function(Y){return Y.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],N1),v=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(Y){var J=di.select(this),Z=e._promises.length;J.call(fu.positionText,s.xFn(Y),s.yFn(Y)).call(jn.font,{family:Y.font,size:Y.fontSize,color:Y.fontColor,weight:Y.fontWeight,style:Y.fontStyle,variant:Y.fontVariant,textcase:Y.fontTextcase,lineposition:Y.fontLineposition,shadow:Y.fontShadow}).text(Y.text).call(fu.convertToTspans,e),e._promises[Z]?v.push(e._promises.pop().then(function(){d(J,u)})):d(J,u)}),z1(r,[VC]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(Y){di.select(this).select("text").call(fu.positionText,s.xFn(Y),s.yFn(Y))});function d(Y,J){Y.each(function(Z){var re=di.select(this),se=re.select(".text-math-group"),oe=s.anchorFn(Z,J),ce=t.transFn.call(re.node(),Z)+(la(J)&&+J!=0?" rotate("+J+","+s.xFn(Z)+","+(s.yFn(Z)-Z.fontSize/2)+")":""),K=fu.lineCount(re),Te=bh*Z.fontSize,le=s.heightFn(Z,la(J)?+J:0,(K-1)*Te);if(le&&(ce+=Jf(0,le)),se.empty()){var ve=re.select("text");ve.attr({transform:ce,"text-anchor":oe}),ve.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ie=jn.bBox(se.node()).width,pe=ie*{end:-.5,start:.5}[oe];se.attr("transform",ce+Jf(pe,0))}})}r._adjustTickLabelsOverflow=function(){var Y=r.ticklabeloverflow;if(!(!Y||Y==="allow")){var J=Y.indexOf("hide")!==-1,Z=r._id.charAt(0)==="x",re=0,se=Z?e._fullLayout.width:e._fullLayout.height;if(Y.indexOf("domain")!==-1){var oe=xr.simpleMap(r.range,r.r2l);re=r.l2p(oe[0])+r._offset,se=r.l2p(oe[1])+r._offset}var ce=Math.min(re,se),K=Math.max(re,se),Te=r.side,le=1/0,ve=-1/0;c.each(function(Q){var j=di.select(this),me=j.select(".text-math-group");if(me.empty()){var _e=jn.bBox(j.node()),ye=0;Z?(_e.right>K||_e.leftK||_e.top+(r.tickangle?0:Q.fontSize/4)r["_visibleLabelMin_"+oe._id]?j.style("display","none"):K.K==="tick"&&!ce&&j.node().style.display!=="none"&&j.style("display",null)})})})})},d(c,f+1?f:u);function p(){return v.length&&Promise.all(v)}var m=null;function y(){if(d(c,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){m=r.autotickangles[0];var Y=0,J=[],Z,re=1;c.each(function(Ie){Y=Math.max(Y,Ie.fontSize);var Be=r.l2p(Ie.x),ue=Zx(this),Ae=jn.bBox(ue.node());re=Math.max(re,fu.lineCount(ue)),J.push({top:0,bottom:10,height:10,left:Be-Ae.width/2,right:Be+Ae.width/2+2,width:Ae.width+2})});var se=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,oe=l.length,ce=Math.abs((l[oe-1].x-l[0].x)*r._m)/(oe-1),K=se?ce/2:ce,Te=se?r.ticklen:Y*1.25*re,le=Math.sqrt(Math.pow(K,2)+Math.pow(Te,2)),ve=K/le,ie=r.autotickangles.map(function(Ie){return Ie*Math.PI/180}),pe=ie.find(function(Ie){return Math.abs(Math.cos(Ie))<=ve});pe===void 0&&(pe=ie.reduce(function(Ie,Be){return Math.abs(Math.cos(Ie))V*B&&(R=B,E[S]=D[S]=z[S])}var G=Math.abs(R-P);G-T>0?(G-=T,T*=1+T/G):T=0,r._id.charAt(0)!=="y"&&(T=-T),E[M]=_.p2r(_.r2p(D[M])+k*T),_.autorange==="min"||_.autorange==="max reversed"?(E[0]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0):(_.autorange==="max"||_.autorange==="min reversed")&&(E[1]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[_._name+".range"]=E}var U=xr.syncOrAsync(x);return U&&U.then&&e._promises.push(U),U};function Ove(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,N1);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(mh.stroke,r.dividercolor).style("stroke-width",jn.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Ve.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function eE(e){var r=e.title.font.size,t=(e.title.text.match(fu.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(vu+t*bh):t?r*(t+1)*bh:r}function Bve(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(fu.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*vu:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(ph+l*bh));else{var s=_h(r);if(r.type==="multicategory")o=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),o=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Ve.getPxPosition(e,r),c,v,d;n==="x"?(v=r._offset+r._length/2,d=r.side==="top"?f-o:f+o):(d=r._offset+r._length/2,v=r.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var m=r._selections[r._id+"tick"];if(p={selection:m,side:r.side},m&&m.node()&&m.node().parentNode){var y=jn.getTranslate(m.node().parentNode);p.offsetLeft=y.x,p.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,ove.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:v,y:d,"text-anchor":"middle"}})}Ve.shouldShowZeroLine=function(e,r,t){var a=xr.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===P1)&&(sE(r,0)||!Hve(e,r,t,a)||Uve(e,r))};Ve.clipEnds=function(e,r){return r.filter(function(t){return sE(e,t.x)})};function sE(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=vve:/%L/.test(r)?e>=cve:/%[SX]/.test(r)?e>=E1:/%M/.test(r)?e>=gh:/%[HI]/.test(r)?e>=Do:/%p/.test(r)?e>=es:/%[Aadejuwx]/.test(r)?e>=on:/%[UVW]/.test(r)?e>=Zn:/%[Bbm]/.test(r)?e>=C1:/%[q]/.test(r)?e>=L1:/%[Yy]/.test(r)?e>=q1:!0}});var hE=N((WDe,vE)=>{"use strict";vE.exports=function(r,t,a){var n,i;if(a){var o=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[o?1:0],i=a[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var e5=N((jDe,dE)=>{"use strict";var Zve=hE();dE.exports=function(r,t,a,n){var i=t._template||{},o=t.type||i.type||"-";a("minallowed"),a("maxallowed");var l=a("range");if(!l){var s;!n.noInsiderange&&o!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=a("range",s)))}var u=t.getAutorangeDflt(l,n),f=a("autorange",u),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(l,n),f=a("autorange",u)),f&&(Zve(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var yE=N((ZDe,pE)=>{var Xve={left:0,top:0};pE.exports=Jve;function Jve(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=$ve(r);return t[0]=a-i.left,t[1]=n-i.top,t}function $ve(e){return e===window||e===document||e===document.body?Xve:e.getBoundingClientRect()}});var r5=N((XDe,mE)=>{"use strict";var Kve=zb();function Qve(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}mE.exports=Kve&&Qve()});var bE=N((JDe,gE)=>{"use strict";gE.exports=function(r,t,a,n,i){var o=(r-a)/(n-a),l=o+t/(n-a),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var wE=N(($De,_E)=>{"use strict";var xE=Ce(),ehe=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];_E.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=xE.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=xE.constrain(Math.floor(t*3),0,2),ehe[t][r]}});var AE=N((KDe,TE)=>{"use strict";var rhe=nh(),the=Fp(),ahe=Xv().getGraphDiv,nhe=Vv(),t5=TE.exports={};t5.wrapped=function(e,r,t){e=ahe(e),e._fullLayout&&the.clear(e._fullLayout._uid+nhe.HOVERID),t5.raw(e,r,t)};t5.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&rhe.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var pi=N((QDe,qE)=>{"use strict";var ihe=yE(),a5=Ob(),ohe=r5(),lhe=Ce().removeElement,she=Ea(),hu=qE.exports={};hu.align=bE();hu.getCursor=wE();var kE=AE();hu.unhover=kE.wrapped;hu.unhoverRaw=kE.raw;hu.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,s,u,f,c,v,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,ohe?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function p(_,b,T){return Math.abs(_)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var b;c.target===v?b=c:(b={target:v,srcElement:v,toElement:v},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(T=>{var k=c[T];!b[T]&&typeof k!="function"&&(b[T]=k)})),r.clickFn&&r.clickFn(a,b),d||v.dispatchEvent(new MouseEvent("click",_))}t._dragging=!1,t._dragged=!1}};function SE(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}hu.coverSlip=SE;function ME(e){return ihe(e.changedTouches?e.changedTouches[0]:e,document.body)}});var rs=N((eRe,LE)=>{"use strict";LE.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var DE=N((rRe,EE)=>{"use strict";var n5=rs(),wh="data-savedcursor",CE="!!";EE.exports=function(r,t){var a=r.attr(wh);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var i5=da(),uhe=li();RE.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:uhe.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:i5({editType:"legend"}),grouptitlefont:i5({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:i5({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var O1=N(I1=>{"use strict";I1.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};I1.isVertical=function(r){return r.orientation!=="h"};I1.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1}});var u5=N((nRe,PE)=>{"use strict";var l5=gr(),Xn=Ce(),fhe=At(),che=mn(),vhe=o5(),hhe=Sf(),s5=O1();function dhe(e,r,t,a){var n=r[e]||{},i=fhe.newContainer(t,e);function o(G,U){return Xn.coerce(n,i,vhe,G,U)}var l=Xn.coerceFont(o,"font",t.font);o("bgcolor",t.paper_bgcolor),o("bordercolor");var s=o("visible");if(s){for(var u,f=function(G,U){var Y=u._input,J=u;return Xn.coerce(Y,J,che,G,U)},c=t.font||{},v=Xn.coerceFont(o,"grouptitlefont",c,{overrideDflt:{size:Math.round(c.size*1.1)}}),d=0,p=!1,m="normal",y=(t.shapes||[]).filter(function(G){return G.showlegend}),x=a.concat(y).filter(function(G){return e===(G.legend||"legend")}),w=0;w(e==="legend"?1:0));if(b===!1&&(t[e]=void 0),!(b===!1&&!n.uirevision)&&(o("uirevision",t.uirevision),b!==!1)){o("borderwidth");var T=o("orientation"),k=o("yref"),M=o("xref"),S=T==="h",E=k==="paper",D=M==="paper",P,R,z,O="left";S?(P=0,l5.getComponentMethod("rangeslider","isVisible")(r.xaxis)?E?(R=1.1,z="bottom"):(R=1,z="top"):E?(R=-.1,z="top"):(R=0,z="bottom")):(R=1,z="auto",D?P=1.02:(P=1,O="right")),Xn.coerce(n,i,{x:{valType:"number",editType:"legend",min:D?-2:0,max:D?3:1,dflt:P}},"x"),Xn.coerce(n,i,{y:{valType:"number",editType:"legend",min:E?-2:0,max:E?3:1,dflt:R}},"y"),o("traceorder",m),s5.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",O),o("yanchor",z),o("maxheight",S?.5:1),o("valign"),Xn.noneOrAll(n,i,["x","y"]);var B=o("title.text");if(B){o("title.side",S?"left":"top");var V=Xn.extendFlat({},l,{size:Xn.bigFont(l.size)});Xn.coerceFont(o,"title.font",V)}}}}PE.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n{"use strict";var Kf=gr(),c5=Ce(),phe=c5.pushUnique,f5=!0;FE.exports=function(r,t,a){var n=t._fullLayout;if(t._dragged||t._editing)return;var i=n.legend.itemclick,o=n.legend.itemdoubleclick,l=n.legend.groupclick;a===1&&i==="toggle"&&o==="toggleothers"&&f5&&t.data&&t._context.showTips&&c5.notifier(c5._(t,"Double-click on legend to isolate one trace"),"long"),f5=!1;var s;if(a===1?s=i:a===2&&(s=o),!s)return;var u=l==="togglegroup",f=n.hiddenlabels?n.hiddenlabels.slice():[],c=r.data()[0][0];if(c.groupTitle&&c.noClick)return;var v=t._fullData,d=(n.shapes||[]).filter(function(ze){return ze.showlegend}),p=v.concat(d),m=c.trace;m._isShape&&(m=m._fullInput);var y=m.legendgroup,x,w,_,b,T,k,M={},S=[],E=[],D=[];function P(ze,Ge){var He=S.indexOf(ze),De=M.visible;return De||(De=M.visible=[]),S.indexOf(ze)===-1&&(S.push(ze),He=S.length-1),De[He]=Ge,He}var R=(n.shapes||[]).map(function(ze){return ze._input}),z=!1;function O(ze,Ge){R[ze].visible=Ge,z=!0}function B(ze,Ge){if(!(c.groupTitle&&!u)){var He=ze._fullInput||ze,De=He._isShape,Ie=He.index;Ie===void 0&&(Ie=He._index);var Be=He.visible===!1?!1:Ge;De?O(Ie,Be):P(Ie,Be)}}var V=m.legend,G=m._fullInput,U=G&&G._isShape;if(!U&&Kf.traceIs(m,"pie-like")){var Y=c.label,J=f.indexOf(Y);if(s==="toggle")J===-1?f.push(Y):f.splice(J,1);else if(s==="toggleothers"){var Z=J!==-1,re=[];for(x=0;x{"use strict";zE.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var BE=N((lRe,OE)=>{"use strict";var IE=gr(),h5=O1();OE.exports=function(r,t,a){var n=t._inHover,i=h5.isGrouped(t),o=h5.isReversed(t),l={},s=[],u=!1,f={},c=0,v=0,d,p;function m(G,U,Y){if(t.visible!==!1&&!(a&&G!==t._id))if(U===""||!h5.isGrouped(t)){var J="~~i"+c;s.push(J),l[J]=[Y],c++}else s.indexOf(U)===-1?(s.push(U),u=!0,l[U]=[Y]):l[U].push(Y)}for(d=0;dD&&(E=D)}M[d][0]._groupMinRank=E,M[d][0]._preGroupSort=d}var P=function(G,U){return G[0]._groupMinRank-U[0]._groupMinRank||G[0]._preGroupSort-U[0]._preGroupSort},R=function(G,U){return G.trace.legendrank-U.trace.legendrank||G._preSort-U._preSort};for(M.forEach(function(G,U){G[0]._preGroupSort=U}),M.sort(P),d=0;d{"use strict";var B1=Ce();function HE(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}du.formatPiePercent=function(r,t){var a=HE((r*100).toPrecision(3));return B1.numSeparate(a,t)+"%"};du.formatPieValue=function(r,t){var a=HE(r.toPrecision(10));return B1.numSeparate(a,t)};du.getFirstFilled=function(r,t){if(B1.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var yhe=Wr(),mhe=Tr();UE.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?yhe.pointStyle(r,a,n,t):mhe.fill(r,t.color)}});var U1=N((fRe,WE)=>{"use strict";var YE=Tr(),VE=H1().castOption,ghe=GE();WE.exports=function(r,t,a,n){var i=a.marker.line,o=VE(i.color,t.pts)||YE.defaultLine,l=VE(i.width,t.pts)||0;r.call(ghe,t,a,n).style("stroke-width",l).call(YE.stroke,o)}});var m5=N((cRe,KE)=>{"use strict";var ln=Sr(),d5=gr(),$a=Ce(),jE=$a.strTranslate,Jn=Wr(),yi=Tr(),p5=vi().extractOpts,G1=Dn(),bhe=U1(),xhe=H1().castOption,_he=v5(),ZE=12,XE=5,pu=2,whe=10,Qf=5;KE.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+_he.itemGap*2)/2,s=jE(l,0),u=function(M,S,E,D){var P;if(M+1)P=M;else if(S&&S.width>0)P=S.width;else return 0;return i?D:Math.min(P,E)};r.each(function(M){var S=ln.select(this),E=$a.ensureSingle(S,"g","layers");E.style("opacity",M[0].trace.opacity);var D=a.indentation,P=a.valign,R=M[0].lineHeight,z=M[0].height;if(P==="middle"&&D===0||!R||!z)E.attr("transform",null);else{var O={top:1,bottom:-1}[P],B=O*(.5*(R-z+3))||0,V=a.indentation;E.attr("transform",jE(V,B))}var G=E.selectAll("g.legendfill").data([M]);G.enter().append("g").classed("legendfill",!0);var U=E.selectAll("g.legendlines").data([M]);U.enter().append("g").classed("legendlines",!0);var Y=E.selectAll("g.legendsymbols").data([M]);Y.enter().append("g").classed("legendsymbols",!0),Y.selectAll("g.legendpoints").data([M]).enter().append("g").classed("legendpoints",!0)}).each(k).each(v).each(p).each(d).each(y).each(b).each(_).each(f).each(c).each(x).each(w);function f(M){var S=JE(M),E=S.showFill,D=S.showLine,P=S.showGradientLine,R=S.showGradientFill,z=S.anyFill,O=S.anyLine,B=M[0],V=B.trace,G,U,Y=p5(V),J=Y.colorscale,Z=Y.reversescale,re=function(ve){if(ve.size())if(E)Jn.fillGroupStyle(ve,t,!0);else{var ie="legendfill-"+V.uid;Jn.gradient(ve,t,ie,y5(Z),J,"fill")}},se=function(ve){if(ve.size()){var ie="legendline-"+V.uid;Jn.lineGroupStyle(ve),Jn.gradient(ve,t,ie,y5(Z),J,"stroke")}},oe=G1.hasMarkers(V)||!z?"M5,0":O?"M5,-2":"M5,-3",ce=ln.select(this),K=ce.select(".legendfill").selectAll("path").data(E||R?[M]:[]);if(K.enter().append("path").classed("js-fill",!0),K.exit().remove(),K.attr("d",oe+"h"+o+"v6h-"+o+"z").call(re),D||P){var Te=u(void 0,V.line,whe,XE);U=$a.minExtend(V,{line:{width:Te}}),G=[$a.minExtend(B,{trace:U})]}var le=ce.select(".legendlines").selectAll("path").data(D||P?[G]:[]);le.enter().append("path").classed("js-line",!0),le.exit().remove(),le.attr("d",oe+(P?"l"+o+",0.0001":"h"+o)).call(D?Jn.lineGroupStyle:se)}function c(M){var S=JE(M),E=S.anyFill,D=S.anyLine,P=S.showLine,R=S.showMarker,z=M[0],O=z.trace,B=!R&&!D&&!E&&G1.hasText(O),V,G;function U(K,Te,le,ve){var ie=$a.nestedProperty(O,K).get(),pe=$a.isArrayOrTypedArray(ie)&&Te?Te(ie):ie;if(i&&pe&&ve!==void 0&&(pe=ve),le){if(pele[1])return le[1]}return pe}function Y(K){return z._distinct&&z.index&&K[z.index]?K[z.index]:K[0]}if(R||B||P){var J={},Z={};if(R){J.mc=U("marker.color",Y),J.mx=U("marker.symbol",Y),J.mo=U("marker.opacity",$a.mean,[.2,1]),J.mlc=U("marker.line.color",Y),J.mlw=U("marker.line.width",$a.mean,[0,5],pu),Z.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var re=U("marker.size",$a.mean,[2,16],ZE);J.ms=re,Z.marker.size=re}P&&(Z.line={width:U("line.width",Y,[0,10],XE)}),B&&(J.tx="Aa",J.tp=U("textposition",Y),J.ts=10,J.tc=U("textfont.color",Y),J.tf=U("textfont.family",Y),J.tw=U("textfont.weight",Y),J.ty=U("textfont.style",Y),J.tv=U("textfont.variant",Y),J.tC=U("textfont.textcase",Y),J.tE=U("textfont.lineposition",Y),J.tS=U("textfont.shadow",Y)),V=[$a.minExtend(z,J)],G=$a.minExtend(O,Z),G.selectedpoints=null,G.texttemplate=null}var se=ln.select(this).select("g.legendpoints"),oe=se.selectAll("path.scatterpts").data(R?V:[]);oe.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),oe.exit().remove(),oe.call(Jn.pointStyle,G,t),R&&(V[0].mrc=3);var ce=se.selectAll("g.pointtext").data(B?V:[]);ce.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),ce.exit().remove(),ce.selectAll("text").call(Jn.textPointStyle,G,t)}function v(M){var S=M[0].trace,E=S.type==="waterfall";if(M[0]._distinct&&E){var D=M[0].trace[M[0].dir].marker;return M[0].mc=D.color,M[0].mlw=D.line.width,M[0].mlc=D.line.color,m(M,this,"waterfall")}var P=[];S.visible&&E&&(P=M[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var R=ln.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(P);R.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(z){var O=ln.select(this),B=S[z[0]].marker,V=u(void 0,B.line,Qf,pu);O.attr("d",z[1]).style("stroke-width",V+"px").call(yi.fill,B.color),V&&O.call(yi.stroke,B.line.color)})}function d(M){m(M,this)}function p(M){m(M,this,"funnel")}function m(M,S,E){var D=M[0].trace,P=D.marker||{},R=P.line||{},z=P.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",O=E?D.visible&&D.type===E:d5.traceIs(D,"bar"),B=ln.select(S).select("g.legendpoints").selectAll("path.legend"+E).data(O?[M]:[]);B.enter().append("path").classed("legend"+E,!0).attr("d",z).attr("transform",s),B.exit().remove(),B.each(function(V){var G=ln.select(this),U=V[0],Y=u(U.mlw,P.line,Qf,pu);G.style("stroke-width",Y+"px");var J=U.mcc;if(!a._inHover&&"mc"in U){var Z=p5(P),re=Z.mid;re===void 0&&(re=(Z.max+Z.min)/2),J=Jn.tryColorscale(P,"")(re)}var se=J||U.mc||P.color,oe=P.pattern,ce=Jn.getPatternAttr,K=oe&&(ce(oe.shape,0,"")||ce(oe.path,0,""));if(K){var Te=ce(oe.bgcolor,0,null),le=ce(oe.fgcolor,0,null),ve=oe.fgopacity,ie=$E(oe.size,8,10),pe=$E(oe.solidity,.5,1),W="legend-"+D.uid;G.call(Jn.pattern,"legend",t,W,K,ie,pe,J,oe.fillmode,Te,le,ve)}else G.call(yi.fill,se);Y&&yi.stroke(G,U.mlc||R.color)})}function y(M){var S=M[0].trace,E=ln.select(this).select("g.legendpoints").selectAll("path.legendbox").data(S.visible&&d5.traceIs(S,"box-violin")?[M]:[]);E.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),E.exit().remove(),E.each(function(){var D=ln.select(this);if((S.boxpoints==="all"||S.points==="all")&&yi.opacity(S.fillcolor)===0&&yi.opacity((S.line||{}).color)===0){var P=$a.minExtend(S,{marker:{size:i?ZE:$a.constrain(S.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});E.call(Jn.pointStyle,P,t)}else{var R=u(void 0,S.line,Qf,pu);D.style("stroke-width",R+"px").call(yi.fill,S.fillcolor),R&&yi.stroke(D,S.line.color)}})}function x(M){var S=M[0].trace,E=ln.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(S.visible&&S.type==="candlestick"?[M,M]:[]);E.enter().append("path").classed("legendcandle",!0).attr("d",function(D,P){return P?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(D,P){var R=ln.select(this),z=S[P?"increasing":"decreasing"],O=u(void 0,z.line,Qf,pu);R.style("stroke-width",O+"px").call(yi.fill,z.fillcolor),O&&yi.stroke(R,z.line.color)})}function w(M){var S=M[0].trace,E=ln.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(S.visible&&S.type==="ohlc"?[M,M]:[]);E.enter().append("path").classed("legendohlc",!0).attr("d",function(D,P){return P?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(D,P){var R=ln.select(this),z=S[P?"increasing":"decreasing"],O=u(void 0,z.line,Qf,pu);R.style("fill","none").call(Jn.dashLine,z.line.dash,O),O&&yi.stroke(R,z.line.color)})}function _(M){T(M,this,"pie")}function b(M){T(M,this,"funnelarea")}function T(M,S,E){var D=M[0],P=D.trace,R=E?P.visible&&P.type===E:d5.traceIs(P,E),z=ln.select(S).select("g.legendpoints").selectAll("path.legend"+E).data(R?[M]:[]);if(z.enter().append("path").classed("legend"+E,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),z.exit().remove(),z.size()){var O=P.marker||{},B=u(xhe(O.line.width,D.pts),O.line,Qf,pu),V="pieLike",G=$a.minExtend(P,{marker:{line:{width:B}}},V),U=$a.minExtend(D,{trace:G},V);bhe(z,U,G,t)}}function k(M){var S=M[0].trace,E,D=[];if(S.visible)switch(S.type){case"histogram2d":case"heatmap":D=[["M-15,-2V4H15V-2Z"]],E=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":D=[["M-6,-6V6H6V-6Z"]],E=!0;break;case"densitymapbox":case"densitymap":D=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],E="radial";break;case"cone":D=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],E=!1;break;case"streamtube":D=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],E=!1;break;case"surface":D=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],E=!0;break;case"mesh3d":D=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!1;break;case"volume":D=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!0;break;case"isosurface":D=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],E=!1;break}var P=ln.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(D);P.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(R,z){var O=ln.select(this),B=p5(S),V=B.colorscale,G=B.reversescale,U=function(re){if(re.size()){var se="legendfill-"+S.uid;Jn.gradient(re,t,se,y5(G,E==="radial"),V,"fill")}},Y;if(V){if(!E){var Z=V.length;Y=z===0?V[G?Z-1:0][1]:z===1?V[G?0:Z-1][1]:V[Math.floor((Z-1)/2)][1]}}else{var J=S.vertexcolor||S.facecolor||S.color;Y=$a.isArrayOrTypedArray(J)?J[z]||J[0]:J}O.attr("d",R[0]),Y?O.call(yi.fill,Y):O.call(U)})}};function y5(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function JE(e){var r=e[0].trace,t=r.contours,a=G1.hasLines(r),n=G1.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function $E(e,r,t){return e&&$a.isArrayOrTypedArray(e)?r:e>t?t:e}});var _5=N((vRe,sD)=>{"use strict";var Rn=Sr(),sa=Ce(),b5=aa(),tc=gr(),QE=nh(),g5=pi(),ua=Wr(),V1=Tr(),yu=Da(),eD=NE(),ya=v5(),x5=Xa(),oD=x5.LINE_SPACING,rc=x5.FROM_TL,rD=x5.FROM_BR,tD=BE(),The=m5(),aD=O1(),ec=1,Ahe=/^legend[0-9]*$/;sD.exports=function(r,t){if(t)nD(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Rn.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(Ahe)&&n.indexOf(c)===-1&&u.remove()});for(var o=0;o1)}var p=a.hiddenlabels||[];if(!l&&(!a.showlegend||!s.length))return o.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),b5.autoMargin(e,n);var m=sa.ensureSingle(o,"g",n,function(S){l||S.attr("pointer-events","all")}),y=sa.ensureSingleById(a._topdefs,"clipPath",i,function(S){S.append("rect")}),x=sa.ensureSingle(m,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});x.call(V1.stroke,t.bordercolor).call(V1.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var w=sa.ensureSingle(m,"g","scrollbox"),_=t.title;t._titleWidth=0,t._titleHeight=0;var b;_.text?(b=sa.ensureSingle(w,"text",n+"titletext"),b.attr("text-anchor","start").call(ua.font,_.font).text(_.text),W1(b,w,e,t,ec)):w.selectAll("."+n+"titletext").remove();var T=sa.ensureSingle(m,"rect","scrollbar",function(S){S.attr(ya.scrollBarEnterAttrs).call(V1.fill,ya.scrollBarColor)}),k=w.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var M=k.selectAll("g.traces").data(sa.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(S){var E=S[0].trace;return tc.traceIs(E,"pie-like")?p.indexOf(S[0].label)!==-1?.5:1:E.visible==="legendonly"?.5:1}).each(function(){Rn.select(this).call(khe,e,t)}).call(The,e,t).each(function(){l||Rn.select(this).call(She,e,n)}),sa.syncOrAsync([b5.previousPromises,function(){return Che(e,k,M,t)},function(){var S=a._size,E=t.borderwidth,D=t.xref==="paper",P=t.yref==="paper";if(_.text&&Mhe(b,t,E),!l){var R,z;D?R=S.l+S.w*t.x-rc[j1(t)]*t._width:R=a.width*t.x-rc[j1(t)]*t._width,P?z=S.t+S.h*(1-t.y)-rc[Z1(t)]*t._effHeight:z=a.height*(1-t.y)-rc[Z1(t)]*t._effHeight;var O=Ehe(e,n,R,z);if(O)return;if(a.margin.autoexpand){var B=R,V=z;R=D?sa.constrain(R,0,a.width-t._width):B,z=P?sa.constrain(z,0,a.height-t._effHeight):V,R!==B&&sa.log("Constrain "+n+".x to make legend fit inside graph"),z!==V&&sa.log("Constrain "+n+".y to make legend fit inside graph")}ua.setTranslate(m,R,z)}if(T.on(".drag",null),m.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var G=t._effHeight;l&&(G=t._height),x.attr({width:t._width-E,height:G-E,x:E/2,y:E/2}),ua.setTranslate(w,0,0),y.select("rect").attr({width:t._width-2*E,height:G-2*E,x:E,y:E}),ua.setClipUrl(w,i,e),ua.setRect(T,0,0,0,0),delete t._scrollY}else{var U=Math.max(ya.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),Y=t._effHeight-U-2*ya.scrollBarMargin,J=t._height-t._effHeight,Z=Y/J,re=Math.min(t._scrollY||0,J);x.attr({width:t._width-2*E+ya.scrollBarWidth+ya.scrollBarMargin,height:t._effHeight-E,x:E/2,y:E/2}),y.select("rect").attr({width:t._width-2*E+ya.scrollBarWidth+ya.scrollBarMargin,height:t._effHeight-2*E,x:E,y:E+re}),ua.setClipUrl(w,i,e),ie(re,U,Z),m.on("wheel",function(){re=sa.constrain(t._scrollY+Rn.event.deltaY/Y*J,0,J),ie(re,U,Z),re!==0&&re!==J&&Rn.event.preventDefault()});var se,oe,ce,K=function(me,_e,ye){var Pe=(ye-_e)/Z+me;return sa.constrain(Pe,0,J)},Te=function(me,_e,ye){var Pe=(_e-ye)/Z+me;return sa.constrain(Pe,0,J)},le=Rn.behavior.drag().on("dragstart",function(){var me=Rn.event.sourceEvent;me.type==="touchstart"?se=me.changedTouches[0].clientY:se=me.clientY,ce=re}).on("drag",function(){var me=Rn.event.sourceEvent;me.buttons===2||me.ctrlKey||(me.type==="touchmove"?oe=me.changedTouches[0].clientY:oe=me.clientY,re=K(ce,se,oe),ie(re,U,Z))});T.call(le);var ve=Rn.behavior.drag().on("dragstart",function(){var me=Rn.event.sourceEvent;me.type==="touchstart"&&(se=me.changedTouches[0].clientY,ce=re)}).on("drag",function(){var me=Rn.event.sourceEvent;me.type==="touchmove"&&(oe=me.changedTouches[0].clientY,re=Te(ce,se,oe),ie(re,U,Z))});w.call(ve)}function ie(me,_e,ye){t._scrollY=e._fullLayout[n]._scrollY=me,ua.setTranslate(w,0,-me),ua.setRect(T,t._width,ya.scrollBarMargin+me*ye,ya.scrollBarWidth,_e),y.select("rect").attr("y",E+me)}if(e._context.edits.legendPosition){var pe,W,Q,j;m.classed("cursor-move",!0),g5.init({element:m.node(),gd:e,prepFn:function(me){if(me.target!==T.node()){var _e=ua.getTranslate(m);Q=_e.x,j=_e.y}},moveFn:function(me,_e){if(Q!==void 0&&j!==void 0){var ye=Q+me,Pe=j+_e;ua.setTranslate(m,ye,Pe),pe=g5.align(ye,t._width,S.l,S.l+S.w,t.xanchor),W=g5.align(Pe+t._height,-t._height,S.t+S.h,S.t,t.yanchor)}},doneFn:function(){if(pe!==void 0&&W!==void 0){var me={};me[n+".x"]=pe,me[n+".y"]=W,tc.call("_guiRelayout",e,me)}},clickFn:function(me,_e){var ye=o.selectAll("g.traces").filter(function(){var Pe=this.getBoundingClientRect();return _e.clientX>=Pe.left&&_e.clientX<=Pe.right&&_e.clientY>=Pe.top&&_e.clientY<=Pe.bottom});ye.size()>0&&lD(e,m,ye,me,_e)}})}}],e)}}function Y1(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,o=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||n)}function lD(e,r,t,a,n){var i=t.data()[0][0].trace,o={event:n,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(o.group=i._group),tc.traceIs(i,"pie-like")&&(o.label=t.datum()[0].label);var l=QE.triggerHandler(e,"plotly_legendclick",o);if(a===1){if(l===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&eD(t,e,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var s=QE.triggerHandler(e,"plotly_legenddoubleclick",o);s!==!1&&l!==!1&&eD(t,e,a)}}function khe(e,r,t){var a=X1(t),n=e.data()[0][0],i=n.trace,o=tc.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=o?n.label:i.name,i._meta&&(u=sa.templateString(u,i._meta))));var c=sa.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(ua.font,f).text(l?iD(u,s):u);var v=t.indentation+t.itemwidth+ya.itemGap*2;yu.positionText(c,v,0),l?c.call(yu.makeEditable,{gd:r,text:u}).call(W1,e,r,t).on("edit",function(d){this.text(iD(d,s)).call(W1,e,r,t);var p=n.trace._fullInput||{},m={};return m.name=d,p._isShape?tc.call("_guiRelayout",r,"shapes["+i.index+"].name",m.name):tc.call("_guiRestyle",r,m,i.index)}):W1(c,e,r,t)}function iD(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function She(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=sa.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(V1.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),lD(r,l,e,i,Rn.event)}}))}function W1(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),yu.convertToTspans(e,t,function(){qhe(r,t,a,n)})}function qhe(e,r,t,a){var n=e.data()[0][0];if(!t._inHover&&n&&!n.trace.showlegend){e.remove();return}var i=e.select("g[class*=math-group]"),o=i.node(),l=X1(t);t||(t=r._fullLayout[l]);var s=t.borderwidth,u;a===ec?u=t.title.font:n.groupTitle?u=n.groupTitle.font:u=t.font;var f=u.size*oD,c,v;if(o){var d=ua.bBox(o);c=d.height,v=d.width,a===ec?ua.setTranslate(i,s,s+c*.75):ua.setTranslate(i,0,c*.25)}else{var p="."+l+(a===ec?"title":"")+"text",m=e.select(p),y=yu.lineCount(m),x=m.node();if(c=f*y,v=x?ua.bBox(x).width:0,a===ec)t.title.side==="left"&&(v+=ya.itemGap*2),yu.positionText(m,s+ya.titlePad,s+f);else{var w=ya.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(w=ya.itemGap,v-=t.indentation+t.itemwidth),yu.positionText(m,w,-f*((y-1)/2-.3))}}a===ec?(t._titleWidth=v,t._titleHeight=c):(n.lineHeight=f,n.height=Math.max(c,16)+3,n.width=v)}function Lhe(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function Che(e,r,t,a){var n=e._fullLayout,i=X1(a);a||(a=n[i]);var o=n._size,l=aD.isVertical(a),s=aD.isGrouped(a),u=a.entrywidthmode==="fraction",f=a.borderwidth,c=2*f,v=ya.itemGap,d=a.indentation+a.itemwidth+v*2,p=2*(f+v),m=Z1(a),y=a.y<0||a.y===0&&m==="top",x=a.y>1||a.y===1&&m==="bottom",w=a.tracegroupgap,_={},{maxheight:b,orientation:T,yref:k}=a,M=T==="v"&&k==="paper"?o.h:n.height;a._maxHeight=Math.max(b>1?b:b*M,30);var S=0;a._width=0,a._height=0;var E=Lhe(a);if(l)t.each(function(ve){var ie=ve[0].height;ua.setTranslate(this,f+E[0],f+E[1]+a._height+ie/2+v),a._height+=ie,a._width=Math.max(a._width,ve[0].width)}),S=d+a._width,a._width+=v+d+c,a._height+=p,s&&(r.each(function(ve,ie){ua.setTranslate(this,0,ie*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var D=j1(a),P=a.x<0||a.x===0&&D==="right",R=a.x>1||a.x===1&&D==="left",z=x||y,O=n.width/2;a._maxWidth=Math.max(P?z&&D==="left"?o.l+o.w:O:R?z&&D==="right"?o.r+o.w:O:o.w,2*d);var B=0,V=0;t.each(function(ve){var ie=Y1(ve,a,d);B=Math.max(B,ie),V+=ie}),S=null;var G=0;if(s){var U=0,Y=0,J=0;r.each(function(){var ve=0,ie=0;Rn.select(this).selectAll("g.traces").each(function(W){var Q=Y1(W,a,d),j=W[0].height;ua.setTranslate(this,E[0],E[1]+f+v+j/2+ie),ie+=j,ve=Math.max(ve,Q),_[W[0].trace.legendgroup]=ve});var pe=ve+v;Y>0&&pe+f+Y>a._maxWidth?(G=Math.max(G,Y),Y=0,J+=U+w,U=ie):U=Math.max(U,ie),ua.setTranslate(this,Y,J),Y+=pe}),a._width=Math.max(G,Y)+f,a._height=J+U+p}else{var Z=t.size(),re=V+c+(Z-1)*v=a._maxWidth&&(G=Math.max(G,K),oe=0,ce+=se,a._height+=se,se=0),ua.setTranslate(this,E[0]+f+oe,E[1]+f+ce+ie/2+v),K=oe+pe+v,oe+=W,se=Math.max(se,ie)}),re?(a._width=oe+c,a._height=se+p):(a._width=Math.max(G,K)+c,a._height+=se+p)}}a._width=Math.ceil(Math.max(a._width+E[0],a._titleWidth+2*(f+ya.titlePad))),a._height=Math.ceil(Math.max(a._height+E[1],a._titleHeight+2*(f+ya.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var Te=e._context.edits,le=Te.legendText||Te.legendPosition;t.each(function(ve){var ie=Rn.select(this).select("."+i+"toggle"),pe=ve[0].height,W=ve[0].trace.legendgroup,Q=Y1(ve,a,d);s&&W!==""&&(Q=_[W]);var j=le?d:S||Q;!l&&!u&&(j+=v/2),ua.setRect(ie,0,-pe/2,j,pe)})}function Ehe(e,r,t,a){var n=e._fullLayout,i=n[r],o=j1(i),l=Z1(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",v={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return b5.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*rc[o],r:i._width*rD[o],b:i._effHeight*rD[l],t:i._effHeight*rc[l]});s?e._fullLayout._reservedMargin[r][f]=v[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=v[c]:e._fullLayout._reservedMargin[r][f]=v[f]}function j1(e){return sa.isRightAnchor(e)?"right":sa.isCenterAnchor(e)?"center":"left"}function Z1(e){return sa.isBottomAnchor(e)?"bottom":sa.isMiddleAnchor(e)?"middle":"top"}function X1(e){return e._id||"legend"}});var M5=N(A5=>{"use strict";var mu=Sr(),cl=Rr(),uD=kn(),Ut=Ce(),Dhe=Ut.pushUnique,w5=Ut.strTranslate,Rhe=Ut.strRotate,Phe=nh(),mi=Da(),Fhe=DE(),Ro=Wr(),Ma=Tr(),J1=pi(),Po=Ir(),Nhe=Ea().zindexSeparator,nc=gr(),to=qo(),gu=Vv(),zhe=u5(),Ihe=_5(),mD=gu.YANGLE,T5=Math.PI*mD/180,Ohe=1/Math.sin(T5),Bhe=Math.cos(T5),Hhe=Math.sin(T5),Dt=gu.HOVERARROWSIZE,Yr=gu.HOVERTEXTPAD,fD={box:!0,ohlc:!0,violin:!0,candlestick:!0},Uhe={scatter:!0,scattergl:!0,splom:!0};function cD(e,r){return e.distance-r.distance}A5.hover=function(r,t,a,n){r=Ut.getGraphDiv(r);var i=t.target;Ut.throttle(r._fullLayout._uid+gu.HOVERID,gu.HOVERMINTIME,function(){Ghe(r,t,a,n,i)})};A5.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=wD(n),o=TD(n),l=r.map(function(y){var x=y._x0||y.x0||y.x||0,w=y._x1||y.x1||y.x||0,_=y._y0||y.y0||y.y||0,b=y._y1||y.y1||y.y||0,T=y.eventData;if(T){var k=Math.min(x,w),M=Math.max(x,w),S=Math.min(_,b),E=Math.max(_,b),D=y.trace;if(nc.traceIs(D,"gl3d")){var P=n._fullLayout[D.scene]._scene.container,R=P.offsetLeft,z=P.offsetTop;k+=R,M+=R,S+=z,E+=z}T.bbox={x0:k+o,x1:M+o,y0:S+i,y1:E+i},t.inOut_bbox&&t.inOut_bbox.push(T.bbox)}else T=!1;return{color:y.color||Ma.defaultLine,x0:y.x0||y.x||0,x1:y.x1||y.x||0,y0:y.y0||y.y||0,y1:y.y1||y.y||0,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:y.text,name:y.name,idealAlign:y.idealAlign,borderColor:y.borderColor,fontFamily:y.fontFamily,fontSize:y.fontSize,fontColor:y.fontColor,fontWeight:y.fontWeight,fontStyle:y.fontStyle,fontVariant:y.fontVariant,nameLength:y.nameLength,textAlign:y.textAlign,trace:y.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:y.hovertemplate||!1,hovertemplateLabels:y.hovertemplateLabels||!1,eventData:T}}),s=!1,u=bD(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||Ma.background,container:mu.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,c=5,v=0,d=0;f.sort(function(y,x){return y.y0-x.y0}).each(function(y,x){var w=y.y0-y.by/2;w-cM[0]._length||j<0||j>S[0]._length)return J1.unhoverRaw(e,r)}if(r.pointerX=Q+M[0]._offset,r.pointerY=j+S[0]._offset,"xval"in r?V=to.flat(i,r.xval):V=to.p2c(M,Q),"yval"in r?G=to.flat(i,r.yval):G=to.p2c(S,j),!cl(V[0])||!cl(G[0]))return Ut.warn("Fx.hover failed",r,e),J1.unhoverRaw(e,r)}var ye=1/0;function Pe(br,yt){for(Y=0;Yle&&(O.splice(0,le),ye=O[0].distance),c&&z!==0&&O.length===0){Te.distance=z,Te.index=!1;var ct=Z._module.hoverPoints(Te,ce,K,"closest",{hoverLayer:l._hoverlayer});if(ct&&(ct=ct.filter(function(ft){return ft.spikeDistance<=z})),ct&&ct.length){var xa,$t=ct.filter(function(ft){return ft.xa.showspikes&&ft.xa.spikesnap!=="hovered data"});if($t.length){var tn=$t[0];cl(tn.x0)&&cl(tn.y0)&&(xa=Re(tn),(!ve.vLinePoint||ve.vLinePoint.spikeDistance>xa.spikeDistance)&&(ve.vLinePoint=xa))}var wn=ct.filter(function(ft){return ft.ya.showspikes&&ft.ya.spikesnap!=="hovered data"});if(wn.length){var Kt=wn[0];cl(Kt.x0)&&cl(Kt.y0)&&(xa=Re(Kt),(!ve.hLinePoint||ve.hLinePoint.spikeDistance>xa.spikeDistance)&&(ve.hLinePoint=xa))}}}}}Pe();function Ne(br,yt,Nr){for(var ut=null,Pt=1/0,Qr,ct=0;ct0&&Math.abs(br.distance)qe-1;$e--)hr(O[$e]);O=Ue,De()}var Fe=e._hoverdata,ne=[],de=wD(e),Ee=TD(e);for(U=0;U1||O.length>1)||v==="closest"&&ie&&O.length>1,Xt=Ma.combine(l.plot_bgcolor||Ma.background,l.paper_bgcolor),Jt=bD(O,{gd:e,hovermode:v,rotateLabels:pt,bgColor:Xt,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),It=Jt.hoverLabels;if(to.isUnifiedHover(v)||(Vhe(It,pt,l,Jt.commonLabelBoundingBox),_D(It,pt,l._invScaleX,l._invScaleY)),n&&n.tagName){var za=nc.getComponentMethod("annotations","hasClickToShow")(e,ne);Fhe(mu.select(n),za?"pointer":"")}!n||a||!Zhe(e,r,Fe)||(Fe&&e.emit("plotly_unhover",{event:r,points:Fe}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:M,yaxes:S,xvals:V,yvals:G}))}function gD(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Yhe=/([\s\S]*)<\/extra>/;function bD(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||gu.HOVERFONT,c=r.fontSize||gu.HOVERFONTSIZE,v=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,p=r.fontVariant||a.font.variant,m=r.fontTextcase||a.font.textcase,y=r.fontLineposition||a.font.lineposition,x=r.fontShadow||a.font.shadow,w=e[0],_=w.xa,b=w.ya,T=n.charAt(0),k=T+"Label",M=w[k];if(M===void 0&&_.type==="multicategory")for(var S=0;Sa.width-Ee&&(Le=a.width-Ee),qe.attr("d","M"+(Fe-Le)+",0L"+(Fe-Le+Dt)+","+de+Dt+"H"+Ee+"v"+de+(Yr*2+$e.height)+"H"+-Ee+"V"+de+Dt+"H"+(Fe-Le-Dt)+"Z"),Fe=Le,Y.minX=Fe-Ee,Y.maxX=Fe+Ee,_.side==="top"?(Y.minY=ne-(Yr*2+$e.height),Y.maxY=ne-Yr):(Y.minY=ne+Yr,Y.maxY=ne+(Yr*2+$e.height))}else{var ar,sr,nr;b.side==="right"?(ar="start",sr=1,nr="",Fe=_._offset+_._length):(ar="end",sr=-1,nr="-",Fe=_._offset),ne=b._offset+(w.y0+w.y1)/2,Oe.attr("text-anchor",ar),qe.attr("d","M0,0L"+nr+Dt+","+Dt+"V"+(Yr+$e.height/2)+"h"+nr+(Yr*2+$e.width)+"V-"+(Yr+$e.height/2)+"H"+nr+Dt+"V-"+Dt+"Z"),Y.minY=ne-(Yr+$e.height/2),Y.maxY=ne+(Yr+$e.height/2),b.side==="right"?(Y.minX=Fe+Dt,Y.maxX=Fe+Dt+(Yr*2+$e.width)):(Y.minX=Fe-Dt-(Yr*2+$e.width),Y.maxX=Fe-Dt);var Mr=$e.height/2,Or=D-$e.top-Mr,jr="clip"+a._uid+"commonlabel"+b._id,Vr;if(Fe<$e.width+2*Yr+Dt){Vr="M-"+(Dt+Yr)+"-"+Mr+"h-"+($e.width-Yr)+"V"+Mr+"h"+($e.width-Yr)+"Z";var Yt=$e.width-Fe+Yr;mi.positionText(Oe,Yt,Or),ar==="end"&&Oe.selectAll("tspan").each(function(){var Tt=mu.select(this),pt=Ro.tester.append("text").text(Tt.text()).call(Ro.font,hr),Xt=ac(t,pt.node());Math.round(Xt.width)=0?je=Ie:Be+ye=0?je=Be:ue+ye=0?ur=He:De+Pe=0?ur=De:Ae+Pe=0,(fe.idealAlign==="top"||!Tt)&&pt?(nr-=Or/2,fe.anchor="end"):Tt?(nr+=Or/2,fe.anchor="start"):fe.anchor="middle",fe.crossPos=nr;else{if(fe.pos=nr,Tt=sr+Mr/2+wt<=P,pt=sr-Mr/2-wt>=0,(fe.idealAlign==="left"||!Tt)&&pt)sr-=Mr/2,fe.anchor="end";else if(Tt)sr+=Mr/2,fe.anchor="start";else{fe.anchor="middle";var Xt=wt/2,Jt=sr+Xt-P,It=sr-Xt;Jt>0&&(sr-=Jt),It<0&&(sr+=-It)}fe.crossPos=sr}ne.attr("text-anchor",fe.anchor),Ee&&de.attr("text-anchor",fe.anchor),qe.attr("transform",w5(sr,nr)+(i?Rhe(mD):""))}),{hoverLabels:lr,commonLabelBoundingBox:Y}}function vD(e,r,t,a,n,i){var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Ut.templateString(e.name,e.trace._meta)),o=pD(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?l=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o);var f=e.hovertemplate||!1;if(f){var c=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(c[s+"other"]=c[s+"Val"],c[s+"otherLabel"]=c[s+"Label"]),l=Ut.hovertemplateString(f,c,a._d3locale,e.eventData[0]||{},e.trace._meta),l=l.replace(Yhe,function(v,d){return o=pD(d,e.nameLength),""})}return[l,o]}function Vhe(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),u=new Array(s),f=0,c=a.minX,v=a.maxX,d=a.minY,p=a.maxY,m=function(V){return V*t._invScaleX},y=function(V){return V*t._invScaleY};e.each(function(V){var G=V[n],U=V[i],Y=G._id.charAt(0)==="x",J=G.range;f===0&&J&&J[0]>J[1]!==Y&&(l=-1);var Z=0,re=Y?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var se=xD(V,r),oe=V.anchor,ce=oe==="end"?-1:1,K,Te;if(oe==="middle")K=V.crossPos+(Y?y(se.y-V.by/2):m(V.bx/2+V.tx2width/2)),Te=K+(Y?y(V.by):m(V.bx));else if(Y)K=V.crossPos+y(Dt+se.y)-y(V.by/2-Dt),Te=K+y(V.by);else{var le=m(ce*Dt+se.x),ve=le+m(ce*V.bx);K=V.crossPos+Math.min(le,ve),Te=V.crossPos+Math.max(le,ve)}Y?d!==void 0&&p!==void 0&&Math.min(Te,p)-Math.max(K,d)>1&&(U.side==="left"?(Z=U._mainLinePosition,re=t.width):re=U._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(Te,v)-Math.max(K,c)>1&&(U.side==="top"?(Z=U._mainLinePosition,re=t.height):re=U._mainLinePosition)}u[f++]=[{datum:V,traceIndex:V.trace.index,dp:0,pos:V.pos,posref:V.posref,size:V.by*(Y?Ohe:1)/2,pmin:Z,pmax:re}]}),u.sort(function(V,G){return V[0].posref-G[0].posref||l*(G[0].traceIndex-V[0].traceIndex)});var x,w,_,b,T,k,M;function S(V){var G=V[0],U=V[V.length-1];if(w=G.pmin-G.pos-G.dp+G.size,_=U.pos+U.dp+U.size-G.pmax,w>.01){for(T=V.length-1;T>=0;T--)V[T].dp+=w;x=!1}if(!(_<.01)){if(w<-.01){for(T=V.length-1;T>=0;T--)V[T].dp-=_;x=!1}if(x){var Y=0;for(b=0;bG.pmax&&Y++;for(b=V.length-1;b>=0&&!(Y<=0);b--)k=V[b],k.pos>G.pmax-1&&(k.del=!0,Y--);for(b=0;b=0;T--)V[T].dp-=_;for(b=V.length-1;b>=0&&!(Y<=0);b--)k=V[b],k.pos+k.dp+k.size>G.pmax&&(k.del=!0,Y--)}}}for(;!x&&o<=s;){for(o++,x=!0,b=0;b.01){for(T=D.length-1;T>=0;T--)D[T].dp+=w;for(E.push.apply(E,D),u.splice(b+1,1),M=0,T=E.length-1;T>=0;T--)M+=E[T].dp;for(_=M/E.length,T=E.length-1;T>=0;T--)E[T].dp-=_;x=!1}else b++}u.forEach(S)}for(b=u.length-1;b>=0;b--){var z=u[b];for(T=z.length-1;T>=0;T--){var O=z[T],B=O.datum;B.offset=O.dp,B.del=O.del}}}function xD(e,r){var t=0,a=e.offset;return r&&(a*=-Hhe,t=e.offset*Bhe),{x:t,y:a}}function Whe(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Dt+Yr),a=t+r*(e.txwidth+Yr),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Yr),{alignShift:r,textShiftX:t,text2ShiftX:a}}function _D(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=mu.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,c=Whe(o),v=xD(o,r),d=v.x,p=v.y,m=u==="middle",y="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,x;m?x="M-"+n(o.bx/2+o.tx2width/2)+","+i(p-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":y?x="M0,0L"+n(f*Dt+d)+","+i(Dt+p)+"v"+i(o.by/2-Dt)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*Dt+d)+"V"+i(p-Dt)+"Z":x="M"+n(f*Dt+d)+","+i(p-o.by/2)+"h"+n(f*o.bx)+"v"+i(o.by)+"h"+n(-f*o.bx)+"Z",l.select("path").attr("d",x);var w=d+c.textShiftX,_=p+o.ty0-o.by/2+Yr,b=o.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(s.attr("text-anchor","start"),w=m?-o.bx/2-o.tx2width/2+Yr:-o.bx-Yr):b==="right"&&u!=="end"&&(s.attr("text-anchor","end"),w=m?o.bx/2-o.tx2width/2-Yr:o.bx+Yr)),s.call(mi.positionText,n(w),i(_)),o.tx2width&&(l.select("text.name").call(mi.positionText,n(c.text2ShiftX+c.alignShift*Yr+d),i(p+o.ty0-o.by/2+Yr)),l.select("rect").call(Ro.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),i(p-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function jhe(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||cl(v)&&v===0}var l=Array.isArray(t)?function(v,d){var p=Ut.castOption(n,t,v);return o(p)?p:Ut.extractOption({},a,"",d)}:function(v,d){return Ut.extractOption(i,a,v,d)};function s(v,d,p){var m=l(d,p);o(m)&&(e[v]=m)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Ut.constrain(e.x0,0,e.xa._length),e.x1=Ut.constrain(e.x1,0,e.xa._length),e.y0=Ut.constrain(e.y0,0,e.ya._length),e.y1=Ut.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Po.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Po.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=Po.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Po.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Po.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Po.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function hD(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||l)){var c=Ma.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var v=r.hLinePoint,d,p;u=v&&v.xa,f=v&&v.ya;var m=f.spikesnap;m==="cursor"?(d=o.pointerX,p=o.pointerY):(d=u._offset+v.x,p=f._offset+v.y);var y=uD.readability(v.color,c)<1.5?Ma.contrast(c):v.color,x=f.spikemode,w=f.spikethickness,_=f.spikecolor||y,b=Po.getPxPosition(e,f),T,k;if(x.indexOf("toaxis")!==-1||x.indexOf("across")!==-1){if(x.indexOf("toaxis")!==-1&&(T=b,k=d),x.indexOf("across")!==-1){var M=f._counterDomainMin,S=f._counterDomainMax;f.anchor==="free"&&(M=Math.min(M,f.position),S=Math.max(S,f.position)),T=i.l+M*i.w,k=i.l+S*i.w}a.insert("line",":first-child").attr({x1:T,x2:k,y1:p,y2:p,"stroke-width":w,stroke:_,"stroke-dasharray":Ro.dashStyle(f.spikedash,w)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:T,x2:k,y1:p,y2:p,"stroke-width":w+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}x.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?w:-w),cy:p,r:w,fill:_}).classed("spikeline",!0)}if(s){var E=r.vLinePoint,D,P;u=E&&E.xa,f=E&&E.ya;var R=u.spikesnap;R==="cursor"?(D=o.pointerX,P=o.pointerY):(D=u._offset+E.x,P=f._offset+E.y);var z=uD.readability(E.color,c)<1.5?Ma.contrast(c):E.color,O=u.spikemode,B=u.spikethickness,V=u.spikecolor||z,G=Po.getPxPosition(e,u),U,Y;if(O.indexOf("toaxis")!==-1||O.indexOf("across")!==-1){if(O.indexOf("toaxis")!==-1&&(U=G,Y=P),O.indexOf("across")!==-1){var J=u._counterDomainMin,Z=u._counterDomainMax;u.anchor==="free"&&(J=Math.min(J,u.position),Z=Math.max(Z,u.position)),U=i.t+(1-Z)*i.h,Y=i.t+(1-J)*i.h}a.insert("line",":first-child").attr({x1:D,x2:D,y1:U,y2:Y,"stroke-width":B,stroke:V,"stroke-dasharray":Ro.dashStyle(u.spikedash,B)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:D,x2:D,y1:U,y2:Y,"stroke-width":B+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}O.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:D,cy:G-(u.side!=="top"?B:-B),r:B,fill:V}).classed("spikeline",!0)}}}function Zhe(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers))return!0}return!1}function dD(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function pD(e,r){return mi.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Xhe(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;o{"use strict";var Jhe=Ce(),$he=Tr(),Khe=qo().isUnifiedHover;AD.exports=function(r,t,a,n){n=n||{};var i=t.legend;function o(l){n.font[l]||(n.font[l]=i?t.legend.font[l]:t.font[l])}t&&Khe(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=$he.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),Jhe.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var kD=N((pRe,MD)=>{"use strict";var Qhe=Ce(),e0e=$1(),r0e=Tf();MD.exports=function(r,t){function a(n,i){return Qhe.coerce(r,t,r0e,n,i)}e0e(r,t,a)}});var LD=N((yRe,qD)=>{"use strict";var SD=Ce(),t0e=mp(),a0e=$1();qD.exports=function(r,t,a,n){function i(l,s){return SD.coerce(r,t,t0e,l,s)}var o=SD.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),a0e(r,t,i,o)}});var k5=N((mRe,CD)=>{"use strict";var n0e=Ce(),i0e=Tf();CD.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:n0e.coerce(r,t,i0e,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var RD=N((gRe,DD)=>{"use strict";var ED=Ce(),o0e=Tf(),l0e=k5(),s0e=$1();DD.exports=function(r,t){function a(f,c){return ED.coerce(r,t,o0e,f,c)}var n=l0e(r,t);n&&(a("hoverdistance"),a("spikedistance"));var i=a("dragmode");i==="select"&&a("selectdirection");var o=t._has("mapbox"),l=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l||s)&&u===1||(o||l)&&s&&u===2)&&(t.dragmode="pan"),s0e(r,t,a),ED.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var ND=N((bRe,FD)=>{"use strict";var S5=Ce(),PD=gr();FD.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return S5.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var f0e=gr(),c0e=M5().hover;zD.exports=function(r,t,a){var n=f0e.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&c0e(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Pn=N((_Re,HD)=>{"use strict";var v0e=Sr(),K1=Ce(),h0e=pi(),Th=qo(),OD=Tf(),BD=M5();HD.exports={moduleType:"component",name:"fx",constants:Vv(),schema:{layout:OD},attributes:mp(),layoutAttributes:OD,supplyLayoutGlobalDefaults:kD(),supplyDefaults:LD(),supplyLayoutDefaults:RD(),calc:ND(),getDistanceFunction:Th.getDistanceFunction,getClosest:Th.getClosest,inbox:Th.inbox,quadrature:Th.quadrature,appendArrayPointValue:Th.appendArrayPointValue,castHoverOption:p0e,castHoverinfo:y0e,hover:BD.hover,unhover:h0e.unhover,loneHover:BD.loneHover,loneUnhover:d0e,click:ID()};function d0e(e){var r=K1.isD3Selection(e)?e:v0e.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function p0e(e,r,t){return K1.castOption(e,r,"hoverlabel."+t)}function y0e(e,r,t){function a(n){return K1.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return K1.castOption(e,t,"hoverinfo",a)}});var bu=N(vl=>{"use strict";vl.selectMode=function(e){return e==="lasso"||e==="select"};vl.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};vl.openMode=function(e){return e==="drawline"||e==="drawopenpath"};vl.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};vl.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};vl.selectingOrDrawing=function(e){return vl.freeMode(e)||vl.rectMode(e)}});var Q1=N((TRe,UD)=>{"use strict";UD.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var ey=N((ARe,GD)=>{"use strict";GD.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var ty=N((MRe,YD)=>{"use strict";var ry=32;YD.exports={CIRCLE_SIDES:ry,i000:0,i090:ry/4,i180:ry/2,i270:ry/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var ay=N((kRe,WD)=>{"use strict";var m0e=Ce().strTranslate;function VD(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function g0e(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function b0e(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return VD(e,t[r])}}function x0e(e){return m0e(e.xaxis._offset,e.yaxis._offset)}WD.exports={p2r:VD,r2p:g0e,axValue:b0e,getTransform:x0e}});var ts=N(hl=>{"use strict";var _0e=mx(),XD=ty(),ic=XD.CIRCLE_SIDES,q5=XD.SQRT2,JD=ay(),jD=JD.p2r,ZD=JD.r2p,w0e=[0,3,4,5,6,1,2],T0e=[0,3,4,1,2];hl.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var $D=ia(),tR=bu(),A0e=tR.drawMode,M0e=tR.openMode,oc=ty(),KD=oc.i000,QD=oc.i090,eR=oc.i180,rR=oc.i270,k0e=oc.cos45,S0e=oc.sin45,aR=ay(),iy=aR.p2r,as=aR.r2p,q0e=Zl(),L0e=q0e.clearOutline,oy=ts(),C0e=oy.readPaths,E0e=oy.writePaths,D0e=oy.ellipseOver,R0e=oy.fixDatesForPaths;function P0e(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,o=(a.layout||{}).shapes||[];if(!A0e(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var F0e=bu(),N0e=F0e.selectMode,z0e=Zl(),I0e=z0e.clearOutline,L5=ts(),O0e=L5.readPaths,B0e=L5.writePaths,H0e=L5.fixDatesForPaths;oR.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,u=l.yaxis,f=t.isActiveSelection,c=t.dragmode,v=(i.layout||{}).selections||[];if(!N0e(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";lR.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var ns=N(Ra=>{"use strict";var xu=Mh(),sR=Ce(),sy=Ir();Ra.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Ra.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Ra.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Ra.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Ra.extractPathCoords=function(e,r,t){var a=[],n=e.match(xu.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.substr(1).match(xu.paramRE);if(!(!l||l.lengthd&&(m="X"),m});return u>d&&(p=p.replace(/[\s,]*X.*/,""),sR.log("Ignoring extra params in segment "+s)),f+p})}function kh(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var D5=N((DRe,vR)=>{"use strict";var G0e=Ce(),lc=Ir(),uR=Da(),fR=Wr(),Y0e=ts().readPaths,E5=ns(),V0e=E5.getPathString,cR=kp(),W0e=Xa().FROM_TL;vR.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var o={};if(a.type!=="path"){var l=lc.getFromId(r,a.xref),s=lc.getFromId(r,a.yref);for(var u in cR){var f=cR[u](a,l,s);f!==void 0&&(o[u]=f)}}i=G0e.texttemplateStringForShapes(a.label.texttemplate,{},r._fullLayout._d3locale,o)}else i=a.label.text;var c={"data-index":t},v=a.label.font,d={"data-notex":1},p=n.append("g").attr(c).classed("shape-label",!0),m=p.append("text").attr(d).classed("shape-label-text",!0).text(i),y,x,w,_;if(a.path){var b=V0e(r,a),T=Y0e(b,r);y=1/0,w=1/0,x=-1/0,_=-1/0;for(var k=0;k=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function Z0e(e,r,t,a,n,i,o){var l=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,v=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,m=n.label.yanchor,y,x,w,_;if(f==="line"){l==="start"?(y=e,x=r):l==="end"?(y=t,x=a):(y=(e+t)/2,x=(r+a)/2),p==="auto"&&(l==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var X0e=Ce(),J0e=X0e.strTranslate,hR=pi(),yR=bu(),$0e=yR.drawMode,mR=yR.selectMode,gR=gr(),dR=Tr(),fy=ty(),K0e=fy.i000,Q0e=fy.i090,ede=fy.i180,rde=fy.i270,tde=Zl(),bR=tde.clearOutlineControllers,P5=ts(),uy=P5.pointsOnRectangle,R5=P5.pointsOnEllipse,ade=P5.writePaths,nde=ly().newShapes,ide=ly().createShapeObj,ode=C5(),lde=D5();xR.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(R5(r[0])||a.hasText)&&l({redrawing:!0})}function l(G){var U={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,U=nde(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,U=ode(t,a),i._fullLayout._reselect=!0),Object.keys(U).length&&gR.call((G||{}).redrawing?"relayout":"_guiRelayout",i,U)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=$0e(f),v=mR(f);(c||v)&&(i._fullLayout._outlining=!0),bR(i),t.attr("d",ade(r));var d,p,m,y,x;if(!n&&(a.isActiveShape||a.isActiveSelection)){x=sde([],r);var w=u.append("g").attr("class","outline-controllers");D(w),V()}if(c&&a.hasText){var _=u.select(".label-temp"),b=ide(t,a,a.dragmode);lde(i,"label-temp",b,_)}function T(G){m=+G.srcElement.getAttribute("data-i"),y=+G.srcElement.getAttribute("data-j"),d[m][y].moveFn=k}function k(G,U){if(r.length){var Y=x[m][y][1],J=x[m][y][2],Z=r[m],re=Z.length;if(uy(Z)){var se=G,oe=U;if(a.isActiveSelection){var ce=pR(Z,y);ce[1]===Z[y][1]?oe=0:se=0}for(var K=0;K1&&!(G.length===2&&G[1][0]==="Z")&&(y===0&&(G[0][0]="M"),r[m]=G,o(),l())}}function E(G,U){if(G===2){m=+U.srcElement.getAttribute("data-i"),y=+U.srcElement.getAttribute("data-j");var Y=r[m];!uy(Y)&&!R5(Y)&&S()}}function D(G){d=[];for(var U=0;U{"use strict";var fde=Sr(),kR=gr(),_R=Ce(),sc=Ir(),cde=ts().readPaths,vde=cy(),hy=D5(),SR=Zl().clearOutlineControllers,F5=Tr(),z5=Wr(),hde=At().arrayEditor,wR=pi(),TR=rs(),_u=Mh(),Fn=ns(),N5=Fn.getPathString;CR.exports={draw:I5,drawOne:qR,eraseActiveShape:yde,drawLabel:hy};function I5(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;no&&Ge>l&&!Ne.shiftKey?wR.getCursor(He/ze,1-De/Ge):"move";TR(r,Ie),Te=Ie.split("-")[0]}}function pe(Ne){vy(e)||(s&&(x=Z(t.xanchor)),u&&(w=re(t.yanchor)),t.type==="path"?P=t.path:(d=s?t.x0:Z(t.x0),p=u?t.y0:re(t.y0),m=s?t.x1:Z(t.x1),y=u?t.y1:re(t.y1)),dy?(_=p,M="y0",b=y,S="y1"):(_=y,M="y1",b=p,S="y0"),ie(Ne),_e(n,t),Pe(r,t,e),K.moveFn=Te==="move"?j:me,K.altKey=Ne.altKey)}function W(){vy(e)||(TR(r),ye(n),LR(r,e,t),kR.call("_guiRelayout",e,i.getUpdateObj()))}function Q(){vy(e)||ye(n)}function j(Ne,Re){if(t.type==="path"){var ze=function(De){return De},Ge=ze,He=ze;s?v("xanchor",t.xanchor=se(x+Ne)):(Ge=function(Ie){return se(Z(Ie)+Ne)},z&&z.type==="date"&&(Ge=Fn.encodeDate(Ge))),u?v("yanchor",t.yanchor=oe(w+Re)):(He=function(Ie){return oe(re(Ie)+Re)},B&&B.type==="date"&&(He=Fn.encodeDate(He))),v("path",t.path=AR(P,Ge,He))}else s?v("xanchor",t.xanchor=se(x+Ne)):(v("x0",t.x0=se(d+Ne)),v("x1",t.x1=se(m+Ne))),u?v("yanchor",t.yanchor=oe(w+Re)):(v("y0",t.y0=oe(p+Re)),v("y1",t.y1=oe(y+Re)));r.attr("d",N5(e,t)),_e(n,t),hy(e,a,t,R)}function me(Ne,Re){if(c){var ze=function(Xe){return Xe},Ge=ze,He=ze;s?v("xanchor",t.xanchor=se(x+Ne)):(Ge=function(Qe){return se(Z(Qe)+Ne)},z&&z.type==="date"&&(Ge=Fn.encodeDate(Ge))),u?v("yanchor",t.yanchor=oe(w+Re)):(He=function(Qe){return oe(re(Qe)+Re)},B&&B.type==="date"&&(He=Fn.encodeDate(He))),v("path",t.path=AR(P,Ge,He))}else if(f){if(Te==="resize-over-start-point"){var De=d+Ne,Ie=u?p-Re:p+Re;v("x0",t.x0=s?De:se(De)),v("y0",t.y0=u?Ie:oe(Ie))}else if(Te==="resize-over-end-point"){var Be=m+Ne,ue=u?y-Re:y+Re;v("x1",t.x1=s?Be:se(Be)),v("y1",t.y1=u?ue:oe(ue))}}else{var Ae=function(Xe){return Te.indexOf(Xe)!==-1},je=Ae("n"),ur=Ae("s"),lr=Ae("w"),fe=Ae("e"),qe=je?_+Re:_,Oe=ur?b+Re:b,Ze=lr?T+Ne:T,Ue=fe?k+Ne:k;u&&(je&&(qe=_-Re),ur&&(Oe=b-Re)),(!u&&Oe-qe>l||u&&qe-Oe>l)&&(v(M,t[M]=u?qe:oe(qe)),v(S,t[S]=u?Oe:oe(Oe))),Ue-Ze>o&&(v(E,t[E]=s?Ze:se(Ze)),v(D,t[D]=s?Ue:se(Ue)))}r.attr("d",N5(e,t)),_e(n,t),hy(e,a,t,R)}function _e(Ne,Re){(s||u)&&ze();function ze(){var Ge=Re.type!=="path",He=Ne.selectAll(".visual-cue").data([0]),De=1;He.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":De}).classed("visual-cue",!0);var Ie=Z(s?Re.xanchor:_R.midRange(Ge?[Re.x0,Re.x1]:Fn.extractPathCoords(Re.path,_u.paramIsX))),Be=re(u?Re.yanchor:_R.midRange(Ge?[Re.y0,Re.y1]:Fn.extractPathCoords(Re.path,_u.paramIsY)));if(Ie=Fn.roundPositionForSharpStrokeRendering(Ie,De),Be=Fn.roundPositionForSharpStrokeRendering(Be,De),s&&u){var ue="M"+(Ie-1-De)+","+(Be-1-De)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";He.attr("d",ue)}else if(s){var Ae="M"+(Ie-1-De)+","+(Be-9-De)+"v18 h2 v-18 Z";He.attr("d",Ae)}else{var je="M"+(Ie-9-De)+","+(Be-1-De)+"h18 v2 h-18 Z";He.attr("d",je)}}}function ye(Ne){Ne.selectAll(".visual-cue").remove()}function Pe(Ne,Re,ze){var Ge=Re.xref,He=Re.yref,De=sc.getFromId(ze,Ge),Ie=sc.getFromId(ze,He),Be="";Ge!=="paper"&&!De.autorange&&(Be+=Ge),He!=="paper"&&!Ie.autorange&&(Be+=He),z5.setClipUrl(Ne,Be?"clip"+ze._fullLayout._uid+Be:null,ze)}}function AR(e,r,t){return e.replace(_u.segmentRE,function(a){var n=0,i=a.charAt(0),o=_u.paramIsX[i],l=_u.paramIsY[i],s=_u.numParams[i],u=a.substr(1).replace(_u.paramRE,function(f){return n>=s||(o[n]?f=r(f):l[n]&&(f=t(f)),n++),f});return i+u})}function pde(e,r){if(dy(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){MR(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=MR,I5(e)}}}function MR(e){if(dy(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(SR(e),delete e._fullLayout._activeShapeIndex,I5(e))}}function yde(e){if(dy(e)){SR(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var gi=gr(),ER=aa(),DR=ia(),Zr=ey(),mde=py().eraseActiveShape,yy=Ce(),Ur=yy._,Xr=OR.exports={};Xr.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Ur(e,"Download plot as a PNG"):Ur(e,"Download plot")},icon:Zr.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};yy.notifier(Ur(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),gi.call("downloadImage",e,t).then(function(a){yy.notifier(Ur(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){yy.notifier(Ur(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Xr.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Ur(e,"Edit in Chart Studio")},icon:Zr.disk,click:function(e){ER.sendDataToCloud(e)}};Xr.editInChartStudio={name:"editInChartStudio",title:function(e){return Ur(e,"Edit in Chart Studio")},icon:Zr.pencil,click:function(e){ER.sendDataToCloud(e)}};Xr.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Ur(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Zr.zoombox,click:sn};Xr.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Ur(e,"Pan")},attr:"dragmode",val:"pan",icon:Zr.pan,click:sn};Xr.select2d={name:"select2d",_cat:"select",title:function(e){return Ur(e,"Box Select")},attr:"dragmode",val:"select",icon:Zr.selectbox,click:sn};Xr.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Ur(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Zr.lasso,click:sn};Xr.drawclosedpath={name:"drawclosedpath",title:function(e){return Ur(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Zr.drawclosedpath,click:sn};Xr.drawopenpath={name:"drawopenpath",title:function(e){return Ur(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Zr.drawopenpath,click:sn};Xr.drawline={name:"drawline",title:function(e){return Ur(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Zr.drawline,click:sn};Xr.drawrect={name:"drawrect",title:function(e){return Ur(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Zr.drawrect,click:sn};Xr.drawcircle={name:"drawcircle",title:function(e){return Ur(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Zr.drawcircle,click:sn};Xr.eraseshape={name:"eraseshape",title:function(e){return Ur(e,"Erase active shape")},icon:Zr.eraseshape,click:mde};Xr.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Ur(e,"Zoom in")},attr:"zoom",val:"in",icon:Zr.zoom_plus,click:sn};Xr.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Ur(e,"Zoom out")},attr:"zoom",val:"out",icon:Zr.zoom_minus,click:sn};Xr.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Ur(e,"Autoscale")},attr:"zoom",val:"auto",icon:Zr.autoscale,click:sn};Xr.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Ur(e,"Reset axes")},attr:"zoom",val:"reset",icon:Zr.home,click:sn};Xr.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Ur(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Zr.tooltip_basic,gravity:"ne",click:sn};Xr.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Ur(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Zr.tooltip_compare,gravity:"ne",click:sn};function sn(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=DR.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,v=(1+c)/2,d=(1-c)/2,p,m;for(f=0;f{"use strict";var BR=H5(),xde=Object.keys(BR),HR=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],UR=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(HR),fc=[],_de=function(e){if(UR.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();fc.indexOf(r)===-1&&fc.push(r),fc.indexOf(t)===-1&&fc.push(t)}};xde.forEach(function(e){_de(BR[e])});fc.sort();GR.exports={DRAW_MODES:HR,backButtons:UR,foreButtons:fc}});var G5=N((IRe,YR)=>{"use strict";var zRe=U5();YR.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var WR=N((ORe,VR)=>{"use strict";var wde=Ce(),Sh=Tr(),Tde=At(),Ade=G5();VR.exports=function(r,t){var a=r.modebar||{},n=Tde.newContainer(t,"modebar");function i(l,s){return wde.coerce(a,n,Ade,l,s)}i("orientation"),i("bgcolor",Sh.addOpacity(t.paper_bgcolor,.5));var o=Sh.contrast(Sh.rgb(t.modebar.bgcolor));i("color",Sh.addOpacity(o,.3)),i("activecolor",Sh.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var JR=N((BRe,XR)=>{"use strict";var Y5=Sr(),Mde=Rr(),gy=Ce(),jR=ey(),kde=ip().version,Sde=new DOMParser;function ZR(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Fo=ZR.prototype;Fo.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(l||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),gy.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Fo.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(n);r.buttonElements.push(o),a.appendChild(o)}),r.element.appendChild(a)})};Fo.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Fo.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&Y5.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||jR.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Fo.createIcon=function(e){var r=Mde(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=Sde.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Fo.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),o=a.getAttribute("data-toggle")==="true",l=Y5.select(a),s=function(c,v){var d=r.modebar,p=c.querySelector(".icon path");p&&(v||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(i===t){var u=!l.classed("active");l.classed("active",u),s(a,u)}}else{var f=i===null?i:gy.nestedProperty(r,i).get();l.classed("active",f===n),s(a,f===n)}})};Fo.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var Cde=ia(),$R=Dn(),V5=gr(),Ede=qo().isUnifiedHover,Dde=JR(),by=H5(),Rde=U5().DRAW_MODES,Pde=Ce().extendDeep;KR.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,o;Array.isArray(i)&&i.length?o=Bde(i):!a.displayModeBar&&a.watermark?o=[]:o=Fde(r),n?n.update(r,o):t._modeBar=Dde(r,o)};function Fde(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(U,Y){if(typeof Y=="string"){if(Y.toLowerCase()===U.toLowerCase())return!0}else{var J=Y.name,Z=Y._cat||Y.name;if(J===U||Z===U.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=a.modeBarButtonsToAdd.concat(i.filter(function(U){for(var Y=0;Y1?(D=["toggleHover"],P=["resetViews"]):c?(E=["zoomInGeo","zoomOutGeo"],D=["hoverClosestGeo"],P=["resetGeo"]):f?(D=["hoverClosest3d"],P=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(E=["zoomInMapbox","zoomOutMapbox"],D=["toggleHover"],P=["resetViewMapbox"]):y?(E=["zoomInMap","zoomOutMap"],D=["toggleHover"],P=["resetViewMap"]):v?D=["hoverClosestPie"]:_?(D=["hoverClosestCartesian","hoverCompareCartesian"],P=["resetViewSankey"]):D=["toggleHover"],u&&D.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Ide(t)||T)&&(D=[]),u&&!b&&(E=["zoomIn2d","zoomOut2d","autoScale2d"],P[0]!=="resetViews"&&(P=["resetScale2d"])),f?R=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!b||p?R=["zoom2d","pan2d"]:m||y||c?R=["pan2d"]:x&&(R=["zoom2d"]),zde(t)&&R.push("select2d","lasso2d");var z=[],O=function(U){z.indexOf(U)===-1&&D.indexOf(U)!==-1&&z.push(U)};if(Array.isArray(l)){for(var B=[],V=0;V{"use strict";eP.exports={moduleType:"component",name:"modebar",layoutAttributes:G5(),supplyLayoutDefaults:WR(),manage:QR()}});var j5=N((GRe,rP)=>{"use strict";var Hde=Xa().FROM_BL;rP.exports=function(r,t,a){a===void 0&&(a=Hde[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var Tu=N(qh=>{"use strict";var wu=Ce(),Z5=dh(),ao=ia().id2name,Ude=hi(),tP=j5(),Gde=Zf(),Yde=Nt().ALMOST_EQUAL,Vde=Xa().FROM_BL;qh.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,u,f,c,v,d,p;for(l=0;li?t.substr(i):a.substr(n))+o}function jde(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;oYde*p&&!w)){for(i=0;iR&&JD&&(D=J);var re=(D-E)/(2*P);c/=re,E=s.l2r(E),D=s.l2r(D),s.range=s._input.range=k{"use strict";var _y=Sr(),un=gr(),$n=aa(),bi=Ce(),$5=Da(),K5=Q1(),Lh=Tr(),cc=Wr(),oP=jf(),cP=W5(),Ch=Ir(),dl=Xa(),vP=Tu(),Zde=vP.enforce,Xde=vP.clean,lP=dh().doAutoRange,hP="start",Jde="middle",dP="end",$de=Ea().zindexSeparator;ka.layoutStyles=function(e){return bi.syncOrAsync([$n.doAutoMargin,Qde],e)};function Kde(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function Qde(e){var r=e._fullLayout,t=r._size,a=t.p,n=Ch.list(e,"",!0),i,o,l,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(cc.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),ka.drawMainTitle(e),cP.manage(e),!r._has("cartesian"))return $n.previousPromises(e);function c(pe,W,Q){var j=pe._lw/2;if(pe._id.charAt(0)==="x"){if(W){if(Q==="top")return W._offset-a-j}else return t.t+t.h*(1-(pe.position||0))+j%1;return W._offset+W._length+a+j}if(W){if(Q==="right")return W._offset+W._length+a+j}else return t.l+t.w*(pe.position||0)+j%1;return W._offset-a-j}for(i=0;i0){ape(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:fP(r.yanchor)}).call($5.positionText,o,i);var f=(r.text.match($5.BR_TAG_ALL)||[]).length;if(f){var c=dl.LINE_SPACING*f+dl.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",y)})}var v=_y.selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,m=p+oP.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y:m,"text-anchor":a,dy:fP(r.yanchor)}).call($5.positionText,o,m)}}}};function epe(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=bi.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return bi.isTopAnchor(r)&&t==="t"||bi.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=rpe(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function ape(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&epe(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),$n.allowAutoMargin(e,n),$n.autoMargin(e,n,l)}function npe(e,r){var t=e.title,a=e._size,n=0;switch(r===hP?n=t.pad.l:r===dP&&(n=-t.pad.r),t.xref){case"paper":return a.l+a.w*t.x+n;case"container":default:return e.width*t.x+n}}function ipe(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===dl.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto")return a.t/2;switch(t.yref){case"paper":return a.t+a.h-a.h*t.y+n;case"container":default:return e.height-e.height*t.y+n}}function fP(e){return e==="top"?dl.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":dl.MID_SHIFT+"em"}function ope(e){var r=e.title,t=Jde;return bi.isRightAnchor(r)?t=dP:bi.isLeftAnchor(r)&&(t=hP),t}function lpe(e){var r=e.title,t="0em";return bi.isTopAnchor(r)?t=dl.CAP_SHIFT+"em":bi.isMiddleAnchor(r)&&(t=dl.MID_SHIFT+"em"),t}ka.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var spe=ts().readPaths,upe=cy(),pP=Zl().clearOutlineControllers,Q5=Tr(),yP=Wr(),fpe=At().arrayEditor,mP=ns(),cpe=mP.getPathString;bP.exports={draw:Ty,drawOne:gP,activateLastSelection:dpe};function Ty(e){var r=e._fullLayout;pP(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;y--){var x=o.append("path").attr(s).style("opacity",y?.1:u).call(Q5.stroke,c).call(Q5.fill,f).call(yP.dashLine,y?"solid":d,y?4+v:v);if(vpe(x,e,a),p){var w=fpe(e.layout,"selections",a);x.style({cursor:"move"});var _={element:x.node(),plotinfo:n,gd:e,editHelpers:w,isActiveSelection:!0},b=spe(l,e);upe(b,x,_)}else x.style("pointer-events",y?"all":"none");m[y]=x}var T=m[0],k=m[1];k.node().addEventListener("click",function(){return hpe(e,T)})}}function vpe(e,r,t){var a=t.xref+t.yref;yP.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function hpe(e,r){if(Ay(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){e_(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=e_,Ty(e)}}}function dpe(e){if(Ay(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=e_,Ty(e)}}function e_(e){if(Ay(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(pP(e),delete e._fullLayout._activeSelectionIndex,Ty(e))}}});var _P=N((jRe,xP)=>{function ppe(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,o){return a("temp_status",{seg:n,above:i,below:o})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,o){return a("status",{seg:n,above:i,below:o})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}xP.exports=ppe});var TP=N((ZRe,wP)=>{function ype(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],o=a[1],l=n[0],s=n[1],u=t[0],f=t[1];return(l-i)*(f-o)-(s-o)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],o=n[0]-a[0],l=t[0]-a[0],s=n[1]-a[1],u=l*o+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=l-i>e&&(o-f)*(i-c)/(l-c)+f-n>e&&(s=!s),o=f,l=c}return s}};return r}wP.exports=ype});var MP=N((XRe,AP)=>{var mpe={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};AP.exports=mpe});var SP=N((JRe,kP)=>{var Eh=MP();function gpe(e,r,t){function a(p,m){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:null,below:null},otherFill:null}}function n(p,m,y){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=Eh.create();function o(p,m,y,x,w,_){var b=r.pointsCompare(m,w);return b!==0?b:r.pointsSame(y,_)?0:p!==x?p?1:-1:r.pointAboveOrOnLine(y,x?w:_,x?_:w)?1:-1}function l(p,m){i.insertBefore(p,function(y){var x=o(p.isStart,p.pt,m,y.isStart,y.pt,y.other.pt);return x<0})}function s(p,m){var y=Eh.node({isStart:!0,pt:p.start,seg:p,primary:m,other:null,status:null});return l(y,p.end),y}function u(p,m,y){var x=Eh.node({isStart:!1,pt:m.end,seg:m,primary:y,other:p,status:null});p.other=x,l(x,p.pt)}function f(p,m){var y=s(p,m);return u(y,p,m),y}function c(p,m){t&&t.segmentChop(p.seg,m),p.other.remove(),p.seg.end=m,p.other.pt=m,l(p.other,p.pt)}function v(p,m){var y=n(m,p.seg.end,p.seg);return c(p,m),f(y,p.primary)}function d(p,m){var y=Eh.create();function x(B,V){var G=B.seg.start,U=B.seg.end,Y=V.seg.start,J=V.seg.end;return r.pointsCollinear(G,Y,J)?r.pointsCollinear(U,Y,J)||r.pointAboveOrOnLine(U,Y,J)?1:-1:r.pointAboveOrOnLine(G,Y,J)?1:-1}function w(B){return y.findTransition(function(V){var G=x(B,V.ev);return G>0})}function _(B,V){var G=B.seg,U=V.seg,Y=G.start,J=G.end,Z=U.start,re=U.end;t&&t.checkIntersection(G,U);var se=r.linesIntersect(Y,J,Z,re);if(se===!1){if(!r.pointsCollinear(Y,J,Z)||r.pointsSame(Y,re)||r.pointsSame(J,Z))return!1;var oe=r.pointsSame(Y,Z),ce=r.pointsSame(J,re);if(oe&&ce)return V;var K=!oe&&r.pointBetween(Y,Z,re),Te=!ce&&r.pointBetween(J,Z,re);if(oe)return Te?v(V,J):v(B,re),V;K&&(ce||(Te?v(V,J):v(B,re)),v(V,Y))}else se.alongA===0&&(se.alongB===-1?v(B,Z):se.alongB===0?v(B,se.pt):se.alongB===1&&v(B,re)),se.alongB===0&&(se.alongA===-1?v(V,Y):se.alongA===0?v(V,se.pt):se.alongA===1&&v(V,J));return!1}for(var b=[];!i.isEmpty();){var T=i.getHead();if(t&&t.vert(T.pt[0]),T.isStart){let B=function(){if(M){var V=_(T,M);if(V)return V}return S?_(T,S):!1};var O=B;t&&t.segmentNew(T.seg,T.primary);var k=w(T),M=k.before?k.before.ev:null,S=k.after?k.after.ev:null;t&&t.tempStatus(T.seg,M?M.seg:!1,S?S.seg:!1);var E=B();if(E){if(e){var D;T.seg.myFill.below===null?D=!0:D=T.seg.myFill.above!==T.seg.myFill.below,D&&(E.seg.myFill.above=!E.seg.myFill.above)}else E.seg.otherFill=T.seg.myFill;t&&t.segmentUpdate(E.seg),T.other.remove(),T.remove()}if(i.getHead()!==T){t&&t.rewind(T.seg);continue}if(e){var D;T.seg.myFill.below===null?D=!0:D=T.seg.myFill.above!==T.seg.myFill.below,S?T.seg.myFill.below=S.seg.myFill.above:T.seg.myFill.below=p,D?T.seg.myFill.above=!T.seg.myFill.below:T.seg.myFill.above=T.seg.myFill.below}else if(T.seg.otherFill===null){var P;S?T.primary===S.primary?P=S.seg.otherFill.above:P=S.seg.myFill.above:P=T.primary?m:p,T.seg.otherFill={above:P,below:P}}t&&t.status(T.seg,M?M.seg:!1,S?S.seg:!1),T.other.status=k.insert(Eh.node({ev:T}))}else{var R=T.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(R.prev)&&y.exists(R.next)&&_(R.prev.ev,R.next.ev),t&&t.statusRemove(R.ev.seg),R.remove(),!T.primary){var z=T.seg.myFill;T.seg.myFill=T.seg.otherFill,T.seg.otherFill=z}b.push(T.seg)}i.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(p){for(var m,y=p[p.length-1],x=0;x{function bpe(e,r,t){var a=[],n=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(O,B,V){return f.index=O,f.matches_head=B,f.matches_pt1=V,f===s?(f=u,!1):(f=null,!0)}for(var v=0;v{function Dh(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var xpe={union:function(e,r){return Dh(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Dh(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Dh(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Dh(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Dh(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};CP.exports=xpe});var RP=N((QRe,DP)=>{var _pe={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),s=1;s{var wpe=_P(),Tpe=TP(),PP=SP(),Ape=LP(),Rh=EP(),FP=RP(),xi=!1,Ph=Tpe(),Nn;Nn={buildLog:function(e){return e===!0?xi=wpe():e===!1&&(xi=!1),xi===!1?!1:xi.list},epsilon:function(e){return Ph.epsilon(e)},segments:function(e){var r=PP(!0,Ph,xi);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=PP(!1,Ph,xi);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Rh.union(e.combined,xi),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Rh.intersect(e.combined,xi),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Rh.difference(e.combined,xi),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Rh.differenceRev(e.combined,xi),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Rh.xor(e.combined,xi),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Ape(e.segments,Ph,xi),inverted:e.inverted}},polygonFromGeoJSON:function(e){return FP.toPolygon(Nn,e)},polygonToGeoJSON:function(e){return FP.fromPolygon(Nn,Ph,e)},union:function(e,r){return Fh(e,r,Nn.selectUnion)},intersect:function(e,r){return Fh(e,r,Nn.selectIntersect)},difference:function(e,r){return Fh(e,r,Nn.selectDifference)},differenceRev:function(e,r){return Fh(e,r,Nn.selectDifferenceRev)},xor:function(e,r){return Fh(e,r,Nn.selectXor)}};function Fh(e,r,t){var a=Nn.segments(e),n=Nn.segments(r),i=Nn.combine(a,n),o=t(i);return Nn.polygon(o)}typeof window=="object"&&(window.PolyBool=Nn);NP.exports=Nn});var OP=N((rPe,IP)=>{IP.exports=function(r,t,a,n){var i=r[0],o=r[1],l=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;uo!=p>o&&i<(d-c)*(o-v)/(p-v)+c;m&&(l=!l)}return l}});var a_=N((tPe,BP)=>{"use strict";var t_=Tp().dot,My=Nt().BADNUM,ky=BP.exports={};ky.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;ln||x===My||xo||m&&u(p))}function c(p,m){var y=p[0],x=p[1];if(y===My||yn||x===My||xo)return!1;var w=t.length,_=t[0][0],b=t[0][1],T=0,k,M,S,E,D;for(k=1;kMath.max(M,_)||x>Math.max(S,b)))if(xl||Math.abs(t_(c,u))>n)return!0;return!1};ky.filter=function(r,t){var a=[r[0]],n=0,i=0;function o(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:a}}});var UP=N((aPe,HP)=>{"use strict";HP.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var fF=N((nPe,uF)=>{"use strict";var GP=zP(),Mpe=OP(),Ih=gr(),kpe=Wr().dashStyle,Nh=Tr(),Spe=Pn(),qpe=qo().makeEventData,Gh=bu(),Lpe=Gh.freeMode,Cpe=Gh.rectMode,Oh=Gh.drawMode,l_=Gh.openMode,s_=Gh.selectMode,YP=ns(),VP=Mh(),JP=cy(),$P=Zl().clearOutline,KP=ts(),n_=KP.handleEllipse,Epe=KP.readPaths,Dpe=ly().newShapes,Rpe=C5(),Ppe=r_().activateLastSelection,qy=Ce(),Fpe=qy.sorterAsc,QP=a_(),zh=Fp(),_i=ia().getFromId,Npe=Q1(),zpe=wy().redrawReglTraces,Ly=UP(),No=Ly.MINSELECT,Ipe=QP.filter,u_=QP.tester,f_=ay(),WP=f_.p2r,Ope=f_.axValue,Bpe=f_.getTransform;function c_(e){return e.subplot!==void 0}function Hpe(e,r,t,a,n){var i=!c_(a),o=Lpe(n),l=Cpe(n),s=l_(n),u=Oh(n),f=s_(n),c=n==="drawline",v=n==="drawcircle",d=c||v,p=a.gd,m=p._fullLayout,y=f&&m.newselection.mode==="immediate"&&i,x=m._zoomlayer,w=a.element.getBoundingClientRect(),_=a.plotinfo,b=Bpe(_),T=r-w.left,k=t-w.top;m._calcInverseTransform(p);var M=qy.apply3DTransform(m._invTransform)(T,k);T=M[0],k=M[1];var S=m._invScaleX,E=m._invScaleY,D=T,P=k,R="M"+T+","+k,z=a.xaxes[0],O=a.yaxes[0],B=z._length,V=O._length,G=e.altKey&&!(Oh(n)&&s),U,Y,J,Z,re,se,oe;rF(e,p,a),o&&(U=Ipe([[T,k]],Ly.BENDPX));var ce=x.selectAll("path.select-outline-"+_.id).data([1]),K=u?m.newshape:m.newselection;u&&(a.hasText=K.label.text||K.label.texttemplate);var Te=u&&!s?K.fillcolor:"rgba(0,0,0,0)",le=K.line.color||(i?Nh.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");ce.enter().append("path").attr("class","select-outline select-outline-"+_.id).style({opacity:u?K.opacity/2:1,"stroke-dasharray":kpe(K.line.dash,K.line.width),"stroke-width":K.line.width+"px","shape-rendering":"crispEdges"}).call(Nh.stroke,le).call(Nh.fill,Te).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",R+"Z");var ve=x.append("path").attr("class","zoombox-corners").style({fill:Nh.background,stroke:Nh.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&a.hasText){var ie=x.select(".label-temp");ie.empty()&&(ie=x.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var pe=m._uid+Ly.SELECTID,W=[],Q=Cy(p,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var me=z._id,_e=O._id;oF(p,me,_e,Q);for(var ye=(p.layout||{}).selections||[],Pe=[],Ne=!1,Re=0;Re=0){p._fullLayout._deactivateShape(p);return}if(!u){var ye=m.clickmode;zh.done(pe).then(function(){if(zh.clear(pe),me===2){for(ce.remove(),re=0;re-1&&eF(_e,p,a.xaxes,a.yaxes,a.subplot,a,ce),ye==="event"&&Uh(p,void 0);Spe.click(p,_e,_.id)}).catch(qy.error)}},a.doneFn=function(){ve.remove(),zh.done(pe).then(function(){zh.clear(pe),!y&&Z&&a.selectionDefs&&(Z.subtract=G,a.selectionDefs.push(Z),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,J)),(y||u)&&Bh(a,y),a.doneFnCompleted&&a.doneFnCompleted(W),f&&Uh(p,oe)}).catch(qy.error)}}function eF(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],v,d,p,m,y,x,w,_,b,T;if(Wpe(l)){rF(e,r,i),v=Cy(r,t,a,n);var k=jpe(l,v),M=k.pointNumbers.length>0;if(M?Zpe(v,k):Xpe(v)&&(w=ZP(k))){for(o&&o.remove(),T=0;T=0}function Vpe(e){return e._fullLayout._activeSelectionIndex>=0}function Bh(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;Ype(n)&&n._fullLayout._deactivateShape(n),Vpe(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=Oh(t),s=s_(t);if(l||s){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;l&&(f=Dpe(u,e)),f&&Ih.call("_guiRelayout",n,{shapes:f});var c;s&&!c_(e)&&(c=Rpe(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,Ih.call("_guiRelayout",n,{selections:c}).then(function(){r&&Ppe(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function jP(e){return e._id}function Cy(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(jP),o=t.map(jP),l,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function Zpe(e,r){var t=[],a,n,i,o;for(o=0;o0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(o=0;o1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function Hh(e,r,t){var a;for(a=0;a-1&&r;if(!o&&r){var me=XP(e,!0);if(me.length){var _e=me[0].xref,ye=me[0].yref;if(_e&&ye){var Pe=lF(me),Ne=sF([_i(e,_e,"x"),_i(e,ye,"y")]);Ne(W,Pe)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:j&&Uh(e,W),v._reselect=!1}if(!o&&v._deselect){var Re=v._deselect;l=Re.xref,s=Re.yref,Kpe(l,s,f)||oF(e,l,s,a),j&&(W.points.length?Uh(e,W):d_(e)),v._deselect=!1}return{eventData:W,selectionTesters:t}}function $pe(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";cF.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Yh=N((oPe,vF)=>{"use strict";vF.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var vc=N((sPe,pF)=>{"use strict";var hF=p_(),dF=da(),Ey=Ea(),a1e=At().templatedArray,lPe=Yh();pF.exports=a1e("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:dF({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:hF.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:hF.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Ey.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Ey.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Ey.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Ey.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:dF({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Vh=N((uPe,yF)=>{"use strict";yF.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Dy=N((fPe,mF)=>{"use strict";mF.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var wi=N((cPe,TF)=>{"use strict";var gF=Qi().axisHoverFormat,n1e=Ta().texttemplateAttrs,i1e=Ta().hovertemplateAttrs,bF=ko(),o1e=da(),l1e=si().dash,s1e=si().pattern,u1e=Wr(),f1e=Vh(),Ry=xt().extendFlat,c1e=Dy();function xF(e){return{valType:"any",dflt:0,editType:"calc"}}function _F(e){return{valType:"any",editType:"calc"}}function wF(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}TF.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:xF("x"),yperiod:xF("y"),xperiod0:_F("x0"),yperiod0:_F("y0"),xperiodalignment:wF("x"),yperiodalignment:wF("y"),xhoverformat:gF("x"),yhoverformat:gF("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:n1e({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:i1e({},{keys:f1e.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Ry({},l1e,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:c1e(!0),fillgradient:Ry({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:s1e,marker:Ry({symbol:{valType:"enumerated",values:u1e.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Ry({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},bF("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},bF("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:o1e({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var y_=N((hPe,kF)=>{"use strict";var AF=vc(),MF=wi().line,v1e=si().dash,Py=xt().extendFlat,h1e=Xi().overrideAll,d1e=At().templatedArray,vPe=Yh();kF.exports=h1e(d1e("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Py({},AF.xref,{}),yref:Py({},AF.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:MF.color,width:Py({},MF.width,{min:1,dflt:1}),dash:Py({},v1e,{dflt:"dot"})}}),"arraydraw","from-root")});var CF=N((dPe,LF)=>{"use strict";var SF=Ce(),Fy=Ir(),p1e=eo(),y1e=y_(),qF=ns();LF.exports=function(r,t){p1e(r,t,{name:"selections",handleItemDefaults:m1e});for(var a=t.selections,n=0;n{"use strict";EF.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var Wh=N((yPe,FF)=>{"use strict";var g1e=gr(),RF=Ce(),PF=ia();FF.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=g1e.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,v=n._has("cartesian"),d=0;d{"use strict";var NF=r_(),jh=fF();zF.exports={moduleType:"component",name:"selections",layoutAttributes:y_(),supplyLayoutDefaults:CF(),supplyDrawNewSelectionDefaults:DF(),includeBasePlot:Wh()("selections"),draw:NF.draw,drawOne:NF.drawOne,reselect:jh.reselect,prepSelect:jh.prepSelect,clearOutline:jh.clearOutline,clearSelectionsCache:jh.clearSelectionsCache,selectOnClick:jh.selectOnClick}});var nN=N((gPe,aN)=>{"use strict";var __=Sr(),Ti=Ce(),IF=Ti.numberFormat,b1e=kn(),x1e=r5(),Ny=gr(),jF=Ti.strTranslate,_1e=Da(),OF=Tr(),os=Wr(),w1e=Pn(),BF=Ir(),T1e=rs(),A1e=pi(),ZF=bu(),zy=ZF.selectingOrDrawing,M1e=ZF.freeMode,k1e=Xa().FROM_TL,S1e=Q1(),q1e=wy().redrawReglTraces,L1e=aa(),g_=ia().getFromId,C1e=zo().prepSelect,E1e=zo().clearOutline,D1e=zo().selectOnClick,m_=j5(),w_=Ea(),HF=w_.MINDRAG,gn=w_.MINZOOM,UF=!0;function R1e(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,c,v,d,p,m,y,x,w,_,b,T,k,M,S,E,D,P,R,z,O,B,V,G;t+=r.yaxis._shift;function U(){if(c=r.xaxis,v=r.yaxis,_=c._length,b=v._length,x=c._offset,w=v._offset,d={},d[c._id]=c,p={},p[v._id]=v,o&&l)for(var fe=r.overlays,qe=0;qe=0){Oe._fullLayout._deactivateShape(Oe);return}var Ze=Oe._fullLayout.clickmode;if(x_(Oe),fe===2&&!f&&Be(),u)Ze.indexOf("select")>-1&&D1e(qe,Oe,m,y,r.id,Z),Ze.indexOf("event")>-1&&w1e.click(Oe,qe,r.id);else if(fe===1&&f){var Ue=o?v:c,Xe=o==="s"||l==="w"?0:1,Qe=Ue._name+".range["+Xe+"]",hr=P1e(Ue,Xe),$e="left",Fe="middle";if(Ue.fixedrange)return;o?(Fe=o==="n"?"top":"bottom",Ue.side==="right"&&($e="right")):l==="e"&&($e="right"),Oe._context.showAxisRangeEntryBoxes&&__.select(J).call(_1e.makeEditable,{gd:Oe,immediate:!0,background:Oe._fullLayout.paper_bgcolor,text:String(hr),fill:Ue.tickfont?Ue.tickfont.color:"#444",horizontalAlign:$e,verticalAlign:Fe}).on("edit",function(ne){var de=Ue.d2r(ne);de!==void 0&&Ny.call("_guiRelayout",Oe,Qe,de)})}}A1e.init(Z);var oe,ce,K,Te,le,ve,ie,pe,W,Q;function j(fe,qe,Oe){var Ze=J.getBoundingClientRect();oe=qe-Ze.left,ce=Oe-Ze.top,e._fullLayout._calcInverseTransform(e);var Ue=Ti.apply3DTransform(e._fullLayout._invTransform)(oe,ce);oe=Ue[0],ce=Ue[1],K={l:oe,r:oe,w:0,t:ce,b:ce,h:0},Te=e._hmpixcount?e._hmlumcount/e._hmpixcount:b1e(e._fullLayout.plot_bgcolor).getLuminance(),le="M0,0H"+_+"V"+b+"H0V0",ve=!1,ie="xy",Q=!1,pe=$F(s,Te,x,w,le),W=KF(s,x,w)}function me(fe,qe){if(e._transitioningWithDuration)return!1;var Oe=Math.max(0,Math.min(_,V*fe+oe)),Ze=Math.max(0,Math.min(b,G*qe+ce)),Ue=Math.abs(Oe-oe),Xe=Math.abs(Ze-ce);K.l=Math.min(oe,Oe),K.r=Math.max(oe,Oe),K.t=Math.min(ce,Ze),K.b=Math.max(ce,Ze);function Qe(){ie="",K.r=K.l,K.t=K.b,W.attr("d","M0,0Z")}if(T.isSubplotConstrained)Ue>gn||Xe>gn?(ie="xy",Ue/_>Xe/b?(Xe=Ue*b/_,ce>Ze?K.t=ce-Xe:K.b=ce+Xe):(Ue=Xe*_/b,oe>Oe?K.l=oe-Ue:K.r=oe+Ue),W.attr("d",Iy(K))):Qe();else if(k.isSubplotConstrained)if(Ue>gn||Xe>gn){ie="xy";var hr=Math.min(K.l/_,(b-K.b)/b),$e=Math.max(K.r/_,(b-K.t)/b);K.l=hr*_,K.r=$e*_,K.b=(1-hr)*b,K.t=(1-$e)*b,W.attr("d",Iy(K))}else Qe();else!S||Xe0){var ne;if(k.isSubplotConstrained||!M&&S.length===1){for(ne=0;ne1&&(Qe.maxallowed!==void 0&&D===(Qe.range[0]1&&(hr.maxallowed!==void 0&&P===(hr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function N1e(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function $F(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",jF(t,a)).attr("d",n+"Z")}function KF(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:OF.background,stroke:OF.defaultLine,"stroke-width":1,opacity:0}).attr("transform",jF(r,t)).attr("d","M0,0Z")}function QF(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),eN(e,r,n,i)}function eN(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function x_(e){__.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function rN(e){UF&&e.data&&e._context.showTips&&(Ti.notifier(Ti._(e,"Double-click to zoom back out"),"long"),UF=!1)}function z1e(e,r){return"M"+(e.l-.5)+","+(r-gn-.5)+"h-3v"+(2*gn+1)+"h3ZM"+(e.r+.5)+","+(r-gn-.5)+"h3v"+(2*gn+1)+"h-3Z"}function I1e(e,r){return"M"+(r-gn-.5)+","+(e.t-.5)+"v-3h"+(2*gn+1)+"v3ZM"+(r-gn-.5)+","+(e.b+.5)+"v3h"+(2*gn+1)+"v-3Z"}function Iy(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,gn)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function VF(e,r,t,a,n){for(var i=!1,o={},l={},s,u,f,c,v=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var O1e=Sr(),Oy=Pn(),B1e=pi(),H1e=rs(),no=nN().makeDragBox,Sa=Ea().DRAGGERSIZE;By.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){O1e.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var u=no(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");u.onmousemove=function(v){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Oy.hover(r,v,i)},Oy.hover(r,v,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,B1e.unhover(r,v))},r._context.showAxisDragHandles&&(no(r,o,l._offset-Sa,s._offset-Sa,Sa,Sa,"n","w"),no(r,o,l._offset+l._length,s._offset-Sa,Sa,Sa,"n","e"),no(r,o,l._offset-Sa,s._offset+s._length,Sa,Sa,"s","w"),no(r,o,l._offset+l._length,s._offset+s._length,Sa,Sa,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=Sa),no(r,o,l._offset+l._length*.1,f,l._length*.8,Sa,"","ew"),no(r,o,l._offset,f,l._length*.1,Sa,"","w"),no(r,o,l._offset+l._length*.9,f,l._length*.1,Sa,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=Sa),no(r,o,c,s._offset+s._length*.1,Sa,s._length*.8,"ns",""),no(r,o,c,s._offset+s._length*.9,Sa,s._length*.1,"s",""),no(r,o,c,s._offset,Sa,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Oy.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Oy.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},By.updateFx(r)}};By.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";H1e(r._draggers,t)}});var lN=N((xPe,oN)=>{"use strict";var iN=gr();oN.exports=function(r){for(var t=iN.layoutArrayContainers,a=iN.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var U1e=zl(),A_=wp(),Zh=Zs(),G1e=Mb().sorterAsc,M_=gr();Xh.containerArrayMatch=lN();var Y1e=Xh.isAddVal=function(r){return r==="add"||U1e(r)},sN=Xh.isRemoveVal=function(r){return r===null||r==="remove"};Xh.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=M_.getComponentMethod(o,"supplyLayoutDefaults"),s=M_.getComponentMethod(o,"draw"),u=M_.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||l===A_||s===A_,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Zh.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(sN(d))t.set(null);else if(Array.isArray(d))t.set(d);else return Zh.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(l(c,v),s(r),!0)}var p=Object.keys(a).map(Number).sort(G1e),m=t.get(),y=m||[],x=i(v,o).get(),w=[],_=-1,b=y.length,T,k,M,S,E,D,P,R;for(T=0;Ty.length-(P?0:1)){Zh.warn("index out of range",o,M);continue}if(D!==void 0)E.length>1&&Zh.warn("Insertion & removal are incompatible with edits to the same index.",o,M),sN(D)?w.push(M):P?(D==="add"&&(D={}),y.splice(M,0,D),x&&x.splice(M,0,{})):Zh.warn("Unrecognized full object edit value",o,M,D),_===-1&&(_=M);else for(k=0;k=0;T--)y.splice(w[T],1),x&&x.splice(w[T],1);if(y.length?m||t.set(y):t.set(null),f)return!1;if(l(c,v),u!==A_){var z;if(_===-1)z=p;else{for(b=Math.max(y.length,b),z=[],T=0;T=_));T++)z.push(M);for(T=_;T{"use strict";var hN=Rr(),wPe=pb(),dN=gr(),zn=Ce(),Jh=aa(),pN=ia(),yN=Tr(),$h=pN.cleanId,V1e=pN.getFromTrace,k_=dN.traceIs;io.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&zn.log("Clearing previous rejected promises from queue."),e._promises=[]};io.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(Jh.subplotsRegistry.cartesian||{}).attrRegex,n=(Jh.subplotsRegistry.polar||{}).attrRegex,i=(Jh.subplotsRegistry.ternary||{}).attrRegex,o=(Jh.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),yN.clean(e),e.template&&e.template.layout&&io.cleanLayout(e.template.layout),e};function hc(e,r){var t=e[r],a=r.charAt(0);t&&t!=="paper"&&(e[r]=$h(t,a,!0))}io.cleanData=function(e){for(var r=0;r0)return e.substr(0,r)}io.hasParent=function(e,r){for(var t=vN(r);t;){if(t in e)return!0;t=vN(t)}return!1};var Z1e=["x","y","z"];io.clearAxisTypes=function(e,r,t){for(var a=0;a{"use strict";var Yy=Sr(),X1e=Rr(),J1e=Ob(),Ke=Ce(),St=Ke.nestedProperty,L_=nh(),bn=JS(),Ai=gr(),$y=If(),_r=aa(),fn=Ir(),$1e=e5(),K1e=hi(),S_=Wr(),Q1e=Tr(),eye=T_().initInteractions,rye=ll(),tye=zo().clearOutline,wN=js().dfltConfig,Uy=uN(),fa=mN(),dt=wy(),ls=Xi(),aye=Ea().AX_NAME_PATTERN,q_=0,gN=5;function nye(e,r,t,a){var n;if(e=Ke.getGraphDiv(e),L_.init(e),Ke.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=L_.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!Ke.isPlotDiv(e)&&Ke.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return Jr.addFrames(e,n)}AN(e,a),t||(t={}),Yy.select(e).classed("js-plotly-plot",!0),S_.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(fa.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=fa.cleanLayout(t)),_r.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(Sye(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),S_.initGradients(e),S_.initPatterns(e),s&&fn.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&_r.doCalcdata(e);for(var v=0;v=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function MN(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),Wy(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Wy(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function uye(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof S.parts[P]!="string";)P--;var R=S.parts[P],z=S.parts[P-1]+"."+R,O=S.parts.slice(0,P).join("."),B=St(e.layout,O).get(),V=St(a,O).get(),G=S.get();if(E!==void 0){x[M]=E,w[M]=R==="reverse"?E:pl(G);var U=$y.getLayoutValObject(a,S.parts);if(U&&U.impliedEdits&&E!==null)for(var Y in U.impliedEdits)_(Ke.relativeAttr(M,Y),U.impliedEdits[Y]);if(["width","height"].indexOf(M)!==-1)if(E){_("autosize",null);var J=M==="height"?"width":"height";_(J,a[J])}else a[M]=e._initialAutoSize[M];else if(M==="autosize")_("width",E?null:a.width),_("height",E?null:a.height);else if(z.match(PN))k(z),St(a,O+"._inputRange").set(null);else if(z.match(FN)){k(z),St(a,O+"._inputRange").set(null);var Z=St(a,O).get();Z._inputDomain&&(Z._input.domain=Z._inputDomain.slice())}else z.match(hye)&&St(a,O+"._inputDomain").set(null);if(R==="type"){T=B;var re=V.type==="linear"&&E==="log",se=V.type==="log"&&E==="linear";if(re||se){if(!T||!T.range)_(O+".autorange",!0);else if(V.autorange)re&&(T.range=T.range[1]>T.range[0]?[1,2]:[2,1]);else{var oe=T.range[0],ce=T.range[1];re?(oe<=0&&ce<=0&&_(O+".autorange",!0),oe<=0?oe=ce/1e6:ce<=0&&(ce=oe/1e6),_(O+".range[0]",Math.log(oe)/Math.LN10),_(O+".range[1]",Math.log(ce)/Math.LN10)):(_(O+".range[0]",Math.pow(10,oe)),_(O+".range[1]",Math.pow(10,ce)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[S.parts[0]]&&S.parts[1]==="radialaxis"&&delete a[S.parts[0]]._subplot.viewInitial["radialaxis.range"],Ai.getComponentMethod("annotations","convertCoords")(e,V,E,_),Ai.getComponentMethod("images","convertCoords")(e,V,E,_)}else _(O+".autorange",!0),_(O+".range",null);St(a,O+"._inputRange").set(null)}else if(R.match(aye)){var K=St(a,M).get(),Te=(E||{}).type;(!Te||Te==="-")&&(Te="linear"),Ai.getComponentMethod("annotations","convertCoords")(e,K,Te,_),Ai.getComponentMethod("images","convertCoords")(e,K,Te,_)}var le=Uy.containerArrayMatch(M);if(le){f=le.array,c=le.index;var ve=le.property,ie=U||{editType:"calc"};c!==""&&ve===""&&(Uy.isAddVal(E)?w[M]=null:Uy.isRemoveVal(E)?w[M]=(St(t,f).get()||[])[c]:Ke.warn("unrecognized full object value",r)),ls.update(y,ie),u[f]||(u[f]={});var pe=u[f][c];pe||(pe=u[f][c]={}),pe[ve]=E,delete r[M]}else R==="reverse"?(B.range?B.range.reverse():(_(O+".autorange",!0),B.range=[1,0]),V.autorange?y.calc=!0:y.plot=!0):(M==="dragmode"&&(E===!1&&G!==!1||E!==!1&&G===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(E==="lasso"||E==="select")&&!(G==="lasso"||G==="select")?y.plot=!0:U?ls.update(y,U):y.calc=!0,S.set(E))}}for(f in u){var W=Uy.applyContainerArrayChanges(e,i(t,f),u[f],y,i);W||(y.plot=!0)}for(var Q in b){T=fn.getFromId(e,Q);var j=T&&T._constraintGroup;if(j){y.calc=!0;for(var me in j)b[me]||(fn.getFromId(e,me)._constraintShrinkable=!0)}}(zN(e)||r.height||r.width)&&(y.plot=!0);var _e=a.shapes;for(c=0;c<_e.length;c++)if(_e[c].showlegend){y.calc=!0;break}return(y.plot||y.calc)&&(y.layoutReplot=!0),{flags:y,rangesAltered:b,undoit:w,redoit:x,eventData:s}}function zN(e){var r=e._fullLayout,t=r.width,a=r.height;return e.layout.autosize&&_r.plotAutoSize(e,e.layout,r),r.width!==t||r.height!==a}function Xy(e,r,t,a){e=Ke.getGraphDiv(e),fa.clearPromiseQueue(e),Ke.isPlainObject(r)||(r={}),Ke.isPlainObject(t)||(t={}),Object.keys(r).length&&(e.changed=!0),Object.keys(t).length&&(e.changed=!0);var n=fa.coerceTraceIndices(e,a),i=DN(e,Ke.extendFlat({},r),n),o=i.flags,l=NN(e,Ke.extendFlat({},t)),s=l.flags;(o.calc||s.calc)&&(e.calcdata=void 0),o.clearAxisTypes&&fa.clearAxisTypes(e,n,t);var u=[];s.layoutReplot?u.push(dt.layoutReplot):o.fullReplot?u.push(Jr._doPlot):(u.push(_r.previousPromises),RN(e,s,l)||_r.supplyDefaults(e),o.style&&u.push(dt.doTraceStyle),(o.colorbars||s.colorbars)&&u.push(dt.doColorBars),s.legend&&u.push(dt.doLegend),s.layoutstyle&&u.push(dt.layoutStyles),s.axrange&&Ky(u,l.rangesAltered),s.ticks&&u.push(dt.doTicksRelayout),s.modebar&&u.push(dt.doModeBar),s.camera&&u.push(dt.doCamera),u.push(Qh)),u.push(_r.rehover,_r.redrag,_r.reselect),bn.add(e,Xy,[e,i.undoit,l.undoit,i.traces],Xy,[e,i.redoit,l.redoit,i.traces]);var f=Ke.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve(e)),f.then(function(){return e.emit("plotly_update",{data:i.eventData,layout:l.eventData}),e})}function D_(e){return function(t){t._fullLayout._guiEditing=!0;var a=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,a}}var dye=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^(map\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],pye=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function bN(e,r){for(var t=0;t1;)if(a.pop(),t=St(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function yye(e,r){for(var t=0;t=n.length?n[0]:n[u]:n}function l(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var R=a._frameQueue.pop();R.onInterrupt&&R.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function v(R){if(R.length!==0){for(var z=0;za._timeToNext&&p()};R()}var y=0;function x(R){return Array.isArray(n)?y>=n.length?R.transitionOpts=n[y]:R.transitionOpts=n[0]:R.transitionOpts=n,y++,R}var w,_,b=[],T=r==null,k=Array.isArray(r),M=!T&&!k&&Ke.isPlainObject(r);if(M)b.push({type:"object",data:x(Ke.extendFlat({},r))});else if(T||["string","number"].indexOf(typeof r)!==-1)for(w=0;w0&&DD)&&P.push(_);b=P}}b.length>0?v(b):(e.emit("plotly_animated"),u())})}function Tye(e,r,t){if(e=Ke.getGraphDiv(e),r==null)return Promise.resolve();if(!Ke.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=l.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(Ke.isPlainObject(r[a])){var v=r[a].name,d=(s[v]||c[v]||{}).name,p=r[a].name,m=s[d]||c[d];d&&p&&typeof p=="number"&&m&&q_S.index?-1:M.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&Ke.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),o.unshift({type:"insert",index:a,value:n[a]});var l=_r.modifyFrames,s=_r.modifyFrames,u=[e,o],f=[e,i];return bn&&bn.add(e,l,u,s,f),_r.modifyFrames(e,i)}function Mye(e){e=Ke.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return _r.cleanPlot([],{},t,r),_r.purge(e),L_.purge(e),r._container&&r._container.remove(),delete e._context,e}function kye(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Ke.equalDomRects(t,r._lastBBox)){var a=r._invTransform=Ke.inverseTransformMatrix(Ke.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function Sye(e){var r=Yy.select(e),t=e._fullLayout;if(t._calcInverseTransform=kye,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};Yy.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=Ke.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(rye.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Jr.animate=wye;Jr.addFrames=Tye;Jr.deleteFrames=Aye;Jr.addTraces=CN;Jr.deleteTraces=EN;Jr.extendTraces=qN;Jr.moveTraces=C_;Jr.prependTraces=LN;Jr.newPlot=sye;Jr._doPlot=nye;Jr.purge=Mye;Jr.react=bye;Jr.redraw=lye;Jr.relayout=Kh;Jr.restyle=jy;Jr.setPlotConfig=iye;Jr.update=Xy;Jr._guiRelayout=D_(Kh);Jr._guiRestyle=D_(jy);Jr._guiUpdate=D_(Xy);Jr._storeDirectGUIEdit=vye});var yl=N(Io=>{"use strict";var qye=gr();Io.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Io.getRedrawFunc=function(e){return function(){qye.getComponentMethod("colorbar","draw")(e)}};Io.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Io.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var IN=window.URL||window.webkitURL;Io.createObjectURL=function(e){return IN.createObjectURL(e)};Io.revokeObjectURL=function(e){return IN.revokeObjectURL(e)};Io.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=Lye(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Io.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function Lye(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var F_=Sr(),kPe=Ce(),Cye=Wr(),Eye=Tr(),SPe=ll(),P_=/"/g,e0="TOBESTRIPPED",Dye=new RegExp('("'+e0+")|("+e0+'")',"g");function Rye(e){var r=F_.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(a){return a==="<"?"<":a==="&rt;"?">":a.indexOf("<")!==-1||a.indexOf(">")!==-1?"":r.html(a).text()});return r.remove(),t}function Pye(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}ON.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,o=n._toppaper,l=n.width,s=n.height,u;i.insert("rect",":first-child").call(Cye.setRect,0,0,l,s).call(Eye.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var Fye=Ce(),Nye=Qs().EventEmitter,r0=yl();function zye(e){var r=e.emitter||new Nye,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,v=u*f,d=u*c,p=s.getContext("2d",{willReadFrequently:!0}),m=new i,y,x;l==="svg"||Fye.isSafari()?x=r0.encodeSVG(o):(y=r0.createBlob(o,"svg"),x=r0.createObjectURL(y)),s.width=v,s.height=d,m.onload=function(){var w;switch(y=null,r0.revokeObjectURL(x),l!=="svg"&&p.drawImage(m,0,0,v,d),l){case"jpeg":w=s.toDataURL("image/jpeg");break;case"png":w=s.toDataURL("image/png");break;case"webp":w=s.toDataURL("image/webp");break;case"svg":w=x;break;default:var _="Image format is not jpeg, png, svg or webp.";if(n(new Error(_)),!e.promise)return r.emit("error",_)}a(w),e.promise||r.emit("success",w)},m.onerror=function(w){if(y=null,r0.revokeObjectURL(x),n(w),!e.promise)return r.emit("error",w)},m.src=x});return e.promise?t:r}BN.exports=zye});var z_=N((CPe,GN)=>{"use strict";var HN=Rr(),UN=R_(),Iye=aa(),Oo=Ce(),t0=yl(),Oye=Qy(),Bye=em(),Hye=ip().version,N_={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Uye(e,r){r=r||{};var t,a,n,i;Oo.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Oo.getGraphDiv(e),t=Oo.extendDeep([],e.data),a=Oo.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||Oo.validate(r[k],N_[k])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Oo.join2(N_.format.values,", "," or ")+".");var l={};function s(k,M){return Oo.coerce(r,l,N_,k,M)}var u=s("format"),f=s("width"),c=s("height"),v=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),m=document.createElement("div");m.style.position="absolute",m.style.left="-5000px",document.body.appendChild(m);var y=Oo.extendFlat({},a);f?y.width=f:r.width===null&&HN(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&HN(i.height)&&(y.height=i.height);var x=Oo.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),w=t0.getRedrawFunc(m);function _(){return new Promise(function(k){setTimeout(k,t0.getDelay(m._fullLayout))})}function b(){return new Promise(function(k,M){var S=Oye(m,u,v),E=m._fullLayout.width,D=m._fullLayout.height;function P(){UN.purge(m),document.body.removeChild(m)}if(u==="full-json"){var R=Iye.graphJson(m,!1,"keepdata","object",!0,!0);return R.version=Hye,R=JSON.stringify(R),P(),k(p?R:t0.encodeJSON(R))}if(P(),u==="svg")return k(p?S:t0.encodeSVG(S));var z=document.createElement("canvas");z.id=Oo.randstr(),Bye({format:u,width:E,height:D,scale:v,canvas:z,svg:S,promise:!0}).then(k).catch(M)})}function T(k){return p?k.replace(t0.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){UN.newPlot(m,t,y,x).then(w).then(_).then(b).then(function(S){k(T(S))}).catch(function(S){M(S)})})}GN.exports=Uye});var WN=N((EPe,VN)=>{"use strict";var Mi=Ce(),Gye=aa(),Yye=If(),Vye=js().dfltConfig,oo=Mi.isPlainObject,Mu=Array.isArray,I_=Mi.isArrayOrTypedArray;VN.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=Yye.get(),n=[],i={_context:Mi.extendFlat({},Vye)},o,l;Mu(r)?(i.data=Mi.extendDeep([],r),o=r):(i.data=[],o=[],n.push(qa("array","data"))),oo(t)?(i.layout=Mi.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(qa("object","layout"))),Gye.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;fc.length&&a.push(qa("unused",n,u.concat(c.length)));var x=c.length,w=Array.isArray(y);w&&(x=Math.min(x,y.length));var _,b,T,k,M;if(v.dimensions===2)for(b=0;bc[b].length&&a.push(qa("unused",n,u.concat(b,c[b].length)));var S=c[b].length;for(_=0;_<(w?Math.min(S,y[b].length):S);_++)T=w?y[b][_]:y,k=f[b][_],M=c[b][_],Mi.validate(k,T)?M!==k&&M!==+k&&a.push(qa("dynamic",n,u.concat(b,_),k,M)):a.push(qa("value",n,u.concat(b,_),k))}else a.push(qa("array",n,u.concat(b),f[b]));else for(b=0;b{"use strict";var Kye=Ce(),tm=yl();function Qye(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var s,u;if(n)return s=tm.createBlob(e,t),u=tm.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),tm.revokeObjectURL(u),s=null,o(r);if(Kye.isSafari()){var f=t==="svg"?",":";base64,";return tm.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}jN.exports=Qye});var O_=N((PPe,JN)=>{"use strict";var XN=Ce(),eme=z_(),rme=ZN(),RPe=yl();function tme(e,r){var t;return XN.isPlainObject(e)||(t=XN.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=eme(e,r),o=r.filename||e.fn||"newplot";o+="."+r.format.replace("-","."),i.then(function(l){return t&&(t._snapshotInProgress=!1),rme(l,o,r.format)}).then(function(l){a(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),n(l)})})}JN.exports=tme});var rz=N(B_=>{"use strict";var In=Ce(),On=In.isPlainObject,$N=If(),KN=aa(),ame=mn(),QN=At(),ez=js().dfltConfig;B_.makeTemplate=function(e){e=In.isPlainObject(e)?e:In.getGraphDiv(e),e=In.extendDeep({_context:ez},{data:e.data,layout:e.layout}),KN.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var p={};a0(d,p,ime.bind(null,d));var m=In.coerce(d,{},ame,"type"),y=a.data[m];y||(y=a.data[m]=[]),y.push(p)}),a0(t,a.layout,nme.bind(null,t)),delete a.layout.template;var n=t.template;if(On(n)){var i=n.layout,o,l,s,u,f,c;On(i)&&am(i,a.layout);var v=n.data;if(On(v)){for(l in a.data)if(s=v[l],Array.isArray(s)){for(f=a.data[l],c=f.length,u=s.length,o=0;ox?o.push({code:"unused",traceType:d,templateCount:y,dataCount:x}):x>y&&o.push({code:"reused",traceType:d,templateCount:y,dataCount:x})}}function w(_,b){for(var T in _)if(T.charAt(0)!=="_"){var k=_[T],M=ki(_,T,b);On(k)?(Array.isArray(_)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:M,templateitemname:k.templateitemname}),w(k,M)):Array.isArray(k)&&ome(k)&&w(k,M)}}if(w({data:s,layout:l},""),o.length)return o.map(lme)};function ome(e){for(var r=0;r{"use strict";var ma=R_();Rt._doPlot=ma._doPlot;Rt.newPlot=ma.newPlot;Rt.restyle=ma.restyle;Rt.relayout=ma.relayout;Rt.redraw=ma.redraw;Rt.update=ma.update;Rt._guiRestyle=ma._guiRestyle;Rt._guiRelayout=ma._guiRelayout;Rt._guiUpdate=ma._guiUpdate;Rt._storeDirectGUIEdit=ma._storeDirectGUIEdit;Rt.react=ma.react;Rt.extendTraces=ma.extendTraces;Rt.prependTraces=ma.prependTraces;Rt.addTraces=ma.addTraces;Rt.deleteTraces=ma.deleteTraces;Rt.moveTraces=ma.moveTraces;Rt.purge=ma.purge;Rt.addFrames=ma.addFrames;Rt.deleteFrames=ma.deleteFrames;Rt.animate=ma.animate;Rt.setPlotConfig=ma.setPlotConfig;var sme=Xv().getGraphDiv,ume=py().eraseActiveShape;Rt.deleteActiveShape=function(e){return ume(sme(e))};Rt.toImage=z_();Rt.validate=WN();Rt.downloadImage=O_();var tz=rz();Rt.makeTemplate=tz.makeTemplate;Rt.validateTemplate=tz.validateTemplate});var U_=N((zPe,nz)=>{"use strict";var H_=Ce(),fme=gr();nz.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=fme.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=H_.minRowLength(i);o?l=Math.min(u,H_.minRowLength(o)):(l=u,n("y0"),n("dy"))}else{if(!o)return 0;l=H_.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var dc=N((IPe,lz)=>{"use strict";var iz=Ce().dateTick0,cme=Nt(),vme=cme.ONEWEEK;function oz(e,r){return e%vme===0?iz(r,1):iz(r,0)}lz.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",oz(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",oz(l,t.ycalendar)),n("yperiodalignment"))}}});var fz=N((OPe,uz)=>{"use strict";var sz=["orientation","groupnorm","stackgaps"];uz.exports=function(r,t,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var u=s[o],f=!1;u?u.traces.push(t):(u=s[o]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},v=0;v{"use strict";var cz=Tr(),vz=vi().hasColorscale,hz=ul(),hme=Dn();dz.exports=function(r,t,a,n,i,o){var l=hme.isBubble(r),s=(r.line||{}).color,u;if(o=o||{},s&&(a=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",a),vz(r,"marker")&&hz(r,t,n,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:l?u=cz.background:u=cz.defaultLine,i("marker.line.color",u),vz(r,"marker.line")&&hz(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0)),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var Y_=N((HPe,pz)=>{"use strict";var dme=Ce().isArrayOrTypedArray,pme=vi().hasColorscale,yme=ul();pz.exports=function(r,t,a,n,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",a),pme(r,"line"))yme(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(dme(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var V_=N((UPe,yz)=>{"use strict";yz.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var W_=N((GPe,mz)=>{"use strict";var mme=Ce();mz.exports=function(e,r,t,a,n){n=n||{},a("textposition"),mme.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var j_=N((YPe,bz)=>{"use strict";var im=Tr(),gz=Ce().isArrayOrTypedArray;function gme(e){for(var r=im.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var xz=Ce(),bme=gr(),xme=wi(),_me=Vh(),pc=Dn(),wme=U_(),Tme=dc(),Ame=fz(),Mme=G_(),kme=Y_(),_z=V_(),Sme=W_(),qme=j_(),Lme=Ce().coercePattern;wz.exports=function(r,t,a,n){function i(d,p){return xz.coerce(r,t,xme,d,p)}var o=wme(r,t,n,i);if(o||(t.visible=!1),!!t.visible){Tme(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=Ame(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o<_me.PTS_LINESONLY?"lines+markers":"lines";i("text"),i("hovertext"),i("mode",s),pc.hasMarkers(t)&&Mme(r,t,a,n,i,{gradient:!0}),pc.hasLines(t)&&(kme(r,t,a,n,i,{backoff:!0}),_z(r,t,i),i("connectgaps"),i("line.simplify")),pc.hasText(t)&&(i("texttemplate"),Sme(r,t,n,i));var u=[];(pc.hasMarkers(t)||pc.hasText(t))&&(i("cliponaxis"),i("marker.maxdisplayed"),u.push("points")),i("fill",l?l.fillDflt:"none"),t.fill!=="none"&&(qme(r,t,a,i,{moduleHasFillgradient:!0}),pc.hasLines(t)||_z(r,t,i),Lme(i,"fillpattern",t.fillcolor,!1));var f=(t.line||{}).color,c=(t.marker||{}).color;(t.fill==="tonext"||t.fill==="toself")&&u.push("fills"),i("hoveron",u.join("+")||"points"),t.hoveron!=="fills"&&i("hovertemplate");var v=bme.getComponentMethod("errorbars","supplyDefaults");v(r,t,f||c||a,{axis:"y"}),v(r,t,f||c||a,{axis:"x",inherit:"y"}),xz.coerceSelectionMarkerOpacity(t,i)}}});var n0=N((WPe,Az)=>{"use strict";var Cme=Tu().getAxisGroup;Az.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=Cme(a,l)+o,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var v=c[f];v?v.traces.push(t):v=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=v.offsetGroups,m=p[d];t._offsetIndex=0,(i!=="group"||d)&&(m||(m=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=m.offsetIndex)}});var kz=N((jPe,Mz)=>{"use strict";var Eme=Ce(),Dme=n0(),Rme=wi();Mz.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return Eme.coerce(n._input,n,Rme,v)}if(t.scattermode==="group")for(i=0;i=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var qz=N((ZPe,Sz)=>{"use strict";var Pme=Ce(),Fme=Wp();Sz.exports=function(e,r){function t(n,i){return Pme.coerce(e,r,Fme,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var yc=N((XPe,Cz)=>{"use strict";var Nme=Rr(),Lz=Ce(),zme=Lz.dateTime2ms,om=Lz.incrementMonth,Ime=Nt(),Ome=Ime.ONEAVGMONTH;Cz.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var o=r[a+"period"],l;if(Nme(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",v=r[a+"period0"],d=zme(v,u)||0,p=[],m=[],y=[],x=n.length,w=0;w_;)k=om(k,-l,u);for(;k<=_;)k=om(k,l,u);T=om(k,-l,u)}else{for(b=Math.round((_-d)/o),k=d+b*o;k>_;)k-=o;for(;k<=_;)k+=o;T=k-o}p[w]=f?T:c?k:(T+k)/2,m[w]=T,y[w]=k}return{vals:p,starts:m,ends:y}}});var J_=N((JPe,Dz)=>{"use strict";var Z_=vi().hasColorscale,X_=fh(),Ez=Dn();Dz.exports=function(r,t){Ez.hasLines(t)&&Z_(t,"line")&&X_(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),Ez.hasMarkers(t)&&(Z_(t,"marker")&&X_(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Z_(t,"marker.line")&&X_(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var lm=N(($Pe,Rz)=>{"use strict";var Wt=Ce();Rz.exports=function(r,t){for(var a=0;a{"use strict";var Pz=Ce();Fz.exports=function(r,t){Pz.isArrayOrTypedArray(t.selectedpoints)&&Pz.tagSelected(r,t)}});var um=N((QPe,Uz)=>{"use strict";var Nz=Rr(),K_=Ce(),i0=Ir(),zz=yc(),$_=Nt().BADNUM,Q_=Dn(),Bme=J_(),Hme=lm(),Ume=sm();function Gme(e,r){var t=e._fullLayout,a=r._xA=i0.getFromId(e,r.xaxis||"x","x"),n=r._yA=i0.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=zz(r,a,"x",i),s=zz(r,n,"y",o),u=l.vals,f=s.vals,c=r._length,v=new Array(c),d=r.ids,p=e4(r,t,a,n),m=!1,y,x,w,_,b,T;Bz(t,r);var k="x",M="y",S;if(p)K_.pushUnique(p.traceIndices,r.index),y=p.orientation==="v",y?(M="s",S="x"):(k="s",S="y"),b=p.stackgaps==="interpolate";else{var E=Oz(r,c);Iz(e,r,a,n,u,f,E)}var D=!!r.xperiodalignment,P=!!r.yperiodalignment;for(x=0;xx&&v[_].gap;)_--;for(T=v[_].s,w=v.length-1;w>_;w--)v[w].s=T;for(;x<_;)if(x++,v[x].gap){for(w=x+1;v[w].gap;)w++;for(var B=v[x-1][S],V=v[x-1].s,G=(v[w].s-V)/(v[w][S]-B);x{"use strict";Gz.exports=fm;var Yme=Ce().distinctVals;function fm(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";var Si=Rr(),ss=Ce().isArrayOrTypedArray,mc=Nt().BADNUM,Vme=gr(),o0=Ir(),Wme=Tu().getAxisGroup,cm=Yz();function jme(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;us+o||!Si(l))}for(var f=0;f{"use strict";var Xz=um(),Jz=vm().setGroupPositions;function ige(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;uE[f]&&f{"use strict";var lge=Wr(),tI=Nt(),l0=tI.BADNUM,aI=tI.LOG_CLIP,Qz=aI+.5,eI=aI-.5,hm=Ce(),sge=hm.segmentsIntersect,rI=hm.constrain,o4=Vh();nI.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,v=t.connectGaps,d=t.baseTolerance,p=t.shape,m=p==="linear",y=a.fill&&a.fill!=="none",x=[],w=o4.minTolerance,_=r.length,b=new Array(_),T=0,k,M,S,E,D,P,R,z,O,B,V,G,U,Y,J,Z;function re(Fe){var ne=r[Fe];if(!ne)return!1;var de=t.linearized?n.l2p(ne.x):n.c2p(ne.x),Ee=t.linearized?i.l2p(ne.y):i.c2p(ne.y);if(de===l0){if(o&&(de=n.c2p(ne.x,!0)),de===l0)return!1;l&&Ee===l0&&(de*=Math.abs(n._m*u*(n._m>0?Qz:eI)/(i._m*s*(i._m>0?Qz:eI)))),de*=1e3}if(Ee===l0){if(l&&(Ee=i.c2p(ne.y,!0)),Ee===l0)return!1;Ee*=1e3}return[de,Ee]}function se(Fe,ne,de,Ee){var Le=de-Fe,ar=Ee-ne,sr=.5-Fe,nr=.5-ne,Mr=Le*Le+ar*ar,Or=Le*sr+ar*nr;if(Or>0&&Or1||Math.abs(sr.y-de[0][1])>1)&&(sr=[sr.x,sr.y],Ee&&Te(sr,Fe)ie||Fe[1]W)return[rI(Fe[0],ve,ie),rI(Fe[1],pe,W)]}function Ge(Fe,ne){if(Fe[0]===ne[0]&&(Fe[0]===ve||Fe[0]===ie)||Fe[1]===ne[1]&&(Fe[1]===pe||Fe[1]===W))return!0}function He(Fe,ne){var de=[],Ee=ze(Fe),Le=ze(ne);return Ee&&Le&&Ge(Ee,Le)||(Ee&&de.push(Ee),Le&&de.push(Le)),de}function De(Fe,ne,de){return function(Ee,Le){var ar=ze(Ee),sr=ze(Le),nr=[];if(ar&&sr&&Ge(ar,sr))return nr;ar&&nr.push(ar),sr&&nr.push(sr);var Mr=2*hm.constrain((Ee[Fe]+Le[Fe])/2,ne,de)-((ar||Ee)[Fe]+(sr||Le)[Fe]);if(Mr){var Or;ar&&sr?Or=Mr>0==ar[Fe]>sr[Fe]?ar:sr:Or=ar||sr,Or[Fe]+=Mr}return nr}}var Ie;p==="linear"||p==="spline"?Ie=Re:p==="hv"||p==="vh"?Ie=He:p==="hvh"?Ie=De(0,ve,ie):p==="vhv"&&(Ie=De(1,pe,W));function Be(Fe,ne){var de=ne[0]-Fe[0],Ee=(ne[1]-Fe[1])/de,Le=(Fe[1]*ne[0]-ne[1]*Fe[0])/de;return Le>0?[Ee>0?ve:ie,W]:[Ee>0?ie:ve,pe]}function ue(Fe){var ne=Fe[0],de=Fe[1],Ee=ne===b[T-1][0],Le=de===b[T-1][1];if(!(Ee&&Le))if(T>1){var ar=ne===b[T-2][0],sr=de===b[T-2][1];Ee&&(ne===ve||ne===ie)&&ar?sr?T--:b[T-1]=Fe:Le&&(de===pe||de===W)&&sr?ar?T--:b[T-1]=Fe:b[T++]=Fe}else b[T++]=Fe}function Ae(Fe){b[T-1][0]!==Fe[0]&&b[T-1][1]!==Fe[1]&&ue([_e,ye]),ue(Fe),Pe=null,_e=ye=0}var je=hm.isArrayOrTypedArray(c);function ur(Fe){if(Fe&&f&&(Fe.i=k,Fe.d=r,Fe.trace=a,Fe.marker=je?c[Fe.i]:c,Fe.backoff=f),oe=Fe[0]/s,ce=Fe[1]/u,j=Fe[0]ie?ie:0,me=Fe[1]W?W:0,j||me){if(!T)b[T++]=[j||Fe[0],me||Fe[1]];else if(Pe){var ne=Ie(Pe,Fe);ne.length>1&&(Ae(ne[0]),b[T++]=ne[1])}else Ne=Ie(b[T-1],Fe)[0],b[T++]=Ne;var de=b[T-1];j&&me&&(de[0]!==j||de[1]!==me)?(Pe&&(_e!==j&&ye!==me?ue(_e&&ye?Be(Pe,Fe):[_e||j,ye||me]):_e&&ye&&ue([_e,ye])),ue([j,me])):_e-j&&ye-me&&ue([j||_e,me||ye]),Pe=Fe,_e=j,ye=me}else Pe&&Ae(Ie(Pe,Fe)[0]),b[T++]=Fe}for(k=0;k<_;k++)if(M=re(k),!!M){for(T=0,Pe=null,ur(M),k++;k<_;k++){if(E=re(k),!E){if(v)continue;break}if(!m||!t.simplify){ur(E);continue}var lr=re(k+1);if(B=Te(E,M),!(!(y&&(T===0||T===_-1))&&BK(P,lr))break;S=P,U=O[0]*z[0]+O[1]*z[1],U>V?(V=U,E=P,R=!1):U=r.length||!P)break;ur(P),M=P}}Pe&&ue([_e||Pe[0],ye||Pe[1]]),x.push(b.slice(0,T))}var fe=p.slice(p.length-1);if(f&&fe!=="h"&&fe!=="v"){for(var qe=!1,Oe=-1,Ze=[],Ue=0;Ue{"use strict";var iI={tonextx:1,tonexty:1,tonext:1};oI.exports=function(r,t,a){var n,i,o,l,s,u={},f=!1,c=-1,v=0,d=-1;for(i=0;i=0?s=d:(s=d=v,v++),s{"use strict";var lo=Sr(),uge=gr(),s0=Ce(),bc=s0.ensureSingle,uI=s0.identity,jt=Wr(),xc=Dn(),fge=l4(),cge=lI(),dm=a_().tester;fI.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=cge(r,t,a);if(l=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),vge(r,l,t),f){o&&(s=o());var v=lo.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});v.each(function(){n.selectAll("g.trace").each(function(d,p){sI(r,p,t,d,c,this,i)})})}else l.each(function(d,p){sI(r,p,t,d,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function vge(e,r,t){r.each(function(a){var n=bc(lo.select(this),"g","fills");jt.setClipUrl(n,t.layerClipId,e);var i=a[0].trace,o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=n.selectAll("g").data(o,uI);l.enter().append("g"),l.exit().each(function(s){i[s]=null}).remove(),l.order().each(function(s){i[s]=bc(lo.select(this),"path","js-fill")})})}function sI(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;hge(e,r,t,a,n);var u=!!o&&o.duration>0;function f(De){return u?De.transition():De}var c=t.xaxis,v=t.yaxis,d=a[0].trace,p=d.line,m=lo.select(i),y=bc(m,"g","errorbars"),x=bc(m,"g","lines"),w=bc(m,"g","points"),_=bc(m,"g","text");if(uge.getComponentMethod("errorbars","plot")(e,y,t,o),d.visible!==!0)return;f(m).style("opacity",d.opacity);var b,T,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var M,S;k==="y"?(M=1,S=v.c2p(0,!0)):k==="x"&&(M=0,S=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=m;var E="",D=[],P=d._prevtrace,R=null,z=null;P&&(E=P._prevRevpath||"",T=P._nextFill,D=P._ownPolygons,R=P._fillsegments,z=P._fillElement);var O,B,V="",G="",U,Y,J,Z,re,se,oe=[];d._polygons=[];var ce=[],K=[],Te=s0.noop;if(b=d._ownFill,xc.hasLines(d)||d.fill!=="none"){T&&T.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(U=jt.steps(p.shape),Y=jt.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?U=Y=function(De){var Ie=De[De.length-1];return De.length>1&&De[0][0]===Ie[0]&&De[0][1]===Ie[1]?jt.smoothclosed(De.slice(1),p.smoothing):jt.smoothopen(De,p.smoothing)}:U=Y=function(De){return"M"+De.join("L")},J=function(De){return Y(De.reverse())},K=fge(a,{xaxis:c,yaxis:v,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),ce=new Array(K.length);var le=0;for(s=0;s=l[0]&&m.x<=l[1]&&m.y>=s[0]&&m.y<=s[1]}),v=Math.ceil(c.length/f),d=0;n.forEach(function(m,y){var x=m[0].trace;xc.hasMarkers(x)&&x.marker.maxdisplayed>0&&y{"use strict";cI.exports={container:"marker",min:"cmin",max:"cmax"}});var u4=N((lFe,vI)=>{"use strict";var pm=Ir();vI.exports=function(r,t,a){var n={},i={_fullLayout:a},o=pm.getFromTrace(i,t,"x"),l=pm.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=pm.tickText(o,o.c2l(s),!0).text,n.yLabel=pm.tickText(l,l.c2l(u),!0).text,n}});var ku=N((sFe,hI)=>{"use strict";var f4=Sr(),_c=Wr(),dge=gr();function pge(e){var r=f4.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=f4.select(this),n=t.trace||t[0].trace;c4(a,n,e)}),r.selectAll("g.text").each(function(t){var a=f4.select(this),n=t.trace||t[0].trace;v4(a,n,e)}),r.selectAll("g.trace path.js-line").call(_c.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(_c.fillGroupStyle,e,!1),dge.getComponentMethod("errorbars","style")(r)}function c4(e,r,t){_c.pointStyle(e.selectAll("path.point"),r,t)}function v4(e,r,t){_c.textPointStyle(e.selectAll("text"),r,t)}function yge(e,r,t){var a=r[0].trace;a.selectedpoints?(_c.selectedPointStyle(t.selectAll("path.point"),a),_c.selectedTextStyle(t.selectAll("text"),a)):(c4(t,a,e),v4(t,a,e))}hI.exports={style:pge,stylePoints:c4,styleText:v4,styleOnSelect:yge}});var pI=N((uFe,dI)=>{"use strict";var wc=Tr(),mge=Dn();dI.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&wc.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&wc.opacity(i)?i:o&&wc.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?wc.opacity(n)<.3?wc.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&wc.opacity(a)&&mge.hasLines(r)&&r.line.width?a:r.fillcolor)}});var d4=N((fFe,mI)=>{"use strict";var ym=Ce(),yI=Pn(),gge=gr(),bge=pI(),h4=Tr(),xge=ym.fillText;mI.exports=function(r,t,a,n){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,u=l.c2p(t),f=s.c2p(a),c=[u,f],v=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,m=!!o.yperiodalignment;if(v.indexOf("points")!==-1){var y=function(G){if(p){var U=l.c2p(G.xStart),Y=l.c2p(G.xEnd);return u>=Math.min(U,Y)&&u<=Math.max(U,Y)?0:1/0}var J=Math.max(3,G.mrc||0),Z=1-1/J,re=Math.abs(l.c2p(G.x)-u);return re=Math.min(U,Y)&&f<=Math.max(U,Y)?0:1/0}var J=Math.max(3,G.mrc||0),Z=1-1/J,re=Math.abs(s.c2p(G.y)-f);return reoe!=W>=oe&&(ve=Te[K-1][0],ie=Te[K][0],W-pe&&(le=ve+(ie-ve)*(oe-pe)/(W-pe),J=Math.min(J,le),Z=Math.max(Z,le)));return J=Math.max(J,0),Z=Math.min(Z,l._length),{x0:J,x1:Z,y0:oe,y1:oe}}if(v.indexOf("fills")!==-1&&o._fillElement){var O=R(o._fillElement)&&!R(o._fillExclusionElement);if(O){var B=z(o._polygons);B===null&&(B={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var V=h4.defaultLine;return h4.opacity(o.fillcolor)?V=o.fillcolor:h4.opacity((o.line||{}).color)&&(V=o.line.color),ym.extendFlat(r,{distance:r.maxHoverDistance,x0:B.x0,x1:B.x1,y0:B.y0,y1:B.y1,color:V,hovertemplate:!1}),delete r.index,o.text&&!ym.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var p4=N((cFe,bI)=>{"use strict";var gI=Dn();bI.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,v=!gI.hasMarkers(l)&&!gI.hasText(l);if(v)return[];if(t===!1)for(s=0;s{"use strict";xI.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var MI=N((hFe,AI)=>{"use strict";var f0=gr().traceIs,y4=w1();AI.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(_ge(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function _ge(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=wge(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=a+"calendar",l=i[o],s={noMultiCategory:!f0(i,"cartesian")||f0(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,TI(i,a)){var u=wI(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(TI(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function wI(e){return{v:"x",h:"y"}[e.orientation||"v"]}function TI(e,r){var t=wI(e),a=f0(e,"box-violin"),n=f0(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var SI=N((dFe,kI)=>{"use strict";var Tge=Vn().isTypedArraySpec;function Age(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,o;if(r.axData)n=r.axData;else for(n=[],i=0;i0||Tge(i),l;o&&(l="array");var s=a("categoryorder",l),u;s==="array"&&(u=a("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=Age(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var m4=N((pFe,LI)=>{"use strict";var qI=kn().mix,Mge=li(),kge=Ce();LI.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(S,E){return kge.coerce2(r,t,n.attributes,S,E)}var l=o("linecolor",i),s=o("linewidth"),u=a("showline",n.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=qI(i,n.bgColor,n.blend||Mge.lightFraction).toRgbString(),c=o("gridcolor",f),v=o("gridwidth"),d=o("griddash"),p=a("showgrid",n.showGrid||!!c||!!v||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var m=qI(t.gridcolor,n.bgColor,67).toRgbString(),y=o("minor.gridcolor",m),x=o("minor.gridwidth",t.gridwidth||1),w=o("minor.griddash",t.griddash||"solid"),_=a("minor.showgrid",!!y||!!x||!!w);_||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var b=o("zerolinelayer"),T=o("zerolinecolor",i),k=o("zerolinewidth"),M=a("zeroline",n.showGrid||!!T||!!k);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var b4=N((yFe,FI)=>{"use strict";var CI=Rr(),Sge=gr(),c0=Ce(),qge=At(),Lge=eo(),g4=hi(),EI=a1(),DI=n1(),Cge=o1(),Ege=l1(),Dge=SI(),Rge=m4(),Pge=e5(),RI=Zf(),mm=Ea().WEEKDAY_PATTERN,Fge=Ea().HOUR_PATTERN;FI.exports=function(r,t,a,n,i){var o=n.letter,l=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",v;if(c==="date"){var d=Sge.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(v=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=c0.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),RI(t,i),Pge(r,t,a,n),Dge(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var m=a("color"),y=m!==g4.color.dflt?m:l.color,x=s.label||i._dfltTitle[o];if(Ege(r,t,a,c,n),!u)return t;a("title.text",x),c0.coerceFont(a,"title.font",l,{overrideDflt:{size:c0.bigFont(l.size),color:y}}),EI(r,t,a,c);var w=n.hasMinor;if(w&&(qge.newContainer(t,"minor"),EI(r,t,a,c,{isMinor:!0})),Cge(r,t,a,c,n),DI(r,t,a,n),w){var _=n.isMinor;n.isMinor=!0,DI(r,t,a,n),n.isMinor=_}Rge(r,t,a,{dfltColor:m,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:w,attributes:g4}),w&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var b=c==="multicategory";if(!n.noTickson&&(c==="category"||b)&&(t.ticks||t.showgrid)&&(b?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),b){var T=a("showdividers");T&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(Lge(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Nge}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=PI(i[l]),s){o=mm;break}}var u=a("pattern",o);if(u===mm)for(l=0;l<2;l++)s=PI(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case mm:if(!CI(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case Fge:if(!CI(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var Ige=Rr(),gm=Ce();NI.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,u=n.overlayingDomain,f,c,v,d,p,m;s&&(c=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],c&&(v=s[l+"side"].split(" ")[0],d=s.domain[l][v==="right"||v==="top"?1:0])),c=c||[0,1],f=f||(Ige(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,m=!1;var y=gm.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),x=gm.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:v}},"side");if(y==="free"){if(l==="y"){var w=a("autoshift");w&&(d=x==="left"?u[0]:u[1],m=t.automargin?t.automargin:!0,p=x==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",m);var _=!1;if(o.length&&(_=gm.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!_){var b=a("domain",c);b[0]>b[1]-1/4096&&(t.domain=c),gm.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var VI=N((gFe,YI)=>{"use strict";var Su=Ce(),zI=Tr(),Oge=qo().isUnifiedHover,Bge=k5(),II=At(),Hge=Sf(),OI=hi(),Uge=MI(),BI=b4(),Gge=Tu(),HI=x4(),w4=ia(),Bo=w4.id2name,UI=w4.name2id,Yge=Ea().AX_ID_PATTERN,GI=gr(),bm=GI.traceIs,_4=GI.getComponentMethod;function xm(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}YI.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},u={},f={},c={},v={},d={},p={},m,y;for(m=0;m{"use strict";var Vge=Sr(),WI=gr(),_m=Ce(),Kn=Wr(),wm=Ir();jI.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){wm.redrawComponents(r);return}function o(y){var x=y.xaxis,w=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(Kn.setTranslate,0,0).call(Kn.setScale,1,1),y.plot.call(Kn.setTranslate,x._offset,w._offset).call(Kn.setScale,1,1);var _=y.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call(Kn.setPointGroupScale,1,1),_.selectAll(".textpoint").call(Kn.setTextPointsScale,1,1),_.call(Kn.hideOutsideRangePoints,y)}function l(y,x){var w=y.plotinfo,_=w.xaxis,b=w.yaxis,T=_._length,k=b._length,M=!!y.xr1,S=!!y.yr1,E=[];if(M){var D=_m.simpleMap(y.xr0,_.r2l),P=_m.simpleMap(y.xr1,_.r2l),R=D[1]-D[0],z=P[1]-P[0];E[0]=(D[0]*(1-x)+x*P[0]-D[0])/(D[1]-D[0])*T,E[2]=T*(1-x+x*z/R),_.range[0]=_.l2r(D[0]*(1-x)+x*P[0]),_.range[1]=_.l2r(D[1]*(1-x)+x*P[1])}else E[0]=0,E[2]=T;if(S){var O=_m.simpleMap(y.yr0,b.r2l),B=_m.simpleMap(y.yr1,b.r2l),V=O[1]-O[0],G=B[1]-B[0];E[1]=(O[1]*(1-x)+x*B[1]-O[1])/(O[0]-O[1])*k,E[3]=k*(1-x+x*G/V),b.range[0]=_.l2r(O[0]*(1-x)+x*B[0]),b.range[1]=b.l2r(O[1]*(1-x)+x*B[1])}else E[1]=0,E[3]=k;wm.drawOne(r,_,{skipTitle:!0}),wm.drawOne(r,b,{skipTitle:!0}),wm.redrawComponents(r,[_._id,b._id]);var U=M?T/E[2]:1,Y=S?k/E[3]:1,J=M?E[0]:0,Z=S?E[1]:0,re=M?E[0]/E[2]*T:0,se=S?E[1]/E[3]*k:0,oe=_._offset-re,ce=b._offset-se;w.clipRect.call(Kn.setTranslate,J,Z).call(Kn.setScale,1/U,1/Y),w.plot.call(Kn.setTranslate,oe,ce).call(Kn.setScale,U,Y),Kn.setPointGroupScale(w.zoomScalePts,1/U,1/Y),Kn.setTextPointsScale(w.zoomScaleTxt,1/U,1/Y)}var s;n&&(s=n());function u(){for(var y={},x=0;xa.duration?(u(),d=window.cancelAnimationFrame(m)):d=window.requestAnimationFrame(m)}return c=Date.now(),d=window.requestAnimationFrame(m),Promise.resolve()}});var qi=N(Ka=>{"use strict";var Am=Sr(),XI=gr(),qu=Ce(),Wge=aa(),jge=Wr(),JI=Xp().getModuleCalcData,us=ia(),so=Ea(),Zge=ll(),et=qu.ensureSingle;function Tm(e,r,t){return qu.ensureSingle(e,r,t,function(a){a.datum(t)})}var Lu=so.zindexSeparator;Ka.name="cartesian";Ka.attr=["xaxis","yaxis"];Ka.idRoot=["x","y"];Ka.idRegex=so.idRegex;Ka.attrRegex=so.attrRegex;Ka.attributes=_I();Ka.layoutAttributes=hi();Ka.supplyLayoutDefaults=VI();Ka.transitionAxes=ZI();Ka.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,o=i,l={},s={},u,f,c;for(u=0;u0){var d=v.id;if(d.indexOf(Lu)!==-1)continue;d+=Lu+(u+1),v=qu.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],m,y=0;y1&&(T+=Lu+b),_.push(l+T),o=0;o1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=et(a,"path","xlines-above"),r.ylines=et(a,"path","ylines-above"),r.xaxislayer=et(a,"g","xaxislayer-above"),r.yaxislayer=et(a,"g","yaxislayer-above");else{if(!o){var v=et(a,"g","layer-subplot");r.shapelayer=et(v,"g","shapelayer"),r.imagelayer=et(v,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=et(a,"g","minor-gridlayer"),r.gridlayer=et(a,"g","gridlayer"),r.zerolinelayer=et(a,"g","zerolinelayer"));var d=et(a,"g","layer-between");r.shapelayerBetween=et(d,"g","shapelayer"),r.imagelayerBetween=et(d,"g","imagelayer"),et(a,"path","xlines-below"),et(a,"path","ylines-below"),r.overlinesBelow=et(a,"g","overlines-below"),et(a,"g","xaxislayer-below"),et(a,"g","yaxislayer-below"),r.overaxesBelow=et(a,"g","overaxes-below")}r.overplot=et(a,"g","overplot"),r.plot=et(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=et(a,"g","zerolinelayer-above"),o||(r.xlines=et(a,"path","xlines-above"),r.ylines=et(a,"path","ylines-above"),r.overlinesAbove=et(a,"g","overlines-above"),et(a,"g","xaxislayer-above"),et(a,"g","yaxislayer-above"),r.overaxesAbove=et(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,m=n+"-x",y=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,et(c.overlinesBelow,"path",m),et(c.overlinesBelow,"path",y),et(c.overaxesBelow,"g",m),et(c.overaxesBelow,"g",y),r.plot=et(c.overplot,"g",n),et(c.overlinesAbove,"path",m),et(c.overlinesAbove,"path",y),et(c.overaxesAbove,"g",m),et(c.overaxesAbove,"g",y),r.xlines=p.select(".overlines-"+l).select("."+m),r.ylines=p.select(".overlines-"+s).select("."+y),r.xaxislayer=p.select(".overaxes-"+l).select("."+m),r.yaxislayer=p.select(".overaxes-"+s).select("."+y)}o||(u||(Tm(r.minorGridlayer,"g",r.xaxis._id),Tm(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(x){return x[0]}).sort(us.idSort),Tm(r.gridlayer,"g",r.xaxis._id),Tm(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(x){return x[0]}).sort(us.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function QI(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=Am.select(this);f.remove(),eO(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],o=0;o{"use strict";var Mm=Dn();rO.exports={hasLines:Mm.hasLines,hasMarkers:Mm.hasMarkers,hasText:Mm.hasText,isBubble:Mm.isBubble,attributes:wi(),layoutAttributes:Wp(),supplyDefaults:Tz(),crossTraceDefaults:kz(),supplyLayoutDefaults:qz(),calc:um().calc,crossTraceCalc:Kz(),arraysToCalcdata:lm(),plot:s4(),colorbar:u0(),formatLabels:u4(),style:ku().style,styleOnSelect:ku().styleOnSelect,hoverPoints:d4(),selectPoints:p4(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:qi(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var iO=N((wFe,nO)=>{"use strict";var Jge=Sr(),$ge=Tr(),aO=p_(),T4=Ce(),Kge=T4.strScale,Qge=T4.strRotate,e2e=T4.strTranslate;nO.exports=function(r,t,a){var n=r.node(),i=aO[a.arrowhead||0],o=aO[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,v=o.backoff*s+a.startstandoff,d,p,m,y;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var x=d.x-p.x,w=d.y-p.y;if(m=Math.atan2(w,x),y=m+Math.PI,c&&v&&c+v>Math.sqrt(x*x+w*w)){O();return}if(c){if(c*c>x*x+w*w){O();return}var _=c*Math.cos(m),b=c*Math.sin(m);p.x+=_,p.y+=b,r.attr({x2:p.x,y2:p.y})}if(v){if(v*v>x*x+w*w){O();return}var T=v*Math.cos(m),k=v*Math.sin(m);d.x-=T,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var M=n.getTotalLength(),S="";if(M{"use strict";var oO=Sr(),A4=gr(),r2e=aa(),cs=Ce(),M4=cs.strTranslate,h0=Ir(),Cu=Tr(),ml=Wr(),lO=Pn(),k4=Da(),S4=rs(),v0=pi(),t2e=At().arrayEditor,a2e=iO();fO.exports={draw:n2e,drawOne:sO,drawRaw:uO};function n2e(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Le="right":Le="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Le]}for(var pe=!1,W=["x","y"],Q=0;Q1)&&(_e===me?(lr=ye.r2fraction(r["a"+j]),(lr<0||lr>1)&&(pe=!0)):pe=!0),Ie=ye._offset+ye.r2p(r[j]),Ae=.5}else{var fe=ur==="domain";j==="x"?(ue=r[j],Ie=fe?ye._offset+ye._length*ue:Ie=l.l+l.w*ue):(ue=1-r[j],Ie=fe?ye._offset+ye._length*ue:Ie=l.t+l.h*ue),Ae=r.showarrow?.5:ue}if(r.showarrow){De.head=Ie;var qe=r["a"+j];if(je=Ne*ie(.5,r.xanchor)-Re*ie(.5,r.yanchor),_e===me){var Oe=h0.getRefType(_e);Oe==="domain"?(j==="y"&&(qe=1-qe),De.tail=ye._offset+ye._length*qe):Oe==="paper"?j==="y"?(qe=1-qe,De.tail=l.t+l.h*qe):De.tail=l.l+l.w*qe:De.tail=ye._offset+ye.r2p(qe),Be=je}else De.tail=Ie+qe,Be=je+qe;De.text=De.tail+je;var Ze=o[j==="x"?"width":"height"];if(me==="paper"&&(De.head=cs.constrain(De.head,1,Ze-1)),_e==="pixel"){var Ue=-Math.max(De.tail-3,De.text),Xe=Math.min(De.tail+3,De.text)-Ze;Ue>0?(De.tail+=Ue,De.text+=Ue):Xe>0&&(De.tail-=Xe,De.text-=Xe)}De.tail+=He,De.head+=He}else je=ze*ie(Ae,Ge),Be=je,De.text=Ie+je;De.text+=He,je+=He,Be+=He,r["_"+j+"padplus"]=ze/2+Be,r["_"+j+"padminus"]=ze/2-Be,r["_"+j+"size"]=ze,r["_"+j+"shift"]=je}if(pe){M.remove();return}var Qe=0,hr=0;if(r.align!=="left"&&(Qe=(K-oe)*(r.align==="center"?.5:1)),r.valign!=="top"&&(hr=(Te-ce)*(r.valign==="middle"?.5:1)),re)Z.select("svg").attr({x:D+Qe-1,y:D+hr}).call(ml.setClipUrl,R?m:null,e);else{var $e=D+hr-se.top,Fe=D+Qe-se.left;V.call(k4.positionText,Fe,$e).call(ml.setClipUrl,R?m:null,e)}z.select("rect").call(ml.setRect,D,D,K,Te),P.call(ml.setRect,S/2,S/2,le-S,ve-S),M.call(ml.setTranslate,Math.round(y.x.text-le/2),Math.round(y.y.text-ve/2)),_.attr({transform:"rotate("+x+","+y.x.text+","+y.y.text+")"});var ne=function(Ee,Le){w.selectAll(".annotation-arrow-g").remove();var ar=y.x.head,sr=y.y.head,nr=y.x.tail+Ee,Mr=y.y.tail+Le,Or=y.x.text+Ee,jr=y.y.text+Le,Vr=cs.rotationXYMatrix(x,Or,jr),Yt=cs.apply2DTransform(Vr),wt=cs.apply2DTransform2(Vr),Tt=+P.attr("width"),pt=+P.attr("height"),Xt=Or-.5*Tt,Jt=Xt+Tt,It=jr-.5*pt,za=It+pt,br=[[Xt,It,Xt,za],[Xt,za,Jt,za],[Jt,za,Jt,It],[Jt,It,Xt,It]].map(wt);if(!br.reduce(function(ft,_a){return ft^!!cs.segmentsIntersect(ar,sr,ar+1e6,sr+1e6,_a[0],_a[1],_a[2],_a[3])},!1)){br.forEach(function(ft){var _a=cs.segmentsIntersect(nr,Mr,ar,sr,ft[0],ft[1],ft[2],ft[3]);_a&&(nr=_a.x,Mr=_a.y)});var yt=r.arrowwidth,Nr=r.arrowcolor,ut=r.arrowside,Pt=w.append("g").style({opacity:Cu.opacity(Nr)}).classed("annotation-arrow-g",!0),Qr=Pt.append("path").attr("d","M"+nr+","+Mr+"L"+ar+","+sr).style("stroke-width",yt+"px").call(Cu.stroke,Cu.rgb(Nr));if(a2e(Qr,ut,r),s.annotationPosition&&Qr.node().parentNode&&!a){var ct=ar,xa=sr;if(r.standoff){var $t=Math.sqrt(Math.pow(ar-nr,2)+Math.pow(sr-Mr,2));ct+=r.standoff*(nr-ar)/$t,xa+=r.standoff*(Mr-sr)/$t}var tn=Pt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(nr-ct)+","+(Mr-xa),transform:M4(ct,xa)}).style("stroke-width",yt+6+"px").call(Cu.stroke,"rgba(0,0,0,0)").call(Cu.fill,"rgba(0,0,0,0)"),wn,Kt;v0.init({element:tn.node(),gd:e,prepFn:function(){var ft=ml.getTranslate(M);wn=ft.x,Kt=ft.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(ft,_a){var Ko=Yt(wn,Kt),Qo=Ko[0]+ft,vt=Ko[1]+_a;M.call(ml.setTranslate,Qo,vt),d("x",fs(n,ft,"x",l,r)),d("y",fs(i,_a,"y",l,r)),r.axref===r.xref&&d("ax",fs(n,ft,"ax",l,r)),r.ayref===r.yref&&d("ay",fs(i,_a,"ay",l,r)),Pt.attr("transform",M4(ft,_a)),_.attr({transform:"rotate("+x+","+Qo+","+vt+")"})},doneFn:function(){A4.call("_guiRelayout",e,p());var ft=document.querySelector(".js-notes-box-panel");ft&&ft.redraw(ft.selectedObj)}})}}};if(r.showarrow&&ne(0,0),b){var de;v0.init({element:M.node(),gd:e,prepFn:function(){de=_.attr("transform")},moveFn:function(Ee,Le){var ar="pointer";if(r.showarrow)r.axref===r.xref?d("ax",fs(n,Ee,"ax",l,r)):d("ax",r.ax+Ee),r.ayref===r.yref?d("ay",fs(i,Le,"ay",l.w,r)):d("ay",r.ay+Le),ne(Ee,Le);else{if(a)return;var sr,nr;if(n)sr=fs(n,Ee,"x",l,r);else{var Mr=r._xsize/l.w,Or=r.x+(r._xshift-r.xshift)/l.w-Mr/2;sr=v0.align(Or+Ee/l.w,Mr,0,1,r.xanchor)}if(i)nr=fs(i,Le,"y",l,r);else{var jr=r._ysize/l.h,Vr=r.y-(r._yshift+r.yshift)/l.h-jr/2;nr=v0.align(Vr-Le/l.h,jr,0,1,r.yanchor)}d("x",sr),d("y",nr),(!n||!i)&&(ar=v0.getCursor(n?.5:sr,i?.5:nr,r.xanchor,r.yanchor))}_.attr({transform:M4(Ee,Le)+de}),S4(M,ar)},clickFn:function(Ee,Le){r.captureevents&&e.emit("plotly_clickannotation",k(Le))},doneFn:function(){S4(M),A4.call("_guiRelayout",e,p());var Ee=document.querySelector(".js-notes-box-panel");Ee&&Ee.redraw(Ee.selectedObj)}})}}s.annotationText?V.call(k4.makeEditable,{delegate:M,gd:e}).call(G).on("edit",function(Y){r.text=Y,this.call(G),d("text",Y),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),A4.call("_guiRelayout",e,p())}):V.call(G)}});var yO=N((AFe,pO)=>{"use strict";var cO=Ce(),i2e=gr(),vO=At().arrayEditor;pO.exports={hasClickToShow:o2e,onClick:l2e};function o2e(e,r){var t=dO(e,r);return t.on.length>0||t.explicitOff.length>0}function l2e(e,r){var t=dO(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(a.length||n.length){for(l=0;l{"use strict";var q4=Ce(),Tc=Tr();mO.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=Tc.opacity(o);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),q4.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),v,d;c.indexOf("end")!==-1&&(v=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",v),n("startarrowsize",d)),n("arrowcolor",l?t.bordercolor:Tc.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),m=a.hoverlabel||{};if(p){var y=n("hoverlabel.bgcolor",m.bgcolor||(Tc.opacity(i)?Tc.rgb(i):Tc.defaultLine)),x=n("hoverlabel.bordercolor",m.bordercolor||Tc.contrast(y)),w=q4.extendFlat({},m.font);w.color||(w.color=x),q4.coerceFont(n,"hoverlabel.font",w)}n("captureevents",!!p)}});var bO=N((kFe,gO)=>{"use strict";var C4=Ce(),Eu=Ir(),s2e=eo(),u2e=L4(),f2e=vc();gO.exports=function(r,t){s2e(r,t,{name:"annotations",handleItemDefaults:c2e})};function c2e(e,r,t){function a(_,b){return C4.coerce(e,r,f2e,_,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){u2e(e,r,t,a);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=l[f],v=Eu.coerceRef(e,r,u,c,"","paper");if(v!=="paper"){var d=Eu.getFromId(u,v);d._annIndices.push(r._index)}if(Eu.coercePosition(r,u,a,v,c,.5),o){var p="a"+c,m=Eu.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);m!=="pixel"&&m!==v&&(m=r[p]="pixel");var y=m==="pixel"?s[f]:.4;Eu.coercePosition(r,u,a,m,p,y)}a(c+"anchor"),a(c+"shift")}if(C4.noneOrAll(e,r,["x","y"]),o&&C4.noneOrAll(e,r,["ax","ay"]),i){var x=a("xclick"),w=a("yclick");r._xclick=x===void 0?r.x:Eu.cleanPosition(x,u,r.xref),r._yclick=w===void 0?r.y:Eu.cleanPosition(w,u,r.yref)}}}});var wO=N((SFe,_O)=>{"use strict";var E4=Ce(),Du=Ir(),v2e=km().draw;_O.exports=function(r){var t=r._fullLayout,a=E4.filterVisible(t.annotations);if(a.length&&r._fullData.length)return E4.syncOrAsync([v2e,h2e],r)};function h2e(e){var r=e._fullLayout;E4.filterVisible(r.annotations).forEach(function(t){var a=Du.getFromId(e,t.xref),n=Du.getFromId(e,t.yref),i=Du.getRefType(t.xref),o=Du.getRefType(t.yref);t._extremes={},i==="range"&&xO(t,a),o==="range"&&xO(t,n)})}function xO(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],l=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,v=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,m=p+f,y=p-f,x;if(l===o){var w=Du.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),_=Du.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,m),ppadminus:Math.max(u,y)});x={min:[w.min[0],_.min[0]],max:[w.max[0],_.max[0]]}}else m=i?m+i:m,y=i?y-i:y,x=Du.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,m),ppadminus:Math.max(u,d,y)});e._extremes[t]=x}});var AO=N((qFe,TO)=>{"use strict";var d2e=Rr(),p2e=pp();TO.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(d){var p=u[d],m=null;i?m=p2e(p,t.range):m=Math.pow(10,p),d2e(m)||(m=null),n(f+d,m)}for(var v=0;v{"use strict";var D4=km(),MO=yO();kO.exports={moduleType:"component",name:"annotations",layoutAttributes:vc(),supplyLayoutDefaults:bO(),includeBasePlot:Wh()("annotations"),calcAutorange:wO(),draw:D4.draw,drawOne:D4.drawOne,drawRaw:D4.drawRaw,hasClickToShow:MO.hasClickToShow,onClick:MO.onClick,convertCoords:AO()}});var Sm=N((CFe,qO)=>{"use strict";var qt=vc(),y2e=Xi().overrideAll,m2e=At().templatedArray;qO.exports=y2e(m2e("annotation",{visible:qt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:qt.xanchor,xshift:qt.xshift,yanchor:qt.yanchor,yshift:qt.yshift,text:qt.text,textangle:qt.textangle,font:qt.font,width:qt.width,height:qt.height,opacity:qt.opacity,align:qt.align,valign:qt.valign,bgcolor:qt.bgcolor,bordercolor:qt.bordercolor,borderpad:qt.borderpad,borderwidth:qt.borderwidth,showarrow:qt.showarrow,arrowcolor:qt.arrowcolor,arrowhead:qt.arrowhead,startarrowhead:qt.startarrowhead,arrowside:qt.arrowside,arrowsize:qt.arrowsize,startarrowsize:qt.startarrowsize,arrowwidth:qt.arrowwidth,standoff:qt.standoff,startstandoff:qt.startstandoff,hovertext:qt.hovertext,hoverlabel:qt.hoverlabel,captureevents:qt.captureevents}),"calc","from-root")});var CO=N((EFe,LO)=>{"use strict";var R4=Ce(),g2e=Ir(),b2e=eo(),x2e=L4(),_2e=Sm();LO.exports=function(r,t,a){b2e(r,t,{name:"annotations",handleItemDefaults:w2e,fullLayout:a.fullLayout})};function w2e(e,r,t,a){function n(l,s){return R4.coerce(e,r,_2e,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],g2e.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(x2e(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),R4.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),R4.noneOrAll(e,r,["ax","ay"])))}});var PO=N((DFe,RO)=>{"use strict";var EO=Ce(),DO=Ir();RO.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function P4(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function A2e(e,r){var t=P4(e.projection,P4(e.view,P4(e.model,[r[0],r[1],r[2],1])));return t}FO.exports=A2e});var IO=N((PFe,zO)=>{"use strict";var M2e=km().drawRaw,k2e=NO(),S2e=["x","y","z"];zO.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=k2e(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),M2e(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var HO=N((FFe,BO)=>{"use strict";var q2e=gr(),OO=Ce();BO.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Sm()}}},layoutAttributes:Sm(),handleDefaults:CO(),includeBasePlot:L2e,convert:PO(),draw:IO()};function L2e(e,r){var t=q2e.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var UO=vc(),GO=da(),YO=wi().line,C2e=si().dash,uo=xt().extendFlat,E2e=At().templatedArray,NFe=Yh(),Ac=mn(),D2e=Ta().shapeTexttemplateAttrs,R2e=kp();VO.exports=E2e("shape",{visible:uo({},Ac.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:uo({},Ac.legend,{editType:"calc+arraydraw"}),legendgroup:uo({},Ac.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:uo({},Ac.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:GO({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:uo({},Ac.legendrank,{editType:"calc+arraydraw"}),legendwidth:uo({},Ac.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:uo({},UO.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:uo({},UO.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:uo({},YO.color,{editType:"arraydraw"}),width:uo({},YO.width,{editType:"calc+arraydraw"}),dash:uo({},C2e,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:D2e({},{keys:Object.keys(R2e)}),font:GO({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var ZO=N((IFe,jO)=>{"use strict";var d0=Ce(),Mc=Ir(),P2e=eo(),F2e=F4(),WO=ns();jO.exports=function(r,t){P2e(r,t,{name:"shapes",handleItemDefaults:z2e})};function N2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function z2e(e,r,t){function a(Y,J){return d0.coerce(e,r,F2e,Y,J)}r._isShape=!0;var n=a("visible");if(n){var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),d0.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var o=a("path"),l=o?"path":"rect",s=a("type",l),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));for(var c=a("xsizemode"),v=a("ysizemode"),d=["x","y"],p=0;p<2;p++){var m=d[p],y=m+"anchor",x=m==="x"?c:v,w={_fullLayout:t},_,b,T,k=Mc.coerceRef(e,r,w,m,void 0,"paper"),M=Mc.getRefType(k);if(M==="range"?(_=Mc.getFromId(w,k),_._shapeIndices.push(r._index),T=WO.rangeToShapePosition(_),b=WO.shapePositionToRange(_),(_.type==="category"||_.type==="multicategory")&&(a(m+"0shift"),a(m+"1shift"))):b=T=d0.identity,u){var S=.25,E=.75,D=m+"0",P=m+"1",R=e[D],z=e[P];e[D]=b(e[D],!0),e[P]=b(e[P],!0),x==="pixel"?(a(D,0),a(P,10)):(Mc.coercePosition(r,w,a,k,D,S),Mc.coercePosition(r,w,a,k,P,E)),r[D]=T(r[D]),r[P]=T(r[P]),e[D]=R,e[P]=z}if(x==="pixel"){var O=e[y];e[y]=b(e[y],!0),Mc.coercePosition(r,w,a,k,y,.25),r[y]=T(r[y]),e[y]=O}}u&&d0.noneOrAll(e,r,["x0","x1","y0","y1"]);var B=s==="line",V,G;if(u&&(V=a("label.texttemplate")),V||(G=a("label.text")),G||V){a("label.textangle");var U=a("label.textposition",B?"middle":"middle center");a("label.xanchor"),a("label.yanchor",N2e(B,U)),a("label.padding"),d0.coerceFont(a,"label.font",t.font)}}}});var $O=N((OFe,JO)=>{"use strict";var I2e=Tr(),XO=Ce();function O2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}JO.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),XO.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",I2e.contrast(i)),a("newshape.line.dash")}var o=r.dragmode==="drawline",l=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(l||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",O2e(o,u)),a("newshape.label.padding"),XO.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var tB=N((BFe,rB)=>{"use strict";var N4=Ce(),kc=Ir(),Sc=Mh(),QO=ns();rB.exports=function(r){var t=r._fullLayout,a=N4.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n0?u+o:o;return{ppad:o,ppadplus:l?c:v,ppadminus:l?v:c}}else return{ppad:o}}function KO(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],o=r[a+"1"],n&&(l=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],o=r[a+"anchor"]),i!==void 0)return[u(i)+l,u(o)+s];if(r.path){var c=1/0,v=-1/0,d=r.path.match(Sc.segmentRE),p,m,y,x,w;for(e.type==="date"&&(u=QO.decodeDate(u)),p=0;pv&&(v=w)));if(v>=c)return[c,v]}}});var iB=N((HFe,nB)=>{"use strict";var aB=py();nB.exports={moduleType:"component",name:"shapes",layoutAttributes:F4(),supplyLayoutDefaults:ZO(),supplyDrawNewShapeDefaults:$O(),includeBasePlot:Wh()("shapes"),calcAutorange:tB(),draw:aB.draw,drawOne:aB.drawOne}});var z4=N((GFe,lB)=>{"use strict";var oB=Ea(),U2e=At().templatedArray,UFe=Yh();lB.exports=U2e("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",oB.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",oB.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var uB=N((YFe,sB)=>{"use strict";var G2e=Ce(),I4=Ir(),Y2e=eo(),V2e=z4(),W2e="images";sB.exports=function(r,t){var a={name:W2e,handleItemDefaults:j2e};Y2e(r,t,a)};function j2e(e,r,t){function a(v,d){return G2e.coerce(e,r,V2e,v,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var u=l[s],f=I4.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var c=I4.getFromId(o,f);c._imgIndices.push(r._index)}I4.coercePosition(r,o,a,f,u,0)}return r}});var hB=N((VFe,vB)=>{"use strict";var fB=Sr(),Z2e=Wr(),qc=Ir(),cB=ia(),X2e=ll();vB.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var dB=Rr(),J2e=pp();pB.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c{"use strict";mB.exports={moduleType:"component",name:"images",layoutAttributes:z4(),supplyLayoutDefaults:uB(),includeBasePlot:Wh()("images"),draw:hB(),convertCoords:yB()}});var qm=N((ZFe,bB)=>{"use strict";bB.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var O4=N((XFe,_B)=>{"use strict";var $2e=da(),K2e=li(),Q2e=xt().extendFlat,e3e=Xi().overrideAll,r3e=Sp(),xB=At().templatedArray,t3e=xB("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});_B.exports=e3e(xB("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:t3e,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Q2e(r3e({editType:"arraydraw"}),{}),font:$2e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:K2e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var MB=N((JFe,AB)=>{"use strict";var Lm=Ce(),wB=eo(),TB=O4(),a3e=qm(),n3e=a3e.name,i3e=TB.buttons;AB.exports=function(r,t){var a={name:n3e,handleItemDefaults:o3e};wB(r,t,a)};function o3e(e,r,t){function a(o,l){return Lm.coerce(e,r,TB,o,l)}var n=wB(e,r,{name:"buttons",handleItemDefaults:l3e}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Lm.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Lm.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function l3e(e,r){function t(n,i){return Lm.coerce(e,r,i3e,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var qB=N(($Fe,SB)=>{"use strict";SB.exports=Ot;var fo=Sr(),kB=Tr(),Lc=Wr(),Cm=Ce();function Ot(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Ot.barWidth=2;Ot.barLength=20;Ot.barRadius=2;Ot.barPad=1;Ot.barColor="#808BA4";Ot.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,o=n.height;this.position=r;var l=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,v=c==="down",d=c==="left",p=c==="right",m=c==="up",y=s,x=f,w,_,b,T;!v&&!d&&!p&&!m&&(this.position.direction="down",v=!0);var k=v||m;k?(w=l,_=w+y,v?(b=u,T=Math.min(b+x,o),x=T-b):(T=u+x,b=Math.max(T-x,0),x=T-b)):(b=u,T=b+x,d?(_=l+y,w=Math.max(_-y,0),y=_-w):(w=l,_=Math.min(w+y,i),y=_-w)),this._box={l:w,t:b,w:y,h:x};var M=s>y,S=Ot.barLength+2*Ot.barPad,E=Ot.barWidth+2*Ot.barPad,D=l,P=u+f;P+E>o&&(P=o-E);var R=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(kB.fill,Ot.barColor),M?(this.hbar=R.attr({rx:Ot.barRadius,ry:Ot.barRadius,x:D,y:P,width:S,height:E}),this._hbarXMin=D+S/2,this._hbarTranslateMax=y-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var z=f>x,O=Ot.barWidth+2*Ot.barPad,B=Ot.barLength+2*Ot.barPad,V=l+s,G=u;V+O>i&&(V=i-O);var U=this.container.selectAll("rect.scrollbar-vertical").data(z?[0]:[]);U.exit().on(".drag",null).remove(),U.enter().append("rect").classed("scrollbar-vertical",!0).call(kB.fill,Ot.barColor),z?(this.vbar=U.attr({rx:Ot.barRadius,ry:Ot.barRadius,x:V,y:G,width:O,height:B}),this._vbarYMin=G+B/2,this._vbarTranslateMax=x-B):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var Y=this.id,J=w-.5,Z=z?_+O+.5:_+.5,re=b-.5,se=M?T+E+.5:T+.5,oe=n._topdefs.selectAll("#"+Y).data(M||z?[0]:[]);if(oe.exit().remove(),oe.enter().append("clipPath").attr("id",Y).append("rect"),M||z?(this._clipRect=oe.select("rect").attr({x:Math.floor(J),y:Math.floor(re),width:Math.ceil(Z)-Math.floor(J),height:Math.ceil(se)-Math.floor(re)}),this.container.call(Lc.setClipUrl,Y,this.gd),this.bg.attr({x:l,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Lc.setClipUrl,null),delete this._clipRect),M||z){var ce=fo.behavior.drag().on("dragstart",function(){fo.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ce);var K=fo.behavior.drag().on("dragstart",function(){fo.event.sourceEvent.preventDefault(),fo.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(K),z&&this.vbar.on(".drag",null).call(K)}this.setTranslate(t,a)};Ot.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Lc.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Ot.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=fo.event.dx),this.vbar&&(t-=fo.event.dy),this.setTranslate(r,t)};Ot.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=fo.event.deltaY),this.vbar&&(t+=fo.event.deltaY),this.setTranslate(r,t)};Ot.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Cm.constrain(fo.event.x,a,n),o=(i-a)/(n-a),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=Cm.constrain(fo.event.y,s,u),c=(f-s)/(u-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};Ot.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Cm.constrain(r||0,0,a),t=Cm.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Lc.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(Lc.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(Lc.setTranslate,r,t+o*this._vbarTranslateMax)}}});var IB=N((KFe,zB)=>{"use strict";var Cc=Sr(),p0=aa(),y0=Tr(),Ec=Wr(),Qn=Ce(),Em=Da(),s3e=At().arrayEditor,CB=Xa().LINE_SPACING,wr=qm(),u3e=qB();zB.exports=function(r){var t=r._fullLayout,a=Qn.filterVisible(t[wr.name]);function n(v){p0.autoMargin(r,FB(v))}var i=t._menulayer.selectAll("g."+wr.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(wr.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){Cc.select(this).selectAll("g."+wr.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+wr.headerGroupClassName).data(a,f3e);o.enter().append("g").classed(wr.headerGroupClassName,!0);for(var l=Qn.ensureSingle(i,"g",wr.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s{"use strict";var m3e=qm();OB.exports={moduleType:"component",name:m3e.name,layoutAttributes:O4(),supplyLayoutDefaults:MB(),draw:IB()}});var g0=N((eNe,HB)=>{"use strict";HB.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var G4=N((rNe,YB)=>{"use strict";var UB=da(),g3e=Sp(),b3e=xt().extendDeepAll,x3e=Xi().overrideAll,_3e=Jv(),GB=At().templatedArray,Ru=g0(),w3e=GB("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});YB.exports=x3e(GB("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:w3e,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:b3e(g3e({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:_3e.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:UB({})},font:UB({}),activebgcolor:{valType:"color",dflt:Ru.gripBgActiveColor},bgcolor:{valType:"color",dflt:Ru.railBgColor},bordercolor:{valType:"color",dflt:Ru.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Ru.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Ru.tickLength},tickcolor:{valType:"color",dflt:Ru.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Ru.minorTickLength}}),"arraydraw","from-root")});var ZB=N((tNe,jB)=>{"use strict";var Dc=Ce(),VB=eo(),WB=G4(),T3e=g0(),A3e=T3e.name,M3e=WB.steps;jB.exports=function(r,t){VB(r,t,{name:A3e,handleItemDefaults:k3e})};function k3e(e,r,t){function a(c,v){return Dc.coerce(e,r,WB,c,v)}for(var n=VB(e,r,{name:"steps",handleItemDefaults:S3e}),i=0,o=0;o{"use strict";var co=Sr(),Dm=aa(),vs=Tr(),vo=Wr(),ei=Ce(),q3e=ei.strTranslate,b0=Da(),L3e=At().arrayEditor,Fr=g0(),W4=Xa(),$B=W4.LINE_SPACING,Y4=W4.FROM_TL,V4=W4.FROM_BR;aH.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=C3e(a,r),i=a._infolayer.selectAll("g."+Fr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Fr.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Dm.autoMargin(r,KB(f))}if(i.exit().each(function(){co.select(this).selectAll("g."+Fr.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+Fr.groupClassName).data(n,E3e);l.enter().append("g").classed(Fr.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",q3e(o-Fr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function j4(e,r){var t=e._dims;return t.inputAreaStart+Fr.stepInset+(t.inputAreaLength-2*Fr.stepInset)*Math.min(1,Math.max(0,r))}function JB(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Fr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Fr.stepInset-2*t.inputAreaStart)))}function I3e(e,r,t){var a=t._dims,n=ei.ensureSingle(e,"rect",Fr.railTouchRectClass,function(i){i.call(rH,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Fr.tickOffset+t.ticklen+a.labelHeight)}).call(vs.fill,t.bgcolor).attr("opacity",0),vo.setTranslate(n,0,a.currentValueTotalHeight)}function O3e(e,r){var t=r._dims,a=t.inputAreaLength-Fr.railInset*2,n=ei.ensureSingle(e,"rect",Fr.railRectClass);n.attr({width:a,height:Fr.railWidth,rx:Fr.railRadius,ry:Fr.railRadius,"shape-rendering":"crispEdges"}).call(vs.stroke,r.bordercolor).call(vs.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),vo.setTranslate(n,Fr.railInset,(t.inputAreaWidth-Fr.railWidth)*.5+t.currentValueTotalHeight)}});var oH=N((nNe,iH)=>{"use strict";var B3e=g0();iH.exports={moduleType:"component",name:B3e.name,layoutAttributes:G4(),supplyLayoutDefaults:ZB(),draw:nH()}});var Pm=N((iNe,sH)=>{"use strict";var lH=li();sH.exports={bgcolor:{valType:"color",dflt:lH.background,editType:"plot"},bordercolor:{valType:"color",dflt:lH.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var Z4=N((oNe,uH)=>{"use strict";uH.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Fm=N((lNe,fH)=>{"use strict";fH.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var hH=N(zm=>{"use strict";var H3e=ia(),U3e=Da(),cH=Fm(),G3e=Xa().LINE_SPACING,Nm=cH.name;function vH(e){var r=e&&e[Nm];return r&&r.visible}zm.isVisible=vH;zm.makeData=function(e){for(var r=H3e.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Im=Ce(),dH=At(),pH=ia(),Y3e=Pm(),V3e=Z4();yH.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Im.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=dH.newContainer(i,"rangeslider");function s(T,k){return Im.coerce(o,l,Y3e,T,k)}var u,f;function c(T,k){return Im.coerce(u,f,V3e,T,k)}var v=s("visible");if(v){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var p=d.cartesian.filter(function(T){return T.substr(0,T.indexOf("y"))===pH.name2id(a)}).map(function(T){return T.substr(T.indexOf("y"),T.length)}),m=Im.simpleMap(p,pH.id2name),y=0;y{"use strict";var W3e=ia().list,j3e=dh().getAutoRange,Z3e=Fm();gH.exports=function(r){for(var t=W3e(r,"x",!0),a=0;a{"use strict";var Om=Sr(),X3e=gr(),J3e=aa(),Zt=Ce(),Bm=Zt.strTranslate,_H=Wr(),hs=Tr(),$3e=jf(),K3e=qi(),X4=ia(),Q3e=pi(),ebe=rs(),Gr=Fm();wH.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=U.max)V=P[G+1];else if(B=U.pmax)V=P[G+1];else if(B0?e.touches[0].clientX:0}function rbe(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Gr.slideBoxClassName).node(),i=e.select("rect."+Gr.grabAreaMinClassName).node(),o=e.select("rect."+Gr.grabAreaMaxClassName).node();function l(){var s=Om.event,u=s.target,f=xH(s),c=f-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=Q3e.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",y),p.addEventListener("mousemove",m),p.addEventListener("mouseup",y);function m(x){var w=xH(x),_=+w-f,b,T,k;switch(u){case n:if(k="ew-resize",v+_>t._length||d+_<0)return;b=v+_,T=d+_;break;case i:if(k="col-resize",v+_>t._length)return;b=v+_,T=d;break;case o:if(k="col-resize",d+_<0)return;b=v,T=d+_;break;default:k="ew-resize",b=c,T=c+_;break}if(T{"use strict";var cbe=Ce(),vbe=Pm(),hbe=Z4(),J4=hH();AH.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:cbe.extendFlat({},vbe,{yaxis:hbe})}}},layoutAttributes:Pm(),handleDefaults:mH(),calcAutorange:bH(),draw:TH(),isVisible:J4.isVisible,makeData:J4.makeData,autoMarginOpts:J4.autoMarginOpts}});var Hm=N((hNe,SH)=>{"use strict";var dbe=da(),kH=li(),pbe=At().templatedArray,ybe=pbe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});SH.exports={visible:{valType:"boolean",editType:"plot"},buttons:ybe,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:dbe({editType:"plot"}),bgcolor:{valType:"color",dflt:kH.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:kH.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var $4=N((dNe,qH)=>{"use strict";qH.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var EH=N((pNe,CH)=>{"use strict";var Um=Ce(),mbe=Tr(),gbe=At(),bbe=eo(),LH=Hm(),K4=$4();CH.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=gbe.newContainer(t,"rangeselector");function s(d,p){return Um.coerce(o,l,LH,d,p)}var u=bbe(o,l,{name:"buttons",handleItemDefaults:xbe,calendar:i}),f=s("visible",u.length>0);if(f){var c=_be(t,a,n);s("x",c[0]),s("y",c[1]),Um.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Um.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",mbe.contrast(v,K4.lightAmount,K4.darkAmount)),s("bordercolor"),s("borderwidth")}};function xbe(e,r,t,a){var n=a.calendar;function i(s,u){return Um.coerce(e,r,LH.buttons,s,u)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(n&&n!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function _be(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i{"use strict";var wbe=K3(),Tbe=Ce().titleCase;DH.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=Abe(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function Abe(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=wbe["utc"+Tbe(n)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(a,-o));break;case"todate":var s=i.offset(a,-o);l=e.l2r(+i.ceil(s));break}var u=t[1];return[l,u]}});var HH=N((mNe,BH)=>{"use strict";var Ym=Sr(),Mbe=gr(),kbe=aa(),PH=Tr(),OH=Wr(),gl=Ce(),FH=gl.strTranslate,Gm=Da(),Sbe=ia(),rw=Xa(),NH=rw.LINE_SPACING,zH=rw.FROM_TL,IH=rw.FROM_BR,ew=$4(),qbe=RH();BH.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(Lbe(r),Cbe);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Ym.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(gl.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Ym.select(this),c=qbe(o,u);u._isActive=Ebe(o,u,c),f.call(Q4,l,u),f.call(Rbe,l,u,r),f.on("click",function(){r._dragged||Mbe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(Q4,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(Q4,l,u)})}),Fbe(r,s,l,o._name,i)})};function Lbe(e){for(var r=Sbe.list(e,"x",!0),t=[],a=0;a{"use strict";UH.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Hm()}}},layoutAttributes:Hm(),handleDefaults:EH(),draw:HH()}});var Rc=N(tw=>{"use strict";var YH=xt().extendFlat;tw.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",o={x:YH({},t,{}),y:YH({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};tw.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l{"use strict";var Nbe=Ce(),zbe=Af().counter,Ibe=Rc().attributes,VH=Ea().idRegex,Obe=At(),aw={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[zbe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[VH.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[VH.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Ibe({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Vm(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function Bbe(e,r){var t=e.grid||{},a=Vm(r,t,"x"),n=Vm(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(a),l=Array.isArray(n),s=o&&a!==t.xaxes&&l&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(l&&(u=n.length),o&&(f=a.length));var c=Obe.newContainer(r,"grid");function v(k,M){return Nbe.coerce(t,c,aw,k,M)}var d=v("rows",u),p=v("columns",f);if(!(d*p>1)){delete r.grid;return}if(!i&&!o&&!l){var m=v("pattern")==="independent";m&&(i=!0)}c._hasSubplotGrid=i;var y=v("roworder"),x=y==="top to bottom",w=i?.2:.1,_=i?.3:.1,b,T;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,T=r._splomGridDflt.yside),c._domains={x:WH("x",v,w,b,p),y:WH("y",v,_,T,d,x)}}function WH(e,r,t,a,n,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=l[0],f=(l[1]-u)/(n-o),c=f*(1-o),v=0;v{"use strict";JH.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var QH=N((wNe,KH)=>{"use strict";var $H=Rr(),Ube=gr(),Gbe=Ce(),Ybe=At(),Vbe=nw();KH.exports=function(e,r,t,a){var n="error_"+a.axis,i=Ybe.newContainer(r,n),o=e[n]||{};function l(p,m){return Gbe.coerce(o,i,Vbe,p,m)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=l("visible",s);if(u!==!1){var f=l("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),c||l("valueminus"));var v="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(v,!(o.color||$H(o.thickness)||$H(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",Ube.traceIs(r,"gl3d")?0:4))}}});var iw=N((TNe,rU)=>{"use strict";rU.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],v=+i[f];return!isNaN(c)||!isNaN(v)?[v||0,c||0]:[NaN,NaN]}}else{var o=eU(t,r.value),l=eU(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=o(u);return[f,f]}:function(u){return[l(u),o(u)]}}};function eU(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var nU=N((ANe,aU)=>{"use strict";var ow=Rr(),Wbe=gr(),lw=Ir(),jbe=Ce(),Zbe=iw();aU.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var iU=Sr(),ds=Rr(),Xbe=Wr(),Jbe=Dn();oU.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,v=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(w){return w.id});var m=Jbe.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(f=[]);var y=iU.select(this).selectAll("g.errorbar").data(f,p);if(y.exit().remove(),!!f.length){v.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var x=y.enter().append("g").classed("errorbar",!0);s&&x.style("opacity",0).transition().duration(n.duration).style("opacity",1),Xbe.setClipUrl(y,a.layerClipId,r),y.each(function(w){var _=iU.select(this),b=$be(w,o,l);if(!(m&&!w.vis)){var T,k=_.select("path.yerror");if(d.visible&&ds(b.x)&&ds(b.yh)&&ds(b.ys)){var M=d.width;T="M"+(b.x-M)+","+b.yh+"h"+2*M+"m-"+M+",0V"+b.ys,b.noYS||(T+="m-"+M+",0h"+2*M),i=!k.size(),i?k=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",T)}else k.remove();var S=_.select("path.xerror");if(v.visible&&ds(b.y)&&ds(b.xh)&&ds(b.xs)){var E=(v.copy_ystyle?d:v).width;T="M"+b.xh+","+(b.y-E)+"v"+2*E+"m0,-"+E+"H"+b.xs,b.noXS||(T+="m0,-"+E+"v"+2*E),i=!S.size(),i?S=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(S=S.transition().duration(n.duration).ease(n.easing)),S.attr("d",T)}else S.remove()}})}})};function $be(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),ds(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),ds(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var fU=N((kNe,uU)=>{"use strict";var Kbe=Sr(),sU=Tr();uU.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=Kbe.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(sU.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(sU.stroke,i.color)})}});var hU=N((SNe,vU)=>{"use strict";var x0=Ce(),cU=Xi().overrideAll,_0=nw(),Pu={error_x:x0.extendFlat({},_0),error_y:x0.extendFlat({},_0)};delete Pu.error_x.copy_zstyle;delete Pu.error_y.copy_zstyle;delete Pu.error_y.copy_ystyle;var w0={error_x:x0.extendFlat({},_0),error_y:x0.extendFlat({},_0),error_z:x0.extendFlat({},_0)};delete w0.error_x.copy_ystyle;delete w0.error_y.copy_ystyle;delete w0.error_z.copy_ystyle;delete w0.error_z.copy_zstyle;vU.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Pu,bar:Pu,histogram:Pu,scatter3d:cU(w0,"calc","nested"),scattergl:cU(Pu,"calc","nested")}},supplyDefaults:QH(),calc:nU(),makeComputeError:iw(),plot:lU(),style:fU(),hoverInfo:Qbe};function Qbe(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var pU=N((qNe,dU)=>{"use strict";dU.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var wU=N((LNe,_U)=>{"use strict";var ps=Sr(),sw=kn(),jm=aa(),yU=gr(),bl=Ir(),Wm=pi(),Li=Ce(),po=Li.strTranslate,xU=xt().extendFlat,uw=rs(),ho=Wr(),fw=Tr(),exe=jf(),rxe=Da(),txe=vi().flipScale,axe=b4(),nxe=x4(),ixe=hi(),cw=Xa(),mU=cw.LINE_SPACING,gU=cw.FROM_TL,bU=cw.FROM_BR,zt=pU().cn;function oxe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+zt.colorbar).data(lxe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(zt.colorbar,!0),t.each(function(a){var n=ps.select(this);Li.ensureSingle(n,"rect",zt.cbbg),Li.ensureSingle(n,"g",zt.cbfills),Li.ensureSingle(n,"g",zt.cblines),Li.ensureSingle(n,"g",zt.cbaxis,function(o){o.classed(zt.crisp,!0)}),Li.ensureSingle(n,"g",zt.cbtitleunshift,function(o){o.append("g").classed(zt.cbtitle,!0)}),Li.ensureSingle(n,"rect",zt.cboutline);var i=sxe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&uxe(n,a,e)}),t.exit().each(function(a){jm.autoMargin(e,a._id)}).remove(),t.order()}function lxe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(_){return xU(_,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof l.calc=="function"?l.calc(e,o,n):(n._fillgradient=i.reversescale?txe(i.colorscale):i.colorscale,n._zrange=[i[l.min],i[l.max]])}for(var f=0;f1){var Q=Math.pow(10,Math.floor(Math.log(W)/Math.LN10));ie*=Q*Li.roundUp(W/Q,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(le.tick0=0)}le.dtick=ie}le.domain=a?[K+p/b.h,K+Y-p/b.h]:[K+d/b.w,K+Y-d/b.w],le.setScale(),e.attr("transform",po(Math.round(b.l),Math.round(b.t)));var j=e.select("."+zt.cbtitleunshift).attr("transform",po(-Math.round(b.l),-Math.round(b.t))),me=le.ticklabelposition,_e=le.title.font.size,ye=e.select("."+zt.cbaxis),Pe,Ne=0,Re=0;function ze(Be,ue){var Ae={propContainer:le,propName:r._propPrefix+"title",traceIndex:r._traceIndex,_meta:r._meta,placeholder:_._dfltTitle.colorbar,containerGroup:e.select("."+zt.cbtitle)},je=Be.charAt(0)==="h"?Be.substr(1):"h"+Be;e.selectAll("."+je+",."+je+"-math-group").remove(),exe.draw(t,Be,xU(Ae,ue||{}))}function Ge(){if(a&&ve||!a&&!ve){var Be,ue;S==="top"&&(Be=d+b.l+J*m,ue=p+b.t+Z*(1-K-Y)+3+_e*.75),S==="bottom"&&(Be=d+b.l+J*m,ue=p+b.t+Z*(1-K)-3-_e*.25),S==="right"&&(ue=p+b.t+Z*y+3+_e*.75,Be=d+b.l+J*K),ze(le._id+"title",{attributes:{x:Be,y:ue,"text-anchor":a?"start":"middle"}})}}function He(){if(a&&!ve||!a&&ve){var Be=le.position||0,ue=le._offset+le._length/2,Ae,je;if(S==="right")je=ue,Ae=b.l+J*Be+10+_e*(le.showticklabels?1:.5);else if(Ae=ue,S==="bottom"&&(je=b.t+Z*Be+10+(me.indexOf("inside")===-1?le.tickfont.size:0)+(le.ticks!=="intside"&&r.ticklen||0)),S==="top"){var ur=M.text.split("
").length;je=b.t+Z*Be+10-V-mU*_e*ur}ze((a?"h":"v")+le._id+"title",{avoid:{selection:ps.select(t).selectAll("g."+le._id+"tick"),side:S,offsetTop:a?0:b.t,offsetLeft:a?b.l:0,maxShift:a?_.width:_.height},attributes:{x:Ae,y:je,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function De(){if(!a&&!ve||a&&ve){var Be=e.select("."+zt.cbtitle),ue=Be.select("text"),Ae=[-s/2,s/2],je=Be.select(".h"+le._id+"title-math-group").node(),ur=15.6;ue.node()&&(ur=parseInt(ue.node().style.fontSize,10)*mU);var lr;if(je?(lr=ho.bBox(je),Re=lr.width,Ne=lr.height,Ne>ur&&(Ae[1]-=(Ne-ur)/2)):ue.node()&&!ue.classed(zt.jsPlaceholder)&&(lr=ho.bBox(ue.node()),Re=lr.width,Ne=lr.height),a){if(Ne){if(Ne+=5,S==="top")le.domain[1]-=Ne/b.h,Ae[1]*=-1;else{le.domain[0]+=Ne/b.h;var fe=rxe.lineCount(ue);Ae[1]+=(1-fe)*ur}Be.attr("transform",po(Ae[0],Ae[1])),le.setScale()}}else Re&&(S==="right"&&(le.domain[0]+=(Re+_e/2)/b.w),Be.attr("transform",po(Ae[0],Ae[1])),le.setScale())}e.selectAll("."+zt.cbfills+",."+zt.cblines).attr("transform",a?po(0,Math.round(b.h*(1-le.domain[1]))):po(Math.round(b.w*le.domain[0]),0)),ye.attr("transform",a?po(0,Math.round(-b.t)):po(Math.round(-b.l),0));var qe=e.select("."+zt.cbfills).selectAll("rect."+zt.cbfill).attr("style","").data(O);qe.enter().append("rect").classed(zt.cbfill,!0).attr("style",""),qe.exit().remove();var Oe=E.map(le.c2p).map(Math.round).sort(function(hr,$e){return hr-$e});qe.each(function(hr,$e){var Fe=[$e===0?E[0]:(O[$e]+O[$e-1])/2,$e===O.length-1?E[1]:(O[$e]+O[$e+1])/2].map(le.c2p).map(Math.round);a&&(Fe[1]=Li.constrain(Fe[1]+(Fe[1]>Fe[0])?1:-1,Oe[0],Oe[1]));var ne=ps.select(this).attr(a?"x":"y",re).attr(a?"y":"x",ps.min(Fe)).attr(a?"width":"height",Math.max(V,2)).attr(a?"height":"width",Math.max(ps.max(Fe)-ps.min(Fe),2));if(r._fillgradient)ho.gradient(ne,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var de=P(hr).replace("e-","");ne.attr("fill",sw(de).toHexString())}});var Ze=e.select("."+zt.cblines).selectAll("path."+zt.cbline).data(k.color&&k.width?B:[]);Ze.enter().append("path").classed(zt.cbline,!0),Ze.exit().remove(),Ze.each(function(hr){var $e=re,Fe=Math.round(le.c2p(hr))+k.width/2%1;ps.select(this).attr("d","M"+(a?$e+","+Fe:Fe+","+$e)+(a?"h":"v")+V).call(ho.lineGroupStyle,k.width,D(hr),k.dash)}),ye.selectAll("g."+le._id+"tick,path").remove();var Ue=re+V+(s||0)/2-(r.ticks==="outside"?1:0),Xe=bl.calcTicks(le),Qe=bl.getTickSigns(le)[2];return bl.drawTicks(t,le,{vals:le.ticks==="inside"?bl.clipEnds(le,Xe):Xe,layer:ye,path:bl.makeTickPath(le,Ue,Qe),transFn:bl.makeTransTickFn(le)}),bl.drawLabels(t,le,{vals:Xe,layer:ye,transFn:bl.makeTransTickLabelFn(le),labelFns:bl.makeLabelFns(le,Ue)})}function Ie(){var Be,ue=V+s/2;me.indexOf("inside")===-1&&(Be=ho.bBox(ye.node()),ue+=a?Be.width:Be.height),Pe=j.select("text");var Ae=0,je=a&&S==="top",ur=!a&&S==="right",lr=0;if(Pe.node()&&!Pe.classed(zt.jsPlaceholder)){var fe,qe=j.select(".h"+le._id+"title-math-group").node();qe&&(a&&ve||!a&&!ve)?(Be=ho.bBox(qe),Ae=Be.width,fe=Be.height):(Be=ho.bBox(j.node()),Ae=Be.right-b.l-(a?re:Te),fe=Be.bottom-b.t-(a?Te:re),!a&&S==="top"&&(ue+=Be.height,lr=Be.height)),ur&&(Pe.attr("transform",po(Ae/2+_e/2,0)),Ae*=2),ue=Math.max(ue,a?Ae:fe)}var Oe=(a?d:p)*2+ue+u+s/2,Ze=0;!a&&M.text&&v==="bottom"&&y<=0&&(Ze=Oe/2,Oe+=Ze,lr+=Ze),_._hColorbarMoveTitle=Ze,_._hColorbarMoveCBTitle=lr;var Ue=u+s,Xe=(a?re:Te)-Ue/2-(a?d:0),Qe=(a?Te:re)-(a?U:p+lr-Ze);e.select("."+zt.cbbg).attr("x",Xe).attr("y",Qe).attr(a?"width":"height",Math.max(Oe-Ze,2)).attr(a?"height":"width",Math.max(U+Ue,2)).call(fw.fill,f).call(fw.stroke,r.bordercolor).style("stroke-width",u);var hr=ur?Math.max(Ae-10,0):0;e.selectAll("."+zt.cboutline).attr("x",(a?re:Te+d)+hr).attr("y",(a?Te+p-U:re)+(je?Ne:0)).attr(a?"width":"height",Math.max(V,2)).attr(a?"height":"width",Math.max(U-(a?2*p+Ne:2*d+hr),2)).call(fw.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var $e=a?se*Oe:0,Fe=a?0:(1-oe)*Oe-lr;if($e=w?b.l-$e:-$e,Fe=x?b.t-Fe:-Fe,e.attr("transform",po($e,Fe)),!a&&(u||sw(f).getAlpha()&&!sw.equals(_.paper_bgcolor,f))){var ne=ye.selectAll("text"),de=ne[0].length,Ee=e.select("."+zt.cbbg).node(),Le=ho.bBox(Ee),ar=ho.getTranslate(e),sr=2;ne.each(function(Xt,Jt){var It=0,za=de-1;if(Jt===It||Jt===za){var br=ho.bBox(this),yt=ho.getTranslate(this),Nr;if(Jt===za){var ut=br.right+yt.x,Pt=Le.right+ar.x+Te-u-sr+m;Nr=Pt-ut,Nr>0&&(Nr=0)}else if(Jt===It){var Qr=br.left+yt.x,ct=Le.left+ar.x+Te+u+sr;Nr=ct-Qr,Nr<0&&(Nr=0)}Nr&&(de<3?this.setAttribute("transform","translate("+Nr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var nr={},Mr=gU[c],Or=bU[c],jr=gU[v],Vr=bU[v],Yt=Oe-V;a?(i==="pixels"?(nr.y=y,nr.t=U*jr,nr.b=U*Vr):(nr.t=nr.b=0,nr.yt=y+n*jr,nr.yb=y-n*Vr),l==="pixels"?(nr.x=m,nr.l=Oe*Mr,nr.r=Oe*Or):(nr.l=Yt*Mr,nr.r=Yt*Or,nr.xl=m-o*Mr,nr.xr=m+o*Or)):(i==="pixels"?(nr.x=m,nr.l=U*Mr,nr.r=U*Or):(nr.l=nr.r=0,nr.xl=m+n*Mr,nr.xr=m-n*Or),l==="pixels"?(nr.y=1-y,nr.t=Oe*jr,nr.b=Oe*Vr):(nr.t=Yt*jr,nr.b=Yt*Vr,nr.yt=y-o*jr,nr.yb=y+o*Vr));var wt=r.y<.5?"b":"t",Tt=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var pt={r:_.width-Xe-$e,l:Xe+nr.r,b:_.height-Qe-Fe,t:Qe+nr.b};w&&x?jm.autoMargin(t,r._id,nr):w?t._fullLayout._reservedMargin[r._id][wt]=pt[wt]:x||a?t._fullLayout._reservedMargin[r._id][Tt]=pt[Tt]:t._fullLayout._reservedMargin[r._id][wt]=pt[wt]}return Li.syncOrAsync([jm.previousPromises,Ge,De,He,jm.previousPromises,Ie],t)}function uxe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;Wm.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),uw(e)},moveFn:function(u,f){e.attr("transform",o+po(u,f)),l=Wm.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Wm.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=Wm.getCursor(l,s,r.xanchor,r.yanchor);uw(e,c)},doneFn:function(){if(uw(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?yU.call("_guiRestyle",t,u,r._traceIndex):yU.call("_guiRelayout",t,u)}}})}function fxe(e,r,t){var a=r._levels,n=[],i=[],o,l,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=a.start+l*u,!(u>0?o>=s:o<=s));l++)o>f&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";TU.exports={moduleType:"component",name:"colorbar",attributes:r1(),supplyDefaults:vx(),draw:wU().draw,hasColorbar:ix()}});var kU=N((ENe,MU)=>{"use strict";MU.exports={moduleType:"component",name:"legend",layoutAttributes:o5(),supplyLayoutDefaults:u5(),draw:_5(),style:m5()}});var qU=N((DNe,SU)=>{"use strict";SU.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var CU=N((RNe,LU)=>{"use strict";LU.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var hw=N((PNe,PU)=>{"use strict";var vxe=gr(),RU=Ce(),vw=RU.extendFlat,EU=RU.extendDeep;function DU(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function hxe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}PU.exports=function(r,t){var a,n=r.data,i=r.layout,o=EU([],n),l=EU({},i,DU(t.tileClass)),s=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var u=Object.keys(l);for(a=0;a{"use strict";var dxe=Qs().EventEmitter,pxe=gr(),yxe=Ce(),FU=yl(),mxe=hw(),gxe=Qy(),bxe=em();function xxe(e,r){var t=new dxe,a=mxe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=FU.getDelay(n._fullLayout);setTimeout(function(){var s=gxe(n),u=document.createElement("canvas");u.id=yxe.randstr(),t=bxe({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},l)}var o=FU.getRedrawFunc(n);return pxe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}NU.exports=xxe});var BU=N((NNe,OU)=>{"use strict";var IU=yl(),_xe={getDelay:IU.getDelay,getRedrawFunc:IU.getRedrawFunc,clone:hw(),toSVG:Qy(),svgToImg:em(),toImage:zU(),downloadImage:O_()};OU.exports=_xe});var UU=N(xl=>{"use strict";xl.version=ip().version;YA();PS();var wxe=gr(),T0=xl.register=wxe.register,pw=az(),HU=Object.keys(pw);for(Zm=0;Zm{"use strict";GU.exports=UU()});var Jm=N((ONe,VU)=>{"use strict";VU.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Nu=N((BNe,XU)=>{"use strict";var Gt=wi(),WU=Qi().axisHoverFormat,Txe=Ta().hovertemplateAttrs,Axe=Ta().texttemplateAttrs,ZU=ko(),Mxe=da(),jU=Jm(),kxe=si().pattern,Fu=xt().extendFlat,yw=Mxe({editType:"calc",arrayOk:!0,colorEditType:"style"}),Sxe=Gt.marker,qxe=Sxe.line,Lxe=Fu({},qxe.width,{dflt:0}),Cxe=Fu({width:Lxe,editType:"calc"},ZU("marker.line")),Exe=Fu({line:Cxe,editType:"calc"},ZU("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:kxe,cornerradius:{valType:"any",editType:"calc"}});XU.exports={x:Gt.x,x0:Gt.x0,dx:Gt.dx,y:Gt.y,y0:Gt.y0,dy:Gt.dy,xperiod:Gt.xperiod,yperiod:Gt.yperiod,xperiod0:Gt.xperiod0,yperiod0:Gt.yperiod0,xperiodalignment:Gt.xperiodalignment,yperiodalignment:Gt.yperiodalignment,xhoverformat:WU("x"),yhoverformat:WU("y"),text:Gt.text,texttemplate:Axe({editType:"plot"},{keys:jU.eventDataKeys}),hovertext:Gt.hovertext,hovertemplate:Txe({},{keys:jU.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Fu({},yw,{}),insidetextfont:Fu({},yw,{}),outsidetextfont:Fu({},yw,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Fu({},Gt.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:Exe,offsetgroup:Gt.offsetgroup,alignmentgroup:Gt.alignmentgroup,selected:{marker:{opacity:Gt.selected.marker.opacity,color:Gt.selected.marker.color,editType:"style"},textfont:Gt.selected.textfont,editType:"style"},unselected:{marker:{opacity:Gt.unselected.marker.opacity,color:Gt.unselected.marker.color,editType:"style"},textfont:Gt.unselected.textfont,editType:"style"},zorder:Gt.zorder}});var $m=N((HNe,JU)=>{"use strict";JU.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var mw=N((UNe,QU)=>{"use strict";var Dxe=Tr(),$U=vi().hasColorscale,KU=ul(),Rxe=Ce().coercePattern;QU.exports=function(r,t,a,n,i){var o=a("marker.color",n),l=$U(r,"marker");l&&KU(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",Dxe.defaultLine),$U(r,"marker.line")&&KU(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),Rxe(a,"marker.pattern",o,l),a("selected.marker.color"),a("unselected.marker.color")}});var zu=N((GNe,iG)=>{"use strict";var eG=Rr(),Fc=Ce(),rG=Tr(),Pxe=gr(),Fxe=U_(),Nxe=dc(),zxe=mw(),Ixe=n0(),tG=Nu(),Km=Fc.coerceFont;function Oxe(e,r,t,a){function n(u,f){return Fc.coerce(e,r,tG,u,f)}var i=Fxe(e,r,a,n);if(!i){r.visible=!1;return}Nxe(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate");var o=n("textposition");nG(e,r,a,n,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),zxe(e,r,n,t,a);var l=(r.marker.line||{}).color,s=Pxe.getComponentMethod("errorbars","supplyDefaults");s(e,r,l||rG.defaultLine,{axis:"y"}),s(e,r,l||rG.defaultLine,{axis:"x",inherit:"y"}),Fc.coerceSelectionMarkerOpacity(r,n)}function Bxe(e,r){var t,a;function n(l,s){return Fc.coerce(a._input,a,tG,l,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&eG(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function nG(e,r,t,a,n,i){i=i||{};var o=i.moduleHasSelected!==!1,l=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,c=i.moduleHasInsideanchor!==!1,v=!!i.hasPathbar,d=Array.isArray(n)||n==="auto",p=d||n==="inside",m=d||n==="outside";if(p||m){var y=Km(a,"textfont",t.font),x=Fc.extendFlat({},y),w=e.textfont&&e.textfont.color,_=!w;if(_&&delete x.color,Km(a,"insidetextfont",x),v){var b=Fc.extendFlat({},y);_&&delete b.color,Km(a,"pathbar.textfont",b)}m&&Km(a,"outsidetextfont",y),o&&a("selected.textfont.color"),l&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate")}p&&c&&a("insidetextanchor")}iG.exports={supplyDefaults:Oxe,crossTraceDefaults:Bxe,handleText:nG,validateCornerradius:aG}});var gw=N((YNe,oG)=>{"use strict";var Hxe=gr(),Uxe=Ir(),Gxe=Ce(),Yxe=$m(),Vxe=zu().validateCornerradius;oG.exports=function(e,r,t){function a(m,y){return Gxe.coerce(e,r,Yxe,m,y)}for(var n=!1,i=!1,o=!1,l={},s=a("barmode"),u=s==="group",f=0;f0&&!l[v]&&(o=!0),l[v]=!0),c.visible&&c.type==="histogram"){var d=Uxe.getFromId({_fullLayout:r},c[c.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!o?0:.2),a("bargroupgap");var p=a("barcornerradius");r.barcornerradius=Vxe(p)}});var Qm=N((VNe,lG)=>{"use strict";var Nc=Ce();lG.exports=function(r,t){for(var a=0;a{"use strict";var sG=Ir(),uG=yc(),fG=vi().hasColorscale,cG=fh(),Wxe=Qm(),jxe=sm();vG.exports=function(r,t){var a=sG.getFromId(r,t.xaxis||"x"),n=sG.getFromId(r,t.yaxis||"y"),i,o,l,s,u,f,c={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",c),l=n.makeCalcdata(t,"y"),s=uG(t,n,"y",l),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),l=a.makeCalcdata(t,"x"),s=uG(t,a,"x",l),u=!!t.xperiodalignment,f="x"),o=s.vals;for(var v=Math.min(o.length,i.length),d=new Array(v),p=0;p{"use strict";var Zxe=Sr(),Xxe=Ce();function Jxe(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",o;switch(t){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}r.selectAll(o).each(function(l){var s=l.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=Zxe.select(this).select("text");Xxe.setTransormAndDisplay(u,s)}})}}function $xe(e,r,t){if(t.uniformtext.mode){var a=dG(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var Qxe=Rr(),e5e=kn(),yG=Ce().isArrayOrTypedArray;Iu.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};Iu.coerceNumber=function(e,r,t){if(Qxe(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};Iu.coerceColor=function(e,r,t){return e5e(r).isValid()?r:t!==void 0?t:e.dflt};Iu.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Iu.getValue=function(e,r){var t;return yG(e)?r{"use strict";var M0=Sr(),r5e=Tr(),k0=Wr(),mG=Ce(),gG=gr(),bG=A0().resizeText,bw=Nu(),t5e=bw.textfont,a5e=bw.insidetextfont,n5e=bw.outsidetextfont,Ya=eg();function i5e(e){var r=M0.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");bG(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&M0.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=M0.select(this),o=n[0].trace;xG(i,o,e)}),gG.getComponentMethod("errorbars","style")(r)}function xG(e,r,t){k0.pointStyle(e.selectAll("path"),r,t),_G(e,r,t)}function _G(e,r,t){e.selectAll("text").each(function(a){var n=M0.select(this),i=mG.ensureUniformFontSize(t,wG(n,a,r,t));k0.font(n,i)})}function o5e(e,r,t){var a=r[0].trace;a.selectedpoints?l5e(t,a,e):(xG(t,a,e),gG.getComponentMethod("errorbars","style")(t))}function l5e(e,r,t){k0.selectedPointStyle(e.selectAll("path"),r),s5e(e.selectAll("text"),r,t)}function s5e(e,r,t){e.each(function(a){var n=M0.select(this),i;if(a.selected){i=mG.ensureUniformFontSize(t,wG(n,a,r,t));var o=r.selected.textfont&&r.selected.textfont.color;o&&(i.color=o),k0.font(n,i)}else k0.selectedTextStyle(n,r)})}function wG(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var o=kG(r,t);i=AG(t,r.i,n,o)}else e.classed("bartext-outside")&&(i=MG(t,r.i,n));return i}function TG(e,r,t){return xw(t5e,e.textfont,r,t)}function AG(e,r,t,a){var n=TG(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:r5e.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),xw(a5e,e.insidetextfont,r,n)}function MG(e,r,t){var a=TG(e,r,t);return xw(n5e,e.outsidetextfont,r,a)}function xw(e,r,t,a){r=r||{};var n=Ya.getValue(r.family,t),i=Ya.getValue(r.size,t),o=Ya.getValue(r.color,t),l=Ya.getValue(r.weight,t),s=Ya.getValue(r.style,t),u=Ya.getValue(r.variant,t),f=Ya.getValue(r.textcase,t),c=Ya.getValue(r.lineposition,t),v=Ya.getValue(r.shadow,t);return{family:Ya.coerceString(e.family,n,a.family),size:Ya.coerceNumber(e.size,i,a.size),color:Ya.coerceColor(e.color,o,a.color),weight:Ya.coerceString(e.weight,l,a.weight),style:Ya.coerceString(e.style,s,a.style),variant:Ya.coerceString(e.variant,u,a.variant),textcase:Ya.coerceString(e.variant,f,a.textcase),lineposition:Ya.coerceString(e.variant,c,a.lineposition),shadow:Ya.coerceString(e.variant,v,a.shadow)}}function kG(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}SG.exports={style:i5e,styleTextPoints:_G,styleOnSelect:o5e,getInsideTextFont:AG,getOutsideTextFont:MG,getBarColor:kG,resizeText:bG}});var Tw=N((JNe,FG)=>{"use strict";var rg=Sr(),tg=Rr(),Pa=Ce(),u5e=Da(),f5e=Tr(),ys=Wr(),c5e=gr(),ag=Ir().tickText,qG=A0(),v5e=qG.recordMinTextSize,h5e=qG.clearMinTextSize,_w=zc(),Ic=eg(),d5e=Jm(),LG=Nu(),p5e=LG.text,y5e=LG.textposition,m5e=qo().appendArrayPointValue,cn=d5e.TEXTPAD;function g5e(e){return e.id}function b5e(e){if(e.ids)return g5e}function ww(e){return(e>0)-(e<0)}function Ho(e,r){return e0}function _5e(e,r,t,a,n,i){var o=r.xaxis,l=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},h5e("bar",s));var f=Pa.makeTraceGroups(a,t,"trace bars").each(function(c){var v=rg.select(this),d=c[0].trace,p=c[0].t,m=d.type==="waterfall",y=d.type==="funnel",x=d.type==="histogram",w=d.type==="bar",_=w||y,b=0;m&&d.connector.visible&&d.connector.mode==="between"&&(b=d.connector.line.width/2);var T=d.orientation==="h",k=EG(n),M=Pa.ensureSingle(v,"g","points"),S=b5e(d),E=M.selectAll("g.point").data(Pa.identity,S);E.enter().append("g").classed("point",!0),E.exit().remove(),E.each(function(P,R){var z=rg.select(this),O=x5e(P,o,l,T),B=O[0][0],V=O[0][1],G=O[1][0],U=O[1][1],Y=(T?V-B:U-G)===0;Y&&_&&Ic.getLineWidth(d,P)&&(Y=!1),Y||(Y=!tg(B)||!tg(V)||!tg(G)||!tg(U)),P.isBlank=Y,Y&&(T?V=B:U=G),b&&!Y&&(T?(B-=Ho(B,V)*b,V+=Ho(B,V)*b):(G-=Ho(G,U)*b,U+=Ho(G,U)*b));var J,Z;if(d.type==="waterfall"){if(!Y){var re=d[P.dir].marker;J=re.line.width,Z=re.color}}else J=Ic.getLineWidth(d,P),Z=P.mc||d.marker.color;function se(ue){var Ae=rg.round(J/2%1,2);return n.gap===0&&n.groupgap===0?rg.round(Math.round(ue)-Ae,2):ue}function oe(ue,Ae,je){return je&&ue===Ae?ue:Math.abs(ue-Ae)>=2?se(ue):ue>Ae?Math.ceil(ue):Math.floor(ue)}var ce=f5e.opacity(Z),K=ce<1||J>.01?se:oe;e._context.staticPlot||(B=K(B,V,T),V=K(V,B,T),G=K(G,U,!T),U=K(U,G,!T));var Te=T?o.c2p:l.c2p,le;P.s0>0?le=P._sMax:P.s0<0?le=P._sMin:le=P.s1>0?P._sMax:P._sMin;function ve(ue,Ae){if(!ue)return 0;var je=Math.abs(T?U-G:V-B),ur=Math.abs(T?V-B:U-G),lr=K(Math.abs(Te(le,!0)-Te(0,!0))),fe=P.hasB?Math.min(je/2,ur/2):Math.min(je/2,lr),qe;if(Ae==="%"){var Oe=Math.min(50,ue);qe=je*(Oe/100)}else qe=ue;return K(Math.max(Math.min(qe,fe),0))}var ie=w||x?ve(p.cornerradiusvalue,p.cornerradiusform):0,pe,W,Q="M"+B+","+G+"V"+U+"H"+V+"V"+G+"Z",j=0;if(ie&&P.s){var me=ww(P.s0)===0||ww(P.s)===ww(P.s0)?P.s1:P.s0;if(j=K(P.hasB?0:Math.abs(Te(le,!0)-Te(me,!0))),j0?Math.sqrt(j*(2*ie-j)):0,ze=_e>0?Math.max:Math.min;pe="M"+B+","+G+"V"+(U-Ne*ye)+"H"+ze(V-(ie-j)*_e,B)+"A "+ie+","+ie+" 0 0 "+Pe+" "+V+","+(U-ie*ye-Re)+"V"+(G+ie*ye+Re)+"A "+ie+","+ie+" 0 0 "+Pe+" "+ze(V-(ie-j)*_e,B)+","+(G+Ne*ye)+"Z"}else if(P.hasB)pe="M"+(B+ie*_e)+","+G+"A "+ie+","+ie+" 0 0 "+Pe+" "+B+","+(G+ie*ye)+"V"+(U-ie*ye)+"A "+ie+","+ie+" 0 0 "+Pe+" "+(B+ie*_e)+","+U+"H"+(V-ie*_e)+"A "+ie+","+ie+" 0 0 "+Pe+" "+V+","+(U-ie*ye)+"V"+(G+ie*ye)+"A "+ie+","+ie+" 0 0 "+Pe+" "+(V-ie*_e)+","+G+"Z";else{W=Math.abs(U-G)+j;var Ge=W0?Math.sqrt(j*(2*ie-j)):0,De=ye>0?Math.max:Math.min;pe="M"+(B+Ge*_e)+","+G+"V"+De(U-(ie-j)*ye,G)+"A "+ie+","+ie+" 0 0 "+Pe+" "+(B+ie*_e-He)+","+U+"H"+(V-ie*_e+He)+"A "+ie+","+ie+" 0 0 "+Pe+" "+(V-Ge*_e)+","+De(U-(ie-j)*ye,G)+"V"+G+"Z"}}else pe=Q}else pe=Q;var Ie=CG(Pa.ensureSingle(z,"path"),s,n,i);if(Ie.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((V-B)*(U-G))||Y&&e._context.staticPlot?"M0,0Z":pe).call(ys.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&k){var Be=ys.makePointStyleFns(d);ys.singlePointStyle(P,Ie,d,Be,e)}w5e(e,r,z,c,R,B,V,G,U,ie,j,n,i),r.layerClipId&&ys.hideOutsideRangePoint(P,z.select("text"),o,l,d.xcalendar,d.ycalendar)});var D=d.cliponaxis===!1;ys.setClipUrl(v,D?null:r.layerClipId,e)});c5e.getComponentMethod("errorbars","plot")(e,f,r,n)}function w5e(e,r,t,a,n,i,o,l,s,u,f,c,v){var d=r.xaxis,p=r.yaxis,m=e._fullLayout,y;function x(W,Q,j){var me=Pa.ensureSingle(W,"text").text(Q).attr({class:"bartext bartext-"+y,"text-anchor":"middle","data-notex":1}).call(ys.font,j).call(u5e.convertToTspans,e);return me}var w=a[0].trace,_=w.orientation==="h",b=M5e(m,a,n,d,p);y=k5e(w,n);var T=c.mode==="stack"||c.mode==="relative",k=a[n],M=!T||k._outmost,S=k.hasB,E=u&&u-f>cn;if(!b||y==="none"||(k.isBlank||i===o||l===s)&&(y==="auto"||y==="inside")){t.select("text").remove();return}var D=m.font,P=_w.getBarColor(a[n],w),R=_w.getInsideTextFont(w,n,D,P),z=_w.getOutsideTextFont(w,n,D),O=w.insidetextanchor||"end",B=t.datum();_?d.type==="log"&&B.s0<=0&&(d.range[0]0&&se>0,K;E?S?K=Ou(U-2*u,Y,re,se,_)||Ou(U,Y-2*u,re,se,_):_?K=Ou(U-(u-f),Y,re,se,_)||Ou(U,Y-2*(u-f),re,se,_):K=Ou(U,Y-(u-f),re,se,_)||Ou(U-2*(u-f),Y,re,se,_):K=Ou(U,Y,re,se,_),ce&&K?y="inside":(y="outside",J.remove(),J=null)}else y="inside";if(!J){oe=Pa.ensureUniformFontSize(e,y==="outside"?z:R),J=x(t,b,oe);var Te=J.attr("transform");if(J.attr("transform",""),Z=ys.bBox(J.node()),re=Z.width,se=Z.height,J.attr("transform",Te),re<=0||se<=0){J.remove();return}}var le=w.textangle,ve,ie;y==="outside"?(ie=w.constraintext==="both"||w.constraintext==="outside",ve=A5e(i,o,l,s,Z,{isHorizontal:_,constrained:ie,angle:le})):(ie=w.constraintext==="both"||w.constraintext==="inside",ve=PG(i,o,l,s,Z,{isHorizontal:_,constrained:ie,angle:le,anchor:O,hasB:S,r:u,overhead:f})),ve.fontSize=oe.size,v5e(w.type==="histogram"?"bar":w.type,ve,m),k.transform=ve;var pe=CG(J,m,c,v);Pa.setTransormAndDisplay(pe,ve)}function Ou(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,o=t<=r&&a<=e,l=n?e>=t*(r/a):r>=a*(e/t);return i||o||l}function DG(e){return e==="auto"?0:e}function RG(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function PG(e,r,t,a,n,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",c=u==="start",v=i.leftToRight||0,d=(v+1)/2,p=1-d,m=i.hasB,y=i.r,x=i.overhead,w=n.width,_=n.height,b=Math.abs(r-e),T=Math.abs(a-t),k=b>2*cn&&T>2*cn?cn:0;b-=2*k,T-=2*k;var M=DG(s);s==="auto"&&!(w<=b&&_<=T)&&(w>b||_>T)&&(!(w>T||_>b)||w<_!=bcn){var P=T5e(e,r,t,a,S,y,x,o,m);E=P.scale,D=P.pad}else E=1,l&&(E=Math.min(1,b/S.x,T/S.y)),D=0;var R=n.left*p+n.right*d,z=(n.top+n.bottom)/2,O=(e+cn)*p+(r-cn)*d,B=(t+a)/2,V=0,G=0;if(c||f){var U=(o?S.x:S.y)/2;y&&(f||m)&&(k+=D);var Y=o?Ho(e,r):Ho(t,a);o?c?(O=e+Y*k,V=-Y*U):(O=r-Y*k,V=Y*U):c?(B=t+Y*k,G=-Y*U):(B=a-Y*k,G=Y*U)}return{textX:R,textY:z,targetX:O,targetY:B,anchorX:V,anchorY:G,scale:E,rotate:M}}function T5e(e,r,t,a,n,i,o,l,s){var u=Math.max(0,Math.abs(r-e)-2*cn),f=Math.max(0,Math.abs(a-t)-2*cn),c=i-cn,v=o?c-Math.sqrt(c*c-(c-o)*(c-o)):c,d=s?c*2:l?c-o:2*v,p=s?c*2:l?2*v:c-o,m,y,x,w,_;return n.y/n.x>=f/(u-d)?w=f/n.y:n.y/n.x<=(f-p)/u?w=u/n.x:!s&&l?(m=n.x*n.x+n.y*n.y/4,y=-2*n.x*(u-c)-n.y*(f/2-c),x=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,w=(-y+Math.sqrt(y*y-4*m*x))/(2*m)):s?(m=(n.x*n.x+n.y*n.y)/4,y=-n.x*(u/2-c)-n.y*(f/2-c),x=(u/2-c)*(u/2-c)+(f/2-c)*(f/2-c)-c*c,w=(-y+Math.sqrt(y*y-4*m*x))/(2*m)):(m=n.x*n.x/4+n.y*n.y,y=-n.x*(u/2-c)-2*n.y*(f-c),x=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,w=(-y+Math.sqrt(y*y-4*m*x))/(2*m)),w=Math.min(1,w),l?_=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*w)/2)*(c-(f-n.y*w)/2)))-o):_=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*w)/2)*(c-(u-n.x*w)/2)))-o),{scale:w,pad:_}}function A5e(e,r,t,a,n,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,c=Math.abs(r-e),v=Math.abs(a-t),d;o?d=v>2*cn?cn:0:d=c>2*cn?cn:0;var p=1;l&&(p=o?Math.min(1,v/f):Math.min(1,c/u));var m=DG(s),y=RG(n,m),x=(o?y.x:y.y)/2,w=(n.left+n.right)/2,_=(n.top+n.bottom)/2,b=(e+r)/2,T=(t+a)/2,k=0,M=0,S=o?Ho(r,e):Ho(t,a);return o?(b=r-S*d,k=S*x):(T=a+S*d,M=-S*x),{textX:w,textY:_,targetX:b,targetY:T,anchorX:k,anchorY:M,scale:p,rotate:m}}function M5e(e,r,t,a,n){var i=r[0].trace,o=i.texttemplate,l;return o?l=S5e(e,r,t,a,n):i.textinfo?l=q5e(r,t,a,n):l=Ic.getValue(i.text,t),Ic.coerceString(p5e,l)}function k5e(e,r){var t=Ic.getValue(e.textposition,r);return Ic.coerceEnumerated(y5e,t)}function S5e(e,r,t,a,n){var i=r[0].trace,o=Pa.castOption(i,t,"texttemplate");if(!o)return"";var l=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",c,v,d,p;f?(c="y",v=n,d="x",p=a):(c="x",v=a,d="y",p=n);function m(k){return ag(v,v.c2l(k),!0).text}function y(k){return ag(p,p.c2l(k),!0).text}var x=r[t],w={};w.label=x.p,w.labelLabel=w[c+"Label"]=m(x.p);var _=Pa.castOption(i,x.i,"text");(_===0||_)&&(w.text=_),w.value=x.s,w.valueLabel=w[d+"Label"]=y(x.s);var b={};m5e(b,i,x.i),(l||b.x===void 0)&&(b.x=f?w.value:w.label),(l||b.y===void 0)&&(b.y=f?w.label:w.value),(l||b.xLabel===void 0)&&(b.xLabel=f?w.valueLabel:w.labelLabel),(l||b.yLabel===void 0)&&(b.yLabel=f?w.labelLabel:w.valueLabel),s&&(w.delta=+x.rawS||x.s,w.deltaLabel=y(w.delta),w.final=x.v,w.finalLabel=y(w.final),w.initial=w.final-w.delta,w.initialLabel=y(w.initial)),u&&(w.value=x.s,w.valueLabel=y(w.value),w.percentInitial=x.begR,w.percentInitialLabel=Pa.formatPercent(x.begR),w.percentPrevious=x.difR,w.percentPreviousLabel=Pa.formatPercent(x.difR),w.percentTotal=x.sumR,w.percenTotalLabel=Pa.formatPercent(x.sumR));var T=Pa.castOption(i,x.i,"customdata");return T&&(w.customdata=T),Pa.texttemplateString(o,w,e._d3locale,b,w,i._meta||{})}function q5e(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",o=n.type==="waterfall",l=n.type==="funnel";function s(T){var k=i?a:t;return ag(k,T,!0).text}function u(T){var k=i?t:a;return ag(k,+T,!0).text}var f=n.textinfo,c=e[r],v=f.split("+"),d=[],p,m=function(T){return v.indexOf(T)!==-1};if(m("label")&&d.push(s(e[r].p)),m("text")&&(p=Pa.castOption(n,c.i,"text"),(p===0||p)&&d.push(p)),o){var y=+c.rawS||c.s,x=c.v,w=x-y;m("initial")&&d.push(u(w)),m("delta")&&d.push(u(y)),m("final")&&d.push(u(x))}if(l){m("value")&&d.push(u(c.s));var _=0;m("percent initial")&&_++,m("percent previous")&&_++,m("percent total")&&_++;var b=_>1;m("percent initial")&&(p=Pa.formatPercent(c.begR),b&&(p+=" of initial"),d.push(p)),m("percent previous")&&(p=Pa.formatPercent(c.difR),b&&(p+=" of previous"),d.push(p)),m("percent total")&&(p=Pa.formatPercent(c.sumR),b&&(p+=" of total"),d.push(p))}return d.join("
")}FG.exports={plot:_5e,toMoveInsideBar:PG}});var Mw=N(($Ne,OG)=>{"use strict";var S0=Pn(),L5e=gr(),NG=Tr(),C5e=Ce().fillText,E5e=eg().getLineWidth,Aw=Ir().hoverLabelText,D5e=Nt().BADNUM;function R5e(e,r,t,a,n){var i=zG(e,r,t,a,n);if(i){var o=i.cd,l=o[0].trace,s=o[i.index];return i.color=IG(l,s),L5e.getComponentMethod("errorbars","hoverInfo")(s,l,i),[i]}}function zG(e,r,t,a,n){var i=e.cd,o=i[0].trace,l=i[0].t,s=a==="closest",u=o.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,v,d,p,m,y,x,w;o.orientation==="h"?(v=t,d=r,p="y",m="x",y=B,x=R):(v=r,d=t,p="x",m="y",x=B,y=R);var _=o[p+"period"],b=s||_;function T(K){return M(K,-1)}function k(K){return M(K,1)}function M(K,Te){var le=K.w;return K[p]+Te*le/2}function S(K){return K[p+"End"]-K[p+"Start"]}var E=s?T:_?function(K){return K.p-S(K)/2}:function(K){return Math.min(T(K),K.p-l.bardelta/2)},D=s?k:_?function(K){return K.p+S(K)/2}:function(K){return Math.max(k(K),K.p+l.bardelta/2)};function P(K,Te,le){return n.finiteRange&&(le=0),S0.inbox(K-v,Te-v,le+Math.min(1,Math.abs(Te-K)/w)-1)}function R(K){return P(E(K),D(K),f)}function z(K){return P(T(K),k(K),c)}function O(K){var Te=K[m];if(u){var le=Math.abs(K.rawS)||0;d>0?Te+=le:d<0&&(Te-=le)}return Te}function B(K){var Te=d,le=K.b,ve=O(K);return S0.inbox(le-Te,ve-Te,f+(ve-Te)/(ve-le)-1)}function V(K){var Te=d,le=K.b,ve=O(K);return S0.inbox(le-Te,ve-Te,c+(ve-Te)/(ve-le)-1)}var G=e[p+"a"],U=e[m+"a"];w=Math.abs(G.r2c(G.range[1])-G.r2c(G.range[0]));function Y(K){return(y(K)+x(K))/2}var J=S0.getDistanceFunction(a,y,x,Y);if(S0.getClosest(i,J,e),e.index!==!1&&i[e.index].p!==D5e){b||(E=function(K){return Math.min(T(K),K.p-l.bargroupwidth/2)},D=function(K){return Math.max(k(K),K.p+l.bargroupwidth/2)});var Z=e.index,re=i[Z],se=o.base?re.b+re.s:re.s;e[m+"0"]=e[m+"1"]=U.c2p(re[m],!0),e[m+"LabelVal"]=se;var oe=l.extents[l.extents.round(re.p)];e[p+"0"]=G.c2p(s?E(re):oe[0],!0),e[p+"1"]=G.c2p(s?D(re):oe[1],!0);var ce=re.orig_p!==void 0;return e[p+"LabelVal"]=ce?re.orig_p:re.p,e.labelLabel=Aw(G,e[p+"LabelVal"],o[p+"hoverformat"]),e.valueLabel=Aw(U,e[m+"LabelVal"],o[m+"hoverformat"]),e.baseLabel=Aw(U,re.b,o[m+"hoverformat"]),e.spikeDistance=(V(re)+z(re))/2,e[p+"Spike"]=G.c2p(re.p,!0),C5e(re,o,e),e.hovertemplate=o.hovertemplate,e}}function IG(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=E5e(e,r);if(NG.opacity(t))return t;if(NG.opacity(a)&&n)return a}OG.exports={hoverPoints:R5e,hoverOnBars:zG,getTraceColor:IG}});var HG=N((KNe,BG)=>{"use strict";BG.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var kw=N((QNe,UG)=>{"use strict";UG.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=a[0].trace,l=o.type==="funnel",s=o.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";GG.exports={attributes:Nu(),layoutAttributes:$m(),supplyDefaults:zu().supplyDefaults,crossTraceDefaults:zu().crossTraceDefaults,supplyLayoutDefaults:gw(),calc:hG(),crossTraceCalc:vm().crossTraceCalc,colorbar:u0(),arraysToCalcdata:Qm(),plot:Tw().plot,style:zc().style,styleOnSelect:zc().styleOnSelect,hoverPoints:Mw().hoverPoints,eventData:HG(),selectPoints:kw(),moduleType:"trace",name:"bar",basePlotModule:qi(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var WG=N((rze,VG)=>{"use strict";VG.exports=YG()});var ng=N((tze,JG)=>{"use strict";var F5e=Dy(),Ci=wi(),jG=Nu(),N5e=li(),ZG=Qi().axisHoverFormat,z5e=Ta().hovertemplateAttrs,_l=xt().extendFlat,Oc=Ci.marker,XG=Oc.line;JG.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:Ci.xperiod,yperiod:Ci.yperiod,xperiod0:Ci.xperiod0,yperiod0:Ci.yperiod0,xperiodalignment:Ci.xperiodalignment,yperiodalignment:Ci.yperiodalignment,xhoverformat:ZG("x"),yhoverformat:ZG("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:_l({},Oc.symbol,{arrayOk:!1,editType:"plot"}),opacity:_l({},Oc.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:_l({},Oc.angle,{arrayOk:!1,editType:"calc"}),size:_l({},Oc.size,{arrayOk:!1,editType:"calc"}),color:_l({},Oc.color,{arrayOk:!1,editType:"style"}),line:{color:_l({},XG.color,{arrayOk:!1,dflt:N5e.defaultLine,editType:"style"}),width:_l({},XG.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:F5e(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:jG.offsetgroup,alignmentgroup:jG.alignmentgroup,selected:{marker:Ci.selected.marker,editType:"style"},unselected:{marker:Ci.unselected.marker,editType:"style"},text:_l({},Ci.text,{}),hovertext:_l({},Ci.hovertext,{}),hovertemplate:z5e({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:Ci.zorder}});var ig=N((aze,$G)=>{"use strict";$G.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var L0=N((nze,rY)=>{"use strict";var Ei=Ce(),I5e=gr(),O5e=Tr(),B5e=dc(),H5e=n0(),KG=w1(),q0=ng();function U5e(e,r,t,a){function n(p,m){return Ei.coerce(e,r,q0,p,m)}if(QG(e,r,n,a),r.visible!==!1){B5e(e,r,a,n),n("xhoverformat"),n("yhoverformat");var i=r._hasPreCompStats;i&&(n("lowerfence"),n("upperfence")),n("line.color",(e.marker||{}).color||t),n("line.width"),n("fillcolor",O5e.addOpacity(r.line.color,.5));var o=!1;if(i){var l=n("mean"),s=n("sd");l&&l.length&&(o=!0,s&&s.length&&(o="sd"))}n("whiskerwidth");var u=n("sizemode"),f;u==="quartiles"&&(f=n("boxmean",o)),n("showwhiskers",u==="quartiles"),(u==="sd"||f==="sd")&&n("sdmultiple"),n("width"),n("quartilemethod");var c=!1;if(i){var v=n("notchspan");v&&v.length&&(c=!0)}else Ei.validate(e.notchwidth,q0.notchwidth)&&(c=!0);var d=n("notched",c);d&&n("notchwidth"),eY(e,r,n,{prefix:"box"}),n("zorder")}}function QG(e,r,t,a){function n(D){var P=0;return D&&D.length&&(P+=1,Ei.isArrayOrTypedArray(D[0])&&D[0].length&&(P+=1)),P}function i(D){return Ei.validate(e[D],q0[D])}var o=t("y"),l=t("x"),s;if(r.type==="box"){var u=t("q1"),f=t("median"),c=t("q3");r._hasPreCompStats=u&&u.length&&f&&f.length&&c&&c.length,s=Math.min(Ei.minRowLength(u),Ei.minRowLength(f),Ei.minRowLength(c))}var v=n(o),d=n(l),p=v&&Ei.minRowLength(o),m=d&&Ei.minRowLength(l),y=a.calendar,x={autotypenumbers:a.autotypenumbers},w,_;if(r._hasPreCompStats)switch(String(d)+String(v)){case"00":var b=i("x0")||i("dx"),T=i("y0")||i("dy");T&&!b?w="h":w="v",_=s;break;case"10":w="v",_=Math.min(s,m);break;case"20":w="h",_=Math.min(s,l.length);break;case"01":w="h",_=Math.min(s,p);break;case"02":w="v",_=Math.min(s,o.length);break;case"12":w="v",_=Math.min(s,m,o.length);break;case"21":w="h",_=Math.min(s,l.length,p);break;case"11":_=0;break;case"22":var k=!1,M;for(M=0;M0?(w="v",d>0?_=Math.min(m,p):_=Math.min(p)):d>0?(w="h",_=Math.min(m)):_=0;if(!_){r.visible=!1;return}r._length=_;var S=t("orientation",w);r._hasPreCompStats?S==="v"&&d===0?(t("x0",0),t("dx",1)):S==="h"&&v===0&&(t("y0",0),t("dy",1)):S==="v"&&d===0?t("x0"):S==="h"&&v===0&&t("y0");var E=I5e.getComponentMethod("calendars","handleTraceDefaults");E(e,r,["x","y"],a)}function eY(e,r,t,a){var n=a.prefix,i=Ei.coerce2(e,r,q0,"marker.outliercolor"),o=t("marker.line.outliercolor"),l="outliers";r._hasPreCompStats?l="all":(i||o)&&(l="suspectedoutliers");var s=t(n+"points",l);s?(t("jitter",s==="all"?.3:0),t("pointpos",s==="all"?-1.5:0),t("marker.symbol"),t("marker.opacity"),t("marker.size"),t("marker.angle"),t("marker.color",r.line.color),t("marker.line.color"),t("marker.line.width"),s==="suspectedoutliers"&&(t("marker.line.outliercolor",r.marker.color),t("marker.line.outlierwidth")),t("selected.marker.color"),t("unselected.marker.color"),t("selected.marker.size"),t("unselected.marker.size"),t("text"),t("hovertext")):delete r.marker;var u=t("hoveron");(u==="all"||u.indexOf("points")!==-1)&&t("hovertemplate"),Ei.coerceSelectionMarkerOpacity(r,t)}function G5e(e,r){var t,a;function n(s){return Ei.coerce(a._input,a,q0,s)}for(var i=0;i{"use strict";var Y5e=gr(),V5e=Ce(),W5e=ig();function tY(e,r,t,a,n){for(var i=n+"Layout",o=!1,l=0;l{"use strict";var Lw=Rr(),og=Ir(),Z5e=yc(),na=Ce(),ri=Nt().BADNUM,wl=na._;vY.exports=function(r,t){var a=r._fullLayout,n=og.getFromId(r,t.xaxis||"x"),i=og.getFromId(r,t.yaxis||"y"),o=[],l=t.type==="violin"?"_numViolins":"_numBoxes",s,u,f,c,v,d,p;t.orientation==="h"?(f=n,c="x",v=i,d="y",p=!!t.yperiodalignment):(f=i,c="y",v=n,d="x",p=!!t.xperiodalignment);var m=X5e(t,d,v,a[l]),y=m[0],x=m[1],w=na.distinctVals(y,v),_=w.vals,b=w.minDiff/2,T,k,M,S,E,D,P=(t.boxpoints||t.points)==="all"?na.identity:function(Pe){return Pe.vT.uf};if(t._hasPreCompStats){var R=t[c],z=function(Pe){return f.d2c((t[Pe]||[])[s])},O=1/0,B=-1/0;for(s=0;s=T.q1&&T.q3>=T.med){var G=z("lowerfence");T.lf=G!==ri&&G<=T.q1?G:lY(T,M,S);var U=z("upperfence");T.uf=U!==ri&&U>=T.q3?U:sY(T,M,S);var Y=z("mean");T.mean=Y!==ri?Y:S?na.mean(M,S):(T.q1+T.q3)/2;var J=z("sd");T.sd=Y!==ri&&J>=0?J:S?na.stdev(M,S,T.mean):T.q3-T.q1,T.lo=uY(T),T.uo=fY(T);var Z=z("notchspan");Z=Z!==ri&&Z>0?Z:cY(T,S),T.ln=T.med-Z,T.un=T.med+Z;var re=T.lf,se=T.uf;t.boxpoints&&M.length&&(re=Math.min(re,M[0]),se=Math.max(se,M[S-1])),t.notched&&(re=Math.min(re,T.ln),se=Math.max(se,T.un)),T.min=re,T.max=se}else{na.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+T.q1,"median = "+T.med,"q3 = "+T.q3].join(` +`));var oe;T.med!==ri?oe=T.med:T.q1!==ri?T.q3!==ri?oe=(T.q1+T.q3)/2:oe=T.q1:T.q3!==ri?oe=T.q3:oe=0,T.med=oe,T.q1=T.q3=oe,T.lf=T.uf=oe,T.mean=T.sd=oe,T.ln=T.un=oe,T.min=T.max=oe}O=Math.min(O,T.min),B=Math.max(B,T.max),T.pts2=k.filter(P),o.push(T)}}t._extremes[f._id]=og.findExtremes(f,[O,B],{padded:!0})}else{var ce=f.makeCalcdata(t,c),K=J5e(_,b),Te=_.length,le=$5e(Te);for(s=0;s=0&&ve0){if(T={},T.pos=T[d]=_[s],k=T.pts=le[s].sort(iY),M=T[c]=k.map(oY),S=M.length,T.min=M[0],T.max=M[S-1],T.mean=na.mean(M,S),T.sd=na.stdev(M,S,T.mean)*t.sdmultiple,T.med=na.interp(M,.5),S%2&&(Q||j)){var me,_e;Q?(me=M.slice(0,S/2),_e=M.slice(S/2+1)):j&&(me=M.slice(0,S/2+1),_e=M.slice(S/2)),T.q1=na.interp(me,.5),T.q3=na.interp(_e,.5)}else T.q1=na.interp(M,.25),T.q3=na.interp(M,.75);T.lf=lY(T,M,S),T.uf=sY(T,M,S),T.lo=uY(T),T.uo=fY(T);var ye=cY(T,S);T.ln=T.med-ye,T.un=T.med+ye,ie=Math.min(ie,T.ln),pe=Math.max(pe,T.un),T.pts2=k.filter(P),o.push(T)}t.notched&&na.isTypedArray(ce)&&(ce=Array.from(ce)),t._extremes[f._id]=og.findExtremes(f,t.notched?ce.concat([ie,pe]):ce,{padded:!0})}return K5e(o,t),o.length>0?(o[0].t={num:a[l],dPos:b,posLetter:d,valLetter:c,labels:{med:wl(r,"median:"),min:wl(r,"min:"),q1:wl(r,"q1:"),q3:wl(r,"q3:"),max:wl(r,"max:"),mean:t.boxmean==="sd"||t.sizemode==="sd"?wl(r,"mean \xB1 \u03C3:").replace("\u03C3",t.sdmultiple===1?"\u03C3":t.sdmultiple+"\u03C3"):wl(r,"mean:"),lf:wl(r,"lower fence:"),uf:wl(r,"upper fence:")}},a[l]++,o):[{t:{empty:!0}}]};function X5e(e,r,t,a){var n=r in e,i=r+"0"in e,o="d"+r in e;if(n||i&&o){var l=t.makeCalcdata(e,r),s=Z5e(e,t,r,l).vals;return[s,l]}var u;i?u=e[r+"0"]:"name"in e&&(t.type==="category"||Lw(e.name)&&["linear","log"].indexOf(t.type)!==-1||na.isDateTime(e.name)&&t.type==="date")?u=e.name:u=a;for(var f=t.type==="multicategory"?t.r2c_just_indices(u):t.d2c(u,0,e[r+"calendar"]),c=e._length,v=new Array(c),d=0;d{"use strict";var hY=Ir(),Q5e=Ce(),e_e=Tu().getAxisGroup,dY=["v","h"];function r_e(e,r){for(var t=e.calcdata,a=r.xaxis,n=r.yaxis,i=0;i1,w=1-i[e+"gap"],_=1-i[e+"groupgap"];for(s=0;s0;if(M==="positive"?(U=S*(k?1:.5),Z=J,Y=Z=D):M==="negative"?(U=Z=D,Y=S*(k?1:.5),re=J):(U=Y=S,Z=re=J),le){var ve=b.pointpos,ie=b.jitter,pe=b.marker.size/2,W=0;ve+ie>=0&&(W=J*(ve+ie),W>U?(Te=!0,ce=pe,se=W):W>Z&&(ce=pe,se=U)),W<=U&&(se=U);var Q=0;ve-ie<=0&&(Q=-J*(ve-ie),Q>Y?(Te=!0,K=pe,oe=Q):Q>re&&(K=pe,oe=Y)),Q<=Y&&(oe=Y)}else se=U,oe=Y;var j=new Array(f.length);for(u=0;u{"use strict";var Bc=Sr(),Bu=Ce(),t_e=Wr(),mY=5,a_e=.01;function n_e(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,o=r.yaxis;Bu.makeTraceGroups(a,t,"trace boxes").each(function(l){var s=Bc.select(this),u=l[0],f=u.t,c=u.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){s.remove();return}var v,d;c.orientation==="h"?(v=o,d=i):(v=i,d=o),gY(s,{pos:v,val:d},c,f,n),bY(s,{x:i,y:o},c,f),xY(s,{pos:v,val:d},c,f)})}function gY(e,r,t,a,n){var i=t.orientation==="h",o=r.val,l=r.pos,s=!!l.rangebreaks,u=a.bPos,f=a.wdPos||0,c=a.bPosPxOffset||0,v=t.whiskerwidth||0,d=t.showwhiskers!==!1,p=t.notched||!1,m=p?1-2*t.notchwidth:1,y,x;Array.isArray(a.bdPos)?(y=a.bdPos[0],x=a.bdPos[1]):(y=a.bdPos,x=a.bdPos);var w=e.selectAll("path.box").data(t.type!=="violin"||t.box.visible?Bu.identity:[]);w.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),w.exit().remove(),w.each(function(_){if(_.empty)return Bc.select(this).attr("d","M0,0Z");var b=l.c2l(_.pos+u,!0),T=l.l2p(b-y)+c,k=l.l2p(b+x)+c,M=s?(T+k)/2:l.l2p(b)+c,S=t.whiskerwidth,E=s?T*S+(1-S)*M:l.l2p(b-f)+c,D=s?k*S+(1-S)*M:l.l2p(b+f)+c,P=l.l2p(b-y*m)+c,R=l.l2p(b+x*m)+c,z=t.sizemode==="sd",O=o.c2p(z?_.mean-_.sd:_.q1,!0),B=z?o.c2p(_.mean+_.sd,!0):o.c2p(_.q3,!0),V=Bu.constrain(z?o.c2p(_.mean,!0):o.c2p(_.med,!0),Math.min(O,B)+1,Math.max(O,B)-1),G=_.lf===void 0||t.boxpoints===!1||z,U=o.c2p(G?_.min:_.lf,!0),Y=o.c2p(G?_.max:_.uf,!0),J=o.c2p(_.ln,!0),Z=o.c2p(_.un,!0);i?Bc.select(this).attr("d","M"+V+","+P+"V"+R+"M"+O+","+T+"V"+k+(p?"H"+J+"L"+V+","+R+"L"+Z+","+k:"")+"H"+B+"V"+T+(p?"H"+Z+"L"+V+","+P+"L"+J+","+T:"")+"Z"+(d?"M"+O+","+M+"H"+U+"M"+B+","+M+"H"+Y+(v===0?"":"M"+U+","+E+"V"+D+"M"+Y+","+E+"V"+D):"")):Bc.select(this).attr("d","M"+P+","+V+"H"+R+"M"+T+","+O+"H"+k+(p?"V"+J+"L"+R+","+V+"L"+k+","+Z:"")+"V"+B+"H"+T+(p?"V"+Z+"L"+P+","+V+"L"+T+","+J:"")+"Z"+(d?"M"+M+","+O+"V"+U+"M"+M+","+B+"V"+Y+(v===0?"":"M"+E+","+U+"H"+D+"M"+E+","+Y+"H"+D):""))})}function bY(e,r,t,a){var n=r.x,i=r.y,o=a.bdPos,l=a.bPos,s=t.boxpoints||t.points;Bu.seedPseudoRandom();var u=function(v){return v.forEach(function(d){d.t=a,d.trace=t}),v},f=e.selectAll("g.points").data(s?u:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(v){var d,p=v.pts2,m=Math.max((v.max-v.min)/10,v.q3-v.q1),y=m*1e-9,x=m*a_e,w=[],_=0,b;if(t.jitter){if(m===0)for(_=1,w=new Array(p.length),d=0;dv.lo&&(D.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(t_e.translatePoints,n,i)}function xY(e,r,t,a){var n=r.val,i=r.pos,o=!!i.rangebreaks,l=a.bPos,s=a.bPosPxOffset||0,u=t.boxmean||(t.meanline||{}).visible,f,c;Array.isArray(a.bdPos)?(f=a.bdPos[0],c=a.bdPos[1]):(f=a.bdPos,c=a.bdPos);var v=e.selectAll("path.mean").data(t.type==="box"&&t.boxmean||t.type==="violin"&&t.box.visible&&t.meanline.visible?Bu.identity:[]);v.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),v.exit().remove(),v.each(function(d){var p=i.c2l(d.pos+l,!0),m=i.l2p(p-f)+s,y=i.l2p(p+c)+s,x=o?(m+y)/2:i.l2p(p)+s,w=n.c2p(d.mean,!0),_=n.c2p(d.mean-d.sd,!0),b=n.c2p(d.mean+d.sd,!0);t.orientation==="h"?Bc.select(this).attr("d","M"+w+","+m+"V"+y+(u==="sd"?"m0,0L"+_+","+x+"L"+w+","+m+"L"+b+","+x+"Z":"")):Bc.select(this).attr("d","M"+m+","+w+"H"+y+(u==="sd"?"m0,0L"+x+","+_+"L"+m+","+w+"L"+x+","+b+"Z":""))})}_Y.exports={plot:n_e,plotBoxAndWhiskers:gY,plotPoints:bY,plotBoxMean:xY}});var Nw=N((uze,wY)=>{"use strict";var Rw=Sr(),Pw=Tr(),Fw=Wr();function i_e(e,r,t){var a=t||Rw.select(e).selectAll("g.trace.boxes");a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=Rw.select(this),o=n[0].trace,l=o.line.width;function s(c,v,d,p){c.style("stroke-width",v+"px").call(Pw.stroke,d).call(Pw.fill,p)}var u=i.selectAll("path.box");if(o.type==="candlestick")u.each(function(c){if(!c.empty){var v=Rw.select(this),d=o[c.dir];s(v,d.line.width,d.line.color,d.fillcolor),v.style("opacity",o.selectedpoints&&!c.selected?.3:1)}});else{s(u,l,o.line.color,o.fillcolor),i.selectAll("path.mean").style({"stroke-width":l,"stroke-dasharray":2*l+"px,"+l+"px"}).call(Pw.stroke,o.line.color);var f=i.selectAll("path.point");Fw.pointStyle(f,o,e)}})}function o_e(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?Fw.selectedPointStyle(n,a):Fw.pointStyle(n,a,e)}wY.exports={style:i_e,styleOnSelect:o_e}});var Iw=N((fze,kY)=>{"use strict";var l_e=Ir(),zw=Ce(),ms=Pn(),TY=Tr(),s_e=zw.fillText;function u_e(e,r,t,a){var n=e.cd,i=n[0].trace,o=i.hoveron,l=[],s;return o.indexOf("boxes")!==-1&&(l=l.concat(AY(e,r,t,a))),o.indexOf("points")!==-1&&(s=MY(e,r,t)),a==="closest"?s?[s]:l:(s&&l.push(s),l)}function AY(e,r,t,a){var n=e.cd,i=e.xa,o=e.ya,l=n[0].trace,s=n[0].t,u=l.type==="violin",f,c,v,d,p,m,y,x,w,_,b,T=s.bdPos,k,M,S=s.wHover,E=function(pe){return v.c2l(pe.pos)+s.bPos-v.c2l(m)};u&&l.side!=="both"?(l.side==="positive"&&(w=function(pe){var W=E(pe);return ms.inbox(W,W+S,_)},k=T,M=0),l.side==="negative"&&(w=function(pe){var W=E(pe);return ms.inbox(W-S,W,_)},k=0,M=T)):(w=function(pe){var W=E(pe);return ms.inbox(W-S,W+S,_)},k=M=T);var D;u?D=function(pe){return ms.inbox(pe.span[0]-p,pe.span[1]-p,_)}:D=function(pe){return ms.inbox(pe.min-p,pe.max-p,_)},l.orientation==="h"?(p=r,m=t,y=D,x=w,f="y",v=o,c="x",d=i):(p=t,m=r,y=w,x=D,f="x",v=i,c="y",d=o);var P=Math.min(1,T/Math.abs(v.r2c(v.range[1])-v.r2c(v.range[0])));_=e.maxHoverDistance-P,b=e.maxSpikeDistance-P;function R(pe){return(y(pe)+x(pe))/2}var z=ms.getDistanceFunction(a,y,x,R);if(ms.getClosest(n,z,e),e.index===!1)return[];var O=n[e.index],B=l.line.color,V=(l.marker||{}).color;TY.opacity(B)&&l.line.width?e.color=B:TY.opacity(V)&&l.boxpoints?e.color=V:e.color=l.fillcolor,e[f+"0"]=v.c2p(O.pos+s.bPos-M,!0),e[f+"1"]=v.c2p(O.pos+s.bPos+k,!0),e[f+"LabelVal"]=O.orig_p!==void 0?O.orig_p:O.pos;var G=f+"Spike";e.spikeDistance=R(O)*b/_,e[G]=v.c2p(O.pos,!0);var U=l.boxmean||l.sizemode==="sd"||(l.meanline||{}).visible,Y=l.boxpoints||l.points,J=Y&&U?["max","uf","q3","med","mean","q1","lf","min"]:Y&&!U?["max","uf","q3","med","q1","lf","min"]:!Y&&U?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],Z=d.range[1]{"use strict";SY.exports=function(r,t){return t.hoverOnBox&&(r.hoverOnBox=t.hoverOnBox),"xVal"in t&&(r.x=t.xVal),"yVal"in t&&(r.y=t.yVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var Ow=N((vze,LY)=>{"use strict";LY.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l,s;if(t===!1)for(l=0;l{"use strict";CY.exports={attributes:ng(),layoutAttributes:ig(),supplyDefaults:L0().supplyDefaults,crossTraceDefaults:L0().crossTraceDefaults,supplyLayoutDefaults:Sw().supplyLayoutDefaults,calc:Cw(),crossTraceCalc:Ew().crossTraceCalc,plot:Dw().plot,style:Nw().style,styleOnSelect:Nw().styleOnSelect,hoverPoints:Iw().hoverPoints,eventData:qY(),selectPoints:Ow(),moduleType:"trace",name:"box",basePlotModule:qi(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var RY=N((dze,DY)=>{"use strict";DY.exports=EY()});var C0=N((pze,PY)=>{"use strict";var ti=wi(),f_e=mn(),c_e=da(),Bw=Qi().axisHoverFormat,v_e=Ta().hovertemplateAttrs,h_e=Ta().texttemplateAttrs,d_e=ko(),Bn=xt().extendFlat;PY.exports=Bn({z:{valType:"data_array",editType:"calc"},x:Bn({},ti.x,{impliedEdits:{xtype:"array"}}),x0:Bn({},ti.x0,{impliedEdits:{xtype:"scaled"}}),dx:Bn({},ti.dx,{impliedEdits:{xtype:"scaled"}}),y:Bn({},ti.y,{impliedEdits:{ytype:"array"}}),y0:Bn({},ti.y0,{impliedEdits:{ytype:"scaled"}}),dy:Bn({},ti.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:Bn({},ti.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:Bn({},ti.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:Bn({},ti.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:Bn({},ti.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:Bn({},ti.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:Bn({},ti.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:Bw("x"),yhoverformat:Bw("y"),zhoverformat:Bw("z",1),hovertemplate:v_e(),texttemplate:h_e({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:c_e({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Bn({},f_e.showlegend,{dflt:!1}),zorder:ti.zorder},d_e("",{cLetter:"z",autoColorDflt:!1}))});var Hw=N((yze,NY)=>{"use strict";var p_e=Rr(),lg=Ce(),y_e=gr();NY.exports=function(r,t,a,n,i,o){var l=a("z");i=i||"x",o=o||"y";var s,u;if(l===void 0||!l.length)return 0;if(lg.isArray1D(l)){s=a(i),u=a(o);var f=lg.minRowLength(s),c=lg.minRowLength(u);if(f===0||c===0)return 0;t._length=Math.min(f,c,l.length)}else{if(s=FY(i,a),u=FY(o,a),!m_e(l))return 0;a("transpose"),t._length=null}var v=y_e.getComponentMethod("calendars","handleTraceDefaults");return v(r,t,[i,o],n),!0};function FY(e,r){var t=r(e),a=t?r(e+"type","array"):"scaled";return a==="scaled"&&(r(e+"0"),r("d"+e)),t}function m_e(e){for(var r=!0,t=!1,a=!1,n,i=0;i0&&(t=!0);for(var o=0;o{"use strict";var zY=Ce();IY.exports=function(r,t){r("texttemplate");var a=zY.extendFlat({},t.font,{color:"auto",size:"auto"});zY.coerceFont(r,"textfont",a)}});var Uw=N((gze,OY)=>{"use strict";OY.exports=function(r,t,a){var n=a("zsmooth");n===!1&&(a("xgap"),a("ygap")),a("zhoverformat")}});var UY=N((bze,HY)=>{"use strict";var BY=Ce(),g_e=Hw(),b_e=E0(),x_e=dc(),__e=Uw(),w_e=ul(),T_e=C0();HY.exports=function(r,t,a,n){function i(l,s){return BY.coerce(r,t,T_e,l,s)}var o=g_e(r,t,i,n);if(!o){t.visible=!1;return}x_e(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hovertemplate"),b_e(i,n),__e(r,t,i,n),i("hoverongaps"),i("connectgaps",BY.isArray1D(t.z)&&t.zsmooth!==!1),w_e(r,t,n,i,{prefix:"",cLetter:"z"}),i("zorder")}});var Gw=N((xze,GY)=>{"use strict";var Hc=Rr();GY.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return Hc(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return Hc(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if(Hc(n))if(n=Number(n),Hc(t[e])){if(t[e]>n){var i=n-t[e];return t[e]=n,i}}else return t[e]=n,n;return 0},max:function(e,r,t,a){var n=a[r];if(Hc(n))if(n=Number(n),Hc(t[e])){if(t[e]{"use strict";YY.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n{"use strict";VY.exports=function(r,t){for(var a=r.length,n=0,i=0;i{"use strict";var Uc=Nt(),Hu=Uc.ONEAVGYEAR,WY=Uc.ONEAVGMONTH,ug=Uc.ONEDAY,jY=Uc.ONEHOUR,ZY=Uc.ONEMIN,XY=Uc.ONESEC,JY=Ir().tickIncrement;QY.exports=function(r,t,a,n,i){var o=-1.1*t,l=-.1*t,s=r-l,u=a[0],f=a[1],c=Math.min(sg(u+l,u+s,n,i),sg(f+l,f+s,n,i)),v=Math.min(sg(u+o,u+l,n,i),sg(f+o,f+l,n,i)),d,p;if(c>v&&vug){var m=d===Hu?1:6,y=d===Hu?"M12":"M1";return function(x,w){var _=n.c2d(x,Hu,i),b=_.indexOf("-",m);b>0&&(_=_.substr(0,b));var T=n.d2c(_,0,i);if(TXY?e>ug?e>Hu*1.1?Hu:e>WY*1.1?WY:ug:e>jY?jY:e>ZY?ZY:XY:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function A_e(e,r,t,a,n,i){if(a&&e>ug){var o=KY(r,n,i),l=KY(t,n,i),s=e===Hu?0:1;return o[s]!==l[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function KY(e,r,t){var a=r.c2d(e,Hu,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var Xw=N((Aze,tV)=>{"use strict";var jw=Rr(),vn=Ce(),eV=gr(),Di=Ir(),M_e=Qm(),rV=Gw(),k_e=Yw(),S_e=Vw(),q_e=Ww();function L_e(e,r){var t=[],a=[],n=r.orientation==="h",i=Di.getFromId(e,n?r.yaxis:r.xaxis),o=n?"y":"x",l={x:"y",y:"x"}[o],s=r[o+"calendar"],u=r.cumulative,f,c=Zw(e,r,i,o),v=c[0],d=c[1],p=typeof v.size=="string",m=[],y=p?m:v,x=[],w=[],_=[],b=0,T=r.histnorm,k=r.histfunc,M=T.indexOf("density")!==-1,S,E,D;u.enabled&&M&&(T=T.replace(/ ?density$/,""),M=!1);var P=k==="max"||k==="min",R=P?null:0,z=rV.count,O=k_e[T],B=!1,V=function(W){return i.r2c(W,0,s)},G;for(vn.isArrayOrTypedArray(r[l])&&k!=="count"&&(G=r[l],B=k==="avg",z=rV[k]),f=V(v.start),E=V(v.end)+(f-Di.tickIncrement(f,v.size,!1,s))/1e6;f=0&&D=ve;f--)if(a[f]){ie=f;break}for(f=ve;f<=ie;f++)if(jw(t[f])&&jw(a[f])){var pe={p:t[f],s:a[f],b:0};u.enabled||(pe.pts=_[f],Z?pe.ph0=pe.ph1=_[f].length?d[_[f][0]]:t[f]:(r._computePh=!0,pe.ph0=K(m[f]),pe.ph1=K(m[f+1],!0))),le.push(pe)}return le.length===1&&(le[0].width1=Di.tickIncrement(le[0].p,v.size,!1,s)-le[0].p),M_e(le,r),vn.isArrayOrTypedArray(r.selectedpoints)&&vn.tagSelected(le,r,oe),le}function Zw(e,r,t,a,n){var i=a+"bins",o=e._fullLayout,l=r["_"+a+"bingroup"],s=o._histogramBinOpts[l],u=o.barmode==="overlay",f,c,v,d,p,m,y,x=function(ce){return t.r2c(ce,0,d)},w=function(ce){return t.c2r(ce,0,d)},_=t.type==="date"?function(ce){return ce||ce===0?vn.cleanDate(ce,null,d):null}:function(ce){return jw(ce)?Number(ce):null};function b(ce,K,Te){K[ce+"Found"]?(K[ce]=_(K[ce]),K[ce]===null&&(K[ce]=Te[ce])):(m[ce]=K[ce]=Te[ce],vn.nestedProperty(c[0],i+"."+ce).set(Te[ce]))}if(r["_"+a+"autoBinFinished"])delete r["_"+a+"autoBinFinished"];else{c=s.traces;var T=[],k=!0,M=!1,S=!1;for(f=0;ft.r2l(G)&&(Y=Di.tickIncrement(Y,s.size,!0,d)),z.start=t.l2r(Y),V||vn.nestedProperty(r,i+".start").set(z.start)}var J=s.end,Z=t.r2l(R.end),re=Z!==void 0;if((s.endFound||re)&&Z!==t.r2l(J)){var se=re?Z:vn.aggNums(Math.max,null,p);z.end=t.l2r(se),re||vn.nestedProperty(r,i+".start").set(z.end)}var oe="autobin"+a;return r._input[oe]===!1&&(r._input[i]=vn.extendFlat({},r[i]||{}),delete r._input[oe],delete r[oe]),[z,p]}function C_e(e,r,t,a,n){var i=e._fullLayout,o=E_e(e,r),l=!1,s=1/0,u=[r],f,c,v;for(f=0;f=0;a--)l(a);else if(r==="increasing"){for(a=1;a=0;a--)e[a]+=e[a+1];t==="exclude"&&(e.push(0),e.shift())}}tV.exports={calc:L_e,calcAllAutoBins:Zw}});var fV=N((Mze,uV)=>{"use strict";var aV=Ce(),Gc=Ir(),nV=Gw(),R_e=Yw(),P_e=Vw(),F_e=Ww(),iV=Xw().calcAllAutoBins;uV.exports=function(r,t){var a=Gc.getFromId(r,t.xaxis),n=Gc.getFromId(r,t.yaxis),i=t.xcalendar,o=t.ycalendar,l=function(fe){return a.r2c(fe,0,i)},s=function(fe){return n.r2c(fe,0,o)},u=function(fe){return a.c2r(fe,0,i)},f=function(fe){return n.c2r(fe,0,o)},c,v,d,p,m=iV(r,t,a,"x"),y=m[0],x=m[1],w=iV(r,t,n,"y"),_=w[0],b=w[1],T=t._length;x.length>T&&x.splice(T,x.length-T),b.length>T&&b.splice(T,b.length-T);var k=[],M=[],S=[],E=typeof y.size=="string",D=typeof _.size=="string",P=[],R=[],z=E?P:y,O=D?R:_,B=0,V=[],G=[],U=t.histnorm,Y=t.histfunc,J=U.indexOf("density")!==-1,Z=Y==="max"||Y==="min",re=Z?null:0,se=nV.count,oe=R_e[U],ce=!1,K=[],Te=[],le="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";le&&Y!=="count"&&(ce=Y==="avg",se=nV[Y]);var ve=y.size,ie=l(y.start),pe=l(y.end)+(ie-Gc.tickIncrement(ie,ve,!1,i))/1e6;for(c=ie;c=0&&d=0&&p{"use strict";var Uo=Ce(),cV=Nt().BADNUM,vV=yc();hV.exports=function(r,t,a,n,i,o){var l=r._length,s=t.makeCalcdata(r,n),u=a.makeCalcdata(r,i);s=vV(r,t,n,s).vals,u=vV(r,a,i,u).vals;var f=r.text,c=f!==void 0&&Uo.isArray1D(f),v=r.hovertext,d=v!==void 0&&Uo.isArray1D(v),p,m,y=Uo.distinctVals(s),x=y.vals,w=Uo.distinctVals(u),_=w.vals,b=[],T,k,M=_.length,S=x.length;for(p=0;p{"use strict";var N_e=Rr(),z_e=Ce(),fg=Nt().BADNUM;pV.exports=function(r,t,a,n){var i,o,l,s,u,f;function c(x){if(N_e(x))return+x}if(t&&t.transpose){for(i=0,u=0;u{"use strict";var I_e=Ce(),mV=.01,O_e=[[-1,0],[1,0],[0,-1],[0,1]];function B_e(e){return .5-.25*Math.min(1,e*.5)}bV.exports=function(r,t){var a=1,n;for(gV(r,t),n=0;nmV;n++)a=gV(r,t,B_e(a));return a>mV&&I_e.log("interp2d didn't converge quickly",a),r};function gV(e,r,t){var a=0,n,i,o,l,s,u,f,c,v,d,p,m,y;for(l=0;lm&&(a=Math.max(a,Math.abs(e[i][o]-p)/(y-m))))}return a}});var wV=N((Lze,_V)=>{"use strict";var H_e=Ce().maxRowLength;_V.exports=function(r){var t=[],a={},n=[],i=r[0],o=[],l=[0,0,0],s=H_e(r),u,f,c,v,d,p,m,y;for(f=0;f=0;d--)v=n[d],f=v[0],c=v[1],p=((a[[f-1,c]]||l)[2]+(a[[f+1,c]]||l)[2]+(a[[f,c-1]]||l)[2]+(a[[f,c+1]]||l)[2])/20,p&&(m[v]=[f,c,p],n.splice(d,1),y=!0);if(!y)throw"findEmpties iterated with no new neighbors";for(v in m)a[v]=m[v],t.push(m[v])}return t.sort(function(x,w){return w[2]-x[2]})}});var kV=N((Cze,MV)=>{"use strict";var TV=gr(),AV=Ce().isArrayOrTypedArray;MV.exports=function(r,t,a,n,i,o){var l=[],s=TV.traceIs(r,"contour"),u=TV.traceIs(r,"histogram"),f,c,v,d=AV(t)&&t.length>1;if(d&&!u&&o.type!=="category"){var p=t.length;if(p<=i){if(s)l=Array.from(t).slice(0,i);else if(i===1)o.type==="log"?l=[.5*t[0],2*t[0]]:l=[t[0]-.5,t[0]+.5];else if(o.type==="log"){for(l=[Math.pow(t[0],1.5)/Math.pow(t[1],.5)],v=1;v{"use strict";var SV=gr(),Jw=Ce(),cg=Ir(),qV=yc(),U_e=fV(),G_e=fh(),Y_e=dV(),V_e=yV(),W_e=xV(),j_e=wV(),vg=kV(),$w=Nt().BADNUM;CV.exports=function(r,t){var a=cg.getFromId(r,t.xaxis||"x"),n=cg.getFromId(r,t.yaxis||"y"),i=SV.traceIs(t,"contour"),o=SV.traceIs(t,"histogram"),l=i?"best":t.zsmooth,s,u,f,c,v,d,p,m,y,x,w;if(a._minDtick=0,n._minDtick=0,o)w=U_e(r,t),c=w.orig_x,s=w.x,u=w.x0,f=w.dx,m=w.orig_y,v=w.y,d=w.y0,p=w.dy,y=w.z;else{var _=t.z;Jw.isArray1D(_)?(Y_e(t,a,n,"x","y",["z"]),s=t._x,v=t._y,_=t._z):(c=t.x?a.makeCalcdata(t,"x"):[],m=t.y?n.makeCalcdata(t,"y"):[],s=qV(t,a,"x",c).vals,v=qV(t,n,"y",m).vals,t._x=s,t._y=v),u=t.x0,f=t.dx,d=t.y0,p=t.dy,y=V_e(_,t,a,n)}(a.rangebreaks||n.rangebreaks)&&(y=Z_e(s,v,y),o||(s=LV(s),v=LV(v),t._x=s,t._y=v)),!o&&(i||t.connectgaps)&&(t._emptypoints=j_e(y),W_e(y,t._emptypoints));function b(z){l=t._input.zsmooth=t.zsmooth=!1,Jw.warn('cannot use zsmooth: "fast": '+z)}function T(z){if(z.length>1){var O=(z[z.length-1]-z[0])/(z.length-1),B=Math.abs(O/100);for(x=0;xB)return!1}return!0}t._islinear=!1,a.type==="log"||n.type==="log"?l==="fast"&&b("log axis found"):T(s)?T(v)?t._islinear=!0:l==="fast"&&b("y scale is not linear"):l==="fast"&&b("x scale is not linear");var k=Jw.maxRowLength(y),M=t.xtype==="scaled"?"":s,S=vg(t,M,u,f,k,a),E=t.ytype==="scaled"?"":v,D=vg(t,E,d,p,y.length,n);t._extremes[a._id]=cg.findExtremes(a,S),t._extremes[n._id]=cg.findExtremes(n,D);var P={x:S,y:D,z:y,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(t.xperiodalignment&&c&&(P.orig_x=c),t.yperiodalignment&&m&&(P.orig_y=m),M&&M.length===S.length-1&&(P.xCenter=M),E&&E.length===D.length-1&&(P.yCenter=E),o&&(P.xRanges=w.xRanges,P.yRanges=w.yRanges,P.pts=w.pts),i||G_e(r,t,{vals:y,cLetter:"z"}),i&&t.contours&&t.contours.coloring==="heatmap"){var R={type:t.type==="contour"?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};P.xfill=vg(R,M,u,f,k,a),P.yfill=vg(R,E,d,p,y.length,n)}return[P]};function LV(e){for(var r=[],t=e.length,a=0;a{"use strict";dg.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]];dg.STYLE=dg.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var Qw=N((Rze,DV)=>{"use strict";var EV=pg(),X_e=Wr(),Kw=Ce(),Yc=null;function J_e(){if(Yc!==null)return Yc;Yc=!1;var e=Kw.isSafari()||Kw.isMacWKWebView()||Kw.isIOS();if(window.navigator.userAgent&&!e){var r=Array.from(EV.CSS_DECLARATIONS).reverse(),t=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof t=="function")Yc=r.some(function(o){return t.apply(null,o)});else{var a=X_e.tester.append("image").attr("style",EV.STYLE),n=window.getComputedStyle(a.node()),i=n.imageRendering;Yc=r.some(function(o){var l=o[1];return i===l||i===l.toLowerCase()}),a.remove()}}return Yc}DV.exports=J_e});var yg=N((Pze,HV)=>{"use strict";var RV=Sr(),$_e=kn(),K_e=gr(),Q_e=Wr(),e4e=Ir(),Ri=Ce(),PV=Da(),r4e=u4(),t4e=Tr(),a4e=So().extractOpts,n4e=So().makeColorScaleFuncFromTrace,i4e=ll(),o4e=Xa(),e6=o4e.LINE_SPACING,l4e=Qw(),s4e=pg().STYLE,OV="heatmap-label";function BV(e){return e.selectAll("g."+OV)}function FV(e){BV(e).remove()}HV.exports=function(e,r,t,a){var n=r.xaxis,i=r.yaxis;Ri.makeTraceGroups(a,t,"hm").each(function(o){var l=RV.select(this),s=o[0],u=s.trace,f=u.xgap||0,c=u.ygap||0,v=s.z,d=s.x,p=s.y,m=s.xCenter,y=s.yCenter,x=K_e.traceIs(u,"contour"),w=x?"best":u.zsmooth,_=v.length,b=Ri.maxRowLength(v),T=!1,k=!1,M,S,E,D,P,R,z,O;for(R=0;M===void 0&&R0;)S=n.c2p(d[R]),R--;for(S0;)P=i.c2p(p[R]),R--;P=n._length||S<=0||D>=i._length||P<=0;if(Y){var J=l.selectAll("image").data([]);J.exit().remove(),FV(l);return}var Z,re;B==="fast"?(Z=b,re=_):(Z=G,re=U);var se=document.createElement("canvas");se.width=Z,se.height=re;var oe=se.getContext("2d",{willReadFrequently:!0}),ce=n4e(u,{noNumericCheck:!0,returnArray:!0}),K,Te;B==="fast"?(K=T?function(vt){return b-1-vt}:Ri.identity,Te=k?function(vt){return _-1-vt}:Ri.identity):(K=function(vt){return Ri.constrain(Math.round(n.c2p(d[vt])-M),0,G)},Te=function(vt){return Ri.constrain(Math.round(i.c2p(p[vt])-D),0,U)});var le=Te(0),ve=[le,le],ie=T?0:1,pe=k?0:1,W=0,Q=0,j=0,me=0,_e,ye,Pe,Ne,Re;function ze(vt,Tn){if(vt!==void 0){var Ft=ce(vt);return Ft[0]=Math.round(Ft[0]),Ft[1]=Math.round(Ft[1]),Ft[2]=Math.round(Ft[2]),W+=Tn,Q+=Ft[0]*Tn,j+=Ft[1]*Tn,me+=Ft[2]*Tn,Ft}return[0,0,0,0]}function Ge(vt,Tn,Ft,zs){var pn=vt[Ft.bin0];if(pn===void 0)return ze(void 0,1);var Gi=vt[Ft.bin1],Vt=Tn[Ft.bin0],Yi=Tn[Ft.bin1],Rl=Gi-pn||0,Pl=Vt-pn||0,yr;return Gi===void 0?Yi===void 0?yr=0:Vt===void 0?yr=2*(Yi-pn):yr=(2*Yi-Vt-pn)*2/3:Yi===void 0?Vt===void 0?yr=0:yr=(2*pn-Gi-Vt)*2/3:Vt===void 0?yr=(2*Yi-Gi-pn)*2/3:yr=Yi+pn-Gi-Vt,ze(pn+Ft.frac*Rl+zs.frac*(Pl+Ft.frac*yr))}if(B!=="default"){var He=0,De;try{De=new Uint8Array(Z*re*4)}catch(vt){De=new Array(Z*re*4)}if(B==="smooth"){var Ie=m||d,Be=y||p,ue=new Array(Ie.length),Ae=new Array(Be.length),je=new Array(G),ur=m?zV:NV,lr=y?zV:NV,fe,qe,Oe;for(R=0;RYt||Yt>i._length))for(z=Mr;zTt||Tt>n._length)){var pt=r4e({x:wt,y:Vr},u,e._fullLayout);pt.x=wt,pt.y=Vr;var Xt=s.z[R][z];Xt===void 0?(pt.z="",pt.zLabel=""):(pt.z=Xt,pt.zLabel=e4e.tickText(Ee,Xt,"hover").text);var Jt=s.text&&s.text[R]&&s.text[R][z];(Jt===void 0||Jt===!1)&&(Jt=""),pt.text=Jt;var It=Ri.texttemplateString(ne,pt,e._fullLayout._d3locale,pt,u._meta||{});if(It){var za=It.split("
"),br=za.length,yt=0;for(O=0;O{"use strict";UV.exports={min:"zmin",max:"zmax"}});var mg=N((Nze,GV)=>{"use strict";var u4e=Sr();GV.exports=function(r){u4e.select(r).selectAll(".hm image").style("opacity",function(t){return t.trace.opacity})}});var bg=N((zze,VV)=>{"use strict";var YV=Pn(),D0=Ce(),gg=D0.isArrayOrTypedArray,f4e=Ir(),c4e=So().extractOpts;VV.exports=function(r,t,a,n,i){i||(i={});var o=i.isContour,l=r.cd[0],s=l.trace,u=r.xa,f=r.ya,c=l.x,v=l.y,d=l.z,p=l.xCenter,m=l.yCenter,y=l.zmask,x=s.zhoverformat,w=c,_=v,b,T,k,M;if(r.index!==!1){try{k=Math.round(r.index[1]),M=Math.round(r.index[0])}catch(J){D0.error("Error hovering on heatmap, pointNumber must be [row,col], found:",r.index);return}if(k<0||k>=d[0].length||M<0||M>d.length)return}else{if(YV.inbox(t-c[0],t-c[c.length-1],0)>0||YV.inbox(a-v[0],a-v[v.length-1],0)>0)return;if(o){var S;for(w=[2*c[0]-c[1]],S=1;S{"use strict";WV.exports={attributes:C0(),supplyDefaults:UY(),calc:hg(),plot:yg(),colorbar:r6(),style:mg(),hoverPoints:bg(),moduleType:"trace",name:"heatmap",basePlotModule:qi(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var XV=N((Oze,ZV)=>{"use strict";ZV.exports=jV()});var t6=N((Bze,JV)=>{"use strict";JV.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var KV=N((Hze,$V)=>{"use strict";$V.exports={eventDataKeys:["binNumber"]}});var xg=N((Uze,rW)=>{"use strict";var Hn=Nu(),QV=Qi().axisHoverFormat,v4e=Ta().hovertemplateAttrs,h4e=Ta().texttemplateAttrs,a6=da(),eW=t6(),d4e=KV(),n6=xt().extendFlat;rW.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:QV("x"),yhoverformat:QV("y"),text:n6({},Hn.text,{}),hovertext:n6({},Hn.hovertext,{}),orientation:Hn.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:eW("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:eW("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:v4e({},{keys:d4e.eventDataKeys}),texttemplate:h4e({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),textposition:n6({},Hn.textposition,{arrayOk:!1}),textfont:a6({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:a6({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:a6({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Hn.insidetextanchor,textangle:Hn.textangle,cliponaxis:Hn.cliponaxis,constraintext:Hn.constraintext,marker:Hn.marker,offsetgroup:Hn.offsetgroup,alignmentgroup:Hn.alignmentgroup,selected:Hn.selected,unselected:Hn.unselected,zorder:Hn.zorder}});var iW=N((Gze,nW)=>{"use strict";var tW=gr(),R0=Ce(),aW=Tr(),p4e=zu().handleText,y4e=mw(),m4e=xg();nW.exports=function(r,t,a,n){function i(w,_){return R0.coerce(r,t,m4e,w,_)}var o=i("x"),l=i("y"),s=i("cumulative.enabled");s&&(i("cumulative.direction"),i("cumulative.currentbin")),i("text");var u=i("textposition");p4e(r,t,n,i,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),i("hovertext"),i("hovertemplate"),i("xhoverformat"),i("yhoverformat");var f=i("orientation",l&&!o?"h":"v"),c=f==="v"?"x":"y",v=f==="v"?"y":"x",d=o&&l?Math.min(R0.minRowLength(o)&&R0.minRowLength(l)):R0.minRowLength(t[c]||[]);if(!d){t.visible=!1;return}t._length=d;var p=tW.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var m=t[v];m&&i("histfunc"),i("histnorm"),i("autobin"+c),y4e(r,t,i,a,n),R0.coerceSelectionMarkerOpacity(t,i);var y=(t.marker.line||{}).color,x=tW.getComponentMethod("errorbars","supplyDefaults");x(r,t,y||aW.defaultLine,{axis:"y"}),x(r,t,y||aW.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var wg=N((Yze,sW)=>{"use strict";var P0=Ce(),g4e=ia(),_g=gr().traceIs,b4e=n0(),x4e=zu().validateCornerradius,oW=P0.nestedProperty,i6=Tu().getAxisGroup,lW=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],_4e=["x","y"];sW.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},o=[],l,s,u,f,c,v,d;function p(B,V){return P0.coerce(l._input,l,l._module.attributes,B,V)}function m(B){return B.orientation==="v"?"x":"y"}function y(B,V){var G=g4e.getFromTrace({_fullLayout:t},B,V);return G.type}function x(B,V,G){var U=B.uid+"__"+G;V||(V=U);var Y=y(B,G),J=B[G+"calendar"]||"",Z=a[V],re=!0;Z&&(Y===Z.axType&&J===Z.calendar?(re=!1,Z.traces.push(B),Z.dirs.push(G)):(V=U,Y!==Z.axType&&P0.warn(["Attempted to group the bins of trace",B.index,"set on a","type:"+Y,"axis","with bins on","type:"+Z.axType,"axis."].join(" ")),J!==Z.calendar&&P0.warn(["Attempted to group the bins of trace",B.index,"set with a",J,"calendar","with bins",Z.calendar?"on a "+Z.calendar+" calendar":"w/o a set calendar"].join(" ")))),re&&(a[V]={traces:[B],dirs:[G],axType:Y,calendar:B[G+"calendar"]||""}),B["_"+G+"bingroup"]=V}for(c=0;c{"use strict";var w4e=Mw().hoverPoints,T4e=Ir().hoverLabelText;uW.exports=function(r,t,a,n,i){var o=w4e(r,t,a,n,i);if(o){r=o[0];var l=r.cd[r.index],s=r.cd[0].trace;if(!s.cumulative.enabled){var u=s.orientation==="h"?"y":"x";r[u+"Label"]=T4e(r[u+"a"],[l.ph0,l.ph1],s[u+"hoverformat"])}return o}}});var o6=N((Wze,cW)=>{"use strict";cW.exports=function(r,t,a,n,i){if(r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"zLabelVal"in t&&(r.z=t.zLabelVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),!(a.cumulative||{}).enabled){var o=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;r.pointNumbers=o,r.binNumber=r.pointNumber,delete r.pointNumber,delete r.pointIndex;var l;if(a._indexToPoints){l=[];for(var s=0;s{"use strict";vW.exports={attributes:xg(),layoutAttributes:$m(),supplyDefaults:iW(),crossTraceDefaults:wg(),supplyLayoutDefaults:gw(),calc:Xw().calc,crossTraceCalc:vm().crossTraceCalc,plot:Tw().plot,layerName:"barlayer",style:zc().style,styleOnSelect:zc().styleOnSelect,colorbar:u0(),hoverPoints:fW(),selectPoints:kw(),eventData:o6(),moduleType:"trace",name:"histogram",basePlotModule:qi(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var pW=N((Zze,dW)=>{"use strict";dW.exports=hW()});var Ag=N((Xze,mW)=>{"use strict";var yo=xg(),yW=t6(),Tg=C0(),A4e=mn(),l6=Qi().axisHoverFormat,M4e=Ta().hovertemplateAttrs,k4e=Ta().texttemplateAttrs,S4e=ko(),F0=xt().extendFlat;mW.exports=F0({x:yo.x,y:yo.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:yo.histnorm,histfunc:yo.histfunc,nbinsx:yo.nbinsx,xbins:yW("x"),nbinsy:yo.nbinsy,ybins:yW("y"),autobinx:yo.autobinx,autobiny:yo.autobiny,bingroup:F0({},yo.bingroup,{}),xbingroup:F0({},yo.bingroup,{}),ybingroup:F0({},yo.bingroup,{}),xgap:Tg.xgap,ygap:Tg.ygap,zsmooth:Tg.zsmooth,xhoverformat:l6("x"),yhoverformat:l6("y"),zhoverformat:l6("z",1),hovertemplate:M4e({},{keys:"z"}),texttemplate:k4e({arrayOk:!1,editType:"plot"},{keys:"z"}),textfont:Tg.textfont,showlegend:F0({},A4e.showlegend,{dflt:!1})},S4e("",{cLetter:"z",autoColorDflt:!1}))});var s6=N((Jze,bW)=>{"use strict";var q4e=gr(),gW=Ce();bW.exports=function(r,t,a,n){var i=a("x"),o=a("y"),l=gW.minRowLength(i),s=gW.minRowLength(o);if(!l||!s){t.visible=!1;return}t._length=Math.min(l,s);var u=q4e.getComponentMethod("calendars","handleTraceDefaults");u(r,t,["x","y"],n);var f=a("z")||a("marker.color");f&&a("histfunc"),a("histnorm"),a("autobinx"),a("autobiny")}});var _W=N(($ze,xW)=>{"use strict";var L4e=Ce(),C4e=s6(),E4e=Uw(),D4e=ul(),R4e=E0(),P4e=Ag();xW.exports=function(r,t,a,n){function i(o,l){return L4e.coerce(r,t,P4e,o,l)}C4e(r,t,i,n),t.visible!==!1&&(E4e(r,t,i,n),D4e(r,t,n,i,{prefix:"",cLetter:"z"}),i("hovertemplate"),R4e(i,n),i("xhoverformat"),i("yhoverformat"))}});var AW=N((Kze,TW)=>{"use strict";var F4e=bg(),wW=Ir().hoverLabelText;TW.exports=function(r,t,a,n,i){var o=F4e(r,t,a,n,i);if(o){r=o[0];var l=r.index,s=l[0],u=l[1],f=r.cd[0],c=f.trace,v=f.xRanges[u],d=f.yRanges[s];return r.xLabel=wW(r.xa,[v[0],v[1]],c.xhoverformat),r.yLabel=wW(r.ya,[d[0],d[1]],c.yhoverformat),o}}});var kW=N((Qze,MW)=>{"use strict";MW.exports={attributes:Ag(),supplyDefaults:_W(),crossTraceDefaults:wg(),calc:hg(),plot:yg(),layerName:"heatmaplayer",colorbar:r6(),style:mg(),hoverPoints:AW(),eventData:o6(),moduleType:"trace",name:"histogram2d",basePlotModule:qi(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var qW=N((eIe,SW)=>{"use strict";SW.exports=kW()});var Mg=N((rIe,LW)=>{"use strict";LW.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var Sg=N((tIe,RW)=>{"use strict";var ga=C0(),kg=wi(),EW=Qi(),u6=EW.axisHoverFormat,N4e=EW.descriptionOnlyNumbers,z4e=ko(),I4e=si().dash,O4e=da(),Vc=xt().extendFlat,DW=Mg(),B4e=DW.COMPARISON_OPS2,H4e=DW.INTERVAL_OPS,CW=kg.line;RW.exports=Vc({z:ga.z,x:ga.x,x0:ga.x0,dx:ga.dx,y:ga.y,y0:ga.y0,dy:ga.dy,xperiod:ga.xperiod,yperiod:ga.yperiod,xperiod0:kg.xperiod0,yperiod0:kg.yperiod0,xperiodalignment:ga.xperiodalignment,yperiodalignment:ga.yperiodalignment,text:ga.text,hovertext:ga.hovertext,transpose:ga.transpose,xtype:ga.xtype,ytype:ga.ytype,xhoverformat:u6("x"),yhoverformat:u6("y"),zhoverformat:u6("z",1),hovertemplate:ga.hovertemplate,texttemplate:Vc({},ga.texttemplate,{}),textfont:Vc({},ga.textfont,{}),hoverongaps:ga.hoverongaps,connectgaps:Vc({},ga.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:O4e({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:N4e("contour label")},operation:{valType:"enumerated",values:[].concat(B4e).concat(H4e),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:Vc({},CW.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:I4e,smoothing:Vc({},CW.smoothing,{}),editType:"plot"},zorder:kg.zorder},z4e("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var c6=N((aIe,FW)=>{"use strict";var hn=Ag(),Tl=Sg(),U4e=ko(),f6=Qi().axisHoverFormat,PW=xt().extendFlat;FW.exports=PW({x:hn.x,y:hn.y,z:hn.z,marker:hn.marker,histnorm:hn.histnorm,histfunc:hn.histfunc,nbinsx:hn.nbinsx,xbins:hn.xbins,nbinsy:hn.nbinsy,ybins:hn.ybins,autobinx:hn.autobinx,autobiny:hn.autobiny,bingroup:hn.bingroup,xbingroup:hn.xbingroup,ybingroup:hn.ybingroup,autocontour:Tl.autocontour,ncontours:Tl.ncontours,contours:Tl.contours,line:{color:Tl.line.color,width:PW({},Tl.line.width,{dflt:.5}),dash:Tl.line.dash,smoothing:Tl.line.smoothing,editType:"plot"},xhoverformat:f6("x"),yhoverformat:f6("y"),zhoverformat:f6("z",1),hovertemplate:hn.hovertemplate,texttemplate:Tl.texttemplate,textfont:Tl.textfont},U4e("",{cLetter:"z",editTypeOverride:"calc"}))});var v6=N((nIe,NW)=>{"use strict";NW.exports=function(r,t,a,n){var i=n("contours.start"),o=n("contours.end"),l=i===!1||o===!1,s=a("contours.size"),u;l?u=t.autocontour=!0:u=a("autocontour",!1),(u||!s)&&a("ncontours")}});var h6=N((iIe,zW)=>{"use strict";var G4e=Ce();zW.exports=function(r,t,a,n){n||(n={});var i=r("contours.showlabels");if(i){var o=t.font;G4e.coerceFont(r,"contours.labelfont",o,{overrideDflt:{color:a}}),r("contours.labelformat")}n.hasHover!==!1&&r("zhoverformat")}});var d6=N((oIe,IW)=>{"use strict";var Y4e=ul(),V4e=h6();IW.exports=function(r,t,a,n,i){var o=a("contours.coloring"),l,s="";o==="fill"&&(l=a("contours.showlines")),l!==!1&&(o!=="lines"&&(s=a("line.color","#000")),a("line.width",.5),a("line.dash")),o!=="none"&&(r.showlegend!==!0&&(t.showlegend=!1),t._dfltShowLegend=!1,Y4e(r,t,n,a,{prefix:"",cLetter:"z"})),a("line.smoothing"),V4e(a,n,s,i)}});var UW=N((lIe,HW)=>{"use strict";var OW=Ce(),W4e=s6(),j4e=v6(),Z4e=d6(),X4e=E0(),BW=c6();HW.exports=function(r,t,a,n){function i(l,s){return OW.coerce(r,t,BW,l,s)}function o(l){return OW.coerce2(r,t,BW,l)}W4e(r,t,i,n),t.visible!==!1&&(j4e(r,t,i,o),Z4e(r,t,i,n),i("xhoverformat"),i("yhoverformat"),i("hovertemplate"),t.contours&&t.contours.coloring==="heatmap"&&X4e(i,n))}});var VW=N((sIe,YW)=>{"use strict";var y6=Ir(),p6=Ce();YW.exports=function(r,t){var a=r.contours;if(r.autocontour){var n=r.zmin,i=r.zmax;(r.zauto||n===void 0)&&(n=p6.aggNums(Math.min,null,t)),(r.zauto||i===void 0)&&(i=p6.aggNums(Math.max,null,t));var o=GW(n,i,r.ncontours);a.size=o.dtick,a.start=y6.tickFirst(o),o.range.reverse(),a.end=y6.tickFirst(o),a.start===n&&(a.start+=a.size),a.end===i&&(a.end-=a.size),a.start>a.end&&(a.start=a.end=(a.start+a.end)/2),r._input.contours||(r._input.contours={}),p6.extendFlat(r._input.contours,{start:a.start,end:a.end,size:a.size}),r._input.autocontour=!0}else if(a.type!=="constraint"){var l=a.start,s=a.end,u=r._input.contours;if(l>s&&(a.start=u.start=s,s=a.end=u.end=l,l=a.start),!(a.size>0)){var f;l===s?f=1:f=GW(l,s,r.ncontours).dtick,u.size=a.size=f}}};function GW(e,r,t){var a={type:"linear",range:[e,r]};return y6.autoTicks(a,(r-e)/(t||15)),a}});var N0=N((uIe,WW)=>{"use strict";WW.exports=function(r){return r.end+r.size/1e6}});var m6=N((fIe,ZW)=>{"use strict";var jW=So(),J4e=hg(),$4e=VW(),K4e=N0();ZW.exports=function(r,t){var a=J4e(r,t),n=a[0].z;$4e(t,n);var i=t.contours,o=jW.extractOpts(t),l;if(i.coloring==="heatmap"&&o.auto&&t.autocontour===!1){var s=i.start,u=K4e(i),f=i.size||1,c=Math.floor((u-s)/f)+1;isFinite(f)||(f=1,c=1);var v=s-f/2,d=v+c*f;l=[v,d]}else l=n;return jW.calc(r,t,{vals:l,cLetter:"z"}),a}});var qg=N((cIe,XW)=>{"use strict";XW.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}});var $W=N((vIe,JW)=>{"use strict";var Lg=qg();JW.exports=function(r){var t=r[0].z,a=t.length,n=t[0].length,i=a===2||n===2,o,l,s,u,f,c,v,d,p;for(l=0;le?0:1)+(r[0][1]>e?0:2)+(r[1][1]>e?0:4)+(r[1][0]>e?0:8);if(t===5||t===10){var a=(r[0][0]+r[0][1]+r[1][0]+r[1][1])/4;return e>a?t===5?713:1114:t===5?104:208}return t===15?0:t}});var rj=N((hIe,ej)=>{"use strict";var Cg=Ce(),Wc=qg();ej.exports=function(r,t,a){var n,i,o,l,s;for(t=t||.01,a=a||.01,o=0;o20?(o=Wc.CHOOSESADDLE[o][(l[0]||l[1])<0?0:1],e.crossings[i]=Wc.SADDLEREMAINDER[o]):delete e.crossings[i],l=Wc.NEWDELTA[o],!l){Cg.log("Found bad marching index:",o,r,e.level);break}s.push(QW(e,r,l)),r[0]+=l[0],r[1]+=l[1],i=r.join(","),z0(s[s.length-1],s[s.length-2],a,n)&&s.pop();var p=l[0]&&(r[0]<0||r[0]>f-2)||l[1]&&(r[1]<0||r[1]>u-2),m=r[0]===c[0]&&r[1]===c[1]&&l[0]===v[0]&&l[1]===v[1];if(m||t&&p)break;o=e.crossings[i]}d===1e4&&Cg.log("Infinite loop in contour?");var y=z0(s[0],s[s.length-1],a,n),x=0,w=.2*e.smoothing,_=[],b=0,T,k,M,S,E,D,P,R,z,O,B;for(d=1;d=b;d--)if(T=_[d],T=b&&T+_[k]R&&z--,e.edgepaths[z]=B.concat(s,O));break}Y||(e.edgepaths[R]=s.concat(O))}for(R=0;R20&&r?e===208||e===1114?a=t[0]===0?1:-1:n=t[1]===0?1:-1:Wc.BOTTOMSTART.indexOf(e)!==-1?n=1:Wc.LEFTSTART.indexOf(e)!==-1?a=1:Wc.TOPSTART.indexOf(e)!==-1?n=-1:a=-1,[a,n]}function QW(e,r,t){var a=r[0]+Math.max(t[0],0),n=r[1]+Math.max(t[1],0),i=e.z[n][a],o=e.xaxis,l=e.yaxis;if(t[1]){var s=(e.level-i)/(e.z[n][a+1]-i),u=(s!==1?(1-s)*o.c2l(e.x[a]):0)+(s!==0?s*o.c2l(e.x[a+1]):0);return[o.c2p(o.l2c(u),!0),l.c2p(e.y[n],!0),a+s,n]}else{var f=(e.level-i)/(e.z[n+1][a]-i),c=(f!==1?(1-f)*l.c2l(e.y[n]):0)+(f!==0?f*l.c2l(e.y[n+1]):0);return[o.c2p(e.x[a],!0),l.c2p(l.l2c(c),!0),a,n+f]}}});var ij=N((dIe,nj)=>{"use strict";var g6=Mg(),twe=Rr();nj.exports={"[]":tj("[]"),"][":tj("]["),">":b6(">"),"<":b6("<"),"=":b6("=")};function aj(e,r){var t=Array.isArray(r),a;function n(i){return twe(i)?+i:null}return g6.COMPARISON_OPS2.indexOf(e)!==-1?a=n(t?r[0]:r):g6.INTERVAL_OPS.indexOf(e)!==-1?a=t?[n(r[0]),n(r[1])]:[n(r),n(r)]:g6.SET_OPS.indexOf(e)!==-1&&(a=t?r.map(n):[n(r)]),a}function tj(e){return function(r){r=aj(e,r);var t=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return{start:t,end:a,size:a-t}}}function b6(e){return function(r){return r=aj(e,r),{start:r,end:1/0,size:1/0}}}});var sj=N((pIe,lj)=>{"use strict";var oj=Ce(),awe=ij(),nwe=N0();lj.exports=function(r,t,a){for(var n=r.type==="constraint"?awe[r._operation](r.value):r,i=n.size,o=[],l=nwe(n),s=a.trace._carpetTrace,u=s?{xaxis:s.aaxis,yaxis:s.baxis,x:a.a,y:a.b}:{xaxis:t.xaxis,yaxis:t.yaxis,x:a.x,y:a.y},f=n.start;f1e3){oj.warn("Too many contours, clipping at 1000",r);break}return o}});var cj=N((yIe,fj)=>{"use strict";var jc=Ce();fj.exports=function(e,r){var t,a,n,i=function(s){return s.reverse()},o=function(s){return s};switch(r){case"=":case"<":return e;case">":for(e.length!==1&&jc.warn("Contour data invalid for the specified inequality operation."),a=e[0],t=0;t{"use strict";vj.exports=function(e,r){var t=e[0],a=t.z,n;switch(r.type){case"levels":var i=Math.min(a[0][0],a[0][1]);for(n=0;no.level||o.starts.length&&i===o.level)}break;case"constraint":if(t.prefixBoundary=!1,t.edgepaths.length)return;var l=t.x.length,s=t.y.length,u=-1/0,f=1/0;for(n=0;n":c>u&&(t.prefixBoundary=!0);break;case"<":(cu||t.starts.length&&d===f)&&(t.prefixBoundary=!0);break;case"][":v=Math.min(c[0],c[1]),d=Math.max(c[0],c[1]),vu&&(t.prefixBoundary=!0);break}break}}});var x6=N(dn=>{"use strict";var O0=Sr(),Fa=Ce(),Al=Wr(),iwe=So(),yj=Da(),dj=Ir(),pj=Zf(),owe=yg(),mj=$W(),gj=rj(),lwe=sj(),swe=cj(),bj=hj(),I0=qg(),Go=I0.LABELOPTIMIZER;dn.plot=function(r,t,a,n){var i=t.xaxis,o=t.yaxis;Fa.makeTraceGroups(n,a,"contour").each(function(l){var s=O0.select(this),u=l[0],f=u.trace,c=u.x,v=u.y,d=f.contours,p=lwe(d,t,u),m=Fa.ensureSingle(s,"g","heatmapcoloring"),y=[];d.coloring==="heatmap"&&(y=[l]),owe(r,t,y,m),mj(p),gj(p);var x=i.c2p(c[0],!0),w=i.c2p(c[c.length-1],!0),_=o.c2p(v[0],!0),b=o.c2p(v[v.length-1],!0),T=[[x,b],[w,b],[w,_],[x,_]],k=p;d.type==="constraint"&&(k=swe(p,d._operation)),uwe(s,T,d),fwe(s,k,T,d),cwe(s,p,r,u,d),hwe(s,t,r,u,T)})};function uwe(e,r,t){var a=Fa.ensureSingle(e,"g","contourbg"),n=a.selectAll("path").data(t.coloring==="fill"?[0]:[]);n.enter().append("path"),n.exit().remove(),n.attr("d","M"+r.join("L")+"Z").style("stroke","none")}function fwe(e,r,t,a){var n=a.coloring==="fill"||a.type==="constraint"&&a._operation!=="=",i="M"+t.join("L")+"Z";n&&bj(r,a);var o=Fa.ensureSingle(e,"g","contourfill"),l=o.selectAll("path").data(n?r:[]);l.enter().append("path"),l.exit().remove(),l.each(function(s){var u=(s.prefixBoundary?i:"")+xj(s,t);u?O0.select(this).attr("d",u).style("stroke","none"):O0.select(this).remove()})}function xj(e,r){var t="",a=0,n=e.edgepaths.map(function(x,w){return w}),i=!0,o,l,s,u,f,c;function v(x){return Math.abs(x[1]-r[0][1])<.01}function d(x){return Math.abs(x[1]-r[2][1])<.01}function p(x){return Math.abs(x[0]-r[0][0])<.01}function m(x){return Math.abs(x[0]-r[2][0])<.01}for(;n.length;){for(c=Al.smoothopen(e.edgepaths[a],e.smoothing),t+=i?c:c.replace(/^M/,"L"),n.splice(n.indexOf(a),1),o=e.edgepaths[a][e.edgepaths[a].length-1],u=-1,s=0;s<4;s++){if(!o){Fa.log("Missing end?",a,e);break}for(v(o)&&!m(o)?l=r[1]:p(o)?l=r[0]:d(o)?l=r[3]:m(o)&&(l=r[2]),f=0;f=0&&(l=y,u=f):Math.abs(o[1]-l[1])<.01?Math.abs(o[1]-y[1])<.01&&(y[0]-o[0])*(l[0]-y[0])>=0&&(l=y,u=f):Fa.log("endpt to newendpt is not vert. or horz.",o,l,y)}if(o=l,u>=0)break;t+="L"+l}if(u===e.edgepaths.length){Fa.log("unclosed perimeter path");break}a=u,i=n.indexOf(a)===-1,i&&(a=n[0],t+="Z")}for(a=0;aGo.MAXCOST*2)break;v&&(l/=2),o=u-l/2,s=o+l*1.5}if(c<=Go.MAXCOST)return f};function vwe(e,r,t,a){var n=r.width/2,i=r.height/2,o=e.x,l=e.y,s=e.theta,u=Math.cos(s)*n,f=Math.sin(s)*n,c=(o>a.center?a.right-o:o-a.left)/(u+Math.abs(Math.sin(s)*i)),v=(l>a.middle?a.bottom-l:l-a.top)/(Math.abs(f)+Math.cos(s)*i);if(c<1||v<1)return 1/0;var d=Go.EDGECOST*(1/(c-1)+1/(v-1));d+=Go.ANGLECOST*s*s;for(var p=o-u,m=l-f,y=o+u,x=l+f,w=0;w{"use strict";var pwe=Sr(),_6=So(),ywe=N0();_j.exports=function(r){var t=r.contours,a=t.start,n=ywe(t),i=t.size||1,o=Math.floor((n-a)/i)+1,l=t.coloring==="lines"?0:1,s=_6.extractOpts(r);isFinite(i)||(i=1,o=1);var u=s.reversescale?_6.flipScale(s.colorscale):s.colorscale,f=u.length,c=new Array(f),v=new Array(f),d,p,m=s.min,y=s.max;if(t.coloring==="heatmap"){for(p=0;p=y)&&(a<=m&&(a=m),n>=y&&(n=y),o=Math.floor((n-a)/i)+1,l=0),p=0;pm&&(c.unshift(m),v.unshift(v[0])),c[c.length-1]{"use strict";var Eg=Sr(),wj=Wr(),mwe=mg(),gwe=w6();Tj.exports=function(r){var t=Eg.select(r).selectAll("g.contour");t.style("opacity",function(a){return a[0].trace.opacity}),t.each(function(a){var n=Eg.select(this),i=a[0].trace,o=i.contours,l=i.line,s=o.size||1,u=o.start,f=o.type==="constraint",c=!f&&o.coloring==="lines",v=!f&&o.coloring==="fill",d=c||v?gwe(i):null;n.selectAll("g.contourlevel").each(function(y){Eg.select(this).selectAll("path").call(wj.lineGroupStyle,l.width,c?d(y.level):l.color,l.dash)});var p=o.labelfont;if(n.selectAll("g.contourlabels text").each(function(y){wj.font(Eg.select(this),{weight:p.weight,style:p.style,variant:p.variant,textcase:p.textcase,lineposition:p.lineposition,shadow:p.shadow,family:p.family,size:p.size,color:p.color||(c?d(y.level):l.color)})}),f)n.selectAll("g.contourfill path").style("fill",i.fillcolor);else if(v){var m;n.selectAll("g.contourfill path").style("fill",function(y){return m===void 0&&(m=y.level),d(y.level+.5*s)}),m===void 0&&(m=u),n.selectAll("g.contourbg path").style("fill",d(m-.5*s))}}),mwe(r)}});var A6=N((_Ie,Mj)=>{"use strict";var Aj=So(),bwe=w6(),xwe=N0();function _we(e,r,t){var a=r.contours,n=r.line,i=a.size||1,o=a.coloring,l=bwe(r,{isColorbar:!0});if(o==="heatmap"){var s=Aj.extractOpts(r);t._fillgradient=s.reversescale?Aj.flipScale(s.colorscale):s.colorscale,t._zrange=[s.min,s.max]}else o==="fill"&&(t._fillcolor=l);t._line={color:o==="lines"?l:n.color,width:a.showlines!==!1?n.width:0,dash:n.dash},t._levels={start:a.start,end:xwe(a),size:i}}Mj.exports={min:"zmin",max:"zmax",calc:_we}});var M6=N((wIe,kj)=>{"use strict";var Dg=Tr(),wwe=bg();kj.exports=function(r,t,a,n,i){i||(i={}),i.isContour=!0;var o=wwe(r,t,a,n,i);return o&&o.forEach(function(l){var s=l.trace;s.contours.type==="constraint"&&(s.fillcolor&&Dg.opacity(s.fillcolor)?l.color=Dg.addOpacity(s.fillcolor,1):s.contours.showlines&&Dg.opacity(s.line.color)&&(l.color=Dg.addOpacity(s.line.color,1)))}),o}});var qj=N((TIe,Sj)=>{"use strict";Sj.exports={attributes:c6(),supplyDefaults:UW(),crossTraceDefaults:wg(),calc:m6(),plot:x6().plot,layerName:"contourlayer",style:T6(),colorbar:A6(),hoverPoints:M6(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:qi(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var Cj=N((AIe,Lj)=>{"use strict";Lj.exports=qj()});var zj=N((MIe,Nj)=>{"use strict";var Ej=Rr(),Twe=h6(),Pj=Tr(),Dj=Pj.addOpacity,Awe=Pj.opacity,Fj=Mg(),Rj=Ce().isArrayOrTypedArray,Mwe=Fj.CONSTRAINT_REDUCTION,kwe=Fj.COMPARISON_OPS2;Nj.exports=function(r,t,a,n,i,o){var l=t.contours,s,u,f,c=a("contours.operation");if(l._operation=Mwe[c],Swe(a,l),c==="="?s=l.showlines=!0:(s=a("contours.showlines"),f=a("fillcolor",Dj((r.line||{}).color||i,.5))),s){var v=f&&Awe(f)?Dj(t.fillcolor,1):i;u=a("line.color",v),a("line.width",2),a("line.dash")}a("line.smoothing"),Twe(a,n,u,o)};function Swe(e,r){var t;kwe.indexOf(r.operation)===-1?(e("contours.value",[0,1]),Rj(r.value)?r.value.length>2?r.value=r.value.slice(2):r.length===0?r.value=[0,1]:r.length<2?(t=parseFloat(r.value[0]),r.value=[t,t+1]):r.value=[parseFloat(r.value[0]),parseFloat(r.value[1])]:Ej(r.value)&&(t=parseFloat(r.value),r.value=[t,t+1])):(e("contours.value",0),Ej(r.value)||(Rj(r.value)?r.value=parseFloat(r.value[0]):r.value=0))}});var Bj=N((kIe,Oj)=>{"use strict";var k6=Ce(),qwe=Hw(),Lwe=dc(),Cwe=zj(),Ewe=v6(),Dwe=d6(),Rwe=E0(),Ij=Sg();Oj.exports=function(r,t,a,n){function i(u,f){return k6.coerce(r,t,Ij,u,f)}function o(u){return k6.coerce2(r,t,Ij,u)}var l=qwe(r,t,i,n);if(!l){t.visible=!1;return}Lwe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hoverongaps"),i("hovertemplate");var s=i("contours.type")==="constraint";i("connectgaps",k6.isArray1D(t.z)),s?Cwe(r,t,i,n,a):(Ewe(r,t,i,o),Dwe(r,t,i,n)),t.contours&&t.contours.coloring==="heatmap"&&Rwe(i,n),i("zorder")}});var Uj=N((SIe,Hj)=>{"use strict";Hj.exports={attributes:Sg(),supplyDefaults:Bj(),calc:m6(),plot:x6().plot,style:T6(),colorbar:A6(),hoverPoints:M6(),moduleType:"trace",name:"contour",basePlotModule:qi(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var Yj=N((qIe,Gj)=>{"use strict";Gj.exports=Uj()});var S6=N((LIe,Wj)=>{"use strict";var Pwe=Ta().hovertemplateAttrs,Fwe=Ta().texttemplateAttrs,Nwe=Dy(),ai=wi(),zwe=mn(),Vj=ko(),Iwe=si().dash,gs=xt().extendFlat,Pi=ai.marker,B0=ai.line,Owe=Pi.line;Wj.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:gs({},ai.mode,{dflt:"markers"}),text:gs({},ai.text,{}),texttemplate:Fwe({editType:"plot"},{keys:["a","b","c","text"]}),hovertext:gs({},ai.hovertext,{}),line:{color:B0.color,width:B0.width,dash:Iwe,backoff:B0.backoff,shape:gs({},B0.shape,{values:["linear","spline"]}),smoothing:B0.smoothing,editType:"calc"},connectgaps:ai.connectgaps,cliponaxis:ai.cliponaxis,fill:gs({},ai.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:Nwe(),marker:gs({symbol:Pi.symbol,opacity:Pi.opacity,angle:Pi.angle,angleref:Pi.angleref,standoff:Pi.standoff,maxdisplayed:Pi.maxdisplayed,size:Pi.size,sizeref:Pi.sizeref,sizemin:Pi.sizemin,sizemode:Pi.sizemode,line:gs({width:Owe.width,editType:"calc"},Vj("marker.line")),gradient:Pi.gradient,editType:"calc"},Vj("marker")),textfont:ai.textfont,textposition:ai.textposition,selected:ai.selected,unselected:ai.unselected,hoverinfo:gs({},zwe.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:ai.hoveron,hovertemplate:Pwe()}});var Jj=N((CIe,Xj)=>{"use strict";var jj=Ce(),Bwe=Vh(),Zc=Dn(),Hwe=G_(),Uwe=Y_(),Zj=V_(),Gwe=W_(),Ywe=j_(),Vwe=S6();Xj.exports=function(r,t,a,n){function i(v,d){return jj.coerce(r,t,Vwe,v,d)}var o=i("a"),l=i("b"),s=i("c"),u;if(o?(u=o.length,l?(u=Math.min(u,l.length),s&&(u=Math.min(u,s.length))):s?u=Math.min(u,s.length):u=0):l&&s&&(u=Math.min(l.length,s.length)),!u){t.visible=!1;return}t._length=u,i("sum"),i("text"),i("hovertext"),t.hoveron!=="fills"&&i("hovertemplate");var f=u{"use strict";var q6=Ir();$j.exports=function(r,t,a){var n={},i=a[t.subplot]._subplot;return n.aLabel=q6.tickText(i.aaxis,r.a,!0).text,n.bLabel=q6.tickText(i.baxis,r.b,!0).text,n.cLabel=q6.tickText(i.caxis,r.c,!0).text,n}});var tZ=N((DIe,rZ)=>{"use strict";var L6=Rr(),Wwe=J_(),jwe=lm(),Zwe=sm(),Xwe=um().calcMarkerSize,Qj=["a","b","c"],eZ={a:["b","c"],b:["a","c"],c:["a","b"]};rZ.exports=function(r,t){var a=r._fullLayout[t.subplot],n=a.sum,i=t.sum||n,o={a:t.a,b:t.b,c:t.c},l=t.ids,s,u,f,c,v,d;for(s=0;s{"use strict";var Jwe=s4();aZ.exports=function(r,t,a){var n=t.plotContainer;n.select(".scatterlayer").selectAll("*").remove();for(var i=t.xaxis,o=t.yaxis,l={xaxis:i,yaxis:o,plot:n,layerClipId:t._hasClipOnAxisFalse?t.clipIdRelative:null},s=t.layers.frontplot.select("g.scatterlayer"),u=0;u{"use strict";var $we=d4();iZ.exports=function(r,t,a,n){var i=$we(r,t,a,n);if(!i||i[0].index===!1)return;var o=i[0];if(o.index===void 0){var l=1-o.y0/r.ya._length,s=r.xa._length,u=s*l/2,f=s-u;return o.x0=Math.max(Math.min(o.x0,f),u),o.x1=Math.max(Math.min(o.x1,f),u),i}var c=o.cd[o.index],v=o.trace,d=o.subplot;o.a=c.a,o.b=c.b,o.c=c.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var p={};p[v.subplot]={_subplot:d};var m=v._module.formatLabels(c,v,p);o.aLabel=m.aLabel,o.bLabel=m.bLabel,o.cLabel=m.cLabel;var y=c.hi||v.hoverinfo,x=[];function w(b,T){x.push(b._hovertitle+": "+T)}if(!v.hovertemplate){var _=y.split("+");_.indexOf("all")!==-1&&(_=["a","b","c"]),_.indexOf("a")!==-1&&w(d.aaxis,o.aLabel),_.indexOf("b")!==-1&&w(d.baxis,o.bLabel),_.indexOf("c")!==-1&&w(d.caxis,o.cLabel)}return o.extraText=x.join("
"),o.hovertemplate=v.hovertemplate,i}});var sZ=N((FIe,lZ)=>{"use strict";lZ.exports=function(r,t,a,n,i){if(t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),n[i]){var o=n[i];r.a=o.a,r.b=o.b,r.c=o.c}else r.a=t.a,r.b=t.b,r.c=t.c;return r}});var bZ=N((NIe,gZ)=>{"use strict";var dZ=Sr(),Kwe=kn(),C6=gr(),Ml=Ce(),Yo=Ml.strTranslate,Rg=Ml._,Jc=Tr(),Pg=Wr(),H0=Zf(),E6=xt().extendFlat,Qwe=aa(),bs=Ir(),uZ=pi(),fZ=Pn(),pZ=bu(),cZ=pZ.freeMode,e6e=pZ.rectMode,D6=jf(),r6e=zo().prepSelect,t6e=zo().selectOnClick,a6e=zo().clearOutline,n6e=zo().clearSelectionsCache,yZ=Ea();function mZ(e,r){this.id=e.id,this.graphDiv=e.graphDiv,this.init(r),this.makeFramework(r),this.updateFx(r),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}gZ.exports=mZ;var Vo=mZ.prototype;Vo.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Vo.plot=function(e,r){var t=this,a=r[t.id],n=r._size;t._hasClipOnAxisFalse=!1;for(var i=0;iXc*u?(x=u,y=x*Xc):(y=s,x=y/Xc),w=o*y/s,_=l*x/u,p=r.l+r.w*n-y/2,m=r.t+r.h*(1-i)-x/2,t.x0=p,t.y0=m,t.w=y,t.h=x,t.sum=f,t.xaxis={type:"linear",range:[c+2*d-f,f-c-2*v],domain:[n-w/2,n+w/2],_id:"x"},H0(t.xaxis,t.graphDiv._fullLayout),t.xaxis.setScale(),t.xaxis.isPtWithinRange=function(O){return O.a>=t.aaxis.range[0]&&O.a<=t.aaxis.range[1]&&O.b>=t.baxis.range[1]&&O.b<=t.baxis.range[0]&&O.c>=t.caxis.range[1]&&O.c<=t.caxis.range[0]},t.yaxis={type:"linear",range:[c,f-v-d],domain:[i-_/2,i+_/2],_id:"y"},H0(t.yaxis,t.graphDiv._fullLayout),t.yaxis.setScale(),t.yaxis.isPtWithinRange=function(){return!0};var b=t.yaxis.domain[0],T=t.aaxis=E6({},e.aaxis,{range:[c,f-v-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[b,b+_*Xc],anchor:"free",position:0,_id:"y",_length:y});H0(T,t.graphDiv._fullLayout),T.setScale();var k=t.baxis=E6({},e.baxis,{range:[f-c-d,v],side:"bottom",domain:t.xaxis.domain,anchor:"free",position:0,_id:"x",_length:y});H0(k,t.graphDiv._fullLayout),k.setScale();var M=t.caxis=E6({},e.caxis,{range:[f-c-v,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[b,b+_*Xc],anchor:"free",position:0,_id:"y",_length:y});H0(M,t.graphDiv._fullLayout),M.setScale();var S="M"+p+","+(m+x)+"h"+y+"l-"+y/2+",-"+x+"Z";t.clipDef.select("path").attr("d",S),t.layers.plotbg.select("path").attr("d",S);var E="M0,"+x+"h"+y+"l-"+y/2+",-"+x+"Z";t.clipDefRelative.select("path").attr("d",E);var D=Yo(p,m);t.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",D),t.clipDefRelative.select("path").attr("transform",null);var P=Yo(p-k._offset,m+x);t.layers.baxis.attr("transform",P),t.layers.bgrid.attr("transform",P);var R=Yo(p+y/2,m)+"rotate(30)"+Yo(0,-T._offset);t.layers.aaxis.attr("transform",R),t.layers.agrid.attr("transform",R);var z=Yo(p+y/2,m)+"rotate(-30)"+Yo(0,-M._offset);t.layers.caxis.attr("transform",z),t.layers.cgrid.attr("transform",z),t.drawAxes(!0),t.layers.aline.select("path").attr("d",T.showline?"M"+p+","+(m+x)+"l"+y/2+",-"+x:"M0,0").call(Jc.stroke,T.linecolor||"#000").style("stroke-width",(T.linewidth||0)+"px"),t.layers.bline.select("path").attr("d",k.showline?"M"+p+","+(m+x)+"h"+y:"M0,0").call(Jc.stroke,k.linecolor||"#000").style("stroke-width",(k.linewidth||0)+"px"),t.layers.cline.select("path").attr("d",M.showline?"M"+(p+y/2)+","+m+"l"+y/2+","+x:"M0,0").call(Jc.stroke,M.linecolor||"#000").style("stroke-width",(M.linewidth||0)+"px"),t.graphDiv._context.staticPlot||t.initInteractions(),Pg.setClipUrl(t.layers.frontplot,t._hasClipOnAxisFalse?null:t.clipId,t.graphDiv)};Vo.drawAxes=function(e){var r=this,t=r.graphDiv,a=r.id.substr(7)+"title",n=r.layers,i=r.aaxis,o=r.baxis,l=r.caxis;if(r.drawAx(i),r.drawAx(o),r.drawAx(l),e){var s=Math.max(i.showticklabels?i.tickfont.size/2:0,(l.showticklabels?l.tickfont.size*.75:0)+(l.ticks==="outside"?l.ticklen*.87:0)),u=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;n["a-title"]=D6.draw(t,"a"+a,{propContainer:i,propName:r.id+".aaxis.title",placeholder:Rg(t,"Click to enter Component A title"),attributes:{x:r.x0+r.w/2,y:r.y0-i.title.font.size/3-s,"text-anchor":"middle"}}),n["b-title"]=D6.draw(t,"b"+a,{propContainer:o,propName:r.id+".baxis.title",placeholder:Rg(t,"Click to enter Component B title"),attributes:{x:r.x0-u,y:r.y0+r.h+o.title.font.size*.83+u,"text-anchor":"middle"}}),n["c-title"]=D6.draw(t,"c"+a,{propContainer:l,propName:r.id+".caxis.title",placeholder:Rg(t,"Click to enter Component C title"),attributes:{x:r.x0+r.w+u,y:r.y0+r.h+l.title.font.size*.83+u,"text-anchor":"middle"}})}};Vo.drawAx=function(e){var r=this,t=r.graphDiv,a=e._name,n=a.charAt(0),i=e._id,o=r.layers[a],l=30,s=n+"tickLayout",u=i6e(e);r[s]!==u&&(o.selectAll("."+i+"tick").remove(),r[s]=u),e.setScale();var f=bs.calcTicks(e),c=bs.clipEnds(e,f),v=bs.makeTransTickFn(e),d=bs.getTickSigns(e)[2],p=Ml.deg2rad(l),m=d*(e.linewidth||1)/2,y=d*e.ticklen,x=r.w,w=r.h,_=n==="b"?"M0,"+m+"l"+Math.sin(p)*y+","+Math.cos(p)*y:"M"+m+",0l"+Math.cos(p)*y+","+-Math.sin(p)*y,b={a:"M0,0l"+w+",-"+x/2,b:"M0,0l-"+x/2+",-"+w,c:"M0,0l-"+w+","+x/2}[n];bs.drawTicks(t,e,{vals:e.ticks==="inside"?c:f,layer:o,path:_,transFn:v,crisp:!1}),bs.drawGrid(t,e,{vals:c,layer:r.layers[n+"grid"],path:b,transFn:v,crisp:!1}),bs.drawLabels(t,e,{vals:f,layer:o,transFn:v,labelFns:bs.makeLabelFns(e,0,l)})};function i6e(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var La=yZ.MINZOOM/2+.87,o6e="m-0.87,.5h"+La+"v3h-"+(La+5.2)+"l"+(La/2+2.6)+",-"+(La*.87+4.5)+"l2.6,1.5l-"+La/2+","+La*.87+"Z",l6e="m0.87,.5h-"+La+"v3h"+(La+5.2)+"l-"+(La/2+2.6)+",-"+(La*.87+4.5)+"l-2.6,1.5l"+La/2+","+La*.87+"Z",s6e="m0,1l"+La/2+","+La*.87+"l2.6,-1.5l-"+(La/2+2.6)+",-"+(La*.87+4.5)+"l-"+(La/2+2.6)+","+(La*.87+4.5)+"l2.6,1.5l"+La/2+",-"+La*.87+"Z",u6e="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",vZ=!0;Vo.clearOutline=function(){n6e(this.dragOptions),a6e(this.dragOptions.gd)};Vo.initInteractions=function(){var e=this,r=e.layers.plotbg.select("path").node(),t=e.graphDiv,a=t._fullLayout._zoomlayer,n,i;this.dragOptions={element:r,gd:t,plotinfo:{id:e.id,domain:t._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(P,R,z){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],n=t._fullLayout._invScaleX,i=t._fullLayout._invScaleY;var O=e.dragOptions.dragmode=t._fullLayout.dragmode;cZ(O)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,O==="zoom"?(e.dragOptions.moveFn=k,e.dragOptions.clickFn=x,e.dragOptions.doneFn=M,w(P,R,z)):O==="pan"?(e.dragOptions.moveFn=E,e.dragOptions.clickFn=x,e.dragOptions.doneFn=D,S(),e.clearOutline(t)):(e6e(O)||cZ(O))&&r6e(P,R,z,e.dragOptions,O)}};var o,l,s,u,f,c,v,d,p,m;function y(P){var R={};return R[e.id+".aaxis.min"]=P.a,R[e.id+".baxis.min"]=P.b,R[e.id+".caxis.min"]=P.c,R}function x(P,R){var z=t._fullLayout.clickmode;hZ(t),P===2&&(t.emit("plotly_doubleclick",null),C6.call("_guiRelayout",t,y({a:0,b:0,c:0}))),z.indexOf("select")>-1&&P===1&&t6e(R,t,[e.xaxis],[e.yaxis],e.id,e.dragOptions),z.indexOf("event")>-1&&fZ.click(t,R,e.id)}function w(P,R,z){var O=r.getBoundingClientRect();o=R-O.left,l=z-O.top,t._fullLayout._calcInverseTransform(t);var B=t._fullLayout._invTransform,V=Ml.apply3DTransform(B)(o,l);o=V[0],l=V[1],s={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=s,u=e.aaxis.range[1]-s.a,c=Kwe(e.graphDiv._fullLayout[e.id].bgcolor).getLuminance(),v="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,p=a.append("path").attr("class","zoombox").attr("transform",Yo(e.x0,e.y0)).style({fill:c>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",v),m=a.append("path").attr("class","zoombox-corners").attr("transform",Yo(e.x0,e.y0)).style({fill:Jc.background,stroke:Jc.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(t)}function _(P,R){return 1-R/e.h}function b(P,R){return 1-(P+(e.h-R)/Math.sqrt(3))/e.w}function T(P,R){return(P-(e.h-R)/Math.sqrt(3))/e.w}function k(P,R){var z=o+P*n,O=l+R*i,B=Math.max(0,Math.min(1,_(o,l),_(z,O))),V=Math.max(0,Math.min(1,b(o,l),b(z,O))),G=Math.max(0,Math.min(1,T(o,l),T(z,O))),U=(B/2+G)*e.w,Y=(1-B/2-V)*e.w,J=(U+Y)/2,Z=Y-U,re=(1-B)*e.h,se=re-Z/Xc;Z.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),m.transition().style("opacity",1).duration(200),d=!0),t.emit("plotly_relayouting",y(f))}function M(){hZ(t),f!==s&&(C6.call("_guiRelayout",t,y(f)),vZ&&t.data&&t._context.showTips&&(Ml.notifier(Rg(t,"Double-click to zoom back out"),"long"),vZ=!1))}function S(){s={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=s}function E(P,R){var z=P/e.xaxis._m,O=R/e.yaxis._m;f={a:s.a-O,b:s.b+(z+O)/2,c:s.c-(z-O)/2};var B=[f.a,f.b,f.c].sort(Ml.sorterAsc),V={a:B.indexOf(f.a),b:B.indexOf(f.b),c:B.indexOf(f.c)};B[0]<0&&(B[1]+B[0]/2<0?(B[2]+=B[0]+B[1],B[0]=B[1]=0):(B[2]+=B[0]/2,B[1]+=B[0]/2,B[0]=0),f={a:B[V.a],b:B[V.b],c:B[V.c]},R=(s.a-f.a)*e.yaxis._m,P=(s.c-f.c-s.b+f.b)*e.xaxis._m);var G=Yo(e.x0+P,e.y0+R);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",G);var U=Yo(-P,-R);e.clipDefRelative.select("path").attr("transform",U),e.aaxis.range=[f.a,e.sum-f.b-f.c],e.baxis.range=[e.sum-f.a-f.c,f.b],e.caxis.range=[e.sum-f.a-f.b,f.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(Pg.hideOutsideRangePoints,e),t.emit("plotly_relayouting",y(f))}function D(){C6.call("_guiRelayout",t,y(f))}r.onmousemove=function(P){fZ.hover(t,P,e.id),t._fullLayout._lasthover=r,t._fullLayout._hoversubplot=e.id},r.onmouseout=function(P){t._dragging||uZ.unhover(t,P)},uZ.init(this.dragOptions)};function hZ(e){dZ.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var F6=N((zIe,xZ)=>{"use strict";var f6e=li(),c6e=Rc().attributes,nt=hi(),v6e=Xi().overrideAll,R6=xt().extendFlat,P6={title:{text:nt.title.text,font:nt.title.font},color:nt.color,tickmode:nt.minor.tickmode,nticks:R6({},nt.nticks,{dflt:6,min:1}),tick0:nt.tick0,dtick:nt.dtick,tickvals:nt.tickvals,ticktext:nt.ticktext,ticks:nt.ticks,ticklen:nt.ticklen,tickwidth:nt.tickwidth,tickcolor:nt.tickcolor,ticklabelstep:nt.ticklabelstep,showticklabels:nt.showticklabels,labelalias:nt.labelalias,showtickprefix:nt.showtickprefix,tickprefix:nt.tickprefix,showticksuffix:nt.showticksuffix,ticksuffix:nt.ticksuffix,showexponent:nt.showexponent,exponentformat:nt.exponentformat,minexponent:nt.minexponent,separatethousands:nt.separatethousands,tickfont:nt.tickfont,tickangle:nt.tickangle,tickformat:nt.tickformat,tickformatstops:nt.tickformatstops,hoverformat:nt.hoverformat,showline:R6({},nt.showline,{dflt:!0}),linecolor:nt.linecolor,linewidth:nt.linewidth,showgrid:R6({},nt.showgrid,{dflt:!0}),gridcolor:nt.gridcolor,gridwidth:nt.gridwidth,griddash:nt.griddash,layer:nt.layer,min:{valType:"number",dflt:0,min:0}},Fg=xZ.exports=v6e({domain:c6e({name:"ternary"}),bgcolor:{valType:"color",dflt:f6e.background},sum:{valType:"number",dflt:1,min:0},aaxis:P6,baxis:P6,caxis:P6},"plot","from-root");Fg.uirevision={valType:"any",editType:"none"};Fg.aaxis.uirevision=Fg.baxis.uirevision=Fg.caxis.uirevision={valType:"any",editType:"none"}});var wZ=N((IIe,_Z)=>{"use strict";var h6e=Ce(),d6e=At(),p6e=Rc().defaults;_Z.exports=function(r,t,a,n){var i=n.type,o=n.attributes,l=n.handleDefaults,s=n.partition||"x",u=t._subplots[i],f=u.length,c=f&&u[0].replace(/\d+$/,""),v,d;function p(w,_){return h6e.coerce(v,d,o,w,_)}for(var m=0;m{"use strict";var y6e=Tr(),m6e=At(),Ng=Ce(),g6e=wZ(),b6e=o1(),x6e=l1(),_6e=n1(),w6e=a1(),T6e=m4(),AZ=F6(),TZ=["aaxis","baxis","caxis"];MZ.exports=function(r,t,a){g6e(r,t,a,{type:"ternary",attributes:AZ,handleDefaults:A6e,font:t.font,paper_bgcolor:t.paper_bgcolor})};function A6e(e,r,t,a){var n=t("bgcolor"),i=t("sum");a.bgColor=y6e.combine(n,a.paper_bgcolor);for(var o,l,s,u=0;u=i&&(f.min=0,c.min=0,v.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function M6e(e,r,t,a){var n=AZ[r._name];function i(d,p){return Ng.coerce(e,r,n,d,p)}i("uirevision",a.uirevision),r.type="linear";var o=i("color"),l=o!==n.color.dflt?o:t.font.color,s=r._name,u=s.charAt(0).toUpperCase(),f="Component "+u,c=i("title.text",f);r._hovertitle=c===f?c:u,Ng.coerceFont(i,"title.font",t.font,{overrideDflt:{size:Ng.bigFont(t.font.size),color:l}}),i("min"),w6e(e,r,i,"linear"),x6e(e,r,i,"linear"),b6e(e,r,i,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),_6e(e,r,i,{outerTicks:!0});var v=i("showticklabels");v&&(Ng.coerceFont(i,"tickfont",t.font,{overrideDflt:{color:l}}),i("tickangle"),i("tickformat")),T6e(e,r,i,{dfltColor:o,bgColor:t.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:n}),i("hoverformat"),i("layer")}});var SZ=N(Fi=>{"use strict";var k6e=bZ(),S6e=Xp().getSubplotCalcData,q6e=Ce().counterRegex,$c="ternary";Fi.name=$c;var L6e=Fi.attr="subplot";Fi.idRoot=$c;Fi.idRegex=Fi.attrRegex=q6e($c);var C6e=Fi.attributes={};C6e[L6e]={valType:"subplotid",dflt:"ternary",editType:"calc"};Fi.layoutAttributes=F6();Fi.supplyLayoutDefaults=kZ();Fi.plot=function(r){for(var t=r._fullLayout,a=r.calcdata,n=t._subplots[$c],i=0;i{"use strict";qZ.exports={attributes:S6(),supplyDefaults:Jj(),colorbar:u0(),formatLabels:Kj(),calc:tZ(),plot:nZ(),style:ku().style,styleOnSelect:ku().styleOnSelect,hoverPoints:oZ(),selectPoints:p4(),eventData:sZ(),moduleType:"trace",name:"scatterternary",basePlotModule:SZ(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var EZ=N((UIe,CZ)=>{"use strict";CZ.exports=LZ()});var N6=N((GIe,RZ)=>{"use strict";var ba=ng(),Kc=xt().extendFlat,DZ=Qi().axisHoverFormat;RZ.exports={y:ba.y,x:ba.x,x0:ba.x0,y0:ba.y0,xhoverformat:DZ("x"),yhoverformat:DZ("y"),name:Kc({},ba.name,{}),orientation:Kc({},ba.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:ba.fillcolor,points:Kc({},ba.boxpoints,{}),jitter:Kc({},ba.jitter,{}),pointpos:Kc({},ba.pointpos,{}),width:Kc({},ba.width,{}),marker:ba.marker,text:ba.text,hovertext:ba.hovertext,hovertemplate:ba.hovertemplate,quartilemethod:ba.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:ba.offsetgroup,alignmentgroup:ba.alignmentgroup,selected:ba.selected,unselected:ba.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:ba.zorder}});var O6=N((YIe,PZ)=>{"use strict";var z6=ig(),I6=Ce().extendFlat;PZ.exports={violinmode:I6({},z6.boxmode,{}),violingap:I6({},z6.boxgap,{}),violingroupgap:I6({},z6.boxgroupgap,{})}});var OZ=N((VIe,IZ)=>{"use strict";var FZ=Ce(),E6e=Tr(),NZ=L0(),zZ=N6();IZ.exports=function(r,t,a,n){function i(T,k){return FZ.coerce(r,t,zZ,T,k)}function o(T,k){return FZ.coerce2(r,t,zZ,T,k)}if(NZ.handleSampleDefaults(r,t,i,n),t.visible!==!1){i("bandwidth"),i("side");var l=i("width");l||(i("scalegroup",t.name),i("scalemode"));var s=i("span"),u;Array.isArray(s)&&(u="manual"),i("spanmode",u);var f=i("line.color",(r.marker||{}).color||a),c=i("line.width"),v=i("fillcolor",E6e.addOpacity(t.line.color,.5));NZ.handlePointsDefaults(r,t,i,{prefix:""});var d=o("box.width"),p=o("box.fillcolor",v),m=o("box.line.color",f),y=o("box.line.width",c),x=i("box.visible",!!(d||p||m||y));x||(t.box={visible:!1});var w=o("meanline.color",f),_=o("meanline.width",c),b=i("meanline.visible",!!(w||_));b||(t.meanline={visible:!1}),i("quartilemethod"),i("zorder")}}});var HZ=N((WIe,BZ)=>{"use strict";var D6e=Ce(),R6e=O6(),P6e=Sw();BZ.exports=function(r,t,a){function n(i,o){return D6e.coerce(r,t,R6e,i,o)}P6e._supply(r,t,a,n,"violin")}});var zg=N(Uu=>{"use strict";var F6e=Ce(),N6e={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};Uu.makeKDE=function(e,r,t){var a=t.length,n=N6e.gaussian,i=e.bandwidth,o=1/(a*i);return function(l){for(var s=0,u=0;u{"use strict";var B6=Ce(),H6=Ir(),z6e=Cw(),UZ=zg(),I6e=Nt().BADNUM;GZ.exports=function(r,t){var a=z6e(r,t);if(a[0].t.empty)return a;for(var n=r._fullLayout,i=H6.getFromId(r,t[t.orientation==="h"?"xaxis":"yaxis"]),o=1/0,l=-1/0,s=0,u=0,f=0;f{"use strict";var U6e=Ew().setPositionOffset,VZ=["v","h"];WZ.exports=function(r,t){for(var a=r.calcdata,n=t.xaxis,i=t.yaxis,o=0;o{"use strict";var U6=Sr(),G6=Ce(),G6e=Wr(),Y6=Dw(),Y6e=l4(),V6e=zg();ZZ.exports=function(r,t,a,n){var i=r._context.staticPlot,o=r._fullLayout,l=t.xaxis,s=t.yaxis;function u(f,c){var v=Y6e(f,{xaxis:l,yaxis:s,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return G6e.smoothopen(v[0],1)}G6.makeTraceGroups(n,a,"trace violins").each(function(f){var c=U6.select(this),v=f[0],d=v.t,p=v.trace;if(p.visible!==!0||d.empty){c.remove();return}var m=d.bPos,y=d.bdPos,x=t[d.valLetter+"axis"],w=t[d.posLetter+"axis"],_=p.side==="both",b=_||p.side==="positive",T=_||p.side==="negative",k=c.selectAll("path.violin").data(G6.identity);k.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","violin"),k.exit().remove(),k.each(function(O){var B=U6.select(this),V=O.density,G=V.length,U=w.c2l(O.pos+m,!0),Y=w.l2p(U),J;if(p.width)J=d.maxKDE/y;else{var Z=o._violinScaleGroupStats[p.scalegroup];J=p.scalemode==="count"?Z.maxKDE/y*(Z.maxCount/O.pts.length):Z.maxKDE/y}var re,se,oe,ce,K,Te,le;if(b){for(Te=new Array(G),ce=0;ce{"use strict";var JZ=Sr(),Qc=Tr(),W6e=ku().stylePoints;$Z.exports=function(r){var t=JZ.select(r).selectAll("g.trace.violins");t.style("opacity",function(a){return a[0].trace.opacity}),t.each(function(a){var n=a[0].trace,i=JZ.select(this),o=n.box||{},l=o.line||{},s=n.meanline||{},u=s.width;i.selectAll("path.violin").style("stroke-width",n.line.width+"px").call(Qc.stroke,n.line.color).call(Qc.fill,n.fillcolor),i.selectAll("path.box").style("stroke-width",l.width+"px").call(Qc.stroke,l.color).call(Qc.fill,o.fillcolor);var f={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};i.selectAll("path.mean").style(f).call(Qc.stroke,s.color),i.selectAll("path.meanline").style(f).call(Qc.stroke,s.color),W6e(i,n,r)})}});var tX=N((KIe,rX)=>{"use strict";var j6e=Tr(),V6=Ce(),Z6e=Ir(),QZ=Iw(),eX=zg();rX.exports=function(r,t,a,n,i){i||(i={});var o=i.hoverLayer,l=r.cd,s=l[0].trace,u=s.hoveron,f=u.indexOf("violins")!==-1,c=u.indexOf("kde")!==-1,v=[],d,p;if(f||c){var m=QZ.hoverOnBoxes(r,t,a,n);if(c&&m.length>0){var y=r.xa,x=r.ya,w,_,b,T,k;s.orientation==="h"?(k=t,w="y",b=x,_="x",T=y):(k=a,w="x",b=y,_="y",T=x);var M=l[r.index];if(k>=M.span[0]&&k<=M.span[1]){var S=V6.extendFlat({},r),E=T.c2p(k,!0),D=eX.getKdeValue(M,s,k),P=eX.getPositionOnKdePath(M,s,E),R=b._offset,z=b._length;S[w+"0"]=P[0],S[w+"1"]=P[1],S[_+"0"]=S[_+"1"]=E,S[_+"Label"]=_+": "+Z6e.hoverLabelText(T,k,s[_+"hoverformat"])+", "+l[0].t.labels.kde+" "+D.toFixed(3);for(var O=0,B=0;B{"use strict";aX.exports={attributes:N6(),layoutAttributes:O6(),supplyDefaults:OZ(),crossTraceDefaults:L0().crossTraceDefaults,supplyLayoutDefaults:HZ(),calc:YZ(),crossTraceCalc:jZ(),plot:XZ(),style:KZ(),styleOnSelect:ku().styleOnSelect,hoverPoints:tX(),selectPoints:Ow(),moduleType:"trace",name:"violin",basePlotModule:qi(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var oX=N((eOe,iX)=>{"use strict";iX.exports=nX()});var ev=N((rOe,lX)=>{"use strict";lX.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var r=e.slice(0,3);return r[1]=r[1]+"%",r[2]=r[2]+"%",r},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var r=e.slice(0,4);return r[1]=r[1]+"%",r[2]=r[2]+"%",r},suffix:["\xB0","%","%",""]}}}});var W6=N((tOe,uX)=>{"use strict";var X6e=mn(),J6e=wi().zorder,$6e=Ta().hovertemplateAttrs,sX=xt().extendFlat,K6e=ev().colormodel,G0=["rgb","rgba","rgba256","hsl","hsla"],Q6e=[],e7e=[];for(rv=0;rv{"use strict";var r7e=Ce(),t7e=W6(),fX=ev(),a7e=yl().IMAGE_URL_PREFIX;cX.exports=function(r,t){function a(o,l){return r7e.coerce(r,t,t7e,o,l)}a("source"),t.source&&!t.source.match(a7e)&&delete t.source,t._hasSource=!!t.source;var n=a("z");if(t._hasZ=!(n===void 0||!n.length||!n[0]||!n[0].length),!t._hasZ&&!t._hasSource){t.visible=!1;return}a("x0"),a("y0"),a("dx"),a("dy");var i;t._hasZ?(a("colormodel","rgb"),i=fX.colormodel[t.colormodel],a("zmin",i.zminDflt||i.min),a("zmax",i.zmaxDflt||i.max)):t._hasSource&&(t.colormodel="rgba256",i=fX.colormodel[t.colormodel],t.zmin=i.zminDflt,t.zmax=i.zmaxDflt),a("zsmooth"),a("text"),a("hovertext"),a("hovertemplate"),t._length=null,a("zorder")}});var kl=N((nOe,j6)=>{typeof Object.create=="function"?j6.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:j6.exports=function(r,t){if(t){r.super_=t;var a=function(){};a.prototype=t.prototype,r.prototype=new a,r.prototype.constructor=r}}});var Z6=N((iOe,hX)=>{hX.exports=Qs().EventEmitter});var yX=N(Ig=>{"use strict";Ig.byteLength=i7e;Ig.toByteArray=l7e;Ig.fromByteArray=f7e;var Wo=[],Ni=[],n7e=typeof Uint8Array!="undefined"?Uint8Array:Array,X6="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Gu=0,dX=X6.length;Gu0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var a=t===r?0:4-t%4;return[t,a]}function i7e(e){var r=pX(e),t=r[0],a=r[1];return(t+a)*3/4-a}function o7e(e,r,t){return(r+t)*3/4-t}function l7e(e){var r,t=pX(e),a=t[0],n=t[1],i=new n7e(o7e(e,a,n)),o=0,l=n>0?a-4:a,s;for(s=0;s>16&255,i[o++]=r>>8&255,i[o++]=r&255;return n===2&&(r=Ni[e.charCodeAt(s)]<<2|Ni[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=Ni[e.charCodeAt(s)]<<10|Ni[e.charCodeAt(s+1)]<<4|Ni[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function s7e(e){return Wo[e>>18&63]+Wo[e>>12&63]+Wo[e>>6&63]+Wo[e&63]}function u7e(e,r,t){for(var a,n=[],i=r;il?l:o+i));return a===1?(r=e[t-1],n.push(Wo[r>>2]+Wo[r<<4&63]+"==")):a===2&&(r=(e[t-2]<<8)+e[t-1],n.push(Wo[r>>10]+Wo[r>>4&63]+Wo[r<<2&63]+"=")),n.join("")}});var mX=N(J6=>{J6.read=function(e,r,t,a,n){var i,o,l=n*8-a-1,s=(1<>1,f=-7,c=t?n-1:0,v=t?-1:1,d=e[r+c];for(c+=v,i=d&(1<<-f)-1,d>>=-f,f+=l;f>0;i=i*256+e[r+c],c+=v,f-=8);for(o=i&(1<<-f)-1,i>>=-f,f+=a;f>0;o=o*256+e[r+c],c+=v,f-=8);if(i===0)i=1-u;else{if(i===s)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,a),i=i-u}return(d?-1:1)*o*Math.pow(2,i-a)};J6.write=function(e,r,t,a,n,i){var o,l,s,u=i*8-n-1,f=(1<>1,v=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:i-1,p=a?1:-1,m=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,o=f):(o=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+c>=1?r+=v/s:r+=v*Math.pow(2,1-c),r*s>=2&&(o++,s/=2),o+c>=f?(l=0,o=f):o+c>=1?(l=(r*s-1)*Math.pow(2,n),o=o+c):(l=r*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[t+d]=l&255,d+=p,l/=256,n-=8);for(o=o<0;e[t+d]=o&255,d+=p,o/=256,u-=8);e[t+d-p]|=m*128}});var ov=N(iv=>{"use strict";var $6=yX(),av=mX(),gX=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;iv.Buffer=We;iv.SlowBuffer=y7e;iv.INSPECT_MAX_BYTES=50;var Og=2147483647;iv.kMaxLength=Og;We.TYPED_ARRAY_SUPPORT=c7e();!We.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c7e(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(e){return!1}}Object.defineProperty(We.prototype,"parent",{enumerable:!0,get:function(){if(We.isBuffer(this))return this.buffer}});Object.defineProperty(We.prototype,"offset",{enumerable:!0,get:function(){if(We.isBuffer(this))return this.byteOffset}});function Sl(e){if(e>Og)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,We.prototype),r}function We(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return r7(e)}return wX(e,r,t)}We.poolSize=8192;function wX(e,r,t){if(typeof e=="string")return h7e(e,r);if(ArrayBuffer.isView(e))return d7e(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(jo(e,ArrayBuffer)||e&&jo(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(jo(e,SharedArrayBuffer)||e&&jo(e.buffer,SharedArrayBuffer)))return Q6(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let a=e.valueOf&&e.valueOf();if(a!=null&&a!==e)return We.from(a,r,t);let n=p7e(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return We.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}We.from=function(e,r,t){return wX(e,r,t)};Object.setPrototypeOf(We.prototype,Uint8Array.prototype);Object.setPrototypeOf(We,Uint8Array);function TX(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function v7e(e,r,t){return TX(e),e<=0?Sl(e):r!==void 0?typeof t=="string"?Sl(e).fill(r,t):Sl(e).fill(r):Sl(e)}We.alloc=function(e,r,t){return v7e(e,r,t)};function r7(e){return TX(e),Sl(e<0?0:t7(e)|0)}We.allocUnsafe=function(e){return r7(e)};We.allocUnsafeSlow=function(e){return r7(e)};function h7e(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!We.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=AX(e,r)|0,a=Sl(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function K6(e){let r=e.length<0?0:t7(e.length)|0,t=Sl(r);for(let a=0;a=Og)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Og.toString(16)+" bytes");return e|0}function y7e(e){return+e!=e&&(e=0),We.alloc(+e)}We.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==We.prototype};We.compare=function(r,t){if(jo(r,Uint8Array)&&(r=We.from(r,r.offset,r.byteLength)),jo(t,Uint8Array)&&(t=We.from(t,t.offset,t.byteLength)),!We.isBuffer(r)||!We.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let a=r.length,n=t.length;for(let i=0,o=Math.min(a,n);in.length?(We.isBuffer(o)||(o=We.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(We.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function AX(e,r){if(We.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||jo(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,a=arguments.length>2&&arguments[2]===!0;if(!a&&t===0)return 0;let n=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return e7(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return RX(e).length;default:if(n)return a?-1:e7(e).length;r=(""+r).toLowerCase(),n=!0}}We.byteLength=AX;function m7e(e,r,t){let a=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return S7e(this,r,t);case"utf8":case"utf-8":return kX(this,r,t);case"ascii":return M7e(this,r,t);case"latin1":case"binary":return k7e(this,r,t);case"base64":return T7e(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q7e(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}We.prototype._isBuffer=!0;function Yu(e,r,t){let a=e[r];e[r]=e[t],e[t]=a}We.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(r+=" ... "),""};gX&&(We.prototype[gX]=We.prototype.inspect);We.prototype.compare=function(r,t,a,n,i){if(jo(r,Uint8Array)&&(r=We.from(r,r.offset,r.byteLength)),!We.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),a===void 0&&(a=r?r.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||a>r.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=a)return 0;if(n>=i)return-1;if(t>=a)return 1;if(t>>>=0,a>>>=0,n>>>=0,i>>>=0,this===r)return 0;let o=i-n,l=a-t,s=Math.min(o,l),u=this.slice(n,i),f=r.slice(t,a);for(let c=0;c2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,n7(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=We.from(r,a)),We.isBuffer(r))return r.length===0?-1:bX(e,r,t,a,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):bX(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function bX(e,r,t,a,n){let i=1,o=e.length,l=r.length;if(a!==void 0&&(a=String(a).toLowerCase(),a==="ucs2"||a==="ucs-2"||a==="utf16le"||a==="utf-16le")){if(e.length<2||r.length<2)return-1;i=2,o/=2,l/=2,t/=2}function s(f,c){return i===1?f[c]:f.readUInt16BE(c*i)}let u;if(n){let f=-1;for(u=t;uo&&(t=o-l),u=t;u>=0;u--){let f=!0;for(let c=0;cn&&(a=n)):a=n;let i=r.length;a>i/2&&(a=i/2);let o;for(o=0;o>>0,isFinite(a)?(a=a>>>0,n===void 0&&(n="utf8")):(n=a,a=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((a===void 0||a>i)&&(a=i),r.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return g7e(this,r,t,a);case"utf8":case"utf-8":return b7e(this,r,t,a);case"ascii":case"latin1":case"binary":return x7e(this,r,t,a);case"base64":return _7e(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w7e(this,r,t,a);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};We.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function T7e(e,r,t){return r===0&&t===e.length?$6.fromByteArray(e):$6.fromByteArray(e.slice(r,t))}function kX(e,r,t){t=Math.min(e.length,t);let a=[],n=r;for(;n239?4:i>223?3:i>191?2:1;if(n+l<=t){let s,u,f,c;switch(l){case 1:i<128&&(o=i);break;case 2:s=e[n+1],(s&192)===128&&(c=(i&31)<<6|s&63,c>127&&(o=c));break;case 3:s=e[n+1],u=e[n+2],(s&192)===128&&(u&192)===128&&(c=(i&15)<<12|(s&63)<<6|u&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:s=e[n+1],u=e[n+2],f=e[n+3],(s&192)===128&&(u&192)===128&&(f&192)===128&&(c=(i&15)<<18|(s&63)<<12|(u&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,a.push(o>>>10&1023|55296),o=56320|o&1023),a.push(o),n+=l}return A7e(a)}var xX=4096;function A7e(e){let r=e.length;if(r<=xX)return String.fromCharCode.apply(String,e);let t="",a=0;for(;aa)&&(t=a);let n="";for(let i=r;ia&&(r=a),t<0?(t+=a,t<0&&(t=0)):t>a&&(t=a),tt)throw new RangeError("Trying to access beyond buffer length")}We.prototype.readUintLE=We.prototype.readUIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||Va(r,t,this.length);let n=this[r],i=1,o=0;for(;++o>>0,t=t>>>0,a||Va(r,t,this.length);let n=this[r+--t],i=1;for(;t>0&&(i*=256);)n+=this[r+--t]*i;return n};We.prototype.readUint8=We.prototype.readUInt8=function(r,t){return r=r>>>0,t||Va(r,1,this.length),this[r]};We.prototype.readUint16LE=We.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||Va(r,2,this.length),this[r]|this[r+1]<<8};We.prototype.readUint16BE=We.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||Va(r,2,this.length),this[r]<<8|this[r+1]};We.prototype.readUint32LE=We.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||Va(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};We.prototype.readUint32BE=We.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||Va(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};We.prototype.readBigUInt64LE=xs(function(r){r=r>>>0,nv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Y0(r,this.length-8);let n=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,i=this[++r]+this[++r]*2**8+this[++r]*2**16+a*2**24;return BigInt(n)+(BigInt(i)<>>0,nv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Y0(r,this.length-8);let n=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],i=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a;return(BigInt(n)<>>0,t=t>>>0,a||Va(r,t,this.length);let n=this[r],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};We.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||Va(r,t,this.length);let n=t,i=1,o=this[r+--n];for(;n>0&&(i*=256);)o+=this[r+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};We.prototype.readInt8=function(r,t){return r=r>>>0,t||Va(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};We.prototype.readInt16LE=function(r,t){r=r>>>0,t||Va(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};We.prototype.readInt16BE=function(r,t){r=r>>>0,t||Va(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};We.prototype.readInt32LE=function(r,t){return r=r>>>0,t||Va(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};We.prototype.readInt32BE=function(r,t){return r=r>>>0,t||Va(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};We.prototype.readBigInt64LE=xs(function(r){r=r>>>0,nv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Y0(r,this.length-8);let n=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(a<<24);return(BigInt(n)<>>0,nv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Y0(r,this.length-8);let n=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(n)<>>0,t||Va(r,4,this.length),av.read(this,r,!0,23,4)};We.prototype.readFloatBE=function(r,t){return r=r>>>0,t||Va(r,4,this.length),av.read(this,r,!1,23,4)};We.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||Va(r,8,this.length),av.read(this,r,!0,52,8)};We.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||Va(r,8,this.length),av.read(this,r,!1,52,8)};function Un(e,r,t,a,n,i){if(!We.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.length)throw new RangeError("Index out of range")}We.prototype.writeUintLE=We.prototype.writeUIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;Un(this,r,t,a,l,0)}let i=1,o=0;for(this[t]=r&255;++o>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;Un(this,r,t,a,l,0)}let i=a-1,o=1;for(this[t+i]=r&255;--i>=0&&(o*=256);)this[t+i]=r/o&255;return t+a};We.prototype.writeUint8=We.prototype.writeUInt8=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,1,255,0),this[t]=r&255,t+1};We.prototype.writeUint16LE=We.prototype.writeUInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};We.prototype.writeUint16BE=We.prototype.writeUInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};We.prototype.writeUint32LE=We.prototype.writeUInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};We.prototype.writeUint32BE=We.prototype.writeUInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function SX(e,r,t,a,n){DX(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,t}function qX(e,r,t,a,n){DX(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t+7]=i,i=i>>8,e[t+6]=i,i=i>>8,e[t+5]=i,i=i>>8,e[t+4]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=o,o=o>>8,e[t+2]=o,o=o>>8,e[t+1]=o,o=o>>8,e[t]=o,t+8}We.prototype.writeBigUInt64LE=xs(function(r,t=0){return SX(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});We.prototype.writeBigUInt64BE=xs(function(r,t=0){return qX(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});We.prototype.writeIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);Un(this,r,t,a,s-1,-s)}let i=0,o=1,l=0;for(this[t]=r&255;++i>0)-l&255;return t+a};We.prototype.writeIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);Un(this,r,t,a,s-1,-s)}let i=a-1,o=1,l=0;for(this[t+i]=r&255;--i>=0&&(o*=256);)r<0&&l===0&&this[t+i+1]!==0&&(l=1),this[t+i]=(r/o>>0)-l&255;return t+a};We.prototype.writeInt8=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};We.prototype.writeInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};We.prototype.writeInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};We.prototype.writeInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};We.prototype.writeInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||Un(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};We.prototype.writeBigInt64LE=xs(function(r,t=0){return SX(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});We.prototype.writeBigInt64BE=xs(function(r,t=0){return qX(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function LX(e,r,t,a,n,i){if(t+a>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function CX(e,r,t,a,n){return r=+r,t=t>>>0,n||LX(e,r,t,4,34028234663852886e22,-34028234663852886e22),av.write(e,r,t,a,23,4),t+4}We.prototype.writeFloatLE=function(r,t,a){return CX(this,r,t,!0,a)};We.prototype.writeFloatBE=function(r,t,a){return CX(this,r,t,!1,a)};function EX(e,r,t,a,n){return r=+r,t=t>>>0,n||LX(e,r,t,8,17976931348623157e292,-17976931348623157e292),av.write(e,r,t,a,52,8),t+8}We.prototype.writeDoubleLE=function(r,t,a){return EX(this,r,t,!0,a)};We.prototype.writeDoubleBE=function(r,t,a){return EX(this,r,t,!1,a)};We.prototype.copy=function(r,t,a,n){if(!We.isBuffer(r))throw new TypeError("argument should be a Buffer");if(a||(a=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t>>0,a=a===void 0?this.length:a>>>0,r||(r=0);let i;if(typeof r=="number")for(i=t;i2**32?n=_X(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=_X(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function _X(e){let r="",t=e.length,a=e[0]==="-"?1:0;for(;t>=a+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return`${e.slice(0,t)}${r}`}function L7e(e,r,t){nv(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&Y0(r,e.length-(t+1))}function DX(e,r,t,a,n,i){if(e>t||e3?r===0||r===BigInt(0)?l=`>= 0${o} and < 2${o} ** ${(i+1)*8}${o}`:l=`>= -(2${o} ** ${(i+1)*8-1}${o}) and < 2 ** ${(i+1)*8-1}${o}`:l=`>= ${r}${o} and <= ${t}${o}`,new tv.ERR_OUT_OF_RANGE("value",l,e)}L7e(a,n,i)}function nv(e,r){if(typeof e!="number")throw new tv.ERR_INVALID_ARG_TYPE(r,"number",e)}function Y0(e,r,t){throw Math.floor(e)!==e?(nv(e,t),new tv.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new tv.ERR_BUFFER_OUT_OF_BOUNDS:new tv.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var C7e=/[^+/0-9A-Za-z-_]/g;function E7e(e){if(e=e.split("=")[0],e=e.trim().replace(C7e,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function e7(e,r){r=r||1/0;let t,a=e.length,n=null,i=[];for(let o=0;o55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&i.push(239,191,189);continue}else if(o+1===a){(r-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&i.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;i.push(t)}else if(t<2048){if((r-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function D7e(e){let r=[];for(let t=0;t>8,n=t%256,i.push(n),i.push(a);return i}function RX(e){return $6.toByteArray(E7e(e))}function Bg(e,r,t,a){let n;for(n=0;n=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function jo(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function n7(e){return e!==e}var P7e=function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let a=t*16;for(let n=0;n<16;++n)r[a+n]=e[t]+e[n]}return r}();function xs(e){return typeof BigInt=="undefined"?F7e:e}function F7e(){throw new Error("BigInt not supported")}});var Hg=N((fOe,PX)=>{"use strict";PX.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),a=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;r[t]=n;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var o=Object.getOwnPropertySymbols(r);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(r,t);if(l.value!==n||l.enumerable!==!0)return!1}return!0}});var V0=N((cOe,FX)=>{"use strict";var N7e=Hg();FX.exports=function(){return N7e()&&!!Symbol.toStringTag}});var i7=N((vOe,NX)=>{"use strict";NX.exports=Object});var IX=N((hOe,zX)=>{"use strict";zX.exports=Error});var BX=N((dOe,OX)=>{"use strict";OX.exports=EvalError});var UX=N((pOe,HX)=>{"use strict";HX.exports=RangeError});var YX=N((yOe,GX)=>{"use strict";GX.exports=ReferenceError});var o7=N((mOe,VX)=>{"use strict";VX.exports=SyntaxError});var lv=N((gOe,WX)=>{"use strict";WX.exports=TypeError});var ZX=N((bOe,jX)=>{"use strict";jX.exports=URIError});var JX=N((xOe,XX)=>{"use strict";XX.exports=Math.abs});var KX=N((_Oe,$X)=>{"use strict";$X.exports=Math.floor});var eJ=N((wOe,QX)=>{"use strict";QX.exports=Math.max});var tJ=N((TOe,rJ)=>{"use strict";rJ.exports=Math.min});var nJ=N((AOe,aJ)=>{"use strict";aJ.exports=Math.pow});var oJ=N((MOe,iJ)=>{"use strict";iJ.exports=Math.round});var sJ=N((kOe,lJ)=>{"use strict";lJ.exports=Number.isNaN||function(r){return r!==r}});var fJ=N((SOe,uJ)=>{"use strict";var z7e=sJ();uJ.exports=function(r){return z7e(r)||r===0?r:r<0?-1:1}});var vJ=N((qOe,cJ)=>{"use strict";cJ.exports=Object.getOwnPropertyDescriptor});var Vu=N((LOe,hJ)=>{"use strict";var Ug=vJ();if(Ug)try{Ug([],"length")}catch(e){Ug=null}hJ.exports=Ug});var W0=N((COe,dJ)=>{"use strict";var Gg=Object.defineProperty||!1;if(Gg)try{Gg({},"a",{value:1})}catch(e){Gg=!1}dJ.exports=Gg});var mJ=N((EOe,yJ)=>{"use strict";var pJ=typeof Symbol!="undefined"&&Symbol,I7e=Hg();yJ.exports=function(){return typeof pJ!="function"||typeof Symbol!="function"||typeof pJ("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:I7e()}});var l7=N((DOe,gJ)=>{"use strict";gJ.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var s7=N((ROe,bJ)=>{"use strict";var O7e=i7();bJ.exports=O7e.getPrototypeOf||null});var wJ=N((POe,_J)=>{"use strict";var B7e="Function.prototype.bind called on incompatible ",H7e=Object.prototype.toString,U7e=Math.max,G7e="[object Function]",xJ=function(r,t){for(var a=[],n=0;n{"use strict";var W7e=wJ();TJ.exports=Function.prototype.bind||W7e});var Yg=N((NOe,AJ)=>{"use strict";AJ.exports=Function.prototype.call});var u7=N((zOe,MJ)=>{"use strict";MJ.exports=Function.prototype.apply});var SJ=N((IOe,kJ)=>{"use strict";kJ.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var LJ=N((OOe,qJ)=>{"use strict";var j7e=sv(),Z7e=u7(),X7e=Yg(),J7e=SJ();qJ.exports=J7e||j7e.call(X7e,Z7e)});var EJ=N((BOe,CJ)=>{"use strict";var $7e=sv(),K7e=lv(),Q7e=Yg(),eTe=LJ();CJ.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new K7e("a function is required");return eTe($7e,Q7e,r)}});var zJ=N((HOe,NJ)=>{"use strict";var rTe=EJ(),DJ=Vu(),PJ;try{PJ=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var f7=!!PJ&&DJ&&DJ(Object.prototype,"__proto__"),FJ=Object,RJ=FJ.getPrototypeOf;NJ.exports=f7&&typeof f7.get=="function"?rTe([f7.get]):typeof RJ=="function"?function(r){return RJ(r==null?r:FJ(r))}:!1});var UJ=N((UOe,HJ)=>{"use strict";var IJ=l7(),OJ=s7(),BJ=zJ();HJ.exports=IJ?function(r){return IJ(r)}:OJ?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return OJ(r)}:BJ?function(r){return BJ(r)}:null});var YJ=N((GOe,GJ)=>{"use strict";var tTe=Function.prototype.call,aTe=Object.prototype.hasOwnProperty,nTe=sv();GJ.exports=nTe.call(tTe,aTe)});var jg=N((YOe,JJ)=>{"use strict";var it,iTe=i7(),oTe=IX(),lTe=BX(),sTe=UX(),uTe=YX(),vv=o7(),cv=lv(),fTe=ZX(),cTe=JX(),vTe=KX(),hTe=eJ(),dTe=tJ(),pTe=nJ(),yTe=oJ(),mTe=fJ(),ZJ=Function,c7=function(e){try{return ZJ('"use strict"; return ('+e+").constructor;")()}catch(r){}},j0=Vu(),gTe=W0(),v7=function(){throw new cv},bTe=j0?function(){try{return arguments.callee,v7}catch(e){try{return j0(arguments,"callee").get}catch(r){return v7}}}():v7,uv=mJ()(),Wa=UJ(),xTe=s7(),_Te=l7(),XJ=u7(),Z0=Yg(),fv={},wTe=typeof Uint8Array=="undefined"||!Wa?it:Wa(Uint8Array),Wu={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?it:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?it:ArrayBuffer,"%ArrayIteratorPrototype%":uv&&Wa?Wa([][Symbol.iterator]()):it,"%AsyncFromSyncIteratorPrototype%":it,"%AsyncFunction%":fv,"%AsyncGenerator%":fv,"%AsyncGeneratorFunction%":fv,"%AsyncIteratorPrototype%":fv,"%Atomics%":typeof Atomics=="undefined"?it:Atomics,"%BigInt%":typeof BigInt=="undefined"?it:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?it:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?it:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?it:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":oTe,"%eval%":eval,"%EvalError%":lTe,"%Float16Array%":typeof Float16Array=="undefined"?it:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?it:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?it:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?it:FinalizationRegistry,"%Function%":ZJ,"%GeneratorFunction%":fv,"%Int8Array%":typeof Int8Array=="undefined"?it:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?it:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?it:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":uv&&Wa?Wa(Wa([][Symbol.iterator]())):it,"%JSON%":typeof JSON=="object"?JSON:it,"%Map%":typeof Map=="undefined"?it:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!uv||!Wa?it:Wa(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":iTe,"%Object.getOwnPropertyDescriptor%":j0,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?it:Promise,"%Proxy%":typeof Proxy=="undefined"?it:Proxy,"%RangeError%":sTe,"%ReferenceError%":uTe,"%Reflect%":typeof Reflect=="undefined"?it:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?it:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!uv||!Wa?it:Wa(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?it:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":uv&&Wa?Wa(""[Symbol.iterator]()):it,"%Symbol%":uv?Symbol:it,"%SyntaxError%":vv,"%ThrowTypeError%":bTe,"%TypedArray%":wTe,"%TypeError%":cv,"%Uint8Array%":typeof Uint8Array=="undefined"?it:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?it:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?it:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?it:Uint32Array,"%URIError%":fTe,"%WeakMap%":typeof WeakMap=="undefined"?it:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?it:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?it:WeakSet,"%Function.prototype.call%":Z0,"%Function.prototype.apply%":XJ,"%Object.defineProperty%":gTe,"%Object.getPrototypeOf%":xTe,"%Math.abs%":cTe,"%Math.floor%":vTe,"%Math.max%":hTe,"%Math.min%":dTe,"%Math.pow%":pTe,"%Math.round%":yTe,"%Math.sign%":mTe,"%Reflect.getPrototypeOf%":_Te};if(Wa)try{null.error}catch(e){VJ=Wa(Wa(e)),Wu["%Error.prototype%"]=VJ}var VJ,TTe=function e(r){var t;if(r==="%AsyncFunction%")t=c7("async function () {}");else if(r==="%GeneratorFunction%")t=c7("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=c7("async function* () {}");else if(r==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(t=a.prototype)}else if(r==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Wa&&(t=Wa(n.prototype))}return Wu[r]=t,t},WJ={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},X0=sv(),Vg=YJ(),ATe=X0.call(Z0,Array.prototype.concat),MTe=X0.call(XJ,Array.prototype.splice),jJ=X0.call(Z0,String.prototype.replace),Wg=X0.call(Z0,String.prototype.slice),kTe=X0.call(Z0,RegExp.prototype.exec),STe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,qTe=/\\(\\)?/g,LTe=function(r){var t=Wg(r,0,1),a=Wg(r,-1);if(t==="%"&&a!=="%")throw new vv("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&t!=="%")throw new vv("invalid intrinsic syntax, expected opening `%`");var n=[];return jJ(r,STe,function(i,o,l,s){n[n.length]=l?jJ(s,qTe,"$1"):o||i}),n},CTe=function(r,t){var a=r,n;if(Vg(WJ,a)&&(n=WJ[a],a="%"+n[0]+"%"),Vg(Wu,a)){var i=Wu[a];if(i===fv&&(i=TTe(a)),typeof i=="undefined"&&!t)throw new cv("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:i}}throw new vv("intrinsic "+r+" does not exist!")};JJ.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new cv("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new cv('"allowMissing" argument must be a boolean');if(kTe(/^%?[^%]*%?$/,r)===null)throw new vv("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=LTe(r),n=a.length>0?a[0]:"",i=CTe("%"+n+"%",t),o=i.name,l=i.value,s=!1,u=i.alias;u&&(n=u[0],MTe(a,ATe([0,1],u)));for(var f=1,c=!0;f=a.length){var m=j0(l,v);c=!!m,c&&"get"in m&&!("originalValue"in m.get)?l=m.get:l=l[v]}else c=Vg(l,v),l=l[v];c&&!s&&(Wu[o]=l)}}return l}});var e$=N((VOe,QJ)=>{"use strict";var $J=W0(),ETe=o7(),hv=lv(),KJ=Vu();QJ.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new hv("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new hv("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new hv("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new hv("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new hv("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new hv("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,s=!!KJ&&KJ(r,t);if($J)$J(r,t,{configurable:o===null&&s?s.configurable:!o,enumerable:n===null&&s?s.enumerable:!n,value:a,writable:i===null&&s?s.writable:!i});else if(l||!n&&!i&&!o)r[t]=a;else throw new ETe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var d7=N((WOe,t$)=>{"use strict";var h7=W0(),r$=function(){return!!h7};r$.hasArrayLengthDefineBug=function(){if(!h7)return null;try{return h7([],"length",{value:1}).length!==1}catch(r){return!0}};t$.exports=r$});var l$=N((jOe,o$)=>{"use strict";var DTe=jg(),a$=e$(),RTe=d7()(),n$=Vu(),i$=lv(),PTe=DTe("%Math.floor%");o$.exports=function(r,t){if(typeof r!="function")throw new i$("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||PTe(t)!==t)throw new i$("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in r&&n$){var o=n$(r,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(i=!1)}return(n||i||!a)&&(RTe?a$(r,"length",t,!0,!0):a$(r,"length",t)),r}});var J0=N((ZOe,Zg)=>{"use strict";var p7=sv(),Xg=jg(),FTe=l$(),NTe=lv(),f$=Xg("%Function.prototype.apply%"),c$=Xg("%Function.prototype.call%"),v$=Xg("%Reflect.apply%",!0)||p7.call(c$,f$),s$=W0(),zTe=Xg("%Math.max%");Zg.exports=function(r){if(typeof r!="function")throw new NTe("a function is required");var t=v$(p7,c$,arguments);return FTe(t,1+zTe(0,r.length-(arguments.length-1)),!0)};var u$=function(){return v$(p7,f$,arguments)};s$?s$(Zg.exports,"apply",{value:u$}):Zg.exports.apply=u$});var dv=N((XOe,p$)=>{"use strict";var h$=jg(),d$=J0(),ITe=d$(h$("String.prototype.indexOf"));p$.exports=function(r,t){var a=h$(r,!!t);return typeof a=="function"&&ITe(r,".prototype.")>-1?d$(a):a}});var g$=N((JOe,m$)=>{"use strict";var OTe=V0()(),BTe=dv(),y7=BTe("Object.prototype.toString"),Jg=function(r){return OTe&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:y7(r)==="[object Arguments]"},y$=function(r){return Jg(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&y7(r)!=="[object Array]"&&y7(r.callee)==="[object Function]"},HTe=function(){return Jg(arguments)}();Jg.isLegacyArguments=y$;m$.exports=HTe?Jg:y$});var _$=N(($Oe,x$)=>{"use strict";var UTe=Object.prototype.toString,GTe=Function.prototype.toString,YTe=/^\s*(?:function)?\*/,b$=V0()(),m7=Object.getPrototypeOf,VTe=function(){if(!b$)return!1;try{return Function("return function*() {}")()}catch(e){}},g7;x$.exports=function(r){if(typeof r!="function")return!1;if(YTe.test(GTe.call(r)))return!0;if(!b$){var t=UTe.call(r);return t==="[object GeneratorFunction]"}if(!m7)return!1;if(typeof g7=="undefined"){var a=VTe();g7=a?m7(a):!1}return m7(r)===g7}});var M$=N((KOe,A$)=>{"use strict";var T$=Function.prototype.toString,pv=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,x7,$g;if(typeof pv=="function"&&typeof Object.defineProperty=="function")try{x7=Object.defineProperty({},"length",{get:function(){throw $g}}),$g={},pv(function(){throw 42},null,x7)}catch(e){e!==$g&&(pv=null)}else pv=null;var WTe=/^\s*class\b/,_7=function(r){try{var t=T$.call(r);return WTe.test(t)}catch(a){return!1}},b7=function(r){try{return _7(r)?!1:(T$.call(r),!0)}catch(t){return!1}},Kg=Object.prototype.toString,jTe="[object Object]",ZTe="[object Function]",XTe="[object GeneratorFunction]",JTe="[object HTMLAllCollection]",$Te="[object HTML document.all class]",KTe="[object HTMLCollection]",QTe=typeof Symbol=="function"&&!!Symbol.toStringTag,e8e=!(0 in[,]),w7=function(){return!1};typeof document=="object"&&(w$=document.all,Kg.call(w$)===Kg.call(document.all)&&(w7=function(r){if((e8e||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=Kg.call(r);return(t===JTe||t===$Te||t===KTe||t===jTe)&&r("")==null}catch(a){}return!1}));var w$;A$.exports=pv?function(r){if(w7(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{pv(r,null,x7)}catch(t){if(t!==$g)return!1}return!_7(r)&&b7(r)}:function(r){if(w7(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(QTe)return b7(r);if(_7(r))return!1;var t=Kg.call(r);return t!==ZTe&&t!==XTe&&!/^\[object HTML/.test(t)?!1:b7(r)}});var T7=N((QOe,S$)=>{"use strict";var r8e=M$(),t8e=Object.prototype.toString,k$=Object.prototype.hasOwnProperty,a8e=function(r,t,a){for(var n=0,i=r.length;n=3&&(n=a),t8e.call(r)==="[object Array]"?a8e(r,t,n):typeof r=="string"?n8e(r,t,n):i8e(r,t,n)};S$.exports=o8e});var M7=N((eBe,q$)=>{"use strict";var A7=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],l8e=typeof globalThis=="undefined"?window:globalThis;q$.exports=function(){for(var r=[],t=0;t{"use strict";var e2=T7(),s8e=M7(),L$=J0(),q7=dv(),Qg=Vu(),u8e=q7("Object.prototype.toString"),E$=V0()(),C$=typeof globalThis=="undefined"?window:globalThis,S7=s8e(),L7=q7("String.prototype.slice"),k7=Object.getPrototypeOf,f8e=q7("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1?t:t!=="Object"?!1:v8e(r)}return Qg?c8e(r):null}});var O$=N((tBe,I$)=>{"use strict";var P$=T7(),h8e=M7(),E7=dv(),d8e=E7("Object.prototype.toString"),F$=V0()(),t2=Vu(),p8e=typeof globalThis=="undefined"?window:globalThis,N$=h8e(),y8e=E7("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1}return t2?g8e(r):!1}});var P7=N(ot=>{"use strict";var b8e=g$(),x8e=_$(),mo=R$(),B$=O$();function yv(e){return e.call.bind(e)}var H$=typeof BigInt!="undefined",U$=typeof Symbol!="undefined",zi=yv(Object.prototype.toString),_8e=yv(Number.prototype.valueOf),w8e=yv(String.prototype.valueOf),T8e=yv(Boolean.prototype.valueOf);H$&&(G$=yv(BigInt.prototype.valueOf));var G$;U$&&(Y$=yv(Symbol.prototype.valueOf));var Y$;function K0(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch(t){return!1}}ot.isArgumentsObject=b8e;ot.isGeneratorFunction=x8e;ot.isTypedArray=B$;function A8e(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}ot.isPromise=A8e;function M8e(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):B$(e)||W$(e)}ot.isArrayBufferView=M8e;function k8e(e){return mo(e)==="Uint8Array"}ot.isUint8Array=k8e;function S8e(e){return mo(e)==="Uint8ClampedArray"}ot.isUint8ClampedArray=S8e;function q8e(e){return mo(e)==="Uint16Array"}ot.isUint16Array=q8e;function L8e(e){return mo(e)==="Uint32Array"}ot.isUint32Array=L8e;function C8e(e){return mo(e)==="Int8Array"}ot.isInt8Array=C8e;function E8e(e){return mo(e)==="Int16Array"}ot.isInt16Array=E8e;function D8e(e){return mo(e)==="Int32Array"}ot.isInt32Array=D8e;function R8e(e){return mo(e)==="Float32Array"}ot.isFloat32Array=R8e;function P8e(e){return mo(e)==="Float64Array"}ot.isFloat64Array=P8e;function F8e(e){return mo(e)==="BigInt64Array"}ot.isBigInt64Array=F8e;function N8e(e){return mo(e)==="BigUint64Array"}ot.isBigUint64Array=N8e;function a2(e){return zi(e)==="[object Map]"}a2.working=typeof Map!="undefined"&&a2(new Map);function z8e(e){return typeof Map=="undefined"?!1:a2.working?a2(e):e instanceof Map}ot.isMap=z8e;function n2(e){return zi(e)==="[object Set]"}n2.working=typeof Set!="undefined"&&n2(new Set);function I8e(e){return typeof Set=="undefined"?!1:n2.working?n2(e):e instanceof Set}ot.isSet=I8e;function i2(e){return zi(e)==="[object WeakMap]"}i2.working=typeof WeakMap!="undefined"&&i2(new WeakMap);function O8e(e){return typeof WeakMap=="undefined"?!1:i2.working?i2(e):e instanceof WeakMap}ot.isWeakMap=O8e;function R7(e){return zi(e)==="[object WeakSet]"}R7.working=typeof WeakSet!="undefined"&&R7(new WeakSet);function B8e(e){return R7(e)}ot.isWeakSet=B8e;function o2(e){return zi(e)==="[object ArrayBuffer]"}o2.working=typeof ArrayBuffer!="undefined"&&o2(new ArrayBuffer);function V$(e){return typeof ArrayBuffer=="undefined"?!1:o2.working?o2(e):e instanceof ArrayBuffer}ot.isArrayBuffer=V$;function l2(e){return zi(e)==="[object DataView]"}l2.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&l2(new DataView(new ArrayBuffer(1),0,1));function W$(e){return typeof DataView=="undefined"?!1:l2.working?l2(e):e instanceof DataView}ot.isDataView=W$;var D7=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function $0(e){return zi(e)==="[object SharedArrayBuffer]"}function j$(e){return typeof D7=="undefined"?!1:(typeof $0.working=="undefined"&&($0.working=$0(new D7)),$0.working?$0(e):e instanceof D7)}ot.isSharedArrayBuffer=j$;function H8e(e){return zi(e)==="[object AsyncFunction]"}ot.isAsyncFunction=H8e;function U8e(e){return zi(e)==="[object Map Iterator]"}ot.isMapIterator=U8e;function G8e(e){return zi(e)==="[object Set Iterator]"}ot.isSetIterator=G8e;function Y8e(e){return zi(e)==="[object Generator]"}ot.isGeneratorObject=Y8e;function V8e(e){return zi(e)==="[object WebAssembly.Module]"}ot.isWebAssemblyCompiledModule=V8e;function Z$(e){return K0(e,_8e)}ot.isNumberObject=Z$;function X$(e){return K0(e,w8e)}ot.isStringObject=X$;function J$(e){return K0(e,T8e)}ot.isBooleanObject=J$;function $$(e){return H$&&K0(e,G$)}ot.isBigIntObject=$$;function K$(e){return U$&&K0(e,Y$)}ot.isSymbolObject=K$;function W8e(e){return Z$(e)||X$(e)||J$(e)||$$(e)||K$(e)}ot.isBoxedPrimitive=W8e;function j8e(e){return typeof Uint8Array!="undefined"&&(V$(e)||j$(e))}ot.isAnyArrayBuffer=j8e;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(ot,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var F7=N((nBe,Q$)=>{Q$.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var H7=N(lt=>{var eK=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),O7(r)?t.showHidden=r:r&<._extend(t,r),Zu(t.showHidden)&&(t.showHidden=!1),Zu(t.depth)&&(t.depth=2),Zu(t.colors)&&(t.colors=!1),Zu(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=X8e),c2(t,e,t.depth)}lt.inspect=_s;_s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};_s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function X8e(e,r){var t=_s.styles[r];return t?"\x1B["+_s.colors[t][0]+"m"+e+"\x1B["+_s.colors[t][1]+"m":e}function J8e(e,r){return e}function $8e(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function c2(e,r,t){if(e.customInspect&&r&&f2(r.inspect)&&r.inspect!==lt.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return d2(a)||(a=c2(e,a,t)),a}var n=K8e(e,r);if(n)return n;var i=Object.keys(r),o=$8e(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),ed(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return N7(r);if(i.length===0){if(f2(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(Q0(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(v2(r))return e.stylize(Date.prototype.toString.call(r),"date");if(ed(r))return N7(r)}var s="",u=!1,f=["{","}"];if(tK(r)&&(u=!0,f=["[","]"]),f2(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(Q0(r)&&(s=" "+RegExp.prototype.toString.call(r)),v2(r)&&(s=" "+Date.prototype.toUTCString.call(r)),ed(r)&&(s=" "+N7(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return Q0(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=Q8e(e,r,t,o,i):v=i.map(function(d){return I7(e,r,t,o,d,u)}),e.seen.pop(),eAe(v,s,f)}function K8e(e,r){if(Zu(r))return e.stylize("undefined","undefined");if(d2(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(aK(r))return e.stylize(""+r,"number");if(O7(r))return e.stylize(""+r,"boolean");if(h2(r))return e.stylize("null","null")}function N7(e){return"["+Error.prototype.toString.call(e)+"]"}function Q8e(e,r,t,a,n){for(var i=[],o=0,l=r.length;o-1&&(i?l=l.split(` `).map(function(u){return" "+u}).join(` `).slice(2):l=` `+l.split(` `).map(function(u){return" "+u}).join(` -`))):l=e.stylize("[Circular]","special")),Zu(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function X8e(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(` +`))):l=e.stylize("[Circular]","special")),Zu(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function eAe(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(` `)>=0&&a++,i+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?t[0]+(r===""?"":r+` `)+" "+e.join(`, - `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}lt.types=R7();function rK(e){return Array.isArray(e)}lt.isArray=rK;function I7(e){return typeof e=="boolean"}lt.isBoolean=I7;function h2(e){return e===null}lt.isNull=h2;function J8e(e){return e==null}lt.isNullOrUndefined=J8e;function tK(e){return typeof e=="number"}lt.isNumber=tK;function d2(e){return typeof e=="string"}lt.isString=d2;function $8e(e){return typeof e=="symbol"}lt.isSymbol=$8e;function Zu(e){return e===void 0}lt.isUndefined=Zu;function J0(e){return mv(e)&&O7(e)==="[object RegExp]"}lt.isRegExp=J0;lt.types.isRegExp=J0;function mv(e){return typeof e=="object"&&e!==null}lt.isObject=mv;function v2(e){return mv(e)&&O7(e)==="[object Date]"}lt.isDate=v2;lt.types.isDate=v2;function $0(e){return mv(e)&&(O7(e)==="[object Error]"||e instanceof Error)}lt.isError=$0;lt.types.isNativeError=$0;function f2(e){return typeof e=="function"}lt.isFunction=f2;function K8e(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}lt.isPrimitive=K8e;lt.isBuffer=P7();function O7(e){return Object.prototype.toString.call(e)}function N7(e){return e<10?"0"+e.toString(10):e.toString(10)}var Q8e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function eAe(){var e=new Date,r=[N7(e.getHours()),N7(e.getMinutes()),N7(e.getSeconds())].join(":");return[e.getDate(),Q8e[e.getMonth()],r].join(" ")}lt.log=function(){console.log("%s - %s",eAe(),lt.format.apply(lt,arguments))};lt.inherits=kl();lt._extend=function(e,r){if(!r||!mv(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function aK(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var Wu=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;lt.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(Wu&&r[Wu]){var t=r[Wu];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,Wu,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var a,n,i=new Promise(function(s,u){a=s,n=u}),o=[],l=0;l{"use strict";function nK(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function aAe(e){for(var r=1;r0?this.tail.next=a:this.head=a,this.tail=a,++this.length}},{key:"unshift",value:function(t){var a={data:t,next:this.head};this.length===0&&(this.tail=a),this.head=a,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var a=this.head,n=""+a.data;a=a.next;)n+=t+a.data;return n}},{key:"concat",value:function(t){if(this.length===0)return p2.alloc(0);for(var a=p2.allocUnsafe(t>>>0),n=this.head,i=0;n;)fAe(n.data,a,i),i+=n.data.length,n=n.next;return a}},{key:"consume",value:function(t,a){var n;return to.length?o.length:t;if(l===o.length?i+=o:i+=o.slice(0,t),t-=l,t===0){l===o.length?(++n,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=o.slice(l));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(t){var a=p2.allocUnsafe(t),n=this.head,i=1;for(n.data.copy(a),t-=n.data.length;n=n.next;){var o=n.data,l=t>o.length?o.length:t;if(o.copy(a,a.length-t,0,l),t-=l,t===0){l===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(l));break}++i}return this.length-=i,a}},{key:uAe,value:function(t,a){return H7(this,aAe({},a,{depth:0,customInspect:!1}))}}]),e}()});var G7=N((aBe,uK)=>{"use strict";function cAe(e,r){var t=this,a=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return a||n?(r?r(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(U7,this,e)):process.nextTick(U7,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(i){!r&&i?t._writableState?t._writableState.errorEmitted?process.nextTick(y2,t):(t._writableState.errorEmitted=!0,process.nextTick(sK,t,i)):process.nextTick(sK,t,i):r?(process.nextTick(y2,t),r(i)):process.nextTick(y2,t)}),this)}function sK(e,r){U7(e,r),y2(e)}function y2(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function vAe(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function U7(e,r){e.emit("error",r)}function hAe(e,r){var t=e._readableState,a=e._writableState;t&&t.autoDestroy||a&&a.autoDestroy?e.destroy(r):e.emit("error",r)}uK.exports={destroy:cAe,undestroy:vAe,errorOrDestroy:hAe}});var Xu=N((nBe,vK)=>{"use strict";function dAe(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}var cK={};function Ii(e,r,t){t||(t=Error);function a(i,o,l){return typeof r=="string"?r:r(i,o,l)}var n=function(i){dAe(o,i);function o(l,s,u){return i.call(this,a(l,s,u))||this}return o}(t);n.prototype.name=t.name,n.prototype.code=e,cK[e]=n}function fK(e,r){if(Array.isArray(e)){var t=e.length;return e=e.map(function(a){return String(a)}),t>2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function pAe(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function yAe(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function mAe(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}Ii("ERR_INVALID_OPT_VALUE",function(e,r){return'The value "'+r+'" is invalid for option "'+e+'"'},TypeError);Ii("ERR_INVALID_ARG_TYPE",function(e,r,t){var a;typeof r=="string"&&pAe(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(yAe(e," argument"))n="The ".concat(e," ").concat(a," ").concat(fK(r,"type"));else{var i=mAe(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(fK(r,"type"))}return n+=". Received type ".concat(typeof t),n},TypeError);Ii("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Ii("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Ii("ERR_STREAM_PREMATURE_CLOSE","Premature close");Ii("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Ii("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Ii("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Ii("ERR_STREAM_WRITE_AFTER_END","write after end");Ii("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ii("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Ii("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");vK.exports.codes=cK});var Y7=N((iBe,hK)=>{"use strict";var gAe=Xu().codes.ERR_INVALID_OPT_VALUE;function bAe(e,r,t){return e.highWaterMark!=null?e.highWaterMark:r?e[t]:null}function xAe(e,r,t,a){var n=bAe(r,a,t);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var i=a?t:"highWaterMark";throw new gAe(i,n)}return Math.floor(n)}return e.objectMode?16:16*1024}hK.exports={getHighWaterMark:xAe}});var pK=N((oBe,dK)=>{dK.exports=_Ae;function _Ae(e,r){if(V7("noDeprecation"))return e;var t=!1;function a(){if(!t){if(V7("throwDeprecation"))throw new Error(r);V7("traceDeprecation")?console.trace(r):console.warn(r),t=!0}return e.apply(this,arguments)}return a}function V7(e){try{if(!window.localStorage)return!1}catch(t){return!1}var r=window.localStorage[e];return r==null?!1:String(r).toLowerCase()==="true"}});var Z7=N((lBe,_K)=>{"use strict";_K.exports=la;function mK(e){var r=this;this.next=null,this.entry=null,this.finish=function(){ZAe(r,e)}}var gv;la.WritableState=Q0;var wAe={deprecate:pK()},gK=W6(),g2=ov().Buffer,TAe=window.Uint8Array||function(){};function AAe(e){return g2.from(e)}function MAe(e){return g2.isBuffer(e)||e instanceof TAe}var W7=G7(),kAe=Y7(),SAe=kAe.getHighWaterMark,ws=Xu().codes,qAe=ws.ERR_INVALID_ARG_TYPE,LAe=ws.ERR_METHOD_NOT_IMPLEMENTED,CAe=ws.ERR_MULTIPLE_CALLBACK,EAe=ws.ERR_STREAM_CANNOT_PIPE,DAe=ws.ERR_STREAM_DESTROYED,RAe=ws.ERR_STREAM_NULL_VALUES,PAe=ws.ERR_STREAM_WRITE_AFTER_END,FAe=ws.ERR_UNKNOWN_ENCODING,bv=W7.errorOrDestroy;kl()(la,gK);function NAe(){}function Q0(e,r,t){gv=gv||Ju(),e=e||{},typeof t!="boolean"&&(t=r instanceof gv),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=SAe(this,e,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){GAe(r,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new mK(this)}Q0.prototype.getBuffer=function(){for(var r=this.bufferedRequest,t=[];r;)t.push(r),r=r.next;return t};(function(){try{Object.defineProperty(Q0.prototype,"buffer",{get:wAe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var m2;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(m2=Function.prototype[Symbol.hasInstance],Object.defineProperty(la,Symbol.hasInstance,{value:function(r){return m2.call(this,r)?!0:this!==la?!1:r&&r._writableState instanceof Q0}})):m2=function(r){return r instanceof this};function la(e){gv=gv||Ju();var r=this instanceof gv;if(!r&&!m2.call(la,this))return new la(e);this._writableState=new Q0(e,this,r),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),gK.call(this)}la.prototype.pipe=function(){bv(this,new EAe)};function zAe(e,r){var t=new PAe;bv(e,t),process.nextTick(r,t)}function IAe(e,r,t,a){var n;return t===null?n=new RAe:typeof t!="string"&&!r.objectMode&&(n=new qAe("chunk",["string","Buffer"],t)),n?(bv(e,n),process.nextTick(a,n),!1):!0}la.prototype.write=function(e,r,t){var a=this._writableState,n=!1,i=!a.objectMode&&MAe(e);return i&&!g2.isBuffer(e)&&(e=AAe(e)),typeof r=="function"&&(t=r,r=null),i?r="buffer":r||(r=a.defaultEncoding),typeof t!="function"&&(t=NAe),a.ending?zAe(this,t):(i||IAe(this,a,e,t))&&(a.pendingcb++,n=BAe(this,a,i,e,r,t)),n};la.prototype.cork=function(){this._writableState.corked++};la.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&bK(this,e))};la.prototype.setDefaultEncoding=function(r){if(typeof r=="string"&&(r=r.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new FAe(r);return this._writableState.defaultEncoding=r,this};Object.defineProperty(la.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function OAe(e,r,t){return!e.objectMode&&e.decodeStrings!==!1&&typeof r=="string"&&(r=g2.from(r,t)),r}Object.defineProperty(la.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function BAe(e,r,t,a,n,i){if(!t){var o=OAe(r,a,n);a!==o&&(t=!0,n="buffer",a=o)}var l=r.objectMode?1:a.length;r.length+=l;var s=r.length{"use strict";var XAe=Object.keys||function(e){var r=[];for(var t in e)r.push(t);return r};TK.exports=Zo;var wK=$7(),J7=Z7();kl()(Zo,wK);for(X7=XAe(J7.prototype),b2=0;b2{var _2=ov(),Xo=_2.Buffer;function AK(e,r){for(var t in e)r[t]=e[t]}Xo.from&&Xo.alloc&&Xo.allocUnsafe&&Xo.allocUnsafeSlow?MK.exports=_2:(AK(_2,K7),K7.Buffer=$u);function $u(e,r,t){return Xo(e,r,t)}$u.prototype=Object.create(Xo.prototype);AK(Xo,$u);$u.from=function(e,r,t){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Xo(e,r,t)};$u.alloc=function(e,r,t){if(typeof e!="number")throw new TypeError("Argument must be a number");var a=Xo(e);return r!==void 0?typeof t=="string"?a.fill(r,t):a.fill(r):a.fill(0),a};$u.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Xo(e)};$u.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return _2.SlowBuffer(e)}});var rT=N(qK=>{"use strict";var eT=kK().Buffer,SK=eT.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function KAe(e){if(!e)return"utf8";for(var r;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(r)return;e=(""+e).toLowerCase(),r=!0}}function QAe(e){var r=KAe(e);if(typeof r!="string"&&(eT.isEncoding===SK||!SK(e)))throw new Error("Unknown encoding: "+e);return r||e}qK.StringDecoder=ed;function ed(e){this.encoding=QAe(e);var r;switch(this.encoding){case"utf16le":this.text=iMe,this.end=oMe,r=4;break;case"utf8":this.fillLast=tMe,r=4;break;case"base64":this.text=lMe,this.end=sMe,r=3;break;default:this.write=uMe,this.end=fMe;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=eT.allocUnsafe(r)}ed.prototype.write=function(e){if(e.length===0)return"";var r,t;if(this.lastNeed){if(r=this.fillLast(e),r===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function eMe(e,r,t){var a=r.length-1;if(a=0?(n>0&&(e.lastNeed=n-1),n):--a=0?(n>0&&(e.lastNeed=n-2),n):--a=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function rMe(e,r,t){if((r[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&r.length>1){if((r[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&r.length>2&&(r[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function tMe(e){var r=this.lastTotal-this.lastNeed,t=rMe(this,e,r);if(t!==void 0)return t;if(this.lastNeed<=e.length)return e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,r,0,e.length),this.lastNeed-=e.length}function aMe(e,r){var t=eMe(this,e,r);if(!this.lastNeed)return e.toString("utf8",r);this.lastTotal=t;var a=e.length-(t-this.lastNeed);return e.copy(this.lastChar,0,a),e.toString("utf8",r,a)}function nMe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"\uFFFD":r}function iMe(e,r){if((e.length-r)%2===0){var t=e.toString("utf16le",r);if(t){var a=t.charCodeAt(t.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",r,e.length-1)}function oMe(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,t)}return r}function lMe(e,r){var t=(e.length-r)%3;return t===0?e.toString("base64",r):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",r,e.length-t))}function sMe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function uMe(e){return e.toString(this.encoding)}function fMe(e){return e&&e.length?this.write(e):""}});var w2=N((fBe,EK)=>{"use strict";var LK=Xu().codes.ERR_STREAM_PREMATURE_CLOSE;function cMe(e){var r=!1;return function(){if(!r){r=!0;for(var t=arguments.length,a=new Array(t),n=0;n{"use strict";var T2;function Ts(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var dMe=w2(),As=Symbol("lastResolve"),Ku=Symbol("lastReject"),rd=Symbol("error"),A2=Symbol("ended"),Qu=Symbol("lastPromise"),tT=Symbol("handlePromise"),ef=Symbol("stream");function Ms(e,r){return{value:e,done:r}}function pMe(e){var r=e[As];if(r!==null){var t=e[ef].read();t!==null&&(e[Qu]=null,e[As]=null,e[Ku]=null,r(Ms(t,!1)))}}function yMe(e){process.nextTick(pMe,e)}function mMe(e,r){return function(t,a){e.then(function(){if(r[A2]){t(Ms(void 0,!0));return}r[tT](t,a)},a)}}var gMe=Object.getPrototypeOf(function(){}),bMe=Object.setPrototypeOf((T2={get stream(){return this[ef]},next:function(){var r=this,t=this[rd];if(t!==null)return Promise.reject(t);if(this[A2])return Promise.resolve(Ms(void 0,!0));if(this[ef].destroyed)return new Promise(function(o,l){process.nextTick(function(){r[rd]?l(r[rd]):o(Ms(void 0,!0))})});var a=this[Qu],n;if(a)n=new Promise(mMe(a,this));else{var i=this[ef].read();if(i!==null)return Promise.resolve(Ms(i,!1));n=new Promise(this[tT])}return this[Qu]=n,n}},Ts(T2,Symbol.asyncIterator,function(){return this}),Ts(T2,"return",function(){var r=this;return new Promise(function(t,a){r[ef].destroy(null,function(n){if(n){a(n);return}t(Ms(void 0,!0))})})}),T2),gMe),xMe=function(r){var t,a=Object.create(bMe,(t={},Ts(t,ef,{value:r,writable:!0}),Ts(t,As,{value:null,writable:!0}),Ts(t,Ku,{value:null,writable:!0}),Ts(t,rd,{value:null,writable:!0}),Ts(t,A2,{value:r._readableState.endEmitted,writable:!0}),Ts(t,tT,{value:function(i,o){var l=a[ef].read();l?(a[Qu]=null,a[As]=null,a[Ku]=null,i(Ms(l,!1))):(a[As]=i,a[Ku]=o)},writable:!0}),t));return a[Qu]=null,dMe(r,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var i=a[Ku];i!==null&&(a[Qu]=null,a[As]=null,a[Ku]=null,i(n)),a[rd]=n;return}var o=a[As];o!==null&&(a[Qu]=null,a[As]=null,a[Ku]=null,o(Ms(void 0,!0))),a[A2]=!0}),r.on("readable",yMe.bind(null,a)),a};DK.exports=xMe});var FK=N((vBe,PK)=>{PK.exports=function(){throw new Error("Readable.from is not available in the browser")}});var $7=N((dBe,VK)=>{"use strict";VK.exports=gt;var xv;gt.ReadableState=OK;var hBe=Qs().EventEmitter,IK=function(r,t){return r.listeners(t).length},ad=W6(),M2=ov().Buffer,_Me=window.Uint8Array||function(){};function wMe(e){return M2.from(e)}function TMe(e){return M2.isBuffer(e)||e instanceof _Me}var aT=B7(),rt;aT&&aT.debuglog?rt=aT.debuglog("stream"):rt=function(){};var AMe=lK(),fT=G7(),MMe=Y7(),kMe=MMe.getHighWaterMark,k2=Xu().codes,SMe=k2.ERR_INVALID_ARG_TYPE,qMe=k2.ERR_STREAM_PUSH_AFTER_EOF,LMe=k2.ERR_METHOD_NOT_IMPLEMENTED,CMe=k2.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,_v,nT,iT;kl()(gt,ad);var td=fT.errorOrDestroy,oT=["error","close","destroy","pause","resume"];function EMe(e,r,t){if(typeof e.prependListener=="function")return e.prependListener(r,t);!e._events||!e._events[r]?e.on(r,t):Array.isArray(e._events[r])?e._events[r].unshift(t):e._events[r]=[t,e._events[r]]}function OK(e,r,t){xv=xv||Ju(),e=e||{},typeof t!="boolean"&&(t=r instanceof xv),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=kMe(this,e,"readableHighWaterMark",t),this.buffer=new AMe,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(_v||(_v=rT().StringDecoder),this.decoder=new _v(e.encoding),this.encoding=e.encoding)}function gt(e){if(xv=xv||Ju(),!(this instanceof gt))return new gt(e);var r=this instanceof xv;this._readableState=new OK(e,this,r),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),ad.call(this)}Object.defineProperty(gt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(r){this._readableState&&(this._readableState.destroyed=r)}});gt.prototype.destroy=fT.destroy;gt.prototype._undestroy=fT.undestroy;gt.prototype._destroy=function(e,r){r(e)};gt.prototype.push=function(e,r){var t=this._readableState,a;return t.objectMode?a=!0:typeof e=="string"&&(r=r||t.defaultEncoding,r!==t.encoding&&(e=M2.from(e,r),r=""),a=!0),BK(this,e,r,!1,a)};gt.prototype.unshift=function(e){return BK(this,e,null,!0,!1)};function BK(e,r,t,a,n){rt("readableAddChunk",r);var i=e._readableState;if(r===null)i.reading=!1,PMe(e,i);else{var o;if(n||(o=DMe(i,r)),o)td(e,o);else if(i.objectMode||r&&r.length>0)if(typeof r!="string"&&!i.objectMode&&Object.getPrototypeOf(r)!==M2.prototype&&(r=wMe(r)),a)i.endEmitted?td(e,new CMe):lT(e,i,r,!0);else if(i.ended)td(e,new qMe);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!t?(r=i.decoder.write(r),i.objectMode||r.length!==0?lT(e,i,r,!1):uT(e,i)):lT(e,i,r,!1)}else a||(i.reading=!1,uT(e,i))}return!i.ended&&(i.length=NK?e=NK:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function zK(e,r){return e<=0||r.length===0&&r.ended?0:r.objectMode?1:e!==e?r.flowing&&r.length?r.buffer.head.data.length:r.length:(e>r.highWaterMark&&(r.highWaterMark=RMe(e)),e<=r.length?e:r.ended?r.length:(r.needReadable=!0,0))}gt.prototype.read=function(e){rt("read",e),e=parseInt(e,10);var r=this._readableState,t=e;if(e!==0&&(r.emittedReadable=!1),e===0&&r.needReadable&&((r.highWaterMark!==0?r.length>=r.highWaterMark:r.length>0)||r.ended))return rt("read: emitReadable",r.length,r.ended),r.length===0&&r.ended?sT(this):S2(this),null;if(e=zK(e,r),e===0&&r.ended)return r.length===0&&sT(this),null;var a=r.needReadable;rt("need readable",a),(r.length===0||r.length-e0?n=GK(e,r):n=null,n===null?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),r.length===0&&(r.ended||(r.needReadable=!0),t!==e&&r.ended&&sT(this)),n!==null&&this.emit("data",n),n};function PMe(e,r){if(rt("onEofChunk"),!r.ended){if(r.decoder){var t=r.decoder.end();t&&t.length&&(r.buffer.push(t),r.length+=r.objectMode?1:t.length)}r.ended=!0,r.sync?S2(e):(r.needReadable=!1,r.emittedReadable||(r.emittedReadable=!0,HK(e)))}}function S2(e){var r=e._readableState;rt("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(rt("emitReadable",r.flowing),r.emittedReadable=!0,process.nextTick(HK,e))}function HK(e){var r=e._readableState;rt("emitReadable_",r.destroyed,r.length,r.ended),!r.destroyed&&(r.length||r.ended)&&(e.emit("readable"),r.emittedReadable=!1),r.needReadable=!r.flowing&&!r.ended&&r.length<=r.highWaterMark,cT(e)}function uT(e,r){r.readingMore||(r.readingMore=!0,process.nextTick(FMe,e,r))}function FMe(e,r){for(;!r.reading&&!r.ended&&(r.length1&&YK(a.pipes,e)!==-1)&&!u&&(rt("false write response, pause",a.awaitDrain),a.awaitDrain++),t.pause())}function v(y){rt("onerror",y),m(),e.removeListener("error",v),IK(e,"error")===0&&td(e,y)}EMe(e,"error",v);function d(){e.removeListener("finish",p),m()}e.once("close",d);function p(){rt("onfinish"),e.removeListener("close",d),m()}e.once("finish",p);function m(){rt("unpipe"),t.unpipe(e)}return e.emit("pipe",t),a.flowing||(rt("pipe resume"),t.resume()),e};function NMe(e){return function(){var t=e._readableState;rt("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&IK(e,"data")&&(t.flowing=!0,cT(e))}}gt.prototype.unpipe=function(e){var r=this._readableState,t={hasUnpiped:!1};if(r.pipesCount===0)return this;if(r.pipesCount===1)return e&&e!==r.pipes?this:(e||(e=r.pipes),r.pipes=null,r.pipesCount=0,r.flowing=!1,e&&e.emit("unpipe",this,t),this);if(!e){var a=r.pipes,n=r.pipesCount;r.pipes=null,r.pipesCount=0,r.flowing=!1;for(var i=0;i0,a.flowing!==!1&&this.resume()):e==="readable"&&!a.endEmitted&&!a.readableListening&&(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,rt("on readable",a.length,a.reading),a.length?S2(this):a.reading||process.nextTick(zMe,this)),t};gt.prototype.addListener=gt.prototype.on;gt.prototype.removeListener=function(e,r){var t=ad.prototype.removeListener.call(this,e,r);return e==="readable"&&process.nextTick(UK,this),t};gt.prototype.removeAllListeners=function(e){var r=ad.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(UK,this),r};function UK(e){var r=e._readableState;r.readableListening=e.listenerCount("readable")>0,r.resumeScheduled&&!r.paused?r.flowing=!0:e.listenerCount("data")>0&&e.resume()}function zMe(e){rt("readable nexttick read 0"),e.read(0)}gt.prototype.resume=function(){var e=this._readableState;return e.flowing||(rt("resume"),e.flowing=!e.readableListening,IMe(this,e)),e.paused=!1,this};function IMe(e,r){r.resumeScheduled||(r.resumeScheduled=!0,process.nextTick(OMe,e,r))}function OMe(e,r){rt("resume",r.reading),r.reading||e.read(0),r.resumeScheduled=!1,e.emit("resume"),cT(e),r.flowing&&!r.reading&&e.read(0)}gt.prototype.pause=function(){return rt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(rt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function cT(e){var r=e._readableState;for(rt("flow",r.flowing);r.flowing&&e.read()!==null;);}gt.prototype.wrap=function(e){var r=this,t=this._readableState,a=!1;e.on("end",function(){if(rt("wrapped end"),t.decoder&&!t.ended){var o=t.decoder.end();o&&o.length&&r.push(o)}r.push(null)}),e.on("data",function(o){if(rt("wrapped data"),t.decoder&&(o=t.decoder.write(o)),!(t.objectMode&&o==null)&&!(!t.objectMode&&(!o||!o.length))){var l=r.push(o);l||(a=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=function(l){return function(){return e[l].apply(e,arguments)}}(n));for(var i=0;i=r.length?(r.decoder?t=r.buffer.join(""):r.buffer.length===1?t=r.buffer.first():t=r.buffer.concat(r.length),r.buffer.clear()):t=r.buffer.consume(e,r.decoder),t}function sT(e){var r=e._readableState;rt("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,process.nextTick(BMe,r,e))}function BMe(e,r){if(rt("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,r.readable=!1,r.emit("end"),e.autoDestroy)){var t=r._writableState;(!t||t.autoDestroy&&t.finished)&&r.destroy()}}typeof Symbol=="function"&&(gt.from=function(e,r){return iT===void 0&&(iT=FK()),iT(gt,e,r)});function YK(e,r){for(var t=0,a=e.length;t{"use strict";WK.exports=ql;var q2=Xu().codes,HMe=q2.ERR_METHOD_NOT_IMPLEMENTED,UMe=q2.ERR_MULTIPLE_CALLBACK,GMe=q2.ERR_TRANSFORM_ALREADY_TRANSFORMING,YMe=q2.ERR_TRANSFORM_WITH_LENGTH_0,L2=Ju();kl()(ql,L2);function VMe(e,r){var t=this._transformState;t.transforming=!1;var a=t.writecb;if(a===null)return this.emit("error",new UMe);t.writechunk=null,t.writecb=null,r!=null&&this.push(r),a(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length{"use strict";XK.exports=nd;var ZK=vT();kl()(nd,ZK);function nd(e){if(!(this instanceof nd))return new nd(e);ZK.call(this,e)}nd.prototype._transform=function(e,r,t){t(null,e)}});var rQ=N((mBe,eQ)=>{"use strict";var hT;function WMe(e){var r=!1;return function(){r||(r=!0,e.apply(void 0,arguments))}}var QK=Xu().codes,ZMe=QK.ERR_MISSING_ARGS,XMe=QK.ERR_STREAM_DESTROYED;function $K(e){if(e)throw e}function JMe(e){return e.setHeader&&typeof e.abort=="function"}function $Me(e,r,t,a){a=WMe(a);var n=!1;e.on("close",function(){n=!0}),hT===void 0&&(hT=w2()),hT(e,{readable:r,writable:t},function(o){if(o)return a(o);n=!0,a()});var i=!1;return function(o){if(!n&&!i){if(i=!0,JMe(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();a(o||new XMe("pipe"))}}}function KK(e){e()}function KMe(e,r){return e.pipe(r)}function QMe(e){return!e.length||typeof e[e.length-1]!="function"?$K:e.pop()}function e9e(){for(var e=arguments.length,r=new Array(e),t=0;t0;return $Me(o,s,u,function(f){n||(n=f),f&&i.forEach(KK),!s&&(i.forEach(KK),a(n))})});return r.reduce(KMe)}eQ.exports=e9e});var aQ=N((gBe,tQ)=>{tQ.exports=Oi;var dT=Qs().EventEmitter,r9e=kl();r9e(Oi,dT);Oi.Readable=$7();Oi.Writable=Z7();Oi.Duplex=Ju();Oi.Transform=vT();Oi.PassThrough=JK();Oi.finished=w2();Oi.pipeline=rQ();Oi.Stream=Oi;function Oi(){dT.call(this)}Oi.prototype.pipe=function(e,r){var t=this;function a(f){e.writable&&e.write(f)===!1&&t.pause&&t.pause()}t.on("data",a);function n(){t.readable&&t.resume&&t.resume()}e.on("drain",n),!e._isStdio&&(!r||r.end!==!1)&&(t.on("end",o),t.on("close",l));var i=!1;function o(){i||(i=!0,e.end())}function l(){i||(i=!0,typeof e.destroy=="function"&&e.destroy())}function s(f){if(u(),dT.listenerCount(this,"error")===0)throw f}t.on("error",s),e.on("error",s);function u(){t.removeListener("data",a),e.removeListener("drain",n),t.removeListener("end",o),t.removeListener("close",l),t.removeListener("error",s),e.removeListener("error",s),t.removeListener("end",u),t.removeListener("close",u),e.removeListener("close",u)}return t.on("end",u),t.on("close",u),e.on("close",u),e.emit("pipe",t),e}});var Tv=N(st=>{var nQ=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),gT(r)?t.showHidden=r:r&&st._extend(t,r),tf(t.showHidden)&&(t.showHidden=!1),tf(t.depth)&&(t.depth=2),tf(t.colors)&&(t.colors=!1),tf(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=a9e),R2(t,e,t.depth)}st.inspect=ks;ks.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};ks.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function a9e(e,r){var t=ks.styles[r];return t?"\x1B["+ks.colors[t][0]+"m"+e+"\x1B["+ks.colors[t][1]+"m":e}function n9e(e,r){return e}function i9e(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function R2(e,r,t){if(e.customInspect&&r&&D2(r.inspect)&&r.inspect!==st.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return N2(a)||(a=R2(e,a,t)),a}var n=o9e(e,r);if(n)return n;var i=Object.keys(r),o=i9e(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),od(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return pT(r);if(i.length===0){if(D2(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(id(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(P2(r))return e.stylize(Date.prototype.toString.call(r),"date");if(od(r))return pT(r)}var s="",u=!1,f=["{","}"];if(oQ(r)&&(u=!0,f=["[","]"]),D2(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(id(r)&&(s=" "+RegExp.prototype.toString.call(r)),P2(r)&&(s=" "+Date.prototype.toUTCString.call(r)),od(r)&&(s=" "+pT(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return id(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=l9e(e,r,t,o,i):v=i.map(function(d){return mT(e,r,t,o,d,u)}),e.seen.pop(),s9e(v,s,f)}function o9e(e,r){if(tf(r))return e.stylize("undefined","undefined");if(N2(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(lQ(r))return e.stylize(""+r,"number");if(gT(r))return e.stylize(""+r,"boolean");if(F2(r))return e.stylize("null","null")}function pT(e){return"["+Error.prototype.toString.call(e)+"]"}function l9e(e,r,t,a,n){for(var i=[],o=0,l=r.length;o{"use strict";function iK(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function sAe(e){for(var r=1;r0?this.tail.next=a:this.head=a,this.tail=a,++this.length}},{key:"unshift",value:function(t){var a={data:t,next:this.head};this.length===0&&(this.tail=a),this.head=a,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var a=this.head,n=""+a.data;a=a.next;)n+=t+a.data;return n}},{key:"concat",value:function(t){if(this.length===0)return p2.alloc(0);for(var a=p2.allocUnsafe(t>>>0),n=this.head,i=0;n;)pAe(n.data,a,i),i+=n.data.length,n=n.next;return a}},{key:"consume",value:function(t,a){var n;return to.length?o.length:t;if(l===o.length?i+=o:i+=o.slice(0,t),t-=l,t===0){l===o.length?(++n,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=o.slice(l));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(t){var a=p2.allocUnsafe(t),n=this.head,i=1;for(n.data.copy(a),t-=n.data.length;n=n.next;){var o=n.data,l=t>o.length?o.length:t;if(o.copy(a,a.length-t,0,l),t-=l,t===0){l===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(l));break}++i}return this.length-=i,a}},{key:dAe,value:function(t,a){return U7(this,sAe({},a,{depth:0,customInspect:!1}))}}]),e}()});var Y7=N((lBe,fK)=>{"use strict";function yAe(e,r){var t=this,a=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return a||n?(r?r(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(G7,this,e)):process.nextTick(G7,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(i){!r&&i?t._writableState?t._writableState.errorEmitted?process.nextTick(y2,t):(t._writableState.errorEmitted=!0,process.nextTick(uK,t,i)):process.nextTick(uK,t,i):r?(process.nextTick(y2,t),r(i)):process.nextTick(y2,t)}),this)}function uK(e,r){G7(e,r),y2(e)}function y2(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function mAe(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function G7(e,r){e.emit("error",r)}function gAe(e,r){var t=e._readableState,a=e._writableState;t&&t.autoDestroy||a&&a.autoDestroy?e.destroy(r):e.emit("error",r)}fK.exports={destroy:yAe,undestroy:mAe,errorOrDestroy:gAe}});var Xu=N((sBe,hK)=>{"use strict";function bAe(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}var vK={};function Ii(e,r,t){t||(t=Error);function a(i,o,l){return typeof r=="string"?r:r(i,o,l)}var n=function(i){bAe(o,i);function o(l,s,u){return i.call(this,a(l,s,u))||this}return o}(t);n.prototype.name=t.name,n.prototype.code=e,vK[e]=n}function cK(e,r){if(Array.isArray(e)){var t=e.length;return e=e.map(function(a){return String(a)}),t>2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function xAe(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function _Ae(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function wAe(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}Ii("ERR_INVALID_OPT_VALUE",function(e,r){return'The value "'+r+'" is invalid for option "'+e+'"'},TypeError);Ii("ERR_INVALID_ARG_TYPE",function(e,r,t){var a;typeof r=="string"&&xAe(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(_Ae(e," argument"))n="The ".concat(e," ").concat(a," ").concat(cK(r,"type"));else{var i=wAe(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(cK(r,"type"))}return n+=". Received type ".concat(typeof t),n},TypeError);Ii("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Ii("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Ii("ERR_STREAM_PREMATURE_CLOSE","Premature close");Ii("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Ii("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Ii("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Ii("ERR_STREAM_WRITE_AFTER_END","write after end");Ii("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ii("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Ii("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");hK.exports.codes=vK});var V7=N((uBe,dK)=>{"use strict";var TAe=Xu().codes.ERR_INVALID_OPT_VALUE;function AAe(e,r,t){return e.highWaterMark!=null?e.highWaterMark:r?e[t]:null}function MAe(e,r,t,a){var n=AAe(r,a,t);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var i=a?t:"highWaterMark";throw new TAe(i,n)}return Math.floor(n)}return e.objectMode?16:16*1024}dK.exports={getHighWaterMark:MAe}});var yK=N((fBe,pK)=>{pK.exports=kAe;function kAe(e,r){if(W7("noDeprecation"))return e;var t=!1;function a(){if(!t){if(W7("throwDeprecation"))throw new Error(r);W7("traceDeprecation")?console.trace(r):console.warn(r),t=!0}return e.apply(this,arguments)}return a}function W7(e){try{if(!window.localStorage)return!1}catch(t){return!1}var r=window.localStorage[e];return r==null?!1:String(r).toLowerCase()==="true"}});var X7=N((cBe,wK)=>{"use strict";wK.exports=ca;function gK(e){var r=this;this.next=null,this.entry=null,this.finish=function(){QAe(r,e)}}var gv;ca.WritableState=td;var SAe={deprecate:yK()},bK=Z6(),g2=ov().Buffer,qAe=window.Uint8Array||function(){};function LAe(e){return g2.from(e)}function CAe(e){return g2.isBuffer(e)||e instanceof qAe}var Z7=Y7(),EAe=V7(),DAe=EAe.getHighWaterMark,ws=Xu().codes,RAe=ws.ERR_INVALID_ARG_TYPE,PAe=ws.ERR_METHOD_NOT_IMPLEMENTED,FAe=ws.ERR_MULTIPLE_CALLBACK,NAe=ws.ERR_STREAM_CANNOT_PIPE,zAe=ws.ERR_STREAM_DESTROYED,IAe=ws.ERR_STREAM_NULL_VALUES,OAe=ws.ERR_STREAM_WRITE_AFTER_END,BAe=ws.ERR_UNKNOWN_ENCODING,bv=Z7.errorOrDestroy;kl()(ca,bK);function HAe(){}function td(e,r,t){gv=gv||Ju(),e=e||{},typeof t!="boolean"&&(t=r instanceof gv),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=DAe(this,e,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){ZAe(r,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new gK(this)}td.prototype.getBuffer=function(){for(var r=this.bufferedRequest,t=[];r;)t.push(r),r=r.next;return t};(function(){try{Object.defineProperty(td.prototype,"buffer",{get:SAe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var m2;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(m2=Function.prototype[Symbol.hasInstance],Object.defineProperty(ca,Symbol.hasInstance,{value:function(r){return m2.call(this,r)?!0:this!==ca?!1:r&&r._writableState instanceof td}})):m2=function(r){return r instanceof this};function ca(e){gv=gv||Ju();var r=this instanceof gv;if(!r&&!m2.call(ca,this))return new ca(e);this._writableState=new td(e,this,r),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),bK.call(this)}ca.prototype.pipe=function(){bv(this,new NAe)};function UAe(e,r){var t=new OAe;bv(e,t),process.nextTick(r,t)}function GAe(e,r,t,a){var n;return t===null?n=new IAe:typeof t!="string"&&!r.objectMode&&(n=new RAe("chunk",["string","Buffer"],t)),n?(bv(e,n),process.nextTick(a,n),!1):!0}ca.prototype.write=function(e,r,t){var a=this._writableState,n=!1,i=!a.objectMode&&CAe(e);return i&&!g2.isBuffer(e)&&(e=LAe(e)),typeof r=="function"&&(t=r,r=null),i?r="buffer":r||(r=a.defaultEncoding),typeof t!="function"&&(t=HAe),a.ending?UAe(this,t):(i||GAe(this,a,e,t))&&(a.pendingcb++,n=VAe(this,a,i,e,r,t)),n};ca.prototype.cork=function(){this._writableState.corked++};ca.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&xK(this,e))};ca.prototype.setDefaultEncoding=function(r){if(typeof r=="string"&&(r=r.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new BAe(r);return this._writableState.defaultEncoding=r,this};Object.defineProperty(ca.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function YAe(e,r,t){return!e.objectMode&&e.decodeStrings!==!1&&typeof r=="string"&&(r=g2.from(r,t)),r}Object.defineProperty(ca.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function VAe(e,r,t,a,n,i){if(!t){var o=YAe(r,a,n);a!==o&&(t=!0,n="buffer",a=o)}var l=r.objectMode?1:a.length;r.length+=l;var s=r.length{"use strict";var eMe=Object.keys||function(e){var r=[];for(var t in e)r.push(t);return r};AK.exports=Zo;var TK=K7(),$7=X7();kl()(Zo,TK);for(J7=eMe($7.prototype),b2=0;b2{var _2=ov(),Xo=_2.Buffer;function MK(e,r){for(var t in e)r[t]=e[t]}Xo.from&&Xo.alloc&&Xo.allocUnsafe&&Xo.allocUnsafeSlow?kK.exports=_2:(MK(_2,Q7),Q7.Buffer=$u);function $u(e,r,t){return Xo(e,r,t)}$u.prototype=Object.create(Xo.prototype);MK(Xo,$u);$u.from=function(e,r,t){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Xo(e,r,t)};$u.alloc=function(e,r,t){if(typeof e!="number")throw new TypeError("Argument must be a number");var a=Xo(e);return r!==void 0?typeof t=="string"?a.fill(r,t):a.fill(r):a.fill(0),a};$u.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Xo(e)};$u.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return _2.SlowBuffer(e)}});var tT=N(LK=>{"use strict";var rT=SK().Buffer,qK=rT.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function aMe(e){if(!e)return"utf8";for(var r;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(r)return;e=(""+e).toLowerCase(),r=!0}}function nMe(e){var r=aMe(e);if(typeof r!="string"&&(rT.isEncoding===qK||!qK(e)))throw new Error("Unknown encoding: "+e);return r||e}LK.StringDecoder=ad;function ad(e){this.encoding=nMe(e);var r;switch(this.encoding){case"utf16le":this.text=fMe,this.end=cMe,r=4;break;case"utf8":this.fillLast=lMe,r=4;break;case"base64":this.text=vMe,this.end=hMe,r=3;break;default:this.write=dMe,this.end=pMe;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=rT.allocUnsafe(r)}ad.prototype.write=function(e){if(e.length===0)return"";var r,t;if(this.lastNeed){if(r=this.fillLast(e),r===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function iMe(e,r,t){var a=r.length-1;if(a=0?(n>0&&(e.lastNeed=n-1),n):--a=0?(n>0&&(e.lastNeed=n-2),n):--a=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function oMe(e,r,t){if((r[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&r.length>1){if((r[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&r.length>2&&(r[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function lMe(e){var r=this.lastTotal-this.lastNeed,t=oMe(this,e,r);if(t!==void 0)return t;if(this.lastNeed<=e.length)return e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,r,0,e.length),this.lastNeed-=e.length}function sMe(e,r){var t=iMe(this,e,r);if(!this.lastNeed)return e.toString("utf8",r);this.lastTotal=t;var a=e.length-(t-this.lastNeed);return e.copy(this.lastChar,0,a),e.toString("utf8",r,a)}function uMe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"\uFFFD":r}function fMe(e,r){if((e.length-r)%2===0){var t=e.toString("utf16le",r);if(t){var a=t.charCodeAt(t.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",r,e.length-1)}function cMe(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,t)}return r}function vMe(e,r){var t=(e.length-r)%3;return t===0?e.toString("base64",r):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",r,e.length-t))}function hMe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function dMe(e){return e.toString(this.encoding)}function pMe(e){return e&&e.length?this.write(e):""}});var w2=N((dBe,DK)=>{"use strict";var CK=Xu().codes.ERR_STREAM_PREMATURE_CLOSE;function yMe(e){var r=!1;return function(){if(!r){r=!0;for(var t=arguments.length,a=new Array(t),n=0;n{"use strict";var T2;function Ts(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var bMe=w2(),As=Symbol("lastResolve"),Ku=Symbol("lastReject"),nd=Symbol("error"),A2=Symbol("ended"),Qu=Symbol("lastPromise"),aT=Symbol("handlePromise"),ef=Symbol("stream");function Ms(e,r){return{value:e,done:r}}function xMe(e){var r=e[As];if(r!==null){var t=e[ef].read();t!==null&&(e[Qu]=null,e[As]=null,e[Ku]=null,r(Ms(t,!1)))}}function _Me(e){process.nextTick(xMe,e)}function wMe(e,r){return function(t,a){e.then(function(){if(r[A2]){t(Ms(void 0,!0));return}r[aT](t,a)},a)}}var TMe=Object.getPrototypeOf(function(){}),AMe=Object.setPrototypeOf((T2={get stream(){return this[ef]},next:function(){var r=this,t=this[nd];if(t!==null)return Promise.reject(t);if(this[A2])return Promise.resolve(Ms(void 0,!0));if(this[ef].destroyed)return new Promise(function(o,l){process.nextTick(function(){r[nd]?l(r[nd]):o(Ms(void 0,!0))})});var a=this[Qu],n;if(a)n=new Promise(wMe(a,this));else{var i=this[ef].read();if(i!==null)return Promise.resolve(Ms(i,!1));n=new Promise(this[aT])}return this[Qu]=n,n}},Ts(T2,Symbol.asyncIterator,function(){return this}),Ts(T2,"return",function(){var r=this;return new Promise(function(t,a){r[ef].destroy(null,function(n){if(n){a(n);return}t(Ms(void 0,!0))})})}),T2),TMe),MMe=function(r){var t,a=Object.create(AMe,(t={},Ts(t,ef,{value:r,writable:!0}),Ts(t,As,{value:null,writable:!0}),Ts(t,Ku,{value:null,writable:!0}),Ts(t,nd,{value:null,writable:!0}),Ts(t,A2,{value:r._readableState.endEmitted,writable:!0}),Ts(t,aT,{value:function(i,o){var l=a[ef].read();l?(a[Qu]=null,a[As]=null,a[Ku]=null,i(Ms(l,!1))):(a[As]=i,a[Ku]=o)},writable:!0}),t));return a[Qu]=null,bMe(r,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var i=a[Ku];i!==null&&(a[Qu]=null,a[As]=null,a[Ku]=null,i(n)),a[nd]=n;return}var o=a[As];o!==null&&(a[Qu]=null,a[As]=null,a[Ku]=null,o(Ms(void 0,!0))),a[A2]=!0}),r.on("readable",_Me.bind(null,a)),a};RK.exports=MMe});var NK=N((yBe,FK)=>{FK.exports=function(){throw new Error("Readable.from is not available in the browser")}});var K7=N((gBe,WK)=>{"use strict";WK.exports=bt;var xv;bt.ReadableState=BK;var mBe=Qs().EventEmitter,OK=function(r,t){return r.listeners(t).length},od=Z6(),M2=ov().Buffer,kMe=window.Uint8Array||function(){};function SMe(e){return M2.from(e)}function qMe(e){return M2.isBuffer(e)||e instanceof kMe}var nT=H7(),rt;nT&&nT.debuglog?rt=nT.debuglog("stream"):rt=function(){};var LMe=sK(),cT=Y7(),CMe=V7(),EMe=CMe.getHighWaterMark,k2=Xu().codes,DMe=k2.ERR_INVALID_ARG_TYPE,RMe=k2.ERR_STREAM_PUSH_AFTER_EOF,PMe=k2.ERR_METHOD_NOT_IMPLEMENTED,FMe=k2.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,_v,iT,oT;kl()(bt,od);var id=cT.errorOrDestroy,lT=["error","close","destroy","pause","resume"];function NMe(e,r,t){if(typeof e.prependListener=="function")return e.prependListener(r,t);!e._events||!e._events[r]?e.on(r,t):Array.isArray(e._events[r])?e._events[r].unshift(t):e._events[r]=[t,e._events[r]]}function BK(e,r,t){xv=xv||Ju(),e=e||{},typeof t!="boolean"&&(t=r instanceof xv),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=EMe(this,e,"readableHighWaterMark",t),this.buffer=new LMe,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(_v||(_v=tT().StringDecoder),this.decoder=new _v(e.encoding),this.encoding=e.encoding)}function bt(e){if(xv=xv||Ju(),!(this instanceof bt))return new bt(e);var r=this instanceof xv;this._readableState=new BK(e,this,r),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),od.call(this)}Object.defineProperty(bt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(r){this._readableState&&(this._readableState.destroyed=r)}});bt.prototype.destroy=cT.destroy;bt.prototype._undestroy=cT.undestroy;bt.prototype._destroy=function(e,r){r(e)};bt.prototype.push=function(e,r){var t=this._readableState,a;return t.objectMode?a=!0:typeof e=="string"&&(r=r||t.defaultEncoding,r!==t.encoding&&(e=M2.from(e,r),r=""),a=!0),HK(this,e,r,!1,a)};bt.prototype.unshift=function(e){return HK(this,e,null,!0,!1)};function HK(e,r,t,a,n){rt("readableAddChunk",r);var i=e._readableState;if(r===null)i.reading=!1,OMe(e,i);else{var o;if(n||(o=zMe(i,r)),o)id(e,o);else if(i.objectMode||r&&r.length>0)if(typeof r!="string"&&!i.objectMode&&Object.getPrototypeOf(r)!==M2.prototype&&(r=SMe(r)),a)i.endEmitted?id(e,new FMe):sT(e,i,r,!0);else if(i.ended)id(e,new RMe);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!t?(r=i.decoder.write(r),i.objectMode||r.length!==0?sT(e,i,r,!1):fT(e,i)):sT(e,i,r,!1)}else a||(i.reading=!1,fT(e,i))}return!i.ended&&(i.length=zK?e=zK:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function IK(e,r){return e<=0||r.length===0&&r.ended?0:r.objectMode?1:e!==e?r.flowing&&r.length?r.buffer.head.data.length:r.length:(e>r.highWaterMark&&(r.highWaterMark=IMe(e)),e<=r.length?e:r.ended?r.length:(r.needReadable=!0,0))}bt.prototype.read=function(e){rt("read",e),e=parseInt(e,10);var r=this._readableState,t=e;if(e!==0&&(r.emittedReadable=!1),e===0&&r.needReadable&&((r.highWaterMark!==0?r.length>=r.highWaterMark:r.length>0)||r.ended))return rt("read: emitReadable",r.length,r.ended),r.length===0&&r.ended?uT(this):S2(this),null;if(e=IK(e,r),e===0&&r.ended)return r.length===0&&uT(this),null;var a=r.needReadable;rt("need readable",a),(r.length===0||r.length-e0?n=YK(e,r):n=null,n===null?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),r.length===0&&(r.ended||(r.needReadable=!0),t!==e&&r.ended&&uT(this)),n!==null&&this.emit("data",n),n};function OMe(e,r){if(rt("onEofChunk"),!r.ended){if(r.decoder){var t=r.decoder.end();t&&t.length&&(r.buffer.push(t),r.length+=r.objectMode?1:t.length)}r.ended=!0,r.sync?S2(e):(r.needReadable=!1,r.emittedReadable||(r.emittedReadable=!0,UK(e)))}}function S2(e){var r=e._readableState;rt("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(rt("emitReadable",r.flowing),r.emittedReadable=!0,process.nextTick(UK,e))}function UK(e){var r=e._readableState;rt("emitReadable_",r.destroyed,r.length,r.ended),!r.destroyed&&(r.length||r.ended)&&(e.emit("readable"),r.emittedReadable=!1),r.needReadable=!r.flowing&&!r.ended&&r.length<=r.highWaterMark,vT(e)}function fT(e,r){r.readingMore||(r.readingMore=!0,process.nextTick(BMe,e,r))}function BMe(e,r){for(;!r.reading&&!r.ended&&(r.length1&&VK(a.pipes,e)!==-1)&&!u&&(rt("false write response, pause",a.awaitDrain),a.awaitDrain++),t.pause())}function v(y){rt("onerror",y),m(),e.removeListener("error",v),OK(e,"error")===0&&id(e,y)}NMe(e,"error",v);function d(){e.removeListener("finish",p),m()}e.once("close",d);function p(){rt("onfinish"),e.removeListener("close",d),m()}e.once("finish",p);function m(){rt("unpipe"),t.unpipe(e)}return e.emit("pipe",t),a.flowing||(rt("pipe resume"),t.resume()),e};function HMe(e){return function(){var t=e._readableState;rt("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&OK(e,"data")&&(t.flowing=!0,vT(e))}}bt.prototype.unpipe=function(e){var r=this._readableState,t={hasUnpiped:!1};if(r.pipesCount===0)return this;if(r.pipesCount===1)return e&&e!==r.pipes?this:(e||(e=r.pipes),r.pipes=null,r.pipesCount=0,r.flowing=!1,e&&e.emit("unpipe",this,t),this);if(!e){var a=r.pipes,n=r.pipesCount;r.pipes=null,r.pipesCount=0,r.flowing=!1;for(var i=0;i0,a.flowing!==!1&&this.resume()):e==="readable"&&!a.endEmitted&&!a.readableListening&&(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,rt("on readable",a.length,a.reading),a.length?S2(this):a.reading||process.nextTick(UMe,this)),t};bt.prototype.addListener=bt.prototype.on;bt.prototype.removeListener=function(e,r){var t=od.prototype.removeListener.call(this,e,r);return e==="readable"&&process.nextTick(GK,this),t};bt.prototype.removeAllListeners=function(e){var r=od.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(GK,this),r};function GK(e){var r=e._readableState;r.readableListening=e.listenerCount("readable")>0,r.resumeScheduled&&!r.paused?r.flowing=!0:e.listenerCount("data")>0&&e.resume()}function UMe(e){rt("readable nexttick read 0"),e.read(0)}bt.prototype.resume=function(){var e=this._readableState;return e.flowing||(rt("resume"),e.flowing=!e.readableListening,GMe(this,e)),e.paused=!1,this};function GMe(e,r){r.resumeScheduled||(r.resumeScheduled=!0,process.nextTick(YMe,e,r))}function YMe(e,r){rt("resume",r.reading),r.reading||e.read(0),r.resumeScheduled=!1,e.emit("resume"),vT(e),r.flowing&&!r.reading&&e.read(0)}bt.prototype.pause=function(){return rt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(rt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function vT(e){var r=e._readableState;for(rt("flow",r.flowing);r.flowing&&e.read()!==null;);}bt.prototype.wrap=function(e){var r=this,t=this._readableState,a=!1;e.on("end",function(){if(rt("wrapped end"),t.decoder&&!t.ended){var o=t.decoder.end();o&&o.length&&r.push(o)}r.push(null)}),e.on("data",function(o){if(rt("wrapped data"),t.decoder&&(o=t.decoder.write(o)),!(t.objectMode&&o==null)&&!(!t.objectMode&&(!o||!o.length))){var l=r.push(o);l||(a=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=function(l){return function(){return e[l].apply(e,arguments)}}(n));for(var i=0;i=r.length?(r.decoder?t=r.buffer.join(""):r.buffer.length===1?t=r.buffer.first():t=r.buffer.concat(r.length),r.buffer.clear()):t=r.buffer.consume(e,r.decoder),t}function uT(e){var r=e._readableState;rt("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,process.nextTick(VMe,r,e))}function VMe(e,r){if(rt("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,r.readable=!1,r.emit("end"),e.autoDestroy)){var t=r._writableState;(!t||t.autoDestroy&&t.finished)&&r.destroy()}}typeof Symbol=="function"&&(bt.from=function(e,r){return oT===void 0&&(oT=NK()),oT(bt,e,r)});function VK(e,r){for(var t=0,a=e.length;t{"use strict";ZK.exports=ql;var q2=Xu().codes,WMe=q2.ERR_METHOD_NOT_IMPLEMENTED,jMe=q2.ERR_MULTIPLE_CALLBACK,ZMe=q2.ERR_TRANSFORM_ALREADY_TRANSFORMING,XMe=q2.ERR_TRANSFORM_WITH_LENGTH_0,L2=Ju();kl()(ql,L2);function JMe(e,r){var t=this._transformState;t.transforming=!1;var a=t.writecb;if(a===null)return this.emit("error",new jMe);t.writechunk=null,t.writecb=null,r!=null&&this.push(r),a(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length{"use strict";JK.exports=ld;var XK=hT();kl()(ld,XK);function ld(e){if(!(this instanceof ld))return new ld(e);XK.call(this,e)}ld.prototype._transform=function(e,r,t){t(null,e)}});var tQ=N((_Be,rQ)=>{"use strict";var dT;function KMe(e){var r=!1;return function(){r||(r=!0,e.apply(void 0,arguments))}}var eQ=Xu().codes,QMe=eQ.ERR_MISSING_ARGS,e9e=eQ.ERR_STREAM_DESTROYED;function KK(e){if(e)throw e}function r9e(e){return e.setHeader&&typeof e.abort=="function"}function t9e(e,r,t,a){a=KMe(a);var n=!1;e.on("close",function(){n=!0}),dT===void 0&&(dT=w2()),dT(e,{readable:r,writable:t},function(o){if(o)return a(o);n=!0,a()});var i=!1;return function(o){if(!n&&!i){if(i=!0,r9e(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();a(o||new e9e("pipe"))}}}function QK(e){e()}function a9e(e,r){return e.pipe(r)}function n9e(e){return!e.length||typeof e[e.length-1]!="function"?KK:e.pop()}function i9e(){for(var e=arguments.length,r=new Array(e),t=0;t0;return t9e(o,s,u,function(f){n||(n=f),f&&i.forEach(QK),!s&&(i.forEach(QK),a(n))})});return r.reduce(a9e)}rQ.exports=i9e});var nQ=N((wBe,aQ)=>{aQ.exports=Oi;var pT=Qs().EventEmitter,o9e=kl();o9e(Oi,pT);Oi.Readable=K7();Oi.Writable=X7();Oi.Duplex=Ju();Oi.Transform=hT();Oi.PassThrough=$K();Oi.finished=w2();Oi.pipeline=tQ();Oi.Stream=Oi;function Oi(){pT.call(this)}Oi.prototype.pipe=function(e,r){var t=this;function a(f){e.writable&&e.write(f)===!1&&t.pause&&t.pause()}t.on("data",a);function n(){t.readable&&t.resume&&t.resume()}e.on("drain",n),!e._isStdio&&(!r||r.end!==!1)&&(t.on("end",o),t.on("close",l));var i=!1;function o(){i||(i=!0,e.end())}function l(){i||(i=!0,typeof e.destroy=="function"&&e.destroy())}function s(f){if(u(),pT.listenerCount(this,"error")===0)throw f}t.on("error",s),e.on("error",s);function u(){t.removeListener("data",a),e.removeListener("drain",n),t.removeListener("end",o),t.removeListener("close",l),t.removeListener("error",s),e.removeListener("error",s),t.removeListener("end",u),t.removeListener("close",u),e.removeListener("close",u)}return t.on("end",u),t.on("close",u),e.on("close",u),e.emit("pipe",t),e}});var Tv=N(st=>{var iQ=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),bT(r)?t.showHidden=r:r&&st._extend(t,r),tf(t.showHidden)&&(t.showHidden=!1),tf(t.depth)&&(t.depth=2),tf(t.colors)&&(t.colors=!1),tf(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=s9e),R2(t,e,t.depth)}st.inspect=ks;ks.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};ks.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s9e(e,r){var t=ks.styles[r];return t?"\x1B["+ks.colors[t][0]+"m"+e+"\x1B["+ks.colors[t][1]+"m":e}function u9e(e,r){return e}function f9e(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function R2(e,r,t){if(e.customInspect&&r&&D2(r.inspect)&&r.inspect!==st.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return N2(a)||(a=R2(e,a,t)),a}var n=c9e(e,r);if(n)return n;var i=Object.keys(r),o=f9e(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),ud(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return yT(r);if(i.length===0){if(D2(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(sd(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(P2(r))return e.stylize(Date.prototype.toString.call(r),"date");if(ud(r))return yT(r)}var s="",u=!1,f=["{","}"];if(lQ(r)&&(u=!0,f=["[","]"]),D2(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(sd(r)&&(s=" "+RegExp.prototype.toString.call(r)),P2(r)&&(s=" "+Date.prototype.toUTCString.call(r)),ud(r)&&(s=" "+yT(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return sd(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=v9e(e,r,t,o,i):v=i.map(function(d){return gT(e,r,t,o,d,u)}),e.seen.pop(),h9e(v,s,f)}function c9e(e,r){if(tf(r))return e.stylize("undefined","undefined");if(N2(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(sQ(r))return e.stylize(""+r,"number");if(bT(r))return e.stylize(""+r,"boolean");if(F2(r))return e.stylize("null","null")}function yT(e){return"["+Error.prototype.toString.call(e)+"]"}function v9e(e,r,t,a,n){for(var i=[],o=0,l=r.length;o-1&&(i?l=l.split(` `).map(function(u){return" "+u}).join(` `).slice(2):l=` `+l.split(` `).map(function(u){return" "+u}).join(` -`))):l=e.stylize("[Circular]","special")),tf(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function s9e(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(` +`))):l=e.stylize("[Circular]","special")),tf(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function h9e(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(` `)>=0&&a++,i+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?t[0]+(r===""?"":r+` `)+" "+e.join(`, - `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}st.types=R7();function oQ(e){return Array.isArray(e)}st.isArray=oQ;function gT(e){return typeof e=="boolean"}st.isBoolean=gT;function F2(e){return e===null}st.isNull=F2;function u9e(e){return e==null}st.isNullOrUndefined=u9e;function lQ(e){return typeof e=="number"}st.isNumber=lQ;function N2(e){return typeof e=="string"}st.isString=N2;function f9e(e){return typeof e=="symbol"}st.isSymbol=f9e;function tf(e){return e===void 0}st.isUndefined=tf;function id(e){return wv(e)&&bT(e)==="[object RegExp]"}st.isRegExp=id;st.types.isRegExp=id;function wv(e){return typeof e=="object"&&e!==null}st.isObject=wv;function P2(e){return wv(e)&&bT(e)==="[object Date]"}st.isDate=P2;st.types.isDate=P2;function od(e){return wv(e)&&(bT(e)==="[object Error]"||e instanceof Error)}st.isError=od;st.types.isNativeError=od;function D2(e){return typeof e=="function"}st.isFunction=D2;function c9e(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}st.isPrimitive=c9e;st.isBuffer=P7();function bT(e){return Object.prototype.toString.call(e)}function yT(e){return e<10?"0"+e.toString(10):e.toString(10)}var v9e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function h9e(){var e=new Date,r=[yT(e.getHours()),yT(e.getMinutes()),yT(e.getSeconds())].join(":");return[e.getDate(),v9e[e.getMonth()],r].join(" ")}st.log=function(){console.log("%s - %s",h9e(),st.format.apply(st,arguments))};st.inherits=kl();st._extend=function(e,r){if(!r||!wv(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function sQ(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var rf=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;st.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(rf&&r[rf]){var t=r[rf];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,rf,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var a,n,i=new Promise(function(s,u){a=s,n=u}),o=[],l=0;l{"use strict";function Ss(e){"@babel/helpers - typeof";return Ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ss(e)}function uQ(e,r){for(var t=0;t2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function M9e(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function k9e(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function S9e(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}ld("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);ld("ERR_INVALID_ARG_TYPE",function(e,r,t){Av===void 0&&(Av=I2()),Av(typeof e=="string","'name' must be a string");var a;typeof r=="string"&&M9e(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(k9e(e," argument"))n="The ".concat(e," ").concat(a," ").concat(fQ(r,"type"));else{var i=S9e(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(fQ(r,"type"))}return n+=". Received type ".concat(Ss(t)),n},TypeError);ld("ERR_INVALID_ARG_VALUE",function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";xT===void 0&&(xT=Tv());var a=xT.inspect(r);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(t,". Received ").concat(a)},TypeError,RangeError);ld("ERR_INVALID_RETURN_VALUE",function(e,r,t){var a;return t&&t.constructor&&t.constructor.name?a="instance of ".concat(t.constructor.name):a="type ".concat(Ss(t)),"Expected ".concat(e,' to be returned from the "').concat(r,'"')+" function but got ".concat(a,".")},TypeError);ld("ERR_MISSING_ARGS",function(){for(var e=arguments.length,r=new Array(e),t=0;t0,"At least one arg needs to be specified");var a="The ",n=r.length;switch(r=r.map(function(i){return'"'.concat(i,'"')}),n){case 1:a+="".concat(r[0]," argument");break;case 2:a+="".concat(r[0]," and ").concat(r[1]," arguments");break;default:a+=r.slice(0,n-1).join(", "),a+=", and ".concat(r[n-1]," arguments");break}return"".concat(a," must be specified")},TypeError);vQ.exports.codes=cQ});var wQ=N((_Be,_Q)=>{"use strict";function hQ(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function dQ(e){for(var r=1;re.length)&&(t=e.length),e.substring(t-r.length,t)===r}function I9e(e,r){if(r=Math.floor(r),e.length==0||r==0)return"";var t=e.length*r;for(r=Math.floor(Math.log(r)/Math.log(2));r;)e+=e,r--;return e+=e.substring(0,t-e.length),e}var go="",sd="",ud="",Qa="",af={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},O9e=10;function mQ(e){var r=Object.keys(e),t=Object.create(Object.getPrototypeOf(e));return r.forEach(function(a){t[a]=e[a]}),Object.defineProperty(t,"message",{value:e.message}),t}function fd(e){return MT(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function B9e(e,r,t){var a="",n="",i=0,o="",l=!1,s=fd(e),u=s.split(` -`),f=fd(r).split(` -`),c=0,v="";if(t==="strictEqual"&&Gn(e)==="object"&&Gn(r)==="object"&&e!==null&&r!==null&&(t="strictEqualObject"),u.length===1&&f.length===1&&u[0]!==f[0]){var d=u[0].length+f[0].length;if(d<=O9e){if((Gn(e)!=="object"||e===null)&&(Gn(r)!=="object"||r===null)&&(e!==0||r!==0))return"".concat(af[t],` + `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}st.types=P7();function lQ(e){return Array.isArray(e)}st.isArray=lQ;function bT(e){return typeof e=="boolean"}st.isBoolean=bT;function F2(e){return e===null}st.isNull=F2;function d9e(e){return e==null}st.isNullOrUndefined=d9e;function sQ(e){return typeof e=="number"}st.isNumber=sQ;function N2(e){return typeof e=="string"}st.isString=N2;function p9e(e){return typeof e=="symbol"}st.isSymbol=p9e;function tf(e){return e===void 0}st.isUndefined=tf;function sd(e){return wv(e)&&xT(e)==="[object RegExp]"}st.isRegExp=sd;st.types.isRegExp=sd;function wv(e){return typeof e=="object"&&e!==null}st.isObject=wv;function P2(e){return wv(e)&&xT(e)==="[object Date]"}st.isDate=P2;st.types.isDate=P2;function ud(e){return wv(e)&&(xT(e)==="[object Error]"||e instanceof Error)}st.isError=ud;st.types.isNativeError=ud;function D2(e){return typeof e=="function"}st.isFunction=D2;function y9e(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}st.isPrimitive=y9e;st.isBuffer=F7();function xT(e){return Object.prototype.toString.call(e)}function mT(e){return e<10?"0"+e.toString(10):e.toString(10)}var m9e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function g9e(){var e=new Date,r=[mT(e.getHours()),mT(e.getMinutes()),mT(e.getSeconds())].join(":");return[e.getDate(),m9e[e.getMonth()],r].join(" ")}st.log=function(){console.log("%s - %s",g9e(),st.format.apply(st,arguments))};st.inherits=kl();st._extend=function(e,r){if(!r||!wv(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function uQ(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var rf=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;st.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(rf&&r[rf]){var t=r[rf];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,rf,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var a,n,i=new Promise(function(s,u){a=s,n=u}),o=[],l=0;l{"use strict";function Ss(e){"@babel/helpers - typeof";return Ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ss(e)}function fQ(e,r){for(var t=0;t2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function C9e(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function E9e(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function D9e(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}fd("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);fd("ERR_INVALID_ARG_TYPE",function(e,r,t){Av===void 0&&(Av=I2()),Av(typeof e=="string","'name' must be a string");var a;typeof r=="string"&&C9e(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(E9e(e," argument"))n="The ".concat(e," ").concat(a," ").concat(cQ(r,"type"));else{var i=D9e(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(cQ(r,"type"))}return n+=". Received type ".concat(Ss(t)),n},TypeError);fd("ERR_INVALID_ARG_VALUE",function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";_T===void 0&&(_T=Tv());var a=_T.inspect(r);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(t,". Received ").concat(a)},TypeError,RangeError);fd("ERR_INVALID_RETURN_VALUE",function(e,r,t){var a;return t&&t.constructor&&t.constructor.name?a="instance of ".concat(t.constructor.name):a="type ".concat(Ss(t)),"Expected ".concat(e,' to be returned from the "').concat(r,'"')+" function but got ".concat(a,".")},TypeError);fd("ERR_MISSING_ARGS",function(){for(var e=arguments.length,r=new Array(e),t=0;t0,"At least one arg needs to be specified");var a="The ",n=r.length;switch(r=r.map(function(i){return'"'.concat(i,'"')}),n){case 1:a+="".concat(r[0]," argument");break;case 2:a+="".concat(r[0]," and ").concat(r[1]," arguments");break;default:a+=r.slice(0,n-1).join(", "),a+=", and ".concat(r[n-1]," arguments");break}return"".concat(a," must be specified")},TypeError);hQ.exports.codes=vQ});var TQ=N((MBe,wQ)=>{"use strict";function dQ(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function pQ(e){for(var r=1;re.length)&&(t=e.length),e.substring(t-r.length,t)===r}function G9e(e,r){if(r=Math.floor(r),e.length==0||r==0)return"";var t=e.length*r;for(r=Math.floor(Math.log(r)/Math.log(2));r;)e+=e,r--;return e+=e.substring(0,t-e.length),e}var go="",cd="",vd="",Qa="",af={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},Y9e=10;function gQ(e){var r=Object.keys(e),t=Object.create(Object.getPrototypeOf(e));return r.forEach(function(a){t[a]=e[a]}),Object.defineProperty(t,"message",{value:e.message}),t}function hd(e){return kT(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function V9e(e,r,t){var a="",n="",i=0,o="",l=!1,s=hd(e),u=s.split(` +`),f=hd(r).split(` +`),c=0,v="";if(t==="strictEqual"&&Gn(e)==="object"&&Gn(r)==="object"&&e!==null&&r!==null&&(t="strictEqualObject"),u.length===1&&f.length===1&&u[0]!==f[0]){var d=u[0].length+f[0].length;if(d<=Y9e){if((Gn(e)!=="object"||e===null)&&(Gn(r)!=="object"||r===null)&&(e!==0||r!==0))return"".concat(af[t],` `)+"".concat(u[0]," !== ").concat(f[0],` `)}else if(t!=="strictEqualObject"){var p=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(d2&&(v=` - `.concat(I9e(" ",c),"^"),c=0)}}}for(var m=u[u.length-1],y=f[f.length-1];m===y&&(c++<2?o=` + `.concat(G9e(" ",c),"^"),c=0)}}}for(var m=u[u.length-1],y=f[f.length-1];m===y&&(c++<2?o=` `.concat(m).concat(o):a=m,u.pop(),f.pop(),!(u.length===0||f.length===0));)m=u[u.length-1],y=f[f.length-1];var x=Math.max(u.length,f.length);if(x===0){var w=s.split(` `);if(w.length>30)for(w[26]="".concat(go,"...").concat(Qa);w.length>27;)w.pop();return"".concat(af.notIdentical,` @@ -52,50 +52,50 @@ `)}c>3&&(o=` `.concat(go,"...").concat(Qa).concat(o),l=!0),a!==""&&(o=` `.concat(a).concat(o),a="");var _=0,b=af[t]+` -`.concat(sd,"+ actual").concat(Qa," ").concat(ud,"- expected").concat(Qa),T=" ".concat(go,"...").concat(Qa," Lines skipped");for(c=0;c1&&c>2&&(k>4?(n+=` +`.concat(cd,"+ actual").concat(Qa," ").concat(vd,"- expected").concat(Qa),T=" ".concat(go,"...").concat(Qa," Lines skipped");for(c=0;c1&&c>2&&(k>4?(n+=` `.concat(go,"...").concat(Qa),l=!0):k>3&&(n+=` `.concat(f[c-2]),_++),n+=` `.concat(f[c-1]),_++),i=c,a+=` -`.concat(ud,"-").concat(Qa," ").concat(f[c]),_++;else if(f.length1&&c>2&&(k>4?(n+=` +`.concat(vd,"-").concat(Qa," ").concat(f[c]),_++;else if(f.length1&&c>2&&(k>4?(n+=` `.concat(go,"...").concat(Qa),l=!0):k>3&&(n+=` `.concat(u[c-2]),_++),n+=` `.concat(u[c-1]),_++),i=c,n+=` -`.concat(sd,"+").concat(Qa," ").concat(u[c]),_++;else{var M=f[c],S=u[c],E=S!==M&&(!yQ(S,",")||S.slice(0,-1)!==M);E&&yQ(M,",")&&M.slice(0,-1)===S&&(E=!1,S+=","),E?(k>1&&c>2&&(k>4?(n+=` +`.concat(cd,"+").concat(Qa," ").concat(u[c]),_++;else{var M=f[c],S=u[c],E=S!==M&&(!mQ(S,",")||S.slice(0,-1)!==M);E&&mQ(M,",")&&M.slice(0,-1)===S&&(E=!1,S+=","),E?(k>1&&c>2&&(k>4?(n+=` `.concat(go,"...").concat(Qa),l=!0):k>3&&(n+=` `.concat(u[c-2]),_++),n+=` `.concat(u[c-1]),_++),i=c,n+=` -`.concat(sd,"+").concat(Qa," ").concat(S),a+=` -`.concat(ud,"-").concat(Qa," ").concat(M),_+=2):(n+=a,a="",(k===1||c===0)&&(n+=` +`.concat(cd,"+").concat(Qa," ").concat(S),a+=` +`.concat(vd,"-").concat(Qa," ").concat(M),_+=2):(n+=a,a="",(k===1||c===0)&&(n+=` `.concat(S),_++))}if(_>20&&c30)for(d[26]="".concat(go,"...").concat(Qa);d.length>27;)d.pop();d.length===1?i=t.call(this,"".concat(v," ").concat(d[0])):i=t.call(this,"".concat(v,` `).concat(d.join(` `),` -`))}else{var p=fd(u),m="",y=af[l];l==="notDeepEqual"||l==="notEqual"?(p="".concat(af[l],` +`))}else{var p=hd(u),m="",y=af[l];l==="notDeepEqual"||l==="notEqual"?(p="".concat(af[l],` -`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(m="".concat(fd(f)),p.length>512&&(p="".concat(p.slice(0,509),"...")),m.length>512&&(m="".concat(m.slice(0,509),"...")),l==="deepEqual"||l==="equal"?p="".concat(y,` +`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(m="".concat(hd(f)),p.length>512&&(p="".concat(p.slice(0,509),"...")),m.length>512&&(m="".concat(m.slice(0,509),"...")),l==="deepEqual"||l==="equal"?p="".concat(y,` `).concat(p,` should equal -`):m=" ".concat(l," ").concat(m)),i=t.call(this,"".concat(p).concat(m))}return Error.stackTraceLimit=c,i.generatedMessage=!o,Object.defineProperty(TT(i),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),i.code="ERR_ASSERTION",i.actual=u,i.expected=f,i.operator=l,Error.captureStackTrace&&Error.captureStackTrace(TT(i),s),i.stack,i.name="AssertionError",bQ(i)}return C9e(a,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:r,value:function(i,o){return MT(this,dQ(dQ({},o),{},{customInspect:!1,depth:0}))}}]),a}(AT(Error),MT.custom);_Q.exports=H9e});var kT=N((wBe,AQ)=>{"use strict";var TQ=Object.prototype.toString;AQ.exports=function(r){var t=TQ.call(r),a=t==="[object Arguments]";return a||(a=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&TQ.call(r.callee)==="[object Function]"),a}});var RQ=N((TBe,DQ)=>{"use strict";var EQ;Object.keys||(hd=Object.prototype.hasOwnProperty,ST=Object.prototype.toString,MQ=kT(),qT=Object.prototype.propertyIsEnumerable,kQ=!qT.call({toString:null},"toString"),SQ=qT.call(function(){},"prototype"),dd=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],B2=function(e){var r=e.constructor;return r&&r.prototype===e},qQ={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},LQ=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!qQ["$"+e]&&hd.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{B2(window[e])}catch(r){return!0}}catch(r){return!0}return!1}(),CQ=function(e){if(typeof window=="undefined"||!LQ)return B2(e);try{return B2(e)}catch(r){return!1}},EQ=function(r){var t=r!==null&&typeof r=="object",a=ST.call(r)==="[object Function]",n=MQ(r),i=t&&ST.call(r)==="[object String]",o=[];if(!t&&!a&&!n)throw new TypeError("Object.keys called on a non-object");var l=SQ&&a;if(i&&r.length>0&&!hd.call(r,0))for(var s=0;s0)for(var u=0;u{"use strict";var U9e=Array.prototype.slice,G9e=kT(),PQ=Object.keys,H2=PQ?function(r){return PQ(r)}:RQ(),FQ=Object.keys;H2.shim=function(){if(Object.keys){var r=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);r||(Object.keys=function(a){return G9e(a)?FQ(U9e.call(a)):FQ(a)})}else Object.keys=H2;return Object.keys||H2};NQ.exports=H2});var UQ=N((MBe,HQ)=>{"use strict";var Y9e=LT(),OQ=Hg()(),BQ=dv(),zQ=Object,V9e=BQ("Array.prototype.push"),IQ=BQ("Object.prototype.propertyIsEnumerable"),j9e=OQ?Object.getOwnPropertySymbols:null;HQ.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var a=zQ(r);if(arguments.length===1)return a;for(var n=1;n{"use strict";var CT=UQ(),W9e=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},a=0;a{"use strict";var VQ=function(e){return e!==e};jQ.exports=function(r,t){return r===0&&t===0?1/r===1/t:!!(r===t||VQ(r)&&VQ(t))}});var U2=N((qBe,WQ)=>{"use strict";var X9e=ET();WQ.exports=function(){return typeof Object.is=="function"?Object.is:X9e}});var pd=N((LBe,$Q)=>{"use strict";var J9e=LT(),$9e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",K9e=Object.prototype.toString,Q9e=Array.prototype.concat,ZQ=Object.defineProperty,eke=function(e){return typeof e=="function"&&K9e.call(e)==="[object Function]"},rke=h7()(),XQ=ZQ&&rke,tke=function(e,r,t,a){if(r in e){if(a===!0){if(e[r]===t)return}else if(!eke(a)||!a())return}XQ?ZQ(e,r,{configurable:!0,enumerable:!1,value:t,writable:!0}):e[r]=t},JQ=function(e,r){var t=arguments.length>2?arguments[2]:{},a=J9e(r);$9e&&(a=Q9e.call(a,Object.getOwnPropertySymbols(r)));for(var n=0;n{"use strict";var ake=U2(),nke=pd();KQ.exports=function(){var r=ake();return nke(Object,{is:r},{is:function(){return Object.is!==r}}),r}});var aee=N((EBe,tee)=>{"use strict";var ike=pd(),oke=W0(),lke=ET(),eee=U2(),ske=QQ(),ree=oke(eee(),Object);ike(ree,{getPolyfill:eee,implementation:lke,shim:ske});tee.exports=ree});var DT=N((DBe,nee)=>{"use strict";nee.exports=function(r){return r!==r}});var RT=N((RBe,iee)=>{"use strict";var uke=DT();iee.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:uke}});var lee=N((PBe,oee)=>{"use strict";var fke=pd(),cke=RT();oee.exports=function(){var r=cke();return fke(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r}});var cee=N((FBe,fee)=>{"use strict";var vke=W0(),hke=pd(),dke=DT(),see=RT(),pke=lee(),uee=vke(see(),Number);hke(uee,{getPolyfill:see,implementation:dke,shim:pke});fee.exports=uee});var Eee=N((NBe,Cee)=>{"use strict";function vee(e,r){return bke(e)||gke(e,r)||mke(e,r)||yke()}function yke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mke(e,r){if(e){if(typeof e=="string")return hee(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return hee(e,r)}}function hee(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t10)return!0;for(var r=0;r57)return!0}return e.length===10&&e>=Math.pow(2,32)}function V2(e){return Object.keys(e).filter(qke).concat(W2(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function kee(e,r){if(e===r)return 0;for(var t=e.length,a=r.length,n=0,i=Math.min(t,a);n{"use strict";function bo(e){"@babel/helpers - typeof";return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},bo(e)}function Dee(e,r){for(var t=0;t1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n{"use strict";var AQ=Object.prototype.toString;MQ.exports=function(r){var t=AQ.call(r),a=t==="[object Arguments]";return a||(a=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&AQ.call(r.callee)==="[object Function]"),a}});var PQ=N((SBe,RQ)=>{"use strict";var DQ;Object.keys||(yd=Object.prototype.hasOwnProperty,qT=Object.prototype.toString,kQ=ST(),LT=Object.prototype.propertyIsEnumerable,SQ=!LT.call({toString:null},"toString"),qQ=LT.call(function(){},"prototype"),md=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],B2=function(e){var r=e.constructor;return r&&r.prototype===e},LQ={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},CQ=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!LQ["$"+e]&&yd.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{B2(window[e])}catch(r){return!0}}catch(r){return!0}return!1}(),EQ=function(e){if(typeof window=="undefined"||!CQ)return B2(e);try{return B2(e)}catch(r){return!1}},DQ=function(r){var t=r!==null&&typeof r=="object",a=qT.call(r)==="[object Function]",n=kQ(r),i=t&&qT.call(r)==="[object String]",o=[];if(!t&&!a&&!n)throw new TypeError("Object.keys called on a non-object");var l=qQ&&a;if(i&&r.length>0&&!yd.call(r,0))for(var s=0;s0)for(var u=0;u{"use strict";var j9e=Array.prototype.slice,Z9e=ST(),FQ=Object.keys,H2=FQ?function(r){return FQ(r)}:PQ(),NQ=Object.keys;H2.shim=function(){if(Object.keys){var r=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);r||(Object.keys=function(a){return Z9e(a)?NQ(j9e.call(a)):NQ(a)})}else Object.keys=H2;return Object.keys||H2};zQ.exports=H2});var GQ=N((LBe,UQ)=>{"use strict";var X9e=CT(),BQ=Hg()(),HQ=dv(),IQ=Object,J9e=HQ("Array.prototype.push"),OQ=HQ("Object.prototype.propertyIsEnumerable"),$9e=BQ?Object.getOwnPropertySymbols:null;UQ.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var a=IQ(r);if(arguments.length===1)return a;for(var n=1;n{"use strict";var ET=GQ(),K9e=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},a=0;a{"use strict";var WQ=function(e){return e!==e};jQ.exports=function(r,t){return r===0&&t===0?1/r===1/t:!!(r===t||WQ(r)&&WQ(t))}});var U2=N((DBe,ZQ)=>{"use strict";var eke=DT();ZQ.exports=function(){return typeof Object.is=="function"?Object.is:eke}});var gd=N((RBe,KQ)=>{"use strict";var rke=CT(),tke=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",ake=Object.prototype.toString,nke=Array.prototype.concat,XQ=Object.defineProperty,ike=function(e){return typeof e=="function"&&ake.call(e)==="[object Function]"},oke=d7()(),JQ=XQ&&oke,lke=function(e,r,t,a){if(r in e){if(a===!0){if(e[r]===t)return}else if(!ike(a)||!a())return}JQ?XQ(e,r,{configurable:!0,enumerable:!1,value:t,writable:!0}):e[r]=t},$Q=function(e,r){var t=arguments.length>2?arguments[2]:{},a=rke(r);tke&&(a=nke.call(a,Object.getOwnPropertySymbols(r)));for(var n=0;n{"use strict";var ske=U2(),uke=gd();QQ.exports=function(){var r=ske();return uke(Object,{is:r},{is:function(){return Object.is!==r}}),r}});var nee=N((FBe,aee)=>{"use strict";var fke=gd(),cke=J0(),vke=DT(),ree=U2(),hke=eee(),tee=cke(ree(),Object);fke(tee,{getPolyfill:ree,implementation:vke,shim:hke});aee.exports=tee});var RT=N((NBe,iee)=>{"use strict";iee.exports=function(r){return r!==r}});var PT=N((zBe,oee)=>{"use strict";var dke=RT();oee.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:dke}});var see=N((IBe,lee)=>{"use strict";var pke=gd(),yke=PT();lee.exports=function(){var r=yke();return pke(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r}});var vee=N((OBe,cee)=>{"use strict";var mke=J0(),gke=gd(),bke=RT(),uee=PT(),xke=see(),fee=mke(uee(),Number);gke(fee,{getPolyfill:uee,implementation:bke,shim:xke});cee.exports=fee});var Dee=N((BBe,Eee)=>{"use strict";function hee(e,r){return Ake(e)||Tke(e,r)||wke(e,r)||_ke()}function _ke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wke(e,r){if(e){if(typeof e=="string")return dee(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return dee(e,r)}}function dee(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t10)return!0;for(var r=0;r57)return!0}return e.length===10&&e>=Math.pow(2,32)}function V2(e){return Object.keys(e).filter(Rke).concat(j2(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function See(e,r){if(e===r)return 0;for(var t=e.length,a=r.length,n=0,i=Math.min(t,a);n{"use strict";function bo(e){"@babel/helpers - typeof";return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},bo(e)}function Ree(e,r){for(var t=0;t1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n{var xd=1e3,_d=xd*60,wd=_d*60,Td=wd*24,eSe=Td*365.25;Jee.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return rSe(e);if(t==="number"&&isNaN(e)===!1)return r.long?aSe(e):tSe(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function rSe(e){if(e=String(e),!(e.length>100)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(r){var t=parseFloat(r[1]),a=(r[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return t*eSe;case"days":case"day":case"d":return t*Td;case"hours":case"hour":case"hrs":case"hr":case"h":return t*wd;case"minutes":case"minute":case"mins":case"min":case"m":return t*_d;case"seconds":case"second":case"secs":case"sec":case"s":return t*xd;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function tSe(e){return e>=Td?Math.round(e/Td)+"d":e>=wd?Math.round(e/wd)+"h":e>=_d?Math.round(e/_d)+"m":e>=xd?Math.round(e/xd)+"s":e+"ms"}function aSe(e){return r3(e,Td,"day")||r3(e,wd,"hour")||r3(e,_d,"minute")||r3(e,xd,"second")||e+" ms"}function r3(e,r,t){if(!(e{kt=Kee.exports=BT.debug=BT.default=BT;kt.coerce=sSe;kt.disable=oSe;kt.enable=iSe;kt.enabled=lSe;kt.humanize=$ee();kt.names=[];kt.skips=[];kt.formatters={};var OT;function nSe(e){var r=0,t;for(t in e)r=(r<<5)-r+e.charCodeAt(t),r|=0;return kt.colors[Math.abs(r)%kt.colors.length]}function BT(e){function r(){if(r.enabled){var t=r,a=+new Date,n=a-(OT||a);t.diff=n,t.prev=OT,t.curr=a,OT=a;for(var i=new Array(arguments.length),o=0;o{_n=rre.exports=Qee();_n.log=cSe;_n.formatArgs=fSe;_n.save=vSe;_n.load=ere;_n.useColors=uSe;_n.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:hSe();_n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function uSe(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}_n.formatters.j=function(e){try{return JSON.stringify(e)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}};function fSe(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+_n.humanize(this.diff),!!r){var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var a=0,n=0;e[0].replace(/%[a-zA-Z%]/g,function(i){i!=="%%"&&(a++,i==="%c"&&(n=a))}),e.splice(n,0,t)}}function cSe(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function vSe(e){try{e==null?_n.storage.removeItem("debug"):_n.storage.debug=e}catch(r){}}function ere(){var e;try{e=_n.storage.debug}catch(r){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}_n.enable(ere());function hSe(){try{return window.localStorage}catch(e){}}});var fre=N((OBe,ure)=>{var kv=I2(),Es=tre()("stream-parser");ure.exports=pSe;var nre=-1,t3=0,dSe=1,ire=2;function pSe(e){var r=e&&typeof e._transform=="function",t=e&&typeof e._write=="function";if(!r&&!t)throw new Error("must pass a Writable or Transform stream in");Es("extending Parser into stream"),e._bytes=ySe,e._skipBytes=mSe,r&&(e._passthrough=gSe),r?e._transform=xSe:e._write=bSe}function Ad(e){Es("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=nre,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function ySe(e,r){kv(!this._parserCallback,'there is already a "callback" set!'),kv(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||Ad(this),Es("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=t3}function mSe(e,r){kv(!this._parserCallback,'there is already a "callback" set!'),kv(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||Ad(this),Es("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=dSe}function gSe(e,r){kv(!this._parserCallback,'There is already a "callback" set!'),kv(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||Ad(this),Es("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=ire}function bSe(e,r,t){this._parserInit||Ad(this),Es("write(%o bytes)",e.length),typeof r=="function"&&(t=r),lre(this,e,null,t)}function xSe(e,r,t){this._parserInit||Ad(this),Es("transform(%o bytes)",e.length),typeof r!="function"&&(r=this._parserOutput),lre(this,e,r,t)}function ore(e,r,t,a){return e._parserBytesLeft<=0?a(new Error("got data but not currently parsing anything")):r.length<=e._parserBytesLeft?function(){return are(e,r,t,a)}:function(){var n=r.slice(0,e._parserBytesLeft);return are(e,n,t,function(i){if(i)return a(i);if(r.length>n.length)return function(){return ore(e,r.slice(n.length),t,a)}})}}function are(e,r,t,a){if(e._parserBytesLeft-=r.length,Es("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===t3?(e._parserBuffers.push(r),e._parserBuffered+=r.length):e._parserState===ire&&t(r),e._parserBytesLeft===0){var n=e._parserCallback;if(n&&e._parserState===t3&&e._parserBuffers.length>1&&(r=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==t3&&(r=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=nre,e._parserBuffers.splice(0),n){var i=[];r&&i.push(r),t&&i.push(t);var o=n.length>i.length;o&&i.push(sre(a));var l=n.apply(e,i);if(!o||a===l)return a}}else return a}var lre=sre(ore);function sre(e){return function(){for(var r=e.apply(this,arguments);typeof r=="function";)r=r();return r}}});var xt=N(Ll=>{"use strict";var cre=aQ().Transform,_Se=fre();function Md(){cre.call(this,{readableObjectMode:!0})}Md.prototype=Object.create(cre.prototype);Md.prototype.constructor=Md;_Se(Md.prototype);Ll.ParserStream=Md;Ll.sliceEq=function(e,r,t){for(var a=r,n=0;n{"use strict";var Sv=xt().readUInt16BE,UT=xt().readUInt32BE;function kd(e,r){if(e.length<4+r)return null;var t=UT(e,r);return e.length>4&15,a=e[4]&15,n=e[5]>>4&15,i=Sv(e,6),o=8,l=0;li.width||n.width===i.width&&n.height>i.height?n:i}),t=e.reduce(function(n,i){return n.height>i.height||n.height===i.height&&n.width>i.width?n:i}),a;return r.width>t.height||r.width===t.height&&r.height>t.width?a=r:a=t,a}n3.exports.readSizeFromMeta=function(e){var r={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(kSe(e,r),!!r.sizes.length){var t=SSe(r.sizes),a=1;r.transforms.forEach(function(i){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},l={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(i.type==="imir"&&(i.value===0?a=l[a]:(a=l[a],a=o[a],a=o[a])),i.type==="irot")for(var s=0;s{"use strict";function i3(e,r){var t=new Error(e);return t.code=r,t}function qSe(e){try{return decodeURIComponent(escape(e))}catch(r){return e}}function Cl(e,r,t){this.input=e.subarray(r,t),this.start=r;var a=String.fromCharCode.apply(null,this.input.subarray(0,4));if(a!=="II*\0"&&a!=="MM\0*")throw i3("invalid TIFF signature","EBADDATA");this.big_endian=a[0]==="M"}Cl.prototype.each=function(e){this.aborted=!1;var r=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:r}];this.ifds_to_read.length>0&&!this.aborted;){var t=this.ifds_to_read.shift();t.offset&&this.scan_ifd(t.id,t.offset,e)}};Cl.prototype.read_uint16=function(e){var r=this.input;if(e+2>r.length)throw i3("unexpected EOF","EBADDATA");return this.big_endian?r[e]*256+r[e+1]:r[e]+r[e+1]*256};Cl.prototype.read_uint32=function(e){var r=this.input;if(e+4>r.length)throw i3("unexpected EOF","EBADDATA");return this.big_endian?r[e]*16777216+r[e+1]*65536+r[e+2]*256+r[e+3]:r[e]+r[e+1]*256+r[e+2]*65536+r[e+3]*16777216};Cl.prototype.is_subifd_link=function(e,r){return e===0&&r===34665||e===0&&r===34853||e===34665&&r===40965};Cl.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}};Cl.prototype.exif_format_read=function(e,r){var t;switch(e){case 1:case 2:return t=this.input[r],t;case 6:return t=this.input[r],t|(t&128)*33554430;case 3:return t=this.read_uint16(r),t;case 8:return t=this.read_uint16(r),t|(t&32768)*131070;case 4:return t=this.read_uint32(r),t;case 9:return t=this.read_uint32(r),t|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};Cl.prototype.scan_ifd=function(e,r,t){var a=this.read_uint16(r);r+=2;for(var n=0;nthis.input.length)throw i3("unexpected EOF","EBADDATA");for(var v=[],d=f,p=0;p0&&(this.ifds_to_read.push({id:i,offset:v[0]}),c=!0);var y={is_big_endian:this.big_endian,ifd:e,tag:i,format:o,count:l,entry_offset:r+this.start,data_length:u,data_offset:f+this.start,value:v,is_subifd_link:c};if(t(y)===!1){this.aborted=!0;return}r+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(r)})};GT.exports.ExifParser=Cl;GT.exports.get_orientation=function(e){var r=0;try{return new Cl(e,0,e.length).each(function(t){if(t.ifd===0&&t.tag===274&&Array.isArray(t.value))return r=t.value[0],!1}),r}catch(t){return-1}}});var dre=N((GBe,hre)=>{"use strict";var LSe=xt().str2arr,CSe=xt().sliceEq,ESe=xt().readUInt32BE,l3=vre(),DSe=o3(),RSe=LSe("ftyp");hre.exports=function(e){if(CSe(e,4,RSe)){var r=l3.unbox(e,0);if(r){var t=l3.getMimeType(r.data);if(t){for(var a,n=r.end;;){var i=l3.unbox(e,n);if(!i)break;if(n=i.end,i.boxtype==="mdat")return;if(i.boxtype==="meta"){a=i.data;break}}if(a){var o=l3.readSizeFromMeta(a);if(o){var l={width:o.width,height:o.height,type:t.type,mime:t.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(l.variants=o.variants),o.orientation&&(l.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var s=ESe(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+s+4,o.exif_location.offset+o.exif_location.length),f=DSe.get_orientation(u);f>0&&(l.orientation=f)}return l}}}}}}});var mre=N((YBe,yre)=>{"use strict";var PSe=xt().str2arr,FSe=xt().sliceEq,pre=xt().readUInt16LE,NSe=PSe("BM");yre.exports=function(e){if(!(e.length<26)&&FSe(e,0,NSe))return{width:pre(e,18),height:pre(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var wre=N((VBe,_re)=>{"use strict";var xre=xt().str2arr,gre=xt().sliceEq,bre=xt().readUInt16LE,zSe=xre("GIF87a"),ISe=xre("GIF89a");_re.exports=function(e){if(!(e.length<10)&&!(!gre(e,0,zSe)&&!gre(e,0,ISe)))return{width:bre(e,6),height:bre(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var Mre=N((jBe,Are)=>{"use strict";var YT=xt().readUInt16LE,OSe=0,BSe=1,Tre=16;Are.exports=function(e){var r=YT(e,0),t=YT(e,2),a=YT(e,4);if(!(r!==OSe||t!==BSe||!a)){for(var n=[],i={width:0,height:0},o=0;oi.width||s>i.height)&&(i=u)}return{width:i.width,height:i.height,variants:n,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var Sre=N((WBe,kre)=>{"use strict";var VT=xt().readUInt16BE,HSe=xt().str2arr,USe=xt().sliceEq,GSe=o3(),YSe=HSe("Exif\0\0");kre.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var r=2;;){for(;;){if(e.length-r<2)return;if(e[r++]===255)break}for(var t=e[r++],a;t===255;)t=e[r++];if(208<=t&&t<=217||t===1)a=0;else if(192<=t&&t<=254){if(e.length-r<2)return;a=VT(e,r)-2,r+=2}else return;if(t===217||t===218)return;var n;if(t===225&&a>=10&&USe(e,r,YSe)&&(n=GSe.get_orientation(e.slice(r+6,r+a))),a>=5&&192<=t&&t<=207&&t!==196&&t!==200&&t!==204){if(e.length-r0&&(i.orientation=n),i}r+=a}}});var Dre=N((ZBe,Ere)=>{"use strict";var Cre=xt().str2arr,qre=xt().sliceEq,Lre=xt().readUInt32BE,VSe=Cre(`\x89PNG\r +`));var l=new Cs({actual:e,expected:r,message:t,operator:n,stackStartFn:a});throw l.generatedMessage=o,l}}Bt.match=function e(r,t,a){Zee(r,t,a,e,"match")};Bt.doesNotMatch=function e(r,t,a){Zee(r,t,a,e,"doesNotMatch")};function Xee(){for(var e=arguments.length,r=new Array(e),t=0;t{var Td=1e3,Ad=Td*60,Md=Ad*60,kd=Md*24,iSe=kd*365.25;$ee.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return oSe(e);if(t==="number"&&isNaN(e)===!1)return r.long?sSe(e):lSe(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function oSe(e){if(e=String(e),!(e.length>100)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(r){var t=parseFloat(r[1]),a=(r[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return t*iSe;case"days":case"day":case"d":return t*kd;case"hours":case"hour":case"hrs":case"hr":case"h":return t*Md;case"minutes":case"minute":case"mins":case"min":case"m":return t*Ad;case"seconds":case"second":case"secs":case"sec":case"s":return t*Td;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function lSe(e){return e>=kd?Math.round(e/kd)+"d":e>=Md?Math.round(e/Md)+"h":e>=Ad?Math.round(e/Ad)+"m":e>=Td?Math.round(e/Td)+"s":e+"ms"}function sSe(e){return r3(e,kd,"day")||r3(e,Md,"hour")||r3(e,Ad,"minute")||r3(e,Td,"second")||e+" ms"}function r3(e,r,t){if(!(e{Lt=Qee.exports=HT.debug=HT.default=HT;Lt.coerce=hSe;Lt.disable=cSe;Lt.enable=fSe;Lt.enabled=vSe;Lt.humanize=Kee();Lt.names=[];Lt.skips=[];Lt.formatters={};var BT;function uSe(e){var r=0,t;for(t in e)r=(r<<5)-r+e.charCodeAt(t),r|=0;return Lt.colors[Math.abs(r)%Lt.colors.length]}function HT(e){function r(){if(r.enabled){var t=r,a=+new Date,n=a-(BT||a);t.diff=n,t.prev=BT,t.curr=a,BT=a;for(var i=new Array(arguments.length),o=0;o{_n=tre.exports=ere();_n.log=ySe;_n.formatArgs=pSe;_n.save=mSe;_n.load=rre;_n.useColors=dSe;_n.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:gSe();_n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function dSe(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}_n.formatters.j=function(e){try{return JSON.stringify(e)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}};function pSe(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+_n.humanize(this.diff),!!r){var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var a=0,n=0;e[0].replace(/%[a-zA-Z%]/g,function(i){i!=="%%"&&(a++,i==="%c"&&(n=a))}),e.splice(n,0,t)}}function ySe(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function mSe(e){try{e==null?_n.storage.removeItem("debug"):_n.storage.debug=e}catch(r){}}function rre(){var e;try{e=_n.storage.debug}catch(r){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}_n.enable(rre());function gSe(){try{return window.localStorage}catch(e){}}});var cre=N((GBe,fre)=>{var kv=I2(),Es=are()("stream-parser");fre.exports=xSe;var ire=-1,t3=0,bSe=1,ore=2;function xSe(e){var r=e&&typeof e._transform=="function",t=e&&typeof e._write=="function";if(!r&&!t)throw new Error("must pass a Writable or Transform stream in");Es("extending Parser into stream"),e._bytes=_Se,e._skipBytes=wSe,r&&(e._passthrough=TSe),r?e._transform=MSe:e._write=ASe}function Sd(e){Es("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=ire,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function _Se(e,r){kv(!this._parserCallback,'there is already a "callback" set!'),kv(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||Sd(this),Es("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=t3}function wSe(e,r){kv(!this._parserCallback,'there is already a "callback" set!'),kv(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||Sd(this),Es("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=bSe}function TSe(e,r){kv(!this._parserCallback,'There is already a "callback" set!'),kv(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||Sd(this),Es("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=ore}function ASe(e,r,t){this._parserInit||Sd(this),Es("write(%o bytes)",e.length),typeof r=="function"&&(t=r),sre(this,e,null,t)}function MSe(e,r,t){this._parserInit||Sd(this),Es("transform(%o bytes)",e.length),typeof r!="function"&&(r=this._parserOutput),sre(this,e,r,t)}function lre(e,r,t,a){return e._parserBytesLeft<=0?a(new Error("got data but not currently parsing anything")):r.length<=e._parserBytesLeft?function(){return nre(e,r,t,a)}:function(){var n=r.slice(0,e._parserBytesLeft);return nre(e,n,t,function(i){if(i)return a(i);if(r.length>n.length)return function(){return lre(e,r.slice(n.length),t,a)}})}}function nre(e,r,t,a){if(e._parserBytesLeft-=r.length,Es("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===t3?(e._parserBuffers.push(r),e._parserBuffered+=r.length):e._parserState===ore&&t(r),e._parserBytesLeft===0){var n=e._parserCallback;if(n&&e._parserState===t3&&e._parserBuffers.length>1&&(r=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==t3&&(r=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=ire,e._parserBuffers.splice(0),n){var i=[];r&&i.push(r),t&&i.push(t);var o=n.length>i.length;o&&i.push(ure(a));var l=n.apply(e,i);if(!o||a===l)return a}}else return a}var sre=ure(lre);function ure(e){return function(){for(var r=e.apply(this,arguments);typeof r=="function";)r=r();return r}}});var _t=N(Ll=>{"use strict";var vre=nQ().Transform,kSe=cre();function qd(){vre.call(this,{readableObjectMode:!0})}qd.prototype=Object.create(vre.prototype);qd.prototype.constructor=qd;kSe(qd.prototype);Ll.ParserStream=qd;Ll.sliceEq=function(e,r,t){for(var a=r,n=0;n{"use strict";var Sv=_t().readUInt16BE,GT=_t().readUInt32BE;function Ld(e,r){if(e.length<4+r)return null;var t=GT(e,r);return e.length>4&15,a=e[4]&15,n=e[5]>>4&15,i=Sv(e,6),o=8,l=0;li.width||n.width===i.width&&n.height>i.height?n:i}),t=e.reduce(function(n,i){return n.height>i.height||n.height===i.height&&n.width>i.width?n:i}),a;return r.width>t.height||r.width===t.height&&r.height>t.width?a=r:a=t,a}n3.exports.readSizeFromMeta=function(e){var r={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(ESe(e,r),!!r.sizes.length){var t=DSe(r.sizes),a=1;r.transforms.forEach(function(i){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},l={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(i.type==="imir"&&(i.value===0?a=l[a]:(a=l[a],a=o[a],a=o[a])),i.type==="irot")for(var s=0;s{"use strict";function i3(e,r){var t=new Error(e);return t.code=r,t}function RSe(e){try{return decodeURIComponent(escape(e))}catch(r){return e}}function Cl(e,r,t){this.input=e.subarray(r,t),this.start=r;var a=String.fromCharCode.apply(null,this.input.subarray(0,4));if(a!=="II*\0"&&a!=="MM\0*")throw i3("invalid TIFF signature","EBADDATA");this.big_endian=a[0]==="M"}Cl.prototype.each=function(e){this.aborted=!1;var r=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:r}];this.ifds_to_read.length>0&&!this.aborted;){var t=this.ifds_to_read.shift();t.offset&&this.scan_ifd(t.id,t.offset,e)}};Cl.prototype.read_uint16=function(e){var r=this.input;if(e+2>r.length)throw i3("unexpected EOF","EBADDATA");return this.big_endian?r[e]*256+r[e+1]:r[e]+r[e+1]*256};Cl.prototype.read_uint32=function(e){var r=this.input;if(e+4>r.length)throw i3("unexpected EOF","EBADDATA");return this.big_endian?r[e]*16777216+r[e+1]*65536+r[e+2]*256+r[e+3]:r[e]+r[e+1]*256+r[e+2]*65536+r[e+3]*16777216};Cl.prototype.is_subifd_link=function(e,r){return e===0&&r===34665||e===0&&r===34853||e===34665&&r===40965};Cl.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}};Cl.prototype.exif_format_read=function(e,r){var t;switch(e){case 1:case 2:return t=this.input[r],t;case 6:return t=this.input[r],t|(t&128)*33554430;case 3:return t=this.read_uint16(r),t;case 8:return t=this.read_uint16(r),t|(t&32768)*131070;case 4:return t=this.read_uint32(r),t;case 9:return t=this.read_uint32(r),t|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};Cl.prototype.scan_ifd=function(e,r,t){var a=this.read_uint16(r);r+=2;for(var n=0;nthis.input.length)throw i3("unexpected EOF","EBADDATA");for(var v=[],d=f,p=0;p0&&(this.ifds_to_read.push({id:i,offset:v[0]}),c=!0);var y={is_big_endian:this.big_endian,ifd:e,tag:i,format:o,count:l,entry_offset:r+this.start,data_length:u,data_offset:f+this.start,value:v,is_subifd_link:c};if(t(y)===!1){this.aborted=!0;return}r+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(r)})};YT.exports.ExifParser=Cl;YT.exports.get_orientation=function(e){var r=0;try{return new Cl(e,0,e.length).each(function(t){if(t.ifd===0&&t.tag===274&&Array.isArray(t.value))return r=t.value[0],!1}),r}catch(t){return-1}}});var pre=N((jBe,dre)=>{"use strict";var PSe=_t().str2arr,FSe=_t().sliceEq,NSe=_t().readUInt32BE,l3=hre(),zSe=o3(),ISe=PSe("ftyp");dre.exports=function(e){if(FSe(e,4,ISe)){var r=l3.unbox(e,0);if(r){var t=l3.getMimeType(r.data);if(t){for(var a,n=r.end;;){var i=l3.unbox(e,n);if(!i)break;if(n=i.end,i.boxtype==="mdat")return;if(i.boxtype==="meta"){a=i.data;break}}if(a){var o=l3.readSizeFromMeta(a);if(o){var l={width:o.width,height:o.height,type:t.type,mime:t.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(l.variants=o.variants),o.orientation&&(l.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var s=NSe(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+s+4,o.exif_location.offset+o.exif_location.length),f=zSe.get_orientation(u);f>0&&(l.orientation=f)}return l}}}}}}});var gre=N((ZBe,mre)=>{"use strict";var OSe=_t().str2arr,BSe=_t().sliceEq,yre=_t().readUInt16LE,HSe=OSe("BM");mre.exports=function(e){if(!(e.length<26)&&BSe(e,0,HSe))return{width:yre(e,18),height:yre(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var Tre=N((XBe,wre)=>{"use strict";var _re=_t().str2arr,bre=_t().sliceEq,xre=_t().readUInt16LE,USe=_re("GIF87a"),GSe=_re("GIF89a");wre.exports=function(e){if(!(e.length<10)&&!(!bre(e,0,USe)&&!bre(e,0,GSe)))return{width:xre(e,6),height:xre(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var kre=N((JBe,Mre)=>{"use strict";var VT=_t().readUInt16LE,YSe=0,VSe=1,Are=16;Mre.exports=function(e){var r=VT(e,0),t=VT(e,2),a=VT(e,4);if(!(r!==YSe||t!==VSe||!a)){for(var n=[],i={width:0,height:0},o=0;oi.width||s>i.height)&&(i=u)}return{width:i.width,height:i.height,variants:n,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var qre=N(($Be,Sre)=>{"use strict";var WT=_t().readUInt16BE,WSe=_t().str2arr,jSe=_t().sliceEq,ZSe=o3(),XSe=WSe("Exif\0\0");Sre.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var r=2;;){for(;;){if(e.length-r<2)return;if(e[r++]===255)break}for(var t=e[r++],a;t===255;)t=e[r++];if(208<=t&&t<=217||t===1)a=0;else if(192<=t&&t<=254){if(e.length-r<2)return;a=WT(e,r)-2,r+=2}else return;if(t===217||t===218)return;var n;if(t===225&&a>=10&&jSe(e,r,XSe)&&(n=ZSe.get_orientation(e.slice(r+6,r+a))),a>=5&&192<=t&&t<=207&&t!==196&&t!==200&&t!==204){if(e.length-r0&&(i.orientation=n),i}r+=a}}});var Rre=N((KBe,Dre)=>{"use strict";var Ere=_t().str2arr,Lre=_t().sliceEq,Cre=_t().readUInt32BE,JSe=Ere(`\x89PNG\r  -`),jSe=Cre("IHDR");Ere.exports=function(e){if(!(e.length<24)&&qre(e,0,VSe)&&qre(e,12,jSe))return{width:Lre(e,16),height:Lre(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var Fre=N((XBe,Pre)=>{"use strict";var WSe=xt().str2arr,ZSe=xt().sliceEq,Rre=xt().readUInt32BE,XSe=WSe("8BPS\0");Pre.exports=function(e){if(!(e.length<22)&&ZSe(e,0,XSe))return{width:Rre(e,18),height:Rre(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var Ire=N((JBe,zre)=>{"use strict";function JSe(e){return e===32||e===9||e===13||e===10}function qv(e){return typeof e=="number"&&isFinite(e)&&e>0}function $Se(e){var r=0,t=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(r=3);r]*>/,QSe=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,eqe=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,rqe=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,tqe=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,Nre=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function aqe(e){var r=e.match(eqe),t=e.match(rqe),a=e.match(tqe);return{width:r&&(r[1]||r[2]),height:t&&(t[1]||t[2]),viewbox:a&&(a[1]||a[2])}}function Jo(e){return Nre.test(e)?e.match(Nre)[0]:"px"}zre.exports=function(e){if($Se(e)){for(var r="",t=0;t{"use strict";var Hre=xt().str2arr,Ore=xt().sliceEq,nqe=xt().readUInt16LE,iqe=xt().readUInt16BE,oqe=xt().readUInt32LE,lqe=xt().readUInt32BE,sqe=Hre("II*\0"),uqe=Hre("MM\0*");function s3(e,r,t){return t?iqe(e,r):nqe(e,r)}function jT(e,r,t){return t?lqe(e,r):oqe(e,r)}function Bre(e,r,t){var a=s3(e,r+2,t),n=jT(e,r+4,t);return n!==1||a!==3&&a!==4?null:a===3?s3(e,r+8,t):jT(e,r+8,t)}Ure.exports=function(e){if(!(e.length<8)&&!(!Ore(e,0,sqe)&&!Ore(e,0,uqe))){var r=e[0]===77,t=jT(e,4,r)-8;if(!(t<0)){var a=t+8;if(!(e.length-a<2)){var n=s3(e,a+0,r)*12;if(!(n<=0)&&(a+=2,!(e.length-a{"use strict";var jre=xt().str2arr,Yre=xt().sliceEq,Vre=xt().readUInt16LE,WT=xt().readUInt32LE,fqe=o3(),cqe=jre("RIFF"),vqe=jre("WEBP");function hqe(e,r){if(!(e[r+3]!==157||e[r+4]!==1||e[r+5]!==42))return{width:Vre(e,r+6)&16383,height:Vre(e,r+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function dqe(e,r){if(e[r]===47){var t=WT(e,r+1);return{width:(t&16383)+1,height:(t>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function pqe(e,r){return{width:(e[r+6]<<16|e[r+5]<<8|e[r+4])+1,height:(e[r+9]<e.length)){for(;r+8=10?t=t||hqe(e,r+8):i==="VP8L"&&o>=9?t=t||dqe(e,r+8):i==="VP8X"&&o>=10?t=t||pqe(e,r+8):i==="EXIF"&&(a=fqe.get_orientation(e.slice(r+8,r+8+o)),r=1/0),r+=8+o}if(t)return a>0&&(t.orientation=a),t}}}});var Jre=N((QBe,Xre)=>{"use strict";Xre.exports={avif:dre(),bmp:mre(),gif:wre(),ico:Mre(),jpeg:Sre(),png:Dre(),psd:Fre(),svg:Ire(),tiff:Gre(),webp:Zre()}});var $re=N((eHe,XT)=>{"use strict";var ZT=Jre();function yqe(e){for(var r=Object.keys(ZT),t=0;t{"use strict";var mqe=$re(),gqe=yl().IMAGE_URL_PREFIX,bqe=ov().Buffer;Kre.getImageSize=function(e){var r=e.replace(gqe,""),t=new bqe(r,"base64");return mqe(t)}});var tte=N((tHe,rte)=>{"use strict";var ete=Ee(),xqe=ev(),_qe=Rr(),u3=Or(),wqe=Ee().maxRowLength,Tqe=Qre().getImageSize;rte.exports=function(r,t){var a,n;if(t._hasZ)a=t.z.length,n=wqe(t.z);else if(t._hasSource){var i=Tqe(t.source);a=i.height,n=i.width}var o=u3.getFromId(r,t.xaxis||"x"),l=u3.getFromId(r,t.yaxis||"y"),s=o.d2c(t.x0)-t.dx/2,u=l.d2c(t.y0)-t.dy/2,f,c=[s,s+n*t.dx],v=[u,u+a*t.dy];if(o&&o.type==="log")for(f=0;f{"use strict";var Sqe=Sr(),nf=Ee(),ate=nf.strTranslate,qqe=ll(),Lqe=ev(),Cqe=Kw(),Eqe=pg().STYLE;nte.exports=function(r,t,a,n){var i=t.xaxis,o=t.yaxis,l=!r._context._exportedPlot&&Cqe();nf.makeTraceGroups(n,a,"im").each(function(s){var u=Sqe.select(this),f=s[0],c=f.trace,v=(c.zsmooth==="fast"||c.zsmooth===!1&&l)&&!c._hasZ&&c._hasSource&&i.type==="linear"&&o.type==="linear";c._realImage=v;var d=f.z,p=f.x0,m=f.y0,y=f.w,x=f.h,w=c.dx,_=c.dy,b,T,k,M,S,E;for(E=0;b===void 0&&E0;)T=i.c2p(p+E*w),E--;for(E=0;M===void 0&&E0;)S=o.c2p(m+E*_),E--;if(TY[0];if(J||Z){var re=b+P/2,fe=M+R/2;G+="transform:"+ate(re+"px",fe+"px")+"scale("+(J?-1:1)+","+(Z?-1:1)+")"+ate(-re+"px",-fe+"px")+";"}}V.attr("style",G);var ie=new Promise(function(ue){if(c._hasZ)ue();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===y&&c._canvas.el.height===x&&c._canvas.source===c.source)ue();else{var K=document.createElement("canvas");K.width=y,K.height=x;var ye=K.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var se=c._image;se.onload=function(){ye.drawImage(se,0,0),c._canvas={el:K,source:c.source},ue()},se.setAttribute("src",c.source)}}).then(function(){var ue,K;if(c._hasZ)K=B(function(ve,oe){var ce=d[oe][ve];return nf.isTypedArray(ce)&&(ce=Array.from(ce)),ce}),ue=K.toDataURL("image/png");else if(c._hasSource)if(v)ue=c.source;else{var ye=c._canvas.el.getContext("2d",{willReadFrequently:!0}),se=ye.getImageData(0,0,y,x).data;K=B(function(ve,oe){var ce=4*(oe*y+ve);return[se[ce],se[ce+1],se[ce+2],se[ce+3]]}),ue=K.toDataURL("image/png")}V.attr({"xlink:href":ue,height:R,width:P,x:b,y:M})});r._promises.push(ie)})}});var lte=N((nHe,ote)=>{"use strict";var Dqe=Sr();ote.exports=function(r){Dqe.select(r).selectAll(".im image").style("opacity",function(t){return t[0].trace.opacity})}});var cte=N((iHe,fte)=>{"use strict";var ste=Pn(),ute=Ee(),f3=ute.isArrayOrTypedArray,Rqe=ev();fte.exports=function(r,t,a){var n=r.cd[0],i=n.trace,o=r.xa,l=r.ya;if(!(ste.inbox(t-n.x0,t-(n.x0+n.w*i.dx),0)>0||ste.inbox(a-n.y0,a-(n.y0+n.h*i.dy),0)>0)){var s=Math.floor((t-n.x0)/i.dx),u=Math.floor(Math.abs(a-n.y0)/i.dy),f;if(i._hasZ?f=n.z[u][s]:i._hasSource&&(f=i._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(s,u,1,1).data),!!f){var c=n.hi||i.hoverinfo,v;if(c){var d=c.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(v=!0)}var p=Rqe.colormodel[i.colormodel],m=p.colormodel||i.colormodel,y=m.length,x=i._scaler(f),w=p.suffix,_=[];(i.hovertemplate||v)&&(_.push("["+[x[0]+w[0],x[1]+w[1],x[2]+w[2]].join(", ")),y===4&&_.push(", "+x[3]+w[3]),_.push("]"),_=_.join(""),r.extraText=m.toUpperCase()+": "+_);var b;f3(i.hovertext)&&f3(i.hovertext[u])?b=i.hovertext[u][s]:f3(i.text)&&f3(i.text[u])&&(b=i.text[u][s]);var T=l.c2p(n.y0+(u+.5)*i.dy),k=n.x0+(s+.5)*i.dx,M=n.y0+(u+.5)*i.dy,S="["+f.slice(0,i.colormodel.length).join(", ")+"]";return[ute.extendFlat(r,{index:[u,s],x0:o.c2p(n.x0+s*i.dx),x1:o.c2p(n.x0+(s+1)*i.dx),y0:T,y1:T,color:x,xVal:k,xLabelVal:k,yVal:M,yLabelVal:M,zLabelVal:S,text:b,hovertemplateLabels:{zLabel:S,colorLabel:_,"color[0]Label":x[0]+w[0],"color[1]Label":x[1]+w[1],"color[2]Label":x[2]+w[2],"color[3]Label":x[3]+w[3]}})]}}}});var hte=N((oHe,vte)=>{"use strict";vte.exports=function(r,t){return"xVal"in t&&(r.x=t.xVal),"yVal"in t&&(r.y=t.yVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r.color=t.color,r.colormodel=t.trace.colormodel,r.z||(r.z=t.color),r}});var pte=N((lHe,dte)=>{"use strict";dte.exports={attributes:V6(),supplyDefaults:cX(),calc:tte(),plot:ite(),style:lte(),hoverPoints:cte(),eventData:hte(),moduleType:"trace",name:"image",basePlotModule:qi(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var mte=N((sHe,yte)=>{"use strict";yte.exports=pte()});var JT=N((uHe,gte)=>{"use strict";var Pqe=mn(),Fqe=Rc().attributes,Nqe=fa(),zqe=li(),Iqe=La().hovertemplateAttrs,Oqe=La().texttemplateAttrs,Sd=bt().extendFlat,Bqe=si().pattern,c3=Nqe({editType:"plot",arrayOk:!0,colorEditType:"plot"});gte.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:zqe.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:Bqe,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:Sd({},Pqe.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Iqe({},{keys:["label","color","value","percent","text"]}),texttemplate:Oqe({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:Sd({},c3,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:Sd({},c3,{}),outsidetextfont:Sd({},c3,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:Sd({},c3,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:Fqe({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var wte=N((fHe,_te)=>{"use strict";var Hqe=Rr(),qd=Ee(),Uqe=JT(),Gqe=Rc().defaults,Yqe=zu().handleText,Vqe=Ee().coercePattern;function bte(e,r){var t=qd.isArrayOrTypedArray(e),a=qd.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,o=0;o0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function xte(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var o=a("marker.colors");Vqe(a,"marker.pattern",o),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function jqe(e,r,t,a){function n(w,_){return qd.coerce(e,r,Uqe,w,_)}var i=n("labels"),o=n("values"),l=bte(i,o),s=l.len;if(r._hasLabels=l.hasLabels,r._hasValues=l.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,xte(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate"),c;if(f||(c=n("textinfo",qd.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),f||c&&c!=="none"){var v=n("textposition");Yqe(e,r,a,n,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(v)||v==="auto",p=d||v==="outside";p&&n("automargin"),(v==="inside"||v==="auto"||Array.isArray(v))&&n("insidetextorientation")}else c==="none"&&n("textposition","none");Gqe(r,a,n);var m=n("hole"),y=n("title.text");if(y){var x=n("title.position",m?"middle center":"top center");!m&&x==="middle center"&&(r.title.position="top center"),qd.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}_te.exports={handleLabelsAndValues:bte,handleMarkerDefaults:xte,supplyDefaults:jqe}});var $T=N((cHe,Tte)=>{"use strict";Tte.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var Mte=N((vHe,Ate)=>{"use strict";var Wqe=Ee(),Zqe=$T();Ate.exports=function(r,t){function a(n,i){return Wqe.coerce(r,t,Zqe,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var QT=N((hHe,qte)=>{"use strict";var Xqe=Rr(),KT=kn(),Jqe=Tr(),$qe={};function Kqe(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,o=r.marker.colors||[],l=r.values,s=r._length,u=r._hasValues&&s,f,c;if(r.dlabel)for(i=new Array(s),f=0;f=0});var b=r.type==="funnelarea"?m:r.sort;return b&&t.sort(function(T,k){return k.v-T.v}),t[0]&&(t[0].vTotal=p),t}function kte(e){return function(t,a){return!t||(t=KT(t),!t.isValid())?!1:(t=Jqe.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function Qqe(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],o=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=Ste(i,$qe));for(var l=0,s=0;s{"use strict";var eLe=qo().appendArrayMultiPointValues;Lte.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),eLe(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var Kte=N((pHe,$te)=>{"use strict";var Yn=Sr(),rLe=ea(),v3=Pn(),Nte=Tr(),El=Wr(),ja=Ee(),tLe=ja.strScale,Ete=ja.strTranslate,e8=Ea(),zte=_0(),aLe=zte.recordMinTextSize,nLe=zte.clearMinTextSize,Ite=Jm().TEXTPAD,Mr=H1(),h3=Cte(),Dte=Ee().isValidTextValue;function iLe(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;nLe("pie",a),Hte(r,e),Zte(r,n);var i=ja.makeTraceGroups(a._pielayer,r,"trace").each(function(o){var l=Yn.select(this),s=o[0],u=s.trace;dLe(o),l.attr("stroke-linejoin","round"),l.each(function(){var f=Yn.select(this).selectAll("g.slice").data(o);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],v=!1;f.each(function(b,T){if(b.hidden){Yn.select(this).selectAll("path,g").remove();return}b.pointNumber=b.i,b.curveNumber=u.index,c[b.pxmid[1]<0?0:1][b.pxmid[0]<0?0:1].push(b);var k=s.cx,M=s.cy,S=Yn.select(this),E=S.selectAll("path.surface").data([b]);if(E.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),S.call(Ote,e,o),u.pull){var D=+Mr.castOption(u.pull,b.pts)||0;D>0&&(k+=D*b.pxmid[0],M+=D*b.pxmid[1])}b.cxFinal=k,b.cyFinal=M;function P(U,Y,J,Z){var re=Z*(Y[0]-U[0]),fe=Z*(Y[1]-U[1]);return"a"+Z*s.r+","+Z*s.r+" 0 "+b.largeArc+(J?" 1 ":" 0 ")+re+","+fe}var R=u.hole;if(b.v===s.vTotal){var z="M"+(k+b.px0[0])+","+(M+b.px0[1])+P(b.px0,b.pxmid,!0,1)+P(b.pxmid,b.px0,!0,1)+"Z";R?E.attr("d","M"+(k+R*b.px0[0])+","+(M+R*b.px0[1])+P(b.px0,b.pxmid,!1,R)+P(b.pxmid,b.px0,!1,R)+"Z"+z):E.attr("d",z)}else{var O=P(b.px0,b.px1,!0,1);if(R){var B=1-R;E.attr("d","M"+(k+R*b.px1[0])+","+(M+R*b.px1[1])+P(b.px1,b.px0,!1,R)+"l"+B*b.px0[0]+","+B*b.px0[1]+O+"Z")}else E.attr("d","M"+k+","+M+"l"+b.px0[0]+","+b.px0[1]+O+"Z")}Xte(e,b,s);var V=Mr.castOption(u.textposition,b.pts),G=S.selectAll("g.slicetext").data(b.text&&V!=="none"?[0]:[]);G.enter().append("g").classed("slicetext",!0),G.exit().remove(),G.each(function(){var U=ja.ensureSingle(Yn.select(this),"text","",function(K){K.attr("data-notex",1)}),Y=ja.ensureUniformFontSize(e,V==="outside"?lLe(u,b,a.font):Bte(u,b,a.font));U.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(El.font,Y).call(e8.convertToTspans,e);var J=El.bBox(U.node()),Z;if(V==="outside")Z=Fte(J,b);else if(Z=Ute(J,b,s),V==="auto"&&Z.scale<1){var re=ja.ensureUniformFontSize(e,u.outsidetextfont);U.call(El.font,re),J=El.bBox(U.node()),Z=Fte(J,b)}var fe=Z.textPosAngle,ie=fe===void 0?b.pxmid:d3(s.r,fe);if(Z.targetX=k+ie[0]*Z.rCenter+(Z.x||0),Z.targetY=M+ie[1]*Z.rCenter+(Z.y||0),Jte(Z,J),Z.outside){var ue=Z.targetY;b.yLabelMin=ue-J.height/2,b.yLabelMid=ue,b.yLabelMax=ue+J.height/2,b.labelExtraX=0,b.labelExtraY=0,v=!0}Z.fontSize=Y.size,aLe(u.type,Z,a),o[T].transform=Z,ja.setTransormAndDisplay(U,Z)})});var d=Yn.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var b=ja.ensureSingle(Yn.select(this),"text","",function(M){M.attr("data-notex",1)}),T=u.title.text;u._meta&&(T=ja.templateString(T,u._meta)),b.text(T).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(El.font,u.title.font).call(e8.convertToTspans,e);var k;u.title.position==="middle center"?k=fLe(s):k=jte(s,n),b.attr("transform",Ete(k.x,k.y)+tLe(Math.min(1,k.scale))+Ete(k.tx,k.ty))}),v&&vLe(c,u),oLe(f,u),v&&u.automargin){var p=El.bBox(l.node()),m=u.domain,y=n.w*(m.x[1]-m.x[0]),x=n.h*(m.y[1]-m.y[0]),w=(.5*y-s.r)/n.w,_=(.5*x-s.r)/n.h;rLe.autoMargin(e,"pie."+u.uid+".automargin",{xl:m.x[0]-w,xr:m.x[1]+w,yb:m.y[0]-_,yt:m.y[1]+_,l:Math.max(s.cx-s.r-p.left,0),r:Math.max(p.right-(s.cx+s.r),0),b:Math.max(p.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-p.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var o=Yn.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function oLe(e,r){e.each(function(t){var a=Yn.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,ja.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],o=t.cyFinal+t.pxmid[1],l="M"+i+","+o,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?l+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):l+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else l+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;ja.ensureSingle(a,"path","textline").call(Nte.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:l,fill:"none"})})}function Ote(e,r,t){var a=t[0],n=a.cx,i=a.cy,o=a.trace,l=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[o.index];if(!(r._dragging||u.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=v3.castHoverinfo({hoverinfo:[Mr.castOption(c,s.pts)],_module:o._module},u,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var v=s.rInscribed||0,d=n+s.pxmid[0]*(1-v),p=i+s.pxmid[1]*(1-v),m=u.separators,y=[];if(c&&c.indexOf("label")!==-1&&y.push(s.label),s.text=Mr.castOption(f.hovertext||f.text,s.pts),c&&c.indexOf("text")!==-1){var x=s.text;ja.isValidTextValue(x)&&y.push(x)}s.value=s.v,s.valueLabel=Mr.formatPieValue(s.v,m),c&&c.indexOf("value")!==-1&&y.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=Mr.formatPiePercent(s.percent,m),c&&c.indexOf("percent")!==-1&&y.push(s.percentLabel);var w=f.hoverlabel,_=w.font,b=[];v3.loneHover({trace:o,x0:d-v*a.r,x1:d+v*a.r,y:p,_x0:l?n+s.TL[0]:d-v*a.r,_x1:l?n+s.TR[0]:d+v*a.r,_y0:l?i+s.TL[1]:p-v*a.r,_y1:l?i+s.BL[1]:p+v*a.r,text:y.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:Mr.castOption(w.bgcolor,s.pts)||s.color,borderColor:Mr.castOption(w.bordercolor,s.pts),fontFamily:Mr.castOption(_.family,s.pts),fontSize:Mr.castOption(_.size,s.pts),fontColor:Mr.castOption(_.color,s.pts),nameLength:Mr.castOption(w.namelength,s.pts),textAlign:Mr.castOption(w.align,s.pts),hovertemplate:Mr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[h3(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:b}),s.bbox=b[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,r.emit("plotly_hover",{points:[h3(s,f)],event:Yn.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[o.index],c=Yn.select(this).datum();o._hasHoverEvent&&(s.originalEvent=Yn.event,r.emit("plotly_unhover",{points:[h3(c,f)],event:Yn.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(v3.loneUnhover(u._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[o.index];r._dragging||u.hovermode===!1||(r._hoverdata=[h3(s,f)],v3.click(r,Yn.event))})}function lLe(e,r,t){var a=Mr.castOption(e.outsidetextfont.color,r.pts)||Mr.castOption(e.textfont.color,r.pts)||t.color,n=Mr.castOption(e.outsidetextfont.family,r.pts)||Mr.castOption(e.textfont.family,r.pts)||t.family,i=Mr.castOption(e.outsidetextfont.size,r.pts)||Mr.castOption(e.textfont.size,r.pts)||t.size,o=Mr.castOption(e.outsidetextfont.weight,r.pts)||Mr.castOption(e.textfont.weight,r.pts)||t.weight,l=Mr.castOption(e.outsidetextfont.style,r.pts)||Mr.castOption(e.textfont.style,r.pts)||t.style,s=Mr.castOption(e.outsidetextfont.variant,r.pts)||Mr.castOption(e.textfont.variant,r.pts)||t.variant,u=Mr.castOption(e.outsidetextfont.textcase,r.pts)||Mr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Mr.castOption(e.outsidetextfont.lineposition,r.pts)||Mr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Mr.castOption(e.outsidetextfont.shadow,r.pts)||Mr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:o,style:l,variant:s,textcase:u,lineposition:f,shadow:c}}function Bte(e,r,t){var a=Mr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=Mr.castOption(e._input.textfont.color,r.pts));var n=Mr.castOption(e.insidetextfont.family,r.pts)||Mr.castOption(e.textfont.family,r.pts)||t.family,i=Mr.castOption(e.insidetextfont.size,r.pts)||Mr.castOption(e.textfont.size,r.pts)||t.size,o=Mr.castOption(e.insidetextfont.weight,r.pts)||Mr.castOption(e.textfont.weight,r.pts)||t.weight,l=Mr.castOption(e.insidetextfont.style,r.pts)||Mr.castOption(e.textfont.style,r.pts)||t.style,s=Mr.castOption(e.insidetextfont.variant,r.pts)||Mr.castOption(e.textfont.variant,r.pts)||t.variant,u=Mr.castOption(e.insidetextfont.textcase,r.pts)||Mr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Mr.castOption(e.insidetextfont.lineposition,r.pts)||Mr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Mr.castOption(e.insidetextfont.shadow,r.pts)||Mr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||Nte.contrast(r.color),family:n,size:i,weight:o,style:l,variant:s,textcase:u,lineposition:f,shadow:c}}function Hte(e,r){for(var t,a,n=0;n=-4;w-=2)x(Math.PI*w,"tan");for(w=4;w>=-4;w-=2)x(Math.PI*(w+1),"tan")}if(c||d){for(w=4;w>=-4;w-=2)x(Math.PI*(w+1.5),"rad");for(w=4;w>=-4;w-=2)x(Math.PI*(w+.5),"rad")}}if(l||p||c){var _=Math.sqrt(e.width*e.width+e.height*e.height);if(y={scale:n*a*2/_,rCenter:1-n,rotate:0},y.textPosAngle=(r.startangle+r.stopangle)/2,y.scale>=1)return y;m.push(y)}(p||d)&&(y=Rte(e,a,o,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y)),(p||v)&&(y=Pte(e,a,o,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y));for(var b=0,T=0,k=0;k=1)break}return m[b]}function sLe(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function fLe(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function jte(e,r){var t=1,a=1,n,i=e.trace,o={x:e.cx,y:e.cy},l={tx:0,ty:0};l.ty+=i.title.font.size,n=Wte(i),i.title.position.indexOf("top")!==-1?(o.y-=(1+n)*e.r,l.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(o.y+=(1+n)*e.r);var s=cLe(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,o.x-=(1+n)*s,l.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,o.x+=(1+n)*s,l.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=r8(e,r)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(t,a),tx:l.tx,ty:l.ty}}function cLe(e,r){return e/(r===void 0?1:r)}function r8(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function Wte(e){var r=e.pull;if(!r)return 0;var t;if(ja.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function vLe(e,r){var t,a,n,i,o,l,s,u,f,c,v,d,p;function m(_,b){return _.pxmid[1]-b.pxmid[1]}function y(_,b){return b.pxmid[1]-_.pxmid[1]}function x(_,b){b||(b={});var T=b.labelExtraY+(a?b.yLabelMax:b.yLabelMin),k=a?_.yLabelMin:_.yLabelMax,M=a?_.yLabelMax:_.yLabelMin,S=_.cyFinal+o(_.px0[1],_.px1[1]),E=T-k,D,P,R,z,O,B;if(E*s>0&&(_.labelExtraY=E),!!ja.isArrayOrTypedArray(r.pull))for(P=0;P=(Mr.castOption(r.pull,R.pts)||0))&&((_.pxmid[1]-R.pxmid[1])*s>0?(z=R.cyFinal+o(R.px0[1],R.px1[1]),E=z-k-_.labelExtraY,E*s>0&&(_.labelExtraY+=E)):(M+_.labelExtraY-S)*s>0&&(D=3*l*Math.abs(P-c.indexOf(_)),O=R.cxFinal+i(R.px0[0],R.px1[0]),B=O+D-(_.cxFinal+_.pxmid[0])-_.labelExtraX,B*l>0&&(_.labelExtraX+=B)))}for(a=0;a<2;a++)for(n=a?m:y,o=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,l=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],c=f.concat(u),d=[],v=0;v1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}o=Math.min(o,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=uLe(u,r))}function d3(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function Xte(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,o=n.textinfo;if(!i&&o&&o!=="none"){var l=o.split("+"),s=function(b){return l.indexOf(b)!==-1},u=s("label"),f=s("text"),c=s("value"),v=s("percent"),d=a.separators,p;if(p=u?[r.label]:[],f){var m=Mr.getFirstFilled(n.text,r.pts);Dte(m)&&p.push(m)}c&&p.push(Mr.formatPieValue(r.v,d)),v&&p.push(Mr.formatPiePercent(r.v/t.vTotal,d)),r.text=p.join("
")}function y(b){return{label:b.label,value:b.v,valueLabel:Mr.formatPieValue(b.v,a.separators),percent:b.v/t.vTotal,percentLabel:Mr.formatPiePercent(b.v/t.vTotal,a.separators),color:b.color,text:b.text,customdata:ja.castOption(n,b.i,"customdata")}}if(i){var x=ja.castOption(n,r.i,"texttemplate");if(!x)r.text="";else{var w=y(r),_=Mr.getFirstFilled(n.text,r.pts);(Dte(_)||_==="")&&(w.text=_),r.text=ja.texttemplateString(x,w,e._fullLayout._d3locale,w,n._meta||{})}}}function Jte(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,o=(r.top+r.bottom)/2;e.textX=i*a-o*n,e.textY=i*n+o*a,e.noCenter=!0}$te.exports={plot:iLe,formatSliceLabel:Xte,transformInsideText:Ute,determineInsideTextFont:Bte,positionTitleOutside:jte,prerenderTitles:Hte,layoutAreas:Zte,attachFxHandlers:Ote,computeTransform:Jte}});var rae=N((yHe,eae)=>{"use strict";var Qte=Sr(),pLe=U1(),yLe=_0().resizeText;eae.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");yLe(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,o=Qte.select(this);o.style({opacity:i.opacity}),o.selectAll("path.surface").each(function(l){Qte.select(this).call(pLe,l,i,r)})})}});var aae=N(Lv=>{"use strict";var tae=ea();Lv.name="pie";Lv.plot=function(e,r,t,a){tae.plotBasePlot(Lv.name,e,r,t,a)};Lv.clean=function(e,r,t,a){tae.cleanBasePlot(Lv.name,e,r,t,a)}});var iae=N((gHe,nae)=>{"use strict";nae.exports={attributes:JT(),supplyDefaults:wte().supplyDefaults,supplyLayoutDefaults:Mte(),layoutAttributes:$T(),calc:QT().calc,crossTraceCalc:QT().crossTraceCalc,plot:Kte().plot,style:rae(),styleOne:U1(),moduleType:"trace",name:"pie",basePlotModule:aae(),categories:["pie-like","pie","showLegend"],meta:{}}});var lae=N((bHe,oae)=>{"use strict";oae.exports=iae()});var en=N((xHe,uae)=>{"use strict";var sae=Object.getOwnPropertySymbols,mLe=Object.prototype.hasOwnProperty,gLe=Object.prototype.propertyIsEnumerable;function bLe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function xLe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}uae.exports=xLe()?Object.assign:function(e,r){for(var t,a=bLe(e),n,i=1;i{var y3=en();function fae(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}y3(fae.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function t8(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Ir.local.invalidDate||Ir.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function p3(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}y3(t8.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Ir.local.invalidDate||Ir.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Ir.local.differentCalendars||Ir.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+p3(Math.abs(this.year()),4)+"-"+p3(this.month(),2)+"-"+p3(this.day(),2)}});function a8(){this.shortYearCutoff="+10"}y3(a8.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Ir.local.invalidDate||Ir.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new t8(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ir.local.invalidYear||Ir.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ir.local.invalidYear||Ir.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+p3(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ir.local.invalidYear||Ir.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Ir.local.invalidMonth||Ir.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Ir.local.invalidMonth||Ir.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ir.local.invalidYear||Ir.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Ir.local.invalidDate||Ir.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Ir.local.invalidDate||Ir.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Ir.local.invalidDate||Ir.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Ir.local.invalidDate||Ir.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),n=e.day(),l=function(f){for(;oc-1+f.minMonth;)i++,o-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Ir.local.invalidDate||Ir.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,l)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Ir.local.invalidDate||Ir.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Ir=cae.exports=new fae;Ir.cdate=t8;Ir.baseCalendar=a8;Ir.calendars.gregorian=n8});var vae=N(()=>{var i8=en(),Fa=rn();i8(Fa.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Fa.local=Fa.regionalOptions[""];i8(Fa.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});i8(Fa.baseCalendar.prototype,{UNIX_EPOCH:Fa.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Fa.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Fa.local.invalidFormat||Fa.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(b,T){for(var k=1;_+k1},f=function(b,T,k,M){var S=""+T;if(u(b,M))for(;S.length1},w=function(R,z){var O=x(R,z),B=[2,3,O?4:2,O?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],V=new RegExp("^-?\\d{1,"+B+"}"),G=r.substring(S).match(V);if(!G)throw(Fa.local.missingNumberAt||Fa.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=G[0].length,parseInt(G[0],10)},_=this,b=function(){if(typeof l=="function"){x("m");var R=l.call(_,r.substring(S));return S+=R.length,R}return w("m")},T=function(R,z,O,B){for(var V=x(R,B)?O:z,G=0;G-1){v=1,d=p;for(var P=this.daysInMonth(c,v);d>P;P=this.daysInMonth(c,v))v++,d-=P}return f>-1?this.fromJD(f):this.newDate(c,v,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,o=function(l){try{return i.parseDate(a,l,n)}catch(c){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(l);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var hae=N(()=>{var Ds=rn(),_Le=en(),o8=Ds.instance();function m3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}m3.prototype=new Ds.baseCalendar;_Le(m3.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(TLe);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(ALe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(MLe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw Ds.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw Ds.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,Ds.local.invalidyear),n=Ps[a-Ps[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=o8.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Rs[e-Rs[0]],a=t>>13,n=a?12:11;if(r>n)throw Ds.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,Ds.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=SLe(e,i,t,n);return o8.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=o8.fromJD(e),t=kLe(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(wLe),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),o=this.toChineseMonth(a,n),l=Object.getPrototypeOf(m3.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),u=l.month(),f=this.isIntercalaryMonth(s,o),c=i&&f?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);c!==u&&l.month(c)}return l}});var wLe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,TLe=/^\d?\d[iI]?/m,ALe=/^闰?十?[一二三四五六七八九]?月/m,MLe=/^闰?十?[一二三四五六七八九]?/m;Ds.calendars.chinese=m3;var Rs=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Ps=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function kLe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=Ps[n.year-Ps[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Ps[i.year-Ps[0]];var c=u>>9&4095,v=u>>5&15,d=u&31,p,m=new Date(c,v-1,d),y=new Date(n.year,n.month-1,n.day);p=Math.round((y-m)/(24*3600*1e3));var x=Rs[i.year-Rs[0]],w;for(w=0;w<13;w++){var _=x&1<<12-w?30:29;if(p<_)break;p-=_}var b=x>>13;return!b||w=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),o={year:e,month:r,day:t,isIntercalary:f}}var c;c=o.day-1;var v=Rs[o.year-Rs[0]],d=v>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var m=0;m>9&4095,_=x>>5&15,b=x&31,T=new Date(w,_-1,b+c);return i.year=T.getFullYear(),i.month=1+T.getMonth(),i.day=T.getDate(),i}});var dae=N(()=>{var of=rn(),qLe=en();function l8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}l8.prototype=new of.baseCalendar;qLe(l8.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,of.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,of.local.invalidYear||of.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,of.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,of.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});of.calendars.coptic=l8});var pae=N(()=>{var Dl=rn(),LLe=en();function s8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}s8.prototype=new Dl.baseCalendar;LLe(s8.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Dl.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Dl.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Dl.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Dl.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Dl.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Dl.local.invalidDate);return{century:CLe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Dl.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var CLe={20:"Fruitbat",21:"Anchovy"};Dl.calendars.discworld=s8});var yae=N(()=>{var lf=rn(),ELe=en();function u8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}u8.prototype=new lf.baseCalendar;ELe(u8.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,lf.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,lf.local.invalidYear||lf.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,lf.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,lf.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});lf.calendars.ethiopian=u8});var mae=N(()=>{var Fs=rn(),DLe=en();function f8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}f8.prototype=new Fs.baseCalendar;DLe(f8.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Fs.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,g3(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fs.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Fs.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Fs.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&g3(this.daysInYear(e),10)===5?30:r===9&&g3(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Fs.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,Fs.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function g3(e,r){return e-r*Math.floor(e/r)}Fs.calendars.hebrew=f8});var gae=N(()=>{var Ld=rn(),RLe=en();function c8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}c8.prototype=new Ld.baseCalendar;RLe(c8.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ld.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ld.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Ld.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});Ld.calendars.islamic=c8});var bae=N(()=>{var Cd=rn(),PLe=en();function v8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}v8.prototype=new Cd.baseCalendar;PLe(v8.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Cd.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Cd.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Cd.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),o=i-Math.floor(i<14?1:13),l=a-Math.floor(o>2?4716:4715),s=t-n-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});Cd.calendars.julian=v8});var _ae=N(()=>{var Ui=rn(),FLe=en();function d8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}d8.prototype=new Ui.baseCalendar;FLe(d8.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ui.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ui.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ui.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Ui.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ui.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Ui.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Ui.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Ui.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Ui.local.invalidDate),n=a.toJD(),i=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=h8(e+8+17*20,365);return[Math.floor(r/20)+1,h8(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[xae(e+20,20),xae(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Ui.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function h8(e,r){return e-r*Math.floor(e/r)}function xae(e,r){return h8(e-1,r)+1}Ui.calendars.mayan=d8});var Tae=N(()=>{var sf=rn(),NLe=en();function p8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}p8.prototype=new sf.baseCalendar;var wae=sf.instance("gregorian");NLe(p8.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,sf.local.invalidYear||sf.regionalOptions[""].invalidYear);return wae.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,sf.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,sf.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});sf.calendars.nanakshahi=p8});var Aae=N(()=>{var uf=rn(),zLe=en();function y8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}y8.prototype=new uf.baseCalendar;zLe(y8.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,uf.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,uf.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,uf.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=uf.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=uf.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;n>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var u=this.NEPALI_CALENDAR_DATA[i][o]-(s-n);return this.newDate(i,o,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Cv=rn(),ILe=en();function x3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function b3(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),o=n-Math.floor(n);return i>o}x3.prototype=new Cv.baseCalendar;ILe(x3.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Cv.local.invalidYear);return b3(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Cv.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Cv.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,b3(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});Cv.calendars.persian=x3;Cv.calendars.jalali=x3});var kae=N(()=>{var ff=rn(),OLe=en(),_3=ff.instance();function m8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}m8.prototype=new ff.baseCalendar;OLe(m8.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,ff.local.invalidYear),t=this._t2gYear(r.year());return _3.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,ff.local.invalidYear),n=this._t2gYear(a.year());return _3.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ff.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,ff.local.invalidDate),n=this._t2gYear(a.year());return _3.toJD(n,a.month(),a.day())},fromJD:function(e){var r=_3.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});ff.calendars.taiwan=m8});var Sae=N(()=>{var cf=rn(),BLe=en(),w3=cf.instance();function g8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}g8.prototype=new cf.baseCalendar;BLe(g8.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,cf.local.invalidYear),t=this._t2gYear(r.year());return w3.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,cf.local.invalidYear),n=this._t2gYear(a.year());return w3.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,cf.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,cf.local.invalidDate),n=this._t2gYear(a.year());return w3.toJD(n,a.month(),a.day())},fromJD:function(e){var r=w3.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});cf.calendars.thai=g8});var qae=N(()=>{var vf=rn(),HLe=en();function b8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}b8.prototype=new vf.baseCalendar;HLe(b8.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,vf.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,vf.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Ns[n]-Ns[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,vf.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Ns[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-Ns[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=vf.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=vf.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});vf.calendars.ummalqura=b8;var Ns=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var Cae=N((KHe,Lae)=>{"use strict";Lae.exports=rn();vae();hae();dae();pae();yae();mae();gae();bae();_ae();Tae();Aae();Mae();kae();Sae();qae()});var zae=N((QHe,Nae)=>{"use strict";var Dae=Cae(),Ed=Ee(),Rae=Ft(),ULe=Rae.EPOCHJD,GLe=Rae.ONEDAY,w8={valType:"enumerated",values:Ed.sortObjectKeys(Dae.calendars),editType:"calc",dflt:"gregorian"},Pae=function(e,r,t,a){var n={};return n[t]=w8,Ed.coerce(e,r,n,t,a)},YLe=function(e,r,t,a){for(var n=0;n{"use strict";Iae.exports=zae()});var JLe=N((rUe,Hae)=>{var Bae=UU();Bae.register([YG(),EY(),ZV(),dj(),Sj(),LW(),GW(),CZ(),iX(),mte(),lae(),Oae()]);Hae.exports=Bae});return JLe();})(); +`),$Se=Ere("IHDR");Dre.exports=function(e){if(!(e.length<24)&&Lre(e,0,JSe)&&Lre(e,12,$Se))return{width:Cre(e,16),height:Cre(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var Nre=N((QBe,Fre)=>{"use strict";var KSe=_t().str2arr,QSe=_t().sliceEq,Pre=_t().readUInt32BE,eqe=KSe("8BPS\0");Fre.exports=function(e){if(!(e.length<22)&&QSe(e,0,eqe))return{width:Pre(e,18),height:Pre(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var Ore=N((eHe,Ire)=>{"use strict";function rqe(e){return e===32||e===9||e===13||e===10}function qv(e){return typeof e=="number"&&isFinite(e)&&e>0}function tqe(e){var r=0,t=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(r=3);r]*>/,nqe=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,iqe=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,oqe=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,lqe=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,zre=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function sqe(e){var r=e.match(iqe),t=e.match(oqe),a=e.match(lqe);return{width:r&&(r[1]||r[2]),height:t&&(t[1]||t[2]),viewbox:a&&(a[1]||a[2])}}function Jo(e){return zre.test(e)?e.match(zre)[0]:"px"}Ire.exports=function(e){if(tqe(e)){for(var r="",t=0;t{"use strict";var Ure=_t().str2arr,Bre=_t().sliceEq,uqe=_t().readUInt16LE,fqe=_t().readUInt16BE,cqe=_t().readUInt32LE,vqe=_t().readUInt32BE,hqe=Ure("II*\0"),dqe=Ure("MM\0*");function s3(e,r,t){return t?fqe(e,r):uqe(e,r)}function jT(e,r,t){return t?vqe(e,r):cqe(e,r)}function Hre(e,r,t){var a=s3(e,r+2,t),n=jT(e,r+4,t);return n!==1||a!==3&&a!==4?null:a===3?s3(e,r+8,t):jT(e,r+8,t)}Gre.exports=function(e){if(!(e.length<8)&&!(!Bre(e,0,hqe)&&!Bre(e,0,dqe))){var r=e[0]===77,t=jT(e,4,r)-8;if(!(t<0)){var a=t+8;if(!(e.length-a<2)){var n=s3(e,a+0,r)*12;if(!(n<=0)&&(a+=2,!(e.length-a{"use strict";var jre=_t().str2arr,Vre=_t().sliceEq,Wre=_t().readUInt16LE,ZT=_t().readUInt32LE,pqe=o3(),yqe=jre("RIFF"),mqe=jre("WEBP");function gqe(e,r){if(!(e[r+3]!==157||e[r+4]!==1||e[r+5]!==42))return{width:Wre(e,r+6)&16383,height:Wre(e,r+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function bqe(e,r){if(e[r]===47){var t=ZT(e,r+1);return{width:(t&16383)+1,height:(t>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function xqe(e,r){return{width:(e[r+6]<<16|e[r+5]<<8|e[r+4])+1,height:(e[r+9]<e.length)){for(;r+8=10?t=t||gqe(e,r+8):i==="VP8L"&&o>=9?t=t||bqe(e,r+8):i==="VP8X"&&o>=10?t=t||xqe(e,r+8):i==="EXIF"&&(a=pqe.get_orientation(e.slice(r+8,r+8+o)),r=1/0),r+=8+o}if(t)return a>0&&(t.orientation=a),t}}}});var $re=N((aHe,Jre)=>{"use strict";Jre.exports={avif:pre(),bmp:gre(),gif:Tre(),ico:kre(),jpeg:qre(),png:Rre(),psd:Nre(),svg:Ore(),tiff:Yre(),webp:Xre()}});var Kre=N((nHe,JT)=>{"use strict";var XT=$re();function _qe(e){for(var r=Object.keys(XT),t=0;t{"use strict";var wqe=Kre(),Tqe=yl().IMAGE_URL_PREFIX,Aqe=ov().Buffer;Qre.getImageSize=function(e){var r=e.replace(Tqe,""),t=new Aqe(r,"base64");return wqe(t)}});var ate=N((oHe,tte)=>{"use strict";var rte=Ce(),Mqe=ev(),kqe=Rr(),u3=Ir(),Sqe=Ce().maxRowLength,qqe=ete().getImageSize;tte.exports=function(r,t){var a,n;if(t._hasZ)a=t.z.length,n=Sqe(t.z);else if(t._hasSource){var i=qqe(t.source);a=i.height,n=i.width}var o=u3.getFromId(r,t.xaxis||"x"),l=u3.getFromId(r,t.yaxis||"y"),s=o.d2c(t.x0)-t.dx/2,u=l.d2c(t.y0)-t.dy/2,f,c=[s,s+n*t.dx],v=[u,u+a*t.dy];if(o&&o.type==="log")for(f=0;f{"use strict";var Dqe=Sr(),nf=Ce(),nte=nf.strTranslate,Rqe=ll(),Pqe=ev(),Fqe=Qw(),Nqe=pg().STYLE;ite.exports=function(r,t,a,n){var i=t.xaxis,o=t.yaxis,l=!r._context._exportedPlot&&Fqe();nf.makeTraceGroups(n,a,"im").each(function(s){var u=Dqe.select(this),f=s[0],c=f.trace,v=(c.zsmooth==="fast"||c.zsmooth===!1&&l)&&!c._hasZ&&c._hasSource&&i.type==="linear"&&o.type==="linear";c._realImage=v;var d=f.z,p=f.x0,m=f.y0,y=f.w,x=f.h,w=c.dx,_=c.dy,b,T,k,M,S,E;for(E=0;b===void 0&&E0;)T=i.c2p(p+E*w),E--;for(E=0;M===void 0&&E0;)S=o.c2p(m+E*_),E--;if(TY[0];if(J||Z){var re=b+P/2,se=M+R/2;G+="transform:"+nte(re+"px",se+"px")+"scale("+(J?-1:1)+","+(Z?-1:1)+")"+nte(-re+"px",-se+"px")+";"}}V.attr("style",G);var oe=new Promise(function(ce){if(c._hasZ)ce();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===y&&c._canvas.el.height===x&&c._canvas.source===c.source)ce();else{var K=document.createElement("canvas");K.width=y,K.height=x;var Te=K.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var le=c._image;le.onload=function(){Te.drawImage(le,0,0),c._canvas={el:K,source:c.source},ce()},le.setAttribute("src",c.source)}}).then(function(){var ce,K;if(c._hasZ)K=B(function(ve,ie){var pe=d[ie][ve];return nf.isTypedArray(pe)&&(pe=Array.from(pe)),pe}),ce=K.toDataURL("image/png");else if(c._hasSource)if(v)ce=c.source;else{var Te=c._canvas.el.getContext("2d",{willReadFrequently:!0}),le=Te.getImageData(0,0,y,x).data;K=B(function(ve,ie){var pe=4*(ie*y+ve);return[le[pe],le[pe+1],le[pe+2],le[pe+3]]}),ce=K.toDataURL("image/png")}V.attr({"xlink:href":ce,height:R,width:P,x:b,y:M})});r._promises.push(oe)})}});var ste=N((sHe,lte)=>{"use strict";var zqe=Sr();lte.exports=function(r){zqe.select(r).selectAll(".im image").style("opacity",function(t){return t[0].trace.opacity})}});var vte=N((uHe,cte)=>{"use strict";var ute=Pn(),fte=Ce(),f3=fte.isArrayOrTypedArray,Iqe=ev();cte.exports=function(r,t,a){var n=r.cd[0],i=n.trace,o=r.xa,l=r.ya;if(!(ute.inbox(t-n.x0,t-(n.x0+n.w*i.dx),0)>0||ute.inbox(a-n.y0,a-(n.y0+n.h*i.dy),0)>0)){var s=Math.floor((t-n.x0)/i.dx),u=Math.floor(Math.abs(a-n.y0)/i.dy),f;if(i._hasZ?f=n.z[u][s]:i._hasSource&&(f=i._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(s,u,1,1).data),!!f){var c=n.hi||i.hoverinfo,v;if(c){var d=c.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(v=!0)}var p=Iqe.colormodel[i.colormodel],m=p.colormodel||i.colormodel,y=m.length,x=i._scaler(f),w=p.suffix,_=[];(i.hovertemplate||v)&&(_.push("["+[x[0]+w[0],x[1]+w[1],x[2]+w[2]].join(", ")),y===4&&_.push(", "+x[3]+w[3]),_.push("]"),_=_.join(""),r.extraText=m.toUpperCase()+": "+_);var b;f3(i.hovertext)&&f3(i.hovertext[u])?b=i.hovertext[u][s]:f3(i.text)&&f3(i.text[u])&&(b=i.text[u][s]);var T=l.c2p(n.y0+(u+.5)*i.dy),k=n.x0+(s+.5)*i.dx,M=n.y0+(u+.5)*i.dy,S="["+f.slice(0,i.colormodel.length).join(", ")+"]";return[fte.extendFlat(r,{index:[u,s],x0:o.c2p(n.x0+s*i.dx),x1:o.c2p(n.x0+(s+1)*i.dx),y0:T,y1:T,color:x,xVal:k,xLabelVal:k,yVal:M,yLabelVal:M,zLabelVal:S,text:b,hovertemplateLabels:{zLabel:S,colorLabel:_,"color[0]Label":x[0]+w[0],"color[1]Label":x[1]+w[1],"color[2]Label":x[2]+w[2],"color[3]Label":x[3]+w[3]}})]}}}});var dte=N((fHe,hte)=>{"use strict";hte.exports=function(r,t){return"xVal"in t&&(r.x=t.xVal),"yVal"in t&&(r.y=t.yVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r.color=t.color,r.colormodel=t.trace.colormodel,r.z||(r.z=t.color),r}});var yte=N((cHe,pte)=>{"use strict";pte.exports={attributes:W6(),supplyDefaults:vX(),calc:ate(),plot:ote(),style:ste(),hoverPoints:vte(),eventData:dte(),moduleType:"trace",name:"image",basePlotModule:qi(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var gte=N((vHe,mte)=>{"use strict";mte.exports=yte()});var $T=N((hHe,bte)=>{"use strict";var Oqe=mn(),Bqe=Rc().attributes,Hqe=da(),Uqe=li(),Gqe=Ta().hovertemplateAttrs,Yqe=Ta().texttemplateAttrs,Cd=xt().extendFlat,Vqe=si().pattern,c3=Hqe({editType:"plot",arrayOk:!0,colorEditType:"plot"});bte.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Uqe.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:Vqe,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:Cd({},Oqe.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Gqe({},{keys:["label","color","value","percent","text"]}),texttemplate:Yqe({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:Cd({},c3,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:Cd({},c3,{}),outsidetextfont:Cd({},c3,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:Cd({},c3,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:Bqe({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var Tte=N((dHe,wte)=>{"use strict";var Wqe=Rr(),Ed=Ce(),jqe=$T(),Zqe=Rc().defaults,Xqe=zu().handleText,Jqe=Ce().coercePattern;function xte(e,r){var t=Ed.isArrayOrTypedArray(e),a=Ed.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,o=0;o0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function _te(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var o=a("marker.colors");Jqe(a,"marker.pattern",o),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function $qe(e,r,t,a){function n(w,_){return Ed.coerce(e,r,jqe,w,_)}var i=n("labels"),o=n("values"),l=xte(i,o),s=l.len;if(r._hasLabels=l.hasLabels,r._hasValues=l.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,_te(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate"),c;if(f||(c=n("textinfo",Ed.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),f||c&&c!=="none"){var v=n("textposition");Xqe(e,r,a,n,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(v)||v==="auto",p=d||v==="outside";p&&n("automargin"),(v==="inside"||v==="auto"||Array.isArray(v))&&n("insidetextorientation")}else c==="none"&&n("textposition","none");Zqe(r,a,n);var m=n("hole"),y=n("title.text");if(y){var x=n("title.position",m?"middle center":"top center");!m&&x==="middle center"&&(r.title.position="top center"),Ed.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}wte.exports={handleLabelsAndValues:xte,handleMarkerDefaults:_te,supplyDefaults:$qe}});var KT=N((pHe,Ate)=>{"use strict";Ate.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var kte=N((yHe,Mte)=>{"use strict";var Kqe=Ce(),Qqe=KT();Mte.exports=function(r,t){function a(n,i){return Kqe.coerce(r,t,Qqe,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var e8=N((mHe,Lte)=>{"use strict";var eLe=Rr(),QT=kn(),rLe=Tr(),tLe={};function aLe(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,o=r.marker.colors||[],l=r.values,s=r._length,u=r._hasValues&&s,f,c;if(r.dlabel)for(i=new Array(s),f=0;f=0});var b=r.type==="funnelarea"?m:r.sort;return b&&t.sort(function(T,k){return k.v-T.v}),t[0]&&(t[0].vTotal=p),t}function Ste(e){return function(t,a){return!t||(t=QT(t),!t.isValid())?!1:(t=rLe.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function nLe(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],o=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=qte(i,tLe));for(var l=0,s=0;s{"use strict";var iLe=qo().appendArrayMultiPointValues;Cte.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),iLe(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var Qte=N((bHe,Kte)=>{"use strict";var Yn=Sr(),oLe=aa(),v3=Pn(),zte=Tr(),El=Wr(),ja=Ce(),lLe=ja.strScale,Dte=ja.strTranslate,r8=Da(),Ite=A0(),sLe=Ite.recordMinTextSize,uLe=Ite.clearMinTextSize,Ote=Jm().TEXTPAD,Ar=H1(),h3=Ete(),Rte=Ce().isValidTextValue;function fLe(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;uLe("pie",a),Ute(r,e),Xte(r,n);var i=ja.makeTraceGroups(a._pielayer,r,"trace").each(function(o){var l=Yn.select(this),s=o[0],u=s.trace;bLe(o),l.attr("stroke-linejoin","round"),l.each(function(){var f=Yn.select(this).selectAll("g.slice").data(o);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],v=!1;f.each(function(b,T){if(b.hidden){Yn.select(this).selectAll("path,g").remove();return}b.pointNumber=b.i,b.curveNumber=u.index,c[b.pxmid[1]<0?0:1][b.pxmid[0]<0?0:1].push(b);var k=s.cx,M=s.cy,S=Yn.select(this),E=S.selectAll("path.surface").data([b]);if(E.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),S.call(Bte,e,o),u.pull){var D=+Ar.castOption(u.pull,b.pts)||0;D>0&&(k+=D*b.pxmid[0],M+=D*b.pxmid[1])}b.cxFinal=k,b.cyFinal=M;function P(U,Y,J,Z){var re=Z*(Y[0]-U[0]),se=Z*(Y[1]-U[1]);return"a"+Z*s.r+","+Z*s.r+" 0 "+b.largeArc+(J?" 1 ":" 0 ")+re+","+se}var R=u.hole;if(b.v===s.vTotal){var z="M"+(k+b.px0[0])+","+(M+b.px0[1])+P(b.px0,b.pxmid,!0,1)+P(b.pxmid,b.px0,!0,1)+"Z";R?E.attr("d","M"+(k+R*b.px0[0])+","+(M+R*b.px0[1])+P(b.px0,b.pxmid,!1,R)+P(b.pxmid,b.px0,!1,R)+"Z"+z):E.attr("d",z)}else{var O=P(b.px0,b.px1,!0,1);if(R){var B=1-R;E.attr("d","M"+(k+R*b.px1[0])+","+(M+R*b.px1[1])+P(b.px1,b.px0,!1,R)+"l"+B*b.px0[0]+","+B*b.px0[1]+O+"Z")}else E.attr("d","M"+k+","+M+"l"+b.px0[0]+","+b.px0[1]+O+"Z")}Jte(e,b,s);var V=Ar.castOption(u.textposition,b.pts),G=S.selectAll("g.slicetext").data(b.text&&V!=="none"?[0]:[]);G.enter().append("g").classed("slicetext",!0),G.exit().remove(),G.each(function(){var U=ja.ensureSingle(Yn.select(this),"text","",function(K){K.attr("data-notex",1)}),Y=ja.ensureUniformFontSize(e,V==="outside"?vLe(u,b,a.font):Hte(u,b,a.font));U.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(El.font,Y).call(r8.convertToTspans,e);var J=El.bBox(U.node()),Z;if(V==="outside")Z=Nte(J,b);else if(Z=Gte(J,b,s),V==="auto"&&Z.scale<1){var re=ja.ensureUniformFontSize(e,u.outsidetextfont);U.call(El.font,re),J=El.bBox(U.node()),Z=Nte(J,b)}var se=Z.textPosAngle,oe=se===void 0?b.pxmid:d3(s.r,se);if(Z.targetX=k+oe[0]*Z.rCenter+(Z.x||0),Z.targetY=M+oe[1]*Z.rCenter+(Z.y||0),$te(Z,J),Z.outside){var ce=Z.targetY;b.yLabelMin=ce-J.height/2,b.yLabelMid=ce,b.yLabelMax=ce+J.height/2,b.labelExtraX=0,b.labelExtraY=0,v=!0}Z.fontSize=Y.size,sLe(u.type,Z,a),o[T].transform=Z,ja.setTransormAndDisplay(U,Z)})});var d=Yn.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var b=ja.ensureSingle(Yn.select(this),"text","",function(M){M.attr("data-notex",1)}),T=u.title.text;u._meta&&(T=ja.templateString(T,u._meta)),b.text(T).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(El.font,u.title.font).call(r8.convertToTspans,e);var k;u.title.position==="middle center"?k=pLe(s):k=jte(s,n),b.attr("transform",Dte(k.x,k.y)+lLe(Math.min(1,k.scale))+Dte(k.tx,k.ty))}),v&&mLe(c,u),cLe(f,u),v&&u.automargin){var p=El.bBox(l.node()),m=u.domain,y=n.w*(m.x[1]-m.x[0]),x=n.h*(m.y[1]-m.y[0]),w=(.5*y-s.r)/n.w,_=(.5*x-s.r)/n.h;oLe.autoMargin(e,"pie."+u.uid+".automargin",{xl:m.x[0]-w,xr:m.x[1]+w,yb:m.y[0]-_,yt:m.y[1]+_,l:Math.max(s.cx-s.r-p.left,0),r:Math.max(p.right-(s.cx+s.r),0),b:Math.max(p.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-p.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var o=Yn.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function cLe(e,r){e.each(function(t){var a=Yn.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,ja.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],o=t.cyFinal+t.pxmid[1],l="M"+i+","+o,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?l+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):l+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else l+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;ja.ensureSingle(a,"path","textline").call(zte.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:l,fill:"none"})})}function Bte(e,r,t){var a=t[0],n=a.cx,i=a.cy,o=a.trace,l=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[o.index];if(!(r._dragging||u.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=v3.castHoverinfo({hoverinfo:[Ar.castOption(c,s.pts)],_module:o._module},u,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var v=s.rInscribed||0,d=n+s.pxmid[0]*(1-v),p=i+s.pxmid[1]*(1-v),m=u.separators,y=[];if(c&&c.indexOf("label")!==-1&&y.push(s.label),s.text=Ar.castOption(f.hovertext||f.text,s.pts),c&&c.indexOf("text")!==-1){var x=s.text;ja.isValidTextValue(x)&&y.push(x)}s.value=s.v,s.valueLabel=Ar.formatPieValue(s.v,m),c&&c.indexOf("value")!==-1&&y.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=Ar.formatPiePercent(s.percent,m),c&&c.indexOf("percent")!==-1&&y.push(s.percentLabel);var w=f.hoverlabel,_=w.font,b=[];v3.loneHover({trace:o,x0:d-v*a.r,x1:d+v*a.r,y:p,_x0:l?n+s.TL[0]:d-v*a.r,_x1:l?n+s.TR[0]:d+v*a.r,_y0:l?i+s.TL[1]:p-v*a.r,_y1:l?i+s.BL[1]:p+v*a.r,text:y.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:Ar.castOption(w.bgcolor,s.pts)||s.color,borderColor:Ar.castOption(w.bordercolor,s.pts),fontFamily:Ar.castOption(_.family,s.pts),fontSize:Ar.castOption(_.size,s.pts),fontColor:Ar.castOption(_.color,s.pts),nameLength:Ar.castOption(w.namelength,s.pts),textAlign:Ar.castOption(w.align,s.pts),hovertemplate:Ar.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[h3(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:b}),s.bbox=b[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,r.emit("plotly_hover",{points:[h3(s,f)],event:Yn.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[o.index],c=Yn.select(this).datum();o._hasHoverEvent&&(s.originalEvent=Yn.event,r.emit("plotly_unhover",{points:[h3(c,f)],event:Yn.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(v3.loneUnhover(u._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[o.index];r._dragging||u.hovermode===!1||(r._hoverdata=[h3(s,f)],v3.click(r,Yn.event))})}function vLe(e,r,t){var a=Ar.castOption(e.outsidetextfont.color,r.pts)||Ar.castOption(e.textfont.color,r.pts)||t.color,n=Ar.castOption(e.outsidetextfont.family,r.pts)||Ar.castOption(e.textfont.family,r.pts)||t.family,i=Ar.castOption(e.outsidetextfont.size,r.pts)||Ar.castOption(e.textfont.size,r.pts)||t.size,o=Ar.castOption(e.outsidetextfont.weight,r.pts)||Ar.castOption(e.textfont.weight,r.pts)||t.weight,l=Ar.castOption(e.outsidetextfont.style,r.pts)||Ar.castOption(e.textfont.style,r.pts)||t.style,s=Ar.castOption(e.outsidetextfont.variant,r.pts)||Ar.castOption(e.textfont.variant,r.pts)||t.variant,u=Ar.castOption(e.outsidetextfont.textcase,r.pts)||Ar.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Ar.castOption(e.outsidetextfont.lineposition,r.pts)||Ar.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Ar.castOption(e.outsidetextfont.shadow,r.pts)||Ar.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:o,style:l,variant:s,textcase:u,lineposition:f,shadow:c}}function Hte(e,r,t){var a=Ar.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=Ar.castOption(e._input.textfont.color,r.pts));var n=Ar.castOption(e.insidetextfont.family,r.pts)||Ar.castOption(e.textfont.family,r.pts)||t.family,i=Ar.castOption(e.insidetextfont.size,r.pts)||Ar.castOption(e.textfont.size,r.pts)||t.size,o=Ar.castOption(e.insidetextfont.weight,r.pts)||Ar.castOption(e.textfont.weight,r.pts)||t.weight,l=Ar.castOption(e.insidetextfont.style,r.pts)||Ar.castOption(e.textfont.style,r.pts)||t.style,s=Ar.castOption(e.insidetextfont.variant,r.pts)||Ar.castOption(e.textfont.variant,r.pts)||t.variant,u=Ar.castOption(e.insidetextfont.textcase,r.pts)||Ar.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Ar.castOption(e.insidetextfont.lineposition,r.pts)||Ar.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Ar.castOption(e.insidetextfont.shadow,r.pts)||Ar.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||zte.contrast(r.color),family:n,size:i,weight:o,style:l,variant:s,textcase:u,lineposition:f,shadow:c}}function Ute(e,r){for(var t,a,n=0;n=-4;w-=2)x(Math.PI*w,"tan");for(w=4;w>=-4;w-=2)x(Math.PI*(w+1),"tan")}if(c||d){for(w=4;w>=-4;w-=2)x(Math.PI*(w+1.5),"rad");for(w=4;w>=-4;w-=2)x(Math.PI*(w+.5),"rad")}}if(l||p||c){var _=Math.sqrt(e.width*e.width+e.height*e.height);if(y={scale:n*a*2/_,rCenter:1-n,rotate:0},y.textPosAngle=(r.startangle+r.stopangle)/2,y.scale>=1)return y;m.push(y)}(p||d)&&(y=Pte(e,a,o,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y)),(p||v)&&(y=Fte(e,a,o,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y));for(var b=0,T=0,k=0;k=1)break}return m[b]}function hLe(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function pLe(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function jte(e,r){var t=1,a=1,n,i=e.trace,o={x:e.cx,y:e.cy},l={tx:0,ty:0};l.ty+=i.title.font.size,n=Zte(i),i.title.position.indexOf("top")!==-1?(o.y-=(1+n)*e.r,l.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(o.y+=(1+n)*e.r);var s=yLe(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,o.x-=(1+n)*s,l.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,o.x+=(1+n)*s,l.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=t8(e,r)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(t,a),tx:l.tx,ty:l.ty}}function yLe(e,r){return e/(r===void 0?1:r)}function t8(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function Zte(e){var r=e.pull;if(!r)return 0;var t;if(ja.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function mLe(e,r){var t,a,n,i,o,l,s,u,f,c,v,d,p;function m(_,b){return _.pxmid[1]-b.pxmid[1]}function y(_,b){return b.pxmid[1]-_.pxmid[1]}function x(_,b){b||(b={});var T=b.labelExtraY+(a?b.yLabelMax:b.yLabelMin),k=a?_.yLabelMin:_.yLabelMax,M=a?_.yLabelMax:_.yLabelMin,S=_.cyFinal+o(_.px0[1],_.px1[1]),E=T-k,D,P,R,z,O,B;if(E*s>0&&(_.labelExtraY=E),!!ja.isArrayOrTypedArray(r.pull))for(P=0;P=(Ar.castOption(r.pull,R.pts)||0))&&((_.pxmid[1]-R.pxmid[1])*s>0?(z=R.cyFinal+o(R.px0[1],R.px1[1]),E=z-k-_.labelExtraY,E*s>0&&(_.labelExtraY+=E)):(M+_.labelExtraY-S)*s>0&&(D=3*l*Math.abs(P-c.indexOf(_)),O=R.cxFinal+i(R.px0[0],R.px1[0]),B=O+D-(_.cxFinal+_.pxmid[0])-_.labelExtraX,B*l>0&&(_.labelExtraX+=B)))}for(a=0;a<2;a++)for(n=a?m:y,o=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,l=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],c=f.concat(u),d=[],v=0;v1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}o=Math.min(o,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=dLe(u,r))}function d3(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function Jte(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,o=n.textinfo;if(!i&&o&&o!=="none"){var l=o.split("+"),s=function(b){return l.indexOf(b)!==-1},u=s("label"),f=s("text"),c=s("value"),v=s("percent"),d=a.separators,p;if(p=u?[r.label]:[],f){var m=Ar.getFirstFilled(n.text,r.pts);Rte(m)&&p.push(m)}c&&p.push(Ar.formatPieValue(r.v,d)),v&&p.push(Ar.formatPiePercent(r.v/t.vTotal,d)),r.text=p.join("
")}function y(b){return{label:b.label,value:b.v,valueLabel:Ar.formatPieValue(b.v,a.separators),percent:b.v/t.vTotal,percentLabel:Ar.formatPiePercent(b.v/t.vTotal,a.separators),color:b.color,text:b.text,customdata:ja.castOption(n,b.i,"customdata")}}if(i){var x=ja.castOption(n,r.i,"texttemplate");if(!x)r.text="";else{var w=y(r),_=Ar.getFirstFilled(n.text,r.pts);(Rte(_)||_==="")&&(w.text=_),r.text=ja.texttemplateString(x,w,e._fullLayout._d3locale,w,n._meta||{})}}}function $te(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,o=(r.top+r.bottom)/2;e.textX=i*a-o*n,e.textY=i*n+o*a,e.noCenter=!0}Kte.exports={plot:fLe,formatSliceLabel:Jte,transformInsideText:Gte,determineInsideTextFont:Hte,positionTitleOutside:jte,prerenderTitles:Ute,layoutAreas:Xte,attachFxHandlers:Bte,computeTransform:$te}});var tae=N((xHe,rae)=>{"use strict";var eae=Sr(),xLe=U1(),_Le=A0().resizeText;rae.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");_Le(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,o=eae.select(this);o.style({opacity:i.opacity}),o.selectAll("path.surface").each(function(l){eae.select(this).call(xLe,l,i,r)})})}});var nae=N(Lv=>{"use strict";var aae=aa();Lv.name="pie";Lv.plot=function(e,r,t,a){aae.plotBasePlot(Lv.name,e,r,t,a)};Lv.clean=function(e,r,t,a){aae.cleanBasePlot(Lv.name,e,r,t,a)}});var oae=N((wHe,iae)=>{"use strict";iae.exports={attributes:$T(),supplyDefaults:Tte().supplyDefaults,supplyLayoutDefaults:kte(),layoutAttributes:KT(),calc:e8().calc,crossTraceCalc:e8().crossTraceCalc,plot:Qte().plot,style:tae(),styleOne:U1(),moduleType:"trace",name:"pie",basePlotModule:nae(),categories:["pie-like","pie","showLegend"],meta:{}}});var sae=N((THe,lae)=>{"use strict";lae.exports=oae()});var en=N((AHe,fae)=>{"use strict";var uae=Object.getOwnPropertySymbols,wLe=Object.prototype.hasOwnProperty,TLe=Object.prototype.propertyIsEnumerable;function ALe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function MLe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}fae.exports=MLe()?Object.assign:function(e,r){for(var t,a=ALe(e),n,i=1;i{var y3=en();function cae(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}y3(cae.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function a8(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(zr.local.invalidDate||zr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function p3(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}y3(a8.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(zr.local.invalidDate||zr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(zr.local.differentCalendars||zr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+p3(Math.abs(this.year()),4)+"-"+p3(this.month(),2)+"-"+p3(this.day(),2)}});function n8(){this.shortYearCutoff="+10"}y3(n8.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,zr.local.invalidDate||zr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new a8(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,zr.local.invalidYear||zr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,zr.local.invalidYear||zr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+p3(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,zr.local.invalidYear||zr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,zr.local.invalidMonth||zr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,zr.local.invalidMonth||zr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,zr.local.invalidYear||zr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,zr.local.invalidDate||zr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,zr.local.invalidDate||zr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,zr.local.invalidDate||zr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,zr.local.invalidDate||zr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),n=e.day(),l=function(f){for(;oc-1+f.minMonth;)i++,o-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,zr.local.invalidDate||zr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,l)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,zr.local.invalidDate||zr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var zr=vae.exports=new cae;zr.cdate=a8;zr.baseCalendar=n8;zr.calendars.gregorian=i8});var hae=N(()=>{var o8=en(),Na=rn();o8(Na.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Na.local=Na.regionalOptions[""];o8(Na.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});o8(Na.baseCalendar.prototype,{UNIX_EPOCH:Na.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Na.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Na.local.invalidFormat||Na.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(b,T){for(var k=1;_+k1},f=function(b,T,k,M){var S=""+T;if(u(b,M))for(;S.length1},w=function(R,z){var O=x(R,z),B=[2,3,O?4:2,O?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],V=new RegExp("^-?\\d{1,"+B+"}"),G=r.substring(S).match(V);if(!G)throw(Na.local.missingNumberAt||Na.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=G[0].length,parseInt(G[0],10)},_=this,b=function(){if(typeof l=="function"){x("m");var R=l.call(_,r.substring(S));return S+=R.length,R}return w("m")},T=function(R,z,O,B){for(var V=x(R,B)?O:z,G=0;G-1){v=1,d=p;for(var P=this.daysInMonth(c,v);d>P;P=this.daysInMonth(c,v))v++,d-=P}return f>-1?this.fromJD(f):this.newDate(c,v,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,o=function(l){try{return i.parseDate(a,l,n)}catch(c){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(l);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var dae=N(()=>{var Ds=rn(),kLe=en(),l8=Ds.instance();function m3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}m3.prototype=new Ds.baseCalendar;kLe(m3.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(qLe);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(LLe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(CLe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw Ds.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw Ds.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,Ds.local.invalidyear),n=Ps[a-Ps[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=l8.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Rs[e-Rs[0]],a=t>>13,n=a?12:11;if(r>n)throw Ds.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,Ds.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=DLe(e,i,t,n);return l8.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=l8.fromJD(e),t=ELe(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(SLe),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),o=this.toChineseMonth(a,n),l=Object.getPrototypeOf(m3.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),u=l.month(),f=this.isIntercalaryMonth(s,o),c=i&&f?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);c!==u&&l.month(c)}return l}});var SLe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,qLe=/^\d?\d[iI]?/m,LLe=/^闰?十?[一二三四五六七八九]?月/m,CLe=/^闰?十?[一二三四五六七八九]?/m;Ds.calendars.chinese=m3;var Rs=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Ps=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function ELe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=Ps[n.year-Ps[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Ps[i.year-Ps[0]];var c=u>>9&4095,v=u>>5&15,d=u&31,p,m=new Date(c,v-1,d),y=new Date(n.year,n.month-1,n.day);p=Math.round((y-m)/(24*3600*1e3));var x=Rs[i.year-Rs[0]],w;for(w=0;w<13;w++){var _=x&1<<12-w?30:29;if(p<_)break;p-=_}var b=x>>13;return!b||w=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),o={year:e,month:r,day:t,isIntercalary:f}}var c;c=o.day-1;var v=Rs[o.year-Rs[0]],d=v>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var m=0;m>9&4095,_=x>>5&15,b=x&31,T=new Date(w,_-1,b+c);return i.year=T.getFullYear(),i.month=1+T.getMonth(),i.day=T.getDate(),i}});var pae=N(()=>{var of=rn(),RLe=en();function s8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}s8.prototype=new of.baseCalendar;RLe(s8.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,of.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,of.local.invalidYear||of.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,of.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,of.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});of.calendars.coptic=s8});var yae=N(()=>{var Dl=rn(),PLe=en();function u8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}u8.prototype=new Dl.baseCalendar;PLe(u8.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Dl.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Dl.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Dl.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Dl.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Dl.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Dl.local.invalidDate);return{century:FLe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Dl.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var FLe={20:"Fruitbat",21:"Anchovy"};Dl.calendars.discworld=u8});var mae=N(()=>{var lf=rn(),NLe=en();function f8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}f8.prototype=new lf.baseCalendar;NLe(f8.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,lf.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,lf.local.invalidYear||lf.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,lf.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,lf.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});lf.calendars.ethiopian=f8});var gae=N(()=>{var Fs=rn(),zLe=en();function c8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}c8.prototype=new Fs.baseCalendar;zLe(c8.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Fs.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,g3(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fs.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Fs.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Fs.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&g3(this.daysInYear(e),10)===5?30:r===9&&g3(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Fs.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,Fs.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function g3(e,r){return e-r*Math.floor(e/r)}Fs.calendars.hebrew=c8});var bae=N(()=>{var Dd=rn(),ILe=en();function v8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}v8.prototype=new Dd.baseCalendar;ILe(v8.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Dd.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Dd.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Dd.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});Dd.calendars.islamic=v8});var xae=N(()=>{var Rd=rn(),OLe=en();function h8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}h8.prototype=new Rd.baseCalendar;OLe(h8.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Rd.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Rd.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Rd.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),o=i-Math.floor(i<14?1:13),l=a-Math.floor(o>2?4716:4715),s=t-n-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});Rd.calendars.julian=h8});var wae=N(()=>{var Ui=rn(),BLe=en();function p8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}p8.prototype=new Ui.baseCalendar;BLe(p8.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ui.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ui.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ui.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Ui.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ui.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Ui.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Ui.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Ui.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Ui.local.invalidDate),n=a.toJD(),i=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=d8(e+8+17*20,365);return[Math.floor(r/20)+1,d8(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[_ae(e+20,20),_ae(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Ui.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function d8(e,r){return e-r*Math.floor(e/r)}function _ae(e,r){return d8(e-1,r)+1}Ui.calendars.mayan=p8});var Aae=N(()=>{var sf=rn(),HLe=en();function y8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}y8.prototype=new sf.baseCalendar;var Tae=sf.instance("gregorian");HLe(y8.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,sf.local.invalidYear||sf.regionalOptions[""].invalidYear);return Tae.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,sf.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,sf.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});sf.calendars.nanakshahi=y8});var Mae=N(()=>{var uf=rn(),ULe=en();function m8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}m8.prototype=new uf.baseCalendar;ULe(m8.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,uf.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,uf.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,uf.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=uf.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=uf.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;n>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var u=this.NEPALI_CALENDAR_DATA[i][o]-(s-n);return this.newDate(i,o,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Cv=rn(),GLe=en();function x3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function b3(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),o=n-Math.floor(n);return i>o}x3.prototype=new Cv.baseCalendar;GLe(x3.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Cv.local.invalidYear);return b3(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Cv.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Cv.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,b3(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});Cv.calendars.persian=x3;Cv.calendars.jalali=x3});var Sae=N(()=>{var ff=rn(),YLe=en(),_3=ff.instance();function g8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}g8.prototype=new ff.baseCalendar;YLe(g8.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,ff.local.invalidYear),t=this._t2gYear(r.year());return _3.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,ff.local.invalidYear),n=this._t2gYear(a.year());return _3.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ff.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,ff.local.invalidDate),n=this._t2gYear(a.year());return _3.toJD(n,a.month(),a.day())},fromJD:function(e){var r=_3.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});ff.calendars.taiwan=g8});var qae=N(()=>{var cf=rn(),VLe=en(),w3=cf.instance();function b8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}b8.prototype=new cf.baseCalendar;VLe(b8.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,cf.local.invalidYear),t=this._t2gYear(r.year());return w3.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,cf.local.invalidYear),n=this._t2gYear(a.year());return w3.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,cf.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,cf.local.invalidDate),n=this._t2gYear(a.year());return w3.toJD(n,a.month(),a.day())},fromJD:function(e){var r=w3.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});cf.calendars.thai=b8});var Lae=N(()=>{var vf=rn(),WLe=en();function x8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}x8.prototype=new vf.baseCalendar;WLe(x8.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,vf.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,vf.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Ns[n]-Ns[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,vf.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Ns[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-Ns[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=vf.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=vf.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});vf.calendars.ummalqura=x8;var Ns=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var Eae=N((tUe,Cae)=>{"use strict";Cae.exports=rn();hae();dae();pae();yae();mae();gae();bae();xae();wae();Aae();Mae();kae();Sae();qae();Lae()});var Iae=N((aUe,zae)=>{"use strict";var Rae=Eae(),Pd=Ce(),Pae=Nt(),jLe=Pae.EPOCHJD,ZLe=Pae.ONEDAY,T8={valType:"enumerated",values:Pd.sortObjectKeys(Rae.calendars),editType:"calc",dflt:"gregorian"},Fae=function(e,r,t,a){var n={};return n[t]=T8,Pd.coerce(e,r,n,t,a)},XLe=function(e,r,t,a){for(var n=0;n{"use strict";Oae.exports=Iae()});var rCe=N((iUe,Uae)=>{var Hae=YU();Hae.register([WG(),RY(),XV(),pW(),qW(),Cj(),Yj(),EZ(),oX(),gte(),sae(),Bae()]);Uae.exports=Hae});return rCe();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-finance.js b/dist/plotly-finance.js index f2adc55926c..651676d1bdd 100644 --- a/dist/plotly-finance.js +++ b/dist/plotly-finance.js @@ -1,5 +1,5 @@ /** -* plotly.js (finance) v3.1.0-rc.0 +* plotly.js (finance) v3.1.0-rc.1 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -42,7 +42,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.1.0-rc.0"; + exports.version = "3.1.0-rc.1"; } }); @@ -10335,6 +10335,11 @@ var Plotly = (() => { dflt: 15, editType: "none" }, + showarrow: { + valType: "boolean", + dflt: true, + editType: "none" + }, editType: "none" }, selectdirection: { @@ -10368,6 +10373,7 @@ var Plotly = (() => { }), align: extendFlat({}, hoverLabelAttrs.align, { arrayOk: true }), namelength: extendFlat({}, hoverLabelAttrs.namelength, { arrayOk: true }), + showarrow: extendFlat({}, hoverLabelAttrs.showarrow), editType: "none" } }; @@ -13153,6 +13159,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 || []; @@ -15596,6 +15616,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); @@ -16005,9 +16027,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;", @@ -16448,6 +16473,10 @@ var Plotly = (() => { ev.emit(event, data); internalEv.emit(event, data); }; + if (typeof plotObj.addEventListener === "function") { + plotObj.addEventListener("wheel", () => { + }); + } return plotObj; }, /* @@ -20938,6 +20967,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(); @@ -21133,6 +21163,13 @@ var Plotly = (() => { dflt: false, editType: "calc" }, + modebardisable: { + valType: "flaglist", + flags: ["autoscale", "zoominout"], + extras: ["none"], + dflt: "none", + editType: "modebar" + }, insiderange: { valType: "info_array", items: [ @@ -21456,6 +21493,14 @@ var Plotly = (() => { editType: "none", description: descriptionWithDates("hover text") }, + unifiedhovertitle: { + text: { + valType: "string", + dflt: "", + editType: "none" + }, + editType: "none" + }, // lines and grids showline: { valType: "boolean", @@ -21560,6 +21605,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"], @@ -22193,6 +22244,9 @@ var Plotly = (() => { coerce("separatethousands"); } } + if (!options.noMinorloglabels && axType === "log") { + coerce("minorloglabels"); + } } }; function tickformatstopDefaults(valueIn, valueOut) { @@ -24993,7 +25047,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; @@ -27735,17 +27789,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") { @@ -27753,7 +27815,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") { @@ -28493,11 +28558,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); @@ -28899,7 +28966,7 @@ var Plotly = (() => { transform, "text-anchor": anchor }); - thisText.style("opacity", 1); + thisText.style("display", null); if (ax._adjustTickLabelsOverflow) { ax._adjustTickLabelsOverflow(); } @@ -28942,9 +29009,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 { @@ -29004,7 +29071,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); } }); @@ -32976,10 +33043,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 ? t02 : 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: t02, font }, + title: { text: mainText, font }, font, bgcolor: hoverlabel.bgcolor, bordercolor: hoverlabel.bordercolor, @@ -33511,13 +33586,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"; @@ -33885,6 +33963,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); }; @@ -34007,6 +34086,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) { @@ -34677,6 +34757,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; @@ -34743,10 +34824,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); @@ -36562,10 +36655,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; @@ -37181,8 +37277,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"; @@ -37248,13 +37345,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) { @@ -37609,7 +37711,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; } } @@ -50862,7 +50965,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]; @@ -51373,6 +51481,7 @@ var Plotly = (() => { grid: layoutOut.grid }); coerce("fixedrange"); + coerce("modebardisable"); addMissingMatchedAxis(); axLayoutOut._input = axLayoutIn; } @@ -51393,6 +51502,7 @@ var Plotly = (() => { ); } coerce("fixedrange"); + coerce("modebardisable"); } for (i = 0; i < yNames.length; i++) { axName = yNames[i]; @@ -51401,6 +51511,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-finance.min.js b/dist/plotly-finance.min.js index 19bd2f27cd9..97a2515b0e0 100644 --- a/dist/plotly-finance.min.js +++ b/dist/plotly-finance.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (finance - minified) v3.1.0-rc.0 +* plotly.js (finance - 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 Ty=Object.defineProperty;var WW=Object.getOwnPropertyDescriptor;var XW=Object.getOwnPropertyNames;var ZW=Object.prototype.hasOwnProperty;var nt=(e,r)=>()=>(e&&(r=e(e=0)),r);var B=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),JW=(e,r)=>{for(var t in r)Ty(e,t,{get:r[t],enumerable:!0})},$W=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of XW(r))!ZW.call(e,n)&&n!==t&&Ty(e,n,{get:()=>r[n],enumerable:!(a=WW(r,n))||a.enumerable});return e};var My=e=>$W(Ty({},"__esModule",{value:!0}),e);var Q0=B(U4=>{"use strict";U4.version="3.1.0-rc.0"});var W4=B((V4,j0)=>{(function(r,t,a){t[r]=t[r]||a(),typeof j0!="undefined"&&j0.exports&&(j0.exports=t[r])})("Promise",typeof window!="undefined"?window:V4,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(_){return setImmediate(_)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(_,w,x,M){return Object.defineProperty(_,w,{value:x,writable:!0,configurable:M!==!1})}}catch(b){r=function(w,x,M){return w[x]=M,w}}a=function(){var _,w,x;function M(k,A){this.fn=k,this.self=A,this.next=void 0}return{add:function(A,L){x=new M(A,L),w?w.next=x:_=x,w=x,x=void 0},drain:function(){var A=_;for(_=w=t=void 0;A;)A.fn.call(A.self),A=A.next}}}();function l(b,_){a.add(b,_),t||(t=i(a.drain))}function o(b){var _,w=typeof b;return b!=null&&(w=="object"||w=="function")&&(_=b.then),typeof _=="function"?_:!1}function s(){for(var b=0;b0&&l(s,w))}catch(x){c.call(new d(w),x)}}}function c(b){var _=this;_.triggered||(_.triggered=!0,_.def&&(_=_.def),_.msg=b,_.state=2,_.chain.length>0&&l(s,_))}function h(b,_,w,x){for(var M=0;M<_.length;M++)(function(A){b.resolve(_[A]).then(function(D){w(A,D)},x)})(M)}function d(b){this.def=b,this.triggered=!1}function p(b){this.promise=b,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function y(b){if(typeof b!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var _=new p(this);this.then=function(x,M){var k={success:typeof x=="function"?x:!0,failure:typeof M=="function"?M:!1};return k.promise=new this.constructor(function(L,D){if(typeof L!="function"||typeof D!="function")throw TypeError("Not a function");k.resolve=L,k.reject=D}),_.chain.push(k),_.state!==0&&l(s,_),k.promise},this.catch=function(x){return this.then(void 0,x)};try{b.call(void 0,function(x){f.call(_,x)},function(x){c.call(_,x)})}catch(w){c.call(_,w)}}var m=r({},"constructor",y,!1);return y.prototype=m,r(m,"__NPO__",0,!1),r(y,"resolve",function(_){var w=this;return _&&typeof _=="object"&&_.__NPO__===1?_:new w(function(M,k){if(typeof M!="function"||typeof k!="function")throw TypeError("Not a function");M(_)})}),r(y,"reject",function(_){return new this(function(x,M){if(typeof x!="function"||typeof M!="function")throw TypeError("Not a function");M(_)})}),r(y,"all",function(_){var w=this;return n.call(_)!="[object Array]"?w.reject(TypeError("Not an array")):_.length===0?w.resolve([]):new w(function(M,k){if(typeof M!="function"||typeof k!="function")throw TypeError("Not a function");var A=_.length,L=Array(A),D=0;h(w,_,function(R,N){L[R]=N,++D===A&&M(L)},k)})}),r(y,"race",function(_){var w=this;return n.call(_)!="[object Array]"?w.reject(TypeError("Not an array")):new w(function(M,k){if(typeof M!="function"||typeof k!="function")throw TypeError("Not a function");h(w,_,function(L,D){M(D)},k)})}),y})});var kr=B((Rpe,eh)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(v){return r.call(v)},a=self.document;function n(v){return v&&(v.ownerDocument||v.document||v).documentElement}function i(v){return v&&(v.ownerDocument&&v.ownerDocument.defaultView||v.document&&v||v.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(v){t=function(g){for(var T=g.length,q=new Array(T);T--;)q[T]=g[T];return q}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(v){var l=this.Element.prototype,o=l.setAttribute,s=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(g,T){o.call(this,g,T+"")},l.setAttributeNS=function(g,T,q){s.call(this,g,T,q+"")},u.setProperty=function(g,T,q){f.call(this,g,T+"",q)}}e.ascending=c;function c(v,g){return vg?1:v>=g?0:NaN}e.descending=function(v,g){return gv?1:g>=v?0:NaN},e.min=function(v,g){var T=-1,q=v.length,C,S;if(arguments.length===1){for(;++T=S){C=S;break}for(;++TS&&(C=S)}else{for(;++T=S){C=S;break}for(;++TS&&(C=S)}return C},e.max=function(v,g){var T=-1,q=v.length,C,S;if(arguments.length===1){for(;++T=S){C=S;break}for(;++TC&&(C=S)}else{for(;++T=S){C=S;break}for(;++TC&&(C=S)}return C},e.extent=function(v,g){var T=-1,q=v.length,C,S,z;if(arguments.length===1){for(;++T=S){C=z=S;break}for(;++TS&&(C=S),z=S){C=z=S;break}for(;++TS&&(C=S),z1)return z/(F-1)},e.deviation=function(){var v=e.variance.apply(this,arguments);return v&&Math.sqrt(v)};function p(v){return{left:function(g,T,q,C){for(arguments.length<3&&(q=0),arguments.length<4&&(C=g.length);q>>1;v(g[S],T)<0?q=S+1:C=S}return q},right:function(g,T,q,C){for(arguments.length<3&&(q=0),arguments.length<4&&(C=g.length);q>>1;v(g[S],T)>0?C=S:q=S+1}return q}}}var y=p(c);e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(v){return p(v.length===1?function(g,T){return c(v(g),T)}:v)},e.shuffle=function(v,g,T){(q=arguments.length)<3&&(T=v.length,q<2&&(g=0));for(var q=T-g,C,S;q;)S=Math.random()*q--|0,C=v[q+g],v[q+g]=v[S+g],v[S+g]=C;return v},e.permute=function(v,g){for(var T=g.length,q=new Array(T);T--;)q[T]=v[g[T]];return q},e.pairs=function(v){for(var g=0,T=v.length-1,q,C=v[0],S=new Array(T<0?0:T);g=0;)for(z=v[g],T=z.length;--T>=0;)S[--C]=z[T];return S};var b=Math.abs;e.range=function(v,g,T){if(arguments.length<3&&(T=1,arguments.length<2&&(g=v,v=0)),(g-v)/T===1/0)throw new Error("infinite range");var q=[],C=_(b(T)),S=-1,z;if(v*=C,g*=C,T*=C,T<0)for(;(z=v+T*++S)>g;)q.push(z/C);else for(;(z=v+T*++S)=g.length)return C?C.call(v,F):q?F.sort(q):F;for(var K=-1,j=F.length,ee=g[Z++],me,Te,ae,oe=new x,he;++K=g.length)return P;var Z=[],K=T[F++];return P.forEach(function(j,ee){Z.push({key:j,values:z(ee,F)})}),K?Z.sort(function(j,ee){return K(j.key,ee.key)}):Z}return v.map=function(P,F){return S(F,P,0)},v.entries=function(P){return z(S(e.map,P,0),0)},v.key=function(P){return g.push(P),v},v.sortKeys=function(P){return T[g.length-1]=P,v},v.sortValues=function(P){return q=P,v},v.rollup=function(P){return C=P,v},v},e.set=function(v){var g=new H;if(v)for(var T=0,q=v.length;T=0&&(q=v.slice(T+1),v=v.slice(0,T)),v)return arguments.length<2?this[v].on(q):this[v].on(q,g);if(arguments.length===2){if(g==null)for(v in this)this.hasOwnProperty(v)&&this[v].on(q,null);return this}};function $(v){var g=[],T=new x;function q(){for(var C=g,S=-1,z=C.length,P;++S=0&&(T=v.slice(0,g))!=="xmlns"&&(v=v.slice(g+1)),ge.hasOwnProperty(T)?{space:ge[T],local:v}:v}},ye.attr=function(v,g){if(arguments.length<2){if(typeof v=="string"){var T=this.node();return v=e.ns.qualify(v),v.local?T.getAttributeNS(v.space,v.local):T.getAttribute(v)}for(g in v)this.each(Me(g,v[g]));return this}return this.each(Me(v,g))};function Me(v,g){v=e.ns.qualify(v);function T(){this.removeAttribute(v)}function q(){this.removeAttributeNS(v.space,v.local)}function C(){this.setAttribute(v,g)}function S(){this.setAttributeNS(v.space,v.local,g)}function z(){var F=g.apply(this,arguments);F==null?this.removeAttribute(v):this.setAttribute(v,F)}function P(){var F=g.apply(this,arguments);F==null?this.removeAttributeNS(v.space,v.local):this.setAttributeNS(v.space,v.local,F)}return g==null?v.local?q:T:typeof g=="function"?v.local?P:z:v.local?S:C}function xe(v){return v.trim().replace(/\s+/g," ")}ye.classed=function(v,g){if(arguments.length<2){if(typeof v=="string"){var T=this.node(),q=(v=Ie(v)).length,C=-1;if(g=T.classList){for(;++C=0;)(S=T[q])&&(C&&C!==S.nextSibling&&C.parentNode.insertBefore(S,C),C=S);return this},ye.sort=function(v){v=ke.apply(this,arguments);for(var g=-1,T=this.length;++g=g&&(g=C+1);!(F=z[g])&&++g0&&(v=v.slice(0,C));var z=Ge.get(v);z&&(v=z,S=Ue);function P(){var K=this[q];K&&(this.removeEventListener(v,K,K.$),delete this[q])}function F(){var K=S(g,t(arguments));P.call(this),this.addEventListener(v,this[q]=K,K.$=T),K._=g}function Z(){var K=new RegExp("^__on([^.]+)"+e.requote(v)+"$"),j;for(var ee in this)if(j=ee.match(K)){var me=this[ee];this.removeEventListener(j[1],me,me.$),delete this[ee]}}return C?g?F:P:g?G:Z}var Ge=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Ge.forEach(function(v){"on"+v in a&&Ge.remove(v)});function Ze(v,g){return function(T){var q=e.event;e.event=T,g[0]=this.__data__;try{v.apply(this,g)}finally{e.event=q}}}function Ue(v,g){var T=Ze(v,g);return function(q){var C=this,S=q.relatedTarget;(!S||S!==C&&!(S.compareDocumentPosition(C)&8))&&T.call(C,q)}}var He,$e=0;function cr(v){var g=".dragsuppress-"+ ++$e,T="click"+g,q=e.select(i(v)).on("touchmove"+g,re).on("dragstart"+g,re).on("selectstart"+g,re);if(He==null&&(He="onselectstart"in v?!1:Y(v.style,"userSelect")),He){var C=n(v).style,S=C[He];C[He]="none"}return function(z){if(q.on(g,null),He&&(C[He]=S),z){var P=function(){q.on(T,null)};q.on(T,function(){re(),P()},!0),setTimeout(P,0)}}}e.mouse=function(v){return Fe(v,le())};var lr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Fe(v,g){g.changedTouches&&(g=g.changedTouches[0]);var T=v.ownerSVGElement||v;if(T.createSVGPoint){var q=T.createSVGPoint();if(lr<0){var C=i(v);if(C.scrollX||C.scrollY){T=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var S=T[0][0].getScreenCTM();lr=!(S.f||S.e),T.remove()}}return lr?(q.x=g.pageX,q.y=g.pageY):(q.x=g.clientX,q.y=g.clientY),q=q.matrixTransform(v.getScreenCTM().inverse()),[q.x,q.y]}var z=v.getBoundingClientRect();return[g.clientX-z.left-v.clientLeft,g.clientY-z.top-v.clientTop]}e.touch=function(v,g,T){if(arguments.length<3&&(T=g,g=le().changedTouches),g){for(var q=0,C=g.length,S;q0?1:v<0?-1:0}function Wr(v,g,T){return(g[0]-v[0])*(T[1]-v[1])-(g[1]-v[1])*(T[0]-v[0])}function Nt(v){return v>1?0:v<-1?qe:Math.acos(v)}function oa(v){return v>1?ur:v<-1?-ur:Math.asin(v)}function Na(v){return((v=Math.exp(v))-1/v)/2}function sa(v){return((v=Math.exp(v))+1/v)/2}function Sn(v){return((v=Math.exp(2*v))-1)/(v+1)}function Za(v){return(v=Math.sin(v/2))*v}var ua=Math.SQRT2,Ja=2,gr=4;e.interpolateZoom=function(v,g){var T=v[0],q=v[1],C=v[2],S=g[0],z=g[1],P=g[2],F=S-T,Z=z-q,K=F*F+Z*Z,j,ee;if(K0&&(je=je.transition().duration(z)),je.call(Ae.event)}function hr(){oe&&oe.domain(ae.range().map(function(je){return(je-v.x)/v.k}).map(ae.invert)),we&&we.domain(he.range().map(function(je){return(je-v.y)/v.k}).map(he.invert))}function dr(je){P++||je({type:"zoomstart"})}function Sr(je){hr(),je({type:"zoom",scale:v.k,translate:[v.x,v.y]})}function pr(je){--P||(je({type:"zoomend"}),T=null)}function Mr(){var je=this,Dr=Te.of(je,arguments),Er=0,jr=e.select(i(je)).on(Z,xa).on(K,Ha),kt=pe(e.mouse(je)),Xt=cr(je);Z0.call(je),dr(Dr);function xa(){Er=1,or(e.mouse(je),kt),Sr(Dr)}function Ha(){jr.on(Z,null).on(K,null),Xt(Er),pr(Dr)}}function Qr(){var je=this,Dr=Te.of(je,arguments),Er={},jr=0,kt,Xt=".zoom-"+e.event.changedTouches[0].identifier,xa="touchmove"+Xt,Ha="touchend"+Xt,$a=[],Oa=e.select(je),ja=cr(je);en(),dr(Dr),Oa.on(F,null).on(ee,en);function La(){var oi=e.touches(je);return kt=v.k,oi.forEach(function(ba){ba.identifier in Er&&(Er[ba.identifier]=pe(ba))}),oi}function en(){var oi=e.event.target;e.select(oi).on(xa,Fo).on(Ha,VW),$a.push(oi);for(var ba=e.event.changedTouches,En=0,zi=ba.length;En1){var Io=Pn[0],El=Pn[1],K0=Io[0]-El[0],G4=Io[1]-El[1];jr=K0*K0+G4*G4}}function Fo(){var oi=e.touches(je),ba,En,zi,Pn;Z0.call(je);for(var fu=0,Io=oi.length;fu1?1:g,T=T<0?0:T>1?1:T,C=T<=.5?T*(1+g):T+g-T*g,q=2*T-C;function S(P){return P>360?P-=360:P<0&&(P+=360),P<60?q+(C-q)*P/60:P<180?C:P<240?q+(C-q)*(240-P)/60:q}function z(P){return Math.round(S(P)*255)}return new Ia(z(v+120),z(v),z(v-120))}e.hcl=fa;function fa(v,g,T){return this instanceof fa?(this.h=+v,this.c=+g,void(this.l=+T)):arguments.length<2?v instanceof fa?new fa(v.h,v.c,v.l):v instanceof Qt?q0(v.l,v.a,v.b):q0((v=nr((v=e.rgb(v)).r,v.g,v.b)).l,v.a,v.b):new fa(v,g,T)}var ai=fa.prototype=new Lt;ai.brighter=function(v){return new fa(this.h,this.c,Math.min(100,this.l+lt*(arguments.length?v:1)))},ai.darker=function(v){return new fa(this.h,this.c,Math.max(0,this.l-lt*(arguments.length?v:1)))},ai.rgb=function(){return ni(this.h,this.c,this.l).rgb()};function ni(v,g,T){return isNaN(v)&&(v=0),isNaN(g)&&(g=0),new Qt(T,Math.cos(v*=Ar)*g,Math.sin(v)*g)}e.lab=Qt;function Qt(v,g,T){return this instanceof Qt?(this.l=+v,this.a=+g,void(this.b=+T)):arguments.length<2?v instanceof Qt?new Qt(v.l,v.a,v.b):v instanceof fa?ni(v.h,v.c,v.l):nr((v=Ia(v)).r,v.g,v.b):new Qt(v,g,T)}var lt=18,ma=.95047,Do=1,Eo=1.08883,Sl=Qt.prototype=new Lt;Sl.brighter=function(v){return new Qt(Math.min(100,this.l+lt*(arguments.length?v:1)),this.a,this.b)},Sl.darker=function(v){return new Qt(Math.max(0,this.l-lt*(arguments.length?v:1)),this.a,this.b)},Sl.rgb=function(){return k0(this.l,this.a,this.b)};function k0(v,g,T){var q=(v+16)/116,C=q+g/500,S=q-T/200;return C=ac(C)*ma,q=ac(q)*Do,S=ac(S)*Eo,new Ia(ic(3.2404542*C-1.5371385*q-.4985314*S),ic(-.969266*C+1.8760108*q+.041556*S),ic(.0556434*C-.2040259*q+1.0572252*S))}function q0(v,g,T){return v>0?new fa(Math.atan2(T,g)*Ur,Math.sqrt(g*g+T*T),v):new fa(NaN,NaN,v)}function ac(v){return v>.206893034?v*v*v:(v-4/29)/7.787037}function nc(v){return v>.008856?Math.pow(v,1/3):7.787037*v+4/29}function ic(v){return Math.round(255*(v<=.00304?12.92*v:1.055*Math.pow(v,1/2.4)-.055))}e.rgb=Ia;function Ia(v,g,T){return this instanceof Ia?(this.r=~~v,this.g=~~g,void(this.b=~~T)):arguments.length<2?v instanceof Ia?new Ia(v.r,v.g,v.b):Zr(""+v,Ia,Fa):new Ia(v,g,T)}function C0(v){return new Ia(v>>16,v>>8&255,v&255)}function tu(v){return C0(v)+""}var au=Ia.prototype=new Lt;au.brighter=function(v){v=Math.pow(.7,arguments.length?v:1);var g=this.r,T=this.g,q=this.b,C=30;return!g&&!T&&!q?new Ia(C,C,C):(g&&g>4,q=q>>4|q,C=F&240,C=C>>4|C,S=F&15,S=S<<4|S):v.length===7&&(q=(F&16711680)>>16,C=(F&65280)>>8,S=F&255)),g(q,C,S))}function rt(v,g,T){var q=Math.min(v/=255,g/=255,T/=255),C=Math.max(v,g,T),S=C-q,z,P,F=(C+q)/2;return S?(P=F<.5?S/(C+q):S/(2-C-q),v==C?z=(g-T)/S+(g0&&F<1?0:z),new ct(z,P,F)}function nr(v,g,T){v=ya(v),g=ya(g),T=ya(T);var q=nc((.4124564*v+.3575761*g+.1804375*T)/ma),C=nc((.2126729*v+.7151522*g+.072175*T)/Do),S=nc((.0193339*v+.119192*g+.9503041*T)/Eo);return Qt(116*C-16,500*(q-C),200*(C-S))}function ya(v){return(v/=255)<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4)}function vt(v){var g=parseFloat(v);return v.charAt(v.length-1)==="%"?Math.round(g*2.55):g}var ga=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});ga.forEach(function(v,g){ga.set(v,C0(g))});function Nr(v){return typeof v=="function"?v:function(){return v}}e.functor=Nr,e.xhr=ii(V);function ii(v){return function(g,T,q){return arguments.length===2&&typeof T=="function"&&(q=T,T=null),Po(g,T,v,q)}}function Po(v,g,T,q){var C={},S=e.dispatch("beforesend","progress","load","error"),z={},P=new XMLHttpRequest,F=null;self.XDomainRequest&&!("withCredentials"in P)&&/^(http(s)?:)?\/\//.test(v)&&(P=new XDomainRequest),"onload"in P?P.onload=P.onerror=Z:P.onreadystatechange=function(){P.readyState>3&&Z()};function Z(){var K=P.status,j;if(!K&&XU(P)||K>=200&&K<300||K===304){try{j=T.call(C,P)}catch(ee){S.error.call(C,ee);return}S.load.call(C,j)}else S.error.call(C,P)}return P.onprogress=function(K){var j=e.event;e.event=K;try{S.progress.call(C,P)}finally{e.event=j}},C.header=function(K,j){return K=(K+"").toLowerCase(),arguments.length<2?z[K]:(j==null?delete z[K]:z[K]=j+"",C)},C.mimeType=function(K){return arguments.length?(g=K==null?null:K+"",C):g},C.responseType=function(K){return arguments.length?(F=K,C):F},C.response=function(K){return T=K,C},["get","post"].forEach(function(K){C[K]=function(){return C.send.apply(C,[K].concat(t(arguments)))}}),C.send=function(K,j,ee){if(arguments.length===2&&typeof j=="function"&&(ee=j,j=null),P.open(K,v,!0),g!=null&&!("accept"in z)&&(z.accept=g+",*/*"),P.setRequestHeader)for(var me in z)P.setRequestHeader(me,z[me]);return g!=null&&P.overrideMimeType&&P.overrideMimeType(g),F!=null&&(P.responseType=F),ee!=null&&C.on("error",ee).on("load",function(Te){ee(null,Te)}),S.beforesend.call(C,P),P.send(j==null?null:j),C},C.abort=function(){return P.abort(),C},e.rebind(C,S,"on"),q==null?C:C.get(WU(q))}function WU(v){return v.length===1?function(g,T){v(g==null?T:null)}:v}function XU(v){var g=v.responseType;return g&&g!=="text"?v.response:v.responseText}e.dsv=function(v,g){var T=new RegExp('["'+v+` -]`),q=v.charCodeAt(0);function C(Z,K,j){arguments.length<3&&(j=K,K=null);var ee=Po(Z,g,K==null?S:z(K),j);return ee.row=function(me){return arguments.length?ee.response((K=me)==null?S:z(me)):K},ee}function S(Z){return C.parse(Z.responseText)}function z(Z){return function(K){return C.parse(K.responseText,Z)}}C.parse=function(Z,K){var j;return C.parseRows(Z,function(ee,me){if(j)return j(ee,me-1);var Te=function(ae){for(var oe={},he=ee.length,we=0;we=Te)return ee;if(we)return we=!1,j;var Ve=ae;if(Z.charCodeAt(Ve)===34){for(var rr=Ve;rr++{var Ty=Object.defineProperty;var XW=Object.getOwnPropertyDescriptor;var ZW=Object.getOwnPropertyNames;var JW=Object.prototype.hasOwnProperty;var nt=(e,r)=>()=>(e&&(r=e(e=0)),r);var B=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),$W=(e,r)=>{for(var t in r)Ty(e,t,{get:r[t],enumerable:!0})},KW=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of ZW(r))!JW.call(e,n)&&n!==t&&Ty(e,n,{get:()=>r[n],enumerable:!(a=XW(r,n))||a.enumerable});return e};var My=e=>KW(Ty({},"__esModule",{value:!0}),e);var rh=B(U4=>{"use strict";U4.version="3.1.0-rc.1"});var W4=B((V4,th)=>{(function(r,t,a){t[r]=t[r]||a(),typeof th!="undefined"&&th.exports&&(th.exports=t[r])})("Promise",typeof window!="undefined"?window:V4,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(_){return setImmediate(_)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(_,w,x,M){return Object.defineProperty(_,w,{value:x,writable:!0,configurable:M!==!1})}}catch(b){r=function(w,x,M){return w[x]=M,w}}a=function(){var _,w,x;function M(k,A){this.fn=k,this.self=A,this.next=void 0}return{add:function(A,S){x=new M(A,S),w?w.next=x:_=x,w=x,x=void 0},drain:function(){var A=_;for(_=w=t=void 0;A;)A.fn.call(A.self),A=A.next}}}();function l(b,_){a.add(b,_),t||(t=i(a.drain))}function o(b){var _,w=typeof b;return b!=null&&(w=="object"||w=="function")&&(_=b.then),typeof _=="function"?_:!1}function s(){for(var b=0;b0&&l(s,w))}catch(x){c.call(new d(w),x)}}}function c(b){var _=this;_.triggered||(_.triggered=!0,_.def&&(_=_.def),_.msg=b,_.state=2,_.chain.length>0&&l(s,_))}function h(b,_,w,x){for(var M=0;M<_.length;M++)(function(A){b.resolve(_[A]).then(function(D){w(A,D)},x)})(M)}function d(b){this.def=b,this.triggered=!1}function p(b){this.promise=b,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function y(b){if(typeof b!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var _=new p(this);this.then=function(x,M){var k={success:typeof x=="function"?x:!0,failure:typeof M=="function"?M:!1};return k.promise=new this.constructor(function(S,D){if(typeof S!="function"||typeof D!="function")throw TypeError("Not a function");k.resolve=S,k.reject=D}),_.chain.push(k),_.state!==0&&l(s,_),k.promise},this.catch=function(x){return this.then(void 0,x)};try{b.call(void 0,function(x){f.call(_,x)},function(x){c.call(_,x)})}catch(w){c.call(_,w)}}var m=r({},"constructor",y,!1);return y.prototype=m,r(m,"__NPO__",0,!1),r(y,"resolve",function(_){var w=this;return _&&typeof _=="object"&&_.__NPO__===1?_:new w(function(M,k){if(typeof M!="function"||typeof k!="function")throw TypeError("Not a function");M(_)})}),r(y,"reject",function(_){return new this(function(x,M){if(typeof x!="function"||typeof M!="function")throw TypeError("Not a function");M(_)})}),r(y,"all",function(_){var w=this;return n.call(_)!="[object Array]"?w.reject(TypeError("Not an array")):_.length===0?w.resolve([]):new w(function(M,k){if(typeof M!="function"||typeof k!="function")throw TypeError("Not a function");var A=_.length,S=Array(A),D=0;h(w,_,function(R,N){S[R]=N,++D===A&&M(S)},k)})}),r(y,"race",function(_){var w=this;return n.call(_)!="[object Array]"?w.reject(TypeError("Not an array")):new w(function(M,k){if(typeof M!="function"||typeof k!="function")throw TypeError("Not a function");h(w,_,function(S,D){M(D)},k)})}),y})});var kr=B((Hpe,ah)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(v){return r.call(v)},a=self.document;function n(v){return v&&(v.ownerDocument||v.document||v).documentElement}function i(v){return v&&(v.ownerDocument&&v.ownerDocument.defaultView||v.document&&v||v.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(v){t=function(g){for(var T=g.length,q=new Array(T);T--;)q[T]=g[T];return q}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(v){var l=this.Element.prototype,o=l.setAttribute,s=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(g,T){o.call(this,g,T+"")},l.setAttributeNS=function(g,T,q){s.call(this,g,T,q+"")},u.setProperty=function(g,T,q){f.call(this,g,T+"",q)}}e.ascending=c;function c(v,g){return vg?1:v>=g?0:NaN}e.descending=function(v,g){return gv?1:g>=v?0:NaN},e.min=function(v,g){var T=-1,q=v.length,C,L;if(arguments.length===1){for(;++T=L){C=L;break}for(;++TL&&(C=L)}else{for(;++T=L){C=L;break}for(;++TL&&(C=L)}return C},e.max=function(v,g){var T=-1,q=v.length,C,L;if(arguments.length===1){for(;++T=L){C=L;break}for(;++TC&&(C=L)}else{for(;++T=L){C=L;break}for(;++TC&&(C=L)}return C},e.extent=function(v,g){var T=-1,q=v.length,C,L,z;if(arguments.length===1){for(;++T=L){C=z=L;break}for(;++TL&&(C=L),z=L){C=z=L;break}for(;++TL&&(C=L),z1)return z/(F-1)},e.deviation=function(){var v=e.variance.apply(this,arguments);return v&&Math.sqrt(v)};function p(v){return{left:function(g,T,q,C){for(arguments.length<3&&(q=0),arguments.length<4&&(C=g.length);q>>1;v(g[L],T)<0?q=L+1:C=L}return q},right:function(g,T,q,C){for(arguments.length<3&&(q=0),arguments.length<4&&(C=g.length);q>>1;v(g[L],T)>0?C=L:q=L+1}return q}}}var y=p(c);e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(v){return p(v.length===1?function(g,T){return c(v(g),T)}:v)},e.shuffle=function(v,g,T){(q=arguments.length)<3&&(T=v.length,q<2&&(g=0));for(var q=T-g,C,L;q;)L=Math.random()*q--|0,C=v[q+g],v[q+g]=v[L+g],v[L+g]=C;return v},e.permute=function(v,g){for(var T=g.length,q=new Array(T);T--;)q[T]=v[g[T]];return q},e.pairs=function(v){for(var g=0,T=v.length-1,q,C=v[0],L=new Array(T<0?0:T);g=0;)for(z=v[g],T=z.length;--T>=0;)L[--C]=z[T];return L};var b=Math.abs;e.range=function(v,g,T){if(arguments.length<3&&(T=1,arguments.length<2&&(g=v,v=0)),(g-v)/T===1/0)throw new Error("infinite range");var q=[],C=_(b(T)),L=-1,z;if(v*=C,g*=C,T*=C,T<0)for(;(z=v+T*++L)>g;)q.push(z/C);else for(;(z=v+T*++L)=g.length)return C?C.call(v,F):q?F.sort(q):F;for(var K=-1,j=F.length,ee=g[Z++],ye,Te,ae,ue=new x,he;++K=g.length)return P;var Z=[],K=T[F++];return P.forEach(function(j,ee){Z.push({key:j,values:z(ee,F)})}),K?Z.sort(function(j,ee){return K(j.key,ee.key)}):Z}return v.map=function(P,F){return L(F,P,0)},v.entries=function(P){return z(L(e.map,P,0),0)},v.key=function(P){return g.push(P),v},v.sortKeys=function(P){return T[g.length-1]=P,v},v.sortValues=function(P){return q=P,v},v.rollup=function(P){return C=P,v},v},e.set=function(v){var g=new H;if(v)for(var T=0,q=v.length;T=0&&(q=v.slice(T+1),v=v.slice(0,T)),v)return arguments.length<2?this[v].on(q):this[v].on(q,g);if(arguments.length===2){if(g==null)for(v in this)this.hasOwnProperty(v)&&this[v].on(q,null);return this}};function $(v){var g=[],T=new x;function q(){for(var C=g,L=-1,z=C.length,P;++L=0&&(T=v.slice(0,g))!=="xmlns"&&(v=v.slice(g+1)),xe.hasOwnProperty(T)?{space:xe[T],local:v}:v}},_e.attr=function(v,g){if(arguments.length<2){if(typeof v=="string"){var T=this.node();return v=e.ns.qualify(v),v.local?T.getAttributeNS(v.space,v.local):T.getAttribute(v)}for(g in v)this.each(ke(g,v[g]));return this}return this.each(ke(v,g))};function ke(v,g){v=e.ns.qualify(v);function T(){this.removeAttribute(v)}function q(){this.removeAttributeNS(v.space,v.local)}function C(){this.setAttribute(v,g)}function L(){this.setAttributeNS(v.space,v.local,g)}function z(){var F=g.apply(this,arguments);F==null?this.removeAttribute(v):this.setAttribute(v,F)}function P(){var F=g.apply(this,arguments);F==null?this.removeAttributeNS(v.space,v.local):this.setAttributeNS(v.space,v.local,F)}return g==null?v.local?q:T:typeof g=="function"?v.local?P:z:v.local?L:C}function ge(v){return v.trim().replace(/\s+/g," ")}_e.classed=function(v,g){if(arguments.length<2){if(typeof v=="string"){var T=this.node(),q=(v=Fe(v)).length,C=-1;if(g=T.classList){for(;++C=0;)(L=T[q])&&(C&&C!==L.nextSibling&&C.parentNode.insertBefore(L,C),C=L);return this},_e.sort=function(v){v=Ae.apply(this,arguments);for(var g=-1,T=this.length;++g=g&&(g=C+1);!(F=z[g])&&++g0&&(v=v.slice(0,C));var z=Ie.get(v);z&&(v=z,L=Ue);function P(){var K=this[q];K&&(this.removeEventListener(v,K,K.$),delete this[q])}function F(){var K=L(g,t(arguments));P.call(this),this.addEventListener(v,this[q]=K,K.$=T),K._=g}function Z(){var K=new RegExp("^__on([^.]+)"+e.requote(v)+"$"),j;for(var ee in this)if(j=ee.match(K)){var ye=this[ee];this.removeEventListener(j[1],ye,ye.$),delete this[ee]}}return C?g?F:P:g?G:Z}var Ie=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Ie.forEach(function(v){"on"+v in a&&Ie.remove(v)});function We(v,g){return function(T){var q=e.event;e.event=T,g[0]=this.__data__;try{v.apply(this,g)}finally{e.event=q}}}function Ue(v,g){var T=We(v,g);return function(q){var C=this,L=q.relatedTarget;(!L||L!==C&&!(L.compareDocumentPosition(C)&8))&&T.call(C,q)}}var Je,je=0;function vr(v){var g=".dragsuppress-"+ ++je,T="click"+g,q=e.select(i(v)).on("touchmove"+g,re).on("dragstart"+g,re).on("selectstart"+g,re);if(Je==null&&(Je="onselectstart"in v?!1:Y(v.style,"userSelect")),Je){var C=n(v).style,L=C[Je];C[Je]="none"}return function(z){if(q.on(g,null),Je&&(C[Je]=L),z){var P=function(){q.on(T,null)};q.on(T,function(){re(),P()},!0),setTimeout(P,0)}}}e.mouse=function(v){return Re(v,le())};var $e=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Re(v,g){g.changedTouches&&(g=g.changedTouches[0]);var T=v.ownerSVGElement||v;if(T.createSVGPoint){var q=T.createSVGPoint();if($e<0){var C=i(v);if(C.scrollX||C.scrollY){T=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var L=T[0][0].getScreenCTM();$e=!(L.f||L.e),T.remove()}}return $e?(q.x=g.pageX,q.y=g.pageY):(q.x=g.clientX,q.y=g.clientY),q=q.matrixTransform(v.getScreenCTM().inverse()),[q.x,q.y]}var z=v.getBoundingClientRect();return[g.clientX-z.left-v.clientLeft,g.clientY-z.top-v.clientTop]}e.touch=function(v,g,T){if(arguments.length<3&&(T=g,g=le().changedTouches),g){for(var q=0,C=g.length,L;q0?1:v<0?-1:0}function jr(v,g,T){return(g[0]-v[0])*(T[1]-v[1])-(g[1]-v[1])*(T[0]-v[0])}function ra(v){return v>1?0:v<-1?Se:Math.acos(v)}function It(v){return v>1?ar:v<-1?-ar:Math.asin(v)}function _t(v){return((v=Math.exp(v))-1/v)/2}function Dt(v){return((v=Math.exp(v))+1/v)/2}function ga(v){return((v=Math.exp(2*v))-1)/(v+1)}function xa(v){return(v=Math.sin(v/2))*v}var Gt=Math.SQRT2,$a=2,gr=4;e.interpolateZoom=function(v,g){var T=v[0],q=v[1],C=v[2],L=g[0],z=g[1],P=g[2],F=L-T,Z=z-q,K=F*F+Z*Z,j,ee;if(K0&&(er=er.transition().duration(z)),er.call(Me.event)}function hr(){ue&&ue.domain(ae.range().map(function(er){return(er-v.x)/v.k}).map(ae.invert)),we&&we.domain(he.range().map(function(er){return(er-v.y)/v.k}).map(he.invert))}function dr(er){P++||er({type:"zoomstart"})}function Lr(er){hr(),er({type:"zoom",scale:v.k,translate:[v.x,v.y]})}function pr(er){--P||(er({type:"zoomend"}),T=null)}function Mr(){var er=this,Dr=Te.of(er,arguments),Er=0,Qr=e.select(i(er)).on(Z,Ta).on(K,Ba),qt=me(e.mouse(er)),Kt=vr(er);K0.call(er),dr(Dr);function Ta(){Er=1,sr(e.mouse(er),qt),Lr(Dr)}function Ba(){Qr.on(Z,null).on(K,null),Kt(Er),pr(Dr)}}function Kr(){var er=this,Dr=Te.of(er,arguments),Er={},Qr=0,qt,Kt=".zoom-"+e.event.changedTouches[0].identifier,Ta="touchmove"+Kt,Ba="touchend"+Kt,Ka=[],Ya=e.select(er),en=vr(er);rn(),dr(Dr),Ya.on(F,null).on(ee,rn);function Ea(){var oi=e.touches(er);return qt=v.k,oi.forEach(function(Ma){Ma.identifier in Er&&(Er[Ma.identifier]=me(Ma))}),oi}function rn(){var oi=e.event.target;e.select(oi).on(Ta,Fo).on(Ba,WW),Ka.push(oi);for(var Ma=e.event.changedTouches,En=0,zi=Ma.length;En1){var Io=Pn[0],El=Pn[1],eh=Io[0]-El[0],G4=Io[1]-El[1];Qr=eh*eh+G4*G4}}function Fo(){var oi=e.touches(er),Ma,En,zi,Pn;K0.call(er);for(var fu=0,Io=oi.length;fu1?1:g,T=T<0?0:T>1?1:T,C=T<=.5?T*(1+g):T+g-T*g,q=2*T-C;function L(P){return P>360?P-=360:P<0&&(P+=360),P<60?q+(C-q)*P/60:P<180?C:P<240?q+(C-q)*(240-P)/60:q}function z(P){return Math.round(L(P)*255)}return new Oa(z(v+120),z(v),z(v-120))}e.hcl=ca;function ca(v,g,T){return this instanceof ca?(this.h=+v,this.c=+g,void(this.l=+T)):arguments.length<2?v instanceof ca?new ca(v.h,v.c,v.l):v instanceof ta?L0(v.l,v.a,v.b):L0((v=ir((v=e.rgb(v)).r,v.g,v.b)).l,v.a,v.b):new ca(v,g,T)}var ai=ca.prototype=new Et;ai.brighter=function(v){return new ca(this.h,this.c,Math.min(100,this.l+lt*(arguments.length?v:1)))},ai.darker=function(v){return new ca(this.h,this.c,Math.max(0,this.l-lt*(arguments.length?v:1)))},ai.rgb=function(){return ni(this.h,this.c,this.l).rgb()};function ni(v,g,T){return isNaN(v)&&(v=0),isNaN(g)&&(g=0),new ta(T,Math.cos(v*=Ar)*g,Math.sin(v)*g)}e.lab=ta;function ta(v,g,T){return this instanceof ta?(this.l=+v,this.a=+g,void(this.b=+T)):arguments.length<2?v instanceof ta?new ta(v.l,v.a,v.b):v instanceof ca?ni(v.h,v.c,v.l):ir((v=Oa(v)).r,v.g,v.b):new ta(v,g,T)}var lt=18,ba=.95047,Do=1,Eo=1.08883,Ll=ta.prototype=new Et;Ll.brighter=function(v){return new ta(Math.min(100,this.l+lt*(arguments.length?v:1)),this.a,this.b)},Ll.darker=function(v){return new ta(Math.max(0,this.l-lt*(arguments.length?v:1)),this.a,this.b)},Ll.rgb=function(){return S0(this.l,this.a,this.b)};function S0(v,g,T){var q=(v+16)/116,C=q+g/500,L=q-T/200;return C=ac(C)*ba,q=ac(q)*Do,L=ac(L)*Eo,new Oa(ic(3.2404542*C-1.5371385*q-.4985314*L),ic(-.969266*C+1.8760108*q+.041556*L),ic(.0556434*C-.2040259*q+1.0572252*L))}function L0(v,g,T){return v>0?new ca(Math.atan2(T,g)*Br,Math.sqrt(g*g+T*T),v):new ca(NaN,NaN,v)}function ac(v){return v>.206893034?v*v*v:(v-4/29)/7.787037}function nc(v){return v>.008856?Math.pow(v,1/3):7.787037*v+4/29}function ic(v){return Math.round(255*(v<=.00304?12.92*v:1.055*Math.pow(v,1/2.4)-.055))}e.rgb=Oa;function Oa(v,g,T){return this instanceof Oa?(this.r=~~v,this.g=~~g,void(this.b=~~T)):arguments.length<2?v instanceof Oa?new Oa(v.r,v.g,v.b):Xr(""+v,Oa,Ha):new Oa(v,g,T)}function D0(v){return new Oa(v>>16,v>>8&255,v&255)}function tu(v){return D0(v)+""}var au=Oa.prototype=new Et;au.brighter=function(v){v=Math.pow(.7,arguments.length?v:1);var g=this.r,T=this.g,q=this.b,C=30;return!g&&!T&&!q?new Oa(C,C,C):(g&&g>4,q=q>>4|q,C=F&240,C=C>>4|C,L=F&15,L=L<<4|L):v.length===7&&(q=(F&16711680)>>16,C=(F&65280)>>8,L=F&255)),g(q,C,L))}function et(v,g,T){var q=Math.min(v/=255,g/=255,T/=255),C=Math.max(v,g,T),L=C-q,z,P,F=(C+q)/2;return L?(P=F<.5?L/(C+q):L/(2-C-q),v==C?z=(g-T)/L+(g0&&F<1?0:z),new ct(z,P,F)}function ir(v,g,T){v=_a(v),g=_a(g),T=_a(T);var q=nc((.4124564*v+.3575761*g+.1804375*T)/ba),C=nc((.2126729*v+.7151522*g+.072175*T)/Do),L=nc((.0193339*v+.119192*g+.9503041*T)/Eo);return ta(116*C-16,500*(q-C),200*(C-L))}function _a(v){return(v/=255)<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4)}function vt(v){var g=parseFloat(v);return v.charAt(v.length-1)==="%"?Math.round(g*2.55):g}var wa=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});wa.forEach(function(v,g){wa.set(v,D0(g))});function Nr(v){return typeof v=="function"?v:function(){return v}}e.functor=Nr,e.xhr=ii(U);function ii(v){return function(g,T,q){return arguments.length===2&&typeof T=="function"&&(q=T,T=null),Po(g,T,v,q)}}function Po(v,g,T,q){var C={},L=e.dispatch("beforesend","progress","load","error"),z={},P=new XMLHttpRequest,F=null;self.XDomainRequest&&!("withCredentials"in P)&&/^(http(s)?:)?\/\//.test(v)&&(P=new XDomainRequest),"onload"in P?P.onload=P.onerror=Z:P.onreadystatechange=function(){P.readyState>3&&Z()};function Z(){var K=P.status,j;if(!K&&ZU(P)||K>=200&&K<300||K===304){try{j=T.call(C,P)}catch(ee){L.error.call(C,ee);return}L.load.call(C,j)}else L.error.call(C,P)}return P.onprogress=function(K){var j=e.event;e.event=K;try{L.progress.call(C,P)}finally{e.event=j}},C.header=function(K,j){return K=(K+"").toLowerCase(),arguments.length<2?z[K]:(j==null?delete z[K]:z[K]=j+"",C)},C.mimeType=function(K){return arguments.length?(g=K==null?null:K+"",C):g},C.responseType=function(K){return arguments.length?(F=K,C):F},C.response=function(K){return T=K,C},["get","post"].forEach(function(K){C[K]=function(){return C.send.apply(C,[K].concat(t(arguments)))}}),C.send=function(K,j,ee){if(arguments.length===2&&typeof j=="function"&&(ee=j,j=null),P.open(K,v,!0),g!=null&&!("accept"in z)&&(z.accept=g+",*/*"),P.setRequestHeader)for(var ye in z)P.setRequestHeader(ye,z[ye]);return g!=null&&P.overrideMimeType&&P.overrideMimeType(g),F!=null&&(P.responseType=F),ee!=null&&C.on("error",ee).on("load",function(Te){ee(null,Te)}),L.beforesend.call(C,P),P.send(j==null?null:j),C},C.abort=function(){return P.abort(),C},e.rebind(C,L,"on"),q==null?C:C.get(XU(q))}function XU(v){return v.length===1?function(g,T){v(g==null?T:null)}:v}function ZU(v){var g=v.responseType;return g&&g!=="text"?v.response:v.responseText}e.dsv=function(v,g){var T=new RegExp('["'+v+` +]`),q=v.charCodeAt(0);function C(Z,K,j){arguments.length<3&&(j=K,K=null);var ee=Po(Z,g,K==null?L:z(K),j);return ee.row=function(ye){return arguments.length?ee.response((K=ye)==null?L:z(ye)):K},ee}function L(Z){return C.parse(Z.responseText)}function z(Z){return function(K){return C.parse(K.responseText,Z)}}C.parse=function(Z,K){var j;return C.parseRows(Z,function(ee,ye){if(j)return j(ee,ye-1);var Te=function(ae){for(var ue={},he=ee.length,we=0;we=Te)return ee;if(we)return we=!1,j;var Be=ae;if(Z.charCodeAt(Be)===34){for(var tr=Be;tr++24?(isFinite(g)&&(clearTimeout(E0),E0=setTimeout(Jm,g)),D0=0):(D0=1,L_(Jm))}e.timer.flush=function(){S_(),D_()};function S_(){for(var v=Date.now(),g=L0;g;)v>=g.t&&g.c(v-g.t)&&(g.c=null),g=g.n;return v}function D_(){for(var v,g=L0,T=1/0;g;)g.c?(g.t=0;--P)ae.push(C[Z[j[P]][2]]);for(P=+me;P1&&Wr(v[T[q-2]],v[T[q-1]],v[C])<=0;)--q;T[q++]=C}return T.slice(0,q)}function ZU(v,g){return v[0]-g[0]||v[1]-g[1]}e.geom.polygon=function(v){return Q(v,R0),v};var R0=e.geom.polygon.prototype=[];R0.area=function(){for(var v=-1,g=this.length,T,q=this[g-1],C=0;++vue)P=P.L;else if(z=g-QU(P,T),z>ue){if(!P.R){q=P;break}P=P.R}else{S>-ue?(q=P.P,C=P):z>-ue?(q=P,C=P.N):q=C=P;break}var F=N_(v);if(lu.insert(q,F),!(!q&&!C)){if(q===C){su(q),C=N_(q.site),lu.insert(F,C),F.edge=C.edge=sc(q.site,F.site),ou(q),ou(C);return}if(!C){F.edge=sc(q.site,F.site);return}su(q),su(C);var Z=q.site,K=Z.x,j=Z.y,ee=v.x-K,me=v.y-j,Te=C.site,ae=Te.x-K,oe=Te.y-j,he=2*(ee*oe-me*ae),we=ee*ee+me*me,Ae=ae*ae+oe*oe,pe={x:(oe*we-me*Ae)/he+K,y:(ee*Ae-ae*we)/he+j};z0(C.edge,Z,Te,pe),F.edge=sc(Z,v,null,pe),C.edge=sc(v,Te,null,pe),ou(q),ou(C)}}function F_(v,g){var T=v.site,q=T.x,C=T.y,S=C-g;if(!S)return q;var z=v.P;if(!z)return-1/0;T=z.site;var P=T.x,F=T.y,Z=F-g;if(!Z)return P;var K=P-q,j=1/S-1/Z,ee=K/Z;return j?(-ee+Math.sqrt(ee*ee-2*j*(K*K/(-2*Z)-F+Z/2+C-S/2)))/j+q:(q+P)/2}function QU(v,g){var T=v.N;if(T)return F_(T,g);var q=v.site;return q.y===g?q.x:1/0}function I_(v){this.site=v,this.edges=[]}I_.prototype.prepare=function(){for(var v=this.edges,g=v.length,T;g--;)T=v[g].edge,(!T.b||!T.a)&&v.splice(g,1);return v.sort(H_),v.length};function jU(v){for(var g=v[0][0],T=v[1][0],q=v[0][1],C=v[1][1],S,z,P,F,Z=Ro,K=Z.length,j,ee,me,Te,ae,oe;K--;)if(j=Z[K],!(!j||!j.prepare()))for(me=j.edges,Te=me.length,ee=0;eeue||b(F-z)>ue)&&(me.splice(ee,0,new N0(nV(j.site,oe,b(P-g)ue?{x:g,y:b(S-g)ue?{x:b(z-C)ue?{x:T,y:b(S-T)ue?{x:b(z-q)=-Se)){var ee=F*F+Z*Z,me=K*K+oe*oe,Te=(oe*ee-Z*me)/j,ae=(F*me-K*ee)/j,oe=ae+P,he=z_.pop()||new eV;he.arc=v,he.site=C,he.x=Te+z,he.y=oe+Math.sqrt(Te*Te+ae*ae),he.cy=oe,v.circle=he;for(var we=null,Ae=oc._;Ae;)if(he.y0)){if(ae/=me,me<0){if(ae0){if(ae>ee)return;ae>j&&(j=ae)}if(ae=T-P,!(!me&&ae<0)){if(ae/=me,me<0){if(ae>ee)return;ae>j&&(j=ae)}else if(me>0){if(ae0)){if(ae/=Te,Te<0){if(ae0){if(ae>ee)return;ae>j&&(j=ae)}if(ae=q-F,!(!Te&&ae<0)){if(ae/=Te,Te<0){if(ae>ee)return;ae>j&&(j=ae)}else if(Te>0){if(ae0&&(C.a={x:P+j*me,y:F+j*Te}),ee<1&&(C.b={x:P+ee*me,y:F+ee*Te}),C}}}}}}function tV(v){for(var g=iu,T=rV(v[0][0],v[0][1],v[1][0],v[1][1]),q=g.length,C;q--;)C=g[q],(!aV(C,v)||!T(C)||b(C.a.x-C.b.x)=S)return;if(K>ee){if(!q)q={x:Te,y:z};else if(q.y>=P)return;T={x:Te,y:P}}else{if(!q)q={x:Te,y:P};else if(q.y1)if(K>ee){if(!q)q={x:(z-he)/oe,y:z};else if(q.y>=P)return;T={x:(P-he)/oe,y:P}}else{if(!q)q={x:(P-he)/oe,y:P};else if(q.y=S)return;T={x:S,y:oe*S+he}}else{if(!q)q={x:S,y:oe*S+he};else if(q.x=K&&he.x<=ee&&he.y>=j&&he.y<=me?[[K,me],[ee,me],[ee,j],[K,j]]:[];we.point=F[ae]}),Z}function P(F){return F.map(function(Z,K){return{x:Math.round(q(Z,K)/ue)*ue,y:Math.round(C(Z,K)/ue)*ue,i:K}})}return z.links=function(F){return ry(P(F)).edges.filter(function(Z){return Z.l&&Z.r}).map(function(Z){return{source:F[Z.l.i],target:F[Z.r.i]}})},z.triangles=function(F){var Z=[];return ry(P(F)).cells.forEach(function(K,j){for(var ee=K.site,me=K.edges.sort(H_),Te=-1,ae=me.length,oe,he,we=me[ae-1].edge,Ae=we.l===ee?we.r:we.l;++TeAe&&(Ae=K.x),K.y>pe&&(pe=K.y),me.push(K.x),Te.push(K.y);else for(ae=0;aeAe&&(Ae=Ve),rr>pe&&(pe=rr),me.push(Ve),Te.push(rr)}var or=Ae-he,ar=pe-we;or>ar?pe=we+or:Ae=he+ar;function hr(pr,Mr,Qr,Ft,at,je,Dr,Er){if(!(isNaN(Qr)||isNaN(Ft)))if(pr.leaf){var jr=pr.x,kt=pr.y;if(jr!=null)if(b(jr-Qr)+b(kt-Ft)<.01)dr(pr,Mr,Qr,Ft,at,je,Dr,Er);else{var Xt=pr.point;pr.x=pr.y=pr.point=null,dr(pr,Xt,jr,kt,at,je,Dr,Er),dr(pr,Mr,Qr,Ft,at,je,Dr,Er)}else pr.x=Qr,pr.y=Ft,pr.point=Mr}else dr(pr,Mr,Qr,Ft,at,je,Dr,Er)}function dr(pr,Mr,Qr,Ft,at,je,Dr,Er){var jr=(at+Dr)*.5,kt=(je+Er)*.5,Xt=Qr>=jr,xa=Ft>=kt,Ha=xa<<1|Xt;pr.leaf=!1,pr=pr.nodes[Ha]||(pr.nodes[Ha]=Y_()),Xt?at=jr:Dr=jr,xa?je=kt:Er=kt,hr(pr,Mr,Qr,Ft,at,je,Dr,Er)}var Sr=Y_();if(Sr.add=function(pr){hr(Sr,pr,+j(pr,++ae),+ee(pr,ae),he,we,Ae,pe)},Sr.visit=function(pr){cc(pr,Sr,he,we,Ae,pe)},Sr.find=function(pr){return uV(Sr,pr[0],pr[1],he,we,Ae,pe)},ae=-1,g==null){for(;++aeS||ee>z||me=Ve,ar=T>=rr,hr=ar<<1|or,dr=hr+4;hrT&&(S=g.slice(T,S),P[z]?P[z]+=S:P[++z]=S),(q=q[0])===(C=C[0])?P[z]?P[z]+=C:P[++z]=C:(P[++z]=null,F.push({i:z,x:nl(q,C)})),T=ny.lastIndex;return T=0&&!(q=e.interpolators[T](v,g)););return q}e.interpolators=[function(v,g){var T=typeof g;return(T==="string"?ga.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?ty:U_:g instanceof Lt?ty:Array.isArray(g)?H0:T==="object"&&isNaN(g)?G_:nl)(v,g)}],e.interpolateArray=H0;function H0(v,g){var T=[],q=[],C=v.length,S=g.length,z=Math.min(v.length,g.length),P;for(P=0;P=0?v.slice(0,g):v,q=g>=0?v.slice(g+1):"in";return T=fV.get(T)||V_,q=cV.get(q)||V,vV(q(T.apply(null,r.call(arguments,1))))};function vV(v){return function(g){return g<=0?0:g>=1?1:v(g)}}function W_(v){return function(g){return 1-v(1-g)}}function X_(v){return function(g){return .5*(g<.5?v(2*g):2-v(2-2*g))}}function hV(v){return v*v}function dV(v){return v*v*v}function pV(v){if(v<=0)return 0;if(v>=1)return 1;var g=v*v,T=g*v;return 4*(v<.5?T:3*(v-g)+T-.75)}function mV(v){return function(g){return Math.pow(g,v)}}function yV(v){return 1-Math.cos(v*ur)}function gV(v){return Math.pow(2,10*(v-1))}function xV(v){return 1-Math.sqrt(1-v*v)}function bV(v,g){var T;return arguments.length<2&&(g=.45),arguments.length?T=g/ir*Math.asin(1/v):(v=1,T=g/4),function(q){return 1+v*Math.pow(2,-10*q)*Math.sin((q-T)*ir/g)}}function _V(v){return v||(v=1.70158),function(g){return g*g*((v+1)*g-v)}}function wV(v){return v<1/2.75?7.5625*v*v:v<2/2.75?7.5625*(v-=1.5/2.75)*v+.75:v<2.5/2.75?7.5625*(v-=2.25/2.75)*v+.9375:7.5625*(v-=2.625/2.75)*v+.984375}e.interpolateHcl=TV;function TV(v,g){v=e.hcl(v),g=e.hcl(g);var T=v.h,q=v.c,C=v.l,S=g.h-T,z=g.c-q,P=g.l-C;return isNaN(z)&&(z=0,q=isNaN(q)?g.c:q),isNaN(S)?(S=0,T=isNaN(T)?g.h:T):S>180?S-=360:S<-180&&(S+=360),function(F){return ni(T+S*F,q+z*F,C+P*F)+""}}e.interpolateHsl=MV;function MV(v,g){v=e.hsl(v),g=e.hsl(g);var T=v.h,q=v.s,C=v.l,S=g.h-T,z=g.s-q,P=g.l-C;return isNaN(z)&&(z=0,q=isNaN(q)?g.s:q),isNaN(S)?(S=0,T=isNaN(T)?g.h:T):S>180?S-=360:S<-180&&(S+=360),function(F){return Fa(T+S*F,q+z*F,C+P*F)+""}}e.interpolateLab=AV;function AV(v,g){v=e.lab(v),g=e.lab(g);var T=v.l,q=v.a,C=v.b,S=g.l-T,z=g.a-q,P=g.b-C;return function(F){return k0(T+S*F,q+z*F,C+P*F)+""}}e.interpolateRound=Z_;function Z_(v,g){return g-=v,function(T){return Math.round(v+g*T)}}e.transform=function(v){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(T){if(T!=null){g.setAttribute("transform",T);var q=g.transform.baseVal.consolidate()}return new J_(q?q.matrix:qV)})(v)};function J_(v){var g=[v.a,v.b],T=[v.c,v.d],q=K_(g),C=$_(g,T),S=K_(kV(T,g,-C))||0;g[0]*T[1]180?g+=360:g-v>180&&(v+=360),q.push({i:T.push(uu(T)+"rotate(",null,")")-2,x:nl(v,g)})):g&&T.push(uu(T)+"rotate("+g+")")}function SV(v,g,T,q){v!==g?q.push({i:T.push(uu(T)+"skewX(",null,")")-2,x:nl(v,g)}):g&&T.push(uu(T)+"skewX("+g+")")}function DV(v,g,T,q){if(v[0]!==g[0]||v[1]!==g[1]){var C=T.push(uu(T)+"scale(",null,",",null,")");q.push({i:C-4,x:nl(v[0],g[0])},{i:C-2,x:nl(v[1],g[1])})}else(g[0]!==1||g[1]!==1)&&T.push(uu(T)+"scale("+g+")")}function Q_(v,g){var T=[],q=[];return v=e.transform(v),g=e.transform(g),CV(v.translate,g.translate,T,q),LV(v.rotate,g.rotate,T,q),SV(v.skew,g.skew,T,q),DV(v.scale,g.scale,T,q),v=g=null,function(C){for(var S=-1,z=q.length,P;++S0?S=pe:(T.c=null,T.t=NaN,T=null,g.end({type:"end",alpha:S=0})):pe>0&&(g.start({type:"start",alpha:S=pe}),T=P0(v.tick)),v):S},v.start=function(){var pe,Ve=me.length,rr=Te.length,or=q[0],ar=q[1],hr,dr;for(pe=0;pe=0;)S.push(K=Z[F]),K.parent=P,K.depth=P.depth+1;T&&(P.value=0),P.children=Z}else T&&(P.value=+T.call(q,P,P.depth)||0),delete P.children;return Ri(C,function(j){var ee,me;v&&(ee=j.children)&&ee.sort(v),T&&(me=j.parent)&&(me.value+=j.value)}),z}return q.sort=function(C){return arguments.length?(v=C,q):v},q.children=function(C){return arguments.length?(g=C,q):g},q.value=function(C){return arguments.length?(T=C,q):T},q.revalue=function(C){return T&&(hc(C,function(S){S.children&&(S.value=0)}),Ri(C,function(S){var z;S.children||(S.value=+T.call(q,S,S.depth)||0),(z=S.parent)&&(z.value+=S.value)})),C},q};function vc(v,g){return e.rebind(v,g,"sort","children","value"),v.nodes=v,v.links=WV,v}function hc(v,g){for(var T=[v];(v=T.pop())!=null;)if(g(v),(C=v.children)&&(q=C.length))for(var q,C;--q>=0;)T.push(C[q])}function Ri(v,g){for(var T=[v],q=[];(v=T.pop())!=null;)if(q.push(v),(z=v.children)&&(S=z.length))for(var C=-1,S,z;++CC&&(C=P),q.push(P)}for(z=0;zq&&(T=g,q=C);return T}function jV(v){return v.reduce(eW,0)}function eW(v,g){return v+g[1]}e.layout.histogram=function(){var v=!0,g=Number,T=tW,q=rW;function C(S,ee){for(var P=[],F=S.map(g,this),Z=T.call(this,F,ee),K=q.call(this,Z,F,ee),j,ee=-1,me=F.length,Te=K.length-1,ae=v?1:1/me,oe;++ee0)for(ee=-1;++ee=Z[0]&&oe<=Z[1]&&(j=P[e.bisect(K,oe,1,Te)-1],j.y+=ae,j.push(S[ee]));return P}return C.value=function(S){return arguments.length?(g=S,C):g},C.range=function(S){return arguments.length?(T=Nr(S),C):T},C.bins=function(S){return arguments.length?(q=typeof S=="number"?function(z){return t4(z,S)}:Nr(S),C):q},C.frequency=function(S){return arguments.length?(v=!!S,C):v},C};function rW(v,g){return t4(v,Math.ceil(Math.log(g.length)/Math.LN2+1))}function t4(v,g){for(var T=-1,q=+v[0],C=(v[1]-q)/g,S=[];++T<=g;)S[T]=C*T+q;return S}function tW(v){return[e.min(v),e.max(v)]}e.layout.pack=function(){var v=e.layout.hierarchy().sort(aW),g=0,T=[1,1],q;function C(S,z){var P=v.call(this,S,z),F=P[0],Z=T[0],K=T[1],j=q==null?Math.sqrt:typeof q=="function"?q:function(){return q};if(F.x=F.y=0,Ri(F,function(me){me.r=+j(me.value)}),Ri(F,i4),g){var ee=g*(q?1:Math.max(2*F.r/Z,2*F.r/K))/2;Ri(F,function(me){me.r+=ee}),Ri(F,i4),Ri(F,function(me){me.r-=ee})}return l4(F,Z/2,K/2,q?1:1/Math.max(2*F.r/Z,2*F.r/K)),P}return C.size=function(S){return arguments.length?(T=S,C):T},C.radius=function(S){return arguments.length?(q=S==null||typeof S=="function"?S:+S,C):q},C.padding=function(S){return arguments.length?(g=+S,C):g},vc(C,v)};function aW(v,g){return v.value-g.value}function oy(v,g){var T=v._pack_next;v._pack_next=g,g._pack_prev=v,g._pack_next=T,T._pack_prev=g}function a4(v,g){v._pack_next=g,g._pack_prev=v}function n4(v,g){var T=g.x-v.x,q=g.y-v.y,C=v.r+g.r;return .999*C*C>T*T+q*q}function i4(v){if(!(g=v.children)||!(ee=g.length))return;var g,T=1/0,q=-1/0,C=1/0,S=-1/0,z,P,F,Z,K,j,ee;function me(pe){T=Math.min(pe.x-pe.r,T),q=Math.max(pe.x+pe.r,q),C=Math.min(pe.y-pe.r,C),S=Math.max(pe.y+pe.r,S)}if(g.forEach(nW),z=g[0],z.x=-z.r,z.y=0,me(z),ee>1&&(P=g[1],P.x=P.r,P.y=0,me(P),ee>2))for(F=g[2],o4(z,P,F),me(F),oy(z,F),z._pack_prev=F,oy(F,P),P=z._pack_next,Z=3;Zoe.x&&(oe=Ve),Ve.depth>he.depth&&(he=Ve)});var we=g(ae,oe)/2-ae.x,Ae=T[0]/(oe.x+g(oe,ae)/2+we),pe=T[1]/(he.depth||1);hc(me,function(Ve){Ve.x=(Ve.x+we)*Ae,Ve.y=Ve.depth*pe})}return ee}function S(K){for(var j={A:null,children:[K]},ee=[j],me;(me=ee.pop())!=null;)for(var Te=me.children,ae,oe=0,he=Te.length;oe0&&(lW(sW(ae,K,ee),K,Ve),he+=Ve,we+=Ve),Ae+=ae.m,he+=me.m,pe+=oe.m,we+=Te.m;ae&&!uy(Te)&&(Te.t=ae,Te.m+=Ae-we),me&&!sy(oe)&&(oe.t=me,oe.m+=he-pe,ee=K)}return ee}function Z(K){K.x*=T[0],K.y=K.depth*T[1]}return C.separation=function(K){return arguments.length?(g=K,C):g},C.size=function(K){return arguments.length?(q=(T=K)==null?Z:null,C):q?null:T},C.nodeSize=function(K){return arguments.length?(q=(T=K)==null?null:Z,C):q?T:null},vc(C,v)};function s4(v,g){return v.parent==g.parent?1:2}function sy(v){var g=v.children;return g.length?g[0]:v.t}function uy(v){var g=v.children,T;return(T=g.length)?g[T-1]:v.t}function lW(v,g,T){var q=T/(g.i-v.i);g.c-=q,g.s+=T,v.c+=q,g.z+=T,g.m+=T}function oW(v){for(var g=0,T=0,q=v.children,C=q.length,S;--C>=0;)S=q[C],S.z+=g,S.m+=g,g+=S.s+(T+=S.c)}function sW(v,g,T){return v.a.parent===g.parent?v.a:T}e.layout.cluster=function(){var v=e.layout.hierarchy().sort(null).value(null),g=s4,T=[1,1],q=!1;function C(S,z){var P=v.call(this,S,z),F=P[0],Z,K=0;Ri(F,function(ae){var oe=ae.children;oe&&oe.length?(ae.x=fW(oe),ae.y=uW(oe)):(ae.x=Z?K+=g(ae,Z):0,ae.y=0,Z=ae)});var j=u4(F),ee=f4(F),me=j.x-g(j,ee)/2,Te=ee.x+g(ee,j)/2;return Ri(F,q?function(ae){ae.x=(ae.x-F.x)*T[0],ae.y=(F.y-ae.y)*T[1]}:function(ae){ae.x=(ae.x-me)/(Te-me)*T[0],ae.y=(1-(F.y?ae.y/F.y:1))*T[1]}),P}return C.separation=function(S){return arguments.length?(g=S,C):g},C.size=function(S){return arguments.length?(q=(T=S)==null,C):q?null:T},C.nodeSize=function(S){return arguments.length?(q=(T=S)!=null,C):q?T:null},vc(C,v)};function uW(v){return 1+e.max(v,function(g){return g.y})}function fW(v){return v.reduce(function(g,T){return g+T.x},0)/v.length}function u4(v){var g=v.children;return g&&g.length?u4(g[0]):v}function f4(v){var g=v.children,T;return g&&(T=g.length)?f4(g[T-1]):v}e.layout.treemap=function(){var v=e.layout.hierarchy(),g=Math.round,T=[1,1],q=null,C=fy,S=!1,z,P="squarify",F=.5*(1+Math.sqrt(5));function Z(ae,oe){for(var he=-1,we=ae.length,Ae,pe;++he0;)we.push(pe=Ae[ar-1]),we.area+=pe.area,P!=="squarify"||(rr=ee(we,or))<=Ve?(Ae.pop(),Ve=rr):(we.area-=we.pop().area,me(we,or,he,!1),or=Math.min(he.dx,he.dy),we.length=we.area=0,Ve=1/0);we.length&&(me(we,or,he,!0),we.length=we.area=0),oe.forEach(K)}}function j(ae){var oe=ae.children;if(oe&&oe.length){var he=C(ae),we=oe.slice(),Ae,pe=[];for(Z(we,he.dx*he.dy/ae.value),pe.area=0;Ae=we.pop();)pe.push(Ae),pe.area+=Ae.area,Ae.z!=null&&(me(pe,Ae.z?he.dx:he.dy,he,!we.length),pe.length=pe.area=0);oe.forEach(j)}}function ee(ae,oe){for(var he=ae.area,we,Ae=0,pe=1/0,Ve=-1,rr=ae.length;++VeAe&&(Ae=we));return he*=he,oe*=oe,he?Math.max(oe*Ae*F/he,he/(oe*pe*F)):1/0}function me(ae,oe,he,we){var Ae=-1,pe=ae.length,Ve=he.x,rr=he.y,or=oe?g(ae.area/oe):0,ar;if(oe==he.dx){for((we||or>he.dy)&&(or=he.dy);++Aehe.dx)&&(or=he.dx);++Ae1);return v+g*q*Math.sqrt(-2*Math.log(S)/S)}},logNormal:function(){var v=e.random.normal.apply(e,arguments);return function(){return Math.exp(v())}},bates:function(v){var g=e.random.irwinHall(v);return function(){return g()/v}},irwinHall:function(v){return function(){for(var g=0,T=0;T2?hW:cW,Z=q?PV:EV;return C=F(v,g,Z,T),S=F(g,v,Z,zo),P}function P(F){return C(F)}return P.invert=function(F){return S(F)},P.domain=function(F){return arguments.length?(v=F.map(Number),z()):v},P.range=function(F){return arguments.length?(g=F,z()):g},P.rangeRound=function(F){return P.range(F).interpolate(Z_)},P.clamp=function(F){return arguments.length?(q=F,z()):q},P.interpolate=function(F){return arguments.length?(T=F,z()):T},P.ticks=function(F){return hy(v,F)},P.tickFormat=function(F,Z){return d3_scale_linearTickFormat(v,F,Z)},P.nice=function(F){return p4(v,F),z()},P.copy=function(){return h4(v,g,T,q)},z()}function d4(v,g){return e.rebind(v,g,"range","rangeRound","interpolate","clamp")}function p4(v,g){return cy(v,v4(vy(v,g)[2])),cy(v,v4(vy(v,g)[2])),v}function vy(v,g){g==null&&(g=10);var T=O0(v),q=T[1]-T[0],C=Math.pow(10,Math.floor(Math.log(q/g)/Math.LN10)),S=g/q*C;return S<=.15?C*=10:S<=.35?C*=5:S<=.75&&(C*=2),T[0]=Math.ceil(T[0]/C)*C,T[1]=Math.floor(T[1]/C)*C+C*.5,T[2]=C,T}function hy(v,g){return e.range.apply(e,vy(v,g))}var dW={s:1,g:1,p:1,r:1,e:1};function m4(v){return-Math.floor(Math.log(v)/Math.LN10+.01)}function Dpe(v,g){var T=m4(g[2]);return v in dW?Math.abs(T-m4(Math.max(b(g[0]),b(g[1]))))+ +(v!=="e"):T-(v==="%")*2}e.scale.log=function(){return y4(e.scale.linear().domain([0,1]),10,!0,[1,10])};function y4(v,g,T,q){function C(P){return(T?Math.log(P<0?0:P):-Math.log(P>0?0:-P))/Math.log(g)}function S(P){return T?Math.pow(g,P):-Math.pow(g,-P)}function z(P){return v(C(P))}return z.invert=function(P){return S(v.invert(P))},z.domain=function(P){return arguments.length?(T=P[0]>=0,v.domain((q=P.map(Number)).map(C)),z):q},z.base=function(P){return arguments.length?(g=+P,v.domain(q.map(C)),z):g},z.nice=function(){var P=cy(q.map(C),T?Math:pW);return v.domain(P),q=P.map(S),z},z.ticks=function(){var P=O0(q),F=[],Z=P[0],K=P[1],j=Math.floor(C(Z)),ee=Math.ceil(C(K)),me=g%1?2:g;if(isFinite(ee-j)){if(T){for(;j0;Te--)F.push(S(j)*Te);for(j=0;F[j]K;ee--);F=F.slice(j,ee)}return F},z.copy=function(){return y4(v.copy(),g,T,q)},d4(z,v)}var pW={floor:function(v){return-Math.ceil(-v)},ceil:function(v){return-Math.floor(-v)}};e.scale.pow=function(){return g4(e.scale.linear(),1,[0,1])};function g4(v,g,T){var q=Y0(g),C=Y0(1/g);function S(z){return v(q(z))}return S.invert=function(z){return C(v.invert(z))},S.domain=function(z){return arguments.length?(v.domain((T=z.map(Number)).map(q)),S):T},S.ticks=function(z){return hy(T,z)},S.tickFormat=function(z,P){return d3_scale_linearTickFormat(T,z,P)},S.nice=function(z){return S.domain(p4(T,z))},S.exponent=function(z){return arguments.length?(q=Y0(g=z),C=Y0(1/g),v.domain(T.map(q)),S):g},S.copy=function(){return g4(v.copy(),g,T)},d4(S,v)}function Y0(v){return function(g){return g<0?-Math.pow(-g,v):Math.pow(g,v)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return x4([],{t:"range",a:[[]]})};function x4(v,g){var T,q,C;function S(P){return q[((T.get(P)||(g.t==="range"?T.set(P,v.push(P)):NaN))-1)%q.length]}function z(P,F){return e.range(v.length).map(function(Z){return P+F*Z})}return S.domain=function(P){if(!arguments.length)return v;v=[],T=new x;for(var F=-1,Z=P.length,K;++F0?T[S-1]:v[0],See?0:1;if(K=vr)return F(K,Te)+(Z?F(Z,1-Te):"")+"Z";var ae,oe,he,we,Ae=0,pe=0,Ve,rr,or,ar,hr,dr,Sr,pr,Mr=[];if((we=(+z.apply(this,arguments)||0)/2)&&(he=q===G0?Math.sqrt(Z*Z+K*K):+q.apply(this,arguments),Te||(pe*=-1),K&&(pe=oa(he/K*Math.sin(we))),Z&&(Ae=oa(he/Z*Math.sin(we)))),K){Ve=K*Math.cos(j+pe),rr=K*Math.sin(j+pe),or=K*Math.cos(ee-pe),ar=K*Math.sin(ee-pe);var Qr=Math.abs(ee-j-2*pe)<=qe?0:1;if(pe&&U0(Ve,rr,or,ar)===Te^Qr){var Ft=(j+ee)/2;Ve=K*Math.cos(Ft),rr=K*Math.sin(Ft),or=ar=null}}else Ve=rr=0;if(Z){hr=Z*Math.cos(ee-Ae),dr=Z*Math.sin(ee-Ae),Sr=Z*Math.cos(j+Ae),pr=Z*Math.sin(j+Ae);var at=Math.abs(j-ee+2*Ae)<=qe?0:1;if(Ae&&U0(hr,dr,Sr,pr)===1-Te^at){var je=(j+ee)/2;hr=Z*Math.cos(je),dr=Z*Math.sin(je),Sr=pr=null}}else hr=dr=0;if(me>ue&&(ae=Math.min(Math.abs(K-Z)/2,+T.apply(this,arguments)))>.001){oe=Z0?0:1}function V0(v,g,T,q,C){var S=v[0]-g[0],z=v[1]-g[1],P=(C?q:-q)/Math.sqrt(S*S+z*z),F=P*z,Z=-P*S,K=v[0]+F,j=v[1]+Z,ee=g[0]+F,me=g[1]+Z,Te=(K+ee)/2,ae=(j+me)/2,oe=ee-K,he=me-j,we=oe*oe+he*he,Ae=T-q,pe=K*me-ee*j,Ve=(he<0?-1:1)*Math.sqrt(Math.max(0,Ae*Ae*we-pe*pe)),rr=(pe*he-oe*Ve)/we,or=(-pe*oe-he*Ve)/we,ar=(pe*he+oe*Ve)/we,hr=(-pe*oe+he*Ve)/we,dr=rr-Te,Sr=or-ae,pr=ar-Te,Mr=hr-ae;return dr*dr+Sr*Sr>pr*pr+Mr*Mr&&(rr=ar,or=hr),[[rr-F,or-Z],[rr*T/Ae,or*T/Ae]]}function k4(){return!0}function q4(v){var g=nu,T=lc,q=k4,C=li,S=C.key,z=.7;function P(F){var Z=[],K=[],j=-1,ee=F.length,me,Te=Nr(g),ae=Nr(T);function oe(){Z.push("M",C(v(K),z))}for(;++j1?v.join("L"):v+"Z"}function C4(v){return v.join("L")+"Z"}function MW(v){for(var g=0,T=v.length,q=v[0],C=[q[0],",",q[1]];++g1&&C.push("H",q[0]),C.join("")}function py(v){for(var g=0,T=v.length,q=v[0],C=[q[0],",",q[1]];++g1){P=g[1],S=v[F],F++,q+="C"+(C[0]+z[0])+","+(C[1]+z[1])+","+(S[0]-P[0])+","+(S[1]-P[1])+","+S[0]+","+S[1];for(var Z=2;Z9&&(S=T*3/Math.sqrt(S),z[P]=S*q,z[P+1]=S*C));for(P=-1;++P<=F;)S=(v[Math.min(F,P+1)][0]-v[Math.max(0,P-1)][0])/(6*(1+z[P]*z[P])),g.push([S||0,z[P]*S||0]);return g}function PW(v){return v.length<3?li(v):v[0]+W0(v,EW(v))}e.svg.line.radial=function(){var v=q4(E4);return v.radius=v.x,delete v.x,v.angle=v.y,delete v.y,v};function E4(v){for(var g,T=-1,q=v.length,C,S;++Tqe)+",1 "+j}function Z(K,j,ee,me){return"Q 0,0 "+me}return S.radius=function(K){return arguments.length?(T=Nr(K),S):T},S.source=function(K){return arguments.length?(v=Nr(K),S):v},S.target=function(K){return arguments.length?(g=Nr(K),S):g},S.startAngle=function(K){return arguments.length?(q=Nr(K),S):q},S.endAngle=function(K){return arguments.length?(C=Nr(K),S):C},S};function RW(v){return v.radius}e.svg.diagonal=function(){var v=R4,g=z4,T=N4;function q(C,S){var z=v.call(this,C,S),P=g.call(this,C,S),F=(z.y+P.y)/2,Z=[z,{x:z.x,y:F},{x:P.x,y:F},P];return Z=Z.map(T),"M"+Z[0]+"C"+Z[1]+" "+Z[2]+" "+Z[3]}return q.source=function(C){return arguments.length?(v=Nr(C),q):v},q.target=function(C){return arguments.length?(g=Nr(C),q):g},q.projection=function(C){return arguments.length?(T=C,q):T},q};function N4(v){return[v.x,v.y]}e.svg.diagonal.radial=function(){var v=e.svg.diagonal(),g=N4,T=v.projection;return v.projection=function(q){return arguments.length?T(zW(g=q)):g},v};function zW(v){return function(){var g=v.apply(this,arguments),T=g[0],q=g[1]-ur;return[T*Math.cos(q),T*Math.sin(q)]}}e.svg.symbol=function(){var v=FW,g=NW;function T(q,C){return(I4.get(v.call(this,q,C))||F4)(g.call(this,q,C))}return T.type=function(q){return arguments.length?(v=Nr(q),T):v},T.size=function(q){return arguments.length?(g=Nr(q),T):g},T};function NW(){return 64}function FW(){return"circle"}function F4(v){var g=Math.sqrt(v/qe);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var I4=e.map({circle:F4,cross:function(v){var g=Math.sqrt(v/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(v){var g=Math.sqrt(v/(2*H4)),T=g*H4;return"M0,"+-g+"L"+T+",0 0,"+g+" "+-T+",0Z"},square:function(v){var g=Math.sqrt(v)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(v){var g=Math.sqrt(v/X0),T=g*X0/2;return"M0,"+T+"L"+g+","+-T+" "+-g+","+-T+"Z"},"triangle-up":function(v){var g=Math.sqrt(v/X0),T=g*X0/2;return"M0,"+-T+"L"+g+","+T+" "+-g+","+T+"Z"}});e.svg.symbolTypes=I4.keys();var X0=Math.sqrt(3),H4=Math.tan(30*Ar);ye.transition=function(v){for(var g=No||++B4,T=_y(v),q=[],C,S,z=J0||{time:Date.now(),ease:pV,delay:0,duration:250},P=-1,F=this.length;++P0;)j[--we].call(v,he);if(oe>=1)return z.event&&z.event.end.call(v,v.__data__,g),--S.count?delete S[q]:delete v[T],1}z||(P=C.time,F=P0(ee,0,P),z=S[q]={tween:new x,time:P,timer:F,delay:C.delay,duration:C.duration,ease:C.ease,index:g},C=null,++S.count)}e.svg.axis=function(){var v=e.scale.linear(),g=Y4,T=6,q=6,C=3,S=[10],z=null,P;function F(Z){Z.each(function(){var K=e.select(this),j=this.__chart__||v,ee=this.__chart__=v.copy(),me=z==null?ee.ticks?ee.ticks.apply(ee,S):ee.domain():z,Te=P==null?ee.tickFormat?ee.tickFormat.apply(ee,S):V:P,ae=K.selectAll(".tick").data(me,ee),oe=ae.enter().insert("g",".domain").attr("class","tick").style("opacity",ue),he=e.transition(ae.exit()).style("opacity",ue).remove(),we=e.transition(ae.order()).style("opacity",1),Ae=Math.max(T,0)+C,pe,Ve=B0(ee),rr=K.selectAll(".domain").data([0]),or=(rr.enter().append("path").attr("class","domain"),e.transition(rr));oe.append("line"),oe.append("text");var ar=oe.select("line"),hr=we.select("line"),dr=ae.select("text").text(Te),Sr=oe.select("text"),pr=we.select("text"),Mr=g==="top"||g==="left"?-1:1,Qr,Ft,at,je;if(g==="bottom"||g==="top"?(pe=OW,Qr="x",at="y",Ft="x2",je="y2",dr.attr("dy",Mr<0?"0em":".71em").style("text-anchor","middle"),or.attr("d","M"+Ve[0]+","+Mr*q+"V0H"+Ve[1]+"V"+Mr*q)):(pe=BW,Qr="y",at="x",Ft="y2",je="x2",dr.attr("dy",".32em").style("text-anchor",Mr<0?"end":"start"),or.attr("d","M"+Mr*q+","+Ve[0]+"H0V"+Ve[1]+"H"+Mr*q)),ar.attr(je,Mr*T),Sr.attr(at,Mr*Ae),hr.attr(Ft,0).attr(je,Mr*T),pr.attr(Qr,0).attr(at,Mr*Ae),ee.rangeBand){var Dr=ee,Er=Dr.rangeBand()/2;j=ee=function(jr){return Dr(jr)+Er}}else j.rangeBand?j=ee:he.call(pe,ee,j);oe.call(pe,j,ee),we.call(pe,ee,ee)})}return F.scale=function(Z){return arguments.length?(v=Z,F):v},F.orient=function(Z){return arguments.length?(g=Z in HW?Z+"":Y4,F):g},F.ticks=function(){return arguments.length?(S=t(arguments),F):S},F.tickValues=function(Z){return arguments.length?(z=Z,F):z},F.tickFormat=function(Z){return arguments.length?(P=Z,F):P},F.tickSize=function(Z){var K=arguments.length;return K?(T=+Z,q=+arguments[K-1],F):T},F.innerTickSize=function(Z){return arguments.length?(T=+Z,F):T},F.outerTickSize=function(Z){return arguments.length?(q=+Z,F):q},F.tickPadding=function(Z){return arguments.length?(C=+Z,F):C},F.tickSubdivide=function(){return arguments.length&&F},F};var Y4="bottom",HW={top:1,right:1,bottom:1,left:1};function OW(v,g,T){v.attr("transform",function(q){var C=g(q);return"translate("+(isFinite(C)?C:T(q))+",0)"})}function BW(v,g,T){v.attr("transform",function(q){var C=g(q);return"translate(0,"+(isFinite(C)?C:T(q))+")"})}e.svg.brush=function(){var v=se(K,"brushstart","brush","brushend"),g=null,T=null,q=[0,0],C=[0,0],S,z,P=!0,F=!0,Z=wy[0];function K(ae){ae.each(function(){var oe=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Te).on("touchstart.brush",Te),he=oe.selectAll(".background").data([0]);he.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),oe.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var we=oe.selectAll(".resize").data(Z,V);we.exit().remove(),we.enter().append("g").attr("class",function(rr){return"resize "+rr}).style("cursor",function(rr){return YW[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"),we.style("display",K.empty()?"none":null);var Ae=e.transition(oe),pe=e.transition(he),Ve;g&&(Ve=B0(g),pe.attr("x",Ve[0]).attr("width",Ve[1]-Ve[0]),ee(Ae)),T&&(Ve=B0(T),pe.attr("y",Ve[0]).attr("height",Ve[1]-Ve[0]),me(Ae)),j(Ae)})}K.event=function(ae){ae.each(function(){var oe=v.of(this,arguments),he={x:q,y:C,i:S,j:z},we=this.__chart__||he;this.__chart__=he,No?e.select(this).transition().each("start.brush",function(){S=we.i,z=we.j,q=we.x,C=we.y,oe({type:"brushstart"})}).tween("brush:brush",function(){var Ae=H0(q,he.x),pe=H0(C,he.y);return S=z=null,function(Ve){q=he.x=Ae(Ve),C=he.y=pe(Ve),oe({type:"brush",mode:"resize"})}}).each("end.brush",function(){S=he.i,z=he.j,oe({type:"brush",mode:"resize"}),oe({type:"brushend"})}):(oe({type:"brushstart"}),oe({type:"brush",mode:"resize"}),oe({type:"brushend"}))})};function j(ae){ae.selectAll(".resize").attr("transform",function(oe){return"translate("+q[+/e$/.test(oe)]+","+C[+/^s/.test(oe)]+")"})}function ee(ae){ae.select(".extent").attr("x",q[0]),ae.selectAll(".extent,.n>rect,.s>rect").attr("width",q[1]-q[0])}function me(ae){ae.select(".extent").attr("y",C[0]),ae.selectAll(".extent,.e>rect,.w>rect").attr("height",C[1]-C[0])}function Te(){var ae=this,oe=e.select(e.event.target),he=v.of(ae,arguments),we=e.select(ae),Ae=oe.datum(),pe=!/^(n|s)$/.test(Ae)&&g,Ve=!/^(e|w)$/.test(Ae)&&T,rr=oe.classed("extent"),or=cr(ae),ar,hr=e.mouse(ae),dr,Sr=e.select(i(ae)).on("keydown.brush",Qr).on("keyup.brush",Ft);if(e.event.changedTouches?Sr.on("touchmove.brush",at).on("touchend.brush",Dr):Sr.on("mousemove.brush",at).on("mouseup.brush",Dr),we.interrupt().selectAll("*").interrupt(),rr)hr[0]=q[0]-hr[0],hr[1]=C[0]-hr[1];else if(Ae){var pr=+/w$/.test(Ae),Mr=+/^n/.test(Ae);dr=[q[1-pr]-hr[0],C[1-Mr]-hr[1]],hr[0]=q[pr],hr[1]=C[Mr]}else e.event.altKey&&(ar=hr.slice());we.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",oe.style("cursor")),he({type:"brushstart"}),at();function Qr(){e.event.keyCode==32&&(rr||(ar=null,hr[0]-=q[1],hr[1]-=C[1],rr=2),re())}function Ft(){e.event.keyCode==32&&rr==2&&(hr[0]+=q[1],hr[1]+=C[1],rr=0,re())}function at(){var Er=e.mouse(ae),jr=!1;dr&&(Er[0]+=dr[0],Er[1]+=dr[1]),rr||(e.event.altKey?(ar||(ar=[(q[0]+q[1])/2,(C[0]+C[1])/2]),hr[0]=q[+(Er[0]{(function(e,r){typeof rh=="object"&&typeof X4!="undefined"?r(rh):(e=e||self,r(e.d3=e.d3||{}))})(rh,function(e){"use strict";var r=new Date,t=new Date;function a(ie,ke,Ce,sr){function tr(De){return ie(De=arguments.length===0?new Date:new Date(+De)),De}return tr.floor=function(De){return ie(De=new Date(+De)),De},tr.ceil=function(De){return ie(De=new Date(De-1)),ke(De,1),ie(De),De},tr.round=function(De){var Le=tr(De),Ge=tr.ceil(De);return De-Le0))return Ze;do Ze.push(Ue=new Date(+De)),ke(De,Ge),ie(De);while(Ue=Le)for(;ie(Le),!De(Le);)Le.setTime(Le-1)},function(Le,Ge){if(Le>=Le)if(Ge<0)for(;++Ge<=0;)for(;ke(Le,-1),!De(Le););else for(;--Ge>=0;)for(;ke(Le,1),!De(Le););})},Ce&&(tr.count=function(De,Le){return r.setTime(+De),t.setTime(+Le),ie(r),ie(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(ie,ke){ie.setTime(+ie+ke)},function(ie,ke){return ke-ie});n.every=function(ie){return ie=Math.floor(ie),!isFinite(ie)||!(ie>0)?null:ie>1?a(function(ke){ke.setTime(Math.floor(ke/ie)*ie)},function(ke,Ce){ke.setTime(+ke+Ce*ie)},function(ke,Ce){return(Ce-ke)/ie}):n};var i=n.range,l=1e3,o=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(ie){ie.setTime(ie-ie.getMilliseconds())},function(ie,ke){ie.setTime(+ie+ke*l)},function(ie,ke){return(ke-ie)/l},function(ie){return ie.getUTCSeconds()}),h=c.range,d=a(function(ie){ie.setTime(ie-ie.getMilliseconds()-ie.getSeconds()*l)},function(ie,ke){ie.setTime(+ie+ke*o)},function(ie,ke){return(ke-ie)/o},function(ie){return ie.getMinutes()}),p=d.range,y=a(function(ie){ie.setTime(ie-ie.getMilliseconds()-ie.getSeconds()*l-ie.getMinutes()*o)},function(ie,ke){ie.setTime(+ie+ke*s)},function(ie,ke){return(ke-ie)/s},function(ie){return ie.getHours()}),m=y.range,b=a(function(ie){ie.setHours(0,0,0,0)},function(ie,ke){ie.setDate(ie.getDate()+ke)},function(ie,ke){return(ke-ie-(ke.getTimezoneOffset()-ie.getTimezoneOffset())*o)/u},function(ie){return ie.getDate()-1}),_=b.range;function w(ie){return a(function(ke){ke.setDate(ke.getDate()-(ke.getDay()+7-ie)%7),ke.setHours(0,0,0,0)},function(ke,Ce){ke.setDate(ke.getDate()+Ce*7)},function(ke,Ce){return(Ce-ke-(Ce.getTimezoneOffset()-ke.getTimezoneOffset())*o)/f})}var x=w(0),M=w(1),k=w(2),A=w(3),L=w(4),D=w(5),E=w(6),R=x.range,N=M.range,I=k.range,H=A.range,V=L.range,W=D.range,Y=E.range,O=a(function(ie){ie.setDate(1),ie.setHours(0,0,0,0)},function(ie,ke){ie.setMonth(ie.getMonth()+ke)},function(ie,ke){return ke.getMonth()-ie.getMonth()+(ke.getFullYear()-ie.getFullYear())*12},function(ie){return ie.getMonth()}),G=O.range,J=a(function(ie){ie.setMonth(0,1),ie.setHours(0,0,0,0)},function(ie,ke){ie.setFullYear(ie.getFullYear()+ke)},function(ie,ke){return ke.getFullYear()-ie.getFullYear()},function(ie){return ie.getFullYear()});J.every=function(ie){return!isFinite(ie=Math.floor(ie))||!(ie>0)?null:a(function(ke){ke.setFullYear(Math.floor(ke.getFullYear()/ie)*ie),ke.setMonth(0,1),ke.setHours(0,0,0,0)},function(ke,Ce){ke.setFullYear(ke.getFullYear()+Ce*ie)})};var $=J.range,re=a(function(ie){ie.setUTCSeconds(0,0)},function(ie,ke){ie.setTime(+ie+ke*o)},function(ie,ke){return(ke-ie)/o},function(ie){return ie.getUTCMinutes()}),le=re.range,se=a(function(ie){ie.setUTCMinutes(0,0,0)},function(ie,ke){ie.setTime(+ie+ke*s)},function(ie,ke){return(ke-ie)/s},function(ie){return ie.getUTCHours()}),ve=se.range,Q=a(function(ie){ie.setUTCHours(0,0,0,0)},function(ie,ke){ie.setUTCDate(ie.getUTCDate()+ke)},function(ie,ke){return(ke-ie)/u},function(ie){return ie.getUTCDate()-1}),_e=Q.range;function ce(ie){return a(function(ke){ke.setUTCDate(ke.getUTCDate()-(ke.getUTCDay()+7-ie)%7),ke.setUTCHours(0,0,0,0)},function(ke,Ce){ke.setUTCDate(ke.getUTCDate()+Ce*7)},function(ke,Ce){return(Ce-ke)/f})}var be=ce(0),fe=ce(1),ye=ce(2),U=ce(3),te=ce(4),X=ce(5),ge=ce(6),Me=be.range,xe=fe.range,ze=ye.range,Ie=U.range,Ee=te.range,Ne=X.range,Ye=ge.range,Xe=a(function(ie){ie.setUTCDate(1),ie.setUTCHours(0,0,0,0)},function(ie,ke){ie.setUTCMonth(ie.getUTCMonth()+ke)},function(ie,ke){return ke.getUTCMonth()-ie.getUTCMonth()+(ke.getUTCFullYear()-ie.getUTCFullYear())*12},function(ie){return ie.getUTCMonth()}),Re=Xe.range,Be=a(function(ie){ie.setUTCMonth(0,1),ie.setUTCHours(0,0,0,0)},function(ie,ke){ie.setUTCFullYear(ie.getUTCFullYear()+ke)},function(ie,ke){return ke.getUTCFullYear()-ie.getUTCFullYear()},function(ie){return ie.getUTCFullYear()});Be.every=function(ie){return!isFinite(ie=Math.floor(ie))||!(ie>0)?null:a(function(ke){ke.setUTCFullYear(Math.floor(ke.getUTCFullYear()/ie)*ie),ke.setUTCMonth(0,1),ke.setUTCHours(0,0,0,0)},function(ke,Ce){ke.setUTCFullYear(ke.getUTCFullYear()+Ce*ie)})};var Oe=Be.range;e.timeDay=b,e.timeDays=_,e.timeFriday=D,e.timeFridays=W,e.timeHour=y,e.timeHours=m,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=M,e.timeMondays=N,e.timeMonth=O,e.timeMonths=G,e.timeSaturday=E,e.timeSaturdays=Y,e.timeSecond=c,e.timeSeconds=h,e.timeSunday=x,e.timeSundays=R,e.timeThursday=L,e.timeThursdays=V,e.timeTuesday=k,e.timeTuesdays=I,e.timeWednesday=A,e.timeWednesdays=H,e.timeWeek=x,e.timeWeeks=R,e.timeYear=J,e.timeYears=$,e.utcDay=Q,e.utcDays=_e,e.utcFriday=X,e.utcFridays=Ne,e.utcHour=se,e.utcHours=ve,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=re,e.utcMinutes=le,e.utcMonday=fe,e.utcMondays=xe,e.utcMonth=Xe,e.utcMonths=Re,e.utcSaturday=ge,e.utcSaturdays=Ye,e.utcSecond=c,e.utcSeconds=h,e.utcSunday=be,e.utcSundays=Me,e.utcThursday=te,e.utcThursdays=Ee,e.utcTuesday=ye,e.utcTuesdays=ze,e.utcWednesday=U,e.utcWednesdays=Ie,e.utcWeek=be,e.utcWeeks=Me,e.utcYear=Be,e.utcYears=Oe,Object.defineProperty(e,"__esModule",{value:!0})})});var cu=B((th,Z4)=>{(function(e,r){typeof th=="object"&&typeof Z4!="undefined"?r(th,Ay()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(th,function(e,r){"use strict";function t(ne){if(0<=ne.y&&ne.y<100){var ue=new Date(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L);return ue.setFullYear(ne.y),ue}return new Date(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L)}function a(ne){if(0<=ne.y&&ne.y<100){var ue=new Date(Date.UTC(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L));return ue.setUTCFullYear(ne.y),ue}return new Date(Date.UTC(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L))}function n(ne,ue,Se){return{y:ne,m:ue,d:Se,H:0,M:0,S:0,L:0}}function i(ne){var ue=ne.dateTime,Se=ne.date,qe=ne.time,ir=ne.periods,vr=ne.days,ur=ne.shortDays,Ar=ne.months,Ur=ne.shortMonths,et=h(ir),Wr=d(ir),Nt=h(vr),oa=d(vr),Na=h(ur),sa=d(ur),Sn=h(Ar),Za=d(Ar),ua=h(Ur),Ja=d(Ur),gr={a:Do,A:Eo,b:Sl,B:k0,c:null,d:O,e:O,f:le,H:G,I:J,j:$,L:re,m:se,M:ve,p:q0,q:ac,Q:Le,s:Ge,S:Q,u:_e,U:ce,V:be,w:fe,W:ye,x:null,X:null,y:U,Y:te,Z:X,"%":De},ft={a:nc,A:ic,b:Ia,B:C0,c:null,d:ge,e:ge,f:Ee,H:Me,I:xe,j:ze,L:Ie,m:Ne,M:Ye,p:tu,q:au,Q:Le,s:Ge,S:Xe,u:Re,U:Be,V:Oe,w:ie,W:ke,x:null,X:null,y:Ce,Y:sr,Z:tr,"%":De},Xr={a:Fa,A:fa,b:ai,B:ni,c:Qt,d:L,e:L,f:H,H:E,I:E,j:D,L:I,m:A,M:R,p:_t,q:k,Q:W,s:Y,S:N,u:y,U:m,V:b,w:p,W:_,x:lt,X:ma,y:x,Y:w,Z:M,"%":V};gr.x=bt(Se,gr),gr.X=bt(qe,gr),gr.c=bt(ue,gr),ft.x=bt(Se,ft),ft.X=bt(qe,ft),ft.c=bt(ue,ft);function bt(mr,Zr){return function(rt){var nr=[],ya=-1,vt=0,ga=mr.length,Nr,ii,Po;for(rt instanceof Date||(rt=new Date(+rt));++ya53)return null;"w"in nr||(nr.w=1),"Z"in nr?(vt=a(n(nr.y,0,1)),ga=vt.getUTCDay(),vt=ga>4||ga===0?r.utcMonday.ceil(vt):r.utcMonday(vt),vt=r.utcDay.offset(vt,(nr.V-1)*7),nr.y=vt.getUTCFullYear(),nr.m=vt.getUTCMonth(),nr.d=vt.getUTCDate()+(nr.w+6)%7):(vt=t(n(nr.y,0,1)),ga=vt.getDay(),vt=ga>4||ga===0?r.timeMonday.ceil(vt):r.timeMonday(vt),vt=r.timeDay.offset(vt,(nr.V-1)*7),nr.y=vt.getFullYear(),nr.m=vt.getMonth(),nr.d=vt.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),ga="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-(ga+5)%7:nr.w+nr.U*7-(ga+6)%7);return"Z"in nr?(nr.H+=nr.Z/100|0,nr.M+=nr.Z%100,a(nr)):t(nr)}}function ct(mr,Zr,rt,nr){for(var ya=0,vt=Zr.length,ga=rt.length,Nr,ii;ya=ga)return-1;if(Nr=Zr.charCodeAt(ya++),Nr===37){if(Nr=Zr.charAt(ya++),ii=Xr[Nr in l?Zr.charAt(ya++):Nr],!ii||(nr=ii(mr,rt,nr))<0)return-1}else if(Nr!=rt.charCodeAt(nr++))return-1}return nr}function _t(mr,Zr,rt){var nr=et.exec(Zr.slice(rt));return nr?(mr.p=Wr[nr[0].toLowerCase()],rt+nr[0].length):-1}function Fa(mr,Zr,rt){var nr=Na.exec(Zr.slice(rt));return nr?(mr.w=sa[nr[0].toLowerCase()],rt+nr[0].length):-1}function fa(mr,Zr,rt){var nr=Nt.exec(Zr.slice(rt));return nr?(mr.w=oa[nr[0].toLowerCase()],rt+nr[0].length):-1}function ai(mr,Zr,rt){var nr=ua.exec(Zr.slice(rt));return nr?(mr.m=Ja[nr[0].toLowerCase()],rt+nr[0].length):-1}function ni(mr,Zr,rt){var nr=Sn.exec(Zr.slice(rt));return nr?(mr.m=Za[nr[0].toLowerCase()],rt+nr[0].length):-1}function Qt(mr,Zr,rt){return ct(mr,ue,Zr,rt)}function lt(mr,Zr,rt){return ct(mr,Se,Zr,rt)}function ma(mr,Zr,rt){return ct(mr,qe,Zr,rt)}function Do(mr){return ur[mr.getDay()]}function Eo(mr){return vr[mr.getDay()]}function Sl(mr){return Ur[mr.getMonth()]}function k0(mr){return Ar[mr.getMonth()]}function q0(mr){return ir[+(mr.getHours()>=12)]}function ac(mr){return 1+~~(mr.getMonth()/3)}function nc(mr){return ur[mr.getUTCDay()]}function ic(mr){return vr[mr.getUTCDay()]}function Ia(mr){return Ur[mr.getUTCMonth()]}function C0(mr){return Ar[mr.getUTCMonth()]}function tu(mr){return ir[+(mr.getUTCHours()>=12)]}function au(mr){return 1+~~(mr.getUTCMonth()/3)}return{format:function(mr){var Zr=bt(mr+="",gr);return Zr.toString=function(){return mr},Zr},parse:function(mr){var Zr=Lt(mr+="",!1);return Zr.toString=function(){return mr},Zr},utcFormat:function(mr){var Zr=bt(mr+="",ft);return Zr.toString=function(){return mr},Zr},utcParse:function(mr){var Zr=Lt(mr+="",!0);return Zr.toString=function(){return mr},Zr}}}var l={"-":"",_:" ",0:"0"},o=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ne,ue,Se){var qe=ne<0?"-":"",ir=(qe?-ne:ne)+"",vr=ir.length;return qe+(vr68?1900:2e3),Se+qe[0].length):-1}function M(ne,ue,Se){var qe=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ue.slice(Se,Se+6));return qe?(ne.Z=qe[1]?0:-(qe[2]+(qe[3]||"00")),Se+qe[0].length):-1}function k(ne,ue,Se){var qe=o.exec(ue.slice(Se,Se+1));return qe?(ne.q=qe[0]*3-3,Se+qe[0].length):-1}function A(ne,ue,Se){var qe=o.exec(ue.slice(Se,Se+2));return qe?(ne.m=qe[0]-1,Se+qe[0].length):-1}function L(ne,ue,Se){var qe=o.exec(ue.slice(Se,Se+2));return qe?(ne.d=+qe[0],Se+qe[0].length):-1}function D(ne,ue,Se){var qe=o.exec(ue.slice(Se,Se+3));return qe?(ne.m=0,ne.d=+qe[0],Se+qe[0].length):-1}function E(ne,ue,Se){var qe=o.exec(ue.slice(Se,Se+2));return qe?(ne.H=+qe[0],Se+qe[0].length):-1}function R(ne,ue,Se){var qe=o.exec(ue.slice(Se,Se+2));return qe?(ne.M=+qe[0],Se+qe[0].length):-1}function N(ne,ue,Se){var qe=o.exec(ue.slice(Se,Se+2));return qe?(ne.S=+qe[0],Se+qe[0].length):-1}function I(ne,ue,Se){var qe=o.exec(ue.slice(Se,Se+3));return qe?(ne.L=+qe[0],Se+qe[0].length):-1}function H(ne,ue,Se){var qe=o.exec(ue.slice(Se,Se+6));return qe?(ne.L=Math.floor(qe[0]/1e3),Se+qe[0].length):-1}function V(ne,ue,Se){var qe=s.exec(ue.slice(Se,Se+1));return qe?Se+qe[0].length:-1}function W(ne,ue,Se){var qe=o.exec(ue.slice(Se));return qe?(ne.Q=+qe[0],Se+qe[0].length):-1}function Y(ne,ue,Se){var qe=o.exec(ue.slice(Se));return qe?(ne.s=+qe[0],Se+qe[0].length):-1}function O(ne,ue){return f(ne.getDate(),ue,2)}function G(ne,ue){return f(ne.getHours(),ue,2)}function J(ne,ue){return f(ne.getHours()%12||12,ue,2)}function $(ne,ue){return f(1+r.timeDay.count(r.timeYear(ne),ne),ue,3)}function re(ne,ue){return f(ne.getMilliseconds(),ue,3)}function le(ne,ue){return re(ne,ue)+"000"}function se(ne,ue){return f(ne.getMonth()+1,ue,2)}function ve(ne,ue){return f(ne.getMinutes(),ue,2)}function Q(ne,ue){return f(ne.getSeconds(),ue,2)}function _e(ne){var ue=ne.getDay();return ue===0?7:ue}function ce(ne,ue){return f(r.timeSunday.count(r.timeYear(ne)-1,ne),ue,2)}function be(ne,ue){var Se=ne.getDay();return ne=Se>=4||Se===0?r.timeThursday(ne):r.timeThursday.ceil(ne),f(r.timeThursday.count(r.timeYear(ne),ne)+(r.timeYear(ne).getDay()===4),ue,2)}function fe(ne){return ne.getDay()}function ye(ne,ue){return f(r.timeMonday.count(r.timeYear(ne)-1,ne),ue,2)}function U(ne,ue){return f(ne.getFullYear()%100,ue,2)}function te(ne,ue){return f(ne.getFullYear()%1e4,ue,4)}function X(ne){var ue=ne.getTimezoneOffset();return(ue>0?"-":(ue*=-1,"+"))+f(ue/60|0,"0",2)+f(ue%60,"0",2)}function ge(ne,ue){return f(ne.getUTCDate(),ue,2)}function Me(ne,ue){return f(ne.getUTCHours(),ue,2)}function xe(ne,ue){return f(ne.getUTCHours()%12||12,ue,2)}function ze(ne,ue){return f(1+r.utcDay.count(r.utcYear(ne),ne),ue,3)}function Ie(ne,ue){return f(ne.getUTCMilliseconds(),ue,3)}function Ee(ne,ue){return Ie(ne,ue)+"000"}function Ne(ne,ue){return f(ne.getUTCMonth()+1,ue,2)}function Ye(ne,ue){return f(ne.getUTCMinutes(),ue,2)}function Xe(ne,ue){return f(ne.getUTCSeconds(),ue,2)}function Re(ne){var ue=ne.getUTCDay();return ue===0?7:ue}function Be(ne,ue){return f(r.utcSunday.count(r.utcYear(ne)-1,ne),ue,2)}function Oe(ne,ue){var Se=ne.getUTCDay();return ne=Se>=4||Se===0?r.utcThursday(ne):r.utcThursday.ceil(ne),f(r.utcThursday.count(r.utcYear(ne),ne)+(r.utcYear(ne).getUTCDay()===4),ue,2)}function ie(ne){return ne.getUTCDay()}function ke(ne,ue){return f(r.utcMonday.count(r.utcYear(ne)-1,ne),ue,2)}function Ce(ne,ue){return f(ne.getUTCFullYear()%100,ue,2)}function sr(ne,ue){return f(ne.getUTCFullYear()%1e4,ue,4)}function tr(){return"+0000"}function De(){return"%"}function Le(ne){return+ne}function Ge(ne){return Math.floor(+ne/1e3)}var Ze;Ue({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ue(ne){return Ze=i(ne),e.timeFormat=Ze.format,e.timeParse=Ze.parse,e.utcFormat=Ze.utcFormat,e.utcParse=Ze.utcParse,Ze}var He="%Y-%m-%dT%H:%M:%S.%LZ";function $e(ne){return ne.toISOString()}var cr=Date.prototype.toISOString?$e:e.utcFormat(He);function lr(ne){var ue=new Date(ne);return isNaN(ue)?null:ue}var Fe=+new Date("2000-01-01T00:00:00.000Z")?lr:e.utcParse(He);e.isoFormat=cr,e.isoParse=Fe,e.timeFormatDefaultLocale=Ue,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var ky=B((ah,J4)=>{(function(e,r){typeof ah=="object"&&typeof J4!="undefined"?r(ah):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(ah,function(e){"use strict";function r(A){return Math.abs(A=Math.round(A))>=1e21?A.toLocaleString("en").replace(/,/g,""):A.toString(10)}function t(A,L){if((D=(A=L?A.toExponential(L-1):A.toExponential()).indexOf("e"))<0)return null;var D,E=A.slice(0,D);return[E.length>1?E[0]+E.slice(2):E,+A.slice(D+1)]}function a(A){return A=t(Math.abs(A)),A?A[1]:NaN}function n(A,L){return function(D,E){for(var R=D.length,N=[],I=0,H=A[0],V=0;R>0&&H>0&&(V+H+1>E&&(H=Math.max(1,E-V)),N.push(D.substring(R-=H,R+H)),!((V+=H+1)>E));)H=A[I=(I+1)%A.length];return N.reverse().join(L)}}function i(A){return function(L){return L.replace(/[0-9]/g,function(D){return A[+D]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(A){if(!(L=l.exec(A)))throw new Error("invalid format: "+A);var L;return new s({fill:L[1],align:L[2],sign:L[3],symbol:L[4],zero:L[5],width:L[6],comma:L[7],precision:L[8]&&L[8].slice(1),trim:L[9],type:L[10]})}o.prototype=s.prototype;function s(A){this.fill=A.fill===void 0?" ":A.fill+"",this.align=A.align===void 0?">":A.align+"",this.sign=A.sign===void 0?"-":A.sign+"",this.symbol=A.symbol===void 0?"":A.symbol+"",this.zero=!!A.zero,this.width=A.width===void 0?void 0:+A.width,this.comma=!!A.comma,this.precision=A.precision===void 0?void 0:+A.precision,this.trim=!!A.trim,this.type=A.type===void 0?"":A.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(A){e:for(var L=A.length,D=1,E=-1,R;D0&&(E=0);break}return E>0?A.slice(0,E)+A.slice(R+1):A}var f;function c(A,L){var D=t(A,L);if(!D)return A+"";var E=D[0],R=D[1],N=R-(f=Math.max(-8,Math.min(8,Math.floor(R/3)))*3)+1,I=E.length;return N===I?E:N>I?E+new Array(N-I+1).join("0"):N>0?E.slice(0,N)+"."+E.slice(N):"0."+new Array(1-N).join("0")+t(A,Math.max(0,L+N-1))[0]}function h(A,L){var D=t(A,L);if(!D)return A+"";var E=D[0],R=D[1];return R<0?"0."+new Array(-R).join("0")+E:E.length>R+1?E.slice(0,R+1)+"."+E.slice(R+1):E+new Array(R-E.length+2).join("0")}var d={"%":function(A,L){return(A*100).toFixed(L)},b:function(A){return Math.round(A).toString(2)},c:function(A){return A+""},d:r,e:function(A,L){return A.toExponential(L)},f:function(A,L){return A.toFixed(L)},g:function(A,L){return A.toPrecision(L)},o:function(A){return Math.round(A).toString(8)},p:function(A,L){return h(A*100,L)},r:h,s:c,X:function(A){return Math.round(A).toString(16).toUpperCase()},x:function(A){return Math.round(A).toString(16)}};function p(A){return A}var y=Array.prototype.map,m=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(A){var L=A.grouping===void 0||A.thousands===void 0?p:n(y.call(A.grouping,Number),A.thousands+""),D=A.currency===void 0?"":A.currency[0]+"",E=A.currency===void 0?"":A.currency[1]+"",R=A.decimal===void 0?".":A.decimal+"",N=A.numerals===void 0?p:i(y.call(A.numerals,String)),I=A.percent===void 0?"%":A.percent+"",H=A.minus===void 0?"-":A.minus+"",V=A.nan===void 0?"NaN":A.nan+"";function W(O){O=o(O);var G=O.fill,J=O.align,$=O.sign,re=O.symbol,le=O.zero,se=O.width,ve=O.comma,Q=O.precision,_e=O.trim,ce=O.type;ce==="n"?(ve=!0,ce="g"):d[ce]||(Q===void 0&&(Q=12),_e=!0,ce="g"),(le||G==="0"&&J==="=")&&(le=!0,G="0",J="=");var be=re==="$"?D:re==="#"&&/[boxX]/.test(ce)?"0"+ce.toLowerCase():"",fe=re==="$"?E:/[%p]/.test(ce)?I:"",ye=d[ce],U=/[defgprs%]/.test(ce);Q=Q===void 0?6:/[gprs]/.test(ce)?Math.max(1,Math.min(21,Q)):Math.max(0,Math.min(20,Q));function te(X){var ge=be,Me=fe,xe,ze,Ie;if(ce==="c")Me=ye(X)+Me,X="";else{X=+X;var Ee=X<0||1/X<0;if(X=isNaN(X)?V:ye(Math.abs(X),Q),_e&&(X=u(X)),Ee&&+X==0&&$!=="+"&&(Ee=!1),ge=(Ee?$==="("?$:H:$==="-"||$==="("?"":$)+ge,Me=(ce==="s"?m[8+f/3]:"")+Me+(Ee&&$==="("?")":""),U){for(xe=-1,ze=X.length;++xeIe||Ie>57){Me=(Ie===46?R+X.slice(xe+1):X.slice(xe))+Me,X=X.slice(0,xe);break}}}ve&&!le&&(X=L(X,1/0));var Ne=ge.length+X.length+Me.length,Ye=Ne>1)+ge+X+Me+Ye.slice(Ne);break;default:X=Ye+ge+X+Me;break}return N(X)}return te.toString=function(){return O+""},te}function Y(O,G){var J=W((O=o(O),O.type="f",O)),$=Math.max(-8,Math.min(8,Math.floor(a(G)/3)))*3,re=Math.pow(10,-$),le=m[8+$/3];return function(se){return J(re*se)+le}}return{format:W,formatPrefix:Y}}var _;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(A){return _=b(A),e.format=_.format,e.formatPrefix=_.formatPrefix,_}function x(A){return Math.max(0,-a(Math.abs(A)))}function M(A,L){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(L)/3)))*3-a(Math.abs(A)))}function k(A,L){return A=Math.abs(A),L=Math.abs(L)-A,Math.max(0,a(L)-a(A))+1}e.FormatSpecifier=s,e.formatDefaultLocale=w,e.formatLocale=b,e.formatSpecifier=o,e.precisionFixed=x,e.precisionPrefix=M,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})})});var K4=B((zpe,$4)=>{"use strict";$4.exports=function(e){for(var r=e.length,t,a=0;a13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var zr=B((Npe,Q4)=>{"use strict";var KW=K4();Q4.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&KW(t))return!1}else if(r!=="number")return!1;return e-e<1}});var wt=B((Fpe,j4)=>{"use strict";j4.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var qy=B((nh,e6)=>{(function(e,r){typeof nh=="object"&&typeof e6!="undefined"?r(nh):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(nh,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(o[s]&3)<<4|o[s+1]>>4],f+=r[(o[s+1]&15)<<2|o[s+2]>>6],f+=r[o[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(l){var o=l.length*.75,s=l.length,u,f=0,c,h,d,p;l[l.length-1]==="="&&(o--,l[l.length-2]==="="&&o--);var y=new ArrayBuffer(o),m=new Uint8Array(y);for(u=0;u>4,m[f++]=(h&15)<<4|d>>2,m[f++]=(d&3)<<6|p&63;return y};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})})});var Pl=B((Ipe,r6)=>{"use strict";r6.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var yn=B(si=>{"use strict";var QW=qy().decode,jW=Pl(),Cy=Array.isArray,eX=ArrayBuffer,rX=DataView;function t6(e){return eX.isView(e)&&!(e instanceof rX)}si.isTypedArray=t6;function ih(e){return Cy(e)||t6(e)}si.isArrayOrTypedArray=ih;function tX(e){return!ih(e[0])}si.isArray1D=tX;si.ensureArray=function(e,r){return Cy(e)||(e=[]),e.length=r,e};var ca={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};ca.uint8c=ca.u1c;ca.uint8=ca.u1;ca.int8=ca.i1;ca.uint16=ca.u2;ca.int16=ca.i2;ca.uint32=ca.u4;ca.int32=ca.i4;ca.float32=ca.f4;ca.float64=ca.f8;function Ly(e){return e.constructor===ArrayBuffer}si.isArrayBuffer=Ly;si.decodeTypedArraySpec=function(e){var r=[],t=aX(e),a=t.dtype,n=ca[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;Ly(l)||(l=QW(l));var o=t.shape===void 0?[l.byteLength/i]:(""+t.shape).split(",");o.reverse();var s=o.length,u,f,c=+o[0],h=i*c,d=0;if(s===1)r=new n(l);else if(s===2)for(u=+o[1],f=0;f{"use strict";var n6=zr(),Dy=yn().isArrayOrTypedArray;s6.exports=function(r,t){if(n6(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,l,o;for(o=0;o{"use strict";var vu=lh(),sX=/^\w*$/,uX=0,u6=1,oh=2,f6=3,Ho=4;c6.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,l,o,s={};t&&t.length?(o=vu(r,t),l=o.get()):l=r,t=t||"";var u={};if(l)for(i=0;i2)return s[d]=s[d]|oh,c.set(h,null);if(f){for(i=d;i{"use strict";var fX=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,cX=/^[^\.\[\]]+$/;h6.exports=function(e,r){for(;r;){var t=e.match(fX);if(t)e=t[1];else if(e.match(cX))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 sh=B((Gpe,p6)=>{"use strict";var vX=zr();p6.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return vX(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var g6=B((Upe,y6)=>{"use strict";var m6=yn().isArrayOrTypedArray,pc=Pl();y6.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(m6(n)&&m6(i)&&pc(n[0])){if(a==="customdata"||a==="ids")continue;for(var l=Math.min(n.length,i.length),o=0;o{"use strict";function hX(e,r){var t=e%r;return t<0?t+r:t}function dX(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}x6.exports={mod:hX,modHalf:dX}});var Rn=B((Wpe,uh)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,l=e.max,o=e.random;function s(U,te){if(U=U||"",te=te||{},U instanceof s)return U;if(!(this instanceof s))return new s(U,te);var X=u(U);this._originalInput=U,this._r=X.r,this._g=X.g,this._b=X.b,this._a=X.a,this._roundA=n(100*this._a)/100,this._format=te.format||X.format,this._gradientType=te.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=X.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var U=this.toRgb();return(U.r*299+U.g*587+U.b*114)/1e3},getLuminance:function(){var U=this.toRgb(),te,X,ge,Me,xe,ze;return te=U.r/255,X=U.g/255,ge=U.b/255,te<=.03928?Me=te/12.92:Me=e.pow((te+.055)/1.055,2.4),X<=.03928?xe=X/12.92:xe=e.pow((X+.055)/1.055,2.4),ge<=.03928?ze=ge/12.92:ze=e.pow((ge+.055)/1.055,2.4),.2126*Me+.7152*xe+.0722*ze},setAlpha:function(U){return this._a=O(U),this._roundA=n(100*this._a)/100,this},toHsv:function(){var U=d(this._r,this._g,this._b);return{h:U.h*360,s:U.s,v:U.v,a:this._a}},toHsvString:function(){var U=d(this._r,this._g,this._b),te=n(U.h*360),X=n(U.s*100),ge=n(U.v*100);return this._a==1?"hsv("+te+", "+X+"%, "+ge+"%)":"hsva("+te+", "+X+"%, "+ge+"%, "+this._roundA+")"},toHsl:function(){var U=c(this._r,this._g,this._b);return{h:U.h*360,s:U.s,l:U.l,a:this._a}},toHslString:function(){var U=c(this._r,this._g,this._b),te=n(U.h*360),X=n(U.s*100),ge=n(U.l*100);return this._a==1?"hsl("+te+", "+X+"%, "+ge+"%)":"hsla("+te+", "+X+"%, "+ge+"%, "+this._roundA+")"},toHex:function(U){return y(this._r,this._g,this._b,U)},toHexString:function(U){return"#"+this.toHex(U)},toHex8:function(U){return m(this._r,this._g,this._b,this._a,U)},toHex8String:function(U){return"#"+this.toHex8(U)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(G(this._r,255)*100)+"%",g:n(G(this._g,255)*100)+"%",b:n(G(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(G(this._r,255)*100)+"%, "+n(G(this._g,255)*100)+"%, "+n(G(this._b,255)*100)+"%)":"rgba("+n(G(this._r,255)*100)+"%, "+n(G(this._g,255)*100)+"%, "+n(G(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:W[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(U){var te="#"+b(this._r,this._g,this._b,this._a),X=te,ge=this._gradientType?"GradientType = 1, ":"";if(U){var Me=s(U);X="#"+b(Me._r,Me._g,Me._b,Me._a)}return"progid:DXImageTransform.Microsoft.gradient("+ge+"startColorstr="+te+",endColorstr="+X+")"},toString:function(U){var te=!!U;U=U||this._format;var X=!1,ge=this._a<1&&this._a>=0,Me=!te&&ge&&(U==="hex"||U==="hex6"||U==="hex3"||U==="hex4"||U==="hex8"||U==="name");return Me?U==="name"&&this._a===0?this.toName():this.toRgbString():(U==="rgb"&&(X=this.toRgbString()),U==="prgb"&&(X=this.toPercentageRgbString()),(U==="hex"||U==="hex6")&&(X=this.toHexString()),U==="hex3"&&(X=this.toHexString(!0)),U==="hex4"&&(X=this.toHex8String(!0)),U==="hex8"&&(X=this.toHex8String()),U==="name"&&(X=this.toName()),U==="hsl"&&(X=this.toHslString()),U==="hsv"&&(X=this.toHsvString()),X||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(U,te){var X=U.apply(null,[this].concat([].slice.call(te)));return this._r=X._r,this._g=X._g,this._b=X._b,this.setAlpha(X._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(A,arguments)},desaturate:function(){return this._applyModification(_,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(L,arguments)},_applyCombination:function(U,te){return U.apply(null,[this].concat([].slice.call(te)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(H,arguments)},splitcomplement:function(){return this._applyCombination(N,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},s.fromRatio=function(U,te){if(typeof U=="object"){var X={};for(var ge in U)U.hasOwnProperty(ge)&&(ge==="a"?X[ge]=U[ge]:X[ge]=ve(U[ge]));U=X}return s(U,te)};function u(U){var te={r:0,g:0,b:0},X=1,ge=null,Me=null,xe=null,ze=!1,Ie=!1;return typeof U=="string"&&(U=fe(U)),typeof U=="object"&&(be(U.r)&&be(U.g)&&be(U.b)?(te=f(U.r,U.g,U.b),ze=!0,Ie=String(U.r).substr(-1)==="%"?"prgb":"rgb"):be(U.h)&&be(U.s)&&be(U.v)?(ge=ve(U.s),Me=ve(U.v),te=p(U.h,ge,Me),ze=!0,Ie="hsv"):be(U.h)&&be(U.s)&&be(U.l)&&(ge=ve(U.s),xe=ve(U.l),te=h(U.h,ge,xe),ze=!0,Ie="hsl"),U.hasOwnProperty("a")&&(X=U.a)),X=O(X),{ok:ze,format:U.format||Ie,r:i(255,l(te.r,0)),g:i(255,l(te.g,0)),b:i(255,l(te.b,0)),a:X}}function f(U,te,X){return{r:G(U,255)*255,g:G(te,255)*255,b:G(X,255)*255}}function c(U,te,X){U=G(U,255),te=G(te,255),X=G(X,255);var ge=l(U,te,X),Me=i(U,te,X),xe,ze,Ie=(ge+Me)/2;if(ge==Me)xe=ze=0;else{var Ee=ge-Me;switch(ze=Ie>.5?Ee/(2-ge-Me):Ee/(ge+Me),ge){case U:xe=(te-X)/Ee+(te1&&(Xe-=1),Xe<1/6?Ne+(Ye-Ne)*6*Xe:Xe<1/2?Ye:Xe<2/3?Ne+(Ye-Ne)*(2/3-Xe)*6:Ne}if(te===0)ge=Me=xe=X;else{var Ie=X<.5?X*(1+te):X+te-X*te,Ee=2*X-Ie;ge=ze(Ee,Ie,U+1/3),Me=ze(Ee,Ie,U),xe=ze(Ee,Ie,U-1/3)}return{r:ge*255,g:Me*255,b:xe*255}}function d(U,te,X){U=G(U,255),te=G(te,255),X=G(X,255);var ge=l(U,te,X),Me=i(U,te,X),xe,ze,Ie=ge,Ee=ge-Me;if(ze=ge===0?0:Ee/ge,ge==Me)xe=0;else{switch(ge){case U:xe=(te-X)/Ee+(te>1)+720)%360;--te;)ge.h=(ge.h+Me)%360,xe.push(s(ge));return xe}function H(U,te){te=te||6;for(var X=s(U).toHsv(),ge=X.h,Me=X.s,xe=X.v,ze=[],Ie=1/te;te--;)ze.push(s({h:ge,s:Me,v:xe})),xe=(xe+Ie)%1;return ze}s.mix=function(U,te,X){X=X===0?0:X||50;var ge=s(U).toRgb(),Me=s(te).toRgb(),xe=X/100,ze={r:(Me.r-ge.r)*xe+ge.r,g:(Me.g-ge.g)*xe+ge.g,b:(Me.b-ge.b)*xe+ge.b,a:(Me.a-ge.a)*xe+ge.a};return s(ze)},s.readability=function(U,te){var X=s(U),ge=s(te);return(e.max(X.getLuminance(),ge.getLuminance())+.05)/(e.min(X.getLuminance(),ge.getLuminance())+.05)},s.isReadable=function(U,te,X){var ge=s.readability(U,te),Me,xe;switch(xe=!1,Me=ye(X),Me.level+Me.size){case"AAsmall":case"AAAlarge":xe=ge>=4.5;break;case"AAlarge":xe=ge>=3;break;case"AAAsmall":xe=ge>=7;break}return xe},s.mostReadable=function(U,te,X){var ge=null,Me=0,xe,ze,Ie,Ee;X=X||{},ze=X.includeFallbackColors,Ie=X.level,Ee=X.size;for(var Ne=0;NeMe&&(Me=xe,ge=s(te[Ne]));return s.isReadable(U,ge,{level:Ie,size:Ee})||!ze?ge:(X.includeFallbackColors=!1,s.mostReadable(U,["#fff","#000"],X))};var V=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},W=s.hexNames=Y(V);function Y(U){var te={};for(var X in U)U.hasOwnProperty(X)&&(te[U[X]]=X);return te}function O(U){return U=parseFloat(U),(isNaN(U)||U<0||U>1)&&(U=1),U}function G(U,te){re(U)&&(U="100%");var X=le(U);return U=i(te,l(0,parseFloat(U))),X&&(U=parseInt(U*te,10)/100),e.abs(U-te)<1e-6?1:U%te/parseFloat(te)}function J(U){return i(1,l(0,U))}function $(U){return parseInt(U,16)}function re(U){return typeof U=="string"&&U.indexOf(".")!=-1&&parseFloat(U)===1}function le(U){return typeof U=="string"&&U.indexOf("%")!=-1}function se(U){return U.length==1?"0"+U:""+U}function ve(U){return U<=1&&(U=U*100+"%"),U}function Q(U){return e.round(parseFloat(U)*255).toString(16)}function _e(U){return $(U)/255}var ce=function(){var U="[-\\+]?\\d+%?",te="[-\\+]?\\d*\\.\\d+%?",X="(?:"+te+")|(?:"+U+")",ge="[\\s|\\(]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")\\s*\\)?",Me="[\\s|\\(]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")[,|\\s]+("+X+")\\s*\\)?";return{CSS_UNIT:new RegExp(X),rgb:new RegExp("rgb"+ge),rgba:new RegExp("rgba"+Me),hsl:new RegExp("hsl"+ge),hsla:new RegExp("hsla"+Me),hsv:new RegExp("hsv"+ge),hsva:new RegExp("hsva"+Me),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function be(U){return!!ce.CSS_UNIT.exec(U)}function fe(U){U=U.replace(r,"").replace(t,"").toLowerCase();var te=!1;if(V[U])U=V[U],te=!0;else if(U=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var X;return(X=ce.rgb.exec(U))?{r:X[1],g:X[2],b:X[3]}:(X=ce.rgba.exec(U))?{r:X[1],g:X[2],b:X[3],a:X[4]}:(X=ce.hsl.exec(U))?{h:X[1],s:X[2],l:X[3]}:(X=ce.hsla.exec(U))?{h:X[1],s:X[2],l:X[3],a:X[4]}:(X=ce.hsv.exec(U))?{h:X[1],s:X[2],v:X[3]}:(X=ce.hsva.exec(U))?{h:X[1],s:X[2],v:X[3],a:X[4]}:(X=ce.hex8.exec(U))?{r:$(X[1]),g:$(X[2]),b:$(X[3]),a:_e(X[4]),format:te?"name":"hex8"}:(X=ce.hex6.exec(U))?{r:$(X[1]),g:$(X[2]),b:$(X[3]),format:te?"name":"hex"}:(X=ce.hex4.exec(U))?{r:$(X[1]+""+X[1]),g:$(X[2]+""+X[2]),b:$(X[3]+""+X[3]),a:_e(X[4]+""+X[4]),format:te?"name":"hex8"}:(X=ce.hex3.exec(U))?{r:$(X[1]+""+X[1]),g:$(X[2]+""+X[2]),b:$(X[3]+""+X[3]),format:te?"name":"hex"}:!1}function ye(U){var te,X;return U=U||{level:"AA",size:"small"},te=(U.level||"AA").toUpperCase(),X=(U.size||"small").toLowerCase(),te!=="AA"&&te!=="AAA"&&(te="AA"),X!=="small"&&X!=="large"&&(X="small"),{level:te,size:X}}typeof uh!="undefined"&&uh.exports?uh.exports=s:window.tinycolor=s})(Math)});var mt=B(gc=>{"use strict";var b6=Pl(),mc=Array.isArray;function pX(e,r){var t,a;for(t=0;t{"use strict";_6.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var xc=B((Jpe,w6)=>{"use strict";w6.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var du=B(($pe,A6)=>{"use strict";var T6=xc(),M6=jt(),Ey=M6({editType:"none"});Ey.family.dflt=T6.HOVERFONT;Ey.size.dflt=T6.HOVERFONTSIZE;A6.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:Ey,grouptitlefont:M6({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 bc=B((Kpe,k6)=>{"use strict";var mX=jt(),fh=du().hoverlabel,ch=mt().extendFlat;k6.exports={hoverlabel:{bgcolor:ch({},fh.bgcolor,{arrayOk:!0}),bordercolor:ch({},fh.bordercolor,{arrayOk:!0}),font:mX({arrayOk:!0,editType:"none"}),align:ch({},fh.align,{arrayOk:!0}),namelength:ch({},fh.namelength,{arrayOk:!0}),editType:"none"}}});var rn=B((Qpe,q6)=>{"use strict";var yX=jt(),gX=bc();q6.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:yX({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:gX.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var Oo=B((jpe,S6)=>{"use strict";var xX=Rn(),vh={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},C6=vh.RdBu;function bX(e,r){if(r||(r=C6),!e)return r;function t(){try{e=vh[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),L6(e)?e:r}function L6(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";Bo.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Bo.defaultLine="#444";Bo.lightLine="#eee";Bo.background="#fff";Bo.borderLine="#BEC8D9";Bo.lightFraction=100*10/11});var xr=B((rme,D6)=>{"use strict";var tn=Rn(),wX=zr(),TX=yn().isTypedArray,ea=D6.exports={},hh=zn();ea.defaults=hh.defaults;var MX=ea.defaultLine=hh.defaultLine;ea.lightLine=hh.lightLine;var Ry=ea.background=hh.background;ea.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};ea.rgb=function(e){return ea.tinyRGB(tn(e))};ea.opacity=function(e){return e?tn(e).getAlpha():0};ea.addOpacity=function(e,r){var t=tn(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};ea.combine=function(e,r){var t=tn(e).toRgb();if(t.a===1)return tn(e).toRgbString();var a=tn(r||Ry).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 tn(i).toRgbString()};ea.interpolate=function(e,r,t){var a=tn(e).toRgb(),n=tn(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 tn(i).toRgbString()};ea.contrast=function(e,r,t){var a=tn(e);a.getAlpha()!==1&&(a=tn(ea.combine(e,Ry)));var n=a.isDark()?r?a.lighten(r):Ry:t?a.darken(t):MX;return n.toString()};ea.stroke=function(e,r){var t=tn(r);e.style({stroke:ea.tinyRGB(t),"stroke-opacity":t.getAlpha()})};ea.fill=function(e,r){var t=tn(r);e.style({fill:ea.tinyRGB(t),"fill-opacity":t.getAlpha()})};ea.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var l=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+l+", "+a[3]+")":"rgb("+l+")"}});var pu=B((tme,E6)=>{"use strict";E6.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var mu=B(P6=>{"use strict";P6.counter=function(e,r,t,a){var n=(r||"")+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+n):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+n)}});var F6=B(an=>{"use strict";var zy=zr(),R6=Rn(),z6=mt().extendFlat,AX=rn(),kX=Oo(),qX=xr(),CX=pu().DESELECTDIM,yu=lh(),N6=mu().counter,LX=hu().modHalf,Ni=yn().isArrayOrTypedArray,Rl=yn().isTypedArraySpec,zl=yn().decodeTypedArraySpec;an.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Ni(e)?e:Rl(e)?zl(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;aa.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}Rl(e)&&(e=zl(e)),e%1||!zy(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Rl(e)&&(e=zl(e)),R6(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return R6(n).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(a)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(kX.get(e,t))}},angle:{coerceFunction:function(e,r,t){Rl(e)&&(e=zl(e)),e==="auto"?r.set("auto"):zy(e)?r.set(LX(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||N6(t);if(typeof e=="string"&&n.test(e)){r.set(e);return}r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!N6(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";var I6={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},H6={};function O6(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),O6(a,r[t]))}}O6(I6,H6);B6.exports={configAttributes:I6,dfltConfig:H6}});var Fy=B((lme,Y6)=>{"use strict";var Ny=kr(),SX=zr(),_c=[];Y6.exports=function(e,r){if(_c.indexOf(e)!==-1)return;_c.push(e);var t=1e3;SX(r)?t=r:r==="long"&&(t=3e3);var a=Ny.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(_c);function i(l){l.duration(700).style("opacity",0).each("end",function(o){var s=_c.indexOf(o);s!==-1&&_c.splice(s,1),Ny.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var o=Ny.select(this);o.append("button").classed("notifier-close",!0).html("×").on("click",function(){o.transition().call(i)});for(var s=o.append("p"),u=l.split(//g),f=0;f{"use strict";var gu=Yo().dfltConfig,Iy=Fy(),Hy=G6.exports={};Hy.log=function(){var e;if(gu.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};Hy.warn=function(){var e;if(gu.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};Hy.error=function(){var e;if(gu.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var ph=B((sme,U6)=>{"use strict";U6.exports=function(){}});var Oy=B((ume,V6)=>{"use strict";V6.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{W6.exports=DX;function DX(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var J6=B((cme,Z6)=>{Z6.exports=EX;function EX(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var K6=B((vme,$6)=>{$6.exports=PX;function PX(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 By=B((hme,Q6)=>{Q6.exports=RX;function RX(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var e7=B((dme,j6)=>{j6.exports=zX;function zX(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],l=r[7],o=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=l,e[14]=o}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var t7=B((pme,r7)=>{r7.exports=NX;function NX(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],h=r[10],d=r[11],p=r[12],y=r[13],m=r[14],b=r[15],_=t*o-a*l,w=t*s-n*l,x=t*u-i*l,M=a*s-n*o,k=a*u-i*o,A=n*u-i*s,L=f*y-c*p,D=f*m-h*p,E=f*b-d*p,R=c*m-h*y,N=c*b-d*y,I=h*b-d*m,H=_*I-w*N+x*R+M*E-k*D+A*L;return H?(H=1/H,e[0]=(o*I-s*N+u*R)*H,e[1]=(n*N-a*I-i*R)*H,e[2]=(y*A-m*k+b*M)*H,e[3]=(h*k-c*A-d*M)*H,e[4]=(s*E-l*I-u*D)*H,e[5]=(t*I-n*E+i*D)*H,e[6]=(m*x-p*A-b*w)*H,e[7]=(f*A-h*x+d*w)*H,e[8]=(l*N-o*E+u*L)*H,e[9]=(a*E-t*N-i*L)*H,e[10]=(p*k-y*x+b*_)*H,e[11]=(c*x-f*k-d*_)*H,e[12]=(o*D-l*R-s*L)*H,e[13]=(t*R-a*D+n*L)*H,e[14]=(y*w-p*M-m*_)*H,e[15]=(f*M-c*w+h*_)*H,e):null}});var n7=B((mme,a7)=>{a7.exports=FX;function FX(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],h=r[10],d=r[11],p=r[12],y=r[13],m=r[14],b=r[15];return e[0]=o*(h*b-d*m)-c*(s*b-u*m)+y*(s*d-u*h),e[1]=-(a*(h*b-d*m)-c*(n*b-i*m)+y*(n*d-i*h)),e[2]=a*(s*b-u*m)-o*(n*b-i*m)+y*(n*u-i*s),e[3]=-(a*(s*d-u*h)-o*(n*d-i*h)+c*(n*u-i*s)),e[4]=-(l*(h*b-d*m)-f*(s*b-u*m)+p*(s*d-u*h)),e[5]=t*(h*b-d*m)-f*(n*b-i*m)+p*(n*d-i*h),e[6]=-(t*(s*b-u*m)-l*(n*b-i*m)+p*(n*u-i*s)),e[7]=t*(s*d-u*h)-l*(n*d-i*h)+f*(n*u-i*s),e[8]=l*(c*b-d*y)-f*(o*b-u*y)+p*(o*d-u*c),e[9]=-(t*(c*b-d*y)-f*(a*b-i*y)+p*(a*d-i*c)),e[10]=t*(o*b-u*y)-l*(a*b-i*y)+p*(a*u-i*o),e[11]=-(t*(o*d-u*c)-l*(a*d-i*c)+f*(a*u-i*o)),e[12]=-(l*(c*m-h*y)-f*(o*m-s*y)+p*(o*h-s*c)),e[13]=t*(c*m-h*y)-f*(a*m-n*y)+p*(a*h-n*c),e[14]=-(t*(o*m-s*y)-l*(a*m-n*y)+p*(a*s-n*o)),e[15]=t*(o*h-s*c)-l*(a*h-n*c)+f*(a*s-n*o),e}});var l7=B((yme,i7)=>{i7.exports=IX;function IX(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],l=e[5],o=e[6],s=e[7],u=e[8],f=e[9],c=e[10],h=e[11],d=e[12],p=e[13],y=e[14],m=e[15],b=r*l-t*i,_=r*o-a*i,w=r*s-n*i,x=t*o-a*l,M=t*s-n*l,k=a*s-n*o,A=u*p-f*d,L=u*y-c*d,D=u*m-h*d,E=f*y-c*p,R=f*m-h*p,N=c*m-h*y;return b*N-_*R+w*E+x*D-M*L+k*A}});var s7=B((gme,o7)=>{o7.exports=HX;function HX(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=r[4],s=r[5],u=r[6],f=r[7],c=r[8],h=r[9],d=r[10],p=r[11],y=r[12],m=r[13],b=r[14],_=r[15],w=t[0],x=t[1],M=t[2],k=t[3];return e[0]=w*a+x*o+M*c+k*y,e[1]=w*n+x*s+M*h+k*m,e[2]=w*i+x*u+M*d+k*b,e[3]=w*l+x*f+M*p+k*_,w=t[4],x=t[5],M=t[6],k=t[7],e[4]=w*a+x*o+M*c+k*y,e[5]=w*n+x*s+M*h+k*m,e[6]=w*i+x*u+M*d+k*b,e[7]=w*l+x*f+M*p+k*_,w=t[8],x=t[9],M=t[10],k=t[11],e[8]=w*a+x*o+M*c+k*y,e[9]=w*n+x*s+M*h+k*m,e[10]=w*i+x*u+M*d+k*b,e[11]=w*l+x*f+M*p+k*_,w=t[12],x=t[13],M=t[14],k=t[15],e[12]=w*a+x*o+M*c+k*y,e[13]=w*n+x*s+M*h+k*m,e[14]=w*i+x*u+M*d+k*b,e[15]=w*l+x*f+M*p+k*_,e}});var f7=B((xme,u7)=>{u7.exports=OX;function OX(e,r,t){var a=t[0],n=t[1],i=t[2],l,o,s,u,f,c,h,d,p,y,m,b;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(l=r[0],o=r[1],s=r[2],u=r[3],f=r[4],c=r[5],h=r[6],d=r[7],p=r[8],y=r[9],m=r[10],b=r[11],e[0]=l,e[1]=o,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=h,e[7]=d,e[8]=p,e[9]=y,e[10]=m,e[11]=b,e[12]=l*a+f*n+p*i+r[12],e[13]=o*a+c*n+y*i+r[13],e[14]=s*a+h*n+m*i+r[14],e[15]=u*a+d*n+b*i+r[15]),e}});var v7=B((bme,c7)=>{c7.exports=BX;function BX(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var d7=B((_me,h7)=>{h7.exports=YX;function YX(e,r,t,a){var n=a[0],i=a[1],l=a[2],o=Math.sqrt(n*n+i*i+l*l),s,u,f,c,h,d,p,y,m,b,_,w,x,M,k,A,L,D,E,R,N,I,H,V;return Math.abs(o)<1e-6?null:(o=1/o,n*=o,i*=o,l*=o,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],h=r[1],d=r[2],p=r[3],y=r[4],m=r[5],b=r[6],_=r[7],w=r[8],x=r[9],M=r[10],k=r[11],A=n*n*f+u,L=i*n*f+l*s,D=l*n*f-i*s,E=n*i*f-l*s,R=i*i*f+u,N=l*i*f+n*s,I=n*l*f+i*s,H=i*l*f-n*s,V=l*l*f+u,e[0]=c*A+y*L+w*D,e[1]=h*A+m*L+x*D,e[2]=d*A+b*L+M*D,e[3]=p*A+_*L+k*D,e[4]=c*E+y*R+w*N,e[5]=h*E+m*R+x*N,e[6]=d*E+b*R+M*N,e[7]=p*E+_*R+k*N,e[8]=c*I+y*H+w*V,e[9]=h*I+m*H+x*V,e[10]=d*I+b*H+M*V,e[11]=p*I+_*H+k*V,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var m7=B((wme,p7)=>{p7.exports=GX;function GX(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],l=r[5],o=r[6],s=r[7],u=r[8],f=r[9],c=r[10],h=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=l*n+f*a,e[6]=o*n+c*a,e[7]=s*n+h*a,e[8]=u*n-i*a,e[9]=f*n-l*a,e[10]=c*n-o*a,e[11]=h*n-s*a,e}});var g7=B((Tme,y7)=>{y7.exports=UX;function UX(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[8],f=r[9],c=r[10],h=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=l*n-f*a,e[2]=o*n-c*a,e[3]=s*n-h*a,e[8]=i*a+u*n,e[9]=l*a+f*n,e[10]=o*a+c*n,e[11]=s*a+h*n,e}});var b7=B((Mme,x7)=>{x7.exports=VX;function VX(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[4],f=r[5],c=r[6],h=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=l*n+f*a,e[2]=o*n+c*a,e[3]=s*n+h*a,e[4]=u*n-i*a,e[5]=f*n-l*a,e[6]=c*n-o*a,e[7]=h*n-s*a,e}});var w7=B((Ame,_7)=>{_7.exports=WX;function WX(e,r,t){var a,n,i,l=t[0],o=t[1],s=t[2],u=Math.sqrt(l*l+o*o+s*s);return Math.abs(u)<1e-6?null:(u=1/u,l*=u,o*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=l*l*i+n,e[1]=o*l*i+s*a,e[2]=s*l*i-o*a,e[3]=0,e[4]=l*o*i-s*a,e[5]=o*o*i+n,e[6]=s*o*i+l*a,e[7]=0,e[8]=l*s*i+o*a,e[9]=o*s*i-l*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var M7=B((kme,T7)=>{T7.exports=XX;function XX(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=a+a,s=n+n,u=i+i,f=a*o,c=a*s,h=a*u,d=n*s,p=n*u,y=i*u,m=l*o,b=l*s,_=l*u;return e[0]=1-(d+y),e[1]=c+_,e[2]=h-b,e[3]=0,e[4]=c-_,e[5]=1-(f+y),e[6]=p+m,e[7]=0,e[8]=h+b,e[9]=p-m,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var k7=B((qme,A7)=>{A7.exports=ZX;function ZX(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var C7=B((Cme,q7)=>{q7.exports=JX;function JX(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var S7=B((Lme,L7)=>{L7.exports=$X;function $X(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var E7=B((Sme,D7)=>{D7.exports=KX;function KX(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var R7=B((Dme,P7)=>{P7.exports=QX;function QX(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 Yy=B((Eme,z7)=>{z7.exports=jX;function jX(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=t+t,o=a+a,s=n+n,u=t*l,f=a*l,c=a*o,h=n*l,d=n*o,p=n*s,y=i*l,m=i*o,b=i*s;return e[0]=1-c-p,e[1]=f+b,e[2]=h-m,e[3]=0,e[4]=f-b,e[5]=1-u-p,e[6]=d+y,e[7]=0,e[8]=h+m,e[9]=d-y,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var F7=B((Pme,N7)=>{N7.exports=eZ;function eZ(e,r,t,a,n,i,l){var o=1/(t-r),s=1/(n-a),u=1/(i-l);return e[0]=i*2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*o,e[9]=(n+a)*s,e[10]=(l+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*i*2*u,e[15]=0,e}});var H7=B((Rme,I7)=>{I7.exports=rZ;function rZ(e,r,t,a,n){var i=1/Math.tan(r/2),l=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*l,e[15]=0,e}});var B7=B((zme,O7)=>{O7.exports=tZ;function tZ(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),l=Math.tan(r.leftDegrees*Math.PI/180),o=Math.tan(r.rightDegrees*Math.PI/180),s=2/(l+o),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((l-o)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var G7=B((Nme,Y7)=>{Y7.exports=aZ;function aZ(e,r,t,a,n,i,l){var o=1/(r-t),s=1/(a-n),u=1/(i-l);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*o,e[13]=(n+a)*s,e[14]=(l+i)*u,e[15]=1,e}});var V7=B((Fme,U7)=>{var nZ=By();U7.exports=iZ;function iZ(e,r,t,a){var n,i,l,o,s,u,f,c,h,d,p=r[0],y=r[1],m=r[2],b=a[0],_=a[1],w=a[2],x=t[0],M=t[1],k=t[2];return Math.abs(p-x)<1e-6&&Math.abs(y-M)<1e-6&&Math.abs(m-k)<1e-6?nZ(e):(f=p-x,c=y-M,h=m-k,d=1/Math.sqrt(f*f+c*c+h*h),f*=d,c*=d,h*=d,n=_*h-w*c,i=w*f-b*h,l=b*c-_*f,d=Math.sqrt(n*n+i*i+l*l),d?(d=1/d,n*=d,i*=d,l*=d):(n=0,i=0,l=0),o=c*l-h*i,s=h*n-f*l,u=f*i-c*n,d=Math.sqrt(o*o+s*s+u*u),d?(d=1/d,o*=d,s*=d,u*=d):(o=0,s=0,u=0),e[0]=n,e[1]=o,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=l,e[9]=u,e[10]=h,e[11]=0,e[12]=-(n*p+i*y+l*m),e[13]=-(o*p+s*y+u*m),e[14]=-(f*p+c*y+h*m),e[15]=1,e)}});var X7=B((Ime,W7)=>{W7.exports=lZ;function lZ(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 Gy=B((Hme,Z7)=>{Z7.exports={create:X6(),clone:J6(),copy:K6(),identity:By(),transpose:e7(),invert:t7(),adjoint:n7(),determinant:l7(),multiply:s7(),translate:f7(),scale:v7(),rotate:d7(),rotateX:m7(),rotateY:g7(),rotateZ:b7(),fromRotation:w7(),fromRotationTranslation:M7(),fromScaling:k7(),fromTranslation:C7(),fromXRotation:S7(),fromYRotation:E7(),fromZRotation:R7(),fromQuat:Yy(),frustum:F7(),perspective:H7(),perspectiveFromFieldOfView:B7(),ortho:G7(),lookAt:V7(),str:X7()}});var mh=B(It=>{"use strict";var oZ=Gy();It.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var sZ=kr(),J7=Go(),uZ=mh(),fZ=Gy();function cZ(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 vZ(e){var r=sZ.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function $7(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function hZ(e,r){K7("global",e,r)}function K7(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):J7.warn("addStyleRule failed"):J7.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function dZ(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&$7(t)}function pZ(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 mZ(e){var r=j7(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=Q7(a);if(n){var i=uZ.convertCssMatrix(n);t=fZ.multiply(t,t,i)}}),t}function Q7(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function j7(e){for(var r=[];yZ(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function yZ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function gZ(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}ew.exports={getGraphDiv:cZ,isPlotDiv:vZ,removeElement:$7,addStyleRule:hZ,addRelatedStyleRule:K7,deleteRelatedStyleRule:dZ,setStyleOnHover:pZ,getFullTransformMatrix:mZ,getElementTransformMatrix:Q7,getElementAndAncestors:j7,equalDomRects:gZ}});var Tc=B((Yme,rw)=>{"use strict";rw.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var ui=B((Gme,sw)=>{"use strict";var aw=mt().extendFlat,xZ=Pl(),nw={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},iw={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},bZ=nw.flags.slice().concat(["fullReplot"]),_Z=iw.flags.slice().concat("layoutReplot");sw.exports={traces:nw,layout:iw,traceFlags:function(){return tw(bZ)},layoutFlags:function(){return tw(_Z)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";Uy.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};Uy.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var Vy=B((Vme,uw)=>{"use strict";uw.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var _a=B(yh=>{"use strict";var fw=Vy(),Wme=fw.FORMAT_LINK,Xme=fw.DATE_FORMAT_LINK;function Wy(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var a=[],n=0;n{"use strict";function Nl(e,r){return r?r.d2l(e):e}function cw(e,r){return r?r.l2d(e):e}function wZ(e){return e.x0}function TZ(e){return e.x1}function MZ(e){return e.y0}function AZ(e){return e.y1}function vw(e){return e.x0shift||0}function hw(e){return e.x1shift||0}function dw(e){return e.y0shift||0}function pw(e){return e.y1shift||0}function gh(e,r){return Nl(e.x1,r)+hw(e)-Nl(e.x0,r)-vw(e)}function xh(e,r,t){return Nl(e.y1,t)+pw(e)-Nl(e.y0,t)-dw(e)}function kZ(e,r){return Math.abs(gh(e,r))}function qZ(e,r,t){return Math.abs(xh(e,r,t))}function CZ(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(gh(e,r),2)+Math.pow(xh(e,r,t),2))}function LZ(e,r){return cw((Nl(e.x1,r)+hw(e)+Nl(e.x0,r)+vw(e))/2,r)}function SZ(e,r,t){return cw((Nl(e.y1,t)+pw(e)+Nl(e.y0,t)+dw(e))/2,t)}function DZ(e,r,t){return e.type!=="line"?void 0:xh(e,r,t)/gh(e,r)}mw.exports={x0:wZ,x1:TZ,y0:MZ,y1:AZ,slope:DZ,dx:gh,dy:xh,width:kZ,height:qZ,length:CZ,xcenter:LZ,ycenter:SZ}});var xw=B(($me,gw)=>{"use strict";var EZ=ui().overrideAll,Uo=rn(),yw=jt(),PZ=fi().dash,Fl=mt().extendFlat,RZ=_a().shapeTexttemplateAttrs,zZ=bh();gw.exports=EZ({newshape:{visible:Fl({},Uo.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Fl({},Uo.legend,{}),legendgroup:Fl({},Uo.legendgroup,{}),legendgrouptitle:{text:Fl({},Uo.legendgrouptitle.text,{}),font:yw({})},legendrank:Fl({},Uo.legendrank,{}),legendwidth:Fl({},Uo.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Fl({},PZ,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Fl({},Uo.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:RZ({newshape:!0},{keys:Object.keys(zZ)}),font:yw({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var _w=B((Kme,bw)=>{"use strict";var NZ=fi().dash,FZ=mt().extendFlat;bw.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:FZ({},NZ,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var _h=B((Qme,ww)=>{"use strict";ww.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var xu=B((jme,kw)=>{"use strict";var Xy=jt(),IZ=Tc(),wh=zn(),Tw=xw(),Mw=_w(),HZ=_h(),Aw=mt().extendFlat,Th=Xy({editType:"calc"});Th.family.dflt='"Open Sans", verdana, arial, sans-serif';Th.size.dflt=12;Th.color.dflt=wh.defaultLine;kw.exports={font:Th,title:{text:{valType:"string",editType:"layoutstyle"},font:Xy({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Xy({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:Aw(HZ({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:wh.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:wh.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:wh.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:Tw.newshape,activeshape:Tw.activeshape,newselection:Mw.newselection,activeselection:Mw.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:Aw({},IZ.transition,{editType:"none"})}});var qw=nt(()=>{});var OZ={};var Cw=nt(()=>{qw()});var yr=B(Fr=>{"use strict";var bu=Go(),Lw=ph(),Sw=Oy(),BZ=Pl(),YZ=wc().addStyleRule,Dw=mt(),GZ=rn(),UZ=xu(),VZ=Dw.extendFlat,Zy=Dw.extendDeepAll;Fr.modules={};Fr.allCategories={};Fr.allTypes=[];Fr.subplotsRegistry={};Fr.componentsRegistry={};Fr.layoutArrayContainers=[];Fr.layoutArrayRegexes=[];Fr.traceLayoutAttributes={};Fr.localeRegistry={};Fr.apiMethodRegistry={};Fr.collectableSubplotTypes=null;Fr.register=function(r){if(Fr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var KZ=cu().timeFormat,Yw=zr(),Jy=Go(),Hl=hu().mod,Tu=wt(),Nn=Tu.BADNUM,nn=Tu.ONEDAY,Mc=Tu.ONEHOUR,Il=Tu.ONEMIN,wu=Tu.ONESEC,Ac=Tu.EPOCHJD,il=yr(),Nw=cu().utcFormat,QZ=/^\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,jZ=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Fw=new Date().getFullYear()-70;function ll(e){return e&&il.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Ht.dateTick0=function(e,r){var t=eJ(e,!!r);if(r<2)return t;var a=Ht.dateTime2ms(t,e);return a+=nn*(r-1),Ht.ms2DateTime(a,0,e)};function eJ(e,r){return ll(e)?r?il.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:il.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Ht.dfltRange=function(e){return ll(e)?il.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Ht.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Ah,kh;Ht.dateTime2ms=function(e,r){if(Ht.isJSDate(e)){var t=e.getTimezoneOffset()*Il,a=(e.getUTCMinutes()-e.getMinutes())*Il+(e.getUTCSeconds()-e.getSeconds())*wu+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Il;t=t-n/2+Hl(a-t+n/2,n)}return e=Number(e)-t,e>=Ah&&e<=kh?e:Nn}if(typeof e!="string"&&typeof e!="number")return Nn;e=String(e);var i=ll(r),l=e.charAt(0);i&&(l==="G"||l==="g")&&(e=e.substr(1),r="");var o=i&&r.substr(0,7)==="chinese",s=e.match(o?jZ:QZ);if(!s)return Nn;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),h=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return Nn;u=Number(u);var y;try{var m=il.getComponentMethod("calendars","getCal")(r);if(o){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),y=m.newDate(u,m.toMonthIndex(u,f,b),c)}else y=m.newDate(u,Number(f),c)}catch(w){return Nn}return y?(y.toJD()-Ac)*nn+h*Mc+d*Il+p*wu:Nn}u.length===2?u=(Number(u)+2e3-Fw)%100+Fw:u=Number(u),f-=1;var _=new Date(Date.UTC(2e3,f,c,h,d));return _.setUTCFullYear(u),_.getUTCMonth()!==f||_.getUTCDate()!==c?Nn:_.getTime()+p*wu};Ah=Ht.MIN_MS=Ht.dateTime2ms("-9999");kh=Ht.MAX_MS=Ht.dateTime2ms("9999-12-31 23:59:59.9999");Ht.isDateTime=function(e,r){return Ht.dateTime2ms(e,r)!==Nn};function _u(e,r){return String(e+Math.pow(10,r)).substr(1)}var Mh=90*nn,Iw=3*Mc,Hw=5*Il;Ht.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Ah&&e<=kh))return Nn;r||(r=0);var a=Math.floor(Hl(e+.05,1)*10),n=Math.round(e-a/10),i,l,o,s,u,f;if(ll(t)){var c=Math.floor(n/nn)+Ac,h=Math.floor(Hl(e,nn));try{i=il.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=Nw("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;l=r=Ah+nn&&e<=kh-nn))return Nn;var r=Math.floor(Hl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=KZ("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return Gw(a,n,i,l,o)};function Gw(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+_u(r,2)+":"+_u(t,2),(a||n)&&(e+=":"+_u(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+_u(n,i)}return e}Ht.cleanDate=function(e,r,t){if(e===Nn)return r;if(Ht.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(ll(t))return Jy.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Ht.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Ht.isDateTime(e,t))return Jy.error("unrecognized date",e),r;return e};var rJ=/%\d?f/g,tJ=/%h/g,aJ={1:"1",2:"1",3:"2",4:"2"};function Ow(e,r,t,a){e=e.replace(rJ,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(tJ,function(){return aJ[t("%q")(n)]}),ll(a))try{e=il.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var nJ=[59,59.9,59.99,59.999,59.9999];function iJ(e,r){var t=Hl(e+.05,nn),a=_u(Math.floor(t/Mc),2)+":"+_u(Hl(Math.floor(t/Il),60),2);if(r!=="M"){Yw(r)||(r=0);var n=Math.min(Hl(e/wu,60),nJ[r]),i=(100+n).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Ht.formatDate=function(e,r,t,a,n,i){if(n=ll(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` -`+i.year;else return iJ(e,t)+` -`+Ow(i.dayMonthYear,e,a,n);return Ow(r,e,a,n)};var Bw=3*nn;Ht.incrementMonth=function(e,r,t){t=ll(t)&&t;var a=Hl(e,nn);if(e=Math.round(e-a),t)try{var n=Math.round(e/nn)+Ac,i=il.getComponentMethod("calendars","getCal")(t),l=i.fromJD(n);return r%12?i.add(l,r,"m"):i.add(l,r/12,"y"),(l.toJD()-Ac)*nn+a}catch(s){Jy.error("invalid ms "+e+" in calendar "+t)}var o=new Date(e+Bw);return o.setUTCMonth(o.getUTCMonth()+r)+a-Bw};Ht.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,l,o,s=ll(r)&&il.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";Vw.exports=function(r){return r}});var Qy=B(ol=>{"use strict";var lJ=zr(),oJ=Go(),sJ=$y(),uJ=wt().BADNUM,Ky=1e-9;ol.findBin=function(e,r,t){if(lJ(r.start))return t?Math.ceil((e-r.start)/r.size-Ky)-1:Math.floor((e-r.start)/r.size+Ky);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?fJ:cJ:s=t?hJ:vJ,e+=l*Ky*(t?-1:1)*(l>=0?1:-1);a90&&oJ.log("Long binary search..."),a-1};function fJ(e,r){return er}function hJ(e,r){return e>=r}ol.sorterAsc=function(e,r){return e-r};ol.sorterDes=function(e,r){return r-e};ol.distinctVals=function(e){var r=e.slice();r.sort(ol.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===uJ;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],l,o=0;o<=t;o++){var s=r[o],u=s-l;l===void 0?(i.push(s),l=s):u>n&&(a=Math.min(a,u),i.push(s),l=s)}return{vals:i,minDiff:a}};ol.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,l=0,o=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};ol.findIndexOfMin=function(e,r){r=r||sJ;for(var t=1/0,a,n=0;n{"use strict";Ww.exports=function(r){return Object.keys(r).sort()}});var Xw=B(Ot=>{"use strict";var kc=zr(),dJ=yn().isArrayOrTypedArray;Ot.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),kc(r)||(r=!1),dJ(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var Qw=B((uye,Kw)=>{"use strict";var Zw=hu(),eg=Zw.mod,pJ=Zw.modHalf,qc=Math.PI,Ol=2*qc;function mJ(e){return e/180*qc}function yJ(e){return e/qc*180}function rg(e){return Math.abs(e[1]-e[0])>Ol-1e-14}function Jw(e,r){return pJ(r-e,Ol)}function gJ(e,r){return Math.abs(Jw(e,r))}function $w(e,r){if(rg(r))return!0;var t,a;r[0]a&&(a+=Ol);var n=eg(e,Ol),i=n+Ol;return n>=t&&n<=a||i>=t&&i<=a}function xJ(e,r,t,a){if(!$w(r,a))return!1;var n,i;return t[0]=n&&e<=i}function tg(e,r,t,a,n,i,l){n=n||0,i=i||0;var o=rg([t,a]),s,u,f,c,h;o?(s=0,u=qc,f=Ol):t{"use strict";Vo.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Vo.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Vo.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Vo.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Vo.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Vo.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var t8=B(Wo=>{"use strict";var ag=hu().mod;Wo.segmentsIntersect=r8;function r8(e,r,t,a,n,i,l,o){var s=t-e,u=n-e,f=l-n,c=a-r,h=i-r,d=o-i,p=s*d-f*c;if(p===0)return null;var y=(u*d-f*h)/p,m=(u*c-s*h)/p;return m<0||m>1||y<0||y>1?null:{x:e+s*y,y:r+c*y}}Wo.segmentDistance=function(r,t,a,n,i,l,o,s){if(r8(r,t,a,n,i,l,o,s))return 0;var u=a-r,f=n-t,c=o-i,h=s-l,d=u*u+f*f,p=c*c+h*h,y=Math.min(qh(u,f,d,i-r,l-t),qh(u,f,d,o-r,s-t),qh(c,h,p,r-i,t-l),qh(c,h,p,a-i,n-l));return Math.sqrt(y)};function qh(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 Ch,ng,e8;Wo.getTextLocation=function(r,t,a,n){if((r!==ng||n!==e8)&&(Ch={},ng=r,e8=n),Ch[a])return Ch[a];var i=r.getPointAtLength(ag(a-n/2,t)),l=r.getPointAtLength(ag(a+n/2,t)),o=Math.atan((l.y-i.y)/(l.x-i.x)),s=r.getPointAtLength(ag(a,t)),u=(s.x*4+i.x+l.x)/6,f=(s.y*4+i.y+l.y)/6,c={x:u,y:f,theta:o};return Ch[a]=c,c};Wo.clearLocationCache=function(){ng=null};Wo.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,l=t.top,o=t.bottom,s=0,u=r.getTotalLength(),f=u,c,h;function d(y){var m=r.getPointAtLength(y);y===0?c=m:y===u&&(h=m);var b=m.xi?m.x-i:0,_=m.yo?m.y-o:0;return Math.sqrt(b*b+_*_)}for(var p=d(s);p;){if(s+=p+a,s>f)return;p=d(s)}for(p=d(f);p;){if(f-=p+a,s>f)return;p=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-h.x)<.1&&Math.abs(c.y-h.y)<.1}};Wo.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),l=n.tolerance||.001,o=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,h,d,p;u0?c=h:f=h,u++}return d}});var Lh=B(Cc=>{"use strict";var sl={};Cc.throttle=function(r,t,a){var n=sl[r],i=Date.now();if(!n){for(var l in sl)sl[l].tsn.ts+t){o();return}n.timer=setTimeout(function(){o(),n.timer=null},t)};Cc.done=function(e){var r=sl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};Cc.clear=function(e){if(e)a8(sl[e]),delete sl[e];else for(var r in sl)Cc.clear(r)};function a8(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var i8=B((hye,n8)=>{"use strict";n8.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var l8=B((dye,Sh)=>{"use strict";Sh.exports=ig;Sh.exports.isMobile=ig;Sh.exports.default=ig;var TJ=/(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,MJ=/CrOS/,AJ=/android|ipad|playbook|silk/i;function ig(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=TJ.test(r)&&!MJ.test(r)||!!e.tablet&&AJ.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var s8=B((pye,o8)=>{"use strict";var kJ=zr(),qJ=l8();o8.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=CJ(),typeof t!="string")return!0;var a=qJ({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(kJ(u)&&(u=+u),u>=13)return!0}}}return a};function CJ(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var f8=B((mye,u8)=>{"use strict";var LJ=kr();u8.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(l){return l[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(l){l[0][i]=LJ.select(this)}),n}});var v8=B((yye,c8)=>{"use strict";var SJ=yr();c8.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,l=0;l<2;l++){var o=(i[a]||{}).dictionary;if(o){var s=o[t];if(s)return s}i=SJ.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var d8=B((gye,h8)=>{"use strict";h8.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";p8.exports=function(r){for(var t=PJ(r)?EJ:DJ,a=[],n=0;n{"use strict";y8.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var l=String(t).length,o=String(r).length;if(i>=o+l){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var b8=B((_ye,x8)=>{"use strict";var RJ=zr(),zJ=wt().BADNUM,NJ=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;x8.exports=function(r){return typeof r=="string"&&(r=r.replace(NJ,"")),RJ(r)?Number(r):zJ}});var Pe=B((wye,P8)=>{"use strict";var Lc=kr(),FJ=cu().utcFormat,IJ=ky().format,k8=zr(),q8=wt(),C8=q8.FP_SAFE,HJ=-C8,_8=q8.BADNUM,de=P8.exports={};de.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var w8={};de.warnBadFormat=function(e){var r=String(e);w8[r]||(w8[r]=1,de.warn('encountered bad format: "'+r+'"'))};de.noFormat=function(e){return String(e)};de.numberFormat=function(e){var r;try{r=IJ(de.adjustFormat(e))}catch(t){return de.warnBadFormat(e),de.noFormat}return r};de.nestedProperty=lh();de.keyedContainer=v6();de.relativeAttr=d6();de.isPlainObject=Pl();de.toLogRange=sh();de.relinkPrivateKeys=g6();var Bl=yn();de.isArrayBuffer=Bl.isArrayBuffer;de.isTypedArray=Bl.isTypedArray;de.isArrayOrTypedArray=Bl.isArrayOrTypedArray;de.isArray1D=Bl.isArray1D;de.ensureArray=Bl.ensureArray;de.concat=Bl.concat;de.maxRowLength=Bl.maxRowLength;de.minRowLength=Bl.minRowLength;var L8=hu();de.mod=L8.mod;de.modHalf=L8.modHalf;var Yl=F6();de.valObjectMeta=Yl.valObjectMeta;de.coerce=Yl.coerce;de.coerce2=Yl.coerce2;de.coerceFont=Yl.coerceFont;de.coercePattern=Yl.coercePattern;de.coerceHoverinfo=Yl.coerceHoverinfo;de.coerceSelectionMarkerOpacity=Yl.coerceSelectionMarkerOpacity;de.validate=Yl.validate;var gn=Uw();de.dateTime2ms=gn.dateTime2ms;de.isDateTime=gn.isDateTime;de.ms2DateTime=gn.ms2DateTime;de.ms2DateTimeLocal=gn.ms2DateTimeLocal;de.cleanDate=gn.cleanDate;de.isJSDate=gn.isJSDate;de.formatDate=gn.formatDate;de.incrementMonth=gn.incrementMonth;de.dateTick0=gn.dateTick0;de.dfltRange=gn.dfltRange;de.findExactDates=gn.findExactDates;de.MIN_MS=gn.MIN_MS;de.MAX_MS=gn.MAX_MS;var Xo=Qy();de.findBin=Xo.findBin;de.sorterAsc=Xo.sorterAsc;de.sorterDes=Xo.sorterDes;de.distinctVals=Xo.distinctVals;de.roundUp=Xo.roundUp;de.sort=Xo.sort;de.findIndexOfMin=Xo.findIndexOfMin;de.sortObjectKeys=jy();var ul=Xw();de.aggNums=ul.aggNums;de.len=ul.len;de.mean=ul.mean;de.geometricMean=ul.geometricMean;de.median=ul.median;de.midRange=ul.midRange;de.variance=ul.variance;de.stdev=ul.stdev;de.interp=ul.interp;var ci=mh();de.init2dArray=ci.init2dArray;de.transposeRagged=ci.transposeRagged;de.dot=ci.dot;de.translationMatrix=ci.translationMatrix;de.rotationMatrix=ci.rotationMatrix;de.rotationXYMatrix=ci.rotationXYMatrix;de.apply3DTransform=ci.apply3DTransform;de.apply2DTransform=ci.apply2DTransform;de.apply2DTransform2=ci.apply2DTransform2;de.convertCssMatrix=ci.convertCssMatrix;de.inverseTransformMatrix=ci.inverseTransformMatrix;var Fi=Qw();de.deg2rad=Fi.deg2rad;de.rad2deg=Fi.rad2deg;de.angleDelta=Fi.angleDelta;de.angleDist=Fi.angleDist;de.isFullCircle=Fi.isFullCircle;de.isAngleInsideSector=Fi.isAngleInsideSector;de.isPtInsideSector=Fi.isPtInsideSector;de.pathArc=Fi.pathArc;de.pathSector=Fi.pathSector;de.pathAnnulus=Fi.pathAnnulus;var Au=jw();de.isLeftAnchor=Au.isLeftAnchor;de.isCenterAnchor=Au.isCenterAnchor;de.isRightAnchor=Au.isRightAnchor;de.isTopAnchor=Au.isTopAnchor;de.isMiddleAnchor=Au.isMiddleAnchor;de.isBottomAnchor=Au.isBottomAnchor;var ku=t8();de.segmentsIntersect=ku.segmentsIntersect;de.segmentDistance=ku.segmentDistance;de.getTextLocation=ku.getTextLocation;de.clearLocationCache=ku.clearLocationCache;de.getVisibleSegment=ku.getVisibleSegment;de.findPointOnPath=ku.findPointOnPath;var Ph=mt();de.extendFlat=Ph.extendFlat;de.extendDeep=Ph.extendDeep;de.extendDeepAll=Ph.extendDeepAll;de.extendDeepNoArrays=Ph.extendDeepNoArrays;var lg=Go();de.log=lg.log;de.warn=lg.warn;de.error=lg.error;var OJ=mu();de.counterRegex=OJ.counter;var og=Lh();de.throttle=og.throttle;de.throttleDone=og.done;de.clearThrottle=og.clear;var vi=wc();de.getGraphDiv=vi.getGraphDiv;de.isPlotDiv=vi.isPlotDiv;de.removeElement=vi.removeElement;de.addStyleRule=vi.addStyleRule;de.addRelatedStyleRule=vi.addRelatedStyleRule;de.deleteRelatedStyleRule=vi.deleteRelatedStyleRule;de.setStyleOnHover=vi.setStyleOnHover;de.getFullTransformMatrix=vi.getFullTransformMatrix;de.getElementTransformMatrix=vi.getElementTransformMatrix;de.getElementAndAncestors=vi.getElementAndAncestors;de.equalDomRects=vi.equalDomRects;de.clearResponsive=i8();de.preserveDrawingBuffer=s8();de.makeTraceGroups=f8();de._=v8();de.notifier=Fy();de.filterUnique=d8();de.filterVisible=m8();de.pushUnique=Oy();de.increment=g8();de.cleanNumber=b8();de.ensureNumber=function(r){return k8(r)?(r=Number(r),r>C8||r=r?!1:k8(e)&&e>=0&&e%1===0};de.noop=ph();de.identity=$y();de.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))};de.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};de.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?(de.warn("randstr failed uniqueness"),l):e(r,t,a,(n||0)+1):l};de.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};de.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};de.syncOrAsync=function(e,r,t){var a,n;function i(){return de.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)};de.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};de.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,l;for(i=0;i0?n:0})};de.fillArray=function(e,r,t,a){if(a=a||de.identity,de.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};de.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var E8=/^\w*$/;de.templateString=function(e,r){var t={};return e.replace(de.TEMPLATE_STRING_REGEX,function(a,n){var i;return E8.test(n)?i=r[n]:(t[n]=t[n]||de.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var WJ={max:10,count:0,name:"hovertemplate"};de.hovertemplateString=function(){return sg.apply(WJ,arguments)};var XJ={max:10,count:0,name:"texttemplate"};de.texttemplateString=function(){return sg.apply(XJ,arguments)};var ZJ=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function JJ(e){var r=e.match(ZJ);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var $J={max:10,count:0,name:"texttemplate",parseMultDiv:!0};de.texttemplateStringForShapes=function(){return sg.apply($J,arguments)};var T8=/^[:|\|]/;function sg(e,r,t){var a=this,n=arguments;return r||(r={}),e.replace(de.TEMPLATE_STRING_REGEX,function(i,l,o){var s=l==="xother"||l==="yother",u=l==="_xother"||l==="_yother",f=l==="_xother_"||l==="_yother_",c=l==="xother_"||l==="yother_",h=s||u||c||f,d=l;(u||f)&&(d=d.substring(1)),(c||f)&&(d=d.substring(0,d.length-1));var p=null,y=null;if(a.parseMultDiv){var m=JJ(d);d=m.key,p=m.op,y=m.number}var b;if(h){if(b=r[d],b===void 0)return""}else{var _,w;for(w=3;w=Eh&&l<=M8,u=o>=Eh&&o<=M8;if(s&&(a=10*a+l-Eh),u&&(n=10*n+o-Eh),!s||!u){if(a!==n)return a-n;if(l!==o)return l-o}}return n-a};var Mu=2e9;de.seedPseudoRandom=function(){Mu=2e9};de.pseudoRandom=function(){var e=Mu;return Mu=(69069*Mu+1)%4294967296,Math.abs(Mu-e)<429496729?de.pseudoRandom():Mu/4294967296};de.fillText=function(e,r,t){var a=Array.isArray(t)?function(l){t.push(l)}:function(l){t.text=l},n=de.extractOption(e,r,"htx","hovertext");if(de.isValidTextValue(n))return a(n);var i=de.extractOption(e,r,"tx","text");if(de.isValidTextValue(i))return a(i)};de.isValidTextValue=function(e){return e||e===0};de.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,de.strTranslate(n-u*(t+l),i-u*(a+o))+de.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};de.setTransormAndDisplay=function(e,r){e.attr("transform",de.getTextTransform(r)),e.style("display",r.scale?null:"none")};de.ensureUniformFontSize=function(e,r){var t=de.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};de.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)};de.bigFont=function(e){return Math.round(1.2*e)};var A8=de.getFirefoxVersion(),KJ=A8!==null&&A8<86;de.getPositionFromD3Event=function(){return KJ?[Lc.event.layerX,Lc.event.layerY]:[Lc.event.offsetX,Lc.event.offsetY]}});var N8=B(()=>{"use strict";var QJ=Pe(),R8={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .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(ug in R8)z8=ug.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),QJ.addStyleRule(z8,R8[ug]);var z8,ug});var fg=B((Aye,F8)=>{F8.exports=!0});var vg=B((kye,I8)=>{"use strict";var jJ=fg(),cg;typeof window.matchMedia=="function"?cg=!window.matchMedia("(hover: none)").matches:cg=jJ;I8.exports=cg});var Nh=B((qye,hg)=>{"use strict";var qu=typeof Reflect=="object"?Reflect:null,H8=qu&&typeof qu.apply=="function"?qu.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Rh;qu&&typeof qu.ownKeys=="function"?Rh=qu.ownKeys:Object.getOwnPropertySymbols?Rh=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Rh=function(r){return Object.getOwnPropertyNames(r)};function e$(e){console&&console.warn&&console.warn(e)}var B8=Number.isNaN||function(r){return r!==r};function yt(){yt.init.call(this)}hg.exports=yt;hg.exports.once=n$;yt.EventEmitter=yt;yt.prototype._events=void 0;yt.prototype._eventsCount=0;yt.prototype._maxListeners=void 0;var O8=10;function zh(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(yt,"defaultMaxListeners",{enumerable:!0,get:function(){return O8},set:function(e){if(typeof e!="number"||e<0||B8(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");O8=e}});yt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};yt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||B8(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function Y8(e){return e._maxListeners===void 0?yt.defaultMaxListeners:e._maxListeners}yt.prototype.getMaxListeners=function(){return Y8(this)};yt.prototype.emit=function(r){for(var t=[],a=1;a0&&(l=t[0]),l instanceof Error)throw l;var o=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw o.context=l,o}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")H8(s,this,t);else for(var u=s.length,f=X8(s,u),a=0;a0&&l.length>n&&!l.warned){l.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=r,o.count=l.length,e$(o)}return e}yt.prototype.addListener=function(r,t){return G8(this,r,t,!1)};yt.prototype.on=yt.prototype.addListener;yt.prototype.prependListener=function(r,t){return G8(this,r,t,!0)};function r$(){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 U8(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=r$.bind(a);return n.listener=t,a.wrapFn=n,n}yt.prototype.once=function(r,t){return zh(t),this.on(r,U8(this,r,t)),this};yt.prototype.prependOnceListener=function(r,t){return zh(t),this.prependListener(r,U8(this,r,t)),this};yt.prototype.removeListener=function(r,t){var a,n,i,l,o;if(zh(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():t$(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,o||t)}return this};yt.prototype.off=yt.prototype.removeListener;yt.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),l;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function V8(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?a$(n):X8(n,n.length)}yt.prototype.listeners=function(r){return V8(this,r,!0)};yt.prototype.rawListeners=function(r){return V8(this,r,!1)};yt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):W8.call(e,r)};yt.prototype.listenerCount=W8;function W8(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}yt.prototype.eventNames=function(){return this._eventsCount>0?Rh(this._events):[]};function X8(e,r){for(var t=new Array(r),a=0;a{"use strict";var dg=Nh().EventEmitter,l$={init:function(e){if(e._ev instanceof dg)return e;var r=new dg,t=new dg;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 $8=Pe(),o$=Yo().dfltConfig;function s$(e,r){for(var t=[],a,n=0;no$.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};fl.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};fl.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};fl.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";j8.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Su=B(Zt=>{"use strict";var Fn=yr(),Dc=Pe(),Ih=rn(),mg=xu(),u$=pg(),f$=Tc(),c$=Yo().configAttributes,e9=ui(),hi=Dc.extendDeepAll,Cu=Dc.isPlainObject,v$=Dc.isArrayOrTypedArray,Hh=Dc.nestedProperty,h$=Dc.valObjectMeta,yg="_isSubplotObj",Oh="_isLinkedToArray",d$="_arrayAttrRegexps",t9="_deprecated",gg=[yg,Oh,d$,t9];Zt.IS_SUBPLOT_OBJ=yg;Zt.IS_LINKED_TO_ARRAY=Oh;Zt.DEPRECATED=t9;Zt.UNDERSCORE_ATTRS=gg;Zt.get=function(){var e={};return Fn.allTypes.forEach(function(r){e[r]=m$(r)}),{defs:{valObjects:h$,metaKeys:gg.concat(["description","role","editType","impliedEdits"]),editType:{traces:e9.traces,layout:e9.layout},impliedEdits:{}},traces:e,layout:y$(),frames:g$(),animation:Lu(f$),config:Lu(c$)}};Zt.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var l=e[i];if(gg.indexOf(i)===-1){var o=(a?a+".":"")+i;r(l,i,e,n,o),!Zt.isValObject(l)&&Cu(l)&&i!=="impliedEdits"&&Zt.crawl(l,r,n+1,o)}})};Zt.isValObject=function(e){return e&&e.valType!==void 0};Zt.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function l(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var h=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&o(n,0,"")}function o(s,u,f){var c=s[t[u]],h=f+t[u];if(u===t.length-1)v$(c)&&r.push(i+h);else if(a[u]){if(Array.isArray(c))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var l=r[t];if(!Fh(l))return!1;e=i[n][l]}else e=i[n]}else e=i}}return e}function Fh(e){return e===Math.round(e)&&e>=0}function m$(e){var r,t;r=Fn.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=hi({},Ih),i=hi({},r.attributes);Zt.crawl(i,function(s,u,f,c,h){Hh(n,h).set(void 0),s===void 0&&Hh(i,h).set(void 0)}),hi(a,n),Fn.traceIs(e,"noOpacity")&&delete a.opacity,Fn.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Fn.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,hi(a,i),t.attributes&&hi(a,t.attributes),a.type=e;var l={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Lu(a)};if(r.layoutAttributes){var o={};hi(o,r.layoutAttributes),l.layoutAttributes=Lu(o)}return r.animatable||Zt.crawl(l,function(s){Zt.isValObject(s)&&"anim"in s&&delete s.anim}),l}function y$(){var e={},r,t;hi(e,mg);for(r in Fn.subplotsRegistry)if(t=Fn.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Du=Pe(),T$=rn(),Gl="templateitemname",xg={name:{valType:"string",editType:"none"}};xg[Gl]={valType:"string",editType:"calc"};Zo.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=xg.name,r[Gl]=xg[Gl],r};Zo.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=Du.coerce(i,{},T$,"type");var l={type:t,_template:null};if(t in r){a=e[t];var o=r[t]%a.length;r[t]++,l._template=a[o]}return l}return{newTrace:n}};Zo.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Du.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};Zo.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[i9(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var l={};function o(u){var f={name:u.name,_input:u},c=f[Gl]=u[Gl];if(!n9(c))return f._template=n,f;for(var h=0;h=a&&(t._input||{})._templateitemname;i&&(n=a);var l=r+"["+n+"]",o;function s(){o={},i&&(o[l]={},o[l][Gl]=i)}s();function u(d,p){o[d]=p}function f(d,p){i?Du.nestedProperty(o[l],d).set(p):o[l+"."+d]=p}function c(){var d=o;return s(),d}function h(d,p){d&&f(d,p);var y=c();for(var m in y)Du.nestedProperty(e,m).set(y[m])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:h}}});var wa=B((Pye,l9)=>{"use strict";var Ec=mu().counter;l9.exports={idRegex:{x:Ec("x","( domain)?"),y:Ec("y","( domain)?")},attrRegex:Ec("[xy]axis"),xAxisMatch:Ec("xaxis"),yAxisMatch:Ec("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 Jt=B(ln=>{"use strict";var M$=yr(),bg=wa();ln.id2name=function(r){if(!(typeof r!="string"||!r.match(bg.AX_ID_PATTERN))){var t=r.split(" ")[0].substr(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};ln.name2id=function(r){if(r.match(bg.AX_NAME_PATTERN)){var t=r.substr(5);return t==="1"&&(t=""),r.charAt(0)+t}};ln.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(bg.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":"")}};ln.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=ln.listIds(e,r),i=new Array(n.length),l;for(l=0;la?1:-1:+(e.substr(1)||1)-+(r.substr(1)||1)};ln.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function o9(e,r){if(r&&r.length){for(var t=0;t{"use strict";function A$(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function k$(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}s9.exports={clearOutlineControllers:A$,clearOutline:k$}});var Bh=B((Nye,u9)=>{"use strict";u9.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var _g=B(Gh=>{"use strict";var Yh=yr(),Fye=wa().SUBPLOT_PATTERN;Gh.getSubplotCalcData=function(e,r,t){var a=Yh.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],l=0;l{"use strict";var q$=yr(),Eu=Pe();Jo.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var l=Jo.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(l)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(l){f9(e,l,n.cache),n.check=function(){if(i){var f=f9(e,l,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:l.type,prop:l.prop,traces:l.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var o=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;Eu.isPlainObject(i)?wg(i,r,l,a+1):r(l,n,i)}})}});var St=B((Oye,q9)=>{"use strict";var b9=kr(),L$=cu().timeFormatLocale,S$=ky().formatLocale,Pc=zr(),D$=qy(),Jr=yr(),_9=Su(),E$=ot(),fr=Pe(),w9=xr(),d9=wt().BADNUM,on=Jt(),P$=Ul().clearOutline,R$=Bh(),Tg=Tc(),z$=pg(),N$=_g().getModuleCalcData,p9=fr.relinkPrivateKeys,$o=fr._,Qe=q9.exports={};fr.extendFlat(Qe,Jr);Qe.attributes=rn();Qe.attributes.type.values=Qe.allTypes;Qe.fontAttrs=jt();Qe.layoutAttributes=xu();var Vh=h9();Qe.executeAPICommand=Vh.executeAPICommand;Qe.computeAPICommandBindings=Vh.computeAPICommandBindings;Qe.manageCommandObserver=Vh.manageCommandObserver;Qe.hasSimpleAPICommandBindings=Vh.hasSimpleAPICommandBindings;Qe.redrawText=function(e){return e=fr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Jr.getComponentMethod("annotations","draw")(e),Jr.getComponentMethod("legend","draw")(e),Jr.getComponentMethod("colorbar","draw")(e),r(Qe.previousPromises(e)))},300)})};Qe.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,Jr.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Qe.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Qe.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=fr.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:w9.defaultLine,"pointer-events":"all"}).each(function(){var u=b9.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),a=t.node(),n={y:r._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=r.width-20?(n["text-anchor"]="start",n.x=5):(n["text-anchor"]="end",n.x=r._paper.attr("width")-7),t.attr(n);var i=t.select(".js-link-to-tool"),l=t.select(".js-link-spacer"),o=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&F$(e,i),l.text(i.text()&&o.text()?" - ":"")}};function F$(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){Qe.sendDataToCloud(e)});else{var a=window.location.pathname.split("/"),n=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}Qe.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=b9.select(e).append("div").attr("id","hiddenform").style("display","none"),a=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),n=a.append("input").attr({type:"text",name:"data"});return n.node().value=Qe.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var I$=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],H$=["year","month","dayMonth","dayMonthYear"];Qe.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},l=e._fullData||[],o=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||Qe.createTransitionData(e),n._dfltTitle={plot:$o(e,"Click to enter Plot title"),subtitle:$o(e,"Click to enter Plot subtitle"),x:$o(e,"Click to enter X axis title"),y:$o(e,"Click to enter Y axis title"),colorbar:$o(e,"Click to enter Colorscale title"),annotation:$o(e,"new text")},n._traceWord=$o(e,"trace");var h=m9(e,I$);if(n._mapboxAccessToken=f.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,p=a.height;Qe.supplyLayoutGlobalDefaults(i,n,h),i.width||(n.width=d),i.height||(n.height=p),Qe.sanitizeMargins(n)}else{Qe.supplyLayoutGlobalDefaults(i,n,h);var y=!i.width||!i.height,m=n.autosize,b=f.autosizable,_=y&&(m||b);_?Qe.plotAutoSize(e,i,n):y&&Qe.sanitizeMargins(n),!m&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=Y$(h,n.separators),n._extraFormat=m9(e,H$),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var w=n._subplots=B$(),x=n._splomAxes={x:{},y:{}},M=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=O$(l,s),Qe.supplyDataDefaults(s,o,i,n);var k=Object.keys(x.x),A=Object.keys(x.y);if(k.length>1&&A.length>1){for(Jr.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&A.length>15&&n.shapes.length===0&&n.images.length===0,Qe.linkSubplots(o,n,l,a),Qe.cleanPlot(o,n,l,a);var N=!!(a._has&&a._has("cartesian")),I=!!(n._has&&n._has("cartesian")),H=N,V=I;H&&!V?a._bgLayer.remove():V&&!H&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&P$({_fullLayout:a}),G$(o,n),p9(n,a),Jr.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var W=n._tracePreGUI,Y={},O;for(O in W)Y[O]="old";for(c=0;c0){var f=1-2*i;l=Math.round(f*l),o=Math.round(f*o)}}var c=Qe.layoutAttributes.width.min,h=Qe.layoutAttributes.height.min;l1,p=!t.height&&Math.abs(a.height-o)>1;(p||d)&&(d&&(a.width=l),p&&(a.height=o)),r._initialAutoSize||(r._initialAutoSize={width:l,height:o}),Qe.sanitizeMargins(a)};Qe.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Jr.componentsRegistry,i=r._basePlotModules,l,o,s,u=Jr.subplotsRegistry.cartesian;for(l in n)s=n[l],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Jr.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/=m,t.r/=m)}if(h){var b=(t.t+t.b)/h;b>1&&(t.t/=b,t.b/=b)}var _=t.xl!==void 0?t.xl:t.x,w=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,M=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:_,size:t.l+y},r:{val:w,size:t.r+y},b:{val:M,size:t.b+y},t:{val:x,size:t.t+y}},p[r]=1}if(!a._replotting)return Qe.doAutoMargin(e)}};function V$(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=on.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Qe.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),T9(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,c=i.b,h=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,y=r.minreducedheight;if(i.autoexpand!==!1){for(var m in h)d[m]||delete h[m];var b=e._fullLayout._reservedMargin;for(var _ in b)for(var w in b[_]){var x=b[_][w];l[w]=Math.max(l[w],x)}h.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var M in l){var k=0;for(var A in h)A!=="base"&&Pc(h[A][M].size)&&(k=h[A][M].size>k?h[A][M].size:k);var L=Math.max(0,i[M]-k);l[M]=Math.max(0,l[M]-L)}for(var D in h){var E=h[D].l||{},R=h[D].b||{},N=E.val,I=E.size,H=R.val,V=R.size,W=t-l.r-l.l,Y=a-l.t-l.b;for(var O in h){if(Pc(I)&&h[O].r){var G=h[O].r.val,J=h[O].r.size;if(G>N){var $=(I*G+(J-W)*N)/(G-N),re=(J*(1-N)+(I-W)*(1-G))/(G-N);$+re>s+u&&(s=$,u=re)}}if(Pc(V)&&h[O].t){var le=h[O].t.val,se=h[O].t.size;if(le>H){var ve=(V*le+(se-Y)*H)/(le-H),Q=(se*(1-H)+(V-Y)*(1-le))/(le-H);ve+Q>c+f&&(c=ve,f=Q)}}}}}var _e=fr.constrain(t-i.l-i.r,M9,p),ce=fr.constrain(a-i.t-i.b,A9,y),be=Math.max(0,t-_e),fe=Math.max(0,a-ce);if(be){var ye=(s+u)/be;ye>1&&(s/=ye,u/=ye)}if(fe){var U=(c+f)/fe;U>1&&(c/=U,f/=U)}if(n.l=Math.round(s)+l.l,n.r=Math.round(u)+l.r,n.t=Math.round(f)+l.t,n.b=Math.round(c)+l.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(Qe.didMarginChange(o,n)||V$(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var te=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};Qe.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&Qe.supplyDefaults(e);var l=n?e._fullData:e.data,o=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(fr.isPlainObject(h)){var p={},y;return Object.keys(h).sort().forEach(function(w){if(["_","["].indexOf(w.charAt(0))===-1){if(typeof h[w]=="function"){d&&(p[w]="_function");return}if(t==="keepdata"){if(w.substr(w.length-3)==="src")return}else if(t==="keepstream"){if(y=h[w+"src"],typeof y=="string"&&y.indexOf(":")>0&&!fr.isPlainObject(h.stream))return}else if(t!=="keepall"&&(y=h[w+"src"],typeof y=="string"&&y.indexOf(":")>0))return;p[w]=u(h[w],d)}}),p}var m=Array.isArray(h),b=fr.isTypedArray(h);if((m||b)&&h.dtype&&h.shape){var _=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:fr.isArrayBuffer(_)?D$.encode(_):_},d)}return m?h.map(function(w){return u(w,d)}):b?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 c=o._size;f.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return s&&(f.frames=u(s)),i&&(f.config=u(e._context,!0)),a==="object"?f:JSON.stringify(f)};Qe.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,l=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Jr.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function p(){return h++,function(){d++,!a&&d===h&&o(c)}}t.runFn(p),setTimeout(p())})}function o(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Jr.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[Qe.previousPromises,s,t.prepareFn,Qe.rehover,Qe.reselect,l],f=fr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Qe.doCalcdata=function(e,r){var t=on.list(e),a=e._fullData,n=e._fullLayout,i,l,o,s,u=new Array(a.length),f=(e.calcdata||[]).slice();for(e.calcdata=u,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},o=0;o=0;s--)if(M[s].enabled){i._indexToPoints=M[s]._indexToPoints;break}l&&l.calc&&(x=l.calc(e,i))}(!Array.isArray(x)||!x[0])&&(x=[{x:d9,y:d9}]),x[0].t||(x[0].t={}),x[0].trace=i,u[_]=x}}for(g9(t,a,n),o=0;o{"use strict";Ko.xmlns="http://www.w3.org/2000/xmlns/";Ko.svg="http://www.w3.org/2000/svg";Ko.xlink="http://www.w3.org/1999/xlink";Ko.svgAttrs={xmlns:Ko.svg,"xmlns:xlink":Ko.xlink}});var Sa=B((Yye,C9)=>{"use strict";C9.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 va=B(In=>{"use strict";var Bt=kr(),cl=Pe(),J$=cl.strTranslate,Mg=Qo(),$$=Sa().LINE_SPACING,K$=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;In.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(K$),i=Bt.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=fK(e.node(),a);s&&e.style("pointer-events","all"),In.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};rK(n[2],f,function(c,h,d){i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove();var p=c&&c.select("svg");if(!p||!p.node()){o(),s();return}var y=i.append("g").classed(l+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(p.node()),h&&h.node()&&p.node().insertBefore(h.node().cloneNode(!0),p.node().firstChild);var m=d.width,b=d.height;p.attr({class:l,height:b,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var _=e.node().style.fill||"black",w=p.select("g");w.attr({fill:_,stroke:_});var x=w.node().getBoundingClientRect(),M=x.width,k=x.height;(M>m||k>b)&&(p.style("overflow","hidden"),x=p.node().getBoundingClientRect(),M=x.width,k=x.height);var A=+e.attr("x"),L=+e.attr("y"),D=u||e.node().getBoundingClientRect().height,E=-D/4;if(l[0]==="y")y.attr({transform:"rotate("+[-90,A,L]+")"+J$(-M/2,E-k/2)});else if(l[0]==="l")L=E-k/2;else if(l[0]==="a"&&l.indexOf("atitle")!==0)A=0,L=E;else{var R=e.attr("text-anchor");A=A-M*(R==="middle"?.5:R==="end"?1:0),L=L+E-k/2}p.attr({x:A,y:L}),t&&t.call(e,y),s(y)})})):o(),e};var Q$=/(<|<|<)/g,j$=/(>|>|>)/g;function eK(e){return e.replace(Q$,"\\lt ").replace(j$,"\\gt ")}var L9=[["$","$"],["\\(","\\)"]];function rK(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){cl.warn("No MathJax version:",MathJax.version);return}var n,i,l,o,s=function(){return i=cl.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:L9},displayAlign:"left"})},u=function(){i=cl.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=L9},f=function(){if(n=MathJax.Hub.config.menuSettings.renderer,n!=="SVG")return MathJax.Hub.setRenderer("SVG")},c=function(){n=MathJax.config.startup.output,n!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var _="math-output-"+cl.randstr({},64);o=Bt.select("body").append("div").attr({id:_}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(eK(e));var w=o.node();return a===2?MathJax.Hub.Typeset(w):MathJax.typeset([w])},d=function(){var _=o.select(a===2?".MathJax_SVG":".MathJax"),w=!_.empty()&&o.select("svg").node();if(!w)cl.log("There was an error in the tex syntax.",e),t();else{var x=w.getBoundingClientRect(),M;a===2?M=Bt.select("body").select("#MathJax_SVG_glyphs"):M=_.select("defs"),t(_,M,x)}o.remove()},p=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},y=function(){n!=="svg"&&(MathJax.config.startup.output=n)},m=function(){return l!==void 0&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(i)},b=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(s,f,h,d,p,m):a===3&&(u(),c(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),y(),b()}))}var P9={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},tK={sub:"0.3em",sup:"-0.6em"},aK={sub:"-0.21em",sup:"0.42em"},S9="\u200B",D9=["http:","https:","mailto:","",void 0,":"],R9=In.NEWLINES=/(\r\n?|\n)/g,kg=/(<[^<>]*>)/,qg=/<(\/?)([^ >]*)(\s+(.*))?>/i,nK=//i;In.BR_TAG_ALL=//gi;var z9=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,N9=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,F9=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,iK=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function jo(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&Wh(a)}var lK=/(^|;)\s*color:/;In.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(kg),o=[],s="",u=0,f=0;fi?o.push(c.substr(0,y-i)+n):o.push(c.substr(0,y));break}s=""}}return o.join("")};var oK={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},sK=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Wh(e){return e.replace(sK,function(r,t){var a;return t.charAt(0)==="#"?a=uK(t.charAt(1)==="x"?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):a=oK[t],a||r})}In.convertEntities=Wh;function uK(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 fK(e,r){r=r.replace(R9," ");var t=!1,a=[],n,i=-1;function l(){i++;var k=document.createElementNS(Mg.svg,"tspan");Bt.select(k).attr({class:"line",dy:i*$$+"em"}),e.appendChild(k),n=k;var A=a;if(a=[{node:k}],A.length>1)for(var L=1;L.",r);return}var A=a.pop();k!==A.type&&cl.log("Start tag <"+A.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=nK.test(r);f?l():(n=e,a=[{node:e}]);for(var c=r.split(kg),h=0;h{"use strict";var cK=kr(),Zh=Rn(),zc=zr(),Xh=Pe(),H9=xr(),vK=Oo().isValid;function hK(e,r,t){var a=r?Xh.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(Xh.isArrayOrTypedArray(n)){for(var l=0;l=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function V9(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),l=0;l{"use strict";var X9=Vy(),pK=X9.FORMAT_LINK,mK=X9.DATE_FORMAT_LINK;function yK(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?Cg:Z9)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Cg(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: "+pK+"."].join(" ")}function Z9(e,r){return Cg(e,r)+[" And for dates see: "+mK+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}J9.exports={axisHoverFormat:yK,descriptionOnlyNumbers:Cg,descriptionWithDates:Z9}});var xn=B((Wye,vT)=>{"use strict";var $9=jt(),Pu=zn(),cT=fi().dash,Sg=mt().extendFlat,K9=ot().templatedArray,Q9=di().descriptionWithDates,gK=wt().ONEDAY,Ii=wa(),xK=Ii.HOUR_PATTERN,bK=Ii.WEEKDAY_PATTERN,Lg={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},_K=Sg({},Lg,{values:Lg.values.slice().concat(["sync"])});function j9(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var eT={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},rT={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},tT={valType:"data_array",editType:"ticks"},aT={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function nT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function iT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var lT={valType:"color",dflt:Pu.defaultLine,editType:"ticks"},oT={valType:"color",dflt:Pu.lightLine,editType:"ticks"};function sT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var uT=Sg({},cT,{editType:"ticks"}),fT={valType:"boolean",editType:"ticks"};vT.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Pu.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:$9({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Ii.idRegex.x.toString(),Ii.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Ii.idRegex.x.toString(),Ii.idRegex.y.toString()],editType:"calc"},rangebreaks:K9("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[bK,xK,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:gK},editType:"calc"}),tickmode:_K,nticks:j9(),tick0:eT,dtick:rT,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:tT,ticktext:{valType:"data_array",editType:"ticks"},ticks:aT,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:nT(),tickwidth:iT(),tickcolor:lT,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:Sg({},cT,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:$9({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:Q9("tick label")},tickformatstops:K9("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:Q9("hover text")},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Pu.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:fT,gridcolor:oT,gridwidth:sT(),griddash:uT,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Pu.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Pu.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Ii.idRegex.x.toString(),Ii.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Ii.idRegex.x.toString(),Ii.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Lg,nticks:j9("minor"),tick0:eT,dtick:rT,tickvals:tT,ticks:aT,ticklen:nT("minor"),tickwidth:iT("minor"),tickcolor:lT,gridcolor:oT,gridwidth:sT("minor"),griddash:uT,showgrid:fT,editType:"ticks"},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 Jh=B((Xye,pT)=>{"use strict";var gt=xn(),hT=jt(),dT=mt().extendFlat,wK=ui().overrideAll;pT.exports=wK({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:gt.linecolor,outlinewidth:gt.linewidth,bordercolor:gt.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:gt.minor.tickmode,nticks:gt.nticks,tick0:gt.tick0,dtick:gt.dtick,tickvals:gt.tickvals,ticktext:gt.ticktext,ticks:dT({},gt.ticks,{dflt:""}),ticklabeloverflow:dT({},gt.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:gt.ticklen,tickwidth:gt.tickwidth,tickcolor:gt.tickcolor,ticklabelstep:gt.ticklabelstep,showticklabels:gt.showticklabels,labelalias:gt.labelalias,tickfont:hT({}),tickangle:gt.tickangle,tickformat:gt.tickformat,tickformatstops:gt.tickformatstops,tickprefix:gt.tickprefix,showtickprefix:gt.showtickprefix,ticksuffix:gt.ticksuffix,showticksuffix:gt.showticksuffix,separatethousands:gt.separatethousands,exponentformat:gt.exponentformat,minexponent:gt.minexponent,showexponent:gt.showexponent,title:{text:{valType:"string"},font:hT({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Nc=B((Jye,yT)=>{"use strict";var TK=Jh(),MK=mu().counter,AK=jy(),mT=Oo().scales,Zye=AK(mT);function $h(e){return"`"+e+"`"}yT.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",l="showScaleDflt"in t?t.showScaleDflt:a==="z",o=typeof t.colorscaleDflt=="string"?mT[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+$h(u+f));var h=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",y=a+"max",m=a+"mid",b=$h(u+d),_=$h(u+p),w=$h(u+y),x=_+" and "+w,M={};M[p]=M[y]=void 0;var k={};k[d]=!1;var A={};return f==="color"&&(A.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(A.color.anim=!0)),A[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},A[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},A[y]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},A[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},A.colorscale={valType:"colorscale",editType:"calc",dflt:o,impliedEdits:{autocolorscale:!1}},A.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},A.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(A.showscale={valType:"boolean",dflt:l,editType:"calc"},A.colorbar=TK),t.noColorAxis||(A.coloraxis={valType:"subplotid",regex:MK("coloraxis"),dflt:null,editType:"calc"}),A}});var Eg=B(($ye,gT)=>{"use strict";var kK=mt().extendFlat,qK=Nc(),Dg=Oo().scales;gT.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Dg.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Dg.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Dg.RdBu,editType:"calc"}},coloraxis:kK({_isSubplotObj:!0,editType:"calc"},qK("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Pg=B((Kye,xT)=>{"use strict";var CK=Pe();xT.exports=function(r){return CK.isPlainObject(r.colorbar)}});var Ng=B(zg=>{"use strict";var Rg=zr(),bT=Pe(),_T=wt(),LK=_T.ONEDAY,SK=_T.ONEWEEK;zg.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?LK:1;if(!e)return i;if(Rg(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=Rg(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};zg.tick0=function(e,r,t,a){if(r==="date")return bT.cleanDate(e,bT.dateTick0(t,a%SK===0?1:0));if(!(a==="D1"||a==="D2"))return Rg(e)?Number(e):0}});var Kh=B((jye,TT)=>{"use strict";var wT=Ng(),DK=Pe().isArrayOrTypedArray,EK=yn().isTypedArraySpec,PK=yn().decodeTypedArraySpec;TT.exports=function(r,t,a,n,i){i||(i={});var l=i.isMinor,o=l?r.minor||{}:r,s=l?t.minor:t,u=l?"minor.":"";function f(_){var w=o[_];return EK(w)&&(w=PK(w)),w!==void 0?w:(s._template||{})[_]}var c=f("tick0"),h=f("dtick"),d=f("tickvals"),p=DK(d)?"array":h?"linear":"auto",y=a(u+"tickmode",p);if(y==="auto"||y==="sync")a(u+"nticks");else if(y==="linear"){var m=s.dtick=wT.dtick(h,n);s.tick0=wT.tick0(c,n,t.calendar,m)}else if(n!=="multicategory"){var b=a(u+"tickvals");b===void 0?s.tickmode="auto":l||a("ticktext")}}});var Qh=B((ege,AT)=>{"use strict";var Fg=Pe(),MT=xn();AT.exports=function(r,t,a,n){var i=n.isMinor,l=i?r.minor||{}:r,o=i?t.minor:t,s=i?MT.minor:MT,u=i?"minor.":"",f=Fg.coerce2(l,o,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=Fg.coerce2(l,o,s,"tickwidth",i?t.tickwidth||1:void 0),h=Fg.coerce2(l,o,s,"tickcolor",(i?t.tickcolor:void 0)||o.color),d=a(u+"ticks",!i&&n.outerTicks||f||c||h?"outside":"");d||(delete o.ticklen,delete o.tickwidth,delete o.tickcolor)}});var Ig=B((rge,kT)=>{"use strict";kT.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var On=B((tge,qT)=>{"use strict";var jh=Pe(),RK=ot();qT.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",l=t[n],o=jh.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=RK.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var Hg=Pe(),zK=xr().contrast,CT=xn(),NK=Ig(),FK=On();LT.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");Hg.isPlainObject(l)||delete t.labelalias;var o=NK(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",h=c.indexOf("inside")!==-1?zK(i.bgColor):f&&f!==CT.color.dflt?f:u.color;if(Hg.coerceFont(a,"tickfont",u,{overrideDflt:{color:h}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");FK(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:IK}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",o),a("exponentformat"),a("minexponent"),a("separatethousands"))}}};function IK(e,r){function t(n,i){return Hg.coerce(e,r,CT.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var rd=B((nge,ST)=>{"use strict";var HK=Ig();ST.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=HK(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var Og=B((ige,DT)=>{"use strict";var Vl=Pe(),OK=ot(),BK=Kh(),YK=Qh(),GK=ed(),UK=rd(),VK=Jh();DT.exports=function(r,t,a){var n=OK.newContainer(t,"colorbar"),i=r.colorbar||{};function l(R,N){return Vl.coerce(i,n,VK,R,N)}var o=a.margin||{t:0,b:0,l:0,r:0},s=a.width-o.l-o.r,u=a.height-o.t-o.b,f=l("orientation"),c=f==="v",h=l("thicknessmode");l("thickness",h==="fraction"?30/(c?s:u):30);var d=l("lenmode");l("len",d==="fraction"?1:c?u:s);var p=l("yref"),y=l("xref"),m=p==="paper",b=y==="paper",_,w,x,M="left";c?(x="middle",M=b?"left":"right",_=b?1.02:1,w=.5):(x=m?"bottom":"top",M="center",_=.5,w=m?1.02:1),Vl.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:_}},"x"),Vl.coerce(i,n,{y:{valType:"number",min:m?-2:0,max:m?3:1,dflt:w}},"y"),l("xanchor",M),l("xpad"),l("yanchor",x),l("ypad"),Vl.noneOrAll(i,n,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var k=Vl.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),BK(i,n,l,"linear");var A=a.font,L={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:A};k.indexOf("inside")!==-1&&(L.bgColor="black"),UK(i,n,l,"linear",L),GK(i,n,l,"linear",L),YK(i,n,l,"linear",L),l("title.text",a._dfltTitle.colorbar);var D=n.showticklabels?n.tickfont:A,E=Vl.extendFlat({},A,{family:D.family,size:Vl.bigFont(D.size)});Vl.coerceFont(l,"title.font",E),l("title.side",c?"top":"right")}});var Ru=B((lge,RT)=>{"use strict";var ET=zr(),Yg=Pe(),WK=Pg(),XK=Og(),PT=Oo().isValid,ZK=yr().traceIs;function Bg(e,r){var t=r.slice(0,r.length-1);return r?Yg.nestedProperty(e,t).get()||{}:e}RT.exports=function e(r,t,a,n,i){var l=i.prefix,o=i.cLetter,s="_module"in t,u=Bg(r,l),f=Bg(t,l),c=Bg(t._template||{},l)||{},h=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},p=n(l+"coloraxis");if(p){var y=ZK(t,"contour")&&Yg.nestedProperty(t,"contours.coloring").get()||"heatmap",m=d[p];m?(m[2].push(h),m[0]!==y&&(m[0]=!1,Yg.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[y,t,[h]];return}}var b=u[o+"min"],_=u[o+"max"],w=ET(b)&&ET(_)&&b<_,x=n(l+o+"auto",!w);x?n(l+o+"mid"):(n(l+o+"min"),n(l+o+"max"));var M=u.colorscale,k=c.colorscale,A;if(M!==void 0&&(A=!PT(M)),k!==void 0&&(A=!PT(k)),n(l+"autocolorscale",A),n(l+"colorscale"),n(l+"reversescale"),l!=="marker.line."){var L;l&&s&&(L=WK(u));var D=n(l+"showscale",L);D&&(l&&c&&(f._template=c),XK(u,f,a))}}});var IT=B((oge,FT)=>{"use strict";var zT=Pe(),JK=ot(),NT=Eg(),$K=Ru();FT.exports=function(r,t){function a(c,h){return zT.coerce(r,t,NT,c,h)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,l;function o(c,h){return zT.coerce(i,l,NT.coloraxis,c,h)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},l=JK.newContainer(t,s,"coloraxis"),l._name=s,$K(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var KK=Pe(),QK=Hn().hasColorscale,jK=Hn().extractOpts;HT.exports=function(r,t){function a(f,c){var h=f["_"+c];h!==void 0&&(f[c]=h)}function n(f,c){var h=c.container?KK.nestedProperty(f,c.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=jK(h),p=d.auto;(p||d.min===void 0)&&a(h,c.min),(p||d.max===void 0)&&a(h,c.max),d.autocolorscale&&a(h,"colorscale")}}for(var i=0;i{"use strict";var BT=zr(),Gg=Pe(),eQ=Hn().extractOpts;YT.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,l=a.containerStr,o=l?Gg.nestedProperty(t,l).get():t,s=eQ(o),u=s.auto!==!1,f=s.min,c=s.max,h=s.mid,d=function(){return Gg.aggNums(Math.min,null,i)},p=function(){return Gg.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(o._colorAx&&BT(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(o._colorAx&&BT(c)?c=Math.max(c,p()):c=p()),u&&h!==void 0&&(c-h>h-f?f=h-(c-h):c-h=0?y=n.colorscale.sequential:y=n.colorscale.sequentialminus,s._sync("colorscale",y)}}});var Ug=B((fge,GT)=>{"use strict";var ad=Oo(),zu=Hn();GT.exports={moduleType:"component",name:"colorscale",attributes:Nc(),layoutAttributes:Eg(),supplyLayoutDefaults:IT(),handleDefaults:Ru(),crossTraceDefaults:OT(),calc:td(),scales:ad.scales,defaultScale:ad.defaultScale,getScale:ad.get,isValidScale:ad.isValid,hasColorscale:zu.hasColorscale,extractOpts:zu.extractOpts,extractScale:zu.extractScale,flipScale:zu.flipScale,makeColorScaleFunc:zu.makeColorScaleFunc,makeColorScaleFuncFromTrace:zu.makeColorScaleFuncFromTrace}});var bn=B((cge,VT)=>{"use strict";var UT=Pe(),rQ=yn().isTypedArraySpec;VT.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 UT.isPlainObject(r)&&(UT.isArrayOrTypedArray(r.size)||rQ(r.size))}}});var XT=B((vge,WT)=>{"use strict";var tQ=zr();WT.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,l=a.sizemode==="area"?function(o){return Math.sqrt(o/n)}:function(o){return o/n};return function(o){var s=l(o/t);return tQ(s)&&s>0?Math.max(s,i):0}}});var Hi=B(Da=>{"use strict";var ZT=Pe();Da.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Da.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{KT.exports=oQ;var Vg={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},lQ=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function oQ(e){var r=[];return e.replace(lQ,function(t,a,n){var i=a.toLowerCase();for(n=uQ(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==Vg[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var fQ=Wg(),Je=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},qr="M0,0Z",QT=Math.sqrt(2),Wl=Math.sqrt(3),Xg=Math.PI,Zg=Math.cos,Jg=Math.sin;aM.exports={circle:{n:0,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Lr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2);return Lr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.3,2);return Lr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*.4,2),n=Je(e*1.2,2);return Lr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*.8/QT,2),n="l"+a+","+a,i="l"+a+",-"+a,l="l-"+a+",-"+a,o="l-"+a+","+a;return Lr(r,t,"M0,"+a+n+i+l+i+l+o+l+o+n+o+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*2/Wl,2),n=Je(e/2,2),i=Je(e,2);return Lr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*2/Wl,2),n=Je(e/2,2),i=Je(e,2);return Lr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*2/Wl,2),n=Je(e/2,2),i=Je(e,2);return Lr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*2/Wl,2),n=Je(e/2,2),i=Je(e,2);return Lr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Lr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Lr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Lr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*.6,2),n=Je(e*1.2,2);return Lr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*.951,2),n=Je(e*.588,2),i=Je(-e,2),l=Je(e*-.309,2),o=Je(e*.809,2);return Lr(r,t,"M"+a+","+l+"L"+n+","+o+"H-"+n+"L-"+a+","+l+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2),n=Je(e/2,2),i=Je(e*Wl/2,2);return Lr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2),n=Je(e/2,2),i=Je(e*Wl/2,2);return Lr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*.924,2),n=Je(e*.383,2);return Lr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(Cr(r))return qr;var a=e*1.4,n=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),c=Je(a*.809,2),h=Je(a*.382,2);return Lr(r,t,"M"+n+","+u+"H"+i+"L"+l+","+f+"L"+o+","+c+"L0,"+h+"L-"+o+","+c+"L-"+l+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*.66,2),n=Je(e*.38,2),i=Je(e*.76,2);return Lr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*Wl*.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 Lr(r,t,"M-"+a+","+n+o+a+","+n+o+"0,-"+i+o+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*Wl*.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 Lr(r,t,"M"+a+",-"+n+o+"-"+a+",-"+n+o+"0,"+i+o+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.1,2),n=Je(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Lr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.4,2),n=Je(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Lr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*.7,2),n=Je(e*1.4,2);return Lr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.4,2),n=Je(e*.7,2);return Lr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2);return Lr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2);return Lr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2);return Lr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2),n=Je(e/QT,2);return Lr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2);return Lr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2);return Lr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.3,2);return Lr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.3,2),n=Je(e*.65,2);return Lr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.4,2);return Lr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2);return Lr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.2,2),n=Je(e*.85,2);return Lr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e/2,2),n=Je(e,2);return Lr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Lr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Lr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Lr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.2,2),n=Je(e*1.6,2),i=Je(e*.8,2);return Lr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.4,2);return Lr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*1.4,2);return Lr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2);return Lr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2);return Lr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2),n=Je(e*2,2);return Lr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2),n=Je(e*2,2);return Lr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*2,2),n=Je(e,2);return Lr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*2,2),n=Je(e,2);return Lr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2),n=Je(e*2,2);return Lr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e,2),n=Je(e*2,2);return Lr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*2,2),n=Je(e,2);return Lr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Cr(r))return qr;var a=Je(e*2,2),n=Je(e,2);return Lr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Cr(r))return qr;var a=Xg/2.5,n=2*e*Zg(a),i=2*e*Jg(a);return Lr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Cr(r))return qr;var a=Xg/4,n=2*e*Zg(a),i=2*e*Jg(a);return Lr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Cr(e){return e===null}var jT,eM,rM,tM;function Lr(e,r,t){if((!e||e%360===0)&&!r)return t;if(rM===e&&tM===r&&jT===t)return eM;rM=e,tM=r,jT=t;function a(m,b){var _=Zg(m),w=Jg(m),x=b[0],M=b[1]+(r||0);return[x*_-M*w,x*w+M*_]}for(var n=e/180*Xg,i=0,l=0,o=fQ(t),s="",u=0;u{"use strict";var ra=kr(),it=Pe(),cQ=it.numberFormat,as=zr(),r2=Rn(),id=yr(),Ta=xr(),vQ=Ug(),Ic=it.strTranslate,ld=va(),hQ=Qo(),dQ=Sa(),pQ=dQ.LINE_SPACING,dM=pu().DESELECTDIM,mQ=bn(),yQ=XT(),gQ=Hi().appendArrayPointValue,er=MM.exports={};er.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,l=r.size,o=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;o&&e.style("font-family",o),l+1&&e.style("font-size",l+"px"),i&&e.call(Ta.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",$g(bQ(f))),s&&e.style("text-shadow",s==="auto"?ld.makeTextShadow(Ta.contrast(i)):$g(s)),u&&e.style("text-decoration-line",$g(_Q(u)))};function $g(e){return e==="none"?void 0:e}var xQ={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function bQ(e){return xQ[e]}function _Q(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}er.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};er.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};er.setRect=function(e,r,t,a,n){e.call(er.setPosition,r,t).call(er.setSize,a,n)};er.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(as(n)&&as(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",Ic(n,i));else return!1;return!0};er.translatePoints=function(e,r,t){e.each(function(a){var n=ra.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=id.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){er.hideOutsideRangePoint(u,ra.select(this),t,a,l,o)})})}};er.crispRound=function(e,r,t){return!r||!as(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};er.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},l=t||i.width||0,o=n||i.dash||"";Ta.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||"";ra.select(this).call(Ta.stroke,t||i.color).call(er.dashLine,o,l)})};er.dashLine=function(e,r,t){t=+t||0,r=er.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};er.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function pM(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,l=er.getPatternAttr,o=n&&(l(n.shape,0,"")||l(n.path,0,""));if(o){var s=l(n.bgcolor,0,null),u=l(n.fgcolor,0,null),f=n.fgopacity,c=l(n.size,0,8),h=l(n.solidity,0,.3),d=r.uid;er.pattern(e,"point",t,d,o,c,h,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var p=i.type,y="scatterfill-"+r.uid;if(a&&(y="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var m,b;p==="horizontal"?(m={x:i.start,y:0},b={x:i.stop,y:0}):p==="vertical"&&(m={x:0,y:i.start},b={x:0,y:i.stop}),m.x=r._xA.c2p(m.x===void 0?r._extremes.x.min[0].val:m.x,!0),m.y=r._yA.c2p(m.y===void 0?r._extremes.y.min[0].val:m.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(gM,t,y,"linear",i.colorscale,"fill",m,b,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(er.gradient,t,y,p,i.colorscale,"fill")}else r.fillcolor&&e.call(Ta.fill,r.fillcolor)}er.singleFillStyle=function(e,r){var t=ra.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};pM(e,n,r,!1)};er.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=ra.select(this);a[0].trace&&pM(n,a[0].trace,r,t)})};var iM=nM();er.symbolNames=[];er.symbolFuncs=[];er.symbolBackOffs=[];er.symbolNeedLines={};er.symbolNoDot={};er.symbolNoFill={};er.symbolList=[];Object.keys(iM).forEach(function(e){var r=iM[e],t=r.n;er.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),er.symbolNames[t]=e,er.symbolFuncs[t]=r.f,er.symbolBackOffs[t]=r.backoff||0,r.needLine&&(er.symbolNeedLines[t]=!0),r.noDot?er.symbolNoDot[t]=!0:er.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(er.symbolNoFill[t]=!0)});var wQ=er.symbolNames.length,TQ="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";er.symbolNumber=function(e){if(as(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=er.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=wQ||e>=400?0:Math.floor(Math.max(e,0))};function mM(e,r,t,a){var n=e%100;return er.symbolFuncs[n](r,t,a)+(e>=200?TQ:"")}var lM=cQ("~f"),yM={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};er.gradient=function(e,r,t,a,n,i){var l=yM[a];return gM(e,r,t,l.type,n,i,l.start,l.stop,!1,l.reversed)};function gM(e,r,t,a,n,i,l,o,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:o.x,y2:o.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?l.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||l.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=er.symbolNumber(e.mx||l.symbol)||0;e.om=u%200>=100;var f=n2(e,t),c=a2(e,t);r.attr("d",mM(u,s,f,c))}var h=!1,d,p,y;if(e.so)y=o.outlierwidth,p=o.outliercolor,d=l.outliercolor;else{var m=(o||{}).width;y=(e.mlw+1||m+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):it.isArrayOrTypedArray(o.color)?p=Ta.defaultLine:p=o.color,it.isArrayOrTypedArray(l.color)&&(d=Ta.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(Ta.stroke,d).style({"stroke-width":(y||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:y)+"px");var b=l.gradient,_=e.mgt;_?h=!0:_=b&&b.type,it.isArrayOrTypedArray(_)&&(_=_[0],yM[_]||(_=0));var w=l.pattern,x=er.getPatternAttr,M=w&&(x(w.shape,e.i,"")||x(w.path,e.i,""));if(_&&_!=="none"){var k=e.mgc;k?h=!0:k=b.color;var A=t.uid;h&&(A+="-"+e.i),er.gradient(r,n,A,_,[[0,k],[1,d]],"fill")}else if(M){var L=!1,D=w.fgcolor;!D&&i&&i.color&&(D=i.color,L=!0);var E=x(D,e.i,i&&i.color||null),R=x(w.bgcolor,e.i,null),N=w.fgopacity,I=x(w.size,e.i,8),H=x(w.solidity,e.i,.3);L=L||e.mcc||it.isArrayOrTypedArray(w.shape)||it.isArrayOrTypedArray(w.path)||it.isArrayOrTypedArray(w.bgcolor)||it.isArrayOrTypedArray(w.fgcolor)||it.isArrayOrTypedArray(w.size)||it.isArrayOrTypedArray(w.solidity);var V=t.uid;L&&(V+="-"+e.i),er.pattern(r,"point",n,V,M,I,H,e.mcc,w.fillmode,R,E,N)}else it.isArrayOrTypedArray(d)?Ta.fill(r,d[e.i]):Ta.fill(r,d);y&&Ta.stroke(r,p)}};er.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=er.tryColorscale(t,""),r.lineScale=er.tryColorscale(t,"line"),id.traceIs(e,"symbols")&&(r.ms2mrc=mQ.isBubble(e)?yQ(e):function(){return(t.size||6)/2}),e.selectedpoints&&it.extendFlat(r,er.makeSelectedPointStyleFns(e)),r};er.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},l=a.marker||{},o=n.opacity,s=i.opacity,u=l.opacity,f=s!==void 0,c=u!==void 0;(it.isArrayOrTypedArray(o)||f||c)&&(r.selectedOpacityFn=function(x){var M=x.mo===void 0?n.opacity:x.mo;return x.selected?f?s:M:c?u:dM*M});var h=n.color,d=i.color,p=l.color;(d||p)&&(r.selectedColorFn=function(x){var M=x.mcc||h;return x.selected?d||M:p||M});var y=n.size,m=i.size,b=l.size,_=m!==void 0,w=b!==void 0;return id.traceIs(e,"symbols")&&(_||w)&&(r.selectedSizeFn=function(x){var M=x.mrc||y/2;return x.selected?_?m/2:M:w?b/2:M}),r};er.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},l=a.textfont||{},o=n.color,s=i.color,u=l.color;return r.selectedTextColorFn=function(f){var c=f.tc||o;return f.selected?s||c:u||(s?c:Ta.addOpacity(c,dM))},r};er.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=er.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,l){i.style("opacity",t.selectedOpacityFn(l))}),t.selectedColorFn&&n.push(function(i,l){Ta.fill(i,t.selectedColorFn(l))}),t.selectedSizeFn&&n.push(function(i,l){var o=l.mx||a.symbol||0,s=t.selectedSizeFn(l);i.attr("d",mM(er.symbolNumber(o),s,n2(l,r),a2(l,r))),l.mrc2=s}),n.length&&e.each(function(i){for(var l=ra.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=ra.select(this),u=i?it.extractOption(o,r,"txt","texttemplate"):it.extractOption(o,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(o,r,l):{},h={};gQ(h,r,o.i);var d=r._meta||{};u=it.texttemplateString(u,c,l._d3locale,h,o,d)}var p=o.tp||r.textposition,y=bM(o,r),m=a?a(o):o.tc||r.textfont.color;s.call(er.font,{family:o.tf||r.textfont.family,weight:o.tw||r.textfont.weight,style:o.ty||r.textfont.style,variant:o.tv||r.textfont.variant,textcase:o.tC||r.textfont.textcase,lineposition:o.tE||r.textfont.lineposition,shadow:o.tS||r.textfont.shadow,size:y,color:m}).text(u).call(ld.convertToTspans,t).call(xM,p,y,o.mrc)})}};er.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=er.makeSelectedTextStyleFns(r);e.each(function(a){var n=ra.select(this),i=t.selectedTextColorFn(a),l=a.tp||r.textposition,o=bM(a,r);Ta.fill(n,i);var s=id.traceIs(r,"bar-like");xM(n,l,o,a.mrc2||a.mrc,s)})}};var oM=.5;er.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||x>=f&&x<=s)&&(M<=c&&M>=u||M>=c&&M<=u)&&(e=[x,M])}return e}er.applyBackoff=TM;er.makeTester=function(){var e=it.ensureSingleById(ra.select("body"),"svg","js-plotly-tester",function(t){t.attr(hQ.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=it.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 Qg=0,kQ=1e4;er.bBox=function(e,r,t){t||(t=sM(e));var a;if(t){if(a=er.savedBBoxes[t],a)return it.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=sM(n),t){var i=+n.getAttribute("x")||0,l=+n.getAttribute("y")||0,o=n.getAttribute("transform");if(!o){var s=er.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),l&&(s.top+=l,s.bottom+=l),s}if(t+="~"+i+"~"+l+"~"+o,a=er.savedBBoxes[t],a)return it.extendFlat({},a)}}var u,f;r?u=e:(f=er.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),ra.select(u).attr("transform",null).call(ld.positionText,0,0);var c=u.getBoundingClientRect(),h=er.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:c.height,width:c.width,left:c.left-h.left,top:c.top-h.top,right:c.right-h.left,bottom:c.bottom-h.top};return Qg>=kQ&&(er.savedBBoxes={},Qg=0),t&&(er.savedBBoxes[t]=d),Qg++,it.extendFlat({},d)};function sM(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}er.setClipUrl=function(e,r,t){e.attr("clip-path",t2(r,t))};function t2(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+=Ic(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 qQ=/\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(qQ,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var CQ=/translate\([^)]*\)\s*$/;er.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=ra.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(CQ);r===1&&t===1?a=[]:a=[Ic(l,o),"scale("+r+","+t+")",Ic(-l,-o)],s&&a.push(s),n.attr("transform",a.join(""))}})};function a2(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=a2;var Fc=Math.atan2,es=Math.cos,Fu=Math.sin;function uM(e,r){var t=r[0],a=r[1];return[t*es(e)-a*Fu(e),t*Fu(e)+a*es(e)]}var fM,cM,vM,hM,jg,e2;function n2(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||it.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var l=r._geo.project(e.lonlat);a=l[0],n=l[1]}else{var o=r._xA,s=r._yA;if(o&&s)a=o.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),h=r._geo.project([u+1e-5,f]),d=Fc(h[1]-n,h[0]-a),p=Fc(c[1]-n,c[0]-a),y;if(i==="north")y=t/180*Math.PI;else if(i==="previous"){var m=u/180*Math.PI,b=f/180*Math.PI,_=fM/180*Math.PI,w=cM/180*Math.PI,x=_-m,M=es(w)*Fu(x),k=Fu(w)*es(b)-es(w)*Fu(b)*es(x);y=-Fc(M,k)-Math.PI,fM=u,cM=f}var A=uM(d,[es(y),0]),L=uM(p,[Fu(y),0]);t=Fc(A[1]+L[1],A[0]+L[0])/Math.PI*180,i==="previous"&&!(e2===r.uid&&e.i===jg+1)&&(t=null)}if(i==="previous"&&!r._geo)if(e2===r.uid&&e.i===jg+1&&as(a)&&as(n)){var D=a-vM,E=n-hM,R=r.line&&r.line.shape||"",N=R.slice(R.length-1);N==="h"&&(E=0),N==="v"&&(D=0),t+=Fc(E,D)/Math.PI*180+90}else t=null}return vM=a,hM=n,jg=e.i,e2=r.uid,t}er.getMarkerAngle=n2});var Hc=B((yge,CM)=>{"use strict";var Iu=kr(),LQ=zr(),SQ=St(),i2=yr(),ns=Pe(),AM=ns.strTranslate,od=Br(),sd=xr(),Hu=va(),kM=pu(),DQ=Sa().OPPOSITE_SIDE,qM=/ [XY][0-9]* /,l2=1.6,o2=1.6;function EQ(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,l=t.placeholder,o=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,h=1,d=n.title,p=(d&&d.text?d.text:"").trim(),y=!1,m=d&&d.font?d.font:{},b=m.family,_=m.size,w=m.color,x=m.weight,M=m.style,k=m.variant,A=m.textcase,L=m.lineposition,D=m.shadow,E=t.subtitlePropName,R=!!E,N=t.subtitlePlaceholder,I=(n.title||{}).subtitle||{text:"",font:{}},H=I.text.trim(),V=!1,W=1,Y=I.font,O=Y.family,G=Y.size,J=Y.color,$=Y.weight,re=Y.style,le=Y.variant,se=Y.textcase,ve=Y.lineposition,Q=Y.shadow,_e;i==="title.text"?_e="titleText":i.indexOf("axis")!==-1?_e="axisTitleText":i.indexOf(!0)&&(_e="colorbarTitleText");var ce=e._context.edits[_e];function be(Ye,Xe){return Ye===void 0||Xe===void 0?!1:Ye.replace(qM," % ")===Xe.replace(qM," % ")}p===""?h=0:be(p,l)&&(ce||(p=""),h=.2,y=!0),R&&(H===""?W=0:be(H,N)&&(ce||(H=""),W=.2,V=!0)),t._meta?p=ns.templateString(p,t._meta):a._meta&&(p=ns.templateString(p,a._meta));var fe=p||H||ce,ye;c||(c=ns.ensureSingle(a._infolayer,"g","g-"+r),ye=a._hColorbarMoveTitle);var U=c.selectAll("text."+r).data(fe?[0]:[]);U.enter().append("text"),U.text(p).attr("class",r),U.exit().remove();var te=null,X=r+"-subtitle",ge=H||ce;if(R&&ge&&(te=c.selectAll("text."+X).data(ge?[0]:[]),te.enter().append("text"),te.text(H).attr("class",X),te.exit().remove()),!fe)return c;function Me(Ye,Xe){ns.syncOrAsync([xe,ze],{title:Ye,subtitle:Xe})}function xe(Ye){var Xe=Ye.title,Re=Ye.subtitle,Be;!f&&ye&&(f={}),f?(Be="",f.rotate&&(Be+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||ye)&&(Be+=AM(0,(f.offset||0)-(ye||0)))):Be=null,Xe.attr("transform",Be);function Oe(De){if(De){var Le=Iu.select(De.node().parentNode).select("."+X);if(!Le.empty()){var Ge=De.node().getBBox();if(Ge.height){var Ze=Ge.y+Ge.height+l2*G;Le.attr("y",Ze)}}}}if(Xe.style("opacity",h*sd.opacity(w)).call(od.font,{color:sd.rgb(w),size:Iu.round(_,2),family:b,weight:x,style:M,variant:k,textcase:A,shadow:D,lineposition:L}).attr(u).call(Hu.convertToTspans,e,Oe),Re){var ie=c.select("."+r+"-math-group"),ke=Xe.node().getBBox(),Ce=ie.node()?ie.node().getBBox():void 0,sr=Ce?Ce.y+Ce.height+l2*G:ke.y+ke.height+o2*G,tr=ns.extendFlat({},u,{y:sr});Re.attr("transform",Be),Re.style("opacity",W*sd.opacity(J)).call(od.font,{color:sd.rgb(J),size:Iu.round(G,2),family:O,weight:$,style:re,variant:le,textcase:se,shadow:Q,lineposition:ve}).attr(tr).call(Hu.convertToTspans,e)}return SQ.previousPromises(e)}function ze(Ye){var Xe=Ye.title,Re=Iu.select(Xe.node().parentNode);if(s&&s.selection&&s.side&&p){Re.attr("transform",null);var Be=DQ[s.side],Oe=s.side==="left"||s.side==="top"?-1:1,ie=LQ(s.pad)?s.pad:2,ke=od.bBox(Re.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 Ge={left:Ce.l,top:Ce.t,right:a.width-Ce.r,bottom:a.height-Ce.b},Ze=s.maxShift||Oe*(Ge[s.side]-ke[s.side]),Ue=0;if(Ze<0)Ue=Ze;else{var He=s.offsetLeft||0,$e=s.offsetTop||0;ke.left-=He,ke.right-=He,ke.top-=$e,ke.bottom-=$e,s.selection.each(function(){var lr=od.bBox(this);ns.bBoxIntersect(ke,lr,ie)&&(Ue=Math.max(Ue,Oe*(lr[s.side]-ke[Be])+ie))}),Ue=Math.min(Ze,Ue),n._titleScoot=Math.abs(Ue)}if(Ue>0||Ze<0){var cr={left:[-Ue,0],right:[Ue,0],top:[0,-Ue],bottom:[0,Ue]}[s.side];Re.attr("transform",AM(cr[0],cr[1]))}}}U.call(Me,te);function Ie(Ye,Xe){Ye.text(Xe).on("mouseover.opacity",function(){Iu.select(this).transition().duration(kM.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Iu.select(this).transition().duration(kM.HIDE_PLACEHOLDER).style("opacity",0)})}if(ce&&(p?U.on(".opacity",null):(Ie(U,l),y=!0),U.call(Hu.makeEditable,{gd:e}).on("edit",function(Ye){o!==void 0?i2.call("_guiRestyle",e,i,Ye,o):i2.call("_guiRelayout",e,i,Ye)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Me)}).on("input",function(Ye){this.text(Ye||" ").call(Hu.positionText,u.x,u.y)}),R)){if(R&&!p){var Ee=U.node().getBBox(),Ne=Ee.y+Ee.height+o2*G;te.attr("y",Ne)}H?te.on(".opacity",null):(Ie(te,N),V=!0),te.call(Hu.makeEditable,{gd:e}).on("edit",function(Ye){i2.call("_guiRelayout",e,"title.subtitle.text",Ye)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Me)}).on("input",function(Ye){this.text(Ye||" ").call(Hu.positionText,te.attr("x"),te.attr("y"))})}return U.classed("js-placeholder",y),te&&te.classed("js-placeholder",V),c}CM.exports={draw:EQ,SUBTITLE_PADDING_EM:o2,SUBTITLE_PADDING_MATHJAX_EM:l2}});var md=B((gge,PM)=>{"use strict";var PQ=kr(),RQ=cu().utcFormat,st=Pe(),zQ=st.numberFormat,Oi=zr(),Xl=st.cleanNumber,NQ=st.ms2DateTime,LM=st.dateTime2ms,Bi=st.ensureNumber,SM=st.isArrayOrTypedArray,Zl=wt(),ud=Zl.FP_SAFE,pi=Zl.BADNUM,FQ=Zl.LOG_CLIP,IQ=Zl.ONEWEEK,fd=Zl.ONEDAY,cd=Zl.ONEHOUR,DM=Zl.ONEMIN,EM=Zl.ONESEC,vd=Jt(),pd=wa(),hd=pd.HOUR_PATTERN,dd=pd.WEEKDAY_PATTERN;function Oc(e){return Math.pow(10,e)}function s2(e){return e!=null}PM.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(x,M){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&M&&r.range&&r.range.length===2){var k=r.range[0],A=r.range[1];return .5*(k+A-2*FQ*Math.abs(k-A))}else return pi}function l(x,M,k,A){if((A||{}).msUTC&&Oi(x))return+x;var L=LM(x,k||r.calendar);if(L===pi)if(Oi(x)){x=+x;var D=Math.floor(st.mod(x+.05,1)*10),E=Math.round(x-D/10);L=LM(new Date(E))+D/10}else return pi;return L}function o(x,M,k){return NQ(x,M,k||r.calendar)}function s(x){return r._categories[Math.round(x)]}function u(x){if(s2(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var M=r._categories.length-1;return r._categoriesMap[x]=M,M}return pi}function f(x,M){for(var k=new Array(M),A=0;Ar.range[1]&&(k=!k);for(var A=k?-1:1,L=A*x,D=0,E=0;EN)D=E+1;else{D=L<(R+N)/2?E:E+1;break}}var I=r._B[D]||0;return isFinite(I)?p(x,r._m2,I):0},b=function(x){var M=r._rangebreaks.length;if(!M)return y(x,r._m,r._b);for(var k=0,A=0;Ar._rangebreaks[A].pmax&&(k=A+1);return y(x,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:Bi,r.l2c=r.type==="log"?Oc:Bi,r.l2p=m,r.p2l=b,r.c2p=r.type==="log"?function(x,M){return m(i(x,M))}:m,r.p2c=r.type==="log"?function(x){return Oc(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Xl,r.c2d=r.c2r=r.l2d=r.l2r=Bi,r.d2p=r.r2p=function(x){return r.l2p(Xl(x))},r.p2d=r.p2r=b,r.cleanPos=Bi):r.type==="log"?(r.d2r=r.d2l=function(x,M){return i(Xl(x),M)},r.r2d=r.r2c=function(x){return Oc(Xl(x))},r.d2c=r.r2l=Xl,r.c2d=r.l2r=Bi,r.c2r=i,r.l2d=Oc,r.d2p=function(x,M){return r.l2p(r.d2r(x,M))},r.p2d=function(x){return Oc(b(x))},r.r2p=function(x){return r.l2p(Xl(x))},r.p2r=b,r.cleanPos=Bi):r.type==="date"?(r.d2r=r.r2d=st.identity,r.d2c=r.r2c=r.d2l=r.r2l=l,r.c2d=r.c2r=r.l2d=r.l2r=o,r.d2p=r.r2p=function(x,M,k){return r.l2p(l(x,0,k))},r.p2d=r.p2r=function(x,M,k){return o(b(x),M,k)},r.cleanPos=function(x){return st.cleanDate(x,pi,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(x){var M=d(x);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=Bi,r.r2l=d,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:Bi(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(x){var M=h(x);return M!==void 0?M:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Bi,r.r2l=h,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:Bi(x)},r.setupMultiCategory=function(x){var M=r._traceIndices,k,A,L=r._matchGroup;if(L&&r._categories.length===0){for(var D in L)if(D!==a){var E=t[vd.id2name(D)];M=M.concat(E._traceIndices)}}var R=[[0,{}],[0,{}]],N=[];for(k=0;kE[1]&&(A[D?0:1]=k),A[0]===A[1]){var R=r.l2r(M),N=r.l2r(k);if(M!==void 0){var I=R+1;k!==void 0&&(I=Math.min(I,N)),A[D?1:0]=I}if(k!==void 0){var H=N+1;M!==void 0&&(H=Math.max(H,R)),A[D?0:1]=H}}}},r.cleanRange=function(x,M){r._cleanRange(x,M),r.limitRange(x)},r._cleanRange=function(x,M){M||(M={}),x||(x="range");var k=st.nestedProperty(r,x).get(),A,L;if(r.type==="date"?L=st.dfltRange(r.calendar):n==="y"?L=pd.DFLTRANGEY:r._name==="realaxis"?L=[0,1]:L=M.dfltRange||pd.DFLTRANGEX,L=L.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(L[0]=0),!k||k.length!==2){st.nestedProperty(r,x).set(L);return}var D=k[0]===null,E=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=st.cleanDate(k[0],pi,r.calendar),k[1]=st.cleanDate(k[1],pi,r.calendar)),A=0;A<2;A++)if(r.type==="date"){if(!st.isDateTime(k[A],r.calendar)){r[x]=L;break}if(r.r2l(k[0])===r.r2l(k[1])){var R=st.constrain(r.r2l(k[0]),st.MIN_MS+1e3,st.MAX_MS-1e3);k[0]=r.l2r(R-1e3),k[1]=r.l2r(R+1e3);break}}else{if(!Oi(k[A]))if(!(D||E)&&Oi(k[1-A]))k[A]=k[1-A]*(A?10:.1);else{r[x]=L;break}if(k[A]<-ud?k[A]=-ud:k[A]>ud&&(k[A]=ud),k[0]===k[1]){var N=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=N,k[1]+=N}}},r.setScale=function(x){var M=t._size;if(r.overlaying){var k=vd.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var A=x&&r._r?"_r":"range",L=r.calendar;r.cleanRange(A);var D=r.r2l(r[A][0],L),E=r.r2l(r[A][1],L),R=n==="y";if(R?(r._offset=M.t+(1-r.domain[1])*M.h,r._length=M.h*(r.domain[1]-r.domain[0]),r._m=r._length/(D-E),r._b=-r._m*E):(r._offset=M.l+r.domain[0]*M.w,r._length=M.w*(r.domain[1]-r.domain[0]),r._m=r._length/(E-D),r._b=-r._m*D),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var N,I;if(r._rangebreaks=r.locateBreaks(Math.min(D,E),Math.max(D,E)),r._rangebreaks.length){for(N=0;NE&&(H=!H),H&&r._rangebreaks.reverse();var V=H?-1:1;for(r._m2=V*r._length/(Math.abs(E-D)-r._lBreaks),r._B.push(-r._m2*(R?E:D)),N=0;NL&&(L+=7,DL&&(L+=24,D=A&&D=A&&x=Q.min&&(reQ.max&&(Q.max=le),se=!1)}se&&E.push({min:re,max:le})}};for(k=0;k{"use strict";var RM=zr(),u2=Pe(),HQ=wt().BADNUM,yd=u2.isArrayOrTypedArray,OQ=u2.isDateTime,BQ=u2.cleanNumber,zM=Math.round;FM.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(yd(n)&&!n.length)return"-";if(!i&&WQ(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var l=[],o=0;oi*2}function NM(e){return Math.max(1,(e-1)/1e3)}function VQ(e,r){for(var t=e.length,a=NM(t),n=0,i=0,l={},o=0;on*2}function WQ(e){return yd(e[0])&&yd(e[1])}});var Bc=B((bge,VM)=>{"use strict";var XQ=kr(),BM=zr(),Jl=Pe(),gd=wt().FP_SAFE,ZQ=yr(),JQ=Br(),YM=Jt(),$Q=YM.getFromId,KQ=YM.isLinked;VM.exports={applyAutorangeOptions:UM,getAutoRange:c2,makePadFn:v2,doAutoRange:jQ,findExtremes:ej,concatExtremes:p2};function c2(e,r){var t,a,n=[],i=e._fullLayout,l=v2(i,r,0),o=v2(i,r,1),s=p2(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return Jl.simpleMap(r.range,r.r2l);var c=u[0].val,h=f[0].val;for(t=1;t0&&(E=w-l(k)-o(A),E>x?R/E>M&&(L=k,D=A,M=R/E):R/w>M&&(L={val:k.val,nopad:1},D={val:A.val,nopad:1},M=R/w));function N(Y,O){return Math.max(Y,o(O))}if(c===h){var I=c-1,H=c+1;if(b)if(c===0)n=[0,1];else{var V=(c>0?f:u).reduce(N,0),W=c/(1-Math.min(.5,V/w));n=c>0?[0,W]:[W,0]}else _?n=[Math.max(0,I),Math.max(1,H)]:n=[I,H]}else b?(L.val>=0&&(L={val:0,nopad:1}),D.val<=0&&(D={val:0,nopad:1})):_&&(L.val-M*l(L)<0&&(L={val:0,nopad:1}),D.val<=0&&(D={val:1,nopad:1})),M=(D.val-L.val-IM(r,k.val,A.val))/(w-l(L)-o(D)),n=[L.val-M*l(L),D.val+M*o(D)];return n=UM(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Jl.simpleMap(n,r.l2r||Number)}function IM(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),k=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),A=x(t.vpadplus||t.vpad),L=x(t.vpadminus||t.vpad);if(!u){if(_=1/0,w=-1/0,s)for(c=0;c0&&(_=h),h>w&&h-gd&&(_=h),h>w&&h=R;c--)E(c);return{min:a,max:n,opts:t}}function h2(e,r,t,a){GM(e,r,t,a,rj)}function d2(e,r,t,a){GM(e,r,t,a,tj)}function GM(e,r,t,a,n){for(var i=a.tozero,l=a.extrapad,o=!0,s=0;s=t&&(u.extrapad||!l)){o=!1;break}else n(r,u.val)&&u.pad<=t&&(l||!u.extrapad)&&(e.splice(s,1),s--)}if(o){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:l})}}function OM(e){return BM(e)&&Math.abs(e)=r}function aj(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&xd(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&xd(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function nj(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&xd(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&xd(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function xd(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),l<=s&&(l=s,a=s)}}return t=aj(t,r),a=nj(a,r),[t,a]}});var $r=B((_ge,hA)=>{"use strict";var Bn=kr(),Yt=zr(),Ou=St(),Gc=yr(),br=Pe(),Bu=br.strTranslate,is=va(),ij=Hc(),Uc=xr(),_n=Br(),lj=xn(),WM=Ng(),Ma=wt(),oj=Ma.ONEMAXYEAR,wd=Ma.ONEAVGYEAR,Td=Ma.ONEMINYEAR,sj=Ma.ONEMAXQUARTER,x2=Ma.ONEAVGQUARTER,Md=Ma.ONEMINQUARTER,uj=Ma.ONEMAXMONTH,Yu=Ma.ONEAVGMONTH,Ad=Ma.ONEMINMONTH,wn=Ma.ONEWEEK,Ba=Ma.ONEDAY,$l=Ba/2,Gi=Ma.ONEHOUR,Vc=Ma.ONEMIN,kd=Ma.ONESEC,fj=Ma.ONEMILLI,cj=Ma.ONEMICROSEC,ls=Ma.MINUS_SIGN,Ld=Ma.BADNUM,b2={K:"zeroline"},_2={K:"gridline",L:"path"},w2={K:"minor-gridline",L:"path"},aA={K:"tick",L:"path"},XM={K:"tick",L:"text"},ZM={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Sd=Sa(),Yc=Sd.MID_SHIFT,os=Sd.CAP_SHIFT,Wc=Sd.LINE_SPACING,vj=Sd.OPPOSITE_SIDE,qd=3,We=hA.exports={};We.setConvert=md();var hj=f2(),vl=Jt(),dj=vl.idSort,pj=vl.isLinked;We.id2name=vl.id2name;We.name2id=vl.name2id;We.cleanId=vl.cleanId;We.list=vl.list;We.listIds=vl.listIds;We.getFromId=vl.getFromId;We.getFromTrace=vl.getFromTrace;var nA=Bc();We.getAutoRange=nA.getAutoRange;We.findExtremes=nA.findExtremes;var mj=1e-4;function k2(e){var r=(e[1]-e[0])*mj;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=Gc.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;nc*.3||u(a)||u(n))){var h=t.dtick/2;e+=e+hl){var o=Number(t.substr(1));i.exactYears>l&&o%12===0?e=We.tickIncrement(e,"M6","reverse")+Ba*1.5:i.exactMonths>l?e=We.tickIncrement(e,"M1","reverse")+Ba*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&&Yt(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=Yt(r.dtick),s=Yt(e.dtick),u=o?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);o&&s?m2(u,f)?u===2*wn&&f===2*Ba&&(e.dtick=wn):u===2*wn&&f===3*Ba?e.dtick=wn:u===wn&&!(r._input.minor||{}).nticks?e.dtick=Ba:KM(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":m2(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"?m2(u,f)||(e.dtick=KM(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function m2(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function KM(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,c=0;f>=Td?u>=Td&&u<=oj?c=u:c=wd:t===x2&&f>=Md?u>=Md&&u<=sj?c=u:c=x2:f>=Ad?u>=Ad&&u<=uj?c=u:c=Yu:t===wn&&f>=wn?c=wn:f>=Ba?c=Ba:t===$l&&f>=$l?c=$l:t===Gi&&f>=Gi&&(c=Gi);var h;c>=u&&(c=u,h=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,y=0,m=0;mwn&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/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]=(w?0:1);x--){var M=!x;x?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var k=x?r:br.extendFlat({},r,r.minor);if(M?We.prepMinorTicks(k,r,t):We.prepTicks(k,t),k.tickmode==="array"){x?(m=[],p=QM(r,!M)):(b=[],y=QM(r,!M));continue}if(k.tickmode==="sync"){m=[],p=wj(r);continue}var A=k2(u),L=A[0],D=A[1],E=Yt(k.dtick),R=a==="log"&&!(E||k.dtick.charAt(0)==="L"),N=We.tickFirst(k,t);if(x){if(r._tmin=N,N=D:H<=D;H=We.tickIncrement(H,Y,f,n)){if(x&&V++,k.rangebreaks&&!f){if(H=h)break}if(m.length>d||H===I)break;I=H;var O={value:H};x?(R&&H!==(H|0)&&(O.simpleLabel=!0),i>1&&V%i&&(O.skipLabel=!0),m.push(O)):(O.minor=!0,b.push(O))}}if(!b||b.length<2)s=!1;else{var G=(b[1].value-b[0].value)*(o?-1:1);Wj(G,r.tickformat)||(s=!1)}if(!s)_=m;else{var J=m.concat(b);l&&m.length&&(J=J.slice(1)),J=J.sort(function(Ne,Ye){return Ne.value-Ye.value}).filter(function(Ne,Ye,Xe){return Ye===0||Ne.value!==Xe[Ye-1].value});var $=J.map(function(Ne,Ye){return Ne.minor===void 0&&!Ne.skipLabel?Ye:null}).filter(function(Ne){return Ne!==null});$.forEach(function(Ne){s.map(function(Ye){var Xe=Ne+Ye;Xe>=0&&Xe-1;fe--){if(m[fe].drop){m.splice(fe,1);continue}m[fe].value=g2(m[fe].value,r);var X=r.c2p(m[fe].value);(ye?te>X-U:teh||Reh&&(Xe.periodX=h),Ren&&hwd)r/=wd,a=n(10),e.dtick="M"+12*Yi(r,a,bd);else if(i>Yu)r/=Yu,e.dtick="M"+Yi(r,1,jM);else if(i>Ba){if(e.dtick=Yi(r,Ba,e._hasDayOfWeekBreaks?[1,2,7,14]:Tj),!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>Gi?e.dtick=Yi(r,Gi,jM):i>Vc?e.dtick=Yi(r,Vc,eA):i>kd?e.dtick=Yi(r,kd,eA):(a=n(10),e.dtick=Yi(r,a,bd))}else if(e.type==="log"){e.tick0=0;var s=br.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+Yi(r,a,bd)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):L2(e)?(e.tick0=0,a=1,e.dtick=Yi(r,a,Mj)):(e.tick0=0,a=n(10),e.dtick=Yi(r,a,bd));if(e.dtick===0&&(e.dtick=1),!Yt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function sA(e){var r=e.dtick;if(e._tickexponent=0,!Yt(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>=Ba&&n<=10||r>=Ba*15)e._tickround="d";else if(r>=Vc&&n<=16||r>=Gi)e._tickround="M";else if(r>=kd&&n<=19||r>=Vc)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(Yt(r)||r.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);Yt(r)||(r=Number(r.substr(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var o=Math.max(Math.abs(l[0]),Math.abs(l[1])),s=Math.floor(Math.log(o)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(Cd(e.exponentformat)&&!q2(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(Yt(r))return br.increment(e,n*r);var i=r.charAt(0),l=n*Number(r.substr(1));if(i==="M")return br.incrementMonth(e,l,a);if(i==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(i==="D"){var o=r==="D2"?oA:lA,s=e+n*.01,u=br.roundUp(br.mod(s,1),o,t);return Math.floor(s)+Math.log(Bn.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};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&&b<=e._length?m:null};if(i&&br.isArrayOrTypedArray(e.ticktext)){var c=br.simpleMap(e.range,e.r2l),h=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(u=0;u"+o;else{var u=Zc(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(l+="
")}r.text=l}function kj(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=Xc(Math.pow(10,l),e,n,a);else if(Yt(i)||s==="D"&&br.mod(l+.01,1)<.1){var u=Math.round(l),f=Math.abs(u),c=e.exponentformat;c==="power"||Cd(c)&&q2(u)?(u===0?r.text=1:u===1?r.text="10":r.text="10"+(u>1?"":ls)+f+"",r.fontSize*=1.25):(c==="e"||c==="E")&&f>2?r.text="1"+c+(u>0?"+":ls)+f:(r.text=Xc(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 qj(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Cj(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 Lj(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=Xc(r.x,e,n,a)}function Sj(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=Dj(i);if(l[1]>=100)r.text=Xc(br.deg2rad(r.x),e,n,a);else{var o=r.x<0;l[1]===1?l[0]===1?r.text="\u03C0":r.text=l[0]+"\u03C0":r.text=["",l[0],"","\u2044","",l[1],"","\u03C0"].join(""),o&&(r.text=ls+r.text)}}}else r.text=Xc(r.x,e,n,a)}function Dj(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 Ej=["f","p","n","\u03BC","m","","k","M","G","T"];function Cd(e){return e==="SI"||e==="B"}function q2(e){return e>14||e<-15}function Xc(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:Yt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};sA(f),i=(Number(f._tickround)||0)+4,o=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,ls);var c=Math.pow(10,-i)/2;if(l==="none"&&(o=0),e=Math.abs(e),e"+p+"":l==="B"&&o===9?e+="B":Cd(l)&&(e+=Ej[o/3+5])}return n?ls+e:e}We.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Yu}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),h=f.indexOf(u.charAt(0));return c===h?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-h}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},h=u[0],d=u[1];return(!h&&typeof h!="number"||c(h)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,h=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||h)&&(c||d)}var l,o;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var o={false:{left:0,right:0}};return br.syncOrAsync(n.map(function(s){return function(){if(s){var u=We.getFromId(e,s);t||(t={}),t.axShifts=o,t.overlayingShiftedAx=l;var f=We.drawOne(e,u,t);return u._shiftPusher&&A2(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),c=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 p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),A2(r,p,a,!0),A2(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=Vj(r,a));var y=h[f+"axislayer"],m=r._mainLinePosition,b=m+=r._shift,_=r._mainMirrorPosition,w=r._vals=We.calcTicks(r),x=[r.mirror,b,_].join("_");for(i=0;i0?Re.bottom-Ye:0,Xe))));var ke=0,Ce=0;if(r._shiftPusher&&(ke=Math.max(Xe,Re.height>0?Ee==="l"?Ye-Re.left:Re.right-Ye:0),r.title.text!==s._dfltTitle[f]&&(Ce=(r._titleStandoff||0)+(r._titleScoot||0),Ee==="l"&&(Ce+=tA(r))),r._fullDepth=Math.max(ke,Ce)),r.automargin){Be={x:0,y:0,r:0,l:0,t:0,b:0};var sr=[0,1],tr=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Ee==="b"?Be[Ee]=r._depth:(Be[Ee]=r._depth=Math.max(Re.width>0?Ye-Re.top:0,Xe),sr.reverse()),Re.width>0){var De=Re.right-(r._offset+r._length);De>0&&(Be.xr=1,Be.r=De);var Le=r._offset-Re.left;Le>0&&(Be.xl=0,Be.l=Le)}}else if(Ee==="l"?(r._depth=Math.max(Re.height>0?Ye-Re.left:0,Xe),Be[Ee]=r._depth-tr):(r._depth=Math.max(Re.height>0?Re.right-Ye:0,Xe),Be[Ee]=r._depth+tr,sr.reverse()),Re.height>0){var Ge=Re.bottom-(r._offset+r._length);Ge>0&&(Be.yb=0,Be.b=Ge);var Ze=r._offset-Re.top;Ze>0&&(Be.yt=1,Be.t=Ze)}Be[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[sr[0]],r.title.text!==s._dfltTitle[f]&&(Be[Ee]+=tA(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Oe={x:0,y:0,r:0,l:0,t:0,b:0},Oe[Ne]=r.linewidth,r.mirror&&r.mirror!==!0&&(Oe[Ne]+=Xe),r.mirror===!0||r.mirror==="ticks"?Oe[c]=r._anchorAxis.domain[sr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Oe[c]=[r._counterDomainMin,r._counterDomainMax][sr[1]]))}Ie&&(ie=Gc.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(rA(Be,r.automargin),rA(Oe,r.automargin)),Ou.autoMargin(e,C2(r),Be),Ou.autoMargin(e,cA(r),Oe),Ou.autoMargin(e,vA(r),ie)}),br.syncOrAsync(xe)}};function rA(e,r){if(e){var t=Object.keys(ZM).reduce(function(a,n){return r.indexOf(n)!==-1&&ZM[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function Pj(e,r){var t=[],a,n=function(i,l){var o=i.xbnd[l];o!==null&&t.push(br.extendFlat({},i,{x:o}))};if(r.length){for(a=0;ae.range[1],o=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!o;if(t){var u=l?-1:1;t=t*u}if(a){var f=e.side,c=o&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(h){return Bu(n+e._offset+e.l2p(T2(h))+t,i+a)}:function(h){return Bu(i+a,n+e._offset+e.l2p(T2(h))+t)}};function T2(e){return e.periodX!==void 0?e.periodX:e.x}function Fj(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),l=a("right"),o=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(o||i||n||l);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,h=qd,d=e.tickfont?e.tickfont.size:12;return(o||n)&&(c+=d*os,h+=(e.linewidth||0)/2),(i||l)&&(c+=(e.linewidth||0)/2,h+=qd),s&&f==="top"&&(h-=d*(1-os)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(h=-h),[u?c:0,s?h:0]}We.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,l=e._id.charAt(0),o=(e.linewidth||1)/2;return l==="x"?"M0,"+(r+o*t)+"v"+i*t:"M"+(r+o*t)+",0h"+i*t};We.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(I){return a.indexOf(I)!==-1},l=i("top"),o=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||o||l||s),c=i("inside"),h=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,y=h?e.ticklen:0;if(c?y*=-1:f&&(y=0),h&&(d+=y,t)){var m=br.deg2rad(t);d=y*Math.cos(m)+1,p=y*Math.sin(m)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:d,labelShift:p},_,w,x,M,k=0,A=e.side,L=e._id.charAt(0),D=e.tickangle,E;if(L==="x")E=!c&&A==="bottom"||c&&A==="top",M=E?1:-1,c&&(M*=-1),_=p*M,w=r+d*M,x=E?1:-.2,Math.abs(D)===90&&(c?x+=Yc:D===-90&&A==="bottom"?x=os:D===90&&A==="top"?x=Yc:x=.5,k=Yc/2*(D/90)),b.xFn=function(I){return I.dx+_+k*I.fontSize},b.yFn=function(I){return I.dy+w+I.fontSize*x},b.anchorFn=function(I,H){if(f){if(o)return"end";if(s)return"start"}return!Yt(H)||H===0||H===180?"middle":H*M<0!==c?"end":"start"},b.heightFn=function(I,H,V){return H<-60||H>60?-.5*V:e.side==="top"!==c?-V:0};else if(L==="y"){if(E=!c&&A==="left"||c&&A==="right",M=E?1:-1,c&&(M*=-1),_=d,w=p*M,x=0,!c&&Math.abs(D)===90&&(D===-90&&A==="left"||D===90&&A==="right"?x=os:x=.5),c){var R=Yt(D)?+D:0;if(R!==0){var N=br.deg2rad(R);k=Math.abs(Math.sin(N))*os*M,x=0}}b.xFn=function(I){return I.dx+r-(_+I.fontSize*x)*M+k*I.fontSize},b.yFn=function(I){return I.dy+w+I.fontSize*Yc},b.anchorFn=function(I,H){return Yt(H)&&Math.abs(H)===90?"middle":E?"end":"start"},b.heightFn=function(I,H,V){return e.side==="right"&&(H*=-1),H<-30?-V:H<30?-.5*V:0}}return b};function Dd(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}We.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(r.ticks?t.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,Dd);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(l){return Uc.stroke(Bn.select(this),l.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(l){return _n.crispRound(e,l.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Ed(r,[aA]),i.attr("transform",t.transFn)};We.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(b){return b.minor}):[],l=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],o=t.counterAxis;if(o&&We.shouldShowZeroLine(e,r,o))for(var s=r.tickmode==="array",u=0;u=0;p--){var y=p?h:d;if(y){var m=y.selectAll("path."+a).data(p?l:i,Dd);m.exit().remove(),m.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),m.attr("transform",t.transFn).attr("d",t.path).each(function(b){return Uc.stroke(Bn.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return _n.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&m.attr("d",t.path)}}Ed(r,[_2,w2])}};We.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=We.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(l,o){return dj(l.id,o.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Uc.stroke,r.zerolinecolor||Uc.defaultLine).style("stroke-width",_n.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Ed(r,[b2])};We.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",l=t.cls||n+"tick",o=t.vals.filter(function(G){return G.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[l],c=t.layer.selectAll("g."+l).data(r.showticklabels?o:[],Dd),h=[];c.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(G){var J=Bn.select(this),$=e._promises.length;J.call(is.positionText,s.xFn(G),s.yFn(G)).call(_n.font,{family:G.font,size:G.fontSize,color:G.fontColor,weight:G.fontWeight,style:G.fontStyle,variant:G.fontVariant,textcase:G.fontTextcase,lineposition:G.fontLineposition,shadow:G.fontShadow}).text(G.text).call(is.convertToTspans,e),e._promises[$]?h.push(e._promises.pop().then(function(){d(J,u)})):d(J,u)}),Ed(r,[XM]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(G){Bn.select(this).select("text").call(is.positionText,s.xFn(G),s.yFn(G))});function d(G,J){G.each(function($){var re=Bn.select(this),le=re.select(".text-math-group"),se=s.anchorFn($,J),ve=t.transFn.call(re.node(),$)+(Yt(J)&&+J!=0?" rotate("+J+","+s.xFn($)+","+(s.yFn($)-$.fontSize/2)+")":""),Q=is.lineCount(re),_e=Wc*$.fontSize,ce=s.heightFn($,Yt(J)?+J:0,(Q-1)*_e);if(ce&&(ve+=Bu(0,ce)),le.empty()){var be=re.select("text");be.attr({transform:ve,"text-anchor":se}),be.style("opacity",1),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var fe=_n.bBox(le.node()).width,ye=fe*{end:-.5,start:.5}[se];le.attr("transform",ve+Bu(ye,0))}})}r._adjustTickLabelsOverflow=function(){var G=r.ticklabeloverflow;if(!(!G||G==="allow")){var J=G.indexOf("hide")!==-1,$=r._id.charAt(0)==="x",re=0,le=$?e._fullLayout.width:e._fullLayout.height;if(G.indexOf("domain")!==-1){var se=br.simpleMap(r.range,r.r2l);re=r.l2p(se[0])+r._offset,le=r.l2p(se[1])+r._offset}var ve=Math.min(re,le),Q=Math.max(re,le),_e=r.side,ce=1/0,be=-1/0;c.each(function(te){var X=Bn.select(this),ge=X.select(".text-math-group");if(ge.empty()){var Me=_n.bBox(X.node()),xe=0;$?(Me.right>Q||Me.leftQ||Me.top+(r.tickangle?0:te.fontSize/4)r["_visibleLabelMin_"+se._id]?X.style("display","none"):Q.K==="tick"&&!ve&&X.style("display",null)})})})})},d(c,f+1?f:u);function p(){return h.length&&Promise.all(h)}var y=null;function m(){if(d(c,u),o.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){y=r.autotickangles[0];var G=0,J=[],$,re=1;c.each(function(Be){G=Math.max(G,Be.fontSize);var Oe=r.l2p(Be.x),ie=M2(this),ke=_n.bBox(ie.node());re=Math.max(re,is.lineCount(ie)),J.push({top:0,bottom:10,height:10,left:Oe-ke.width/2,right:Oe+ke.width/2+2,width:ke.width+2})});var le=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,se=o.length,ve=Math.abs((o[se-1].x-o[0].x)*r._m)/(se-1),Q=le?ve/2:ve,_e=le?r.ticklen:G*1.25*re,ce=Math.sqrt(Math.pow(Q,2)+Math.pow(_e,2)),be=Q/ce,fe=r.autotickangles.map(function(Be){return Be*Math.PI/180}),ye=fe.find(function(Be){return Math.abs(Math.cos(Be))<=be});ye===void 0&&(ye=fe.reduce(function(Be,Oe){return Math.abs(Math.cos(Be))W*V&&(N=V,D[L]=E[L]=I[L])}var Y=Math.abs(N-R);Y-M>0?(Y-=M,M*=1+M/Y):M=0,r._id.charAt(0)!=="y"&&(M=-M),D[A]=w.p2r(w.r2p(E[A])+k*M),w.autorange==="min"||w.autorange==="max reversed"?(D[0]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0):(w.autorange==="max"||w.autorange==="min reversed")&&(D[1]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[w._name+".range"]=D}var O=br.syncOrAsync(b);return O&&O.then&&e._promises.push(O),O};function Ij(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,Dd);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(Uc.stroke,r.dividercolor).style("stroke-width",_n.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}We.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function tA(e){var r=e.title.font.size,t=(e.title.text.match(is.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(os+t*Wc):t?r*(t+1)*Wc:r}function Hj(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,l,o=(r.title.text.match(is.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?l=r._depth+r.title.standoff+i*os:(r.side==="top"||r.side==="left")&&(l=r._depth+r.title.standoff+i*(Yc+o*Wc));else{var s=Zc(r);if(r.type==="multicategory")l=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),l=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?l+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):l+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=We.getPxPosition(e,r),c,h,d;n==="x"?(h=r._offset+r._length/2,d=r.side==="top"?f-l:f+l):(d=r._offset+r._length/2,h=r.side==="right"?f+l:f-l,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var y=r._selections[r._id+"tick"];if(p={selection:y,side:r.side},y&&y.node()&&y.node().parentNode){var m=_n.getTranslate(y.node().parentNode);p.offsetLeft=m.x,p.offsetTop=m.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=l,ij.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:h,y:d,"text-anchor":"middle"}})}We.shouldShowZeroLine=function(e,r,t){var a=br.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Ld)&&(fA(r,0)||!Oj(e,r,t,a)||Bj(e,r))};We.clipEnds=function(e,r){return r.filter(function(t){return fA(e,t.x)})};function fA(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=cj:/%L/.test(r)?e>=fj:/%[SX]/.test(r)?e>=kd:/%M/.test(r)?e>=Vc:/%[HI]/.test(r)?e>=Gi:/%p/.test(r)?e>=$l:/%[Aadejuwx]/.test(r)?e>=Ba:/%[UVW]/.test(r)?e>=wn:/%[Bbm]/.test(r)?e>=Ad:/%[q]/.test(r)?e>=Md:/%[Yy]/.test(r)?e>=Td:!0}});var pA=B((wge,dA)=>{"use strict";dA.exports=function(r,t,a){var n,i;if(a){var l=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[l?1:0],i=a[l?0:1]}var o=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);o===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var S2=B((Tge,mA)=>{"use strict";var Xj=pA();mA.exports=function(r,t,a,n){var i=t._template||{},l=t.type||i.type||"-";a("minallowed"),a("maxallowed");var o=a("range");if(!o){var s;!n.noInsiderange&&l!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(o=a("range",s)))}var u=t.getAutorangeDflt(o,n),f=a("autorange",u),c;o&&(o[0]===null&&o[1]===null||(o[0]===null||o[1]===null)&&(f==="reversed"||f===!0)||o[0]!==null&&(f==="min"||f==="max reversed")||o[1]!==null&&(f==="max"||f==="min reversed"))&&(o=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(o,n),f=a("autorange",u)),f&&(Xj(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var gA=B((Mge,yA)=>{var Zj={left:0,top:0};yA.exports=Jj;function Jj(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=$j(r);return t[0]=a-i.left,t[1]=n-i.top,t}function $j(e){return e===window||e===document||e===document.body?Zj:e.getBoundingClientRect()}});var D2=B((Age,xA)=>{"use strict";var Kj=fg();function Qj(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}xA.exports=Kj&&Qj()});var _A=B((kge,bA)=>{"use strict";bA.exports=function(r,t,a,n,i){var l=(r-a)/(n-a),o=l+t/(n-a),s=(l+o)/2;return i==="left"||i==="bottom"?l:i==="center"||i==="middle"?s:i==="right"||i==="top"?o:l<2/3-s?l:o>4/3-s?o:s}});var MA=B((qge,TA)=>{"use strict";var wA=Pe(),jj=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];TA.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=wA.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=wA.constrain(Math.floor(t*3),0,2),jj[t][r]}});var kA=B((Cge,AA)=>{"use strict";var eee=Sc(),ree=Lh(),tee=wc().getGraphDiv,aee=xc(),E2=AA.exports={};E2.wrapped=function(e,r,t){e=tee(e),e._fullLayout&&ree.clear(e._fullLayout._uid+aee.HOVERID),E2.raw(e,r,t)};E2.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&eee.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var mi=B((Lge,SA)=>{"use strict";var nee=gA(),P2=vg(),iee=D2(),lee=Pe().removeElement,oee=wa(),ss=SA.exports={};ss.align=_A();ss.getCursor=MA();var CA=kA();ss.unhover=CA.wrapped;ss.unhoverRaw=CA.raw;ss.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,l,o,s,u,f,c,h,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=m,iee?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=m,i.addEventListener("touchstart",m,{passive:!1})):i.ontouchstart=m;function p(w,x,M){return Math.abs(w)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;c.target===h?x=c:(x={target:h,srcElement:h,toElement:h},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(M=>{var k=c[M];!x[M]&&typeof k!="function"&&(x[M]=k)})),r.clickFn&&r.clickFn(a,x),d||h.dispatchEvent(new MouseEvent("click",w))}t._dragging=!1,t._dragged=!1}};function LA(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}ss.coverSlip=LA;function qA(e){return nee(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Kl=B((Sge,DA)=>{"use strict";DA.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var RA=B((Dge,PA)=>{"use strict";var R2=Kl(),Jc="data-savedcursor",EA="!!";PA.exports=function(r,t){var a=r.attr(Jc);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var z2=jt(),see=zn();zA.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:see.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:z2({editType:"legend"}),grouptitlefont:z2({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:z2({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Rd=B(Pd=>{"use strict";Pd.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Pd.isVertical=function(r){return r.orientation!=="h"};Pd.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1}});var H2=B((Rge,NA)=>{"use strict";var F2=yr(),Tn=Pe(),uee=ot(),fee=rn(),cee=N2(),vee=xu(),I2=Rd();function hee(e,r,t,a){var n=r[e]||{},i=uee.newContainer(t,e);function l(Y,O){return Tn.coerce(n,i,cee,Y,O)}var o=Tn.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var s=l("visible");if(s){for(var u,f=function(Y,O){var G=u._input,J=u;return Tn.coerce(G,J,fee,Y,O)},c=t.font||{},h=Tn.coerceFont(l,"grouptitlefont",c,{overrideDflt:{size:Math.round(c.size*1.1)}}),d=0,p=!1,y="normal",m=(t.shapes||[]).filter(function(Y){return Y.showlegend}),b=a.concat(m).filter(function(Y){return e===(Y.legend||"legend")}),_=0;_(e==="legend"?1:0));if(x===!1&&(t[e]=void 0),!(x===!1&&!n.uirevision)&&(l("uirevision",t.uirevision),x!==!1)){l("borderwidth");var M=l("orientation"),k=l("yref"),A=l("xref"),L=M==="h",D=k==="paper",E=A==="paper",R,N,I,H="left";L?(R=0,F2.getComponentMethod("rangeslider","isVisible")(r.xaxis)?D?(N=1.1,I="bottom"):(N=1,I="top"):D?(N=-.1,I="top"):(N=0,I="bottom")):(N=1,I="auto",E?R=1.02:(R=1,H="right")),Tn.coerce(n,i,{x:{valType:"number",editType:"legend",min:E?-2:0,max:E?3:1,dflt:R}},"x"),Tn.coerce(n,i,{y:{valType:"number",editType:"legend",min:D?-2:0,max:D?3:1,dflt:N}},"y"),l("traceorder",y),I2.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",H),l("yanchor",I),l("maxheight",L?.5:1),l("valign"),Tn.noneOrAll(n,i,["x","y"]);var V=l("title.text");if(V){l("title.side",L?"left":"top");var W=Tn.extendFlat({},o,{size:Tn.bigFont(o.size)});Tn.coerceFont(l,"title.font",W)}}}}NA.exports=function(r,t,a){var n,i=a.slice(),l=t.shapes;if(l)for(n=0;n{"use strict";var Gu=yr(),B2=Pe(),dee=B2.pushUnique,O2=!0;FA.exports=function(r,t,a){var n=t._fullLayout;if(t._dragged||t._editing)return;var i=n.legend.itemclick,l=n.legend.itemdoubleclick,o=n.legend.groupclick;a===1&&i==="toggle"&&l==="toggleothers"&&O2&&t.data&&t._context.showTips&&B2.notifier(B2._(t,"Double-click on legend to isolate one trace"),"long"),O2=!1;var s;if(a===1?s=i:a===2&&(s=l),!s)return;var u=o==="togglegroup",f=n.hiddenlabels?n.hiddenlabels.slice():[],c=r.data()[0][0];if(c.groupTitle&&c.noClick)return;var h=t._fullData,d=(n.shapes||[]).filter(function(Ne){return Ne.showlegend}),p=h.concat(d),y=c.trace;y._isShape&&(y=y._fullInput);var m=y.legendgroup,b,_,w,x,M,k,A={},L=[],D=[],E=[];function R(Ne,Ye){var Xe=L.indexOf(Ne),Re=A.visible;return Re||(Re=A.visible=[]),L.indexOf(Ne)===-1&&(L.push(Ne),Xe=L.length-1),Re[Xe]=Ye,Xe}var N=(n.shapes||[]).map(function(Ne){return Ne._input}),I=!1;function H(Ne,Ye){N[Ne].visible=Ye,I=!0}function V(Ne,Ye){if(!(c.groupTitle&&!u)){var Xe=Ne._fullInput||Ne,Re=Xe._isShape,Be=Xe.index;Be===void 0&&(Be=Xe._index);var Oe=Xe.visible===!1?!1:Ye;Re?H(Be,Oe):R(Be,Oe)}}var W=y.legend,Y=y._fullInput,O=Y&&Y._isShape;if(!O&&Gu.traceIs(y,"pie-like")){var G=c.label,J=f.indexOf(G);if(s==="toggle")J===-1?f.push(G):f.splice(J,1);else if(s==="toggleothers"){var $=J!==-1,re=[];for(b=0;b{"use strict";HA.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var YA=B((Fge,BA)=>{"use strict";var OA=yr(),G2=Rd();BA.exports=function(r,t,a){var n=t._inHover,i=G2.isGrouped(t),l=G2.isReversed(t),o={},s=[],u=!1,f={},c=0,h=0,d,p;function y(Y,O,G){if(t.visible!==!1&&!(a&&Y!==t._id))if(O===""||!G2.isGrouped(t)){var J="~~i"+c;s.push(J),o[J]=[G],c++}else s.indexOf(O)===-1?(s.push(O),u=!0,o[O]=[G]):o[O].push(G)}for(d=0;dE&&(D=E)}A[d][0]._groupMinRank=D,A[d][0]._preGroupSort=d}var R=function(Y,O){return Y[0]._groupMinRank-O[0]._groupMinRank||Y[0]._preGroupSort-O[0]._preGroupSort},N=function(Y,O){return Y.trace.legendrank-O.trace.legendrank||Y._preSort-O._preSort};for(A.forEach(function(Y,O){Y[0]._preGroupSort=O}),A.sort(R),d=0;d{"use strict";var zd=Pe();function GA(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}us.formatPiePercent=function(r,t){var a=GA((r*100).toPrecision(3));return zd.numSeparate(a,t)+"%"};us.formatPieValue=function(r,t){var a=GA(r.toPrecision(10));return zd.numSeparate(a,t)};us.getFirstFilled=function(r,t){if(zd.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var pee=Br(),mee=xr();UA.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?pee.pointStyle(r,a,n,t):mee.fill(r,t.color)}});var Uu=B((Oge,ZA)=>{"use strict";var WA=xr(),XA=$c().castOption,yee=VA();ZA.exports=function(r,t,a,n){var i=a.marker.line,l=XA(i.color,t.pts)||WA.defaultLine,o=XA(i.width,t.pts)||0;r.call(yee,t,a,n).style("stroke-width",o).call(WA.stroke,l)}});var X2=B((Bge,ek)=>{"use strict";var Ya=kr(),U2=yr(),Ea=Pe(),JA=Ea.strTranslate,Mn=Br(),Yn=xr(),V2=Hn().extractOpts,Nd=bn(),gee=Uu(),xee=$c().castOption,bee=Y2(),$A=12,KA=5,fs=2,_ee=10,Vu=5;ek.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",l=a.itemwidth,o=(l+bee.itemGap*2)/2,s=JA(o,0),u=function(A,L,D,E){var R;if(A+1)R=A;else if(L&&L.width>0)R=L.width;else return 0;return i?E:Math.min(R,D)};r.each(function(A){var L=Ya.select(this),D=Ea.ensureSingle(L,"g","layers");D.style("opacity",A[0].trace.opacity);var E=a.indentation,R=a.valign,N=A[0].lineHeight,I=A[0].height;if(R==="middle"&&E===0||!N||!I)D.attr("transform",null);else{var H={top:1,bottom:-1}[R],V=H*(.5*(N-I+3))||0,W=a.indentation;D.attr("transform",JA(W,V))}var Y=D.selectAll("g.legendfill").data([A]);Y.enter().append("g").classed("legendfill",!0);var O=D.selectAll("g.legendlines").data([A]);O.enter().append("g").classed("legendlines",!0);var G=D.selectAll("g.legendsymbols").data([A]);G.enter().append("g").classed("legendsymbols",!0),G.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(k).each(h).each(p).each(d).each(m).each(x).each(w).each(f).each(c).each(b).each(_);function f(A){var L=QA(A),D=L.showFill,E=L.showLine,R=L.showGradientLine,N=L.showGradientFill,I=L.anyFill,H=L.anyLine,V=A[0],W=V.trace,Y,O,G=V2(W),J=G.colorscale,$=G.reversescale,re=function(be){if(be.size())if(D)Mn.fillGroupStyle(be,t,!0);else{var fe="legendfill-"+W.uid;Mn.gradient(be,t,fe,W2($),J,"fill")}},le=function(be){if(be.size()){var fe="legendline-"+W.uid;Mn.lineGroupStyle(be),Mn.gradient(be,t,fe,W2($),J,"stroke")}},se=Nd.hasMarkers(W)||!I?"M5,0":H?"M5,-2":"M5,-3",ve=Ya.select(this),Q=ve.select(".legendfill").selectAll("path").data(D||N?[A]:[]);if(Q.enter().append("path").classed("js-fill",!0),Q.exit().remove(),Q.attr("d",se+"h"+l+"v6h-"+l+"z").call(re),E||R){var _e=u(void 0,W.line,_ee,KA);O=Ea.minExtend(W,{line:{width:_e}}),Y=[Ea.minExtend(V,{trace:O})]}var ce=ve.select(".legendlines").selectAll("path").data(E||R?[Y]:[]);ce.enter().append("path").classed("js-line",!0),ce.exit().remove(),ce.attr("d",se+(R?"l"+l+",0.0001":"h"+l)).call(E?Mn.lineGroupStyle:le)}function c(A){var L=QA(A),D=L.anyFill,E=L.anyLine,R=L.showLine,N=L.showMarker,I=A[0],H=I.trace,V=!N&&!E&&!D&&Nd.hasText(H),W,Y;function O(Q,_e,ce,be){var fe=Ea.nestedProperty(H,Q).get(),ye=Ea.isArrayOrTypedArray(fe)&&_e?_e(fe):fe;if(i&&ye&&be!==void 0&&(ye=be),ce){if(yece[1])return ce[1]}return ye}function G(Q){return I._distinct&&I.index&&Q[I.index]?Q[I.index]:Q[0]}if(N||V||R){var J={},$={};if(N){J.mc=O("marker.color",G),J.mx=O("marker.symbol",G),J.mo=O("marker.opacity",Ea.mean,[.2,1]),J.mlc=O("marker.line.color",G),J.mlw=O("marker.line.width",Ea.mean,[0,5],fs),$.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var re=O("marker.size",Ea.mean,[2,16],$A);J.ms=re,$.marker.size=re}R&&($.line={width:O("line.width",G,[0,10],KA)}),V&&(J.tx="Aa",J.tp=O("textposition",G),J.ts=10,J.tc=O("textfont.color",G),J.tf=O("textfont.family",G),J.tw=O("textfont.weight",G),J.ty=O("textfont.style",G),J.tv=O("textfont.variant",G),J.tC=O("textfont.textcase",G),J.tE=O("textfont.lineposition",G),J.tS=O("textfont.shadow",G)),W=[Ea.minExtend(I,J)],Y=Ea.minExtend(H,$),Y.selectedpoints=null,Y.texttemplate=null}var le=Ya.select(this).select("g.legendpoints"),se=le.selectAll("path.scatterpts").data(N?W:[]);se.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),se.exit().remove(),se.call(Mn.pointStyle,Y,t),N&&(W[0].mrc=3);var ve=le.selectAll("g.pointtext").data(V?W:[]);ve.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),ve.exit().remove(),ve.selectAll("text").call(Mn.textPointStyle,Y,t)}function h(A){var L=A[0].trace,D=L.type==="waterfall";if(A[0]._distinct&&D){var E=A[0].trace[A[0].dir].marker;return A[0].mc=E.color,A[0].mlw=E.line.width,A[0].mlc=E.line.color,y(A,this,"waterfall")}var R=[];L.visible&&D&&(R=A[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var N=Ya.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(R);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(I){var H=Ya.select(this),V=L[I[0]].marker,W=u(void 0,V.line,Vu,fs);H.attr("d",I[1]).style("stroke-width",W+"px").call(Yn.fill,V.color),W&&H.call(Yn.stroke,V.line.color)})}function d(A){y(A,this)}function p(A){y(A,this,"funnel")}function y(A,L,D){var E=A[0].trace,R=E.marker||{},N=R.line||{},I=R.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",H=D?E.visible&&E.type===D:U2.traceIs(E,"bar"),V=Ya.select(L).select("g.legendpoints").selectAll("path.legend"+D).data(H?[A]:[]);V.enter().append("path").classed("legend"+D,!0).attr("d",I).attr("transform",s),V.exit().remove(),V.each(function(W){var Y=Ya.select(this),O=W[0],G=u(O.mlw,R.line,Vu,fs);Y.style("stroke-width",G+"px");var J=O.mcc;if(!a._inHover&&"mc"in O){var $=V2(R),re=$.mid;re===void 0&&(re=($.max+$.min)/2),J=Mn.tryColorscale(R,"")(re)}var le=J||O.mc||R.color,se=R.pattern,ve=Mn.getPatternAttr,Q=se&&(ve(se.shape,0,"")||ve(se.path,0,""));if(Q){var _e=ve(se.bgcolor,0,null),ce=ve(se.fgcolor,0,null),be=se.fgopacity,fe=jA(se.size,8,10),ye=jA(se.solidity,.5,1),U="legend-"+E.uid;Y.call(Mn.pattern,"legend",t,U,Q,fe,ye,J,se.fillmode,_e,ce,be)}else Y.call(Yn.fill,le);G&&Yn.stroke(Y,O.mlc||N.color)})}function m(A){var L=A[0].trace,D=Ya.select(this).select("g.legendpoints").selectAll("path.legendbox").data(L.visible&&U2.traceIs(L,"box-violin")?[A]:[]);D.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),D.exit().remove(),D.each(function(){var E=Ya.select(this);if((L.boxpoints==="all"||L.points==="all")&&Yn.opacity(L.fillcolor)===0&&Yn.opacity((L.line||{}).color)===0){var R=Ea.minExtend(L,{marker:{size:i?$A:Ea.constrain(L.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});D.call(Mn.pointStyle,R,t)}else{var N=u(void 0,L.line,Vu,fs);E.style("stroke-width",N+"px").call(Yn.fill,L.fillcolor),N&&Yn.stroke(E,L.line.color)}})}function b(A){var L=A[0].trace,D=Ya.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(L.visible&&L.type==="candlestick"?[A,A]:[]);D.enter().append("path").classed("legendcandle",!0).attr("d",function(E,R){return R?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(E,R){var N=Ya.select(this),I=L[R?"increasing":"decreasing"],H=u(void 0,I.line,Vu,fs);N.style("stroke-width",H+"px").call(Yn.fill,I.fillcolor),H&&Yn.stroke(N,I.line.color)})}function _(A){var L=A[0].trace,D=Ya.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(L.visible&&L.type==="ohlc"?[A,A]:[]);D.enter().append("path").classed("legendohlc",!0).attr("d",function(E,R){return R?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(E,R){var N=Ya.select(this),I=L[R?"increasing":"decreasing"],H=u(void 0,I.line,Vu,fs);N.style("fill","none").call(Mn.dashLine,I.line.dash,H),H&&Yn.stroke(N,I.line.color)})}function w(A){M(A,this,"pie")}function x(A){M(A,this,"funnelarea")}function M(A,L,D){var E=A[0],R=E.trace,N=D?R.visible&&R.type===D:U2.traceIs(R,D),I=Ya.select(L).select("g.legendpoints").selectAll("path.legend"+D).data(N?[A]:[]);if(I.enter().append("path").classed("legend"+D,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),I.exit().remove(),I.size()){var H=R.marker||{},V=u(xee(H.line.width,E.pts),H.line,Vu,fs),W="pieLike",Y=Ea.minExtend(R,{marker:{line:{width:V}}},W),O=Ea.minExtend(E,{trace:Y},W);gee(I,O,Y,t)}}function k(A){var L=A[0].trace,D,E=[];if(L.visible)switch(L.type){case"histogram2d":case"heatmap":E=[["M-15,-2V4H15V-2Z"]],D=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":E=[["M-6,-6V6H6V-6Z"]],D=!0;break;case"densitymapbox":case"densitymap":E=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],D="radial";break;case"cone":E=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],D=!1;break;case"streamtube":E=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],D=!1;break;case"surface":E=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],D=!0;break;case"mesh3d":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!1;break;case"volume":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!0;break;case"isosurface":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],D=!1;break}var R=Ya.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(E);R.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(N,I){var H=Ya.select(this),V=V2(L),W=V.colorscale,Y=V.reversescale,O=function(re){if(re.size()){var le="legendfill-"+L.uid;Mn.gradient(re,t,le,W2(Y,D==="radial"),W,"fill")}},G;if(W){if(!D){var $=W.length;G=I===0?W[Y?$-1:0][1]:I===1?W[Y?0:$-1][1]:W[Math.floor(($-1)/2)][1]}}else{var J=L.vertexcolor||L.facecolor||L.color;G=Ea.isArrayOrTypedArray(J)?J[I]||J[0]:J}H.attr("d",N[0]),G?H.call(Yn.fill,G):H.call(O)})}};function W2(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function QA(e){var r=e[0].trace,t=r.contours,a=Nd.hasLines(r),n=Nd.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",l=!1,o=!1;if(t){var s=t.coloring;s==="lines"?l=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(o=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:l,showGradientFill:o,anyLine:a||l,anyFill:i||o}}function jA(e,r,t){return e&&Ea.isArrayOrTypedArray(e)?r:e>t?t:e}});var K2=B((Yge,fk)=>{"use strict";var sn=kr(),Gt=Pe(),J2=St(),Zu=yr(),rk=Sc(),Z2=mi(),Ut=Br(),Id=xr(),cs=va(),tk=IA(),$t=Y2(),$2=Sa(),sk=$2.LINE_SPACING,Xu=$2.FROM_TL,ak=$2.FROM_BR,nk=YA(),wee=X2(),ik=Rd(),Wu=1,Tee=/^legend[0-9]*$/;fk.exports=function(r,t){if(t)lk(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=sn.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(Tee)&&n.indexOf(c)===-1&&u.remove()});for(var l=0;l1)}var p=a.hiddenlabels||[];if(!o&&(!a.showlegend||!s.length))return l.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),J2.autoMargin(e,n);var y=Gt.ensureSingle(l,"g",n,function(L){o||L.attr("pointer-events","all")}),m=Gt.ensureSingleById(a._topdefs,"clipPath",i,function(L){L.append("rect")}),b=Gt.ensureSingle(y,"rect","bg",function(L){L.attr("shape-rendering","crispEdges")});b.call(Id.stroke,t.bordercolor).call(Id.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var _=Gt.ensureSingle(y,"g","scrollbox"),w=t.title;t._titleWidth=0,t._titleHeight=0;var x;w.text?(x=Gt.ensureSingle(_,"text",n+"titletext"),x.attr("text-anchor","start").call(Ut.font,w.font).text(w.text),Hd(x,_,e,t,Wu)):_.selectAll("."+n+"titletext").remove();var M=Gt.ensureSingle(y,"rect","scrollbar",function(L){L.attr($t.scrollBarEnterAttrs).call(Id.fill,$t.scrollBarColor)}),k=_.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var A=k.selectAll("g.traces").data(Gt.identity);A.enter().append("g").attr("class","traces"),A.exit().remove(),A.style("opacity",function(L){var D=L[0].trace;return Zu.traceIs(D,"pie-like")?p.indexOf(L[0].label)!==-1?.5:1:D.visible==="legendonly"?.5:1}).each(function(){sn.select(this).call(Aee,e,t)}).call(wee,e,t).each(function(){o||sn.select(this).call(kee,e,n)}),Gt.syncOrAsync([J2.previousPromises,function(){return Lee(e,k,A,t)},function(){var L=a._size,D=t.borderwidth,E=t.xref==="paper",R=t.yref==="paper";if(w.text&&Mee(x,t,D),!o){var N,I;E?N=L.l+L.w*t.x-Xu[Od(t)]*t._width:N=a.width*t.x-Xu[Od(t)]*t._width,R?I=L.t+L.h*(1-t.y)-Xu[Bd(t)]*t._effHeight:I=a.height*(1-t.y)-Xu[Bd(t)]*t._effHeight;var H=See(e,n,N,I);if(H)return;if(a.margin.autoexpand){var V=N,W=I;N=E?Gt.constrain(N,0,a.width-t._width):V,I=R?Gt.constrain(I,0,a.height-t._effHeight):W,N!==V&&Gt.log("Constrain "+n+".x to make legend fit inside graph"),I!==W&&Gt.log("Constrain "+n+".y to make legend fit inside graph")}Ut.setTranslate(y,N,I)}if(M.on(".drag",null),y.on("wheel",null),o||t._height<=t._maxHeight||e._context.staticPlot){var Y=t._effHeight;o&&(Y=t._height),b.attr({width:t._width-D,height:Y-D,x:D/2,y:D/2}),Ut.setTranslate(_,0,0),m.select("rect").attr({width:t._width-2*D,height:Y-2*D,x:D,y:D}),Ut.setClipUrl(_,i,e),Ut.setRect(M,0,0,0,0),delete t._scrollY}else{var O=Math.max($t.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),G=t._effHeight-O-2*$t.scrollBarMargin,J=t._height-t._effHeight,$=G/J,re=Math.min(t._scrollY||0,J);b.attr({width:t._width-2*D+$t.scrollBarWidth+$t.scrollBarMargin,height:t._effHeight-D,x:D/2,y:D/2}),m.select("rect").attr({width:t._width-2*D+$t.scrollBarWidth+$t.scrollBarMargin,height:t._effHeight-2*D,x:D,y:D+re}),Ut.setClipUrl(_,i,e),fe(re,O,$),y.on("wheel",function(){re=Gt.constrain(t._scrollY+sn.event.deltaY/G*J,0,J),fe(re,O,$),re!==0&&re!==J&&sn.event.preventDefault()});var le,se,ve,Q=function(ge,Me,xe){var ze=(xe-Me)/$+ge;return Gt.constrain(ze,0,J)},_e=function(ge,Me,xe){var ze=(Me-xe)/$+ge;return Gt.constrain(ze,0,J)},ce=sn.behavior.drag().on("dragstart",function(){var ge=sn.event.sourceEvent;ge.type==="touchstart"?le=ge.changedTouches[0].clientY:le=ge.clientY,ve=re}).on("drag",function(){var ge=sn.event.sourceEvent;ge.buttons===2||ge.ctrlKey||(ge.type==="touchmove"?se=ge.changedTouches[0].clientY:se=ge.clientY,re=Q(ve,le,se),fe(re,O,$))});M.call(ce);var be=sn.behavior.drag().on("dragstart",function(){var ge=sn.event.sourceEvent;ge.type==="touchstart"&&(le=ge.changedTouches[0].clientY,ve=re)}).on("drag",function(){var ge=sn.event.sourceEvent;ge.type==="touchmove"&&(se=ge.changedTouches[0].clientY,re=_e(ve,le,se),fe(re,O,$))});_.call(be)}function fe(ge,Me,xe){t._scrollY=e._fullLayout[n]._scrollY=ge,Ut.setTranslate(_,0,-ge),Ut.setRect(M,t._width,$t.scrollBarMargin+ge*xe,$t.scrollBarWidth,Me),m.select("rect").attr("y",D+ge)}if(e._context.edits.legendPosition){var ye,U,te,X;y.classed("cursor-move",!0),Z2.init({element:y.node(),gd:e,prepFn:function(ge){if(ge.target!==M.node()){var Me=Ut.getTranslate(y);te=Me.x,X=Me.y}},moveFn:function(ge,Me){if(te!==void 0&&X!==void 0){var xe=te+ge,ze=X+Me;Ut.setTranslate(y,xe,ze),ye=Z2.align(xe,t._width,L.l,L.l+L.w,t.xanchor),U=Z2.align(ze+t._height,-t._height,L.t+L.h,L.t,t.yanchor)}},doneFn:function(){if(ye!==void 0&&U!==void 0){var ge={};ge[n+".x"]=ye,ge[n+".y"]=U,Zu.call("_guiRelayout",e,ge)}},clickFn:function(ge,Me){var xe=l.selectAll("g.traces").filter(function(){var ze=this.getBoundingClientRect();return Me.clientX>=ze.left&&Me.clientX<=ze.right&&Me.clientY>=ze.top&&Me.clientY<=ze.bottom});xe.size()>0&&uk(e,y,xe,ge,Me)}})}}],e)}}function Fd(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,l=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*l:t+(l||n)}function uk(e,r,t,a,n){var i=t.data()[0][0].trace,l={event:n,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(l.group=i._group),Zu.traceIs(i,"pie-like")&&(l.label=t.datum()[0].label);var o=rk.triggerHandler(e,"plotly_legendclick",l);if(a===1){if(o===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&tk(t,e,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var s=rk.triggerHandler(e,"plotly_legenddoubleclick",l);s!==!1&&o!==!1&&tk(t,e,a)}}function Aee(e,r,t){var a=Yd(t),n=e.data()[0][0],i=n.trace,l=Zu.traceIs(i,"pie-like"),o=!t._inHover&&r._context.edits.legendText&&!l,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=l?n.label:i.name,i._meta&&(u=Gt.templateString(u,i._meta))));var c=Gt.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(Ut.font,f).text(o?ok(u,s):u);var h=t.indentation+t.itemwidth+$t.itemGap*2;cs.positionText(c,h,0),o?c.call(cs.makeEditable,{gd:r,text:u}).call(Hd,e,r,t).on("edit",function(d){this.text(ok(d,s)).call(Hd,e,r,t);var p=n.trace._fullInput||{},y={};return y.name=d,p._isShape?Zu.call("_guiRelayout",r,"shapes["+i.index+"].name",y.name):Zu.call("_guiRestyle",r,y,i.index)}):Hd(c,e,r,t)}function ok(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function kee(e,r,t){var a=r._context.doubleClickDelay,n,i=1,l=Gt.ensureSingle(e,"rect",t+"toggle",function(o){r._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call(Id.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(l.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),uk(r,o,e,i,sn.event)}}))}function Hd(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),cs.convertToTspans(e,t,function(){qee(r,t,a,n)})}function qee(e,r,t,a){var n=e.data()[0][0];if(!t._inHover&&n&&!n.trace.showlegend){e.remove();return}var i=e.select("g[class*=math-group]"),l=i.node(),o=Yd(t);t||(t=r._fullLayout[o]);var s=t.borderwidth,u;a===Wu?u=t.title.font:n.groupTitle?u=n.groupTitle.font:u=t.font;var f=u.size*sk,c,h;if(l){var d=Ut.bBox(l);c=d.height,h=d.width,a===Wu?Ut.setTranslate(i,s,s+c*.75):Ut.setTranslate(i,0,c*.25)}else{var p="."+o+(a===Wu?"title":"")+"text",y=e.select(p),m=cs.lineCount(y),b=y.node();if(c=f*m,h=b?Ut.bBox(b).width:0,a===Wu)t.title.side==="left"&&(h+=$t.itemGap*2),cs.positionText(y,s+$t.titlePad,s+f);else{var _=$t.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(_=$t.itemGap,h-=t.indentation+t.itemwidth),cs.positionText(y,_,-f*((m-1)/2-.3))}}a===Wu?(t._titleWidth=h,t._titleHeight=c):(n.lineHeight=f,n.height=Math.max(c,16)+3,n.width=h)}function Cee(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function Lee(e,r,t,a){var n=e._fullLayout,i=Yd(a);a||(a=n[i]);var l=n._size,o=ik.isVertical(a),s=ik.isGrouped(a),u=a.entrywidthmode==="fraction",f=a.borderwidth,c=2*f,h=$t.itemGap,d=a.indentation+a.itemwidth+h*2,p=2*(f+h),y=Bd(a),m=a.y<0||a.y===0&&y==="top",b=a.y>1||a.y===1&&y==="bottom",_=a.tracegroupgap,w={},{maxheight:x,orientation:M,yref:k}=a,A=M==="v"&&k==="paper"?l.h:n.height;a._maxHeight=Math.max(x>1?x:x*A,30);var L=0;a._width=0,a._height=0;var D=Cee(a);if(o)t.each(function(be){var fe=be[0].height;Ut.setTranslate(this,f+D[0],f+D[1]+a._height+fe/2+h),a._height+=fe,a._width=Math.max(a._width,be[0].width)}),L=d+a._width,a._width+=h+d+c,a._height+=p,s&&(r.each(function(be,fe){Ut.setTranslate(this,0,fe*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var E=Od(a),R=a.x<0||a.x===0&&E==="right",N=a.x>1||a.x===1&&E==="left",I=b||m,H=n.width/2;a._maxWidth=Math.max(R?I&&E==="left"?l.l+l.w:H:N?I&&E==="right"?l.r+l.w:H:l.w,2*d);var V=0,W=0;t.each(function(be){var fe=Fd(be,a,d);V=Math.max(V,fe),W+=fe}),L=null;var Y=0;if(s){var O=0,G=0,J=0;r.each(function(){var be=0,fe=0;sn.select(this).selectAll("g.traces").each(function(U){var te=Fd(U,a,d),X=U[0].height;Ut.setTranslate(this,D[0],D[1]+f+h+X/2+fe),fe+=X,be=Math.max(be,te),w[U[0].trace.legendgroup]=be});var ye=be+h;G>0&&ye+f+G>a._maxWidth?(Y=Math.max(Y,G),G=0,J+=O+_,O=fe):O=Math.max(O,fe),Ut.setTranslate(this,G,J),G+=ye}),a._width=Math.max(Y,G)+f,a._height=J+O+p}else{var $=t.size(),re=W+c+($-1)*h=a._maxWidth&&(Y=Math.max(Y,Q),se=0,ve+=le,a._height+=le,le=0),Ut.setTranslate(this,D[0]+f+se,D[1]+f+ve+fe/2+h),Q=se+ye+h,se+=U,le=Math.max(le,fe)}),re?(a._width=se+c,a._height=le+p):(a._width=Math.max(Y,Q)+c,a._height+=le+p)}}a._width=Math.ceil(Math.max(a._width+D[0],a._titleWidth+2*(f+$t.titlePad))),a._height=Math.ceil(Math.max(a._height+D[1],a._titleHeight+2*(f+$t.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var _e=e._context.edits,ce=_e.legendText||_e.legendPosition;t.each(function(be){var fe=sn.select(this).select("."+i+"toggle"),ye=be[0].height,U=be[0].trace.legendgroup,te=Fd(be,a,d);s&&U!==""&&(te=w[U]);var X=ce?d:L||te;!o&&!u&&(X+=h/2),Ut.setRect(fe,0,-ye/2,X,ye)})}function See(e,r,t,a){var n=e._fullLayout,i=n[r],l=Od(i),o=Bd(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",h={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return J2.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*Xu[l],r:i._width*ak[l],b:i._effHeight*ak[o],t:i._effHeight*Xu[o]});s?e._fullLayout._reservedMargin[r][f]=h[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=h[c]:e._fullLayout._reservedMargin[r][f]=h[f]}function Od(e){return Gt.isRightAnchor(e)?"right":Gt.isCenterAnchor(e)?"center":"left"}function Bd(e){return Gt.isBottomAnchor(e)?"bottom":Gt.isMiddleAnchor(e)?"middle":"top"}function Yd(e){return e._id||"legend"}});var r3=B(e3=>{"use strict";var vs=kr(),hl=zr(),ck=Rn(),Dt=Pe(),Dee=Dt.pushUnique,Q2=Dt.strTranslate,Eee=Dt.strRotate,Pee=Sc(),Gn=va(),Ree=RA(),Ui=Br(),ta=xr(),Gd=mi(),Vi=$r(),zee=wa().zindexSeparator,$u=yr(),yi=Hi(),hs=xc(),Nee=H2(),Fee=K2(),xk=hs.YANGLE,j2=Math.PI*xk/180,Iee=1/Math.sin(j2),Hee=Math.cos(j2),Oee=Math.sin(j2),Tt=hs.HOVERARROWSIZE,Or=hs.HOVERTEXTPAD,vk={box:!0,ohlc:!0,violin:!0,candlestick:!0},Bee={scatter:!0,scattergl:!0,splom:!0};function hk(e,r){return e.distance-r.distance}e3.hover=function(r,t,a,n){r=Dt.getGraphDiv(r);var i=t.target;Dt.throttle(r._fullLayout._uid+hs.HOVERID,hs.HOVERMINTIME,function(){Yee(r,t,a,n,i)})};e3.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=Mk(n),l=Ak(n),o=r.map(function(m){var b=m._x0||m.x0||m.x||0,_=m._x1||m.x1||m.x||0,w=m._y0||m.y0||m.y||0,x=m._y1||m.y1||m.y||0,M=m.eventData;if(M){var k=Math.min(b,_),A=Math.max(b,_),L=Math.min(w,x),D=Math.max(w,x),E=m.trace;if($u.traceIs(E,"gl3d")){var R=n._fullLayout[E.scene]._scene.container,N=R.offsetLeft,I=R.offsetTop;k+=N,A+=N,L+=I,D+=I}M.bbox={x0:k+l,x1:A+l,y0:L+i,y1:D+i},t.inOut_bbox&&t.inOut_bbox.push(M.bbox)}else M=!1;return{color:m.color||ta.defaultLine,x0:m.x0||m.x||0,x1:m.x1||m.x||0,y0:m.y0||m.y||0,y1:m.y1||m.y||0,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:m.text,name:m.name,idealAlign:m.idealAlign,borderColor:m.borderColor,fontFamily:m.fontFamily,fontSize:m.fontSize,fontColor:m.fontColor,fontWeight:m.fontWeight,fontStyle:m.fontStyle,fontVariant:m.fontVariant,nameLength:m.nameLength,textAlign:m.textAlign,trace:m.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:m.hovertemplate||!1,hovertemplateLabels:m.hovertemplateLabels||!1,eventData:M}}),s=!1,u=_k(o,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||ta.background,container:vs.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,c=5,h=0,d=0;f.sort(function(m,b){return m.y0-b.y0}).each(function(m,b){var _=m.y0-m.by/2;_-cA[0]._length||X<0||X>L[0]._length)return Gd.unhoverRaw(e,r)}if(r.pointerX=te+A[0]._offset,r.pointerY=X+L[0]._offset,"xval"in r?W=yi.flat(i,r.xval):W=yi.p2c(A,te),"yval"in r?Y=yi.flat(i,r.yval):Y=yi.p2c(L,X),!hl(W[0])||!hl(Y[0]))return Dt.warn("Fx.hover failed",r,e),Gd.unhoverRaw(e,r)}var xe=1/0;function ze(gr,ft){for(G=0;Gce&&(H.splice(0,ce),xe=H[0].distance),c&&I!==0&&H.length===0){_e.distance=I,_e.index=!1;var _t=$._module.hoverPoints(_e,ve,Q,"closest",{hoverLayer:o._hoverlayer});if(_t&&(_t=_t.filter(function(lt){return lt.spikeDistance<=I})),_t&&_t.length){var Fa,fa=_t.filter(function(lt){return lt.xa.showspikes&<.xa.spikesnap!=="hovered data"});if(fa.length){var ai=fa[0];hl(ai.x0)&&hl(ai.y0)&&(Fa=Ee(ai),(!be.vLinePoint||be.vLinePoint.spikeDistance>Fa.spikeDistance)&&(be.vLinePoint=Fa))}var ni=_t.filter(function(lt){return lt.ya.showspikes&<.ya.spikesnap!=="hovered data"});if(ni.length){var Qt=ni[0];hl(Qt.x0)&&hl(Qt.y0)&&(Fa=Ee(Qt),(!be.hLinePoint||be.hLinePoint.spikeDistance>Fa.spikeDistance)&&(be.hLinePoint=Fa))}}}}}ze();function Ie(gr,ft,Xr){for(var bt=null,Lt=1/0,ct,_t=0;_t0&&Math.abs(gr.distance)Le-1;lr--)cr(H[lr]);H=Ue,Re()}var Fe=e._hoverdata,ne=[],ue=Mk(e),Se=Ak(e);for(O=0;O1||H.length>1)||h==="closest"&&fe&&H.length>1,Sn=ta.combine(o.plot_bgcolor||ta.background,o.paper_bgcolor),Za=_k(H,{gd:e,hovermode:h,rotateLabels:sa,bgColor:Sn,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),ua=Za.hoverLabels;if(yi.isUnifiedHover(h)||(Uee(ua,sa,o,Za.commonLabelBoundingBox),Tk(ua,sa,o._invScaleX,o._invScaleY)),n&&n.tagName){var Ja=$u.getComponentMethod("annotations","hasClickToShow")(e,ne);Ree(vs.select(n),Ja?"pointer":"")}!n||a||!Xee(e,r,Fe)||(Fe&&e.emit("plotly_unhover",{event:r,points:Fe}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:A,yaxes:L,xvals:W,yvals:Y}))}function bk(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Gee=/([\s\S]*)<\/extra>/;function _k(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,l=r.bgColor,o=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||hs.HOVERFONT,c=r.fontSize||hs.HOVERFONTSIZE,h=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,p=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,m=r.fontLineposition||a.font.lineposition,b=r.fontShadow||a.font.shadow,_=e[0],w=_.xa,x=_.ya,M=n.charAt(0),k=M+"Label",A=_[k];if(A===void 0&&w.type==="multicategory")for(var L=0;La.width-Fe&&(ne=a.width-Fe),sr.attr("d","M"+($e-ne)+",0L"+($e-ne+Tt)+","+lr+Tt+"H"+Fe+"v"+lr+(Or*2+He.height)+"H"+-Fe+"V"+lr+Tt+"H"+($e-ne-Tt)+"Z"),$e=ne,G.minX=$e-Fe,G.maxX=$e+Fe,w.side==="top"?(G.minY=cr-(Or*2+He.height),G.maxY=cr-Or):(G.minY=cr+Or,G.maxY=cr+(Or*2+He.height))}else{var ue,Se,qe;x.side==="right"?(ue="start",Se=1,qe="",$e=w._offset+w._length):(ue="end",Se=-1,qe="-",$e=w._offset),cr=x._offset+(_.y0+_.y1)/2,tr.attr("text-anchor",ue),sr.attr("d","M0,0L"+qe+Tt+","+Tt+"V"+(Or+He.height/2)+"h"+qe+(Or*2+He.width)+"V-"+(Or+He.height/2)+"H"+qe+Tt+"V-"+Tt+"Z"),G.minY=cr-(Or+He.height/2),G.maxY=cr+(Or+He.height/2),x.side==="right"?(G.minX=$e+Tt,G.maxX=$e+Tt+(Or*2+He.width)):(G.minX=$e-Tt-(Or*2+He.width),G.maxX=$e-Tt);var ir=He.height/2,vr=E-He.top-ir,ur="clip"+a._uid+"commonlabel"+x._id,Ar;if($e=0?Oe=Ye:Xe+X=0?Oe=Xe:Re+X=0?ie=Ee:Ne+ge=0?ie=Ne:Be+ge=0,(Ce.idealAlign==="top"||!Wr)&&Nt?(qe-=vr/2,Ce.anchor="end"):Wr?(qe+=vr/2,Ce.anchor="start"):Ce.anchor="middle",Ce.crossPos=qe;else{if(Ce.pos=qe,Wr=Se+ir/2+et<=R,Nt=Se-ir/2-et>=0,(Ce.idealAlign==="left"||!Wr)&&Nt)Se-=ir/2,Ce.anchor="end";else if(Wr)Se+=ir/2,Ce.anchor="start";else{Ce.anchor="middle";var oa=et/2,Na=Se+oa-R,sa=Se-oa;Na>0&&(Se-=Na),sa<0&&(Se+=-sa)}Ce.crossPos=Se}cr.attr("text-anchor",Ce.anchor),Fe&&lr.attr("text-anchor",Ce.anchor),sr.attr("transform",Q2(Se,qe)+(i?Eee(xk):""))}),{hoverLabels:ke,commonLabelBoundingBox:G}}function dk(e,r,t,a,n,i){var l="",o="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Dt.templateString(e.name,e.trace._meta)),l=yk(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(o+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(o+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(o+=(o?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?o=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(o=e.yLabel):e.yLabel===void 0?o=e.xLabel:o="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(o+=(o?"
":"")+e.text),e.extraText!==void 0&&(o+=(o?"
":"")+e.extraText),i&&o===""&&!e.hovertemplate&&(l===""&&i.remove(),o=l);var f=e.hovertemplate||!1;if(f){var c=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(c[s+"other"]=c[s+"Val"],c[s+"otherLabel"]=c[s+"Label"]),o=Dt.hovertemplateString(f,c,a._d3locale,e.eventData[0]||{},e.trace._meta),o=o.replace(Gee,function(h,d){return l=yk(d,e.nameLength),""})}return[o,l]}function Uee(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",l=0,o=1,s=e.size(),u=new Array(s),f=0,c=a.minX,h=a.maxX,d=a.minY,p=a.maxY,y=function(W){return W*t._invScaleX},m=function(W){return W*t._invScaleY};e.each(function(W){var Y=W[n],O=W[i],G=Y._id.charAt(0)==="x",J=Y.range;f===0&&J&&J[0]>J[1]!==G&&(o=-1);var $=0,re=G?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var le=wk(W,r),se=W.anchor,ve=se==="end"?-1:1,Q,_e;if(se==="middle")Q=W.crossPos+(G?m(le.y-W.by/2):y(W.bx/2+W.tx2width/2)),_e=Q+(G?m(W.by):y(W.bx));else if(G)Q=W.crossPos+m(Tt+le.y)-m(W.by/2-Tt),_e=Q+m(W.by);else{var ce=y(ve*Tt+le.x),be=ce+y(ve*W.bx);Q=W.crossPos+Math.min(ce,be),_e=W.crossPos+Math.max(ce,be)}G?d!==void 0&&p!==void 0&&Math.min(_e,p)-Math.max(Q,d)>1&&(O.side==="left"?($=O._mainLinePosition,re=t.width):re=O._mainLinePosition):c!==void 0&&h!==void 0&&Math.min(_e,h)-Math.max(Q,c)>1&&(O.side==="top"?($=O._mainLinePosition,re=t.height):re=O._mainLinePosition)}u[f++]=[{datum:W,traceIndex:W.trace.index,dp:0,pos:W.pos,posref:W.posref,size:W.by*(G?Iee:1)/2,pmin:$,pmax:re}]}),u.sort(function(W,Y){return W[0].posref-Y[0].posref||o*(Y[0].traceIndex-W[0].traceIndex)});var b,_,w,x,M,k,A;function L(W){var Y=W[0],O=W[W.length-1];if(_=Y.pmin-Y.pos-Y.dp+Y.size,w=O.pos+O.dp+O.size-Y.pmax,_>.01){for(M=W.length-1;M>=0;M--)W[M].dp+=_;b=!1}if(!(w<.01)){if(_<-.01){for(M=W.length-1;M>=0;M--)W[M].dp-=w;b=!1}if(b){var G=0;for(x=0;xY.pmax&&G++;for(x=W.length-1;x>=0&&!(G<=0);x--)k=W[x],k.pos>Y.pmax-1&&(k.del=!0,G--);for(x=0;x=0;M--)W[M].dp-=w;for(x=W.length-1;x>=0&&!(G<=0);x--)k=W[x],k.pos+k.dp+k.size>Y.pmax&&(k.del=!0,G--)}}}for(;!b&&l<=s;){for(l++,b=!0,x=0;x.01){for(M=E.length-1;M>=0;M--)E[M].dp+=_;for(D.push.apply(D,E),u.splice(x+1,1),A=0,M=D.length-1;M>=0;M--)A+=D[M].dp;for(w=A/D.length,M=D.length-1;M>=0;M--)D[M].dp-=w;b=!1}else x++}u.forEach(L)}for(x=u.length-1;x>=0;x--){var I=u[x];for(M=I.length-1;M>=0;M--){var H=I[M],V=H.datum;V.offset=H.dp,V.del=H.del}}}function wk(e,r){var t=0,a=e.offset;return r&&(a*=-Oee,t=e.offset*Hee),{x:t,y:a}}function Vee(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Tt+Or),a=t+r*(e.txwidth+Or),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Or),{alignShift:r,textShiftX:t,text2ShiftX:a}}function Tk(e,r,t,a){var n=function(l){return l*t},i=function(l){return l*a};e.each(function(l){var o=vs.select(this);if(l.del)return o.remove();var s=o.select("text.nums"),u=l.anchor,f=u==="end"?-1:1,c=Vee(l),h=wk(l,r),d=h.x,p=h.y,y=u==="middle";o.select("path").attr("d",y?"M-"+n(l.bx/2+l.tx2width/2)+","+i(p-l.by/2)+"h"+n(l.bx)+"v"+i(l.by)+"h-"+n(l.bx)+"Z":"M0,0L"+n(f*Tt+d)+","+i(Tt+p)+"v"+i(l.by/2-Tt)+"h"+n(f*l.bx)+"v-"+i(l.by)+"H"+n(f*Tt+d)+"V"+i(p-Tt)+"Z");var m=d+c.textShiftX,b=p+l.ty0-l.by/2+Or,_=l.textAlign||"auto";_!=="auto"&&(_==="left"&&u!=="start"?(s.attr("text-anchor","start"),m=y?-l.bx/2-l.tx2width/2+Or:-l.bx-Or):_==="right"&&u!=="end"&&(s.attr("text-anchor","end"),m=y?l.bx/2-l.tx2width/2-Or:l.bx+Or)),s.call(Gn.positionText,n(m),i(b)),l.tx2width&&(o.select("text.name").call(Gn.positionText,n(c.text2ShiftX+c.alignShift*Or+d),i(p+l.ty0-l.by/2+Or)),o.select("rect").call(Ui.setRect,n(c.text2ShiftX+(c.alignShift-1)*l.tx2width/2+d),i(p-l.by/2-1),n(l.tx2width),i(l.by+2)))})}function Wee(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function l(h){return h||hl(h)&&h===0}var o=Array.isArray(t)?function(h,d){var p=Dt.castOption(n,t,h);return l(p)?p:Dt.extractOption({},a,"",d)}:function(h,d){return Dt.extractOption(i,a,h,d)};function s(h,d,p){var y=o(d,p);l(y)&&(e[h]=y)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Dt.constrain(e.x0,0,e.xa._length),e.x1=Dt.constrain(e.x1,0,e.xa._length),e.y0=Dt.constrain(e.y0,0,e.ya._length),e.y1=Dt.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Vi.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Vi.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=Vi.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Vi.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Vi.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Vi.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function pk(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,l=t.event,o=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||o)){var c=ta.combine(n.plot_bgcolor,n.paper_bgcolor);if(o){var h=r.hLinePoint,d,p;u=h&&h.xa,f=h&&h.ya;var y=f.spikesnap;y==="cursor"?(d=l.pointerX,p=l.pointerY):(d=u._offset+h.x,p=f._offset+h.y);var m=ck.readability(h.color,c)<1.5?ta.contrast(c):h.color,b=f.spikemode,_=f.spikethickness,w=f.spikecolor||m,x=Vi.getPxPosition(e,f),M,k;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(M=x,k=d),b.indexOf("across")!==-1){var A=f._counterDomainMin,L=f._counterDomainMax;f.anchor==="free"&&(A=Math.min(A,f.position),L=Math.max(L,f.position)),M=i.l+A*i.w,k=i.l+L*i.w}a.insert("line",":first-child").attr({x1:M,x2:k,y1:p,y2:p,"stroke-width":_,stroke:w,"stroke-dasharray":Ui.dashStyle(f.spikedash,_)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:M,x2:k,y1:p,y2:p,"stroke-width":_+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:x+(f.side!=="right"?_:-_),cy:p,r:_,fill:w}).classed("spikeline",!0)}if(s){var D=r.vLinePoint,E,R;u=D&&D.xa,f=D&&D.ya;var N=u.spikesnap;N==="cursor"?(E=l.pointerX,R=l.pointerY):(E=u._offset+D.x,R=f._offset+D.y);var I=ck.readability(D.color,c)<1.5?ta.contrast(c):D.color,H=u.spikemode,V=u.spikethickness,W=u.spikecolor||I,Y=Vi.getPxPosition(e,u),O,G;if(H.indexOf("toaxis")!==-1||H.indexOf("across")!==-1){if(H.indexOf("toaxis")!==-1&&(O=Y,G=R),H.indexOf("across")!==-1){var J=u._counterDomainMin,$=u._counterDomainMax;u.anchor==="free"&&(J=Math.min(J,u.position),$=Math.max($,u.position)),O=i.t+(1-$)*i.h,G=i.t+(1-J)*i.h}a.insert("line",":first-child").attr({x1:E,x2:E,y1:O,y2:G,"stroke-width":V,stroke:W,"stroke-dasharray":Ui.dashStyle(u.spikedash,V)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:E,x2:E,y1:O,y2:G,"stroke-width":V+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}H.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:E,cy:Y-(u.side!=="top"?V:-V),r:V,fill:W}).classed("spikeline",!0)}}}function Xee(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers))return!0}return!1}function mk(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function yk(e,r){return Gn.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Zee(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;l{"use strict";var Jee=Pe(),$ee=xr(),Kee=Hi().isUnifiedHover;kk.exports=function(r,t,a,n){n=n||{};var i=t.legend;function l(o){n.font[o]||(n.font[o]=i?t.legend.font[o]:t.font[o])}t&&Kee(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=$ee.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),Jee.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var Ck=B((Vge,qk)=>{"use strict";var Qee=Pe(),jee=Ud(),ere=du();qk.exports=function(r,t){function a(n,i){return Qee.coerce(r,t,ere,n,i)}jee(r,t,a)}});var Dk=B((Wge,Sk)=>{"use strict";var Lk=Pe(),rre=bc(),tre=Ud();Sk.exports=function(r,t,a,n){function i(o,s){return Lk.coerce(r,t,rre,o,s)}var l=Lk.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),tre(r,t,i,l)}});var t3=B((Xge,Ek)=>{"use strict";var are=Pe(),nre=du();Ek.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:are.coerce(r,t,nre,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var zk=B((Zge,Rk)=>{"use strict";var Pk=Pe(),ire=du(),lre=t3(),ore=Ud();Rk.exports=function(r,t){function a(f,c){return Pk.coerce(r,t,ire,f,c)}var n=lre(r,t);n&&(a("hoverdistance"),a("spikedistance"));var i=a("dragmode");i==="select"&&a("selectdirection");var l=t._has("mapbox"),o=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((l||o||s)&&u===1||(l||o)&&s&&u===2)&&(t.dragmode="pan"),ore(r,t,a),Pk.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var Ik=B((Jge,Fk)=>{"use strict";var a3=Pe(),Nk=yr();Fk.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return a3.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var ure=yr(),fre=r3().hover;Hk.exports=function(r,t,a){var n=ure.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&fre(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var gi=B((Kge,Gk)=>{"use strict";var cre=kr(),Vd=Pe(),vre=mi(),Kc=Hi(),Bk=du(),Yk=r3();Gk.exports={moduleType:"component",name:"fx",constants:xc(),schema:{layout:Bk},attributes:bc(),layoutAttributes:Bk,supplyLayoutGlobalDefaults:Ck(),supplyDefaults:Dk(),supplyLayoutDefaults:zk(),calc:Ik(),getDistanceFunction:Kc.getDistanceFunction,getClosest:Kc.getClosest,inbox:Kc.inbox,quadrature:Kc.quadrature,appendArrayPointValue:Kc.appendArrayPointValue,castHoverOption:dre,castHoverinfo:pre,hover:Yk.hover,unhover:vre.unhover,loneHover:Yk.loneHover,loneUnhover:hre,click:Ok()};function hre(e){var r=Vd.isD3Selection(e)?e:cre.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function dre(e,r,t){return Vd.castOption(e,r,"hoverlabel."+t)}function pre(e,r,t){function a(n){return Vd.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return Vd.castOption(e,t,"hoverinfo",a)}});var Ku=B(dl=>{"use strict";dl.selectMode=function(e){return e==="lasso"||e==="select"};dl.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};dl.openMode=function(e){return e==="drawline"||e==="drawopenpath"};dl.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};dl.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};dl.selectingOrDrawing=function(e){return dl.freeMode(e)||dl.rectMode(e)}});var Wd=B((jge,Uk)=>{"use strict";Uk.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var Xd=B((e2e,Vk)=>{"use strict";Vk.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var Jd=B((r2e,Wk)=>{"use strict";var Zd=32;Wk.exports={CIRCLE_SIDES:Zd,i000:0,i090:Zd/4,i180:Zd/2,i270:Zd/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var $d=B((t2e,Zk)=>{"use strict";var mre=Pe().strTranslate;function Xk(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function yre(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function gre(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return Xk(e,t[r])}}function xre(e){return mre(e.xaxis._offset,e.yaxis._offset)}Zk.exports={p2r:Xk,r2p:yre,axValue:gre,getTransform:xre}});var Ql=B(pl=>{"use strict";var bre=Wg(),Kk=Jd(),Qu=Kk.CIRCLE_SIDES,n3=Kk.SQRT2,Qk=$d(),Jk=Qk.p2r,$k=Qk.r2p,_re=[0,3,4,5,6,1,2],wre=[0,3,4,1,2];pl.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var aq=Ku(),Tre=aq.drawMode,Mre=aq.openMode,ju=Jd(),jk=ju.i000,eq=ju.i090,rq=ju.i180,tq=ju.i270,Are=ju.cos45,kre=ju.sin45,nq=$d(),Qd=nq.p2r,jl=nq.r2p,qre=Ul(),Cre=qre.clearOutline,jd=Ql(),Lre=jd.readPaths,Sre=jd.writePaths,Dre=jd.ellipseOver,Ere=jd.fixDatesForPaths;function Pre(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,l=(a.layout||{}).shapes||[];if(!Tre(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o{"use strict";var Rre=Ku(),zre=Rre.selectMode,Nre=Ul(),Fre=Nre.clearOutline,i3=Ql(),Ire=i3.readPaths,Hre=i3.writePaths,Ore=i3.fixDatesForPaths;oq.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,l=i._fullLayout.newselection,o=t.plotinfo,s=o.xaxis,u=o.yaxis,f=t.isActiveSelection,c=t.dragmode,h=(i.layout||{}).selections||[];if(!zre(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";sq.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var eo=B(ha=>{"use strict";var ds=jc(),uq=Pe(),r1=$r();ha.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};ha.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};ha.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};ha.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};ha.extractPathCoords=function(e,r,t){var a=[],n=e.match(ds.segmentRE);return n.forEach(function(i){var l=r[i.charAt(0)].drawn;if(l!==void 0){var o=i.substr(1).match(ds.paramRE);if(!(!o||o.lengthd&&(y="X"),y});return u>d&&(p=p.replace(/[\s,]*X.*/,""),uq.log("Ignoring extra params in segment "+s)),f+p})}function ev(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var s3=B((s2e,hq)=>{"use strict";var Yre=Pe(),ef=$r(),fq=va(),cq=Br(),Gre=Ql().readPaths,o3=eo(),Ure=o3.getPathString,vq=bh(),Vre=Sa().FROM_TL;hq.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var l={};if(a.type!=="path"){var o=ef.getFromId(r,a.xref),s=ef.getFromId(r,a.yref);for(var u in vq){var f=vq[u](a,o,s);f!==void 0&&(l[u]=f)}}i=Yre.texttemplateStringForShapes(a.label.texttemplate,{},r._fullLayout._d3locale,l)}else i=a.label.text;var c={"data-index":t},h=a.label.font,d={"data-notex":1},p=n.append("g").attr(c).classed("shape-label",!0),y=p.append("text").attr(d).classed("shape-label-text",!0).text(i),m,b,_,w;if(a.path){var x=Ure(r,a),M=Gre(x,r);m=1/0,_=1/0,b=-1/0,w=-1/0;for(var k=0;k=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function Xre(e,r,t,a,n,i,l){var o=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,h=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,y=n.label.yanchor,m,b,_,w;if(f==="line"){o==="start"?(m=e,b=r):o==="end"?(m=t,b=a):(m=(e+t)/2,b=(r+a)/2),p==="auto"&&(o==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var Zre=Pe(),Jre=Zre.strTranslate,dq=mi(),yq=Ku(),$re=yq.drawMode,gq=yq.selectMode,xq=yr(),pq=xr(),a1=Jd(),Kre=a1.i000,Qre=a1.i090,jre=a1.i180,ete=a1.i270,rte=Ul(),bq=rte.clearOutlineControllers,f3=Ql(),t1=f3.pointsOnRectangle,u3=f3.pointsOnEllipse,tte=f3.writePaths,ate=e1().newShapes,nte=e1().createShapeObj,ite=l3(),lte=s3();_q.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function l(){e(r,t,a,n++),(u3(r[0])||a.hasText)&&o({redrawing:!0})}function o(Y){var O={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,O=ate(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,O=ite(t,a),i._fullLayout._reselect=!0),Object.keys(O).length&&xq.call((Y||{}).redrawing?"relayout":"_guiRelayout",i,O)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=$re(f),h=gq(f);(c||h)&&(i._fullLayout._outlining=!0),bq(i),t.attr("d",tte(r));var d,p,y,m,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=ote([],r);var _=u.append("g").attr("class","outline-controllers");E(_),W()}if(c&&a.hasText){var w=u.select(".label-temp"),x=nte(t,a,a.dragmode);lte(i,"label-temp",x,w)}function M(Y){y=+Y.srcElement.getAttribute("data-i"),m=+Y.srcElement.getAttribute("data-j"),d[y][m].moveFn=k}function k(Y,O){if(r.length){var G=b[y][m][1],J=b[y][m][2],$=r[y],re=$.length;if(t1($)){var le=Y,se=O;if(a.isActiveSelection){var ve=mq($,m);ve[1]===$[m][1]?se=0:le=0}for(var Q=0;Q1&&!(Y.length===2&&Y[1][0]==="Z")&&(m===0&&(Y[0][0]="M"),r[y]=Y,l(),o())}}function D(Y,O){if(Y===2){y=+O.srcElement.getAttribute("data-i"),m=+O.srcElement.getAttribute("data-j");var G=r[y];!t1(G)&&!u3(G)&&L()}}function E(Y){d=[];for(var O=0;O{"use strict";var ute=kr(),qq=yr(),wq=Pe(),rf=$r(),fte=Ql().readPaths,cte=n1(),l1=s3(),Cq=Ul().clearOutlineControllers,c3=xr(),h3=Br(),vte=ot().arrayEditor,Tq=mi(),Mq=Kl(),ps=jc(),un=eo(),v3=un.getPathString;Dq.exports={draw:d3,drawOne:Lq,eraseActiveShape:pte,drawLabel:l1};function d3(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;nl&&Ye>o&&!Ie.shiftKey?Tq.getCursor(Xe/Ne,1-Re/Ye):"move";Mq(r,Be),_e=Be.split("-")[0]}}function ye(Ie){i1(e)||(s&&(b=$(t.xanchor)),u&&(_=re(t.yanchor)),t.type==="path"?R=t.path:(d=s?t.x0:$(t.x0),p=u?t.y0:re(t.y0),y=s?t.x1:$(t.x1),m=u?t.y1:re(t.y1)),dm?(w=p,A="y0",x=m,L="y1"):(w=m,A="y1",x=p,L="y0"),fe(Ie),Me(n,t),ze(r,t,e),Q.moveFn=_e==="move"?X:ge,Q.altKey=Ie.altKey)}function U(){i1(e)||(Mq(r),xe(n),Sq(r,e,t),qq.call("_guiRelayout",e,i.getUpdateObj()))}function te(){i1(e)||xe(n)}function X(Ie,Ee){if(t.type==="path"){var Ne=function(Re){return Re},Ye=Ne,Xe=Ne;s?h("xanchor",t.xanchor=le(b+Ie)):(Ye=function(Be){return le($(Be)+Ie)},I&&I.type==="date"&&(Ye=un.encodeDate(Ye))),u?h("yanchor",t.yanchor=se(_+Ee)):(Xe=function(Be){return se(re(Be)+Ee)},V&&V.type==="date"&&(Xe=un.encodeDate(Xe))),h("path",t.path=Aq(R,Ye,Xe))}else s?h("xanchor",t.xanchor=le(b+Ie)):(h("x0",t.x0=le(d+Ie)),h("x1",t.x1=le(y+Ie))),u?h("yanchor",t.yanchor=se(_+Ee)):(h("y0",t.y0=se(p+Ee)),h("y1",t.y1=se(m+Ee)));r.attr("d",v3(e,t)),Me(n,t),l1(e,a,t,N)}function ge(Ie,Ee){if(c){var Ne=function(He){return He},Ye=Ne,Xe=Ne;s?h("xanchor",t.xanchor=le(b+Ie)):(Ye=function($e){return le($($e)+Ie)},I&&I.type==="date"&&(Ye=un.encodeDate(Ye))),u?h("yanchor",t.yanchor=se(_+Ee)):(Xe=function($e){return se(re($e)+Ee)},V&&V.type==="date"&&(Xe=un.encodeDate(Xe))),h("path",t.path=Aq(R,Ye,Xe))}else if(f){if(_e==="resize-over-start-point"){var Re=d+Ie,Be=u?p-Ee:p+Ee;h("x0",t.x0=s?Re:le(Re)),h("y0",t.y0=u?Be:se(Be))}else if(_e==="resize-over-end-point"){var Oe=y+Ie,ie=u?m-Ee:m+Ee;h("x1",t.x1=s?Oe:le(Oe)),h("y1",t.y1=u?ie:se(ie))}}else{var ke=function(He){return _e.indexOf(He)!==-1},Ce=ke("n"),sr=ke("s"),tr=ke("w"),De=ke("e"),Le=Ce?w+Ee:w,Ge=sr?x+Ee:x,Ze=tr?M+Ie:M,Ue=De?k+Ie:k;u&&(Ce&&(Le=w-Ee),sr&&(Ge=x-Ee)),(!u&&Ge-Le>o||u&&Le-Ge>o)&&(h(A,t[A]=u?Le:se(Le)),h(L,t[L]=u?Ge:se(Ge))),Ue-Ze>l&&(h(D,t[D]=s?Ze:le(Ze)),h(E,t[E]=s?Ue:le(Ue)))}r.attr("d",v3(e,t)),Me(n,t),l1(e,a,t,N)}function Me(Ie,Ee){(s||u)&&Ne();function Ne(){var Ye=Ee.type!=="path",Xe=Ie.selectAll(".visual-cue").data([0]),Re=1;Xe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Re}).classed("visual-cue",!0);var Be=$(s?Ee.xanchor:wq.midRange(Ye?[Ee.x0,Ee.x1]:un.extractPathCoords(Ee.path,ps.paramIsX))),Oe=re(u?Ee.yanchor:wq.midRange(Ye?[Ee.y0,Ee.y1]:un.extractPathCoords(Ee.path,ps.paramIsY)));if(Be=un.roundPositionForSharpStrokeRendering(Be,Re),Oe=un.roundPositionForSharpStrokeRendering(Oe,Re),s&&u){var ie="M"+(Be-1-Re)+","+(Oe-1-Re)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Xe.attr("d",ie)}else if(s){var ke="M"+(Be-1-Re)+","+(Oe-9-Re)+"v18 h2 v-18 Z";Xe.attr("d",ke)}else{var Ce="M"+(Be-9-Re)+","+(Oe-1-Re)+"h18 v2 h-18 Z";Xe.attr("d",Ce)}}}function xe(Ie){Ie.selectAll(".visual-cue").remove()}function ze(Ie,Ee,Ne){var Ye=Ee.xref,Xe=Ee.yref,Re=rf.getFromId(Ne,Ye),Be=rf.getFromId(Ne,Xe),Oe="";Ye!=="paper"&&!Re.autorange&&(Oe+=Ye),Xe!=="paper"&&!Be.autorange&&(Oe+=Xe),h3.setClipUrl(Ie,Oe?"clip"+Ne._fullLayout._uid+Oe:null,Ne)}}function Aq(e,r,t){return e.replace(ps.segmentRE,function(a){var n=0,i=a.charAt(0),l=ps.paramIsX[i],o=ps.paramIsY[i],s=ps.numParams[i],u=a.substr(1).replace(ps.paramRE,function(f){return n>=s||(l[n]?f=r(f):o[n]&&(f=t(f)),n++),f});return i+u})}function dte(e,r){if(o1(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){kq(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=kq,d3(e)}}}function kq(e){if(o1(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(Cq(e),delete e._fullLayout._activeShapeIndex,d3(e))}}function pte(e){if(o1(e)){Cq(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Un=yr(),Eq=St(),Pq=Jt(),Yr=Xd(),mte=s1().eraseActiveShape,u1=Pe(),Ir=u1._,Gr=Oq.exports={};Gr.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Ir(e,"Download plot as a PNG"):Ir(e,"Download plot")},icon:Yr.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};u1.notifier(Ir(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Un.call("downloadImage",e,t).then(function(a){u1.notifier(Ir(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){u1.notifier(Ir(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Gr.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Ir(e,"Edit in Chart Studio")},icon:Yr.disk,click:function(e){Eq.sendDataToCloud(e)}};Gr.editInChartStudio={name:"editInChartStudio",title:function(e){return Ir(e,"Edit in Chart Studio")},icon:Yr.pencil,click:function(e){Eq.sendDataToCloud(e)}};Gr.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Ir(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Yr.zoombox,click:Ga};Gr.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Ir(e,"Pan")},attr:"dragmode",val:"pan",icon:Yr.pan,click:Ga};Gr.select2d={name:"select2d",_cat:"select",title:function(e){return Ir(e,"Box Select")},attr:"dragmode",val:"select",icon:Yr.selectbox,click:Ga};Gr.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Ir(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Yr.lasso,click:Ga};Gr.drawclosedpath={name:"drawclosedpath",title:function(e){return Ir(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Yr.drawclosedpath,click:Ga};Gr.drawopenpath={name:"drawopenpath",title:function(e){return Ir(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Yr.drawopenpath,click:Ga};Gr.drawline={name:"drawline",title:function(e){return Ir(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Yr.drawline,click:Ga};Gr.drawrect={name:"drawrect",title:function(e){return Ir(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Yr.drawrect,click:Ga};Gr.drawcircle={name:"drawcircle",title:function(e){return Ir(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Yr.drawcircle,click:Ga};Gr.eraseshape={name:"eraseshape",title:function(e){return Ir(e,"Erase active shape")},icon:Yr.eraseshape,click:mte};Gr.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Ir(e,"Zoom in")},attr:"zoom",val:"in",icon:Yr.zoom_plus,click:Ga};Gr.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Ir(e,"Zoom out")},attr:"zoom",val:"out",icon:Yr.zoom_minus,click:Ga};Gr.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Ir(e,"Autoscale")},attr:"zoom",val:"auto",icon:Yr.autoscale,click:Ga};Gr.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Ir(e,"Reset axes")},attr:"zoom",val:"reset",icon:Yr.home,click:Ga};Gr.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Ir(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Yr.tooltip_basic,gravity:"ne",click:Ga};Gr.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Ir(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Yr.tooltip_compare,gravity:"ne",click:Ga};function Ga(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,l={},o=Pq.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,h=(1+c)/2,d=(1-c)/2,p;for(f=0;f{"use strict";var Bq=y3(),xte=Object.keys(Bq),Yq=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Gq=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Yq),af=[],bte=function(e){if(Gq.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();af.indexOf(r)===-1&&af.push(r),af.indexOf(t)===-1&&af.push(t)}};xte.forEach(function(e){bte(Bq[e])});af.sort();Uq.exports={DRAW_MODES:Yq,backButtons:Gq,foreButtons:af}});var x3=B((d2e,Vq)=>{"use strict";var h2e=g3();Vq.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var Xq=B((p2e,Wq)=>{"use strict";var _te=Pe(),rv=xr(),wte=ot(),Tte=x3();Wq.exports=function(r,t){var a=r.modebar||{},n=wte.newContainer(t,"modebar");function i(o,s){return _te.coerce(a,n,Tte,o,s)}i("orientation"),i("bgcolor",rv.addOpacity(t.paper_bgcolor,.5));var l=rv.contrast(rv.rgb(t.modebar.bgcolor));i("color",rv.addOpacity(l,.3)),i("activecolor",rv.addOpacity(l,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var Kq=B((m2e,$q)=>{"use strict";var b3=kr(),Mte=zr(),c1=Pe(),Zq=Xd(),Ate=Q0().version,kte=new DOMParser;function Jq(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Wi=Jq.prototype;Wi.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this._uid=n,this.element.className="modebar",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,l="#"+n+" .modebar-group";document.querySelectorAll(l).forEach(function(c){c.style.backgroundColor=i.bgcolor});var o=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(o||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),c1.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Wi.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var l=r.createButton(n);r.buttonElements.push(l),a.appendChild(l)}),r.element.appendChild(a)})};Wi.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Wi.createButton=function(e){var r=this,t=document.createElement("a");t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&t.setAttribute("data-title",a),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(o){e.click(r.graphInfo,o),r.updateActiveButton(o.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&b3.select(t).classed("active",!0);var l=e.icon;return typeof l=="function"?t.appendChild(l()):t.appendChild(this.createIcon(l||Zq.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Wi.createIcon=function(e){var r=Mte(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=kte.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Wi.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),l=a.getAttribute("data-toggle")==="true",o=b3.select(a),s=function(c,h){var d=r.modebar,p=c.querySelector(".icon path");p&&(h||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(l){if(i===t){var u=!o.classed("active");o.classed("active",u),s(a,u)}}else{var f=i===null?i:c1.nestedProperty(r,i).get();o.classed("active",f===n),s(a,f===n)}})};Wi.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var Lte=Jt(),Qq=bn(),_3=yr(),Ste=Hi().isUnifiedHover,Dte=Kq(),v1=y3(),Ete=g3().DRAW_MODES,Pte=Pe().extendDeep;jq.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,l;Array.isArray(i)&&i.length?l=Hte(i):!a.displayModeBar&&a.watermark?l=[]:l=Rte(r),n?n.update(r,l):t._modeBar=Dte(r,l)};function Rte(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(O,G){if(typeof G=="string"){if(G.toLowerCase()===O.toLowerCase())return!0}else{var J=G.name,$=G._cat||G.name;if(J===O||$===O.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var l=r.modebar.remove;typeof l=="string"&&(l=[l]);var o=a.modeBarButtonsToAdd.concat(i.filter(function(O){for(var G=0;G1?(E=["toggleHover"],R=["resetViews"]):c?(D=["zoomInGeo","zoomOutGeo"],E=["hoverClosestGeo"],R=["resetGeo"]):f?(E=["hoverClosest3d"],R=["resetCameraDefault3d","resetCameraLastSave3d"]):y?(D=["zoomInMapbox","zoomOutMapbox"],E=["toggleHover"],R=["resetViewMapbox"]):m?(D=["zoomInMap","zoomOutMap"],E=["toggleHover"],R=["resetViewMap"]):h?E=["hoverClosestPie"]:w?(E=["hoverClosestCartesian","hoverCompareCartesian"],R=["resetViewSankey"]):E=["toggleHover"],u&&E.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Fte(t)||M)&&(E=[]),u&&!x&&(D=["zoomIn2d","zoomOut2d","autoScale2d"],R[0]!=="resetViews"&&(R=["resetScale2d"])),f?N=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!x||p?N=["zoom2d","pan2d"]:y||m||c?N=["pan2d"]:b&&(N=["zoom2d"]),Nte(t)&&N.push("select2d","lasso2d");var I=[],H=function(O){I.indexOf(O)===-1&&E.indexOf(O)!==-1&&I.push(O)};if(Array.isArray(o)){for(var V=[],W=0;W{"use strict";rC.exports={moduleType:"component",name:"modebar",layoutAttributes:x3(),supplyLayoutDefaults:Xq(),manage:eC()}});var T3=B((x2e,tC)=>{"use strict";var Ote=Sa().FROM_BL;tC.exports=function(r,t,a){a===void 0&&(a=Ote[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var ys=B(tv=>{"use strict";var ms=Pe(),M3=Bc(),xi=Jt().id2name,Bte=xn(),aC=T3(),Yte=md(),Gte=wt().ALMOST_EQUAL,Ute=Sa().FROM_BL;tv.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],l=r._axisMatchGroups=[],o,s,u,f,c,h,d,p;for(o=0;oi?t.substr(i):a.substr(n))+l}function Wte(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;lGte*p&&!_)){for(i=0;iN&&JE&&(E=J);var re=(E-D)/(2*R);c/=re,D=s.l2r(D),E=s.l2r(E),s.range=s._input.range=k{"use strict";var d1=kr(),Ua=yr(),An=St(),Vn=Pe(),q3=va(),C3=Wd(),av=xr(),nf=Br(),oC=Hc(),vC=w3(),nv=$r(),ml=Sa(),hC=ys(),Xte=hC.enforce,Zte=hC.clean,sC=Bc().doAutoRange,dC="start",Jte="middle",pC="end",$te=wa().zindexSeparator;aa.layoutStyles=function(e){return Vn.syncOrAsync([An.doAutoMargin,Qte],e)};function Kte(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function Qte(e){var r=e._fullLayout,t=r._size,a=t.p,n=nv.list(e,"",!0),i,l,o,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(nf.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),aa.drawMainTitle(e),vC.manage(e),!r._has("cartesian"))return An.previousPromises(e);function c(ye,U,te){var X=ye._lw/2;if(ye._id.charAt(0)==="x"){if(U){if(te==="top")return U._offset-a-X}else return t.t+t.h*(1-(ye.position||0))+X%1;return U._offset+U._length+a+X}if(U){if(te==="right")return U._offset+U._length+a+X}else return t.l+t.w*(ye.position||0)+X%1;return U._offset-a-X}for(i=0;i0){tae(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:cC(r.yanchor)}).call(q3.positionText,l,i);var f=(r.text.match(q3.BR_TAG_ALL)||[]).length;if(f){var c=ml.LINE_SPACING*f+ml.MID_SHIFT;r.y===0&&(c=-c),o.selectAll(".line").each(function(){var m=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",m)})}var h=d1.selectAll(".gtitle-subtitle");if(h.node()){var d=o.node().getBBox(),p=d.y+d.height,y=p+oC.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:l,y,"text-anchor":a,dy:cC(r.yanchor)}).call(q3.positionText,l,y)}}}};function jte(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=Vn.isTopAnchor(r)?a:a-n,o=t==="b"?i-l:l;return Vn.isTopAnchor(r)&&t==="t"||Vn.isBottomAnchor(r)&&t==="b"?!1:o.5?"t":"b",l=e._fullLayout.margin[i],o=0;return r.yref==="paper"?o=t+r.pad.t+r.pad.b:r.yref==="container"&&(o=eae(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function tae(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,l=i.y>.5?"t":"b",o={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&jte(e,i,l,r,a)?o[l]=t:i.yref==="container"&&(s[l]=t,e._fullLayout._reservedMargin[n]=s),An.allowAutoMargin(e,n),An.autoMargin(e,n,o)}function aae(e,r){var t=e.title,a=e._size,n=0;switch(r===dC?n=t.pad.l:r===pC&&(n=-t.pad.r),t.xref){case"paper":return a.l+a.w*t.x+n;case"container":default:return e.width*t.x+n}}function nae(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===ml.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto")return a.t/2;switch(t.yref){case"paper":return a.t+a.h-a.h*t.y+n;case"container":default:return e.height-e.height*t.y+n}}function cC(e){return e==="top"?ml.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":ml.MID_SHIFT+"em"}function iae(e){var r=e.title,t=Jte;return Vn.isRightAnchor(r)?t=pC:Vn.isLeftAnchor(r)&&(t=dC),t}function lae(e){var r=e.title,t="0em";return Vn.isTopAnchor(r)?t=ml.CAP_SHIFT+"em":Vn.isMiddleAnchor(r)&&(t=ml.MID_SHIFT+"em"),t}aa.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var oae=Ql().readPaths,sae=n1(),mC=Ul().clearOutlineControllers,L3=xr(),yC=Br(),uae=ot().arrayEditor,gC=eo(),fae=gC.getPathString;bC.exports={draw:m1,drawOne:xC,activateLastSelection:hae};function m1(e){var r=e._fullLayout;mC(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;m--){var b=l.append("path").attr(s).style("opacity",m?.1:u).call(L3.stroke,c).call(L3.fill,f).call(yC.dashLine,m?"solid":d,m?4+h:h);if(cae(b,e,a),p){var _=uae(e.layout,"selections",a);b.style({cursor:"move"});var w={element:b.node(),plotinfo:n,gd:e,editHelpers:_,isActiveSelection:!0},x=oae(o,e);sae(x,b,w)}else b.style("pointer-events",m?"all":"none");y[m]=b}var M=y[0],k=y[1];k.node().addEventListener("click",function(){return vae(e,M)})}}function cae(e,r,t){var a=t.xref+t.yref;yC.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function vae(e,r){if(y1(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){S3(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=S3,m1(e)}}}function hae(e){if(y1(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=S3,m1(e)}}function S3(e){if(y1(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(mC(e),delete e._fullLayout._activeSelectionIndex,m1(e))}}});var wC=B((T2e,_C)=>{function dae(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,l){return a("temp_status",{seg:n,above:i,below:l})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,l){return a("status",{seg:n,above:i,below:l})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}_C.exports=dae});var MC=B((M2e,TC)=>{function pae(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],l=a[1],o=n[0],s=n[1],u=t[0],f=t[1];return(o-i)*(f-l)-(s-l)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],l=n[0]-a[0],o=t[0]-a[0],s=n[1]-a[1],u=o*l+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=o-i>e&&(l-f)*(i-c)/(o-c)+f-n>e&&(s=!s),l=f,o=c}return s}};return r}TC.exports=pae});var kC=B((A2e,AC)=>{var mae={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};AC.exports=mae});var CC=B((k2e,qC)=>{var iv=kC();function yae(e,r,t){function a(p,y){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:null,below:null},otherFill:null}}function n(p,y,m){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:m.myFill.above,below:m.myFill.below},otherFill:null}}var i=iv.create();function l(p,y,m,b,_,w){var x=r.pointsCompare(y,_);return x!==0?x:r.pointsSame(m,w)?0:p!==b?p?1:-1:r.pointAboveOrOnLine(m,b?_:w,b?w:_)?1:-1}function o(p,y){i.insertBefore(p,function(m){var b=l(p.isStart,p.pt,y,m.isStart,m.pt,m.other.pt);return b<0})}function s(p,y){var m=iv.node({isStart:!0,pt:p.start,seg:p,primary:y,other:null,status:null});return o(m,p.end),m}function u(p,y,m){var b=iv.node({isStart:!1,pt:y.end,seg:y,primary:m,other:p,status:null});p.other=b,o(b,p.pt)}function f(p,y){var m=s(p,y);return u(m,p,y),m}function c(p,y){t&&t.segmentChop(p.seg,y),p.other.remove(),p.seg.end=y,p.other.pt=y,o(p.other,p.pt)}function h(p,y){var m=n(y,p.seg.end,p.seg);return c(p,y),f(m,p.primary)}function d(p,y){var m=iv.create();function b(V,W){var Y=V.seg.start,O=V.seg.end,G=W.seg.start,J=W.seg.end;return r.pointsCollinear(Y,G,J)?r.pointsCollinear(O,G,J)||r.pointAboveOrOnLine(O,G,J)?1:-1:r.pointAboveOrOnLine(Y,G,J)?1:-1}function _(V){return m.findTransition(function(W){var Y=b(V,W.ev);return Y>0})}function w(V,W){var Y=V.seg,O=W.seg,G=Y.start,J=Y.end,$=O.start,re=O.end;t&&t.checkIntersection(Y,O);var le=r.linesIntersect(G,J,$,re);if(le===!1){if(!r.pointsCollinear(G,J,$)||r.pointsSame(G,re)||r.pointsSame(J,$))return!1;var se=r.pointsSame(G,$),ve=r.pointsSame(J,re);if(se&&ve)return W;var Q=!se&&r.pointBetween(G,$,re),_e=!ve&&r.pointBetween(J,$,re);if(se)return _e?h(W,J):h(V,re),W;Q&&(ve||(_e?h(W,J):h(V,re)),h(W,G))}else le.alongA===0&&(le.alongB===-1?h(V,$):le.alongB===0?h(V,le.pt):le.alongB===1&&h(V,re)),le.alongB===0&&(le.alongA===-1?h(W,G):le.alongA===0?h(W,le.pt):le.alongA===1&&h(W,J));return!1}for(var x=[];!i.isEmpty();){var M=i.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let V=function(){if(A){var W=w(M,A);if(W)return W}return L?w(M,L):!1};var H=V;t&&t.segmentNew(M.seg,M.primary);var k=_(M),A=k.before?k.before.ev:null,L=k.after?k.after.ev:null;t&&t.tempStatus(M.seg,A?A.seg:!1,L?L.seg:!1);var D=V();if(D){if(e){var E;M.seg.myFill.below===null?E=!0:E=M.seg.myFill.above!==M.seg.myFill.below,E&&(D.seg.myFill.above=!D.seg.myFill.above)}else D.seg.otherFill=M.seg.myFill;t&&t.segmentUpdate(D.seg),M.other.remove(),M.remove()}if(i.getHead()!==M){t&&t.rewind(M.seg);continue}if(e){var E;M.seg.myFill.below===null?E=!0:E=M.seg.myFill.above!==M.seg.myFill.below,L?M.seg.myFill.below=L.seg.myFill.above:M.seg.myFill.below=p,E?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var R;L?M.primary===L.primary?R=L.seg.otherFill.above:R=L.seg.myFill.above:R=M.primary?y:p,M.seg.otherFill={above:R,below:R}}t&&t.status(M.seg,A?A.seg:!1,L?L.seg:!1),M.other.status=k.insert(iv.node({ev:M}))}else{var N=M.status;if(N===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(m.exists(N.prev)&&m.exists(N.next)&&w(N.prev.ev,N.next.ev),t&&t.statusRemove(N.ev.seg),N.remove(),!M.primary){var I=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=I}x.push(M.seg)}i.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(p){for(var y,m=p[p.length-1],b=0;b{function gae(e,r,t){var a=[],n=[];return e.forEach(function(i){var l=i.start,o=i.end;if(r.pointsSame(l,o)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(H,V,W){return f.index=H,f.matches_head=V,f.matches_pt1=W,f===s?(f=u,!1):(f=null,!0)}for(var h=0;h{function lv(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var xae={union:function(e,r){return lv(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return lv(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return lv(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return lv(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return lv(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};DC.exports=xae});var RC=B((L2e,PC)=>{var bae={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function l(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var o=l(i[0]),s=1;s{var _ae=wC(),wae=MC(),zC=CC(),Tae=SC(),ov=EC(),NC=RC(),Wn=!1,sv=wae(),fn;fn={buildLog:function(e){return e===!0?Wn=_ae():e===!1&&(Wn=!1),Wn===!1?!1:Wn.list},epsilon:function(e){return sv.epsilon(e)},segments:function(e){var r=zC(!0,sv,Wn);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=zC(!1,sv,Wn);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:ov.union(e.combined,Wn),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:ov.intersect(e.combined,Wn),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:ov.difference(e.combined,Wn),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:ov.differenceRev(e.combined,Wn),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:ov.xor(e.combined,Wn),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Tae(e.segments,sv,Wn),inverted:e.inverted}},polygonFromGeoJSON:function(e){return NC.toPolygon(fn,e)},polygonToGeoJSON:function(e){return NC.fromPolygon(fn,sv,e)},union:function(e,r){return uv(e,r,fn.selectUnion)},intersect:function(e,r){return uv(e,r,fn.selectIntersect)},difference:function(e,r){return uv(e,r,fn.selectDifference)},differenceRev:function(e,r){return uv(e,r,fn.selectDifferenceRev)},xor:function(e,r){return uv(e,r,fn.selectXor)}};function uv(e,r,t){var a=fn.segments(e),n=fn.segments(r),i=fn.combine(a,n),l=t(i);return fn.polygon(l)}typeof window=="object"&&(window.PolyBool=fn);FC.exports=fn});var OC=B((D2e,HC)=>{HC.exports=function(r,t,a,n){var i=r[0],l=r[1],o=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;ul!=p>l&&i<(d-c)*(l-h)/(p-h)+c;y&&(o=!o)}return o}});var P3=B((E2e,BC)=>{"use strict";var E3=mh().dot,g1=wt().BADNUM,x1=BC.exports={};x1.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],l=i,o;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),o=1;on||b===g1||bl||y&&u(p))}function c(p,y){var m=p[0],b=p[1];if(m===g1||mn||b===g1||bl)return!1;var _=t.length,w=t[0][0],x=t[0][1],M=0,k,A,L,D,E;for(k=1;k<_;k++)if(A=w,L=x,w=t[k][0],x=t[k][1],D=Math.min(A,w),!(mMath.max(A,w)||b>Math.max(L,x)))if(bo||Math.abs(E3(c,u))>n)return!0;return!1};x1.filter=function(r,t){var a=[r[0]],n=0,i=0;function l(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c1){var o=r.pop();l(o)}return{addPt:l,raw:r,filtered:a}}});var GC=B((P2e,YC)=>{"use strict";YC.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var cL=B((R2e,fL)=>{"use strict";var UC=IC(),Mae=OC(),vv=yr(),Aae=Br().dashStyle,fv=xr(),kae=gi(),qae=Hi().makeEventData,yv=Ku(),Cae=yv.freeMode,Lae=yv.rectMode,hv=yv.drawMode,F3=yv.openMode,I3=yv.selectMode,VC=eo(),WC=jc(),KC=n1(),QC=Ul().clearOutline,jC=Ql(),R3=jC.handleEllipse,Sae=jC.readPaths,Dae=e1().newShapes,Eae=l3(),Pae=D3().activateLastSelection,_1=Pe(),Rae=_1.sorterAsc,eL=P3(),cv=Lh(),Xn=Jt().getFromId,zae=Wd(),Nae=p1().redrawReglTraces,w1=GC(),Xi=w1.MINSELECT,Fae=eL.filter,H3=eL.tester,O3=$d(),XC=O3.p2r,Iae=O3.axValue,Hae=O3.getTransform;function B3(e){return e.subplot!==void 0}function Oae(e,r,t,a,n){var i=!B3(a),l=Cae(n),o=Lae(n),s=F3(n),u=hv(n),f=I3(n),c=n==="drawline",h=n==="drawcircle",d=c||h,p=a.gd,y=p._fullLayout,m=f&&y.newselection.mode==="immediate"&&i,b=y._zoomlayer,_=a.element.getBoundingClientRect(),w=a.plotinfo,x=Hae(w),M=r-_.left,k=t-_.top;y._calcInverseTransform(p);var A=_1.apply3DTransform(y._invTransform)(M,k);M=A[0],k=A[1];var L=y._invScaleX,D=y._invScaleY,E=M,R=k,N="M"+M+","+k,I=a.xaxes[0],H=a.yaxes[0],V=I._length,W=H._length,Y=e.altKey&&!(hv(n)&&s),O,G,J,$,re,le,se;tL(e,p,a),l&&(O=Fae([[M,k]],w1.BENDPX));var ve=b.selectAll("path.select-outline-"+w.id).data([1]),Q=u?y.newshape:y.newselection;u&&(a.hasText=Q.label.text||Q.label.texttemplate);var _e=u&&!s?Q.fillcolor:"rgba(0,0,0,0)",ce=Q.line.color||(i?fv.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");ve.enter().append("path").attr("class","select-outline select-outline-"+w.id).style({opacity:u?Q.opacity/2:1,"stroke-dasharray":Aae(Q.line.dash,Q.line.width),"stroke-width":Q.line.width+"px","shape-rendering":"crispEdges"}).call(fv.stroke,ce).call(fv.fill,_e).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",x).attr("d",N+"Z");var be=b.append("path").attr("class","zoombox-corners").style({fill:fv.background,stroke:fv.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(u&&a.hasText){var fe=b.select(".label-temp");fe.empty()&&(fe=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ye=y._uid+w1.SELECTID,U=[],te=T1(p,a.xaxes,a.yaxes,a.subplot);m&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var ge=I._id,Me=H._id;oL(p,ge,Me,te);for(var xe=(p.layout||{}).selections||[],ze=[],Ie=!1,Ee=0;Ee=0){p._fullLayout._deactivateShape(p);return}if(!u){var xe=y.clickmode;cv.done(ye).then(function(){if(cv.clear(ye),ge===2){for(ve.remove(),re=0;re-1&&rL(Me,p,a.xaxes,a.yaxes,a.subplot,a,ve),xe==="event"&&mv(p,void 0);kae.click(p,Me,w.id)}).catch(_1.error)}},a.doneFn=function(){be.remove(),cv.done(ye).then(function(){cv.clear(ye),!m&&$&&a.selectionDefs&&($.subtract=Y,a.selectionDefs.push($),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,J)),(m||u)&&dv(a,m),a.doneFnCompleted&&a.doneFnCompleted(U),f&&mv(p,se)}).catch(_1.error)}}function rL(e,r,t,a,n,i,l){var o=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],h,d,p,y,m,b,_,w,x,M;if(Vae(o)){tL(e,r,i),h=T1(r,t,a,n);var k=Wae(o,h),A=k.pointNumbers.length>0;if(A?Xae(h,k):Zae(h)&&(_=JC(k))){for(l&&l.remove(),M=0;M=0}function Uae(e){return e._fullLayout._activeSelectionIndex>=0}function dv(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;Gae(n)&&n._fullLayout._deactivateShape(n),Uae(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,l=i._zoomlayer,o=hv(t),s=I3(t);if(o||s){var u=l.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;o&&(f=Dae(u,e)),f&&vv.call("_guiRelayout",n,{shapes:f});var c;s&&!B3(e)&&(c=Eae(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,vv.call("_guiRelayout",n,{selections:c}).then(function(){r&&Pae(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function ZC(e){return e._id}function T1(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(ZC),l=t.map(ZC),o,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function Xae(e,r){var t=[],a,n,i,l;for(l=0;l0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(l=0;l1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function pv(e,r,t){var a;for(a=0;a-1&&r;if(!l&&r){var ge=$C(e,!0);if(ge.length){var Me=ge[0].xref,xe=ge[0].yref;if(Me&&xe){var ze=sL(ge),Ie=uL([Xn(e,Me,"x"),Xn(e,xe,"y")]);Ie(U,ze)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:X&&mv(e,U),h._reselect=!1}if(!l&&h._deselect){var Ee=h._deselect;o=Ee.xref,s=Ee.yref,Kae(o,s,f)||oL(e,o,s,a),X&&(U.points.length?mv(e,U):U3(e)),h._deselect=!1}return{eventData:U,selectionTesters:t}}function $ae(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";vL.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var gv=B((N2e,hL)=>{"use strict";hL.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var lf=B((I2e,mL)=>{"use strict";var dL=V3(),pL=jt(),M1=wa(),tne=ot().templatedArray,F2e=gv();mL.exports=tne("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:pL({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:dL.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:dL.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",M1.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",M1.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",M1.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",M1.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:pL({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var A1=B((H2e,yL)=>{"use strict";yL.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var W3=B((O2e,gL)=>{"use strict";gL.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var bi=B((B2e,ML)=>{"use strict";var xL=di().axisHoverFormat,ane=_a().texttemplateAttrs,nne=_a().hovertemplateAttrs,bL=Nc(),ine=jt(),lne=fi().dash,one=fi().pattern,sne=Br(),une=A1(),k1=mt().extendFlat,fne=W3();function _L(e){return{valType:"any",dflt:0,editType:"calc"}}function wL(e){return{valType:"any",editType:"calc"}}function TL(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}ML.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:_L("x"),yperiod:_L("y"),xperiod0:wL("x0"),yperiod0:wL("y0"),xperiodalignment:TL("x"),yperiodalignment:TL("y"),xhoverformat:xL("x"),yhoverformat:xL("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:ane({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:nne({},{keys:une.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:k1({},lne,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:fne(!0),fillgradient:k1({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:one,marker:k1({symbol:{valType:"enumerated",values:sne.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:k1({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},bL("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},bL("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:ine({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var X3=B((G2e,qL)=>{"use strict";var AL=lf(),kL=bi().line,cne=fi().dash,q1=mt().extendFlat,vne=ui().overrideAll,hne=ot().templatedArray,Y2e=gv();qL.exports=vne(hne("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:q1({},AL.xref,{}),yref:q1({},AL.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:kL.color,width:q1({},kL.width,{min:1,dflt:1}),dash:q1({},cne,{dflt:"dot"})}}),"arraydraw","from-root")});var DL=B((U2e,SL)=>{"use strict";var CL=Pe(),C1=$r(),dne=On(),pne=X3(),LL=eo();SL.exports=function(r,t){dne(r,t,{name:"selections",handleItemDefaults:mne});for(var a=t.selections,n=0;n{"use strict";EL.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var xv=B((W2e,NL)=>{"use strict";var yne=yr(),RL=Pe(),zL=Jt();NL.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=yne.subplotsRegistry.cartesian,o=l.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,h=n._has("cartesian"),d=0;d{"use strict";var FL=D3(),bv=cL();IL.exports={moduleType:"component",name:"selections",layoutAttributes:X3(),supplyLayoutDefaults:DL(),supplyDrawNewSelectionDefaults:PL(),includeBasePlot:xv()("selections"),draw:FL.draw,drawOne:FL.drawOne,reselect:bv.reselect,prepSelect:bv.prepSelect,clearOutline:bv.clearOutline,clearSelectionsCache:bv.clearSelectionsCache,selectOnClick:bv.selectOnClick}});var iS=B((Z2e,nS)=>{"use strict";var Q3=kr(),Zn=Pe(),HL=Zn.numberFormat,gne=Rn(),xne=D2(),L1=yr(),ZL=Zn.strTranslate,bne=va(),OL=xr(),to=Br(),_ne=gi(),BL=$r(),wne=Kl(),Tne=mi(),JL=Ku(),S1=JL.selectingOrDrawing,Mne=JL.freeMode,Ane=Sa().FROM_TL,kne=Wd(),qne=p1().redrawReglTraces,Cne=St(),J3=Jt().getFromId,Lne=of().prepSelect,Sne=of().clearOutline,Dne=of().selectOnClick,Z3=T3(),j3=wa(),YL=j3.MINDRAG,Ka=j3.MINZOOM,GL=!0;function Ene(e,r,t,a,n,i,l,o){var s=e._fullLayout._zoomlayer,u=l+o==="nsew",f=(l+o).length===1,c,h,d,p,y,m,b,_,w,x,M,k,A,L,D,E,R,N,I,H,V,W,Y;t+=r.yaxis._shift;function O(){if(c=r.xaxis,h=r.yaxis,w=c._length,x=h._length,b=c._offset,_=h._offset,d={},d[c._id]=c,p={},p[h._id]=h,l&&o)for(var De=r.overlays,Le=0;Le=0){Ge._fullLayout._deactivateShape(Ge);return}var Ze=Ge._fullLayout.clickmode;if(K3(Ge),De===2&&!f&&Oe(),u)Ze.indexOf("select")>-1&&Dne(Le,Ge,y,m,r.id,$),Ze.indexOf("event")>-1&&_ne.click(Ge,Le,r.id);else if(De===1&&f){var Ue=l?h:c,He=l==="s"||o==="w"?0:1,$e=Ue._name+".range["+He+"]",cr=Pne(Ue,He),lr="left",Fe="middle";if(Ue.fixedrange)return;l?(Fe=l==="n"?"top":"bottom",Ue.side==="right"&&(lr="right")):o==="e"&&(lr="right"),Ge._context.showAxisRangeEntryBoxes&&Q3.select(J).call(bne.makeEditable,{gd:Ge,immediate:!0,background:Ge._fullLayout.paper_bgcolor,text:String(cr),fill:Ue.tickfont?Ue.tickfont.color:"#444",horizontalAlign:lr,verticalAlign:Fe}).on("edit",function(ne){var ue=Ue.d2r(ne);ue!==void 0&&L1.call("_guiRelayout",Ge,$e,ue)})}}Tne.init($);var se,ve,Q,_e,ce,be,fe,ye,U,te;function X(De,Le,Ge){var Ze=J.getBoundingClientRect();se=Le-Ze.left,ve=Ge-Ze.top,e._fullLayout._calcInverseTransform(e);var Ue=Zn.apply3DTransform(e._fullLayout._invTransform)(se,ve);se=Ue[0],ve=Ue[1],Q={l:se,r:se,w:0,t:ve,b:ve,h:0},_e=e._hmpixcount?e._hmlumcount/e._hmpixcount:gne(e._fullLayout.plot_bgcolor).getLuminance(),ce="M0,0H"+w+"V"+x+"H0V0",be=!1,fe="xy",te=!1,ye=QL(s,_e,b,_,ce),U=jL(s,b,_)}function ge(De,Le){if(e._transitioningWithDuration)return!1;var Ge=Math.max(0,Math.min(w,W*De+se)),Ze=Math.max(0,Math.min(x,Y*Le+ve)),Ue=Math.abs(Ge-se),He=Math.abs(Ze-ve);Q.l=Math.min(se,Ge),Q.r=Math.max(se,Ge),Q.t=Math.min(ve,Ze),Q.b=Math.max(ve,Ze);function $e(){fe="",Q.r=Q.l,Q.t=Q.b,U.attr("d","M0,0Z")}if(M.isSubplotConstrained)Ue>Ka||He>Ka?(fe="xy",Ue/w>He/x?(He=Ue*x/w,ve>Ze?Q.t=ve-He:Q.b=ve+He):(Ue=He*w/x,se>Ge?Q.l=se-Ue:Q.r=se+Ue),U.attr("d",D1(Q))):$e();else if(k.isSubplotConstrained)if(Ue>Ka||He>Ka){fe="xy";var cr=Math.min(Q.l/w,(x-Q.b)/x),lr=Math.max(Q.r/w,(x-Q.t)/x);Q.l=cr*w,Q.r=lr*w,Q.b=(1-cr)*x,Q.t=(1-lr)*x,U.attr("d",D1(Q))}else $e();else!L||He0){var ne;if(k.isSubplotConstrained||!A&&L.length===1){for(ne=0;ne1&&($e.maxallowed!==void 0&&E===($e.range[0]<$e.range[1]?"e":"w")||$e.minallowed!==void 0&&E===($e.range[0]<$e.range[1]?"w":"e"))&&(ir=1,ur=0),qe?(vr=ue,Ar=l||k.isSubplotConstrained?De[1]:tr(cr,vr)):k.yaHash[cr._id]?(vr=ue,Ar=De[1]*cr._length/h._length):k.xaHash[cr._id]?(vr=ne,Ar=A==="ew"?-De[0]*cr._length/c._length:tr(cr,vr,{e:"right",w:"left"}[A])):(vr=Ce(cr,ne,ue),Ar=sr(cr,vr)),vr>1&&(cr.maxallowed!==void 0&&R===(cr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function zne(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function QL(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",ZL(t,a)).attr("d",n+"Z")}function jL(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:OL.background,stroke:OL.defaultLine,"stroke-width":1,opacity:0}).attr("transform",ZL(r,t)).attr("d","M0,0Z")}function eS(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),rS(e,r,n,i)}function rS(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function K3(e){Q3.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function tS(e){GL&&e.data&&e._context.showTips&&(Zn.notifier(Zn._(e,"Double-click to zoom back out"),"long"),GL=!1)}function Nne(e,r){return"M"+(e.l-.5)+","+(r-Ka-.5)+"h-3v"+(2*Ka+1)+"h3ZM"+(e.r+.5)+","+(r-Ka-.5)+"h3v"+(2*Ka+1)+"h-3Z"}function Fne(e,r){return"M"+(r-Ka-.5)+","+(e.t-.5)+"v-3h"+(2*Ka+1)+"v3ZM"+(r-Ka-.5)+","+(e.b+.5)+"v3h"+(2*Ka+1)+"v-3Z"}function D1(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Ka)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function WL(e,r,t,a,n){for(var i=!1,l={},o={},s,u,f,c,h=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var Ine=kr(),E1=gi(),Hne=mi(),One=Kl(),_i=iS().makeDragBox,na=wa().DRAGGERSIZE;P1.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){Ine.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,l){if((t._plots[i].mainplot&&!0)===(t._plots[l].mainplot&&!0)){var o=i.split("y"),s=l.split("y");return o[0]===s[0]?Number(o[1]||1)-Number(s[1]||1):Number(o[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var l=t._plots[i],o=l.xaxis,s=l.yaxis;if(!l.mainplot){var u=_i(r,l,o._offset,s._offset,o._length,s._length,"ns","ew");u.onmousemove=function(h){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&E1.hover(r,h,i)},E1.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,Hne.unhover(r,h))},r._context.showAxisDragHandles&&(_i(r,l,o._offset-na,s._offset-na,na,na,"n","w"),_i(r,l,o._offset+o._length,s._offset-na,na,na,"n","e"),_i(r,l,o._offset-na,s._offset+s._length,na,na,"s","w"),_i(r,l,o._offset+o._length,s._offset+s._length,na,na,"s","e"))}if(r._context.showAxisDragHandles){if(i===o._mainSubplot){var f=o._mainLinePosition;o.side==="top"&&(f-=na),_i(r,l,o._offset+o._length*.1,f,o._length*.8,na,"","ew"),_i(r,l,o._offset,f,o._length*.1,na,"","w"),_i(r,l,o._offset+o._length*.9,f,o._length*.1,na,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=na),_i(r,l,c,s._offset+s._length*.1,na,s._length*.8,"ns",""),_i(r,l,c,s._offset+s._length*.9,na,s._length*.1,"s",""),_i(r,l,c,s._offset,na,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,E1.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,E1.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},P1.updateFx(r)}};P1.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";One(r._draggers,t)}});var sS=B(($2e,oS)=>{"use strict";var lS=yr();oS.exports=function(r){for(var t=lS.layoutArrayContainers,a=lS.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o{"use strict";var Bne=Pl(),rx=ph(),_v=Go(),Yne=Qy().sorterAsc,tx=yr();wv.containerArrayMatch=sS();var Gne=wv.isAddVal=function(r){return r==="add"||Bne(r)},uS=wv.isRemoveVal=function(r){return r===null||r==="remove"};wv.applyContainerArrayChanges=function(r,t,a,n,i){var l=t.astr,o=tx.getComponentMethod(l,"supplyLayoutDefaults"),s=tx.getComponentMethod(l,"draw"),u=tx.getComponentMethod(l,"drawOne"),f=n.replot||n.recalc||o===rx||s===rx,c=r.layout,h=r._fullLayout;if(a[""]){Object.keys(a).length>1&&_v.warn("Full array edits are incompatible with other edits",l);var d=a[""][""];if(uS(d))t.set(null);else if(Array.isArray(d))t.set(d);else return _v.warn("Unrecognized full array edit value",l,d),!0;return f?!1:(o(c,h),s(r),!0)}var p=Object.keys(a).map(Number).sort(Yne),y=t.get(),m=y||[],b=i(h,l).get(),_=[],w=-1,x=m.length,M,k,A,L,D,E,R,N;for(M=0;Mm.length-(R?0:1)){_v.warn("index out of range",l,A);continue}if(E!==void 0)D.length>1&&_v.warn("Insertion & removal are incompatible with edits to the same index.",l,A),uS(E)?_.push(A):R?(E==="add"&&(E={}),m.splice(A,0,E),b&&b.splice(A,0,{})):_v.warn("Unrecognized full object edit value",l,A,E),w===-1&&(w=A);else for(k=0;k=0;M--)m.splice(_[M],1),b&&b.splice(_[M],1);if(m.length?y||t.set(m):t.set(null),f)return!1;if(o(c,h),u!==rx){var I;if(w===-1)I=p;else{for(x=Math.max(m.length,x),I=[],M=0;M=w));M++)I.push(A);for(M=w;M{"use strict";var dS=zr(),Q2e=Yy(),pS=yr(),cn=Pe(),Tv=St(),mS=Jt(),yS=xr(),Mv=mS.cleanId,Une=mS.getFromTrace,ax=pS.traceIs;wi.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&cn.log("Clearing previous rejected promises from queue."),e._promises=[]};wi.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(Tv.subplotsRegistry.cartesian||{}).attrRegex,n=(Tv.subplotsRegistry.polar||{}).attrRegex,i=(Tv.subplotsRegistry.ternary||{}).attrRegex,l=(Tv.subplotsRegistry.gl3d||{}).attrRegex,o=Object.keys(e);for(r=0;r3?(m.x=1.02,m.xanchor="left"):m.x<-2&&(m.x=-.02,m.xanchor="right"),m.y>3?(m.y=1.02,m.yanchor="bottom"):m.y<-2&&(m.y=-.02,m.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),yS.clean(e),e.template&&e.template.layout&&wi.cleanLayout(e.template.layout),e};function sf(e,r){var t=e[r],a=r.charAt(0);t&&t!=="paper"&&(e[r]=Mv(t,a,!0))}wi.cleanData=function(e){for(var r=0;r0)return e.substr(0,r)}wi.hasParent=function(e,r){for(var t=hS(r);t;){if(t in e)return!0;t=hS(t)}return!1};var Xne=["x","y","z"];wi.clearAxisTypes=function(e,r,t){for(var a=0;a{"use strict";var F1=kr(),Zne=zr(),Jne=vg(),Ke=Pe(),ht=Ke.nestedProperty,lx=Sc(),Qa=Q8(),Jn=yr(),U1=Su(),_r=St(),Va=$r(),$ne=S2(),Kne=xn(),nx=Br(),Qne=xr(),jne=ex().initInteractions,eie=Qo(),rie=of().clearOutline,TS=Yo().dfltConfig,z1=fS(),Vt=gS(),tt=p1(),ao=ui(),tie=wa().AX_NAME_PATTERN,ix=0,xS=5;function aie(e,r,t,a){var n;if(e=Ke.getGraphDiv(e),lx.init(e),Ke.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var l=lx.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(l===!1)return Promise.reject();!r&&!t&&!Ke.isPlotDiv(e)&&Ke.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function o(){if(n)return Vr.addFrames(e,n)}AS(e,a),t||(t={}),F1.select(e).classed("js-plotly-plot",!0),nx.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Vt.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=Vt.cleanLayout(t)),_r.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(kie(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),nx.initGradients(e),nx.initPatterns(e),s&&Va.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&_r.doCalcdata(e);for(var h=0;h=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function kS(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),H1(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&H1(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function sie(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof L.parts[R]!="string";)R--;var N=L.parts[R],I=L.parts[R-1]+"."+N,H=L.parts.slice(0,R).join("."),V=ht(e.layout,H).get(),W=ht(a,H).get(),Y=L.get();if(D!==void 0){b[A]=D,_[A]=N==="reverse"?D:yl(Y);var O=U1.getLayoutValObject(a,L.parts);if(O&&O.impliedEdits&&D!==null)for(var G in O.impliedEdits)w(Ke.relativeAttr(A,G),O.impliedEdits[G]);if(["width","height"].indexOf(A)!==-1)if(D){w("autosize",null);var J=A==="height"?"width":"height";w(J,a[J])}else a[A]=e._initialAutoSize[A];else if(A==="autosize")w("width",D?null:a.width),w("height",D?null:a.height);else if(I.match(zS))k(I),ht(a,H+"._inputRange").set(null);else if(I.match(NS)){k(I),ht(a,H+"._inputRange").set(null);var $=ht(a,H).get();$._inputDomain&&($._input.domain=$._inputDomain.slice())}else I.match(vie)&&ht(a,H+"._inputDomain").set(null);if(N==="type"){M=V;var re=W.type==="linear"&&D==="log",le=W.type==="log"&&D==="linear";if(re||le){if(!M||!M.range)w(H+".autorange",!0);else if(W.autorange)re&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var se=M.range[0],ve=M.range[1];re?(se<=0&&ve<=0&&w(H+".autorange",!0),se<=0?se=ve/1e6:ve<=0&&(ve=se/1e6),w(H+".range[0]",Math.log(se)/Math.LN10),w(H+".range[1]",Math.log(ve)/Math.LN10)):(w(H+".range[0]",Math.pow(10,se)),w(H+".range[1]",Math.pow(10,ve)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[L.parts[0]]&&L.parts[1]==="radialaxis"&&delete a[L.parts[0]]._subplot.viewInitial["radialaxis.range"],Jn.getComponentMethod("annotations","convertCoords")(e,W,D,w),Jn.getComponentMethod("images","convertCoords")(e,W,D,w)}else w(H+".autorange",!0),w(H+".range",null);ht(a,H+"._inputRange").set(null)}else if(N.match(tie)){var Q=ht(a,A).get(),_e=(D||{}).type;(!_e||_e==="-")&&(_e="linear"),Jn.getComponentMethod("annotations","convertCoords")(e,Q,_e,w),Jn.getComponentMethod("images","convertCoords")(e,Q,_e,w)}var ce=z1.containerArrayMatch(A);if(ce){f=ce.array,c=ce.index;var be=ce.property,fe=O||{editType:"calc"};c!==""&&be===""&&(z1.isAddVal(D)?_[A]=null:z1.isRemoveVal(D)?_[A]=(ht(t,f).get()||[])[c]:Ke.warn("unrecognized full object value",r)),ao.update(m,fe),u[f]||(u[f]={});var ye=u[f][c];ye||(ye=u[f][c]={}),ye[be]=D,delete r[A]}else N==="reverse"?(V.range?V.range.reverse():(w(H+".autorange",!0),V.range=[1,0]),W.autorange?m.calc=!0:m.plot=!0):(A==="dragmode"&&(D===!1&&Y!==!1||D!==!1&&Y===!1)||a._has("scatter-like")&&a._has("regl")&&A==="dragmode"&&(D==="lasso"||D==="select")&&!(Y==="lasso"||Y==="select")?m.plot=!0:O?ao.update(m,O):m.calc=!0,L.set(D))}}for(f in u){var U=z1.applyContainerArrayChanges(e,i(t,f),u[f],m,i);U||(m.plot=!0)}for(var te in x){M=Va.getFromId(e,te);var X=M&&M._constraintGroup;if(X){m.calc=!0;for(var ge in X)x[ge]||(Va.getFromId(e,ge)._constraintShrinkable=!0)}}(IS(e)||r.height||r.width)&&(m.plot=!0);var Me=a.shapes;for(c=0;c1;)if(a.pop(),t=ht(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function pie(e,r){for(var t=0;t=n.length?n[0]:n[u]:n}function o(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var N=a._frameQueue.pop();N.onInterrupt&&N.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(N){if(N.length!==0){for(var I=0;Ia._timeToNext&&p()};N()}var m=0;function b(N){return Array.isArray(n)?m>=n.length?N.transitionOpts=n[m]:N.transitionOpts=n[0]:N.transitionOpts=n,m++,N}var _,w,x=[],M=r==null,k=Array.isArray(r),A=!M&&!k&&Ke.isPlainObject(r);if(A)x.push({type:"object",data:b(Ke.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(_=0;_0&&EE)&&R.push(w);x=R}}x.length>0?h(x):(e.emit("plotly_animated"),u())})}function wie(e,r,t){if(e=Ke.getGraphDiv(e),r==null)return Promise.resolve();if(!Ke.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,l,o=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=o.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(Ke.isPlainObject(r[a])){var h=r[a].name,d=(s[h]||c[h]||{}).name,p=r[a].name,y=s[d]||c[d];d&&p&&typeof p=="number"&&y&&ixL.index?-1:A.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&Ke.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),l.unshift({type:"insert",index:a,value:n[a]});var o=_r.modifyFrames,s=_r.modifyFrames,u=[e,l],f=[e,i];return Qa&&Qa.add(e,o,u,s,f),_r.modifyFrames(e,i)}function Mie(e){e=Ke.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return _r.cleanPlot([],{},t,r),_r.purge(e),lx.purge(e),r._container&&r._container.remove(),delete e._context,e}function Aie(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Ke.equalDomRects(t,r._lastBBox)){var a=r._invTransform=Ke.inverseTransformMatrix(Ke.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function kie(e){var r=F1.select(e),t=e._fullLayout;if(t._calcInverseTransform=Aie,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};F1.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=Ke.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(eie.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Vr.animate=_ie;Vr.addFrames=wie;Vr.deleteFrames=Tie;Vr.addTraces=DS;Vr.deleteTraces=ES;Vr.extendTraces=LS;Vr.moveTraces=ox;Vr.prependTraces=SS;Vr.newPlot=oie;Vr._doPlot=aie;Vr.purge=Mie;Vr.react=gie;Vr.redraw=lie;Vr.relayout=Av;Vr.restyle=O1;Vr.setPlotConfig=nie;Vr.update=Y1;Vr._guiRelayout=ux(Av);Vr._guiRestyle=ux(O1);Vr._guiUpdate=ux(Y1);Vr._storeDirectGUIEdit=cie});var gs=B(Zi=>{"use strict";var qie=yr();Zi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Zi.getRedrawFunc=function(e){return function(){qie.getComponentMethod("colorbar","draw")(e)}};Zi.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Zi.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var HS=window.URL||window.webkitURL;Zi.createObjectURL=function(e){return HS.createObjectURL(e)};Zi.revokeObjectURL=function(e){return HS.revokeObjectURL(e)};Zi.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=Cie(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Zi.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function Cie(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var vx=kr(),t3e=Pe(),Lie=Br(),Sie=xr(),a3e=Qo(),cx=/"/g,qv="TOBESTRIPPED",Die=new RegExp('("'+qv+")|("+qv+'")',"g");function Eie(e){var r=vx.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(a){return a==="<"?"<":a==="&rt;"?">":a.indexOf("<")!==-1||a.indexOf(">")!==-1?"":r.html(a).text()});return r.remove(),t}function Pie(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}OS.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,l=n._toppaper,o=n.width,s=n.height,u;i.insert("rect",":first-child").call(Lie.setRect,0,0,o,s).call(Sie.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var Rie=Pe(),zie=Nh().EventEmitter,Cv=gs();function Nie(e){var r=e.emitter||new zie,t=new Promise(function(a,n){var i=window.Image,l=e.svg,o=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,h=u*f,d=u*c,p=s.getContext("2d",{willReadFrequently:!0}),y=new i,m,b;o==="svg"||Rie.isSafari()?b=Cv.encodeSVG(l):(m=Cv.createBlob(l,"svg"),b=Cv.createObjectURL(m)),s.width=h,s.height=d,y.onload=function(){var _;switch(m=null,Cv.revokeObjectURL(b),o!=="svg"&&p.drawImage(y,0,0,h,d),o){case"jpeg":_=s.toDataURL("image/jpeg");break;case"png":_=s.toDataURL("image/png");break;case"webp":_=s.toDataURL("image/webp");break;case"svg":_=b;break;default:var w="Image format is not jpeg, png, svg or webp.";if(n(new Error(w)),!e.promise)return r.emit("error",w)}a(_),e.promise||r.emit("success",_)},y.onerror=function(_){if(m=null,Cv.revokeObjectURL(b),n(_),!e.promise)return r.emit("error",_)},y.src=b});return e.promise?t:r}BS.exports=Nie});var dx=B((l3e,US)=>{"use strict";var YS=zr(),GS=fx(),Fie=St(),Ji=Pe(),Lv=gs(),Iie=W1(),Hie=X1(),Oie=Q0().version,hx={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Bie(e,r){r=r||{};var t,a,n,i;Ji.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Ji.getGraphDiv(e),t=Ji.extendDeep([],e.data),a=Ji.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function l(k){return!(k in r)||Ji.validate(r[k],hx[k])}if(!l("width")&&r.width!==null||!l("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+Ji.join2(hx.format.values,", "," or ")+".");var o={};function s(k,A){return Ji.coerce(r,o,hx,k,A)}var u=s("format"),f=s("width"),c=s("height"),h=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),y=document.createElement("div");y.style.position="absolute",y.style.left="-5000px",document.body.appendChild(y);var m=Ji.extendFlat({},a);f?m.width=f:r.width===null&&YS(i.width)&&(m.width=i.width),c?m.height=c:r.height===null&&YS(i.height)&&(m.height=i.height);var b=Ji.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),_=Lv.getRedrawFunc(y);function w(){return new Promise(function(k){setTimeout(k,Lv.getDelay(y._fullLayout))})}function x(){return new Promise(function(k,A){var L=Iie(y,u,h),D=y._fullLayout.width,E=y._fullLayout.height;function R(){GS.purge(y),document.body.removeChild(y)}if(u==="full-json"){var N=Fie.graphJson(y,!1,"keepdata","object",!0,!0);return N.version=Oie,N=JSON.stringify(N),R(),k(p?N:Lv.encodeJSON(N))}if(R(),u==="svg")return k(p?L:Lv.encodeSVG(L));var I=document.createElement("canvas");I.id=Ji.randstr(),Hie({format:u,width:D,height:E,scale:h,canvas:I,svg:L,promise:!0}).then(k).catch(A)})}function M(k){return p?k.replace(Lv.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,A){GS.newPlot(y,t,m,b).then(_).then(w).then(x).then(function(L){k(M(L))}).catch(function(L){A(L)})})}US.exports=Bie});var XS=B((o3e,WS)=>{"use strict";var $n=Pe(),Yie=St(),Gie=Su(),Uie=Yo().dfltConfig,Ti=$n.isPlainObject,bs=Array.isArray,px=$n.isArrayOrTypedArray;WS.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=Gie.get(),n=[],i={_context:$n.extendFlat({},Uie)},l,o;bs(r)?(i.data=$n.extendDeep([],r),l=r):(i.data=[],l=[],n.push(ia("array","data"))),Ti(t)?(i.layout=$n.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(ia("object","layout"))),Yie.supplyDefaults(i);for(var s=i._fullData,u=l.length,f=0;fc.length&&a.push(ia("unused",n,u.concat(c.length)));var b=c.length,_=Array.isArray(m);_&&(b=Math.min(b,m.length));var w,x,M,k,A;if(h.dimensions===2)for(x=0;xc[x].length&&a.push(ia("unused",n,u.concat(x,c[x].length)));var L=c[x].length;for(w=0;w<(_?Math.min(L,m[x].length):L);w++)M=_?m[x][w]:m,k=f[x][w],A=c[x][w],$n.validate(k,M)?A!==k&&A!==+k&&a.push(ia("dynamic",n,u.concat(x,w),k,A)):a.push(ia("value",n,u.concat(x,w),k))}else a.push(ia("array",n,u.concat(x),f[x]));else for(x=0;x{"use strict";var Kie=Pe(),J1=gs();function Qie(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(l,o){var s,u;if(n)return s=J1.createBlob(e,t),u=J1.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),J1.revokeObjectURL(u),s=null,l(r);if(Kie.isSafari()){var f=t==="svg"?",":";base64,";return J1.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}ZS.exports=Qie});var mx=B((f3e,KS)=>{"use strict";var $S=Pe(),jie=dx(),ele=JS(),u3e=gs();function rle(e,r){var t;return $S.isPlainObject(e)||(t=$S.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=jie(e,r),l=r.filename||e.fn||"newplot";l+="."+r.format.replace("-","."),i.then(function(o){return t&&(t._snapshotInProgress=!1),ele(o,l,r.format)}).then(function(o){a(o)}).catch(function(o){t&&(t._snapshotInProgress=!1),n(o)})})}KS.exports=rle});var tD=B(yx=>{"use strict";var vn=Pe(),hn=vn.isPlainObject,QS=Su(),jS=St(),tle=rn(),eD=ot(),rD=Yo().dfltConfig;yx.makeTemplate=function(e){e=vn.isPlainObject(e)?e:vn.getGraphDiv(e),e=vn.extendDeep({_context:rD},{data:e.data,layout:e.layout}),jS.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var p={};Sv(d,p,nle.bind(null,d));var y=vn.coerce(d,{},tle,"type"),m=a.data[y];m||(m=a.data[y]=[]),m.push(p)}),Sv(t,a.layout,ale.bind(null,t)),delete a.layout.template;var n=t.template;if(hn(n)){var i=n.layout,l,o,s,u,f,c;hn(i)&&$1(i,a.layout);var h=n.data;if(hn(h)){for(o in a.data)if(s=h[o],Array.isArray(s)){for(f=a.data[o],c=f.length,u=s.length,l=0;lb?l.push({code:"unused",traceType:d,templateCount:m,dataCount:b}):b>m&&l.push({code:"reused",traceType:d,templateCount:m,dataCount:b})}}function _(w,x){for(var M in w)if(M.charAt(0)!=="_"){var k=w[M],A=Kn(w,M,x);hn(k)?(Array.isArray(w)&&k._template===!1&&k.templateitemname&&l.push({code:"missing",path:A,templateitemname:k.templateitemname}),_(k,A)):Array.isArray(k)&&ile(k)&&_(k,A)}}if(_({data:s,layout:o},""),l.length)return l.map(lle)};function ile(e){for(var r=0;r{"use strict";var Kt=fx();xt._doPlot=Kt._doPlot;xt.newPlot=Kt.newPlot;xt.restyle=Kt.restyle;xt.relayout=Kt.relayout;xt.redraw=Kt.redraw;xt.update=Kt.update;xt._guiRestyle=Kt._guiRestyle;xt._guiRelayout=Kt._guiRelayout;xt._guiUpdate=Kt._guiUpdate;xt._storeDirectGUIEdit=Kt._storeDirectGUIEdit;xt.react=Kt.react;xt.extendTraces=Kt.extendTraces;xt.prependTraces=Kt.prependTraces;xt.addTraces=Kt.addTraces;xt.deleteTraces=Kt.deleteTraces;xt.moveTraces=Kt.moveTraces;xt.purge=Kt.purge;xt.addFrames=Kt.addFrames;xt.deleteFrames=Kt.deleteFrames;xt.animate=Kt.animate;xt.setPlotConfig=Kt.setPlotConfig;var ole=wc().getGraphDiv,sle=s1().eraseActiveShape;xt.deleteActiveShape=function(e){return sle(ole(e))};xt.toImage=dx();xt.validate=XS();xt.downloadImage=mx();var aD=tD();xt.makeTemplate=aD.makeTemplate;xt.validateTemplate=aD.validateTemplate});var Dv=B((h3e,iD)=>{"use strict";var gx=Pe(),ule=yr();iD.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=ule.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=gx.minRowLength(i);l?o=Math.min(u,gx.minRowLength(l)):(o=u,n("y0"),n("dy"))}else{if(!l)return 0;o=gx.minRowLength(l),n("x0"),n("dx")}return t._length=o,o}});var _s=B((d3e,sD)=>{"use strict";var lD=Pe().dateTick0,fle=wt(),cle=fle.ONEWEEK;function oD(e,r){return e%cle===0?lD(r,1):lD(r,0)}sD.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",oD(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",oD(o,t.ycalendar)),n("yperiodalignment"))}}});var cD=B((p3e,fD)=>{"use strict";var uD=["orientation","groupnorm","stackgaps"];fD.exports=function(r,t,a,n){var i=a._scatterStackOpts,l=n("stackgroup");if(l){var o=t.xaxis+t.yaxis,s=i[o];s||(s=i[o]={});var u=s[l],f=!1;u?u.traces.push(t):(u=s[l]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},h=0;h{"use strict";var vD=xr(),hD=Hn().hasColorscale,dD=Ru(),vle=bn();pD.exports=function(r,t,a,n,i,l){var o=vle.isBubble(r),s=(r.line||{}).color,u;if(l=l||{},s&&(a=s),i("marker.symbol"),i("marker.opacity",o?.7:1),i("marker.size"),l.noAngle||(i("marker.angle"),l.noAngleRef||i("marker.angleref"),l.noStandOff||i("marker.standoff")),i("marker.color",a),hD(r,"marker")&&dD(r,t,n,i,{prefix:"marker.",cLetter:"c"}),l.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),l.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:o?u=vD.background:u=vD.defaultLine,i("marker.line.color",u),hD(r,"marker.line")&&dD(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",o?1:0)),o&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),l.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var gD=B((y3e,yD)=>{"use strict";var hle=Pe().isArrayOrTypedArray,dle=Hn().hasColorscale,ple=Ru();yD.exports=function(r,t,a,n,i,l){l||(l={});var o=(r.marker||{}).color;if(o&&o._inputArray&&(o=o._inputArray),i("line.color",a),dle(r,"line"))ple(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(hle(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var bD=B((g3e,xD)=>{"use strict";xD.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var wD=B((x3e,_D)=>{"use strict";var mle=Pe();_D.exports=function(e,r,t,a,n){n=n||{},a("textposition"),mle.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var AD=B((b3e,MD)=>{"use strict";var Q1=xr(),TD=Pe().isArrayOrTypedArray;function yle(e){for(var r=Q1.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var kD=Pe(),gle=yr(),xle=bi(),ble=A1(),uf=bn(),_le=Dv(),wle=_s(),Tle=cD(),Mle=mD(),Ale=gD(),qD=bD(),kle=wD(),qle=AD(),Cle=Pe().coercePattern;CD.exports=function(r,t,a,n){function i(d,p){return kD.coerce(r,t,xle,d,p)}var l=_le(r,t,n,i);if(l||(t.visible=!1),!!t.visible){wle(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=Tle(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l{"use strict";var Lle=ys().getAxisGroup;SD.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=Lle(a,o)+l,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var h=c[f];h?h.traces.push(t):h=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=h.offsetGroups,y=p[d];t._offsetIndex=0,(i!=="group"||d)&&(y||(y=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=y.offsetIndex)}});var ED=B((T3e,DD)=>{"use strict";var Sle=Pe(),Dle=ff(),Ele=bi();DD.exports=function(r,t){var a,n,i,l=t.scattermode;function o(h){return Sle.coerce(n._input,n,Ele,h)}if(t.scattermode==="group")for(i=0;i=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var RD=B((M3e,PD)=>{"use strict";var Ple=Pe(),Rle=Bh();PD.exports=function(e,r){function t(n,i){return Ple.coerce(e,r,Rle,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var ws=B((A3e,ND)=>{"use strict";var zle=zr(),zD=Pe(),Nle=zD.dateTime2ms,j1=zD.incrementMonth,Fle=wt(),Ile=Fle.ONEAVGMONTH;ND.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var l=r[a+"period"],o;if(zle(l)){if(l=+l,l<=0)return{vals:n}}else if(typeof l=="string"&&l.charAt(0)==="M"){var s=+l.substring(1);if(s>0&&Math.round(s)===s)o=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",h=r[a+"period0"],d=Nle(h,u)||0,p=[],y=[],m=[],b=n.length,_=0;_w;)k=j1(k,-o,u);for(;k<=w;)k=j1(k,o,u);M=j1(k,-o,u)}else{for(x=Math.round((w-d)/l),k=d+x*l;k>w;)k-=l;for(;k<=w;)k+=l;M=k-l}p[_]=f?M:c?k:(M+k)/2,y[_]=M,m[_]=k}return{vals:p,starts:y,ends:m}}});var HD=B((k3e,ID)=>{"use strict";var xx=Hn().hasColorscale,bx=td(),FD=bn();ID.exports=function(r,t){FD.hasLines(t)&&xx(t,"line")&&bx(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),FD.hasMarkers(t)&&(xx(t,"marker")&&bx(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),xx(t,"marker.line")&&bx(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var _x=B((q3e,OD)=>{"use strict";var Et=Pe();OD.exports=function(r,t){for(var a=0;a{"use strict";var BD=Pe();YD.exports=function(r,t){BD.isArrayOrTypedArray(t.selectedpoints)&&BD.tagSelected(r,t)}});var kx=B((L3e,JD)=>{"use strict";var GD=zr(),Tx=Pe(),Pv=$r(),UD=ws(),wx=wt().BADNUM,Mx=bn(),Hle=HD(),Ole=_x(),Ble=Ev();function Yle(e,r){var t=e._fullLayout,a=r._xA=Pv.getFromId(e,r.xaxis||"x","x"),n=r._yA=Pv.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),l=n.makeCalcdata(r,"y"),o=UD(r,a,"x",i),s=UD(r,n,"y",l),u=o.vals,f=s.vals,c=r._length,h=new Array(c),d=r.ids,p=Ax(r,t,a,n),y=!1,m,b,_,w,x,M;XD(t,r);var k="x",A="y",L;if(p)Tx.pushUnique(p.traceIndices,r.index),m=p.orientation==="v",m?(A="s",L="x"):(k="s",L="y"),x=p.stackgaps==="interpolate";else{var D=WD(r,c);VD(e,r,a,n,u,f,D)}var E=!!r.xperiodalignment,R=!!r.yperiodalignment;for(b=0;bb&&h[w].gap;)w--;for(M=h[w].s,_=h.length-1;_>w;_--)h[_].s=M;for(;b{"use strict";$D.exports=ep;var Gle=Pe().distinctVals;function ep(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";var Qn=zr(),no=Pe().isArrayOrTypedArray,cf=wt().BADNUM,Ule=yr(),Rv=$r(),Vle=ys().getAxisGroup,rp=KD();function Wle(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;us+l||!Qn(o))}for(var f=0;f{"use strict";var tE=kx(),aE=hf().setGroupPositions;function noe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;uD[f]&&f{"use strict";var loe=Br(),uE=wt(),zv=uE.BADNUM,fE=uE.LOG_CLIP,lE=fE+.5,oE=fE-.5,tp=Pe(),ooe=tp.segmentsIntersect,sE=tp.constrain,Ex=A1();cE.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,l=n.type==="log",o=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,h=t.connectGaps,d=t.baseTolerance,p=t.shape,y=p==="linear",m=a.fill&&a.fill!=="none",b=[],_=Ex.minTolerance,w=r.length,x=new Array(w),M=0,k,A,L,D,E,R,N,I,H,V,W,Y,O,G,J,$;function re(Fe){var ne=r[Fe];if(!ne)return!1;var ue=t.linearized?n.l2p(ne.x):n.c2p(ne.x),Se=t.linearized?i.l2p(ne.y):i.c2p(ne.y);if(ue===zv){if(l&&(ue=n.c2p(ne.x,!0)),ue===zv)return!1;o&&Se===zv&&(ue*=Math.abs(n._m*u*(n._m>0?lE:oE)/(i._m*s*(i._m>0?lE:oE)))),ue*=1e3}if(Se===zv){if(o&&(Se=i.c2p(ne.y,!0)),Se===zv)return!1;Se*=1e3}return[ue,Se]}function le(Fe,ne,ue,Se){var qe=ue-Fe,ir=Se-ne,vr=.5-Fe,ur=.5-ne,Ar=qe*qe+ir*ir,Ur=qe*vr+ir*ur;if(Ur>0&&Ur1||Math.abs(vr.y-ue[0][1])>1)&&(vr=[vr.x,vr.y],Se&&_e(vr,Fe)<_e(ue[0],Fe)?ue.unshift(vr):ue.push(vr),Se++)}return ue}function Ne(Fe){if(Fe[0]fe||Fe[1]U)return[sE(Fe[0],be,fe),sE(Fe[1],ye,U)]}function Ye(Fe,ne){if(Fe[0]===ne[0]&&(Fe[0]===be||Fe[0]===fe)||Fe[1]===ne[1]&&(Fe[1]===ye||Fe[1]===U))return!0}function Xe(Fe,ne){var ue=[],Se=Ne(Fe),qe=Ne(ne);return Se&&qe&&Ye(Se,qe)||(Se&&ue.push(Se),qe&&ue.push(qe)),ue}function Re(Fe,ne,ue){return function(Se,qe){var ir=Ne(Se),vr=Ne(qe),ur=[];if(ir&&vr&&Ye(ir,vr))return ur;ir&&ur.push(ir),vr&&ur.push(vr);var Ar=2*tp.constrain((Se[Fe]+qe[Fe])/2,ne,ue)-((ir||Se)[Fe]+(vr||qe)[Fe]);if(Ar){var Ur;ir&&vr?Ur=Ar>0==ir[Fe]>vr[Fe]?ir:vr:Ur=ir||vr,Ur[Fe]+=Ar}return ur}}var Be;p==="linear"||p==="spline"?Be=Ee:p==="hv"||p==="vh"?Be=Xe:p==="hvh"?Be=Re(0,be,fe):p==="vhv"&&(Be=Re(1,ye,U));function Oe(Fe,ne){var ue=ne[0]-Fe[0],Se=(ne[1]-Fe[1])/ue,qe=(Fe[1]*ne[0]-ne[1]*Fe[0])/ue;return qe>0?[Se>0?be:fe,U]:[Se>0?fe:be,ye]}function ie(Fe){var ne=Fe[0],ue=Fe[1],Se=ne===x[M-1][0],qe=ue===x[M-1][1];if(!(Se&&qe))if(M>1){var ir=ne===x[M-2][0],vr=ue===x[M-2][1];Se&&(ne===be||ne===fe)&&ir?vr?M--:x[M-1]=Fe:qe&&(ue===ye||ue===U)&&vr?ir?M--:x[M-1]=Fe:x[M++]=Fe}else x[M++]=Fe}function ke(Fe){x[M-1][0]!==Fe[0]&&x[M-1][1]!==Fe[1]&&ie([Me,xe]),ie(Fe),ze=null,Me=xe=0}var Ce=tp.isArrayOrTypedArray(c);function sr(Fe){if(Fe&&f&&(Fe.i=k,Fe.d=r,Fe.trace=a,Fe.marker=Ce?c[Fe.i]:c,Fe.backoff=f),se=Fe[0]/s,ve=Fe[1]/u,X=Fe[0]fe?fe:0,ge=Fe[1]U?U:0,X||ge){if(!M)x[M++]=[X||Fe[0],ge||Fe[1]];else if(ze){var ne=Be(ze,Fe);ne.length>1&&(ke(ne[0]),x[M++]=ne[1])}else Ie=Be(x[M-1],Fe)[0],x[M++]=Ie;var ue=x[M-1];X&&ge&&(ue[0]!==X||ue[1]!==ge)?(ze&&(Me!==X&&xe!==ge?ie(Me&&xe?Oe(ze,Fe):[Me||X,xe||ge]):Me&&xe&&ie([Me,xe])),ie([X,ge])):Me-X&&xe-ge&&ie([X||Me,ge||xe]),ze=Fe,Me=X,xe=ge}else ze&&ke(Be(ze,Fe)[0]),x[M++]=Fe}for(k=0;kQ(R,tr))break;L=R,O=H[0]*I[0]+H[1]*I[1],O>W?(W=O,D=R,N=!1):O=r.length||!R)break;sr(R),A=R}}ze&&ie([Me||ze[0],xe||ze[1]]),b.push(x.slice(0,M))}var De=p.slice(p.length-1);if(f&&De!=="h"&&De!=="v"){for(var Le=!1,Ge=-1,Ze=[],Ue=0;Ue{"use strict";var hE={tonextx:1,tonexty:1,tonext:1};dE.exports=function(r,t,a){var n,i,l,o,s,u={},f=!1,c=-1,h=0,d=-1;for(i=0;i=0?s=d:(s=d=h,h++),s{"use strict";var Mi=kr(),soe=yr(),Nv=Pe(),df=Nv.ensureSingle,yE=Nv.identity,Pt=Br(),pf=bn(),uoe=vE(),foe=pE(),ap=P3().tester;gE.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,c=foe(r,t,a);if(o=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),o.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),o.order(),coe(r,o,t),f){l&&(s=l());var h=Mi.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});h.each(function(){n.selectAll("g.trace").each(function(d,p){mE(r,p,t,d,c,this,i)})})}else o.each(function(d,p){mE(r,p,t,d,c,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function coe(e,r,t){r.each(function(a){var n=df(Mi.select(this),"g","fills");Pt.setClipUrl(n,t.layerClipId,e);var i=a[0].trace,l=[];i._ownfill&&l.push("_ownFill"),i._nexttrace&&l.push("_nextFill");var o=n.selectAll("g").data(l,yE);o.enter().append("g"),o.exit().each(function(s){i[s]=null}).remove(),o.order().each(function(s){i[s]=df(Mi.select(this),"path","js-fill")})})}function mE(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;voe(e,r,t,a,n);var u=!!l&&l.duration>0;function f(Re){return u?Re.transition():Re}var c=t.xaxis,h=t.yaxis,d=a[0].trace,p=d.line,y=Mi.select(i),m=df(y,"g","errorbars"),b=df(y,"g","lines"),_=df(y,"g","points"),w=df(y,"g","text");if(soe.getComponentMethod("errorbars","plot")(e,m,t,l),d.visible!==!0)return;f(y).style("opacity",d.opacity);var x,M,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var A,L;k==="y"?(A=1,L=h.c2p(0,!0)):k==="x"&&(A=0,L=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=y;var D="",E=[],R=d._prevtrace,N=null,I=null;R&&(D=R._prevRevpath||"",M=R._nextFill,E=R._ownPolygons,N=R._fillsegments,I=R._fillElement);var H,V,W="",Y="",O,G,J,$,re,le,se=[];d._polygons=[];var ve=[],Q=[],_e=Nv.noop;if(x=d._ownFill,pf.hasLines(d)||d.fill!=="none"){M&&M.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(O=Pt.steps(p.shape),G=Pt.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?O=G=function(Re){var Be=Re[Re.length-1];return Re.length>1&&Re[0][0]===Be[0]&&Re[0][1]===Be[1]?Pt.smoothclosed(Re.slice(1),p.smoothing):Pt.smoothopen(Re,p.smoothing)}:O=G=function(Re){return"M"+Re.join("L")},J=function(Re){return G(Re.reverse())},Q=uoe(a,{xaxis:c,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),ve=new Array(Q.length);var ce=0;for(s=0;s=o[0]&&y.x<=o[1]&&y.y>=s[0]&&y.y<=s[1]}),h=Math.ceil(c.length/f),d=0;n.forEach(function(y,m){var b=y[0].trace;pf.hasMarkers(b)&&b.marker.maxdisplayed>0&&m{"use strict";bE.exports={container:"marker",min:"cmin",max:"cmax"}});var wE=B((F3e,_E)=>{"use strict";var ip=$r();_E.exports=function(r,t,a){var n={},i={_fullLayout:a},l=ip.getFromTrace(i,t,"x"),o=ip.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=ip.tickText(l,l.c2l(s),!0).text,n.yLabel=ip.tickText(o,o.c2l(u),!0).text,n}});var Nx=B((I3e,TE)=>{"use strict";var Px=kr(),mf=Br(),hoe=yr();function doe(e){var r=Px.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=Px.select(this),n=t.trace||t[0].trace;Rx(a,n,e)}),r.selectAll("g.text").each(function(t){var a=Px.select(this),n=t.trace||t[0].trace;zx(a,n,e)}),r.selectAll("g.trace path.js-line").call(mf.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(mf.fillGroupStyle,e,!1),hoe.getComponentMethod("errorbars","style")(r)}function Rx(e,r,t){mf.pointStyle(e.selectAll("path.point"),r,t)}function zx(e,r,t){mf.textPointStyle(e.selectAll("text"),r,t)}function poe(e,r,t){var a=r[0].trace;a.selectedpoints?(mf.selectedPointStyle(t.selectAll("path.point"),a),mf.selectedTextStyle(t.selectAll("text"),a)):(Rx(t,a,e),zx(t,a,e))}TE.exports={style:doe,stylePoints:Rx,styleText:zx,styleOnSelect:poe}});var AE=B((H3e,ME)=>{"use strict";var yf=xr(),moe=bn();ME.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&yf.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,l=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&yf.opacity(i)?i:l&&yf.opacity(l)&&(t.mlw||((r.marker||{}).line||{}).width)?l:"",n?yf.opacity(n)<.3?yf.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&yf.opacity(a)&&moe.hasLines(r)&&r.line.width?a:r.fillcolor)}});var CE=B((O3e,qE)=>{"use strict";var lp=Pe(),kE=gi(),yoe=yr(),goe=AE(),Fx=xr(),xoe=lp.fillText;qE.exports=function(r,t,a,n){var i=r.cd,l=i[0].trace,o=r.xa,s=r.ya,u=o.c2p(t),f=s.c2p(a),c=[u,f],h=l.hoveron||"",d=l.mode.indexOf("markers")!==-1?3:.5,p=!!l.xperiodalignment,y=!!l.yperiodalignment;if(h.indexOf("points")!==-1){var m=function(Y){if(p){var O=o.c2p(Y.xStart),G=o.c2p(Y.xEnd);return u>=Math.min(O,G)&&u<=Math.max(O,G)?0:1/0}var J=Math.max(3,Y.mrc||0),$=1-1/J,re=Math.abs(o.c2p(Y.x)-u);return re=Math.min(O,G)&&f<=Math.max(O,G)?0:1/0}var J=Math.max(3,Y.mrc||0),$=1-1/J,re=Math.abs(s.c2p(Y.y)-f);return rese!=U>=se&&(be=_e[Q-1][0],fe=_e[Q][0],U-ye&&(ce=be+(fe-be)*(se-ye)/(U-ye),J=Math.min(J,ce),$=Math.max($,ce)));return J=Math.max(J,0),$=Math.min($,o._length),{x0:J,x1:$,y0:se,y1:se}}if(h.indexOf("fills")!==-1&&l._fillElement){var H=N(l._fillElement)&&!N(l._fillExclusionElement);if(H){var V=I(l._polygons);V===null&&(V={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var W=Fx.defaultLine;return Fx.opacity(l.fillcolor)?W=l.fillcolor:Fx.opacity((l.line||{}).color)&&(W=l.line.color),lp.extendFlat(r,{distance:r.maxHoverDistance,x0:V.x0,x1:V.x1,y0:V.y0,y1:V.y1,color:W,hovertemplate:!1}),delete r.index,l.text&&!lp.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var DE=B((B3e,SE)=>{"use strict";var LE=bn();SE.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o=a[0].trace,s,u,f,c,h=!LE.hasMarkers(o)&&!LE.hasText(o);if(h)return[];if(t===!1)for(s=0;s{"use strict";EE.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var FE=B((G3e,NE)=>{"use strict";var Fv=yr().traceIs,Ix=f2();NE.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(boe(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function boe(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=_oe(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var l=a+"calendar",o=i[l],s={noMultiCategory:!Fv(i,"cartesian")||Fv(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,zE(i,a)){var u=RE(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(zE(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function RE(e){return{v:"x",h:"y"}[e.orientation||"v"]}function zE(e,r){var t=RE(e),a=Fv(e,"box-violin"),n=Fv(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var HE=B((U3e,IE)=>{"use strict";var woe=yn().isTypedArraySpec;function Toe(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,l;if(r.axData)n=r.axData;else for(n=[],i=0;i0||woe(i),o;l&&(o="array");var s=a("categoryorder",o),u;s==="array"&&(u=a("categoryarray")),!l&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=Toe(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var YE=B((V3e,BE)=>{"use strict";var OE=Rn().mix,Moe=zn(),Aoe=Pe();BE.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(L,D){return Aoe.coerce2(r,t,n.attributes,L,D)}var o=l("linecolor",i),s=l("linewidth"),u=a("showline",n.showLine||!!o||!!s);u||(delete t.linecolor,delete t.linewidth);var f=OE(i,n.bgColor,n.blend||Moe.lightFraction).toRgbString(),c=l("gridcolor",f),h=l("gridwidth"),d=l("griddash"),p=a("showgrid",n.showGrid||!!c||!!h||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var y=OE(t.gridcolor,n.bgColor,67).toRgbString(),m=l("minor.gridcolor",y),b=l("minor.gridwidth",t.gridwidth||1),_=l("minor.griddash",t.griddash||"solid"),w=a("minor.showgrid",!!m||!!b||!!_);w||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var x=l("zerolinelayer"),M=l("zerolinecolor",i),k=l("zerolinewidth"),A=a("zeroline",n.showGrid||!!M||!!k);A||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var sp=B((W3e,ZE)=>{"use strict";var GE=zr(),koe=yr(),Iv=Pe(),qoe=ot(),Coe=On(),Hx=xn(),UE=Kh(),VE=Qh(),Loe=ed(),Soe=rd(),Doe=HE(),Eoe=YE(),Poe=S2(),WE=md(),op=wa().WEEKDAY_PATTERN,Roe=wa().HOUR_PATTERN;ZE.exports=function(r,t,a,n,i){var l=n.letter,o=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",h;if(c==="date"){var d=koe.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(h=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=Iv.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:l==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),WE(t,i),Poe(r,t,a,n),Doe(r,t,a,n),c!=="category"&&!n.noHover&&a("hoverformat");var y=a("color"),m=y!==Hx.color.dflt?y:o.color,b=s.label||i._dfltTitle[l];if(Soe(r,t,a,c,n),!u)return t;a("title.text",b),Iv.coerceFont(a,"title.font",o,{overrideDflt:{size:Iv.bigFont(o.size),color:m}}),UE(r,t,a,c);var _=n.hasMinor;if(_&&(qoe.newContainer(t,"minor"),UE(r,t,a,c,{isMinor:!0})),Loe(r,t,a,c,n),VE(r,t,a,n),_){var w=n.isMinor;n.isMinor=!0,VE(r,t,a,n),n.isMinor=w}Eoe(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:_,attributes:Hx}),_&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var x=c==="multicategory";if(!n.noTickson&&(c==="category"||x)&&(t.ticks||t.showgrid)&&(x?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),x){var M=a("showdividers");M&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(Coe(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:zoe}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var l="",o,s;if(i.length===2){for(o=0;o<2;o++)if(s=XE(i[o]),s){l=op;break}}var u=a("pattern",l);if(u===op)for(o=0;o<2;o++)s=XE(i[o]),s&&(r.bounds[o]=i[o]=s-1);if(u)for(o=0;o<2;o++)switch(s=i[o],u){case op:if(!GE(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[o]=i[o]=s;break;case Roe:if(!GE(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[o]=i[o]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var Foe=zr(),up=Pe();JE.exports=function(r,t,a,n){var i=n.counterAxes||[],l=n.overlayableAxes||[],o=n.letter,s=n.grid,u=n.overlayingDomain,f,c,h,d,p,y;s&&(c=s._domains[o][s._axisMap[t._id]],f=s._anchors[t._id],c&&(h=s[o+"side"].split(" ")[0],d=s.domain[o][h==="right"||h==="top"?1:0])),c=c||[0,1],f=f||(Foe(r.position)?"free":i[0]||"free"),h=h||(o==="x"?"bottom":"left"),d=d||0,p=0,y=!1;var m=up.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=up.coerce(r,t,{side:{valType:"enumerated",values:o==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(m==="free"){if(o==="y"){var _=a("autoshift");_&&(d=b==="left"?u[0]:u[1],y=t.automargin?t.automargin:!0,p=b==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",y);var w=!1;if(l.length&&(w=up.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!w){var x=a("domain",c);x[0]>x[1]-1/4096&&(t.domain=c),up.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var nP=B((Z3e,aP)=>{"use strict";var Ts=Pe(),$E=xr(),Ioe=Hi().isUnifiedHover,Hoe=t3(),KE=ot(),Ooe=xu(),QE=xn(),Boe=FE(),jE=sp(),Yoe=ys(),eP=fp(),Bx=Jt(),$i=Bx.id2name,rP=Bx.name2id,Goe=wa().AX_ID_PATTERN,tP=yr(),cp=tP.traceIs,Ox=tP.getComponentMethod;function vp(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}aP.exports=function(r,t,a){var n=t.autotypenumbers,i={},l={},o={},s={},u={},f={},c={},h={},d={},p={},y,m;for(y=0;y{"use strict";var Uoe=kr(),iP=yr(),hp=Pe(),kn=Br(),dp=$r();lP.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){dp.redrawComponents(r);return}function l(m){var b=m.xaxis,_=m.yaxis;i._defs.select("#"+m.clipId+"> rect").call(kn.setTranslate,0,0).call(kn.setScale,1,1),m.plot.call(kn.setTranslate,b._offset,_._offset).call(kn.setScale,1,1);var w=m.plot.selectAll(".scatterlayer .trace");w.selectAll(".point").call(kn.setPointGroupScale,1,1),w.selectAll(".textpoint").call(kn.setTextPointsScale,1,1),w.call(kn.hideOutsideRangePoints,m)}function o(m,b){var _=m.plotinfo,w=_.xaxis,x=_.yaxis,M=w._length,k=x._length,A=!!m.xr1,L=!!m.yr1,D=[];if(A){var E=hp.simpleMap(m.xr0,w.r2l),R=hp.simpleMap(m.xr1,w.r2l),N=E[1]-E[0],I=R[1]-R[0];D[0]=(E[0]*(1-b)+b*R[0]-E[0])/(E[1]-E[0])*M,D[2]=M*(1-b+b*I/N),w.range[0]=w.l2r(E[0]*(1-b)+b*R[0]),w.range[1]=w.l2r(E[1]*(1-b)+b*R[1])}else D[0]=0,D[2]=M;if(L){var H=hp.simpleMap(m.yr0,x.r2l),V=hp.simpleMap(m.yr1,x.r2l),W=H[1]-H[0],Y=V[1]-V[0];D[1]=(H[1]*(1-b)+b*V[1]-H[1])/(H[0]-H[1])*k,D[3]=k*(1-b+b*Y/W),x.range[0]=w.l2r(H[0]*(1-b)+b*V[0]),x.range[1]=x.l2r(H[1]*(1-b)+b*V[1])}else D[1]=0,D[3]=k;dp.drawOne(r,w,{skipTitle:!0}),dp.drawOne(r,x,{skipTitle:!0}),dp.redrawComponents(r,[w._id,x._id]);var O=A?M/D[2]:1,G=L?k/D[3]:1,J=A?D[0]:0,$=L?D[1]:0,re=A?D[0]/D[2]*M:0,le=L?D[1]/D[3]*k:0,se=w._offset-re,ve=x._offset-le;_.clipRect.call(kn.setTranslate,J,$).call(kn.setScale,1/O,1/G),_.plot.call(kn.setTranslate,se,ve).call(kn.setScale,O,G),kn.setPointGroupScale(_.zoomScalePts,1/O,1/G),kn.setTextPointsScale(_.zoomScaleTxt,1/O,1/G)}var s;n&&(s=n());function u(){for(var m={},b=0;ba.duration?(u(),d=window.cancelAnimationFrame(y)):d=window.requestAnimationFrame(y)}return c=Date.now(),d=window.requestAnimationFrame(y),Promise.resolve()}});var gl=B(Pa=>{"use strict";var mp=kr(),sP=yr(),Ms=Pe(),Voe=St(),Woe=Br(),uP=_g().getModuleCalcData,io=Jt(),Ai=wa(),Xoe=Qo(),Kr=Ms.ensureSingle;function pp(e,r,t){return Ms.ensureSingle(e,r,t,function(a){a.datum(t)})}var As=Ai.zindexSeparator;Pa.name="cartesian";Pa.attr=["xaxis","yaxis"];Pa.idRoot=["x","y"];Pa.idRegex=Ai.idRegex;Pa.attrRegex=Ai.attrRegex;Pa.attributes=PE();Pa.layoutAttributes=xn();Pa.supplyLayoutDefaults=nP();Pa.transitionAxes=oP();Pa.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,l=i,o={},s={},u,f,c;for(u=0;u0){var d=h.id;if(d.indexOf(As)!==-1)continue;d+=As+(u+1),h=Ms.extendFlat({},h,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],y,m=0;m1&&(M+=As+x),w.push(o+M),l=0;l1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=Kr(a,"path","xlines-above"),r.ylines=Kr(a,"path","ylines-above"),r.xaxislayer=Kr(a,"g","xaxislayer-above"),r.yaxislayer=Kr(a,"g","yaxislayer-above");else{if(!l){var h=Kr(a,"g","layer-subplot");r.shapelayer=Kr(h,"g","shapelayer"),r.imagelayer=Kr(h,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=Kr(a,"g","minor-gridlayer"),r.gridlayer=Kr(a,"g","gridlayer"),r.zerolinelayer=Kr(a,"g","zerolinelayer"));var d=Kr(a,"g","layer-between");r.shapelayerBetween=Kr(d,"g","shapelayer"),r.imagelayerBetween=Kr(d,"g","imagelayer"),Kr(a,"path","xlines-below"),Kr(a,"path","ylines-below"),r.overlinesBelow=Kr(a,"g","overlines-below"),Kr(a,"g","xaxislayer-below"),Kr(a,"g","yaxislayer-below"),r.overaxesBelow=Kr(a,"g","overaxes-below")}r.overplot=Kr(a,"g","overplot"),r.plot=Kr(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=Kr(a,"g","zerolinelayer-above"),l||(r.xlines=Kr(a,"path","xlines-above"),r.ylines=Kr(a,"path","ylines-above"),r.overlinesAbove=Kr(a,"g","overlines-above"),Kr(a,"g","xaxislayer-above"),Kr(a,"g","yaxislayer-above"),r.overaxesAbove=Kr(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+o),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+o),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,y=n+"-x",m=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,Kr(c.overlinesBelow,"path",y),Kr(c.overlinesBelow,"path",m),Kr(c.overaxesBelow,"g",y),Kr(c.overaxesBelow,"g",m),r.plot=Kr(c.overplot,"g",n),Kr(c.overlinesAbove,"path",y),Kr(c.overlinesAbove,"path",m),Kr(c.overaxesAbove,"g",y),Kr(c.overaxesAbove,"g",m),r.xlines=p.select(".overlines-"+o).select("."+y),r.ylines=p.select(".overlines-"+s).select("."+m),r.xaxislayer=p.select(".overaxes-"+o).select("."+y),r.yaxislayer=p.select(".overaxes-"+s).select("."+m)}l||(u||(pp(r.minorGridlayer,"g",r.xaxis._id),pp(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(io.idSort),pp(r.gridlayer,"g",r.xaxis._id),pp(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(io.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function vP(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=mp.select(this);f.remove(),hP(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],l=0;l{"use strict";var yp=bn();dP.exports={hasLines:yp.hasLines,hasMarkers:yp.hasMarkers,hasText:yp.hasText,isBubble:yp.isBubble,attributes:bi(),layoutAttributes:Bh(),supplyDefaults:LD(),crossTraceDefaults:ED(),supplyLayoutDefaults:RD(),calc:kx().calc,crossTraceCalc:iE(),arraysToCalcdata:_x(),plot:xE(),colorbar:np(),formatLabels:wE(),style:Nx().style,styleOnSelect:Nx().styleOnSelect,hoverPoints:CE(),selectPoints:DE(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:gl(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var gP=B((Q3e,yP)=>{"use strict";var Joe=kr(),$oe=xr(),mP=V3(),Yx=Pe(),Koe=Yx.strScale,Qoe=Yx.strRotate,joe=Yx.strTranslate;yP.exports=function(r,t,a){var n=r.node(),i=mP[a.arrowhead||0],l=mP[a.startarrowhead||0],o=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*o+a.standoff,h=l.backoff*s+a.startstandoff,d,p,y,m;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var b=d.x-p.x,_=d.y-p.y;if(y=Math.atan2(_,b),m=y+Math.PI,c&&h&&c+h>Math.sqrt(b*b+_*_)){H();return}if(c){if(c*c>b*b+_*_){H();return}var w=c*Math.cos(y),x=c*Math.sin(y);p.x+=w,p.y+=x,r.attr({x2:p.x,y2:p.y})}if(h){if(h*h>b*b+_*_){H();return}var M=h*Math.cos(y),k=h*Math.sin(y);d.x-=M,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var A=n.getTotalLength(),L="";if(A{"use strict";var xP=kr(),Gx=yr(),ese=St(),oo=Pe(),Ux=oo.strTranslate,Ov=$r(),ks=xr(),xl=Br(),bP=gi(),Vx=va(),Wx=Kl(),Hv=mi(),rse=ot().arrayEditor,tse=gP();TP.exports={draw:ase,drawOne:_P,drawRaw:wP};function ase(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?qe="right":qe="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[qe]}for(var ye=!1,U=["x","y"],te=0;te1)&&(Me===ge?(tr=xe.r2fraction(r["a"+X]),(tr<0||tr>1)&&(ye=!0)):ye=!0),Be=xe._offset+xe.r2p(r[X]),ke=.5}else{var De=sr==="domain";X==="x"?(ie=r[X],Be=De?xe._offset+xe._length*ie:Be=o.l+o.w*ie):(ie=1-r[X],Be=De?xe._offset+xe._length*ie:Be=o.t+o.h*ie),ke=r.showarrow?.5:ie}if(r.showarrow){Re.head=Be;var Le=r["a"+X];if(Ce=Ie*fe(.5,r.xanchor)-Ee*fe(.5,r.yanchor),Me===ge){var Ge=Ov.getRefType(Me);Ge==="domain"?(X==="y"&&(Le=1-Le),Re.tail=xe._offset+xe._length*Le):Ge==="paper"?X==="y"?(Le=1-Le,Re.tail=o.t+o.h*Le):Re.tail=o.l+o.w*Le:Re.tail=xe._offset+xe.r2p(Le),Oe=Ce}else Re.tail=Be+Le,Oe=Ce+Le;Re.text=Re.tail+Ce;var Ze=l[X==="x"?"width":"height"];if(ge==="paper"&&(Re.head=oo.constrain(Re.head,1,Ze-1)),Me==="pixel"){var Ue=-Math.max(Re.tail-3,Re.text),He=Math.min(Re.tail+3,Re.text)-Ze;Ue>0?(Re.tail+=Ue,Re.text+=Ue):He>0&&(Re.tail-=He,Re.text-=He)}Re.tail+=Xe,Re.head+=Xe}else Ce=Ne*fe(ke,Ye),Oe=Ce,Re.text=Be+Ce;Re.text+=Xe,Ce+=Xe,Oe+=Xe,r["_"+X+"padplus"]=Ne/2+Oe,r["_"+X+"padminus"]=Ne/2-Oe,r["_"+X+"size"]=Ne,r["_"+X+"shift"]=Ce}if(ye){A.remove();return}var $e=0,cr=0;if(r.align!=="left"&&($e=(Q-se)*(r.align==="center"?.5:1)),r.valign!=="top"&&(cr=(_e-ve)*(r.valign==="middle"?.5:1)),re)$.select("svg").attr({x:E+$e-1,y:E+cr}).call(xl.setClipUrl,N?y:null,e);else{var lr=E+cr-le.top,Fe=E+$e-le.left;W.call(Vx.positionText,Fe,lr).call(xl.setClipUrl,N?y:null,e)}I.select("rect").call(xl.setRect,E,E,Q,_e),R.call(xl.setRect,L/2,L/2,ce-L,be-L),A.call(xl.setTranslate,Math.round(m.x.text-ce/2),Math.round(m.y.text-be/2)),w.attr({transform:"rotate("+b+","+m.x.text+","+m.y.text+")"});var ne=function(Se,qe){_.selectAll(".annotation-arrow-g").remove();var ir=m.x.head,vr=m.y.head,ur=m.x.tail+Se,Ar=m.y.tail+qe,Ur=m.x.text+Se,et=m.y.text+qe,Wr=oo.rotationXYMatrix(b,Ur,et),Nt=oo.apply2DTransform(Wr),oa=oo.apply2DTransform2(Wr),Na=+R.attr("width"),sa=+R.attr("height"),Sn=Ur-.5*Na,Za=Sn+Na,ua=et-.5*sa,Ja=ua+sa,gr=[[Sn,ua,Sn,Ja],[Sn,Ja,Za,Ja],[Za,Ja,Za,ua],[Za,ua,Sn,ua]].map(oa);if(!gr.reduce(function(lt,ma){return lt^!!oo.segmentsIntersect(ir,vr,ir+1e6,vr+1e6,ma[0],ma[1],ma[2],ma[3])},!1)){gr.forEach(function(lt){var ma=oo.segmentsIntersect(ur,Ar,ir,vr,lt[0],lt[1],lt[2],lt[3]);ma&&(ur=ma.x,Ar=ma.y)});var ft=r.arrowwidth,Xr=r.arrowcolor,bt=r.arrowside,Lt=_.append("g").style({opacity:ks.opacity(Xr)}).classed("annotation-arrow-g",!0),ct=Lt.append("path").attr("d","M"+ur+","+Ar+"L"+ir+","+vr).style("stroke-width",ft+"px").call(ks.stroke,ks.rgb(Xr));if(tse(ct,bt,r),s.annotationPosition&&ct.node().parentNode&&!a){var _t=ir,Fa=vr;if(r.standoff){var fa=Math.sqrt(Math.pow(ir-ur,2)+Math.pow(vr-Ar,2));_t+=r.standoff*(ur-ir)/fa,Fa+=r.standoff*(Ar-vr)/fa}var ai=Lt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ur-_t)+","+(Ar-Fa),transform:Ux(_t,Fa)}).style("stroke-width",ft+6+"px").call(ks.stroke,"rgba(0,0,0,0)").call(ks.fill,"rgba(0,0,0,0)"),ni,Qt;Hv.init({element:ai.node(),gd:e,prepFn:function(){var lt=xl.getTranslate(A);ni=lt.x,Qt=lt.y,n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(lt,ma){var Do=Nt(ni,Qt),Eo=Do[0]+lt,Sl=Do[1]+ma;A.call(xl.setTranslate,Eo,Sl),d("x",lo(n,lt,"x",o,r)),d("y",lo(i,ma,"y",o,r)),r.axref===r.xref&&d("ax",lo(n,lt,"ax",o,r)),r.ayref===r.yref&&d("ay",lo(i,ma,"ay",o,r)),Lt.attr("transform",Ux(lt,ma)),w.attr({transform:"rotate("+b+","+Eo+","+Sl+")"})},doneFn:function(){Gx.call("_guiRelayout",e,p());var lt=document.querySelector(".js-notes-box-panel");lt&<.redraw(lt.selectedObj)}})}}};if(r.showarrow&&ne(0,0),x){var ue;Hv.init({element:A.node(),gd:e,prepFn:function(){ue=w.attr("transform")},moveFn:function(Se,qe){var ir="pointer";if(r.showarrow)r.axref===r.xref?d("ax",lo(n,Se,"ax",o,r)):d("ax",r.ax+Se),r.ayref===r.yref?d("ay",lo(i,qe,"ay",o.w,r)):d("ay",r.ay+qe),ne(Se,qe);else{if(a)return;var vr,ur;if(n)vr=lo(n,Se,"x",o,r);else{var Ar=r._xsize/o.w,Ur=r.x+(r._xshift-r.xshift)/o.w-Ar/2;vr=Hv.align(Ur+Se/o.w,Ar,0,1,r.xanchor)}if(i)ur=lo(i,qe,"y",o,r);else{var et=r._ysize/o.h,Wr=r.y-(r._yshift+r.yshift)/o.h-et/2;ur=Hv.align(Wr-qe/o.h,et,0,1,r.yanchor)}d("x",vr),d("y",ur),(!n||!i)&&(ir=Hv.getCursor(n?.5:vr,i?.5:ur,r.xanchor,r.yanchor))}w.attr({transform:Ux(Se,qe)+ue}),Wx(A,ir)},clickFn:function(Se,qe){r.captureevents&&e.emit("plotly_clickannotation",k(qe))},doneFn:function(){Wx(A),Gx.call("_guiRelayout",e,p());var Se=document.querySelector(".js-notes-box-panel");Se&&Se.redraw(Se.selectedObj)}})}}s.annotationText?W.call(Vx.makeEditable,{delegate:A,gd:e}).call(Y).on("edit",function(G){r.text=G,this.call(Y),d("text",G),n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),Gx.call("_guiRelayout",e,p())}):W.call(Y)}});var LP=B((exe,CP)=>{"use strict";var MP=Pe(),nse=yr(),AP=ot().arrayEditor;CP.exports={hasClickToShow:ise,onClick:lse};function ise(e,r){var t=qP(e,r);return t.on.length>0||t.explicitOff.length>0}function lse(e,r){var t=qP(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},l=e._fullLayout.annotations,o,s;if(a.length||n.length){for(o=0;o{"use strict";var Xx=Pe(),gf=xr();SP.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),l=n("bordercolor"),o=gf.opacity(l);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),Xx.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),h,d;c.indexOf("end")!==-1&&(h=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",h),n("startarrowsize",d)),n("arrowcolor",o?t.bordercolor:gf.defaultLine),n("arrowwidth",(o&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),y=a.hoverlabel||{};if(p){var m=n("hoverlabel.bgcolor",y.bgcolor||(gf.opacity(i)?gf.rgb(i):gf.defaultLine)),b=n("hoverlabel.bordercolor",y.bordercolor||gf.contrast(m)),_=Xx.extendFlat({},y.font);_.color||(_.color=b),Xx.coerceFont(n,"hoverlabel.font",_)}n("captureevents",!!p)}});var EP=B((txe,DP)=>{"use strict";var Jx=Pe(),qs=$r(),ose=On(),sse=Zx(),use=lf();DP.exports=function(r,t){ose(r,t,{name:"annotations",handleItemDefaults:fse})};function fse(e,r,t){function a(w,x){return Jx.coerce(e,r,use,w,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){sse(e,r,t,a);for(var l=r.showarrow,o=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=o[f],h=qs.coerceRef(e,r,u,c,"","paper");if(h!=="paper"){var d=qs.getFromId(u,h);d._annIndices.push(r._index)}if(qs.coercePosition(r,u,a,h,c,.5),l){var p="a"+c,y=qs.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);y!=="pixel"&&y!==h&&(y=r[p]="pixel");var m=y==="pixel"?s[f]:.4;qs.coercePosition(r,u,a,y,p,m)}a(c+"anchor"),a(c+"shift")}if(Jx.noneOrAll(e,r,["x","y"]),l&&Jx.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),_=a("yclick");r._xclick=b===void 0?r.x:qs.cleanPosition(b,u,r.xref),r._yclick=_===void 0?r.y:qs.cleanPosition(_,u,r.yref)}}}});var zP=B((axe,RP)=>{"use strict";var $x=Pe(),Cs=$r(),cse=gp().draw;RP.exports=function(r){var t=r._fullLayout,a=$x.filterVisible(t.annotations);if(a.length&&r._fullData.length)return $x.syncOrAsync([cse,vse],r)};function vse(e){var r=e._fullLayout;$x.filterVisible(r.annotations).forEach(function(t){var a=Cs.getFromId(e,t.xref),n=Cs.getFromId(e,t.yref),i=Cs.getRefType(t.xref),l=Cs.getRefType(t.yref);t._extremes={},i==="range"&&PP(t,a),l==="range"&&PP(t,n)})}function PP(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],l=e[a+"ref"],o=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,h=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,y=p+f,m=p-f,b;if(o===l){var _=Cs.findExtremes(r,[r.r2c(n)],{ppadplus:h,ppadminus:d}),w=Cs.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,y),ppadminus:Math.max(u,m)});b={min:[_.min[0],w.min[0]],max:[_.max[0],w.max[0]]}}else y=i?y+i:y,m=i?m-i:m,b=Cs.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,h,y),ppadminus:Math.max(u,d,m)});e._extremes[t]=b}});var FP=B((nxe,NP)=>{"use strict";var hse=zr(),dse=sh();NP.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(!(i||l))return;var o=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(d){var p=u[d],y=null;i?y=dse(p,t.range):y=Math.pow(10,p),hse(y)||(y=null),n(f+d,y)}for(var h=0;h{"use strict";var Kx=gp(),IP=LP();HP.exports={moduleType:"component",name:"annotations",layoutAttributes:lf(),supplyLayoutDefaults:EP(),includeBasePlot:xv()("annotations"),calcAutorange:zP(),draw:Kx.draw,drawOne:Kx.drawOne,drawRaw:Kx.drawRaw,hasClickToShow:IP.hasClickToShow,onClick:IP.onClick,convertCoords:FP()}});var xp=B((lxe,BP)=>{"use strict";var dt=lf(),pse=ui().overrideAll,mse=ot().templatedArray;BP.exports=pse(mse("annotation",{visible:dt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:dt.xanchor,xshift:dt.xshift,yanchor:dt.yanchor,yshift:dt.yshift,text:dt.text,textangle:dt.textangle,font:dt.font,width:dt.width,height:dt.height,opacity:dt.opacity,align:dt.align,valign:dt.valign,bgcolor:dt.bgcolor,bordercolor:dt.bordercolor,borderpad:dt.borderpad,borderwidth:dt.borderwidth,showarrow:dt.showarrow,arrowcolor:dt.arrowcolor,arrowhead:dt.arrowhead,startarrowhead:dt.startarrowhead,arrowside:dt.arrowside,arrowsize:dt.arrowsize,startarrowsize:dt.startarrowsize,arrowwidth:dt.arrowwidth,standoff:dt.standoff,startstandoff:dt.startstandoff,hovertext:dt.hovertext,hoverlabel:dt.hoverlabel,captureevents:dt.captureevents}),"calc","from-root")});var GP=B((oxe,YP)=>{"use strict";var Qx=Pe(),yse=$r(),gse=On(),xse=Zx(),bse=xp();YP.exports=function(r,t,a){gse(r,t,{name:"annotations",handleItemDefaults:_se,fullLayout:a.fullLayout})};function _se(e,r,t,a){function n(o,s){return Qx.coerce(e,r,bse,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],yse.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(xse(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),Qx.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),Qx.noneOrAll(e,r,["ax","ay"])))}});var XP=B((sxe,WP)=>{"use strict";var UP=Pe(),VP=$r();WP.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function jx(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function Tse(e,r){var t=jx(e.projection,jx(e.view,jx(e.model,[r[0],r[1],r[2],1])));return t}ZP.exports=Tse});var KP=B((fxe,$P)=>{"use strict";var Mse=gp().drawRaw,Ase=JP(),kse=["x","y","z"];$P.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){o=!0;break}}o?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(l._pdata=Ase(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),Mse(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var eR=B((cxe,jP)=>{"use strict";var qse=yr(),QP=Pe();jP.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:xp()}}},layoutAttributes:xp(),handleDefaults:GP(),includeBasePlot:Cse,convert:XP(),draw:KP()};function Cse(e,r){var t=qse.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var rR=lf(),tR=jt(),aR=bi().line,Lse=fi().dash,ki=mt().extendFlat,Sse=ot().templatedArray,vxe=gv(),xf=rn(),Dse=_a().shapeTexttemplateAttrs,Ese=bh();nR.exports=Sse("shape",{visible:ki({},xf.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:ki({},xf.legend,{editType:"calc+arraydraw"}),legendgroup:ki({},xf.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:ki({},xf.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:tR({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:ki({},xf.legendrank,{editType:"calc+arraydraw"}),legendwidth:ki({},xf.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:ki({},rR.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:ki({},rR.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:ki({},aR.color,{editType:"arraydraw"}),width:ki({},aR.width,{editType:"calc+arraydraw"}),dash:ki({},Lse,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Dse({},{keys:Object.keys(Ese)}),font:tR({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var oR=B((dxe,lR)=>{"use strict";var Bv=Pe(),bf=$r(),Pse=On(),Rse=e5(),iR=eo();lR.exports=function(r,t){Pse(r,t,{name:"shapes",handleItemDefaults:Nse})};function zse(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Nse(e,r,t){function a(G,J){return Bv.coerce(e,r,Rse,G,J)}r._isShape=!0;var n=a("visible");if(n){var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),Bv.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var l=a("path"),o=l?"path":"rect",s=a("type",o),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));for(var c=a("xsizemode"),h=a("ysizemode"),d=["x","y"],p=0;p<2;p++){var y=d[p],m=y+"anchor",b=y==="x"?c:h,_={_fullLayout:t},w,x,M,k=bf.coerceRef(e,r,_,y,void 0,"paper"),A=bf.getRefType(k);if(A==="range"?(w=bf.getFromId(_,k),w._shapeIndices.push(r._index),M=iR.rangeToShapePosition(w),x=iR.shapePositionToRange(w),(w.type==="category"||w.type==="multicategory")&&(a(y+"0shift"),a(y+"1shift"))):x=M=Bv.identity,u){var L=.25,D=.75,E=y+"0",R=y+"1",N=e[E],I=e[R];e[E]=x(e[E],!0),e[R]=x(e[R],!0),b==="pixel"?(a(E,0),a(R,10)):(bf.coercePosition(r,_,a,k,E,L),bf.coercePosition(r,_,a,k,R,D)),r[E]=M(r[E]),r[R]=M(r[R]),e[E]=N,e[R]=I}if(b==="pixel"){var H=e[m];e[m]=x(e[m],!0),bf.coercePosition(r,_,a,k,m,.25),r[m]=M(r[m]),e[m]=H}}u&&Bv.noneOrAll(e,r,["x0","x1","y0","y1"]);var V=s==="line",W,Y;if(u&&(W=a("label.texttemplate")),W||(Y=a("label.text")),Y||W){a("label.textangle");var O=a("label.textposition",V?"middle":"middle center");a("label.xanchor"),a("label.yanchor",zse(V,O)),a("label.padding"),Bv.coerceFont(a,"label.font",t.font)}}}});var fR=B((pxe,uR)=>{"use strict";var Fse=xr(),sR=Pe();function Ise(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}uR.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),sR.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",Fse.contrast(i)),a("newshape.line.dash")}var l=r.dragmode==="drawline",o=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(o||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",l?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",Ise(l,u)),a("newshape.label.padding"),sR.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var pR=B((mxe,dR)=>{"use strict";var r5=Pe(),_f=$r(),wf=jc(),vR=eo();dR.exports=function(r){var t=r._fullLayout,a=r5.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n0?u+l:l;return{ppad:l,ppadplus:o?c:h,ppadminus:o?h:c}}else return{ppad:l}}function cR(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,l,o=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],l=r[a+"1"],n&&(o=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],l=r[a+"anchor"]),i!==void 0)return[u(i)+o,u(l)+s];if(r.path){var c=1/0,h=-1/0,d=r.path.match(wf.segmentRE),p,y,m,b,_;for(e.type==="date"&&(u=vR.decodeDate(u)),p=0;ph&&(h=_)));if(h>=c)return[c,h]}}});var gR=B((yxe,yR)=>{"use strict";var mR=s1();yR.exports={moduleType:"component",name:"shapes",layoutAttributes:e5(),supplyLayoutDefaults:oR(),supplyDrawNewShapeDefaults:fR(),includeBasePlot:xv()("shapes"),calcAutorange:pR(),draw:mR.draw,drawOne:mR.drawOne}});var t5=B((xxe,bR)=>{"use strict";var xR=wa(),Bse=ot().templatedArray,gxe=gv();bR.exports=Bse("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",xR.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",xR.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var wR=B((bxe,_R)=>{"use strict";var Yse=Pe(),a5=$r(),Gse=On(),Use=t5(),Vse="images";_R.exports=function(r,t){var a={name:Vse,handleItemDefaults:Wse};Gse(r,t,a)};function Wse(e,r,t){function a(h,d){return Yse.coerce(e,r,Use,h,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var l={_fullLayout:t},o=["x","y"],s=0;s<2;s++){var u=o[s],f=a5.coerceRef(e,r,l,u,"paper",void 0);if(f!=="paper"){var c=a5.getFromId(l,f);c._imgIndices.push(r._index)}a5.coercePosition(r,l,a,f,u,0)}return r}});var kR=B((_xe,AR)=>{"use strict";var TR=kr(),Xse=Br(),Tf=$r(),MR=Jt(),Zse=Qo();AR.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o{"use strict";var qR=zr(),Jse=sh();CR.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(i||l){for(var o=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c{"use strict";SR.exports={moduleType:"component",name:"images",layoutAttributes:t5(),supplyLayoutDefaults:wR(),includeBasePlot:xv()("images"),draw:kR(),convertCoords:LR()}});var bp=B((Mxe,ER)=>{"use strict";ER.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var n5=B((Axe,RR)=>{"use strict";var $se=jt(),Kse=zn(),Qse=mt().extendFlat,jse=ui().overrideAll,eue=_h(),PR=ot().templatedArray,rue=PR("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});RR.exports=jse(PR("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:rue,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Qse(eue({editType:"arraydraw"}),{}),font:$se({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Kse.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var IR=B((kxe,FR)=>{"use strict";var _p=Pe(),zR=On(),NR=n5(),tue=bp(),aue=tue.name,nue=NR.buttons;FR.exports=function(r,t){var a={name:aue,handleItemDefaults:iue};zR(r,t,a)};function iue(e,r,t){function a(l,o){return _p.coerce(e,r,NR,l,o)}var n=zR(e,r,{name:"buttons",handleItemDefaults:lue}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),_p.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),_p.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function lue(e,r){function t(n,i){return _p.coerce(e,r,nue,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var BR=B((qxe,OR)=>{"use strict";OR.exports=At;var qi=kr(),HR=xr(),Mf=Br(),wp=Pe();function At(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}At.barWidth=2;At.barLength=20;At.barRadius=2;At.barPad=1;At.barColor="#808BA4";At.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,l=n.height;this.position=r;var o=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,h=c==="down",d=c==="left",p=c==="right",y=c==="up",m=s,b=f,_,w,x,M;!h&&!d&&!p&&!y&&(this.position.direction="down",h=!0);var k=h||y;k?(_=o,w=_+m,h?(x=u,M=Math.min(x+b,l),b=M-x):(M=u+b,x=Math.max(M-b,0),b=M-x)):(x=u,M=x+b,d?(w=o+m,_=Math.max(w-m,0),m=w-_):(_=o,w=Math.min(_+m,i),m=w-_)),this._box={l:_,t:x,w:m,h:b};var A=s>m,L=At.barLength+2*At.barPad,D=At.barWidth+2*At.barPad,E=o,R=u+f;R+D>l&&(R=l-D);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(HR.fill,At.barColor),A?(this.hbar=N.attr({rx:At.barRadius,ry:At.barRadius,x:E,y:R,width:L,height:D}),this._hbarXMin=E+L/2,this._hbarTranslateMax=m-L):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var I=f>b,H=At.barWidth+2*At.barPad,V=At.barLength+2*At.barPad,W=o+s,Y=u;W+H>i&&(W=i-H);var O=this.container.selectAll("rect.scrollbar-vertical").data(I?[0]:[]);O.exit().on(".drag",null).remove(),O.enter().append("rect").classed("scrollbar-vertical",!0).call(HR.fill,At.barColor),I?(this.vbar=O.attr({rx:At.barRadius,ry:At.barRadius,x:W,y:Y,width:H,height:V}),this._vbarYMin=Y+V/2,this._vbarTranslateMax=b-V):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var G=this.id,J=_-.5,$=I?w+H+.5:w+.5,re=x-.5,le=A?M+D+.5:M+.5,se=n._topdefs.selectAll("#"+G).data(A||I?[0]:[]);if(se.exit().remove(),se.enter().append("clipPath").attr("id",G).append("rect"),A||I?(this._clipRect=se.select("rect").attr({x:Math.floor(J),y:Math.floor(re),width:Math.ceil($)-Math.floor(J),height:Math.ceil(le)-Math.floor(re)}),this.container.call(Mf.setClipUrl,G,this.gd),this.bg.attr({x:o,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Mf.setClipUrl,null),delete this._clipRect),A||I){var ve=qi.behavior.drag().on("dragstart",function(){qi.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ve);var Q=qi.behavior.drag().on("dragstart",function(){qi.event.sourceEvent.preventDefault(),qi.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(Q),I&&this.vbar.on(".drag",null).call(Q)}this.setTranslate(t,a)};At.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Mf.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};At.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=qi.event.dx),this.vbar&&(t-=qi.event.dy),this.setTranslate(r,t)};At.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=qi.event.deltaY),this.vbar&&(t+=qi.event.deltaY),this.setTranslate(r,t)};At.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=wp.constrain(qi.event.x,a,n),l=(i-a)/(n-a),o=this.position.w-this._box.w;r=l*o}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=wp.constrain(qi.event.y,s,u),c=(f-s)/(u-s),h=this.position.h-this._box.h;t=c*h}this.setTranslate(r,t)};At.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=wp.constrain(r||0,0,a),t=wp.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Mf.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(Mf.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(Mf.setTranslate,r,t+l*this._vbarTranslateMax)}}});var KR=B((Cxe,$R)=>{"use strict";var Af=kr(),Yv=St(),Gv=xr(),kf=Br(),qn=Pe(),Tp=va(),oue=ot().arrayEditor,GR=Sa().LINE_SPACING,wr=bp(),sue=BR();$R.exports=function(r){var t=r._fullLayout,a=qn.filterVisible(t[wr.name]);function n(h){Yv.autoMargin(r,ZR(h))}var i=t._menulayer.selectAll("g."+wr.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(wr.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){Af.select(this).selectAll("g."+wr.headerGroupClassName).each(n)}).remove(),a.length!==0){var l=i.selectAll("g."+wr.headerGroupClassName).data(a,uue);l.enter().append("g").classed(wr.headerGroupClassName,!0);for(var o=qn.ensureSingle(i,"g",wr.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s{"use strict";var mue=bp();QR.exports={moduleType:"component",name:mue.name,layoutAttributes:n5(),supplyLayoutDefaults:IR(),draw:KR()}});var Vv=B((Sxe,ez)=>{"use strict";ez.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var s5=B((Dxe,az)=>{"use strict";var rz=jt(),yue=_h(),gue=mt().extendDeepAll,xue=ui().overrideAll,bue=Tc(),tz=ot().templatedArray,Ls=Vv(),_ue=tz("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});az.exports=xue(tz("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:_ue,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:gue(yue({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:bue.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:rz({})},font:rz({}),activebgcolor:{valType:"color",dflt:Ls.gripBgActiveColor},bgcolor:{valType:"color",dflt:Ls.railBgColor},bordercolor:{valType:"color",dflt:Ls.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Ls.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Ls.tickLength},tickcolor:{valType:"color",dflt:Ls.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Ls.minorTickLength}}),"arraydraw","from-root")});var oz=B((Exe,lz)=>{"use strict";var qf=Pe(),nz=On(),iz=s5(),wue=Vv(),Tue=wue.name,Mue=iz.steps;lz.exports=function(r,t){nz(r,t,{name:Tue,handleItemDefaults:Aue})};function Aue(e,r,t){function a(c,h){return qf.coerce(e,r,iz,c,h)}for(var n=nz(e,r,{name:"steps",handleItemDefaults:kue}),i=0,l=0;l{"use strict";var Ci=kr(),Mp=St(),so=xr(),Li=Br(),Cn=Pe(),que=Cn.strTranslate,Wv=va(),Cue=ot().arrayEditor,Pr=Vv(),c5=Sa(),fz=c5.LINE_SPACING,u5=c5.FROM_TL,f5=c5.FROM_BR;mz.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=Lue(a,r),i=a._infolayer.selectAll("g."+Pr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Pr.containerClassName,!0).style("cursor",t?null:"ew-resize");function l(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Mp.autoMargin(r,cz(f))}if(i.exit().each(function(){Ci.select(this).selectAll("g."+Pr.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Pr.groupClassName).data(n,Sue);o.enter().append("g").classed(Pr.groupClassName,!0),o.exit().each(l).remove();for(var s=0;s0&&(o=o.transition().duration(r.transition.duration).ease(r.transition.easing)),o.attr("transform",que(l-Pr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function v5(e,r){var t=e._dims;return t.inputAreaStart+Pr.stepInset+(t.inputAreaLength-2*Pr.stepInset)*Math.min(1,Math.max(0,r))}function uz(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Pr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Pr.stepInset-2*t.inputAreaStart)))}function Fue(e,r,t){var a=t._dims,n=Cn.ensureSingle(e,"rect",Pr.railTouchRectClass,function(i){i.call(dz,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Pr.tickOffset+t.ticklen+a.labelHeight)}).call(so.fill,t.bgcolor).attr("opacity",0),Li.setTranslate(n,0,a.currentValueTotalHeight)}function Iue(e,r){var t=r._dims,a=t.inputAreaLength-Pr.railInset*2,n=Cn.ensureSingle(e,"rect",Pr.railRectClass);n.attr({width:a,height:Pr.railWidth,rx:Pr.railRadius,ry:Pr.railRadius,"shape-rendering":"crispEdges"}).call(so.stroke,r.bordercolor).call(so.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Li.setTranslate(n,Pr.railInset,(t.inputAreaWidth-Pr.railWidth)*.5+t.currentValueTotalHeight)}});var xz=B((Rxe,gz)=>{"use strict";var Hue=Vv();gz.exports={moduleType:"component",name:Hue.name,layoutAttributes:s5(),supplyLayoutDefaults:oz(),draw:yz()}});var kp=B((zxe,_z)=>{"use strict";var bz=zn();_z.exports={bgcolor:{valType:"color",dflt:bz.background,editType:"plot"},bordercolor:{valType:"color",dflt:bz.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var h5=B((Nxe,wz)=>{"use strict";wz.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var qp=B((Fxe,Tz)=>{"use strict";Tz.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var kz=B(Lp=>{"use strict";var Oue=Jt(),Bue=va(),Mz=qp(),Yue=Sa().LINE_SPACING,Cp=Mz.name;function Az(e){var r=e&&e[Cp];return r&&r.visible}Lp.isVisible=Az;Lp.makeData=function(e){for(var r=Oue.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Sp=Pe(),qz=ot(),Cz=Jt(),Gue=kp(),Uue=h5();Lz.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Sp.isPlainObject(n.rangeslider)||(n.rangeslider={});var l=n.rangeslider,o=qz.newContainer(i,"rangeslider");function s(M,k){return Sp.coerce(l,o,Gue,M,k)}var u,f;function c(M,k){return Sp.coerce(u,f,Uue,M,k)}var h=s("visible");if(h){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(l.range)),s("range");var d=t._subplots;if(d)for(var p=d.cartesian.filter(function(M){return M.substr(0,M.indexOf("y"))===Cz.name2id(a)}).map(function(M){return M.substr(M.indexOf("y"),M.length)}),y=Sp.simpleMap(p,Cz.id2name),m=0;m{"use strict";var Vue=Jt().list,Wue=Bc().getAutoRange,Xue=qp();Dz.exports=function(r){for(var t=Vue(r,"x",!0),a=0;a{"use strict";var Dp=kr(),Zue=yr(),Jue=St(),Rt=Pe(),Ep=Rt.strTranslate,Rz=Br(),uo=xr(),$ue=Hc(),Kue=gl(),d5=Jt(),Que=mi(),jue=Kl(),Hr=qp();zz.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=O.max)W=R[Y+1];else if(V=O.pmax)W=R[Y+1];else if(V0?e.touches[0].clientX:0}function efe(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Hr.slideBoxClassName).node(),i=e.select("rect."+Hr.grabAreaMinClassName).node(),l=e.select("rect."+Hr.grabAreaMaxClassName).node();function o(){var s=Dp.event,u=s.target,f=Pz(s),c=f-e.node().getBoundingClientRect().left,h=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=Que.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",m),p.addEventListener("mousemove",y),p.addEventListener("mouseup",m);function y(b){var _=Pz(b),w=+_-f,x,M,k;switch(u){case n:if(k="ew-resize",h+w>t._length||d+w<0)return;x=h+w,M=d+w;break;case i:if(k="col-resize",h+w>t._length)return;x=h+w,M=d;break;case l:if(k="col-resize",d+w<0)return;x=h,M=d+w;break;default:k="ew-resize",x=c,M=c+w;break}if(M{"use strict";var ffe=Pe(),cfe=kp(),vfe=h5(),p5=kz();Fz.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:ffe.extendFlat({},cfe,{yaxis:vfe})}}},layoutAttributes:kp(),handleDefaults:Sz(),calcAutorange:Ez(),draw:Nz(),isVisible:p5.isVisible,makeData:p5.makeData,autoMarginOpts:p5.autoMarginOpts}});var Pp=B((Gxe,Oz)=>{"use strict";var hfe=jt(),Hz=zn(),dfe=ot().templatedArray,pfe=dfe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});Oz.exports={visible:{valType:"boolean",editType:"plot"},buttons:pfe,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:hfe({editType:"plot"}),bgcolor:{valType:"color",dflt:Hz.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:Hz.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var m5=B((Uxe,Bz)=>{"use strict";Bz.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var Uz=B((Vxe,Gz)=>{"use strict";var Rp=Pe(),mfe=xr(),yfe=ot(),gfe=On(),Yz=Pp(),y5=m5();Gz.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=yfe.newContainer(t,"rangeselector");function s(d,p){return Rp.coerce(l,o,Yz,d,p)}var u=gfe(l,o,{name:"buttons",handleItemDefaults:xfe,calendar:i}),f=s("visible",u.length>0);if(f){var c=bfe(t,a,n);s("x",c[0]),s("y",c[1]),Rp.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Rp.coerceFont(s,"font",a.font);var h=s("bgcolor");s("activecolor",mfe.contrast(h,y5.lightAmount,y5.darkAmount)),s("bordercolor"),s("borderwidth")}};function xfe(e,r,t,a){var n=a.calendar;function i(s,u){return Rp.coerce(e,r,Yz.buttons,s,u)}var l=i("visible");if(l){var o=i("step");o!=="all"&&(n&&n!=="gregorian"&&(o==="month"||o==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function bfe(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i{"use strict";var _fe=Ay(),wfe=Pe().titleCase;Vz.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=Tfe(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function Tfe(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=_fe["utc"+wfe(n)],l=r.count,o;switch(r.stepmode){case"backward":o=e.l2r(+i.offset(a,-l));break;case"todate":var s=i.offset(a,-l);o=e.l2r(+i.ceil(s));break}var u=t[1];return[o,u]}});var eN=B((Xxe,jz)=>{"use strict";var Np=kr(),Mfe=yr(),Afe=St(),Xz=xr(),Qz=Br(),bl=Pe(),Zz=bl.strTranslate,zp=va(),kfe=Jt(),b5=Sa(),Jz=b5.LINE_SPACING,$z=b5.FROM_TL,Kz=b5.FROM_BR,x5=m5(),qfe=Wz();jz.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(Cfe(r),Lfe);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Np.select(this),l=n,o=l.rangeselector,s=i.selectAll("g.button").data(bl.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Np.select(this),c=qfe(l,u);u._isActive=Sfe(l,u,c),f.call(g5,o,u),f.call(Efe,o,u,r),f.on("click",function(){r._dragged||Mfe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(g5,o,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(g5,o,u)})}),Rfe(r,s,o,l._name,i)})};function Cfe(e){for(var r=kfe.list(e,"x",!0),t=[],a=0;a{"use strict";rN.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Pp()}}},layoutAttributes:Pp(),handleDefaults:Uz(),draw:eN()}});var fo=B(_5=>{"use strict";var aN=mt().extendFlat;_5.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",l={x:aN({},t,{}),y:aN({},t,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};_5.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],l=r.grid;if(l){var o=t("domain.column");o!==void 0&&(o{"use strict";var zfe=Pe(),Nfe=mu().counter,Ffe=fo().attributes,nN=wa().idRegex,Ife=ot(),w5={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Nfe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[nN.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[nN.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Ffe({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Fp(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function Hfe(e,r){var t=e.grid||{},a=Fp(r,t,"x"),n=Fp(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),l=Array.isArray(a),o=Array.isArray(n),s=l&&a!==t.xaxes&&o&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(o&&(u=n.length),l&&(f=a.length));var c=Ife.newContainer(r,"grid");function h(k,A){return zfe.coerce(t,c,w5,k,A)}var d=h("rows",u),p=h("columns",f);if(!(d*p>1)){delete r.grid;return}if(!i&&!l&&!o){var y=h("pattern")==="independent";y&&(i=!0)}c._hasSubplotGrid=i;var m=h("roworder"),b=m==="top to bottom",_=i?.2:.1,w=i?.3:.1,x,M;s&&r._splomGridDflt&&(x=r._splomGridDflt.xside,M=r._splomGridDflt.yside),c._domains={x:iN("x",h,_,x,p),y:iN("y",h,w,M,d,b)}}function iN(e,r,t,a,n,i){var l=r(e+"gap",t),o=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=o[0],f=(o[1]-u)/(n-l),c=f*(1-l),h=0;h{"use strict";uN.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var vN=B((Qxe,cN)=>{"use strict";var fN=zr(),Bfe=yr(),Yfe=Pe(),Gfe=ot(),Ufe=T5();cN.exports=function(e,r,t,a){var n="error_"+a.axis,i=Gfe.newContainer(r,n),l=e[n]||{};function o(p,y){return Yfe.coerce(l,i,Ufe,p,y)}var s=l.array!==void 0||l.value!==void 0||l.type==="sqrt",u=o("visible",s);if(u!==!1){var f=o("type","array"in l?"data":"percent"),c=!0;f!=="sqrt"&&(c=o("symmetric",!((f==="data"?"arrayminus":"valueminus")in l))),f==="data"?(o("array"),o("traceref"),c||(o("arrayminus"),o("tracerefminus"))):(f==="percent"||f==="constant")&&(o("value"),c||o("valueminus"));var h="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&o(h,!(l.color||fN(l.thickness)||fN(l.width)))}(!a.inherit||!i[h])&&(o("color",t),o("thickness"),o("width",Bfe.traceIs(r,"gl3d")?0:4))}}});var M5=B((jxe,dN)=>{"use strict";dN.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],h=+i[f];return!isNaN(c)||!isNaN(h)?[h||0,c||0]:[NaN,NaN]}}else{var l=hN(t,r.value),o=hN(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=l(u);return[f,f]}:function(u){return[o(u),l(u)]}}};function hN(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var yN=B((e5e,mN)=>{"use strict";var A5=zr(),Vfe=yr(),k5=$r(),Wfe=Pe(),Xfe=M5();mN.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var gN=kr(),co=zr(),Zfe=Br(),Jfe=bn();xN.exports=function(r,t,a,n){var i,l=a.xaxis,o=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,h=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(_){return _.id});var y=Jfe.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var m=gN.select(this).selectAll("g.errorbar").data(f,p);if(m.exit().remove(),!!f.length){h.visible||m.selectAll("path.xerror").remove(),d.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var b=m.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),Zfe.setClipUrl(m,a.layerClipId,r),m.each(function(_){var w=gN.select(this),x=$fe(_,l,o);if(!(y&&!_.vis)){var M,k=w.select("path.yerror");if(d.visible&&co(x.x)&&co(x.yh)&&co(x.ys)){var A=d.width;M="M"+(x.x-A)+","+x.yh+"h"+2*A+"m-"+A+",0V"+x.ys,x.noYS||(M+="m-"+A+",0h"+2*A),i=!k.size(),i?k=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",M)}else k.remove();var L=w.select("path.xerror");if(h.visible&&co(x.y)&&co(x.xh)&&co(x.xs)){var D=(h.copy_ystyle?d:h).width;M="M"+x.xh+","+(x.y-D)+"v"+2*D+"m0,-"+D+"H"+x.xs,x.noXS||(M+="m0,-"+D+"v"+2*D),i=!L.size(),i?L=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(L=L.transition().duration(n.duration).ease(n.easing)),L.attr("d",M)}else L.remove()}})}})};function $fe(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),co(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),co(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var TN=B((t5e,wN)=>{"use strict";var Kfe=kr(),_N=xr();wN.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=Kfe.select(this);l.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(_N.stroke,n.color),i.copy_ystyle&&(i=n),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(_N.stroke,i.color)})}});var kN=B((a5e,AN)=>{"use strict";var Xv=Pe(),MN=ui().overrideAll,Zv=T5(),Ss={error_x:Xv.extendFlat({},Zv),error_y:Xv.extendFlat({},Zv)};delete Ss.error_x.copy_zstyle;delete Ss.error_y.copy_zstyle;delete Ss.error_y.copy_ystyle;var Jv={error_x:Xv.extendFlat({},Zv),error_y:Xv.extendFlat({},Zv),error_z:Xv.extendFlat({},Zv)};delete Jv.error_x.copy_ystyle;delete Jv.error_y.copy_ystyle;delete Jv.error_z.copy_ystyle;delete Jv.error_z.copy_zstyle;AN.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Ss,bar:Ss,histogram:Ss,scatter3d:MN(Jv,"calc","nested"),scattergl:MN(Ss,"calc","nested")}},supplyDefaults:vN(),calc:yN(),makeComputeError:M5(),plot:bN(),style:TN(),hoverInfo:Qfe};function Qfe(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var CN=B((n5e,qN)=>{"use strict";qN.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var zN=B((i5e,RN)=>{"use strict";var vo=kr(),q5=Rn(),Hp=St(),LN=yr(),_l=$r(),Ip=mi(),jn=Pe(),Di=jn.strTranslate,PN=mt().extendFlat,C5=Kl(),Si=Br(),L5=xr(),jfe=Hc(),ece=va(),rce=Hn().flipScale,tce=sp(),ace=fp(),nce=xn(),S5=Sa(),SN=S5.LINE_SPACING,DN=S5.FROM_TL,EN=S5.FROM_BR,Mt=CN().cn;function ice(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Mt.colorbar).data(lce(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(Mt.colorbar,!0),t.each(function(a){var n=vo.select(this);jn.ensureSingle(n,"rect",Mt.cbbg),jn.ensureSingle(n,"g",Mt.cbfills),jn.ensureSingle(n,"g",Mt.cblines),jn.ensureSingle(n,"g",Mt.cbaxis,function(l){l.classed(Mt.crisp,!0)}),jn.ensureSingle(n,"g",Mt.cbtitleunshift,function(l){l.append("g").classed(Mt.cbtitle,!0)}),jn.ensureSingle(n,"rect",Mt.cboutline);var i=oce(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&sce(n,a,e)}),t.exit().each(function(a){Hp.autoMargin(e,a._id)}).remove(),t.order()}function lce(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(w){return PN(w,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof o.calc=="function"?o.calc(e,l,n):(n._fillgradient=i.reversescale?rce(i.colorscale):i.colorscale,n._zrange=[i[o.min],i[o.max]])}for(var f=0;f1){var te=Math.pow(10,Math.floor(Math.log(U)/Math.LN10));fe*=te*jn.roundUp(U/te,[2,5,10]),(Math.abs(N.start)/N.size+1e-6)%1<2e-6&&(ce.tick0=0)}ce.dtick=fe}ce.domain=a?[Q+p/x.h,Q+G-p/x.h]:[Q+d/x.w,Q+G-d/x.w],ce.setScale(),e.attr("transform",Di(Math.round(x.l),Math.round(x.t)));var X=e.select("."+Mt.cbtitleunshift).attr("transform",Di(-Math.round(x.l),-Math.round(x.t))),ge=ce.ticklabelposition,Me=ce.title.font.size,xe=e.select("."+Mt.cbaxis),ze,Ie=0,Ee=0;function Ne(Oe,ie){var ke={propContainer:ce,propName:r._propPrefix+"title",traceIndex:r._traceIndex,_meta:r._meta,placeholder:w._dfltTitle.colorbar,containerGroup:e.select("."+Mt.cbtitle)},Ce=Oe.charAt(0)==="h"?Oe.substr(1):"h"+Oe;e.selectAll("."+Ce+",."+Ce+"-math-group").remove(),jfe.draw(t,Oe,PN(ke,ie||{}))}function Ye(){if(a&&be||!a&&!be){var Oe,ie;L==="top"&&(Oe=d+x.l+J*y,ie=p+x.t+$*(1-Q-G)+3+Me*.75),L==="bottom"&&(Oe=d+x.l+J*y,ie=p+x.t+$*(1-Q)-3-Me*.25),L==="right"&&(ie=p+x.t+$*m+3+Me*.75,Oe=d+x.l+J*Q),Ne(ce._id+"title",{attributes:{x:Oe,y:ie,"text-anchor":a?"start":"middle"}})}}function Xe(){if(a&&!be||!a&&be){var Oe=ce.position||0,ie=ce._offset+ce._length/2,ke,Ce;if(L==="right")Ce=ie,ke=x.l+J*Oe+10+Me*(ce.showticklabels?1:.5);else if(ke=ie,L==="bottom"&&(Ce=x.t+$*Oe+10+(ge.indexOf("inside")===-1?ce.tickfont.size:0)+(ce.ticks!=="intside"&&r.ticklen||0)),L==="top"){var sr=A.text.split("
").length;Ce=x.t+$*Oe+10-W-SN*Me*sr}Ne((a?"h":"v")+ce._id+"title",{avoid:{selection:vo.select(t).selectAll("g."+ce._id+"tick"),side:L,offsetTop:a?0:x.t,offsetLeft:a?x.l:0,maxShift:a?w.width:w.height},attributes:{x:ke,y:Ce,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function Re(){if(!a&&!be||a&&be){var Oe=e.select("."+Mt.cbtitle),ie=Oe.select("text"),ke=[-s/2,s/2],Ce=Oe.select(".h"+ce._id+"title-math-group").node(),sr=15.6;ie.node()&&(sr=parseInt(ie.node().style.fontSize,10)*SN);var tr;if(Ce?(tr=Si.bBox(Ce),Ee=tr.width,Ie=tr.height,Ie>sr&&(ke[1]-=(Ie-sr)/2)):ie.node()&&!ie.classed(Mt.jsPlaceholder)&&(tr=Si.bBox(ie.node()),Ee=tr.width,Ie=tr.height),a){if(Ie){if(Ie+=5,L==="top")ce.domain[1]-=Ie/x.h,ke[1]*=-1;else{ce.domain[0]+=Ie/x.h;var De=ece.lineCount(ie);ke[1]+=(1-De)*sr}Oe.attr("transform",Di(ke[0],ke[1])),ce.setScale()}}else Ee&&(L==="right"&&(ce.domain[0]+=(Ee+Me/2)/x.w),Oe.attr("transform",Di(ke[0],ke[1])),ce.setScale())}e.selectAll("."+Mt.cbfills+",."+Mt.cblines).attr("transform",a?Di(0,Math.round(x.h*(1-ce.domain[1]))):Di(Math.round(x.w*ce.domain[0]),0)),xe.attr("transform",a?Di(0,Math.round(-x.t)):Di(Math.round(-x.l),0));var Le=e.select("."+Mt.cbfills).selectAll("rect."+Mt.cbfill).attr("style","").data(H);Le.enter().append("rect").classed(Mt.cbfill,!0).attr("style",""),Le.exit().remove();var Ge=D.map(ce.c2p).map(Math.round).sort(function(cr,lr){return cr-lr});Le.each(function(cr,lr){var Fe=[lr===0?D[0]:(H[lr]+H[lr-1])/2,lr===H.length-1?D[1]:(H[lr]+H[lr+1])/2].map(ce.c2p).map(Math.round);a&&(Fe[1]=jn.constrain(Fe[1]+(Fe[1]>Fe[0])?1:-1,Ge[0],Ge[1]));var ne=vo.select(this).attr(a?"x":"y",re).attr(a?"y":"x",vo.min(Fe)).attr(a?"width":"height",Math.max(W,2)).attr(a?"height":"width",Math.max(vo.max(Fe)-vo.min(Fe),2));if(r._fillgradient)Si.gradient(ne,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var ue=R(cr).replace("e-","");ne.attr("fill",q5(ue).toHexString())}});var Ze=e.select("."+Mt.cblines).selectAll("path."+Mt.cbline).data(k.color&&k.width?V:[]);Ze.enter().append("path").classed(Mt.cbline,!0),Ze.exit().remove(),Ze.each(function(cr){var lr=re,Fe=Math.round(ce.c2p(cr))+k.width/2%1;vo.select(this).attr("d","M"+(a?lr+","+Fe:Fe+","+lr)+(a?"h":"v")+W).call(Si.lineGroupStyle,k.width,E(cr),k.dash)}),xe.selectAll("g."+ce._id+"tick,path").remove();var Ue=re+W+(s||0)/2-(r.ticks==="outside"?1:0),He=_l.calcTicks(ce),$e=_l.getTickSigns(ce)[2];return _l.drawTicks(t,ce,{vals:ce.ticks==="inside"?_l.clipEnds(ce,He):He,layer:xe,path:_l.makeTickPath(ce,Ue,$e),transFn:_l.makeTransTickFn(ce)}),_l.drawLabels(t,ce,{vals:He,layer:xe,transFn:_l.makeTransTickLabelFn(ce),labelFns:_l.makeLabelFns(ce,Ue)})}function Be(){var Oe,ie=W+s/2;ge.indexOf("inside")===-1&&(Oe=Si.bBox(xe.node()),ie+=a?Oe.width:Oe.height),ze=X.select("text");var ke=0,Ce=a&&L==="top",sr=!a&&L==="right",tr=0;if(ze.node()&&!ze.classed(Mt.jsPlaceholder)){var De,Le=X.select(".h"+ce._id+"title-math-group").node();Le&&(a&&be||!a&&!be)?(Oe=Si.bBox(Le),ke=Oe.width,De=Oe.height):(Oe=Si.bBox(X.node()),ke=Oe.right-x.l-(a?re:_e),De=Oe.bottom-x.t-(a?_e:re),!a&&L==="top"&&(ie+=Oe.height,tr=Oe.height)),sr&&(ze.attr("transform",Di(ke/2+Me/2,0)),ke*=2),ie=Math.max(ie,a?ke:De)}var Ge=(a?d:p)*2+ie+u+s/2,Ze=0;!a&&A.text&&h==="bottom"&&m<=0&&(Ze=Ge/2,Ge+=Ze,tr+=Ze),w._hColorbarMoveTitle=Ze,w._hColorbarMoveCBTitle=tr;var Ue=u+s,He=(a?re:_e)-Ue/2-(a?d:0),$e=(a?_e:re)-(a?O:p+tr-Ze);e.select("."+Mt.cbbg).attr("x",He).attr("y",$e).attr(a?"width":"height",Math.max(Ge-Ze,2)).attr(a?"height":"width",Math.max(O+Ue,2)).call(L5.fill,f).call(L5.stroke,r.bordercolor).style("stroke-width",u);var cr=sr?Math.max(ke-10,0):0;e.selectAll("."+Mt.cboutline).attr("x",(a?re:_e+d)+cr).attr("y",(a?_e+p-O:re)+(Ce?Ie:0)).attr(a?"width":"height",Math.max(W,2)).attr(a?"height":"width",Math.max(O-(a?2*p+Ie:2*d+cr),2)).call(L5.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var lr=a?le*Ge:0,Fe=a?0:(1-se)*Ge-tr;if(lr=_?x.l-lr:-lr,Fe=b?x.t-Fe:-Fe,e.attr("transform",Di(lr,Fe)),!a&&(u||q5(f).getAlpha()&&!q5.equals(w.paper_bgcolor,f))){var ne=xe.selectAll("text"),ue=ne[0].length,Se=e.select("."+Mt.cbbg).node(),qe=Si.bBox(Se),ir=Si.getTranslate(e),vr=2;ne.each(function(Sn,Za){var ua=0,Ja=ue-1;if(Za===ua||Za===Ja){var gr=Si.bBox(this),ft=Si.getTranslate(this),Xr;if(Za===Ja){var bt=gr.right+ft.x,Lt=qe.right+ir.x+_e-u-vr+y;Xr=Lt-bt,Xr>0&&(Xr=0)}else if(Za===ua){var ct=gr.left+ft.x,_t=qe.left+ir.x+_e+u+vr;Xr=_t-ct,Xr<0&&(Xr=0)}Xr&&(ue<3?this.setAttribute("transform","translate("+Xr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ur={},Ar=DN[c],Ur=EN[c],et=DN[h],Wr=EN[h],Nt=Ge-W;a?(i==="pixels"?(ur.y=m,ur.t=O*et,ur.b=O*Wr):(ur.t=ur.b=0,ur.yt=m+n*et,ur.yb=m-n*Wr),o==="pixels"?(ur.x=y,ur.l=Ge*Ar,ur.r=Ge*Ur):(ur.l=Nt*Ar,ur.r=Nt*Ur,ur.xl=y-l*Ar,ur.xr=y+l*Ur)):(i==="pixels"?(ur.x=y,ur.l=O*Ar,ur.r=O*Ur):(ur.l=ur.r=0,ur.xl=y+n*Ar,ur.xr=y-n*Ur),o==="pixels"?(ur.y=1-m,ur.t=Ge*et,ur.b=Ge*Wr):(ur.t=Nt*et,ur.b=Nt*Wr,ur.yt=m-l*et,ur.yb=m+l*Wr));var oa=r.y<.5?"b":"t",Na=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var sa={r:w.width-He-lr,l:He+ur.r,b:w.height-$e-Fe,t:$e+ur.b};_&&b?Hp.autoMargin(t,r._id,ur):_?t._fullLayout._reservedMargin[r._id][oa]=sa[oa]:b||a?t._fullLayout._reservedMargin[r._id][Na]=sa[Na]:t._fullLayout._reservedMargin[r._id][oa]=sa[oa]}return jn.syncOrAsync([Hp.previousPromises,Ye,Re,Xe,Hp.previousPromises,Be],t)}function sce(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,l,o,s;Ip.init({element:e.node(),gd:t,prepFn:function(){l=e.attr("transform"),C5(e)},moveFn:function(u,f){e.attr("transform",l+Di(u,f)),o=Ip.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Ip.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=Ip.getCursor(o,s,r.xanchor,r.yanchor);C5(e,c)},doneFn:function(){if(C5(e),o!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=o,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?LN.call("_guiRestyle",t,u,r._traceIndex):LN.call("_guiRelayout",t,u)}}})}function uce(e,r,t){var a=r._levels,n=[],i=[],l,o,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(o=0;o<1e5&&(l=a.start+o*u,!(u>0?l>=s:l<=s));o++)l>f&&l0?l>=s:l<=s));o++)l>t[0]&&l{"use strict";NN.exports={moduleType:"component",name:"colorbar",attributes:Jh(),supplyDefaults:Og(),draw:zN().draw,hasColorbar:Pg()}});var HN=B((o5e,IN)=>{"use strict";IN.exports={moduleType:"component",name:"legend",layoutAttributes:N2(),supplyLayoutDefaults:H2(),draw:K2(),style:X2()}});var BN=B((s5e,ON)=>{"use strict";ON.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var GN=B((u5e,YN)=>{"use strict";YN.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var E5=B((f5e,XN)=>{"use strict";var cce=yr(),WN=Pe(),D5=WN.extendFlat,UN=WN.extendDeep;function VN(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function vce(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}XN.exports=function(r,t){var a,n=r.data,i=r.layout,l=UN([],n),o=UN({},i,VN(t.tileClass)),s=r._context||{};if(t.width&&(o.width=t.width),t.height&&(o.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){o.annotations=[];var u=Object.keys(o);for(a=0;a{"use strict";var hce=Nh().EventEmitter,dce=yr(),pce=Pe(),ZN=gs(),mce=E5(),yce=W1(),gce=X1();function xce(e,r){var t=new hce,a=mce(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=ZN.getDelay(n._fullLayout);setTimeout(function(){var s=yce(n),u=document.createElement("canvas");u.id=pce.randstr(),t=gce({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},o)}var l=ZN.getRedrawFunc(n);return dce.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}JN.exports=xce});var jN=B((v5e,QN)=>{"use strict";var KN=gs(),bce={getDelay:KN.getDelay,getRedrawFunc:KN.getRedrawFunc,clone:E5(),toSVG:W1(),svgToImg:X1(),toImage:$N(),downloadImage:mx()};QN.exports=bce});var rF=B(wl=>{"use strict";wl.version=Q0().version;W4();N8();var _ce=yr(),$v=wl.register=_ce.register,R5=nD(),eF=Object.keys(R5);for(Op=0;Op{"use strict";tF.exports=rF()});var Yp=B((p5e,nF)=>{"use strict";nF.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Tl=B((m5e,sF)=>{"use strict";var qt=bi(),iF=di().axisHoverFormat,wce=_a().hovertemplateAttrs,Tce=_a().texttemplateAttrs,oF=Nc(),Mce=jt(),lF=Yp(),Ace=fi().pattern,Ds=mt().extendFlat,z5=Mce({editType:"calc",arrayOk:!0,colorEditType:"style"}),kce=qt.marker,qce=kce.line,Cce=Ds({},qce.width,{dflt:0}),Lce=Ds({width:Cce,editType:"calc"},oF("marker.line")),Sce=Ds({line:Lce,editType:"calc"},oF("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:Ace,cornerradius:{valType:"any",editType:"calc"}});sF.exports={x:qt.x,x0:qt.x0,dx:qt.dx,y:qt.y,y0:qt.y0,dy:qt.dy,xperiod:qt.xperiod,yperiod:qt.yperiod,xperiod0:qt.xperiod0,yperiod0:qt.yperiod0,xperiodalignment:qt.xperiodalignment,yperiodalignment:qt.yperiodalignment,xhoverformat:iF("x"),yhoverformat:iF("y"),text:qt.text,texttemplate:Tce({editType:"plot"},{keys:lF.eventDataKeys}),hovertext:qt.hovertext,hovertemplate:wce({},{keys:lF.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Ds({},z5,{}),insidetextfont:Ds({},z5,{}),outsidetextfont:Ds({},z5,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Ds({},qt.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:Sce,offsetgroup:qt.offsetgroup,alignmentgroup:qt.alignmentgroup,selected:{marker:{opacity:qt.selected.marker.opacity,color:qt.selected.marker.color,editType:"style"},textfont:qt.selected.textfont,editType:"style"},unselected:{marker:{opacity:qt.unselected.marker.opacity,color:qt.unselected.marker.color,editType:"style"},textfont:qt.unselected.textfont,editType:"style"},zorder:qt.zorder}});var Gp=B((y5e,uF)=>{"use strict";uF.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var N5=B((g5e,vF)=>{"use strict";var Dce=xr(),fF=Hn().hasColorscale,cF=Ru(),Ece=Pe().coercePattern;vF.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=fF(r,"marker");o&&cF(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",Dce.defaultLine),fF(r,"marker.line")&&cF(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),Ece(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var Ki=B((x5e,gF)=>{"use strict";var hF=zr(),Lf=Pe(),dF=xr(),Pce=yr(),Rce=Dv(),zce=_s(),Nce=N5(),Fce=ff(),pF=Tl(),Up=Lf.coerceFont;function Ice(e,r,t,a){function n(u,f){return Lf.coerce(e,r,pF,u,f)}var i=Rce(e,r,a,n);if(!i){r.visible=!1;return}zce(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate");var l=n("textposition");yF(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),Nce(e,r,n,t,a);var o=(r.marker.line||{}).color,s=Pce.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||dF.defaultLine,{axis:"y"}),s(e,r,o||dF.defaultLine,{axis:"x",inherit:"y"}),Lf.coerceSelectionMarkerOpacity(r,n)}function Hce(e,r){var t,a;function n(o,s){return Lf.coerce(a._input,a,pF,o,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&hF(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function yF(e,r,t,a,n,i){i=i||{};var l=i.moduleHasSelected!==!1,o=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,c=i.moduleHasInsideanchor!==!1,h=!!i.hasPathbar,d=Array.isArray(n)||n==="auto",p=d||n==="inside",y=d||n==="outside";if(p||y){var m=Up(a,"textfont",t.font),b=Lf.extendFlat({},m),_=e.textfont&&e.textfont.color,w=!_;if(w&&delete b.color,Up(a,"insidetextfont",b),h){var x=Lf.extendFlat({},m);w&&delete x.color,Up(a,"pathbar.textfont",x)}y&&Up(a,"outsidetextfont",m),l&&a("selected.textfont.color"),o&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate")}p&&c&&a("insidetextanchor")}gF.exports={supplyDefaults:Ice,crossTraceDefaults:Hce,handleText:yF,validateCornerradius:mF}});var F5=B((b5e,xF)=>{"use strict";var Oce=yr(),Bce=$r(),Yce=Pe(),Gce=Gp(),Uce=Ki().validateCornerradius;xF.exports=function(e,r,t){function a(y,m){return Yce.coerce(e,r,Gce,y,m)}for(var n=!1,i=!1,l=!1,o={},s=a("barmode"),u=s==="group",f=0;f0&&!o[h]&&(l=!0),o[h]=!0),c.visible&&c.type==="histogram"){var d=Bce.getFromId({_fullLayout:r},c[c.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!l?0:.2),a("bargroupgap");var p=a("barcornerradius");r.barcornerradius=Uce(p)}});var Vp=B((_5e,bF)=>{"use strict";var Sf=Pe();bF.exports=function(r,t){for(var a=0;a{"use strict";var _F=$r(),wF=ws(),TF=Hn().hasColorscale,MF=td(),Vce=Vp(),Wce=Ev();AF.exports=function(r,t){var a=_F.getFromId(r,t.xaxis||"x"),n=_F.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,c={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",c),o=n.makeCalcdata(t,"y"),s=wF(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),o=a.makeCalcdata(t,"x"),s=wF(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var h=Math.min(l.length,i.length),d=new Array(h),p=0;p{"use strict";var Xce=kr(),Zce=Pe();function Jce(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",l;switch(t){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":case"icicle":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}r.selectAll(l).each(function(o){var s=o.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=Xce.select(this).select("text");Zce.setTransormAndDisplay(u,s)}})}}function $ce(e,r,t){if(t.uniformtext.mode){var a=qF(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var Qce=zr(),jce=Rn(),LF=Pe().isArrayOrTypedArray;Es.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};Es.coerceNumber=function(e,r,t){if(Qce(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};Es.coerceColor=function(e,r,t){return jce(r).isValid()?r:t!==void 0?t:e.dflt};Es.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Es.getValue=function(e,r){var t;return LF(e)?r{"use strict";var Kv=kr(),eve=xr(),Qv=Br(),SF=Pe(),DF=yr(),EF=Ei().resizeText,I5=Tl(),rve=I5.textfont,tve=I5.insidetextfont,ave=I5.outsidetextfont,Aa=Wp();function nve(e){var r=Kv.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");EF(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&Kv.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=Kv.select(this),l=n[0].trace;PF(i,l,e)}),DF.getComponentMethod("errorbars","style")(r)}function PF(e,r,t){Qv.pointStyle(e.selectAll("path"),r,t),RF(e,r,t)}function RF(e,r,t){e.selectAll("text").each(function(a){var n=Kv.select(this),i=SF.ensureUniformFontSize(t,zF(n,a,r,t));Qv.font(n,i)})}function ive(e,r,t){var a=r[0].trace;a.selectedpoints?lve(t,a,e):(PF(t,a,e),DF.getComponentMethod("errorbars","style")(t))}function lve(e,r,t){Qv.selectedPointStyle(e.selectAll("path"),r),ove(e.selectAll("text"),r,t)}function ove(e,r,t){e.each(function(a){var n=Kv.select(this),i;if(a.selected){i=SF.ensureUniformFontSize(t,zF(n,a,r,t));var l=r.selected.textfont&&r.selected.textfont.color;l&&(i.color=l),Qv.font(n,i)}else Qv.selectedTextStyle(n,r)})}function zF(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=HF(r,t);i=FF(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=IF(t,r.i,n));return i}function NF(e,r,t){return H5(rve,e.textfont,r,t)}function FF(e,r,t,a){var n=NF(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:eve.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),H5(tve,e.insidetextfont,r,n)}function IF(e,r,t){var a=NF(e,r,t);return H5(ave,e.outsidetextfont,r,a)}function H5(e,r,t,a){r=r||{};var n=Aa.getValue(r.family,t),i=Aa.getValue(r.size,t),l=Aa.getValue(r.color,t),o=Aa.getValue(r.weight,t),s=Aa.getValue(r.style,t),u=Aa.getValue(r.variant,t),f=Aa.getValue(r.textcase,t),c=Aa.getValue(r.lineposition,t),h=Aa.getValue(r.shadow,t);return{family:Aa.coerceString(e.family,n,a.family),size:Aa.coerceNumber(e.size,i,a.size),color:Aa.coerceColor(e.color,l,a.color),weight:Aa.coerceString(e.weight,o,a.weight),style:Aa.coerceString(e.style,s,a.style),variant:Aa.coerceString(e.variant,u,a.variant),textcase:Aa.coerceString(e.variant,f,a.textcase),lineposition:Aa.coerceString(e.variant,c,a.lineposition),shadow:Aa.coerceString(e.variant,h,a.shadow)}}function HF(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}OF.exports={style:nve,styleTextPoints:RF,styleOnSelect:ive,getInsideTextFont:FF,getOutsideTextFont:IF,getBarColor:HF,resizeText:EF}});var Ef=B((k5e,ZF)=>{"use strict";var Xp=kr(),Zp=zr(),da=Pe(),sve=va(),uve=xr(),po=Br(),fve=yr(),Jp=$r().tickText,BF=Ei(),cve=BF.recordMinTextSize,vve=BF.clearMinTextSize,O5=ho(),Df=Wp(),hve=Yp(),YF=Tl(),dve=YF.text,pve=YF.textposition,mve=Hi().appendArrayPointValue,Wa=hve.TEXTPAD;function yve(e){return e.id}function gve(e){if(e.ids)return yve}function B5(e){return(e>0)-(e<0)}function Qi(e,r){return e0}function bve(e,r,t,a,n,i){var l=r.xaxis,o=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},vve("bar",s));var f=da.makeTraceGroups(a,t,"trace bars").each(function(c){var h=Xp.select(this),d=c[0].trace,p=c[0].t,y=d.type==="waterfall",m=d.type==="funnel",b=d.type==="histogram",_=d.type==="bar",w=_||m,x=0;y&&d.connector.visible&&d.connector.mode==="between"&&(x=d.connector.line.width/2);var M=d.orientation==="h",k=UF(n),A=da.ensureSingle(h,"g","points"),L=gve(d),D=A.selectAll("g.point").data(da.identity,L);D.enter().append("g").classed("point",!0),D.exit().remove(),D.each(function(R,N){var I=Xp.select(this),H=xve(R,l,o,M),V=H[0][0],W=H[0][1],Y=H[1][0],O=H[1][1],G=(M?W-V:O-Y)===0;G&&w&&Df.getLineWidth(d,R)&&(G=!1),G||(G=!Zp(V)||!Zp(W)||!Zp(Y)||!Zp(O)),R.isBlank=G,G&&(M?W=V:O=Y),x&&!G&&(M?(V-=Qi(V,W)*x,W+=Qi(V,W)*x):(Y-=Qi(Y,O)*x,O+=Qi(Y,O)*x));var J,$;if(d.type==="waterfall"){if(!G){var re=d[R.dir].marker;J=re.line.width,$=re.color}}else J=Df.getLineWidth(d,R),$=R.mc||d.marker.color;function le(ie){var ke=Xp.round(J/2%1,2);return n.gap===0&&n.groupgap===0?Xp.round(Math.round(ie)-ke,2):ie}function se(ie,ke,Ce){return Ce&&ie===ke?ie:Math.abs(ie-ke)>=2?le(ie):ie>ke?Math.ceil(ie):Math.floor(ie)}var ve=uve.opacity($),Q=ve<1||J>.01?le:se;e._context.staticPlot||(V=Q(V,W,M),W=Q(W,V,M),Y=Q(Y,O,!M),O=Q(O,Y,!M));var _e=M?l.c2p:o.c2p,ce;R.s0>0?ce=R._sMax:R.s0<0?ce=R._sMin:ce=R.s1>0?R._sMax:R._sMin;function be(ie,ke){if(!ie)return 0;var Ce=Math.abs(M?O-Y:W-V),sr=Math.abs(M?W-V:O-Y),tr=Q(Math.abs(_e(ce,!0)-_e(0,!0))),De=R.hasB?Math.min(Ce/2,sr/2):Math.min(Ce/2,tr),Le;if(ke==="%"){var Ge=Math.min(50,ie);Le=Ce*(Ge/100)}else Le=ie;return Q(Math.max(Math.min(Le,De),0))}var fe=_||b?be(p.cornerradiusvalue,p.cornerradiusform):0,ye,U,te="M"+V+","+Y+"V"+O+"H"+W+"V"+Y+"Z",X=0;if(fe&&R.s){var ge=B5(R.s0)===0||B5(R.s)===B5(R.s0)?R.s1:R.s0;if(X=Q(R.hasB?0:Math.abs(_e(ce,!0)-_e(ge,!0))),X0?Math.sqrt(X*(2*fe-X)):0,Ne=Me>0?Math.max:Math.min;ye="M"+V+","+Y+"V"+(O-Ie*xe)+"H"+Ne(W-(fe-X)*Me,V)+"A "+fe+","+fe+" 0 0 "+ze+" "+W+","+(O-fe*xe-Ee)+"V"+(Y+fe*xe+Ee)+"A "+fe+","+fe+" 0 0 "+ze+" "+Ne(W-(fe-X)*Me,V)+","+(Y+Ie*xe)+"Z"}else if(R.hasB)ye="M"+(V+fe*Me)+","+Y+"A "+fe+","+fe+" 0 0 "+ze+" "+V+","+(Y+fe*xe)+"V"+(O-fe*xe)+"A "+fe+","+fe+" 0 0 "+ze+" "+(V+fe*Me)+","+O+"H"+(W-fe*Me)+"A "+fe+","+fe+" 0 0 "+ze+" "+W+","+(O-fe*xe)+"V"+(Y+fe*xe)+"A "+fe+","+fe+" 0 0 "+ze+" "+(W-fe*Me)+","+Y+"Z";else{U=Math.abs(O-Y)+X;var Ye=U0?Math.sqrt(X*(2*fe-X)):0,Re=xe>0?Math.max:Math.min;ye="M"+(V+Ye*Me)+","+Y+"V"+Re(O-(fe-X)*xe,Y)+"A "+fe+","+fe+" 0 0 "+ze+" "+(V+fe*Me-Xe)+","+O+"H"+(W-fe*Me+Xe)+"A "+fe+","+fe+" 0 0 "+ze+" "+(W-Ye*Me)+","+Re(O-(fe-X)*xe,Y)+"V"+Y+"Z"}}else ye=te}else ye=te;var Be=GF(da.ensureSingle(I,"path"),s,n,i);if(Be.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((W-V)*(O-Y))||G&&e._context.staticPlot?"M0,0Z":ye).call(po.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&k){var Oe=po.makePointStyleFns(d);po.singlePointStyle(R,Be,d,Oe,e)}_ve(e,r,I,c,N,V,W,Y,O,fe,X,n,i),r.layerClipId&&po.hideOutsideRangePoint(R,I.select("text"),l,o,d.xcalendar,d.ycalendar)});var E=d.cliponaxis===!1;po.setClipUrl(h,E?null:r.layerClipId,e)});fve.getComponentMethod("errorbars","plot")(e,f,r,n)}function _ve(e,r,t,a,n,i,l,o,s,u,f,c,h){var d=r.xaxis,p=r.yaxis,y=e._fullLayout,m;function b(U,te,X){var ge=da.ensureSingle(U,"text").text(te).attr({class:"bartext bartext-"+m,"text-anchor":"middle","data-notex":1}).call(po.font,X).call(sve.convertToTspans,e);return ge}var _=a[0].trace,w=_.orientation==="h",x=Mve(y,a,n,d,p);m=Ave(_,n);var M=c.mode==="stack"||c.mode==="relative",k=a[n],A=!M||k._outmost,L=k.hasB,D=u&&u-f>Wa;if(!x||m==="none"||(k.isBlank||i===l||o===s)&&(m==="auto"||m==="inside")){t.select("text").remove();return}var E=y.font,R=O5.getBarColor(a[n],_),N=O5.getInsideTextFont(_,n,E,R),I=O5.getOutsideTextFont(_,n,E),H=_.insidetextanchor||"end",V=t.datum();w?d.type==="log"&&V.s0<=0&&(d.range[0]0&&le>0,Q;D?L?Q=Ps(O-2*u,G,re,le,w)||Ps(O,G-2*u,re,le,w):w?Q=Ps(O-(u-f),G,re,le,w)||Ps(O,G-2*(u-f),re,le,w):Q=Ps(O,G-(u-f),re,le,w)||Ps(O-2*(u-f),G,re,le,w):Q=Ps(O,G,re,le,w),ve&&Q?m="inside":(m="outside",J.remove(),J=null)}else m="inside";if(!J){se=da.ensureUniformFontSize(e,m==="outside"?I:N),J=b(t,x,se);var _e=J.attr("transform");if(J.attr("transform",""),$=po.bBox(J.node()),re=$.width,le=$.height,J.attr("transform",_e),re<=0||le<=0){J.remove();return}}var ce=_.textangle,be,fe;m==="outside"?(fe=_.constraintext==="both"||_.constraintext==="outside",be=Tve(i,l,o,s,$,{isHorizontal:w,constrained:fe,angle:ce})):(fe=_.constraintext==="both"||_.constraintext==="inside",be=XF(i,l,o,s,$,{isHorizontal:w,constrained:fe,angle:ce,anchor:H,hasB:L,r:u,overhead:f})),be.fontSize=se.size,cve(_.type==="histogram"?"bar":_.type,be,y),k.transform=be;var ye=GF(J,y,c,h);da.setTransormAndDisplay(ye,be)}function Ps(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,l=t<=r&&a<=e,o=n?e>=t*(r/a):r>=a*(e/t);return i||l||o}function VF(e){return e==="auto"?0:e}function WF(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function XF(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",c=u==="start",h=i.leftToRight||0,d=(h+1)/2,p=1-d,y=i.hasB,m=i.r,b=i.overhead,_=n.width,w=n.height,x=Math.abs(r-e),M=Math.abs(a-t),k=x>2*Wa&&M>2*Wa?Wa:0;x-=2*k,M-=2*k;var A=VF(s);s==="auto"&&!(_<=x&&w<=M)&&(_>x||w>M)&&(!(_>M||w>x)||_Wa){var R=wve(e,r,t,a,L,m,b,l,y);D=R.scale,E=R.pad}else D=1,o&&(D=Math.min(1,x/L.x,M/L.y)),E=0;var N=n.left*p+n.right*d,I=(n.top+n.bottom)/2,H=(e+Wa)*p+(r-Wa)*d,V=(t+a)/2,W=0,Y=0;if(c||f){var O=(l?L.x:L.y)/2;m&&(f||y)&&(k+=E);var G=l?Qi(e,r):Qi(t,a);l?c?(H=e+G*k,W=-G*O):(H=r-G*k,W=G*O):c?(V=t+G*k,Y=-G*O):(V=a-G*k,Y=G*O)}return{textX:N,textY:I,targetX:H,targetY:V,anchorX:W,anchorY:Y,scale:D,rotate:A}}function wve(e,r,t,a,n,i,l,o,s){var u=Math.max(0,Math.abs(r-e)-2*Wa),f=Math.max(0,Math.abs(a-t)-2*Wa),c=i-Wa,h=l?c-Math.sqrt(c*c-(c-l)*(c-l)):c,d=s?c*2:o?c-l:2*h,p=s?c*2:o?2*h:c-l,y,m,b,_,w;return n.y/n.x>=f/(u-d)?_=f/n.y:n.y/n.x<=(f-p)/u?_=u/n.x:!s&&o?(y=n.x*n.x+n.y*n.y/4,m=-2*n.x*(u-c)-n.y*(f/2-c),b=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,_=(-m+Math.sqrt(m*m-4*y*b))/(2*y)):s?(y=(n.x*n.x+n.y*n.y)/4,m=-n.x*(u/2-c)-n.y*(f/2-c),b=(u/2-c)*(u/2-c)+(f/2-c)*(f/2-c)-c*c,_=(-m+Math.sqrt(m*m-4*y*b))/(2*y)):(y=n.x*n.x/4+n.y*n.y,m=-n.x*(u/2-c)-2*n.y*(f-c),b=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,_=(-m+Math.sqrt(m*m-4*y*b))/(2*y)),_=Math.min(1,_),o?w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*_)/2)*(c-(f-n.y*_)/2)))-l):w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*_)/2)*(c-(u-n.x*_)/2)))-l),{scale:_,pad:w}}function Tve(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,c=Math.abs(r-e),h=Math.abs(a-t),d;l?d=h>2*Wa?Wa:0:d=c>2*Wa?Wa:0;var p=1;o&&(p=l?Math.min(1,h/f):Math.min(1,c/u));var y=VF(s),m=WF(n,y),b=(l?m.x:m.y)/2,_=(n.left+n.right)/2,w=(n.top+n.bottom)/2,x=(e+r)/2,M=(t+a)/2,k=0,A=0,L=l?Qi(r,e):Qi(t,a);return l?(x=r-L*d,k=L*b):(M=a+L*d,A=-L*b),{textX:_,textY:w,targetX:x,targetY:M,anchorX:k,anchorY:A,scale:p,rotate:y}}function Mve(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=kve(e,r,t,a,n):i.textinfo?o=qve(r,t,a,n):o=Df.getValue(i.text,t),Df.coerceString(dve,o)}function Ave(e,r){var t=Df.getValue(e.textposition,r);return Df.coerceEnumerated(pve,t)}function kve(e,r,t,a,n){var i=r[0].trace,l=da.castOption(i,t,"texttemplate");if(!l)return"";var o=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",c,h,d,p;f?(c="y",h=n,d="x",p=a):(c="x",h=a,d="y",p=n);function y(k){return Jp(h,h.c2l(k),!0).text}function m(k){return Jp(p,p.c2l(k),!0).text}var b=r[t],_={};_.label=b.p,_.labelLabel=_[c+"Label"]=y(b.p);var w=da.castOption(i,b.i,"text");(w===0||w)&&(_.text=w),_.value=b.s,_.valueLabel=_[d+"Label"]=m(b.s);var x={};mve(x,i,b.i),(o||x.x===void 0)&&(x.x=f?_.value:_.label),(o||x.y===void 0)&&(x.y=f?_.label:_.value),(o||x.xLabel===void 0)&&(x.xLabel=f?_.valueLabel:_.labelLabel),(o||x.yLabel===void 0)&&(x.yLabel=f?_.labelLabel:_.valueLabel),s&&(_.delta=+b.rawS||b.s,_.deltaLabel=m(_.delta),_.final=b.v,_.finalLabel=m(_.final),_.initial=_.final-_.delta,_.initialLabel=m(_.initial)),u&&(_.value=b.s,_.valueLabel=m(_.value),_.percentInitial=b.begR,_.percentInitialLabel=da.formatPercent(b.begR),_.percentPrevious=b.difR,_.percentPreviousLabel=da.formatPercent(b.difR),_.percentTotal=b.sumR,_.percenTotalLabel=da.formatPercent(b.sumR));var M=da.castOption(i,b.i,"customdata");return M&&(_.customdata=M),da.texttemplateString(l,_,e._d3locale,x,_,i._meta||{})}function qve(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",l=n.type==="waterfall",o=n.type==="funnel";function s(M){var k=i?a:t;return Jp(k,M,!0).text}function u(M){var k=i?t:a;return Jp(k,+M,!0).text}var f=n.textinfo,c=e[r],h=f.split("+"),d=[],p,y=function(M){return h.indexOf(M)!==-1};if(y("label")&&d.push(s(e[r].p)),y("text")&&(p=da.castOption(n,c.i,"text"),(p===0||p)&&d.push(p)),l){var m=+c.rawS||c.s,b=c.v,_=b-m;y("initial")&&d.push(u(_)),y("delta")&&d.push(u(m)),y("final")&&d.push(u(b))}if(o){y("value")&&d.push(u(c.s));var w=0;y("percent initial")&&w++,y("percent previous")&&w++,y("percent total")&&w++;var x=w>1;y("percent initial")&&(p=da.formatPercent(c.begR),x&&(p+=" of initial"),d.push(p)),y("percent previous")&&(p=da.formatPercent(c.difR),x&&(p+=" of previous"),d.push(p)),y("percent total")&&(p=da.formatPercent(c.sumR),x&&(p+=" of total"),d.push(p))}return d.join("
")}ZF.exports={plot:bve,toMoveInsideBar:XF}});var e0=B((q5e,QF)=>{"use strict";var jv=gi(),Cve=yr(),JF=xr(),Lve=Pe().fillText,Sve=Wp().getLineWidth,Y5=$r().hoverLabelText,Dve=wt().BADNUM;function Eve(e,r,t,a,n){var i=$F(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=KF(o,s),Cve.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function $F(e,r,t,a,n){var i=e.cd,l=i[0].trace,o=i[0].t,s=a==="closest",u=l.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,h,d,p,y,m,b,_;l.orientation==="h"?(h=t,d=r,p="y",y="x",m=V,b=N):(h=r,d=t,p="x",y="y",b=V,m=N);var w=l[p+"period"],x=s||w;function M(Q){return A(Q,-1)}function k(Q){return A(Q,1)}function A(Q,_e){var ce=Q.w;return Q[p]+_e*ce/2}function L(Q){return Q[p+"End"]-Q[p+"Start"]}var D=s?M:w?function(Q){return Q.p-L(Q)/2}:function(Q){return Math.min(M(Q),Q.p-o.bardelta/2)},E=s?k:w?function(Q){return Q.p+L(Q)/2}:function(Q){return Math.max(k(Q),Q.p+o.bardelta/2)};function R(Q,_e,ce){return n.finiteRange&&(ce=0),jv.inbox(Q-h,_e-h,ce+Math.min(1,Math.abs(_e-Q)/_)-1)}function N(Q){return R(D(Q),E(Q),f)}function I(Q){return R(M(Q),k(Q),c)}function H(Q){var _e=Q[y];if(u){var ce=Math.abs(Q.rawS)||0;d>0?_e+=ce:d<0&&(_e-=ce)}return _e}function V(Q){var _e=d,ce=Q.b,be=H(Q);return jv.inbox(ce-_e,be-_e,f+(be-_e)/(be-ce)-1)}function W(Q){var _e=d,ce=Q.b,be=H(Q);return jv.inbox(ce-_e,be-_e,c+(be-_e)/(be-ce)-1)}var Y=e[p+"a"],O=e[y+"a"];_=Math.abs(Y.r2c(Y.range[1])-Y.r2c(Y.range[0]));function G(Q){return(m(Q)+b(Q))/2}var J=jv.getDistanceFunction(a,m,b,G);if(jv.getClosest(i,J,e),e.index!==!1&&i[e.index].p!==Dve){x||(D=function(Q){return Math.min(M(Q),Q.p-o.bargroupwidth/2)},E=function(Q){return Math.max(k(Q),Q.p+o.bargroupwidth/2)});var $=e.index,re=i[$],le=l.base?re.b+re.s:re.s;e[y+"0"]=e[y+"1"]=O.c2p(re[y],!0),e[y+"LabelVal"]=le;var se=o.extents[o.extents.round(re.p)];e[p+"0"]=Y.c2p(s?D(re):se[0],!0),e[p+"1"]=Y.c2p(s?E(re):se[1],!0);var ve=re.orig_p!==void 0;return e[p+"LabelVal"]=ve?re.orig_p:re.p,e.labelLabel=Y5(Y,e[p+"LabelVal"],l[p+"hoverformat"]),e.valueLabel=Y5(O,e[y+"LabelVal"],l[y+"hoverformat"]),e.baseLabel=Y5(O,re.b,l[y+"hoverformat"]),e.spikeDistance=(W(re)+I(re))/2,e[p+"Spike"]=Y.c2p(re.p,!0),Lve(re,l,e),e.hovertemplate=l.hovertemplate,e}}function KF(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=Sve(e,r);if(JF.opacity(t))return t;if(JF.opacity(a)&&n)return a}QF.exports={hoverPoints:Eve,hoverOnBars:$F,getTraceColor:KF}});var eI=B((C5e,jF)=>{"use strict";jF.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var r0=B((L5e,rI)=>{"use strict";rI.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=a[0].trace,o=l.type==="funnel",s=l.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";tI.exports={attributes:Tl(),layoutAttributes:Gp(),supplyDefaults:Ki().supplyDefaults,crossTraceDefaults:Ki().crossTraceDefaults,supplyLayoutDefaults:F5(),calc:kF(),crossTraceCalc:hf().crossTraceCalc,colorbar:np(),arraysToCalcdata:Vp(),plot:Ef().plot,style:ho().style,styleOnSelect:ho().styleOnSelect,hoverPoints:e0().hoverPoints,eventData:eI(),selectPoints:r0(),moduleType:"trace",name:"bar",basePlotModule:gl(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var iI=B((D5e,nI)=>{"use strict";nI.exports=aI()});var oI=B((E5e,lI)=>{"use strict";lI.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var uI=B((P5e,sI)=>{"use strict";sI.exports={eventDataKeys:["binNumber"]}});var V5=B((R5e,vI)=>{"use strict";var dn=Tl(),fI=di().axisHoverFormat,Rve=_a().hovertemplateAttrs,zve=_a().texttemplateAttrs,G5=jt(),cI=oI(),Nve=uI(),U5=mt().extendFlat;vI.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:fI("x"),yhoverformat:fI("y"),text:U5({},dn.text,{}),hovertext:U5({},dn.hovertext,{}),orientation:dn.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:cI("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:cI("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:Rve({},{keys:Nve.eventDataKeys}),texttemplate:zve({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),textposition:U5({},dn.textposition,{arrayOk:!1}),textfont:G5({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:G5({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:G5({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:dn.insidetextanchor,textangle:dn.textangle,cliponaxis:dn.cliponaxis,constraintext:dn.constraintext,marker:dn.marker,offsetgroup:dn.offsetgroup,alignmentgroup:dn.alignmentgroup,selected:dn.selected,unselected:dn.unselected,zorder:dn.zorder}});var mI=B((z5e,pI)=>{"use strict";var hI=yr(),t0=Pe(),dI=xr(),Fve=Ki().handleText,Ive=N5(),Hve=V5();pI.exports=function(r,t,a,n){function i(_,w){return t0.coerce(r,t,Hve,_,w)}var l=i("x"),o=i("y"),s=i("cumulative.enabled");s&&(i("cumulative.direction"),i("cumulative.currentbin")),i("text");var u=i("textposition");Fve(r,t,n,i,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),i("hovertext"),i("hovertemplate"),i("xhoverformat"),i("yhoverformat");var f=i("orientation",o&&!l?"h":"v"),c=f==="v"?"x":"y",h=f==="v"?"y":"x",d=l&&o?Math.min(t0.minRowLength(l)&&t0.minRowLength(o)):t0.minRowLength(t[c]||[]);if(!d){t.visible=!1;return}t._length=d;var p=hI.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var y=t[h];y&&i("histfunc"),i("histnorm"),i("autobin"+c),Ive(r,t,i,a,n),t0.coerceSelectionMarkerOpacity(t,i);var m=(t.marker.line||{}).color,b=hI.getComponentMethod("errorbars","supplyDefaults");b(r,t,m||dI.defaultLine,{axis:"y"}),b(r,t,m||dI.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var bI=B((N5e,xI)=>{"use strict";var a0=Pe(),Ove=Jt(),$p=yr().traceIs,Bve=ff(),Yve=Ki().validateCornerradius,yI=a0.nestedProperty,W5=ys().getAxisGroup,gI=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],Gve=["x","y"];xI.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},l=[],o,s,u,f,c,h,d;function p(V,W){return a0.coerce(o._input,o,o._module.attributes,V,W)}function y(V){return V.orientation==="v"?"x":"y"}function m(V,W){var Y=Ove.getFromTrace({_fullLayout:t},V,W);return Y.type}function b(V,W,Y){var O=V.uid+"__"+Y;W||(W=O);var G=m(V,Y),J=V[Y+"calendar"]||"",$=a[W],re=!0;$&&(G===$.axType&&J===$.calendar?(re=!1,$.traces.push(V),$.dirs.push(Y)):(W=O,G!==$.axType&&a0.warn(["Attempted to group the bins of trace",V.index,"set on a","type:"+G,"axis","with bins on","type:"+$.axType,"axis."].join(" ")),J!==$.calendar&&a0.warn(["Attempted to group the bins of trace",V.index,"set with a",J,"calendar","with bins",$.calendar?"on a "+$.calendar+" calendar":"w/o a set calendar"].join(" ")))),re&&(a[W]={traces:[V],dirs:[Y],axType:G,calendar:V[Y+"calendar"]||""}),V["_"+Y+"bingroup"]=W}for(c=0;c{"use strict";var Pf=zr();_I.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return Pf(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return Pf(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if(Pf(n))if(n=Number(n),Pf(t[e])){if(t[e]>n){var i=n-t[e];return t[e]=n,i}}else return t[e]=n,n;return 0},max:function(e,r,t,a){var n=a[r];if(Pf(n))if(n=Number(n),Pf(t[e])){if(t[e]{"use strict";TI.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n{"use strict";AI.exports=function(r,t){for(var a=r.length,n=0,i=0;i{"use strict";var Rf=wt(),Rs=Rf.ONEAVGYEAR,qI=Rf.ONEAVGMONTH,Qp=Rf.ONEDAY,CI=Rf.ONEHOUR,LI=Rf.ONEMIN,SI=Rf.ONESEC,DI=$r().tickIncrement;RI.exports=function(r,t,a,n,i){var l=-1.1*t,o=-.1*t,s=r-o,u=a[0],f=a[1],c=Math.min(Kp(u+o,u+s,n,i),Kp(f+o,f+s,n,i)),h=Math.min(Kp(u+l,u+o,n,i),Kp(f+l,f+o,n,i)),d,p;if(c>h&&hQp){var y=d===Rs?1:6,m=d===Rs?"M12":"M1";return function(b,_){var w=n.c2d(b,Rs,i),x=w.indexOf("-",y);x>0&&(w=w.substr(0,x));var M=n.d2c(w,0,i);if(MSI?e>Qp?e>Rs*1.1?Rs:e>qI*1.1?qI:Qp:e>CI?CI:e>LI?LI:SI:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function Uve(e,r,t,a,n,i){if(a&&e>Qp){var l=PI(r,n,i),o=PI(t,n,i),s=e===Rs?0:1;return l[s]!==o[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function PI(e,r,t){var a=r.c2d(e,Rs,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var HI=B((B5e,II)=>{"use strict";var X5=zr(),Xa=Pe(),NI=yr(),ei=$r(),Vve=Vp(),FI=wI(),Wve=MI(),Xve=kI(),Zve=zI();function Jve(e,r){var t=[],a=[],n=r.orientation==="h",i=ei.getFromId(e,n?r.yaxis:r.xaxis),l=n?"y":"x",o={x:"y",y:"x"}[l],s=r[l+"calendar"],u=r.cumulative,f,c=Z5(e,r,i,l),h=c[0],d=c[1],p=typeof h.size=="string",y=[],m=p?y:h,b=[],_=[],w=[],x=0,M=r.histnorm,k=r.histfunc,A=M.indexOf("density")!==-1,L,D,E;u.enabled&&A&&(M=M.replace(/ ?density$/,""),A=!1);var R=k==="max"||k==="min",N=R?null:0,I=FI.count,H=Wve[M],V=!1,W=function(U){return i.r2c(U,0,s)},Y;for(Xa.isArrayOrTypedArray(r[o])&&k!=="count"&&(Y=r[o],V=k==="avg",I=FI[k]),f=W(h.start),D=W(h.end)+(f-ei.tickIncrement(f,h.size,!1,s))/1e6;f=0&&E=be;f--)if(a[f]){fe=f;break}for(f=be;f<=fe;f++)if(X5(t[f])&&X5(a[f])){var ye={p:t[f],s:a[f],b:0};u.enabled||(ye.pts=w[f],$?ye.ph0=ye.ph1=w[f].length?d[w[f][0]]:t[f]:(r._computePh=!0,ye.ph0=Q(y[f]),ye.ph1=Q(y[f+1],!0))),ce.push(ye)}return ce.length===1&&(ce[0].width1=ei.tickIncrement(ce[0].p,h.size,!1,s)-ce[0].p),Vve(ce,r),Xa.isArrayOrTypedArray(r.selectedpoints)&&Xa.tagSelected(ce,r,se),ce}function Z5(e,r,t,a,n){var i=a+"bins",l=e._fullLayout,o=r["_"+a+"bingroup"],s=l._histogramBinOpts[o],u=l.barmode==="overlay",f,c,h,d,p,y,m,b=function(ve){return t.r2c(ve,0,d)},_=function(ve){return t.c2r(ve,0,d)},w=t.type==="date"?function(ve){return ve||ve===0?Xa.cleanDate(ve,null,d):null}:function(ve){return X5(ve)?Number(ve):null};function x(ve,Q,_e){Q[ve+"Found"]?(Q[ve]=w(Q[ve]),Q[ve]===null&&(Q[ve]=_e[ve])):(y[ve]=Q[ve]=_e[ve],Xa.nestedProperty(c[0],i+"."+ve).set(_e[ve]))}if(r["_"+a+"autoBinFinished"])delete r["_"+a+"autoBinFinished"];else{c=s.traces;var M=[],k=!0,A=!1,L=!1;for(f=0;ft.r2l(Y)&&(G=ei.tickIncrement(G,s.size,!0,d)),I.start=t.l2r(G),W||Xa.nestedProperty(r,i+".start").set(I.start)}var J=s.end,$=t.r2l(N.end),re=$!==void 0;if((s.endFound||re)&&$!==t.r2l(J)){var le=re?$:Xa.aggNums(Math.max,null,p);I.end=t.l2r(le),re||Xa.nestedProperty(r,i+".start").set(I.end)}var se="autobin"+a;return r._input[se]===!1&&(r._input[i]=Xa.extendFlat({},r[i]||{}),delete r._input[se],delete r[se]),[I,p]}function $ve(e,r,t,a,n){var i=e._fullLayout,l=Kve(e,r),o=!1,s=1/0,u=[r],f,c,h;for(f=0;f=0;a--)o(a);else if(r==="increasing"){for(a=1;a=0;a--)e[a]+=e[a+1];t==="exclude"&&(e.push(0),e.shift())}}II.exports={calc:Jve,calcAllAutoBins:Z5}});var BI=B((Y5e,OI)=>{"use strict";var jve=e0().hoverPoints,e0e=$r().hoverLabelText;OI.exports=function(r,t,a,n,i){var l=jve(r,t,a,n,i);if(l){r=l[0];var o=r.cd[r.index],s=r.cd[0].trace;if(!s.cumulative.enabled){var u=s.orientation==="h"?"y":"x";r[u+"Label"]=e0e(r[u+"a"],[o.ph0,o.ph1],s[u+"hoverformat"])}return l}}});var GI=B((G5e,YI)=>{"use strict";YI.exports=function(r,t,a,n,i){if(r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"zLabelVal"in t&&(r.z=t.zLabelVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),!(a.cumulative||{}).enabled){var l=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;r.pointNumbers=l,r.binNumber=r.pointNumber,delete r.pointNumber,delete r.pointIndex;var o;if(a._indexToPoints){o=[];for(var s=0;s{"use strict";UI.exports={attributes:V5(),layoutAttributes:Gp(),supplyDefaults:mI(),crossTraceDefaults:bI(),supplyLayoutDefaults:F5(),calc:HI().calc,crossTraceCalc:hf().crossTraceCalc,plot:Ef().plot,layerName:"barlayer",style:ho().style,styleOnSelect:ho().styleOnSelect,colorbar:np(),hoverPoints:BI(),selectPoints:r0(),eventData:GI(),moduleType:"trace",name:"histogram",basePlotModule:gl(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var XI=B((V5e,WI)=>{"use strict";WI.exports=VI()});var JI=B((W5e,ZI)=>{"use strict";ZI.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var $5=B((X5e,QI)=>{"use strict";var pt=Tl(),J5=bi().line,r0e=rn(),$I=di().axisHoverFormat,t0e=_a().hovertemplateAttrs,a0e=_a().texttemplateAttrs,KI=JI(),Ml=mt().extendFlat,n0e=xr();QI.exports={x:pt.x,x0:pt.x0,dx:pt.dx,y:pt.y,y0:pt.y0,dy:pt.dy,xperiod:pt.xperiod,yperiod:pt.yperiod,xperiod0:pt.xperiod0,yperiod0:pt.yperiod0,xperiodalignment:pt.xperiodalignment,yperiodalignment:pt.yperiodalignment,xhoverformat:$I("x"),yhoverformat:$I("y"),hovertext:pt.hovertext,hovertemplate:t0e({},{keys:KI.eventDataKeys}),hoverinfo:Ml({},r0e.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:a0e({editType:"plot"},{keys:KI.eventDataKeys.concat(["label","value"])}),text:pt.text,textposition:pt.textposition,insidetextanchor:Ml({},pt.insidetextanchor,{dflt:"middle"}),textangle:Ml({},pt.textangle,{dflt:0}),textfont:pt.textfont,insidetextfont:pt.insidetextfont,outsidetextfont:pt.outsidetextfont,constraintext:pt.constraintext,cliponaxis:pt.cliponaxis,orientation:Ml({},pt.orientation,{}),offset:Ml({},pt.offset,{arrayOk:!1}),width:Ml({},pt.width,{arrayOk:!1}),marker:i0e(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Ml({},J5.color,{dflt:n0e.defaultLine}),width:Ml({},J5.width,{dflt:0,editType:"plot"}),dash:J5.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:pt.offsetgroup,alignmentgroup:pt.alignmentgroup,zorder:pt.zorder};function i0e(){var e=Ml({},pt.marker);return delete e.pattern,delete e.cornerradius,e}});var K5=B((Z5e,jI)=>{"use strict";jI.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var j5=B((J5e,rH)=>{"use strict";var jp=Pe(),l0e=ff(),o0e=Ki().handleText,s0e=Dv(),u0e=_s(),eH=$5(),Q5=xr();function f0e(e,r,t,a){function n(c,h){return jp.coerce(e,r,eH,c,h)}var i=s0e(e,r,a,n);if(!i){r.visible=!1;return}u0e(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("orientation",r.y&&!r.x?"v":"h"),n("offset"),n("width");var l=n("text");n("hovertext"),n("hovertemplate");var o=n("textposition");o0e(e,r,a,n,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),r.textposition!=="none"&&!r.texttemplate&&n("textinfo",jp.isArrayOrTypedArray(l)?"text+value":"value");var s=n("marker.color",t);n("marker.line.color",Q5.defaultLine),n("marker.line.width");var u=n("connector.visible");if(u){n("connector.fillcolor",c0e(s));var f=n("connector.line.width");f&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function c0e(e){var r=jp.isArrayOrTypedArray(e)?"#000":e;return Q5.addOpacity(r,.5*Q5.opacity(r))}function v0e(e,r){var t,a;function n(l){return jp.coerce(a._input,a,eH,l)}for(var i=0;i{"use strict";var h0e=Pe(),d0e=K5();tH.exports=function(e,r,t){var a=!1;function n(o,s){return h0e.coerce(e,r,d0e,o,s)}for(var i=0;i{"use strict";var zf=Pe();nH.exports=function(r,t){for(var a=0;a{"use strict";var lH=$r(),oH=ws(),p0e=iH(),m0e=Ev(),n0=wt().BADNUM;sH.exports=function(r,t){var a=lH.getFromId(r,t.xaxis||"x"),n=lH.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,c,h;t.orientation==="h"?(i=a.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=oH(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=oH(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;var d=Math.min(l.length,i.length),p=new Array(d);for(t._base=[],c=0;c{"use strict";var fH=hf().setGroupPositions;cH.exports=function(r,t){var a=r._fullLayout,n=r._fullData,i=r.calcdata,l=t.xaxis,o=t.yaxis,s=[],u=[],f=[],c,h;for(h=0;h{"use strict";var em=kr(),yo=Pe(),hH=Br(),mo=wt().BADNUM,y0e=Ef(),g0e=Ei().clearMinTextSize;pH.exports=function(r,t,a,n){var i=r._fullLayout;g0e("funnel",i),x0e(r,t,a,n),b0e(r,t,a,n),y0e.plot(r,t,a,n,{mode:i.funnelmode,norm:i.funnelmode,gap:i.funnelgap,groupgap:i.funnelgroupgap})};function x0e(e,r,t,a){var n=r.xaxis,i=r.yaxis;yo.makeTraceGroups(a,t,"trace bars").each(function(l){var o=em.select(this),s=l[0].trace,u=yo.ensureSingle(o,"g","regions");if(!s.connector||!s.connector.visible){u.remove();return}var f=s.orientation==="h",c=u.selectAll("g.region").data(yo.identity);c.enter().append("g").classed("region",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var y=dH(d,n,i,f),m=y[0],b=y[1],_="";m[0]!==mo&&b[0]!==mo&&m[1]!==mo&&b[1]!==mo&&m[2]!==mo&&b[2]!==mo&&m[3]!==mo&&b[3]!==mo&&(f?_+="M"+m[0]+","+b[1]+"L"+m[2]+","+b[2]+"H"+m[3]+"L"+m[1]+","+b[1]+"Z":_+="M"+m[1]+","+b[1]+"L"+m[2]+","+b[3]+"V"+b[2]+"L"+m[1]+","+b[0]+"Z"),_===""&&(_="M0,0Z"),yo.ensureSingle(em.select(this),"path").attr("d",_).call(hH.setClipUrl,r.layerClipId,e)}})})}function b0e(e,r,t,a){var n=r.xaxis,i=r.yaxis;yo.makeTraceGroups(a,t,"trace bars").each(function(l){var o=em.select(this),s=l[0].trace,u=yo.ensureSingle(o,"g","lines");if(!s.connector||!s.connector.visible||!s.connector.line.width){u.remove();return}var f=s.orientation==="h",c=u.selectAll("g.line").data(yo.identity);c.enter().append("g").classed("line",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var y=dH(d,n,i,f),m=y[0],b=y[1],_="";m[3]!==void 0&&b[3]!==void 0&&(f?(_+="M"+m[0]+","+b[1]+"L"+m[2]+","+b[2],_+="M"+m[1]+","+b[1]+"L"+m[3]+","+b[2]):(_+="M"+m[1]+","+b[1]+"L"+m[2]+","+b[3],_+="M"+m[1]+","+b[0]+"L"+m[2]+","+b[2])),_===""&&(_="M0,0Z"),yo.ensureSingle(em.select(this),"path").attr("d",_).call(hH.setClipUrl,r.layerClipId,e)}})})}function dH(e,r,t,a){var n=[],i=[],l=a?r:t,o=a?t:r;return n[0]=l.c2p(e.s0,!0),i[0]=o.c2p(e.p0,!0),n[1]=l.c2p(e.s1,!0),i[1]=o.c2p(e.p1,!0),n[2]=l.c2p(e.nextS0,!0),i[2]=o.c2p(e.nextP0,!0),n[3]=l.c2p(e.nextS1,!0),i[3]=o.c2p(e.nextP1,!0),a?[n,i]:[i,n]}});var xH=B((rbe,gH)=>{"use strict";var i0=kr(),yH=Br(),rb=xr(),_0e=pu().DESELECTDIM,w0e=ho(),T0e=Ei().resizeText,M0e=w0e.styleTextPoints;function A0e(e,r,t){var a=t||i0.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");T0e(e,a,"funnel"),a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=i0.select(this),l=n[0].trace;i.selectAll(".point > path").each(function(o){if(!o.isBlank){var s=l.marker;i0.select(this).call(rb.fill,o.mc||s.color).call(rb.stroke,o.mlc||s.line.color).call(yH.dashLine,s.line.dash,o.mlw||s.line.width).style("opacity",l.selectedpoints&&!o.selected?_0e:1)}}),M0e(i,l,e),i.selectAll(".regions").each(function(){i0.select(this).selectAll("path").style("stroke-width",0).call(rb.fill,l.connector.fillcolor)}),i.selectAll(".lines").each(function(){var o=l.connector.line;yH.lineGroupStyle(i0.select(this).selectAll("path"),o.width,o.color,o.dash)})})}gH.exports={style:A0e}});var wH=B((tbe,_H)=>{"use strict";var bH=xr().opacity,k0e=e0().hoverOnBars,tb=Pe().formatPercent;_H.exports=function(r,t,a,n,i){var l=k0e(r,t,a,n,i);if(l){var o=l.cd,s=o[0].trace,u=s.orientation==="h",f=l.index,c=o[f],h=u?"x":"y";l[h+"LabelVal"]=c.s,l.percentInitial=c.begR,l.percentInitialLabel=tb(c.begR,1),l.percentPrevious=c.difR,l.percentPreviousLabel=tb(c.difR,1),l.percentTotal=c.sumR,l.percentTotalLabel=tb(c.sumR,1);var d=c.hi||s.hoverinfo,p=[];if(d&&d!=="none"&&d!=="skip"){var y=d==="all",m=d.split("+"),b=function(_){return y||m.indexOf(_)!==-1};b("percent initial")&&p.push(l.percentInitialLabel+" of initial"),b("percent previous")&&p.push(l.percentPreviousLabel+" of previous"),b("percent total")&&p.push(l.percentTotalLabel+" of total")}return l.extraText=p.join("
"),l.color=q0e(s,c),[l]}};function q0e(e,r){var t=e.marker,a=r.mc||t.color,n=r.mlc||t.line.color,i=r.mlw||t.line.width;if(bH(a))return a;if(bH(n)&&i)return n}});var MH=B((abe,TH)=>{"use strict";TH.exports=function(r,t){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"percentInitial"in t&&(r.percentInitial=t.percentInitial),"percentPrevious"in t&&(r.percentPrevious=t.percentPrevious),"percentTotal"in t&&(r.percentTotal=t.percentTotal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var kH=B((nbe,AH)=>{"use strict";AH.exports={attributes:$5(),layoutAttributes:K5(),supplyDefaults:j5().supplyDefaults,crossTraceDefaults:j5().crossTraceDefaults,supplyLayoutDefaults:aH(),calc:uH(),crossTraceCalc:vH(),plot:mH(),style:xH().style,hoverPoints:wH(),eventData:MH(),selectPoints:r0(),moduleType:"trace",name:"funnel",basePlotModule:gl(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var CH=B((ibe,qH)=>{"use strict";qH.exports=kH()});var SH=B((lbe,LH)=>{"use strict";LH.exports={eventDataKeys:["initial","delta","final"]}});var ib=B((obe,PH)=>{"use strict";var ut=Tl(),ab=bi().line,C0e=rn(),DH=di().axisHoverFormat,L0e=_a().hovertemplateAttrs,S0e=_a().texttemplateAttrs,EH=SH(),Nf=mt().extendFlat,D0e=xr();function nb(e){return{marker:{color:Nf({},ut.marker.color,{arrayOk:!1,editType:"style"}),line:{color:Nf({},ut.marker.line.color,{arrayOk:!1,editType:"style"}),width:Nf({},ut.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}PH.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:ut.x,x0:ut.x0,dx:ut.dx,y:ut.y,y0:ut.y0,dy:ut.dy,xperiod:ut.xperiod,yperiod:ut.yperiod,xperiod0:ut.xperiod0,yperiod0:ut.yperiod0,xperiodalignment:ut.xperiodalignment,yperiodalignment:ut.yperiodalignment,xhoverformat:DH("x"),yhoverformat:DH("y"),hovertext:ut.hovertext,hovertemplate:L0e({},{keys:EH.eventDataKeys}),hoverinfo:Nf({},C0e.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:S0e({editType:"plot"},{keys:EH.eventDataKeys.concat(["label"])}),text:ut.text,textposition:ut.textposition,insidetextanchor:ut.insidetextanchor,textangle:ut.textangle,textfont:ut.textfont,insidetextfont:ut.insidetextfont,outsidetextfont:ut.outsidetextfont,constraintext:ut.constraintext,cliponaxis:ut.cliponaxis,orientation:ut.orientation,offset:ut.offset,width:ut.width,increasing:nb("increasing"),decreasing:nb("decreasing"),totals:nb("intermediate sums and total"),connector:{line:{color:Nf({},ab.color,{dflt:D0e.defaultLine}),width:Nf({},ab.width,{editType:"plot"}),dash:ab.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:ut.offsetgroup,alignmentgroup:ut.alignmentgroup,zorder:ut.zorder}});var lb=B((sbe,RH)=>{"use strict";RH.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var Ff=B((ube,zH)=>{"use strict";zH.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var sb=B((fbe,HH)=>{"use strict";var NH=Pe(),E0e=ff(),P0e=Ki().handleText,R0e=Dv(),z0e=_s(),FH=ib(),N0e=xr(),IH=Ff(),F0e=IH.INCREASING.COLOR,I0e=IH.DECREASING.COLOR,H0e="#4499FF";function ob(e,r,t){e(r+".marker.color",t),e(r+".marker.line.color",N0e.defaultLine),e(r+".marker.line.width")}function O0e(e,r,t,a){function n(u,f){return NH.coerce(e,r,FH,u,f)}var i=R0e(e,r,a,n);if(!i){r.visible=!1;return}z0e(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("measure"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate");var l=n("textposition");P0e(e,r,a,n,l,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),r.textposition!=="none"&&(n("texttemplate"),r.texttemplate||n("textinfo")),ob(n,"increasing",F0e),ob(n,"decreasing",I0e),ob(n,"totals",H0e);var o=n("connector.visible");if(o){n("connector.mode");var s=n("connector.line.width");s&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function B0e(e,r){var t,a;function n(l){return NH.coerce(a._input,a,FH,l)}if(r.waterfallmode==="group")for(var i=0;i{"use strict";var Y0e=Pe(),G0e=lb();OH.exports=function(e,r,t){var a=!1;function n(o,s){return Y0e.coerce(e,r,G0e,o,s)}for(var i=0;i{"use strict";var YH=$r(),GH=ws(),UH=Pe().mergeArray,U0e=Ev(),VH=wt().BADNUM;function ub(e){return e==="a"||e==="absolute"}function fb(e){return e==="t"||e==="total"}WH.exports=function(r,t){var a=YH.getFromId(r,t.xaxis||"x"),n=YH.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f;t.orientation==="h"?(i=a.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=GH(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=GH(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var c=Math.min(l.length,i.length),h=new Array(c),d=0,p,y=!1,m=0;m{"use strict";var ZH=hf().setGroupPositions;JH.exports=function(r,t){var a=r._fullLayout,n=r._fullData,i=r.calcdata,l=t.xaxis,o=t.yaxis,s=[],u=[],f=[],c,h;for(h=0;h{"use strict";var KH=kr(),rm=Pe(),V0e=Br(),If=wt().BADNUM,W0e=Ef(),X0e=Ei().clearMinTextSize;QH.exports=function(r,t,a,n){var i=r._fullLayout;X0e("waterfall",i),W0e.plot(r,t,a,n,{mode:i.waterfallmode,norm:i.waterfallmode,gap:i.waterfallgap,groupgap:i.waterfallgroupgap}),Z0e(r,t,a,n)};function Z0e(e,r,t,a){var n=r.xaxis,i=r.yaxis;rm.makeTraceGroups(a,t,"trace bars").each(function(l){var o=KH.select(this),s=l[0].trace,u=rm.ensureSingle(o,"g","lines");if(!s.connector||!s.connector.visible){u.remove();return}var f=s.orientation==="h",c=s.connector.mode,h=u.selectAll("g.line").data(rm.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(p,y){if(!(y!==d-1&&!p.cNext)){var m=J0e(p,n,i,f),b=m[0],_=m[1],w="";b[0]!==If&&_[0]!==If&&b[1]!==If&&_[1]!==If&&(c==="spanning"&&!p.isSum&&y>0&&(f?w+="M"+b[0]+","+_[1]+"V"+_[0]:w+="M"+b[1]+","+_[0]+"H"+b[0]),c!=="between"&&(p.isSum||y{"use strict";var tm=kr(),eO=Br(),rO=xr(),$0e=pu().DESELECTDIM,K0e=ho(),Q0e=Ei().resizeText,j0e=K0e.styleTextPoints;function ehe(e,r,t){var a=t||tm.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");Q0e(e,a,"waterfall"),a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=tm.select(this),l=n[0].trace;i.selectAll(".point > path").each(function(o){if(!o.isBlank){var s=l[o.dir].marker;tm.select(this).call(rO.fill,s.color).call(rO.stroke,s.line.color).call(eO.dashLine,s.line.dash,s.line.width).style("opacity",l.selectedpoints&&!o.selected?$0e:1)}}),j0e(i,l,e),i.selectAll(".lines").each(function(){var o=l.connector.line;eO.lineGroupStyle(tm.select(this).selectAll("path"),o.width,o.color,o.dash)})})}tO.exports={style:ehe}});var sO=B((mbe,oO)=>{"use strict";var rhe=$r().hoverLabelText,nO=xr().opacity,the=e0().hoverOnBars,iO=Ff(),lO={increasing:iO.INCREASING.SYMBOL,decreasing:iO.DECREASING.SYMBOL};oO.exports=function(r,t,a,n,i){var l=the(r,t,a,n,i);if(!l)return;var o=l.cd,s=o[0].trace,u=s.orientation==="h",f=u?"x":"y",c=u?r.xa:r.ya;function h(k){return rhe(c,k,s[f+"hoverformat"])}var d=l.index,p=o[d],y=p.isSum?p.b+p.s:p.rawS;l.initial=p.b+p.s-y,l.delta=y,l.final=l.initial+l.delta;var m=h(Math.abs(l.delta));l.deltaLabel=y<0?"("+m+")":m,l.finalLabel=h(l.final),l.initialLabel=h(l.initial);var b=p.hi||s.hoverinfo,_=[];if(b&&b!=="none"&&b!=="skip"){var w=b==="all",x=b.split("+"),M=function(k){return w||x.indexOf(k)!==-1};p.isSum||(M("final")&&(u?!M("x"):!M("y"))&&_.push(l.finalLabel),M("delta")&&(y<0?_.push(l.deltaLabel+" "+lO.decreasing):_.push(l.deltaLabel+" "+lO.increasing)),M("initial")&&_.push("Initial: "+l.initialLabel))}return _.length&&(l.extraText=_.join("
")),l.color=ahe(s,p),[l]};function ahe(e,r){var t=e[r.dir].marker,a=t.color,n=t.line.color,i=t.line.width;if(nO(a))return a;if(nO(n)&&i)return n}});var fO=B((ybe,uO)=>{"use strict";uO.exports=function(r,t){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"initial"in t&&(r.initial=t.initial),"delta"in t&&(r.delta=t.delta),"final"in t&&(r.final=t.final),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var vO=B((gbe,cO)=>{"use strict";cO.exports={attributes:ib(),layoutAttributes:lb(),supplyDefaults:sb().supplyDefaults,crossTraceDefaults:sb().crossTraceDefaults,supplyLayoutDefaults:BH(),calc:XH(),crossTraceCalc:$H(),plot:jH(),style:aO().style,hoverPoints:sO(),eventData:fO(),selectPoints:r0(),moduleType:"trace",name:"waterfall",basePlotModule:gl(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var dO=B((xbe,hO)=>{"use strict";hO.exports=vO()});var nm=B((bbe,pO)=>{"use strict";var nhe=rn(),ihe=fo().attributes,lhe=jt(),ohe=zn(),she=_a().hovertemplateAttrs,uhe=_a().texttemplateAttrs,l0=mt().extendFlat,fhe=fi().pattern,am=lhe({editType:"plot",arrayOk:!0,colorEditType:"plot"});pO.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:ohe.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:fhe,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:l0({},nhe.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:she({},{keys:["label","color","value","percent","text"]}),texttemplate:uhe({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:l0({},am,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:l0({},am,{}),outsidetextfont:l0({},am,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:l0({},am,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:ihe({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var im=B((_be,gO)=>{"use strict";var che=zr(),o0=Pe(),vhe=nm(),hhe=fo().defaults,dhe=Ki().handleText,phe=Pe().coercePattern;function mO(e,r){var t=o0.isArrayOrTypedArray(e),a=o0.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,l=0;l0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function yO(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var l=a("marker.colors");phe(a,"marker.pattern",l),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function mhe(e,r,t,a){function n(_,w){return o0.coerce(e,r,vhe,_,w)}var i=n("labels"),l=n("values"),o=mO(i,l),s=o.len;if(r._hasLabels=o.hasLabels,r._hasValues=o.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,yO(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate"),c;if(f||(c=n("textinfo",o0.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),f||c&&c!=="none"){var h=n("textposition");dhe(e,r,a,n,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",p=d||h==="outside";p&&n("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&n("insidetextorientation")}else c==="none"&&n("textposition","none");hhe(r,a,n);var y=n("hole"),m=n("title.text");if(m){var b=n("title.position",y?"middle center":"top center");!y&&b==="middle center"&&(r.title.position="top center"),o0.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}gO.exports={handleLabelsAndValues:mO,handleMarkerDefaults:yO,supplyDefaults:mhe}});var lm=B((wbe,xO)=>{"use strict";xO.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var _O=B((Tbe,bO)=>{"use strict";var yhe=Pe(),ghe=lm();bO.exports=function(r,t){function a(n,i){return yhe.coerce(r,t,ghe,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var om=B((Mbe,MO)=>{"use strict";var xhe=zr(),cb=Rn(),bhe=xr(),_he={};function whe(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,l=r.marker.colors||[],o=r.values,s=r._length,u=r._hasValues&&s,f,c;if(r.dlabel)for(i=new Array(s),f=0;f=0});var x=r.type==="funnelarea"?y:r.sort;return x&&t.sort(function(M,k){return k.v-M.v}),t[0]&&(t[0].vTotal=p),t}function wO(e){return function(t,a){return!t||(t=cb(t),!t.isValid())?!1:(t=bhe.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function The(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],l=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=TO(i,_he));for(var o=0,s=0;s{"use strict";var Mhe=Hi().appendArrayMultiPointValues;AO.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),Mhe(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var db=B((kbe,XO)=>{"use strict";var pn=kr(),Ahe=St(),sm=gi(),EO=xr(),Al=Br(),ka=Pe(),khe=ka.strScale,qO=ka.strTranslate,vb=va(),PO=Ei(),qhe=PO.recordMinTextSize,Che=PO.clearMinTextSize,RO=Yp().TEXTPAD,Tr=$c(),um=kO(),CO=Pe().isValidTextValue;function Lhe(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;Che("pie",a),FO(r,e),UO(r,n);var i=ka.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=pn.select(this),s=l[0],u=s.trace;Ihe(l),o.attr("stroke-linejoin","round"),o.each(function(){var f=pn.select(this).selectAll("g.slice").data(l);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],h=!1;f.each(function(x,M){if(x.hidden){pn.select(this).selectAll("path,g").remove();return}x.pointNumber=x.i,x.curveNumber=u.index,c[x.pxmid[1]<0?0:1][x.pxmid[0]<0?0:1].push(x);var k=s.cx,A=s.cy,L=pn.select(this),D=L.selectAll("path.surface").data([x]);if(D.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),L.call(zO,e,l),u.pull){var E=+Tr.castOption(u.pull,x.pts)||0;E>0&&(k+=E*x.pxmid[0],A+=E*x.pxmid[1])}x.cxFinal=k,x.cyFinal=A;function R(O,G,J,$){var re=$*(G[0]-O[0]),le=$*(G[1]-O[1]);return"a"+$*s.r+","+$*s.r+" 0 "+x.largeArc+(J?" 1 ":" 0 ")+re+","+le}var N=u.hole;if(x.v===s.vTotal){var I="M"+(k+x.px0[0])+","+(A+x.px0[1])+R(x.px0,x.pxmid,!0,1)+R(x.pxmid,x.px0,!0,1)+"Z";N?D.attr("d","M"+(k+N*x.px0[0])+","+(A+N*x.px0[1])+R(x.px0,x.pxmid,!1,N)+R(x.pxmid,x.px0,!1,N)+"Z"+I):D.attr("d",I)}else{var H=R(x.px0,x.px1,!0,1);if(N){var V=1-N;D.attr("d","M"+(k+N*x.px1[0])+","+(A+N*x.px1[1])+R(x.px1,x.px0,!1,N)+"l"+V*x.px0[0]+","+V*x.px0[1]+H+"Z")}else D.attr("d","M"+k+","+A+"l"+x.px0[0]+","+x.px0[1]+H+"Z")}VO(e,x,s);var W=Tr.castOption(u.textposition,x.pts),Y=L.selectAll("g.slicetext").data(x.text&&W!=="none"?[0]:[]);Y.enter().append("g").classed("slicetext",!0),Y.exit().remove(),Y.each(function(){var O=ka.ensureSingle(pn.select(this),"text","",function(Q){Q.attr("data-notex",1)}),G=ka.ensureUniformFontSize(e,W==="outside"?Dhe(u,x,a.font):NO(u,x,a.font));O.text(x.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(Al.font,G).call(vb.convertToTspans,e);var J=Al.bBox(O.node()),$;if(W==="outside")$=DO(J,x);else if($=IO(J,x,s),W==="auto"&&$.scale<1){var re=ka.ensureUniformFontSize(e,u.outsidetextfont);O.call(Al.font,re),J=Al.bBox(O.node()),$=DO(J,x)}var le=$.textPosAngle,se=le===void 0?x.pxmid:fm(s.r,le);if($.targetX=k+se[0]*$.rCenter+($.x||0),$.targetY=A+se[1]*$.rCenter+($.y||0),WO($,J),$.outside){var ve=$.targetY;x.yLabelMin=ve-J.height/2,x.yLabelMid=ve,x.yLabelMax=ve+J.height/2,x.labelExtraX=0,x.labelExtraY=0,h=!0}$.fontSize=G.size,qhe(u.type,$,a),l[M].transform=$,ka.setTransormAndDisplay(O,$)})});var d=pn.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var x=ka.ensureSingle(pn.select(this),"text","",function(A){A.attr("data-notex",1)}),M=u.title.text;u._meta&&(M=ka.templateString(M,u._meta)),x.text(M).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(Al.font,u.title.font).call(vb.convertToTspans,e);var k;u.title.position==="middle center"?k=Rhe(s):k=YO(s,n),x.attr("transform",qO(k.x,k.y)+khe(Math.min(1,k.scale))+qO(k.tx,k.ty))}),h&&Nhe(c,u),She(f,u),h&&u.automargin){var p=Al.bBox(o.node()),y=u.domain,m=n.w*(y.x[1]-y.x[0]),b=n.h*(y.y[1]-y.y[0]),_=(.5*m-s.r)/n.w,w=(.5*b-s.r)/n.h;Ahe.autoMargin(e,"pie."+u.uid+".automargin",{xl:y.x[0]-_,xr:y.x[1]+_,yb:y.y[0]-w,yt:y.y[1]+w,l:Math.max(s.cx-s.r-p.left,0),r:Math.max(p.right-(s.cx+s.r),0),b:Math.max(p.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-p.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var l=pn.select(this);l.attr("dy")&&l.attr("dy",l.attr("dy"))})},0)}function She(e,r){e.each(function(t){var a=pn.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,ka.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],l=t.cyFinal+t.pxmid[1],o="M"+i+","+l,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?o+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):o+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else o+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;ka.ensureSingle(a,"path","textline").call(EO.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function zO(e,r,t){var a=t[0],n=a.cx,i=a.cy,l=a.trace,o=l.type==="funnelarea";"_hasHoverLabel"in l||(l._hasHoverLabel=!1),"_hasHoverEvent"in l||(l._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[l.index];if(!(r._dragging||u.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=sm.castHoverinfo({hoverinfo:[Tr.castOption(c,s.pts)],_module:l._module},u,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var h=s.rInscribed||0,d=n+s.pxmid[0]*(1-h),p=i+s.pxmid[1]*(1-h),y=u.separators,m=[];if(c&&c.indexOf("label")!==-1&&m.push(s.label),s.text=Tr.castOption(f.hovertext||f.text,s.pts),c&&c.indexOf("text")!==-1){var b=s.text;ka.isValidTextValue(b)&&m.push(b)}s.value=s.v,s.valueLabel=Tr.formatPieValue(s.v,y),c&&c.indexOf("value")!==-1&&m.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=Tr.formatPiePercent(s.percent,y),c&&c.indexOf("percent")!==-1&&m.push(s.percentLabel);var _=f.hoverlabel,w=_.font,x=[];sm.loneHover({trace:l,x0:d-h*a.r,x1:d+h*a.r,y:p,_x0:o?n+s.TL[0]:d-h*a.r,_x1:o?n+s.TR[0]:d+h*a.r,_y0:o?i+s.TL[1]:p-h*a.r,_y1:o?i+s.BL[1]:p+h*a.r,text:m.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:Tr.castOption(_.bgcolor,s.pts)||s.color,borderColor:Tr.castOption(_.bordercolor,s.pts),fontFamily:Tr.castOption(w.family,s.pts),fontSize:Tr.castOption(w.size,s.pts),fontColor:Tr.castOption(w.color,s.pts),nameLength:Tr.castOption(_.namelength,s.pts),textAlign:Tr.castOption(_.align,s.pts),hovertemplate:Tr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[um(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:x}),s.bbox=x[0],l._hasHoverLabel=!0}l._hasHoverEvent=!0,r.emit("plotly_hover",{points:[um(s,f)],event:pn.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[l.index],c=pn.select(this).datum();l._hasHoverEvent&&(s.originalEvent=pn.event,r.emit("plotly_unhover",{points:[um(c,f)],event:pn.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(sm.loneUnhover(u._hoverlayer.node()),l._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[l.index];r._dragging||u.hovermode===!1||(r._hoverdata=[um(s,f)],sm.click(r,pn.event))})}function Dhe(e,r,t){var a=Tr.castOption(e.outsidetextfont.color,r.pts)||Tr.castOption(e.textfont.color,r.pts)||t.color,n=Tr.castOption(e.outsidetextfont.family,r.pts)||Tr.castOption(e.textfont.family,r.pts)||t.family,i=Tr.castOption(e.outsidetextfont.size,r.pts)||Tr.castOption(e.textfont.size,r.pts)||t.size,l=Tr.castOption(e.outsidetextfont.weight,r.pts)||Tr.castOption(e.textfont.weight,r.pts)||t.weight,o=Tr.castOption(e.outsidetextfont.style,r.pts)||Tr.castOption(e.textfont.style,r.pts)||t.style,s=Tr.castOption(e.outsidetextfont.variant,r.pts)||Tr.castOption(e.textfont.variant,r.pts)||t.variant,u=Tr.castOption(e.outsidetextfont.textcase,r.pts)||Tr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Tr.castOption(e.outsidetextfont.lineposition,r.pts)||Tr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Tr.castOption(e.outsidetextfont.shadow,r.pts)||Tr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function NO(e,r,t){var a=Tr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=Tr.castOption(e._input.textfont.color,r.pts));var n=Tr.castOption(e.insidetextfont.family,r.pts)||Tr.castOption(e.textfont.family,r.pts)||t.family,i=Tr.castOption(e.insidetextfont.size,r.pts)||Tr.castOption(e.textfont.size,r.pts)||t.size,l=Tr.castOption(e.insidetextfont.weight,r.pts)||Tr.castOption(e.textfont.weight,r.pts)||t.weight,o=Tr.castOption(e.insidetextfont.style,r.pts)||Tr.castOption(e.textfont.style,r.pts)||t.style,s=Tr.castOption(e.insidetextfont.variant,r.pts)||Tr.castOption(e.textfont.variant,r.pts)||t.variant,u=Tr.castOption(e.insidetextfont.textcase,r.pts)||Tr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Tr.castOption(e.insidetextfont.lineposition,r.pts)||Tr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Tr.castOption(e.insidetextfont.shadow,r.pts)||Tr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||EO.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function FO(e,r){for(var t,a,n=0;n=-4;_-=2)b(Math.PI*_,"tan");for(_=4;_>=-4;_-=2)b(Math.PI*(_+1),"tan")}if(c||d){for(_=4;_>=-4;_-=2)b(Math.PI*(_+1.5),"rad");for(_=4;_>=-4;_-=2)b(Math.PI*(_+.5),"rad")}}if(o||p||c){var w=Math.sqrt(e.width*e.width+e.height*e.height);if(m={scale:n*a*2/w,rCenter:1-n,rotate:0},m.textPosAngle=(r.startangle+r.stopangle)/2,m.scale>=1)return m;y.push(m)}(p||d)&&(m=LO(e,a,l,s,u),m.textPosAngle=(r.startangle+r.stopangle)/2,y.push(m)),(p||h)&&(m=SO(e,a,l,s,u),m.textPosAngle=(r.startangle+r.stopangle)/2,y.push(m));for(var x=0,M=0,k=0;k=1)break}return y[x]}function Ehe(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function Rhe(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function YO(e,r){var t=1,a=1,n,i=e.trace,l={x:e.cx,y:e.cy},o={tx:0,ty:0};o.ty+=i.title.font.size,n=GO(i),i.title.position.indexOf("top")!==-1?(l.y-=(1+n)*e.r,o.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(l.y+=(1+n)*e.r);var s=zhe(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,l.x-=(1+n)*s,o.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,l.x+=(1+n)*s,o.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=hb(e,r)/e.titleBox.height,{x:l.x,y:l.y,scale:Math.min(t,a),tx:o.tx,ty:o.ty}}function zhe(e,r){return e/(r===void 0?1:r)}function hb(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function GO(e){var r=e.pull;if(!r)return 0;var t;if(ka.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function Nhe(e,r){var t,a,n,i,l,o,s,u,f,c,h,d,p;function y(w,x){return w.pxmid[1]-x.pxmid[1]}function m(w,x){return x.pxmid[1]-w.pxmid[1]}function b(w,x){x||(x={});var M=x.labelExtraY+(a?x.yLabelMax:x.yLabelMin),k=a?w.yLabelMin:w.yLabelMax,A=a?w.yLabelMax:w.yLabelMin,L=w.cyFinal+l(w.px0[1],w.px1[1]),D=M-k,E,R,N,I,H,V;if(D*s>0&&(w.labelExtraY=D),!!ka.isArrayOrTypedArray(r.pull))for(R=0;R=(Tr.castOption(r.pull,N.pts)||0))&&((w.pxmid[1]-N.pxmid[1])*s>0?(I=N.cyFinal+l(N.px0[1],N.px1[1]),D=I-k-w.labelExtraY,D*s>0&&(w.labelExtraY+=D)):(A+w.labelExtraY-L)*s>0&&(E=3*o*Math.abs(R-c.indexOf(w)),H=N.cxFinal+i(N.px0[0],N.px1[0]),V=H+E-(w.cxFinal+w.pxmid[0])-w.labelExtraX,V*o>0&&(w.labelExtraX+=V)))}for(a=0;a<2;a++)for(n=a?y:m,l=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,o=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],c=f.concat(u),d=[],h=0;h1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}l=Math.min(l,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=Phe(u,r))}function fm(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function VO(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,l=n.textinfo;if(!i&&l&&l!=="none"){var o=l.split("+"),s=function(x){return o.indexOf(x)!==-1},u=s("label"),f=s("text"),c=s("value"),h=s("percent"),d=a.separators,p;if(p=u?[r.label]:[],f){var y=Tr.getFirstFilled(n.text,r.pts);CO(y)&&p.push(y)}c&&p.push(Tr.formatPieValue(r.v,d)),h&&p.push(Tr.formatPiePercent(r.v/t.vTotal,d)),r.text=p.join("
")}function m(x){return{label:x.label,value:x.v,valueLabel:Tr.formatPieValue(x.v,a.separators),percent:x.v/t.vTotal,percentLabel:Tr.formatPiePercent(x.v/t.vTotal,a.separators),color:x.color,text:x.text,customdata:ka.castOption(n,x.i,"customdata")}}if(i){var b=ka.castOption(n,r.i,"texttemplate");if(!b)r.text="";else{var _=m(r),w=Tr.getFirstFilled(n.text,r.pts);(CO(w)||w==="")&&(_.text=w),r.text=ka.texttemplateString(b,_,e._fullLayout._d3locale,_,n._meta||{})}}}function WO(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,l=(r.top+r.bottom)/2;e.textX=i*a-l*n,e.textY=i*n+l*a,e.noCenter=!0}XO.exports={plot:Lhe,formatSliceLabel:VO,transformInsideText:IO,determineInsideTextFont:NO,positionTitleOutside:YO,prerenderTitles:FO,layoutAreas:UO,attachFxHandlers:zO,computeTransform:WO}});var $O=B((qbe,JO)=>{"use strict";var ZO=kr(),Hhe=Uu(),Ohe=Ei().resizeText;JO.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");Ohe(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=ZO.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){ZO.select(this).call(Hhe,o,i,r)})})}});var QO=B(Hf=>{"use strict";var KO=St();Hf.name="pie";Hf.plot=function(e,r,t,a){KO.plotBasePlot(Hf.name,e,r,t,a)};Hf.clean=function(e,r,t,a){KO.cleanBasePlot(Hf.name,e,r,t,a)}});var eB=B((Lbe,jO)=>{"use strict";jO.exports={attributes:nm(),supplyDefaults:im().supplyDefaults,supplyLayoutDefaults:_O(),layoutAttributes:lm(),calc:om().calc,crossTraceCalc:om().crossTraceCalc,plot:db().plot,style:$O(),styleOne:Uu(),moduleType:"trace",name:"pie",basePlotModule:QO(),categories:["pie-like","pie","showLegend"],meta:{}}});var tB=B((Sbe,rB)=>{"use strict";rB.exports=eB()});var nB=B(Of=>{"use strict";var aB=St();Of.name="funnelarea";Of.plot=function(e,r,t,a){aB.plotBasePlot(Of.name,e,r,t,a)};Of.clean=function(e,r,t,a){aB.cleanBasePlot(Of.name,e,r,t,a)}});var pb=B((Ebe,iB)=>{"use strict";var qa=nm(),Bhe=rn(),Yhe=fo().attributes,Ghe=_a().hovertemplateAttrs,Uhe=_a().texttemplateAttrs,zs=mt().extendFlat;iB.exports={labels:qa.labels,label0:qa.label0,dlabel:qa.dlabel,values:qa.values,marker:{colors:qa.marker.colors,line:{color:zs({},qa.marker.line.color,{dflt:null}),width:zs({},qa.marker.line.width,{dflt:1}),editType:"calc"},pattern:qa.marker.pattern,editType:"calc"},text:qa.text,hovertext:qa.hovertext,scalegroup:zs({},qa.scalegroup,{}),textinfo:zs({},qa.textinfo,{flags:["label","text","value","percent"]}),texttemplate:Uhe({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:zs({},Bhe.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Ghe({},{keys:["label","color","value","text","percent"]}),textposition:zs({},qa.textposition,{values:["inside","none"],dflt:"inside"}),textfont:qa.textfont,insidetextfont:qa.insidetextfont,title:{text:qa.title.text,font:qa.title.font,position:zs({},qa.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:Yhe({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}});var mb=B((Pbe,lB)=>{"use strict";var Vhe=lm().hiddenlabels;lB.exports={hiddenlabels:Vhe,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var uB=B((Rbe,sB)=>{"use strict";var oB=Pe(),Whe=pb(),Xhe=fo().defaults,Zhe=Ki().handleText,Jhe=im().handleLabelsAndValues,$he=im().handleMarkerDefaults;sB.exports=function(r,t,a,n){function i(y,m){return oB.coerce(r,t,Whe,y,m)}var l=i("labels"),o=i("values"),s=Jhe(l,o),u=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(i("label0"),i("dlabel")),!u){t.visible=!1;return}t._length=u,$he(r,t,n,i),i("scalegroup");var f=i("text"),c=i("texttemplate"),h;if(c||(h=i("textinfo",Array.isArray(f)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),c||h&&h!=="none"){var d=i("textposition");Zhe(r,t,n,i,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&i("textposition","none");Xhe(t,n,i);var p=i("title.text");p&&(i("title.position"),oB.coerceFont(i,"title.font",n.font)),i("aspectratio"),i("baseratio")}});var cB=B((zbe,fB)=>{"use strict";var Khe=Pe(),Qhe=mb();fB.exports=function(r,t){function a(n,i){return Khe.coerce(r,t,Qhe,n,i)}a("hiddenlabels"),a("funnelareacolorway",t.colorway),a("extendfunnelareacolors")}});var yb=B((Nbe,hB)=>{"use strict";var vB=om();function jhe(e,r){return vB.calc(e,r)}function ede(e){vB.crossTraceCalc(e,{type:"funnelarea"})}hB.exports={calc:jhe,crossTraceCalc:ede}});var gB=B((Fbe,yB)=>{"use strict";var Ns=kr(),gb=Br(),go=Pe(),rde=go.strScale,dB=go.strTranslate,pB=va(),tde=Ef(),ade=tde.toMoveInsideBar,mB=Ei(),nde=mB.recordMinTextSize,ide=mB.clearMinTextSize,lde=$c(),Bf=db(),ode=Bf.attachFxHandlers,sde=Bf.determineInsideTextFont,ude=Bf.layoutAreas,fde=Bf.prerenderTitles,cde=Bf.positionTitleOutside,vde=Bf.formatSliceLabel;yB.exports=function(r,t){var a=r._context.staticPlot,n=r._fullLayout;ide("funnelarea",n),fde(t,r),ude(t,n._size),go.makeTraceGroups(n._funnelarealayer,t,"trace").each(function(i){var l=Ns.select(this),o=i[0],s=o.trace;dde(i),l.each(function(){var u=Ns.select(this).selectAll("g.slice").data(i);u.enter().append("g").classed("slice",!0),u.exit().remove(),u.each(function(c,h){if(c.hidden){Ns.select(this).selectAll("path,g").remove();return}c.pointNumber=c.i,c.curveNumber=s.index;var d=o.cx,p=o.cy,y=Ns.select(this),m=y.selectAll("path.surface").data([c]);m.enter().append("path").classed("surface",!0).style({"pointer-events":a?"none":"all"}),y.call(ode,r,i);var b="M"+(d+c.TR[0])+","+(p+c.TR[1])+xb(c.TR,c.BR)+xb(c.BR,c.BL)+xb(c.BL,c.TL)+"Z";m.attr("d",b),vde(r,c,o);var _=lde.castOption(s.textposition,c.pts),w=y.selectAll("g.slicetext").data(c.text&&_!=="none"?[0]:[]);w.enter().append("g").classed("slicetext",!0),w.exit().remove(),w.each(function(){var x=go.ensureSingle(Ns.select(this),"text","",function(N){N.attr("data-notex",1)}),M=go.ensureUniformFontSize(r,sde(s,c,n.font));x.text(c.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(gb.font,M).call(pB.convertToTspans,r);var k=gb.bBox(x.node()),A,L,D,E=Math.min(c.BL[1],c.BR[1])+p,R=Math.max(c.TL[1],c.TR[1])+p;L=Math.max(c.TL[0],c.BL[0])+d,D=Math.min(c.TR[0],c.BR[0])+d,A=ade(L,D,E,R,k,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),A.fontSize=M.size,nde(s.type,A,n),i[h].transform=A,go.setTransormAndDisplay(x,A)})});var f=Ns.select(this).selectAll("g.titletext").data(s.title.text?[0]:[]);f.enter().append("g").classed("titletext",!0),f.exit().remove(),f.each(function(){var c=go.ensureSingle(Ns.select(this),"text","",function(p){p.attr("data-notex",1)}),h=s.title.text;s._meta&&(h=go.templateString(h,s._meta)),c.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(gb.font,s.title.font).call(pB.convertToTspans,r);var d=cde(o,n._size);c.attr("transform",dB(d.x,d.y)+rde(Math.min(1,d.scale))+dB(d.tx,d.ty))})})})};function xb(e,r){var t=r[0]-e[0],a=r[1]-e[1];return"l"+t+","+a}function hde(e,r){return[.5*(e[0]+r[0]),.5*(e[1]+r[1])]}function dde(e){if(!e.length)return;var r=e[0],t=r.trace,a=t.aspectratio,n=t.baseratio;n>.999&&(n=.999);var i=Math.pow(n,2),l=r.vTotal,o=l*i/(1-i),s=l,u=o/l;function f(){var I=Math.sqrt(u);return{x:I,y:-I}}function c(){var I=f();return[I.x,I.y]}var h,d=[];d.push(c());var p,y;for(p=e.length-1;p>-1;p--)if(y=e[p],!y.hidden){var m=y.v/s;u+=m,d.push(c())}var b=1/0,_=-1/0;for(p=0;p-1;p--)if(y=e[p],!y.hidden){E+=1;var R=d[E][0],N=d[E][1];y.TL=[-R,N],y.TR=[R,N],y.BL=L,y.BR=D,y.pxmid=hde(y.TR,y.BR),L=y.TL,D=y.TR}}});var _B=B((Ibe,bB)=>{"use strict";var xB=kr(),pde=Uu(),mde=Ei().resizeText;bB.exports=function(r){var t=r._fullLayout._funnelarealayer.selectAll(".trace");mde(r,t,"funnelarea"),t.each(function(a){var n=a[0],i=n.trace,l=xB.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){xB.select(this).call(pde,o,i,r)})})}});var TB=B((Hbe,wB)=>{"use strict";wB.exports={moduleType:"trace",name:"funnelarea",basePlotModule:nB(),categories:["pie-like","funnelarea","showLegend"],attributes:pb(),layoutAttributes:mb(),supplyDefaults:uB(),supplyLayoutDefaults:cB(),calc:yb().calc,crossTraceCalc:yb().crossTraceCalc,plot:gB(),style:_B(),styleOne:Uu(),meta:{}}});var AB=B((Obe,MB)=>{"use strict";MB.exports=TB()});var qB=B(Yf=>{"use strict";var kB=St();Yf.name="indicator";Yf.plot=function(e,r,t,a){kB.plotBasePlot(Yf.name,e,r,t,a)};Yf.clean=function(e,r,t,a){kB.cleanBasePlot(Yf.name,e,r,t,a)}});var _b=B((Ybe,PB)=>{"use strict";var xo=mt().extendFlat,LB=mt().extendDeep,yde=ui().overrideAll,SB=jt(),DB=zn(),gde=fo().attributes,Ct=xn(),xde=ot().templatedArray,cm=Ff(),CB=di().descriptionOnlyNumbers,bb=SB({editType:"plot",colorEditType:"plot"}),s0={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:DB.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},EB={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},bde=xde("step",LB({},s0,{range:EB}));PB.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:gde({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:xo({},bb,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:CB("value")},font:xo({},bb,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:CB("value")},increasing:{symbol:{valType:"string",dflt:cm.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:cm.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:cm.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:cm.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:xo({},bb,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:LB({},s0,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:DB.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:yde({range:EB,visible:xo({},Ct.visible,{dflt:!0}),tickmode:Ct.minor.tickmode,nticks:Ct.nticks,tick0:Ct.tick0,dtick:Ct.dtick,tickvals:Ct.tickvals,ticktext:Ct.ticktext,ticks:xo({},Ct.ticks,{dflt:"outside"}),ticklen:Ct.ticklen,tickwidth:Ct.tickwidth,tickcolor:Ct.tickcolor,ticklabelstep:Ct.ticklabelstep,showticklabels:Ct.showticklabels,labelalias:Ct.labelalias,tickfont:SB({}),tickangle:Ct.tickangle,tickformat:Ct.tickformat,tickformatstops:Ct.tickformatstops,tickprefix:Ct.tickprefix,showtickprefix:Ct.showtickprefix,ticksuffix:Ct.ticksuffix,showticksuffix:Ct.showticksuffix,separatethousands:Ct.separatethousands,exponentformat:Ct.exponentformat,minexponent:Ct.minexponent,showexponent:Ct.showexponent,editType:"plot"},"plot"),steps:bde,threshold:{line:{color:xo({},s0.line.color,{}),width:xo({},s0.line.width,{dflt:1}),editType:"plot"},thickness:xo({},s0.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var wb=B((Gbe,RB)=>{"use strict";RB.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var FB=B((Ube,NB)=>{"use strict";var ji=Pe(),hm=_b(),_de=fo().defaults,zB=ot(),wde=On(),vm=wb(),Tde=Kh(),Mde=Qh(),Ade=ed(),kde=rd();function qde(e,r,t,a){function n(k,A){return ji.coerce(e,r,hm,k,A)}_de(r,a,n),n("mode"),r._hasNumber=r.mode.indexOf("number")!==-1,r._hasDelta=r.mode.indexOf("delta")!==-1,r._hasGauge=r.mode.indexOf("gauge")!==-1;var i=n("value");r._range=[0,typeof i=="number"?1.5*i:1];var l=new Array(2),o;if(r._hasNumber){n("number.valueformat");var s=ji.extendFlat({},a.font);s.size=void 0,ji.coerceFont(n,"number.font",s),r.number.font.size===void 0&&(r.number.font.size=vm.defaultNumberFontSize,l[0]=!0),n("number.prefix"),n("number.suffix"),o=r.number.font.size}var u;if(r._hasDelta){var f=ji.extendFlat({},a.font);f.size=void 0,ji.coerceFont(n,"delta.font",f),r.delta.font.size===void 0&&(r.delta.font.size=(r._hasNumber?.5:1)*(o||vm.defaultNumberFontSize),l[1]=!0),n("delta.reference",r.value),n("delta.relative"),n("delta.valueformat",r.delta.relative?"2%":""),n("delta.increasing.symbol"),n("delta.increasing.color"),n("delta.decreasing.symbol"),n("delta.decreasing.color"),n("delta.position"),n("delta.prefix"),n("delta.suffix"),u=r.delta.font.size}r._scaleNumbers=(!r._hasNumber||l[0])&&(!r._hasDelta||l[1])||!1;var c=ji.extendFlat({},a.font);c.size=.25*(o||u||vm.defaultNumberFontSize),ji.coerceFont(n,"title.font",c),n("title.text");var h,d,p,y;function m(k,A){return ji.coerce(h,d,hm.gauge,k,A)}function b(k,A){return ji.coerce(p,y,hm.gauge.axis,k,A)}if(r._hasGauge){h=e.gauge,h||(h={}),d=zB.newContainer(r,"gauge"),m("shape");var _=r._isBullet=r.gauge.shape==="bullet";_||n("title.align","center");var w=r._isAngular=r.gauge.shape==="angular";w||n("align","center"),m("bgcolor",a.paper_bgcolor),m("borderwidth"),m("bordercolor"),m("bar.color"),m("bar.line.color"),m("bar.line.width");var x=vm.valueThickness*(r.gauge.shape==="bullet"?.5:1);m("bar.thickness",x),wde(h,d,{name:"steps",handleItemDefaults:Cde}),m("threshold.value"),m("threshold.thickness"),m("threshold.line.width"),m("threshold.line.color"),p={},h&&(p=h.axis||{}),y=zB.newContainer(d,"axis"),b("visible"),r._range=b("range",r._range);var M={font:a.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};Tde(p,y,b,"linear"),kde(p,y,b,"linear",M),Ade(p,y,b,"linear",M),Mde(p,y,b,M)}else n("title.align","center"),n("align","center"),r._isAngular=r._isBullet=!1;r._length=null}function Cde(e,r){function t(a,n){return ji.coerce(e,r,hm.gauge.steps,a,n)}t("color"),t("line.color"),t("line.width"),t("range"),t("thickness")}NB.exports={supplyDefaults:qde}});var HB=B((Vbe,IB)=>{"use strict";function Lde(e,r){var t=[],a=r.value;typeof r._lastValue!="number"&&(r._lastValue=r.value);var n=r._lastValue,i=n;return r._hasDelta&&typeof r.delta.reference=="number"&&(i=r.delta.reference),t[0]={y:a,lastY:n,delta:a-i,relativeDelta:(a-i)/i},t}IB.exports={calc:Lde}});function kl(e,r,t){e.prototype=r.prototype=t,t.constructor=e}function bo(e,r){var t=Object.create(e.prototype);for(var a in r)t[a]=r[a];return t}var dm=nt(()=>{});function rl(){}function BB(){return this.rgb().formatHex()}function Fde(){return this.rgb().formatHex8()}function Ide(){return ZB(this).formatHsl()}function YB(){return this.rgb().formatRgb()}function wo(e){var r,t;return e=(e+"").trim().toLowerCase(),(r=Sde.exec(e))?(t=r[1].length,r=parseInt(r[1],16),t===6?GB(r):t===3?new la(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):t===8?pm(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):t===4?pm(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=Dde.exec(e))?new la(r[1],r[2],r[3],1):(r=Ede.exec(e))?new la(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=Pde.exec(e))?pm(r[1],r[2],r[3],r[4]):(r=Rde.exec(e))?pm(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=zde.exec(e))?WB(r[1],r[2]/100,r[3]/100,1):(r=Nde.exec(e))?WB(r[1],r[2]/100,r[3]/100,r[4]):OB.hasOwnProperty(e)?GB(OB[e]):e==="transparent"?new la(NaN,NaN,NaN,0):null}function GB(e){return new la(e>>16&255,e>>8&255,e&255,1)}function pm(e,r,t,a){return a<=0&&(e=r=t=NaN),new la(e,r,t,a)}function f0(e){return e instanceof rl||(e=wo(e)),e?(e=e.rgb(),new la(e.r,e.g,e.b,e.opacity)):new la}function Uf(e,r,t,a){return arguments.length===1?f0(e):new la(e,r,t,a==null?1:a)}function la(e,r,t,a){this.r=+e,this.g=+r,this.b=+t,this.opacity=+a}function UB(){return`#${Fs(this.r)}${Fs(this.g)}${Fs(this.b)}`}function Hde(){return`#${Fs(this.r)}${Fs(this.g)}${Fs(this.b)}${Fs((isNaN(this.opacity)?1:this.opacity)*255)}`}function VB(){let e=ym(this.opacity);return`${e===1?"rgb(":"rgba("}${Is(this.r)}, ${Is(this.g)}, ${Is(this.b)}${e===1?")":`, ${e})`}`}function ym(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Is(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fs(e){return e=Is(e),(e<16?"0":"")+e.toString(16)}function WB(e,r,t,a){return a<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new Pi(e,r,t,a)}function ZB(e){if(e instanceof Pi)return new Pi(e.h,e.s,e.l,e.opacity);if(e instanceof rl||(e=wo(e)),!e)return new Pi;if(e instanceof Pi)return e;e=e.rgb();var r=e.r/255,t=e.g/255,a=e.b/255,n=Math.min(r,t,a),i=Math.max(r,t,a),l=NaN,o=i-n,s=(i+n)/2;return o?(r===i?l=(t-a)/o+(t0&&s<1?0:l,new Pi(l,o,s,e.opacity)}function c0(e,r,t,a){return arguments.length===1?ZB(e):new Pi(e,r,t,a==null?1:a)}function Pi(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}function XB(e){return e=(e||0)%360,e<0?e+360:e}function mm(e){return Math.max(0,Math.min(1,e||0))}function Tb(e,r,t){return(e<60?r+(t-r)*e/60:e<180?t:e<240?r+(t-r)*(240-e)/60:r)*255}var _o,Hs,Gf,u0,el,Sde,Dde,Ede,Pde,Rde,zde,Nde,OB,gm=nt(()=>{dm();_o=.7,Hs=1/_o,Gf="\\s*([+-]?\\d+)\\s*",u0="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",el="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Sde=/^#([0-9a-f]{3,8})$/,Dde=new RegExp(`^rgb\\(${Gf},${Gf},${Gf}\\)$`),Ede=new RegExp(`^rgb\\(${el},${el},${el}\\)$`),Pde=new RegExp(`^rgba\\(${Gf},${Gf},${Gf},${u0}\\)$`),Rde=new RegExp(`^rgba\\(${el},${el},${el},${u0}\\)$`),zde=new RegExp(`^hsl\\(${u0},${el},${el}\\)$`),Nde=new RegExp(`^hsla\\(${u0},${el},${el},${u0}\\)$`),OB={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};kl(rl,wo,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:BB,formatHex:BB,formatHex8:Fde,formatHsl:Ide,formatRgb:YB,toString:YB});kl(la,Uf,bo(rl,{brighter(e){return e=e==null?Hs:Math.pow(Hs,e),new la(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?_o:Math.pow(_o,e),new la(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new la(Is(this.r),Is(this.g),Is(this.b),ym(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:UB,formatHex:UB,formatHex8:Hde,formatRgb:VB,toString:VB}));kl(Pi,c0,bo(rl,{brighter(e){return e=e==null?Hs:Math.pow(Hs,e),new Pi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?_o:Math.pow(_o,e),new Pi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,a=t+(t<.5?t:1-t)*r,n=2*t-a;return new la(Tb(e>=240?e-240:e+120,n,a),Tb(e,n,a),Tb(e<120?e+240:e-120,n,a),this.opacity)},clamp(){return new Pi(XB(this.h),mm(this.s),mm(this.l),ym(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=ym(this.opacity);return`${e===1?"hsl(":"hsla("}${XB(this.h)}, ${mm(this.s)*100}%, ${mm(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var xm,bm,Mb=nt(()=>{xm=Math.PI/180,bm=180/Math.PI});function eY(e){if(e instanceof tl)return new tl(e.l,e.a,e.b,e.opacity);if(e instanceof ql)return rY(e);e instanceof la||(e=f0(e));var r=Cb(e.r),t=Cb(e.g),a=Cb(e.b),n=Ab((.2225045*r+.7168786*t+.0606169*a)/$B),i,l;return r===t&&t===a?i=l=n:(i=Ab((.4360747*r+.3850649*t+.1430804*a)/JB),l=Ab((.0139322*r+.0971045*t+.7141733*a)/KB)),new tl(116*n-16,500*(i-n),200*(n-l),e.opacity)}function Wf(e,r,t,a){return arguments.length===1?eY(e):new tl(e,r,t,a==null?1:a)}function tl(e,r,t,a){this.l=+e,this.a=+r,this.b=+t,this.opacity=+a}function Ab(e){return e>Ode?Math.pow(e,1/3):e/jB+QB}function kb(e){return e>Vf?e*e*e:jB*(e-QB)}function qb(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Cb(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Bde(e){if(e instanceof ql)return new ql(e.h,e.c,e.l,e.opacity);if(e instanceof tl||(e=eY(e)),e.a===0&&e.b===0)return new ql(NaN,0{dm();gm();Mb();_m=18,JB=.96422,$B=1,KB=.82521,QB=4/29,Vf=6/29,jB=3*Vf*Vf,Ode=Vf*Vf*Vf;kl(tl,Wf,bo(rl,{brighter(e){return new tl(this.l+_m*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new tl(this.l-_m*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,t=isNaN(this.b)?e:e-this.b/200;return r=JB*kb(r),e=$B*kb(e),t=KB*kb(t),new la(qb(3.1338561*r-1.6168667*e-.4906146*t),qb(-.9787684*r+1.9161415*e+.033454*t),qb(.0719453*r-.2289914*e+1.4052427*t),this.opacity)}}));kl(ql,v0,bo(rl,{brighter(e){return new ql(this.h,this.c,this.l+_m*(e==null?1:e),this.opacity)},darker(e){return new ql(this.h,this.c,this.l-_m*(e==null?1:e),this.opacity)},rgb(){return rY(this).rgb()}}))});function Yde(e){if(e instanceof Os)return new Os(e.h,e.s,e.l,e.opacity);e instanceof la||(e=f0(e));var r=e.r/255,t=e.g/255,a=e.b/255,n=(iY*a+aY*r-nY*t)/(iY+aY-nY),i=a-n,l=(h0*(t-n)-Sb*i)/wm,o=Math.sqrt(l*l+i*i)/(h0*n*(1-n)),s=o?Math.atan2(l,i)*bm-120:NaN;return new Os(s<0?s+360:s,o,n,e.opacity)}function Xf(e,r,t,a){return arguments.length===1?Yde(e):new Os(e,r,t,a==null?1:a)}function Os(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}var lY,Lb,Sb,wm,h0,aY,nY,iY,oY=nt(()=>{dm();gm();Mb();lY=-.14861,Lb=1.78277,Sb=-.29227,wm=-.90649,h0=1.97294,aY=h0*wm,nY=h0*Lb,iY=Lb*Sb-wm*lY;kl(Os,Xf,bo(rl,{brighter(e){return e=e==null?Hs:Math.pow(Hs,e),new Os(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?_o:Math.pow(_o,e),new Os(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*xm,r=+this.l,t=isNaN(this.s)?0:this.s*r*(1-r),a=Math.cos(e),n=Math.sin(e);return new la(255*(r+t*(lY*a+Lb*n)),255*(r+t*(Sb*a+wm*n)),255*(r+t*(h0*a)),this.opacity)}}))});var Bs=nt(()=>{gm();tY();oY()});function Db(e,r,t,a,n){var i=e*e,l=i*e;return((1-3*e+3*i-l)*r+(4-6*i+3*l)*t+(1+3*e+3*i-3*l)*a+l*n)/6}function Tm(e){var r=e.length-1;return function(t){var a=t<=0?t=0:t>=1?(t=1,r-1):Math.floor(t*r),n=e[a],i=e[a+1],l=a>0?e[a-1]:2*n-i,o=a{});function Am(e){var r=e.length;return function(t){var a=Math.floor(((t%=1)<0?++t:t)*r),n=e[(a+r-1)%r],i=e[a%r],l=e[(a+1)%r],o=e[(a+2)%r];return Db((t-a/r)*r,n,i,l,o)}}var Eb=nt(()=>{Mm()});var Zf,Pb=nt(()=>{Zf=e=>()=>e});function sY(e,r){return function(t){return e+t*r}}function Gde(e,r,t){return e=Math.pow(e,t),r=Math.pow(r,t)-e,t=1/t,function(a){return Math.pow(e+a*r,t)}}function To(e,r){var t=r-e;return t?sY(e,t>180||t<-180?t-360*Math.round(t/360):t):Zf(isNaN(e)?r:e)}function uY(e){return(e=+e)==1?zt:function(r,t){return t-r?Gde(r,t,e):Zf(isNaN(r)?t:r)}}function zt(e,r){var t=r-e;return t?sY(e,t):Zf(isNaN(e)?r:e)}var Ys=nt(()=>{Pb()});function fY(e){return function(r){var t=r.length,a=new Array(t),n=new Array(t),i=new Array(t),l,o;for(l=0;l{Bs();Mm();Eb();Ys();d0=function e(r){var t=uY(r);function a(n,i){var l=t((n=Uf(n)).r,(i=Uf(i)).r),o=t(n.g,i.g),s=t(n.b,i.b),u=zt(n.opacity,i.opacity);return function(f){return n.r=l(f),n.g=o(f),n.b=s(f),n.opacity=u(f),n+""}}return a.gamma=e,a}(1);cY=fY(Tm),vY=fY(Am)});function Jf(e,r){r||(r=[]);var t=e?Math.min(r.length,e.length):0,a=r.slice(),n;return function(i){for(n=0;n{});function hY(e,r){return(km(r)?Jf:zb)(e,r)}function zb(e,r){var t=r?r.length:0,a=e?Math.min(t,e.length):0,n=new Array(a),i=new Array(t),l;for(l=0;l{p0();qm()});function Cm(e,r){var t=new Date;return e=+e,r=+r,function(a){return t.setTime(e*(1-a)+r*a),t}}var Fb=nt(()=>{});function mn(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}var m0=nt(()=>{});function Lm(e,r){var t={},a={},n;(e===null||typeof e!="object")&&(e={}),(r===null||typeof r!="object")&&(r={});for(n in r)n in e?t[n]=Mo(e[n],r[n]):a[n]=r[n];return function(i){for(n in t)a[n]=t[n](i);return a}}var Ib=nt(()=>{p0()});function Ude(e){return function(){return e}}function Vde(e){return function(r){return e(r)+""}}function Sm(e,r){var t=Ob.lastIndex=Hb.lastIndex=0,a,n,i,l=-1,o=[],s=[];for(e=e+"",r=r+"";(a=Ob.exec(e))&&(n=Hb.exec(r));)(i=n.index)>t&&(i=r.slice(t,i),o[l]?o[l]+=i:o[++l]=i),(a=a[0])===(n=n[0])?o[l]?o[l]+=n:o[++l]=n:(o[++l]=null,s.push({i:l,x:mn(a,n)})),t=Hb.lastIndex;return t{m0();Ob=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Hb=new RegExp(Ob.source,"g")});function Mo(e,r){var t=typeof r,a;return r==null||t==="boolean"?Zf(r):(t==="number"?mn:t==="string"?(a=wo(r))?(r=a,d0):Sm:r instanceof wo?d0:r instanceof Date?Cm:km(r)?Jf:Array.isArray(r)?zb:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Lm:mn)(e,r)}var p0=nt(()=>{Bs();Rb();Nb();Fb();m0();Ib();Bb();Pb();qm()});function dY(e){var r=e.length;return function(t){return e[Math.max(0,Math.min(r-1,Math.floor(t*r)))]}}var pY=nt(()=>{});function mY(e,r){var t=To(+e,+r);return function(a){var n=t(a);return n-360*Math.floor(n/360)}}var yY=nt(()=>{Ys()});function gY(e,r){return e=+e,r=+r,function(t){return Math.round(e*(1-t)+r*t)}}var xY=nt(()=>{});function Yb(e,r,t,a,n,i){var l,o,s;return(l=Math.sqrt(e*e+r*r))&&(e/=l,r/=l),(s=e*t+r*a)&&(t-=e*s,a-=r*s),(o=Math.sqrt(t*t+a*a))&&(t/=o,a/=o,s/=o),e*a{bY=180/Math.PI,Dm={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function wY(e){let r=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return r.isIdentity?Dm:Yb(r.a,r.b,r.c,r.d,r.e,r.f)}function TY(e){return e==null?Dm:(Em||(Em=document.createElementNS("http://www.w3.org/2000/svg","g")),Em.setAttribute("transform",e),(e=Em.transform.baseVal.consolidate())?(e=e.matrix,Yb(e.a,e.b,e.c,e.d,e.e,e.f)):Dm)}var Em,MY=nt(()=>{_Y()});function AY(e,r,t,a){function n(u){return u.length?u.pop()+" ":""}function i(u,f,c,h,d,p){if(u!==c||f!==h){var y=d.push("translate(",null,r,null,t);p.push({i:y-4,x:mn(u,c)},{i:y-2,x:mn(f,h)})}else(c||h)&&d.push("translate("+c+r+h+t)}function l(u,f,c,h){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),h.push({i:c.push(n(c)+"rotate(",null,a)-2,x:mn(u,f)})):f&&c.push(n(c)+"rotate("+f+a)}function o(u,f,c,h){u!==f?h.push({i:c.push(n(c)+"skewX(",null,a)-2,x:mn(u,f)}):f&&c.push(n(c)+"skewX("+f+a)}function s(u,f,c,h,d,p){if(u!==c||f!==h){var y=d.push(n(d)+"scale(",null,",",null,")");p.push({i:y-4,x:mn(u,c)},{i:y-2,x:mn(f,h)})}else(c!==1||h!==1)&&d.push(n(d)+"scale("+c+","+h+")")}return function(u,f){var c=[],h=[];return u=e(u),f=e(f),i(u.translateX,u.translateY,f.translateX,f.translateY,c,h),l(u.rotate,f.rotate,c,h),o(u.skewX,f.skewX,c,h),s(u.scaleX,u.scaleY,f.scaleX,f.scaleY,c,h),u=f=null,function(d){for(var p=-1,y=h.length,m;++p{m0();MY();kY=AY(wY,"px, ","px)","deg)"),qY=AY(TY,", ",")",")")});function LY(e){return((e=Math.exp(e))+1/e)/2}function Xde(e){return((e=Math.exp(e))-1/e)/2}function Zde(e){return((e=Math.exp(2*e))-1)/(e+1)}var Wde,SY,DY=nt(()=>{Wde=1e-12;SY=function e(r,t,a){function n(i,l){var o=i[0],s=i[1],u=i[2],f=l[0],c=l[1],h=l[2],d=f-o,p=c-s,y=d*d+p*p,m,b;if(y{Bs();Ys();PY=EY(To),RY=EY(zt)});function Gb(e,r){var t=zt((e=Wf(e)).l,(r=Wf(r)).l),a=zt(e.a,r.a),n=zt(e.b,r.b),i=zt(e.opacity,r.opacity);return function(l){return e.l=t(l),e.a=a(l),e.b=n(l),e.opacity=i(l),e+""}}var NY=nt(()=>{Bs();Ys()});function FY(e){return function(r,t){var a=e((r=v0(r)).h,(t=v0(t)).h),n=zt(r.c,t.c),i=zt(r.l,t.l),l=zt(r.opacity,t.opacity);return function(o){return r.h=a(o),r.c=n(o),r.l=i(o),r.opacity=l(o),r+""}}}var IY,HY,OY=nt(()=>{Bs();Ys();IY=FY(To),HY=FY(zt)});function BY(e){return function r(t){t=+t;function a(n,i){var l=e((n=Xf(n)).h,(i=Xf(i)).h),o=zt(n.s,i.s),s=zt(n.l,i.l),u=zt(n.opacity,i.opacity);return function(f){return n.h=l(f),n.s=o(f),n.l=s(Math.pow(f,t)),n.opacity=u(f),n+""}}return a.gamma=r,a}(1)}var YY,GY,UY=nt(()=>{Bs();Ys();YY=BY(To),GY=BY(zt)});function Ub(e,r){r===void 0&&(r=e,e=Mo);for(var t=0,a=r.length-1,n=r[0],i=new Array(a<0?0:a);t{p0()});function WY(e,r){for(var t=new Array(r),a=0;a{});var Vb={};JW(Vb,{interpolate:()=>Mo,interpolateArray:()=>hY,interpolateBasis:()=>Tm,interpolateBasisClosed:()=>Am,interpolateCubehelix:()=>YY,interpolateCubehelixLong:()=>GY,interpolateDate:()=>Cm,interpolateDiscrete:()=>dY,interpolateHcl:()=>IY,interpolateHclLong:()=>HY,interpolateHsl:()=>PY,interpolateHslLong:()=>RY,interpolateHue:()=>mY,interpolateLab:()=>Gb,interpolateNumber:()=>mn,interpolateNumberArray:()=>Jf,interpolateObject:()=>Lm,interpolateRgb:()=>d0,interpolateRgbBasis:()=>cY,interpolateRgbBasisClosed:()=>vY,interpolateRound:()=>gY,interpolateString:()=>Sm,interpolateTransformCss:()=>kY,interpolateTransformSvg:()=>qY,interpolateZoom:()=>SY,piecewise:()=>Ub,quantize:()=>WY});var Wb=nt(()=>{p0();Nb();Mm();Eb();Fb();pY();yY();m0();qm();Ib();xY();Bb();CY();DY();Rb();zY();NY();OY();UY();VY();XY()});var jY=B((R4e,QY)=>{"use strict";var Xs=kr(),Jde=(Wb(),My(Vb)).interpolate,ZY=(Wb(),My(Vb)).interpolateNumber,Ao=Pe(),$de=Ao.strScale,g0=Ao.strTranslate,Kde=Ao.rad2deg,Qde=Sa().MID_SHIFT,Ws=Br(),Gs=wb(),Rm=va(),Ca=$r(),jde=sp(),e1e=fp(),r1e=xn(),$f=xr(),Xb={left:"start",center:"middle",right:"end"},Us={left:0,center:.5,right:1},JY=/[yzafpnµmkMGTPEZY]/;function x0(e){return e&&e.duration>0}QY.exports=function(r,t,a,n){var i=r._fullLayout,l;x0(a)&&n&&(l=n()),Ao.makeTraceGroups(i._indicatorlayer,t,"trace").each(function(o){var s=o[0],u=s.trace,f=Xs.select(this),c=u._hasGauge,h=u._isAngular,d=u._isBullet,p=u.domain,y={w:i._size.w*(p.x[1]-p.x[0]),h:i._size.h*(p.y[1]-p.y[0]),l:i._size.l+i._size.w*p.x[0],r:i._size.r+i._size.w*(1-p.x[1]),t:i._size.t+i._size.h*(1-p.y[1]),b:i._size.b+i._size.h*p.y[0]},m=y.l+y.w/2,b=y.t+y.h/2,_=Math.min(y.w/2,y.h),w=Gs.innerRadius*_,x,M,k,A=u.align||"center";if(M=b,!c)x=y.l+Us[A]*y.w,k=function(Y){return $Y(Y,y.w,y.h)};else if(h&&(x=m,M=b+_/2,k=function(Y){return l1e(Y,.9*w)}),d){var L=Gs.bulletPadding,D=1-Gs.bulletNumberDomainSize+L;x=y.l+(D+(1-D)*Us[A])*y.w,k=function(Y){return $Y(Y,(Gs.bulletNumberDomainSize-L)*y.w,y.h)}}n1e(r,f,o,{numbersX:x,numbersY:M,numbersScaler:k,transitionOpts:a,onComplete:l});var E,R;c&&(E={range:u.gauge.axis.range,color:u.gauge.bgcolor,line:{color:u.gauge.bordercolor,width:0},thickness:1},R={range:u.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:u.gauge.bordercolor,width:u.gauge.borderwidth},thickness:1});var N=f.selectAll("g.angular").data(h?o:[]);N.exit().remove();var I=f.selectAll("g.angularaxis").data(h?o:[]);I.exit().remove(),h&&a1e(r,f,o,{radius:_,innerRadius:w,gauge:N,layer:I,size:y,gaugeBg:E,gaugeOutline:R,transitionOpts:a,onComplete:l});var H=f.selectAll("g.bullet").data(d?o:[]);H.exit().remove();var V=f.selectAll("g.bulletaxis").data(d?o:[]);V.exit().remove(),d&&t1e(r,f,o,{gauge:H,layer:V,size:y,gaugeBg:E,gaugeOutline:R,transitionOpts:a,onComplete:l});var W=f.selectAll("text.title").data(o);W.exit().remove(),W.enter().append("text").classed("title",!0),W.attr("text-anchor",function(){return d?Xb.right:Xb[u.title.align]}).text(u.title.text).call(Ws.font,u.title.font).call(Rm.convertToTspans,r),W.attr("transform",function(){var Y=y.l+y.w*Us[u.title.align],O,G=Gs.titlePadding,J=Ws.bBox(W.node());if(c){if(h)if(u.gauge.axis.visible){var $=Ws.bBox(I.node());O=$.top-G-J.bottom}else O=y.t+y.h/2-_/2-J.bottom-G;d&&(O=M-(J.top+J.bottom)/2,Y=y.l-Gs.bulletPadding*y.w)}else O=u._numbersTop-G-J.bottom;return g0(Y,O)})})};function t1e(e,r,t,a){var n=t[0].trace,i=a.gauge,l=a.layer,o=a.gaugeBg,s=a.gaugeOutline,u=a.size,f=n.domain,c=a.transitionOpts,h=a.onComplete,d,p,y,m,b;i.enter().append("g").classed("bullet",!0),i.attr("transform",g0(u.l,u.t)),l.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),l.selectAll("g.xbulletaxistick,path,text").remove();var _=u.h,w=n.gauge.bar.thickness*_,x=f.x[0],M=f.x[0]+(f.x[1]-f.x[0])*(n._hasNumber||n._hasDelta?1-Gs.bulletNumberDomainSize:1);d=y0(e,n.gauge.axis),d._id="xbulletaxis",d.domain=[x,M],d.setScale(),p=Ca.calcTicks(d),y=Ca.makeTransTickFn(d),m=Ca.getTickSigns(d)[2],b=u.t+u.h,d.visible&&(Ca.drawTicks(e,d,{vals:d.ticks==="inside"?Ca.clipEnds(d,p):p,layer:l,path:Ca.makeTickPath(d,b,m),transFn:y}),Ca.drawLabels(e,d,{vals:p,layer:l,transFn:y,labelFns:Ca.makeLabelFns(d,b)}));function k(I){I.attr("width",function(H){return Math.max(0,d.c2p(H.range[1])-d.c2p(H.range[0]))}).attr("x",function(H){return d.c2p(H.range[0])}).attr("y",function(H){return .5*(1-H.thickness)*_}).attr("height",function(H){return H.thickness*_})}var A=[o].concat(n.gauge.steps),L=i.selectAll("g.bg-bullet").data(A);L.enter().append("g").classed("bg-bullet",!0).append("rect"),L.select("rect").call(k).call(Vs),L.exit().remove();var D=i.selectAll("g.value-bullet").data([n.gauge.bar]);D.enter().append("g").classed("value-bullet",!0).append("rect"),D.select("rect").attr("height",w).attr("y",(_-w)/2).call(Vs),x0(c)?D.select("rect").transition().duration(c.duration).ease(c.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()}).attr("width",Math.max(0,d.c2p(Math.min(n.gauge.axis.range[1],t[0].y)))):D.select("rect").attr("width",typeof t[0].y=="number"?Math.max(0,d.c2p(Math.min(n.gauge.axis.range[1],t[0].y))):0),D.exit().remove();var E=t.filter(function(){return n.gauge.threshold.value||n.gauge.threshold.value===0}),R=i.selectAll("g.threshold-bullet").data(E);R.enter().append("g").classed("threshold-bullet",!0).append("line"),R.select("line").attr("x1",d.c2p(n.gauge.threshold.value)).attr("x2",d.c2p(n.gauge.threshold.value)).attr("y1",(1-n.gauge.threshold.thickness)/2*_).attr("y2",(1-(1-n.gauge.threshold.thickness)/2)*_).call($f.stroke,n.gauge.threshold.line.color).style("stroke-width",n.gauge.threshold.line.width),R.exit().remove();var N=i.selectAll("g.gauge-outline").data([s]);N.enter().append("g").classed("gauge-outline",!0).append("rect"),N.select("rect").call(k).call(Vs),N.exit().remove()}function a1e(e,r,t,a){var n=t[0].trace,i=a.size,l=a.radius,o=a.innerRadius,s=a.gaugeBg,u=a.gaugeOutline,f=[i.l+i.w/2,i.t+i.h/2+l/2],c=a.gauge,h=a.layer,d=a.transitionOpts,p=a.onComplete,y=Math.PI/2;function m(re){var le=n.gauge.axis.range[0],se=n.gauge.axis.range[1],ve=(re-le)/(se-le)*Math.PI-y;return ve<-y?-y:ve>y?y:ve}function b(re){return Xs.svg.arc().innerRadius((o+l)/2-re/2*(l-o)).outerRadius((o+l)/2+re/2*(l-o)).startAngle(-y)}function _(re){re.attr("d",function(le){return b(le.thickness).startAngle(m(le.range[0])).endAngle(m(le.range[1]))()})}var w,x,M,k;c.enter().append("g").classed("angular",!0),c.attr("transform",g0(f[0],f[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),w=y0(e,n.gauge.axis),w.type="linear",w.range=n.gauge.axis.range,w._id="xangularaxis",w.ticklabeloverflow="allow",w.setScale();var A=function(re){return(w.range[0]-re.x)/(w.range[1]-w.range[0])*Math.PI+Math.PI},L={},D=Ca.makeLabelFns(w,0),E=D.labelStandoff;L.xFn=function(re){var le=A(re);return Math.cos(le)*E},L.yFn=function(re){var le=A(re),se=Math.sin(le)>0?.2:1;return-Math.sin(le)*(E+re.fontSize*se)+Math.abs(Math.cos(le))*(re.fontSize*Qde)},L.anchorFn=function(re){var le=A(re),se=Math.cos(le);return Math.abs(se)<.1?"middle":se>0?"start":"end"},L.heightFn=function(re,le,se){var ve=A(re);return-.5*(1+Math.sin(ve))*se};var R=function(re){return g0(f[0]+l*Math.cos(re),f[1]-l*Math.sin(re))};M=function(re){return R(A(re))};var N=function(re){var le=A(re);return R(le)+"rotate("+-Kde(le)+")"};if(x=Ca.calcTicks(w),k=Ca.getTickSigns(w)[2],w.visible){k=w.ticks==="inside"?-1:1;var I=(w.linewidth||1)/2;Ca.drawTicks(e,w,{vals:x,layer:h,path:"M"+k*I+",0h"+k*w.ticklen,transFn:N}),Ca.drawLabels(e,w,{vals:x,layer:h,transFn:M,labelFns:L})}var H=[s].concat(n.gauge.steps),V=c.selectAll("g.bg-arc").data(H);V.enter().append("g").classed("bg-arc",!0).append("path"),V.select("path").call(_).call(Vs),V.exit().remove();var W=b(n.gauge.bar.thickness),Y=c.selectAll("g.value-arc").data([n.gauge.bar]);Y.enter().append("g").classed("value-arc",!0).append("path");var O=Y.select("path");x0(d)?(O.transition().duration(d.duration).ease(d.easing).each("end",function(){p&&p()}).each("interrupt",function(){p&&p()}).attrTween("d",i1e(W,m(t[0].lastY),m(t[0].y))),n._lastValue=t[0].y):O.attr("d",typeof t[0].y=="number"?W.endAngle(m(t[0].y)):"M0,0Z"),O.call(Vs),Y.exit().remove(),H=[];var G=n.gauge.threshold.value;(G||G===0)&&H.push({range:[G,G],color:n.gauge.threshold.color,line:{color:n.gauge.threshold.line.color,width:n.gauge.threshold.line.width},thickness:n.gauge.threshold.thickness});var J=c.selectAll("g.threshold-arc").data(H);J.enter().append("g").classed("threshold-arc",!0).append("path"),J.select("path").call(_).call(Vs),J.exit().remove();var $=c.selectAll("g.gauge-outline").data([u]);$.enter().append("g").classed("gauge-outline",!0).append("path"),$.select("path").call(_).call(Vs),$.exit().remove()}function n1e(e,r,t,a){var n=t[0].trace,i=a.numbersX,l=a.numbersY,o=n.align||"center",s=Xb[o],u=a.transitionOpts,f=a.onComplete,c=Ao.ensureSingle(r,"g","numbers"),h,d,p,y=[];n._hasNumber&&y.push("number"),n._hasDelta&&(y.push("delta"),n.delta.position==="left"&&y.reverse());var m=c.selectAll("text").data(y);m.enter().append("text"),m.attr("text-anchor",function(){return s}).attr("class",function(R){return R}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),m.exit().remove();function b(R,N,I,H){if(R.match("s")&&I>=0!=H>=0&&!N(I).slice(-1).match(JY)&&!N(H).slice(-1).match(JY)){var V=R.slice().replace("s","f").replace(/\d+/,function(Y){return parseInt(Y)-1}),W=y0(e,{tickformat:V});return function(Y){return Math.abs(Y)<1?Ca.tickText(W,Y).text:N(Y)}}else return N}function _(){var R=y0(e,{tickformat:n.number.valueformat},n._range);R.setScale(),Ca.prepTicks(R);var N=function(Y){return Ca.tickText(R,Y).text},I=n.number.suffix,H=n.number.prefix,V=c.select("text.number");function W(){var Y=typeof t[0].y=="number"?H+N(t[0].y)+I:"-";V.text(Y).call(Ws.font,n.number.font).call(Rm.convertToTspans,e)}return x0(u)?V.transition().duration(u.duration).ease(u.easing).each("end",function(){W(),f&&f()}).each("interrupt",function(){W(),f&&f()}).attrTween("text",function(){var Y=Xs.select(this),O=ZY(t[0].lastY,t[0].y);n._lastValue=t[0].y;var G=b(n.number.valueformat,N,t[0].lastY,t[0].y);return function(J){Y.text(H+G(O(J))+I)}}):W(),h=KY(H+N(t[0].y)+I,n.number.font,s,e),V}function w(){var R=y0(e,{tickformat:n.delta.valueformat},n._range);R.setScale(),Ca.prepTicks(R);var N=function(J){return Ca.tickText(R,J).text},I=n.delta.suffix,H=n.delta.prefix,V=function(J){var $=n.delta.relative?J.relativeDelta:J.delta;return $},W=function(J,$){return J===0||typeof J!="number"||isNaN(J)?"-":(J>0?n.delta.increasing.symbol:n.delta.decreasing.symbol)+H+$(J)+I},Y=function(J){return J.delta>=0?n.delta.increasing.color:n.delta.decreasing.color};n._deltaLastValue===void 0&&(n._deltaLastValue=V(t[0]));var O=c.select("text.delta");O.call(Ws.font,n.delta.font).call($f.fill,Y({delta:n._deltaLastValue}));function G(){O.text(W(V(t[0]),N)).call($f.fill,Y(t[0])).call(Rm.convertToTspans,e)}return x0(u)?O.transition().duration(u.duration).ease(u.easing).tween("text",function(){var J=Xs.select(this),$=V(t[0]),re=n._deltaLastValue,le=b(n.delta.valueformat,N,re,$),se=ZY(re,$);return n._deltaLastValue=$,function(ve){J.text(W(se(ve),le)),J.call($f.fill,Y({delta:se(ve)}))}}).each("end",function(){G(),f&&f()}).each("interrupt",function(){G(),f&&f()}):G(),d=KY(W(V(t[0]),N),n.delta.font,s,e),O}var x=n.mode+n.align,M;if(n._hasDelta&&(M=w(),x+=n.delta.position+n.delta.font.size+n.delta.font.family+n.delta.valueformat,x+=n.delta.increasing.symbol+n.delta.decreasing.symbol,p=d),n._hasNumber&&(_(),x+=n.number.font.size+n.number.font.family+n.number.valueformat+n.number.suffix+n.number.prefix,p=h),n._hasDelta&&n._hasNumber){var k=[(h.left+h.right)/2,(h.top+h.bottom)/2],A=[(d.left+d.right)/2,(d.top+d.bottom)/2],L,D,E=.75*n.delta.font.size;n.delta.position==="left"&&(L=Pm(n,"deltaPos",0,-1*(h.width*Us[n.align]+d.width*(1-Us[n.align])+E),x,Math.min),D=k[1]-A[1],p={width:h.width+d.width+E,height:Math.max(h.height,d.height),left:d.left+L,right:h.right,top:Math.min(h.top,d.top+D),bottom:Math.max(h.bottom,d.bottom+D)}),n.delta.position==="right"&&(L=Pm(n,"deltaPos",0,h.width*(1-Us[n.align])+d.width*Us[n.align]+E,x,Math.max),D=k[1]-A[1],p={width:h.width+d.width+E,height:Math.max(h.height,d.height),left:h.left,right:d.right+L,top:Math.min(h.top,d.top+D),bottom:Math.max(h.bottom,d.bottom+D)}),n.delta.position==="bottom"&&(L=null,D=d.height,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height,bottom:h.bottom+d.height}),n.delta.position==="top"&&(L=null,D=h.top,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height-d.height,bottom:h.bottom}),M.attr({dx:L,dy:D})}(n._hasNumber||n._hasDelta)&&c.attr("transform",function(){var R=a.numbersScaler(p);x+=R[2];var N=Pm(n,"numbersScale",1,R[0],x,Math.min),I;n._scaleNumbers||(N=1),n._isAngular?I=l-N*p.bottom:I=l-N*(p.top+p.bottom)/2,n._numbersTop=N*p.top+I;var H=p[o];o==="center"&&(H=(p.left+p.right)/2);var V=i-N*H;return V=Pm(n,"numbersTranslate",0,V,x,Math.max),g0(V,I)+$de(N)})}function Vs(e){e.each(function(r){$f.stroke(Xs.select(this),r.line.color)}).each(function(r){$f.fill(Xs.select(this),r.color)}).style("stroke-width",function(r){return r.line.width})}function i1e(e,r,t){return function(){var a=Jde(r,t);return function(n){return e.endAngle(a(n))()}}}function y0(e,r,t){var a=e._fullLayout,n=Ao.extendFlat({type:"linear",ticks:"outside",range:t,showline:!0},r),i={type:"linear",_id:"x"+r._id},l={letter:"x",font:a.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function o(s,u){return Ao.coerce(n,i,r1e,s,u)}return jde(n,i,o,l,a),e1e(n,i,o,l),i}function $Y(e,r,t){var a=Math.min(r/e.width,t/e.height);return[a,e,r+"x"+t]}function l1e(e,r){var t=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),a=r/t;return[a,e,r]}function KY(e,r,t,a){var n=document.createElementNS("http://www.w3.org/2000/svg","text"),i=Xs.select(n);return i.text(e).attr("x",0).attr("y",0).attr("text-anchor",t).attr("data-unformatted",e).call(Rm.convertToTspans,a).call(Ws.font,r),Ws.bBox(i.node())}function Pm(e,r,t,a,n,i){var l="_cache"+r;e[l]&&e[l].key===n||(e[l]={key:n,value:t});var o=Ao.aggNums(i,null,[e[l].value,a],2);return e[l].value=o,o}});var rG=B((z4e,eG)=>{"use strict";eG.exports={moduleType:"trace",name:"indicator",basePlotModule:qB(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:_b(),supplyDefaults:FB().supplyDefaults,calc:HB().calc,plot:jY(),meta:{}}});var aG=B((N4e,tG)=>{"use strict";tG.exports=rG()});var Nm=B((F4e,sG)=>{"use strict";var zm=Pe().extendFlat,b0=bi(),nG=di().axisHoverFormat,lG=fi().dash,o1e=bc(),oG=Ff(),s1e=oG.INCREASING.COLOR,u1e=oG.DECREASING.COLOR,Zb=b0.line;function iG(e){return{line:{color:zm({},Zb.color,{dflt:e}),width:Zb.width,dash:lG,editType:"style"},editType:"style"}}sG.exports={xperiod:b0.xperiod,xperiod0:b0.xperiod0,xperiodalignment:b0.xperiodalignment,xhoverformat:nG("x"),yhoverformat:nG("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:zm({},Zb.width,{}),dash:zm({},lG,{}),editType:"style"},increasing:iG(s1e),decreasing:iG(u1e),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:zm({},o1e.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:b0.zorder}});var Jb=B((I4e,uG)=>{"use strict";var f1e=yr(),c1e=Pe();uG.exports=function(r,t,a,n){var i=a("x"),l=a("open"),o=a("high"),s=a("low"),u=a("close");a("hoverlabel.split");var f=f1e.getComponentMethod("calendars","handleTraceDefaults");if(f(r,t,["x"],n),!!(l&&o&&s&&u)){var c=Math.min(l.length,o.length,s.length,u.length);return i&&(c=Math.min(c,c1e.minRowLength(i))),t._length=c,c}}});var vG=B((H4e,cG)=>{"use strict";var v1e=Pe(),h1e=Jb(),d1e=_s(),p1e=Nm();cG.exports=function(r,t,a,n){function i(o,s){return v1e.coerce(r,t,p1e,o,s)}var l=h1e(r,t,i,n);if(!l){t.visible=!1;return}d1e(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),i("line.dash"),fG(r,t,i,"increasing"),fG(r,t,i,"decreasing"),i("text"),i("hovertext"),i("tickwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function fG(e,r,t,a){t(a+".line.color"),t(a+".line.width",r.line.width),t(a+".line.dash",r.line.dash)}});var $b=B((O4e,dG)=>{"use strict";var Kf=Pe(),Fm=Kf._,Im=$r(),m1e=ws(),_0=wt().BADNUM;function y1e(e,r){var t=Im.getFromId(e,r.xaxis),a=Im.getFromId(e,r.yaxis),n=x1e(e,t,r),i=r._minDiff;r._minDiff=null;var l=r._origX;r._origX=null;var o=r._xcalc;r._xcalc=null;var s=hG(e,r,l,o,a,g1e);return r._extremes[t._id]=Im.findExtremes(t,o,{vpad:i/2}),s.length?(Kf.extendFlat(s[0].t,{wHover:i/2,tickLen:n}),s):[{t:{empty:!0}}]}function g1e(e,r,t,a){return{o:e,h:r,l:t,c:a}}function hG(e,r,t,a,n,i){for(var l=n.makeCalcdata(r,"open"),o=n.makeCalcdata(r,"high"),s=n.makeCalcdata(r,"low"),u=n.makeCalcdata(r,"close"),f=Kf.isArrayOrTypedArray(r.text),c=Kf.isArrayOrTypedArray(r.hovertext),h=!0,d=null,p=!!r.xperiodalignment,y=[],m=0;md):h=M>_,d=M;var k=i(_,w,x,M);k.pos=b,k.yc=(_+M)/2,k.i=m,k.dir=h?"increasing":"decreasing",k.x=k.pos,k.y=[x,w],p&&(k.orig_p=t[m]),f&&(k.tx=r.text[m]),c&&(k.htx=r.hovertext[m]),y.push(k)}else y.push({pos:b,empty:!0})}return r._extremes[n._id]=Im.findExtremes(n,Kf.concat(s,o),{padded:!0}),y.length&&(y[0].t={labels:{open:Fm(e,"open:")+" ",high:Fm(e,"high:")+" ",low:Fm(e,"low:")+" ",close:Fm(e,"close:")+" "}}),y}function x1e(e,r,t){var a=t._minDiff;if(!a){var n=e._fullData,i=[];a=1/0;var l;for(l=0;l{"use strict";var b1e=kr(),pG=Pe();mG.exports=function(r,t,a,n){var i=t.yaxis,l=t.xaxis,o=!!l.rangebreaks;pG.makeTraceGroups(n,a,"trace ohlc").each(function(s){var u=b1e.select(this),f=s[0],c=f.t,h=f.trace;if(h.visible!==!0||c.empty){u.remove();return}var d=c.tickLen,p=u.selectAll("path").data(pG.identity);p.enter().append("path"),p.exit().remove(),p.attr("d",function(y){if(y.empty)return"M0,0Z";var m=l.c2p(y.pos-d,!0),b=l.c2p(y.pos+d,!0),_=o?(m+b)/2:l.c2p(y.pos,!0),w=i.c2p(y.o,!0),x=i.c2p(y.h,!0),M=i.c2p(y.l,!0),k=i.c2p(y.c,!0);return"M"+m+","+w+"H"+_+"M"+_+","+x+"V"+M+"M"+b+","+k+"H"+_})})}});var xG=B((Y4e,gG)=>{"use strict";var Kb=kr(),_1e=Br(),w1e=xr();gG.exports=function(r,t,a){var n=a||Kb.select(r).selectAll("g.ohlclayer").selectAll("g.trace");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var l=i[0].trace;Kb.select(this).selectAll("path").each(function(o){if(!o.empty){var s=l[o.dir].line;Kb.select(this).style("fill","none").call(w1e.stroke,s.color).call(_1e.dashLine,s.dash,s.width).style("opacity",l.selectedpoints&&!o.selected?.3:1)}})})}});var jb=B((G4e,MG)=>{"use strict";var Qb=$r(),T1e=Pe(),Hm=gi(),M1e=xr(),A1e=Pe().fillText,bG=Ff(),k1e={increasing:bG.INCREASING.SYMBOL,decreasing:bG.DECREASING.SYMBOL};function q1e(e,r,t,a){var n=e.cd,i=n[0].trace;return i.hoverlabel.split?wG(e,r,t,a):TG(e,r,t,a)}function _G(e,r,t,a){var n=e.cd,i=e.xa,l=n[0].trace,o=n[0].t,s=l.type,u=s==="ohlc"?"l":"min",f=s==="ohlc"?"h":"max",c,h,d=o.bPos||0,p=function(E){return E.pos+d-r},y=o.bdPos||o.tickLen,m=o.wHover,b=Math.min(1,y/Math.abs(i.r2c(i.range[1])-i.r2c(i.range[0])));c=e.maxHoverDistance-b,h=e.maxSpikeDistance-b;function _(E){var R=p(E);return Hm.inbox(R-m,R+m,c)}function w(E){var R=E[u],N=E[f];return R===N||Hm.inbox(R-t,N-t,c)}function x(E){return(_(E)+w(E))/2}var M=Hm.getDistanceFunction(a,_,w,x);if(Hm.getClosest(n,M,e),e.index===!1)return null;var k=n[e.index];if(k.empty)return null;var A=k.dir,L=l[A],D=L.line.color;return M1e.opacity(D)&&L.line.width?e.color=D:e.color=L.fillcolor,e.x0=i.c2p(k.pos+d-y,!0),e.x1=i.c2p(k.pos+d+y,!0),e.xLabelVal=k.orig_p!==void 0?k.orig_p:k.pos,e.spikeDistance=x(k)*h/c,e.xSpike=i.c2p(k.pos,!0),e}function wG(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=[],u=_G(e,r,t,a);if(!u)return[];var f=u.index,c=n[f],h=c.hi||l.hoverinfo,d=h.split("+"),p=h==="all",y=p||d.indexOf("y")!==-1;if(!y)return[];for(var m=["high","open","close","low"],b={},_=0;_"+o.labels[w]+Qb.hoverLabelText(i,x,l.yhoverformat)):(k=T1e.extendFlat({},u),k.y0=k.y1=M,k.yLabelVal=x,k.yLabel=o.labels[w]+Qb.hoverLabelText(i,x,l.yhoverformat),k.name="",s.push(k),b[x]=k)}return s}function TG(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=_G(e,r,t,a);if(!s)return[];var u=s.index,f=n[u],c=s.index=f.i,h=f.dir;function d(x){return o.labels[x]+Qb.hoverLabelText(i,l[x][c],l.yhoverformat)}var p=f.hi||l.hoverinfo,y=p.split("+"),m=p==="all",b=m||y.indexOf("y")!==-1,_=m||y.indexOf("text")!==-1,w=b?[d("open"),d("high"),d("low"),d("close")+" "+k1e[h]]:[];return _&&A1e(f,l,w),s.extraText=w.join("
"),s.y0=s.y1=i.c2p(f.yc,!0),[s]}MG.exports={hoverPoints:q1e,hoverSplit:wG,hoverOnPoints:TG}});var e_=B((U4e,AG)=>{"use strict";AG.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o,s=a[0].t.bPos||0;if(t===!1)for(o=0;o{"use strict";kG.exports={moduleType:"trace",name:"ohlc",basePlotModule:gl(),categories:["cartesian","svg","showLegend"],meta:{},attributes:Nm(),supplyDefaults:vG(),calc:$b().calc,plot:yG(),style:xG(),hoverPoints:jb().hoverPoints,selectPoints:e_()}});var LG=B((W4e,CG)=>{"use strict";CG.exports=qG()});var RG=B((X4e,PG)=>{"use strict";var C1e=W3(),ri=bi(),SG=Tl(),L1e=zn(),DG=di().axisHoverFormat,S1e=_a().hovertemplateAttrs,Cl=mt().extendFlat,Qf=ri.marker,EG=Qf.line;PG.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:ri.xperiod,yperiod:ri.yperiod,xperiod0:ri.xperiod0,yperiod0:ri.yperiod0,xperiodalignment:ri.xperiodalignment,yperiodalignment:ri.yperiodalignment,xhoverformat:DG("x"),yhoverformat:DG("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:Cl({},Qf.symbol,{arrayOk:!1,editType:"plot"}),opacity:Cl({},Qf.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Cl({},Qf.angle,{arrayOk:!1,editType:"calc"}),size:Cl({},Qf.size,{arrayOk:!1,editType:"calc"}),color:Cl({},Qf.color,{arrayOk:!1,editType:"style"}),line:{color:Cl({},EG.color,{arrayOk:!1,dflt:L1e.defaultLine,editType:"style"}),width:Cl({},EG.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:C1e(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:SG.offsetgroup,alignmentgroup:SG.alignmentgroup,selected:{marker:ri.selected.marker,editType:"style"},unselected:{marker:ri.unselected.marker,editType:"style"},text:Cl({},ri.text,{}),hovertext:Cl({},ri.hovertext,{}),hovertemplate:S1e({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:ri.zorder}});var t_=B((Z4e,FG)=>{"use strict";var r_=Pe().extendFlat,zG=di().axisHoverFormat,Ln=Nm(),jf=RG();function NG(e){return{line:{color:r_({},jf.line.color,{dflt:e}),width:jf.line.width,editType:"style"},fillcolor:jf.fillcolor,editType:"style"}}FG.exports={xperiod:Ln.xperiod,xperiod0:Ln.xperiod0,xperiodalignment:Ln.xperiodalignment,xhoverformat:zG("x"),yhoverformat:zG("y"),x:Ln.x,open:Ln.open,high:Ln.high,low:Ln.low,close:Ln.close,line:{width:r_({},jf.line.width,{}),editType:"style"},increasing:NG(Ln.increasing.line.color.dflt),decreasing:NG(Ln.decreasing.line.color.dflt),text:Ln.text,hovertext:Ln.hovertext,whiskerwidth:r_({},jf.whiskerwidth,{dflt:0}),hoverlabel:Ln.hoverlabel,zorder:jf.zorder}});var a_=B((J4e,IG)=>{"use strict";IG.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var BG=B(($4e,OG)=>{"use strict";var D1e=yr(),E1e=Pe(),P1e=a_();function HG(e,r,t,a,n){for(var i=n+"Layout",l=!1,o=0;o{"use strict";var YG=$r(),z1e=Pe(),N1e=ys().getAxisGroup,GG=["v","h"];function F1e(e,r){for(var t=e.calcdata,a=r.xaxis,n=r.yaxis,i=0;i1,_=1-i[e+"gap"],w=1-i[e+"groupgap"];for(s=0;s0;if(A==="positive"?(O=L*(k?1:.5),$=J,G=$=E):A==="negative"?(O=$=E,G=L*(k?1:.5),re=J):(O=G=L,$=re=J),ce){var be=x.pointpos,fe=x.jitter,ye=x.marker.size/2,U=0;be+fe>=0&&(U=J*(be+fe),U>O?(_e=!0,ve=ye,le=U):U>$&&(ve=ye,le=O)),U<=O&&(le=O);var te=0;be-fe<=0&&(te=-J*(be-fe),te>G?(_e=!0,Q=ye,se=te):te>re&&(Q=ye,se=G)),te<=G&&(se=G)}else le=O,se=G;var X=new Array(f.length);for(u=0;u{"use strict";var I1e=Pe(),H1e=xr(),O1e=Jb(),B1e=_s(),Y1e=t_();ZG.exports=function(r,t,a,n){function i(o,s){return I1e.coerce(r,t,Y1e,o,s)}var l=O1e(r,t,i,n);if(!l){t.visible=!1;return}B1e(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),XG(r,t,i,"increasing"),XG(r,t,i,"decreasing"),i("text"),i("hovertext"),i("whiskerwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function XG(e,r,t,a){var n=t(a+".line.color");t(a+".line.width",r.line.width),t(a+".fillcolor",H1e.addOpacity(n,.5))}});var jG=B((j4e,QG)=>{"use strict";var $G=Pe(),KG=$r(),G1e=ws(),U1e=$b().calcCommon;QG.exports=function(e,r){var t=e._fullLayout,a=KG.getFromId(e,r.xaxis),n=KG.getFromId(e,r.yaxis),i=a.makeCalcdata(r,"x"),l=G1e(r,a,"x",i).vals,o=U1e(e,r,i,l,n,V1e);return o.length?($G.extendFlat(o[0].t,{num:t._numBoxes,dPos:$G.distinctVals(l).minDiff/2,posLetter:"x",valLetter:"y"}),t._numBoxes++,o):[{t:{empty:!0}}]};function V1e(e,r,t,a){return{min:t,q1:Math.min(e,a),med:a,q3:Math.max(e,a),max:r}}});var iU=B((e6e,nU)=>{"use strict";var ec=kr(),Zs=Pe(),W1e=Br(),eU=5,X1e=.01;function Z1e(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,l=r.yaxis;Zs.makeTraceGroups(a,t,"trace boxes").each(function(o){var s=ec.select(this),u=o[0],f=u.t,c=u.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){s.remove();return}var h,d;c.orientation==="h"?(h=l,d=i):(h=i,d=l),rU(s,{pos:h,val:d},c,f,n),tU(s,{x:i,y:l},c,f),aU(s,{pos:h,val:d},c,f)})}function rU(e,r,t,a,n){var i=t.orientation==="h",l=r.val,o=r.pos,s=!!o.rangebreaks,u=a.bPos,f=a.wdPos||0,c=a.bPosPxOffset||0,h=t.whiskerwidth||0,d=t.showwhiskers!==!1,p=t.notched||!1,y=p?1-2*t.notchwidth:1,m,b;Array.isArray(a.bdPos)?(m=a.bdPos[0],b=a.bdPos[1]):(m=a.bdPos,b=a.bdPos);var _=e.selectAll("path.box").data(t.type!=="violin"||t.box.visible?Zs.identity:[]);_.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),_.exit().remove(),_.each(function(w){if(w.empty)return ec.select(this).attr("d","M0,0Z");var x=o.c2l(w.pos+u,!0),M=o.l2p(x-m)+c,k=o.l2p(x+b)+c,A=s?(M+k)/2:o.l2p(x)+c,L=t.whiskerwidth,D=s?M*L+(1-L)*A:o.l2p(x-f)+c,E=s?k*L+(1-L)*A:o.l2p(x+f)+c,R=o.l2p(x-m*y)+c,N=o.l2p(x+b*y)+c,I=t.sizemode==="sd",H=l.c2p(I?w.mean-w.sd:w.q1,!0),V=I?l.c2p(w.mean+w.sd,!0):l.c2p(w.q3,!0),W=Zs.constrain(I?l.c2p(w.mean,!0):l.c2p(w.med,!0),Math.min(H,V)+1,Math.max(H,V)-1),Y=w.lf===void 0||t.boxpoints===!1||I,O=l.c2p(Y?w.min:w.lf,!0),G=l.c2p(Y?w.max:w.uf,!0),J=l.c2p(w.ln,!0),$=l.c2p(w.un,!0);i?ec.select(this).attr("d","M"+W+","+R+"V"+N+"M"+H+","+M+"V"+k+(p?"H"+J+"L"+W+","+N+"L"+$+","+k:"")+"H"+V+"V"+M+(p?"H"+$+"L"+W+","+R+"L"+J+","+M:"")+"Z"+(d?"M"+H+","+A+"H"+O+"M"+V+","+A+"H"+G+(h===0?"":"M"+O+","+D+"V"+E+"M"+G+","+D+"V"+E):"")):ec.select(this).attr("d","M"+R+","+W+"H"+N+"M"+M+","+H+"H"+k+(p?"V"+J+"L"+N+","+W+"L"+k+","+$:"")+"V"+V+"H"+M+(p?"V"+$+"L"+R+","+W+"L"+M+","+J:"")+"Z"+(d?"M"+A+","+H+"V"+O+"M"+A+","+V+"V"+G+(h===0?"":"M"+D+","+O+"H"+E+"M"+D+","+G+"H"+E):""))})}function tU(e,r,t,a){var n=r.x,i=r.y,l=a.bdPos,o=a.bPos,s=t.boxpoints||t.points;Zs.seedPseudoRandom();var u=function(h){return h.forEach(function(d){d.t=a,d.trace=t}),h},f=e.selectAll("g.points").data(s?u:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(h){var d,p=h.pts2,y=Math.max((h.max-h.min)/10,h.q3-h.q1),m=y*1e-9,b=y*X1e,_=[],w=0,x;if(t.jitter){if(y===0)for(w=1,_=new Array(p.length),d=0;dh.lo&&(E.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(W1e.translatePoints,n,i)}function aU(e,r,t,a){var n=r.val,i=r.pos,l=!!i.rangebreaks,o=a.bPos,s=a.bPosPxOffset||0,u=t.boxmean||(t.meanline||{}).visible,f,c;Array.isArray(a.bdPos)?(f=a.bdPos[0],c=a.bdPos[1]):(f=a.bdPos,c=a.bdPos);var h=e.selectAll("path.mean").data(t.type==="box"&&t.boxmean||t.type==="violin"&&t.box.visible&&t.meanline.visible?Zs.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each(function(d){var p=i.c2l(d.pos+o,!0),y=i.l2p(p-f)+s,m=i.l2p(p+c)+s,b=l?(y+m)/2:i.l2p(p)+s,_=n.c2p(d.mean,!0),w=n.c2p(d.mean-d.sd,!0),x=n.c2p(d.mean+d.sd,!0);t.orientation==="h"?ec.select(this).attr("d","M"+_+","+y+"V"+m+(u==="sd"?"m0,0L"+w+","+b+"L"+_+","+y+"L"+x+","+b+"Z":"")):ec.select(this).attr("d","M"+y+","+_+"H"+m+(u==="sd"?"m0,0L"+b+","+w+"L"+y+","+_+"L"+b+","+x+"Z":""))})}nU.exports={plot:Z1e,plotBoxAndWhiskers:rU,plotPoints:tU,plotBoxMean:aU}});var oU=B((r6e,lU)=>{"use strict";var n_=kr(),i_=xr(),l_=Br();function J1e(e,r,t){var a=t||n_.select(e).selectAll("g.trace.boxes");a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=n_.select(this),l=n[0].trace,o=l.line.width;function s(c,h,d,p){c.style("stroke-width",h+"px").call(i_.stroke,d).call(i_.fill,p)}var u=i.selectAll("path.box");if(l.type==="candlestick")u.each(function(c){if(!c.empty){var h=n_.select(this),d=l[c.dir];s(h,d.line.width,d.line.color,d.fillcolor),h.style("opacity",l.selectedpoints&&!c.selected?.3:1)}});else{s(u,o,l.line.color,l.fillcolor),i.selectAll("path.mean").style({"stroke-width":o,"stroke-dasharray":2*o+"px,"+o+"px"}).call(i_.stroke,l.line.color);var f=i.selectAll("path.point");l_.pointStyle(f,l,e)}})}function $1e(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?l_.selectedPointStyle(n,a):l_.pointStyle(n,a,e)}lU.exports={style:J1e,styleOnSelect:$1e}});var uU=B((t6e,sU)=>{"use strict";sU.exports={moduleType:"trace",name:"candlestick",basePlotModule:gl(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:t_(),layoutAttributes:a_(),supplyLayoutDefaults:BG().supplyLayoutDefaults,crossTraceCalc:WG().crossTraceCalc,supplyDefaults:JG(),calc:jG(),plot:iU().plot,layerName:"boxlayer",style:oU().style,hoverPoints:jb().hoverPoints,selectPoints:e_()}});var cU=B((a6e,fU)=>{"use strict";fU.exports=uU()});var Ra=B((n6e,hU)=>{"use strict";var vU=Object.getOwnPropertySymbols,K1e=Object.prototype.hasOwnProperty,Q1e=Object.prototype.propertyIsEnumerable;function j1e(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function epe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}hU.exports=epe()?Object.assign:function(e,r){for(var t,a=j1e(e),n,i=1;i{var Bm=Ra();function dU(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}Bm(dU.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function o_(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Om(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}Bm(o_.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Rr.local.differentCalendars||Rr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+Om(Math.abs(this.year()),4)+"-"+Om(this.month(),2)+"-"+Om(this.day(),2)}});function s_(){this.shortYearCutoff="+10"}Bm(s_.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new o_(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Rr.local.invalidYear||Rr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Rr.local.invalidYear||Rr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+Om(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Rr.local.invalidYear||Rr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Rr.local.invalidMonth||Rr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Rr.local.invalidMonth||Rr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Rr.local.invalidYear||Rr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),l=e.monthOfYear()+(t==="m"?r:0),n=e.day(),o=function(f){for(;lc-1+f.minMonth;)i++,l-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,l)&&(l=this.newDate(i,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l)))):t==="m"&&(o(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l))));var s=[i,this.fromMonthOfYear(i,l),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,o)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Rr=pU.exports=new dU;Rr.cdate=o_;Rr.baseCalendar=s_;Rr.calendars.gregorian=u_});var mU=B(()=>{var f_=Ra(),pa=za();f_(pa.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});pa.local=pa.regionalOptions[""];f_(pa.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});f_(pa.baseCalendar.prototype,{UNIX_EPOCH:pa.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:pa.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw pa.local.invalidFormat||pa.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,l=t.monthNamesShort||this.local.monthNamesShort,o=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(x,M){for(var k=1;w+k1},f=function(x,M,k,A){var L=""+M;if(u(x,A))for(;L.length1},_=function(N,I){var H=b(N,I),V=[2,3,H?4:2,H?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],W=new RegExp("^-?\\d{1,"+V+"}"),Y=r.substring(L).match(W);if(!Y)throw(pa.local.missingNumberAt||pa.regionalOptions[""].missingNumberAt).replace(/\{0\}/,L);return L+=Y[0].length,parseInt(Y[0],10)},w=this,x=function(){if(typeof o=="function"){b("m");var N=o.call(w,r.substring(L));return L+=N.length,N}return _("m")},M=function(N,I,H,V){for(var W=b(N,V)?H:I,Y=0;Y-1){h=1,d=p;for(var R=this.daysInMonth(c,h);d>R;R=this.daysInMonth(c,h))h++,d-=R}return f>-1?this.fromJD(f):this.newDate(c,h,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,l=function(o){try{return i.parseDate(a,o,n)}catch(c){}o=o.toLowerCase();for(var s=(o.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(o);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(o);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var yU=B(()=>{var ko=za(),rpe=Ra(),c_=ko.instance();function Ym(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ym.prototype=new ko.baseCalendar;rpe(Ym.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(ape);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(npe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(ipe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw ko.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw ko.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,ko.local.invalidyear),n=Co[a-Co[0]],i=n>>9&4095,l=n>>5&15,o=n&31,s;s=c_.newDate(i,l,o),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=qo[e-qo[0]],a=t>>13,n=a?12:11;if(r>n)throw ko.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,ko.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),l=ope(e,i,t,n);return c_.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=c_.fromJD(e),t=lpe(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(tpe),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),l=+r[4];return this.newDate(t,i,l)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),l=this.toChineseMonth(a,n),o=Object.getPrototypeOf(Ym.prototype).add.call(this,e,r,t);if(t==="y"){var s=o.year(),u=o.month(),f=this.isIntercalaryMonth(s,l),c=i&&f?this.toMonthIndex(s,l,!0):this.toMonthIndex(s,l,!1);c!==u&&o.month(c)}return o}});var tpe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,ape=/^\d?\d[iI]?/m,npe=/^闰?十?[一二三四五六七八九]?月/m,ipe=/^闰?十?[一二三四五六七八九]?/m;ko.calendars.chinese=Ym;var qo=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Co=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function lpe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var o=typeof r=="number"&&r>=1&&r<=12;if(!o)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=Co[n.year-Co[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Co[i.year-Co[0]];var c=u>>9&4095,h=u>>5&15,d=u&31,p,y=new Date(c,h-1,d),m=new Date(n.year,n.month-1,n.day);p=Math.round((m-y)/(24*3600*1e3));var b=qo[i.year-qo[0]],_;for(_=0;_<13;_++){var w=b&1<<12-_?30:29;if(p>13;return!x||_=1888&&e<=2111;if(!o)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),l={year:e,month:r,day:t,isIntercalary:f}}var c;c=l.day-1;var h=qo[l.year-qo[0]],d=h>>13,p;d&&(l.month>d||l.isIntercalary)?p=l.month:p=l.month-1;for(var y=0;y>9&4095,w=b>>5&15,x=b&31,M=new Date(_,w-1,x+c);return i.year=M.getFullYear(),i.month=1+M.getMonth(),i.day=M.getDate(),i}});var gU=B(()=>{var Js=za(),spe=Ra();function v_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}v_.prototype=new Js.baseCalendar;spe(v_.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Js.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Js.local.invalidYear||Js.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Js.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Js.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Js.calendars.coptic=v_});var xU=B(()=>{var Ll=za(),upe=Ra();function h_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}h_.prototype=new Ll.baseCalendar;upe(h_.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ll.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ll.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ll.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ll.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Ll.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Ll.local.invalidDate);return{century:fpe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Ll.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var fpe={20:"Fruitbat",21:"Anchovy"};Ll.calendars.discworld=h_});var bU=B(()=>{var $s=za(),cpe=Ra();function d_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}d_.prototype=new $s.baseCalendar;cpe(d_.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,$s.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,$s.local.invalidYear||$s.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,$s.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,$s.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});$s.calendars.ethiopian=d_});var _U=B(()=>{var Lo=za(),vpe=Ra();function p_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}p_.prototype=new Lo.baseCalendar;vpe(p_.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Lo.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Gm(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Lo.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Lo.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Lo.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Gm(this.daysInYear(e),10)===5?30:r===9&&Gm(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Lo.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,Lo.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var l=7;l<=this.monthsInYear(e);l++)i+=this.daysInMonth(e,l);for(var l=1;l=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function Gm(e,r){return e-r*Math.floor(e/r)}Lo.calendars.hebrew=p_});var wU=B(()=>{var w0=za(),hpe=Ra();function m_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}m_.prototype=new w0.baseCalendar;hpe(m_.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,w0.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,w0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,w0.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});w0.calendars.islamic=m_});var TU=B(()=>{var T0=za(),dpe=Ra();function y_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}y_.prototype=new T0.baseCalendar;dpe(y_.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,T0.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,T0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,T0.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),l=i-Math.floor(i<14?1:13),o=a-Math.floor(l>2?4716:4715),s=t-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,l,s)}});T0.calendars.julian=y_});var AU=B(()=>{var ti=za(),ppe=Ra();function x_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}x_.prototype=new ti.baseCalendar;ppe(x_.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,ti.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ti.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ti.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,ti.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ti.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,ti.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,ti.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,ti.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,ti.local.invalidDate),n=a.toJD(),i=this._toHaab(n),l=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=g_(e+8+17*20,365);return[Math.floor(r/20)+1,g_(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[MU(e+20,20),MU(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,ti.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function g_(e,r){return e-r*Math.floor(e/r)}function MU(e,r){return g_(e-1,r)+1}ti.calendars.mayan=x_});var qU=B(()=>{var Ks=za(),mpe=Ra();function b_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}b_.prototype=new Ks.baseCalendar;var kU=Ks.instance("gregorian");mpe(b_.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ks.local.invalidYear||Ks.regionalOptions[""].invalidYear);return kU.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ks.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Ks.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),l=1;l=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});Ks.calendars.nanakshahi=b_});var CU=B(()=>{var Qs=za(),ype=Ra();function __(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}__.prototype=new Qs.baseCalendar;ype(__.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Qs.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Qs.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,Qs.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=Qs.instance(),i=0,l=r,o=e;this._createMissingCalendarData(e);var s=e-(l>9||l===9&&t>=this.NEPALI_CALENDAR_DATA[o][0]?56:57);for(r!==9&&(i=t,l--);l!==9;)l<=0&&(l=12,o--),i+=this.NEPALI_CALENDAR_DATA[o][l],l--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[o][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[o][9]-this.NEPALI_CALENDAR_DATA[o][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=Qs.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var l=9,o=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][l]-o+1;n>s;)l++,l>12&&(l=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][l];var u=this.NEPALI_CALENDAR_DATA[i][l]-(s-n);return this.newDate(i,l,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var rc=za(),gpe=Ra();function Vm(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function Um(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),l=n-Math.floor(n);return i>l}Vm.prototype=new rc.baseCalendar;gpe(Vm.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,rc.local.invalidYear);return Um(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,rc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,rc.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,Um(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});rc.calendars.persian=Vm;rc.calendars.jalali=Vm});var SU=B(()=>{var js=za(),xpe=Ra(),Wm=js.instance();function w_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}w_.prototype=new js.baseCalendar;xpe(w_.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,js.local.invalidYear),t=this._t2gYear(r.year());return Wm.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,js.local.invalidYear),n=this._t2gYear(a.year());return Wm.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,js.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,js.local.invalidDate),n=this._t2gYear(a.year());return Wm.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Wm.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});js.calendars.taiwan=w_});var DU=B(()=>{var eu=za(),bpe=Ra(),Xm=eu.instance();function T_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}T_.prototype=new eu.baseCalendar;bpe(T_.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,eu.local.invalidYear),t=this._t2gYear(r.year());return Xm.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,eu.local.invalidYear),n=this._t2gYear(a.year());return Xm.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,eu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,eu.local.invalidDate),n=this._t2gYear(a.year());return Xm.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Xm.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});eu.calendars.thai=T_});var EU=B(()=>{var ru=za(),_pe=Ra();function M_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}M_.prototype=new ru.baseCalendar;_pe(M_.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ru.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,ru.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return So[n]-So[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,ru.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+So[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),l=i+1,o=n-12*i,s=r-So[t-1]+1;return this.newDate(l,o,s)},isValid:function(e,r,t){var a=ru.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=ru.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});ru.calendars.ummalqura=M_;var So=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var RU=B((N6e,PU)=>{"use strict";PU.exports=za();mU();yU();gU();xU();bU();_U();wU();TU();AU();qU();CU();LU();SU();DU();EU()});var BU=B((F6e,OU)=>{"use strict";var NU=RU(),M0=Pe(),FU=wt(),wpe=FU.EPOCHJD,Tpe=FU.ONEDAY,q_={valType:"enumerated",values:M0.sortObjectKeys(NU.calendars),editType:"calc",dflt:"gregorian"},IU=function(e,r,t,a){var n={};return n[t]=q_,M0.coerce(e,r,n,t,a)},Mpe=function(e,r,t,a){for(var n=0;n{"use strict";YU.exports=BU()});var Spe=B((H6e,VU)=>{var UU=aF();UU.register([iI(),XI(),CH(),dO(),tB(),AB(),aG(),LG(),cU(),GU()]);VU.exports=UU});return Spe();})(); +`)};function P(Z){return Z.map(F).join(v)}function F(Z){return T.test(Z)?'"'+Z.replace(/\"/g,'""')+'"':Z}return C},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var E0,P0,R0,z0,S_=this[Y(this,"requestAnimationFrame")]||function(v){setTimeout(v,17)};e.timer=function(){N0.apply(this,arguments)};function N0(v,g,T){var q=arguments.length;q<2&&(g=0),q<3&&(T=Date.now());var C=T+g,L={c:v,t:C,n:null};return P0?P0.n=L:E0=L,P0=L,R0||(z0=clearTimeout(z0),R0=1,S_(Jm)),L}function Jm(){var v=L_(),g=D_()-v;g>24?(isFinite(g)&&(clearTimeout(z0),z0=setTimeout(Jm,g)),R0=0):(R0=1,S_(Jm))}e.timer.flush=function(){L_(),D_()};function L_(){for(var v=Date.now(),g=E0;g;)v>=g.t&&g.c(v-g.t)&&(g.c=null),g=g.n;return v}function D_(){for(var v,g=E0,T=1/0;g;)g.c?(g.t=0;--P)ae.push(C[Z[j[P]][2]]);for(P=+ye;P1&&jr(v[T[q-2]],v[T[q-1]],v[C])<=0;)--q;T[q++]=C}return T.slice(0,q)}function JU(v,g){return v[0]-g[0]||v[1]-g[1]}e.geom.polygon=function(v){return Q(v,F0),v};var F0=e.geom.polygon.prototype=[];F0.area=function(){for(var v=-1,g=this.length,T,q=this[g-1],C=0;++vce)P=P.L;else if(z=g-jU(P,T),z>ce){if(!P.R){q=P;break}P=P.R}else{L>-ce?(q=P.P,C=P):z>-ce?(q=P,C=P.N):q=C=P;break}var F=N_(v);if(lu.insert(q,F),!(!q&&!C)){if(q===C){su(q),C=N_(q.site),lu.insert(F,C),F.edge=C.edge=sc(q.site,F.site),ou(q),ou(C);return}if(!C){F.edge=sc(q.site,F.site);return}su(q),su(C);var Z=q.site,K=Z.x,j=Z.y,ee=v.x-K,ye=v.y-j,Te=C.site,ae=Te.x-K,ue=Te.y-j,he=2*(ee*ue-ye*ae),we=ee*ee+ye*ye,Me=ae*ae+ue*ue,me={x:(ue*we-ye*Me)/he+K,y:(ee*Me-ae*we)/he+j};I0(C.edge,Z,Te,me),F.edge=sc(Z,v,null,me),C.edge=sc(v,Te,null,me),ou(q),ou(C)}}function F_(v,g){var T=v.site,q=T.x,C=T.y,L=C-g;if(!L)return q;var z=v.P;if(!z)return-1/0;T=z.site;var P=T.x,F=T.y,Z=F-g;if(!Z)return P;var K=P-q,j=1/L-1/Z,ee=K/Z;return j?(-ee+Math.sqrt(ee*ee-2*j*(K*K/(-2*Z)-F+Z/2+C-L/2)))/j+q:(q+P)/2}function jU(v,g){var T=v.N;if(T)return F_(T,g);var q=v.site;return q.y===g?q.x:1/0}function I_(v){this.site=v,this.edges=[]}I_.prototype.prepare=function(){for(var v=this.edges,g=v.length,T;g--;)T=v[g].edge,(!T.b||!T.a)&&v.splice(g,1);return v.sort(H_),v.length};function eV(v){for(var g=v[0][0],T=v[1][0],q=v[0][1],C=v[1][1],L,z,P,F,Z=Ro,K=Z.length,j,ee,ye,Te,ae,ue;K--;)if(j=Z[K],!(!j||!j.prepare()))for(ye=j.edges,Te=ye.length,ee=0;eece||b(F-z)>ce)&&(ye.splice(ee,0,new H0(iV(j.site,ue,b(P-g)ce?{x:g,y:b(L-g)ce?{x:b(z-C)ce?{x:T,y:b(L-T)ce?{x:b(z-q)=-Le)){var ee=F*F+Z*Z,ye=K*K+ue*ue,Te=(ue*ee-Z*ye)/j,ae=(F*ye-K*ee)/j,ue=ae+P,he=z_.pop()||new rV;he.arc=v,he.site=C,he.x=Te+z,he.y=ue+Math.sqrt(Te*Te+ae*ae),he.cy=ue,v.circle=he;for(var we=null,Me=oc._;Me;)if(he.y0)){if(ae/=ye,ye<0){if(ae0){if(ae>ee)return;ae>j&&(j=ae)}if(ae=T-P,!(!ye&&ae<0)){if(ae/=ye,ye<0){if(ae>ee)return;ae>j&&(j=ae)}else if(ye>0){if(ae0)){if(ae/=Te,Te<0){if(ae0){if(ae>ee)return;ae>j&&(j=ae)}if(ae=q-F,!(!Te&&ae<0)){if(ae/=Te,Te<0){if(ae>ee)return;ae>j&&(j=ae)}else if(Te>0){if(ae0&&(C.a={x:P+j*ye,y:F+j*Te}),ee<1&&(C.b={x:P+ee*ye,y:F+ee*Te}),C}}}}}}function aV(v){for(var g=iu,T=tV(v[0][0],v[0][1],v[1][0],v[1][1]),q=g.length,C;q--;)C=g[q],(!nV(C,v)||!T(C)||b(C.a.x-C.b.x)=L)return;if(K>ee){if(!q)q={x:Te,y:z};else if(q.y>=P)return;T={x:Te,y:P}}else{if(!q)q={x:Te,y:P};else if(q.y1)if(K>ee){if(!q)q={x:(z-he)/ue,y:z};else if(q.y>=P)return;T={x:(P-he)/ue,y:P}}else{if(!q)q={x:(P-he)/ue,y:P};else if(q.y=L)return;T={x:L,y:ue*L+he}}else{if(!q)q={x:L,y:ue*L+he};else if(q.x=K&&he.x<=ee&&he.y>=j&&he.y<=ye?[[K,ye],[ee,ye],[ee,j],[K,j]]:[];we.point=F[ae]}),Z}function P(F){return F.map(function(Z,K){return{x:Math.round(q(Z,K)/ce)*ce,y:Math.round(C(Z,K)/ce)*ce,i:K}})}return z.links=function(F){return ry(P(F)).edges.filter(function(Z){return Z.l&&Z.r}).map(function(Z){return{source:F[Z.l.i],target:F[Z.r.i]}})},z.triangles=function(F){var Z=[];return ry(P(F)).cells.forEach(function(K,j){for(var ee=K.site,ye=K.edges.sort(H_),Te=-1,ae=ye.length,ue,he,we=ye[ae-1].edge,Me=we.l===ee?we.r:we.l;++TeMe&&(Me=K.x),K.y>me&&(me=K.y),ye.push(K.x),Te.push(K.y);else for(ae=0;aeMe&&(Me=Be),tr>me&&(me=tr),ye.push(Be),Te.push(tr)}var sr=Me-he,nr=me-we;sr>nr?me=we+sr:Me=he+nr;function hr(pr,Mr,Kr,Ht,at,er,Dr,Er){if(!(isNaN(Kr)||isNaN(Ht)))if(pr.leaf){var Qr=pr.x,qt=pr.y;if(Qr!=null)if(b(Qr-Kr)+b(qt-Ht)<.01)dr(pr,Mr,Kr,Ht,at,er,Dr,Er);else{var Kt=pr.point;pr.x=pr.y=pr.point=null,dr(pr,Kt,Qr,qt,at,er,Dr,Er),dr(pr,Mr,Kr,Ht,at,er,Dr,Er)}else pr.x=Kr,pr.y=Ht,pr.point=Mr}else dr(pr,Mr,Kr,Ht,at,er,Dr,Er)}function dr(pr,Mr,Kr,Ht,at,er,Dr,Er){var Qr=(at+Dr)*.5,qt=(er+Er)*.5,Kt=Kr>=Qr,Ta=Ht>=qt,Ba=Ta<<1|Kt;pr.leaf=!1,pr=pr.nodes[Ba]||(pr.nodes[Ba]=Y_()),Kt?at=Qr:Dr=Qr,Ta?er=qt:Er=qt,hr(pr,Mr,Kr,Ht,at,er,Dr,Er)}var Lr=Y_();if(Lr.add=function(pr){hr(Lr,pr,+j(pr,++ae),+ee(pr,ae),he,we,Me,me)},Lr.visit=function(pr){cc(pr,Lr,he,we,Me,me)},Lr.find=function(pr){return fV(Lr,pr[0],pr[1],he,we,Me,me)},ae=-1,g==null){for(;++aeL||ee>z||ye=Be,nr=T>=tr,hr=nr<<1|sr,dr=hr+4;hrT&&(L=g.slice(T,L),P[z]?P[z]+=L:P[++z]=L),(q=q[0])===(C=C[0])?P[z]?P[z]+=C:P[++z]=C:(P[++z]=null,F.push({i:z,x:nl(q,C)})),T=ny.lastIndex;return T=0&&!(q=e.interpolators[T](v,g)););return q}e.interpolators=[function(v,g){var T=typeof g;return(T==="string"?wa.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?ty:U_:g instanceof Et?ty:Array.isArray(g)?Y0:T==="object"&&isNaN(g)?G_:nl)(v,g)}],e.interpolateArray=Y0;function Y0(v,g){var T=[],q=[],C=v.length,L=g.length,z=Math.min(v.length,g.length),P;for(P=0;P=0?v.slice(0,g):v,q=g>=0?v.slice(g+1):"in";return T=cV.get(T)||V_,q=vV.get(q)||U,hV(q(T.apply(null,r.call(arguments,1))))};function hV(v){return function(g){return g<=0?0:g>=1?1:v(g)}}function W_(v){return function(g){return 1-v(1-g)}}function X_(v){return function(g){return .5*(g<.5?v(2*g):2-v(2-2*g))}}function dV(v){return v*v}function pV(v){return v*v*v}function mV(v){if(v<=0)return 0;if(v>=1)return 1;var g=v*v,T=g*v;return 4*(v<.5?T:3*(v-g)+T-.75)}function yV(v){return function(g){return Math.pow(g,v)}}function gV(v){return 1-Math.cos(v*ar)}function xV(v){return Math.pow(2,10*(v-1))}function bV(v){return 1-Math.sqrt(1-v*v)}function _V(v,g){var T;return arguments.length<2&&(g=.45),arguments.length?T=g/or*Math.asin(1/v):(v=1,T=g/4),function(q){return 1+v*Math.pow(2,-10*q)*Math.sin((q-T)*or/g)}}function wV(v){return v||(v=1.70158),function(g){return g*g*((v+1)*g-v)}}function TV(v){return v<1/2.75?7.5625*v*v:v<2/2.75?7.5625*(v-=1.5/2.75)*v+.75:v<2.5/2.75?7.5625*(v-=2.25/2.75)*v+.9375:7.5625*(v-=2.625/2.75)*v+.984375}e.interpolateHcl=MV;function MV(v,g){v=e.hcl(v),g=e.hcl(g);var T=v.h,q=v.c,C=v.l,L=g.h-T,z=g.c-q,P=g.l-C;return isNaN(z)&&(z=0,q=isNaN(q)?g.c:q),isNaN(L)?(L=0,T=isNaN(T)?g.h:T):L>180?L-=360:L<-180&&(L+=360),function(F){return ni(T+L*F,q+z*F,C+P*F)+""}}e.interpolateHsl=AV;function AV(v,g){v=e.hsl(v),g=e.hsl(g);var T=v.h,q=v.s,C=v.l,L=g.h-T,z=g.s-q,P=g.l-C;return isNaN(z)&&(z=0,q=isNaN(q)?g.s:q),isNaN(L)?(L=0,T=isNaN(T)?g.h:T):L>180?L-=360:L<-180&&(L+=360),function(F){return Ha(T+L*F,q+z*F,C+P*F)+""}}e.interpolateLab=kV;function kV(v,g){v=e.lab(v),g=e.lab(g);var T=v.l,q=v.a,C=v.b,L=g.l-T,z=g.a-q,P=g.b-C;return function(F){return S0(T+L*F,q+z*F,C+P*F)+""}}e.interpolateRound=Z_;function Z_(v,g){return g-=v,function(T){return Math.round(v+g*T)}}e.transform=function(v){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(T){if(T!=null){g.setAttribute("transform",T);var q=g.transform.baseVal.consolidate()}return new J_(q?q.matrix:CV)})(v)};function J_(v){var g=[v.a,v.b],T=[v.c,v.d],q=K_(g),C=$_(g,T),L=K_(qV(T,g,-C))||0;g[0]*T[1]180?g+=360:g-v>180&&(v+=360),q.push({i:T.push(uu(T)+"rotate(",null,")")-2,x:nl(v,g)})):g&&T.push(uu(T)+"rotate("+g+")")}function DV(v,g,T,q){v!==g?q.push({i:T.push(uu(T)+"skewX(",null,")")-2,x:nl(v,g)}):g&&T.push(uu(T)+"skewX("+g+")")}function EV(v,g,T,q){if(v[0]!==g[0]||v[1]!==g[1]){var C=T.push(uu(T)+"scale(",null,",",null,")");q.push({i:C-4,x:nl(v[0],g[0])},{i:C-2,x:nl(v[1],g[1])})}else(g[0]!==1||g[1]!==1)&&T.push(uu(T)+"scale("+g+")")}function Q_(v,g){var T=[],q=[];return v=e.transform(v),g=e.transform(g),SV(v.translate,g.translate,T,q),LV(v.rotate,g.rotate,T,q),DV(v.skew,g.skew,T,q),EV(v.scale,g.scale,T,q),v=g=null,function(C){for(var L=-1,z=q.length,P;++L0?L=me:(T.c=null,T.t=NaN,T=null,g.end({type:"end",alpha:L=0})):me>0&&(g.start({type:"start",alpha:L=me}),T=N0(v.tick)),v):L},v.start=function(){var me,Be=ye.length,tr=Te.length,sr=q[0],nr=q[1],hr,dr;for(me=0;me=0;)L.push(K=Z[F]),K.parent=P,K.depth=P.depth+1;T&&(P.value=0),P.children=Z}else T&&(P.value=+T.call(q,P,P.depth)||0),delete P.children;return Ri(C,function(j){var ee,ye;v&&(ee=j.children)&&ee.sort(v),T&&(ye=j.parent)&&(ye.value+=j.value)}),z}return q.sort=function(C){return arguments.length?(v=C,q):v},q.children=function(C){return arguments.length?(g=C,q):g},q.value=function(C){return arguments.length?(T=C,q):T},q.revalue=function(C){return T&&(hc(C,function(L){L.children&&(L.value=0)}),Ri(C,function(L){var z;L.children||(L.value=+T.call(q,L,L.depth)||0),(z=L.parent)&&(z.value+=L.value)})),C},q};function vc(v,g){return e.rebind(v,g,"sort","children","value"),v.nodes=v,v.links=XV,v}function hc(v,g){for(var T=[v];(v=T.pop())!=null;)if(g(v),(C=v.children)&&(q=C.length))for(var q,C;--q>=0;)T.push(C[q])}function Ri(v,g){for(var T=[v],q=[];(v=T.pop())!=null;)if(q.push(v),(z=v.children)&&(L=z.length))for(var C=-1,L,z;++CC&&(C=P),q.push(P)}for(z=0;zq&&(T=g,q=C);return T}function eW(v){return v.reduce(rW,0)}function rW(v,g){return v+g[1]}e.layout.histogram=function(){var v=!0,g=Number,T=aW,q=tW;function C(L,ee){for(var P=[],F=L.map(g,this),Z=T.call(this,F,ee),K=q.call(this,Z,F,ee),j,ee=-1,ye=F.length,Te=K.length-1,ae=v?1:1/ye,ue;++ee0)for(ee=-1;++ee=Z[0]&&ue<=Z[1]&&(j=P[e.bisect(K,ue,1,Te)-1],j.y+=ae,j.push(L[ee]));return P}return C.value=function(L){return arguments.length?(g=L,C):g},C.range=function(L){return arguments.length?(T=Nr(L),C):T},C.bins=function(L){return arguments.length?(q=typeof L=="number"?function(z){return t4(z,L)}:Nr(L),C):q},C.frequency=function(L){return arguments.length?(v=!!L,C):v},C};function tW(v,g){return t4(v,Math.ceil(Math.log(g.length)/Math.LN2+1))}function t4(v,g){for(var T=-1,q=+v[0],C=(v[1]-q)/g,L=[];++T<=g;)L[T]=C*T+q;return L}function aW(v){return[e.min(v),e.max(v)]}e.layout.pack=function(){var v=e.layout.hierarchy().sort(nW),g=0,T=[1,1],q;function C(L,z){var P=v.call(this,L,z),F=P[0],Z=T[0],K=T[1],j=q==null?Math.sqrt:typeof q=="function"?q:function(){return q};if(F.x=F.y=0,Ri(F,function(ye){ye.r=+j(ye.value)}),Ri(F,i4),g){var ee=g*(q?1:Math.max(2*F.r/Z,2*F.r/K))/2;Ri(F,function(ye){ye.r+=ee}),Ri(F,i4),Ri(F,function(ye){ye.r-=ee})}return l4(F,Z/2,K/2,q?1:1/Math.max(2*F.r/Z,2*F.r/K)),P}return C.size=function(L){return arguments.length?(T=L,C):T},C.radius=function(L){return arguments.length?(q=L==null||typeof L=="function"?L:+L,C):q},C.padding=function(L){return arguments.length?(g=+L,C):g},vc(C,v)};function nW(v,g){return v.value-g.value}function oy(v,g){var T=v._pack_next;v._pack_next=g,g._pack_prev=v,g._pack_next=T,T._pack_prev=g}function a4(v,g){v._pack_next=g,g._pack_prev=v}function n4(v,g){var T=g.x-v.x,q=g.y-v.y,C=v.r+g.r;return .999*C*C>T*T+q*q}function i4(v){if(!(g=v.children)||!(ee=g.length))return;var g,T=1/0,q=-1/0,C=1/0,L=-1/0,z,P,F,Z,K,j,ee;function ye(me){T=Math.min(me.x-me.r,T),q=Math.max(me.x+me.r,q),C=Math.min(me.y-me.r,C),L=Math.max(me.y+me.r,L)}if(g.forEach(iW),z=g[0],z.x=-z.r,z.y=0,ye(z),ee>1&&(P=g[1],P.x=P.r,P.y=0,ye(P),ee>2))for(F=g[2],o4(z,P,F),ye(F),oy(z,F),z._pack_prev=F,oy(F,P),P=z._pack_next,Z=3;Zue.x&&(ue=Be),Be.depth>he.depth&&(he=Be)});var we=g(ae,ue)/2-ae.x,Me=T[0]/(ue.x+g(ue,ae)/2+we),me=T[1]/(he.depth||1);hc(ye,function(Be){Be.x=(Be.x+we)*Me,Be.y=Be.depth*me})}return ee}function L(K){for(var j={A:null,children:[K]},ee=[j],ye;(ye=ee.pop())!=null;)for(var Te=ye.children,ae,ue=0,he=Te.length;ue0&&(oW(uW(ae,K,ee),K,Be),he+=Be,we+=Be),Me+=ae.m,he+=ye.m,me+=ue.m,we+=Te.m;ae&&!uy(Te)&&(Te.t=ae,Te.m+=Me-we),ye&&!sy(ue)&&(ue.t=ye,ue.m+=he-me,ee=K)}return ee}function Z(K){K.x*=T[0],K.y=K.depth*T[1]}return C.separation=function(K){return arguments.length?(g=K,C):g},C.size=function(K){return arguments.length?(q=(T=K)==null?Z:null,C):q?null:T},C.nodeSize=function(K){return arguments.length?(q=(T=K)==null?null:Z,C):q?T:null},vc(C,v)};function s4(v,g){return v.parent==g.parent?1:2}function sy(v){var g=v.children;return g.length?g[0]:v.t}function uy(v){var g=v.children,T;return(T=g.length)?g[T-1]:v.t}function oW(v,g,T){var q=T/(g.i-v.i);g.c-=q,g.s+=T,v.c+=q,g.z+=T,g.m+=T}function sW(v){for(var g=0,T=0,q=v.children,C=q.length,L;--C>=0;)L=q[C],L.z+=g,L.m+=g,g+=L.s+(T+=L.c)}function uW(v,g,T){return v.a.parent===g.parent?v.a:T}e.layout.cluster=function(){var v=e.layout.hierarchy().sort(null).value(null),g=s4,T=[1,1],q=!1;function C(L,z){var P=v.call(this,L,z),F=P[0],Z,K=0;Ri(F,function(ae){var ue=ae.children;ue&&ue.length?(ae.x=cW(ue),ae.y=fW(ue)):(ae.x=Z?K+=g(ae,Z):0,ae.y=0,Z=ae)});var j=u4(F),ee=f4(F),ye=j.x-g(j,ee)/2,Te=ee.x+g(ee,j)/2;return Ri(F,q?function(ae){ae.x=(ae.x-F.x)*T[0],ae.y=(F.y-ae.y)*T[1]}:function(ae){ae.x=(ae.x-ye)/(Te-ye)*T[0],ae.y=(1-(F.y?ae.y/F.y:1))*T[1]}),P}return C.separation=function(L){return arguments.length?(g=L,C):g},C.size=function(L){return arguments.length?(q=(T=L)==null,C):q?null:T},C.nodeSize=function(L){return arguments.length?(q=(T=L)!=null,C):q?T:null},vc(C,v)};function fW(v){return 1+e.max(v,function(g){return g.y})}function cW(v){return v.reduce(function(g,T){return g+T.x},0)/v.length}function u4(v){var g=v.children;return g&&g.length?u4(g[0]):v}function f4(v){var g=v.children,T;return g&&(T=g.length)?f4(g[T-1]):v}e.layout.treemap=function(){var v=e.layout.hierarchy(),g=Math.round,T=[1,1],q=null,C=fy,L=!1,z,P="squarify",F=.5*(1+Math.sqrt(5));function Z(ae,ue){for(var he=-1,we=ae.length,Me,me;++he0;)we.push(me=Me[nr-1]),we.area+=me.area,P!=="squarify"||(tr=ee(we,sr))<=Be?(Me.pop(),Be=tr):(we.area-=we.pop().area,ye(we,sr,he,!1),sr=Math.min(he.dx,he.dy),we.length=we.area=0,Be=1/0);we.length&&(ye(we,sr,he,!0),we.length=we.area=0),ue.forEach(K)}}function j(ae){var ue=ae.children;if(ue&&ue.length){var he=C(ae),we=ue.slice(),Me,me=[];for(Z(we,he.dx*he.dy/ae.value),me.area=0;Me=we.pop();)me.push(Me),me.area+=Me.area,Me.z!=null&&(ye(me,Me.z?he.dx:he.dy,he,!we.length),me.length=me.area=0);ue.forEach(j)}}function ee(ae,ue){for(var he=ae.area,we,Me=0,me=1/0,Be=-1,tr=ae.length;++BeMe&&(Me=we));return he*=he,ue*=ue,he?Math.max(ue*Me*F/he,he/(ue*me*F)):1/0}function ye(ae,ue,he,we){var Me=-1,me=ae.length,Be=he.x,tr=he.y,sr=ue?g(ae.area/ue):0,nr;if(ue==he.dx){for((we||sr>he.dy)&&(sr=he.dy);++Mehe.dx)&&(sr=he.dx);++Me1);return v+g*q*Math.sqrt(-2*Math.log(L)/L)}},logNormal:function(){var v=e.random.normal.apply(e,arguments);return function(){return Math.exp(v())}},bates:function(v){var g=e.random.irwinHall(v);return function(){return g()/v}},irwinHall:function(v){return function(){for(var g=0,T=0;T2?dW:vW,Z=q?RV:PV;return C=F(v,g,Z,T),L=F(g,v,Z,zo),P}function P(F){return C(F)}return P.invert=function(F){return L(F)},P.domain=function(F){return arguments.length?(v=F.map(Number),z()):v},P.range=function(F){return arguments.length?(g=F,z()):g},P.rangeRound=function(F){return P.range(F).interpolate(Z_)},P.clamp=function(F){return arguments.length?(q=F,z()):q},P.interpolate=function(F){return arguments.length?(T=F,z()):T},P.ticks=function(F){return hy(v,F)},P.tickFormat=function(F,Z){return d3_scale_linearTickFormat(v,F,Z)},P.nice=function(F){return p4(v,F),z()},P.copy=function(){return h4(v,g,T,q)},z()}function d4(v,g){return e.rebind(v,g,"range","rangeRound","interpolate","clamp")}function p4(v,g){return cy(v,v4(vy(v,g)[2])),cy(v,v4(vy(v,g)[2])),v}function vy(v,g){g==null&&(g=10);var T=G0(v),q=T[1]-T[0],C=Math.pow(10,Math.floor(Math.log(q/g)/Math.LN10)),L=g/q*C;return L<=.15?C*=10:L<=.35?C*=5:L<=.75&&(C*=2),T[0]=Math.ceil(T[0]/C)*C,T[1]=Math.floor(T[1]/C)*C+C*.5,T[2]=C,T}function hy(v,g){return e.range.apply(e,vy(v,g))}var pW={s:1,g:1,p:1,r:1,e:1};function m4(v){return-Math.floor(Math.log(v)/Math.LN10+.01)}function Npe(v,g){var T=m4(g[2]);return v in pW?Math.abs(T-m4(Math.max(b(g[0]),b(g[1]))))+ +(v!=="e"):T-(v==="%")*2}e.scale.log=function(){return y4(e.scale.linear().domain([0,1]),10,!0,[1,10])};function y4(v,g,T,q){function C(P){return(T?Math.log(P<0?0:P):-Math.log(P>0?0:-P))/Math.log(g)}function L(P){return T?Math.pow(g,P):-Math.pow(g,-P)}function z(P){return v(C(P))}return z.invert=function(P){return L(v.invert(P))},z.domain=function(P){return arguments.length?(T=P[0]>=0,v.domain((q=P.map(Number)).map(C)),z):q},z.base=function(P){return arguments.length?(g=+P,v.domain(q.map(C)),z):g},z.nice=function(){var P=cy(q.map(C),T?Math:mW);return v.domain(P),q=P.map(L),z},z.ticks=function(){var P=G0(q),F=[],Z=P[0],K=P[1],j=Math.floor(C(Z)),ee=Math.ceil(C(K)),ye=g%1?2:g;if(isFinite(ee-j)){if(T){for(;j0;Te--)F.push(L(j)*Te);for(j=0;F[j]K;ee--);F=F.slice(j,ee)}return F},z.copy=function(){return y4(v.copy(),g,T,q)},d4(z,v)}var mW={floor:function(v){return-Math.ceil(-v)},ceil:function(v){return-Math.floor(-v)}};e.scale.pow=function(){return g4(e.scale.linear(),1,[0,1])};function g4(v,g,T){var q=V0(g),C=V0(1/g);function L(z){return v(q(z))}return L.invert=function(z){return C(v.invert(z))},L.domain=function(z){return arguments.length?(v.domain((T=z.map(Number)).map(q)),L):T},L.ticks=function(z){return hy(T,z)},L.tickFormat=function(z,P){return d3_scale_linearTickFormat(T,z,P)},L.nice=function(z){return L.domain(p4(T,z))},L.exponent=function(z){return arguments.length?(q=V0(g=z),C=V0(1/g),v.domain(T.map(q)),L):g},L.copy=function(){return g4(v.copy(),g,T)},d4(L,v)}function V0(v){return function(g){return g<0?-Math.pow(-g,v):Math.pow(g,v)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return x4([],{t:"range",a:[[]]})};function x4(v,g){var T,q,C;function L(P){return q[((T.get(P)||(g.t==="range"?T.set(P,v.push(P)):NaN))-1)%q.length]}function z(P,F){return e.range(v.length).map(function(Z){return P+F*Z})}return L.domain=function(P){if(!arguments.length)return v;v=[],T=new x;for(var F=-1,Z=P.length,K;++F0?T[L-1]:v[0],Lee?0:1;if(K=lr)return F(K,Te)+(Z?F(Z,1-Te):"")+"Z";var ae,ue,he,we,Me=0,me=0,Be,tr,sr,nr,hr,dr,Lr,pr,Mr=[];if((we=(+z.apply(this,arguments)||0)/2)&&(he=q===W0?Math.sqrt(Z*Z+K*K):+q.apply(this,arguments),Te||(me*=-1),K&&(me=It(he/K*Math.sin(we))),Z&&(Me=It(he/Z*Math.sin(we)))),K){Be=K*Math.cos(j+me),tr=K*Math.sin(j+me),sr=K*Math.cos(ee-me),nr=K*Math.sin(ee-me);var Kr=Math.abs(ee-j-2*me)<=Se?0:1;if(me&&X0(Be,tr,sr,nr)===Te^Kr){var Ht=(j+ee)/2;Be=K*Math.cos(Ht),tr=K*Math.sin(Ht),sr=nr=null}}else Be=tr=0;if(Z){hr=Z*Math.cos(ee-Me),dr=Z*Math.sin(ee-Me),Lr=Z*Math.cos(j+Me),pr=Z*Math.sin(j+Me);var at=Math.abs(j-ee+2*Me)<=Se?0:1;if(Me&&X0(hr,dr,Lr,pr)===1-Te^at){var er=(j+ee)/2;hr=Z*Math.cos(er),dr=Z*Math.sin(er),Lr=pr=null}}else hr=dr=0;if(ye>ce&&(ae=Math.min(Math.abs(K-Z)/2,+T.apply(this,arguments)))>.001){ue=Z0?0:1}function Z0(v,g,T,q,C){var L=v[0]-g[0],z=v[1]-g[1],P=(C?q:-q)/Math.sqrt(L*L+z*z),F=P*z,Z=-P*L,K=v[0]+F,j=v[1]+Z,ee=g[0]+F,ye=g[1]+Z,Te=(K+ee)/2,ae=(j+ye)/2,ue=ee-K,he=ye-j,we=ue*ue+he*he,Me=T-q,me=K*ye-ee*j,Be=(he<0?-1:1)*Math.sqrt(Math.max(0,Me*Me*we-me*me)),tr=(me*he-ue*Be)/we,sr=(-me*ue-he*Be)/we,nr=(me*he+ue*Be)/we,hr=(-me*ue+he*Be)/we,dr=tr-Te,Lr=sr-ae,pr=nr-Te,Mr=hr-ae;return dr*dr+Lr*Lr>pr*pr+Mr*Mr&&(tr=nr,sr=hr),[[tr-F,sr-Z],[tr*T/Me,sr*T/Me]]}function k4(){return!0}function q4(v){var g=nu,T=lc,q=k4,C=li,L=C.key,z=.7;function P(F){var Z=[],K=[],j=-1,ee=F.length,ye,Te=Nr(g),ae=Nr(T);function ue(){Z.push("M",C(v(K),z))}for(;++j1?v.join("L"):v+"Z"}function C4(v){return v.join("L")+"Z"}function AW(v){for(var g=0,T=v.length,q=v[0],C=[q[0],",",q[1]];++g1&&C.push("H",q[0]),C.join("")}function py(v){for(var g=0,T=v.length,q=v[0],C=[q[0],",",q[1]];++g1){P=g[1],L=v[F],F++,q+="C"+(C[0]+z[0])+","+(C[1]+z[1])+","+(L[0]-P[0])+","+(L[1]-P[1])+","+L[0]+","+L[1];for(var Z=2;Z9&&(L=T*3/Math.sqrt(L),z[P]=L*q,z[P+1]=L*C));for(P=-1;++P<=F;)L=(v[Math.min(F,P+1)][0]-v[Math.max(0,P-1)][0])/(6*(1+z[P]*z[P])),g.push([L||0,z[P]*L||0]);return g}function RW(v){return v.length<3?li(v):v[0]+J0(v,PW(v))}e.svg.line.radial=function(){var v=q4(E4);return v.radius=v.x,delete v.x,v.angle=v.y,delete v.y,v};function E4(v){for(var g,T=-1,q=v.length,C,L;++TSe)+",1 "+j}function Z(K,j,ee,ye){return"Q 0,0 "+ye}return L.radius=function(K){return arguments.length?(T=Nr(K),L):T},L.source=function(K){return arguments.length?(v=Nr(K),L):v},L.target=function(K){return arguments.length?(g=Nr(K),L):g},L.startAngle=function(K){return arguments.length?(q=Nr(K),L):q},L.endAngle=function(K){return arguments.length?(C=Nr(K),L):C},L};function zW(v){return v.radius}e.svg.diagonal=function(){var v=R4,g=z4,T=N4;function q(C,L){var z=v.call(this,C,L),P=g.call(this,C,L),F=(z.y+P.y)/2,Z=[z,{x:z.x,y:F},{x:P.x,y:F},P];return Z=Z.map(T),"M"+Z[0]+"C"+Z[1]+" "+Z[2]+" "+Z[3]}return q.source=function(C){return arguments.length?(v=Nr(C),q):v},q.target=function(C){return arguments.length?(g=Nr(C),q):g},q.projection=function(C){return arguments.length?(T=C,q):T},q};function N4(v){return[v.x,v.y]}e.svg.diagonal.radial=function(){var v=e.svg.diagonal(),g=N4,T=v.projection;return v.projection=function(q){return arguments.length?T(NW(g=q)):g},v};function NW(v){return function(){var g=v.apply(this,arguments),T=g[0],q=g[1]-ar;return[T*Math.cos(q),T*Math.sin(q)]}}e.svg.symbol=function(){var v=IW,g=FW;function T(q,C){return(I4.get(v.call(this,q,C))||F4)(g.call(this,q,C))}return T.type=function(q){return arguments.length?(v=Nr(q),T):v},T.size=function(q){return arguments.length?(g=Nr(q),T):g},T};function FW(){return 64}function IW(){return"circle"}function F4(v){var g=Math.sqrt(v/Se);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var I4=e.map({circle:F4,cross:function(v){var g=Math.sqrt(v/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(v){var g=Math.sqrt(v/(2*H4)),T=g*H4;return"M0,"+-g+"L"+T+",0 0,"+g+" "+-T+",0Z"},square:function(v){var g=Math.sqrt(v)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(v){var g=Math.sqrt(v/$0),T=g*$0/2;return"M0,"+T+"L"+g+","+-T+" "+-g+","+-T+"Z"},"triangle-up":function(v){var g=Math.sqrt(v/$0),T=g*$0/2;return"M0,"+-T+"L"+g+","+T+" "+-g+","+T+"Z"}});e.svg.symbolTypes=I4.keys();var $0=Math.sqrt(3),H4=Math.tan(30*Ar);_e.transition=function(v){for(var g=No||++B4,T=_y(v),q=[],C,L,z=Q0||{time:Date.now(),ease:mV,delay:0,duration:250},P=-1,F=this.length;++P0;)j[--we].call(v,he);if(ue>=1)return z.event&&z.event.end.call(v,v.__data__,g),--L.count?delete L[q]:delete v[T],1}z||(P=C.time,F=N0(ee,0,P),z=L[q]={tween:new x,time:P,timer:F,delay:C.delay,duration:C.duration,ease:C.ease,index:g},C=null,++L.count)}e.svg.axis=function(){var v=e.scale.linear(),g=Y4,T=6,q=6,C=3,L=[10],z=null,P;function F(Z){Z.each(function(){var K=e.select(this),j=this.__chart__||v,ee=this.__chart__=v.copy(),ye=z==null?ee.ticks?ee.ticks.apply(ee,L):ee.domain():z,Te=P==null?ee.tickFormat?ee.tickFormat.apply(ee,L):U:P,ae=K.selectAll(".tick").data(ye,ee),ue=ae.enter().insert("g",".domain").attr("class","tick").style("opacity",ce),he=e.transition(ae.exit()).style("opacity",ce).remove(),we=e.transition(ae.order()).style("opacity",1),Me=Math.max(T,0)+C,me,Be=U0(ee),tr=K.selectAll(".domain").data([0]),sr=(tr.enter().append("path").attr("class","domain"),e.transition(tr));ue.append("line"),ue.append("text");var nr=ue.select("line"),hr=we.select("line"),dr=ae.select("text").text(Te),Lr=ue.select("text"),pr=we.select("text"),Mr=g==="top"||g==="left"?-1:1,Kr,Ht,at,er;if(g==="bottom"||g==="top"?(me=BW,Kr="x",at="y",Ht="x2",er="y2",dr.attr("dy",Mr<0?"0em":".71em").style("text-anchor","middle"),sr.attr("d","M"+Be[0]+","+Mr*q+"V0H"+Be[1]+"V"+Mr*q)):(me=YW,Kr="y",at="x",Ht="y2",er="x2",dr.attr("dy",".32em").style("text-anchor",Mr<0?"end":"start"),sr.attr("d","M"+Mr*q+","+Be[0]+"H0V"+Be[1]+"H"+Mr*q)),nr.attr(er,Mr*T),Lr.attr(at,Mr*Me),hr.attr(Ht,0).attr(er,Mr*T),pr.attr(Kr,0).attr(at,Mr*Me),ee.rangeBand){var Dr=ee,Er=Dr.rangeBand()/2;j=ee=function(Qr){return Dr(Qr)+Er}}else j.rangeBand?j=ee:he.call(me,ee,j);ue.call(me,j,ee),we.call(me,ee,ee)})}return F.scale=function(Z){return arguments.length?(v=Z,F):v},F.orient=function(Z){return arguments.length?(g=Z in OW?Z+"":Y4,F):g},F.ticks=function(){return arguments.length?(L=t(arguments),F):L},F.tickValues=function(Z){return arguments.length?(z=Z,F):z},F.tickFormat=function(Z){return arguments.length?(P=Z,F):P},F.tickSize=function(Z){var K=arguments.length;return K?(T=+Z,q=+arguments[K-1],F):T},F.innerTickSize=function(Z){return arguments.length?(T=+Z,F):T},F.outerTickSize=function(Z){return arguments.length?(q=+Z,F):q},F.tickPadding=function(Z){return arguments.length?(C=+Z,F):C},F.tickSubdivide=function(){return arguments.length&&F},F};var Y4="bottom",OW={top:1,right:1,bottom:1,left:1};function BW(v,g,T){v.attr("transform",function(q){var C=g(q);return"translate("+(isFinite(C)?C:T(q))+",0)"})}function YW(v,g,T){v.attr("transform",function(q){var C=g(q);return"translate(0,"+(isFinite(C)?C:T(q))+")"})}e.svg.brush=function(){var v=fe(K,"brushstart","brush","brushend"),g=null,T=null,q=[0,0],C=[0,0],L,z,P=!0,F=!0,Z=wy[0];function K(ae){ae.each(function(){var ue=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Te).on("touchstart.brush",Te),he=ue.selectAll(".background").data([0]);he.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ue.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var we=ue.selectAll(".resize").data(Z,U);we.exit().remove(),we.enter().append("g").attr("class",function(tr){return"resize "+tr}).style("cursor",function(tr){return GW[tr]}).append("rect").attr("x",function(tr){return/[ew]$/.test(tr)?-3:null}).attr("y",function(tr){return/^[ns]/.test(tr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),we.style("display",K.empty()?"none":null);var Me=e.transition(ue),me=e.transition(he),Be;g&&(Be=U0(g),me.attr("x",Be[0]).attr("width",Be[1]-Be[0]),ee(Me)),T&&(Be=U0(T),me.attr("y",Be[0]).attr("height",Be[1]-Be[0]),ye(Me)),j(Me)})}K.event=function(ae){ae.each(function(){var ue=v.of(this,arguments),he={x:q,y:C,i:L,j:z},we=this.__chart__||he;this.__chart__=he,No?e.select(this).transition().each("start.brush",function(){L=we.i,z=we.j,q=we.x,C=we.y,ue({type:"brushstart"})}).tween("brush:brush",function(){var Me=Y0(q,he.x),me=Y0(C,he.y);return L=z=null,function(Be){q=he.x=Me(Be),C=he.y=me(Be),ue({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=he.i,z=he.j,ue({type:"brush",mode:"resize"}),ue({type:"brushend"})}):(ue({type:"brushstart"}),ue({type:"brush",mode:"resize"}),ue({type:"brushend"}))})};function j(ae){ae.selectAll(".resize").attr("transform",function(ue){return"translate("+q[+/e$/.test(ue)]+","+C[+/^s/.test(ue)]+")"})}function ee(ae){ae.select(".extent").attr("x",q[0]),ae.selectAll(".extent,.n>rect,.s>rect").attr("width",q[1]-q[0])}function ye(ae){ae.select(".extent").attr("y",C[0]),ae.selectAll(".extent,.e>rect,.w>rect").attr("height",C[1]-C[0])}function Te(){var ae=this,ue=e.select(e.event.target),he=v.of(ae,arguments),we=e.select(ae),Me=ue.datum(),me=!/^(n|s)$/.test(Me)&&g,Be=!/^(e|w)$/.test(Me)&&T,tr=ue.classed("extent"),sr=vr(ae),nr,hr=e.mouse(ae),dr,Lr=e.select(i(ae)).on("keydown.brush",Kr).on("keyup.brush",Ht);if(e.event.changedTouches?Lr.on("touchmove.brush",at).on("touchend.brush",Dr):Lr.on("mousemove.brush",at).on("mouseup.brush",Dr),we.interrupt().selectAll("*").interrupt(),tr)hr[0]=q[0]-hr[0],hr[1]=C[0]-hr[1];else if(Me){var pr=+/w$/.test(Me),Mr=+/^n/.test(Me);dr=[q[1-pr]-hr[0],C[1-Mr]-hr[1]],hr[0]=q[pr],hr[1]=C[Mr]}else e.event.altKey&&(nr=hr.slice());we.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ue.style("cursor")),he({type:"brushstart"}),at();function Kr(){e.event.keyCode==32&&(tr||(nr=null,hr[0]-=q[1],hr[1]-=C[1],tr=2),re())}function Ht(){e.event.keyCode==32&&tr==2&&(hr[0]+=q[1],hr[1]+=C[1],tr=0,re())}function at(){var Er=e.mouse(ae),Qr=!1;dr&&(Er[0]+=dr[0],Er[1]+=dr[1]),tr||(e.event.altKey?(nr||(nr=[(q[0]+q[1])/2,(C[0]+C[1])/2]),hr[0]=q[+(Er[0]{(function(e,r){typeof nh=="object"&&typeof X4!="undefined"?r(nh):(e=e||self,r(e.d3=e.d3||{}))})(nh,function(e){"use strict";var r=new Date,t=new Date;function a(ie,Ae,Ze,cr){function fr(oe){return ie(oe=arguments.length===0?new Date:new Date(+oe)),oe}return fr.floor=function(oe){return ie(oe=new Date(+oe)),oe},fr.ceil=function(oe){return ie(oe=new Date(oe-1)),Ae(oe,1),ie(oe),oe},fr.round=function(oe){var Ce=fr(oe),Ie=fr.ceil(oe);return oe-Ce0))return We;do We.push(Ue=new Date(+oe)),Ae(oe,Ie),ie(oe);while(Ue=Ce)for(;ie(Ce),!oe(Ce);)Ce.setTime(Ce-1)},function(Ce,Ie){if(Ce>=Ce)if(Ie<0)for(;++Ie<=0;)for(;Ae(Ce,-1),!oe(Ce););else for(;--Ie>=0;)for(;Ae(Ce,1),!oe(Ce););})},Ze&&(fr.count=function(oe,Ce){return r.setTime(+oe),t.setTime(+Ce),ie(r),ie(t),Math.floor(Ze(r,t))},fr.every=function(oe){return oe=Math.floor(oe),!isFinite(oe)||!(oe>0)?null:oe>1?fr.filter(cr?function(Ce){return cr(Ce)%oe===0}:function(Ce){return fr.count(0,Ce)%oe===0}):fr}),fr}var n=a(function(){},function(ie,Ae){ie.setTime(+ie+Ae)},function(ie,Ae){return Ae-ie});n.every=function(ie){return ie=Math.floor(ie),!isFinite(ie)||!(ie>0)?null:ie>1?a(function(Ae){Ae.setTime(Math.floor(Ae/ie)*ie)},function(Ae,Ze){Ae.setTime(+Ae+Ze*ie)},function(Ae,Ze){return(Ze-Ae)/ie}):n};var i=n.range,l=1e3,o=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(ie){ie.setTime(ie-ie.getMilliseconds())},function(ie,Ae){ie.setTime(+ie+Ae*l)},function(ie,Ae){return(Ae-ie)/l},function(ie){return ie.getUTCSeconds()}),h=c.range,d=a(function(ie){ie.setTime(ie-ie.getMilliseconds()-ie.getSeconds()*l)},function(ie,Ae){ie.setTime(+ie+Ae*o)},function(ie,Ae){return(Ae-ie)/o},function(ie){return ie.getMinutes()}),p=d.range,y=a(function(ie){ie.setTime(ie-ie.getMilliseconds()-ie.getSeconds()*l-ie.getMinutes()*o)},function(ie,Ae){ie.setTime(+ie+Ae*s)},function(ie,Ae){return(Ae-ie)/s},function(ie){return ie.getHours()}),m=y.range,b=a(function(ie){ie.setHours(0,0,0,0)},function(ie,Ae){ie.setDate(ie.getDate()+Ae)},function(ie,Ae){return(Ae-ie-(Ae.getTimezoneOffset()-ie.getTimezoneOffset())*o)/u},function(ie){return ie.getDate()-1}),_=b.range;function w(ie){return a(function(Ae){Ae.setDate(Ae.getDate()-(Ae.getDay()+7-ie)%7),Ae.setHours(0,0,0,0)},function(Ae,Ze){Ae.setDate(Ae.getDate()+Ze*7)},function(Ae,Ze){return(Ze-Ae-(Ze.getTimezoneOffset()-Ae.getTimezoneOffset())*o)/f})}var x=w(0),M=w(1),k=w(2),A=w(3),S=w(4),D=w(5),E=w(6),R=x.range,N=M.range,I=k.range,H=A.range,U=S.range,X=D.range,Y=E.range,O=a(function(ie){ie.setDate(1),ie.setHours(0,0,0,0)},function(ie,Ae){ie.setMonth(ie.getMonth()+Ae)},function(ie,Ae){return Ae.getMonth()-ie.getMonth()+(Ae.getFullYear()-ie.getFullYear())*12},function(ie){return ie.getMonth()}),G=O.range,J=a(function(ie){ie.setMonth(0,1),ie.setHours(0,0,0,0)},function(ie,Ae){ie.setFullYear(ie.getFullYear()+Ae)},function(ie,Ae){return Ae.getFullYear()-ie.getFullYear()},function(ie){return ie.getFullYear()});J.every=function(ie){return!isFinite(ie=Math.floor(ie))||!(ie>0)?null:a(function(Ae){Ae.setFullYear(Math.floor(Ae.getFullYear()/ie)*ie),Ae.setMonth(0,1),Ae.setHours(0,0,0,0)},function(Ae,Ze){Ae.setFullYear(Ae.getFullYear()+Ze*ie)})};var $=J.range,re=a(function(ie){ie.setUTCSeconds(0,0)},function(ie,Ae){ie.setTime(+ie+Ae*o)},function(ie,Ae){return(Ae-ie)/o},function(ie){return ie.getUTCMinutes()}),le=re.range,fe=a(function(ie){ie.setUTCMinutes(0,0,0)},function(ie,Ae){ie.setTime(+ie+Ae*s)},function(ie,Ae){return(Ae-ie)/s},function(ie){return ie.getUTCHours()}),pe=fe.range,Q=a(function(ie){ie.setUTCHours(0,0,0,0)},function(ie,Ae){ie.setUTCDate(ie.getUTCDate()+Ae)},function(ie,Ae){return(Ae-ie)/u},function(ie){return ie.getUTCDate()-1}),qe=Q.range;function ve(ie){return a(function(Ae){Ae.setUTCDate(Ae.getUTCDate()-(Ae.getUTCDay()+7-ie)%7),Ae.setUTCHours(0,0,0,0)},function(Ae,Ze){Ae.setUTCDate(Ae.getUTCDate()+Ze*7)},function(Ae,Ze){return(Ze-Ae)/f})}var be=ve(0),se=ve(1),_e=ve(2),V=ve(3),te=ve(4),W=ve(5),xe=ve(6),ke=be.range,ge=se.range,ze=_e.range,Fe=V.range,Ee=te.range,Ne=W.range,Ve=xe.range,Ge=a(function(ie){ie.setUTCDate(1),ie.setUTCHours(0,0,0,0)},function(ie,Ae){ie.setUTCMonth(ie.getUTCMonth()+Ae)},function(ie,Ae){return Ae.getUTCMonth()-ie.getUTCMonth()+(Ae.getUTCFullYear()-ie.getUTCFullYear())*12},function(ie){return ie.getUTCMonth()}),De=Ge.range,He=a(function(ie){ie.setUTCMonth(0,1),ie.setUTCHours(0,0,0,0)},function(ie,Ae){ie.setUTCFullYear(ie.getUTCFullYear()+Ae)},function(ie,Ae){return Ae.getUTCFullYear()-ie.getUTCFullYear()},function(ie){return ie.getUTCFullYear()});He.every=function(ie){return!isFinite(ie=Math.floor(ie))||!(ie>0)?null:a(function(Ae){Ae.setUTCFullYear(Math.floor(Ae.getUTCFullYear()/ie)*ie),Ae.setUTCMonth(0,1),Ae.setUTCHours(0,0,0,0)},function(Ae,Ze){Ae.setUTCFullYear(Ae.getUTCFullYear()+Ze*ie)})};var Oe=He.range;e.timeDay=b,e.timeDays=_,e.timeFriday=D,e.timeFridays=X,e.timeHour=y,e.timeHours=m,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=M,e.timeMondays=N,e.timeMonth=O,e.timeMonths=G,e.timeSaturday=E,e.timeSaturdays=Y,e.timeSecond=c,e.timeSeconds=h,e.timeSunday=x,e.timeSundays=R,e.timeThursday=S,e.timeThursdays=U,e.timeTuesday=k,e.timeTuesdays=I,e.timeWednesday=A,e.timeWednesdays=H,e.timeWeek=x,e.timeWeeks=R,e.timeYear=J,e.timeYears=$,e.utcDay=Q,e.utcDays=qe,e.utcFriday=W,e.utcFridays=Ne,e.utcHour=fe,e.utcHours=pe,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=re,e.utcMinutes=le,e.utcMonday=se,e.utcMondays=ge,e.utcMonth=Ge,e.utcMonths=De,e.utcSaturday=xe,e.utcSaturdays=Ve,e.utcSecond=c,e.utcSeconds=h,e.utcSunday=be,e.utcSundays=ke,e.utcThursday=te,e.utcThursdays=Ee,e.utcTuesday=_e,e.utcTuesdays=ze,e.utcWednesday=V,e.utcWednesdays=Fe,e.utcWeek=be,e.utcWeeks=ke,e.utcYear=He,e.utcYears=Oe,Object.defineProperty(e,"__esModule",{value:!0})})});var cu=B((ih,Z4)=>{(function(e,r){typeof ih=="object"&&typeof Z4!="undefined"?r(ih,Ay()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(ih,function(e,r){"use strict";function t(ne){if(0<=ne.y&&ne.y<100){var ce=new Date(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L);return ce.setFullYear(ne.y),ce}return new Date(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L)}function a(ne){if(0<=ne.y&&ne.y<100){var ce=new Date(Date.UTC(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L));return ce.setUTCFullYear(ne.y),ce}return new Date(Date.UTC(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L))}function n(ne,ce,Le){return{y:ne,m:ce,d:Le,H:0,M:0,S:0,L:0}}function i(ne){var ce=ne.dateTime,Le=ne.date,Se=ne.time,or=ne.periods,lr=ne.days,ar=ne.shortDays,Ar=ne.months,Br=ne.shortMonths,tt=h(or),jr=d(or),ra=h(lr),It=d(lr),_t=h(ar),Dt=d(ar),ga=h(Ar),xa=d(Ar),Gt=h(Br),$a=d(Br),gr={a:Do,A:Eo,b:Ll,B:S0,c:null,d:O,e:O,f:le,H:G,I:J,j:$,L:re,m:fe,M:pe,p:L0,q:ac,Q:Ce,s:Ie,S:Q,u:qe,U:ve,V:be,w:se,W:_e,x:null,X:null,y:V,Y:te,Z:W,"%":oe},ft={a:nc,A:ic,b:Oa,B:D0,c:null,d:xe,e:xe,f:Ee,H:ke,I:ge,j:ze,L:Fe,m:Ne,M:Ve,p:tu,q:au,Q:Ce,s:Ie,S:Ge,u:De,U:He,V:Oe,w:ie,W:Ae,x:null,X:null,y:Ze,Y:cr,Z:fr,"%":oe},Wr={a:Ha,A:ca,b:ai,B:ni,c:ta,d:S,e:S,f:H,H:E,I:E,j:D,L:I,m:A,M:R,p:Tt,q:k,Q:X,s:Y,S:N,u:y,U:m,V:b,w:p,W:_,x:lt,X:ba,y:x,Y:w,Z:M,"%":U};gr.x=wt(Le,gr),gr.X=wt(Se,gr),gr.c=wt(ce,gr),ft.x=wt(Le,ft),ft.X=wt(Se,ft),ft.c=wt(ce,ft);function wt(mr,Xr){return function(et){var ir=[],_a=-1,vt=0,wa=mr.length,Nr,ii,Po;for(et instanceof Date||(et=new Date(+et));++_a53)return null;"w"in ir||(ir.w=1),"Z"in ir?(vt=a(n(ir.y,0,1)),wa=vt.getUTCDay(),vt=wa>4||wa===0?r.utcMonday.ceil(vt):r.utcMonday(vt),vt=r.utcDay.offset(vt,(ir.V-1)*7),ir.y=vt.getUTCFullYear(),ir.m=vt.getUTCMonth(),ir.d=vt.getUTCDate()+(ir.w+6)%7):(vt=t(n(ir.y,0,1)),wa=vt.getDay(),vt=wa>4||wa===0?r.timeMonday.ceil(vt):r.timeMonday(vt),vt=r.timeDay.offset(vt,(ir.V-1)*7),ir.y=vt.getFullYear(),ir.m=vt.getMonth(),ir.d=vt.getDate()+(ir.w+6)%7)}else("W"in ir||"U"in ir)&&("w"in ir||(ir.w="u"in ir?ir.u%7:"W"in ir?1:0),wa="Z"in ir?a(n(ir.y,0,1)).getUTCDay():t(n(ir.y,0,1)).getDay(),ir.m=0,ir.d="W"in ir?(ir.w+6)%7+ir.W*7-(wa+5)%7:ir.w+ir.U*7-(wa+6)%7);return"Z"in ir?(ir.H+=ir.Z/100|0,ir.M+=ir.Z%100,a(ir)):t(ir)}}function ct(mr,Xr,et,ir){for(var _a=0,vt=Xr.length,wa=et.length,Nr,ii;_a=wa)return-1;if(Nr=Xr.charCodeAt(_a++),Nr===37){if(Nr=Xr.charAt(_a++),ii=Wr[Nr in l?Xr.charAt(_a++):Nr],!ii||(ir=ii(mr,et,ir))<0)return-1}else if(Nr!=et.charCodeAt(ir++))return-1}return ir}function Tt(mr,Xr,et){var ir=tt.exec(Xr.slice(et));return ir?(mr.p=jr[ir[0].toLowerCase()],et+ir[0].length):-1}function Ha(mr,Xr,et){var ir=_t.exec(Xr.slice(et));return ir?(mr.w=Dt[ir[0].toLowerCase()],et+ir[0].length):-1}function ca(mr,Xr,et){var ir=ra.exec(Xr.slice(et));return ir?(mr.w=It[ir[0].toLowerCase()],et+ir[0].length):-1}function ai(mr,Xr,et){var ir=Gt.exec(Xr.slice(et));return ir?(mr.m=$a[ir[0].toLowerCase()],et+ir[0].length):-1}function ni(mr,Xr,et){var ir=ga.exec(Xr.slice(et));return ir?(mr.m=xa[ir[0].toLowerCase()],et+ir[0].length):-1}function ta(mr,Xr,et){return ct(mr,ce,Xr,et)}function lt(mr,Xr,et){return ct(mr,Le,Xr,et)}function ba(mr,Xr,et){return ct(mr,Se,Xr,et)}function Do(mr){return ar[mr.getDay()]}function Eo(mr){return lr[mr.getDay()]}function Ll(mr){return Br[mr.getMonth()]}function S0(mr){return Ar[mr.getMonth()]}function L0(mr){return or[+(mr.getHours()>=12)]}function ac(mr){return 1+~~(mr.getMonth()/3)}function nc(mr){return ar[mr.getUTCDay()]}function ic(mr){return lr[mr.getUTCDay()]}function Oa(mr){return Br[mr.getUTCMonth()]}function D0(mr){return Ar[mr.getUTCMonth()]}function tu(mr){return or[+(mr.getUTCHours()>=12)]}function au(mr){return 1+~~(mr.getUTCMonth()/3)}return{format:function(mr){var Xr=wt(mr+="",gr);return Xr.toString=function(){return mr},Xr},parse:function(mr){var Xr=Et(mr+="",!1);return Xr.toString=function(){return mr},Xr},utcFormat:function(mr){var Xr=wt(mr+="",ft);return Xr.toString=function(){return mr},Xr},utcParse:function(mr){var Xr=Et(mr+="",!0);return Xr.toString=function(){return mr},Xr}}}var l={"-":"",_:" ",0:"0"},o=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ne,ce,Le){var Se=ne<0?"-":"",or=(Se?-ne:ne)+"",lr=or.length;return Se+(lr68?1900:2e3),Le+Se[0].length):-1}function M(ne,ce,Le){var Se=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ce.slice(Le,Le+6));return Se?(ne.Z=Se[1]?0:-(Se[2]+(Se[3]||"00")),Le+Se[0].length):-1}function k(ne,ce,Le){var Se=o.exec(ce.slice(Le,Le+1));return Se?(ne.q=Se[0]*3-3,Le+Se[0].length):-1}function A(ne,ce,Le){var Se=o.exec(ce.slice(Le,Le+2));return Se?(ne.m=Se[0]-1,Le+Se[0].length):-1}function S(ne,ce,Le){var Se=o.exec(ce.slice(Le,Le+2));return Se?(ne.d=+Se[0],Le+Se[0].length):-1}function D(ne,ce,Le){var Se=o.exec(ce.slice(Le,Le+3));return Se?(ne.m=0,ne.d=+Se[0],Le+Se[0].length):-1}function E(ne,ce,Le){var Se=o.exec(ce.slice(Le,Le+2));return Se?(ne.H=+Se[0],Le+Se[0].length):-1}function R(ne,ce,Le){var Se=o.exec(ce.slice(Le,Le+2));return Se?(ne.M=+Se[0],Le+Se[0].length):-1}function N(ne,ce,Le){var Se=o.exec(ce.slice(Le,Le+2));return Se?(ne.S=+Se[0],Le+Se[0].length):-1}function I(ne,ce,Le){var Se=o.exec(ce.slice(Le,Le+3));return Se?(ne.L=+Se[0],Le+Se[0].length):-1}function H(ne,ce,Le){var Se=o.exec(ce.slice(Le,Le+6));return Se?(ne.L=Math.floor(Se[0]/1e3),Le+Se[0].length):-1}function U(ne,ce,Le){var Se=s.exec(ce.slice(Le,Le+1));return Se?Le+Se[0].length:-1}function X(ne,ce,Le){var Se=o.exec(ce.slice(Le));return Se?(ne.Q=+Se[0],Le+Se[0].length):-1}function Y(ne,ce,Le){var Se=o.exec(ce.slice(Le));return Se?(ne.s=+Se[0],Le+Se[0].length):-1}function O(ne,ce){return f(ne.getDate(),ce,2)}function G(ne,ce){return f(ne.getHours(),ce,2)}function J(ne,ce){return f(ne.getHours()%12||12,ce,2)}function $(ne,ce){return f(1+r.timeDay.count(r.timeYear(ne),ne),ce,3)}function re(ne,ce){return f(ne.getMilliseconds(),ce,3)}function le(ne,ce){return re(ne,ce)+"000"}function fe(ne,ce){return f(ne.getMonth()+1,ce,2)}function pe(ne,ce){return f(ne.getMinutes(),ce,2)}function Q(ne,ce){return f(ne.getSeconds(),ce,2)}function qe(ne){var ce=ne.getDay();return ce===0?7:ce}function ve(ne,ce){return f(r.timeSunday.count(r.timeYear(ne)-1,ne),ce,2)}function be(ne,ce){var Le=ne.getDay();return ne=Le>=4||Le===0?r.timeThursday(ne):r.timeThursday.ceil(ne),f(r.timeThursday.count(r.timeYear(ne),ne)+(r.timeYear(ne).getDay()===4),ce,2)}function se(ne){return ne.getDay()}function _e(ne,ce){return f(r.timeMonday.count(r.timeYear(ne)-1,ne),ce,2)}function V(ne,ce){return f(ne.getFullYear()%100,ce,2)}function te(ne,ce){return f(ne.getFullYear()%1e4,ce,4)}function W(ne){var ce=ne.getTimezoneOffset();return(ce>0?"-":(ce*=-1,"+"))+f(ce/60|0,"0",2)+f(ce%60,"0",2)}function xe(ne,ce){return f(ne.getUTCDate(),ce,2)}function ke(ne,ce){return f(ne.getUTCHours(),ce,2)}function ge(ne,ce){return f(ne.getUTCHours()%12||12,ce,2)}function ze(ne,ce){return f(1+r.utcDay.count(r.utcYear(ne),ne),ce,3)}function Fe(ne,ce){return f(ne.getUTCMilliseconds(),ce,3)}function Ee(ne,ce){return Fe(ne,ce)+"000"}function Ne(ne,ce){return f(ne.getUTCMonth()+1,ce,2)}function Ve(ne,ce){return f(ne.getUTCMinutes(),ce,2)}function Ge(ne,ce){return f(ne.getUTCSeconds(),ce,2)}function De(ne){var ce=ne.getUTCDay();return ce===0?7:ce}function He(ne,ce){return f(r.utcSunday.count(r.utcYear(ne)-1,ne),ce,2)}function Oe(ne,ce){var Le=ne.getUTCDay();return ne=Le>=4||Le===0?r.utcThursday(ne):r.utcThursday.ceil(ne),f(r.utcThursday.count(r.utcYear(ne),ne)+(r.utcYear(ne).getUTCDay()===4),ce,2)}function ie(ne){return ne.getUTCDay()}function Ae(ne,ce){return f(r.utcMonday.count(r.utcYear(ne)-1,ne),ce,2)}function Ze(ne,ce){return f(ne.getUTCFullYear()%100,ce,2)}function cr(ne,ce){return f(ne.getUTCFullYear()%1e4,ce,4)}function fr(){return"+0000"}function oe(){return"%"}function Ce(ne){return+ne}function Ie(ne){return Math.floor(+ne/1e3)}var We;Ue({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ue(ne){return We=i(ne),e.timeFormat=We.format,e.timeParse=We.parse,e.utcFormat=We.utcFormat,e.utcParse=We.utcParse,We}var Je="%Y-%m-%dT%H:%M:%S.%LZ";function je(ne){return ne.toISOString()}var vr=Date.prototype.toISOString?je:e.utcFormat(Je);function $e(ne){var ce=new Date(ne);return isNaN(ce)?null:ce}var Re=+new Date("2000-01-01T00:00:00.000Z")?$e:e.utcParse(Je);e.isoFormat=vr,e.isoParse=Re,e.timeFormatDefaultLocale=Ue,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var ky=B((lh,J4)=>{(function(e,r){typeof lh=="object"&&typeof J4!="undefined"?r(lh):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(lh,function(e){"use strict";function r(A){return Math.abs(A=Math.round(A))>=1e21?A.toLocaleString("en").replace(/,/g,""):A.toString(10)}function t(A,S){if((D=(A=S?A.toExponential(S-1):A.toExponential()).indexOf("e"))<0)return null;var D,E=A.slice(0,D);return[E.length>1?E[0]+E.slice(2):E,+A.slice(D+1)]}function a(A){return A=t(Math.abs(A)),A?A[1]:NaN}function n(A,S){return function(D,E){for(var R=D.length,N=[],I=0,H=A[0],U=0;R>0&&H>0&&(U+H+1>E&&(H=Math.max(1,E-U)),N.push(D.substring(R-=H,R+H)),!((U+=H+1)>E));)H=A[I=(I+1)%A.length];return N.reverse().join(S)}}function i(A){return function(S){return S.replace(/[0-9]/g,function(D){return A[+D]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(A){if(!(S=l.exec(A)))throw new Error("invalid format: "+A);var S;return new s({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}o.prototype=s.prototype;function s(A){this.fill=A.fill===void 0?" ":A.fill+"",this.align=A.align===void 0?">":A.align+"",this.sign=A.sign===void 0?"-":A.sign+"",this.symbol=A.symbol===void 0?"":A.symbol+"",this.zero=!!A.zero,this.width=A.width===void 0?void 0:+A.width,this.comma=!!A.comma,this.precision=A.precision===void 0?void 0:+A.precision,this.trim=!!A.trim,this.type=A.type===void 0?"":A.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(A){e:for(var S=A.length,D=1,E=-1,R;D0&&(E=0);break}return E>0?A.slice(0,E)+A.slice(R+1):A}var f;function c(A,S){var D=t(A,S);if(!D)return A+"";var E=D[0],R=D[1],N=R-(f=Math.max(-8,Math.min(8,Math.floor(R/3)))*3)+1,I=E.length;return N===I?E:N>I?E+new Array(N-I+1).join("0"):N>0?E.slice(0,N)+"."+E.slice(N):"0."+new Array(1-N).join("0")+t(A,Math.max(0,S+N-1))[0]}function h(A,S){var D=t(A,S);if(!D)return A+"";var E=D[0],R=D[1];return R<0?"0."+new Array(-R).join("0")+E:E.length>R+1?E.slice(0,R+1)+"."+E.slice(R+1):E+new Array(R-E.length+2).join("0")}var d={"%":function(A,S){return(A*100).toFixed(S)},b:function(A){return Math.round(A).toString(2)},c:function(A){return A+""},d:r,e:function(A,S){return A.toExponential(S)},f:function(A,S){return A.toFixed(S)},g:function(A,S){return A.toPrecision(S)},o:function(A){return Math.round(A).toString(8)},p:function(A,S){return h(A*100,S)},r:h,s:c,X:function(A){return Math.round(A).toString(16).toUpperCase()},x:function(A){return Math.round(A).toString(16)}};function p(A){return A}var y=Array.prototype.map,m=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(A){var S=A.grouping===void 0||A.thousands===void 0?p:n(y.call(A.grouping,Number),A.thousands+""),D=A.currency===void 0?"":A.currency[0]+"",E=A.currency===void 0?"":A.currency[1]+"",R=A.decimal===void 0?".":A.decimal+"",N=A.numerals===void 0?p:i(y.call(A.numerals,String)),I=A.percent===void 0?"%":A.percent+"",H=A.minus===void 0?"-":A.minus+"",U=A.nan===void 0?"NaN":A.nan+"";function X(O){O=o(O);var G=O.fill,J=O.align,$=O.sign,re=O.symbol,le=O.zero,fe=O.width,pe=O.comma,Q=O.precision,qe=O.trim,ve=O.type;ve==="n"?(pe=!0,ve="g"):d[ve]||(Q===void 0&&(Q=12),qe=!0,ve="g"),(le||G==="0"&&J==="=")&&(le=!0,G="0",J="=");var be=re==="$"?D:re==="#"&&/[boxX]/.test(ve)?"0"+ve.toLowerCase():"",se=re==="$"?E:/[%p]/.test(ve)?I:"",_e=d[ve],V=/[defgprs%]/.test(ve);Q=Q===void 0?6:/[gprs]/.test(ve)?Math.max(1,Math.min(21,Q)):Math.max(0,Math.min(20,Q));function te(W){var xe=be,ke=se,ge,ze,Fe;if(ve==="c")ke=_e(W)+ke,W="";else{W=+W;var Ee=W<0||1/W<0;if(W=isNaN(W)?U:_e(Math.abs(W),Q),qe&&(W=u(W)),Ee&&+W==0&&$!=="+"&&(Ee=!1),xe=(Ee?$==="("?$:H:$==="-"||$==="("?"":$)+xe,ke=(ve==="s"?m[8+f/3]:"")+ke+(Ee&&$==="("?")":""),V){for(ge=-1,ze=W.length;++geFe||Fe>57){ke=(Fe===46?R+W.slice(ge+1):W.slice(ge))+ke,W=W.slice(0,ge);break}}}pe&&!le&&(W=S(W,1/0));var Ne=xe.length+W.length+ke.length,Ve=Ne>1)+xe+W+ke+Ve.slice(Ne);break;default:W=Ve+xe+W+ke;break}return N(W)}return te.toString=function(){return O+""},te}function Y(O,G){var J=X((O=o(O),O.type="f",O)),$=Math.max(-8,Math.min(8,Math.floor(a(G)/3)))*3,re=Math.pow(10,-$),le=m[8+$/3];return function(fe){return J(re*fe)+le}}return{format:X,formatPrefix:Y}}var _;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(A){return _=b(A),e.format=_.format,e.formatPrefix=_.formatPrefix,_}function x(A){return Math.max(0,-a(Math.abs(A)))}function M(A,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(S)/3)))*3-a(Math.abs(A)))}function k(A,S){return A=Math.abs(A),S=Math.abs(S)-A,Math.max(0,a(S)-a(A))+1}e.FormatSpecifier=s,e.formatDefaultLocale=w,e.formatLocale=b,e.formatSpecifier=o,e.precisionFixed=x,e.precisionPrefix=M,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})})});var K4=B((Ope,$4)=>{"use strict";$4.exports=function(e){for(var r=e.length,t,a=0;a13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var zr=B((Bpe,Q4)=>{"use strict";var QW=K4();Q4.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&QW(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Mt=B((Ype,j4)=>{"use strict";j4.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var qy=B((oh,e6)=>{(function(e,r){typeof oh=="object"&&typeof e6!="undefined"?r(oh):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(oh,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(o[s]&3)<<4|o[s+1]>>4],f+=r[(o[s+1]&15)<<2|o[s+2]>>6],f+=r[o[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(l){var o=l.length*.75,s=l.length,u,f=0,c,h,d,p;l[l.length-1]==="="&&(o--,l[l.length-2]==="="&&o--);var y=new ArrayBuffer(o),m=new Uint8Array(y);for(u=0;u>4,m[f++]=(h&15)<<4|d>>2,m[f++]=(d&3)<<6|p&63;return y};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})})});var Pl=B((Gpe,r6)=>{"use strict";r6.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var gn=B(si=>{"use strict";var jW=qy().decode,eX=Pl(),Cy=Array.isArray,rX=ArrayBuffer,tX=DataView;function t6(e){return rX.isView(e)&&!(e instanceof tX)}si.isTypedArray=t6;function sh(e){return Cy(e)||t6(e)}si.isArrayOrTypedArray=sh;function aX(e){return!sh(e[0])}si.isArray1D=aX;si.ensureArray=function(e,r){return Cy(e)||(e=[]),e.length=r,e};var va={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};va.uint8c=va.u1c;va.uint8=va.u1;va.int8=va.i1;va.uint16=va.u2;va.int16=va.i2;va.uint32=va.u4;va.int32=va.i4;va.float32=va.f4;va.float64=va.f8;function Sy(e){return e.constructor===ArrayBuffer}si.isArrayBuffer=Sy;si.decodeTypedArraySpec=function(e){var r=[],t=nX(e),a=t.dtype,n=va[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;Sy(l)||(l=jW(l));var o=t.shape===void 0?[l.byteLength/i]:(""+t.shape).split(",");o.reverse();var s=o.length,u,f,c=+o[0],h=i*c,d=0;if(s===1)r=new n(l);else if(s===2)for(u=+o[1],f=0;f{"use strict";var n6=zr(),Dy=gn().isArrayOrTypedArray;s6.exports=function(r,t){if(n6(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,l,o;for(o=0;o{"use strict";var vu=uh(),uX=/^\w*$/,fX=0,u6=1,fh=2,f6=3,Ho=4;c6.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,l,o,s={};t&&t.length?(o=vu(r,t),l=o.get()):l=r,t=t||"";var u={};if(l)for(i=0;i2)return s[d]=s[d]|fh,c.set(h,null);if(f){for(i=d;i{"use strict";var cX=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,vX=/^[^\.\[\]]+$/;h6.exports=function(e,r){for(;r;){var t=e.match(cX);if(t)e=t[1];else if(e.match(vX))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 ch=B((Zpe,p6)=>{"use strict";var hX=zr();p6.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return hX(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var g6=B((Jpe,y6)=>{"use strict";var m6=gn().isArrayOrTypedArray,pc=Pl();y6.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(m6(n)&&m6(i)&&pc(n[0])){if(a==="customdata"||a==="ids")continue;for(var l=Math.min(n.length,i.length),o=0;o{"use strict";function dX(e,r){var t=e%r;return t<0?t+r:t}function pX(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}x6.exports={mod:dX,modHalf:pX}});var Rn=B((Kpe,vh)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,l=e.max,o=e.random;function s(V,te){if(V=V||"",te=te||{},V instanceof s)return V;if(!(this instanceof s))return new s(V,te);var W=u(V);this._originalInput=V,this._r=W.r,this._g=W.g,this._b=W.b,this._a=W.a,this._roundA=n(100*this._a)/100,this._format=te.format||W.format,this._gradientType=te.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=W.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var V=this.toRgb();return(V.r*299+V.g*587+V.b*114)/1e3},getLuminance:function(){var V=this.toRgb(),te,W,xe,ke,ge,ze;return te=V.r/255,W=V.g/255,xe=V.b/255,te<=.03928?ke=te/12.92:ke=e.pow((te+.055)/1.055,2.4),W<=.03928?ge=W/12.92:ge=e.pow((W+.055)/1.055,2.4),xe<=.03928?ze=xe/12.92:ze=e.pow((xe+.055)/1.055,2.4),.2126*ke+.7152*ge+.0722*ze},setAlpha:function(V){return this._a=O(V),this._roundA=n(100*this._a)/100,this},toHsv:function(){var V=d(this._r,this._g,this._b);return{h:V.h*360,s:V.s,v:V.v,a:this._a}},toHsvString:function(){var V=d(this._r,this._g,this._b),te=n(V.h*360),W=n(V.s*100),xe=n(V.v*100);return this._a==1?"hsv("+te+", "+W+"%, "+xe+"%)":"hsva("+te+", "+W+"%, "+xe+"%, "+this._roundA+")"},toHsl:function(){var V=c(this._r,this._g,this._b);return{h:V.h*360,s:V.s,l:V.l,a:this._a}},toHslString:function(){var V=c(this._r,this._g,this._b),te=n(V.h*360),W=n(V.s*100),xe=n(V.l*100);return this._a==1?"hsl("+te+", "+W+"%, "+xe+"%)":"hsla("+te+", "+W+"%, "+xe+"%, "+this._roundA+")"},toHex:function(V){return y(this._r,this._g,this._b,V)},toHexString:function(V){return"#"+this.toHex(V)},toHex8:function(V){return m(this._r,this._g,this._b,this._a,V)},toHex8String:function(V){return"#"+this.toHex8(V)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(G(this._r,255)*100)+"%",g:n(G(this._g,255)*100)+"%",b:n(G(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(G(this._r,255)*100)+"%, "+n(G(this._g,255)*100)+"%, "+n(G(this._b,255)*100)+"%)":"rgba("+n(G(this._r,255)*100)+"%, "+n(G(this._g,255)*100)+"%, "+n(G(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:X[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(V){var te="#"+b(this._r,this._g,this._b,this._a),W=te,xe=this._gradientType?"GradientType = 1, ":"";if(V){var ke=s(V);W="#"+b(ke._r,ke._g,ke._b,ke._a)}return"progid:DXImageTransform.Microsoft.gradient("+xe+"startColorstr="+te+",endColorstr="+W+")"},toString:function(V){var te=!!V;V=V||this._format;var W=!1,xe=this._a<1&&this._a>=0,ke=!te&&xe&&(V==="hex"||V==="hex6"||V==="hex3"||V==="hex4"||V==="hex8"||V==="name");return ke?V==="name"&&this._a===0?this.toName():this.toRgbString():(V==="rgb"&&(W=this.toRgbString()),V==="prgb"&&(W=this.toPercentageRgbString()),(V==="hex"||V==="hex6")&&(W=this.toHexString()),V==="hex3"&&(W=this.toHexString(!0)),V==="hex4"&&(W=this.toHex8String(!0)),V==="hex8"&&(W=this.toHex8String()),V==="name"&&(W=this.toName()),V==="hsl"&&(W=this.toHslString()),V==="hsv"&&(W=this.toHsvString()),W||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(V,te){var W=V.apply(null,[this].concat([].slice.call(te)));return this._r=W._r,this._g=W._g,this._b=W._b,this.setAlpha(W._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(A,arguments)},desaturate:function(){return this._applyModification(_,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(V,te){return V.apply(null,[this].concat([].slice.call(te)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(H,arguments)},splitcomplement:function(){return this._applyCombination(N,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},s.fromRatio=function(V,te){if(typeof V=="object"){var W={};for(var xe in V)V.hasOwnProperty(xe)&&(xe==="a"?W[xe]=V[xe]:W[xe]=pe(V[xe]));V=W}return s(V,te)};function u(V){var te={r:0,g:0,b:0},W=1,xe=null,ke=null,ge=null,ze=!1,Fe=!1;return typeof V=="string"&&(V=se(V)),typeof V=="object"&&(be(V.r)&&be(V.g)&&be(V.b)?(te=f(V.r,V.g,V.b),ze=!0,Fe=String(V.r).substr(-1)==="%"?"prgb":"rgb"):be(V.h)&&be(V.s)&&be(V.v)?(xe=pe(V.s),ke=pe(V.v),te=p(V.h,xe,ke),ze=!0,Fe="hsv"):be(V.h)&&be(V.s)&&be(V.l)&&(xe=pe(V.s),ge=pe(V.l),te=h(V.h,xe,ge),ze=!0,Fe="hsl"),V.hasOwnProperty("a")&&(W=V.a)),W=O(W),{ok:ze,format:V.format||Fe,r:i(255,l(te.r,0)),g:i(255,l(te.g,0)),b:i(255,l(te.b,0)),a:W}}function f(V,te,W){return{r:G(V,255)*255,g:G(te,255)*255,b:G(W,255)*255}}function c(V,te,W){V=G(V,255),te=G(te,255),W=G(W,255);var xe=l(V,te,W),ke=i(V,te,W),ge,ze,Fe=(xe+ke)/2;if(xe==ke)ge=ze=0;else{var Ee=xe-ke;switch(ze=Fe>.5?Ee/(2-xe-ke):Ee/(xe+ke),xe){case V:ge=(te-W)/Ee+(te1&&(Ge-=1),Ge<1/6?Ne+(Ve-Ne)*6*Ge:Ge<1/2?Ve:Ge<2/3?Ne+(Ve-Ne)*(2/3-Ge)*6:Ne}if(te===0)xe=ke=ge=W;else{var Fe=W<.5?W*(1+te):W+te-W*te,Ee=2*W-Fe;xe=ze(Ee,Fe,V+1/3),ke=ze(Ee,Fe,V),ge=ze(Ee,Fe,V-1/3)}return{r:xe*255,g:ke*255,b:ge*255}}function d(V,te,W){V=G(V,255),te=G(te,255),W=G(W,255);var xe=l(V,te,W),ke=i(V,te,W),ge,ze,Fe=xe,Ee=xe-ke;if(ze=xe===0?0:Ee/xe,xe==ke)ge=0;else{switch(xe){case V:ge=(te-W)/Ee+(te>1)+720)%360;--te;)xe.h=(xe.h+ke)%360,ge.push(s(xe));return ge}function H(V,te){te=te||6;for(var W=s(V).toHsv(),xe=W.h,ke=W.s,ge=W.v,ze=[],Fe=1/te;te--;)ze.push(s({h:xe,s:ke,v:ge})),ge=(ge+Fe)%1;return ze}s.mix=function(V,te,W){W=W===0?0:W||50;var xe=s(V).toRgb(),ke=s(te).toRgb(),ge=W/100,ze={r:(ke.r-xe.r)*ge+xe.r,g:(ke.g-xe.g)*ge+xe.g,b:(ke.b-xe.b)*ge+xe.b,a:(ke.a-xe.a)*ge+xe.a};return s(ze)},s.readability=function(V,te){var W=s(V),xe=s(te);return(e.max(W.getLuminance(),xe.getLuminance())+.05)/(e.min(W.getLuminance(),xe.getLuminance())+.05)},s.isReadable=function(V,te,W){var xe=s.readability(V,te),ke,ge;switch(ge=!1,ke=_e(W),ke.level+ke.size){case"AAsmall":case"AAAlarge":ge=xe>=4.5;break;case"AAlarge":ge=xe>=3;break;case"AAAsmall":ge=xe>=7;break}return ge},s.mostReadable=function(V,te,W){var xe=null,ke=0,ge,ze,Fe,Ee;W=W||{},ze=W.includeFallbackColors,Fe=W.level,Ee=W.size;for(var Ne=0;Neke&&(ke=ge,xe=s(te[Ne]));return s.isReadable(V,xe,{level:Fe,size:Ee})||!ze?xe:(W.includeFallbackColors=!1,s.mostReadable(V,["#fff","#000"],W))};var U=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},X=s.hexNames=Y(U);function Y(V){var te={};for(var W in V)V.hasOwnProperty(W)&&(te[V[W]]=W);return te}function O(V){return V=parseFloat(V),(isNaN(V)||V<0||V>1)&&(V=1),V}function G(V,te){re(V)&&(V="100%");var W=le(V);return V=i(te,l(0,parseFloat(V))),W&&(V=parseInt(V*te,10)/100),e.abs(V-te)<1e-6?1:V%te/parseFloat(te)}function J(V){return i(1,l(0,V))}function $(V){return parseInt(V,16)}function re(V){return typeof V=="string"&&V.indexOf(".")!=-1&&parseFloat(V)===1}function le(V){return typeof V=="string"&&V.indexOf("%")!=-1}function fe(V){return V.length==1?"0"+V:""+V}function pe(V){return V<=1&&(V=V*100+"%"),V}function Q(V){return e.round(parseFloat(V)*255).toString(16)}function qe(V){return $(V)/255}var ve=function(){var V="[-\\+]?\\d+%?",te="[-\\+]?\\d*\\.\\d+%?",W="(?:"+te+")|(?:"+V+")",xe="[\\s|\\(]+("+W+")[,|\\s]+("+W+")[,|\\s]+("+W+")\\s*\\)?",ke="[\\s|\\(]+("+W+")[,|\\s]+("+W+")[,|\\s]+("+W+")[,|\\s]+("+W+")\\s*\\)?";return{CSS_UNIT:new RegExp(W),rgb:new RegExp("rgb"+xe),rgba:new RegExp("rgba"+ke),hsl:new RegExp("hsl"+xe),hsla:new RegExp("hsla"+ke),hsv:new RegExp("hsv"+xe),hsva:new RegExp("hsva"+ke),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function be(V){return!!ve.CSS_UNIT.exec(V)}function se(V){V=V.replace(r,"").replace(t,"").toLowerCase();var te=!1;if(U[V])V=U[V],te=!0;else if(V=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var W;return(W=ve.rgb.exec(V))?{r:W[1],g:W[2],b:W[3]}:(W=ve.rgba.exec(V))?{r:W[1],g:W[2],b:W[3],a:W[4]}:(W=ve.hsl.exec(V))?{h:W[1],s:W[2],l:W[3]}:(W=ve.hsla.exec(V))?{h:W[1],s:W[2],l:W[3],a:W[4]}:(W=ve.hsv.exec(V))?{h:W[1],s:W[2],v:W[3]}:(W=ve.hsva.exec(V))?{h:W[1],s:W[2],v:W[3],a:W[4]}:(W=ve.hex8.exec(V))?{r:$(W[1]),g:$(W[2]),b:$(W[3]),a:qe(W[4]),format:te?"name":"hex8"}:(W=ve.hex6.exec(V))?{r:$(W[1]),g:$(W[2]),b:$(W[3]),format:te?"name":"hex"}:(W=ve.hex4.exec(V))?{r:$(W[1]+""+W[1]),g:$(W[2]+""+W[2]),b:$(W[3]+""+W[3]),a:qe(W[4]+""+W[4]),format:te?"name":"hex8"}:(W=ve.hex3.exec(V))?{r:$(W[1]+""+W[1]),g:$(W[2]+""+W[2]),b:$(W[3]+""+W[3]),format:te?"name":"hex"}:!1}function _e(V){var te,W;return V=V||{level:"AA",size:"small"},te=(V.level||"AA").toUpperCase(),W=(V.size||"small").toLowerCase(),te!=="AA"&&te!=="AAA"&&(te="AA"),W!=="small"&&W!=="large"&&(W="small"),{level:te,size:W}}typeof vh!="undefined"&&vh.exports?vh.exports=s:window.tinycolor=s})(Math)});var mt=B(gc=>{"use strict";var b6=Pl(),mc=Array.isArray;function mX(e,r){var t,a;for(t=0;t{"use strict";_6.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var xc=B((eme,w6)=>{"use strict";w6.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var du=B((rme,A6)=>{"use strict";var T6=xc(),M6=aa(),Ey=M6({editType:"none"});Ey.family.dflt=T6.HOVERFONT;Ey.size.dflt=T6.HOVERFONTSIZE;A6.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:Ey,grouptitlefont:M6({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var wc=B((tme,k6)=>{"use strict";var yX=aa(),bc=du().hoverlabel,_c=mt().extendFlat;k6.exports={hoverlabel:{bgcolor:_c({},bc.bgcolor,{arrayOk:!0}),bordercolor:_c({},bc.bordercolor,{arrayOk:!0}),font:yX({arrayOk:!0,editType:"none"}),align:_c({},bc.align,{arrayOk:!0}),namelength:_c({},bc.namelength,{arrayOk:!0}),showarrow:_c({},bc.showarrow),editType:"none"}}});var tn=B((ame,q6)=>{"use strict";var gX=aa(),xX=wc();q6.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:gX({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:xX.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var Oo=B((nme,L6)=>{"use strict";var bX=Rn(),hh={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},C6=hh.RdBu;function _X(e,r){if(r||(r=C6),!e)return r;function t(){try{e=hh[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),S6(e)?e:r}function S6(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";Bo.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Bo.defaultLine="#444";Bo.lightLine="#eee";Bo.background="#fff";Bo.borderLine="#BEC8D9";Bo.lightFraction=100*10/11});var xr=B((lme,D6)=>{"use strict";var an=Rn(),TX=zr(),MX=gn().isTypedArray,na=D6.exports={},dh=zn();na.defaults=dh.defaults;var AX=na.defaultLine=dh.defaultLine;na.lightLine=dh.lightLine;var Ry=na.background=dh.background;na.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};na.rgb=function(e){return na.tinyRGB(an(e))};na.opacity=function(e){return e?an(e).getAlpha():0};na.addOpacity=function(e,r){var t=an(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};na.combine=function(e,r){var t=an(e).toRgb();if(t.a===1)return an(e).toRgbString();var a=an(r||Ry).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return an(i).toRgbString()};na.interpolate=function(e,r,t){var a=an(e).toRgb(),n=an(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return an(i).toRgbString()};na.contrast=function(e,r,t){var a=an(e);a.getAlpha()!==1&&(a=an(na.combine(e,Ry)));var n=a.isDark()?r?a.lighten(r):Ry:t?a.darken(t):AX;return n.toString()};na.stroke=function(e,r){var t=an(r);e.style({stroke:na.tinyRGB(t),"stroke-opacity":t.getAlpha()})};na.fill=function(e,r){var t=an(r);e.style({fill:na.tinyRGB(t),"fill-opacity":t.getAlpha()})};na.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var l=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+l+", "+a[3]+")":"rgb("+l+")"}});var pu=B((ome,E6)=>{"use strict";E6.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var mu=B(P6=>{"use strict";P6.counter=function(e,r,t,a){var n=(r||"")+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+n):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+n)}});var F6=B(nn=>{"use strict";var zy=zr(),R6=Rn(),z6=mt().extendFlat,kX=tn(),qX=Oo(),CX=xr(),SX=pu().DESELECTDIM,yu=uh(),N6=mu().counter,LX=hu().modHalf,Ni=gn().isArrayOrTypedArray,Rl=gn().isTypedArraySpec,zl=gn().decodeTypedArraySpec;nn.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Ni(e)?e:Rl(e)?zl(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;aa.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}Rl(e)&&(e=zl(e)),e%1||!zy(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Rl(e)&&(e=zl(e)),R6(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return R6(n).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(a)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(qX.get(e,t))}},angle:{coerceFunction:function(e,r,t){Rl(e)&&(e=zl(e)),e==="auto"?r.set("auto"):zy(e)?r.set(LX(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||N6(t);if(typeof e=="string"&&n.test(e)){r.set(e);return}r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!N6(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";var I6={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},H6={};function O6(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),O6(a,r[t]))}}O6(I6,H6);B6.exports={configAttributes:I6,dfltConfig:H6}});var Fy=B((cme,Y6)=>{"use strict";var Ny=kr(),DX=zr(),Tc=[];Y6.exports=function(e,r){if(Tc.indexOf(e)!==-1)return;Tc.push(e);var t=1e3;DX(r)?t=r:r==="long"&&(t=3e3);var a=Ny.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(Tc);function i(l){l.duration(700).style("opacity",0).each("end",function(o){var s=Tc.indexOf(o);s!==-1&&Tc.splice(s,1),Ny.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var o=Ny.select(this);o.append("button").classed("notifier-close",!0).html("×").on("click",function(){o.transition().call(i)});for(var s=o.append("p"),u=l.split(//g),f=0;f{"use strict";var gu=Yo().dfltConfig,Iy=Fy(),Hy=G6.exports={};Hy.log=function(){var e;if(gu.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};Hy.warn=function(){var e;if(gu.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};Hy.error=function(){var e;if(gu.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var mh=B((hme,U6)=>{"use strict";U6.exports=function(){}});var Oy=B((dme,V6)=>{"use strict";V6.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{W6.exports=EX;function EX(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var J6=B((mme,Z6)=>{Z6.exports=PX;function PX(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var K6=B((yme,$6)=>{$6.exports=RX;function RX(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 By=B((gme,Q6)=>{Q6.exports=zX;function zX(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var e7=B((xme,j6)=>{j6.exports=NX;function NX(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],l=r[7],o=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=l,e[14]=o}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var t7=B((bme,r7)=>{r7.exports=FX;function FX(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],h=r[10],d=r[11],p=r[12],y=r[13],m=r[14],b=r[15],_=t*o-a*l,w=t*s-n*l,x=t*u-i*l,M=a*s-n*o,k=a*u-i*o,A=n*u-i*s,S=f*y-c*p,D=f*m-h*p,E=f*b-d*p,R=c*m-h*y,N=c*b-d*y,I=h*b-d*m,H=_*I-w*N+x*R+M*E-k*D+A*S;return H?(H=1/H,e[0]=(o*I-s*N+u*R)*H,e[1]=(n*N-a*I-i*R)*H,e[2]=(y*A-m*k+b*M)*H,e[3]=(h*k-c*A-d*M)*H,e[4]=(s*E-l*I-u*D)*H,e[5]=(t*I-n*E+i*D)*H,e[6]=(m*x-p*A-b*w)*H,e[7]=(f*A-h*x+d*w)*H,e[8]=(l*N-o*E+u*S)*H,e[9]=(a*E-t*N-i*S)*H,e[10]=(p*k-y*x+b*_)*H,e[11]=(c*x-f*k-d*_)*H,e[12]=(o*D-l*R-s*S)*H,e[13]=(t*R-a*D+n*S)*H,e[14]=(y*w-p*M-m*_)*H,e[15]=(f*M-c*w+h*_)*H,e):null}});var n7=B((_me,a7)=>{a7.exports=IX;function IX(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],h=r[10],d=r[11],p=r[12],y=r[13],m=r[14],b=r[15];return e[0]=o*(h*b-d*m)-c*(s*b-u*m)+y*(s*d-u*h),e[1]=-(a*(h*b-d*m)-c*(n*b-i*m)+y*(n*d-i*h)),e[2]=a*(s*b-u*m)-o*(n*b-i*m)+y*(n*u-i*s),e[3]=-(a*(s*d-u*h)-o*(n*d-i*h)+c*(n*u-i*s)),e[4]=-(l*(h*b-d*m)-f*(s*b-u*m)+p*(s*d-u*h)),e[5]=t*(h*b-d*m)-f*(n*b-i*m)+p*(n*d-i*h),e[6]=-(t*(s*b-u*m)-l*(n*b-i*m)+p*(n*u-i*s)),e[7]=t*(s*d-u*h)-l*(n*d-i*h)+f*(n*u-i*s),e[8]=l*(c*b-d*y)-f*(o*b-u*y)+p*(o*d-u*c),e[9]=-(t*(c*b-d*y)-f*(a*b-i*y)+p*(a*d-i*c)),e[10]=t*(o*b-u*y)-l*(a*b-i*y)+p*(a*u-i*o),e[11]=-(t*(o*d-u*c)-l*(a*d-i*c)+f*(a*u-i*o)),e[12]=-(l*(c*m-h*y)-f*(o*m-s*y)+p*(o*h-s*c)),e[13]=t*(c*m-h*y)-f*(a*m-n*y)+p*(a*h-n*c),e[14]=-(t*(o*m-s*y)-l*(a*m-n*y)+p*(a*s-n*o)),e[15]=t*(o*h-s*c)-l*(a*h-n*c)+f*(a*s-n*o),e}});var l7=B((wme,i7)=>{i7.exports=HX;function HX(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],l=e[5],o=e[6],s=e[7],u=e[8],f=e[9],c=e[10],h=e[11],d=e[12],p=e[13],y=e[14],m=e[15],b=r*l-t*i,_=r*o-a*i,w=r*s-n*i,x=t*o-a*l,M=t*s-n*l,k=a*s-n*o,A=u*p-f*d,S=u*y-c*d,D=u*m-h*d,E=f*y-c*p,R=f*m-h*p,N=c*m-h*y;return b*N-_*R+w*E+x*D-M*S+k*A}});var s7=B((Tme,o7)=>{o7.exports=OX;function OX(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=r[4],s=r[5],u=r[6],f=r[7],c=r[8],h=r[9],d=r[10],p=r[11],y=r[12],m=r[13],b=r[14],_=r[15],w=t[0],x=t[1],M=t[2],k=t[3];return e[0]=w*a+x*o+M*c+k*y,e[1]=w*n+x*s+M*h+k*m,e[2]=w*i+x*u+M*d+k*b,e[3]=w*l+x*f+M*p+k*_,w=t[4],x=t[5],M=t[6],k=t[7],e[4]=w*a+x*o+M*c+k*y,e[5]=w*n+x*s+M*h+k*m,e[6]=w*i+x*u+M*d+k*b,e[7]=w*l+x*f+M*p+k*_,w=t[8],x=t[9],M=t[10],k=t[11],e[8]=w*a+x*o+M*c+k*y,e[9]=w*n+x*s+M*h+k*m,e[10]=w*i+x*u+M*d+k*b,e[11]=w*l+x*f+M*p+k*_,w=t[12],x=t[13],M=t[14],k=t[15],e[12]=w*a+x*o+M*c+k*y,e[13]=w*n+x*s+M*h+k*m,e[14]=w*i+x*u+M*d+k*b,e[15]=w*l+x*f+M*p+k*_,e}});var f7=B((Mme,u7)=>{u7.exports=BX;function BX(e,r,t){var a=t[0],n=t[1],i=t[2],l,o,s,u,f,c,h,d,p,y,m,b;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(l=r[0],o=r[1],s=r[2],u=r[3],f=r[4],c=r[5],h=r[6],d=r[7],p=r[8],y=r[9],m=r[10],b=r[11],e[0]=l,e[1]=o,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=h,e[7]=d,e[8]=p,e[9]=y,e[10]=m,e[11]=b,e[12]=l*a+f*n+p*i+r[12],e[13]=o*a+c*n+y*i+r[13],e[14]=s*a+h*n+m*i+r[14],e[15]=u*a+d*n+b*i+r[15]),e}});var v7=B((Ame,c7)=>{c7.exports=YX;function YX(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var d7=B((kme,h7)=>{h7.exports=GX;function GX(e,r,t,a){var n=a[0],i=a[1],l=a[2],o=Math.sqrt(n*n+i*i+l*l),s,u,f,c,h,d,p,y,m,b,_,w,x,M,k,A,S,D,E,R,N,I,H,U;return Math.abs(o)<1e-6?null:(o=1/o,n*=o,i*=o,l*=o,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],h=r[1],d=r[2],p=r[3],y=r[4],m=r[5],b=r[6],_=r[7],w=r[8],x=r[9],M=r[10],k=r[11],A=n*n*f+u,S=i*n*f+l*s,D=l*n*f-i*s,E=n*i*f-l*s,R=i*i*f+u,N=l*i*f+n*s,I=n*l*f+i*s,H=i*l*f-n*s,U=l*l*f+u,e[0]=c*A+y*S+w*D,e[1]=h*A+m*S+x*D,e[2]=d*A+b*S+M*D,e[3]=p*A+_*S+k*D,e[4]=c*E+y*R+w*N,e[5]=h*E+m*R+x*N,e[6]=d*E+b*R+M*N,e[7]=p*E+_*R+k*N,e[8]=c*I+y*H+w*U,e[9]=h*I+m*H+x*U,e[10]=d*I+b*H+M*U,e[11]=p*I+_*H+k*U,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var m7=B((qme,p7)=>{p7.exports=UX;function UX(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],l=r[5],o=r[6],s=r[7],u=r[8],f=r[9],c=r[10],h=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=l*n+f*a,e[6]=o*n+c*a,e[7]=s*n+h*a,e[8]=u*n-i*a,e[9]=f*n-l*a,e[10]=c*n-o*a,e[11]=h*n-s*a,e}});var g7=B((Cme,y7)=>{y7.exports=VX;function VX(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[8],f=r[9],c=r[10],h=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=l*n-f*a,e[2]=o*n-c*a,e[3]=s*n-h*a,e[8]=i*a+u*n,e[9]=l*a+f*n,e[10]=o*a+c*n,e[11]=s*a+h*n,e}});var b7=B((Sme,x7)=>{x7.exports=WX;function WX(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[4],f=r[5],c=r[6],h=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=l*n+f*a,e[2]=o*n+c*a,e[3]=s*n+h*a,e[4]=u*n-i*a,e[5]=f*n-l*a,e[6]=c*n-o*a,e[7]=h*n-s*a,e}});var w7=B((Lme,_7)=>{_7.exports=XX;function XX(e,r,t){var a,n,i,l=t[0],o=t[1],s=t[2],u=Math.sqrt(l*l+o*o+s*s);return Math.abs(u)<1e-6?null:(u=1/u,l*=u,o*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=l*l*i+n,e[1]=o*l*i+s*a,e[2]=s*l*i-o*a,e[3]=0,e[4]=l*o*i-s*a,e[5]=o*o*i+n,e[6]=s*o*i+l*a,e[7]=0,e[8]=l*s*i+o*a,e[9]=o*s*i-l*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var M7=B((Dme,T7)=>{T7.exports=ZX;function ZX(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=a+a,s=n+n,u=i+i,f=a*o,c=a*s,h=a*u,d=n*s,p=n*u,y=i*u,m=l*o,b=l*s,_=l*u;return e[0]=1-(d+y),e[1]=c+_,e[2]=h-b,e[3]=0,e[4]=c-_,e[5]=1-(f+y),e[6]=p+m,e[7]=0,e[8]=h+b,e[9]=p-m,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var k7=B((Eme,A7)=>{A7.exports=JX;function JX(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var C7=B((Pme,q7)=>{q7.exports=$X;function $X(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var L7=B((Rme,S7)=>{S7.exports=KX;function KX(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var E7=B((zme,D7)=>{D7.exports=QX;function QX(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var R7=B((Nme,P7)=>{P7.exports=jX;function jX(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 Yy=B((Fme,z7)=>{z7.exports=eZ;function eZ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=t+t,o=a+a,s=n+n,u=t*l,f=a*l,c=a*o,h=n*l,d=n*o,p=n*s,y=i*l,m=i*o,b=i*s;return e[0]=1-c-p,e[1]=f+b,e[2]=h-m,e[3]=0,e[4]=f-b,e[5]=1-u-p,e[6]=d+y,e[7]=0,e[8]=h+m,e[9]=d-y,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var F7=B((Ime,N7)=>{N7.exports=rZ;function rZ(e,r,t,a,n,i,l){var o=1/(t-r),s=1/(n-a),u=1/(i-l);return e[0]=i*2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*o,e[9]=(n+a)*s,e[10]=(l+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*i*2*u,e[15]=0,e}});var H7=B((Hme,I7)=>{I7.exports=tZ;function tZ(e,r,t,a,n){var i=1/Math.tan(r/2),l=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*l,e[15]=0,e}});var B7=B((Ome,O7)=>{O7.exports=aZ;function aZ(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),l=Math.tan(r.leftDegrees*Math.PI/180),o=Math.tan(r.rightDegrees*Math.PI/180),s=2/(l+o),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((l-o)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var G7=B((Bme,Y7)=>{Y7.exports=nZ;function nZ(e,r,t,a,n,i,l){var o=1/(r-t),s=1/(a-n),u=1/(i-l);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*o,e[13]=(n+a)*s,e[14]=(l+i)*u,e[15]=1,e}});var V7=B((Yme,U7)=>{var iZ=By();U7.exports=lZ;function lZ(e,r,t,a){var n,i,l,o,s,u,f,c,h,d,p=r[0],y=r[1],m=r[2],b=a[0],_=a[1],w=a[2],x=t[0],M=t[1],k=t[2];return Math.abs(p-x)<1e-6&&Math.abs(y-M)<1e-6&&Math.abs(m-k)<1e-6?iZ(e):(f=p-x,c=y-M,h=m-k,d=1/Math.sqrt(f*f+c*c+h*h),f*=d,c*=d,h*=d,n=_*h-w*c,i=w*f-b*h,l=b*c-_*f,d=Math.sqrt(n*n+i*i+l*l),d?(d=1/d,n*=d,i*=d,l*=d):(n=0,i=0,l=0),o=c*l-h*i,s=h*n-f*l,u=f*i-c*n,d=Math.sqrt(o*o+s*s+u*u),d?(d=1/d,o*=d,s*=d,u*=d):(o=0,s=0,u=0),e[0]=n,e[1]=o,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=l,e[9]=u,e[10]=h,e[11]=0,e[12]=-(n*p+i*y+l*m),e[13]=-(o*p+s*y+u*m),e[14]=-(f*p+c*y+h*m),e[15]=1,e)}});var X7=B((Gme,W7)=>{W7.exports=oZ;function oZ(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 Gy=B((Ume,Z7)=>{Z7.exports={create:X6(),clone:J6(),copy:K6(),identity:By(),transpose:e7(),invert:t7(),adjoint:n7(),determinant:l7(),multiply:s7(),translate:f7(),scale:v7(),rotate:d7(),rotateX:m7(),rotateY:g7(),rotateZ:b7(),fromRotation:w7(),fromRotationTranslation:M7(),fromScaling:k7(),fromTranslation:C7(),fromXRotation:L7(),fromYRotation:E7(),fromZRotation:R7(),fromQuat:Yy(),frustum:F7(),perspective:H7(),perspectiveFromFieldOfView:B7(),ortho:G7(),lookAt:V7(),str:X7()}});var yh=B(Ot=>{"use strict";var sZ=Gy();Ot.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var uZ=kr(),J7=Go(),fZ=yh(),cZ=Gy();function vZ(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 hZ(e){var r=uZ.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function $7(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function dZ(e,r){K7("global",e,r)}function K7(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):J7.warn("addStyleRule failed"):J7.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function pZ(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&$7(t)}function mZ(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 yZ(e){var r=j7(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=Q7(a);if(n){var i=fZ.convertCssMatrix(n);t=cZ.multiply(t,t,i)}}),t}function Q7(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function j7(e){for(var r=[];gZ(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function gZ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function xZ(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}ew.exports={getGraphDiv:vZ,isPlotDiv:hZ,removeElement:$7,addStyleRule:dZ,addRelatedStyleRule:K7,deleteRelatedStyleRule:pZ,setStyleOnHover:mZ,getFullTransformMatrix:yZ,getElementTransformMatrix:Q7,getElementAndAncestors:j7,equalDomRects:xZ}});var Ac=B((Xme,rw)=>{"use strict";rw.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var ui=B((Zme,sw)=>{"use strict";var aw=mt().extendFlat,bZ=Pl(),nw={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},iw={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},_Z=nw.flags.slice().concat(["fullReplot"]),wZ=iw.flags.slice().concat("layoutReplot");sw.exports={traces:nw,layout:iw,traceFlags:function(){return tw(_Z)},layoutFlags:function(){return tw(wZ)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";Uy.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};Uy.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var Vy=B(($me,uw)=>{"use strict";uw.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var ha=B(kc=>{"use strict";var fw=Vy(),TZ=fw.FORMAT_LINK,MZ=fw.DATE_FORMAT_LINK;function AZ(e){var r=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(r?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,TZ,"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}".`,MZ,"for details on the date formatting syntax."].join(" ")}kc.templateFormatStringDescription=AZ;function Wy(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var a=[],n=0;n{"use strict";function Nl(e,r){return r?r.d2l(e):e}function cw(e,r){return r?r.l2d(e):e}function kZ(e){return e.x0}function qZ(e){return e.x1}function CZ(e){return e.y0}function SZ(e){return e.y1}function vw(e){return e.x0shift||0}function hw(e){return e.x1shift||0}function dw(e){return e.y0shift||0}function pw(e){return e.y1shift||0}function gh(e,r){return Nl(e.x1,r)+hw(e)-Nl(e.x0,r)-vw(e)}function xh(e,r,t){return Nl(e.y1,t)+pw(e)-Nl(e.y0,t)-dw(e)}function LZ(e,r){return Math.abs(gh(e,r))}function DZ(e,r,t){return Math.abs(xh(e,r,t))}function EZ(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(gh(e,r),2)+Math.pow(xh(e,r,t),2))}function PZ(e,r){return cw((Nl(e.x1,r)+hw(e)+Nl(e.x0,r)+vw(e))/2,r)}function RZ(e,r,t){return cw((Nl(e.y1,t)+pw(e)+Nl(e.y0,t)+dw(e))/2,t)}function zZ(e,r,t){return e.type!=="line"?void 0:xh(e,r,t)/gh(e,r)}mw.exports={x0:kZ,x1:qZ,y0:CZ,y1:SZ,slope:zZ,dx:gh,dy:xh,width:LZ,height:DZ,length:EZ,xcenter:PZ,ycenter:RZ}});var xw=B((jme,gw)=>{"use strict";var NZ=ui().overrideAll,Uo=tn(),yw=aa(),FZ=fi().dash,Fl=mt().extendFlat,IZ=ha().shapeTexttemplateAttrs,HZ=bh();gw.exports=NZ({newshape:{visible:Fl({},Uo.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Fl({},Uo.legend,{}),legendgroup:Fl({},Uo.legendgroup,{}),legendgrouptitle:{text:Fl({},Uo.legendgrouptitle.text,{}),font:yw({})},legendrank:Fl({},Uo.legendrank,{}),legendwidth:Fl({},Uo.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Fl({},FZ,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Fl({},Uo.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:IZ({newshape:!0},{keys:Object.keys(HZ)}),font:yw({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var _w=B((eye,bw)=>{"use strict";var OZ=fi().dash,BZ=mt().extendFlat;bw.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:BZ({},OZ,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var _h=B((rye,ww)=>{"use strict";ww.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var xu=B((tye,kw)=>{"use strict";var Xy=aa(),YZ=Ac(),wh=zn(),Tw=xw(),Mw=_w(),GZ=_h(),Aw=mt().extendFlat,Th=Xy({editType:"calc"});Th.family.dflt='"Open Sans", verdana, arial, sans-serif';Th.size.dflt=12;Th.color.dflt=wh.defaultLine;kw.exports={font:Th,title:{text:{valType:"string",editType:"layoutstyle"},font:Xy({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Xy({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:Aw(GZ({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:wh.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:wh.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:wh.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:Tw.newshape,activeshape:Tw.activeshape,newselection:Mw.newselection,activeselection:Mw.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:Aw({},YZ.transition,{editType:"none"})}});var qw=nt(()=>{});var UZ={};var Cw=nt(()=>{qw()});var yr=B(Fr=>{"use strict";var bu=Go(),Sw=mh(),Lw=Oy(),VZ=Pl(),WZ=Mc().addStyleRule,Dw=mt(),XZ=tn(),ZZ=xu(),JZ=Dw.extendFlat,Zy=Dw.extendDeepAll;Fr.modules={};Fr.allCategories={};Fr.allTypes=[];Fr.subplotsRegistry={};Fr.componentsRegistry={};Fr.layoutArrayContainers=[];Fr.layoutArrayRegexes=[];Fr.traceLayoutAttributes={};Fr.localeRegistry={};Fr.apiMethodRegistry={};Fr.collectableSubplotTypes=null;Fr.register=function(r){if(Fr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var rJ=cu().timeFormat,Yw=zr(),Jy=Go(),Hl=hu().mod,Tu=Mt(),Nn=Tu.BADNUM,ln=Tu.ONEDAY,qc=Tu.ONEHOUR,Il=Tu.ONEMIN,wu=Tu.ONESEC,Cc=Tu.EPOCHJD,il=yr(),Nw=cu().utcFormat,tJ=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,aJ=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Fw=new Date().getFullYear()-70;function ll(e){return e&&il.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Bt.dateTick0=function(e,r){var t=nJ(e,!!r);if(r<2)return t;var a=Bt.dateTime2ms(t,e);return a+=ln*(r-1),Bt.ms2DateTime(a,0,e)};function nJ(e,r){return ll(e)?r?il.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:il.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Bt.dfltRange=function(e){return ll(e)?il.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Bt.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Ah,kh;Bt.dateTime2ms=function(e,r){if(Bt.isJSDate(e)){var t=e.getTimezoneOffset()*Il,a=(e.getUTCMinutes()-e.getMinutes())*Il+(e.getUTCSeconds()-e.getSeconds())*wu+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Il;t=t-n/2+Hl(a-t+n/2,n)}return e=Number(e)-t,e>=Ah&&e<=kh?e:Nn}if(typeof e!="string"&&typeof e!="number")return Nn;e=String(e);var i=ll(r),l=e.charAt(0);i&&(l==="G"||l==="g")&&(e=e.substr(1),r="");var o=i&&r.substr(0,7)==="chinese",s=e.match(o?aJ:tJ);if(!s)return Nn;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),h=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return Nn;u=Number(u);var y;try{var m=il.getComponentMethod("calendars","getCal")(r);if(o){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),y=m.newDate(u,m.toMonthIndex(u,f,b),c)}else y=m.newDate(u,Number(f),c)}catch(w){return Nn}return y?(y.toJD()-Cc)*ln+h*qc+d*Il+p*wu:Nn}u.length===2?u=(Number(u)+2e3-Fw)%100+Fw:u=Number(u),f-=1;var _=new Date(Date.UTC(2e3,f,c,h,d));return _.setUTCFullYear(u),_.getUTCMonth()!==f||_.getUTCDate()!==c?Nn:_.getTime()+p*wu};Ah=Bt.MIN_MS=Bt.dateTime2ms("-9999");kh=Bt.MAX_MS=Bt.dateTime2ms("9999-12-31 23:59:59.9999");Bt.isDateTime=function(e,r){return Bt.dateTime2ms(e,r)!==Nn};function _u(e,r){return String(e+Math.pow(10,r)).substr(1)}var Mh=90*ln,Iw=3*qc,Hw=5*Il;Bt.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Ah&&e<=kh))return Nn;r||(r=0);var a=Math.floor(Hl(e+.05,1)*10),n=Math.round(e-a/10),i,l,o,s,u,f;if(ll(t)){var c=Math.floor(n/ln)+Cc,h=Math.floor(Hl(e,ln));try{i=il.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=Nw("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;l=r=Ah+ln&&e<=kh-ln))return Nn;var r=Math.floor(Hl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=rJ("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return Gw(a,n,i,l,o)};function Gw(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+_u(r,2)+":"+_u(t,2),(a||n)&&(e+=":"+_u(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+_u(n,i)}return e}Bt.cleanDate=function(e,r,t){if(e===Nn)return r;if(Bt.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(ll(t))return Jy.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Bt.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Bt.isDateTime(e,t))return Jy.error("unrecognized date",e),r;return e};var iJ=/%\d?f/g,lJ=/%h/g,oJ={1:"1",2:"1",3:"2",4:"2"};function Ow(e,r,t,a){e=e.replace(iJ,function(i){var l=Math.min(+i.charAt(1)||6,6),o=(r/1e3%1+2).toFixed(l).substr(2).replace(/0+$/,"")||"0";return o});var n=new Date(Math.floor(r+.05));if(e=e.replace(lJ,function(){return oJ[t("%q")(n)]}),ll(a))try{e=il.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var sJ=[59,59.9,59.99,59.999,59.9999];function uJ(e,r){var t=Hl(e+.05,ln),a=_u(Math.floor(t/qc),2)+":"+_u(Hl(Math.floor(t/Il),60),2);if(r!=="M"){Yw(r)||(r=0);var n=Math.min(Hl(e/wu,60),sJ[r]),i=(100+n).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Bt.formatDate=function(e,r,t,a,n,i){if(n=ll(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`+i.year;else return uJ(e,t)+` +`+Ow(i.dayMonthYear,e,a,n);return Ow(r,e,a,n)};var Bw=3*ln;Bt.incrementMonth=function(e,r,t){t=ll(t)&&t;var a=Hl(e,ln);if(e=Math.round(e-a),t)try{var n=Math.round(e/ln)+Cc,i=il.getComponentMethod("calendars","getCal")(t),l=i.fromJD(n);return r%12?i.add(l,r,"m"):i.add(l,r/12,"y"),(l.toJD()-Cc)*ln+a}catch(s){Jy.error("invalid ms "+e+" in calendar "+t)}var o=new Date(e+Bw);return o.setUTCMonth(o.getUTCMonth()+r)+a-Bw};Bt.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,l,o,s=ll(r)&&il.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";Vw.exports=function(r){return r}});var Qy=B(ol=>{"use strict";var fJ=zr(),cJ=Go(),vJ=$y(),hJ=Mt().BADNUM,Ky=1e-9;ol.findBin=function(e,r,t){if(fJ(r.start))return t?Math.ceil((e-r.start)/r.size-Ky)-1:Math.floor((e-r.start)/r.size+Ky);var a=0,n=r.length,i=0,l=n>1?(r[n-1]-r[0])/(n-1):1,o,s;for(l>=0?s=t?dJ:pJ:s=t?yJ:mJ,e+=l*Ky*(t?-1:1)*(l>=0?1:-1);a90&&cJ.log("Long binary search..."),a-1};function dJ(e,r){return er}function yJ(e,r){return e>=r}ol.sorterAsc=function(e,r){return e-r};ol.sorterDes=function(e,r){return r-e};ol.distinctVals=function(e){var r=e.slice();r.sort(ol.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===hJ;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],l,o=0;o<=t;o++){var s=r[o],u=s-l;l===void 0?(i.push(s),l=s):u>n&&(a=Math.min(a,u),i.push(s),l=s)}return{vals:i,minDiff:a}};ol.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,l=0,o=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};ol.findIndexOfMin=function(e,r){r=r||vJ;for(var t=1/0,a,n=0;n{"use strict";Ww.exports=function(r){return Object.keys(r).sort()}});var Xw=B(Yt=>{"use strict";var Sc=zr(),gJ=gn().isArrayOrTypedArray;Yt.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),Sc(r)||(r=!1),gJ(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var Qw=B((vye,Kw)=>{"use strict";var Zw=hu(),eg=Zw.mod,xJ=Zw.modHalf,Lc=Math.PI,Ol=2*Lc;function bJ(e){return e/180*Lc}function _J(e){return e/Lc*180}function rg(e){return Math.abs(e[1]-e[0])>Ol-1e-14}function Jw(e,r){return xJ(r-e,Ol)}function wJ(e,r){return Math.abs(Jw(e,r))}function $w(e,r){if(rg(r))return!0;var t,a;r[0]a&&(a+=Ol);var n=eg(e,Ol),i=n+Ol;return n>=t&&n<=a||i>=t&&i<=a}function TJ(e,r,t,a){if(!$w(r,a))return!1;var n,i;return t[0]=n&&e<=i}function tg(e,r,t,a,n,i,l){n=n||0,i=i||0;var o=rg([t,a]),s,u,f,c,h;o?(s=0,u=Lc,f=Ol):t{"use strict";Vo.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Vo.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Vo.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Vo.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Vo.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Vo.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var t8=B(Wo=>{"use strict";var ag=hu().mod;Wo.segmentsIntersect=r8;function r8(e,r,t,a,n,i,l,o){var s=t-e,u=n-e,f=l-n,c=a-r,h=i-r,d=o-i,p=s*d-f*c;if(p===0)return null;var y=(u*d-f*h)/p,m=(u*c-s*h)/p;return m<0||m>1||y<0||y>1?null:{x:e+s*y,y:r+c*y}}Wo.segmentDistance=function(r,t,a,n,i,l,o,s){if(r8(r,t,a,n,i,l,o,s))return 0;var u=a-r,f=n-t,c=o-i,h=s-l,d=u*u+f*f,p=c*c+h*h,y=Math.min(qh(u,f,d,i-r,l-t),qh(u,f,d,o-r,s-t),qh(c,h,p,r-i,t-l),qh(c,h,p,a-i,n-l));return Math.sqrt(y)};function qh(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 Ch,ng,e8;Wo.getTextLocation=function(r,t,a,n){if((r!==ng||n!==e8)&&(Ch={},ng=r,e8=n),Ch[a])return Ch[a];var i=r.getPointAtLength(ag(a-n/2,t)),l=r.getPointAtLength(ag(a+n/2,t)),o=Math.atan((l.y-i.y)/(l.x-i.x)),s=r.getPointAtLength(ag(a,t)),u=(s.x*4+i.x+l.x)/6,f=(s.y*4+i.y+l.y)/6,c={x:u,y:f,theta:o};return Ch[a]=c,c};Wo.clearLocationCache=function(){ng=null};Wo.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,l=t.top,o=t.bottom,s=0,u=r.getTotalLength(),f=u,c,h;function d(y){var m=r.getPointAtLength(y);y===0?c=m:y===u&&(h=m);var b=m.xi?m.x-i:0,_=m.yo?m.y-o:0;return Math.sqrt(b*b+_*_)}for(var p=d(s);p;){if(s+=p+a,s>f)return;p=d(s)}for(p=d(f);p;){if(f-=p+a,s>f)return;p=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-h.x)<.1&&Math.abs(c.y-h.y)<.1}};Wo.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),l=n.tolerance||.001,o=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,h,d,p;u0?c=h:f=h,u++}return d}});var Sh=B(Dc=>{"use strict";var sl={};Dc.throttle=function(r,t,a){var n=sl[r],i=Date.now();if(!n){for(var l in sl)sl[l].tsn.ts+t){o();return}n.timer=setTimeout(function(){o(),n.timer=null},t)};Dc.done=function(e){var r=sl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};Dc.clear=function(e){if(e)a8(sl[e]),delete sl[e];else for(var r in sl)Dc.clear(r)};function a8(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var i8=B((mye,n8)=>{"use strict";n8.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var l8=B((yye,Lh)=>{"use strict";Lh.exports=ig;Lh.exports.isMobile=ig;Lh.exports.default=ig;var qJ=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,CJ=/CrOS/,SJ=/android|ipad|playbook|silk/i;function ig(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=qJ.test(r)&&!CJ.test(r)||!!e.tablet&&SJ.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var s8=B((gye,o8)=>{"use strict";var LJ=zr(),DJ=l8();o8.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=EJ(),typeof t!="string")return!0;var a=DJ({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;o--){var s=n[o];if(s.substr(0,8)==="Version/"){var u=s.substr(8).split(".")[0];if(LJ(u)&&(u=+u),u>=13)return!0}}}return a};function EJ(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var f8=B((xye,u8)=>{"use strict";var PJ=kr();u8.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(l){return l[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(l){l[0][i]=PJ.select(this)}),n}});var v8=B((bye,c8)=>{"use strict";var RJ=yr();c8.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,l=0;l<2;l++){var o=(i[a]||{}).dictionary;if(o){var s=o[t];if(s)return s}i=RJ.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var d8=B((_ye,h8)=>{"use strict";h8.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";p8.exports=function(r){for(var t=FJ(r)?NJ:zJ,a=[],n=0;n{"use strict";y8.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var l=String(t).length,o=String(r).length;if(i>=o+l){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var b8=B((Mye,x8)=>{"use strict";var IJ=zr(),HJ=Mt().BADNUM,OJ=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;x8.exports=function(r){return typeof r=="string"&&(r=r.replace(OJ,"")),IJ(r)?Number(r):HJ}});var Pe=B((Aye,P8)=>{"use strict";var Ec=kr(),BJ=cu().utcFormat,YJ=ky().format,k8=zr(),q8=Mt(),C8=q8.FP_SAFE,GJ=-C8,_8=q8.BADNUM,de=P8.exports={};de.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var w8={};de.warnBadFormat=function(e){var r=String(e);w8[r]||(w8[r]=1,de.warn('encountered bad format: "'+r+'"'))};de.noFormat=function(e){return String(e)};de.numberFormat=function(e){var r;try{r=YJ(de.adjustFormat(e))}catch(t){return de.warnBadFormat(e),de.noFormat}return r};de.nestedProperty=uh();de.keyedContainer=v6();de.relativeAttr=d6();de.isPlainObject=Pl();de.toLogRange=ch();de.relinkPrivateKeys=g6();var Bl=gn();de.isArrayBuffer=Bl.isArrayBuffer;de.isTypedArray=Bl.isTypedArray;de.isArrayOrTypedArray=Bl.isArrayOrTypedArray;de.isArray1D=Bl.isArray1D;de.ensureArray=Bl.ensureArray;de.concat=Bl.concat;de.maxRowLength=Bl.maxRowLength;de.minRowLength=Bl.minRowLength;var S8=hu();de.mod=S8.mod;de.modHalf=S8.modHalf;var Yl=F6();de.valObjectMeta=Yl.valObjectMeta;de.coerce=Yl.coerce;de.coerce2=Yl.coerce2;de.coerceFont=Yl.coerceFont;de.coercePattern=Yl.coercePattern;de.coerceHoverinfo=Yl.coerceHoverinfo;de.coerceSelectionMarkerOpacity=Yl.coerceSelectionMarkerOpacity;de.validate=Yl.validate;var xn=Uw();de.dateTime2ms=xn.dateTime2ms;de.isDateTime=xn.isDateTime;de.ms2DateTime=xn.ms2DateTime;de.ms2DateTimeLocal=xn.ms2DateTimeLocal;de.cleanDate=xn.cleanDate;de.isJSDate=xn.isJSDate;de.formatDate=xn.formatDate;de.incrementMonth=xn.incrementMonth;de.dateTick0=xn.dateTick0;de.dfltRange=xn.dfltRange;de.findExactDates=xn.findExactDates;de.MIN_MS=xn.MIN_MS;de.MAX_MS=xn.MAX_MS;var Xo=Qy();de.findBin=Xo.findBin;de.sorterAsc=Xo.sorterAsc;de.sorterDes=Xo.sorterDes;de.distinctVals=Xo.distinctVals;de.roundUp=Xo.roundUp;de.sort=Xo.sort;de.findIndexOfMin=Xo.findIndexOfMin;de.sortObjectKeys=jy();var ul=Xw();de.aggNums=ul.aggNums;de.len=ul.len;de.mean=ul.mean;de.geometricMean=ul.geometricMean;de.median=ul.median;de.midRange=ul.midRange;de.variance=ul.variance;de.stdev=ul.stdev;de.interp=ul.interp;var ci=yh();de.init2dArray=ci.init2dArray;de.transposeRagged=ci.transposeRagged;de.dot=ci.dot;de.translationMatrix=ci.translationMatrix;de.rotationMatrix=ci.rotationMatrix;de.rotationXYMatrix=ci.rotationXYMatrix;de.apply3DTransform=ci.apply3DTransform;de.apply2DTransform=ci.apply2DTransform;de.apply2DTransform2=ci.apply2DTransform2;de.convertCssMatrix=ci.convertCssMatrix;de.inverseTransformMatrix=ci.inverseTransformMatrix;var Fi=Qw();de.deg2rad=Fi.deg2rad;de.rad2deg=Fi.rad2deg;de.angleDelta=Fi.angleDelta;de.angleDist=Fi.angleDist;de.isFullCircle=Fi.isFullCircle;de.isAngleInsideSector=Fi.isAngleInsideSector;de.isPtInsideSector=Fi.isPtInsideSector;de.pathArc=Fi.pathArc;de.pathSector=Fi.pathSector;de.pathAnnulus=Fi.pathAnnulus;var Au=jw();de.isLeftAnchor=Au.isLeftAnchor;de.isCenterAnchor=Au.isCenterAnchor;de.isRightAnchor=Au.isRightAnchor;de.isTopAnchor=Au.isTopAnchor;de.isMiddleAnchor=Au.isMiddleAnchor;de.isBottomAnchor=Au.isBottomAnchor;var ku=t8();de.segmentsIntersect=ku.segmentsIntersect;de.segmentDistance=ku.segmentDistance;de.getTextLocation=ku.getTextLocation;de.clearLocationCache=ku.clearLocationCache;de.getVisibleSegment=ku.getVisibleSegment;de.findPointOnPath=ku.findPointOnPath;var Ph=mt();de.extendFlat=Ph.extendFlat;de.extendDeep=Ph.extendDeep;de.extendDeepAll=Ph.extendDeepAll;de.extendDeepNoArrays=Ph.extendDeepNoArrays;var lg=Go();de.log=lg.log;de.warn=lg.warn;de.error=lg.error;var UJ=mu();de.counterRegex=UJ.counter;var og=Sh();de.throttle=og.throttle;de.throttleDone=og.done;de.clearThrottle=og.clear;var vi=Mc();de.getGraphDiv=vi.getGraphDiv;de.isPlotDiv=vi.isPlotDiv;de.removeElement=vi.removeElement;de.addStyleRule=vi.addStyleRule;de.addRelatedStyleRule=vi.addRelatedStyleRule;de.deleteRelatedStyleRule=vi.deleteRelatedStyleRule;de.setStyleOnHover=vi.setStyleOnHover;de.getFullTransformMatrix=vi.getFullTransformMatrix;de.getElementTransformMatrix=vi.getElementTransformMatrix;de.getElementAndAncestors=vi.getElementAndAncestors;de.equalDomRects=vi.equalDomRects;de.clearResponsive=i8();de.preserveDrawingBuffer=s8();de.makeTraceGroups=f8();de._=v8();de.notifier=Fy();de.filterUnique=d8();de.filterVisible=m8();de.pushUnique=Oy();de.increment=g8();de.cleanNumber=b8();de.ensureNumber=function(r){return k8(r)?(r=Number(r),r>C8||r=r?!1:k8(e)&&e>=0&&e%1===0};de.noop=mh();de.identity=$y();de.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))};de.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};de.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?(de.warn("randstr failed uniqueness"),l):e(r,t,a,(n||0)+1):l};de.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};de.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};de.syncOrAsync=function(e,r,t){var a,n;function i(){return de.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)};de.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};de.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,l;for(i=0;i0?n:0})};de.fillArray=function(e,r,t,a){if(a=a||de.identity,de.isArrayOrTypedArray(e))for(var n=0;nXJ.test(window.navigator.userAgent);var ZJ=/Firefox\/(\d+)\.\d+/;de.getFirefoxVersion=function(){var e=ZJ.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};de.isD3Selection=function(e){return e instanceof Ec.selection};de.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};de.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};de.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+l[1]:"";if(i&&(l.length>1||o.length>4||t))for(;a.test(o);)o=o.replace(a,"$1"+i+"$2");return o+s};de.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var E8=/^\w*$/;de.templateString=function(e,r){var t={};return e.replace(de.TEMPLATE_STRING_REGEX,function(a,n){var i;return E8.test(n)?i=r[n]:(t[n]=t[n]||de.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var KJ={max:10,count:0,name:"hovertemplate"};de.hovertemplateString=function(){return sg.apply(KJ,arguments)};var QJ={max:10,count:0,name:"texttemplate"};de.texttemplateString=function(){return sg.apply(QJ,arguments)};var jJ=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function e$(e){var r=e.match(jJ);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var r$={max:10,count:0,name:"texttemplate",parseMultDiv:!0};de.texttemplateStringForShapes=function(){return sg.apply(r$,arguments)};var T8=/^[:|\|]/;function sg(e,r,t){var a=this,n=arguments;return r||(r={}),e.replace(de.TEMPLATE_STRING_REGEX,function(i,l,o){var s=l==="xother"||l==="yother",u=l==="_xother"||l==="_yother",f=l==="_xother_"||l==="_yother_",c=l==="xother_"||l==="yother_",h=s||u||c||f,d=l;(u||f)&&(d=d.substring(1)),(c||f)&&(d=d.substring(0,d.length-1));var p=null,y=null;if(a.parseMultDiv){var m=e$(d);d=m.key,p=m.op,y=m.number}var b;if(h){if(b=r[d],b===void 0)return""}else{var _,w;for(w=3;w=Eh&&l<=M8,u=o>=Eh&&o<=M8;if(s&&(a=10*a+l-Eh),u&&(n=10*n+o-Eh),!s||!u){if(a!==n)return a-n;if(l!==o)return l-o}}return n-a};var Mu=2e9;de.seedPseudoRandom=function(){Mu=2e9};de.pseudoRandom=function(){var e=Mu;return Mu=(69069*Mu+1)%4294967296,Math.abs(Mu-e)<429496729?de.pseudoRandom():Mu/4294967296};de.fillText=function(e,r,t){var a=Array.isArray(t)?function(l){t.push(l)}:function(l){t.text=l},n=de.extractOption(e,r,"htx","hovertext");if(de.isValidTextValue(n))return a(n);var i=de.extractOption(e,r,"tx","text");if(de.isValidTextValue(i))return a(i)};de.isValidTextValue=function(e){return e||e===0};de.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,de.strTranslate(n-u*(t+l),i-u*(a+o))+de.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};de.setTransormAndDisplay=function(e,r){e.attr("transform",de.getTextTransform(r)),e.style("display",r.scale?null:"none")};de.ensureUniformFontSize=function(e,r){var t=de.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};de.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)};de.bigFont=function(e){return Math.round(1.2*e)};var A8=de.getFirefoxVersion(),t$=A8!==null&&A8<86;de.getPositionFromD3Event=function(){return t$?[Ec.event.layerX,Ec.event.layerY]:[Ec.event.offsetX,Ec.event.offsetY]}});var N8=B(()=>{"use strict";var a$=Pe(),R8={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(ug in R8)z8=ug.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),a$.addStyleRule(z8,R8[ug]);var z8,ug});var fg=B((Cye,F8)=>{F8.exports=!0});var vg=B((Sye,I8)=>{"use strict";var n$=fg(),cg;typeof window.matchMedia=="function"?cg=!window.matchMedia("(hover: none)").matches:cg=n$;I8.exports=cg});var Nh=B((Lye,hg)=>{"use strict";var qu=typeof Reflect=="object"?Reflect:null,H8=qu&&typeof qu.apply=="function"?qu.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Rh;qu&&typeof qu.ownKeys=="function"?Rh=qu.ownKeys:Object.getOwnPropertySymbols?Rh=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Rh=function(r){return Object.getOwnPropertyNames(r)};function i$(e){console&&console.warn&&console.warn(e)}var B8=Number.isNaN||function(r){return r!==r};function yt(){yt.init.call(this)}hg.exports=yt;hg.exports.once=u$;yt.EventEmitter=yt;yt.prototype._events=void 0;yt.prototype._eventsCount=0;yt.prototype._maxListeners=void 0;var O8=10;function zh(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(yt,"defaultMaxListeners",{enumerable:!0,get:function(){return O8},set:function(e){if(typeof e!="number"||e<0||B8(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");O8=e}});yt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};yt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||B8(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function Y8(e){return e._maxListeners===void 0?yt.defaultMaxListeners:e._maxListeners}yt.prototype.getMaxListeners=function(){return Y8(this)};yt.prototype.emit=function(r){for(var t=[],a=1;a0&&(l=t[0]),l instanceof Error)throw l;var o=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw o.context=l,o}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")H8(s,this,t);else for(var u=s.length,f=X8(s,u),a=0;a0&&l.length>n&&!l.warned){l.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=r,o.count=l.length,i$(o)}return e}yt.prototype.addListener=function(r,t){return G8(this,r,t,!1)};yt.prototype.on=yt.prototype.addListener;yt.prototype.prependListener=function(r,t){return G8(this,r,t,!0)};function l$(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function U8(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=l$.bind(a);return n.listener=t,a.wrapFn=n,n}yt.prototype.once=function(r,t){return zh(t),this.on(r,U8(this,r,t)),this};yt.prototype.prependOnceListener=function(r,t){return zh(t),this.prependListener(r,U8(this,r,t)),this};yt.prototype.removeListener=function(r,t){var a,n,i,l,o;if(zh(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,l=a.length-1;l>=0;l--)if(a[l]===t||a[l].listener===t){o=a[l].listener,i=l;break}if(i<0)return this;i===0?a.shift():o$(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,o||t)}return this};yt.prototype.off=yt.prototype.removeListener;yt.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),l;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function V8(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?s$(n):X8(n,n.length)}yt.prototype.listeners=function(r){return V8(this,r,!0)};yt.prototype.rawListeners=function(r){return V8(this,r,!1)};yt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):W8.call(e,r)};yt.prototype.listenerCount=W8;function W8(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}yt.prototype.eventNames=function(){return this._eventsCount>0?Rh(this._events):[]};function X8(e,r){for(var t=new Array(r),a=0;a{"use strict";var dg=Nh().EventEmitter,c$={init:function(e){if(e._ev instanceof dg)return e;var r=new dg,t=new dg;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function l(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var o;for(o=0;o{"use strict";var $8=Pe(),v$=Yo().dfltConfig;function h$(e,r){for(var t=[],a,n=0;nv$.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};fl.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};fl.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};fl.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";j8.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Lu=B(Qt=>{"use strict";var Fn=yr(),Rc=Pe(),Ih=tn(),mg=xu(),d$=pg(),p$=Ac(),m$=Yo().configAttributes,e9=ui(),hi=Rc.extendDeepAll,Cu=Rc.isPlainObject,y$=Rc.isArrayOrTypedArray,Hh=Rc.nestedProperty,g$=Rc.valObjectMeta,yg="_isSubplotObj",Oh="_isLinkedToArray",x$="_arrayAttrRegexps",t9="_deprecated",gg=[yg,Oh,x$,t9];Qt.IS_SUBPLOT_OBJ=yg;Qt.IS_LINKED_TO_ARRAY=Oh;Qt.DEPRECATED=t9;Qt.UNDERSCORE_ATTRS=gg;Qt.get=function(){var e={};return Fn.allTypes.forEach(function(r){e[r]=_$(r)}),{defs:{valObjects:g$,metaKeys:gg.concat(["description","role","editType","impliedEdits"]),editType:{traces:e9.traces,layout:e9.layout},impliedEdits:{}},traces:e,layout:w$(),frames:T$(),animation:Su(p$),config:Su(m$)}};Qt.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var l=e[i];if(gg.indexOf(i)===-1){var o=(a?a+".":"")+i;r(l,i,e,n,o),!Qt.isValObject(l)&&Cu(l)&&i!=="impliedEdits"&&Qt.crawl(l,r,n+1,o)}})};Qt.isValObject=function(e){return e&&e.valType!==void 0};Qt.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function l(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var h=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&o(n,0,"")}function o(s,u,f){var c=s[t[u]],h=f+t[u];if(u===t.length-1)y$(c)&&r.push(i+h);else if(a[u]){if(Array.isArray(c))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var l=r[t];if(!Fh(l))return!1;e=i[n][l]}else e=i[n]}else e=i}}return e}function Fh(e){return e===Math.round(e)&&e>=0}function _$(e){var r,t;r=Fn.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=hi({},Ih),i=hi({},r.attributes);Qt.crawl(i,function(s,u,f,c,h){Hh(n,h).set(void 0),s===void 0&&Hh(i,h).set(void 0)}),hi(a,n),Fn.traceIs(e,"noOpacity")&&delete a.opacity,Fn.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Fn.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,hi(a,i),t.attributes&&hi(a,t.attributes),a.type=e;var l={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Su(a)};if(r.layoutAttributes){var o={};hi(o,r.layoutAttributes),l.layoutAttributes=Su(o)}return r.animatable||Qt.crawl(l,function(s){Qt.isValObject(s)&&"anim"in s&&delete s.anim}),l}function w$(){var e={},r,t;hi(e,mg);for(r in Fn.subplotsRegistry)if(t=Fn.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Du=Pe(),C$=tn(),Gl="templateitemname",xg={name:{valType:"string",editType:"none"}};xg[Gl]={valType:"string",editType:"calc"};Zo.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=xg.name,r[Gl]=xg[Gl],r};Zo.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=Du.coerce(i,{},C$,"type");var l={type:t,_template:null};if(t in r){a=e[t];var o=r[t]%a.length;r[t]++,l._template=a[o]}return l}return{newTrace:n}};Zo.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Du.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};Zo.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[i9(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var l={};function o(u){var f={name:u.name,_input:u},c=f[Gl]=u[Gl];if(!n9(c))return f._template=n,f;for(var h=0;h=a&&(t._input||{})._templateitemname;i&&(n=a);var l=r+"["+n+"]",o;function s(){o={},i&&(o[l]={},o[l][Gl]=i)}s();function u(d,p){o[d]=p}function f(d,p){i?Du.nestedProperty(o[l],d).set(p):o[l+"."+d]=p}function c(){var d=o;return s(),d}function h(d,p){d&&f(d,p);var y=c();for(var m in y)Du.nestedProperty(e,m).set(y[m])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:h}}});var Aa=B((Nye,l9)=>{"use strict";var zc=mu().counter;l9.exports={idRegex:{x:zc("x","( domain)?"),y:zc("y","( domain)?")},attrRegex:zc("[xy]axis"),xAxisMatch:zc("xaxis"),yAxisMatch:zc("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var Ut=B(on=>{"use strict";var S$=yr(),bg=Aa();on.id2name=function(r){if(!(typeof r!="string"||!r.match(bg.AX_ID_PATTERN))){var t=r.split(" ")[0].substr(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};on.name2id=function(r){if(r.match(bg.AX_NAME_PATTERN)){var t=r.substr(5);return t==="1"&&(t=""),r.charAt(0)+t}};on.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(bg.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].substr(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};on.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=on.listIds(e,r),i=new Array(n.length),l;for(l=0;la?1:-1:+(e.substr(1)||1)-+(r.substr(1)||1)};on.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function o9(e,r){if(r&&r.length){for(var t=0;t{"use strict";function L$(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function D$(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}s9.exports={clearOutlineControllers:L$,clearOutline:D$}});var Bh=B((Hye,u9)=>{"use strict";u9.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var _g=B(Gh=>{"use strict";var Yh=yr(),Oye=Aa().SUBPLOT_PATTERN;Gh.getSubplotCalcData=function(e,r,t){var a=Yh.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],l=0;l{"use strict";var E$=yr(),Eu=Pe();Jo.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var l=Jo.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(l)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(l){f9(e,l,n.cache),n.check=function(){if(i){var f=f9(e,l,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:l.type,prop:l.prop,traces:l.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var o=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;Eu.isPlainObject(i)?wg(i,r,l,a+1):r(l,n,i)}})}});var Pt=B((Gye,q9)=>{"use strict";var b9=kr(),R$=cu().timeFormatLocale,z$=ky().formatLocale,Nc=zr(),N$=qy(),Zr=yr(),_9=Lu(),F$=ot(),ur=Pe(),w9=xr(),d9=Mt().BADNUM,sn=Ut(),I$=Ul().clearOutline,H$=Bh(),Tg=Ac(),O$=pg(),B$=_g().getModuleCalcData,p9=ur.relinkPrivateKeys,$o=ur._,Qe=q9.exports={};ur.extendFlat(Qe,Zr);Qe.attributes=tn();Qe.attributes.type.values=Qe.allTypes;Qe.fontAttrs=aa();Qe.layoutAttributes=xu();var Vh=h9();Qe.executeAPICommand=Vh.executeAPICommand;Qe.computeAPICommandBindings=Vh.computeAPICommandBindings;Qe.manageCommandObserver=Vh.manageCommandObserver;Qe.hasSimpleAPICommandBindings=Vh.hasSimpleAPICommandBindings;Qe.redrawText=function(e){return e=ur.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Zr.getComponentMethod("annotations","draw")(e),Zr.getComponentMethod("legend","draw")(e),Zr.getComponentMethod("colorbar","draw")(e),r(Qe.previousPromises(e)))},300)})};Qe.resize=function(e){e=ur.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||ur.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||ur.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Zr.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Qe.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Qe.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=ur.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:w9.defaultLine,"pointer-events":"all"}).each(function(){var u=b9.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),a=t.node(),n={y:r._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=r.width-20?(n["text-anchor"]="start",n.x=5):(n["text-anchor"]="end",n.x=r._paper.attr("width")-7),t.attr(n);var i=t.select(".js-link-to-tool"),l=t.select(".js-link-spacer"),o=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&Y$(e,i),l.text(i.text()&&o.text()?" - ":"")}};function Y$(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){Qe.sendDataToCloud(e)});else{var a=window.location.pathname.split("/"),n=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}Qe.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=b9.select(e).append("div").attr("id","hiddenform").style("display","none"),a=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),n=a.append("input").attr({type:"text",name:"data"});return n.node().value=Qe.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var G$=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],U$=["year","month","dayMonth","dayMonthYear"];Qe.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},l=e._fullData||[],o=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||Qe.createTransitionData(e),n._dfltTitle={plot:$o(e,"Click to enter Plot title"),subtitle:$o(e,"Click to enter Plot subtitle"),x:$o(e,"Click to enter X axis title"),y:$o(e,"Click to enter Y axis title"),colorbar:$o(e,"Click to enter Colorscale title"),annotation:$o(e,"new text")},n._traceWord=$o(e,"trace");var h=m9(e,G$);if(n._mapboxAccessToken=f.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,p=a.height;Qe.supplyLayoutGlobalDefaults(i,n,h),i.width||(n.width=d),i.height||(n.height=p),Qe.sanitizeMargins(n)}else{Qe.supplyLayoutGlobalDefaults(i,n,h);var y=!i.width||!i.height,m=n.autosize,b=f.autosizable,_=y&&(m||b);_?Qe.plotAutoSize(e,i,n):y&&Qe.sanitizeMargins(n),!m&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=X$(h,n.separators),n._extraFormat=m9(e,U$),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var w=n._subplots=W$(),x=n._splomAxes={x:{},y:{}},M=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=V$(l,s),Qe.supplyDataDefaults(s,o,i,n);var k=Object.keys(x.x),A=Object.keys(x.y);if(k.length>1&&A.length>1){for(Zr.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&A.length>15&&n.shapes.length===0&&n.images.length===0,Qe.linkSubplots(o,n,l,a),Qe.cleanPlot(o,n,l,a);var N=!!(a._has&&a._has("cartesian")),I=!!(n._has&&n._has("cartesian")),H=N,U=I;H&&!U?a._bgLayer.remove():U&&!H&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&I$({_fullLayout:a}),Z$(o,n),p9(n,a),Zr.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var X=n._tracePreGUI,Y={},O;for(O in X)Y[O]="old";for(c=0;c0){var f=1-2*i;l=Math.round(f*l),o=Math.round(f*o)}}var c=Qe.layoutAttributes.width.min,h=Qe.layoutAttributes.height.min;l1,p=!t.height&&Math.abs(a.height-o)>1;(p||d)&&(d&&(a.width=l),p&&(a.height=o)),r._initialAutoSize||(r._initialAutoSize={width:l,height:o}),Qe.sanitizeMargins(a)};Qe.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Zr.componentsRegistry,i=r._basePlotModules,l,o,s,u=Zr.subplotsRegistry.cartesian;for(l in n)s=n[l],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Zr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(ur.subplotSort);for(o=0;o1&&(t.l/=m,t.r/=m)}if(h){var b=(t.t+t.b)/h;b>1&&(t.t/=b,t.b/=b)}var _=t.xl!==void 0?t.xl:t.x,w=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,M=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:_,size:t.l+y},r:{val:w,size:t.r+y},b:{val:M,size:t.b+y},t:{val:x,size:t.t+y}},p[r]=1}if(!a._replotting)return Qe.doAutoMargin(e)}};function $$(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=sn.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Qe.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),T9(r);var n=r._size,i=r.margin,l={t:0,b:0,l:0,r:0},o=ur.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,h=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,y=r.minreducedheight;if(i.autoexpand!==!1){for(var m in h)d[m]||delete h[m];var b=e._fullLayout._reservedMargin;for(var _ in b)for(var w in b[_]){var x=b[_][w];l[w]=Math.max(l[w],x)}h.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var M in l){var k=0;for(var A in h)A!=="base"&&Nc(h[A][M].size)&&(k=h[A][M].size>k?h[A][M].size:k);var S=Math.max(0,i[M]-k);l[M]=Math.max(0,l[M]-S)}for(var D in h){var E=h[D].l||{},R=h[D].b||{},N=E.val,I=E.size,H=R.val,U=R.size,X=t-l.r-l.l,Y=a-l.t-l.b;for(var O in h){if(Nc(I)&&h[O].r){var G=h[O].r.val,J=h[O].r.size;if(G>N){var $=(I*G+(J-X)*N)/(G-N),re=(J*(1-N)+(I-X)*(1-G))/(G-N);$+re>s+u&&(s=$,u=re)}}if(Nc(U)&&h[O].t){var le=h[O].t.val,fe=h[O].t.size;if(le>H){var pe=(U*le+(fe-Y)*H)/(le-H),Q=(fe*(1-H)+(U-Y)*(1-le))/(le-H);pe+Q>c+f&&(c=pe,f=Q)}}}}}var qe=ur.constrain(t-i.l-i.r,M9,p),ve=ur.constrain(a-i.t-i.b,A9,y),be=Math.max(0,t-qe),se=Math.max(0,a-ve);if(be){var _e=(s+u)/be;_e>1&&(s/=_e,u/=_e)}if(se){var V=(c+f)/se;V>1&&(c/=V,f/=V)}if(n.l=Math.round(s)+l.l,n.r=Math.round(u)+l.r,n.t=Math.round(f)+l.t,n.b=Math.round(c)+l.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(Qe.didMarginChange(o,n)||$$(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var te=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};Qe.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&Qe.supplyDefaults(e);var l=n?e._fullData:e.data,o=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(ur.isPlainObject(h)){var p={},y;return Object.keys(h).sort().forEach(function(w){if(["_","["].indexOf(w.charAt(0))===-1){if(typeof h[w]=="function"){d&&(p[w]="_function");return}if(t==="keepdata"){if(w.substr(w.length-3)==="src")return}else if(t==="keepstream"){if(y=h[w+"src"],typeof y=="string"&&y.indexOf(":")>0&&!ur.isPlainObject(h.stream))return}else if(t!=="keepall"&&(y=h[w+"src"],typeof y=="string"&&y.indexOf(":")>0))return;p[w]=u(h[w],d)}}),p}var m=Array.isArray(h),b=ur.isTypedArray(h);if((m||b)&&h.dtype&&h.shape){var _=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:ur.isArrayBuffer(_)?N$.encode(_):_},d)}return m?h.map(function(w){return u(w,d)}):b?ur.simpleMap(h,ur.identity):ur.isJSDate(h)?ur.ms2DateTimeLocal(+h):h}var f={data:(l||[]).map(function(h){var d=u(h);return r&&delete d.fit,d})};if(!r&&(f.layout=u(o),n)){var c=o._size;f.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return s&&(f.frames=u(s)),i&&(f.config=u(e._context,!0)),a==="object"?f:JSON.stringify(f)};Qe.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,l=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Zr.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function p(){return h++,function(){d++,!a&&d===h&&o(c)}}t.runFn(p),setTimeout(p())})}function o(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Zr.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[Qe.previousPromises,s,t.prepareFn,Qe.rehover,Qe.reselect,l],f=ur.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Qe.doCalcdata=function(e,r){var t=sn.list(e),a=e._fullData,n=e._fullLayout,i,l,o,s,u=new Array(a.length),f=(e.calcdata||[]).slice();for(e.calcdata=u,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},o=0;o=0;s--)if(M[s].enabled){i._indexToPoints=M[s]._indexToPoints;break}l&&l.calc&&(x=l.calc(e,i))}(!Array.isArray(x)||!x[0])&&(x=[{x:d9,y:d9}]),x[0].t||(x[0].t={}),x[0].trace=i,u[_]=x}}for(g9(t,a,n),o=0;o{"use strict";Ko.xmlns="http://www.w3.org/2000/xmlns/";Ko.svg="http://www.w3.org/2000/svg";Ko.xlink="http://www.w3.org/1999/xlink";Ko.svgAttrs={xmlns:Ko.svg,"xmlns:xlink":Ko.xlink}});var Pa=B((Vye,C9)=>{"use strict";C9.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var da=B(In=>{"use strict";var Vt=kr(),cl=Pe(),eK=cl.strTranslate,Mg=Qo(),rK=Pa().LINE_SPACING,tK=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;In.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(tK),i=Vt.select(e.node().parentNode);if(i.empty())return;var l=e.attr("class")?e.attr("class").split(" ")[0]:"text";l+="-math",i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function o(){i.empty()||(l=e.attr("class")+"-math",i.select("svg."+l).remove()),e.text("").style("white-space","pre");var s=pK(e.node(),a);s&&e.style("pointer-events","all"),In.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u};lK(n[2],f,function(c,h,d){i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove();var p=c&&c.select("svg");if(!p||!p.node()){o(),s();return}var y=i.append("g").classed(l+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(p.node()),h&&h.node()&&p.node().insertBefore(h.node().cloneNode(!0),p.node().firstChild);var m=d.width,b=d.height;p.attr({class:l,height:b,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var _=e.node().style.fill||"black",w=p.select("g");w.attr({fill:_,stroke:_});var x=w.node().getBoundingClientRect(),M=x.width,k=x.height;(M>m||k>b)&&(p.style("overflow","hidden"),x=p.node().getBoundingClientRect(),M=x.width,k=x.height);var A=+e.attr("x"),S=+e.attr("y"),D=u||e.node().getBoundingClientRect().height,E=-D/4;if(l[0]==="y")y.attr({transform:"rotate("+[-90,A,S]+")"+eK(-M/2,E-k/2)});else if(l[0]==="l")S=E-k/2;else if(l[0]==="a"&&l.indexOf("atitle")!==0)A=0,S=E;else{var R=e.attr("text-anchor");A=A-M*(R==="middle"?.5:R==="end"?1:0),S=S+E-k/2}p.attr({x:A,y:S}),t&&t.call(e,y),s(y)})})):o(),e};var aK=/(<|<|<)/g,nK=/(>|>|>)/g;function iK(e){return e.replace(aK,"\\lt ").replace(nK,"\\gt ")}var S9=[["$","$"],["\\(","\\)"]];function lK(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){cl.warn("No MathJax version:",MathJax.version);return}var n,i,l,o,s=function(){return i=cl.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:S9},displayAlign:"left"})},u=function(){i=cl.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=S9},f=function(){if(n=MathJax.Hub.config.menuSettings.renderer,n!=="SVG")return MathJax.Hub.setRenderer("SVG")},c=function(){n=MathJax.config.startup.output,n!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var _="math-output-"+cl.randstr({},64);o=Vt.select("body").append("div").attr({id:_}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(iK(e));var w=o.node();return a===2?MathJax.Hub.Typeset(w):MathJax.typeset([w])},d=function(){var _=o.select(a===2?".MathJax_SVG":".MathJax"),w=!_.empty()&&o.select("svg").node();if(!w)cl.log("There was an error in the tex syntax.",e),t();else{var x=w.getBoundingClientRect(),M;a===2?M=Vt.select("body").select("#MathJax_SVG_glyphs"):M=_.select("defs"),t(_,M,x)}o.remove()},p=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},y=function(){n!=="svg"&&(MathJax.config.startup.output=n)},m=function(){return l!==void 0&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(i)},b=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(s,f,h,d,p,m):a===3&&(u(),c(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),y(),b()}))}var P9={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},oK={sub:"0.3em",sup:"-0.6em"},sK={sub:"-0.21em",sup:"0.42em"},L9="\u200B",D9=["http:","https:","mailto:","",void 0,":"],R9=In.NEWLINES=/(\r\n?|\n)/g,kg=/(<[^<>]*>)/,qg=/<(\/?)([^ >]*)(\s+(.*))?>/i,uK=//i;In.BR_TAG_ALL=//gi;var z9=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,N9=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,F9=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,fK=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function jo(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&Wh(a)}var cK=/(^|;)\s*color:/;In.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(kg),o=[],s="",u=0,f=0;fi?o.push(c.substr(0,y-i)+n):o.push(c.substr(0,y));break}s=""}}return o.join("")};var vK={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},hK=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Wh(e){return e.replace(hK,function(r,t){var a;return t.charAt(0)==="#"?a=dK(t.charAt(1)==="x"?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):a=vK[t],a||r})}In.convertEntities=Wh;function dK(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function pK(e,r){r=r.replace(R9," ");var t=!1,a=[],n,i=-1;function l(){i++;var k=document.createElementNS(Mg.svg,"tspan");Vt.select(k).attr({class:"line",dy:i*rK+"em"}),e.appendChild(k),n=k;var A=a;if(a=[{node:k}],A.length>1)for(var S=1;S.",r);return}var A=a.pop();k!==A.type&&cl.log("Start tag <"+A.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=uK.test(r);f?l():(n=e,a=[{node:e}]);for(var c=r.split(kg),h=0;h{"use strict";var mK=kr(),Zh=Rn(),Ic=zr(),Xh=Pe(),H9=xr(),yK=Oo().isValid;function gK(e,r,t){var a=r?Xh.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(Xh.isArrayOrTypedArray(n)){for(var l=0;l=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function V9(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),l=0;l{"use strict";var X9=Vy(),bK=X9.FORMAT_LINK,_K=X9.DATE_FORMAT_LINK;function wK(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?Cg:Z9)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Cg(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+bK+"."].join(" ")}function Z9(e,r){return Cg(e,r)+[" And for dates see: "+_K+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}J9.exports={axisHoverFormat:wK,descriptionOnlyNumbers:Cg,descriptionWithDates:Z9}});var bn=B(($ye,vT)=>{"use strict";var $9=aa(),Pu=zn(),cT=fi().dash,Lg=mt().extendFlat,K9=ot().templatedArray,Jye=ha().templateFormatStringDescription,Q9=di().descriptionWithDates,TK=Mt().ONEDAY,Ii=Aa(),MK=Ii.HOUR_PATTERN,AK=Ii.WEEKDAY_PATTERN,Sg={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},kK=Lg({},Sg,{values:Sg.values.slice().concat(["sync"])});function j9(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var eT={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},rT={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},tT={valType:"data_array",editType:"ticks"},aT={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function nT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function iT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var lT={valType:"color",dflt:Pu.defaultLine,editType:"ticks"},oT={valType:"color",dflt:Pu.lightLine,editType:"ticks"};function sT(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var uT=Lg({},cT,{editType:"ticks"}),fT={valType:"boolean",editType:"ticks"};vT.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Pu.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:$9({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Ii.idRegex.x.toString(),Ii.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Ii.idRegex.x.toString(),Ii.idRegex.y.toString()],editType:"calc"},rangebreaks:K9("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[AK,MK,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:TK},editType:"calc"}),tickmode:kK,nticks:j9(),tick0:eT,dtick:rT,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:tT,ticktext:{valType:"data_array",editType:"ticks"},ticks:aT,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:nT(),tickwidth:iT(),tickcolor:lT,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:Lg({},cT,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:$9({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:Q9("tick label")},tickformatstops:K9("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:Q9("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Pu.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:fT,gridcolor:oT,gridwidth:sT(),griddash:uT,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Pu.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Pu.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Ii.idRegex.x.toString(),Ii.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Ii.idRegex.x.toString(),Ii.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Sg,nticks:j9("minor"),tick0:eT,dtick:rT,tickvals:tT,ticks:aT,ticklen:nT("minor"),tickwidth:iT("minor"),tickcolor:lT,gridcolor:oT,gridwidth:sT("minor"),griddash:uT,showgrid:fT,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var Jh=B((Kye,pT)=>{"use strict";var gt=bn(),hT=aa(),dT=mt().extendFlat,qK=ui().overrideAll;pT.exports=qK({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:gt.linecolor,outlinewidth:gt.linewidth,bordercolor:gt.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:gt.minor.tickmode,nticks:gt.nticks,tick0:gt.tick0,dtick:gt.dtick,tickvals:gt.tickvals,ticktext:gt.ticktext,ticks:dT({},gt.ticks,{dflt:""}),ticklabeloverflow:dT({},gt.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:gt.ticklen,tickwidth:gt.tickwidth,tickcolor:gt.tickcolor,ticklabelstep:gt.ticklabelstep,showticklabels:gt.showticklabels,labelalias:gt.labelalias,tickfont:hT({}),tickangle:gt.tickangle,tickformat:gt.tickformat,tickformatstops:gt.tickformatstops,tickprefix:gt.tickprefix,showtickprefix:gt.showtickprefix,ticksuffix:gt.ticksuffix,showticksuffix:gt.showticksuffix,separatethousands:gt.separatethousands,exponentformat:gt.exponentformat,minexponent:gt.minexponent,showexponent:gt.showexponent,title:{text:{valType:"string"},font:hT({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Hc=B((jye,yT)=>{"use strict";var CK=Jh(),SK=mu().counter,LK=jy(),mT=Oo().scales,Qye=LK(mT);function $h(e){return"`"+e+"`"}yT.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",l="showScaleDflt"in t?t.showScaleDflt:a==="z",o=typeof t.colorscaleDflt=="string"?mT[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+$h(u+f));var h=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",y=a+"max",m=a+"mid",b=$h(u+d),_=$h(u+p),w=$h(u+y),x=_+" and "+w,M={};M[p]=M[y]=void 0;var k={};k[d]=!1;var A={};return f==="color"&&(A.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(A.color.anim=!0)),A[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},A[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},A[y]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},A[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},A.colorscale={valType:"colorscale",editType:"calc",dflt:o,impliedEdits:{autocolorscale:!1}},A.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},A.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(A.showscale={valType:"boolean",dflt:l,editType:"calc"},A.colorbar=CK),t.noColorAxis||(A.coloraxis={valType:"subplotid",regex:SK("coloraxis"),dflt:null,editType:"calc"}),A}});var Eg=B((ege,gT)=>{"use strict";var DK=mt().extendFlat,EK=Hc(),Dg=Oo().scales;gT.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Dg.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Dg.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Dg.RdBu,editType:"calc"}},coloraxis:DK({_isSubplotObj:!0,editType:"calc"},EK("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Pg=B((rge,xT)=>{"use strict";var PK=Pe();xT.exports=function(r){return PK.isPlainObject(r.colorbar)}});var Ng=B(zg=>{"use strict";var Rg=zr(),bT=Pe(),_T=Mt(),RK=_T.ONEDAY,zK=_T.ONEWEEK;zg.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?RK:1;if(!e)return i;if(Rg(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=Rg(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};zg.tick0=function(e,r,t,a){if(r==="date")return bT.cleanDate(e,bT.dateTick0(t,a%zK===0?1:0));if(!(a==="D1"||a==="D2"))return Rg(e)?Number(e):0}});var Kh=B((age,TT)=>{"use strict";var wT=Ng(),NK=Pe().isArrayOrTypedArray,FK=gn().isTypedArraySpec,IK=gn().decodeTypedArraySpec;TT.exports=function(r,t,a,n,i){i||(i={});var l=i.isMinor,o=l?r.minor||{}:r,s=l?t.minor:t,u=l?"minor.":"";function f(_){var w=o[_];return FK(w)&&(w=IK(w)),w!==void 0?w:(s._template||{})[_]}var c=f("tick0"),h=f("dtick"),d=f("tickvals"),p=NK(d)?"array":h?"linear":"auto",y=a(u+"tickmode",p);if(y==="auto"||y==="sync")a(u+"nticks");else if(y==="linear"){var m=s.dtick=wT.dtick(h,n);s.tick0=wT.tick0(c,n,t.calendar,m)}else if(n!=="multicategory"){var b=a(u+"tickvals");b===void 0?s.tickmode="auto":l||a("ticktext")}}});var Qh=B((nge,AT)=>{"use strict";var Fg=Pe(),MT=bn();AT.exports=function(r,t,a,n){var i=n.isMinor,l=i?r.minor||{}:r,o=i?t.minor:t,s=i?MT.minor:MT,u=i?"minor.":"",f=Fg.coerce2(l,o,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=Fg.coerce2(l,o,s,"tickwidth",i?t.tickwidth||1:void 0),h=Fg.coerce2(l,o,s,"tickcolor",(i?t.tickcolor:void 0)||o.color),d=a(u+"ticks",!i&&n.outerTicks||f||c||h?"outside":"");d||(delete o.ticklen,delete o.tickwidth,delete o.tickcolor)}});var Ig=B((ige,kT)=>{"use strict";kT.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var On=B((lge,qT)=>{"use strict";var jh=Pe(),HK=ot();qT.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",l=t[n],o=jh.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=HK.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var Hg=Pe(),OK=xr().contrast,CT=bn(),BK=Ig(),YK=On();ST.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");Hg.isPlainObject(l)||delete t.labelalias;var o=BK(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",h=c.indexOf("inside")!==-1?OK(i.bgColor):f&&f!==CT.color.dflt?f:u.color;if(Hg.coerceFont(a,"tickfont",u,{overrideDflt:{color:h}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");YK(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:GK}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",o),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function GK(e,r){function t(n,i){return Hg.coerce(e,r,CT.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var rd=B((sge,LT)=>{"use strict";var UK=Ig();LT.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=UK(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var Og=B((uge,DT)=>{"use strict";var Vl=Pe(),VK=ot(),WK=Kh(),XK=Qh(),ZK=ed(),JK=rd(),$K=Jh();DT.exports=function(r,t,a){var n=VK.newContainer(t,"colorbar"),i=r.colorbar||{};function l(R,N){return Vl.coerce(i,n,$K,R,N)}var o=a.margin||{t:0,b:0,l:0,r:0},s=a.width-o.l-o.r,u=a.height-o.t-o.b,f=l("orientation"),c=f==="v",h=l("thicknessmode");l("thickness",h==="fraction"?30/(c?s:u):30);var d=l("lenmode");l("len",d==="fraction"?1:c?u:s);var p=l("yref"),y=l("xref"),m=p==="paper",b=y==="paper",_,w,x,M="left";c?(x="middle",M=b?"left":"right",_=b?1.02:1,w=.5):(x=m?"bottom":"top",M="center",_=.5,w=m?1.02:1),Vl.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:_}},"x"),Vl.coerce(i,n,{y:{valType:"number",min:m?-2:0,max:m?3:1,dflt:w}},"y"),l("xanchor",M),l("xpad"),l("yanchor",x),l("ypad"),Vl.noneOrAll(i,n,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var k=Vl.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),WK(i,n,l,"linear");var A=a.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:A};k.indexOf("inside")!==-1&&(S.bgColor="black"),JK(i,n,l,"linear",S),ZK(i,n,l,"linear",S),XK(i,n,l,"linear",S),l("title.text",a._dfltTitle.colorbar);var D=n.showticklabels?n.tickfont:A,E=Vl.extendFlat({},A,{family:D.family,size:Vl.bigFont(D.size)});Vl.coerceFont(l,"title.font",E),l("title.side",c?"top":"right")}});var Ru=B((fge,RT)=>{"use strict";var ET=zr(),Yg=Pe(),KK=Pg(),QK=Og(),PT=Oo().isValid,jK=yr().traceIs;function Bg(e,r){var t=r.slice(0,r.length-1);return r?Yg.nestedProperty(e,t).get()||{}:e}RT.exports=function e(r,t,a,n,i){var l=i.prefix,o=i.cLetter,s="_module"in t,u=Bg(r,l),f=Bg(t,l),c=Bg(t._template||{},l)||{},h=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},p=n(l+"coloraxis");if(p){var y=jK(t,"contour")&&Yg.nestedProperty(t,"contours.coloring").get()||"heatmap",m=d[p];m?(m[2].push(h),m[0]!==y&&(m[0]=!1,Yg.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[y,t,[h]];return}}var b=u[o+"min"],_=u[o+"max"],w=ET(b)&&ET(_)&&b<_,x=n(l+o+"auto",!w);x?n(l+o+"mid"):(n(l+o+"min"),n(l+o+"max"));var M=u.colorscale,k=c.colorscale,A;if(M!==void 0&&(A=!PT(M)),k!==void 0&&(A=!PT(k)),n(l+"autocolorscale",A),n(l+"colorscale"),n(l+"reversescale"),l!=="marker.line."){var S;l&&s&&(S=KK(u));var D=n(l+"showscale",S);D&&(l&&c&&(f._template=c),QK(u,f,a))}}});var IT=B((cge,FT)=>{"use strict";var zT=Pe(),eQ=ot(),NT=Eg(),rQ=Ru();FT.exports=function(r,t){function a(c,h){return zT.coerce(r,t,NT,c,h)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,l;function o(c,h){return zT.coerce(i,l,NT.coloraxis,c,h)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},l=eQ.newContainer(t,s,"coloraxis"),l._name=s,rQ(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var tQ=Pe(),aQ=Hn().hasColorscale,nQ=Hn().extractOpts;HT.exports=function(r,t){function a(f,c){var h=f["_"+c];h!==void 0&&(f[c]=h)}function n(f,c){var h=c.container?tQ.nestedProperty(f,c.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=nQ(h),p=d.auto;(p||d.min===void 0)&&a(h,c.min),(p||d.max===void 0)&&a(h,c.max),d.autocolorscale&&a(h,"colorscale")}}for(var i=0;i{"use strict";var BT=zr(),Gg=Pe(),iQ=Hn().extractOpts;YT.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,l=a.containerStr,o=l?Gg.nestedProperty(t,l).get():t,s=iQ(o),u=s.auto!==!1,f=s.min,c=s.max,h=s.mid,d=function(){return Gg.aggNums(Math.min,null,i)},p=function(){return Gg.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(o._colorAx&&BT(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(o._colorAx&&BT(c)?c=Math.max(c,p()):c=p()),u&&h!==void 0&&(c-h>h-f?f=h-(c-h):c-h=0?y=n.colorscale.sequential:y=n.colorscale.sequentialminus,s._sync("colorscale",y)}}});var Ug=B((dge,GT)=>{"use strict";var ad=Oo(),zu=Hn();GT.exports={moduleType:"component",name:"colorscale",attributes:Hc(),layoutAttributes:Eg(),supplyLayoutDefaults:IT(),handleDefaults:Ru(),crossTraceDefaults:OT(),calc:td(),scales:ad.scales,defaultScale:ad.defaultScale,getScale:ad.get,isValidScale:ad.isValid,hasColorscale:zu.hasColorscale,extractOpts:zu.extractOpts,extractScale:zu.extractScale,flipScale:zu.flipScale,makeColorScaleFunc:zu.makeColorScaleFunc,makeColorScaleFuncFromTrace:zu.makeColorScaleFuncFromTrace}});var _n=B((pge,VT)=>{"use strict";var UT=Pe(),lQ=gn().isTypedArraySpec;VT.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 UT.isPlainObject(r)&&(UT.isArrayOrTypedArray(r.size)||lQ(r.size))}}});var XT=B((mge,WT)=>{"use strict";var oQ=zr();WT.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,l=a.sizemode==="area"?function(o){return Math.sqrt(o/n)}:function(o){return o/n};return function(o){var s=l(o/t);return oQ(s)&&s>0?Math.max(s,i):0}}});var Hi=B(Ra=>{"use strict";var ZT=Pe();Ra.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Ra.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{KT.exports=vQ;var Vg={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},cQ=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function vQ(e){var r=[];return e.replace(cQ,function(t,a,n){var i=a.toLowerCase();for(n=dQ(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==Vg[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var pQ=Wg(),Xe=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},qr="M0,0Z",QT=Math.sqrt(2),Wl=Math.sqrt(3),Xg=Math.PI,Zg=Math.cos,Jg=Math.sin;aM.exports={circle:{n:0,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Sr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2);return Sr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.3,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*.4,2),n=Xe(e*1.2,2);return Sr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*.8/QT,2),n="l"+a+","+a,i="l"+a+",-"+a,l="l-"+a+",-"+a,o="l-"+a+","+a;return Sr(r,t,"M0,"+a+n+i+l+i+l+o+l+o+n+o+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*2/Wl,2),n=Xe(e/2,2),i=Xe(e,2);return Sr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*2/Wl,2),n=Xe(e/2,2),i=Xe(e,2);return Sr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*2/Wl,2),n=Xe(e/2,2),i=Xe(e,2);return Sr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*2/Wl,2),n=Xe(e/2,2),i=Xe(e,2);return Sr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*.6,2),n=Xe(e*1.2,2);return Sr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*.6,2),n=Xe(e*1.2,2);return Sr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*.6,2),n=Xe(e*1.2,2);return Sr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*.6,2),n=Xe(e*1.2,2);return Sr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*.951,2),n=Xe(e*.588,2),i=Xe(-e,2),l=Xe(e*-.309,2),o=Xe(e*.809,2);return Sr(r,t,"M"+a+","+l+"L"+n+","+o+"H-"+n+"L-"+a+","+l+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2),n=Xe(e/2,2),i=Xe(e*Wl/2,2);return Sr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2),n=Xe(e/2,2),i=Xe(e*Wl/2,2);return Sr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*.924,2),n=Xe(e*.383,2);return Sr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(Cr(r))return qr;var a=e*1.4,n=Xe(a*.225,2),i=Xe(a*.951,2),l=Xe(a*.363,2),o=Xe(a*.588,2),s=Xe(-a,2),u=Xe(a*-.309,2),f=Xe(a*.118,2),c=Xe(a*.809,2),h=Xe(a*.382,2);return Sr(r,t,"M"+n+","+u+"H"+i+"L"+l+","+f+"L"+o+","+c+"L0,"+h+"L-"+o+","+c+"L-"+l+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*.66,2),n=Xe(e*.38,2),i=Xe(e*.76,2);return Sr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*Wl*.8,2),n=Xe(e*.8,2),i=Xe(e*1.6,2),l=Xe(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Sr(r,t,"M-"+a+","+n+o+a+","+n+o+"0,-"+i+o+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*Wl*.8,2),n=Xe(e*.8,2),i=Xe(e*1.6,2),l=Xe(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Sr(r,t,"M"+a+",-"+n+o+"-"+a+",-"+n+o+"0,"+i+o+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.1,2),n=Xe(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Sr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.4,2),n=Xe(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Sr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*.7,2),n=Xe(e*1.4,2);return Sr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.4,2),n=Xe(e*.7,2);return Sr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2);return Sr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2);return Sr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2),n=Xe(e/QT,2);return Sr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.3,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.3,2),n=Xe(e*.65,2);return Sr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.4,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.2,2),n=Xe(e*.85,2);return Sr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e/2,2),n=Xe(e,2);return Sr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.2,2),n=Xe(e*1.6,2),i=Xe(e*.8,2);return Sr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.2,2),n=Xe(e*1.6,2),i=Xe(e*.8,2);return Sr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.2,2),n=Xe(e*1.6,2),i=Xe(e*.8,2);return Sr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.2,2),n=Xe(e*1.6,2),i=Xe(e*.8,2);return Sr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.4,2);return Sr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*1.4,2);return Sr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2);return Sr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2);return Sr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2),n=Xe(e*2,2);return Sr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2),n=Xe(e*2,2);return Sr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*2,2),n=Xe(e,2);return Sr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*2,2),n=Xe(e,2);return Sr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2),n=Xe(e*2,2);return Sr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e,2),n=Xe(e*2,2);return Sr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*2,2),n=Xe(e,2);return Sr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Cr(r))return qr;var a=Xe(e*2,2),n=Xe(e,2);return Sr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Cr(r))return qr;var a=Xg/2.5,n=2*e*Zg(a),i=2*e*Jg(a);return Sr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Cr(r))return qr;var a=Xg/4,n=2*e*Zg(a),i=2*e*Jg(a);return Sr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Cr(e){return e===null}var jT,eM,rM,tM;function Sr(e,r,t){if((!e||e%360===0)&&!r)return t;if(rM===e&&tM===r&&jT===t)return eM;rM=e,tM=r,jT=t;function a(m,b){var _=Zg(m),w=Jg(m),x=b[0],M=b[1]+(r||0);return[x*_-M*w,x*w+M*_]}for(var n=e/180*Xg,i=0,l=0,o=pQ(t),s="",u=0;u{"use strict";var ia=kr(),it=Pe(),mQ=it.numberFormat,as=zr(),r2=Rn(),id=yr(),ka=xr(),yQ=Ug(),Bc=it.strTranslate,ld=da(),gQ=Qo(),xQ=Pa(),bQ=xQ.LINE_SPACING,dM=pu().DESELECTDIM,_Q=_n(),wQ=XT(),TQ=Hi().appendArrayPointValue,rr=MM.exports={};rr.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,l=r.size,o=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;o&&e.style("font-family",o),l+1&&e.style("font-size",l+"px"),i&&e.call(ka.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",$g(AQ(f))),s&&e.style("text-shadow",s==="auto"?ld.makeTextShadow(ka.contrast(i)):$g(s)),u&&e.style("text-decoration-line",$g(kQ(u)))};function $g(e){return e==="none"?void 0:e}var MQ={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function AQ(e){return MQ[e]}function kQ(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}rr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};rr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};rr.setRect=function(e,r,t,a,n){e.call(rr.setPosition,r,t).call(rr.setSize,a,n)};rr.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(as(n)&&as(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",Bc(n,i));else return!1;return!0};rr.translatePoints=function(e,r,t){e.each(function(a){var n=ia.select(this);rr.translatePoint(a,n,r,t)})};rr.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};rr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,l=i.xcalendar,o=i.ycalendar,s=id.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){rr.hideOutsideRangePoint(u,ia.select(this),t,a,l,o)})})}};rr.crispRound=function(e,r,t){return!r||!as(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};rr.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},l=t||i.width||0,o=n||i.dash||"";ka.stroke(r,a||i.color),rr.dashLine(r,o,l)};rr.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},l=r||i.width||0,o=a||i.dash||"";ia.select(this).call(ka.stroke,t||i.color).call(rr.dashLine,o,l)})};rr.dashLine=function(e,r,t){t=+t||0,r=rr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};rr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function pM(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,l=rr.getPatternAttr,o=n&&(l(n.shape,0,"")||l(n.path,0,""));if(o){var s=l(n.bgcolor,0,null),u=l(n.fgcolor,0,null),f=n.fgopacity,c=l(n.size,0,8),h=l(n.solidity,0,.3),d=r.uid;rr.pattern(e,"point",t,d,o,c,h,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var p=i.type,y="scatterfill-"+r.uid;if(a&&(y="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var m,b;p==="horizontal"?(m={x:i.start,y:0},b={x:i.stop,y:0}):p==="vertical"&&(m={x:0,y:i.start},b={x:0,y:i.stop}),m.x=r._xA.c2p(m.x===void 0?r._extremes.x.min[0].val:m.x,!0),m.y=r._yA.c2p(m.y===void 0?r._extremes.y.min[0].val:m.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(gM,t,y,"linear",i.colorscale,"fill",m,b,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(rr.gradient,t,y,p,i.colorscale,"fill")}else r.fillcolor&&e.call(ka.fill,r.fillcolor)}rr.singleFillStyle=function(e,r){var t=ia.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};pM(e,n,r,!1)};rr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=ia.select(this);a[0].trace&&pM(n,a[0].trace,r,t)})};var iM=nM();rr.symbolNames=[];rr.symbolFuncs=[];rr.symbolBackOffs=[];rr.symbolNeedLines={};rr.symbolNoDot={};rr.symbolNoFill={};rr.symbolList=[];Object.keys(iM).forEach(function(e){var r=iM[e],t=r.n;rr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),rr.symbolNames[t]=e,rr.symbolFuncs[t]=r.f,rr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(rr.symbolNeedLines[t]=!0),r.noDot?rr.symbolNoDot[t]=!0:rr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(rr.symbolNoFill[t]=!0)});var qQ=rr.symbolNames.length,CQ="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";rr.symbolNumber=function(e){if(as(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=rr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=qQ||e>=400?0:Math.floor(Math.max(e,0))};function mM(e,r,t,a){var n=e%100;return rr.symbolFuncs[n](r,t,a)+(e>=200?CQ:"")}var lM=mQ("~f"),yM={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};rr.gradient=function(e,r,t,a,n,i){var l=yM[a];return gM(e,r,t,l.type,n,i,l.start,l.stop,!1,l.reversed)};function gM(e,r,t,a,n,i,l,o,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:o.x,y2:o.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?l.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||l.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=rr.symbolNumber(e.mx||l.symbol)||0;e.om=u%200>=100;var f=n2(e,t),c=a2(e,t);r.attr("d",mM(u,s,f,c))}var h=!1,d,p,y;if(e.so)y=o.outlierwidth,p=o.outliercolor,d=l.outliercolor;else{var m=(o||{}).width;y=(e.mlw+1||m+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):it.isArrayOrTypedArray(o.color)?p=ka.defaultLine:p=o.color,it.isArrayOrTypedArray(l.color)&&(d=ka.defaultLine,h=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=l.color||l.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}if(e.om)r.call(ka.stroke,d).style({"stroke-width":(y||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:y)+"px");var b=l.gradient,_=e.mgt;_?h=!0:_=b&&b.type,it.isArrayOrTypedArray(_)&&(_=_[0],yM[_]||(_=0));var w=l.pattern,x=rr.getPatternAttr,M=w&&(x(w.shape,e.i,"")||x(w.path,e.i,""));if(_&&_!=="none"){var k=e.mgc;k?h=!0:k=b.color;var A=t.uid;h&&(A+="-"+e.i),rr.gradient(r,n,A,_,[[0,k],[1,d]],"fill")}else if(M){var S=!1,D=w.fgcolor;!D&&i&&i.color&&(D=i.color,S=!0);var E=x(D,e.i,i&&i.color||null),R=x(w.bgcolor,e.i,null),N=w.fgopacity,I=x(w.size,e.i,8),H=x(w.solidity,e.i,.3);S=S||e.mcc||it.isArrayOrTypedArray(w.shape)||it.isArrayOrTypedArray(w.path)||it.isArrayOrTypedArray(w.bgcolor)||it.isArrayOrTypedArray(w.fgcolor)||it.isArrayOrTypedArray(w.size)||it.isArrayOrTypedArray(w.solidity);var U=t.uid;S&&(U+="-"+e.i),rr.pattern(r,"point",n,U,M,I,H,e.mcc,w.fillmode,R,E,N)}else it.isArrayOrTypedArray(d)?ka.fill(r,d[e.i]):ka.fill(r,d);y&&ka.stroke(r,p)}};rr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=rr.tryColorscale(t,""),r.lineScale=rr.tryColorscale(t,"line"),id.traceIs(e,"symbols")&&(r.ms2mrc=_Q.isBubble(e)?wQ(e):function(){return(t.size||6)/2}),e.selectedpoints&&it.extendFlat(r,rr.makeSelectedPointStyleFns(e)),r};rr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},l=a.marker||{},o=n.opacity,s=i.opacity,u=l.opacity,f=s!==void 0,c=u!==void 0;(it.isArrayOrTypedArray(o)||f||c)&&(r.selectedOpacityFn=function(x){var M=x.mo===void 0?n.opacity:x.mo;return x.selected?f?s:M:c?u:dM*M});var h=n.color,d=i.color,p=l.color;(d||p)&&(r.selectedColorFn=function(x){var M=x.mcc||h;return x.selected?d||M:p||M});var y=n.size,m=i.size,b=l.size,_=m!==void 0,w=b!==void 0;return id.traceIs(e,"symbols")&&(_||w)&&(r.selectedSizeFn=function(x){var M=x.mrc||y/2;return x.selected?_?m/2:M:w?b/2:M}),r};rr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},l=a.textfont||{},o=n.color,s=i.color,u=l.color;return r.selectedTextColorFn=function(f){var c=f.tc||o;return f.selected?s||c:u||(s?c:ka.addOpacity(c,dM))},r};rr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=rr.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,l){i.style("opacity",t.selectedOpacityFn(l))}),t.selectedColorFn&&n.push(function(i,l){ka.fill(i,t.selectedColorFn(l))}),t.selectedSizeFn&&n.push(function(i,l){var o=l.mx||a.symbol||0,s=t.selectedSizeFn(l);i.attr("d",mM(rr.symbolNumber(o),s,n2(l,r),a2(l,r))),l.mrc2=s}),n.length&&e.each(function(i){for(var l=ia.select(this),o=0;o0?t:0}rr.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=rr.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,l=t._fullLayout;e.each(function(o){var s=ia.select(this),u=i?it.extractOption(o,r,"txt","texttemplate"):it.extractOption(o,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(o,r,l):{},h={};TQ(h,r,o.i);var d=r._meta||{};u=it.texttemplateString(u,c,l._d3locale,h,o,d)}var p=o.tp||r.textposition,y=bM(o,r),m=a?a(o):o.tc||r.textfont.color;s.call(rr.font,{family:o.tf||r.textfont.family,weight:o.tw||r.textfont.weight,style:o.ty||r.textfont.style,variant:o.tv||r.textfont.variant,textcase:o.tC||r.textfont.textcase,lineposition:o.tE||r.textfont.lineposition,shadow:o.tS||r.textfont.shadow,size:y,color:m}).text(u).call(ld.convertToTspans,t).call(xM,p,y,o.mrc)})}};rr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=rr.makeSelectedTextStyleFns(r);e.each(function(a){var n=ia.select(this),i=t.selectedTextColorFn(a),l=a.tp||r.textposition,o=bM(a,r);ka.fill(n,i);var s=id.traceIs(r,"bar-like");xM(n,l,o,a.mrc2||a.mrc,s)})}};var oM=.5;rr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||x>=f&&x<=s)&&(M<=c&&M>=u||M>=c&&M<=u)&&(e=[x,M])}return e}rr.applyBackoff=TM;rr.makeTester=function(){var e=it.ensureSingleById(ia.select("body"),"svg","js-plotly-tester",function(t){t.attr(gQ.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=it.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});rr.tester=e,rr.testref=r};rr.savedBBoxes={};var Qg=0,DQ=1e4;rr.bBox=function(e,r,t){t||(t=sM(e));var a;if(t){if(a=rr.savedBBoxes[t],a)return it.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=sM(n),t){var i=+n.getAttribute("x")||0,l=+n.getAttribute("y")||0,o=n.getAttribute("transform");if(!o){var s=rr.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),l&&(s.top+=l,s.bottom+=l),s}if(t+="~"+i+"~"+l+"~"+o,a=rr.savedBBoxes[t],a)return it.extendFlat({},a)}}var u,f;r?u=e:(f=rr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),ia.select(u).attr("transform",null).call(ld.positionText,0,0);var c=u.getBoundingClientRect(),h=rr.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:c.height,width:c.width,left:c.left-h.left,top:c.top-h.top,right:c.right-h.left,bottom:c.bottom-h.top};return Qg>=DQ&&(rr.savedBBoxes={},Qg=0),t&&(rr.savedBBoxes[t]=d),Qg++,it.extendFlat({},d)};function sM(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}rr.setClipUrl=function(e,r,t){e.attr("clip-path",t2(r,t))};function t2(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}rr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};rr.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||0,t=t||0,l=l.replace(a,"").trim(),l+=Bc(r,t),l=l.trim(),e[i]("transform",l),l};rr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};rr.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||1,t=t||1,l=l.replace(a,"").trim(),l+="scale("+r+","+t+")",l=l.trim(),e[i]("transform",l),l};var EQ=/\s*sc.*/;rr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(EQ,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var PQ=/translate\([^)]*\)\s*$/;rr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=ia.select(this),i=n.select("text");if(i.node()){var l=parseFloat(i.attr("x")||0),o=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(PQ);r===1&&t===1?a=[]:a=[Bc(l,o),"scale("+r+","+t+")",Bc(-l,-o)],s&&a.push(s),n.attr("transform",a.join(""))}})};function a2(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}rr.getMarkerStandoff=a2;var Oc=Math.atan2,es=Math.cos,Fu=Math.sin;function uM(e,r){var t=r[0],a=r[1];return[t*es(e)-a*Fu(e),t*Fu(e)+a*es(e)]}var fM,cM,vM,hM,jg,e2;function n2(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||it.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var l=r._geo.project(e.lonlat);a=l[0],n=l[1]}else{var o=r._xA,s=r._yA;if(o&&s)a=o.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),h=r._geo.project([u+1e-5,f]),d=Oc(h[1]-n,h[0]-a),p=Oc(c[1]-n,c[0]-a),y;if(i==="north")y=t/180*Math.PI;else if(i==="previous"){var m=u/180*Math.PI,b=f/180*Math.PI,_=fM/180*Math.PI,w=cM/180*Math.PI,x=_-m,M=es(w)*Fu(x),k=Fu(w)*es(b)-es(w)*Fu(b)*es(x);y=-Oc(M,k)-Math.PI,fM=u,cM=f}var A=uM(d,[es(y),0]),S=uM(p,[Fu(y),0]);t=Oc(A[1]+S[1],A[0]+S[0])/Math.PI*180,i==="previous"&&!(e2===r.uid&&e.i===jg+1)&&(t=null)}if(i==="previous"&&!r._geo)if(e2===r.uid&&e.i===jg+1&&as(a)&&as(n)){var D=a-vM,E=n-hM,R=r.line&&r.line.shape||"",N=R.slice(R.length-1);N==="h"&&(E=0),N==="v"&&(D=0),t+=Oc(E,D)/Math.PI*180+90}else t=null}return vM=a,hM=n,jg=e.i,e2=r.uid,t}rr.getMarkerAngle=n2});var Yc=B((_ge,CM)=>{"use strict";var Iu=kr(),RQ=zr(),zQ=Pt(),i2=yr(),ns=Pe(),AM=ns.strTranslate,od=Yr(),sd=xr(),Hu=da(),kM=pu(),NQ=Pa().OPPOSITE_SIDE,qM=/ [XY][0-9]* /,l2=1.6,o2=1.6;function FQ(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,l=t.placeholder,o=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,h=1,d=n.title,p=(d&&d.text?d.text:"").trim(),y=!1,m=d&&d.font?d.font:{},b=m.family,_=m.size,w=m.color,x=m.weight,M=m.style,k=m.variant,A=m.textcase,S=m.lineposition,D=m.shadow,E=t.subtitlePropName,R=!!E,N=t.subtitlePlaceholder,I=(n.title||{}).subtitle||{text:"",font:{}},H=I.text.trim(),U=!1,X=1,Y=I.font,O=Y.family,G=Y.size,J=Y.color,$=Y.weight,re=Y.style,le=Y.variant,fe=Y.textcase,pe=Y.lineposition,Q=Y.shadow,qe;i==="title.text"?qe="titleText":i.indexOf("axis")!==-1?qe="axisTitleText":i.indexOf("colorbar")!==-1&&(qe="colorbarTitleText");var ve=e._context.edits[qe];function be(Ve,Ge){return Ve===void 0||Ge===void 0?!1:Ve.replace(qM," % ")===Ge.replace(qM," % ")}p===""?h=0:be(p,l)&&(ve||(p=""),h=.2,y=!0),R&&(H===""?X=0:be(H,N)&&(ve||(H=""),X=.2,U=!0)),t._meta?p=ns.templateString(p,t._meta):a._meta&&(p=ns.templateString(p,a._meta));var se=p||H||ve,_e;c||(c=ns.ensureSingle(a._infolayer,"g","g-"+r),_e=a._hColorbarMoveTitle);var V=c.selectAll("text."+r).data(se?[0]:[]);V.enter().append("text"),V.text(p).attr("class",r),V.exit().remove();var te=null,W=r+"-subtitle",xe=H||ve;if(R&&xe&&(te=c.selectAll("text."+W).data(xe?[0]:[]),te.enter().append("text"),te.text(H).attr("class",W),te.exit().remove()),!se)return c;function ke(Ve,Ge){ns.syncOrAsync([ge,ze],{title:Ve,subtitle:Ge})}function ge(Ve){var Ge=Ve.title,De=Ve.subtitle,He;!f&&_e&&(f={}),f?(He="",f.rotate&&(He+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||_e)&&(He+=AM(0,(f.offset||0)-(_e||0)))):He=null,Ge.attr("transform",He);function Oe(oe){if(oe){var Ce=Iu.select(oe.node().parentNode).select("."+W);if(!Ce.empty()){var Ie=oe.node().getBBox();if(Ie.height){var We=Ie.y+Ie.height+l2*G;Ce.attr("y",We)}}}}if(Ge.style("opacity",h*sd.opacity(w)).call(od.font,{color:sd.rgb(w),size:Iu.round(_,2),family:b,weight:x,style:M,variant:k,textcase:A,shadow:D,lineposition:S}).attr(u).call(Hu.convertToTspans,e,Oe),De){var ie=c.select("."+r+"-math-group"),Ae=Ge.node().getBBox(),Ze=ie.node()?ie.node().getBBox():void 0,cr=Ze?Ze.y+Ze.height+l2*G:Ae.y+Ae.height+o2*G,fr=ns.extendFlat({},u,{y:cr});De.attr("transform",He),De.style("opacity",X*sd.opacity(J)).call(od.font,{color:sd.rgb(J),size:Iu.round(G,2),family:O,weight:$,style:re,variant:le,textcase:fe,shadow:Q,lineposition:pe}).attr(fr).call(Hu.convertToTspans,e)}return zQ.previousPromises(e)}function ze(Ve){var Ge=Ve.title,De=Iu.select(Ge.node().parentNode);if(s&&s.selection&&s.side&&p){De.attr("transform",null);var He=NQ[s.side],Oe=s.side==="left"||s.side==="top"?-1:1,ie=RQ(s.pad)?s.pad:2,Ae=od.bBox(De.node()),Ze={t:0,b:0,l:0,r:0},cr=e._fullLayout._reservedMargin;for(var fr in cr)for(var oe in cr[fr]){var Ce=cr[fr][oe];Ze[oe]=Math.max(Ze[oe],Ce)}var Ie={left:Ze.l,top:Ze.t,right:a.width-Ze.r,bottom:a.height-Ze.b},We=s.maxShift||Oe*(Ie[s.side]-Ae[s.side]),Ue=0;if(We<0)Ue=We;else{var Je=s.offsetLeft||0,je=s.offsetTop||0;Ae.left-=Je,Ae.right-=Je,Ae.top-=je,Ae.bottom-=je,s.selection.each(function(){var $e=od.bBox(this);ns.bBoxIntersect(Ae,$e,ie)&&(Ue=Math.max(Ue,Oe*($e[s.side]-Ae[He])+ie))}),Ue=Math.min(We,Ue),n._titleScoot=Math.abs(Ue)}if(Ue>0||We<0){var vr={left:[-Ue,0],right:[Ue,0],top:[0,-Ue],bottom:[0,Ue]}[s.side];De.attr("transform",AM(vr[0],vr[1]))}}}V.call(ke,te);function Fe(Ve,Ge){Ve.text(Ge).on("mouseover.opacity",function(){Iu.select(this).transition().duration(kM.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Iu.select(this).transition().duration(kM.HIDE_PLACEHOLDER).style("opacity",0)})}if(ve&&(p?V.on(".opacity",null):(Fe(V,l),y=!0),V.call(Hu.makeEditable,{gd:e}).on("edit",function(Ve){o!==void 0?i2.call("_guiRestyle",e,i,Ve,o):i2.call("_guiRelayout",e,i,Ve)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ke)}).on("input",function(Ve){this.text(Ve||" ").call(Hu.positionText,u.x,u.y)}),R)){if(R&&!p){var Ee=V.node().getBBox(),Ne=Ee.y+Ee.height+o2*G;te.attr("y",Ne)}H?te.on(".opacity",null):(Fe(te,N),U=!0),te.call(Hu.makeEditable,{gd:e}).on("edit",function(Ve){i2.call("_guiRelayout",e,"title.subtitle.text",Ve)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ke)}).on("input",function(Ve){this.text(Ve||" ").call(Hu.positionText,te.attr("x"),te.attr("y"))})}return V.classed("js-placeholder",y),te&&te.classed("js-placeholder",U),c}CM.exports={draw:FQ,SUBTITLE_PADDING_EM:o2,SUBTITLE_PADDING_MATHJAX_EM:l2}});var md=B((wge,PM)=>{"use strict";var IQ=kr(),HQ=cu().utcFormat,st=Pe(),OQ=st.numberFormat,Oi=zr(),Xl=st.cleanNumber,BQ=st.ms2DateTime,SM=st.dateTime2ms,Bi=st.ensureNumber,LM=st.isArrayOrTypedArray,Zl=Mt(),ud=Zl.FP_SAFE,pi=Zl.BADNUM,YQ=Zl.LOG_CLIP,GQ=Zl.ONEWEEK,fd=Zl.ONEDAY,cd=Zl.ONEHOUR,DM=Zl.ONEMIN,EM=Zl.ONESEC,vd=Ut(),pd=Aa(),hd=pd.HOUR_PATTERN,dd=pd.WEEKDAY_PATTERN;function Gc(e){return Math.pow(10,e)}function s2(e){return e!=null}PM.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(x,M){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&M&&r.range&&r.range.length===2){var k=r.range[0],A=r.range[1];return .5*(k+A-2*YQ*Math.abs(k-A))}else return pi}function l(x,M,k,A){if((A||{}).msUTC&&Oi(x))return+x;var S=SM(x,k||r.calendar);if(S===pi)if(Oi(x)){x=+x;var D=Math.floor(st.mod(x+.05,1)*10),E=Math.round(x-D/10);S=SM(new Date(E))+D/10}else return pi;return S}function o(x,M,k){return BQ(x,M,k||r.calendar)}function s(x){return r._categories[Math.round(x)]}function u(x){if(s2(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var M=r._categories.length-1;return r._categoriesMap[x]=M,M}return pi}function f(x,M){for(var k=new Array(M),A=0;Ar.range[1]&&(k=!k);for(var A=k?-1:1,S=A*x,D=0,E=0;EN)D=E+1;else{D=S<(R+N)/2?E:E+1;break}}var I=r._B[D]||0;return isFinite(I)?p(x,r._m2,I):0},b=function(x){var M=r._rangebreaks.length;if(!M)return y(x,r._m,r._b);for(var k=0,A=0;Ar._rangebreaks[A].pmax&&(k=A+1);return y(x,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:Bi,r.l2c=r.type==="log"?Gc:Bi,r.l2p=m,r.p2l=b,r.c2p=r.type==="log"?function(x,M){return m(i(x,M))}:m,r.p2c=r.type==="log"?function(x){return Gc(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Xl,r.c2d=r.c2r=r.l2d=r.l2r=Bi,r.d2p=r.r2p=function(x){return r.l2p(Xl(x))},r.p2d=r.p2r=b,r.cleanPos=Bi):r.type==="log"?(r.d2r=r.d2l=function(x,M){return i(Xl(x),M)},r.r2d=r.r2c=function(x){return Gc(Xl(x))},r.d2c=r.r2l=Xl,r.c2d=r.l2r=Bi,r.c2r=i,r.l2d=Gc,r.d2p=function(x,M){return r.l2p(r.d2r(x,M))},r.p2d=function(x){return Gc(b(x))},r.r2p=function(x){return r.l2p(Xl(x))},r.p2r=b,r.cleanPos=Bi):r.type==="date"?(r.d2r=r.r2d=st.identity,r.d2c=r.r2c=r.d2l=r.r2l=l,r.c2d=r.c2r=r.l2d=r.l2r=o,r.d2p=r.r2p=function(x,M,k){return r.l2p(l(x,0,k))},r.p2d=r.p2r=function(x,M,k){return o(b(x),M,k)},r.cleanPos=function(x){return st.cleanDate(x,pi,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(x){var M=d(x);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=Bi,r.r2l=d,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:Bi(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(x){var M=h(x);return M!==void 0?M:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Bi,r.r2l=h,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:Bi(x)},r.setupMultiCategory=function(x){var M=r._traceIndices,k,A,S=r._matchGroup;if(S&&r._categories.length===0){for(var D in S)if(D!==a){var E=t[vd.id2name(D)];M=M.concat(E._traceIndices)}}var R=[[0,{}],[0,{}]],N=[];for(k=0;kE[1]&&(A[D?0:1]=k),A[0]===A[1]){var R=r.l2r(M),N=r.l2r(k);if(M!==void 0){var I=R+1;k!==void 0&&(I=Math.min(I,N)),A[D?1:0]=I}if(k!==void 0){var H=N+1;M!==void 0&&(H=Math.max(H,R)),A[D?0:1]=H}}}},r.cleanRange=function(x,M){r._cleanRange(x,M),r.limitRange(x)},r._cleanRange=function(x,M){M||(M={}),x||(x="range");var k=st.nestedProperty(r,x).get(),A,S;if(r.type==="date"?S=st.dfltRange(r.calendar):n==="y"?S=pd.DFLTRANGEY:r._name==="realaxis"?S=[0,1]:S=M.dfltRange||pd.DFLTRANGEX,S=S.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(S[0]=0),!k||k.length!==2){st.nestedProperty(r,x).set(S);return}var D=k[0]===null,E=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=st.cleanDate(k[0],pi,r.calendar),k[1]=st.cleanDate(k[1],pi,r.calendar)),A=0;A<2;A++)if(r.type==="date"){if(!st.isDateTime(k[A],r.calendar)){r[x]=S;break}if(r.r2l(k[0])===r.r2l(k[1])){var R=st.constrain(r.r2l(k[0]),st.MIN_MS+1e3,st.MAX_MS-1e3);k[0]=r.l2r(R-1e3),k[1]=r.l2r(R+1e3);break}}else{if(!Oi(k[A]))if(!(D||E)&&Oi(k[1-A]))k[A]=k[1-A]*(A?10:.1);else{r[x]=S;break}if(k[A]<-ud?k[A]=-ud:k[A]>ud&&(k[A]=ud),k[0]===k[1]){var N=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=N,k[1]+=N}}},r.setScale=function(x){var M=t._size;if(r.overlaying){var k=vd.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var A=x&&r._r?"_r":"range",S=r.calendar;r.cleanRange(A);var D=r.r2l(r[A][0],S),E=r.r2l(r[A][1],S),R=n==="y";if(R?(r._offset=M.t+(1-r.domain[1])*M.h,r._length=M.h*(r.domain[1]-r.domain[0]),r._m=r._length/(D-E),r._b=-r._m*E):(r._offset=M.l+r.domain[0]*M.w,r._length=M.w*(r.domain[1]-r.domain[0]),r._m=r._length/(E-D),r._b=-r._m*D),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var N,I;if(r._rangebreaks=r.locateBreaks(Math.min(D,E),Math.max(D,E)),r._rangebreaks.length){for(N=0;NE&&(H=!H),H&&r._rangebreaks.reverse();var U=H?-1:1;for(r._m2=U*r._length/(Math.abs(E-D)-r._lBreaks),r._B.push(-r._m2*(R?E:D)),N=0;NS&&(S+=7,DS&&(S+=24,D=A&&D=A&&x=Q.min&&(reQ.max&&(Q.max=le),fe=!1)}fe&&E.push({min:re,max:le})}};for(k=0;k{"use strict";var RM=zr(),u2=Pe(),UQ=Mt().BADNUM,yd=u2.isArrayOrTypedArray,VQ=u2.isDateTime,WQ=u2.cleanNumber,zM=Math.round;FM.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(yd(n)&&!n.length)return"-";if(!i&&KQ(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var l=[],o=0;oi*2}function NM(e){return Math.max(1,(e-1)/1e3)}function $Q(e,r){for(var t=e.length,a=NM(t),n=0,i=0,l={},o=0;on*2}function KQ(e){return yd(e[0])&&yd(e[1])}});var Uc=B((Mge,VM)=>{"use strict";var QQ=kr(),BM=zr(),Jl=Pe(),gd=Mt().FP_SAFE,jQ=yr(),ej=Yr(),YM=Ut(),rj=YM.getFromId,tj=YM.isLinked;VM.exports={applyAutorangeOptions:UM,getAutoRange:c2,makePadFn:v2,doAutoRange:nj,findExtremes:ij,concatExtremes:p2};function c2(e,r){var t,a,n=[],i=e._fullLayout,l=v2(i,r,0),o=v2(i,r,1),s=p2(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return Jl.simpleMap(r.range,r.r2l);var c=u[0].val,h=f[0].val;for(t=1;t0&&(E=w-l(k)-o(A),E>x?R/E>M&&(S=k,D=A,M=R/E):R/w>M&&(S={val:k.val,nopad:1},D={val:A.val,nopad:1},M=R/w));function N(Y,O){return Math.max(Y,o(O))}if(c===h){var I=c-1,H=c+1;if(b)if(c===0)n=[0,1];else{var U=(c>0?f:u).reduce(N,0),X=c/(1-Math.min(.5,U/w));n=c>0?[0,X]:[X,0]}else _?n=[Math.max(0,I),Math.max(1,H)]:n=[I,H]}else b?(S.val>=0&&(S={val:0,nopad:1}),D.val<=0&&(D={val:0,nopad:1})):_&&(S.val-M*l(S)<0&&(S={val:0,nopad:1}),D.val<=0&&(D={val:1,nopad:1})),M=(D.val-S.val-IM(r,k.val,A.val))/(w-l(S)-o(D)),n=[S.val-M*l(S),D.val+M*o(D)];return n=UM(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Jl.simpleMap(n,r.l2r||Number)}function IM(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),k=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),A=x(t.vpadplus||t.vpad),S=x(t.vpadminus||t.vpad);if(!u){if(_=1/0,w=-1/0,s)for(c=0;c0&&(_=h),h>w&&h-gd&&(_=h),h>w&&h=R;c--)E(c);return{min:a,max:n,opts:t}}function h2(e,r,t,a){GM(e,r,t,a,lj)}function d2(e,r,t,a){GM(e,r,t,a,oj)}function GM(e,r,t,a,n){for(var i=a.tozero,l=a.extrapad,o=!0,s=0;s=t&&(u.extrapad||!l)){o=!1;break}else n(r,u.val)&&u.pad<=t&&(l||!u.extrapad)&&(e.splice(s,1),s--)}if(o){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:l})}}function OM(e){return BM(e)&&Math.abs(e)=r}function sj(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&xd(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&xd(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function uj(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&xd(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&xd(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function xd(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),l<=s&&(l=s,a=s)}}return t=sj(t,r),a=uj(a,r),[t,a]}});var Jr=B((Age,hA)=>{"use strict";var Bn=kr(),Wt=zr(),Ou=Pt(),Wc=yr(),br=Pe(),Bu=br.strTranslate,is=da(),fj=Yc(),Xc=xr(),wn=Yr(),cj=bn(),WM=Ng(),qa=Mt(),vj=qa.ONEMAXYEAR,wd=qa.ONEAVGYEAR,Td=qa.ONEMINYEAR,hj=qa.ONEMAXQUARTER,x2=qa.ONEAVGQUARTER,Md=qa.ONEMINQUARTER,dj=qa.ONEMAXMONTH,Yu=qa.ONEAVGMONTH,Ad=qa.ONEMINMONTH,Tn=qa.ONEWEEK,Ga=qa.ONEDAY,$l=Ga/2,Gi=qa.ONEHOUR,Zc=qa.ONEMIN,kd=qa.ONESEC,pj=qa.ONEMILLI,mj=qa.ONEMICROSEC,ls=qa.MINUS_SIGN,Sd=qa.BADNUM,b2={K:"zeroline"},_2={K:"gridline",L:"path"},w2={K:"minor-gridline",L:"path"},aA={K:"tick",L:"path"},XM={K:"tick",L:"text"},ZM={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Ld=Pa(),Vc=Ld.MID_SHIFT,os=Ld.CAP_SHIFT,Jc=Ld.LINE_SPACING,yj=Ld.OPPOSITE_SIDE,qd=3,Ye=hA.exports={};Ye.setConvert=md();var gj=f2(),vl=Ut(),xj=vl.idSort,bj=vl.isLinked;Ye.id2name=vl.id2name;Ye.name2id=vl.name2id;Ye.cleanId=vl.cleanId;Ye.list=vl.list;Ye.listIds=vl.listIds;Ye.getFromId=vl.getFromId;Ye.getFromTrace=vl.getFromTrace;var nA=Uc();Ye.getAutoRange=nA.getAutoRange;Ye.findExtremes=nA.findExtremes;var _j=1e-4;function k2(e){var r=(e[1]-e[0])*_j;return[e[0]-r,e[1]+r]}Ye.coerceRef=function(e,r,t,a,n,i){var l=a.charAt(a.length-1),o=t._fullLayout._subplots[l+"axis"],s=a+"ref",u={};return n||(n=o[0]||(typeof i=="string"?i:i[0])),i||(i=n),o=o.concat(o.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:o.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},br.coerce(e,r,u,s)};Ye.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Ye.coercePosition=function(e,r,t,a,n,i){var l,o,s=Ye.getRefType(a);if(s!=="range")l=br.ensureNumber,o=t(n,i);else{var u=Ye.getFromId(r,a);i=u.fraction2r(i),o=t(n,i),l=u.cleanPos}e[n]=l(o)};Ye.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?br.ensureNumber:Ye.getFromId(r,t).cleanPos;return a(e)};Ye.redrawComponents=function(e,r){r=r||Ye.listIds(e);var t=e._fullLayout;function a(n,i,l,o){for(var s=Wc.getComponentMethod(n,i),u={},f=0;f2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Ye.saveRangeInitial=function(e,r){for(var t=Ye.list(e,"",!0),a=!1,n=0;nc*.3||u(a)||u(n))){var h=t.dtick/2;e+=e+hl){var o=Number(t.substr(1));i.exactYears>l&&o%12===0?e=Ye.tickIncrement(e,"M6","reverse")+Ga*1.5:i.exactMonths>l?e=Ye.tickIncrement(e,"M1","reverse")+Ga*15.5:e-=$l;var s=Ye.tickIncrement(e,t);if(s<=a)return s}return e}Ye.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var a=r.dtick&&Wt(r._tmin),n;if(a){var i=Ye.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var l=br.simpleMap(r.range,r.r2l);n=[l[0],.8*l[0]+.2*l[1]]}if(e.range=br.simpleMap(n,r.l2r),e._isMinor=!0,Ye.prepTicks(e,t),a){var o=Wt(r.dtick),s=Wt(e.dtick),u=o?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);o&&s?m2(u,f)?u===2*Tn&&f===2*Ga&&(e.dtick=Tn):u===2*Tn&&f===3*Ga?e.dtick=Tn:u===Tn&&!(r._input.minor||{}).nticks?e.dtick=Ga:KM(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":m2(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"?m2(u,f)||(e.dtick=KM(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function m2(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function KM(e,r){return Math.abs(e/r-1)<.001}Ye.prepTicks=function(e,r){var t=br.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?br.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=br.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Ye.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,l=a):(i=a,l=a);var o=e[i].value,s=e[l].value,u=Math.abs(s-o),f=t||u,c=0;f>=Td?u>=Td&&u<=vj?c=u:c=wd:t===x2&&f>=Md?u>=Md&&u<=hj?c=u:c=x2:f>=Ad?u>=Ad&&u<=dj?c=u:c=Yu:t===Tn&&f>=Tn?c=Tn:f>=Ga?c=Ga:t===$l&&f>=$l?c=$l:t===Gi&&f>=Gi&&(c=Gi);var h;c>=u&&(c=u,h=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,y=0,m=0;mTn&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}Ye.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,l=r.ticklabelmode==="period",o=r.range[0]>r.range[1],s=!r.ticklabelindex||br.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=br.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(w?0:1);x--){var M=!x;x?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var k=x?r:br.extendFlat({},r,r.minor);if(M?Ye.prepMinorTicks(k,r,t):Ye.prepTicks(k,t),k.tickmode==="array"){x?(m=[],p=QM(r,!M)):(b=[],y=QM(r,!M));continue}if(k.tickmode==="sync"){m=[],p=qj(r);continue}var A=k2(u),S=A[0],D=A[1],E=Wt(k.dtick),R=a==="log"&&!(E||k.dtick.charAt(0)==="L"),N=Ye.tickFirst(k,t);if(x){if(r._tmin=N,N=D:H<=D;H=Ye.tickIncrement(H,Y,f,n)){if(x&&U++,k.rangebreaks&&!f){if(H=h)break}if(m.length>d||H===I)break;I=H;var O={value:H};x?(R&&H!==(H|0)&&(O.simpleLabel=!0),i>1&&U%i&&(O.skipLabel=!0),m.push(O)):(O.minor=!0,b.push(O))}}if(!b||b.length<2)s=!1;else{var G=(b[1].value-b[0].value)*(o?-1:1);Kj(G,r.tickformat)||(s=!1)}if(!s)_=m;else{var J=m.concat(b);l&&m.length&&(J=J.slice(1)),J=J.sort(function(Ne,Ve){return Ne.value-Ve.value}).filter(function(Ne,Ve,Ge){return Ve===0||Ne.value!==Ge[Ve-1].value});var $=J.map(function(Ne,Ve){return Ne.minor===void 0&&!Ne.skipLabel?Ve:null}).filter(function(Ne){return Ne!==null});$.forEach(function(Ne){s.map(function(Ve){var Ge=Ne+Ve;Ge>=0&&Ge-1;se--){if(m[se].drop){m.splice(se,1);continue}m[se].value=g2(m[se].value,r);var W=r.c2p(m[se].value);(_e?te>W-V:teh||Deh&&(Ge.periodX=h),Den&&hwd)r/=wd,a=n(10),e.dtick="M"+12*Yi(r,a,bd);else if(i>Yu)r/=Yu,e.dtick="M"+Yi(r,1,jM);else if(i>Ga){if(e.dtick=Yi(r,Ga,e._hasDayOfWeekBreaks?[1,2,7,14]:Cj),!t){var l=Ye.getTickFormat(e),o=e.ticklabelmode==="period";o&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=br.dateTick0(e.calendar,2):e.tick0=br.dateTick0(e.calendar,1),o&&(e._dowTick0=e.tick0)}}else i>Gi?e.dtick=Yi(r,Gi,jM):i>Zc?e.dtick=Yi(r,Zc,eA):i>kd?e.dtick=Yi(r,kd,eA):(a=n(10),e.dtick=Yi(r,a,bd))}else if(e.type==="log"){e.tick0=0;var s=br.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+Yi(r,a,bd)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):S2(e)?(e.tick0=0,a=1,e.dtick=Yi(r,a,Sj)):(e.tick0=0,a=n(10),e.dtick=Yi(r,a,bd));if(e.dtick===0&&(e.dtick=1),!Wt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function sA(e){var r=e.dtick;if(e._tickexponent=0,!Wt(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.substr(5)!=="01-01"?e._tickround="d":e._tickround=+r.substr(1)%12===0?"y":"m";else if(r>=Ga&&n<=10||r>=Ga*15)e._tickround="d";else if(r>=Zc&&n<=16||r>=Gi)e._tickround="M";else if(r>=kd&&n<=19||r>=Zc)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(Wt(r)||r.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);Wt(r)||(r=Number(r.substr(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var o=Math.max(Math.abs(l[0]),Math.abs(l[1])),s=Math.floor(Math.log(o)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(Cd(e.exponentformat)&&!q2(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Ye.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(Wt(r))return br.increment(e,n*r);var i=r.charAt(0),l=n*Number(r.substr(1));if(i==="M")return br.incrementMonth(e,l,a);if(i==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(i==="D"){var o=r==="D2"?oA:lA,s=e+n*.01,u=br.roundUp(br.mod(s,1),o,t);return Math.floor(s)+Math.log(Bn.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Ye.tickFirst=function(e,r){var t=e.r2l||Number,a=br.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&b<=e._length?m:null};if(i&&br.isArrayOrTypedArray(e.ticktext)){var c=br.simpleMap(e.range,e.r2l),h=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(u=0;u"+o;else{var u=Kc(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(l+="
")}r.text=l}function Dj(e,r,t,a,n){var i=e.dtick,l=r.x,o=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),o||s==="L")r.text=$c(Math.pow(10,l),e,n,a);else if(Wt(i)||s==="D"&&(e.minorloglabels==="complete"||br.mod(l+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(br.mod(l+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,l).toExponential(0),c=f.split("e"),h=+c[1],d=Math.abs(h),p=e.exponentformat;p==="power"||Cd(p)&&q2(h)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),h!==0&&h!==1&&(r.text+=""+(h>0?"":ls)+d+""),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(h>0?"+":ls)+d:(r.text=$c(Math.pow(10,l),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,br.mod(l,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var y=String(r.text).charAt(0);(y==="0"||y==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(l<0?.5:.25)))}}function Ej(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Pj(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),l=n[0]===void 0?"":String(n[0]);t?r.text=l+" - "+i:(r.text=i,r.text2=l)}function Rj(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=$c(r.x,e,n,a)}function zj(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=Nj(i);if(l[1]>=100)r.text=$c(br.deg2rad(r.x),e,n,a);else{var o=r.x<0;l[1]===1?l[0]===1?r.text="\u03C0":r.text=l[0]+"\u03C0":r.text=["",l[0],"","\u2044","",l[1],"","\u03C0"].join(""),o&&(r.text=ls+r.text)}}}else r.text=$c(r.x,e,n,a)}function Nj(e){function r(o,s){return Math.abs(o-s)<=1e-6}function t(o,s){return r(s,0)?o:t(s,o%s)}function a(o){for(var s=1;!r(Math.round(o*s)/s,o);)s*=10;return s}var n=a(e),i=e*n,l=Math.abs(t(i,n));return[Math.round(i/l),Math.round(n/l)]}var Fj=["f","p","n","\u03BC","m","","k","M","G","T"];function Cd(e){return e==="SI"||e==="B"}function q2(e){return e>14||e<-15}function $c(e,r,t,a){var n=e<0,i=r._tickround,l=t||r.exponentformat||"B",o=r._tickexponent,s=Ye.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:l,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Wt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};sA(f),i=(Number(f._tickround)||0)+4,o=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,ls);var c=Math.pow(10,-i)/2;if(l==="none"&&(o=0),e=Math.abs(e),e"+p+"":l==="B"&&o===9?e+="B":Cd(l)&&(e+=Fj[o/3+5])}return n?ls+e:e}Ye.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Yu}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),h=f.indexOf(u.charAt(0));return c===h?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-h}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},h=u[0],d=u[1];return(!h&&typeof h!="number"||c(h)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,h=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||h)&&(c||d)}var l,o;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var o={false:{left:0,right:0}};return br.syncOrAsync(n.map(function(s){return function(){if(s){var u=Ye.getFromId(e,s);t||(t={}),t.axShifts=o,t.overlayingShiftedAx=l;var f=Ye.drawOne(e,u,t);return u._shiftPusher&&A2(u,u._fullDepth||0,o,!0),u._r=u.range.slice(),u._rl=br.simpleMap(u._r,u.r2l),f}}}))};Ye.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,l,o;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=Ye.counterLetter(u),h=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!h)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),A2(r,p,a,!0),A2(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=$j(r,a));var y=h[f+"axislayer"],m=r._mainLinePosition,b=m+=r._shift,_=r._mainMirrorPosition,w=r._vals=Ye.calcTicks(r),x=[r.mirror,b,_].join("_");for(i=0;i0?De.bottom-Ve:0,Ge))));var Ae=0,Ze=0;if(r._shiftPusher&&(Ae=Math.max(Ge,De.height>0?Ee==="l"?Ve-De.left:De.right-Ve:0),r.title.text!==s._dfltTitle[f]&&(Ze=(r._titleStandoff||0)+(r._titleScoot||0),Ee==="l"&&(Ze+=tA(r))),r._fullDepth=Math.max(Ae,Ze)),r.automargin){He={x:0,y:0,r:0,l:0,t:0,b:0};var cr=[0,1],fr=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Ee==="b"?He[Ee]=r._depth:(He[Ee]=r._depth=Math.max(De.width>0?Ve-De.top:0,Ge),cr.reverse()),De.width>0){var oe=De.right-(r._offset+r._length);oe>0&&(He.xr=1,He.r=oe);var Ce=r._offset-De.left;Ce>0&&(He.xl=0,He.l=Ce)}}else if(Ee==="l"?(r._depth=Math.max(De.height>0?Ve-De.left:0,Ge),He[Ee]=r._depth-fr):(r._depth=Math.max(De.height>0?De.right-Ve:0,Ge),He[Ee]=r._depth+fr,cr.reverse()),De.height>0){var Ie=De.bottom-(r._offset+r._length);Ie>0&&(He.yb=0,He.b=Ie);var We=r._offset-De.top;We>0&&(He.yt=1,He.t=We)}He[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[cr[0]],r.title.text!==s._dfltTitle[f]&&(He[Ee]+=tA(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Oe={x:0,y:0,r:0,l:0,t:0,b:0},Oe[Ne]=r.linewidth,r.mirror&&r.mirror!==!0&&(Oe[Ne]+=Ge),r.mirror===!0||r.mirror==="ticks"?Oe[c]=r._anchorAxis.domain[cr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Oe[c]=[r._counterDomainMin,r._counterDomainMax][cr[1]]))}Fe&&(ie=Wc.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(rA(He,r.automargin),rA(Oe,r.automargin)),Ou.autoMargin(e,C2(r),He),Ou.autoMargin(e,cA(r),Oe),Ou.autoMargin(e,vA(r),ie)}),br.syncOrAsync(ge)}};function rA(e,r){if(e){var t=Object.keys(ZM).reduce(function(a,n){return r.indexOf(n)!==-1&&ZM[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function Ij(e,r){var t=[],a,n=function(i,l){var o=i.xbnd[l];o!==null&&t.push(br.extendFlat({},i,{x:o}))};if(r.length){for(a=0;ae.range[1],o=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!o;if(t){var u=l?-1:1;t=t*u}if(a){var f=e.side,c=o&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(h){return Bu(n+e._offset+e.l2p(T2(h))+t,i+a)}:function(h){return Bu(i+a,n+e._offset+e.l2p(T2(h))+t)}};function T2(e){return e.periodX!==void 0?e.periodX:e.x}function Yj(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),l=a("right"),o=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(o||i||n||l);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,h=qd,d=e.tickfont?e.tickfont.size:12;return(o||n)&&(c+=d*os,h+=(e.linewidth||0)/2),(i||l)&&(c+=(e.linewidth||0)/2,h+=qd),s&&f==="top"&&(h-=d*(1-os)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(h=-h),[u?c:0,s?h:0]}Ye.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,l=e._id.charAt(0),o=(e.linewidth||1)/2;return l==="x"?"M0,"+(r+o*t)+"v"+i*t:"M"+(r+o*t)+",0h"+i*t};Ye.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(I){return a.indexOf(I)!==-1},l=i("top"),o=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||o||l||s),c=i("inside"),h=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,y=h?e.ticklen:0;if(c?y*=-1:f&&(y=0),h&&(d+=y,t)){var m=br.deg2rad(t);d=y*Math.cos(m)+1,p=y*Math.sin(m)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:d,labelShift:p},_,w,x,M,k=0,A=e.side,S=e._id.charAt(0),D=e.tickangle,E;if(S==="x")E=!c&&A==="bottom"||c&&A==="top",M=E?1:-1,c&&(M*=-1),_=p*M,w=r+d*M,x=E?1:-.2,Math.abs(D)===90&&(c?x+=Vc:D===-90&&A==="bottom"?x=os:D===90&&A==="top"?x=Vc:x=.5,k=Vc/2*(D/90)),b.xFn=function(I){return I.dx+_+k*I.fontSize},b.yFn=function(I){return I.dy+w+I.fontSize*x},b.anchorFn=function(I,H){if(f){if(o)return"end";if(s)return"start"}return!Wt(H)||H===0||H===180?"middle":H*M<0!==c?"end":"start"},b.heightFn=function(I,H,U){return H<-60||H>60?-.5*U:e.side==="top"!==c?-U:0};else if(S==="y"){if(E=!c&&A==="left"||c&&A==="right",M=E?1:-1,c&&(M*=-1),_=d,w=p*M,x=0,!c&&Math.abs(D)===90&&(D===-90&&A==="left"||D===90&&A==="right"?x=os:x=.5),c){var R=Wt(D)?+D:0;if(R!==0){var N=br.deg2rad(R);k=Math.abs(Math.sin(N))*os*M,x=0}}b.xFn=function(I){return I.dx+r-(_+I.fontSize*x)*M+k*I.fontSize},b.yFn=function(I){return I.dy+w+I.fontSize*Vc},b.anchorFn=function(I,H){return Wt(H)&&Math.abs(H)===90?"middle":E?"end":"start"},b.heightFn=function(I,H,U){return e.side==="right"&&(H*=-1),H<-30?-U:H<30?-.5*U:0}}return b};function Dd(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Ye.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(r.ticks?t.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,Dd);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(l){return Xc.stroke(Bn.select(this),l.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(l){return wn.crispRound(e,l.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Ed(r,[aA]),i.attr("transform",t.transFn)};Ye.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(b){return b.minor}):[],l=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],o=t.counterAxis;if(o&&Ye.shouldShowZeroLine(e,r,o))for(var s=r.tickmode==="array",u=0;u=0;p--){var y=p?h:d;if(y){var m=y.selectAll("path."+a).data(p?l:i,Dd);m.exit().remove(),m.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),m.attr("transform",t.transFn).attr("d",t.path).each(function(b){return Xc.stroke(Bn.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return wn.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&m.attr("d",t.path)}}Ed(r,[_2,w2])}};Ye.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Ye.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(l,o){return xj(l.id,o.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Xc.stroke,r.zerolinecolor||Xc.defaultLine).style("stroke-width",wn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Ed(r,[b2])};Ye.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",l=t.cls||n+"tick",o=t.vals.filter(function(G){return G.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[l],c=t.layer.selectAll("g."+l).data(r.showticklabels?o:[],Dd),h=[];c.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(G){var J=Bn.select(this),$=e._promises.length;J.call(is.positionText,s.xFn(G),s.yFn(G)).call(wn.font,{family:G.font,size:G.fontSize,color:G.fontColor,weight:G.fontWeight,style:G.fontStyle,variant:G.fontVariant,textcase:G.fontTextcase,lineposition:G.fontLineposition,shadow:G.fontShadow}).text(G.text).call(is.convertToTspans,e),e._promises[$]?h.push(e._promises.pop().then(function(){d(J,u)})):d(J,u)}),Ed(r,[XM]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(G){Bn.select(this).select("text").call(is.positionText,s.xFn(G),s.yFn(G))});function d(G,J){G.each(function($){var re=Bn.select(this),le=re.select(".text-math-group"),fe=s.anchorFn($,J),pe=t.transFn.call(re.node(),$)+(Wt(J)&&+J!=0?" rotate("+J+","+s.xFn($)+","+(s.yFn($)-$.fontSize/2)+")":""),Q=is.lineCount(re),qe=Jc*$.fontSize,ve=s.heightFn($,Wt(J)?+J:0,(Q-1)*qe);if(ve&&(pe+=Bu(0,ve)),le.empty()){var be=re.select("text");be.attr({transform:pe,"text-anchor":fe}),be.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var se=wn.bBox(le.node()).width,_e=se*{end:-.5,start:.5}[fe];le.attr("transform",pe+Bu(_e,0))}})}r._adjustTickLabelsOverflow=function(){var G=r.ticklabeloverflow;if(!(!G||G==="allow")){var J=G.indexOf("hide")!==-1,$=r._id.charAt(0)==="x",re=0,le=$?e._fullLayout.width:e._fullLayout.height;if(G.indexOf("domain")!==-1){var fe=br.simpleMap(r.range,r.r2l);re=r.l2p(fe[0])+r._offset,le=r.l2p(fe[1])+r._offset}var pe=Math.min(re,le),Q=Math.max(re,le),qe=r.side,ve=1/0,be=-1/0;c.each(function(te){var W=Bn.select(this),xe=W.select(".text-math-group");if(xe.empty()){var ke=wn.bBox(W.node()),ge=0;$?(ke.right>Q||ke.leftQ||ke.top+(r.tickangle?0:te.fontSize/4)r["_visibleLabelMin_"+fe._id]?W.style("display","none"):Q.K==="tick"&&!pe&&W.node().style.display!=="none"&&W.style("display",null)})})})})},d(c,f+1?f:u);function p(){return h.length&&Promise.all(h)}var y=null;function m(){if(d(c,u),o.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){y=r.autotickangles[0];var G=0,J=[],$,re=1;c.each(function(He){G=Math.max(G,He.fontSize);var Oe=r.l2p(He.x),ie=M2(this),Ae=wn.bBox(ie.node());re=Math.max(re,is.lineCount(ie)),J.push({top:0,bottom:10,height:10,left:Oe-Ae.width/2,right:Oe+Ae.width/2+2,width:Ae.width+2})});var le=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,fe=o.length,pe=Math.abs((o[fe-1].x-o[0].x)*r._m)/(fe-1),Q=le?pe/2:pe,qe=le?r.ticklen:G*1.25*re,ve=Math.sqrt(Math.pow(Q,2)+Math.pow(qe,2)),be=Q/ve,se=r.autotickangles.map(function(He){return He*Math.PI/180}),_e=se.find(function(He){return Math.abs(Math.cos(He))<=be});_e===void 0&&(_e=se.reduce(function(He,Oe){return Math.abs(Math.cos(He))X*U&&(N=U,D[S]=E[S]=I[S])}var Y=Math.abs(N-R);Y-M>0?(Y-=M,M*=1+M/Y):M=0,r._id.charAt(0)!=="y"&&(M=-M),D[A]=w.p2r(w.r2p(E[A])+k*M),w.autorange==="min"||w.autorange==="max reversed"?(D[0]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0):(w.autorange==="max"||w.autorange==="min reversed")&&(D[1]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[w._name+".range"]=D}var O=br.syncOrAsync(b);return O&&O.then&&e._promises.push(O),O};function Gj(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,Dd);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(Xc.stroke,r.dividercolor).style("stroke-width",wn.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Ye.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function tA(e){var r=e.title.font.size,t=(e.title.text.match(is.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(os+t*Jc):t?r*(t+1)*Jc:r}function Uj(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,l,o=(r.title.text.match(is.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?l=r._depth+r.title.standoff+i*os:(r.side==="top"||r.side==="left")&&(l=r._depth+r.title.standoff+i*(Vc+o*Jc));else{var s=Kc(r);if(r.type==="multicategory")l=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),l=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?l+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):l+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Ye.getPxPosition(e,r),c,h,d;n==="x"?(h=r._offset+r._length/2,d=r.side==="top"?f-l:f+l):(d=r._offset+r._length/2,h=r.side==="right"?f+l:f-l,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var y=r._selections[r._id+"tick"];if(p={selection:y,side:r.side},y&&y.node()&&y.node().parentNode){var m=wn.getTranslate(y.node().parentNode);p.offsetLeft=m.x,p.offsetTop=m.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=l,fj.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:h,y:d,"text-anchor":"middle"}})}Ye.shouldShowZeroLine=function(e,r,t){var a=br.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Sd)&&(fA(r,0)||!Vj(e,r,t,a)||Wj(e,r))};Ye.clipEnds=function(e,r){return r.filter(function(t){return fA(e,t.x)})};function fA(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=mj:/%L/.test(r)?e>=pj:/%[SX]/.test(r)?e>=kd:/%M/.test(r)?e>=Zc:/%[HI]/.test(r)?e>=Gi:/%p/.test(r)?e>=$l:/%[Aadejuwx]/.test(r)?e>=Ga:/%[UVW]/.test(r)?e>=Tn:/%[Bbm]/.test(r)?e>=Ad:/%[q]/.test(r)?e>=Md:/%[Yy]/.test(r)?e>=Td:!0}});var pA=B((kge,dA)=>{"use strict";dA.exports=function(r,t,a){var n,i;if(a){var l=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[l?1:0],i=a[l?0:1]}var o=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);o===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var L2=B((qge,mA)=>{"use strict";var Qj=pA();mA.exports=function(r,t,a,n){var i=t._template||{},l=t.type||i.type||"-";a("minallowed"),a("maxallowed");var o=a("range");if(!o){var s;!n.noInsiderange&&l!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(o=a("range",s)))}var u=t.getAutorangeDflt(o,n),f=a("autorange",u),c;o&&(o[0]===null&&o[1]===null||(o[0]===null||o[1]===null)&&(f==="reversed"||f===!0)||o[0]!==null&&(f==="min"||f==="max reversed")||o[1]!==null&&(f==="max"||f==="min reversed"))&&(o=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(o,n),f=a("autorange",u)),f&&(Qj(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var gA=B((Cge,yA)=>{var jj={left:0,top:0};yA.exports=eee;function eee(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=ree(r);return t[0]=a-i.left,t[1]=n-i.top,t}function ree(e){return e===window||e===document||e===document.body?jj:e.getBoundingClientRect()}});var D2=B((Sge,xA)=>{"use strict";var tee=fg();function aee(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}xA.exports=tee&&aee()});var _A=B((Lge,bA)=>{"use strict";bA.exports=function(r,t,a,n,i){var l=(r-a)/(n-a),o=l+t/(n-a),s=(l+o)/2;return i==="left"||i==="bottom"?l:i==="center"||i==="middle"?s:i==="right"||i==="top"?o:l<2/3-s?l:o>4/3-s?o:s}});var MA=B((Dge,TA)=>{"use strict";var wA=Pe(),nee=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];TA.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=wA.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=wA.constrain(Math.floor(t*3),0,2),nee[t][r]}});var kA=B((Ege,AA)=>{"use strict";var iee=Pc(),lee=Sh(),oee=Mc().getGraphDiv,see=xc(),E2=AA.exports={};E2.wrapped=function(e,r,t){e=oee(e),e._fullLayout&&lee.clear(e._fullLayout._uid+see.HOVERID),E2.raw(e,r,t)};E2.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&iee.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var mi=B((Pge,LA)=>{"use strict";var uee=gA(),P2=vg(),fee=D2(),cee=Pe().removeElement,vee=Aa(),ss=LA.exports={};ss.align=_A();ss.getCursor=MA();var CA=kA();ss.unhover=CA.wrapped;ss.unhoverRaw=CA.raw;ss.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,l,o,s,u,f,c,h,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=m,fee?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=m,i.addEventListener("touchstart",m,{passive:!1})):i.ontouchstart=m;function p(w,x,M){return Math.abs(w)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;c.target===h?x=c:(x={target:h,srcElement:h,toElement:h},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(M=>{var k=c[M];!x[M]&&typeof k!="function"&&(x[M]=k)})),r.clickFn&&r.clickFn(a,x),d||h.dispatchEvent(new MouseEvent("click",w))}t._dragging=!1,t._dragged=!1}};function SA(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}ss.coverSlip=SA;function qA(e){return uee(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Kl=B((Rge,DA)=>{"use strict";DA.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var RA=B((zge,PA)=>{"use strict";var R2=Kl(),Qc="data-savedcursor",EA="!!";PA.exports=function(r,t){var a=r.attr(Qc);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var z2=aa(),hee=zn();zA.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:hee.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:z2({editType:"legend"}),grouptitlefont:z2({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:z2({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Rd=B(Pd=>{"use strict";Pd.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Pd.isVertical=function(r){return r.orientation!=="h"};Pd.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1}});var H2=B((Ige,NA)=>{"use strict";var F2=yr(),Mn=Pe(),dee=ot(),pee=tn(),mee=N2(),yee=xu(),I2=Rd();function gee(e,r,t,a){var n=r[e]||{},i=dee.newContainer(t,e);function l(Y,O){return Mn.coerce(n,i,mee,Y,O)}var o=Mn.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var s=l("visible");if(s){for(var u,f=function(Y,O){var G=u._input,J=u;return Mn.coerce(G,J,pee,Y,O)},c=t.font||{},h=Mn.coerceFont(l,"grouptitlefont",c,{overrideDflt:{size:Math.round(c.size*1.1)}}),d=0,p=!1,y="normal",m=(t.shapes||[]).filter(function(Y){return Y.showlegend}),b=a.concat(m).filter(function(Y){return e===(Y.legend||"legend")}),_=0;_(e==="legend"?1:0));if(x===!1&&(t[e]=void 0),!(x===!1&&!n.uirevision)&&(l("uirevision",t.uirevision),x!==!1)){l("borderwidth");var M=l("orientation"),k=l("yref"),A=l("xref"),S=M==="h",D=k==="paper",E=A==="paper",R,N,I,H="left";S?(R=0,F2.getComponentMethod("rangeslider","isVisible")(r.xaxis)?D?(N=1.1,I="bottom"):(N=1,I="top"):D?(N=-.1,I="top"):(N=0,I="bottom")):(N=1,I="auto",E?R=1.02:(R=1,H="right")),Mn.coerce(n,i,{x:{valType:"number",editType:"legend",min:E?-2:0,max:E?3:1,dflt:R}},"x"),Mn.coerce(n,i,{y:{valType:"number",editType:"legend",min:D?-2:0,max:D?3:1,dflt:N}},"y"),l("traceorder",y),I2.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",H),l("yanchor",I),l("maxheight",S?.5:1),l("valign"),Mn.noneOrAll(n,i,["x","y"]);var U=l("title.text");if(U){l("title.side",S?"left":"top");var X=Mn.extendFlat({},o,{size:Mn.bigFont(o.size)});Mn.coerceFont(l,"title.font",X)}}}}NA.exports=function(r,t,a){var n,i=a.slice(),l=t.shapes;if(l)for(n=0;n{"use strict";var Gu=yr(),B2=Pe(),xee=B2.pushUnique,O2=!0;FA.exports=function(r,t,a){var n=t._fullLayout;if(t._dragged||t._editing)return;var i=n.legend.itemclick,l=n.legend.itemdoubleclick,o=n.legend.groupclick;a===1&&i==="toggle"&&l==="toggleothers"&&O2&&t.data&&t._context.showTips&&B2.notifier(B2._(t,"Double-click on legend to isolate one trace"),"long"),O2=!1;var s;if(a===1?s=i:a===2&&(s=l),!s)return;var u=o==="togglegroup",f=n.hiddenlabels?n.hiddenlabels.slice():[],c=r.data()[0][0];if(c.groupTitle&&c.noClick)return;var h=t._fullData,d=(n.shapes||[]).filter(function(Ne){return Ne.showlegend}),p=h.concat(d),y=c.trace;y._isShape&&(y=y._fullInput);var m=y.legendgroup,b,_,w,x,M,k,A={},S=[],D=[],E=[];function R(Ne,Ve){var Ge=S.indexOf(Ne),De=A.visible;return De||(De=A.visible=[]),S.indexOf(Ne)===-1&&(S.push(Ne),Ge=S.length-1),De[Ge]=Ve,Ge}var N=(n.shapes||[]).map(function(Ne){return Ne._input}),I=!1;function H(Ne,Ve){N[Ne].visible=Ve,I=!0}function U(Ne,Ve){if(!(c.groupTitle&&!u)){var Ge=Ne._fullInput||Ne,De=Ge._isShape,He=Ge.index;He===void 0&&(He=Ge._index);var Oe=Ge.visible===!1?!1:Ve;De?H(He,Oe):R(He,Oe)}}var X=y.legend,Y=y._fullInput,O=Y&&Y._isShape;if(!O&&Gu.traceIs(y,"pie-like")){var G=c.label,J=f.indexOf(G);if(s==="toggle")J===-1?f.push(G):f.splice(J,1);else if(s==="toggleothers"){var $=J!==-1,re=[];for(b=0;b{"use strict";HA.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var YA=B((Bge,BA)=>{"use strict";var OA=yr(),G2=Rd();BA.exports=function(r,t,a){var n=t._inHover,i=G2.isGrouped(t),l=G2.isReversed(t),o={},s=[],u=!1,f={},c=0,h=0,d,p;function y(Y,O,G){if(t.visible!==!1&&!(a&&Y!==t._id))if(O===""||!G2.isGrouped(t)){var J="~~i"+c;s.push(J),o[J]=[G],c++}else s.indexOf(O)===-1?(s.push(O),u=!0,o[O]=[G]):o[O].push(G)}for(d=0;dE&&(D=E)}A[d][0]._groupMinRank=D,A[d][0]._preGroupSort=d}var R=function(Y,O){return Y[0]._groupMinRank-O[0]._groupMinRank||Y[0]._preGroupSort-O[0]._preGroupSort},N=function(Y,O){return Y.trace.legendrank-O.trace.legendrank||Y._preSort-O._preSort};for(A.forEach(function(Y,O){Y[0]._preGroupSort=O}),A.sort(R),d=0;d{"use strict";var zd=Pe();function GA(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}us.formatPiePercent=function(r,t){var a=GA((r*100).toPrecision(3));return zd.numSeparate(a,t)+"%"};us.formatPieValue=function(r,t){var a=GA(r.toPrecision(10));return zd.numSeparate(a,t)};us.getFirstFilled=function(r,t){if(zd.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var bee=Yr(),_ee=xr();UA.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?bee.pointStyle(r,a,n,t):_ee.fill(r,t.color)}});var Uu=B((Uge,ZA)=>{"use strict";var WA=xr(),XA=jc().castOption,wee=VA();ZA.exports=function(r,t,a,n){var i=a.marker.line,l=XA(i.color,t.pts)||WA.defaultLine,o=XA(i.width,t.pts)||0;r.call(wee,t,a,n).style("stroke-width",o).call(WA.stroke,l)}});var X2=B((Vge,ek)=>{"use strict";var Ua=kr(),U2=yr(),za=Pe(),JA=za.strTranslate,An=Yr(),Yn=xr(),V2=Hn().extractOpts,Nd=_n(),Tee=Uu(),Mee=jc().castOption,Aee=Y2(),$A=12,KA=5,fs=2,kee=10,Vu=5;ek.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",l=a.itemwidth,o=(l+Aee.itemGap*2)/2,s=JA(o,0),u=function(A,S,D,E){var R;if(A+1)R=A;else if(S&&S.width>0)R=S.width;else return 0;return i?E:Math.min(R,D)};r.each(function(A){var S=Ua.select(this),D=za.ensureSingle(S,"g","layers");D.style("opacity",A[0].trace.opacity);var E=a.indentation,R=a.valign,N=A[0].lineHeight,I=A[0].height;if(R==="middle"&&E===0||!N||!I)D.attr("transform",null);else{var H={top:1,bottom:-1}[R],U=H*(.5*(N-I+3))||0,X=a.indentation;D.attr("transform",JA(X,U))}var Y=D.selectAll("g.legendfill").data([A]);Y.enter().append("g").classed("legendfill",!0);var O=D.selectAll("g.legendlines").data([A]);O.enter().append("g").classed("legendlines",!0);var G=D.selectAll("g.legendsymbols").data([A]);G.enter().append("g").classed("legendsymbols",!0),G.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(k).each(h).each(p).each(d).each(m).each(x).each(w).each(f).each(c).each(b).each(_);function f(A){var S=QA(A),D=S.showFill,E=S.showLine,R=S.showGradientLine,N=S.showGradientFill,I=S.anyFill,H=S.anyLine,U=A[0],X=U.trace,Y,O,G=V2(X),J=G.colorscale,$=G.reversescale,re=function(be){if(be.size())if(D)An.fillGroupStyle(be,t,!0);else{var se="legendfill-"+X.uid;An.gradient(be,t,se,W2($),J,"fill")}},le=function(be){if(be.size()){var se="legendline-"+X.uid;An.lineGroupStyle(be),An.gradient(be,t,se,W2($),J,"stroke")}},fe=Nd.hasMarkers(X)||!I?"M5,0":H?"M5,-2":"M5,-3",pe=Ua.select(this),Q=pe.select(".legendfill").selectAll("path").data(D||N?[A]:[]);if(Q.enter().append("path").classed("js-fill",!0),Q.exit().remove(),Q.attr("d",fe+"h"+l+"v6h-"+l+"z").call(re),E||R){var qe=u(void 0,X.line,kee,KA);O=za.minExtend(X,{line:{width:qe}}),Y=[za.minExtend(U,{trace:O})]}var ve=pe.select(".legendlines").selectAll("path").data(E||R?[Y]:[]);ve.enter().append("path").classed("js-line",!0),ve.exit().remove(),ve.attr("d",fe+(R?"l"+l+",0.0001":"h"+l)).call(E?An.lineGroupStyle:le)}function c(A){var S=QA(A),D=S.anyFill,E=S.anyLine,R=S.showLine,N=S.showMarker,I=A[0],H=I.trace,U=!N&&!E&&!D&&Nd.hasText(H),X,Y;function O(Q,qe,ve,be){var se=za.nestedProperty(H,Q).get(),_e=za.isArrayOrTypedArray(se)&&qe?qe(se):se;if(i&&_e&&be!==void 0&&(_e=be),ve){if(_eve[1])return ve[1]}return _e}function G(Q){return I._distinct&&I.index&&Q[I.index]?Q[I.index]:Q[0]}if(N||U||R){var J={},$={};if(N){J.mc=O("marker.color",G),J.mx=O("marker.symbol",G),J.mo=O("marker.opacity",za.mean,[.2,1]),J.mlc=O("marker.line.color",G),J.mlw=O("marker.line.width",za.mean,[0,5],fs),$.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var re=O("marker.size",za.mean,[2,16],$A);J.ms=re,$.marker.size=re}R&&($.line={width:O("line.width",G,[0,10],KA)}),U&&(J.tx="Aa",J.tp=O("textposition",G),J.ts=10,J.tc=O("textfont.color",G),J.tf=O("textfont.family",G),J.tw=O("textfont.weight",G),J.ty=O("textfont.style",G),J.tv=O("textfont.variant",G),J.tC=O("textfont.textcase",G),J.tE=O("textfont.lineposition",G),J.tS=O("textfont.shadow",G)),X=[za.minExtend(I,J)],Y=za.minExtend(H,$),Y.selectedpoints=null,Y.texttemplate=null}var le=Ua.select(this).select("g.legendpoints"),fe=le.selectAll("path.scatterpts").data(N?X:[]);fe.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),fe.exit().remove(),fe.call(An.pointStyle,Y,t),N&&(X[0].mrc=3);var pe=le.selectAll("g.pointtext").data(U?X:[]);pe.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),pe.exit().remove(),pe.selectAll("text").call(An.textPointStyle,Y,t)}function h(A){var S=A[0].trace,D=S.type==="waterfall";if(A[0]._distinct&&D){var E=A[0].trace[A[0].dir].marker;return A[0].mc=E.color,A[0].mlw=E.line.width,A[0].mlc=E.line.color,y(A,this,"waterfall")}var R=[];S.visible&&D&&(R=A[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var N=Ua.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(R);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(I){var H=Ua.select(this),U=S[I[0]].marker,X=u(void 0,U.line,Vu,fs);H.attr("d",I[1]).style("stroke-width",X+"px").call(Yn.fill,U.color),X&&H.call(Yn.stroke,U.line.color)})}function d(A){y(A,this)}function p(A){y(A,this,"funnel")}function y(A,S,D){var E=A[0].trace,R=E.marker||{},N=R.line||{},I=R.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",H=D?E.visible&&E.type===D:U2.traceIs(E,"bar"),U=Ua.select(S).select("g.legendpoints").selectAll("path.legend"+D).data(H?[A]:[]);U.enter().append("path").classed("legend"+D,!0).attr("d",I).attr("transform",s),U.exit().remove(),U.each(function(X){var Y=Ua.select(this),O=X[0],G=u(O.mlw,R.line,Vu,fs);Y.style("stroke-width",G+"px");var J=O.mcc;if(!a._inHover&&"mc"in O){var $=V2(R),re=$.mid;re===void 0&&(re=($.max+$.min)/2),J=An.tryColorscale(R,"")(re)}var le=J||O.mc||R.color,fe=R.pattern,pe=An.getPatternAttr,Q=fe&&(pe(fe.shape,0,"")||pe(fe.path,0,""));if(Q){var qe=pe(fe.bgcolor,0,null),ve=pe(fe.fgcolor,0,null),be=fe.fgopacity,se=jA(fe.size,8,10),_e=jA(fe.solidity,.5,1),V="legend-"+E.uid;Y.call(An.pattern,"legend",t,V,Q,se,_e,J,fe.fillmode,qe,ve,be)}else Y.call(Yn.fill,le);G&&Yn.stroke(Y,O.mlc||N.color)})}function m(A){var S=A[0].trace,D=Ua.select(this).select("g.legendpoints").selectAll("path.legendbox").data(S.visible&&U2.traceIs(S,"box-violin")?[A]:[]);D.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),D.exit().remove(),D.each(function(){var E=Ua.select(this);if((S.boxpoints==="all"||S.points==="all")&&Yn.opacity(S.fillcolor)===0&&Yn.opacity((S.line||{}).color)===0){var R=za.minExtend(S,{marker:{size:i?$A:za.constrain(S.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});D.call(An.pointStyle,R,t)}else{var N=u(void 0,S.line,Vu,fs);E.style("stroke-width",N+"px").call(Yn.fill,S.fillcolor),N&&Yn.stroke(E,S.line.color)}})}function b(A){var S=A[0].trace,D=Ua.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(S.visible&&S.type==="candlestick"?[A,A]:[]);D.enter().append("path").classed("legendcandle",!0).attr("d",function(E,R){return R?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(E,R){var N=Ua.select(this),I=S[R?"increasing":"decreasing"],H=u(void 0,I.line,Vu,fs);N.style("stroke-width",H+"px").call(Yn.fill,I.fillcolor),H&&Yn.stroke(N,I.line.color)})}function _(A){var S=A[0].trace,D=Ua.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(S.visible&&S.type==="ohlc"?[A,A]:[]);D.enter().append("path").classed("legendohlc",!0).attr("d",function(E,R){return R?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(E,R){var N=Ua.select(this),I=S[R?"increasing":"decreasing"],H=u(void 0,I.line,Vu,fs);N.style("fill","none").call(An.dashLine,I.line.dash,H),H&&Yn.stroke(N,I.line.color)})}function w(A){M(A,this,"pie")}function x(A){M(A,this,"funnelarea")}function M(A,S,D){var E=A[0],R=E.trace,N=D?R.visible&&R.type===D:U2.traceIs(R,D),I=Ua.select(S).select("g.legendpoints").selectAll("path.legend"+D).data(N?[A]:[]);if(I.enter().append("path").classed("legend"+D,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),I.exit().remove(),I.size()){var H=R.marker||{},U=u(Mee(H.line.width,E.pts),H.line,Vu,fs),X="pieLike",Y=za.minExtend(R,{marker:{line:{width:U}}},X),O=za.minExtend(E,{trace:Y},X);Tee(I,O,Y,t)}}function k(A){var S=A[0].trace,D,E=[];if(S.visible)switch(S.type){case"histogram2d":case"heatmap":E=[["M-15,-2V4H15V-2Z"]],D=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":E=[["M-6,-6V6H6V-6Z"]],D=!0;break;case"densitymapbox":case"densitymap":E=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],D="radial";break;case"cone":E=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],D=!1;break;case"streamtube":E=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],D=!1;break;case"surface":E=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],D=!0;break;case"mesh3d":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!1;break;case"volume":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!0;break;case"isosurface":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],D=!1;break}var R=Ua.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(E);R.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(N,I){var H=Ua.select(this),U=V2(S),X=U.colorscale,Y=U.reversescale,O=function(re){if(re.size()){var le="legendfill-"+S.uid;An.gradient(re,t,le,W2(Y,D==="radial"),X,"fill")}},G;if(X){if(!D){var $=X.length;G=I===0?X[Y?$-1:0][1]:I===1?X[Y?0:$-1][1]:X[Math.floor(($-1)/2)][1]}}else{var J=S.vertexcolor||S.facecolor||S.color;G=za.isArrayOrTypedArray(J)?J[I]||J[0]:J}H.attr("d",N[0]),G?H.call(Yn.fill,G):H.call(O)})}};function W2(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function QA(e){var r=e[0].trace,t=r.contours,a=Nd.hasLines(r),n=Nd.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",l=!1,o=!1;if(t){var s=t.coloring;s==="lines"?l=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(o=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:l,showGradientFill:o,anyLine:a||l,anyFill:i||o}}function jA(e,r,t){return e&&za.isArrayOrTypedArray(e)?r:e>t?t:e}});var K2=B((Wge,fk)=>{"use strict";var un=kr(),Xt=Pe(),J2=Pt(),Zu=yr(),rk=Pc(),Z2=mi(),Zt=Yr(),Id=xr(),cs=da(),tk=IA(),jt=Y2(),$2=Pa(),sk=$2.LINE_SPACING,Xu=$2.FROM_TL,ak=$2.FROM_BR,nk=YA(),qee=X2(),ik=Rd(),Wu=1,Cee=/^legend[0-9]*$/;fk.exports=function(r,t){if(t)lk(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=un.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(Cee)&&n.indexOf(c)===-1&&u.remove()});for(var l=0;l1)}var p=a.hiddenlabels||[];if(!o&&(!a.showlegend||!s.length))return l.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),J2.autoMargin(e,n);var y=Xt.ensureSingle(l,"g",n,function(S){o||S.attr("pointer-events","all")}),m=Xt.ensureSingleById(a._topdefs,"clipPath",i,function(S){S.append("rect")}),b=Xt.ensureSingle(y,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});b.call(Id.stroke,t.bordercolor).call(Id.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var _=Xt.ensureSingle(y,"g","scrollbox"),w=t.title;t._titleWidth=0,t._titleHeight=0;var x;w.text?(x=Xt.ensureSingle(_,"text",n+"titletext"),x.attr("text-anchor","start").call(Zt.font,w.font).text(w.text),Hd(x,_,e,t,Wu)):_.selectAll("."+n+"titletext").remove();var M=Xt.ensureSingle(y,"rect","scrollbar",function(S){S.attr(jt.scrollBarEnterAttrs).call(Id.fill,jt.scrollBarColor)}),k=_.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var A=k.selectAll("g.traces").data(Xt.identity);A.enter().append("g").attr("class","traces"),A.exit().remove(),A.style("opacity",function(S){var D=S[0].trace;return Zu.traceIs(D,"pie-like")?p.indexOf(S[0].label)!==-1?.5:1:D.visible==="legendonly"?.5:1}).each(function(){un.select(this).call(Lee,e,t)}).call(qee,e,t).each(function(){o||un.select(this).call(Dee,e,n)}),Xt.syncOrAsync([J2.previousPromises,function(){return Ree(e,k,A,t)},function(){var S=a._size,D=t.borderwidth,E=t.xref==="paper",R=t.yref==="paper";if(w.text&&See(x,t,D),!o){var N,I;E?N=S.l+S.w*t.x-Xu[Od(t)]*t._width:N=a.width*t.x-Xu[Od(t)]*t._width,R?I=S.t+S.h*(1-t.y)-Xu[Bd(t)]*t._effHeight:I=a.height*(1-t.y)-Xu[Bd(t)]*t._effHeight;var H=zee(e,n,N,I);if(H)return;if(a.margin.autoexpand){var U=N,X=I;N=E?Xt.constrain(N,0,a.width-t._width):U,I=R?Xt.constrain(I,0,a.height-t._effHeight):X,N!==U&&Xt.log("Constrain "+n+".x to make legend fit inside graph"),I!==X&&Xt.log("Constrain "+n+".y to make legend fit inside graph")}Zt.setTranslate(y,N,I)}if(M.on(".drag",null),y.on("wheel",null),o||t._height<=t._maxHeight||e._context.staticPlot){var Y=t._effHeight;o&&(Y=t._height),b.attr({width:t._width-D,height:Y-D,x:D/2,y:D/2}),Zt.setTranslate(_,0,0),m.select("rect").attr({width:t._width-2*D,height:Y-2*D,x:D,y:D}),Zt.setClipUrl(_,i,e),Zt.setRect(M,0,0,0,0),delete t._scrollY}else{var O=Math.max(jt.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),G=t._effHeight-O-2*jt.scrollBarMargin,J=t._height-t._effHeight,$=G/J,re=Math.min(t._scrollY||0,J);b.attr({width:t._width-2*D+jt.scrollBarWidth+jt.scrollBarMargin,height:t._effHeight-D,x:D/2,y:D/2}),m.select("rect").attr({width:t._width-2*D+jt.scrollBarWidth+jt.scrollBarMargin,height:t._effHeight-2*D,x:D,y:D+re}),Zt.setClipUrl(_,i,e),se(re,O,$),y.on("wheel",function(){re=Xt.constrain(t._scrollY+un.event.deltaY/G*J,0,J),se(re,O,$),re!==0&&re!==J&&un.event.preventDefault()});var le,fe,pe,Q=function(xe,ke,ge){var ze=(ge-ke)/$+xe;return Xt.constrain(ze,0,J)},qe=function(xe,ke,ge){var ze=(ke-ge)/$+xe;return Xt.constrain(ze,0,J)},ve=un.behavior.drag().on("dragstart",function(){var xe=un.event.sourceEvent;xe.type==="touchstart"?le=xe.changedTouches[0].clientY:le=xe.clientY,pe=re}).on("drag",function(){var xe=un.event.sourceEvent;xe.buttons===2||xe.ctrlKey||(xe.type==="touchmove"?fe=xe.changedTouches[0].clientY:fe=xe.clientY,re=Q(pe,le,fe),se(re,O,$))});M.call(ve);var be=un.behavior.drag().on("dragstart",function(){var xe=un.event.sourceEvent;xe.type==="touchstart"&&(le=xe.changedTouches[0].clientY,pe=re)}).on("drag",function(){var xe=un.event.sourceEvent;xe.type==="touchmove"&&(fe=xe.changedTouches[0].clientY,re=qe(pe,le,fe),se(re,O,$))});_.call(be)}function se(xe,ke,ge){t._scrollY=e._fullLayout[n]._scrollY=xe,Zt.setTranslate(_,0,-xe),Zt.setRect(M,t._width,jt.scrollBarMargin+xe*ge,jt.scrollBarWidth,ke),m.select("rect").attr("y",D+xe)}if(e._context.edits.legendPosition){var _e,V,te,W;y.classed("cursor-move",!0),Z2.init({element:y.node(),gd:e,prepFn:function(xe){if(xe.target!==M.node()){var ke=Zt.getTranslate(y);te=ke.x,W=ke.y}},moveFn:function(xe,ke){if(te!==void 0&&W!==void 0){var ge=te+xe,ze=W+ke;Zt.setTranslate(y,ge,ze),_e=Z2.align(ge,t._width,S.l,S.l+S.w,t.xanchor),V=Z2.align(ze+t._height,-t._height,S.t+S.h,S.t,t.yanchor)}},doneFn:function(){if(_e!==void 0&&V!==void 0){var xe={};xe[n+".x"]=_e,xe[n+".y"]=V,Zu.call("_guiRelayout",e,xe)}},clickFn:function(xe,ke){var ge=l.selectAll("g.traces").filter(function(){var ze=this.getBoundingClientRect();return ke.clientX>=ze.left&&ke.clientX<=ze.right&&ke.clientY>=ze.top&&ke.clientY<=ze.bottom});ge.size()>0&&uk(e,y,ge,xe,ke)}})}}],e)}}function Fd(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,l=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*l:t+(l||n)}function uk(e,r,t,a,n){var i=t.data()[0][0].trace,l={event:n,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(l.group=i._group),Zu.traceIs(i,"pie-like")&&(l.label=t.datum()[0].label);var o=rk.triggerHandler(e,"plotly_legendclick",l);if(a===1){if(o===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&tk(t,e,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var s=rk.triggerHandler(e,"plotly_legenddoubleclick",l);s!==!1&&o!==!1&&tk(t,e,a)}}function Lee(e,r,t){var a=Yd(t),n=e.data()[0][0],i=n.trace,l=Zu.traceIs(i,"pie-like"),o=!t._inHover&&r._context.edits.legendText&&!l,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=l?n.label:i.name,i._meta&&(u=Xt.templateString(u,i._meta))));var c=Xt.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(Zt.font,f).text(o?ok(u,s):u);var h=t.indentation+t.itemwidth+jt.itemGap*2;cs.positionText(c,h,0),o?c.call(cs.makeEditable,{gd:r,text:u}).call(Hd,e,r,t).on("edit",function(d){this.text(ok(d,s)).call(Hd,e,r,t);var p=n.trace._fullInput||{},y={};return y.name=d,p._isShape?Zu.call("_guiRelayout",r,"shapes["+i.index+"].name",y.name):Zu.call("_guiRestyle",r,y,i.index)}):Hd(c,e,r,t)}function ok(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function Dee(e,r,t){var a=r._context.doubleClickDelay,n,i=1,l=Xt.ensureSingle(e,"rect",t+"toggle",function(o){r._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call(Id.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(l.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),uk(r,o,e,i,un.event)}}))}function Hd(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),cs.convertToTspans(e,t,function(){Eee(r,t,a,n)})}function Eee(e,r,t,a){var n=e.data()[0][0];if(!t._inHover&&n&&!n.trace.showlegend){e.remove();return}var i=e.select("g[class*=math-group]"),l=i.node(),o=Yd(t);t||(t=r._fullLayout[o]);var s=t.borderwidth,u;a===Wu?u=t.title.font:n.groupTitle?u=n.groupTitle.font:u=t.font;var f=u.size*sk,c,h;if(l){var d=Zt.bBox(l);c=d.height,h=d.width,a===Wu?Zt.setTranslate(i,s,s+c*.75):Zt.setTranslate(i,0,c*.25)}else{var p="."+o+(a===Wu?"title":"")+"text",y=e.select(p),m=cs.lineCount(y),b=y.node();if(c=f*m,h=b?Zt.bBox(b).width:0,a===Wu)t.title.side==="left"&&(h+=jt.itemGap*2),cs.positionText(y,s+jt.titlePad,s+f);else{var _=jt.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(_=jt.itemGap,h-=t.indentation+t.itemwidth),cs.positionText(y,_,-f*((m-1)/2-.3))}}a===Wu?(t._titleWidth=h,t._titleHeight=c):(n.lineHeight=f,n.height=Math.max(c,16)+3,n.width=h)}function Pee(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function Ree(e,r,t,a){var n=e._fullLayout,i=Yd(a);a||(a=n[i]);var l=n._size,o=ik.isVertical(a),s=ik.isGrouped(a),u=a.entrywidthmode==="fraction",f=a.borderwidth,c=2*f,h=jt.itemGap,d=a.indentation+a.itemwidth+h*2,p=2*(f+h),y=Bd(a),m=a.y<0||a.y===0&&y==="top",b=a.y>1||a.y===1&&y==="bottom",_=a.tracegroupgap,w={},{maxheight:x,orientation:M,yref:k}=a,A=M==="v"&&k==="paper"?l.h:n.height;a._maxHeight=Math.max(x>1?x:x*A,30);var S=0;a._width=0,a._height=0;var D=Pee(a);if(o)t.each(function(be){var se=be[0].height;Zt.setTranslate(this,f+D[0],f+D[1]+a._height+se/2+h),a._height+=se,a._width=Math.max(a._width,be[0].width)}),S=d+a._width,a._width+=h+d+c,a._height+=p,s&&(r.each(function(be,se){Zt.setTranslate(this,0,se*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var E=Od(a),R=a.x<0||a.x===0&&E==="right",N=a.x>1||a.x===1&&E==="left",I=b||m,H=n.width/2;a._maxWidth=Math.max(R?I&&E==="left"?l.l+l.w:H:N?I&&E==="right"?l.r+l.w:H:l.w,2*d);var U=0,X=0;t.each(function(be){var se=Fd(be,a,d);U=Math.max(U,se),X+=se}),S=null;var Y=0;if(s){var O=0,G=0,J=0;r.each(function(){var be=0,se=0;un.select(this).selectAll("g.traces").each(function(V){var te=Fd(V,a,d),W=V[0].height;Zt.setTranslate(this,D[0],D[1]+f+h+W/2+se),se+=W,be=Math.max(be,te),w[V[0].trace.legendgroup]=be});var _e=be+h;G>0&&_e+f+G>a._maxWidth?(Y=Math.max(Y,G),G=0,J+=O+_,O=se):O=Math.max(O,se),Zt.setTranslate(this,G,J),G+=_e}),a._width=Math.max(Y,G)+f,a._height=J+O+p}else{var $=t.size(),re=X+c+($-1)*h=a._maxWidth&&(Y=Math.max(Y,Q),fe=0,pe+=le,a._height+=le,le=0),Zt.setTranslate(this,D[0]+f+fe,D[1]+f+pe+se/2+h),Q=fe+_e+h,fe+=V,le=Math.max(le,se)}),re?(a._width=fe+c,a._height=le+p):(a._width=Math.max(Y,Q)+c,a._height+=le+p)}}a._width=Math.ceil(Math.max(a._width+D[0],a._titleWidth+2*(f+jt.titlePad))),a._height=Math.ceil(Math.max(a._height+D[1],a._titleHeight+2*(f+jt.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var qe=e._context.edits,ve=qe.legendText||qe.legendPosition;t.each(function(be){var se=un.select(this).select("."+i+"toggle"),_e=be[0].height,V=be[0].trace.legendgroup,te=Fd(be,a,d);s&&V!==""&&(te=w[V]);var W=ve?d:S||te;!o&&!u&&(W+=h/2),Zt.setRect(se,0,-_e/2,W,_e)})}function zee(e,r,t,a){var n=e._fullLayout,i=n[r],l=Od(i),o=Bd(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",h={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return J2.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*Xu[l],r:i._width*ak[l],b:i._effHeight*ak[o],t:i._effHeight*Xu[o]});s?e._fullLayout._reservedMargin[r][f]=h[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=h[c]:e._fullLayout._reservedMargin[r][f]=h[f]}function Od(e){return Xt.isRightAnchor(e)?"right":Xt.isCenterAnchor(e)?"center":"left"}function Bd(e){return Xt.isBottomAnchor(e)?"bottom":Xt.isMiddleAnchor(e)?"middle":"top"}function Yd(e){return e._id||"legend"}});var r3=B(e3=>{"use strict";var vs=kr(),hl=zr(),ck=Rn(),Ct=Pe(),Nee=Ct.pushUnique,Q2=Ct.strTranslate,Fee=Ct.strRotate,Iee=Pc(),Gn=da(),Hee=RA(),Ui=Yr(),la=xr(),Gd=mi(),Vi=Jr(),Oee=Aa().zindexSeparator,$u=yr(),yi=Hi(),hs=xc(),Bee=H2(),Yee=K2(),xk=hs.YANGLE,j2=Math.PI*xk/180,Gee=1/Math.sin(j2),Uee=Math.cos(j2),Vee=Math.sin(j2),xt=hs.HOVERARROWSIZE,Or=hs.HOVERTEXTPAD,vk={box:!0,ohlc:!0,violin:!0,candlestick:!0},Wee={scatter:!0,scattergl:!0,splom:!0};function hk(e,r){return e.distance-r.distance}e3.hover=function(r,t,a,n){r=Ct.getGraphDiv(r);var i=t.target;Ct.throttle(r._fullLayout._uid+hs.HOVERID,hs.HOVERMINTIME,function(){Xee(r,t,a,n,i)})};e3.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=Mk(n),l=Ak(n),o=r.map(function(m){var b=m._x0||m.x0||m.x||0,_=m._x1||m.x1||m.x||0,w=m._y0||m.y0||m.y||0,x=m._y1||m.y1||m.y||0,M=m.eventData;if(M){var k=Math.min(b,_),A=Math.max(b,_),S=Math.min(w,x),D=Math.max(w,x),E=m.trace;if($u.traceIs(E,"gl3d")){var R=n._fullLayout[E.scene]._scene.container,N=R.offsetLeft,I=R.offsetTop;k+=N,A+=N,S+=I,D+=I}M.bbox={x0:k+l,x1:A+l,y0:S+i,y1:D+i},t.inOut_bbox&&t.inOut_bbox.push(M.bbox)}else M=!1;return{color:m.color||la.defaultLine,x0:m.x0||m.x||0,x1:m.x1||m.x||0,y0:m.y0||m.y||0,y1:m.y1||m.y||0,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:m.text,name:m.name,idealAlign:m.idealAlign,borderColor:m.borderColor,fontFamily:m.fontFamily,fontSize:m.fontSize,fontColor:m.fontColor,fontWeight:m.fontWeight,fontStyle:m.fontStyle,fontVariant:m.fontVariant,nameLength:m.nameLength,textAlign:m.textAlign,trace:m.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:m.hovertemplate||!1,hovertemplateLabels:m.hovertemplateLabels||!1,eventData:M}}),s=!1,u=_k(o,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||la.background,container:vs.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,c=5,h=0,d=0;f.sort(function(m,b){return m.y0-b.y0}).each(function(m,b){var _=m.y0-m.by/2;_-cA[0]._length||W<0||W>S[0]._length)return Gd.unhoverRaw(e,r)}if(r.pointerX=te+A[0]._offset,r.pointerY=W+S[0]._offset,"xval"in r?X=yi.flat(i,r.xval):X=yi.p2c(A,te),"yval"in r?Y=yi.flat(i,r.yval):Y=yi.p2c(S,W),!hl(X[0])||!hl(Y[0]))return Ct.warn("Fx.hover failed",r,e),Gd.unhoverRaw(e,r)}var ge=1/0;function ze(gr,ft){for(G=0;Gve&&(H.splice(0,ve),ge=H[0].distance),c&&I!==0&&H.length===0){qe.distance=I,qe.index=!1;var Tt=$._module.hoverPoints(qe,pe,Q,"closest",{hoverLayer:o._hoverlayer});if(Tt&&(Tt=Tt.filter(function(lt){return lt.spikeDistance<=I})),Tt&&Tt.length){var Ha,ca=Tt.filter(function(lt){return lt.xa.showspikes&<.xa.spikesnap!=="hovered data"});if(ca.length){var ai=ca[0];hl(ai.x0)&&hl(ai.y0)&&(Ha=Ee(ai),(!be.vLinePoint||be.vLinePoint.spikeDistance>Ha.spikeDistance)&&(be.vLinePoint=Ha))}var ni=Tt.filter(function(lt){return lt.ya.showspikes&<.ya.spikesnap!=="hovered data"});if(ni.length){var ta=ni[0];hl(ta.x0)&&hl(ta.y0)&&(Ha=Ee(ta),(!be.hLinePoint||be.hLinePoint.spikeDistance>Ha.spikeDistance)&&(be.hLinePoint=Ha))}}}}}ze();function Fe(gr,ft,Wr){for(var wt=null,Et=1/0,ct,Tt=0;Tt0&&Math.abs(gr.distance)Ce-1;$e--)vr(H[$e]);H=Ue,De()}var Re=e._hoverdata,ne=[],ce=Mk(e),Le=Ak(e);for(O=0;O1||H.length>1)||h==="closest"&&se&&H.length>1,ga=la.combine(o.plot_bgcolor||la.background,o.paper_bgcolor),xa=_k(H,{gd:e,hovermode:h,rotateLabels:Dt,bgColor:ga,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),Gt=xa.hoverLabels;if(yi.isUnifiedHover(h)||(Jee(Gt,Dt,o,xa.commonLabelBoundingBox),Tk(Gt,Dt,o._invScaleX,o._invScaleY)),n&&n.tagName){var $a=$u.getComponentMethod("annotations","hasClickToShow")(e,ne);Hee(vs.select(n),$a?"pointer":"")}!n||a||!Qee(e,r,Re)||(Re&&e.emit("plotly_unhover",{event:r,points:Re}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:A,yaxes:S,xvals:X,yvals:Y}))}function bk(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Zee=/([\s\S]*)<\/extra>/;function _k(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,l=r.bgColor,o=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||hs.HOVERFONT,c=r.fontSize||hs.HOVERFONTSIZE,h=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,p=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,m=r.fontLineposition||a.font.lineposition,b=r.fontShadow||a.font.shadow,_=e[0],w=_.xa,x=_.ya,M=n.charAt(0),k=M+"Label",A=_[k];if(A===void 0&&w.type==="multicategory")for(var S=0;Sa.width-Le&&(Se=a.width-Le),Ce.attr("d","M"+(Re-Se)+",0L"+(Re-Se+xt)+","+ce+xt+"H"+Le+"v"+ce+(Or*2+$e.height)+"H"+-Le+"V"+ce+xt+"H"+(Re-Se-xt)+"Z"),Re=Se,G.minX=Re-Le,G.maxX=Re+Le,w.side==="top"?(G.minY=ne-(Or*2+$e.height),G.maxY=ne-Or):(G.minY=ne+Or,G.maxY=ne+(Or*2+$e.height))}else{var or,lr,ar;x.side==="right"?(or="start",lr=1,ar="",Re=w._offset+w._length):(or="end",lr=-1,ar="-",Re=w._offset),ne=x._offset+(_.y0+_.y1)/2,Ie.attr("text-anchor",or),Ce.attr("d","M0,0L"+ar+xt+","+xt+"V"+(Or+$e.height/2)+"h"+ar+(Or*2+$e.width)+"V-"+(Or+$e.height/2)+"H"+ar+xt+"V-"+xt+"Z"),G.minY=ne-(Or+$e.height/2),G.maxY=ne+(Or+$e.height/2),x.side==="right"?(G.minX=Re+xt,G.maxX=Re+xt+(Or*2+$e.width)):(G.minX=Re-xt-(Or*2+$e.width),G.maxX=Re-xt);var Ar=$e.height/2,Br=E-$e.top-Ar,tt="clip"+a._uid+"commonlabel"+x._id,jr;if(Re<$e.width+2*Or+xt){jr="M-"+(xt+Or)+"-"+Ar+"h-"+($e.width-Or)+"V"+Ar+"h"+($e.width-Or)+"Z";var ra=$e.width-Re+Or;Gn.positionText(Ie,ra,Br),or==="end"&&Ie.selectAll("tspan").each(function(){var _t=vs.select(this),Dt=Ui.tester.append("text").text(_t.text()).call(Ui.font,vr),ga=Ju(t,Dt.node());Math.round(ga.width)=0?Ze=He:Oe+ge=0?Ze=Oe:ie+ge=0?cr=Ge:De+ze=0?cr=De:Ae+ze=0,(oe.idealAlign==="top"||!_t)&&Dt?(ar-=Br/2,oe.anchor="end"):_t?(ar+=Br/2,oe.anchor="start"):oe.anchor="middle",oe.crossPos=ar;else{if(oe.pos=ar,_t=lr+Ar/2+It<=R,Dt=lr-Ar/2-It>=0,(oe.idealAlign==="left"||!_t)&&Dt)lr-=Ar/2,oe.anchor="end";else if(_t)lr+=Ar/2,oe.anchor="start";else{oe.anchor="middle";var ga=It/2,xa=lr+ga-R,Gt=lr-ga;xa>0&&(lr-=xa),Gt<0&&(lr+=-Gt)}oe.crossPos=lr}ne.attr("text-anchor",oe.anchor),Le&&ce.attr("text-anchor",oe.anchor),Ce.attr("transform",Q2(lr,ar)+(i?Fee(xk):""))}),{hoverLabels:fr,commonLabelBoundingBox:G}}function dk(e,r,t,a,n,i){var l="",o="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Ct.templateString(e.name,e.trace._meta)),l=yk(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(o+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(o+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(o+=(o?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?o=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(o=e.yLabel):e.yLabel===void 0?o=e.xLabel:o="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(o+=(o?"
":"")+e.text),e.extraText!==void 0&&(o+=(o?"
":"")+e.extraText),i&&o===""&&!e.hovertemplate&&(l===""&&i.remove(),o=l);var f=e.hovertemplate||!1;if(f){var c=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(c[s+"other"]=c[s+"Val"],c[s+"otherLabel"]=c[s+"Label"]),o=Ct.hovertemplateString(f,c,a._d3locale,e.eventData[0]||{},e.trace._meta),o=o.replace(Zee,function(h,d){return l=yk(d,e.nameLength),""})}return[o,l]}function Jee(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",l=0,o=1,s=e.size(),u=new Array(s),f=0,c=a.minX,h=a.maxX,d=a.minY,p=a.maxY,y=function(X){return X*t._invScaleX},m=function(X){return X*t._invScaleY};e.each(function(X){var Y=X[n],O=X[i],G=Y._id.charAt(0)==="x",J=Y.range;f===0&&J&&J[0]>J[1]!==G&&(o=-1);var $=0,re=G?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var le=wk(X,r),fe=X.anchor,pe=fe==="end"?-1:1,Q,qe;if(fe==="middle")Q=X.crossPos+(G?m(le.y-X.by/2):y(X.bx/2+X.tx2width/2)),qe=Q+(G?m(X.by):y(X.bx));else if(G)Q=X.crossPos+m(xt+le.y)-m(X.by/2-xt),qe=Q+m(X.by);else{var ve=y(pe*xt+le.x),be=ve+y(pe*X.bx);Q=X.crossPos+Math.min(ve,be),qe=X.crossPos+Math.max(ve,be)}G?d!==void 0&&p!==void 0&&Math.min(qe,p)-Math.max(Q,d)>1&&(O.side==="left"?($=O._mainLinePosition,re=t.width):re=O._mainLinePosition):c!==void 0&&h!==void 0&&Math.min(qe,h)-Math.max(Q,c)>1&&(O.side==="top"?($=O._mainLinePosition,re=t.height):re=O._mainLinePosition)}u[f++]=[{datum:X,traceIndex:X.trace.index,dp:0,pos:X.pos,posref:X.posref,size:X.by*(G?Gee:1)/2,pmin:$,pmax:re}]}),u.sort(function(X,Y){return X[0].posref-Y[0].posref||o*(Y[0].traceIndex-X[0].traceIndex)});var b,_,w,x,M,k,A;function S(X){var Y=X[0],O=X[X.length-1];if(_=Y.pmin-Y.pos-Y.dp+Y.size,w=O.pos+O.dp+O.size-Y.pmax,_>.01){for(M=X.length-1;M>=0;M--)X[M].dp+=_;b=!1}if(!(w<.01)){if(_<-.01){for(M=X.length-1;M>=0;M--)X[M].dp-=w;b=!1}if(b){var G=0;for(x=0;xY.pmax&&G++;for(x=X.length-1;x>=0&&!(G<=0);x--)k=X[x],k.pos>Y.pmax-1&&(k.del=!0,G--);for(x=0;x=0;M--)X[M].dp-=w;for(x=X.length-1;x>=0&&!(G<=0);x--)k=X[x],k.pos+k.dp+k.size>Y.pmax&&(k.del=!0,G--)}}}for(;!b&&l<=s;){for(l++,b=!0,x=0;x.01){for(M=E.length-1;M>=0;M--)E[M].dp+=_;for(D.push.apply(D,E),u.splice(x+1,1),A=0,M=D.length-1;M>=0;M--)A+=D[M].dp;for(w=A/D.length,M=D.length-1;M>=0;M--)D[M].dp-=w;b=!1}else x++}u.forEach(S)}for(x=u.length-1;x>=0;x--){var I=u[x];for(M=I.length-1;M>=0;M--){var H=I[M],U=H.datum;U.offset=H.dp,U.del=H.del}}}function wk(e,r){var t=0,a=e.offset;return r&&(a*=-Vee,t=e.offset*Uee),{x:t,y:a}}function $ee(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(xt+Or),a=t+r*(e.txwidth+Or),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Or),{alignShift:r,textShiftX:t,text2ShiftX:a}}function Tk(e,r,t,a){var n=function(l){return l*t},i=function(l){return l*a};e.each(function(l){var o=vs.select(this);if(l.del)return o.remove();var s=o.select("text.nums"),u=l.anchor,f=u==="end"?-1:1,c=$ee(l),h=wk(l,r),d=h.x,p=h.y,y=u==="middle",m="hoverlabel"in l.trace?l.trace.hoverlabel.showarrow:!0,b;y?b="M-"+n(l.bx/2+l.tx2width/2)+","+i(p-l.by/2)+"h"+n(l.bx)+"v"+i(l.by)+"h-"+n(l.bx)+"Z":m?b="M0,0L"+n(f*xt+d)+","+i(xt+p)+"v"+i(l.by/2-xt)+"h"+n(f*l.bx)+"v-"+i(l.by)+"H"+n(f*xt+d)+"V"+i(p-xt)+"Z":b="M"+n(f*xt+d)+","+i(p-l.by/2)+"h"+n(f*l.bx)+"v"+i(l.by)+"h"+n(-f*l.bx)+"Z",o.select("path").attr("d",b);var _=d+c.textShiftX,w=p+l.ty0-l.by/2+Or,x=l.textAlign||"auto";x!=="auto"&&(x==="left"&&u!=="start"?(s.attr("text-anchor","start"),_=y?-l.bx/2-l.tx2width/2+Or:-l.bx-Or):x==="right"&&u!=="end"&&(s.attr("text-anchor","end"),_=y?l.bx/2-l.tx2width/2-Or:l.bx+Or)),s.call(Gn.positionText,n(_),i(w)),l.tx2width&&(o.select("text.name").call(Gn.positionText,n(c.text2ShiftX+c.alignShift*Or+d),i(p+l.ty0-l.by/2+Or)),o.select("rect").call(Ui.setRect,n(c.text2ShiftX+(c.alignShift-1)*l.tx2width/2+d),i(p-l.by/2-1),n(l.tx2width),i(l.by+2)))})}function Kee(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function l(h){return h||hl(h)&&h===0}var o=Array.isArray(t)?function(h,d){var p=Ct.castOption(n,t,h);return l(p)?p:Ct.extractOption({},a,"",d)}:function(h,d){return Ct.extractOption(i,a,h,d)};function s(h,d,p){var y=o(d,p);l(y)&&(e[h]=y)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Ct.constrain(e.x0,0,e.xa._length),e.x1=Ct.constrain(e.x1,0,e.xa._length),e.y0=Ct.constrain(e.y0,0,e.ya._length),e.y1=Ct.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Vi.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Vi.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=Vi.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Vi.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Vi.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Vi.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function pk(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,l=t.event,o=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||o)){var c=la.combine(n.plot_bgcolor,n.paper_bgcolor);if(o){var h=r.hLinePoint,d,p;u=h&&h.xa,f=h&&h.ya;var y=f.spikesnap;y==="cursor"?(d=l.pointerX,p=l.pointerY):(d=u._offset+h.x,p=f._offset+h.y);var m=ck.readability(h.color,c)<1.5?la.contrast(c):h.color,b=f.spikemode,_=f.spikethickness,w=f.spikecolor||m,x=Vi.getPxPosition(e,f),M,k;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(M=x,k=d),b.indexOf("across")!==-1){var A=f._counterDomainMin,S=f._counterDomainMax;f.anchor==="free"&&(A=Math.min(A,f.position),S=Math.max(S,f.position)),M=i.l+A*i.w,k=i.l+S*i.w}a.insert("line",":first-child").attr({x1:M,x2:k,y1:p,y2:p,"stroke-width":_,stroke:w,"stroke-dasharray":Ui.dashStyle(f.spikedash,_)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:M,x2:k,y1:p,y2:p,"stroke-width":_+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:x+(f.side!=="right"?_:-_),cy:p,r:_,fill:w}).classed("spikeline",!0)}if(s){var D=r.vLinePoint,E,R;u=D&&D.xa,f=D&&D.ya;var N=u.spikesnap;N==="cursor"?(E=l.pointerX,R=l.pointerY):(E=u._offset+D.x,R=f._offset+D.y);var I=ck.readability(D.color,c)<1.5?la.contrast(c):D.color,H=u.spikemode,U=u.spikethickness,X=u.spikecolor||I,Y=Vi.getPxPosition(e,u),O,G;if(H.indexOf("toaxis")!==-1||H.indexOf("across")!==-1){if(H.indexOf("toaxis")!==-1&&(O=Y,G=R),H.indexOf("across")!==-1){var J=u._counterDomainMin,$=u._counterDomainMax;u.anchor==="free"&&(J=Math.min(J,u.position),$=Math.max($,u.position)),O=i.t+(1-$)*i.h,G=i.t+(1-J)*i.h}a.insert("line",":first-child").attr({x1:E,x2:E,y1:O,y2:G,"stroke-width":U,stroke:X,"stroke-dasharray":Ui.dashStyle(u.spikedash,U)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:E,x2:E,y1:O,y2:G,"stroke-width":U+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}H.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:E,cy:Y-(u.side!=="top"?U:-U),r:U,fill:X}).classed("spikeline",!0)}}}function Qee(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers))return!0}return!1}function mk(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function yk(e,r){return Gn.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function jee(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;l{"use strict";var ere=Pe(),rre=xr(),tre=Hi().isUnifiedHover;kk.exports=function(r,t,a,n){n=n||{};var i=t.legend;function l(o){n.font[o]||(n.font[o]=i?t.legend.font[o]:t.font[o])}t&&tre(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=rre.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),ere.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var Ck=B((Jge,qk)=>{"use strict";var are=Pe(),nre=Ud(),ire=du();qk.exports=function(r,t){function a(n,i){return are.coerce(r,t,ire,n,i)}nre(r,t,a)}});var Dk=B(($ge,Lk)=>{"use strict";var Sk=Pe(),lre=wc(),ore=Ud();Lk.exports=function(r,t,a,n){function i(o,s){return Sk.coerce(r,t,lre,o,s)}var l=Sk.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),ore(r,t,i,l)}});var t3=B((Kge,Ek)=>{"use strict";var sre=Pe(),ure=du();Ek.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:sre.coerce(r,t,ure,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var zk=B((Qge,Rk)=>{"use strict";var Pk=Pe(),fre=du(),cre=t3(),vre=Ud();Rk.exports=function(r,t){function a(f,c){return Pk.coerce(r,t,fre,f,c)}var n=cre(r,t);n&&(a("hoverdistance"),a("spikedistance"));var i=a("dragmode");i==="select"&&a("selectdirection");var l=t._has("mapbox"),o=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((l||o||s)&&u===1||(l||o)&&s&&u===2)&&(t.dragmode="pan"),vre(r,t,a),Pk.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var Ik=B((jge,Fk)=>{"use strict";var a3=Pe(),Nk=yr();Fk.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return a3.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var dre=yr(),pre=r3().hover;Hk.exports=function(r,t,a){var n=dre.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&pre(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var gi=B((r2e,Gk)=>{"use strict";var mre=kr(),Vd=Pe(),yre=mi(),ev=Hi(),Bk=du(),Yk=r3();Gk.exports={moduleType:"component",name:"fx",constants:xc(),schema:{layout:Bk},attributes:wc(),layoutAttributes:Bk,supplyLayoutGlobalDefaults:Ck(),supplyDefaults:Dk(),supplyLayoutDefaults:zk(),calc:Ik(),getDistanceFunction:ev.getDistanceFunction,getClosest:ev.getClosest,inbox:ev.inbox,quadrature:ev.quadrature,appendArrayPointValue:ev.appendArrayPointValue,castHoverOption:xre,castHoverinfo:bre,hover:Yk.hover,unhover:yre.unhover,loneHover:Yk.loneHover,loneUnhover:gre,click:Ok()};function gre(e){var r=Vd.isD3Selection(e)?e:mre.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function xre(e,r,t){return Vd.castOption(e,r,"hoverlabel."+t)}function bre(e,r,t){function a(n){return Vd.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return Vd.castOption(e,t,"hoverinfo",a)}});var Ku=B(dl=>{"use strict";dl.selectMode=function(e){return e==="lasso"||e==="select"};dl.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};dl.openMode=function(e){return e==="drawline"||e==="drawopenpath"};dl.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};dl.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};dl.selectingOrDrawing=function(e){return dl.freeMode(e)||dl.rectMode(e)}});var Wd=B((a2e,Uk)=>{"use strict";Uk.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var Xd=B((n2e,Vk)=>{"use strict";Vk.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var Jd=B((i2e,Wk)=>{"use strict";var Zd=32;Wk.exports={CIRCLE_SIDES:Zd,i000:0,i090:Zd/4,i180:Zd/2,i270:Zd/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var $d=B((l2e,Zk)=>{"use strict";var _re=Pe().strTranslate;function Xk(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function wre(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function Tre(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return Xk(e,t[r])}}function Mre(e){return _re(e.xaxis._offset,e.yaxis._offset)}Zk.exports={p2r:Xk,r2p:wre,axValue:Tre,getTransform:Mre}});var Ql=B(pl=>{"use strict";var Are=Wg(),Kk=Jd(),Qu=Kk.CIRCLE_SIDES,n3=Kk.SQRT2,Qk=$d(),Jk=Qk.p2r,$k=Qk.r2p,kre=[0,3,4,5,6,1,2],qre=[0,3,4,1,2];pl.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var jk=Ut(),nq=Ku(),Cre=nq.drawMode,Sre=nq.openMode,ju=Jd(),eq=ju.i000,rq=ju.i090,tq=ju.i180,aq=ju.i270,Lre=ju.cos45,Dre=ju.sin45,iq=$d(),Qd=iq.p2r,jl=iq.r2p,Ere=Ul(),Pre=Ere.clearOutline,jd=Ql(),Rre=jd.readPaths,zre=jd.writePaths,Nre=jd.ellipseOver,Fre=jd.fixDatesForPaths;function Ire(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,l=(a.layout||{}).shapes||[];if(!Cre(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o{"use strict";var Hre=Ku(),Ore=Hre.selectMode,Bre=Ul(),Yre=Bre.clearOutline,i3=Ql(),Gre=i3.readPaths,Ure=i3.writePaths,Vre=i3.fixDatesForPaths;sq.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,l=i._fullLayout.newselection,o=t.plotinfo,s=o.xaxis,u=o.yaxis,f=t.isActiveSelection,c=t.dragmode,h=(i.layout||{}).selections||[];if(!Ore(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";uq.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var eo=B(pa=>{"use strict";var ds=tv(),fq=Pe(),r1=Jr();pa.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};pa.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};pa.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};pa.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};pa.extractPathCoords=function(e,r,t){var a=[],n=e.match(ds.segmentRE);return n.forEach(function(i){var l=r[i.charAt(0)].drawn;if(l!==void 0){var o=i.substr(1).match(ds.paramRE);if(!(!o||o.lengthd&&(y="X"),y});return u>d&&(p=p.replace(/[\s,]*X.*/,""),fq.log("Ignoring extra params in segment "+s)),f+p})}function av(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var s3=B((v2e,dq)=>{"use strict";var Xre=Pe(),ef=Jr(),cq=da(),vq=Yr(),Zre=Ql().readPaths,o3=eo(),Jre=o3.getPathString,hq=bh(),$re=Pa().FROM_TL;dq.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var l={};if(a.type!=="path"){var o=ef.getFromId(r,a.xref),s=ef.getFromId(r,a.yref);for(var u in hq){var f=hq[u](a,o,s);f!==void 0&&(l[u]=f)}}i=Xre.texttemplateStringForShapes(a.label.texttemplate,{},r._fullLayout._d3locale,l)}else i=a.label.text;var c={"data-index":t},h=a.label.font,d={"data-notex":1},p=n.append("g").attr(c).classed("shape-label",!0),y=p.append("text").attr(d).classed("shape-label-text",!0).text(i),m,b,_,w;if(a.path){var x=Jre(r,a),M=Zre(x,r);m=1/0,_=1/0,b=-1/0,w=-1/0;for(var k=0;k=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function Qre(e,r,t,a,n,i,l){var o=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,h=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,y=n.label.yanchor,m,b,_,w;if(f==="line"){o==="start"?(m=e,b=r):o==="end"?(m=t,b=a):(m=(e+t)/2,b=(r+a)/2),p==="auto"&&(o==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var jre=Pe(),ete=jre.strTranslate,pq=mi(),gq=Ku(),rte=gq.drawMode,xq=gq.selectMode,bq=yr(),mq=xr(),a1=Jd(),tte=a1.i000,ate=a1.i090,nte=a1.i180,ite=a1.i270,lte=Ul(),_q=lte.clearOutlineControllers,f3=Ql(),t1=f3.pointsOnRectangle,u3=f3.pointsOnEllipse,ote=f3.writePaths,ste=e1().newShapes,ute=e1().createShapeObj,fte=l3(),cte=s3();wq.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function l(){e(r,t,a,n++),(u3(r[0])||a.hasText)&&o({redrawing:!0})}function o(Y){var O={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,O=ste(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,O=fte(t,a),i._fullLayout._reselect=!0),Object.keys(O).length&&bq.call((Y||{}).redrawing?"relayout":"_guiRelayout",i,O)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=rte(f),h=xq(f);(c||h)&&(i._fullLayout._outlining=!0),_q(i),t.attr("d",ote(r));var d,p,y,m,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=vte([],r);var _=u.append("g").attr("class","outline-controllers");E(_),X()}if(c&&a.hasText){var w=u.select(".label-temp"),x=ute(t,a,a.dragmode);cte(i,"label-temp",x,w)}function M(Y){y=+Y.srcElement.getAttribute("data-i"),m=+Y.srcElement.getAttribute("data-j"),d[y][m].moveFn=k}function k(Y,O){if(r.length){var G=b[y][m][1],J=b[y][m][2],$=r[y],re=$.length;if(t1($)){var le=Y,fe=O;if(a.isActiveSelection){var pe=yq($,m);pe[1]===$[m][1]?fe=0:le=0}for(var Q=0;Q1&&!(Y.length===2&&Y[1][0]==="Z")&&(m===0&&(Y[0][0]="M"),r[y]=Y,l(),o())}}function D(Y,O){if(Y===2){y=+O.srcElement.getAttribute("data-i"),m=+O.srcElement.getAttribute("data-j");var G=r[y];!t1(G)&&!u3(G)&&S()}}function E(Y){d=[];for(var O=0;O{"use strict";var dte=kr(),Cq=yr(),Tq=Pe(),rf=Jr(),pte=Ql().readPaths,mte=n1(),l1=s3(),Sq=Ul().clearOutlineControllers,c3=xr(),h3=Yr(),yte=ot().arrayEditor,Mq=mi(),Aq=Kl(),ps=tv(),fn=eo(),v3=fn.getPathString;Eq.exports={draw:d3,drawOne:Lq,eraseActiveShape:bte,drawLabel:l1};function d3(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;nl&&Ve>o&&!Fe.shiftKey?Mq.getCursor(Ge/Ne,1-De/Ve):"move";Aq(r,He),qe=He.split("-")[0]}}function _e(Fe){i1(e)||(s&&(b=$(t.xanchor)),u&&(_=re(t.yanchor)),t.type==="path"?R=t.path:(d=s?t.x0:$(t.x0),p=u?t.y0:re(t.y0),y=s?t.x1:$(t.x1),m=u?t.y1:re(t.y1)),dm?(w=p,A="y0",x=m,S="y1"):(w=m,A="y1",x=p,S="y0"),se(Fe),ke(n,t),ze(r,t,e),Q.moveFn=qe==="move"?W:xe,Q.altKey=Fe.altKey)}function V(){i1(e)||(Aq(r),ge(n),Dq(r,e,t),Cq.call("_guiRelayout",e,i.getUpdateObj()))}function te(){i1(e)||ge(n)}function W(Fe,Ee){if(t.type==="path"){var Ne=function(De){return De},Ve=Ne,Ge=Ne;s?h("xanchor",t.xanchor=le(b+Fe)):(Ve=function(He){return le($(He)+Fe)},I&&I.type==="date"&&(Ve=fn.encodeDate(Ve))),u?h("yanchor",t.yanchor=fe(_+Ee)):(Ge=function(He){return fe(re(He)+Ee)},U&&U.type==="date"&&(Ge=fn.encodeDate(Ge))),h("path",t.path=kq(R,Ve,Ge))}else s?h("xanchor",t.xanchor=le(b+Fe)):(h("x0",t.x0=le(d+Fe)),h("x1",t.x1=le(y+Fe))),u?h("yanchor",t.yanchor=fe(_+Ee)):(h("y0",t.y0=fe(p+Ee)),h("y1",t.y1=fe(m+Ee)));r.attr("d",v3(e,t)),ke(n,t),l1(e,a,t,N)}function xe(Fe,Ee){if(c){var Ne=function(Je){return Je},Ve=Ne,Ge=Ne;s?h("xanchor",t.xanchor=le(b+Fe)):(Ve=function(je){return le($(je)+Fe)},I&&I.type==="date"&&(Ve=fn.encodeDate(Ve))),u?h("yanchor",t.yanchor=fe(_+Ee)):(Ge=function(je){return fe(re(je)+Ee)},U&&U.type==="date"&&(Ge=fn.encodeDate(Ge))),h("path",t.path=kq(R,Ve,Ge))}else if(f){if(qe==="resize-over-start-point"){var De=d+Fe,He=u?p-Ee:p+Ee;h("x0",t.x0=s?De:le(De)),h("y0",t.y0=u?He:fe(He))}else if(qe==="resize-over-end-point"){var Oe=y+Fe,ie=u?m-Ee:m+Ee;h("x1",t.x1=s?Oe:le(Oe)),h("y1",t.y1=u?ie:fe(ie))}}else{var Ae=function(Je){return qe.indexOf(Je)!==-1},Ze=Ae("n"),cr=Ae("s"),fr=Ae("w"),oe=Ae("e"),Ce=Ze?w+Ee:w,Ie=cr?x+Ee:x,We=fr?M+Fe:M,Ue=oe?k+Fe:k;u&&(Ze&&(Ce=w-Ee),cr&&(Ie=x-Ee)),(!u&&Ie-Ce>o||u&&Ce-Ie>o)&&(h(A,t[A]=u?Ce:fe(Ce)),h(S,t[S]=u?Ie:fe(Ie))),Ue-We>l&&(h(D,t[D]=s?We:le(We)),h(E,t[E]=s?Ue:le(Ue)))}r.attr("d",v3(e,t)),ke(n,t),l1(e,a,t,N)}function ke(Fe,Ee){(s||u)&&Ne();function Ne(){var Ve=Ee.type!=="path",Ge=Fe.selectAll(".visual-cue").data([0]),De=1;Ge.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":De}).classed("visual-cue",!0);var He=$(s?Ee.xanchor:Tq.midRange(Ve?[Ee.x0,Ee.x1]:fn.extractPathCoords(Ee.path,ps.paramIsX))),Oe=re(u?Ee.yanchor:Tq.midRange(Ve?[Ee.y0,Ee.y1]:fn.extractPathCoords(Ee.path,ps.paramIsY)));if(He=fn.roundPositionForSharpStrokeRendering(He,De),Oe=fn.roundPositionForSharpStrokeRendering(Oe,De),s&&u){var ie="M"+(He-1-De)+","+(Oe-1-De)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ge.attr("d",ie)}else if(s){var Ae="M"+(He-1-De)+","+(Oe-9-De)+"v18 h2 v-18 Z";Ge.attr("d",Ae)}else{var Ze="M"+(He-9-De)+","+(Oe-1-De)+"h18 v2 h-18 Z";Ge.attr("d",Ze)}}}function ge(Fe){Fe.selectAll(".visual-cue").remove()}function ze(Fe,Ee,Ne){var Ve=Ee.xref,Ge=Ee.yref,De=rf.getFromId(Ne,Ve),He=rf.getFromId(Ne,Ge),Oe="";Ve!=="paper"&&!De.autorange&&(Oe+=Ve),Ge!=="paper"&&!He.autorange&&(Oe+=Ge),h3.setClipUrl(Fe,Oe?"clip"+Ne._fullLayout._uid+Oe:null,Ne)}}function kq(e,r,t){return e.replace(ps.segmentRE,function(a){var n=0,i=a.charAt(0),l=ps.paramIsX[i],o=ps.paramIsY[i],s=ps.numParams[i],u=a.substr(1).replace(ps.paramRE,function(f){return n>=s||(l[n]?f=r(f):o[n]&&(f=t(f)),n++),f});return i+u})}function xte(e,r){if(o1(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){qq(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=qq,d3(e)}}}function qq(e){if(o1(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(Sq(e),delete e._fullLayout._activeShapeIndex,d3(e))}}function bte(e){if(o1(e)){Sq(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Un=yr(),Pq=Pt(),Rq=Ut(),Gr=Xd(),_te=s1().eraseActiveShape,u1=Pe(),Ir=u1._,Ur=Bq.exports={};Ur.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Ir(e,"Download plot as a PNG"):Ir(e,"Download plot")},icon:Gr.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};u1.notifier(Ir(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Un.call("downloadImage",e,t).then(function(a){u1.notifier(Ir(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){u1.notifier(Ir(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Ur.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Ir(e,"Edit in Chart Studio")},icon:Gr.disk,click:function(e){Pq.sendDataToCloud(e)}};Ur.editInChartStudio={name:"editInChartStudio",title:function(e){return Ir(e,"Edit in Chart Studio")},icon:Gr.pencil,click:function(e){Pq.sendDataToCloud(e)}};Ur.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Ir(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Gr.zoombox,click:Va};Ur.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Ir(e,"Pan")},attr:"dragmode",val:"pan",icon:Gr.pan,click:Va};Ur.select2d={name:"select2d",_cat:"select",title:function(e){return Ir(e,"Box Select")},attr:"dragmode",val:"select",icon:Gr.selectbox,click:Va};Ur.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Ir(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Gr.lasso,click:Va};Ur.drawclosedpath={name:"drawclosedpath",title:function(e){return Ir(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Gr.drawclosedpath,click:Va};Ur.drawopenpath={name:"drawopenpath",title:function(e){return Ir(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Gr.drawopenpath,click:Va};Ur.drawline={name:"drawline",title:function(e){return Ir(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Gr.drawline,click:Va};Ur.drawrect={name:"drawrect",title:function(e){return Ir(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Gr.drawrect,click:Va};Ur.drawcircle={name:"drawcircle",title:function(e){return Ir(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Gr.drawcircle,click:Va};Ur.eraseshape={name:"eraseshape",title:function(e){return Ir(e,"Erase active shape")},icon:Gr.eraseshape,click:_te};Ur.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Ir(e,"Zoom in")},attr:"zoom",val:"in",icon:Gr.zoom_plus,click:Va};Ur.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Ir(e,"Zoom out")},attr:"zoom",val:"out",icon:Gr.zoom_minus,click:Va};Ur.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Ir(e,"Autoscale")},attr:"zoom",val:"auto",icon:Gr.autoscale,click:Va};Ur.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Ir(e,"Reset axes")},attr:"zoom",val:"reset",icon:Gr.home,click:Va};Ur.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Ir(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Gr.tooltip_basic,gravity:"ne",click:Va};Ur.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Ir(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Gr.tooltip_compare,gravity:"ne",click:Va};function Va(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,l={},o=Rq.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,h=(1+c)/2,d=(1-c)/2,p,y;for(f=0;f{"use strict";var Yq=y3(),Mte=Object.keys(Yq),Gq=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Uq=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Gq),af=[],Ate=function(e){if(Uq.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();af.indexOf(r)===-1&&af.push(r),af.indexOf(t)===-1&&af.push(t)}};Mte.forEach(function(e){Ate(Yq[e])});af.sort();Vq.exports={DRAW_MODES:Gq,backButtons:Uq,foreButtons:af}});var x3=B((g2e,Wq)=>{"use strict";var y2e=g3();Wq.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var Zq=B((x2e,Xq)=>{"use strict";var kte=Pe(),nv=xr(),qte=ot(),Cte=x3();Xq.exports=function(r,t){var a=r.modebar||{},n=qte.newContainer(t,"modebar");function i(o,s){return kte.coerce(a,n,Cte,o,s)}i("orientation"),i("bgcolor",nv.addOpacity(t.paper_bgcolor,.5));var l=nv.contrast(nv.rgb(t.modebar.bgcolor));i("color",nv.addOpacity(l,.3)),i("activecolor",nv.addOpacity(l,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var Qq=B((b2e,Kq)=>{"use strict";var b3=kr(),Ste=zr(),c1=Pe(),Jq=Xd(),Lte=rh().version,Dte=new DOMParser;function $q(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Wi=$q.prototype;Wi.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,l="#"+n+" .modebar-group";document.querySelectorAll(l).forEach(function(c){c.style.backgroundColor=i.bgcolor});var o=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(o||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),c1.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Wi.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var l=r.createButton(n);r.buttonElements.push(l),a.appendChild(l)}),r.element.appendChild(a)})};Wi.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Wi.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(o){e.click(r.graphInfo,o),r.updateActiveButton(o.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&b3.select(t).classed("active",!0);var l=e.icon;return typeof l=="function"?t.appendChild(l()):t.appendChild(this.createIcon(l||Jq.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Wi.createIcon=function(e){var r=Ste(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=Dte.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Wi.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),l=a.getAttribute("data-toggle")==="true",o=b3.select(a),s=function(c,h){var d=r.modebar,p=c.querySelector(".icon path");p&&(h||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(l){if(i===t){var u=!o.classed("active");o.classed("active",u),s(a,u)}}else{var f=i===null?i:c1.nestedProperty(r,i).get();o.classed("active",f===n),s(a,f===n)}})};Wi.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var Rte=Ut(),jq=_n(),_3=yr(),zte=Hi().isUnifiedHover,Nte=Qq(),v1=y3(),Fte=g3().DRAW_MODES,Ite=Pe().extendDeep;eC.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,l;Array.isArray(i)&&i.length?l=Ute(i):!a.displayModeBar&&a.watermark?l=[]:l=Hte(r),n?n.update(r,l):t._modeBar=Nte(r,l)};function Hte(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(O,G){if(typeof G=="string"){if(G.toLowerCase()===O.toLowerCase())return!0}else{var J=G.name,$=G._cat||G.name;if(J===O||$===O.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var l=r.modebar.remove;typeof l=="string"&&(l=[l]);var o=a.modeBarButtonsToAdd.concat(i.filter(function(O){for(var G=0;G1?(E=["toggleHover"],R=["resetViews"]):c?(D=["zoomInGeo","zoomOutGeo"],E=["hoverClosestGeo"],R=["resetGeo"]):f?(E=["hoverClosest3d"],R=["resetCameraDefault3d","resetCameraLastSave3d"]):y?(D=["zoomInMapbox","zoomOutMapbox"],E=["toggleHover"],R=["resetViewMapbox"]):m?(D=["zoomInMap","zoomOutMap"],E=["toggleHover"],R=["resetViewMap"]):h?E=["hoverClosestPie"]:w?(E=["hoverClosestCartesian","hoverCompareCartesian"],R=["resetViewSankey"]):E=["toggleHover"],u&&E.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Yte(t)||M)&&(E=[]),u&&!x&&(D=["zoomIn2d","zoomOut2d","autoScale2d"],R[0]!=="resetViews"&&(R=["resetScale2d"])),f?N=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!x||p?N=["zoom2d","pan2d"]:y||m||c?N=["pan2d"]:b&&(N=["zoom2d"]),Bte(t)&&N.push("select2d","lasso2d");var I=[],H=function(O){I.indexOf(O)===-1&&E.indexOf(O)!==-1&&I.push(O)};if(Array.isArray(o)){for(var U=[],X=0;X{"use strict";tC.exports={moduleType:"component",name:"modebar",layoutAttributes:x3(),supplyLayoutDefaults:Zq(),manage:rC()}});var T3=B((T2e,aC)=>{"use strict";var Vte=Pa().FROM_BL;aC.exports=function(r,t,a){a===void 0&&(a=Vte[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var ys=B(iv=>{"use strict";var ms=Pe(),M3=Uc(),xi=Ut().id2name,Wte=bn(),nC=T3(),Xte=md(),Zte=Mt().ALMOST_EQUAL,Jte=Pa().FROM_BL;iv.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],l=r._axisMatchGroups=[],o,s,u,f,c,h,d,p;for(o=0;oi?t.substr(i):a.substr(n))+l}function Kte(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;lZte*p&&!_)){for(i=0;iN&&JE&&(E=J);var re=(E-D)/(2*R);c/=re,D=s.l2r(D),E=s.l2r(E),s.range=s._input.range=k{"use strict";var d1=kr(),Wa=yr(),kn=Pt(),Vn=Pe(),q3=da(),C3=Wd(),lv=xr(),nf=Yr(),sC=Yc(),hC=w3(),ov=Jr(),ml=Pa(),dC=ys(),Qte=dC.enforce,jte=dC.clean,uC=Uc().doAutoRange,pC="start",eae="middle",mC="end",rae=Aa().zindexSeparator;oa.layoutStyles=function(e){return Vn.syncOrAsync([kn.doAutoMargin,aae],e)};function tae(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function aae(e){var r=e._fullLayout,t=r._size,a=t.p,n=ov.list(e,"",!0),i,l,o,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(nf.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),oa.drawMainTitle(e),hC.manage(e),!r._has("cartesian"))return kn.previousPromises(e);function c(_e,V,te){var W=_e._lw/2;if(_e._id.charAt(0)==="x"){if(V){if(te==="top")return V._offset-a-W}else return t.t+t.h*(1-(_e.position||0))+W%1;return V._offset+V._length+a+W}if(V){if(te==="right")return V._offset+V._length+a+W}else return t.l+t.w*(_e.position||0)+W%1;return V._offset-a-W}for(i=0;i0){oae(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:vC(r.yanchor)}).call(q3.positionText,l,i);var f=(r.text.match(q3.BR_TAG_ALL)||[]).length;if(f){var c=ml.LINE_SPACING*f+ml.MID_SHIFT;r.y===0&&(c=-c),o.selectAll(".line").each(function(){var m=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",m)})}var h=d1.selectAll(".gtitle-subtitle");if(h.node()){var d=o.node().getBBox(),p=d.y+d.height,y=p+sC.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:l,y,"text-anchor":a,dy:vC(r.yanchor)}).call(q3.positionText,l,y)}}}};function nae(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=Vn.isTopAnchor(r)?a:a-n,o=t==="b"?i-l:l;return Vn.isTopAnchor(r)&&t==="t"||Vn.isBottomAnchor(r)&&t==="b"?!1:o.5?"t":"b",l=e._fullLayout.margin[i],o=0;return r.yref==="paper"?o=t+r.pad.t+r.pad.b:r.yref==="container"&&(o=iae(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function oae(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,l=i.y>.5?"t":"b",o={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&nae(e,i,l,r,a)?o[l]=t:i.yref==="container"&&(s[l]=t,e._fullLayout._reservedMargin[n]=s),kn.allowAutoMargin(e,n),kn.autoMargin(e,n,o)}function sae(e,r){var t=e.title,a=e._size,n=0;switch(r===pC?n=t.pad.l:r===mC&&(n=-t.pad.r),t.xref){case"paper":return a.l+a.w*t.x+n;case"container":default:return e.width*t.x+n}}function uae(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===ml.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto")return a.t/2;switch(t.yref){case"paper":return a.t+a.h-a.h*t.y+n;case"container":default:return e.height-e.height*t.y+n}}function vC(e){return e==="top"?ml.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":ml.MID_SHIFT+"em"}function fae(e){var r=e.title,t=eae;return Vn.isRightAnchor(r)?t=mC:Vn.isLeftAnchor(r)&&(t=pC),t}function cae(e){var r=e.title,t="0em";return Vn.isTopAnchor(r)?t=ml.CAP_SHIFT+"em":Vn.isMiddleAnchor(r)&&(t=ml.MID_SHIFT+"em"),t}oa.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var vae=Ql().readPaths,hae=n1(),yC=Ul().clearOutlineControllers,S3=xr(),gC=Yr(),dae=ot().arrayEditor,xC=eo(),pae=xC.getPathString;_C.exports={draw:m1,drawOne:bC,activateLastSelection:gae};function m1(e){var r=e._fullLayout;yC(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;m--){var b=l.append("path").attr(s).style("opacity",m?.1:u).call(S3.stroke,c).call(S3.fill,f).call(gC.dashLine,m?"solid":d,m?4+h:h);if(mae(b,e,a),p){var _=dae(e.layout,"selections",a);b.style({cursor:"move"});var w={element:b.node(),plotinfo:n,gd:e,editHelpers:_,isActiveSelection:!0},x=vae(o,e);hae(x,b,w)}else b.style("pointer-events",m?"all":"none");y[m]=b}var M=y[0],k=y[1];k.node().addEventListener("click",function(){return yae(e,M)})}}function mae(e,r,t){var a=t.xref+t.yref;gC.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function yae(e,r){if(y1(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){L3(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=L3,m1(e)}}}function gae(e){if(y1(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=L3,m1(e)}}function L3(e){if(y1(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(yC(e),delete e._fullLayout._activeSelectionIndex,m1(e))}}});var TC=B((q2e,wC)=>{function xae(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,l){return a("temp_status",{seg:n,above:i,below:l})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,l){return a("status",{seg:n,above:i,below:l})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}wC.exports=xae});var AC=B((C2e,MC)=>{function bae(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],l=a[1],o=n[0],s=n[1],u=t[0],f=t[1];return(o-i)*(f-l)-(s-l)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],l=n[0]-a[0],o=t[0]-a[0],s=n[1]-a[1],u=o*l+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=o-i>e&&(l-f)*(i-c)/(o-c)+f-n>e&&(s=!s),l=f,o=c}return s}};return r}MC.exports=bae});var qC=B((S2e,kC)=>{var _ae={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};kC.exports=_ae});var SC=B((L2e,CC)=>{var sv=qC();function wae(e,r,t){function a(p,y){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:null,below:null},otherFill:null}}function n(p,y,m){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:m.myFill.above,below:m.myFill.below},otherFill:null}}var i=sv.create();function l(p,y,m,b,_,w){var x=r.pointsCompare(y,_);return x!==0?x:r.pointsSame(m,w)?0:p!==b?p?1:-1:r.pointAboveOrOnLine(m,b?_:w,b?w:_)?1:-1}function o(p,y){i.insertBefore(p,function(m){var b=l(p.isStart,p.pt,y,m.isStart,m.pt,m.other.pt);return b<0})}function s(p,y){var m=sv.node({isStart:!0,pt:p.start,seg:p,primary:y,other:null,status:null});return o(m,p.end),m}function u(p,y,m){var b=sv.node({isStart:!1,pt:y.end,seg:y,primary:m,other:p,status:null});p.other=b,o(b,p.pt)}function f(p,y){var m=s(p,y);return u(m,p,y),m}function c(p,y){t&&t.segmentChop(p.seg,y),p.other.remove(),p.seg.end=y,p.other.pt=y,o(p.other,p.pt)}function h(p,y){var m=n(y,p.seg.end,p.seg);return c(p,y),f(m,p.primary)}function d(p,y){var m=sv.create();function b(U,X){var Y=U.seg.start,O=U.seg.end,G=X.seg.start,J=X.seg.end;return r.pointsCollinear(Y,G,J)?r.pointsCollinear(O,G,J)||r.pointAboveOrOnLine(O,G,J)?1:-1:r.pointAboveOrOnLine(Y,G,J)?1:-1}function _(U){return m.findTransition(function(X){var Y=b(U,X.ev);return Y>0})}function w(U,X){var Y=U.seg,O=X.seg,G=Y.start,J=Y.end,$=O.start,re=O.end;t&&t.checkIntersection(Y,O);var le=r.linesIntersect(G,J,$,re);if(le===!1){if(!r.pointsCollinear(G,J,$)||r.pointsSame(G,re)||r.pointsSame(J,$))return!1;var fe=r.pointsSame(G,$),pe=r.pointsSame(J,re);if(fe&&pe)return X;var Q=!fe&&r.pointBetween(G,$,re),qe=!pe&&r.pointBetween(J,$,re);if(fe)return qe?h(X,J):h(U,re),X;Q&&(pe||(qe?h(X,J):h(U,re)),h(X,G))}else le.alongA===0&&(le.alongB===-1?h(U,$):le.alongB===0?h(U,le.pt):le.alongB===1&&h(U,re)),le.alongB===0&&(le.alongA===-1?h(X,G):le.alongA===0?h(X,le.pt):le.alongA===1&&h(X,J));return!1}for(var x=[];!i.isEmpty();){var M=i.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let U=function(){if(A){var X=w(M,A);if(X)return X}return S?w(M,S):!1};var H=U;t&&t.segmentNew(M.seg,M.primary);var k=_(M),A=k.before?k.before.ev:null,S=k.after?k.after.ev:null;t&&t.tempStatus(M.seg,A?A.seg:!1,S?S.seg:!1);var D=U();if(D){if(e){var E;M.seg.myFill.below===null?E=!0:E=M.seg.myFill.above!==M.seg.myFill.below,E&&(D.seg.myFill.above=!D.seg.myFill.above)}else D.seg.otherFill=M.seg.myFill;t&&t.segmentUpdate(D.seg),M.other.remove(),M.remove()}if(i.getHead()!==M){t&&t.rewind(M.seg);continue}if(e){var E;M.seg.myFill.below===null?E=!0:E=M.seg.myFill.above!==M.seg.myFill.below,S?M.seg.myFill.below=S.seg.myFill.above:M.seg.myFill.below=p,E?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var R;S?M.primary===S.primary?R=S.seg.otherFill.above:R=S.seg.myFill.above:R=M.primary?y:p,M.seg.otherFill={above:R,below:R}}t&&t.status(M.seg,A?A.seg:!1,S?S.seg:!1),M.other.status=k.insert(sv.node({ev:M}))}else{var N=M.status;if(N===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(m.exists(N.prev)&&m.exists(N.next)&&w(N.prev.ev,N.next.ev),t&&t.statusRemove(N.ev.seg),N.remove(),!M.primary){var I=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=I}x.push(M.seg)}i.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(p){for(var y,m=p[p.length-1],b=0;b{function Tae(e,r,t){var a=[],n=[];return e.forEach(function(i){var l=i.start,o=i.end;if(r.pointsSame(l,o)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(H,U,X){return f.index=H,f.matches_head=U,f.matches_pt1=X,f===s?(f=u,!1):(f=null,!0)}for(var h=0;h{function uv(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var Mae={union:function(e,r){return uv(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return uv(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return uv(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return uv(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return uv(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};EC.exports=Mae});var zC=B((P2e,RC)=>{var Aae={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function l(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var o=l(i[0]),s=1;s{var kae=TC(),qae=AC(),NC=SC(),Cae=DC(),fv=PC(),FC=zC(),Wn=!1,cv=qae(),cn;cn={buildLog:function(e){return e===!0?Wn=kae():e===!1&&(Wn=!1),Wn===!1?!1:Wn.list},epsilon:function(e){return cv.epsilon(e)},segments:function(e){var r=NC(!0,cv,Wn);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=NC(!1,cv,Wn);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:fv.union(e.combined,Wn),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:fv.intersect(e.combined,Wn),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:fv.difference(e.combined,Wn),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:fv.differenceRev(e.combined,Wn),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:fv.xor(e.combined,Wn),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Cae(e.segments,cv,Wn),inverted:e.inverted}},polygonFromGeoJSON:function(e){return FC.toPolygon(cn,e)},polygonToGeoJSON:function(e){return FC.fromPolygon(cn,cv,e)},union:function(e,r){return vv(e,r,cn.selectUnion)},intersect:function(e,r){return vv(e,r,cn.selectIntersect)},difference:function(e,r){return vv(e,r,cn.selectDifference)},differenceRev:function(e,r){return vv(e,r,cn.selectDifferenceRev)},xor:function(e,r){return vv(e,r,cn.selectXor)}};function vv(e,r,t){var a=cn.segments(e),n=cn.segments(r),i=cn.combine(a,n),l=t(i);return cn.polygon(l)}typeof window=="object"&&(window.PolyBool=cn);IC.exports=cn});var BC=B((z2e,OC)=>{OC.exports=function(r,t,a,n){var i=r[0],l=r[1],o=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;ul!=p>l&&i<(d-c)*(l-h)/(p-h)+c;y&&(o=!o)}return o}});var P3=B((N2e,YC)=>{"use strict";var E3=yh().dot,g1=Mt().BADNUM,x1=YC.exports={};x1.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],l=i,o;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),o=1;on||b===g1||bl||y&&u(p))}function c(p,y){var m=p[0],b=p[1];if(m===g1||mn||b===g1||bl)return!1;var _=t.length,w=t[0][0],x=t[0][1],M=0,k,A,S,D,E;for(k=1;k<_;k++)if(A=w,S=x,w=t[k][0],x=t[k][1],D=Math.min(A,w),!(mMath.max(A,w)||b>Math.max(S,x)))if(bo||Math.abs(E3(c,u))>n)return!0;return!1};x1.filter=function(r,t){var a=[r[0]],n=0,i=0;function l(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c1){var o=r.pop();l(o)}return{addPt:l,raw:r,filtered:a}}});var UC=B((F2e,GC)=>{"use strict";GC.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var vS=B((I2e,cS)=>{"use strict";var VC=HC(),Sae=BC(),pv=yr(),Lae=Yr().dashStyle,hv=xr(),Dae=gi(),Eae=Hi().makeEventData,bv=Ku(),Pae=bv.freeMode,Rae=bv.rectMode,mv=bv.drawMode,F3=bv.openMode,I3=bv.selectMode,WC=eo(),XC=tv(),QC=n1(),jC=Ul().clearOutline,eS=Ql(),R3=eS.handleEllipse,zae=eS.readPaths,Nae=e1().newShapes,Fae=l3(),Iae=D3().activateLastSelection,_1=Pe(),Hae=_1.sorterAsc,rS=P3(),dv=Sh(),Xn=Ut().getFromId,Oae=Wd(),Bae=p1().redrawReglTraces,w1=UC(),Xi=w1.MINSELECT,Yae=rS.filter,H3=rS.tester,O3=$d(),ZC=O3.p2r,Gae=O3.axValue,Uae=O3.getTransform;function B3(e){return e.subplot!==void 0}function Vae(e,r,t,a,n){var i=!B3(a),l=Pae(n),o=Rae(n),s=F3(n),u=mv(n),f=I3(n),c=n==="drawline",h=n==="drawcircle",d=c||h,p=a.gd,y=p._fullLayout,m=f&&y.newselection.mode==="immediate"&&i,b=y._zoomlayer,_=a.element.getBoundingClientRect(),w=a.plotinfo,x=Uae(w),M=r-_.left,k=t-_.top;y._calcInverseTransform(p);var A=_1.apply3DTransform(y._invTransform)(M,k);M=A[0],k=A[1];var S=y._invScaleX,D=y._invScaleY,E=M,R=k,N="M"+M+","+k,I=a.xaxes[0],H=a.yaxes[0],U=I._length,X=H._length,Y=e.altKey&&!(mv(n)&&s),O,G,J,$,re,le,fe;aS(e,p,a),l&&(O=Yae([[M,k]],w1.BENDPX));var pe=b.selectAll("path.select-outline-"+w.id).data([1]),Q=u?y.newshape:y.newselection;u&&(a.hasText=Q.label.text||Q.label.texttemplate);var qe=u&&!s?Q.fillcolor:"rgba(0,0,0,0)",ve=Q.line.color||(i?hv.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");pe.enter().append("path").attr("class","select-outline select-outline-"+w.id).style({opacity:u?Q.opacity/2:1,"stroke-dasharray":Lae(Q.line.dash,Q.line.width),"stroke-width":Q.line.width+"px","shape-rendering":"crispEdges"}).call(hv.stroke,ve).call(hv.fill,qe).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",x).attr("d",N+"Z");var be=b.append("path").attr("class","zoombox-corners").style({fill:hv.background,stroke:hv.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(u&&a.hasText){var se=b.select(".label-temp");se.empty()&&(se=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var _e=y._uid+w1.SELECTID,V=[],te=T1(p,a.xaxes,a.yaxes,a.subplot);m&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var xe=I._id,ke=H._id;sS(p,xe,ke,te);for(var ge=(p.layout||{}).selections||[],ze=[],Fe=!1,Ee=0;Ee=0){p._fullLayout._deactivateShape(p);return}if(!u){var ge=y.clickmode;dv.done(_e).then(function(){if(dv.clear(_e),xe===2){for(pe.remove(),re=0;re-1&&tS(ke,p,a.xaxes,a.yaxes,a.subplot,a,pe),ge==="event"&&xv(p,void 0);Dae.click(p,ke,w.id)}).catch(_1.error)}},a.doneFn=function(){be.remove(),dv.done(_e).then(function(){dv.clear(_e),!m&&$&&a.selectionDefs&&($.subtract=Y,a.selectionDefs.push($),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,J)),(m||u)&&yv(a,m),a.doneFnCompleted&&a.doneFnCompleted(V),f&&xv(p,fe)}).catch(_1.error)}}function tS(e,r,t,a,n,i,l){var o=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],h,d,p,y,m,b,_,w,x,M;if($ae(o)){aS(e,r,i),h=T1(r,t,a,n);var k=Kae(o,h),A=k.pointNumbers.length>0;if(A?Qae(h,k):jae(h)&&(_=$C(k))){for(l&&l.remove(),M=0;M=0}function Jae(e){return e._fullLayout._activeSelectionIndex>=0}function yv(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;Zae(n)&&n._fullLayout._deactivateShape(n),Jae(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,l=i._zoomlayer,o=mv(t),s=I3(t);if(o||s){var u=l.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;o&&(f=Nae(u,e)),f&&pv.call("_guiRelayout",n,{shapes:f});var c;s&&!B3(e)&&(c=Fae(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,pv.call("_guiRelayout",n,{selections:c}).then(function(){r&&Iae(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function JC(e){return e._id}function T1(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(JC),l=t.map(JC),o,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function Qae(e,r){var t=[],a,n,i,l;for(l=0;l0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(l=0;l1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function gv(e,r,t){var a;for(a=0;a-1&&r;if(!l&&r){var xe=KC(e,!0);if(xe.length){var ke=xe[0].xref,ge=xe[0].yref;if(ke&&ge){var ze=uS(xe),Fe=fS([Xn(e,ke,"x"),Xn(e,ge,"y")]);Fe(V,ze)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:W&&xv(e,V),h._reselect=!1}if(!l&&h._deselect){var Ee=h._deselect;o=Ee.xref,s=Ee.yref,tne(o,s,f)||sS(e,o,s,a),W&&(V.points.length?xv(e,V):U3(e)),h._deselect=!1}return{eventData:V,selectionTesters:t}}function rne(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";hS.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var _v=B((O2e,dS)=>{"use strict";dS.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var lf=B((Y2e,yS)=>{"use strict";var pS=V3(),mS=aa(),M1=Aa(),one=ot().templatedArray,B2e=_v();yS.exports=one("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:mS({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:pS.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:pS.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",M1.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",M1.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",M1.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",M1.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:mS({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var A1=B((G2e,gS)=>{"use strict";gS.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var W3=B((U2e,xS)=>{"use strict";xS.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var bi=B((V2e,AS)=>{"use strict";var bS=di().axisHoverFormat,sne=ha().texttemplateAttrs,une=ha().hovertemplateAttrs,_S=Hc(),fne=aa(),cne=fi().dash,vne=fi().pattern,hne=Yr(),dne=A1(),k1=mt().extendFlat,pne=W3();function wS(e){return{valType:"any",dflt:0,editType:"calc"}}function TS(e){return{valType:"any",editType:"calc"}}function MS(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}AS.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:wS("x"),yperiod:wS("y"),xperiod0:TS("x0"),yperiod0:TS("y0"),xperiodalignment:MS("x"),yperiodalignment:MS("y"),xhoverformat:bS("x"),yhoverformat:bS("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:sne({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:une({},{keys:dne.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:k1({},cne,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:pne(!0),fillgradient:k1({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:vne,marker:k1({symbol:{valType:"enumerated",values:hne.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:k1({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},_S("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},_S("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:fne({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var X3=B((X2e,CS)=>{"use strict";var kS=lf(),qS=bi().line,mne=fi().dash,q1=mt().extendFlat,yne=ui().overrideAll,gne=ot().templatedArray,W2e=_v();CS.exports=yne(gne("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:q1({},kS.xref,{}),yref:q1({},kS.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:qS.color,width:q1({},qS.width,{min:1,dflt:1}),dash:q1({},mne,{dflt:"dot"})}}),"arraydraw","from-root")});var ES=B((Z2e,DS)=>{"use strict";var SS=Pe(),C1=Jr(),xne=On(),bne=X3(),LS=eo();DS.exports=function(r,t){xne(r,t,{name:"selections",handleItemDefaults:_ne});for(var a=t.selections,n=0;n{"use strict";PS.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var wv=B(($2e,FS)=>{"use strict";var wne=yr(),zS=Pe(),NS=Ut();FS.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=wne.subplotsRegistry.cartesian,o=l.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,h=n._has("cartesian"),d=0;d{"use strict";var IS=D3(),Tv=vS();HS.exports={moduleType:"component",name:"selections",layoutAttributes:X3(),supplyLayoutDefaults:ES(),supplyDrawNewSelectionDefaults:RS(),includeBasePlot:wv()("selections"),draw:IS.draw,drawOne:IS.drawOne,reselect:Tv.reselect,prepSelect:Tv.prepSelect,clearOutline:Tv.clearOutline,clearSelectionsCache:Tv.clearSelectionsCache,selectOnClick:Tv.selectOnClick}});var lL=B((Q2e,iL)=>{"use strict";var Q3=kr(),Zn=Pe(),OS=Zn.numberFormat,Tne=Rn(),Mne=D2(),S1=yr(),JS=Zn.strTranslate,Ane=da(),BS=xr(),to=Yr(),kne=gi(),YS=Jr(),qne=Kl(),Cne=mi(),$S=Ku(),L1=$S.selectingOrDrawing,Sne=$S.freeMode,Lne=Pa().FROM_TL,Dne=Wd(),Ene=p1().redrawReglTraces,Pne=Pt(),J3=Ut().getFromId,Rne=of().prepSelect,zne=of().clearOutline,Nne=of().selectOnClick,Z3=T3(),j3=Aa(),GS=j3.MINDRAG,Qa=j3.MINZOOM,US=!0;function Fne(e,r,t,a,n,i,l,o){var s=e._fullLayout._zoomlayer,u=l+o==="nsew",f=(l+o).length===1,c,h,d,p,y,m,b,_,w,x,M,k,A,S,D,E,R,N,I,H,U,X,Y;t+=r.yaxis._shift;function O(){if(c=r.xaxis,h=r.yaxis,w=c._length,x=h._length,b=c._offset,_=h._offset,d={},d[c._id]=c,p={},p[h._id]=h,l&&o)for(var oe=r.overlays,Ce=0;Ce=0){Ie._fullLayout._deactivateShape(Ie);return}var We=Ie._fullLayout.clickmode;if(K3(Ie),oe===2&&!f&&Oe(),u)We.indexOf("select")>-1&&Nne(Ce,Ie,y,m,r.id,$),We.indexOf("event")>-1&&kne.click(Ie,Ce,r.id);else if(oe===1&&f){var Ue=l?h:c,Je=l==="s"||o==="w"?0:1,je=Ue._name+".range["+Je+"]",vr=Ine(Ue,Je),$e="left",Re="middle";if(Ue.fixedrange)return;l?(Re=l==="n"?"top":"bottom",Ue.side==="right"&&($e="right")):o==="e"&&($e="right"),Ie._context.showAxisRangeEntryBoxes&&Q3.select(J).call(Ane.makeEditable,{gd:Ie,immediate:!0,background:Ie._fullLayout.paper_bgcolor,text:String(vr),fill:Ue.tickfont?Ue.tickfont.color:"#444",horizontalAlign:$e,verticalAlign:Re}).on("edit",function(ne){var ce=Ue.d2r(ne);ce!==void 0&&S1.call("_guiRelayout",Ie,je,ce)})}}Cne.init($);var fe,pe,Q,qe,ve,be,se,_e,V,te;function W(oe,Ce,Ie){var We=J.getBoundingClientRect();fe=Ce-We.left,pe=Ie-We.top,e._fullLayout._calcInverseTransform(e);var Ue=Zn.apply3DTransform(e._fullLayout._invTransform)(fe,pe);fe=Ue[0],pe=Ue[1],Q={l:fe,r:fe,w:0,t:pe,b:pe,h:0},qe=e._hmpixcount?e._hmlumcount/e._hmpixcount:Tne(e._fullLayout.plot_bgcolor).getLuminance(),ve="M0,0H"+w+"V"+x+"H0V0",be=!1,se="xy",te=!1,_e=jS(s,qe,b,_,ve),V=eL(s,b,_)}function xe(oe,Ce){if(e._transitioningWithDuration)return!1;var Ie=Math.max(0,Math.min(w,X*oe+fe)),We=Math.max(0,Math.min(x,Y*Ce+pe)),Ue=Math.abs(Ie-fe),Je=Math.abs(We-pe);Q.l=Math.min(fe,Ie),Q.r=Math.max(fe,Ie),Q.t=Math.min(pe,We),Q.b=Math.max(pe,We);function je(){se="",Q.r=Q.l,Q.t=Q.b,V.attr("d","M0,0Z")}if(M.isSubplotConstrained)Ue>Qa||Je>Qa?(se="xy",Ue/w>Je/x?(Je=Ue*x/w,pe>We?Q.t=pe-Je:Q.b=pe+Je):(Ue=Je*w/x,fe>Ie?Q.l=fe-Ue:Q.r=fe+Ue),V.attr("d",D1(Q))):je();else if(k.isSubplotConstrained)if(Ue>Qa||Je>Qa){se="xy";var vr=Math.min(Q.l/w,(x-Q.b)/x),$e=Math.max(Q.r/w,(x-Q.t)/x);Q.l=vr*w,Q.r=$e*w,Q.b=(1-vr)*x,Q.t=(1-$e)*x,V.attr("d",D1(Q))}else je();else!S||Je0){var ne;if(k.isSubplotConstrained||!A&&S.length===1){for(ne=0;ne1&&(je.maxallowed!==void 0&&E===(je.range[0]1&&(vr.maxallowed!==void 0&&R===(vr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function One(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function jS(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",JS(t,a)).attr("d",n+"Z")}function eL(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:BS.background,stroke:BS.defaultLine,"stroke-width":1,opacity:0}).attr("transform",JS(r,t)).attr("d","M0,0Z")}function rL(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),tL(e,r,n,i)}function tL(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function K3(e){Q3.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function aL(e){US&&e.data&&e._context.showTips&&(Zn.notifier(Zn._(e,"Double-click to zoom back out"),"long"),US=!1)}function Bne(e,r){return"M"+(e.l-.5)+","+(r-Qa-.5)+"h-3v"+(2*Qa+1)+"h3ZM"+(e.r+.5)+","+(r-Qa-.5)+"h3v"+(2*Qa+1)+"h-3Z"}function Yne(e,r){return"M"+(r-Qa-.5)+","+(e.t-.5)+"v-3h"+(2*Qa+1)+"v3ZM"+(r-Qa-.5)+","+(e.b+.5)+"v3h"+(2*Qa+1)+"v-3Z"}function D1(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Qa)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function XS(e,r,t,a,n){for(var i=!1,l={},o={},s,u,f,c,h=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var Gne=kr(),E1=gi(),Une=mi(),Vne=Kl(),_i=lL().makeDragBox,sa=Aa().DRAGGERSIZE;P1.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){Gne.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,l){if((t._plots[i].mainplot&&!0)===(t._plots[l].mainplot&&!0)){var o=i.split("y"),s=l.split("y");return o[0]===s[0]?Number(o[1]||1)-Number(s[1]||1):Number(o[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var l=t._plots[i],o=l.xaxis,s=l.yaxis;if(!l.mainplot){var u=_i(r,l,o._offset,s._offset,o._length,s._length,"ns","ew");u.onmousemove=function(h){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&E1.hover(r,h,i)},E1.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,Une.unhover(r,h))},r._context.showAxisDragHandles&&(_i(r,l,o._offset-sa,s._offset-sa,sa,sa,"n","w"),_i(r,l,o._offset+o._length,s._offset-sa,sa,sa,"n","e"),_i(r,l,o._offset-sa,s._offset+s._length,sa,sa,"s","w"),_i(r,l,o._offset+o._length,s._offset+s._length,sa,sa,"s","e"))}if(r._context.showAxisDragHandles){if(i===o._mainSubplot){var f=o._mainLinePosition;o.side==="top"&&(f-=sa),_i(r,l,o._offset+o._length*.1,f,o._length*.8,sa,"","ew"),_i(r,l,o._offset,f,o._length*.1,sa,"","w"),_i(r,l,o._offset+o._length*.9,f,o._length*.1,sa,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=sa),_i(r,l,c,s._offset+s._length*.1,sa,s._length*.8,"ns",""),_i(r,l,c,s._offset+s._length*.9,sa,s._length*.1,"s",""),_i(r,l,c,s._offset,sa,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,E1.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,E1.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},P1.updateFx(r)}};P1.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";Vne(r._draggers,t)}});var uL=B((e3e,sL)=>{"use strict";var oL=yr();sL.exports=function(r){for(var t=oL.layoutArrayContainers,a=oL.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o{"use strict";var Wne=Pl(),rx=mh(),Mv=Go(),Xne=Qy().sorterAsc,tx=yr();Av.containerArrayMatch=uL();var Zne=Av.isAddVal=function(r){return r==="add"||Wne(r)},fL=Av.isRemoveVal=function(r){return r===null||r==="remove"};Av.applyContainerArrayChanges=function(r,t,a,n,i){var l=t.astr,o=tx.getComponentMethod(l,"supplyLayoutDefaults"),s=tx.getComponentMethod(l,"draw"),u=tx.getComponentMethod(l,"drawOne"),f=n.replot||n.recalc||o===rx||s===rx,c=r.layout,h=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Mv.warn("Full array edits are incompatible with other edits",l);var d=a[""][""];if(fL(d))t.set(null);else if(Array.isArray(d))t.set(d);else return Mv.warn("Unrecognized full array edit value",l,d),!0;return f?!1:(o(c,h),s(r),!0)}var p=Object.keys(a).map(Number).sort(Xne),y=t.get(),m=y||[],b=i(h,l).get(),_=[],w=-1,x=m.length,M,k,A,S,D,E,R,N;for(M=0;Mm.length-(R?0:1)){Mv.warn("index out of range",l,A);continue}if(E!==void 0)D.length>1&&Mv.warn("Insertion & removal are incompatible with edits to the same index.",l,A),fL(E)?_.push(A):R?(E==="add"&&(E={}),m.splice(A,0,E),b&&b.splice(A,0,{})):Mv.warn("Unrecognized full object edit value",l,A,E),w===-1&&(w=A);else for(k=0;k=0;M--)m.splice(_[M],1),b&&b.splice(_[M],1);if(m.length?y||t.set(m):t.set(null),f)return!1;if(o(c,h),u!==rx){var I;if(w===-1)I=p;else{for(x=Math.max(m.length,x),I=[],M=0;M=w));M++)I.push(A);for(M=w;M{"use strict";var pL=zr(),t3e=Yy(),mL=yr(),vn=Pe(),kv=Pt(),yL=Ut(),gL=xr(),qv=yL.cleanId,Jne=yL.getFromTrace,ax=mL.traceIs;wi.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&vn.log("Clearing previous rejected promises from queue."),e._promises=[]};wi.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(kv.subplotsRegistry.cartesian||{}).attrRegex,n=(kv.subplotsRegistry.polar||{}).attrRegex,i=(kv.subplotsRegistry.ternary||{}).attrRegex,l=(kv.subplotsRegistry.gl3d||{}).attrRegex,o=Object.keys(e);for(r=0;r3?(m.x=1.02,m.xanchor="left"):m.x<-2&&(m.x=-.02,m.xanchor="right"),m.y>3?(m.y=1.02,m.yanchor="bottom"):m.y<-2&&(m.y=-.02,m.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),gL.clean(e),e.template&&e.template.layout&&wi.cleanLayout(e.template.layout),e};function sf(e,r){var t=e[r],a=r.charAt(0);t&&t!=="paper"&&(e[r]=qv(t,a,!0))}wi.cleanData=function(e){for(var r=0;r0)return e.substr(0,r)}wi.hasParent=function(e,r){for(var t=dL(r);t;){if(t in e)return!0;t=dL(t)}return!1};var Qne=["x","y","z"];wi.clearAxisTypes=function(e,r,t){for(var a=0;a{"use strict";var F1=kr(),jne=zr(),eie=vg(),Ke=Pe(),ht=Ke.nestedProperty,lx=Pc(),ja=Q8(),Jn=yr(),U1=Lu(),_r=Pt(),Xa=Jr(),rie=L2(),tie=bn(),nx=Yr(),aie=xr(),nie=ex().initInteractions,iie=Qo(),lie=of().clearOutline,ML=Yo().dfltConfig,z1=cL(),Jt=xL(),rt=p1(),ao=ui(),oie=Aa().AX_NAME_PATTERN,ix=0,bL=5;function sie(e,r,t,a){var n;if(e=Ke.getGraphDiv(e),lx.init(e),Ke.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var l=lx.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(l===!1)return Promise.reject();!r&&!t&&!Ke.isPlotDiv(e)&&Ke.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function o(){if(n)return Vr.addFrames(e,n)}kL(e,a),t||(t={}),F1.select(e).classed("js-plotly-plot",!0),nx.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Jt.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=Jt.cleanLayout(t)),_r.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(Die(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),nx.initGradients(e),nx.initPatterns(e),s&&Xa.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&_r.doCalcdata(e);for(var h=0;h=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function qL(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),H1(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&H1(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function hie(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof S.parts[R]!="string";)R--;var N=S.parts[R],I=S.parts[R-1]+"."+N,H=S.parts.slice(0,R).join("."),U=ht(e.layout,H).get(),X=ht(a,H).get(),Y=S.get();if(D!==void 0){b[A]=D,_[A]=N==="reverse"?D:yl(Y);var O=U1.getLayoutValObject(a,S.parts);if(O&&O.impliedEdits&&D!==null)for(var G in O.impliedEdits)w(Ke.relativeAttr(A,G),O.impliedEdits[G]);if(["width","height"].indexOf(A)!==-1)if(D){w("autosize",null);var J=A==="height"?"width":"height";w(J,a[J])}else a[A]=e._initialAutoSize[A];else if(A==="autosize")w("width",D?null:a.width),w("height",D?null:a.height);else if(I.match(NL))k(I),ht(a,H+"._inputRange").set(null);else if(I.match(FL)){k(I),ht(a,H+"._inputRange").set(null);var $=ht(a,H).get();$._inputDomain&&($._input.domain=$._inputDomain.slice())}else I.match(yie)&&ht(a,H+"._inputDomain").set(null);if(N==="type"){M=U;var re=X.type==="linear"&&D==="log",le=X.type==="log"&&D==="linear";if(re||le){if(!M||!M.range)w(H+".autorange",!0);else if(X.autorange)re&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var fe=M.range[0],pe=M.range[1];re?(fe<=0&&pe<=0&&w(H+".autorange",!0),fe<=0?fe=pe/1e6:pe<=0&&(pe=fe/1e6),w(H+".range[0]",Math.log(fe)/Math.LN10),w(H+".range[1]",Math.log(pe)/Math.LN10)):(w(H+".range[0]",Math.pow(10,fe)),w(H+".range[1]",Math.pow(10,pe)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[S.parts[0]]&&S.parts[1]==="radialaxis"&&delete a[S.parts[0]]._subplot.viewInitial["radialaxis.range"],Jn.getComponentMethod("annotations","convertCoords")(e,X,D,w),Jn.getComponentMethod("images","convertCoords")(e,X,D,w)}else w(H+".autorange",!0),w(H+".range",null);ht(a,H+"._inputRange").set(null)}else if(N.match(oie)){var Q=ht(a,A).get(),qe=(D||{}).type;(!qe||qe==="-")&&(qe="linear"),Jn.getComponentMethod("annotations","convertCoords")(e,Q,qe,w),Jn.getComponentMethod("images","convertCoords")(e,Q,qe,w)}var ve=z1.containerArrayMatch(A);if(ve){f=ve.array,c=ve.index;var be=ve.property,se=O||{editType:"calc"};c!==""&&be===""&&(z1.isAddVal(D)?_[A]=null:z1.isRemoveVal(D)?_[A]=(ht(t,f).get()||[])[c]:Ke.warn("unrecognized full object value",r)),ao.update(m,se),u[f]||(u[f]={});var _e=u[f][c];_e||(_e=u[f][c]={}),_e[be]=D,delete r[A]}else N==="reverse"?(U.range?U.range.reverse():(w(H+".autorange",!0),U.range=[1,0]),X.autorange?m.calc=!0:m.plot=!0):(A==="dragmode"&&(D===!1&&Y!==!1||D!==!1&&Y===!1)||a._has("scatter-like")&&a._has("regl")&&A==="dragmode"&&(D==="lasso"||D==="select")&&!(Y==="lasso"||Y==="select")?m.plot=!0:O?ao.update(m,O):m.calc=!0,S.set(D))}}for(f in u){var V=z1.applyContainerArrayChanges(e,i(t,f),u[f],m,i);V||(m.plot=!0)}for(var te in x){M=Xa.getFromId(e,te);var W=M&&M._constraintGroup;if(W){m.calc=!0;for(var xe in W)x[xe]||(Xa.getFromId(e,xe)._constraintShrinkable=!0)}}(HL(e)||r.height||r.width)&&(m.plot=!0);var ke=a.shapes;for(c=0;c1;)if(a.pop(),t=ht(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function bie(e,r){for(var t=0;t=n.length?n[0]:n[u]:n}function o(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var N=a._frameQueue.pop();N.onInterrupt&&N.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(N){if(N.length!==0){for(var I=0;Ia._timeToNext&&p()};N()}var m=0;function b(N){return Array.isArray(n)?m>=n.length?N.transitionOpts=n[m]:N.transitionOpts=n[0]:N.transitionOpts=n,m++,N}var _,w,x=[],M=r==null,k=Array.isArray(r),A=!M&&!k&&Ke.isPlainObject(r);if(A)x.push({type:"object",data:b(Ke.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(_=0;_0&&EE)&&R.push(w);x=R}}x.length>0?h(x):(e.emit("plotly_animated"),u())})}function qie(e,r,t){if(e=Ke.getGraphDiv(e),r==null)return Promise.resolve();if(!Ke.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,l,o=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=o.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(Ke.isPlainObject(r[a])){var h=r[a].name,d=(s[h]||c[h]||{}).name,p=r[a].name,y=s[d]||c[d];d&&p&&typeof p=="number"&&y&&ixS.index?-1:A.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&Ke.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),l.unshift({type:"insert",index:a,value:n[a]});var o=_r.modifyFrames,s=_r.modifyFrames,u=[e,l],f=[e,i];return ja&&ja.add(e,o,u,s,f),_r.modifyFrames(e,i)}function Sie(e){e=Ke.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return _r.cleanPlot([],{},t,r),_r.purge(e),lx.purge(e),r._container&&r._container.remove(),delete e._context,e}function Lie(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Ke.equalDomRects(t,r._lastBBox)){var a=r._invTransform=Ke.inverseTransformMatrix(Ke.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function Die(e){var r=F1.select(e),t=e._fullLayout;if(t._calcInverseTransform=Lie,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};F1.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=Ke.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(iie.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Vr.animate=kie;Vr.addFrames=qie;Vr.deleteFrames=Cie;Vr.addTraces=EL;Vr.deleteTraces=PL;Vr.extendTraces=LL;Vr.moveTraces=ox;Vr.prependTraces=DL;Vr.newPlot=vie;Vr._doPlot=sie;Vr.purge=Sie;Vr.react=Tie;Vr.redraw=cie;Vr.relayout=Cv;Vr.restyle=O1;Vr.setPlotConfig=uie;Vr.update=Y1;Vr._guiRelayout=ux(Cv);Vr._guiRestyle=ux(O1);Vr._guiUpdate=ux(Y1);Vr._storeDirectGUIEdit=mie});var gs=B(Zi=>{"use strict";var Eie=yr();Zi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Zi.getRedrawFunc=function(e){return function(){Eie.getComponentMethod("colorbar","draw")(e)}};Zi.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Zi.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var OL=window.URL||window.webkitURL;Zi.createObjectURL=function(e){return OL.createObjectURL(e)};Zi.revokeObjectURL=function(e){return OL.revokeObjectURL(e)};Zi.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=Pie(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Zi.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function Pie(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var vx=kr(),l3e=Pe(),Rie=Yr(),zie=xr(),o3e=Qo(),cx=/"/g,Lv="TOBESTRIPPED",Nie=new RegExp('("'+Lv+")|("+Lv+'")',"g");function Fie(e){var r=vx.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(a){return a==="<"?"<":a==="&rt;"?">":a.indexOf("<")!==-1||a.indexOf(">")!==-1?"":r.html(a).text()});return r.remove(),t}function Iie(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}BL.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,l=n._toppaper,o=n.width,s=n.height,u;i.insert("rect",":first-child").call(Rie.setRect,0,0,o,s).call(zie.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var Hie=Pe(),Oie=Nh().EventEmitter,Dv=gs();function Bie(e){var r=e.emitter||new Oie,t=new Promise(function(a,n){var i=window.Image,l=e.svg,o=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,h=u*f,d=u*c,p=s.getContext("2d",{willReadFrequently:!0}),y=new i,m,b;o==="svg"||Hie.isSafari()?b=Dv.encodeSVG(l):(m=Dv.createBlob(l,"svg"),b=Dv.createObjectURL(m)),s.width=h,s.height=d,y.onload=function(){var _;switch(m=null,Dv.revokeObjectURL(b),o!=="svg"&&p.drawImage(y,0,0,h,d),o){case"jpeg":_=s.toDataURL("image/jpeg");break;case"png":_=s.toDataURL("image/png");break;case"webp":_=s.toDataURL("image/webp");break;case"svg":_=b;break;default:var w="Image format is not jpeg, png, svg or webp.";if(n(new Error(w)),!e.promise)return r.emit("error",w)}a(_),e.promise||r.emit("success",_)},y.onerror=function(_){if(m=null,Dv.revokeObjectURL(b),n(_),!e.promise)return r.emit("error",_)},y.src=b});return e.promise?t:r}YL.exports=Bie});var dx=B((f3e,VL)=>{"use strict";var GL=zr(),UL=fx(),Yie=Pt(),Ji=Pe(),Ev=gs(),Gie=W1(),Uie=X1(),Vie=rh().version,hx={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Wie(e,r){r=r||{};var t,a,n,i;Ji.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Ji.getGraphDiv(e),t=Ji.extendDeep([],e.data),a=Ji.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function l(k){return!(k in r)||Ji.validate(r[k],hx[k])}if(!l("width")&&r.width!==null||!l("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+Ji.join2(hx.format.values,", "," or ")+".");var o={};function s(k,A){return Ji.coerce(r,o,hx,k,A)}var u=s("format"),f=s("width"),c=s("height"),h=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),y=document.createElement("div");y.style.position="absolute",y.style.left="-5000px",document.body.appendChild(y);var m=Ji.extendFlat({},a);f?m.width=f:r.width===null&&GL(i.width)&&(m.width=i.width),c?m.height=c:r.height===null&&GL(i.height)&&(m.height=i.height);var b=Ji.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),_=Ev.getRedrawFunc(y);function w(){return new Promise(function(k){setTimeout(k,Ev.getDelay(y._fullLayout))})}function x(){return new Promise(function(k,A){var S=Gie(y,u,h),D=y._fullLayout.width,E=y._fullLayout.height;function R(){UL.purge(y),document.body.removeChild(y)}if(u==="full-json"){var N=Yie.graphJson(y,!1,"keepdata","object",!0,!0);return N.version=Vie,N=JSON.stringify(N),R(),k(p?N:Ev.encodeJSON(N))}if(R(),u==="svg")return k(p?S:Ev.encodeSVG(S));var I=document.createElement("canvas");I.id=Ji.randstr(),Uie({format:u,width:D,height:E,scale:h,canvas:I,svg:S,promise:!0}).then(k).catch(A)})}function M(k){return p?k.replace(Ev.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,A){UL.newPlot(y,t,m,b).then(_).then(w).then(x).then(function(S){k(M(S))}).catch(function(S){A(S)})})}VL.exports=Wie});var ZL=B((c3e,XL)=>{"use strict";var $n=Pe(),Xie=Pt(),Zie=Lu(),Jie=Yo().dfltConfig,Ti=$n.isPlainObject,bs=Array.isArray,px=$n.isArrayOrTypedArray;XL.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=Zie.get(),n=[],i={_context:$n.extendFlat({},Jie)},l,o;bs(r)?(i.data=$n.extendDeep([],r),l=r):(i.data=[],l=[],n.push(ua("array","data"))),Ti(t)?(i.layout=$n.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(ua("object","layout"))),Xie.supplyDefaults(i);for(var s=i._fullData,u=l.length,f=0;fc.length&&a.push(ua("unused",n,u.concat(c.length)));var b=c.length,_=Array.isArray(m);_&&(b=Math.min(b,m.length));var w,x,M,k,A;if(h.dimensions===2)for(x=0;xc[x].length&&a.push(ua("unused",n,u.concat(x,c[x].length)));var S=c[x].length;for(w=0;w<(_?Math.min(S,m[x].length):S);w++)M=_?m[x][w]:m,k=f[x][w],A=c[x][w],$n.validate(k,M)?A!==k&&A!==+k&&a.push(ua("dynamic",n,u.concat(x,w),k,A)):a.push(ua("value",n,u.concat(x,w),k))}else a.push(ua("array",n,u.concat(x),f[x]));else for(x=0;x{"use strict";var tle=Pe(),J1=gs();function ale(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(l,o){var s,u;if(n)return s=J1.createBlob(e,t),u=J1.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),J1.revokeObjectURL(u),s=null,l(r);if(tle.isSafari()){var f=t==="svg"?",":";base64,";return J1.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}JL.exports=ale});var mx=B((d3e,QL)=>{"use strict";var KL=Pe(),nle=dx(),ile=$L(),h3e=gs();function lle(e,r){var t;return KL.isPlainObject(e)||(t=KL.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=nle(e,r),l=r.filename||e.fn||"newplot";l+="."+r.format.replace("-","."),i.then(function(o){return t&&(t._snapshotInProgress=!1),ile(o,l,r.format)}).then(function(o){a(o)}).catch(function(o){t&&(t._snapshotInProgress=!1),n(o)})})}QL.exports=lle});var aD=B(yx=>{"use strict";var hn=Pe(),dn=hn.isPlainObject,jL=Lu(),eD=Pt(),ole=tn(),rD=ot(),tD=Yo().dfltConfig;yx.makeTemplate=function(e){e=hn.isPlainObject(e)?e:hn.getGraphDiv(e),e=hn.extendDeep({_context:tD},{data:e.data,layout:e.layout}),eD.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var p={};Pv(d,p,ule.bind(null,d));var y=hn.coerce(d,{},ole,"type"),m=a.data[y];m||(m=a.data[y]=[]),m.push(p)}),Pv(t,a.layout,sle.bind(null,t)),delete a.layout.template;var n=t.template;if(dn(n)){var i=n.layout,l,o,s,u,f,c;dn(i)&&$1(i,a.layout);var h=n.data;if(dn(h)){for(o in a.data)if(s=h[o],Array.isArray(s)){for(f=a.data[o],c=f.length,u=s.length,l=0;lb?l.push({code:"unused",traceType:d,templateCount:m,dataCount:b}):b>m&&l.push({code:"reused",traceType:d,templateCount:m,dataCount:b})}}function _(w,x){for(var M in w)if(M.charAt(0)!=="_"){var k=w[M],A=Kn(w,M,x);dn(k)?(Array.isArray(w)&&k._template===!1&&k.templateitemname&&l.push({code:"missing",path:A,templateitemname:k.templateitemname}),_(k,A)):Array.isArray(k)&&fle(k)&&_(k,A)}}if(_({data:s,layout:o},""),l.length)return l.map(cle)};function fle(e){for(var r=0;r{"use strict";var ea=fx();bt._doPlot=ea._doPlot;bt.newPlot=ea.newPlot;bt.restyle=ea.restyle;bt.relayout=ea.relayout;bt.redraw=ea.redraw;bt.update=ea.update;bt._guiRestyle=ea._guiRestyle;bt._guiRelayout=ea._guiRelayout;bt._guiUpdate=ea._guiUpdate;bt._storeDirectGUIEdit=ea._storeDirectGUIEdit;bt.react=ea.react;bt.extendTraces=ea.extendTraces;bt.prependTraces=ea.prependTraces;bt.addTraces=ea.addTraces;bt.deleteTraces=ea.deleteTraces;bt.moveTraces=ea.moveTraces;bt.purge=ea.purge;bt.addFrames=ea.addFrames;bt.deleteFrames=ea.deleteFrames;bt.animate=ea.animate;bt.setPlotConfig=ea.setPlotConfig;var vle=Mc().getGraphDiv,hle=s1().eraseActiveShape;bt.deleteActiveShape=function(e){return hle(vle(e))};bt.toImage=dx();bt.validate=ZL();bt.downloadImage=mx();var nD=aD();bt.makeTemplate=nD.makeTemplate;bt.validateTemplate=nD.validateTemplate});var Rv=B((y3e,lD)=>{"use strict";var gx=Pe(),dle=yr();lD.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=dle.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=gx.minRowLength(i);l?o=Math.min(u,gx.minRowLength(l)):(o=u,n("y0"),n("dy"))}else{if(!l)return 0;o=gx.minRowLength(l),n("x0"),n("dx")}return t._length=o,o}});var _s=B((g3e,uD)=>{"use strict";var oD=Pe().dateTick0,ple=Mt(),mle=ple.ONEWEEK;function sD(e,r){return e%mle===0?oD(r,1):oD(r,0)}uD.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",sD(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",sD(o,t.ycalendar)),n("yperiodalignment"))}}});var vD=B((x3e,cD)=>{"use strict";var fD=["orientation","groupnorm","stackgaps"];cD.exports=function(r,t,a,n){var i=a._scatterStackOpts,l=n("stackgroup");if(l){var o=t.xaxis+t.yaxis,s=i[o];s||(s=i[o]={});var u=s[l],f=!1;u?u.traces.push(t):(u=s[l]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},h=0;h{"use strict";var hD=xr(),dD=Hn().hasColorscale,pD=Ru(),yle=_n();mD.exports=function(r,t,a,n,i,l){var o=yle.isBubble(r),s=(r.line||{}).color,u;if(l=l||{},s&&(a=s),i("marker.symbol"),i("marker.opacity",o?.7:1),i("marker.size"),l.noAngle||(i("marker.angle"),l.noAngleRef||i("marker.angleref"),l.noStandOff||i("marker.standoff")),i("marker.color",a),dD(r,"marker")&&pD(r,t,n,i,{prefix:"marker.",cLetter:"c"}),l.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),l.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:o?u=hD.background:u=hD.defaultLine,i("marker.line.color",u),dD(r,"marker.line")&&pD(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",o?1:0)),o&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),l.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var xD=B((_3e,gD)=>{"use strict";var gle=Pe().isArrayOrTypedArray,xle=Hn().hasColorscale,ble=Ru();gD.exports=function(r,t,a,n,i,l){l||(l={});var o=(r.marker||{}).color;if(o&&o._inputArray&&(o=o._inputArray),i("line.color",a),xle(r,"line"))ble(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(gle(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var _D=B((w3e,bD)=>{"use strict";bD.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var TD=B((T3e,wD)=>{"use strict";var _le=Pe();wD.exports=function(e,r,t,a,n){n=n||{},a("textposition"),_le.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var kD=B((M3e,AD)=>{"use strict";var Q1=xr(),MD=Pe().isArrayOrTypedArray;function wle(e){for(var r=Q1.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var qD=Pe(),Tle=yr(),Mle=bi(),Ale=A1(),uf=_n(),kle=Rv(),qle=_s(),Cle=vD(),Sle=yD(),Lle=xD(),CD=_D(),Dle=TD(),Ele=kD(),Ple=Pe().coercePattern;SD.exports=function(r,t,a,n){function i(d,p){return qD.coerce(r,t,Mle,d,p)}var l=kle(r,t,n,i);if(l||(t.visible=!1),!!t.visible){qle(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=Cle(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l{"use strict";var Rle=ys().getAxisGroup;DD.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=Rle(a,o)+l,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var h=c[f];h?h.traces.push(t):h=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=h.offsetGroups,y=p[d];t._offsetIndex=0,(i!=="group"||d)&&(y||(y=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=y.offsetIndex)}});var PD=B((q3e,ED)=>{"use strict";var zle=Pe(),Nle=ff(),Fle=bi();ED.exports=function(r,t){var a,n,i,l=t.scattermode;function o(h){return zle.coerce(n._input,n,Fle,h)}if(t.scattermode==="group")for(i=0;i=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var zD=B((C3e,RD)=>{"use strict";var Ile=Pe(),Hle=Bh();RD.exports=function(e,r){function t(n,i){return Ile.coerce(e,r,Hle,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var ws=B((S3e,FD)=>{"use strict";var Ole=zr(),ND=Pe(),Ble=ND.dateTime2ms,j1=ND.incrementMonth,Yle=Mt(),Gle=Yle.ONEAVGMONTH;FD.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var l=r[a+"period"],o;if(Ole(l)){if(l=+l,l<=0)return{vals:n}}else if(typeof l=="string"&&l.charAt(0)==="M"){var s=+l.substring(1);if(s>0&&Math.round(s)===s)o=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",h=r[a+"period0"],d=Ble(h,u)||0,p=[],y=[],m=[],b=n.length,_=0;_w;)k=j1(k,-o,u);for(;k<=w;)k=j1(k,o,u);M=j1(k,-o,u)}else{for(x=Math.round((w-d)/l),k=d+x*l;k>w;)k-=l;for(;k<=w;)k+=l;M=k-l}p[_]=f?M:c?k:(M+k)/2,y[_]=M,m[_]=k}return{vals:p,starts:y,ends:m}}});var OD=B((L3e,HD)=>{"use strict";var xx=Hn().hasColorscale,bx=td(),ID=_n();HD.exports=function(r,t){ID.hasLines(t)&&xx(t,"line")&&bx(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),ID.hasMarkers(t)&&(xx(t,"marker")&&bx(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),xx(t,"marker.line")&&bx(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var _x=B((D3e,BD)=>{"use strict";var Rt=Pe();BD.exports=function(r,t){for(var a=0;a{"use strict";var YD=Pe();GD.exports=function(r,t){YD.isArrayOrTypedArray(t.selectedpoints)&&YD.tagSelected(r,t)}});var kx=B((P3e,$D)=>{"use strict";var UD=zr(),Tx=Pe(),Nv=Jr(),VD=ws(),wx=Mt().BADNUM,Mx=_n(),Ule=OD(),Vle=_x(),Wle=zv();function Xle(e,r){var t=e._fullLayout,a=r._xA=Nv.getFromId(e,r.xaxis||"x","x"),n=r._yA=Nv.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),l=n.makeCalcdata(r,"y"),o=VD(r,a,"x",i),s=VD(r,n,"y",l),u=o.vals,f=s.vals,c=r._length,h=new Array(c),d=r.ids,p=Ax(r,t,a,n),y=!1,m,b,_,w,x,M;ZD(t,r);var k="x",A="y",S;if(p)Tx.pushUnique(p.traceIndices,r.index),m=p.orientation==="v",m?(A="s",S="x"):(k="s",S="y"),x=p.stackgaps==="interpolate";else{var D=XD(r,c);WD(e,r,a,n,u,f,D)}var E=!!r.xperiodalignment,R=!!r.yperiodalignment;for(b=0;bb&&h[w].gap;)w--;for(M=h[w].s,_=h.length-1;_>w;_--)h[_].s=M;for(;b{"use strict";KD.exports=ep;var Zle=Pe().distinctVals;function ep(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";var Qn=zr(),no=Pe().isArrayOrTypedArray,cf=Mt().BADNUM,Jle=yr(),Fv=Jr(),$le=ys().getAxisGroup,rp=QD();function Kle(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;us+l||!Qn(o))}for(var f=0;f{"use strict";var aE=kx(),nE=hf().setGroupPositions;function uoe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;uD[f]&&f{"use strict";var coe=Yr(),fE=Mt(),Iv=fE.BADNUM,cE=fE.LOG_CLIP,oE=cE+.5,sE=cE-.5,tp=Pe(),voe=tp.segmentsIntersect,uE=tp.constrain,Ex=A1();vE.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,l=n.type==="log",o=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,h=t.connectGaps,d=t.baseTolerance,p=t.shape,y=p==="linear",m=a.fill&&a.fill!=="none",b=[],_=Ex.minTolerance,w=r.length,x=new Array(w),M=0,k,A,S,D,E,R,N,I,H,U,X,Y,O,G,J,$;function re(Re){var ne=r[Re];if(!ne)return!1;var ce=t.linearized?n.l2p(ne.x):n.c2p(ne.x),Le=t.linearized?i.l2p(ne.y):i.c2p(ne.y);if(ce===Iv){if(l&&(ce=n.c2p(ne.x,!0)),ce===Iv)return!1;o&&Le===Iv&&(ce*=Math.abs(n._m*u*(n._m>0?oE:sE)/(i._m*s*(i._m>0?oE:sE)))),ce*=1e3}if(Le===Iv){if(o&&(Le=i.c2p(ne.y,!0)),Le===Iv)return!1;Le*=1e3}return[ce,Le]}function le(Re,ne,ce,Le){var Se=ce-Re,or=Le-ne,lr=.5-Re,ar=.5-ne,Ar=Se*Se+or*or,Br=Se*lr+or*ar;if(Br>0&&Br1||Math.abs(lr.y-ce[0][1])>1)&&(lr=[lr.x,lr.y],Le&&qe(lr,Re)se||Re[1]<_e||Re[1]>V)return[uE(Re[0],be,se),uE(Re[1],_e,V)]}function Ve(Re,ne){if(Re[0]===ne[0]&&(Re[0]===be||Re[0]===se)||Re[1]===ne[1]&&(Re[1]===_e||Re[1]===V))return!0}function Ge(Re,ne){var ce=[],Le=Ne(Re),Se=Ne(ne);return Le&&Se&&Ve(Le,Se)||(Le&&ce.push(Le),Se&&ce.push(Se)),ce}function De(Re,ne,ce){return function(Le,Se){var or=Ne(Le),lr=Ne(Se),ar=[];if(or&&lr&&Ve(or,lr))return ar;or&&ar.push(or),lr&&ar.push(lr);var Ar=2*tp.constrain((Le[Re]+Se[Re])/2,ne,ce)-((or||Le)[Re]+(lr||Se)[Re]);if(Ar){var Br;or&&lr?Br=Ar>0==or[Re]>lr[Re]?or:lr:Br=or||lr,Br[Re]+=Ar}return ar}}var He;p==="linear"||p==="spline"?He=Ee:p==="hv"||p==="vh"?He=Ge:p==="hvh"?He=De(0,be,se):p==="vhv"&&(He=De(1,_e,V));function Oe(Re,ne){var ce=ne[0]-Re[0],Le=(ne[1]-Re[1])/ce,Se=(Re[1]*ne[0]-ne[1]*Re[0])/ce;return Se>0?[Le>0?be:se,V]:[Le>0?se:be,_e]}function ie(Re){var ne=Re[0],ce=Re[1],Le=ne===x[M-1][0],Se=ce===x[M-1][1];if(!(Le&&Se))if(M>1){var or=ne===x[M-2][0],lr=ce===x[M-2][1];Le&&(ne===be||ne===se)&&or?lr?M--:x[M-1]=Re:Se&&(ce===_e||ce===V)&&lr?or?M--:x[M-1]=Re:x[M++]=Re}else x[M++]=Re}function Ae(Re){x[M-1][0]!==Re[0]&&x[M-1][1]!==Re[1]&&ie([ke,ge]),ie(Re),ze=null,ke=ge=0}var Ze=tp.isArrayOrTypedArray(c);function cr(Re){if(Re&&f&&(Re.i=k,Re.d=r,Re.trace=a,Re.marker=Ze?c[Re.i]:c,Re.backoff=f),fe=Re[0]/s,pe=Re[1]/u,W=Re[0]se?se:0,xe=Re[1]<_e?_e:Re[1]>V?V:0,W||xe){if(!M)x[M++]=[W||Re[0],xe||Re[1]];else if(ze){var ne=He(ze,Re);ne.length>1&&(Ae(ne[0]),x[M++]=ne[1])}else Fe=He(x[M-1],Re)[0],x[M++]=Fe;var ce=x[M-1];W&&xe&&(ce[0]!==W||ce[1]!==xe)?(ze&&(ke!==W&&ge!==xe?ie(ke&&ge?Oe(ze,Re):[ke||W,ge||xe]):ke&&ge&&ie([ke,ge])),ie([W,xe])):ke-W&&ge-xe&&ie([W||ke,xe||ge]),ze=Re,ke=W,ge=xe}else ze&&Ae(He(ze,Re)[0]),x[M++]=Re}for(k=0;kQ(R,fr))break;S=R,O=H[0]*I[0]+H[1]*I[1],O>X?(X=O,D=R,N=!1):O=r.length||!R)break;cr(R),A=R}}ze&&ie([ke||ze[0],ge||ze[1]]),b.push(x.slice(0,M))}var oe=p.slice(p.length-1);if(f&&oe!=="h"&&oe!=="v"){for(var Ce=!1,Ie=-1,We=[],Ue=0;Ue{"use strict";var dE={tonextx:1,tonexty:1,tonext:1};pE.exports=function(r,t,a){var n,i,l,o,s,u={},f=!1,c=-1,h=0,d=-1;for(i=0;i=0?s=d:(s=d=h,h++),s{"use strict";var Mi=kr(),hoe=yr(),Hv=Pe(),df=Hv.ensureSingle,gE=Hv.identity,zt=Yr(),pf=_n(),doe=hE(),poe=mE(),ap=P3().tester;xE.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,c=poe(r,t,a);if(o=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),o.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),o.order(),moe(r,o,t),f){l&&(s=l());var h=Mi.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});h.each(function(){n.selectAll("g.trace").each(function(d,p){yE(r,p,t,d,c,this,i)})})}else o.each(function(d,p){yE(r,p,t,d,c,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function moe(e,r,t){r.each(function(a){var n=df(Mi.select(this),"g","fills");zt.setClipUrl(n,t.layerClipId,e);var i=a[0].trace,l=[];i._ownfill&&l.push("_ownFill"),i._nexttrace&&l.push("_nextFill");var o=n.selectAll("g").data(l,gE);o.enter().append("g"),o.exit().each(function(s){i[s]=null}).remove(),o.order().each(function(s){i[s]=df(Mi.select(this),"path","js-fill")})})}function yE(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;yoe(e,r,t,a,n);var u=!!l&&l.duration>0;function f(De){return u?De.transition():De}var c=t.xaxis,h=t.yaxis,d=a[0].trace,p=d.line,y=Mi.select(i),m=df(y,"g","errorbars"),b=df(y,"g","lines"),_=df(y,"g","points"),w=df(y,"g","text");if(hoe.getComponentMethod("errorbars","plot")(e,m,t,l),d.visible!==!0)return;f(y).style("opacity",d.opacity);var x,M,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var A,S;k==="y"?(A=1,S=h.c2p(0,!0)):k==="x"&&(A=0,S=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=y;var D="",E=[],R=d._prevtrace,N=null,I=null;R&&(D=R._prevRevpath||"",M=R._nextFill,E=R._ownPolygons,N=R._fillsegments,I=R._fillElement);var H,U,X="",Y="",O,G,J,$,re,le,fe=[];d._polygons=[];var pe=[],Q=[],qe=Hv.noop;if(x=d._ownFill,pf.hasLines(d)||d.fill!=="none"){M&&M.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(O=zt.steps(p.shape),G=zt.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?O=G=function(De){var He=De[De.length-1];return De.length>1&&De[0][0]===He[0]&&De[0][1]===He[1]?zt.smoothclosed(De.slice(1),p.smoothing):zt.smoothopen(De,p.smoothing)}:O=G=function(De){return"M"+De.join("L")},J=function(De){return G(De.reverse())},Q=doe(a,{xaxis:c,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),pe=new Array(Q.length);var ve=0;for(s=0;s=o[0]&&y.x<=o[1]&&y.y>=s[0]&&y.y<=s[1]}),h=Math.ceil(c.length/f),d=0;n.forEach(function(y,m){var b=y[0].trace;pf.hasMarkers(b)&&b.marker.maxdisplayed>0&&m{"use strict";_E.exports={container:"marker",min:"cmin",max:"cmax"}});var TE=B((B3e,wE)=>{"use strict";var ip=Jr();wE.exports=function(r,t,a){var n={},i={_fullLayout:a},l=ip.getFromTrace(i,t,"x"),o=ip.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=ip.tickText(l,l.c2l(s),!0).text,n.yLabel=ip.tickText(o,o.c2l(u),!0).text,n}});var Nx=B((Y3e,ME)=>{"use strict";var Px=kr(),mf=Yr(),goe=yr();function xoe(e){var r=Px.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=Px.select(this),n=t.trace||t[0].trace;Rx(a,n,e)}),r.selectAll("g.text").each(function(t){var a=Px.select(this),n=t.trace||t[0].trace;zx(a,n,e)}),r.selectAll("g.trace path.js-line").call(mf.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(mf.fillGroupStyle,e,!1),goe.getComponentMethod("errorbars","style")(r)}function Rx(e,r,t){mf.pointStyle(e.selectAll("path.point"),r,t)}function zx(e,r,t){mf.textPointStyle(e.selectAll("text"),r,t)}function boe(e,r,t){var a=r[0].trace;a.selectedpoints?(mf.selectedPointStyle(t.selectAll("path.point"),a),mf.selectedTextStyle(t.selectAll("text"),a)):(Rx(t,a,e),zx(t,a,e))}ME.exports={style:xoe,stylePoints:Rx,styleText:zx,styleOnSelect:boe}});var kE=B((G3e,AE)=>{"use strict";var yf=xr(),_oe=_n();AE.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&yf.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,l=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&yf.opacity(i)?i:l&&yf.opacity(l)&&(t.mlw||((r.marker||{}).line||{}).width)?l:"",n?yf.opacity(n)<.3?yf.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&yf.opacity(a)&&_oe.hasLines(r)&&r.line.width?a:r.fillcolor)}});var SE=B((U3e,CE)=>{"use strict";var lp=Pe(),qE=gi(),woe=yr(),Toe=kE(),Fx=xr(),Moe=lp.fillText;CE.exports=function(r,t,a,n){var i=r.cd,l=i[0].trace,o=r.xa,s=r.ya,u=o.c2p(t),f=s.c2p(a),c=[u,f],h=l.hoveron||"",d=l.mode.indexOf("markers")!==-1?3:.5,p=!!l.xperiodalignment,y=!!l.yperiodalignment;if(h.indexOf("points")!==-1){var m=function(Y){if(p){var O=o.c2p(Y.xStart),G=o.c2p(Y.xEnd);return u>=Math.min(O,G)&&u<=Math.max(O,G)?0:1/0}var J=Math.max(3,Y.mrc||0),$=1-1/J,re=Math.abs(o.c2p(Y.x)-u);return re=Math.min(O,G)&&f<=Math.max(O,G)?0:1/0}var J=Math.max(3,Y.mrc||0),$=1-1/J,re=Math.abs(s.c2p(Y.y)-f);return refe!=V>=fe&&(be=qe[Q-1][0],se=qe[Q][0],V-_e&&(ve=be+(se-be)*(fe-_e)/(V-_e),J=Math.min(J,ve),$=Math.max($,ve)));return J=Math.max(J,0),$=Math.min($,o._length),{x0:J,x1:$,y0:fe,y1:fe}}if(h.indexOf("fills")!==-1&&l._fillElement){var H=N(l._fillElement)&&!N(l._fillExclusionElement);if(H){var U=I(l._polygons);U===null&&(U={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var X=Fx.defaultLine;return Fx.opacity(l.fillcolor)?X=l.fillcolor:Fx.opacity((l.line||{}).color)&&(X=l.line.color),lp.extendFlat(r,{distance:r.maxHoverDistance,x0:U.x0,x1:U.x1,y0:U.y0,y1:U.y1,color:X,hovertemplate:!1}),delete r.index,l.text&&!lp.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var EE=B((V3e,DE)=>{"use strict";var LE=_n();DE.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o=a[0].trace,s,u,f,c,h=!LE.hasMarkers(o)&&!LE.hasText(o);if(h)return[];if(t===!1)for(s=0;s{"use strict";PE.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var IE=B((X3e,FE)=>{"use strict";var Ov=yr().traceIs,Ix=f2();FE.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Aoe(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Aoe(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=koe(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var l=a+"calendar",o=i[l],s={noMultiCategory:!Ov(i,"cartesian")||Ov(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,NE(i,a)){var u=zE(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(NE(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function zE(e){return{v:"x",h:"y"}[e.orientation||"v"]}function NE(e,r){var t=zE(e),a=Ov(e,"box-violin"),n=Ov(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var OE=B((Z3e,HE)=>{"use strict";var qoe=gn().isTypedArraySpec;function Coe(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,l;if(r.axData)n=r.axData;else for(n=[],i=0;i0||qoe(i),o;l&&(o="array");var s=a("categoryorder",o),u;s==="array"&&(u=a("categoryarray")),!l&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=Coe(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var GE=B((J3e,YE)=>{"use strict";var BE=Rn().mix,Soe=zn(),Loe=Pe();YE.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(S,D){return Loe.coerce2(r,t,n.attributes,S,D)}var o=l("linecolor",i),s=l("linewidth"),u=a("showline",n.showLine||!!o||!!s);u||(delete t.linecolor,delete t.linewidth);var f=BE(i,n.bgColor,n.blend||Soe.lightFraction).toRgbString(),c=l("gridcolor",f),h=l("gridwidth"),d=l("griddash"),p=a("showgrid",n.showGrid||!!c||!!h||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var y=BE(t.gridcolor,n.bgColor,67).toRgbString(),m=l("minor.gridcolor",y),b=l("minor.gridwidth",t.gridwidth||1),_=l("minor.griddash",t.griddash||"solid"),w=a("minor.showgrid",!!m||!!b||!!_);w||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var x=l("zerolinelayer"),M=l("zerolinecolor",i),k=l("zerolinewidth"),A=a("zeroline",n.showGrid||!!M||!!k);A||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var sp=B(($3e,JE)=>{"use strict";var UE=zr(),Doe=yr(),Bv=Pe(),Eoe=ot(),Poe=On(),Hx=bn(),VE=Kh(),WE=Qh(),Roe=ed(),zoe=rd(),Noe=OE(),Foe=GE(),Ioe=L2(),XE=md(),op=Aa().WEEKDAY_PATTERN,Hoe=Aa().HOUR_PATTERN;JE.exports=function(r,t,a,n,i){var l=n.letter,o=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",h;if(c==="date"){var d=Doe.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(h=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=Bv.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:l==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),XE(t,i),Ioe(r,t,a,n),Noe(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var y=a("color"),m=y!==Hx.color.dflt?y:o.color,b=s.label||i._dfltTitle[l];if(zoe(r,t,a,c,n),!u)return t;a("title.text",b),Bv.coerceFont(a,"title.font",o,{overrideDflt:{size:Bv.bigFont(o.size),color:m}}),VE(r,t,a,c);var _=n.hasMinor;if(_&&(Eoe.newContainer(t,"minor"),VE(r,t,a,c,{isMinor:!0})),Roe(r,t,a,c,n),WE(r,t,a,n),_){var w=n.isMinor;n.isMinor=!0,WE(r,t,a,n),n.isMinor=w}Foe(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:_,attributes:Hx}),_&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var x=c==="multicategory";if(!n.noTickson&&(c==="category"||x)&&(t.ticks||t.showgrid)&&(x?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),x){var M=a("showdividers");M&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(Poe(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Ooe}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var l="",o,s;if(i.length===2){for(o=0;o<2;o++)if(s=ZE(i[o]),s){l=op;break}}var u=a("pattern",l);if(u===op)for(o=0;o<2;o++)s=ZE(i[o]),s&&(r.bounds[o]=i[o]=s-1);if(u)for(o=0;o<2;o++)switch(s=i[o],u){case op:if(!UE(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[o]=i[o]=s;break;case Hoe:if(!UE(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[o]=i[o]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var Yoe=zr(),up=Pe();$E.exports=function(r,t,a,n){var i=n.counterAxes||[],l=n.overlayableAxes||[],o=n.letter,s=n.grid,u=n.overlayingDomain,f,c,h,d,p,y;s&&(c=s._domains[o][s._axisMap[t._id]],f=s._anchors[t._id],c&&(h=s[o+"side"].split(" ")[0],d=s.domain[o][h==="right"||h==="top"?1:0])),c=c||[0,1],f=f||(Yoe(r.position)?"free":i[0]||"free"),h=h||(o==="x"?"bottom":"left"),d=d||0,p=0,y=!1;var m=up.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=up.coerce(r,t,{side:{valType:"enumerated",values:o==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(m==="free"){if(o==="y"){var _=a("autoshift");_&&(d=b==="left"?u[0]:u[1],y=t.automargin?t.automargin:!0,p=b==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",y);var w=!1;if(l.length&&(w=up.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!w){var x=a("domain",c);x[0]>x[1]-1/4096&&(t.domain=c),up.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var iP=B((Q3e,nP)=>{"use strict";var Ts=Pe(),KE=xr(),Goe=Hi().isUnifiedHover,Uoe=t3(),QE=ot(),Voe=xu(),jE=bn(),Woe=IE(),eP=sp(),Xoe=ys(),rP=fp(),Bx=Ut(),$i=Bx.id2name,tP=Bx.name2id,Zoe=Aa().AX_ID_PATTERN,aP=yr(),cp=aP.traceIs,Ox=aP.getComponentMethod;function vp(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}nP.exports=function(r,t,a){var n=t.autotypenumbers,i={},l={},o={},s={},u={},f={},c={},h={},d={},p={},y,m;for(y=0;y{"use strict";var Joe=kr(),lP=yr(),hp=Pe(),qn=Yr(),dp=Jr();oP.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){dp.redrawComponents(r);return}function l(m){var b=m.xaxis,_=m.yaxis;i._defs.select("#"+m.clipId+"> rect").call(qn.setTranslate,0,0).call(qn.setScale,1,1),m.plot.call(qn.setTranslate,b._offset,_._offset).call(qn.setScale,1,1);var w=m.plot.selectAll(".scatterlayer .trace");w.selectAll(".point").call(qn.setPointGroupScale,1,1),w.selectAll(".textpoint").call(qn.setTextPointsScale,1,1),w.call(qn.hideOutsideRangePoints,m)}function o(m,b){var _=m.plotinfo,w=_.xaxis,x=_.yaxis,M=w._length,k=x._length,A=!!m.xr1,S=!!m.yr1,D=[];if(A){var E=hp.simpleMap(m.xr0,w.r2l),R=hp.simpleMap(m.xr1,w.r2l),N=E[1]-E[0],I=R[1]-R[0];D[0]=(E[0]*(1-b)+b*R[0]-E[0])/(E[1]-E[0])*M,D[2]=M*(1-b+b*I/N),w.range[0]=w.l2r(E[0]*(1-b)+b*R[0]),w.range[1]=w.l2r(E[1]*(1-b)+b*R[1])}else D[0]=0,D[2]=M;if(S){var H=hp.simpleMap(m.yr0,x.r2l),U=hp.simpleMap(m.yr1,x.r2l),X=H[1]-H[0],Y=U[1]-U[0];D[1]=(H[1]*(1-b)+b*U[1]-H[1])/(H[0]-H[1])*k,D[3]=k*(1-b+b*Y/X),x.range[0]=w.l2r(H[0]*(1-b)+b*U[0]),x.range[1]=x.l2r(H[1]*(1-b)+b*U[1])}else D[1]=0,D[3]=k;dp.drawOne(r,w,{skipTitle:!0}),dp.drawOne(r,x,{skipTitle:!0}),dp.redrawComponents(r,[w._id,x._id]);var O=A?M/D[2]:1,G=S?k/D[3]:1,J=A?D[0]:0,$=S?D[1]:0,re=A?D[0]/D[2]*M:0,le=S?D[1]/D[3]*k:0,fe=w._offset-re,pe=x._offset-le;_.clipRect.call(qn.setTranslate,J,$).call(qn.setScale,1/O,1/G),_.plot.call(qn.setTranslate,fe,pe).call(qn.setScale,O,G),qn.setPointGroupScale(_.zoomScalePts,1/O,1/G),qn.setTextPointsScale(_.zoomScaleTxt,1/O,1/G)}var s;n&&(s=n());function u(){for(var m={},b=0;ba.duration?(u(),d=window.cancelAnimationFrame(y)):d=window.requestAnimationFrame(y)}return c=Date.now(),d=window.requestAnimationFrame(y),Promise.resolve()}});var gl=B(Na=>{"use strict";var mp=kr(),uP=yr(),Ms=Pe(),$oe=Pt(),Koe=Yr(),fP=_g().getModuleCalcData,io=Ut(),Ai=Aa(),Qoe=Qo(),$r=Ms.ensureSingle;function pp(e,r,t){return Ms.ensureSingle(e,r,t,function(a){a.datum(t)})}var As=Ai.zindexSeparator;Na.name="cartesian";Na.attr=["xaxis","yaxis"];Na.idRoot=["x","y"];Na.idRegex=Ai.idRegex;Na.attrRegex=Ai.attrRegex;Na.attributes=RE();Na.layoutAttributes=bn();Na.supplyLayoutDefaults=iP();Na.transitionAxes=sP();Na.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,l=i,o={},s={},u,f,c;for(u=0;u0){var d=h.id;if(d.indexOf(As)!==-1)continue;d+=As+(u+1),h=Ms.extendFlat({},h,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],y,m=0;m1&&(M+=As+x),w.push(o+M),l=0;l1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=$r(a,"path","xlines-above"),r.ylines=$r(a,"path","ylines-above"),r.xaxislayer=$r(a,"g","xaxislayer-above"),r.yaxislayer=$r(a,"g","yaxislayer-above");else{if(!l){var h=$r(a,"g","layer-subplot");r.shapelayer=$r(h,"g","shapelayer"),r.imagelayer=$r(h,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=$r(a,"g","minor-gridlayer"),r.gridlayer=$r(a,"g","gridlayer"),r.zerolinelayer=$r(a,"g","zerolinelayer"));var d=$r(a,"g","layer-between");r.shapelayerBetween=$r(d,"g","shapelayer"),r.imagelayerBetween=$r(d,"g","imagelayer"),$r(a,"path","xlines-below"),$r(a,"path","ylines-below"),r.overlinesBelow=$r(a,"g","overlines-below"),$r(a,"g","xaxislayer-below"),$r(a,"g","yaxislayer-below"),r.overaxesBelow=$r(a,"g","overaxes-below")}r.overplot=$r(a,"g","overplot"),r.plot=$r(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=$r(a,"g","zerolinelayer-above"),l||(r.xlines=$r(a,"path","xlines-above"),r.ylines=$r(a,"path","ylines-above"),r.overlinesAbove=$r(a,"g","overlines-above"),$r(a,"g","xaxislayer-above"),$r(a,"g","yaxislayer-above"),r.overaxesAbove=$r(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+o),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+o),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,y=n+"-x",m=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,$r(c.overlinesBelow,"path",y),$r(c.overlinesBelow,"path",m),$r(c.overaxesBelow,"g",y),$r(c.overaxesBelow,"g",m),r.plot=$r(c.overplot,"g",n),$r(c.overlinesAbove,"path",y),$r(c.overlinesAbove,"path",m),$r(c.overaxesAbove,"g",y),$r(c.overaxesAbove,"g",m),r.xlines=p.select(".overlines-"+o).select("."+y),r.ylines=p.select(".overlines-"+s).select("."+m),r.xaxislayer=p.select(".overaxes-"+o).select("."+y),r.yaxislayer=p.select(".overaxes-"+s).select("."+m)}l||(u||(pp(r.minorGridlayer,"g",r.xaxis._id),pp(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(io.idSort),pp(r.gridlayer,"g",r.xaxis._id),pp(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(io.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function hP(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=mp.select(this);f.remove(),dP(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],l=0;l{"use strict";var yp=_n();pP.exports={hasLines:yp.hasLines,hasMarkers:yp.hasMarkers,hasText:yp.hasText,isBubble:yp.isBubble,attributes:bi(),layoutAttributes:Bh(),supplyDefaults:LD(),crossTraceDefaults:PD(),supplyLayoutDefaults:zD(),calc:kx().calc,crossTraceCalc:lE(),arraysToCalcdata:_x(),plot:bE(),colorbar:np(),formatLabels:TE(),style:Nx().style,styleOnSelect:Nx().styleOnSelect,hoverPoints:SE(),selectPoints:EE(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:gl(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var xP=B((txe,gP)=>{"use strict";var ese=kr(),rse=xr(),yP=V3(),Yx=Pe(),tse=Yx.strScale,ase=Yx.strRotate,nse=Yx.strTranslate;gP.exports=function(r,t,a){var n=r.node(),i=yP[a.arrowhead||0],l=yP[a.startarrowhead||0],o=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*o+a.standoff,h=l.backoff*s+a.startstandoff,d,p,y,m;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var b=d.x-p.x,_=d.y-p.y;if(y=Math.atan2(_,b),m=y+Math.PI,c&&h&&c+h>Math.sqrt(b*b+_*_)){H();return}if(c){if(c*c>b*b+_*_){H();return}var w=c*Math.cos(y),x=c*Math.sin(y);p.x+=w,p.y+=x,r.attr({x2:p.x,y2:p.y})}if(h){if(h*h>b*b+_*_){H();return}var M=h*Math.cos(y),k=h*Math.sin(y);d.x-=M,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var A=n.getTotalLength(),S="";if(A{"use strict";var bP=kr(),Gx=yr(),ise=Pt(),oo=Pe(),Ux=oo.strTranslate,Gv=Jr(),ks=xr(),xl=Yr(),_P=gi(),Vx=da(),Wx=Kl(),Yv=mi(),lse=ot().arrayEditor,ose=xP();MP.exports={draw:sse,drawOne:wP,drawRaw:TP};function sse(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Se="right":Se="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Se]}for(var _e=!1,V=["x","y"],te=0;te1)&&(ke===xe?(fr=ge.r2fraction(r["a"+W]),(fr<0||fr>1)&&(_e=!0)):_e=!0),He=ge._offset+ge.r2p(r[W]),Ae=.5}else{var oe=cr==="domain";W==="x"?(ie=r[W],He=oe?ge._offset+ge._length*ie:He=o.l+o.w*ie):(ie=1-r[W],He=oe?ge._offset+ge._length*ie:He=o.t+o.h*ie),Ae=r.showarrow?.5:ie}if(r.showarrow){De.head=He;var Ce=r["a"+W];if(Ze=Fe*se(.5,r.xanchor)-Ee*se(.5,r.yanchor),ke===xe){var Ie=Gv.getRefType(ke);Ie==="domain"?(W==="y"&&(Ce=1-Ce),De.tail=ge._offset+ge._length*Ce):Ie==="paper"?W==="y"?(Ce=1-Ce,De.tail=o.t+o.h*Ce):De.tail=o.l+o.w*Ce:De.tail=ge._offset+ge.r2p(Ce),Oe=Ze}else De.tail=He+Ce,Oe=Ze+Ce;De.text=De.tail+Ze;var We=l[W==="x"?"width":"height"];if(xe==="paper"&&(De.head=oo.constrain(De.head,1,We-1)),ke==="pixel"){var Ue=-Math.max(De.tail-3,De.text),Je=Math.min(De.tail+3,De.text)-We;Ue>0?(De.tail+=Ue,De.text+=Ue):Je>0&&(De.tail-=Je,De.text-=Je)}De.tail+=Ge,De.head+=Ge}else Ze=Ne*se(Ae,Ve),Oe=Ze,De.text=He+Ze;De.text+=Ge,Ze+=Ge,Oe+=Ge,r["_"+W+"padplus"]=Ne/2+Oe,r["_"+W+"padminus"]=Ne/2-Oe,r["_"+W+"size"]=Ne,r["_"+W+"shift"]=Ze}if(_e){A.remove();return}var je=0,vr=0;if(r.align!=="left"&&(je=(Q-fe)*(r.align==="center"?.5:1)),r.valign!=="top"&&(vr=(qe-pe)*(r.valign==="middle"?.5:1)),re)$.select("svg").attr({x:E+je-1,y:E+vr}).call(xl.setClipUrl,N?y:null,e);else{var $e=E+vr-le.top,Re=E+je-le.left;X.call(Vx.positionText,Re,$e).call(xl.setClipUrl,N?y:null,e)}I.select("rect").call(xl.setRect,E,E,Q,qe),R.call(xl.setRect,S/2,S/2,ve-S,be-S),A.call(xl.setTranslate,Math.round(m.x.text-ve/2),Math.round(m.y.text-be/2)),w.attr({transform:"rotate("+b+","+m.x.text+","+m.y.text+")"});var ne=function(Le,Se){_.selectAll(".annotation-arrow-g").remove();var or=m.x.head,lr=m.y.head,ar=m.x.tail+Le,Ar=m.y.tail+Se,Br=m.x.text+Le,tt=m.y.text+Se,jr=oo.rotationXYMatrix(b,Br,tt),ra=oo.apply2DTransform(jr),It=oo.apply2DTransform2(jr),_t=+R.attr("width"),Dt=+R.attr("height"),ga=Br-.5*_t,xa=ga+_t,Gt=tt-.5*Dt,$a=Gt+Dt,gr=[[ga,Gt,ga,$a],[ga,$a,xa,$a],[xa,$a,xa,Gt],[xa,Gt,ga,Gt]].map(It);if(!gr.reduce(function(lt,ba){return lt^!!oo.segmentsIntersect(or,lr,or+1e6,lr+1e6,ba[0],ba[1],ba[2],ba[3])},!1)){gr.forEach(function(lt){var ba=oo.segmentsIntersect(ar,Ar,or,lr,lt[0],lt[1],lt[2],lt[3]);ba&&(ar=ba.x,Ar=ba.y)});var ft=r.arrowwidth,Wr=r.arrowcolor,wt=r.arrowside,Et=_.append("g").style({opacity:ks.opacity(Wr)}).classed("annotation-arrow-g",!0),ct=Et.append("path").attr("d","M"+ar+","+Ar+"L"+or+","+lr).style("stroke-width",ft+"px").call(ks.stroke,ks.rgb(Wr));if(ose(ct,wt,r),s.annotationPosition&&ct.node().parentNode&&!a){var Tt=or,Ha=lr;if(r.standoff){var ca=Math.sqrt(Math.pow(or-ar,2)+Math.pow(lr-Ar,2));Tt+=r.standoff*(ar-or)/ca,Ha+=r.standoff*(Ar-lr)/ca}var ai=Et.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ar-Tt)+","+(Ar-Ha),transform:Ux(Tt,Ha)}).style("stroke-width",ft+6+"px").call(ks.stroke,"rgba(0,0,0,0)").call(ks.fill,"rgba(0,0,0,0)"),ni,ta;Yv.init({element:ai.node(),gd:e,prepFn:function(){var lt=xl.getTranslate(A);ni=lt.x,ta=lt.y,n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(lt,ba){var Do=ra(ni,ta),Eo=Do[0]+lt,Ll=Do[1]+ba;A.call(xl.setTranslate,Eo,Ll),d("x",lo(n,lt,"x",o,r)),d("y",lo(i,ba,"y",o,r)),r.axref===r.xref&&d("ax",lo(n,lt,"ax",o,r)),r.ayref===r.yref&&d("ay",lo(i,ba,"ay",o,r)),Et.attr("transform",Ux(lt,ba)),w.attr({transform:"rotate("+b+","+Eo+","+Ll+")"})},doneFn:function(){Gx.call("_guiRelayout",e,p());var lt=document.querySelector(".js-notes-box-panel");lt&<.redraw(lt.selectedObj)}})}}};if(r.showarrow&&ne(0,0),x){var ce;Yv.init({element:A.node(),gd:e,prepFn:function(){ce=w.attr("transform")},moveFn:function(Le,Se){var or="pointer";if(r.showarrow)r.axref===r.xref?d("ax",lo(n,Le,"ax",o,r)):d("ax",r.ax+Le),r.ayref===r.yref?d("ay",lo(i,Se,"ay",o.w,r)):d("ay",r.ay+Se),ne(Le,Se);else{if(a)return;var lr,ar;if(n)lr=lo(n,Le,"x",o,r);else{var Ar=r._xsize/o.w,Br=r.x+(r._xshift-r.xshift)/o.w-Ar/2;lr=Yv.align(Br+Le/o.w,Ar,0,1,r.xanchor)}if(i)ar=lo(i,Se,"y",o,r);else{var tt=r._ysize/o.h,jr=r.y-(r._yshift+r.yshift)/o.h-tt/2;ar=Yv.align(jr-Se/o.h,tt,0,1,r.yanchor)}d("x",lr),d("y",ar),(!n||!i)&&(or=Yv.getCursor(n?.5:lr,i?.5:ar,r.xanchor,r.yanchor))}w.attr({transform:Ux(Le,Se)+ce}),Wx(A,or)},clickFn:function(Le,Se){r.captureevents&&e.emit("plotly_clickannotation",k(Se))},doneFn:function(){Wx(A),Gx.call("_guiRelayout",e,p());var Le=document.querySelector(".js-notes-box-panel");Le&&Le.redraw(Le.selectedObj)}})}}s.annotationText?X.call(Vx.makeEditable,{delegate:A,gd:e}).call(Y).on("edit",function(G){r.text=G,this.call(Y),d("text",G),n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),Gx.call("_guiRelayout",e,p())}):X.call(Y)}});var LP=B((nxe,SP)=>{"use strict";var AP=Pe(),use=yr(),kP=ot().arrayEditor;SP.exports={hasClickToShow:fse,onClick:cse};function fse(e,r){var t=CP(e,r);return t.on.length>0||t.explicitOff.length>0}function cse(e,r){var t=CP(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},l=e._fullLayout.annotations,o,s;if(a.length||n.length){for(o=0;o{"use strict";var Xx=Pe(),gf=xr();DP.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),l=n("bordercolor"),o=gf.opacity(l);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),Xx.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),h,d;c.indexOf("end")!==-1&&(h=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",h),n("startarrowsize",d)),n("arrowcolor",o?t.bordercolor:gf.defaultLine),n("arrowwidth",(o&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),y=a.hoverlabel||{};if(p){var m=n("hoverlabel.bgcolor",y.bgcolor||(gf.opacity(i)?gf.rgb(i):gf.defaultLine)),b=n("hoverlabel.bordercolor",y.bordercolor||gf.contrast(m)),_=Xx.extendFlat({},y.font);_.color||(_.color=b),Xx.coerceFont(n,"hoverlabel.font",_)}n("captureevents",!!p)}});var PP=B((lxe,EP)=>{"use strict";var Jx=Pe(),qs=Jr(),vse=On(),hse=Zx(),dse=lf();EP.exports=function(r,t){vse(r,t,{name:"annotations",handleItemDefaults:pse})};function pse(e,r,t){function a(w,x){return Jx.coerce(e,r,dse,w,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){hse(e,r,t,a);for(var l=r.showarrow,o=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=o[f],h=qs.coerceRef(e,r,u,c,"","paper");if(h!=="paper"){var d=qs.getFromId(u,h);d._annIndices.push(r._index)}if(qs.coercePosition(r,u,a,h,c,.5),l){var p="a"+c,y=qs.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);y!=="pixel"&&y!==h&&(y=r[p]="pixel");var m=y==="pixel"?s[f]:.4;qs.coercePosition(r,u,a,y,p,m)}a(c+"anchor"),a(c+"shift")}if(Jx.noneOrAll(e,r,["x","y"]),l&&Jx.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),_=a("yclick");r._xclick=b===void 0?r.x:qs.cleanPosition(b,u,r.xref),r._yclick=_===void 0?r.y:qs.cleanPosition(_,u,r.yref)}}}});var NP=B((oxe,zP)=>{"use strict";var $x=Pe(),Cs=Jr(),mse=gp().draw;zP.exports=function(r){var t=r._fullLayout,a=$x.filterVisible(t.annotations);if(a.length&&r._fullData.length)return $x.syncOrAsync([mse,yse],r)};function yse(e){var r=e._fullLayout;$x.filterVisible(r.annotations).forEach(function(t){var a=Cs.getFromId(e,t.xref),n=Cs.getFromId(e,t.yref),i=Cs.getRefType(t.xref),l=Cs.getRefType(t.yref);t._extremes={},i==="range"&&RP(t,a),l==="range"&&RP(t,n)})}function RP(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],l=e[a+"ref"],o=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,h=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,y=p+f,m=p-f,b;if(o===l){var _=Cs.findExtremes(r,[r.r2c(n)],{ppadplus:h,ppadminus:d}),w=Cs.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,y),ppadminus:Math.max(u,m)});b={min:[_.min[0],w.min[0]],max:[_.max[0],w.max[0]]}}else y=i?y+i:y,m=i?m-i:m,b=Cs.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,h,y),ppadminus:Math.max(u,d,m)});e._extremes[t]=b}});var IP=B((sxe,FP)=>{"use strict";var gse=zr(),xse=ch();FP.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(!(i||l))return;var o=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(d){var p=u[d],y=null;i?y=xse(p,t.range):y=Math.pow(10,p),gse(y)||(y=null),n(f+d,y)}for(var h=0;h{"use strict";var Kx=gp(),HP=LP();OP.exports={moduleType:"component",name:"annotations",layoutAttributes:lf(),supplyLayoutDefaults:PP(),includeBasePlot:wv()("annotations"),calcAutorange:NP(),draw:Kx.draw,drawOne:Kx.drawOne,drawRaw:Kx.drawRaw,hasClickToShow:HP.hasClickToShow,onClick:HP.onClick,convertCoords:IP()}});var xp=B((fxe,YP)=>{"use strict";var dt=lf(),bse=ui().overrideAll,_se=ot().templatedArray;YP.exports=bse(_se("annotation",{visible:dt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:dt.xanchor,xshift:dt.xshift,yanchor:dt.yanchor,yshift:dt.yshift,text:dt.text,textangle:dt.textangle,font:dt.font,width:dt.width,height:dt.height,opacity:dt.opacity,align:dt.align,valign:dt.valign,bgcolor:dt.bgcolor,bordercolor:dt.bordercolor,borderpad:dt.borderpad,borderwidth:dt.borderwidth,showarrow:dt.showarrow,arrowcolor:dt.arrowcolor,arrowhead:dt.arrowhead,startarrowhead:dt.startarrowhead,arrowside:dt.arrowside,arrowsize:dt.arrowsize,startarrowsize:dt.startarrowsize,arrowwidth:dt.arrowwidth,standoff:dt.standoff,startstandoff:dt.startstandoff,hovertext:dt.hovertext,hoverlabel:dt.hoverlabel,captureevents:dt.captureevents}),"calc","from-root")});var UP=B((cxe,GP)=>{"use strict";var Qx=Pe(),wse=Jr(),Tse=On(),Mse=Zx(),Ase=xp();GP.exports=function(r,t,a){Tse(r,t,{name:"annotations",handleItemDefaults:kse,fullLayout:a.fullLayout})};function kse(e,r,t,a){function n(o,s){return Qx.coerce(e,r,Ase,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],wse.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(Mse(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),Qx.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),Qx.noneOrAll(e,r,["ax","ay"])))}});var ZP=B((vxe,XP)=>{"use strict";var VP=Pe(),WP=Jr();XP.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function jx(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function Cse(e,r){var t=jx(e.projection,jx(e.view,jx(e.model,[r[0],r[1],r[2],1])));return t}JP.exports=Cse});var QP=B((dxe,KP)=>{"use strict";var Sse=gp().drawRaw,Lse=$P(),Dse=["x","y","z"];KP.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){o=!0;break}}o?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(l._pdata=Lse(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),Sse(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var rR=B((pxe,eR)=>{"use strict";var Ese=yr(),jP=Pe();eR.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:xp()}}},layoutAttributes:xp(),handleDefaults:UP(),includeBasePlot:Pse,convert:ZP(),draw:QP()};function Pse(e,r){var t=Ese.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var tR=lf(),aR=aa(),nR=bi().line,Rse=fi().dash,ki=mt().extendFlat,zse=ot().templatedArray,mxe=_v(),xf=tn(),Nse=ha().shapeTexttemplateAttrs,Fse=bh();iR.exports=zse("shape",{visible:ki({},xf.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:ki({},xf.legend,{editType:"calc+arraydraw"}),legendgroup:ki({},xf.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:ki({},xf.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:aR({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:ki({},xf.legendrank,{editType:"calc+arraydraw"}),legendwidth:ki({},xf.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:ki({},tR.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:ki({},tR.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:ki({},nR.color,{editType:"arraydraw"}),width:ki({},nR.width,{editType:"calc+arraydraw"}),dash:ki({},Rse,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Nse({},{keys:Object.keys(Fse)}),font:aR({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var sR=B((gxe,oR)=>{"use strict";var Uv=Pe(),bf=Jr(),Ise=On(),Hse=e5(),lR=eo();oR.exports=function(r,t){Ise(r,t,{name:"shapes",handleItemDefaults:Bse})};function Ose(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Bse(e,r,t){function a(G,J){return Uv.coerce(e,r,Hse,G,J)}r._isShape=!0;var n=a("visible");if(n){var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),Uv.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var l=a("path"),o=l?"path":"rect",s=a("type",o),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));for(var c=a("xsizemode"),h=a("ysizemode"),d=["x","y"],p=0;p<2;p++){var y=d[p],m=y+"anchor",b=y==="x"?c:h,_={_fullLayout:t},w,x,M,k=bf.coerceRef(e,r,_,y,void 0,"paper"),A=bf.getRefType(k);if(A==="range"?(w=bf.getFromId(_,k),w._shapeIndices.push(r._index),M=lR.rangeToShapePosition(w),x=lR.shapePositionToRange(w),(w.type==="category"||w.type==="multicategory")&&(a(y+"0shift"),a(y+"1shift"))):x=M=Uv.identity,u){var S=.25,D=.75,E=y+"0",R=y+"1",N=e[E],I=e[R];e[E]=x(e[E],!0),e[R]=x(e[R],!0),b==="pixel"?(a(E,0),a(R,10)):(bf.coercePosition(r,_,a,k,E,S),bf.coercePosition(r,_,a,k,R,D)),r[E]=M(r[E]),r[R]=M(r[R]),e[E]=N,e[R]=I}if(b==="pixel"){var H=e[m];e[m]=x(e[m],!0),bf.coercePosition(r,_,a,k,m,.25),r[m]=M(r[m]),e[m]=H}}u&&Uv.noneOrAll(e,r,["x0","x1","y0","y1"]);var U=s==="line",X,Y;if(u&&(X=a("label.texttemplate")),X||(Y=a("label.text")),Y||X){a("label.textangle");var O=a("label.textposition",U?"middle":"middle center");a("label.xanchor"),a("label.yanchor",Ose(U,O)),a("label.padding"),Uv.coerceFont(a,"label.font",t.font)}}}});var cR=B((xxe,fR)=>{"use strict";var Yse=xr(),uR=Pe();function Gse(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}fR.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),uR.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",Yse.contrast(i)),a("newshape.line.dash")}var l=r.dragmode==="drawline",o=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(o||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",l?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",Gse(l,u)),a("newshape.label.padding"),uR.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var mR=B((bxe,pR)=>{"use strict";var r5=Pe(),_f=Jr(),wf=tv(),hR=eo();pR.exports=function(r){var t=r._fullLayout,a=r5.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n0?u+l:l;return{ppad:l,ppadplus:o?c:h,ppadminus:o?h:c}}else return{ppad:l}}function vR(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,l,o=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],l=r[a+"1"],n&&(o=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],l=r[a+"anchor"]),i!==void 0)return[u(i)+o,u(l)+s];if(r.path){var c=1/0,h=-1/0,d=r.path.match(wf.segmentRE),p,y,m,b,_;for(e.type==="date"&&(u=hR.decodeDate(u)),p=0;ph&&(h=_)));if(h>=c)return[c,h]}}});var xR=B((_xe,gR)=>{"use strict";var yR=s1();gR.exports={moduleType:"component",name:"shapes",layoutAttributes:e5(),supplyLayoutDefaults:sR(),supplyDrawNewShapeDefaults:cR(),includeBasePlot:wv()("shapes"),calcAutorange:mR(),draw:yR.draw,drawOne:yR.drawOne}});var t5=B((Txe,_R)=>{"use strict";var bR=Aa(),Wse=ot().templatedArray,wxe=_v();_R.exports=Wse("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",bR.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",bR.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var TR=B((Mxe,wR)=>{"use strict";var Xse=Pe(),a5=Jr(),Zse=On(),Jse=t5(),$se="images";wR.exports=function(r,t){var a={name:$se,handleItemDefaults:Kse};Zse(r,t,a)};function Kse(e,r,t){function a(h,d){return Xse.coerce(e,r,Jse,h,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var l={_fullLayout:t},o=["x","y"],s=0;s<2;s++){var u=o[s],f=a5.coerceRef(e,r,l,u,"paper",void 0);if(f!=="paper"){var c=a5.getFromId(l,f);c._imgIndices.push(r._index)}a5.coercePosition(r,l,a,f,u,0)}return r}});var qR=B((Axe,kR)=>{"use strict";var MR=kr(),Qse=Yr(),Tf=Jr(),AR=Ut(),jse=Qo();kR.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o{"use strict";var CR=zr(),eue=ch();SR.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(i||l){for(var o=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c{"use strict";DR.exports={moduleType:"component",name:"images",layoutAttributes:t5(),supplyLayoutDefaults:TR(),includeBasePlot:wv()("images"),draw:qR(),convertCoords:LR()}});var bp=B((Cxe,PR)=>{"use strict";PR.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var n5=B((Sxe,zR)=>{"use strict";var rue=aa(),tue=zn(),aue=mt().extendFlat,nue=ui().overrideAll,iue=_h(),RR=ot().templatedArray,lue=RR("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});zR.exports=nue(RR("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:lue,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:aue(iue({editType:"arraydraw"}),{}),font:rue({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:tue.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var HR=B((Lxe,IR)=>{"use strict";var _p=Pe(),NR=On(),FR=n5(),oue=bp(),sue=oue.name,uue=FR.buttons;IR.exports=function(r,t){var a={name:sue,handleItemDefaults:fue};NR(r,t,a)};function fue(e,r,t){function a(l,o){return _p.coerce(e,r,FR,l,o)}var n=NR(e,r,{name:"buttons",handleItemDefaults:cue}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),_p.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),_p.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function cue(e,r){function t(n,i){return _p.coerce(e,r,uue,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var YR=B((Dxe,BR)=>{"use strict";BR.exports=kt;var qi=kr(),OR=xr(),Mf=Yr(),wp=Pe();function kt(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}kt.barWidth=2;kt.barLength=20;kt.barRadius=2;kt.barPad=1;kt.barColor="#808BA4";kt.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,l=n.height;this.position=r;var o=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,h=c==="down",d=c==="left",p=c==="right",y=c==="up",m=s,b=f,_,w,x,M;!h&&!d&&!p&&!y&&(this.position.direction="down",h=!0);var k=h||y;k?(_=o,w=_+m,h?(x=u,M=Math.min(x+b,l),b=M-x):(M=u+b,x=Math.max(M-b,0),b=M-x)):(x=u,M=x+b,d?(w=o+m,_=Math.max(w-m,0),m=w-_):(_=o,w=Math.min(_+m,i),m=w-_)),this._box={l:_,t:x,w:m,h:b};var A=s>m,S=kt.barLength+2*kt.barPad,D=kt.barWidth+2*kt.barPad,E=o,R=u+f;R+D>l&&(R=l-D);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(OR.fill,kt.barColor),A?(this.hbar=N.attr({rx:kt.barRadius,ry:kt.barRadius,x:E,y:R,width:S,height:D}),this._hbarXMin=E+S/2,this._hbarTranslateMax=m-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var I=f>b,H=kt.barWidth+2*kt.barPad,U=kt.barLength+2*kt.barPad,X=o+s,Y=u;X+H>i&&(X=i-H);var O=this.container.selectAll("rect.scrollbar-vertical").data(I?[0]:[]);O.exit().on(".drag",null).remove(),O.enter().append("rect").classed("scrollbar-vertical",!0).call(OR.fill,kt.barColor),I?(this.vbar=O.attr({rx:kt.barRadius,ry:kt.barRadius,x:X,y:Y,width:H,height:U}),this._vbarYMin=Y+U/2,this._vbarTranslateMax=b-U):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var G=this.id,J=_-.5,$=I?w+H+.5:w+.5,re=x-.5,le=A?M+D+.5:M+.5,fe=n._topdefs.selectAll("#"+G).data(A||I?[0]:[]);if(fe.exit().remove(),fe.enter().append("clipPath").attr("id",G).append("rect"),A||I?(this._clipRect=fe.select("rect").attr({x:Math.floor(J),y:Math.floor(re),width:Math.ceil($)-Math.floor(J),height:Math.ceil(le)-Math.floor(re)}),this.container.call(Mf.setClipUrl,G,this.gd),this.bg.attr({x:o,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Mf.setClipUrl,null),delete this._clipRect),A||I){var pe=qi.behavior.drag().on("dragstart",function(){qi.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(pe);var Q=qi.behavior.drag().on("dragstart",function(){qi.event.sourceEvent.preventDefault(),qi.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(Q),I&&this.vbar.on(".drag",null).call(Q)}this.setTranslate(t,a)};kt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Mf.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};kt.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=qi.event.dx),this.vbar&&(t-=qi.event.dy),this.setTranslate(r,t)};kt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=qi.event.deltaY),this.vbar&&(t+=qi.event.deltaY),this.setTranslate(r,t)};kt.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=wp.constrain(qi.event.x,a,n),l=(i-a)/(n-a),o=this.position.w-this._box.w;r=l*o}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=wp.constrain(qi.event.y,s,u),c=(f-s)/(u-s),h=this.position.h-this._box.h;t=c*h}this.setTranslate(r,t)};kt.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=wp.constrain(r||0,0,a),t=wp.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Mf.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(Mf.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(Mf.setTranslate,r,t+l*this._vbarTranslateMax)}}});var QR=B((Exe,KR)=>{"use strict";var Af=kr(),Vv=Pt(),Wv=xr(),kf=Yr(),Cn=Pe(),Tp=da(),vue=ot().arrayEditor,UR=Pa().LINE_SPACING,wr=bp(),hue=YR();KR.exports=function(r){var t=r._fullLayout,a=Cn.filterVisible(t[wr.name]);function n(h){Vv.autoMargin(r,JR(h))}var i=t._menulayer.selectAll("g."+wr.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(wr.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){Af.select(this).selectAll("g."+wr.headerGroupClassName).each(n)}).remove(),a.length!==0){var l=i.selectAll("g."+wr.headerGroupClassName).data(a,due);l.enter().append("g").classed(wr.headerGroupClassName,!0);for(var o=Cn.ensureSingle(i,"g",wr.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s{"use strict";var _ue=bp();jR.exports={moduleType:"component",name:_ue.name,layoutAttributes:n5(),supplyLayoutDefaults:HR(),draw:QR()}});var Zv=B((Rxe,rz)=>{"use strict";rz.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var s5=B((zxe,nz)=>{"use strict";var tz=aa(),wue=_h(),Tue=mt().extendDeepAll,Mue=ui().overrideAll,Aue=Ac(),az=ot().templatedArray,Ss=Zv(),kue=az("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});nz.exports=Mue(az("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:kue,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:Tue(wue({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:Aue.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:tz({})},font:tz({}),activebgcolor:{valType:"color",dflt:Ss.gripBgActiveColor},bgcolor:{valType:"color",dflt:Ss.railBgColor},bordercolor:{valType:"color",dflt:Ss.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Ss.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Ss.tickLength},tickcolor:{valType:"color",dflt:Ss.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Ss.minorTickLength}}),"arraydraw","from-root")});var sz=B((Nxe,oz)=>{"use strict";var qf=Pe(),iz=On(),lz=s5(),que=Zv(),Cue=que.name,Sue=lz.steps;oz.exports=function(r,t){iz(r,t,{name:Cue,handleItemDefaults:Lue})};function Lue(e,r,t){function a(c,h){return qf.coerce(e,r,lz,c,h)}for(var n=iz(e,r,{name:"steps",handleItemDefaults:Due}),i=0,l=0;l{"use strict";var Ci=kr(),Mp=Pt(),so=xr(),Si=Yr(),Sn=Pe(),Eue=Sn.strTranslate,Jv=da(),Pue=ot().arrayEditor,Pr=Zv(),c5=Pa(),cz=c5.LINE_SPACING,u5=c5.FROM_TL,f5=c5.FROM_BR;yz.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=Rue(a,r),i=a._infolayer.selectAll("g."+Pr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Pr.containerClassName,!0).style("cursor",t?null:"ew-resize");function l(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Mp.autoMargin(r,vz(f))}if(i.exit().each(function(){Ci.select(this).selectAll("g."+Pr.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Pr.groupClassName).data(n,zue);o.enter().append("g").classed(Pr.groupClassName,!0),o.exit().each(l).remove();for(var s=0;s0&&(o=o.transition().duration(r.transition.duration).ease(r.transition.easing)),o.attr("transform",Eue(l-Pr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function v5(e,r){var t=e._dims;return t.inputAreaStart+Pr.stepInset+(t.inputAreaLength-2*Pr.stepInset)*Math.min(1,Math.max(0,r))}function fz(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Pr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Pr.stepInset-2*t.inputAreaStart)))}function Yue(e,r,t){var a=t._dims,n=Sn.ensureSingle(e,"rect",Pr.railTouchRectClass,function(i){i.call(pz,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Pr.tickOffset+t.ticklen+a.labelHeight)}).call(so.fill,t.bgcolor).attr("opacity",0),Si.setTranslate(n,0,a.currentValueTotalHeight)}function Gue(e,r){var t=r._dims,a=t.inputAreaLength-Pr.railInset*2,n=Sn.ensureSingle(e,"rect",Pr.railRectClass);n.attr({width:a,height:Pr.railWidth,rx:Pr.railRadius,ry:Pr.railRadius,"shape-rendering":"crispEdges"}).call(so.stroke,r.bordercolor).call(so.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Si.setTranslate(n,Pr.railInset,(t.inputAreaWidth-Pr.railWidth)*.5+t.currentValueTotalHeight)}});var bz=B((Ixe,xz)=>{"use strict";var Uue=Zv();xz.exports={moduleType:"component",name:Uue.name,layoutAttributes:s5(),supplyLayoutDefaults:sz(),draw:gz()}});var kp=B((Hxe,wz)=>{"use strict";var _z=zn();wz.exports={bgcolor:{valType:"color",dflt:_z.background,editType:"plot"},bordercolor:{valType:"color",dflt:_z.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var h5=B((Oxe,Tz)=>{"use strict";Tz.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var qp=B((Bxe,Mz)=>{"use strict";Mz.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var qz=B(Sp=>{"use strict";var Vue=Ut(),Wue=da(),Az=qp(),Xue=Pa().LINE_SPACING,Cp=Az.name;function kz(e){var r=e&&e[Cp];return r&&r.visible}Sp.isVisible=kz;Sp.makeData=function(e){for(var r=Vue.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Lp=Pe(),Cz=ot(),Sz=Ut(),Zue=kp(),Jue=h5();Lz.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Lp.isPlainObject(n.rangeslider)||(n.rangeslider={});var l=n.rangeslider,o=Cz.newContainer(i,"rangeslider");function s(M,k){return Lp.coerce(l,o,Zue,M,k)}var u,f;function c(M,k){return Lp.coerce(u,f,Jue,M,k)}var h=s("visible");if(h){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(l.range)),s("range");var d=t._subplots;if(d)for(var p=d.cartesian.filter(function(M){return M.substr(0,M.indexOf("y"))===Sz.name2id(a)}).map(function(M){return M.substr(M.indexOf("y"),M.length)}),y=Lp.simpleMap(p,Sz.id2name),m=0;m{"use strict";var $ue=Ut().list,Kue=Uc().getAutoRange,Que=qp();Ez.exports=function(r){for(var t=$ue(r,"x",!0),a=0;a{"use strict";var Dp=kr(),jue=yr(),efe=Pt(),Nt=Pe(),Ep=Nt.strTranslate,zz=Yr(),uo=xr(),rfe=Yc(),tfe=gl(),d5=Ut(),afe=mi(),nfe=Kl(),Hr=qp();Nz.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=O.max)X=R[Y+1];else if(U=O.pmax)X=R[Y+1];else if(U0?e.touches[0].clientX:0}function ife(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Hr.slideBoxClassName).node(),i=e.select("rect."+Hr.grabAreaMinClassName).node(),l=e.select("rect."+Hr.grabAreaMaxClassName).node();function o(){var s=Dp.event,u=s.target,f=Rz(s),c=f-e.node().getBoundingClientRect().left,h=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=afe.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",m),p.addEventListener("mousemove",y),p.addEventListener("mouseup",m);function y(b){var _=Rz(b),w=+_-f,x,M,k;switch(u){case n:if(k="ew-resize",h+w>t._length||d+w<0)return;x=h+w,M=d+w;break;case i:if(k="col-resize",h+w>t._length)return;x=h+w,M=d;break;case l:if(k="col-resize",d+w<0)return;x=h,M=d+w;break;default:k="ew-resize",x=c,M=c+w;break}if(M{"use strict";var pfe=Pe(),mfe=kp(),yfe=h5(),p5=qz();Iz.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:pfe.extendFlat({},mfe,{yaxis:yfe})}}},layoutAttributes:kp(),handleDefaults:Dz(),calcAutorange:Pz(),draw:Fz(),isVisible:p5.isVisible,makeData:p5.makeData,autoMarginOpts:p5.autoMarginOpts}});var Pp=B((Xxe,Bz)=>{"use strict";var gfe=aa(),Oz=zn(),xfe=ot().templatedArray,bfe=xfe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});Bz.exports={visible:{valType:"boolean",editType:"plot"},buttons:bfe,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:gfe({editType:"plot"}),bgcolor:{valType:"color",dflt:Oz.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:Oz.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var m5=B((Zxe,Yz)=>{"use strict";Yz.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var Vz=B((Jxe,Uz)=>{"use strict";var Rp=Pe(),_fe=xr(),wfe=ot(),Tfe=On(),Gz=Pp(),y5=m5();Uz.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=wfe.newContainer(t,"rangeselector");function s(d,p){return Rp.coerce(l,o,Gz,d,p)}var u=Tfe(l,o,{name:"buttons",handleItemDefaults:Mfe,calendar:i}),f=s("visible",u.length>0);if(f){var c=Afe(t,a,n);s("x",c[0]),s("y",c[1]),Rp.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Rp.coerceFont(s,"font",a.font);var h=s("bgcolor");s("activecolor",_fe.contrast(h,y5.lightAmount,y5.darkAmount)),s("bordercolor"),s("borderwidth")}};function Mfe(e,r,t,a){var n=a.calendar;function i(s,u){return Rp.coerce(e,r,Gz.buttons,s,u)}var l=i("visible");if(l){var o=i("step");o!=="all"&&(n&&n!=="gregorian"&&(o==="month"||o==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function Afe(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i{"use strict";var kfe=Ay(),qfe=Pe().titleCase;Wz.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=Cfe(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function Cfe(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=kfe["utc"+qfe(n)],l=r.count,o;switch(r.stepmode){case"backward":o=e.l2r(+i.offset(a,-l));break;case"todate":var s=i.offset(a,-l);o=e.l2r(+i.ceil(s));break}var u=t[1];return[o,u]}});var rN=B((Kxe,eN)=>{"use strict";var Np=kr(),Sfe=yr(),Lfe=Pt(),Zz=xr(),jz=Yr(),bl=Pe(),Jz=bl.strTranslate,zp=da(),Dfe=Ut(),b5=Pa(),$z=b5.LINE_SPACING,Kz=b5.FROM_TL,Qz=b5.FROM_BR,x5=m5(),Efe=Xz();eN.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(Pfe(r),Rfe);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Np.select(this),l=n,o=l.rangeselector,s=i.selectAll("g.button").data(bl.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Np.select(this),c=Efe(l,u);u._isActive=zfe(l,u,c),f.call(g5,o,u),f.call(Ffe,o,u,r),f.on("click",function(){r._dragged||Sfe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(g5,o,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(g5,o,u)})}),Hfe(r,s,o,l._name,i)})};function Pfe(e){for(var r=Dfe.list(e,"x",!0),t=[],a=0;a{"use strict";tN.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Pp()}}},layoutAttributes:Pp(),handleDefaults:Vz(),draw:rN()}});var fo=B(_5=>{"use strict";var nN=mt().extendFlat;_5.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",l={x:nN({},t,{}),y:nN({},t,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};_5.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],l=r.grid;if(l){var o=t("domain.column");o!==void 0&&(o{"use strict";var Ofe=Pe(),Bfe=mu().counter,Yfe=fo().attributes,iN=Aa().idRegex,Gfe=ot(),w5={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Bfe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[iN.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[iN.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Yfe({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Fp(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function Ufe(e,r){var t=e.grid||{},a=Fp(r,t,"x"),n=Fp(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),l=Array.isArray(a),o=Array.isArray(n),s=l&&a!==t.xaxes&&o&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(o&&(u=n.length),l&&(f=a.length));var c=Gfe.newContainer(r,"grid");function h(k,A){return Ofe.coerce(t,c,w5,k,A)}var d=h("rows",u),p=h("columns",f);if(!(d*p>1)){delete r.grid;return}if(!i&&!l&&!o){var y=h("pattern")==="independent";y&&(i=!0)}c._hasSubplotGrid=i;var m=h("roworder"),b=m==="top to bottom",_=i?.2:.1,w=i?.3:.1,x,M;s&&r._splomGridDflt&&(x=r._splomGridDflt.xside,M=r._splomGridDflt.yside),c._domains={x:lN("x",h,_,x,p),y:lN("y",h,w,M,d,b)}}function lN(e,r,t,a,n,i){var l=r(e+"gap",t),o=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=o[0],f=(o[1]-u)/(n-l),c=f*(1-l),h=0;h{"use strict";fN.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var hN=B((t5e,vN)=>{"use strict";var cN=zr(),Wfe=yr(),Xfe=Pe(),Zfe=ot(),Jfe=T5();vN.exports=function(e,r,t,a){var n="error_"+a.axis,i=Zfe.newContainer(r,n),l=e[n]||{};function o(p,y){return Xfe.coerce(l,i,Jfe,p,y)}var s=l.array!==void 0||l.value!==void 0||l.type==="sqrt",u=o("visible",s);if(u!==!1){var f=o("type","array"in l?"data":"percent"),c=!0;f!=="sqrt"&&(c=o("symmetric",!((f==="data"?"arrayminus":"valueminus")in l))),f==="data"?(o("array"),o("traceref"),c||(o("arrayminus"),o("tracerefminus"))):(f==="percent"||f==="constant")&&(o("value"),c||o("valueminus"));var h="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&o(h,!(l.color||cN(l.thickness)||cN(l.width)))}(!a.inherit||!i[h])&&(o("color",t),o("thickness"),o("width",Wfe.traceIs(r,"gl3d")?0:4))}}});var M5=B((a5e,pN)=>{"use strict";pN.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],h=+i[f];return!isNaN(c)||!isNaN(h)?[h||0,c||0]:[NaN,NaN]}}else{var l=dN(t,r.value),o=dN(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=l(u);return[f,f]}:function(u){return[o(u),l(u)]}}};function dN(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var gN=B((n5e,yN)=>{"use strict";var A5=zr(),$fe=yr(),k5=Jr(),Kfe=Pe(),Qfe=M5();yN.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var xN=kr(),co=zr(),jfe=Yr(),ece=_n();bN.exports=function(r,t,a,n){var i,l=a.xaxis,o=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,h=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(_){return _.id});var y=ece.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var m=xN.select(this).selectAll("g.errorbar").data(f,p);if(m.exit().remove(),!!f.length){h.visible||m.selectAll("path.xerror").remove(),d.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var b=m.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),jfe.setClipUrl(m,a.layerClipId,r),m.each(function(_){var w=xN.select(this),x=rce(_,l,o);if(!(y&&!_.vis)){var M,k=w.select("path.yerror");if(d.visible&&co(x.x)&&co(x.yh)&&co(x.ys)){var A=d.width;M="M"+(x.x-A)+","+x.yh+"h"+2*A+"m-"+A+",0V"+x.ys,x.noYS||(M+="m-"+A+",0h"+2*A),i=!k.size(),i?k=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",M)}else k.remove();var S=w.select("path.xerror");if(h.visible&&co(x.y)&&co(x.xh)&&co(x.xs)){var D=(h.copy_ystyle?d:h).width;M="M"+x.xh+","+(x.y-D)+"v"+2*D+"m0,-"+D+"H"+x.xs,x.noXS||(M+="m0,-"+D+"v"+2*D),i=!S.size(),i?S=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(S=S.transition().duration(n.duration).ease(n.easing)),S.attr("d",M)}else S.remove()}})}})};function rce(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),co(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),co(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var MN=B((l5e,TN)=>{"use strict";var tce=kr(),wN=xr();TN.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=tce.select(this);l.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(wN.stroke,n.color),i.copy_ystyle&&(i=n),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(wN.stroke,i.color)})}});var qN=B((o5e,kN)=>{"use strict";var $v=Pe(),AN=ui().overrideAll,Kv=T5(),Ls={error_x:$v.extendFlat({},Kv),error_y:$v.extendFlat({},Kv)};delete Ls.error_x.copy_zstyle;delete Ls.error_y.copy_zstyle;delete Ls.error_y.copy_ystyle;var Qv={error_x:$v.extendFlat({},Kv),error_y:$v.extendFlat({},Kv),error_z:$v.extendFlat({},Kv)};delete Qv.error_x.copy_ystyle;delete Qv.error_y.copy_ystyle;delete Qv.error_z.copy_ystyle;delete Qv.error_z.copy_zstyle;kN.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Ls,bar:Ls,histogram:Ls,scatter3d:AN(Qv,"calc","nested"),scattergl:AN(Ls,"calc","nested")}},supplyDefaults:hN(),calc:gN(),makeComputeError:M5(),plot:_N(),style:MN(),hoverInfo:ace};function ace(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var SN=B((s5e,CN)=>{"use strict";CN.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var NN=B((u5e,zN)=>{"use strict";var vo=kr(),q5=Rn(),Hp=Pt(),LN=yr(),_l=Jr(),Ip=mi(),jn=Pe(),Di=jn.strTranslate,RN=mt().extendFlat,C5=Kl(),Li=Yr(),S5=xr(),nce=Yc(),ice=da(),lce=Hn().flipScale,oce=sp(),sce=fp(),uce=bn(),L5=Pa(),DN=L5.LINE_SPACING,EN=L5.FROM_TL,PN=L5.FROM_BR,At=SN().cn;function fce(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+At.colorbar).data(cce(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(At.colorbar,!0),t.each(function(a){var n=vo.select(this);jn.ensureSingle(n,"rect",At.cbbg),jn.ensureSingle(n,"g",At.cbfills),jn.ensureSingle(n,"g",At.cblines),jn.ensureSingle(n,"g",At.cbaxis,function(l){l.classed(At.crisp,!0)}),jn.ensureSingle(n,"g",At.cbtitleunshift,function(l){l.append("g").classed(At.cbtitle,!0)}),jn.ensureSingle(n,"rect",At.cboutline);var i=vce(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&hce(n,a,e)}),t.exit().each(function(a){Hp.autoMargin(e,a._id)}).remove(),t.order()}function cce(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(w){return RN(w,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof o.calc=="function"?o.calc(e,l,n):(n._fillgradient=i.reversescale?lce(i.colorscale):i.colorscale,n._zrange=[i[o.min],i[o.max]])}for(var f=0;f1){var te=Math.pow(10,Math.floor(Math.log(V)/Math.LN10));se*=te*jn.roundUp(V/te,[2,5,10]),(Math.abs(N.start)/N.size+1e-6)%1<2e-6&&(ve.tick0=0)}ve.dtick=se}ve.domain=a?[Q+p/x.h,Q+G-p/x.h]:[Q+d/x.w,Q+G-d/x.w],ve.setScale(),e.attr("transform",Di(Math.round(x.l),Math.round(x.t)));var W=e.select("."+At.cbtitleunshift).attr("transform",Di(-Math.round(x.l),-Math.round(x.t))),xe=ve.ticklabelposition,ke=ve.title.font.size,ge=e.select("."+At.cbaxis),ze,Fe=0,Ee=0;function Ne(Oe,ie){var Ae={propContainer:ve,propName:r._propPrefix+"title",traceIndex:r._traceIndex,_meta:r._meta,placeholder:w._dfltTitle.colorbar,containerGroup:e.select("."+At.cbtitle)},Ze=Oe.charAt(0)==="h"?Oe.substr(1):"h"+Oe;e.selectAll("."+Ze+",."+Ze+"-math-group").remove(),nce.draw(t,Oe,RN(Ae,ie||{}))}function Ve(){if(a&&be||!a&&!be){var Oe,ie;S==="top"&&(Oe=d+x.l+J*y,ie=p+x.t+$*(1-Q-G)+3+ke*.75),S==="bottom"&&(Oe=d+x.l+J*y,ie=p+x.t+$*(1-Q)-3-ke*.25),S==="right"&&(ie=p+x.t+$*m+3+ke*.75,Oe=d+x.l+J*Q),Ne(ve._id+"title",{attributes:{x:Oe,y:ie,"text-anchor":a?"start":"middle"}})}}function Ge(){if(a&&!be||!a&&be){var Oe=ve.position||0,ie=ve._offset+ve._length/2,Ae,Ze;if(S==="right")Ze=ie,Ae=x.l+J*Oe+10+ke*(ve.showticklabels?1:.5);else if(Ae=ie,S==="bottom"&&(Ze=x.t+$*Oe+10+(xe.indexOf("inside")===-1?ve.tickfont.size:0)+(ve.ticks!=="intside"&&r.ticklen||0)),S==="top"){var cr=A.text.split("
").length;Ze=x.t+$*Oe+10-X-DN*ke*cr}Ne((a?"h":"v")+ve._id+"title",{avoid:{selection:vo.select(t).selectAll("g."+ve._id+"tick"),side:S,offsetTop:a?0:x.t,offsetLeft:a?x.l:0,maxShift:a?w.width:w.height},attributes:{x:Ae,y:Ze,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function De(){if(!a&&!be||a&&be){var Oe=e.select("."+At.cbtitle),ie=Oe.select("text"),Ae=[-s/2,s/2],Ze=Oe.select(".h"+ve._id+"title-math-group").node(),cr=15.6;ie.node()&&(cr=parseInt(ie.node().style.fontSize,10)*DN);var fr;if(Ze?(fr=Li.bBox(Ze),Ee=fr.width,Fe=fr.height,Fe>cr&&(Ae[1]-=(Fe-cr)/2)):ie.node()&&!ie.classed(At.jsPlaceholder)&&(fr=Li.bBox(ie.node()),Ee=fr.width,Fe=fr.height),a){if(Fe){if(Fe+=5,S==="top")ve.domain[1]-=Fe/x.h,Ae[1]*=-1;else{ve.domain[0]+=Fe/x.h;var oe=ice.lineCount(ie);Ae[1]+=(1-oe)*cr}Oe.attr("transform",Di(Ae[0],Ae[1])),ve.setScale()}}else Ee&&(S==="right"&&(ve.domain[0]+=(Ee+ke/2)/x.w),Oe.attr("transform",Di(Ae[0],Ae[1])),ve.setScale())}e.selectAll("."+At.cbfills+",."+At.cblines).attr("transform",a?Di(0,Math.round(x.h*(1-ve.domain[1]))):Di(Math.round(x.w*ve.domain[0]),0)),ge.attr("transform",a?Di(0,Math.round(-x.t)):Di(Math.round(-x.l),0));var Ce=e.select("."+At.cbfills).selectAll("rect."+At.cbfill).attr("style","").data(H);Ce.enter().append("rect").classed(At.cbfill,!0).attr("style",""),Ce.exit().remove();var Ie=D.map(ve.c2p).map(Math.round).sort(function(vr,$e){return vr-$e});Ce.each(function(vr,$e){var Re=[$e===0?D[0]:(H[$e]+H[$e-1])/2,$e===H.length-1?D[1]:(H[$e]+H[$e+1])/2].map(ve.c2p).map(Math.round);a&&(Re[1]=jn.constrain(Re[1]+(Re[1]>Re[0])?1:-1,Ie[0],Ie[1]));var ne=vo.select(this).attr(a?"x":"y",re).attr(a?"y":"x",vo.min(Re)).attr(a?"width":"height",Math.max(X,2)).attr(a?"height":"width",Math.max(vo.max(Re)-vo.min(Re),2));if(r._fillgradient)Li.gradient(ne,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var ce=R(vr).replace("e-","");ne.attr("fill",q5(ce).toHexString())}});var We=e.select("."+At.cblines).selectAll("path."+At.cbline).data(k.color&&k.width?U:[]);We.enter().append("path").classed(At.cbline,!0),We.exit().remove(),We.each(function(vr){var $e=re,Re=Math.round(ve.c2p(vr))+k.width/2%1;vo.select(this).attr("d","M"+(a?$e+","+Re:Re+","+$e)+(a?"h":"v")+X).call(Li.lineGroupStyle,k.width,E(vr),k.dash)}),ge.selectAll("g."+ve._id+"tick,path").remove();var Ue=re+X+(s||0)/2-(r.ticks==="outside"?1:0),Je=_l.calcTicks(ve),je=_l.getTickSigns(ve)[2];return _l.drawTicks(t,ve,{vals:ve.ticks==="inside"?_l.clipEnds(ve,Je):Je,layer:ge,path:_l.makeTickPath(ve,Ue,je),transFn:_l.makeTransTickFn(ve)}),_l.drawLabels(t,ve,{vals:Je,layer:ge,transFn:_l.makeTransTickLabelFn(ve),labelFns:_l.makeLabelFns(ve,Ue)})}function He(){var Oe,ie=X+s/2;xe.indexOf("inside")===-1&&(Oe=Li.bBox(ge.node()),ie+=a?Oe.width:Oe.height),ze=W.select("text");var Ae=0,Ze=a&&S==="top",cr=!a&&S==="right",fr=0;if(ze.node()&&!ze.classed(At.jsPlaceholder)){var oe,Ce=W.select(".h"+ve._id+"title-math-group").node();Ce&&(a&&be||!a&&!be)?(Oe=Li.bBox(Ce),Ae=Oe.width,oe=Oe.height):(Oe=Li.bBox(W.node()),Ae=Oe.right-x.l-(a?re:qe),oe=Oe.bottom-x.t-(a?qe:re),!a&&S==="top"&&(ie+=Oe.height,fr=Oe.height)),cr&&(ze.attr("transform",Di(Ae/2+ke/2,0)),Ae*=2),ie=Math.max(ie,a?Ae:oe)}var Ie=(a?d:p)*2+ie+u+s/2,We=0;!a&&A.text&&h==="bottom"&&m<=0&&(We=Ie/2,Ie+=We,fr+=We),w._hColorbarMoveTitle=We,w._hColorbarMoveCBTitle=fr;var Ue=u+s,Je=(a?re:qe)-Ue/2-(a?d:0),je=(a?qe:re)-(a?O:p+fr-We);e.select("."+At.cbbg).attr("x",Je).attr("y",je).attr(a?"width":"height",Math.max(Ie-We,2)).attr(a?"height":"width",Math.max(O+Ue,2)).call(S5.fill,f).call(S5.stroke,r.bordercolor).style("stroke-width",u);var vr=cr?Math.max(Ae-10,0):0;e.selectAll("."+At.cboutline).attr("x",(a?re:qe+d)+vr).attr("y",(a?qe+p-O:re)+(Ze?Fe:0)).attr(a?"width":"height",Math.max(X,2)).attr(a?"height":"width",Math.max(O-(a?2*p+Fe:2*d+vr),2)).call(S5.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var $e=a?le*Ie:0,Re=a?0:(1-fe)*Ie-fr;if($e=_?x.l-$e:-$e,Re=b?x.t-Re:-Re,e.attr("transform",Di($e,Re)),!a&&(u||q5(f).getAlpha()&&!q5.equals(w.paper_bgcolor,f))){var ne=ge.selectAll("text"),ce=ne[0].length,Le=e.select("."+At.cbbg).node(),Se=Li.bBox(Le),or=Li.getTranslate(e),lr=2;ne.each(function(ga,xa){var Gt=0,$a=ce-1;if(xa===Gt||xa===$a){var gr=Li.bBox(this),ft=Li.getTranslate(this),Wr;if(xa===$a){var wt=gr.right+ft.x,Et=Se.right+or.x+qe-u-lr+y;Wr=Et-wt,Wr>0&&(Wr=0)}else if(xa===Gt){var ct=gr.left+ft.x,Tt=Se.left+or.x+qe+u+lr;Wr=Tt-ct,Wr<0&&(Wr=0)}Wr&&(ce<3?this.setAttribute("transform","translate("+Wr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ar={},Ar=EN[c],Br=PN[c],tt=EN[h],jr=PN[h],ra=Ie-X;a?(i==="pixels"?(ar.y=m,ar.t=O*tt,ar.b=O*jr):(ar.t=ar.b=0,ar.yt=m+n*tt,ar.yb=m-n*jr),o==="pixels"?(ar.x=y,ar.l=Ie*Ar,ar.r=Ie*Br):(ar.l=ra*Ar,ar.r=ra*Br,ar.xl=y-l*Ar,ar.xr=y+l*Br)):(i==="pixels"?(ar.x=y,ar.l=O*Ar,ar.r=O*Br):(ar.l=ar.r=0,ar.xl=y+n*Ar,ar.xr=y-n*Br),o==="pixels"?(ar.y=1-m,ar.t=Ie*tt,ar.b=Ie*jr):(ar.t=ra*tt,ar.b=ra*jr,ar.yt=m-l*tt,ar.yb=m+l*jr));var It=r.y<.5?"b":"t",_t=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Dt={r:w.width-Je-$e,l:Je+ar.r,b:w.height-je-Re,t:je+ar.b};_&&b?Hp.autoMargin(t,r._id,ar):_?t._fullLayout._reservedMargin[r._id][It]=Dt[It]:b||a?t._fullLayout._reservedMargin[r._id][_t]=Dt[_t]:t._fullLayout._reservedMargin[r._id][It]=Dt[It]}return jn.syncOrAsync([Hp.previousPromises,Ve,De,Ge,Hp.previousPromises,He],t)}function hce(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,l,o,s;Ip.init({element:e.node(),gd:t,prepFn:function(){l=e.attr("transform"),C5(e)},moveFn:function(u,f){e.attr("transform",l+Di(u,f)),o=Ip.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Ip.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=Ip.getCursor(o,s,r.xanchor,r.yanchor);C5(e,c)},doneFn:function(){if(C5(e),o!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=o,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?LN.call("_guiRestyle",t,u,r._traceIndex):LN.call("_guiRelayout",t,u)}}})}function dce(e,r,t){var a=r._levels,n=[],i=[],l,o,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(o=0;o<1e5&&(l=a.start+o*u,!(u>0?l>=s:l<=s));o++)l>f&&l0?l>=s:l<=s));o++)l>t[0]&&l{"use strict";FN.exports={moduleType:"component",name:"colorbar",attributes:Jh(),supplyDefaults:Og(),draw:NN().draw,hasColorbar:Pg()}});var ON=B((c5e,HN)=>{"use strict";HN.exports={moduleType:"component",name:"legend",layoutAttributes:N2(),supplyLayoutDefaults:H2(),draw:K2(),style:X2()}});var YN=B((v5e,BN)=>{"use strict";BN.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var UN=B((h5e,GN)=>{"use strict";GN.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var E5=B((d5e,ZN)=>{"use strict";var mce=yr(),XN=Pe(),D5=XN.extendFlat,VN=XN.extendDeep;function WN(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function yce(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}ZN.exports=function(r,t){var a,n=r.data,i=r.layout,l=VN([],n),o=VN({},i,WN(t.tileClass)),s=r._context||{};if(t.width&&(o.width=t.width),t.height&&(o.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){o.annotations=[];var u=Object.keys(o);for(a=0;a{"use strict";var gce=Nh().EventEmitter,xce=yr(),bce=Pe(),JN=gs(),_ce=E5(),wce=W1(),Tce=X1();function Mce(e,r){var t=new gce,a=_ce(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=JN.getDelay(n._fullLayout);setTimeout(function(){var s=wce(n),u=document.createElement("canvas");u.id=bce.randstr(),t=Tce({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},o)}var l=JN.getRedrawFunc(n);return xce.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}$N.exports=Mce});var eF=B((m5e,jN)=>{"use strict";var QN=gs(),Ace={getDelay:QN.getDelay,getRedrawFunc:QN.getRedrawFunc,clone:E5(),toSVG:W1(),svgToImg:X1(),toImage:KN(),downloadImage:mx()};jN.exports=Ace});var tF=B(wl=>{"use strict";wl.version=rh().version;W4();N8();var kce=yr(),jv=wl.register=kce.register,R5=iD(),rF=Object.keys(R5);for(Op=0;Op{"use strict";aF.exports=tF()});var Yp=B((x5e,iF)=>{"use strict";iF.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Tl=B((b5e,uF)=>{"use strict";var St=bi(),lF=di().axisHoverFormat,qce=ha().hovertemplateAttrs,Cce=ha().texttemplateAttrs,sF=Hc(),Sce=aa(),oF=Yp(),Lce=fi().pattern,Ds=mt().extendFlat,z5=Sce({editType:"calc",arrayOk:!0,colorEditType:"style"}),Dce=St.marker,Ece=Dce.line,Pce=Ds({},Ece.width,{dflt:0}),Rce=Ds({width:Pce,editType:"calc"},sF("marker.line")),zce=Ds({line:Rce,editType:"calc"},sF("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:Lce,cornerradius:{valType:"any",editType:"calc"}});uF.exports={x:St.x,x0:St.x0,dx:St.dx,y:St.y,y0:St.y0,dy:St.dy,xperiod:St.xperiod,yperiod:St.yperiod,xperiod0:St.xperiod0,yperiod0:St.yperiod0,xperiodalignment:St.xperiodalignment,yperiodalignment:St.yperiodalignment,xhoverformat:lF("x"),yhoverformat:lF("y"),text:St.text,texttemplate:Cce({editType:"plot"},{keys:oF.eventDataKeys}),hovertext:St.hovertext,hovertemplate:qce({},{keys:oF.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Ds({},z5,{}),insidetextfont:Ds({},z5,{}),outsidetextfont:Ds({},z5,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Ds({},St.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:zce,offsetgroup:St.offsetgroup,alignmentgroup:St.alignmentgroup,selected:{marker:{opacity:St.selected.marker.opacity,color:St.selected.marker.color,editType:"style"},textfont:St.selected.textfont,editType:"style"},unselected:{marker:{opacity:St.unselected.marker.opacity,color:St.unselected.marker.color,editType:"style"},textfont:St.unselected.textfont,editType:"style"},zorder:St.zorder}});var Gp=B((_5e,fF)=>{"use strict";fF.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var N5=B((w5e,hF)=>{"use strict";var Nce=xr(),cF=Hn().hasColorscale,vF=Ru(),Fce=Pe().coercePattern;hF.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=cF(r,"marker");o&&vF(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",Nce.defaultLine),cF(r,"marker.line")&&vF(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),Fce(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var Ki=B((T5e,xF)=>{"use strict";var dF=zr(),Sf=Pe(),pF=xr(),Ice=yr(),Hce=Rv(),Oce=_s(),Bce=N5(),Yce=ff(),mF=Tl(),Up=Sf.coerceFont;function Gce(e,r,t,a){function n(u,f){return Sf.coerce(e,r,mF,u,f)}var i=Hce(e,r,a,n);if(!i){r.visible=!1;return}Oce(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate");var l=n("textposition");gF(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),Bce(e,r,n,t,a);var o=(r.marker.line||{}).color,s=Ice.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||pF.defaultLine,{axis:"y"}),s(e,r,o||pF.defaultLine,{axis:"x",inherit:"y"}),Sf.coerceSelectionMarkerOpacity(r,n)}function Uce(e,r){var t,a;function n(o,s){return Sf.coerce(a._input,a,mF,o,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&dF(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function gF(e,r,t,a,n,i){i=i||{};var l=i.moduleHasSelected!==!1,o=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,c=i.moduleHasInsideanchor!==!1,h=!!i.hasPathbar,d=Array.isArray(n)||n==="auto",p=d||n==="inside",y=d||n==="outside";if(p||y){var m=Up(a,"textfont",t.font),b=Sf.extendFlat({},m),_=e.textfont&&e.textfont.color,w=!_;if(w&&delete b.color,Up(a,"insidetextfont",b),h){var x=Sf.extendFlat({},m);w&&delete x.color,Up(a,"pathbar.textfont",x)}y&&Up(a,"outsidetextfont",m),l&&a("selected.textfont.color"),o&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate")}p&&c&&a("insidetextanchor")}xF.exports={supplyDefaults:Gce,crossTraceDefaults:Uce,handleText:gF,validateCornerradius:yF}});var F5=B((M5e,bF)=>{"use strict";var Vce=yr(),Wce=Jr(),Xce=Pe(),Zce=Gp(),Jce=Ki().validateCornerradius;bF.exports=function(e,r,t){function a(y,m){return Xce.coerce(e,r,Zce,y,m)}for(var n=!1,i=!1,l=!1,o={},s=a("barmode"),u=s==="group",f=0;f0&&!o[h]&&(l=!0),o[h]=!0),c.visible&&c.type==="histogram"){var d=Wce.getFromId({_fullLayout:r},c[c.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!l?0:.2),a("bargroupgap");var p=a("barcornerradius");r.barcornerradius=Jce(p)}});var Vp=B((A5e,_F)=>{"use strict";var Lf=Pe();_F.exports=function(r,t){for(var a=0;a{"use strict";var wF=Jr(),TF=ws(),MF=Hn().hasColorscale,AF=td(),$ce=Vp(),Kce=zv();kF.exports=function(r,t){var a=wF.getFromId(r,t.xaxis||"x"),n=wF.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,c={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",c),o=n.makeCalcdata(t,"y"),s=TF(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),o=a.makeCalcdata(t,"x"),s=TF(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var h=Math.min(l.length,i.length),d=new Array(h),p=0;p{"use strict";var Qce=kr(),jce=Pe();function eve(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",l;switch(t){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":case"icicle":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}r.selectAll(l).each(function(o){var s=o.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=Qce.select(this).select("text");jce.setTransormAndDisplay(u,s)}})}}function rve(e,r,t){if(t.uniformtext.mode){var a=CF(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var ave=zr(),nve=Rn(),LF=Pe().isArrayOrTypedArray;Es.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};Es.coerceNumber=function(e,r,t){if(ave(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};Es.coerceColor=function(e,r,t){return nve(r).isValid()?r:t!==void 0?t:e.dflt};Es.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Es.getValue=function(e,r){var t;return LF(e)?r{"use strict";var e0=kr(),ive=xr(),r0=Yr(),DF=Pe(),EF=yr(),PF=Ei().resizeText,I5=Tl(),lve=I5.textfont,ove=I5.insidetextfont,sve=I5.outsidetextfont,Ca=Wp();function uve(e){var r=e0.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");PF(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&e0.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=e0.select(this),l=n[0].trace;RF(i,l,e)}),EF.getComponentMethod("errorbars","style")(r)}function RF(e,r,t){r0.pointStyle(e.selectAll("path"),r,t),zF(e,r,t)}function zF(e,r,t){e.selectAll("text").each(function(a){var n=e0.select(this),i=DF.ensureUniformFontSize(t,NF(n,a,r,t));r0.font(n,i)})}function fve(e,r,t){var a=r[0].trace;a.selectedpoints?cve(t,a,e):(RF(t,a,e),EF.getComponentMethod("errorbars","style")(t))}function cve(e,r,t){r0.selectedPointStyle(e.selectAll("path"),r),vve(e.selectAll("text"),r,t)}function vve(e,r,t){e.each(function(a){var n=e0.select(this),i;if(a.selected){i=DF.ensureUniformFontSize(t,NF(n,a,r,t));var l=r.selected.textfont&&r.selected.textfont.color;l&&(i.color=l),r0.font(n,i)}else r0.selectedTextStyle(n,r)})}function NF(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=OF(r,t);i=IF(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=HF(t,r.i,n));return i}function FF(e,r,t){return H5(lve,e.textfont,r,t)}function IF(e,r,t,a){var n=FF(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:ive.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),H5(ove,e.insidetextfont,r,n)}function HF(e,r,t){var a=FF(e,r,t);return H5(sve,e.outsidetextfont,r,a)}function H5(e,r,t,a){r=r||{};var n=Ca.getValue(r.family,t),i=Ca.getValue(r.size,t),l=Ca.getValue(r.color,t),o=Ca.getValue(r.weight,t),s=Ca.getValue(r.style,t),u=Ca.getValue(r.variant,t),f=Ca.getValue(r.textcase,t),c=Ca.getValue(r.lineposition,t),h=Ca.getValue(r.shadow,t);return{family:Ca.coerceString(e.family,n,a.family),size:Ca.coerceNumber(e.size,i,a.size),color:Ca.coerceColor(e.color,l,a.color),weight:Ca.coerceString(e.weight,o,a.weight),style:Ca.coerceString(e.style,s,a.style),variant:Ca.coerceString(e.variant,u,a.variant),textcase:Ca.coerceString(e.variant,f,a.textcase),lineposition:Ca.coerceString(e.variant,c,a.lineposition),shadow:Ca.coerceString(e.variant,h,a.shadow)}}function OF(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}BF.exports={style:uve,styleTextPoints:zF,styleOnSelect:fve,getInsideTextFont:IF,getOutsideTextFont:HF,getBarColor:OF,resizeText:PF}});var Ef=B((L5e,JF)=>{"use strict";var Xp=kr(),Zp=zr(),ma=Pe(),hve=da(),dve=xr(),po=Yr(),pve=yr(),Jp=Jr().tickText,YF=Ei(),mve=YF.recordMinTextSize,yve=YF.clearMinTextSize,O5=ho(),Df=Wp(),gve=Yp(),GF=Tl(),xve=GF.text,bve=GF.textposition,_ve=Hi().appendArrayPointValue,Za=gve.TEXTPAD;function wve(e){return e.id}function Tve(e){if(e.ids)return wve}function B5(e){return(e>0)-(e<0)}function Qi(e,r){return e0}function Ave(e,r,t,a,n,i){var l=r.xaxis,o=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},yve("bar",s));var f=ma.makeTraceGroups(a,t,"trace bars").each(function(c){var h=Xp.select(this),d=c[0].trace,p=c[0].t,y=d.type==="waterfall",m=d.type==="funnel",b=d.type==="histogram",_=d.type==="bar",w=_||m,x=0;y&&d.connector.visible&&d.connector.mode==="between"&&(x=d.connector.line.width/2);var M=d.orientation==="h",k=VF(n),A=ma.ensureSingle(h,"g","points"),S=Tve(d),D=A.selectAll("g.point").data(ma.identity,S);D.enter().append("g").classed("point",!0),D.exit().remove(),D.each(function(R,N){var I=Xp.select(this),H=Mve(R,l,o,M),U=H[0][0],X=H[0][1],Y=H[1][0],O=H[1][1],G=(M?X-U:O-Y)===0;G&&w&&Df.getLineWidth(d,R)&&(G=!1),G||(G=!Zp(U)||!Zp(X)||!Zp(Y)||!Zp(O)),R.isBlank=G,G&&(M?X=U:O=Y),x&&!G&&(M?(U-=Qi(U,X)*x,X+=Qi(U,X)*x):(Y-=Qi(Y,O)*x,O+=Qi(Y,O)*x));var J,$;if(d.type==="waterfall"){if(!G){var re=d[R.dir].marker;J=re.line.width,$=re.color}}else J=Df.getLineWidth(d,R),$=R.mc||d.marker.color;function le(ie){var Ae=Xp.round(J/2%1,2);return n.gap===0&&n.groupgap===0?Xp.round(Math.round(ie)-Ae,2):ie}function fe(ie,Ae,Ze){return Ze&&ie===Ae?ie:Math.abs(ie-Ae)>=2?le(ie):ie>Ae?Math.ceil(ie):Math.floor(ie)}var pe=dve.opacity($),Q=pe<1||J>.01?le:fe;e._context.staticPlot||(U=Q(U,X,M),X=Q(X,U,M),Y=Q(Y,O,!M),O=Q(O,Y,!M));var qe=M?l.c2p:o.c2p,ve;R.s0>0?ve=R._sMax:R.s0<0?ve=R._sMin:ve=R.s1>0?R._sMax:R._sMin;function be(ie,Ae){if(!ie)return 0;var Ze=Math.abs(M?O-Y:X-U),cr=Math.abs(M?X-U:O-Y),fr=Q(Math.abs(qe(ve,!0)-qe(0,!0))),oe=R.hasB?Math.min(Ze/2,cr/2):Math.min(Ze/2,fr),Ce;if(Ae==="%"){var Ie=Math.min(50,ie);Ce=Ze*(Ie/100)}else Ce=ie;return Q(Math.max(Math.min(Ce,oe),0))}var se=_||b?be(p.cornerradiusvalue,p.cornerradiusform):0,_e,V,te="M"+U+","+Y+"V"+O+"H"+X+"V"+Y+"Z",W=0;if(se&&R.s){var xe=B5(R.s0)===0||B5(R.s)===B5(R.s0)?R.s1:R.s0;if(W=Q(R.hasB?0:Math.abs(qe(ve,!0)-qe(xe,!0))),W0?Math.sqrt(W*(2*se-W)):0,Ne=ke>0?Math.max:Math.min;_e="M"+U+","+Y+"V"+(O-Fe*ge)+"H"+Ne(X-(se-W)*ke,U)+"A "+se+","+se+" 0 0 "+ze+" "+X+","+(O-se*ge-Ee)+"V"+(Y+se*ge+Ee)+"A "+se+","+se+" 0 0 "+ze+" "+Ne(X-(se-W)*ke,U)+","+(Y+Fe*ge)+"Z"}else if(R.hasB)_e="M"+(U+se*ke)+","+Y+"A "+se+","+se+" 0 0 "+ze+" "+U+","+(Y+se*ge)+"V"+(O-se*ge)+"A "+se+","+se+" 0 0 "+ze+" "+(U+se*ke)+","+O+"H"+(X-se*ke)+"A "+se+","+se+" 0 0 "+ze+" "+X+","+(O-se*ge)+"V"+(Y+se*ge)+"A "+se+","+se+" 0 0 "+ze+" "+(X-se*ke)+","+Y+"Z";else{V=Math.abs(O-Y)+W;var Ve=V0?Math.sqrt(W*(2*se-W)):0,De=ge>0?Math.max:Math.min;_e="M"+(U+Ve*ke)+","+Y+"V"+De(O-(se-W)*ge,Y)+"A "+se+","+se+" 0 0 "+ze+" "+(U+se*ke-Ge)+","+O+"H"+(X-se*ke+Ge)+"A "+se+","+se+" 0 0 "+ze+" "+(X-Ve*ke)+","+De(O-(se-W)*ge,Y)+"V"+Y+"Z"}}else _e=te}else _e=te;var He=UF(ma.ensureSingle(I,"path"),s,n,i);if(He.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((X-U)*(O-Y))||G&&e._context.staticPlot?"M0,0Z":_e).call(po.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&k){var Oe=po.makePointStyleFns(d);po.singlePointStyle(R,He,d,Oe,e)}kve(e,r,I,c,N,U,X,Y,O,se,W,n,i),r.layerClipId&&po.hideOutsideRangePoint(R,I.select("text"),l,o,d.xcalendar,d.ycalendar)});var E=d.cliponaxis===!1;po.setClipUrl(h,E?null:r.layerClipId,e)});pve.getComponentMethod("errorbars","plot")(e,f,r,n)}function kve(e,r,t,a,n,i,l,o,s,u,f,c,h){var d=r.xaxis,p=r.yaxis,y=e._fullLayout,m;function b(V,te,W){var xe=ma.ensureSingle(V,"text").text(te).attr({class:"bartext bartext-"+m,"text-anchor":"middle","data-notex":1}).call(po.font,W).call(hve.convertToTspans,e);return xe}var _=a[0].trace,w=_.orientation==="h",x=Sve(y,a,n,d,p);m=Lve(_,n);var M=c.mode==="stack"||c.mode==="relative",k=a[n],A=!M||k._outmost,S=k.hasB,D=u&&u-f>Za;if(!x||m==="none"||(k.isBlank||i===l||o===s)&&(m==="auto"||m==="inside")){t.select("text").remove();return}var E=y.font,R=O5.getBarColor(a[n],_),N=O5.getInsideTextFont(_,n,E,R),I=O5.getOutsideTextFont(_,n,E),H=_.insidetextanchor||"end",U=t.datum();w?d.type==="log"&&U.s0<=0&&(d.range[0]0&&le>0,Q;D?S?Q=Ps(O-2*u,G,re,le,w)||Ps(O,G-2*u,re,le,w):w?Q=Ps(O-(u-f),G,re,le,w)||Ps(O,G-2*(u-f),re,le,w):Q=Ps(O,G-(u-f),re,le,w)||Ps(O-2*(u-f),G,re,le,w):Q=Ps(O,G,re,le,w),pe&&Q?m="inside":(m="outside",J.remove(),J=null)}else m="inside";if(!J){fe=ma.ensureUniformFontSize(e,m==="outside"?I:N),J=b(t,x,fe);var qe=J.attr("transform");if(J.attr("transform",""),$=po.bBox(J.node()),re=$.width,le=$.height,J.attr("transform",qe),re<=0||le<=0){J.remove();return}}var ve=_.textangle,be,se;m==="outside"?(se=_.constraintext==="both"||_.constraintext==="outside",be=Cve(i,l,o,s,$,{isHorizontal:w,constrained:se,angle:ve})):(se=_.constraintext==="both"||_.constraintext==="inside",be=ZF(i,l,o,s,$,{isHorizontal:w,constrained:se,angle:ve,anchor:H,hasB:S,r:u,overhead:f})),be.fontSize=fe.size,mve(_.type==="histogram"?"bar":_.type,be,y),k.transform=be;var _e=UF(J,y,c,h);ma.setTransormAndDisplay(_e,be)}function Ps(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,l=t<=r&&a<=e,o=n?e>=t*(r/a):r>=a*(e/t);return i||l||o}function WF(e){return e==="auto"?0:e}function XF(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function ZF(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",c=u==="start",h=i.leftToRight||0,d=(h+1)/2,p=1-d,y=i.hasB,m=i.r,b=i.overhead,_=n.width,w=n.height,x=Math.abs(r-e),M=Math.abs(a-t),k=x>2*Za&&M>2*Za?Za:0;x-=2*k,M-=2*k;var A=WF(s);s==="auto"&&!(_<=x&&w<=M)&&(_>x||w>M)&&(!(_>M||w>x)||_Za){var R=qve(e,r,t,a,S,m,b,l,y);D=R.scale,E=R.pad}else D=1,o&&(D=Math.min(1,x/S.x,M/S.y)),E=0;var N=n.left*p+n.right*d,I=(n.top+n.bottom)/2,H=(e+Za)*p+(r-Za)*d,U=(t+a)/2,X=0,Y=0;if(c||f){var O=(l?S.x:S.y)/2;m&&(f||y)&&(k+=E);var G=l?Qi(e,r):Qi(t,a);l?c?(H=e+G*k,X=-G*O):(H=r-G*k,X=G*O):c?(U=t+G*k,Y=-G*O):(U=a-G*k,Y=G*O)}return{textX:N,textY:I,targetX:H,targetY:U,anchorX:X,anchorY:Y,scale:D,rotate:A}}function qve(e,r,t,a,n,i,l,o,s){var u=Math.max(0,Math.abs(r-e)-2*Za),f=Math.max(0,Math.abs(a-t)-2*Za),c=i-Za,h=l?c-Math.sqrt(c*c-(c-l)*(c-l)):c,d=s?c*2:o?c-l:2*h,p=s?c*2:o?2*h:c-l,y,m,b,_,w;return n.y/n.x>=f/(u-d)?_=f/n.y:n.y/n.x<=(f-p)/u?_=u/n.x:!s&&o?(y=n.x*n.x+n.y*n.y/4,m=-2*n.x*(u-c)-n.y*(f/2-c),b=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,_=(-m+Math.sqrt(m*m-4*y*b))/(2*y)):s?(y=(n.x*n.x+n.y*n.y)/4,m=-n.x*(u/2-c)-n.y*(f/2-c),b=(u/2-c)*(u/2-c)+(f/2-c)*(f/2-c)-c*c,_=(-m+Math.sqrt(m*m-4*y*b))/(2*y)):(y=n.x*n.x/4+n.y*n.y,m=-n.x*(u/2-c)-2*n.y*(f-c),b=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,_=(-m+Math.sqrt(m*m-4*y*b))/(2*y)),_=Math.min(1,_),o?w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*_)/2)*(c-(f-n.y*_)/2)))-l):w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*_)/2)*(c-(u-n.x*_)/2)))-l),{scale:_,pad:w}}function Cve(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,c=Math.abs(r-e),h=Math.abs(a-t),d;l?d=h>2*Za?Za:0:d=c>2*Za?Za:0;var p=1;o&&(p=l?Math.min(1,h/f):Math.min(1,c/u));var y=WF(s),m=XF(n,y),b=(l?m.x:m.y)/2,_=(n.left+n.right)/2,w=(n.top+n.bottom)/2,x=(e+r)/2,M=(t+a)/2,k=0,A=0,S=l?Qi(r,e):Qi(t,a);return l?(x=r-S*d,k=S*b):(M=a+S*d,A=-S*b),{textX:_,textY:w,targetX:x,targetY:M,anchorX:k,anchorY:A,scale:p,rotate:y}}function Sve(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=Dve(e,r,t,a,n):i.textinfo?o=Eve(r,t,a,n):o=Df.getValue(i.text,t),Df.coerceString(xve,o)}function Lve(e,r){var t=Df.getValue(e.textposition,r);return Df.coerceEnumerated(bve,t)}function Dve(e,r,t,a,n){var i=r[0].trace,l=ma.castOption(i,t,"texttemplate");if(!l)return"";var o=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",c,h,d,p;f?(c="y",h=n,d="x",p=a):(c="x",h=a,d="y",p=n);function y(k){return Jp(h,h.c2l(k),!0).text}function m(k){return Jp(p,p.c2l(k),!0).text}var b=r[t],_={};_.label=b.p,_.labelLabel=_[c+"Label"]=y(b.p);var w=ma.castOption(i,b.i,"text");(w===0||w)&&(_.text=w),_.value=b.s,_.valueLabel=_[d+"Label"]=m(b.s);var x={};_ve(x,i,b.i),(o||x.x===void 0)&&(x.x=f?_.value:_.label),(o||x.y===void 0)&&(x.y=f?_.label:_.value),(o||x.xLabel===void 0)&&(x.xLabel=f?_.valueLabel:_.labelLabel),(o||x.yLabel===void 0)&&(x.yLabel=f?_.labelLabel:_.valueLabel),s&&(_.delta=+b.rawS||b.s,_.deltaLabel=m(_.delta),_.final=b.v,_.finalLabel=m(_.final),_.initial=_.final-_.delta,_.initialLabel=m(_.initial)),u&&(_.value=b.s,_.valueLabel=m(_.value),_.percentInitial=b.begR,_.percentInitialLabel=ma.formatPercent(b.begR),_.percentPrevious=b.difR,_.percentPreviousLabel=ma.formatPercent(b.difR),_.percentTotal=b.sumR,_.percenTotalLabel=ma.formatPercent(b.sumR));var M=ma.castOption(i,b.i,"customdata");return M&&(_.customdata=M),ma.texttemplateString(l,_,e._d3locale,x,_,i._meta||{})}function Eve(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",l=n.type==="waterfall",o=n.type==="funnel";function s(M){var k=i?a:t;return Jp(k,M,!0).text}function u(M){var k=i?t:a;return Jp(k,+M,!0).text}var f=n.textinfo,c=e[r],h=f.split("+"),d=[],p,y=function(M){return h.indexOf(M)!==-1};if(y("label")&&d.push(s(e[r].p)),y("text")&&(p=ma.castOption(n,c.i,"text"),(p===0||p)&&d.push(p)),l){var m=+c.rawS||c.s,b=c.v,_=b-m;y("initial")&&d.push(u(_)),y("delta")&&d.push(u(m)),y("final")&&d.push(u(b))}if(o){y("value")&&d.push(u(c.s));var w=0;y("percent initial")&&w++,y("percent previous")&&w++,y("percent total")&&w++;var x=w>1;y("percent initial")&&(p=ma.formatPercent(c.begR),x&&(p+=" of initial"),d.push(p)),y("percent previous")&&(p=ma.formatPercent(c.difR),x&&(p+=" of previous"),d.push(p)),y("percent total")&&(p=ma.formatPercent(c.sumR),x&&(p+=" of total"),d.push(p))}return d.join("
")}JF.exports={plot:Ave,toMoveInsideBar:ZF}});var a0=B((D5e,jF)=>{"use strict";var t0=gi(),Pve=yr(),$F=xr(),Rve=Pe().fillText,zve=Wp().getLineWidth,Y5=Jr().hoverLabelText,Nve=Mt().BADNUM;function Fve(e,r,t,a,n){var i=KF(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=QF(o,s),Pve.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function KF(e,r,t,a,n){var i=e.cd,l=i[0].trace,o=i[0].t,s=a==="closest",u=l.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,h,d,p,y,m,b,_;l.orientation==="h"?(h=t,d=r,p="y",y="x",m=U,b=N):(h=r,d=t,p="x",y="y",b=U,m=N);var w=l[p+"period"],x=s||w;function M(Q){return A(Q,-1)}function k(Q){return A(Q,1)}function A(Q,qe){var ve=Q.w;return Q[p]+qe*ve/2}function S(Q){return Q[p+"End"]-Q[p+"Start"]}var D=s?M:w?function(Q){return Q.p-S(Q)/2}:function(Q){return Math.min(M(Q),Q.p-o.bardelta/2)},E=s?k:w?function(Q){return Q.p+S(Q)/2}:function(Q){return Math.max(k(Q),Q.p+o.bardelta/2)};function R(Q,qe,ve){return n.finiteRange&&(ve=0),t0.inbox(Q-h,qe-h,ve+Math.min(1,Math.abs(qe-Q)/_)-1)}function N(Q){return R(D(Q),E(Q),f)}function I(Q){return R(M(Q),k(Q),c)}function H(Q){var qe=Q[y];if(u){var ve=Math.abs(Q.rawS)||0;d>0?qe+=ve:d<0&&(qe-=ve)}return qe}function U(Q){var qe=d,ve=Q.b,be=H(Q);return t0.inbox(ve-qe,be-qe,f+(be-qe)/(be-ve)-1)}function X(Q){var qe=d,ve=Q.b,be=H(Q);return t0.inbox(ve-qe,be-qe,c+(be-qe)/(be-ve)-1)}var Y=e[p+"a"],O=e[y+"a"];_=Math.abs(Y.r2c(Y.range[1])-Y.r2c(Y.range[0]));function G(Q){return(m(Q)+b(Q))/2}var J=t0.getDistanceFunction(a,m,b,G);if(t0.getClosest(i,J,e),e.index!==!1&&i[e.index].p!==Nve){x||(D=function(Q){return Math.min(M(Q),Q.p-o.bargroupwidth/2)},E=function(Q){return Math.max(k(Q),Q.p+o.bargroupwidth/2)});var $=e.index,re=i[$],le=l.base?re.b+re.s:re.s;e[y+"0"]=e[y+"1"]=O.c2p(re[y],!0),e[y+"LabelVal"]=le;var fe=o.extents[o.extents.round(re.p)];e[p+"0"]=Y.c2p(s?D(re):fe[0],!0),e[p+"1"]=Y.c2p(s?E(re):fe[1],!0);var pe=re.orig_p!==void 0;return e[p+"LabelVal"]=pe?re.orig_p:re.p,e.labelLabel=Y5(Y,e[p+"LabelVal"],l[p+"hoverformat"]),e.valueLabel=Y5(O,e[y+"LabelVal"],l[y+"hoverformat"]),e.baseLabel=Y5(O,re.b,l[y+"hoverformat"]),e.spikeDistance=(X(re)+I(re))/2,e[p+"Spike"]=Y.c2p(re.p,!0),Rve(re,l,e),e.hovertemplate=l.hovertemplate,e}}function QF(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=zve(e,r);if($F.opacity(t))return t;if($F.opacity(a)&&n)return a}jF.exports={hoverPoints:Fve,hoverOnBars:KF,getTraceColor:QF}});var rI=B((E5e,eI)=>{"use strict";eI.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var n0=B((P5e,tI)=>{"use strict";tI.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=a[0].trace,o=l.type==="funnel",s=l.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";aI.exports={attributes:Tl(),layoutAttributes:Gp(),supplyDefaults:Ki().supplyDefaults,crossTraceDefaults:Ki().crossTraceDefaults,supplyLayoutDefaults:F5(),calc:qF(),crossTraceCalc:hf().crossTraceCalc,colorbar:np(),arraysToCalcdata:Vp(),plot:Ef().plot,style:ho().style,styleOnSelect:ho().styleOnSelect,hoverPoints:a0().hoverPoints,eventData:rI(),selectPoints:n0(),moduleType:"trace",name:"bar",basePlotModule:gl(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var lI=B((z5e,iI)=>{"use strict";iI.exports=nI()});var sI=B((N5e,oI)=>{"use strict";oI.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var fI=B((F5e,uI)=>{"use strict";uI.exports={eventDataKeys:["binNumber"]}});var V5=B((I5e,hI)=>{"use strict";var pn=Tl(),cI=di().axisHoverFormat,Hve=ha().hovertemplateAttrs,Ove=ha().texttemplateAttrs,G5=aa(),vI=sI(),Bve=fI(),U5=mt().extendFlat;hI.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:cI("x"),yhoverformat:cI("y"),text:U5({},pn.text,{}),hovertext:U5({},pn.hovertext,{}),orientation:pn.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:vI("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:vI("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:Hve({},{keys:Bve.eventDataKeys}),texttemplate:Ove({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),textposition:U5({},pn.textposition,{arrayOk:!1}),textfont:G5({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:G5({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:G5({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:pn.insidetextanchor,textangle:pn.textangle,cliponaxis:pn.cliponaxis,constraintext:pn.constraintext,marker:pn.marker,offsetgroup:pn.offsetgroup,alignmentgroup:pn.alignmentgroup,selected:pn.selected,unselected:pn.unselected,zorder:pn.zorder}});var yI=B((H5e,mI)=>{"use strict";var dI=yr(),i0=Pe(),pI=xr(),Yve=Ki().handleText,Gve=N5(),Uve=V5();mI.exports=function(r,t,a,n){function i(_,w){return i0.coerce(r,t,Uve,_,w)}var l=i("x"),o=i("y"),s=i("cumulative.enabled");s&&(i("cumulative.direction"),i("cumulative.currentbin")),i("text");var u=i("textposition");Yve(r,t,n,i,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),i("hovertext"),i("hovertemplate"),i("xhoverformat"),i("yhoverformat");var f=i("orientation",o&&!l?"h":"v"),c=f==="v"?"x":"y",h=f==="v"?"y":"x",d=l&&o?Math.min(i0.minRowLength(l)&&i0.minRowLength(o)):i0.minRowLength(t[c]||[]);if(!d){t.visible=!1;return}t._length=d;var p=dI.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var y=t[h];y&&i("histfunc"),i("histnorm"),i("autobin"+c),Gve(r,t,i,a,n),i0.coerceSelectionMarkerOpacity(t,i);var m=(t.marker.line||{}).color,b=dI.getComponentMethod("errorbars","supplyDefaults");b(r,t,m||pI.defaultLine,{axis:"y"}),b(r,t,m||pI.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var _I=B((O5e,bI)=>{"use strict";var l0=Pe(),Vve=Ut(),$p=yr().traceIs,Wve=ff(),Xve=Ki().validateCornerradius,gI=l0.nestedProperty,W5=ys().getAxisGroup,xI=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],Zve=["x","y"];bI.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},l=[],o,s,u,f,c,h,d;function p(U,X){return l0.coerce(o._input,o,o._module.attributes,U,X)}function y(U){return U.orientation==="v"?"x":"y"}function m(U,X){var Y=Vve.getFromTrace({_fullLayout:t},U,X);return Y.type}function b(U,X,Y){var O=U.uid+"__"+Y;X||(X=O);var G=m(U,Y),J=U[Y+"calendar"]||"",$=a[X],re=!0;$&&(G===$.axType&&J===$.calendar?(re=!1,$.traces.push(U),$.dirs.push(Y)):(X=O,G!==$.axType&&l0.warn(["Attempted to group the bins of trace",U.index,"set on a","type:"+G,"axis","with bins on","type:"+$.axType,"axis."].join(" ")),J!==$.calendar&&l0.warn(["Attempted to group the bins of trace",U.index,"set with a",J,"calendar","with bins",$.calendar?"on a "+$.calendar+" calendar":"w/o a set calendar"].join(" ")))),re&&(a[X]={traces:[U],dirs:[Y],axType:G,calendar:U[Y+"calendar"]||""}),U["_"+Y+"bingroup"]=X}for(c=0;c{"use strict";var Pf=zr();wI.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return Pf(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return Pf(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if(Pf(n))if(n=Number(n),Pf(t[e])){if(t[e]>n){var i=n-t[e];return t[e]=n,i}}else return t[e]=n,n;return 0},max:function(e,r,t,a){var n=a[r];if(Pf(n))if(n=Number(n),Pf(t[e])){if(t[e]{"use strict";MI.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n{"use strict";kI.exports=function(r,t){for(var a=r.length,n=0,i=0;i{"use strict";var Rf=Mt(),Rs=Rf.ONEAVGYEAR,CI=Rf.ONEAVGMONTH,Qp=Rf.ONEDAY,SI=Rf.ONEHOUR,LI=Rf.ONEMIN,DI=Rf.ONESEC,EI=Jr().tickIncrement;zI.exports=function(r,t,a,n,i){var l=-1.1*t,o=-.1*t,s=r-o,u=a[0],f=a[1],c=Math.min(Kp(u+o,u+s,n,i),Kp(f+o,f+s,n,i)),h=Math.min(Kp(u+l,u+o,n,i),Kp(f+l,f+o,n,i)),d,p;if(c>h&&hQp){var y=d===Rs?1:6,m=d===Rs?"M12":"M1";return function(b,_){var w=n.c2d(b,Rs,i),x=w.indexOf("-",y);x>0&&(w=w.substr(0,x));var M=n.d2c(w,0,i);if(MDI?e>Qp?e>Rs*1.1?Rs:e>CI*1.1?CI:Qp:e>SI?SI:e>LI?LI:DI:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function Jve(e,r,t,a,n,i){if(a&&e>Qp){var l=RI(r,n,i),o=RI(t,n,i),s=e===Rs?0:1;return l[s]!==o[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function RI(e,r,t){var a=r.c2d(e,Rs,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var OI=B((V5e,HI)=>{"use strict";var X5=zr(),Ja=Pe(),FI=yr(),ei=Jr(),$ve=Vp(),II=TI(),Kve=AI(),Qve=qI(),jve=NI();function e0e(e,r){var t=[],a=[],n=r.orientation==="h",i=ei.getFromId(e,n?r.yaxis:r.xaxis),l=n?"y":"x",o={x:"y",y:"x"}[l],s=r[l+"calendar"],u=r.cumulative,f,c=Z5(e,r,i,l),h=c[0],d=c[1],p=typeof h.size=="string",y=[],m=p?y:h,b=[],_=[],w=[],x=0,M=r.histnorm,k=r.histfunc,A=M.indexOf("density")!==-1,S,D,E;u.enabled&&A&&(M=M.replace(/ ?density$/,""),A=!1);var R=k==="max"||k==="min",N=R?null:0,I=II.count,H=Kve[M],U=!1,X=function(V){return i.r2c(V,0,s)},Y;for(Ja.isArrayOrTypedArray(r[o])&&k!=="count"&&(Y=r[o],U=k==="avg",I=II[k]),f=X(h.start),D=X(h.end)+(f-ei.tickIncrement(f,h.size,!1,s))/1e6;f=0&&E=be;f--)if(a[f]){se=f;break}for(f=be;f<=se;f++)if(X5(t[f])&&X5(a[f])){var _e={p:t[f],s:a[f],b:0};u.enabled||(_e.pts=w[f],$?_e.ph0=_e.ph1=w[f].length?d[w[f][0]]:t[f]:(r._computePh=!0,_e.ph0=Q(y[f]),_e.ph1=Q(y[f+1],!0))),ve.push(_e)}return ve.length===1&&(ve[0].width1=ei.tickIncrement(ve[0].p,h.size,!1,s)-ve[0].p),$ve(ve,r),Ja.isArrayOrTypedArray(r.selectedpoints)&&Ja.tagSelected(ve,r,fe),ve}function Z5(e,r,t,a,n){var i=a+"bins",l=e._fullLayout,o=r["_"+a+"bingroup"],s=l._histogramBinOpts[o],u=l.barmode==="overlay",f,c,h,d,p,y,m,b=function(pe){return t.r2c(pe,0,d)},_=function(pe){return t.c2r(pe,0,d)},w=t.type==="date"?function(pe){return pe||pe===0?Ja.cleanDate(pe,null,d):null}:function(pe){return X5(pe)?Number(pe):null};function x(pe,Q,qe){Q[pe+"Found"]?(Q[pe]=w(Q[pe]),Q[pe]===null&&(Q[pe]=qe[pe])):(y[pe]=Q[pe]=qe[pe],Ja.nestedProperty(c[0],i+"."+pe).set(qe[pe]))}if(r["_"+a+"autoBinFinished"])delete r["_"+a+"autoBinFinished"];else{c=s.traces;var M=[],k=!0,A=!1,S=!1;for(f=0;ft.r2l(Y)&&(G=ei.tickIncrement(G,s.size,!0,d)),I.start=t.l2r(G),X||Ja.nestedProperty(r,i+".start").set(I.start)}var J=s.end,$=t.r2l(N.end),re=$!==void 0;if((s.endFound||re)&&$!==t.r2l(J)){var le=re?$:Ja.aggNums(Math.max,null,p);I.end=t.l2r(le),re||Ja.nestedProperty(r,i+".start").set(I.end)}var fe="autobin"+a;return r._input[fe]===!1&&(r._input[i]=Ja.extendFlat({},r[i]||{}),delete r._input[fe],delete r[fe]),[I,p]}function r0e(e,r,t,a,n){var i=e._fullLayout,l=t0e(e,r),o=!1,s=1/0,u=[r],f,c,h;for(f=0;f=0;a--)o(a);else if(r==="increasing"){for(a=1;a=0;a--)e[a]+=e[a+1];t==="exclude"&&(e.push(0),e.shift())}}HI.exports={calc:e0e,calcAllAutoBins:Z5}});var YI=B((W5e,BI)=>{"use strict";var n0e=a0().hoverPoints,i0e=Jr().hoverLabelText;BI.exports=function(r,t,a,n,i){var l=n0e(r,t,a,n,i);if(l){r=l[0];var o=r.cd[r.index],s=r.cd[0].trace;if(!s.cumulative.enabled){var u=s.orientation==="h"?"y":"x";r[u+"Label"]=i0e(r[u+"a"],[o.ph0,o.ph1],s[u+"hoverformat"])}return l}}});var UI=B((X5e,GI)=>{"use strict";GI.exports=function(r,t,a,n,i){if(r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"zLabelVal"in t&&(r.z=t.zLabelVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),!(a.cumulative||{}).enabled){var l=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;r.pointNumbers=l,r.binNumber=r.pointNumber,delete r.pointNumber,delete r.pointIndex;var o;if(a._indexToPoints){o=[];for(var s=0;s{"use strict";VI.exports={attributes:V5(),layoutAttributes:Gp(),supplyDefaults:yI(),crossTraceDefaults:_I(),supplyLayoutDefaults:F5(),calc:OI().calc,crossTraceCalc:hf().crossTraceCalc,plot:Ef().plot,layerName:"barlayer",style:ho().style,styleOnSelect:ho().styleOnSelect,colorbar:np(),hoverPoints:YI(),selectPoints:n0(),eventData:UI(),moduleType:"trace",name:"histogram",basePlotModule:gl(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var ZI=B((J5e,XI)=>{"use strict";XI.exports=WI()});var $I=B(($5e,JI)=>{"use strict";JI.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var $5=B((K5e,jI)=>{"use strict";var pt=Tl(),J5=bi().line,l0e=tn(),KI=di().axisHoverFormat,o0e=ha().hovertemplateAttrs,s0e=ha().texttemplateAttrs,QI=$I(),Ml=mt().extendFlat,u0e=xr();jI.exports={x:pt.x,x0:pt.x0,dx:pt.dx,y:pt.y,y0:pt.y0,dy:pt.dy,xperiod:pt.xperiod,yperiod:pt.yperiod,xperiod0:pt.xperiod0,yperiod0:pt.yperiod0,xperiodalignment:pt.xperiodalignment,yperiodalignment:pt.yperiodalignment,xhoverformat:KI("x"),yhoverformat:KI("y"),hovertext:pt.hovertext,hovertemplate:o0e({},{keys:QI.eventDataKeys}),hoverinfo:Ml({},l0e.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:s0e({editType:"plot"},{keys:QI.eventDataKeys.concat(["label","value"])}),text:pt.text,textposition:pt.textposition,insidetextanchor:Ml({},pt.insidetextanchor,{dflt:"middle"}),textangle:Ml({},pt.textangle,{dflt:0}),textfont:pt.textfont,insidetextfont:pt.insidetextfont,outsidetextfont:pt.outsidetextfont,constraintext:pt.constraintext,cliponaxis:pt.cliponaxis,orientation:Ml({},pt.orientation,{}),offset:Ml({},pt.offset,{arrayOk:!1}),width:Ml({},pt.width,{arrayOk:!1}),marker:f0e(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Ml({},J5.color,{dflt:u0e.defaultLine}),width:Ml({},J5.width,{dflt:0,editType:"plot"}),dash:J5.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:pt.offsetgroup,alignmentgroup:pt.alignmentgroup,zorder:pt.zorder};function f0e(){var e=Ml({},pt.marker);return delete e.pattern,delete e.cornerradius,e}});var K5=B((Q5e,eH)=>{"use strict";eH.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var j5=B((j5e,tH)=>{"use strict";var jp=Pe(),c0e=ff(),v0e=Ki().handleText,h0e=Rv(),d0e=_s(),rH=$5(),Q5=xr();function p0e(e,r,t,a){function n(c,h){return jp.coerce(e,r,rH,c,h)}var i=h0e(e,r,a,n);if(!i){r.visible=!1;return}d0e(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("orientation",r.y&&!r.x?"v":"h"),n("offset"),n("width");var l=n("text");n("hovertext"),n("hovertemplate");var o=n("textposition");v0e(e,r,a,n,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),r.textposition!=="none"&&!r.texttemplate&&n("textinfo",jp.isArrayOrTypedArray(l)?"text+value":"value");var s=n("marker.color",t);n("marker.line.color",Q5.defaultLine),n("marker.line.width");var u=n("connector.visible");if(u){n("connector.fillcolor",m0e(s));var f=n("connector.line.width");f&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function m0e(e){var r=jp.isArrayOrTypedArray(e)?"#000":e;return Q5.addOpacity(r,.5*Q5.opacity(r))}function y0e(e,r){var t,a;function n(l){return jp.coerce(a._input,a,rH,l)}for(var i=0;i{"use strict";var g0e=Pe(),x0e=K5();aH.exports=function(e,r,t){var a=!1;function n(o,s){return g0e.coerce(e,r,x0e,o,s)}for(var i=0;i{"use strict";var zf=Pe();iH.exports=function(r,t){for(var a=0;a{"use strict";var oH=Jr(),sH=ws(),b0e=lH(),_0e=zv(),o0=Mt().BADNUM;uH.exports=function(r,t){var a=oH.getFromId(r,t.xaxis||"x"),n=oH.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,c,h;t.orientation==="h"?(i=a.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=sH(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=sH(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;var d=Math.min(l.length,i.length),p=new Array(d);for(t._base=[],c=0;c{"use strict";var cH=hf().setGroupPositions;vH.exports=function(r,t){var a=r._fullLayout,n=r._fullData,i=r.calcdata,l=t.xaxis,o=t.yaxis,s=[],u=[],f=[],c,h;for(h=0;h{"use strict";var em=kr(),yo=Pe(),dH=Yr(),mo=Mt().BADNUM,w0e=Ef(),T0e=Ei().clearMinTextSize;mH.exports=function(r,t,a,n){var i=r._fullLayout;T0e("funnel",i),M0e(r,t,a,n),A0e(r,t,a,n),w0e.plot(r,t,a,n,{mode:i.funnelmode,norm:i.funnelmode,gap:i.funnelgap,groupgap:i.funnelgroupgap})};function M0e(e,r,t,a){var n=r.xaxis,i=r.yaxis;yo.makeTraceGroups(a,t,"trace bars").each(function(l){var o=em.select(this),s=l[0].trace,u=yo.ensureSingle(o,"g","regions");if(!s.connector||!s.connector.visible){u.remove();return}var f=s.orientation==="h",c=u.selectAll("g.region").data(yo.identity);c.enter().append("g").classed("region",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var y=pH(d,n,i,f),m=y[0],b=y[1],_="";m[0]!==mo&&b[0]!==mo&&m[1]!==mo&&b[1]!==mo&&m[2]!==mo&&b[2]!==mo&&m[3]!==mo&&b[3]!==mo&&(f?_+="M"+m[0]+","+b[1]+"L"+m[2]+","+b[2]+"H"+m[3]+"L"+m[1]+","+b[1]+"Z":_+="M"+m[1]+","+b[1]+"L"+m[2]+","+b[3]+"V"+b[2]+"L"+m[1]+","+b[0]+"Z"),_===""&&(_="M0,0Z"),yo.ensureSingle(em.select(this),"path").attr("d",_).call(dH.setClipUrl,r.layerClipId,e)}})})}function A0e(e,r,t,a){var n=r.xaxis,i=r.yaxis;yo.makeTraceGroups(a,t,"trace bars").each(function(l){var o=em.select(this),s=l[0].trace,u=yo.ensureSingle(o,"g","lines");if(!s.connector||!s.connector.visible||!s.connector.line.width){u.remove();return}var f=s.orientation==="h",c=u.selectAll("g.line").data(yo.identity);c.enter().append("g").classed("line",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var y=pH(d,n,i,f),m=y[0],b=y[1],_="";m[3]!==void 0&&b[3]!==void 0&&(f?(_+="M"+m[0]+","+b[1]+"L"+m[2]+","+b[2],_+="M"+m[1]+","+b[1]+"L"+m[3]+","+b[2]):(_+="M"+m[1]+","+b[1]+"L"+m[2]+","+b[3],_+="M"+m[1]+","+b[0]+"L"+m[2]+","+b[2])),_===""&&(_="M0,0Z"),yo.ensureSingle(em.select(this),"path").attr("d",_).call(dH.setClipUrl,r.layerClipId,e)}})})}function pH(e,r,t,a){var n=[],i=[],l=a?r:t,o=a?t:r;return n[0]=l.c2p(e.s0,!0),i[0]=o.c2p(e.p0,!0),n[1]=l.c2p(e.s1,!0),i[1]=o.c2p(e.p1,!0),n[2]=l.c2p(e.nextS0,!0),i[2]=o.c2p(e.nextP0,!0),n[3]=l.c2p(e.nextS1,!0),i[3]=o.c2p(e.nextP1,!0),a?[n,i]:[i,n]}});var bH=B((ibe,xH)=>{"use strict";var s0=kr(),gH=Yr(),rb=xr(),k0e=pu().DESELECTDIM,q0e=ho(),C0e=Ei().resizeText,S0e=q0e.styleTextPoints;function L0e(e,r,t){var a=t||s0.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");C0e(e,a,"funnel"),a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=s0.select(this),l=n[0].trace;i.selectAll(".point > path").each(function(o){if(!o.isBlank){var s=l.marker;s0.select(this).call(rb.fill,o.mc||s.color).call(rb.stroke,o.mlc||s.line.color).call(gH.dashLine,s.line.dash,o.mlw||s.line.width).style("opacity",l.selectedpoints&&!o.selected?k0e:1)}}),S0e(i,l,e),i.selectAll(".regions").each(function(){s0.select(this).selectAll("path").style("stroke-width",0).call(rb.fill,l.connector.fillcolor)}),i.selectAll(".lines").each(function(){var o=l.connector.line;gH.lineGroupStyle(s0.select(this).selectAll("path"),o.width,o.color,o.dash)})})}xH.exports={style:L0e}});var TH=B((lbe,wH)=>{"use strict";var _H=xr().opacity,D0e=a0().hoverOnBars,tb=Pe().formatPercent;wH.exports=function(r,t,a,n,i){var l=D0e(r,t,a,n,i);if(l){var o=l.cd,s=o[0].trace,u=s.orientation==="h",f=l.index,c=o[f],h=u?"x":"y";l[h+"LabelVal"]=c.s,l.percentInitial=c.begR,l.percentInitialLabel=tb(c.begR,1),l.percentPrevious=c.difR,l.percentPreviousLabel=tb(c.difR,1),l.percentTotal=c.sumR,l.percentTotalLabel=tb(c.sumR,1);var d=c.hi||s.hoverinfo,p=[];if(d&&d!=="none"&&d!=="skip"){var y=d==="all",m=d.split("+"),b=function(_){return y||m.indexOf(_)!==-1};b("percent initial")&&p.push(l.percentInitialLabel+" of initial"),b("percent previous")&&p.push(l.percentPreviousLabel+" of previous"),b("percent total")&&p.push(l.percentTotalLabel+" of total")}return l.extraText=p.join("
"),l.color=E0e(s,c),[l]}};function E0e(e,r){var t=e.marker,a=r.mc||t.color,n=r.mlc||t.line.color,i=r.mlw||t.line.width;if(_H(a))return a;if(_H(n)&&i)return n}});var AH=B((obe,MH)=>{"use strict";MH.exports=function(r,t){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"percentInitial"in t&&(r.percentInitial=t.percentInitial),"percentPrevious"in t&&(r.percentPrevious=t.percentPrevious),"percentTotal"in t&&(r.percentTotal=t.percentTotal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var qH=B((sbe,kH)=>{"use strict";kH.exports={attributes:$5(),layoutAttributes:K5(),supplyDefaults:j5().supplyDefaults,crossTraceDefaults:j5().crossTraceDefaults,supplyLayoutDefaults:nH(),calc:fH(),crossTraceCalc:hH(),plot:yH(),style:bH().style,hoverPoints:TH(),eventData:AH(),selectPoints:n0(),moduleType:"trace",name:"funnel",basePlotModule:gl(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var SH=B((ube,CH)=>{"use strict";CH.exports=qH()});var DH=B((fbe,LH)=>{"use strict";LH.exports={eventDataKeys:["initial","delta","final"]}});var ib=B((cbe,RH)=>{"use strict";var ut=Tl(),ab=bi().line,P0e=tn(),EH=di().axisHoverFormat,R0e=ha().hovertemplateAttrs,z0e=ha().texttemplateAttrs,PH=DH(),Nf=mt().extendFlat,N0e=xr();function nb(e){return{marker:{color:Nf({},ut.marker.color,{arrayOk:!1,editType:"style"}),line:{color:Nf({},ut.marker.line.color,{arrayOk:!1,editType:"style"}),width:Nf({},ut.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}RH.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:ut.x,x0:ut.x0,dx:ut.dx,y:ut.y,y0:ut.y0,dy:ut.dy,xperiod:ut.xperiod,yperiod:ut.yperiod,xperiod0:ut.xperiod0,yperiod0:ut.yperiod0,xperiodalignment:ut.xperiodalignment,yperiodalignment:ut.yperiodalignment,xhoverformat:EH("x"),yhoverformat:EH("y"),hovertext:ut.hovertext,hovertemplate:R0e({},{keys:PH.eventDataKeys}),hoverinfo:Nf({},P0e.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:z0e({editType:"plot"},{keys:PH.eventDataKeys.concat(["label"])}),text:ut.text,textposition:ut.textposition,insidetextanchor:ut.insidetextanchor,textangle:ut.textangle,textfont:ut.textfont,insidetextfont:ut.insidetextfont,outsidetextfont:ut.outsidetextfont,constraintext:ut.constraintext,cliponaxis:ut.cliponaxis,orientation:ut.orientation,offset:ut.offset,width:ut.width,increasing:nb("increasing"),decreasing:nb("decreasing"),totals:nb("intermediate sums and total"),connector:{line:{color:Nf({},ab.color,{dflt:N0e.defaultLine}),width:Nf({},ab.width,{editType:"plot"}),dash:ab.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:ut.offsetgroup,alignmentgroup:ut.alignmentgroup,zorder:ut.zorder}});var lb=B((vbe,zH)=>{"use strict";zH.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var Ff=B((hbe,NH)=>{"use strict";NH.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var sb=B((dbe,OH)=>{"use strict";var FH=Pe(),F0e=ff(),I0e=Ki().handleText,H0e=Rv(),O0e=_s(),IH=ib(),B0e=xr(),HH=Ff(),Y0e=HH.INCREASING.COLOR,G0e=HH.DECREASING.COLOR,U0e="#4499FF";function ob(e,r,t){e(r+".marker.color",t),e(r+".marker.line.color",B0e.defaultLine),e(r+".marker.line.width")}function V0e(e,r,t,a){function n(u,f){return FH.coerce(e,r,IH,u,f)}var i=H0e(e,r,a,n);if(!i){r.visible=!1;return}O0e(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("measure"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate");var l=n("textposition");I0e(e,r,a,n,l,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),r.textposition!=="none"&&(n("texttemplate"),r.texttemplate||n("textinfo")),ob(n,"increasing",Y0e),ob(n,"decreasing",G0e),ob(n,"totals",U0e);var o=n("connector.visible");if(o){n("connector.mode");var s=n("connector.line.width");s&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function W0e(e,r){var t,a;function n(l){return FH.coerce(a._input,a,IH,l)}if(r.waterfallmode==="group")for(var i=0;i{"use strict";var X0e=Pe(),Z0e=lb();BH.exports=function(e,r,t){var a=!1;function n(o,s){return X0e.coerce(e,r,Z0e,o,s)}for(var i=0;i{"use strict";var GH=Jr(),UH=ws(),VH=Pe().mergeArray,J0e=zv(),WH=Mt().BADNUM;function ub(e){return e==="a"||e==="absolute"}function fb(e){return e==="t"||e==="total"}XH.exports=function(r,t){var a=GH.getFromId(r,t.xaxis||"x"),n=GH.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f;t.orientation==="h"?(i=a.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=UH(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=UH(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var c=Math.min(l.length,i.length),h=new Array(c),d=0,p,y=!1,m=0;m{"use strict";var JH=hf().setGroupPositions;$H.exports=function(r,t){var a=r._fullLayout,n=r._fullData,i=r.calcdata,l=t.xaxis,o=t.yaxis,s=[],u=[],f=[],c,h;for(h=0;h{"use strict";var QH=kr(),rm=Pe(),$0e=Yr(),If=Mt().BADNUM,K0e=Ef(),Q0e=Ei().clearMinTextSize;jH.exports=function(r,t,a,n){var i=r._fullLayout;Q0e("waterfall",i),K0e.plot(r,t,a,n,{mode:i.waterfallmode,norm:i.waterfallmode,gap:i.waterfallgap,groupgap:i.waterfallgroupgap}),j0e(r,t,a,n)};function j0e(e,r,t,a){var n=r.xaxis,i=r.yaxis;rm.makeTraceGroups(a,t,"trace bars").each(function(l){var o=QH.select(this),s=l[0].trace,u=rm.ensureSingle(o,"g","lines");if(!s.connector||!s.connector.visible){u.remove();return}var f=s.orientation==="h",c=s.connector.mode,h=u.selectAll("g.line").data(rm.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(p,y){if(!(y!==d-1&&!p.cNext)){var m=ehe(p,n,i,f),b=m[0],_=m[1],w="";b[0]!==If&&_[0]!==If&&b[1]!==If&&_[1]!==If&&(c==="spanning"&&!p.isSum&&y>0&&(f?w+="M"+b[0]+","+_[1]+"V"+_[0]:w+="M"+b[1]+","+_[0]+"H"+b[0]),c!=="between"&&(p.isSum||y{"use strict";var tm=kr(),rO=Yr(),tO=xr(),rhe=pu().DESELECTDIM,the=ho(),ahe=Ei().resizeText,nhe=the.styleTextPoints;function ihe(e,r,t){var a=t||tm.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");ahe(e,a,"waterfall"),a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=tm.select(this),l=n[0].trace;i.selectAll(".point > path").each(function(o){if(!o.isBlank){var s=l[o.dir].marker;tm.select(this).call(tO.fill,s.color).call(tO.stroke,s.line.color).call(rO.dashLine,s.line.dash,s.line.width).style("opacity",l.selectedpoints&&!o.selected?rhe:1)}}),nhe(i,l,e),i.selectAll(".lines").each(function(){var o=l.connector.line;rO.lineGroupStyle(tm.select(this).selectAll("path"),o.width,o.color,o.dash)})})}aO.exports={style:ihe}});var uO=B((bbe,sO)=>{"use strict";var lhe=Jr().hoverLabelText,iO=xr().opacity,ohe=a0().hoverOnBars,lO=Ff(),oO={increasing:lO.INCREASING.SYMBOL,decreasing:lO.DECREASING.SYMBOL};sO.exports=function(r,t,a,n,i){var l=ohe(r,t,a,n,i);if(!l)return;var o=l.cd,s=o[0].trace,u=s.orientation==="h",f=u?"x":"y",c=u?r.xa:r.ya;function h(k){return lhe(c,k,s[f+"hoverformat"])}var d=l.index,p=o[d],y=p.isSum?p.b+p.s:p.rawS;l.initial=p.b+p.s-y,l.delta=y,l.final=l.initial+l.delta;var m=h(Math.abs(l.delta));l.deltaLabel=y<0?"("+m+")":m,l.finalLabel=h(l.final),l.initialLabel=h(l.initial);var b=p.hi||s.hoverinfo,_=[];if(b&&b!=="none"&&b!=="skip"){var w=b==="all",x=b.split("+"),M=function(k){return w||x.indexOf(k)!==-1};p.isSum||(M("final")&&(u?!M("x"):!M("y"))&&_.push(l.finalLabel),M("delta")&&(y<0?_.push(l.deltaLabel+" "+oO.decreasing):_.push(l.deltaLabel+" "+oO.increasing)),M("initial")&&_.push("Initial: "+l.initialLabel))}return _.length&&(l.extraText=_.join("
")),l.color=she(s,p),[l]};function she(e,r){var t=e[r.dir].marker,a=t.color,n=t.line.color,i=t.line.width;if(iO(a))return a;if(iO(n)&&i)return n}});var cO=B((_be,fO)=>{"use strict";fO.exports=function(r,t){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"initial"in t&&(r.initial=t.initial),"delta"in t&&(r.delta=t.delta),"final"in t&&(r.final=t.final),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var hO=B((wbe,vO)=>{"use strict";vO.exports={attributes:ib(),layoutAttributes:lb(),supplyDefaults:sb().supplyDefaults,crossTraceDefaults:sb().crossTraceDefaults,supplyLayoutDefaults:YH(),calc:ZH(),crossTraceCalc:KH(),plot:eO(),style:nO().style,hoverPoints:uO(),eventData:cO(),selectPoints:n0(),moduleType:"trace",name:"waterfall",basePlotModule:gl(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var pO=B((Tbe,dO)=>{"use strict";dO.exports=hO()});var nm=B((Mbe,mO)=>{"use strict";var uhe=tn(),fhe=fo().attributes,che=aa(),vhe=zn(),hhe=ha().hovertemplateAttrs,dhe=ha().texttemplateAttrs,u0=mt().extendFlat,phe=fi().pattern,am=che({editType:"plot",arrayOk:!0,colorEditType:"plot"});mO.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:vhe.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:phe,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:u0({},uhe.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:hhe({},{keys:["label","color","value","percent","text"]}),texttemplate:dhe({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:u0({},am,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:u0({},am,{}),outsidetextfont:u0({},am,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:u0({},am,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:fhe({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var im=B((Abe,xO)=>{"use strict";var mhe=zr(),f0=Pe(),yhe=nm(),ghe=fo().defaults,xhe=Ki().handleText,bhe=Pe().coercePattern;function yO(e,r){var t=f0.isArrayOrTypedArray(e),a=f0.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,l=0;l0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function gO(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var l=a("marker.colors");bhe(a,"marker.pattern",l),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function _he(e,r,t,a){function n(_,w){return f0.coerce(e,r,yhe,_,w)}var i=n("labels"),l=n("values"),o=yO(i,l),s=o.len;if(r._hasLabels=o.hasLabels,r._hasValues=o.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,gO(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate"),c;if(f||(c=n("textinfo",f0.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),f||c&&c!=="none"){var h=n("textposition");xhe(e,r,a,n,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",p=d||h==="outside";p&&n("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&n("insidetextorientation")}else c==="none"&&n("textposition","none");ghe(r,a,n);var y=n("hole"),m=n("title.text");if(m){var b=n("title.position",y?"middle center":"top center");!y&&b==="middle center"&&(r.title.position="top center"),f0.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}xO.exports={handleLabelsAndValues:yO,handleMarkerDefaults:gO,supplyDefaults:_he}});var lm=B((kbe,bO)=>{"use strict";bO.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var wO=B((qbe,_O)=>{"use strict";var whe=Pe(),The=lm();_O.exports=function(r,t){function a(n,i){return whe.coerce(r,t,The,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var om=B((Cbe,AO)=>{"use strict";var Mhe=zr(),cb=Rn(),Ahe=xr(),khe={};function qhe(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,l=r.marker.colors||[],o=r.values,s=r._length,u=r._hasValues&&s,f,c;if(r.dlabel)for(i=new Array(s),f=0;f=0});var x=r.type==="funnelarea"?y:r.sort;return x&&t.sort(function(M,k){return k.v-M.v}),t[0]&&(t[0].vTotal=p),t}function TO(e){return function(t,a){return!t||(t=cb(t),!t.isValid())?!1:(t=Ahe.addOpacity(t,t.getAlpha()),e[a]||(e[a]=t),t)}}function Che(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],l=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=MO(i,khe));for(var o=0,s=0;s{"use strict";var She=Hi().appendArrayMultiPointValues;kO.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),She(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var db=B((Lbe,ZO)=>{"use strict";var mn=kr(),Lhe=Pt(),sm=gi(),PO=xr(),Al=Yr(),Sa=Pe(),Dhe=Sa.strScale,CO=Sa.strTranslate,vb=da(),RO=Ei(),Ehe=RO.recordMinTextSize,Phe=RO.clearMinTextSize,zO=Yp().TEXTPAD,Tr=jc(),um=qO(),SO=Pe().isValidTextValue;function Rhe(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;Phe("pie",a),IO(r,e),VO(r,n);var i=Sa.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=mn.select(this),s=l[0],u=s.trace;Ghe(l),o.attr("stroke-linejoin","round"),o.each(function(){var f=mn.select(this).selectAll("g.slice").data(l);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],h=!1;f.each(function(x,M){if(x.hidden){mn.select(this).selectAll("path,g").remove();return}x.pointNumber=x.i,x.curveNumber=u.index,c[x.pxmid[1]<0?0:1][x.pxmid[0]<0?0:1].push(x);var k=s.cx,A=s.cy,S=mn.select(this),D=S.selectAll("path.surface").data([x]);if(D.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),S.call(NO,e,l),u.pull){var E=+Tr.castOption(u.pull,x.pts)||0;E>0&&(k+=E*x.pxmid[0],A+=E*x.pxmid[1])}x.cxFinal=k,x.cyFinal=A;function R(O,G,J,$){var re=$*(G[0]-O[0]),le=$*(G[1]-O[1]);return"a"+$*s.r+","+$*s.r+" 0 "+x.largeArc+(J?" 1 ":" 0 ")+re+","+le}var N=u.hole;if(x.v===s.vTotal){var I="M"+(k+x.px0[0])+","+(A+x.px0[1])+R(x.px0,x.pxmid,!0,1)+R(x.pxmid,x.px0,!0,1)+"Z";N?D.attr("d","M"+(k+N*x.px0[0])+","+(A+N*x.px0[1])+R(x.px0,x.pxmid,!1,N)+R(x.pxmid,x.px0,!1,N)+"Z"+I):D.attr("d",I)}else{var H=R(x.px0,x.px1,!0,1);if(N){var U=1-N;D.attr("d","M"+(k+N*x.px1[0])+","+(A+N*x.px1[1])+R(x.px1,x.px0,!1,N)+"l"+U*x.px0[0]+","+U*x.px0[1]+H+"Z")}else D.attr("d","M"+k+","+A+"l"+x.px0[0]+","+x.px0[1]+H+"Z")}WO(e,x,s);var X=Tr.castOption(u.textposition,x.pts),Y=S.selectAll("g.slicetext").data(x.text&&X!=="none"?[0]:[]);Y.enter().append("g").classed("slicetext",!0),Y.exit().remove(),Y.each(function(){var O=Sa.ensureSingle(mn.select(this),"text","",function(Q){Q.attr("data-notex",1)}),G=Sa.ensureUniformFontSize(e,X==="outside"?Nhe(u,x,a.font):FO(u,x,a.font));O.text(x.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(Al.font,G).call(vb.convertToTspans,e);var J=Al.bBox(O.node()),$;if(X==="outside")$=EO(J,x);else if($=HO(J,x,s),X==="auto"&&$.scale<1){var re=Sa.ensureUniformFontSize(e,u.outsidetextfont);O.call(Al.font,re),J=Al.bBox(O.node()),$=EO(J,x)}var le=$.textPosAngle,fe=le===void 0?x.pxmid:fm(s.r,le);if($.targetX=k+fe[0]*$.rCenter+($.x||0),$.targetY=A+fe[1]*$.rCenter+($.y||0),XO($,J),$.outside){var pe=$.targetY;x.yLabelMin=pe-J.height/2,x.yLabelMid=pe,x.yLabelMax=pe+J.height/2,x.labelExtraX=0,x.labelExtraY=0,h=!0}$.fontSize=G.size,Ehe(u.type,$,a),l[M].transform=$,Sa.setTransormAndDisplay(O,$)})});var d=mn.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var x=Sa.ensureSingle(mn.select(this),"text","",function(A){A.attr("data-notex",1)}),M=u.title.text;u._meta&&(M=Sa.templateString(M,u._meta)),x.text(M).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(Al.font,u.title.font).call(vb.convertToTspans,e);var k;u.title.position==="middle center"?k=Hhe(s):k=GO(s,n),x.attr("transform",CO(k.x,k.y)+Dhe(Math.min(1,k.scale))+CO(k.tx,k.ty))}),h&&Bhe(c,u),zhe(f,u),h&&u.automargin){var p=Al.bBox(o.node()),y=u.domain,m=n.w*(y.x[1]-y.x[0]),b=n.h*(y.y[1]-y.y[0]),_=(.5*m-s.r)/n.w,w=(.5*b-s.r)/n.h;Lhe.autoMargin(e,"pie."+u.uid+".automargin",{xl:y.x[0]-_,xr:y.x[1]+_,yb:y.y[0]-w,yt:y.y[1]+w,l:Math.max(s.cx-s.r-p.left,0),r:Math.max(p.right-(s.cx+s.r),0),b:Math.max(p.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-p.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var l=mn.select(this);l.attr("dy")&&l.attr("dy",l.attr("dy"))})},0)}function zhe(e,r){e.each(function(t){var a=mn.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,Sa.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],l=t.cyFinal+t.pxmid[1],o="M"+i+","+l,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?o+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):o+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else o+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;Sa.ensureSingle(a,"path","textline").call(PO.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function NO(e,r,t){var a=t[0],n=a.cx,i=a.cy,l=a.trace,o=l.type==="funnelarea";"_hasHoverLabel"in l||(l._hasHoverLabel=!1),"_hasHoverEvent"in l||(l._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[l.index];if(!(r._dragging||u.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=sm.castHoverinfo({hoverinfo:[Tr.castOption(c,s.pts)],_module:l._module},u,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var h=s.rInscribed||0,d=n+s.pxmid[0]*(1-h),p=i+s.pxmid[1]*(1-h),y=u.separators,m=[];if(c&&c.indexOf("label")!==-1&&m.push(s.label),s.text=Tr.castOption(f.hovertext||f.text,s.pts),c&&c.indexOf("text")!==-1){var b=s.text;Sa.isValidTextValue(b)&&m.push(b)}s.value=s.v,s.valueLabel=Tr.formatPieValue(s.v,y),c&&c.indexOf("value")!==-1&&m.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=Tr.formatPiePercent(s.percent,y),c&&c.indexOf("percent")!==-1&&m.push(s.percentLabel);var _=f.hoverlabel,w=_.font,x=[];sm.loneHover({trace:l,x0:d-h*a.r,x1:d+h*a.r,y:p,_x0:o?n+s.TL[0]:d-h*a.r,_x1:o?n+s.TR[0]:d+h*a.r,_y0:o?i+s.TL[1]:p-h*a.r,_y1:o?i+s.BL[1]:p+h*a.r,text:m.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:Tr.castOption(_.bgcolor,s.pts)||s.color,borderColor:Tr.castOption(_.bordercolor,s.pts),fontFamily:Tr.castOption(w.family,s.pts),fontSize:Tr.castOption(w.size,s.pts),fontColor:Tr.castOption(w.color,s.pts),nameLength:Tr.castOption(_.namelength,s.pts),textAlign:Tr.castOption(_.align,s.pts),hovertemplate:Tr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[um(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:x}),s.bbox=x[0],l._hasHoverLabel=!0}l._hasHoverEvent=!0,r.emit("plotly_hover",{points:[um(s,f)],event:mn.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[l.index],c=mn.select(this).datum();l._hasHoverEvent&&(s.originalEvent=mn.event,r.emit("plotly_unhover",{points:[um(c,f)],event:mn.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(sm.loneUnhover(u._hoverlayer.node()),l._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[l.index];r._dragging||u.hovermode===!1||(r._hoverdata=[um(s,f)],sm.click(r,mn.event))})}function Nhe(e,r,t){var a=Tr.castOption(e.outsidetextfont.color,r.pts)||Tr.castOption(e.textfont.color,r.pts)||t.color,n=Tr.castOption(e.outsidetextfont.family,r.pts)||Tr.castOption(e.textfont.family,r.pts)||t.family,i=Tr.castOption(e.outsidetextfont.size,r.pts)||Tr.castOption(e.textfont.size,r.pts)||t.size,l=Tr.castOption(e.outsidetextfont.weight,r.pts)||Tr.castOption(e.textfont.weight,r.pts)||t.weight,o=Tr.castOption(e.outsidetextfont.style,r.pts)||Tr.castOption(e.textfont.style,r.pts)||t.style,s=Tr.castOption(e.outsidetextfont.variant,r.pts)||Tr.castOption(e.textfont.variant,r.pts)||t.variant,u=Tr.castOption(e.outsidetextfont.textcase,r.pts)||Tr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Tr.castOption(e.outsidetextfont.lineposition,r.pts)||Tr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Tr.castOption(e.outsidetextfont.shadow,r.pts)||Tr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function FO(e,r,t){var a=Tr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=Tr.castOption(e._input.textfont.color,r.pts));var n=Tr.castOption(e.insidetextfont.family,r.pts)||Tr.castOption(e.textfont.family,r.pts)||t.family,i=Tr.castOption(e.insidetextfont.size,r.pts)||Tr.castOption(e.textfont.size,r.pts)||t.size,l=Tr.castOption(e.insidetextfont.weight,r.pts)||Tr.castOption(e.textfont.weight,r.pts)||t.weight,o=Tr.castOption(e.insidetextfont.style,r.pts)||Tr.castOption(e.textfont.style,r.pts)||t.style,s=Tr.castOption(e.insidetextfont.variant,r.pts)||Tr.castOption(e.textfont.variant,r.pts)||t.variant,u=Tr.castOption(e.insidetextfont.textcase,r.pts)||Tr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Tr.castOption(e.insidetextfont.lineposition,r.pts)||Tr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Tr.castOption(e.insidetextfont.shadow,r.pts)||Tr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||PO.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function IO(e,r){for(var t,a,n=0;n=-4;_-=2)b(Math.PI*_,"tan");for(_=4;_>=-4;_-=2)b(Math.PI*(_+1),"tan")}if(c||d){for(_=4;_>=-4;_-=2)b(Math.PI*(_+1.5),"rad");for(_=4;_>=-4;_-=2)b(Math.PI*(_+.5),"rad")}}if(o||p||c){var w=Math.sqrt(e.width*e.width+e.height*e.height);if(m={scale:n*a*2/w,rCenter:1-n,rotate:0},m.textPosAngle=(r.startangle+r.stopangle)/2,m.scale>=1)return m;y.push(m)}(p||d)&&(m=LO(e,a,l,s,u),m.textPosAngle=(r.startangle+r.stopangle)/2,y.push(m)),(p||h)&&(m=DO(e,a,l,s,u),m.textPosAngle=(r.startangle+r.stopangle)/2,y.push(m));for(var x=0,M=0,k=0;k=1)break}return y[x]}function Fhe(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function Hhe(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function GO(e,r){var t=1,a=1,n,i=e.trace,l={x:e.cx,y:e.cy},o={tx:0,ty:0};o.ty+=i.title.font.size,n=UO(i),i.title.position.indexOf("top")!==-1?(l.y-=(1+n)*e.r,o.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(l.y+=(1+n)*e.r);var s=Ohe(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,l.x-=(1+n)*s,o.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,l.x+=(1+n)*s,o.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=hb(e,r)/e.titleBox.height,{x:l.x,y:l.y,scale:Math.min(t,a),tx:o.tx,ty:o.ty}}function Ohe(e,r){return e/(r===void 0?1:r)}function hb(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function UO(e){var r=e.pull;if(!r)return 0;var t;if(Sa.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function Bhe(e,r){var t,a,n,i,l,o,s,u,f,c,h,d,p;function y(w,x){return w.pxmid[1]-x.pxmid[1]}function m(w,x){return x.pxmid[1]-w.pxmid[1]}function b(w,x){x||(x={});var M=x.labelExtraY+(a?x.yLabelMax:x.yLabelMin),k=a?w.yLabelMin:w.yLabelMax,A=a?w.yLabelMax:w.yLabelMin,S=w.cyFinal+l(w.px0[1],w.px1[1]),D=M-k,E,R,N,I,H,U;if(D*s>0&&(w.labelExtraY=D),!!Sa.isArrayOrTypedArray(r.pull))for(R=0;R=(Tr.castOption(r.pull,N.pts)||0))&&((w.pxmid[1]-N.pxmid[1])*s>0?(I=N.cyFinal+l(N.px0[1],N.px1[1]),D=I-k-w.labelExtraY,D*s>0&&(w.labelExtraY+=D)):(A+w.labelExtraY-S)*s>0&&(E=3*o*Math.abs(R-c.indexOf(w)),H=N.cxFinal+i(N.px0[0],N.px1[0]),U=H+E-(w.cxFinal+w.pxmid[0])-w.labelExtraX,U*o>0&&(w.labelExtraX+=U)))}for(a=0;a<2;a++)for(n=a?y:m,l=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,o=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],c=f.concat(u),d=[],h=0;h1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}l=Math.min(l,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=Ihe(u,r))}function fm(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function WO(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,l=n.textinfo;if(!i&&l&&l!=="none"){var o=l.split("+"),s=function(x){return o.indexOf(x)!==-1},u=s("label"),f=s("text"),c=s("value"),h=s("percent"),d=a.separators,p;if(p=u?[r.label]:[],f){var y=Tr.getFirstFilled(n.text,r.pts);SO(y)&&p.push(y)}c&&p.push(Tr.formatPieValue(r.v,d)),h&&p.push(Tr.formatPiePercent(r.v/t.vTotal,d)),r.text=p.join("
")}function m(x){return{label:x.label,value:x.v,valueLabel:Tr.formatPieValue(x.v,a.separators),percent:x.v/t.vTotal,percentLabel:Tr.formatPiePercent(x.v/t.vTotal,a.separators),color:x.color,text:x.text,customdata:Sa.castOption(n,x.i,"customdata")}}if(i){var b=Sa.castOption(n,r.i,"texttemplate");if(!b)r.text="";else{var _=m(r),w=Tr.getFirstFilled(n.text,r.pts);(SO(w)||w==="")&&(_.text=w),r.text=Sa.texttemplateString(b,_,e._fullLayout._d3locale,_,n._meta||{})}}}function XO(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,l=(r.top+r.bottom)/2;e.textX=i*a-l*n,e.textY=i*n+l*a,e.noCenter=!0}ZO.exports={plot:Rhe,formatSliceLabel:WO,transformInsideText:HO,determineInsideTextFont:FO,positionTitleOutside:GO,prerenderTitles:IO,layoutAreas:VO,attachFxHandlers:NO,computeTransform:XO}});var KO=B((Dbe,$O)=>{"use strict";var JO=kr(),Uhe=Uu(),Vhe=Ei().resizeText;$O.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");Vhe(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=JO.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){JO.select(this).call(Uhe,o,i,r)})})}});var jO=B(Hf=>{"use strict";var QO=Pt();Hf.name="pie";Hf.plot=function(e,r,t,a){QO.plotBasePlot(Hf.name,e,r,t,a)};Hf.clean=function(e,r,t,a){QO.cleanBasePlot(Hf.name,e,r,t,a)}});var rB=B((Pbe,eB)=>{"use strict";eB.exports={attributes:nm(),supplyDefaults:im().supplyDefaults,supplyLayoutDefaults:wO(),layoutAttributes:lm(),calc:om().calc,crossTraceCalc:om().crossTraceCalc,plot:db().plot,style:KO(),styleOne:Uu(),moduleType:"trace",name:"pie",basePlotModule:jO(),categories:["pie-like","pie","showLegend"],meta:{}}});var aB=B((Rbe,tB)=>{"use strict";tB.exports=rB()});var iB=B(Of=>{"use strict";var nB=Pt();Of.name="funnelarea";Of.plot=function(e,r,t,a){nB.plotBasePlot(Of.name,e,r,t,a)};Of.clean=function(e,r,t,a){nB.cleanBasePlot(Of.name,e,r,t,a)}});var pb=B((Nbe,lB)=>{"use strict";var La=nm(),Whe=tn(),Xhe=fo().attributes,Zhe=ha().hovertemplateAttrs,Jhe=ha().texttemplateAttrs,zs=mt().extendFlat;lB.exports={labels:La.labels,label0:La.label0,dlabel:La.dlabel,values:La.values,marker:{colors:La.marker.colors,line:{color:zs({},La.marker.line.color,{dflt:null}),width:zs({},La.marker.line.width,{dflt:1}),editType:"calc"},pattern:La.marker.pattern,editType:"calc"},text:La.text,hovertext:La.hovertext,scalegroup:zs({},La.scalegroup,{}),textinfo:zs({},La.textinfo,{flags:["label","text","value","percent"]}),texttemplate:Jhe({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:zs({},Whe.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Zhe({},{keys:["label","color","value","text","percent"]}),textposition:zs({},La.textposition,{values:["inside","none"],dflt:"inside"}),textfont:La.textfont,insidetextfont:La.insidetextfont,title:{text:La.title.text,font:La.title.font,position:zs({},La.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:Xhe({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}});var mb=B((Fbe,oB)=>{"use strict";var $he=lm().hiddenlabels;oB.exports={hiddenlabels:$he,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var fB=B((Ibe,uB)=>{"use strict";var sB=Pe(),Khe=pb(),Qhe=fo().defaults,jhe=Ki().handleText,ede=im().handleLabelsAndValues,rde=im().handleMarkerDefaults;uB.exports=function(r,t,a,n){function i(y,m){return sB.coerce(r,t,Khe,y,m)}var l=i("labels"),o=i("values"),s=ede(l,o),u=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(i("label0"),i("dlabel")),!u){t.visible=!1;return}t._length=u,rde(r,t,n,i),i("scalegroup");var f=i("text"),c=i("texttemplate"),h;if(c||(h=i("textinfo",Array.isArray(f)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),c||h&&h!=="none"){var d=i("textposition");jhe(r,t,n,i,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&i("textposition","none");Qhe(t,n,i);var p=i("title.text");p&&(i("title.position"),sB.coerceFont(i,"title.font",n.font)),i("aspectratio"),i("baseratio")}});var vB=B((Hbe,cB)=>{"use strict";var tde=Pe(),ade=mb();cB.exports=function(r,t){function a(n,i){return tde.coerce(r,t,ade,n,i)}a("hiddenlabels"),a("funnelareacolorway",t.colorway),a("extendfunnelareacolors")}});var yb=B((Obe,dB)=>{"use strict";var hB=om();function nde(e,r){return hB.calc(e,r)}function ide(e){hB.crossTraceCalc(e,{type:"funnelarea"})}dB.exports={calc:nde,crossTraceCalc:ide}});var xB=B((Bbe,gB)=>{"use strict";var Ns=kr(),gb=Yr(),go=Pe(),lde=go.strScale,pB=go.strTranslate,mB=da(),ode=Ef(),sde=ode.toMoveInsideBar,yB=Ei(),ude=yB.recordMinTextSize,fde=yB.clearMinTextSize,cde=jc(),Bf=db(),vde=Bf.attachFxHandlers,hde=Bf.determineInsideTextFont,dde=Bf.layoutAreas,pde=Bf.prerenderTitles,mde=Bf.positionTitleOutside,yde=Bf.formatSliceLabel;gB.exports=function(r,t){var a=r._context.staticPlot,n=r._fullLayout;fde("funnelarea",n),pde(t,r),dde(t,n._size),go.makeTraceGroups(n._funnelarealayer,t,"trace").each(function(i){var l=Ns.select(this),o=i[0],s=o.trace;xde(i),l.each(function(){var u=Ns.select(this).selectAll("g.slice").data(i);u.enter().append("g").classed("slice",!0),u.exit().remove(),u.each(function(c,h){if(c.hidden){Ns.select(this).selectAll("path,g").remove();return}c.pointNumber=c.i,c.curveNumber=s.index;var d=o.cx,p=o.cy,y=Ns.select(this),m=y.selectAll("path.surface").data([c]);m.enter().append("path").classed("surface",!0).style({"pointer-events":a?"none":"all"}),y.call(vde,r,i);var b="M"+(d+c.TR[0])+","+(p+c.TR[1])+xb(c.TR,c.BR)+xb(c.BR,c.BL)+xb(c.BL,c.TL)+"Z";m.attr("d",b),yde(r,c,o);var _=cde.castOption(s.textposition,c.pts),w=y.selectAll("g.slicetext").data(c.text&&_!=="none"?[0]:[]);w.enter().append("g").classed("slicetext",!0),w.exit().remove(),w.each(function(){var x=go.ensureSingle(Ns.select(this),"text","",function(N){N.attr("data-notex",1)}),M=go.ensureUniformFontSize(r,hde(s,c,n.font));x.text(c.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(gb.font,M).call(mB.convertToTspans,r);var k=gb.bBox(x.node()),A,S,D,E=Math.min(c.BL[1],c.BR[1])+p,R=Math.max(c.TL[1],c.TR[1])+p;S=Math.max(c.TL[0],c.BL[0])+d,D=Math.min(c.TR[0],c.BR[0])+d,A=sde(S,D,E,R,k,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),A.fontSize=M.size,ude(s.type,A,n),i[h].transform=A,go.setTransormAndDisplay(x,A)})});var f=Ns.select(this).selectAll("g.titletext").data(s.title.text?[0]:[]);f.enter().append("g").classed("titletext",!0),f.exit().remove(),f.each(function(){var c=go.ensureSingle(Ns.select(this),"text","",function(p){p.attr("data-notex",1)}),h=s.title.text;s._meta&&(h=go.templateString(h,s._meta)),c.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(gb.font,s.title.font).call(mB.convertToTspans,r);var d=mde(o,n._size);c.attr("transform",pB(d.x,d.y)+lde(Math.min(1,d.scale))+pB(d.tx,d.ty))})})})};function xb(e,r){var t=r[0]-e[0],a=r[1]-e[1];return"l"+t+","+a}function gde(e,r){return[.5*(e[0]+r[0]),.5*(e[1]+r[1])]}function xde(e){if(!e.length)return;var r=e[0],t=r.trace,a=t.aspectratio,n=t.baseratio;n>.999&&(n=.999);var i=Math.pow(n,2),l=r.vTotal,o=l*i/(1-i),s=l,u=o/l;function f(){var I=Math.sqrt(u);return{x:I,y:-I}}function c(){var I=f();return[I.x,I.y]}var h,d=[];d.push(c());var p,y;for(p=e.length-1;p>-1;p--)if(y=e[p],!y.hidden){var m=y.v/s;u+=m,d.push(c())}var b=1/0,_=-1/0;for(p=0;p-1;p--)if(y=e[p],!y.hidden){E+=1;var R=d[E][0],N=d[E][1];y.TL=[-R,N],y.TR=[R,N],y.BL=S,y.BR=D,y.pxmid=gde(y.TR,y.BR),S=y.TL,D=y.TR}}});var wB=B((Ybe,_B)=>{"use strict";var bB=kr(),bde=Uu(),_de=Ei().resizeText;_B.exports=function(r){var t=r._fullLayout._funnelarealayer.selectAll(".trace");_de(r,t,"funnelarea"),t.each(function(a){var n=a[0],i=n.trace,l=bB.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){bB.select(this).call(bde,o,i,r)})})}});var MB=B((Gbe,TB)=>{"use strict";TB.exports={moduleType:"trace",name:"funnelarea",basePlotModule:iB(),categories:["pie-like","funnelarea","showLegend"],attributes:pb(),layoutAttributes:mb(),supplyDefaults:fB(),supplyLayoutDefaults:vB(),calc:yb().calc,crossTraceCalc:yb().crossTraceCalc,plot:xB(),style:wB(),styleOne:Uu(),meta:{}}});var kB=B((Ube,AB)=>{"use strict";AB.exports=MB()});var CB=B(Yf=>{"use strict";var qB=Pt();Yf.name="indicator";Yf.plot=function(e,r,t,a){qB.plotBasePlot(Yf.name,e,r,t,a)};Yf.clean=function(e,r,t,a){qB.cleanBasePlot(Yf.name,e,r,t,a)}});var _b=B((Wbe,RB)=>{"use strict";var xo=mt().extendFlat,LB=mt().extendDeep,wde=ui().overrideAll,DB=aa(),EB=zn(),Tde=fo().attributes,Lt=bn(),Mde=ot().templatedArray,cm=Ff(),SB=di().descriptionOnlyNumbers,bb=DB({editType:"plot",colorEditType:"plot"}),c0={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:EB.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},PB={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},Ade=Mde("step",LB({},c0,{range:PB}));RB.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:Tde({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:xo({},bb,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:SB("value")},font:xo({},bb,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:SB("value")},increasing:{symbol:{valType:"string",dflt:cm.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:cm.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:cm.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:cm.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:xo({},bb,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:LB({},c0,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:EB.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:wde({range:PB,visible:xo({},Lt.visible,{dflt:!0}),tickmode:Lt.minor.tickmode,nticks:Lt.nticks,tick0:Lt.tick0,dtick:Lt.dtick,tickvals:Lt.tickvals,ticktext:Lt.ticktext,ticks:xo({},Lt.ticks,{dflt:"outside"}),ticklen:Lt.ticklen,tickwidth:Lt.tickwidth,tickcolor:Lt.tickcolor,ticklabelstep:Lt.ticklabelstep,showticklabels:Lt.showticklabels,labelalias:Lt.labelalias,tickfont:DB({}),tickangle:Lt.tickangle,tickformat:Lt.tickformat,tickformatstops:Lt.tickformatstops,tickprefix:Lt.tickprefix,showtickprefix:Lt.showtickprefix,ticksuffix:Lt.ticksuffix,showticksuffix:Lt.showticksuffix,separatethousands:Lt.separatethousands,exponentformat:Lt.exponentformat,minexponent:Lt.minexponent,showexponent:Lt.showexponent,editType:"plot"},"plot"),steps:Ade,threshold:{line:{color:xo({},c0.line.color,{}),width:xo({},c0.line.width,{dflt:1}),editType:"plot"},thickness:xo({},c0.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var wb=B((Xbe,zB)=>{"use strict";zB.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var IB=B((Zbe,FB)=>{"use strict";var ji=Pe(),hm=_b(),kde=fo().defaults,NB=ot(),qde=On(),vm=wb(),Cde=Kh(),Sde=Qh(),Lde=ed(),Dde=rd();function Ede(e,r,t,a){function n(k,A){return ji.coerce(e,r,hm,k,A)}kde(r,a,n),n("mode"),r._hasNumber=r.mode.indexOf("number")!==-1,r._hasDelta=r.mode.indexOf("delta")!==-1,r._hasGauge=r.mode.indexOf("gauge")!==-1;var i=n("value");r._range=[0,typeof i=="number"?1.5*i:1];var l=new Array(2),o;if(r._hasNumber){n("number.valueformat");var s=ji.extendFlat({},a.font);s.size=void 0,ji.coerceFont(n,"number.font",s),r.number.font.size===void 0&&(r.number.font.size=vm.defaultNumberFontSize,l[0]=!0),n("number.prefix"),n("number.suffix"),o=r.number.font.size}var u;if(r._hasDelta){var f=ji.extendFlat({},a.font);f.size=void 0,ji.coerceFont(n,"delta.font",f),r.delta.font.size===void 0&&(r.delta.font.size=(r._hasNumber?.5:1)*(o||vm.defaultNumberFontSize),l[1]=!0),n("delta.reference",r.value),n("delta.relative"),n("delta.valueformat",r.delta.relative?"2%":""),n("delta.increasing.symbol"),n("delta.increasing.color"),n("delta.decreasing.symbol"),n("delta.decreasing.color"),n("delta.position"),n("delta.prefix"),n("delta.suffix"),u=r.delta.font.size}r._scaleNumbers=(!r._hasNumber||l[0])&&(!r._hasDelta||l[1])||!1;var c=ji.extendFlat({},a.font);c.size=.25*(o||u||vm.defaultNumberFontSize),ji.coerceFont(n,"title.font",c),n("title.text");var h,d,p,y;function m(k,A){return ji.coerce(h,d,hm.gauge,k,A)}function b(k,A){return ji.coerce(p,y,hm.gauge.axis,k,A)}if(r._hasGauge){h=e.gauge,h||(h={}),d=NB.newContainer(r,"gauge"),m("shape");var _=r._isBullet=r.gauge.shape==="bullet";_||n("title.align","center");var w=r._isAngular=r.gauge.shape==="angular";w||n("align","center"),m("bgcolor",a.paper_bgcolor),m("borderwidth"),m("bordercolor"),m("bar.color"),m("bar.line.color"),m("bar.line.width");var x=vm.valueThickness*(r.gauge.shape==="bullet"?.5:1);m("bar.thickness",x),qde(h,d,{name:"steps",handleItemDefaults:Pde}),m("threshold.value"),m("threshold.thickness"),m("threshold.line.width"),m("threshold.line.color"),p={},h&&(p=h.axis||{}),y=NB.newContainer(d,"axis"),b("visible"),r._range=b("range",r._range);var M={font:a.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};Cde(p,y,b,"linear"),Dde(p,y,b,"linear",M),Lde(p,y,b,"linear",M),Sde(p,y,b,M)}else n("title.align","center"),n("align","center"),r._isAngular=r._isBullet=!1;r._length=null}function Pde(e,r){function t(a,n){return ji.coerce(e,r,hm.gauge.steps,a,n)}t("color"),t("line.color"),t("line.width"),t("range"),t("thickness")}FB.exports={supplyDefaults:Ede}});var OB=B((Jbe,HB)=>{"use strict";function Rde(e,r){var t=[],a=r.value;typeof r._lastValue!="number"&&(r._lastValue=r.value);var n=r._lastValue,i=n;return r._hasDelta&&typeof r.delta.reference=="number"&&(i=r.delta.reference),t[0]={y:a,lastY:n,delta:a-i,relativeDelta:(a-i)/i},t}HB.exports={calc:Rde}});function kl(e,r,t){e.prototype=r.prototype=t,t.constructor=e}function bo(e,r){var t=Object.create(e.prototype);for(var a in r)t[a]=r[a];return t}var dm=nt(()=>{});function rl(){}function YB(){return this.rgb().formatHex()}function Yde(){return this.rgb().formatHex8()}function Gde(){return JB(this).formatHsl()}function GB(){return this.rgb().formatRgb()}function wo(e){var r,t;return e=(e+"").trim().toLowerCase(),(r=zde.exec(e))?(t=r[1].length,r=parseInt(r[1],16),t===6?UB(r):t===3?new fa(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):t===8?pm(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):t===4?pm(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=Nde.exec(e))?new fa(r[1],r[2],r[3],1):(r=Fde.exec(e))?new fa(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=Ide.exec(e))?pm(r[1],r[2],r[3],r[4]):(r=Hde.exec(e))?pm(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=Ode.exec(e))?XB(r[1],r[2]/100,r[3]/100,1):(r=Bde.exec(e))?XB(r[1],r[2]/100,r[3]/100,r[4]):BB.hasOwnProperty(e)?UB(BB[e]):e==="transparent"?new fa(NaN,NaN,NaN,0):null}function UB(e){return new fa(e>>16&255,e>>8&255,e&255,1)}function pm(e,r,t,a){return a<=0&&(e=r=t=NaN),new fa(e,r,t,a)}function h0(e){return e instanceof rl||(e=wo(e)),e?(e=e.rgb(),new fa(e.r,e.g,e.b,e.opacity)):new fa}function Uf(e,r,t,a){return arguments.length===1?h0(e):new fa(e,r,t,a==null?1:a)}function fa(e,r,t,a){this.r=+e,this.g=+r,this.b=+t,this.opacity=+a}function VB(){return`#${Fs(this.r)}${Fs(this.g)}${Fs(this.b)}`}function Ude(){return`#${Fs(this.r)}${Fs(this.g)}${Fs(this.b)}${Fs((isNaN(this.opacity)?1:this.opacity)*255)}`}function WB(){let e=ym(this.opacity);return`${e===1?"rgb(":"rgba("}${Is(this.r)}, ${Is(this.g)}, ${Is(this.b)}${e===1?")":`, ${e})`}`}function ym(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Is(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fs(e){return e=Is(e),(e<16?"0":"")+e.toString(16)}function XB(e,r,t,a){return a<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new Pi(e,r,t,a)}function JB(e){if(e instanceof Pi)return new Pi(e.h,e.s,e.l,e.opacity);if(e instanceof rl||(e=wo(e)),!e)return new Pi;if(e instanceof Pi)return e;e=e.rgb();var r=e.r/255,t=e.g/255,a=e.b/255,n=Math.min(r,t,a),i=Math.max(r,t,a),l=NaN,o=i-n,s=(i+n)/2;return o?(r===i?l=(t-a)/o+(t0&&s<1?0:l,new Pi(l,o,s,e.opacity)}function d0(e,r,t,a){return arguments.length===1?JB(e):new Pi(e,r,t,a==null?1:a)}function Pi(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}function ZB(e){return e=(e||0)%360,e<0?e+360:e}function mm(e){return Math.max(0,Math.min(1,e||0))}function Tb(e,r,t){return(e<60?r+(t-r)*e/60:e<180?t:e<240?r+(t-r)*(240-e)/60:r)*255}var _o,Hs,Gf,v0,el,zde,Nde,Fde,Ide,Hde,Ode,Bde,BB,gm=nt(()=>{dm();_o=.7,Hs=1/_o,Gf="\\s*([+-]?\\d+)\\s*",v0="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",el="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zde=/^#([0-9a-f]{3,8})$/,Nde=new RegExp(`^rgb\\(${Gf},${Gf},${Gf}\\)$`),Fde=new RegExp(`^rgb\\(${el},${el},${el}\\)$`),Ide=new RegExp(`^rgba\\(${Gf},${Gf},${Gf},${v0}\\)$`),Hde=new RegExp(`^rgba\\(${el},${el},${el},${v0}\\)$`),Ode=new RegExp(`^hsl\\(${v0},${el},${el}\\)$`),Bde=new RegExp(`^hsla\\(${v0},${el},${el},${v0}\\)$`),BB={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};kl(rl,wo,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:YB,formatHex:YB,formatHex8:Yde,formatHsl:Gde,formatRgb:GB,toString:GB});kl(fa,Uf,bo(rl,{brighter(e){return e=e==null?Hs:Math.pow(Hs,e),new fa(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?_o:Math.pow(_o,e),new fa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new fa(Is(this.r),Is(this.g),Is(this.b),ym(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:VB,formatHex:VB,formatHex8:Ude,formatRgb:WB,toString:WB}));kl(Pi,d0,bo(rl,{brighter(e){return e=e==null?Hs:Math.pow(Hs,e),new Pi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?_o:Math.pow(_o,e),new Pi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,a=t+(t<.5?t:1-t)*r,n=2*t-a;return new fa(Tb(e>=240?e-240:e+120,n,a),Tb(e,n,a),Tb(e<120?e+240:e-120,n,a),this.opacity)},clamp(){return new Pi(ZB(this.h),mm(this.s),mm(this.l),ym(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=ym(this.opacity);return`${e===1?"hsl(":"hsla("}${ZB(this.h)}, ${mm(this.s)*100}%, ${mm(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var xm,bm,Mb=nt(()=>{xm=Math.PI/180,bm=180/Math.PI});function rY(e){if(e instanceof tl)return new tl(e.l,e.a,e.b,e.opacity);if(e instanceof ql)return tY(e);e instanceof fa||(e=h0(e));var r=Cb(e.r),t=Cb(e.g),a=Cb(e.b),n=Ab((.2225045*r+.7168786*t+.0606169*a)/KB),i,l;return r===t&&t===a?i=l=n:(i=Ab((.4360747*r+.3850649*t+.1430804*a)/$B),l=Ab((.0139322*r+.0971045*t+.7141733*a)/QB)),new tl(116*n-16,500*(i-n),200*(n-l),e.opacity)}function Wf(e,r,t,a){return arguments.length===1?rY(e):new tl(e,r,t,a==null?1:a)}function tl(e,r,t,a){this.l=+e,this.a=+r,this.b=+t,this.opacity=+a}function Ab(e){return e>Vde?Math.pow(e,1/3):e/eY+jB}function kb(e){return e>Vf?e*e*e:eY*(e-jB)}function qb(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Cb(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Wde(e){if(e instanceof ql)return new ql(e.h,e.c,e.l,e.opacity);if(e instanceof tl||(e=rY(e)),e.a===0&&e.b===0)return new ql(NaN,0{dm();gm();Mb();_m=18,$B=.96422,KB=1,QB=.82521,jB=4/29,Vf=6/29,eY=3*Vf*Vf,Vde=Vf*Vf*Vf;kl(tl,Wf,bo(rl,{brighter(e){return new tl(this.l+_m*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new tl(this.l-_m*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,t=isNaN(this.b)?e:e-this.b/200;return r=$B*kb(r),e=KB*kb(e),t=QB*kb(t),new fa(qb(3.1338561*r-1.6168667*e-.4906146*t),qb(-.9787684*r+1.9161415*e+.033454*t),qb(.0719453*r-.2289914*e+1.4052427*t),this.opacity)}}));kl(ql,p0,bo(rl,{brighter(e){return new ql(this.h,this.c,this.l+_m*(e==null?1:e),this.opacity)},darker(e){return new ql(this.h,this.c,this.l-_m*(e==null?1:e),this.opacity)},rgb(){return tY(this).rgb()}}))});function Xde(e){if(e instanceof Os)return new Os(e.h,e.s,e.l,e.opacity);e instanceof fa||(e=h0(e));var r=e.r/255,t=e.g/255,a=e.b/255,n=(lY*a+nY*r-iY*t)/(lY+nY-iY),i=a-n,l=(m0*(t-n)-Lb*i)/wm,o=Math.sqrt(l*l+i*i)/(m0*n*(1-n)),s=o?Math.atan2(l,i)*bm-120:NaN;return new Os(s<0?s+360:s,o,n,e.opacity)}function Xf(e,r,t,a){return arguments.length===1?Xde(e):new Os(e,r,t,a==null?1:a)}function Os(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}var oY,Sb,Lb,wm,m0,nY,iY,lY,sY=nt(()=>{dm();gm();Mb();oY=-.14861,Sb=1.78277,Lb=-.29227,wm=-.90649,m0=1.97294,nY=m0*wm,iY=m0*Sb,lY=Sb*Lb-wm*oY;kl(Os,Xf,bo(rl,{brighter(e){return e=e==null?Hs:Math.pow(Hs,e),new Os(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?_o:Math.pow(_o,e),new Os(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*xm,r=+this.l,t=isNaN(this.s)?0:this.s*r*(1-r),a=Math.cos(e),n=Math.sin(e);return new fa(255*(r+t*(oY*a+Sb*n)),255*(r+t*(Lb*a+wm*n)),255*(r+t*(m0*a)),this.opacity)}}))});var Bs=nt(()=>{gm();aY();sY()});function Db(e,r,t,a,n){var i=e*e,l=i*e;return((1-3*e+3*i-l)*r+(4-6*i+3*l)*t+(1+3*e+3*i-3*l)*a+l*n)/6}function Tm(e){var r=e.length-1;return function(t){var a=t<=0?t=0:t>=1?(t=1,r-1):Math.floor(t*r),n=e[a],i=e[a+1],l=a>0?e[a-1]:2*n-i,o=a{});function Am(e){var r=e.length;return function(t){var a=Math.floor(((t%=1)<0?++t:t)*r),n=e[(a+r-1)%r],i=e[a%r],l=e[(a+1)%r],o=e[(a+2)%r];return Db((t-a/r)*r,n,i,l,o)}}var Eb=nt(()=>{Mm()});var Zf,Pb=nt(()=>{Zf=e=>()=>e});function uY(e,r){return function(t){return e+t*r}}function Zde(e,r,t){return e=Math.pow(e,t),r=Math.pow(r,t)-e,t=1/t,function(a){return Math.pow(e+a*r,t)}}function To(e,r){var t=r-e;return t?uY(e,t>180||t<-180?t-360*Math.round(t/360):t):Zf(isNaN(e)?r:e)}function fY(e){return(e=+e)==1?Ft:function(r,t){return t-r?Zde(r,t,e):Zf(isNaN(r)?t:r)}}function Ft(e,r){var t=r-e;return t?uY(e,t):Zf(isNaN(e)?r:e)}var Ys=nt(()=>{Pb()});function cY(e){return function(r){var t=r.length,a=new Array(t),n=new Array(t),i=new Array(t),l,o;for(l=0;l{Bs();Mm();Eb();Ys();y0=function e(r){var t=fY(r);function a(n,i){var l=t((n=Uf(n)).r,(i=Uf(i)).r),o=t(n.g,i.g),s=t(n.b,i.b),u=Ft(n.opacity,i.opacity);return function(f){return n.r=l(f),n.g=o(f),n.b=s(f),n.opacity=u(f),n+""}}return a.gamma=e,a}(1);vY=cY(Tm),hY=cY(Am)});function Jf(e,r){r||(r=[]);var t=e?Math.min(r.length,e.length):0,a=r.slice(),n;return function(i){for(n=0;n{});function dY(e,r){return(km(r)?Jf:zb)(e,r)}function zb(e,r){var t=r?r.length:0,a=e?Math.min(t,e.length):0,n=new Array(a),i=new Array(t),l;for(l=0;l{g0();qm()});function Cm(e,r){var t=new Date;return e=+e,r=+r,function(a){return t.setTime(e*(1-a)+r*a),t}}var Fb=nt(()=>{});function yn(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}var x0=nt(()=>{});function Sm(e,r){var t={},a={},n;(e===null||typeof e!="object")&&(e={}),(r===null||typeof r!="object")&&(r={});for(n in r)n in e?t[n]=Mo(e[n],r[n]):a[n]=r[n];return function(i){for(n in t)a[n]=t[n](i);return a}}var Ib=nt(()=>{g0()});function Jde(e){return function(){return e}}function $de(e){return function(r){return e(r)+""}}function Lm(e,r){var t=Ob.lastIndex=Hb.lastIndex=0,a,n,i,l=-1,o=[],s=[];for(e=e+"",r=r+"";(a=Ob.exec(e))&&(n=Hb.exec(r));)(i=n.index)>t&&(i=r.slice(t,i),o[l]?o[l]+=i:o[++l]=i),(a=a[0])===(n=n[0])?o[l]?o[l]+=n:o[++l]=n:(o[++l]=null,s.push({i:l,x:yn(a,n)})),t=Hb.lastIndex;return t{x0();Ob=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Hb=new RegExp(Ob.source,"g")});function Mo(e,r){var t=typeof r,a;return r==null||t==="boolean"?Zf(r):(t==="number"?yn:t==="string"?(a=wo(r))?(r=a,y0):Lm:r instanceof wo?y0:r instanceof Date?Cm:km(r)?Jf:Array.isArray(r)?zb:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Sm:yn)(e,r)}var g0=nt(()=>{Bs();Rb();Nb();Fb();x0();Ib();Bb();Pb();qm()});function pY(e){var r=e.length;return function(t){return e[Math.max(0,Math.min(r-1,Math.floor(t*r)))]}}var mY=nt(()=>{});function yY(e,r){var t=To(+e,+r);return function(a){var n=t(a);return n-360*Math.floor(n/360)}}var gY=nt(()=>{Ys()});function xY(e,r){return e=+e,r=+r,function(t){return Math.round(e*(1-t)+r*t)}}var bY=nt(()=>{});function Yb(e,r,t,a,n,i){var l,o,s;return(l=Math.sqrt(e*e+r*r))&&(e/=l,r/=l),(s=e*t+r*a)&&(t-=e*s,a-=r*s),(o=Math.sqrt(t*t+a*a))&&(t/=o,a/=o,s/=o),e*a{_Y=180/Math.PI,Dm={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function TY(e){let r=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return r.isIdentity?Dm:Yb(r.a,r.b,r.c,r.d,r.e,r.f)}function MY(e){return e==null?Dm:(Em||(Em=document.createElementNS("http://www.w3.org/2000/svg","g")),Em.setAttribute("transform",e),(e=Em.transform.baseVal.consolidate())?(e=e.matrix,Yb(e.a,e.b,e.c,e.d,e.e,e.f)):Dm)}var Em,AY=nt(()=>{wY()});function kY(e,r,t,a){function n(u){return u.length?u.pop()+" ":""}function i(u,f,c,h,d,p){if(u!==c||f!==h){var y=d.push("translate(",null,r,null,t);p.push({i:y-4,x:yn(u,c)},{i:y-2,x:yn(f,h)})}else(c||h)&&d.push("translate("+c+r+h+t)}function l(u,f,c,h){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),h.push({i:c.push(n(c)+"rotate(",null,a)-2,x:yn(u,f)})):f&&c.push(n(c)+"rotate("+f+a)}function o(u,f,c,h){u!==f?h.push({i:c.push(n(c)+"skewX(",null,a)-2,x:yn(u,f)}):f&&c.push(n(c)+"skewX("+f+a)}function s(u,f,c,h,d,p){if(u!==c||f!==h){var y=d.push(n(d)+"scale(",null,",",null,")");p.push({i:y-4,x:yn(u,c)},{i:y-2,x:yn(f,h)})}else(c!==1||h!==1)&&d.push(n(d)+"scale("+c+","+h+")")}return function(u,f){var c=[],h=[];return u=e(u),f=e(f),i(u.translateX,u.translateY,f.translateX,f.translateY,c,h),l(u.rotate,f.rotate,c,h),o(u.skewX,f.skewX,c,h),s(u.scaleX,u.scaleY,f.scaleX,f.scaleY,c,h),u=f=null,function(d){for(var p=-1,y=h.length,m;++p{x0();AY();qY=kY(TY,"px, ","px)","deg)"),CY=kY(MY,", ",")",")")});function LY(e){return((e=Math.exp(e))+1/e)/2}function Qde(e){return((e=Math.exp(e))-1/e)/2}function jde(e){return((e=Math.exp(2*e))-1)/(e+1)}var Kde,DY,EY=nt(()=>{Kde=1e-12;DY=function e(r,t,a){function n(i,l){var o=i[0],s=i[1],u=i[2],f=l[0],c=l[1],h=l[2],d=f-o,p=c-s,y=d*d+p*p,m,b;if(y{Bs();Ys();RY=PY(To),zY=PY(Ft)});function Gb(e,r){var t=Ft((e=Wf(e)).l,(r=Wf(r)).l),a=Ft(e.a,r.a),n=Ft(e.b,r.b),i=Ft(e.opacity,r.opacity);return function(l){return e.l=t(l),e.a=a(l),e.b=n(l),e.opacity=i(l),e+""}}var FY=nt(()=>{Bs();Ys()});function IY(e){return function(r,t){var a=e((r=p0(r)).h,(t=p0(t)).h),n=Ft(r.c,t.c),i=Ft(r.l,t.l),l=Ft(r.opacity,t.opacity);return function(o){return r.h=a(o),r.c=n(o),r.l=i(o),r.opacity=l(o),r+""}}}var HY,OY,BY=nt(()=>{Bs();Ys();HY=IY(To),OY=IY(Ft)});function YY(e){return function r(t){t=+t;function a(n,i){var l=e((n=Xf(n)).h,(i=Xf(i)).h),o=Ft(n.s,i.s),s=Ft(n.l,i.l),u=Ft(n.opacity,i.opacity);return function(f){return n.h=l(f),n.s=o(f),n.l=s(Math.pow(f,t)),n.opacity=u(f),n+""}}return a.gamma=r,a}(1)}var GY,UY,VY=nt(()=>{Bs();Ys();GY=YY(To),UY=YY(Ft)});function Ub(e,r){r===void 0&&(r=e,e=Mo);for(var t=0,a=r.length-1,n=r[0],i=new Array(a<0?0:a);t{g0()});function XY(e,r){for(var t=new Array(r),a=0;a{});var Vb={};$W(Vb,{interpolate:()=>Mo,interpolateArray:()=>dY,interpolateBasis:()=>Tm,interpolateBasisClosed:()=>Am,interpolateCubehelix:()=>GY,interpolateCubehelixLong:()=>UY,interpolateDate:()=>Cm,interpolateDiscrete:()=>pY,interpolateHcl:()=>HY,interpolateHclLong:()=>OY,interpolateHsl:()=>RY,interpolateHslLong:()=>zY,interpolateHue:()=>yY,interpolateLab:()=>Gb,interpolateNumber:()=>yn,interpolateNumberArray:()=>Jf,interpolateObject:()=>Sm,interpolateRgb:()=>y0,interpolateRgbBasis:()=>vY,interpolateRgbBasisClosed:()=>hY,interpolateRound:()=>xY,interpolateString:()=>Lm,interpolateTransformCss:()=>qY,interpolateTransformSvg:()=>CY,interpolateZoom:()=>DY,piecewise:()=>Ub,quantize:()=>XY});var Wb=nt(()=>{g0();Nb();Mm();Eb();Fb();mY();gY();x0();qm();Ib();bY();Bb();SY();EY();Rb();NY();FY();BY();VY();WY();ZY()});var eG=B((I4e,jY)=>{"use strict";var Xs=kr(),e1e=(Wb(),My(Vb)).interpolate,JY=(Wb(),My(Vb)).interpolateNumber,Ao=Pe(),r1e=Ao.strScale,_0=Ao.strTranslate,t1e=Ao.rad2deg,a1e=Pa().MID_SHIFT,Ws=Yr(),Gs=wb(),Rm=da(),Da=Jr(),n1e=sp(),i1e=fp(),l1e=bn(),$f=xr(),Xb={left:"start",center:"middle",right:"end"},Us={left:0,center:.5,right:1},$Y=/[yzafpnµmkMGTPEZY]/;function w0(e){return e&&e.duration>0}jY.exports=function(r,t,a,n){var i=r._fullLayout,l;w0(a)&&n&&(l=n()),Ao.makeTraceGroups(i._indicatorlayer,t,"trace").each(function(o){var s=o[0],u=s.trace,f=Xs.select(this),c=u._hasGauge,h=u._isAngular,d=u._isBullet,p=u.domain,y={w:i._size.w*(p.x[1]-p.x[0]),h:i._size.h*(p.y[1]-p.y[0]),l:i._size.l+i._size.w*p.x[0],r:i._size.r+i._size.w*(1-p.x[1]),t:i._size.t+i._size.h*(1-p.y[1]),b:i._size.b+i._size.h*p.y[0]},m=y.l+y.w/2,b=y.t+y.h/2,_=Math.min(y.w/2,y.h),w=Gs.innerRadius*_,x,M,k,A=u.align||"center";if(M=b,!c)x=y.l+Us[A]*y.w,k=function(Y){return KY(Y,y.w,y.h)};else if(h&&(x=m,M=b+_/2,k=function(Y){return c1e(Y,.9*w)}),d){var S=Gs.bulletPadding,D=1-Gs.bulletNumberDomainSize+S;x=y.l+(D+(1-D)*Us[A])*y.w,k=function(Y){return KY(Y,(Gs.bulletNumberDomainSize-S)*y.w,y.h)}}u1e(r,f,o,{numbersX:x,numbersY:M,numbersScaler:k,transitionOpts:a,onComplete:l});var E,R;c&&(E={range:u.gauge.axis.range,color:u.gauge.bgcolor,line:{color:u.gauge.bordercolor,width:0},thickness:1},R={range:u.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:u.gauge.bordercolor,width:u.gauge.borderwidth},thickness:1});var N=f.selectAll("g.angular").data(h?o:[]);N.exit().remove();var I=f.selectAll("g.angularaxis").data(h?o:[]);I.exit().remove(),h&&s1e(r,f,o,{radius:_,innerRadius:w,gauge:N,layer:I,size:y,gaugeBg:E,gaugeOutline:R,transitionOpts:a,onComplete:l});var H=f.selectAll("g.bullet").data(d?o:[]);H.exit().remove();var U=f.selectAll("g.bulletaxis").data(d?o:[]);U.exit().remove(),d&&o1e(r,f,o,{gauge:H,layer:U,size:y,gaugeBg:E,gaugeOutline:R,transitionOpts:a,onComplete:l});var X=f.selectAll("text.title").data(o);X.exit().remove(),X.enter().append("text").classed("title",!0),X.attr("text-anchor",function(){return d?Xb.right:Xb[u.title.align]}).text(u.title.text).call(Ws.font,u.title.font).call(Rm.convertToTspans,r),X.attr("transform",function(){var Y=y.l+y.w*Us[u.title.align],O,G=Gs.titlePadding,J=Ws.bBox(X.node());if(c){if(h)if(u.gauge.axis.visible){var $=Ws.bBox(I.node());O=$.top-G-J.bottom}else O=y.t+y.h/2-_/2-J.bottom-G;d&&(O=M-(J.top+J.bottom)/2,Y=y.l-Gs.bulletPadding*y.w)}else O=u._numbersTop-G-J.bottom;return _0(Y,O)})})};function o1e(e,r,t,a){var n=t[0].trace,i=a.gauge,l=a.layer,o=a.gaugeBg,s=a.gaugeOutline,u=a.size,f=n.domain,c=a.transitionOpts,h=a.onComplete,d,p,y,m,b;i.enter().append("g").classed("bullet",!0),i.attr("transform",_0(u.l,u.t)),l.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),l.selectAll("g.xbulletaxistick,path,text").remove();var _=u.h,w=n.gauge.bar.thickness*_,x=f.x[0],M=f.x[0]+(f.x[1]-f.x[0])*(n._hasNumber||n._hasDelta?1-Gs.bulletNumberDomainSize:1);d=b0(e,n.gauge.axis),d._id="xbulletaxis",d.domain=[x,M],d.setScale(),p=Da.calcTicks(d),y=Da.makeTransTickFn(d),m=Da.getTickSigns(d)[2],b=u.t+u.h,d.visible&&(Da.drawTicks(e,d,{vals:d.ticks==="inside"?Da.clipEnds(d,p):p,layer:l,path:Da.makeTickPath(d,b,m),transFn:y}),Da.drawLabels(e,d,{vals:p,layer:l,transFn:y,labelFns:Da.makeLabelFns(d,b)}));function k(I){I.attr("width",function(H){return Math.max(0,d.c2p(H.range[1])-d.c2p(H.range[0]))}).attr("x",function(H){return d.c2p(H.range[0])}).attr("y",function(H){return .5*(1-H.thickness)*_}).attr("height",function(H){return H.thickness*_})}var A=[o].concat(n.gauge.steps),S=i.selectAll("g.bg-bullet").data(A);S.enter().append("g").classed("bg-bullet",!0).append("rect"),S.select("rect").call(k).call(Vs),S.exit().remove();var D=i.selectAll("g.value-bullet").data([n.gauge.bar]);D.enter().append("g").classed("value-bullet",!0).append("rect"),D.select("rect").attr("height",w).attr("y",(_-w)/2).call(Vs),w0(c)?D.select("rect").transition().duration(c.duration).ease(c.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()}).attr("width",Math.max(0,d.c2p(Math.min(n.gauge.axis.range[1],t[0].y)))):D.select("rect").attr("width",typeof t[0].y=="number"?Math.max(0,d.c2p(Math.min(n.gauge.axis.range[1],t[0].y))):0),D.exit().remove();var E=t.filter(function(){return n.gauge.threshold.value||n.gauge.threshold.value===0}),R=i.selectAll("g.threshold-bullet").data(E);R.enter().append("g").classed("threshold-bullet",!0).append("line"),R.select("line").attr("x1",d.c2p(n.gauge.threshold.value)).attr("x2",d.c2p(n.gauge.threshold.value)).attr("y1",(1-n.gauge.threshold.thickness)/2*_).attr("y2",(1-(1-n.gauge.threshold.thickness)/2)*_).call($f.stroke,n.gauge.threshold.line.color).style("stroke-width",n.gauge.threshold.line.width),R.exit().remove();var N=i.selectAll("g.gauge-outline").data([s]);N.enter().append("g").classed("gauge-outline",!0).append("rect"),N.select("rect").call(k).call(Vs),N.exit().remove()}function s1e(e,r,t,a){var n=t[0].trace,i=a.size,l=a.radius,o=a.innerRadius,s=a.gaugeBg,u=a.gaugeOutline,f=[i.l+i.w/2,i.t+i.h/2+l/2],c=a.gauge,h=a.layer,d=a.transitionOpts,p=a.onComplete,y=Math.PI/2;function m(re){var le=n.gauge.axis.range[0],fe=n.gauge.axis.range[1],pe=(re-le)/(fe-le)*Math.PI-y;return pe<-y?-y:pe>y?y:pe}function b(re){return Xs.svg.arc().innerRadius((o+l)/2-re/2*(l-o)).outerRadius((o+l)/2+re/2*(l-o)).startAngle(-y)}function _(re){re.attr("d",function(le){return b(le.thickness).startAngle(m(le.range[0])).endAngle(m(le.range[1]))()})}var w,x,M,k;c.enter().append("g").classed("angular",!0),c.attr("transform",_0(f[0],f[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),w=b0(e,n.gauge.axis),w.type="linear",w.range=n.gauge.axis.range,w._id="xangularaxis",w.ticklabeloverflow="allow",w.setScale();var A=function(re){return(w.range[0]-re.x)/(w.range[1]-w.range[0])*Math.PI+Math.PI},S={},D=Da.makeLabelFns(w,0),E=D.labelStandoff;S.xFn=function(re){var le=A(re);return Math.cos(le)*E},S.yFn=function(re){var le=A(re),fe=Math.sin(le)>0?.2:1;return-Math.sin(le)*(E+re.fontSize*fe)+Math.abs(Math.cos(le))*(re.fontSize*a1e)},S.anchorFn=function(re){var le=A(re),fe=Math.cos(le);return Math.abs(fe)<.1?"middle":fe>0?"start":"end"},S.heightFn=function(re,le,fe){var pe=A(re);return-.5*(1+Math.sin(pe))*fe};var R=function(re){return _0(f[0]+l*Math.cos(re),f[1]-l*Math.sin(re))};M=function(re){return R(A(re))};var N=function(re){var le=A(re);return R(le)+"rotate("+-t1e(le)+")"};if(x=Da.calcTicks(w),k=Da.getTickSigns(w)[2],w.visible){k=w.ticks==="inside"?-1:1;var I=(w.linewidth||1)/2;Da.drawTicks(e,w,{vals:x,layer:h,path:"M"+k*I+",0h"+k*w.ticklen,transFn:N}),Da.drawLabels(e,w,{vals:x,layer:h,transFn:M,labelFns:S})}var H=[s].concat(n.gauge.steps),U=c.selectAll("g.bg-arc").data(H);U.enter().append("g").classed("bg-arc",!0).append("path"),U.select("path").call(_).call(Vs),U.exit().remove();var X=b(n.gauge.bar.thickness),Y=c.selectAll("g.value-arc").data([n.gauge.bar]);Y.enter().append("g").classed("value-arc",!0).append("path");var O=Y.select("path");w0(d)?(O.transition().duration(d.duration).ease(d.easing).each("end",function(){p&&p()}).each("interrupt",function(){p&&p()}).attrTween("d",f1e(X,m(t[0].lastY),m(t[0].y))),n._lastValue=t[0].y):O.attr("d",typeof t[0].y=="number"?X.endAngle(m(t[0].y)):"M0,0Z"),O.call(Vs),Y.exit().remove(),H=[];var G=n.gauge.threshold.value;(G||G===0)&&H.push({range:[G,G],color:n.gauge.threshold.color,line:{color:n.gauge.threshold.line.color,width:n.gauge.threshold.line.width},thickness:n.gauge.threshold.thickness});var J=c.selectAll("g.threshold-arc").data(H);J.enter().append("g").classed("threshold-arc",!0).append("path"),J.select("path").call(_).call(Vs),J.exit().remove();var $=c.selectAll("g.gauge-outline").data([u]);$.enter().append("g").classed("gauge-outline",!0).append("path"),$.select("path").call(_).call(Vs),$.exit().remove()}function u1e(e,r,t,a){var n=t[0].trace,i=a.numbersX,l=a.numbersY,o=n.align||"center",s=Xb[o],u=a.transitionOpts,f=a.onComplete,c=Ao.ensureSingle(r,"g","numbers"),h,d,p,y=[];n._hasNumber&&y.push("number"),n._hasDelta&&(y.push("delta"),n.delta.position==="left"&&y.reverse());var m=c.selectAll("text").data(y);m.enter().append("text"),m.attr("text-anchor",function(){return s}).attr("class",function(R){return R}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),m.exit().remove();function b(R,N,I,H){if(R.match("s")&&I>=0!=H>=0&&!N(I).slice(-1).match($Y)&&!N(H).slice(-1).match($Y)){var U=R.slice().replace("s","f").replace(/\d+/,function(Y){return parseInt(Y)-1}),X=b0(e,{tickformat:U});return function(Y){return Math.abs(Y)<1?Da.tickText(X,Y).text:N(Y)}}else return N}function _(){var R=b0(e,{tickformat:n.number.valueformat},n._range);R.setScale(),Da.prepTicks(R);var N=function(Y){return Da.tickText(R,Y).text},I=n.number.suffix,H=n.number.prefix,U=c.select("text.number");function X(){var Y=typeof t[0].y=="number"?H+N(t[0].y)+I:"-";U.text(Y).call(Ws.font,n.number.font).call(Rm.convertToTspans,e)}return w0(u)?U.transition().duration(u.duration).ease(u.easing).each("end",function(){X(),f&&f()}).each("interrupt",function(){X(),f&&f()}).attrTween("text",function(){var Y=Xs.select(this),O=JY(t[0].lastY,t[0].y);n._lastValue=t[0].y;var G=b(n.number.valueformat,N,t[0].lastY,t[0].y);return function(J){Y.text(H+G(O(J))+I)}}):X(),h=QY(H+N(t[0].y)+I,n.number.font,s,e),U}function w(){var R=b0(e,{tickformat:n.delta.valueformat},n._range);R.setScale(),Da.prepTicks(R);var N=function(J){return Da.tickText(R,J).text},I=n.delta.suffix,H=n.delta.prefix,U=function(J){var $=n.delta.relative?J.relativeDelta:J.delta;return $},X=function(J,$){return J===0||typeof J!="number"||isNaN(J)?"-":(J>0?n.delta.increasing.symbol:n.delta.decreasing.symbol)+H+$(J)+I},Y=function(J){return J.delta>=0?n.delta.increasing.color:n.delta.decreasing.color};n._deltaLastValue===void 0&&(n._deltaLastValue=U(t[0]));var O=c.select("text.delta");O.call(Ws.font,n.delta.font).call($f.fill,Y({delta:n._deltaLastValue}));function G(){O.text(X(U(t[0]),N)).call($f.fill,Y(t[0])).call(Rm.convertToTspans,e)}return w0(u)?O.transition().duration(u.duration).ease(u.easing).tween("text",function(){var J=Xs.select(this),$=U(t[0]),re=n._deltaLastValue,le=b(n.delta.valueformat,N,re,$),fe=JY(re,$);return n._deltaLastValue=$,function(pe){J.text(X(fe(pe),le)),J.call($f.fill,Y({delta:fe(pe)}))}}).each("end",function(){G(),f&&f()}).each("interrupt",function(){G(),f&&f()}):G(),d=QY(X(U(t[0]),N),n.delta.font,s,e),O}var x=n.mode+n.align,M;if(n._hasDelta&&(M=w(),x+=n.delta.position+n.delta.font.size+n.delta.font.family+n.delta.valueformat,x+=n.delta.increasing.symbol+n.delta.decreasing.symbol,p=d),n._hasNumber&&(_(),x+=n.number.font.size+n.number.font.family+n.number.valueformat+n.number.suffix+n.number.prefix,p=h),n._hasDelta&&n._hasNumber){var k=[(h.left+h.right)/2,(h.top+h.bottom)/2],A=[(d.left+d.right)/2,(d.top+d.bottom)/2],S,D,E=.75*n.delta.font.size;n.delta.position==="left"&&(S=Pm(n,"deltaPos",0,-1*(h.width*Us[n.align]+d.width*(1-Us[n.align])+E),x,Math.min),D=k[1]-A[1],p={width:h.width+d.width+E,height:Math.max(h.height,d.height),left:d.left+S,right:h.right,top:Math.min(h.top,d.top+D),bottom:Math.max(h.bottom,d.bottom+D)}),n.delta.position==="right"&&(S=Pm(n,"deltaPos",0,h.width*(1-Us[n.align])+d.width*Us[n.align]+E,x,Math.max),D=k[1]-A[1],p={width:h.width+d.width+E,height:Math.max(h.height,d.height),left:h.left,right:d.right+S,top:Math.min(h.top,d.top+D),bottom:Math.max(h.bottom,d.bottom+D)}),n.delta.position==="bottom"&&(S=null,D=d.height,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height,bottom:h.bottom+d.height}),n.delta.position==="top"&&(S=null,D=h.top,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height-d.height,bottom:h.bottom}),M.attr({dx:S,dy:D})}(n._hasNumber||n._hasDelta)&&c.attr("transform",function(){var R=a.numbersScaler(p);x+=R[2];var N=Pm(n,"numbersScale",1,R[0],x,Math.min),I;n._scaleNumbers||(N=1),n._isAngular?I=l-N*p.bottom:I=l-N*(p.top+p.bottom)/2,n._numbersTop=N*p.top+I;var H=p[o];o==="center"&&(H=(p.left+p.right)/2);var U=i-N*H;return U=Pm(n,"numbersTranslate",0,U,x,Math.max),_0(U,I)+r1e(N)})}function Vs(e){e.each(function(r){$f.stroke(Xs.select(this),r.line.color)}).each(function(r){$f.fill(Xs.select(this),r.color)}).style("stroke-width",function(r){return r.line.width})}function f1e(e,r,t){return function(){var a=e1e(r,t);return function(n){return e.endAngle(a(n))()}}}function b0(e,r,t){var a=e._fullLayout,n=Ao.extendFlat({type:"linear",ticks:"outside",range:t,showline:!0},r),i={type:"linear",_id:"x"+r._id},l={letter:"x",font:a.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function o(s,u){return Ao.coerce(n,i,l1e,s,u)}return n1e(n,i,o,l,a),i1e(n,i,o,l),i}function KY(e,r,t){var a=Math.min(r/e.width,t/e.height);return[a,e,r+"x"+t]}function c1e(e,r){var t=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),a=r/t;return[a,e,r]}function QY(e,r,t,a){var n=document.createElementNS("http://www.w3.org/2000/svg","text"),i=Xs.select(n);return i.text(e).attr("x",0).attr("y",0).attr("text-anchor",t).attr("data-unformatted",e).call(Rm.convertToTspans,a).call(Ws.font,r),Ws.bBox(i.node())}function Pm(e,r,t,a,n,i){var l="_cache"+r;e[l]&&e[l].key===n||(e[l]={key:n,value:t});var o=Ao.aggNums(i,null,[e[l].value,a],2);return e[l].value=o,o}});var tG=B((H4e,rG)=>{"use strict";rG.exports={moduleType:"trace",name:"indicator",basePlotModule:CB(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:_b(),supplyDefaults:IB().supplyDefaults,calc:OB().calc,plot:eG(),meta:{}}});var nG=B((O4e,aG)=>{"use strict";aG.exports=tG()});var Nm=B((B4e,uG)=>{"use strict";var zm=Pe().extendFlat,T0=bi(),iG=di().axisHoverFormat,oG=fi().dash,v1e=wc(),sG=Ff(),h1e=sG.INCREASING.COLOR,d1e=sG.DECREASING.COLOR,Zb=T0.line;function lG(e){return{line:{color:zm({},Zb.color,{dflt:e}),width:Zb.width,dash:oG,editType:"style"},editType:"style"}}uG.exports={xperiod:T0.xperiod,xperiod0:T0.xperiod0,xperiodalignment:T0.xperiodalignment,xhoverformat:iG("x"),yhoverformat:iG("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:zm({},Zb.width,{}),dash:zm({},oG,{}),editType:"style"},increasing:lG(h1e),decreasing:lG(d1e),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:zm({},v1e.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:T0.zorder}});var Jb=B((Y4e,fG)=>{"use strict";var p1e=yr(),m1e=Pe();fG.exports=function(r,t,a,n){var i=a("x"),l=a("open"),o=a("high"),s=a("low"),u=a("close");a("hoverlabel.split");var f=p1e.getComponentMethod("calendars","handleTraceDefaults");if(f(r,t,["x"],n),!!(l&&o&&s&&u)){var c=Math.min(l.length,o.length,s.length,u.length);return i&&(c=Math.min(c,m1e.minRowLength(i))),t._length=c,c}}});var hG=B((G4e,vG)=>{"use strict";var y1e=Pe(),g1e=Jb(),x1e=_s(),b1e=Nm();vG.exports=function(r,t,a,n){function i(o,s){return y1e.coerce(r,t,b1e,o,s)}var l=g1e(r,t,i,n);if(!l){t.visible=!1;return}x1e(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),i("line.dash"),cG(r,t,i,"increasing"),cG(r,t,i,"decreasing"),i("text"),i("hovertext"),i("tickwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function cG(e,r,t,a){t(a+".line.color"),t(a+".line.width",r.line.width),t(a+".line.dash",r.line.dash)}});var $b=B((U4e,pG)=>{"use strict";var Kf=Pe(),Fm=Kf._,Im=Jr(),_1e=ws(),M0=Mt().BADNUM;function w1e(e,r){var t=Im.getFromId(e,r.xaxis),a=Im.getFromId(e,r.yaxis),n=M1e(e,t,r),i=r._minDiff;r._minDiff=null;var l=r._origX;r._origX=null;var o=r._xcalc;r._xcalc=null;var s=dG(e,r,l,o,a,T1e);return r._extremes[t._id]=Im.findExtremes(t,o,{vpad:i/2}),s.length?(Kf.extendFlat(s[0].t,{wHover:i/2,tickLen:n}),s):[{t:{empty:!0}}]}function T1e(e,r,t,a){return{o:e,h:r,l:t,c:a}}function dG(e,r,t,a,n,i){for(var l=n.makeCalcdata(r,"open"),o=n.makeCalcdata(r,"high"),s=n.makeCalcdata(r,"low"),u=n.makeCalcdata(r,"close"),f=Kf.isArrayOrTypedArray(r.text),c=Kf.isArrayOrTypedArray(r.hovertext),h=!0,d=null,p=!!r.xperiodalignment,y=[],m=0;md):h=M>_,d=M;var k=i(_,w,x,M);k.pos=b,k.yc=(_+M)/2,k.i=m,k.dir=h?"increasing":"decreasing",k.x=k.pos,k.y=[x,w],p&&(k.orig_p=t[m]),f&&(k.tx=r.text[m]),c&&(k.htx=r.hovertext[m]),y.push(k)}else y.push({pos:b,empty:!0})}return r._extremes[n._id]=Im.findExtremes(n,Kf.concat(s,o),{padded:!0}),y.length&&(y[0].t={labels:{open:Fm(e,"open:")+" ",high:Fm(e,"high:")+" ",low:Fm(e,"low:")+" ",close:Fm(e,"close:")+" "}}),y}function M1e(e,r,t){var a=t._minDiff;if(!a){var n=e._fullData,i=[];a=1/0;var l;for(l=0;l{"use strict";var A1e=kr(),mG=Pe();yG.exports=function(r,t,a,n){var i=t.yaxis,l=t.xaxis,o=!!l.rangebreaks;mG.makeTraceGroups(n,a,"trace ohlc").each(function(s){var u=A1e.select(this),f=s[0],c=f.t,h=f.trace;if(h.visible!==!0||c.empty){u.remove();return}var d=c.tickLen,p=u.selectAll("path").data(mG.identity);p.enter().append("path"),p.exit().remove(),p.attr("d",function(y){if(y.empty)return"M0,0Z";var m=l.c2p(y.pos-d,!0),b=l.c2p(y.pos+d,!0),_=o?(m+b)/2:l.c2p(y.pos,!0),w=i.c2p(y.o,!0),x=i.c2p(y.h,!0),M=i.c2p(y.l,!0),k=i.c2p(y.c,!0);return"M"+m+","+w+"H"+_+"M"+_+","+x+"V"+M+"M"+b+","+k+"H"+_})})}});var bG=B((W4e,xG)=>{"use strict";var Kb=kr(),k1e=Yr(),q1e=xr();xG.exports=function(r,t,a){var n=a||Kb.select(r).selectAll("g.ohlclayer").selectAll("g.trace");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var l=i[0].trace;Kb.select(this).selectAll("path").each(function(o){if(!o.empty){var s=l[o.dir].line;Kb.select(this).style("fill","none").call(q1e.stroke,s.color).call(k1e.dashLine,s.dash,s.width).style("opacity",l.selectedpoints&&!o.selected?.3:1)}})})}});var jb=B((X4e,AG)=>{"use strict";var Qb=Jr(),C1e=Pe(),Hm=gi(),S1e=xr(),L1e=Pe().fillText,_G=Ff(),D1e={increasing:_G.INCREASING.SYMBOL,decreasing:_G.DECREASING.SYMBOL};function E1e(e,r,t,a){var n=e.cd,i=n[0].trace;return i.hoverlabel.split?TG(e,r,t,a):MG(e,r,t,a)}function wG(e,r,t,a){var n=e.cd,i=e.xa,l=n[0].trace,o=n[0].t,s=l.type,u=s==="ohlc"?"l":"min",f=s==="ohlc"?"h":"max",c,h,d=o.bPos||0,p=function(E){return E.pos+d-r},y=o.bdPos||o.tickLen,m=o.wHover,b=Math.min(1,y/Math.abs(i.r2c(i.range[1])-i.r2c(i.range[0])));c=e.maxHoverDistance-b,h=e.maxSpikeDistance-b;function _(E){var R=p(E);return Hm.inbox(R-m,R+m,c)}function w(E){var R=E[u],N=E[f];return R===N||Hm.inbox(R-t,N-t,c)}function x(E){return(_(E)+w(E))/2}var M=Hm.getDistanceFunction(a,_,w,x);if(Hm.getClosest(n,M,e),e.index===!1)return null;var k=n[e.index];if(k.empty)return null;var A=k.dir,S=l[A],D=S.line.color;return S1e.opacity(D)&&S.line.width?e.color=D:e.color=S.fillcolor,e.x0=i.c2p(k.pos+d-y,!0),e.x1=i.c2p(k.pos+d+y,!0),e.xLabelVal=k.orig_p!==void 0?k.orig_p:k.pos,e.spikeDistance=x(k)*h/c,e.xSpike=i.c2p(k.pos,!0),e}function TG(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=[],u=wG(e,r,t,a);if(!u)return[];var f=u.index,c=n[f],h=c.hi||l.hoverinfo,d=h.split("+"),p=h==="all",y=p||d.indexOf("y")!==-1;if(!y)return[];for(var m=["high","open","close","low"],b={},_=0;_"+o.labels[w]+Qb.hoverLabelText(i,x,l.yhoverformat)):(k=C1e.extendFlat({},u),k.y0=k.y1=M,k.yLabelVal=x,k.yLabel=o.labels[w]+Qb.hoverLabelText(i,x,l.yhoverformat),k.name="",s.push(k),b[x]=k)}return s}function MG(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=wG(e,r,t,a);if(!s)return[];var u=s.index,f=n[u],c=s.index=f.i,h=f.dir;function d(x){return o.labels[x]+Qb.hoverLabelText(i,l[x][c],l.yhoverformat)}var p=f.hi||l.hoverinfo,y=p.split("+"),m=p==="all",b=m||y.indexOf("y")!==-1,_=m||y.indexOf("text")!==-1,w=b?[d("open"),d("high"),d("low"),d("close")+" "+D1e[h]]:[];return _&&L1e(f,l,w),s.extraText=w.join("
"),s.y0=s.y1=i.c2p(f.yc,!0),[s]}AG.exports={hoverPoints:E1e,hoverSplit:TG,hoverOnPoints:MG}});var e_=B((Z4e,kG)=>{"use strict";kG.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o,s=a[0].t.bPos||0;if(t===!1)for(o=0;o{"use strict";qG.exports={moduleType:"trace",name:"ohlc",basePlotModule:gl(),categories:["cartesian","svg","showLegend"],meta:{},attributes:Nm(),supplyDefaults:hG(),calc:$b().calc,plot:gG(),style:bG(),hoverPoints:jb().hoverPoints,selectPoints:e_()}});var LG=B(($4e,SG)=>{"use strict";SG.exports=CG()});var zG=B((K4e,RG)=>{"use strict";var P1e=W3(),ri=bi(),DG=Tl(),R1e=zn(),EG=di().axisHoverFormat,z1e=ha().hovertemplateAttrs,Cl=mt().extendFlat,Qf=ri.marker,PG=Qf.line;RG.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:ri.xperiod,yperiod:ri.yperiod,xperiod0:ri.xperiod0,yperiod0:ri.yperiod0,xperiodalignment:ri.xperiodalignment,yperiodalignment:ri.yperiodalignment,xhoverformat:EG("x"),yhoverformat:EG("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:Cl({},Qf.symbol,{arrayOk:!1,editType:"plot"}),opacity:Cl({},Qf.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Cl({},Qf.angle,{arrayOk:!1,editType:"calc"}),size:Cl({},Qf.size,{arrayOk:!1,editType:"calc"}),color:Cl({},Qf.color,{arrayOk:!1,editType:"style"}),line:{color:Cl({},PG.color,{arrayOk:!1,dflt:R1e.defaultLine,editType:"style"}),width:Cl({},PG.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:P1e(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:DG.offsetgroup,alignmentgroup:DG.alignmentgroup,selected:{marker:ri.selected.marker,editType:"style"},unselected:{marker:ri.unselected.marker,editType:"style"},text:Cl({},ri.text,{}),hovertext:Cl({},ri.hovertext,{}),hovertemplate:z1e({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:ri.zorder}});var t_=B((Q4e,IG)=>{"use strict";var r_=Pe().extendFlat,NG=di().axisHoverFormat,Ln=Nm(),jf=zG();function FG(e){return{line:{color:r_({},jf.line.color,{dflt:e}),width:jf.line.width,editType:"style"},fillcolor:jf.fillcolor,editType:"style"}}IG.exports={xperiod:Ln.xperiod,xperiod0:Ln.xperiod0,xperiodalignment:Ln.xperiodalignment,xhoverformat:NG("x"),yhoverformat:NG("y"),x:Ln.x,open:Ln.open,high:Ln.high,low:Ln.low,close:Ln.close,line:{width:r_({},jf.line.width,{}),editType:"style"},increasing:FG(Ln.increasing.line.color.dflt),decreasing:FG(Ln.decreasing.line.color.dflt),text:Ln.text,hovertext:Ln.hovertext,whiskerwidth:r_({},jf.whiskerwidth,{dflt:0}),hoverlabel:Ln.hoverlabel,zorder:jf.zorder}});var a_=B((j4e,HG)=>{"use strict";HG.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var YG=B((e6e,BG)=>{"use strict";var N1e=yr(),F1e=Pe(),I1e=a_();function OG(e,r,t,a,n){for(var i=n+"Layout",l=!1,o=0;o{"use strict";var GG=Jr(),O1e=Pe(),B1e=ys().getAxisGroup,UG=["v","h"];function Y1e(e,r){for(var t=e.calcdata,a=r.xaxis,n=r.yaxis,i=0;i1,_=1-i[e+"gap"],w=1-i[e+"groupgap"];for(s=0;s0;if(A==="positive"?(O=S*(k?1:.5),$=J,G=$=E):A==="negative"?(O=$=E,G=S*(k?1:.5),re=J):(O=G=S,$=re=J),ve){var be=x.pointpos,se=x.jitter,_e=x.marker.size/2,V=0;be+se>=0&&(V=J*(be+se),V>O?(qe=!0,pe=_e,le=V):V>$&&(pe=_e,le=O)),V<=O&&(le=O);var te=0;be-se<=0&&(te=-J*(be-se),te>G?(qe=!0,Q=_e,fe=te):te>re&&(Q=_e,fe=G)),te<=G&&(fe=G)}else le=O,fe=G;var W=new Array(f.length);for(u=0;u{"use strict";var G1e=Pe(),U1e=xr(),V1e=Jb(),W1e=_s(),X1e=t_();JG.exports=function(r,t,a,n){function i(o,s){return G1e.coerce(r,t,X1e,o,s)}var l=V1e(r,t,i,n);if(!l){t.visible=!1;return}W1e(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),ZG(r,t,i,"increasing"),ZG(r,t,i,"decreasing"),i("text"),i("hovertext"),i("whiskerwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function ZG(e,r,t,a){var n=t(a+".line.color");t(a+".line.width",r.line.width),t(a+".fillcolor",U1e.addOpacity(n,.5))}});var eU=B((a6e,jG)=>{"use strict";var KG=Pe(),QG=Jr(),Z1e=ws(),J1e=$b().calcCommon;jG.exports=function(e,r){var t=e._fullLayout,a=QG.getFromId(e,r.xaxis),n=QG.getFromId(e,r.yaxis),i=a.makeCalcdata(r,"x"),l=Z1e(r,a,"x",i).vals,o=J1e(e,r,i,l,n,$1e);return o.length?(KG.extendFlat(o[0].t,{num:t._numBoxes,dPos:KG.distinctVals(l).minDiff/2,posLetter:"x",valLetter:"y"}),t._numBoxes++,o):[{t:{empty:!0}}]};function $1e(e,r,t,a){return{min:t,q1:Math.min(e,a),med:a,q3:Math.max(e,a),max:r}}});var lU=B((n6e,iU)=>{"use strict";var ec=kr(),Zs=Pe(),K1e=Yr(),rU=5,Q1e=.01;function j1e(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,l=r.yaxis;Zs.makeTraceGroups(a,t,"trace boxes").each(function(o){var s=ec.select(this),u=o[0],f=u.t,c=u.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){s.remove();return}var h,d;c.orientation==="h"?(h=l,d=i):(h=i,d=l),tU(s,{pos:h,val:d},c,f,n),aU(s,{x:i,y:l},c,f),nU(s,{pos:h,val:d},c,f)})}function tU(e,r,t,a,n){var i=t.orientation==="h",l=r.val,o=r.pos,s=!!o.rangebreaks,u=a.bPos,f=a.wdPos||0,c=a.bPosPxOffset||0,h=t.whiskerwidth||0,d=t.showwhiskers!==!1,p=t.notched||!1,y=p?1-2*t.notchwidth:1,m,b;Array.isArray(a.bdPos)?(m=a.bdPos[0],b=a.bdPos[1]):(m=a.bdPos,b=a.bdPos);var _=e.selectAll("path.box").data(t.type!=="violin"||t.box.visible?Zs.identity:[]);_.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),_.exit().remove(),_.each(function(w){if(w.empty)return ec.select(this).attr("d","M0,0Z");var x=o.c2l(w.pos+u,!0),M=o.l2p(x-m)+c,k=o.l2p(x+b)+c,A=s?(M+k)/2:o.l2p(x)+c,S=t.whiskerwidth,D=s?M*S+(1-S)*A:o.l2p(x-f)+c,E=s?k*S+(1-S)*A:o.l2p(x+f)+c,R=o.l2p(x-m*y)+c,N=o.l2p(x+b*y)+c,I=t.sizemode==="sd",H=l.c2p(I?w.mean-w.sd:w.q1,!0),U=I?l.c2p(w.mean+w.sd,!0):l.c2p(w.q3,!0),X=Zs.constrain(I?l.c2p(w.mean,!0):l.c2p(w.med,!0),Math.min(H,U)+1,Math.max(H,U)-1),Y=w.lf===void 0||t.boxpoints===!1||I,O=l.c2p(Y?w.min:w.lf,!0),G=l.c2p(Y?w.max:w.uf,!0),J=l.c2p(w.ln,!0),$=l.c2p(w.un,!0);i?ec.select(this).attr("d","M"+X+","+R+"V"+N+"M"+H+","+M+"V"+k+(p?"H"+J+"L"+X+","+N+"L"+$+","+k:"")+"H"+U+"V"+M+(p?"H"+$+"L"+X+","+R+"L"+J+","+M:"")+"Z"+(d?"M"+H+","+A+"H"+O+"M"+U+","+A+"H"+G+(h===0?"":"M"+O+","+D+"V"+E+"M"+G+","+D+"V"+E):"")):ec.select(this).attr("d","M"+R+","+X+"H"+N+"M"+M+","+H+"H"+k+(p?"V"+J+"L"+N+","+X+"L"+k+","+$:"")+"V"+U+"H"+M+(p?"V"+$+"L"+R+","+X+"L"+M+","+J:"")+"Z"+(d?"M"+A+","+H+"V"+O+"M"+A+","+U+"V"+G+(h===0?"":"M"+D+","+O+"H"+E+"M"+D+","+G+"H"+E):""))})}function aU(e,r,t,a){var n=r.x,i=r.y,l=a.bdPos,o=a.bPos,s=t.boxpoints||t.points;Zs.seedPseudoRandom();var u=function(h){return h.forEach(function(d){d.t=a,d.trace=t}),h},f=e.selectAll("g.points").data(s?u:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(h){var d,p=h.pts2,y=Math.max((h.max-h.min)/10,h.q3-h.q1),m=y*1e-9,b=y*Q1e,_=[],w=0,x;if(t.jitter){if(y===0)for(w=1,_=new Array(p.length),d=0;dh.lo&&(E.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(K1e.translatePoints,n,i)}function nU(e,r,t,a){var n=r.val,i=r.pos,l=!!i.rangebreaks,o=a.bPos,s=a.bPosPxOffset||0,u=t.boxmean||(t.meanline||{}).visible,f,c;Array.isArray(a.bdPos)?(f=a.bdPos[0],c=a.bdPos[1]):(f=a.bdPos,c=a.bdPos);var h=e.selectAll("path.mean").data(t.type==="box"&&t.boxmean||t.type==="violin"&&t.box.visible&&t.meanline.visible?Zs.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each(function(d){var p=i.c2l(d.pos+o,!0),y=i.l2p(p-f)+s,m=i.l2p(p+c)+s,b=l?(y+m)/2:i.l2p(p)+s,_=n.c2p(d.mean,!0),w=n.c2p(d.mean-d.sd,!0),x=n.c2p(d.mean+d.sd,!0);t.orientation==="h"?ec.select(this).attr("d","M"+_+","+y+"V"+m+(u==="sd"?"m0,0L"+w+","+b+"L"+_+","+y+"L"+x+","+b+"Z":"")):ec.select(this).attr("d","M"+y+","+_+"H"+m+(u==="sd"?"m0,0L"+b+","+w+"L"+y+","+_+"L"+b+","+x+"Z":""))})}iU.exports={plot:j1e,plotBoxAndWhiskers:tU,plotPoints:aU,plotBoxMean:nU}});var sU=B((i6e,oU)=>{"use strict";var n_=kr(),i_=xr(),l_=Yr();function epe(e,r,t){var a=t||n_.select(e).selectAll("g.trace.boxes");a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=n_.select(this),l=n[0].trace,o=l.line.width;function s(c,h,d,p){c.style("stroke-width",h+"px").call(i_.stroke,d).call(i_.fill,p)}var u=i.selectAll("path.box");if(l.type==="candlestick")u.each(function(c){if(!c.empty){var h=n_.select(this),d=l[c.dir];s(h,d.line.width,d.line.color,d.fillcolor),h.style("opacity",l.selectedpoints&&!c.selected?.3:1)}});else{s(u,o,l.line.color,l.fillcolor),i.selectAll("path.mean").style({"stroke-width":o,"stroke-dasharray":2*o+"px,"+o+"px"}).call(i_.stroke,l.line.color);var f=i.selectAll("path.point");l_.pointStyle(f,l,e)}})}function rpe(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?l_.selectedPointStyle(n,a):l_.pointStyle(n,a,e)}oU.exports={style:epe,styleOnSelect:rpe}});var fU=B((l6e,uU)=>{"use strict";uU.exports={moduleType:"trace",name:"candlestick",basePlotModule:gl(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:t_(),layoutAttributes:a_(),supplyLayoutDefaults:YG().supplyLayoutDefaults,crossTraceCalc:XG().crossTraceCalc,supplyDefaults:$G(),calc:eU(),plot:lU().plot,layerName:"boxlayer",style:sU().style,hoverPoints:jb().hoverPoints,selectPoints:e_()}});var vU=B((o6e,cU)=>{"use strict";cU.exports=fU()});var Fa=B((s6e,dU)=>{"use strict";var hU=Object.getOwnPropertySymbols,tpe=Object.prototype.hasOwnProperty,ape=Object.prototype.propertyIsEnumerable;function npe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function ipe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}dU.exports=ipe()?Object.assign:function(e,r){for(var t,a=npe(e),n,i=1;i{var Bm=Fa();function pU(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}Bm(pU.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function o_(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Om(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}Bm(o_.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Rr.local.differentCalendars||Rr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+Om(Math.abs(this.year()),4)+"-"+Om(this.month(),2)+"-"+Om(this.day(),2)}});function s_(){this.shortYearCutoff="+10"}Bm(s_.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new o_(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Rr.local.invalidYear||Rr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Rr.local.invalidYear||Rr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+Om(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Rr.local.invalidYear||Rr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Rr.local.invalidMonth||Rr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Rr.local.invalidMonth||Rr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Rr.local.invalidYear||Rr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),l=e.monthOfYear()+(t==="m"?r:0),n=e.day(),o=function(f){for(;lc-1+f.minMonth;)i++,l-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,l)&&(l=this.newDate(i,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l)))):t==="m"&&(o(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l))));var s=[i,this.fromMonthOfYear(i,l),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,o)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Rr.local.invalidDate||Rr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Rr=mU.exports=new pU;Rr.cdate=o_;Rr.baseCalendar=s_;Rr.calendars.gregorian=u_});var yU=B(()=>{var f_=Fa(),ya=Ia();f_(ya.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});ya.local=ya.regionalOptions[""];f_(ya.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});f_(ya.baseCalendar.prototype,{UNIX_EPOCH:ya.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:ya.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw ya.local.invalidFormat||ya.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,l=t.monthNamesShort||this.local.monthNamesShort,o=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(x,M){for(var k=1;w+k1},f=function(x,M,k,A){var S=""+M;if(u(x,A))for(;S.length1},_=function(N,I){var H=b(N,I),U=[2,3,H?4:2,H?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],X=new RegExp("^-?\\d{1,"+U+"}"),Y=r.substring(S).match(X);if(!Y)throw(ya.local.missingNumberAt||ya.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=Y[0].length,parseInt(Y[0],10)},w=this,x=function(){if(typeof o=="function"){b("m");var N=o.call(w,r.substring(S));return S+=N.length,N}return _("m")},M=function(N,I,H,U){for(var X=b(N,U)?H:I,Y=0;Y-1){h=1,d=p;for(var R=this.daysInMonth(c,h);d>R;R=this.daysInMonth(c,h))h++,d-=R}return f>-1?this.fromJD(f):this.newDate(c,h,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,l=function(o){try{return i.parseDate(a,o,n)}catch(c){}o=o.toLowerCase();for(var s=(o.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(o);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(o);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var gU=B(()=>{var ko=Ia(),lpe=Fa(),c_=ko.instance();function Ym(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ym.prototype=new ko.baseCalendar;lpe(Ym.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(spe);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(upe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(fpe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw ko.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw ko.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,ko.local.invalidyear),n=Co[a-Co[0]],i=n>>9&4095,l=n>>5&15,o=n&31,s;s=c_.newDate(i,l,o),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=qo[e-qo[0]],a=t>>13,n=a?12:11;if(r>n)throw ko.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,ko.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),l=vpe(e,i,t,n);return c_.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=c_.fromJD(e),t=cpe(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(ope),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),l=+r[4];return this.newDate(t,i,l)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),l=this.toChineseMonth(a,n),o=Object.getPrototypeOf(Ym.prototype).add.call(this,e,r,t);if(t==="y"){var s=o.year(),u=o.month(),f=this.isIntercalaryMonth(s,l),c=i&&f?this.toMonthIndex(s,l,!0):this.toMonthIndex(s,l,!1);c!==u&&o.month(c)}return o}});var ope=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,spe=/^\d?\d[iI]?/m,upe=/^闰?十?[一二三四五六七八九]?月/m,fpe=/^闰?十?[一二三四五六七八九]?/m;ko.calendars.chinese=Ym;var qo=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Co=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function cpe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var o=typeof r=="number"&&r>=1&&r<=12;if(!o)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=Co[n.year-Co[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Co[i.year-Co[0]];var c=u>>9&4095,h=u>>5&15,d=u&31,p,y=new Date(c,h-1,d),m=new Date(n.year,n.month-1,n.day);p=Math.round((m-y)/(24*3600*1e3));var b=qo[i.year-qo[0]],_;for(_=0;_<13;_++){var w=b&1<<12-_?30:29;if(p>13;return!x||_=1888&&e<=2111;if(!o)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),l={year:e,month:r,day:t,isIntercalary:f}}var c;c=l.day-1;var h=qo[l.year-qo[0]],d=h>>13,p;d&&(l.month>d||l.isIntercalary)?p=l.month:p=l.month-1;for(var y=0;y>9&4095,w=b>>5&15,x=b&31,M=new Date(_,w-1,x+c);return i.year=M.getFullYear(),i.month=1+M.getMonth(),i.day=M.getDate(),i}});var xU=B(()=>{var Js=Ia(),hpe=Fa();function v_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}v_.prototype=new Js.baseCalendar;hpe(v_.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Js.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Js.local.invalidYear||Js.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Js.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Js.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Js.calendars.coptic=v_});var bU=B(()=>{var Sl=Ia(),dpe=Fa();function h_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}h_.prototype=new Sl.baseCalendar;dpe(h_.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Sl.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Sl.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Sl.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Sl.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Sl.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Sl.local.invalidDate);return{century:ppe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Sl.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var ppe={20:"Fruitbat",21:"Anchovy"};Sl.calendars.discworld=h_});var _U=B(()=>{var $s=Ia(),mpe=Fa();function d_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}d_.prototype=new $s.baseCalendar;mpe(d_.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,$s.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,$s.local.invalidYear||$s.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,$s.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,$s.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});$s.calendars.ethiopian=d_});var wU=B(()=>{var So=Ia(),ype=Fa();function p_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}p_.prototype=new So.baseCalendar;ype(p_.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,So.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Gm(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,So.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,So.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,So.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Gm(this.daysInYear(e),10)===5?30:r===9&&Gm(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,So.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,So.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var l=7;l<=this.monthsInYear(e);l++)i+=this.daysInMonth(e,l);for(var l=1;l=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function Gm(e,r){return e-r*Math.floor(e/r)}So.calendars.hebrew=p_});var TU=B(()=>{var A0=Ia(),gpe=Fa();function m_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}m_.prototype=new A0.baseCalendar;gpe(m_.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,A0.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,A0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,A0.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});A0.calendars.islamic=m_});var MU=B(()=>{var k0=Ia(),xpe=Fa();function y_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}y_.prototype=new k0.baseCalendar;xpe(y_.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,k0.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,k0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,k0.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),l=i-Math.floor(i<14?1:13),o=a-Math.floor(l>2?4716:4715),s=t-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,l,s)}});k0.calendars.julian=y_});var kU=B(()=>{var ti=Ia(),bpe=Fa();function x_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}x_.prototype=new ti.baseCalendar;bpe(x_.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,ti.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ti.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ti.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,ti.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ti.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,ti.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,ti.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,ti.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,ti.local.invalidDate),n=a.toJD(),i=this._toHaab(n),l=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=g_(e+8+17*20,365);return[Math.floor(r/20)+1,g_(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[AU(e+20,20),AU(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,ti.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function g_(e,r){return e-r*Math.floor(e/r)}function AU(e,r){return g_(e-1,r)+1}ti.calendars.mayan=x_});var CU=B(()=>{var Ks=Ia(),_pe=Fa();function b_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}b_.prototype=new Ks.baseCalendar;var qU=Ks.instance("gregorian");_pe(b_.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ks.local.invalidYear||Ks.regionalOptions[""].invalidYear);return qU.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ks.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Ks.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),l=1;l=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});Ks.calendars.nanakshahi=b_});var SU=B(()=>{var Qs=Ia(),wpe=Fa();function __(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}__.prototype=new Qs.baseCalendar;wpe(__.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Qs.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Qs.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,Qs.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=Qs.instance(),i=0,l=r,o=e;this._createMissingCalendarData(e);var s=e-(l>9||l===9&&t>=this.NEPALI_CALENDAR_DATA[o][0]?56:57);for(r!==9&&(i=t,l--);l!==9;)l<=0&&(l=12,o--),i+=this.NEPALI_CALENDAR_DATA[o][l],l--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[o][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[o][9]-this.NEPALI_CALENDAR_DATA[o][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=Qs.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var l=9,o=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][l]-o+1;n>s;)l++,l>12&&(l=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][l];var u=this.NEPALI_CALENDAR_DATA[i][l]-(s-n);return this.newDate(i,l,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var rc=Ia(),Tpe=Fa();function Vm(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function Um(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),l=n-Math.floor(n);return i>l}Vm.prototype=new rc.baseCalendar;Tpe(Vm.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,rc.local.invalidYear);return Um(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,rc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,rc.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,Um(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});rc.calendars.persian=Vm;rc.calendars.jalali=Vm});var DU=B(()=>{var js=Ia(),Mpe=Fa(),Wm=js.instance();function w_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}w_.prototype=new js.baseCalendar;Mpe(w_.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,js.local.invalidYear),t=this._t2gYear(r.year());return Wm.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,js.local.invalidYear),n=this._t2gYear(a.year());return Wm.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,js.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,js.local.invalidDate),n=this._t2gYear(a.year());return Wm.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Wm.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});js.calendars.taiwan=w_});var EU=B(()=>{var eu=Ia(),Ape=Fa(),Xm=eu.instance();function T_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}T_.prototype=new eu.baseCalendar;Ape(T_.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,eu.local.invalidYear),t=this._t2gYear(r.year());return Xm.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,eu.local.invalidYear),n=this._t2gYear(a.year());return Xm.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,eu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,eu.local.invalidDate),n=this._t2gYear(a.year());return Xm.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Xm.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});eu.calendars.thai=T_});var PU=B(()=>{var ru=Ia(),kpe=Fa();function M_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}M_.prototype=new ru.baseCalendar;kpe(M_.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ru.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,ru.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Lo[n]-Lo[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,ru.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Lo[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),l=i+1,o=n-12*i,s=r-Lo[t-1]+1;return this.newDate(l,o,s)},isValid:function(e,r,t){var a=ru.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=ru.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});ru.calendars.ummalqura=M_;var Lo=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var zU=B((O6e,RU)=>{"use strict";RU.exports=Ia();yU();gU();xU();bU();_U();wU();TU();MU();kU();CU();SU();LU();DU();EU();PU()});var YU=B((B6e,BU)=>{"use strict";var FU=zU(),q0=Pe(),IU=Mt(),qpe=IU.EPOCHJD,Cpe=IU.ONEDAY,q_={valType:"enumerated",values:q0.sortObjectKeys(FU.calendars),editType:"calc",dflt:"gregorian"},HU=function(e,r,t,a){var n={};return n[t]=q_,q0.coerce(e,r,n,t,a)},Spe=function(e,r,t,a){for(var n=0;n{"use strict";GU.exports=YU()});var zpe=B((G6e,WU)=>{var VU=nF();VU.register([lI(),ZI(),SH(),pO(),aB(),kB(),nG(),LG(),vU(),UU()]);WU.exports=VU});return zpe();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-geo-assets.js b/dist/plotly-geo-assets.js index 5de7d1ba128..584bf065dbe 100644 --- a/dist/plotly-geo-assets.js +++ b/dist/plotly-geo-assets.js @@ -1,5 +1,5 @@ /** -* plotly.js v3.1.0-rc.0 +* plotly.js v3.1.0-rc.1 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -26,6 +26,13 @@ var Plotly = (() => { } }); + // dist/topojson/antarctica_110m.json + var require_antarctica_110m = __commonJS({ + "dist/topojson/antarctica_110m.json"(exports, module) { + module.exports = { type: "Topology", objects: { coastlines: { type: "GeometryCollection", geometries: [{ type: "MultiLineString", arcs: [[0, 1, 2], [3], [4], [5], [6], [7], [8], [9], [10], [11], [12], [13], [14], [15], [16], [17], [18], [19], [20], [21], [22], [23], [24], [25], [26], [27], [28], [29], [30]] }] }, countries: { type: "GeometryCollection", geometries: [{ type: "MultiPolygon", arcs: [[[1, 31, 32]], [[3]], [[4]], [[5]], [[6]], [[7]], [[8]], [[9]], [[10]], [[11]], [[12]], [[13]], [[14]], [[15]], [[16]], [[17]], [[18]], [[19]], [[20]], [[21]], [[22]], [[23]], [[24]], [[25]], [[26]], [[27]], [[28]], [[29]], [[30]]], id: "ATA", properties: { ct: [21.36, -80.47] } }] }, ocean: { type: "GeometryCollection", geometries: [{ type: "Polygon", arcs: [[-25], [-6], [-20], [-21], [-22], [-15], [-24], [-26], [-27], [-28], [-29], [-30], [-31], [-4], [-19], [-7], [-18], [-9], [-10], [-11], [-12], [-13], [-14], [-23], [-16], [-17], [-8], [-5], [-32, -2, -1, 33]] }] }, lakes: { type: "GeometryCollection", geometries: [] }, land: { type: "GeometryCollection", geometries: [{ type: "MultiPolygon", arcs: [[[1, 31, 32]], [[3]], [[4]], [[5]], [[6]], [[7]], [[8]], [[9]], [[10]], [[11]], [[12]], [[13]], [[14]], [[15]], [[16]], [[17]], [[18]], [[19]], [[20]], [[21]], [[22]], [[23]], [[24]], [[25]], [[26]], [[27]], [[28]], [[29]], [[30]]] }] }, rivers: { type: "GeometryCollection", geometries: [] }, subunits: { type: "GeometryCollection", geometries: [] } }, arcs: [[[0, 48754], [8114, 4403]], [[8114, 53157], [5472, -5925], [5827, -2183], [12573, -8325], [9772, -16765], [5629, -2358], [1420, -9516], [3898, -4362], [17423, -220], [9105, -3503], [3360, 3169], [5534, 14999], [15536, -2121], [5512, -3864], [6209, 1725], [999, 9780], [-7481, -1684], [-14666, 7508], [-10978, 12955], [-5823, 12861], [-3036, 17349], [1032, 6161], [-845, 21330], [-2815, 19301], [24, 22408], [-1941, 11931], [-246, 12741], [1138, 7792], [3161, 10382], [7370, 9074], [13353, 5741], [1554, 8830], [-6939, 15087], [-5128, 3144], [-3967, -1571], [-2479, 16764], [-3247, 4127], [-2134, 14941], [-3458, 6527], [-1825, 7214], [-4032, 10547], [-1119, 6851], [2029, 10337], [652, 11785], [-3070, 3573], [-875, 5723], [892, 11036], [-327, 21048], [1283, 984], [2295, -11343], [1173, 10612], [1163, 1986], [6973, -7857], [2566, -9200], [2524, 4471], [4335, -15736], [1610, -1381], [2612, 11632], [1665, 1891], [1028, 2617], [1965, 6496], [2575, -1694], [-1461, 12237], [2117, 2925], [167, 7744], [-3765, 11156], [-2903, 2049], [-1173, -3366], [-3197, 4007], [3399, 13912], [6864, -15770], [1042, 4901], [-2681, 12425], [1148, 6428], [4647, 3757], [866, 6795], [3943, 6939], [2977, -4683], [2515, 3260], [1299, 10462], [1661, 4661], [5976, 2195], [1731, 7814], [-872, 9933], [2252, 2357], [2050, 7496], [2630, -2873], [1515, -12516], [5057, 3869], [6914, -4415], [7991, 9545], [2117, -5376], [2852, 3626], [5137, 679], [12297, 6217], [2909, 10486], [1299, -8879], [2076, -2410], [5109, 3498], [-563, 15910], [1189, 7226], [1416, 2769], [2171, -13610], [-1215, -8889], [2194, -6440], [150, -11912], [3293, 878], [373, 3296], [-555, 19770], [3399, 58], [2229, -16922], [1895, -5484], [1777, 5837], [1719, 1696], [3043, -8308], [-767, -19526], [1715, -1411], [2338, 4178], [664, 17147], [566, 3985], [3579, -2359], [4425, -12436], [242, -7894], [2166, 593], [2232, 4193], [-595, 7131], [-2447, 13743], [-471, 7309], [1936, 7300], [939, 8001], [-945, 7962], [-2923, 1930], [-723, 11940], [2504, 1154], [2771, -2874], [1030, 4015], [71, 7560], [-2730, 9264], [-1285, -6564], [-3406, -4895], [-1538, 8932], [-809, 9214], [1014, 6663], [2561, -1396], [1251, -10524], [2937, 3791], [2048, -8041], [3171, 8312], [2397, 3010], [1497, -9898], [3745, -7756], [1778, 5501], [1733, -1401], [2293, 8664], [1034, -6830], [3324, 1254], [4282, -5673], [3030, 5299], [1070, 5137], [65, 15335], [669, 3563], [2039, -2674], [806, -4676], [-1380, -10563], [3054, -4603], [2089, -8322], [2836, 10768], [982, -14711], [1945, -4474], [3069, 85], [4088, -16078], [3371, 5613], [-542, 11786], [187, 9013], [2636, -1533], [-456, 13156], [2408, -4708], [2989, -21111], [2464, 3931], [2281, -2864], [-1082, -8433], [1771, -1945], [3138, 7731], [2952, -1254], [1932, 5782], [6543, 11152], [1663, -328], [3391, 5235], [4354, 12581], [2240, 23553], [-129, 18764], [-1281, 10879], [-626, 10095], [447, 18508], [-1269, 24862], [-1374, 9177], [12, 20040], [-736, 6139], [317, 5615], [1314, 2464], [2137, -1133], [1475, 12119], [-934, 4875], [-74, 19258], [457, 12493], [-801, 8993], [1149, 2890], [-796, 17786], [-1232, -2809], [320, 19920], [1103, 6769], [887, -11717], [832, -2468], [-350, 24758], [1066, 3430], [1216, -4010], [67, 15327], [457, 9682], [937, 837], [3614, 21495], [-377, 6859], [149, 11555], [574, 4446], [1562, -4912], [2310, 23077], [596, -7160], [1458, 7398], [3079, 24998], [3295, 8283], [1135, 5541], [454, 6113], [4191, 12815], [740, -1797], [766, -11889], [-1708, 3063], [-750, -6852], [-1684, -4265], [-1093, -12124], [-603, -13885], [133, -7391], [-2403, 7398], [-1986, -10039], [-2024, -16757], [-2626, -11893], [-122, -5263], [813, -6629], [-1461, -9579], [-96, -6616], [1387, -10173], [1453, 8609], [2119, 1157], [-1026, -13904], [-1240, 6905], [-778, -7221], [-1959, 4093], [-1184, -1754], [1062, -17795], [-811, 77], [-1211, 13420], [-1671, 1988], [-562, -12173], [270, -15406], [-1418, 1510], [-1992, -18898], [-633, -1117], [-810, -17029], [-231, -15423], [1852, -3688], [-938, -6835], [1328, -11860], [1981, -5119], [58, 7854], [2655, -9696], [-1196, -5122], [907, -10830], [2487, -13321], [-359, -14188], [1509, -8050], [364, -6583], [-1629, -7274], [746, -6814], [1958, -2910], [-1712, -12465], [2258, -467], [731, -13490], [-1155, -9184], [1788, -9269], [-57, -4913], [-2905, -4629], [1007, -8391], [1959, 3371], [-337, -19771], [-1402, 2793], [177, -11475], [2282, 774], [176, -7513], [1976, -4357], [-247, -12168], [-2384, -10289], [-474, -26063], [-2183, -8796], [2599, -2908], [-926, -6341], [-1687, -41], [-1157, -5744], [511, -5825], [-2351, -13374], [-3787, -4290], [2411, -8291], [-2180, -8806], [-10936, -25478], [-4369, -5788], [-707, -5431], [6032, -16572], [-11, -31345], [-2300, -14697], [-3189, -5799], [-5837, 2713], [-6640, 11723], [-4640, 29070], [66, 18509], [-14352, -13628], [189, -8550], [-1798, -11482], [-1359, 13636], [-1946, -7335], [1980, -31990], [-242, -12292], [2789, -15241], [-851, -22551], [2506, -21105], [1313, 6916], [-984, 9722], [903, 3947], [3696, -8715], [-855, -3751], [4640, -18650], [-2067, -7592], [3260, -5793], [3946, -12623], [2721, -4069], [6040, -3344], [15107, 7045], [11684, 11585], [5094, 3446], [3215, 6360], [1808, 19557], [8323, 8036], [5111, 9241], [2931, 23914], [7724, 23142], [2747, 13487], [2861, 3132], [5402, -9735], [1449, -5356], [2759, -18524], [-1324, -4370], [-7760, -6598], [856, -6514], [6863, 6904], [3200, -3240], [-224, -12396], [-5663, -4340], [972, -10194], [5773, 6050], [2747, -1189], [-113, -22736], [-1609, -2966], [-2898, 4833], [-933, -5485], [1858, -6984], [-2041, -10693], [-2451, -4769], [-8319, -8520], [-7166, 812], [-3649, 10377], [-4576, 19803], [-4508, -4475], [-6663, -15077], [-5510, -21908], [-2651, -4625], [-5033, -3088], [-14143, -3091], [-6424, -2872], [-3158, -6061], [-813, -11963], [1356, -8543], [4857, -12032], [5413, -8461], [5661, -4002], [7809, 230], [7777, 3271], [3277, -9455], [-944, -11958], [3642, -1326], [5260, 22216], [5521, 11942], [6965, 13207], [3191, 3119], [9682, 2224], [4254, -119], [7057, 7686], [13919, 29350], [5722, 20600], [3571, 6080], [7595, 2881], [-584, -10931], [3864, -1165], [1630, 16242], [-1914, 21275], [2444, 7385], [-2670, 7002], [-8347, 1294], [-1525, 4276], [-4287, 5529], [-1635, 9828], [277, 13124], [2207, 17019], [7474, 25484], [3413, 6151], [1019, 4767], [7398, 25756], [198, 9255], [5862, 9798], [4843, 13024], [3652, 22514], [1420, 20939], [1257, 6873], [2590, 5549], [8191, 35762], [9718, 28938], [3776, 143], [4627, 13575], [1845, 11597], [884, 12749], [-251, 7995], [-1276, 1289], [-1480, 9171], [-385, 8761], [1969, 2989], [231, -8040], [1842, -7052], [562, 10781], [1574, 11367], [-324, 8376], [1562, 795], [2169, -16695], [400, -18195], [769, -3954], [2057, 4838], [693, 18931], [-615, 16808], [2001, 7174], [2437, 1286], [739, -2105], [5, -17392], [-1092, -9046], [1254, -3824], [3353, 5336], [2674, -1675], [180, 33367], [725, 9497], [1588, -4159], [-1318, -7350], [977, -6062], [2262, -3557], [-1559, -6600], [852, -18839], [1470, -314], [1190, 5678], [1281, -4076], [-369, -8126], [1654, -3282], [2508, 17338], [3232, 8672], [1703, 6549], [1969, 16908], [2481, 8017], [2503, 1881], [1254, -7004], [3143, 939], [1742, 6094], [2261, 3502], [4614, -688], [1792, -4467], [2517, -10921], [1920, -2513], [1981, 13203], [4645, -660], [4806, 4488], [6823, -757], [4735, -7205], [3398, 1751], [5351, -6500], [3148, 1701], [3761, 8333], [3111, 2830], [6445, 13400], [5335, 5245], [1997, 6080], [3437, -2894], [1544, 5854], [-290, 17697], [-641, 5455], [207, 10720], [1281, 6347], [1961, -2746], [566, -9673], [1323, -4521], [2020, -15344], [2378, -7050], [1393, -10412], [1491, 4910], [2308, -13146], [1154, 2058], [1326, 10878], [895, 1238], [-35, 26893], [632, 5578], [2463, 7747], [459, 5086], [2858, 8601], [2436, 12283], [2518, 1160], [2057, 4877], [1405, 7921], [3183, 3772], [104, 12469], [1619, 2733], [1495, -3728], [-430, -10706], [1544, -2599], [3833, 13179], [-2344, 12441], [465, 5725], [1483, 2313], [2129, -5826], [191, -6108], [2203, -1062], [-1011, 20002], [-48, 8226], [1074, 10133], [1801, 3881], [2223, 10484], [4598, 4515], [4033, -1819], [1272, -4304], [2345, -16323], [989, -914], [1215, -6301], [147, -5680], [-2136, -4337], [120, -7230], [987, -4457], [1157, 1411], [4108, -6074], [293, -9231], [4387, 729], [3014, -6899], [1517, -540], [1510, -4166], [2482, 6443], [6770, -9821], [7926, -7669], [1630, 6584], [887, -389], [824, -36118], [-1176, -8271], [397, -7195], [-401, -13549], [-2240, 2443], [-698, -2778], [488, -14995], [1077, -7064], [-2002, -1091], [-908, -4964], [-257, -11928], [772, -5902], [2182, 3270], [349, -19391], [4613, -22165], [1429, -5320], [1319, 14556], [2746, 22805], [999, 4896], [-1205, 14452], [2682, 12171], [1248, 3461], [3113, -1811], [1845, 5421], [991, 10260], [5083, 17466], [-113, 15740], [1003, 7105], [2592, 13851], [2588, 7436], [3162, 5115], [4086, 9641], [2633, 10029], [1731, 12200], [1803, -478], [1574, -3790], [4487, 12865], [1872, 7263], [1700, 91], [3269, -5157], [5503, 14411], [2822, -6088], [2349, 505], [5238, 4985], [1015, -4831], [1489, -778], [1012, 3149], [1707, -1645], [4132, 6895], [-127, 14309], [-580, 14088], [2420, -2773], [549, 5319], [2192, 11776], [1270, -306], [439, -4770], [-1643, -6699], [-979, 880], [-398, -6579], [77, -10898], [2397, -7038], [1611, 10857], [2910, 5515], [3051, -5557], [3474, -2961], [2554, -6423], [2328, -7778], [3527, -7844], [2285, -14310], [1050, 1533], [717, 12026], [2292, -806], [997, 10113], [-384, 5860], [1137, 8576], [1721, 5228], [2581, 1865], [2007, 7182], [605, -1398], [1415, -12951], [781, -1477], [917, -12299], [962, -4258], [2163, 4746], [1545, -1695], [2132, -17804], [1907, -6897], [1599, -1828], [1848, 4033], [1851, 372], [3943, 5217], [368, -9896], [774, -585], [8052, 15888], [5101, 16779], [3593, -14307], [1325, -17405], [3849, -148], [1198, 11118], [-186, 9832], [939, 12322], [-1338, 8700], [609, 4423], [5333, -12056], [2593, 1106], [2245, 3725], [2034, -4883], [1654, 14708], [-736, 13188], [216, 9541], [838, 2079], [1659, -12507], [-577, -17030], [3078, -15331], [1575, 756], [2169, -2653], [1291, -5329], [3020, -1862], [2352, -7662], [4994, -2461], [1760, -10146], [2395, 7195], [1097, -3302], [589, -6355], [2250, 43], [2072, 11352], [2529, -1157], [1033, -7276], [-597, -9237], [-3017, -7659], [-796, -7769], [2171, 49], [2867, -13610], [2098, 5158], [1756, -462], [471, -17479], [-1542, -2125], [944, -6934], [1989, 4586], [1909, -5594], [3336, 6653], [139, -14094], [895, -4053], [1388, 354], [1470, 10435], [3937, 6115], [2422, -10380], [-674, -9537], [1154, -9461], [1584, 4922], [3780, -12588], [1304, 3623], [2741, -7723], [2150, -3354], [1817, -14035], [2240, -8001], [302, -8478], [1221, -7850], [1798, -3729], [2516, 3021], [1382, -14260], [1598, 5251], [4904, -5413], [3405, 188], [513, -3380], [2387, -3861], [1521, -17286], [1771, -4258], [3485, -15707], [809, 8749], [1377, -15777], [-2196, -7287], [-673, -8616], [760, -16714], [-1556, -15121], [-1577, -7866], [29, -8232], [-1621, -9307], [-1412, 4285], [-2093, -2350], [-1513, -7773], [-5278, -17328], [1436, -15598], [-4566, -2617], [-804, 2094], [-1840, -13925], [-331, -16604], [3715, -1465], [2143, -5904], [-228, -6279], [-5004, 4150], [-797, -9942], [1035, -2111], [-695, -13437], [-1077, -3146], [1503, -13524], [-177, -17251], [2381, -22837], [-581, -11978], [2960, -3363], [-427, -14649], [-2696, -7966], [1193, -3780], [4334, 6121], [2278, -13163], [-5527, -2535], [-3816, -9784], [-698, -10066], [-4464, 222], [-1184, -4683], [-1072, -20416], [643, -12033], [-628, -5624], [2294, -26517], [-1224, -8825], [-66, -18855], [4277, -13488], [4922, -22028], [-7047, -6609], [1284, -4940], [8391, 4126], [2591, -11418], [3145, -6473], [-589, -4895], [4951, -5429], [-1610, -9849], [6455, -8519], [4280, -1840], [9808, -18116], [3961, -1742], [7530, -9781]], [[998019, 55542], [1980, -6844]], [[54653, 240168], [-1618, -250], [-6675, 12546], [-2282, 9753], [-644, 8994], [1846, 6915], [896, 9526], [1990, 1208], [3787, -5690], [899, -8227], [3388, -13886], [1683, -12879], [-3270, -8010]], [[307504, 269709], [-3207, 1467], [3387, 19376], [3246, 8869], [2795, 4468], [3322, -3934], [-3445, -8746], [-6098, -21500]], [[963883, 346190], [3626, -860], [2466, -3619], [-2081, -10244], [-2106, 2998], [-1632, -4044], [-2088, 3317], [-312, 15630], [2127, -3178]], [[89902, 343319], [-1081, -87], [-2068, 4737], [431, 9612], [2380, -4484], [635, -7729], [-297, -2049]], [[288509, 328787], [1192, -10930], [-2535, -4797], [-3987, -218], [-2855, 5693], [-1320, -2202], [-3176, 12018], [2315, 12338], [550, 10400], [3732, 8426], [2210, 1206], [2022, -7310], [800, -20961], [1052, -3663]], [[85773, 355577], [-3106, 2104], [-792, 6211], [2293, 2612], [1605, -10927]], [[134179, 478703], [1527, -3906], [326, -8792], [-2430, 3763], [577, 8935]], [[147071, 464449], [-2259, 7738], [100, 7346], [2629, -6590], [-470, -8494]], [[176328, 483105], [-2647, 4410], [3569, 9004], [-922, -13414]], [[166264, 502017], [3457, -957], [195, -8729], [-3007, -12440], [-1903, -4372], [-4915, 1795], [-789, 6310], [1012, 11127], [-1630, 5705], [949, 6726], [6631, -5165]], [[152527, 520088], [1229, -10944], [-894, -8839], [2859, 3702], [1511, -10678], [-420, -9351], [-2316, 1453], [-1259, 6118], [-2448, 5722], [-1492, 14073], [-1849, 4585], [810, 10780], [2372, 1329], [1897, -7950]], [[250839, 528544], [-1640, -920], [-188, 7816], [2237, 1839], [-409, -8735]], [[292948, 504296], [-3323, 8928], [-1282, 11543], [1428, 6010], [275, 7868], [1711, 141], [1871, -6918], [-381, -8971], [143, -14396], [-442, -4205]], [[285014, 533980], [-2771, -9365], [-1225, 353], [-150, 9505], [1565, 1013], [469, 7172], [2543, 1180], [-431, -9858]], [[247384, 532063], [-2041, 16052], [1836, 3240], [550, -6479], [-345, -12813]], [[226905, 572943], [933, 9989], [1451, -6769], [1699, 8553], [1637, -1152], [399, -6277], [1705, -8176], [223, -7911], [-1750, -9866], [-3629, 1768], [-3250, -1257], [-749, 5466], [-2999, 224], [-5881, 6621], [-1176, 4969], [671, 5203], [4363, 8028], [862, -7859], [2945, 8655], [1227, 6218], [1348, -4381], [-29, -12046]], [[292874, 623451], [-2200, -1436], [-354, 7154], [4242, 6627], [191, -7245], [-1879, -5100]], [[292529, 676342], [574, -10180], [-470, -5907], [-3403, 949], [-598, 11142], [3897, 3996]], [[327681, 670076], [-552, 2366], [-1038, 19596], [1049, 1717], [793, -9636], [-252, -14043]], [[307221, 675720], [841, -23694], [1115, -8636], [688, -10886], [708, -38819], [-509, -24914], [-1970, -9722], [-89, -7414], [-1061, -4623], [-2090, -2471], [-4966, 293], [-1788, 9742], [1355, 8850], [3758, -1967], [491, 3965], [-586, 9556], [-2511, 14051], [-1753, 3030], [-230, -6885], [-1870, -187], [317, -9051], [-1515, -9057], [-1858, 4444], [-3422, 15927], [-591, 9770], [2456, -2627], [-735, 8807], [4246, 6875], [1814, 7320], [2926, 529], [2319, 10431], [-1485, 7022], [580, 11647], [1008, 7043], [-2641, 14410], [-13, 11066], [569, 10543], [-1152, 7650], [1759, 7190], [2522, 5725], [1258, -4167], [262, -9790], [1843, -20976]], [[311030, 768656], [-1635, -15460], [-960, 703], [-547, 12046], [1055, 7822], [843, 18160], [1642, 1203], [363, -16342], [-761, -8132]], [[840327, 801148], [-2013, 179], [-1545, 27295], [-133, 9995], [698, 2202], [972, -16159], [2035, -15762], [-14, -7750]], [[317028, 834724], [-932, 2463], [692, 9782], [799, -1367], [-559, -10878]], [[324241, 894395], [578, -5231], [-1738, -12049], [-1624, 5016], [123, 5038], [1738, 12600], [923, -5374]], [[339425, 915651], [1828, -7411], [-560, -10658], [-2361, -2579], [-536, 16797], [810, 5687], [819, -1836]], [[347028, 944705], [-728, -6326], [-1196, 3110], [-1814, -5991], [-25, 8374], [2180, 5460], [1583, -4627]], [[332504, 973716], [-119, -8970], [-2504, 6568], [2623, 2402]], [[338749, 999999], [1046, -4712], [-2763, -9845], [-159, 9404], [1876, 5153]], [[998019, 55542], [-998019, -6846]], [[0, 48696], [0, 55], [8114, 4406]], [[0, 48754], [0, -58]]], bbox: [-180, -85.58276367299999, 180, -61.91226959299996], transform: { scale: [36000036000036e-17, 23670517750517778e-21], translate: [-180, -85.58276367299999] } }; + } + }); + // dist/topojson/asia_110m.json var require_asia_110m = __commonJS({ "dist/topojson/asia_110m.json"(exports, module) { @@ -47,6 +54,13 @@ var Plotly = (() => { } }); + // dist/topojson/oceania_110m.json + var require_oceania_110m = __commonJS({ + "dist/topojson/oceania_110m.json"(exports, module) { + module.exports = { type: "Topology", arcs: [[[38952, 13436], [-6, -18], [-26, -3], [-1, -37], [-20, -23], [-33, 7], [-19, 17], [-38, -44], [34, -28], [-44, -49], [-56, -40], [-58, -26], [-31, -56], [-1, -18], [-39, -53], [-106, -36], [-40, 24], [-34, -29], [-56, 6], [-19, -24], [-25, -10], [-25, -7], [-27, 16], [-41, 81], [-13, -56], [16, -27], [8, -41], [-9, -24], [-29, 26], [-7, -47], [-24, 16], [-8, -46], [-15, -13], [-67, 18], [-24, -37], [-35, 7], [-41, -47], [-110, -11], [-20, -28], [-27, -14], [-26, -30], [-3, -37], [45, -68], [-26, -39], [-51, 3], [-23, 89], [-13, 24], [15, 72], [-2, 33], [-20, 18], [-16, -23], [-35, -10], [-20, 39], [-44, -1], [-11, 20], [-80, -34], [-85, -51], [-22, -54], [-58, 3], [-25, -125], [-42, -41], [-39, -28], [-9, -23], [-27, -120], [-3, -38], [36, -78], [47, -49], [26, -46], [-3, -28], [26, -58], [146, -191], [33, -11], [27, -38], [42, -94], [44, -67], [50, -236], [-3, -82], [19, -100], [-6, -33], [-21, -22], [7, -105], [-5, -46], [-42, -70], [-179, -146], [-55, -29], [-22, 21], [-18, -5], [-2, -36], [-27, -91], [-49, -58], [-99, -69], [-22, -46], [-20, -24], [-50, -6], [8, 45], [7, 129], [6, 46], [25, 20], [-36, 46], [-20, -8], [-27, 49], [-32, 24], [-45, 8], [-13, -13], [-16, 37], [11, 20], [-6, 38], [-29, 7], [-3, -33], [-38, -8], [-3, 77], [-26, 62], [-2, 19], [-32, 76], [-14, -13], [-27, 16], [-61, 80], [-25, 8], [-45, -8], [-47, 0], [-14, 22], [15, 125], [-52, 10], [-40, -5], [-41, -33], [14, -56], [-19, -168], [-35, -93], [-27, -124], [-27, -67], [-12, -118], [11, -100], [22, -10], [40, 22], [19, -8], [8, -35], [7, -85], [25, -39], [22, -70], [15, -86], [12, -43], [31, -53], [28, -21], [45, 10], [35, -25], [28, -57], [37, -39], [41, -35], [17, -37], [73, -78], [34, -85], [11, -41], [5, -64], [-18, -96], [11, -42], [2, -119], [36, -49], [26, -52], [43, -123], [4, -54], [-22, 5], [-20, 37], [-30, -26], [-7, -5], [-33, -6], [-55, 64], [-194, 167], [-22, 56], [-7, 51], [-30, 57], [-28, 34], [-26, 69], [-6, 111], [-14, 21], [-9, 67], [-11, 134], [-28, 71], [-42, 69], [-30, 94], [-32, 29], [-34, 75], [-41, 52], [-16, 32], [-45, -26], [-8, 61], [6, 66], [13, 22], [0, 38], [51, 199], [-17, -48], [-14, 26], [-8, 63], [33, 54], [2, 75], [17, 65], [-12, 33], [-8, 85], [1, 78], [-60, 181], [-15, -46], [-21, 150], [-1, 59], [-22, 38], [-21, 228], [17, 58], [-21, 8], [-28, -10], [-20, 30], [-14, 68], [-33, 20], [-4, -62], [-32, -54], [-26, -8], [-22, 23], [-30, -36], [-18, 6], [-6, -49], [-48, -78], [-23, 12], [12, 37], [-7, 31], [-22, -2], [-21, -58], [-10, 44], [-26, 22], [-3, 40], [-48, -82], [-15, 13], [7, 60], [14, 54], [31, 159], [-19, 75], [-10, 67], [-34, 92], [-6, 86], [-38, 40], [1, 51], [-35, 22], [-13, 29], [-31, 7], [-12, 61], [-23, -67], [-31, 38], [-36, 61], [-18, 61], [-27, 32], [-8, 65], [-12, 10], [4, 96], [7, 41], [-38, 18], [-33, 46], [-42, -54], [-52, 83], [-9, 70], [-23, 5], [-8, -63], [4, -43], [24, -67], [-52, -72], [-21, 35], [-42, 18], [-23, -5], [-16, 32], [-32, -39], [-16, -3], [-13, 3], [-98, -78], [-18, 43], [-37, -58], [-81, -28], [-23, -21], [-22, -51], [22, -76], [-75, -129], [-29, -18], [-67, -26], [-34, -22], [-79, -82], [-39, -73], [-49, -75], [-95, -91], [-26, -43], [-81, -56], [-34, -38], [-10, -26], [13, -37], [-6, -23], [-69, -45], [-34, 4], [-37, -24], [-28, -79], [-30, -2], [-19, 19], [-47, -35], [-26, -76], [-4, -32], [7, -58], [7, -134], [20, -97], [0, -54], [-8, -67], [-12, -56], [-36, -76], [-16, -77], [13, -106], [3, -124], [-46, -5], [-39, -33], [-32, -79], [8, -67], [-69, -32], [-47, -65], [-13, -70], [-67, -54], [-28, 8], [-40, 41], [-63, 104], [-24, 79], [-15, 105], [-65, 249], [-26, 62], [-41, 56], [-34, 95], [-21, 70], [-31, 182], [-28, 103], [-53, 114], [-7, 34], [-56, 139], [-15, 61], [-16, 150], [-42, 210], [-14, 149], [-16, 98], [17, 89], [13, 40], [-24, 101], [-12, 0], [1, 73], [14, 16], [-24, 30], [-6, 29], [10, 42], [-32, 11], [-15, -58], [10, -57], [-26, -71], [-20, -18], [-124, -72], [-24, -3], [-69, 46], [-28, 32], [-114, 152], [-28, 42], [0, 33], [42, -22], [100, 48], [51, 53], [7, 47], [-37, -2], [-26, -35], [-41, -29], [-70, 20], [-65, 52], [-27, 47], [-4, 27], [28, 43], [-19, 32], [-56, 7], [-30, 15], [-49, 4], [3, 49], [-8, 66], [-22, 8], [-70, 6], [1, 29]], [[30046, 13436], [26, -46], [7, 9], [-7, 37]], [[30174, 13436], [-21, -59], [-18, -30], [11, -37], [27, -8], [17, -4], [15, -44], [33, -6], [76, 32], [88, -5], [32, -10], [38, 2], [71, 41], [41, 90], [33, 38]], [[30796, 13436], [0, -4], [30, -84], [44, -70], [28, -30], [90, -41], [94, -17], [21, -20], [85, -150], [19, -22], [35, -5], [1, -54], [-51, -118], [-48, -55], [-27, -40], [-42, -112], [-39, -4], [-18, 30], [-32, -78], [-16, -97], [8, -74], [-27, -41], [-69, -14], [-30, -20], [-23, -38], [-10, -69], [-25, -39], [-81, -6], [-40, -14], [-16, -33], [-6, -71], [-23, -35], [-38, -18], [-36, 16], [-62, -9], [-121, -60], [-77, -36], [-19, -16], [-22, -41], [-16, -101], [-64, -42], [-48, -26], [-169, -62], [-71, -35], [-39, -25], [-32, -62], [-19, -22], [-50, -8], [-44, 9], [-99, -80], [-64, -29], [-87, -3], [-49, -13], [-87, -92], [-98, -37], [-44, 0], [-46, 18], [-40, 86], [-10, 131], [-18, 66], [-13, 108], [-21, 50], [-1, 45], [7, 119], [-7, 54], [-6, 50], [-32, 65], [-21, 61], [-62, 77], [-47, 85], [-22, 52], [-26, 93], [-41, 105], [-37, 53], [-52, 51], [-22, -1], [-43, 50], [-16, 39], [-23, 30], [-27, 66], [6, 41], [-16, 95], [6, 89], [-21, 74], [-17, 34], [-47, 118], [-22, 24], [-65, 52], [-43, 46], [-21, 68], [0, 23]], [[28002, 13436], [37, -99], [37, -57], [6, -32], [-6, -76], [17, -68], [7, -35], [21, -34], [66, -54], [71, -71], [-1, -9], [4, -71], [25, -71], [8, -70], [4, -142], [9, -93], [19, -113], [12, -29], [22, 1], [38, -35], [35, -55], [43, -40], [48, -114], [27, -136], [17, -115], [57, -135], [13, 41], [26, -11], [19, -68], [17, -18], [17, 14], [36, -16], [13, -33], [52, -17], [43, -77], [33, -48], [60, -67], [34, -65], [34, -54], [30, -7], [18, -23], [30, -58], [8, -47], [-6, -25], [-78, -44], [-33, -30], [12, -19], [24, 21], [47, 1], [14, -23], [23, -17], [33, -76], [31, -42], [47, -49], [34, -9], [59, 12], [91, 65], [61, -6], [36, -17], [29, 11], [58, 48], [58, 28], [21, -13], [50, 5], [24, 16], [71, 9], [16, -4], [56, 16], [90, 32], [46, 29], [17, 40], [27, 14], [64, -23], [-23, -118], [10, -137], [-35, -53], [-10, -114], [-88, -224], [-42, -79], [-33, -92], [-40, -84], [-19, -58], [-4, -37], [-15, -49], [-39, -89], [-67, -130], [-24, -56], [-147, -221], [-105, -141], [-20, -21], [-158, -125], [-148, -171], [-105, -153], [-97, -150], [-54, -118], [-31, -48], [-38, -20], [-72, -87], [-22, -14], [-18, -32], [-9, -92], [-58, -127], [-1, -23], [-24, -69], [-34, -28], [-14, -70], [-42, -177], [12, -60], [55, -79], [20, -6], [-1, -59], [-12, -23], [-15, -93], [21, -13], [-17, -70], [16, -109], [15, -45], [12, 7], [20, -103], [2, -49], [63, -54], [21, -9], [-2, -33], [15, -14], [8, -79], [-21, -48], [8, -87], [-1, -85], [14, -66], [-10, -45], [15, -185], [-6, -43], [20, -52], [15, -10], [1, -50], [-13, -18], [-21, -105], [-57, -96], [-31, -43], [-22, -50], [-87, -74], [-91, -46], [-38, -2], [-30, -37], [-52, -34], [-69, -58], [-1, -16], [-37, -73], [-45, -65], [0, -18], [-37, -4], [-36, -33], [-47, -75], [-61, -61], [-25, 16], [-6, -115], [2, -32], [35, -20], [15, -44], [10, -81], [25, -101], [19, -26], [9, -65], [2, -84], [-21, -173], [15, -34], [-46, -89], [-45, -31], [-178, -87], [-54, -37], [-25, -25], [-36, -70], [48, -76], [-4, -82], [-49, -245], [-14, -48], [-50, -67], [-24, -13], [-66, -80], [-104, -223], [-68, -119], [-89, -92], [-102, -137], [-85, -84], [-105, -87], [-69, -39], [-93, 4], [-31, -37], [-95, -33], [-55, -6], [-40, 15], [-66, 15], [-36, -19], [-104, 16], [-60, -26], [-24, -30], [-29, -15], [-107, 2], [-59, -26], [-49, -49], [-49, 4], [-74, 72], [-32, 40], [-55, -7], [-17, 28], [23, 26], [-6, 32], [-52, 116], [-19, 6], [4, 55], [30, -7], [21, 38], [1, 62], [-13, 81], [-56, 99], [-65, 149], [-24, 83], [-22, 95], [-51, 119], [-13, 14], [-101, 123], [-36, 86], [-34, 112], [1, 30], [-18, 57], [-22, 122], [0, 91], [-21, 93], [-23, 76], [1, 102], [-10, 126], [14, 12], [-4, 55], [-15, 52], [-38, 66], [-88, 184], [-23, 89], [-75, 198], [-45, 97], [-43, 58], [-20, 52], [-14, 97], [2, 61], [9, 99], [-3, 117], [33, 144], [30, 91], [9, 86], [25, 135], [24, 48], [28, 72], [33, 40], [37, 23], [18, 35], [23, 84], [9, 142], [-12, 56], [-30, 61], [-42, 116], [-6, 57], [-20, 56], [42, 57], [9, 25], [-11, 65], [-33, 86], [-26, 88], [-4, 31], [-65, 157], [-4, 23], [63, 13], [39, 28], [-10, 6], [-80, -23], [-28, 40], [-6, 22], [10, 31], [-11, 46], [-19, 38], [-18, 32], [-4, 33], [-19, 33], [-68, 88], [-38, 67], [-75, 107], [-51, 53], [-32, 46], [-52, 114], [-54, 157], [-6, 34], [40, 7], [25, 53], [13, 111], [20, 12], [-30, 41], [22, 26], [14, 63], [10, 8], [-33, 8], [-3, 25], [27, 59], [25, 80], [4, 59], [0, 38], [14, 78], [-26, 87], [-9, 66], [-22, 22], [-36, 2], [-30, 20], [-19, 91], [-19, -21], [-23, 2], [1, 43], [-53, -34], [-136, -20], [-48, -17], [-80, -12], [-29, 19], [-37, 49], [-29, 90], [-1, 42], [-63, 112], [-50, 56], [-82, 19], [-150, -11], [-73, -8], [-66, -16], [-57, -23], [-27, -37], [-53, -23], [-70, -18], [-107, -76], [-87, -34], [-81, -57], [-37, 34], [-99, 28], [-122, 27], [-271, -43], [2, -6], [-160, -97], [-25, -11], [-26, 2], [-84, 48], [-112, 85], [-28, 31], [-81, 110], [-169, 158], [-18, 25], [-7, 13], [-111, 77], [-9, 34], [-32, 18], [-46, 92], [-27, 34], [22, 37], [-24, 74], [-2, 38], [-40, 56], [-8, 66], [-46, 33], [-20, -6], [-61, 69], [15, 62], [-26, -17], [-24, 60], [-31, 4], [-32, 24], [-12, 21], [13, 46], [-23, 48], [-81, 10], [-18, 20], [2, 25], [-51, 31], [-6, 37], [2, 94], [-8, 48], [32, 48], [-3, 43], [-89, 155], [84, 163], [12, 35], [3, 44], [-1, 34], [9, 67], [45, 150], [9, 85], [-3, 93], [-16, 78], [-38, 95], [24, 57], [4, 98], [-31, 79], [-24, -6], [-31, 84], [-18, -69], [-5, 15], [17, 165], [19, 67], [17, 25], [25, 6], [72, 214], [14, 62], [75, 96], [29, 25], [19, 34], [7, 36], [0, 12]], [[13757, 0], [14, 20], [-2, 45], [39, 21], [10, 38], [-55, -23], [-7, 94], [6, 45], [49, 18], [-1, 25], [-69, 58], [26, 14], [41, -4], [56, -28], [29, 1], [-31, 56], [-18, 52], [-38, -38], [-89, 13], [72, 23], [-41, 24], [23, 47], [33, 12], [-26, 65], [-50, -3], [-49, 10], [-15, 24], [-33, -23], [10, -23], [-33, -15], [-18, 28], [23, 40], [67, 61], [0, 62], [119, 10], [12, -59], [44, -12], [23, 138], [36, 28], [43, -33], [9, 18], [-67, 31], [27, 46], [49, 35], [10, 56], [-78, 43], [17, 28], [28, 78], [-7, 61], [22, 70], [-8, 17], [20, 59], [24, 36], [-12, 37], [-31, 20], [26, 33], [-23, 44], [-26, -4], [-48, -51], [-41, 9], [-18, 59], [-11, 83], [25, 80], [-1, 41], [14, 60], [35, 12], [22, 92], [-25, 97], [-33, 226], [-2, 37], [13, 32], [36, -10], [17, 21], [7, 71], [15, -1], [23, 100], [33, 119], [40, 67], [21, 68], [14, 98], [38, 84], [-3, 94], [24, 52], [11, 103], [-7, 79], [-14, 87], [-14, 140], [9, 67], [30, 13], [16, 66], [-2, 74], [-25, 50], [2, 51], [26, 39], [10, 36], [9, 86], [45, 175], [12, 68], [7, 96], [-6, 31], [15, 68], [17, 26], [1, 30], [-18, 87], [15, 171], [-6, 52], [-10, 9], [1, 55], [38, 43], [5, 89], [24, 169], [-17, 109], [9, 131], [-3, 63], [-17, 86], [-13, 162], [-122, 114], [-5, 20], [-40, 68], [-152, 115], [-109, 64], [-77, 63], [-78, 56], [-44, 45], [-67, 88], [-25, 25], [-47, 91], [-8, 45], [17, 53], [-2, 40], [-20, 38], [-56, 131], [-20, 35], [-157, 374], [-37, 143], [-10, 21], [-52, 157], [-78, 148], [-30, 90], [-32, 55], [-31, 31], [-67, 45], [-47, 44], [2, 50], [30, 0], [0, 30], [-24, 50], [-37, 122], [14, 78], [67, 97], [48, 46], [13, 1], [39, 46], [17, 78], [-5, 61], [-25, 7], [-30, -69], [-64, 63], [-25, 31], [27, 59], [-1, 93], [-6, 15], [8, 62], [39, 67], [25, 77], [23, 36], [6, 83], [-10, 22], [8, 30], [48, 31], [64, 18], [28, 41], [22, 14], [-15, 28], [18, 45], [25, -8], [4, 27], [-18, 16], [-5, 29], [25, 65], [94, 27], [35, 100], [53, 82], [3, 34], [-12, 33], [-30, -10], [-12, 48], [23, 41], [4, 31], [-10, 138], [6, 201], [-41, 74], [-31, 42], [-38, 57], [-34, 94], [35, 51], [-25, 8], [-27, 48], [-44, 46], [-32, 17], [-43, -2], [-40, 33], [-2, 28], [35, 53], [108, -35], [22, -2], [82, -57], [47, -71], [24, -7], [67, -105], [12, 54], [-8, 18], [73, 93], [24, 58], [31, 16], [32, 45], [3, 98], [8, 62], [86, 91], [69, -18], [14, 16], [10, 48], [43, -13], [68, 3], [67, 71], [41, 18], [42, 60], [62, 62], [51, -21], [19, -57], [-26, -31], [-14, -21], [-66, -22], [1, -51], [27, -54], [17, -67], [-8, -38], [-38, -59], [-20, -46], [36, -112], [16, -29], [27, -3], [35, 21], [21, 38], [5, 60], [-6, 22], [-50, 99], [-12, 68], [24, 37], [171, 84], [21, 3], [-7, 39], [-38, -10], [-7, 55], [14, 32], [22, 17], [16, -13], [41, -120], [42, 13], [58, -21], [52, -43], [17, -41], [0, -53], [20, -30], [27, -5], [124, 27], [99, 4], [38, -63], [14, -10], [96, -29], [30, 4], [37, 29], [73, 36], [40, 36], [123, 18], [41, -4], [74, 5], [-11, -17], [-81, -17], [-16, -30], [45, -104], [19, 37], [24, -12], [26, -35], [21, 6], [34, -16], [23, -23], [25, 0], [32, -44], [-23, -23], [-8, -66], [13, -17], [-9, -29], [57, -4], [26, 17], [46, -18], [113, -91], [64, -85], [22, -49], [-2, -88], [25, 17], [33, -13], [77, -89], [27, -25], [13, -67], [26, 34], [82, -17], [50, -1], [43, 15], [31, -4], [71, 5], [103, -29], [2, -37], [23, 27], [45, -37], [61, -18], [142, -149], [41, -81], [9, 39], [45, -56], [10, -30], [15, -145], [44, -165], [26, -66], [24, 0], [43, -25], [10, -46], [-14, -63], [-58, -68], [-14, -35], [-40, -56], [-46, -43], [-29, -63], [21, -16], [23, 29], [25, 50], [30, 10], [18, -30], [26, 15], [38, -12], [181, -13], [36, -28], [-14, -57], [-44, -122], [-29, -28], [-73, -32], [-60, 0], [-47, -22], [2, -17], [84, 7], [22, 20], [40, 14], [-13, -52], [12, -13], [24, 57], [27, 1], [56, 102], [18, 14], [3, 27], [33, 50], [20, 15], [30, 2], [34, -35], [22, 12], [51, -18], [22, -29], [50, -12], [19, -37], [24, 18], [37, -49], [33, -11], [10, -50], [35, 50], [21, -14], [42, -63], [-1, -44], [27, -12], [5, -22], [-26, -34], [-30, -127], [7, -13], [32, 50], [23, 92], [27, 18], [7, -26], [-36, -40], [16, -13], [41, 42], [43, 17], [17, 34], [31, -8], [123, -75], [28, 10], [60, -30], [35, -1], [108, 21], [65, -9], [102, -77], [101, -92], [39, -62], [53, -66], [60, -57], [56, -35], [34, -11], [58, -1], [23, 7], [46, -14], [22, -16], [26, -68], [20, -113], [32, -140], [3, -56], [-7, -129], [-12, -57], [-29, -109], [-29, -58], [-97, -153], [-50, -70], [-44, -37], [-21, -35], [-53, -110], [-32, -92], [-41, -86], [-44, -70], [-21, -16], [-2, 50], [-28, 20], [-7, -65], [-18, -88], [-22, -71], [15, -19], [-14, -121], [13, -157], [6, -34], [-38, -255], [3, -73], [-22, -61], [-34, -53], [-14, -53], [-3, -56], [7, -89], [-8, -42], [-55, -96], [-32, -100], [-50, -63], [-34, -94], [10, -90], [-31, -25], [-47, -19], [-51, -55], [7, -37], [-21, -33], [-131, -1], [8, 41], [-24, 0], [9, -39], [-54, -18], [-35, 25], [-32, -11], [-34, 8], [-44, -25], [-8, -55], [-19, 4], [-105, -76], [-32, 1], [-72, -48], [-139, -128], [-46, -65], [-36, -36], [-72, -10], [6, -23], [33, -27], [-23, -73], [-21, -27], [14, -28], [-3, -57], [21, -89], [-10, -45], [1, -86], [-22, -103], [-12, -23], [-65, -58], [-62, -96], [-32, -73], [-31, -106], [-76, -140], [-53, -64], [-96, -91], [-4, 44], [48, 17], [43, 46], [28, 42], [77, 146], [5, 35], [-17, 14], [-50, -29], [-32, 11], [-1, -50], [-22, -85], [-70, -70], [-17, -45], [-16, -65], [13, -25], [-62, -166], [-18, -30], [-78, -81], [-53, -109], [-48, -55], [-103, -53], [-60, 29], [-40, 4], [-35, -15], [-110, 28], [-33, 35], [-108, 19], [-66, 85], [-3, 60], [10, 70], [29, 31], [-39, -25], [-16, -90], [5, -41], [17, -26], [-20, -72], [30, -41], [54, -29], [49, -35], [42, -50], [10, -26], [-32, -53], [-2, -40], [39, -58], [44, -6], [9, -103], [-137, -237], [-62, -39], [-125, -47], [-96, -24], [-122, -24], [-127, -3], [-44, 29], [-33, -1], [24, -83], [20, -37], [-21, -63], [-13, -4], [-17, -68], [37, -62], [-19, -47], [-98, -51], [-91, -2], [-127, 67], [-33, 12], [-24, -52], [11, -72], [1, -99], [7, -20], [54, -62], [64, -1], [-9, 40], [56, 24], [17, -34], [0, -90], [-67, -20], [-21, 58], [-48, 7], [-40, -26], [-5, -22], [78, -32], [-76, -58], [-42, -65], [-3, -20], [16, -104], [-20, -40], [-34, -20], [-12, -66], [-62, 8], [-96, -49], [-43, -53], [-38, -74], [-5, -49], [29, -60], [77, -74], [66, -15], [41, 2], [34, -48], [-17, -108], [-66, -66], [-81, -53], [-76, -74], [-29, -156], [-23, -19]], [[32448, 159], [68, -34], [35, 6], [62, 38], [27, -9], [1, -36], [-27, -8], [-66, 1], [2, -37], [37, 7], [17, -31], [-50, -3], [-26, 29], [-77, 1], [1, -28], [-42, 6], [18, 39], [-19, 62], [26, 72], [20, -14], [-7, -61]], [[42023, 7003], [23, -10], [9, -24], [8, -90], [23, -60], [13, -73], [19, -12], [18, -48], [-7, -35], [19, -15], [6, -123], [7, -48], [22, -85], [33, -17], [61, 54], [17, -46], [73, -73], [29, -197], [1, -77], [14, -39], [52, -90], [27, -92], [-13, -117], [20, -33], [13, -79], [25, -37], [84, -58], [39, -2], [10, -43], [21, -28], [76, -36], [65, -42], [-6, -67], [20, -39], [37, -27], [33, -91], [27, -139], [6, -46], [55, -20], [-19, 59], [16, 35], [18, -39], [57, -50], [-10, 43], [14, 6], [19, -37], [4, -34], [-6, -101], [-9, -52], [53, -11], [9, -37], [35, -38], [39, 11], [58, -120], [80, -103], [12, -77], [31, -67], [-10, -217], [16, -30], [51, -172], [2, -84], [-40, -87], [10, -29], [-23, -118], [-18, -54], [-6, -63], [7, -38], [-33, -119], [-32, -55], [-9, -79], [-57, -58], [-53, -38], [-11, -54], [-32, -45], [-2, -45], [-48, -94], [-23, -98], [3, -35], [-17, -18], [-56, -98], [-9, -35], [-6, -78], [-17, -80], [2, -127], [-40, -33], [-37, -16], [-146, -8], [-74, -11], [1, -22], [-113, -108], [-81, -17], [10, -37], [23, -2], [-10, -39], [-49, 56], [-54, 26], [-21, 25], [14, 35], [-38, 22], [-12, -32], [-37, -16], [31, 66], [-29, 52], [-53, -47], [2, -32], [-72, -55], [-42, -38], [-21, -5], [-157, 82], [-42, 14], [-76, 1], [-47, 37], [-47, 3], [-37, 32], [-73, 110], [-14, 49], [22, 47], [-20, 75], [-46, 77], [-58, 55], [-26, 10], [-28, -22], [-40, -5], [-3, 26], [37, 36], [15, 88], [-60, 123], [-12, -18], [-33, -144], [-20, -17], [-88, -26], [-11, 13], [22, 55], [40, -5], [21, 81], [3, 61], [15, 44], [25, 39], [24, 96], [-2, 21], [-29, 69], [-21, -66], [-34, -82], [-45, -43], [-48, -33], [-93, -126], [10, -26], [-4, -48], [-104, 78], [34, 10], [-21, 95], [-29, 41], [-42, 103], [-58, 5], [-20, 50], [23, 32], [-12, 36], [-67, 62], [-29, -5], [-181, 47], [-51, 42], [-68, 38], [-78, -23], [-52, 3], [-144, -17], [-126, -69], [-106, -38], [-75, -8], [-71, 12], [-22, -8], [-132, -86], [-80, -34], [-30, -31], [-16, -56], [-33, -59], [-31, -27], [-46, -3], [-18, 15], [-117, -23], [-29, 23], [-71, 8], [-85, -14], [-93, -8], [-46, -29], [-17, -44], [-42, -25], [-57, -17], [-55, -58], [-62, -34], [-68, 15], [-90, -7], [-87, 54], [-38, 48], [-30, 23], [-53, 15], [-6, 56], [2, 76], [26, -22], [38, 20], [24, 44], [-3, 71], [12, 89], [-1, 103], [-8, 33], [-63, 147], [-17, 55], [-13, 80], [-1, 74], [-13, 98], [-34, 79], [-45, 83], [-16, 108], [-18, 56], [-49, 100], [-43, 60], [-8, 30], [22, 21], [11, -52], [24, -48], [27, 27], [0, 34], [-41, 52], [-20, 56], [10, 30], [51, -92], [25, -66], [22, 23], [-5, 89], [-46, 102], [-28, 87], [-29, 49], [4, 83], [24, 70], [22, 31], [6, 75], [-20, 77], [42, 132], [19, -4], [-8, -46], [5, -56], [35, 9], [33, 102], [106, 61], [55, 68], [100, 75], [109, -3], [38, 11], [47, 53], [86, 16], [39, 52], [44, -4], [99, 17], [66, 31], [50, 33], [41, 55], [61, 140], [54, 52], [9, 36], [-18, 17], [-10, 68], [5, 43], [18, 37], [58, 62], [21, 55], [15, -47], [31, -66], [16, -52], [23, -35], [4, 69], [31, -2], [3, 26], [-48, 90], [27, 14], [-15, 29], [17, 21], [23, -48], [11, 12], [51, -18], [21, 19], [-8, 41], [34, 52], [-36, 0], [-8, 23], [9, 34], [21, 1], [11, 26], [18, -2], [42, -26], [-14, 58], [58, 5], [-30, 35], [-15, 42], [26, 25], [29, 5], [9, 31], [37, -46], [21, 73], [49, 24], [13, -25], [22, 42], [1, 38], [25, 10], [27, -45], [23, 13], [38, -40], [42, -73], [23, -57], [-4, -49], [-16, -68], [42, 29], [11, 49], [17, 22], [-2, 32], [61, -12], [29, -22], [39, 6], [11, -21], [27, 39], [4, 55], [-36, -2], [-21, 23], [18, 60], [32, 28], [21, 74], [14, -3], [32, 35], [-13, 27], [4, 48], [21, 30], [21, 7], [9, 54], [36, -10], [19, 47], [41, 4], [15, -18], [30, -1], [98, 10], [22, 21], [19, 89], [-26, 32], [-50, -14], [-41, 42], [69, 21], [26, -38], [34, -7], [32, -24], [24, -34], [22, -9], [60, -4], [39, -59], [37, 11], [45, 2], [35, -34], [34, 1], [35, 31], [37, -19], [14, -49], [39, 9], [8, 32], [-23, 11], [34, 38], [26, -57], [31, 7], [7, -25], [-27, -33], [-16, -35], [3, -48], [-33, -33], [-30, 2], [-30, -15], [-8, -33], [3, -45], [19, 4], [-18, -88], [-21, -22], [-26, -57], [-42, -26], [54, -52], [6, -27], [31, -2], [27, -25], [79, -93], [26, -5], [81, -47], [32, -25], [15, -27], [55, -52], [91, -26], [43, -86], [86, -61], [65, 13], [44, 35], [61, 180], [12, 78], [5, 63], [19, 74], [7, 51], [-22, 196], [10, 65], [25, 22], [-20, 68], [45, 73], [-44, 6], [28, 91], [24, 51], [21, 110], [38, 78], [13, -35]], [[42733, 1268], [-2, -42], [-24, -11], [-23, 27], [49, 26]], [[42323, 1658], [54, -11], [118, -61], [25, -7], [59, 11], [23, 24], [52, -1], [80, 45], [43, -46], [-6, -43], [0, -145], [-15, 8], [-20, -47], [-10, -63], [-33, -50], [-45, -10], [-12, -42], [-24, -26], [-30, -53], [-44, 18], [-62, 12], [-3, 24], [-66, 65], [-25, 62], [-12, 56], [7, 31], [-60, 117], [-24, 84], [30, 48]], [[42769, 1752], [-31, 4], [-33, 62], [23, 21], [43, -57], [-2, -30]], [[42225, 1784], [-24, -19], [-9, 47], [17, 52], [18, -14], [-2, -66]], [[41316, 2503], [-54, -1], [-20, 23], [5, 27], [103, 29], [26, -25], [56, -30], [-116, -23]], [[43428, 4485], [-32, -134], [-17, 21], [18, 80], [31, 33]], [[41652, 6007], [-16, -6], [-37, -42], [-13, 26], [17, 23], [29, 11], [20, -12]], [[41294, 6398], [-42, 1], [-31, 17], [4, 41], [38, 43], [7, -46], [24, -56]], [[40452, 6866], [2, -29], [-50, 1], [8, 74], [22, 15], [18, -61]], [[40477, 6910], [68, 23], [12, 17], [28, -47], [-21, -35], [-47, -48], [-40, 26], [-27, 30], [-14, 67], [41, -33]], [[35287, 12949], [-21, 0], [-1, 44], [-19, 38], [17, 8], [24, -90]], [[13296, 13436], [23, -48], [-1, -52], [-32, -25], [-37, 35], [-8, 32], [19, 30], [4, 28]], [[13935, 12743], [-17, -29], [-63, -10], [1, 33], [31, 19], [48, -13]], [[13638, 13201], [62, -124], [-37, 39], [-25, 85]], [[11945, 12269], [25, -21], [-2, -64], [-10, -39], [-10, -88], [9, -57], [-14, -62], [-21, -53], [-33, -25], [-25, -56], [54, -3], [38, -27], [17, -3], [23, 29], [24, 8], [43, -18], [75, -8], [50, 4], [58, 20], [145, 6], [62, -21], [140, -120], [24, -27], [-20, -41], [9, -49], [-32, -121], [-11, -100], [8, -137], [-15, -24], [-12, -68], [-3, -75], [-17, -34], [9, -55], [18, -24], [22, -73], [16, -35], [74, -114], [32, -22], [24, -28], [2, -37], [14, -33], [23, -17], [60, -6], [14, -18], [26, -3], [43, 11], [72, 53], [50, 28], [25, -29], [21, -5], [15, -23], [-25, -32], [2, -32], [-56, -51], [-23, -6], [-5, -54], [44, -64], [5, -34], [-55, -38], [-35, -6], [-29, 11], [-17, 110], [-18, -2], [0, -33], [-38, 12], [-33, 79], [-59, 10], [-11, 16], [-47, -2], [-33, -51], [-35, 105], [-17, -16], [-1, -29], [-31, 12], [-24, 25], [16, 44], [-4, 40], [-42, 47], [-61, 36], [-28, 40], [-11, 35], [-68, 56], [14, -45], [32, -32], [-32, -42], [-54, 53], [-31, 41], [-10, 43], [16, 33], [7, 98], [-107, 127], [-32, 66], [-99, 114], [6, 28], [21, 7], [-10, 22], [1, 51], [-47, -7], [-10, 9], [4, -21], [-26, -23], [-70, 5], [-37, 11], [-62, 41], [-27, 4], [-49, 21], [-35, 23], [-60, 30], [-61, 0], [-32, 7], [-59, 41], [-61, 64], [-96, 130], [-64, 77], [-50, 45], [-50, 29], [-64, 18], [-57, -6], [-57, -41], [-87, -47], [-30, -4], [-52, 18], [-42, 29], [-90, 24], [-62, 37], [-46, 44], [-61, 21], [-52, 10], [-35, 26], [-150, 77], [-88, 90], [-52, 40], [-30, -2], [-51, 16], [-100, 47], [-28, 59], [-53, 51], [-119, 82], [-61, 106], [-26, 71], [11, 16], [36, 7], [17, 166], [-33, 35], [-21, 53], [-9, 75], [-19, 55], [-74, 95], [-65, 117], [-42, 49], [-96, 90], [-31, 62], [-5, 7]], [[9014, 13436], [18, -117], [16, -25], [23, -6], [31, 11], [41, -43], [44, -78], [9, -32], [-17, -50], [-45, -41], [-16, 5], [-53, 129], [-79, 85], [-65, 47], [-22, -1], [-47, 33], [-24, 45], [6, 38]], [[10745, 13436], [-19, -89], [-8, -93], [-4, -158], [-12, -115], [15, -74], [29, -57], [25, -128], [17, -56], [96, -151], [27, -103], [46, -76], [33, -22], [74, -17], [38, -26], [25, -54], [15, -8], [43, 10], [48, 21], [87, 21], [59, 30], [88, 16], [37, 0], [77, 61], [49, 53], [37, 111], [-4, 46], [9, 108], [14, 39], [63, 40], [146, 35], [47, 19], [61, 4], [82, -27], [40, 7], [24, -62], [-16, -48], [-50, -68], [-29, -71], [-2, -48], [-32, -26], [19, -47], [-11, -35], [17, -16], [-40, -166], [-25, 120], [-35, -67]], [[17012, 8937], [-36, -4], [12, 39], [29, -7], [-5, -28]], [[16959, 8969], [-23, -17], [-26, 13], [-4, 34], [75, 22], [8, -16], [-30, -36]], [[16898, 9008], [-31, -10], [15, 47], [16, -37]], [[16905, 9019], [-3, 46], [29, -13], [-26, -33]], [[16901, 9305], [-19, -16], [-13, 31], [24, 23], [8, -38]], [[37751, 8777], [-43, 21], [-6, 53], [-26, 3], [-14, 53], [13, 58], [-22, 46], [-16, 78], [9, 85], [27, 71], [63, 85], [11, -43], [21, -21], [54, -12], [24, 6], [75, -52], [-4, 50], [23, 84], [31, 40], [-2, 60], [27, 23], [154, 46], [26, 15], [69, 119], [28, 35], [23, 45], [17, 54], [49, 14], [53, 55], [21, -14], [3, -17], [16, 20], [26, -2], [25, 35], [-24, 52], [31, 34], [35, 1], [29, 73], [72, 151], [25, 21], [1, -66], [21, 37], [28, 8], [9, -39], [31, -4], [27, -29], [-3, -33], [-16, -12], [0, -49], [23, 1], [35, 19], [10, -32], [16, 1], [51, -36], [82, -50], [-12, -45], [-57, -30], [-26, -2], [-27, 16], [-25, -25], [12, -30], [28, -34], [-12, -33], [-22, -8], [-56, 8], [-21, -29], [-13, -18], [31, -39], [-15, -42], [-32, -32], [15, -59], [18, -23], [50, -112], [-24, -63], [10, -31], [70, -81], [64, -58], [7, -23], [-20, -22], [-63, 3], [-36, 14], [-45, -36], [-25, -74], [-7, -35], [4, -113], [-9, -57], [-18, 17], [-37, -80], [-14, -13], [-23, 37], [-24, -86], [-22, -41], [-4, -64], [34, -12], [-10, -60], [-42, -72], [-16, -12], [2, -47], [-19, -63], [-89, -51], [-75, -50], [-12, 49], [-13, 96], [-55, 8], [-27, -19], [-32, 9], [-23, 35], [-32, 14], [-29, -8], [-63, -47], [-59, -7], [-27, 19], [-1, 54], [-17, 40], [-28, -25], [-72, -23], [-82, 19], [-10, 21], [-28, 209], [9, 61], [-20, 44], [-22, 20]], [[13716, 237], [21, -7], [14, -68], [-3, -73], [12, -42], [-7, -33], [-13, -14]], [[13707, 0], [-44, 25], [-28, 65], [3, 41], [58, -17], [12, 47], [-24, 60], [32, 16]], [[13639, 247], [-39, -12], [0, 42], [25, 3], [14, -33]], [[13728, 300], [3, -42], [-36, -14], [11, 67], [22, -11]], [[13695, 289], [-35, 10], [15, 41], [30, -27], [-10, -24]], [[13673, 249], [-56, 46], [18, 32], [38, -78]], [[13856, 700], [-35, 8], [5, 32], [27, -3], [3, -37]], [[13849, 850], [-67, 16], [6, 23], [51, 7], [10, -46]], [[13828, 953], [-50, -23], [-20, 33], [57, 4], [13, -14]], [[13954, 996], [26, -17], [-24, -40], [-43, -32], [-32, 53], [73, 36]], [[13825, 1465], [36, 1], [19, -55], [-11, -38], [-26, -19], [-5, -30], [30, -27], [-4, -24], [-41, -92], [-48, 14], [-18, 17], [32, 65], [-1, 108], [17, 36], [-1, 40], [21, 4]], [[37901, 12540], [-3, -80], [-52, -68], [4, -70], [-75, -66], [-26, -10], [-17, -29], [-116, 54], [-8, 57], [-3, 82], [8, 18], [76, 64], [7, 33], [51, 15], [38, -13], [52, 25], [37, 7], [27, -19]], [[29099, 6921], [9, -10], [12, -82], [-28, 6], [-8, 20], [5, 57], [10, 9]], [[20358, 11705], [41, -63], [-26, -13], [-19, 32], [4, 44]], [[20482, 11863], [15, -13], [-15, -31], [-20, 7], [20, 37]], [[20187, 12035], [8, -23], [-38, -25], [-6, 33], [36, 15]], [[12803, 13104], [23, -16], [36, 11], [21, -17], [34, 19], [77, -41], [35, 1], [41, -27], [24, -41], [34, -27], [72, -2], [69, -45], [45, -45], [50, -38], [3, 16], [113, -83], [53, -26], [54, -1], [18, -21], [-13, -50], [85, -6], [31, -13], [33, -38], [44, -20], [8, -19], [-22, -23], [-71, -7], [-59, -26], [-56, 14], [-56, 4], [-75, -7], [-122, -21], [6, 34], [29, 32], [28, 16], [14, 32], [-35, 45], [-90, -2], [-56, 60], [-16, 75], [-21, 33], [-71, -14], [-185, 88], [-127, 27], [-57, 28], [56, 17], [4, 22], [-26, 18], [-99, 0], [-43, -26], [-47, -50], [-86, -33], [-10, -27], [-38, -15], [-50, 7], [23, 25], [22, 60], [24, 36], [42, 34], [95, 43], [87, 20], [28, 15], [70, -5]], [[12696, 12820], [-43, -22], [-27, 61], [19, 28], [32, -9], [19, -58]], [[15449, 11759], [23, -30], [-2, -39], [-14, -7], [-13, 60], [6, 16]], [[14102, 12487], [25, 37], [76, 4], [82, -42], [60, -22], [36, -50], [52, 8], [0, -27], [-49, 6], [-4, -25], [49, -11], [44, 1], [27, -17], [50, -58], [-17, -43], [-40, -23], [-24, 30], [-102, 9], [-42, -15], [-22, -26], [-36, -6], [-27, 39], [-36, -23], [-27, -60], [-37, -52], [-19, 19], [-19, 48], [-37, 36], [-62, -3], [-49, -11], [-61, 15], [-37, 1], [-38, -24], [-50, 31], [-20, 23], [7, 37], [28, 10], [72, -32], [127, -8], [39, 15], [7, 26], [-62, 62], [14, 76], [-46, 32], [-45, 1], [-7, 22], [34, 28], [48, 7], [63, -33], [75, -12]], [[42337, 11394], [-25, -57], [-16, 12], [26, 45], [15, 0]], [[15445, 11914], [8, -51], [-24, -39], [-17, -8], [-13, 57], [29, 0], [17, 41]], [[24613, 9606], [-29, -71], [-32, 9], [-1, 28], [25, 46], [31, 14], [6, -26]], [[13966, 12321], [-56, 13], [4, 22], [52, -35]], [[39468, 7002], [-15, 24], [76, 55], [-5, -38], [-56, -41]], [[39167, 7123], [-26, -10], [-28, 8], [-44, 54], [-34, 31], [-55, 5], [-33, 34], [35, 32], [37, 2], [57, 13], [17, -24], [69, -60], [31, -57], [-26, -28]], [[39749, 7262], [-42, -68], [-46, -57], [-78, -34], [-43, -1], [25, 123], [7, 18], [41, 42], [34, 24], [22, 5], [62, 39], [32, 62], [54, 13], [214, 28], [-33, -54], [-40, -14], [-22, -21], [-82, -46], [-65, -23], [-40, -36]], [[39590, 7485], [-47, -63], [-37, 3], [17, 44], [67, 16]], [[38660, 7452], [-24, -81], [-21, -15], [-28, 6], [-12, 29], [0, 61], [39, 34], [37, -15], [9, -19]], [[39646, 7470], [-22, -42], [-29, 16], [51, 26]], [[39675, 7501], [17, -7], [54, 3], [4, -35], [-66, -15], [-30, 13], [21, 41]], [[38878, 7469], [47, -1], [34, -40], [0, -39], [-67, -20], [-16, 18], [-165, -59], [-49, 17], [10, 33], [2, 48], [45, 32], [34, -8], [47, -57], [59, 13], [-3, 18], [-40, 21], [-30, 38], [5, 15], [34, 8], [53, -37]], [[39466, 7504], [12, -30], [-30, -27], [-1, -32], [-48, -23], [-57, -16], [-44, -3], [-72, -17], [-61, 23], [-55, 5], [-34, -12], [-15, 15], [9, 51], [51, 36], [19, 3], [73, -22], [47, -32], [77, 13], [32, -17], [43, 7], [50, 51], [4, 27]], [[38482, 7501], [44, -41], [-11, -25], [-62, -32], [-64, 48], [-29, 41], [3, 15], [50, -18], [44, 24], [25, -12]], [[40360, 7515], [-26, 27], [12, 21], [24, -20], [-10, -28]], [[39961, 7586], [2, -17], [-38, -35], [-38, 9], [-47, -17], [5, 28], [22, 29], [24, -9], [60, 28], [10, -16]], [[41467, 7452], [-83, -4], [16, 58], [42, 91], [41, 32], [40, 6], [24, -16], [22, -32], [-4, -26], [-37, -62], [-28, -34], [-33, -13]], [[40601, 7589], [-44, -63], [-27, 20], [14, 50], [43, 75], [18, 10], [2, -53], [-6, -39]], [[38320, 7707], [-80, -45], [-69, 4], [-36, 11], [21, 46], [146, 2], [18, -18]], [[40968, 7805], [9, -31], [-42, -56], [-19, 29], [17, 98], [35, -40]], [[41004, 7830], [-14, -11], [-23, 17], [-11, 40], [39, 16], [16, -26], [-7, -36]], [[37426, 7890], [48, -50], [74, -10], [13, 9], [24, -38], [15, -55], [14, -9], [97, -4], [83, -11], [37, -14], [29, 36], [16, 58], [42, 2], [42, -48], [153, -30], [10, -9], [21, -88], [-3, -21], [68, -44], [92, 23], [64, -33], [-17, -107], [21, -37], [-17, -16], [-49, 21], [-85, 50], [-49, -1], [-45, -16], [-101, 26], [-101, 5], [-79, 26], [-73, 47], [-71, 24], [-63, 12], [-31, -7], [-25, -24], [-79, 18], [-48, 35], [-51, 12], [-65, 6], [-26, 25], [5, 57], [-67, 27], [-48, -10], [-6, 13], [26, 49], [30, 86], [25, 16], [78, -19], [43, 3], [29, 15]], [[40990, 7933], [6, -39], [-28, -8], [-19, 15], [2, 25], [21, 36], [18, -29]], [[39352, 7994], [-13, -16], [-18, 33], [23, 33], [12, -23], [-4, -27]], [[39427, 8018], [-13, -29], [-31, 3], [10, 83], [12, 34], [38, 16], [1, -56], [-17, -51]], [[39501, 8123], [-20, -14], [-11, -74], [36, -24], [-53, -72], [-21, -3], [-12, 37], [25, 45], [12, 76], [3, 54], [27, 28], [14, -53]], [[39510, 8220], [-15, -24], [-24, 20], [7, 28], [32, -24]], [[40155, 8285], [-36, -5], [10, 31], [36, 20], [8, -25], [-18, -21]], [[38598, 8254], [-27, -20], [-1, 93], [14, 40], [16, 13], [3, -68], [-5, -58]], [[40026, 8300], [-72, -29], [-61, 38], [-25, 48], [11, 44], [78, 9], [43, -18], [32, -38], [-6, -54]], [[36541, 8397], [-10, -14], [-26, 46], [9, 22], [24, -32], [3, -22]], [[40336, 8453], [54, -33], [29, 3], [47, -29], [35, -74], [-3, -53], [-30, 11], [-94, 82], [-39, 5], [-33, -19], [-48, 25], [-44, -29], [-30, 2], [-27, 54], [-18, -26], [-18, -51], [-10, 69], [17, 12], [26, 42], [186, 9]], [[37560, 8441], [-42, -56], [-47, 3], [-6, 50], [10, 54], [22, 11], [41, -19], [22, -43]], [[36494, 8449], [-15, -1], [-4, 49], [26, -14], [-7, -34]], [[39871, 8539], [-23, 46], [18, 11], [5, -57]], [[39900, 8621], [-90, -10], [-17, 22], [107, -12]], [[40424, 8594], [-21, -4], [-52, 30], [38, 24], [43, 14], [12, -51], [-20, -13]], [[39688, 8602], [-28, -7], [-10, 24], [10, 41], [33, 4], [82, -19], [4, -24], [-59, -4], [-32, -15]], [[41253, 8622], [-54, -1], [-95, 49], [160, -23], [-11, -25]], [[37257, 8679], [23, -57], [3, -41], [22, -64], [45, -40], [-12, -44], [-23, -8], [-60, 30], [-21, 112], [-43, 11], [-21, -5], [-21, 33], [29, 55], [26, 20], [21, -9], [32, 7]], [[40126, 8687], [1, -37], [-65, -3], [-15, 18], [7, 37], [27, 16], [45, -31]], [[39502, 8729], [23, 10], [23, -10], [-12, -43], [-37, 7], [-32, -22], [-18, 26], [15, 48], [38, -16]], [[37751, 8777], [3, -26], [-35, -27], [-12, 9], [8, 49], [36, -5]], [[36379, 8636], [-16, -4], [-29, 22], [-37, 81], [15, 50], [30, -23], [44, -104], [-7, -22]], [[40524, 8742], [-9, -29], [-25, 17], [-13, 56], [45, 6], [2, -50]], [[41159, 8822], [62, -62], [-31, -21], [-42, 18], [-14, 55], [-22, -13], [-23, 44], [70, -21]], [[41824, 7322], [-21, 18], [-81, 115], [-28, 55], [-25, -6], [-104, -11], [-16, 19], [29, 85], [-43, 53], [23, 13], [78, -5], [8, 20], [-72, -11], [-42, 15], [-28, 30], [51, 28], [-38, 38], [-32, 46], [-20, 115], [-61, 74], [-27, 22], [-7, 30], [-43, -2], [-18, 28], [-36, 4], [-123, 60], [-62, 9], [-72, 34], [-20, 28], [2, 19], [-43, 6], [-58, 50], [-12, -5], [-19, 36], [-23, 10], [-8, -85], [-20, -27], [-47, -5], [-22, 80], [20, 28], [-8, 28], [-63, 67], [-44, 12], [17, 36], [45, -1], [23, -16], [40, 33], [48, 25], [46, -40], [46, 40], [4, 19], [-12, 52], [-61, -30], [-146, -8], [-53, 54], [-12, 57], [-19, 39], [-72, -13], [-33, 14], [32, 38], [13, 53], [115, 89], [29, 11], [43, -1], [73, -44], [69, -20], [35, -27], [27, -85], [-21, -80], [3, -64], [10, -43], [26, -61], [33, 20], [13, -66], [15, -46], [39, -20], [42, 2], [107, 172], [27, 29], [48, 9], [47, 21], [-4, 55], [73, 50], [14, 1], [244, -160], [33, 1], [66, -13], [28, -14], [-2, -24], [35, 7]], [[41822, 8491], [58, -25], [144, -88], [130, -43], [50, -48], [70, -39], [99, -77], [14, -2], [60, -87], [-4, -107], [37, -4], [61, -27], [65, -50], [41, 3], [33, -27], [34, -69], [-7, -43], [-63, -9], [-43, 2], [-4, -43], [42, -91], [31, -29], [24, -42], [45, -32], [22, -45], [41, -125], [31, -19], [50, 21], [23, -28], [-19, -38], [7, -23], [32, -19], [70, -7], [-2, -19], [-37, -19], [27, -37], [64, -45], [-9, -16], [36, -33], [-50, -21], [-27, 16], [11, 32], [-145, 30], [-29, 23], [-54, -9], [-81, 19], [-21, 24], [-38, 78], [-26, 16], [-17, 52], [-48, 25], [-10, 50], [-55, 104], [-44, 32], [-114, 38], [-16, 58], [-54, -8], [-30, -57], [-37, 22], [11, -62], [-22, -8], [-35, 14], [8, -48], [-86, -16], [30, -23], [36, -49], [5, -43], [-116, -58], [-38, 24], [-127, -7], [-32, 12]], [[37067, 8848], [-22, -9], [-12, 29], [30, 26], [13, -20], [-9, -26]], [[40102, 8833], [-19, -25], [-22, 1], [-9, 35], [0, 46], [19, 10], [31, -67]], [[40522, 8950], [31, -20], [-1, -41], [-84, 12], [-36, 39], [25, 8], [65, 2]], [[37108, 8922], [2, -22], [-38, 10], [-9, 18], [17, 26], [28, -32]], [[36808, 9159], [69, -53], [-16, -10], [-55, 28], [2, 35]], [[36868, 9152], [25, -36], [-12, -11], [-42, 37], [29, 10]], [[37088, 9144], [-6, -27], [-26, 15], [-1, 40], [22, 5], [11, -33]], [[36795, 9121], [-17, 14], [-9, 53], [10, 22], [26, -33], [-10, -56]], [[36205, 9071], [-27, -6], [-65, 129], [21, 32], [22, -14], [54, -87], [-5, -54]], [[36806, 9219], [-52, 1], [-14, 25], [62, -16], [4, -10]], [[39744, 9184], [-51, -80], [-22, -62], [-36, -15], [-79, -19], [-45, 6], [-46, 29], [-101, 1], [-77, 9], [-53, -19], [-38, 5], [-27, 14], [-38, -15], [-26, -44], [-18, -71], [7, -78], [6, -21], [78, -117], [51, -5], [13, 34], [33, 59], [23, 19], [10, -26], [31, -7], [26, 19], [59, 19], [16, 21], [50, 16], [35, -12], [10, -26], [-9, -40], [-15, -8], [-27, 31], [-26, -9], [-59, -98], [-23, -22], [-48, -18], [-11, -16], [-42, -11], [-11, -25], [47, -39], [86, -167], [-14, -62], [-11, -22], [52, -66], [11, -33], [28, 3], [-2, -48], [-43, -2], [-58, -20], [-13, -65], [-37, 8], [-30, 29], [9, 77], [-15, 45], [-26, 24], [-47, 60], [26, 106], [0, 41], [-42, 16], [-25, -14], [-49, -48], [26, -76], [1, -70], [-7, -189], [4, -131], [-97, -17], [-21, 13], [-15, 32], [5, 50], [16, 46], [14, 104], [-2, 39], [-13, 92], [-26, 25], [-48, -25], [-20, 77], [-1, 49], [12, 32], [33, 36], [24, 170], [3, 64], [61, 101], [-3, 56], [6, 97], [13, 45], [41, 70], [44, -19], [28, 47], [4, 41], [15, 14], [56, -17], [36, -35], [52, -1], [55, -8], [50, -35], [33, 23], [98, -19], [55, 31], [84, 119], [26, 2], [16, -29], [-25, -45]], [[36699, 9335], [14, -27], [-6, -34], [-35, -9], [-9, 52], [36, 18]], [[40096, 9103], [22, 10], [35, 93], [35, 30], [35, -2], [-5, -82], [-65, -54], [15, -24], [24, -10], [29, -55], [-77, 31], [-21, 3], [-11, -24], [5, -73], [11, -43], [27, -72], [-28, 9], [-40, 95], [-14, 158], [-23, 60], [17, 70], [4, 40], [39, 72], [27, 15], [-11, -77], [6, -36], [-4, -41], [-12, -27], [-34, -28], [14, -38]], [[40195, 9327], [-30, -5], [-10, 44], [18, 38], [28, 27], [15, -44], [-21, -60]], [[36010, 9403], [-10, -23], [-64, 49], [-15, 19], [12, 31], [77, -76]], [[37557, 9613], [-32, 42], [-4, 21], [31, 33], [22, -55], [-17, -41]], [[39986, 9722], [-24, -30], [-5, 44], [14, 33], [15, -47]], [[35984, 9900], [39, -10], [27, 7], [89, -6], [25, -9], [36, -46], [25, -68], [31, -20], [-14, -56], [43, -27], [165, -144], [29, -41], [1, -19], [28, -18], [47, -101], [29, -6], [5, 30], [26, 1], [31, -37], [17, -67], [20, -12], [27, 5], [52, -58], [8, -61], [24, -33], [83, -52], [12, -26], [25, 29], [51, -46], [7, -53], [-22, -6], [-19, -32], [18, -37], [-24, -18], [-5, -37], [49, -48], [58, -12], [25, 2], [12, -105], [20, -53], [36, -68], [83, -16], [51, -98], [5, -64], [-21, -58], [7, -67], [3, -114], [-14, -206], [-8, -19], [-49, 68], [-23, -16], [5, -28], [-54, 27], [-19, -19], [10, -37], [-23, 0], [-84, 143], [-77, 67], [-132, 137], [-38, 84], [-52, 51], [-30, 65], [-39, 57], [-34, 68], [-13, 81], [-44, 125], [-37, 76], [-66, 122], [-32, 28], [-28, 42], [-46, 176], [8, 35], [-9, 20], [-58, 51], [-55, 39], [-32, 46], [-13, 68], [-32, 34], [-56, 106], [-34, 12], [-37, 31], [-108, 141], [-38, 101], [2, 40], [26, 30], [58, -27], [24, -36], [17, -8]], [[35683, 10176], [-27, 39], [0, 25], [27, 5], [6, -42], [-6, -27]], [[35510, 10849], [-21, 0], [-2, 35], [28, -8], [-5, -27]], [[35533, 11090], [4, -44], [-20, -11], [-12, 46], [28, 9]], [[35549, 11273], [13, -20], [1, -59], [-34, -26], [0, 48], [13, 52], [3, 74], [12, 38], [17, -21], [-25, -86]], [[13502, 12212], [24, -47], [-42, -8], [-33, 14], [-41, -6], [-11, -26], [-88, 34], [-55, 46], [28, 44], [30, 13], [100, -19], [88, -45]], [[34048, 10070], [-97, -51], [-52, 21], [-20, 43], [-25, 118], [-6, 133], [-5, 36], [8, 28], [13, 139], [20, 50], [11, 63], [23, 21], [-43, 17], [4, 28], [29, -1], [13, -26], [56, -63], [40, -86], [48, -139], [39, -72], [12, -54], [3, -59], [-14, -71], [-10, -25], [-47, -50]], [[29871, 6816], [11, -58], [26, -47], [1, -22], [48, -75], [27, -139], [6, -125], [20, -86], [18, -40], [-3, -37], [-29, -89], [-28, 18], [-16, 76], [-24, -2], [-12, -19], [30, -157], [-19, -78], [-15, -9], [-22, -83], [9, -78], [-19, -101], [-89, -340], [-46, -208], [-57, -215], [-35, -201], [-37, -112], [-25, -99], [-42, -33], [-61, -12], [-34, -15], [-71, -54], [-52, -1], [-62, 49], [-39, 14], [-41, 40], [-48, 120], [-3, 99], [9, 68], [-48, 112], [-15, 84], [2, 49], [28, 107], [30, 29], [103, 231], [-7, 50], [5, 47], [-29, 89], [-29, 150], [-11, 111], [51, 117], [14, 116], [43, -2], [37, 20], [67, 12], [16, 43], [28, 3], [50, -29], [5, 48], [71, 77], [23, -16], [-14, -49], [39, 31], [-19, 54], [30, 56], [21, -50], [33, 79], [-6, 42], [11, 30], [35, 25], [-24, 59], [7, 33], [16, 4], [33, -43], [30, 47], [41, 49], [14, 80], [-11, 49], [43, 69], [11, 38]], [[35696, 12357], [-5, -18], [-37, 32], [-25, 56], [56, -30], [11, -40]], [[997, 6551], [18, -25], [0, -36], [-40, -5], [-27, 53], [49, 13]], [[1066, 6486], [35, -19], [-28, -23], [-23, 9], [16, 33]], [[15507, 11604], [17, -35], [-22, -19], [-27, 59], [32, -5]], [[44840, 5332], [53, -24], [71, -70], [90, -107], [62, -50], [83, -81], [12, -30], [-16, -24], [-58, 30], [-38, 33], [-11, 21], [-70, 39], [-36, 26], [-113, 142], [-19, 36], [-10, 59]], [[45348, 5114], [5, -32], [-33, 8], [-5, 32], [33, -8]], [[45246, 5244], [-2, -34], [23, -28], [-14, -20], [-41, 43], [6, 42], [28, -3]], [[45356, 563], [3, -38], [-26, -11], [-31, 15], [2, 60], [32, -2], [20, -24]], [[440, 1128], [28, -64], [-17, -9], [-22, 53], [11, 20]], [[45977, 1700], [-32, -26], [32, -31], [27, -83], [41, 26], [78, 24], [38, 2], [-35, -85], [30, -49], [-105, -157], [-30, -59], [-35, -22], [-34, -56], [19, -40], [37, -23], [-19, -26], [-37, 11], [-51, -8], [-87, -45], [-51, -46], [-29, -122], [-63, -145], [-31, -16], [-25, -41], [-65, -53], [-5, -14], [-66, -19], [-93, 23], [-20, 25], [-62, 18], [-128, 16], [-36, 36], [-1, 34], [45, 19], [-18, 28], [17, 42], [64, 82], [76, 45], [16, 44], [46, 59], [82, 29], [97, 66], [114, 92], [59, 61], [29, 60], [28, 103], [51, 25], [30, 61], [0, 68], [38, 40], [40, 28], [24, -1]], [[46019, 2709], [69, -35], [51, -45], [24, 2], [34, -94], [-34, 1], [57, -86], [-9, -20], [13, -67], [67, -54], [29, 9], [-6, 56], [44, -19], [19, -141], [27, -7], [117, -56], [11, -9], [48, 19], [62, 68], [38, -1], [23, -16], [-19, -133], [-39, -52], [-16, -69], [-62, -1], [-49, -23], [-20, -52], [18, -30], [-18, -75], [-54, -85], [-56, -107], [-62, -62], [-43, -21], [-45, 66], [-7, 25], [29, 49], [21, 88], [-8, 40], [-32, 38], [-126, 64], [-26, 46], [12, 23], [43, 28], [30, 3], [26, 40], [22, 113], [17, 9], [-10, 59], [-23, 85], [27, 39], [-51, 20], [-13, 38], [10, 13], [-8, 92], [-19, 1], [-30, -25], [-109, 172], [-3, 60], [-45, 72], [27, -6], [27, -47]], [[12819, 10275], [-18, -2], [-18, 30], [19, 21], [17, -49]], [[30683, 5216], [21, -6], [21, -40], [-3, -37], [-20, -7], [-42, 21], [-13, 30], [9, 32], [27, 7]], [[39295, 12248], [38, -17], [31, 20], [17, -37], [-17, -69], [14, -76], [21, -14], [11, -31], [-4, -44], [-31, -103], [-64, -43], [-20, -24], [-22, -97], [27, -126], [6, -48], [15, -52], [22, -24], [38, -16], [9, 13], [-4, 47], [15, 9], [60, 0], [25, -38], [1, -53], [24, -8], [27, 34], [63, -23], [-45, -13], [-6, -26], [60, -86], [23, -16], [-11, -83], [-27, 21], [-3, 38], [-65, 27], [-29, 79], [-50, 61], [-41, 22], [23, -72], [-16, -22], [-20, 31], [-76, 71], [-33, -21], [-24, -41], [-27, 1], [-19, 26], [-37, 4], [-8, 76], [47, 47], [-18, 48], [-38, 14], [8, -62], [-28, -5], [-14, 65], [-29, 28], [-16, 90], [-4, 69], [-20, 16], [4, 66], [48, -51], [35, 22], [-11, 35], [-3, 50], [15, 88], [-1, 74], [7, 90], [14, 73], [34, 37], [15, -15], [38, -1], [46, -35]], [[39240, 10038], [10, -26], [-44, 1], [-3, 20], [37, 5]], [[39370, 10114], [-27, -9], [-22, 37], [36, 23], [26, -17], [-13, -34]], [[39908, 10558], [-20, -73], [22, -32], [4, -81], [27, -53], [4, -55], [-19, -50], [-22, -17], [-12, -110], [-13, 40], [-14, 81], [-18, 59], [-25, -17], [-33, -72], [-1, -38], [26, -21], [15, -49], [-5, -50], [-33, -64], [-15, 1], [-14, 45], [-48, 11], [-67, 43], [-33, 44], [-11, 71], [14, 67], [20, 48], [-29, 41], [-56, 37], [-20, -7], [-17, -53], [-24, 36], [-37, -35], [-1, 39], [-37, -4], [-13, -24], [-36, -121], [-29, 10], [-4, 32], [30, 75], [-3, 36], [31, 49], [44, 15], [39, 24], [12, 47], [53, 23], [34, -9], [16, -78], [27, 6], [55, 69], [32, -15], [5, 77], [32, -3], [64, 20], [-2, 44], [-15, 70], [13, 25], [53, -66], [54, -88]], [[39640, 10677], [-52, 7], [-2, 46], [22, 12], [21, 34], [22, -5], [23, -48], [-16, -36], [-18, -10]], [[39499, 10585], [-31, 1], [-66, 104], [12, 56], [23, 1], [22, 29], [12, 120], [33, 31], [38, -15], [4, -13], [-42, -152], [-13, -61], [26, -55], [-18, -46]], [[39523, 10646], [2, 75], [60, 161], [26, 36], [0, -59], [-27, -68], [-27, -45], [-20, -75], [-14, -25]], [[39020, 10908], [10, -40], [18, -24], [-17, -25], [-34, -15], [-10, -20], [-42, -39], [-21, -8], [-6, -56], [-30, -57], [-45, -28], [-17, -45], [-61, -50], [-37, -40], [5, 47], [43, 66], [34, 39], [19, 2], [50, 78], [48, 60], [29, 60], [18, 4], [37, 61], [-1, 100], [16, 9], [-6, -79]], [[39738, 10954], [28, -136], [0, -25], [-26, -35], [-35, 25], [4, 105], [-24, 42], [-26, 0], [-15, 92], [36, -34], [53, -1], [5, -33]], [[39442, 10889], [-106, -52], [16, 117], [7, 99], [-9, 33], [110, -81], [34, -3], [-8, -44], [-40, -40], [-4, -29]], [[39074, 11165], [33, -36], [-14, -20], [-23, 34], [4, 22]], [[39590, 11147], [20, -39], [6, -51], [-37, 36], [-25, 39], [-42, 4], [-1, 53], [12, 4], [67, -46]], [[39759, 11208], [16, -19], [22, -64], [-2, -85], [13, -36], [-3, -55], [-41, -1], [-28, 46], [-7, 69], [-48, 56], [-30, 53], [0, 31], [41, -5], [38, 11], [29, -1]], [[39366, 11225], [-17, -76], [-11, 10], [10, 45], [18, 21]], [[39144, 11380], [38, -10], [30, 6], [29, -14], [43, -64], [-2, -92], [-22, -43], [-28, 4], [-29, 58], [-28, 87], [-38, 45], [7, 23]], [[39364, 11356], [-14, -34], [-22, 18], [2, 47], [34, -31]], [[39652, 11393], [-18, -10], [-23, 21], [13, 72], [8, 5], [27, -57], [-7, -31]], [[43484, 6875], [-29, -2], [-45, 43], [2, 12], [64, -35], [8, -18]], [[43093, 7218], [51, -51], [-19, -21], [-32, 72]], [[43116, 7230], [-11, -7], [-48, 8], [2, 55], [35, -13], [22, -43]], [[43045, 7276], [-31, -5], [10, 39], [21, -34]], [[43354, 7343], [33, -27], [-24, -18], [-22, 16], [13, 29]], [[43772, 7754], [-33, -27], [-25, 5], [-45, 52], [-6, 51], [-22, 20], [-30, 46], [2, 70], [41, -9], [15, -41], [32, -54], [26, -21], [36, -52], [9, -40]], [[43226, 8204], [30, -17], [13, 17], [34, -22], [1, -60], [-6, -29], [-23, -29], [-13, -42], [5, -39], [-25, -17], [-52, 2], [-5, -29], [-39, -49], [-47, -12], [-62, -42], [-84, -4], [-30, 34], [-58, 11], [-79, 46], [-12, 24], [14, 35], [134, -19], [54, 5], [22, 41], [9, -40], [24, -8], [59, 10], [35, 26], [10, 37], [37, 43], [29, -9], [13, 26], [-22, 112], [34, -2]], [[43372, 8095], [-29, 71], [0, 45], [-47, 96], [-24, 25], [-55, 37], [-93, 88], [76, -39], [66, -54], [19, -28], [70, -75], [40, -59], [-2, -69], [-21, -38]], [[43052, 8488], [-47, 5], [-14, 19], [28, 22], [33, -24], [0, -22]], [[42645, 8592], [-19, -30], [-70, 3], [-3, 34], [62, 5], [30, -12]], [[14874, 12185], [-48, -16], [-66, 11], [-62, -8], [-5, 78], [21, 24], [152, -12], [31, -15], [6, -26], [-29, -36]], [[4016, 5754], [-49, 23], [-9, 24], [21, 20], [41, -47], [-4, -20]], [[44266, 7295], [31, -27], [45, 4], [30, -26], [33, -53], [-48, -7], [-81, 15], [-31, 56], [0, 34], [21, 4]], [[44479, 7131], [84, -49], [29, -39], [5, -25], [-32, -1], [-37, 15], [-34, 37], [-15, 62]], [[44478, 7276], [19, -41], [-19, -5], [0, 46]], [[44036, 7429], [15, -13], [-10, -29], [-22, 18], [17, 24]], [[44392, 7467], [37, -60], [1, -37], [30, -53], [17, -73], [-39, 44], [-42, 67], [-20, 92], [16, 20]], [[43973, 7531], [15, -48], [19, -3], [14, -34], [-9, -27], [-32, 30], [-7, 30], [-31, -15], [-10, 13], [26, 48], [15, 6]], [[43917, 7553], [12, -47], [-23, 2], [-6, 32], [17, 13]], [[44095, 7611], [37, -14], [46, -54], [44, -20], [56, -64], [-33, -3], [-78, 56], [-45, 52], [-27, 47]], [[43838, 7775], [18, -10], [65, -62], [2, -17], [46, -52], [-45, 10], [-94, 106], [8, 25]], [[24321, 9032], [11, -30], [-30, -40], [-1, 55], [20, 15]], [[39201, 12928], [-23, -13], [-60, 102], [-24, 68], [9, 93], [10, 41], [97, 198], [19, 19]], [[39334, 13436], [2, -6], [-9, -62], [-36, -144], [-11, -68], [-16, -61], [-23, -53], [-16, -20], [-24, -94]], [[15511, 10899], [-7, -125], [-20, -12], [-95, -6], [43, 34], [12, 19], [-1, 38], [-11, 22], [21, 18], [58, 12]], [[28606, 7805], [-35, 25], [-9, 71], [17, 9], [9, -52], [11, -8], [7, -45]], [[15124, 10910], [-18, -5], [-38, 31], [50, 11], [6, -37]], [[45160, 6333], [22, -57], [35, -4], [15, -47], [6, -48], [-58, -19], [-15, 47], [-15, 94], [10, 34]], [[45511, 5497], [24, -37], [-19, -20], [-17, 33], [12, 24]], [[45484, 5621], [31, -58], [-9, -8], [-37, 22], [0, 33], [15, 11]], [[45391, 5817], [24, -28], [-13, -24], [-36, 16], [25, 36]], [[45364, 5989], [31, -36], [-25, -9], [-14, 20], [8, 25]], [[45364, 6069], [16, -30], [-25, -14], [-25, 28], [34, 16]], [[45245, 6110], [20, -38], [42, -43], [3, -30], [-46, 4], [-6, 55], [-28, 24], [15, 28]], [[30453, 11221], [52, 8], [46, -24], [-51, -34], [-56, -9], [-44, 42], [29, 31], [24, -14]], [[13014, 8421], [-19, -6], [5, 52], [24, 11], [4, -26], [-14, -31]], [[11551, 8987], [71, -163], [-14, -37], [-41, -17], [-28, 8], [-8, 26], [37, 33], [-25, 102], [-10, 15], [18, 33]], [[11695, 8826], [-21, -7], [-18, 14], [4, 29], [33, 7], [2, -43]], [[11545, 8875], [-29, -4], [-6, 31], [26, 8], [9, -35]], [[30948, 5281], [-29, 10], [11, 48], [28, 38], [25, -44], [-12, -38], [-23, -14]], [[3281, 12447], [-20, -22], [-78, -59], [-10, 4], [-35, 14], [-13, 93], [22, 73], [-7, 28], [3, 8], [43, -23], [45, -28], [39, -61], [11, -24], [0, -3]], [[3043, 12721], [53, -13], [32, -34], [-1, -8], [-23, -15], [-28, -6], [-17, 21], [-20, 43], [4, 12]], [[2973, 12734], [-16, 2], [8, 23], [69, -11], [-20, -20], [-41, 6]], [[2869, 12847], [25, -54], [17, -21], [-6, -2], [-55, 7], [-20, 45], [5, 4], [34, 21]], [[2693, 12894], [-11, -14], [-7, -4], [-29, 15], [-12, 11], [26, 36], [13, 0], [12, 1], [2, -1], [9, -9], [-3, -35]], [[12810, 13358], [-10, 16], [41, 29], [4, -31], [-35, -14]], [[46722, 5736], [-7, -21], [-28, -5], [-29, -24], [-31, -1], [-70, 25], [-9, 47], [54, 77], [64, 18], [35, -41], [21, -75]], [[46899, 6059], [-53, -70], [-2, -35], [-21, -7], [-24, 19], [-18, -33], [-35, -14], [-38, 24], [11, 32], [100, 43], [16, 21], [64, 20]], [[41824, 7322], [0, 284], [-2, 117], [-21, 50], [21, 52], [0, 322], [0, 344]], [[9014, 13436], [337, 0]], [[10745, 13436], [2519, 0]], [[13296, 13436], [8223, 0]], [[28002, 13436], [305, 0]], [[30796, 13436], [1350, 0]], [[38952, 13436], [277, 0]], [[39334, 13436], [7569, 0], [0, -13436], [-32305, 0]], [[13757, 0], [-17, 0]], [[13707, 0], [-13707, 0], [0, 13436], [8834, 0]], [[30046, 13436], [26, 0]], [[30174, 13436], [443, 0]]], transform: { scale: [0.007675415218642731, 0.005582018457874367], translate: [-180, -50] }, objects: { coastlines: { type: "GeometryCollection", geometries: [{ type: "MultiLineString", arcs: [[0], [1], [2], [3], [4], [5], [6], [7], [8], [9], [10], [11], [12], [13], [14], [15], [16], [17], [18], [19], [20], [21], [22], [23], [24], [25], [26], [27], [28], [29], [30], [31], [32], [33], [34], [35], [36], [37], [38], [39], [40], [41], [42], [43], [44], [45], [46], [47], [48], [49], [50], [51], [52], [53], [54], [55], [56], [57], [58], [59], [60], [61], [62], [63], [64], [65], [66], [67], [68], [69], [70], [71], [72], [73], [74], [75], [76], [77], [78], [79], [80], [81], [82], [83], [84], [85], [86], [87], [88], [89], [90], [91], [92], [93], [94], [95], [96], [97, 98], [99], [100], [101], [102], [103], [104], [105], [106], [107], [108], [109], [110], [111], [112], [113], [114], [115], [116], [117], [118], [119], [120], [121], [122], [123], [124], [125], [126], [127], [128], [129], [130], [131], [132], [133], [134], [135], [136], [137], [138], [139], [140], [141], [142], [143], [144], [145], [146], [147], [148], [149], [150], [151], [152], [153], [154], [155], [156], [157], [158], [159], [160], [161], [162], [163], [164], [165], [166], [167], [168], [169], [170], [171], [172], [173], [174], [175], [176], [177], [178], [179], [180], [181], [182], [183], [184], [185], [186], [187], [188], [189], [190], [191], [192], [193], [194], [195], [196], [197], [198], [199], [200], [201]] }] }, countries: { type: "GeometryCollection", geometries: [{ arcs: [[[7]], [[8]], [[9]], [[10]], [[11]], [[12]], [[13]], [[14]], [[15]], [[16]], [[17]]], type: "MultiPolygon", properties: { ct: [134.35, -25.59] }, id: "AUS" }, { arcs: [[51]], type: "Polygon", properties: { ct: [144.8, 13.45] }, id: "GUM" }, { arcs: [[[125]], [[126]]], type: "MultiPolygon", properties: { ct: [-172.43, -13.62] }, id: "WSM" }, { arcs: [[[128]], [[129]], [[130]]], type: "MultiPolygon", properties: { ct: [165.5, -21.34] }, id: "NCL" }, { arcs: [[[131]], [[132]], [[133]], [[134]]], type: "MultiPolygon", properties: { ct: [170.48, -43.98] }, id: "NZL" }, { arcs: [[[202, 98]], [[154]], [[155]], [[156]], [[157]], [[158]], [[159]], [[160]], [[161]], [[162]], [[163]]], type: "MultiPolygon", properties: { ct: [144.24, -6.6] }, id: "PNG" }, { arcs: [[165]], type: "Polygon", properties: { ct: [-149.39, -17.7] }, id: "PYF" }, { arcs: [[[166]], [[167]], [[168]], [[169]], [[170]], [[171]], [[172]], [[173]], [[174]]], type: "MultiPolygon", properties: { ct: [160.15, -9.62] }, id: "SLB" }, { arcs: [[[181]], [[182]], [[183]], [[184]], [[185]], [[186]], [[187]]], type: "MultiPolygon", properties: { ct: [166.87, -15.22] }, id: "VUT" }, { arcs: [[[200]], [[201]]], type: "MultiPolygon", properties: { ct: [177.95, -17.84] }, id: "FJI" }] }, lakes: { type: "GeometryCollection", geometries: [] }, land: { type: "GeometryCollection", geometries: [{ arcs: [[[7]], [[8]], [[9]], [[10]], [[11]], [[12]], [[13]], [[14]], [[15]], [[16]], [[17]], [[51]], [[125]], [[126]], [[128]], [[129]], [[130]], [[131]], [[132]], [[133]], [[134]], [[202, 98]], [[154]], [[155]], [[156]], [[157]], [[158]], [[159]], [[160]], [[161]], [[162]], [[163]], [[165]], [[166]], [[167]], [[168]], [[169]], [[170]], [[171]], [[172]], [[173]], [[174]], [[181]], [[182]], [[183]], [[184]], [[185]], [[186]], [[187]], [[200]], [[201]]], type: "MultiPolygon" }] }, ocean: { type: "GeometryCollection", geometries: [{ arcs: [[[-24, 203, -23, -25, 204, -20, 205, -5, 206, -4, 207, -1, 208, -177, -178, 209, -6, 210, -32, -33, 211], [-44], [-132], [-7], [-78], [-77], [-75], [-59], [-60], [-76], [-63], [-64], [-80], [-73], [-65], [-70], [-137], [-194], [-124], [-180], [-18], [-57], [-56], [-17], [-66], [-62], [-67], [-61], [-58], [-69], [-71], [-72], [-74], [-83], [-79], [-81], [-187], [-201], [-202], [-186], [-185], [-184], [-183], [-135], [-9], [-10], [-134], [-12], [-11], [-13], [-14], [-8], [-173], [-161], [-156], [-16], [-157], [-68], [-158], [-159], [-99, -98], [-130], [-129], [-15], [-182], [-155], [-188], [-131], [-96], [-90], [-97], [-163], [-164], [-52], [-169], [-168], [-167], [-171], [-170], [-172], [-174], [-160], [-175], [-162], [-31, -94], [-84], [-110], [-93], [-139], [-140], [-113], [-89], [-92], [-101], [-102], [-112], [-116], [-86], [-87], [-88], [-114], [-82], [-117], [-85], [-108], [-95], [-91], [-111], [-109], [-107], [-105], [-100], [-104], [-103], [-106], [-150], [-151], [-149], [-152], [-147], [-148], [-145], [-144], [-143], [-138], [-153], [-121], [-120], [-119], [-115], [-118], [-125], [-19], [-43], [-154], [-142], [-141], [-146], [-189], [-53], [-27], [-28], [-29], [-26], [-30], [-136], [-190], [-122], [-47], [-165], [-46], [-176], [-45], [-54], [-123], [-55], [-200], [-181], [-21], [-179], [-22], [-51], [-49], [-48], [-128], [-50], [-127], [-191], [-126], [-42], [-195], [-133], [-166], [-192], [-193], [-196], [-197], [-198], [-199], [-37], [-34], [-35], [-36], [-41], [-40], [-39], [-38]], [[212, -2]], [[213, -3]]], type: "MultiPolygon" }] }, rivers: { type: "GeometryCollection", geometries: [] }, subunits: { type: "GeometryCollection", geometries: [] } } }; + } + }); + // dist/topojson/south-america_110m.json var require_south_america_110m = __commonJS({ "dist/topojson/south-america_110m.json"(exports, module) { @@ -75,6 +89,13 @@ var Plotly = (() => { } }); + // dist/topojson/antarctica_50m.json + var require_antarctica_50m = __commonJS({ + "dist/topojson/antarctica_50m.json"(exports, module) { + module.exports = { type: "Topology", objects: { coastlines: { type: "GeometryCollection", geometries: [{ type: "MultiLineString", arcs: [[0, 1, 2], [3], [4], [5], [6], [7], [8], [9], [10], [11], [12], [13], [14], [15], [16], [17], [18], [19], [20], [21], [22], [23], [24], [25], [26], [27], [28], [29], [30], [31], [32], [33], [34]] }] }, countries: { type: "GeometryCollection", geometries: [{ type: "MultiPolygon", arcs: [[[35, 1, 36]], [[3]], [[4]], [[5]], [[6]], [[7]], [[8]], [[9]], [[10]], [[11]], [[12]], [[13]], [[14]], [[15]], [[16]], [[17]], [[18]], [[19]], [[20]], [[21]], [[22]], [[23]], [[24]], [[25]], [[26]], [[27]], [[28]], [[29]], [[30]], [[31]], [[32]], [[33]], [[34]]], id: "ATA", properties: { ct: [21.35, -80.47] } }] }, ocean: { type: "GeometryCollection", geometries: [{ type: "Polygon", arcs: [[-6], [-25], [-27], [-28], [-21], [-20], [-22], [-23], [-15], [-26], [-29], [-30], [-31], [-32], [-33], [-34], [-35], [-4], [-12], [-7], [-9], [-8], [-10], [-11], [-5], [-13], [-14], [-19], [-17], [-18], [-16], [-24], [-37, -2, -1, 37]] }] }, lakes: { type: "GeometryCollection", geometries: [] }, land: { type: "GeometryCollection", geometries: [{ type: "MultiPolygon", arcs: [[[35, 1, 36]], [[3]], [[4]], [[5]], [[6]], [[7]], [[8]], [[9]], [[10]], [[11]], [[12]], [[13]], [[14]], [[15]], [[16]], [[17]], [[18]], [[19]], [[20]], [[21]], [[22]], [[23]], [[24]], [[25]], [[26]], [[27]], [[28]], [[29]], [[30]], [[31]], [[32]], [[33]], [[34]]] }] }, rivers: { type: "GeometryCollection", geometries: [] }, subunits: { type: "GeometryCollection", geometries: [] } }, arcs: [[[0, 48754], [4734, 3303]], [[4734, 52057], [-2215, 3814], [73, 291], [1670, -909], [3852, -2096], [5472, -5925], [3436, -1287], [2391, -896], [11132, -7371], [1441, -954], [623, -1271], [627, -1281], [1071, -898], [849, -711], [1308, -4896], [3429, -4140], [1865, -3568], [3353, -118], [57, -146], [87, -221], [-468, -737], [-521, -821], [567, -658], [468, -544], [1692, 719], [394, 168], [384, -1349], [817, -2868], [215, -5184], [4, -115], [1716, -2460], [244, 605], [1246, 3087], [2166, -1324], [-148, -909], [-264, -1626], [-553, -904], [-509, -831], [5388, -1041], [2386, -461], [-453, 1283], [-53, 152], [-557, 3350], [290, 189], [314, 206], [1696, -2669], [394, -621], [783, -202], [3795, -978], [3440, 572], [47, -28], [2758, -1662], [298, -1498], [2002, -105], [4e3, -210], [181, 1380], [124, 946], [1181, 1558], [92, 122], [208, -97], [1574, -740], [2246, 6109], [1468, 6825], [1708, 1937], [112, 128], [362, -49], [15174, -2072], [3598, -2523], [1914, -1341], [2524, 136], [1223, 66], [2462, 1523], [1263, 3517], [1558, 4338], [-1463, 1547], [-359, 378], [-7481, -1684], [-521, 126], [-2652, 644], [-11493, 6738], [-3408, 4022], [-7570, 8933], [-3055, 5225], [-981, 2707], [-1787, 4929], [-2373, 11331], [-367, 2781], [-239, 1814], [-57, 1423], [789, 3740], [243, 2421], [-30, 5710], [-28, 5325], [-334, 5947], [-212, 2036], [-241, 2312], [-2077, 14246], [-738, 5055], [-74, 5223], [-2, 146], [160, 7308], [20, 473], [164, 3804], [-244, 5454], [-1941, 11931], [-430, 6122], [-62, 879], [-9, 2306], [28, 385], [227, 3049], [1138, 7792], [1462, 5260], [1111, 4002], [588, 1120], [6097, 7506], [1273, 1568], [2303, 990], [11050, 4751], [801, 1165], [549, 800], [565, 2279], [113, 2310], [-474, 2276], [-1816, 3270], [-1302, 2344], [-3821, 9473], [-5128, 3144], [-1071, -1018], [-1370, -1301], [-1526, 748], [-1857, 9384], [-317, 3488], [-110, 2802], [-109, 611], [-86, 479], [-3247, 4127], [-241, 1265], [-525, 2761], [-1368, 10915], [-1890, 3568], [-1568, 2959], [-1825, 7214], [-4032, 10547], [-676, 2692], [-27, 253], [-416, 3906], [-51, 1959], [31, 848], [55, 1553], [659, 3404], [1335, 2573], [346, 6251], [306, 5534], [-3050, 3549], [-20, 24], [-129, -394], [-1151, -3522], [223, 5308], [182, 4331], [892, 11036], [-74, 9053], [-6, 753], [-255, 2504], [-7, 721], [-7, 738], [22, 7279], [304, 1518], [534, -291], [445, -243], [135, -1687], [125, -1566], [544, -3179], [1491, -4911], [356, 1330], [604, 2258], [143, 3108], [-138, 1685], [208, 2231], [1163, 1986], [2240, -2161], [3187, -3074], [1546, -2622], [300, -1204], [266, -1069], [213, -2116], [-1839, -2363], [358, -1041], [936, -403], [2332, -1004], [523, 4212], [546, 1459], [128, 341], [662, -769], [665, -772], [4335, -15736], [901, -1576], [207, 57], [502, 138], [1067, 3377], [-408, 862], [-1250, 2640], [945, 1802], [908, -2118], [566, -1322], [344, 1272], [100, 370], [-6, 1088], [-7, 1315], [115, 766], [238, 1580], [1213, 1379], [452, 512], [1028, 2617], [1090, 6138], [568, 1387], [307, -1029], [206, -1437], [721, -5030], [112, -229], [173, -350], [835, 1372], [528, 3980], [-1163, 9739], [-298, 2498], [742, 660], [1730, -2844], [-355, 5109], [-1678, 3283], [615, 624], [1326, 1347], [3, 950], [2, 672], [-93, 792], [-8, 76], [-1306, 3870], [-2459, 7286], [-2903, 2049], [-63, -181], [-1110, -3185], [-817, 584], [-20, 14], [-12, 18], [-2348, 3391], [-64, 3500], [226, 1364], [21, 130], [914, 320], [307, 107], [197, 315], [1290, 2059], [34, 237], [19, 132], [-520, 1401], [-79, 213], [531, 3438], [523, 696], [2520, -5396], [425, -910], [1540, -4562], [2379, -4902], [506, 171], [305, 952], [234, 733], [-3, 3045], [-683, 1941], [-904, 2570], [-416, 2348], [-498, 2817], [-180, 2749], [141, 1026], [488, 3540], [189, 680], [330, 1182], [1506, -22], [2762, 2792], [379, 987], [866, 6795], [1176, 1944], [737, 1216], [204, -232], [394, -446], [771, 2400], [661, 2057], [834, -2205], [745, -1969], [886, -322], [512, -187], [1e3, 1296], [1515, 1964], [697, 4350], [602, 6112], [551, 1548], [1110, 3113], [3208, 880], [1026, 2421], [1391, -884], [351, -222], [180, 814], [1551, 7e3], [-461, 3108], [-238, 1609], [-164, 4936], [-9, 280], [1178, 2031], [261, 79], [813, 247], [2050, 7496], [2630, -2873], [478, -3153], [361, -2376], [318, -6169], [358, -818], [3013, 3290], [2044, 579], [6914, -4415], [3862, 4612], [4129, 4933], [516, -647], [406, -508], [683, -3349], [512, -872], [406, 218], [658, 356], [1788, 3052], [2213, 292], [2924, 387], [12297, 6217], [2909, 10486], [1299, -8879], [549, -1261], [92, -212], [1435, -937], [1435, 1213], [1102, 932], [1003, -598], [1569, 1951], [54, 2569], [-49, 2087], [-653, 7772], [85, 3482], [638, 4835], [551, 2391], [539, 1054], [877, 1715], [821, -1738], [93, -784], [54, -459], [-29, -555], [-41, -779], [-449, -1573], [-272, -4453], [199, 700], [697, 2453], [196, 36], [550, 102], [101, -320], [103, -327], [309, -3551], [-161, -2362], [-835, -3672], [-227, -3123], [-153, -2094], [317, -1510], [626, 181], [632, 183], [262, -2238], [357, -3056], [166, -5816], [-14, -5395], [-2, -701], [998, -681], [1126, 765], [1169, 794], [271, 2391], [102, 905], [-408, 7821], [-59, 1141], [-53, 6464], [-35, 4344], [168, 1551], [498, 368], [197, 146], [2536, -2007], [2229, -16922], [991, 1978], [290, -1431], [312, -1544], [-384, -2992], [417, -909], [269, -586], [1795, -71], [107, 508], [42, 200], [-35, 1084], [-132, 4116], [419, 414], [1300, 1282], [3043, -8308], [81, -956], [-223, -7992], [-101, -3610], [-524, -6968], [325, -1245], [847, -101], [543, -65], [1092, 1951], [1246, 2227], [331, 1528], [21, 562], [15, 417], [-189, 4069], [77, 3267], [7, 274], [62, 1081], [340, 5949], [269, 2864], [297, 1121], [1488, -981], [2091, -1378], [522, -1043], [564, -1126], [-52, -257], [-45, -226], [3436, -9784], [186, -1966], [76, -2544], [-18, -3113], [-2, -271], [490, -993], [298, 282], [1378, 1304], [854, 1605], [1378, 2588], [-321, 3848], [-274, 3283], [-2447, 13743], [-612, 5458], [80, 1046], [61, 805], [988, 3725], [948, 3575], [559, -36], [466, -30], [-86, 8067], [-843, 7108], [-102, 854], [-91, 355], [-209, 810], [-987, 1070], [-1636, -305], [-30, 266], [-261, 2338], [-417, 7607], [-15, 1729], [761, 853], [515, 578], [456, -103], [772, -174], [1092, -1671], [874, -1338], [805, 135], [108, 418], [922, 3597], [71, 7560], [-2730, 9264], [-582, -902], [-489, -3939], [-214, -1723], [-3406, -4895], [-214, 662], [-201, 625], [-1123, 7645], [-809, 9214], [22, 820], [69, 2546], [108, 845], [56, 447], [759, 2005], [1181, -644], [1380, -752], [191, -857], [132, -590], [124, -2831], [-182, -1800], [218, -2152], [70, -694], [698, -1600], [1503, 1940], [1434, 1851], [476, -1300], [289, -788], [903, -4188], [380, -1765], [3171, 8312], [2397, 3010], [71, -305], [578, -2464], [588, -4948], [260, -2181], [938, -2360], [1125, -2833], [632, -963], [1050, -1600], [321, 179], [350, 195], [304, 3571], [803, 1556], [656, -530], [1077, -871], [1102, 3441], [17, 463], [94, 2578], [-270, 6464], [136, 1133], [1099, -4903], [115, -512], [120, -2051], [914, -4779], [3324, 1254], [1376, -1823], [2906, -3850], [425, 315], [399, 1963], [2206, 3021], [945, 4225], [125, 912], [260, 7425], [-5, 1310], [-5, 1470], [-140, 3882], [-45, 1248], [-253, 842], [-346, 1150], [787, 975], [481, 596], [893, -1170], [1146, -1504], [364, -1223], [176, -589], [266, -2864], [-21, -1539], [-3, -202], [-166, -1625], [-1190, -7197], [42, -1542], [766, -1373], [424, -758], [822, 1038], [633, -1245], [367, -723], [511, -2655], [870, -4524], [708, -1143], [315, 961], [1042, 3179], [1479, 6628], [169, -2532], [813, -12179], [631, -1451], [1314, -3023], [1005, 28], [2064, 57], [713, -2173], [60, -183], [384, -2067], [687, -3691], [1002, -3557], [1242, -4407], [731, -331], [1350, 2020], [903, 2746], [387, 1178], [202, 4872], [-744, 6914], [-30, 6981], [217, 2032], [996, 75], [762, -4398], [212, -17], [635, -50], [31, 2857], [-287, 3859], [-328, 2685], [-135, 1108], [2, 2755], [292, 2749], [830, -1622], [1578, -3086], [854, -5104], [2135, -16007], [2464, 3931], [525, 36], [1224, 83], [463, -2601], [69, -382], [-63, -1324], [-49, -1017], [-346, -2919], [-624, -3173], [279, -1772], [146, -929], [1339, 751], [7, 5], [3138, 7731], [855, -1091], [914, -1168], [1183, 1005], [292, 875], [1640, 4907], [3986, 6794], [2557, 4358], [1663, -328], [3391, 5235], [4354, 12581], [1164, 12235], [1076, 11318], [-129, 18764], [-532, 6750], [-749, 4129], [-464, 4932], [-23, 731], [-139, 4432], [498, 7873], [84, 4747], [-58, 2515], [-77, 3373], [-1269, 24862], [-414, 4235], [-960, 4942], [-26, 1307], [-107, 5399], [38, 1165], [48, 1509], [120, 1391], [108, 1250], [-55, 4711], [-114, 3308], [-621, 5180], [-115, 959], [317, 5615], [366, 722], [294, 579], [500, 888], [154, 275], [558, -1655], [1579, 522], [841, 6910], [634, 5209], [-53, 2229], [-279, 836], [-602, 1810], [-164, 5869], [61, 9029], [29, 4360], [273, 5929], [590, 5285], [31, 280], [-437, 999], [-801, 8993], [466, 1172], [683, 1718], [32, 1015], [139, 4403], [-357, 311], [-121, 105], [-10, 3976], [188, 1678], [194, 1733], [486, 765], [212, 3347], [-799, 232], [-760, 221], [-701, -1597], [-531, -1212], [-109, 4358], [322, 4798], [-145, 6379], [137, 2390], [115, 1995], [123, 756], [980, 6013], [387, -87], [140, -2031], [-25, -1362], [-50, -2685], [322, -4115], [113, -1437], [609, -3506], [223, 1038], [-350, 24758], [38, 1210], [4, 121], [447, 1831], [244, 113], [333, 155], [299, -1559], [319, -1660], [267, -353], [331, -438], [92, 8159], [-25, 7168], [446, 9448], [11, 234], [551, 492], [386, 345], [353, 4283], [353, 2188], [215, -211], [293, -289], [945, 6115], [1455, 9409], [411, 4382], [-768, 2414], [-20, 63], [-58, 6236], [207, 5319], [574, 4446], [676, -2126], [886, -2786], [245, 2802], [851, 9711], [543, 4217], [151, 2950], [187, 3656], [333, -259], [290, -4193], [-86, -2272], [210, -372], [182, -323], [250, 1943], [486, 3770], [722, 1685], [3079, 24998], [3295, 8283], [1135, 5541], [96, 3677], [358, 2436], [2040, 5212], [504, 3502], [1647, 4101], [300, -270], [440, -1527], [766, -11889], [-1, -2133], [-195, -2393], [-237, 45], [-575, 109], [-107, 1933], [-11, 202], [95, 1490], [44, 673], [-70, 2994], [-651, 143], [-537, -4903], [-213, -1949], [-334, -716], [-551, -1178], [-278, 587], [-306, -1736], [-215, -1222], [-353, -3906], [-740, -8218], [-452, -8184], [-94, -3562], [-57, -2139], [16, -1488], [7, -638], [219, -481], [-51, -2208], [-58, -2576], [-280, 166], [-165, 99], [-303, 1071], [-633, 2238], [-294, 3710], [-540, 85], [-188, 29], [-897, -3036], [-635, -4083], [-454, -2920], [-2024, -16757], [-1229, -5565], [-1397, -6328], [-148, -3136], [3, -214], [23, -1913], [33, -220], [616, -4110], [91, -1283], [73, -1016], [-1016, -6659], [-445, -2920], [-47, -1506], [-51, -1631], [2, -3479], [1387, -10173], [1453, 8609], [2119, 1157], [30, -1606], [-85, -2456], [-6, -173], [-484, -4851], [-481, -4818], [-635, -367], [-252, 4111], [-129, 2090], [-224, 1071], [-417, -3872], [-361, -3349], [-452, -655], [-39, 855], [-70, 1518], [-238, 1399], [-284, 383], [-185, 249], [-691, 344], [-570, -844], [-614, -910], [-210, -1887], [-9, -81], [593, -3081], [688, -12746], [-811, 77], [-191, 3880], [-77, 1570], [-449, 3793], [-494, 4177], [-50, 260], [-1062, 5502], [-133, -594], [-164, -728], [-262, -2452], [6, -2213], [-223, -5046], [-201, -2870], [-144, -2044], [166, -8614], [323, -46], [275, -4014], [-7, -187], [-22, -581], [-394, -1667], [-71, -297], [-1418, 1510], [-1301, -2644], [-82, -1041], [-180, -2280], [449, -1462], [87, -281], [-105, -1892], [-107, -1928], [-753, -7370], [-397, -1837], [-236, 720], [-181, -3071], [-295, -4984], [-334, -8974], [-26, -4113], [-52, -8273], [-61, -1199], [-92, -1838], [1212, -1499], [557, 3194], [67, -4389], [16, -994], [-938, -6835], [354, -4902], [974, -6958], [1981, -5119], [438, 1105], [-307, 2458], [-73, 4291], [1073, 6028], [1019, 1253], [1219, -809], [39, -288], [91, -673], [-174, -1954], [-256, -776], [-311, 974], [-176, 552], [-656, -1172], [-310, -1377], [-291, -1293], [-446, -3766], [1302, -3639], [532, -2756], [-1196, -5122], [90, -2031], [105, -2412], [317, -3659], [298, -2059], [97, -669], [1788, -7717], [379, -3042], [320, -2562], [99, -4598], [-11, -1727], [-9, -1613], [-99, -1973], [-213, -406], [-181, -346], [55, -3525], [589, -5691], [920, -2359], [104, -1112], [169, -1805], [91, -3666], [-64, -602], [-57, -540], [-619, -3320], [-405, -813], [-302, -608], [-182, -1391], [177, -3658], [67, -372], [502, -2784], [1912, 2152], [143, -498], [124, -437], [48, -3902], [-269, -225], [-1266, -6255], [-295, -2209], [-54, -881], [-115, -1866], [17, -1174], [1, -80], [143, -474], [166, -550], [258, 58], [259, 58], [182, 1377], [1250, -936], [532, -9813], [199, -3677], [-64, -2598], [-81, -3258], [-809, -2668], [-201, -660], [456, -4332], [391, -130], [113, -38], [184, -1059], [644, -3710], [136, -3066], [-90, -860], [-103, -987], [-333, -830], [-600, -1494], [-1233, -1441], [-739, -864], [-191, -1653], [7, -1746], [3, -970], [305, -2262], [14, -105], [869, -1655], [1959, 3371], [19, -604], [125, -4007], [-219, -7355], [283, -2207], [265, -2072], [-308, -1341], [-502, -2185], [-1402, 2793], [-41, -221], [-58, -317], [-117, -3999], [393, -6938], [1207, -751], [692, 2842], [383, -1317], [192, -4817], [-16, -2696], [-446, -4049], [-125, -408], [-185, -605], [-208, -1833], [-80, -705], [52, -506], [596, 370], [1569, 5393], [429, 1472], [125, -382], [111, -337], [138, -2767], [-247, -12168], [-56, -629], [-45, -496], [-500, -1012], [-498, -1007], [-99, 495], [-104, 521], [-148, 2327], [-546, 277], [-388, -10765], [-243, -10653], [-233, -10169], [2, -5241], [-1648, -6638], [-535, -2158], [110, -367], [449, -1495], [857, 1513], [1058, 1870], [337, -1030], [-48, -764], [-164, -2635], [-657, -4500], [-269, -1841], [-137, -155], [-593, -671], [-728, 596], [-229, 189], [-696, -2340], [-461, -3404], [319, -2682], [156, -2551], [36, -592], [-96, -1654], [-53, -902], [-238, -1690], [-287, -2044], [-1677, -7084], [-3787, -4290], [-746, -2065], [-139, -1320], [-57, -541], [358, -1311], [2838, 992], [482, -859], [-325, -3187], [-2180, -8806], [-8716, -20305], [-2220, -5173], [-4369, -5788], [-902, -2897], [-44, -368], [-40, -334], [279, -1832], [5222, -13499], [810, -3073], [16, -1249], [229, -18076], [-12, -7683], [-197, -3490], [-47, -847], [-1245, -7953], [-1055, -6744], [-1636, -4656], [-1462, -1076], [-91, -67], [-5837, 2713], [-638, 906], [-2340, 3325], [-1003, 2051], [-2659, 5441], [-1588, 7798], [-1939, 13514], [-1113, 7758], [66, 18509], [-9897, -9398], [-4455, -4230], [-43, -2867], [-27, -1854], [282, -2685], [-9, -438], [-14, -706], [-987, -10099], [-201, -1250], [-215, -1330], [-235, 712], [-160, 485], [-615, 6170], [-744, 7466], [-55, 153], [-273, 751], [-3073, -2281], [1455, -5958], [390, -5317], [581, -7921], [1009, -18752], [-131, -6691], [-111, -5601], [1930, -8109], [824, -5156], [35, -1976], [-426, -7366], [-268, -4641], [-157, -10544], [92, -1305], [479, -6811], [1172, -7868], [763, -5121], [255, -298], [109, -128], [882, 3923], [38, 1940], [29, 1479], [-984, 9722], [-61, 930], [54, 749], [451, 1123], [459, 1145], [676, -1180], [1048, -1830], [1049, -3034], [923, -2671], [-211, -478], [-683, -1546], [39, -1727], [2005, -7151], [1393, -4964], [1242, -6535], [-264, -687], [-414, -1080], [-651, -259], [-503, -201], [-2842, 2361], [-1886, 1566], [-977, -760], [47, -605], [5423, -7927], [381, -160], [2851, -1198], [28, -4435], [1177, -4347], [692, -2555], [2077, -5721], [715, -1069], [2006, -3e3], [6040, -3344], [7500, 2445], [7607, 4600], [8934, 8859], [2750, 2726], [5094, 3446], [2272, 3259], [337, 1110], [606, 1991], [586, 11090], [67, 1267], [544, 4405], [371, 1700], [240, 1095], [8323, 8036], [1589, 2391], [1677, 2523], [1845, 4327], [522, 2448], [496, 3918], [336, 2658], [1577, 14890], [4075, 11250], [1300, 3590], [395, 1397], [1954, 6905], [2747, 13487], [1416, 3687], [1445, -555], [2300, -4145], [3102, -5590], [950, -3512], [499, -1844], [518, -4038], [477, -3717], [1481, -7641], [230, -2541], [53, -587], [-138, -746], [-338, -1827], [-848, -1797], [-7760, -6598], [-967, -3841], [165, -2086], [1658, -587], [6863, 6904], [1323, -646], [1122, -547], [351, -951], [404, -1096], [306, -5392], [174, -3064], [-13, -551], [-8, -329], [-184, -824], [-499, -2236], [-5663, -4340], [-339, -906], [-44, -509], [-89, -1023], [469, -5760], [975, -1996], [2667, 2795], [3106, 3255], [1273, 1], [965, 1], [509, -1191], [90, -2036], [58, -1322], [9, -2071], [-135, -2258], [-5, -83], [-130, -14966], [-75, -308], [-467, -1914], [-860, -600], [-207, -144], [-1780, 2126], [-1118, 2707], [-871, -729], [-160, -1458], [-77, -708], [175, -2590], [1349, -2736], [345, -1730], [160, -1352], [2, -674], [2, -492], [-1935, -10135], [-106, -558], [-2451, -4769], [-4518, -4627], [-3801, -3893], [-4444, -676], [-2722, 1488], [-1500, 3062], [-128, 263], [-2021, 7052], [-1144, 5031], [-529, 3707], [-758, 3208], [-1005, 4251], [-696, 2203], [-444, 1403], [-1051, 502], [-3457, -4977], [-6663, -15077], [-772, -2335], [-98, -295], [-4640, -19278], [-982, -2567], [-171, -211], [-1498, -1847], [-1707, -1047], [-3326, -2041], [-14143, -3091], [-440, -197], [-5984, -2675], [-1902, -3651], [-1256, -2410], [-599, -3813], [-304, -5475], [90, -2675], [707, -4453], [649, -4090], [1359, -4424], [3498, -7608], [5413, -8461], [5661, -4002], [2197, -299], [5612, 529], [3045, 1281], [4732, 1990], [2094, -4534], [937, -3899], [246, -1022], [-12, -848], [-7, -478], [-477, -4013], [-160, -1342], [-288, -5277], [187, -2213], [595, -1475], [1756, 255], [213, 406], [891, 1701], [2375, 10029], [2885, 12187], [291, 807], [916, 2550], [4314, 8585], [2124, 2840], [1009, 1350], [1399, 3291], [2433, 5726], [1477, 2249], [1714, 870], [9682, 2224], [2545, -71], [1709, -48], [7057, 7686], [2569, 4790], [3255, 6069], [8095, 18491], [3343, 10293], [1172, 5080], [1207, 5227], [3571, 6080], [6006, 3242], [222, 335], [999, 1510], [294, -1763], [74, -443], [-605, -9868], [-4, -51], [25, -1012], [1579, -1974], [69, -86], [2216, 895], [646, 7667], [503, 1939], [288, 2575], [46, 415], [50, 1244], [97, 2402], [-134, 3326], [-1752, 16411], [-2, 80], [-26, 1458], [1028, 3108], [1416, 4277], [21, 936], [-52, 597], [-168, 1902], [-729, 2163], [-1742, 1404], [-4913, 762], [-3434, 532], [-1525, 4276], [-4287, 5529], [-1097, 4348], [-538, 5480], [29, 1988], [95, 4285], [153, 6851], [161, 1868], [846, 4292], [123, 629], [1077, 10230], [1496, 7516], [502, 864], [978, 1682], [2070, 8194], [2428, 7228], [1945, 3507], [1468, 2644], [612, 3230], [68, 360], [339, 1177], [7398, 25756], [728, 3701], [-530, 5554], [709, 1266], [2554, 4562], [502, 1359], [420, 1135], [141, 2370], [1259, -733], [277, -161], [858, 1660], [3985, 11364], [2068, 10667], [1584, 11847], [643, 7498], [40, 457], [208, 5600], [529, 7384], [613, 4322], [644, 2551], [2590, 5549], [4231, 17679], [1726, 7880], [2234, 10203], [5269, 15689], [4449, 13249], [1010, 1615], [1383, -2594], [828, 672], [555, 450], [1513, 4439], [3114, 9136], [922, 4734], [200, 1026], [318, 2568], [405, 3269], [884, 12749], [54, 4116], [-172, 3187], [-133, 692], [-1276, 1289], [-600, 3009], [-389, 1949], [-491, 4213], [-161, 3672], [-224, 5089], [575, 1804], [764, 2394], [187, 10], [250, 13], [94, -596], [99, -636], [118, -4125], [113, -3915], [678, -4500], [473, -3141], [691, 589], [235, 6157], [9, 127], [318, 4497], [1133, 8183], [441, 3184], [-17, 2175], [-861, 1844], [-184, 2038], [329, 1033], [409, 1286], [734, 374], [828, 421], [378, -1146], [6, -1416], [641, -5872], [106, -478], [358, -1614], [680, -6169], [255, -4775], [2, -28], [62, -11732], [81, -1660], [106, -545], [663, -3409], [293, 688], [1764, 4150], [89, 2430], [604, 16501], [-98, 7708], [-60, 4710], [-394, 2668], [-26, 701], [-37, 1021], [815, 4288], [1186, 2886], [1279, 675], [1158, 611], [344, -397], [168, -194], [51, -341], [176, -1173], [243, -8054], [-43, -1673], [-195, -7665], [-637, -5276], [-455, -3770], [560, -2832], [148, -751], [546, -241], [1291, 2054], [2062, 3282], [1075, 141], [969, 127], [101, -642], [194, -1232], [88, -18], [247, -51], [937, 1759], [598, 1123], [39, 851], [-114, 890], [-673, 1639], [-605, 1472], [-61, 20869], [59, 4764], [187, 3106], [227, 3788], [311, 2603], [416, 696], [349, 582], [633, -1056], [206, -2690], [-16, -1691], [-26, -227], [-321, -2786], [-971, -4337], [-24, -2457], [1001, -3605], [1135, -1785], [1127, -1772], [-51, -1415], [-1256, -2973], [-118, -1040], [-134, -1172], [11, -5341], [58, -1735], [51, -1509], [403, -5643], [329, -4611], [1470, -314], [467, 2226], [723, 3452], [771, 205], [58, -254], [227, -993], [225, -3034], [-369, -8126], [838, -2167], [585, -1513], [143, 247], [88, 151], [258, 2313], [798, 7138], [1032, 5605], [420, 2282], [3232, 8672], [774, 2978], [929, 3571], [544, 3990], [154, 1126], [794, 9009], [155, 904], [322, 1879], [2481, 8017], [1469, 2432], [1034, -551], [976, -5450], [278, -1554], [1139, -1353], [1026, 1173], [978, 1119], [923, 3228], [819, 2866], [2261, 3502], [928, 255], [1183, 325], [1354, -686], [1149, -582], [1792, -4467], [2517, -10921], [750, -982], [1170, -1531], [1207, 10175], [432, 1688], [342, 1340], [1503, -214], [3142, -446], [2917, 1617], [1403, 2133], [486, 738], [1020, 186], [1125, 206], [4678, -1149], [4735, -7205], [3398, 1751], [967, -1174], [4384, -5326], [1200, 648], [1948, 1053], [2437, 5399], [1324, 2934], [943, 287], [427, 130], [1741, 2413], [2561, 5326], [3884, 8074], [3009, 2958], [2326, 2287], [1096, 4179], [901, 1901], [917, 71], [710, 55], [582, -971], [1228, -2049], [541, 829], [320, 490], [571, 2130], [34, 743], [78, 1662], [-290, 17697], [-434, 3692], [-207, 1763], [2, 1444], [5, 2983], [200, 6293], [778, 4796], [87, 269], [416, 1282], [765, 392], [116, 59], [61, -19], [362, -115], [384, -1789], [273, -1274], [566, -9673], [1323, -4521], [748, -4916], [462, -3040], [148, -2694], [662, -4694], [1163, -4768], [593, -1113], [622, -1169], [1393, -10412], [540, -451], [607, 3422], [344, 1939], [220, 8], [292, -1389], [505, -2399], [474, -3439], [817, -5927], [1154, 2058], [992, 8135], [334, 2743], [208, 141], [626, 424], [61, 673], [57, 18964], [-92, 7929], [632, 5578], [2118, 6661], [345, 1086], [459, 5086], [2858, 8601], [776, 3803], [702, 3439], [141, 1076], [261, 2005], [306, 1078], [250, 882], [2518, 1160], [2057, 4877], [427, 2406], [978, 5515], [3183, 3772], [128, 4666], [55, 1996], [-22, 1603], [-57, 4204], [443, 2022], [130, 592], [1046, 119], [523, -1306], [972, -2422], [217, -1315], [-578, -4219], [-32, -2400], [-37, -2772], [724, -2141], [820, -458], [3833, 13179], [315, 1647], [434, 2260], [78, 1818], [8, 201], [-684, 3895], [-533, -857], [-565, -3008], [-435, -221], [-196, 636], [-303, 980], [-235, 1946], [-139, 1147], [-21, 486], [-68, 1511], [19, 934], [61, 2987], [156, 731], [229, 1073], [1483, 2313], [1116, -1935], [44, -172], [969, -3719], [69, -2195], [122, -3913], [537, -1375], [1666, 313], [274, 731], [206, 553], [462, 1801], [-1181, 3028], [-242, 3901], [19, 757], [21, 837], [576, 4578], [-199, 2266], [-805, 1318], [-142, 232], [-68, 2784], [-41, 1711], [2, 144], [59, 3587], [290, 4741], [784, 5392], [1760, 3793], [41, 88], [746, 4433], [486, 2889], [197, 627], [794, 2535], [1891, 1856], [2707, 2659], [1973, -889], [2060, -930], [1272, -4304], [2345, -16323], [989, -914], [815, -4226], [400, -2075], [59, -649], [129, -1434], [-7, -594], [-34, -3003], [-2136, -4337], [61, -3649], [59, -3581], [987, -4457], [505, 616], [652, 795], [2119, -3133], [1989, -2941], [141, -719], [150, -764], [335, -3765], [-101, -283], [-246, -695], [-882, 1716], [-132, -1734], [26, -177], [178, -1216], [824, -1594], [2518, -452], [1869, 1181], [1766, -4785], [628, -1064], [620, -1050], [1004, -358], [513, -182], [542, -1495], [968, -2671], [1250, 4851], [1232, 1592], [6770, -9821], [7926, -7669], [990, 1540], [304, 3136], [54, 551], [282, 1357], [439, 526], [121, 145], [132, -427], [195, -633], [281, -10531], [306, -11505], [106, -6273], [131, -7809], [-40, -2198], [-10, -536], [-222, -2019], [-167, -651], [-737, -2867], [-901, -1037], [-389, -2447], [-320, -2014], [184, -753], [118, 196], [1270, 2121], [506, 119], [398, 93], [-469, -3473], [-854, -2847], [-22, -3156], [168, -32], [225, -42], [236, -1150], [187, -911], [77, -2685], [-418, -2726], [-154, -52], [-892, -305], [-1194, 2800], [-137, -361], [-506, -1343], [-16, -315], [-39, -759], [488, -14995], [128, -259], [600, -1214], [125, -1250], [199, -1982], [25, -2359], [-48, -183], [-861, -3273], [-586, 29], [-507, 2336], [-311, -781], [-115, -288], [-243, -1966], [-239, -1929], [-52, -2392], [-205, -9536], [772, -5902], [1589, 2380], [593, 890], [221, -3117], [115, -4591], [-40, -3353], [-35, -2853], [65, -4037], [23, -1440], [1600, -7691], [3013, -14474], [859, -3200], [570, -2120], [227, 1351], [227, 2753], [865, 10452], [1020, 8691], [489, 4171], [464, 3728], [773, 6215], [999, 4896], [19, 477], [32, 768], [-117, 2397], [-1095, 6871], [-17, 1520], [-27, 2419], [2682, 12171], [1248, 3461], [1297, 245], [734, 139], [190, -765], [226, -913], [666, -517], [344, 430], [710, 885], [202, 1047], [589, 3059], [224, 3285], [46, 674], [721, 6301], [1686, 4528], [413, 1477], [1501, 5360], [556, 330], [588, 349], [243, 3887], [96, 1535], [67, 10038], [-63, 2019], [-117, 3683], [378, 2678], [625, 4427], [2592, 13851], [2588, 7436], [3162, 5115], [4086, 9641], [1117, 4256], [1516, 5773], [1304, 9194], [427, 3006], [228, -60], [1575, -418], [20, -159], [570, -4409], [250, 197], [734, 581], [2519, 7222], [1968, 5643], [1872, 7263], [1700, 91], [1792, -3866], [778, -680], [699, -611], [1619, 3029], [731, 2699], [471, 1738], [1027, 2659], [1655, 4286], [2822, -6088], [2349, 505], [3484, 3316], [1754, 1669], [739, -3514], [276, -1317], [1489, -778], [1012, 3149], [1707, -1645], [845, 1861], [837, 1845], [1552, 1750], [180, -405], [259, -584], [390, 2067], [69, 361], [-19, 5324], [-83, 6884], [-25, 2101], [-307, 4855], [-96, 2362], [-208, 5092], [17, 989], [14, 790], [1192, -1366], [1228, -1407], [397, 3850], [152, 1469], [1053, 4455], [245, 1038], [894, 6283], [162, 420], [249, 650], [661, -1058], [198, -318], [25, -174], [314, -2188], [100, -2408], [-1643, -6699], [-979, 880], [-398, -6579], [43, -6096], [34, -4802], [563, -2978], [539, 216], [205, 3271], [611, 4105], [216, -1106], [-138, -2671], [-86, -1652], [-432, -4199], [919, -2024], [572, 3857], [1039, 7e3], [2910, 5515], [1304, -1200], [1747, -4357], [3474, -2961], [2554, -6423], [2328, -7778], [1666, -4294], [1412, -3637], [115, 22], [334, 65], [2285, -14310], [516, 754], [534, 779], [23, 242], [59, 603], [20, 3850], [334, 5034], [281, 2297], [459, 702], [550, 841], [375, -2666], [908, 317], [578, 4351], [171, 2353], [248, 3409], [-122, 542], [-266, 1177], [-50, 1331], [54, 2810], [1137, 8576], [1103, 3351], [618, 1877], [1084, 784], [1497, 1081], [2007, 7182], [342, -790], [263, -608], [1415, -12951], [781, -1477], [293, -2427], [449, -3726], [125, -1795], [53, -762], [-1, -1070], [-2, -2519], [359, -1592], [603, -2666], [602, 40], [287, 2090], [1274, 2616], [1209, -519], [7, -3], [329, -1173], [862, -6437], [690, -5158], [580, -6209], [640, -3096], [1267, -3801], [1249, -1428], [350, -400], [1848, 4033], [916, 184], [935, 188], [1423, 1883], [2520, 3334], [110, -2965], [258, -6931], [774, -585], [8052, 15888], [1035, 430], [149, 639], [215, 916], [223, 1936], [181, 1581], [2730, 10353], [255, 414], [313, 510], [2229, -8872], [1364, -5435], [1058, -13887], [267, -3518], [578, -343], [559, -332], [647, 234], [274, 2010], [929, 126], [734, -1570], [128, -273], [480, 1078], [375, 3043], [275, 5627], [68, 1370], [-125, 3696], [-5, 144], [-39, 4172], [-17, 1820], [131, 1717], [808, 10605], [-498, 3234], [-840, 5466], [-177, 2168], [0, 7], [95, 1430], [691, 818], [5333, -12056], [1380, 588], [1213, 518], [993, 1646], [1252, 2079], [1152, -609], [237, -2280], [59, -567], [586, -1427], [342, 2748], [772, 6193], [540, 5767], [-210, 7147], [-526, 6041], [112, 4923], [104, 4618], [271, 1511], [567, 568], [1659, -12507], [80, -4518], [-657, -12512], [292, -1453], [2786, -13878], [834, -1140], [741, 1896], [916, -1120], [1253, -1533], [848, -3503], [443, -1826], [1616, -2022], [769, 88], [635, 72], [2352, -7662], [2631, -1296], [2363, -1165], [317, -929], [165, -484], [341, -2108], [134, -2715], [175, -1242], [176, -1246], [240, -756], [212, -666], [875, 1465], [878, 4313], [642, 1417], [747, -1360], [140, -777], [210, -1165], [471, -5085], [118, -1270], [2250, 43], [2072, 11352], [758, 482], [1771, -1639], [404, -2844], [629, -4432], [-38, -2229], [-18, -1061], [-541, -5947], [-1502, -3813], [-1515, -3846], [-445, -3323], [-248, -1851], [-5, -136], [-98, -2459], [177, -200], [1066, -1207], [130, 203], [798, 1253], [2800, -13291], [67, -319], [66, 114], [1165, 2017], [867, 3027], [895, -235], [861, -227], [54, -559], [69, -707], [348, -16213], [-8, -722], [-16, -1599], [-509, -1987], [-571, 1235], [-438, 948], [-623, -1493], [-202, -487], [32, -378], [260, -3025], [1477, -1551], [1989, 4586], [694, -928], [503, -671], [712, -3995], [1721, 3431], [1615, 3222], [95, -461], [128, -5676], [-207, -3616], [50, -1786], [73, -2555], [895, -4053], [584, 149], [804, 205], [258, 643], [207, 518], [395, 2191], [610, 7083], [660, 2535], [885, -360], [190, -77], [97, 256], [1428, 3772], [677, -11], [2422, -10380], [16, -281], [197, -3413], [-887, -5843], [411, -3369], [743, -6092], [399, -231], [232, 3150], [152, 2078], [801, -75], [1438, -4075], [923, -2619], [1419, -5894], [420, 340], [363, 292], [521, 2991], [1125, -3170], [1616, -4553], [2150, -3354], [1817, -14035], [1060, -2374], [155, -737], [1025, -4890], [219, -3324], [-106, -501], [-67, -318], [256, -4335], [534, -4230], [279, -2211], [408, -1409], [1323, 1699], [260, -1612], [134, -831], [24, -908], [57, -2077], [153, -68], [65, -29], [894, 326], [597, 2930], [71, 349], [736, -487], [442, -5187], [387, -4543], [361, -2960], [192, -1570], [259, -507], [825, -1607], [618, 1823], [-41, 312], [-147, 1134], [39, 1878], [45, 2218], [4904, -5413], [3130, 173], [275, 15], [295, -842], [85, -988], [133, -1550], [-672, 15], [-733, 17], [595, -3446], [1520, 471], [853, 265], [824, -1183], [178, -1453], [362, -2961], [-79, -2678], [678, -6515], [382, -3679], [532, -1279], [1239, -2979], [3485, -15707], [86, 183], [145, 311], [44, 2153], [59, 2865], [475, 3237], [1320, -15129], [57, -648], [-329, -3049], [-493, -2373], [-1374, -1865], [-303, -1779], [-212, -3923], [-158, -2914], [-16, -5024], [286, -576], [114, -228], [376, -10886], [-482, -2323], [-327, -1582], [-728, -10927], [-19, -289], [-785, -3915], [-792, -3951], [14, -3993], [15, -4239], [-564, -5085], [-36, -327], [-266, -1017], [-755, -2878], [-663, 2011], [-749, 2274], [-2093, -2350], [-564, -1816], [-428, -2684], [-521, -3273], [-1173, -3559], [-1799, -5453], [978, -1865], [810, -1543], [68, -457], [-73, -3486], [-782, 195], [-621, 155], [-367, 1045], [-534, 1521], [-1785, -3881], [7, -2007], [164, -2765], [1265, -10826], [-221, -3656], [-872, -353], [-87, -35], [-1349, 1723], [-910, -9237], [-77, -1321], [-159, -2703], [-385, -2325], [-324, 3734], [45, 2357], [52, 2735], [-206, 4788], [-73, 1676], [-508, 2685], [-296, -591], [-1265, -8436], [-575, -5489], [-101, -2010], [-568, -11206], [338, -3388], [1311, -517], [2404, -948], [961, -1845], [107, -204], [1075, -3855], [-51, -2714], [-60, -3182], [-117, -383], [-5004, 4150], [-797, -9942], [24, -49], [1011, -2062], [-1, -1974], [-198, -4776], [-55, -1328], [-61, -740], [-380, -4619], [-746, -2180], [-331, -966], [460, -4772], [174, -321], [319, -591], [550, -7840], [-46, -4427], [-131, -12824], [-684, -1151], [-564, -5140], [30, -1308], [1135, -626], [1031, -570], [446, -4371], [987, -9671], [84, -6756], [-665, -5222], [205, -1372], [285, -123], [416, -179], [698, 1044], [668, 999], [383, -2079], [305, -1653], [48, -4700], [21, -2105], [-111, -3411], [-385, -4433], [-1487, -4626], [-871, -858], [-220, -666], [-118, -1816], [1193, -3780], [972, 1112], [1571, 1797], [1004, 2431], [234, 2204], [-115, 766], [6, 527], [5, 525], [793, 5841], [372, -1842], [60, -1423], [-7, -375], [-23, -1210], [-559, -2663], [2, -106], [19, -1463], [707, -5794], [269, -2204], [344, -1389], [1566, -1933], [136, -167], [1557, -467], [414, -2946], [130, -3466], [-920, -1174], [161, 1018], [67, 423], [-25, 741], [-85, 472], [-216, 1207], [-1533, 2111], [-294, 405], [-2832, -3071], [-212, 42], [-2483, 494], [-1369, -3510], [-2447, -6274], [-166, -1276], [-93, -720], [-114, -6289], [-106, -579], [-219, -1202], [-2306, 115], [-2158, 107], [-952, -3765], [-232, -918], [-1072, -20416], [643, -12033], [-628, -5624], [580, -7607], [818, -5651], [239, -1649], [294, -3142], [-3089, -5955], [1058, -1746], [95, -159], [176, 324], [1351, 2496], [946, -1711], [-174, -1717], [-936, -2474], [-820, -2166], [59, -465], [473, -3720], [5, -15655], [-28, -1278], [-43, -1922], [859, -1635], [1011, -1924], [-15, -2603], [-14, -2507], [2436, -4819], [2012, -9005], [2910, -13023], [-35, -593], [-56, -974], [-188, -560], [-248, -740], [-2339, 3], [-974, 1], [-1137, -1329], [-2070, -2417], [437, -1682], [847, -3258], [1314, -913], [1219, -847], [332, -1841], [488, -2700], [426, -401], [385, -363], [473, 4319], [-304, 1643], [-353, 1909], [50, 200], [70, 278], [4291, 2842], [887, -2105], [885, -2103], [-161, -1392], [-116, -1006], [-1336, -4441], [91, -325], [934, -1462], [595, 599], [812, 817], [1052, -1336], [836, -1062], [1027, -3328], [230, -747], [-335, -3268], [-437, -121], [52, -428], [131, -1078], [2054, -3295], [2308, -946], [589, -1188], [79, -622], [574, -4490], [-430, -2127], [-273, -1347], [-1560, -1263], [-317, -3526], [-191, -2131], [352, -2202], [1180, -789], [1075, 3961], [1556, 1263], [55, 44], [140, -262], [2605, -4877], [2410, -1036], [1870, -804], [545, -1742], [331, -1058], [-849, -6781], [-375, -979], [397, -1868], [1058, 3209], [401, 1217], [1703, 212], [1989, -3243], [-1592, -4621], [1250, -841], [2826, 2499], [1269, -134], [285, -672], [422, -993], [141, -2206], [7, -115], [3961, -1742], [46, -87], [3646, -6974], [3545, -2513], [293, -207]], [[998019, 55542], [1980, -6788]], [[54653, 240168], [-736, -114], [-882, -136], [-691, 765], [-461, 509], [-2398, 3935], [-311, 511], [-2814, 6826], [-2282, 9753], [-197, 2745], [-447, 6249], [21, 1325], [343, 2166], [1225, 2830], [257, 594], [76, 765], [133, 1327], [56, 4721], [631, 2713], [1990, 1208], [2189, -2523], [590, -681], [205, -506], [803, -1980], [589, -5393], [310, -2834], [2422, -9928], [966, -3958], [5, -54], [734, -8027], [516, -2624], [428, -2174], [-241, -2342], [-210, -607], [-155, -448], [-2664, -4613]], [[307504, 269709], [-907, -449], [-2300, 1916], [-507, 1804], [1669, 5854], [2225, 11718], [1286, 3512], [1960, 5357], [1430, 2285], [1365, 2183], [2267, 758], [391, -15], [750, -29], [-86, -4648], [-461, -1169], [-2984, -7577], [-2875, -10138], [-3223, -11362]], [[963883, 346190], [1446, -3045], [1485, 1489], [695, 696], [210, -307], [2256, -3312], [247, -2606], [-231, -1724], [-79, -586], [-762, -2012], [-1256, -3316], [-2106, 2998], [-280, -157], [-248, -139], [-1043, -3540], [-61, -208], [-220, -18], [-635, -53], [-1233, 3388], [-90, 4496], [-222, 11134], [824, 4015], [634, -265], [206, -86], [76, -459], [387, -2340], [21, -333], [34, -526], [-103, -1668], [31, -961], [17, -555]], [[89902, 343319], [-1081, -87], [-2068, 4737], [-144, 711], [-169, 837], [26, 3235], [3, 339], [238, 2332], [53, 519], [424, 1639], [1231, -1367], [276, -749], [873, -2368], [254, -1866], [167, -1234], [163, -3523], [51, -1106], [-78, -1418], [-219, -631]], [[288509, 328787], [310, -2840], [882, -8090], [-1e3, -1893], [-1535, -2904], [-1219, -441], [-1192, -430], [-1576, 653], [-295, 589], [-2560, 5104], [-308, -39], [-347, -44], [-330, -1050], [-335, -1069], [-1425, 4399], [-232, 718], [-1175, 4984], [-184, 1024], [-160, 893], [-121, 2245], [254, 2238], [2182, 7855], [54, 2354], [70, 3022], [426, 5024], [243, 946], [746, 1924], [1047, 2700], [1696, 2856], [543, 296], [1667, 910], [981, -2578], [1041, -4732], [368, -13091], [399, -7274], [33, -596], [982, -3419], [70, -244]], [[85773, 355577], [-812, -297], [-2294, 2401], [-697, 2952], [-385, 1634], [128, 715], [162, 910], [2293, 2612], [982, -4111], [402, -2955], [389, -2864], [-125, -746], [-43, -251]], [[134179, 478703], [1527, -3906], [719, 694], [162, 38], [47, 10], [214, -3660], [-205, -3612], [-32, -563], [-579, -1699], [-2430, 3763], [-47, 354], [-47, 357], [-41, 3197], [78, 2357], [15, 445], [619, 2225]], [[147071, 464449], [-132, -182], [-391, -543], [-779, 1874], [-557, 3230], [-273, 1582], [-36, 511], [-91, 1266], [-18, 6353], [13, 114], [105, 879], [233, -323], [812, -1124], [722, -2345], [862, -2798], [-23, -1625], [-67, -4735], [-303, -1699], [-77, -435]], [[176328, 483105], [-274, -522], [-448, -854], [-2611, 279], [686, 5507], [3569, 9004], [413, -223], [91, -414], [355, -1613], [-720, -2857], [-454, -4165], [-241, -2536], [-228, -999], [-138, -607]], [[166264, 502017], [872, -2012], [1781, 727], [804, 328], [582, -1451], [81, -811], [89, -892], [0, -44], [-11, -1231], [-325, -2563], [-221, -1737], [-3007, -12440], [-1903, -4372], [-1688, -172], [-1121, -114], [-2106, 2081], [-683, 2057], [-132, 2993], [26, 1260], [670, 8440], [168, 1318], [174, 1369], [3, 167], [31, 1570], [-175, 1476], [-701, 1173], [-788, 1319], [458, 5594], [491, 1132], [1209, -708], [1136, -666], [1863, -2853], [2423, -938]], [[152527, 520088], [1229, -10944], [-169, -1393], [-190, -1564], [-921, -3315], [386, -2567], [1283, 1662], [1576, 2040], [802, -5664], [709, -5014], [24, -1722], [16, -1171], [-202, -4781], [-49, -1142], [-209, -535], [-2316, 1453], [-577, 2803], [-682, 3315], [-1701, 3974], [-747, 1748], [-217, 2517], [-575, 6677], [-700, 4879], [-237, -2727], [-378, -2114], [-184, 406], [-398, 874], [-340, 4252], [-312, 3894], [-3, 3676], [98, 2112], [55, 1182], [341, 1965], [319, 1845], [2372, 1329], [822, -1953], [312, -741], [327, -2254], [436, -3002]], [[250839, 528544], [-231, -1295], [-1008, 268], [-401, 107], [-138, 1825], [-171, 2262], [-3, 985], [-2, 792], [126, 1952], [1001, 2384], [465, 1107], [771, -1652], [58, -639], [56, -613], [-43, -1208], [-12, -319], [-209, -2660], [-259, -3296]], [[292948, 504296], [-287, -322], [-70, -78], [-2966, 9328], [-379, 1977], [-640, 3347], [-263, 6219], [169, 1493], [143, 1262], [17, 10], [373, 218], [643, 2682], [83, 345], [-430, 2116], [705, 5752], [1012, 543], [699, -402], [254, -704], [694, -1921], [433, -2015], [490, -2278], [8, -3656], [-389, -5315], [143, -14396], [-377, -3583], [-65, -622]], [[285014, 533980], [-1251, -2346], [-731, -3375], [-789, -3644], [-547, -1267], [-241, 577], [-437, 1043], [-672, 5511], [159, 2362], [136, 614], [227, 1018], [350, 110], [253, 79], [232, -1029], [39, -174], [208, 611], [483, 1416], [322, 2779], [152, 1312], [-3, 1558], [-2, 1523], [1376, 2789], [849, -871], [151, -351], [167, -387], [-111, -4473], [-320, -5385]], [[247384, 532063], [-443, -3528], [-511, -4064], [-501, 600], [-130, 1562], [544, 5593], [8, 417], [43, 2359], [-122, 5035], [-322, 4251], [-607, 3827], [190, 1405], [937, 1799], [207, 396], [502, -360], [442, -5205], [108, -1274], [-62, -4205], [-31, -2102], [-62, -1616], [-190, -4890]], [[226905, 572943], [503, -313], [314, -196], [116, 5085], [-82, 2687], [-38, 1266], [61, 744], [59, 716], [1004, -2060], [447, -4709], [-732, -3870], [763, -5298], [729, 10932], [939, 6789], [1637, -1152], [277, -1109], [173, -691], [-51, -4477], [-1090, -4856], [-455, -1197], [-1163, -3063], [831, -1727], [1022, 1511], [774, 1145], [593, 1631], [14, 142], [294, 3028], [203, 84], [214, 90], [160, -605], [27, -102], [73, -1107], [208, -3150], [-524, -2617], [-117, -582], [-446, 80], [-954, 169], [-648, -1980], [2912, -2981], [-16, -343], [-37, -835], [-307, -1125], [-217, -795], [-1217, -906], [45, -1186], [298, -647], [-33, -955], [-81, -2405], [-50, -179], [-135, -490], [-1246, -178], [-1240, -177], [-1143, 2123], [-831, -322], [-2419, -935], [-875, 1146], [-384, 503], [414, 1817], [15, 67], [81, 1933], [-2999, 224], [-5881, 6621], [-549, 2319], [-627, 2650], [47, 2238], [157, 1289], [78, 644], [389, 1032], [4363, 8028], [390, -2225], [256, -1459], [-553, -1235], [-18, -408], [-103, -2408], [890, -124], [368, 1356], [469, 1734], [628, 1087], [285, 493], [285, -874], [1928, -5919], [209, 55], [51, 14], [17, 620], [11, 394], [-313, 3285], [-829, 3671], [-80, 1325], [-84, 1414], [422, 2912], [349, 2409], [456, 897], [1348, -4381], [-244, -2388], [-20, -194], [-20, -2538], [-16, -2036], [62, -1126], [209, -3764]], [[292874, 623451], [-570, -729], [-654, -837], [-976, 130], [-556, 5287], [202, 1867], [1611, 2525], [550, 38], [270, 19], [554, 1555], [506, 3808], [751, -1318], [484, -3403], [117, -1294], [-410, -2548], [-1029, -2794], [-850, -2306]], [[292529, 676342], [251, -3286], [289, -3785], [34, -3109], [-74, -933], [-396, -4974], [-2844, -443], [-559, 1392], [-598, 11142], [77, 1080], [594, 1417], [1455, -248], [372, 3447], [877, 22], [522, -1722]], [[299723, 677866], [-426, -934], [-88, 98], [-918, 1018], [-655, 3234], [34, 986], [41, 1185], [380, 3201], [567, 741], [121, -548], [175, -787], [769, -8194]], [[327681, 670076], [-44, -52], [-138, -166], [-370, 2584], [-626, 11820], [-412, 7776], [240, 1597], [84, 560], [725, -440], [793, -9636], [61, -1587], [43, -1114], [13, -3816], [-149, -5416], [-93, -895], [-127, -1215]], [[307221, 675720], [841, -23694], [581, -5915], [279, -1421], [255, -1300], [369, -5025], [156, -2121], [28, -639], [135, -3101], [465, -20647], [243, -18172], [-130, -12094], [-42, -3870], [-337, -8950], [-834, -6313], [-231, -19], [-413, -33], [-225, -1530], [-267, -1827], [-1, -40], [-90, -4398], [89, -61], [103, -69], [-190, -2846], [-1061, -4623], [-416, -764], [-409, -753], [-1265, -954], [-3490, 1188], [-1476, -895], [-570, 3102], [-1218, 6640], [504, 4204], [298, 2488], [229, 896], [324, 1262], [1240, 136], [2518, -2103], [135, 231], [383, 660], [168, 1797], [-122, 796], [-73, 481], [-586, 9556], [-2511, 14051], [-847, 2633], [-515, 226], [-391, 171], [-112, -822], [-118, -6063], [-480, -1719], [-137, -490], [-521, 1642], [-353, 183], [-379, 197], [-470, -971], [-140, -289], [-84, -772], [62, -1275], [499, -1370], [147, -403], [252, -3306], [51, -665], [-972, -7392], [-2, -8], [-541, -1657], [-1702, 4071], [-156, 373], [-2457, 9979], [-480, 2959], [-485, 2989], [-591, 9770], [-2, 414], [-4, 945], [93, 965], [99, 1019], [433, 1280], [462, -2384], [514, -5632], [861, 766], [-594, 5964], [-141, 2843], [25, 632], [39, 974], [232, 1494], [597, 680], [798, -1499], [677, -4872], [353, -2540], [1650, -5467], [93, 302], [169, 549], [139, 1166], [-10, 1105], [-183, 1389], [-198, 1510], [-552, 1594], [-1058, 3054], [-80, 1135], [-118, 1673], [118, 1341], [66, 749], [333, 956], [283, 232], [873, 718], [734, -1971], [233, -1472], [783, -4951], [600, 1639], [407, 1111], [-20, 2035], [-1130, 1475], [-689, 3895], [-62, 2869], [672, 1885], [286, 805], [2926, 529], [690, 3220], [782, 3645], [501, -153], [269, -1479], [149, -818], [186, -5755], [296, 624], [269, 568], [208, 3449], [-14, 97], [-1017, 7033], [-1485, 7022], [-17, 800], [-88, 4022], [158, 2602], [121, 2003], [173, 943], [233, 1277], [832, 947], [274, 312], [719, -92], [1561, -198], [308, 1121], [-141, 1562], [-44, 486], [-170, 378], [-548, 1215], [-611, -1458], [-159, -379], [-391, 798], [-622, 2351], [-2641, 14410], [0, 473], [-13, 10593], [148, 2070], [140, 1955], [281, 6518], [-609, 2647], [-653, 2842], [18, 356], [92, 1805], [309, 1260], [1450, 5930], [1614, 2409], [503, 1838], [405, 1478], [218, -277], [229, -292], [811, -3598], [204, -3103], [50, -5710], [8, -977], [999, -9334], [844, -11642]], [[739705, 786013], [-142, -1118], [-103, -818], [-159, 367], [-445, 1029], [-1082, 7814], [-107, 2208], [37, 748], [27, 544], [260, 57], [1084, -2778], [493, -3645], [212, -1569], [-71, -2681], [-4, -158]], [[311030, 768656], [-1635, -15460], [-389, 285], [-571, 418], [-419, 3630], [-87, 1363], [-118, 1850], [77, 5203], [644, 4770], [411, 3052], [843, 18160], [154, 1083], [362, 2539], [698, 2737], [725, 2844], [143, -294], [112, -230], [72, -2134], [4, -102], [-262, -2181], [-366, -3059], [139, -10190], [169, -4657], [55, -1495], [-761, -8132]], [[769415, 820265], [-909, -2766], [-689, 90], [-437, 2017], [240, 4971], [182, 1093], [1227, -908], [218, -1260], [68, -396], [100, -2841]], [[840327, 801148], [-76, -1170], [-40, -608], [-1897, 1957], [-560, 3435], [-174, 8032], [-811, 15828], [-125, 4525], [-8, 5470], [44, 767], [54, 960], [343, 1904], [130, -719], [127, -710], [362, -4812], [228, -3274], [58, -832], [324, -7241], [2035, -15762], [43, -3034], [33, -2338], [-90, -2378]], [[317028, 834724], [-847, -2103], [-139, 577], [14, 1056], [40, 2933], [265, 2673], [427, 7109], [227, 660], [179, 520], [315, -529], [30, -784], [48, -1234], [-45, -1925], [-38, -1577], [-104, -518], [-7, -34], [-365, -6824]], [[324241, 894395], [54, -485], [524, -4746], [371, 924], [199, -1338], [7, -46], [-651, -3258], [-1664, -8331], [-1624, 5016], [123, 5038], [1738, 12600], [619, 1304], [44, -142], [285, -915], [-44, -2373], [-23, -1211], [42, -2037]], [[327154, 897103], [-181, -1357], [-583, -4357], [-427, -216], [-479, -243], [86, 1278], [23, -7], [171, -50], [520, 8594], [84, 2261], [-140, 3996], [52, 1546], [58, 1707], [35, 104], [377, 1115], [80, -162], [74, -153], [505, -4782], [88, -841], [-251, -6181], [-92, -2252]], [[339425, 915651], [103, -2223], [140, -3008], [121, 669], [443, 2439], [704, -3646], [317, -1642], [65, -1563], [59, -1430], [-370, -4145], [-314, -3520], [-750, -1626], [-980, -2123], [-631, 1170], [-46, 849], [-101, 1860], [-96, 3924], [-93, 3791], [-320, 459], [-50, 715], [-36, 517], [83, 1877], [123, 2805], [801, 5618], [9, 69], [279, 1285], [555, 2558], [-35, -2222], [20, -3457]], [[347028, 944705], [96, -2641], [40, -1084], [-372, -2063], [-191, -209], [-301, -329], [-480, 1247], [-716, 1863], [-1814, -5991], [-183, 1178], [-214, 1377], [37, 2080], [251, 2799], [84, 940], [105, 489], [682, 3170], [1393, 1801], [436, -1499], [983, -1999], [57, -390], [107, -739]], [[332504, 973716], [420, -1393], [549, -1819], [235, 101], [119, 52], [-563, -3410], [-879, -2501], [-194, 1468], [-993, 1678], [-117, 198], [-137, 51], [-865, 328], [-198, 2845], [2623, 2402]], [[338749, 999999], [348, -227], [399, -261], [342, 182], [-15, -1547], [-28, -2859], [-370, -1065], [-1006, -2892], [-1039, -5328], [-269, -433], [-79, -127], [-968, 2268], [809, 7136], [594, 2469], [483, 1009], [799, 1675]], [[0, 48751], [4734, 3306]], [[998019, 55542], [-998019, -6791]], [[0, 48754], [0, -3]]], bbox: [-180, -85.58276367299999, 180, -61.91226959299996], transform: { scale: [36000036000036e-17, 23670517750517778e-21], translate: [-180, -85.58276367299999] } }; + } + }); + // dist/topojson/asia_50m.json var require_asia_50m = __commonJS({ "dist/topojson/asia_50m.json"(exports, module) { @@ -96,6 +117,13 @@ var Plotly = (() => { } }); + // dist/topojson/oceania_50m.json + var require_oceania_50m = __commonJS({ + "dist/topojson/oceania_50m.json"(exports, module) { + module.exports = { type: "Topology", arcs: [[[95199, 69836], [0, 0], [2, -2], [2, -1], [15, -15], [63, -66], [9, -10], [3, -3], [1, -1], [1, -2], [5, -5], [3, -4], [22, -31], [4, -4], [9, -14], [6, -8], [5, -19], [5, -18], [0, -3], [2, -9], [0, 0], [1, -5], [0, -1], [0, -1], [0, -2], [0, -1], [0, -1], [1, -1], [0, 0], [0, -2], [0, 0], [-1, -1], [-1, -3], [-1, -2], [0, 0], [-4, -1], [-1, -1], [-1, 1], [-3, 1], [-2, 1], [-32, 20], [-18, 12], [-3, 1], [-5, 4], [-1, 1], [0, 0], [0, 0], [-38, 36], [-21, 21], [-20, 23], [-1, 1], [-3, 4], [-8, 8], [-6, 11], [3, 67], [1, 17], [0, 1], [1, 4], [0, 1], [0, 2], [2, 0], [2, 0], [0, 0], [1, 0], [1, 0], [0, 0]], [[166030, 36519], [5, 316], [53, 304], [-18, 727], [220, 895], [199, 569], [62, 534], [161, 844], [161, 294], [187, 449], [222, 248], [94, 10], [152, 133], [119, 222], [123, 371], [26, 150], [61, 882], [-76, 352], [-202, 379], [-280, 719], [-41, 359], [-16, 58], [-13, 30], [-105, 257], [281, 357], [59, 152], [-24, 186], [-45, 219], [-220, 539], [-172, 549], [-27, 193], [-437, 978], [-23, 142], [416, 78], [43, 18], [221, 159], [-7, 28], [-63, 7], [-531, -144], [-183, 250], [-45, 136], [33, 102], [42, 7], [-7, 86], [-74, 286], [-127, 235], [-118, 199], [-27, 207], [-122, 206], [-288, 373], [-170, 174], [-250, 415], [-293, 410], [-207, 257], [-339, 334], [-211, 284], [-344, 707], [-362, 978], [-36, 212], [79, -13], [185, 58], [169, 328], [84, 696], [100, -70], [220, -49], [123, 58], [21, 21], [-5, 15], [-15, -8], [-312, 108], [-202, 253], [15, 112], [135, 47], [94, 391], [63, 56], [-73, -9], [-144, 54], [-18, 158], [174, 368], [168, 496], [2, 289], [27, 80], [1, 237], [90, 484], [-169, 540], [-65, 410], [-144, 141], [-242, 12], [-198, 124], [-127, 564], [-95, -41], [-18, -29], [18, -40], [-27, -21], [-155, 16], [-15, 131], [25, 133], [-38, -50], [-318, -162], [-907, -122], [-314, -108], [-532, -75], [-193, 122], [-148, 149], [-98, 153], [-194, 565], [-5, 258], [-418, 696], [-337, 348], [-114, 49], [-431, 73], [-991, -67], [-487, -50], [-441, -105], [-380, -139], [-104, -75], [-72, -159], [-352, -138], [-468, -112], [-707, -476], [-579, -210], [-537, -356], [-47, 12], [-135, 161], [-66, 35], [-660, 180], [-809, 168], [-1802, -271], [15, -36], [-1062, -603], [-170, -71], [-172, 15], [-558, 299], [-744, 531], [-183, 187], [-540, 687], [-1126, 984], [-116, 154], [-50, 80], [-735, 485], [-60, 207], [-6, 149], [-89, -73], [-119, 36], [-183, 188], [-18, 32], [47, 32], [-151, 323], [-75, -32], [-106, 241], [-7, 77], [77, 0], [63, -39], [175, 123], [-163, 70], [-47, 232], [35, 14], [-148, 214], [18, 126], [-27, 113], [-265, 348], [-59, 409], [-299, 205], [-15, 41], [-31, -1], [-3, -53], [-86, -23], [-404, 429], [-4, 86], [101, 302], [-176, -107], [-56, 114], [-6, 119], [136, 112], [-33, 9], [-78, -72], [-53, -5], [-67, 94], [-2, -5], [-27, -68], [-6, -11], [-119, -19], [-53, 131], [-211, 146], [-79, 132], [64, 176], [172, 152], [89, 12], [-134, 52], [-108, -106], [-115, 102], [-9, 45], [84, 140], [258, 49], [133, 76], [-8, 46], [-284, -37], [-211, -119], [-278, 51], [-35, 43], [-118, -44], [-105, 14], [-122, 124], [12, 154], [-334, 193], [-43, 228], [12, 585], [-53, 300], [113, 169], [89, -29], [-27, -26], [35, -141], [96, -44], [88, 6], [109, 55], [96, 107], [45, 24], [-94, -15], [-107, -92], [-101, -21], [-54, 36], [-74, 269], [-18, 272], [-589, 963], [558, 1013], [75, 221], [20, 271], [-7, 209], [65, 420], [295, 933], [60, 532], [-21, 578], [-106, 486], [-253, 593], [56, 191], [105, 163], [42, 446], [-14, 163], [-208, 491], [-30, 9], [-4, -194], [-124, 150], [-208, 520], [-77, -171], [-40, -259], [-36, 94], [112, 1026], [129, 418], [112, 154], [61, -26], [104, 64], [478, 1336], [94, 384], [499, 599], [194, 154], [128, 209], [46, 226], [-2, 75]], [[258876, 83639], [-48, -115], [-178, -14], [-26, -100], [19, -129], [-32, -84], [-99, -64], [-221, 45], [-126, 108], [-252, -278], [25, -41], [89, 6], [85, -54], [31, -84], [-296, -301], [-371, -253], [-302, -152], [-83, -8], [-208, -349], [-7, -115], [-117, -180], [-141, -145], [-702, -224], [-266, 148], [-114, -60], [-115, -123], [-207, 63], [7, 76], [-169, -100], [-130, -151], [-167, -61], [-5, -158], [43, -30], [22, -136], [-149, 111], [-156, 10], [-22, 60], [101, 102], [-179, 94], [-269, 508], [-36, 44], [-37, 8], [18, -332], [-32, -71], [107, -169], [52, -254], [-23, -130], [-35, -25], [-4, 8], [-190, 158], [-47, -289], [-127, 119], [-36, 249], [-57, 77], [-33, 2], [25, -60], [53, -44], [18, -246], [-59, -285], [-74, -90], [-22, 8], [-52, 161], [-76, -102], [-209, 32], [-14, 33], [-93, -7], [-164, -237], [-232, 48], [-123, -105], [-6, -76], [-138, -114], [-732, -70], [-131, -116], [-7, -56], [-175, -86], [-174, -187], [-44, -97], [24, -134], [135, -227], [55, -68], [75, -41], [37, -89], [-60, -134], [-114, -106], [-344, 18], [-50, 91], [-97, 465], [-25, 41], [-13, -11], [-33, 47], [-17, 73], [14, 215], [81, 228], [76, 50], [-83, 159], [-134, 110], [-110, -142], [-234, -60], [-83, 77], [-47, 165], [-188, 192], [-27, 12], [-30, 2], [70, -196], [-115, -20], [-78, 128], [-105, -15], [-71, -69], [-85, 70], [-17, -82], [-144, -93], [-109, -25], [20, -73], [-45, -26], [-66, 13], [-141, -50], [-333, -181], [0, -91], [-146, -246], [-272, 6], [-87, 34], [-25, -21], [-166, -777], [-278, -254], [-260, -177], [-60, -141], [-177, -750], [-21, -233], [236, -488], [156, -197], [157, -107], [176, -285], [-37, -83], [15, -92], [173, -360], [967, -1188], [33, -98], [60, -17], [32, 51], [100, -10], [84, -107], [94, -128], [277, -584], [295, -416], [330, -1470], [-22, -510], [131, -624], [22, -225], [-4, -116], [-60, 138], [-141, -135], [46, -659], [-30, -287], [-68, -149], [-209, -284], [-1190, -908], [-365, -184], [-148, 132], [-123, -32], [-15, -222], [-173, -567], [-332, -361], [-654, -429], [-146, -289], [-134, -146], [-149, -58], [-103, -17], [-82, 37], [-10, 34], [27, 15], [38, 232], [44, 802], [43, 288], [168, 125], [-96, 176], [-147, 110], [-131, -50], [-163, 245], [-15, 59], [-211, 149], [-301, 47], [-86, -77], [-107, 232], [71, 123], [-36, 233], [-106, 120], [-39, -1], [-51, -71], [-21, -205], [-62, -38], [-192, -13], [-21, 47], [2, 428], [-168, 388], [-17, 118], [-214, 472], [-61, 27], [-32, -104], [-176, 99], [-189, 269], [-219, 229], [-164, 46], [-302, -50], [-308, 6], [-94, 136], [28, 304], [80, 383], [-12, 88], [-342, 63], [-265, -30], [-112, -51], [-86, -55], [-73, -100], [88, -347], [-121, -1050], [-234, -574], [-185, -776], [-178, -418], [-36, -223], [-43, -507], [74, -622], [34, -42], [114, -22], [88, 33], [45, 62], [131, 44], [126, -50], [56, -222], [43, -525], [111, -217], [56, -29], [149, -432], [95, -540], [85, -267], [205, -328], [186, -132], [174, 2], [124, 61], [232, -156], [185, -357], [244, -240], [109, -59], [168, -160], [111, -229], [258, -290], [111, -59], [118, -140], [225, -529], [74, -252], [33, -401], [-118, -598], [67, -256], [15, -745], [82, -162], [82, -103], [78, -42], [170, -318], [284, -772], [42, -248], [-13, -82], [-149, 26], [-60, 181], [-68, 49], [-198, -155], [-5, -2], [74, 20], [3, 0], [2, 1], [2, 0], [1, 1], [2, 0], [21, -12], [2, -2], [3, -2], [1, -2], [1, -1], [1, -2], [3, -11], [104, -59], [-197, -94], [-78, -15], [-6, 12], [-13, 24], [-1, 1], [-1, 1], [0, 2], [-1, 4], [3, 9], [24, 71], [7, 18], [-15, -12], [-206, -25], [-367, 400], [-1290, 1043], [-143, 346], [12, 98], [-60, 217], [-201, 359], [-184, 207], [-174, 433], [-33, 278], [-6, 414], [-89, 130], [-61, 419], [-73, 831], [-189, 441], [-44, 118], [-234, 311], [-201, 588], [-51, -30], [-158, 210], [-227, 463], [-275, 330], [-32, 116], [-71, 78], [-122, -71], [-25, -35], [-1, -9], [-19, -128], [-54, -11], [-78, 96], [-57, 381], [39, 405], [87, 141], [5, 234], [334, 1237], [-113, -293], [-92, 162], [-54, 391], [49, 119], [172, 217], [11, 466], [117, 405], [-35, 154], [-49, 48], [-9, 89], [-40, 440], [-9, 410], [17, 78], [-130, 463], [-38, 29], [-237, 635], [-4, 120], [-8, 50], [-11, 23], [-13, -12], [-20, -168], [-12, -291], [-30, -10], [-140, 938], [-5, 367], [-46, 161], [-18, -76], [4, -46], [-85, 193], [-142, 1419], [3, 110], [109, 252], [29, -16], [14, 1], [25, 35], [-195, 121], [-6, -36], [-4, -52], [-188, -64], [-133, 189], [-93, 422], [-157, 231], [-44, 27], [-16, -133], [13, -236], [-37, -151], [-140, -247], [-77, -87], [-120, -56], [-51, 4], [-145, 141], [-202, -224], [-121, 38], [-39, -306], [-147, -268], [-168, -214], [-128, -26], [-28, 98], [23, 84], [30, 50], [26, 100], [21, 260], [-66, -70], [-68, -292], [-39, 125], [25, 96], [-64, 60], [-71, -121], [-70, -242], [-82, 176], [19, 100], [-49, 60], [-78, -1], [-47, 77], [26, 167], [-48, 82], [-142, -162], [2, -94], [-65, -121], [-114, -132], [-62, -22], [-37, 100], [44, 378], [93, 335], [207, 986], [-123, 471], [-69, 417], [-162, 463], [-41, 71], [2, 12], [-11, 4], [-12, 20], [-40, 533], [-251, 255], [26, 137], [-23, 175], [-229, 136], [-88, 186], [-169, 14], [-36, 30], [-80, 377], [-46, -96], [-9, -69], [-98, -254], [-107, 112], [-38, 357], [-90, 139], [5, -29], [43, -96], [12, -20], [22, -224], [-54, -4], [-242, 381], [-108, 366], [-8, 14], [-4, -30], [16, -118], [15, -23], [-38, -10], [-171, 379], [-59, 212], [35, 216], [-6, 10], [-17, 5], [-6, -36], [-80, 66], [26, 592], [52, 258], [-253, 112], [-225, 288], [-136, -37], [-14, -59], [18, -93], [-86, -160], [-60, 11], [-260, 353], [-81, 163], [-44, 389], [-21, 51], [-149, 30], [-55, -395], [28, -265], [61, -194], [68, -183], [31, -41], [-348, -451], [-58, -2], [-84, 221], [-276, 112], [-64, 98], [-38, -7], [-51, -121], [-74, 167], [-34, 30], [-209, -238], [-107, -22], [-89, 20], [-475, -344], [-69, -177], [-104, 34], [-48, 113], [54, 227], [-17, 33], [-113, -105], [-138, -243], [-108, -119], [-533, -176], [-157, -131], [-118, -178], [-30, -135], [127, -325], [24, -152], [-503, -800], [-191, -115], [-447, -162], [-225, -136], [-394, -355], [-127, -153], [-262, -454], [-328, -470], [-625, -563], [-174, -268], [-539, -350], [-230, -237], [-66, -160], [8, -40], [53, -39], [21, -82], [5, -73], [-36, -139], [-462, -284], [-225, 25], [-179, -56], [-69, -92], [-181, -492], [-200, -13], [8, 86], [-135, 31], [-191, -87], [-124, -131], [-169, -472], [-31, -201], [51, -361], [46, -830], [134, -604], [-4, -339], [-50, -416], [-82, -349], [-240, -472], [-104, -481], [83, -656], [19, -775], [-302, -27], [-259, -206], [-216, -494], [53, -419], [-455, -198], [-310, -407], [-28, -297], [-61, -134], [-245, -211], [-201, -129], [-186, 50], [-268, 257], [-414, 645], [-160, 495], [-102, 654], [-91, 360], [-344, 1189], [-172, 384], [-272, 353], [-227, 587], [-133, 440], [-208, 1132], [-190, 638], [-102, 248], [-245, 464], [-51, 214], [-372, 862], [-96, 377], [-106, 937], [-283, 1304], [-33, 247], [5, 94], [29, 26], [-4, 218], [-60, 24], [-39, 234], [8, 89], [95, -11], [-20, 37], [-18, 12], [-92, 124], [-70, 445], [113, 556], [86, 251], [-157, 627], [-21, 22], [-8, 1], [-16, -10], [-5, -22], [-31, 8], [6, 453], [94, 102], [81, 34], [-150, 17], [-90, 133], [-42, 185], [66, 259], [52, 21], [97, -37], [82, 76], [-23, 21], [-416, -14], [-100, -362], [67, -351], [-178, -440], [-129, -115], [-826, -451], [-161, -17], [-181, 86], [-274, 199], [-185, 200], [-760, 948], [-186, 260], [-34, 99], [36, 108], [77, 83], [14, -98], [64, -84], [120, -40], [664, 301], [131, 88], [212, 243], [13, 39], [29, 253], [-182, 1], [-64, -18], [-167, -214], [-273, -179], [-465, 120], [-438, 328], [-75, 85], [-100, 203], [-27, 170], [77, 149], [106, 117], [-125, 200], [-107, 26], [-264, 19], [-201, 91], [-323, 26], [15, 62], [6, 244], [-57, 413], [-22, 21], [-123, 29], [-467, 35], [-38, 44], [23, 137]], [[199671, 83639], [120, -233], [57, -52], [50, 57], [-50, 228]], [[200529, 83639], [-35, -110], [-104, -260], [-119, -182], [51, 41], [104, 12], [-83, -287], [179, -51], [10, 76], [105, -101], [50, -122], [14, -112], [34, -35], [217, -41], [202, 51], [173, 118], [133, 35], [585, -31], [213, -67], [248, 17], [196, 85], [278, 167], [165, 307], [35, 149], [72, 102], [220, 239]], [[204664, 83639], [0, -22], [95, -312], [100, -212], [293, -438], [185, -187], [604, -257], [327, -75], [295, -29], [141, -126], [563, -930], [127, -136], [233, -35], [35, -114], [-27, -223], [-339, -732], [-319, -342], [-183, -248], [-179, -406], [-96, -291], [-72, -72], [-193, 47], [-14, 40], [71, 161], [-74, 46], [-98, -63], [-212, -487], [-86, -359], [-23, -241], [57, -460], [-182, -255], [-231, -18], [-228, -72], [-202, -123], [-148, -235], [2, -111], [-71, -319], [-167, -243], [-540, -37], [-261, -90], [-109, -207], [-35, -208], [26, -95], [-28, -134], [-155, -220], [-120, -74], [-132, -38], [-90, 34], [-27, 51], [-122, 13], [-415, -52], [-804, -375], [-512, -223], [-124, -100], [-147, -254], [-48, -188], [13, -131], [-68, -311], [-426, -267], [-319, -157], [-1126, -389], [-470, -214], [-259, -159], [-213, -385], [-129, -135], [-333, -50], [-119, 14], [-85, 46], [-86, -4], [-659, -501], [-426, -179], [-579, -20], [-326, -77], [-573, -574], [-653, -232], [-291, 1], [-305, 114], [-267, 532], [-25, 87], [20, 146], [-64, 583], [-120, 411], [-82, 673], [-79, 260], [-62, 51], [-8, 279], [50, 741], [-49, 337], [-44, 309], [-211, 409], [-138, 377], [-410, 481], [-312, 528], [-151, 325], [-173, 578], [-267, 654], [-247, 327], [-350, 318], [-141, -4], [-286, 311], [-110, 244], [-154, 185], [-85, 183], [-90, 228], [36, 257], [-104, 592], [42, 254], [-1, 299], [-144, 461], [-113, 207], [-311, 737], [-144, 152], [-431, 321], [-290, 285], [-139, 423], [0, 145]], [[186091, 83639], [247, -618], [246, -352], [38, -202], [-34, -187], [-1, -284], [69, -327], [41, -97], [49, -220], [37, -72], [105, -136], [435, -338], [249, -245], [223, -196], [-9, -57], [-2, -9], [-2, -234], [32, -196], [170, -444], [49, -439], [28, -880], [62, -580], [121, -703], [82, -180], [147, 3], [61, -45], [191, -170], [234, -345], [284, -250], [213, -424], [105, -281], [182, -846], [115, -716], [374, -844], [83, 39], [-20, 43], [9, 124], [15, 49], [63, 41], [109, -110], [55, -100], [-35, -53], [10, -38], [100, -233], [52, -64], [61, -44], [109, 85], [125, -14], [120, -84], [34, -59], [-2, -66], [50, -82], [109, -5], [236, -100], [288, -478], [216, -299], [402, -416], [223, -406], [228, -336], [128, -101], [72, 56], [92, -67], [30, -73], [198, -366], [53, -292], [-40, -154], [-519, -275], [-221, -183], [28, -72], [53, -47], [63, 13], [-18, 60], [113, 54], [313, 11], [46, -89], [46, -54], [155, -108], [41, -68], [30, -134], [148, -270], [206, -261], [310, -307], [231, -56], [390, 72], [606, 406], [401, -38], [153, -96], [91, -10], [188, 72], [386, 300], [385, 173], [141, -83], [335, 33], [157, 99], [475, 55], [102, -27], [373, 100], [600, 200], [305, 182], [84, 132], [27, 115], [62, 52], [117, 36], [431, -144], [8, -60], [-162, -670], [66, -858], [-235, -330], [-64, -706], [-588, -1397], [-104, -133], [-174, -356], [-217, -576], [-265, -522], [-127, -363], [-25, -228], [-103, -306], [-259, -550], [-444, -809], [-160, -350], [-980, -1380], [-699, -877], [-131, -126], [-1046, -780], [-985, -1064], [-700, -955], [-642, -932], [-362, -734], [-205, -301], [-251, -122], [-480, -543], [-146, -86], [-74, -90], [-47, -108], [-58, -576], [-385, -792], [-62, -32], [54, -108], [-161, -427], [-25, -2], [-202, -175], [-109, -425], [20, -8], [-278, -1102], [78, -375], [364, -491], [133, -39], [-7, -367], [-76, -144], [-99, -578], [6, -41], [33, -32], [6, -1], [43, 25], [49, -34], [-66, -373], [-48, -8], [-1, -53], [107, -680], [103, -281], [77, 44], [134, -639], [15, -303], [417, -342], [142, -55], [24, -43], [-7, -102], [-36, -56], [78, 32], [50, -17], [8, -60], [-31, -2], [-9, -3], [-21, -9], [13, -28], [17, -1], [48, -493], [-136, -300], [50, -540], [-6, -531], [0, -1], [25, -128], [73, -280], [-70, -280], [-66, -35], [-9, -46], [30, -80], [45, -29], [21, 63], [77, -1023], [-39, -270], [131, -323], [105, -64], [2, -309], [-20, -65], [-62, -47], [-66, -242], [-13, -91], [21, -111], [-86, -212], [-378, -597], [-203, -268], [-108, -44], [11, -76], [33, -74], [-86, -114], [-576, -466], [-606, -286], [-251, -8], [-203, -233], [-340, -214], [-462, -356], [-4, 22], [-32, 23], [-7, 0], [-34, -24], [69, -120], [-241, -456], [-304, -405], [39, -33], [-36, -82], [-246, -25], [-237, -201], [-318, -468], [-399, -383], [-50, 5], [-8, 63], [-116, 107], [-25, -26], [1, -15], [23, -30], [5, -3], [-39, -717], [15, -196], [15, -36], [-2, 20], [216, -107], [98, -275], [69, -504], [164, -633], [127, -160], [65, -404], [11, -521], [-140, -1077], [88, 80], [47, -77], [-38, -217], [-96, -216], [-207, -339], [-55, -46], [-245, -144], [-1185, -541], [-356, -229], [-166, -160], [-243, -436], [134, -233], [97, -106], [51, 3], [42, -136], [-28, -509], [-325, -1525], [-92, -300], [-119, -178], [-212, -238], [-162, -85], [-436, -494], [-183, -300], [-77, -217], [-432, -875], [-457, -737], [-587, -573], [-682, -854], [-564, -525], [-693, -539], [-463, -245], [-258, -3], [-183, 50], [-176, -20], [-149, -100], [-55, -132], [-634, -204], [-368, -40], [-263, 99], [-441, 88], [-182, -32], [-51, -80], [-698, 96], [-220, -61], [-172, -100], [-163, -186], [-193, -97], [-711, 14], [-193, -76], [-200, -87], [-324, -302], [-328, 21], [-46, 28], [-444, 422], [-214, 249], [-363, -42], [46, -185], [-77, 51], [-84, 305], [97, 149], [22, -18], [33, 35], [-35, 196], [-348, 723], [-83, 64], [-45, -23], [-24, 207], [50, 135], [35, 12], [88, -79], [75, 19], [88, 107], [57, 134], [5, 381], [-87, 504], [-369, 616], [-435, 928], [-160, 517], [-148, 594], [-102, 268], [-237, 473], [-84, 86], [-672, 768], [-239, 534], [-227, 694], [10, 187], [-123, 359], [-146, 758], [-18, 311], [20, 254], [-143, 582], [-63, 134], [-88, 338], [-17, 315], [24, 39], [-3, 279], [-61, 786], [35, -35], [55, 107], [-27, 343], [-100, 328], [-249, 410], [-584, 1141], [-156, 558], [-495, 1229], [-304, 607], [-281, 360], [-133, 324], [-97, 604], [14, 376]], [[101321, 76109], [0, -1], [0, 0], [1, -5], [-8, -15], [-3, -3], [-2, -2], [-74, -52], [-21, -7], [-15, -3], [-23, -6], [-10, -1], [-7, -2], [6, 13], [81, 74], [4, 2], [1, 2], [7, 4], [20, 14], [2, 0], [0, 0], [41, 12], [0, 0], [0, -24]], [[105520, 18929], [-111, -54], [-144, -99], [-85, -325], [-12, -120], [-13, -114], [36, -259], [0, 0], [109, -164], [6, -33], [6, -33], [-14, -52], [-29, -114], [-38, -9], [-37, -9], [-1, -1], [-23, -41], [1, -78], [0, -76], [196, -256], [0, 0], [137, -91], [0, 0], [226, -87], [322, -218], [65, -60], [83, -76], [66, -90], [67, -89], [62, -159], [-94, -148], [-115, -182], [-18, -74], [-6, -24], [11, -150], [41, -83], [63, -127], [65, -65], [87, -89], [149, -58], [0, 0], [60, 7], [39, 4], [10, 47], [0, 0], [40, -36], [21, -66], [19, -62], [17, -513], [-754, -1230], [-8, -113], [-148, -133], [-411, -242], [0, 0], [-835, -289], [0, 0], [-634, -155], [-810, -147], [-294, -7], [-551, -11], [-207, 61], [-40, 55], [-44, 62], [-173, 73], [0, 0], [-1, -3], [-49, -74], [159, -519], [0, 0], [-71, 2], [0, 0], [1, -6], [11, -39], [0, 0], [5, -2], [48, -14], [0, 0], [102, -126], [37, -46], [-25, -95], [-22, -87], [-91, -210], [-45, -10], [-44, -9], [-39, -148], [-75, -281], [110, -191], [80, -138], [41, -40], [16, -16], [0, 0], [-124, -294], [-63, -45], [-93, -43], [-495, -226], [-602, -13], [-26, 8], [-86, 25], [-737, 384], [-46, 50], [-12, 13], [-161, 9], [0, 0], [-105, -121], [-30, -111], [-25, -89], [78, -447], [1, -374], [1, -244], [20, -55], [25, -70], [365, -386], [49, -8], [68, -11], [84, 3], [225, 10], [55, 56], [3, 57], [1, 31], [0, 0], [-23, 35], [-12, 18], [-113, 9], [29, 42], [235, 128], [70, 13], [63, 12], [38, -72], [74, -141], [31, -341], [-31, -222], [0, 0], [-62, -39], [-26, -17], [-3, 0], [-351, -64], [-97, 127], [25, 116], [0, 0], [-10, 16], [-62, 100], [0, 0], [-220, 66], [-96, -20], [-253, -154], [-15, -10], [-41, -81], [7, -57], [174, -80], [107, -49], [240, -68], [0, 0], [-508, -361], [-275, -405], [-20, -128], [41, -173], [11, -44], [27, -208], [28, -217], [-4, -24], [-7, -33], [-125, -198], [-225, -123], [-71, -161], [14, -40], [6, -19], [155, -70], [0, 0], [-70, -101], [-83, -12], [-28, -4], [-417, 45], [-190, -90], [-444, -210], [-17, -13], [-61, -47], [-207, -275], [-116, -207], [-141, -251], [-36, -114], [-8, -27], [15, -165], [190, -372], [278, -249], [238, -212], [436, -94], [103, 4], [171, 7], [46, -17], [39, -14], [37, -49], [62, -81], [37, -131], [1, -4], [-112, -672], [0, 0], [-130, -178], [-42, -8], [-50, -10], [-215, -218], [-217, -133], [-319, -196], [-330, -302], [-175, -161], [-83, -196], [8, -213], [-64, -403], [-16, -45], [-39, -109], [-113, -120]], [[91697, 0], [-17, 62], [-159, 64], [-29, 97], [8, 145], [2, 38], [43, 24], [147, 81], [105, -23], [0, 0], [-22, 30], [-11, 14], [69, 238], [-19, 127], [0, 0], [-64, 84], [-91, -244], [-10, -27], [-10, -82], [-11, -101], [0, 0], [-131, 85], [-29, 19], [0, 0], [-16, 57], [-10, 34], [-23, 493], [9, 64], [30, 213], [327, 115], [-4, 154], [-463, 363], [0, 0], [62, 32], [112, 57], [155, -16], [115, -12], [376, -172], [104, 3], [89, 2], [0, 0], [-205, 345], [8, 51], [5, 31], [0, 0], [-46, 84], [-88, 162], [0, 0], [-252, -240], [-254, 37], [-62, 10], [-13, -3], [-105, -21], [-59, 22], [-101, 38], [-4, 11], [-8, 22], [84, 127], [85, 71], [0, 0], [117, -33], [0, 0], [13, -62], [-39, -78], [30, 10], [204, 72], [0, 0], [-158, 86], [-118, 64], [0, 0], [-2, 78], [-1, 23], [0, 0], [155, 194], [0, 0], [37, 1], [83, 3], [52, 38], [49, 34], [-70, 164], [-105, 242], [0, 0], [-149, 17], [-181, -37], [0, 0], [14, -35], [9, -20], [0, 0], [77, -15], [133, -25], [0, 0], [-10, -13], [-15, -20], [-129, 5], [-367, 165], [-37, 16], [0, 0], [-52, 83], [0, 0], [3, 32], [2, 24], [0, 0], [-54, 15], [-262, -49], [-77, -14], [-3, -11], [-8, -33], [131, -37], [0, 0], [64, -141], [0, 0], [-5, -12], [-18, -40], [-90, -48], [-17, -9], [-85, 14], [-124, 174], [23, 174], [35, 63], [13, 1], [83, 7], [309, 265], [138, 117], [176, 90], [10, 5], [44, 144], [0, 0], [-107, -85], [-52, -40], [0, 0], [-46, 8], [-83, 14], [6, 145], [52, 103], [442, 36], [347, 28], [84, -215], [5, -15], [-8, -138], [0, 0], [126, -12], [95, -91], [-14, -57], [-20, -85], [-43, -59], [-48, -64], [61, -46], [18, -13], [322, 490], [1, 28], [1, 26], [0, 0], [-45, -56], [-120, -152], [-38, 19], [0, 0], [51, 318], [51, 107], [0, 0], [176, 163], [49, 4], [109, 10], [0, 0], [-150, 55], [-56, -59], [-68, -72], [-88, -50], [0, 0], [53, 264], [23, 115], [236, 176], [44, -27], [45, -90], [53, -28], [40, -21], [92, -34], [12, -4], [0, 0], [69, 46], [-3, 48], [-1, 15], [-139, 47], [-144, 48], [-129, 76], [-38, 23], [0, 0], [90, 145], [92, 146], [270, 177], [57, 37], [69, 176], [33, 83], [-5, 12], [-33, 78], [0, 0], [-213, 109], [-306, 157], [0, 0], [113, 177], [186, 485], [-30, 257], [-14, 120], [60, 183], [84, 257], [-36, 75], [-14, 29], [17, 66], [82, 212], [35, 87], [31, 45], [125, 183], [0, 0], [52, -41], [0, 0], [9, 117], [17, 225], [-28, 1], [-26, 2], [-24, -50], [-11, -24], [-28, -1], [-39, -2], [-104, 46], [-56, 24], [-20, 23], [-29, 33], [175, 207], [180, 31], [84, 58], [52, 173], [0, 0], [-258, -91], [-91, -32], [0, 0], [-73, 82], [-47, 53], [-95, 21], [-80, -47], [-95, -95], [-222, -223], [-67, 15], [-207, 43], [0, 0], [-62, 191], [-57, 177], [-53, 293], [-21, 219], [42, 125], [129, 375], [-7, 209], [-2, 46], [51, 292], [31, 60], [11, 21], [0, 0], [28, 14], [109, 57], [69, -32], [0, 0], [9, 13], [16, 24], [147, 575], [-75, 340], [-39, 111], [-52, 149], [-218, 1407], [-14, 228], [87, 205], [109, -63], [78, 0], [48, 0], [116, 132], [46, 437], [97, -3], [150, 607], [3, 13], [224, 744], [33, 63], [97, 185], [64, 80], [71, 89], [96, 289], [43, 134], [91, 606], [255, 525], [-20, 585], [36, 164], [96, 84], [2, 1], [28, 75], [61, 371], [10, 272], [-25, 257], [-24, 235], [-54, 325], [-36, 213], [-33, 310], [-60, 565], [56, 418], [14, 27], [3, 5], [0, 0], [9, -26], [8, -20], [98, 29], [9, 3], [59, 61], [0, 0], [72, 270], [39, 143], [-19, 457], [-21, 86], [-24, 27], [-58, 64], [-63, 133], [-8, 175], [24, 146], [171, 241], [70, 226], [0, 0], [49, 459], [8, 74], [0, 0], [301, 1090], [44, 236], [35, 190], [14, 173], [34, 421], [-42, 195], [0, 0], [97, 420], [114, 162], [6, 119], [3, 71], [-73, 333], [-46, 207], [20, 204], [80, 859], [-40, 324], [0, 0], [-69, 57], [-9, 136], [19, 207], [31, 34], [217, 234], [-5, 75], [-3, 47], [45, 434], [83, 547], [77, 506], [-10, 166], [-104, 510], [61, 813], [-11, 191], [-12, 204], [-111, 533], [-31, 276], [-31, 269], [13, 231], [-37, 231], [-809, 712], [-25, 89], [-9, 33], [-79, 128], [-186, 299], [-1014, 715], [-307, 168], [-419, 230], [-343, 264], [-167, 129], [-517, 350], [-137, 131], [-156, 148], [-217, 267], [-225, 278], [-167, 160], [-315, 567], [-54, 276], [10, 50], [13, 64], [0, 0], [32, -44], [56, 259], [-12, 250], [-134, 235], [-73, 162], [-295, 655], [-80, 133], [-54, 89], [-1043, 2323], [-244, 895], [-57, 103], [-14, 25], [-346, 980], [-518, 922], [-198, 559], [-214, 343], [-207, 190], [-120, 77], [-324, 206], [-247, 214], [-64, 55], [-43, 108], [0, 0], [12, 116], [45, 89], [0, 0], [118, -58], [81, 59], [1, 80], [1, 104], [-37, 114], [-19, 55], [-105, 148], [-163, 500], [-84, 256], [31, 202], [27, 174], [11, 35], [24, 73], [444, 606], [80, 72], [243, 217], [49, 2], [33, 2], [17, 36], [26, 60], [45, 9], [7, 1], [0, 0], [45, 50], [119, 131], [44, 108], [31, 157], [43, 218], [16, 226], [-16, 51], [-34, 105], [0, 0], [-92, 24], [-75, 19], [-201, -431], [-424, 393], [-168, 192], [71, 147], [109, 223], [-4, 580], [-40, 93], [0, 0], [51, 383], [257, 415], [169, 480], [151, 227], [12, 154], [29, 360], [-64, 137], [26, 102], [23, 85], [0, 0], [318, 193], [425, 114], [191, 257], [59, 137], [0, 0], [39, -22], [49, -29], [0, 0], [-105, 175], [8, 18], [117, 258], [166, -48], [0, 0], [14, 99], [11, 71], [0, 0], [-33, 26], [-85, 70], [-18, 91], [-19, 91], [61, 191], [85, 166], [25, 49], [622, 166], [87, 181], [11, 24], [16, 100], [17, 111], [76, 160], [21, 46], [0, 0], [355, 513], [22, 110], [-2, 62], [-1, 39], [-28, 75], [-49, 132], [-14, 11], [-32, 26], [0, 0], [-55, -79], [-103, -21], [0, 0], [-85, 115], [-8, 76], [6, 41], [9, 65], [67, 51], [0, 0], [87, 205], [25, 191], [-66, 861], [14, 422], [27, 831], [-274, 460], [-86, 111], [-117, 149], [-231, 326], [-21, 29], [-206, 486], [-21, 97], [45, 81], [75, 134], [110, 105], [33, -24], [315, -234], [0, 0], [-60, 94], [-326, 375], [0, 0], [-88, -111], [-38, -48], [-27, 36], [-109, 144], [-19, 51], [-23, 62], [-146, 146], [-146, 146], [-214, 102], [-69, 6], [-100, 9], [-117, -28], [-267, 210], [0, 0], [-5, 83], [-6, 86], [0, 0], [-114, -60], [-11, 10], [-43, 34], [402, 348], [716, -219], [144, -8], [222, -130], [86, -50], [238, -179], [314, -438], [67, -20], [93, -29], [115, -169], [330, -481], [-1, -18], [0, -15], [0, 0], [-33, -21], [-25, -16], [0, 0], [-2, -119], [6, -2], [54, -22], [44, 16], [29, 10], [0, 0], [23, 128], [1, 2], [-17, 396], [0, 0], [-3, 6], [-49, 105], [0, 0], [175, 208], [311, 369], [150, 349], [4, 9], [45, 33], [105, 75], [56, -5], [40, 52], [172, 226], [14, 419], [6, 190], [17, 46], [43, 123], [-1, 160], [0, 61], [486, 483], [85, 84], [0, 0], [233, -84], [42, -15], [17, -1], [166, -12], [0, 0], [30, 32], [63, 67], [-13, 175], [20, 31], [59, 89], [77, 4], [57, 3], [98, -56], [51, -30], [262, -5], [59, -1], [136, 27], [153, 152], [292, 288], [269, 114], [0, 0], [278, 372], [413, 387], [238, -94], [99, -40], [135, -267], [0, 0], [-6, -88], [-1, -1], [-172, -191], [-8, -32], [-7, -26], [0, 0], [-10, -9], [-70, -65], [-434, -134], [-14, -48], [-16, -55], [17, -97], [20, -116], [175, -341], [59, -219], [52, -194], [-36, -178], [-13, -60], [-255, -368], [-109, -232], [-24, -51], [244, -697], [56, -103], [44, -83], [0, 0], [39, -15], [143, 1], [131, 50], [100, 78], [145, 234], [28, 348], [2, 31], [0, 0], [-12, 37], [-31, 99], [-330, 615], [0, 0], [-9, 49], [-70, 375], [34, 70], [48, 99], [79, 59], [1134, 525], [43, 5], [96, 10], [-44, 245], [-206, -70], [-45, 11], [-50, 276], [3, 61], [0, 0], [90, 205], [148, 105], [0, 0], [51, -41], [53, -43], [275, -743], [146, 41], [130, 35], [22, -7], [365, -119], [347, -270], [76, -173], [35, -81], [-38, -146], [37, -183], [0, -4], [19, -34], [47, -88], [69, -60], [113, -21], [66, -12], [757, 153], [69, 14], [0, 0], [92, 4], [564, 23], [91, -48], [0, 0], [-2, -48], [0, 0], [72, -127], [95, -169], [87, -65], [439, -122], [200, -56], [202, 22], [202, 148], [43, 31], [489, 224], [254, 26], [0, 0], [-103, 92], [-167, 33], [-68, 1], [-32, 1], [-50, -32], [-22, -14], [0, 0], [-6, 117], [454, 1], [817, 112], [273, -23], [496, 33], [0, 0], [-21, -51], [-12, -30], [0, 0], [-41, -29], [-397, -78], [-143, -28], [-107, -184], [0, 0], [303, -647], [0, 0], [9, 2], [14, 4], [0, 0], [103, 226], [102, -53], [53, -27], [178, -215], [136, 34], [0, 0], [224, -97], [0, 0], [47, -61], [111, -79], [163, -5], [116, -108], [19, -18], [48, -94], [28, -53], [-153, -141], [0, 0], [-48, -411], [0, 0], [73, -93], [10, -12], [0, 0], [-77, -96], [-17, -21], [14, -26], [21, -40], [369, -23], [8, 0], [0, 0], [174, 107], [150, -41], [111, -31], [43, -41], [169, -181], [0, 0], [29, 15], [10, 5], [60, -30], [1, 0], [0, 0], [485, -380], [426, -529], [64, -118], [26, -48], [54, -133], [2, -186], [-9, -90], [-3, -35], [-54, -62], [-20, -82], [-19, -82], [-24, -435], [0, 0], [32, 43], [2, 10], [82, 370], [14, 19], [45, 63], [98, 18], [6, 1], [219, -79], [515, -553], [181, -154], [75, -198], [8, -219], [0, 0], [48, 113], [18, 42], [73, 40], [31, 17], [0, 0], [548, -109], [238, -5], [97, -2], [84, 64], [198, 30], [187, -23], [17, -2], [0, 0], [223, -91], [11, 21], [0, 0], [-57, 87], [0, 0], [123, 28], [75, -5], [99, -6], [432, -95], [253, -89], [0, 0], [21, -65], [-8, -162], [0, 0], [62, 144], [92, 23], [299, -233], [396, -107], [10, -2], [163, -161], [782, -768], [268, -500], [0, 0], [56, 219], [6, 20], [0, 0], [297, -348], [32, -84], [39, -101], [97, -904], [292, -1025], [173, -411], [38, -20], [14, -8], [107, 24], [288, -156], [0, 0], [8, -34], [56, -253], [-17, -110], [-16, -99], [-60, -178], [-222, -213], [-160, -213], [-76, -171], [-20, -45], [-38, -51], [-228, -297], [-53, -35], [-67, -43], [-82, -82], [-106, -107], [-188, -398], [9, -31], [43, -51], [86, -16], [126, 149], [28, 33], [13, 39], [30, 88], [101, 151], [21, 30], [0, 0], [62, 27], [93, 40], [43, 0], [0, 0], [42, -104], [-123, -352], [-62, -77], [-125, -155], [0, 0], [102, 0], [43, 0], [0, 0], [81, 100], [67, 162], [99, 240], [68, 35], [104, 53], [252, -70], [110, -8], [1094, -75], [234, -174], [0, 0], [-86, -334], [-5, -22], [0, 0], [-293, -760], [0, 0], [-189, -174], [-336, -106], [-121, -74], [-32, -19], [-395, -1], [-313, -136], [5, -52], [6, -54], [0, 0], [557, 47], [151, 124], [6, 2], [260, 81], [0, -58], [0, -32], [0, 0], [-16, -39], [-75, -190], [-27, -168], [26, -17], [17, 22], [62, 78], [165, 358], [78, 111], [98, 84], [0, 0], [-10, -97], [0, -7], [0, 0], [-40, -51], [0, 0], [4, -7], [16, -35], [0, 0], [28, 10], [248, 426], [9, -5], [60, -27], [-2, -43], [-1, -46], [36, -95], [0, 0], [7, 2], [1, 1], [89, 40], [8, 3], [1, 1], [47, 36], [-1, 33], [-11, -2], [-62, -12], [0, 0], [-36, 69], [-39, 74], [21, 177], [0, 0], [121, 90], [0, 0], [5, -10], [7, -13], [20, 2], [10, 1], [-22, 183], [143, 206], [72, 105], [0, 0], [23, -34], [8, -13], [57, 79], [46, 62], [55, 11], [91, 18], [56, -12], [68, -64], [72, -68], [16, -48], [9, -30], [61, -8], [35, 18], [112, 57], [0, 0], [63, -21], [275, -93], [130, -92], [0, 0], [12, -26], [18, -37], [0, 0], [-13, -28], [0, -1], [0, 0], [131, -70], [195, -4], [7, 0], [68, -68], [54, -163], [0, 0], [22, 11], [45, 24], [29, 25], [64, 57], [0, 0], [244, -305], [3, -3], [113, -12], [32, -16], [74, -38], [9, -21], [30, -70], [30, -223], [58, 3], [29, 38], [21, 26], [-21, 50], [96, 131], [46, 63], [57, -36], [82, -53], [122, -217], [29, -34], [41, -47], [17, -7], [30, -13], [44, -73], [-7, -182], [-3, -92], [-82, -160], [0, 0], [32, -43], [0, 0], [69, 114], [46, 77], [47, 23], [69, -85], [13, -50], [22, -85], [-10, -24], [-27, -67], [-78, 22], [0, 0], [-50, -118], [-10, -22], [-200, -796], [5, -40], [6, -46], [31, 6], [3, 1], [0, 0], [213, 313], [89, 324], [69, 247], [153, 97], [26, 17], [14, 1], [51, 6], [0, 0], [-10, -89], [-10, -85], [-30, -37], [-96, -119], [-117, -87], [0, 0], [108, -87], [28, 17], [41, 58], [49, 69], [0, 0], [157, 121], [54, 20], [234, 85], [46, -9], [63, -12], [33, 108], [-76, 71], [0, 0], [42, 54], [152, -34], [58, -13], [645, -373], [170, -98], [0, 0], [90, -3], [97, 64], [0, 0], [395, -183], [233, -9], [721, 134], [231, -31], [197, -27], [682, -479], [32, -27], [635, -548], [265, -385], [297, -347], [52, -61], [0, 0], [399, -355], [375, -218], [165, -54], [56, -18], [370, -3], [20, 0], [151, 42], [304, -84], [93, -42], [40, -44], [16, -18], [47, -117], [122, -302], [82, -431], [53, -274], [78, -326], [132, -547], [24, -350], [-44, -710], [-5, -88], [-14, -65], [-65, -292], [-166, -541], [-28, -138], [-188, -359], [-645, -955], [-53, -69], [-284, -367], [-292, -229], [-68, -94], [-71, -122], [-1, -1], [0, 0], [-37, -72], [-311, -612], [-212, -577], [-273, -535], [-293, -433], [-138, -98], [-13, 2], [-34, 4], [0, 0], [8, 28], [39, 126], [-18, 149], [-38, 41], [-92, 98], [-51, -12], [-27, -65], [-4, -10], [-2, -10], [-27, -122], [5, -125], [3, -77], [-117, -544], [-110, -329], [-40, -118], [0, -21], [0, -32], [50, -46], [27, -25], [0, 0], [28, 9], [0, 0], [-47, -378], [-47, -374], [88, -979], [1, -6], [5, -49], [34, -154], [-178, -1102], [-79, -487], [-8, -143], [-2, -37], [30, -274], [-146, -381], [-51, -41], [-42, -33], [-130, -256], [-44, -157], [-48, -171], [-24, -353], [21, -220], [30, -329], [-56, -265], [-362, -599], [-76, -219], [-138, -404], [0, 0], [-27, -26], [-186, -178], [-112, -174], [-9, -14], [-103, -260], [-126, -321], [0, 0], [16, -91], [64, -366], [-11, -107], [-109, -81], [-98, -72], [-230, -88], [-79, -30], [-150, -112], [-42, -52], [-148, -180], [0, 0], [-21, -98], [0, 0], [7, -14], [59, -118], [-132, -198], [-6, -9], [0, 0], [-187, -1], [-687, -3], [0, 0], [-23, 59], [81, 199], [-2, 26], [-1, 15], [0, 0], [-32, 10], [-12, 4], [0, 0], [-59, -29], [-54, -26], [-29, -39], [-35, -47], [7, -7], [20, -21], [59, 5], [33, -136], [0, -3], [-45, -43], [-11, -3], [-311, -78], [-204, -17], [-104, -9], [0, 0], [46, 37], [0, 0], [102, 1], [171, 0], [0, 0], [-114, 75], [-122, 81], [-207, -68], [-145, 13], [-55, 5], [-27, 35], [-292, -156], [-28, -188], [0, 0], [126, -4], [0, 0], [15, -30], [18, -35], [-5, -7], [-26, -36], [-154, -42], [0, 0], [-18, 3], [-107, 21], [-703, -472], [-165, 2], [-46, 1], [-57, -30], [-110, -60], [-311, -205], [-583, -506], [-338, -293], [-305, -404], [-245, -225], [-127, 59], [-70, 32], [-33, -123], [0, -2], [0, 0], [-249, -30], [0, 0], [2, -8], [40, -132], [8, -3], [78, -25], [66, -69], [72, -75], [-157, -454], [-136, -167], [-4, -96], [0, 0], [53, -41], [43, -34], [0, 0], [-25, -355], [140, -555], [-42, -185], [-21, -94], [-11, -441], [17, -100], [-146, -635], [-78, -144], [-88, -61], [-117, -81], [-110, -106], [-118, -114], [-192, -247], [-219, -350], [-93, -202], [-118, -255], [-127, -396], [-83, -260], [-204, -374], [-144, -262], [-91, -137], [-67, -101], [-348, -399], [0, 0], [-640, -565], [0, 0], [-30, 273], [0, 0], [136, 16], [55, 26], [133, 63], [280, 285], [192, 262], [414, 742], [95, 171], [10, 68], [20, 147], [-33, 54], [-25, 40], [0, 0], [-37, -6], [-13, -2], [-157, -122], [-17, -13], [0, 0], [-160, -44], [-90, 128], [-110, -57], [-10, -5], [0, 0], [-1, -40], [-9, -271], [-133, -481], [-13, -47], [-221, -248], [-82, -64], [-159, -126], [-117, -276], [-107, -409], [51, -91], [35, -64], [0, 0], [-316, -797], [-94, -234], [-120, -184], [-516, -506], [-352, -682], [-40, -43], [-283, -298], [-468, -233], [-173, -86], [-16, -5], [-28, -8], [-91, 33], [-215, 76], [-88, 76], [0, 0], [-266, 24], [-234, -94], [-83, 16], [-249, 47], [-88, 40], [-13, 6], [-297, 68], [-134, 131], [-88, 86], [-287, 34], [-201, 23], [-205, 55], [-24, 6], [0, 0], [-439, 525], [-17, 376], [63, 435], [52, 94], [104, -5], [59, 51], [17, 34], [8, 16], [8, 24], [14, 45], [10, 62], [0, 0], [-79, -128]], [[8077, 39874], [7, -1], [67, -10], [0, 0], [-133, -121], [-12, -4], [-7, -3], [-2, 1], [-10, 7], [-5, 4], [-49, 37], [-3, 4], [-2, 1], [2, 3], [14, 16], [1, 1], [2, 2], [0, 0], [0, 0], [0, 0], [1, 1], [10, 7], [2, 2], [117, 53], [0, 0]], [[9157, 39909], [5, -6], [0, -1], [0, -1], [0, -1], [0, -3], [-3, -25], [-1, -8], [0, -2], [0, 0], [0, -1], [0, 0], [-1, 0], [-1, -1], [-50, -15], [-13, 10], [-13, 27], [-1, 3], [-1, 1], [-1, 3], [-2, 8], [0, 2], [0, 1], [0, 0], [0, 1], [1, 1], [9, 4], [3, 1], [7, 0], [58, 4], [1, 0], [0, 0], [1, -1], [2, -1]], [[215641, 992], [132, -22], [25, 2], [89, 29], [116, 47], [52, 91], [59, -75], [29, -85], [-144, -7], [-69, -66], [162, -129], [3, -1], [30, -3], [67, -8], [17, 0], [8, 2], [72, 25], [40, 26], [199, 163], [210, 71], [65, -7], [52, -14], [45, -21], [7, -5], [3, -1], [6, -9], [27, -106], [0, -2], [0, -2], [0, -3], [1, -14], [1, -7], [0, -22], [-9, -31], [-11, -34], [-30, -37], [-46, -45], [-22, 0], [-81, 27], [-429, 11], [-14, -1], [-104, -83], [85, -120], [36, -30], [81, -28], [135, -48], [-42, 42], [-1, 1], [-5, 3], [-1, 1], [-3, 5], [-1, 1], [-1, 2], [-9, 28], [-1, 3], [0, 1], [1, 2], [6, 2], [9, 4], [3, 1], [76, 25], [47, -7], [68, -17], [41, -16], [1, -1], [1, -1], [3, -2], [11, -16], [1, -1], [2, -3], [0, -1], [0, -2], [-28, -59], [-38, -67], [-2, -1], [-5, -4], [-1, -1], [-11, -8], [-134, -31], [-178, 26], [-63, 87], [-1, 1], [-4, 8], [-5, 12], [-1, 2], [-1, 3], [-4, 7], [-3, 8], [-3, 24], [8, 17], [-9, 26], [-28, 26], [-16, 11], [-4, 2], [-2, 1], [-29, 12], [-9, -67], [-312, -19], [-96, 57], [-103, -32], [-2, -1], [-3, -1], [-9, -11], [3, -41], [6, -18], [9, -16], [9, -17], [4, -6], [0, -3], [3, -14], [0, -2], [-6, -27], [-5, -13], [-22, -10], [-25, -11], [-23, -9], [-17, -6], [-149, -11], [-6, 0], [-23, 1], [-3, 3], [-16, 46], [1, 31], [32, 96], [49, 117], [29, 15], [11, 15], [-8, 37], [-88, 260], [-30, 92], [113, 109], [-53, 107], [15, 70], [101, 158], [55, 34], [4, 0], [14, -1], [2, 0], [3, -1], [4, -1], [1, 0], [12, -8], [1, -2], [0, -1], [-22, -53], [55, -52], [-64, -260], [-15, -15], [-4, -11], [-4, -17], [2, -9], [11, -35], [10, -12], [19, -19]], [[216455, 462], [-2, 0], [-9, 4], [-2, 2], [-1, 0], [-1, 1], [-90, 49], [16, 25], [12, -1], [14, -8], [39, -24], [1, -1], [8, -7], [18, -16], [2, -2], [1, -2], [1, -1], [4, -7], [2, -4], [2, -3], [-1, 0], [-4, -2], [-3, -1], [-2, -1], [-1, -1], [-4, 0]], [[216378, 568], [-3, -2], [-53, 30], [-2, 2], [-7, 9], [-14, 22], [3, 11], [16, 9], [26, -23], [11, -22], [12, -6], [2, -2], [1, -1], [3, -1], [2, -2], [1, -1], [2, -3], [1, -1], [1, -1], [1, -11], [0, -3], [0, -1], [-2, -2], [-1, -1]], [[216417, 681], [-9, -7], [-1, 1], [-4, 1], [-3, 1], [-37, 19], [-3, 1], [-5, 3], [-1, 1], [2, 1], [1, 1], [5, 4], [42, -3], [1, 0], [2, -1], [1, -1], [13, -12], [-4, -9]], [[216142, 874], [-2, -1], [-30, 2], [-3, 1], [-4, 1], [-1, 0], [-2, 0], [-17, 5], [-17, 4], [-6, 2], [-9, 3], [-2, 0], [-1, 1], [-2, 2], [1, 3], [0, 1], [1, 1], [2, 3], [2, 2], [67, 32], [2, 1], [3, 1], [21, 9], [4, 2], [1, 0], [12, -1], [2, 0], [2, 0], [10, -4], [2, -1], [-15, -50], [-8, -10], [-11, -8], [-1, 0], [-1, -1]], [[215846, 1001], [-52, -11], [-14, 27], [-10, 97], [28, 39], [86, 78], [1, 0], [9, 6], [1, 1], [3, 1], [2, 1], [3, 0], [1, 0], [12, -9], [2, -2], [1, -1], [1, -1], [0, -2], [2, -6], [1, -4], [-1, -1], [-2, -3], [26, -22], [-48, -166], [-10, -7], [-16, -9], [-7, -1], [-15, -4], [-1, -1], [-3, 0]], [[215726, 1129], [-2, 0], [-2, 1], [0, 1], [7, 54], [4, 11], [11, 31], [26, 40], [2, 3], [1, 1], [1, 1], [3, 2], [3, 1], [1, 0], [5, 1], [2, 0], [5, -45], [-2, -40], [-1, -3], [-1, -1], [0, -2], [-12, -18], [-23, -28], [-5, -4], [-1, -1], [-3, -2], [-1, 0], [-5, -2], [-3, -1], [-10, 0]], [[215996, 1229], [-5, -1], [-1, 0], [-3, 1], [-32, 32], [-1, 1], [-3, 4], [-8, 14], [0, 2], [-1, 1], [-1, 7], [1, 2], [3, 5], [1, 1], [2, 1], [1, 0], [2, 1], [27, 7], [1, 0], [3, 0], [2, -1], [1, 0], [2, -1], [2, -2], [42, -30], [1, -2], [2, -4], [-1, -9], [-2, -2], [-2, -2], [-31, -24], [-2, -1]], [[215292, 1499], [-2, 0], [-24, 5], [-7, 10], [3, 5], [18, 9], [20, 0], [0, 2], [20, -2], [3, 0], [0, -1], [1, -3], [-8, -11], [-2, -2], [-3, -4], [-1, -1], [-2, -1], [-3, -2], [-2, 0], [-6, -4], [-1, 0], [-4, 0]], [[201034, 4023], [49, -4], [3, 1], [3, 0], [2, 0], [4, 0], [1, 0], [9, -2], [3, -1], [28, -22], [5, -4], [3, -3], [5, -8], [2, -18], [-1, -5], [-12, -11], [-8, -7], [-10, -5], [-2, -1], [-14, -7], [-3, -1], [-72, 9], [-40, 21], [-8, 5], [-15, 12], [0, 2], [-4, 5], [-1, 2], [0, 4], [0, 2], [1, 8], [2, 2], [1, 1], [3, 3], [66, 22]], [[200728, 3934], [-9, -5], [-80, 22], [-22, 13], [-17, 16], [-11, 16], [-5, 9], [-3, 10], [4, 12], [38, 24], [31, 17], [13, 5], [15, -6], [11, -7], [9, -6], [73, -61], [1, -1], [0, -1], [-8, -24], [-13, -15], [-15, -11], [-12, -7]], [[199379, 4301], [-7, -4], [-5, 2], [-46, 23], [-18, 14], [-3, 4], [-1, 1], [-1, 1], [-1, 3], [-3, 7], [0, 1], [-1, 6], [-1, 3], [1, 2], [1, 1], [2, 4], [4, 8], [2, 3], [5, 3], [8, 6], [2, 1], [1, 1], [3, 1], [11, 2], [1, 0], [40, 3], [2, -1], [3, 0], [2, -1], [1, 0], [1, -2], [3, -3], [12, -19], [7, -14], [2, -18], [0, -5], [-8, -17], [-2, -2], [-2, -2], [-15, -12]], [[222988, 12559], [-2, 0], [-1, 0], [-4, 1], [-2, 0], [-6, 1], [-2, 1], [-3, 2], [-8, 22], [0, 2], [0, 2], [1, 3], [1, 5], [1, 1], [8, 3], [2, -1], [7, -3], [1, -1], [13, -17], [1, 0], [1, -3], [2, -2], [0, -2], [1, -3], [1, -3], [1, -2], [-1, 0], [-2, -2], [-3, -2], [-5, -1], [-2, -1]], [[223008, 13522], [-2, -1], [-5, 0], [-2, 0], [-2, 0], [-3, 1], [-1, 0], [-1, 0], [-1, 1], [-1, 1], [-20, 25], [-2, 11], [-1, 6], [0, 1], [0, 2], [1, 2], [2, 12], [12, 24], [13, 6], [1, 0], [5, 2], [1, 1], [1, 0], [2, 0], [4, -1], [11, -3], [2, -1], [3, -2], [1, -2], [4, -5], [1, -1], [3, -6], [2, -3], [1, -3], [1, -4], [0, -3], [1, -2], [1, -9], [1, -20], [0, -1], [-2, -3], [-1, -3], [-1, -1], [-7, -10], [-15, -8], [-7, -3]], [[190805, 30778], [-1, 0], [-1, 0], [-5, 1], [-2, 1], [-1, 0], [-4, 3], [-2, 1], [-15, 18], [-3, 6], [-1, 1], [-1, 3], [2, 22], [1, 2], [0, 2], [2, 2], [2, 3], [1, 0], [1, 1], [5, 2], [36, 4], [1, 0], [1, 0], [1, -1], [0, 0], [1, -2], [1, -3], [4, -10], [1, -3], [0, -1], [5, -18], [-6, -9], [0, -1], [-15, -21], [-5, -2], [-3, -1]], [[102348, 74899], [51, -50], [25, -24], [29, -36], [0, -1], [0, 0], [1, -1], [-3, -13], [-2, -7], [-1, -2], [0, 0], [-3, -4], [-5, -5], [0, 0], [-3, -3], [-1, -1], [-9, -5], [-25, -13], [-33, -13], [-40, 5], [-11, 3], [-6, 1], [-22, 7], [-23, 7], [-1, 2], [0, 0], [-1, 0], [-1, 1], [-1, 2], [-1, 3], [-1, 5], [-1, 3], [-1, 0], [0, 1], [0, 1], [0, 0], [0, 1], [0, 2], [-1, 7], [-1, 23], [-1, 32], [11, 22], [7, 14], [26, 37], [1, 1], [7, 6], [0, 1], [4, 3], [2, 1], [34, -13]], [[102346, 75503], [1, -1], [1, -1], [4, -5], [2, -4], [16, -23], [7, -10], [8, -12], [6, -10], [1, -1], [0, 0], [3, -10], [0, -1], [1, -2], [0, -2], [0, -1], [4, -26], [0, -2], [0, -15], [-2, -44], [0, 0], [-8, -2], [-14, 2], [-2, 1], [-6, 2], [-44, 37], [-32, 27], [-10, 73], [17, 15], [47, 15], [0, 0]], [[279389, 43518], [35, 11], [1, 1], [0, 0], [62, -150], [28, -293]], [[279515, 43087], [26, -265], [136, -338], [16, -39]], [[279693, 42445], [87, -453]], [[279780, 41992], [127, -75], [93, -239]], [[28e4, 41678], [22, -57], [-45, -217]], [[279977, 41404], [84, -63]], [[280061, 41341], [44, -34], [29, -571]], [[280134, 40736], [10, -196]], [[280144, 40540], [49, -297]], [[280193, 40243], [42, -151]], [[280235, 40092], [103, -373]], [[280338, 39719], [83, -101], [0, 0], [57, -2], [78, -4], [114, 94]], [[280670, 39706], [290, 239], [28, -4], [6, 0], [57, -87], [21, -193]], [[281072, 39661], [138, -144], [147, -152]], [[281357, 39365], [134, -105], [68, -52], [192, -1227], [7, -480]], [[281758, 37501], [85, -216]], [[281843, 37285], [10, -25]], [[281853, 37260], [205, -304], [138, -263], [180, -570], [-2, -19], [-46, -413], [-22, -74]], [[282306, 35617], [-34, -115], [16, -108]], [[282288, 35394], [63, -95], [73, -109], [32, -184]], [[282456, 35006], [54, -307], [166, -225], [4, -5], [336, -227], [45, -27], [176, -106], [204, -10], [54, -2], [66, -269], [54, -68], [85, -107], [504, -226]], [[284204, 33427], [432, -261], [21, -25], [53, -63], [91, -220], [-24, -10], [-2, -1], [-27, 17], [-152, 97]], [[284596, 32961], [-28, -15], [29, -198], [131, -242], [147, -101]], [[284875, 32405], [100, -69], [44, -108]], [[285019, 32228], [21, -51]], [[285040, 32177], [154, -406], [181, -866]], [[285375, 30905], [38, -283], [231, -79], [135, -46]], [[285779, 30497], [-125, 367], [21, 89], [14, 60], [37, 33], [36, 33], [120, -241]], [[285882, 30838], [374, -310], [0, 0], [20, 65], [10, 29]], [[286286, 30622], [-76, 63], [-7, 39], [-13, 72], [28, 70], [0, 0], [69, -31], [124, -233], [26, -209], [-37, -632]], [[286400, 29761], [0, 0], [-86, -165], [0, 0], [-61, 50], [-46, 38], [0, 0], [1, -2], [114, -221], [16, -21], [199, -86]], [[286537, 29354], [99, 44], [53, -29], [29, -103], [34, -124]], [[286752, 29142], [230, -237], [47, -5], [153, -17], [0, 0], [-4, 56]], [[287178, 28939], [-29, 41], [92, -8], [56, -104]], [[287297, 28868], [144, -267], [54, -163], [135, -212]], [[287630, 28226], [530, -645], [8, -39], [62, -272]], [[288230, 27270], [10, -167], [9, -13]], [[288249, 27090], [124, -181], [33, -107]], [[288406, 26802], [36, -114]], [[288442, 26688], [-47, -934]], [[288395, 25754], [-21, -45], [2, -158], [1, -212], [82, -143], [27, -47], [151, -446], [39, -132]], [[288676, 24571], [93, -321]], [[288769, 24250], [-21, -25], [0, 0], [4, 0], [16, -1], [53, -145]], [[288821, 24079], [14, -137], [23, -229], [-14, -96]], [[288844, 23617], [-8, -61]], [[288836, 23556], [-152, -355], [-113, -189]], [[288571, 23012], [4, -41], [10, -7]], [[288585, 22964], [61, -42], [-6, -88], [0, -3], [-152, -732], [-125, -339]], [[288363, 21760], [0, 0], [-41, -228], [1, -110], [0, -54], [12, -29], [9, -20], [18, -5]], [[288362, 21314], [20, -5], [-3, -35], [-9, -139], [-23, -94], [-57, -238]], [[288290, 20803], [-139, -410], [-51, -83], [-159, -259], [-29, -88], [-7, -21], [-6, -56], [8, -14]], [[287907, 19872], [36, -61], [-31, -119], [-35, -134], [0, 0], [-42, -34], [-165, -132]], [[287670, 19392], [-171, -64], [-68, 6], [-16, -17], [1, -43], [40, -37], [45, -42]], [[287501, 19195], [-239, -159]], [[287262, 19036], [-116, -77], [-71, -187], [0, 0]], [[287075, 18772], [-1, -147], [-25, -53], [-95, -200]], [[286954, 18372], [-24, -7], [-68, -20], [-129, 84], [0, 0], [-3, -30], [-3, -27], [0, 0], [105, -141], [12, -5], [11, -5]], [[286855, 18221], [13, 38], [0, 0], [-4, -51]], [[286864, 18208], [-12, -144], [-25, -31], [-87, 2], [-87, 3], [0, 0], [113, -47], [61, 6], [0, 0]], [[286827, 17997], [-62, -128], [-49, -101]], [[286716, 17768], [-175, -272], [-12, -18], [-150, -609], [9, -88]], [[286388, 16781], [13, -130], [-116, -110]], [[286285, 16541], [-371, -608]], [[285914, 15933], [-59, -221], [-43, -487], [-112, -495]], [[285700, 14730], [-8, -351], [30, -123], [9, -33], [-6, -92], [-13, -192], [-40, -30], [-224, -174], [-243, -103]], [[285205, 13632], [-506, -24], [-464, -22]], [[284235, 13586], [-497, -70], [-110, -134], [-29, -36], [50, 12], [94, 22], [0, 0]], [[283743, 13380], [-746, -674]], [[282997, 12706], [-539, -105], [0, 0], [-16, -65]], [[282442, 12536], [82, -165]], [[282524, 12371], [33, 24], [49, 36]], [[282606, 12431], [52, -55], [18, -19], [2, -41], [3, -106], [-49, -69], [-19, -28]], [[282613, 12113], [-43, 10], [-21, 34], [-5, 8], [1, 2], [1, 6], [-128, 141], [-136, 149]], [[282282, 12463], [-357, 164], [-142, 154]], [[281783, 12781], [-10, 89], [105, 125]], [[281878, 12995], [-49, 81]], [[281829, 13076], [-35, 59]], [[281794, 13135], [-144, 10], [-24, -13]], [[281626, 13132], [-82, -196], [0, 0], [-144, -95], [-45, -2]], [[281355, 12839], [-53, -1], [-101, 121], [6, 15]], [[281207, 12974], [2, 6], [47, -11], [10, -3], [118, 50]], [[281384, 13016], [76, 141]], [[281460, 13157], [49, 91], [0, 0]], [[281509, 13248], [-22, 98]], [[281487, 13346], [-135, 203], [-38, 21]], [[281314, 13570], [-350, -291], [8, -143]], [[280972, 13136], [3, -60]], [[280975, 13076], [-277, -196], [-204, -145]], [[280494, 12735], [-48, -58], [-42, -51], [-187, -128], [-67, -14]], [[280150, 12484], [-72, -15], [-484, 236], [-556, 272]], [[279038, 12977], [-285, 88]], [[278753, 13065], [-151, -16], [-144, -16]], [[278458, 13033], [-144, 27], [-66, 12], [-111, 115], [-87, 52], [-110, 66]], [[277940, 13305], [-312, 19], [-145, 116], [-102, 82], [-313, 438], [-176, 246], [-10, 38]], [[276882, 14244], [-79, 269], [127, 155]], [[276930, 14668], [20, 135]], [[276950, 14803], [-51, 234]], [[276899, 15037], [-78, 210], [-9, 25], [-5, 8], [-142, 268], [-97, 128], [-56, 72], [-124, 110]], [[276388, 15858], [-266, 235], [0, 0], [40, -15], [47, -18]], [[276209, 16060], [275, -270], [129, -159], [52, -63], [132, -225], [0, 0], [-63, 137], [-76, 164], [-372, 350]], [[276286, 15994], [-106, 99], [-231, 58]], [[275949, 16151], [-108, -78], [-76, -54], [-21, -3]], [[275744, 16016], [-248, -32], [-17, 9], [-60, 34], [0, 0], [31, 62], [30, 56], [114, 62]], [[275594, 16207], [126, 161], [3, 3], [82, 433], [22, 118], [0, 0], [-240, 456], [-162, 307], [-29, -2], [-26, -54], [-26, -53]], [[275344, 17576], [-220, -900], [-132, -107]], [[274992, 16569], [-82, -23], [-498, -135], [-75, 79], [0, 0], [51, 120], [93, 223], [32, -4], [236, -27]], [[274749, 16802], [140, 505]], [[274889, 17307], [21, 380], [81, 235], [14, 39], [0, 0], [85, 121], [85, 122], [35, 135], [121, 460]], [[275331, 18799], [-7, 64], [-8, 65], [-185, 619]], [[275131, 19547], [0, 0], [-1, -45], [-5, -143], [-139, -412]], [[274986, 18947], [-225, -507]], [[274761, 18440], [-114, -102], [-186, -169], [-47, 32], [-268, -238]], [[274146, 17963], [-622, -780]], [[273524, 17183], [-87, -224], [0, 0], [79, 31]], [[273516, 16990], [73, 28], [0, 0], [15, -274], [-21, -14], [-21, -13], [-460, 329]], [[273102, 17046], [-226, 162]], [[272876, 17208], [0, 0], [40, 26]], [[272916, 17234], [53, 36], [129, -5], [-138, 594]], [[272960, 17859], [-97, 130], [-94, 126]], [[272769, 18115], [-284, 640]], [[272485, 18755], [-91, 42], [-99, -4]], [[272295, 18793], [-193, -8], [0, 0], [-42, 97], [-92, 218], [-9, 127], [0, 0], [41, -18]], [[272e3, 19209], [61, -26], [0, 0], [64, 116], [-20, 130], [-65, 92], [0, 0], [-61, 47], [-189, 143], [-57, 58], [-138, 140], [-169, 44], [0, 0], [-11, -43], [-9, -33]], [[271406, 19877], [-1202, 293]], [[270204, 20170], [-338, 260], [-458, 236]], [[269408, 20666], [-339, -91], [-179, -49], [-340, 16]], [[268550, 20542], [-316, -35], [-642, -73]], [[267592, 20434], [-392, -200]], [[267200, 20234], [-446, -228]], [[266754, 20006], [-708, -238], [-202, -20]], [[265844, 19748], [-296, -28], [-340, 55]], [[265208, 19775], [-128, 20]], [[265080, 19795], [-132, -42], [-15, -5], [-139, -86], [-737, -454], [-229, -108]], [[263828, 19100], [-145, -67]], [[263683, 19033], [-162, -37]], [[263521, 18996], [-46, -30], [-51, -34], [0, 0], [-97, -127], [-113, -347], [-126, -217], [-88, -152], [0, 0], [-42, -35], [-163, -133], [-53, -10], [-127, -26], [-81, 10]], [[262534, 17895], [-44, 5], [-121, 97]], [[262369, 17997], [-253, -48], [-529, -98], [-41, 31], [-151, 111], [-252, 27]], [[261143, 18020], [-218, 24]], [[260925, 18044], [-563, -86], [-620, -49]], [[259742, 17909], [-90, -39], [-79, -34]], [[259573, 17836], [-136, -109], [-95, -153]], [[259342, 17574], [-18, -117], [-279, -161], [0, 0], [-54, -14], [-327, -86]], [[258664, 17196], [-361, -361], [-80, -41], [-333, -171], [-43, 0], [-140, 3], [-110, 35]], [[257597, 16661], [-159, 52]], [[257438, 16713], [-602, -41], [-579, 336]], [[256257, 17008], [-221, 258], [-31, 36]], [[256005, 17302], [-62, 46], [-138, 102]], [[255805, 17450], [-138, 49], [-42, -16], [-54, -21], [-39, 9]], [[255532, 17471], [-16, 4], [0, 0], [-6, 7], [-53, 58]], [[255457, 17540], [-33, 294], [-7, 58], [13, 471], [0, 0]], [[255430, 18363], [31, -12], [14, -6], [46, -73]], [[255521, 18272], [8, -12], [65, -29], [10, -4], [12, 2], [125, 11], [67, 65], [44, 44]], [[255852, 18349], [159, 277]], [[256011, 18626], [12, 186]], [[256023, 18812], [-31, 253], [79, 555]], [[256071, 19620], [-2, 641], [-34, 121]], [[256035, 20382], [-24, 87]], [[256011, 20469], [-414, 916]], [[255597, 21385], [-113, 340]], [[255484, 21725], [-85, 495], [0, 0], [-9, 465]], [[255390, 22685], [-85, 611]], [[255305, 23296], [0, 0], [-225, 490]], [[255080, 23786], [-212, 367], [-87, 152], [-96, 576]], [[254685, 24881], [-15, 92]], [[254670, 24973], [-116, 352]], [[254554, 25325], [-326, 624]], [[254228, 25949], [-288, 373], [-52, 186]], [[253888, 26508], [7, 12]], [[253895, 26520], [42, 73], [0, 0], [95, 46]], [[254032, 26639], [0, 0], [78, -245], [-3, -80], [156, -301], [31, -3], [0, 0], [109, 98], [0, 0], [15, 27], [25, 46], [5, 214]], [[254448, 26395], [-274, 324], [-104, 278], [-28, 72], [18, 107]], [[254060, 27176], [18, 32], [27, 48], [0, 0], [76, -120]], [[254181, 27136], [152, -238], [111, -217]], [[254444, 26681], [105, -329]], [[254549, 26352], [63, -85], [78, 49], [39, 25], [28, 73], [0, 0]], [[254757, 26414], [-32, 554]], [[254725, 26968], [-303, 636], [-85, 237], [-107, 300]], [[254230, 28141], [-191, 310], [-8, 85], [24, 293], [11, 134], [159, 437], [0, 0], [122, 119]], [[254347, 29519], [24, 73], [41, 467]], [[254412, 30059], [-102, 370], [-31, 113], [0, 0], [277, 819], [0, 0], [94, 79], [0, 0], [60, 12], [17, -23], [0, 0], [-40, -91], [-41, -208]], [[254646, 31130], [-15, -81], [35, -349], [30, -60], [13, 2], [13, 2], [164, 106], [13, 8], [154, 451]], [[255053, 31209], [64, 185], [0, 0], [313, 168]], [[255430, 31562], [388, 208], [0, 0]], [[255818, 31770], [368, 427], [662, 464]], [[256848, 32661], [196, -5], [533, -11], [187, 38], [35, 15], [31, 12], [92, 99], [48, 53]], [[257970, 32862], [19, 57], [148, 121], [278, 50]], [[258415, 33090], [296, 53]], [[258711, 33143], [257, 323], [0, 0], [122, 29], [27, -9], [150, -48], [311, 52]], [[259578, 33490], [347, 58]], [[259925, 33548], [432, 195]], [[260357, 33743], [197, 119], [139, 85]], [[260693, 33947], [48, 47], [82, 81], [80, 119], [61, 90]], [[260964, 34284], [259, 559]], [[261223, 34843], [145, 313], [0, 0], [115, 78], [92, 92], [157, 158]], [[261732, 35484], [56, 225]], [[261788, 35709], [-121, 102], [0, 0], [-62, 422], [28, 269], [122, 232], [239, 237], [149, 149], [-8, 22], [-6, 19], [4, 19], [19, 72], [131, 209], [93, 21], [18, -66], [-27, -11], [0, 0], [4, -75], [10, -163]], [[262381, 37167], [209, -409], [92, -235], [0, 0], [1, -11], [8, -76]], [[262691, 36436], [83, -118]], [[262774, 36318], [71, -103]], [[262845, 36215], [0, 0], [39, 304], [-5, 56], [-7, 69], [0, 0], [204, -13], [8, 54], [17, 110]], [[263101, 36795], [-320, 564], [0, 0], [134, 62]], [[262915, 37421], [42, 20], [3, 49], [2, 44]], [[262962, 37534], [-64, 29], [-14, 6], [-23, 49], [-2, 5], [0, 0], [28, 107], [0, 0], [38, 11], [46, 12], [39, -32], [46, -36], [-12, -28], [-17, -37], [-36, 9]], [[262991, 37629], [-21, 5], [0, 0], [38, -44], [115, -132], [18, 18], [54, 54], [179, -60], [160, -54], [369, 25], [84, 5]], [[263987, 37446], [-170, 79], [-139, 13], [-24, 108]], [[263654, 37646], [-32, 145]], [[263622, 37791], [226, 327]], [[263848, 38118], [55, 133], [0, 0], [-49, 56], [0, 0], [-87, -157], [0, 0], [-73, -15], [-82, -16]], [[263612, 38119], [-24, -42], [-16, -27], [0, 0], [-17, 207]], [[263555, 38257], [26, 94], [34, 119], [0, 0], [143, 4], [52, 49], [16, 114], [0, 0], [123, -12], [172, -137], [12, -3], [93, -22], [0, 0], [-31, 122], [-60, 243], [-44, 28], [-73, 46], [0, 0], [499, -47], [0, 0], [-94, 135]], [[264423, 38990], [-26, 38]], [[264397, 39028], [-75, 47], [-21, 41]], [[264301, 39116], [-58, 111], [-24, 108], [176, 159]], [[264395, 39494], [0, 0], [29, -20], [30, -22], [132, 73], [0, 0], [9, 72], [9, 69], [0, 0], [44, 46], [0, 0]], [[264648, 39712], [163, -179]], [[264811, 39533], [57, -111]], [[264868, 39422], [9, 3], [14, 4]], [[264891, 39429], [142, 452]], [[265033, 39881], [-23, 180], [58, 86]], [[265068, 40147], [72, -258], [5, -17], [104, 61], [0, 0], [-37, 45], [145, 54], [41, -71], [47, -82], [0, 0], [57, 63], [89, 196]], [[265591, 40138], [33, 153]], [[265624, 40291], [-18, 54], [-10, 28], [101, 39]], [[265697, 40412], [68, 27], [114, -145]], [[265879, 40294], [61, -134], [0, 0], [24, 25], [50, 51]], [[266014, 40236], [23, 0], [56, 1], [257, -250], [277, -453]], [[266627, 39534], [44, -31], [59, -180], [47, -140], [-15, -175]], [[266762, 39008], [-11, -136], [-102, -418]], [[266649, 38454], [-86, -66], [-17, -30], [4, -11], [18, -41], [0, 0], [286, 262], [69, 64], [76, 306], [0, 0], [76, 40], [0, 0], [36, 96], [0, 0], [-25, 84], [-10, 12]], [[267076, 39170], [-54, 62], [0, 0], [49, 27], [25, 13], [0, 0], [29, 1]], [[267125, 39273], [130, 2], [119, -37], [132, -41], [71, -51]], [[267577, 39146], [120, -85], [80, 81]], [[267777, 39142], [90, -6], [14, -1], [40, -18]], [[267921, 39117], [34, -15], [77, -131]], [[268032, 38971], [1, 0]], [[268033, 38971], [55, 44], [120, 194], [12, 174]], [[268220, 39383], [12, 170]], [[268232, 39553], [-96, -44], [-138, 29], [-36, 36], [-109, 108], [16, 98], [83, 220], [22, 59], [202, 163]], [[268176, 40222], [16, 13], [0, 0]], [[268192, 40235], [138, 461], [41, -9]], [[268371, 40687], [49, -11], [79, 58], [19, 13], [0, 0]], [[268518, 40747], [116, 147]], [[268634, 40894], [-49, 98], [-35, 70], [16, 174]], [[268566, 41236], [11, 122], [49, 67], [89, 121], [138, 46]], [[268853, 41592], [77, -8], [134, -12], [0, 0]], [[269064, 41572], [-173, 120], [24, 235], [8, 4], [32, 15], [102, -43], [103, -180]], [[269160, 41723], [91, -97], [0, 0], [-9, 89], [-6, 59], [0, 0]], [[269236, 41774], [-86, 88], [131, 296], [269, 25]], [[269550, 42183], [5, -5]], [[269555, 42178], [93, -107]], [[269648, 42071], [147, -7]], [[269795, 42064], [53, -3]], [[269848, 42061], [655, 65], [54, 49]], [[270557, 42175], [90, 82], [128, 553]], [[270775, 42810], [-160, 180], [-15, 17], [0, 0], [-76, -8], [-159, -17], [-16, -10]], [[270349, 42972], [-79, -49], [-277, 257]], [[269993, 43180], [10, 50], [2, 12], [119, 112], [24, -31], [42, -52], [0, 0], [111, 19], [153, 26], [161, -217], [15, -19], [0, 0], [48, -10], [178, -34], [213, -149]], [[271069, 42887], [75, -100], [84, -113]], [[271228, 42674], [141, -55]], [[271369, 42619], [401, -27], [0, 0], [50, -47]], [[271820, 42545], [48, -44], [150, -218], [-5, -32], [16, -26], [175, 47], [69, 19], [82, 4], [219, 12], [0, 0], [21, -46], [17, -35], [0, 0], [198, -135], [0, 0], [21, -6], [95, -29], [10, 4], [96, 37], [59, 78], [-30, 0], [0, 0], [80, 73], [126, 43]], [[273267, 42291], [178, -84], [68, -33]], [[273513, 42174], [93, -304], [173, -14], [30, 24]], [[273809, 41880], [55, 44]], [[273864, 41924], [50, 201]], [[273914, 42125], [-17, 15], [-15, 13]], [[273882, 42153], [-79, -14], [-27, 45], [-8, 12], [0, 0], [66, 69], [158, 165]], [[273992, 42430], [57, 22], [49, 19], [0, 0], [-51, -44], [-4, -44]], [[274043, 42383], [89, -222], [34, -86], [0, 0], [81, -4], [7, 19], [10, 23]], [[274264, 42113], [-63, 46], [50, 22], [32, 14], [83, -78], [50, -100]], [[274416, 42017], [1, -33]], [[274417, 41984], [1, -22], [0, 0], [-183, -205]], [[274235, 41757], [-92, -192], [-14, -28], [-31, -189]], [[274098, 41348], [53, -106], [0, 0], [-27, -39], [-54, -79], [-139, -91], [-164, 13], [-36, 3]], [[273731, 41049], [0, 0], [-41, -9], [-87, -20], [-73, -65], [-49, -206], [17, -279], [13, -9], [47, -32]], [[273558, 40429], [41, 37], [27, 25], [0, 0], [-123, -542], [-136, -141]], [[273367, 39808], [-108, -190], [-49, -86], [0, 0]], [[273210, 39532], [-20, -80], [-411, -159]], [[272779, 39293], [-64, -25], [6, -10], [5, -10], [45, -19], [0, 0], [146, 66], [0, 0], [185, -128]], [[273102, 39167], [173, -198]], [[273275, 38969], [22, -107], [13, -62], [209, -14]], [[273519, 38786], [101, -88]], [[273620, 38698], [77, -68]], [[273697, 38630], [272, -298], [255, -279]], [[274224, 38053], [171, -28]], [[274395, 38025], [542, -294], [209, -157], [99, -167]], [[275245, 37407], [269, -273]], [[275514, 37134], [81, -43], [17, -9]], [[275612, 37082], [605, -163], [202, -377], [85, -158]], [[276504, 36384], [328, -219], [241, -162], [38, -4], [61, -6], [196, 54], [141, 39], [77, 58], [214, 163], [150, 417]], [[277950, 36724], [252, 702]], [[278202, 37426], [78, 452], [6, 34], [-15, 100], [16, 106], [28, 182], [89, 330]], [[278404, 38630], [36, 133]], [[278440, 38763], [48, 320]], [[278488, 39083], [-74, 617]], [[278414, 39700], [-71, 599], [47, 269]], [[278390, 40568], [23, 135], [79, 135]], [[278492, 40838], [0, 0], [43, -6], [0, 0], [1, -80], [0, 0], [36, 73], [7, 15], [0, 0], [-60, 191]], [[278519, 41031], [-75, 237], [0, 0], [184, 307], [0, 0], [84, -26], [0, 0], [4, -13], [7, -23], [0, 0], [40, 57]], [[278763, 41570], [-7, 52], [-14, 95]], [[278742, 41717], [-187, 79], [0, 0], [-61, -65], [0, 0], [-44, 25], [0, 0], [189, 567], [28, 46], [34, 57], [11, -2], [10, -1], [68, 199], [6, 18], [12, 60], [128, 629]], [[278936, 43329], [176, 294]], [[279112, 43623], [77, 189], [0, 0], [43, 5]], [[279232, 43817], [38, 4], [17, -13]], [[279287, 43808], [18, -16], [-19, -121]], [[279286, 43671], [-11, -75], [114, -78]], [[283971, 7628], [-150, -66], [-57, 22], [-52, 81], [-43, 67], [-3, 56], [0, 10], [63, 73], [57, -115]], [[283786, 7756], [42, -5], [33, -5], [0, 0], [18, 21], [16, 18], [-22, 91], [-13, 50], [0, 0], [59, 47]], [[283919, 7973], [28, -16], [23, -13], [15, -36], [7, -17], [-7, -167], [-3, -91], [0, 0], [-11, -5]], [[281266, 10324], [149, -48], [124, -40], [38, 8], [52, 10]], [[281629, 10254], [779, -383]], [[282408, 9871], [133, -32], [37, -9], [48, 8]], [[282626, 9838], [346, 57], [-2, 6], [-17, 60], [72, 37], [99, 51], [344, -6]], [[283468, 10043], [531, 275], [179, -112], [105, -171], [-12, -92], [-23, -175]], [[284248, 9768], [-2, -555]], [[284246, 9213], [-1, -347], [0, 0], [-48, 73], [0, 0]], [[284197, 8939], [-53, -22]], [[284144, 8917], [-39, -70]], [[284105, 8847], [-92, -222]], [[284013, 8625], [-24, -139]], [[283989, 8486], [-46, -258], [-138, -196]], [[283805, 8032], [-80, -113], [0, 0], [-295, -63], [-80, -260], [0, 0], [-98, -74], [-111, 60], [-24, 13]], [[283117, 7595], [45, 135], [3, 10], [2, 8], [0, 0], [-4, -1], [-6, -3], [-54, -112], [0, 0], [-1, -23], [0, -17], [15, -28]], [[283117, 7564], [70, -129], [0, 0], [-5, -9], [-125, -255], [-68, -71], [-294, 114], [-158, 30]], [[282537, 7244], [-252, 47]], [[282285, 7291], [-62, 82], [-5, 7], [0, 0], [19, 23], [29, 34], [-173, 116]], [[282093, 7553], [-264, 291], [-170, 383], [-26, 110]], [[281633, 8337], [-55, 242], [39, 30]], [[281617, 8609], [0, 0], [109, -98]], [[281726, 8511], [62, -55], [0, 0], [10, 8], [73, 61]], [[281871, 8525], [-245, 246]], [[281626, 8771], [-275, 461], [-24, 54], [-96, 214], [-165, 524], [-3, 64], [-1, 8], [102, 316], [0, 0], [102, -88]], [[284208, 11141], [36, -45], [0, 0]], [[284244, 11096], [5, -29], [16, -93]], [[284265, 10974], [-33, -70], [-13, -4], [-56, -15], [-135, 47], [-178, 310], [-43, 74], [153, 133], [0, 0], [248, -308]], [[280548, 11058], [-94, -68], [0, 0], [-17, 34], [-24, 46], [-13, 180]], [[280400, 11250], [-2, 29], [39, 207]], [[280437, 11486], [38, 45], [-3, 43], [-1, 27], [0, 0], [10, 1], [30, 3]], [[280511, 11605], [118, -89], [0, 0], [13, -151], [12, -145], [-28, -87]], [[280626, 11133], [-8, -25], [-70, -50]], [[274578, 15580], [-270, -9]], [[274308, 15571], [-14, 0], [-76, 1], [-29, 25], [-80, 67], [-28, 56], [34, 169], [0, 0], [687, 178], [106, 13], [81, 9], [18, -23], [-35, -152]], [[274972, 15914], [376, -192]], [[275348, 15722], [-770, -142]], [[253663, 27009], [-47, 198], [6, 70], [40, 40], [222, -634], [0, -4], [-10, -94], [0, 0], [-211, 424]], [[288609, 27920], [-210, -832], [0, 0], [-115, 128], [121, 495], [130, 200]], [[288535, 27911], [-14, 78], [-72, 96], [116, 89]], [[288565, 28174], [36, -208], [8, -46]], [[276726, 37335], [-22, 24], [0, 0], [-117, -125]], [[276587, 37234], [-130, -141], [-41, 32]], [[276416, 37125], [-54, 43], [5, 90]], [[276367, 37258], [51, 93], [65, 51], [0, 0], [189, 69], [133, -77], [0, 0], [17, -59], [0, 0], [-55, -15], [-21, -5], [-20, 20]], [[273947, 39939], [23, 257]], [[273970, 40196], [49, 79], [38, 62], [99, 44], [0, 0], [0, 8], [0, 77], [0, 0], [38, 25]], [[274194, 40491], [21, -22], [5, -6], [0, 0], [49, -288]], [[274269, 40175], [129, -221], [37, -19], [-9, -108], [-39, -27], [-236, 32], [-204, 107]], [[262326, 42066], [-1, -1], [0, 0], [-2, 1], [0, 0], [-3, 1], [0, 0], [0, 2], [-1, 2], [0, 2], [1, 2], [0, 1], [1, 1], [0, 0], [1, 0], [0, 0], [3, 0], [2, -1], [1, 0], [1, -3], [1, -1], [0, 0], [-1, -3], [-1, -1], [-1, -1], [-1, -1]], [[268836, 42743], [11, -185], [-333, 9], [56, 460], [78, 91], [66, 5], [0, 0], [7, -22], [115, -358]], [[269002, 43012], [50, -4], [90, 55], [99, 61]], [[269241, 43124], [63, 12], [11, 2], [119, -105]], [[269434, 43033], [59, -53], [-4, 17], [-35, 164], [0, 0]], [[269454, 43161], [80, 105], [34, -32], [93, -90], [59, -171]], [[269720, 42973], [-145, -219], [-309, -299], [0, 0], [-266, 162], [-178, 188], [0, 0], [-61, 263], [-36, 155], [9, 89], [25, 2], [243, -302]], [[234506, 80609], [-88, -259], [-52, 254], [5, 58], [-11, 222], [-83, 176], [-24, 27], [-21, 31], [32, 66], [82, -16], [81, -252], [79, -307]], [[88355, 83639], [43, -156], [2, -7], [3, -9], [4, -6], [2, -5], [1, -2], [3, 1], [0, 0], [2, 1], [97, -116], [2, -3], [5, -7], [1, -1], [1, -2], [2, -3], [1, -3], [4, -9], [1, -3], [1, -3], [1, -2], [5, -29], [2, -15], [5, -73], [5, -81], [-7, -16], [-31, -74], [-71, -21], [0, 0], [-1, -15], [-1, -18], [-25, -29], [0, 0], [-5, -5], [-20, -18], [0, -1], [-19, -12], [-2, -1], [-58, -29], [-12, -6], [-33, 21], [0, 0], [0, 0], [-27, 25], [-189, 174], [-51, 198], [0, 0], [36, 52], [20, 28], [72, 106], [37, 89], [5, 32], [8, 53]], [[92606, 79325], [-69, -120], [-18, -31], [-5, -7], [-17, -25], [-169, -27], [-74, -9], [-178, -21], [0, 0], [-1, 0], [-9, 1], [-3, 3], [-1, 0], [-4, 5], [-1, 1], [-1, 1], [0, 1], [-6, 18], [0, 0], [-3, 16], [-10, 50], [46, 106], [17, 12], [114, 82], [78, 24], [17, -10], [28, -16], [2, -3], [0, -1], [6, -11], [0, -1], [1, -1], [1, -1], [4, -7], [2, -2], [5, -4], [1, -1], [49, -20], [1, 0], [0, 0], [2, -1], [1, 0], [9, 2], [62, 26], [1, 1], [5, 3], [5, 3], [2, 1], [4, 2], [9, 5], [1, 1], [1, 0], [0, 0], [2, 2], [6, 4], [2, 1], [4, 6], [3, 3], [0, 2], [19, 45], [39, 95], [0, 1], [0, 0], [1, 1], [0, 1], [1, 0], [1, 2], [3, 1], [10, 6], [8, 4], [3, 2], [1, 1], [1, 0], [2, 0], [9, 3], [1, 0], [1, 0], [2, 0], [1, 0], [1, 0], [1, 0], [0, 0], [1, -1], [1, -1], [1, -1], [1, -1], [0, -1], [1, -2], [0, -1], [3, -9], [1, -1], [0, -1], [0, -1], [0, -4], [1, -3], [0, -1], [0, -3], [-1, -26], [-1, -25], [-4, -32], [-4, -30], [0, 0], [0, -1], [0, -1], [-1, -1], [-3, -15], [-1, -4], [-1, -3], [-21, -56]], [[92661, 79789], [43, -42], [0, -43], [-80, -34], [-22, 1], [0, 0], [-6, 24], [-11, 37], [4, 6], [14, 20], [30, 23], [9, 6], [11, 6], [1, 1], [1, 0], [1, 0], [0, 0], [1, 0], [0, 0], [1, 0], [1, -2], [1, -1], [1, -2]], [[92575, 80779], [0, 0], [170, -41], [44, -15], [23, -13], [51, -29], [7, -7], [6, -5], [3, -8], [-4, -21], [-7, -9], [-21, -18], [-4, -4], [-5, 0], [-1, 0], [0, 0], [-1, 1], [-18, 14], [-3, 3], [-1, 0], [0, 1], [-16, 18], [-12, 13], [-3, 4], [-1, 1], [-1, 1], [-1, 1], [-2, 3], [-14, 16], [-2, 2], [0, 0], [-1, 1], [0, 0], [-6, 3], [-1, 1], [-2, 1], [-14, 3], [-2, 0], [-1, 0], [0, 0], [0, 0], [-78, 4], [-32, -5], [-39, -16], [-49, 26], [-16, 14], [-9, 8], [0, 0], [5, 14], [20, 62], [0, 0], [38, -24]], [[91460, 80895], [-4, -2], [0, -1], [-1, 0], [-2, 1], [-2, 3], [0, 1], [-1, 1], [0, 1], [-2, 2], [0, 0], [0, 2], [0, 4], [0, 3], [0, 1], [0, 2], [0, 2], [0, 2], [3, 12], [1, 6], [0, 2], [7, 11], [1, 2], [68, 85], [2, 2], [1, 0], [0, 1], [0, 0], [1, 0], [0, -1], [1, 0], [1, 0], [0, -2], [1, 0], [0, -1], [-1, -5], [-3, -6], [0, -2], [-1, -3], [-4, -8], [0, -1], [-1, -2], [-29, -52], [-15, -24], [-21, -36]], [[91898, 81080], [16, -169], [-2, -9], [0, -5], [-3, -7], [-10, -29], [-17, -39], [-82, -135], [-8, -10], [-6, -8], [-1, -1], [-9, -9], [-148, -105], [-30, -2], [-60, -2], [0, 0], [127, 116], [168, 148], [-5, 74], [-4, 68], [-27, 91], [0, 0], [50, 42], [30, 10], [10, 3], [0, 0], [1, -2], [10, -20]], [[91554, 81209], [161, -85], [35, -18], [17, -11], [0, 0], [-53, -53], [-76, 7], [-25, 5], [-65, 14], [-19, 12], [-40, 100], [-5, 15], [-8, 30], [1, 2], [0, 0], [5, 3], [1, 1], [2, 0], [6, 1], [0, 0], [1, 0], [4, 0], [27, -4], [14, -9], [17, -10]], [[92053, 81526], [16, -7], [0, 0], [6, -6], [-2, -2], [-43, -13], [-15, -5], [-10, -2], [-5, 0], [-19, 0], [-1, 0], [0, 0], [-4, 0], [0, 0], [-40, 26], [0, 1], [0, 1], [10, 3], [7, 3], [26, 1], [63, 1], [11, -1], [0, 0]], [[90386, 81915], [36, -13], [0, 0], [1, 0], [2, -1], [1, 0], [2, -2], [1, 0], [1, -1], [1, 0], [20, -13], [4, -3], [1, 0], [0, -1], [2, -1], [2, -2], [0, -1], [1, -1], [6, -9], [3, -6], [0, 0], [0, -1], [0, 0], [-1, -1], [-1, 0], [-1, 0], [-36, 12], [-46, 15], [-21, 13], [0, 0], [-10, 17], [-2, 7], [0, 0], [1, 2], [1, 2], [0, 0], [1, 1], [1, 1], [0, 0], [1, 1], [0, 0], [24, -12], [5, -3]], [[90633, 82177], [1, 0], [0, -1], [9, -9], [2, -2], [4, -5], [4, -6], [22, -31], [50, -100], [260, -522], [19, -28], [6, -7], [21, -34], [14, -28], [11, -70], [4, -24], [0, -1], [0, -1], [2, -10], [4, -28], [-1, -1], [-1, -5], [-1, -1], [0, 0], [-2, -3], [-2, -3], [0, 0], [-19, -13], [0, 0], [-104, 174], [-137, 228], [-35, 201], [-66, 137], [-47, 105], [-22, 49], [-2, 12], [-3, 22], [0, 0], [1, 1], [3, 3], [2, 3], [2, -1], [1, -1]], [[90070, 82166], [130, -140], [13, -14], [0, 0], [-18, -22], [-166, 89], [9, 29], [4, 13], [28, 45], [0, 0]], [[91074, 82212], [13, -4], [1, 0], [1, -1], [5, -3], [0, 0], [1, 0], [0, -1], [0, -1], [2, -4], [2, -7], [1, -2], [0, -1], [0, -3], [1, -2], [0, -2], [-4, -20], [-4, -18], [-17, -10], [-3, -2], [0, 0], [-14, -3], [-94, 11], [-2, 2], [-1, 1], [0, 0], [-1, 6], [-3, 11], [-1, 2], [1, 4], [1, 1], [0, 0], [0, 1], [0, 0], [2, 2], [10, 6], [9, 5], [5, 3], [6, 3], [4, 2], [5, 2], [21, 7], [10, 3], [32, 10], [11, 2], [0, 0]], [[90018, 82170], [-1, -1], [-1, 0], [-6, -3], [-1, 0], [-1, -1], [-9, -4], [-3, -1], [0, 1], [-1, 0], [-3, 2], [-1, 6], [-1, 2], [1, 13], [1, 17], [5, 9], [3, 5], [0, 0], [16, -22], [2, -11], [1, -9], [0, -1], [-1, -2]], [[88578, 82171], [-2, 0], [-1, -1], [-14, 9], [8, 45], [0, 0], [0, 0], [2, -1], [2, -1], [0, 0], [1, -1], [11, -11], [6, -7], [0, 0], [-4, -18], [-3, -4], [-6, -10]], [[88699, 82322], [-60, -80], [0, 0], [-12, -2], [0, 0], [-20, 13], [-18, 12], [6, 2], [13, 2], [9, 10], [0, 0], [0, 2], [1, 4], [-3, 8], [0, 0], [25, 19], [25, 12], [12, 5], [7, 1], [4, 1], [11, -9]], [[89768, 82500], [-18, 28], [0, 0], [-53, 87], [0, 0], [19, -1], [9, 0], [0, 0], [29, -66], [14, -33], [1, -2], [1, -3], [1, -4], [2, -6], [0, 0], [-5, 0]], [[91394, 82662], [5, -16], [1, -3], [1, -7], [11, -44], [-5, -14], [-7, -21], [-32, -74], [-3, -9], [0, 0], [-1, -1], [0, 0], [-2, -1], [0, 0], [-2, 0], [-1, 0], [-22, 0], [-1, 0], [0, 0], [-29, 1], [-5, 10], [14, 111], [4, 28], [0, 1], [1, 2], [0, 1], [1, 2], [2, 4], [1, 1], [0, 1], [1, 2], [2, 3], [4, 8], [1, 1], [1, 2], [8, 9], [2, 0], [1, 0], [2, 1], [23, 6], [14, 4], [2, 0], [2, 0], [2, -3], [4, -5]], [[88661, 82763], [1, -1], [0, 0], [5, -4], [2, -2], [2, -2], [0, -1], [26, -81], [13, -40], [29, -183], [2, -20], [2, -13], [-3, -48], [-3, -14], [-4, -15], [-2, -6], [-3, -10], [-6, -6], [-5, 3], [-3, 2], [-13, 12], [-3, 3], [-4, 4], [1, 3], [0, 6], [0, 1], [0, 2], [-1, 2], [0, 0], [0, 1], [0, 2], [-1, 1], [-1, 0], [-15, 2], [-57, -34], [0, 0], [-43, 43], [-15, 181], [48, 122], [28, 73], [5, 7], [4, 4], [11, 5], [1, 1], [1, 0], [1, 0], [0, 0]], [[88472, 82817], [0, 0], [0, 0], [1, -1], [4, -3], [1, -1], [2, -2], [0, 0], [0, 0], [4, -3], [2, -1], [1, -3], [1, -1], [-1, -2], [-2, -2], [-1, -3], [-58, -74], [0, 0], [-30, -11], [-38, -15], [-1, 0], [-1, 0], [-7, 0], [-1, 0], [-1, 2], [-7, 9], [-4, 6], [0, 0], [0, 0], [-1, 2], [-7, 14], [0, 1], [-1, 4], [-1, 2], [-1, 3], [1, 3], [0, 1], [1, 3], [0, 0], [1, 0], [3, 1], [1, 0], [2, -1], [2, -1], [2, -1], [48, 6], [21, 6], [1, 1], [1, 0], [2, 1], [0, 2], [1, 4], [3, 28], [0, 0], [33, 23], [4, 1], [5, 1], [15, 1]], [[89609, 82799], [14, -14], [3, -2], [3, -4], [10, -14], [2, -3], [2, -4], [1, -5], [0, -1], [0, 0], [-1, -2], [0, 0], [-1, 0], [-2, 0], [-9, 3], [-1, 0], [-10, 5], [-8, 11], [-25, 37], [1, 3], [0, 2], [0, 1], [2, 7], [0, 3], [0, 0], [1, 0], [1, 0], [0, 0], [2, 1], [1, -1], [0, -1], [1, -1], [13, -21]], [[88366, 82837], [6, -3], [9, -6], [1, 0], [0, -1], [8, -6], [-11, -41], [-2, -4], [-2, -2], [0, 0], [-3, -3], [-7, -7], [-15, -2], [-13, -3], [-9, 1], [-30, 27], [-3, 4], [0, 0], [10, 6], [1, 1], [1, 0], [4, 1], [0, 0], [5, 3], [38, 26], [3, 1], [8, 7], [1, 0], [0, 1], [0, 0]], [[88351, 82845], [0, 0], [0, -1], [0, -1], [1, 0], [-1, -1], [0, 0], [-1, -3], [0, 0], [-11, -15], [-2, -1], [0, 0], [-1, -1], [-1, 0], [-35, -23], [-6, -1], [-1, 0], [0, 0], [-1, 0], [-2, 0], [0, 0], [0, 1], [-8, 10], [-1, 2], [-1, 2], [-2, 6], [-2, 3], [1, 5], [0, 0], [1, 2], [73, 16]], [[88594, 82663], [-28, -70], [0, 0], [-62, -42], [-89, 126], [95, 122], [0, 0], [56, 43], [0, 0], [1, 0], [2, 2], [0, 0], [1, 0], [9, 6], [1, 0], [21, 9], [2, 1], [0, -1], [1, -2], [2, -4], [1, -1], [0, 0], [0, 0], [3, -12], [-9, -103], [-7, -74]], [[88470, 82913], [3, -2], [-3, -8], [-4, -11], [-1, -1], [0, 0], [-1, -2], [-1, 0], [0, -1], [-24, -12], [-5, 1], [0, 0], [0, 0], [-1, 1], [-2, 2], [-2, 6], [-4, 9], [-1, 10], [0, 3], [1, 2], [0, 1], [0, 1], [1, 0], [0, 1], [0, 0], [2, 0], [1, 1], [21, 1], [8, 0], [7, -1], [5, -1]], [[88450, 82947], [-2, 0], [-1, 0], [-3, -1], [-2, -2], [-12, -7], [-1, 0], [-1, 0], [-5, -5], [-3, -2], [0, 0], [0, -2], [0, -2], [1, -6], [1, -4], [-4, -5], [-1, -2], [-3, -2], [-21, -14], [-18, -7], [-1, 0], [-1, -1], [-3, 0], [-3, 1], [-1, 0], [0, 1], [0, 1], [0, 0], [0, 3], [0, 2], [7, 5], [24, 14], [28, 28], [2, 1], [20, 10], [0, 0], [1, -1], [2, -3]], [[88556, 82909], [-11, -3], [-17, -6], [-11, 24], [13, 25], [8, 16], [0, 0], [17, 3], [1, -59], [0, 0]], [[87945, 83272], [7, 0], [0, 0], [2, -19], [-1, -2], [0, -1], [0, 0], [-1, -1], [-2, -1], [-22, -11], [0, 0], [-1, 0], [-5, 1], [-2, 0], [-2, 0], [-3, 1], [-1, 0], [0, 1], [-1, 0], [0, 0], [-1, 1], [-1, 0], [-3, 3], [0, 0], [-1, 1], [0, 3], [-1, 2], [0, 0], [2, 12], [1, 0], [0, 1], [1, 0], [18, 6], [5, 1], [0, 0], [1, 0], [11, 2]], [[90335, 83282], [4, -5], [18, -21], [186, -328], [55, -99], [15, -29], [24, -47], [1, -4], [1, -1], [0, -1], [0, -1], [14, -39], [3, -10], [1, -4], [1, -2], [2, -9], [0, -2], [1, -3], [0, -2], [0, 0], [0, 0], [-1, 0], [-1, -1], [-2, 0], [-63, -10], [-79, -12], [-26, 6], [-1, 0], [-2, 1], [-1, 1], [0, 0], [-1, 0], [-9, 6], [-1, 1], [-1, 0], [-17, 19], [-1, 1], [0, 2], [-1, 3], [0, 1], [1, 1], [1, 1], [0, 0], [0, 1], [0, 0], [0, 0], [11, 7], [43, 24], [19, 10], [0, 0], [-24, 142], [-143, 297], [-3, 6], [-2, 2], [-1, 3], [-1, 0], [0, 1], [-14, 18], [-4, 5], [0, 0], [0, 0], [-4, 3], [-32, 25], [-13, 3], [-4, 0], [-3, 1], [-6, 8], [-6, 10], [-1, 16], [30, 20], [9, 0], [7, -3], [12, -6], [2, -1], [1, -1], [1, 0], [0, 0], [1, -1], [2, -1], [1, -2], [1, 0]], [[88901, 83639], [-38, -14], [-21, -6], [-10, -2], [0, 0], [-25, -1], [-21, 0], [-18, 0], [-60, 20], [-3, 3]], [[89946, 83639], [-26, -196], [-28, -131], [0, 0], [-33, 5], [0, 0], [-27, 54], [-2, 30], [0, 0], [60, 112], [33, 126]], [[79384, 76376], [-10, -18], [-51, -90], [0, 0], [227, -27], [0, 0], [-16, -397], [-47, -171], [-19, -67], [-36, -308], [-28, -243], [58, -357], [0, 0], [-33, -141], [-58, -245], [-139, -326], [-40, -52], [-36, -47], [0, 0], [-37, 7], [-31, 5], [-78, -69], [-159, -281], [-4, -33], [-4, -36], [88, -24], [39, -10], [101, 7], [130, 8], [69, -25], [26, -10], [50, -41], [111, -90], [112, -20], [0, 0], [151, 177], [164, 51], [181, -68], [105, -40], [497, -53], [334, 23], [381, 126], [969, 41], [303, -98], [107, -34], [929, -750], [162, -168], [-69, -36], [-16, -50], [-51, -166], [60, -309], [-210, -752], [-61, -412], [-11, -190], [-1, -19], [6, -112], [46, -741], [-32, -86], [-14, -36], [-57, -25], [-34, -123], [-43, -303], [-13, -333], [-5, -133], [-115, -213], [5, -100], [2, -45], [49, -196], [62, -123], [0, 0], [21, -10], [39, -20], [0, 0], [4, -12], [145, -439], [91, -184], [16, -32], [491, -709], [208, -139], [90, -96], [74, -79], [14, -232], [92, -203], [155, -110], [127, 8], [98, 6], [168, -49], [97, -110], [11, -2], [162, -19], [154, 37], [130, 32], [481, 333], [150, 78], [178, 91], [91, -97], [75, -80], [138, -29], [0, 0], [32, -46], [68, -99], [14, -82], [-73, -6], [-54, -4], [0, 0], [-18, -39], [-32, -69], [4, -81], [7, -121], [-368, -315], [-9, -6], [-46, -28], [-80, -2], [-18, -1], [0, 0], [-36, -338], [293, -397], [39, -105], [16, -45], [0, 0], [-22, -61], [-362, -237], [-153, -23], [-85, -12], [-55, 5], [-98, 9], [-35, 45], [-5, 6], [-79, 505], [-28, 184], [0, 0], [-48, 39], [-17, -12], [-58, -39], [0, -123], [0, -86], [0, 0], [-249, 77], [-105, 228], [-120, 263], [-131, -11], [-138, 32], [-46, 10], [-76, 29], [-5, 39], [-18, 17], [-47, 46], [-253, -12], [-65, -3], [-53, -79], [-165, -239], [0, 0], [-234, 652], [0, 0], [-152, 123], [0, 0], [-7, -1], [-82, -12], [-23, -32], [69, -116], [87, -60], [15, -167], [-23, -9], [-14, 5], [-192, 66], [-116, 116], [-43, 43], [0, 0], [8, 83], [1, 14], [0, 0], [63, 70], [19, 63], [12, 44], [-20, 196], [-5, 48], [0, 0], [-275, 296], [-251, 173], [-53, 16], [-105, 33], [0, 0], [-184, 248], [-38, 113], [-37, 108], [-417, 319], [-36, 27], [14, -147], [3, -21], [79, -112], [0, 0], [48, -30], [100, -32], [64, -139], [0, 0], [-163, -227], [-52, -29], [-18, 16], [-336, 309], [-97, 40], [0, 0], [-86, 166], [-26, 50], [-64, 269], [103, 207], [47, 610], [-714, 791], [-67, 131], [-142, 277], [-244, 264], [-416, 449], [39, 175], [0, 0], [145, 41], [0, 0], [-59, 120], [-7, 15], [1, 71], [3, 245], [0, 0], [-76, 19], [-91, -51], [-149, -9], [-61, 58], [-21, 45], [0, 0], [-26, -59], [0, -34], [42, -50], [29, -35], [-111, -115], [-65, -24], [-228, 13], [-237, 14], [-242, 67], [-416, 260], [-56, 6], [-120, 14], [-327, 132], [-37, 23], [-193, 120], [-193, 92], [-206, 98], [-409, -1], [-205, 40], [-5, 1], [-3, 1], [-195, 102], [-108, 85], [-90, 69], [-402, 395], [-637, 814], [-428, 477], [-134, 117], [-194, 167], [-334, 176], [-120, 46], [-100, 38], [-68, 11], [-135, 21], [-382, -41], [-212, -143], [-168, -113], [-182, -80], [-254, -112], [-106, -72], [-37, -25], [-200, -29], [-342, 112], [-279, 183], [-283, 50], [-139, 45], [-175, 57], [-412, 228], [-150, 109], [-76, 54], [-85, 113], [-403, 128], [-179, 34], [-165, 31], [-96, 66], [-137, 94], [-813, 393], [-184, 89], [-588, 560], [-157, 114], [-184, 133], [-144, -8], [-58, -3], [-198, 58], [-142, 42], [-660, 292], [-190, 364], [-10, 11], [-106, 121], [-162, 128], [-76, 59], [-789, 513], [1, 4], [1, 9], [-23, 61], [-34, 88], [-67, 69], [-85, 87], [-200, 341], [-154, 393], [-19, 48], [0, 0], [-4, 27], [21, 19], [61, 54], [240, 44], [62, 62], [7, 32], [8, 42], [-63, 93], [29, 339], [21, 40], [17, 30], [30, 391], [0, 0], [-47, 91], [-119, 89], [-53, 40], [-142, 329], [-56, 466], [-71, 193], [-55, 150], [-437, 519], [-59, 71], [-430, 731], [-39, 49], [-43, 52], [-196, 206], [-639, 559], [-207, 383], [-7, 12], [-21, 34]], [[59904, 83639], [74, -372], [-2, -92], [-1, -65], [26, -100], [26, -100], [49, -93], [11, -12], [42, -48], [153, -41], [36, 6], [28, 4], [0, 0], [4, 34], [141, 26], [109, -109], [160, -161], [176, -288], [118, -193], [48, -162], [11, -38], [0, 0], [-40, -213], [-39, -54], [-32, -44], [-301, -254], [-102, 28], [0, 0], [-358, 801], [-522, 534], [-175, 134], [-77, 46], [-183, 111], [-89, -6], [-52, -3], [0, 0], [-314, 210], [-164, 277], [-1, 135], [22, 102]], [[71409, 83639], [-129, -552], [-34, -375], [-18, -208], [-4, -181], [-19, -800], [-55, -373], [-24, -164], [-2, -179], [96, -462], [0, 0], [24, -44], [169, -309], [168, -801], [116, -346], [634, -937], [0, 0], [46, -187], [77, -319], [22, -51], [39, -89], [302, -471], [221, -138], [0, 0], [245, -28], [244, -77], [152, -95], [15, -10], [11, -7], [79, -50], [92, -192], [69, -144], [40, -19], [64, -30], [178, 40], [103, 24], [320, 129], [258, 59], [322, 73], [393, 187], [79, 21], [65, 16], [205, 29], [234, 33], [0, 0], [14, -14], [45, -43], [133, 39], [54, 17], [254, 189], [259, 192], [38, 39], [285, 291], [220, 616], [25, 71], [0, 0], [-5, 73], [-16, 210], [-1, 4], [-1, 1], [0, 0], [57, 672], [4, 18], [38, 148], [29, 44], [24, 35], [95, 71], [87, 67], [234, 109], [448, 101], [526, 118], [312, 117], [405, 24], [350, -105], [192, -58], [105, 41], [9, 4], [0, 42], [-2, 65], [27, 26], [42, -44], [88, -92], [157, -385], [-97, -283], [-5, -16], [0, 0], [-39, -58], [-158, -234], [-135, -131], [-87, -165], [-59, -113], [-47, -166], [0, 0], [34, -183], [-30, -72], [-18, -42], [-118, -115], [-97, -49], [2, -45], [1, -41], [73, -118], [54, -86], [-39, -36], [-39, -186], [0, 0], [115, -100], [-76, -267], [-82, -288], [-35, -167], [-66, -312], [-7, -7], [-3, 9], [-161, 750], [-1, 1], [-1, 0], [-3, -5], [-89, -126], [-54, -136], [-58, -144], [-28, -8]], [[101185, 75892], [92, 78], [1, 2], [15, -79], [-26, -54], [0, 0], [-82, 53]], [[113060, 55635], [-36, -17], [-20, -10], [-186, 0], [-112, 40], [0, 0], [70, 111], [123, 90], [51, 2], [88, -26], [51, -15], [16, -18], [28, -33], [-2, -16], [-1, -17], [-22, -28], [-48, -63]], [[112708, 55830], [-156, -102], [-8, 31], [-12, 10], [-11, 9], [-36, 20], [-72, 8], [-34, 4], [0, 0], [-26, 206], [0, 0], [501, 142], [0, 0], [45, -51], [1, -26], [1, -23], [-193, -228]], [[112297, 56074], [-53, -50], [-74, -70], [0, 0], [-73, 56], [98, 294], [83, 9], [0, 0], [8, -103], [11, -136]], [[112349, 56143], [-41, -3], [0, 0], [-3, 56], [-7, 113], [14, 61], [14, 58], [197, -19], [0, 0], [-1, -42], [0, -21], [-79, -115], [-88, -82], [-6, -6]], [[112321, 57921], [-70, -54], [-57, -46], [-85, 198], [22, 118], [104, 65], [0, 0], [32, -42], [54, -239]], [[104247, 70621], [1, -1], [1, -1], [4, -2], [1, 0], [0, 0], [3, -3], [1, -2], [143, -183], [1, -6], [1, -3], [0, -1], [1, -1], [-1, -6], [-1, -1], [0, -1], [0, -1], [0, -2], [-1, -2], [-1, -4], [-1, -3], [-1, -3], [-1, -1], [0, 0], [-3, -8], [-3, -4], [-2, -5], [-1, -1], [-10, -21], [0, 0], [-14, -16], [-29, -33], [-3, 0], [-1, -1], [-6, -2], [-1, 0], [-1, -1], [-2, 0], [-1, 0], [0, 0], [-3, 0], [-6, -1], [-27, 15], [-36, 19], [-3, 4], [-6, 6], [-11, 14], [0, 1], [0, 0], [-2, 4], [-11, 54], [-8, 123], [-1, 23], [1, 24], [1, 6], [2, 6], [1, 1], [0, 1], [0, 1], [5, 6], [4, 6], [1, 2], [1, 1], [0, 0], [1, 0], [4, 3], [4, 1], [6, 0], [5, -1], [1, 0], [0, 0], [2, 0], [1, 0], [1, 0]], [[254621, 60877], [141, 7], [180, 77], [357, 340], [173, 87], [52, -3], [-89, -170], [22, -105], [52, 107], [50, 20], [177, -17], [166, 220], [25, 156], [-78, -26], [-107, 96], [1, 97], [201, 212], [117, -48], [120, 57], [189, 455], [483, 938], [82, 228], [82, -99], [15, -107], [-25, -125], [-61, -120], [-5, -49], [13, -18], [13, -8], [10, -3], [44, 18], [143, 232], [189, 54], [58, -248], [155, -61], [47, 39], [180, -182], [-18, -202], [-63, 0], [-46, -77], [2, -303], [152, 1], [138, 105], [96, 14], [70, -196], [-66, -45], [-116, -3], [5, -60], [52, -71], [121, 10], [39, 98], [70, 73], [159, -69], [177, -153], [413, -235], [60, 14], [71, -92], [7, -167], [-84, -112], [-380, -183], [-174, -14], [-178, 96], [-166, -155], [80, -187], [187, -211], [-79, -202], [-150, -48], [-369, 49], [-111, -22], [-28, -163], [-83, -74], [-8, -39], [205, -240], [-94, -260], [-201, 16], [-204, 0], [-58, -4], [-34, -25], [-10, -27], [408, -47], [108, -60], [-3, -26], [-189, -5], [-32, -22], [98, -369], [123, -145], [331, -692], [-82, -253], [-76, -144], [64, -189], [469, -506], [285, -251], [137, -108], [34, -13], [31, -67], [-20, -65], [-133, -136], [-416, 18], [-241, 88], [-58, 98], [-10, 74], [-82, 66], [-5, -325], [-106, -72], [-36, -64], [-168, -466], [-43, -216], [24, -703], [-7, -85], [-40, -70], [27, -53], [55, -21], [-95, -124], [-123, 104], [-243, -499], [-92, -78], [-81, -7], [-4, 86], [-62, 163], [-7, -10], [-158, -539], [-149, -252], [-27, -401], [44, -88], [171, 45], [13, -29], [-65, -379], [-277, -444], [-62, 106], [-45, -179], [12, -294], [-69, -178], [-5, -20], [-51, -194], [-594, -317], [-501, -311], [-75, 11], [-2, 290], [-56, 631], [-28, -31], [-368, 52], [-178, -120], [-216, 54], [-154, 217], [-210, 89], [-195, -50], [-419, -291], [-391, -44], [-179, 120], [-5, 333], [-113, 249], [-187, -154], [-477, -147], [-545, 122], [-66, 130], [-185, 1298], [55, 382], [-127, 272], [-140, 129], [-297, 126], [-50, 203], [164, -49], [-103, 144], [-48, 33], [-171, 17], [-94, 331], [8, 80], [36, 48], [42, 238], [-53, 192], [-98, 93], [-103, 486], [62, 529], [76, 242], [98, 198], [423, 529], [5, -116], [66, -154], [142, -129], [356, -77], [5, 50], [38, 27], [118, -37], [500, -321], [221, -85], [-19, 81], [-82, 13], [-147, 298], [131, 403], [18, 125], [128, 209], [78, 39], [-44, 212], [32, 157], [179, 148], [1024, 283], [174, 94], [461, 743], [182, 216], [152, 278], [48, 199], [70, 142]], [[239694, 42198], [15, -23], [9, -14], [0, -1], [1, -1], [0, -1], [0, -1], [-1, -1], [-1, 0], [-5, -4], [-3, -1], [-4, -2], [0, -1], [-1, 0], [-2, -1], [0, 0], [-1, 0], [-1, 0], [-1, 0], [-2, 1], [-1, 0], [-1, 1], [-1, 0], [-1, 2], [-1, 0], [0, 0], [-3, 7], [-5, 11], [-2, 4], [0, 19], [-1, 18], [5, 1], [2, 0], [0, -2], [6, -11]], [[239775, 42164], [-1, -1], [-1, -2], [0, 0], [-2, -3], [-1, -2], [-1, 0], [0, -1], [0, -1], [-3, -1], [-11, -7], [-3, -1], [-1, 0], [-1, -1], [-2, 1], [-1, 0], [-1, 0], [-1, 1], [-2, 1], [-1, 2], [-1, 0], [-1, 5], [0, 1], [0, 2], [0, 0], [0, 1], [20, 25], [10, 13], [0, 0], [1, 0], [0, 0], [0, 0], [2, -1], [1, -2], [0, 0], [1, 0], [0, -2], [1, -1], [0, 0], [1, -4], [1, -3], [0, -3], [0, 0], [0, -1], [1, -1], [0, 0], [0, -4], [-4, -10]], [[90608, 441], [0, 0], [56, -71], [115, -264], [-81, 1], [-42, 38], [-63, 58], [1, 49], [0, 40], [-173, -124], [-9, 218], [0, 0], [29, 24], [20, 16], [99, -4], [0, 0], [2, -1], [13, -4], [27, 20], [6, 4]], [[91153, 1476], [10, -6], [68, -43], [35, 3], [29, 1], [0, 0], [42, -166], [48, -256], [0, 0], [-18, -455], [-12, -15], [-8, -10], [0, 0], [-2, -30], [-6, -81], [52, 0], [47, -108], [9, -20], [0, 0], [-49, -204], [-86, -86]], [[91050, 0], [-18, 18], [-1, 1], [0, 0], [39, 129], [35, 1], [0, 0], [-17, 59], [-9, 30], [-33, 6], [-39, 8], [0, 0], [-7, 61], [-2, 19], [15, 96], [25, 48], [43, 83], [60, 39], [45, 29], [0, 4], [6, 60], [0, 0], [-156, -63], [-83, -33], [-56, -281], [12, -52], [2, -7], [0, 0], [42, 46], [0, 0], [2, -2], [31, -34], [-54, -128], [-53, 6], [-79, 10], [0, 0], [-112, 236], [0, 0], [26, 104], [-100, 68], [6, 82], [14, 174], [170, -19], [120, -49], [99, -39], [75, 290], [-123, 190], [-9, 49], [-24, 134], [123, 61], [88, 42]], [[90639, 1539], [-141, -97], [-17, -11], [0, 0], [-82, 25], [-20, 6], [0, 0], [65, 41], [0, 0], [-56, 12], [-27, 6], [-14, 52], [-5, 18], [7, 62], [4, 33], [28, 39], [0, 0], [28, 3], [141, 18], [61, -20], [27, -67], [1, -120]], [[91232, 1868], [21, -262], [42, -52], [32, -39], [0, 0], [-138, 3], [-173, 3], [0, 0], [63, 230], [47, -2], [27, -1], [0, 0], [-66, 186], [0, 0], [64, 146], [0, 0], [40, -58], [2, -4], [0, 0], [39, -150]], [[91015, 1796], [-101, -82], [0, 0], [-132, 150], [5, 25], [4, 22], [-98, 221], [0, 0], [161, -14], [25, -2], [34, -18], [37, -19], [57, -46], [0, 0], [9, -57], [2, -9], [0, 0], [60, -19], [0, 0], [-17, -75], [-1, -1], [-45, -76]], [[90869, 1551], [-115, -92], [-36, -29], [0, 0], [-49, 128], [5, 171], [-52, 65], [-75, 25], [-49, 16], [0, 0], [-95, 271], [27, 28], [24, 25], [139, 56], [31, -33], [-4, -18], [-4, -19], [-17, -32], [-1, -2], [0, 0], [13, -57], [3, -15], [235, -388], [20, -100]], [[91611, 2450], [0, 0], [4, -2], [240, -78], [58, 24], [51, -21], [3, -1], [-3, -8], [-24, -70], [-19, -8], [-14, -6], [-425, -7], [-120, 58], [-15, 7], [65, 49], [73, 55], [94, 6], [32, 2]], [[92082, 4360], [-75, -136], [0, 0], [-55, 23], [-61, 91], [-9, 13], [-30, 54], [-8, 88], [-2, 19], [0, 0], [13, 25], [32, 67], [57, 9], [28, 4], [32, 34], [28, 30], [0, 0], [31, -94], [-4, -113], [-2, -88], [1, 0], [24, -26]], [[92037, 5293], [-26, -13], [-29, -16], [0, 0], [-41, 48], [-150, 33], [-201, 45], [0, 0], [-6, 49], [-5, 44], [22, 24], [28, 30], [208, 23], [136, 15], [0, 0], [78, -165], [-14, -117]], [[91898, 5935], [-224, -99], [-109, -48], [-80, 33], [-45, 93], [-16, 34], [10, 48], [0, 0], [250, 30], [45, -2], [82, -4], [87, -85]], [[92733, 6199], [-1, -2], [-1, -3], [0, 0], [5, -3], [1, 0], [0, 3], [0, 5], [9, -1], [80, -9], [81, -92], [0, 0], [-126, -199], [-34, -53], [-154, -140], [-132, -57], [-27, 5], [-24, 4], [-79, 84], [-81, 232], [32, 52], [9, 10], [15, 15], [0, 0], [10, -7], [14, -10], [177, 8], [23, 2], [0, 0], [12, 36], [-17, 7], [-34, 15], [42, 119], [134, -14], [66, -7]], [[91881, 9121], [-16, -41], [0, 0], [134, 25], [115, 21], [91, -99], [46, -141], [-2, -39], [-5, -63], [-60, -185], [-17, -53], [-171, -118], [-22, -60], [-21, -59], [11, -65], [197, -168], [-27, -152], [-121, -230], [-25, -48], [4, -67], [-32, -94], [-17, -51], [-75, -78], [-1, -2], [0, 0], [-61, 16], [-264, 70], [-93, 50], [-21, 11], [0, 0], [-3, 23], [-2, 20], [206, 389], [7, 14], [25, 188], [-43, 323], [15, 161], [114, 225], [-7, 162], [-4, 87], [57, 59], [2, 2], [0, 0], [20, 5], [47, 13], [0, 0], [9, -26], [10, -25]], [[251879, 78062], [-16, -498], [-347, -427], [24, -45], [-1, -390], [-495, -405], [-171, -67], [-50, -135], [-67, -47], [-773, 337], [-53, 360], [-17, 506], [51, 113], [505, 398], [35, 60], [-71, -25], [84, 171], [342, 94], [120, -66], [129, -13], [349, 150], [139, -100], [2, 54], [106, 92], [175, -117]], [[193382, 43084], [4, -1], [9, -1], [20, -4], [3, -1], [5, -2], [1, 0], [2, -3], [1, -5], [11, -34], [3, -11], [85, -512], [-64, -49], [-125, 85], [-2, 2], [-2, 2], [-5, 5], [-2, 3], [-2, 3], [-1, 1], [-2, 4], [-29, 60], [-10, 45], [0, 1], [1, 4], [0, 3], [30, 309], [2, 14], [3, 27], [6, 19], [1, 1], [1, 1], [3, 5], [12, 10], [8, 6], [33, 13]], [[193653, 42099], [38, -17], [22, -10], [16, -11], [78, -52], [17, -16], [2, -4], [9, -16], [2, -14], [-1, -16], [-160, 30], [-17, 10], [-23, 44], [-13, 31], [0, 2], [2, 14], [1, 8], [1, 2], [4, 7], [21, 8], [1, 0]], [[194382, 42213], [10, -34], [8, -28], [11, -49], [1, -16], [0, -100], [-2, -21], [-1, -5], [-3, -6], [-3, -3], [-1, -1], [-3, -1], [-2, 0], [-1, 0], [-3, -1], [-1, 0], [-17, 9], [-134, 154], [-28, 47], [43, 9], [18, 5], [1, 1], [1, 1], [35, 29], [1, 1], [1, 2], [2, 7], [4, 22], [4, 18], [53, 8], [6, -48]], [[17516, 32123], [12, 0], [1, 0], [1, 0], [1, 0], [1, -1], [4, 0], [3, -2], [1, 0], [0, 0], [2, -1], [0, -1], [1, 0], [0, 0], [0, -1], [2, -1], [1, -1], [0, -2], [13, -25], [0, -1], [1, -2], [1, -3], [0, -2], [-1, -7], [-3, -15], [-3, -8], [0, 0], [-5, -3], [0, 0], [-2, -2], [-2, -1], [-1, 0], [0, 0], [-38, 10], [-2, 0], [-1, 0], [-21, 8], [-5, 3], [0, 0], [0, 1], [0, 0], [-2, 2], [-1, 3], [-3, 17], [-2, 16], [0, 4], [2, 5], [0, 1], [4, 4], [4, 6], [8, 2], [9, 3], [20, -6]], [[19158, 31301], [-2, -5], [0, 0], [0, -1], [0, 0], [-19, -3], [-36, -5], [-3, 2], [0, 0], [-1, 0], [-1, 0], [-15, 11], [-3, 3], [-1, 3], [-1, 3], [0, 1], [0, 7], [0, 3], [0, 0], [0, 0], [0, 3], [1, 1], [2, 10], [1, 3], [1, 3], [0, 2], [1, 1], [6, 7], [4, 5], [1, 1], [0, 0], [4, 1], [4, 1], [4, 1], [1, 1], [6, 2], [4, 1], [3, 0], [1, 0], [0, 0], [0, 0], [5, 0], [8, -13], [23, -37], [0, -2], [1, -2], [0, -4], [1, -2], [0, -2], [0, 0]], [[19635, 33256], [-1, -1], [-3, -1], [-2, -1], [-5, 3], [0, 0], [-1, 0], [-1, 1], [-1, 0], [-1, 1], [-2, 2], [0, 0], [-1, 1], [-4, 5], [-1, 8], [0, 2], [-1, 1], [0, 1], [0, 1], [0, 0], [0, 3], [-1, 10], [0, 2], [1, 1], [2, 7], [0, 1], [1, 1], [4, 1], [3, 1], [2, 1], [0, 0], [1, 0], [5, -3], [8, -3], [0, 0], [2, -2], [1, -1], [1, -1], [1, -1], [0, 0], [0, 0], [1, -4], [0, -4], [1, -3], [0, -1], [0, -2], [0, -1], [0, -1], [-1, -3], [-2, -8], [-1, -5], [-1, 0], [0, -1], [0, -1], [-1, -2], [-2, -3], [-1, -1], [0, 0]], [[18939, 33494], [11, -4], [4, -1], [7, -3], [3, -4], [11, -10], [2, -2], [1, -3], [1, -1], [0, 0], [6, -13], [-7, -10], [-1, -1], [0, 0], [-9, -8], [-3, -2], [-2, -1], [-5, -3], [-3, -2], [-1, 1], [0, 0], [0, 0], [-2, 2], [-3, 3], [-1, 1], [-2, 4], [-1, 1], [-1, 2], [-5, 9], [0, 1], [-1, 0], [-2, 4], [-1, 2], [-2, 3], [0, 1], [0, 2], [-1, 7], [0, 2], [0, 2], [1, 4], [1, 4], [0, 2], [4, 9], [0, 1], [1, 1]], [[19304, 33620], [-3, -4], [-1, -1], [0, 0], [-1, 0], [0, 1], [-2, 2], [0, 0], [0, 0], [-17, 43], [-1, 3], [-1, 2], [0, 2], [0, 0], [0, 1], [0, 4], [0, 0], [1, 2], [0, 1], [0, 0], [19, 45], [0, 0], [1, 1], [2, 0], [0, 0], [1, -1], [2, -3], [0, 0], [0, -12], [0, -11], [0, -50], [0, -7], [0, -6], [0, -1], [0, -1], [0, -1], [0, -2], [0, -1], [0, -1], [0, -5], [0, 0]], [[17510, 34710], [-1, -3], [0, -2], [0, -2], [-1, -1], [-1, -1], [-3, -4], [-1, -1], [0, -1], [-1, -1], [-4, -4], [-2, -1], [-1, -1], [-1, 2], [-1, 0], [-8, 23], [-1, 9], [0, 1], [6, 17], [1, 3], [1, 3], [1, 1], [1, 1], [0, 1], [2, 1], [3, 5], [1, 1], [7, 6], [1, 1], [1, 0], [1, 1], [3, -1], [2, -1], [0, 0], [-2, -19], [-3, -33]], [[135296, 72867], [20, -9], [29, -33], [137, -178], [12, -18], [59, -96], [6, -23], [5, -18], [1, -9], [1, -10], [-1, -2], [0, -1], [-46, -85], [-25, -7], [-21, 2], [-79, 12], [-44, 33], [-17, 19], [-17, 22], [-31, 68], [-18, 57], [6, 222], [2, 15], [4, 13], [4, 10], [4, 8], [7, 7], [1, 0], [1, 1]], [[134482, 72373], [11, -40], [0, -2], [1, -3], [0, -17], [-2, -7], [-4, -12], [-5, -8], [-11, -10], [-6, -4], [-4, 0], [-12, 5], [-6, 4], [-20, 27], [2, 18], [2, 15], [8, 14], [14, 8], [31, 15], [1, -1], [0, -2]], [[134764, 72541], [5, 0], [10, -3], [3, -1], [3, -1], [18, -18], [8, -11], [0, -2], [1, -3], [10, -41], [2, -8], [7, -91], [0, -6], [-4, -15], [-3, -7], [-5, -9], [-2, -2], [-5, -7], [-2, -2], [-1, -1], [-1, -1], [-2, -2], [-4, -4], [-14, -11], [-3, -2], [-3, -1], [-11, -7], [-15, -6], [-5, -1], [-1, 0], [-1, 0], [-1, 0], [-24, 3], [-7, 3], [-4, 2], [-7, 4], [-3, 3], [-1, 1], [-2, 2], [-59, 60], [-1, 2], [-1, 6], [-1, 5], [-1, 33], [2, 18], [1, 4], [0, 5], [13, 35], [9, 12], [18, 21], [17, 13], [14, 5], [25, 16], [10, 9], [7, 5], [11, -4]], [[135835, 72839], [1, -1], [1, 0], [1, -1], [5, -8], [1, -2], [0, -1], [1, -2], [2, -6], [3, -18], [6, -58], [4, -52], [1, -4], [-1, -6], [-1, -6], [-10, -18], [-7, -8], [-3, -3], [-30, -25], [-1, -1], [-3, -1], [-4, -1], [-6, 1], [-15, 1], [-5, 1], [-10, 6], [-4, 2], [-18, 20], [-4, 5], [-3, 11], [0, 2], [-1, 4], [3, 31], [3, 28], [12, 74], [26, 49], [6, 0], [50, -13]], [[136117, 73850], [9, 3], [47, -20], [18, -22], [27, -44], [3, -8], [1, -7], [1, -37], [1, -24], [-10, -28], [-11, -15], [-85, -72], [-17, -1], [-48, 0], [-63, 36], [-4, 3], [-1, 1], [-1, 1], [-2, 1], [-1, 1], [-2, 2], [-5, 8], [-1, 2], [-1, 1], [-3, 15], [0, 6], [5, 41], [37, 104], [106, 53]], [[134789, 74353], [2, -1], [3, 0], [217, -68], [5, -2], [4, -2], [12, -6], [20, -19], [11, -11], [0, -1], [2, -6], [0, -2], [-6, -14], [-2, -3], [-3, -3], [-2, 0], [-1, 0], [-49, 2], [-176, 0], [-105, 49], [-9, 8], [-6, 11], [-3, 6], [-1, 6], [0, 4], [1, 15], [0, 1], [1, 6], [1, 3], [2, 3], [2, 3], [25, 14], [3, 2], [3, 1], [4, 1], [25, 5], [20, -2]], [[134414, 74493], [64, -47], [1, -1], [1, -1], [0, -1], [1, -1], [0, -4], [-1, -1], [-5, -8], [-8, -3], [-17, -3], [-3, 0], [-3, 0], [-13, 0], [-3, 4], [-35, 32], [-1, 1], [-4, 12], [0, 3], [0, 2], [7, 15], [4, 9], [1, 1], [1, -1], [13, -8]], [[136017, 74540], [15, -58], [13, -124], [1, -12], [-14, -71], [-6, -8], [-17, -8], [-9, 3], [-48, 130], [-9, 94], [1, 17], [6, 18], [2, 4], [4, 4], [50, 27], [2, 1], [6, -6], [0, -1], [1, -2], [2, -8]], [[134280, 74630], [1, -2], [2, -2], [1, -2], [1, -1], [5, -8], [26, -51], [-2, -59], [-85, -33], [-20, 6], [-38, 21], [-34, 27], [0, 14], [7, 19], [15, 22], [3, 4], [2, 0], [101, 43], [4, 2], [6, 1], [1, 0], [1, 0], [3, -1]], [[134157, 74920], [33, -23], [45, -53], [1, -1], [0, -4], [1, -1], [0, -2], [0, -4], [1, -16], [-1, -1], [0, -1], [-4, -6], [-15, -26], [-5, -5], [-162, -149], [-2, -1], [-16, -7], [-11, -1], [-66, -2], [-23, 39], [-38, 106], [-1, 3], [0, 1], [0, 2], [0, 8], [2, 8], [4, 9], [14, 25], [1, 2], [6, 6], [185, 106], [51, -12]], [[85083, 81572], [122, -80], [32, -22], [311, 135], [0, 0], [-73, -64], [61, -68], [35, -37], [0, 0], [49, -3], [0, 0], [226, 121], [492, -247], [19, -10], [0, 0], [68, 30], [108, -16], [54, -8], [271, -165], [64, -102], [96, -155], [123, -122], [104, -47], [0, 0], [8, 0], [219, 21], [251, -29], [457, -281], [302, -280], [333, -241], [0, 0], [77, -21], [-3, 6], [-57, 116], [-214, 157], [0, 0], [-8, 20], [-3, 6], [0, 0], [8, 9], [26, 29], [0, 0], [543, -464], [175, -120], [225, -156], [355, -160], [354, -6], [85, -60], [5, -9], [34, -63], [-43, -149], [-46, -160], [0, 0], [122, 2], [138, 2], [303, -43], [210, -80], [134, -147], [82, -90], [214, -113], [79, -8], [44, -54], [2, -19], [6, -49], [-22, -28], [-64, -84], [-28, -14], [-29, -13], [-190, -19], [-285, -28], [-387, -161], [-173, 1], [-96, 40], [-103, 43], [-336, 27], [-38, 3], [0, 0], [-500, -45], [-812, -131], [-48, 16], [-7, 3], [0, 0], [-2, 41], [96, 152], [196, 199], [80, 43], [103, 56], [60, 76], [5, 7], [0, 0], [18, 69], [12, 47], [-134, 212], [-95, 69], [-176, -4], [-424, -11], [-55, 41], [-32, 24], [-288, 311], [-102, 465], [-140, 204], [-327, -90], [-144, 7], [-1232, 548], [-802, 158], [-45, 9], [0, 0], [-376, 176], [0, 0], [372, 103], [0, 0], [45, 42], [-16, 93], [-178, 115], [-336, 1], [-320, 0], [-135, -55], [-150, -111], [-134, -133], [-177, -176], [-516, -186], [-58, -21], [-66, -166], [0, 0], [-254, -92], [0, 0], [-330, 39], [-45, 25], [-27, 14], [21, 12], [203, 110], [114, 211], [33, 162], [9, 12], [148, 208], [283, 216], [629, 268], [321, 69], [256, 56], [110, 55], [77, 38], [164, 7], [34, 2], [0, 0], [23, -4], [243, -39]], [[84372, 79802], [-22, -19], [-35, -30], [-227, -87], [-16, 5], [-167, 53], [-46, 51], [-36, 104], [0, 0], [81, -89], [69, -4], [33, 26], [15, 13], [-41, 80], [-73, 143], [31, 76], [0, 0], [96, 99], [0, 0], [41, -12], [170, -47], [0, 0], [48, -93], [50, -98], [5, -55], [2, -24], [31, -62], [-9, -30]], [[87966, 80912], [60, -38], [224, -222], [54, -53], [159, -172], [122, -58], [16, -7], [0, 0], [-29, -57], [-33, -64], [-64, 36], [-90, 125], [-43, 100], [-40, 94], [-53, 29], [-262, 146], [-58, 14], [-140, 36], [-9, 30], [-9, 30], [195, 31]], [[96231, 69340], [1, -1], [1, -1], [2, -1], [1, 0], [0, 0], [2, -2], [2, -2], [1, -1], [22, -20], [1, 0], [0, -1], [1, -1], [0, 0], [3, -3], [2, -3], [2, -2], [31, -52], [32, -53], [-1, -1], [0, 0], [-4, -4], [-1, 0], [-6, -1], [-46, -1], [0, 0], [-9, 1], [-119, 74], [-12, 9], [-24, 22], [-80, 87], [-24, 36], [-18, 28], [-17, 29], [-3, 63], [-2, 28], [0, 0], [5, 3], [9, 5], [45, -30], [3, -2], [5, -4], [1, 0], [0, 0], [1, -1], [1, -1], [0, 0], [2, -3], [2, -2], [15, -27], [1, -2], [0, 0], [0, -1], [2, -11], [0, -3], [0, 0], [0, -1], [0, -3], [0, -4], [170, -140]], [[247380, 44139], [6, -20], [0, -4], [0, -1], [0, -1], [0, -1], [0, -1], [-1, -32], [-9, -18], [-24, -45], [0, 0], [-30, -8], [-73, 29], [0, 0], [-4, 3], [-7, 7], [0, 0], [17, 35], [10, 15], [0, 0], [88, 44], [27, -2]], [[85403, 77376], [77, -62], [45, 22], [23, 2], [52, 2], [29, 1], [8, 0], [0, 0], [1, -1], [1, 0], [0, 0], [3, -1], [0, 0], [0, -1], [0, 0], [1, -1], [0, -1], [1, -2], [0, -1], [0, -1], [0, -1], [3, -10], [1, -4], [-1, -4], [-1, -8], [0, -3], [-1, -4], [0, -2], [0, -1], [0, -1], [0, -1], [-1, 0], [0, -1], [-7, -9], [-1, -1], [-1, -2], [-1, -1], [-1, -1], [-2, -1], [0, -1], [-4, -1], [-1, -1], [-1, 0], [0, -1], [-4, 0], [-162, -31], [-17, 4], [-35, 7], [-26, 19], [-29, 94], [0, 0], [1, 3], [2, 3], [1, 3], [0, 0], [0, 1], [2, 2], [4, 4], [1, 1], [0, 1], [1, 0], [10, 6], [7, 3], [4, -1], [2, -1], [13, -8], [1, -1], [0, -1], [1, -3], [0, 0], [1, -2]], [[86611, 77735], [0, 0], [-1, -1], [-2, -4], [0, 0], [0, 0], [-1, 0], [0, 0], [-1, -1], [-97, -43], [-1, 0], [-1, 1], [0, 0], [-14, 1], [0, 0], [-1, 2], [0, 1], [-1, 1], [1, 1], [0, 2], [1, 1], [0, 2], [22, 18], [12, 10], [18, 5], [9, 2], [22, 7], [20, 7], [0, 0], [1, 1], [1, 1], [5, -1], [2, 0], [1, 0], [0, 0], [1, 0], [1, -1], [0, 0], [0, 0], [2, -2], [0, 0], [0, 0], [1, -3], [0, 0], [0, -2], [0, -2], [0, -1], [0, 0], [0, -2]], [[86719, 77726], [-19, 8], [-2, 1], [0, 0], [69, 45], [26, 17], [0, 0], [1, 0], [4, 0], [2, 0], [2, 0], [1, 0], [16, -7], [0, -2], [1, -1], [1, -2], [-1, -2], [0, -2], [0, -1], [-1, 0], [-35, -28], [-32, -13], [-33, -13]], [[102670, 73200], [78, -48], [25, -15], [40, -76], [11, -49], [1, -165], [-2, -14], [-3, -14], [-8, -46], [-1, -3], [-1, -2], [0, 0], [-2, -3], [-1, -1], [-5, -4], [-23, -15], [-30, -19], [-4, -3], [-2, 0], [-11, -4], [0, 0], [-1, 0], [-7, 0], [-1, 0], [0, 1], [-4, 2], [-1, 0], [0, 1], [-2, 1], [-87, 374], [3, 75], [0, 2], [0, 3], [1, 3], [0, 1], [0, 1], [1, 4], [0, 1], [0, 1], [1, 1], [0, 1], [1, 4], [2, 3], [0, 0], [1, 1], [7, 1], [8, 0], [13, 0], [1, 0], [0, 0], [2, 0]], [[93721, 77732], [-6, 77], [85, 106], [11, 13], [44, 21], [27, 12], [506, 23], [160, -64], [386, -197], [400, -136], [237, -311], [347, 53], [7, -16], [36, -77], [-42, -78], [-326, 37], [-25, -22], [-1, -61], [-1, -71], [179, -38], [147, -32], [291, 5], [64, -37], [119, -67], [308, -338], [21, -23], [0, 0], [-110, -267], [-267, -145], [-18, 38], [-55, 112], [-58, 27], [-29, 14], [-176, 14], [-505, 42], [-277, -98], [-71, -76], [-76, -81], [-235, -39], [-73, 126], [-47, 48], [-65, 68], [-148, -88], [-92, -55], [-179, -376], [-140, -226], [-53, -52], [-47, -46], [0, 0], [-128, 120], [-1, 1], [-9, 45], [-26, 134], [-36, 47], [-54, 70], [-122, 151], [-15, 18], [0, 0], [-108, 55], [0, 0], [-47, -2], [-369, -14], [-215, -68], [-106, -4], [-6, 0], [0, 0], [-56, 14], [-344, 84], [-252, 2], [-16, -9], [-235, -136], [-329, 193], [0, 0], [-80, 85], [-56, 59], [13, 59], [38, 166], [182, 64], [424, -146], [0, 0], [10, -8], [49, -41], [442, -37], [19, -1], [60, -3], [322, -12], [258, 92], [0, 0], [14, 22], [22, 36], [5, 75], [3, 32], [-228, 186], [-68, 74], [-114, 126], [10, 195], [1, 19], [92, 217], [-6, 25], [-4, 16], [-305, 195], [-300, 12], [-46, 51], [-4, 4], [0, 2], [1, 79], [35, 42], [44, 51], [149, 81], [149, 18], [170, 22], [95, -28], [103, -31], [219, -142], [503, -76], [0, 0]], [[190624, 73185], [76, -12], [37, 39], [-67, 30], [87, 6], [81, -64], [11, -75], [-370, 42], [-57, 102], [73, 39], [21, 102], [-77, 74], [56, -2], [73, -57], [56, -224]], [[281359, 70927], [-25, -91], [-139, -262], [-2, -4], [-3, -4], [-21, -27], [-5, -6], [-10, -1], [-8, -1], [-4, 1], [-2, 1], [-19, 8], [-1, 1], [0, 0], [0, 0], [-2, 2], [-2, 4], [-4, 6], [-4, 8], [-15, 71], [-1, 6], [-1, 5], [-2, 85], [13, 33], [5, 13], [0, 0], [38, 6], [31, 9], [29, 12], [0, 0], [5, 8], [20, 31], [20, 57], [9, 32], [19, 4], [39, 7], [42, -14]], [[292813, 63547], [7, 0], [9, -5], [28, -13], [40, -27], [1, -8], [0, -3], [0, 0], [1, -3], [0, -1], [0, -1], [1, -1], [1, -1], [1, -1], [0, 0], [14, -8], [0, 0], [7, 10], [0, 0], [3, -3], [9, -8], [2, -15], [3, -16], [-2, -29], [-2, -25], [-16, -40], [-3, -7], [-58, -12], [-7, -1], [0, 0], [-10, 3], [-8, 3], [-18, 6], [-8, 2], [-13, 5], [0, 0], [-2, 3], [0, 1], [-8, 28], [-19, 64], [26, 59], [3, 7], [18, 37]], [[296956, 61645], [0, 0], [0, -1], [0, -1], [1, 0], [-1, -2], [-2, -2], [-5, -2], [-3, -2], [0, 0], [-1, 0], [0, -1], [-2, 0], [-2, -1], [-2, 0], [-16, 2], [-3, 2], [-7, 2], [-4, 2], [-2, 4], [0, 0], [-1, 2], [-2, 4], [-1, 2], [-1, 3], [-1, 4], [-1, 2], [0, 2], [0, 0], [0, 1], [-1, 4], [1, 0], [0, 1], [22, -10], [34, -15]], [[297009, 61695], [-26, -38], [-10, -14], [-7, 5], [-4, 2], [-6, 3], [0, -1], [-1, 0], [0, 0], [-2, -1], [0, 0], [51, 67], [1, -5], [1, -3], [0, 0], [0, 0], [-2, 0], [1, -3], [2, -2], [0, 0], [2, -10]], [[287330, 63928], [-2, -8], [0, -3], [-1, -2], [0, -1], [0, 0], [0, 0], [-2, 0], [-5, 1], [-1, 1], [-1, 0], [0, 0], [-20, 51], [1, 2], [0, 2], [0, 1], [0, 0], [0, 0], [1, 1], [3, 0], [1, 1], [2, -1], [1, 0], [1, -1], [0, 0], [1, 0], [1, -1], [0, 0], [4, -2], [9, -6], [0, 0], [0, 0], [1, -1], [1, -1], [2, -2], [2, -16], [1, -15]], [[287131, 63986], [8, -3], [1, 0], [1, -1], [2, -1], [0, 0], [0, 0], [1, -2], [0, -1], [2, -3], [-2, -43], [0, -1], [0, 0], [-2, -2], [-19, -7], [-1, 0], [0, 0], [-1, 0], [-1, 0], [-19, 1], [-4, 2], [-19, 11], [-1, 1], [0, 0], [0, 2], [0, 0], [5, 19], [4, 19], [2, 2], [2, 4], [0, 1], [1, 2], [2, 3], [0, 1], [1, 1], [2, 1], [13, 8], [19, -12], [3, -2], [0, 0]], [[287333, 64079], [0, 0], [9, -2], [0, 0], [24, -10], [1, 0], [0, -1], [1, 0], [0, 0], [0, -1], [-1, -1], [-1, -2], [0, 0], [-39, -34], [0, 0], [-2, -2], [-1, 0], [0, -1], [0, 0], [-3, 4], [-1, 1], [-1, 6], [-1, 3], [0, 1], [0, 1], [0, 2], [0, 5], [0, 2], [0, 3], [0, 0], [0, 2], [-1, 3], [0, 6], [1, 3], [0, 1], [1, 7], [0, 1], [1, 1], [0, 0], [2, 1], [3, 1], [1, 0], [1, 0], [1, 0], [3, 0], [2, 0], [0, 0]], [[275483, 66479], [10, -22], [15, -40], [-2, -9], [-4, -15], [-7, -10], [-75, -73], [-26, -25], [0, 0], [-2, 0], [-2, 1], [-1, 0], [0, 0], [-1, 3], [-1, 0], [-2, 6], [0, 2], [1, 1], [1, 14], [0, 1], [6, 27], [21, 53], [20, 44], [3, 6], [0, 0], [8, 6], [38, 30], [0, 0]], [[102645, 74163], [0, 0], [49, -80], [2, -234], [-82, -126], [-78, -119], [-34, -33], [-5, -3], [-4, -2], [-2, -1], [-38, -13], [-26, 2], [-23, 36], [-10, 16], [-20, 60], [-28, 191], [-8, 55], [0, 0], [9, 42], [5, 12], [7, 19], [3, 5], [5, 6], [0, 1], [1, 0], [8, 6], [0, 0], [3, 2], [16, 7], [0, 0], [1, 0], [1, 1], [2, 0], [65, -49], [2, -3], [32, -43], [17, -8], [4, -1], [2, -1], [1, 0], [3, -1], [1, 0], [0, 0], [4, 3], [11, 10], [29, 27], [16, 26], [10, 17], [-2, 46], [-1, 1], [-2, 2], [-1, 1], [-1, 2], [-5, 4], [0, 0], [-1, 1], [0, 2], [-1, 1], [-1, 2], [-1, 1], [0, 1], [0, 0], [-1, 3], [-3, 8], [-4, 20], [-3, 13], [0, 1], [1, 2], [5, 14], [1, 1], [0, 2], [2, 2], [6, 6], [14, 14], [39, 31], [0, 0], [8, -8]], [[102802, 73614], [28, -23], [38, -47], [0, -1], [0, 0], [0, -1], [1, -6], [0, -2], [0, -2], [1, -3], [1, -7], [0, -1], [-1, -1], [0, -3], [-1, -7], [-1, -4], [0, -3], [-24, -30], [-1, -1], [0, 0], [-3, -3], [-10, -8], [-3, -2], [0, 0], [-20, -3], [-2, 0], [0, 0], [0, 0], [-11, 1], [-14, 4], [-1, 1], [0, 0], [-4, 3], [-1, 1], [-12, 9], [-2, 2], [-2, 4], [-2, 3], [-1, 2], [-1, 1], [-1, 1], [0, 1], [0, 6], [-2, 30], [7, 20], [8, 19], [8, 19], [12, 25], [1, 1], [0, 0], [2, 2], [0, 0], [1, 0], [0, 1], [5, 1], [5, 1], [0, 0], [1, 0], [0, 0], [1, 0]], [[103030, 73975], [-16, -12], [-30, -19], [-25, -13], [-4, 0], [-1, 0], [0, 0], [0, 0], [-1, 1], [0, 1], [-1, 2], [2, 12], [7, 7], [1, 1], [60, 41], [9, -3], [0, -1], [3, -3], [1, -1], [0, 0], [0, -1], [1, -1], [0, 0], [0, 0], [0, -1], [0, -1], [0, -1], [0, -1], [0, -1], [0, -1], [-6, -5]], [[163574, 59795], [-194, -438], [-213, 56], [-21, 93], [15, 81], [164, 283], [210, 87], [39, -162]], [[102501, 69394], [2, -1], [3, 0], [1, -3], [0, 0], [1, -1], [8, -52], [-6, -49], [-10, -50], [-4, -14], [-8, -29], [-11, -13], [-13, -15], [-18, -11], [-24, -14], [-24, 1], [-9, 0], [-38, 9], [37, 129], [3, 11], [3, 9], [10, 26], [1, 3], [8, 21], [1, 2], [0, 0], [28, 31], [22, 17], [2, 0], [2, 0], [3, -1], [30, -6]], [[102665, 69671], [-3, -4], [-11, -19], [-43, -21], [0, 0], [0, 16], [3, 18], [2, 10], [38, 58], [0, 0], [1, 1], [1, 0], [0, 1], [1, 0], [1, 0], [3, 1], [1, 0], [1, -1], [1, -1], [5, -12], [5, -13], [0, -1], [1, -1], [0, 0], [0, -2], [0, -1], [0, -1], [0, -1], [-1, -14], [0, -1], [0, -1], [-6, -11]], [[92814, 76700], [0, -81], [-248, 107], [-125, 53], [-58, 86], [36, 42], [0, 0], [24, 4], [27, 3], [0, 0], [303, -151], [41, -63]], [[262292, 43587], [-62, -20], [-33, 44], [-3, 126], [506, 343], [-37, -83], [18, -57], [-12, -97], [-377, -256]], [[260297, 44341], [-179, -60], [-184, 46], [-290, 340], [-228, 188], [-368, 36], [-128, 73], [-89, 138], [74, 127], [157, 72], [250, 8], [377, 83], [116, -149], [458, -371], [164, -214], [39, -71], [2, -73], [-79, -107], [-92, -66]], [[264159, 45206], [-277, -425], [-303, -352], [-524, -210], [-281, -7], [-16, 37], [29, 111], [43, 60], [109, 555], [47, 110], [209, 234], [60, 29], [230, 153], [145, 28], [409, 240], [124, 243], [28, 112], [64, 32], [361, 85], [1417, 170], [39, -57], [-257, -277], [-114, -65], [-150, -21], [-20, -7], [-74, -41], [-54, -83], [-545, -284], [-430, -146], [-269, -224]], [[262604, 46400], [-258, -24], [31, 117], [83, 70], [87, 2], [87, -29], [-30, -136]], [[263103, 46597], [-310, -392], [-247, 15], [-15, 45], [130, 228], [292, 96], [150, 8]], [[256923, 46390], [-155, -506], [-143, -93], [-187, 38], [-239, 161], [45, -15], [95, 1], [20, 36], [-17, 263], [16, 112], [167, 171], [96, 42], [244, -90], [55, -67], [3, -53]], [[263475, 46502], [-141, -264], [-72, -12], [-122, 110], [55, 127], [63, 46], [52, -86], [143, 218], [34, -27], [-12, -112]], [[263671, 46697], [112, -48], [356, 22], [50, -74], [8, -116], [-29, -29], [-438, -92], [-198, 80], [22, 136], [117, 121]], [[258370, 46495], [237, -35], [77, 28], [225, -246], [15, -135], [80, 23], [-95, -132], [-208, -81], [-235, -48], [-108, 118], [-99, -11], [-243, -112], [-751, -245], [-109, 0], [-221, 101], [-3, 118], [69, 93], [-35, 95], [7, 124], [46, 75], [294, 200], [228, -51], [157, -145], [158, -205], [392, 75], [23, 42], [-43, 74], [-269, 127], [-196, 237], [31, 98], [139, 54], [86, -7], [351, -229]], [[262280, 46714], [77, -190], [-112, -138], [-85, -26], [-3, -203], [-320, -143], [-381, -95], [-294, -19], [-474, -106], [-156, 19], [-252, 119], [-367, 35], [-224, -76], [-102, 91], [-1, 185], [64, 135], [125, 52], [147, 114], [63, 59], [132, 16], [482, -134], [313, -201], [510, 79], [215, -102], [282, 40], [334, 322], [24, 62], [-25, 29], [-68, -17], [-18, -32], [-50, 11], [55, 128], [69, 25], [40, -39]], [[255740, 46696], [163, -113], [133, -144], [11, -48], [-87, -110], [-409, -198], [-428, 302], [-50, 1], [-141, 251], [17, 96], [331, -111], [130, 15], [167, 134], [163, -75]], [[268222, 46781], [-55, -4], [-116, 170], [4, 85], [75, 45], [112, -29], [44, -35], [3, -60], [-67, -172]], [[265569, 47221], [14, -103], [-254, -217], [-252, 52], [-311, -104], [37, 174], [85, 154], [60, 24], [160, -54], [394, 173], [67, -99]], [[275581, 46389], [-554, -23], [107, 357], [120, 268], [162, 299], [119, 120], [152, 81], [214, 41], [53, -2], [159, -105], [92, -94], [54, -105], [-30, -159], [-248, -389], [-184, -207], [-216, -82]], [[269821, 47242], [-292, -392], [-156, 1], [-20, 123], [90, 313], [219, 318], [71, 148], [117, 60], [23, -108], [-7, -221], [-45, -242]], [[254665, 47974], [-532, -281], [-206, 15], [-113, 39], [-39, 60], [-15, -43], [24, -39], [-107, -2], [-244, 66], [8, 117], [136, 168], [971, 15], [103, -66], [14, -49]], [[272261, 48586], [61, -191], [-141, -221], [-135, -131], [-87, 89], [-39, 91], [55, 351], [53, -56], [49, -122], [-32, 175], [-72, 76], [4, 161], [27, 48], [26, -22], [118, -186], [113, -62]], [[272502, 48744], [-91, -73], [-46, 7], [-108, 99], [-74, 249], [210, 102], [50, 1], [105, -163], [-46, -222]], [[248726, 49114], [317, -308], [488, -67], [14, 55], [75, 4], [159, -235], [101, -345], [93, -58], [642, -21], [554, -68], [248, -88], [98, 52], [91, 171], [110, 363], [170, 56], [106, -45], [278, -297], [1018, -190], [66, -52], [88, -335], [51, -216], [-22, -24], [4, -105], [122, -96], [330, -177], [613, 143], [398, -160], [23, -50], [-107, -666], [11, -92], [124, -135], [-113, -99], [-321, 129], [-567, 314], [-324, -8], [-91, -75], [-212, -27], [-340, 101], [-328, 65], [-676, 27], [-520, 162], [-484, 291], [-475, 150], [-422, 80], [-200, -49], [-119, -67], [-7, -46], [-44, -31], [-105, 6], [-420, 105], [-317, 218], [-341, 76], [-429, 37], [-145, 54], [-32, 100], [34, 353], [-442, 167], [-318, -62], [-226, 49], [-16, 74], [32, 48], [121, -105], [44, 15], [174, 306], [202, 534], [161, 102], [107, -49], [417, -69], [281, 18], [-27, 41], [16, 102], [209, -51]], [[260239, 48990], [-71, -478], [-34, 365], [7, 350], [32, 98], [24, -80], [42, -255]], [[272408, 49381], [42, -238], [-124, 22], [-63, -77], [-128, 93], [15, 160], [92, 183], [45, 39], [121, -182]], [[270950, 49197], [-77, -126], [81, 322], [74, 113], [86, 355], [40, 11], [29, -43], [-45, -178], [-188, -454]], [[261522, 49760], [-11, -103], [-73, 3], [-121, 208], [13, 127], [100, 74], [38, 8], [83, -148], [-22, -96], [-7, -73]], [[262023, 49909], [-88, -179], [-204, 20], [-12, 89], [75, 428], [82, 209], [190, 150], [25, -10], [37, -36], [16, -261], [-10, -88], [-111, -322]], [[262514, 50564], [-19, -125], [-46, 86], [-70, -48], [-72, -459], [29, -29], [80, 12], [128, -134], [-349, -449], [-142, -19], [-80, 233], [17, 30], [24, 14], [34, 47], [91, 187], [79, 474], [-8, 163], [28, 173], [103, 141], [77, 35], [99, -281], [-3, -51]], [[262571, 51172], [-95, -150], [-73, 8], [-89, 115], [-9, 92], [56, 85], [147, -31], [64, -58], [-1, -61]], [[266860, 51575], [-240, -29], [-18, 96], [83, 96], [240, 121], [36, -12], [19, -142], [-120, -130]], [[256515, 51380], [-144, -149], [-39, 27], [-4, 576], [92, 248], [106, 85], [21, -424], [-32, -363]], [[266004, 51669], [-398, -181], [-79, 1], [-408, 233], [-130, 206], [-34, 95], [4, 182], [67, 94], [519, 54], [102, -10], [181, -101], [212, -241], [-5, -239], [-31, -93]], [[242839, 52272], [-63, -89], [-176, 286], [-5, 103], [67, 33], [159, -200], [18, -133]], [[268064, 52620], [360, -206], [192, 18], [309, -180], [234, -459], [-22, -330], [-195, 67], [-626, 512], [-259, 28], [-219, -117], [-151, 46], [-171, 109], [-292, -178], [-148, -24], [-47, 35], [-181, 339], [-119, -167], [-124, -317], [-61, 429], [110, 78], [113, 140], [57, 123], [1240, 54]], [[249613, 52544], [-280, -349], [-101, 152], [-33, -28], [26, -39], [-15, -49], [-150, -73], [-40, 60], [-35, 310], [30, 82], [33, 252], [150, 69], [73, -47], [196, -74], [59, -52], [60, -87], [27, -127]], [[242531, 52593], [-98, -2], [-30, 302], [2, 64], [23, 9], [150, -158], [44, -150], [-91, -65]], [[242173, 53425], [97, -309], [-188, 113], [-37, 56], [-25, 64], [51, 135], [33, 10], [69, -69]], [[264974, 53156], [-73, -43], [-80, 331], [50, 118], [70, -51], [33, -355]], [[265163, 53668], [-595, -64], [-105, 36], [-22, 27], [11, 74], [800, -8], [-89, -65]], [[268644, 53495], [-138, -20], [-123, 36], [-111, 51], [-108, 96], [253, 150], [177, 22], [35, 16], [68, 48], [94, -176], [-10, -139], [-137, -84]], [[263758, 53546], [-187, -41], [-65, 151], [27, 197], [38, 54], [99, 20], [118, 4], [549, -117], [25, -151], [-392, -24], [-212, -93]], [[274157, 53674], [-358, -6], [-205, 67], [-44, 48], [-143, 59], [-252, 57], [-31, 70], [41, 4], [1067, -144], [161, -66], [-236, -89]], [[247597, 54027], [159, -353], [14, -257], [65, -260], [82, -136], [303, -250], [-81, -276], [13, -37], [86, -51], [-252, 39], [-397, 188], [-54, 172], [9, 62], [-97, 462], [-26, 30], [-259, 41], [-142, -32], [-146, 76], [9, 129], [189, 338], [100, 103], [78, 23], [111, -124], [26, 72], [162, 95], [48, -54]], [[266669, 54074], [72, -79], [22, 4], [-91, -150], [-433, -21], [-86, 71], [-10, 39], [44, 232], [184, 99], [298, -195]], [[262517, 54341], [-5, -59], [47, -83], [116, 199], [151, -62], [-18, -160], [-63, -108], [-292, -55], [50, 100], [-25, 195], [-194, -331], [-58, 12], [-58, 151], [34, 187], [64, 108], [196, -6], [55, -88]], [[250901, 54476], [-231, -170], [-80, 57], [22, 260], [31, 47], [188, -18], [54, -12], [16, -164]], [[241763, 53759], [-101, -27], [-198, 137], [-243, 507], [47, 200], [55, 111], [189, -72], [5, -72], [142, -341], [150, -304], [-9, -94], [-37, -45]], [[269309, 54421], [-59, -186], [-80, 25], [-83, 86], [-101, 285], [13, 59], [201, 64], [99, -23], [10, -310]], [[273534, 54914], [408, -386], [-66, -70], [-138, -55], [-199, 30], [-83, 81], [-91, 341], [-148, -81], [-126, 172], [-26, 102], [144, -37], [325, -97]], [[277954, 45581], [0, 0], [-139, 108], [-542, 721], [-189, 339], [43, 65], [-9, 145], [-197, -250], [-691, -67], [-107, 117], [192, 531], [-287, 334], [157, 80], [520, -32], [80, -31], [4, 2], [-19, 130], [-18, 24], [-476, -73], [-278, 95], [-183, 186], [-4, 47], [24, 23], [159, 3], [157, 50], [-2, 54], [-254, 238], [-212, 287], [-134, 714], [-402, 461], [-181, 137], [28, 145], [82, 37], [-49, 98], [-108, -93], [-126, 16], [18, 84], [-73, -79], [-104, -33], [-94, 77], [14, 60], [-30, 65], [-7, -28], [-207, 0], [-31, 26], [-266, 121], [-553, 248], [-414, 59], [-475, 211], [-58, 47], [-78, 129], [15, 116], [102, 31], [70, -35], [66, 9], [4, 57], [-532, -24], [-114, 122], [-267, 190], [-81, -30], [-68, 82], [-59, 139], [25, 288], [31, 79], [161, 98], [-35, 174], [-165, -215], [-172, -363], [-53, -526], [-128, -168], [-221, -56], [-91, 25], [-75, 166], [-77, 332], [68, 3], [67, 173], [-55, 171], [-417, 420], [-106, 23], [-89, -22], [-77, 44], [-19, 29], [32, 150], [80, 74], [149, 10], [150, -21], [154, -96], [263, 207], [321, 154], [53, -55], [250, -198], [113, 49], [193, 201], [30, 95], [2, 27], [-84, 324], [-403, -191], [-971, -47], [-355, 333], [-79, 356], [-128, 242], [-39, 34], [-54, -5], [-92, -78], [-289, -27], [-220, 84], [64, 51], [151, 187], [58, 150], [26, 179], [766, 554], [190, 71], [286, -7], [317, -157], [170, -118], [460, -123], [229, -167], [181, -532], [-137, -495], [17, -402], [67, -266], [172, -384], [64, 99], [155, 31], [86, -414], [97, -283], [114, -92], [150, -36], [279, 14], [709, 1067], [179, 181], [323, 61], [308, 126], [13, 149], [-37, 196], [483, 310], [94, 5], [1622, -992], [216, 3], [443, -80], [182, -86], [13, -34], [-19, 14], [-37, -101], [32, -26], [232, 39]], [[277937, 52855], [0, 0], [138, -29], [14, -3], [0, 0], [237, -123], [953, -549], [0, 0], [864, -264], [0, 0], [335, -298], [221, -116], [22, -11], [0, 0], [29, 7], [72, 19], [123, -141], [348, -270], [249, -175], [55, -38], [0, 0], [98, -12], [30, -40], [280, -375], [83, -128], [3, -360], [-28, -114], [-26, -109], [26, -79], [162, -16], [89, -9], [87, -36], [135, -55], [136, -61], [47, -21], [57, -48], [131, -111], [242, -151], [137, -25], [110, 36], [23, 7], [221, -168], [92, -139], [70, -107], [54, -146], [13, -36], [4, -217], [-55, -51], [-192, -42], [-55, -2], [-168, -9], [-34, 7], [-145, 31], [-45, -12], [-65, -18], [-14, -35], [-8, -21], [-2, -93], [-3, -119], [169, -379], [41, -68], [71, -119], [36, -31], [167, -146], [163, -265], [120, -80], [175, -118], [147, -277], [64, -178], [214, -602], [24, -33], [37, -50], [63, -16], [79, -20], [162, 65], [167, 68], [70, -15], [65, -13], [22, -148], [-73, -95], [-54, -139], [46, -145], [0, 0], [14, -8], [200, -113], [465, -44], [21, -28], [17, -23], [-21, -28], [-30, -39], [-171, -42], [0, 0], [-48, -50], [-25, -26], [178, -229], [226, -90], [411, -162], [189, 59], [0, 0], [-226, -136], [0, 0], [-52, 15], [-123, 37], [-59, -34], [0, 0], [-1, -70], [58, -50], [182, -152], [0, 0], [-150, -88], [-87, -20], [-97, -22], [-77, 42], [-100, 54], [50, 103], [23, 48], [0, 5], [-3, 44], [0, 0], [-586, 114], [-378, 73], [-195, 141], [0, 0], [-355, -54], [-539, 118], [0, 0], [-137, 149], [-111, 251], [-147, 235], [-58, 39], [-73, 48], [0, 0], [-25, 6], [-15, 4], [-109, 327], [13, 48], [13, 46], [-13, 15], [-3, 3], [-58, -92], [0, 0], [-231, 89], [-43, 49], [-24, 77], [-11, 38], [12, 28], [-46, 168], [-183, 351], [-89, 171], [-93, 124], [-288, 200], [-601, 203], [-140, 30], [-18, 4], [-90, 163], [-9, 90], [-11, 105], [0, 0], [-168, 1], [-3, 4], [0, 0], [0, 0], [0, -1], [0, -3], [0, 0], [-3, 0], [-4, 0], [-139, -39], [-40, -11], [0, 0], [-141, -173], [27, -48], [17, -30], [0, 0], [-41, -69], [0, 0], [-27, -16], [-35, -20], [-189, 87], [-34, 31], [-21, 20], [-52, 143], [-19, 15], [-17, 2], [-14, -3], [-11, -2], [41, -108], [121, -313], [23, -120], [-9, -9], [-34, -40], [-86, 1], [-13, 0], [0, 0], [-65, 24], [-173, 63], [-39, 66], [0, 1], [-11, -2], [-32, -5], [0, 0], [13, -79], [57, -91], [25, -23], [108, -99], [39, -5], [18, -3], [-20, -10], [-101, -53], [-535, -91], [-37, -6], [0, 0], [-3, -63], [0, 0], [23, -20], [33, -29], [147, -32], [131, -135], [43, -69], [62, -101], [34, -266], [-13, -12], [-55, -54], [-70, -8], [-60, -6], [0, 0], [-35, -22], [-175, -108], [-230, -98], [-132, -57], [-129, 78], [-125, 74], [-841, -45], [-40, -15], [-69, -27], [-93, 108], [-10, 12]], [[246340, 55080], [-112, -74], [-35, 17], [-82, 177], [63, 99], [138, 67], [48, -37], [39, -86], [-6, -50], [-53, -113]], [[266506, 54984], [-123, -152], [-147, 2], [-61, 221], [-1, 284], [89, 75], [38, -14], [104, -152], [101, -264]], [[269301, 55715], [200, -125], [44, -69], [13, -107], [-61, -79], [-259, 20], [-256, 317], [-37, -47], [105, -197], [-40, -15], [-71, -3], [-211, 77], [62, 47], [-26, 50], [-47, 17], [-16, -23], [-2, 72], [168, 49], [364, 10], [70, 6]], [[246608, 55537], [16, -136], [-255, 63], [-61, 116], [48, 162], [22, 22], [45, -26], [115, -162], [70, -39]], [[244619, 57016], [132, -149], [85, 11], [236, -196], [19, -57], [-26, -104], [-32, 1], [-64, 100], [-364, 175], [-36, 155], [23, 65], [27, -1]], [[245018, 56972], [104, -138], [62, -90], [-32, -69], [-49, 3], [-283, 230], [-93, -8], [59, 119], [47, 29], [185, -76]], [[246477, 56920], [-38, -167], [-175, 94], [-8, 64], [1, 184], [146, 32], [74, -207]], [[244533, 56775], [-32, -1], [-83, 90], [-33, 87], [-29, 246], [21, 130], [46, 5], [171, -204], [-41, -191], [41, -131], [-61, -31]], [[240610, 56464], [-72, -91], [-110, 55], [-432, 802], [23, 94], [119, 107], [49, -1], [96, -85], [224, -304], [135, -237], [-32, -340]], [[244604, 57389], [7, -245], [-186, 206], [-167, 45], [-94, 158], [204, -48], [207, -56], [29, -60]], [[264128, 57170], [-335, -496], [-152, -390], [-239, -90], [-520, -121], [-300, 36], [-305, 187], [-326, 22], [-350, -19], [-512, 56], [-146, -73], [-206, -42], [-253, 29], [-177, 87], [-74, -6], [-178, -89], [-176, -273], [-119, -440], [46, -489], [44, -129], [514, -729], [339, -29], [87, 210], [224, 364], [150, 123], [24, -11], [-11, -103], [54, -48], [203, -42], [131, 38], [46, 79], [392, 118], [106, 128], [333, 98], [73, 1], [156, -73], [66, -163], [-60, -247], [-44, -57], [-52, 5], [-101, 102], [-2, 67], [-77, 23], [-174, -51], [-58, -56], [-63, -158], [-269, -400], [-151, -138], [-325, -113], [-72, -95], [-279, -68], [-110, 75], [-32, -71], [45, -183], [24, 23], [111, -63], [199, -181], [578, -1040], [-96, -385], [-75, -82], [0, -54], [349, -412], [72, -206], [135, 10], [-65, 93], [74, 0], [39, -83], [-9, -301], [-32, -28], [-252, 17], [-389, -125], [-59, -135], [-3, -81], [67, -99], [-93, -91], [-243, 50], [-159, 93], [-41, 87], [60, 480], [-98, 282], [-173, 149], [-314, 372], [-14, 120], [114, 204], [49, 180], [25, 156], [-1, 255], [-62, 69], [-216, 31], [-169, -89], [-326, -295], [177, -476], [30, -330], [-23, -102], [-48, -1178], [22, -814], [-641, -107], [-143, 78], [-98, 199], [-1, 76], [38, 235], [103, 287], [92, 651], [-11, 243], [-90, 570], [-55, 105], [-118, 51], [-315, -157], [-16, 15], [-114, 463], [-10, 309], [54, 239], [27, -41], [94, 60], [121, 166], [160, 1056], [-12, 293], [32, 104], [406, 629], [-22, 353], [43, 600], [85, 280], [271, 437], [91, 60], [-7, -91], [51, -47], [163, -39], [182, 291], [27, 255], [99, 90], [377, -107], [235, -221], [266, -11], [79, 8], [369, -51], [331, -217], [92, 135], [127, 9], [653, -118], [365, 190], [556, 743], [80, 29], [95, -18], [106, -180], [-13, -56], [-27, -22], [-127, -203]], [[243894, 58110], [93, -165], [-42, -216], [-105, -89], [-130, 37], [-71, 216], [13, 108], [62, 58], [33, -19], [121, 82], [26, -12]], [[266465, 56664], [78, -11], [71, 73], [127, 288], [21, 174], [81, 117], [237, 189], [179, 47], [44, -19], [9, -38], [-31, -512], [-228, -180], [-68, -19], [-141, -137], [99, -147], [162, -64], [250, -315], [-56, -32], [-511, 198], [-144, 19], [-51, -49], [-19, -106], [32, -453], [73, -268], [182, -445], [94, -117], [-86, -37], [-196, 211], [-264, 590], [-95, 980], [47, 61], [2, 49], [-86, 35], [-40, 50], [-77, 179], [34, 224], [81, 212], [24, 253], [129, 267], [131, 176], [123, 98], [59, -2], [-72, -476], [28, -60], [12, -167], [-28, -257], [-81, -164], [-223, -178], [-23, -53], [34, -111], [77, -73]], [[267124, 58063], [-200, -33], [-63, 275], [121, 235], [83, 98], [102, 72], [40, -66], [58, -90], [0, -118], [-92, -327], [-49, -46]], [[239316, 58531], [-70, -141], [-427, 306], [-100, 119], [18, 94], [66, 100], [13, -15], [260, -238], [199, -162], [41, -63]], [[249592, 59839], [-79, -20], [-65, 59], [38, 65], [-103, 157], [-30, 131], [206, 207], [47, -121], [103, -221], [-27, -114], [-90, -143]], [[265735, 60518], [-81, -257], [-77, 70], [-34, 277], [33, 201], [17, 24], [45, -22], [97, -293]], [[239142, 61628], [257, -65], [181, 45], [330, -13], [258, -26], [165, -53], [243, -289], [165, -420], [100, -18], [110, -110], [-27, -231], [-85, -47], [16, -71], [284, -167], [1097, -894], [196, -256], [3, -120], [114, -321], [3, 170], [25, 40], [47, 0], [312, -629], [309, -340], [14, 13], [0, 16], [-54, 179], [-79, 93], [-23, 119], [55, 72], [173, 4], [207, -232], [79, -338], [35, -76], [132, -76], [179, 32], [348, -361], [54, -381], [155, -207], [556, -320], [-304, -323], [1, -27], [142, 34], [241, 156], [20, 19], [74, 105], [74, 51], [70, -20], [266, -266], [43, -101], [20, -183], [-19, -46], [-141, -35], [-126, -151], [-7, -46], [121, -235], [-156, -110], [-33, -229], [324, -299], [389, -75], [133, 38], [28, -27], [79, -655], [133, -325], [182, -340], [60, -83], [553, -103], [336, -612], [36, -394], [-95, -160], [-48, -206], [47, -415], [20, -708], [-29, -564], [-59, -721], [-54, -115], [-328, 421], [-86, 57], [-66, -155], [33, -175], [-359, 171], [-129, -123], [70, -230], [-154, 1], [-558, 889], [-515, 416], [-876, 855], [-253, 523], [-347, 317], [-199, 406], [-134, 215], [-122, 138], [-184, 308], [-45, 117], [-86, 507], [-289, 775], [-245, 473], [-443, 762], [-212, 169], [-184, 263], [-304, 1098], [-5, 109], [56, 107], [-61, 126], [-384, 316], [-363, 245], [-215, 286], [-89, 421], [-213, 214], [-372, 658], [-224, 76], [-245, 190], [-717, 877], [-117, 244], [-137, 388], [11, 250], [47, 78], [128, 105], [161, -38], [226, -129], [24, -85], [134, -140], [115, -47]], [[237138, 63345], [-47, -51], [-64, 224], [-66, 72], [-5, 48], [5, 106], [24, 31], [104, 55], [21, 4], [-1, -26], [32, -36], [39, -255], [-42, -172]], [[235993, 67537], [-48, -56], [-95, 52], [-13, 220], [126, 158], [32, -40], [30, -169], [-32, -165]], [[236146, 69035], [20, -277], [-37, -183], [-36, 15], [-56, 102], [-79, 288], [38, 91], [29, -42], [14, 49], [45, 305], [40, -25], [26, -129], [-4, -194]], [[236250, 70174], [15, -37], [34, 13], [33, -99], [11, -366], [-48, -71], [-57, -1], [17, -200], [-89, -11], [18, 69], [-48, 7], [-19, 41], [-2, 303], [91, 322], [16, 462], [80, 232], [98, 64], [19, -195], [-25, -60], [-38, -2], [32, -70], [-138, -401]], [[89733, 76019], [158, -289], [0, 0], [-116, -46], [-92, -5], [-69, -4], [-124, 51], [-95, 38], [-231, -31], [-43, -5], [-66, -40], [-34, -95], [13, -16], [11, -15], [0, 0], [-336, 121], [-251, 91], [-178, 142], [-185, 148], [0, 0], [187, 276], [199, 78], [0, 0], [667, -117], [162, -74], [423, -208]], [[20891, 49474], [-1, -1], [-10, -5], [-31, 20], [0, 4], [1, 6], [0, 0], [23, 7], [31, 0], [0, 0], [1, 0], [3, -3], [2, -2], [0, 0], [1, 0], [0, -1], [1, -1], [1, -1], [0, -2], [0, -3], [0, -1], [0, -1], [0, -2], [-17, -11], [-5, -3]], [[4766, 50523], [-1, 0], [-1, 0], [0, 1], [-2, 1], [-16, 12], [-1, 1], [-1, 1], [-18, 20], [-1, 2], [-2, 4], [-1, 2], [0, 1], [0, 1], [0, 0], [1, 2], [0, 2], [0, 0], [1, 0], [3, -1], [1, 0], [18, -14], [2, -1], [1, -1], [5, -4], [2, -2], [4, -4], [0, 0], [1, 0], [1, -1], [0, -1], [1, -1], [3, -4], [0, 0], [1, -1], [0, 0], [0, -1], [3, -4], [0, -1], [0, 0], [0, -2], [0, -3], [0, -2], [-1, -1], [0, -1], [0, 0], [0, 0], [-3, 0]], [[6763, 50698], [-4, -2], [-1, 0], [0, 0], [-3, 0], [-1, 1], [-10, 5], [-9, 4], [-1, 2], [-2, 6], [-2, 4], [-2, 3], [0, 1], [0, 2], [0, 0], [0, 0], [0, 2], [0, 1], [0, 1], [1, 1], [0, 1], [1, 2], [1, 2], [0, 1], [0, 0], [3, 1], [0, 0], [1, 1], [0, 0], [1, -1], [3, 0], [35, -23], [1, 0], [-1, -3], [-2, -3], [-3, -3], [-2, -2], [-1, -1], [-2, -3], [-1, 0]], [[7583, 50776], [-1, 0], [-1, 0], [-2, 0], [-1, 0], [-3, 1], [-1, 0], [-1, 1], [-2, 0], [-1, 1], [-1, 1], [-1, 0], [0, 0], [0, 1], [-1, 1], [-1, 3], [-1, 1], [0, 1], [0, 1], [0, 7], [0, 4], [0, 0], [0, 1], [1, 3], [3, 4], [1, 1], [1, 1], [0, 0], [3, 1], [3, 3], [2, -1], [2, 0], [0, 0], [1, -1], [2, -2], [3, -3], [0, 0], [1, -1], [0, -1], [1, -2], [4, -6], [1, -2], [0, -1], [0, -3], [1, -1], [1, -6], [0, -2], [-1, -1], [0, 0], [0, 0], [-2, -2], [-3, 0], [-4, -1], [-3, -1]], [[21718, 51247], [-4, -1], [-8, -3], [-2, 2], [-4, 4], [-2, 2], [-2, 3], [-4, 6], [-1, 1], [-19, 34], [0, 0], [0, 1], [1, 0], [0, 2], [0, 2], [0, 0], [1, 1], [1, 3], [2, 3], [0, 1], [0, 0], [3, 3], [16, -3], [14, -3], [13, -2], [15, -2], [-15, -49], [0, -1], [-1, -1], [0, 0], [0, -1], [-1, -1], [-2, -1], [-1, 0]], [[7256, 52558], [0, -1], [-1, 0], [-2, 1], [-1, 0], [-71, 40], [0, 0], [0, 0], [-1, 1], [-2, 3], [-2, 2], [0, 0], [-1, 6], [-1, 1], [0, 1], [0, 3], [-1, 3], [-4, 20], [0, 2], [0, 10], [-1, 1], [0, 6], [1, 3], [0, 1], [1, 2], [1, 9], [1, 1], [0, 1], [7, 2], [1, 0], [0, 0], [1, 0], [2, -1], [2, 0], [3, -1], [1, 0], [1, 0], [5, -4], [2, -1], [1, -1], [3, -2], [1, 0], [42, -40], [0, -1], [1, 0], [0, -2], [8, -28], [6, -18], [1, -3], [0, -2], [0, -2], [-1, -6], [-1, -3], [0, -2], [-1, -1], [-1, 0]], [[307879, 53578], [0, 0], [-1, 0], [-1, 1], [0, 0], [-1, 0], [0, 0], [-1, 3], [-20, 87], [0, 3], [0, 4], [0, 0], [2, 0], [1, -1], [1, -1], [1, -1], [1, -1], [14, -15], [0, 0], [7, -8], [3, -8], [5, -13], [2, -8], [2, -16], [0, -5], [1, -11], [-1, -1], [-1, -1], [-1, -1], [-1, 0], [-2, -2], [-6, -4], [-1, 0], [-2, -1], [-1, 0], [0, 0]], [[308660, 54222], [-6, -11], [0, 0], [-55, 71], [-1, 1], [0, 0], [0, 0], [-2, 2], [-3, 4], [1, 1], [0, 1], [0, 1], [0, 1], [1, 1], [1, 1], [0, 0], [1, -1], [0, 0], [1, 0], [6, -1], [3, -1], [3, 0], [2, 0], [3, -1], [1, 0], [3, -1], [8, -10], [2, -2], [1, -3], [30, -53]], [[308258, 54220], [-1, 0], [-2, 1], [-1, 1], [-2, 2], [-19, 18], [-13, 26], [-28, 54], [0, 14], [0, 3], [0, 2], [0, 0], [2, -1], [3, -2], [2, -1], [7, -6], [3, -4], [7, -8], [4, -5], [2, -3], [2, -2], [0, -1], [7, -13], [3, -6], [12, -28], [1, -2], [1, -1], [0, -2], [3, -7], [3, -7], [3, -8], [1, -6], [1, -3], [1, -2], [-1, -1], [0, -2], [0, 0], [-1, 0]], [[307183, 54379], [-1, -1], [-4, 2], [-28, 22], [-11, 9], [-8, 12], [-40, 55], [-2, 14], [1, 4], [0, 0], [1, 1], [0, 0], [0, 1], [1, -1], [1, -1], [1, -1], [1, -1], [0, 0], [64, -81], [22, -27], [1, -1], [1, -1], [0, 0], [0, 0], [1, -1], [0, -1], [0, -2], [-1, -1]], [[306922, 54890], [0, -12], [0, 0], [-2, 0], [-1, 1], [-11, 48], [-3, 16], [-2, 15], [0, 9], [0, 6], [-1, 4], [0, 14], [0, 1], [0, 1], [-1, 3], [0, 3], [-2, 6], [0, 2], [-1, 2], [-1, 2], [0, 2], [0, 0], [0, 0], [-1, 3], [-2, 4], [0, 1], [0, 0], [-1, 2], [-1, 1], [-20, 28], [-12, 13], [-13, 14], [-4, 3], [-6, 7], [0, 1], [0, 0], [1, 1], [1, 0], [0, 0], [2, 0], [6, -3], [1, 0], [0, 0], [0, -1], [1, 0], [0, -1], [2, -1], [0, -1], [1, 0], [1, -1], [2, -2], [1, -1], [0, -1], [15, -19], [6, -8], [4, -5], [5, -5], [7, -10], [8, -11], [0, -2], [1, -1], [0, -2], [0, -2], [1, -1], [0, -4], [1, -2], [0, -2], [0, -1], [0, -1], [18, -113]], [[306157, 55882], [-1, 0], [-1, 0], [-1, 0], [-1, 0], [0, 1], [14, 56], [7, 27], [0, 0], [1, 0], [0, 0], [1, 0], [1, 0], [1, -1], [1, 0], [1, 0], [0, -1], [1, -2], [0, 0], [0, -1], [1, -1], [0, -1], [1, -1], [2, -6], [0, -4], [0, -7], [0, 0], [0, -1], [-1, -6], [0, -1], [0, 0], [-9, -32], [-2, -7], [-1, -1], [0, -1], [-1, -2], [0, 0], [-1, -2], [-12, -6], [0, 0], [-1, 0]], [[306443, 56208], [0, 0], [-72, 48], [-23, 17], [-1, 0], [0, 1], [-2, 4], [0, 1], [0, 0], [0, 1], [1, 1], [10, 21], [1, 0], [3, 2], [2, 2], [1, 1], [1, 0], [2, 0], [3, 1], [1, 0], [1, 0], [3, -1], [3, -1], [4, -3], [3, -2], [1, 0], [0, -1], [1, -1], [3, -3], [5, -5], [4, -4], [39, -46], [4, -9], [2, -4], [3, -18], [-1, 0], [0, -1], [-1, -1], [-1, 0]], [[305643, 56686], [-1, 0], [-2, -1], [0, 0], [0, 1], [10, 30], [2, 2], [19, 54], [20, 27], [1, 1], [0, 0], [1, 1], [1, 1], [0, 0], [1, 1], [4, 3], [0, 1], [3, 2], [1, 2], [0, 0], [3, 5], [0, 0], [0, 1], [1, 2], [1, 3], [1, 3], [0, 3], [0, 3], [-1, 2], [0, 1], [-1, 2], [0, 1], [-1, 2], [-1, 1], [0, 1], [-1, 1], [-1, 1], [0, 1], [-4, 5], [-1, 1], [-20, 25], [-7, 7], [-5, 6], [0, 0], [4, -2], [6, -3], [14, -10], [0, -1], [1, 0], [3, -2], [3, -2], [1, -1], [0, 0], [2, -1], [0, -1], [8, -10], [5, -8], [1, -7], [0, -2], [0, -3], [0, -2], [0, -3], [0, -1], [-1, -1], [0, -2], [0, -1], [0, -1], [0, -1], [-2, -6], [-1, -1], [0, -2], [0, 0], [-2, -3], [-41, -83], [-14, -27], [-1, -3], [-1, -1], [-3, -5], [-1, -2], [-4, -4]], [[305790, 57265], [0, 0], [-4, -1], [-87, 0], [0, 0], [0, 0], [-1, 1], [-1, 0], [0, 0], [0, 0], [-2, 1], [0, 0], [0, 1], [1, 4], [49, 21], [26, 11], [7, -2], [2, -1], [11, -6], [0, -1], [0, 0], [2, -3], [0, 0], [0, 0], [0, 0], [0, -2], [2, -4], [0, -1], [2, -9], [0, -1], [-1, -2], [0, -1], [-1, -1], [-1, -1], [-2, -3], [-2, 0]], [[305650, 57663], [-3, -1], [-1, 1], [-2, 0], [0, 1], [-1, 0], [-1, 0], [-1, 0], [0, 1], [-1, 0], [0, 0], [-1, 2], [-1, 1], [0, 1], [0, 1], [0, 2], [29, 75], [9, 25], [0, 0], [3, -1], [5, -2], [2, -3], [2, -4], [1, -1], [0, 0], [0, -1], [2, -2], [4, -7], [0, 0], [0, -4], [0, -4], [0, 0], [0, -1], [-1, -2], [0, -2], [0, -4], [0, -2], [0, 0], [0, -1], [0, -1], [0, -1], [-2, -7], [0, 0], [-1, -8], [-1, -2], [0, -2], [-1, -3], [-1, -4], [-1, -4], [-1, -4], [0, -1], [-1, -1], [-3, -6], [-11, -15], [-1, -1], [-4, -5], [-2, -1], [-2, 0], [-3, -1], [0, 0], [-1, 0], [-1, 0], [0, 0], [-2, -1], [-5, 0]], [[305903, 57947], [0, 0], [-1, 0], [-7, 1], [-1, 1], [0, 0], [-1, 0], [-2, 0], [-8, 3], [-4, 1], [-2, 1], [-1, 0], [-1, 1], [-3, 1], [-2, 2], [-1, 0], [0, 1], [-2, 2], [0, 0], [0, 1], [0, 5], [-1, 7], [0, 3], [0, 0], [0, 2], [1, 0], [0, 1], [1, 2], [0, 0], [1, 0], [2, 0], [11, -1], [28, -3], [10, -16], [0, -2], [-1, -3], [0, 0], [-1, -2], [0, -1], [-1, -1], [0, 0], [-1, -1], [-1, -1], [-1, -1], [-2, -1], [-2, -1], [-1, -1], [-1, 0], [-2, 0], [0, 0], [-2, 0], [-1, 0]], [[19329, 57992], [169, -252], [0, 0], [4, -10], [1, 0], [0, -1], [0, -1], [1, 0], [1, -3], [0, -1], [1, -3], [1, -1], [0, -1], [0, -1], [1, -3], [0, -2], [1, -2], [0, -3], [1, -4], [0, 0], [0, -1], [0, -5], [1, -9], [0, -1], [0, -1], [0, -3], [0, -2], [0, -2], [0, -11], [0, 0], [-1, -2], [-1, 0], [0, -1], [-2, -1], [0, 0], [-1, 0], [-19, -4], [-14, -2], [-10, 3], [-6, 2], [0, 1], [-1, 0], [-1, 0], [-1, 1], [-1, 0], [-3, 2], [-257, 162], [0, 0], [23, 75], [0, 0], [5, -12], [10, -25], [37, -43], [22, -1], [1, 0], [2, 0], [0, 1], [1, 0], [1, 0], [2, 0], [0, 1], [0, 0], [10, 50], [2, 10], [1, 64], [-3, 13], [-1, 2], [-1, 2], [-7, 12], [-1, 2], [-5, 6], [-28, 32], [-19, 15], [0, 1], [37, -5], [47, -38]], [[305907, 57982], [-5, -2], [0, 0], [-34, 40], [-1, 1], [0, 0], [0, 0], [0, 0], [0, 2], [1, 2], [0, 1], [0, 1], [0, 1], [0, 1], [0, 2], [1, 5], [0, 2], [1, 2], [0, 0], [0, 1], [1, 3], [0, 1], [1, 3], [1, 3], [3, 4], [0, 0], [0, 0], [1, 1], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [2, -1], [1, 0], [2, -1], [1, -1], [0, 0], [1, 0], [1, -1], [0, -1], [3, -3], [0, 0], [2, -2], [2, -5], [1, -2], [0, 0], [0, -1], [2, -6], [0, -1], [0, -1], [1, -3], [8, -44], [0, 0], [-1, 0], [-1, -1]], [[305441, 59152], [-7, -2], [0, 0], [0, 16], [1, 1], [2, 8], [22, 13], [18, 12], [13, 8], [3, 0], [0, 0], [7, 3], [1, 1], [3, 0], [1, 1], [2, 0], [4, 1], [2, 1], [11, 1], [1, 1], [26, 4], [3, -3], [-5, -10], [-108, -56]], [[305607, 59284], [-48, -50], [-1, 0], [-1, 0], [-2, 1], [-1, 0], [-1, 0], [0, 0], [6, 12], [2, 3], [1, 1], [0, 1], [51, 51], [0, 0], [0, -1], [2, -3], [0, 0], [2, -3], [-10, -12]], [[17629, 59993], [-7, 0], [-5, 0], [-1, 0], [-12, 2], [-1, 0], [-2, 0], [0, 0], [-2, 1], [-2, 1], [-1, 1], [-1, 1], [-1, 1], [-3, 3], [-1, 0], [0, 1], [-1, 0], [-8, 12], [-4, 5], [-1, 1], [0, 1], [-1, 1], [0, 2], [-2, 3], [-1, 3], [-1, 5], [-1, 1], [-1, 2], [0, 2], [-1, 3], [-1, 5], [0, 1], [0, 1], [0, 0], [0, 0], [2, 2], [0, 1], [0, 0], [86, -3], [9, -1], [2, -1], [6, -5], [0, -2], [0, -1], [0, -1], [0, -3], [0, -2], [-1, -5], [0, -2], [0, 0], [0, -1], [-2, -4], [0, 0], [-1, -3], [0, 0], [0, -1], [-2, -2], [-1, -1], [-26, -22], [-1, 0], [0, 0], [-2, -1], [-5, -1], [-2, 0]], [[17665, 60073], [3, -6], [0, 0], [-11, 1], [-2, 0], [-3, 0], [-13, 1], [-6, 2], [-3, 2], [0, 0], [-2, 1], [-8, 6], [-2, 1], [0, 0], [-1, 1], [-9, 7], [0, 0], [0, 0], [-1, 1], [-1, 2], [-1, 1], [-4, 6], [0, 1], [0, 0], [-3, 9], [-4, 20], [-4, 17], [1, 1], [0, 1], [0, 0], [1, 0], [1, -1], [1, 0], [1, 0], [0, 0], [39, -41], [31, -33]], [[17555, 60082], [-2, -5], [-1, -2], [0, 0], [0, 1], [-1, 2], [-1, 1], [0, 1], [-2, 2], [0, 2], [-1, 1], [0, 2], [-1, 1], [-1, 2], [0, 1], [-1, 1], [-1, 5], [0, 1], [-1, 1], [0, 1], [-1, 5], [0, 1], [0, 0], [0, 1], [1, 2], [0, 3], [0, 1], [4, 11], [4, 11], [0, 0], [17, 15], [2, 1], [1, 1], [1, 1], [1, 0], [3, 0], [3, 0], [1, 0], [2, -1], [1, -1], [1, 0], [1, -1], [2, 0], [0, 0], [0, -1], [0, -1], [0, 0], [0, 0], [0, -1], [0, -1], [-31, -64]], [[101469, 75185], [26, -18], [25, -22], [15, -15], [21, -30], [23, -38], [37, -63], [0, 0], [-4, -2], [-15, -8], [-116, 71], [-9, 9], [-18, 18], [-13, 14], [-5, 5], [-15, 23], [-2, 8], [-1, 2], [2, 10], [1, 5], [5, 9], [7, 9], [0, 0], [2, 2], [7, 6], [22, 6], [1, 0], [2, -1], [1, 0], [1, 0]], [[101670, 74948], [6, -4], [9, -8], [1, -1], [2, -3], [1, -2], [4, -5], [0, -1], [0, -1], [1, -1], [1, -6], [1, -6], [1, -1], [0, -2], [0, 0], [0, -1], [1, -2], [0, -2], [0, -1], [0, -1], [0, -1], [0, -8], [1, -1], [0, -3], [1, -14], [-1, -2], [0, 0], [0, -1], [0, -5], [0, -2], [-1, -4], [-4, -16], [-2, -5], [-2, -2], [-3, -2], [0, 0], [-36, -10], [-1, 0], [-1, 0], [-1, 0], [0, 0], [-2, 1], [-8, 5], [-2, 1], [-3, 2], [-1, 1], [-1, 3], [-7, 17], [-1, 3], [-1, 2], [-1, 7], [0, 4], [0, 2], [0, 2], [0, 0], [0, 3], [1, 11], [0, 4], [0, 1], [1, 2], [0, 11], [1, 2], [0, 3], [14, 33], [2, 1], [4, 3], [8, 3], [2, -1], [1, 0], [1, 0], [3, 0], [11, -2]], [[103136, 71393], [9, -46], [0, -32], [-3, -95], [0, -2], [-1, -2], [0, -1], [0, -1], [-2, -10], [-1, -9], [-4, -23], [-5, -25], [-3, -15], [0, -2], [0, 0], [0, 0], [-1, -3], [-1, -2], [0, -1], [-9, -20], [-27, -45], [-13, 2], [-10, 2], [-31, 16], [-20, 10], [-1, 1], [-3, 2], [-1, 1], [-1, 1], [0, 0], [-9, 11], [-4, 4], [0, 1], [-5, 7], [-9, 10], [-2, 3], [0, 1], [-1, 1], [-2, 6], [-3, 8], [0, 7], [0, 0], [-1, 3], [0, 66], [0, 5], [0, 1], [0, 1], [5, 23], [5, 24], [1, 1], [0, 2], [4, 8], [38, 76], [17, 36], [15, 32], [19, 45], [0, 0], [1, 2], [2, 4], [1, 2], [0, 0], [1, 1], [1, 1], [2, 1], [1, 0], [0, 0], [2, 0], [1, 0], [1, 0], [9, 0], [0, 0], [2, 0], [1, -1], [0, 0], [3, -2], [2, -2], [0, 0], [0, -1], [0, 0], [0, -1], [0, -2], [0, -2], [0, -1], [-1, -1], [0, -1], [16, -33], [12, -23], [0, 0], [1, -4], [2, -20]], [[226274, 62684], [-648, -316], [-190, 50], [-150, 81], [-73, 91], [-63, 175], [-164, 737], [-39, 827], [-38, 227], [56, 170], [86, 867], [133, 308], [26, 90], [15, 56], [32, 249], [142, 11], [36, 12], [26, 19], [0, 31], [-48, 57], [-33, 28], [-49, 36], [-29, 19], [-35, 19], [-142, 7], [-65, 71], [-11, 56], [103, 46], [191, -5], [88, -162], [374, -395], [260, -532], [325, -868], [254, -451], [85, -333], [17, -365], [-91, -444], [-67, -155], [-314, -314]], [[254205, 80435], [-34, -18], [-8, 58], [32, -1], [-7, -25], [17, -14]], [[198515, 42429], [71, -250], [-46, -36], [-46, 68], [-22, -35], [-1, -65], [71, -78], [31, -2], [14, 35], [174, -292], [3, -138], [320, -464], [183, -863], [37, -781], [34, -198], [98, -339], [121, -244], [-22, -234], [-112, -386], [-77, -170], [-72, -6], [-113, 118], [-105, 477], [-27, 20], [-135, -33], [-81, -118], [126, -681], [77, -90], [-1, -208], [-128, -487], [-100, -51], [-147, -521], [53, -204], [6, -280], [-128, -631], [-590, -2111], [-306, -1297], [-378, -1339], [-234, -1251], [-241, -697], [-168, -619], [-279, -206], [-181, -65], [-81, 19], [-140, -24], [-230, -97], [-474, -333], [-340, -6], [-414, 306], [-258, 85], [-214, 160], [-57, 88], [-322, 745], [-20, 617], [53, 211], [6, 216], [-316, 694], [-103, 525], [12, 306], [188, 665], [198, 179], [687, 1441], [2, 46], [-15, 133], [-37, 132], [42, 176], [-10, 116], [-191, 550], [-192, 937], [-79, 566], [5, 125], [339, 726], [98, 721], [286, -9], [243, 124], [286, 64], [157, 10], [41, -44], [-1, 225], [65, 86], [186, 18], [48, -23], [9, -81], [70, -10], [19, 59], [190, -121], [85, -109], [120, 51], [-25, 45], [-149, 151], [-21, 94], [25, 64], [135, 164], [153, 108], [-3, -16], [7, -7], [17, -4], [-6, 68], [168, 164], [73, 32], [78, -127], [-127, -319], [36, 10], [241, 171], [14, 26], [-122, 334], [195, 348], [124, 149], [45, -160], [-99, -193], [-3, -130], [36, -12], [40, 35], [218, 492], [-36, 263], [71, 187], [187, 76], [-31, -151], [19, -72], [12, 19], [41, 281], [-67, 182], [-64, 59], [-26, 127], [45, 205], [64, 52], [47, -24], [119, -222], [52, -57], [44, 9], [199, 293], [137, 106], [139, 197], [95, 498], [-77, 305], [72, 66], [158, 253], [59, 111], [-11, 159], [82, 78]], [[219519, 60417], [-1, 0], [-1, 0], [-1, 1], [-1, 6], [0, 3], [0, 2], [0, 14], [0, 4], [2, 8], [1, 2], [0, 3], [2, 6], [3, 8], [0, 2], [1, 3], [1, 1], [2, 4], [1, 3], [2, 1], [1, 1], [1, 0], [1, 0], [1, 0], [2, 0], [0, -1], [1, -2], [0, -1], [0, -1], [0, -3], [-2, -5], [-4, -19], [-1, -2], [0, -1], [-1, -2], [0, -1], [-3, -14], [0, -2], [-1, -2], [0, -2], [0, -1], [-5, -12], [-1, -1]], [[219206, 54990], [-1, 0], [-4, -2], [-3, -1], [-7, 6], [-2, 2], [-1, 1], [-3, 5], [2, 0], [5, -1], [3, 0], [1, 0], [8, -2], [1, 0], [1, -1], [3, -2], [2, -2], [-2, -1], [-3, -2]], [[219233, 55006], [-1, -1], [-10, -6], [-3, -3], [-1, 4], [-1, 1], [11, 17], [1, -1], [3, -5], [2, -2], [0, -2], [-1, -2]], [[219169, 55017], [0, -1], [-1, -3], [-3, 1], [-1, 1], [-3, 3], [-1, 2], [-1, 3], [-1, 3], [2, 3], [1, 1], [2, -2], [1, -1], [1, -1], [1, -1], [1, -3], [2, -3], [0, -2]], [[219256, 55056], [-1, -1], [0, 1], [-1, 6], [3, 4], [1, 1], [1, 1], [1, 1], [4, 4], [0, -1], [1, -1], [-1, -3], [-1, -5], [-7, -7]], [[219156, 55048], [0, -2], [0, -3], [-1, -1], [-1, 0], [-1, 0], [-1, 1], [-16, 33], [-1, 3], [-5, 11], [0, 2], [0, 6], [1, 3], [3, 6], [0, 1], [2, 2], [2, 3], [1, 1], [1, -1], [2, -12], [1, -1], [5, -24], [1, -3], [1, -2], [6, -23]], [[219269, 55080], [-1, -1], [-1, -1], [-1, 5], [-1, 3], [-1, 2], [-7, 20], [3, 4], [6, 5], [2, 0], [1, 0], [2, -2], [1, -1], [1, -1], [0, -2], [-1, -3], [-3, -20], [0, -8]], [[219443, 55421], [0, -1], [-2, -2], [-1, -1], [-1, 0], [-4, 0], [-11, 21], [4, 4], [3, 2], [2, 1], [1, 0], [2, -1], [0, -2], [3, -6], [1, -3], [0, -2], [1, -3], [2, -7]], [[219132, 56010], [-1, -1], [-2, 0], [-1, 0], [-3, 3], [-2, 2], [0, 2], [1, 1], [1, 0], [6, -4], [0, -2], [1, -1]], [[219151, 56015], [5, -6], [0, -2], [0, -1], [-1, -3], [-2, -4], [-3, 0], [-3, 5], [-1, 3], [-1, 3], [0, 2], [0, 1], [1, 2], [1, 1], [3, 1], [1, 0], [0, -1], [0, -1]], [[219124, 56024], [-1, -1], [-2, -1], [-5, 1], [1, 3], [1, 1], [1, 0], [3, 0], [1, -1], [0, 0], [1, -1], [0, -1]], [[219253, 56025], [-1, -1], [0, -1], [-2, -4], [-10, -2], [-2, 1], [-1, 1], [0, 2], [1, 3], [5, 6], [3, -1], [5, -1], [1, 0], [0, -1], [1, -2]], [[219081, 56070], [0, -1], [-2, 0], [-1, 0], [-1, 1], [-3, 1], [0, 3], [1, 0], [2, 0], [1, -1], [3, -2], [0, -1]], [[219382, 56067], [-2, -1], [-1, 0], [-1, 1], [0, 2], [-1, 3], [1, 1], [0, 1], [1, 1], [5, 7], [2, 3], [1, 0], [2, 1], [0, -1], [1, 0], [1, -1], [1, -2], [-10, -15]], [[219412, 56091], [-2, -1], [-2, 0], [-1, 2], [1, 1], [1, 3], [2, 0], [2, 1], [0, -1], [0, -1], [0, -3], [-1, -1]], [[219055, 56095], [-2, -1], [-1, 0], [-8, 5], [-1, 1], [-1, 3], [3, 0], [9, -6], [1, -2]], [[219423, 56109], [0, -1], [-1, -2], [-1, 1], [-1, 3], [1, 4], [2, 1], [1, 2], [2, 0], [0, -2], [0, -2], [-3, -4]], [[219433, 56127], [-1, 0], [-3, -1], [0, 1], [0, 3], [0, 2], [0, 1], [2, 1], [1, 1], [5, 2], [1, -2], [0, -1], [0, -1], [-5, -6]], [[219446, 56130], [-2, 0], [-2, 2], [0, 2], [0, 1], [3, 7], [1, -1], [2, -7], [0, -2], [-2, -2]], [[219454, 56140], [-1, -1], [-1, -1], [-2, 1], [0, 2], [0, 3], [2, 2], [6, 5], [1, 2], [1, -1], [1, 0], [0, -1], [0, -1], [-6, -9], [-1, -1]], [[219482, 56155], [-1, -1], [-3, -1], [-1, -1], [-1, 2], [0, 1], [1, 2], [0, 1], [2, 2], [2, 1], [1, 0], [0, 0], [1, -1], [0, -2], [0, -1], [-1, -2]], [[219489, 56168], [-1, -2], [-1, -1], [-1, 5], [0, 1], [2, 3], [1, 1], [0, 1], [1, 0], [1, -2], [0, -2], [-1, -3], [-1, -1]], [[219496, 56181], [-2, 0], [-2, -1], [1, 4], [0, 6], [3, 4], [1, 1], [1, 0], [0, -1], [1, -1], [-1, -3], [0, -2], [-1, -4], [-1, -1], [0, -2]], [[219032, 56204], [-1, -1], [0, -1], [-3, 0], [-2, 1], [-1, 1], [-3, 4], [0, 2], [0, 1], [0, 1], [7, -4], [1, -1], [1, -1], [1, -2]], [[219502, 56232], [0, 0], [-1, -1], [-2, 2], [-1, 1], [0, 4], [0, 2], [0, 1], [1, 0], [2, -4], [0, -1], [1, -2], [0, -1], [0, -1]], [[219021, 56261], [-2, -7], [0, 2], [-2, 4], [0, 3], [1, 3], [0, 1], [1, 0], [1, 1], [0, -1], [1, -1], [1, -3], [-1, -1], [0, -1]], [[219499, 56263], [-1, -3], [-1, 2], [-1, 2], [0, 3], [1, 1], [0, 1], [1, 0], [0, -1], [1, -2], [0, -3]], [[219494, 56297], [-1, -1], [0, 0], [-3, 3], [-1, 2], [-1, 1], [0, 1], [0, 1], [3, 0], [2, -2], [1, -1], [0, -2], [0, -1], [0, -1]], [[219014, 56301], [-1, -1], [-3, 1], [-1, 1], [-2, 7], [0, 3], [-1, 2], [1, 0], [0, 1], [3, 1], [2, 0], [1, -3], [1, -5], [0, -2], [0, -2], [0, -3]], [[219489, 56316], [0, 0], [-1, 0], [-1, 0], [-2, 1], [-1, 2], [0, 1], [-3, 6], [0, 3], [1, 1], [5, -6], [2, -2], [2, -2], [0, -1], [0, -2], [-2, -1]], [[219013, 56348], [-1, -1], [-2, -1], [-3, 2], [5, 9], [2, -1], [0, -2], [0, -1], [-1, -2], [0, -2], [0, -1]], [[219402, 56463], [-1, 0], [-1, 0], [-5, 6], [-1, 3], [1, 3], [2, 0], [1, -1], [4, -4], [0, -2], [1, -3], [0, -1], [-1, -1]], [[219192, 56520], [-3, -2], [-1, 0], [-1, -1], [0, 2], [-1, 2], [1, 1], [2, 1], [2, 0], [1, 0], [0, -3]], [[219398, 56526], [-1, -2], [-2, 1], [-1, 1], [-1, 1], [0, 2], [-1, 6], [1, 2], [1, 2], [2, -1], [0, -1], [1, -1], [1, -5], [0, -5]], [[219394, 56545], [-1, 0], [-1, -1], [-1, 2], [1, 3], [0, 3], [1, 1], [0, 1], [2, 2], [1, 0], [0, -1], [1, -2], [0, -2], [-1, -3], [-1, -1], [-1, -2]], [[219390, 56571], [-2, -1], [-1, 0], [-2, 1], [0, 4], [2, 2], [4, 6], [0, -1], [1, 0], [1, -1], [0, -2], [0, -1], [-3, -7]], [[219393, 56594], [-1, -1], [-1, -1], [-1, 0], [-1, 0], [0, 2], [-1, 6], [0, 3], [1, 1], [0, 1], [2, -1], [1, -3], [1, -5], [0, -1], [0, -1]], [[219369, 56695], [-1, -2], [-1, 1], [-2, 4], [0, 3], [0, 3], [2, 2], [1, -1], [1, -1], [0, -2], [1, -4], [-1, -2], [0, -1]], [[219387, 57752], [-4, -7], [-2, -2], [-10, 1], [0, 3], [1, 3], [1, 0], [1, 0], [13, 4], [0, -2]], [[219355, 57759], [0, -1], [1, -3], [-3, -2], [-1, -1], [-5, 1], [-2, 1], [0, 1], [-1, 1], [1, 2], [10, 1]], [[219402, 57764], [-1, -1], [-1, -1], [-4, -4], [-2, -1], [-1, 0], [-1, 0], [-3, 1], [-2, 1], [0, 1], [7, 8], [3, 0], [2, 0], [1, -1], [1, 0], [2, -1], [-1, -1], [0, -1]], [[219319, 57765], [-3, -1], [-1, 0], [-2, 2], [-1, 3], [3, 1], [4, 1], [1, 0], [1, 0], [0, -1], [1, -2], [-1, -1], [-2, -2]], [[219412, 57783], [-1, 0], [-1, 0], [-1, 2], [-1, 1], [-1, 2], [1, 2], [1, -1], [2, -1], [1, -2], [1, -1], [-1, -2]], [[219399, 57784], [0, -2], [-2, 1], [-2, 1], [0, 2], [0, 2], [0, 1], [0, 2], [1, 1], [3, -8]], [[219402, 57792], [-1, -2], [-1, 1], [-1, 1], [1, 2], [2, 1], [1, 0], [0, -2], [-1, -1]], [[219452, 57787], [0, -1], [-1, -1], [-1, -1], [-3, 1], [-2, 0], [0, 1], [-1, 5], [7, 3], [3, -1], [-2, -6]], [[219304, 57788], [-1, 0], [-1, 0], [-10, 7], [0, 2], [1, 1], [1, 1], [1, 0], [4, -1], [2, 0], [1, -1], [2, -3], [1, -2], [0, -2], [-1, -1], [0, -1]], [[219493, 57799], [-1, -1], [-8, -8], [-1, 0], [-3, 1], [0, 3], [22, 27], [0, -2], [0, -1], [0, -2], [-1, -2], [0, -2], [-2, -4], [-3, -5], [-1, -1], [-1, -2], [-1, -1]], [[219514, 57831], [-3, -7], [-2, 1], [-3, 1], [1, 1], [4, 14], [1, 4], [1, -1], [1, -1], [0, -12]], [[219279, 57863], [-3, 0], [-2, -1], [-2, 2], [0, 1], [0, 2], [1, 1], [4, 3], [1, 2], [1, -1], [2, -1], [1, -1], [1, -2], [-1, -1], [-3, -4]], [[219520, 57858], [-3, 1], [9, 62], [1, 3], [0, 1], [2, 2], [1, -1], [2, -1], [1, -1], [1, -1], [2, -3], [1, -1], [0, -7], [1, -2], [0, -1], [-1, -2], [0, -1], [-1, -3], [-2, -7], [0, -1], [-1, -3], [-11, -30], [-2, -4]], [[219299, 57937], [-2, -1], [-2, 2], [0, 3], [1, 2], [0, 1], [1, 1], [1, 1], [1, 0], [0, 0], [1, -2], [0, -2], [0, -1], [0, -3], [-1, -1]], [[219531, 57950], [-2, -1], [-2, 7], [-1, 1], [-1, 3], [2, 2], [1, -1], [1, -2], [1, -2], [1, -6], [0, -1]], [[219344, 57970], [-1, -1], [-1, 0], [-4, 1], [0, 1], [-1, 1], [0, 2], [0, 2], [1, 2], [1, 1], [3, 1], [0, 0], [1, 0], [1, -1], [0, -9]], [[219525, 57998], [0, -1], [0, -3], [-2, 0], [0, 1], [-1, 1], [-1, 1], [-1, 1], [0, 3], [0, 1], [3, 1], [1, 1], [0, -3], [1, -1], [0, -2]], [[219524, 58041], [-1, -1], [-1, 0], [0, 2], [-1, 1], [0, 3], [0, 2], [1, 4], [2, -1], [0, -2], [1, -1], [-1, -4], [0, -3]], [[219528, 58062], [-1, 0], [-3, -1], [1, 3], [1, 5], [1, 1], [1, 0], [0, 0], [1, 0], [0, -1], [0, -2], [0, -4], [-1, -1]], [[219536, 58078], [-3, -1], [-1, -1], [-1, 1], [-1, 3], [4, 17], [2, 2], [1, 0], [1, -1], [0, -3], [-1, -1], [0, -5], [0, -9], [-1, -2]], [[219548, 58101], [-2, -1], [-1, 0], [-1, 0], [-4, 0], [0, 1], [-1, 3], [2, 5], [2, 8], [19, 2], [2, 0], [2, -1], [1, -1], [1, -1], [0, -1], [-2, -2], [-1, -1], [-2, -2], [-2, -1], [-13, -8]], [[219090, 58177], [-2, -1], [-3, 1], [-2, 1], [-1, 1], [0, 1], [0, 2], [1, 0], [2, 0], [4, 1], [1, -2], [1, -2], [-1, -1], [0, -1]], [[219126, 58177], [-2, 0], [-1, 0], [-1, 1], [-1, 2], [-1, 3], [3, 2], [2, -2], [1, -2], [1, -1], [-1, -1], [0, -2]], [[219147, 58191], [-1, -1], [-3, 0], [0, 1], [-2, 1], [0, 3], [1, 4], [1, 3], [1, -1], [1, 0], [2, -3], [0, -2], [1, -2], [-1, -2], [0, -1]], [[219040, 58205], [-1, -3], [-1, 1], [-2, 0], [-1, 1], [-2, 4], [2, 2], [1, 0], [1, -1], [1, -2], [2, -2]], [[219168, 58203], [-2, -1], [-3, 0], [-2, 0], [-2, 2], [-2, 1], [-1, 1], [0, 3], [-1, 1], [0, 2], [1, 1], [0, 0], [1, 0], [2, -1], [7, -5], [2, -1], [0, -1], [0, -2]], [[219191, 58219], [-1, -1], [-1, 0], [-2, 2], [-1, 4], [0, 1], [1, 2], [1, 0], [1, -1], [0, -1], [1, -2], [1, -1], [0, -1], [0, -1], [0, -1]], [[219013, 58294], [0, -5], [0, -1], [-2, 2], [-3, 4], [0, 2], [1, 0], [1, 1], [0, -1], [1, 0], [1, -1], [1, -1]], [[219021, 58313], [0, -2], [-1, -1], [-5, 1], [0, 1], [-1, 2], [3, 5], [2, 0], [2, -6]], [[219002, 58343], [-1, 0], [-2, 1], [-1, 1], [-1, 5], [-1, 3], [0, 3], [-1, 1], [0, 2], [1, 1], [0, -1], [2, -1], [1, -1], [2, -8], [0, -1], [1, -3], [0, -2]], [[219358, 58368], [-1, -1], [-2, -2], [-2, 1], [-1, 2], [1, 7], [2, 2], [1, 0], [1, 0], [2, -1], [0, -1], [0, -2], [0, -2], [-1, -3]], [[219368, 58389], [-2, -1], [0, 1], [1, 3], [1, 2], [4, 7], [0, 1], [1, 0], [0, -2], [0, -3], [-2, -3], [-2, -4], [-1, -1]], [[218991, 58396], [-1, -2], [-1, 1], [-4, 9], [0, 1], [1, 2], [1, 0], [2, 0], [0, -2], [1, -3], [1, -6]], [[219376, 58420], [-2, -1], [-2, 1], [-5, 45], [8, -11], [4, -15], [-2, -15], [-1, -2], [0, -2]], [[219333, 58548], [-2, -1], [0, -1], [-1, 2], [-2, 3], [-1, 5], [0, 2], [1, 2], [2, 1], [1, 0], [1, -1], [0, -1], [1, -5], [1, -3], [-1, -3]], [[218980, 58744], [-1, -1], [-1, 0], [0, 1], [-1, 2], [-1, 3], [0, 2], [0, 3], [3, -1], [1, 0], [1, -6], [0, -2], [-1, -1]], [[218953, 58759], [-1, -1], [-2, -1], [-1, 0], [-3, 1], [-1, 2], [0, 1], [-1, 3], [0, 4], [0, 2], [1, 1], [2, -2], [1, -1], [2, -3], [2, -4], [1, -2]], [[218939, 58773], [-1, -1], [-2, 1], [0, 3], [1, 3], [0, 1], [1, 0], [0, 0], [1, -1], [2, -2], [0, -1], [0, -2], [-2, -1]], [[219084, 58817], [-3, 0], [-1, 3], [-1, 1], [0, 2], [9, 8], [2, 0], [0, -1], [0, -2], [-1, -1], [-1, -2], [-1, -1], [-3, -7]], [[219409, 58849], [-1, 0], [0, 5], [0, 1], [0, 2], [0, 2], [1, 0], [1, 0], [1, -3], [0, -1], [0, -2], [-1, -1], [0, -1], [-1, -2]], [[219379, 58854], [-1, -3], [-1, 1], [-1, 0], [-12, 6], [-1, 2], [-1, 1], [1, 2], [0, 1], [1, -1], [9, -4], [2, 0], [1, -1], [1, -2], [2, -2]], [[219439, 58908], [-3, -1], [-1, 0], [-2, 1], [1, 2], [2, 2], [1, 0], [1, 1], [2, 0], [1, -2], [-2, -3]], [[219070, 58937], [-1, -1], [-1, -2], [-2, 1], [-1, 1], [0, 2], [0, 2], [0, 1], [1, 1], [2, 1], [0, -2], [1, -3], [1, -1]], [[218943, 58960], [0, -3], [-9, -1], [0, 1], [1, 2], [2, 3], [2, 2], [2, 1], [1, 1], [1, 1], [0, -7]], [[219539, 58979], [-2, -1], [-1, -1], [-2, 1], [0, 2], [1, 1], [1, 3], [1, 0], [1, 0], [1, -1], [1, -1], [-1, -1], [0, -2]], [[218931, 58986], [0, -1], [0, -1], [-3, 0], [-1, 2], [-1, 0], [0, 3], [0, 1], [2, 1], [1, 0], [1, -1], [0, -1], [1, -1], [0, -2]], [[219541, 58993], [-2, -2], [-1, -1], [-1, 0], [-2, 1], [0, 1], [0, 2], [1, 2], [1, 0], [1, 1], [1, -1], [1, 0], [0, -1], [1, -2]], [[219542, 59004], [0, -2], [0, -1], [-1, 0], [-4, 0], [0, 3], [1, 1], [2, 1], [1, 0], [1, -1], [0, -1]], [[219545, 59011], [-1, -1], [-2, -1], [-2, 5], [0, 1], [1, 3], [0, 4], [1, 1], [1, 1], [2, -2], [1, -1], [-1, -10]], [[218971, 59022], [-2, 0], [-2, -1], [-1, 3], [1, 3], [2, 0], [1, 1], [2, -2], [0, -1], [0, -1], [0, -1], [-1, -1]], [[218980, 59030], [-1, 0], [-3, 0], [-2, 2], [1, 1], [0, 1], [2, 1], [1, 0], [1, 0], [1, -2], [0, -1], [0, -2]], [[219071, 59047], [0, -2], [-1, -3], [-3, 1], [-1, 0], [-1, 1], [-3, 4], [2, 0], [2, 1], [1, 1], [1, 0], [2, 1], [1, -4]], [[219552, 59045], [-2, -2], [-1, 0], [-2, 0], [-1, 2], [-2, 3], [-1, 3], [2, 1], [1, -1], [3, 0], [1, 0], [0, -2], [2, -4]], [[219565, 59052], [-1, -1], [-1, -1], [-2, 1], [1, 9], [0, 3], [1, 3], [0, 2], [1, 0], [2, 0], [0, -1], [0, -1], [0, -2], [-1, -12]], [[219087, 59084], [-1, -1], [-2, -1], [-2, 3], [0, 1], [0, 2], [0, 2], [1, 0], [1, 1], [1, -1], [2, -1], [0, -1], [0, -1], [0, -3]], [[218977, 59187], [0, -1], [0, -2], [-1, -2], [0, -1], [-3, 0], [0, 2], [0, 3], [0, 1], [0, 2], [1, 4], [1, 0], [2, 0], [0, -4], [0, -2]], [[219043, 59216], [-1, 0], [-3, -1], [-1, 0], [-1, -1], [-2, 2], [-1, 0], [1, 1], [1, 1], [2, 1], [3, 1], [2, 0], [0, -1], [1, -1], [0, -1], [-1, -1]], [[219053, 59382], [-2, 0], [-1, 1], [-2, 2], [0, 2], [1, 1], [2, 1], [1, 0], [1, -2], [0, -2], [1, -1], [-1, -1], [0, -1]], [[219519, 59620], [-2, -1], [-2, 3], [1, 1], [1, 1], [2, 2], [1, 0], [3, 1], [0, -1], [1, -1], [-1, -1], [-4, -4]], [[218917, 59633], [-3, -1], [-2, 1], [-2, 0], [0, 2], [0, 5], [1, 0], [1, 0], [4, 0], [1, 0], [2, -1], [0, -1], [0, -1], [-2, -3], [0, -1]], [[218891, 59645], [-1, -3], [0, -1], [-11, -1], [1, 4], [0, 1], [4, 3], [2, 1], [2, -2], [3, -2]], [[218874, 59648], [-2, -1], [-3, 0], [0, 3], [1, 2], [1, 0], [2, 0], [1, -1], [0, -2], [0, -1]], [[218988, 59673], [-1, 0], [-3, 0], [0, 0], [0, 1], [0, 2], [2, 4], [11, 15], [1, 1], [2, 1], [1, -2], [1, -1], [-1, -3], [0, -3], [-1, -2], [-7, -8], [-2, -2], [-1, -1], [-2, -2]], [[218866, 59818], [-3, 0], [-1, 2], [-1, 8], [1, 1], [2, -1], [1, -1], [0, -1], [0, -3], [0, -2], [1, -2], [0, -1]], [[219408, 59866], [-4, -1], [-2, 0], [0, 1], [-1, 5], [4, 0], [1, 1], [2, -1], [3, -1], [-1, -1], [0, -1], [-1, -1], [-1, -1]], [[218802, 59905], [-5, -1], [-1, 2], [-1, 1], [-1, 7], [0, 2], [2, -1], [4, -2], [1, 0], [1, -1], [1, -3], [0, -3], [-1, -1]], [[219439, 60049], [-1, -2], [0, -1], [-1, 0], [-1, 0], [0, 2], [0, 7], [0, 0], [1, 1], [1, 0], [1, -1], [0, -1], [0, -1], [0, -3], [0, -1]], [[219442, 60060], [-1, 0], [-1, 0], [-2, 2], [0, 2], [2, 1], [2, 0], [1, 0], [1, -1], [0, -1], [-1, -1], [-1, -2]], [[219446, 60070], [-2, -1], [-2, 3], [0, 3], [1, 1], [1, 0], [1, -1], [1, 0], [0, -2], [0, -1], [0, -2]], [[219455, 60100], [-1, -3], [-1, 2], [0, 1], [-1, 11], [1, 0], [1, 0], [2, -4], [-1, -1], [0, -4], [0, -2]], [[219471, 60148], [-3, -1], [-3, 0], [0, 1], [-2, 2], [1, 1], [2, 2], [3, 2], [2, 2], [2, 0], [1, 0], [0, -1], [0, -3], [-1, -1], [-2, -4]], [[218810, 60214], [-2, 0], [-2, -1], [-1, 1], [-1, 0], [-4, 1], [0, 3], [0, 1], [1, 0], [1, 0], [8, 0], [1, 0], [0, -3], [-1, -2]], [[219012, 60259], [-1, 0], [-1, -1], [-2, 0], [-1, 2], [3, 8], [2, 2], [1, -9], [-1, -1], [0, -1]], [[218816, 60282], [0, -1], [-2, -2], [-2, 0], [-4, 1], [-2, 0], [0, 1], [-1, 1], [2, 2], [1, 0], [1, 0], [5, 0], [2, 0], [0, -1], [0, -1]], [[219504, 60327], [-2, -2], [-1, 0], [-3, 0], [0, 2], [-1, 3], [0, 2], [0, 1], [1, 3], [2, -2], [1, -1], [0, -1], [2, -3], [1, -2]], [[219004, 60336], [-2, 0], [-1, 2], [2, 5], [0, 2], [2, 0], [1, 0], [0, -2], [1, -2], [-2, -2], [-1, -3]], [[219496, 60409], [-4, 3], [1, 4], [1, 2], [1, 2], [4, 1], [1, 1], [8, -4], [1, -1], [0, -3], [-1, -2], [0, -1], [-2, -1], [-2, -1], [-8, 0]], [[219451, 60419], [-1, 0], [-3, -1], [-10, 9], [0, 1], [0, 1], [5, 0], [3, -1], [1, 0], [1, -1], [1, -1], [2, -2], [1, -3], [0, -2]], [[218940, 60466], [1, -3], [0, -1], [-1, 0], [-4, 1], [-3, 2], [-1, 1], [1, 2], [0, 3], [1, -1], [2, -2], [4, -2]], [[219038, 60508], [-3, 0], [-5, 3], [-1, 0], [-2, 1], [-1, 0], [0, 3], [1, 0], [4, 0], [5, -2], [1, 0], [1, -2], [0, -1], [0, -2]], [[219365, 60562], [-1, -2], [-4, 1], [-2, 0], [0, 2], [1, 0], [5, 1], [1, 0], [0, -1], [0, -1]], [[219626, 60633], [-1, 0], [-5, 0], [0, 3], [-1, 1], [1, 4], [1, 2], [1, 0], [0, 0], [1, 0], [1, -1], [0, -1], [3, -6], [-1, -1], [0, -1]], [[219022, 60692], [-2, 0], [-1, -1], [-1, 3], [0, 2], [0, 1], [0, 5], [1, 1], [0, 2], [2, 1], [1, 0], [2, -8], [0, -1], [0, -1], [-1, -1], [-1, -3]], [[219674, 60709], [0, 3], [1, 1], [2, 2], [1, 2], [1, 0], [2, -1], [0, -2], [0, -1], [-2, -2], [-1, -1], [-4, -1]], [[219413, 60868], [-2, -2], [-2, 1], [-2, 0], [-1, 3], [0, 2], [1, 1], [2, 1], [1, -1], [1, -1], [2, -2], [0, -2]], [[219541, 60914], [-4, -1], [-3, 0], [0, 1], [-1, 2], [4, 1], [1, 0], [2, 0], [1, 0], [1, -1], [-1, -2]], [[219064, 61199], [0, -1], [0, -2], [-10, -12], [-1, 0], [-2, 9], [2, 5], [4, 5], [2, -1], [2, -1], [2, 0], [1, -2]], [[219035, 61201], [-1, -2], [-4, 1], [-1, 1], [-1, 0], [-6, 4], [1, 1], [1, 0], [1, 0], [2, 0], [3, 0], [1, -1], [1, -1], [3, -3]], [[219008, 61204], [-2, -2], [-1, 0], [-3, 0], [-9, 2], [0, 1], [0, 0], [3, 2], [1, 1], [1, 0], [2, 0], [6, -1], [2, -1], [0, -2]], [[219464, 61278], [-2, 0], [-5, -1], [-2, 0], [-1, 0], [-1, 1], [0, 3], [0, 1], [5, 2], [2, 1], [5, 3], [0, -1], [1, -2], [-2, -5], [0, -2]], [[218977, 61361], [-1, -2], [0, -1], [-2, 2], [-1, 1], [-1, 1], [-1, 3], [0, 2], [-1, 1], [1, 1], [1, 0], [1, -1], [1, -2], [1, -1], [1, -2], [0, -1], [1, -1]], [[218992, 61362], [-1, -1], [0, -1], [-2, 1], [-2, 2], [-1, 2], [-1, 2], [1, 2], [0, 1], [2, 1], [2, 1], [0, -1], [1, -3], [0, -1], [1, -4], [0, -1]], [[219e3, 61369], [-3, -1], [-2, 2], [0, 1], [-1, 2], [0, 1], [-1, 2], [1, 0], [1, 0], [1, 0], [1, -1], [1, -2], [1, -1], [1, -1], [0, -1], [0, -1]], [[219095, 61456], [-5, 0], [-2, 2], [-1, 0], [1, 3], [1, 0], [1, 1], [5, -4], [0, -1], [0, -1]], [[219110, 61474], [-1, -1], [0, -2], [-3, 1], [-1, 1], [-5, 1], [-1, 3], [-1, 2], [0, 2], [1, 1], [1, 1], [1, -1], [2, -1], [7, -7]], [[219138, 61505], [-4, 0], [-1, 1], [-1, 0], [-2, 2], [1, 0], [1, 1], [2, 0], [6, -2], [-1, -1], [-1, -1]], [[219155, 61521], [-1, 0], [-1, -1], [-2, 0], [-1, 1], [-2, 0], [-1, 1], [-2, 2], [1, 1], [2, 0], [4, 0], [1, 0], [1, -1], [1, -1], [0, -2]], [[219147, 61586], [-2, -1], [-1, 2], [-1, 2], [0, 2], [1, 2], [2, 0], [1, -1], [0, -3], [0, -1], [0, -2]], [[219180, 61627], [-2, -1], [-1, 3], [2, 4], [0, 2], [2, 0], [0, -3], [1, -2], [-1, -1], [-1, -2]], [[219570, 61645], [-2, -6], [-1, -1], [-4, 1], [-1, 1], [-3, 0], [2, 3], [2, 3], [1, 1], [7, 11], [0, -3], [-1, -7], [0, -3]], [[219078, 61656], [-2, -1], [-4, 0], [0, 1], [-1, 1], [1, 1], [1, 1], [2, 2], [2, -2], [1, -1], [0, -1], [0, -1]], [[219154, 61657], [-2, 0], [0, 1], [-1, 3], [1, 3], [0, 1], [1, 1], [1, 0], [1, -1], [1, 0], [1, -1], [0, -2], [1, -1], [-1, -3], [-3, -1]], [[219610, 61706], [-1, -4], [0, -1], [-1, 1], [0, 1], [-1, 1], [0, 7], [0, 2], [0, 3], [1, 0], [2, 0], [0, -1], [0, -6], [0, -3]], [[219344, 61734], [-2, 0], [-5, 0], [-1, 0], [-6, 0], [-2, 1], [0, 2], [1, 1], [1, 2], [1, 0], [8, 1], [3, 0], [0, -2], [1, -1], [1, -4]], [[219409, 61733], [-1, -1], [-1, 0], [-1, 1], [-7, 7], [-2, 2], [2, 0], [1, 1], [2, -2], [4, -4], [2, -2], [1, -2]], [[219613, 61740], [0, -5], [0, -4], [-1, 1], [-4, 10], [0, 1], [1, 2], [1, 0], [1, 0], [2, -5]], [[219600, 61799], [9, -8], [-1, -26], [-3, -6], [-2, -1], [-1, 1], [-4, 36], [2, 4]], [[219356, 61809], [-1, -7], [0, -2], [-2, 1], [-2, 9], [0, 2], [1, 0], [1, 0], [1, 0], [1, -1], [0, -1], [1, -1]], [[219361, 61822], [-1, -2], [0, -3], [-2, 2], [0, 1], [0, 2], [-1, 6], [0, 2], [1, 0], [2, 0], [1, -2], [0, -1], [0, -2], [0, -3]], [[219060, 61847], [9, -1], [1, 0], [2, -2], [-1, 0], [-2, -2], [-1, -1], [-5, -1], [-1, 0], [-2, 0], [0, 7]], [[219366, 61841], [-2, -6], [-1, -1], [-1, 2], [-1, 0], [0, 2], [-1, 4], [1, 1], [1, 3], [1, 1], [1, 1], [1, -3], [0, -2], [1, -2]], [[219533, 61849], [0, -1], [-1, -2], [-1, 0], [-3, 1], [-4, 4], [-3, 2], [1, 1], [3, 0], [4, -2], [3, -2], [1, -1]], [[219065, 61856], [-1, -1], [-2, 2], [1, 1], [2, 4], [1, 0], [5, 0], [0, -1], [1, -1], [-7, -4]], [[219073, 62034], [-3, -3], [-1, 5], [0, 2], [1, 4], [1, 1], [1, 1], [2, 2], [0, -4], [1, -2], [0, -1], [-1, -2], [-1, -3]], [[219362, 62103], [-2, 0], [-1, 0], [-1, 0], [-2, 2], [-1, 1], [10, 5], [0, -4], [1, -2], [-3, -1], [-1, -1]], [[219394, 62129], [-5, -12], [0, -1], [0, 1], [0, 3], [0, 7], [2, 17], [3, 1], [0, -1], [1, -1], [1, -3], [0, -1], [-1, -4], [-1, -6]], [[219397, 62158], [-1, -5], [-1, -3], [0, 3], [-2, 10], [-1, 1], [2, 0], [1, 0], [1, -1], [0, -2], [1, -3]], [[219352, 62159], [-1, -1], [-1, 0], [-1, 1], [-1, 3], [-3, 4], [-1, 1], [2, 2], [1, 0], [1, -1], [1, -1], [2, -3], [1, -3], [0, -2]], [[219049, 62181], [-1, 3], [-5, 11], [1, 2], [1, 1], [1, 0], [2, -1], [1, -1], [1, -4], [0, -1], [-1, -10]], [[219391, 62196], [-2, 0], [-3, -1], [-1, 4], [-1, 8], [0, 2], [3, -1], [7, -1], [1, 0], [1, -2], [1, -3], [-2, -2], [-3, -3], [-1, -1]], [[219040, 62232], [-2, 0], [-2, 5], [0, 1], [-1, 1], [0, 4], [0, 2], [1, 0], [2, 1], [1, -3], [1, -2], [0, -2], [0, -4], [0, -3]], [[219176, 62238], [-1, 1], [-2, 3], [2, 6], [1, 1], [1, 0], [4, 0], [1, 1], [2, 0], [2, -3], [1, -1], [1, -1], [-12, -7]], [[219439, 62261], [-1, -1], [-1, -1], [-3, -3], [-2, 0], [-3, 1], [17, 27], [1, 0], [2, 0], [0, -2], [-1, -13], [-7, -7], [-2, -1]], [[219030, 62283], [0, -3], [0, -1], [-1, 1], [-2, 1], [-4, 14], [1, 3], [1, 0], [1, 1], [1, -1], [1, -1], [0, -2], [2, -12]], [[219434, 62344], [-3, -1], [-4, -1], [-1, 4], [-1, 7], [0, 2], [3, -2], [3, -2], [1, 0], [0, -2], [1, -2], [1, -3]], [[219400, 62407], [-2, -1], [-11, 10], [0, 1], [-1, 3], [2, 0], [1, 1], [1, -1], [1, 0], [2, -1], [7, -10], [0, -1], [0, -1]], [[219228, 62452], [2, -3], [0, -1], [1, -1], [-2, -2], [-8, -1], [-1, 0], [-2, 1], [1, 3], [1, 5], [2, 0], [2, -1], [4, 0]], [[219108, 62478], [-2, 0], [-9, 6], [-1, 1], [0, 1], [0, 1], [1, 1], [2, -1], [8, -6], [1, 0], [1, -2], [-1, -1]], [[219283, 62534], [-3, -4], [-2, 1], [-1, 4], [0, 3], [1, 1], [1, 3], [2, -2], [1, 0], [1, -1], [0, -3], [0, -2]], [[219214, 62551], [-1, -1], [-2, -1], [-1, 3], [-1, 1], [-2, 6], [2, 2], [1, 0], [2, 0], [2, 0], [0, -2], [0, -1], [1, -5], [-1, -1], [0, -1]], [[219286, 62631], [4, -5], [0, -1], [1, -2], [1, -2], [-1, -3], [-1, -3], [0, -1], [-1, -1], [-2, -3], [-1, 4], [-1, 2], [0, 1], [0, 4], [-1, 6], [2, 2], [0, 2]], [[219295, 62665], [-2, -1], [-5, -1], [-2, 4], [1, 9], [1, 0], [2, 0], [3, -6], [1, -3], [1, -2]], [[219271, 62708], [-5, -3], [-1, 1], [-2, 2], [1, 3], [1, 2], [1, 1], [1, 0], [3, 0], [2, -1], [-1, -2], [0, -2], [0, -1]], [[219052, 62763], [-1, -1], [-5, -3], [-2, -1], [1, 4], [0, 4], [1, 1], [2, 3], [2, -3], [2, -4]], [[219250, 62761], [-1, -2], [-1, -1], [-1, 0], [-2, 1], [-3, 18], [2, 1], [1, 1], [1, -1], [3, -3], [0, -3], [1, -11]], [[219238, 62805], [-1, -3], [0, -2], [-1, 0], [-3, -1], [-5, 5], [1, 5], [4, 4], [2, -1], [2, -1], [0, -2], [1, -2], [0, -2]], [[219170, 62805], [-2, -2], [-3, -2], [0, 3], [0, 3], [-1, 2], [2, 2], [2, 3], [0, 1], [3, -1], [1, 0], [0, -3], [-1, -4], [-1, -2]], [[219020, 62814], [-1, 0], [-5, 0], [4, 13], [2, 0], [3, 0], [0, -3], [0, -1], [0, -2], [-1, -1], [-2, -6]], [[219223, 62839], [-2, -7], [-1, -1], [0, -2], [-1, -1], [-1, 1], [-2, 2], [-1, 1], [-2, 5], [5, 7], [1, -1], [1, -1], [3, -3]], [[218791, 62899], [-2, -2], [-1, -1], [-2, 1], [0, 2], [0, 1], [3, 8], [1, 1], [1, 0], [2, 0], [0, -2], [1, -1], [-2, -5], [-1, -2]], [[218986, 62919], [-4, -2], [-3, -1], [-2, 0], [-2, 1], [6, 6], [3, 1], [1, 0], [2, -1], [1, -1], [-1, -1], [-1, -2]], [[218970, 62927], [-1, 0], [-2, 0], [-1, 3], [0, 1], [1, 1], [2, 2], [1, 1], [1, 0], [2, 0], [2, 0], [0, -1], [1, -1], [1, -1], [-1, -2], [-2, -2], [-3, -1], [-1, 0]], [[219089, 63026], [0, -2], [-1, -2], [-1, 0], [-2, 0], [-5, 8], [1, 3], [1, 0], [1, 2], [7, -4], [0, -2], [-1, -3]], [[219025, 63055], [-2, 0], [-3, 0], [-2, 1], [5, 6], [1, 0], [2, 1], [0, -1], [1, -3], [-1, -3], [-1, -1]], [[219008, 63068], [-2, -2], [-3, -1], [-1, -1], [-1, 0], [-3, 1], [2, 3], [1, 1], [1, 1], [3, 2], [1, -1], [2, -3]], [[219088, 63081], [-1, -1], [-3, -2], [0, 2], [-1, 1], [0, 2], [0, 1], [0, 7], [1, 1], [2, 2], [1, 1], [1, -3], [1, -1], [-1, -10]], [[219053, 63113], [-2, 0], [-2, 0], [-1, 5], [-1, 1], [0, 2], [0, 3], [-1, 2], [3, 1], [1, 0], [1, -1], [1, -1], [1, -2], [0, -8], [0, -2]], [[219103, 63136], [-2, -5], [-2, 2], [-1, 1], [-5, 15], [0, 4], [0, 1], [-1, 5], [2, 0], [2, 0], [2, -2], [3, -3], [0, -1], [1, -2], [1, -3], [0, -3], [0, -3], [0, -4], [0, -2]], [[218970, 63159], [-3, 1], [-1, 0], [-1, 3], [0, 2], [2, 4], [1, 0], [2, 0], [2, 0], [-2, -10]], [[219064, 63175], [-2, -1], [-2, 0], [0, 1], [0, 3], [1, 6], [0, 1], [1, 1], [1, 0], [3, 1], [0, -2], [1, -3], [-2, -4], [-1, -1], [0, -2]], [[218970, 63192], [-9, -5], [-3, -1], [-2, 1], [-3, 2], [-1, 3], [0, 2], [-1, 1], [1, 0], [2, 1], [9, 0], [3, 0], [1, 0], [1, -1], [2, -3]], [[219116, 63182], [-3, 1], [0, 1], [-1, 5], [-1, 3], [1, 4], [1, 2], [0, 2], [2, 0], [2, 0], [1, -1], [1, -3], [-3, -14]], [[218997, 63240], [-2, -1], [-1, 0], [-1, 3], [-2, 4], [1, 4], [0, 2], [1, 0], [3, 0], [0, -2], [0, -3], [0, -6], [1, -1]], [[219149, 63234], [-4, -6], [-1, -1], [-3, 0], [-1, 0], [6, 30], [1, -1], [2, -4], [1, -3], [0, -3], [0, -4], [0, -3], [0, -3], [-1, -2]], [[218985, 63270], [-1, 0], [-2, -1], [1, 2], [0, 8], [0, 3], [1, 1], [1, 2], [1, -1], [2, -2], [2, -1], [0, -1], [0, -1], [0, -1], [-1, -3], [-1, -1], [-1, -2], [-2, -2]], [[219093, 63279], [-4, -5], [-5, 16], [1, 1], [1, 1], [2, -1], [2, -2], [1, -1], [2, -3], [0, -1], [0, -2], [0, -1], [0, -2]], [[219182, 63269], [-2, -2], [-2, -2], [-1, 1], [-2, 1], [-4, 2], [25, 53], [1, 1], [3, 3], [1, -3], [2, -4], [-1, -1], [-1, -8], [-10, -26], [-9, -15]], [[219155, 63322], [-2, 0], [-1, -1], [-1, 2], [-2, 2], [1, 4], [0, 2], [1, 2], [1, 0], [1, 1], [1, -1], [1, -2], [0, -3], [0, -1], [0, -3], [0, -2]], [[219220, 63376], [11, 0], [1, -1], [1, -3], [0, -3], [-2, -4], [-3, -1], [-1, -1], [-2, 1], [-6, 0], [0, 1], [-2, 5], [1, 6], [1, 0], [1, 0]], [[219091, 63393], [-2, 0], [-2, 5], [-1, 2], [0, 4], [-1, 6], [1, 0], [1, 1], [4, -18]], [[219029, 63415], [-1, -5], [-1, 1], [-1, 5], [0, 1], [0, 2], [2, 2], [1, -2], [0, -3], [0, -1]], [[219145, 63440], [-2, -3], [-1, 1], [-2, 1], [-1, 1], [-2, 5], [-2, 4], [0, 1], [-1, 4], [0, 2], [1, 3], [1, -1], [2, -1], [7, -17]], [[219177, 63458], [-4, -1], [-2, 0], [8, 11], [1, 0], [1, 0], [0, -3], [0, -2], [0, -1], [-1, -1], [-1, -1], [-2, -2]], [[219245, 63450], [-1, -2], [-6, -12], [-2, -3], [-2, 4], [-2, 6], [4, 39], [1, 1], [1, 1], [1, 1], [1, -1], [1, -1], [1, -2], [1, -1], [1, -1], [2, -10], [0, -3], [1, -1], [0, -2], [-2, -13]], [[218983, 63515], [-3, 0], [-2, 0], [-2, 1], [-1, 6], [1, 1], [3, 3], [1, -1], [1, -1], [2, -2], [0, -4], [0, -1], [0, -2]], [[218967, 63524], [0, -2], [1, -3], [-2, 0], [-2, 0], [-1, 3], [0, 2], [-1, 4], [0, 2], [1, 3], [2, -5], [1, -3], [1, -1]], [[219232, 63509], [-3, 0], [-1, -1], [-2, 2], [0, 1], [0, 15], [2, 16], [4, -1], [2, -1], [0, -1], [3, -10], [-5, -20]], [[218959, 63547], [-1, -1], [-1, 0], [-1, 1], [-2, 5], [-1, 4], [-1, 3], [1, -1], [2, 0], [2, -5], [1, -1], [1, -4], [0, -1]], [[219047, 63581], [-2, -2], [-3, 2], [-5, 18], [1, 0], [2, 0], [2, -2], [1, -3], [0, -1], [4, -12]], [[218885, 63654], [-2, -1], [0, 1], [2, 5], [1, 1], [1, 1], [2, 1], [2, 0], [0, -1], [-1, -2], [-4, -4], [-1, -1]], [[218988, 63657], [-3, -1], [-1, 2], [-5, 16], [2, 1], [1, 0], [1, -1], [6, -8], [0, -2], [0, -2], [-1, -2], [0, -3]], [[304087, 63637], [-55, 26], [-57, 27], [0, 0], [-2, 2], [-6, 5], [-1, 1], [-2, 1], [-1, 1], [0, 0], [-16, 21], [-3, 3], [-3, 4], [1, 4], [0, 1], [1, 4], [1, 3], [5, 10], [1, 0], [0, 0], [0, 0], [1, 1], [55, -42], [96, -75], [0, 0], [-7, 1], [-8, 2]], [[301951, 60868], [-1, 0], [-2, -1], [-6, -4], [-5, -1], [0, 0], [-2, -1], [-2, 0], [-2, 0], [-1, 0], [-1, 0], [0, 0], [-1, 0], [-1, 0], [-1, 0], [0, 0], [-2, 1], [-2, 0], [-3, 2], [-1, 1], [-2, 1], [0, 0], [-1, 1], [0, 0], [-2, 4], [-1, 1], [-1, 1], [0, 2], [-1, 2], [0, 1], [0, 3], [0, 0], [46, 6], [14, 1], [-5, -5], [-3, -4], [-1, -1], [-2, -2], [-1, -1], [-7, -7]], [[301898, 60901], [-1, 0], [-2, -1], [-1, 1], [-1, 2], [-1, 1], [0, 1], [0, 1], [-1, 2], [0, 1], [0, 1], [0, 1], [1, 0], [0, 0], [0, 0], [1, 0], [1, 0], [0, -1], [1, -1], [1, -1], [0, 0], [0, -1], [1, -1], [0, -1], [0, -1], [1, -3]], [[301983, 60937], [1, 0], [2, -1], [0, -1], [0, -2], [0, -3], [-1, -2], [0, -1], [0, -1], [0, -4], [-1, -5], [0, -1], [-1, -2], [-1, -1], [0, -1], [-1, 1], [0, 0], [0, 0], [-1, 2], [0, 2], [0, 3], [-1, 9], [0, 2], [1, 2], [1, 1], [0, 2], [1, 1], [1, 0], [0, 0]], [[301887, 60922], [-1, -1], [-1, 0], [-2, 1], [-1, 1], [0, 1], [-3, 4], [-2, 5], [-1, 2], [0, 0], [1, 1], [1, 1], [1, 2], [4, 3], [2, -3], [1, -3], [0, -1], [0, -2], [1, -1], [1, -8], [0, -1], [-1, -1], [0, 0]], [[301896, 60963], [-2, -2], [0, 0], [0, 1], [-1, 0], [0, 1], [0, 1], [0, 2], [0, 1], [0, 2], [0, 0], [1, 1], [0, 1], [1, 0], [0, 1], [1, 0], [3, 1], [0, 0], [0, -2], [-1, -4], [-1, -1], [-1, -3]], [[301429, 62042], [0, -2], [-1, -5], [0, -6], [-2, -8], [0, -1], [0, -1], [0, -2], [-1, 0], [0, -1], [0, -2], [0, 0], [0, -2], [-1, -3], [-3, -5], [0, -2], [0, 0], [-1, -1], [-1, -3], [-2, -3], [-1, -1], [-1, -1], [-2, -2], [-2, 0], [-5, 0], [-2, 2], [-1, 1], [0, 0], [-1, 2], [0, 1], [-1, 2], [-1, 1], [-1, 8], [-1, 1], [0, 2], [0, 1], [0, 0], [0, 1], [0, 1], [27, 39], [0, 0], [1, 0], [0, 0], [1, -1], [0, 0], [0, -1], [1, -3], [1, -6]], [[301399, 62043], [-1, 0], [-1, -1], [0, 0], [0, 0], [0, 1], [-1, 0], [-2, 2], [0, 0], [0, 1], [-2, 2], [0, 0], [-1, 1], [-1, 1], [-1, 1], [0, 0], [0, 1], [0, 2], [0, 1], [0, 0], [1, 0], [2, -1], [5, -3], [0, 0], [1, 0], [1, -1], [1, -1], [1, -1], [0, 0], [0, -2], [0, -1], [1, 0], [-3, -2], [0, 0]], [[302278, 62045], [-2, 0], [0, 3], [1, 1], [0, 2], [1, 2], [1, 2], [0, 1], [2, 2], [1, 3], [0, 1], [1, 0], [2, 2], [1, 0], [1, 0], [2, -1], [0, 0], [1, 0], [0, -2], [1, -3], [-1, -1], [-2, -3], [-1, -1], [-1, -2], [-1, 0], [0, 0], [-1, -1], [0, -1], [-2, -1], [-1, -1], [0, -1], [-1, 0], [-1, -1], [0, 0], [-1, 0]], [[302663, 62256], [0, -2], [0, 0], [-1, 0], [0, 1], [-1, 1], [-1, 2], [-1, 2], [0, 1], [0, 1], [0, 0], [0, 1], [-1, 4], [0, 0], [0, 0], [0, 0], [1, -1], [4, -7], [0, -1], [0, -1], [0, -1]], [[302647, 62269], [-1, 0], [-1, 3], [-1, 1], [0, 1], [-1, 1], [-2, 4], [0, 2], [-1, 1], [0, 2], [2, 1], [0, 0], [1, 0], [1, -1], [0, 0], [1, -3], [2, -3], [3, -5], [0, -1], [0, -1], [-1, -1], [0, 0], [-1, 0], [-1, -1]], [[304918, 62326], [0, -2], [0, -2], [0, -1], [0, -1], [0, 0], [-1, 0], [0, 1], [-1, 0], [-1, 1], [0, 1], [-2, 2], [-1, 1], [0, 1], [-2, 4], [-1, 2], [0, 0], [-1, 4], [-1, 2], [3, -2], [0, 0], [1, 0], [1, -1], [0, 0], [1, 0], [0, -1], [1, -1], [1, -1], [1, -3], [1, -3], [1, -1]], [[302716, 62219], [0, 0], [-1, -1], [-2, -3], [-1, -1], [-2, -2], [-1, -1], [-2, 0], [-1, 0], [-2, 1], [-1, 0], [0, 0], [0, 0], [-1, 1], [-4, 4], [-3, 2], [-10, 12], [-1, 1], [-1, 2], [0, 0], [0, 0], [14, 20], [34, 50], [0, 0], [-11, -67], [-1, -3], [-1, -3], [0, -3], [0, -2], [-1, -1], [0, -1], [-1, -3], [0, -2], [0, 0]], [[302748, 62361], [-1, 0], [0, 0], [0, 0], [-4, 3], [0, 0], [-1, 1], [-1, 3], [0, 1], [-1, 0], [4, -2], [1, -1], [0, 0], [0, 0], [0, 0], [2, -2], [1, -3], [0, 0]], [[304897, 62357], [0, -1], [-1, 1], [-1, 1], [-2, 6], [-2, 5], [0, 0], [0, 0], [3, -1], [4, -8], [-1, -2], [0, -1]], [[302570, 62391], [0, 0], [0, -1], [0, 0], [0, 0], [-1, -1], [-1, 0], [0, 1], [-1, 0], [-10, 4], [0, 0], [0, 0], [-2, 0], [0, 1], [0, 0], [-1, 0], [0, 0], [0, 0], [-1, 3], [0, 1], [0, 2], [1, 2], [0, 0], [2, 0], [0, 0], [1, 0], [1, 0], [0, 0], [0, 0], [1, -1], [1, -1], [1, -1], [1, -1], [1, -1], [1, -1], [1, -1], [1, -2], [4, -3]], [[304881, 62416], [0, 0], [-1, 0], [0, 0], [-1, 0], [-1, 1], [-1, 1], [-1, 0], [0, 1], [-2, 1], [0, 2], [-1, 1], [-1, 3], [0, 0], [3, -1], [0, 0], [1, 0], [0, -1], [2, 0], [1, -1], [1, -1], [1, -6]], [[302747, 62375], [-2, 0], [0, 0], [-1, 0], [0, 2], [0, 1], [0, 0], [25, 27], [6, 6], [0, 0], [1, 1], [1, 1], [11, 6], [11, 7], [4, 1], [0, 0], [-7, -8], [-43, -40], [-2, -1], [-3, -2], [0, 0], [-1, -1]], [[302811, 62451], [-1, -3], [-1, 0], [-1, 0], [-1, 1], [-5, 15], [-2, 8], [1, 0], [0, 0], [1, 0], [1, 0], [0, 0], [1, -1], [0, 0], [1, -1], [1, 0], [0, 0], [2, -2], [1, -1], [1, -2], [0, 0], [1, -1], [1, -3], [-1, -1], [0, 0], [0, -1], [0, -1], [0, -3], [0, -1], [0, 0], [0, -3]], [[304744, 62494], [0, 0], [6, 3], [9, 3], [7, 2], [1, 0], [0, -1], [2, 0], [4, -1], [17, -6], [1, -1], [1, 0], [1, -1], [1, 0], [1, -1], [1, -1], [3, -1], [23, -17], [3, -2], [0, 0], [-2, -2], [0, 0], [-1, 0], [-2, -1], [-2, 0], [-4, 2], [-7, 4], [-21, 7], [-31, 12], [-11, 2]], [[302768, 62509], [1, -2], [5, -8], [2, -2], [0, -1], [-1, 1], [-1, 0], [-3, 2], [-1, 0], [0, 0], [-2, 3], [-1, 1], [-3, 4], [0, 0], [-1, 3], [-1, 2], [0, 1], [0, 1], [-1, 0], [0, 0], [2, 0], [0, -1], [1, 0], [1, -1], [1, 0], [0, -1], [2, -2]], [[304627, 62507], [0, 0], [0, -1], [-1, -2], [0, -1], [-1, -1], [0, -1], [-1, 0], [0, -1], [-1, 0], [-1, -1], [-2, -1], [-1, 0], [0, 0], [-4, -1], [-1, -1], [-2, 1], [-2, 0], [0, 0], [-1, 0], [-1, 0], [-2, 1], [-5, 4], [0, 0], [-1, 0], [-3, 3], [-1, 1], [-4, 3], [-15, 15], [0, 0], [-1, 1], [-2, 2], [0, 0], [0, 1], [0, 0], [-1, 1], [0, 0], [0, 1], [1, 0], [53, -23]], [[304688, 62530], [1, 0], [3, -4], [0, -1], [-23, 0], [-2, 1], [0, 0], [-1, 0], [-1, 0], [0, 1], [0, 1], [0, 1], [1, 1], [0, 1], [0, 0], [1, 0], [1, 0], [7, 0], [6, 0], [6, 0], [1, -1], [0, 0]], [[302718, 62526], [0, 0], [0, 0], [-1, 0], [-1, 0], [-1, 1], [-1, 1], [-4, 3], [1, 1], [0, 1], [0, 0], [2, -1], [0, 0], [2, -1], [1, 0], [0, -1], [0, 0], [1, -1], [1, -1], [0, 0], [0, -1], [0, -1]], [[302697, 62559], [0, -2], [2, -7], [2, -4], [0, -2], [1, -2], [-2, 1], [0, 0], [-2, 0], [-1, 3], [-1, 2], [0, 1], [0, 0], [-2, 9], [1, 0], [2, 1]], [[304553, 62540], [0, 0], [2, -1], [1, -1], [1, 0], [0, -1], [0, 0], [1, -1], [0, 0], [1, -1], [-2, 0], [0, 0], [-1, 0], [-12, 3], [-9, 4], [0, 0], [4, 19], [0, 0], [4, 2], [10, -23]], [[302693, 62567], [0, -2], [0, -2], [-2, 1], [-3, 7], [-2, 4], [3, 1], [0, 0], [0, -1], [1, -1], [0, -1], [1, -1], [1, -1], [0, -1], [0, 0], [0, -1], [0, -1], [1, -1]], [[304542, 62590], [-1, 1], [0, 0], [-2, 2], [0, 2], [0, 2], [0, 1], [0, 1], [0, 2], [0, 2], [0, 1], [0, 2], [0, 0], [0, -1], [1, -1], [0, -3], [1, -1], [0, -4], [1, -6], [0, 0]], [[302668, 62589], [0, 0], [0, 0], [0, 0], [-1, 0], [0, 1], [-1, 1], [-1, 0], [-4, 18], [-7, 27], [0, 0], [1, 0], [1, 0], [1, -1], [0, 0], [0, -1], [4, -9], [1, -4], [3, -6], [1, -3], [1, -11], [1, -12], [0, 0]], [[304540, 62623], [0, 0], [-1, 0], [-1, 0], [0, 0], [0, 1], [-1, 3], [-1, 3], [-2, 6], [0, 1], [0, 1], [0, 1], [1, 2], [2, 6], [0, 0], [1, -5], [0, -1], [0, -1], [0, -1], [0, -1], [1, -1], [0, 0], [0, -2], [1, -4], [0, -1], [0, -7]], [[304532, 62667], [-2, 1], [0, 0], [0, 1], [-1, 0], [0, 3], [0, 2], [-1, 2], [0, 1], [0, 1], [1, 5], [0, 0], [0, 2], [1, 3], [1, 1], [3, 1], [1, 1], [2, 1], [0, 0], [0, -1], [0, -2], [0, 0], [-5, -22], [0, 0]], [[302635, 62686], [0, -1], [0, -1], [0, 0], [0, 0], [-1, 0], [-4, 12], [-2, 4], [0, 1], [1, 0], [1, 0], [0, 0], [0, 0], [1, -3], [2, -2], [0, -1], [0, 0], [1, -2], [1, -3], [0, -1], [0, -1], [0, -2], [0, 0]], [[304680, 62716], [0, 0], [-2, 0], [-1, -1], [-3, -1], [-1, -1], [-1, 0], [-1, 0], [-1, -1], [0, 0], [0, 1], [0, 2], [0, 1], [0, 1], [4, 1], [1, 1], [2, 0], [1, 1], [0, 0], [2, -1], [1, -1], [0, 0], [-1, -2]], [[302627, 62707], [-1, 0], [-2, 1], [0, 0], [-4, 9], [0, 0], [0, 2], [0, 1], [2, 1], [1, -2], [0, -1], [1, 0], [0, -1], [3, -10]], [[302542, 62761], [0, 0], [0, 0], [-2, 1], [0, 1], [0, 1], [0, 1], [0, 1], [0, 0], [3, 0], [0, -1], [-1, -4], [0, 0]], [[304470, 63563], [5, -3], [0, 0], [-4, -2], [-1, 0], [-1, 0], [-1, 0], [0, -1], [-3, 0], [-11, -3], [-3, -1], [-5, -1], [-2, 0], [-2, 0], [-1, 0], [-2, 1], [-1, 1], [-3, 1], [-1, 1], [-1, 1], [-3, 2], [-2, 2], [-1, 1], [0, 1], [-1, 3], [-4, 7], [-6, 15], [-5, 14], [0, 0], [1, -1], [2, -1], [2, -1], [54, -36]], [[304575, 63597], [10, 15], [18, 28], [2, 1], [1, 0], [1, 0], [0, 0], [0, -1], [1, 0], [0, -1], [1, 0], [0, 0], [-15, -26], [-9, -11], [-11, -10], [0, 0], [1, 2], [0, 3]], [[304398, 63630], [3, -10], [1, -1], [0, -2], [-1, 1], [-8, 5], [-3, 2], [0, 0], [-2, 3], [0, 0], [0, 1], [-1, 3], [0, 0], [5, 14], [0, 0], [2, 0], [1, 0], [0, -1], [3, -15]], [[304672, 63662], [0, -1], [1, 0], [-1, -1], [-1, -1], [-10, -6], [-3, -2], [-2, -1], [-2, -1], [-2, -1], [-1, -1], [-8, -2], [-1, -1], [0, 0], [-1, 0], [0, 0], [0, 0], [-1, 3], [0, 0], [26, 17], [0, 0], [2, 0], [0, -1], [1, 0], [1, 0], [0, 0], [2, -1]], [[304654, 63661], [0, -1], [0, 0], [0, 0], [-2, 0], [-2, 0], [-3, 0], [-3, 0], [-5, 1], [0, 0], [-1, 0], [-2, 0], [0, 1], [-1, 0], [-1, 1], [0, 0], [1, 1], [4, 1], [1, 0], [1, 0], [0, 0], [2, 1], [2, 0], [2, -1], [1, 0], [0, 0], [2, -1], [1, -1], [1, 0], [1, -1], [0, 0], [0, -1], [1, 0], [0, 0]], [[304156, 63632], [-9, -1], [-1, 0], [-1, 0], [0, 0], [-1, 0], [-4, 0], [-2, 1], [0, 0], [0, 0], [-2, 1], [0, 0], [39, 13], [40, 14], [0, 0], [-32, -19], [-10, -5], [-5, -1], [-8, -2], [-2, -1], [-1, 0], [-1, 0]], [[304403, 63688], [0, 0], [0, 3], [0, 2], [-1, 5], [0, 1], [0, 1], [0, 0], [1, 0], [2, 1], [0, 0], [3, -1], [-5, -12]], [[304233, 63699], [1, -1], [0, 0], [-2, 0], [-6, 5], [-3, 3], [0, 1], [0, 2], [0, 0], [1, 0], [0, 0], [1, 0], [0, 0], [2, 0], [1, 0], [1, -1], [1, 0], [0, 0], [0, 0], [0, -1], [2, -2], [0, -1], [0, -1], [1, -2], [0, -1], [0, -1]], [[304717, 63705], [1, -3], [1, -1], [0, 0], [0, 0], [-1, -2], [-12, -19], [0, 0], [0, 0], [-7, -10], [-7, -5], [0, 0], [0, 0], [-9, 1], [0, 2], [0, 1], [0, 0], [0, 1], [20, 37], [2, 3], [0, 0], [2, 0], [0, 0], [1, 0], [2, 0], [2, -1], [1, 0], [0, 0], [1, -1], [0, 0], [1, -1], [1, -1], [1, -1]], [[304191, 63702], [0, 0], [-1, 0], [-1, 0], [0, 0], [-1, 2], [-1, 2], [-1, 1], [0, 1], [-5, 9], [1, 1], [0, 1], [1, 1], [0, 0], [1, -3], [1, -3], [4, -9], [1, -1], [0, -1], [1, -1], [0, 0]], [[303968, 63808], [-1, 0], [-2, -1], [0, 0], [1, 1], [0, 2], [1, 2], [4, 2], [1, 1], [1, 0], [0, 0], [1, 0], [0, 0], [1, -2], [0, 0], [0, 0], [-1, -1], [-1, -1], [-2, -1], [-3, -2]], [[303985, 63805], [-6, 7], [0, 2], [0, 2], [0, 0], [3, -2], [1, 0], [1, -1], [1, -1], [1, 0], [1, -1], [0, 0], [1, -3], [0, -1], [0, 0], [0, 0], [0, 0], [0, -2], [-3, 0]], [[304464, 63807], [-1, -1], [0, 0], [0, 0], [-1, 0], [0, 0], [0, 0], [-1, 1], [-1, 0], [0, 1], [0, 1], [0, 1], [0, 5], [0, 24], [0, 5], [0, 2], [0, 0], [1, 0], [1, 0], [1, 0], [1, -1], [6, -2], [0, 0], [-6, -36]], [[301924, 63905], [6, -1], [7, 0], [5, -1], [13, -1], [70, -17], [0, 0], [-1, -3], [-4, -8], [-35, 5], [-12, 1], [-51, 20], [1, 0], [1, 5]], [[301907, 63913], [0, -3], [-1, -1], [0, 0], [-1, 1], [0, 0], [-1, 1], [-4, 1], [-2, 2], [-2, 2], [-1, 0], [-2, 2], [-1, 1], [-1, 2], [-1, 2], [-1, 3], [0, 0], [0, 0], [0, 2], [2, 0], [16, -15]], [[301866, 63950], [0, 0], [-1, 0], [-1, 0], [-2, 0], [-1, 0], [-4, 1], [0, 0], [-9, 2], [-1, 0], [0, 0], [-1, 0], [-2, 1], [-1, 0], [-3, 2], [-1, 0], [0, 3], [1, 1], [1, 0], [4, -1], [1, 0], [15, -5], [2, 0], [0, 0], [1, -1], [0, 0], [1, 0], [1, -1], [0, 0], [0, -1], [0, 0], [0, -1], [0, 0], [0, 0]], [[301806, 63992], [0, 0], [-2, 2], [-4, 5], [-1, 4], [-1, 5], [0, 1], [0, 0], [-5, 27], [-3, 18], [0, 1], [0, 1], [-1, 4], [0, 1], [0, 0], [0, 3], [1, 7], [0, 0], [0, 0], [1, 1], [0, 1], [1, 2], [1, 0], [0, 1], [2, 3], [0, 0], [0, 0], [1, 1], [0, 0], [0, 0], [1, 1], [1, 1], [0, -1], [0, 0], [1, -1], [7, -88]], [[302127, 64109], [-1, -1], [-2, -1], [0, 0], [0, 3], [-1, 4], [0, 0], [1, 0], [0, 3], [1, 1], [0, 0], [0, 0], [1, 1], [0, 0], [1, 1], [0, 0], [1, 0], [0, 0], [0, -2], [0, 0], [1, -1], [0, -3], [-1, -3], [-1, -2]], [[302130, 64146], [-2, 0], [-1, 0], [-1, 1], [0, 1], [0, 0], [0, 3], [0, 2], [1, 2], [0, 2], [0, 0], [1, 2], [1, 2], [1, 1], [0, 0], [1, -1], [0, 0], [0, 0], [1, -1], [0, 0], [0, -2], [-2, -12]], [[302146, 64234], [1, 0], [0, -1], [1, 0], [2, -2], [0, 0], [1, 0], [0, -1], [2, -1], [1, -1], [0, 0], [2, -2], [0, 0], [0, 0], [0, -1], [1, -1], [0, -2], [1, -1], [0, -1], [0, -1], [0, 0], [0, -4], [-2, -7], [-1, -6], [-1, 0], [0, -1], [-1, -2], [-2, -2], [0, 0], [0, -1], [-1, -1], [0, 0], [-3, -2], [0, 0], [-2, -1], [0, 0], [-1, 1], [-21, 40], [0, 0], [0, 1], [0, 0], [1, 1], [0, 0], [12, 1], [0, 0], [2, 0], [4, -1], [1, 0], [1, 0], [1, -1], [0, 0], [1, 0], [0, 0]], [[301531, 64401], [-1, -1], [-5, -3], [-1, 0], [-3, 0], [0, 0], [-1, 0], [-2, 0], [-2, 1], [-1, 1], [-2, 1], [-1, 1], [0, 0], [-5, 4], [-1, 1], [0, 0], [0, 0], [-1, 2], [-1, 1], [-1, 2], [1, 2], [0, 0], [32, -6], [-2, -2], [-3, -4]], [[301571, 64479], [0, -1], [0, 0], [-1, -1], [0, 0], [0, 0], [-1, 2], [-1, 6], [-1, 5], [0, 4], [0, 1], [0, 0], [1, 2], [0, 0], [1, -3], [1, -4], [0, -1], [1, -2], [0, -1], [0, 0], [0, -2], [1, -1], [0, -1], [0, -1], [-1, -2], [0, 0]], [[301460, 64761], [-1, -1], [0, -1], [0, -1], [0, 0], [-2, 1], [-1, 2], [0, 0], [0, 0], [-1, 3], [0, 0], [1, 0], [0, -1], [2, -1], [0, 0], [0, 0], [1, 0], [0, -1], [0, 0], [0, 0], [1, 0]], [[304067, 64840], [-1, -2], [0, 0], [0, 1], [-1, 2], [-1, 1], [-1, 2], [0, 0], [-2, 3], [0, 2], [-1, 1], [-1, 1], [1, 1], [0, 0], [0, 1], [1, 1], [1, -1], [0, 0], [3, -3], [0, -1], [1, -1], [1, -2], [0, -1], [0, -3], [0, -2], [0, 0]], [[301465, 64861], [2, -3], [3, -2], [0, 0], [1, -1], [2, -4], [1, -2], [0, -1], [0, -1], [0, -3], [0, -1], [0, -1], [-1, -1], [0, 0], [-12, 17], [-1, 1], [0, 0], [0, 1], [0, 1], [0, 1], [0, 0], [2, 0], [1, -1], [2, 0], [0, 0]], [[304064, 64877], [0, -3], [0, 0], [0, 0], [-1, 0], [-1, 0], [0, 0], [0, 2], [-1, 3], [0, 0], [1, 3], [1, 0], [0, 0], [0, 0], [0, 0], [1, -1], [0, -1], [0, -1], [0, -2], [0, 0]], [[304014, 64879], [0, -4], [0, -1], [0, 0], [0, -1], [-2, 0], [-2, 0], [-1, 3], [-1, 2], [0, 1], [1, 1], [0, 2], [1, 1], [0, 0], [1, -1], [1, -1], [1, -1], [1, -1], [0, 0]], [[301301, 64884], [0, 0], [-2, 0], [0, -1], [-1, 1], [-2, 2], [0, 0], [-1, 1], [-1, 2], [-1, 3], [0, 2], [0, 1], [0, 0], [1, 0], [1, 0], [6, -8], [0, -2], [0, -1]], [[304059, 64896], [-1, -3], [0, -1], [0, -1], [0, 0], [-1, 1], [-1, 2], [0, 0], [-1, 1], [0, 2], [0, 1], [-1, 1], [0, 0], [3, 0], [0, 0], [1, -1], [1, -1], [0, -1]], [[303971, 64903], [-1, 0], [0, -1], [0, 0], [-1, 0], [0, 0], [-1, 1], [-1, 0], [0, 1], [0, 0], [0, 1], [0, 1], [1, 1], [0, 0], [0, 0], [1, 0], [1, -1], [0, 0], [1, -3]], [[304048, 64923], [0, -1], [-1, 0], [0, -1], [0, 0], [0, 0], [-1, 2], [0, 0], [-1, 1], [0, 1], [0, 1], [0, 1], [0, 1], [1, 1], [1, 0], [1, 0], [0, 0], [0, -2], [1, -1], [-1, -3]], [[303928, 64935], [0, 0], [0, 0], [-1, -1], [-1, 0], [-1, 2], [0, 3], [0, 0], [1, 1], [1, 1], [1, 0], [0, 0], [1, -2], [0, -1], [0, -2], [-1, -1]], [[300804, 65027], [-2, -1], [0, 0], [-1, 1], [-1, 1], [0, 0], [0, 1], [-1, 2], [0, 0], [1, -1], [2, 0], [2, 0], [0, 0], [0, -1], [0, 0], [0, -2]], [[304054, 65025], [-1, -1], [0, 0], [-1, -1], [-1, 0], [-1, 1], [-3, 9], [0, 0], [0, 0], [1, 1], [2, -1], [2, 0], [1, -1], [2, -3], [0, 0], [-1, -3], [0, -1]], [[304035, 65046], [-1, -1], [-2, 1], [0, 0], [0, 3], [0, 0], [0, 1], [1, 0], [0, 0], [1, 0], [0, 0], [1, -1], [0, 0], [0, 0], [0, -1], [0, 0], [0, -2]], [[303951, 65088], [-1, -1], [-1, 0], [0, 1], [-1, 1], [0, 1], [0, 2], [0, 1], [1, 1], [0, 1], [0, 1], [0, 0], [1, -1], [1, -1], [1, -1], [-1, -3], [0, -2]], [[304072, 65224], [-2, -1], [0, 0], [-2, 1], [0, 0], [0, 2], [1, 1], [0, 1], [0, 0], [0, 0], [1, -1], [1, 0], [1, -1], [0, -1], [0, -1]], [[304080, 65232], [-1, 0], [-1, -1], [-1, 0], [0, 0], [0, 2], [0, 0], [0, 1], [0, 0], [0, 2], [0, 1], [0, 0], [1, 1], [1, 3], [1, 2], [2, -1], [1, 0], [0, -3], [0, 0], [1, -2], [-2, -2], [-1, -1], [-1, -2]], [[303933, 65360], [0, 0], [0, 0], [-2, -1], [0, 0], [0, 1], [0, 0], [-1, 2], [-1, 1], [0, 1], [0, 0], [-1, 3], [0, 0], [2, -1], [1, -1], [0, 0], [1, -1], [1, -1], [0, -1], [0, -1], [0, 0], [0, -1]], [[304115, 65466], [0, 0], [-1, -1], [0, 0], [-2, -1], [-1, -1], [-1, 1], [0, 1], [0, 0], [0, 3], [-1, 1], [0, 0], [0, 1], [1, 2], [0, 0], [0, 1], [1, 0], [2, 4], [1, 1], [1, 1], [0, 0], [1, -1], [1, -1], [0, 0], [1, -1], [1, -3], [0, 0], [-1, -2], [0, -2], [-2, -2], [-1, -1], [0, 0]], [[301090, 65490], [0, -6], [-1, -4], [0, -1], [0, -1], [-1, 0], [-2, -1], [-2, -1], [-1, -1], [-1, 0], [-4, 0], [-1, 0], [0, 0], [-1, 0], [0, 0], [-1, 1], [-1, 2], [-1, 1], [-1, 1], [0, 1], [-1, 1], [0, 3], [-1, 1], [0, 2], [0, 1], [-1, 1], [0, 0], [0, 1], [0, 2], [0, 2], [0, 0], [1, 1], [1, 0], [6, 2], [9, 3], [2, 0], [1, -1], [1, 0], [0, 0], [0, 0], [0, -2], [0, -2], [0, 0], [0, -1], [0, -2], [0, 0], [0, -1], [0, -2]], [[301049, 65515], [-1, 0], [0, -1], [0, -1], [-1, 1], [0, 0], [-1, 0], [-3, 3], [-2, 1], [-1, 1], [0, 1], [0, 2], [0, 0], [1, 0], [0, -1], [0, 0], [3, 0], [0, -1], [1, 0], [2, -2], [1, -1], [0, 0], [0, -1], [1, -1]], [[303819, 65514], [-1, -1], [-1, 1], [0, 0], [0, 0], [-2, 2], [0, 3], [0, 1], [0, 1], [0, 0], [1, 2], [0, 1], [1, 0], [0, 0], [0, -1], [1, -1], [1, -3], [0, -1], [0, -2], [0, 0], [0, -2]], [[304070, 65541], [0, -1], [0, 0], [0, -2], [0, 0], [0, 0], [-1, 0], [-1, 0], [0, 0], [0, 0], [-1, 1], [-1, 1], [-2, 2], [0, 0], [0, 2], [2, 0], [1, 1], [1, -2], [1, -1], [0, 0], [1, -1]], [[301092, 65548], [-1, -2], [0, 0], [0, 0], [-1, 2], [0, 0], [-1, 1], [0, 1], [0, 0], [0, 0], [0, 1], [0, 2], [0, 3], [0, 1], [0, 0], [0, 2], [0, 0], [1, 0], [0, 0], [1, 0], [0, -1], [0, 0], [1, -2], [0, -1], [0, -3], [1, -1], [-1, -3]], [[300992, 65568], [-2, -1], [-5, 3], [-1, 1], [-2, 2], [0, 0], [0, 1], [0, 2], [0, 0], [5, -3], [5, -2], [0, -1], [0, -2]], [[303998, 65615], [0, -1], [-1, -1], [-1, 1], [-1, 1], [-1, 1], [-1, 1], [0, 0], [1, 0], [1, 1], [1, 0], [0, 0], [1, -1], [1, -2]], [[303797, 65614], [-2, -1], [0, 0], [0, 3], [0, 2], [1, 1], [0, 0], [0, 0], [1, -1], [1, -1], [-1, -3]], [[301095, 65627], [-1, 0], [0, -1], [0, -1], [-2, 0], [0, 0], [1, 2], [0, 2], [0, 1], [0, 0], [1, 2], [0, 1], [1, 1], [0, 0], [1, 0], [1, 1], [0, 0], [0, -1], [0, -1], [0, 0], [-1, -1], [-1, -3], [0, -2]], [[303971, 65645], [0, -1], [0, -1], [0, 0], [-1, 0], [0, 0], [0, 0], [-1, 0], [-2, 3], [-1, 1], [0, 0], [3, 2], [0, -1], [2, -2], [0, -1]], [[301103, 65644], [-1, -2], [-1, 1], [-2, 0], [1, 0], [0, 1], [0, 0], [1, 2], [0, 1], [2, 2], [0, 0], [0, 0], [0, 0], [1, 0], [1, -1], [0, 0], [0, -1], [-2, -3]], [[303900, 65671], [-2, 0], [0, 1], [-1, 0], [-1, 3], [0, 0], [1, 0], [0, 0], [2, 0], [1, -1], [0, 0], [1, 0], [0, -1], [0, 0], [-1, -1], [0, -1]], [[303787, 65690], [0, -2], [0, -1], [0, -3], [0, 0], [-4, -6], [-5, -6], [-1, -1], [-2, -3], [-3, 2], [1, 1], [0, 1], [0, 2], [0, 0], [1, 3], [1, 3], [0, 1], [2, 6], [1, 1], [1, 2], [8, 0]], [[301118, 65667], [0, 0], [-2, 1], [1, 20], [1, 2], [1, -1], [0, -1], [1, -3], [0, 0], [0, -2], [0, -3], [0, -2], [0, -3], [0, -1], [0, -1], [0, -1], [0, -1], [-1, -3], [-1, 0], [0, -1]], [[303862, 65689], [0, 0], [-2, -2], [-1, 0], [0, 0], [-1, 0], [0, 1], [-1, 1], [1, 2], [1, 0], [0, 0], [1, 0], [0, 0], [1, -1], [0, -1], [1, 0]], [[299775, 65703], [-2, 0], [0, 0], [0, 0], [-1, 1], [0, 2], [0, 1], [1, 1], [0, 0], [1, -1], [0, 0], [0, -1], [0, 0], [1, -3]], [[299814, 65703], [-5, -2], [-1, 0], [-2, 0], [-1, 1], [0, 0], [-1, 1], [0, 0], [0, 1], [0, 0], [0, 1], [11, 10], [2, -2], [0, -2], [1, -1], [0, 0], [0, -1], [0, -2], [1, -1], [0, 0], [-2, -1], [-1, -1], [-2, -1]], [[299385, 65715], [-1, -1], [-1, 0], [-2, -1], [-3, 0], [0, 0], [0, 1], [-1, 1], [-1, 1], [0, 1], [0, 1], [0, 1], [1, 1], [0, 0], [0, 1], [2, -2], [5, -2], [0, -1], [0, 0], [1, -1], [0, 0], [0, 0]], [[299808, 65731], [-1, -1], [0, 0], [-1, 1], [0, 1], [0, 1], [0, 0], [1, 0], [1, -2]], [[299783, 65748], [-1, -1], [-3, -2], [0, 3], [0, 0], [0, 1], [1, 1], [0, 0], [1, 0], [1, 0], [0, -2], [1, 0], [0, 0]], [[303088, 65820], [-1, -1], [-2, 0], [-1, 1], [0, 1], [-1, 1], [0, 0], [0, 3], [0, 0], [1, -1], [2, 0], [0, 0], [0, 0], [1, -1], [1, 0], [0, 0], [1, -1], [-1, -2]], [[300941, 65820], [0, -1], [0, -1], [-1, 1], [-1, 1], [0, 1], [-1, 2], [-1, 1], [0, 1], [0, 1], [-1, 1], [0, 1], [2, 1], [0, 0], [0, 0], [1, 1], [0, 0], [1, -2], [0, 0], [0, -1], [1, -4], [0, -3]], [[300889, 65871], [0, -1], [-1, -1], [-1, 1], [0, 0], [-1, 1], [0, 0], [-1, 1], [-1, 1], [1, 1], [0, 2], [1, 1], [0, -1], [1, 0], [0, -1], [1, 0], [0, 0], [0, 0], [0, -1], [1, -3]], [[299312, 65881], [-1, -1], [0, 0], [0, -2], [0, 0], [-1, 1], [-1, 1], [0, 0], [-1, 2], [0, 1], [0, 0], [0, 0], [1, 2], [1, 0], [0, 0], [1, -1], [0, 0], [0, 0], [1, -1], [0, -2]], [[300877, 65884], [-1, -1], [0, -1], [-1, 0], [-1, 0], [0, 0], [-1, 1], [0, 2], [0, 1], [0, 0], [1, 2], [0, 0], [2, -1], [0, -2], [1, -1]], [[300695, 65903], [-2, 0], [0, 1], [1, 1], [0, 1], [2, 1], [0, 0], [0, 0], [2, -1], [0, 0], [-1, -1], [-1, -1], [-1, -1]], [[300740, 65917], [0, 0], [6, 0], [1, 0], [0, 0], [1, 0], [0, 0], [0, -1], [-1, -1], [0, 0], [0, 0], [-2, -1], [0, 0], [-1, 0], [0, 0], [-1, 0], [-1, 0], [-1, 0], [0, 1], [-4, 0], [-1, 3], [3, -1], [1, 0], [0, 0]], [[300671, 65913], [1, -1], [0, 0], [-3, 0], [0, 0], [-1, 0], [-1, 0], [-1, 1], [-2, 1], [-1, 1], [-1, 2], [1, 3], [0, 0], [3, -2], [5, -5]], [[300722, 65916], [-1, 0], [0, -1], [0, 0], [-1, 1], [-1, 1], [-1, 0], [0, 0], [1, 1], [1, 1], [1, 0], [1, 1], [1, 0], [2, 0], [0, 0], [1, -1], [0, 0], [-1, -2], [-1, 0], [-2, -1]], [[300814, 65921], [0, 0], [0, -1], [0, -1], [0, 0], [-1, 0], [-1, 0], [-1, 0], [0, 0], [-1, 1], [-1, 2], [1, 1], [0, 0], [0, 1], [0, 0], [1, -1], [1, 0], [0, 0], [0, 0], [1, -1], [1, -1]], [[300659, 65923], [-2, 0], [0, 0], [-1, 0], [-1, -1], [0, 0], [-1, 1], [-2, 0], [0, 0], [0, 0], [0, 2], [0, 1], [0, 0], [1, 1], [1, -1], [3, -1], [0, 0], [1, -1], [1, -1]], [[300637, 65941], [-1, -2], [0, 0], [-1, 1], [-2, 1], [0, 0], [-1, 2], [-2, 2], [0, 0], [0, 0], [-1, 3], [0, 1], [0, 0], [0, 0], [2, 0], [1, 0], [0, 0], [0, 0], [1, -1], [0, 0], [0, -1], [1, 0], [0, -1], [1, -1], [0, 0], [0, -1], [1, -1], [0, -1], [1, -1]], [[300622, 65949], [-2, 0], [0, 0], [-2, 0], [0, 0], [-1, 0], [0, 0], [-1, 1], [0, 0], [1, 1], [2, 0], [1, 1], [1, -1], [0, -1], [1, -1]], [[299285, 65950], [0, 0], [-1, -1], [-1, -1], [0, 0], [0, 0], [-2, 1], [-2, 2], [0, 0], [-2, 2], [0, 0], [1, 1], [1, 1], [1, 0], [2, -1], [1, 0], [0, 0], [0, -1], [1, 0], [0, -2], [1, -1]], [[303005, 65974], [0, 0], [-2, 0], [0, 0], [-2, 2], [0, 0], [0, 2], [2, 0], [1, 0], [0, -1], [1, 0], [0, -1], [1, 0], [-1, -1], [0, 0], [0, -1], [0, 0]], [[302971, 66004], [-1, 0], [-1, -1], [0, 0], [-2, 2], [0, 3], [1, 0], [2, 0], [0, 0], [1, -2], [0, -1], [0, -1]], [[299180, 66027], [-1, 0], [-1, 0], [0, 0], [-4, 5], [0, 1], [-1, 2], [0, 1], [-1, 0], [0, 1], [0, 1], [0, 1], [0, 2], [0, 0], [1, 0], [1, -1], [2, 0], [1, -2], [2, -3], [0, -2], [1, -1], [0, 0], [0, -3], [0, 0], [0, -2]], [[300747, 66122], [-1, 0], [-1, 1], [0, 1], [0, 1], [1, 0], [0, 1], [0, 0], [1, 0], [2, 1], [0, 0], [0, -1], [0, 0], [-1, -2], [-1, -2]], [[300343, 66143], [-1, -1], [0, 0], [-2, 1], [-3, 3], [1, 1], [0, 0], [1, 0], [0, 0], [1, 1], [1, -1], [1, -1], [0, 0], [1, -1], [0, -2]], [[300322, 66152], [0, -1], [0, 0], [0, -1], [0, 0], [-3, 0], [-1, 0], [-1, 1], [0, 0], [0, 0], [-1, 1], [1, 2], [0, 0], [1, 0], [2, 0], [0, 0], [1, -2], [1, 0], [0, 0]], [[300304, 66157], [-1, -1], [0, 0], [0, 0], [-3, 1], [-5, 2], [-2, 0], [-1, 1], [-1, 1], [0, 1], [1, 2], [0, 1], [0, 0], [1, 1], [1, 0], [4, -1], [1, -1], [0, 0], [0, 0], [0, 0], [1, -1], [2, -1], [0, 0], [1, -1], [0, -2], [1, -2]], [[300501, 66170], [-1, -1], [-1, 0], [-2, 2], [1, 0], [0, 0], [0, 0], [1, 1], [6, 3], [2, -1], [0, 0], [1, 0], [0, 0], [0, -1], [0, 0], [1, -1], [0, 0], [-1, -1], [-2, 0], [0, -1], [-1, 0], [-1, 0], [-3, 0]], [[303095, 66210], [-2, 0], [-1, 0], [0, 0], [0, 0], [1, 2], [0, 1], [1, 1], [2, 1], [1, 1], [0, 0], [1, 0], [1, 0], [0, 0], [0, -1], [0, -1], [-1, -1], [-3, -3], [0, 0]], [[303221, 66226], [-2, -2], [0, 0], [0, 0], [-1, 1], [0, 1], [-1, 2], [3, 3], [1, 2], [0, 0], [1, 0], [1, 1], [1, 1], [0, 0], [0, -1], [1, -1], [0, 0], [0, 0], [-1, -1], [-1, -2], [0, -1], [0, 0], [-1, -1], [-1, -1], [0, -1]], [[300872, 66237], [0, -1], [1, -1], [0, -2], [0, -1], [0, -3], [0, -1], [-1, -2], [-9, -2], [-9, -1], [-1, 0], [0, -1], [-2, 0], [-2, 0], [-2, 0], [0, 0], [-1, 2], [-1, 1], [1, 1], [0, 2], [1, 2], [1, 3], [1, 3], [2, 2], [1, 1], [1, 2], [1, 1], [0, 0], [5, 3], [0, 0], [1, 0], [1, 0], [0, 0], [2, -1], [1, -1], [4, -1], [1, 0], [0, -1], [2, -2], [1, -1], [0, -1]], [[303238, 66243], [-2, -1], [-2, 0], [0, 0], [-1, 0], [0, 0], [2, 3], [0, 0], [1, 1], [1, 2], [1, 1], [0, 0], [0, 0], [1, 0], [1, 0], [0, -1], [0, -1], [0, -1], [0, -1], [-1, 0], [0, -1], [-1, -1]], [[303257, 66293], [-1, -1], [-3, -1], [0, 0], [-1, 1], [0, 1], [0, 3], [1, 26], [3, 0], [1, -1], [0, 0], [1, 0], [0, 0], [1, -1], [1, -3], [1, -1], [0, -1], [0, -1], [1, 0], [0, -1], [-1, -3], [0, -1], [0, -2], [0, -1], [0, -1], [-1, -6], [0, -1], [0, -1], [-2, -2], [-1, -2]], [[303247, 66331], [0, -3], [0, 0], [-2, 3], [-2, 2], [0, 1], [0, 2], [0, 0], [2, 0], [0, 0], [1, -1], [0, -1], [0, 0], [1, -2], [0, -1], [0, 0], [0, 0]], [[303222, 66372], [0, -1], [-1, 0], [0, -1], [0, 0], [-1, 1], [-1, 2], [0, 0], [-1, 2], [0, 1], [0, 0], [0, 0], [1, 1], [1, 0], [0, 0], [0, 0], [1, -1], [0, 0], [0, -2], [0, 0], [1, -1], [0, -1], [0, 0], [0, 0]], [[303027, 66378], [0, -1], [0, -1], [-1, 1], [0, 0], [-1, 2], [0, 0], [-1, 1], [1, 1], [1, 0], [0, 0], [1, 0], [0, 0], [1, -1], [0, 0], [-1, -2]], [[303011, 66383], [-3, -1], [-1, 0], [1, 2], [2, 2], [0, 1], [1, 0], [2, 1], [1, 0], [0, -1], [1, -1], [0, 0], [0, 0], [-1, -1], [-3, -2]], [[303210, 66387], [0, -2], [0, -1], [0, 0], [0, 1], [-1, 0], [0, 1], [-1, 2], [0, 2], [1, -1], [0, 0], [0, 0], [0, 0], [1, 0], [0, -1], [0, -1]], [[302948, 66392], [1, -1], [0, -1], [0, 0], [-1, -1], [-6, 2], [0, 0], [-1, 1], [-3, 1], [0, 0], [1, 1], [1, 1], [0, 0], [1, 0], [1, 0], [1, 0], [0, 0], [0, 0], [1, 0], [1, -1], [3, -2]], [[302913, 66395], [0, 0], [0, -1], [-1, 0], [0, 0], [0, 0], [-1, 1], [0, 0], [0, 1], [0, 0], [1, 1], [1, 1], [1, -1], [-1, -2]], [[303186, 66417], [-1, -1], [0, 0], [-1, 0], [-4, -1], [-1, 2], [0, 1], [1, 2], [0, 0], [1, 0], [2, 1], [1, 0], [1, -1], [0, 0], [0, 0], [1, -3], [0, 0]], [[302335, 66692], [0, 0], [0, 0], [-1, -1], [-1, -1], [-1, 0], [-7, -1], [-5, -1], [-4, 0], [-1, 0], [-1, 0], [0, 0], [1, 2], [0, 0], [9, 4], [14, 6], [0, 0], [0, -1], [0, 0], [0, -1], [0, -1], [-1, 0], [0, -1], [-1, -2], [0, -1], [-1, -1]], [[302455, 66714], [0, 0], [-3, -1], [-1, -1], [-2, -1], [-3, -1], [-1, 0], [0, 0], [-1, 0], [0, 0], [-2, -1], [-2, 0], [-2, 0], [0, 0], [-1, 0], [-1, 0], [0, 2], [0, 0], [0, 3], [0, 0], [5, 2], [10, 4], [1, -1], [2, 0], [1, 0], [2, 0], [0, -1], [1, 0], [1, -1], [0, 0], [-3, -2], [0, -1], [-1, 0]], [[302373, 66716], [-1, 0], [-1, 0], [-1, 0], [0, 0], [-2, 1], [0, 0], [-1, 0], [0, 2], [0, 0], [1, 0], [2, 1], [1, 0], [0, 0], [2, 1], [0, 0], [1, 0], [0, 0], [2, 1], [0, 0], [0, -1], [0, -1], [-1, -2], [-1, -1], [-1, -1]], [[302390, 66721], [-1, 0], [-2, 0], [-2, 0], [-1, 0], [-1, 1], [0, 0], [0, 1], [0, 0], [0, 2], [0, 1], [10, -2], [1, -2], [0, 0], [-3, -1], [-1, 0]], [[302456, 66736], [0, 0], [0, -1], [0, 0], [0, -1], [-1, 0], [-2, 3], [-5, 5], [0, 0], [1, 0], [1, 1], [0, 0], [1, -1], [1, -1], [1, -1], [1, -1], [1, -1], [1, -2]], [[302439, 66748], [-1, 0], [0, 0], [-1, 2], [0, 1], [0, 1], [0, 0], [2, 1], [0, 0], [0, 0], [1, 0], [0, 0], [0, -2], [1, 0], [0, -1], [-1, -2], [-1, 0], [0, 0]], [[302243, 66771], [0, 0], [-2, -1], [-2, 2], [0, 0], [0, 1], [0, 3], [1, 0], [0, 0], [1, 0], [1, -1], [0, 0], [0, -2], [1, -1], [0, -1]], [[302423, 66791], [1, -2], [1, -2], [0, 0], [-5, 4], [-2, 1], [2, 1], [2, -1], [1, -1]], [[302412, 66796], [-2, 1], [0, 3], [0, 0], [1, 0], [1, 0], [1, 1], [1, -1], [0, 0], [1, 0], [0, 0], [0, 0], [0, -2], [-2, -1], [-1, -1]], [[302406, 66803], [-2, -2], [0, 0], [-1, 0], [-1, 1], [0, 1], [1, 4], [0, 0], [1, 0], [0, 0], [2, -1], [0, -1], [0, -2]], [[302200, 66812], [0, 0], [-1, -2], [0, 0], [-2, 1], [0, 0], [0, 0], [-1, 1], [0, 0], [-1, 1], [-1, 0], [0, 1], [0, 3], [0, 1], [1, 1], [0, 2], [1, 0], [0, 0], [2, -1], [1, 0], [0, -1], [0, -1], [0, -5], [1, -1]], [[302385, 66818], [-2, -2], [-1, -1], [0, 0], [-1, 1], [0, 0], [0, 2], [0, 1], [1, 1], [0, 0], [1, 1], [1, 0], [0, 0], [1, -1], [0, 0], [0, 0], [0, -1], [0, 0], [0, -1]], [[299615, 66943], [-1, 0], [-1, 0], [-1, 0], [-2, 0], [-3, 1], [1, 2], [0, 1], [2, 1], [1, 0], [0, 1], [1, 0], [2, 1], [0, 0], [1, 0], [0, -1], [1, 0], [0, -1], [0, -1], [0, -1], [0, 0], [-1, -2], [0, -1]], [[302197, 66944], [-2, -1], [0, 0], [-1, 0], [-1, 2], [-1, 0], [-1, 1], [0, 3], [0, 0], [0, 0], [0, 2], [0, 0], [0, 0], [0, 0], [2, 0], [1, -1], [1, 0], [3, 0], [0, -1], [2, -1], [0, 0], [0, -1], [-1, -1], [-2, -2]], [[302186, 66956], [0, -1], [-1, -1], [0, 0], [0, -1], [0, 0], [-3, 2], [-1, 2], [-1, 2], [-1, 1], [0, 1], [-1, 3], [0, 0], [1, 2], [0, 0], [1, 0], [0, 0], [1, -1], [0, 0], [0, 0], [1, 0], [1, -1], [0, 0], [0, 0], [1, 0], [1, -2], [1, -1], [1, 0], [0, -1], [0, -2], [0, -1], [-1, -1], [0, 0]], [[302639, 67001], [-1, -1], [0, -1], [0, 0], [0, 0], [-1, 1], [-2, 1], [0, 0], [1, 2], [0, 1], [1, 0], [1, 0], [0, 0], [0, 0], [1, 0], [0, -1], [0, 0], [0, -1], [0, -1]], [[299603, 67115], [2, -2], [0, 0], [0, 0], [1, -1], [0, -1], [1, 0], [0, -2], [0, -3], [0, 0], [1, -2], [-1, -1], [0, -1], [-1, -3], [-1, 1], [0, 0], [-2, 0], [-6, 6], [-4, 4], [-2, 5], [0, 1], [1, 2], [1, 1], [0, 1], [2, 1], [1, -1], [7, -5]], [[299529, 67116], [-2, -3], [0, 0], [-1, 1], [-1, 0], [0, 0], [-1, 3], [0, 1], [0, 2], [0, 3], [0, 0], [0, 0], [0, 0], [1, -1], [1, -1], [0, 0], [0, 0], [1, -1], [1, -1], [0, -2], [0, 0], [1, -1]], [[303037, 67147], [-1, -1], [0, 0], [-1, -1], [-1, 0], [-1, 2], [0, 0], [1, 1], [0, 3], [1, 2], [1, 0], [2, 0], [0, 0], [0, -1], [0, -1], [0, -1], [0, -1], [0, 0], [-1, -1], [0, -1], [0, 0]], [[302934, 67227], [-1, -1], [0, 0], [0, -1], [0, 0], [0, 0], [0, 1], [-2, 1], [0, 1], [-1, 1], [0, 2], [0, 1], [1, 0], [0, 0], [1, -1], [1, 0], [0, 0], [1, -1], [0, -1], [0, -1], [0, -1]], [[303818, 67234], [-1, -2], [-1, -8], [0, -1], [0, 0], [0, -1], [-1, -2], [-1, -1], [0, 0], [-4, -3], [-1, 0], [0, 0], [-1, -1], [-2, 0], [-1, 1], [3, 18], [0, 1], [0, 1], [1, 1], [0, 2], [1, 0], [0, 1], [1, 1], [0, 0], [2, 1], [0, 0], [1, 0], [1, 0], [1, 0], [0, -1], [2, 0], [0, -1], [1, 0], [0, -1], [0, 0], [-1, -3], [0, -1], [0, -1]], [[303027, 67252], [-1, -1], [0, 0], [-1, 1], [0, 1], [0, 3], [0, 0], [0, 0], [1, 0], [1, 0], [1, -1], [0, -2], [0, 0], [-1, -1], [0, 0]], [[303029, 67300], [0, 0], [-1, 0], [0, -1], [0, 0], [-1, 0], [-1, 1], [0, 0], [0, 0], [0, 1], [0, 0], [0, 3], [0, 0], [1, 1], [0, 0], [1, 1], [1, -1], [0, -1], [0, 0], [0, -2], [0, 0], [0, 0], [0, -1], [0, -1], [0, 0]], [[303023, 67374], [-1, -1], [-1, 0], [0, 0], [-1, 1], [0, 0], [0, 2], [0, 1], [2, 3], [1, -2], [1, -1], [0, 0], [0, -1], [-1, -1], [0, 0], [0, -1]], [[303017, 67399], [0, -2], [0, 0], [-2, 1], [0, 0], [-2, 2], [0, 1], [0, 3], [0, 0], [0, 1], [1, 3], [0, 0], [1, -3], [1, -2], [1, -2], [0, -1], [0, -1]], [[303012, 67412], [-1, 0], [0, 0], [-1, 0], [-1, 1], [0, 0], [-1, 1], [0, 0], [0, 0], [0, 3], [0, 0], [0, 0], [1, 0], [1, -1], [1, 0], [1, 0], [0, -2], [0, 0], [0, -2]], [[303007, 67421], [-1, 0], [-1, -1], [0, 0], [-1, 0], [-2, 1], [0, 0], [-1, 1], [0, 0], [0, 0], [0, 3], [0, 1], [0, 0], [2, 3], [0, 0], [1, -1], [2, -1], [0, 0], [0, -1], [1, 0], [1, -2], [0, 0], [0, -1], [0, 0], [-1, -2], [0, 0]], [[300004, 68153], [-1, -1], [0, 0], [-1, 0], [-1, 0], [-2, 0], [-1, 0], [0, 0], [0, 0], [-1, 3], [0, 0], [0, 0], [1, 0], [2, 0], [1, 0], [2, 0], [0, 0], [0, 0], [1, 0], [0, -1], [0, -1], [0, 0]], [[300041, 68154], [0, -1], [-1, -2], [0, 0], [-2, 1], [0, 1], [-1, 3], [0, 0], [2, -1], [0, 0], [1, 0], [1, -1]], [[299932, 68155], [-1, 0], [-1, 0], [-2, -1], [0, 1], [1, 2], [0, 1], [5, 2], [0, 0], [1, 0], [2, -1], [1, 0], [0, 0], [0, 0], [0, -1], [0, -1], [-1, -1], [-1, 0], [-1, -1], [-1, 0], [0, 0], [-1, 0], [-1, 0]], [[299946, 68159], [-1, 0], [-1, 0], [0, 0], [1, 2], [0, 1], [0, 0], [2, 1], [1, 0], [0, 0], [0, 0], [1, 1], [1, 0], [1, 0], [0, 0], [-1, -2], [0, -1], [-4, -2]], [[299898, 68162], [-1, 0], [-2, -1], [-1, 0], [0, 0], [0, 0], [-1, 0], [0, 1], [0, 0], [1, 3], [0, 0], [1, 0], [1, 0], [1, 0], [0, -1], [1, 0], [0, -2], [0, 0]], [[299885, 68162], [-1, -1], [-1, 0], [0, 0], [-1, 0], [0, 0], [-1, 0], [-1, 0], [-1, 0], [-2, 0], [0, 0], [-2, 1], [-1, 1], [0, 1], [0, 1], [0, 0], [0, 0], [1, 0], [2, 0], [2, 0], [2, 0], [0, 0], [0, 0], [2, 0], [1, 0], [1, -1], [0, 0], [0, -1], [0, -1], [0, 0], [0, 0]], [[299837, 68178], [-2, 0], [-1, 0], [-1, 0], [0, 0], [-1, 0], [-1, 1], [0, 2], [0, 1], [1, 1], [0, 0], [2, -1], [0, 0], [0, 0], [1, 0], [2, -2], [0, -1], [0, -1]], [[302767, 68177], [0, 0], [-1, 0], [-2, 2], [0, 0], [1, 2], [1, 1], [0, 1], [1, 1], [0, 0], [1, -1], [0, 0], [1, -1], [-1, -3], [0, -1], [-1, -1]], [[299836, 68204], [-1, -3], [0, 0], [-1, -1], [-1, -1], [0, 0], [0, 0], [0, 1], [0, 3], [0, 1], [0, 1], [1, 1], [1, 3], [0, 1], [0, 0], [1, -1], [1, 0], [0, 0], [0, -1], [0, 0], [0, -2], [0, -1], [-1, -1]], [[300258, 68207], [-1, -1], [0, -1], [0, 0], [-2, -2], [-1, 0], [-3, -1], [0, 0], [-2, -1], [-1, 0], [-2, 0], [-2, 1], [0, 2], [-1, 2], [0, 1], [1, 0], [0, 0], [15, 6], [0, 0], [0, -1], [-1, -5]], [[300354, 68192], [-21, 0], [0, 0], [13, 6], [13, 7], [3, 1], [-8, -14]], [[300177, 68253], [-3, -1], [1, 2], [0, 2], [5, 7], [1, 1], [0, 0], [1, -2], [0, 0], [1, -1], [0, -1], [0, -1], [0, -2], [-1, -1], [-1, -1], [-1, -1], [-1, 0], [0, -1], [-1, 0], [-1, 0]], [[302855, 68264], [0, 0], [-2, -1], [0, 0], [-1, 1], [-3, 1], [0, 1], [-2, 2], [0, 1], [0, 1], [0, 2], [0, 0], [3, -1], [1, 0], [0, 0], [1, -1], [0, 0], [0, -1], [1, -1], [0, 0], [1, -1], [1, -3]], [[302930, 68295], [2, 0], [2, 0], [1, -2], [0, 0], [0, -3], [-1, -1], [-2, -2], [-1, 0], [0, -1], [-12, -6], [0, 1], [-1, 4], [7, 9], [1, 0], [0, 1], [0, 0], [1, 0], [1, 0], [2, 0]], [[300858, 68353], [-2, 0], [0, 0], [0, 1], [0, 1], [1, 1], [2, 1], [1, 0], [0, 1], [5, 1], [3, 0], [0, 0], [0, 0], [0, -1], [-2, -2], [-1, 0], [-1, -1], [-1, 0], [-1, -1], [-4, -1]], [[300904, 68449], [0, -3], [-1, -1], [-2, -1], [-1, -1], [0, 0], [-2, -1], [0, 1], [-1, 1], [0, 1], [-1, 0], [0, 2], [0, 1], [0, 1], [0, 1], [0, 1], [8, -2]], [[300895, 68457], [0, 0], [-1, -1], [0, 0], [-1, 1], [-1, 1], [0, 0], [-1, 3], [2, 0], [0, 0], [1, 0], [1, -1], [2, -1], [0, 0], [0, 0], [-1, -1], [-1, -1]], [[300871, 68473], [-2, 0], [0, 0], [-1, 0], [0, 1], [0, 1], [1, 2], [1, 0], [0, 1], [1, 0], [0, 0], [1, 0], [0, -1], [1, 0], [-1, -3], [-1, -1]], [[300503, 68515], [-1, -1], [0, 0], [-2, 0], [0, 0], [-1, 1], [0, 0], [0, 0], [0, 1], [0, 0], [0, 6], [0, 0], [0, 0], [2, 0], [2, 1], [0, 0], [1, 0], [0, 0], [0, -2], [0, -1], [1, -1], [-1, -1], [0, 0], [-1, -3]], [[300178, 68538], [-1, 0], [-1, 0], [0, -1], [-1, 0], [0, 0], [1, 3], [0, 1], [0, 0], [1, 1], [0, 1], [0, 0], [1, 0], [1, 1], [0, 0], [0, -1], [1, -1], [0, -1], [0, -1], [0, 0], [-2, -2]], [[299023, 68579], [-1, -1], [0, 0], [-1, -1], [0, 0], [-1, 1], [-1, 0], [-1, 1], [0, 0], [-2, 1], [0, 1], [-1, 1], [0, 1], [0, 0], [-1, 1], [0, 1], [0, 1], [-1, 2], [1, 0], [1, 1], [0, 0], [2, -3], [2, -1], [4, -3], [1, 0], [-1, -3]], [[299044, 68587], [-1, 0], [0, -1], [-5, 2], [1, 0], [2, 1], [1, 0], [2, 1], [0, 0], [0, -1], [0, -1], [0, -1]], [[299079, 68596], [0, 0], [-2, -1], [0, 0], [-1, 3], [0, 0], [1, 1], [0, 1], [3, 2], [1, -1], [1, 0], [0, -1], [1, 0], [0, -2], [-4, -2]], [[299206, 68601], [-2, 2], [4, 17], [0, 1], [1, 1], [0, 1], [0, 0], [1, -1], [1, 0], [0, -1], [0, -1], [0, -1], [0, -2], [0, -1], [0, 0], [0, -3], [-1, -1], [0, -1], [0, -2], [0, -1], [0, -1], [0, -1], [0, -1], [-1, -1], [0, 0], [-2, -2], [0, 0], [-1, -1]], [[299199, 68710], [-1, -1], [0, 0], [-15, 27], [4, 2], [5, -1], [0, -1], [1, 0], [1, -1], [0, 0], [2, -2], [1, -1], [0, 0], [0, -1], [0, -1], [1, 0], [0, -3], [1, -1], [0, -1], [1, -2], [0, -3], [1, -2], [0, -2], [0, -2], [-1, -1], [0, -1], [-1, -2], [0, 0]], [[298946, 68800], [-1, -1], [0, 0], [-3, -2], [0, 0], [0, 1], [0, 1], [0, 0], [1, 1], [0, 0], [0, 1], [0, 0], [1, 1], [1, 1], [0, -1], [0, -1], [1, 0], [0, -1]], [[298973, 68816], [0, -1], [0, 0], [-1, -3], [0, 0], [-7, 1], [0, 0], [2, 2], [2, 1], [0, 1], [1, 1], [2, 0], [0, 1], [1, 0], [1, 1], [0, 0], [0, -1], [-1, -2], [0, -1]], [[303147, 69358], [-1, -1], [0, 0], [0, -1], [-1, -1], [0, 0], [-1, 2], [-2, 3], [0, 2], [1, 0], [1, 1], [0, 0], [0, -2], [1, -1], [1, -1], [0, -1], [1, 0]], [[303171, 69426], [0, 0], [-2, -1], [0, 0], [0, 1], [-1, 0], [1, 2], [2, 2], [1, -2], [1, -1], [0, 0], [-2, -1]], [[302134, 71993], [-2, -1], [0, 0], [-2, 0], [1, 1], [0, 0], [1, 2], [0, 0], [0, 0], [1, 1], [0, 0], [0, 1], [1, 0], [0, 0], [1, 0], [0, 0], [1, 0], [1, 0], [0, 0], [1, 0], [0, 0], [-4, -4]], [[302147, 72004], [-2, -2], [-2, 0], [0, 1], [0, 1], [1, 1], [0, 2], [1, 1], [0, 0], [1, 2], [5, 6], [0, 1], [1, 1], [1, 0], [0, 0], [0, -2], [0, 0], [0, -1], [-2, -2], [0, 0], [-1, -2], [-1, -2], [0, 0], [-1, -1], [0, -2], [0, 0], [-1, -2]], [[302160, 72020], [-1, 0], [-2, -1], [0, 0], [1, 3], [4, 3], [1, 1], [1, 0], [0, 0], [1, -1], [0, 0], [0, -1], [-2, -2], [0, 0], [-2, -1], [-1, -1]], [[302170, 72026], [-3, -1], [-1, 1], [0, 0], [1, 1], [1, 1], [26, 33], [1, -1], [2, -2], [-4, -13], [-3, -4], [0, -1], [-1, 0], [-2, -3], [0, 0], [-8, -5], [-3, -2], [-1, -1], [-3, -2], [-2, -1]], [[302198, 72070], [0, -1], [0, 0], [-2, 2], [0, 2], [0, 0], [0, 0], [0, 2], [0, 2], [0, 1], [1, 1], [3, 1], [0, -2], [0, -1], [0, -1], [-1, -4], [-1, -2]], [[302199, 72089], [-1, -2], [0, -2], [0, -1], [0, 0], [-1, 1], [-1, 0], [-1, 1], [0, 0], [-1, 4], [-1, 5], [0, 3], [0, 0], [0, 1], [1, 1], [1, 2], [0, 0], [1, 1], [1, 0], [0, 0], [1, -1], [0, 0], [0, -1], [1, -2], [0, -1], [0, -1], [0, -3], [0, -1], [0, -1], [0, -3]], [[241094, 69638], [-96, -149], [-28, 22], [-9, 350], [10, 46], [44, -19], [105, -106], [-26, -144]], [[237226, 76921], [-33, -112], [-167, 108], [-79, 91], [-164, 348], [24, 65], [53, 0], [90, -146], [205, -106], [45, -72], [26, -176]], [[282109, 72806], [2, -4], [8, -10], [0, -1], [0, -1], [0, -2], [0, -6], [-36, -98], [-32, -89], [0, 0], [-5, 0], [-21, 10], [-12, 5], [-13, 10], [0, 0], [-1, 2], [0, 1], [1, 2], [0, 4], [1, 7], [5, 20], [1, 3], [14, 51], [13, 24], [4, 7], [63, 69], [0, 0], [0, 0], [1, 1], [0, 0], [0, 0], [1, 0], [0, 0], [0, 0], [0, 0], [0, -1], [1, 0], [5, -4]], [[281646, 71554], [-10, -11], [-53, -42], [-7, -1], [-6, -1], [-7, 1], [-7, 0], [-6, 1], [-3, 0], [-21, 9], [-16, 7], [0, 0], [4, 7], [13, 18], [15, 13], [5, 4], [57, 34], [1, 1], [2, 1], [0, 0], [1, 0], [1, 0], [0, 0], [3, 0], [1, 0], [1, 0], [0, 0], [13, -1], [11, -3], [5, -2], [4, -1], [1, 0], [0, -1], [2, -1], [1, 0], [0, -1], [0, 0], [0, -1], [1, 0], [0, -1], [0, 0], [0, -1], [0, 0], [0, -1], [-1, -1], [-5, -26]], [[281984, 72494], [0, -1], [0, 0], [0, -1], [-3, -17], [-9, -45], [-4, -8], [-9, -17], [-1, -1], [0, 0], [-1, -1], [0, 0], [-1, 0], [0, -1], [-1, -1], [-1, 0], [0, 0], [-1, 0], [-2, 0], [-1, 0], [0, 0], [0, 0], [0, 0], [-2, 2], [0, 1], [-41, 80], [-2, 25], [1, 5], [3, 10], [8, 18], [5, 10], [14, 21], [18, 22], [1, 1], [0, 1], [2, 2], [1, 0], [0, 1], [1, 0], [0, 0], [0, 0], [1, -1], [0, 0], [1, -2], [1, -1], [0, 0], [0, -1], [1, -2], [3, -4], [1, -1], [1, -2], [0, -1], [1, -3], [0, -1], [15, -87]], [[281975, 74015], [1, 0], [32, 0], [1, 0], [1, -1], [1, 0], [3, -1], [2, -1], [9, -6], [0, -1], [1, -1], [0, 0], [0, 0], [0, -1], [0, 0], [1, -5], [0, -1], [0, -1], [0, -1], [0, 0], [0, -1], [-4, -10], [-3, -6], [-1, 0], [-2, -1], [-5, -2], [-3, -1], [-49, 1], [0, 0], [-6, 8], [-1, 1], [0, 0], [-1, 2], [-2, 7], [-1, 5], [0, 1], [0, 2], [-1, 8], [0, 1], [0, 2], [2, 2], [1, 0], [1, 1], [23, 0]], [[282127, 75364], [-1, -1], [-9, 1], [0, 0], [-1, 0], [-1, 1], [-1, 0], [-7, 11], [0, 1], [0, 0], [-1, 8], [0, 2], [0, 0], [0, 2], [0, 1], [0, 1], [0, 1], [0, 0], [1, 1], [0, 0], [3, 9], [1, 2], [0, 1], [1, 0], [0, 2], [2, 0], [1, 1], [0, 0], [5, 1], [0, 0], [0, 1], [1, 0], [1, 0], [1, 0], [1, 0], [2, -1], [0, 0], [1, -1], [6, -9], [1, -1], [1, -2], [1, -4], [1, -2], [0, 0], [0, -1], [0, -1], [0, -1], [1, -3], [0, 0], [-1, -2], [0, -5], [0, 0], [-1, -1], [0, 0], [0, 0], [0, 0], [-1, -1], [-7, -10], [-1, -1], [0, 0]], [[282088, 76018], [1, 0], [2, -1], [0, 0], [1, -1], [1, -1], [1, 0], [1, -1], [3, -5], [1, -1], [0, 0], [0, -2], [1, -5], [0, -5], [1, -7], [0, -8], [0, -1], [0, -1], [-1, -2], [-4, -11], [-3, -8], [-2, -5], [0, 0], [-47, -49], [0, 0], [-1, 13], [-1, 14], [8, 46], [5, 30], [1, 2], [1, 1], [0, 1], [2, 2], [0, 0], [4, 3], [3, 3], [1, 1], [1, 0], [1, 1], [1, 0], [1, 0], [0, 0], [2, 0], [2, 1], [8, -3], [5, -1]], [[281977, 76735], [1, 0], [1, -1], [3, -1], [8, -4], [10, -10], [1, -1], [2, -3], [1, -2], [1, -9], [0, -7], [1, -12], [0, -1], [0, -2], [0, -2], [-8, -17], [-4, -8], [-16, -14], [-11, 10], [-2, 3], [-1, 2], [-6, 14], [-4, 11], [-1, 6], [-2, 11], [0, 1], [0, 1], [0, 1], [0, 0], [1, 4], [0, 2], [5, 14], [3, 6], [2, 5], [1, 1], [1, 1], [2, 3], [2, 1], [1, 1], [2, 0], [1, 0], [1, 0], [0, 0], [1, 0], [1, 0], [1, -1], [0, -1], [0, -1], [1, -1]], [[6626, 40779], [20, -7], [26, -29], [12, -18], [18, -27], [41, -72], [4, -9], [29, -80], [1, -17], [0, -2], [-14, -56], [-16, -60], [-35, 2], [-29, 1], [-59, -4], [-2, 0], [0, 0], [-85, -21], [-12, -2], [-45, -7], [-8, 4], [-15, 7], [-14, 18], [-7, 9], [-48, 72], [-90, 134], [4, 87], [0, 0], [314, 76], [4, 1], [6, 0]], [[7083, 40378], [237, -120], [99, -82], [0, 0], [4, -7], [7, -12], [1, -12], [1, -1], [0, -4], [0, 0], [0, -2], [1, -5], [-1, -1], [0, 0], [-2, -8], [-1, -2], [0, -1], [-1, -2], [0, -1], [-1, -1], [-1, -2], [0, -1], [-2, -5], [-4, -8], [0, 0], [-208, 4], [-25, 1], [-17, 1], [-40, 5], [-91, 32], [-17, 6], [0, 0], [-44, 22], [-84, 92], [-5, 7], [-1, 1], [0, 0], [-8, 23], [0, 5], [0, 1], [16, 21], [2, 3], [3, 2], [1, 1], [1, 2], [6, 6], [2, 2], [0, 0], [1, 1], [6, 3], [0, 1], [1, 0], [2, 1], [33, 13], [54, 20], [1, 1], [1, 0], [2, 0], [1, 1], [11, 2], [5, 1], [39, 1], [0, 0], [15, -5]], [[101419, 75744], [0, 0], [2, 0], [2, 0], [40, -2], [2, 0], [0, 0], [2, 0], [1, -1], [1, 0], [11, -7], [5, -3], [1, -3], [0, -1], [-1, -2], [-1, -6], [-1, -1], [0, -2], [-4, -2], [-9, -7], [-18, -8], [-5, -1], [-1, 0], [0, 0], [-1, 0], [-1, 0], [-1, 0], [-2, 3], [-2, 2], [-1, 2], [-3, 5], [-14, 22], [-2, 12]], [[102013, 74506], [9, -26], [10, -30], [11, -74], [0, 0], [0, -1], [0, -1], [-1, -2], [-1, -1], [0, -1], [0, 0], [-1, -1], [-3, -6], [-2, -2], [0, -1], [-1, -1], [0, 0], [-1, 0], [-1, -1], [-1, -1], [-3, -3], [0, 0], [-1, 0], [-3, -1], [-1, -1], [-2, -1], [-6, 0], [-8, 1], [-3, 1], [-1, 1], [-3, 2], [0, 0], [-7, 5], [-3, 2], [-1, 1], [-1, 0], [-1, 1], [-7, 9], [-14, 27], [-2, 16], [0, 9], [-1, 7], [14, 36], [15, 40], [2, 4], [0, 0], [1, 1], [0, 0], [1, -1], [0, 0], [5, -2], [10, -4], [1, 0], [1, -1]], [[103054, 72237], [16, -25], [22, -35], [52, -125], [9, -13], [15, -23], [12, -39], [14, -57], [3, -16], [0, -2], [0, -21], [0, 0], [-7, -15], [-18, -38], [-13, -10], [-3, -2], [-1, -1], [-1, 0], [-1, 0], [-2, 0], [-7, 2], [-1, 0], [0, 0], [-1, 0], [0, 0], [-16, 11], [-105, 72], [-130, 225], [-1, 1], [-1, 2], [-1, 3], [-7, 15], [0, 1], [0, 1], [-1, 1], [-1, 3], [-3, 6], [-33, 110], [-1, 2], [-1, 3], [0, 3], [-1, 2], [0, 2], [0, 5], [0, 0], [0, 2], [0, 1], [0, 0], [0, 2], [0, 0], [3, 16], [0, 1], [0, 1], [3, 5], [1, 2], [1, 3], [1, 3], [2, 2], [0, 2], [3, 3], [1, 3], [1, 1], [5, 5], [2, 2], [0, 0], [0, 0], [1, 1], [4, 2], [3, 1], [1, 1], [1, 0], [31, 13], [2, 0], [0, 0], [2, 0], [0, 0], [4, 0], [1, 0], [1, -1], [0, 0], [1, 0], [4, -1], [3, -1], [54, -37], [38, -39], [40, -41]], [[194905, 41652], [45, -89], [38, -141], [-4, -131], [-36, -22], [-23, 0], [-17, 8], [-26, 78], [19, 1], [-44, 180], [-2, 2], [-4, 5], [-1, 1], [0, 4], [0, 2], [1, 1], [11, 48], [31, 45], [9, 9], [1, 0], [1, 0], [1, -1]], [[195067, 41513], [1, -1], [1, -3], [0, -2], [0, -3], [0, -3], [-1, -9], [0, -1], [-1, -2], [-9, -8], [-5, -2], [-6, 16], [-3, 15], [3, 5], [12, 19], [1, -1], [1, -1], [5, -16], [1, -3]], [[297992, 33190], [14, -13], [59, -51], [36, -22], [23, -14], [8, 3], [1, 1], [0, 0], [0, 0], [0, 1], [0, 1], [1, 6], [0, 1], [0, 0], [-1, 4], [-1, 5], [0, 1], [-1, 1], [0, 2], [0, 0], [219, -72], [261, -244], [205, -192], [600, -665], [209, -148], [80, -66], [123, -101], [523, -470], [8, -8], [25, -23], [79, -186], [-7, -49], [-22, -54], [-33, -29], [0, 0], [-19, -7], [-30, -11], [-95, 30], [-42, 13], [-244, 143], [-258, 202], [-8, 64], [-1, 12], [-1, 1], [-2, 6], [-1, 1], [0, 2], [-1, 1], [-1, 2], [-7, 6], [-12, 10], [-22, 17], [-15, 12], [-351, 193], [-18, 11], [-98, 38], [-16, 10], [-4, 2], [-14, 10], [-199, 141], [-79, 82], [-281, 352], [-17, 21], [-241, 277], [-136, 151], [0, 0], [-22, 39], [-101, 183], [-37, 85], [-45, 103], [-125, 296], [0, 0], [134, -117]], [[300926, 30480], [-4, -15], [-3, -10], [-1, -1], [0, 0], [-1, -2], [-1, -1], [0, -1], [-1, -1], [-2, -1], [0, 0], [-2, -1], [-12, 1], [-14, 2], [-1, 1], [0, 1], [-2, 2], [1, 3], [3, 18], [14, 21], [10, -1], [9, -7], [5, -4], [0, 0], [0, 0], [1, -3], [1, -1]], [[300890, 30577], [16, -10], [1, -1], [0, 0], [1, -1], [2, -1], [3, -7], [3, -5], [1, -3], [1, 0], [0, -1], [3, -7], [0, -2], [1, -1], [0, -2], [1, -4], [0, -1], [1, -2], [-2, -15], [-2, -14], [0, 0], [-1, -1], [0, 0], [0, -1], [0, 0], [-2, 2], [-1, 1], [-15, -4], [-7, -1], [0, 0], [-1, -2], [-1, -1], [-14, -16], [-1, -2], [-1, -1], [0, 0], [-4, -4], [0, 0], [-1, -1], [-3, 0], [-2, 0], [-6, -1], [0, 0], [-1, 0], [-5, 1], [-3, 1], [-3, 1], [-22, 9], [-15, 17], [-4, 19], [0, 13], [-1, 11], [1, 11], [2, 16], [0, 0], [25, 3], [56, 7]], [[300281, 30783], [21, -6], [0, 0], [0, 0], [2, -2], [2, -4], [1, -2], [0, -2], [0, -1], [1, -7], [-1, -14], [-1, -2], [0, 0], [0, -1], [0, -1], [-1, -1], [-10, -24], [0, -1], [-1, -1], [-5, -7], [-1, -2], [-2, -2], [-1, -1], [0, 0], [-4, -3], [-2, -1], [0, 0], [-25, 7], [0, 1], [-1, 0], [-1, 1], [0, 1], [-4, 16], [-1, 3], [0, 0], [5, 29], [11, 12], [11, 13], [2, 2], [1, 0], [2, 0], [2, 0], [0, 0]], [[299630, 31131], [-1, 0], [-1, 0], [-1, 0], [-2, 0], [-3, 1], [-2, 1], [-1, 1], [-2, 0], [-1, 1], [0, 0], [-1, 1], [-2, 2], [0, 0], [-1, 1], [-10, 22], [0, 1], [0, 0], [-1, 3], [-1, 3], [1, 3], [0, 2], [14, 14], [0, 0], [2, -1], [1, -1], [0, 0], [1, -1], [3, -3], [0, -1], [0, -1], [3, -16], [6, -30], [-1, -1], [0, -1]], [[299630, 31226], [0, 0], [1, 0], [0, 0], [1, -1], [1, -1], [1, 0], [0, -1], [2, -4], [0, 0], [0, -2], [0, 0], [0, -1], [0, 0], [0, 0], [0, -1], [-6, -6], [-11, -10], [-7, -6], [0, 0], [-13, 6], [-3, 14], [-4, 19], [0, 0], [2, 4], [0, 0], [1, 1], [0, 0], [35, -11]], [[301374, 31833], [43, -35], [-1, -39], [-3, -102], [-8, -19], [-1, -1], [0, 0], [-73, -32], [0, 0], [-3, 0], [-35, 2], [-9, 6], [-82, 60], [-7, 5], [-8, 7], [-36, 199], [0, 0], [14, 10], [26, 19], [95, 18], [88, -98]], [[301168, 32185], [-2, -3], [-1, 0], [-3, -6], [-1, -1], [0, 0], [-1, 0], [-2, 2], [-6, 4], [-10, 8], [-5, 4], [-1, 1], [-2, 2], [-2, 3], [-1, 2], [0, 3], [-1, 2], [0, 1], [0, 6], [0, 1], [1, 2], [0, 1], [0, 1], [1, 3], [1, 0], [1, 1], [2, 0], [1, 0], [1, 0], [1, 0], [1, -1], [1, -1], [1, -1], [1, 0], [1, -1], [0, 0], [5, -5], [0, -1], [2, -1], [8, -11], [8, -11], [1, -2], [0, -2]], [[300692, 32645], [-4, -35], [-3, -47], [-3, -40], [-1, -43], [-1, -17], [1, -11], [2, -20], [94, -58], [11, -24], [43, -92], [0, 0], [-7, -24], [-20, -75], [-1, -1], [0, 0], [-1, -2], [-1, -1], [-1, -1], [-2, -1], [-1, -1], [-9, -5], [-15, -8], [-14, -6], [-8, -3], [0, 0], [-6, 1], [-2, 1], [-3, 1], [0, 0], [-42, 28], [-126, 84], [-7, 6], [-4, 3], [-12, 14], [-19, 21], [-28, 52], [-32, 61], [22, 162], [13, 99], [42, 16], [63, 24], [3, 0], [0, 0], [1, 0], [2, 1], [2, 0], [14, -7], [7, -3], [5, -2], [1, 0], [1, -1], [0, 0], [17, -15], [1, 0], [2, -2], [8, -9], [18, -20]], [[300111, 33016], [33, -55], [-22, -129], [-12, -71], [-25, -58], [-24, -26], [-1, -2], [-8, -5], [-24, -12], [-1, -1], [-23, -4], [-2, 2], [-1, 1], [18, 29], [2, 2], [45, 91], [21, 90], [9, 42], [0, 1], [1, 1], [0, 2], [1, 5], [2, 17], [1, 10], [0, 1], [0, 1], [0, 3], [-1, 3], [0, 3], [0, 1], [-1, 1], [0, 2], [-2, 3], [-12, 29], [-4, 9], [0, 0], [-11, -8], [0, 0], [2, 15], [25, 12], [1, 0], [2, 0], [3, 1], [1, -1], [2, 0], [1, 0], [3, -4], [1, -1]], [[298045, 33290], [-3, -2], [-4, -2], [-5, 0], [-5, -1], [-2, 1], [-3, 0], [-1, 1], [-1, 2], [-25, 31], [-15, 30], [6, 24], [8, 5], [0, 0], [35, -57], [7, -12], [8, -20], [0, 0]], [[297697, 33360], [-1, -1], [-1, -2], [0, 0], [0, 0], [0, 0], [-3, 1], [-3, 2], [-3, 3], [-1, 0], [-1, 0], [-10, 13], [-9, 12], [0, 1], [0, 0], [-1, 2], [-1, 1], [0, 5], [0, 0], [0, 1], [1, 1], [0, 0], [2, 5], [0, 0], [2, 2], [1, 1], [1, 1], [2, 2], [1, 0], [3, 2], [2, 0], [0, 0], [1, 1], [1, 0], [0, 0], [1, 0], [1, 0], [1, 0], [3, 0], [1, 0], [0, -1], [1, 0], [1, -1], [1, -1], [0, 0], [0, 0], [1, -1], [5, -6], [2, -4], [1, -2], [0, 0], [1, -1], [0, 0], [0, -1], [-2, -30], [-1, -2], [0, -1], [0, -2]], [[297827, 33429], [16, -40], [0, 0], [1, -2], [3, -16], [-3, -4], [-2, -3], [0, 0], [0, -1], [-3, -4], [0, 0], [-1, -1], [0, -1], [0, 0], [-1, -1], [-2, 0], [-1, 1], [-2, 0], [-1, 0], [-10, 2], [-6, 2], [-7, 11], [-4, 5], [1, 37], [1, 19], [0, 2], [1, 2], [0, 1], [1, 3], [0, 2], [1, 1], [0, 0], [1, 0], [1, 1], [0, 0], [2, 0], [1, 0], [0, 0], [1, 0], [1, -1], [1, -1], [1, -1], [1, 0], [0, -1], [1, -1], [3, -3], [1, -2], [2, -2], [1, -3], [0, 0], [0, 0], [0, -1]], [[297586, 33737], [1, -7], [3, -13], [0, -2], [2, -8], [0, 0], [-24, -15], [0, 0], [-12, 17], [-1, 2], [-1, 1], [-3, 7], [-10, 25], [-9, 24], [-11, 94], [0, 1], [1, 2], [0, 0], [0, 0], [1, 0], [2, 1], [1, -2], [3, -3], [1, -2], [1, -1], [1, -1], [1, -1], [1, -2], [2, -4], [17, -31], [1, 0], [0, 0], [1, -3], [1, -1], [4, -7], [1, -2], [25, -69]], [[297513, 33896], [-13, -6], [-3, 0], [-1, 0], [-1, 0], [-1, 0], [0, 1], [-1, 2], [-4, 5], [-10, 33], [3, 4], [6, 8], [0, 0], [12, -19], [13, -23], [0, -1], [0, 0], [1, -1], [-1, -1], [0, -1], [0, -1], [0, 0]], [[294337, 34202], [-2, -1], [0, -1], [-4, -3], [-4, 1], [-4, 2], [-1, 1], [0, 1], [-1, 1], [-2, 5], [-1, 3], [-2, 6], [-1, 2], [0, 1], [0, 1], [0, 1], [-1, 25], [-1, 44], [1, 51], [0, 3], [7, 46], [0, 1], [0, 1], [0, 2], [5, 31], [3, 17], [1, 2], [0, 1], [0, 0], [1, 1], [3, 5], [3, 1], [2, 1], [0, 0], [2, 1], [1, 0], [1, 0], [1, -1], [1, 0], [0, 0], [0, -1], [1, 0], [2, -2], [0, -1], [1, -2], [1, -1], [0, -2], [2, -10], [2, -7], [0, 0], [0, -2], [0, -3], [5, -46], [0, -1], [0, -2], [-2, -39], [0, 0], [-1, -3], [0, -4], [0, -1], [0, -1], [0, -5], [-1, -5], [0, -7], [-6, -59], [-1, -2], [0, 0], [0, -2], [-2, -12], [0, -2], [0, 0], [-1, -5], [-1, -6], [-2, -4], [0, -3], [-1, -2], [0, -2], [0, 0], [-2, -4], [-1, -1], [-1, -3]], [[8811, 34622], [0, 0], [11, -5], [2, 0], [0, -2], [2, -3], [0, -1], [1, 0], [23, -99], [-13, -44], [-31, -40], [-10, -13], [0, 0], [-6, -4], [-3, -2], [0, 0], [-20, -6], [-6, 1], [-4, 1], [-22, 12], [-1, 2], [-6, 8], [-15, 47], [12, 66], [4, 21], [4, 15], [13, 24], [2, 4], [1, 1], [2, 2], [3, 6], [3, 2], [1, 1], [0, 1], [1, 0], [1, 1], [2, 1], [1, 1], [9, 2], [15, 3], [2, 0], [3, 0], [5, 0], [2, 0], [1, 0], [0, 0], [1, 0], [3, -1], [3, -1], [4, -1]], [[301426, 3502], [4, -34], [0, 0], [-91, -14], [0, 0], [1, 2], [3, 4], [-31, 27], [0, 0], [-47, -83], [115, -49], [14, -1], [13, -1], [16, 2], [23, -86], [0, 0], [-175, -67], [-217, -26], [-27, -12], [-96, -75], [-2, -2], [-1, -2], [0, 0], [17, 95], [0, 0], [28, 26], [94, 85], [42, 131], [4, 11], [0, 38], [-15, 33], [-35, 77], [12, 81], [1, 6], [0, 0], [76, 12], [61, 9], [27, -12], [49, -22], [137, -153]], [[2924, 7024], [0, 0], [149, -56], [11, -4], [0, 0], [-73, 11], [-26, 4], [0, 0], [-4, -22], [-3, -13], [0, -2], [0, -4], [59, -117], [45, -92], [49, -58], [6, -7], [0, 0], [-25, -38], [0, 0], [-113, -56], [0, 0], [-38, 86], [-108, 243], [60, 105], [11, 20]], [[305554, 10580], [73, -19], [19, -15], [12, -9], [0, 0], [-41, 19], [-38, 11], [-29, 6], [-63, 1], [-57, 2], [-61, -107], [-28, -49], [0, 0], [30, -67], [6, -14], [12, -15], [28, -35], [87, -64], [11, 0], [34, 0], [96, -258], [7, -86], [81, -168], [79, -46], [189, 204], [187, 89], [187, 89], [0, 0], [-41, -63], [-40, -62], [105, -168], [175, 67], [0, 0], [-43, 23], [-48, 26], [0, 0], [6, 22], [35, 125], [250, 14], [0, 0], [-68, -129], [-46, -88], [-177, -45], [-39, -40], [0, 0], [205, -13], [20, -2], [-57, -21], [-54, -90], [-2, -11], [-16, -91], [18, -69], [3, -5], [5, -9], [33, -41], [145, -176], [-699, -977], [-140, -301], [-59, -72], [-232, -137], [-227, -348], [0, 0], [-37, -292], [0, 0], [161, 45], [154, -41], [68, -79], [22, -25], [0, 0], [-32, -92], [-6, -17], [-14, -8], [-70, -42], [-247, 67], [-112, -15], [-229, -32], [-579, -281], [-90, -65], [-175, -129], [-38, -48], [-37, -46], [-85, -344], [-103, -414], [-375, -759], [-46, -144], [0, 0], [67, 24], [24, 9], [0, 0], [17, -35], [0, 0], [-179, -56], [-136, -43], [-70, -82], [-92, -174], [-435, -326], [0, 0], [6, -5], [7, -5], [0, 0], [46, 7], [7, 1], [4, 1], [0, 0], [-106, -91], [-84, -23], [-349, -94], [-179, 11], [-288, 88], [-156, 49], [-130, 151], [0, 0], [-79, 21], [-333, 90], [-389, 45], [-461, 54], [-79, 94], [0, 0], [5, 7], [69, 111], [0, 0], [-105, 38], [-104, -20], [-23, -5], [0, 0], [-5, 22], [-27, 146], [0, 0], [6, 16], [14, 32], [114, 44], [188, 75], [0, 0], [-56, 146], [-23, -2], [-25, -2], [0, 0], [-14, 30], [0, 0], [110, 258], [58, 43], [0, 0], [100, -51], [51, -27], [-58, 172], [-2, 4], [8, 53], [121, 145], [145, 172], [238, 168], [316, 37], [0, 0], [-45, 78], [105, 275], [303, 364], [339, 114], [210, 70], [641, 406], [477, 376], [-5, 5], [-11, 12], [-18, -2], [-11, -13], [-5, -5], [0, 0], [57, 77], [161, 75], [114, 53], [226, 178], [59, 72], [107, 129], [111, 185], [10, 22], [74, 165], [102, 350], [84, 289], [0, 0], [158, 24], [39, 6], [142, 130], [32, 49], [121, 186], [38, 127], [4, 15], [0, 0], [4, 426], [0, 0], [10, 14], [46, 67], [197, 162], [68, 46], [198, 134], [161, -11]], [[305828, 16866], [17, -123], [4, -28], [26, 3], [32, 3], [43, 13], [56, 19], [174, -67], [110, -42], [100, 12], [58, 6], [74, -68], [0, 0], [-30, -81], [-11, -27], [0, 0], [145, -120], [3, -3], [53, 31], [0, 0], [-5, 6], [-15, 19], [50, 22], [20, -17], [58, -48], [23, -85], [14, -51], [185, -448], [0, 0], [-118, 63], [-89, 48], [0, 0], [-10, -64], [-6, -41], [374, -537], [0, -56], [0, -30], [-56, -33], [-3, -2], [25, -124], [61, -291], [-5, -31], [-57, -2], [-4, 0], [0, 0], [-10, 10], [-47, 45], [0, 0], [27, -132], [0, 0], [-2, 28], [18, -2], [2, 0], [0, 0], [62, 33], [51, -3], [42, -2], [7, -11], [46, -35], [53, -40], [114, -87], [148, -111], [194, 55], [-37, 351], [-45, 81], [-88, 160], [0, 0], [5, 8], [29, 49], [0, 0], [23, -15], [120, -76], [66, -230], [60, -32], [118, -62], [62, -208], [-18, -193], [55, -412], [19, -43], [11, -24], [93, -21], [90, -19], [0, 0], [-7, -55], [1, -6], [0, -1], [59, 13], [104, -36], [99, -35], [288, -128], [231, -102], [-3, -16], [-3, -20], [77, -23], [25, 7], [199, 53], [35, 22], [63, 40], [226, 274], [94, 77], [89, 72], [108, -5], [146, -5], [123, -77], [30, -19], [-2, -32], [-12, -163], [-24, -140], [-88, -494], [-259, -322], [-38, -156], [-69, -278], [0, 0], [-212, -1], [-202, -1], [-323, -146], [0, 0], [-107, -160], [-25, -148], [-3, -15], [0, 0], [53, -79], [71, -107], [-125, -470], [-355, -530], [-52, -92], [-322, -571], [-52, -68], [-39, -51], [-265, -222], [-57, -48], [-214, -131], [0, 0], [-59, 3], [-13, 0], [0, 0], [-299, 413], [-43, 6], [-26, -27], [-30, -31], [3, 9], [48, 199], [194, 302], [44, 116], [69, 180], [31, 254], [-36, 158], [-21, 90], [-105, 118], [-106, 120], [-838, 398], [0, 0], [-9, 9], [-130, 136], [-2, 9], [-32, 132], [0, 0], [1, 2], [34, 94], [44, 44], [1, 0], [77, 47], [211, 129], [199, 17], [45, 47], [79, 83], [29, 62], [6, 12], [11, 45], [120, 567], [29, 137], [67, -14], [47, 72], [0, 0], [-23, 62], [-79, 218], [33, 89], [0, 0], [-155, 528], [0, 0], [2, 30], [12, 197], [0, 0], [55, -96], [113, 110], [0, 0], [-73, 51], [-27, 19], [0, 0], [16, 19], [17, 20], [0, 0], [0, 1], [-1, 2], [34, 3], [0, 0], [9, 24], [-314, -16], [-43, 127], [-21, 64], [-25, 45], [-1, 18], [-9, 104], [81, -36], [-19, 344], [0, 0], [-26, 9], [0, 0], [-1, 0], [-16, -46], [0, 0], [-45, 62], [-2, 3], [55, 200], [0, 0], [-125, 5], [-145, -112], [-56, -43], [-530, 782], [-22, 48], [50, 111], [0, 0], [14, 14], [22, 21], [11, -8], [41, -31], [0, 0], [20, 25], [39, 69], [0, 0], [4, 34], [0, 0], [-26, 0], [-28, 0], [-89, -108], [-81, -99], [0, 0], [-150, 213], [-22, 78], [-21, 77], [0, 0], [9, 15], [38, 63], [-25, 137], [-43, 72], [-87, 144], [-130, 179], [-41, 56], [132, 160], [11, 14], [0, 0], [4, -57], [3, -45], [-20, -74], [54, -36], [117, -193], [58, -97]], [[300397, 55194], [2, -2], [0, 0], [2, -2], [0, -2], [0, -3], [1, -3], [-1, -4], [0, -1], [-1, -4], [-9, -22], [-1, -2], [-1, -1], [0, 0], [-4, -3], [-1, -1], [-1, 0], [0, 0], [-3, 0], [-1, -1], [-2, 1], [0, 0], [-3, 0], [-4, 3], [-1, 1], [-1, 1], [-1, 1], [-1, 1], [0, 0], [-1, 1], [-1, 2], [-1, 1], [-1, 1], [0, 1], [0, 1], [0, 1], [0, 5], [2, 3], [0, 2], [1, 1], [1, 3], [0, 0], [0, 0], [1, 1], [6, 9], [11, 13], [2, 0], [0, 0], [1, 1], [2, 0], [1, 0], [0, 0], [1, -1], [2, 0], [3, -1], [1, -1], [0, 0]], [[85194, 63963], [-6, -40], [0, 0], [-44, 10], [-69, 16], [-104, 116], [0, 0], [-20, 69], [59, 77], [49, 65], [0, 0], [9, -4], [13, -7], [113, -302]], [[44763, 28599], [1, -4], [2, -11], [3, -14], [0, -2], [0, -3], [1, -2], [1, -9], [0, -4], [0, -4], [0, -3], [0, -1], [0, -1], [0, -1], [0, 0], [0, -1], [0, -1], [0, -7], [-1, -1], [0, -1], [-1, -1], [-1, -1], [-1, -1], [0, 0], [0, 0], [-2, 1], [-1, 0], [0, 0], [-8, 3], [-17, 6], [-5, 3], [-1, 1], [-1, 1], [0, 0], [-15, 30], [0, 3], [-2, 8], [0, 0], [-1, 5], [0, 1], [1, 2], [0, 1], [1, 6], [0, 1], [3, 4], [4, 10], [9, 8], [29, 4], [2, -25]], [[203908, 32470], [47, -6], [3, -1], [2, 0], [3, 0], [23, -4], [1, 0], [37, -17], [18, -9], [2, -1], [1, -1], [1, 0], [3, -1], [2, -3], [15, -21], [1, -2], [123, -221], [0, -1], [1, -1], [1, -4], [4, -19], [2, -15], [-22, -172], [-3, -13], [-1, -3], [0, -2], [-4, -3], [-6, -6], [-2, -1], [-1, -1], [-1, -1], [-22, -8], [-3, -1], [-95, -24], [-26, 3], [-15, 3], [-65, 21], [-41, 15], [-46, 27], [-64, 47], [-22, 17], [-30, 39], [-11, 24], [-44, 126], [9, 92], [47, 106], [64, 33], [76, 20], [38, -11]], [[261146, 76246], [252, -110], [98, 18], [104, 108], [0, 4], [115, -236], [-110, -425], [47, -311], [45, -162], [135, -91], [74, -193], [-25, -274], [-205, -638], [-130, -111], [-293, -159], [-132, -147], [-150, -603], [180, -788], [38, -297], [104, -326], [146, -146], [252, -99], [60, 81], [4, 53], [-31, 236], [100, 58], [226, -3], [31, 17], [-3, 54], [143, -71], [169, -236], [43, -190], [-42, -136], [41, -35], [120, -17], [70, 62], [47, 250], [65, -101], [420, -143], [36, -89], [-335, 11], [-45, -161], [401, -540], [152, -97], [-24, -344], [-51, -172], [-79, 2], [-100, 128], [-24, 92], [9, 146], [32, -13], [44, -12], [63, 29], [12, 98], [-326, -65], [-256, 127], [-194, 496], [-335, 377], [-187, 155], [-86, -21], [54, -211], [97, -236], [-74, -239], [-28, 104], [-132, 194], [-509, 439], [-217, -127], [-42, -173], [-116, -86], [-179, 6], [-126, 161], [-251, 29], [-49, 156], [-4, 316], [315, 290], [10, 18], [1, 38], [-26, 116], [-105, 129], [-250, 89], [-9, -25], [-3, -79], [64, -283], [-39, -67], [-92, 8], [-56, 29], [-71, 195], [-22, 210], [-194, 172], [-103, 561], [19, 38], [-52, 392], [-43, 114], [-70, -53], [-16, 38], [23, 409], [27, 44], [79, 30], [13, -152], [203, -236], [140, 29], [92, 109], [-74, 217], [-20, 308], [104, 550], [21, 320], [-13, 128], [-3, 11], [-5, 7], [-6, 1], [-5, -9], [6, 245], [40, 313], [93, 461], [56, 100], [170, 124], [105, -89], [251, -6], [306, -217]], [[260778, 62490], [42, -35], [115, 1], [-90, -133], [-291, 7], [-38, 35], [17, 91], [100, 83], [75, 11], [70, -60]], [[261642, 62959], [-181, -53], [-147, 230], [241, 140], [174, -103], [-87, -214]], [[265218, 65726], [17, -109], [-129, -166], [-23, -182], [146, -200], [32, -504], [93, -133], [81, -193], [29, -345], [-128, -313], [-141, -106], [-67, 39], [-45, -53], [56, -111], [11, -147], [-36, -410], [-92, 247], [-3, 95], [-85, 410], [-118, 364], [-173, -101], [-217, -453], [-15, -126], [12, -107], [75, -21], [94, -113], [100, -302], [-2, -188], [-33, -124], [-216, -401], [-103, 12], [-92, 279], [-86, 46], [-47, -25], [-186, 48], [-443, 263], [-98, 84], [-120, 195], [-73, 442], [92, 412], [76, 60], [62, 160], [-7, 80], [-190, 258], [-273, 183], [-102, 44], [-132, -44], [-36, -236], [-74, -94], [-87, 85], [-7, 26], [-68, 115], [-248, -222], [3, 6], [-10, 242], [-89, 46], [-74, -9], [-77, -62], [-91, -150], [-159, -446], [1, -90], [-83, -216], [-40, -24], [-147, 86], [-31, 196], [204, 469], [-25, 223], [102, 222], [104, 86], [297, 91], [259, 149], [79, 296], [352, 140], [66, -71], [20, 84], [84, -16], [56, -50], [90, -288], [12, -197], [-128, -126], [67, 16], [241, 145], [370, 431], [155, -114], [55, 21], [31, 476], [213, -16], [343, 75], [83, 45], [-9, 278], [-101, 436], [11, 126], [31, 46], [45, -21], [152, -214], [198, -197], [359, -542]], [[263440, 66463], [-174, -10], [-173, 53], [-63, 140], [50, 147], [145, 78], [136, 209], [104, 20], [47, -43], [0, -3], [0, -2], [153, -303], [62, -47], [-169, -178], [-118, -61]], [[262499, 65889], [-142, -45], [-63, 56], [-437, 643], [80, 352], [149, 6], [114, 80], [31, 102], [38, 498], [47, 245], [152, 169], [62, 29], [258, -98], [25, -81], [-280, -942], [-85, -381], [60, -167], [110, -179], [-12, -120], [-107, -167]], [[262659, 66271], [-46, -10], [59, 478], [402, 1002], [101, 383], [74, -151], [-6, -6], [-1, -367], [-179, -424], [-177, -280], [-133, -469], [-94, -156]], [[259314, 67905], [68, -251], [33, 1], [85, -151], [-10, -41], [-103, -113], [-104, -20], [-116, -75], [-69, -126], [-281, -243], [-139, -48], [-37, -350], [-202, -355], [-86, -85], [-212, -87], [-111, -282], [-186, -174], [-221, -138], [-249, -250], [-28, -45], [-26, 49], [24, 120], [68, 171], [285, 413], [223, 242], [125, 14], [336, 486], [315, 370], [193, 376], [97, 59], [26, -35], [157, 258], [16, 104], [74, 18], [12, 136], [-28, 209], [8, 275], [107, 54], [-44, -486]], [[264089, 68186], [188, -844], [-4, -156], [-169, -216], [3, -44], [-195, 131], [-40, 66], [6, 420], [34, 114], [-16, 118], [-163, 266], [-44, -50], [-123, 48], [-100, 570], [32, 37], [203, -249], [352, -5], [36, -206]], [[263726, 68558], [-108, -11], [-61, 103], [1, 31], [-51, 100], [83, 31], [93, -37], [71, -152], [-28, -65]], [[262121, 67787], [-704, -328], [104, 729], [52, 619], [-31, 44], [-181, 41], [41, 140], [41, 32], [64, -57], [732, -498], [14, -6], [214, -18], [-51, -274], [-52, -45], [-214, -204], [17, -92], [-46, -83]], [[259675, 69501], [222, -224], [37, 12], [9, 61], [35, -66], [-83, -113], [-92, -17], [-153, 213], [-13, 116], [38, 18]], [[263107, 69389], [134, -242], [36, -317], [-243, 224], [-167, 240], [-148, 65], [-133, -40], [-4, 333], [40, 131], [31, -28], [7, -76], [242, -130], [205, -160]], [[264231, 69768], [106, -119], [21, -63], [-19, -104], [81, -35], [62, -195], [-21, -282], [7, -248], [87, -223], [-2, -261], [-22, -83], [-267, -1], [-187, 284], [-48, 429], [-214, 279], [-108, 69], [-200, 332], [-23, 92], [24, 102], [275, -33], [142, 25], [57, 40], [53, 6], [73, -46], [103, 56], [20, -21]], [[261618, 69878], [-113, -592], [-53, 50], [4, 56], [9, -31], [13, -8], [23, 51], [-71, 58], [64, 283], [43, 89], [81, 44]], [[260141, 70838], [250, -58], [201, 37], [197, -86], [253, -310], [28, -92], [-13, -368], [1, -204], [-144, -265], [-45, -28], [-159, 20], [10, 9], [2, 23], [-192, 360], [-185, 540], [-251, 281], [-39, -14], [-33, 49], [32, 87], [87, 19]], [[261600, 70693], [-90, -214], [-147, 110], [-32, 69], [-4, 89], [50, 137], [198, -142], [25, -49]], [[263518, 70922], [-122, -61], [-124, 65], [-31, 63], [88, 447], [55, 33], [104, -210], [76, -144], [-46, -193]], [[261515, 72176], [-81, -105], [-24, 22], [-71, 337], [23, 97], [74, 18], [69, -29], [-7, -79], [-42, -67], [27, -72], [20, -16], [12, -106]], [[272435, 64187], [-18, -89], [-26, -97], [-9, -33], [-27, -33], [-6, -1], [-1, 0], [0, 0], [-2, 3], [-6, 11], [-6, 10], [-22, 55], [-13, 32], [7, 37], [7, 42], [33, 91], [7, 18], [2, 6], [65, 108], [0, 0], [6, -7], [10, -11], [-1, -142]], [[272003, 63480], [1, 0], [1, -1], [1, 0], [1, 0], [2, -4], [3, -6], [1, -1], [0, -2], [0, -1], [-1, -2], [-1, -4], [0, -1], [-1, 0], [0, 0], [0, -1], [-12, -16], [-3, -1], [-1, 0], [-3, -1], [-1, 0], [-2, 0], [-1, 0], [-1, 0], [-3, 0], [0, 3], [0, 1], [0, 0], [1, 2], [0, 1], [0, 1], [3, 9], [3, 12], [2, 5], [1, 7], [0, 0], [6, 0], [1, 0], [0, 0], [1, 0], [2, 0]], [[272103, 63566], [-21, -27], [-2, -2], [0, 0], [-1, 0], [0, 1], [-1, 5], [-1, 2], [0, 10], [0, 9], [0, 1], [0, 1], [0, 3], [0, 1], [0, 1], [0, 2], [1, 1], [1, 3], [0, 1], [0, 1], [9, 13], [15, 23], [9, 5], [0, 0], [1, 0], [0, 0], [1, 0], [0, 0], [0, 0], [1, -1], [0, -1], [0, -2], [-1, -6], [-11, -44]], [[272214, 63752], [-1, -6], [-2, -21], [-2, -3], [-12, 1], [-11, 1], [-2, 0], [-1, 1], [0, 0], [-1, 2], [0, 1], [-1, 0], [-1, 4], [-1, 1], [0, 1], [0, 1], [0, 2], [-2, 15], [1, 1], [0, 1], [0, 3], [0, 0], [2, 0], [1, 1], [0, 0], [1, 0], [13, 4], [12, 3], [3, 0], [0, 0], [0, 0], [2, -5], [1, -4], [0, -2], [0, -2], [1, 0], [0, 0]], [[272273, 63904], [0, -3], [0, -3], [-5, -30], [0, -4], [-53, -51], [-3, 0], [-3, 1], [-3, 1], [-1, 2], [-12, 16], [-6, 7], [-7, 11], [0, 0], [1, 0], [1, 0], [0, 0], [1, -1], [1, 0], [1, 0], [0, 0], [1, 0], [1, -1], [1, -1], [1, -1], [2, -2], [6, -6], [0, 0], [1, -2], [4, -5], [5, -1], [6, -2], [0, 0], [13, 14], [18, 25], [14, 17], [7, 18], [-1, 2], [0, 3], [0, 1], [0, 1], [-1, 0], [0, 2], [-1, 1], [-1, 1], [-1, 1], [-2, 2], [0, 1], [0, 0], [0, 0], [-1, 1], [-1, 1], [-2, 6], [0, 0], [16, -14], [0, 0], [2, -3], [0, 0], [0, -1], [1, -1], [0, -1], [0, -2]], [[272288, 63958], [21, -3], [4, -22], [2, -14], [0, 0], [-20, 16], [-18, 14], [-3, 2], [-1, 1], [-7, 7], [-1, 2], [0, 0], [-1, 0], [0, 2], [-1, 0], [0, 2], [-1, 2], [2, 0], [0, 0], [1, -1], [1, 0], [2, 0], [10, -4], [1, 0], [1, -1], [3, 0], [1, -1], [0, 0], [1, 0], [1, -1], [0, 0], [2, -1]], [[288981, 42796], [-191, -13], [-10, 22], [-6, 11], [-23, 16], [-18, 13], [-199, 170], [-44, 37], [0, 0], [-7, 36], [-4, 19], [0, 0], [29, 21], [423, -218], [39, -52], [23, -32], [-12, -30], [0, 0]], [[286387, 44929], [335, -317], [0, 0], [35, 64], [75, 24], [0, 0], [14, -86], [-62, -192], [0, 0], [-100, 32], [-85, 28], [-132, 296], [0, 0], [-49, 55], [-26, -11], [0, 0], [-1, 20], [-4, 87], [0, 0]], [[286538, 45007], [-6, -4], [-65, -38], [-319, 47], [0, 0], [-23, 188], [0, 0], [35, 153], [112, -67], [90, -9], [27, -2], [0, 0], [105, -115], [44, -153]], [[286063, 45293], [-1, -6], [-37, -145], [-165, 118], [-46, 88], [7, 35], [9, 46], [43, 55], [56, 20], [33, -23], [10, -6], [47, -52], [34, -100], [10, -30]], [[288117, 45709], [225, -164], [-54, -87], [0, 0], [-109, -27], [-60, 41], [-88, 60], [27, 94], [-173, 69], [-29, -8], [-26, -8], [0, 0], [0, -27], [0, -8], [-1, 3], [-28, 88], [52, 23], [25, 11], [180, -45], [59, -15]], [[290895, 48271], [-5, -12], [-38, -84], [0, 0], [-10, 60], [0, 0], [-82, -25], [0, 0], [-83, -110], [0, 0], [-16, 3], [-147, 28], [-9, 7], [-144, 112], [-107, 148], [-39, 55], [0, 0], [-5, 40], [-35, 277], [0, 0], [-34, 28], [-117, 97], [-198, 287], [-24, 191], [40, 246], [0, 0], [84, -12], [184, -41], [47, -121], [53, -136], [215, -338], [176, -130], [164, -184], [20, -38], [53, -99], [40, -173], [17, -76]], [[284071, 49476], [-55, -216], [0, 0], [-55, 54], [0, 0], [-146, 358], [0, 0], [100, -56], [88, -49], [68, -91]], [[289736, 50179], [65, -183], [-14, -238], [-41, -62], [-18, -27], [0, 0], [-53, 208], [12, 185], [-47, -14], [56, 76], [40, 55], [0, 0]], [[287266, 51067], [137, -70], [64, -32], [81, 94], [7, 8], [102, -16], [121, -121], [6, -207], [4, -163], [-39, -183], [-81, -142], [0, 0], [-72, -35], [-91, -264], [45, -71], [24, -39], [-9, -86], [-25, -46], [-162, -108], [-104, 6], [-247, 12], [0, 0], [-13, -84], [-16, -102], [-95, -134], [-19, -27], [-58, -54], [-90, -86], [-127, -48], [-38, -14], [0, 0], [-13, -1], [-135, -11], [-224, -166], [-188, -96], [-164, -3], [-143, -3], [-38, -6], [-57, -10], [-77, -3], [-81, -3], [0, 0], [-110, 57], [-85, 155], [0, 0], [-107, 42], [0, 0], [-22, 2], [-254, 23], [0, 0], [-73, 40], [-454, 251], [-69, 86], [-2, 6], [-10, 53], [31, 166], [34, 31], [27, 24], [892, -122], [0, 0], [360, 35], [78, 147], [66, 403], [39, 20], [24, 13], [50, -40], [30, -24], [-75, -69], [-65, -199], [55, -247], [158, -46], [394, 61], [237, 160], [67, 233], [243, 262], [0, 0], [195, -53], [0, 0], [8, 7], [46, 36], [29, 119], [-50, 349], [-57, 101], [-13, 23], [-39, 167], [-9, 39], [20, 16], [5, 5], [77, -6], [144, -12]], [[288236, 50392], [-5, -4], [-11, -9], [0, 0], [-173, 457], [1, 274], [-138, 310], [-176, 290], [-120, 118], [-42, 42], [-148, 93], [-217, 137], [-456, 403], [-160, 142], [-145, 159], [52, 28], [0, 0], [254, -218], [68, -58], [273, -152], [364, -276], [80, -60], [19, -28], [104, -148], [455, -456], [10, -10], [230, -323], [39, -45], [22, -194], [-17, -105], [-21, -129], [-142, -238]], [[286111, 52839], [-92, -38], [-216, 71], [-86, 104], [-11, 13], [130, 96], [55, 41], [0, 0], [89, -56], [82, -53], [33, -25], [18, -14], [5, -18], [11, -44], [-18, -77]], [[283410, 53484], [0, -6], [2, -18], [-20, 0], [-3, 0], [0, 0], [-108, -161], [-267, 10], [-196, 7], [0, 0], [-12, 23], [-23, 46], [11, 141], [269, 37], [0, 0], [143, -3], [91, -34], [113, -42]], [[98846, 75849], [-179, -56], [-135, -43], [-443, 68], [-411, -48], [-22, 56], [-10, 373], [-1, 57], [54, 123], [0, 0], [28, 8], [59, 19], [464, -34], [548, -40], [137, -61], [69, -32], [17, -71], [22, -91], [-96, -110], [-101, -118]], [[26691, 35819], [-1, 0], [-4, 0], [-3, 1], [-6, 1], [-4, 1], [-51, 22], [0, 0], [-259, 116], [-23, 11], [-3, 5], [-1, 1], [-1, 3], [0, 1], [-1, 2], [-29, 114], [-3, 12], [1, 65], [0, 0], [7, 6], [13, 11], [8, 7], [11, 9], [28, 13], [10, 4], [47, 16], [5, -1], [13, -1], [106, -66], [20, -12], [98, -144], [49, -72], [1, -3], [0, 0], [1, -1], [0, -1], [1, 0], [5, -10], [1, -2], [0, -1], [1, -1], [0, -1], [0, -1], [0, -1], [1, -1], [1, -3], [0, -23], [-1, -9], [-2, -19], [-4, -13], [-1, -3], [-7, -19], [-1, -1], [-1, -2], [-1, -3], [-1, -1], [-1, 0], [-1, -2], [-1, 0], [-2, -1], [-2, 0], [-3, -1], [-7, -1], [-3, -1]], [[30895, 24928], [-10, -4], [-1, 0], [0, 0], [-30, 23], [-7, 11], [-3, 8], [0, 21], [0, 5], [1, 7], [1, 3], [1, 1], [0, 0], [6, 2], [7, 2], [8, 1], [10, 2], [6, -1], [5, -2], [11, -3], [7, -10], [1, -38], [0, -2], [-1, -2], [-1, -7], [-2, -9], [-9, -8]], [[27994, 29125], [0, 0], [-2, 0], [-1, 0], [-3, 1], [0, 0], [-17, 7], [2, 5], [1, 3], [11, 9], [4, 2], [1, 1], [13, 7], [7, 1], [8, 1], [1, 0], [0, 0], [5, -1], [3, -1], [2, 0], [1, -1], [2, 0], [2, -1], [1, 0], [2, -1], [0, -2], [0, -1], [0, 0], [-2, -2], [0, 0], [-1, -1], [0, 0], [-11, -7], [-25, -18], [0, 0], [-4, -1]], [[26456, 29658], [-32, -6], [-2, -1], [0, 0], [-1, 1], [-1, 0], [-5, 6], [-7, 10], [-4, 5], [0, 2], [0, 4], [0, 1], [0, 0], [1, 3], [0, 0], [1, 3], [1, 2], [0, 0], [0, 0], [2, 2], [4, 4], [1, 1], [0, 0], [1, 1], [1, 1], [1, 1], [0, 0], [1, 1], [2, 1], [0, 0], [2, 1], [4, 1], [0, 0], [1, 1], [18, 5], [3, 1], [3, 0], [2, 0], [4, 0], [3, 0], [1, 0], [5, -1], [8, -8], [2, -2], [0, 0], [1, -3], [1, -2], [0, -1], [0, -1], [0, -1], [0, -1], [1, -5], [0, -1], [-1, -3], [0, -3], [0, -1], [0, -1], [-1, -1], [-1, -1], [0, -1], [-8, -7], [-2, -2], [-3, -1], [-1, -1], [-1, -1], [0, 0], [-1, 0], [-4, -2]], [[38984, 29963], [-2, 0], [0, 0], [0, 0], [-1, 0], [-1, 0], [-1, 1], [-3, 0], [-1, 1], [-1, 0], [0, 0], [-5, 3], [-14, 10], [0, 3], [-1, 1], [0, 5], [0, 1], [0, 0], [49, 32], [6, 4], [0, 0], [4, 1], [10, 3], [-3, -13], [-1, -5], [-26, -42], [-4, -3], [-2, -1], [-1, -1], [-1, 0], [-1, 0]], [[23512, 30501], [-13, -5], [0, 0], [-4, 3], [-1, 1], [-4, 4], [-4, 8], [-1, 2], [-1, 1], [0, 0], [9, 17], [1, 1], [3, 3], [1, 1], [1, 1], [0, 0], [1, 1], [0, 0], [1, 0], [3, 1], [12, -6], [1, -1], [0, 0], [1, -1], [0, -1], [1, -1], [1, -2], [1, -2], [0, -1], [1, -5], [0, -1], [0, -1], [0, -3], [-1, -2], [-2, -3], [-2, -3], [0, 0], [0, -1], [-2, -2], [-1, -1], [-2, -2], [0, 0]], [[24820, 30644], [-1, 0], [-1, -2], [0, 0], [-5, 9], [-5, 8], [-18, 50], [0, 1], [0, 7], [-1, 3], [0, 4], [0, 2], [0, 2], [0, 2], [0, 1], [0, 0], [1, 2], [1, 2], [1, 1], [1, 0], [1, 1], [0, 1], [2, 2], [0, 0], [0, 0], [0, 0], [5, -1], [1, 0], [1, 0], [1, 0], [1, -1], [0, 0], [1, 0], [2, -1], [2, -1], [1, -1], [1, 0], [1, -1], [13, -11], [9, -8], [3, -19], [-1, -9], [-3, -19], [-3, -8], [-1, -2], [-4, -6], [-3, -4], [0, -1], [-1, -1], [-1, -1], [-1, -1]], [[34102, 31530], [-4, -2], [-3, 1], [-5, 1], [-1, 0], [0, 0], [-1, 0], [-2, 0], [-1, 0], [-2, 1], [-3, 0], [-7, 3], [-4, 1], [-1, 0], [0, 1], [-1, 0], [-1, 0], [-3, 2], [-3, 4], [-1, 1], [-1, 2], [0, 1], [-1, 1], [-3, 6], [-1, 1], [0, 1], [-2, 8], [-4, 17], [0, 3], [0, 3], [1, 4], [1, 3], [0, 2], [1, 2], [2, 4], [0, 1], [0, 1], [2, 2], [0, 0], [4, 5], [1, 1], [0, 0], [0, 0], [2, 1], [3, 2], [1, 1], [3, 1], [3, 1], [2, 0], [1, 1], [3, 0], [0, 0], [1, 0], [0, 0], [1, 0], [2, -2], [2, -1], [0, 0], [35, -63], [0, -3], [-2, -9], [-6, -5], [-5, -4], [-1, 0], [-1, 0], [0, -1], [-1, 0]], [[34274, 33834], [-1, 0], [0, 1], [0, 1], [-1, 2], [0, 1], [-1, 28], [0, 23], [0, 1], [0, 2], [0, 1], [0, 0], [1, 2], [1, 0], [0, 0], [1, 1], [0, 0], [2, -1], [0, -1], [2, -1], [2, -2], [2, -1], [1, -1], [0, 0], [0, 0], [1, -1], [3, -2], [6, -5], [2, -1], [2, -3], [4, -5], [0, 0], [1, -1], [1, -2], [0, 0], [2, -4], [0, -1], [0, 0], [1, -3], [1, -3], [0, -2], [-1, -4], [-1, -1], [-4, -7], [-1, 0], [-4, -3], [-1, 0], [0, 0], [-1, -1], [0, 0], [-1, 0], [0, -1], [-3, -1], [0, 0], [-2, -2], [-2, 0], [-9, -3], [-2, 0], [-1, 0]], [[37786, 35116], [35, -62], [0, 0], [-47, 44], [-73, 68], [0, 0], [8, 5], [51, -36], [26, -19]], [[37260, 35282], [-1, 0], [0, 0], [0, 0], [-4, 4], [-79, 89], [-2, 3], [-1, 1], [-3, 3], [-1, 2], [1, 1], [0, 1], [1, 3], [0, 0], [1, 0], [2, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [2, -1], [4, -2], [2, -1], [3, -2], [2, -1], [1, -1], [2, -2], [0, 0], [2, -1], [2, -1], [1, -2], [0, 0], [5, -6], [1, -1], [0, 0], [2, -2], [2, -3], [0, 0], [1, -1], [0, 0], [2, -2], [11, -15], [3, -4], [13, -17], [3, -5], [15, -22], [0, -1], [3, -4], [0, -1], [0, -3], [0, -1], [0, -1], [0, -2], [-1, -2], [0, 0], [-2, 0]], [[33929, 35445], [0, 0], [-1, 0], [-1, 0], [-50, 67], [-12, 19], [-30, 50], [0, 0], [18, -15], [67, -96], [1, -1], [0, -1], [3, -4], [1, -1], [0, -2], [1, -2], [0, -1], [2, -6], [1, -1], [0, -1], [0, -1], [0, -4]], [[31982, 35832], [-3, -1], [-27, 12], [0, 0], [0, 2], [0, 1], [0, 3], [0, 0], [0, 0], [3, 11], [0, 1], [1, 2], [1, 1], [1, 1], [0, 0], [1, 1], [1, 1], [0, 0], [1, 1], [2, 2], [1, 1], [1, 0], [0, 0], [3, 1], [1, 0], [1, 0], [0, 0], [1, 0], [0, -1], [1, 0], [1, -2], [1, -1], [3, -4], [1, -2], [0, -1], [1, -4], [3, -15], [0, -2], [0, -4], [0, 0], [0, -2], [0, 0], [0, -2]], [[33945, 35919], [-1, -1], [-1, 3], [2, 5], [12, 20], [1, 2], [1, 1], [4, 4], [1, 1], [0, 0], [5, 6], [2, 2], [1, 1], [1, 1], [7, 6], [0, 1], [1, 0], [3, 3], [0, 0], [2, 2], [70, 50], [3, 1], [6, 3], [1, 1], [0, 0], [0, -1], [1, 0], [1, -1], [-1, -3], [0, -1], [0, 0], [-1, -1], [0, -1], [-3, -3], [-2, -2], [-2, -2], [-2, -2], [-2, -2], [0, 0], [-6, -5], [-1, -1], [-1, -1], [-4, -2], [-6, -5], [-2, -1], [-1, -1], [-1, -1], [-1, 0], [-1, -1], [-4, -3], [-10, -5], [-1, -1], [0, 0], [-4, -3], [-3, -2], [-2, 0], [-57, -57], [-1, -2], [-4, -2]], [[34104, 36031], [1, -4], [1, 0], [0, -1], [0, 0], [0, -1], [0, -5], [0, -2], [1, 0], [0, -4], [0, -2], [0, 0], [0, -3], [-2, -7], [-1, -3], [0, -2], [-3, -7], [-3, -12], [-1, 0], [0, -1], [-2, -3], [-1, -2], [-10, -14], [-4, -6], [-3, -4], [-12, -11], [-21, -20], [-75, -70], [-8, -4], [-11, -6], [-16, -4], [-2, -1], [-6, -1], [0, 0], [-1, 0], [-2, 0], [-3, 0], [-2, 1], [-2, 1], [-1, 0], [-1, 3], [0, 0], [-1, 1], [0, 0], [0, 2], [-1, 5], [0, 1], [0, 0], [0, 3], [0, 1], [1, 4], [0, 1], [0, 0], [3, 14], [1, 1], [0, 2], [3, 8], [2, 3], [0, 1], [1, 3], [1, 2], [1, 2], [1, 1], [0, 1], [0, 1], [1, 1], [1, 2], [0, 1], [1, 0], [1, 3], [1, 1], [1, 0], [0, 0], [1, 1], [1, -1], [0, 0], [1, -2], [0, -1], [0, 0], [0, -3], [-1, -2], [0, -1], [-1, -3], [0, -1], [-9, -18], [-7, -14], [0, -1], [-1, -2], [0, -3], [0, -6], [0, -1], [1, -1], [1, -1], [2, -1], [1, -1], [1, -1], [1, 0], [0, 0], [1, -1], [4, 0], [1, 1], [1, 0], [1, 0], [1, 0], [0, 0], [2, 0], [2, 0], [1, 1], [3, 1], [2, 0], [0, 1], [3, 1], [4, 1], [1, 1], [2, 1], [2, 1], [2, 1], [1, 0], [1, 0], [0, 1], [8, 5], [10, 8], [96, 89], [15, 23], [12, 21], [0, 1], [1, 1], [1, 5], [0, 2], [0, 1], [1, 3], [0, 2], [0, 2], [0, 3], [-1, 4], [0, 1], [-2, 5], [0, 1], [-2, 2], [0, 1], [0, 0], [-2, 0], [0, 0], [-1, 0], [-1, 0], [-3, 1], [-1, 0], [-1, -1], [-1, 0], [-1, 0], [-3, 0], [-1, 0], [-3, 1], [-2, 0], [-1, 1], [-1, 0], [-1, 1], [0, 0], [0, 0], [0, 1], [0, 1], [0, 1], [0, 0], [2, 1], [1, 0], [2, 0], [1, 0], [2, 0], [4, 0], [1, 0], [5, -1], [2, 0], [0, 0], [2, 0], [1, -1], [3, -1], [3, -1], [1, 0]], [[32429, 36125], [-2, -2], [-3, 1], [-1, 1], [0, 0], [-73, 72], [0, 3], [1, 1], [0, 0], [1, 0], [0, 0], [1, 0], [2, 0], [10, -3], [1, 0], [2, -1], [1, 0], [7, -4], [0, 0], [1, -1], [0, 0], [1, 0], [5, -3], [7, -5], [4, -4], [5, -6], [21, -27], [1, -2], [2, -2], [1, -1], [0, -1], [1, -2], [1, -1], [0, 0], [1, -3], [0, 0], [2, -3], [0, -1], [0, -1], [0, -1], [1, -2], [0, -1], [-1, -1]], [[26144, 36147], [-5, -5], [0, 0], [-5, 1], [-4, 0], [-6, 0], [-5, 1], [-6, 2], [-2, 2], [-3, 2], [-8, 7], [-39, 44], [-3, 5], [-1, 2], [-8, 17], [0, 0], [-1, 3], [-1, 4], [0, 1], [-1, 3], [0, 6], [-1, 1], [1, 2], [2, 4], [0, 2], [1, 0], [1, 2], [5, 4], [43, 5], [38, 5], [0, 0], [21, -8], [26, -11], [0, 0], [-9, -22], [-4, -11], [-19, -56], [-3, -6], [-4, -6]], [[33392, 36369], [0, -1], [-1, 0], [-1, 0], [0, 0], [-1, 0], [-10, 15], [-23, 31], [0, 0], [0, 0], [5, 4], [7, 0], [6, -1], [5, -2], [2, 0], [0, -1], [0, 0], [2, 0], [2, -2], [0, -1], [2, -2], [1, -2], [2, -2], [0, -1], [2, -4], [0, -1], [0, -1], [1, 0], [0, -2], [0, -2], [1, -3], [0, -2], [0, -1], [1, -5], [0, -2], [0, -2], [-1, -3], [0, -1], [0, -2], [0, -3], [-2, -1]], [[29818, 36365], [-2, -1], [-1, 0], [0, 0], [-6, 2], [0, 0], [0, 0], [-1, 1], [-1, 1], [-2, 1], [-1, 1], [0, 0], [-8, 19], [-7, 16], [0, 2], [0, 4], [0, 2], [0, 1], [0, 1], [0, 3], [2, 7], [0, 1], [1, 1], [0, 2], [0, 0], [3, 0], [3, 0], [1, -2], [0, 0], [1, -1], [9, -24], [13, -32], [0, -1], [0, 0], [-1, -3], [-1, -1], [-2, 0]], [[25124, 37002], [-4, -3], [-31, 36], [-1, 2], [0, 0], [-1, 2], [0, 2], [-1, 3], [1, 2], [2, 3], [4, 3], [1, 1], [1, 1], [20, 14], [10, 8], [1, 0], [1, 1], [1, 1], [1, -1], [2, 0], [12, -13], [0, 0], [1, -15], [-8, -18], [0, 0], [0, 0], [-12, -29]], [[24732, 36906], [-14, -11], [-2, 1], [-4, 1], [-12, 8], [0, 0], [-8, 55], [-10, 75], [0, 21], [2, 15], [3, 19], [0, 1], [0, 1], [1, 3], [0, 1], [1, 2], [1, 2], [1, 0], [0, 1], [0, 1], [1, 2], [1, 1], [0, 0], [2, 1], [7, 5], [0, 1], [1, 0], [2, 1], [0, 0], [1, 0], [1, 0], [0, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, -1], [8, -7], [9, -7], [16, -44], [17, -49], [-19, -81], [-9, -15], [-1, -1], [0, 0], [0, 0], [-2, -2]], [[31128, 37076], [-1, -3], [0, 0], [-35, 15], [-19, 8], [0, 0], [0, 1], [0, 0], [0, 3], [-1, 2], [1, 3], [0, 0], [0, 0], [0, 3], [2, 4], [0, 0], [0, 0], [1, 1], [1, 2], [0, 1], [1, 0], [1, 1], [1, 3], [3, 0], [5, 2], [1, 0], [3, 0], [1, -1], [4, 0], [0, 0], [1, 0], [1, 0], [1, -1], [2, 0], [6, -2], [1, -1], [6, -6], [0, 0], [2, -2], [2, -3], [7, -10], [1, -2], [2, -2], [0, 0], [0, 0], [1, -6], [0, -1], [0, -1], [0, -1], [0, -3], [0, -2], [-1, -1], [0, -1], [-1, 0]], [[25085, 37059], [-3, -1], [-7, -4], [-2, 0], [0, 0], [0, 1], [-1, 0], [0, 0], [-1, 1], [-1, 1], [-1, 3], [-1, 2], [-2, 7], [0, 1], [0, 2], [0, 1], [0, 1], [1, 10], [1, 5], [2, 13], [4, 27], [1, 4], [0, 2], [4, 12], [2, 3], [1, 2], [1, 0], [2, 1], [2, 2], [1, 1], [13, 0], [3, 0], [2, 0], [1, 0], [1, 0], [1, 0], [0, 0], [1, 0], [1, 0], [0, 0], [2, -1], [1, -1], [1, 0], [0, 0], [1, -1], [1, 0], [0, 0], [6, -7], [1, -3], [1, 0], [0, -1], [1, -1], [0, 0], [0, -1], [1, -2], [0, 0], [0, -1], [0, -2], [0, -2], [0, -1], [-2, -33], [-11, -18], [-29, -22]], [[31657, 37216], [5, -3], [1, -1], [1, -1], [8, -7], [27, -31], [1, -1], [0, 0], [1, 0], [0, -1], [7, -7], [0, -1], [0, 0], [2, -3], [1, -2], [0, -2], [1, -3], [0, -1], [0, -2], [0, 0], [-1, 0], [-1, -1], [-1, -1], [0, 0], [-2, 2], [0, 1], [0, 0], [-1, 0], [-1, 2], [0, 1], [0, 0], [-5, 8], [-6, 7], [-4, 5], [-11, 13], [-13, 13], [-3, 3], [-2, 2], [-4, 4], [-5, 4], [0, 0], [-2, 0], [-2, 1], [-2, 1], [-1, 0], [-1, 0], [-2, 0], [-3, 0], [-2, 0], [-1, 0], [-1, 1], [0, -1], [-1, 0], [-2, 0], [-1, 0], [-1, -1], [-1, 0], [-2, -1], [-9, -3], [-14, -5], [-2, -1], [-16, -4], [-1, -1], [-1, 0], [0, 0], [-6, 0], [-3, 0], [-3, 1], [-2, 0], [-1, 0], [-2, 0], [-4, 1], [-2, 0], [-1, 0], [-2, 1], [-1, 0], [-1, 2], [1, 2], [0, 1], [2, 1], [1, 1], [0, 0], [1, 0], [4, 1], [2, 0], [2, 0], [2, 0], [1, 0], [1, 0], [1, 0], [1, 0], [0, 0], [2, 0], [4, 0], [1, 1], [3, 0], [8, 0], [7, 1], [1, 0], [0, 0], [1, 0], [3, 1], [3, 0], [10, 4], [0, 0], [1, 0], [4, 1], [5, 3], [3, 1], [0, 0], [1, 0], [4, 2], [0, 1], [2, 0], [5, -1], [1, 0], [1, -1], [1, -1], [2, -1], [4, -2], [5, -3]], [[31474, 37243], [64, -32], [5, -3], [0, 0], [0, 1], [1, 0], [0, 0], [0, 1], [1, -1], [2, 0], [0, 0], [1, -1], [1, -3], [0, -1], [0, -3], [0, -1], [0, 0], [-1, -1], [0, 0], [-2, -2], [-2, -3], [-1, 0], [-2, -1], [-2, 0], [-3, 1], [-8, 0], [-1, 0], [-4, 2], [-12, 4], [-1, 1], [-6, 3], [0, 0], [-4, 2], [-10, 7], [-50, 35], [-24, 18], [0, 0], [58, -23]], [[24704, 37155], [-7, -1], [-3, 0], [-2, 1], [-2, 1], [-42, 38], [-8, 7], [-5, 6], [0, 1], [0, 0], [-1, 3], [0, 10], [0, 3], [4, 13], [1, 2], [7, 19], [0, 0], [5, 4], [9, 8], [1, 1], [2, 1], [0, 0], [1, 0], [3, 0], [1, 0], [2, 0], [1, -1], [3, -1], [1, 0], [1, 0], [0, -1], [2, 0], [11, -1], [14, -6], [3, -2], [3, -1], [6, -6], [2, -2], [10, -10], [3, -6], [4, -5], [0, -2], [1, -1], [-1, -4], [0, -3], [0, -3], [-11, -39], [-8, -18], [-1, -1], [0, 0], [-2, -2], [-1, -1], [-1, 0], [-3, -1], [-1, 0], [0, 0], [-2, 0]], [[24471, 37318], [-3, -3], [-7, 4], [0, 0], [-1, 2], [-15, 66], [1, 3], [1, 1], [1, 1], [0, 0], [0, 0], [0, 0], [11, 2], [3, 0], [0, 0], [0, 0], [10, -7], [8, -6], [1, -3], [3, -9], [0, -19], [0, -13], [-3, -7], [-10, -12]], [[31324, 37372], [-1, -2], [0, 0], [-3, 0], [0, 0], [-1, 0], [-61, 29], [0, 0], [-2, 7], [-1, 3], [27, -6], [1, 0], [2, 0], [2, -1], [2, -1], [2, -1], [2, -1], [7, -5], [1, 0], [0, 0], [1, -1], [0, 0], [7, -5], [3, -2], [4, -3], [6, -5], [1, -2], [0, -1], [1, -2], [0, -1], [0, 0], [0, 0]], [[24419, 37639], [-7, -2], [-31, -9], [-1, 0], [-1, 0], [0, 0], [-1, 3], [-2, 10], [1, 3], [0, 1], [0, 3], [1, 2], [0, 1], [0, 1], [1, 2], [0, 2], [1, 0], [0, 1], [2, 1], [2, 2], [1, 0], [0, 1], [2, 1], [0, 0], [0, 0], [2, 1], [2, 0], [1, 0], [0, 0], [3, -1], [1, 0], [0, 0], [20, -13], [4, -3], [0, 0], [2, -3], [0, 0], [0, -1], [0, -2], [0, 0], [-1, 0], [-2, -1], [0, 0]], [[29148, 37691], [-8, -2], [-11, -2], [-2, 0], [-5, 1], [-2, 0], [-2, 1], [-1, 1], [-4, 1], [0, 0], [-1, 1], [-1, 1], [-5, 5], [-2, 2], [-15, 28], [-1, 7], [-1, 4], [0, 2], [-1, 2], [3, 5], [0, 1], [0, 0], [1, 1], [1, 2], [0, 0], [1, 2], [3, 2], [1, 2], [0, 0], [1, 1], [1, 1], [4, 3], [2, 1], [0, 0], [2, 2], [2, 1], [1, 1], [2, 0], [1, 1], [7, 2], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, 0], [8, -1], [1, 0], [2, -1], [5, -3], [0, 0], [1, -1], [1, 0], [1, -2], [2, -3], [2, -3], [2, -2], [0, 0], [2, -3], [8, -18], [1, -2], [4, -9], [3, -10], [1, -5], [0, -1], [-1, -2], [0, -2], [-1, -1], [-2, -3], [-1, -1], [-3, -1], [0, 0], [-3, -2], [-9, -3], [-1, -1]], [[32444, 37736], [-1, 0], [0, 0], [0, 0], [-2, 3], [1, 3], [1, 3], [6, 29], [3, 10], [5, 17], [4, 11], [1, 4], [13, 26], [8, 16], [2, 0], [2, 1], [0, 0], [0, -1], [1, -1], [0, -1], [0, -5], [0, -1], [0, -1], [-1, -1], [0, -1], [0, -2], [-1, -2], [-37, -102], [-1, -2], [-2, -2], [0, -1], [-2, 0]], [[29770, 37857], [101, -267], [0, -2], [0, 0], [0, -1], [1, -2], [1, -3], [0, -1], [0, -2], [1, -2], [0, -1], [0, -2], [0, -1], [0, -1], [0, 0], [0, -1], [0, 0], [0, -1], [0, -1], [0, 0], [-1, 0], [-2, 0], [0, 1], [-1, 0], [-30, 37], [-9, 13], [-3, 8], [-7, 24], [-31, 114], [-12, 9], [-79, 60], [0, 0], [-2, -1], [-2, -2], [-1, 0], [0, 0], [0, 0], [-2, 0], [0, 0], [0, 2], [1, 2], [1, 3], [2, 2], [1, 2], [1, 1], [1, 1], [1, 2], [3, 2], [2, 0], [0, 1], [1, 0], [6, 4], [6, 3], [14, 7], [5, 2], [2, 1], [0, 0], [3, 0], [2, 1], [4, 0], [0, 0], [1, 1], [4, 0], [2, 0], [3, 0], [3, -1], [1, 0], [7, -10], [1, -1], [0, 0]], [[34544, 37920], [-36, -10], [-7, 1], [-2, 1], [0, 0], [-1, 1], [-10, 12], [-1, 1], [-1, 2], [-1, 2], [0, 1], [0, 1], [0, 6], [0, 1], [0, 3], [1, 1], [0, 1], [0, 3], [1, 2], [0, 0], [0, 0], [3, 3], [1, 1], [1, 0], [1, 1], [2, 1], [1, 1], [8, 2], [9, 4], [1, 0], [0, 0], [4, 2], [1, 0], [0, 0], [23, -1], [1, 0], [0, 0], [3, 0], [1, 0], [1, -1], [2, 0], [1, 0], [1, -1], [0, 0], [3, -2], [1, -1], [0, -1], [0, 0], [0, -3], [0, -1], [1, -4], [0, -3], [-1, -1], [-1, -4], [-1, -1], [-8, -16], [-2, -3], [0, -1], [0, 0]], [[32564, 37958], [-15, -14], [-11, -10], [0, 0], [-2, 2], [0, 1], [0, 0], [0, 0], [0, 1], [0, 1], [1, 2], [1, 1], [1, 1], [11, 22], [1, 1], [1, 2], [30, 24], [1, 1], [5, 1], [0, 0], [0, 0], [1, -1], [0, -1], [0, -1], [-1, -4], [0, -2], [0, -1], [0, 0], [-1, -2], [0, -1], [-1, -1], [-22, -22]], [[32648, 37957], [-1, -1], [-5, 5], [-28, 27], [0, 2], [0, 1], [0, 4], [0, 2], [0, 0], [2, 2], [1, 1], [2, 1], [10, -1], [5, -1], [2, -1], [1, 0], [1, -1], [0, 0], [1, 0], [2, -1], [1, 0], [0, 0], [0, -1], [1, 0], [1, -1], [2, -4], [8, -19], [-2, -8], [-1, -2], [0, -2], [-1, -1], [0, 0], [-1, -1], [-1, 0]], [[27493, 38068], [-1, -1], [-2, -1], [-1, 1], [-1, 0], [-1, 0], [-1, 0], [-4, 2], [-1, 0], [0, 0], [-1, 1], [-2, 1], [-3, 2], [-2, 1], [-6, 5], [-2, 3], [-4, 9], [0, 1], [0, 2], [-1, 5], [0, 1], [8, 38], [0, 0], [4, -3], [11, -10], [27, -38], [0, 0], [-1, -1], [0, -1], [0, 0], [-1, -3], [-3, -4], [-2, -2], [0, -1], [0, -1], [-2, -2], [-1, 0], [-1, -1], [-4, -2], [-2, -1]], [[30221, 38145], [36, -124], [0, 0], [-85, 147], [1, 1], [11, 6], [1, 0], [2, 0], [1, 0], [0, 0], [2, 0], [3, -1], [1, 0], [1, 0], [2, -1], [7, -3], [10, -5], [5, -15], [1, -3], [1, -2], [0, 0]], [[30622, 38192], [-2, -2], [-1, 0], [-1, 1], [-2, 1], [-8, 5], [0, 0], [-2, 3], [-2, 5], [-1, 4], [0, 1], [0, 4], [0, 1], [0, 1], [1, 2], [0, 0], [0, 1], [2, 3], [1, 3], [1, 0], [0, 0], [2, 1], [0, 1], [3, 2], [1, 0], [1, 0], [0, 0], [3, 0], [1, 0], [0, 0], [3, -1], [0, 0], [2, -1], [0, 0], [1, -1], [2, -2], [1, -1], [0, -1], [1, -1], [0, -2], [2, -5], [0, -2], [1, -1], [0, -1], [0, -1], [0, -4], [0, -1], [0, -1], [-5, -6], [-1, -2], [-1, 0], [0, -1], [-1, -1], [0, 0], [-1, 0], [-1, -1]], [[29909, 38502], [7, -5], [0, 0], [-23, 2], [-16, 1], [-7, 2], [-8, 1], [-1, 0], [-2, 1], [-16, 6], [-1, 1], [-2, 1], [-2, 1], [-4, 4], [-9, 10], [-1, 1], [0, 1], [1, 3], [0, 0], [1, 1], [0, 0], [2, 1], [81, -32]], [[29263, 38605], [0, 0], [-1, -2], [0, 0], [-18, 73], [1, 0], [1, 1], [4, 1], [3, 1], [17, -8], [2, -2], [1, 0], [1, -1], [0, 0], [1, -2], [0, -1], [0, 0], [-1, -14], [-2, -17], [-5, -14], [-3, -11], [-1, -3], [0, -1]], [[27153, 39150], [-1, 0], [-3, -1], [-4, 0], [-1, 0], [-21, 21], [-22, 22], [-1, 2], [0, 0], [0, 0], [2, 3], [0, 1], [1, 0], [1, 2], [1, 0], [3, -1], [0, 0], [3, 0], [2, 0], [3, 0], [16, -5], [0, 0], [1, 0], [3, -1], [8, -3], [0, 0], [4, -1], [2, -2], [2, -2], [1, -1], [4, -2], [0, -2], [1, -3], [2, -2], [1, -3], [-1, -7], [0, -3], [0, 0], [0, -2], [-1, -1], [0, -1], [0, 0], [-1, -2], [-1, -2], [0, -1], [-1, -1], [-1, -1], [-1, 0], [0, -1], [-1, 0]], [[30097, 39356], [-1, -1], [0, 0], [-14, 11], [0, 2], [-2, 9], [-1, 3], [0, 1], [0, 1], [1, 9], [1, 8], [0, 2], [0, 1], [21, 40], [7, 12], [0, 0], [13, 7], [1, 0], [-5, -28], [-10, -64], [-1, -2], [0, 0], [0, -2], [-2, -2], [-6, -6], [-1, -1], [0, 0], [-1, 0]], [[30183, 39478], [-25, 0], [-17, 0], [-3, 2], [0, 3], [0, 1], [1, 2], [0, 1], [0, 0], [1, 2], [1, 1], [1, 1], [0, 1], [1, 0], [17, 9], [2, 0], [5, 0], [3, 0], [2, 0], [4, -2], [1, -1], [0, 0], [7, -14], [-1, -6]], [[29248, 39643], [0, 0], [-1, 0], [-2, 0], [-36, 28], [-1, 1], [-2, 3], [0, 0], [2, 1], [2, 0], [2, 2], [0, 0], [1, 0], [2, 0], [2, 1], [2, 0], [1, 0], [1, 0], [1, 1], [2, -1], [2, 0], [0, 0], [15, -3], [3, -5], [2, -2], [2, -2], [0, -1], [1, 0], [0, -9], [0, -6], [0, -1], [0, -1], [-1, -3], [0, -3]], [[30415, 39690], [-32, -25], [-24, -18], [0, 0], [10, 54], [18, 7], [9, 4], [8, 2], [12, 4], [2, 0], [2, 0], [1, -1], [1, 0], [0, 0], [2, -6], [0, -1], [-1, -4], [-1, -5], [-1, -2], [-1, -2], [0, 0], [0, -1], [-1, -1], [-4, -5], [0, 0], [0, 0]], [[29575, 39744], [-1, 0], [-49, 28], [4, 5], [12, 5], [2, 0], [2, 0], [1, 0], [6, 1], [1, 0], [1, 0], [2, 0], [0, 0], [1, -1], [0, 0], [0, 0], [16, -9], [0, -1], [1, -2], [1, -5], [1, -1], [0, 0], [3, -11], [0, -1], [-1, -2], [0, -2], [-1, -3], [-2, -1]], [[35834, 44020], [-2, -1], [-16, -11], [-3, 2], [-4, 2], [-15, 10], [-5, 4], [-3, 4], [-1, 2], [-2, 5], [-1, 2], [2, 102], [0, 1], [1, 1], [0, 2], [1, 1], [0, 0], [1, 2], [3, 0], [2, 1], [0, 0], [1, 0], [3, 1], [8, -3], [7, -4], [9, -6], [9, -8], [9, -8], [1, -2], [11, -22], [2, -25], [-1, -2], [0, -1], [0, 0], [0, -1], [-3, -15], [0, -2], [-13, -28], [0, -1], [0, -1], [-1, -1], [0, 0]], [[35666, 44588], [0, 0], [-2, -1], [-2, 0], [-1, 1], [-4, 3], [-6, 4], [0, 1], [-1, 1], [-1, 3], [-3, 5], [-2, 4], [-5, 15], [-1, 1], [0, 1], [-1, 3], [0, 1], [0, 0], [-1, 2], [0, 3], [0, 1], [0, 0], [3, 17], [2, 2], [1, 2], [6, 3], [1, 1], [0, 0], [0, 0], [1, 0], [0, -1], [0, 0], [0, 0], [0, -1], [0, -1], [0, -3], [13, -45], [4, -19], [-1, -2], [0, -1], [0, 0]], [[35455, 44659], [-46, -57], [0, 0], [-10, 23], [-6, 14], [4, 27], [4, 29], [1, 3], [0, 0], [0, 1], [0, 1], [0, 1], [5, 5], [7, 9], [12, 9], [14, 4], [1, 0], [1, 0], [1, -1], [1, 0], [1, -1], [0, -1], [0, -1], [0, 0], [4, -7], [7, -10], [-1, -30], [0, -18], [0, 0]], [[35561, 44819], [-110, -57], [-41, 13], [-6, 4], [-4, 3], [-19, 18], [-12, 34], [-3, 15], [-2, 12], [4, 6], [3, 5], [9, 7], [7, 5], [54, 28], [0, 0], [2, 2], [1, 1], [1, 1], [1, 1], [2, 2], [1, 0], [0, 0], [13, 9], [6, 5], [0, 0], [23, 0], [1, 2], [0, 1], [1, 1], [1, 0], [0, 1], [2, 1], [1, 1], [0, 0], [0, 0], [5, 0], [15, -1], [0, 0], [4, -3], [20, -14], [61, -41], [0, 0], [-20, -31], [-21, -31]], [[34605, 45213], [-18, -16], [-12, 9], [-10, 8], [-2, 2], [-4, 6], [-13, 19], [-9, 13], [-5, 7], [-2, 4], [-6, 23], [0, 0], [27, 41], [3, 3], [6, 4], [10, 5], [2, 1], [1, 0], [6, -3], [3, -3], [3, -2], [18, -14], [8, -21], [4, -12], [-2, -21], [-7, -51], [0, 0], [-1, -1], [0, 0], [0, -1]], [[35002, 45772], [-3, -1], [0, 0], [-1, 1], [-5, 3], [-1, 0], [-1, 1], [-2, 2], [-2, 2], [-12, 12], [0, 0], [-3, 3], [-1, 1], [0, 2], [0, 2], [0, 4], [0, 4], [0, 2], [0, 0], [1, 3], [1, 6], [0, 0], [0, 0], [0, 2], [0, 1], [0, 0], [0, 2], [0, 0], [1, 2], [1, 7], [12, 18], [3, 5], [11, 6], [5, 1], [15, 2], [1, 0], [0, 0], [1, 0], [1, -1], [1, 0], [2, -1], [8, -3], [3, -1], [14, -7], [12, -6], [3, -6], [9, -29], [1, -5], [0, -1], [-1, -11], [0, -4], [-2, -5], [-2, -2], [0, -1], [-1, 0], [-29, -4], [-40, -6]], [[34628, 45790], [-138, -47], [-2, 1], [-1, 0], [-3, 3], [0, 1], [-1, 0], [-10, 16], [-12, 17], [-7, 26], [-10, 34], [0, 1], [-2, 8], [-1, 3], [-1, 9], [-1, 1], [-1, 6], [0, 0], [0, 1], [0, 2], [0, 3], [-1, 4], [0, 2], [1, 3], [0, 2], [5, 27], [5, 9], [2, 3], [14, 8], [7, 3], [6, 2], [21, 7], [2, 1], [0, 0], [0, 0], [1, 0], [3, 0], [0, 0], [0, -2], [1, -1], [0, 0], [1, -1], [87, -43], [2, -6], [33, -103]], [[34034, 46782], [-4, -4], [-3, 1], [-5, 0], [0, 1], [-1, 0], [-4, 3], [-3, 5], [-1, 1], [0, 3], [-1, 5], [-1, 12], [-1, 1], [0, 6], [8, 44], [3, 4], [2, 2], [9, 4], [20, 8], [18, 8], [1, 0], [2, 1], [0, 0], [1, -1], [1, 0], [1, -1], [1, -2], [3, -5], [2, -3], [0, 0], [0, -9], [-43, -76], [-3, -5], [-2, -3], [0, 0]], [[34134, 46910], [-12, -3], [0, 1], [-2, 1], [-1, 1], [-4, 3], [-2, 2], [0, 1], [2, 2], [1, 2], [1, 0], [0, 0], [20, 18], [9, 7], [1, 0], [1, 0], [0, 0], [1, 0], [0, 0], [0, 0], [4, -4], [2, -3], [2, -1], [0, -1], [-1, -2], [0, -1], [-7, -9], [-8, -9], [0, -1], [-1, 0], [-1, -2], [0, 0], [-5, -2]], [[294178, 45414], [100, -111], [53, -27], [57, -30], [50, 4], [68, 5], [181, 13], [20, -9], [20, -8], [157, -141], [3, -3], [188, -271], [3, -9], [2, -10], [1, -1], [0, -1], [7, -16], [2, -5], [2, -3], [2, -4], [1, -1], [1, -1], [1, -1], [3, -2], [3, -3], [1, 0], [0, -1], [-316, -48], [-544, 95], [-3, 1], [0, 0], [-5, 2], [-1, 1], [0, 0], [0, 0], [-5, 4], [-14, 13], [-53, 65], [-55, 77], [-7, 18], [-3, 9], [-59, 159], [-6, 153], [0, 16], [1, 21], [1, 1], [0, 0], [3, 11], [2, 8], [1, 3], [0, 0], [0, 0], [1, 2], [1, 2], [7, 8], [5, 5], [6, 6], [56, 37], [39, -13], [15, -14], [7, -6]], [[300437, 42800], [3, -7], [1, -3], [0, -1], [-2, -5], [0, 0], [0, -1], [-1, -1], [-7, -7], [-3, -2], [-22, -19], [-1, -1], [-1, -1], [-2, 0], [-2, -1], [-1, 1], [-3, 1], [0, 0], [0, 4], [-1, 2], [-1, 5], [0, 4], [0, 3], [0, 1], [0, 1], [8, 18], [1, 3], [5, 10], [15, 7], [1, 0], [0, 0], [2, -1], [1, 0], [0, 0], [10, -10]], [[300309, 42824], [73, -32], [13, -40], [5, -13], [18, 0], [3, -1], [1, -1], [1, -1], [1, -2], [1, -2], [1, -2], [1, -1], [0, 0], [0, 0], [1, -1], [3, -13], [1, -2], [0, -1], [0, 0], [0, -3], [-1, -2], [-3, -2], [-1, -1], [-3, -2], [0, 0], [-2, -1], [-13, -5], [-1, 0], [-69, -13], [-6, 3], [-20, 11], [-17, 17], [-10, 11], [-21, 57], [1, 10], [0, 16], [5, 10], [8, 14], [0, 0], [30, -8]], [[294489, 42916], [24, -17], [172, -124], [10, -48], [20, -100], [0, 0], [-307, 194], [-2, 2], [-11, 7], [-9, 13], [-18, 25], [-8, 11], [-1, 2], [-5, 10], [-11, 20], [0, 13], [0, 4], [0, 3], [1, 2], [10, 15], [2, 3], [1, 1], [18, 20], [1, 1], [0, 0], [0, 0], [2, 1], [1, 1], [2, 2], [2, 1], [1, 0], [0, 0], [1, 0], [1, 0], [1, 0], [1, 0], [1, -1], [6, 0], [0, 0], [94, -61]], [[294195, 43188], [0, 0], [19, -9], [5, -2], [1, -1], [2, -1], [2, -1], [0, 0], [23, -21], [0, -1], [1, -1], [1, -1], [1, -2], [2, -6], [1, -2], [0, 0], [-2, -2], [0, -1], [0, -1], [-3, 0], [-15, 3], [-3, 1], [-7, 2], [-10, 3], [-2, 0], [-1, 1], [-2, 2], [0, 1], [-1, 0], [-2, 3], [-3, 3], [-8, 10], [-10, 13], [-1, 1], [-1, 1], [-2, 3], [-2, 2], [0, 0], [1, 1], [3, 2], [0, 0], [0, 0], [6, 0], [6, 0], [1, 0]], [[300022, 43243], [9, -1], [1, -1], [1, -1], [4, -5], [4, -4], [6, -21], [0, 0], [-8, -37], [-3, -8], [-6, -15], [-28, -11], [-1, 0], [0, 0], [-1, 0], [0, 0], [-14, 12], [0, 0], [-2, 2], [-16, 27], [-2, 8], [0, 0], [0, 7], [0, 14], [4, 13], [14, 25], [6, 3], [4, 2], [0, 0], [21, -7], [7, -2], [0, 0]], [[296521, 43650], [-1, 0], [0, 0], [-3, 2], [-7, 5], [-1, 4], [0, 1], [-1, 1], [6, 26], [1, 2], [0, 0], [0, 0], [1, 2], [0, 1], [0, 0], [2, 3], [1, 0], [1, 1], [1, 1], [5, 2], [4, -1], [0, 0], [1, -1], [2, -1], [3, -2], [1, -1], [1, -2], [2, -4], [1, -1], [0, -2], [1, -5], [1, -3], [0, -2], [0, -1], [0, 0], [0, -1], [0, -2], [-5, -14], [-2, -3], [-1, 0], [-3, -2], [-2, -1], [0, 0], [-9, -2]], [[299613, 43714], [0, -1], [0, -2], [1, -3], [0, -2], [-1, -2], [-1, -4], [-1, -2], [-1, -3], [-1, -3], [-4, -6], [-3, -5], [-1, -2], [-7, -5], [-1, -1], [-1, -1], [0, 0], [-1, 0], [0, -1], [-12, -5], [-2, -1], [-9, 6], [-9, 6], [1, 2], [0, 1], [1, 2], [0, 0], [1, 1], [0, 1], [1, 0], [1, 1], [1, 1], [2, 2], [4, 4], [5, 4], [22, 18], [5, 2], [0, 0], [2, 1], [1, 0], [0, 0], [2, 0], [5, -3]], [[299354, 43804], [0, 0], [-1, 0], [-2, 0], [-2, 2], [-1, 0], [0, 1], [2, 7], [2, 5], [0, 1], [0, 1], [1, 1], [0, 0], [2, 6], [7, 17], [1, 1], [1, 3], [1, 1], [0, 0], [4, 3], [1, 1], [0, 0], [0, 0], [2, -2], [2, -2], [1, -1], [5, -11], [0, 0], [0, 0], [1, -1], [0, -2], [0, 0], [0, -1], [0, -2], [0, 0], [-2, -7], [-1, -2], [-2, -2], [0, -1], [-2, -2], [-1, -1], [-7, -5], [-12, -8]], [[299584, 43859], [12, -1], [48, -5], [3, -1], [1, -1], [1, 0], [2, -1], [4, -2], [1, 0], [0, 0], [1, -1], [1, -1], [3, -4], [1, -1], [0, 0], [-1, -5], [-2, -11], [-16, -26], [-9, -15], [-14, -16], [-42, -52], [-9, -4], [0, 0], [-17, 6], [-14, -5], [-165, -67], [-3, 0], [-3, 0], [-1, 0], [-2, 0], [-2, 0], [-16, 2], [-1, 0], [-2, 1], [-1, 1], [-3, 2], [0, 0], [-3, 7], [-13, 32], [0, 1], [0, 1], [-1, 1], [0, 2], [0, 2], [-1, 1], [1, 7], [1, 10], [4, 19], [1, 6], [1, 2], [2, 3], [1, 1], [0, 2], [0, 0], [30, 37], [55, 43], [26, 21], [113, 11], [28, -2]], [[299356, 44132], [-2, 1], [-2, 0], [-3, 4], [-2, 2], [0, 2], [-1, 1], [0, 1], [-1, 4], [0, 1], [1, 2], [0, 4], [1, 1], [0, 4], [1, 7], [2, 2], [0, 2], [1, 1], [9, 6], [1, 0], [2, 0], [0, 0], [1, -1], [0, -1], [2, -1], [6, -9], [1, -1], [0, -2], [1, -3], [1, -3], [0, 0], [0, -1], [-1, -9], [-1, -3], [-1, -2], [-1, -2], [-8, -4], [-7, -3]], [[299817, 44283], [-1, 0], [-12, -3], [-2, -1], [0, 0], [-6, -1], [0, 0], [-1, 0], [-2, 0], [0, 2], [0, 16], [1, 4], [1, 1], [2, 2], [1, 1], [1, 0], [1, 1], [1, 0], [1, 0], [2, 1], [9, 4], [2, 1], [0, 0], [13, 2], [1, 0], [2, 0], [1, 0], [1, 1], [2, 0], [1, 0], [0, 0], [1, -1], [2, -2], [1, -1], [0, -2], [0, -3], [0, 0], [0, -1], [-2, -3], [0, 0], [0, -1], [-1, -1], [-1, -1], [-1, -1], [-18, -14]], [[295922, 44336], [1, -1], [0, 0], [0, 0], [1, -3], [0, -1], [0, -1], [0, -4], [0, -2], [-2, -8], [-1, -2], [-2, -6], [-1, -2], [0, -1], [-1, -1], [-6, -10], [-8, -9], [-4, -5], [0, -1], [-1, 0], [-1, -2], [-2, 2], [-1, 0], [-1, 1], [-2, 0], [-1, 1], [0, 0], [-6, 3], [0, 0], [0, 0], [-2, 5], [-11, 34], [-4, 13], [1, 5], [2, 6], [4, 21], [1, 7], [1, 1], [0, 0], [2, 3], [4, 4], [3, 0], [4, 0], [2, 1], [1, 0], [1, 0], [0, 0], [8, -7], [0, 0], [1, -1], [1, -2], [3, -4], [3, -4], [4, -7], [4, -9], [5, -14]], [[295597, 44393], [63, -44], [70, -48], [426, -213], [85, -90], [11, -13], [52, -80], [41, -63], [0, 0], [9, -41], [25, -113], [-56, -2], [-67, -2], [-88, -3], [-106, 33], [-34, 11], [-14, 6], [-22, 8], [-29, 13], [-45, 20], [-36, 33], [-63, 64], [-49, 49], [-52, 59], [-25, 28], [0, 88], [-16, 89], [-5, 13], [0, 0], [-4, 3], [-11, 7], [-30, 16], [-28, 11], [-10, 4], [-14, 4], [-17, 2], [0, 0], [-1, 0], [-5, -2], [0, 0], [-2, -1], [-2, -3], [-2, -4], [-1, -1], [-1, -2], [-1, 0], [-1, -1], [-2, 0], [-1, 0], [0, 0], [-1, -1], [-13, 2], [-27, 8], [-13, 4], [-1, 0], [-3, 2], [0, 0], [-1, 2], [-1, 3], [0, 1], [-1, 4], [0, 2], [0, 1], [-2, 28], [10, 93], [1, 2], [0, 3], [1, 6], [2, 3], [1, 2], [0, 1], [1, 1], [2, 1], [1, 0], [1, 1], [36, 14], [11, 4], [5, -2], [15, -6], [24, -9], [3, -2], [7, -3]], [[300649, 44638], [-2, -2], [-1, -1], [-1, 0], [-1, 0], [-1, 1], [-5, 6], [-3, 6], [-1, 3], [-4, 8], [-2, 5], [-2, 2], [-5, 14], [0, 0], [1, 2], [0, 1], [1, 2], [5, 1], [1, -1], [2, -1], [1, 0], [1, -1], [5, -3], [1, -1], [2, -2], [1, -1], [0, 0], [0, -1], [3, -3], [1, -1], [0, -1], [2, -8], [2, -8], [0, -2], [1, -3], [0, 0], [0, -2], [0, 0], [-2, -6], [0, -1], [0, -2]], [[296095, 44909], [7, -118], [-3, -8], [0, -2], [-11, -15], [-2, 1], [0, 0], [0, 0], [-10, 19], [0, 0], [0, 0], [-1, 2], [-6, 17], [-2, 6], [-1, 3], [-5, 19], [-1, 4], [-6, 29], [-1, 5], [-1, 20], [3, 32], [0, 0], [0, 0], [1, 1], [2, 6], [1, 3], [0, 0], [1, 1], [2, 2], [1, 1], [0, 0], [1, 0], [1, 0], [0, 0], [6, 0], [2, 0], [0, 0], [0, 0], [2, -1], [0, 0], [20, -27]], [[295591, 45293], [15, -21], [4, -6], [19, -30], [2, -3], [0, -1], [0, 0], [1, -1], [0, -1], [1, 0], [20, -46], [44, -97], [9, -25], [9, -24], [12, -61], [14, -74], [0, -2], [1, -1], [0, -16], [0, -1], [0, -1], [0, -1], [-2, -7], [0, -1], [0, -3], [-2, -11], [-1, -2], [-7, -17], [-1, -3], [0, 0], [0, 0], [-1, 0], [-1, -1], [-3, -1], [-1, -1], [0, 0], [-85, 62], [-49, 112], [1, 2], [1, 3], [1, 3], [1, 3], [0, 2], [1, 1], [1, 21], [0, 90], [0, 89], [-15, 26], [-21, 42], [-3, 14], [-8, 29], [0, 0], [43, -40]], [[294230, 45542], [0, 0], [-1, 0], [-2, -1], [-1, 0], [0, 0], [0, 0], [-1, 1], [0, 0], [-4, 3], [0, 1], [-2, 1], [-1, 1], [-3, 5], [-9, 12], [-2, 3], [0, 2], [-1, 1], [0, 2], [-2, 3], [0, 0], [0, 4], [0, 1], [4, 18], [0, 1], [0, 1], [2, 3], [1, 2], [0, 1], [1, 0], [1, 1], [1, 1], [1, 0], [0, 1], [0, 0], [1, 0], [11, 6], [2, 1], [2, 0], [1, 0], [2, 1], [1, 0], [0, -1], [2, -1], [9, -10], [2, -3], [4, -6], [0, 0], [1, 0], [2, -4], [1, -2], [0, -2], [1, -1], [-1, -3], [-3, -22], [-1, -1], [0, -1], [-1, 0], [-1, -3], [0, 0], [-1, -1], [-2, -1], [-1, -1], [0, 0], [-11, -11], [-2, -2]], [[294700, 45596], [1, 0], [0, 0], [3, 2], [0, 0], [4, 2], [5, 0], [3, 0], [4, -1], [5, -1], [2, -1], [1, 0], [6, -4], [8, -5], [3, -8], [3, -7], [0, -3], [0, -1], [-8, -10], [-18, -25], [-11, -8], [-10, -5], [-3, -1], [-5, -1], [-5, -1], [-5, 0], [-52, 0], [-10, 8], [-23, 17], [0, 0], [7, -3], [7, 6], [2, 1], [9, 11], [9, 11], [3, 4], [2, 3], [2, 3], [8, 17], [9, 18], [1, 6], [3, 8], [0, 2], [15, -9], [19, -12], [6, -13], [0, 0]], [[293722, 45691], [3, -71], [0, -1], [0, -1], [-1, -3], [-1, -1], [0, 0], [-12, -26], [-3, -3], [-5, -4], [-2, -2], [-1, -1], [-1, 0], [-1, 0], [-1, -1], [-1, 0], [-6, 1], [-16, 0], [-5, 1], [-10, 2], [-1, 2], [0, 1], [-1, 1], [1, 1], [0, 3], [14, 36], [12, 27], [32, 45], [0, 0], [5, -5], [1, -1], [0, 0]], [[293619, 45722], [0, 0], [16, 2], [58, -37], [-33, -71], [-11, -18], [-3, -2], [-1, 0], [0, 0], [-21, 3], [-14, 2], [-5, 1], [-10, 3], [-30, 15], [-16, 26], [0, 0], [0, 2], [0, 1], [2, 8], [1, 5], [0, 0], [34, 32], [1, 0], [1, 1], [7, 5], [0, 0], [17, -13], [0, 0], [-1, 10], [0, 11], [-1, 0], [-1, 0], [-2, 2], [-10, 12], [-1, 0], [-3, 4], [-1, 1], [0, 0], [0, 0], [1, 0], [2, 1], [14, 0], [10, -6]], [[294589, 45716], [2, 0], [2, 0], [2, 0], [0, 0], [3, 0], [2, -1], [1, 0], [2, -1], [1, -1], [1, -1], [1, -1], [36, -39], [2, -2], [0, 0], [1, -2], [1, -1], [7, -16], [1, -3], [0, -2], [0, 0], [1, -2], [0, -3], [0, 0], [1, -7], [0, -1], [0, -2], [0, -1], [0, -1], [0, -1], [0, -1], [-1, -4], [0, -1], [0, 0], [-1, -1], [-1, -3], [0, -1], [-3, -4], [-22, -33], [-12, -7], [-18, -3], [-90, 58], [-58, 51], [0, 0], [49, 43], [5, 0], [85, -6]], [[294469, 45778], [0, 0], [0, -1], [0, -1], [11, -55], [-22, -18], [-4, -4], [0, 0], [-4, 18], [-3, 17], [-5, 27], [-2, 8], [3, 6], [2, 5], [2, 2], [1, 1], [0, 0], [0, 0], [8, -1], [9, -2], [1, -1], [0, 0], [2, -1], [1, 0], [0, 0]], [[294397, 45855], [14, 2], [1, 0], [3, -1], [1, 0], [1, -1], [0, 0], [1, -1], [1, -2], [1, 0], [0, 0], [1, -2], [3, -6], [0, -3], [1, -2], [0, -9], [0, 0], [0, -2], [0, -1], [0, 0], [0, -6], [-1, -1], [-1, -2], [0, 0], [-5, 1], [-1, 0], [-1, 1], [-1, 0], [-1, 0], [-1, 1], [0, 0], [-1, 1], [-5, 10], [-18, 9], [-2, -17], [-2, -10], [-7, 8], [3, 15], [1, 1], [1, 2], [2, 6], [2, 6], [1, 2], [1, 1], [1, 1], [1, 1], [0, -1], [6, -1]], [[295290, 46005], [1, -1], [1, 0], [0, -1], [4, -2], [1, -1], [2, -2], [0, 0], [2, -2], [2, -4], [1, -1], [1, -4], [1, -3], [0, -1], [-2, -2], [-23, -5], [-1, 0], [0, 0], [-1, 1], [-22, 20], [-1, 1], [0, 0], [-1, 2], [1, 1], [3, 2], [2, 2], [0, 0], [1, 1], [2, 0], [2, 1], [2, 1], [1, 0], [1, 0], [3, 0], [2, 0], [2, 0], [1, 0], [1, 0], [0, 0], [11, -3]], [[292311, 46030], [37, -50], [1, -3], [2, -5], [0, -5], [0, -12], [-5, -9], [-4, 1], [-13, 1], [-2, 0], [0, 0], [-1, 0], [0, 0], [-27, 13], [-91, 44], [-7, 4], [-15, 12], [-9, 8], [-14, 13], [0, 0], [-2, 2], [-2, 5], [0, 0], [1, 1], [0, 0], [5, 2], [10, 4], [83, 7], [42, -26], [11, -7]], [[292818, 45917], [0, 0], [-17, -4], [-2, 1], [-1, 0], [-1, 0], [-1, 2], [-1, 1], [0, 0], [-3, 3], [0, 1], [-1, 1], [-16, 26], [-1, 7], [-1, 12], [0, 0], [-1, 5], [2, 9], [1, 7], [0, 1], [0, 0], [4, 7], [50, 63], [0, 0], [36, -99], [0, 0], [-47, -43]], [[292650, 46245], [17, 2], [37, 5], [50, -84], [1, -1], [-10, -86], [-2, -9], [0, -1], [-2, -4], [-2, -5], [-52, -77], [-2, -1], [-2, -2], [-10, -6], [-11, -2], [-29, 10], [-22, 8], [-27, 26], [-2, 2], [0, 0], [-1, 0], [-27, 40], [-5, 7], [0, 1], [-4, 10], [-1, 2], [0, 1], [-4, 14], [10, 82], [4, 27], [71, 31], [25, 10]], [[292086, 46384], [1, 0], [1, 0], [2, 0], [1, 0], [1, 0], [10, -2], [3, -1], [0, 0], [0, 0], [1, -1], [1, 0], [2, -1], [4, -2], [3, -1], [2, -5], [4, -6], [4, -9], [13, -47], [0, -1], [2, -19], [-24, -108], [-25, -118], [0, 0], [-44, 13], [-35, 43], [-48, 58], [-8, 13], [0, 0], [-3, 10], [1, 4], [1, 2], [14, 24], [58, 80], [26, 49], [4, 7], [6, 8], [13, 14], [0, 0], [9, -4]], [[294068, 46398], [67, -149], [-8, -31], [-5, -7], [-6, -6], [-2, 0], [-9, -1], [-15, 1], [-9, 0], [-1, 1], [-1, 0], [-1, 1], [0, 0], [-39, 42], [-43, 47], [-2, 4], [0, 3], [0, 1], [-1, 1], [0, 1], [0, 2], [-3, 8], [-1, 5], [0, 4], [-1, 3], [0, 0], [0, 0], [0, 4], [0, 0], [0, 1], [-1, 6], [0, 3], [0, 1], [0, 1], [-1, 5], [0, 4], [1, 1], [0, 1], [0, 1], [1, 4], [1, 2], [2, 5], [2, 4], [22, 26], [3, 1], [5, 2], [11, 3], [1, 1], [2, 0], [4, 1], [2, 0], [0, 1], [1, 0], [0, 0], [1, 0], [1, 0], [2, 0], [1, 0], [0, 0], [2, 1], [1, -1], [2, 0], [2, -1], [3, -2], [9, -5]], [[295015, 46479], [1, 0], [7, 1], [0, 0], [1, -1], [0, 0], [1, 0], [2, -1], [1, 0], [1, -1], [4, -5], [0, 0], [1, -1], [34, -40], [8, -9], [9, -11], [1, -2], [2, -1], [0, -2], [1, 0], [0, 0], [1, -1], [5, -9], [127, -205], [34, -58], [2, -6], [3, -7], [1, -6], [0, -1], [0, -1], [0, -3], [0, 0], [0, -4], [0, -4], [-1, -3], [0, -1], [-1, 0], [0, -1], [-1, -2], [-11, -13], [0, -1], [0, 0], [-13, -8], [-3, -2], [0, 0], [35, -180], [3, -13], [0, 0], [30, -18], [14, -12], [7, -7], [17, -16], [22, -32], [10, -14], [7, -14], [9, -18], [49, -117], [34, -80], [96, -372], [20, -84], [0, -4], [2, -24], [2, -24], [-3, -25], [-1, -3], [0, 0], [-1, -1], [0, 0], [-1, -1], [-7, -4], [0, 0], [0, 1], [-3, 0], [-1, 0], [0, 1], [-5, 6], [-45, 51], [-24, 47], [-25, 50], [-13, 26], [-10, 26], [-12, 33], [-12, 23], [-43, 51], [-1, 1], [-1, 1], [-2, 1], [-2, 2], [0, 0], [-5, 6], [-42, 33], [-4, 3], [-279, 417], [-4, 36], [-8, 58], [-124, 477], [17, 56], [10, 31], [42, -24], [12, -3], [13, 1], [0, 0], [1, 0], [0, 1], [1, 2], [1, 1], [0, 2], [1, 3], [1, 20], [0, 0], [-2, 6], [-12, 28], [0, 0], [19, -2]], [[295085, 46494], [3, -9], [3, -9], [1, -3], [0, 0], [-1, -13], [-1, -9], [0, 0], [-3, -2], [0, 0], [-31, 37], [-6, 8], [-3, 3], [0, 0], [15, 9], [2, 1], [0, 0], [1, 0], [0, 0], [1, 0], [1, 0], [2, -1], [1, 0], [6, -4], [4, -3], [3, -2], [1, -1], [0, -1], [1, -1], [0, 0]], [[292225, 46502], [0, 1], [0, 1], [0, 1], [1, 0], [2, 3], [5, 2], [4, 1], [12, -3], [0, -1], [1, 0], [1, 0], [2, -1], [1, -2], [5, -5], [6, -8], [1, -1], [0, -1], [11, -40], [0, 0], [0, -3], [1, -1], [-1, -4], [-1, -1], [0, 0], [0, -2], [0, 0], [-2, 2], [-1, 1], [-2, 7], [0, 1], [-1, 4], [-3, 13], [0, 0], [-54, 10], [-15, 2], [-1, 0], [-2, 1], [-3, 1], [-1, 3], [-2, 2], [0, 1], [-1, 6], [-1, 12], [-1, 13], [1, 0], [3, 2], [2, 2], [33, -19]], [[291817, 46632], [10, 0], [14, 0], [19, -18], [9, -7], [0, -1], [1, -1], [0, 0], [1, -2], [1, -5], [1, -1], [1, -5], [3, -22], [7, -57], [2, -14], [0, 0], [-7, 9], [-64, 81], [2, 43], [0, 0]], [[291946, 46590], [2, -28], [1, -10], [0, 0], [-49, 24], [0, 0], [1, 3], [0, 1], [0, 0], [0, 0], [0, 2], [0, 1], [-1, 1], [0, 0], [-1, 1], [0, 0], [-1, 0], [-1, 0], [-4, 4], [-2, 2], [-8, 8], [-3, 4], [-2, 5], [-8, 14], [-7, 23], [10, 17], [3, 5], [0, 0], [19, 1], [12, 1], [30, -61], [9, -18]], [[291622, 46794], [20, -41], [5, -12], [6, -15], [-6, -7], [-1, -1], [-3, -1], [-10, -2], [0, 0], [-1, 0], [-17, 12], [-14, 10], [-13, 20], [0, 4], [1, 10], [0, 3], [1, 11], [0, 2], [1, 0], [1, 2], [3, 4], [0, 1], [0, 1], [24, 0], [3, -1]], [[292230, 46880], [25, -47], [59, -114], [11, -83], [9, -52], [22, -5], [11, 1], [8, 8], [9, 11], [7, 9], [9, 2], [6, -2], [4, -1], [37, -29], [0, 0], [8, -11], [3, -4], [0, -2], [50, -109], [22, -49], [6, -14], [14, -39], [5, -43], [4, -32], [-11, -37], [-4, -17], [-9, -23], [-45, -16], [-119, 86], [-39, 32], [-6, 8], [-49, 61], [-3, 10], [-7, 21], [-1, 1], [-1, 3], [0, 2], [-2, 5], [3, 11], [1, 6], [0, 1], [1, 1], [0, 0], [0, 1], [2, 5], [0, 0], [0, 0], [1, 0], [1, 0], [0, 1], [2, 0], [0, -1], [0, 0], [0, -4], [0, -2], [1, -1], [0, 0], [0, -1], [9, -1], [40, -1], [0, 0], [-50, 95], [-40, 37], [-51, -8], [-59, -16], [-27, -7], [-27, -29], [-1, -1], [0, 0], [0, 0], [-3, -5], [0, 0], [-5, -5], [-18, -16], [-15, -6], [-20, 3], [0, 0], [-24, 35], [-14, 23], [-9, 16], [-3, 4], [0, 2], [-2, 18], [2, 27], [14, 33], [2, 1], [2, 1], [0, 1], [12, 1], [6, 0], [4, 0], [55, 89], [44, 71], [3, 6], [4, 9], [1, 2], [1, 2], [0, 1], [0, 0], [3, 2], [24, 29], [25, 20], [34, 23], [1, 0], [3, 3], [3, 1], [6, 4], [1, 0], [5, 1], [17, -8], [0, 0], [2, -5]], [[291395, 46903], [10, -13], [2, -2], [1, -3], [8, -17], [4, -11], [7, -31], [7, -31], [21, -117], [-2, -7], [-3, -17], [-6, -4], [-12, -7], [-12, 0], [0, 0], [-29, 85], [-28, 162], [1, 3], [1, 3], [6, 7], [1, 1], [0, 0], [2, 2], [1, 1], [0, 0], [1, 0], [2, 1], [1, 0], [6, -2], [10, -3]], [[294937, 46948], [3, -12], [-1, -4], [0, -3], [0, 0], [0, -1], [-1, 0], [0, -2], [0, 0], [-1, 0], [-1, 0], [-8, 0], [-3, 0], [-1, 0], [0, 0], [-4, 4], [-9, 21], [-5, 11], [0, 3], [5, 13], [1, 2], [0, 0], [5, 0], [3, 0], [0, 0], [1, 0], [1, 0], [0, 0], [1, -1], [1, 0], [1, 0], [0, 0], [1, 0], [3, -6], [2, -5], [6, -19], [0, -1]], [[291863, 47019], [7, 0], [2, 0], [0, 0], [4, 0], [7, -3], [28, -31], [25, -34], [1, -2], [0, -1], [1, 0], [1, -3], [0, 0], [0, -1], [1, -1], [0, -1], [0, -2], [1, -1], [5, -17], [5, -27], [1, -7], [0, -2], [1, -9], [1, -18], [1, -74], [-5, -30], [-6, -26], [-2, -7], [0, 0], [-12, -19], [-9, -14], [0, 0], [-4, -1], [-4, -2], [-7, 1], [-7, 0], [-47, 16], [-25, 9], [-15, 6], [-4, 3], [-6, 2], [-8, 4], [0, 0], [-1, 1], [-1, 1], [0, 0], [-1, 1], [-6, 5], [-6, 7], [-3, 5], [-8, 11], [-3, 4], [-3, 5], [-7, 15], [-4, 11], [-7, 15], [-2, 10], [-2, 7], [-4, 33], [0, 11], [2, 15], [0, 4], [7, 35], [4, 10], [2, 3], [3, 5], [13, 18], [7, 9], [19, 21], [6, 8], [12, 7], [11, 6], [1, 0], [0, 0], [1, 1], [4, 1], [5, 2], [15, 6], [1, 0], [4, 0], [4, 1], [1, 0], [0, 0], [0, 0], [1, 0], [1, -1], [0, 0], [2, -1], [1, 0], [0, 0]], [[291393, 47058], [0, 0], [2, 0], [1, -1], [2, 0], [1, -1], [1, -1], [3, -1], [1, 0], [0, 0], [1, -2], [1, -3], [2, -10], [1, -8], [0, -4], [-1, -4], [-1, -3], [0, 0], [0, -1], [0, -1], [0, -1], [-1, 0], [-2, -1], [0, -1], [-7, -6], [-2, -1], [-2, 1], [-3, 0], [-2, 0], [-14, 5], [-1, 1], [-1, 1], [-1, 1], [-9, 16], [0, 1], [1, 1], [0, 2], [16, 24], [2, 2], [2, 2], [1, 1], [2, 1], [2, 0], [2, 0], [2, 0], [1, -2], [0, -1], [0, -4], [0, -2]], [[293130, 47239], [10, -27], [-1, -5], [0, -6], [-2, -2], [-3, -6], [-1, -1], [0, 0], [-1, -1], [0, 0], [-2, -1], [-1, 1], [0, 0], [-1, 1], [-1, 0], [-1, 1], [0, 0], [-1, 0], [-1, 1], [-1, 1], [-1, 1], [-1, 0], [-18, 12], [2, 5], [3, 8], [14, 16], [6, 3], [0, 0], [1, 0], [0, 0], [1, -1]], [[291436, 47321], [6, -4], [113, -149], [17, -115], [-47, -168], [0, 0], [-19, 12], [-12, 7], [-33, 75], [-2, 5], [-17, 43], [1, 11], [2, 12], [0, 1], [0, 1], [0, 3], [0, 1], [0, 1], [1, 11], [-3, 4], [-3, 6], [-1, 1], [0, 1], [-1, 1], [-28, 33], [-29, 31], [-17, 19], [0, 0], [0, 0], [-2, 3], [0, 1], [-2, 3], [-4, 17], [-1, 20], [-1, 21], [2, 20], [1, 4], [0, 0], [1, 3], [4, 9], [0, 1], [4, 5], [9, 13], [7, 7], [44, 25], [7, 3], [3, 2]], [[292978, 47333], [34, -17], [24, -11], [21, -51], [0, 0], [-86, 14], [-24, 21], [-19, 17], [-18, 18], [0, 2], [1, 1], [1, 1], [0, 1], [0, 0], [1, 0], [1, 0], [3, 0], [3, -1], [3, 0], [32, 0], [12, 3], [11, 2]], [[293047, 47381], [104, -38], [138, -50], [50, -56], [136, -154], [62, -70], [55, -57], [157, -90], [22, -3], [21, -4], [45, 0], [3, -1], [13, -5], [32, -21], [88, -82], [12, -11], [174, -171], [85, -100], [6, -10], [12, -23], [-9, -11], [-23, -25], [-23, -17], [-27, -6], [-41, -9], [-47, 35], [0, 0], [-1, 1], [-1, 0], [-1, 1], [0, 0], [-1, 1], [-2, 1], [-4, 3], [-6, 4], [-3, 2], [-3, 1], [-4, 0], [-2, 0], [-1, 0], [-3, 0], [-1, 0], [-2, 0], [-1, 0], [-11, -1], [-2, 0], [-1, -1], [-4, -2], [0, 0], [-140, 90], [-80, 52], [-85, 59], [-209, 147], [-75, 67], [-73, 84], [-71, 81], [-24, 27], [-60, 69], [-61, 94], [-12, 24], [-19, 38], [-2, 2], [-1, 2], [0, 0], [-15, 16], [-29, 25], [-8, 7], [-1, 1], [-19, 17], [-6, 3], [0, 0], [0, 0], [-1, 16], [0, 48]], [[292878, 47457], [8, -2], [25, -13], [66, -33], [0, 0], [-8, -38], [-3, -16], [-90, 67], [-5, 10], [-1, 7], [-1, 2], [2, 12], [0, 1], [4, 3], [0, 0], [1, 0], [2, 0]], [[292863, 47515], [4, -1], [16, -6], [5, -13], [-16, -35], [0, 0], [-41, 32], [29, 23], [2, 0], [1, 0]], [[292453, 47528], [9, -1], [8, -10], [4, -5], [17, -26], [7, -34], [0, -14], [0, 0], [0, 0], [-2, -3], [-1, -3], [-1, -1], [0, 0], [-3, -2], [-3, -1], [-47, 2], [0, 0], [-3, 1], [-3, 2], [-5, 3], [-3, 3], [-1, 2], [-2, 2], [0, 0], [-1, 1], [-10, 11], [-1, 2], [0, 0], [-1, 1], [-3, 8], [0, 3], [-1, 1], [0, 1], [1, 11], [1, 14], [5, 6], [1, 1], [0, 0], [21, 14], [0, 0], [17, 11]], [[292840, 47529], [12, -6], [-1, -5], [-9, -13], [-4, -6], [-1, -1], [0, 0], [-3, 2], [-11, 10], [-9, 13], [-1, 1], [0, 1], [0, 1], [0, 1], [0, 1], [0, 1], [7, 6], [0, 0], [2, 1], [0, 0], [9, -4], [9, -3]], [[292250, 47533], [18, -6], [26, -8], [34, -42], [-2, -7], [0, 0], [-23, -7], [-16, -1], [-7, 0], [0, 0], [0, 0], [1, 10], [-12, 10], [-9, 7], [-39, 12], [0, 0], [-1, 2], [0, 1], [0, 1], [0, 1], [3, 11], [4, 14], [0, 0], [8, 7], [0, 0], [1, 1], [3, 1], [0, 0], [0, 0], [1, 0], [1, 0], [0, -1], [6, -4], [3, -2]], [[290570, 47516], [-1, -1], [-3, -3], [-3, -2], [-2, -2], [-2, -1], [-1, 0], [-4, -1], [-18, 1], [-3, 0], [-12, 3], [-7, 3], [-9, 3], [-1, 1], [-1, 1], [-1, 2], [-1, 6], [-1, 6], [0, 3], [-1, 3], [0, 1], [0, 1], [0, 0], [1, 3], [4, 13], [0, 1], [1, 0], [0, 2], [2, 3], [0, 0], [1, 1], [0, 1], [1, 1], [0, 1], [4, 4], [1, 1], [2, 2], [10, 6], [1, 0], [0, 1], [1, 0], [1, 0], [9, 1], [4, 1], [1, 0], [1, 1], [2, -1], [2, 0], [5, 0], [2, 0], [0, 0], [1, 0], [1, 0], [1, 0], [4, -2], [7, -1], [5, -2], [0, 0], [3, -7], [16, -28], [0, 0], [-1, -1], [-10, -14], [-12, -11]], [[290791, 47824], [-2, -6], [-1, -1], [0, -1], [-1, 0], [-2, -2], [-1, 0], [-2, 1], [-1, 0], [-12, 0], [-7, 1], [-1, 0], [-2, 0], [-9, 3], [-1, 0], [0, 0], [-1, 1], [-1, 1], [-1, 1], [-2, 2], [0, 0], [0, 2], [0, 4], [1, 2], [0, 1], [11, 9], [0, 0], [0, 0], [3, 2], [1, 0], [0, 1], [5, 3], [0, 0], [24, -17], [2, -5], [0, 0], [0, -2]], [[290700, 47973], [18, -38], [42, -86], [-3, -1], [-7, -6], [-36, -14], [-68, 23], [-8, 3], [0, 0], [3, 27], [4, 17], [5, 18], [25, 73], [1, 2], [0, 0], [1, 1], [2, 2], [0, 0], [0, 0], [2, 1], [11, 0], [2, -1], [0, 0], [1, 0], [1, 0], [1, -1], [1, -1], [1, -1], [0, 0], [1, -18]], [[290937, 48204], [16, -1], [0, 0], [1, 0], [1, -1], [1, -1], [1, -1], [0, -1], [1, -2], [0, -1], [-21, -32], [0, 0], [-4, -3], [-7, -4], [-8, -3], [-2, -1], [-2, -1], [0, 2], [0, 0], [0, 2], [0, 1], [-1, 1], [-1, 9], [-2, 10], [0, 1], [0, 2], [0, 2], [1, 2], [0, 1], [0, 1], [0, 0], [1, 2], [1, 1], [1, 1], [1, 1], [1, 1], [2, 1], [2, 1], [2, 2], [8, 4], [7, 4]], [[291333, 48401], [0, 0], [6, -3], [93, -50], [23, -12], [183, -154], [70, -59], [15, -15], [163, -159], [2, -27], [1, -12], [1, -8], [2, -10], [9, -37], [1, -8], [0, 0], [1, 0], [21, -29], [40, -46], [13, -14], [76, -73], [51, -49], [0, 0], [16, -8], [50, -23], [64, 35], [7, -94], [-12, -10], [-20, -16], [-303, 62], [-115, 100], [-248, 285], [-78, 86], [-68, 74], [-34, 32], [-56, 54], [-25, 29], [-25, 86], [53, 51], [23, 22]], [[145032, 64183], [-34, -142], [-345, 158], [60, 55], [243, 22], [76, -93]], [[311001, 46243], [0, 0], [0, 0], [-1, 0], [0, -1], [-1, 0], [-4, -3], [-1, 0], [0, 0], [-1, 3], [-3, 65], [-1, 20], [2, -1], [5, -12], [5, -13], [2, -16], [0, -2], [2, -20], [1, -5], [0, -4], [0, -1], [-1, -3], [0, -2], [0, 0], [0, -1], [-4, -4]], [[310549, 47452], [12, -12], [12, -12], [1, -1], [3, -5], [1, -2], [1, -3], [0, -1], [0, -1], [0, 0], [0, 0], [-2, -3], [-1, -1], [0, -1], [-3, -4], [-1, -3], [-1, -1], [-1, 0], [-4, 0], [0, 0], [-15, 27], [-5, 10], [-1, 2], [-2, 4], [0, 0], [0, 3], [0, 1], [0, 1], [1, 1], [1, 1], [0, 1], [1, 0], [1, -1], [1, 0], [0, 0], [1, 0]], [[311557, 45327], [1, -2], [2, -4], [0, 0], [1, -3], [1, -2], [0, -1], [1, -2], [1, -3], [0, -1], [0, -8], [0, 0], [-1, 1], [-2, 0], [-15, 23], [3, 4], [1, 1], [0, 0], [2, -1], [2, -1], [2, -1], [1, 0], [0, 0]], [[161632, 56222], [15, -8], [10, -10], [11, -12], [7, -13], [16, -30], [12, -37], [2, -30], [-4, -47], [-1, -3], [0, -3], [-3, -6], [-1, -1], [-9, -17], [-2, -2], [-1, -2], [-9, -12], [-96, -137], [-50, -53], [-25, -10], [-48, 192], [-1, 51], [4, 23], [2, 5], [0, 2], [1, 2], [16, 41], [17, 23], [19, 19], [15, 14], [48, 46], [17, 12], [33, 4], [3, 0], [2, -1]], [[162259, 57656], [36, -8], [15, -19], [-9, -64], [-17, -67], [0, 0], [-1, -1], [-17, -19], [-4, -2], [-9, 3], [-7, 4], [-28, 20], [-9, 18], [-5, 22], [38, 97], [14, 14], [3, 2]], [[260521, 80477], [-154, -80], [-401, 633], [-156, 426], [50, 312], [9, 267], [65, 253], [645, 1235], [125, 116]], [[261406, 83639], [10, -40], [-57, -381], [-243, -901], [-71, -424], [-108, -375], [-150, -334], [-107, -119], [-159, -588]], [[203874, 50650], [38, -97], [15, -55], [6, -81], [-30, 9], [-21, 25], [-55, 111], [3, 48], [44, 40]], [[200171, 44496], [2, -5], [1, -1], [0, -2], [1, -1], [2, -15], [0, -1], [0, -7], [0, -3], [-1, -2], [-1, -3], [-1, -2], [-8, -5], [-2, 2], [-12, 32], [1, 2], [3, 8], [2, 3], [4, 3], [2, 2], [2, -2], [5, -3]], [[196112, 45325], [5, -3], [3, -2], [1, -1], [1, -1], [1, 0], [3, -2], [2, -3], [2, -2], [0, -1], [2, -7], [1, -3], [-2, -11], [-1, -3], [-1, -3], [0, -1], [-2, -2], [-5, -9], [-1, -1], [-3, -3], [-2, -2], [-22, -18], [-160, -41], [-42, 38], [14, -8], [1, 0], [3, -1], [2, 0], [2, 0], [3, -1], [2, 1], [4, 0], [2, 0], [13, 1], [24, 7], [50, 18], [68, 26], [4, 9], [-22, 37], [1, 2], [0, 2], [1, 1], [2, 0], [22, -5], [24, -8]], [[195890, 45318], [-30, -16], [-1, 0], [-1, 0], [-1, 1], [0, 2], [-2, 4], [0, 7], [-1, 3], [0, 2], [0, 1], [1, 3], [6, 6], [2, 3], [3, 3], [2, 1], [1, 1], [3, 2], [9, 2], [3, -1], [1, 0], [0, -1], [1, -2], [4, -21]], [[195966, 45342], [22, 1], [26, 1], [16, -2], [27, -4], [1, -1], [1, -2], [0, -3], [-2, -2], [-5, -2], [-1, 0], [-16, -5], [-93, 8], [3, 14], [21, -3]], [[204552, 47750], [-2, -2], [-1, -1], [-2, 1], [-1, 0], [-1, 3], [-1, 1], [0, 2], [0, 2], [0, 3], [1, 3], [1, 6], [24, 67], [1, 2], [0, 1], [2, 1], [1, 0], [2, 0], [2, 1], [2, -2], [1, -2], [1, -2], [0, -1], [0, -4], [-2, -20], [-2, -12], [-24, -43], [-1, -3], [-1, -1]], [[203696, 50761], [3, -8], [-3, -14], [-1, -5], [-4, -5], [-2, -1], [-1, 0], [-2, 0], [-2, 0], [0, 0], [-9, 5], [-5, 6], [-11, 15], [-4, 5], [0, 1], [-2, 3], [-1, 3], [0, 2], [1, 6], [1, 2], [3, 4], [1, 2], [2, 0], [1, 0], [2, 0], [2, 0], [5, 1], [2, -1], [3, 0], [2, 0], [3, 0], [3, -1], [1, 0], [2, -1], [2, -1], [1, -1], [1, -2], [0, -1], [1, -1], [1, -1], [4, -12]], [[204213, 50895], [-14, -16], [-3, 1], [-9, 17], [-1, 3], [0, 1], [-1, 3], [0, 2], [-1, 3], [4, 17], [0, 1], [1, 1], [1, 0], [1, 1], [0, 0], [1, 0], [8, -7], [1, -1], [2, -1], [4, -5], [6, -15], [0, -2], [0, -2], [0, -1]], [[204088, 50975], [50, -24], [15, -22], [-12, -20], [-8, -9], [-2, -1], [-2, 1], [-25, 9], [-33, 33], [-1, 1], [-2, 4], [-1, 3], [-1, 2], [-3, 18], [1, 2], [0, 4], [15, 6], [1, 0], [1, 0], [2, 0], [1, -1], [4, -6]], [[93383, 80099], [8, -10], [5, -5], [-2, -9], [0, 0], [-10, -16], [-8, -14], [-88, -36], [-8, 1], [-10, 2], [-19, 13], [-21, 14], [-13, 49], [0, 4], [7, 33], [0, 0], [79, -13], [80, -13]], [[93765, 80108], [28, -18], [0, -39], [0, 0], [-117, -18], [-8, -1], [0, 0], [-11, 97], [0, 0], [108, -21]], [[94257, 79650], [-1, 0], [0, 0], [-3, 0], [0, 0], [-2, 3], [-1, 1], [0, 2], [-4, 23], [0, 2], [-1, 1], [2, 24], [2, 24], [2, 8], [0, 0], [7, 6], [0, 0], [2, 2], [1, 0], [1, 1], [2, 0], [0, 1], [1, 0], [1, 0], [1, -1], [0, 0], [1, -1], [1, -5], [0, -1], [1, -2], [0, -74], [0, 0], [0, -1], [-1, -1], [-1, -3], [0, 0], [-2, -1], [-1, -1], [0, 0], [-8, -7], [0, 0]], [[93952, 79752], [-1, -5], [0, -6], [-1, -9], [0, -2], [0, -1], [-1, -2], [-1, -1], [-1, -2], [-4, -4], [0, 0], [-17, -1], [-2, 0], [-1, 0], [-1, 0], [-1, 0], [-2, 0], [-1, 0], [-2, 2], [0, 0], [0, 0], [-2, 5], [-7, 17], [0, 1], [0, 1], [-1, 1], [0, 1], [1, 0], [0, 4], [0, 0], [1, 1], [6, 11], [24, 16], [11, 8], [1, -17], [1, -14], [1, -4]], [[93928, 79845], [0, 0], [-1, -1], [-1, -1], [-1, -1], [-1, 1], [-1, 0], [-1, 1], [-1, 2], [-3, 10], [-1, 8], [3, 30], [1, 16], [1, 3], [1, 3], [0, 3], [0, 1], [0, 0], [0, 0], [2, 1], [1, 1], [1, 1], [6, 4], [0, 0], [1, 0], [2, 1], [6, 1], [0, 0], [0, 0], [1, 0], [0, 0], [1, -2], [0, -3], [-9, -56], [-2, -10], [-5, -13], [0, 0]], [[93135, 79970], [5, 0], [5, -1], [0, 0], [-8, -31], [-9, -33], [-1, -4], [0, -1], [-2, -5], [-1, -2], [-5, -7], [-5, -6], [-1, -1], [-3, -3], [-1, -1], [-5, -4], [-1, -1], [0, 0], [-2, -1], [-3, -1], [-1, 0], [-1, -1], [0, 0], [-1, 0], [-1, 1], [0, 0], [-1, 2], [0, 0], [0, 1], [1, 2], [0, 1], [7, 28], [5, 18], [1, 7], [0, 1], [0, 1], [0, 1], [0, 2], [1, 3], [0, 2], [1, 1], [0, 1], [0, 2], [2, 10], [1, 2], [0, 2], [2, 2], [0, 0], [0, 1], [1, 1], [0, 0], [14, 10], [5, 1], [1, 0], [0, 0]], [[93937, 79983], [18, -52], [7, -18], [0, 0], [-59, 54], [-20, 49], [0, 0], [17, -11], [37, -22]], [[93580, 80202], [31, -83], [0, 0], [-43, 23], [-62, 34], [-19, 17], [-2, 2], [0, 0], [-3, 7], [-8, 15], [0, 2], [0, 0], [-1, 1], [-2, 6], [0, 0], [0, 0], [1, 3], [0, 1], [4, 4], [7, 9], [1, 2], [0, 0], [2, 0], [1, 1], [8, 3], [1, 0], [1, 0], [10, 1], [6, 0], [3, 0], [3, 1], [1, 0], [0, 0], [3, 0], [2, 0], [1, 0], [2, 0], [35, -10], [7, -3], [4, -2], [1, -5], [5, -29]], [[7113, 45600], [0, -1], [1, -3], [1, -10], [12, -76], [1, -5], [0, -2], [0, -1], [1, -10], [0, 0], [0, -1], [-3, -19], [-2, -9], [-1, 0], [-1, 0], [-2, 0], [-1, 0], [-2, 0], [-1, 0], [-1, 0], [-2, 0], [-1, 0], [-37, 4], [-4, 6], [-18, 23], [-1, 1], [-3, 6], [-2, 4], [0, 1], [0, 0], [-1, 2], [-1, 5], [-1, 10], [0, 1], [0, 1], [0, 2], [0, 3], [0, 2], [1, 2], [3, 55], [3, 8], [57, 8], [1, 0], [1, -1], [1, -1], [0, 0], [1, -1], [1, -2], [0, -1], [0, -1]], [[7610, 45363], [14, -17], [3, -3], [3, -4], [2, -1], [0, -1], [1, -1], [0, -1], [1, -2], [1, -3], [0, -1], [2, -6], [0, -1], [0, 0], [0, -1], [-1, -2], [-2, -7], [-14, -44], [-5, -17], [-1, 0], [0, -1], [-2, -1], [-1, -2], [-1, 1], [-3, 2], [-4, 5], [-8, 8], [-30, 35], [-3, 3], [-1, 2], [-1, 1], [-1, 1], [0, 0], [0, 1], [0, 4], [0, 3], [1, 1], [48, 47], [1, 1], [1, 1]], [[6522, 46189], [0, 0], [-2, -1], [-18, -6], [-3, -1], [0, 0], [-3, 0], [-1, -1], [-1, 0], [-3, -1], [-1, 1], [-3, 6], [-1, 3], [-1, 2], [-7, 38], [-1, 2], [0, 1], [-1, 7], [1, 1], [0, 1], [1, 2], [0, 1], [1, 2], [2, 0], [3, 1], [7, 1], [5, 0], [1, 1], [1, 0], [1, 0], [0, 0], [1, -1], [2, -2], [21, -30], [0, -1], [0, -2], [0, -1], [0, -1], [0, -1], [0, -1], [0, -1], [0, -1], [0, -1], [0, -1], [0, -1], [0, -1], [0, -2], [0, -1], [0, -1], [0, 0], [0, -1], [0, -2], [0, -3], [-1, 0], [0, -3], [0, -1]], [[4148, 32173], [0, 0], [-15, -13], [-1, -2], [0, 0], [-1, -1], [-1, 0], [0, -1], [0, -1], [-1, 0], [0, -2], [-1, -1], [0, -1], [0, -1], [0, 0], [0, -1], [1, -2], [1, -1], [0, 0], [4, -3], [47, -22], [0, 0], [0, 0], [1, 0], [1, 0], [0, 0], [0, 0], [2, -1], [4, 0], [0, 0], [0, 0], [0, 0], [0, 0], [1, 0], [0, 0], [7, 1], [0, 0], [1, 0], [14, 7], [9, 6], [10, 15], [0, 1], [0, 3], [-1, 3], [-2, 6], [-2, 6], [0, 0], [-4, -3], [0, 0], [-2, 10], [4, 22], [18, 8], [2, 1], [1, 0], [2, 1], [2, 0], [0, 0], [3, -1], [15, -5], [12, -5], [7, -3], [1, 0], [0, 0], [1, -1], [1, -1], [1, -1], [1, -1], [0, 0], [1, 0], [0, -1], [3, -3], [3, -3], [0, 0], [0, -1], [1, -1], [0, 0], [1, -1], [0, -1], [0, 0], [1, -2], [0, -1], [0, 0], [0, -2], [0, -2], [0, -1], [0, 0], [0, -1], [-1, -1], [0, -1], [-57, -102], [0, 0], [-70, -4], [-60, 45], [-26, 19], [-35, 29], [-11, 9], [0, 0], [-1, 0], [-1, 1], [0, 1], [-1, 0], [0, 1], [-1, 1], [-2, 3], [-1, 1], [0, 1], [-1, 2], [0, 0], [-3, 13], [-1, 7], [-7, 37], [8, 17], [8, 13], [6, -1], [1, 0], [0, 0], [103, -87]], [[4410, 31832], [0, 0], [-2, -2], [0, 0], [-2, 2], [-33, 34], [-2, 3], [-15, 20], [-1, 2], [-4, 15], [0, 0], [0, 1], [0, 3], [0, 3], [2, 17], [0, 0], [1, 3], [0, 2], [1, 2], [0, 2], [2, 4], [1, 2], [3, 8], [1, 1], [27, 60], [1, 0], [1, 1], [3, 4], [0, 1], [0, 0], [2, 2], [1, 1], [1, 1], [1, 0], [1, 0], [2, 0], [1, 0], [2, -7], [1, -17], [3, -38], [2, -19], [1, -16], [3, -76], [0, -4], [-1, -7], [-4, -8]], [[4525, 33189], [0, -1], [0, 0], [0, -5], [-4, -15], [-2, -9], [-1, -1], [-2, -3], [-20, 15], [0, 0], [0, 1], [-1, 0], [0, 1], [0, 1], [-1, 1], [0, 1], [1, 2], [0, 2], [2, 5], [11, 1], [9, 2], [0, 0], [0, 0], [5, 2], [3, 0], [0, 0]], [[4852, 33577], [2, 1], [0, 0], [0, -1], [1, -2], [0, 0], [1, -1], [0, -1], [0, -3], [0, 0], [-1, -1], [-1, -3], [0, 0], [-13, -21], [-1, -1], [-1, -1], [-8, 3], [0, 2], [2, 4], [0, 0], [0, 1], [1, 1], [1, 0], [1, 1], [0, 0], [1, 1], [1, 2], [0, 1], [1, 2], [0, 0], [0, 1], [1, 8], [0, 2], [1, 2], [-1, 8], [0, 1], [2, -1], [2, 0], [7, -4], [1, -1]], [[4901, 33674], [-33, -23], [12, 24], [15, 32], [0, 0], [8, -17], [-2, -16]], [[4950, 33735], [0, -1], [0, -2], [-1, -2], [-1, -1], [-1, -3], [-1, -1], [-1, -1], [-1, -1], [-1, 0], [-2, 0], [-1, -1], [-1, 0], [0, 0], [-28, -2], [-7, 1], [0, 0], [0, 3], [1, 1], [0, 1], [3, 3], [2, 3], [8, 8], [4, 4], [21, 16], [10, -8], [1, -1], [0, 0], [-4, -16]], [[4258, 33782], [0, 0], [25, -6], [2, -1], [1, 0], [0, 0], [1, -1], [0, -1], [1, -1], [1, -2], [0, 0], [11, -23], [0, 0], [0, 0], [1, -1], [0, -3], [1, -4], [1, -2], [0, -2], [1, -1], [1, -9], [-1, -2], [-1, -6], [-2, -6], [0, -3], [-1, -2], [0, -1], [-2, -4], [-4, -6], [-2, -1], [-1, 0], [-9, -1], [-9, -1], [-9, 1], [-2, 1], [0, 0], [0, 0], [-3, 5], [-16, 22], [-2, 26], [0, 0], [0, 5], [1, 4], [0, 3], [5, 10], [6, 10], [5, 3]], [[4964, 33815], [0, -3], [2, -7], [0, -3], [0, -5], [-1, -1], [0, 0], [-1, -1], [0, 0], [-1, -1], [-1, 0], [0, 0], [-2, 0], [-1, 0], [-1, 1], [-1, 1], [-9, 20], [-8, 16], [-2, 8], [-1, 10], [0, 0], [3, 0], [2, 0], [1, 0], [1, 0], [0, 0], [10, -17], [10, -18]], [[4309, 33801], [-1, 0], [-3, 1], [-3, 6], [0, 3], [0, 14], [1, 3], [0, 2], [0, 1], [0, 1], [6, 11], [1, 2], [0, 1], [3, 4], [1, 0], [1, 0], [0, 0], [1, 1], [1, 0], [5, -4], [8, -16], [0, 0], [0, 0], [0, -1], [0, -2], [0, -1], [-1, -2], [0, -1], [0, -2], [-1, -2], [-1, -2], [-2, -3], [0, -1], [-1, 0], [-3, -4], [-2, -2], [-2, -1], [-1, -1], [-1, -1], [-6, -4]], [[4635, 34814], [11, -8], [3, -3], [1, 0], [2, -2], [1, -1], [2, -2], [3, -4], [1, -1], [0, 0], [-9, -20], [-2, -4], [0, -1], [-1, -1], [-7, -3], [-5, 0], [-2, 0], [-1, 0], [-1, 1], [-1, 1], [-1, 1], [-4, 3], [-1, 1], [0, 0], [-9, 20], [1, 5], [1, 2], [3, 6], [0, 2], [0, 0], [1, 1], [2, 3], [1, 1], [1, 0], [1, 1], [1, 1], [8, 1]], [[5179, 34903], [1, -4], [-1, -7], [-1, -11], [-1, -3], [0, -3], [-2, 0], [0, 0], [0, 0], [-1, 0], [-1, 1], [-5, 4], [0, 0], [0, 0], [-1, 2], [-1, 1], [-1, 1], [-1, 1], [-1, 4], [0, 2], [0, 0], [-2, 25], [0, 0], [7, 0], [5, -4], [2, -2], [0, 0], [1, -1], [2, -4], [1, -2]], [[5113, 34939], [0, -6], [0, 0], [-4, -3], [-17, -14], [-4, -2], [0, 0], [-4, 2], [-4, 2], [0, 0], [4, 8], [3, 7], [1, 0], [2, 2], [10, 4], [0, 0], [13, 0], [0, 0]], [[5210, 34903], [-1, -4], [-1, -1], [0, 0], [-2, 0], [-13, 4], [-10, 28], [2, 6], [1, 2], [3, 7], [2, 5], [1, 0], [0, 1], [8, 7], [1, 0], [0, 0], [4, -12], [3, -26], [2, -17]], [[5246, 35047], [15, -19], [17, -32], [0, 0], [0, -2], [2, -9], [-2, -10], [-1, -1], [-11, -9], [-6, -5], [0, 0], [-1, 12], [0, 0], [-24, 6], [-14, -1], [-16, -1], [-7, -5], [-19, -16], [-15, -16], [-2, -1], [-1, 0], [-1, 0], [0, 0], [0, 0], [-6, -1], [-6, -1], [-1, 2], [-1, 1], [0, 0], [-8, 27], [-2, 12], [0, 2], [0, 2], [2, 4], [1, 3], [1, 2], [30, 29], [25, 23], [0, 0], [19, 11], [3, 1], [0, 0], [1, 0], [0, 0], [1, 0], [0, 0], [27, -8], [0, 0]], [[5414, 37981], [0, -1], [0, -1], [0, 0], [-1, -3], [-2, -4], [-21, -30], [-1, -1], [0, 0], [-4, -5], [-2, 0], [0, 0], [-1, 0], [-4, 2], [-4, 4], [-2, 2], [-2, 3], [-1, 1], [0, 0], [0, 0], [0, 1], [0, 1], [-2, 6], [0, 0], [0, 1], [-1, 1], [4, 11], [1, 3], [0, 0], [0, 0], [25, 14], [11, 6], [0, 0], [1, 0], [3, 1], [1, -3], [2, -4], [0, -3], [0, -1], [0, -1]], [[3780, 38319], [0, 0], [-1, 0], [-2, -1], [-1, 0], [0, 0], [0, 0], [-2, 0], [-5, 0], [0, 1], [-1, 0], [-7, 4], [0, 0], [0, 0], [-5, 6], [-6, 7], [0, 1], [-1, 1], [-5, 8], [-1, 2], [0, 0], [-1, 1], [0, 0], [0, 2], [-1, 2], [0, 2], [0, 2], [0, 2], [0, 1], [1, 2], [0, 1], [0, 1], [1, 1], [6, 17], [7, 6], [2, 2], [2, 1], [1, 0], [3, 2], [0, 0], [2, 1], [7, 3], [3, 1], [2, 1], [1, 0], [1, 0], [2, 1], [0, 0], [1, 0], [2, 0], [1, 0], [1, -1], [1, 0], [1, -1], [2, -1], [2, -1], [1, -1], [1, -1], [4, -3], [1, -1], [0, 0], [2, -2], [2, -4], [3, -3], [0, -1], [1, -1], [0, -2], [1, -2], [0, -3], [0, -3], [0, 0], [-1, -12], [-2, -12], [-1, -2], [0, -1], [-2, -3], [-1, -3], [0, 0], [0, 0], [-5, -6], [-2, -4], [0, 0], [-8, -3], [-7, -4]], [[103084, 67844], [13, 0], [16, -2], [0, -1], [0, -2], [0, -3], [0, 0], [-2, -7], [0, -2], [0, -2], [-1, -1], [0, 0], [-26, -57], [-46, -656], [-5, -43], [-44, -27], [-5, -3], [-16, -10], [-30, -17], [-10, -6], [-5, -3], [-20, -9], [-42, -4], [-588, -30], [0, 0], [-15, 40], [34, 22], [32, 21], [108, 60], [35, 20], [87, 43], [0, 0], [82, 119], [-1, 121], [-2, 119], [-14, 55], [-10, 27], [-7, 22], [-26, 19], [-20, 15], [0, 0], [140, 112], [141, 30], [97, 20], [150, 20]], [[103453, 68379], [-1, -7], [-5, -26], [-3, -14], [-8, -30], [-37, -25], [-17, -11], [-28, -16], [-25, -15], [-116, -60], [-35, 6], [4, 17], [3, 14], [111, 125], [0, 0], [136, 65], [1, 0], [5, 1], [0, 0], [0, 0], [3, 1], [2, -1], [1, 0], [2, -1], [2, 0], [0, 0], [0, 0], [1, -1], [1, -1], [0, -1], [2, -5], [1, -4], [0, -6], [0, -4], [0, -1]], [[190269, 46864], [-89, -20], [-40, 40], [265, 357], [-5, -118], [-52, -178], [-79, -81]], [[190110, 48583], [-50, -49], [-129, 195], [-57, 12], [-59, 440], [116, 58], [58, -322], [73, -50], [61, -226], [-13, -58]], [[190319, 49771], [-72, -115], [-63, 43], [-15, 45], [72, 265], [-26, 27], [-7, 194], [12, 68], [26, -14], [81, -45], [10, -179], [32, -16], [-50, -273]], [[21802, 77482], [0, 0], [-129, -139], [-519, -366], [-67, 25], [-235, 88], [-84, 577], [60, 233], [98, 143], [8, 51], [-17, 28], [-36, 60], [-18, 101], [4, 17], [10, 44], [8, 5], [24, 14], [265, -158], [295, -176], [261, -379], [80, -115], [-5, -31], [-3, -22], [0, 0]], [[20225, 79188], [41, 25], [200, -110], [106, 4], [208, -161], [6, -52], [5, -41], [0, 0], [0, 0], [-8, -6], [-106, -81], [-50, -14], [-170, -48], [-17, 8], [-29, 13], [-84, 121], [-142, 203], [9, 66], [7, 59], [24, 14]], [[19757, 79270], [-106, 14], [0, 0], [0, 0], [52, 139], [463, -68], [-70, -96], [-65, -25], [-274, 36]], [[19065, 79971], [0, 0], [90, -151], [29, -117], [52, -65], [18, 28], [91, -161], [0, 0], [0, 0], [-42, -10], [-60, -15], [-298, 59], [-2, 0], [0, 0], [-138, 281], [0, 0], [0, 0], [33, 19], [227, 132], [0, 0]], [[17900, 80263], [-3, -14], [-70, -73], [-26, -26], [-24, 4], [-111, 22], [-82, 69], [-82, 69], [0, 0], [0, 0], [47, 129], [125, 94], [0, 0], [0, 0], [92, 4], [78, 4], [0, 0], [0, 0], [12, -8], [56, -39], [3, -13], [13, -68], [-28, -154]], [[102886, 70678], [23, -5], [8, -12], [2, -3], [0, 0], [1, -1], [11, -35], [0, -2], [1, -4], [1, -5], [3, -15], [0, 0], [0, -1], [0, -1], [0, -1], [1, -16], [0, -3], [-5, -57], [-12, -48], [-10, -43], [0, -2], [-1, -1], [0, -2], [-1, -3], [0, -2], [-22, -24], [-2, -1], [-1, 0], [-1, 0], [0, 0], [-2, -1], [-1, 0], [-1, 0], [-1, -1], [0, 0], [-2, 0], [-1, 0], [0, 0], [0, 0], [-4, 0], [0, 0], [0, 0], [-3, 2], [-2, 1], [-7, 6], [-8, 6], [-12, 11], [-17, 15], [-12, 19], [-3, 4], [-4, 8], [-5, 13], [-2, 41], [1, 2], [0, 2], [1, 3], [2, 10], [1, 1], [0, 1], [7, 26], [1, 3], [2, 6], [1, 1], [36, 69], [8, 15], [0, 0], [0, 0], [2, 2], [0, 2], [1, 1], [3, 4], [10, 9], [1, 0], [0, 1], [2, 1], [1, 0], [2, 1], [3, 2], [1, 1], [3, 0], [1, 0], [1, 0]], [[102651, 69790], [-2, 0], [-1, 0], [0, 0], [-1, 1], [-1, 1], [-4, 3], [-1, 1], [0, 0], [0, 1], [-1, 2], [-1, 2], [-1, 1], [4, 20], [0, 0], [1, 1], [1, 1], [0, 0], [1, 0], [5, 1], [4, 0], [5, 1], [2, 0], [18, -11], [0, -1], [0, -1], [2, -2], [0, 0], [0, 0], [-1, -2], [-1, -1], [-4, -5], [0, 0], [-1, -1], [-21, -12], [-2, 0]], [[102768, 69963], [0, -2], [0, -1], [0, -3], [1, -3], [0, -4], [0, 0], [0, -1], [-1, -3], [0, 0], [0, -1], [-4, -9], [-9, -20], [-12, -4], [-1, 1], [-1, 0], [-10, 8], [-1, 3], [1, 3], [0, 1], [9, 14], [14, 21], [0, 0], [10, 4], [0, 0], [1, 0], [2, 0], [1, -3], [0, 0], [0, -1]], [[102850, 70267], [-1, -3], [-1, -2], [-7, -12], [-4, -6], [0, -1], [-1, -1], [-2, -1], [-11, -5], [-4, 0], [-1, 0], [-1, 0], [0, 0], [-1, 1], [-1, 0], [0, 0], [0, 0], [-8, 2], [-10, 2], [-5, 7], [3, 2], [41, 42], [22, 15], [0, 0], [0, 0], [1, -3], [0, -1], [0, -1], [0, -1], [0, -1], [0, -1], [0, -1], [0, -1], [-1, -6], [-2, -6], [-6, -18]], [[100511, 67914], [-33, -9], [-85, -22], [-170, 60], [-137, 49], [22, 38], [28, 48], [0, 0], [336, 65], [66, 56], [7, 6], [0, 0], [1, -3], [29, -43], [46, -169], [0, 0], [-110, -76]], [[99956, 76334], [1, -2], [0, 0], [2, -7], [0, -2], [0, -1], [0, -3], [-8, -13], [0, 0], [-1, -1], [-1, -2], [-2, -3], [-2, -2], [-5, -3], [-1, -1], [-1, 0], [0, -1], [-37, -15], [-22, -9], [-12, -5], [0, 0], [-5, 0], [-7, -1], [-25, 1], [-3, 1], [-4, 1], [0, 0], [-1, 0], [0, 1], [-1, 1], [0, 0], [1, 3], [1, 0], [0, 1], [59, 60], [4, 4], [64, 6], [0, 0], [0, -1], [1, 0], [5, -7]], [[99815, 76327], [0, 0], [0, -1], [0, -1], [1, -3], [-1, -2], [-1, -1], [0, 0], [-12, -3], [-2, 0], [-2, 1], [-2, 0], [-4, 1], [-22, 6], [1, 2], [1, 6], [6, 6], [6, 7], [1, 0], [2, 0], [1, 0], [1, 0], [5, -2], [8, -3], [9, -8], [3, -4], [1, -1]], [[100161, 76395], [-9, -9], [0, 0], [-1, -1], [-83, -73], [0, 0], [-14, -5], [-1, 1], [0, 0], [0, 2], [0, 1], [3, 30], [4, 6], [0, 0], [0, 0], [1, 2], [19, 29], [28, 7], [41, 11], [5, 1], [1, 0], [1, 0], [4, 1], [0, 0], [1, -3], [0, 0]], [[100151, 76668], [9, -7], [2, -1], [0, 0], [1, 0], [1, -1], [4, -3], [1, -1], [1, -1], [7, -8], [10, -11], [0, 0], [1, -1], [1, -1], [12, -18], [0, -1], [0, -2], [1, -4], [0, 0], [0, -2], [0, 0], [-1, -1], [0, 0], [-1, -1], [-1, -2], [0, 0], [-2, 0], [-2, -1], [-1, 1], [-5, 1], [-29, 14], [-50, 22], [3, 12], [3, 12], [0, 0], [15, 3], [14, 3], [2, -1], [1, 0], [3, 0], [0, 0]], [[99779, 75589], [2, -2], [5, -4], [30, -26], [5, -3], [3, -3], [1, 0], [0, -1], [0, 0], [4, 0], [3, -1], [9, 10], [11, 6], [5, 1], [3, 1], [9, 0], [63, -3], [1, -8], [0, -6], [0, 0], [-51, -26], [-25, -12], [-20, -8], [-15, -4], [-49, -8], [-45, -7], [-23, -1], [-30, -2], [-3, 3], [-6, 5], [0, 0], [0, 8], [0, 44], [13, 20], [9, 13], [77, 16], [14, -2]], [[99802, 76242], [18, -2], [5, 0], [2, -1], [8, -3], [24, -15], [2, -1], [5, -4], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, -1], [-1, -7], [0, 0], [-1, 0], [-5, -6], [0, 0], [-1, -1], [-9, -2], [-86, -18], [-4, 0], [-2, 1], [-3, 1], [-5, 9], [0, 1], [0, 0], [0, 1], [-1, 1], [0, 0], [0, 1], [0, 0], [-1, 3], [0, 1], [0, 2], [0, 0], [0, 0], [0, 1], [0, 0], [0, 1], [0, 1], [0, 2], [0, 1], [0, 1], [15, 13], [2, 2], [0, 0], [38, 18]], [[99664, 76237], [4, -1], [11, -8], [7, -4], [3, -3], [9, -8], [3, -3], [14, -17], [-3, -9], [0, 0], [-7, -3], [-7, -1], [-14, -4], [-3, 0], [-6, 0], [-14, 4], [0, 0], [-11, 4], [-9, 5], [0, 0], [-1, 1], [0, 2], [-1, 4], [-1, 5], [-9, 7], [-3, 3], [-57, 7], [-5, -2], [-14, -3], [-1, 0], [-1, 1], [0, 0], [-7, 7], [0, 0], [0, 0], [-2, 5], [-1, 2], [0, 0], [3, 2], [3, 3], [8, 3], [0, 0], [28, 8], [7, 2], [8, 1], [19, 3], [2, 0], [19, -5], [15, -4], [7, -2], [7, -2]], [[245970, 67198], [-46, -203], [-36, 23], [-70, 219], [13, 75], [70, 102], [68, -90], [1, -126]], [[300122, 39425], [0, 0], [47, -99], [39, -80], [38, -118], [19, -60], [0, 0], [164, -16], [6, -1], [66, -6], [0, 0], [35, -105], [61, -190], [52, -252], [-9, -45], [0, 0], [-151, -78], [-9, 4], [-7, 3], [-53, 1], [-1, 0], [-1, 0], [-1, -1], [-1, 0], [-11, -2], [-1, 0], [0, 0], [-21, -4], [0, 0], [-1, 0], [0, -1], [-1, 0], [-1, -1], [-2, 0], [-2, -2], [0, 0], [0, 0], [-3, -1], [0, -1], [0, 0], [-8, -7], [-45, -61], [-67, 29], [0, 0], [-31, 82], [-25, 65], [-45, 150], [-51, 304], [-44, 262], [-2, 16], [1, 10], [6, 81], [17, 87], [0, 0], [0, 0], [0, 2], [1, 2], [1, 2], [2, 2], [8, 7], [0, 1], [0, 0], [31, 21]], [[302894, 33305], [7, 0], [3, 0], [1, -1], [0, 0], [2, 0], [40, -25], [1, -1], [0, 0], [0, 0], [3, -2], [1, -1], [1, -2], [0, 0], [1, -1], [1, -1], [0, -2], [1, -1], [5, -14], [0, 0], [1, -5], [2, -6], [-1, -4], [-2, -8], [-2, -9], [-1, -4], [-1, -1], [-5, -12], [-1, -2], [-1, -2], [-1, -1], [-1, -3], [-1, -1], [0, 0], [-1, -1], [0, 0], [-1, -1], [-6, -9], [-1, -2], [-3, -2], [-13, -6], [-25, 7], [-38, 10], [-6, 1], [-4, 2], [-1, 0], [0, 0], [0, 1], [0, 0], [-1, 1], [-1, 0], [0, 0], [0, 1], [-13, 25], [-3, 8], [-6, 19], [0, 9], [1, 10], [1, 9], [0, 0], [0, 1], [3, 5], [6, 7], [4, 3], [8, 4], [0, 0], [15, 5], [14, 1], [18, 1]], [[303253, 34003], [0, -1], [0, -2], [0, -1], [-5, -28], [-6, -10], [-3, 0], [-9, 1], [-1, 0], [0, 0], [-3, 6], [-1, 1], [0, 2], [-4, 8], [-2, 7], [-2, 11], [0, 0], [33, 6], [2, 0], [0, 0], [1, 0]], [[302454, 34216], [19, 0], [9, -1], [9, -2], [1, -1], [0, 0], [0, 0], [1, -1], [0, -1], [0, 0], [0, -2], [1, -4], [-1, -9], [53, -125], [19, -46], [48, -37], [0, 0], [-28, -107], [-3, -10], [-1, -2], [0, -1], [-1, -3], [-8, -14], [-4, -6], [-5, -4], [0, 0], [-2, 0], [-1, 0], [-5, 0], [-3, 0], [-2, 1], [-1, 0], [-7, 3], [-30, 11], [-6, 3], [0, 0], [-17, 9], [-11, 10], [-1, 1], [-1, 1], [-1, 1], [-34, 44], [-37, 57], [-15, 32], [-5, 12], [-8, 23], [-2, 8], [-2, 9], [0, 0], [-1, 3], [1, 1], [0, 1], [0, 1], [0, 0], [23, 110], [5, 8], [10, 6], [3, 3], [7, 4], [2, 2], [24, 12], [8, 0]], [[302277, 34993], [25, -11], [2, -2], [0, 0], [1, 0], [3, -2], [1, -1], [1, -2], [6, -9], [15, -28], [113, -214], [5, -6], [3, -2], [16, -29], [1, -2], [0, 0], [6, -19], [2, -12], [1, -7], [0, -15], [-3, -7], [-13, -19], [-2, -2], [-2, -3], [-3, -4], [0, -1], [-1, -1], [-2, -2], [-1, -1], [-1, -1], [-3, -2], [-17, -13], [0, 0], [0, 0], [-2, -1], [0, 0], [0, 0], [-2, 0], [-1, 1], [0, 0], [-1, 0], [-5, 2], [-140, 65], [-7, 3], [-9, 6], [-19, 11], [-60, 38], [-1, 1], [0, 0], [-1, 1], [-6, 5], [-1, 1], [-1, 3], [0, 0], [0, 1], [-1, 0], [0, 1], [0, 0], [0, 2], [-1, 1], [-1, 22], [2, 123], [3, 42], [1, 18], [1, 1], [0, 2], [0, 0], [0, 0], [3, 9], [2, 4], [0, 1], [3, 4], [4, 8], [9, 11], [12, 16], [2, 1], [0, 0], [5, 5], [5, 3], [0, 0], [1, 1], [1, 0], [46, 5], [3, 0], [0, 0], [2, 0], [1, 0]], [[301658, 36208], [74, -58], [0, 0], [83, -112], [-2, -30], [-1, -16], [-11, -57], [-1, -1], [0, -1], [-2, -7], [0, -1], [0, -1], [-1, -1], [-1, -2], [-2, -3], [-2, -2], [-4, -3], [-2, -2], [0, 0], [-39, -21], [-1, 0], [0, 0], [-2, -1], [-3, 0], [0, 0], [-1, 0], [0, 0], [-2, 0], [-5, 1], [-146, 85], [-47, 7], [-48, 7], [0, -2], [-1, -2], [-1, -1], [0, -2], [-6, -5], [0, -1], [-1, 0], [-1, -1], [0, 0], [-1, 0], [-1, -1], [0, 0], [-1, 0], [-2, -1], [-2, -1], [0, 0], [-1, 0], [0, 0], [-1, 0], [-1, 0], [-5, 7], [-4, 4], [-1, 42], [15, 44], [1, 3], [5, 11], [6, 9], [2, 2], [0, 1], [1, 1], [91, 120], [75, -8]], [[301566, 36237], [1, 0], [0, 0], [2, -2], [0, 0], [4, -7], [0, 0], [2, -3], [1, -1], [0, 0], [0, -1], [1, -2], [2, -5], [1, 0], [0, -1], [0, -1], [-2, -2], [-2, -1], [-40, -22], [-20, -12], [-3, 2], [-7, 2], [0, 0], [6, 26], [6, 5], [12, 9], [14, 9], [11, 6], [2, 1], [6, 2], [0, 0], [2, -1], [1, -1]], [[301651, 36263], [-2, -1], [0, 0], [0, 0], [-1, -1], [-1, 0], [0, 0], [-1, 0], [-1, 0], [-1, 0], [0, 0], [-1, 0], [-9, 2], [-5, 1], [-6, 4], [-8, 6], [-1, 1], [0, 0], [0, 0], [0, 0], [-1, 2], [0, 1], [-1, 1], [-3, 7], [-3, 5], [-11, 27], [1, 5], [2, 9], [5, 5], [1, 1], [1, 1], [1, 0], [0, 1], [1, 0], [0, 0], [0, 0], [2, 1], [3, 1], [1, 0], [1, 0], [0, 0], [1, 0], [1, -1], [2, -1], [0, 0], [0, 0], [1, -2], [1, -1], [10, -23], [18, -39], [1, -2], [1, -3], [1, -4], [0, -1], [0, -2]], [[301631, 36695], [-1, -1], [0, 0], [-2, -1], [-3, -1], [-1, 0], [0, 0], [-1, -1], [-1, 0], [0, 0], [-3, 0], [-2, 0], [0, 0], [-1, 1], [-12, 7], [-1, 5], [0, 2], [0, 9], [0, 1], [0, 1], [1, 0], [41, 40], [1, 1], [0, 0], [1, 2], [3, 1], [2, 2], [2, 0], [1, 0], [3, 0], [1, 0], [0, 0], [2, 0], [12, -5], [13, -12], [1, 0], [0, -1], [1, 0], [1, -2], [1, 0], [0, -1], [0, -1], [0, -2], [-1, -1], [0, 0], [0, -1], [-1, 0], [0, -1], [-4, -3], [-53, -38]], [[301825, 36944], [0, 0], [1, -1], [0, 0], [1, 0], [2, -4], [1, -4], [1, -2], [0, -3], [-1, -13], [-1, -1], [0, -1], [-1, -2], [-20, -30], [0, -1], [-1, -1], [0, 0], [-15, -8], [-3, -1], [-2, 0], [0, 0], [-5, 1], [-8, 1], [-1, 4], [0, 1], [-1, 5], [0, 5], [0, 3], [0, 13], [0, 5], [0, 2], [1, 6], [1, 9], [1, 7], [1, 1], [1, 1], [7, 4], [11, 8], [14, 0], [5, 0], [11, -4]], [[301478, 37284], [4, -2], [3, -4], [8, -12], [188, -211], [0, 0], [-41, -27], [-123, -26], [0, 0], [-12, 5], [-38, 17], [-8, 12], [-5, 7], [-2, 4], [-4, 8], [-16, 51], [-7, 22], [14, 84], [6, 19], [9, 29], [11, 17], [1, 2], [0, 0], [1, 1], [3, 3], [0, 0], [8, 1]], [[301614, 37376], [2, 0], [3, 0], [2, -2], [1, -1], [1, -2], [2, -2], [1, -2], [2, -5], [4, -11], [2, -9], [1, -2], [0, -1], [0, -1], [0, 0], [0, -1], [0, -3], [-1, -6], [0, -1], [-1, -1], [-4, -4], [-1, 0], [-3, -2], [-12, -1], [-1, 0], [-7, 3], [-9, 5], [-3, 2], [-2, 3], [-1, 2], [-9, 18], [0, 7], [1, 10], [1, 3], [1, 2], [1, 1], [1, 1], [1, 1], [0, 0], [8, 2], [1, 0], [0, 0], [1, 0], [0, 1], [3, -1], [0, 0], [1, 0], [1, 0], [12, -3]], [[301531, 37435], [2, -4], [7, -10], [-3, -56], [-1, -3], [0, -2], [0, 0], [-1, -4], [-1, -1], [-1, -2], [-1, -2], [-3, -1], [-2, -1], [-3, -1], [-1, -1], [-2, 0], [-6, -1], [-1, 0], [0, 0], [-1, 0], [0, 0], [-1, 0], [0, 0], [-4, 1], [-2, 1], [0, 0], [-3, 2], [-1, 1], [-3, 6], [0, 0], [0, 0], [-1, 1], [0, 1], [0, 0], [0, 0], [0, 1], [0, 0], [0, 1], [0, 0], [0, 1], [0, 1], [2, 11], [4, 22], [3, 10], [5, 17], [9, 14], [10, -2], [0, 0]], [[301480, 37779], [0, 0], [100, -187], [1, -2], [1, -2], [5, -16], [0, -3], [0, -2], [-2, -6], [-2, -9], [-3, -6], [-3, -5], [-2, -3], [-3, -3], [-10, -10], [-6, -2], [-3, -2], [0, 0], [-13, -2], [0, -1], [-5, -1], [-8, -1], [-60, -5], [-20, -2], [-23, -2], [-4, 0], [-9, 5], [-31, 16], [-43, 23], [-15, 8], [-22, 13], [-54, 47], [-1, 1], [0, 0], [-1, 2], [-5, 29], [-1, 7], [0, 6], [0, 0], [0, 2], [1, 1], [2, 3], [3, 3], [2, 1], [2, 1], [4, 2], [1, 0], [227, 102]], [[300683, 38038], [29, -20], [20, -25], [61, -129], [5, -22], [20, -42], [17, -16], [16, -16], [36, -28], [38, -28], [162, -164], [14, -15], [44, -87], [-5, -30], [-8, -47], [-11, -22], [0, 0], [-50, -4], [-58, 1], [-61, 1], [-139, 22], [-31, 284], [-7, 59], [-13, 23], [-22, 41], [-38, -6], [0, 0], [-116, 94], [7, 66], [8, 81], [1, 7], [2, 6], [0, 1], [1, 2], [4, 5], [1, 2], [3, 3], [15, 10], [9, 5], [2, 1], [2, 0], [1, 0], [1, 0], [1, 0], [0, 0], [2, 0], [7, -2], [7, -2], [17, -7], [6, -2]], [[300593, 38334], [8, -2], [35, -8], [24, -25], [6, -7], [-1, -27], [0, -35], [-2, -10], [-2, -5], [-2, -5], [-4, -9], [0, 0], [-1, 0], [-2, -2], [-4, -2], [-7, -4], [-4, -1], [-1, -1], [-2, -1], [-2, 0], [-8, 3], [-1, 1], [-1, 0], [-3, 2], [-1, 0], [0, 0], [-1, 1], [-1, 0], [-2, 1], [-5, 3], [0, 0], [0, 0], [-2, 2], [-2, 0], [-1, 1], [-1, 1], [-2, 1], [-50, 33], [-2, 2], [-5, 3], [0, 0], [0, 1], [-1, 0], [0, 1], [-2, 1], [0, 0], [-2, 2], [0, 1], [-1, 1], [-8, 10], [-3, 5], [-3, 5], [-1, 3], [0, 1], [0, 2], [0, 1], [0, 6], [0, 3], [0, 1], [0, 4], [3, 20], [0, 0], [4, 8], [1, 1], [1, 1], [0, 0], [14, 8], [4, 1], [4, 1], [10, 0], [19, 2], [1, 0], [1, 0], [2, 0], [2, 0], [1, 0], [2, 0], [1, 0]], [[300684, 38371], [-1, 0], [-1, 0], [-1, 0], [-2, 0], [-1, 1], [-1, 1], [-1, 2], [0, 0], [-1, 1], [0, 0], [0, 0], [0, 1], [-1, 0], [0, 1], [-1, 1], [0, 0], [-1, 2], [-1, 3], [-1, 1], [1, 2], [1, 2], [18, 32], [5, 8], [0, 0], [0, 0], [1, 0], [1, 1], [1, -1], [0, 0], [1, 0], [0, 0], [0, -1], [0, 0], [1, -1], [0, 0], [1, -1], [1, -2], [1, -2], [0, -1], [0, -2], [1, -1], [0, 0], [1, -4], [0, -2], [1, -7], [0, 0], [0, -1], [1, -3], [-1, -1], [0, 0], [0, -1], [0, -1], [0, 0], [-1, -2], [0, -3], [0, 0], [-1, 0], [0, -1], [-2, -4], [-1, -1], [-2, -3], [-1, -1], [-5, -6], [-2, -2], [-1, 0], [0, 0], [-1, -1], [-3, -2], [-1, 0], [0, 0], [-1, -1], [0, 0]], [[300637, 38432], [8, -35], [2, -10], [0, -6], [0, -3], [0, -3], [0, 0], [-1, -1], [0, -3], [-2, -7], [-1, -1], [0, 0], [-1, -2], [-2, -2], [-2, -3], [-1, -1], [0, 0], [-1, 0], [0, -1], [-4, -1], [-1, -1], [0, 0], [-1, 0], [-2, 0], [0, -1], [-1, 0], [-8, -2], [-36, 3], [-3, 1], [-6, 2], [-12, 3], [-2, 1], [0, 1], [-1, 1], [-1, 1], [-1, 1], [0, 1], [0, 2], [2, 5], [1, 3], [0, 1], [1, 1], [0, 1], [2, 3], [0, 0], [0, 0], [23, 31], [0, 1], [18, 18], [7, 6], [1, 0], [7, 5], [1, 0], [1, 0], [1, 0], [0, 0], [1, -1], [1, 0], [6, -1], [2, -1], [1, 0], [0, -1], [1, 0], [1, 0], [0, -1], [0, 0], [0, 0], [1, -1], [1, -1], [0, -1], [0, -1]], [[301459, 38529], [0, 0], [1, 0], [1, -1], [0, -2], [1, -1], [20, -74], [4, -45], [34, -186], [24, -127], [-52, -115], [-18, -38], [0, 0], [-26, 166], [-18, 113], [-1, 188], [4, 58], [5, 56], [1, 4], [1, 1], [3, 3], [4, 2], [5, 0], [4, 0], [0, 0], [0, 0], [3, -2]], [[301284, 38724], [4, 0], [11, -3], [2, -17], [1, -12], [-48, -103], [-1, -1], [-1, -1], [-1, -2], [-1, 0], [-19, -25], [-19, -23], [-19, -22], [-8, -8], [-1, -1], [-9, -4], [0, 0], [0, 0], [-1, -1], [-5, -1], [-93, 7], [-7, 1], [-5, 0], [-1, 0], [-1, 1], [-3, 2], [-23, 20], [-2, 3], [-2, 2], [0, 0], [0, 10], [2, 9], [2, 8], [0, 0], [21, 26], [15, 15], [10, 11], [6, 5], [5, 5], [68, 54], [2, 1], [72, 33], [41, 12], [3, 0], [1, 0], [0, 0], [1, 0], [1, 0], [2, -1]], [[301369, 39144], [17, -11], [8, -24], [2, -7], [9, -37], [13, -58], [20, -94], [30, -139], [7, -95], [0, -2], [-3, -49], [-8, -27], [0, -1], [-1, -2], [0, 0], [-1, -1], [-8, -3], [-3, -1], [-1, 0], [-7, 1], [-4, 3], [-8, 5], [-8, 39], [-2, 15], [-7, 38], [0, 3], [-2, 14], [0, 5], [0, 1], [0, 2], [0, 1], [-1, 1], [1, 4], [0, 1], [0, 1], [-8, 92], [-5, 63], [-44, 229], [-6, 21], [-1, 7], [1, 3], [0, 2], [0, 0], [4, 6], [0, 1], [1, 0], [0, 0], [1, 0], [0, 0], [14, -7]], [[301356, 39656], [15, -4], [1, -1], [1, 0], [1, 0], [0, 0], [0, -2], [0, -1], [0, 0], [-1, -4], [-1, -4], [0, -2], [-1, -2], [-4, -14], [0, -1], [0, -1], [-1, -1], [0, -1], [-1, -1], [-2, -2], [-2, -3], [-1, 0], [-4, -1], [-9, -2], [-1, 0], [-1, 0], [-5, 4], [-1, 2], [-1, 1], [-1, 1], [-1, 1], [0, 2], [-1, 3], [-3, 13], [1, 3], [0, 1], [0, 3], [1, 2], [0, 0], [1, 1], [0, 0], [1, 3], [0, 1], [1, 2], [1, 0], [0, 0], [2, 2], [0, 1], [1, 0], [1, 1], [1, 0], [1, 0], [3, 1], [1, 0], [8, -1]], [[300921, 39920], [5, -2], [30, -11], [0, 0], [3, -4], [4, -5], [4, -9], [2, -3], [2, -5], [6, -30], [1, -2], [0, -1], [0, 0], [0, -1], [0, -2], [-1, -1], [0, -1], [-5, -18], [-1, -1], [0, -2], [-19, -60], [-4, -8], [0, -1], [-2, -2], [-6, -7], [-6, -5], [0, 0], [-2, -2], [0, 0], [-1, 0], [-1, -1], [-1, -1], [-1, 0], [-6, -2], [-4, -1], [-5, 0], [0, 0], [-87, 6], [0, 0], [-12, 26], [0, 0], [0, 91], [1, 6], [8, 27], [3, 3], [4, 3], [28, 17], [17, 2], [11, 5], [3, 2], [5, 3], [9, 4], [1, 0], [0, 1], [0, 0], [1, -1], [2, 0], [1, -1], [6, -3], [7, -3]], [[300885, 40451], [2, -2], [1, -2], [1, -1], [0, 0], [1, -1], [7, -10], [1, -3], [16, -42], [4, -12], [10, -32], [12, -48], [1, -4], [-30, -39], [-40, -36], [-17, -4], [-21, -5], [0, 0], [-51, 99], [-1, 2], [0, 0], [0, 2], [-1, 0], [0, 2], [-2, 17], [1, 23], [4, 41], [3, 7], [2, 5], [2, 6], [4, 8], [2, 4], [3, 4], [11, 11], [10, 10], [5, 4], [2, 2], [2, 1], [19, 7], [11, 3], [0, 0], [1, 0], [2, 0], [23, -17]], [[301067, 40535], [2, -10], [0, 0], [0, -3], [0, -1], [0, 0], [0, -3], [0, -5], [0, -2], [0, -3], [-1, -2], [0, 0], [0, -1], [-1, 0], [-5, -2], [-47, -20], [0, 0], [-6, 4], [-8, 6], [10, 18], [6, 11], [23, 12], [12, 3], [10, 2], [5, -4]], [[300733, 40701], [5, -1], [4, -1], [2, 0], [5, -2], [11, -7], [0, 0], [0, -1], [1, -3], [1, -6], [2, -7], [2, -8], [1, -2], [0, -1], [0, 0], [2, -6], [1, -7], [-1, -2], [-5, -6], [-1, 0], [0, -1], [-1, -1], [-2, -2], [-2, -2], [-1, 0], [0, -1], [-3, -2], [-7, -2], [-6, -1], [-6, -1], [-1, 0], [-2, 0], [-4, 1], [-1, 0], [-2, 1], [0, 1], [-1, 0], [-1, 1], [-4, 2], [-7, 5], [-3, 3], [-1, 1], [0, 1], [-1, 1], [-3, 6], [-2, 4], [0, 1], [-1, 4], [0, 2], [0, 2], [0, 2], [2, 6], [1, 4], [0, 1], [0, 0], [1, 2], [1, 3], [2, 3], [3, 4], [4, 4], [1, 1], [4, 4], [10, 3], [1, 0], [1, 0], [1, 0]], [[300190, 40822], [1, 0], [1, -1], [1, 0], [1, -1], [1, 0], [0, 0], [2, -2], [0, -1], [0, 0], [0, 0], [1, -1], [0, -1], [1, -2], [0, -1], [1, -1], [1, -11], [1, -1], [0, -1], [-2, -7], [-4, -14], [-2, -7], [-1, 0], [-1, -3], [0, 0], [-1, -1], [0, -1], [-1, -1], [-5, -1], [-2, 0], [-1, 0], [0, 1], [-1, 0], [-1, 1], [-1, 1], [-1, 1], [-1, 2], [-1, 1], [-10, 27], [-1, 5], [-1, 7], [0, 0], [0, 1], [1, 1], [1, 2], [0, 0], [0, 0], [1, 1], [1, 1], [15, 9], [0, 0], [1, 0], [1, 0], [2, 0], [1, -1], [1, 0], [0, 0], [1, -1]], [[300136, 40903], [3, -3], [5, -5], [3, -7], [6, -15], [3, -7], [0, -1], [0, -1], [0, -3], [0, -1], [0, 0], [-2, -6], [0, -3], [-1, -1], [0, 0], [0, -1], [-4, -5], [0, 0], [0, 0], [-1, -1], [0, 0], [-1, 0], [0, 0], [-6, 5], [-19, 28], [0, 1], [0, 1], [-2, 2], [0, 1], [-1, 3], [-1, 9], [1, 3], [2, 3], [0, 0], [7, 7], [1, 0], [1, 0], [0, 0], [1, 0], [4, -3], [1, 0]], [[300143, 41018], [1, 0], [3, -1], [1, -1], [2, -1], [0, 0], [1, -1], [0, 0], [0, -1], [5, -18], [0, 0], [0, -2], [1, -10], [0, -2], [0, -4], [0, -1], [0, 0], [0, 0], [-15, -11], [-20, -6], [-9, 1], [-11, 12], [-4, 13], [0, 0], [-1, 10], [0, 11], [9, 13], [0, 0], [1, 1], [0, 0], [1, 1], [0, 0], [35, -3]], [[300065, 41179], [5, -1], [10, -6], [0, 0], [1, -1], [3, -3], [1, -2], [3, -5], [1, -4], [1, -1], [1, -20], [0, -11], [0, -17], [1, -25], [-3, -22], [-1, -6], [0, -3], [0, -4], [-1, -1], [0, -1], [0, 0], [0, -1], [-1, 0], [-7, 3], [-5, 3], [-10, 8], [-1, 1], [-4, 4], [-1, 1], [-1, 1], [-1, 2], [-2, 4], [0, 0], [0, 8], [0, 19], [2, 8], [2, 12], [9, 18], [0, 1], [1, 2], [0, 1], [0, 0], [0, 1], [-1, 5], [-2, 5], [-1, 2], [-2, 3], [-3, 4], [-1, 2], [-2, 4], [0, 1], [0, 1], [-1, 1], [0, 3], [0, 6], [0, 1], [0, 0], [1, 1], [0, 0], [0, 1], [1, 0], [0, 0], [1, 0], [0, 0], [0, -1], [6, -1], [1, -1]], [[202383, 69853], [108, -15], [234, 63], [311, -148], [-78, -91], [-266, -125], [-371, -56], [-95, 39], [-199, 223], [89, 148], [104, 46], [51, -15], [112, -69]], [[301302, 23358], [-1, 0], [0, -1], [-1, -1], [-1, -1], [-8, -3], [-7, -3], [-12, 2], [-10, 2], [-3, 1], [-4, 2], [-5, 3], [-3, 2], [-2, 7], [-1, 6], [0, 5], [-1, 5], [0, 2], [1, 21], [0, 3], [5, 12], [0, 0], [20, -6], [3, -2], [2, -1], [6, -4], [1, 0], [1, 0], [22, -16], [1, -23], [-2, -5], [-1, -7]], [[96766, 69172], [-5, -2], [-2, 2], [0, 0], [-2, 2], [-1, 1], [0, 0], [-1, 1], [-1, 1], [-1, 1], [-4, 4], [-1, 2], [-1, 1], [0, 1], [-4, 7], [-7, 21], [-2, 5], [0, 0], [-5, 35], [-1, 33], [2, 2], [2, 3], [1, 1], [0, 1], [1, 1], [0, 1], [0, 1], [1, 4], [-1, 5], [-1, 6], [-5, 14], [-3, 8], [-1, 3], [0, 0], [-1, 1], [-9, 18], [0, 1], [-1, 0], [-2, 3], [-1, 2], [-2, 3], [0, 0], [-1, 1], [-8, 7], [-10, 7], [0, 0], [-1, 0], [-13, 5], [-2, 1], [0, 0], [10, 18], [17, 30], [73, -39], [27, -26], [1, 0], [4, -71], [-10, -43], [-13, -56], [-1, -2], [0, -1], [-5, -11], [0, -1], [-1, -1], [0, 0], [-1, -2], [-2, -4], [-1, -1], [-1, -1], [-1, 0], [-1, -2], [-2, -1]], [[101330, 75243], [-2, 0], [-8, 7], [-1, 1], [-7, 14], [-4, 6], [0, 1], [0, 1], [-5, 10], [-1, 2], [-1, 1], [3, 17], [0, 3], [0, 0], [13, 0], [1, -1], [26, -27], [4, -4], [2, -2], [0, -1], [1, -1], [0, 0], [1, -1], [0, -1], [0, 0], [1, -4], [-3, -9], [-1, -1], [0, 0], [-1, -2], [0, 0], [0, -1], [-8, -4], [-4, -2], [-1, 0], [-1, -1], [-1, 0], [0, 0], [-1, 0], [-1, -1], [-1, 0]], [[101116, 75417], [0, 0], [-13, -4], [-3, -1], [-1, 1], [-4, 1], [-3, 0], [-3, 0], [-1, 0], [0, 0], [-1, 1], [0, 0], [-2, 3], [1, 0], [0, 1], [0, 1], [0, 1], [0, 3], [1, 4], [1, 5], [1, 6], [1, 3], [2, 3], [3, 1], [3, 1], [3, 1], [3, 1], [5, -1], [9, -3], [1, -1], [0, -1], [0, 0], [2, -6], [0, -2], [0, -2], [1, -2], [-1, -1], [0, -1], [0, -1], [-3, -11], [-2, 0]], [[86489, 52423], [-64, -49], [-8, -6], [-53, 15], [-1, 0], [-2, 69], [-3, 95], [36, 159], [51, 22], [109, 48], [115, -71], [0, 0], [-3, -17], [-3, -23], [-34, -21], [-48, -30], [-42, -87], [-50, -104]], [[76766, 55942], [45, -81], [70, -123], [139, -363], [218, -444], [0, 0], [-45, -175], [-50, -59], [-157, -60], [-112, -42], [-190, 45], [-67, 108], [13, 54], [0, 0], [140, 159], [108, 49], [0, 0], [-168, 634], [-63, 96], [-64, -35], [-21, 24], [-16, 18], [220, 195]], [[78402, 54714], [-74, -19], [-30, 15], [-49, 25], [49, 62], [55, 65], [40, 47], [33, 38], [63, 47], [38, -5], [35, -4], [19, -34], [-115, -152], [-64, -85]], [[77724, 54942], [0, 0], [-143, -44], [0, 0], [-117, 85], [-11, 73], [22, 64], [16, 47], [221, 41], [0, 0], [56, -75], [12, -15], [0, 0], [-22, -129], [0, 0], [-7, -10], [-27, -37]], [[76724, 55249], [-22, -13], [-57, -36], [-45, 9], [-67, 14], [-38, 174], [-4, 21], [173, 50], [0, 0], [66, -97], [-6, -122]], [[77448, 55400], [-24, -47], [-143, 8], [-40, 25], [-35, 22], [-10, 34], [-15, 49], [63, 105], [46, -26], [127, -70], [16, -53], [15, -47]], [[205672, 32873], [-12, -1], [-95, 14], [-43, 25], [-10, 6], [-31, 21], [6, 31], [37, 179], [22, 65], [9, 21], [103, 160], [7, 11], [21, 28], [25, 27], [11, 9], [10, 5], [5, 0], [6, -3], [36, -18], [18, -13], [107, -244], [-30, -112], [-6, -17], [-42, -108], [-39, -38], [-13, -8], [-58, -27], [-44, -13]], [[210806, 33744], [-81, -29], [-4, 1], [-1, 0], [-4, 2], [-3, 1], [-32, 31], [8, 16], [78, 53], [3, 1], [10, 6], [1, 0], [15, 1], [23, -12], [5, -2], [9, -6], [1, -25], [-1, -3], [0, -1], [-13, -18], [-4, -5], [-7, -9], [-2, -1], [-1, -1]], [[204937, 44060], [-2, 0], [-2, 1], [-1, 1], [-43, 70], [-12, 20], [-5, 9], [-1, 2], [-24, 49], [0, 2], [0, 1], [0, 1], [1, 15], [1, 0], [1, 1], [2, -1], [2, -2], [1, -1], [1, -1], [2, -2], [1, -2], [81, -125], [1, -1], [3, -4], [1, -2], [1, -1], [1, -1], [3, -13], [-1, -3], [0, -2], [-1, -1], [-1, -1], [-1, -3], [-7, -5], [-2, -1]], [[218605, 47518], [-33, -48], [-1, -3], [-2, 0], [-2, -1], [-3, -1], [-2, 2], [-2, 2], [-1, 1], [-43, 153], [48, -113], [-1, -2], [0, -11], [0, -5], [0, -2], [0, -1], [0, -9], [0, -2], [0, -2], [0, -1], [0, -2], [2, -2], [4, 3], [1, 1], [1, 1], [27, 43], [9, 16], [5, 75], [-10, 30], [-17, 21], [-17, 28], [3, 1], [4, 1], [4, -3], [1, 0], [36, -53], [-4, -97], [-7, -20]], [[150941, 37912], [-53, -16], [-19, 1], [-19, 17], [2, 25], [10, 28], [0, 1], [1, 1], [1, 2], [0, 0], [49, 51], [4, 1], [1, 0], [1, 0], [1, 0], [0, 0], [27, -7], [13, -10], [16, -36], [-4, -19], [-3, -5], [-6, -10], [-1, -2], [-2, -2], [-2, -2], [-17, -18]], [[147256, 10846], [15, -14], [34, -52], [1, -1], [1, -2], [1, -2], [0, -1], [0, -5], [-10, -24], [-3, -3], [-27, 8], [-3, 0], [-2, 2], [0, 2], [-11, 16], [-26, 23], [-21, 11], [-2, 0], [-2, 0], [-1, 1], [-1, 0], [-3, 0], [-2, 12], [6, 22], [13, 6], [3, -2], [9, 2], [31, 1]], [[144872, 14141], [-7, -4], [-11, 6], [-4, 3], [-1, 1], [-1, 1], [0, 13], [0, 2], [0, 1], [1, 4], [0, 1], [14, 9], [11, 5], [25, -11], [7, -6], [0, -3], [0, -2], [0, -1], [-2, -1], [-32, -18]], [[145222, 14309], [-1, 0], [-8, 1], [-28, 13], [-20, 29], [-3, 7], [-2, 5], [-1, 3], [6, 18], [3, 8], [1, 2], [17, 29], [14, 3], [25, 0], [13, -1], [10, -6], [4, -5], [8, -9], [1, -2], [1, -1], [1, -1], [1, -1], [1, -2], [8, -19], [0, -2], [2, -6], [0, -3], [0, -2], [-1, -1], [-1, -3], [-2, -2], [-40, -46], [-1, -1], [-1, -1], [-2, -2], [-1, -1], [0, 0], [-1, 0], [-3, -1]], [[143430, 46859], [-39, -13], [-8, 3], [-8, 10], [-2, 2], [-1, 2], [-1, 5], [-1, 26], [4, 28], [7, 20], [13, 14], [8, 2], [5, 0], [9, -3], [1, -1], [2, 0], [1, -1], [20, -19], [15, -15], [11, -16], [5, -17], [-18, -16], [-23, -11]], [[85132, 83152], [-117, -20], [0, 0], [42, 101], [9, 20], [144, 95], [125, 83], [67, -49], [-35, -142], [0, 0], [-74, 0], [-14, 0], [-7, -4], [-140, -84]], [[311495, 34356], [-1, -1], [0, 0], [-1, 1], [-3, 1], [-5, 2], [-9, 4], [0, 0], [0, 0], [-4, 11], [0, 0], [7, 11], [2, 4], [4, 16], [0, 0], [0, 1], [-5, 10], [0, 0], [0, 11], [0, 1], [0, 0], [0, 0], [6, 5], [3, 0], [0, 0], [11, 1], [4, -4], [0, 0], [0, 0], [4, -1], [2, -2], [5, -4], [0, -2], [1, -1], [5, -41], [-12, -15], [0, 0], [0, 0], [-4, -3], [-8, -5], [-2, 0]], [[1374, 34379], [-1, 0], [0, 0], [-1, 1], [0, 7], [0, 10], [1, 20], [0, 3], [1, 2], [1, 7], [2, 4], [4, 6], [1, 1], [0, 0], [1, 0], [0, 0], [1, 0], [0, 0], [1, 0], [1, -1], [0, 0], [1, -1], [0, 0], [1, -1], [1, -1], [0, -1], [1, -1], [0, -1], [0, -3], [0, -4], [-1, -23], [-1, -4], [0, -1], [0, -1], [0, -1], [0, 0], [0, -2], [-1, 0], [0, -1], [-1, -2], [0, 0], [0, 0], [-3, -6], [0, 0], [0, -1], [-1, 0], [0, -1], [-1, 0], [0, -1], [0, 0], [-1, -1], [-4, -1], [-1, -1], [-1, 0]], [[1247, 34396], [-18, -1], [-19, 0], [-2, 1], [-1, 1], [0, 0], [-1, 1], [0, 0], [-1, 1], [0, 1], [-1, 1], [-1, 2], [0, 0], [0, 5], [-1, 10], [0, 2], [0, 2], [2, 7], [4, 8], [10, 17], [4, 2], [5, 3], [5, -2], [3, -1], [12, -60]], [[310393, 34572], [-28, -46], [0, -1], [-1, 0], [-35, -10], [-2, -1], [-12, -1], [-36, -3], [-17, 3], [-11, 17], [-8, 13], [0, 0], [1, 12], [0, 0], [-31, -1], [-30, -2], [-65, -37], [0, 0], [-6, -23], [0, -1], [0, 0], [-1, 60], [81, 62], [27, 12], [42, 18], [15, -2], [18, -4], [22, -6], [14, -3], [17, -5], [14, -4], [21, -22], [8, -17], [3, -8]], [[109, 34572], [-6, -3], [-1, 1], [0, 0], [-2, 2], [0, 1], [0, 0], [-1, 1], [0, 1], [0, 1], [0, 0], [3, 29], [1, 10], [2, 16], [7, 19], [3, 7], [2, 5], [1, 0], [2, 1], [39, -11], [-3, -28], [-9, -10], [-31, -35], [-7, -7], [0, 0]], [[910, 34580], [-6, -2], [-1, 1], [0, 0], [0, 0], [-7, 9], [-1, 1], [-1, 1], [-4, 7], [-4, 10], [-1, 1], [-1, 4], [0, 2], [-1, 2], [0, 2], [0, 5], [0, 1], [0, 10], [1, 4], [4, 8], [0, 1], [0, 0], [1, 1], [0, 0], [4, 3], [14, 12], [1, 1], [1, 1], [1, 0], [1, 0], [0, -1], [1, 0], [0, -1], [1, 0], [4, -7], [2, -3], [0, -1], [1, -1], [0, -1], [3, -11], [2, -5], [1, -8], [1, -5], [0, -6], [0, -1], [0, 0], [0, -1], [0, -2], [0, 0], [0, -1], [-3, -11], [0, -1], [0, 0], [-1, -1], [-9, -14], [-2, -2], [-2, -1]], [[310406, 34713], [2, -4], [4, 2], [2, 0], [0, 0], [1, 0], [3, 0], [1, 0], [1, 0], [7, -30], [-1, -4], [0, -2], [0, 0], [-2, -7], [-22, -29], [0, 0], [-2, 0], [-1, 0], [-3, 0], [-3, 2], [-1, 1], [-14, 16], [-3, 5], [-3, 8], [-1, 7], [0, 2], [2, 7], [0, 4], [0, 0], [0, 0], [6, 9], [17, 10], [10, 3]], [[1214, 34734], [0, 0], [-12, -5], [-29, 3], [-16, 3], [-4, 2], [0, 0], [-1, 1], [0, 1], [-1, 5], [0, 0], [0, 1], [1, 1], [2, 2], [1, 0], [1, 0], [0, 0], [26, -1], [14, -1], [17, -3], [0, 0], [0, 0], [1, -1], [0, 0], [1, 0], [0, -2], [0, 0], [0, 0], [0, -1], [0, 0], [1, -1], [-1, -3], [-1, -1]], [[1298, 34937], [-1, 0], [-1, -1], [-1, 0], [0, 1], [0, 0], [-1, 0], [0, 0], [-1, 0], [-9, 10], [-4, 5], [-1, 1], [0, 3], [0, 9], [0, 1], [0, 1], [1, 5], [1, 2], [1, 1], [1, 0], [0, 1], [0, 0], [1, 1], [1, 0], [0, 1], [2, 0], [2, 1], [1, 1], [1, 0], [2, 1], [0, 0], [1, 0], [1, 0], [1, 0], [0, -1], [0, 0], [3, -3], [6, -6], [3, -10], [0, -1], [0, -2], [0, -1], [-1, -3], [-1, -1], [0, -1], [0, 0], [0, -1], [-6, -11], [-1, -1], [0, 0], [0, -1], [-1, -1], [0, 0]], [[311615, 34948], [0, 0], [-3, -1], [-2, -1], [-7, 3], [-40, 61], [-3, 6], [-2, 5], [-1, 2], [0, 2], [0, 2], [1, 2], [1, 2], [14, 9], [14, 9], [3, 1], [4, 1], [39, 10], [8, 2], [2, 0], [0, 0], [9, 0], [3, -1], [1, 0], [4, -3], [2, -1], [1, 0], [0, -1], [1, 0], [0, -1], [0, -3], [0, -2], [0, -1], [0, 0], [0, -1], [0, 0], [0, -1], [0, 0], [0, -1], [0, -1], [-1, -1], [-46, -93], [-1, -3], [-1, -1]], [[309671, 35016], [0, 0], [-1, 0], [0, 0], [-1, 1], [-6, 6], [-1, 2], [0, 1], [-32, 81], [0, 7], [0, 3], [0, 0], [2, 3], [15, 18], [0, 0], [0, 0], [1, 1], [0, 0], [1, 0], [0, 0], [1, 1], [1, 0], [1, 0], [1, 0], [1, 0], [1, -1], [0, 0], [0, 0], [1, -1], [0, 0], [0, -1], [3, -5], [5, -10], [0, -2], [1, 0], [2, -6], [11, -87], [-1, -4], [-1, -2], [-1, -3], [0, 0], [0, 0], [-1, 0], [-1, -1], [-1, 0], [0, -1], [-1, 0]], [[1052, 35412], [-4, 0], [-12, -1], [0, 0], [0, 0], [-19, 17], [-3, 8], [-6, 16], [3, 21], [0, 3], [0, 0], [8, 6], [6, 5], [4, 1], [1, 0], [2, 0], [7, 1], [1, 0], [4, 0], [0, 0], [0, 0], [4, -1], [6, -2], [21, -6], [0, 0], [5, -4], [2, -2], [1, -2], [2, -2], [0, 0], [1, -1], [6, -11], [1, -1], [0, -1], [0, -1], [1, -2], [0, -1], [0, 0], [0, -1], [0, -6], [0, 0], [-1, 0], [-22, -21], [-12, -7], [-7, -5], [0, 0]], [[310462, 35517], [-1, 0], [-4, -1], [-27, 10], [-1, 0], [-2, 2], [4, 9], [7, 14], [1, 3], [1, 1], [1, 1], [0, 1], [9, 10], [8, 4], [10, -12], [9, -25], [0, 0], [0, -1], [0, -1], [0, -1], [0, -1], [0, 0], [0, 0], [-1, -1], [0, -1], [-1, -1], [-1, -2], [0, 0], [-2, -2], [-1, -1], [-9, -5]], [[831, 35683], [-1, 0], [-4, 0], [-3, 0], [-2, 1], [-1, 0], [0, 0], [-3, 2], [-13, 18], [-4, 10], [-1, 2], [0, 1], [-1, 1], [0, 0], [0, 1], [0, 1], [1, 2], [0, 0], [0, 1], [0, 2], [1, 1], [0, 1], [0, 0], [1, 0], [0, 1], [0, 0], [2, 2], [2, 3], [0, 0], [1, 2], [4, 3], [0, 1], [1, 0], [0, 0], [1, 0], [6, -4], [0, 0], [0, 0], [6, -4], [3, -2], [3, -2], [4, -3], [0, -1], [2, -3], [0, -1], [0, 0], [1, -1], [0, 0], [2, -8], [1, -1], [0, 0], [0, -1], [0, -2], [0, -9], [0, -1], [0, -1], [0, -2], [-1, -3], [-1, -3], [0, -2], [-1, 0], [0, 0], [0, 0], [-3, -2], [-1, 0], [0, 0], [-1, 0], [0, 0], [-1, 0], [0, 0]], [[311137, 35554], [0, 0], [-1, 0], [-1, 0], [-1, 0], [-2, 1], [-8, 2], [-1, 1], [-1, 1], [-48, 59], [-23, 28], [-5, 9], [0, 25], [3, 21], [4, 24], [8, 9], [10, 10], [3, 3], [4, 4], [1, 0], [3, 3], [2, 0], [3, 1], [6, 0], [2, 0], [1, 0], [1, 0], [0, 0], [1, 0], [1, -1], [1, -1], [1, 0], [0, 0], [0, -1], [1, 0], [0, -1], [1, 0], [0, -1], [5, -8], [3, -6], [1, -1], [0, 0], [0, -1], [23, -48], [7, -17], [0, 0], [0, -1], [5, -23], [8, -36], [1, -12], [0, -9], [0, -2], [0, 0], [0, -5], [0, -6], [-12, -17], [-1, -2], [0, 0], [-1, -1], [-1, 0], [-3, -1], [-1, 0]], [[311185, 35935], [0, 0], [6, -2], [7, -2], [10, 0], [1, 0], [2, -1], [10, -5], [1, -1], [2, -1], [0, -1], [0, 0], [-8, -46], [0, -1], [-1, -3], [-1, -1], [0, -1], [0, -1], [-1, -1], [-3, -6], [0, -2], [0, 0], [-2, -2], [-1, -1], [0, 0], [0, 0], [-1, 0], [-1, 0], [-1, 0], [-2, 1], [-3, 1], [0, 0], [0, 0], [-1, 1], [-17, 27], [-1, 11], [-3, 17], [8, 20]], [[310984, 35907], [-8, 0], [-5, 4], [-6, 6], [-3, 5], [-4, 7], [0, 1], [0, 1], [0, 8], [0, 0], [8, 4], [2, 1], [6, -1], [1, 0], [0, 0], [0, 0], [0, 0], [1, -1], [0, 0], [1, 0], [1, -1], [0, 0], [0, 0], [1, -1], [0, 0], [1, -1], [0, 0], [0, 0], [10, -12], [1, -1], [0, -2], [0, -1], [1, -2], [-1, -2], [0, 0], [0, -1], [-1, 0], [-3, -7], [-1, -2], [0, 0], [0, -1], [0, 0], [-1, -1], [-1, 0]], [[309268, 35954], [-11, -4], [-8, 1], [-2, 0], [-5, 5], [-2, 3], [-6, 14], [0, 0], [0, 0], [0, 1], [0, 1], [5, 4], [5, 1], [0, 0], [11, 3], [4, 0], [0, -1], [0, 0], [1, 0], [0, 0], [2, -1], [0, 0], [1, -1], [0, 0], [1, -1], [1, -1], [1, -4], [3, -11], [1, -6], [-2, -3]], [[604, 35933], [-3, 0], [-23, 7], [-4, 3], [-3, 1], [0, 0], [-2, 3], [-1, 1], [0, 0], [0, 0], [-1, 1], [0, 1], [0, 1], [-1, 0], [0, 1], [0, 1], [0, 1], [0, 0], [0, 1], [0, 1], [2, 9], [2, 12], [1, 6], [1, 2], [0, 1], [1, 1], [0, 0], [0, 0], [0, 0], [0, 1], [1, 0], [1, 1], [0, 0], [0, 1], [1, 0], [2, 2], [2, 2], [3, 1], [1, 1], [0, 0], [0, 0], [3, 1], [1, 0], [0, 1], [1, 0], [1, 0], [2, 0], [12, -1], [2, -1], [0, 0], [1, 0], [0, -1], [1, 0], [1, -1], [1, 0], [0, 0], [9, -6], [1, -1], [1, -1], [0, -1], [0, 0], [1, -1], [0, 0], [0, -1], [0, -1], [0, -1], [1, -1], [0, -1], [0, -1], [0, -1], [0, -2], [0, 0], [0, -1], [0, 0], [0, -1], [1, -1], [0, -2], [0, -3], [0, -6], [0, -1], [0, -1], [0, 0], [0, -1], [0, -1], [0, -2], [-1, 0], [0, -1], [0, -2], [-1, -1], [0, 0], [-1, -1], [-1, -3], [-1, -2], [-1, -1], [0, 0], [0, -1], [0, 0], [-1, -1], [-3, -2], [-7, -5], [-2, -1], [0, -1], [-1, 0]], [[310632, 35923], [0, -1], [-1, 0], [-2, 0], [0, 0], [-7, 6], [-8, 7], [-1, 2], [-3, 5], [-1, 2], [-2, 6], [-3, 7], [-11, 31], [-2, 12], [0, 0], [0, 1], [0, 2], [1, 1], [0, 2], [0, 0], [0, 1], [1, 1], [2, 1], [1, 0], [0, 1], [0, 0], [23, -33], [20, -30], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [3, -5], [0, 0], [0, -8], [0, -1], [0, 0], [-1, -1], [0, -1], [-1, 0], [0, -1], [-1, -1], [-3, -3], [-3, -3], [-1, 0]], [[1037, 36024], [-3, -2], [-3, 1], [-4, 2], [-1, 0], [-2, 1], [-1, 0], [-6, 8], [-10, 12], [0, 0], [0, 1], [0, 0], [0, 1], [-1, 1], [-1, 3], [0, 3], [-1, 5], [1, 4], [1, 1], [1, 2], [1, 2], [1, 0], [1, 2], [1, 0], [0, 1], [1, 0], [0, 0], [3, 0], [1, 0], [1, 0], [7, 0], [4, -4], [4, -5], [0, 0], [1, 0], [0, -1], [0, -1], [1, 0], [6, -28], [0, 0], [0, -1], [0, 0], [0, 0], [0, -2], [0, -2], [-2, -3], [-1, -1], [0, 0], [0, 0]], [[310673, 35979], [-17, -3], [-11, 4], [-13, 3], [0, 0], [-1, 1], [0, 1], [0, 0], [-1, 2], [-1, 1], [-3, 8], [-1, 1], [-1, 1], [-5, 23], [-1, 7], [-3, 19], [-1, 6], [0, 12], [6, 12], [9, 19], [0, 0], [4, 3], [11, 8], [2, 1], [4, 2], [5, 0], [5, 0], [5, 0], [3, -1], [1, 0], [1, -1], [2, -1], [6, -4], [1, -1], [8, -20], [3, -9], [1, -2], [7, -37], [0, -2], [1, -2], [-2, -10], [-2, -9], [-2, -7], [-1, -4], [-2, -5], [-3, -4], [-1, -2], [-1, -1], [0, 0], [-2, -2], [-4, -3], [-5, -3], [-1, -1]], [[730, 36275], [-1, 0], [0, 0], [-5, 1], [-2, 1], [0, 0], [-2, 0], [-1, 1], [-2, 1], [-2, 2], [0, 0], [-1, 0], [-1, 1], [-1, 1], [0, 1], [-1, 1], [-2, 3], [-2, 4], [0, 1], [0, 0], [0, 1], [0, 3], [0, 4], [0, 0], [0, 0], [0, 5], [1, 4], [2, 5], [5, 9], [4, 2], [9, 3], [3, 1], [1, 0], [1, 0], [0, 0], [1, -1], [1, 0], [0, 0], [0, 0], [1, -1], [1, -1], [0, -1], [10, -14], [2, -3], [1, -1], [1, -5], [0, -1], [0, -3], [0, -2], [0, 0], [0, -1], [0, -2], [-1, -1], [0, 0], [0, -1], [0, -1], [-2, -3], [0, -2], [-2, -2], [-5, -6], [0, 0], [-1, -1], [-1, -1], [0, 0], [0, 0], [-4, -1], [-1, 0], [-4, 0], [0, 0]], [[310500, 35709], [-32, -149], [0, 0], [-9, 12], [-1, 1], [0, 0], [0, 0], [-1, 0], [-4, 0], [-91, -11], [-56, -6], [-11, -4], [-23, -9], [-57, -34], [-32, -24], [-34, -25], [-18, -26], [-20, -31], [-1, 0], [-35, -10], [-36, -1], [-52, -3], [-28, -1], [-48, -1], [-41, -1], [-467, 161], [-36, 53], [-24, 59], [-16, 39], [-5, 37], [4, 72], [2, 5], [3, 8], [10, 15], [2, 4], [362, 476], [426, 112], [48, -52], [19, -21], [50, -71], [19, -27], [90, -80], [5, -4], [91, -212], [46, -245], [1, -6]], [[309221, 36447], [-22, -3], [-1, 0], [-3, 12], [1, 4], [3, 26], [1, 7], [2, 8], [0, 0], [5, 1], [18, 3], [10, -3], [1, -7], [0, -3], [0, 0], [1, -2], [1, -8], [0, -2], [0, 0], [-1, -1], [-4, -10], [-5, -12], [-4, -6], [-3, -4]], [[744, 36486], [0, 0], [-1, 0], [-10, 1], [-8, 5], [-1, 2], [-2, 2], [-1, 2], [0, 0], [0, 1], [0, 1], [-1, 3], [-1, 3], [0, 2], [0, 0], [0, 0], [0, 0], [0, 6], [0, 0], [0, 0], [0, 1], [1, 1], [0, 3], [1, 1], [0, 1], [0, 0], [0, 1], [1, 0], [0, 1], [1, 1], [0, 0], [0, 0], [0, 1], [2, 1], [1, 0], [1, 0], [0, 0], [2, 0], [3, 0], [2, -1], [2, 0], [2, -1], [1, 0], [0, 0], [0, 0], [1, 0], [0, 0], [1, -1], [5, -4], [0, 0], [0, -1], [1, 0], [0, 0], [2, -2], [0, -1], [1, -1], [1, -2], [0, 0], [0, 0], [0, -2], [1, -9], [0, -4], [-1, -2], [0, -1], [0, 0], [-1, 0], [0, -2], [-1, 0], [0, -1], [-1, -1], [0, 0], [-1, -1], [-3, -3]], [[311168, 36359], [-7, -2], [-2, 3], [-17, 148], [2, 2], [1, 1], [5, 3], [10, 6], [11, 3], [3, 1], [33, 7], [2, -1], [2, -1], [1, 0], [0, 0], [1, -2], [0, -1], [1, -2], [1, -2], [0, -2], [2, -3], [0, -1], [0, 0], [5, -69], [-12, -31], [-8, -22], [-6, -11], [-1, -3], [0, 0], [-20, -17], [-7, -4]], [[896, 36586], [10, -51], [5, -23], [0, 0], [-12, 5], [-16, 8], [0, 0], [-5, 12], [-23, 58], [-17, 23], [3, 3], [0, 0], [9, -4], [46, -31]], [[309312, 36645], [-21, -17], [0, 0], [-1, 1], [-11, 10], [28, 64], [46, 19], [0, 0], [7, -17], [-2, -6], [-4, -9], [-1, -3], [-1, -1], [-6, -7], [-2, -2], [0, 0], [-32, -32]], [[309406, 36821], [0, 0], [0, 0], [-1, 0], [-2, 1], [-1, 0], [0, 0], [-1, 1], [-5, 4], [-2, 2], [-2, 2], [-3, 9], [0, 0], [7, 20], [10, 5], [0, 0], [6, 1], [0, 0], [0, 0], [0, 1], [0, 0], [1, 0], [2, 0], [1, 0], [0, 0], [1, -3], [1, -2], [0, -1], [0, 0], [1, -3], [1, -5], [0, -1], [0, -2], [-2, -5], [0, -1], [-8, -20], [0, 0], [0, -1], [-4, -2]], [[309483, 36910], [-25, -32], [-1, 0], [-1, 0], [-14, 10], [-1, 7], [2, 15], [1, 3], [1, 1], [2, 5], [2, 3], [27, 35], [3, 3], [6, 6], [1, 0], [0, 0], [2, -2], [0, -1], [5, -34], [-10, -19]], [[310256, 37002], [-3, -16], [-18, 5], [-6, 4], [-8, 4], [-4, 3], [-1, 3], [-8, 28], [0, 0], [1, 0], [1, 1], [1, 0], [6, -3], [15, -7], [4, 0], [9, -1], [7, -8], [1, -1], [2, -6], [1, -6]], [[243, 37045], [-43, -17], [-12, -4], [-1, 0], [-1, 0], [-1, 0], [-11, 8], [-1, 2], [0, 0], [-1, 1], [0, 2], [3, 37], [5, 7], [0, 0], [0, 0], [2, 1], [2, 2], [0, 0], [17, 5], [3, 1], [0, 0], [43, -2], [0, 0], [1, -3], [4, -8], [-2, -15], [-3, -15], [-4, -2]], [[267, 37041], [-6, -2], [-1, 0], [0, 0], [0, 1], [-1, 9], [0, 0], [1, 7], [3, 32], [0, 0], [7, 3], [8, 3], [2, 1], [5, -1], [0, 0], [1, -1], [1, -1], [1, -2], [1, -2], [1, -4], [1, -3], [1, -1], [0, 0], [0, 0], [-10, -23], [-2, -4], [0, -1], [-2, -5], [-1, -1], [-10, -5]], [[309581, 37064], [-52, -68], [-4, -5], [-4, -4], [-14, -10], [-10, -2], [-2, 0], [0, 0], [-6, 6], [-3, 3], [1, 18], [0, 1], [0, 0], [0, 1], [0, 2], [0, 0], [1, 1], [2, 3], [2, 3], [1, 0], [1, 0], [1, -3], [67, 80], [38, 45], [-1, 7], [3, 0], [2, -2], [10, -5], [5, -8], [-1, -3], [-2, -3], [-3, -6], [-3, -8], [-29, -43]], [[311613, 37164], [-3, 0], [-1, 0], [0, 0], [-5, 1], [-4, 1], [-1, 1], [-1, 1], [0, 0], [-2, 2], [0, 1], [0, 0], [0, 1], [20, 32], [27, 23], [6, 5], [0, 0], [2, -1], [2, -10], [-2, -13], [-1, -9], [-1, -2], [-4, -7], [-1, -1], [0, -1], [-1, -1], [-4, -7], [-6, -9], [-1, 0], [-3, -3], [0, -1], [-16, -3]], [[310676, 37331], [-9, -6], [-10, -7], [0, 0], [-3, 4], [-5, 9], [13, 43], [1, 1], [0, 0], [0, 0], [1, 0], [1, 0], [20, -5], [1, -2], [1, 0], [0, -3], [0, 0], [0, -1], [-2, -19], [-1, -1], [0, -1], [-1, -3], [-1, -1], [-1, -3], [-2, -2], [0, 0], [-3, -3]], [[311154, 37522], [-10, 0], [-17, -1], [-1, 1], [-5, 9], [0, 1], [0, 1], [0, 0], [0, 0], [0, 2], [1, 1], [1, 0], [0, 0], [1, 1], [9, 4], [29, 7], [4, 0], [0, 0], [1, -3], [0, -4], [0, -1], [0, 0], [1, -1], [-1, -1], [-1, -2], [-2, -4], [-1, -2], [0, 0], [-1, -1], [-1, -2], [0, 0], [-1, 0], [0, -1], [-2, -2], [0, 0], [-1, -1], [0, 0], [-2, 0], [-1, -1]], [[311679, 37715], [0, 0], [-89, -92], [-29, -31], [-54, -72], [-180, -240], [-75, -141], [-3, -58], [0, -13], [0, 0], [6, -2], [12, -4], [0, 0], [46, 4], [55, 35], [95, 46], [109, 53], [7, -15], [20, -39], [-23, -42], [-13, -24], [0, 0], [-393, -58], [-5, 5], [-28, 24], [0, 0], [2, 2], [0, 0], [1, 1], [5, 6], [3, 6], [1, 1], [1, 1], [1, 21], [0, 1], [0, 0], [0, 1], [0, 2], [0, 0], [-1, 0], [0, 1], [-1, 1], [-1, 1], [0, 0], [0, 0], [-59, 36], [-1, 1], [0, 0], [0, 0], [-1, 0], [-1, 0], [0, 1], [-1, 0], [0, 0], [-19, 4], [-37, -1], [-17, 0], [0, 0], [-1, 0], [-1, -1], [0, 0], [-1, 0], [-8, -7], [-32, -32], [-72, -74], [0, -80], [0, -9], [-79, -30], [-155, -57], [-59, 31], [-92, 49], [-102, 68], [-14, 23], [-2, 10], [-6, 29], [-2, 13], [7, 16], [8, 17], [2, 4], [6, 9], [48, 53], [10, 10], [15, 14], [0, 0], [96, -22], [0, 0], [102, 89], [192, 83], [276, 120], [35, 53], [5, 8], [3, 2], [63, 68], [82, 42], [143, 41], [79, -22], [9, 0], [112, 60]], [[16, 37740], [-16, -11]], [[0, 37754], [0, 4]], [[0, 37758], [0, 3], [5, 3], [1, 0], [0, 0], [1, 1], [3, 1], [0, 0], [17, 5], [13, 6], [0, 0], [1, 1], [0, 0], [0, 0], [0, -1], [1, -1], [0, -1], [0, 0], [0, -1], [0, 0], [0, -1], [0, 0], [0, -1], [-4, -8], [-2, -2], [-2, -3], [0, 0], [-18, -19]], [[82, 38186], [-1, 0], [-1, 0], [0, 0], [-1, 1], [-45, 28], [-9, 6], [-1, 0], [0, 1], [-3, 3], [-2, 4], [-5, 10], [0, 1], [2, 0], [45, -17], [2, -1], [1, -1], [0, 0], [1, 0], [7, -4], [18, -16], [1, -1], [3, -4], [0, 0], [1, -1], [0, 0], [0, -1], [1, -1], [0, -1], [1, 0], [0, -1], [0, -1], [1, 0], [0, -1], [0, -1], [-1, 0], [0, 0], [-1, -1], [-8, 0], [-4, -1], [-1, 0], [-1, 0]], [[309223, 41796], [-2, -1], [0, 0], [-13, 0], [-44, 2], [-29, 2], [-11, 4], [-1, 1], [-1, 0], [-5, 4], [-1, 0], [0, 1], [-1, 0], [-1, 3], [0, 1], [-1, 3], [0, 1], [0, 0], [0, 3], [0, 1], [0, 0], [0, 2], [1, 0], [0, 1], [1, 1], [0, 0], [1, 1], [0, 1], [47, 13], [52, -6], [4, -3], [2, -2], [1, -1], [1, 0], [0, -1], [2, -2], [0, 0], [0, 0], [1, -1], [1, -1], [0, -1], [1, -2], [1, -2], [0, 0], [0, -2], [-2, -11], [0, -4], [0, -1], [-1, -1], [-1, -2], [-1, 0], [-1, -1], [0, 0]], [[311679, 36981], [0, 0], [0, 0], [25, -16], [0, 0], [0, 0]], [[311704, 36965], [1, 62]], [[311705, 36835], [-3, -5]], [[311702, 36830], [0, 0], [-8, -10], [-14, -9], [-2, -2], [-32, -14], [-4, -2], [0, 0], [-10, 8], [-9, 6], [-9, 18], [-5, 10], [0, 0], [-2, 19], [0, 0], [0, 0], [3, 8], [0, 0], [0, 0], [69, 119]], [[311684, 37341], [5, 9], [7, 15], [0, 0], [8, 13], [0, 0]], [[311704, 37378], [1, 1]], [[311705, 37328], [-13, -11]], [[311692, 37317], [0, 0], [-10, 2], [0, 0], [0, 0], [2, 22]], [[61, 37116], [10, 8], [18, 16], [7, 6], [7, 5], [0, 0], [12, -11], [0, 0], [0, 0], [10, -36], [0, 0], [16, -67], [-30, -56], [-3, -7], [-35, -47], [-69, -86], [0, 0]], [[4, 36841], [-4, -6]], [[0, 37027], [61, 89]], [[7, 37318], [-2, 3], [0, 0]], [[5, 37321], [-5, 7]], [[0, 37379], [11, 16]], [[11, 37395], [0, 0], [20, 14], [31, 17], [11, 0], [-20, -96], [0, 0], [0, 0], [-46, -12]], [[277954, 45581], [0, 1766], [0, 596], [-16, 114], [-2, 16], [-136, 314], [60, 41], [77, 281], [0, 2003], [0, 2143]], [[16, 37740], [-16, -11]], [[0, 37729], [0, 24]], [[0, 37753], [0, 5]], [[311704, 36965], [1, 62]], [[311705, 37027], [0, -192]], [[311705, 36835], [-3, -5]], [[311704, 37378], [1, 1]], [[311705, 37379], [0, -17], [0, 0], [0, 0], [0, 0], [0, -34]], [[311705, 37328], [-13, -11]], [[4, 36841], [-4, -6]], [[0, 36835], [0, 2], [0, 0], [0, 190]], [[0, 37027], [61, 89]], [[5, 37321], [-5, 7]], [[0, 37328], [0, 0], [0, 38], [0, 0], [0, 13]], [[0, 37379], [11, 16]], [[308298, 12477], [-54, -60], [-66, -40], [-66, -33], [-48, -19], [-34, 5], [38, 109], [-15, 55], [-29, 27], [12, 51], [40, 55], [117, 0], [98, -49], [22, -41], [-15, -60]], [[303615, 7072], [-3, -25], [-31, -62], [-36, -127], [-1, -94], [-56, -76], [-2, 39], [2, 80], [2, 48], [15, 41], [-25, 245], [16, 69], [10, -49], [11, -108], [13, -35], [18, -12], [18, 6], [27, 39], [22, 21]], [[267574, 37757], [-14, -20], [-13, -33], [-26, -42], [-23, -48], [12, -34], [-5, -19], [-12, -34], [-8, -23], [-17, -27], [-12, -34], [-15, -13], [-12, 9], [-12, 7], [-20, 0], [-21, -32], [-9, -65], [5, -51], [-4, -43], [-5, -49], [-3, -63], [-23, -94], [-20, -12], [-13, 33], [-20, 46], [-29, 41], [-32, 23], [-13, 17], [-12, 13], [-12, 21], [3, 14], [4, 33], [-7, 33], [-40, 8], [-6, 31], [33, 71], [45, 145], [13, 71], [20, 16], [17, 14], [-6, 31], [-23, 41], [12, 17], [31, 8], [37, 3], [32, 52], [27, 13], [3, -13], [-26, -43], [5, -26], [6, -24], [18, -1], [28, 15], [40, 21], [48, 24], [39, 1], [27, -12], [8, -17]], [[303261, 6560], [-16, -62], [-22, 2], [-23, 2], [1, 117], [-22, 169], [-19, 116], [4, 48], [14, 23], [21, 25], [19, 21], [11, -11], [-9, -76], [-14, -54], [25, -153], [26, -120], [4, -47]], [[303042, 6371], [-43, -9], [-45, 20], [-16, 32], [-8, 28], [4, 47], [3, 106], [-11, 110], [17, 16], [4, -28], [5, -46], [19, -12], [30, 48], [28, 37], [2, -47], [-49, -84], [-10, -90], [7, -54], [21, -39], [14, -15], [28, -20]], [[262199, 29346], [-48, 27], [-110, 137], [-29, 77], [77, 164], [6, 54], [47, 11], [105, 10], [46, -25], [13, -175], [-18, -175], [-44, -80], [-45, -25]], [[267201, 30503], [-187, 55], [-59, 119], [21, 97], [76, 39], [43, 28], [105, 39], [169, 99], [99, 112], [21, 63], [58, 61], [117, 8], [69, -37], [-12, -55], [-112, -99], [-10, -109], [71, -71], [66, -35], [-3, -57], [-49, -34], [-52, -56], [-63, -72], [-110, -102], [-68, -26], [-190, 33]], [[273518, 19710], [-5, 94], [26, 102], [108, 205], [5, 72], [-52, 74], [-120, 103], [-35, 83], [-21, 57], [-33, 27], [-30, -4], [-21, -11], [-46, 18], [-23, 85], [20, 78], [3, 47], [-12, 23], [-25, 18], [-28, 13], [-35, 43], [-28, 39], [-44, 54], [-18, 151], [9, 37], [56, -23], [97, -117], [148, -55], [95, 16], [60, -1], [108, -33], [23, -56], [-2, -55], [5, -69], [30, -99], [51, -81], [61, -299], [33, -91], [-51, -247], [3, -70], [-16, -32], [-46, -15], [-54, 24], [-58, 25], [-70, -23], [-51, -98], [-17, -9]], [[275192, 20389], [-47, -164], [-24, -37], [-33, 22], [-83, 77], [-11, 34], [61, 51], [28, 76], [25, 377], [-26, 59], [-44, 36], [-82, 95], [-23, 55], [29, 27], [59, 21], [23, 41], [3, 31], [-17, 186], [-18, 75], [3, 103], [-26, 44], [-146, 4], [-28, 63], [-9, 113], [-48, 119], [-63, 85], [-38, 73], [13, 49], [83, -43], [85, -100], [53, -85], [103, -48], [126, -75], [81, -115], [76, -134], [64, -175], [24, -86], [-8, -57], [5, -65], [92, -221], [-18, -149], [-244, -362]], [[259579, 22855], [-10, -83], [-50, 0], [-80, 34], [23, 44], [26, 64], [-23, 73], [-26, 55], [25, 68], [2, 75], [-33, 27], [-42, -3], [-28, -31], [-5, -182], [-22, -141], [-65, -54], [-52, 13], [48, 341], [-50, 25], [-43, -23], [-109, -130], [-54, 79], [-11, 185], [84, 27], [76, 88], [73, 20], [130, -70], [88, 33], [57, 101], [42, 54], [80, -12], [71, 19], [59, -51], [-12, -60], [-40, -5], [-61, 47], [-137, -138], [-30, -59], [58, -197], [34, -85], [29, -45], [-22, -103]], [[277017, 21228], [-15, -69], [-38, -64], [-36, -47], [-30, 2], [-48, 50], [-74, 52], [-40, 24], [-81, 96], [-27, 54], [53, 115], [147, 232], [153, 214], [48, 59], [52, -22], [28, -92], [-15, -113], [-39, -367], [-38, -124]], [[275046, 23031], [-49, -26], [-72, -27], [-99, -54], [-28, -11], [-82, 5], [-79, -21], [-68, 21], [8, 115], [69, 112], [114, 27], [224, 70], [94, 31], [19, -73], [-51, -169]], [[275265, 23308], [-118, 69], [-138, -15], [-122, 44], [-61, -20], [-55, 5], [-37, 41], [-53, 107], [-81, 6], [-18, -35], [-5, -66], [-39, -40], [-48, -2], [-61, 69], [-47, 135], [20, 85], [4, 75], [-34, 267], [21, 26], [51, 36], [21, 89], [-18, 128], [-49, 107], [-21, 44], [-51, 23], [-39, 27], [13, 58], [80, 63], [122, 58], [256, -129], [107, -126], [98, -33], [93, -3], [25, -26], [5, -59], [11, -94], [46, -79], [-34, -44], [-19, -164], [-27, -27], [-4, -94], [95, -216], [103, -162], [95, -74], [-4, -44], [-83, -10]], [[0, 37027], [0, 301]], [[0, 37379], [0, 350]], [[0, 37753], [0, 45886], [58686, 0]], [[59904, 83639], [2245, 0]], [[71409, 83639], [16765, 0]], [[88355, 83639], [350, 0]], [[88901, 83639], [1022, 0]], [[89946, 83639], [53063, 0]], [[186091, 83639], [2028, 0]], [[204664, 83639], [8946, 0]], [[258876, 83639], [1828, 0]], [[261406, 83639], [50299, 0], [0, -46260]], [[311705, 37328], [0, -301]], [[311705, 36835], [0, -36835], [-214649, 0]], [[91697, 0], [-385, 0]], [[91050, 0], [-91050, 0], [0, 36835]], [[199671, 83639], [177, 0]], [[200529, 83639], [2943, 0]], [[283169, 15492], [1, 1]], [[283170, 15493], [49, 64], [49, 16], [99, -15]], [[282291, 15596], [162, -46]], [[267319, 37768], [-25, -336], [5, -156], [28, -71], [8, -68], [-18, -100]], [[308070, 12335], [24, 25], [117, 106], [59, 71], [23, 72]], [[286136, 23809], [-111, 96], [-166, 7], [-257, -52], [-152, -8], [-71, 52], [-72, -16], [-39, -32], [-29, -54], [-85, -74], [-140, -93], [-80, -76], [-20, -59], [-56, -66], [-92, -71], [-79, -154], [-65, -236], [-69, -143], [-72, -48], [-111, -130], [-152, -214], [-239, -148], [-488, -125]], [[270009, 39360], [-82, 41], [-38, 75], [-21, 124], [-100, 162], [-267, 303], [-49, 102], [-12, 61], [7, 53], [-18, 34], [-44, 14], [-74, -20], [-105, -55], [-77, -11], [-49, 34], [-43, 72], [-37, 109], [-36, 55], [-34, 2], [-44, 58], [-56, 113], [-63, 67], [-71, 21], [-19, 41], [17, 53], [0, 26], [-28, 23], [-28, 8]], [[283491, 22165], [-132, 2], [-53, 17], [-16, 33], [-116, 57], [-216, 82], [-124, 29], [-34, -26], [-135, -13], [-236, -1], [-126, -23], [-14, -44], [-102, -89], [-188, -135], [-109, -102], [-32, -70], [-53, -35], [-112, 0], [-57, -61], [-46, -19], [-53, 3], [-42, -35], [-29, -73], [-59, -57], [-88, -40], [-80, -79], [-74, -117], [-92, -69], [-111, -23], [-72, -49], [-34, -76], [-87, -78], [-142, -79], [-73, -86], [-5, -92], [-98, -78], [-191, -62], [-117, -62], [-41, -62], [-40, -23], [-38, 17], [-32, -38], [-28, -92], [-37, -50], [-47, -9], [-40, -38], [-36, -67], [-45, -46], [-55, -26], [-31, -59], [-5, -93], [-18, -56], [-45, -29], [-336, -242], [-117, -192], [-13, -333], [7, -164], [-19, -108], [-42, -107], [36, -106], [115, -107], [60, -73], [5, -39], [-35, -86], [-75, -133], [-118, -103], [-163, -70], [-106, -89], [-50, -109], [-23, -83], [8, -87]], [[265947, 36374], [-134, -79], [-82, -27], [-110, 0], [-326, 23], [-141, -25], [-65, -65], [-32, -49], [0, -34], [-23, -23], [-46, -9], [-52, -73], [-57, -138], [-110, -176], [-243, -321], [-322, -196], [-188, -45], [-161, 41], [-135, 115], [-108, 189], [-90, 103], [-74, 17], [-76, -10], [-79, -39], [-75, 4], [-72, 46], [-87, 120], [-103, 194], [-66, 102], [-30, 12], [-15, 33], [-2, 82], [-4, 74]], [[271126, 40929], [58, -137], [20, -95], [2, -99], [-14, -77], [-32, -53], [-34, -26], [-56, 2], [-89, 32], [-58, -28], [-56, -79], [-46, -126], [-35, -173], [-40, -115], [-44, -57], [-66, -48], [-88, -40], [-142, -124], [-196, -211], [-124, -107], [-77, -8]], [[280075, 37376], [-287, 116], [-336, 309], [-160, 114], [-98, 22], [-75, 39], [-81, 81], [-198, 447], [-144, 187], [-109, 67], [-140, 53]], [[284002, 14534], [136, 264], [30, 118], [-43, 88], [-98, 407], [-51, 151], [-38, 30], [-146, 70], [-76, 2], [-68, -31], [-50, -2], [-32, 28], [-37, 4], [-44, -18], [-31, -37], [-19, -54], [-23, -19], [-45, 23]], [[283171, 15493], [-1, 0]], [[283170, 15493], [-128, 8], [-117, 37], [-148, 69], [-104, 13], [-58, -44], [-62, -23], [-100, -3]], [[282291, 15596], [-185, 42], [-106, 52], [-90, 75], [-135, 32], [-180, -12], [-123, -19], [-64, -24], [-41, -43], [-16, -62], [1, -56], [18, -52], [-42, -36], [-102, -20], [-113, 41], [-125, 105], [-83, 100], [-43, 94], [-77, 101], [-109, 106], [-166, 119], [-223, 130], [-112, 94], [-2, 58], [-36, 46], [-71, 34], [-47, 40], [-24, 45], [-12, 106], [-2, 168], [-31, 104], [-90, 61], [-221, 45], [-94, 42], [-39, 54], [-33, 22], [-28, -12], [-32, -57], [-36, -103], [-38, -47], [-41, 10], [-56, 71], [-70, 132], [-33, 121], [5, 109], [-18, 60], [-39, 11], [-35, 41], [-31, 70], [-82, 56], [-200, 63]], [[278739, 17713], [-143, 5], [-83, -28], [-69, -61], [-100, 10], [-132, 79], [-108, 44], [-85, 8], [-60, 25], [-25, 31], [-42, 18], [-29, -13], [-94, -57], [-37, -38], [18, -19], [3, -35], [-13, -50], [-50, -63], [-88, -77], [-41, -67], [4, -57], [-32, -8], [-70, 43], [-53, 78], [-34, 113], [-90, 54], [-146, -7], [-87, 6], [-30, 18], [-10, 26], [-2, 37], [-39, 32], [-73, 20], [-42, 6], [-27, -29], [-56, -80], [-43, -261], [-3, -180], [35, -97], [-8, -71], [-51, -44], [-5, -58], [41, -74], [-22, -28], [-84, 16], [-83, -23], [-80, -61], [-15, -47], [49, -33], [7, -42], [-35, -50], [-13, -44], [9, -40], [36, -43], [62, -48], [11, -53], [-53, -76], [-62, -38]], [[266316, 36106], [304, 179], [197, -67], [87, -64], [44, -82], [41, -47], [37, -11], [90, 59], [143, 129], [105, 118], [68, 107], [21, 85], [-26, 62], [-5, 58], [15, 55], [-32, 60], [-78, 65], [-43, 66], [-6, 67], [7, 48], [32, 44]], [[267319, 37767], [-30, 56], [-1, 58], [37, 115], [3, 141], [-31, 168], [-86, 98], [-143, 29], [-87, 48], [-50, 103], [-7, 52]], [[280095, 49137], [127, -397], [-1, -104], [38, -78], [75, -88], [95, -59], [114, -31], [99, 23], [84, 76], [69, 42], [54, 6], [113, -94], [228, -258], [21, -32], [14, -33], [4, -42], [25, -19], [46, 10], [37, -6], [28, -21], [10, -26], [-4, -24], [16, -20], [50, 4], [35, -13], [20, -29], [18, -4], [23, 12], [33, -9], [64, -57], [31, -99], [0, -139], [-38, -77], [-75, -15], [-45, -42], [-15, -69], [22, -72], [59, -78], [17, -88], [-24, -111], [1, -15]], [[308020, 12187], [54, 64], [9, 35], [-12, 18], [-1, 31]], [[308293, 12609], [57, 72], [50, 29], [63, 8], [42, 32], [19, 54], [-20, 23], [-60, -9], [-58, 26], [-57, 61], [-85, 25], [-113, -11], [-81, 24], [-51, 59], [-36, 75], [-20, 91], [-1, 95], [16, 98], [-15, 62], [-71, 40], [-106, 40], [-84, 71], [-99, 115], [-53, 112], [-8, 109], [-27, 108], [-47, 107], [-72, 52], [-145, -5], [-56, -53]], [[303488, 6688], [-107, -238], [-47, -80], [-46, -36]], [[303288, 6334], [-19, -45]], [[303269, 6289], [-12, -31], [-17, -114], [52, -112], [180, -165], [57, -63], [85, -42], [196, -65], [102, -22]], [[287343, 23710], [-98, -35], [-67, -60], [-103, -146], [-22, -89], [-44, -59], [-73, -58], [-51, 40], [-27, 136], [-63, 94], [-97, 52], [-53, 52], [-7, 52], [-58, 53], [-109, 56], [-125, 24], [-210, -13]], [[303048, 6372], [94, -6], [127, -77]], [[303223, 6500], [65, -166]], [[301986, 5211], [-44, -149], [-36, -62], [-43, -23], [3, -36], [48, -49], [17, -62], [-15, -75], [6, -59], [39, -65], [152, -201], [31, -88], [-25, -115], [-113, -265], [-27, -133]], [[253663, 27009], [-10, 44], [-35, 172], [2, 27], [27, 35], [23, 9], [65, -188], [42, -137], [30, -76], [0, -77], [15, -24], [30, -89], [-19, -37], [-170, 341]], [[267548, 26766], [0, -6350]], [[267548, 20416], [-48, -11], [-210, -125], [-90, -46]], [[266754, 20006], [-55, -18], [-297, -83], [-246, -100], [-92, -31], [-53, -10], [-167, -16]], [[265844, 19748], [-224, -21], [-353, 38], [-59, 10]], [[265080, 19795], [-64, -20], [-138, -33], [-188, -144], [-284, -175], [-92, -35], [-283, -192], [-203, -96]], [[263683, 19033], [-84, -19], [-58, -10], [-12, -6], [-8, -2]], [[263521, 18996], [-27, -18], [-65, -37], [-102, -127], [-138, -354], [-85, -167], [-189, -267], [-124, -90], [-123, 13], [-88, -60], [-46, 6]], [[262369, 17997], [-157, -30], [-53, -2], [-333, -69], [-212, -40], [-75, 127], [-100, 20], [-99, -4], [-197, 21]], [[260925, 18044], [-218, -33], [-247, -25], [-150, -32], [-568, -45]], [[259742, 17909], [-74, -32], [-40, -6], [-46, -32], [-9, -3]], [[259573, 17836], [-18, -15], [-35, -24], [-82, -67], [-7, -14], [-89, -142]], [[259342, 17574], [-5, -33], [-59, -109], [-175, -98], [-144, -3], [-161, -23], [-124, -110], [-10, -2]], [[258664, 17196], [-53, -53], [-138, -122], [-306, -256], [-62, -32], [-77, -20], [-124, -47], [-163, -22], [-46, -14], [-98, 31]], [[257438, 16713], [-276, -19], [-122, 4], [-301, 43], [-223, 117], [-259, 150]], [[256257, 17008], [-137, 161], [-66, 87], [-30, 24], [-19, 22]], [[255805, 17450], [-116, 41], [-24, 13], [-71, -5], [-49, -31], [-13, 3]], [[255532, 17471], [-8, 2], [-39, 36], [-28, 31]], [[255430, 18363], [30, -12], [23, -18], [38, -61]], [[255852, 18349], [1, 0], [18, 17], [28, 65], [112, 195]], [[256023, 18812], [-17, 134], [0, 10], [-14, 113], [79, 551]], [[256035, 20382], [-1, 2], [-4, 30], [-9, 19], [-10, 36]], [[256011, 20469], [-276, 610], [-55, 152], [-55, 93], [-28, 61]], [[255484, 21725], [-75, 433], [-11, 99], [0, 2], [-8, 426]], [[255390, 22685], [-3, 23], [13, 109], [-11, 118], [-70, 259], [-14, 102]], [[255080, 23786], [-17, 29], [-39, 114], [-159, 276], [-90, 132], [-90, 544]], [[254670, 24973], [-40, 121], [-46, 168], [-27, 54], [-3, 9]], [[254554, 25325], [-28, 54], [-219, 440], [-50, 74], [-29, 56]], [[254228, 25949], [-72, 94], [-174, 256], [-89, 196], [-2, 4], [-3, 9]], [[253895, 26520], [15, 26], [2, -1], [41, -48], [20, -4], [19, 39], [-2, 87], [42, 20]], [[254448, 26395], [-258, 306], [-52, 177], [-95, 192], [17, 106]], [[254060, 27176], [13, 23], [11, 12], [65, -24], [32, -51]], [[254181, 27136], [128, -200], [-11, -176], [-13, -53], [7, -45], [28, -42], [36, -34], [40, 49], [28, 86], [20, -40]], [[254444, 26681], [64, -199], [1, -6], [2, -2], [38, -122]], [[254757, 26414], [-15, 263], [15, 122], [-12, 131], [-20, 34], [0, 4]], [[254230, 28141], [-39, 63], [-5, 18], [-57, 110], [-74, 177], [-4, 203], [7, 135], [43, 215], [119, 326], [8, 16], [119, 115]], [[254412, 30059], [-30, 110], [0, 36], [-24, 114], [-66, 175], [-6, 24], [79, 277], [175, 517], [39, 45], [87, 59], [16, -90], [-6, -43], [-30, -153]], [[255053, 31209], [28, 80], [0, 1], [92, 132], [11, 8], [246, 132]], [[255818, 31770], [215, 249], [60, 51], [98, 131], [657, 460]], [[257970, 32862], [12, 37], [116, 89], [97, 49], [214, 52], [6, 1]], [[258711, 33143], [200, 252], [68, 66], [220, -19], [197, -29], [117, 66], [65, 11]], [[259925, 33548], [108, 48], [97, 36], [133, 68], [94, 43]], [[260357, 33743], [60, 36], [98, 50], [103, 68], [17, 15], [58, 35]], [[260964, 34284], [55, 118], [28, 50], [28, 71], [148, 320]], [[261732, 35484], [11, 47], [42, 30], [13, 84], [-21, 21], [11, 43]], [[261788, 35709], [-108, 91], [-29, 198], [-37, 191], [-3, 99], [18, 173], [83, 189], [62, 85], [86, 99], [78, 31], [66, 87], [106, 86], [44, 86], [66, 176], [60, 134], [46, -5], [49, -170], [6, -92]], [[262381, 37167], [59, -116], [35, -97], [107, -194], [102, -285], [4, -7], [3, -32]], [[262774, 36318], [17, -25], [15, -33], [33, -40], [1, 3], [5, -8]], [[263101, 36795], [-20, 35], [28, 62], [-16, 60], [-68, -3], [-28, 74], [-56, 86], [-42, 41], [-118, 207], [0, 2], [70, 32], [4, 0], [2, 3], [58, 27]], [[262962, 37534], [-57, 25], [-28, 107], [35, 50], [71, -14], [43, -81], [-35, 8]], [[263987, 37446], [-113, 53], [-1, 1], [-76, 39], [-86, 7], [-35, -1], [-22, 101]], [[263622, 37791], [2, 3], [35, -7], [58, 3], [7, 104], [15, 66], [109, 158]], [[263612, 38119], [-11, -19], [-38, 62], [-8, 95]], [[264423, 38990], [-8, 12], [1, 12], [-17, 11], [-2, 3]], [[264301, 39116], [-9, 16], [-1, 39], [-51, 90], [-2, 89], [40, 38], [117, 106]], [[264648, 39712], [25, -27], [0, -74], [-17, -55], [25, 5], [16, 23], [20, 52], [94, -103]], [[264811, 39533], [2, -4], [7, -48], [28, -19], [20, -40]], [[264891, 39429], [48, 154], [28, 12], [-2, 71], [68, 215]], [[265033, 39881], [-7, 51], [11, 9], [9, 79], [-31, 49], [53, 78]], [[265591, 40138], [0, 1], [34, 58], [-9, 58], [8, 36]], [[265624, 40291], [-10, 29], [7, 62], [76, 30]], [[265697, 40412], [42, 17], [50, -20], [90, -115]], [[266014, 40236], [17, 0], [38, -17], [142, -107], [64, -71], [96, -88], [256, -419]], [[266762, 39008], [-3, -33], [-8, -41], [-3, -73], [-99, -407]], [[267076, 39170], [-41, 47], [1, 5], [58, 46], [26, 5], [5, 0]], [[267125, 39273], [110, 2], [290, -92], [23, -17]], [[267548, 39166], [0, -12400]], [[267548, 39166], [29, -20]], [[267577, 39146], [74, -52], [39, -49], [9, -142], [35, -50], [19, 89], [-4, 172], [28, 28]], [[267921, 39117], [15, -6], [8, -5], [44, -59], [44, -76]], [[268033, 38971], [6, 5], [17, -60], [40, -40], [14, 59], [-19, 83], [0, 1], [114, 185], [3, 0], [74, 18], [-35, 33], [-35, 8], [8, 120]], [[268232, 39553], [-81, -37], [0, 9], [-78, -2], [-107, 77], [-91, 109], [69, 200], [139, 195], [78, 65], [5, 46], [10, 7]], [[268192, 40235], [130, 433], [25, 24], [24, -5]], [[268518, 40747], [10, 14], [2, 1], [25, 33], [79, 99]], [[268634, 40894], [-7, 13], [11, 18], [-87, 141], [15, 170]], [[268566, 41236], [8, 83], [114, 74], [53, 162], [112, 37]], [[269064, 41572], [-119, 83], [2, 1], [-7, 173], [12, 67], [43, 27], [55, -23], [35, -75], [34, -30], [41, -72]], [[269236, 41774], [-51, 53], [-8, 43], [-4, 45], [28, 62], [40, 12], [58, 6], [6, 80], [-10, 64], [19, 22], [236, 22]], [[269555, 42178], [17, -19], [3, -16], [48, -44], [25, -28]], [[269648, 42071], [7, 0], [3, -3], [55, 0], [82, -4]], [[269848, 42061], [263, 26], [89, -23], [65, 38], [184, 18], [17, -10], [34, -62], [19, 92], [38, 35]], [[270557, 42175], [81, 74], [12, 5], [80, -22], [32, 7], [-72, 99], [4, 90], [-1, 28], [82, 354]], [[270349, 42972], [-36, -23], [-53, -15], [-4, 2], [-103, 96], [-57, 72], [-42, 20], [-61, 56]], [[269993, 43180], [5, 22], [113, 89], [49, -18], [76, -94], [43, -34], [37, 7], [23, 74], [33, 39], [62, -22], [193, -160], [108, -155], [56, 41], [70, 64], [208, -146]], [[271069, 42887], [9, -13], [31, -75], [61, -94], [40, -6], [18, -25]], [[271369, 42619], [62, -4], [41, -33], [105, 5], [216, -23], [18, -10], [9, -9]], [[273267, 42291], [109, -51], [-26, -32], [2, -65], [34, -35], [41, 15], [57, 55], [11, 5], [18, -9]], [[273809, 41880], [17, 13], [7, 0], [4, 10], [27, 21]], [[273864, 41924], [28, 112], [0, 0], [0, 0], [22, 89]], [[273882, 42153], [-19, -3], [-2, 8], [-37, 26], [18, 46], [144, 194], [6, 6]], [[273992, 42430], [2, 1], [53, -4], [-4, -44]], [[274264, 42113], [-17, 13], [85, 7], [36, -19], [48, -97]], [[274417, 41984], [0, -12], [-43, -59], [-139, -156]], [[274235, 41757], [-46, -95], [-116, -160], [-17, -54], [45, -82], [-3, -18]], [[274098, 41348], [13, -26], [11, -64], [-67, -143], [-115, -76], [-17, 26], [-61, 43], [-53, -30], [-57, -18], [-17, -11], [-4, 0]], [[273558, 40429], [19, 17], [20, -81], [-68, -302], [-22, -87], [-67, -90], [-33, -37], [-40, -41]], [[273210, 39532], [-14, -55], [-22, -31], [-395, -153]], [[273102, 39167], [27, -31], [5, -19], [67, -86], [47, -32], [27, -30]], [[273519, 38786], [55, -49], [7, -7], [8, -5], [31, -27]], [[273697, 38630], [133, -145], [2, -6], [28, -83], [124, -80], [240, -263]], [[274224, 38053], [52, -9], [11, -10], [47, 1], [61, -10]], [[274395, 38025], [338, -183], [0, 0], [196, -112], [27, -13], [174, -131], [80, -120], [35, -59]], [[275245, 37407], [13, -14], [6, -8], [78, -88]], [[275342, 37297], [-1, -1], [0, -10530]], [[275341, 26766], [-7793, 0]], [[273947, 39939], [1, 13], [30, 54], [-14, 125], [6, 65]], [[274194, 40491], [18, -19], [-2, -20], [17, -86], [12, -17], [30, -174]], [[274269, 40175], [9, -15], [-25, -94], [4, -48], [32, -47], [85, -44], [40, 19], [16, -9], [-16, -65], [-32, -52], [-114, 22], [-98, -8], [-56, 17], [-167, 88]], [[268847, 42561], [-159, 71], [-162, -59], [-12, 0], [18, 142], [1, 0], [51, 43], [-9, 131], [-17, 40], [7, 62], [65, 99], [38, 27], [38, -1], [33, -92], [8, -100], [40, -92], [23, -97], [27, -10], [10, -164]], [[269241, 43124], [5, 1], [22, -12], [31, 6], [19, 16], [116, -102]], [[269454, 43161], [73, 96], [29, -40], [101, -74], [30, -74], [33, -96]], [[269720, 42973], [-4, -6], [-32, -43], [-1, -7], [-50, -77], [-23, 3], [-65, -118], [-90, -88], [-209, -170], [-94, 57], [-181, 140], [-115, 139], [-77, 192], [-16, 157], [-31, 101], [14, 25], [16, 13], [17, -2], [33, -41], [50, -67], [14, -12], [51, -63], [21, -33], [6, -1], [48, -60]], [[275341, 26766], [2598, 0], [0, -3346]], [[277939, 23420], [20, -5625]], [[277959, 17795], [-25, 31], [-25, 11], [-1, -4530]], [[277908, 13307], [-47, 3], [-247, 41], [-182, 130], [-25, 20], [-152, 280], [-283, 313], [-35, 50], [-47, 71], [-8, 29]], [[276882, 14244], [-35, 118], [-2, 69], [39, 175], [3, 9], [43, 53]], [[276950, 14803], [-6, 31], [4, 40], [-35, 102], [-14, 61]], [[276388, 15858], [-186, 164], [-10, 17], [-10, 31], [27, -10]], [[276286, 15994], [-87, 81], [64, -15], [40, 63], [56, 22], [46, -84], [51, -15], [2, 140], [29, 66], [-20, 30], [-17, 27], [-78, 31], [-86, -47], [-65, -59], [-89, -51], [-35, -54], [-55, -1], [-93, 23]], [[275744, 16016], [-54, -7], [-14, 0], [-177, 36], [59, 140], [3, 4], [33, 18]], [[275344, 17576], [-48, -197], [-27, -45], [-17, -133], [-91, -373], [-57, -168], [-112, -91]], [[274992, 16569], [-19, -6], [-9, 0], [-93, 18], [-162, -53], [-110, -64], [-99, 0], [-55, -20], [-72, 16], [113, 362], [99, -10], [37, 5], [127, -15]], [[274749, 16802], [6, 19], [57, 3], [55, 167], [33, 185], [-18, 104], [7, 27]], [[274889, 17307], [21, 378], [127, 315], [56, 87], [74, 105], [113, 120], [-15, 132], [-13, 52], [79, 303]], [[275331, 18799], [-5, 45], [7, 9], [-69, 361], [-43, 108], [-42, 64], [-48, 161]], [[274986, 18947], [-32, -72], [-16, -16], [-81, -117], [-72, -247], [-24, -55]], [[274146, 17963], [-75, -94], [-8, -8], [-82, -51], [-134, -223], [-323, -404]], [[273516, 16990], [36, 13], [13, -15], [35, -165], [2, -40], [-20, -35], [-44, 22], [-110, 110], [-52, -30], [-274, 196]], [[273102, 17046], [-14, 10], [-65, 70], [-81, 70], [-35, 8], [-20, -5], [-11, 9]], [[272916, 17234], [47, 32], [32, -32], [75, -57], [42, -5], [20, 23], [-68, 218], [-104, 446]], [[272960, 17859], [-41, 55], [-17, 33], [-58, 68], [-75, 100]], [[272769, 18115], [-192, 433], [-16, 44], [-8, 10], [-68, 153]], [[272295, 18793], [-165, -7], [-104, 195], [-59, 243], [33, -15]], [[271406, 19877], [-362, 88], [-244, 157], [-94, 8], [-157, -44], [-345, 84]], [[270204, 20170], [-58, 45], [-243, 197], [-284, 165], [-94, 31], [-6, 1], [-111, 57]], [[268550, 20542], [-5, 0], [-20, 1], [-486, -54], [-330, -37], [-47, -10], [-70, -8]], [[267592, 20434], [-28, -14], [-16, -4]], [[274578, 15580], [-37, -1], [-45, 7], [-39, -10], [-149, -5]], [[274308, 15571], [0, 0], [-47, 5], [-143, 109], [-36, 42], [12, 58], [15, 41], [52, 67], [392, 94], [128, 49], [110, 29], [142, -12], [47, -17], [17, -15], [-25, -107]], [[274972, 15914], [18, -9], [0, -1], [1, 0], [357, -182]], [[275348, 15722], [-12, -2], [-139, 40], [-142, -34], [-43, -44], [-6, -23], [-271, -50], [-80, 23], [-38, -45], [-39, -7]], [[275342, 37297], [59, -69], [77, -57], [36, -37]], [[275612, 37082], [144, -39], [21, -7], [5, 0], [240, -64], [28, -15], [164, -44], [29, -42], [74, -138], [13, -45], [9, -74], [81, -179], [70, -25], [14, -26]], [[277950, 36724], [153, 428], [24, 44], [45, 147], [30, 83]], [[278202, 37426], [38, 221], [5, 23], [49, 169], [-17, 184], [48, 314], [79, 293]], [[278440, 38763], [19, 125], [20, 80], [-3, 35], [12, 80]], [[278414, 39700], [-3, 24], [10, 46], [31, 206], [-52, 150], [-47, 103], [-5, 101], [42, 238]], [[278390, 40568], [17, 99], [19, 58], [66, 113]], [[278519, 41031], [-37, 117], [-13, 162], [33, 55], [71, 82], [41, 62], [81, 0], [39, -27], [6, 55], [23, 33]], [[278742, 41717], [-154, 65], [-5, 5], [-59, 42], [9, 157], [102, 302], [56, 116], [36, -48], [42, -39], [6, 86], [-14, 90], [77, 295], [85, 400], [8, 116], [5, 25]], [[279112, 43623], [29, 72], [14, 18], [41, 99], [36, 5]], [[279232, 43817], [15, 2], [27, 0], [13, -11]], [[279287, 43808], [6, -6], [12, -10], [-19, -121]], [[279389, 43518], [2, 1], [38, -38], [49, -117], [20, -110], [1, -4], [16, -163]], [[279515, 43087], [25, -253], [-1, -47], [19, -211], [53, -66], [48, -43], [26, -2], [8, -20]], [[279693, 42445], [62, -321], [9, -85], [9, -8], [7, -39]], [[279780, 41992], [111, -65], [28, -106], [69, -112], [12, -31]], [[28e4, 41678], [16, -39], [-2, -61], [-37, -174]], [[280061, 41341], [21, -16], [30, -169], [4, -57], [18, -363]], [[280144, 40540], [6, -37], [-6, -67], [35, -136], [8, -19], [6, -38]], [[280235, 40092], [78, -284], [11, -50], [4, -5], [10, -34]], [[280670, 39706], [170, 140], [104, 42], [98, -137], [29, -83], [1, -7]], [[281072, 39661], [3, -3], [21, -61], [231, -202], [11, -11], [19, -19]], [[281357, 39365], [2, -2], [97, -98], [100, -74], [7, -7], [87, -556], [-15, -128], [68, -251], [22, -200], [26, -70], [7, -478]], [[281758, 37501], [12, -30], [-1, -8], [56, -140], [14, -28], [4, -10]], [[281853, 37260], [14, -21], [9, -20], [77, -112], [101, -172], [20, -9], [108, -206], [39, -105], [124, -391], [29, -125], [-44, -391], [-7, -33], [-17, -58]], [[282288, 35394], [6, -9], [0, -3], [134, -215], [28, -161]], [[284204, 33427], [107, -65], [4, -4], [4, -1], [298, -179], [38, -45], [54, -86], [55, -128], [-69, -12], [-41, 17], [-58, 37]], [[284875, 32405], [51, -35], [88, -129], [5, -13]], [[285040, 32177], [16, -43], [17, -73], [29, -48], [7, -16], [40, -187], [48, -51], [178, -854]], [[285779, 30497], [-48, 142], [3, 4], [-55, 239], [34, 138], [34, 17], [34, 4], [101, -203]], [[286286, 30622], [-67, 56], [-1, 5], [4, 114], [47, 19], [43, -57], [79, -176], [16, -365], [1, -305], [1, -6], [-9, -146]], [[286537, 29354], [87, 38], [47, -58], [53, -90], [28, -102]], [[287178, 28939], [-10, 14], [26, -1], [100, -77], [3, -7]], [[287630, 28226], [283, -345], [36, -82], [79, -144], [117, -81], [26, -43], [59, -261]], [[288249, 27090], [42, -61], [23, -60], [37, -60], [28, -19], [27, -88]], [[288442, 26688], [-3, -49], [-39, -213], [18, -206], [-23, -466]], [[288676, 24571], [66, -226]], [[288742, 24345], [-84, -74], [-163, -24], [-66, -105], [-235, 30], [-82, -35], [-123, 70], [-34, -33], [-67, 68], [-69, -90], [-105, -50], [-65, -55], [-47, 0], [-170, -109], [35, -115], [54, -74], [-39, -189], [-77, -55], [-69, 5], [-28, -60], [-54, 30], [-27, 65], [-152, -76], [-22, -89], [-44, -59], [-73, -57], [-51, 39], [-27, 136], [-63, 94], [-97, 52], [-53, 52], [-7, 52], [-58, 53], [-109, 56], [-125, 24], [-210, -13], [-111, 96], [-166, 7], [-257, -52], [-152, -8], [-70, 51], [-73, -15], [-39, -32], [-29, -54], [-85, -74], [-140, -93], [-80, -76], [-20, -59], [-56, -66], [-17, -13], [-6902, -1]], [[288609, 27920], [-144, -568], [-16, -44], [-49, -189], [-3, -30], [-78, 88], [-12, 88], [19, 115], [46, 104], [8, 59], [-7, 39], [32, 129], [86, 90], [33, 72], [4, 26], [7, 12]], [[288535, 27911], [-3, 19], [5, 36], [-49, 100], [-36, 20], [1, 2], [112, 86]], [[288565, 28174], [11, -63], [9, -137], [18, -24], [6, -30]], [[276587, 37234], [-39, -43], [-4, 2], [-10, -17], [-41, -44], [-43, -18], [-21, 1], [-13, 10]], [[276367, 37258], [42, 77], [22, 26], [50, 39], [122, 27], [82, 36], [73, -42], [51, -79], [-79, -11], [-4, 4]], [[284105, 8847], [-46, -110], [-3, -5], [-22, -58], [-21, -49]], [[283989, 8486], [-27, -151], [-30, -52], [-9, -83], [-118, -168]], [[283805, 8032], [-63, -89], [-10, 6], [-103, 29], [-33, -36], [5, -49], [-102, -22], [-14, 54], [-95, 114], [3, -55], [40, -96], [-3, -33], [-21, -66], [-34, -18], [-18, -44], [0, -62], [-9, -70], [-82, -62], [-137, 99], [-10, -37], [0, -1], [-2, 1]], [[283117, 7564], [55, -102], [-9, -12], [-27, -56], [-43, -148], [-53, -93], [-32, -33], [-19, -5], [-70, 12], [-73, 29], [-105, 83], [-114, -12], [-90, 17]], [[282285, 7291], [-5, 7], [-2, 12], [-28, 41], [11, 36], [99, 24], [102, -1], [-16, 44], [-27, 16], [-44, -11], [-130, 38], [-53, -10], [-99, 66]], [[282093, 7553], [-22, 25], [-81, 143], [-62, 87], [-36, 34], [-43, 18], [-26, 28], [-178, 398], [-12, 51]], [[281633, 8337], [-41, 181], [-9, 65], [34, 26]], [[281726, 8511], [52, -46], [28, -93], [51, 117], [-5, 20], [19, 16]], [[281871, 8525], [-172, 172], [-5, 12], [-7, 49], [-19, -29], [-42, 42]], [[281626, 8771], [-6, 10], [5, 21], [-18, 98], [-159, 215], [-121, 204], [-116, 244], [-13, 43], [-2, 50], [-57, 168], [-31, 125], [-14, 109], [55, 221], [7, 106], [4, 15], [67, -42], [39, -34]], [[281629, 10254], [457, -225], [26, -20], [92, -38], [204, -100]], [[282626, 9838], [335, 56], [39, -45], [-10, 66], [18, 57], [54, 45], [61, 28], [101, -2], [27, 4], [217, -4]], [[283468, 10043], [12, 6], [46, -14], [40, 42], [18, 26], [175, 91], [81, -14], [48, -1], [83, 104], [55, -2], [155, -81], [70, -113], [-6, -179], [5, -66], [5, -21], [-7, -53]], [[284248, 9768], [-1, -337], [-1, -13], [1, -4], [-1, -201]], [[284197, 8939], [-6, -3], [-8, 19], [-29, -34], [-10, -4]], [[283971, 7628], [-77, -34], [-36, -5], [-41, -25], [-9, 3], [-71, 103], [-44, 113], [34, 46], [28, -10], [31, -63]], [[283919, 7973], [16, -9], [26, -114], [20, -217], [-10, -5]], [[284265, 10974], [-7, -15], [-1, 1], [-77, -69], [-17, -6], [-131, 45], [-13, 30], [-56, 85], [-57, 100], [11, 39], [-26, 73], [-47, -4], [-32, 55], [47, 32], [36, 53], [62, 54], [8, -5], [243, -301]], [[284244, 11096], [3, -19], [-32, -36], [44, -36], [6, -31]], [[280626, 11133], [-4, -15], [-36, -33], [-38, -27]], [[280548, 11058], [-2, -2], [-74, -34], [-25, -4], [-20, 62], [10, 90], [-37, 78], [0, 2]], [[280400, 11250], [-2, 22], [20, 76], [-1, 31], [20, 107]], [[280437, 11486], [24, 29], [21, 18], [7, 70], [22, 2]], [[280511, 11605], [107, -81], [21, -133], [-13, -99], [27, -77], [-27, -82]], [[277959, 17795], [60, -25], [85, -8], [108, -43], [132, -80], [100, -10], [69, 61], [83, 29], [143, -6], [200, -63], [82, -56], [31, -70], [34, -41], [40, -11], [18, -60], [-5, -110], [33, -120], [70, -132], [55, -71], [42, -10], [38, 47], [36, 103], [32, 57], [28, 12], [33, -22], [39, -53], [93, -41], [222, -47], [90, -61], [31, -104], [2, -168], [12, -106], [24, -45], [47, -40], [71, -34], [37, -50], [1, -54], [112, -94], [223, -130], [166, -119], [109, -106], [77, -101], [43, -94], [83, -100], [125, -105], [113, -41], [102, 20], [42, 36], [-18, 52], [-1, 56], [16, 62], [40, 43], [65, 24], [123, 19], [180, 12], [135, -32], [90, -75], [106, -52], [193, -44], [154, -45], [94, 4], [68, 23], [58, 44], [104, -13], [135, -63], [130, -43], [131, -7], [46, 63], [49, 16], [99, -15], [45, -22], [24, 18], [18, 54], [31, 37], [44, 19], [37, -5], [32, -28], [46, 1], [72, 32], [76, -2], [146, -70], [38, -30], [51, -151], [98, -407], [43, -88], [-30, -118], [-25, -52], [72, -28], [1495, -779]], [[285680, 13939], [-9, -31], [-107, -21], [-86, -78], [-105, -106], [-168, -71]], [[285205, 13632], [-345, -16], [-45, 2], [-137, -11], [-443, -21]], [[283743, 13380], [-203, -184], [-65, -58], [-5, -5], [-473, -427]], [[282442, 12536], [11, -23], [0, -4], [4, -3], [67, -135]], [[282524, 12371], [29, 21], [5, -7], [31, 33], [17, 13]], [[282613, 12113], [-36, 8], [-9, 5], [-9, 15], [-5, 41], [-68, 125], [-83, 110], [-76, 35], [-20, -16], [-25, 27]], [[282282, 12463], [-137, 63], [-60, 112], [-86, 13], [-74, -1], [-61, 52], [-24, 17], [-57, 62]], [[281783, 12781], [-9, 81], [11, 22], [33, 40], [52, 19], [-8, 33], [16, 19]], [[281829, 13076], [0, 1], [-17, 33], [-4, 1], [-14, 24]], [[281626, 13132], [-80, -190], [-155, -102], [-36, -1]], [[281355, 12839], [-10, 0], [-77, 57], [-67, 64], [6, 14]], [[281384, 13016], [73, 136], [1, 2], [1, 1], [1, 2]], [[281509, 13248], [-6, 28], [1, 4], [-4, 6], [-13, 60]], [[281314, 13570], [-348, -289], [-29, -13], [-60, -38], [92, -29], [3, -65]], [[280975, 13076], [-42, -30], [-11, -3], [-103, -49], [-197, -127], [-117, -124], [-11, -8]], [[280494, 12735], [-23, -27], [-98, -103], [-123, -84], [-59, -28], [-41, -9]], [[280150, 12484], [-38, -8], [-150, 61], [-36, 6], [-113, 55], [-73, 64], [-198, 68], [-19, 10], [-190, 139], [-136, 72], [-96, 16], [-30, -7], [-33, 17]], [[278753, 13065], [-12, -1], [-3, 2], [-173, 14], [-34, -39], [-73, -8]], [[277940, 13305], [-32, 2]], [[285213, 16361], [-31, -30], [-77, 10], [-81, -40], [-39, -65], [8, -75], [-19, -84], [-35, -30], [15, -244], [-46, -95], [-89, 30], [-42, 75], [-8, 85], [-35, -5], [-50, 44], [-15, 80], [-4, 159], [50, 204], [239, 185], [74, -35], [4, -45], [54, -60], [127, -64]], [[286259, 16516], [21, 49], [60, 29], [1, 0]], [[286341, 16594], [0, 0], [-56, -53]], [[286285, 16541], [-8, -13], [-18, -12]], [[288742, 24345], [27, -95]], [[288821, 24079], [1, -13], [-2, -127], [25, -93], [13, -128], [-1, -13], [-13, -88]], [[288836, 23556], [-3, -7], [-106, -186], [-86, -233], [-70, -118]], [[288585, 22964], [43, -30], [0, -69], [-47, -314], [-37, -181], [-23, -65], [-31, -184], [-28, -93], [-99, -268]], [[288362, 21314], [5, -1], [2, -21], [-23, -200], [-34, -136], [-18, -137], [-4, -16]], [[287907, 19872], [28, -47], [-2, -23], [-25, -97], [-39, -121], [-110, -121], [-89, -71]], [[287501, 19195], [-20, -13], [-59, -23], [-123, -91], [-7, -12], [-30, -20]], [[287075, 18772], [-1, -116], [-20, -33], [-40, -52], [-17, -56], [-18, -91], [-25, -52]], [[286855, 18221], [7, 21], [4, -17], [-2, -17]], [[286827, 17997], [-56, -115], [-1, 1], [-29, -10], [-37, -36], [42, -8], [-30, -61]], [[286388, 16781], [7, -71], [-11, 10], [-51, -39], [-14, -39], [22, -48]], [[286259, 16516], [-38, -27], [-64, -157], [-243, -399]], [[285700, 14730], [-1, -38], [-4, -22], [-8, -262], [31, -199], [-20, -105], [-1, -102], [-17, -63]]], transform: { scale: [0.001154938162685873, 8967108645488349e-19], translate: [-180, -50] }, objects: { coastlines: { type: "GeometryCollection", geometries: [{ type: "MultiLineString", arcs: [[0], [1], [2], [3], [4], [5], [6], [7], [8], [9], [10], [11], [12], [13], [14], [15], [16], [17], [18], [19], [20], [21], [22], [23], [24], [25], [26], [27], [28], [29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334], [335, 336, 337], [338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360], [361, 362, 363], [364, 365, 366, 367, 368], [369, 370, 371, 372], [373], [374, 375, 376], [377, 378, 379, 380], [381, 382, 383, 384], [385], [386], [387, 388, 389, 390, 391], [392], [393], [394], [395], [396], [397], [398], [399], [400], [401], [402], [403], [404], [405], [406], [407], [408], [409], [410], [411], [412], [413], [414], [415], [416], [417], [418], [419], [420], [421], [422], [423], [424], [425], [426], [427], [428], [429], [430], [431], [432], [433], [434], [435], [436], [437], [438], [439], [440], [441], [442], [443], [444], [445], [446], [447], [448], [449], [450], [451], [452], [453], [454], [455], [456], [457], [458], [459], [460], [461], [462], [463], [464], [465], [466], [467], [468], [469], [470], [471], [472], [473], [474], [475], [476], [477], [478], [479], [480], [481], [482], [483], [484], [485], [486], [487], [488], [489], [490], [491], [492], [493], [494], [495], [496], [497], [498], [499], [500], [501], [502], [503], [504], [505], [506], [507], [508], [509], [510], [511], [512], [513], [514], [515], [516], [517], [518], [519], [520], [521], [522], [523], [524], [525], [526], [527], [528], [529], [530], [531], [532], [533], [534], [535], [536], [537], [538], [539], [540], [541, 542], [543], [544], [545], [546], [547], [548], [549], [550], [551], [552], [553], [554], [555], [556], [557], [558], [559], [560], [561], [562], [563], [564], [565], [566], [567], [568], [569], [570], [571], [572], [573], [574], [575], [576], [577], [578], [579], [580], [581], [582], [583], [584], [585], [586], [587], [588], [589], [590], [591], [592], [593], [594], [595], [596], [597], [598], [599], [600], [601], [602], [603], [604], [605], [606], [607], [608], [609], [610], [611], [612], [613], [614], [615], [616], [617], [618], [619], [620], [621], [622], [623], [624], [625], [626], [627], [628], [629], [630], [631], [632], [633], [634], [635], [636], [637], [638], [639], [640], [641], [642], [643], [644], [645], [646], [647], [648], [649], [650], [651], [652], [653], [654], [655], [656], [657], [658], [659], [660], [661], [662], [663], [664], [665], [666], [667], [668], [669], [670], [671], [672], [673], [674], [675], [676], [677], [678], [679], [680], [681], [682], [683], [684], [685], [686], [687], [688], [689], [690], [691], [692], [693], [694], [695], [696], [697], [698], [699], [700], [701], [702], [703], [704], [705], [706], [707], [708], [709], [710], [711], [712], [713], [714], [715], [716], [717], [718], [719], [720], [721], [722], [723], [724], [725], [726], [727], [728], [729], [730], [731], [732], [733], [734], [735], [736], [737], [738], [739], [740], [741], [742], [743], [744], [745], [746], [747], [748], [749], [750], [751], [752], [753], [754], [755], [756], [757], [758], [759], [760], [761], [762], [763], [764], [765], [766], [767], [768], [769], [770], [771], [772], [773], [774], [775], [776], [777], [778], [779], [780], [781], [782], [783], [784], [785], [786], [787], [788], [789], [790], [791], [792], [793], [794], [795], [796], [797], [798], [799], [800], [801], [802], [803], [804], [805], [806], [807], [808], [809], [810], [811], [812], [813], [814], [815], [816], [817], [818], [819], [820], [821], [822], [823], [824], [825], [826], [827], [828], [829], [830], [831], [832], [833], [834], [835], [836], [837], [838], [839], [840], [841], [842], [843], [844], [845], [846], [847], [848], [849], [850], [851], [852], [853], [854], [855], [856], [857], [858], [859], [860], [861], [862], [863], [864], [865], [866], [867], [868], [869], [870], [871], [872], [873], [874], [875], [876], [877], [878], [879], [880], [881], [882], [883], [884], [885], [886], [887], [888], [889], [890], [891], [892], [893], [894], [895], [896], [897], [898], [899], [900], [901], [902], [903], [904], [905], [906], [907], [908], [909], [910], [911], [912], [913], [914], [915], [916], [917], [918], [919], [920], [921], [922], [923], [924], [925], [926], [927], [928], [929], [930], [931], [932], [933], [934], [935], [936], [937], [938], [939], [940], [941], [942], [943], [944], [945], [946], [947], [948], [949], [950], [951], [952], [953], [954], [955], [956], [957], [958], [959], [960], [961], [962], [963], [964], [965], [966], [967], [968], [969], [970], [971], [972], [973], [974], [975], [976], [977], [978], [979], [980], [981], [982], [983], [984], [985], [986], [987], [988], [989], [990], [991], [992], [993], [994], [995], [996], [997], [998], [999], [1e3], [1001], [1002], [1003], [1004], [1005], [1006], [1007], [1008], [1009], [1010], [1011], [1012], [1013], [1014], [1015], [1016], [1017], [1018], [1019], [1020], [1021], [1022], [1023], [1024], [1025], [1026], [1027], [1028], [1029], [1030], [1031], [1032], [1033], [1034], [1035], [1036], [1037], [1038], [1039], [1040], [1041], [1042], [1043], [1044], [1045], [1046], [1047], [1048], [1049], [1050], [1051], [1052], [1053], [1054], [1055], [1056], [1057], [1058], [1059], [1060], [1061], [1062], [1063], [1064], [1065], [1066], [1067], [1068], [1069], [1070], [1071], [1072], [1073], [1074], [1075], [1076], [1077], [1078], [1079], [1080], [1081], [1082], [1083], [1084], [1085], [1086], [1087], [1088], [1089], [1090], [1091], [1092], [1093], [1094], [1095], [1096], [1097], [1098], [1099], [1100], [1101], [1102], [1103], [1104], [1105], [1106], [1107], [1108], [1109], [1110], [1111], [1112], [1113], [1114], [1115], [1116], [1117], [1118], [1119], [1120], [1121], [1122], [1123], [1124], [1125], [1126], [1127], [1128], [1129], [1130], [1131], [1132], [1133], [1134], [1135], [1136], [1137], [1138], [1139], [1140], [1141], [1142], [1143], [1144], [1145], [1146], [1147], [1148], [1149], [1150], [1151], [1152], [1153], [1154], [1155], [1156], [1157], [1158], [1159], [1160], [1161], [1162], [1163], [1164], [1165], [1166], [1167], [1168], [1169], [1170], [1171], [1172], [1173], [1174], [1175], [1176], [1177], [1178], [1179], [1180], [1181], [1182], [1183], [1184], [1185], [1186], [1187], [1188], [1189], [1190], [1191], [1192], [1193], [1194], [1195], [1196], [1197], [1198], [1199], [1200], [1201], [1202], [1203], [1204], [1205], [1206], [1207], [1208], [1209], [1210], [1211], [1212], [1213], [1214], [1215], [1216], [1217], [1218], [1219], [1220], [1221], [1222], [1223], [1224], [1225], [1226], [1227], [1228], [1229], [1230], [1231], [1232], [1233], [1234], [1235], [1236], [1237], [1238], [1239], [1240], [1241], [1242], [1243], [1244], [1245], [1246], [1247], [1248], [1249], [1250], [1251], [1252], [1253], [1254], [1255], [1256], [1257], [1258], [1259], [1260], [1261], [1262], [1263], [1264], [1265], [1266], [1267], [1268], [1269], [1270], [1271], [1272], [1273], [1274], [1275], [1276], [1277], [1278], [1279], [1280], [1281], [1282], [1283], [1284], [1285], [1286], [1287], [1288], [1289], [1290], [1291], [1292], [1293], [1294], [1295], [1296], [1297], [1298], [1299], [1300], [1301], [1302], [1303], [1304], [1305], [1306], [1307], [1308], [1309], [1310], [1311], [1312], [1313], [1314], [1315], [1316], [1317], [1318], [1319], [1320], [1321], [1322], [1323], [1324], [1325], [1326], [1327], [1328], [1329], [1330], [1331], [1332], [1333], [1334], [1335], [1336], [1337], [1338], [1339], [1340], [1341], [1342], [1343], [1344, 1345], [1346], [1347], [1348, 1349], [1350, 1351], [1352, 1353], [1354, 1355], [1356, 1357], [1358], [1359, 1360], [1361, 1362]] }] }, countries: { type: "GeometryCollection", geometries: [{ arcs: [[[10]], [[11]]], type: "MultiPolygon", properties: { ct: [-170.72, -14.3] }, id: "ASM" }, { arcs: [[[29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334]], [[335, 336, 337]], [[338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360]], [[361, 362, 363]], [[364, 365, 366, 367, 368]], [[369, 370, 371, 372]], [[373]], [[374, 375, 376]], [[377, 378, 379, 380]], [[381, 382, 383, 384]], [[385]], [[386]], [[387, 388, 389, 390, 391]]], type: "MultiPolygon", properties: { ct: [134.35, -25.58] }, id: "AUS" }, { arcs: [[[434]], [[435]]], type: "MultiPolygon", properties: { ct: [96.83, -12.18] }, id: "CCK" }, { arcs: [[[453]], [[454]], [[455]], [[456]], [[457]], [[458]]], type: "MultiPolygon", properties: { ct: [-159.77, -21.23] }, id: "COK" }, { arcs: [[473]], type: "Polygon", properties: { ct: [105.64, -10.48] }, id: "CXR" }, { arcs: [[480]], type: "Polygon", properties: { ct: [144.78, 13.43] }, id: "GUM" }, { arcs: [[[481]], [[482]], [[483]], [[484]], [[485]], [[486]], [[487]]], type: "MultiPolygon", properties: { ct: [158.23, 6.88] }, id: "FSM" }, { arcs: [[[566]], [[567]], [[568]], [[569]], [[570]], [[571]], [[572]], [[573]], [[574]], [[575]], [[576]], [[577]], [[578]], [[579]], [[580]], [[581]], [[582]], [[583]], [[584]], [[585]], [[586]], [[587]], [[588]], [[589]]], type: "MultiPolygon", properties: { ct: [-157.63, 1.84] }, id: "KIR" }, { arcs: [[[805]], [[806]], [[807]], [[808]], [[809]], [[810]], [[811]], [[812]], [[813]], [[814]], [[815]], [[816]], [[817]], [[818]], [[819]], [[820]], [[821]], [[822]], [[823]], [[824]], [[825]], [[826]], [[827]], [[828]], [[829]], [[830]], [[831]], [[832]], [[833]], [[834]], [[835]], [[836]], [[837]], [[838]], [[839]], [[840]], [[841]], [[842]], [[843]], [[844]], [[845]], [[846]], [[847]], [[848]], [[849]], [[850]], [[851]], [[852]], [[853]], [[854]], [[855]], [[856]], [[857]], [[858]], [[859]], [[860]], [[861]], [[862]], [[863]], [[864]], [[865]], [[866]], [[867]], [[868]], [[869]], [[870]], [[871]], [[872]], [[873]], [[874]], [[875]], [[876]], [[877]], [[878]], [[879]], [[880]], [[881]], [[882]], [[883]], [[884]], [[885]], [[886]], [[887]], [[888]], [[889]], [[890]], [[891]], [[892]], [[893]], [[894]], [[895]], [[896]], [[897]], [[898]], [[899]], [[900]], [[901]], [[902]], [[903]], [[904]], [[905]], [[906]], [[907]], [[908]], [[909]], [[910]], [[911]], [[912]], [[913]], [[914]], [[915]], [[916]], [[917]], [[918]], [[919]], [[920]], [[921]], [[922]], [[923]], [[924]], [[925]], [[926]], [[927]], [[928]], [[929]], [[930]], [[931]], [[932]], [[933]], [[934]], [[935]], [[936]], [[937]], [[938]], [[939]], [[940]], [[941]], [[942]], [[943]], [[944]], [[945]], [[946]], [[947]], [[948]], [[949]], [[950]], [[951]], [[952]], [[953]], [[954]], [[955]], [[956]], [[957]], [[958]], [[959]], [[960]], [[961]], [[962]], [[963]], [[964]], [[965]], [[966]], [[967]], [[968]], [[969]], [[970]], [[971]], [[972]], [[973]], [[974]], [[975]], [[976]], [[977]], [[978]], [[979]], [[980]], [[981]], [[982]], [[983]], [[984]], [[985]], [[986]], [[987]], [[988]], [[989]], [[990]], [[991]], [[992]], [[993]], [[994]], [[995]], [[996]]], type: "MultiPolygon", properties: { ct: [171.1, 7.12] }, id: "MHL" }, { arcs: [[[999]], [[1e3]], [[1001]], [[1002]], [[1003]], [[1004]], [[1005]]], type: "MultiPolygon", properties: { ct: [145.76, 15.19] }, id: "MNP" }, { arcs: [[[1006]], [[1007]]], type: "MultiPolygon", properties: { ct: [-172.44, -13.62] }, id: "WSM" }, { arcs: [[[1013]], [[1014]], [[1015]], [[1016]], [[1017]], [[1018]], [[1019]], [[1020]], [[1021]], [[1022]], [[1023]], [[1024]], [[1025]], [[1026]], [[1027]], [[1028]]], type: "MultiPolygon", properties: { ct: [165.5, -21.33] }, id: "NCL" }, { arcs: [[1029]], type: "Polygon", properties: { ct: [-169.86, -19.05] }, id: "NIU" }, { arcs: [[[1030]], [[1031]], [[1032]], [[1033]]], type: "MultiPolygon", properties: { ct: [170.47, -44] }, id: "NZL" }, { arcs: [[1034]], type: "Polygon", properties: { ct: [166.92, -0.53] }, id: "NRU" }, { arcs: [[1036]], type: "Polygon", properties: { ct: [-128.32, -24.38] }, id: "PCN" }, { arcs: [[[1057]], [[1058]], [[1059]], [[1060]], [[1061]], [[1062]]], type: "MultiPolygon", properties: { ct: [134.57, 7.51] }, id: "PLW" }, { arcs: [[[1363, 542]], [[1063]], [[1064]], [[1065]], [[1066]], [[1067]], [[1068]], [[1069]], [[1070]], [[1071]], [[1072]], [[1073]], [[1074]]], type: "MultiPolygon", properties: { ct: [144.25, -6.6] }, id: "PNG" }, { arcs: [[[1076]], [[1077]], [[1078]], [[1079]], [[1080]], [[1081]], [[1082]], [[1083]], [[1084]], [[1085]], [[1086]], [[1087]], [[1088]], [[1089]], [[1090]], [[1091]], [[1092]], [[1093]], [[1094]], [[1095]], [[1096]], [[1097]], [[1098]], [[1099]], [[1100]], [[1101]], [[1102]], [[1103]], [[1104]], [[1105]], [[1106]], [[1107]], [[1108]], [[1109]], [[1110]], [[1111]], [[1112]], [[1113]], [[1114]], [[1115]], [[1116]], [[1117]], [[1118]], [[1119]], [[1120]], [[1121]], [[1122]], [[1123]], [[1124]], [[1125]], [[1126]], [[1127]], [[1128]], [[1129]], [[1130]]], type: "MultiPolygon", properties: { ct: [-149.39, -17.69] }, id: "PYF" }, { arcs: [[[1131]], [[1132]], [[1133]], [[1134]], [[1135]], [[1136]], [[1137]], [[1138]], [[1139]], [[1140]], [[1141]], [[1142]], [[1143]], [[1144]], [[1145]], [[1146]], [[1147]], [[1148]], [[1149]], [[1150]], [[1151]], [[1152]], [[1153]], [[1154]], [[1155]], [[1156]], [[1157]], [[1158]], [[1159]], [[1160]], [[1161]], [[1162]], [[1163]], [[1164]], [[1165]], [[1166]], [[1167]], [[1168]], [[1169]], [[1170]], [[1171]], [[1172]], [[1173]], [[1174]], [[1175]], [[1176]], [[1177]], [[1178]], [[1179]], [[1180]], [[1181]], [[1182]], [[1183]], [[1184]], [[1185]]], type: "MultiPolygon", properties: { ct: [160.14, -9.62] }, id: "SLB" }, { arcs: [[[1187]], [[1188]], [[1189]]], type: "MultiPolygon", properties: { ct: [179.18, -8.5] }, id: "TUV" }, { arcs: [[[1211]], [[1212]], [[1213]]], type: "MultiPolygon", properties: { ct: [-171.82, -9.17] }, id: "TKL" }, { arcs: [[[1214]], [[1215]], [[1216]], [[1217]], [[1218]], [[1219]], [[1220]], [[1221]], [[1222]], [[1223]], [[1224]], [[1225]], [[1226]], [[1227]], [[1228]], [[1229]]], type: "MultiPolygon", properties: { ct: [-175.2, -21.17] }, id: "TON" }, { arcs: [[[1253]], [[1254]], [[1255]], [[1256]], [[1257]], [[1258]], [[1259]], [[1260]], [[1261]], [[1262]], [[1263]], [[1264]], [[1265]], [[1266]], [[1267]], [[1268]], [[1269]], [[1270]], [[1271]], [[1272]], [[1273]], [[1274]], [[1275]], [[1276]], [[1277]], [[1278]], [[1279]], [[1280]], [[1281]], [[1282]]], type: "MultiPolygon", properties: { ct: [166.86, -15.22] }, id: "VUT" }, { arcs: [[1284]], type: "Polygon", properties: { ct: [167.95, -29.03] }, id: "NFK" }, { arcs: [[[1304]], [[1305]], [[1306]], [[1307]], [[1308]], [[1309]], [[1310]], [[1311]], [[1312]], [[1313]], [[1314]], [[1315]], [[1316]], [[1317]], [[1318]], [[1319]], [[1320]], [[1321]], [[1322]], [[1323]], [[1324]], [[1325]], [[1326]], [[1327]], [[1328]], [[1329]], [[1330]], [[1331]], [[1332]], [[1333]], [[1334]], [[1335]], [[1336]], [[1337]], [[1338]], [[1339]], [[1340]], [[1341]], [[1342]], [[1364, 1365, 1366, 1345]], [[1346]], [[1347]], [[1348, 1367, 1368, 1369, 1351]], [[1352, 1370, 1371, 1372, 1355]], [[1356, 1373, 1374, 1375]], [[1359, 1376, 1377, 1378, 1362]]], type: "MultiPolygon", properties: { ct: [177.95, -17.84] }, id: "FJI" }] }, lakes: { type: "GeometryCollection", geometries: [{ arcs: [[1379]], type: "Polygon" }, { arcs: [[1380]], type: "Polygon" }, { arcs: [[1381]], type: "Polygon" }, { arcs: [[1382]], type: "Polygon" }, { arcs: [[1383]], type: "Polygon" }, { arcs: [[1384]], type: "Polygon" }, { arcs: [[1385]], type: "Polygon" }, { arcs: [[1386]], type: "Polygon" }, { arcs: [[1387]], type: "Polygon" }, { arcs: [[1388]], type: "Polygon" }, { arcs: [[1389]], type: "Polygon" }, { arcs: [[1390]], type: "Polygon" }, { arcs: [[1391]], type: "Polygon" }] }, land: { type: "GeometryCollection", geometries: [{ arcs: [[[10]], [[11]], [[29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334]], [[335, 336, 337]], [[338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360]], [[361, 362, 363]], [[364, 365, 366, 367, 368]], [[369, 370, 371, 372]], [[373]], [[374, 375, 376]], [[377, 378, 379, 380]], [[381, 382, 383, 384]], [[385]], [[386]], [[387, 388, 389, 390, 391]], [[434]], [[435]], [[453]], [[454]], [[455]], [[456]], [[457]], [[458]], [[473]], [[480]], [[481]], [[482]], [[483]], [[484]], [[485]], [[486]], [[487]], [[566]], [[567]], [[568]], [[569]], [[570]], [[571]], [[572]], [[573]], [[574]], [[575]], [[576]], [[577]], [[578]], [[579]], [[580]], [[581]], [[582]], [[583]], [[584]], [[585]], [[586]], [[587]], [[588]], [[589]], [[805]], [[806]], [[807]], [[808]], [[809]], [[810]], [[811]], [[812]], [[813]], [[814]], [[815]], [[816]], [[817]], [[818]], [[819]], [[820]], [[821]], [[822]], [[823]], [[824]], [[825]], [[826]], [[827]], [[828]], [[829]], [[830]], [[831]], [[832]], [[833]], [[834]], [[835]], [[836]], [[837]], [[838]], [[839]], [[840]], [[841]], [[842]], [[843]], [[844]], [[845]], [[846]], [[847]], [[848]], [[849]], [[850]], [[851]], [[852]], [[853]], [[854]], [[855]], [[856]], [[857]], [[858]], [[859]], [[860]], [[861]], [[862]], [[863]], [[864]], [[865]], [[866]], [[867]], [[868]], [[869]], [[870]], [[871]], [[872]], [[873]], [[874]], [[875]], [[876]], [[877]], [[878]], [[879]], [[880]], [[881]], [[882]], [[883]], [[884]], [[885]], [[886]], [[887]], [[888]], [[889]], [[890]], [[891]], [[892]], [[893]], [[894]], [[895]], [[896]], [[897]], [[898]], [[899]], [[900]], [[901]], [[902]], [[903]], [[904]], [[905]], [[906]], [[907]], [[908]], [[909]], [[910]], [[911]], [[912]], [[913]], [[914]], [[915]], [[916]], [[917]], [[918]], [[919]], [[920]], [[921]], [[922]], [[923]], [[924]], [[925]], [[926]], [[927]], [[928]], [[929]], [[930]], [[931]], [[932]], [[933]], [[934]], [[935]], [[936]], [[937]], [[938]], [[939]], [[940]], [[941]], [[942]], [[943]], [[944]], [[945]], [[946]], [[947]], [[948]], [[949]], [[950]], [[951]], [[952]], [[953]], [[954]], [[955]], [[956]], [[957]], [[958]], [[959]], [[960]], [[961]], [[962]], [[963]], [[964]], [[965]], [[966]], [[967]], [[968]], [[969]], [[970]], [[971]], [[972]], [[973]], [[974]], [[975]], [[976]], [[977]], [[978]], [[979]], [[980]], [[981]], [[982]], [[983]], [[984]], [[985]], [[986]], [[987]], [[988]], [[989]], [[990]], [[991]], [[992]], [[993]], [[994]], [[995]], [[996]], [[999]], [[1e3]], [[1001]], [[1002]], [[1003]], [[1004]], [[1005]], [[1006]], [[1007]], [[1013]], [[1014]], [[1015]], [[1016]], [[1017]], [[1018]], [[1019]], [[1020]], [[1021]], [[1022]], [[1023]], [[1024]], [[1025]], [[1026]], [[1027]], [[1028]], [[1029]], [[1030]], [[1031]], [[1032]], [[1033]], [[1034]], [[1036]], [[1057]], [[1058]], [[1059]], [[1060]], [[1061]], [[1062]], [[1363, 542]], [[1063]], [[1064]], [[1065]], [[1066]], [[1067]], [[1068]], [[1069]], [[1070]], [[1071]], [[1072]], [[1073]], [[1074]], [[1076]], [[1077]], [[1078]], [[1079]], [[1080]], [[1081]], [[1082]], [[1083]], [[1084]], [[1085]], [[1086]], [[1087]], [[1088]], [[1089]], [[1090]], [[1091]], [[1092]], [[1093]], [[1094]], [[1095]], [[1096]], [[1097]], [[1098]], [[1099]], [[1100]], [[1101]], [[1102]], [[1103]], [[1104]], [[1105]], [[1106]], [[1107]], [[1108]], [[1109]], [[1110]], [[1111]], [[1112]], [[1113]], [[1114]], [[1115]], [[1116]], [[1117]], [[1118]], [[1119]], [[1120]], [[1121]], [[1122]], [[1123]], [[1124]], [[1125]], [[1126]], [[1127]], [[1128]], [[1129]], [[1130]], [[1131]], [[1132]], [[1133]], [[1134]], [[1135]], [[1136]], [[1137]], [[1138]], [[1139]], [[1140]], [[1141]], [[1142]], [[1143]], [[1144]], [[1145]], [[1146]], [[1147]], [[1148]], [[1149]], [[1150]], [[1151]], [[1152]], [[1153]], [[1154]], [[1155]], [[1156]], [[1157]], [[1158]], [[1159]], [[1160]], [[1161]], [[1162]], [[1163]], [[1164]], [[1165]], [[1166]], [[1167]], [[1168]], [[1169]], [[1170]], [[1171]], [[1172]], [[1173]], [[1174]], [[1175]], [[1176]], [[1177]], [[1178]], [[1179]], [[1180]], [[1181]], [[1182]], [[1183]], [[1184]], [[1185]], [[1187]], [[1188]], [[1189]], [[1211]], [[1212]], [[1213]], [[1214]], [[1215]], [[1216]], [[1217]], [[1218]], [[1219]], [[1220]], [[1221]], [[1222]], [[1223]], [[1224]], [[1225]], [[1226]], [[1227]], [[1228]], [[1229]], [[1253]], [[1254]], [[1255]], [[1256]], [[1257]], [[1258]], [[1259]], [[1260]], [[1261]], [[1262]], [[1263]], [[1264]], [[1265]], [[1266]], [[1267]], [[1268]], [[1269]], [[1270]], [[1271]], [[1272]], [[1273]], [[1274]], [[1275]], [[1276]], [[1277]], [[1278]], [[1279]], [[1280]], [[1281]], [[1282]], [[1284]], [[1304]], [[1305]], [[1306]], [[1307]], [[1308]], [[1309]], [[1310]], [[1311]], [[1312]], [[1313]], [[1314]], [[1315]], [[1316]], [[1317]], [[1318]], [[1319]], [[1320]], [[1321]], [[1322]], [[1323]], [[1324]], [[1325]], [[1326]], [[1327]], [[1328]], [[1329]], [[1330]], [[1331]], [[1332]], [[1333]], [[1334]], [[1335]], [[1336]], [[1337]], [[1338]], [[1339]], [[1340]], [[1341]], [[1342]], [[1364, 1365, 1366, 1345]], [[1346]], [[1347]], [[1348, 1367, 1368, 1369, 1351]], [[1352, 1370, 1371, 1372, 1355]], [[1356, 1373, 1374, 1375]], [[1359, 1376, 1377, 1378, 1362]]], type: "MultiPolygon" }] }, ocean: { type: "GeometryCollection", geometries: [{ arcs: [[[-1374, -1357, -1376, 1392, -1377, -1360, -1363, -1379, 1393, -1365, -1346, -1367, 1394, -425, 1395, -424, -426, 1396, -394, 1397, -422, 1398, -423, 1399, -2, -7, 1400, -6, 1401, -3, 1402, -1193, -1194, 1403, -1371, -1353, -1356, -1373, 1404, -1368, -1349, -1352, -1370, 1405, -9, -10, 1406, -438, -439, 1407], [-15], [-14], [-1031], [-451], [-22], [-23], [-452], [-453], [-24], [-25], [-26], [-27], [-21], [-17], [-18], [-19], [-20], [-13], [-16], [-1197], [-1202], [-1203], [-1200], [-1196], [-596], [-1199], [-1198], [-1297], [-1013], [-1012], [-1201], [-1233], [-1195], [-1235], [-1234], [-515], [-504], [-499], [-506], [-505], [-501], [-436], [-1298], [-523], [-1295], [-474], [-435], [-1296], [-511], [-1038], [-514], [-508], [-503], [-516], [-513], [-517], [-512], [-526], [-524], [-507], [-510], [-522], [-500], [-521], [-520], [-519], [-518], [-1033], [-363, -362, -364], [-337, -336, -338], [-361, -360, -359, -358, -357, -356, -355, -354, -353, -352, -351, -350, -349, -348, -347, -346, -345, -344, -343, -342, -341, -340, -339], [-373, -372, -371, -370], [-368, -367, -366, -365, -369], [-377, -376, -375], [-334, -333, -332, -331, -330, -329, -328, -327, -326, -325, -324, -323, -322, -321, -320, -319, -318, -317, -316, -315, -314, -313, -312, -311, -310, -309, -308, -307, -306, -305, -304, -303, -302, -301, -300, -299, -298, -297, -296, -295, -294, -293, -292, -291, -290, -289, -288, -287, -286, -285, -284, -283, -282, -281, -280, -279, -278, -277, -276, -275, -274, -273, -272, -271, -270, -269, -268, -267, -266, -265, -264, -263, -262, -261, -260, -259, -258, -257, -256, -255, -254, -253, -252, -251, -250, -249, -248, -247, -246, -245, -244, -243, -242, -241, -240, -239, -238, -237, -236, -235, -234, -233, -232, -231, -230, -229, -228, -227, -226, -225, -224, -223, -222, -221, -220, -219, -218, -217, -216, -215, -214, -213, -212, -211, -210, -209, -208, -207, -206, -205, -204, -203, -202, -201, -200, -199, -198, -197, -196, -195, -194, -193, -192, -191, -190, -189, -188, -187, -186, -185, -184, -183, -182, -181, -180, -179, -178, -177, -176, -175, -174, -173, -172, -171, -170, -169, -168, -167, -166, -165, -164, -163, -162, -161, -160, -159, -158, -157, -156, -155, -154, -153, -152, -151, -150, -149, -148, -147, -146, -145, -144, -143, -142, -141, -140, -139, -138, -137, -136, -135, -134, -133, -132, -131, -130, -129, -128, -127, -126, -125, -124, -123, -122, -121, -120, -119, -118, -117, -116, -115, -114, -113, -112, -111, -110, -109, -108, -107, -106, -105, -104, -103, -102, -101, -100, -99, -98, -97, -96, -95, -94, -93, -92, -91, -90, -89, -88, -87, -86, -85, -84, -83, -82, -81, -80, -79, -78, -77, -76, -75, -74, -73, -72, -71, -70, -69, -68, -67, -66, -65, -64, -63, -62, -61, -60, -59, -58, -57, -56, -55, -54, -53, -52, -51, -50, -49, -48, -47, -46, -45, -44, -43, -42, -41, -40, -39, -38, -37, -36, -35, -34, -33, -32, -31, -30, -335], [-496], [-392, -391, -390, -389, -388], [-497], [-374], [-386], [-387], [-502], [-498], [-1339], [-1334], [-1335], [-1314], [-1329], [-1317], [-1322], [-1308], [-1311], [-1315], [-1256], [-1257], [-1255], [-1305], [-1285], [-1034], [-1260], [-1343], [-1259], [-1258], [-1331], [-1341], [-1340], [-1342], [-1321], [-1320], [-1319], [-1324], [-1326], [-1336], [-1333], [-1328], [-1275], [-1274], [-1276], [-1273], [-1270], [-1272], [-1271], [-1269], [-1268], [-1267], [-1264], [-1265], [-1266], [-1263], [-1262], [-1261], [-1015], [-1014], [-1018], [-1017], [-1026], [-1025], [-1024], [-1022], [-1019], [-1023], [-1020], [-1021], [-1028], [-1027], [-1029], [-1254], [-1072], [-1160], [-1165], [-1182], [-1070], [-1169], [-543, -542], [-1067], [-1066], [-384, -383, -382, -385], [-1065], [-509], [-1068], [-380, -379, -378, -381], [-1064], [-1016], [-1179], [-1163], [-1170], [-1181], [-1073], [-1069], [-1071], [-1185], [-1167], [-1171], [-1172], [-1174], [-1183], [-1184], [-1186], [-1166], [-1149], [-1154], [-1153], [-1176], [-1164], [-1168], [-1159], [-1157], [-1158], [-1161], [-1178], [-1132], [-1177], [-1175], [-1173], [-1180], [-1283], [-1282], [-1162], [-1156], [-1281], [-1135], [-1145], [-1144], [-1148], [-1147], [-1136], [-1138], [-1150], [-1155], [-1152], [-1151], [-1348], [-1146], [-1188], [-1142], [-1190], [-1141], [-1140], [-1139], [-1137], [-1143], [-1277], [-1278], [-1133], [-1134], [-1280], [-1279], [-808], [-1035], [-807], [-585], [-583], [-582], [-581], [-580], [-579], [-578], [-574], [-576], [-575], [-577], [-573], [-1189], [-846], [-843], [-854], [-858], [-859], [-855], [-860], [-812], [-856], [-857], [-813], [-483], [-482], [-484], [-810], [-811], [-822], [-838], [-836], [-835], [-844], [-845], [-849], [-853], [-847], [-842], [-841], [-806], [-848], [-851], [-852], [-850], [-829], [-839], [-823], [-837], [-834], [-819], [-816], [-820], [-818], [-817], [-815], [-833], [-831], [-825], [-827], [-828], [-875], [-870], [-871], [-866], [-867], [-869], [-587], [-586], [-821], [-814], [-809], [-840], [-832], [-824], [-826], [-830], [-895], [-892], [-890], [-884], [-880], [-883], [-887], [-888], [-876], [-878], [-893], [-877], [-864], [-879], [-872], [-874], [-940], [-934], [-933], [-901], [-915], [-931], [-916], [-935], [-930], [-923], [-924], [-928], [-927], [-926], [-929], [-932], [-955], [-954], [-951], [-950], [-949], [-936], [-937], [-938], [-939], [-947], [-946], [-942], [-943], [-944], [-945], [-941], [-994], [-997], [-996], [-992], [-991], [-990], [-976], [-975], [-962], [-970], [-956], [-959], [-960], [-961], [-958], [-957], [-980], [-982], [-981], [-972], [-973], [-974], [-971], [-963], [-964], [-965], [-966], [-967], [-968], [-969], [-995], [-993], [-948], [-904], [-986], [-952], [-953], [-914], [-917], [-984], [-985], [-983], [-989], [-988], [-987], [-977], [-979], [-978], [-922], [-906], [-907], [-921], [-920], [-908], [-909], [-911], [-913], [-912], [-919], [-903], [-910], [-925], [-905], [-902], [-863], [-889], [-891], [-868], [-881], [-873], [-865], [-894], [-885], [-886], [-899], [-900], [-896], [-882], [-897], [-918], [-1075], [-1074], [-487], [-486], [-488], [-485], [-1005], [-1004], [-481], [-1e3], [-1003], [-1002], [-1001], [-898], [-862], [-861], [-1063], [-1058], [-1062], [-1061], [-1059], [-546], [-556], [-530], [-531], [-532], [-533], [-545], [-534], [-540], [-536], [-541], [-553], [-555], [-549], [-538], [-547], [-548], [-550], [-434], [-527], [-537], [-1041], [-1040], [-554], [-557], [-560], [-1060], [-565], [-564], [-559], [-563], [-562], [-552], [-561], [-529], [-558], [-1253], [-539], [-525], [-528], [-535], [-544], [-551], [-1043], [-1045], [-1048], [-1044], [-1052], [-1039], [-1047], [-1057], [-1046], [-1055], [-1053], [-1049], [-1054], [-1050], [-1051], [-998], [-393], [-595], [-999], [-450], [-1056], [-1042], [-1006], [-802], [-799], [-796], [-800], [-794], [-795], [-803], [-804], [-805], [-594], [-1284], [-787], [-776], [-777], [-778], [-783], [-779], [-780], [-781], [-782], [-788], [-784], [-786], [-785], [-792], [-790], [-789], [-731], [-732], [-735], [-736], [-744], [-747], [-748], [-753], [-775], [-771], [-768], [-762], [-758], [-755], [-772], [-774], [-673], [-678], [-672], [-680], [-671], [-670], [-662], [-663], [-664], [-667], [-725], [-726], [-727], [-728], [-729], [-730], [-698], [-700], [-714], [-707], [-697], [-696], [-695], [-694], [-692], [-691], [-690], [-684], [-686], [-685], [-689], [-677], [-711], [-597], [-716], [-721], [-715], [-722], [-713], [-717], [-723], [-720], [-718], [-706], [-719], [-708], [-709], [-710], [-681], [-674], [-675], [-704], [-682], [-683], [-687], [-688], [-693], [-676], [-699], [-703], [-702], [-701], [-705], [-712], [-742], [-745], [-743], [-738], [-739], [-733], [-724], [-666], [-741], [-737], [-734], [-740], [-665], [-668], [-669], [-679], [-767], [-766], [-765], [-764], [-763], [-761], [-760], [-759], [-756], [-757], [-752], [-751], [-750], [-754], [-749], [-746], [-652], [-651], [-649], [-647], [-801], [-603], [-601], [-599], [-598], [-797], [-791], [-798], [-793], [-773], [-770], [-769], [-641], [-640], [-639], [-642], [-635], [-636], [-638], [-643], [-648], [-637], [-646], [-650], [-661], [-654], [-653], [-655], [-615], [-616], [-614], [-613], [-611], [-610], [-608], [-628], [-629], [-630], [-631], [-632], [-633], [-634], [-644], [-645], [-625], [-620], [-612], [-622], [-609], [-626], [-607], [-606], [-624], [-623], [-621], [-605], [-617], [-618], [-619], [-604], [-460], [-461], [-462], [-1187], [-1192], [-1191], [-492], [-602], [-600], [-480], [-656], [-660], [-658], [-659], [-657], [-627], [-1286], [-1036], [-1291], [-430], [-429], [-469], [-468], [-428], [-467], [-432], [-1289], [-431], [-466], [-465], [-464], [-463], [-8], [-1288], [-591], [-1248], [-1010], [-592], [-1246], [-1287], [-1250], [-1251], [-1247], [-1252], [-473], [-1076], [-566], [-1], [-493], [-1231], [-1232], [-1245], [-489], [-1241], [-490], [-593], [-491], [-433], [-1011], [-478], [-28], [-1009], [-29], [-427], [-1209], [-1204], [-1208], [-1210], [-479], [-1211], [-495], [-1205], [-1206], [-1243], [-1244], [-397], [-1249], [-1207], [-1242], [-494], [-477], [-475], [-395], [-472], [-408], [-407], [-406], [-405], [-404], [-402], [-403], [-398], [-400], [-401], [-399], [-396], [-476], [-471], [-470], [-1304], [-419], [-418], [-417], [-411], [-412], [-416], [-415], [-414], [-420], [-410], [-421], [-409], [-413], [-1237], [-1236], [-1240], [-1238], [-1239], [-1212], [-1008], [-1007], [-1214], [-570], [-572], [-590], [-589], [-569], [-568], [-588], [-1292], [-584], [-1293], [-1290], [-1294], [-1077], [-1096], [-1093], [-1097], [-1123], [-1127], [-1126], [-1125], [-1124], [-1128], [-1129], [-1130], [-567], [-571], [-1131], [-1213], [-1108], [-1115], [-1113], [-1116], [-1118], [-1119], [-1121], [-1122], [-1120], [-1117], [-1099], [-1102], [-1103], [-1105], [-1112], [-1106], [-1092], [-1088], [-1090], [-1091], [-1094], [-1086], [-1087], [-1100], [-1110], [-1107], [-1111], [-1114], [-1109], [-1098], [-1101], [-1104], [-1227], [-1030], [-459], [-458], [-457], [-456], [-455], [-454], [-1082], [-1079], [-1080], [-1083], [-1085], [-1084], [-1095], [-1089], [-1327], [-1325], [-1318], [-1347], [-1323], [-1337], [-1338], [-1332], [-1230], [-1229], [-1330], [-12], [-11], [-1226], [-1228], [-1225], [-1220], [-1222], [-1309], [-1223], [-1310], [-1221], [-1312], [-1316], [-1218], [-1217], [-1216], [-1215], [-1306], [-1313], [-1307], [-1224], [-446], [-445], [-449], [-1302], [-442], [-447], [-448], [-1303], [-1081], [-1301], [-1037], [-1300], [-1299], [-1219], [-1032], [-1078], [-437], [-443], [-444], [-440], [-441]], [[1408, -4]], [[1409, -5]]], type: "MultiPolygon" }] }, rivers: { type: "GeometryCollection", geometries: [{ type: "MultiLineString", arcs: [[1410, 1411], [1412]] }, { type: "LineString", arcs: [1413] }, { type: "LineString", arcs: [1414] }, { type: "LineString", arcs: [1415] }, { type: "LineString", arcs: [1416] }, { type: "LineString", arcs: [1417] }, { type: "LineString", arcs: [1418] }, { type: "LineString", arcs: [1419] }, { type: "LineString", arcs: [1420] }, { type: "MultiLineString", arcs: [[1421], [1422, 1423], [1424, 1425]] }, { type: "MultiLineString", arcs: [[1426], [1427]] }, { type: "LineString", arcs: [1428] }, { type: "MultiLineString", arcs: [[1429], [1430]] }, { type: "LineString", arcs: [1431, 1432, 1433] }, { type: "LineString", arcs: [1434] }, { type: "LineString", arcs: [1435] }, { type: "LineString", arcs: [1436] }, { type: "LineString", arcs: [1437] }] }, subunits: { type: "GeometryCollection", geometries: [{ arcs: [[[1438]], [[1439, 1440, 157, 1441, 1442, 160, 1443, 162, 1444, 1445, 165, 1446, 167, 1447, 1448, 1449, 1450, 1451, 173, 1452, 1453, 176, 1454, 1455, 179, 1456, 181, 1457, 183, 1458, 185, 1459, 1460, 188, 1461, 1462, 191, 1463, 193, 1464, 1465, 1466, 197, 1467, 199, 1468, 1469, 1470, 1471, 204, 1472, 206, 1473, 208, 1474, 210, 1475, 212, 1476, 214, 1477, 216, 1478, 218, 1479, 1480, 221, 1481, 223, 1482, 1483, 1484, 227, 1485, 229, 1486, 231, 1487, 233, 1488, 235, 1489, 237, 1490, 239, 1491, 241, 1492, 243, 1493, 1494, 246, 1495, 1496, 249, 1497, 1498, 1499, 253, 1500, 255, 1501, 257, 1502, 1503, 1504]]], type: "MultiPolygon", properties: { ct: [122.18, -25.49], gu: "AUS" }, id: "WA" }, { arcs: [[[-1505, 1505, 1506, 261, 1507, 263, 1508, 265, 1509, 267, 1510, 269, 1511, 1512, 1513, 273, 1514, 275, 1515, 277, 1516, 1517, 280, 1518, 1519, 283, 1520, 1521, 1522, 287, 1523, 289, 1524, 291, 1525, 1526, 294, 1527, 1528, 297, 1529, 299, 1530, 1531, 1532, 303, 1533, 305, 1534, 307, 1535, 309, 1536, 311, 1537, 1538, 1539, 1540, 1541, 1542]], [[1543, 382, 1544, 1545]], [[1546]], [[387, 1547, 389, 1548, 1549]]], type: "MultiPolygon", properties: { ct: [133.37, -19.51], gu: "AUS" }, id: "NT" }, { arcs: [[[-1440, -1543, 1550, 1551, 1552, 1553, 1554, 124, 1555, 126, 1556, 128, 1557, 130, 1558, 132, 1559, 1560, 1561, 1562, 1563, 138, 1564, 140, 1565, 142, 1566, 1567, 145, 1568, 1569, 1570, 149, 1571, 151, 1572, 1573, 154, 1574, 1575]], [[1576, 1577, 1578, 1579]]], type: "MultiPolygon", properties: { ct: [135.83, -30.07], gu: "AUS" }, id: "SA" }, { arcs: [[[-1542, 1580, 316, 1581, 318, 1582, 1583, 321, 1584, 323, 1585, 1586, 326, 1587, 328, 1588, 330, 1589, 1590, 1591, 334, 1592, 1593, 1594, 1595, 1596, 34, 1597, 36, 1598, 38, 1599, 40, 1600, 1601, 1602, 1603, 45, 1604, 47, 1605, 49, 1606, 51, 1607, 53, 1608, 55, 1609, 57, 1610, 59, 1611, 61, 1612, 63, 1613, 65, 1614, 67, 1615, 69, 1616, 1617, -1551]], [[1618, 1619, 1620]], [[377, 1621, 379, 1622]]], type: "MultiPolygon", properties: { ct: [144.52, -22.59], gu: "AUS" }, id: "QL" }, { arcs: [[[346, 1623, 348, 1624, 1625, 351, 1626, 353, 1627, 1628, 1629, 357, 1630, 1631, 1632, 338, 1633, 340, 1634, 1635, 1636, 344, 1637]], [[1638, 336, 1639]], [[1640, 361, 1641]], [[1642, 1643, 1644, 1645, 1646]]], type: "MultiPolygon", properties: { ct: [146.57, -42], gu: "AUS" }, id: "TS" }, { arcs: [[-1553, 1647, 1648, 1649, 95, 1650, 97, 1651, 1652, 100, 1653, 1654, 1655, 104, 1656, 106, 1657, 1658, 109, 1659, 111, 1660, 113, 1661, 115, 1662, 1663, 1664, 119, 1665, 121, 1666]], type: "Polygon", properties: { ct: [144.29, -36.84], gu: "AUS" }, id: "VI" }, { arcs: [[1667]], type: "Polygon", properties: { ct: [149, -35.5], gu: "AUS" }, id: "CT" }, { arcs: [[1668, 1669, 1670]], type: "Polygon", properties: { ct: [150.65, -35.15], gu: "AUS" }, id: "JB" }, { arcs: [[-1552, -1618, 1671, 71, 1672, 73, 1673, 75, 1674, 77, 1675, 79, 1676, 81, 1677, 83, 1678, 85, 1679, 87, 1680, 89, 1681, -1669, 1682, 92, 1683, -1648], [-1668]], type: "Polygon", properties: { ct: [147.01, -32.17], gu: "AUS" }, id: "NS" }] } } }; + } + }); + // dist/topojson/south-america_50m.json var require_south_america_50m = __commonJS({ "dist/topojson/south-america_50m.json"(exports, module) { @@ -121,7 +149,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"; } }); @@ -130,20 +158,20 @@ var Plotly = (() => { "src/assets/geo_assets.js"(exports, module) { var topojson = { africa_110m: require_africa_110m(), - // antarctica_110m: require('../../dist/topojson/antarctica_110m.json'), + antarctica_110m: require_antarctica_110m(), asia_110m: require_asia_110m(), europe_110m: require_europe_110m(), "north-america_110m": require_north_america_110m(), - // oceania_110m: require('../../dist/topojson/oceania_110m.json'), + oceania_110m: require_oceania_110m(), "south-america_110m": require_south_america_110m(), usa_110m: require_usa_110m(), world_110m: require_world_110m(), africa_50m: require_africa_50m(), - // antarctica_50m: require('../../dist/topojson/antarctica_50m.json'), + antarctica_50m: require_antarctica_50m(), asia_50m: require_asia_50m(), europe_50m: require_europe_50m(), "north-america_50m": require_north_america_50m(), - // oceania_50m: require('../../dist/topojson/oceania_50m.json'), + oceania_50m: require_oceania_50m(), "south-america_50m": require_south_america_50m(), usa_50m: require_usa_50m(), world_50m: require_world_50m() diff --git a/dist/plotly-geo.js b/dist/plotly-geo.js index 39d1c83c102..a074dc9a930 100644 --- a/dist/plotly-geo.js +++ b/dist/plotly-geo.js @@ -1,5 +1,5 @@ /** -* plotly.js (geo) v3.1.0-rc.0 +* plotly.js (geo) 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-geo.min.js b/dist/plotly-geo.min.js index 8786356b2c9..56d354dcf52 100644 --- a/dist/plotly-geo.min.js +++ b/dist/plotly-geo.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (geo - minified) v3.1.0-rc.0 +* plotly.js (geo - 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 O_=Object.defineProperty;var OI=Object.getOwnPropertyDescriptor;var UI=Object.getOwnPropertyNames;var YI=Object.prototype.hasOwnProperty;var U_=(e,r)=>()=>(e&&(r=e(e=0)),r);var ne=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var GI=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of UI(r))!YI.call(e,a)&&a!==t&&O_(e,a,{get:()=>r[a],enumerable:!(n=OI(r,a))||n.enumerable});return e};var VI=e=>GI(O_({},"__esModule",{value:!0}),e);var Jh=ne(Y_=>{"use strict";Y_.version="3.1.0-rc.0"});var V_=ne((G_,$h)=>{(function(r,t,n){t[r]=t[r]||n(),typeof $h!="undefined"&&$h.exports&&($h.exports=t[r])})("Promise",typeof window!="undefined"?window:G_,function(){"use strict";var r,t,n,a=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(C){return setImmediate(C)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(C,x,b,A){return Object.defineProperty(C,x,{value:b,writable:!0,configurable:A!==!1})}}catch(_){r=function(x,b,A){return x[b]=A,x}}n=function(){var C,x,b;function A(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,D){b=new A(M,D),x?x.next=b:C=b,x=b,b=void 0},drain:function(){var M=C;for(C=x=t=void 0;M;)M.fn.call(M.self),M=M.next}}}();function o(_,C){n.add(_,C),t||(t=i(n.drain))}function l(_){var C,x=typeof _;return _!=null&&(x=="object"||x=="function")&&(C=_.then),typeof C=="function"?C:!1}function s(){for(var _=0;_0&&o(s,x))}catch(b){v.call(new d(x),b)}}}function v(_){var C=this;C.triggered||(C.triggered=!0,C.def&&(C=C.def),C.msg=_,C.state=2,C.chain.length>0&&o(s,C))}function h(_,C,x,b){for(var A=0;A{(function(){var e={version:"3.8.2"},r=[].slice,t=function(c){return r.call(c)},n=self.document;function a(c){return c&&(c.ownerDocument||c.document||c).documentElement}function i(c){return c&&(c.ownerDocument&&c.ownerDocument.defaultView||c.document&&c||c.defaultView)}if(n)try{t(n.documentElement.childNodes)[0].nodeType}catch(c){t=function(g){for(var w=g.length,S=new Array(w);w--;)S[w]=g[w];return S}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(c){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,w){l.call(this,g,w+"")},o.setAttributeNS=function(g,w,S){s.call(this,g,w,S+"")},u.setProperty=function(g,w,S){f.call(this,g,w+"",S)}}e.ascending=v;function v(c,g){return cg?1:c>=g?0:NaN}e.descending=function(c,g){return gc?1:g>=c?0:NaN},e.min=function(c,g){var w=-1,S=c.length,q,E;if(arguments.length===1){for(;++w=E){q=E;break}for(;++wE&&(q=E)}else{for(;++w=E){q=E;break}for(;++wE&&(q=E)}return q},e.max=function(c,g){var w=-1,S=c.length,q,E;if(arguments.length===1){for(;++w=E){q=E;break}for(;++wq&&(q=E)}else{for(;++w=E){q=E;break}for(;++wq&&(q=E)}return q},e.extent=function(c,g){var w=-1,S=c.length,q,E,G;if(arguments.length===1){for(;++w=E){q=G=E;break}for(;++wE&&(q=E),G=E){q=G=E;break}for(;++wE&&(q=E),G1)return G/(j-1)},e.deviation=function(){var c=e.variance.apply(this,arguments);return c&&Math.sqrt(c)};function m(c){return{left:function(g,w,S,q){for(arguments.length<3&&(S=0),arguments.length<4&&(q=g.length);S>>1;c(g[E],w)<0?S=E+1:q=E}return S},right:function(g,w,S,q){for(arguments.length<3&&(S=0),arguments.length<4&&(q=g.length);S>>1;c(g[E],w)>0?q=E:S=E+1}return S}}}var p=m(v);e.bisectLeft=p.left,e.bisect=e.bisectRight=p.right,e.bisector=function(c){return m(c.length===1?function(g,w){return v(c(g),w)}:c)},e.shuffle=function(c,g,w){(S=arguments.length)<3&&(w=c.length,S<2&&(g=0));for(var S=w-g,q,E;S;)E=Math.random()*S--|0,q=c[S+g],c[S+g]=c[E+g],c[E+g]=q;return c},e.permute=function(c,g){for(var w=g.length,S=new Array(w);w--;)S[w]=c[g[w]];return S},e.pairs=function(c){for(var g=0,w=c.length-1,S,q=c[0],E=new Array(w<0?0:w);g=0;)for(G=c[g],w=G.length;--w>=0;)E[--q]=G[w];return E};var _=Math.abs;e.range=function(c,g,w){if(arguments.length<3&&(w=1,arguments.length<2&&(g=c,c=0)),(g-c)/w===1/0)throw new Error("infinite range");var S=[],q=C(_(w)),E=-1,G;if(c*=q,g*=q,w*=q,w<0)for(;(G=c+w*++E)>g;)S.push(G/q);else for(;(G=c+w*++E)=g.length)return q?q.call(c,j):S?j.sort(S):j;for(var ie=-1,ge=j.length,me=g[ae++],Re,Ge,be,Se=new b,De;++ie=g.length)return N;var ae=[],ie=w[j++];return N.forEach(function(ge,me){ae.push({key:ge,values:G(me,j)})}),ie?ae.sort(function(ge,me){return ie(ge.key,me.key)}):ae}return c.map=function(N,j){return E(j,N,0)},c.entries=function(N){return G(E(e.map,N,0),0)},c.key=function(N){return g.push(N),c},c.sortKeys=function(N){return w[g.length-1]=N,c},c.sortValues=function(N){return S=N,c},c.rollup=function(N){return q=N,c},c},e.set=function(c){var g=new X;if(c)for(var w=0,S=c.length;w=0&&(S=c.slice(w+1),c=c.slice(0,w)),c)return arguments.length<2?this[c].on(S):this[c].on(S,g);if(arguments.length===2){if(g==null)for(c in this)this.hasOwnProperty(c)&&this[c].on(S,null);return this}};function he(c){var g=[],w=new b;function S(){for(var q=g,E=-1,G=q.length,N;++E=0&&(w=c.slice(0,g))!=="xmlns"&&(c=c.slice(g+1)),Te.hasOwnProperty(w)?{space:Te[w],local:c}:c}},pe.attr=function(c,g){if(arguments.length<2){if(typeof c=="string"){var w=this.node();return c=e.ns.qualify(c),c.local?w.getAttributeNS(c.space,c.local):w.getAttribute(c)}for(g in c)this.each(Be(g,c[g]));return this}return this.each(Be(c,g))};function Be(c,g){c=e.ns.qualify(c);function w(){this.removeAttribute(c)}function S(){this.removeAttributeNS(c.space,c.local)}function q(){this.setAttribute(c,g)}function E(){this.setAttributeNS(c.space,c.local,g)}function G(){var j=g.apply(this,arguments);j==null?this.removeAttribute(c):this.setAttribute(c,j)}function N(){var j=g.apply(this,arguments);j==null?this.removeAttributeNS(c.space,c.local):this.setAttributeNS(c.space,c.local,j)}return g==null?c.local?S:w:typeof g=="function"?c.local?N:G:c.local?E:q}function Ie(c){return c.trim().replace(/\s+/g," ")}pe.classed=function(c,g){if(arguments.length<2){if(typeof c=="string"){var w=this.node(),S=(c=ur(c)).length,q=-1;if(g=w.classList){for(;++q=0;)(E=w[S])&&(q&&q!==E.nextSibling&&q.parentNode.insertBefore(E,q),q=E);return this},pe.sort=function(c){c=Ue.apply(this,arguments);for(var g=-1,w=this.length;++g=g&&(g=q+1);!(j=G[g])&&++g0&&(c=c.slice(0,q));var G=br.get(c);G&&(c=G,E=mr);function N(){var ie=this[S];ie&&(this.removeEventListener(c,ie,ie.$),delete this[S])}function j(){var ie=E(g,t(arguments));N.call(this),this.addEventListener(c,this[S]=ie,ie.$=w),ie._=g}function ae(){var ie=new RegExp("^__on([^.]+)"+e.requote(c)+"$"),ge;for(var me in this)if(ge=me.match(ie)){var Re=this[me];this.removeEventListener(ge[1],Re,Re.$),delete this[me]}}return q?g?j:N:g?ee:ae}var br=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&br.forEach(function(c){"on"+c in n&&br.remove(c)});function Mr(c,g){return function(w){var S=e.event;e.event=w,g[0]=this.__data__;try{c.apply(this,g)}finally{e.event=S}}}function mr(c,g){var w=Mr(c,g);return function(S){var q=this,E=S.relatedTarget;(!E||E!==q&&!(E.compareDocumentPosition(q)&8))&&w.call(q,S)}}var pr,kr=0;function Pr(c){var g=".dragsuppress-"+ ++kr,w="click"+g,S=e.select(i(c)).on("touchmove"+g,qe).on("dragstart"+g,qe).on("selectstart"+g,qe);if(pr==null&&(pr="onselectstart"in c?!1:te(c.style,"userSelect")),pr){var q=a(c).style,E=q[pr];q[pr]="none"}return function(G){if(S.on(g,null),pr&&(q[pr]=E),G){var N=function(){S.on(w,null)};S.on(w,function(){qe(),N()},!0),setTimeout(N,0)}}}e.mouse=function(c){return lr(c,ze())};var Ur=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function lr(c,g){g.changedTouches&&(g=g.changedTouches[0]);var w=c.ownerSVGElement||c;if(w.createSVGPoint){var S=w.createSVGPoint();if(Ur<0){var q=i(c);if(q.scrollX||q.scrollY){w=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var E=w[0][0].getScreenCTM();Ur=!(E.f||E.e),w.remove()}}return Ur?(S.x=g.pageX,S.y=g.pageY):(S.x=g.clientX,S.y=g.clientY),S=S.matrixTransform(c.getScreenCTM().inverse()),[S.x,S.y]}var G=c.getBoundingClientRect();return[g.clientX-G.left-c.clientLeft,g.clientY-G.top-c.clientTop]}e.touch=function(c,g,w){if(arguments.length<3&&(w=g,g=ze().changedTouches),g){for(var S=0,q=g.length,E;S0?1:c<0?-1:0}function St(c,g,w){return(g[0]-c[0])*(w[1]-c[1])-(g[1]-c[1])*(w[0]-c[0])}function hn(c){return c>1?0:c<-1?We:Math.acos(c)}function Fn(c){return c>1?Hr:c<-1?-Hr:Math.asin(c)}function $n(c){return((c=Math.exp(c))-1/c)/2}function jt(c){return((c=Math.exp(c))+1/c)/2}function cn(c){return((c=Math.exp(2*c))-1)/(c+1)}function un(c){return(c=Math.sin(c/2))*c}var Kt=Math.SQRT2,aa=2,rt=4;e.interpolateZoom=function(c,g){var w=c[0],S=c[1],q=c[2],E=g[0],G=g[1],N=g[2],j=E-w,ae=G-S,ie=j*j+ae*ae,ge,me;if(ie<$e)me=Math.log(N/q)/Kt,ge=function(Ye){return[w+Ye*j,S+Ye*ae,q*Math.exp(Kt*Ye*me)]};else{var Re=Math.sqrt(ie),Ge=(N*N-q*q+rt*ie)/(2*q*aa*Re),be=(N*N-q*q-rt*ie)/(2*N*aa*Re),Se=Math.log(Math.sqrt(Ge*Ge+1)-Ge),De=Math.log(Math.sqrt(be*be+1)-be);me=(De-Se)/Kt,ge=function(Ye){var Ve=Ye*me,Pe=jt(Se),xr=q/(aa*Re)*(Pe*cn(Kt*Ve+Se)-$n(Se));return[w+xr*j,S+xr*ae,q*Pe/jt(Kt*Ve+Se)]}}return ge.duration=me*1e3,ge},e.behavior.zoom=function(){var c={x:0,y:0,k:1},g,w,S,q=[960,500],E=Qt,G=250,N=0,j="mousedown.zoom",ae="mousemove.zoom",ie="mouseup.zoom",ge,me="touchstart.zoom",Re,Ge=Ne(Ve,"zoomstart","zoom","zoomend"),be,Se,De,Ye;dn||(dn="onwheel"in n?(Ct=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in n?(Ct=function(){return e.event.wheelDelta},"mousewheel"):(Ct=function(){return-e.event.detail},"MozMousePixelScroll"));function Ve(Nr){Nr.on(j,ht).on(dn+".zoom",Zn).on("dblclick.zoom",on).on(me,Jt)}Ve.event=function(Nr){Nr.each(function(){var _t=Ge.of(this,arguments),wt=c;ga?e.select(this).transition().each("start.zoom",function(){c=this.__chart__||{x:0,y:0,k:1},$r(_t)}).tween("zoom:zoom",function(){var $t=q[0],Nn=q[1],oa=w?w[0]:$t/2,Da=w?w[1]:Nn/2,ja=e.interpolateZoom([(oa-c.x)/c.k,(Da-c.y)/c.k,$t/c.k],[(oa-wt.x)/wt.k,(Da-wt.y)/wt.k,$t/wt.k]);return function(fi){var Ja=ja(fi),ki=$t/Ja[2];this.__chart__=c={x:oa-Ja[0]*ki,y:Da-Ja[1]*ki,k:ki},bt(_t)}}).each("interrupt.zoom",function(){Qr(_t)}).each("end.zoom",function(){Qr(_t)}):(this.__chart__=c,$r(_t),bt(_t),Qr(_t))})},Ve.translate=function(Nr){return arguments.length?(c={x:+Nr[0],y:+Nr[1],k:c.k},Jr(),Ve):[c.x,c.y]},Ve.scale=function(Nr){return arguments.length?(c={x:c.x,y:c.y,k:null},Or(+Nr),Jr(),Ve):c.k},Ve.scaleExtent=function(Nr){return arguments.length?(E=Nr==null?Qt:[+Nr[0],+Nr[1]],Ve):E},Ve.center=function(Nr){return arguments.length?(S=Nr&&[+Nr[0],+Nr[1]],Ve):S},Ve.size=function(Nr){return arguments.length?(q=Nr&&[+Nr[0],+Nr[1]],Ve):q},Ve.duration=function(Nr){return arguments.length?(G=+Nr,Ve):G},Ve.x=function(Nr){return arguments.length?(Se=Nr,be=Nr.copy(),c={x:0,y:0,k:1},Ve):Se},Ve.y=function(Nr){return arguments.length?(Ye=Nr,De=Nr.copy(),c={x:0,y:0,k:1},Ve):Ye};function Pe(Nr){return[(Nr[0]-c.x)/c.k,(Nr[1]-c.y)/c.k]}function xr(Nr){return[Nr[0]*c.k+c.x,Nr[1]*c.k+c.y]}function Or(Nr){c.k=Math.max(E[0],Math.min(E[1],Nr))}function Wr(Nr,_t){_t=xr(_t),c.x+=Nr[0]-_t[0],c.y+=Nr[1]-_t[1]}function Gr(Nr,_t,wt,$t){Nr.__chart__={x:c.x,y:c.y,k:c.k},Or(Math.pow(2,$t)),Wr(w=_t,wt),Nr=e.select(Nr),G>0&&(Nr=Nr.transition().duration(G)),Nr.call(Ve.event)}function Jr(){Se&&Se.domain(be.range().map(function(Nr){return(Nr-c.x)/c.k}).map(be.invert)),Ye&&Ye.domain(De.range().map(function(Nr){return(Nr-c.y)/c.k}).map(De.invert))}function $r(Nr){N++||Nr({type:"zoomstart"})}function bt(Nr){Jr(),Nr({type:"zoom",scale:c.k,translate:[c.x,c.y]})}function Qr(Nr){--N||(Nr({type:"zoomend"}),w=null)}function ht(){var Nr=this,_t=Ge.of(Nr,arguments),wt=0,$t=e.select(i(Nr)).on(ae,Da).on(ie,ja),Nn=Pe(e.mouse(Nr)),oa=Pr(Nr);vt.call(Nr),$r(_t);function Da(){wt=1,Wr(e.mouse(Nr),Nn),bt(_t)}function ja(){$t.on(ae,null).on(ie,null),oa(wt),Qr(_t)}}function Jt(){var Nr=this,_t=Ge.of(Nr,arguments),wt={},$t=0,Nn,oa=".zoom-"+e.event.changedTouches[0].identifier,Da="touchmove"+oa,ja="touchend"+oa,fi=[],Ja=e.select(Nr),ki=Pr(Nr);Si(),$r(_t),Ja.on(j,null).on(me,Si);function Ha(){var ul=e.touches(Nr);return Nn=c.k,ul.forEach(function(Ea){Ea.identifier in wt&&(wt[Ea.identifier]=Pe(Ea))}),ul}function Si(){var ul=e.event.target;e.select(ul).on(Da,Zf).on(ja,BI),fi.push(ul);for(var Ea=e.event.changedTouches,mo=0,jl=Ea.length;mo1){var Xf=yo[0],qu=yo[1],jh=Xf[0]-qu[0],B_=Xf[1]-qu[1];$t=jh*jh+B_*B_}}function Zf(){var ul=e.touches(Nr),Ea,mo,jl,yo;vt.call(Nr);for(var g0=0,Xf=ul.length;g01?1:g,w=w<0?0:w>1?1:w,q=w<=.5?w*(1+g):w+g-w*g,S=2*w-q;function E(N){return N>360?N-=360:N<0&&(N+=360),N<60?S+(q-S)*N/60:N<180?q:N<240?S+(q-S)*(240-N)/60:S}function G(N){return Math.round(E(N)*255)}return new Hn(G(c+120),G(c),G(c-120))}e.hcl=Sn;function Sn(c,g,w){return this instanceof Sn?(this.h=+c,this.c=+g,void(this.l=+w)):arguments.length<2?c instanceof Sn?new Sn(c.h,c.c,c.l):c instanceof wn?El(c.l,c.a,c.b):El((c=Br((c=e.rgb(c)).r,c.g,c.b)).l,c.a,c.b):new Sn(c,g,w)}var Na=Sn.prototype=new pn;Na.brighter=function(c){return new Sn(this.h,this.c,Math.min(100,this.l+It*(arguments.length?c:1)))},Na.darker=function(c){return new Sn(this.h,this.c,Math.max(0,this.l-It*(arguments.length?c:1)))},Na.rgb=function(){return da(this.h,this.c,this.l).rgb()};function da(c,g,w){return isNaN(c)&&(c=0),isNaN(g)&&(g=0),new wn(w,Math.cos(c*=lt)*g,Math.sin(c)*g)}e.lab=wn;function wn(c,g,w){return this instanceof wn?(this.l=+c,this.a=+g,void(this.b=+w)):arguments.length<2?c instanceof wn?new wn(c.l,c.a,c.b):c instanceof Sn?da(c.h,c.c,c.l):Br((c=Hn(c)).r,c.g,c.b):new wn(c,g,w)}var It=18,In=.95047,pi=1,io=1.08883,gi=wn.prototype=new pn;gi.brighter=function(c){return new wn(Math.min(100,this.l+It*(arguments.length?c:1)),this.a,this.b)},gi.darker=function(c){return new wn(Math.max(0,this.l-It*(arguments.length?c:1)),this.a,this.b)},gi.rgb=function(){return ms(this.l,this.a,this.b)};function ms(c,g,w){var S=(c+16)/116,q=S+g/500,E=S-w/200;return q=Bo(q)*In,S=Bo(S)*pi,E=Bo(E)*io,new Hn(Oo(3.2404542*q-1.5371385*S-.4985314*E),Oo(-.969266*q+1.8760108*S+.041556*E),Oo(.0556434*q-.2040259*S+1.0572252*E))}function El(c,g,w){return c>0?new Sn(Math.atan2(w,g)*xt,Math.sqrt(g*g+w*w),c):new Sn(NaN,NaN,c)}function Bo(c){return c>.206893034?c*c*c:(c-4/29)/7.787037}function ys(c){return c>.008856?Math.pow(c,1/3):7.787037*c+4/29}function Oo(c){return Math.round(255*(c<=.00304?12.92*c:1.055*Math.pow(c,1/2.4)-.055))}e.rgb=Hn;function Hn(c,g,w){return this instanceof Hn?(this.r=~~c,this.g=~~g,void(this.b=~~w)):arguments.length<2?c instanceof Hn?new Hn(c.r,c.g,c.b):Lt(""+c,Hn,ha):new Hn(c,g,w)}function mi(c){return new Hn(c>>16,c>>8&255,c&255)}function Uo(c){return mi(c)+""}var yi=Hn.prototype=new pn;yi.brighter=function(c){c=Math.pow(.7,arguments.length?c:1);var g=this.r,w=this.g,S=this.b,q=30;return!g&&!w&&!S?new Hn(q,q,q):(g&&g>4,S=S>>4|S,q=j&240,q=q>>4|q,E=j&15,E=E<<4|E):c.length===7&&(S=(j&16711680)>>16,q=(j&65280)>>8,E=j&255)),g(S,q,E))}function Ht(c,g,w){var S=Math.min(c/=255,g/=255,w/=255),q=Math.max(c,g,w),E=q-S,G,N,j=(q+S)/2;return E?(N=j<.5?E/(q+S):E/(2-q-S),c==q?G=(g-w)/E+(g0&&j<1?0:G),new tn(G,N,j)}function Br(c,g,w){c=Vn(c),g=Vn(g),w=Vn(w);var S=ys((.4124564*c+.3575761*g+.1804375*w)/In),q=ys((.2126729*c+.7151522*g+.072175*w)/pi),E=ys((.0193339*c+.119192*g+.9503041*w)/io);return wn(116*q-16,500*(S-q),200*(q-E))}function Vn(c){return(c/=255)<=.04045?c/12.92:Math.pow((c+.055)/1.055,2.4)}function nn(c){var g=parseFloat(c);return c.charAt(c.length-1)==="%"?Math.round(g*2.55):g}var Dn=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});Dn.forEach(function(c,g){Dn.set(c,mi(g))});function At(c){return typeof c=="function"?c:function(){return c}}e.functor=At,e.xhr=Wa(V);function Wa(c){return function(g,w,S){return arguments.length===2&&typeof w=="function"&&(S=w,w=null),Yo(g,w,c,S)}}function Yo(c,g,w,S){var q={},E=e.dispatch("beforesend","progress","load","error"),G={},N=new XMLHttpRequest,j=null;self.XDomainRequest&&!("withCredentials"in N)&&/^(http(s)?:)?\/\//.test(c)&&(N=new XDomainRequest),"onload"in N?N.onload=N.onerror=ae:N.onreadystatechange=function(){N.readyState>3&&ae()};function ae(){var ie=N.status,ge;if(!ie&&cu(N)||ie>=200&&ie<300||ie===304){try{ge=w.call(q,N)}catch(me){E.error.call(q,me);return}E.load.call(q,ge)}else E.error.call(q,N)}return N.onprogress=function(ie){var ge=e.event;e.event=ie;try{E.progress.call(q,N)}finally{e.event=ge}},q.header=function(ie,ge){return ie=(ie+"").toLowerCase(),arguments.length<2?G[ie]:(ge==null?delete G[ie]:G[ie]=ge+"",q)},q.mimeType=function(ie){return arguments.length?(g=ie==null?null:ie+"",q):g},q.responseType=function(ie){return arguments.length?(j=ie,q):j},q.response=function(ie){return w=ie,q},["get","post"].forEach(function(ie){q[ie]=function(){return q.send.apply(q,[ie].concat(t(arguments)))}}),q.send=function(ie,ge,me){if(arguments.length===2&&typeof ge=="function"&&(me=ge,ge=null),N.open(ie,c,!0),g!=null&&!("accept"in G)&&(G.accept=g+",*/*"),N.setRequestHeader)for(var Re in G)N.setRequestHeader(Re,G[Re]);return g!=null&&N.overrideMimeType&&N.overrideMimeType(g),j!=null&&(N.responseType=j),me!=null&&q.on("error",me).on("load",function(Ge){me(null,Ge)}),E.beforesend.call(q,N),N.send(ge==null?null:ge),q},q.abort=function(){return N.abort(),q},e.rebind(q,E,"on"),S==null?q:q.get(wf(S))}function wf(c){return c.length===1?function(g,w){c(g==null?w:null)}:c}function cu(c){var g=c.responseType;return g&&g!=="text"?c.response:c.responseText}e.dsv=function(c,g){var w=new RegExp('["'+c+` -]`),S=c.charCodeAt(0);function q(ae,ie,ge){arguments.length<3&&(ge=ie,ie=null);var me=Yo(ae,g,ie==null?E:G(ie),ge);return me.row=function(Re){return arguments.length?me.response((ie=Re)==null?E:G(Re)):ie},me}function E(ae){return q.parse(ae.responseText)}function G(ae){return function(ie){return q.parse(ie.responseText,ae)}}q.parse=function(ae,ie){var ge;return q.parseRows(ae,function(me,Re){if(ge)return ge(me,Re-1);var Ge=function(be){for(var Se={},De=me.length,Ye=0;Ye=Ge)return me;if(Ye)return Ye=!1,ge;var xr=be;if(ae.charCodeAt(xr)===34){for(var Or=xr;Or++{var O_=Object.defineProperty;var UI=Object.getOwnPropertyDescriptor;var YI=Object.getOwnPropertyNames;var GI=Object.prototype.hasOwnProperty;var U_=(e,r)=>()=>(e&&(r=e(e=0)),r);var ne=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var VI=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of YI(r))!GI.call(e,a)&&a!==t&&O_(e,a,{get:()=>r[a],enumerable:!(n=UI(r,a))||n.enumerable});return e};var WI=e=>VI(O_({},"__esModule",{value:!0}),e);var Qh=ne(Y_=>{"use strict";Y_.version="3.1.0-rc.1"});var V_=ne((G_,ed)=>{(function(r,t,n){t[r]=t[r]||n(),typeof ed!="undefined"&&ed.exports&&(ed.exports=t[r])})("Promise",typeof window!="undefined"?window:G_,function(){"use strict";var r,t,n,a=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(C){return setImmediate(C)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(C,x,_,A){return Object.defineProperty(C,x,{value:_,writable:!0,configurable:A!==!1})}}catch(b){r=function(x,_,A){return x[_]=A,x}}n=function(){var C,x,_;function A(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,D){_=new A(M,D),x?x.next=_:C=_,x=_,_=void 0},drain:function(){var M=C;for(C=x=t=void 0;M;)M.fn.call(M.self),M=M.next}}}();function o(b,C){n.add(b,C),t||(t=i(n.drain))}function l(b){var C,x=typeof b;return b!=null&&(x=="object"||x=="function")&&(C=b.then),typeof C=="function"?C:!1}function s(){for(var b=0;b0&&o(s,x))}catch(_){v.call(new d(x),_)}}}function v(b){var C=this;C.triggered||(C.triggered=!0,C.def&&(C=C.def),C.msg=b,C.state=2,C.chain.length>0&&o(s,C))}function h(b,C,x,_){for(var A=0;A{(function(){var e={version:"3.8.2"},r=[].slice,t=function(c){return r.call(c)},n=self.document;function a(c){return c&&(c.ownerDocument||c.document||c).documentElement}function i(c){return c&&(c.ownerDocument&&c.ownerDocument.defaultView||c.document&&c||c.defaultView)}if(n)try{t(n.documentElement.childNodes)[0].nodeType}catch(c){t=function(g){for(var w=g.length,S=new Array(w);w--;)S[w]=g[w];return S}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(c){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,w){l.call(this,g,w+"")},o.setAttributeNS=function(g,w,S){s.call(this,g,w,S+"")},u.setProperty=function(g,w,S){f.call(this,g,w+"",S)}}e.ascending=v;function v(c,g){return cg?1:c>=g?0:NaN}e.descending=function(c,g){return gc?1:g>=c?0:NaN},e.min=function(c,g){var w=-1,S=c.length,q,E;if(arguments.length===1){for(;++w=E){q=E;break}for(;++wE&&(q=E)}else{for(;++w=E){q=E;break}for(;++wE&&(q=E)}return q},e.max=function(c,g){var w=-1,S=c.length,q,E;if(arguments.length===1){for(;++w=E){q=E;break}for(;++wq&&(q=E)}else{for(;++w=E){q=E;break}for(;++wq&&(q=E)}return q},e.extent=function(c,g){var w=-1,S=c.length,q,E,G;if(arguments.length===1){for(;++w=E){q=G=E;break}for(;++wE&&(q=E),G=E){q=G=E;break}for(;++wE&&(q=E),G1)return G/(j-1)},e.deviation=function(){var c=e.variance.apply(this,arguments);return c&&Math.sqrt(c)};function m(c){return{left:function(g,w,S,q){for(arguments.length<3&&(S=0),arguments.length<4&&(q=g.length);S>>1;c(g[E],w)<0?S=E+1:q=E}return S},right:function(g,w,S,q){for(arguments.length<3&&(S=0),arguments.length<4&&(q=g.length);S>>1;c(g[E],w)>0?q=E:S=E+1}return S}}}var p=m(v);e.bisectLeft=p.left,e.bisect=e.bisectRight=p.right,e.bisector=function(c){return m(c.length===1?function(g,w){return v(c(g),w)}:c)},e.shuffle=function(c,g,w){(S=arguments.length)<3&&(w=c.length,S<2&&(g=0));for(var S=w-g,q,E;S;)E=Math.random()*S--|0,q=c[S+g],c[S+g]=c[E+g],c[E+g]=q;return c},e.permute=function(c,g){for(var w=g.length,S=new Array(w);w--;)S[w]=c[g[w]];return S},e.pairs=function(c){for(var g=0,w=c.length-1,S,q=c[0],E=new Array(w<0?0:w);g=0;)for(G=c[g],w=G.length;--w>=0;)E[--q]=G[w];return E};var b=Math.abs;e.range=function(c,g,w){if(arguments.length<3&&(w=1,arguments.length<2&&(g=c,c=0)),(g-c)/w===1/0)throw new Error("infinite range");var S=[],q=C(b(w)),E=-1,G;if(c*=q,g*=q,w*=q,w<0)for(;(G=c+w*++E)>g;)S.push(G/q);else for(;(G=c+w*++E)=g.length)return q?q.call(c,j):S?j.sort(S):j;for(var ie=-1,ge=j.length,ye=g[ae++],ze,Ve,_e,Ce=new _,Ee;++ie=g.length)return N;var ae=[],ie=w[j++];return N.forEach(function(ge,ye){ae.push({key:ge,values:G(ye,j)})}),ie?ae.sort(function(ge,ye){return ie(ge.key,ye.key)}):ae}return c.map=function(N,j){return E(j,N,0)},c.entries=function(N){return G(E(e.map,N,0),0)},c.key=function(N){return g.push(N),c},c.sortKeys=function(N){return w[g.length-1]=N,c},c.sortValues=function(N){return S=N,c},c.rollup=function(N){return q=N,c},c},e.set=function(c){var g=new X;if(c)for(var w=0,S=c.length;w=0&&(S=c.slice(w+1),c=c.slice(0,w)),c)return arguments.length<2?this[c].on(S):this[c].on(S,g);if(arguments.length===2){if(g==null)for(c in this)this.hasOwnProperty(c)&&this[c].on(S,null);return this}};function he(c){var g=[],w=new _;function S(){for(var q=g,E=-1,G=q.length,N;++E=0&&(w=c.slice(0,g))!=="xmlns"&&(c=c.slice(g+1)),Se.hasOwnProperty(w)?{space:Se[w],local:c}:c}},pe.attr=function(c,g){if(arguments.length<2){if(typeof c=="string"){var w=this.node();return c=e.ns.qualify(c),c.local?w.getAttributeNS(c.space,c.local):w.getAttribute(c)}for(g in c)this.each(Oe(g,c[g]));return this}return this.each(Oe(c,g))};function Oe(c,g){c=e.ns.qualify(c);function w(){this.removeAttribute(c)}function S(){this.removeAttributeNS(c.space,c.local)}function q(){this.setAttribute(c,g)}function E(){this.setAttributeNS(c.space,c.local,g)}function G(){var j=g.apply(this,arguments);j==null?this.removeAttribute(c):this.setAttribute(c,j)}function N(){var j=g.apply(this,arguments);j==null?this.removeAttributeNS(c.space,c.local):this.setAttributeNS(c.space,c.local,j)}return g==null?c.local?S:w:typeof g=="function"?c.local?N:G:c.local?E:q}function Ie(c){return c.trim().replace(/\s+/g," ")}pe.classed=function(c,g){if(arguments.length<2){if(typeof c=="string"){var w=this.node(),S=(c=or(c)).length,q=-1;if(g=w.classList){for(;++q=0;)(E=w[S])&&(q&&q!==E.nextSibling&&q.parentNode.insertBefore(E,q),q=E);return this},pe.sort=function(c){c=Ye.apply(this,arguments);for(var g=-1,w=this.length;++g=g&&(g=q+1);!(j=G[g])&&++g0&&(c=c.slice(0,q));var G=hr.get(c);G&&(c=G,E=mr);function N(){var ie=this[S];ie&&(this.removeEventListener(c,ie,ie.$),delete this[S])}function j(){var ie=E(g,t(arguments));N.call(this),this.addEventListener(c,this[S]=ie,ie.$=w),ie._=g}function ae(){var ie=new RegExp("^__on([^.]+)"+e.requote(c)+"$"),ge;for(var ye in this)if(ge=ye.match(ie)){var ze=this[ye];this.removeEventListener(ge[1],ze,ze.$),delete this[ye]}}return q?g?j:N:g?Q:ae}var hr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&hr.forEach(function(c){"on"+c in n&&hr.remove(c)});function wr(c,g){return function(w){var S=e.event;e.event=w,g[0]=this.__data__;try{c.apply(this,g)}finally{e.event=S}}}function mr(c,g){var w=wr(c,g);return function(S){var q=this,E=S.relatedTarget;(!E||E!==q&&!(E.compareDocumentPosition(q)&8))&&w.call(q,S)}}var Tr,Dr=0;function Or(c){var g=".dragsuppress-"+ ++Dr,w="click"+g,S=e.select(i(c)).on("touchmove"+g,De).on("dragstart"+g,De).on("selectstart"+g,De);if(Tr==null&&(Tr="onselectstart"in c?!1:te(c.style,"userSelect")),Tr){var q=a(c).style,E=q[Tr];q[Tr]="none"}return function(G){if(S.on(g,null),Tr&&(q[Tr]=E),G){var N=function(){S.on(w,null)};S.on(w,function(){De(),N()},!0),setTimeout(N,0)}}}e.mouse=function(c){return ar(c,Ne())};var Cr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function ar(c,g){g.changedTouches&&(g=g.changedTouches[0]);var w=c.ownerSVGElement||c;if(w.createSVGPoint){var S=w.createSVGPoint();if(Cr<0){var q=i(c);if(q.scrollX||q.scrollY){w=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var E=w[0][0].getScreenCTM();Cr=!(E.f||E.e),w.remove()}}return Cr?(S.x=g.pageX,S.y=g.pageY):(S.x=g.clientX,S.y=g.clientY),S=S.matrixTransform(c.getScreenCTM().inverse()),[S.x,S.y]}var G=c.getBoundingClientRect();return[g.clientX-G.left-c.clientLeft,g.clientY-G.top-c.clientTop]}e.touch=function(c,g,w){if(arguments.length<3&&(w=g,g=Ne().changedTouches),g){for(var S=0,q=g.length,E;S0?1:c<0?-1:0}function It(c,g,w){return(g[0]-c[0])*(w[1]-c[1])-(g[1]-c[1])*(w[0]-c[0])}function An(c){return c>1?0:c<-1?Ze:Math.acos(c)}function Tn(c){return c>1?Pr:c<-1?-Pr:Math.asin(c)}function cn(c){return((c=Math.exp(c))-1/c)/2}function Ft(c){return((c=Math.exp(c))+1/c)/2}function jt(c){return((c=Math.exp(2*c))-1)/(c+1)}function en(c){return(c=Math.sin(c/2))*c}var Jt=Math.SQRT2,aa=2,rt=4;e.interpolateZoom=function(c,g){var w=c[0],S=c[1],q=c[2],E=g[0],G=g[1],N=g[2],j=E-w,ae=G-S,ie=j*j+ae*ae,ge,ye;if(ie<$e)ye=Math.log(N/q)/Jt,ge=function(Ge){return[w+Ge*j,S+Ge*ae,q*Math.exp(Jt*Ge*ye)]};else{var ze=Math.sqrt(ie),Ve=(N*N-q*q+rt*ie)/(2*q*aa*ze),_e=(N*N-q*q-rt*ie)/(2*N*aa*ze),Ce=Math.log(Math.sqrt(Ve*Ve+1)-Ve),Ee=Math.log(Math.sqrt(_e*_e+1)-_e);ye=(Ee-Ce)/Jt,ge=function(Ge){var We=Ge*ye,Re=Ft(Ce),br=q/(aa*ze)*(Re*jt(Jt*We+Ce)-cn(Ce));return[w+br*j,S+br*ae,q*Re/Ft(Jt*We+Ce)]}}return ge.duration=ye*1e3,ge},e.behavior.zoom=function(){var c={x:0,y:0,k:1},g,w,S,q=[960,500],E=rn,G=250,N=0,j="mousedown.zoom",ae="mousemove.zoom",ie="mouseup.zoom",ge,ye="touchstart.zoom",ze,Ve=Fe(We,"zoomstart","zoom","zoomend"),_e,Ce,Ee,Ge;dn||(dn="onwheel"in n?(St=function(){return-e.event.deltaY*(e.event.deltaMode?120:1)},"wheel"):"onmousewheel"in n?(St=function(){return e.event.wheelDelta},"mousewheel"):(St=function(){return-e.event.detail},"MozMousePixelScroll"));function We(Fr){Fr.on(j,ht).on(dn+".zoom",Xn).on("dblclick.zoom",sn).on(ye,Kt)}We.event=function(Fr){Fr.each(function(){var _t=Ve.of(this,arguments),wt=c;ma?e.select(this).transition().each("start.zoom",function(){c=this.__chart__||{x:0,y:0,k:1},$r(_t)}).tween("zoom:zoom",function(){var Qt=q[0],In=q[1],oa=w?w[0]:Qt/2,Da=w?w[1]:In/2,ja=e.interpolateZoom([(oa-c.x)/c.k,(Da-c.y)/c.k,Qt/c.k],[(oa-wt.x)/wt.k,(Da-wt.y)/wt.k,Qt/wt.k]);return function(fi){var Ja=ja(fi),ki=Qt/Ja[2];this.__chart__=c={x:oa-Ja[0]*ki,y:Da-Ja[1]*ki,k:ki},bt(_t)}}).each("interrupt.zoom",function(){Qr(_t)}).each("end.zoom",function(){Qr(_t)}):(this.__chart__=c,$r(_t),bt(_t),Qr(_t))})},We.translate=function(Fr){return arguments.length?(c={x:+Fr[0],y:+Fr[1],k:c.k},Jr(),We):[c.x,c.y]},We.scale=function(Fr){return arguments.length?(c={x:c.x,y:c.y,k:null},Yr(+Fr),Jr(),We):c.k},We.scaleExtent=function(Fr){return arguments.length?(E=Fr==null?rn:[+Fr[0],+Fr[1]],We):E},We.center=function(Fr){return arguments.length?(S=Fr&&[+Fr[0],+Fr[1]],We):S},We.size=function(Fr){return arguments.length?(q=Fr&&[+Fr[0],+Fr[1]],We):q},We.duration=function(Fr){return arguments.length?(G=+Fr,We):G},We.x=function(Fr){return arguments.length?(Ce=Fr,_e=Fr.copy(),c={x:0,y:0,k:1},We):Ce},We.y=function(Fr){return arguments.length?(Ge=Fr,Ee=Fr.copy(),c={x:0,y:0,k:1},We):Ge};function Re(Fr){return[(Fr[0]-c.x)/c.k,(Fr[1]-c.y)/c.k]}function br(Fr){return[Fr[0]*c.k+c.x,Fr[1]*c.k+c.y]}function Yr(Fr){c.k=Math.max(E[0],Math.min(E[1],Fr))}function Wr(Fr,_t){_t=br(_t),c.x+=Fr[0]-_t[0],c.y+=Fr[1]-_t[1]}function Vr(Fr,_t,wt,Qt){Fr.__chart__={x:c.x,y:c.y,k:c.k},Yr(Math.pow(2,Qt)),Wr(w=_t,wt),Fr=e.select(Fr),G>0&&(Fr=Fr.transition().duration(G)),Fr.call(We.event)}function Jr(){Ce&&Ce.domain(_e.range().map(function(Fr){return(Fr-c.x)/c.k}).map(_e.invert)),Ge&&Ge.domain(Ee.range().map(function(Fr){return(Fr-c.y)/c.k}).map(Ee.invert))}function $r(Fr){N++||Fr({type:"zoomstart"})}function bt(Fr){Jr(),Fr({type:"zoom",scale:c.k,translate:[c.x,c.y]})}function Qr(Fr){--N||(Fr({type:"zoomend"}),w=null)}function ht(){var Fr=this,_t=Ve.of(Fr,arguments),wt=0,Qt=e.select(i(Fr)).on(ae,Da).on(ie,ja),In=Re(e.mouse(Fr)),oa=Or(Fr);vt.call(Fr),$r(_t);function Da(){wt=1,Wr(e.mouse(Fr),In),bt(_t)}function ja(){Qt.on(ae,null).on(ie,null),oa(wt),Qr(_t)}}function Kt(){var Fr=this,_t=Ve.of(Fr,arguments),wt={},Qt=0,In,oa=".zoom-"+e.event.changedTouches[0].identifier,Da="touchmove"+oa,ja="touchend"+oa,fi=[],Ja=e.select(Fr),ki=Or(Fr);Si(),$r(_t),Ja.on(j,null).on(ye,Si);function Ha(){var ul=e.touches(Fr);return In=c.k,ul.forEach(function(Ea){Ea.identifier in wt&&(wt[Ea.identifier]=Re(Ea))}),ul}function Si(){var ul=e.event.target;e.select(ul).on(Da,Zf).on(ja,OI),fi.push(ul);for(var Ea=e.event.changedTouches,mo=0,jl=Ea.length;mo1){var Xf=yo[0],Du=yo[1],Kh=Xf[0]-Du[0],B_=Xf[1]-Du[1];Qt=Kh*Kh+B_*B_}}function Zf(){var ul=e.touches(Fr),Ea,mo,jl,yo;vt.call(Fr);for(var g0=0,Xf=ul.length;g01?1:g,w=w<0?0:w>1?1:w,q=w<=.5?w*(1+g):w+g-w*g,S=2*w-q;function E(N){return N>360?N-=360:N<0&&(N+=360),N<60?S+(q-S)*N/60:N<180?q:N<240?S+(q-S)*(240-N)/60:S}function G(N){return Math.round(E(N)*255)}return new On(G(c+120),G(c),G(c-120))}e.hcl=qn;function qn(c,g,w){return this instanceof qn?(this.h=+c,this.c=+g,void(this.l=+w)):arguments.length<2?c instanceof qn?new qn(c.h,c.c,c.l):c instanceof wn?El(c.l,c.a,c.b):El((c=Ur((c=e.rgb(c)).r,c.g,c.b)).l,c.a,c.b):new qn(c,g,w)}var Na=qn.prototype=new pn;Na.brighter=function(c){return new qn(this.h,this.c,Math.min(100,this.l+Ht*(arguments.length?c:1)))},Na.darker=function(c){return new qn(this.h,this.c,Math.max(0,this.l-Ht*(arguments.length?c:1)))},Na.rgb=function(){return pa(this.h,this.c,this.l).rgb()};function pa(c,g,w){return isNaN(c)&&(c=0),isNaN(g)&&(g=0),new wn(w,Math.cos(c*=lt)*g,Math.sin(c)*g)}e.lab=wn;function wn(c,g,w){return this instanceof wn?(this.l=+c,this.a=+g,void(this.b=+w)):arguments.length<2?c instanceof wn?new wn(c.l,c.a,c.b):c instanceof qn?pa(c.h,c.c,c.l):Ur((c=On(c)).r,c.g,c.b):new wn(c,g,w)}var Ht=18,Bn=.95047,pi=1,io=1.08883,gi=wn.prototype=new pn;gi.brighter=function(c){return new wn(Math.min(100,this.l+Ht*(arguments.length?c:1)),this.a,this.b)},gi.darker=function(c){return new wn(Math.max(0,this.l-Ht*(arguments.length?c:1)),this.a,this.b)},gi.rgb=function(){return ms(this.l,this.a,this.b)};function ms(c,g,w){var S=(c+16)/116,q=S+g/500,E=S-w/200;return q=Bo(q)*Bn,S=Bo(S)*pi,E=Bo(E)*io,new On(Oo(3.2404542*q-1.5371385*S-.4985314*E),Oo(-.969266*q+1.8760108*S+.041556*E),Oo(.0556434*q-.2040259*S+1.0572252*E))}function El(c,g,w){return c>0?new qn(Math.atan2(w,g)*xt,Math.sqrt(g*g+w*w),c):new qn(NaN,NaN,c)}function Bo(c){return c>.206893034?c*c*c:(c-4/29)/7.787037}function ys(c){return c>.008856?Math.pow(c,1/3):7.787037*c+4/29}function Oo(c){return Math.round(255*(c<=.00304?12.92*c:1.055*Math.pow(c,1/2.4)-.055))}e.rgb=On;function On(c,g,w){return this instanceof On?(this.r=~~c,this.g=~~g,void(this.b=~~w)):arguments.length<2?c instanceof On?new On(c.r,c.g,c.b):Ct(""+c,On,da):new On(c,g,w)}function mi(c){return new On(c>>16,c>>8&255,c&255)}function Uo(c){return mi(c)+""}var yi=On.prototype=new pn;yi.brighter=function(c){c=Math.pow(.7,arguments.length?c:1);var g=this.r,w=this.g,S=this.b,q=30;return!g&&!w&&!S?new On(q,q,q):(g&&g>4,S=S>>4|S,q=j&240,q=q>>4|q,E=j&15,E=E<<4|E):c.length===7&&(S=(j&16711680)>>16,q=(j&65280)>>8,E=j&255)),g(S,q,E))}function Bt(c,g,w){var S=Math.min(c/=255,g/=255,w/=255),q=Math.max(c,g,w),E=q-S,G,N,j=(q+S)/2;return E?(N=j<.5?E/(q+S):E/(2-q-S),c==q?G=(g-w)/E+(g0&&j<1?0:G),new an(G,N,j)}function Ur(c,g,w){c=Wn(c),g=Wn(g),w=Wn(w);var S=ys((.4124564*c+.3575761*g+.1804375*w)/Bn),q=ys((.2126729*c+.7151522*g+.072175*w)/pi),E=ys((.0193339*c+.119192*g+.9503041*w)/io);return wn(116*q-16,500*(S-q),200*(q-E))}function Wn(c){return(c/=255)<=.04045?c/12.92:Math.pow((c+.055)/1.055,2.4)}function on(c){var g=parseFloat(c);return c.charAt(c.length-1)==="%"?Math.round(g*2.55):g}var Pn=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Pn.forEach(function(c,g){Pn.set(c,mi(g))});function At(c){return typeof c=="function"?c:function(){return c}}e.functor=At,e.xhr=Wa(V);function Wa(c){return function(g,w,S){return arguments.length===2&&typeof w=="function"&&(S=w,w=null),Yo(g,w,c,S)}}function Yo(c,g,w,S){var q={},E=e.dispatch("beforesend","progress","load","error"),G={},N=new XMLHttpRequest,j=null;self.XDomainRequest&&!("withCredentials"in N)&&/^(http(s)?:)?\/\//.test(c)&&(N=new XDomainRequest),"onload"in N?N.onload=N.onerror=ae:N.onreadystatechange=function(){N.readyState>3&&ae()};function ae(){var ie=N.status,ge;if(!ie&&vu(N)||ie>=200&&ie<300||ie===304){try{ge=w.call(q,N)}catch(ye){E.error.call(q,ye);return}E.load.call(q,ge)}else E.error.call(q,N)}return N.onprogress=function(ie){var ge=e.event;e.event=ie;try{E.progress.call(q,N)}finally{e.event=ge}},q.header=function(ie,ge){return ie=(ie+"").toLowerCase(),arguments.length<2?G[ie]:(ge==null?delete G[ie]:G[ie]=ge+"",q)},q.mimeType=function(ie){return arguments.length?(g=ie==null?null:ie+"",q):g},q.responseType=function(ie){return arguments.length?(j=ie,q):j},q.response=function(ie){return w=ie,q},["get","post"].forEach(function(ie){q[ie]=function(){return q.send.apply(q,[ie].concat(t(arguments)))}}),q.send=function(ie,ge,ye){if(arguments.length===2&&typeof ge=="function"&&(ye=ge,ge=null),N.open(ie,c,!0),g!=null&&!("accept"in G)&&(G.accept=g+",*/*"),N.setRequestHeader)for(var ze in G)N.setRequestHeader(ze,G[ze]);return g!=null&&N.overrideMimeType&&N.overrideMimeType(g),j!=null&&(N.responseType=j),ye!=null&&q.on("error",ye).on("load",function(Ve){ye(null,Ve)}),E.beforesend.call(q,N),N.send(ge==null?null:ge),q},q.abort=function(){return N.abort(),q},e.rebind(q,E,"on"),S==null?q:q.get(wf(S))}function wf(c){return c.length===1?function(g,w){c(g==null?w:null)}:c}function vu(c){var g=c.responseType;return g&&g!=="text"?c.response:c.responseText}e.dsv=function(c,g){var w=new RegExp('["'+c+` +]`),S=c.charCodeAt(0);function q(ae,ie,ge){arguments.length<3&&(ge=ie,ie=null);var ye=Yo(ae,g,ie==null?E:G(ie),ge);return ye.row=function(ze){return arguments.length?ye.response((ie=ze)==null?E:G(ze)):ie},ye}function E(ae){return q.parse(ae.responseText)}function G(ae){return function(ie){return q.parse(ie.responseText,ae)}}q.parse=function(ae,ie){var ge;return q.parseRows(ae,function(ye,ze){if(ge)return ge(ye,ze-1);var Ve=function(_e){for(var Ce={},Ee=ye.length,Ge=0;Ge=Ve)return ye;if(Ge)return Ge=!1,ge;var br=_e;if(ae.charCodeAt(br)===34){for(var Yr=br;Yr++24?(isFinite(g)&&(clearTimeout(vu),vu=setTimeout(bi,g)),Vo=0):(Vo=1,Pl(bi))}e.timer.flush=function(){lo(),Wo()};function lo(){for(var c=Date.now(),g=oo;g;)c>=g.t&&g.c(c-g.t)&&(g.c=null),g=g.n;return c}function Wo(){for(var c,g=oo,w=1/0;g;)g.c?(g.t=0;--N)be.push(q[ae[ge[N]][2]]);for(N=+Re;N1&&St(c[w[S-2]],c[w[S-1]],c[q])<=0;)--S;w[S++]=q}return w.slice(0,S)}function Zc(c,g){return c[0]-g[0]||c[1]-g[1]}e.geom.polygon=function(c){return Ce(c,_s),c};var _s=e.geom.polygon.prototype=[];_s.area=function(){for(var c=-1,g=this.length,w,S=this[g-1],q=0;++cke)N=N.L;else if(G=g-Fv(N,w),G>ke){if(!N.R){S=N;break}N=N.R}else{E>-ke?(S=N.P,q=N):G>-ke?(S=N,q=N.N):S=q=N;break}var j=Ms(c);if(Bi.insert(S,j),!(!S&&!q)){if(S===q){co(S),q=Ms(S.site),Bi.insert(j,q),j.edge=q.edge=Il(S.site,j.site),fo(S),fo(q);return}if(!q){j.edge=Il(S.site,j.site);return}co(S),co(q);var ae=S.site,ie=ae.x,ge=ae.y,me=c.x-ie,Re=c.y-ge,Ge=q.site,be=Ge.x-ie,Se=Ge.y-ge,De=2*(me*Se-Re*be),Ye=me*me+Re*Re,Ve=be*be+Se*Se,Pe={x:(Se*Ye-Re*Ve)/De+ie,y:(me*Ve-be*Ye)/De+ge};Yi(q.edge,ae,Ge,Pe),j.edge=Il(ae,c,null,Pe),q.edge=Il(c,Ge,null,Pe),fo(S),fo(q)}}function Ts(c,g){var w=c.site,S=w.x,q=w.y,E=q-g;if(!E)return S;var G=c.P;if(!G)return-1/0;w=G.site;var N=w.x,j=w.y,ae=j-g;if(!ae)return N;var ie=N-S,ge=1/E-1/ae,me=ie/ae;return ge?(-me+Math.sqrt(me*me-2*ge*(ie*ie/(-2*ae)-j+ae/2+q-E/2)))/ge+S:(S+N)/2}function Fv(c,g){var w=c.N;if(w)return Ts(w,g);var S=c.site;return S.y===g?S.x:1/0}function Xo(c){this.site=c,this.edges=[]}Xo.prototype.prepare=function(){for(var c=this.edges,g=c.length,w;g--;)w=c[g].edge,(!w.b||!w.a)&&c.splice(g,1);return c.sort(Fl),c.length};function kf(c){for(var g=c[0][0],w=c[1][0],S=c[0][1],q=c[1][1],E,G,N,j,ae=uo,ie=ae.length,ge,me,Re,Ge,be,Se;ie--;)if(ge=ae[ie],!(!ge||!ge.prepare()))for(Re=ge.edges,Ge=Re.length,me=0;meke||_(j-G)>ke)&&(Re.splice(me,0,new jo(Hv(ge.site,Se,_(N-g)ke?{x:g,y:_(E-g)ke?{x:_(G-q)ke?{x:w,y:_(E-w)ke?{x:_(G-S)=-$e)){var me=j*j+ae*ae,Re=ie*ie+Se*Se,Ge=(Se*me-ae*Re)/ge,be=(j*Re-ie*me)/ge,Se=be+N,De=Tf.pop()||new Jc;De.arc=c,De.site=q,De.x=Ge+G,De.y=Se+Math.sqrt(Ge*Ge+be*be),De.cy=Se,c.circle=De;for(var Ye=null,Ve=Nl._;Ve;)if(De.y0)){if(be/=Re,Re<0){if(be0){if(be>me)return;be>ge&&(ge=be)}if(be=w-N,!(!Re&&be<0)){if(be/=Re,Re<0){if(be>me)return;be>ge&&(ge=be)}else if(Re>0){if(be0)){if(be/=Ge,Ge<0){if(be0){if(be>me)return;be>ge&&(ge=be)}if(be=S-j,!(!Ge&&be<0)){if(be/=Ge,Ge<0){if(be>me)return;be>ge&&(ge=be)}else if(Ge>0){if(be0&&(q.a={x:N+ge*Re,y:j+ge*Ge}),me<1&&(q.b={x:N+me*Re,y:j+me*Ge}),q}}}}}}function _i(c){for(var g=so,w=Sf(c[0][0],c[0][1],c[1][0],c[1][1]),S=g.length,q;S--;)q=g[S],(!Iv(q,c)||!w(q)||_(q.a.x-q.b.x)=E)return;if(ie>me){if(!S)S={x:Ge,y:G};else if(S.y>=N)return;w={x:Ge,y:N}}else{if(!S)S={x:Ge,y:N};else if(S.y1)if(ie>me){if(!S)S={x:(G-De)/Se,y:G};else if(S.y>=N)return;w={x:(N-De)/Se,y:N}}else{if(!S)S={x:(N-De)/Se,y:N};else if(S.y=E)return;w={x:E,y:Se*E+De}}else{if(!S)S={x:E,y:Se*E+De};else if(S.x=ie&&De.x<=me&&De.y>=ge&&De.y<=Re?[[ie,Re],[me,Re],[me,ge],[ie,ge]]:[];Ye.point=j[be]}),ae}function N(j){return j.map(function(ae,ie){return{x:Math.round(S(ae,ie)/ke)*ke,y:Math.round(q(ae,ie)/ke)*ke,i:ie}})}return G.links=function(j){return Ss(N(j)).edges.filter(function(ae){return ae.l&&ae.r}).map(function(ae){return{source:j[ae.l.i],target:j[ae.r.i]}})},G.triangles=function(j){var ae=[];return Ss(N(j)).cells.forEach(function(ie,ge){for(var me=ie.site,Re=ie.edges.sort(Fl),Ge=-1,be=Re.length,Se,De,Ye=Re[be-1].edge,Ve=Ye.l===me?Ye.r:Ye.l;++GeVe&&(Ve=ie.x),ie.y>Pe&&(Pe=ie.y),Re.push(ie.x),Ge.push(ie.y);else for(be=0;beVe&&(Ve=xr),Or>Pe&&(Pe=Or),Re.push(xr),Ge.push(Or)}var Wr=Ve-De,Gr=Pe-Ye;Wr>Gr?Pe=Ye+Wr:Ve=De+Gr;function Jr(Qr,ht,Jt,Zn,on,Nr,_t,wt){if(!(isNaN(Jt)||isNaN(Zn)))if(Qr.leaf){var $t=Qr.x,Nn=Qr.y;if($t!=null)if(_($t-Jt)+_(Nn-Zn)<.01)$r(Qr,ht,Jt,Zn,on,Nr,_t,wt);else{var oa=Qr.point;Qr.x=Qr.y=Qr.point=null,$r(Qr,oa,$t,Nn,on,Nr,_t,wt),$r(Qr,ht,Jt,Zn,on,Nr,_t,wt)}else Qr.x=Jt,Qr.y=Zn,Qr.point=ht}else $r(Qr,ht,Jt,Zn,on,Nr,_t,wt)}function $r(Qr,ht,Jt,Zn,on,Nr,_t,wt){var $t=(on+_t)*.5,Nn=(Nr+wt)*.5,oa=Jt>=$t,Da=Zn>=Nn,ja=Da<<1|oa;Qr.leaf=!1,Qr=Qr.nodes[ja]||(Qr.nodes[ja]=gu()),oa?on=$t:_t=$t,Da?Nr=Nn:wt=Nn,Jr(Qr,ht,Jt,Zn,on,Nr,_t,wt)}var bt=gu();if(bt.add=function(Qr){Jr(bt,Qr,+ge(Qr,++be),+me(Qr,be),De,Ye,Ve,Pe)},bt.visit=function(Qr){oi(Qr,bt,De,Ye,Ve,Pe)},bt.find=function(Qr){return mu(bt,Qr[0],Qr[1],De,Ye,Ve,Pe)},be=-1,g==null){for(;++beE||me>G||Re=xr,Gr=w>=Or,Jr=Gr<<1|Wr,$r=Jr+4;Jr<$r;++Jr)if(ie=Pe[Jr&3])switch(Jr&3){case 0:ae(ie,ge,me,xr,Or);break;case 1:ae(ie,xr,me,Re,Or);break;case 2:ae(ie,ge,Or,xr,Ge);break;case 3:ae(ie,xr,Or,Re,Ge);break}}}(c,S,q,E,G),j}e.interpolateRgb=yu;function yu(c,g){c=e.rgb(c),g=e.rgb(g);var w=c.r,S=c.g,q=c.b,E=g.r-w,G=g.g-S,N=g.b-q;return function(j){return"#"+Kr(Math.round(w+E*j))+Kr(Math.round(S+G*j))+Kr(Math.round(q+N*j))}}e.interpolateObject=Fa;function Fa(c,g){var w={},S={},q;for(q in c)q in g?w[q]=Qo(c[q],g[q]):S[q]=c[q];for(q in g)q in c||(S[q]=g[q]);return function(E){for(q in w)S[q]=w[q](E);return S}}e.interpolateNumber=Kn;function Kn(c,g){return c=+c,g=+g,function(w){return c*(1-w)+g*w}}e.interpolateString=Aa;function Aa(c,g){var w=Gi.lastIndex=Ls.lastIndex=0,S,q,E,G=-1,N=[],j=[];for(c=c+"",g=g+"";(S=Gi.exec(c))&&(q=Ls.exec(g));)(E=q.index)>w&&(E=g.slice(w,E),N[G]?N[G]+=E:N[++G]=E),(S=S[0])===(q=q[0])?N[G]?N[G]+=q:N[++G]=q:(N[++G]=null,j.push({i:G,x:Kn(S,q)})),w=Ls.lastIndex;return w=0&&!(S=e.interpolators[w](c,g)););return S}e.interpolators=[function(c,g){var w=typeof g;return(w==="string"?Dn.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?yu:Aa:g instanceof pn?yu:Array.isArray(g)?Ol:w==="object"&&isNaN(g)?Fa:Kn)(c,g)}],e.interpolateArray=Ol;function Ol(c,g){var w=[],S=[],q=c.length,E=g.length,G=Math.min(c.length,g.length),N;for(N=0;N=0?c.slice(0,g):c,S=g>=0?c.slice(g+1):"in";return w=$c.get(w)||Cf,S=Bv.get(S)||V,Ov(S(w.apply(null,r.call(arguments,1))))};function Ov(c){return function(g){return g<=0?0:g>=1?1:c(g)}}function Lf(c){return function(g){return 1-c(1-g)}}function qf(c){return function(g){return .5*(g<.5?c(2*g):2-c(2-2*g))}}function Df(c){return c*c}function Ef(c){return c*c*c}function Kc(c){if(c<=0)return 0;if(c>=1)return 1;var g=c*c,w=g*c;return 4*(c<.5?w:3*(c-g)+w-.75)}function Qc(c){return function(g){return Math.pow(g,c)}}function qs(c){return 1-Math.cos(c*Hr)}function Ds(c){return Math.pow(2,10*(c-1))}function xi(c){return 1-Math.sqrt(1-c*c)}function bu(c,g){var w;return arguments.length<2&&(g=.45),arguments.length?w=g/qr*Math.asin(1/c):(c=1,w=g/4),function(S){return 1+c*Math.pow(2,-10*S)*Math.sin((S-w)*qr/g)}}function Es(c){return c||(c=1.70158),function(g){return g*g*((c+1)*g-c)}}function _u(c){return c<1/2.75?7.5625*c*c:c<2/2.75?7.5625*(c-=1.5/2.75)*c+.75:c<2.5/2.75?7.5625*(c-=2.25/2.75)*c+.9375:7.5625*(c-=2.625/2.75)*c+.984375}e.interpolateHcl=e0;function e0(c,g){c=e.hcl(c),g=e.hcl(g);var w=c.h,S=c.c,q=c.l,E=g.h-w,G=g.c-S,N=g.l-q;return isNaN(G)&&(G=0,S=isNaN(S)?g.c:S),isNaN(E)?(E=0,w=isNaN(w)?g.h:w):E>180?E-=360:E<-180&&(E+=360),function(j){return da(w+E*j,S+G*j,q+N*j)+""}}e.interpolateHsl=Pf;function Pf(c,g){c=e.hsl(c),g=e.hsl(g);var w=c.h,S=c.s,q=c.l,E=g.h-w,G=g.s-S,N=g.l-q;return isNaN(G)&&(G=0,S=isNaN(S)?g.s:S),isNaN(E)?(E=0,w=isNaN(w)?g.h:w):E>180?E-=360:E<-180&&(E+=360),function(j){return ha(w+E*j,S+G*j,q+N*j)+""}}e.interpolateLab=Uv;function Uv(c,g){c=e.lab(c),g=e.lab(g);var w=c.l,S=c.a,q=c.b,E=g.l-w,G=g.a-S,N=g.b-q;return function(j){return ms(w+E*j,S+G*j,q+N*j)+""}}e.interpolateRound=ho;function ho(c,g){return g-=c,function(w){return Math.round(c+g*w)}}e.transform=function(c){var g=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(w){if(w!=null){g.setAttribute("transform",w);var S=g.transform.baseVal.consolidate()}return new xu(S?S.matrix:Rf)})(c)};function xu(c){var g=[c.a,c.b],w=[c.c,c.d],S=Ps(g),q=Ul(g,w),E=Ps(Rs(w,g,-q))||0;g[0]*w[1]180?g+=360:g-c>180&&(c+=360),S.push({i:w.push(po(w)+"rotate(",null,")")-2,x:Kn(c,g)})):g&&w.push(po(w)+"rotate("+g+")")}function t0(c,g,w,S){c!==g?S.push({i:w.push(po(w)+"skewX(",null,")")-2,x:Kn(c,g)}):g&&w.push(po(w)+"skewX("+g+")")}function Nf(c,g,w,S){if(c[0]!==g[0]||c[1]!==g[1]){var q=w.push(po(w)+"scale(",null,",",null,")");S.push({i:q-4,x:Kn(c[0],g[0])},{i:q-2,x:Kn(c[1],g[1])})}else(g[0]!==1||g[1]!==1)&&w.push(po(w)+"scale("+g+")")}function wu(c,g){var w=[],S=[];return c=e.transform(c),g=e.transform(g),r0(c.translate,g.translate,w,S),zf(c.rotate,g.rotate,w,S),t0(c.skew,g.skew,w,S),Nf(c.scale,g.scale,w,S),c=g=null,function(q){for(var E=-1,G=S.length,N;++E0?E=Pe:(w.c=null,w.t=NaN,w=null,g.end({type:"end",alpha:E=0})):Pe>0&&(g.start({type:"start",alpha:E=Pe}),w=Rl(c.tick)),c):E},c.start=function(){var Pe,xr=Re.length,Or=Ge.length,Wr=S[0],Gr=S[1],Jr,$r;for(Pe=0;Pe=0;)E.push(ie=ae[j]),ie.parent=N,ie.depth=N.depth+1;w&&(N.value=0),N.children=ae}else w&&(N.value=+w.call(S,N,N.depth)||0),delete N.children;return Ia(q,function(ge){var me,Re;c&&(me=ge.children)&&me.sort(c),w&&(Re=ge.parent)&&(Re.value+=ge.value)}),G}return S.sort=function(q){return arguments.length?(c=q,S):c},S.children=function(q){return arguments.length?(g=q,S):g},S.value=function(q){return arguments.length?(w=q,S):w},S.revalue=function(q){return w&&(Mi(q,function(E){E.children&&(E.value=0)}),Ia(q,function(E){var G;E.children||(E.value=+w.call(S,E,E.depth)||0),(G=E.parent)&&(G.value+=E.value)})),q},S};function Vi(c,g){return e.rebind(c,g,"sort","children","value"),c.nodes=c,c.links=Za,c}function Mi(c,g){for(var w=[c];(c=w.pop())!=null;)if(g(c),(q=c.children)&&(S=q.length))for(var S,q;--S>=0;)w.push(q[S])}function Ia(c,g){for(var w=[c],S=[];(c=w.pop())!=null;)if(S.push(c),(G=c.children)&&(E=G.length))for(var q=-1,E,G;++qq&&(q=N),S.push(N)}for(G=0;GS&&(w=g,S=q);return w}function Is(c){return c.reduce(rl,0)}function rl(c,g){return c+g[1]}e.layout.histogram=function(){var c=!0,g=Number,w=Vl,S=Hs;function q(E,me){for(var N=[],j=E.map(g,this),ae=w.call(this,j,me),ie=S.call(this,ae,j,me),ge,me=-1,Re=j.length,Ge=ie.length-1,be=c?1:1/Re,Se;++me0)for(me=-1;++me=ae[0]&&Se<=ae[1]&&(ge=N[e.bisect(ie,Se,1,Ge)-1],ge.y+=be,ge.push(E[me]));return N}return q.value=function(E){return arguments.length?(g=E,q):g},q.range=function(E){return arguments.length?(w=At(E),q):w},q.bins=function(E){return arguments.length?(S=typeof E=="number"?function(G){return tl(G,E)}:At(E),q):S},q.frequency=function(E){return arguments.length?(c=!!E,q):c},q};function Hs(c,g){return tl(c,Math.ceil(Math.log(g.length)/Math.LN2+1))}function tl(c,g){for(var w=-1,S=+c[0],q=(c[1]-S)/g,E=[];++w<=g;)E[w]=q*w+S;return E}function Vl(c){return[e.min(c),e.max(c)]}e.layout.pack=function(){var c=e.layout.hierarchy().sort(Tu),g=0,w=[1,1],S;function q(E,G){var N=c.call(this,E,G),j=N[0],ae=w[0],ie=w[1],ge=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(j.x=j.y=0,Ia(j,function(Re){Re.r=+ge(Re.value)}),Ia(j,f0),g){var me=g*(S?1:Math.max(2*j.r/ae,2*j.r/ie))/2;Ia(j,function(Re){Re.r+=me}),Ia(j,f0),Ia(j,function(Re){Re.r-=me})}return Su(j,ae/2,ie/2,S?1:1/Math.max(2*j.r/ae,2*j.r/ie)),N}return q.size=function(E){return arguments.length?(w=E,q):w},q.radius=function(E){return arguments.length?(S=E==null||typeof E=="function"?E:+E,q):S},q.padding=function(E){return arguments.length?(g=+E,q):g},Vi(q,c)};function Tu(c,g){return c.value-g.value}function Bs(c,g){var w=c._pack_next;c._pack_next=g,g._pack_prev=c,g._pack_next=w,w._pack_prev=g}function u0(c,g){c._pack_next=g,g._pack_prev=c}function ku(c,g){var w=g.x-c.x,S=g.y-c.y,q=c.r+g.r;return .999*q*q>w*w+S*S}function f0(c){if(!(g=c.children)||!(me=g.length))return;var g,w=1/0,S=-1/0,q=1/0,E=-1/0,G,N,j,ae,ie,ge,me;function Re(Pe){w=Math.min(Pe.x-Pe.r,w),S=Math.max(Pe.x+Pe.r,S),q=Math.min(Pe.y-Pe.r,q),E=Math.max(Pe.y+Pe.r,E)}if(g.forEach(c0),G=g[0],G.x=-G.r,G.y=0,Re(G),me>1&&(N=g[1],N.x=N.r,N.y=0,Re(N),me>2))for(j=g[2],Wn(G,N,j),Re(j),Bs(G,j),G._pack_prev=j,Bs(j,N),N=G._pack_next,ae=3;aeSe.x&&(Se=xr),xr.depth>De.depth&&(De=xr)});var Ye=g(be,Se)/2-be.x,Ve=w[0]/(Se.x+g(Se,be)/2+Ye),Pe=w[1]/(De.depth||1);Mi(Re,function(xr){xr.x=(xr.x+Ye)*Ve,xr.y=xr.depth*Pe})}return me}function E(ie){for(var ge={A:null,children:[ie]},me=[ge],Re;(Re=me.pop())!=null;)for(var Ge=Re.children,be,Se=0,De=Ge.length;Se0&&(Os(I(be,ie,me),ie,xr),De+=xr,Ye+=xr),Ve+=be.m,De+=Re.m,Pe+=Se.m,Ye+=Ge.m;be&&!Cu(Ge)&&(Ge.t=be,Ge.m+=Ve-Ye),Re&&!Wl(Se)&&(Se.t=Re,Se.m+=De-Pe,me=ie)}return me}function ae(ie){ie.x*=w[0],ie.y=ie.depth*w[1]}return q.separation=function(ie){return arguments.length?(g=ie,q):g},q.size=function(ie){return arguments.length?(S=(w=ie)==null?ae:null,q):S?null:w},q.nodeSize=function(ie){return arguments.length?(S=(w=ie)==null?null:ae,q):S?w:null},Vi(q,c)};function li(c,g){return c.parent==g.parent?1:2}function Wl(c){var g=c.children;return g.length?g[0]:c.t}function Cu(c){var g=c.children,w;return(w=g.length)?g[w-1]:c.t}function Os(c,g,w){var S=w/(g.i-c.i);g.c-=S,g.s+=w,c.c+=S,g.z+=w,g.m+=w}function Yf(c){for(var g=0,w=0,S=c.children,q=S.length,E;--q>=0;)E=S[q],E.z+=g,E.m+=g,g+=E.s+(w+=E.c)}function I(c,g,w){return c.a.parent===g.parent?c.a:w}e.layout.cluster=function(){var c=e.layout.hierarchy().sort(null).value(null),g=li,w=[1,1],S=!1;function q(E,G){var N=c.call(this,E,G),j=N[0],ae,ie=0;Ia(j,function(be){var Se=be.children;Se&&Se.length?(be.x=ce(Se),be.y=J(Se)):(be.x=ae?ie+=g(be,ae):0,be.y=0,ae=be)});var ge=oe(j),me=we(j),Re=ge.x-g(ge,me)/2,Ge=me.x+g(me,ge)/2;return Ia(j,S?function(be){be.x=(be.x-j.x)*w[0],be.y=(j.y-be.y)*w[1]}:function(be){be.x=(be.x-Re)/(Ge-Re)*w[0],be.y=(1-(j.y?be.y/j.y:1))*w[1]}),N}return q.separation=function(E){return arguments.length?(g=E,q):g},q.size=function(E){return arguments.length?(S=(w=E)==null,q):S?null:w},q.nodeSize=function(E){return arguments.length?(S=(w=E)!=null,q):S?w:null},Vi(q,c)};function J(c){return 1+e.max(c,function(g){return g.y})}function ce(c){return c.reduce(function(g,w){return g+w.x},0)/c.length}function oe(c){var g=c.children;return g&&g.length?oe(g[0]):c}function we(c){var g=c.children,w;return g&&(w=g.length)?we(g[w-1]):c}e.layout.treemap=function(){var c=e.layout.hierarchy(),g=Math.round,w=[1,1],S=null,q=He,E=!1,G,N="squarify",j=.5*(1+Math.sqrt(5));function ae(be,Se){for(var De=-1,Ye=be.length,Ve,Pe;++De0;)Ye.push(Pe=Ve[Gr-1]),Ye.area+=Pe.area,N!=="squarify"||(Or=me(Ye,Wr))<=xr?(Ve.pop(),xr=Or):(Ye.area-=Ye.pop().area,Re(Ye,Wr,De,!1),Wr=Math.min(De.dx,De.dy),Ye.length=Ye.area=0,xr=1/0);Ye.length&&(Re(Ye,Wr,De,!0),Ye.length=Ye.area=0),Se.forEach(ie)}}function ge(be){var Se=be.children;if(Se&&Se.length){var De=q(be),Ye=Se.slice(),Ve,Pe=[];for(ae(Ye,De.dx*De.dy/be.value),Pe.area=0;Ve=Ye.pop();)Pe.push(Ve),Pe.area+=Ve.area,Ve.z!=null&&(Re(Pe,Ve.z?De.dx:De.dy,De,!Ye.length),Pe.length=Pe.area=0);Se.forEach(ge)}}function me(be,Se){for(var De=be.area,Ye,Ve=0,Pe=1/0,xr=-1,Or=be.length;++xrVe&&(Ve=Ye));return De*=De,Se*=Se,De?Math.max(Se*Ve*j/De,De/(Se*Pe*j)):1/0}function Re(be,Se,De,Ye){var Ve=-1,Pe=be.length,xr=De.x,Or=De.y,Wr=Se?g(be.area/Se):0,Gr;if(Se==De.dx){for((Ye||Wr>De.dy)&&(Wr=De.dy);++VeDe.dx)&&(Wr=De.dx);++Ve1);return c+g*S*Math.sqrt(-2*Math.log(E)/E)}},logNormal:function(){var c=e.random.normal.apply(e,arguments);return function(){return Math.exp(c())}},bates:function(c){var g=e.random.irwinHall(c);return function(){return g()/c}},irwinHall:function(c){return function(){for(var g=0,w=0;w2?Ar:_r,ae=S?If:Ff;return q=j(c,g,ae,w),E=j(g,c,ae,Qo),N}function N(j){return q(j)}return N.invert=function(j){return E(j)},N.domain=function(j){return arguments.length?(c=j.map(Number),G()):c},N.range=function(j){return arguments.length?(g=j,G()):g},N.rangeRound=function(j){return N.range(j).interpolate(ho)},N.clamp=function(j){return arguments.length?(S=j,G()):S},N.interpolate=function(j){return arguments.length?(w=j,G()):w},N.ticks=function(j){return nt(c,j)},N.tickFormat=function(j,ae){return d3_scale_linearTickFormat(c,j,ae)},N.nice=function(j){return jr(c,j),G()},N.copy=function(){return Lr(c,g,w,S)},G()}function et(c,g){return e.rebind(c,g,"range","rangeRound","interpolate","clamp")}function jr(c,g){return Qe(c,hr(tt(c,g)[2])),Qe(c,hr(tt(c,g)[2])),c}function tt(c,g){g==null&&(g=10);var w=ar(c),S=w[1]-w[0],q=Math.pow(10,Math.floor(Math.log(S/g)/Math.LN10)),E=g/S*q;return E<=.15?q*=10:E<=.35?q*=5:E<=.75&&(q*=2),w[0]=Math.ceil(w[0]/q)*q,w[1]=Math.floor(w[1]/q)*q+q*.5,w[2]=q,w}function nt(c,g){return e.range.apply(e,tt(c,g))}var Dr={s:1,g:1,p:1,r:1,e:1};function Ir(c){return-Math.floor(Math.log(c)/Math.LN10+.01)}function it(c,g){var w=Ir(g[2]);return c in Dr?Math.abs(w-Ir(Math.max(_(g[0]),_(g[1]))))+ +(c!=="e"):w-(c==="%")*2}e.scale.log=function(){return pt(e.scale.linear().domain([0,1]),10,!0,[1,10])};function pt(c,g,w,S){function q(N){return(w?Math.log(N<0?0:N):-Math.log(N>0?0:-N))/Math.log(g)}function E(N){return w?Math.pow(g,N):-Math.pow(g,-N)}function G(N){return c(q(N))}return G.invert=function(N){return E(c.invert(N))},G.domain=function(N){return arguments.length?(w=N[0]>=0,c.domain((S=N.map(Number)).map(q)),G):S},G.base=function(N){return arguments.length?(g=+N,c.domain(S.map(q)),G):g},G.nice=function(){var N=Qe(S.map(q),w?Math:Yt);return c.domain(N),S=N.map(E),G},G.ticks=function(){var N=ar(S),j=[],ae=N[0],ie=N[1],ge=Math.floor(q(ae)),me=Math.ceil(q(ie)),Re=g%1?2:g;if(isFinite(me-ge)){if(w){for(;ge0;Ge--)j.push(E(ge)*Ge);for(ge=0;j[ge]ie;me--);j=j.slice(ge,me)}return j},G.copy=function(){return pt(c.copy(),g,w,S)},et(G,c)}var Yt={floor:function(c){return-Math.ceil(-c)},ceil:function(c){return-Math.floor(-c)}};e.scale.pow=function(){return en(e.scale.linear(),1,[0,1])};function en(c,g,w){var S=Wt(g),q=Wt(1/g);function E(G){return c(S(G))}return E.invert=function(G){return q(c.invert(G))},E.domain=function(G){return arguments.length?(c.domain((w=G.map(Number)).map(S)),E):w},E.ticks=function(G){return nt(w,G)},E.tickFormat=function(G,N){return d3_scale_linearTickFormat(w,G,N)},E.nice=function(G){return E.domain(jr(w,G))},E.exponent=function(G){return arguments.length?(S=Wt(g=G),q=Wt(1/g),c.domain(w.map(S)),E):g},E.copy=function(){return en(c.copy(),g,w)},et(E,c)}function Wt(c){return function(g){return g<0?-Math.pow(-g,c):Math.pow(g,c)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return gn([],{t:"range",a:[[]]})};function gn(c,g){var w,S,q;function E(N){return S[((w.get(N)||(g.t==="range"?w.set(N,c.push(N)):NaN))-1)%S.length]}function G(N,j){return e.range(c.length).map(function(ae){return N+j*ae})}return E.domain=function(N){if(!arguments.length)return c;c=[],w=new b;for(var j=-1,ae=N.length,ie;++j0?w[E-1]:c[0],Eme?0:1;if(ie=Vr)return j(ie,Ge)+(ae?j(ae,1-Ge):"")+"Z";var be,Se,De,Ye,Ve=0,Pe=0,xr,Or,Wr,Gr,Jr,$r,bt,Qr,ht=[];if((Ye=(+G.apply(this,arguments)||0)/2)&&(De=S===Wi?Math.sqrt(ae*ae+ie*ie):+S.apply(this,arguments),Ge||(Pe*=-1),ie&&(Pe=Fn(De/ie*Math.sin(Ye))),ae&&(Ve=Fn(De/ae*Math.sin(Ye)))),ie){xr=ie*Math.cos(ge+Pe),Or=ie*Math.sin(ge+Pe),Wr=ie*Math.cos(me-Pe),Gr=ie*Math.sin(me-Pe);var Jt=Math.abs(me-ge-2*Pe)<=We?0:1;if(Pe&&Lu(xr,Or,Wr,Gr)===Ge^Jt){var Zn=(ge+me)/2;xr=ie*Math.cos(Zn),Or=ie*Math.sin(Zn),Wr=Gr=null}}else xr=Or=0;if(ae){Jr=ae*Math.cos(me-Ve),$r=ae*Math.sin(me-Ve),bt=ae*Math.cos(ge+Ve),Qr=ae*Math.sin(ge+Ve);var on=Math.abs(ge-me+2*Ve)<=We?0:1;if(Ve&&Lu(Jr,$r,bt,Qr)===1-Ge^on){var Nr=(ge+me)/2;Jr=ae*Math.cos(Nr),$r=ae*Math.sin(Nr),bt=Qr=null}}else Jr=$r=0;if(Re>ke&&(be=Math.min(Math.abs(ie-ae)/2,+w.apply(this,arguments)))>.001){Se=ae0?0:1}function v0(c,g,w,S,q){var E=c[0]-g[0],G=c[1]-g[1],N=(q?S:-S)/Math.sqrt(E*E+G*G),j=N*G,ae=-N*E,ie=c[0]+j,ge=c[1]+ae,me=g[0]+j,Re=g[1]+ae,Ge=(ie+me)/2,be=(ge+Re)/2,Se=me-ie,De=Re-ge,Ye=Se*Se+De*De,Ve=w-S,Pe=ie*Re-me*ge,xr=(De<0?-1:1)*Math.sqrt(Math.max(0,Ve*Ve*Ye-Pe*Pe)),Or=(Pe*De-Se*xr)/Ye,Wr=(-Pe*Se-De*xr)/Ye,Gr=(Pe*De+Se*xr)/Ye,Jr=(-Pe*Se+De*xr)/Ye,$r=Or-Ge,bt=Wr-be,Qr=Gr-Ge,ht=Jr-be;return $r*$r+bt*bt>Qr*Qr+ht*ht&&(Or=Gr,Wr=Jr),[[Or-j,Wr-ae],[Or*w/Ve,Wr*w/Ve]]}function h0(){return!0}function Uh(c){var g=zl,w=bs,S=h0,q=Zi,E=q.key,G=.7;function N(j){var ae=[],ie=[],ge=-1,me=j.length,Re,Ge=At(g),be=At(w);function Se(){ae.push("M",q(c(ie),G))}for(;++ge1?c.join("L"):c+"Z"}function Yh(c){return c.join("L")+"Z"}function Gh(c){for(var g=0,w=c.length,S=c[0],q=[S[0],",",S[1]];++g1&&q.push("H",S[0]),q.join("")}function d0(c){for(var g=0,w=c.length,S=c[0],q=[S[0],",",S[1]];++g1){N=g[1],E=c[j],j++,S+="C"+(q[0]+G[0])+","+(q[1]+G[1])+","+(E[0]-N[0])+","+(E[1]-N[1])+","+E[0]+","+E[1];for(var ae=2;ae9&&(E=w*3/Math.sqrt(E),G[N]=E*S,G[N+1]=E*q));for(N=-1;++N<=j;)E=(c[Math.min(j,N+1)][0]-c[Math.max(0,N-1)][0])/(6*(1+G[N]*G[N])),g.push([E||0,G[N]*E||0]);return g}function se(c){return c.length<3?Zi(c):c[0]+p0(c,Z(c))}e.svg.line.radial=function(){var c=Uh(ve);return c.radius=c.x,delete c.x,c.angle=c.y,delete c.y,c};function ve(c){for(var g,w=-1,S=c.length,q,E;++wWe)+",1 "+ge}function ae(ie,ge,me,Re){return"Q 0,0 "+Re}return E.radius=function(ie){return arguments.length?(w=At(ie),E):w},E.source=function(ie){return arguments.length?(c=At(ie),E):c},E.target=function(ie){return arguments.length?(g=At(ie),E):g},E.startAngle=function(ie){return arguments.length?(S=At(ie),E):S},E.endAngle=function(ie){return arguments.length?(q=At(ie),E):q},E};function Le(c){return c.radius}e.svg.diagonal=function(){var c=de,g=xe,w=Fe;function S(q,E){var G=c.call(this,q,E),N=g.call(this,q,E),j=(G.y+N.y)/2,ae=[G,{x:G.x,y:j},{x:N.x,y:j},N];return ae=ae.map(w),"M"+ae[0]+"C"+ae[1]+" "+ae[2]+" "+ae[3]}return S.source=function(q){return arguments.length?(c=At(q),S):c},S.target=function(q){return arguments.length?(g=At(q),S):g},S.projection=function(q){return arguments.length?(w=q,S):w},S};function Fe(c){return[c.x,c.y]}e.svg.diagonal.radial=function(){var c=e.svg.diagonal(),g=Fe,w=c.projection;return c.projection=function(S){return arguments.length?w(tr(g=S)):g},c};function tr(c){return function(){var g=c.apply(this,arguments),w=g[0],S=g[1]-Hr;return[w*Math.cos(S),w*Math.sin(S)]}}e.svg.symbol=function(){var c=Tr,g=cr;function w(S,q){return(at.get(c.call(this,S,q))||Zr)(g.call(this,S,q))}return w.type=function(S){return arguments.length?(c=At(S),w):c},w.size=function(S){return arguments.length?(g=At(S),w):g},w};function cr(){return 64}function Tr(){return"circle"}function Zr(c){var g=Math.sqrt(c/We);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var at=e.map({circle:Zr,cross:function(c){var g=Math.sqrt(c/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(c){var g=Math.sqrt(c/(2*st)),w=g*st;return"M0,"+-g+"L"+w+",0 0,"+g+" "+-w+",0Z"},square:function(c){var g=Math.sqrt(c)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(c){var g=Math.sqrt(c/ot),w=g*ot/2;return"M0,"+w+"L"+g+","+-w+" "+-g+","+-w+"Z"},"triangle-up":function(c){var g=Math.sqrt(c/ot),w=g*ot/2;return"M0,"+-w+"L"+g+","+w+" "+-g+","+w+"Z"}});e.svg.symbolTypes=at.keys();var ot=Math.sqrt(3),st=Math.tan(30*lt);pe.transition=function(c){for(var g=ga||++zn,w=La(c),S=[],q,E,G=ui||{time:Date.now(),ease:Kc,delay:0,duration:250},N=-1,j=this.length;++N0;)ge[--Ye].call(c,De);if(Se>=1)return G.event&&G.event.end.call(c,c.__data__,g),--E.count?delete E[S]:delete c[w],1}G||(N=q.time,j=Rl(me,0,N),G=E[S]={tween:new b,time:N,timer:j,delay:q.delay,duration:q.duration,ease:q.ease,index:g},q=null,++E.count)}e.svg.axis=function(){var c=e.scale.linear(),g=Xi,w=6,S=6,q=3,E=[10],G=null,N;function j(ae){ae.each(function(){var ie=e.select(this),ge=this.__chart__||c,me=this.__chart__=c.copy(),Re=G==null?me.ticks?me.ticks.apply(me,E):me.domain():G,Ge=N==null?me.tickFormat?me.tickFormat.apply(me,E):V:N,be=ie.selectAll(".tick").data(Re,me),Se=be.enter().insert("g",".domain").attr("class","tick").style("opacity",ke),De=e.transition(be.exit()).style("opacity",ke).remove(),Ye=e.transition(be.order()).style("opacity",1),Ve=Math.max(w,0)+q,Pe,xr=sr(me),Or=ie.selectAll(".domain").data([0]),Wr=(Or.enter().append("path").attr("class","domain"),e.transition(Or));Se.append("line"),Se.append("text");var Gr=Se.select("line"),Jr=Ye.select("line"),$r=be.select("text").text(Ge),bt=Se.select("text"),Qr=Ye.select("text"),ht=g==="top"||g==="left"?-1:1,Jt,Zn,on,Nr;if(g==="bottom"||g==="top"?(Pe=ll,Jt="x",on="y",Zn="x2",Nr="y2",$r.attr("dy",ht<0?"0em":".71em").style("text-anchor","middle"),Wr.attr("d","M"+xr[0]+","+ht*S+"V0H"+xr[1]+"V"+ht*S)):(Pe=sl,Jt="y",on="x",Zn="y2",Nr="x2",$r.attr("dy",".32em").style("text-anchor",ht<0?"end":"start"),Wr.attr("d","M"+ht*S+","+xr[0]+"H0V"+xr[1]+"H"+ht*S)),Gr.attr(Nr,ht*w),bt.attr(on,ht*Ve),Jr.attr(Zn,0).attr(Nr,ht*w),Qr.attr(Jt,0).attr(on,ht*Ve),me.rangeBand){var _t=me,wt=_t.rangeBand()/2;ge=me=function($t){return _t($t)+wt}}else ge.rangeBand?ge=me:De.call(Pe,me,ge);Se.call(Pe,ge,me),Ye.call(Pe,me,me)})}return j.scale=function(ae){return arguments.length?(c=ae,j):c},j.orient=function(ae){return arguments.length?(g=ae in ol?ae+"":Xi,j):g},j.ticks=function(){return arguments.length?(E=t(arguments),j):E},j.tickValues=function(ae){return arguments.length?(G=ae,j):G},j.tickFormat=function(ae){return arguments.length?(N=ae,j):N},j.tickSize=function(ae){var ie=arguments.length;return ie?(w=+ae,S=+arguments[ie-1],j):w},j.innerTickSize=function(ae){return arguments.length?(w=+ae,j):w},j.outerTickSize=function(ae){return arguments.length?(S=+ae,j):S},j.tickPadding=function(ae){return arguments.length?(q=+ae,j):q},j.tickSubdivide=function(){return arguments.length&&j},j};var Xi="bottom",ol={top:1,right:1,bottom:1,left:1};function ll(c,g,w){c.attr("transform",function(S){var q=g(S);return"translate("+(isFinite(q)?q:w(S))+",0)"})}function sl(c,g,w){c.attr("transform",function(S){var q=g(S);return"translate(0,"+(isFinite(q)?q:w(S))+")"})}e.svg.brush=function(){var c=Ne(ie,"brushstart","brush","brushend"),g=null,w=null,S=[0,0],q=[0,0],E,G,N=!0,j=!0,ae=go[0];function ie(be){be.each(function(){var Se=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Ge).on("touchstart.brush",Ge),De=Se.selectAll(".background").data([0]);De.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Se.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ye=Se.selectAll(".resize").data(ae,V);Ye.exit().remove(),Ye.enter().append("g").attr("class",function(Or){return"resize "+Or}).style("cursor",function(Or){return Xl[Or]}).append("rect").attr("x",function(Or){return/[ew]$/.test(Or)?-3:null}).attr("y",function(Or){return/^[ns]/.test(Or)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ye.style("display",ie.empty()?"none":null);var Ve=e.transition(Se),Pe=e.transition(De),xr;g&&(xr=sr(g),Pe.attr("x",xr[0]).attr("width",xr[1]-xr[0]),me(Ve)),w&&(xr=sr(w),Pe.attr("y",xr[0]).attr("height",xr[1]-xr[0]),Re(Ve)),ge(Ve)})}ie.event=function(be){be.each(function(){var Se=c.of(this,arguments),De={x:S,y:q,i:E,j:G},Ye=this.__chart__||De;this.__chart__=De,ga?e.select(this).transition().each("start.brush",function(){E=Ye.i,G=Ye.j,S=Ye.x,q=Ye.y,Se({type:"brushstart"})}).tween("brush:brush",function(){var Ve=Ol(S,De.x),Pe=Ol(q,De.y);return E=G=null,function(xr){S=De.x=Ve(xr),q=De.y=Pe(xr),Se({type:"brush",mode:"resize"})}}).each("end.brush",function(){E=De.i,G=De.j,Se({type:"brush",mode:"resize"}),Se({type:"brushend"})}):(Se({type:"brushstart"}),Se({type:"brush",mode:"resize"}),Se({type:"brushend"}))})};function ge(be){be.selectAll(".resize").attr("transform",function(Se){return"translate("+S[+/e$/.test(Se)]+","+q[+/^s/.test(Se)]+")"})}function me(be){be.select(".extent").attr("x",S[0]),be.selectAll(".extent,.n>rect,.s>rect").attr("width",S[1]-S[0])}function Re(be){be.select(".extent").attr("y",q[0]),be.selectAll(".extent,.e>rect,.w>rect").attr("height",q[1]-q[0])}function Ge(){var be=this,Se=e.select(e.event.target),De=c.of(be,arguments),Ye=e.select(be),Ve=Se.datum(),Pe=!/^(n|s)$/.test(Ve)&&g,xr=!/^(e|w)$/.test(Ve)&&w,Or=Se.classed("extent"),Wr=Pr(be),Gr,Jr=e.mouse(be),$r,bt=e.select(i(be)).on("keydown.brush",Jt).on("keyup.brush",Zn);if(e.event.changedTouches?bt.on("touchmove.brush",on).on("touchend.brush",_t):bt.on("mousemove.brush",on).on("mouseup.brush",_t),Ye.interrupt().selectAll("*").interrupt(),Or)Jr[0]=S[0]-Jr[0],Jr[1]=q[0]-Jr[1];else if(Ve){var Qr=+/w$/.test(Ve),ht=+/^n/.test(Ve);$r=[S[1-Qr]-Jr[0],q[1-ht]-Jr[1]],Jr[0]=S[Qr],Jr[1]=q[ht]}else e.event.altKey&&(Gr=Jr.slice());Ye.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Se.style("cursor")),De({type:"brushstart"}),on();function Jt(){e.event.keyCode==32&&(Or||(Gr=null,Jr[0]-=S[1],Jr[1]-=q[1],Or=2),qe())}function Zn(){e.event.keyCode==32&&Or==2&&(Jr[0]+=S[1],Jr[1]+=q[1],Or=0,qe())}function on(){var wt=e.mouse(be),$t=!1;$r&&(wt[0]+=$r[0],wt[1]+=$r[1]),Or||(e.event.altKey?(Gr||(Gr=[(S[0]+S[1])/2,(q[0]+q[1])/2]),Jr[0]=S[+(wt[0]{(function(e,r){typeof Qh=="object"&&typeof W_!="undefined"?r(Qh):(e=e||self,r(e.d3=e.d3||{}))})(Qh,function(e){"use strict";var r=new Date,t=new Date;function n(Ae,Ue,Xe,Er){function Sr(er){return Ae(er=arguments.length===0?new Date:new Date(+er)),er}return Sr.floor=function(er){return Ae(er=new Date(+er)),er},Sr.ceil=function(er){return Ae(er=new Date(er-1)),Ue(er,1),Ae(er),er},Sr.round=function(er){var Ke=Sr(er),br=Sr.ceil(er);return er-Ke0))return Mr;do Mr.push(mr=new Date(+er)),Ue(er,br),Ae(er);while(mr=Ke)for(;Ae(Ke),!er(Ke);)Ke.setTime(Ke-1)},function(Ke,br){if(Ke>=Ke)if(br<0)for(;++br<=0;)for(;Ue(Ke,-1),!er(Ke););else for(;--br>=0;)for(;Ue(Ke,1),!er(Ke););})},Xe&&(Sr.count=function(er,Ke){return r.setTime(+er),t.setTime(+Ke),Ae(r),Ae(t),Math.floor(Xe(r,t))},Sr.every=function(er){return er=Math.floor(er),!isFinite(er)||!(er>0)?null:er>1?Sr.filter(Er?function(Ke){return Er(Ke)%er===0}:function(Ke){return Sr.count(0,Ke)%er===0}):Sr}),Sr}var a=n(function(){},function(Ae,Ue){Ae.setTime(+Ae+Ue)},function(Ae,Ue){return Ue-Ae});a.every=function(Ae){return Ae=Math.floor(Ae),!isFinite(Ae)||!(Ae>0)?null:Ae>1?n(function(Ue){Ue.setTime(Math.floor(Ue/Ae)*Ae)},function(Ue,Xe){Ue.setTime(+Ue+Xe*Ae)},function(Ue,Xe){return(Xe-Ue)/Ae}):a};var i=a.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,v=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds())},function(Ae,Ue){Ae.setTime(+Ae+Ue*o)},function(Ae,Ue){return(Ue-Ae)/o},function(Ae){return Ae.getUTCSeconds()}),h=v.range,d=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds()-Ae.getSeconds()*o)},function(Ae,Ue){Ae.setTime(+Ae+Ue*l)},function(Ae,Ue){return(Ue-Ae)/l},function(Ae){return Ae.getMinutes()}),m=d.range,p=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds()-Ae.getSeconds()*o-Ae.getMinutes()*l)},function(Ae,Ue){Ae.setTime(+Ae+Ue*s)},function(Ae,Ue){return(Ue-Ae)/s},function(Ae){return Ae.getHours()}),y=p.range,_=n(function(Ae){Ae.setHours(0,0,0,0)},function(Ae,Ue){Ae.setDate(Ae.getDate()+Ue)},function(Ae,Ue){return(Ue-Ae-(Ue.getTimezoneOffset()-Ae.getTimezoneOffset())*l)/u},function(Ae){return Ae.getDate()-1}),C=_.range;function x(Ae){return n(function(Ue){Ue.setDate(Ue.getDate()-(Ue.getDay()+7-Ae)%7),Ue.setHours(0,0,0,0)},function(Ue,Xe){Ue.setDate(Ue.getDate()+Xe*7)},function(Ue,Xe){return(Xe-Ue-(Xe.getTimezoneOffset()-Ue.getTimezoneOffset())*l)/f})}var b=x(0),A=x(1),k=x(2),M=x(3),D=x(4),z=x(5),F=x(6),H=b.range,W=A.range,B=k.range,X=M.range,V=D.range,re=z.range,te=F.range,K=n(function(Ae){Ae.setDate(1),Ae.setHours(0,0,0,0)},function(Ae,Ue){Ae.setMonth(Ae.getMonth()+Ue)},function(Ae,Ue){return Ue.getMonth()-Ae.getMonth()+(Ue.getFullYear()-Ae.getFullYear())*12},function(Ae){return Ae.getMonth()}),ee=K.range,fe=n(function(Ae){Ae.setMonth(0,1),Ae.setHours(0,0,0,0)},function(Ae,Ue){Ae.setFullYear(Ae.getFullYear()+Ue)},function(Ae,Ue){return Ue.getFullYear()-Ae.getFullYear()},function(Ae){return Ae.getFullYear()});fe.every=function(Ae){return!isFinite(Ae=Math.floor(Ae))||!(Ae>0)?null:n(function(Ue){Ue.setFullYear(Math.floor(Ue.getFullYear()/Ae)*Ae),Ue.setMonth(0,1),Ue.setHours(0,0,0,0)},function(Ue,Xe){Ue.setFullYear(Ue.getFullYear()+Xe*Ae)})};var he=fe.range,qe=n(function(Ae){Ae.setUTCSeconds(0,0)},function(Ae,Ue){Ae.setTime(+Ae+Ue*l)},function(Ae,Ue){return(Ue-Ae)/l},function(Ae){return Ae.getUTCMinutes()}),ze=qe.range,Ne=n(function(Ae){Ae.setUTCMinutes(0,0,0)},function(Ae,Ue){Ae.setTime(+Ae+Ue*s)},function(Ae,Ue){return(Ue-Ae)/s},function(Ae){return Ae.getUTCHours()}),Ze=Ne.range,Ce=n(function(Ae){Ae.setUTCHours(0,0,0,0)},function(Ae,Ue){Ae.setUTCDate(Ae.getUTCDate()+Ue)},function(Ae,Ue){return(Ue-Ae)/u},function(Ae){return Ae.getUTCDate()-1}),Je=Ce.range;function ue(Ae){return n(function(Ue){Ue.setUTCDate(Ue.getUTCDate()-(Ue.getUTCDay()+7-Ae)%7),Ue.setUTCHours(0,0,0,0)},function(Ue,Xe){Ue.setUTCDate(Ue.getUTCDate()+Xe*7)},function(Ue,Xe){return(Xe-Ue)/f})}var ye=ue(0),Me=ue(1),pe=ue(2),U=ue(3),Q=ue(4),$=ue(5),Te=ue(6),Be=ye.range,Ie=Me.range,ir=pe.range,ur=U.range,Oe=Q.range,nr=$.range,or=Te.range,vr=n(function(Ae){Ae.setUTCDate(1),Ae.setUTCHours(0,0,0,0)},function(Ae,Ue){Ae.setUTCMonth(Ae.getUTCMonth()+Ue)},function(Ae,Ue){return Ue.getUTCMonth()-Ae.getUTCMonth()+(Ue.getUTCFullYear()-Ae.getUTCFullYear())*12},function(Ae){return Ae.getUTCMonth()}),rr=vr.range,yr=n(function(Ae){Ae.setUTCMonth(0,1),Ae.setUTCHours(0,0,0,0)},function(Ae,Ue){Ae.setUTCFullYear(Ae.getUTCFullYear()+Ue)},function(Ae,Ue){return Ue.getUTCFullYear()-Ae.getUTCFullYear()},function(Ae){return Ae.getUTCFullYear()});yr.every=function(Ae){return!isFinite(Ae=Math.floor(Ae))||!(Ae>0)?null:n(function(Ue){Ue.setUTCFullYear(Math.floor(Ue.getUTCFullYear()/Ae)*Ae),Ue.setUTCMonth(0,1),Ue.setUTCHours(0,0,0,0)},function(Ue,Xe){Ue.setUTCFullYear(Ue.getUTCFullYear()+Xe*Ae)})};var dr=yr.range;e.timeDay=_,e.timeDays=C,e.timeFriday=z,e.timeFridays=re,e.timeHour=p,e.timeHours=y,e.timeInterval=n,e.timeMillisecond=a,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=m,e.timeMonday=A,e.timeMondays=W,e.timeMonth=K,e.timeMonths=ee,e.timeSaturday=F,e.timeSaturdays=te,e.timeSecond=v,e.timeSeconds=h,e.timeSunday=b,e.timeSundays=H,e.timeThursday=D,e.timeThursdays=V,e.timeTuesday=k,e.timeTuesdays=B,e.timeWednesday=M,e.timeWednesdays=X,e.timeWeek=b,e.timeWeeks=H,e.timeYear=fe,e.timeYears=he,e.utcDay=Ce,e.utcDays=Je,e.utcFriday=$,e.utcFridays=nr,e.utcHour=Ne,e.utcHours=Ze,e.utcMillisecond=a,e.utcMilliseconds=i,e.utcMinute=qe,e.utcMinutes=ze,e.utcMonday=Me,e.utcMondays=Ie,e.utcMonth=vr,e.utcMonths=rr,e.utcSaturday=Te,e.utcSaturdays=or,e.utcSecond=v,e.utcSeconds=h,e.utcSunday=ye,e.utcSundays=Be,e.utcThursday=Q,e.utcThursdays=Oe,e.utcTuesday=pe,e.utcTuesdays=ir,e.utcWednesday=U,e.utcWednesdays=ur,e.utcWeek=ye,e.utcWeeks=Be,e.utcYear=yr,e.utcYears=dr,Object.defineProperty(e,"__esModule",{value:!0})})});var m0=ne((ed,Z_)=>{(function(e,r){typeof ed=="object"&&typeof Z_!="undefined"?r(ed,xy()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(ed,function(e,r){"use strict";function t(_e){if(0<=_e.y&&_e.y<100){var ke=new Date(-1,_e.m,_e.d,_e.H,_e.M,_e.S,_e.L);return ke.setFullYear(_e.y),ke}return new Date(_e.y,_e.m,_e.d,_e.H,_e.M,_e.S,_e.L)}function n(_e){if(0<=_e.y&&_e.y<100){var ke=new Date(Date.UTC(-1,_e.m,_e.d,_e.H,_e.M,_e.S,_e.L));return ke.setUTCFullYear(_e.y),ke}return new Date(Date.UTC(_e.y,_e.m,_e.d,_e.H,_e.M,_e.S,_e.L))}function a(_e,ke,$e){return{y:_e,m:ke,d:$e,H:0,M:0,S:0,L:0}}function i(_e){var ke=_e.dateTime,$e=_e.date,We=_e.time,qr=_e.periods,Vr=_e.days,Hr=_e.shortDays,lt=_e.months,xt=_e.shortMonths,Rt=h(qr),St=d(qr),hn=h(Vr),Fn=d(Vr),$n=h(Hr),jt=d(Hr),cn=h(lt),un=d(lt),Kt=h(xt),aa=d(xt),rt={a:pi,A:io,b:gi,B:ms,c:null,d:K,e:K,f:ze,H:ee,I:fe,j:he,L:qe,m:Ne,M:Ze,p:El,q:Bo,Q:Ke,s:br,S:Ce,u:Je,U:ue,V:ye,w:Me,W:pe,x:null,X:null,y:U,Y:Q,Z:$,"%":er},Qt={a:ys,A:Oo,b:Hn,B:mi,c:null,d:Te,e:Te,f:Oe,H:Be,I:Ie,j:ir,L:ur,m:nr,M:or,p:Uo,q:yi,Q:Ke,s:br,S:vr,u:rr,U:yr,V:dr,w:Ae,W:Ue,x:null,X:null,y:Xe,Y:Er,Z:Sr,"%":er},Ct={a:ha,A:Sn,b:Na,B:da,c:wn,d:D,e:D,f:X,H:F,I:F,j:z,L:B,m:M,M:H,p:fn,q:k,Q:re,s:te,S:W,u:p,U:y,V:_,w:m,W:C,x:It,X:In,y:b,Y:x,Z:A,"%":V};rt.x=dn($e,rt),rt.X=dn(We,rt),rt.c=dn(ke,rt),Qt.x=dn($e,Qt),Qt.X=dn(We,Qt),Qt.c=dn(ke,Qt);function dn(Kr,Lt){return function(Ht){var Br=[],Vn=-1,nn=0,Dn=Kr.length,At,Wa,Yo;for(Ht instanceof Date||(Ht=new Date(+Ht));++Vn53)return null;"w"in Br||(Br.w=1),"Z"in Br?(nn=n(a(Br.y,0,1)),Dn=nn.getUTCDay(),nn=Dn>4||Dn===0?r.utcMonday.ceil(nn):r.utcMonday(nn),nn=r.utcDay.offset(nn,(Br.V-1)*7),Br.y=nn.getUTCFullYear(),Br.m=nn.getUTCMonth(),Br.d=nn.getUTCDate()+(Br.w+6)%7):(nn=t(a(Br.y,0,1)),Dn=nn.getDay(),nn=Dn>4||Dn===0?r.timeMonday.ceil(nn):r.timeMonday(nn),nn=r.timeDay.offset(nn,(Br.V-1)*7),Br.y=nn.getFullYear(),Br.m=nn.getMonth(),Br.d=nn.getDate()+(Br.w+6)%7)}else("W"in Br||"U"in Br)&&("w"in Br||(Br.w="u"in Br?Br.u%7:"W"in Br?1:0),Dn="Z"in Br?n(a(Br.y,0,1)).getUTCDay():t(a(Br.y,0,1)).getDay(),Br.m=0,Br.d="W"in Br?(Br.w+6)%7+Br.W*7-(Dn+5)%7:Br.w+Br.U*7-(Dn+6)%7);return"Z"in Br?(Br.H+=Br.Z/100|0,Br.M+=Br.Z%100,n(Br)):t(Br)}}function tn(Kr,Lt,Ht,Br){for(var Vn=0,nn=Lt.length,Dn=Ht.length,At,Wa;Vn=Dn)return-1;if(At=Lt.charCodeAt(Vn++),At===37){if(At=Lt.charAt(Vn++),Wa=Ct[At in o?Lt.charAt(Vn++):At],!Wa||(Br=Wa(Kr,Ht,Br))<0)return-1}else if(At!=Ht.charCodeAt(Br++))return-1}return Br}function fn(Kr,Lt,Ht){var Br=Rt.exec(Lt.slice(Ht));return Br?(Kr.p=St[Br[0].toLowerCase()],Ht+Br[0].length):-1}function ha(Kr,Lt,Ht){var Br=$n.exec(Lt.slice(Ht));return Br?(Kr.w=jt[Br[0].toLowerCase()],Ht+Br[0].length):-1}function Sn(Kr,Lt,Ht){var Br=hn.exec(Lt.slice(Ht));return Br?(Kr.w=Fn[Br[0].toLowerCase()],Ht+Br[0].length):-1}function Na(Kr,Lt,Ht){var Br=Kt.exec(Lt.slice(Ht));return Br?(Kr.m=aa[Br[0].toLowerCase()],Ht+Br[0].length):-1}function da(Kr,Lt,Ht){var Br=cn.exec(Lt.slice(Ht));return Br?(Kr.m=un[Br[0].toLowerCase()],Ht+Br[0].length):-1}function wn(Kr,Lt,Ht){return tn(Kr,ke,Lt,Ht)}function It(Kr,Lt,Ht){return tn(Kr,$e,Lt,Ht)}function In(Kr,Lt,Ht){return tn(Kr,We,Lt,Ht)}function pi(Kr){return Hr[Kr.getDay()]}function io(Kr){return Vr[Kr.getDay()]}function gi(Kr){return xt[Kr.getMonth()]}function ms(Kr){return lt[Kr.getMonth()]}function El(Kr){return qr[+(Kr.getHours()>=12)]}function Bo(Kr){return 1+~~(Kr.getMonth()/3)}function ys(Kr){return Hr[Kr.getUTCDay()]}function Oo(Kr){return Vr[Kr.getUTCDay()]}function Hn(Kr){return xt[Kr.getUTCMonth()]}function mi(Kr){return lt[Kr.getUTCMonth()]}function Uo(Kr){return qr[+(Kr.getUTCHours()>=12)]}function yi(Kr){return 1+~~(Kr.getUTCMonth()/3)}return{format:function(Kr){var Lt=dn(Kr+="",rt);return Lt.toString=function(){return Kr},Lt},parse:function(Kr){var Lt=pn(Kr+="",!1);return Lt.toString=function(){return Kr},Lt},utcFormat:function(Kr){var Lt=dn(Kr+="",Qt);return Lt.toString=function(){return Kr},Lt},utcParse:function(Kr){var Lt=pn(Kr+="",!0);return Lt.toString=function(){return Kr},Lt}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(_e,ke,$e){var We=_e<0?"-":"",qr=(We?-_e:_e)+"",Vr=qr.length;return We+(Vr<$e?new Array($e-Vr+1).join(ke)+qr:qr)}function v(_e){return _e.replace(u,"\\$&")}function h(_e){return new RegExp("^(?:"+_e.map(v).join("|")+")","i")}function d(_e){for(var ke={},$e=-1,We=_e.length;++$e68?1900:2e3),$e+We[0].length):-1}function A(_e,ke,$e){var We=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ke.slice($e,$e+6));return We?(_e.Z=We[1]?0:-(We[2]+(We[3]||"00")),$e+We[0].length):-1}function k(_e,ke,$e){var We=l.exec(ke.slice($e,$e+1));return We?(_e.q=We[0]*3-3,$e+We[0].length):-1}function M(_e,ke,$e){var We=l.exec(ke.slice($e,$e+2));return We?(_e.m=We[0]-1,$e+We[0].length):-1}function D(_e,ke,$e){var We=l.exec(ke.slice($e,$e+2));return We?(_e.d=+We[0],$e+We[0].length):-1}function z(_e,ke,$e){var We=l.exec(ke.slice($e,$e+3));return We?(_e.m=0,_e.d=+We[0],$e+We[0].length):-1}function F(_e,ke,$e){var We=l.exec(ke.slice($e,$e+2));return We?(_e.H=+We[0],$e+We[0].length):-1}function H(_e,ke,$e){var We=l.exec(ke.slice($e,$e+2));return We?(_e.M=+We[0],$e+We[0].length):-1}function W(_e,ke,$e){var We=l.exec(ke.slice($e,$e+2));return We?(_e.S=+We[0],$e+We[0].length):-1}function B(_e,ke,$e){var We=l.exec(ke.slice($e,$e+3));return We?(_e.L=+We[0],$e+We[0].length):-1}function X(_e,ke,$e){var We=l.exec(ke.slice($e,$e+6));return We?(_e.L=Math.floor(We[0]/1e3),$e+We[0].length):-1}function V(_e,ke,$e){var We=s.exec(ke.slice($e,$e+1));return We?$e+We[0].length:-1}function re(_e,ke,$e){var We=l.exec(ke.slice($e));return We?(_e.Q=+We[0],$e+We[0].length):-1}function te(_e,ke,$e){var We=l.exec(ke.slice($e));return We?(_e.s=+We[0],$e+We[0].length):-1}function K(_e,ke){return f(_e.getDate(),ke,2)}function ee(_e,ke){return f(_e.getHours(),ke,2)}function fe(_e,ke){return f(_e.getHours()%12||12,ke,2)}function he(_e,ke){return f(1+r.timeDay.count(r.timeYear(_e),_e),ke,3)}function qe(_e,ke){return f(_e.getMilliseconds(),ke,3)}function ze(_e,ke){return qe(_e,ke)+"000"}function Ne(_e,ke){return f(_e.getMonth()+1,ke,2)}function Ze(_e,ke){return f(_e.getMinutes(),ke,2)}function Ce(_e,ke){return f(_e.getSeconds(),ke,2)}function Je(_e){var ke=_e.getDay();return ke===0?7:ke}function ue(_e,ke){return f(r.timeSunday.count(r.timeYear(_e)-1,_e),ke,2)}function ye(_e,ke){var $e=_e.getDay();return _e=$e>=4||$e===0?r.timeThursday(_e):r.timeThursday.ceil(_e),f(r.timeThursday.count(r.timeYear(_e),_e)+(r.timeYear(_e).getDay()===4),ke,2)}function Me(_e){return _e.getDay()}function pe(_e,ke){return f(r.timeMonday.count(r.timeYear(_e)-1,_e),ke,2)}function U(_e,ke){return f(_e.getFullYear()%100,ke,2)}function Q(_e,ke){return f(_e.getFullYear()%1e4,ke,4)}function $(_e){var ke=_e.getTimezoneOffset();return(ke>0?"-":(ke*=-1,"+"))+f(ke/60|0,"0",2)+f(ke%60,"0",2)}function Te(_e,ke){return f(_e.getUTCDate(),ke,2)}function Be(_e,ke){return f(_e.getUTCHours(),ke,2)}function Ie(_e,ke){return f(_e.getUTCHours()%12||12,ke,2)}function ir(_e,ke){return f(1+r.utcDay.count(r.utcYear(_e),_e),ke,3)}function ur(_e,ke){return f(_e.getUTCMilliseconds(),ke,3)}function Oe(_e,ke){return ur(_e,ke)+"000"}function nr(_e,ke){return f(_e.getUTCMonth()+1,ke,2)}function or(_e,ke){return f(_e.getUTCMinutes(),ke,2)}function vr(_e,ke){return f(_e.getUTCSeconds(),ke,2)}function rr(_e){var ke=_e.getUTCDay();return ke===0?7:ke}function yr(_e,ke){return f(r.utcSunday.count(r.utcYear(_e)-1,_e),ke,2)}function dr(_e,ke){var $e=_e.getUTCDay();return _e=$e>=4||$e===0?r.utcThursday(_e):r.utcThursday.ceil(_e),f(r.utcThursday.count(r.utcYear(_e),_e)+(r.utcYear(_e).getUTCDay()===4),ke,2)}function Ae(_e){return _e.getUTCDay()}function Ue(_e,ke){return f(r.utcMonday.count(r.utcYear(_e)-1,_e),ke,2)}function Xe(_e,ke){return f(_e.getUTCFullYear()%100,ke,2)}function Er(_e,ke){return f(_e.getUTCFullYear()%1e4,ke,4)}function Sr(){return"+0000"}function er(){return"%"}function Ke(_e){return+_e}function br(_e){return Math.floor(+_e/1e3)}var Mr;mr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function mr(_e){return Mr=i(_e),e.timeFormat=Mr.format,e.timeParse=Mr.parse,e.utcFormat=Mr.utcFormat,e.utcParse=Mr.utcParse,Mr}var pr="%Y-%m-%dT%H:%M:%S.%LZ";function kr(_e){return _e.toISOString()}var Pr=Date.prototype.toISOString?kr:e.utcFormat(pr);function Ur(_e){var ke=new Date(_e);return isNaN(ke)?null:ke}var lr=+new Date("2000-01-01T00:00:00.000Z")?Ur:e.utcParse(pr);e.isoFormat=Pr,e.isoParse=lr,e.timeFormatDefaultLocale=mr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var wy=ne((rd,X_)=>{(function(e,r){typeof rd=="object"&&typeof X_!="undefined"?r(rd):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(rd,function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,D){if((z=(M=D?M.toExponential(D-1):M.toExponential()).indexOf("e"))<0)return null;var z,F=M.slice(0,z);return[F.length>1?F[0]+F.slice(2):F,+M.slice(z+1)]}function n(M){return M=t(Math.abs(M)),M?M[1]:NaN}function a(M,D){return function(z,F){for(var H=z.length,W=[],B=0,X=M[0],V=0;H>0&&X>0&&(V+X+1>F&&(X=Math.max(1,F-V)),W.push(z.substring(H-=X,H+X)),!((V+=X+1)>F));)X=M[B=(B+1)%M.length];return W.reverse().join(D)}}function i(M){return function(D){return D.replace(/[0-9]/g,function(z){return M[+z]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(D=o.exec(M)))throw new Error("invalid format: "+M);var D;return new s({fill:D[1],align:D[2],sign:D[3],symbol:D[4],zero:D[5],width:D[6],comma:D[7],precision:D[8]&&D[8].slice(1),trim:D[9],type:D[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(M){e:for(var D=M.length,z=1,F=-1,H;z0&&(F=0);break}return F>0?M.slice(0,F)+M.slice(H+1):M}var f;function v(M,D){var z=t(M,D);if(!z)return M+"";var F=z[0],H=z[1],W=H-(f=Math.max(-8,Math.min(8,Math.floor(H/3)))*3)+1,B=F.length;return W===B?F:W>B?F+new Array(W-B+1).join("0"):W>0?F.slice(0,W)+"."+F.slice(W):"0."+new Array(1-W).join("0")+t(M,Math.max(0,D+W-1))[0]}function h(M,D){var z=t(M,D);if(!z)return M+"";var F=z[0],H=z[1];return H<0?"0."+new Array(-H).join("0")+F:F.length>H+1?F.slice(0,H+1)+"."+F.slice(H+1):F+new Array(H-F.length+2).join("0")}var d={"%":function(M,D){return(M*100).toFixed(D)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,D){return M.toExponential(D)},f:function(M,D){return M.toFixed(D)},g:function(M,D){return M.toPrecision(D)},o:function(M){return Math.round(M).toString(8)},p:function(M,D){return h(M*100,D)},r:h,s:v,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function m(M){return M}var p=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function _(M){var D=M.grouping===void 0||M.thousands===void 0?m:a(p.call(M.grouping,Number),M.thousands+""),z=M.currency===void 0?"":M.currency[0]+"",F=M.currency===void 0?"":M.currency[1]+"",H=M.decimal===void 0?".":M.decimal+"",W=M.numerals===void 0?m:i(p.call(M.numerals,String)),B=M.percent===void 0?"%":M.percent+"",X=M.minus===void 0?"-":M.minus+"",V=M.nan===void 0?"NaN":M.nan+"";function re(K){K=l(K);var ee=K.fill,fe=K.align,he=K.sign,qe=K.symbol,ze=K.zero,Ne=K.width,Ze=K.comma,Ce=K.precision,Je=K.trim,ue=K.type;ue==="n"?(Ze=!0,ue="g"):d[ue]||(Ce===void 0&&(Ce=12),Je=!0,ue="g"),(ze||ee==="0"&&fe==="=")&&(ze=!0,ee="0",fe="=");var ye=qe==="$"?z:qe==="#"&&/[boxX]/.test(ue)?"0"+ue.toLowerCase():"",Me=qe==="$"?F:/[%p]/.test(ue)?B:"",pe=d[ue],U=/[defgprs%]/.test(ue);Ce=Ce===void 0?6:/[gprs]/.test(ue)?Math.max(1,Math.min(21,Ce)):Math.max(0,Math.min(20,Ce));function Q($){var Te=ye,Be=Me,Ie,ir,ur;if(ue==="c")Be=pe($)+Be,$="";else{$=+$;var Oe=$<0||1/$<0;if($=isNaN($)?V:pe(Math.abs($),Ce),Je&&($=u($)),Oe&&+$==0&&he!=="+"&&(Oe=!1),Te=(Oe?he==="("?he:X:he==="-"||he==="("?"":he)+Te,Be=(ue==="s"?y[8+f/3]:"")+Be+(Oe&&he==="("?")":""),U){for(Ie=-1,ir=$.length;++Ieur||ur>57){Be=(ur===46?H+$.slice(Ie+1):$.slice(Ie))+Be,$=$.slice(0,Ie);break}}}Ze&&!ze&&($=D($,1/0));var nr=Te.length+$.length+Be.length,or=nr>1)+Te+$+Be+or.slice(nr);break;default:$=or+Te+$+Be;break}return W($)}return Q.toString=function(){return K+""},Q}function te(K,ee){var fe=re((K=l(K),K.type="f",K)),he=Math.max(-8,Math.min(8,Math.floor(n(ee)/3)))*3,qe=Math.pow(10,-he),ze=y[8+he/3];return function(Ne){return fe(qe*Ne)+ze}}return{format:re,formatPrefix:te}}var C;x({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function x(M){return C=_(M),e.format=C.format,e.formatPrefix=C.formatPrefix,C}function b(M){return Math.max(0,-n(Math.abs(M)))}function A(M,D){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(D)/3)))*3-n(Math.abs(M)))}function k(M,D){return M=Math.abs(M),D=Math.abs(D)-M,Math.max(0,n(D)-n(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=x,e.formatLocale=_,e.formatSpecifier=l,e.precisionFixed=b,e.precisionPrefix=A,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})})});var J_=ne((Yoe,j_)=>{"use strict";j_.exports=function(e){for(var r=e.length,t,n=0;n13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var Bt=ne((Goe,$_)=>{"use strict";var WI=J_();$_.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&WI(t))return!1}else if(r!=="number")return!1;return e-e<1}});var En=ne((Voe,K_)=>{"use strict";K_.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 My=ne((td,Q_)=>{(function(e,r){typeof td=="object"&&typeof Q_!="undefined"?r(td):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(td,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,v,h,d,m;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var p=new ArrayBuffer(l),y=new Uint8Array(p);for(u=0;u>4,y[f++]=(h&15)<<4|d>>2,y[f++]=(d&3)<<6|m&63;return p};e.decode=i,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})})});var Gs=ne((Woe,e6)=>{"use strict";e6.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var ji=ne(fl=>{"use strict";var ZI=My().decode,XI=Gs(),Ay=Array.isArray,jI=ArrayBuffer,JI=DataView;function r6(e){return jI.isView(e)&&!(e instanceof JI)}fl.isTypedArray=r6;function nd(e){return Ay(e)||r6(e)}fl.isArrayOrTypedArray=nd;function $I(e){return!nd(e[0])}fl.isArray1D=$I;fl.ensureArray=function(e,r){return Ay(e)||(e=[]),e.length=r,e};var Ta={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Ta.uint8c=Ta.u1c;Ta.uint8=Ta.u1;Ta.int8=Ta.i1;Ta.uint16=Ta.u2;Ta.int16=Ta.i2;Ta.uint32=Ta.u4;Ta.int32=Ta.i4;Ta.float32=Ta.f4;Ta.float64=Ta.f8;function Ty(e){return e.constructor===ArrayBuffer}fl.isArrayBuffer=Ty;fl.decodeTypedArraySpec=function(e){var r=[],t=KI(e),n=t.dtype,a=Ta[n];if(!a)throw new Error('Error in dtype: "'+n+'"');var i=a.BYTES_PER_ELEMENT,o=t.bdata;Ty(o)||(o=ZI(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,v=+l[0],h=i*v,d=0;if(s===1)r=new a(o);else if(s===2)for(u=+l[1],f=0;f{"use strict";var n6=Bt(),Sy=ji().isArrayOrTypedArray;l6.exports=function(r,t){if(n6(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var n=t.split("."),a,i,o,l;for(l=0;l{"use strict";var y0=$v(),nH=/^\w*$/,aH=0,s6=1,ad=2,u6=3,jf=4;f6.exports=function(r,t,n,a){n=n||"name",a=a||"value";var i,o,l,s={};t&&t.length?(l=y0(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i2)return s[d]=s[d]|ad,v.set(h,null);if(f){for(i=d;i{"use strict";var iH=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,oH=/^[^\.\[\]]+$/;v6.exports=function(e,r){for(;r;){var t=e.match(iH);if(t)e=t[1];else if(e.match(oH))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 id=ne(($oe,d6)=>{"use strict";var lH=Bt();d6.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return lH(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}});var m6=ne((Koe,g6)=>{"use strict";var p6=ji().isArrayOrTypedArray,Kv=Gs();g6.exports=function e(r,t){for(var n in t){var a=t[n],i=r[n];if(i!==a)if(n.charAt(0)==="_"||typeof a=="function"){if(n in r)continue;r[n]=a}else if(p6(a)&&p6(i)&&Kv(a[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(a.length,i.length),l=0;l{"use strict";function sH(e,r){var t=e%r;return t<0?t+r:t}function uH(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}y6.exports={mod:sH,modHalf:uH}});var Jl=ne((ele,od)=>{(function(e){var r=/^\s+/,t=/\s+$/,n=0,a=e.round,i=e.min,o=e.max,l=e.random;function s(U,Q){if(U=U||"",Q=Q||{},U instanceof s)return U;if(!(this instanceof s))return new s(U,Q);var $=u(U);this._originalInput=U,this._r=$.r,this._g=$.g,this._b=$.b,this._a=$.a,this._roundA=a(100*this._a)/100,this._format=Q.format||$.format,this._gradientType=Q.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=$.ok,this._tc_id=n++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var U=this.toRgb();return(U.r*299+U.g*587+U.b*114)/1e3},getLuminance:function(){var U=this.toRgb(),Q,$,Te,Be,Ie,ir;return Q=U.r/255,$=U.g/255,Te=U.b/255,Q<=.03928?Be=Q/12.92:Be=e.pow((Q+.055)/1.055,2.4),$<=.03928?Ie=$/12.92:Ie=e.pow(($+.055)/1.055,2.4),Te<=.03928?ir=Te/12.92:ir=e.pow((Te+.055)/1.055,2.4),.2126*Be+.7152*Ie+.0722*ir},setAlpha:function(U){return this._a=K(U),this._roundA=a(100*this._a)/100,this},toHsv:function(){var U=d(this._r,this._g,this._b);return{h:U.h*360,s:U.s,v:U.v,a:this._a}},toHsvString:function(){var U=d(this._r,this._g,this._b),Q=a(U.h*360),$=a(U.s*100),Te=a(U.v*100);return this._a==1?"hsv("+Q+", "+$+"%, "+Te+"%)":"hsva("+Q+", "+$+"%, "+Te+"%, "+this._roundA+")"},toHsl:function(){var U=v(this._r,this._g,this._b);return{h:U.h*360,s:U.s,l:U.l,a:this._a}},toHslString:function(){var U=v(this._r,this._g,this._b),Q=a(U.h*360),$=a(U.s*100),Te=a(U.l*100);return this._a==1?"hsl("+Q+", "+$+"%, "+Te+"%)":"hsla("+Q+", "+$+"%, "+Te+"%, "+this._roundA+")"},toHex:function(U){return p(this._r,this._g,this._b,U)},toHexString:function(U){return"#"+this.toHex(U)},toHex8:function(U){return y(this._r,this._g,this._b,this._a,U)},toHex8String:function(U){return"#"+this.toHex8(U)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(ee(this._r,255)*100)+"%",g:a(ee(this._g,255)*100)+"%",b:a(ee(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(ee(this._r,255)*100)+"%, "+a(ee(this._g,255)*100)+"%, "+a(ee(this._b,255)*100)+"%)":"rgba("+a(ee(this._r,255)*100)+"%, "+a(ee(this._g,255)*100)+"%, "+a(ee(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:re[p(this._r,this._g,this._b,!0)]||!1},toFilter:function(U){var Q="#"+_(this._r,this._g,this._b,this._a),$=Q,Te=this._gradientType?"GradientType = 1, ":"";if(U){var Be=s(U);$="#"+_(Be._r,Be._g,Be._b,Be._a)}return"progid:DXImageTransform.Microsoft.gradient("+Te+"startColorstr="+Q+",endColorstr="+$+")"},toString:function(U){var Q=!!U;U=U||this._format;var $=!1,Te=this._a<1&&this._a>=0,Be=!Q&&Te&&(U==="hex"||U==="hex6"||U==="hex3"||U==="hex4"||U==="hex8"||U==="name");return Be?U==="name"&&this._a===0?this.toName():this.toRgbString():(U==="rgb"&&($=this.toRgbString()),U==="prgb"&&($=this.toPercentageRgbString()),(U==="hex"||U==="hex6")&&($=this.toHexString()),U==="hex3"&&($=this.toHexString(!0)),U==="hex4"&&($=this.toHex8String(!0)),U==="hex8"&&($=this.toHex8String()),U==="name"&&($=this.toName()),U==="hsl"&&($=this.toHslString()),U==="hsv"&&($=this.toHsvString()),$||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(U,Q){var $=U.apply(null,[this].concat([].slice.call(Q)));return this._r=$._r,this._g=$._g,this._b=$._b,this.setAlpha($._a),this},lighten:function(){return this._applyModification(A,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(D,arguments)},_applyCombination:function(U,Q){return U.apply(null,[this].concat([].slice.call(Q)))},analogous:function(){return this._applyCombination(B,arguments)},complement:function(){return this._applyCombination(z,arguments)},monochromatic:function(){return this._applyCombination(X,arguments)},splitcomplement:function(){return this._applyCombination(W,arguments)},triad:function(){return this._applyCombination(F,arguments)},tetrad:function(){return this._applyCombination(H,arguments)}},s.fromRatio=function(U,Q){if(typeof U=="object"){var $={};for(var Te in U)U.hasOwnProperty(Te)&&(Te==="a"?$[Te]=U[Te]:$[Te]=Ze(U[Te]));U=$}return s(U,Q)};function u(U){var Q={r:0,g:0,b:0},$=1,Te=null,Be=null,Ie=null,ir=!1,ur=!1;return typeof U=="string"&&(U=Me(U)),typeof U=="object"&&(ye(U.r)&&ye(U.g)&&ye(U.b)?(Q=f(U.r,U.g,U.b),ir=!0,ur=String(U.r).substr(-1)==="%"?"prgb":"rgb"):ye(U.h)&&ye(U.s)&&ye(U.v)?(Te=Ze(U.s),Be=Ze(U.v),Q=m(U.h,Te,Be),ir=!0,ur="hsv"):ye(U.h)&&ye(U.s)&&ye(U.l)&&(Te=Ze(U.s),Ie=Ze(U.l),Q=h(U.h,Te,Ie),ir=!0,ur="hsl"),U.hasOwnProperty("a")&&($=U.a)),$=K($),{ok:ir,format:U.format||ur,r:i(255,o(Q.r,0)),g:i(255,o(Q.g,0)),b:i(255,o(Q.b,0)),a:$}}function f(U,Q,$){return{r:ee(U,255)*255,g:ee(Q,255)*255,b:ee($,255)*255}}function v(U,Q,$){U=ee(U,255),Q=ee(Q,255),$=ee($,255);var Te=o(U,Q,$),Be=i(U,Q,$),Ie,ir,ur=(Te+Be)/2;if(Te==Be)Ie=ir=0;else{var Oe=Te-Be;switch(ir=ur>.5?Oe/(2-Te-Be):Oe/(Te+Be),Te){case U:Ie=(Q-$)/Oe+(Q<$?6:0);break;case Q:Ie=($-U)/Oe+2;break;case $:Ie=(U-Q)/Oe+4;break}Ie/=6}return{h:Ie,s:ir,l:ur}}function h(U,Q,$){var Te,Be,Ie;U=ee(U,360),Q=ee(Q,100),$=ee($,100);function ir(nr,or,vr){return vr<0&&(vr+=1),vr>1&&(vr-=1),vr<1/6?nr+(or-nr)*6*vr:vr<1/2?or:vr<2/3?nr+(or-nr)*(2/3-vr)*6:nr}if(Q===0)Te=Be=Ie=$;else{var ur=$<.5?$*(1+Q):$+Q-$*Q,Oe=2*$-ur;Te=ir(Oe,ur,U+1/3),Be=ir(Oe,ur,U),Ie=ir(Oe,ur,U-1/3)}return{r:Te*255,g:Be*255,b:Ie*255}}function d(U,Q,$){U=ee(U,255),Q=ee(Q,255),$=ee($,255);var Te=o(U,Q,$),Be=i(U,Q,$),Ie,ir,ur=Te,Oe=Te-Be;if(ir=Te===0?0:Oe/Te,Te==Be)Ie=0;else{switch(Te){case U:Ie=(Q-$)/Oe+(Q<$?6:0);break;case Q:Ie=($-U)/Oe+2;break;case $:Ie=(U-Q)/Oe+4;break}Ie/=6}return{h:Ie,s:ir,v:ur}}function m(U,Q,$){U=ee(U,360)*6,Q=ee(Q,100),$=ee($,100);var Te=e.floor(U),Be=U-Te,Ie=$*(1-Q),ir=$*(1-Be*Q),ur=$*(1-(1-Be)*Q),Oe=Te%6,nr=[$,ir,Ie,Ie,ur,$][Oe],or=[ur,$,$,ir,Ie,Ie][Oe],vr=[Ie,Ie,ur,$,$,ir][Oe];return{r:nr*255,g:or*255,b:vr*255}}function p(U,Q,$,Te){var Be=[Ne(a(U).toString(16)),Ne(a(Q).toString(16)),Ne(a($).toString(16))];return Te&&Be[0].charAt(0)==Be[0].charAt(1)&&Be[1].charAt(0)==Be[1].charAt(1)&&Be[2].charAt(0)==Be[2].charAt(1)?Be[0].charAt(0)+Be[1].charAt(0)+Be[2].charAt(0):Be.join("")}function y(U,Q,$,Te,Be){var Ie=[Ne(a(U).toString(16)),Ne(a(Q).toString(16)),Ne(a($).toString(16)),Ne(Ce(Te))];return Be&&Ie[0].charAt(0)==Ie[0].charAt(1)&&Ie[1].charAt(0)==Ie[1].charAt(1)&&Ie[2].charAt(0)==Ie[2].charAt(1)&&Ie[3].charAt(0)==Ie[3].charAt(1)?Ie[0].charAt(0)+Ie[1].charAt(0)+Ie[2].charAt(0)+Ie[3].charAt(0):Ie.join("")}function _(U,Q,$,Te){var Be=[Ne(Ce(Te)),Ne(a(U).toString(16)),Ne(a(Q).toString(16)),Ne(a($).toString(16))];return Be.join("")}s.equals=function(U,Q){return!U||!Q?!1:s(U).toRgbString()==s(Q).toRgbString()},s.random=function(){return s.fromRatio({r:l(),g:l(),b:l()})};function C(U,Q){Q=Q===0?0:Q||10;var $=s(U).toHsl();return $.s-=Q/100,$.s=fe($.s),s($)}function x(U,Q){Q=Q===0?0:Q||10;var $=s(U).toHsl();return $.s+=Q/100,$.s=fe($.s),s($)}function b(U){return s(U).desaturate(100)}function A(U,Q){Q=Q===0?0:Q||10;var $=s(U).toHsl();return $.l+=Q/100,$.l=fe($.l),s($)}function k(U,Q){Q=Q===0?0:Q||10;var $=s(U).toRgb();return $.r=o(0,i(255,$.r-a(255*-(Q/100)))),$.g=o(0,i(255,$.g-a(255*-(Q/100)))),$.b=o(0,i(255,$.b-a(255*-(Q/100)))),s($)}function M(U,Q){Q=Q===0?0:Q||10;var $=s(U).toHsl();return $.l-=Q/100,$.l=fe($.l),s($)}function D(U,Q){var $=s(U).toHsl(),Te=($.h+Q)%360;return $.h=Te<0?360+Te:Te,s($)}function z(U){var Q=s(U).toHsl();return Q.h=(Q.h+180)%360,s(Q)}function F(U){var Q=s(U).toHsl(),$=Q.h;return[s(U),s({h:($+120)%360,s:Q.s,l:Q.l}),s({h:($+240)%360,s:Q.s,l:Q.l})]}function H(U){var Q=s(U).toHsl(),$=Q.h;return[s(U),s({h:($+90)%360,s:Q.s,l:Q.l}),s({h:($+180)%360,s:Q.s,l:Q.l}),s({h:($+270)%360,s:Q.s,l:Q.l})]}function W(U){var Q=s(U).toHsl(),$=Q.h;return[s(U),s({h:($+72)%360,s:Q.s,l:Q.l}),s({h:($+216)%360,s:Q.s,l:Q.l})]}function B(U,Q,$){Q=Q||6,$=$||30;var Te=s(U).toHsl(),Be=360/$,Ie=[s(U)];for(Te.h=(Te.h-(Be*Q>>1)+720)%360;--Q;)Te.h=(Te.h+Be)%360,Ie.push(s(Te));return Ie}function X(U,Q){Q=Q||6;for(var $=s(U).toHsv(),Te=$.h,Be=$.s,Ie=$.v,ir=[],ur=1/Q;Q--;)ir.push(s({h:Te,s:Be,v:Ie})),Ie=(Ie+ur)%1;return ir}s.mix=function(U,Q,$){$=$===0?0:$||50;var Te=s(U).toRgb(),Be=s(Q).toRgb(),Ie=$/100,ir={r:(Be.r-Te.r)*Ie+Te.r,g:(Be.g-Te.g)*Ie+Te.g,b:(Be.b-Te.b)*Ie+Te.b,a:(Be.a-Te.a)*Ie+Te.a};return s(ir)},s.readability=function(U,Q){var $=s(U),Te=s(Q);return(e.max($.getLuminance(),Te.getLuminance())+.05)/(e.min($.getLuminance(),Te.getLuminance())+.05)},s.isReadable=function(U,Q,$){var Te=s.readability(U,Q),Be,Ie;switch(Ie=!1,Be=pe($),Be.level+Be.size){case"AAsmall":case"AAAlarge":Ie=Te>=4.5;break;case"AAlarge":Ie=Te>=3;break;case"AAAsmall":Ie=Te>=7;break}return Ie},s.mostReadable=function(U,Q,$){var Te=null,Be=0,Ie,ir,ur,Oe;$=$||{},ir=$.includeFallbackColors,ur=$.level,Oe=$.size;for(var nr=0;nrBe&&(Be=Ie,Te=s(Q[nr]));return s.isReadable(U,Te,{level:ur,size:Oe})||!ir?Te:($.includeFallbackColors=!1,s.mostReadable(U,["#fff","#000"],$))};var V=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},re=s.hexNames=te(V);function te(U){var Q={};for(var $ in U)U.hasOwnProperty($)&&(Q[U[$]]=$);return Q}function K(U){return U=parseFloat(U),(isNaN(U)||U<0||U>1)&&(U=1),U}function ee(U,Q){qe(U)&&(U="100%");var $=ze(U);return U=i(Q,o(0,parseFloat(U))),$&&(U=parseInt(U*Q,10)/100),e.abs(U-Q)<1e-6?1:U%Q/parseFloat(Q)}function fe(U){return i(1,o(0,U))}function he(U){return parseInt(U,16)}function qe(U){return typeof U=="string"&&U.indexOf(".")!=-1&&parseFloat(U)===1}function ze(U){return typeof U=="string"&&U.indexOf("%")!=-1}function Ne(U){return U.length==1?"0"+U:""+U}function Ze(U){return U<=1&&(U=U*100+"%"),U}function Ce(U){return e.round(parseFloat(U)*255).toString(16)}function Je(U){return he(U)/255}var ue=function(){var U="[-\\+]?\\d+%?",Q="[-\\+]?\\d*\\.\\d+%?",$="(?:"+Q+")|(?:"+U+")",Te="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?",Be="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?";return{CSS_UNIT:new RegExp($),rgb:new RegExp("rgb"+Te),rgba:new RegExp("rgba"+Be),hsl:new RegExp("hsl"+Te),hsla:new RegExp("hsla"+Be),hsv:new RegExp("hsv"+Te),hsva:new RegExp("hsva"+Be),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ye(U){return!!ue.CSS_UNIT.exec(U)}function Me(U){U=U.replace(r,"").replace(t,"").toLowerCase();var Q=!1;if(V[U])U=V[U],Q=!0;else if(U=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var $;return($=ue.rgb.exec(U))?{r:$[1],g:$[2],b:$[3]}:($=ue.rgba.exec(U))?{r:$[1],g:$[2],b:$[3],a:$[4]}:($=ue.hsl.exec(U))?{h:$[1],s:$[2],l:$[3]}:($=ue.hsla.exec(U))?{h:$[1],s:$[2],l:$[3],a:$[4]}:($=ue.hsv.exec(U))?{h:$[1],s:$[2],v:$[3]}:($=ue.hsva.exec(U))?{h:$[1],s:$[2],v:$[3],a:$[4]}:($=ue.hex8.exec(U))?{r:he($[1]),g:he($[2]),b:he($[3]),a:Je($[4]),format:Q?"name":"hex8"}:($=ue.hex6.exec(U))?{r:he($[1]),g:he($[2]),b:he($[3]),format:Q?"name":"hex"}:($=ue.hex4.exec(U))?{r:he($[1]+""+$[1]),g:he($[2]+""+$[2]),b:he($[3]+""+$[3]),a:Je($[4]+""+$[4]),format:Q?"name":"hex8"}:($=ue.hex3.exec(U))?{r:he($[1]+""+$[1]),g:he($[2]+""+$[2]),b:he($[3]+""+$[3]),format:Q?"name":"hex"}:!1}function pe(U){var Q,$;return U=U||{level:"AA",size:"small"},Q=(U.level||"AA").toUpperCase(),$=(U.size||"small").toLowerCase(),Q!=="AA"&&Q!=="AAA"&&(Q="AA"),$!=="small"&&$!=="large"&&($="small"),{level:Q,size:$}}typeof od!="undefined"&&od.exports?od.exports=s:window.tinycolor=s})(Math)});var la=ne(r1=>{"use strict";var b6=Gs(),Qv=Array.isArray;function fH(e,r){var t,n;for(t=0;t{"use strict";_6.exports=function(e){var r=e.variantValues,t=e.editType,n=e.colorEditType;n===void 0&&(n=t);var a={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:n},weight:a,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var t1=ne((nle,x6)=>{"use strict";x6.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var _0=ne((ale,A6)=>{"use strict";var w6=t1(),M6=$a(),Cy=M6({editType:"none"});Cy.family.dflt=w6.HOVERFONT;Cy.size.dflt=w6.HOVERFONTSIZE;A6.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:Cy,grouptitlefont:M6({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 ud=ne((ile,T6)=>{"use strict";var cH=$a(),ld=_0().hoverlabel,sd=la().extendFlat;T6.exports={hoverlabel:{bgcolor:sd({},ld.bgcolor,{arrayOk:!0}),bordercolor:sd({},ld.bordercolor,{arrayOk:!0}),font:cH({arrayOk:!0,editType:"none"}),align:sd({},ld.align,{arrayOk:!0}),namelength:sd({},ld.namelength,{arrayOk:!0}),editType:"none"}}});var bo=ne((ole,k6)=>{"use strict";var vH=$a(),hH=ud();k6.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:vH({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:hH.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var Jf=ne((lle,L6)=>{"use strict";var dH=Jl(),fd={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},S6=fd.RdBu;function pH(e,r){if(r||(r=S6),!e)return r;function t(){try{e=fd[e]||JSON.parse(e)}catch(n){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),C6(e)?e:r}function C6(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";$f.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];$f.defaultLine="#444";$f.lightLine="#eee";$f.background="#fff";$f.borderLine="#BEC8D9";$f.lightFraction=100*10/11});var zt=ne((ule,q6)=>{"use strict";var Ci=Jl(),mH=Bt(),yH=ji().isTypedArray,ma=q6.exports={},cd=cl();ma.defaults=cd.defaults;var bH=ma.defaultLine=cd.defaultLine;ma.lightLine=cd.lightLine;var qy=ma.background=cd.background;ma.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};ma.rgb=function(e){return ma.tinyRGB(Ci(e))};ma.opacity=function(e){return e?Ci(e).getAlpha():0};ma.addOpacity=function(e,r){var t=Ci(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};ma.combine=function(e,r){var t=Ci(e).toRgb();if(t.a===1)return Ci(e).toRgbString();var n=Ci(r||qy).toRgb(),a=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},i={r:a.r*(1-t.a)+t.r*t.a,g:a.g*(1-t.a)+t.g*t.a,b:a.b*(1-t.a)+t.b*t.a};return Ci(i).toRgbString()};ma.interpolate=function(e,r,t){var n=Ci(e).toRgb(),a=Ci(r).toRgb(),i={r:t*n.r+(1-t)*a.r,g:t*n.g+(1-t)*a.g,b:t*n.b+(1-t)*a.b};return Ci(i).toRgbString()};ma.contrast=function(e,r,t){var n=Ci(e);n.getAlpha()!==1&&(n=Ci(ma.combine(e,qy)));var a=n.isDark()?r?n.lighten(r):qy:t?n.darken(t):bH;return a.toString()};ma.stroke=function(e,r){var t=Ci(r);e.style({stroke:ma.tinyRGB(t),"stroke-opacity":t.getAlpha()})};ma.fill=function(e,r){var t=Ci(r);e.style({fill:ma.tinyRGB(t),"fill-opacity":t.getAlpha()})};ma.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,n,a,i;for(t=0;t=0)))return e;if(i===3)n[i]>1&&(n[i]=1);else if(n[i]>=1)return e}var o=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return a?"rgba("+o+", "+n[3]+")":"rgb("+o+")"}});var vd=ne((fle,D6)=>{"use strict";D6.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var x0=ne(E6=>{"use strict";E6.counter=function(e,r,t,n){var a=(r||"")+(t?"":"$"),i=n===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+a)}});var N6=ne(Li=>{"use strict";var Dy=Bt(),P6=Jl(),R6=la().extendFlat,_H=bo(),xH=Jf(),wH=zt(),MH=vd().DESELECTDIM,w0=$v(),z6=x0().counter,AH=b0().modHalf,$l=ji().isArrayOrTypedArray,Du=ji().isTypedArraySpec,Eu=ji().decodeTypedArraySpec;Li.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set($l(e)?e:Du(e)?Eu(e):t)}},enumerated:{coerceFunction:function(e,r,t,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,n=0;nn.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}Du(e)&&(e=Eu(e)),e%1||!Dy(e)||n.min!==void 0&&en.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,n){if(typeof e!="string"){var a=typeof e=="number";n.strict===!0||!a?r.set(t):r.set(String(e))}else n.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Du(e)&&(e=Eu(e)),P6(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function n(a){return P6(a).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(n)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(xH.get(e,t))}},angle:{coerceFunction:function(e,r,t){Du(e)&&(e=Eu(e)),e==="auto"?r.set("auto"):Dy(e)?r.set(AH(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,n){var a=n.regex||z6(t);if(typeof e=="string"&&a.test(e)){r.set(e);return}r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!z6(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var a=e.split("+"),i=0;i{"use strict";var F6={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:{}}},I6={};function H6(e,r){for(var t in e){var n=e[t];n.valType?r[t]=n.dflt:(r[t]||(r[t]={}),H6(n,r[t]))}}H6(F6,I6);B6.exports={configAttributes:F6,dfltConfig:I6}});var Py=ne((dle,O6)=>{"use strict";var Ey=kt(),TH=Bt(),n1=[];O6.exports=function(e,r){if(n1.indexOf(e)!==-1)return;n1.push(e);var t=1e3;TH(r)?t=r:r==="long"&&(t=3e3);var n=Ey.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var a=n.selectAll(".notifier-note").data(n1);function i(o){o.duration(700).style("opacity",0).each("end",function(l){var s=n1.indexOf(l);s!==-1&&n1.splice(s,1),Ey.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var l=Ey.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(i)});for(var s=l.append("p"),u=o.split(//g),f=0;f{"use strict";var M0=Kf().dfltConfig,Ry=Py(),zy=U6.exports={};zy.log=function(){var e;if(M0.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};zy.warn=function(){var e;if(M0.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};zy.error=function(){var e;if(M0.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var dd=ne((gle,Y6)=>{"use strict";Y6.exports=function(){}});var Ny=ne((mle,G6)=>{"use strict";G6.exports=function(r,t){if(t instanceof RegExp){for(var n=t.toString(),a=0;a{V6.exports=kH;function kH(){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 X6=ne((ble,Z6)=>{Z6.exports=SH;function SH(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 J6=ne((_le,j6)=>{j6.exports=CH;function CH(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 Fy=ne((xle,$6)=>{$6.exports=LH;function LH(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 Q6=ne((wle,K6)=>{K6.exports=qH;function qH(e,r){if(e===r){var t=r[1],n=r[2],a=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=n,e[9]=i,e[11]=r[14],e[12]=a,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var rx=ne((Mle,ex)=>{ex.exports=DH;function DH(e,r){var t=r[0],n=r[1],a=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],p=r[13],y=r[14],_=r[15],C=t*l-n*o,x=t*s-a*o,b=t*u-i*o,A=n*s-a*l,k=n*u-i*l,M=a*u-i*s,D=f*p-v*m,z=f*y-h*m,F=f*_-d*m,H=v*y-h*p,W=v*_-d*p,B=h*_-d*y,X=C*B-x*W+b*H+A*F-k*z+M*D;return X?(X=1/X,e[0]=(l*B-s*W+u*H)*X,e[1]=(a*W-n*B-i*H)*X,e[2]=(p*M-y*k+_*A)*X,e[3]=(h*k-v*M-d*A)*X,e[4]=(s*F-o*B-u*z)*X,e[5]=(t*B-a*F+i*z)*X,e[6]=(y*b-m*M-_*x)*X,e[7]=(f*M-h*b+d*x)*X,e[8]=(o*W-l*F+u*D)*X,e[9]=(n*F-t*W-i*D)*X,e[10]=(m*k-p*b+_*C)*X,e[11]=(v*b-f*k-d*C)*X,e[12]=(l*z-o*H-s*D)*X,e[13]=(t*H-n*z+a*D)*X,e[14]=(p*x-m*A-y*C)*X,e[15]=(f*A-v*x+h*C)*X,e):null}});var nx=ne((Ale,tx)=>{tx.exports=EH;function EH(e,r){var t=r[0],n=r[1],a=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],p=r[13],y=r[14],_=r[15];return e[0]=l*(h*_-d*y)-v*(s*_-u*y)+p*(s*d-u*h),e[1]=-(n*(h*_-d*y)-v*(a*_-i*y)+p*(a*d-i*h)),e[2]=n*(s*_-u*y)-l*(a*_-i*y)+p*(a*u-i*s),e[3]=-(n*(s*d-u*h)-l*(a*d-i*h)+v*(a*u-i*s)),e[4]=-(o*(h*_-d*y)-f*(s*_-u*y)+m*(s*d-u*h)),e[5]=t*(h*_-d*y)-f*(a*_-i*y)+m*(a*d-i*h),e[6]=-(t*(s*_-u*y)-o*(a*_-i*y)+m*(a*u-i*s)),e[7]=t*(s*d-u*h)-o*(a*d-i*h)+f*(a*u-i*s),e[8]=o*(v*_-d*p)-f*(l*_-u*p)+m*(l*d-u*v),e[9]=-(t*(v*_-d*p)-f*(n*_-i*p)+m*(n*d-i*v)),e[10]=t*(l*_-u*p)-o*(n*_-i*p)+m*(n*u-i*l),e[11]=-(t*(l*d-u*v)-o*(n*d-i*v)+f*(n*u-i*l)),e[12]=-(o*(v*y-h*p)-f*(l*y-s*p)+m*(l*h-s*v)),e[13]=t*(v*y-h*p)-f*(n*y-a*p)+m*(n*h-a*v),e[14]=-(t*(l*y-s*p)-o*(n*y-a*p)+m*(n*s-a*l)),e[15]=t*(l*h-s*v)-o*(n*h-a*v)+f*(n*s-a*l),e}});var ix=ne((Tle,ax)=>{ax.exports=PH;function PH(e){var r=e[0],t=e[1],n=e[2],a=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],v=e[10],h=e[11],d=e[12],m=e[13],p=e[14],y=e[15],_=r*o-t*i,C=r*l-n*i,x=r*s-a*i,b=t*l-n*o,A=t*s-a*o,k=n*s-a*l,M=u*m-f*d,D=u*p-v*d,z=u*y-h*d,F=f*p-v*m,H=f*y-h*m,W=v*y-h*p;return _*W-C*H+x*F+b*z-A*D+k*M}});var lx=ne((kle,ox)=>{ox.exports=RH;function RH(e,r,t){var n=r[0],a=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],v=r[8],h=r[9],d=r[10],m=r[11],p=r[12],y=r[13],_=r[14],C=r[15],x=t[0],b=t[1],A=t[2],k=t[3];return e[0]=x*n+b*l+A*v+k*p,e[1]=x*a+b*s+A*h+k*y,e[2]=x*i+b*u+A*d+k*_,e[3]=x*o+b*f+A*m+k*C,x=t[4],b=t[5],A=t[6],k=t[7],e[4]=x*n+b*l+A*v+k*p,e[5]=x*a+b*s+A*h+k*y,e[6]=x*i+b*u+A*d+k*_,e[7]=x*o+b*f+A*m+k*C,x=t[8],b=t[9],A=t[10],k=t[11],e[8]=x*n+b*l+A*v+k*p,e[9]=x*a+b*s+A*h+k*y,e[10]=x*i+b*u+A*d+k*_,e[11]=x*o+b*f+A*m+k*C,x=t[12],b=t[13],A=t[14],k=t[15],e[12]=x*n+b*l+A*v+k*p,e[13]=x*a+b*s+A*h+k*y,e[14]=x*i+b*u+A*d+k*_,e[15]=x*o+b*f+A*m+k*C,e}});var ux=ne((Sle,sx)=>{sx.exports=zH;function zH(e,r,t){var n=t[0],a=t[1],i=t[2],o,l,s,u,f,v,h,d,m,p,y,_;return r===e?(e[12]=r[0]*n+r[4]*a+r[8]*i+r[12],e[13]=r[1]*n+r[5]*a+r[9]*i+r[13],e[14]=r[2]*n+r[6]*a+r[10]*i+r[14],e[15]=r[3]*n+r[7]*a+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],v=r[5],h=r[6],d=r[7],m=r[8],p=r[9],y=r[10],_=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=v,e[6]=h,e[7]=d,e[8]=m,e[9]=p,e[10]=y,e[11]=_,e[12]=o*n+f*a+m*i+r[12],e[13]=l*n+v*a+p*i+r[13],e[14]=s*n+h*a+y*i+r[14],e[15]=u*n+d*a+_*i+r[15]),e}});var cx=ne((Cle,fx)=>{fx.exports=NH;function NH(e,r,t){var n=t[0],a=t[1],i=t[2];return e[0]=r[0]*n,e[1]=r[1]*n,e[2]=r[2]*n,e[3]=r[3]*n,e[4]=r[4]*a,e[5]=r[5]*a,e[6]=r[6]*a,e[7]=r[7]*a,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var hx=ne((Lle,vx)=>{vx.exports=FH;function FH(e,r,t,n){var a=n[0],i=n[1],o=n[2],l=Math.sqrt(a*a+i*i+o*o),s,u,f,v,h,d,m,p,y,_,C,x,b,A,k,M,D,z,F,H,W,B,X,V;return Math.abs(l)<1e-6?null:(l=1/l,a*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,v=r[0],h=r[1],d=r[2],m=r[3],p=r[4],y=r[5],_=r[6],C=r[7],x=r[8],b=r[9],A=r[10],k=r[11],M=a*a*f+u,D=i*a*f+o*s,z=o*a*f-i*s,F=a*i*f-o*s,H=i*i*f+u,W=o*i*f+a*s,B=a*o*f+i*s,X=i*o*f-a*s,V=o*o*f+u,e[0]=v*M+p*D+x*z,e[1]=h*M+y*D+b*z,e[2]=d*M+_*D+A*z,e[3]=m*M+C*D+k*z,e[4]=v*F+p*H+x*W,e[5]=h*F+y*H+b*W,e[6]=d*F+_*H+A*W,e[7]=m*F+C*H+k*W,e[8]=v*B+p*X+x*V,e[9]=h*B+y*X+b*V,e[10]=d*B+_*X+A*V,e[11]=m*B+C*X+k*V,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var px=ne((qle,dx)=>{dx.exports=IH;function IH(e,r,t){var n=Math.sin(t),a=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*a+u*n,e[5]=o*a+f*n,e[6]=l*a+v*n,e[7]=s*a+h*n,e[8]=u*a-i*n,e[9]=f*a-o*n,e[10]=v*a-l*n,e[11]=h*a-s*n,e}});var mx=ne((Dle,gx)=>{gx.exports=HH;function HH(e,r,t){var n=Math.sin(t),a=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*a-u*n,e[1]=o*a-f*n,e[2]=l*a-v*n,e[3]=s*a-h*n,e[8]=i*n+u*a,e[9]=o*n+f*a,e[10]=l*n+v*a,e[11]=s*n+h*a,e}});var bx=ne((Ele,yx)=>{yx.exports=BH;function BH(e,r,t){var n=Math.sin(t),a=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],v=r[6],h=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*a+u*n,e[1]=o*a+f*n,e[2]=l*a+v*n,e[3]=s*a+h*n,e[4]=u*a-i*n,e[5]=f*a-o*n,e[6]=v*a-l*n,e[7]=h*a-s*n,e}});var xx=ne((Ple,_x)=>{_x.exports=OH;function OH(e,r,t){var n,a,i,o=t[0],l=t[1],s=t[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,l*=u,s*=u,n=Math.sin(r),a=Math.cos(r),i=1-a,e[0]=o*o*i+a,e[1]=l*o*i+s*n,e[2]=s*o*i-l*n,e[3]=0,e[4]=o*l*i-s*n,e[5]=l*l*i+a,e[6]=s*l*i+o*n,e[7]=0,e[8]=o*s*i+l*n,e[9]=l*s*i-o*n,e[10]=s*s*i+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var Mx=ne((Rle,wx)=>{wx.exports=UH;function UH(e,r,t){var n=r[0],a=r[1],i=r[2],o=r[3],l=n+n,s=a+a,u=i+i,f=n*l,v=n*s,h=n*u,d=a*s,m=a*u,p=i*u,y=o*l,_=o*s,C=o*u;return e[0]=1-(d+p),e[1]=v+C,e[2]=h-_,e[3]=0,e[4]=v-C,e[5]=1-(f+p),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 Tx=ne((zle,Ax)=>{Ax.exports=YH;function YH(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 Sx=ne((Nle,kx)=>{kx.exports=GH;function GH(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 Lx=ne((Fle,Cx)=>{Cx.exports=VH;function VH(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Dx=ne((Ile,qx)=>{qx.exports=WH;function WH(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Px=ne((Hle,Ex)=>{Ex.exports=ZH;function ZH(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Iy=ne((Ble,Rx)=>{Rx.exports=XH;function XH(e,r){var t=r[0],n=r[1],a=r[2],i=r[3],o=t+t,l=n+n,s=a+a,u=t*o,f=n*o,v=n*l,h=a*o,d=a*l,m=a*s,p=i*o,y=i*l,_=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+p,e[7]=0,e[8]=h+y,e[9]=d-p,e[10]=1-u-v,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Nx=ne((Ole,zx)=>{zx.exports=jH;function jH(e,r,t,n,a,i,o){var l=1/(t-r),s=1/(a-n),u=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(a+n)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var Ix=ne((Ule,Fx)=>{Fx.exports=JH;function JH(e,r,t,n,a){var i=1/Math.tan(r/2),o=1/(n-a);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*n*o,e[15]=0,e}});var Bx=ne((Yle,Hx)=>{Hx.exports=$H;function $H(e,r,t,n){var a=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(a+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(a-i)*u*.5,e[10]=n/(t-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*t/(t-n),e[15]=0,e}});var Ux=ne((Gle,Ox)=>{Ox.exports=KH;function KH(e,r,t,n,a,i,o){var l=1/(r-t),s=1/(n-a),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*l,e[13]=(a+n)*s,e[14]=(o+i)*u,e[15]=1,e}});var Gx=ne((Vle,Yx)=>{var QH=Fy();Yx.exports=eB;function eB(e,r,t,n){var a,i,o,l,s,u,f,v,h,d,m=r[0],p=r[1],y=r[2],_=n[0],C=n[1],x=n[2],b=t[0],A=t[1],k=t[2];return Math.abs(m-b)<1e-6&&Math.abs(p-A)<1e-6&&Math.abs(y-k)<1e-6?QH(e):(f=m-b,v=p-A,h=y-k,d=1/Math.sqrt(f*f+v*v+h*h),f*=d,v*=d,h*=d,a=C*h-x*v,i=x*f-_*h,o=_*v-C*f,d=Math.sqrt(a*a+i*i+o*o),d?(d=1/d,a*=d,i*=d,o*=d):(a=0,i=0,o=0),l=v*o-h*i,s=h*a-f*o,u=f*i-v*a,d=Math.sqrt(l*l+s*s+u*u),d?(d=1/d,l*=d,s*=d,u*=d):(l=0,s=0,u=0),e[0]=a,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=v,e[7]=0,e[8]=o,e[9]=u,e[10]=h,e[11]=0,e[12]=-(a*m+i*p+o*y),e[13]=-(l*m+s*p+u*y),e[14]=-(f*m+v*p+h*y),e[15]=1,e)}});var Wx=ne((Wle,Vx)=>{Vx.exports=rB;function rB(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var Hy=ne((Zle,Zx)=>{Zx.exports={create:W6(),clone:X6(),copy:J6(),identity:Fy(),transpose:Q6(),invert:rx(),adjoint:nx(),determinant:ix(),multiply:lx(),translate:ux(),scale:cx(),rotate:hx(),rotateX:px(),rotateY:mx(),rotateZ:bx(),fromRotation:xx(),fromRotationTranslation:Mx(),fromScaling:Tx(),fromTranslation:Sx(),fromXRotation:Lx(),fromYRotation:Dx(),fromZRotation:Px(),fromQuat:Iy(),frustum:Nx(),perspective:Ix(),perspectiveFromFieldOfView:Bx(),ortho:Ux(),lookAt:Gx(),str:Wx()}});var pd=ne(Xn=>{"use strict";var tB=Hy();Xn.init2dArray=function(e,r){for(var t=new Array(e),n=0;n{"use strict";var nB=kt(),Xx=Pu(),aB=pd(),iB=Hy();function oB(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 lB(e){var r=nB.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function jx(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function sB(e,r){Jx("global",e,r)}function Jx(e,r,t){var n="plotly.js-style-"+e,a=document.getElementById(n);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",n),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var i=a.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):Xx.warn("addStyleRule failed"):Xx.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function uB(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&jx(t)}function fB(e,r,t,n,a,i){var o=n.split(":"),l=a.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[o[0]]=o[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[o[0]]=o[1]:f.style[l[0]]=l[1])}),u.setAttribute(s,!0))})}function cB(e){var r=Kx(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(n){var a=$x(n);if(a){var i=aB.convertCssMatrix(a);t=iB.multiply(t,t,i)}}),t}function $x(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function Kx(e){for(var r=[];vB(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function vB(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function hB(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}Qx.exports={getGraphDiv:oB,isPlotDiv:lB,removeElement:jx,addStyleRule:sB,addRelatedStyleRule:Jx,deleteRelatedStyleRule:uB,setStyleOnHover:fB,getFullTransformMatrix:cB,getElementTransformMatrix:$x,getElementAndAncestors:Kx,equalDomRects:hB}});var i1=ne((Jle,e7)=>{"use strict";e7.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var _o=ne(($le,l7)=>{"use strict";var t7=la().extendFlat,dB=Gs(),n7={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},a7={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},pB=n7.flags.slice().concat(["fullReplot"]),gB=a7.flags.slice().concat("layoutReplot");l7.exports={traces:n7,layout:a7,traceFlags:function(){return r7(pB)},layoutFlags:function(){return r7(gB)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var n=t.split("+"),a=0;a{"use strict";By.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};By.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var Oy=ne((Qle,s7)=>{"use strict";s7.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 Ru=ne(gd=>{"use strict";var u7=Oy(),ese=u7.FORMAT_LINK,rse=u7.DATE_FORMAT_LINK;function Uy(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var n=[],a=0;a{"use strict";function zu(e,r){return r?r.d2l(e):e}function f7(e,r){return r?r.l2d(e):e}function mB(e){return e.x0}function yB(e){return e.x1}function bB(e){return e.y0}function _B(e){return e.y1}function c7(e){return e.x0shift||0}function v7(e){return e.x1shift||0}function h7(e){return e.y0shift||0}function d7(e){return e.y1shift||0}function md(e,r){return zu(e.x1,r)+v7(e)-zu(e.x0,r)-c7(e)}function yd(e,r,t){return zu(e.y1,t)+d7(e)-zu(e.y0,t)-h7(e)}function xB(e,r){return Math.abs(md(e,r))}function wB(e,r,t){return Math.abs(yd(e,r,t))}function MB(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(md(e,r),2)+Math.pow(yd(e,r,t),2))}function AB(e,r){return f7((zu(e.x1,r)+v7(e)+zu(e.x0,r)+c7(e))/2,r)}function TB(e,r,t){return f7((zu(e.y1,t)+d7(e)+zu(e.y0,t)+h7(e))/2,t)}function kB(e,r,t){return e.type!=="line"?void 0:yd(e,r,t)/md(e,r)}p7.exports={x0:mB,x1:yB,y0:bB,y1:_B,slope:kB,dx:md,dy:yd,width:xB,height:wB,length:MB,xcenter:AB,ycenter:TB}});var y7=ne((ase,m7)=>{"use strict";var SB=_o().overrideAll,Qf=bo(),g7=$a(),CB=Kl().dash,Nu=la().extendFlat,LB=Ru().shapeTexttemplateAttrs,qB=bd();m7.exports=SB({newshape:{visible:Nu({},Qf.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Nu({},Qf.legend,{}),legendgroup:Nu({},Qf.legendgroup,{}),legendgrouptitle:{text:Nu({},Qf.legendgrouptitle.text,{}),font:g7({})},legendrank:Nu({},Qf.legendrank,{}),legendwidth:Nu({},Qf.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Nu({},CB,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Nu({},Qf.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:LB({newshape:!0},{keys:Object.keys(qB)}),font:g7({}),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 _7=ne((ise,b7)=>{"use strict";var DB=Kl().dash,EB=la().extendFlat;b7.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:EB({},DB,{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 _d=ne((ose,x7)=>{"use strict";x7.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var A0=ne((lse,T7)=>{"use strict";var Yy=$a(),PB=i1(),xd=cl(),w7=y7(),M7=_7(),RB=_d(),A7=la().extendFlat,wd=Yy({editType:"calc"});wd.family.dflt='"Open Sans", verdana, arial, sans-serif';wd.size.dflt=12;wd.color.dflt=xd.defaultLine;T7.exports={font:wd,title:{text:{valType:"string",editType:"layoutstyle"},font:Yy({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Yy({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:A7(RB({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:xd.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:xd.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:xd.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:w7.newshape,activeshape:w7.activeshape,newselection:M7.newselection,activeselection:M7.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:A7({},PB.transition,{editType:"none"})}});var k7=U_(()=>{});var zB={};var S7=U_(()=>{k7()});var dt=ne(Dt=>{"use strict";var T0=Pu(),C7=dd(),L7=Ny(),NB=Gs(),FB=a1().addStyleRule,q7=la(),IB=bo(),HB=A0(),BB=q7.extendFlat,Gy=q7.extendDeepAll;Dt.modules={};Dt.allCategories={};Dt.allTypes=[];Dt.subplotsRegistry={};Dt.componentsRegistry={};Dt.layoutArrayContainers=[];Dt.layoutArrayRegexes=[];Dt.traceLayoutAttributes={};Dt.localeRegistry={};Dt.apiMethodRegistry={};Dt.collectableSubplotTypes=null;Dt.register=function(r){if(Dt.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 WB=m0().timeFormat,O7=Bt(),Vy=Pu(),Iu=b0().mod,C0=En(),xo=C0.BADNUM,qi=C0.ONEDAY,o1=C0.ONEHOUR,Fu=C0.ONEMIN,S0=C0.ONESEC,l1=C0.EPOCHJD,Vs=dt(),z7=m0().utcFormat,ZB=/^\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,XB=/^\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,N7=new Date().getFullYear()-70;function Ws(e){return e&&Vs.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}jn.dateTick0=function(e,r){var t=jB(e,!!r);if(r<2)return t;var n=jn.dateTime2ms(t,e);return n+=qi*(r-1),jn.ms2DateTime(n,0,e)};function jB(e,r){return Ws(e)?r?Vs.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Vs.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}jn.dfltRange=function(e){return Ws(e)?Vs.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};jn.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Ad,Td;jn.dateTime2ms=function(e,r){if(jn.isJSDate(e)){var t=e.getTimezoneOffset()*Fu,n=(e.getUTCMinutes()-e.getMinutes())*Fu+(e.getUTCSeconds()-e.getSeconds())*S0+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var a=3*Fu;t=t-a/2+Iu(n-t+a/2,a)}return e=Number(e)-t,e>=Ad&&e<=Td?e:xo}if(typeof e!="string"&&typeof e!="number")return xo;e=String(e);var i=Ws(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.substr(1),r="");var l=i&&r.substr(0,7)==="chinese",s=e.match(l?XB:ZB);if(!s)return xo;var u=s[1],f=s[3]||"1",v=Number(s[5]||1),h=Number(s[7]||0),d=Number(s[9]||0),m=Number(s[11]||0);if(i){if(u.length===2)return xo;u=Number(u);var p;try{var y=Vs.getComponentMethod("calendars","getCal")(r);if(l){var _=f.charAt(f.length-1)==="i";f=parseInt(f,10),p=y.newDate(u,y.toMonthIndex(u,f,_),v)}else p=y.newDate(u,Number(f),v)}catch(x){return xo}return p?(p.toJD()-l1)*qi+h*o1+d*Fu+m*S0:xo}u.length===2?u=(Number(u)+2e3-N7)%100+N7:u=Number(u),f-=1;var C=new Date(Date.UTC(2e3,f,v,h,d));return C.setUTCFullYear(u),C.getUTCMonth()!==f||C.getUTCDate()!==v?xo:C.getTime()+m*S0};Ad=jn.MIN_MS=jn.dateTime2ms("-9999");Td=jn.MAX_MS=jn.dateTime2ms("9999-12-31 23:59:59.9999");jn.isDateTime=function(e,r){return jn.dateTime2ms(e,r)!==xo};function k0(e,r){return String(e+Math.pow(10,r)).substr(1)}var Md=90*qi,F7=3*o1,I7=5*Fu;jn.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Ad&&e<=Td))return xo;r||(r=0);var n=Math.floor(Iu(e+.05,1)*10),a=Math.round(e-n/10),i,o,l,s,u,f;if(Ws(t)){var v=Math.floor(a/qi)+l1,h=Math.floor(Iu(e,qi));try{i=Vs.getComponentMethod("calendars","getCal")(t).fromJD(v).formatDate("yyyy-mm-dd")}catch(d){i=z7("G%Y-%m-%d")(new Date(a))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=r=Ad+qi&&e<=Td-qi))return xo;var r=Math.floor(Iu(e+.05,1)*10),t=new Date(Math.round(e-r/10)),n=WB("%Y-%m-%d")(t),a=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return U7(n,a,i,o,l)};function U7(e,r,t,n,a){if((r||t||n||a)&&(e+=" "+k0(r,2)+":"+k0(t,2),(n||a)&&(e+=":"+k0(n,2),a))){for(var i=4;a%10===0;)i-=1,a/=10;e+="."+k0(a,i)}return e}jn.cleanDate=function(e,r,t){if(e===xo)return r;if(jn.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Ws(t))return Vy.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=jn.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!jn.isDateTime(e,t))return Vy.error("unrecognized date",e),r;return e};var JB=/%\d?f/g,$B=/%h/g,KB={1:"1",2:"1",3:"2",4:"2"};function H7(e,r,t,n){e=e.replace(JB,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return l});var a=new Date(Math.floor(r+.05));if(e=e.replace($B,function(){return KB[t("%q")(a)]}),Ws(n))try{e=Vs.getComponentMethod("calendars","worldCalFmt")(e,r,n)}catch(i){return"Invalid"}return t(e)(a)}var QB=[59,59.9,59.99,59.999,59.9999];function eO(e,r){var t=Iu(e+.05,qi),n=k0(Math.floor(t/o1),2)+":"+k0(Iu(Math.floor(t/Fu),60),2);if(r!=="M"){O7(r)||(r=0);var a=Math.min(Iu(e/S0,60),QB[r]),i=(100+a).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+i}return n}jn.formatDate=function(e,r,t,n,a,i){if(a=Ws(a)&&a,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` -`+i.year;else return eO(e,t)+` -`+H7(i.dayMonthYear,e,n,a);return H7(r,e,n,a)};var B7=3*qi;jn.incrementMonth=function(e,r,t){t=Ws(t)&&t;var n=Iu(e,qi);if(e=Math.round(e-n),t)try{var a=Math.round(e/qi)+l1,i=Vs.getComponentMethod("calendars","getCal")(t),o=i.fromJD(a);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-l1)*qi+n}catch(s){Vy.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+B7);return l.setUTCMonth(l.getUTCMonth()+r)+n-B7};jn.findExactDates=function(e,r){for(var t=0,n=0,a=0,i=0,o,l,s=Ws(r)&&Vs.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";G7.exports=function(r){return r}});var Zy=ne(Zs=>{"use strict";var rO=Bt(),tO=Pu(),nO=kd(),aO=En().BADNUM,Wy=1e-9;Zs.findBin=function(e,r,t){if(rO(r.start))return t?Math.ceil((e-r.start)/r.size-Wy)-1:Math.floor((e-r.start)/r.size+Wy);var n=0,a=r.length,i=0,o=a>1?(r[a-1]-r[0])/(a-1):1,l,s;for(o>=0?s=t?iO:oO:s=t?sO:lO,e+=o*Wy*(t?-1:1)*(o>=0?1:-1);n90&&tO.log("Long binary search..."),n-1};function iO(e,r){return er}function sO(e,r){return e>=r}Zs.sorterAsc=function(e,r){return e-r};Zs.sorterDes=function(e,r){return r-e};Zs.distinctVals=function(e){var r=e.slice();r.sort(Zs.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===aO;t--);for(var n=r[t]-r[0]||1,a=n/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],u=s-o;o===void 0?(i.push(s),o=s):u>a&&(n=Math.min(n,u),i.push(s),o=s)}return{vals:i,minDiff:n}};Zs.roundUp=function(e,r,t){for(var n=0,a=r.length-1,i,o=0,l=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;n0&&(n=1),t&&n)return e.sort(r)}return n?e:e.reverse()};Zs.findIndexOfMin=function(e,r){r=r||nO;for(var t=1/0,n,a=0;a{"use strict";V7.exports=function(r){return Object.keys(r).sort()}});var W7=ne(Jn=>{"use strict";var s1=Bt(),uO=ji().isArrayOrTypedArray;Jn.aggNums=function(e,r,t,n){var a,i;if((!n||n>t.length)&&(n=t.length),s1(r)||(r=!1),uO(t[0])){for(i=new Array(n),a=0;ae.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var $7=ne((mse,J7)=>{"use strict";var Z7=b0(),Xy=Z7.mod,fO=Z7.modHalf,u1=Math.PI,Hu=2*u1;function cO(e){return e/180*u1}function vO(e){return e/u1*180}function jy(e){return Math.abs(e[1]-e[0])>Hu-1e-14}function X7(e,r){return fO(r-e,Hu)}function hO(e,r){return Math.abs(X7(e,r))}function j7(e,r){if(jy(r))return!0;var t,n;r[0]n&&(n+=Hu);var a=Xy(e,Hu),i=a+Hu;return a>=t&&a<=n||i>=t&&i<=n}function dO(e,r,t,n){if(!j7(r,n))return!1;var a,i;return t[0]=a&&e<=i}function Jy(e,r,t,n,a,i,o){a=a||0,i=i||0;var l=jy([t,n]),s,u,f,v,h;l?(s=0,u=u1,f=Hu):t{"use strict";ec.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};ec.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};ec.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};ec.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};ec.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};ec.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var rw=ne(rc=>{"use strict";var $y=b0().mod;rc.segmentsIntersect=ew;function ew(e,r,t,n,a,i,o,l){var s=t-e,u=a-e,f=o-a,v=n-r,h=i-r,d=l-i,m=s*d-f*v;if(m===0)return null;var p=(u*d-f*h)/m,y=(u*v-s*h)/m;return y<0||y>1||p<0||p>1?null:{x:e+s*p,y:r+v*p}}rc.segmentDistance=function(r,t,n,a,i,o,l,s){if(ew(r,t,n,a,i,o,l,s))return 0;var u=n-r,f=a-t,v=l-i,h=s-o,d=u*u+f*f,m=v*v+h*h,p=Math.min(Cd(u,f,d,i-r,o-t),Cd(u,f,d,l-r,s-t),Cd(v,h,m,r-i,t-o),Cd(v,h,m,n-i,a-o));return Math.sqrt(p)};function Cd(e,r,t,n,a){var i=n*e+a*r;if(i<0)return n*n+a*a;if(i>t){var o=n-e,l=a-r;return o*o+l*l}else{var s=n*r-a*e;return s*s/t}}var Ld,Ky,Q7;rc.getTextLocation=function(r,t,n,a){if((r!==Ky||a!==Q7)&&(Ld={},Ky=r,Q7=a),Ld[n])return Ld[n];var i=r.getPointAtLength($y(n-a/2,t)),o=r.getPointAtLength($y(n+a/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength($y(n,t)),u=(s.x*4+i.x+o.x)/6,f=(s.y*4+i.y+o.y)/6,v={x:u,y:f,theta:l};return Ld[n]=v,v};rc.clearLocationCache=function(){Ky=null};rc.getVisibleSegment=function(r,t,n){var a=t.left,i=t.right,o=t.top,l=t.bottom,s=0,u=r.getTotalLength(),f=u,v,h;function d(p){var y=r.getPointAtLength(p);p===0?v=y:p===u&&(h=y);var _=y.xi?y.x-i:0,C=y.yl?y.y-l:0;return Math.sqrt(_*_+C*C)}for(var m=d(s);m;){if(s+=m+n,s>f)return;m=d(s)}for(m=d(f);m;){if(f-=m+n,s>f)return;m=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(v.x-h.x)<.1&&Math.abs(v.y-h.y)<.1}};rc.findPointOnPath=function(r,t,n,a){a=a||{};for(var i=a.pathLength||r.getTotalLength(),o=a.tolerance||.001,l=a.iterationLimit||30,s=r.getPointAtLength(0)[n]>r.getPointAtLength(i)[n]?-1:1,u=0,f=0,v=i,h,d,m;u0?v=h:f=h,u++}return d}});var qd=ne(f1=>{"use strict";var Xs={};f1.throttle=function(r,t,n){var a=Xs[r],i=Date.now();if(!a){for(var o in Xs)Xs[o].tsa.ts+t){l();return}a.timer=setTimeout(function(){l(),a.timer=null},t)};f1.done=function(e){var r=Xs[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var n=r.onDone;r.onDone=function(){n&&n(),t(),r.onDone=null}})};f1.clear=function(e){if(e)tw(Xs[e]),delete Xs[e];else for(var r in Xs)f1.clear(r)};function tw(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var aw=ne((xse,nw)=>{"use strict";nw.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var iw=ne((wse,Dd)=>{"use strict";Dd.exports=Qy;Dd.exports.isMobile=Qy;Dd.exports.default=Qy;var yO=/(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,bO=/CrOS/,_O=/android|ipad|playbook|silk/i;function Qy(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=yO.test(r)&&!bO.test(r)||!!e.tablet&&_O.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var lw=ne((Mse,ow)=>{"use strict";var xO=Bt(),wO=iw();ow.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=MO(),typeof t!="string")return!0;var n=wO({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!n)for(var a=t.split(" "),i=1;i-1;l--){var s=a[l];if(s.substr(0,8)==="Version/"){var u=s.substr(8).split(".")[0];if(xO(u)&&(u=+u),u>=13)return!0}}}return n};function MO(){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 uw=ne((Ase,sw)=>{"use strict";var AO=kt();sw.exports=function(r,t,n){var a=r.selectAll("g."+n.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",n),a.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(o){o[0][i]=AO.select(this)}),a}});var cw=ne((Tse,fw)=>{"use strict";var TO=dt();fw.exports=function(r,t){for(var n=r._context.locale,a=0;a<2;a++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[n]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=TO.localeRegistry}var u=n.split("-")[0];if(u===n)break;n=u}return t}});var hw=ne((kse,vw)=>{"use strict";vw.exports=function(r){for(var t={},n=[],a=0,i=0;i{"use strict";dw.exports=function(r){for(var t=CO(r)?SO:kO,n=[],a=0;a{"use strict";gw.exports=function(r,t){if(!t)return r;var n=1/Math.abs(t),a=n>1?(n*r+n*t)/n:r+t,i=String(a).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(a).toPrecision(12);s.indexOf("e+")===-1&&(a=+s)}}return a}});var bw=ne((Lse,yw)=>{"use strict";var LO=Bt(),qO=En().BADNUM,DO=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;yw.exports=function(r){return typeof r=="string"&&(r=r.replace(DO,"")),LO(r)?Number(r):qO}});var gr=ne((qse,Ew)=>{"use strict";var c1=kt(),EO=m0().utcFormat,PO=wy().format,Tw=Bt(),kw=En(),Sw=kw.FP_SAFE,RO=-Sw,_w=kw.BADNUM,Ee=Ew.exports={};Ee.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 xw={};Ee.warnBadFormat=function(e){var r=String(e);xw[r]||(xw[r]=1,Ee.warn('encountered bad format: "'+r+'"'))};Ee.noFormat=function(e){return String(e)};Ee.numberFormat=function(e){var r;try{r=PO(Ee.adjustFormat(e))}catch(t){return Ee.warnBadFormat(e),Ee.noFormat}return r};Ee.nestedProperty=$v();Ee.keyedContainer=c6();Ee.relativeAttr=h6();Ee.isPlainObject=Gs();Ee.toLogRange=id();Ee.relinkPrivateKeys=m6();var Bu=ji();Ee.isArrayBuffer=Bu.isArrayBuffer;Ee.isTypedArray=Bu.isTypedArray;Ee.isArrayOrTypedArray=Bu.isArrayOrTypedArray;Ee.isArray1D=Bu.isArray1D;Ee.ensureArray=Bu.ensureArray;Ee.concat=Bu.concat;Ee.maxRowLength=Bu.maxRowLength;Ee.minRowLength=Bu.minRowLength;var Cw=b0();Ee.mod=Cw.mod;Ee.modHalf=Cw.modHalf;var Ou=N6();Ee.valObjectMeta=Ou.valObjectMeta;Ee.coerce=Ou.coerce;Ee.coerce2=Ou.coerce2;Ee.coerceFont=Ou.coerceFont;Ee.coercePattern=Ou.coercePattern;Ee.coerceHoverinfo=Ou.coerceHoverinfo;Ee.coerceSelectionMarkerOpacity=Ou.coerceSelectionMarkerOpacity;Ee.validate=Ou.validate;var Ji=Y7();Ee.dateTime2ms=Ji.dateTime2ms;Ee.isDateTime=Ji.isDateTime;Ee.ms2DateTime=Ji.ms2DateTime;Ee.ms2DateTimeLocal=Ji.ms2DateTimeLocal;Ee.cleanDate=Ji.cleanDate;Ee.isJSDate=Ji.isJSDate;Ee.formatDate=Ji.formatDate;Ee.incrementMonth=Ji.incrementMonth;Ee.dateTick0=Ji.dateTick0;Ee.dfltRange=Ji.dfltRange;Ee.findExactDates=Ji.findExactDates;Ee.MIN_MS=Ji.MIN_MS;Ee.MAX_MS=Ji.MAX_MS;var tc=Zy();Ee.findBin=tc.findBin;Ee.sorterAsc=tc.sorterAsc;Ee.sorterDes=tc.sorterDes;Ee.distinctVals=tc.distinctVals;Ee.roundUp=tc.roundUp;Ee.sort=tc.sort;Ee.findIndexOfMin=tc.findIndexOfMin;Ee.sortObjectKeys=Sd();var js=W7();Ee.aggNums=js.aggNums;Ee.len=js.len;Ee.mean=js.mean;Ee.geometricMean=js.geometricMean;Ee.median=js.median;Ee.midRange=js.midRange;Ee.variance=js.variance;Ee.stdev=js.stdev;Ee.interp=js.interp;var vl=pd();Ee.init2dArray=vl.init2dArray;Ee.transposeRagged=vl.transposeRagged;Ee.dot=vl.dot;Ee.translationMatrix=vl.translationMatrix;Ee.rotationMatrix=vl.rotationMatrix;Ee.rotationXYMatrix=vl.rotationXYMatrix;Ee.apply3DTransform=vl.apply3DTransform;Ee.apply2DTransform=vl.apply2DTransform;Ee.apply2DTransform2=vl.apply2DTransform2;Ee.convertCssMatrix=vl.convertCssMatrix;Ee.inverseTransformMatrix=vl.inverseTransformMatrix;var Ql=$7();Ee.deg2rad=Ql.deg2rad;Ee.rad2deg=Ql.rad2deg;Ee.angleDelta=Ql.angleDelta;Ee.angleDist=Ql.angleDist;Ee.isFullCircle=Ql.isFullCircle;Ee.isAngleInsideSector=Ql.isAngleInsideSector;Ee.isPtInsideSector=Ql.isPtInsideSector;Ee.pathArc=Ql.pathArc;Ee.pathSector=Ql.pathSector;Ee.pathAnnulus=Ql.pathAnnulus;var q0=K7();Ee.isLeftAnchor=q0.isLeftAnchor;Ee.isCenterAnchor=q0.isCenterAnchor;Ee.isRightAnchor=q0.isRightAnchor;Ee.isTopAnchor=q0.isTopAnchor;Ee.isMiddleAnchor=q0.isMiddleAnchor;Ee.isBottomAnchor=q0.isBottomAnchor;var D0=rw();Ee.segmentsIntersect=D0.segmentsIntersect;Ee.segmentDistance=D0.segmentDistance;Ee.getTextLocation=D0.getTextLocation;Ee.clearLocationCache=D0.clearLocationCache;Ee.getVisibleSegment=D0.getVisibleSegment;Ee.findPointOnPath=D0.findPointOnPath;var Rd=la();Ee.extendFlat=Rd.extendFlat;Ee.extendDeep=Rd.extendDeep;Ee.extendDeepAll=Rd.extendDeepAll;Ee.extendDeepNoArrays=Rd.extendDeepNoArrays;var e2=Pu();Ee.log=e2.log;Ee.warn=e2.warn;Ee.error=e2.error;var zO=x0();Ee.counterRegex=zO.counter;var r2=qd();Ee.throttle=r2.throttle;Ee.throttleDone=r2.done;Ee.clearThrottle=r2.clear;var hl=a1();Ee.getGraphDiv=hl.getGraphDiv;Ee.isPlotDiv=hl.isPlotDiv;Ee.removeElement=hl.removeElement;Ee.addStyleRule=hl.addStyleRule;Ee.addRelatedStyleRule=hl.addRelatedStyleRule;Ee.deleteRelatedStyleRule=hl.deleteRelatedStyleRule;Ee.setStyleOnHover=hl.setStyleOnHover;Ee.getFullTransformMatrix=hl.getFullTransformMatrix;Ee.getElementTransformMatrix=hl.getElementTransformMatrix;Ee.getElementAndAncestors=hl.getElementAndAncestors;Ee.equalDomRects=hl.equalDomRects;Ee.clearResponsive=aw();Ee.preserveDrawingBuffer=lw();Ee.makeTraceGroups=uw();Ee._=cw();Ee.notifier=Py();Ee.filterUnique=hw();Ee.filterVisible=pw();Ee.pushUnique=Ny();Ee.increment=mw();Ee.cleanNumber=bw();Ee.ensureNumber=function(r){return Tw(r)?(r=Number(r),r>Sw||r=r?!1:Tw(e)&&e>=0&&e%1===0};Ee.noop=dd();Ee.identity=kd();Ee.repeat=function(e,r){for(var t=new Array(r),n=0;nt?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};Ee.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};Ee.simpleMap=function(e,r,t,n,a){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,t)?a>10?(Ee.warn("randstr failed uniqueness"),o):e(r,t,n,(a||0)+1):o};Ee.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(n){n[r]=e,t[n.name]=n,t.optionList.push(n)},t["_"+r]=e,t};Ee.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,n=2*t,a=2*r-1,i=new Array(a),o=new Array(t),l,s,u,f;for(l=0;l=n&&(u-=n*Math.floor(u/n)),u<0?u=-1-u:u>=t&&(u=n-1-u),f+=e[u]*i[s];o[l]=f}return o};Ee.syncOrAsync=function(e,r,t){var n,a;function i(){return Ee.syncOrAsync(e,r,t)}for(;e.length;)if(a=e.splice(0,1)[0],n=a(r),n&&n.then)return n.then(i);return t&&t(r)};Ee.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};Ee.noneOrAll=function(e,r,t){if(e){var n=!1,a=!0,i,o;for(i=0;i0?a:0})};Ee.fillArray=function(e,r,t,n){if(n=n||Ee.identity,Ee.isArrayOrTypedArray(e))for(var a=0;a1?a+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;n.test(l);)l=l.replace(n,"$1"+i+"$2");return l+s};Ee.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Dw=/^\w*$/;Ee.templateString=function(e,r){var t={};return e.replace(Ee.TEMPLATE_STRING_REGEX,function(n,a){var i;return Dw.test(a)?i=r[a]:(t[a]=t[a]||Ee.nestedProperty(r,a).get,i=t[a](!0)),i!==void 0?i:""})};var OO={max:10,count:0,name:"hovertemplate"};Ee.hovertemplateString=function(){return t2.apply(OO,arguments)};var UO={max:10,count:0,name:"texttemplate"};Ee.texttemplateString=function(){return t2.apply(UO,arguments)};var YO=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function GO(e){var r=e.match(YO);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var VO={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Ee.texttemplateStringForShapes=function(){return t2.apply(VO,arguments)};var ww=/^[:|\|]/;function t2(e,r,t){var n=this,a=arguments;return r||(r={}),e.replace(Ee.TEMPLATE_STRING_REGEX,function(i,o,l){var s=o==="xother"||o==="yother",u=o==="_xother"||o==="_yother",f=o==="_xother_"||o==="_yother_",v=o==="xother_"||o==="yother_",h=s||u||v||f,d=o;(u||f)&&(d=d.substring(1)),(v||f)&&(d=d.substring(0,d.length-1));var m=null,p=null;if(n.parseMultDiv){var y=GO(d);d=y.key,m=y.op,p=y.number}var _;if(h){if(_=r[d],_===void 0)return""}else{var C,x;for(x=3;x=Pd&&o<=Mw,u=l>=Pd&&l<=Mw;if(s&&(n=10*n+o-Pd),u&&(a=10*a+l-Pd),!s||!u){if(n!==a)return n-a;if(o!==l)return o-l}}return a-n};var L0=2e9;Ee.seedPseudoRandom=function(){L0=2e9};Ee.pseudoRandom=function(){var e=L0;return L0=(69069*L0+1)%4294967296,Math.abs(L0-e)<429496729?Ee.pseudoRandom():L0/4294967296};Ee.fillText=function(e,r,t){var n=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},a=Ee.extractOption(e,r,"htx","hovertext");if(Ee.isValidTextValue(a))return n(a);var i=Ee.extractOption(e,r,"tx","text");if(Ee.isValidTextValue(i))return n(i)};Ee.isValidTextValue=function(e){return e||e===0};Ee.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",n=0;n1&&(u=1):u=0,Ee.strTranslate(a-u*(t+o),i-u*(n+l))+Ee.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+n)+")":"")};Ee.setTransormAndDisplay=function(e,r){e.attr("transform",Ee.getTextTransform(r)),e.style("display",r.scale?null:"none")};Ee.ensureUniformFontSize=function(e,r){var t=Ee.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};Ee.join2=function(e,r,t){var n=e.length;return n>1?e.slice(0,-1).join(r)+t+e[n-1]:e.join(r)};Ee.bigFont=function(e){return Math.round(1.2*e)};var Aw=Ee.getFirefoxVersion(),WO=Aw!==null&&Aw<86;Ee.getPositionFromD3Event=function(){return WO?[c1.event.layerX,c1.event.layerY]:[c1.event.offsetX,c1.event.offsetY]}});var zw=ne(()=>{"use strict";var ZO=gr(),Pw={"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(n2 in Pw)Rw=n2.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),ZO.addStyleRule(Rw,Pw[n2]);var Rw,n2});var a2=ne((Pse,Nw)=>{Nw.exports=!0});var o2=ne((Rse,Fw)=>{"use strict";var XO=a2(),i2;typeof window.matchMedia=="function"?i2=!window.matchMedia("(hover: none)").matches:i2=XO;Fw.exports=i2});var Fd=ne((zse,l2)=>{"use strict";var E0=typeof Reflect=="object"?Reflect:null,Iw=E0&&typeof E0.apply=="function"?E0.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},zd;E0&&typeof E0.ownKeys=="function"?zd=E0.ownKeys:Object.getOwnPropertySymbols?zd=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:zd=function(r){return Object.getOwnPropertyNames(r)};function jO(e){console&&console.warn&&console.warn(e)}var Bw=Number.isNaN||function(r){return r!==r};function An(){An.init.call(this)}l2.exports=An;l2.exports.once=QO;An.EventEmitter=An;An.prototype._events=void 0;An.prototype._eventsCount=0;An.prototype._maxListeners=void 0;var Hw=10;function Nd(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(An,"defaultMaxListeners",{enumerable:!0,get:function(){return Hw},set:function(e){if(typeof e!="number"||e<0||Bw(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Hw=e}});An.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};An.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||Bw(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 Ow(e){return e._maxListeners===void 0?An.defaultMaxListeners:e._maxListeners}An.prototype.getMaxListeners=function(){return Ow(this)};An.prototype.emit=function(r){for(var t=[],n=1;n0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")Iw(s,this,t);else for(var u=s.length,f=Ww(s,u),n=0;n0&&o.length>a&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,jO(l)}return e}An.prototype.addListener=function(r,t){return Uw(this,r,t,!1)};An.prototype.on=An.prototype.addListener;An.prototype.prependListener=function(r,t){return Uw(this,r,t,!0)};function JO(){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 Yw(e,r,t){var n={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},a=JO.bind(n);return a.listener=t,n.wrapFn=a,a}An.prototype.once=function(r,t){return Nd(t),this.on(r,Yw(this,r,t)),this};An.prototype.prependOnceListener=function(r,t){return Nd(t),this.prependListener(r,Yw(this,r,t)),this};An.prototype.removeListener=function(r,t){var n,a,i,o,l;if(Nd(t),a=this._events,a===void 0)return this;if(n=a[r],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete a[r],a.removeListener&&this.emit("removeListener",r,n.listener||t));else if(typeof n!="function"){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){l=n[o].listener,i=o;break}if(i<0)return this;i===0?n.shift():$O(n,i),n.length===1&&(a[r]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};An.prototype.off=An.prototype.removeListener;An.prototype.removeAllListeners=function(r){var t,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[r]),this;if(arguments.length===0){var i=Object.keys(n),o;for(a=0;a=0;a--)this.removeListener(r,t[a]);return this};function Gw(e,r,t){var n=e._events;if(n===void 0)return[];var a=n[r];return a===void 0?[]:typeof a=="function"?t?[a.listener||a]:[a]:t?KO(a):Ww(a,a.length)}An.prototype.listeners=function(r){return Gw(this,r,!0)};An.prototype.rawListeners=function(r){return Gw(this,r,!1)};An.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):Vw.call(e,r)};An.prototype.listenerCount=Vw;function Vw(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}An.prototype.eventNames=function(){return this._eventsCount>0?zd(this._events):[]};function Ww(e,r){for(var t=new Array(r),n=0;n{"use strict";var s2=Fd().EventEmitter,rU={init:function(e){if(e._ev instanceof s2)return e;var r=new s2,t=new s2;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(n,a){r.emit(n,a),t.emit(n,a)},e},triggerHandler:function(e,r,t){var n,a=e._ev;if(!a)return;var i=a._events[r];if(!i)return;function o(s){if(s.listener){if(a.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(a,[t])}else return s.apply(a,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l{"use strict";var jw=gr(),tU=Kf().dfltConfig;function nU(e,r){for(var t=[],n,a=0;atU.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Js.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Js.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Js.undo=function(r){var t,n;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n{"use strict";Kw.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var z0=ne(sa=>{"use strict";var wo=dt(),h1=gr(),Hd=bo(),f2=A0(),aU=u2(),iU=i1(),oU=Kf().configAttributes,Qw=_o(),dl=h1.extendDeepAll,P0=h1.isPlainObject,lU=h1.isArrayOrTypedArray,Bd=h1.nestedProperty,sU=h1.valObjectMeta,c2="_isSubplotObj",Od="_isLinkedToArray",uU="_arrayAttrRegexps",r9="_deprecated",v2=[c2,Od,uU,r9];sa.IS_SUBPLOT_OBJ=c2;sa.IS_LINKED_TO_ARRAY=Od;sa.DEPRECATED=r9;sa.UNDERSCORE_ATTRS=v2;sa.get=function(){var e={};return wo.allTypes.forEach(function(r){e[r]=cU(r)}),{defs:{valObjects:sU,metaKeys:v2.concat(["description","role","editType","impliedEdits"]),editType:{traces:Qw.traces,layout:Qw.layout},impliedEdits:{}},traces:e,layout:vU(),frames:hU(),animation:R0(iU),config:R0(oU)}};sa.crawl=function(e,r,t,n){var a=t||0;n=n||"",Object.keys(e).forEach(function(i){var o=e[i];if(v2.indexOf(i)===-1){var l=(n?n+".":"")+i;r(o,i,e,a,l),!sa.isValObject(o)&&P0(o)&&i!=="impliedEdits"&&sa.crawl(o,r,a+1,l)}})};sa.isValObject=function(e){return e&&e.valType!==void 0};sa.findArrayAttributes=function(e){var r=[],t=[],n=[],a,i;function o(s,u,f,v){t=t.slice(0,v).concat([u]),n=n.slice(0,v).concat([s&&s._isLinkedToArray]);var h=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[v-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&l(a,0,"")}function l(s,u,f){var v=s[t[u]],h=f+t[u];if(u===t.length-1)lU(v)&&r.push(i+h);else if(n[u]){if(Array.isArray(v))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!Id(o))return!1;e=i[a][o]}else e=i[a]}else e=i}}return e}function Id(e){return e===Math.round(e)&&e>=0}function cU(e){var r,t;r=wo.modules[e]._module,t=r.basePlotModule;var n={};n.type=null;var a=dl({},Hd),i=dl({},r.attributes);sa.crawl(i,function(s,u,f,v,h){Bd(a,h).set(void 0),s===void 0&&Bd(i,h).set(void 0)}),dl(n,a),wo.traceIs(e,"noOpacity")&&delete n.opacity,wo.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),wo.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),r.selectPoints||delete n.selectedpoints,dl(n,i),t.attributes&&dl(n,t.attributes),n.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:R0(n)};if(r.layoutAttributes){var l={};dl(l,r.layoutAttributes),o.layoutAttributes=R0(l)}return r.animatable||sa.crawl(o,function(s){sa.isValObject(s)&&"anim"in s&&delete s.anim}),o}function vU(){var e={},r,t;dl(e,f2);for(r in wo.subplotsRegistry)if(t=wo.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var n=0;n{"use strict";var N0=gr(),yU=bo(),Uu="templateitemname",h2={name:{valType:"string",editType:"none"}};h2[Uu]={valType:"string",editType:"calc"};nc.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=h2.name,r[Uu]=h2[Uu],r};nc.traceTemplater=function(e){var r={},t,n;for(t in e)n=e[t],Array.isArray(n)&&n.length&&(r[t]=0);function a(i){t=N0.coerce(i,{},yU,"type");var o={type:t,_template:null};if(t in r){n=e[t];var l=r[t]%n.length;r[t]++,o._template=n[l]}return o}return{newTrace:a}};nc.newContainer=function(e,r,t){var n=e._template,a=n&&(n[r]||t&&n[t]);N0.isPlainObject(a)||(a=null);var i=e[r]={_template:a};return i};nc.arrayTemplater=function(e,r,t){var n=e._template,a=n&&n[a9(r)],i=n&&n[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(u){var f={name:u.name,_input:u},v=f[Uu]=u[Uu];if(!n9(v))return f._template=a,f;for(var h=0;h=n&&(t._input||{})._templateitemname;i&&(a=n);var o=r+"["+a+"]",l;function s(){l={},i&&(l[o]={},l[o][Uu]=i)}s();function u(d,m){l[d]=m}function f(d,m){i?N0.nestedProperty(l[o],d).set(m):l[o+"."+d]=m}function v(){var d=l;return s(),d}function h(d,m){d&&f(d,m);var p=v();for(var y in p)N0.nestedProperty(e,y).set(p[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:v,applyUpdate:h}}});var Pa=ne((Ose,i9)=>{"use strict";var d1=x0().counter;i9.exports={idRegex:{x:d1("x","( domain)?"),y:d1("y","( domain)?")},attrRegex:d1("[xy]axis"),xAxisMatch:d1("xaxis"),yAxisMatch:d1("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 ya=ne(Di=>{"use strict";var bU=dt(),d2=Pa();Di.id2name=function(r){if(!(typeof r!="string"||!r.match(d2.AX_ID_PATTERN))){var t=r.split(" ")[0].substr(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Di.name2id=function(r){if(r.match(d2.AX_NAME_PATTERN)){var t=r.substr(5);return t==="1"&&(t=""),r.charAt(0)+t}};Di.cleanId=function(r,t,n){var a=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(d2.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(a&&!n)){var i=r.split(" ")[0].substr(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(a&&n?" domain":"")}};Di.list=function(e,r,t){var n=e._fullLayout;if(!n)return[];var a=Di.listIds(e,r),i=new Array(a.length),o;for(o=0;on?1:-1:+(e.substr(1)||1)-+(r.substr(1)||1)};Di.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function o9(e,r){if(r&&r.length){for(var t=0;t{"use strict";function _U(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function xU(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}l9.exports={clearOutlineControllers:_U,clearOutline:xU}});var Ud=ne((Gse,s9)=>{"use strict";s9.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var p1=ne(Gd=>{"use strict";var Yd=dt(),Vse=Pa().SUBPLOT_PATTERN;Gd.getSubplotCalcData=function(e,r,t){var n=Yd.subplotsRegistry[r];if(!n)return[];for(var a=n.attr,i=[],o=0;o{"use strict";var wU=dt(),F0=gr();ac.manageCommandObserver=function(e,r,t,n){var a={},i=!0;r&&r._commandObserver&&(a=r._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var o=ac.hasSimpleAPICommandBindings(e,t,a.lookupTable);if(r&&r._commandObserver){if(o)return a;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,a}if(o){u9(e,o,a.cache),a.check=function(){if(i){var f=u9(e,o,a.cache);return f.changed&&n&&a.lookupTable[f.value]!==void 0&&(a.disable(),Promise.resolve(n({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:a.lookupTable[f.value]})).then(a.enable,a.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+a;F0.isPlainObject(i)?p2(i,r,o,n+1):r(o,a,i)}})}});var ua=ne((Xse,k9)=>{"use strict";var b9=kt(),AU=m0().timeFormatLocale,TU=wy().formatLocale,g1=Bt(),kU=My(),Zt=dt(),_9=z0(),SU=bn(),Xr=gr(),x9=zt(),h9=En().BADNUM,Ei=ya(),CU=Yu().clearOutline,LU=Ud(),g2=i1(),qU=u2(),DU=p1().getModuleCalcData,d9=Xr.relinkPrivateKeys,ic=Xr._,zr=k9.exports={};Xr.extendFlat(zr,Zt);zr.attributes=bo();zr.attributes.type.values=zr.allTypes;zr.fontAttrs=$a();zr.layoutAttributes=A0();var Wd=v9();zr.executeAPICommand=Wd.executeAPICommand;zr.computeAPICommandBindings=Wd.computeAPICommandBindings;zr.manageCommandObserver=Wd.manageCommandObserver;zr.hasSimpleAPICommandBindings=Wd.hasSimpleAPICommandBindings;zr.redrawText=function(e){return e=Xr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Zt.getComponentMethod("annotations","draw")(e),Zt.getComponentMethod("legend","draw")(e),Zt.getComponentMethod("colorbar","draw")(e),r(zr.previousPromises(e)))},300)})};zr.resize=function(e){e=Xr.getGraphDiv(e);var r,t=new Promise(function(n,a){(!e||Xr.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Xr.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Zt.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return r&&r(t),t};zr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};zr.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=Xr.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:x9.defaultLine,"pointer-events":"all"}).each(function(){var u=b9.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),n=t.node(),a={y:r._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=r.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=r._paper.attr("width")-7),t.attr(a);var i=t.select(".js-link-to-tool"),o=t.select(".js-link-spacer"),l=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&EU(e,i),o.text(i.text()&&l.text()?" - ":"")}};function EU(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){zr.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),a=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+a})}}zr.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=b9.select(e).append("div").attr("id","hiddenform").style("display","none"),n=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),a=n.append("input").attr({type:"text",name:"data"});return a.node().value=zr.graphJson(e,!1,"keepdata"),n.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var PU=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],RU=["year","month","dayMonth","dayMonthYear"];zr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var a=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},v;e._transitionData||zr.createTransitionData(e),a._dfltTitle={plot:ic(e,"Click to enter Plot title"),subtitle:ic(e,"Click to enter Plot subtitle"),x:ic(e,"Click to enter X axis title"),y:ic(e,"Click to enter Y axis title"),colorbar:ic(e,"Click to enter Colorscale title"),annotation:ic(e,"new text")},a._traceWord=ic(e,"trace");var h=p9(e,PU);if(a._mapboxAccessToken=f.mapboxAccessToken,n._initialAutoSizeIsDone){var d=n.width,m=n.height;zr.supplyLayoutGlobalDefaults(i,a,h),i.width||(a.width=d),i.height||(a.height=m),zr.sanitizeMargins(a)}else{zr.supplyLayoutGlobalDefaults(i,a,h);var p=!i.width||!i.height,y=a.autosize,_=f.autosizable,C=p&&(y||_);C?zr.plotAutoSize(e,i,a):p&&zr.sanitizeMargins(a),!y&&p&&(i.width=a.width,i.height=a.height)}a._d3locale=FU(h,a.separators),a._extraFormat=p9(e,RU),a._initialAutoSizeIsDone=!0,a._dataLength=s.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var x=a._subplots=NU(),b=a._splomAxes={x:{},y:{}},A=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=zU(o,s),zr.supplyDataDefaults(s,l,i,a);var k=Object.keys(b.x),M=Object.keys(b.y);if(k.length>1&&M.length>1){for(Zt.getComponentMethod("grid","sizeDefaults")(i,a),v=0;v15&&M.length>15&&a.shapes.length===0&&a.images.length===0,zr.linkSubplots(l,a,o,n),zr.cleanPlot(l,a,o,n);var W=!!(n._has&&n._has("cartesian")),B=!!(a._has&&a._has("cartesian")),X=W,V=B;X&&!V?n._bgLayer.remove():V&&!X&&(a._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&CU({_fullLayout:n}),IU(l,a),d9(a,n),Zt.getComponentMethod("colorscale","crossTraceDefaults")(l,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var re=a._tracePreGUI,te={},K;for(K in re)te[K]="old";for(v=0;v0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var v=zr.layoutAttributes.width.min,h=zr.layoutAttributes.height.min;o1,m=!t.height&&Math.abs(n.height-l)>1;(m||d)&&(d&&(n.width=o),m&&(n.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),zr.sanitizeMargins(n)};zr.supplyLayoutModuleDefaults=function(e,r,t,n){var a=Zt.componentsRegistry,i=r._basePlotModules,o,l,s,u=Zt.subplotsRegistry.cartesian;for(o in a)s=a[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Zt.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(Xr.subplotSort);for(l=0;l1&&(t.l/=y,t.r/=y)}if(h){var _=(t.t+t.b)/h;_>1&&(t.t/=_,t.b/=_)}var C=t.xl!==void 0?t.xl:t.x,x=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:C,size:t.l+p},r:{val:x,size:t.r+p},b:{val:A,size:t.b+p},t:{val:b,size:t.t+p}},m[r]=1}if(!n._replotting)return zr.doAutoMargin(e)}};function BU(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Ei.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}zr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,n=r.height;r._size||(r._size={}),w9(r);var a=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=Xr.extendFlat({},a),s=i.l,u=i.r,f=i.t,v=i.b,h=r._pushmargin,d=r._pushmarginIds,m=r.minreducedwidth,p=r.minreducedheight;if(i.autoexpand!==!1){for(var y in h)d[y]||delete h[y];var _=e._fullLayout._reservedMargin;for(var C in _)for(var x in _[C]){var b=_[C][x];o[x]=Math.max(o[x],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 o){var k=0;for(var M in h)M!=="base"&&g1(h[M][A].size)&&(k=h[M][A].size>k?h[M][A].size:k);var D=Math.max(0,i[A]-k);o[A]=Math.max(0,o[A]-D)}for(var z in h){var F=h[z].l||{},H=h[z].b||{},W=F.val,B=F.size,X=H.val,V=H.size,re=t-o.r-o.l,te=n-o.t-o.b;for(var K in h){if(g1(B)&&h[K].r){var ee=h[K].r.val,fe=h[K].r.size;if(ee>W){var he=(B*ee+(fe-re)*W)/(ee-W),qe=(fe*(1-W)+(B-re)*(1-ee))/(ee-W);he+qe>s+u&&(s=he,u=qe)}}if(g1(V)&&h[K].t){var ze=h[K].t.val,Ne=h[K].t.size;if(ze>X){var Ze=(V*ze+(Ne-te)*X)/(ze-X),Ce=(Ne*(1-X)+(V-te)*(1-ze))/(ze-X);Ze+Ce>v+f&&(v=Ze,f=Ce)}}}}}var Je=Xr.constrain(t-i.l-i.r,M9,m),ue=Xr.constrain(n-i.t-i.b,A9,p),ye=Math.max(0,t-Je),Me=Math.max(0,n-ue);if(ye){var pe=(s+u)/ye;pe>1&&(s/=pe,u/=pe)}if(Me){var U=(v+f)/Me;U>1&&(v/=U,f/=U)}if(a.l=Math.round(s)+o.l,a.r=Math.round(u)+o.r,a.t=Math.round(f)+o.t,a.b=Math.round(v)+o.b,a.p=Math.round(i.pad),a.w=Math.round(t)-a.l-a.r,a.h=Math.round(n)-a.t-a.b,!r._replotting&&(zr.didMarginChange(l,a)||BU(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Q=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};zr.graphJson=function(e,r,t,n,a,i){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&zr.supplyDefaults(e);var o=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(Xr.isPlainObject(h)){var m={},p;return Object.keys(h).sort().forEach(function(x){if(["_","["].indexOf(x.charAt(0))===-1){if(typeof h[x]=="function"){d&&(m[x]="_function");return}if(t==="keepdata"){if(x.substr(x.length-3)==="src")return}else if(t==="keepstream"){if(p=h[x+"src"],typeof p=="string"&&p.indexOf(":")>0&&!Xr.isPlainObject(h.stream))return}else if(t!=="keepall"&&(p=h[x+"src"],typeof p=="string"&&p.indexOf(":")>0))return;m[x]=u(h[x],d)}}),m}var y=Array.isArray(h),_=Xr.isTypedArray(h);if((y||_)&&h.dtype&&h.shape){var C=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:Xr.isArrayBuffer(C)?kU.encode(C):C},d)}return y?h.map(function(x){return u(x,d)}):_?Xr.simpleMap(h,Xr.identity):Xr.isJSDate(h)?Xr.ms2DateTimeLocal(+h):h}var f={data:(o||[]).map(function(h){var d=u(h);return r&&delete d.fit,d})};if(!r&&(f.layout=u(l),a)){var v=l._size;f.layout.computed={margin:{b:v.b,l:v.l,r:v.r,t:v.t}}}return s&&(f.frames=u(s)),i&&(f.config=u(e._context,!0)),n==="object"?f:JSON.stringify(f)};zr.modifyFrames=function(e,r){var t,n,a,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Zt.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function m(){return h++,function(){d++,!n&&d===h&&l(v)}}t.runFn(m),setTimeout(m())})}function l(v){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Zt.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(v)}function s(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var u=[zr.previousPromises,s,t.prepareFn,zr.rehover,zr.reselect,o],f=Xr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}zr.doCalcdata=function(e,r){var t=Ei.list(e),n=e._fullData,a=e._fullLayout,i,o,l,s,u=new Array(n.length),f=(e.calcdata||[]).slice();for(e.calcdata=u,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},l=0;l=0;s--)if(A[s].enabled){i._indexToPoints=A[s]._indexToPoints;break}o&&o.calc&&(b=o.calc(e,i))}(!Array.isArray(b)||!b[0])&&(b=[{x:h9,y:h9}]),b[0].t||(b[0].t={}),b[0].trace=i,u[C]=b}}for(m9(t,n,a),l=0;l{"use strict";oc.xmlns="http://www.w3.org/2000/xmlns/";oc.svg="http://www.w3.org/2000/svg";oc.xlink="http://www.w3.org/1999/xlink";oc.svgAttrs={xmlns:oc.svg,"xmlns:xlink":oc.xlink}});var Ka=ne((Jse,S9)=>{"use strict";S9.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var ci=ne(Mo=>{"use strict";var Qn=kt(),$s=gr(),GU=$s.strTranslate,m2=lc(),VU=Ka().LINE_SPACING,WU=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Mo.convertToTspans=function(e,r,t){var n=e.text(),a=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&n.match(WU),i=Qn.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=iY(e.node(),n);s&&e.style("pointer-events","all"),Mo.positionText(e),t&&t.call(e)}return a?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u};JU(a[2],f,function(v,h,d){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var m=v&&v.select("svg");if(!m||!m.node()){l(),s();return}var p=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});p.node().appendChild(m.node()),h&&h.node()&&m.node().insertBefore(h.node().cloneNode(!0),m.node().firstChild);var y=d.width,_=d.height;m.attr({class:o,height:_,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var C=e.node().style.fill||"black",x=m.select("g");x.attr({fill:C,stroke:C});var b=x.node().getBoundingClientRect(),A=b.width,k=b.height;(A>y||k>_)&&(m.style("overflow","hidden"),b=m.node().getBoundingClientRect(),A=b.width,k=b.height);var M=+e.attr("x"),D=+e.attr("y"),z=u||e.node().getBoundingClientRect().height,F=-z/4;if(o[0]==="y")p.attr({transform:"rotate("+[-90,M,D]+")"+GU(-A/2,F-k/2)});else if(o[0]==="l")D=F-k/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)M=0,D=F;else{var H=e.attr("text-anchor");M=M-A*(H==="middle"?.5:H==="end"?1:0),D=D+F-k/2}m.attr({x:M,y:D}),t&&t.call(e,p),s(p)})})):l(),e};var ZU=/(<|<|<)/g,XU=/(>|>|>)/g;function jU(e){return e.replace(ZU,"\\lt ").replace(XU,"\\gt ")}var C9=[["$","$"],["\\(","\\)"]];function JU(e,r,t){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){$s.warn("No MathJax version:",MathJax.version);return}var a,i,o,l,s=function(){return i=$s.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:C9},displayAlign:"left"})},u=function(){i=$s.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=C9},f=function(){if(a=MathJax.Hub.config.menuSettings.renderer,a!=="SVG")return MathJax.Hub.setRenderer("SVG")},v=function(){a=MathJax.config.startup.output,a!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var C="math-output-"+$s.randstr({},64);l=Qn.select("body").append("div").attr({id:C}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(jU(e));var x=l.node();return n===2?MathJax.Hub.Typeset(x):MathJax.typeset([x])},d=function(){var C=l.select(n===2?".MathJax_SVG":".MathJax"),x=!C.empty()&&l.select("svg").node();if(!x)$s.log("There was an error in the tex syntax.",e),t();else{var b=x.getBoundingClientRect(),A;n===2?A=Qn.select("body").select("#MathJax_SVG_glyphs"):A=C.select("defs"),t(C,A,b)}l.remove()},m=function(){if(a!=="SVG")return MathJax.Hub.setRenderer(a)},p=function(){a!=="svg"&&(MathJax.config.startup.output=a)},y=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(i)},_=function(){MathJax.config=i};n===2?MathJax.Hub.Queue(s,f,h,d,m,y):n===3&&(u(),v(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),p(),_()}))}var E9={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},$U={sub:"0.3em",sup:"-0.6em"},KU={sub:"-0.21em",sup:"0.42em"},L9="\u200B",q9=["http:","https:","mailto:","",void 0,":"],P9=Mo.NEWLINES=/(\r\n?|\n)/g,b2=/(<[^<>]*>)/,_2=/<(\/?)([^ >]*)(\s+(.*))?>/i,QU=//i;Mo.BR_TAG_ALL=//gi;var R9=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,z9=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,N9=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,eY=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function sc(e,r){if(!e)return null;var t=e.match(r),n=t&&(t[3]||t[4]);return n&&Zd(n)}var rY=/(^|;)\s*color:/;Mo.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,n=r.allowedTags!==void 0?r.allowedTags:["br"],a="...",i=a.length,o=e.split(b2),l=[],s="",u=0,f=0;fi?l.push(v.substr(0,p-i)+a):l.push(v.substr(0,p));break}s=""}}return l.join("")};var tY={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},nY=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Zd(e){return e.replace(nY,function(r,t){var n;return t.charAt(0)==="#"?n=aY(t.charAt(1)==="x"?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):n=tY[t],n||r})}Mo.convertEntities=Zd;function aY(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 iY(e,r){r=r.replace(P9," ");var t=!1,n=[],a,i=-1;function o(){i++;var k=document.createElementNS(m2.svg,"tspan");Qn.select(k).attr({class:"line",dy:i*VU+"em"}),e.appendChild(k),a=k;var M=n;if(n=[{node:k}],M.length>1)for(var D=1;D.",r);return}var M=n.pop();k!==M.type&&$s.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),a=n[n.length-1].node}var f=QU.test(r);f?o():(a=e,n=[{node:e}]);for(var v=r.split(b2),h=0;h{"use strict";var oY=kt(),jd=Jl(),y1=Bt(),Xd=gr(),I9=zt(),lY=Jf().isValid;function sY(e,r,t){var n=r?Xd.nestedProperty(e,r).get()||{}:e,a=n[t||"color"];a&&a._inputArray&&(a=a._inputArray);var i=!1;if(Xd.isArrayOrTypedArray(a)){for(var o=0;o=0;n--,a++){var i=e[n];t[a]=[1-i[0],i[1]]}return t}function G9(e,r){r=r||{};for(var t=e.domain,n=e.range,a=n.length,i=new Array(a),o=0;o{"use strict";var W9=Oy(),fY=W9.FORMAT_LINK,cY=W9.DATE_FORMAT_LINK;function vY(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?x2:Z9)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function x2(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+fY+"."].join(" ")}function Z9(e,r){return x2(e,r)+[" And for dates see: "+cY+".","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(" ")}X9.exports={axisHoverFormat:vY,descriptionOnlyNumbers:x2,descriptionWithDates:Z9}});var pl=ne((eue,c8)=>{"use strict";var j9=$a(),I0=cl(),f8=Kl().dash,A2=la().extendFlat,J9=bn().templatedArray,$9=w2().descriptionWithDates,hY=En().ONEDAY,rs=Pa(),dY=rs.HOUR_PATTERN,pY=rs.WEEKDAY_PATTERN,M2={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},gY=A2({},M2,{values:M2.values.slice().concat(["sync"])});function K9(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var Q9={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},e8={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},r8={valType:"data_array",editType:"ticks"},t8={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function n8(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function a8(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var i8={valType:"color",dflt:I0.defaultLine,editType:"ticks"},o8={valType:"color",dflt:I0.lightLine,editType:"ticks"};function l8(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var s8=A2({},f8,{editType:"ticks"}),u8={valType:"boolean",editType:"ticks"};c8.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:I0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:j9({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[rs.idRegex.x.toString(),rs.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[rs.idRegex.x.toString(),rs.idRegex.y.toString()],editType:"calc"},rangebreaks:J9("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:[pY,dY,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:hY},editType:"calc"}),tickmode:gY,nticks:K9(),tick0:Q9,dtick:e8,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:r8,ticktext:{valType:"data_array",editType:"ticks"},ticks:t8,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:n8(),tickwidth:a8(),tickcolor:i8,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:A2({},f8,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:j9({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:$9("tick label")},tickformatstops:J9("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:$9("hover text")},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:I0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:u8,gridcolor:o8,gridwidth:l8(),griddash:s8,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:I0.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:I0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",rs.idRegex.x.toString(),rs.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",rs.idRegex.x.toString(),rs.idRegex.y.toString()],editType:"plot"},minor:{tickmode:M2,nticks:K9("minor"),tick0:Q9,dtick:e8,tickvals:r8,ticks:t8,ticklen:n8("minor"),tickwidth:a8("minor"),tickcolor:i8,gridcolor:o8,gridwidth:l8("minor"),griddash:s8,showgrid:u8,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 Jd=ne((rue,d8)=>{"use strict";var Tn=pl(),v8=$a(),h8=la().extendFlat,mY=_o().overrideAll;d8.exports=mY({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:Tn.linecolor,outlinewidth:Tn.linewidth,bordercolor:Tn.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Tn.minor.tickmode,nticks:Tn.nticks,tick0:Tn.tick0,dtick:Tn.dtick,tickvals:Tn.tickvals,ticktext:Tn.ticktext,ticks:h8({},Tn.ticks,{dflt:""}),ticklabeloverflow:h8({},Tn.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:Tn.ticklen,tickwidth:Tn.tickwidth,tickcolor:Tn.tickcolor,ticklabelstep:Tn.ticklabelstep,showticklabels:Tn.showticklabels,labelalias:Tn.labelalias,tickfont:v8({}),tickangle:Tn.tickangle,tickformat:Tn.tickformat,tickformatstops:Tn.tickformatstops,tickprefix:Tn.tickprefix,showtickprefix:Tn.showtickprefix,ticksuffix:Tn.ticksuffix,showticksuffix:Tn.showticksuffix,separatethousands:Tn.separatethousands,exponentformat:Tn.exponentformat,minexponent:Tn.minexponent,showexponent:Tn.showexponent,title:{text:{valType:"string"},font:v8({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var H0=ne((nue,g8)=>{"use strict";var yY=Jd(),bY=x0().counter,_Y=Sd(),p8=Jf().scales,tue=_Y(p8);function $d(e){return"`"+e+"`"}g8.exports=function(r,t){r=r||"",t=t||{};var n=t.cLetter||"c",a="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:n==="z",l=typeof t.colorscaleDflt=="string"?p8[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,v;"colorAttr"in t?(f=t.colorAttr,v=t.colorAttr):(f={z:"z",c:"color"}[n],v="in "+$d(u+f));var h=a?" Has an effect only if "+v+" is set to a numerical array.":"",d=n+"auto",m=n+"min",p=n+"max",y=n+"mid",_=$d(u+d),C=$d(u+m),x=$d(u+p),b=C+" and "+x,A={};A[m]=A[p]=void 0;var k={};k[d]=!1;var M={};return f==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:A},M[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:A},M.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=yY),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:bY("coloraxis"),dflt:null,editType:"calc"}),M}});var k2=ne((aue,m8)=>{"use strict";var xY=la().extendFlat,wY=H0(),T2=Jf().scales;m8.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:T2.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:T2.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:T2.RdBu,editType:"calc"}},coloraxis:xY({_isSubplotObj:!0,editType:"calc"},wY("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var S2=ne((iue,y8)=>{"use strict";var MY=gr();y8.exports=function(r){return MY.isPlainObject(r.colorbar)}});var q2=ne(L2=>{"use strict";var C2=Bt(),b8=gr(),_8=En(),AY=_8.ONEDAY,TY=_8.ONEWEEK;L2.dtick=function(e,r){var t=r==="log",n=r==="date",a=r==="category",i=n?AY:1;if(!e)return i;if(C2(e))return e=Number(e),e<=0?i:a?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||t))return i;var o=e.charAt(0),l=e.substr(1);return l=C2(l)?Number(l):0,l<=0||!(n&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};L2.tick0=function(e,r,t,n){if(r==="date")return b8.cleanDate(e,b8.dateTick0(t,n%TY===0?1:0));if(!(n==="D1"||n==="D2"))return C2(e)?Number(e):0}});var D2=ne((lue,w8)=>{"use strict";var x8=q2(),kY=gr().isArrayOrTypedArray,SY=ji().isTypedArraySpec,CY=ji().decodeTypedArraySpec;w8.exports=function(r,t,n,a,i){i||(i={});var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,u=o?"minor.":"";function f(C){var x=l[C];return SY(x)&&(x=CY(x)),x!==void 0?x:(s._template||{})[C]}var v=f("tick0"),h=f("dtick"),d=f("tickvals"),m=kY(d)?"array":h?"linear":"auto",p=n(u+"tickmode",m);if(p==="auto"||p==="sync")n(u+"nticks");else if(p==="linear"){var y=s.dtick=x8.dtick(h,a);s.tick0=x8.tick0(v,a,t.calendar,y)}else if(a!=="multicategory"){var _=n(u+"tickvals");_===void 0?s.tickmode="auto":o||n("ticktext")}}});var P2=ne((sue,A8)=>{"use strict";var E2=gr(),M8=pl();A8.exports=function(r,t,n,a){var i=a.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?M8.minor:M8,u=i?"minor.":"",f=E2.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),v=E2.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),h=E2.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=n(u+"ticks",!i&&a.outerTicks||f||v||h?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var R2=ne((uue,T8)=>{"use strict";T8.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],n=t.filter(function(i){return r[i]!==void 0}),a=function(i){return r[i]===r[n[0]]};if(n.every(a)||n.length===1)return r[n[0]]}});var gl=ne((fue,k8)=>{"use strict";var Kd=gr(),LY=bn();k8.exports=function(r,t,n){var a=n.name,i=n.inclusionAttr||"visible",o=t[a],l=Kd.isArrayOrTypedArray(r[a])?r[a]:[],s=t[a]=[],u=LY.arrayTemplater(t,a,i),f,v;for(f=0;f{"use strict";var z2=gr(),qY=zt().contrast,S8=pl(),DY=R2(),EY=gl();C8.exports=function(r,t,n,a,i){i||(i={});var o=n("labelalias");z2.isPlainObject(o)||delete t.labelalias;var l=DY(r),s=n("showticklabels");if(s){i.noTicklabelshift||n("ticklabelshift"),i.noTicklabelstandoff||n("ticklabelstandoff");var u=i.font||{},f=t.color,v=t.ticklabelposition||"",h=v.indexOf("inside")!==-1?qY(i.bgColor):f&&f!==S8.color.dflt?f:u.color;if(z2.coerceFont(n,"tickfont",u,{overrideDflt:{color:h}}),!i.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&n("ticklabelstep"),!i.noAng){var d=n("tickangle");!i.noAutotickangles&&d==="auto"&&n("autotickangles")}if(a!=="category"){var m=n("tickformat");EY(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:PY}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!m&&a!=="date"&&(n("showexponent",l),n("exponentformat"),n("minexponent"),n("separatethousands"))}}};function PY(e,r){function t(a,i){return z2.coerce(e,r,S8.tickformatstops,a,i)}var n=t("enabled");n&&(t("dtickrange"),t("value"))}});var F2=ne((vue,L8)=>{"use strict";var RY=R2();L8.exports=function(r,t,n,a,i){i||(i={});var o=i.tickSuffixDflt,l=RY(r),s=n("tickprefix");s&&n("showtickprefix",l);var u=n("ticksuffix",o);u&&n("showticksuffix",l)}});var I2=ne((hue,q8)=>{"use strict";var Gu=gr(),zY=bn(),NY=D2(),FY=P2(),IY=N2(),HY=F2(),BY=Jd();q8.exports=function(r,t,n){var a=zY.newContainer(t,"colorbar"),i=r.colorbar||{};function o(H,W){return Gu.coerce(i,a,BY,H,W)}var l=n.margin||{t:0,b:0,l:0,r:0},s=n.width-l.l-l.r,u=n.height-l.t-l.b,f=o("orientation"),v=f==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(v?s:u):30);var d=o("lenmode");o("len",d==="fraction"?1:v?u:s);var m=o("yref"),p=o("xref"),y=m==="paper",_=p==="paper",C,x,b,A="left";v?(b="middle",A=_?"left":"right",C=_?1.02:1,x=.5):(b=y?"bottom":"top",A="center",C=.5,x=y?1.02:1),Gu.coerce(i,a,{x:{valType:"number",min:_?-2:0,max:_?3:1,dflt:C}},"x"),Gu.coerce(i,a,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:x}},"y"),o("xanchor",A),o("xpad"),o("yanchor",b),o("ypad"),Gu.noneOrAll(i,a,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var k=Gu.coerce(i,a,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),NY(i,a,o,"linear");var M=n.font,D={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};k.indexOf("inside")!==-1&&(D.bgColor="black"),HY(i,a,o,"linear",D),IY(i,a,o,"linear",D),FY(i,a,o,"linear",D),o("title.text",n._dfltTitle.colorbar);var z=a.showticklabels?a.tickfont:M,F=Gu.extendFlat({},M,{family:z.family,size:Gu.bigFont(z.size)});Gu.coerceFont(o,"title.font",F),o("title.side",v?"top":"right")}});var B0=ne((due,P8)=>{"use strict";var D8=Bt(),B2=gr(),OY=S2(),UY=I2(),E8=Jf().isValid,YY=dt().traceIs;function H2(e,r){var t=r.slice(0,r.length-1);return r?B2.nestedProperty(e,t).get()||{}:e}P8.exports=function e(r,t,n,a,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=H2(r,o),f=H2(t,o),v=H2(t._template||{},o)||{},h=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,n,a,i)};if(s){var d=n._colorAxes||{},m=a(o+"coloraxis");if(m){var p=YY(t,"contour")&&B2.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[m];y?(y[2].push(h),y[0]!==p&&(y[0]=!1,B2.warn(["Ignoring coloraxis:",m,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[m]=[p,t,[h]];return}}var _=u[l+"min"],C=u[l+"max"],x=D8(_)&&D8(C)&&_{"use strict";var R8=gr(),GY=bn(),z8=k2(),VY=B0();N8.exports=function(r,t){function n(v,h){return R8.coerce(r,t,z8,v,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var a=t._colorAxes,i,o;function l(v,h){return R8.coerce(i,o,z8.coloraxis,v,h)}for(var s in a){var u=a[s];if(u[0])i=r[s]||{},o=GY.newContainer(t,s,"coloraxis"),o._name=s,VY(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var WY=gr(),ZY=es().hasColorscale,XY=es().extractOpts;I8.exports=function(r,t){function n(f,v){var h=f["_"+v];h!==void 0&&(f[v]=h)}function a(f,v){var h=v.container?WY.nestedProperty(f,v.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=XY(h),m=d.auto;(m||d.min===void 0)&&n(h,v.min),(m||d.max===void 0)&&n(h,v.max),d.autocolorscale&&n(h,"colorscale")}}for(var i=0;i{"use strict";var B8=Bt(),O2=gr(),jY=es().extractOpts;O8.exports=function(r,t,n){var a=r._fullLayout,i=n.vals,o=n.containerStr,l=o?O2.nestedProperty(t,o).get():t,s=jY(l),u=s.auto!==!1,f=s.min,v=s.max,h=s.mid,d=function(){return O2.aggNums(Math.min,null,i)},m=function(){return O2.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&B8(f)?f=Math.min(f,d()):f=d()),v===void 0?v=m():u&&(l._colorAx&&B8(v)?v=Math.max(v,m()):v=m()),u&&h!==void 0&&(v-h>h-f?f=h-(v-h):v-h=0?p=a.colorscale.sequential:p=a.colorscale.sequentialminus,s._sync("colorscale",p)}}});var rp=ne((yue,U8)=>{"use strict";var ep=Jf(),O0=es();U8.exports={moduleType:"component",name:"colorscale",attributes:H0(),layoutAttributes:k2(),supplyLayoutDefaults:F8(),handleDefaults:B0(),crossTraceDefaults:H8(),calc:Qd(),scales:ep.scales,defaultScale:ep.defaultScale,getScale:ep.get,isValidScale:ep.isValid,hasColorscale:O0.hasColorscale,extractOpts:O0.extractOpts,extractScale:O0.extractScale,flipScale:O0.flipScale,makeColorScaleFunc:O0.makeColorScaleFunc,makeColorScaleFuncFromTrace:O0.makeColorScaleFuncFromTrace}});var Qa=ne((bue,G8)=>{"use strict";var Y8=gr(),JY=ji().isTypedArraySpec;G8.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 Y8.isPlainObject(r)&&(Y8.isArrayOrTypedArray(r.size)||JY(r.size))}}});var W8=ne((_ue,V8)=>{"use strict";var $Y=Bt();V8.exports=function(r,t){t||(t=2);var n=r.marker,a=n.sizeref||1,i=n.sizemin||0,o=n.sizemode==="area"?function(l){return Math.sqrt(l/a)}:function(l){return l/a};return function(l){var s=o(l/t);return $Y(s)&&s>0?Math.max(s,i):0}}});var Vu=ne(Ba=>{"use strict";var Z8=gr();Ba.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Ba.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],n=e.yaxes||[],a=0;a=0&&t.index{J8.exports=tG;var U2={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},rG=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function tG(e){var r=[];return e.replace(rG,function(t,n,a){var i=n.toLowerCase();for(a=aG(a),i=="m"&&a.length>2&&(r.push([n].concat(a.splice(0,2))),i="l",n=n=="m"?"l":"L");;){if(a.length==U2[i])return a.unshift(n),r.push(a);if(a.length{"use strict";var iG=Y2(),Cr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},gt="M0,0Z",$8=Math.sqrt(2),Wu=Math.sqrt(3),G2=Math.PI,V2=Math.cos,W2=Math.sin;tM.exports={circle:{n:0,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e,2),a="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return t?yt(r,t,a):a}},square:{n:1,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e,2);return yt(r,t,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*1.3,2);return yt(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*.4,2),a=Cr(e*1.2,2);return yt(r,t,"M"+a+","+n+"H"+n+"V"+a+"H-"+n+"V"+n+"H-"+a+"V-"+n+"H-"+n+"V-"+a+"H"+n+"V-"+n+"H"+a+"Z")}},x:{n:4,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*.8/$8,2),a="l"+n+","+n,i="l"+n+",-"+n,o="l-"+n+",-"+n,l="l-"+n+","+n;return yt(r,t,"M0,"+n+a+i+o+i+o+l+o+l+a+l+a+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*2/Wu,2),a=Cr(e/2,2),i=Cr(e,2);return yt(r,t,"M-"+n+","+a+"H"+n+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*2/Wu,2),a=Cr(e/2,2),i=Cr(e,2);return yt(r,t,"M-"+n+",-"+a+"H"+n+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*2/Wu,2),a=Cr(e/2,2),i=Cr(e,2);return yt(r,t,"M"+a+",-"+n+"V"+n+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*2/Wu,2),a=Cr(e/2,2),i=Cr(e,2);return yt(r,t,"M-"+a+",-"+n+"V"+n+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*.6,2),a=Cr(e*1.2,2);return yt(r,t,"M-"+a+",-"+n+"H"+n+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*.6,2),a=Cr(e*1.2,2);return yt(r,t,"M"+n+",-"+a+"V"+n+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*.6,2),a=Cr(e*1.2,2);return yt(r,t,"M"+a+","+n+"H-"+n+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*.6,2),a=Cr(e*1.2,2);return yt(r,t,"M-"+n+","+a+"V-"+n+"H"+a+"Z")}},pentagon:{n:13,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*.951,2),a=Cr(e*.588,2),i=Cr(-e,2),o=Cr(e*-.309,2),l=Cr(e*.809,2);return yt(r,t,"M"+n+","+o+"L"+a+","+l+"H-"+a+"L-"+n+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e,2),a=Cr(e/2,2),i=Cr(e*Wu/2,2);return yt(r,t,"M"+i+",-"+a+"V"+a+"L0,"+n+"L-"+i+","+a+"V-"+a+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e,2),a=Cr(e/2,2),i=Cr(e*Wu/2,2);return yt(r,t,"M-"+a+","+i+"H"+a+"L"+n+",0L"+a+",-"+i+"H-"+a+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*.924,2),a=Cr(e*.383,2);return yt(r,t,"M-"+a+",-"+n+"H"+a+"L"+n+",-"+a+"V"+a+"L"+a+","+n+"H-"+a+"L-"+n+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,r,t){if(mt(r))return gt;var n=e*1.4,a=Cr(n*.225,2),i=Cr(n*.951,2),o=Cr(n*.363,2),l=Cr(n*.588,2),s=Cr(-n,2),u=Cr(n*-.309,2),f=Cr(n*.118,2),v=Cr(n*.809,2),h=Cr(n*.382,2);return yt(r,t,"M"+a+","+u+"H"+i+"L"+o+","+f+"L"+l+","+v+"L0,"+h+"L-"+l+","+v+"L-"+o+","+f+"L-"+i+","+u+"H-"+a+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*.66,2),a=Cr(e*.38,2),i=Cr(e*.76,2);return yt(r,t,"M-"+i+",0l-"+a+",-"+n+"h"+i+"l"+a+",-"+n+"l"+a+","+n+"h"+i+"l-"+a+","+n+"l"+a+","+n+"h-"+i+"l-"+a+","+n+"l-"+a+",-"+n+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*Wu*.8,2),a=Cr(e*.8,2),i=Cr(e*1.6,2),o=Cr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return yt(r,t,"M-"+n+","+a+l+n+","+a+l+"0,-"+i+l+"-"+n+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*Wu*.8,2),a=Cr(e*.8,2),i=Cr(e*1.6,2),o=Cr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return yt(r,t,"M"+n+",-"+a+l+"-"+n+",-"+a+l+"0,"+i+l+n+",-"+a+"Z")}},"star-square":{n:21,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*1.1,2),a=Cr(e*2,2),i="A "+a+","+a+" 0 0 1 ";return yt(r,t,"M-"+n+",-"+n+i+"-"+n+","+n+i+n+","+n+i+n+",-"+n+i+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*1.4,2),a=Cr(e*1.9,2),i="A "+a+","+a+" 0 0 1 ";return yt(r,t,"M-"+n+",0"+i+"0,"+n+i+n+",0"+i+"0,-"+n+i+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*.7,2),a=Cr(e*1.4,2);return yt(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*1.4,2),a=Cr(e*.7,2);return yt(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e,2);return yt(r,t,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e,2);return yt(r,t,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e,2);return yt(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e,2),a=Cr(e/$8,2);return yt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e,2);return yt(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e,2);return yt(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*1.3,2);return yt(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*1.3,2),a=Cr(e*.65,2);return yt(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*1.4,2);return yt(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e,2);return yt(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*1.2,2),a=Cr(e*.85,2);return yt(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e/2,2),a=Cr(e,2);return yt(r,t,"M"+n+","+a+"V-"+a+"M"+(n-a)+",-"+a+"V"+a+"M"+a+","+n+"H-"+a+"M-"+a+","+(n-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*1.2,2),a=Cr(e*1.6,2),i=Cr(e*.8,2);return yt(r,t,"M-"+n+","+i+"L0,0M"+n+","+i+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*1.2,2),a=Cr(e*1.6,2),i=Cr(e*.8,2);return yt(r,t,"M-"+n+",-"+i+"L0,0M"+n+",-"+i+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*1.2,2),a=Cr(e*1.6,2),i=Cr(e*.8,2);return yt(r,t,"M"+i+","+n+"L0,0M"+i+",-"+n+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*1.2,2),a=Cr(e*1.6,2),i=Cr(e*.8,2);return yt(r,t,"M-"+i+","+n+"L0,0M-"+i+",-"+n+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*1.4,2);return yt(r,t,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*1.4,2);return yt(r,t,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e,2);return yt(r,t,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e,2);return yt(r,t,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e,2),a=Cr(e*2,2);return yt(r,t,"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e,2),a=Cr(e*2,2);return yt(r,t,"M0,0L-"+n+",-"+a+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*2,2),a=Cr(e,2);return yt(r,t,"M0,0L"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*2,2),a=Cr(e,2);return yt(r,t,"M0,0L-"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e,2),a=Cr(e*2,2);return yt(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e,2),a=Cr(e*2,2);return yt(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+a+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*2,2),a=Cr(e,2);return yt(r,t,"M0,-"+a+"V"+a+"M0,0L"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(mt(r))return gt;var n=Cr(e*2,2),a=Cr(e,2);return yt(r,t,"M0,-"+a+"V"+a+"M0,0L-"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(mt(r))return gt;var n=G2/2.5,a=2*e*V2(n),i=2*e*W2(n);return yt(r,t,"M0,0L"+-a+","+i+"L"+a+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(mt(r))return gt;var n=G2/4,a=2*e*V2(n),i=2*e*W2(n);return yt(r,t,"M0,0L"+-a+","+i+"A "+2*e+","+2*e+" 0 0 1 "+a+","+i+"Z")},backoff:.4,noDot:!0}};function mt(e){return e===null}var K8,Q8,eM,rM;function yt(e,r,t){if((!e||e%360===0)&&!r)return t;if(eM===e&&rM===r&&K8===t)return Q8;eM=e,rM=r,K8=t;function n(y,_){var C=V2(y),x=W2(y),b=_[0],A=_[1]+(r||0);return[b*C-A*x,b*x+A*C]}for(var a=e/180*G2,i=0,o=0,l=iG(t),s="",u=0;u{"use strict";var ba=kt(),ln=gr(),oG=ln.numberFormat,vc=Bt(),K2=Jl(),np=dt(),Ra=zt(),lG=rp(),_1=ln.strTranslate,ap=ci(),sG=lc(),uG=Ka(),fG=uG.LINE_SPACING,hM=vd().DESELECTDIM,cG=Qa(),vG=W8(),hG=Vu().appendArrayPointValue,Fr=MM.exports={};Fr.font=function(e,r){var t=r.variant,n=r.style,a=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Ra.fill,i),a&&e.style("font-weight",a),n&&e.style("font-style",n),t&&e.style("font-variant",t),f&&e.style("text-transform",Z2(pG(f))),s&&e.style("text-shadow",s==="auto"?ap.makeTextShadow(Ra.contrast(i)):Z2(s)),u&&e.style("text-decoration-line",Z2(gG(u)))};function Z2(e){return e==="none"?void 0:e}var dG={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function pG(e){return dG[e]}function gG(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Fr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};Fr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};Fr.setRect=function(e,r,t,n,a){e.call(Fr.setPosition,r,t).call(Fr.setSize,n,a)};Fr.translatePoint=function(e,r,t,n){var a=t.c2p(e.x),i=n.c2p(e.y);if(vc(a)&&vc(i)&&r.node())r.node().nodeName==="text"?r.attr("x",a).attr("y",i):r.attr("transform",_1(a,i));else return!1;return!0};Fr.translatePoints=function(e,r,t){e.each(function(n){var a=ba.select(this);Fr.translatePoint(n,a,r,t)})};Fr.hideOutsideRangePoint=function(e,r,t,n,a,i){r.attr("display",t.isPtWithinRange(e,a)&&n.isPtWithinRange(e,i)?null:"none")};Fr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,n=r.yaxis;e.each(function(a){var i=a[0].trace,o=i.xcalendar,l=i.ycalendar,s=np.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){Fr.hideOutsideRangePoint(u,ba.select(this),t,n,o,l)})})}};Fr.crispRound=function(e,r,t){return!r||!vc(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};Fr.singleLineStyle=function(e,r,t,n,a){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=a||i.dash||"";Ra.stroke(r,n||i.color),Fr.dashLine(r,l,o)};Fr.lineGroupStyle=function(e,r,t,n){e.style("fill","none").each(function(a){var i=(((a||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=n||i.dash||"";ba.select(this).call(Ra.stroke,t||i.color).call(Fr.dashLine,l,o)})};Fr.dashLine=function(e,r,t){t=+t||0,r=Fr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};Fr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function dM(e,r,t,n){var a=r.fillpattern,i=r.fillgradient,o=Fr.getPatternAttr,l=a&&(o(a.shape,0,"")||o(a.path,0,""));if(l){var s=o(a.bgcolor,0,null),u=o(a.fgcolor,0,null),f=a.fgopacity,v=o(a.size,0,8),h=o(a.solidity,0,.3),d=r.uid;Fr.pattern(e,"point",t,d,l,v,h,void 0,a.fillmode,s,u,f)}else if(i&&i.type!=="none"){var m=i.type,p="scatterfill-"+r.uid;if(n&&(p="legendfill-"+r.uid),!n&&(i.start!==void 0||i.stop!==void 0)){var y,_;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(mM,t,p,"linear",i.colorscale,"fill",y,_,!0,!1)}else m==="horizontal"&&(m=m+"reversed"),e.call(Fr.gradient,t,p,m,i.colorscale,"fill")}else r.fillcolor&&e.call(Ra.fill,r.fillcolor)}Fr.singleFillStyle=function(e,r){var t=ba.select(e.node()),n=t.data(),a=((n[0]||[])[0]||{}).trace||{};dM(e,a,r,!1)};Fr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(n){var a=ba.select(this);n[0].trace&&dM(a,n[0].trace,r,t)})};var aM=nM();Fr.symbolNames=[];Fr.symbolFuncs=[];Fr.symbolBackOffs=[];Fr.symbolNeedLines={};Fr.symbolNoDot={};Fr.symbolNoFill={};Fr.symbolList=[];Object.keys(aM).forEach(function(e){var r=aM[e],t=r.n;Fr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),Fr.symbolNames[t]=e,Fr.symbolFuncs[t]=r.f,Fr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(Fr.symbolNeedLines[t]=!0),r.noDot?Fr.symbolNoDot[t]=!0:Fr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(Fr.symbolNoFill[t]=!0)});var mG=Fr.symbolNames.length,yG="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Fr.symbolNumber=function(e){if(vc(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=Fr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=mG||e>=400?0:Math.floor(Math.max(e,0))};function pM(e,r,t,n){var a=e%100;return Fr.symbolFuncs[a](r,t,n)+(e>=200?yG:"")}var iM=oG("~f"),gM={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};Fr.gradient=function(e,r,t,n,a,i){var o=gM[n];return mM(e,r,t,o.type,a,i,o.start,o.stop,!1,o.reversed)};function mM(e,r,t,n,a,i,o,l,s,u){var f=a.length,v;n==="linear"?v={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:n==="radial"&&(v={node:"radialGradient",reversed:u});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),n.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=n.ms2mrc(e.ms),e.mrc=s,n.selectedSizeFn&&(s=e.mrc=n.selectedSizeFn(e));var u=Fr.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=r3(e,t),v=e3(e,t);r.attr("d",pM(u,s,f,v))}var h=!1,d,m,p;if(e.so)p=l.outlierwidth,m=l.outliercolor,d=o.outliercolor;else{var y=(l||{}).width;p=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?m=e.mlcc=n.lineScale(e.mlc):ln.isArrayOrTypedArray(l.color)?m=Ra.defaultLine:m=l.color,ln.isArrayOrTypedArray(o.color)&&(d=Ra.defaultLine,h=!0),"mc"in e?d=e.mcc=n.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(d=n.selectedColorFn(e))}if(e.om)r.call(Ra.stroke,d).style({"stroke-width":(p||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:p)+"px");var _=o.gradient,C=e.mgt;C?h=!0:C=_&&_.type,ln.isArrayOrTypedArray(C)&&(C=C[0],gM[C]||(C=0));var x=o.pattern,b=Fr.getPatternAttr,A=x&&(b(x.shape,e.i,"")||b(x.path,e.i,""));if(C&&C!=="none"){var k=e.mgc;k?h=!0:k=_.color;var M=t.uid;h&&(M+="-"+e.i),Fr.gradient(r,a,M,C,[[0,k],[1,d]],"fill")}else if(A){var D=!1,z=x.fgcolor;!z&&i&&i.color&&(z=i.color,D=!0);var F=b(z,e.i,i&&i.color||null),H=b(x.bgcolor,e.i,null),W=x.fgopacity,B=b(x.size,e.i,8),X=b(x.solidity,e.i,.3);D=D||e.mcc||ln.isArrayOrTypedArray(x.shape)||ln.isArrayOrTypedArray(x.path)||ln.isArrayOrTypedArray(x.bgcolor)||ln.isArrayOrTypedArray(x.fgcolor)||ln.isArrayOrTypedArray(x.size)||ln.isArrayOrTypedArray(x.solidity);var V=t.uid;D&&(V+="-"+e.i),Fr.pattern(r,"point",a,V,A,B,X,e.mcc,x.fillmode,H,F,W)}else ln.isArrayOrTypedArray(d)?Ra.fill(r,d[e.i]):Ra.fill(r,d);p&&Ra.stroke(r,m)}};Fr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=Fr.tryColorscale(t,""),r.lineScale=Fr.tryColorscale(t,"line"),np.traceIs(e,"symbols")&&(r.ms2mrc=cG.isBubble(e)?vG(e):function(){return(t.size||6)/2}),e.selectedpoints&&ln.extendFlat(r,Fr.makeSelectedPointStyleFns(e)),r};Fr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.marker||{},i=t.marker||{},o=n.marker||{},l=a.opacity,s=i.opacity,u=o.opacity,f=s!==void 0,v=u!==void 0;(ln.isArrayOrTypedArray(l)||f||v)&&(r.selectedOpacityFn=function(b){var A=b.mo===void 0?a.opacity:b.mo;return b.selected?f?s:A:v?u:hM*A});var h=a.color,d=i.color,m=o.color;(d||m)&&(r.selectedColorFn=function(b){var A=b.mcc||h;return b.selected?d||A:m||A});var p=a.size,y=i.size,_=o.size,C=y!==void 0,x=_!==void 0;return np.traceIs(e,"symbols")&&(C||x)&&(r.selectedSizeFn=function(b){var A=b.mrc||p/2;return b.selected?C?y/2:A:x?_/2:A}),r};Fr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.textfont||{},i=t.textfont||{},o=n.textfont||{},l=a.color,s=i.color,u=o.color;return r.selectedTextColorFn=function(f){var v=f.tc||l;return f.selected?s||v:u||(s?v:Ra.addOpacity(v,hM))},r};Fr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=Fr.makeSelectedPointStyleFns(r),n=r.marker||{},a=[];t.selectedOpacityFn&&a.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&a.push(function(i,o){Ra.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&a.push(function(i,o){var l=o.mx||n.symbol||0,s=t.selectedSizeFn(o);i.attr("d",pM(Fr.symbolNumber(l),s,r3(o,r),e3(o,r))),o.mrc2=s}),a.length&&e.each(function(i){for(var o=ba.select(this),l=0;l0?t:0}Fr.textPointStyle=function(e,r,t){if(e.size()){var n;if(r.selectedpoints){var a=Fr.makeSelectedTextStyleFns(r);n=a.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=ba.select(this),u=i?ln.extractOption(l,r,"txt","texttemplate"):ln.extractOption(l,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,v=f?f(l,r,o):{},h={};hG(h,r,l.i);var d=r._meta||{};u=ln.texttemplateString(u,v,o._d3locale,h,l,d)}var m=l.tp||r.textposition,p=bM(l,r),y=n?n(l):l.tc||r.textfont.color;s.call(Fr.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:p,color:y}).text(u).call(ap.convertToTspans,t).call(yM,m,p,l.mrc)})}};Fr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=Fr.makeSelectedTextStyleFns(r);e.each(function(n){var a=ba.select(this),i=t.selectedTextColorFn(n),o=n.tp||r.textposition,l=bM(n,r);Ra.fill(a,i);var s=np.traceIs(r,"bar-like");yM(a,o,l,n.mrc2||n.mrc,s)})}};var oM=.5;Fr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],n=[],a;for(a=1;a=s||b>=f&&b<=s)&&(A<=v&&A>=u||A>=v&&A<=u)&&(e=[b,A])}return e}Fr.applyBackoff=wM;Fr.makeTester=function(){var e=ln.ensureSingleById(ba.select("body"),"svg","js-plotly-tester",function(t){t.attr(sG.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=ln.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Fr.tester=e,Fr.testref=r};Fr.savedBBoxes={};var j2=0,xG=1e4;Fr.bBox=function(e,r,t){t||(t=lM(e));var n;if(t){if(n=Fr.savedBBoxes[t],n)return ln.extendFlat({},n)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(t=lM(a),t){var i=+a.getAttribute("x")||0,o=+a.getAttribute("y")||0,l=a.getAttribute("transform");if(!l){var s=Fr.bBox(a,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,n=Fr.savedBBoxes[t],n)return ln.extendFlat({},n)}}var u,f;r?u=e:(f=Fr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),ba.select(u).attr("transform",null).call(ap.positionText,0,0);var v=u.getBoundingClientRect(),h=Fr.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:v.height,width:v.width,left:v.left-h.left,top:v.top-h.top,right:v.right-h.left,bottom:v.bottom-h.top};return j2>=xG&&(Fr.savedBBoxes={},j2=0),t&&(Fr.savedBBoxes[t]=d),j2++,ln.extendFlat({},d)};function lM(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Fr.setClipUrl=function(e,r,t){e.attr("clip-path",Q2(r,t))};function Q2(e,r){if(!e)return null;var t=r._context,n=t._exportedPlot?"":t._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}Fr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}};Fr.setTranslate=function(e,r,t){var n=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[a]("transform")||"";return r=r||0,t=t||0,o=o.replace(n,"").trim(),o+=_1(r,t),o=o.trim(),e[i]("transform",o),o};Fr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}};Fr.setScale=function(e,r,t){var n=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[a]("transform")||"";return r=r||1,t=t||1,o=o.replace(n,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var wG=/\s*sc.*/;Fr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var n=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(wG,"");a+=n,a=a.trim(),this.setAttribute("transform",a)})}};var MG=/translate\([^)]*\)\s*$/;Fr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var n,a=ba.select(this),i=a.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(a.attr("transform")||"").match(MG);r===1&&t===1?n=[]:n=[_1(o,l),"scale("+r+","+t+")",_1(-o,-l)],s&&n.push(s),a.attr("transform",n.join(""))}})};function e3(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}Fr.getMarkerStandoff=e3;var b1=Math.atan2,uc=Math.cos,Y0=Math.sin;function sM(e,r){var t=r[0],n=r[1];return[t*uc(e)-n*Y0(e),t*Y0(e)+n*uc(e)]}var uM,fM,cM,vM,J2,$2;function r3(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||ln.isArrayOrTypedArray(t))&&(t=0));var n,a,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);n=o[0],a=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)n=l.c2p(e.x),a=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],v=r._geo.project([u,f+1e-5]),h=r._geo.project([u+1e-5,f]),d=b1(h[1]-a,h[0]-n),m=b1(v[1]-a,v[0]-n),p;if(i==="north")p=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,_=f/180*Math.PI,C=uM/180*Math.PI,x=fM/180*Math.PI,b=C-y,A=uc(x)*Y0(b),k=Y0(x)*uc(_)-uc(x)*Y0(_)*uc(b);p=-b1(A,k)-Math.PI,uM=u,fM=f}var M=sM(d,[uc(p),0]),D=sM(m,[Y0(p),0]);t=b1(M[1]+D[1],M[0]+D[0])/Math.PI*180,i==="previous"&&!($2===r.uid&&e.i===J2+1)&&(t=null)}if(i==="previous"&&!r._geo)if($2===r.uid&&e.i===J2+1&&vc(n)&&vc(a)){var z=n-cM,F=a-vM,H=r.line&&r.line.shape||"",W=H.slice(H.length-1);W==="h"&&(F=0),W==="v"&&(z=0),t+=b1(F,z)/Math.PI*180+90}else t=null}return cM=n,vM=a,J2=e.i,$2=r.uid,t}Fr.getMarkerAngle=r3});var x1=ne((Tue,SM)=>{"use strict";var G0=kt(),AG=Bt(),TG=ua(),t3=dt(),hc=gr(),AM=hc.strTranslate,ip=sn(),op=zt(),V0=ci(),TM=vd(),kG=Ka().OPPOSITE_SIDE,kM=/ [XY][0-9]* /,n3=1.6,a3=1.6;function SG(e,r,t){var n=e._fullLayout,a=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,v=t.containerGroup,h=1,d=a.title,m=(d&&d.text?d.text:"").trim(),p=!1,y=d&&d.font?d.font:{},_=y.family,C=y.size,x=y.color,b=y.weight,A=y.style,k=y.variant,M=y.textcase,D=y.lineposition,z=y.shadow,F=t.subtitlePropName,H=!!F,W=t.subtitlePlaceholder,B=(a.title||{}).subtitle||{text:"",font:{}},X=B.text.trim(),V=!1,re=1,te=B.font,K=te.family,ee=te.size,fe=te.color,he=te.weight,qe=te.style,ze=te.variant,Ne=te.textcase,Ze=te.lineposition,Ce=te.shadow,Je;i==="title.text"?Je="titleText":i.indexOf("axis")!==-1?Je="axisTitleText":i.indexOf(!0)&&(Je="colorbarTitleText");var ue=e._context.edits[Je];function ye(or,vr){return or===void 0||vr===void 0?!1:or.replace(kM," % ")===vr.replace(kM," % ")}m===""?h=0:ye(m,o)&&(ue||(m=""),h=.2,p=!0),H&&(X===""?re=0:ye(X,W)&&(ue||(X=""),re=.2,V=!0)),t._meta?m=hc.templateString(m,t._meta):n._meta&&(m=hc.templateString(m,n._meta));var Me=m||X||ue,pe;v||(v=hc.ensureSingle(n._infolayer,"g","g-"+r),pe=n._hColorbarMoveTitle);var U=v.selectAll("text."+r).data(Me?[0]:[]);U.enter().append("text"),U.text(m).attr("class",r),U.exit().remove();var Q=null,$=r+"-subtitle",Te=X||ue;if(H&&Te&&(Q=v.selectAll("text."+$).data(Te?[0]:[]),Q.enter().append("text"),Q.text(X).attr("class",$),Q.exit().remove()),!Me)return v;function Be(or,vr){hc.syncOrAsync([Ie,ir],{title:or,subtitle:vr})}function Ie(or){var vr=or.title,rr=or.subtitle,yr;!f&&pe&&(f={}),f?(yr="",f.rotate&&(yr+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||pe)&&(yr+=AM(0,(f.offset||0)-(pe||0)))):yr=null,vr.attr("transform",yr);function dr(er){if(er){var Ke=G0.select(er.node().parentNode).select("."+$);if(!Ke.empty()){var br=er.node().getBBox();if(br.height){var Mr=br.y+br.height+n3*ee;Ke.attr("y",Mr)}}}}if(vr.style("opacity",h*op.opacity(x)).call(ip.font,{color:op.rgb(x),size:G0.round(C,2),family:_,weight:b,style:A,variant:k,textcase:M,shadow:z,lineposition:D}).attr(u).call(V0.convertToTspans,e,dr),rr){var Ae=v.select("."+r+"-math-group"),Ue=vr.node().getBBox(),Xe=Ae.node()?Ae.node().getBBox():void 0,Er=Xe?Xe.y+Xe.height+n3*ee:Ue.y+Ue.height+a3*ee,Sr=hc.extendFlat({},u,{y:Er});rr.attr("transform",yr),rr.style("opacity",re*op.opacity(fe)).call(ip.font,{color:op.rgb(fe),size:G0.round(ee,2),family:K,weight:he,style:qe,variant:ze,textcase:Ne,shadow:Ce,lineposition:Ze}).attr(Sr).call(V0.convertToTspans,e)}return TG.previousPromises(e)}function ir(or){var vr=or.title,rr=G0.select(vr.node().parentNode);if(s&&s.selection&&s.side&&m){rr.attr("transform",null);var yr=kG[s.side],dr=s.side==="left"||s.side==="top"?-1:1,Ae=AG(s.pad)?s.pad:2,Ue=ip.bBox(rr.node()),Xe={t:0,b:0,l:0,r:0},Er=e._fullLayout._reservedMargin;for(var Sr in Er)for(var er in Er[Sr]){var Ke=Er[Sr][er];Xe[er]=Math.max(Xe[er],Ke)}var br={left:Xe.l,top:Xe.t,right:n.width-Xe.r,bottom:n.height-Xe.b},Mr=s.maxShift||dr*(br[s.side]-Ue[s.side]),mr=0;if(Mr<0)mr=Mr;else{var pr=s.offsetLeft||0,kr=s.offsetTop||0;Ue.left-=pr,Ue.right-=pr,Ue.top-=kr,Ue.bottom-=kr,s.selection.each(function(){var Ur=ip.bBox(this);hc.bBoxIntersect(Ue,Ur,Ae)&&(mr=Math.max(mr,dr*(Ur[s.side]-Ue[yr])+Ae))}),mr=Math.min(Mr,mr),a._titleScoot=Math.abs(mr)}if(mr>0||Mr<0){var Pr={left:[-mr,0],right:[mr,0],top:[0,-mr],bottom:[0,mr]}[s.side];rr.attr("transform",AM(Pr[0],Pr[1]))}}}U.call(Be,Q);function ur(or,vr){or.text(vr).on("mouseover.opacity",function(){G0.select(this).transition().duration(TM.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){G0.select(this).transition().duration(TM.HIDE_PLACEHOLDER).style("opacity",0)})}if(ue&&(m?U.on(".opacity",null):(ur(U,o),p=!0),U.call(V0.makeEditable,{gd:e}).on("edit",function(or){l!==void 0?t3.call("_guiRestyle",e,i,or,l):t3.call("_guiRelayout",e,i,or)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Be)}).on("input",function(or){this.text(or||" ").call(V0.positionText,u.x,u.y)}),H)){if(H&&!m){var Oe=U.node().getBBox(),nr=Oe.y+Oe.height+a3*ee;Q.attr("y",nr)}X?Q.on(".opacity",null):(ur(Q,W),V=!0),Q.call(V0.makeEditable,{gd:e}).on("edit",function(or){t3.call("_guiRelayout",e,"title.subtitle.text",or)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Be)}).on("input",function(or){this.text(or||" ").call(V0.positionText,Q.attr("x"),Q.attr("y"))})}return U.classed("js-placeholder",p),Q&&Q.classed("js-placeholder",V),v}SM.exports={draw:SG,SUBTITLE_PADDING_EM:a3,SUBTITLE_PADDING_MATHJAX_EM:n3}});var dp=ne((kue,EM)=>{"use strict";var CG=kt(),LG=m0().utcFormat,yn=gr(),qG=yn.numberFormat,ts=Bt(),Zu=yn.cleanNumber,DG=yn.ms2DateTime,CM=yn.dateTime2ms,ns=yn.ensureNumber,LM=yn.isArrayOrTypedArray,Xu=En(),lp=Xu.FP_SAFE,ml=Xu.BADNUM,EG=Xu.LOG_CLIP,PG=Xu.ONEWEEK,sp=Xu.ONEDAY,up=Xu.ONEHOUR,qM=Xu.ONEMIN,DM=Xu.ONESEC,fp=ya(),hp=Pa(),cp=hp.HOUR_PATTERN,vp=hp.WEEKDAY_PATTERN;function w1(e){return Math.pow(10,e)}function i3(e){return e!=null}EM.exports=function(r,t){t=t||{};var n=r._id||"x",a=n.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 k=r.range[0],M=r.range[1];return .5*(k+M-2*EG*Math.abs(k-M))}else return ml}function o(b,A,k,M){if((M||{}).msUTC&&ts(b))return+b;var D=CM(b,k||r.calendar);if(D===ml)if(ts(b)){b=+b;var z=Math.floor(yn.mod(b+.05,1)*10),F=Math.round(b-z/10);D=CM(new Date(F))+z/10}else return ml;return D}function l(b,A,k){return DG(b,A,k||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(i3(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 ml}function f(b,A){for(var k=new Array(A),M=0;Mr.range[1]&&(k=!k);for(var M=k?-1:1,D=M*b,z=0,F=0;FW)z=F+1;else{z=D<(H+W)/2?F:F+1;break}}var B=r._B[z]||0;return isFinite(B)?m(b,r._m2,B):0},_=function(b){var A=r._rangebreaks.length;if(!A)return p(b,r._m,r._b);for(var k=0,M=0;Mr._rangebreaks[M].pmax&&(k=M+1);return p(b,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:ns,r.l2c=r.type==="log"?w1:ns,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 w1(_(b))}:_,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Zu,r.c2d=r.c2r=r.l2d=r.l2r=ns,r.d2p=r.r2p=function(b){return r.l2p(Zu(b))},r.p2d=r.p2r=_,r.cleanPos=ns):r.type==="log"?(r.d2r=r.d2l=function(b,A){return i(Zu(b),A)},r.r2d=r.r2c=function(b){return w1(Zu(b))},r.d2c=r.r2l=Zu,r.c2d=r.l2r=ns,r.c2r=i,r.l2d=w1,r.d2p=function(b,A){return r.l2p(r.d2r(b,A))},r.p2d=function(b){return w1(_(b))},r.r2p=function(b){return r.l2p(Zu(b))},r.p2r=_,r.cleanPos=ns):r.type==="date"?(r.d2r=r.r2d=yn.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(b,A,k){return r.l2p(o(b,0,k))},r.p2d=r.p2r=function(b,A,k){return l(_(b),A,k)},r.cleanPos=function(b){return yn.cleanDate(b,ml,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(b){var A=d(b);return A!==void 0?A:r.fraction2r(.5)},r.l2r=r.c2r=ns,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:ns(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=ns,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:ns(b)},r.setupMultiCategory=function(b){var A=r._traceIndices,k,M,D=r._matchGroup;if(D&&r._categories.length===0){for(var z in D)if(z!==n){var F=t[fp.id2name(z)];A=A.concat(F._traceIndices)}}var H=[[0,{}],[0,{}]],W=[];for(k=0;kF[1]&&(M[z?0:1]=k),M[0]===M[1]){var H=r.l2r(A),W=r.l2r(k);if(A!==void 0){var B=H+1;k!==void 0&&(B=Math.min(B,W)),M[z?1:0]=B}if(k!==void 0){var X=W+1;A!==void 0&&(X=Math.max(X,H)),M[z?0:1]=X}}}},r.cleanRange=function(b,A){r._cleanRange(b,A),r.limitRange(b)},r._cleanRange=function(b,A){A||(A={}),b||(b="range");var k=yn.nestedProperty(r,b).get(),M,D;if(r.type==="date"?D=yn.dfltRange(r.calendar):a==="y"?D=hp.DFLTRANGEY:r._name==="realaxis"?D=[0,1]:D=A.dfltRange||hp.DFLTRANGEX,D=D.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(D[0]=0),!k||k.length!==2){yn.nestedProperty(r,b).set(D);return}var z=k[0]===null,F=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=yn.cleanDate(k[0],ml,r.calendar),k[1]=yn.cleanDate(k[1],ml,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!yn.isDateTime(k[M],r.calendar)){r[b]=D;break}if(r.r2l(k[0])===r.r2l(k[1])){var H=yn.constrain(r.r2l(k[0]),yn.MIN_MS+1e3,yn.MAX_MS-1e3);k[0]=r.l2r(H-1e3),k[1]=r.l2r(H+1e3);break}}else{if(!ts(k[M]))if(!(z||F)&&ts(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[b]=D;break}if(k[M]<-lp?k[M]=-lp:k[M]>lp&&(k[M]=lp),k[0]===k[1]){var W=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=W,k[1]+=W}}},r.setScale=function(b){var A=t._size;if(r.overlaying){var k=fp.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var M=b&&r._r?"_r":"range",D=r.calendar;r.cleanRange(M);var z=r.r2l(r[M][0],D),F=r.r2l(r[M][1],D),H=a==="y";if(H?(r._offset=A.t+(1-r.domain[1])*A.h,r._length=A.h*(r.domain[1]-r.domain[0]),r._m=r._length/(z-F),r._b=-r._m*F):(r._offset=A.l+r.domain[0]*A.w,r._length=A.w*(r.domain[1]-r.domain[0]),r._m=r._length/(F-z),r._b=-r._m*z),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var W,B;if(r._rangebreaks=r.locateBreaks(Math.min(z,F),Math.max(z,F)),r._rangebreaks.length){for(W=0;WF&&(X=!X),X&&r._rangebreaks.reverse();var V=X?-1:1;for(r._m2=V*r._length/(Math.abs(F-z)-r._lBreaks),r._B.push(-r._m2*(H?F:z)),W=0;WD&&(D+=7,zD&&(D+=24,z=M&&z=M&&b=Ce.min&&(qeCe.max&&(Ce.max=ze),Ne=!1)}Ne&&F.push({min:qe,max:ze})}};for(k=0;k{"use strict";var PM=Bt(),o3=gr(),RG=En().BADNUM,pp=o3.isArrayOrTypedArray,zG=o3.isDateTime,NG=o3.cleanNumber,RM=Math.round;NM.exports=function(r,t,n){var a=r,i=n.noMultiCategory;if(pp(a)&&!a.length)return"-";if(!i&&OG(a))return"multicategory";if(i&&Array.isArray(a[0])){for(var o=[],l=0;li*2}function zM(e){return Math.max(1,(e-1)/1e3)}function BG(e,r){for(var t=e.length,n=zM(t),a=0,i=0,o={},l=0;la*2}function OG(e){return pp(e[0])&&pp(e[1])}});var Ju=ne((Cue,GM)=>{"use strict";var UG=kt(),BM=Bt(),ju=gr(),gp=En().FP_SAFE,YG=dt(),GG=sn(),OM=ya(),VG=OM.getFromId,WG=OM.isLinked;GM.exports={applyAutorangeOptions:YM,getAutoRange:s3,makePadFn:u3,doAutoRange:XG,findExtremes:jG,concatExtremes:v3};function s3(e,r){var t,n,a=[],i=e._fullLayout,o=u3(i,r,0),l=u3(i,r,1),s=v3(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return ju.simpleMap(r.range,r.r2l);var v=u[0].val,h=f[0].val;for(t=1;t0&&(F=x-o(k)-l(M),F>b?H/F>A&&(D=k,z=M,A=H/F):H/x>A&&(D={val:k.val,nopad:1},z={val:M.val,nopad:1},A=H/x));function W(te,K){return Math.max(te,l(K))}if(v===h){var B=v-1,X=v+1;if(_)if(v===0)a=[0,1];else{var V=(v>0?f:u).reduce(W,0),re=v/(1-Math.min(.5,V/x));a=v>0?[0,re]:[re,0]}else C?a=[Math.max(0,B),Math.max(1,X)]:a=[B,X]}else _?(D.val>=0&&(D={val:0,nopad:1}),z.val<=0&&(z={val:0,nopad:1})):C&&(D.val-A*o(D)<0&&(D={val:0,nopad:1}),z.val<=0&&(z={val:1,nopad:1})),A=(z.val-D.val-FM(r,k.val,M.val))/(x-o(D)-l(z)),a=[D.val-A*o(D),z.val+A*l(z)];return a=YM(a,r),r.limitRange&&r.limitRange(),m&&a.reverse(),ju.simpleMap(a,r.l2r||Number)}function FM(e,r,t){var n=0;if(e.rangebreaks)for(var a=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),k=b((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=b(t.vpadplus||t.vpad),D=b(t.vpadminus||t.vpad);if(!u){if(C=1/0,x=-1/0,s)for(v=0;v0&&(C=h),h>x&&h-gp&&(C=h),h>x&&h=H;v--)F(v);return{min:n,max:a,opts:t}}function f3(e,r,t,n){UM(e,r,t,n,JG)}function c3(e,r,t,n){UM(e,r,t,n,$G)}function UM(e,r,t,n,a){for(var i=n.tozero,o=n.extrapad,l=!0,s=0;s=t&&(u.extrapad||!o)){l=!1;break}else a(r,u.val)&&u.pad<=t&&(o||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:o})}}function HM(e){return BM(e)&&Math.abs(e)=r}function KG(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&mp(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&mp(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function QG(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&mp(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&mp(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function mp(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,n=s)}}return t=KG(t,r),n=QG(n,r),[t,n]}});var Cn=ne((Lue,vA)=>{"use strict";var Ao=kt(),ea=Bt(),W0=ua(),A1=dt(),ut=gr(),Z0=ut.strTranslate,dc=ci(),eV=x1(),T1=zt(),$i=sn(),rV=pl(),VM=q2(),za=En(),tV=za.ONEMAXYEAR,_p=za.ONEAVGYEAR,xp=za.ONEMINYEAR,nV=za.ONEMAXQUARTER,g3=za.ONEAVGQUARTER,wp=za.ONEMINQUARTER,aV=za.ONEMAXMONTH,X0=za.ONEAVGMONTH,Mp=za.ONEMINMONTH,Ki=za.ONEWEEK,ei=za.ONEDAY,$u=ei/2,is=za.ONEHOUR,k1=za.ONEMIN,Ap=za.ONESEC,iV=za.ONEMILLI,oV=za.ONEMICROSEC,pc=za.MINUS_SIGN,Sp=za.BADNUM,m3={K:"zeroline"},y3={K:"gridline",L:"path"},b3={K:"minor-gridline",L:"path"},tA={K:"tick",L:"path"},WM={K:"tick",L:"text"},ZM={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Cp=Ka(),M1=Cp.MID_SHIFT,gc=Cp.CAP_SHIFT,S1=Cp.LINE_SPACING,lV=Cp.OPPOSITE_SIDE,Tp=3,wr=vA.exports={};wr.setConvert=dp();var sV=l3(),Ks=ya(),uV=Ks.idSort,fV=Ks.isLinked;wr.id2name=Ks.id2name;wr.name2id=Ks.name2id;wr.cleanId=Ks.cleanId;wr.list=Ks.list;wr.listIds=Ks.listIds;wr.getFromId=Ks.getFromId;wr.getFromTrace=Ks.getFromTrace;var nA=Ju();wr.getAutoRange=nA.getAutoRange;wr.findExtremes=nA.findExtremes;var cV=1e-4;function M3(e){var r=(e[1]-e[0])*cV;return[e[0]-r,e[1]+r]}wr.coerceRef=function(e,r,t,n,a,i){var o=n.charAt(n.length-1),l=t._fullLayout._subplots[o+"axis"],s=n+"ref",u={};return a||(a=l[0]||(typeof i=="string"?i:i[0])),i||(i=a),l=l.concat(l.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:a},ut.coerce(e,r,u,s)};wr.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};wr.coercePosition=function(e,r,t,n,a,i){var o,l,s=wr.getRefType(n);if(s!=="range")o=ut.ensureNumber,l=t(a,i);else{var u=wr.getFromId(r,n);i=u.fraction2r(i),l=t(a,i),o=u.cleanPos}e[a]=o(l)};wr.cleanPosition=function(e,r,t){var n=t==="paper"||t==="pixel"?ut.ensureNumber:wr.getFromId(r,t).cleanPos;return n(e)};wr.redrawComponents=function(e,r){r=r||wr.listIds(e);var t=e._fullLayout;function n(a,i,o,l){for(var s=A1.getComponentMethod(a,i),u={},f=0;f2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};wr.saveRangeInitial=function(e,r){for(var t=wr.list(e,"",!0),n=!1,a=0;av*.3||u(n)||u(a))){var h=t.dtick/2;e+=e+ho){var l=Number(t.substr(1));i.exactYears>o&&l%12===0?e=wr.tickIncrement(e,"M6","reverse")+ei*1.5:i.exactMonths>o?e=wr.tickIncrement(e,"M1","reverse")+ei*15.5:e-=$u;var s=wr.tickIncrement(e,t);if(s<=n)return s}return e}wr.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var n=r.dtick&&ea(r._tmin),a;if(n){var i=wr.tickIncrement(r._tmin,r.dtick,!0);a=[r._tmin,i*.99+r._tmin*.01]}else{var o=ut.simpleMap(r.range,r.r2l);a=[o[0],.8*o[0]+.2*o[1]]}if(e.range=ut.simpleMap(a,r.l2r),e._isMinor=!0,wr.prepTicks(e,t),n){var l=ea(r.dtick),s=ea(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?h3(u,f)?u===2*Ki&&f===2*ei&&(e.dtick=Ki):u===2*Ki&&f===3*ei?e.dtick=Ki:u===Ki&&!(r._input.minor||{}).nticks?e.dtick=ei:JM(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":h3(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?h3(u,f)||(e.dtick=JM(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function h3(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function JM(e,r){return Math.abs(e/r-1)<.001}wr.prepTicks=function(e,r){var t=ut.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,a;n||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?ut.bigFont(e.tickfont.size||12):15,n=e._length/a):(a=e._id.charAt(0)==="y"?40:80,n=ut.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(t[1]-t[0])/n,wr.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=n-1,o=n):(i=n,o=n);var l=e[i].value,s=e[o].value,u=Math.abs(s-l),f=t||u,v=0;f>=xp?u>=xp&&u<=tV?v=u:v=_p:t===g3&&f>=wp?u>=wp&&u<=nV?v=u:v=g3:f>=Mp?u>=Mp&&u<=aV?v=u:v=X0:t===Ki&&f>=Ki?v=Ki:f>=ei?v=ei:t===$u&&f>=$u?v=$u:t===is&&f>=is&&(v=is);var h;v>=u&&(v=u,h=!0);var d=a+v;if(r.rangebreaks&&v>0){for(var m=84,p=0,y=0;yKi&&(v=u)}(v>0||n===0)&&(e[n].periodX=a+v/2)}}wr.calcTicks=function(r,t){for(var n=r.type,a=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||ut.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=ut.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(x?0:1);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 k=b?r:ut.extendFlat({},r,r.minor);if(A?wr.prepMinorTicks(k,r,t):wr.prepTicks(k,t),k.tickmode==="array"){b?(y=[],m=$M(r,!A)):(_=[],p=$M(r,!A));continue}if(k.tickmode==="sync"){y=[],m=mV(r);continue}var M=M3(u),D=M[0],z=M[1],F=ea(k.dtick),H=n==="log"&&!(F||k.dtick.charAt(0)==="L"),W=wr.tickFirst(k,t);if(b){if(r._tmin=W,W=z:X<=z;X=wr.tickIncrement(X,te,f,a)){if(b&&V++,k.rangebreaks&&!f){if(X=h)break}if(y.length>d||X===B)break;B=X;var K={value:X};b?(H&&X!==(X|0)&&(K.simpleLabel=!0),i>1&&V%i&&(K.skipLabel=!0),y.push(K)):(K.minor=!0,_.push(K))}}if(!_||_.length<2)s=!1;else{var ee=(_[1].value-_[0].value)*(l?-1:1);OV(ee,r.tickformat)||(s=!1)}if(!s)C=y;else{var fe=y.concat(_);o&&y.length&&(fe=fe.slice(1)),fe=fe.sort(function(nr,or){return nr.value-or.value}).filter(function(nr,or,vr){return or===0||nr.value!==vr[or-1].value});var he=fe.map(function(nr,or){return nr.minor===void 0&&!nr.skipLabel?or:null}).filter(function(nr){return nr!==null});he.forEach(function(nr){s.map(function(or){var vr=nr+or;vr>=0&&vr-1;Me--){if(y[Me].drop){y.splice(Me,1);continue}y[Me].value=p3(y[Me].value,r);var $=r.c2p(y[Me].value);(pe?Q>$-U:Q<$+U)?y.splice(f?Me+1:Me,1):Q=$}}k3(r)&&Math.abs(u[1]-u[0])===360&&y.pop(),r._tmax=(y[y.length-1]||{}).value,r._prevDateHead="",r._inCalcTicks=!0;var Te,Be=function(nr){nr.text="",r._prevDateHead=Te};y=y.concat(_);function Ie(nr,or){var vr=wr.tickText(nr,or.value,!1,or.simpleLabel),rr=or.periodX;return rr!==void 0&&(vr.periodX=rr,(rr>h||rrh&&(vr.periodX=h),rra&&h_p)r/=_p,n=a(10),e.dtick="M"+12*as(r,n,yp);else if(i>X0)r/=X0,e.dtick="M"+as(r,1,KM);else if(i>ei){if(e.dtick=as(r,ei,e._hasDayOfWeekBreaks?[1,2,7,14]:yV),!t){var o=wr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=ut.dateTick0(e.calendar,2):e.tick0=ut.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>is?e.dtick=as(r,is,KM):i>k1?e.dtick=as(r,k1,QM):i>Ap?e.dtick=as(r,Ap,QM):(n=a(10),e.dtick=as(r,n,yp))}else if(e.type==="log"){e.tick0=0;var s=ut.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,n=a(10),e.dtick="L"+as(r,n,yp)}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))):k3(e)?(e.tick0=0,n=1,e.dtick=as(r,n,bV)):(e.tick0=0,n=a(10),e.dtick=as(r,n,yp));if(e.dtick===0&&(e.dtick=1),!ea(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function lA(e){var r=e.dtick;if(e._tickexponent=0,!ea(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),n=e.l2r(t).replace(/(^-|i)/g,""),a=n.length;if(String(r).charAt(0)==="M")a>10||n.substr(5)!=="01-01"?e._tickround="d":e._tickround=+r.substr(1)%12===0?"y":"m";else if(r>=ei&&a<=10||r>=ei*15)e._tickround="d";else if(r>=k1&&a<=16||r>=is)e._tickround="M";else if(r>=Ap&&a<=19||r>=k1)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(a,i)-20,e._tickround<0&&(e._tickround=4)}}else if(ea(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);ea(r)||(r=Number(r.substr(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(kp(e.exponentformat)&&!A3(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}wr.tickIncrement=function(e,r,t,n){var a=t?-1:1;if(ea(r))return ut.increment(e,a*r);var i=r.charAt(0),o=a*Number(r.substr(1));if(i==="M")return ut.incrementMonth(e,o,n);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?oA:iA,s=e+a*.01,u=ut.roundUp(ut.mod(s,1),l,t);return Math.floor(s)+Math.log(Ao.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};wr.tickFirst=function(e,r){var t=e.r2l||Number,n=ut.simpleMap(e.range,t,void 0,void 0,r),a=n[1]=0&&_<=e._length?y:null};if(i&&ut.isArrayOrTypedArray(e.ticktext)){var v=ut.simpleMap(e.range,e.r2l),h=(Math.abs(v[1]-v[0])-(e._lBreaks||0))/1e4;for(u=0;u"+l;else{var u=L1(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}r.text=o}function xV(e,r,t,n,a){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(a==="never"&&(a=""),n&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=C1(Math.pow(10,o),e,a,n);else if(ea(i)||s==="D"&&ut.mod(o+.01,1)<.1){var u=Math.round(o),f=Math.abs(u),v=e.exponentformat;v==="power"||kp(v)&&A3(u)?(u===0?r.text=1:u===1?r.text="10":r.text="10"+(u>1?"":pc)+f+"",r.fontSize*=1.25):(v==="e"||v==="E")&&f>2?r.text="1"+v+(u>0?"+":pc)+f:(r.text=C1(Math.pow(10,o),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,ut.mod(o,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*(o<0?.5:.25)))}}function wV(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function MV(e,r,t){var n=Math.round(r.x),a=e._categories[n]||[],i=a[1]===void 0?"":String(a[1]),o=a[0]===void 0?"":String(a[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function AV(e,r,t,n,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(a="hide"),r.text=C1(r.x,e,a,n)}function TV(e,r,t,n,a){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=kV(i);if(o[1]>=100)r.text=C1(ut.deg2rad(r.x),e,a,n);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=pc+r.text)}}}else r.text=C1(r.x,e,a,n)}function kV(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function n(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var a=n(e),i=e*a,o=Math.abs(t(i,a));return[Math.round(i/o),Math.round(a/o)]}var SV=["f","p","n","\u03BC","m","","k","M","G","T"];function kp(e){return e==="SI"||e==="B"}function A3(e){return e>14||e<-15}function C1(e,r,t,n){var a=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=wr.getTickFormat(r),u=r.separatethousands;if(n){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:ea(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};lA(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,pc);var v=Math.pow(10,-i)/2;if(o==="none"&&(l=0),e=Math.abs(e),e"+m+"":o==="B"&&l===9?e+="B":kp(o)&&(e+=SV[l/3+5])}return a?pc+e:e}wr.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*X0}function n(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var v=f.indexOf(s.charAt(0)),h=f.indexOf(u.charAt(0));return v===h?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):v-h}else return typeof s=="number"?1:-1}function a(s,u,f){var v=f||function(m){return m},h=u[0],d=u[1];return(!h&&typeof h!="number"||v(h)<=v(s))&&(!d&&typeof d!="number"||v(d)>=v(s))}function i(s,u){var f=u[0]===null,v=u[1]===null,h=n(s,u[0])>=0,d=n(s,u[1])<=0;return(f||h)&&(v||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&a.unshift(a.splice(f,1).shift())}});var l={false:{left:0,right:0}};return ut.syncOrAsync(a.map(function(s){return function(){if(s){var u=wr.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=wr.drawOne(e,u,t);return u._shiftPusher&&w3(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=ut.simpleMap(u._r,u.r2l),f}}}))};wr.drawOne=function(e,r,t){t=t||{};var n=t.axShifts||{},a=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),v=wr.counterLetter(u),h=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!h)return;if(r._shiftPusher=r.autoshift||a.indexOf(r._id)!==-1||a.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var m=r.linewidth/2||0;r.ticks==="inside"&&(m+=r.ticklen),w3(r,m,n,!0),w3(r,r.shift||0,n,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=BV(r,n));var p=h[f+"axislayer"],y=r._mainLinePosition,_=y+=r._shift,C=r._mainMirrorPosition,x=r._vals=wr.calcTicks(r),b=[r.mirror,_,C].join("_");for(i=0;i0?rr.bottom-or:0,vr))));var Ue=0,Xe=0;if(r._shiftPusher&&(Ue=Math.max(vr,rr.height>0?Oe==="l"?or-rr.left:rr.right-or:0),r.title.text!==s._dfltTitle[f]&&(Xe=(r._titleStandoff||0)+(r._titleScoot||0),Oe==="l"&&(Xe+=rA(r))),r._fullDepth=Math.max(Ue,Xe)),r.automargin){yr={x:0,y:0,r:0,l:0,t:0,b:0};var Er=[0,1],Sr=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Oe==="b"?yr[Oe]=r._depth:(yr[Oe]=r._depth=Math.max(rr.width>0?or-rr.top:0,vr),Er.reverse()),rr.width>0){var er=rr.right-(r._offset+r._length);er>0&&(yr.xr=1,yr.r=er);var Ke=r._offset-rr.left;Ke>0&&(yr.xl=0,yr.l=Ke)}}else if(Oe==="l"?(r._depth=Math.max(rr.height>0?or-rr.left:0,vr),yr[Oe]=r._depth-Sr):(r._depth=Math.max(rr.height>0?rr.right-or:0,vr),yr[Oe]=r._depth+Sr,Er.reverse()),rr.height>0){var br=rr.bottom-(r._offset+r._length);br>0&&(yr.yb=0,yr.b=br);var Mr=r._offset-rr.top;Mr>0&&(yr.yt=1,yr.t=Mr)}yr[v]=r.anchor==="free"?r.position:r._anchorAxis.domain[Er[0]],r.title.text!==s._dfltTitle[f]&&(yr[Oe]+=rA(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(dr={x:0,y:0,r:0,l:0,t:0,b:0},dr[nr]=r.linewidth,r.mirror&&r.mirror!==!0&&(dr[nr]+=vr),r.mirror===!0||r.mirror==="ticks"?dr[v]=r._anchorAxis.domain[Er[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(dr[v]=[r._counterDomainMin,r._counterDomainMax][Er[1]]))}ur&&(Ae=A1.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(eA(yr,r.automargin),eA(dr,r.automargin)),W0.autoMargin(e,T3(r),yr),W0.autoMargin(e,fA(r),dr),W0.autoMargin(e,cA(r),Ae)}),ut.syncOrAsync(Ie)}};function eA(e,r){if(e){var t=Object.keys(ZM).reduce(function(n,a){return r.indexOf(a)!==-1&&ZM[a].forEach(function(i){n[i]=1}),n},{});Object.keys(e).forEach(function(n){t[n]||(n.length===1?e[n]=0:delete e[n])})}}function CV(e,r){var t=[],n,a=function(i,o){var l=i.xbnd[o];l!==null&&t.push(ut.extendFlat({},i,{x:l}))};if(r.length){for(n=0;ne.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var u=o?-1:1;t=t*u}if(n){var f=e.side,v=l&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;n=n*v}return e._id.charAt(0)==="x"?function(h){return Z0(a+e._offset+e.l2p(_3(h))+t,i+n)}:function(h){return Z0(i+n,a+e._offset+e.l2p(_3(h))+t)}};function _3(e){return e.periodX!==void 0?e.periodX:e.x}function EV(e){var r=e.ticklabelposition||"",t=e.tickson||"",n=function(m){return r.indexOf(m)!==-1},a=n("top"),i=n("left"),o=n("right"),l=n("bottom"),s=n("inside"),u=t!=="boundaries"&&(l||i||a||o);if(!u&&!s)return[0,0];var f=e.side,v=u?(e.tickwidth||0)/2:0,h=Tp,d=e.tickfont?e.tickfont.size:12;return(l||a)&&(v+=d*gc,h+=(e.linewidth||0)/2),(i||o)&&(v+=(e.linewidth||0)/2,h+=Tp),s&&f==="top"&&(h-=d*(1-gc)),(i||a)&&(v=-v),(f==="bottom"||f==="right")&&(h=-h),[u?v:0,s?h:0]}wr.makeTickPath=function(e,r,t,n){n||(n={});var a=n.minor;if(a&&!e.minor)return"";var i=n.len!==void 0?n.len:a?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};wr.makeLabelFns=function(e,r,t){var n=e.ticklabelposition||"",a=e.tickson||"",i=function(B){return n.indexOf(B)!==-1},o=i("top"),l=i("left"),s=i("right"),u=i("bottom"),f=a!=="boundaries"&&(u||l||o||s),v=i("inside"),h=n==="inside"&&e.ticks==="inside"||!v&&e.ticks==="outside"&&a!=="boundaries",d=0,m=0,p=h?e.ticklen:0;if(v?p*=-1:f&&(p=0),h&&(d+=p,t)){var y=ut.deg2rad(t);d=p*Math.cos(y)+1,m=p*Math.sin(y)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(v?-1:1);var _={labelStandoff:d,labelShift:m},C,x,b,A,k=0,M=e.side,D=e._id.charAt(0),z=e.tickangle,F;if(D==="x")F=!v&&M==="bottom"||v&&M==="top",A=F?1:-1,v&&(A*=-1),C=m*A,x=r+d*A,b=F?1:-.2,Math.abs(z)===90&&(v?b+=M1:z===-90&&M==="bottom"?b=gc:z===90&&M==="top"?b=M1:b=.5,k=M1/2*(z/90)),_.xFn=function(B){return B.dx+C+k*B.fontSize},_.yFn=function(B){return B.dy+x+B.fontSize*b},_.anchorFn=function(B,X){if(f){if(l)return"end";if(s)return"start"}return!ea(X)||X===0||X===180?"middle":X*A<0!==v?"end":"start"},_.heightFn=function(B,X,V){return X<-60||X>60?-.5*V:e.side==="top"!==v?-V:0};else if(D==="y"){if(F=!v&&M==="left"||v&&M==="right",A=F?1:-1,v&&(A*=-1),C=d,x=m*A,b=0,!v&&Math.abs(z)===90&&(z===-90&&M==="left"||z===90&&M==="right"?b=gc:b=.5),v){var H=ea(z)?+z:0;if(H!==0){var W=ut.deg2rad(H);k=Math.abs(Math.sin(W))*gc*A,b=0}}_.xFn=function(B){return B.dx+r-(C+B.fontSize*b)*A+k*B.fontSize},_.yFn=function(B){return B.dy+x+B.fontSize*M1},_.anchorFn=function(B,X){return ea(X)&&Math.abs(X)===90?"middle":F?"end":"start"},_.heightFn=function(B,X,V){return e.side==="right"&&(X*=-1),X<-30?-V:X<30?-.5*V:0}}return _};function Lp(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}wr.drawTicks=function(e,r,t){t=t||{};var n=r._id+"tick",a=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+n).data(a,Lp);i.exit().remove(),i.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return T1.stroke(Ao.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return $i.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),qp(r,[tA]),i.attr("transform",t.transFn)};wr.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var n=r._id+"grid",a=r.minor&&r.minor.showgrid,i=a?t.vals.filter(function(_){return _.minor}):[],o=r.showgrid?t.vals.filter(function(_){return!_.minor}):[],l=t.counterAxis;if(l&&wr.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",u=0;u=0;m--){var p=m?h:d;if(p){var y=p.selectAll("path."+n).data(m?o:i,Lp);y.exit().remove(),y.enter().append("path").classed(n,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(_){return T1.stroke(Ao.select(this),_.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(_){return $i.dashStyle(_.minor?r.minor.griddash:r.griddash,_.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(_){return(_.minor?v:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}qp(r,[y3,b3])}};wr.drawZeroLine=function(e,r,t){t=t||t;var n=r._id+"zl",a=wr.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+n).data(a?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return uV(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(T1.stroke,r.zerolinecolor||T1.defaultLine).style("stroke-width",$i.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),qp(r,[m3])};wr.drawLabels=function(e,r,t){t=t||{};var n=e._fullLayout,a=r._id,i=r.zerolinelayer==="above traces",o=t.cls||a+"tick",l=t.vals.filter(function(ee){return ee.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],v=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],Lp),h=[];v.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(ee){var fe=Ao.select(this),he=e._promises.length;fe.call(dc.positionText,s.xFn(ee),s.yFn(ee)).call($i.font,{family:ee.font,size:ee.fontSize,color:ee.fontColor,weight:ee.fontWeight,style:ee.fontStyle,variant:ee.fontVariant,textcase:ee.fontTextcase,lineposition:ee.fontLineposition,shadow:ee.fontShadow}).text(ee.text).call(dc.convertToTspans,e),e._promises[he]?h.push(e._promises.pop().then(function(){d(fe,u)})):d(fe,u)}),qp(r,[WM]),v.exit().remove(),t.repositionOnUpdate&&v.each(function(ee){Ao.select(this).select("text").call(dc.positionText,s.xFn(ee),s.yFn(ee))});function d(ee,fe){ee.each(function(he){var qe=Ao.select(this),ze=qe.select(".text-math-group"),Ne=s.anchorFn(he,fe),Ze=t.transFn.call(qe.node(),he)+(ea(fe)&&+fe!=0?" rotate("+fe+","+s.xFn(he)+","+(s.yFn(he)-he.fontSize/2)+")":""),Ce=dc.lineCount(qe),Je=S1*he.fontSize,ue=s.heightFn(he,ea(fe)?+fe:0,(Ce-1)*Je);if(ue&&(Ze+=Z0(0,ue)),ze.empty()){var ye=qe.select("text");ye.attr({transform:Ze,"text-anchor":Ne}),ye.style("opacity",1),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var Me=$i.bBox(ze.node()).width,pe=Me*{end:-.5,start:.5}[Ne];ze.attr("transform",Ze+Z0(pe,0))}})}r._adjustTickLabelsOverflow=function(){var ee=r.ticklabeloverflow;if(!(!ee||ee==="allow")){var fe=ee.indexOf("hide")!==-1,he=r._id.charAt(0)==="x",qe=0,ze=he?e._fullLayout.width:e._fullLayout.height;if(ee.indexOf("domain")!==-1){var Ne=ut.simpleMap(r.range,r.r2l);qe=r.l2p(Ne[0])+r._offset,ze=r.l2p(Ne[1])+r._offset}var Ze=Math.min(qe,ze),Ce=Math.max(qe,ze),Je=r.side,ue=1/0,ye=-1/0;v.each(function(Q){var $=Ao.select(this),Te=$.select(".text-math-group");if(Te.empty()){var Be=$i.bBox($.node()),Ie=0;he?(Be.right>Ce||Be.leftCe||Be.top+(r.tickangle?0:Q.fontSize/4)r["_visibleLabelMin_"+Ne._id]?$.style("display","none"):Ce.K==="tick"&&!Ze&&$.style("display",null)})})})})},d(v,f+1?f:u);function m(){return h.length&&Promise.all(h)}var p=null;function y(){if(d(v,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){p=r.autotickangles[0];var ee=0,fe=[],he,qe=1;v.each(function(yr){ee=Math.max(ee,yr.fontSize);var dr=r.l2p(yr.x),Ae=x3(this),Ue=$i.bBox(Ae.node());qe=Math.max(qe,dc.lineCount(Ae)),fe.push({top:0,bottom:10,height:10,left:dr-Ue.width/2,right:dr+Ue.width/2+2,width:Ue.width+2})});var ze=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,Ne=l.length,Ze=Math.abs((l[Ne-1].x-l[0].x)*r._m)/(Ne-1),Ce=ze?Ze/2:Ze,Je=ze?r.ticklen:ee*1.25*qe,ue=Math.sqrt(Math.pow(Ce,2)+Math.pow(Je,2)),ye=Ce/ue,Me=r.autotickangles.map(function(yr){return yr*Math.PI/180}),pe=Me.find(function(yr){return Math.abs(Math.cos(yr))<=ye});pe===void 0&&(pe=Me.reduce(function(yr,dr){return Math.abs(Math.cos(yr))re*V&&(W=V,z[D]=F[D]=B[D])}var te=Math.abs(W-H);te-A>0?(te-=A,A*=1+A/te):A=0,r._id.charAt(0)!=="y"&&(A=-A),z[M]=x.p2r(x.r2p(F[M])+k*A),x.autorange==="min"||x.autorange==="max reversed"?(z[0]=null,x._rangeInitial0=void 0,x._rangeInitial1=void 0):(x.autorange==="max"||x.autorange==="min reversed")&&(z[1]=null,x._rangeInitial0=void 0,x._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[x._name+".range"]=z}var K=ut.syncOrAsync(_);return K&&K.then&&e._promises.push(K),K};function PV(e,r,t){var n=r._id+"divider",a=t.vals,i=t.layer.selectAll("path."+n).data(a,Lp);i.exit().remove(),i.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(T1.stroke,r.dividercolor).style("stroke-width",$i.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}wr.getPxPosition=function(e,r){var t=e._fullLayout._size,n=r._id.charAt(0),a=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:n==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:n==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),a==="top"||a==="left")return i._offset;if(a==="bottom"||a==="right")return i._offset+i._length};function rA(e){var r=e.title.font.size,t=(e.title.text.match(dc.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(gc+t*S1):t?r*(t+1)*S1:r}function RV(e,r){var t=e._fullLayout,n=r._id,a=n.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(dc.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*gc:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(M1+l*S1));else{var s=L1(r);if(r.type==="multicategory")o=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),o=10+u+(r.linewidth?r.linewidth-1:0)}s||(a==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=wr.getPxPosition(e,r),v,h,d;a==="x"?(h=r._offset+r._length/2,d=r.side==="top"?f-o:f+o):(d=r._offset+r._length/2,h=r.side==="right"?f+o:f-o,v={rotate:"-90",offset:0});var m;if(r.type!=="multicategory"){var p=r._selections[r._id+"tick"];if(m={selection:p,side:r.side},p&&p.node()&&p.node().parentNode){var y=$i.getTranslate(p.node().parentNode);m.offsetLeft=y.x,m.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=o,eV.draw(e,n+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[a],avoid:m,transform:v,attributes:{x:h,y:d,"text-anchor":"middle"}})}wr.shouldShowZeroLine=function(e,r,t){var n=ut.simpleMap(r.range,r.r2l);return n[0]*n[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Sp)&&(uA(r,0)||!zV(e,r,t,n)||NV(e,r))};wr.clipEnds=function(e,r){return r.filter(function(t){return uA(e,t.x)})};function uA(e,r){var t=e.l2p(r);return t>1&&t1)for(a=1;a=a.min&&e=oV:/%L/.test(r)?e>=iV:/%[SX]/.test(r)?e>=Ap:/%M/.test(r)?e>=k1:/%[HI]/.test(r)?e>=is:/%p/.test(r)?e>=$u:/%[Aadejuwx]/.test(r)?e>=ei:/%[UVW]/.test(r)?e>=Ki:/%[Bbm]/.test(r)?e>=Mp:/%[q]/.test(r)?e>=wp:/%[Yy]/.test(r)?e>=xp:!0}});var dA=ne((que,hA)=>{"use strict";hA.exports=function(r,t,n){var a,i;if(n){var o=t==="reversed"||t==="min reversed"||t==="max reversed";a=n[o?1:0],i=n[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?a:void 0),s=r("autorangeoptions.maxallowed",a===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var S3=ne((Due,pA)=>{"use strict";var UV=dA();pA.exports=function(r,t,n,a){var i=t._template||{},o=t.type||i.type||"-";n("minallowed"),n("maxallowed");var l=n("range");if(!l){var s;!a.noInsiderange&&o!=="log"&&(s=n("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=n("range",s)))}var u=t.getAutorangeDflt(l,a),f=n("autorange",u),v;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,v=!0),v||(u=t.getAutorangeDflt(l,a),f=n("autorange",u)),f&&(UV(n,f,l),(o==="linear"||o==="-")&&n("rangemode")),t.cleanRange()}});var mA=ne((Eue,gA)=>{var YV={left:0,top:0};gA.exports=GV;function GV(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var n=e.clientX||0,a=e.clientY||0,i=VV(r);return t[0]=n-i.left,t[1]=a-i.top,t}function VV(e){return e===window||e===document||e===document.body?YV:e.getBoundingClientRect()}});var C3=ne((Pue,yA)=>{"use strict";var WV=a2();function ZV(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}yA.exports=WV&&ZV()});var _A=ne((Rue,bA)=>{"use strict";bA.exports=function(r,t,n,a,i){var o=(r-n)/(a-n),l=o+t/(a-n),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var MA=ne((zue,wA)=>{"use strict";var xA=gr(),XV=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];wA.exports=function(r,t,n,a){return n==="left"?r=0:n==="center"?r=1:n==="right"?r=2:r=xA.constrain(Math.floor(r*3),0,2),a==="bottom"?t=0:a==="middle"?t=1:a==="top"?t=2:t=xA.constrain(Math.floor(t*3),0,2),XV[t][r]}});var TA=ne((Nue,AA)=>{"use strict";var jV=v1(),JV=qd(),$V=a1().getGraphDiv,KV=t1(),L3=AA.exports={};L3.wrapped=function(e,r,t){e=$V(e),e._fullLayout&&JV.clear(e._fullLayout._uid+KV.HOVERID),L3.raw(e,r,t)};L3.raw=function(r,t){var n=r._fullLayout,a=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&jV.triggerHandler(r,"plotly_beforehover",t)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&a&&r.emit("plotly_unhover",{event:t,points:a}))}});var To=ne((Fue,LA)=>{"use strict";var QV=mA(),q3=o2(),eW=C3(),rW=gr().removeElement,tW=Pa(),mc=LA.exports={};mc.align=_A();mc.getCursor=MA();var SA=TA();mc.unhover=SA.wrapped;mc.unhoverRaw=SA.raw;mc.init=function(r){var t=r.gd,n=1,a=t._context.doubleClickDelay,i=r.element,o,l,s,u,f,v,h,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,eW?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function m(x,b,A){return Math.abs(x)a&&(n=Math.max(n-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var b;v.target===h?b=v:(b={target:h,srcElement:h,toElement:h},Object.keys(v).concat(Object.keys(v.__proto__)).forEach(A=>{var k=v[A];!b[A]&&typeof k!="function"&&(b[A]=k)})),r.clickFn&&r.clickFn(n,b),d||h.dispatchEvent(new MouseEvent("click",x))}t._dragging=!1,t._dragged=!1}};function CA(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}mc.coverSlip=CA;function kA(e){return QV(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Ku=ne((Iue,qA)=>{"use strict";qA.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&r.classed(n,!1)}),t&&r.classed("cursor-"+t,!0)}});var PA=ne((Hue,EA)=>{"use strict";var D3=Ku(),q1="data-savedcursor",DA="!!";EA.exports=function(r,t){var n=r.attr(q1);if(t){if(!n){for(var a=(r.attr("class")||"").split(" "),i=0;i{"use strict";var E3=$a(),nW=cl();RA.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:nW.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:E3({editType:"legend"}),grouptitlefont:E3({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:E3({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Ep=ne(Dp=>{"use strict";Dp.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Dp.isVertical=function(r){return r.orientation!=="h"};Dp.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1}});var N3=ne((Uue,zA)=>{"use strict";var R3=dt(),Qi=gr(),aW=bn(),iW=bo(),oW=P3(),lW=A0(),z3=Ep();function sW(e,r,t,n){var a=r[e]||{},i=aW.newContainer(t,e);function o(te,K){return Qi.coerce(a,i,oW,te,K)}var l=Qi.coerceFont(o,"font",t.font);o("bgcolor",t.paper_bgcolor),o("bordercolor");var s=o("visible");if(s){for(var u,f=function(te,K){var ee=u._input,fe=u;return Qi.coerce(ee,fe,iW,te,K)},v=t.font||{},h=Qi.coerceFont(o,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),d=0,m=!1,p="normal",y=(t.shapes||[]).filter(function(te){return te.showlegend}),_=n.concat(y).filter(function(te){return e===(te.legend||"legend")}),C=0;C<_.length;C++)if(u=_[C],!!u.visible){var x=u._isShape;(u.showlegend||u._dfltShowLegend&&!(u._module&&u._module.attributes&&u._module.attributes.showlegend&&u._module.attributes.showlegend.dflt===!1))&&(d++,u.showlegend&&(m=!0,(!x&&R3.traceIs(u,"pie-like")||u._input.showlegend===!0)&&d++),Qi.coerceFont(f,"legendgrouptitle.font",h)),(!x&&R3.traceIs(u,"bar")&&t.barmode==="stack"||["tonextx","tonexty"].indexOf(u.fill)!==-1)&&(p=z3.isGrouped({traceorder:p})?"grouped+reversed":"reversed"),u.legendgroup!==void 0&&u.legendgroup!==""&&(p=z3.isReversed({traceorder:p})?"reversed+grouped":"grouped")}var b=Qi.coerce(r,t,lW,"showlegend",m&&d>(e==="legend"?1:0));if(b===!1&&(t[e]=void 0),!(b===!1&&!a.uirevision)&&(o("uirevision",t.uirevision),b!==!1)){o("borderwidth");var A=o("orientation"),k=o("yref"),M=o("xref"),D=A==="h",z=k==="paper",F=M==="paper",H,W,B,X="left";D?(H=0,R3.getComponentMethod("rangeslider","isVisible")(r.xaxis)?z?(W=1.1,B="bottom"):(W=1,B="top"):z?(W=-.1,B="top"):(W=0,B="bottom")):(W=1,B="auto",F?H=1.02:(H=1,X="right")),Qi.coerce(a,i,{x:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:H}},"x"),Qi.coerce(a,i,{y:{valType:"number",editType:"legend",min:z?-2:0,max:z?3:1,dflt:W}},"y"),o("traceorder",p),z3.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",X),o("yanchor",B),o("maxheight",D?.5:1),o("valign"),Qi.noneOrAll(a,i,["x","y"]);var V=o("title.text");if(V){o("title.side",D?"left":"top");var re=Qi.extendFlat({},l,{size:Qi.bigFont(l.size)});Qi.coerceFont(o,"title.font",re)}}}}zA.exports=function(r,t,n){var a,i=n.slice(),o=t.shapes;if(o)for(a=0;a{"use strict";var j0=dt(),I3=gr(),uW=I3.pushUnique,F3=!0;NA.exports=function(r,t,n){var a=t._fullLayout;if(t._dragged||t._editing)return;var i=a.legend.itemclick,o=a.legend.itemdoubleclick,l=a.legend.groupclick;n===1&&i==="toggle"&&o==="toggleothers"&&F3&&t.data&&t._context.showTips&&I3.notifier(I3._(t,"Double-click on legend to isolate one trace"),"long"),F3=!1;var s;if(n===1?s=i:n===2&&(s=o),!s)return;var u=l==="togglegroup",f=a.hiddenlabels?a.hiddenlabels.slice():[],v=r.data()[0][0];if(v.groupTitle&&v.noClick)return;var h=t._fullData,d=(a.shapes||[]).filter(function(nr){return nr.showlegend}),m=h.concat(d),p=v.trace;p._isShape&&(p=p._fullInput);var y=p.legendgroup,_,C,x,b,A,k,M={},D=[],z=[],F=[];function H(nr,or){var vr=D.indexOf(nr),rr=M.visible;return rr||(rr=M.visible=[]),D.indexOf(nr)===-1&&(D.push(nr),vr=D.length-1),rr[vr]=or,vr}var W=(a.shapes||[]).map(function(nr){return nr._input}),B=!1;function X(nr,or){W[nr].visible=or,B=!0}function V(nr,or){if(!(v.groupTitle&&!u)){var vr=nr._fullInput||nr,rr=vr._isShape,yr=vr.index;yr===void 0&&(yr=vr._index);var dr=vr.visible===!1?!1:or;rr?X(yr,dr):H(yr,dr)}}var re=p.legend,te=p._fullInput,K=te&&te._isShape;if(!K&&j0.traceIs(p,"pie-like")){var ee=v.label,fe=f.indexOf(ee);if(s==="toggle")fe===-1?f.push(ee):f.splice(fe,1);else if(s==="toggleothers"){var he=fe!==-1,qe=[];for(_=0;_{"use strict";IA.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var OA=ne((Vue,BA)=>{"use strict";var HA=dt(),B3=Ep();BA.exports=function(r,t,n){var a=t._inHover,i=B3.isGrouped(t),o=B3.isReversed(t),l={},s=[],u=!1,f={},v=0,h=0,d,m;function p(te,K,ee){if(t.visible!==!1&&!(n&&te!==t._id))if(K===""||!B3.isGrouped(t)){var fe="~~i"+v;s.push(fe),l[fe]=[ee],v++}else s.indexOf(K)===-1?(s.push(K),u=!0,l[K]=[ee]):l[K].push(ee)}for(d=0;dF&&(z=F)}M[d][0]._groupMinRank=z,M[d][0]._preGroupSort=d}var H=function(te,K){return te[0]._groupMinRank-K[0]._groupMinRank||te[0]._preGroupSort-K[0]._preGroupSort},W=function(te,K){return te.trace.legendrank-K.trace.legendrank||te._preSort-K._preSort};for(M.forEach(function(te,K){te[0]._preGroupSort=K}),M.sort(H),d=0;d{"use strict";var Pp=gr();function UA(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}yc.formatPiePercent=function(r,t){var n=UA((r*100).toPrecision(3));return Pp.numSeparate(n,t)+"%"};yc.formatPieValue=function(r,t){var n=UA(r.toPrecision(10));return Pp.numSeparate(n,t)};yc.getFirstFilled=function(r,t){if(Pp.isArrayOrTypedArray(r))for(var n=0;n{"use strict";var fW=sn(),cW=zt();YA.exports=function(r,t,n,a){var i=n.marker.pattern;i&&i.shape?fW.pointStyle(r,n,a,t):cW.fill(r,t.color)}});var XA=ne((Xue,ZA)=>{"use strict";var VA=zt(),WA=O3().castOption,vW=GA();ZA.exports=function(r,t,n,a){var i=n.marker.line,o=WA(i.color,t.pts)||VA.defaultLine,l=WA(i.width,t.pts)||0;r.call(vW,t,n,a).style("stroke-width",l).call(VA.stroke,o)}});var V3=ne((jue,eT)=>{"use strict";var ri=kt(),U3=dt(),Oa=gr(),jA=Oa.strTranslate,eo=sn(),ko=zt(),Y3=es().extractOpts,Rp=Qa(),hW=XA(),dW=O3().castOption,pW=H3(),JA=12,$A=5,bc=2,gW=10,J0=5;eT.exports=function(r,t,n){var a=t._fullLayout;n||(n=a.legend);var i=n.itemsizing==="constant",o=n.itemwidth,l=(o+pW.itemGap*2)/2,s=jA(l,0),u=function(M,D,z,F){var H;if(M+1)H=M;else if(D&&D.width>0)H=D.width;else return 0;return i?F:Math.min(H,z)};r.each(function(M){var D=ri.select(this),z=Oa.ensureSingle(D,"g","layers");z.style("opacity",M[0].trace.opacity);var F=n.indentation,H=n.valign,W=M[0].lineHeight,B=M[0].height;if(H==="middle"&&F===0||!W||!B)z.attr("transform",null);else{var X={top:1,bottom:-1}[H],V=X*(.5*(W-B+3))||0,re=n.indentation;z.attr("transform",jA(re,V))}var te=z.selectAll("g.legendfill").data([M]);te.enter().append("g").classed("legendfill",!0);var K=z.selectAll("g.legendlines").data([M]);K.enter().append("g").classed("legendlines",!0);var ee=z.selectAll("g.legendsymbols").data([M]);ee.enter().append("g").classed("legendsymbols",!0),ee.selectAll("g.legendpoints").data([M]).enter().append("g").classed("legendpoints",!0)}).each(k).each(h).each(m).each(d).each(y).each(b).each(x).each(f).each(v).each(_).each(C);function f(M){var D=KA(M),z=D.showFill,F=D.showLine,H=D.showGradientLine,W=D.showGradientFill,B=D.anyFill,X=D.anyLine,V=M[0],re=V.trace,te,K,ee=Y3(re),fe=ee.colorscale,he=ee.reversescale,qe=function(ye){if(ye.size())if(z)eo.fillGroupStyle(ye,t,!0);else{var Me="legendfill-"+re.uid;eo.gradient(ye,t,Me,G3(he),fe,"fill")}},ze=function(ye){if(ye.size()){var Me="legendline-"+re.uid;eo.lineGroupStyle(ye),eo.gradient(ye,t,Me,G3(he),fe,"stroke")}},Ne=Rp.hasMarkers(re)||!B?"M5,0":X?"M5,-2":"M5,-3",Ze=ri.select(this),Ce=Ze.select(".legendfill").selectAll("path").data(z||W?[M]:[]);if(Ce.enter().append("path").classed("js-fill",!0),Ce.exit().remove(),Ce.attr("d",Ne+"h"+o+"v6h-"+o+"z").call(qe),F||H){var Je=u(void 0,re.line,gW,$A);K=Oa.minExtend(re,{line:{width:Je}}),te=[Oa.minExtend(V,{trace:K})]}var ue=Ze.select(".legendlines").selectAll("path").data(F||H?[te]:[]);ue.enter().append("path").classed("js-line",!0),ue.exit().remove(),ue.attr("d",Ne+(H?"l"+o+",0.0001":"h"+o)).call(F?eo.lineGroupStyle:ze)}function v(M){var D=KA(M),z=D.anyFill,F=D.anyLine,H=D.showLine,W=D.showMarker,B=M[0],X=B.trace,V=!W&&!F&&!z&&Rp.hasText(X),re,te;function K(Ce,Je,ue,ye){var Me=Oa.nestedProperty(X,Ce).get(),pe=Oa.isArrayOrTypedArray(Me)&&Je?Je(Me):Me;if(i&&pe&&ye!==void 0&&(pe=ye),ue){if(peue[1])return ue[1]}return pe}function ee(Ce){return B._distinct&&B.index&&Ce[B.index]?Ce[B.index]:Ce[0]}if(W||V||H){var fe={},he={};if(W){fe.mc=K("marker.color",ee),fe.mx=K("marker.symbol",ee),fe.mo=K("marker.opacity",Oa.mean,[.2,1]),fe.mlc=K("marker.line.color",ee),fe.mlw=K("marker.line.width",Oa.mean,[0,5],bc),he.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var qe=K("marker.size",Oa.mean,[2,16],JA);fe.ms=qe,he.marker.size=qe}H&&(he.line={width:K("line.width",ee,[0,10],$A)}),V&&(fe.tx="Aa",fe.tp=K("textposition",ee),fe.ts=10,fe.tc=K("textfont.color",ee),fe.tf=K("textfont.family",ee),fe.tw=K("textfont.weight",ee),fe.ty=K("textfont.style",ee),fe.tv=K("textfont.variant",ee),fe.tC=K("textfont.textcase",ee),fe.tE=K("textfont.lineposition",ee),fe.tS=K("textfont.shadow",ee)),re=[Oa.minExtend(B,fe)],te=Oa.minExtend(X,he),te.selectedpoints=null,te.texttemplate=null}var ze=ri.select(this).select("g.legendpoints"),Ne=ze.selectAll("path.scatterpts").data(W?re:[]);Ne.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),Ne.exit().remove(),Ne.call(eo.pointStyle,te,t),W&&(re[0].mrc=3);var Ze=ze.selectAll("g.pointtext").data(V?re:[]);Ze.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Ze.exit().remove(),Ze.selectAll("text").call(eo.textPointStyle,te,t)}function h(M){var D=M[0].trace,z=D.type==="waterfall";if(M[0]._distinct&&z){var F=M[0].trace[M[0].dir].marker;return M[0].mc=F.color,M[0].mlw=F.line.width,M[0].mlc=F.line.color,p(M,this,"waterfall")}var H=[];D.visible&&z&&(H=M[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var W=ri.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(H);W.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),W.exit().remove(),W.each(function(B){var X=ri.select(this),V=D[B[0]].marker,re=u(void 0,V.line,J0,bc);X.attr("d",B[1]).style("stroke-width",re+"px").call(ko.fill,V.color),re&&X.call(ko.stroke,V.line.color)})}function d(M){p(M,this)}function m(M){p(M,this,"funnel")}function p(M,D,z){var F=M[0].trace,H=F.marker||{},W=H.line||{},B=H.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",X=z?F.visible&&F.type===z:U3.traceIs(F,"bar"),V=ri.select(D).select("g.legendpoints").selectAll("path.legend"+z).data(X?[M]:[]);V.enter().append("path").classed("legend"+z,!0).attr("d",B).attr("transform",s),V.exit().remove(),V.each(function(re){var te=ri.select(this),K=re[0],ee=u(K.mlw,H.line,J0,bc);te.style("stroke-width",ee+"px");var fe=K.mcc;if(!n._inHover&&"mc"in K){var he=Y3(H),qe=he.mid;qe===void 0&&(qe=(he.max+he.min)/2),fe=eo.tryColorscale(H,"")(qe)}var ze=fe||K.mc||H.color,Ne=H.pattern,Ze=eo.getPatternAttr,Ce=Ne&&(Ze(Ne.shape,0,"")||Ze(Ne.path,0,""));if(Ce){var Je=Ze(Ne.bgcolor,0,null),ue=Ze(Ne.fgcolor,0,null),ye=Ne.fgopacity,Me=QA(Ne.size,8,10),pe=QA(Ne.solidity,.5,1),U="legend-"+F.uid;te.call(eo.pattern,"legend",t,U,Ce,Me,pe,fe,Ne.fillmode,Je,ue,ye)}else te.call(ko.fill,ze);ee&&ko.stroke(te,K.mlc||W.color)})}function y(M){var D=M[0].trace,z=ri.select(this).select("g.legendpoints").selectAll("path.legendbox").data(D.visible&&U3.traceIs(D,"box-violin")?[M]:[]);z.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),z.exit().remove(),z.each(function(){var F=ri.select(this);if((D.boxpoints==="all"||D.points==="all")&&ko.opacity(D.fillcolor)===0&&ko.opacity((D.line||{}).color)===0){var H=Oa.minExtend(D,{marker:{size:i?JA:Oa.constrain(D.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});z.call(eo.pointStyle,H,t)}else{var W=u(void 0,D.line,J0,bc);F.style("stroke-width",W+"px").call(ko.fill,D.fillcolor),W&&ko.stroke(F,D.line.color)}})}function _(M){var D=M[0].trace,z=ri.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(D.visible&&D.type==="candlestick"?[M,M]:[]);z.enter().append("path").classed("legendcandle",!0).attr("d",function(F,H){return H?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(F,H){var W=ri.select(this),B=D[H?"increasing":"decreasing"],X=u(void 0,B.line,J0,bc);W.style("stroke-width",X+"px").call(ko.fill,B.fillcolor),X&&ko.stroke(W,B.line.color)})}function C(M){var D=M[0].trace,z=ri.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(D.visible&&D.type==="ohlc"?[M,M]:[]);z.enter().append("path").classed("legendohlc",!0).attr("d",function(F,H){return H?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(F,H){var W=ri.select(this),B=D[H?"increasing":"decreasing"],X=u(void 0,B.line,J0,bc);W.style("fill","none").call(eo.dashLine,B.line.dash,X),X&&ko.stroke(W,B.line.color)})}function x(M){A(M,this,"pie")}function b(M){A(M,this,"funnelarea")}function A(M,D,z){var F=M[0],H=F.trace,W=z?H.visible&&H.type===z:U3.traceIs(H,z),B=ri.select(D).select("g.legendpoints").selectAll("path.legend"+z).data(W?[M]:[]);if(B.enter().append("path").classed("legend"+z,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),B.exit().remove(),B.size()){var X=H.marker||{},V=u(dW(X.line.width,F.pts),X.line,J0,bc),re="pieLike",te=Oa.minExtend(H,{marker:{line:{width:V}}},re),K=Oa.minExtend(F,{trace:te},re);hW(B,K,te,t)}}function k(M){var D=M[0].trace,z,F=[];if(D.visible)switch(D.type){case"histogram2d":case"heatmap":F=[["M-15,-2V4H15V-2Z"]],z=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":F=[["M-6,-6V6H6V-6Z"]],z=!0;break;case"densitymapbox":case"densitymap":F=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],z="radial";break;case"cone":F=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],z=!1;break;case"streamtube":F=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],z=!1;break;case"surface":F=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],z=!0;break;case"mesh3d":F=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!1;break;case"volume":F=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!0;break;case"isosurface":F=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],z=!1;break}var H=ri.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(F);H.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),H.exit().remove(),H.each(function(W,B){var X=ri.select(this),V=Y3(D),re=V.colorscale,te=V.reversescale,K=function(qe){if(qe.size()){var ze="legendfill-"+D.uid;eo.gradient(qe,t,ze,G3(te,z==="radial"),re,"fill")}},ee;if(re){if(!z){var he=re.length;ee=B===0?re[te?he-1:0][1]:B===1?re[te?0:he-1][1]:re[Math.floor((he-1)/2)][1]}}else{var fe=D.vertexcolor||D.facecolor||D.color;ee=Oa.isArrayOrTypedArray(fe)?fe[B]||fe[0]:fe}X.attr("d",W[0]),ee?X.call(ko.fill,ee):X.call(K)})}};function G3(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function KA(e){var r=e[0].trace,t=r.contours,n=Rp.hasLines(r),a=Rp.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:n=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:a,showLine:n,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:n||o,anyFill:i||l}}function QA(e,r,t){return e&&Oa.isArrayOrTypedArray(e)?r:e>t?t:e}});var j3=ne((Jue,fT)=>{"use strict";var Pi=kt(),ra=gr(),Z3=ua(),Q0=dt(),rT=v1(),W3=To(),ta=sn(),Np=zt(),_c=ci(),tT=FA(),fa=H3(),X3=Ka(),sT=X3.LINE_SPACING,K0=X3.FROM_TL,nT=X3.FROM_BR,aT=OA(),mW=V3(),iT=Ep(),$0=1,yW=/^legend[0-9]*$/;fT.exports=function(r,t){if(t)oT(r,t);else{var n=r._fullLayout,a=n._legends,i=n._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Pi.select(this),f=u.attr("class"),v=f.split(" ")[0];v.match(yW)&&a.indexOf(v)===-1&&u.remove()});for(var o=0;o1)}var m=n.hiddenlabels||[];if(!l&&(!n.showlegend||!s.length))return o.selectAll("."+a).remove(),n._topdefs.select("#"+i).remove(),Z3.autoMargin(e,a);var p=ra.ensureSingle(o,"g",a,function(D){l||D.attr("pointer-events","all")}),y=ra.ensureSingleById(n._topdefs,"clipPath",i,function(D){D.append("rect")}),_=ra.ensureSingle(p,"rect","bg",function(D){D.attr("shape-rendering","crispEdges")});_.call(Np.stroke,t.bordercolor).call(Np.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var C=ra.ensureSingle(p,"g","scrollbox"),x=t.title;t._titleWidth=0,t._titleHeight=0;var b;x.text?(b=ra.ensureSingle(C,"text",a+"titletext"),b.attr("text-anchor","start").call(ta.font,x.font).text(x.text),Fp(b,C,e,t,$0)):C.selectAll("."+a+"titletext").remove();var A=ra.ensureSingle(p,"rect","scrollbar",function(D){D.attr(fa.scrollBarEnterAttrs).call(Np.fill,fa.scrollBarColor)}),k=C.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var M=k.selectAll("g.traces").data(ra.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(D){var z=D[0].trace;return Q0.traceIs(z,"pie-like")?m.indexOf(D[0].label)!==-1?.5:1:z.visible==="legendonly"?.5:1}).each(function(){Pi.select(this).call(_W,e,t)}).call(mW,e,t).each(function(){l||Pi.select(this).call(xW,e,a)}),ra.syncOrAsync([Z3.previousPromises,function(){return AW(e,k,M,t)},function(){var D=n._size,z=t.borderwidth,F=t.xref==="paper",H=t.yref==="paper";if(x.text&&bW(b,t,z),!l){var W,B;F?W=D.l+D.w*t.x-K0[Ip(t)]*t._width:W=n.width*t.x-K0[Ip(t)]*t._width,H?B=D.t+D.h*(1-t.y)-K0[Hp(t)]*t._effHeight:B=n.height*(1-t.y)-K0[Hp(t)]*t._effHeight;var X=TW(e,a,W,B);if(X)return;if(n.margin.autoexpand){var V=W,re=B;W=F?ra.constrain(W,0,n.width-t._width):V,B=H?ra.constrain(B,0,n.height-t._effHeight):re,W!==V&&ra.log("Constrain "+a+".x to make legend fit inside graph"),B!==re&&ra.log("Constrain "+a+".y to make legend fit inside graph")}ta.setTranslate(p,W,B)}if(A.on(".drag",null),p.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var te=t._effHeight;l&&(te=t._height),_.attr({width:t._width-z,height:te-z,x:z/2,y:z/2}),ta.setTranslate(C,0,0),y.select("rect").attr({width:t._width-2*z,height:te-2*z,x:z,y:z}),ta.setClipUrl(C,i,e),ta.setRect(A,0,0,0,0),delete t._scrollY}else{var K=Math.max(fa.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),ee=t._effHeight-K-2*fa.scrollBarMargin,fe=t._height-t._effHeight,he=ee/fe,qe=Math.min(t._scrollY||0,fe);_.attr({width:t._width-2*z+fa.scrollBarWidth+fa.scrollBarMargin,height:t._effHeight-z,x:z/2,y:z/2}),y.select("rect").attr({width:t._width-2*z+fa.scrollBarWidth+fa.scrollBarMargin,height:t._effHeight-2*z,x:z,y:z+qe}),ta.setClipUrl(C,i,e),Me(qe,K,he),p.on("wheel",function(){qe=ra.constrain(t._scrollY+Pi.event.deltaY/ee*fe,0,fe),Me(qe,K,he),qe!==0&&qe!==fe&&Pi.event.preventDefault()});var ze,Ne,Ze,Ce=function(Te,Be,Ie){var ir=(Ie-Be)/he+Te;return ra.constrain(ir,0,fe)},Je=function(Te,Be,Ie){var ir=(Be-Ie)/he+Te;return ra.constrain(ir,0,fe)},ue=Pi.behavior.drag().on("dragstart",function(){var Te=Pi.event.sourceEvent;Te.type==="touchstart"?ze=Te.changedTouches[0].clientY:ze=Te.clientY,Ze=qe}).on("drag",function(){var Te=Pi.event.sourceEvent;Te.buttons===2||Te.ctrlKey||(Te.type==="touchmove"?Ne=Te.changedTouches[0].clientY:Ne=Te.clientY,qe=Ce(Ze,ze,Ne),Me(qe,K,he))});A.call(ue);var ye=Pi.behavior.drag().on("dragstart",function(){var Te=Pi.event.sourceEvent;Te.type==="touchstart"&&(ze=Te.changedTouches[0].clientY,Ze=qe)}).on("drag",function(){var Te=Pi.event.sourceEvent;Te.type==="touchmove"&&(Ne=Te.changedTouches[0].clientY,qe=Je(Ze,ze,Ne),Me(qe,K,he))});C.call(ye)}function Me(Te,Be,Ie){t._scrollY=e._fullLayout[a]._scrollY=Te,ta.setTranslate(C,0,-Te),ta.setRect(A,t._width,fa.scrollBarMargin+Te*Ie,fa.scrollBarWidth,Be),y.select("rect").attr("y",z+Te)}if(e._context.edits.legendPosition){var pe,U,Q,$;p.classed("cursor-move",!0),W3.init({element:p.node(),gd:e,prepFn:function(Te){if(Te.target!==A.node()){var Be=ta.getTranslate(p);Q=Be.x,$=Be.y}},moveFn:function(Te,Be){if(Q!==void 0&&$!==void 0){var Ie=Q+Te,ir=$+Be;ta.setTranslate(p,Ie,ir),pe=W3.align(Ie,t._width,D.l,D.l+D.w,t.xanchor),U=W3.align(ir+t._height,-t._height,D.t+D.h,D.t,t.yanchor)}},doneFn:function(){if(pe!==void 0&&U!==void 0){var Te={};Te[a+".x"]=pe,Te[a+".y"]=U,Q0.call("_guiRelayout",e,Te)}},clickFn:function(Te,Be){var Ie=o.selectAll("g.traces").filter(function(){var ir=this.getBoundingClientRect();return Be.clientX>=ir.left&&Be.clientX<=ir.right&&Be.clientY>=ir.top&&Be.clientY<=ir.bottom});Ie.size()>0&&uT(e,p,Ie,Te,Be)}})}}],e)}}function zp(e,r,t){var n=e[0],a=n.width,i=r.entrywidthmode,o=n.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||a)}function uT(e,r,t,n,a){var i=t.data()[0][0].trace,o={event:a,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(o.group=i._group),Q0.traceIs(i,"pie-like")&&(o.label=t.datum()[0].label);var l=rT.triggerHandler(e,"plotly_legendclick",o);if(n===1){if(l===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&tT(t,e,n)},e._context.doubleClickDelay)}else if(n===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var s=rT.triggerHandler(e,"plotly_legenddoubleclick",o);s!==!1&&l!==!1&&tT(t,e,n)}}function _W(e,r,t){var n=Bp(t),a=e.data()[0][0],i=a.trace,o=Q0.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,u,f;a.groupTitle?(u=a.groupTitle.text,f=a.groupTitle.font):(f=t.font,t.entries?u=a.text:(u=o?a.label:i.name,i._meta&&(u=ra.templateString(u,i._meta))));var v=ra.ensureSingle(e,"text",n+"text");v.attr("text-anchor","start").call(ta.font,f).text(l?lT(u,s):u);var h=t.indentation+t.itemwidth+fa.itemGap*2;_c.positionText(v,h,0),l?v.call(_c.makeEditable,{gd:r,text:u}).call(Fp,e,r,t).on("edit",function(d){this.text(lT(d,s)).call(Fp,e,r,t);var m=a.trace._fullInput||{},p={};return p.name=d,m._isShape?Q0.call("_guiRelayout",r,"shapes["+i.index+"].name",p.name):Q0.call("_guiRestyle",r,p,i.index)}):Fp(v,e,r,t)}function lT(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var n=t-e.length;n>0;n--)e+=" ";return e}function xW(e,r,t){var n=r._context.doubleClickDelay,a,i=1,o=ra.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(Np.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){a=new Date().getTime(),a-r._legendMouseDownTimen&&(i=Math.max(i-1,1)),uT(r,l,e,i,Pi.event)}}))}function Fp(e,r,t,n,a){n._inHover&&e.attr("data-notex",!0),_c.convertToTspans(e,t,function(){wW(r,t,n,a)})}function wW(e,r,t,n){var a=e.data()[0][0];if(!t._inHover&&a&&!a.trace.showlegend){e.remove();return}var i=e.select("g[class*=math-group]"),o=i.node(),l=Bp(t);t||(t=r._fullLayout[l]);var s=t.borderwidth,u;n===$0?u=t.title.font:a.groupTitle?u=a.groupTitle.font:u=t.font;var f=u.size*sT,v,h;if(o){var d=ta.bBox(o);v=d.height,h=d.width,n===$0?ta.setTranslate(i,s,s+v*.75):ta.setTranslate(i,0,v*.25)}else{var m="."+l+(n===$0?"title":"")+"text",p=e.select(m),y=_c.lineCount(p),_=p.node();if(v=f*y,h=_?ta.bBox(_).width:0,n===$0)t.title.side==="left"&&(h+=fa.itemGap*2),_c.positionText(p,s+fa.titlePad,s+f);else{var C=fa.itemGap*2+t.indentation+t.itemwidth;a.groupTitle&&(C=fa.itemGap,h-=t.indentation+t.itemwidth),_c.positionText(p,C,-f*((y-1)/2-.3))}}n===$0?(t._titleWidth=h,t._titleHeight=v):(a.lineHeight=f,a.height=Math.max(v,16)+3,a.width=h)}function MW(e){var r=0,t=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(r=e._titleWidth),n.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function AW(e,r,t,n){var a=e._fullLayout,i=Bp(n);n||(n=a[i]);var o=a._size,l=iT.isVertical(n),s=iT.isGrouped(n),u=n.entrywidthmode==="fraction",f=n.borderwidth,v=2*f,h=fa.itemGap,d=n.indentation+n.itemwidth+h*2,m=2*(f+h),p=Hp(n),y=n.y<0||n.y===0&&p==="top",_=n.y>1||n.y===1&&p==="bottom",C=n.tracegroupgap,x={},{maxheight:b,orientation:A,yref:k}=n,M=A==="v"&&k==="paper"?o.h:a.height;n._maxHeight=Math.max(b>1?b:b*M,30);var D=0;n._width=0,n._height=0;var z=MW(n);if(l)t.each(function(ye){var Me=ye[0].height;ta.setTranslate(this,f+z[0],f+z[1]+n._height+Me/2+h),n._height+=Me,n._width=Math.max(n._width,ye[0].width)}),D=d+n._width,n._width+=h+d+v,n._height+=m,s&&(r.each(function(ye,Me){ta.setTranslate(this,0,Me*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var F=Ip(n),H=n.x<0||n.x===0&&F==="right",W=n.x>1||n.x===1&&F==="left",B=_||y,X=a.width/2;n._maxWidth=Math.max(H?B&&F==="left"?o.l+o.w:X:W?B&&F==="right"?o.r+o.w:X:o.w,2*d);var V=0,re=0;t.each(function(ye){var Me=zp(ye,n,d);V=Math.max(V,Me),re+=Me}),D=null;var te=0;if(s){var K=0,ee=0,fe=0;r.each(function(){var ye=0,Me=0;Pi.select(this).selectAll("g.traces").each(function(U){var Q=zp(U,n,d),$=U[0].height;ta.setTranslate(this,z[0],z[1]+f+h+$/2+Me),Me+=$,ye=Math.max(ye,Q),x[U[0].trace.legendgroup]=ye});var pe=ye+h;ee>0&&pe+f+ee>n._maxWidth?(te=Math.max(te,ee),ee=0,fe+=K+C,K=Me):K=Math.max(K,Me),ta.setTranslate(this,ee,fe),ee+=pe}),n._width=Math.max(te,ee)+f,n._height=fe+K+m}else{var he=t.size(),qe=re+v+(he-1)*h=n._maxWidth&&(te=Math.max(te,Ce),Ne=0,Ze+=ze,n._height+=ze,ze=0),ta.setTranslate(this,z[0]+f+Ne,z[1]+f+Ze+Me/2+h),Ce=Ne+pe+h,Ne+=U,ze=Math.max(ze,Me)}),qe?(n._width=Ne+v,n._height=ze+m):(n._width=Math.max(te,Ce)+v,n._height+=ze+m)}}n._width=Math.ceil(Math.max(n._width+z[0],n._titleWidth+2*(f+fa.titlePad))),n._height=Math.ceil(Math.max(n._height+z[1],n._titleHeight+2*(f+fa.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var Je=e._context.edits,ue=Je.legendText||Je.legendPosition;t.each(function(ye){var Me=Pi.select(this).select("."+i+"toggle"),pe=ye[0].height,U=ye[0].trace.legendgroup,Q=zp(ye,n,d);s&&U!==""&&(Q=x[U]);var $=ue?d:D||Q;!l&&!u&&($+=h/2),ta.setRect(Me,0,-pe/2,$,pe)})}function TW(e,r,t,n){var a=e._fullLayout,i=a[r],o=Ip(i),l=Hp(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",v=i.x<.5?"l":"r",h={r:a.width-t,l:t+i._width,b:a.height-n,t:n+i._effHeight};if(s&&u)return Z3.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*K0[o],r:i._width*nT[o],b:i._effHeight*nT[l],t:i._effHeight*K0[l]});s?e._fullLayout._reservedMargin[r][f]=h[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][v]=h[v]:e._fullLayout._reservedMargin[r][f]=h[f]}function Ip(e){return ra.isRightAnchor(e)?"right":ra.isCenterAnchor(e)?"center":"left"}function Hp(e){return ra.isBottomAnchor(e)?"bottom":ra.isMiddleAnchor(e)?"middle":"top"}function Bp(e){return e._id||"legend"}});var Q3=ne(K3=>{"use strict";var xc=kt(),Qs=Bt(),cT=Jl(),On=gr(),kW=On.pushUnique,J3=On.strTranslate,SW=On.strRotate,CW=v1(),So=ci(),LW=PA(),os=sn(),_a=zt(),Op=To(),ls=Cn(),qW=Pa().zindexSeparator,rv=dt(),yl=Vu(),wc=t1(),DW=N3(),EW=j3(),bT=wc.YANGLE,$3=Math.PI*bT/180,PW=1/Math.sin($3),RW=Math.cos($3),zW=Math.sin($3),Ln=wc.HOVERARROWSIZE,Nt=wc.HOVERTEXTPAD,vT={box:!0,ohlc:!0,violin:!0,candlestick:!0},NW={scatter:!0,scattergl:!0,splom:!0};function hT(e,r){return e.distance-r.distance}K3.hover=function(r,t,n,a){r=On.getGraphDiv(r);var i=t.target;On.throttle(r._fullLayout._uid+wc.HOVERID,wc.HOVERMINTIME,function(){FW(r,t,n,a,i)})};K3.loneHover=function(r,t){var n=!0;Array.isArray(r)||(n=!1,r=[r]);var a=t.gd,i=AT(a),o=TT(a),l=r.map(function(y){var _=y._x0||y.x0||y.x||0,C=y._x1||y.x1||y.x||0,x=y._y0||y.y0||y.y||0,b=y._y1||y.y1||y.y||0,A=y.eventData;if(A){var k=Math.min(_,C),M=Math.max(_,C),D=Math.min(x,b),z=Math.max(x,b),F=y.trace;if(rv.traceIs(F,"gl3d")){var H=a._fullLayout[F.scene]._scene.container,W=H.offsetLeft,B=H.offsetTop;k+=W,M+=W,D+=B,z+=B}A.bbox={x0:k+o,x1:M+o,y0:D+i,y1:z+i},t.inOut_bbox&&t.inOut_bbox.push(A.bbox)}else A=!1;return{color:y.color||_a.defaultLine,x0:y.x0||y.x||0,x1:y.x1||y.x||0,y0:y.y0||y.y||0,y1:y.y1||y.y||0,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:y.text,name:y.name,idealAlign:y.idealAlign,borderColor:y.borderColor,fontFamily:y.fontFamily,fontSize:y.fontSize,fontColor:y.fontColor,fontWeight:y.fontWeight,fontStyle:y.fontStyle,fontVariant:y.fontVariant,nameLength:y.nameLength,textAlign:y.textAlign,trace:y.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:y.hovertemplate||!1,hovertemplateLabels:y.hovertemplateLabels||!1,eventData:A}}),s=!1,u=xT(l,{gd:a,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||_a.background,container:xc.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,v=5,h=0,d=0;f.sort(function(y,_){return y.y0-_.y0}).each(function(y,_){var C=y.y0-y.by/2;C-vM[0]._length||$<0||$>D[0]._length)return Op.unhoverRaw(e,r)}if(r.pointerX=Q+M[0]._offset,r.pointerY=$+D[0]._offset,"xval"in r?re=yl.flat(i,r.xval):re=yl.p2c(M,Q),"yval"in r?te=yl.flat(i,r.yval):te=yl.p2c(D,$),!Qs(re[0])||!Qs(te[0]))return On.warn("Fx.hover failed",r,e),Op.unhoverRaw(e,r)}var Ie=1/0;function ir(rt,Qt){for(ee=0;eeue&&(X.splice(0,ue),Ie=X[0].distance),v&&B!==0&&X.length===0){Je.distance=B,Je.index=!1;var fn=he._module.hoverPoints(Je,Ze,Ce,"closest",{hoverLayer:l._hoverlayer});if(fn&&(fn=fn.filter(function(It){return It.spikeDistance<=B})),fn&&fn.length){var ha,Sn=fn.filter(function(It){return It.xa.showspikes&&It.xa.spikesnap!=="hovered data"});if(Sn.length){var Na=Sn[0];Qs(Na.x0)&&Qs(Na.y0)&&(ha=Oe(Na),(!ye.vLinePoint||ye.vLinePoint.spikeDistance>ha.spikeDistance)&&(ye.vLinePoint=ha))}var da=fn.filter(function(It){return It.ya.showspikes&&It.ya.spikesnap!=="hovered data"});if(da.length){var wn=da[0];Qs(wn.x0)&&Qs(wn.y0)&&(ha=Oe(wn),(!ye.hLinePoint||ye.hLinePoint.spikeDistance>ha.spikeDistance)&&(ye.hLinePoint=ha))}}}}}ir();function ur(rt,Qt,Ct){for(var dn=null,pn=1/0,tn,fn=0;fn0&&Math.abs(rt.distance)Ke-1;Ur--)Pr(X[Ur]);X=mr,rr()}var lr=e._hoverdata,_e=[],ke=AT(e),$e=TT(e);for(K=0;K1||X.length>1)||h==="closest"&&Me&&X.length>1,cn=_a.combine(l.plot_bgcolor||_a.background,l.paper_bgcolor),un=xT(X,{gd:e,hovermode:h,rotateLabels:jt,bgColor:cn,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),Kt=un.hoverLabels;if(yl.isUnifiedHover(h)||(HW(Kt,jt,l,un.commonLabelBoundingBox),MT(Kt,jt,l._invScaleX,l._invScaleY)),a&&a.tagName){var aa=rv.getComponentMethod("annotations","hasClickToShow")(e,_e);LW(xc.select(a),aa?"pointer":"")}!a||n||!UW(e,r,lr)||(lr&&e.emit("plotly_unhover",{event:r,points:lr}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:M,yaxes:D,xvals:re,yvals:te}))}function _T(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var IW=/([\s\S]*)<\/extra>/;function xT(e,r){var t=r.gd,n=t._fullLayout,a=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||wc.HOVERFONT,v=r.fontSize||wc.HOVERFONTSIZE,h=r.fontWeight||n.font.weight,d=r.fontStyle||n.font.style,m=r.fontVariant||n.font.variant,p=r.fontTextcase||n.font.textcase,y=r.fontLineposition||n.font.lineposition,_=r.fontShadow||n.font.shadow,C=e[0],x=C.xa,b=C.ya,A=a.charAt(0),k=A+"Label",M=C[k];if(M===void 0&&x.type==="multicategory")for(var D=0;Dn.width-lr&&(_e=n.width-lr),Er.attr("d","M"+(kr-_e)+",0L"+(kr-_e+Ln)+","+Ur+Ln+"H"+lr+"v"+Ur+(Nt*2+pr.height)+"H"+-lr+"V"+Ur+Ln+"H"+(kr-_e-Ln)+"Z"),kr=_e,ee.minX=kr-lr,ee.maxX=kr+lr,x.side==="top"?(ee.minY=Pr-(Nt*2+pr.height),ee.maxY=Pr-Nt):(ee.minY=Pr+Nt,ee.maxY=Pr+(Nt*2+pr.height))}else{var ke,$e,We;b.side==="right"?(ke="start",$e=1,We="",kr=x._offset+x._length):(ke="end",$e=-1,We="-",kr=x._offset),Pr=b._offset+(C.y0+C.y1)/2,Sr.attr("text-anchor",ke),Er.attr("d","M0,0L"+We+Ln+","+Ln+"V"+(Nt+pr.height/2)+"h"+We+(Nt*2+pr.width)+"V-"+(Nt+pr.height/2)+"H"+We+Ln+"V-"+Ln+"Z"),ee.minY=Pr-(Nt+pr.height/2),ee.maxY=Pr+(Nt+pr.height/2),b.side==="right"?(ee.minX=kr+Ln,ee.maxX=kr+Ln+(Nt*2+pr.width)):(ee.minX=kr-Ln-(Nt*2+pr.width),ee.maxX=kr-Ln);var qr=pr.height/2,Vr=F-pr.top-qr,Hr="clip"+n._uid+"commonlabel"+b._id,lt;if(kr=0?dr=or:vr+$=0?dr=vr:rr+$=0?Ae=Oe:nr+Te=0?Ae=nr:yr+Te=0,(Xe.idealAlign==="top"||!St)&&hn?(We-=Vr/2,Xe.anchor="end"):St?(We+=Vr/2,Xe.anchor="start"):Xe.anchor="middle",Xe.crossPos=We;else{if(Xe.pos=We,St=$e+qr/2+Rt<=H,hn=$e-qr/2-Rt>=0,(Xe.idealAlign==="left"||!St)&&hn)$e-=qr/2,Xe.anchor="end";else if(St)$e+=qr/2,Xe.anchor="start";else{Xe.anchor="middle";var Fn=Rt/2,$n=$e+Fn-H,jt=$e-Fn;$n>0&&($e-=$n),jt<0&&($e+=-jt)}Xe.crossPos=$e}Pr.attr("text-anchor",Xe.anchor),lr&&Ur.attr("text-anchor",Xe.anchor),Er.attr("transform",J3($e,We)+(i?SW(bT):""))}),{hoverLabels:Ue,commonLabelBoundingBox:ee}}function dT(e,r,t,n,a,i){var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=On.templateString(e.name,e.trace._meta)),o=mT(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===a?l=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o);var f=e.hovertemplate||!1;if(f){var v=e.hovertemplateLabels||e;e[s+"Label"]!==a&&(v[s+"other"]=v[s+"Val"],v[s+"otherLabel"]=v[s+"Label"]),l=On.hovertemplateString(f,v,n._d3locale,e.eventData[0]||{},e.trace._meta),l=l.replace(IW,function(h,d){return o=mT(d,e.nameLength),""})}return[l,o]}function HW(e,r,t,n){var a=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),u=new Array(s),f=0,v=n.minX,h=n.maxX,d=n.minY,m=n.maxY,p=function(re){return re*t._invScaleX},y=function(re){return re*t._invScaleY};e.each(function(re){var te=re[a],K=re[i],ee=te._id.charAt(0)==="x",fe=te.range;f===0&&fe&&fe[0]>fe[1]!==ee&&(l=-1);var he=0,qe=ee?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var ze=wT(re,r),Ne=re.anchor,Ze=Ne==="end"?-1:1,Ce,Je;if(Ne==="middle")Ce=re.crossPos+(ee?y(ze.y-re.by/2):p(re.bx/2+re.tx2width/2)),Je=Ce+(ee?y(re.by):p(re.bx));else if(ee)Ce=re.crossPos+y(Ln+ze.y)-y(re.by/2-Ln),Je=Ce+y(re.by);else{var ue=p(Ze*Ln+ze.x),ye=ue+p(Ze*re.bx);Ce=re.crossPos+Math.min(ue,ye),Je=re.crossPos+Math.max(ue,ye)}ee?d!==void 0&&m!==void 0&&Math.min(Je,m)-Math.max(Ce,d)>1&&(K.side==="left"?(he=K._mainLinePosition,qe=t.width):qe=K._mainLinePosition):v!==void 0&&h!==void 0&&Math.min(Je,h)-Math.max(Ce,v)>1&&(K.side==="top"?(he=K._mainLinePosition,qe=t.height):qe=K._mainLinePosition)}u[f++]=[{datum:re,traceIndex:re.trace.index,dp:0,pos:re.pos,posref:re.posref,size:re.by*(ee?PW:1)/2,pmin:he,pmax:qe}]}),u.sort(function(re,te){return re[0].posref-te[0].posref||l*(te[0].traceIndex-re[0].traceIndex)});var _,C,x,b,A,k,M;function D(re){var te=re[0],K=re[re.length-1];if(C=te.pmin-te.pos-te.dp+te.size,x=K.pos+K.dp+K.size-te.pmax,C>.01){for(A=re.length-1;A>=0;A--)re[A].dp+=C;_=!1}if(!(x<.01)){if(C<-.01){for(A=re.length-1;A>=0;A--)re[A].dp-=x;_=!1}if(_){var ee=0;for(b=0;bte.pmax&&ee++;for(b=re.length-1;b>=0&&!(ee<=0);b--)k=re[b],k.pos>te.pmax-1&&(k.del=!0,ee--);for(b=0;b=0;A--)re[A].dp-=x;for(b=re.length-1;b>=0&&!(ee<=0);b--)k=re[b],k.pos+k.dp+k.size>te.pmax&&(k.del=!0,ee--)}}}for(;!_&&o<=s;){for(o++,_=!0,b=0;b.01){for(A=F.length-1;A>=0;A--)F[A].dp+=C;for(z.push.apply(z,F),u.splice(b+1,1),M=0,A=z.length-1;A>=0;A--)M+=z[A].dp;for(x=M/z.length,A=z.length-1;A>=0;A--)z[A].dp-=x;_=!1}else b++}u.forEach(D)}for(b=u.length-1;b>=0;b--){var B=u[b];for(A=B.length-1;A>=0;A--){var X=B[A],V=X.datum;V.offset=X.dp,V.del=X.del}}}function wT(e,r){var t=0,n=e.offset;return r&&(n*=-zW,t=e.offset*RW),{x:t,y:n}}function BW(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Ln+Nt),n=t+r*(e.txwidth+Nt),a=e.anchor==="middle";return a&&(t-=e.tx2width/2,n+=e.txwidth/2+Nt),{alignShift:r,textShiftX:t,text2ShiftX:n}}function MT(e,r,t,n){var a=function(o){return o*t},i=function(o){return o*n};e.each(function(o){var l=xc.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,v=BW(o),h=wT(o,r),d=h.x,m=h.y,p=u==="middle";l.select("path").attr("d",p?"M-"+a(o.bx/2+o.tx2width/2)+","+i(m-o.by/2)+"h"+a(o.bx)+"v"+i(o.by)+"h-"+a(o.bx)+"Z":"M0,0L"+a(f*Ln+d)+","+i(Ln+m)+"v"+i(o.by/2-Ln)+"h"+a(f*o.bx)+"v-"+i(o.by)+"H"+a(f*Ln+d)+"V"+i(m-Ln)+"Z");var y=d+v.textShiftX,_=m+o.ty0-o.by/2+Nt,C=o.textAlign||"auto";C!=="auto"&&(C==="left"&&u!=="start"?(s.attr("text-anchor","start"),y=p?-o.bx/2-o.tx2width/2+Nt:-o.bx-Nt):C==="right"&&u!=="end"&&(s.attr("text-anchor","end"),y=p?o.bx/2-o.tx2width/2-Nt:o.bx+Nt)),s.call(So.positionText,a(y),i(_)),o.tx2width&&(l.select("text.name").call(So.positionText,a(v.text2ShiftX+v.alignShift*Nt+d),i(m+o.ty0-o.by/2+Nt)),l.select("rect").call(os.setRect,a(v.text2ShiftX+(v.alignShift-1)*o.tx2width/2+d),i(m-o.by/2-1),a(o.tx2width),i(o.by+2)))})}function OW(e,r){var t=e.index,n=e.trace||{},a=e.cd[0],i=e.cd[t]||{};function o(h){return h||Qs(h)&&h===0}var l=Array.isArray(t)?function(h,d){var m=On.castOption(a,t,h);return o(m)?m:On.extractOption({},n,"",d)}:function(h,d){return On.extractOption(i,n,h,d)};function s(h,d,m){var p=l(d,m);o(p)&&(e[h]=p)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=On.constrain(e.x0,0,e.xa._length),e.x1=On.constrain(e.x1,0,e.xa._length),e.y0=On.constrain(e.y0,0,e.ya._length),e.y1=On.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:ls.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:ls.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=ls.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+ls.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=ls.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+ls.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var v=e.hoverinfo||e.trace.hoverinfo;return v&&v!=="all"&&(v=Array.isArray(v)?v:v.split("+"),v.indexOf("x")===-1&&(e.xLabel=void 0),v.indexOf("y")===-1&&(e.yLabel=void 0),v.indexOf("z")===-1&&(e.zLabel=void 0),v.indexOf("text")===-1&&(e.text=void 0),v.indexOf("name")===-1&&(e.name=void 0)),e}function pT(e,r,t){var n=t.container,a=t.fullLayout,i=a._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(n.selectAll(".spikeline").remove(),!!(s||l)){var v=_a.combine(a.plot_bgcolor,a.paper_bgcolor);if(l){var h=r.hLinePoint,d,m;u=h&&h.xa,f=h&&h.ya;var p=f.spikesnap;p==="cursor"?(d=o.pointerX,m=o.pointerY):(d=u._offset+h.x,m=f._offset+h.y);var y=cT.readability(h.color,v)<1.5?_a.contrast(v):h.color,_=f.spikemode,C=f.spikethickness,x=f.spikecolor||y,b=ls.getPxPosition(e,f),A,k;if(_.indexOf("toaxis")!==-1||_.indexOf("across")!==-1){if(_.indexOf("toaxis")!==-1&&(A=b,k=d),_.indexOf("across")!==-1){var M=f._counterDomainMin,D=f._counterDomainMax;f.anchor==="free"&&(M=Math.min(M,f.position),D=Math.max(D,f.position)),A=i.l+M*i.w,k=i.l+D*i.w}n.insert("line",":first-child").attr({x1:A,x2:k,y1:m,y2:m,"stroke-width":C,stroke:x,"stroke-dasharray":os.dashStyle(f.spikedash,C)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:A,x2:k,y1:m,y2:m,"stroke-width":C+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}_.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?C:-C),cy:m,r:C,fill:x}).classed("spikeline",!0)}if(s){var z=r.vLinePoint,F,H;u=z&&z.xa,f=z&&z.ya;var W=u.spikesnap;W==="cursor"?(F=o.pointerX,H=o.pointerY):(F=u._offset+z.x,H=f._offset+z.y);var B=cT.readability(z.color,v)<1.5?_a.contrast(v):z.color,X=u.spikemode,V=u.spikethickness,re=u.spikecolor||B,te=ls.getPxPosition(e,u),K,ee;if(X.indexOf("toaxis")!==-1||X.indexOf("across")!==-1){if(X.indexOf("toaxis")!==-1&&(K=te,ee=H),X.indexOf("across")!==-1){var fe=u._counterDomainMin,he=u._counterDomainMax;u.anchor==="free"&&(fe=Math.min(fe,u.position),he=Math.max(he,u.position)),K=i.t+(1-he)*i.h,ee=i.t+(1-fe)*i.h}n.insert("line",":first-child").attr({x1:F,x2:F,y1:K,y2:ee,"stroke-width":V,stroke:re,"stroke-dasharray":os.dashStyle(u.spikedash,V)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:F,x2:F,y1:K,y2:ee,"stroke-width":V+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}X.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:F,cy:te-(u.side!=="top"?V:-V),r:V,fill:re}).classed("spikeline",!0)}}}function UW(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var n=t.length-1;n>=0;n--){var a=t[n],i=e._hoverdata[n];if(a.curveNumber!==i.curveNumber||String(a.pointNumber)!==String(i.pointNumber)||String(a.pointNumbers)!==String(i.pointNumbers))return!0}return!1}function gT(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function mT(e,r){return So.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function YW(e,r){for(var t=r.charAt(0),n=[],a=[],i=[],o=0;o{"use strict";var GW=gr(),VW=zt(),WW=Vu().isUnifiedHover;kT.exports=function(r,t,n,a){a=a||{};var i=t.legend;function o(l){a.font[l]||(a.font[l]=i?t.legend.font[l]:t.font[l])}t&&WW(t.hovermode)&&(a.font||(a.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(a.bgcolor||(a.bgcolor=VW.combine(t.legend.bgcolor,t.paper_bgcolor)),a.bordercolor||(a.bordercolor=t.legend.bordercolor)):a.bgcolor||(a.bgcolor=t.paper_bgcolor)),n("hoverlabel.bgcolor",a.bgcolor),n("hoverlabel.bordercolor",a.bordercolor),n("hoverlabel.namelength",a.namelength),GW.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}});var CT=ne((Que,ST)=>{"use strict";var ZW=gr(),XW=Up(),jW=_0();ST.exports=function(r,t){function n(a,i){return ZW.coerce(r,t,jW,a,i)}XW(r,t,n)}});var DT=ne((efe,qT)=>{"use strict";var LT=gr(),JW=ud(),$W=Up();qT.exports=function(r,t,n,a){function i(l,s){return LT.coerce(r,t,JW,l,s)}var o=LT.extendFlat({},a.hoverlabel);t.hovertemplate&&(o.namelength=-1),$W(r,t,i,o)}});var e5=ne((rfe,ET)=>{"use strict";var KW=gr(),QW=_0();ET.exports=function(r,t){function n(a,i){return t[a]!==void 0?t[a]:KW.coerce(r,t,QW,a,i)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var zT=ne((tfe,RT)=>{"use strict";var PT=gr(),eZ=_0(),rZ=e5(),tZ=Up();RT.exports=function(r,t){function n(f,v){return PT.coerce(r,t,eZ,f,v)}var a=rZ(r,t);a&&(n("hoverdistance"),n("spikedistance"));var i=n("dragmode");i==="select"&&n("selectdirection");var o=t._has("mapbox"),l=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l||s)&&u===1||(o||l)&&s&&u===2)&&(t.dragmode="pan"),tZ(r,t,n),PT.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var IT=ne((nfe,FT)=>{"use strict";var r5=gr(),NT=dt();FT.exports=function(r){var t=r.calcdata,n=r._fullLayout;function a(u){return function(f){return r5.coerceHoverinfo({hoverinfo:f},{_module:u._module},n)}}for(var i=0;i{"use strict";var aZ=dt(),iZ=Q3().hover;HT.exports=function(r,t,n){var a=aZ.getComponentMethod("annotations","onClick")(r,r._hoverdata);n!==void 0&&iZ(r,t,n,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(a&&a.then?a.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var ss=ne((ife,YT)=>{"use strict";var oZ=kt(),Yp=gr(),lZ=To(),D1=Vu(),OT=_0(),UT=Q3();YT.exports={moduleType:"component",name:"fx",constants:t1(),schema:{layout:OT},attributes:ud(),layoutAttributes:OT,supplyLayoutGlobalDefaults:CT(),supplyDefaults:DT(),supplyLayoutDefaults:zT(),calc:IT(),getDistanceFunction:D1.getDistanceFunction,getClosest:D1.getClosest,inbox:D1.inbox,quadrature:D1.quadrature,appendArrayPointValue:D1.appendArrayPointValue,castHoverOption:uZ,castHoverinfo:fZ,hover:UT.hover,unhover:lZ.unhover,loneHover:UT.loneHover,loneUnhover:sZ,click:BT()};function sZ(e){var r=Yp.isD3Selection(e)?e:oZ.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function uZ(e,r,t){return Yp.castOption(e,r,"hoverlabel."+t)}function fZ(e,r,t){function n(a){return Yp.coerceHoverinfo({hoverinfo:a},{_module:e._module},r)}return Yp.castOption(e,t,"hoverinfo",n)}});var tv=ne(eu=>{"use strict";eu.selectMode=function(e){return e==="lasso"||e==="select"};eu.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};eu.openMode=function(e){return e==="drawline"||e==="drawopenpath"};eu.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};eu.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};eu.selectingOrDrawing=function(e){return eu.freeMode(e)||eu.rectMode(e)}});var Gp=ne((lfe,GT)=>{"use strict";GT.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var Vp=ne((sfe,VT)=>{"use strict";VT.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var Zp=ne((ufe,WT)=>{"use strict";var Wp=32;WT.exports={CIRCLE_SIDES:Wp,i000:0,i090:Wp/4,i180:Wp/2,i270:Wp/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var Xp=ne((ffe,XT)=>{"use strict";var cZ=gr().strTranslate;function ZT(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function vZ(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function hZ(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return ZT(e,t[r])}}function dZ(e){return cZ(e.xaxis._offset,e.yaxis._offset)}XT.exports={p2r:ZT,r2p:vZ,axValue:hZ,getTransform:dZ}});var Qu=ne(ru=>{"use strict";var pZ=Y2(),$T=Zp(),nv=$T.CIRCLE_SIDES,t5=$T.SQRT2,KT=Xp(),jT=KT.p2r,JT=KT.r2p,gZ=[0,3,4,5,6,1,2],mZ=[0,3,4,1,2];ru.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",n=0;n0&&s{"use strict";var nk=tv(),yZ=nk.drawMode,bZ=nk.openMode,av=Zp(),QT=av.i000,ek=av.i090,rk=av.i180,tk=av.i270,_Z=av.cos45,xZ=av.sin45,ak=Xp(),Jp=ak.p2r,ef=ak.r2p,wZ=Yu(),MZ=wZ.clearOutline,$p=Qu(),AZ=$p.readPaths,TZ=$p.writePaths,kZ=$p.ellipseOver,SZ=$p.fixDatesForPaths;function CZ(e,r){if(e.length){var t=e[0][0];if(t){var n=r.gd,a=r.isActiveShape,i=r.dragmode,o=(n.layout||{}).shapes||[];if(!yZ(i)&&a!==void 0){var l=n._fullLayout._activeShapeIndex;if(l{"use strict";var LZ=tv(),qZ=LZ.selectMode,DZ=Yu(),EZ=DZ.clearOutline,n5=Qu(),PZ=n5.readPaths,RZ=n5.writePaths,zZ=n5.fixDatesForPaths;lk.exports=function(r,t){if(r.length){var n=r[0][0];if(n){var a=n.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,u=l.yaxis,f=t.isActiveSelection,v=t.dragmode,h=(i.layout||{}).selections||[];if(!qZ(v)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";sk.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var rf=ne(ka=>{"use strict";var Mc=P1(),uk=gr(),Qp=Cn();ka.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};ka.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};ka.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};ka.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};ka.extractPathCoords=function(e,r,t){var n=[],a=e.match(Mc.segmentRE);return a.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.substr(1).match(Mc.paramRE);if(!(!l||l.lengthd&&(p="X"),p});return u>d&&(m=m.replace(/[\s,]*X.*/,""),uk.log("Ignoring extra params in segment "+s)),f+m})}function R1(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var o5=ne((gfe,hk)=>{"use strict";var FZ=gr(),iv=Cn(),fk=ci(),ck=sn(),IZ=Qu().readPaths,i5=rf(),HZ=i5.getPathString,vk=bd(),BZ=Ka().FROM_TL;hk.exports=function(r,t,n,a){if(a.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var i;if(n.label.texttemplate){var o={};if(n.type!=="path"){var l=iv.getFromId(r,n.xref),s=iv.getFromId(r,n.yref);for(var u in vk){var f=vk[u](n,l,s);f!==void 0&&(o[u]=f)}}i=FZ.texttemplateStringForShapes(n.label.texttemplate,{},r._fullLayout._d3locale,o)}else i=n.label.text;var v={"data-index":t},h=n.label.font,d={"data-notex":1},m=a.append("g").attr(v).classed("shape-label",!0),p=m.append("text").attr(d).classed("shape-label-text",!0).text(i),y,_,C,x;if(n.path){var b=HZ(r,n),A=IZ(b,r);y=1/0,C=1/0,_=-1/0,x=-1/0;for(var k=0;k=e?a=r-n:a=n-r,-180/Math.PI*Math.atan2(a,i)}function UZ(e,r,t,n,a,i,o){var l=a.label.textposition,s=a.label.textangle,u=a.label.padding,f=a.type,v=Math.PI/180*i,h=Math.sin(v),d=Math.cos(v),m=a.label.xanchor,p=a.label.yanchor,y,_,C,x;if(f==="line"){l==="start"?(y=e,_=r):l==="end"?(y=t,_=n):(y=(e+t)/2,_=(r+n)/2),m==="auto"&&(l==="start"?s==="auto"?t>e?m="left":te?m="right":te?m="right":te?m="left":t{"use strict";var YZ=gr(),GZ=YZ.strTranslate,dk=To(),mk=tv(),VZ=mk.drawMode,yk=mk.selectMode,bk=dt(),pk=zt(),rg=Zp(),WZ=rg.i000,ZZ=rg.i090,XZ=rg.i180,jZ=rg.i270,JZ=Yu(),_k=JZ.clearOutlineControllers,s5=Qu(),eg=s5.pointsOnRectangle,l5=s5.pointsOnEllipse,$Z=s5.writePaths,KZ=Kp().newShapes,QZ=Kp().createShapeObj,eX=a5(),rX=o5();xk.exports=function e(r,t,n,a){a||(a=0);var i=n.gd;function o(){e(r,t,n,a++),(l5(r[0])||n.hasText)&&l({redrawing:!0})}function l(te){var K={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,K=KZ(t,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,K=eX(t,n),i._fullLayout._reselect=!0),Object.keys(K).length&&bk.call((te||{}).redrawing?"relayout":"_guiRelayout",i,K)}var s=i._fullLayout,u=s._zoomlayer,f=n.dragmode,v=VZ(f),h=yk(f);(v||h)&&(i._fullLayout._outlining=!0),_k(i),t.attr("d",$Z(r));var d,m,p,y,_;if(!a&&(n.isActiveShape||n.isActiveSelection)){_=tX([],r);var C=u.append("g").attr("class","outline-controllers");F(C),re()}if(v&&n.hasText){var x=u.select(".label-temp"),b=QZ(t,n,n.dragmode);rX(i,"label-temp",b,x)}function A(te){p=+te.srcElement.getAttribute("data-i"),y=+te.srcElement.getAttribute("data-j"),d[p][y].moveFn=k}function k(te,K){if(r.length){var ee=_[p][y][1],fe=_[p][y][2],he=r[p],qe=he.length;if(eg(he)){var ze=te,Ne=K;if(n.isActiveSelection){var Ze=gk(he,y);Ze[1]===he[y][1]?Ne=0:ze=0}for(var Ce=0;Ce1&&!(te.length===2&&te[1][0]==="Z")&&(y===0&&(te[0][0]="M"),r[p]=te,o(),l())}}function z(te,K){if(te===2){p=+K.srcElement.getAttribute("data-i"),y=+K.srcElement.getAttribute("data-j");var ee=r[p];!eg(ee)&&!l5(ee)&&D()}}function F(te){d=[];for(var K=0;K{"use strict";var aX=kt(),Sk=dt(),wk=gr(),ov=Cn(),iX=Qu().readPaths,oX=tg(),ag=o5(),Ck=Yu().clearOutlineControllers,u5=zt(),c5=sn(),lX=bn().arrayEditor,Mk=To(),Ak=Ku(),Ac=P1(),Ri=rf(),f5=Ri.getPathString;Dk.exports={draw:v5,drawOne:Lk,eraseActiveShape:fX,drawLabel:ag};function v5(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var n=r._plots[t].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var a=0;ao&&or>l&&!ur.shiftKey?Mk.getCursor(vr/nr,1-rr/or):"move";Ak(r,yr),Je=yr.split("-")[0]}}function pe(ur){ng(e)||(s&&(_=he(t.xanchor)),u&&(C=qe(t.yanchor)),t.type==="path"?H=t.path:(d=s?t.x0:he(t.x0),m=u?t.y0:qe(t.y0),p=s?t.x1:he(t.x1),y=u?t.y1:qe(t.y1)),dy?(x=m,M="y0",b=y,D="y1"):(x=y,M="y1",b=m,D="y0"),Me(ur),Be(a,t),ir(r,t,e),Ce.moveFn=Je==="move"?$:Te,Ce.altKey=ur.altKey)}function U(){ng(e)||(Ak(r),Ie(a),qk(r,e,t),Sk.call("_guiRelayout",e,i.getUpdateObj()))}function Q(){ng(e)||Ie(a)}function $(ur,Oe){if(t.type==="path"){var nr=function(rr){return rr},or=nr,vr=nr;s?h("xanchor",t.xanchor=ze(_+ur)):(or=function(yr){return ze(he(yr)+ur)},B&&B.type==="date"&&(or=Ri.encodeDate(or))),u?h("yanchor",t.yanchor=Ne(C+Oe)):(vr=function(yr){return Ne(qe(yr)+Oe)},V&&V.type==="date"&&(vr=Ri.encodeDate(vr))),h("path",t.path=Tk(H,or,vr))}else s?h("xanchor",t.xanchor=ze(_+ur)):(h("x0",t.x0=ze(d+ur)),h("x1",t.x1=ze(p+ur))),u?h("yanchor",t.yanchor=Ne(C+Oe)):(h("y0",t.y0=Ne(m+Oe)),h("y1",t.y1=Ne(y+Oe)));r.attr("d",f5(e,t)),Be(a,t),ag(e,n,t,W)}function Te(ur,Oe){if(v){var nr=function(pr){return pr},or=nr,vr=nr;s?h("xanchor",t.xanchor=ze(_+ur)):(or=function(kr){return ze(he(kr)+ur)},B&&B.type==="date"&&(or=Ri.encodeDate(or))),u?h("yanchor",t.yanchor=Ne(C+Oe)):(vr=function(kr){return Ne(qe(kr)+Oe)},V&&V.type==="date"&&(vr=Ri.encodeDate(vr))),h("path",t.path=Tk(H,or,vr))}else if(f){if(Je==="resize-over-start-point"){var rr=d+ur,yr=u?m-Oe:m+Oe;h("x0",t.x0=s?rr:ze(rr)),h("y0",t.y0=u?yr:Ne(yr))}else if(Je==="resize-over-end-point"){var dr=p+ur,Ae=u?y-Oe:y+Oe;h("x1",t.x1=s?dr:ze(dr)),h("y1",t.y1=u?Ae:Ne(Ae))}}else{var Ue=function(pr){return Je.indexOf(pr)!==-1},Xe=Ue("n"),Er=Ue("s"),Sr=Ue("w"),er=Ue("e"),Ke=Xe?x+Oe:x,br=Er?b+Oe:b,Mr=Sr?A+ur:A,mr=er?k+ur:k;u&&(Xe&&(Ke=x-Oe),Er&&(br=b-Oe)),(!u&&br-Ke>l||u&&Ke-br>l)&&(h(M,t[M]=u?Ke:Ne(Ke)),h(D,t[D]=u?br:Ne(br))),mr-Mr>o&&(h(z,t[z]=s?Mr:ze(Mr)),h(F,t[F]=s?mr:ze(mr)))}r.attr("d",f5(e,t)),Be(a,t),ag(e,n,t,W)}function Be(ur,Oe){(s||u)&&nr();function nr(){var or=Oe.type!=="path",vr=ur.selectAll(".visual-cue").data([0]),rr=1;vr.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":rr}).classed("visual-cue",!0);var yr=he(s?Oe.xanchor:wk.midRange(or?[Oe.x0,Oe.x1]:Ri.extractPathCoords(Oe.path,Ac.paramIsX))),dr=qe(u?Oe.yanchor:wk.midRange(or?[Oe.y0,Oe.y1]:Ri.extractPathCoords(Oe.path,Ac.paramIsY)));if(yr=Ri.roundPositionForSharpStrokeRendering(yr,rr),dr=Ri.roundPositionForSharpStrokeRendering(dr,rr),s&&u){var Ae="M"+(yr-1-rr)+","+(dr-1-rr)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";vr.attr("d",Ae)}else if(s){var Ue="M"+(yr-1-rr)+","+(dr-9-rr)+"v18 h2 v-18 Z";vr.attr("d",Ue)}else{var Xe="M"+(yr-9-rr)+","+(dr-1-rr)+"h18 v2 h-18 Z";vr.attr("d",Xe)}}}function Ie(ur){ur.selectAll(".visual-cue").remove()}function ir(ur,Oe,nr){var or=Oe.xref,vr=Oe.yref,rr=ov.getFromId(nr,or),yr=ov.getFromId(nr,vr),dr="";or!=="paper"&&!rr.autorange&&(dr+=or),vr!=="paper"&&!yr.autorange&&(dr+=vr),c5.setClipUrl(ur,dr?"clip"+nr._fullLayout._uid+dr:null,nr)}}function Tk(e,r,t){return e.replace(Ac.segmentRE,function(n){var a=0,i=n.charAt(0),o=Ac.paramIsX[i],l=Ac.paramIsY[i],s=Ac.numParams[i],u=n.substr(1).replace(Ac.paramRE,function(f){return a>=s||(o[a]?f=r(f):l[a]&&(f=t(f)),a++),f});return i+u})}function uX(e,r){if(ig(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){kk(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=kk,v5(e)}}}function kk(e){if(ig(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(Ck(e),delete e._fullLayout._activeShapeIndex,v5(e))}}function fX(e){if(ig(e)){Ck(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Co=dt(),Ek=ua(),Pk=ya(),Ot=Vp(),cX=og().eraseActiveShape,lg=gr(),Et=lg._,Ut=Bk.exports={};Ut.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Et(e,"Download plot as a PNG"):Et(e,"Download plot")},icon:Ot.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};lg.notifier(Et(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in r&&(t[n]=r[n])}),Co.call("downloadImage",e,t).then(function(n){lg.notifier(Et(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){lg.notifier(Et(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Ut.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Et(e,"Edit in Chart Studio")},icon:Ot.disk,click:function(e){Ek.sendDataToCloud(e)}};Ut.editInChartStudio={name:"editInChartStudio",title:function(e){return Et(e,"Edit in Chart Studio")},icon:Ot.pencil,click:function(e){Ek.sendDataToCloud(e)}};Ut.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Et(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ot.zoombox,click:ti};Ut.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Et(e,"Pan")},attr:"dragmode",val:"pan",icon:Ot.pan,click:ti};Ut.select2d={name:"select2d",_cat:"select",title:function(e){return Et(e,"Box Select")},attr:"dragmode",val:"select",icon:Ot.selectbox,click:ti};Ut.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Et(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ot.lasso,click:ti};Ut.drawclosedpath={name:"drawclosedpath",title:function(e){return Et(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ot.drawclosedpath,click:ti};Ut.drawopenpath={name:"drawopenpath",title:function(e){return Et(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ot.drawopenpath,click:ti};Ut.drawline={name:"drawline",title:function(e){return Et(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ot.drawline,click:ti};Ut.drawrect={name:"drawrect",title:function(e){return Et(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ot.drawrect,click:ti};Ut.drawcircle={name:"drawcircle",title:function(e){return Et(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ot.drawcircle,click:ti};Ut.eraseshape={name:"eraseshape",title:function(e){return Et(e,"Erase active shape")},icon:Ot.eraseshape,click:cX};Ut.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Et(e,"Zoom in")},attr:"zoom",val:"in",icon:Ot.zoom_plus,click:ti};Ut.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Et(e,"Zoom out")},attr:"zoom",val:"out",icon:Ot.zoom_minus,click:ti};Ut.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Et(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ot.autoscale,click:ti};Ut.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Et(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ot.home,click:ti};Ut.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Et(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Ot.tooltip_basic,gravity:"ne",click:ti};Ut.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Et(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Ot.tooltip_compare,gravity:"ne",click:ti};function ti(e,r){var t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=Pk.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(n==="zoom"){var v=a==="in"?.5:2,h=(1+v)/2,d=(1-v)/2,m;for(f=0;f{"use strict";var Ok=p5(),dX=Object.keys(Ok),Uk=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Yk=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Uk),sv=[],pX=function(e){if(Yk.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();sv.indexOf(r)===-1&&sv.push(r),sv.indexOf(t)===-1&&sv.push(t)}};dX.forEach(function(e){pX(Ok[e])});sv.sort();Gk.exports={DRAW_MODES:Uk,backButtons:Yk,foreButtons:sv}});var m5=ne((wfe,Vk)=>{"use strict";var xfe=g5();Vk.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var Zk=ne((Mfe,Wk)=>{"use strict";var gX=gr(),z1=zt(),mX=bn(),yX=m5();Wk.exports=function(r,t){var n=r.modebar||{},a=mX.newContainer(t,"modebar");function i(l,s){return gX.coerce(n,a,yX,l,s)}i("orientation"),i("bgcolor",z1.addOpacity(t.paper_bgcolor,.5));var o=z1.contrast(z1.rgb(t.modebar.bgcolor));i("color",z1.addOpacity(o,.3)),i("activecolor",z1.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var $k=ne((Afe,Jk)=>{"use strict";var y5=kt(),bX=Bt(),ug=gr(),Xk=Vp(),_X=Jh().version,xX=new DOMParser;function jk(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var us=jk.prototype;us.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,n=this.graphInfo._fullLayout,a="modebar-"+n._uid;this.element.setAttribute("id",a),this._uid=a,this.element.className="modebar",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=n.modebar,o="#"+a+" .modebar-group";document.querySelectorAll(o).forEach(function(v){v.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(l||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),ug.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};us.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var n=r.createGroup();t.forEach(function(a){var i=a.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(a);r.buttonElements.push(o),n.appendChild(o)}),r.element.appendChild(n)})};us.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};us.createButton=function(e){var r=this,t=document.createElement("a");t.setAttribute("rel","tooltip"),t.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&t.setAttribute("data-title",n),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),t.setAttribute("data-val",a));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&y5.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||Xk.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};us.createIcon=function(e){var r=bX(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(t,"svg"),n.setAttribute("viewBox",[0,0,e.width,r].join(" ")),n.setAttribute("class","icon");var a=document.createElementNS(t,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(a)}if(e.svg){var i=xX.parseFromString(e.svg,"application/xml");n=i.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};us.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var a=n.getAttribute("data-val")||!0,i=n.getAttribute("data-attr"),o=n.getAttribute("data-toggle")==="true",l=y5.select(n),s=function(v,h){var d=r.modebar,m=v.querySelector(".icon path");m&&(h||v.matches(":hover")?m.style.fill=d.activecolor:m.style.fill=d.color)};if(o){if(i===t){var u=!l.classed("active");l.classed("active",u),s(n,u)}}else{var f=i===null?i:ug.nestedProperty(r,i).get();l.classed("active",f===a),s(n,f===a)}})};us.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var AX=ya(),Kk=Qa(),b5=dt(),TX=Vu().isUnifiedHover,kX=$k(),fg=p5(),SX=g5().DRAW_MODES,CX=gr().extendDeep;Qk.exports=function(r){var t=r._fullLayout,n=r._context,a=t._modeBar;if(!n.displayModeBar&&!n.watermark){a&&(a.destroy(),delete t._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=n.modeBarButtons,o;Array.isArray(i)&&i.length?o=RX(i):!n.displayModeBar&&n.watermark?o=[]:o=LX(r),a?a.update(r,o):t._modeBar=kX(r,o)};function LX(e){var r=e._fullLayout,t=e._fullData,n=e._context;function a(K,ee){if(typeof ee=="string"){if(ee.toLowerCase()===K.toLowerCase())return!0}else{var fe=ee.name,he=ee._cat||ee.name;if(fe===K||he===K.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=n.modeBarButtonsToAdd.concat(i.filter(function(K){for(var ee=0;ee1?(F=["toggleHover"],H=["resetViews"]):v?(z=["zoomInGeo","zoomOutGeo"],F=["hoverClosestGeo"],H=["resetGeo"]):f?(F=["hoverClosest3d"],H=["resetCameraDefault3d","resetCameraLastSave3d"]):p?(z=["zoomInMapbox","zoomOutMapbox"],F=["toggleHover"],H=["resetViewMapbox"]):y?(z=["zoomInMap","zoomOutMap"],F=["toggleHover"],H=["resetViewMap"]):h?F=["hoverClosestPie"]:x?(F=["hoverClosestCartesian","hoverCompareCartesian"],H=["resetViewSankey"]):F=["toggleHover"],u&&F.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(EX(t)||A)&&(F=[]),u&&!b&&(z=["zoomIn2d","zoomOut2d","autoScale2d"],H[0]!=="resetViews"&&(H=["resetScale2d"])),f?W=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!b||m?W=["zoom2d","pan2d"]:p||y||v?W=["pan2d"]:_&&(W=["zoom2d"]),DX(t)&&W.push("select2d","lasso2d");var B=[],X=function(K){B.indexOf(K)===-1&&F.indexOf(K)!==-1&&B.push(K)};if(Array.isArray(l)){for(var V=[],re=0;re{"use strict";rS.exports={moduleType:"component",name:"modebar",layoutAttributes:m5(),supplyLayoutDefaults:Zk(),manage:eS()}});var x5=ne((Sfe,tS)=>{"use strict";var zX=Ka().FROM_BL;tS.exports=function(r,t,n){n===void 0&&(n=zX[r.constraintoward||"center"]);var a=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=a[0]+(a[1]-a[0])*n;r.range=r._input.range=[r.l2r(i+(a[0]-i)*t),r.l2r(i+(a[1]-i)*t)],r.setScale()}});var F1=ne(N1=>{"use strict";var Tc=gr(),w5=Ju(),bl=ya().id2name,NX=pl(),nS=x5(),FX=dp(),IX=En().ALMOST_EQUAL,HX=Ka().FROM_BL;N1.handleDefaults=function(e,r,t){var n=t.axIds,a=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,u,f,v,h,d,m;for(l=0;li?t.substr(i):n.substr(a))+o}function OX(e,r){for(var t=r._size,n=t.h/t.w,a={},i=Object.keys(e),o=0;oIX*m&&!C)){for(i=0;iW&&feF&&(F=fe);var qe=(F-z)/(2*H);v/=qe,z=s.l2r(z),F=s.l2r(F),s.range=s._input.range=k{"use strict";var vg=kt(),ni=dt(),ro=ua(),Lo=gr(),T5=ci(),k5=Gp(),I1=zt(),uv=sn(),lS=x1(),vS=_5(),H1=Cn(),tu=Ka(),hS=F1(),UX=hS.enforce,YX=hS.clean,sS=Ju().doAutoRange,dS="start",GX="middle",pS="end",VX=Pa().zindexSeparator;xa.layoutStyles=function(e){return Lo.syncOrAsync([ro.doAutoMargin,ZX],e)};function WX(e,r,t){for(var n=0;n=e[1]||a[1]<=e[0])&&i[0]r[0])return!0}return!1}function ZX(e){var r=e._fullLayout,t=r._size,n=t.p,a=H1.list(e,"",!0),i,o,l,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(uv.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),xa.drawMainTitle(e),vS.manage(e),!r._has("cartesian"))return ro.previousPromises(e);function v(pe,U,Q){var $=pe._lw/2;if(pe._id.charAt(0)==="x"){if(U){if(Q==="top")return U._offset-n-$}else return t.t+t.h*(1-(pe.position||0))+$%1;return U._offset+U._length+n+$}if(U){if(Q==="right")return U._offset+U._length+n+$}else return t.l+t.w*(pe.position||0)+$%1;return U._offset-n-$}for(i=0;i0){$X(e,i,u,s),l.attr({x:o,y:i,"text-anchor":n,dy:cS(r.yanchor)}).call(T5.positionText,o,i);var f=(r.text.match(T5.BR_TAG_ALL)||[]).length;if(f){var v=tu.LINE_SPACING*f+tu.MID_SHIFT;r.y===0&&(v=-v),l.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-v+"em";this.setAttribute("dy",y)})}var h=vg.selectAll(".gtitle-subtitle");if(h.node()){var d=l.node().getBBox(),m=d.y+d.height,p=m+lS.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:o,y:p,"text-anchor":n,dy:cS(r.yanchor)}).call(T5.positionText,o,p)}}}};function XX(e,r,t,n,a){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=Lo.isTopAnchor(r)?n:n-a,l=t==="b"?i-o:o;return Lo.isTopAnchor(r)&&t==="t"||Lo.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=jX(i,n,a,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function $X(e,r,t,n){var a="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&XX(e,i,o,r,n)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[a]=s),ro.allowAutoMargin(e,a),ro.autoMargin(e,a,l)}function KX(e,r){var t=e.title,n=e._size,a=0;switch(r===dS?a=t.pad.l:r===pS&&(a=-t.pad.r),t.xref){case"paper":return n.l+n.w*t.x+a;case"container":default:return e.width*t.x+a}}function QX(e,r){var t=e.title,n=e._size,a=0;if(r==="0em"||!r?a=-t.pad.b:r===tu.CAP_SHIFT+"em"&&(a=t.pad.t),t.y==="auto")return n.t/2;switch(t.yref){case"paper":return n.t+n.h-n.h*t.y+a;case"container":default:return e.height-e.height*t.y+a}}function cS(e){return e==="top"?tu.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":tu.MID_SHIFT+"em"}function ej(e){var r=e.title,t=GX;return Lo.isRightAnchor(r)?t=pS:Lo.isLeftAnchor(r)&&(t=dS),t}function rj(e){var r=e.title,t="0em";return Lo.isTopAnchor(r)?t=tu.CAP_SHIFT+"em":Lo.isMiddleAnchor(r)&&(t=tu.MID_SHIFT+"em"),t}xa.doTraceStyle=function(e){var r=e.calcdata,t=[],n;for(n=0;n{"use strict";var tj=Qu().readPaths,nj=tg(),gS=Yu().clearOutlineControllers,S5=zt(),mS=sn(),aj=bn().arrayEditor,yS=rf(),ij=yS.getPathString;_S.exports={draw:dg,drawOne:bS,activateLastSelection:sj};function dg(e){var r=e._fullLayout;gS(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var n=r._plots[t].selectionLayer;n&&n.selectAll("path").remove()}for(var a=0;a=0;y--){var _=o.append("path").attr(s).style("opacity",y?.1:u).call(S5.stroke,v).call(S5.fill,f).call(mS.dashLine,y?"solid":d,y?4+h:h);if(oj(_,e,n),m){var C=aj(e.layout,"selections",n);_.style({cursor:"move"});var x={element:_.node(),plotinfo:a,gd:e,editHelpers:C,isActiveSelection:!0},b=tj(l,e);nj(b,_,x)}else _.style("pointer-events",y?"all":"none");p[y]=_}var A=p[0],k=p[1];k.node().addEventListener("click",function(){return lj(e,A)})}}function oj(e,r,t){var n=t.xref+t.yref;mS.setClipUrl(e,"clip"+r._fullLayout._uid+n,r)}function lj(e,r){if(pg(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){C5(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=C5,dg(e)}}}function sj(e){if(pg(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=C5,dg(e)}}function C5(e){if(pg(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(gS(e),delete e._fullLayout._activeSelectionIndex,dg(e))}}});var wS=ne((Dfe,xS)=>{function uj(){var e,r=0,t=!1;function n(a,i){return e.list.push({type:a,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(a,i){return n("check",{seg1:a,seg2:i})},segmentChop:function(a,i){return n("div_seg",{seg:a,pt:i}),n("chop",{seg:a,pt:i})},statusRemove:function(a){return n("pop_seg",{seg:a})},segmentUpdate:function(a){return n("seg_update",{seg:a})},segmentNew:function(a,i){return n("new_seg",{seg:a,primary:i})},segmentRemove:function(a){return n("rem_seg",{seg:a})},tempStatus:function(a,i,o){return n("temp_status",{seg:a,above:i,below:o})},rewind:function(a){return n("rewind",{seg:a})},status:function(a,i,o){return n("status",{seg:a,above:i,below:o})},vert:function(a){return a===t?e:(t=a,n("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),n("log",{txt:a})},reset:function(){return n("reset")},selected:function(a){return n("selected",{segs:a})},chainStart:function(a){return n("chain_start",{seg:a})},chainRemoveHead:function(a,i){return n("chain_rem_head",{index:a,pt:i})},chainRemoveTail:function(a,i){return n("chain_rem_tail",{index:a,pt:i})},chainNew:function(a,i){return n("chain_new",{pt1:a,pt2:i})},chainMatch:function(a){return n("chain_match",{index:a})},chainClose:function(a){return n("chain_close",{index:a})},chainAddHead:function(a,i){return n("chain_add_head",{index:a,pt:i})},chainAddTail:function(a,i){return n("chain_add_tail",{index:a,pt:i})},chainConnect:function(a,i){return n("chain_con",{index1:a,index2:i})},chainReverse:function(a){return n("chain_rev",{index:a})},chainJoin:function(a,i){return n("chain_join",{index1:a,index2:i})},done:function(){return n("done")}},e}xS.exports=uj});var AS=ne((Efe,MS)=>{function fj(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,n,a){var i=n[0],o=n[1],l=a[0],s=a[1],u=t[0],f=t[1];return(l-i)*(f-o)-(s-o)*(u-i)>=-e},pointBetween:function(t,n,a){var i=t[1]-n[1],o=a[0]-n[0],l=t[0]-n[0],s=a[1]-n[1],u=l*o+i*s;if(u-e)},pointsSameX:function(t,n){return Math.abs(t[0]-n[0])e!=l-i>e&&(o-f)*(i-v)/(l-v)+f-a>e&&(s=!s),o=f,l=v}return s}};return r}MS.exports=fj});var kS=ne((Pfe,TS)=>{var cj={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var n=e.root,a=e.root.next;a!==null;){if(t(a)){r.prev=a.prev,r.next=a,a.prev.next=r,a.prev=r;return}n=a,a=a.next}n.next=r,r.prev=n,r.next=null},findTransition:function(r){for(var t=e.root,n=e.root.next;n!==null&&!r(n);)t=n,n=n.next;return{before:t===e.root?null:t,after:n,insert:function(a){return a.prev=t,a.next=n,t.next=a,n!==null&&(n.prev=a),a}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};TS.exports=cj});var CS=ne((Rfe,SS)=>{var B1=kS();function vj(e,r,t){function n(m,p){return{id:t?t.segmentId():-1,start:m,end:p,myFill:{above:null,below:null},otherFill:null}}function a(m,p,y){return{id:t?t.segmentId():-1,start:m,end:p,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=B1.create();function o(m,p,y,_,C,x){var b=r.pointsCompare(p,C);return b!==0?b:r.pointsSame(y,x)?0:m!==_?m?1:-1:r.pointAboveOrOnLine(y,_?C:x,_?x:C)?1:-1}function l(m,p){i.insertBefore(m,function(y){var _=o(m.isStart,m.pt,p,y.isStart,y.pt,y.other.pt);return _<0})}function s(m,p){var y=B1.node({isStart:!0,pt:m.start,seg:m,primary:p,other:null,status:null});return l(y,m.end),y}function u(m,p,y){var _=B1.node({isStart:!1,pt:p.end,seg:p,primary:y,other:m,status:null});m.other=_,l(_,m.pt)}function f(m,p){var y=s(m,p);return u(y,m,p),y}function v(m,p){t&&t.segmentChop(m.seg,p),m.other.remove(),m.seg.end=p,m.other.pt=p,l(m.other,m.pt)}function h(m,p){var y=a(p,m.seg.end,m.seg);return v(m,p),f(y,m.primary)}function d(m,p){var y=B1.create();function _(V,re){var te=V.seg.start,K=V.seg.end,ee=re.seg.start,fe=re.seg.end;return r.pointsCollinear(te,ee,fe)?r.pointsCollinear(K,ee,fe)||r.pointAboveOrOnLine(K,ee,fe)?1:-1:r.pointAboveOrOnLine(te,ee,fe)?1:-1}function C(V){return y.findTransition(function(re){var te=_(V,re.ev);return te>0})}function x(V,re){var te=V.seg,K=re.seg,ee=te.start,fe=te.end,he=K.start,qe=K.end;t&&t.checkIntersection(te,K);var ze=r.linesIntersect(ee,fe,he,qe);if(ze===!1){if(!r.pointsCollinear(ee,fe,he)||r.pointsSame(ee,qe)||r.pointsSame(fe,he))return!1;var Ne=r.pointsSame(ee,he),Ze=r.pointsSame(fe,qe);if(Ne&&Ze)return re;var Ce=!Ne&&r.pointBetween(ee,he,qe),Je=!Ze&&r.pointBetween(fe,he,qe);if(Ne)return Je?h(re,fe):h(V,qe),re;Ce&&(Ze||(Je?h(re,fe):h(V,qe)),h(re,ee))}else ze.alongA===0&&(ze.alongB===-1?h(V,he):ze.alongB===0?h(V,ze.pt):ze.alongB===1&&h(V,qe)),ze.alongB===0&&(ze.alongA===-1?h(re,ee):ze.alongA===0?h(re,ze.pt):ze.alongA===1&&h(re,fe));return!1}for(var b=[];!i.isEmpty();){var A=i.getHead();if(t&&t.vert(A.pt[0]),A.isStart){let V=function(){if(M){var re=x(A,M);if(re)return re}return D?x(A,D):!1};var X=V;t&&t.segmentNew(A.seg,A.primary);var k=C(A),M=k.before?k.before.ev:null,D=k.after?k.after.ev:null;t&&t.tempStatus(A.seg,M?M.seg:!1,D?D.seg:!1);var z=V();if(z){if(e){var F;A.seg.myFill.below===null?F=!0:F=A.seg.myFill.above!==A.seg.myFill.below,F&&(z.seg.myFill.above=!z.seg.myFill.above)}else z.seg.otherFill=A.seg.myFill;t&&t.segmentUpdate(z.seg),A.other.remove(),A.remove()}if(i.getHead()!==A){t&&t.rewind(A.seg);continue}if(e){var F;A.seg.myFill.below===null?F=!0:F=A.seg.myFill.above!==A.seg.myFill.below,D?A.seg.myFill.below=D.seg.myFill.above:A.seg.myFill.below=m,F?A.seg.myFill.above=!A.seg.myFill.below:A.seg.myFill.above=A.seg.myFill.below}else if(A.seg.otherFill===null){var H;D?A.primary===D.primary?H=D.seg.otherFill.above:H=D.seg.myFill.above:H=A.primary?p:m,A.seg.otherFill={above:H,below:H}}t&&t.status(A.seg,M?M.seg:!1,D?D.seg:!1),A.other.status=k.insert(B1.node({ev:A}))}else{var W=A.status;if(W===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(W.prev)&&y.exists(W.next)&&x(W.prev.ev,W.next.ev),t&&t.statusRemove(W.ev.seg),W.remove(),!A.primary){var B=A.seg.myFill;A.seg.myFill=A.seg.otherFill,A.seg.otherFill=B}b.push(A.seg)}i.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(m){for(var p,y=m[m.length-1],_=0;_{function hj(e,r,t){var n=[],a=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function v(X,V,re){return f.index=X,f.matches_head=V,f.matches_pt1=re,f===s?(f=u,!1):(f=null,!0)}for(var h=0;h{function O1(e,r,t){var n=[];return e.forEach(function(a){var i=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);r[i]!==0&&n.push({id:t?t.segmentId():-1,start:a.start,end:a.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(n),n}var dj={union:function(e,r){return O1(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return O1(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return O1(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return O1(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return O1(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};DS.exports=dj});var RS=ne((Ffe,PS)=>{var pj={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),s=1;s{var gj=wS(),mj=AS(),zS=CS(),yj=qS(),U1=ES(),NS=RS(),qo=!1,Y1=mj(),zi;zi={buildLog:function(e){return e===!0?qo=gj():e===!1&&(qo=!1),qo===!1?!1:qo.list},epsilon:function(e){return Y1.epsilon(e)},segments:function(e){var r=zS(!0,Y1,qo);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=zS(!1,Y1,qo);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:U1.union(e.combined,qo),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:U1.intersect(e.combined,qo),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:U1.difference(e.combined,qo),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:U1.differenceRev(e.combined,qo),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:U1.xor(e.combined,qo),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:yj(e.segments,Y1,qo),inverted:e.inverted}},polygonFromGeoJSON:function(e){return NS.toPolygon(zi,e)},polygonToGeoJSON:function(e){return NS.fromPolygon(zi,Y1,e)},union:function(e,r){return G1(e,r,zi.selectUnion)},intersect:function(e,r){return G1(e,r,zi.selectIntersect)},difference:function(e,r){return G1(e,r,zi.selectDifference)},differenceRev:function(e,r){return G1(e,r,zi.selectDifferenceRev)},xor:function(e,r){return G1(e,r,zi.selectXor)}};function G1(e,r,t){var n=zi.segments(e),a=zi.segments(r),i=zi.combine(n,a),o=t(i);return zi.polygon(o)}typeof window=="object"&&(window.PolyBool=zi);FS.exports=zi});var BS=ne((Hfe,HS)=>{HS.exports=function(r,t,n,a){var i=r[0],o=r[1],l=!1;n===void 0&&(n=0),a===void 0&&(a=t.length);for(var s=a-n,u=0,f=s-1;uo!=m>o&&i<(d-v)*(o-h)/(m-h)+v;p&&(l=!l)}return l}});var yg=ne((Bfe,OS)=>{"use strict";var q5=pd().dot,gg=En().BADNUM,mg=OS.exports={};mg.tester=function(r){var t=r.slice(),n=t[0][0],a=n,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;la||_===gg||_o||p&&u(m))}function v(m,p){var y=m[0],_=m[1];if(y===gg||ya||_===gg||_o)return!1;var C=t.length,x=t[0][0],b=t[0][1],A=0,k,M,D,z,F;for(k=1;kMath.max(M,x)||_>Math.max(D,b)))if(_l||Math.abs(q5(v,u))>a)return!0;return!1};mg.filter=function(r,t){var n=[r[0]],a=0,i=0;function o(s){r.push(s);var u=n.length,f=a;n.splice(i+1);for(var v=f+1;v1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:n}}});var YS=ne((Ofe,US)=>{"use strict";US.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var cC=ne((Ufe,fC)=>{"use strict";var GS=IS(),bj=BS(),Z1=dt(),_j=sn().dashStyle,V1=zt(),xj=ss(),wj=Vu().makeEventData,K1=tv(),Mj=K1.freeMode,Aj=K1.rectMode,X1=K1.drawMode,R5=K1.openMode,z5=K1.selectMode,VS=rf(),WS=P1(),$S=tg(),KS=Yu().clearOutline,QS=Qu(),D5=QS.handleEllipse,Tj=QS.readPaths,kj=Kp().newShapes,Sj=a5(),Cj=L5().activateLastSelection,_g=gr(),Lj=_g.sorterAsc,eC=yg(),W1=qd(),Do=ya().getFromId,qj=Gp(),Dj=hg().redrawReglTraces,xg=YS(),fs=xg.MINSELECT,Ej=eC.filter,N5=eC.tester,F5=Xp(),ZS=F5.p2r,Pj=F5.axValue,Rj=F5.getTransform;function I5(e){return e.subplot!==void 0}function zj(e,r,t,n,a){var i=!I5(n),o=Mj(a),l=Aj(a),s=R5(a),u=X1(a),f=z5(a),v=a==="drawline",h=a==="drawcircle",d=v||h,m=n.gd,p=m._fullLayout,y=f&&p.newselection.mode==="immediate"&&i,_=p._zoomlayer,C=n.element.getBoundingClientRect(),x=n.plotinfo,b=Rj(x),A=r-C.left,k=t-C.top;p._calcInverseTransform(m);var M=_g.apply3DTransform(p._invTransform)(A,k);A=M[0],k=M[1];var D=p._invScaleX,z=p._invScaleY,F=A,H=k,W="M"+A+","+k,B=n.xaxes[0],X=n.yaxes[0],V=B._length,re=X._length,te=e.altKey&&!(X1(a)&&s),K,ee,fe,he,qe,ze,Ne;tC(e,m,n),o&&(K=Ej([[A,k]],xg.BENDPX));var Ze=_.selectAll("path.select-outline-"+x.id).data([1]),Ce=u?p.newshape:p.newselection;u&&(n.hasText=Ce.label.text||Ce.label.texttemplate);var Je=u&&!s?Ce.fillcolor:"rgba(0,0,0,0)",ue=Ce.line.color||(i?V1.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");Ze.enter().append("path").attr("class","select-outline select-outline-"+x.id).style({opacity:u?Ce.opacity/2:1,"stroke-dasharray":_j(Ce.line.dash,Ce.line.width),"stroke-width":Ce.line.width+"px","shape-rendering":"crispEdges"}).call(V1.stroke,ue).call(V1.fill,Je).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",W+"Z");var ye=_.append("path").attr("class","zoombox-corners").style({fill:V1.background,stroke:V1.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&n.hasText){var Me=_.select(".label-temp");Me.empty()&&(Me=_.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var pe=p._uid+xg.SELECTID,U=[],Q=wg(m,n.xaxes,n.yaxes,n.subplot);y&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(i){var Te=B._id,Be=X._id;lC(m,Te,Be,Q);for(var Ie=(m.layout||{}).selections||[],ir=[],ur=!1,Oe=0;Oe=0){m._fullLayout._deactivateShape(m);return}if(!u){var Ie=p.clickmode;W1.done(pe).then(function(){if(W1.clear(pe),Te===2){for(Ze.remove(),qe=0;qe-1&&rC(Be,m,n.xaxes,n.yaxes,n.subplot,n,Ze),Ie==="event"&&$1(m,void 0);xj.click(m,Be,x.id)}).catch(_g.error)}},n.doneFn=function(){ye.remove(),W1.done(pe).then(function(){W1.clear(pe),!y&&he&&n.selectionDefs&&(he.subtract=te,n.selectionDefs.push(he),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,fe)),(y||u)&&j1(n,y),n.doneFnCompleted&&n.doneFnCompleted(U),f&&$1(m,Ne)}).catch(_g.error)}}function rC(e,r,t,n,a,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,v=[],h,d,m,p,y,_,C,x,b,A;if(Bj(l)){tC(e,r,i),h=wg(r,t,n,a);var k=Oj(l,h),M=k.pointNumbers.length>0;if(M?Uj(h,k):Yj(h)&&(C=jS(k))){for(o&&o.remove(),A=0;A=0}function Hj(e){return e._fullLayout._activeSelectionIndex>=0}function j1(e,r){var t=e.dragmode,n=e.plotinfo,a=e.gd;Ij(a)&&a._fullLayout._deactivateShape(a),Hj(a)&&a._fullLayout._deactivateSelection(a);var i=a._fullLayout,o=i._zoomlayer,l=X1(t),s=z5(t);if(l||s){var u=o.selectAll(".select-outline-"+n.id);if(u&&a._fullLayout._outlining){var f;l&&(f=kj(u,e)),f&&Z1.call("_guiRelayout",a,{shapes:f});var v;s&&!I5(e)&&(v=Sj(u,e)),v&&(a._fullLayout._noEmitSelectedAtStart=!0,Z1.call("_guiRelayout",a,{selections:v}).then(function(){r&&Cj(a)})),a._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function XS(e){return e._id}function wg(e,r,t,n){if(!e.calcdata)return[];var a=[],i=r.map(XS),o=t.map(XS),l,s,u;for(u=0;u0,i=a?n[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function Uj(e,r){var t=[],n,a,i,o;for(o=0;o0&&t.push(n);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(a=r.searchInfo.cd[0].trace,a.selectedpoints.length===r.pointNumbers.length))){for(o=0;o1||(r+=n.selectedpoints.length,r>1)))return!1;return r===1}function J1(e,r,t){var n;for(n=0;n-1&&r;if(!o&&r){var Te=JS(e,!0);if(Te.length){var Be=Te[0].xref,Ie=Te[0].yref;if(Be&&Ie){var ir=sC(Te),ur=uC([Do(e,Be,"x"),Do(e,Ie,"y")]);ur(U,ir)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:$&&$1(e,U),h._reselect=!1}if(!o&&h._deselect){var Oe=h._deselect;l=Oe.xref,s=Oe.yref,Wj(l,s,f)||lC(e,l,s,n),$&&(U.points.length?$1(e,U):O5(e)),h._deselect=!1}return{eventData:U,selectionTesters:t}}function Vj(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";vC.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Q1=ne((Gfe,hC)=>{"use strict";hC.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var fv=ne((Wfe,gC)=>{"use strict";var dC=U5(),pC=$a(),Mg=Pa(),$j=bn().templatedArray,Vfe=Q1();gC.exports=$j("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:pC({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:dC.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:dC.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Mg.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Mg.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Mg.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Mg.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:pC({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Ag=ne((Zfe,mC)=>{"use strict";mC.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Y5=ne((Xfe,yC)=>{"use strict";yC.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var kc=ne((jfe,AC)=>{"use strict";var bC=w2().axisHoverFormat,Kj=Ru().texttemplateAttrs,Qj=Ru().hovertemplateAttrs,_C=H0(),eJ=$a(),rJ=Kl().dash,tJ=Kl().pattern,nJ=sn(),aJ=Ag(),Tg=la().extendFlat,iJ=Y5();function xC(e){return{valType:"any",dflt:0,editType:"calc"}}function wC(e){return{valType:"any",editType:"calc"}}function MC(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}AC.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:xC("x"),yperiod:xC("y"),xperiod0:wC("x0"),yperiod0:wC("y0"),xperiodalignment:MC("x"),yperiodalignment:MC("y"),xhoverformat:bC("x"),yhoverformat:bC("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:Kj({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:Qj({},{keys:aJ.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Tg({},rJ,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:iJ(!0),fillgradient:Tg({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:tJ,marker:Tg({symbol:{valType:"enumerated",values:nJ.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Tg({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},_C("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},_C("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:eJ({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var G5=ne(($fe,SC)=>{"use strict";var TC=fv(),kC=kc().line,oJ=Kl().dash,kg=la().extendFlat,lJ=_o().overrideAll,sJ=bn().templatedArray,Jfe=Q1();SC.exports=lJ(sJ("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:kg({},TC.xref,{}),yref:kg({},TC.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:kC.color,width:kg({},kC.width,{min:1,dflt:1}),dash:kg({},oJ,{dflt:"dot"})}}),"arraydraw","from-root")});var DC=ne((Kfe,qC)=>{"use strict";var CC=gr(),Sg=Cn(),uJ=gl(),fJ=G5(),LC=rf();qC.exports=function(r,t){uJ(r,t,{name:"selections",handleItemDefaults:cJ});for(var n=t.selections,a=0;a{"use strict";EC.exports=function(r,t,n){n("newselection.mode");var a=n("newselection.line.width");a&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var eh=ne((ece,NC)=>{"use strict";var vJ=dt(),RC=gr(),zC=ya();NC.exports=function(r){return function(n,a){var i=n[r];if(Array.isArray(i))for(var o=vJ.subplotsRegistry.cartesian,l=o.idRegex,s=a._subplots,u=s.xaxis,f=s.yaxis,v=s.cartesian,h=a._has("cartesian"),d=0;d{"use strict";var FC=L5(),rh=cC();IC.exports={moduleType:"component",name:"selections",layoutAttributes:G5(),supplyLayoutDefaults:DC(),supplyDrawNewSelectionDefaults:PC(),includeBasePlot:eh()("selections"),draw:FC.draw,drawOne:FC.drawOne,reselect:rh.reselect,prepSelect:rh.prepSelect,clearOutline:rh.clearOutline,clearSelectionsCache:rh.clearSelectionsCache,selectOnClick:rh.selectOnClick}});var iL=ne((tce,aL)=>{"use strict";var j5=kt(),Eo=gr(),HC=Eo.numberFormat,hJ=Jl(),dJ=C3(),Cg=dt(),XC=Eo.strTranslate,pJ=ci(),BC=zt(),nf=sn(),gJ=ss(),OC=Cn(),mJ=Ku(),yJ=To(),jC=tv(),Lg=jC.selectingOrDrawing,bJ=jC.freeMode,_J=Ka().FROM_TL,xJ=Gp(),wJ=hg().redrawReglTraces,MJ=ua(),W5=ya().getFromId,AJ=nu().prepSelect,TJ=nu().clearOutline,kJ=nu().selectOnClick,V5=x5(),J5=Pa(),UC=J5.MINDRAG,vi=J5.MINZOOM,YC=!0;function SJ(e,r,t,n,a,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,v,h,d,m,p,y,_,C,x,b,A,k,M,D,z,F,H,W,B,X,V,re,te;t+=r.yaxis._shift;function K(){if(v=r.xaxis,h=r.yaxis,x=v._length,b=h._length,_=v._offset,C=h._offset,d={},d[v._id]=v,m={},m[h._id]=h,o&&l)for(var er=r.overlays,Ke=0;Ke=0){br._fullLayout._deactivateShape(br);return}var Mr=br._fullLayout.clickmode;if(X5(br),er===2&&!f&&dr(),u)Mr.indexOf("select")>-1&&kJ(Ke,br,p,y,r.id,he),Mr.indexOf("event")>-1&&gJ.click(br,Ke,r.id);else if(er===1&&f){var mr=o?h:v,pr=o==="s"||l==="w"?0:1,kr=mr._name+".range["+pr+"]",Pr=CJ(mr,pr),Ur="left",lr="middle";if(mr.fixedrange)return;o?(lr=o==="n"?"top":"bottom",mr.side==="right"&&(Ur="right")):l==="e"&&(Ur="right"),br._context.showAxisRangeEntryBoxes&&j5.select(fe).call(pJ.makeEditable,{gd:br,immediate:!0,background:br._fullLayout.paper_bgcolor,text:String(Pr),fill:mr.tickfont?mr.tickfont.color:"#444",horizontalAlign:Ur,verticalAlign:lr}).on("edit",function(_e){var ke=mr.d2r(_e);ke!==void 0&&Cg.call("_guiRelayout",br,kr,ke)})}}yJ.init(he);var Ne,Ze,Ce,Je,ue,ye,Me,pe,U,Q;function $(er,Ke,br){var Mr=fe.getBoundingClientRect();Ne=Ke-Mr.left,Ze=br-Mr.top,e._fullLayout._calcInverseTransform(e);var mr=Eo.apply3DTransform(e._fullLayout._invTransform)(Ne,Ze);Ne=mr[0],Ze=mr[1],Ce={l:Ne,r:Ne,w:0,t:Ze,b:Ze,h:0},Je=e._hmpixcount?e._hmlumcount/e._hmpixcount:hJ(e._fullLayout.plot_bgcolor).getLuminance(),ue="M0,0H"+x+"V"+b+"H0V0",ye=!1,Me="xy",Q=!1,pe=KC(s,Je,_,C,ue),U=QC(s,_,C)}function Te(er,Ke){if(e._transitioningWithDuration)return!1;var br=Math.max(0,Math.min(x,re*er+Ne)),Mr=Math.max(0,Math.min(b,te*Ke+Ze)),mr=Math.abs(br-Ne),pr=Math.abs(Mr-Ze);Ce.l=Math.min(Ne,br),Ce.r=Math.max(Ne,br),Ce.t=Math.min(Ze,Mr),Ce.b=Math.max(Ze,Mr);function kr(){Me="",Ce.r=Ce.l,Ce.t=Ce.b,U.attr("d","M0,0Z")}if(A.isSubplotConstrained)mr>vi||pr>vi?(Me="xy",mr/x>pr/b?(pr=mr*b/x,Ze>Mr?Ce.t=Ze-pr:Ce.b=Ze+pr):(mr=pr*x/b,Ne>br?Ce.l=Ne-mr:Ce.r=Ne+mr),U.attr("d",qg(Ce))):kr();else if(k.isSubplotConstrained)if(mr>vi||pr>vi){Me="xy";var Pr=Math.min(Ce.l/x,(b-Ce.b)/b),Ur=Math.max(Ce.r/x,(b-Ce.t)/b);Ce.l=Pr*x,Ce.r=Ur*x,Ce.b=(1-Pr)*b,Ce.t=(1-Ur)*b,U.attr("d",qg(Ce))}else kr();else!D||pr0){var _e;if(k.isSubplotConstrained||!M&&D.length===1){for(_e=0;_e1&&(kr.maxallowed!==void 0&&F===(kr.range[0]1&&(Pr.maxallowed!==void 0&&H===(Pr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function qJ(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function KC(e,r,t,n,a){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",XC(t,n)).attr("d",a+"Z")}function QC(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:BC.background,stroke:BC.defaultLine,"stroke-width":1,opacity:0}).attr("transform",XC(r,t)).attr("d","M0,0Z")}function eL(e,r,t,n,a,i){e.attr("d",n+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),rL(e,r,a,i)}function rL(e,r,t,n){t||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function X5(e){j5.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function tL(e){YC&&e.data&&e._context.showTips&&(Eo.notifier(Eo._(e,"Double-click to zoom back out"),"long"),YC=!1)}function DJ(e,r){return"M"+(e.l-.5)+","+(r-vi-.5)+"h-3v"+(2*vi+1)+"h3ZM"+(e.r+.5)+","+(r-vi-.5)+"h3v"+(2*vi+1)+"h-3Z"}function EJ(e,r){return"M"+(r-vi-.5)+","+(e.t-.5)+"v-3h"+(2*vi+1)+"v3ZM"+(r-vi-.5)+","+(e.b+.5)+"v3h"+(2*vi+1)+"v-3Z"}function qg(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,vi)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function WC(e,r,t,n,a){for(var i=!1,o={},l={},s,u,f,v,h=(a||{}).xaHash,d=(a||{}).yaHash,m=0;m{"use strict";var PJ=kt(),Dg=ss(),RJ=To(),zJ=Ku(),_l=iL().makeDragBox,wa=Pa().DRAGGERSIZE;Eg.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){PJ.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var n=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});n.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var u=_l(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");u.onmousemove=function(h){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Dg.hover(r,h,i)},Dg.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,RJ.unhover(r,h))},r._context.showAxisDragHandles&&(_l(r,o,l._offset-wa,s._offset-wa,wa,wa,"n","w"),_l(r,o,l._offset+l._length,s._offset-wa,wa,wa,"n","e"),_l(r,o,l._offset-wa,s._offset+s._length,wa,wa,"s","w"),_l(r,o,l._offset+l._length,s._offset+s._length,wa,wa,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=wa),_l(r,o,l._offset+l._length*.1,f,l._length*.8,wa,"","ew"),_l(r,o,l._offset,f,l._length*.1,wa,"","w"),_l(r,o,l._offset+l._length*.9,f,l._length*.1,wa,"","e")}if(i===s._mainSubplot){var v=s._mainLinePosition;s.side!=="right"&&(v-=wa),_l(r,o,v,s._offset+s._length*.1,wa,s._length*.8,"ns",""),_l(r,o,v,s._offset+s._length*.9,wa,s._length*.1,"s",""),_l(r,o,v,s._offset,wa,s._length*.1,"n","")}}});var a=t._hoverlayer.node();a.onmousemove=function(i){i.target=r._fullLayout._lasthover,Dg.hover(r,i,t._hoversubplot)},a.onclick=function(i){i.target=r._fullLayout._lasthover,Dg.click(r,i)},a.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Eg.updateFx(r)}};Eg.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";zJ(r._draggers,t)}});var sL=ne((ace,lL)=>{"use strict";var oL=dt();lL.exports=function(r){for(var t=oL.layoutArrayContainers,n=oL.layoutArrayRegexes,a=r.split("[")[0],i,o,l=0;l{"use strict";var NJ=Gs(),K5=dd(),th=Pu(),FJ=Zy().sorterAsc,Q5=dt();nh.containerArrayMatch=sL();var IJ=nh.isAddVal=function(r){return r==="add"||NJ(r)},uL=nh.isRemoveVal=function(r){return r===null||r==="remove"};nh.applyContainerArrayChanges=function(r,t,n,a,i){var o=t.astr,l=Q5.getComponentMethod(o,"supplyLayoutDefaults"),s=Q5.getComponentMethod(o,"draw"),u=Q5.getComponentMethod(o,"drawOne"),f=a.replot||a.recalc||l===K5||s===K5,v=r.layout,h=r._fullLayout;if(n[""]){Object.keys(n).length>1&&th.warn("Full array edits are incompatible with other edits",o);var d=n[""][""];if(uL(d))t.set(null);else if(Array.isArray(d))t.set(d);else return th.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(l(v,h),s(r),!0)}var m=Object.keys(n).map(Number).sort(FJ),p=t.get(),y=p||[],_=i(h,o).get(),C=[],x=-1,b=y.length,A,k,M,D,z,F,H,W;for(A=0;Ay.length-(H?0:1)){th.warn("index out of range",o,M);continue}if(F!==void 0)z.length>1&&th.warn("Insertion & removal are incompatible with edits to the same index.",o,M),uL(F)?C.push(M):H?(F==="add"&&(F={}),y.splice(M,0,F),_&&_.splice(M,0,{})):th.warn("Unrecognized full object edit value",o,M,F),x===-1&&(x=M);else for(k=0;k=0;A--)y.splice(C[A],1),_&&_.splice(C[A],1);if(y.length?p||t.set(y):t.set(null),f)return!1;if(l(v,h),u!==K5){var B;if(x===-1)B=m;else{for(b=Math.max(y.length,b),B=[],A=0;A=x));A++)B.push(M);for(A=x;A{"use strict";var dL=Bt(),oce=Iy(),pL=dt(),Ni=gr(),ah=ua(),gL=ya(),mL=zt(),ih=gL.cleanId,HJ=gL.getFromTrace,eb=pL.traceIs;xl.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ni.log("Clearing previous rejected promises from queue."),e._promises=[]};xl.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(ah.subplotsRegistry.cartesian||{}).attrRegex,a=(ah.subplotsRegistry.polar||{}).attrRegex,i=(ah.subplotsRegistry.ternary||{}).attrRegex,o=(ah.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),mL.clean(e),e.template&&e.template.layout&&xl.cleanLayout(e.template.layout),e};function cv(e,r){var t=e[r],n=r.charAt(0);t&&t!=="paper"&&(e[r]=ih(t,n,!0))}xl.cleanData=function(e){for(var r=0;r0)return e.substr(0,r)}xl.hasParent=function(e,r){for(var t=hL(r);t;){if(t in e)return!0;t=hL(t)}return!1};var UJ=["x","y","z"];xl.clearAxisTypes=function(e,r,t){for(var n=0;n{"use strict";var Ng=kt(),YJ=Bt(),GJ=o2(),Rr=gr(),_n=Rr.nestedProperty,nb=v1(),hi=$w(),Po=dt(),Yg=z0(),ft=ua(),ai=Cn(),VJ=S3(),WJ=pl(),rb=sn(),ZJ=zt(),XJ=$5().initInteractions,jJ=lc(),JJ=nu().clearOutline,ML=Kf().dfltConfig,Rg=fL(),na=yL(),rn=hg(),af=_o(),$J=Pa().AX_NAME_PATTERN,tb=0,bL=5;function KJ(e,r,t,n){var a;if(e=Rr.getGraphDiv(e),nb.init(e),Rr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,n=i.config,a=i.frames}var o=nb.triggerHandler(e,"plotly_beforeplot",[r,t,n]);if(o===!1)return Promise.reject();!r&&!t&&!Rr.isPlotDiv(e)&&Rr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(a)return Vt.addFrames(e,a)}TL(e,n),t||(t={}),Ng.select(e).classed("js-plotly-plot",!0),rb.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(na.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=na.cleanLayout(t)),ft.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(x$(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),rb.initGradients(e),rb.initPatterns(e),s&&ai.saveShowSpikeInitial(e);var v=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;v&&ft.doCalcdata(e);for(var h=0;h=e.data.length||a<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(a,n+1)>-1||a>=0&&r.indexOf(-e.data.length+a)>-1||a<0&&r.indexOf(e.data.length+a)>-1)throw new Error("each index in "+t+" must be unique.")}}function kL(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),Ig(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Ig(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function n$(e,r,t){var n,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),n=0;n=0&&f=0&&f0&&typeof D.parts[H]!="string";)H--;var W=D.parts[H],B=D.parts[H-1]+"."+W,X=D.parts.slice(0,H).join("."),V=_n(e.layout,X).get(),re=_n(n,X).get(),te=D.get();if(z!==void 0){_[M]=z,C[M]=W==="reverse"?z:au(te);var K=Yg.getLayoutValObject(n,D.parts);if(K&&K.impliedEdits&&z!==null)for(var ee in K.impliedEdits)x(Rr.relativeAttr(M,ee),K.impliedEdits[ee]);if(["width","height"].indexOf(M)!==-1)if(z){x("autosize",null);var fe=M==="height"?"width":"height";x(fe,n[fe])}else n[M]=e._initialAutoSize[M];else if(M==="autosize")x("width",z?null:n.width),x("height",z?null:n.height);else if(B.match(zL))k(B),_n(n,X+"._inputRange").set(null);else if(B.match(NL)){k(B),_n(n,X+"._inputRange").set(null);var he=_n(n,X).get();he._inputDomain&&(he._input.domain=he._inputDomain.slice())}else B.match(l$)&&_n(n,X+"._inputDomain").set(null);if(W==="type"){A=V;var qe=re.type==="linear"&&z==="log",ze=re.type==="log"&&z==="linear";if(qe||ze){if(!A||!A.range)x(X+".autorange",!0);else if(re.autorange)qe&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var Ne=A.range[0],Ze=A.range[1];qe?(Ne<=0&&Ze<=0&&x(X+".autorange",!0),Ne<=0?Ne=Ze/1e6:Ze<=0&&(Ze=Ne/1e6),x(X+".range[0]",Math.log(Ne)/Math.LN10),x(X+".range[1]",Math.log(Ze)/Math.LN10)):(x(X+".range[0]",Math.pow(10,Ne)),x(X+".range[1]",Math.pow(10,Ze)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[D.parts[0]]&&D.parts[1]==="radialaxis"&&delete n[D.parts[0]]._subplot.viewInitial["radialaxis.range"],Po.getComponentMethod("annotations","convertCoords")(e,re,z,x),Po.getComponentMethod("images","convertCoords")(e,re,z,x)}else x(X+".autorange",!0),x(X+".range",null);_n(n,X+"._inputRange").set(null)}else if(W.match($J)){var Ce=_n(n,M).get(),Je=(z||{}).type;(!Je||Je==="-")&&(Je="linear"),Po.getComponentMethod("annotations","convertCoords")(e,Ce,Je,x),Po.getComponentMethod("images","convertCoords")(e,Ce,Je,x)}var ue=Rg.containerArrayMatch(M);if(ue){f=ue.array,v=ue.index;var ye=ue.property,Me=K||{editType:"calc"};v!==""&&ye===""&&(Rg.isAddVal(z)?C[M]=null:Rg.isRemoveVal(z)?C[M]=(_n(t,f).get()||[])[v]:Rr.warn("unrecognized full object value",r)),af.update(y,Me),u[f]||(u[f]={});var pe=u[f][v];pe||(pe=u[f][v]={}),pe[ye]=z,delete r[M]}else W==="reverse"?(V.range?V.range.reverse():(x(X+".autorange",!0),V.range=[1,0]),re.autorange?y.calc=!0:y.plot=!0):(M==="dragmode"&&(z===!1&&te!==!1||z!==!1&&te===!1)||n._has("scatter-like")&&n._has("regl")&&M==="dragmode"&&(z==="lasso"||z==="select")&&!(te==="lasso"||te==="select")?y.plot=!0:K?af.update(y,K):y.calc=!0,D.set(z))}}for(f in u){var U=Rg.applyContainerArrayChanges(e,i(t,f),u[f],y,i);U||(y.plot=!0)}for(var Q in b){A=ai.getFromId(e,Q);var $=A&&A._constraintGroup;if($){y.calc=!0;for(var Te in $)b[Te]||(ai.getFromId(e,Te)._constraintShrinkable=!0)}}(IL(e)||r.height||r.width)&&(y.plot=!0);var Be=n.shapes;for(v=0;v1;)if(n.pop(),t=_n(r,n.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function f$(e,r){for(var t=0;t=a.length?a[0]:a[u]:a}function l(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var v=0;return function(){if(u&&++v===f)return u()}}return new Promise(function(u,f){function v(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var W=n._frameQueue.pop();W.onInterrupt&&W.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(W){if(W.length!==0){for(var B=0;Bn._timeToNext&&m()};W()}var y=0;function _(W){return Array.isArray(a)?y>=a.length?W.transitionOpts=a[y]:W.transitionOpts=a[0]:W.transitionOpts=a,y++,W}var C,x,b=[],A=r==null,k=Array.isArray(r),M=!A&&!k&&Rr.isPlainObject(r);if(M)b.push({type:"object",data:_(Rr.extendFlat({},r))});else if(A||["string","number"].indexOf(typeof r)!==-1)for(C=0;C0&&FF)&&H.push(x);b=H}}b.length>0?h(b):(e.emit("plotly_animated"),u())})}function m$(e,r,t){if(e=Rr.getGraphDiv(e),r==null)return Promise.resolve();if(!Rr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,a,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=l.length+r.length*2,f=[],v={};for(n=r.length-1;n>=0;n--)if(Rr.isPlainObject(r[n])){var h=r[n].name,d=(s[h]||v[h]||{}).name,m=r[n].name,p=s[d]||v[d];d&&m&&typeof m=="number"&&p&&tbD.index?-1:M.index=0;n--){if(a=f[n].frame,typeof a.name=="number"&&Rr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;s[a.name="frame "+e._transitionData._counter++];);if(s[a.name]){for(i=0;i=0;t--)n=r[t],i.push({type:"delete",index:n}),o.unshift({type:"insert",index:n,value:a[n]});var l=ft.modifyFrames,s=ft.modifyFrames,u=[e,o],f=[e,i];return hi&&hi.add(e,l,u,s,f),ft.modifyFrames(e,i)}function b$(e){e=Rr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return ft.cleanPlot([],{},t,r),ft.purge(e),nb.purge(e),r._container&&r._container.remove(),delete e._context,e}function _$(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Rr.equalDomRects(t,r._lastBBox)){var n=r._invTransform=Rr.inverseTransformMatrix(Rr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),r._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),r._lastBBox=t}}function x$(e){var r=Ng.select(e),t=e._fullLayout;if(t._calcInverseTransform=_$,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var n={};Ng.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),t._uid=Rr.randstr(n)}t._paperdiv.selectAll(".main-svg").attr(jJ.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var a=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=a.append("g").classed("imagelayer",!0),t._shapeLowerLayer=a.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Vt.animate=g$;Vt.addFrames=m$;Vt.deleteFrames=y$;Vt.addTraces=DL;Vt.deleteTraces=EL;Vt.extendTraces=LL;Vt.moveTraces=ab;Vt.prependTraces=qL;Vt.newPlot=t$;Vt._doPlot=KJ;Vt.purge=b$;Vt.react=h$;Vt.redraw=r$;Vt.relayout=oh;Vt.restyle=Hg;Vt.setPlotConfig=QJ;Vt.update=Og;Vt._guiRelayout=ob(oh);Vt._guiRestyle=ob(Hg);Vt._guiUpdate=ob(Og);Vt._storeDirectGUIEdit=o$});var Sc=ne(cs=>{"use strict";var w$=dt();cs.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};cs.getRedrawFunc=function(e){return function(){w$.getComponentMethod("colorbar","draw")(e)}};cs.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};cs.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var HL=window.URL||window.webkitURL;cs.createObjectURL=function(e){return HL.createObjectURL(e)};cs.revokeObjectURL=function(e){return HL.revokeObjectURL(e)};cs.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=M$(window.atob(e));return new window.Blob([t],{type:"image/"+r})};cs.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function M$(e){for(var r=e.length,t=new ArrayBuffer(r),n=new Uint8Array(t),a=0;a{"use strict";var ub=kt(),fce=gr(),A$=sn(),T$=zt(),cce=lc(),sb=/"/g,sh="TOBESTRIPPED",k$=new RegExp('("'+sh+")|("+sh+'")',"g");function S$(e){var r=ub.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(n){return n==="<"?"<":n==="&rt;"?">":n.indexOf("<")!==-1||n.indexOf(">")!==-1?"":r.html(n).text()});return r.remove(),t}function C$(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}BL.exports=function(r,t,n){var a=r._fullLayout,i=a._paper,o=a._toppaper,l=a.width,s=a.height,u;i.insert("rect",":first-child").call(A$.setRect,0,0,l,s).call(T$.fill,a.paper_bgcolor);var f=a._basePlotModules||[];for(u=0;u{"use strict";var L$=gr(),q$=Fd().EventEmitter,uh=Sc();function D$(e){var r=e.emitter||new q$,t=new Promise(function(n,a){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,v=e.height||150,h=u*f,d=u*v,m=s.getContext("2d",{willReadFrequently:!0}),p=new i,y,_;l==="svg"||L$.isSafari()?_=uh.encodeSVG(o):(y=uh.createBlob(o,"svg"),_=uh.createObjectURL(y)),s.width=h,s.height=d,p.onload=function(){var C;switch(y=null,uh.revokeObjectURL(_),l!=="svg"&&m.drawImage(p,0,0,h,d),l){case"jpeg":C=s.toDataURL("image/jpeg");break;case"png":C=s.toDataURL("image/png");break;case"webp":C=s.toDataURL("image/webp");break;case"svg":C=_;break;default:var x="Image format is not jpeg, png, svg or webp.";if(a(new Error(x)),!e.promise)return r.emit("error",x)}n(C),e.promise||r.emit("success",C)},p.onerror=function(C){if(y=null,uh.revokeObjectURL(_),a(C),!e.promise)return r.emit("error",C)},p.src=_});return e.promise?t:r}OL.exports=D$});var cb=ne((dce,GL)=>{"use strict";var UL=Bt(),YL=lb(),E$=ua(),vs=gr(),fh=Sc(),P$=Vg(),R$=Wg(),z$=Jh().version,fb={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function N$(e,r){r=r||{};var t,n,a,i;vs.isPlainObject(e)?(t=e.data||[],n=e.layout||{},a=e.config||{},i={}):(e=vs.getGraphDiv(e),t=vs.extendDeep([],e.data),n=vs.extendDeep({},e.layout),a=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||vs.validate(r[k],fb[k])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+vs.join2(fb.format.values,", "," or ")+".");var l={};function s(k,M){return vs.coerce(r,l,fb,k,M)}var u=s("format"),f=s("width"),v=s("height"),h=s("scale"),d=s("setBackground"),m=s("imageDataOnly"),p=document.createElement("div");p.style.position="absolute",p.style.left="-5000px",document.body.appendChild(p);var y=vs.extendFlat({},n);f?y.width=f:r.width===null&&UL(i.width)&&(y.width=i.width),v?y.height=v:r.height===null&&UL(i.height)&&(y.height=i.height);var _=vs.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),C=fh.getRedrawFunc(p);function x(){return new Promise(function(k){setTimeout(k,fh.getDelay(p._fullLayout))})}function b(){return new Promise(function(k,M){var D=P$(p,u,h),z=p._fullLayout.width,F=p._fullLayout.height;function H(){YL.purge(p),document.body.removeChild(p)}if(u==="full-json"){var W=E$.graphJson(p,!1,"keepdata","object",!0,!0);return W.version=z$,W=JSON.stringify(W),H(),k(m?W:fh.encodeJSON(W))}if(H(),u==="svg")return k(m?D:fh.encodeSVG(D));var B=document.createElement("canvas");B.id=vs.randstr(),R$({format:u,width:z,height:F,scale:h,canvas:B,svg:D,promise:!0}).then(k).catch(M)})}function A(k){return m?k.replace(fh.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){YL.newPlot(p,t,y,_).then(C).then(x).then(b).then(function(D){k(A(D))}).catch(function(D){M(D)})})}GL.exports=N$});var ZL=ne((pce,WL)=>{"use strict";var Ro=gr(),F$=ua(),I$=z0(),H$=Kf().dfltConfig,wl=Ro.isPlainObject,Lc=Array.isArray,vb=Ro.isArrayOrTypedArray;WL.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var n=I$.get(),a=[],i={_context:Ro.extendFlat({},H$)},o,l;Lc(r)?(i.data=Ro.extendDeep([],r),o=r):(i.data=[],o=[],a.push(Ma("array","data"))),wl(t)?(i.layout=Ro.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&a.push(Ma("object","layout"))),F$.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;fv.length&&n.push(Ma("unused",a,u.concat(v.length)));var _=v.length,C=Array.isArray(y);C&&(_=Math.min(_,y.length));var x,b,A,k,M;if(h.dimensions===2)for(b=0;b<_;b++)if(Lc(f[b])){f[b].length>v[b].length&&n.push(Ma("unused",a,u.concat(b,v[b].length)));var D=v[b].length;for(x=0;x<(C?Math.min(D,y[b].length):D);x++)A=C?y[b][x]:y,k=f[b][x],M=v[b][x],Ro.validate(k,A)?M!==k&&M!==+k&&n.push(Ma("dynamic",a,u.concat(b,x),k,M)):n.push(Ma("value",a,u.concat(b,x),k))}else n.push(Ma("array",a,u.concat(b),f[b]));else for(b=0;b<_;b++)A=C?y[b]:y,k=f[b],M=v[b],Ro.validate(k,A)?M!==k&&M!==+k&&n.push(Ma("dynamic",a,u.concat(b),k,M)):n.push(Ma("value",a,u.concat(b),k))}else if(h.items&&!m&&Lc(f)){var z=y[Object.keys(y)[0]],F=[],H,W;for(H=0;H{"use strict";var W$=gr(),Xg=Sc();function Z$(e,r,t){var n=document.createElement("a"),a="download"in n,i=new Promise(function(o,l){var s,u;if(a)return s=Xg.createBlob(e,t),u=Xg.createObjectURL(s),n.href=u,n.download=r,document.body.appendChild(n),n.click(),document.body.removeChild(n),Xg.revokeObjectURL(u),s=null,o(r);if(W$.isSafari()){var f=t==="svg"?",":";base64,";return Xg.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}XL.exports=Z$});var hb=ne((yce,$L)=>{"use strict";var JL=gr(),X$=cb(),j$=jL(),mce=Sc();function J$(e,r){var t;return JL.isPlainObject(e)||(t=JL.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(n,a){t&&t._snapshotInProgress&&a(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=X$(e,r),o=r.filename||e.fn||"newplot";o+="."+r.format.replace("-","."),i.then(function(l){return t&&(t._snapshotInProgress=!1),j$(l,o,r.format)}).then(function(l){n(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),a(l)})})}$L.exports=J$});var tq=ne(db=>{"use strict";var Fi=gr(),Ii=Fi.isPlainObject,KL=z0(),QL=ua(),$$=bo(),eq=bn(),rq=Kf().dfltConfig;db.makeTemplate=function(e){e=Fi.isPlainObject(e)?e:Fi.getGraphDiv(e),e=Fi.extendDeep({_context:rq},{data:e.data,layout:e.layout}),QL.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var n={data:{},layout:{}};r.forEach(function(d){var m={};ch(d,m,Q$.bind(null,d));var p=Fi.coerce(d,{},$$,"type"),y=n.data[p];y||(y=n.data[p]=[]),y.push(m)}),ch(t,n.layout,K$.bind(null,t)),delete n.layout.template;var a=t.template;if(Ii(a)){var i=a.layout,o,l,s,u,f,v;Ii(i)&&jg(i,n.layout);var h=a.data;if(Ii(h)){for(l in n.data)if(s=h[l],Array.isArray(s)){for(f=n.data[l],v=f.length,u=s.length,o=0;o_?o.push({code:"unused",traceType:d,templateCount:y,dataCount:_}):_>y&&o.push({code:"reused",traceType:d,templateCount:y,dataCount:_})}}function C(x,b){for(var A in x)if(A.charAt(0)!=="_"){var k=x[A],M=zo(x,A,b);Ii(k)?(Array.isArray(x)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:M,templateitemname:k.templateitemname}),C(k,M)):Array.isArray(k)&&eK(k)&&C(k,M)}}if(C({data:s,layout:l},""),o.length)return o.map(rK)};function eK(e){for(var r=0;r{"use strict";var ca=lb();kn._doPlot=ca._doPlot;kn.newPlot=ca.newPlot;kn.restyle=ca.restyle;kn.relayout=ca.relayout;kn.redraw=ca.redraw;kn.update=ca.update;kn._guiRestyle=ca._guiRestyle;kn._guiRelayout=ca._guiRelayout;kn._guiUpdate=ca._guiUpdate;kn._storeDirectGUIEdit=ca._storeDirectGUIEdit;kn.react=ca.react;kn.extendTraces=ca.extendTraces;kn.prependTraces=ca.prependTraces;kn.addTraces=ca.addTraces;kn.deleteTraces=ca.deleteTraces;kn.moveTraces=ca.moveTraces;kn.purge=ca.purge;kn.addFrames=ca.addFrames;kn.deleteFrames=ca.deleteFrames;kn.animate=ca.animate;kn.setPlotConfig=ca.setPlotConfig;var tK=a1().getGraphDiv,nK=og().eraseActiveShape;kn.deleteActiveShape=function(e){return nK(tK(e))};kn.toImage=cb();kn.validate=ZL();kn.downloadImage=hb();var nq=tq();kn.makeTemplate=nq.makeTemplate;kn.validateTemplate=nq.validateTemplate});var oq=ne((xce,iq)=>{"use strict";var pb=gr(),aK=dt();iq.exports=function(r,t,n,a){var i=a("x"),o=a("y"),l,s=aK.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],n),i){var u=pb.minRowLength(i);o?l=Math.min(u,pb.minRowLength(o)):(l=u,a("y0"),a("dy"))}else{if(!o)return 0;l=pb.minRowLength(o),a("x0"),a("dx")}return t._length=l,l}});var fq=ne((wce,uq)=>{"use strict";var lq=gr().dateTick0,iK=En(),oK=iK.ONEWEEK;function sq(e,r){return e%oK===0?lq(r,1):lq(r,0)}uq.exports=function(r,t,n,a,i){if(i||(i={x:!0,y:!0}),i.x){var o=a("xperiod");o&&(a("xperiod0",sq(o,t.xcalendar)),a("xperiodalignment"))}if(i.y){var l=a("yperiod");l&&(a("yperiod0",sq(l,t.ycalendar)),a("yperiodalignment"))}}});var hq=ne((Mce,vq)=>{"use strict";var cq=["orientation","groupnorm","stackgaps"];vq.exports=function(r,t,n,a){var i=n._scatterStackOpts,o=a("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var u=s[o],f=!1;u?u.traces.push(t):(u=s[o]={traceIndices:[],traces:[t]},f=!0);for(var v={orientation:t.x&&!t.y?"h":"v"},h=0;h{"use strict";var dq=zt(),pq=es().hasColorscale,gq=B0(),lK=Qa();mq.exports=function(r,t,n,a,i,o){var l=lK.isBubble(r),s=(r.line||{}).color,u;if(o=o||{},s&&(n=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",n),pq(r,"marker")&&gq(r,t,a,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:l?u=dq.background:u=dq.defaultLine,i("marker.line.color",u),pq(r,"marker.line")&&gq(r,t,a,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0)),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var mb=ne((Tce,yq)=>{"use strict";var sK=gr().isArrayOrTypedArray,uK=es().hasColorscale,fK=B0();yq.exports=function(r,t,n,a,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",n),uK(r,"line"))fK(r,t,a,i,{prefix:"line.",cLetter:"c"});else{var s=(sK(l)?!1:l)||n;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var _q=ne((kce,bq)=>{"use strict";bq.exports=function(r,t,n){var a=n("line.shape");a==="spline"&&n("line.smoothing")}});var yb=ne((Sce,xq)=>{"use strict";var cK=gr();xq.exports=function(e,r,t,n,a){a=a||{},n("textposition"),cK.coerceFont(n,"textfont",a.font||t.font,a),a.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var bb=ne((Cce,Mq)=>{"use strict";var $g=zt(),wq=gr().isArrayOrTypedArray;function vK(e){for(var r=$g.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var Aq=gr(),hK=dt(),dK=kc(),pK=Ag(),vv=Qa(),gK=oq(),mK=fq(),yK=hq(),bK=gb(),_K=mb(),Tq=_q(),xK=yb(),wK=bb(),MK=gr().coercePattern;kq.exports=function(r,t,n,a){function i(d,m){return Aq.coerce(r,t,dK,d,m)}var o=gK(r,t,a,i);if(o||(t.visible=!1),!!t.visible){mK(r,t,a,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=yK(r,t,a,i);a.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var AK=F1().getAxisGroup;Cq.exports=function(r,t,n,a,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=AK(n,l)+o,u=n._alignmentOpts||{},f=a("alignmentgroup"),v=u[s];v||(v=u[s]={});var h=v[f];h?h.traces.push(t):h=v[f]={traces:[t],alignmentIndex:Object.keys(v).length,offsetGroups:{}};var d=a("offsetgroup")||"",m=h.offsetGroups,p=m[d];t._offsetIndex=0,(i!=="group"||d)&&(p||(p=m[d]={offsetIndex:Object.keys(m).length}),t._offsetIndex=p.offsetIndex)}});var Dq=ne((Dce,qq)=>{"use strict";var TK=gr(),kK=Lq(),SK=kc();qq.exports=function(r,t){var n,a,i,o=t.scattermode;function l(h){return TK.coerce(a._input,a,SK,h)}if(t.scattermode==="group")for(i=0;i=0;f--){var v=r[f];if(v.type==="scatter"&&v.xaxis===s.xaxis&&v.yaxis===s.yaxis){v.opacity=void 0;break}}}}}});var Pq=ne((Ece,Eq)=>{"use strict";var CK=gr(),LK=Ud();Eq.exports=function(e,r){function t(a,i){return CK.coerce(e,r,LK,a,i)}var n=r.barmode==="group";r.scattermode==="group"&&t("scattergap",n?r.bargap:.2)}});var Nq=ne((Pce,zq)=>{"use strict";var qK=Bt(),Rq=gr(),DK=Rq.dateTime2ms,Kg=Rq.incrementMonth,EK=En(),PK=EK.ONEAVGMONTH;zq.exports=function(r,t,n,a){if(t.type!=="date")return{vals:a};var i=r[n+"periodalignment"];if(!i)return{vals:a};var o=r[n+"period"],l;if(qK(o)){if(o=+o,o<=0)return{vals:a}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:a}}for(var u=t.calendar,f=i==="start",v=i==="end",h=r[n+"period0"],d=DK(h,u)||0,m=[],p=[],y=[],_=a.length,C=0;C<_;C++){var x=a[C],b,A,k;if(l){for(b=Math.round((x-d)/(l*PK)),k=Kg(d,l*b,u);k>x;)k=Kg(k,-l,u);for(;k<=x;)k=Kg(k,l,u);A=Kg(k,-l,u)}else{for(b=Math.round((x-d)/o),k=d+b*o;k>x;)k-=o;for(;k<=x;)k+=o;A=k-o}m[C]=f?A:v?k:(A+k)/2,p[C]=A,y[C]=k}return{vals:m,starts:p,ends:y}}});var wb=ne((Rce,Iq)=>{"use strict";var _b=es().hasColorscale,xb=Qd(),Fq=Qa();Iq.exports=function(r,t){Fq.hasLines(t)&&_b(t,"line")&&xb(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),Fq.hasMarkers(t)&&(_b(t,"marker")&&xb(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),_b(t,"marker.line")&&xb(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var vh=ne((zce,Hq)=>{"use strict";var Un=gr();Hq.exports=function(r,t){for(var n=0;n{"use strict";var Bq=gr();Oq.exports=function(r,t){Bq.isArrayOrTypedArray(t.selectedpoints)&&Bq.tagSelected(r,t)}});var em=ne((Fce,Xq)=>{"use strict";var Uq=Bt(),Ab=gr(),hh=Cn(),Yq=Nq(),Mb=En().BADNUM,Tb=Qa(),RK=wb(),zK=vh(),NK=Qg();function FK(e,r){var t=e._fullLayout,n=r._xA=hh.getFromId(e,r.xaxis||"x","x"),a=r._yA=hh.getFromId(e,r.yaxis||"y","y"),i=n.makeCalcdata(r,"x"),o=a.makeCalcdata(r,"y"),l=Yq(r,n,"x",i),s=Yq(r,a,"y",o),u=l.vals,f=s.vals,v=r._length,h=new Array(v),d=r.ids,m=kb(r,t,n,a),p=!1,y,_,C,x,b,A;Wq(t,r);var k="x",M="y",D;if(m)Ab.pushUnique(m.traceIndices,r.index),y=m.orientation==="v",y?(M="s",D="x"):(k="s",D="y"),b=m.stackgaps==="interpolate";else{var z=Vq(r,v);Gq(e,r,n,a,u,f,z)}var F=!!r.xperiodalignment,H=!!r.yperiodalignment;for(_=0;__&&h[x].gap;)x--;for(A=h[x].s,C=h.length-1;C>x;C--)h[C].s=A;for(;_{"use strict";jq.exports=rm;var IK=gr().distinctVals;function rm(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,n=r.posAxis._id.charAt(0),a=[],i=0;i{"use strict";var No=Bt(),of=gr().isArrayOrTypedArray,hv=En().BADNUM,HK=dt(),dh=Cn(),BK=F1().getAxisGroup,tm=Jq();function OK(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;us+o||!No(l))}for(var f=0;f{"use strict";var tD=em(),nD=rD().setGroupPositions;function QK(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;uz[f]&&f{"use strict";var rQ=sn(),uD=En(),ph=uD.BADNUM,fD=uD.LOG_CLIP,oD=fD+.5,lD=fD-.5,nm=gr(),tQ=nm.segmentsIntersect,sD=nm.constrain,Eb=Ag();cD.exports=function(r,t){var n=t.trace||{},a=t.xaxis,i=t.yaxis,o=a.type==="log",l=i.type==="log",s=a._length,u=i._length,f=t.backoff,v=n.marker,h=t.connectGaps,d=t.baseTolerance,m=t.shape,p=m==="linear",y=n.fill&&n.fill!=="none",_=[],C=Eb.minTolerance,x=r.length,b=new Array(x),A=0,k,M,D,z,F,H,W,B,X,V,re,te,K,ee,fe,he;function qe(lr){var _e=r[lr];if(!_e)return!1;var ke=t.linearized?a.l2p(_e.x):a.c2p(_e.x),$e=t.linearized?i.l2p(_e.y):i.c2p(_e.y);if(ke===ph){if(o&&(ke=a.c2p(_e.x,!0)),ke===ph)return!1;l&&$e===ph&&(ke*=Math.abs(a._m*u*(a._m>0?oD:lD)/(i._m*s*(i._m>0?oD:lD)))),ke*=1e3}if($e===ph){if(l&&($e=i.c2p(_e.y,!0)),$e===ph)return!1;$e*=1e3}return[ke,$e]}function ze(lr,_e,ke,$e){var We=ke-lr,qr=$e-_e,Vr=.5-lr,Hr=.5-_e,lt=We*We+qr*qr,xt=We*Vr+qr*Hr;if(xt>0&&xt1||Math.abs(Vr.y-ke[0][1])>1)&&(Vr=[Vr.x,Vr.y],$e&&Je(Vr,lr)Me||lr[1]U)return[sD(lr[0],ye,Me),sD(lr[1],pe,U)]}function or(lr,_e){if(lr[0]===_e[0]&&(lr[0]===ye||lr[0]===Me)||lr[1]===_e[1]&&(lr[1]===pe||lr[1]===U))return!0}function vr(lr,_e){var ke=[],$e=nr(lr),We=nr(_e);return $e&&We&&or($e,We)||($e&&ke.push($e),We&&ke.push(We)),ke}function rr(lr,_e,ke){return function($e,We){var qr=nr($e),Vr=nr(We),Hr=[];if(qr&&Vr&&or(qr,Vr))return Hr;qr&&Hr.push(qr),Vr&&Hr.push(Vr);var lt=2*nm.constrain(($e[lr]+We[lr])/2,_e,ke)-((qr||$e)[lr]+(Vr||We)[lr]);if(lt){var xt;qr&&Vr?xt=lt>0==qr[lr]>Vr[lr]?qr:Vr:xt=qr||Vr,xt[lr]+=lt}return Hr}}var yr;m==="linear"||m==="spline"?yr=Oe:m==="hv"||m==="vh"?yr=vr:m==="hvh"?yr=rr(0,ye,Me):m==="vhv"&&(yr=rr(1,pe,U));function dr(lr,_e){var ke=_e[0]-lr[0],$e=(_e[1]-lr[1])/ke,We=(lr[1]*_e[0]-_e[1]*lr[0])/ke;return We>0?[$e>0?ye:Me,U]:[$e>0?Me:ye,pe]}function Ae(lr){var _e=lr[0],ke=lr[1],$e=_e===b[A-1][0],We=ke===b[A-1][1];if(!($e&&We))if(A>1){var qr=_e===b[A-2][0],Vr=ke===b[A-2][1];$e&&(_e===ye||_e===Me)&&qr?Vr?A--:b[A-1]=lr:We&&(ke===pe||ke===U)&&Vr?qr?A--:b[A-1]=lr:b[A++]=lr}else b[A++]=lr}function Ue(lr){b[A-1][0]!==lr[0]&&b[A-1][1]!==lr[1]&&Ae([Be,Ie]),Ae(lr),ir=null,Be=Ie=0}var Xe=nm.isArrayOrTypedArray(v);function Er(lr){if(lr&&f&&(lr.i=k,lr.d=r,lr.trace=n,lr.marker=Xe?v[lr.i]:v,lr.backoff=f),Ne=lr[0]/s,Ze=lr[1]/u,$=lr[0]Me?Me:0,Te=lr[1]U?U:0,$||Te){if(!A)b[A++]=[$||lr[0],Te||lr[1]];else if(ir){var _e=yr(ir,lr);_e.length>1&&(Ue(_e[0]),b[A++]=_e[1])}else ur=yr(b[A-1],lr)[0],b[A++]=ur;var ke=b[A-1];$&&Te&&(ke[0]!==$||ke[1]!==Te)?(ir&&(Be!==$&&Ie!==Te?Ae(Be&&Ie?dr(ir,lr):[Be||$,Ie||Te]):Be&&Ie&&Ae([Be,Ie])),Ae([$,Te])):Be-$&&Ie-Te&&Ae([$||Be,Te||Ie]),ir=lr,Be=$,Ie=Te}else ir&&Ue(yr(ir,lr)[0]),b[A++]=lr}for(k=0;kCe(H,Sr))break;D=H,K=X[0]*B[0]+X[1]*B[1],K>re?(re=K,z=H,W=!1):K=r.length||!H)break;Er(H),M=H}}ir&&Ae([Be||ir[0],Ie||ir[1]]),_.push(b.slice(0,A))}var er=m.slice(m.length-1);if(f&&er!=="h"&&er!=="v"){for(var Ke=!1,br=-1,Mr=[],mr=0;mr<_.length;mr++)for(var pr=0;pr<_[mr].length-1;pr++){var kr=_[mr][pr],Pr=_[mr][pr+1],Ur=rQ.applyBackoff(Pr,kr);(Ur[0]!==Pr[0]||Ur[1]!==Pr[1])&&(Ke=!0),Mr[br+1]||(br++,Mr[br]=[kr,[Ur[0],Ur[1]]])}return Ke?Mr:_}return _}});var pD=ne((Uce,dD)=>{"use strict";var hD={tonextx:1,tonexty:1,tonext:1};dD.exports=function(r,t,n){var a,i,o,l,s,u={},f=!1,v=-1,h=0,d=-1;for(i=0;i=0?s=d:(s=d=h,h++),s{"use strict";var Ml=kt(),nQ=dt(),gh=gr(),pv=gh.ensureSingle,mD=gh.identity,Yn=sn(),gv=Qa(),aQ=vD(),iQ=pD(),am=yg().tester;yD.exports=function(r,t,n,a,i,o){var l,s,u=!i,f=!!i&&i.duration>0,v=iQ(r,t,n);if(l=a.selectAll("g.trace").data(v,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),oQ(r,l,t),f){o&&(s=o());var h=Ml.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});h.each(function(){a.selectAll("g.trace").each(function(d,m){gD(r,m,t,d,v,this,i)})})}else l.each(function(d,m){gD(r,m,t,d,v,this,i)});u&&l.exit().remove(),a.selectAll("path:not([d])").remove()};function oQ(e,r,t){r.each(function(n){var a=pv(Ml.select(this),"g","fills");Yn.setClipUrl(a,t.layerClipId,e);var i=n[0].trace,o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=a.selectAll("g").data(o,mD);l.enter().append("g"),l.exit().each(function(s){i[s]=null}).remove(),l.order().each(function(s){i[s]=pv(Ml.select(this),"path","js-fill")})})}function gD(e,r,t,n,a,i,o){var l=e._context.staticPlot,s;lQ(e,r,t,n,a);var u=!!o&&o.duration>0;function f(rr){return u?rr.transition():rr}var v=t.xaxis,h=t.yaxis,d=n[0].trace,m=d.line,p=Ml.select(i),y=pv(p,"g","errorbars"),_=pv(p,"g","lines"),C=pv(p,"g","points"),x=pv(p,"g","text");if(nQ.getComponentMethod("errorbars","plot")(e,y,t,o),d.visible!==!0)return;f(p).style("opacity",d.opacity);var b,A,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var M,D;k==="y"?(M=1,D=h.c2p(0,!0)):k==="x"&&(M=0,D=v.c2p(0,!0)),n[0][t.isRangePlot?"nodeRangePlot3":"node3"]=p;var z="",F=[],H=d._prevtrace,W=null,B=null;H&&(z=H._prevRevpath||"",A=H._nextFill,F=H._ownPolygons,W=H._fillsegments,B=H._fillElement);var X,V,re="",te="",K,ee,fe,he,qe,ze,Ne=[];d._polygons=[];var Ze=[],Ce=[],Je=gh.noop;if(b=d._ownFill,gv.hasLines(d)||d.fill!=="none"){A&&A.datum(n),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(K=Yn.steps(m.shape),ee=Yn.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?K=ee=function(rr){var yr=rr[rr.length-1];return rr.length>1&&rr[0][0]===yr[0]&&rr[0][1]===yr[1]?Yn.smoothclosed(rr.slice(1),m.smoothing):Yn.smoothopen(rr,m.smoothing)}:K=ee=function(rr){return"M"+rr.join("L")},fe=function(rr){return ee(rr.reverse())},Ce=aQ(n,{xaxis:v,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(m.width||1,3)/4,shape:m.shape,backoff:m.backoff,simplify:m.simplify,fill:d.fill}),Ze=new Array(Ce.length);var ue=0;for(s=0;s=l[0]&&p.x<=l[1]&&p.y>=s[0]&&p.y<=s[1]}),h=Math.ceil(v.length/f),d=0;a.forEach(function(p,y){var _=p[0].trace;gv.hasMarkers(_)&&_.marker.maxdisplayed>0&&y{"use strict";_D.exports={container:"marker",min:"cmin",max:"cmax"}});var wD=ne((Vce,xD)=>{"use strict";var im=Cn();xD.exports=function(r,t,n){var a={},i={_fullLayout:n},o=im.getFromTrace(i,t,"x"),l=im.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),a.xLabel=im.tickText(o,o.c2l(s),!0).text,a.yLabel=im.tickText(l,l.c2l(u),!0).text,a}});var mh=ne((Wce,MD)=>{"use strict";var Rb=kt(),mv=sn(),sQ=dt();function uQ(e){var r=Rb.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var n=Rb.select(this),a=t.trace||t[0].trace;zb(n,a,e)}),r.selectAll("g.text").each(function(t){var n=Rb.select(this),a=t.trace||t[0].trace;Nb(n,a,e)}),r.selectAll("g.trace path.js-line").call(mv.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(mv.fillGroupStyle,e,!1),sQ.getComponentMethod("errorbars","style")(r)}function zb(e,r,t){mv.pointStyle(e.selectAll("path.point"),r,t)}function Nb(e,r,t){mv.textPointStyle(e.selectAll("text"),r,t)}function fQ(e,r,t){var n=r[0].trace;n.selectedpoints?(mv.selectedPointStyle(t.selectAll("path.point"),n),mv.selectedTextStyle(t.selectAll("text"),n)):(zb(t,n,e),Nb(t,n,e))}MD.exports={style:uQ,stylePoints:zb,styleText:Nb,styleOnSelect:fQ}});var Fb=ne((Zce,AD)=>{"use strict";var yv=zt(),cQ=Qa();AD.exports=function(r,t){var n,a;if(r.mode==="lines")return n=r.line.color,n&&yv.opacity(n)?n:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return a=i&&yv.opacity(i)?i:o&&yv.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",a?yv.opacity(a)<.3?yv.addOpacity(a,.3):a:(n=(r.line||{}).color,n&&yv.opacity(n)&&cQ.hasLines(r)&&r.line.width?n:r.fillcolor)}});var SD=ne((Xce,kD)=>{"use strict";var om=gr(),TD=ss(),vQ=dt(),hQ=Fb(),Ib=zt(),dQ=om.fillText;kD.exports=function(r,t,n,a){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,u=l.c2p(t),f=s.c2p(n),v=[u,f],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,m=!!o.xperiodalignment,p=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var y=function(te){if(m){var K=l.c2p(te.xStart),ee=l.c2p(te.xEnd);return u>=Math.min(K,ee)&&u<=Math.max(K,ee)?0:1/0}var fe=Math.max(3,te.mrc||0),he=1-1/fe,qe=Math.abs(l.c2p(te.x)-u);return qe=Math.min(K,ee)&&f<=Math.max(K,ee)?0:1/0}var fe=Math.max(3,te.mrc||0),he=1-1/fe,qe=Math.abs(s.c2p(te.y)-f);return qeNe!=U>=Ne&&(ye=Je[Ce-1][0],Me=Je[Ce][0],U-pe&&(ue=ye+(Me-ye)*(Ne-pe)/(U-pe),fe=Math.min(fe,ue),he=Math.max(he,ue)));return fe=Math.max(fe,0),he=Math.min(he,l._length),{x0:fe,x1:he,y0:Ne,y1:Ne}}if(h.indexOf("fills")!==-1&&o._fillElement){var X=W(o._fillElement)&&!W(o._fillExclusionElement);if(X){var V=B(o._polygons);V===null&&(V={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var re=Ib.defaultLine;return Ib.opacity(o.fillcolor)?re=o.fillcolor:Ib.opacity((o.line||{}).color)&&(re=o.line.color),om.extendFlat(r,{distance:r.maxHoverDistance,x0:V.x0,x1:V.x1,y0:V.y0,y1:V.y1,color:re,hovertemplate:!1}),delete r.index,o.text&&!om.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var qD=ne((jce,LD)=>{"use strict";var CD=Qa();LD.exports=function(r,t){var n=r.cd,a=r.xaxis,i=r.yaxis,o=[],l=n[0].trace,s,u,f,v,h=!CD.hasMarkers(l)&&!CD.hasText(l);if(h)return[];if(t===!1)for(s=0;s{"use strict";DD.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var ND=ne(($ce,zD)=>{"use strict";var yh=dt().traceIs,Hb=l3();zD.exports=function(r,t,n,a){n("autotypenumbers",a.autotypenumbersDflt);var i=n("type",(a.splomStash||{}).type);i==="-"&&(pQ(t,a.data),t.type==="-"?t.type="linear":r.type=t.type)};function pQ(e,r){if(e.type==="-"){var t=e._id,n=t.charAt(0),a;t.indexOf("scene")!==-1&&(t=n);var i=gQ(r,t,n);if(i){if(i.type==="histogram"&&n==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=n+"calendar",l=i[o],s={noMultiCategory:!yh(i,"cartesian")||yh(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&n==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,RD(i,n)){var u=PD(i),f=[];for(a=0;a0&&(a["_"+t+"axes"]||{})[r])return a;if((a[t+"axis"]||t)===r){if(RD(a,t))return a;if((a[t]||[]).length||a[t+"0"])return a}}}function PD(e){return{v:"x",h:"y"}[e.orientation||"v"]}function RD(e,r){var t=PD(e),n=yh(e,"box-violin"),a=yh(e._fullInput||{},"candlestick");return n&&!a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var ID=ne((Kce,FD)=>{"use strict";var mQ=ji().isTypedArraySpec;function yQ(e,r){var t=r.dataAttr||e._id.charAt(0),n={},a,i,o;if(r.axData)a=r.axData;else for(a=[],i=0;i0||mQ(i),l;o&&(l="array");var s=n("categoryorder",l),u;s==="array"&&(u=n("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=yQ(t,a).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var OD=ne((Qce,BD)=>{"use strict";var HD=Jl().mix,bQ=cl(),_Q=gr();BD.exports=function(r,t,n,a){a=a||{};var i=a.dfltColor;function o(D,z){return _Q.coerce2(r,t,a.attributes,D,z)}var l=o("linecolor",i),s=o("linewidth"),u=n("showline",a.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=HD(i,a.bgColor,a.blend||bQ.lightFraction).toRgbString(),v=o("gridcolor",f),h=o("gridwidth"),d=o("griddash"),m=n("showgrid",a.showGrid||!!v||!!h||!!d);if(m||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),a.hasMinor){var p=HD(t.gridcolor,a.bgColor,67).toRgbString(),y=o("minor.gridcolor",p),_=o("minor.gridwidth",t.gridwidth||1),C=o("minor.griddash",t.griddash||"solid"),x=n("minor.showgrid",!!y||!!_||!!C);x||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!a.noZeroLine){var b=o("zerolinelayer"),A=o("zerolinecolor",i),k=o("zerolinewidth"),M=n("zeroline",a.showGrid||!!A||!!k);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var Ob=ne((e0e,ZD)=>{"use strict";var UD=Bt(),xQ=dt(),bh=gr(),wQ=bn(),MQ=gl(),Bb=pl(),YD=D2(),GD=P2(),AQ=N2(),TQ=F2(),kQ=ID(),SQ=OD(),CQ=S3(),VD=dp(),lm=Pa().WEEKDAY_PATTERN,LQ=Pa().HOUR_PATTERN;ZD.exports=function(r,t,n,a,i){var o=a.letter,l=a.font||{},s=a.splomStash||{},u=n("visible",!a.visibleDflt),f=t._template||{},v=t.type||f.type||"-",h;if(v==="date"){var d=xQ.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",a.calendar),a.noTicklabelmode||(h=n("ticklabelmode"))}!a.noTicklabelindex&&(v==="date"||v==="linear")&&n("ticklabelindex");var m="";(!a.noTicklabelposition||v==="multicategory")&&(m=bh.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||n("ticklabeloverflow",m.indexOf("inside")!==-1?"hide past domain":v==="category"||v==="multicategory"?"allow":"hide past div"),VD(t,i),CQ(r,t,n,a),kQ(r,t,n,a),v!=="category"&&!a.noHover&&n("hoverformat");var p=n("color"),y=p!==Bb.color.dflt?p:l.color,_=s.label||i._dfltTitle[o];if(TQ(r,t,n,v,a),!u)return t;n("title.text",_),bh.coerceFont(n,"title.font",l,{overrideDflt:{size:bh.bigFont(l.size),color:y}}),YD(r,t,n,v);var C=a.hasMinor;if(C&&(wQ.newContainer(t,"minor"),YD(r,t,n,v,{isMinor:!0})),AQ(r,t,n,v,a),GD(r,t,n,a),C){var x=a.isMinor;a.isMinor=!0,GD(r,t,n,a),a.isMinor=x}SQ(r,t,n,{dfltColor:p,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:C,attributes:Bb}),C&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&n("mirror");var b=v==="multicategory";if(!a.noTickson&&(v==="category"||b)&&(t.ticks||t.showgrid)&&(b?(n("tickson","boundaries"),delete t.ticklabelposition):n("tickson")),b){var A=n("showdividers");A&&(n("dividercolor"),n("dividerwidth"))}if(v==="date")if(MQ(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:qQ}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=WD(i[l]),s){o=lm;break}}var u=n("pattern",o);if(u===lm)for(l=0;l<2;l++)s=WD(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case lm:if(!UD(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case LQ:if(!UD(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var EQ=Bt(),sm=gr();XD.exports=function(r,t,n,a){var i=a.counterAxes||[],o=a.overlayableAxes||[],l=a.letter,s=a.grid,u=a.overlayingDomain,f,v,h,d,m,p;s&&(v=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],v&&(h=s[l+"side"].split(" ")[0],d=s.domain[l][h==="right"||h==="top"?1:0])),v=v||[0,1],f=f||(EQ(r.position)?"free":i[0]||"free"),h=h||(l==="x"?"bottom":"left"),d=d||0,m=0,p=!1;var y=sm.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),_=sm.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(y==="free"){if(l==="y"){var C=n("autoshift");C&&(d=_==="left"?u[0]:u[1],p=t.automargin?t.automargin:!0,m=_==="left"?-3:3),n("shift",m)}n("position",d)}n("automargin",p);var x=!1;if(o.length&&(x=sm.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!x){var b=n("domain",v);b[0]>b[1]-1/4096&&(t.domain=v),sm.noneOrAll(r.domain,t.domain,v),t.tickmode==="sync"&&(t.tickmode="auto")}return n("layer"),t}});var nE=ne((t0e,tE)=>{"use strict";var qc=gr(),jD=zt(),PQ=Vu().isUnifiedHover,RQ=e5(),JD=bn(),zQ=A0(),$D=pl(),NQ=ND(),KD=Ob(),FQ=F1(),QD=Ub(),Gb=ya(),hs=Gb.id2name,eE=Gb.name2id,IQ=Pa().AX_ID_PATTERN,rE=dt(),um=rE.traceIs,Yb=rE.getComponentMethod;function fm(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}tE.exports=function(r,t,n){var a=t.autotypenumbers,i={},o={},l={},s={},u={},f={},v={},h={},d={},m={},p,y;for(p=0;p{"use strict";var HQ=kt(),aE=dt(),cm=gr(),to=sn(),vm=Cn();iE.exports=function(r,t,n,a){var i=r._fullLayout;if(t.length===0){vm.redrawComponents(r);return}function o(y){var _=y.xaxis,C=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(to.setTranslate,0,0).call(to.setScale,1,1),y.plot.call(to.setTranslate,_._offset,C._offset).call(to.setScale,1,1);var x=y.plot.selectAll(".scatterlayer .trace");x.selectAll(".point").call(to.setPointGroupScale,1,1),x.selectAll(".textpoint").call(to.setTextPointsScale,1,1),x.call(to.hideOutsideRangePoints,y)}function l(y,_){var C=y.plotinfo,x=C.xaxis,b=C.yaxis,A=x._length,k=b._length,M=!!y.xr1,D=!!y.yr1,z=[];if(M){var F=cm.simpleMap(y.xr0,x.r2l),H=cm.simpleMap(y.xr1,x.r2l),W=F[1]-F[0],B=H[1]-H[0];z[0]=(F[0]*(1-_)+_*H[0]-F[0])/(F[1]-F[0])*A,z[2]=A*(1-_+_*B/W),x.range[0]=x.l2r(F[0]*(1-_)+_*H[0]),x.range[1]=x.l2r(F[1]*(1-_)+_*H[1])}else z[0]=0,z[2]=A;if(D){var X=cm.simpleMap(y.yr0,b.r2l),V=cm.simpleMap(y.yr1,b.r2l),re=X[1]-X[0],te=V[1]-V[0];z[1]=(X[1]*(1-_)+_*V[1]-X[1])/(X[0]-X[1])*k,z[3]=k*(1-_+_*te/re),b.range[0]=x.l2r(X[0]*(1-_)+_*V[0]),b.range[1]=b.l2r(X[1]*(1-_)+_*V[1])}else z[1]=0,z[3]=k;vm.drawOne(r,x,{skipTitle:!0}),vm.drawOne(r,b,{skipTitle:!0}),vm.redrawComponents(r,[x._id,b._id]);var K=M?A/z[2]:1,ee=D?k/z[3]:1,fe=M?z[0]:0,he=D?z[1]:0,qe=M?z[0]/z[2]*A:0,ze=D?z[1]/z[3]*k:0,Ne=x._offset-qe,Ze=b._offset-ze;C.clipRect.call(to.setTranslate,fe,he).call(to.setScale,1/K,1/ee),C.plot.call(to.setTranslate,Ne,Ze).call(to.setScale,K,ee),to.setPointGroupScale(C.zoomScalePts,1/K,1/ee),to.setTextPointsScale(C.zoomScaleTxt,1/K,1/ee)}var s;a&&(s=a());function u(){for(var y={},_=0;_n.duration?(u(),d=window.cancelAnimationFrame(p)):d=window.requestAnimationFrame(p)}return v=Date.now(),d=window.requestAnimationFrame(p),Promise.resolve()}});var Vb=ne(Ua=>{"use strict";var dm=kt(),lE=dt(),Dc=gr(),BQ=ua(),OQ=sn(),sE=p1().getModuleCalcData,lf=ya(),Al=Pa(),UQ=lc(),Xt=Dc.ensureSingle;function hm(e,r,t){return Dc.ensureSingle(e,r,t,function(n){n.datum(t)})}var Ec=Al.zindexSeparator;Ua.name="cartesian";Ua.attr=["xaxis","yaxis"];Ua.idRoot=["x","y"];Ua.idRegex=Al.idRegex;Ua.attrRegex=Al.attrRegex;Ua.attributes=ED();Ua.layoutAttributes=pl();Ua.supplyLayoutDefaults=nE();Ua.transitionAxes=oE();Ua.finalizeSubplots=function(e,r){var t=r._subplots,n=t.xaxis,a=t.yaxis,i=t.cartesian,o=i,l={},s={},u,f,v;for(u=0;u0){var d=h.id;if(d.indexOf(Ec)!==-1)continue;d+=Ec+(u+1),h=Dc.extendFlat({},h,{id:d,plot:a._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var m=[],p,y=0;y1&&(A+=Ec+b),x.push(l+A),o=0;o1,v=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=Xt(n,"path","xlines-above"),r.ylines=Xt(n,"path","ylines-above"),r.xaxislayer=Xt(n,"g","xaxislayer-above"),r.yaxislayer=Xt(n,"g","yaxislayer-above");else{if(!o){var h=Xt(n,"g","layer-subplot");r.shapelayer=Xt(h,"g","shapelayer"),r.imagelayer=Xt(h,"g","imagelayer"),v&&f?(r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer):(r.minorGridlayer=Xt(n,"g","minor-gridlayer"),r.gridlayer=Xt(n,"g","gridlayer"),r.zerolinelayer=Xt(n,"g","zerolinelayer"));var d=Xt(n,"g","layer-between");r.shapelayerBetween=Xt(d,"g","shapelayer"),r.imagelayerBetween=Xt(d,"g","imagelayer"),Xt(n,"path","xlines-below"),Xt(n,"path","ylines-below"),r.overlinesBelow=Xt(n,"g","overlines-below"),Xt(n,"g","xaxislayer-below"),Xt(n,"g","yaxislayer-below"),r.overaxesBelow=Xt(n,"g","overaxes-below")}r.overplot=Xt(n,"g","overplot"),r.plot=Xt(r.overplot,"g",a),v&&f?r.zerolinelayerAbove=v.zerolinelayerAbove:r.zerolinelayerAbove=Xt(n,"g","zerolinelayer-above"),o||(r.xlines=Xt(n,"path","xlines-above"),r.ylines=Xt(n,"path","ylines-above"),r.overlinesAbove=Xt(n,"g","overlines-above"),Xt(n,"g","xaxislayer-above"),Xt(n,"g","yaxislayer-above"),r.overaxesAbove=Xt(n,"g","overaxes-above"),r.xlines=n.select(".xlines-"+l),r.ylines=n.select(".ylines-"+s),r.xaxislayer=n.select(".xaxislayer-"+l),r.yaxislayer=n.select(".yaxislayer-"+s))}else{var m=v.plotgroup,p=a+"-x",y=a+"-y";r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer,r.zerolinelayerAbove=v.zerolinelayerAbove,Xt(v.overlinesBelow,"path",p),Xt(v.overlinesBelow,"path",y),Xt(v.overaxesBelow,"g",p),Xt(v.overaxesBelow,"g",y),r.plot=Xt(v.overplot,"g",a),Xt(v.overlinesAbove,"path",p),Xt(v.overlinesAbove,"path",y),Xt(v.overaxesAbove,"g",p),Xt(v.overaxesAbove,"g",y),r.xlines=m.select(".overlines-"+l).select("."+p),r.ylines=m.select(".overlines-"+s).select("."+y),r.xaxislayer=m.select(".overaxes-"+l).select("."+p),r.yaxislayer=m.select(".overaxes-"+s).select("."+y)}o||(u||(hm(r.minorGridlayer,"g",r.xaxis._id),hm(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(_){return _[0]}).sort(lf.idSort),hm(r.gridlayer,"g",r.xaxis._id),hm(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(_){return _[0]}).sort(lf.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function cE(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=dm.select(this);f.remove(),vE(u,r),t[u]=!0});for(var n in r._plots)for(var a=r._plots[n],i=a.overlays||[],o=0;o{"use strict";var pm=Qa();hE.exports={hasLines:pm.hasLines,hasMarkers:pm.hasMarkers,hasText:pm.hasText,isBubble:pm.isBubble,attributes:kc(),layoutAttributes:Ud(),supplyDefaults:Sq(),crossTraceDefaults:Dq(),supplyLayoutDefaults:Pq(),calc:em().calc,crossTraceCalc:iD(),arraysToCalcdata:vh(),plot:bD(),colorbar:Pb(),formatLabels:wD(),style:mh().style,styleOnSelect:mh().styleOnSelect,hoverPoints:SD(),selectPoints:qD(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Vb(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var mE=ne((o0e,gE)=>{"use strict";var GQ=kt(),VQ=zt(),pE=U5(),Wb=gr(),WQ=Wb.strScale,ZQ=Wb.strRotate,XQ=Wb.strTranslate;gE.exports=function(r,t,n){var a=r.node(),i=pE[n.arrowhead||0],o=pE[n.startarrowhead||0],l=(n.arrowwidth||1)*(n.arrowsize||1),s=(n.arrowwidth||1)*(n.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,v=i.backoff*l+n.standoff,h=o.backoff*s+n.startstandoff,d,m,p,y;if(a.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},m={x:+r.attr("x2"),y:+r.attr("y2")};var _=d.x-m.x,C=d.y-m.y;if(p=Math.atan2(C,_),y=p+Math.PI,v&&h&&v+h>Math.sqrt(_*_+C*C)){X();return}if(v){if(v*v>_*_+C*C){X();return}var x=v*Math.cos(p),b=v*Math.sin(p);m.x+=x,m.y+=b,r.attr({x2:m.x,y2:m.y})}if(h){if(h*h>_*_+C*C){X();return}var A=h*Math.cos(p),k=h*Math.sin(p);d.x-=A,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(a.nodeName==="path"){var M=a.getTotalLength(),D="";if(M{"use strict";var yE=kt(),Zb=dt(),jQ=ua(),uf=gr(),Xb=uf.strTranslate,xh=Cn(),Pc=zt(),iu=sn(),bE=ss(),jb=ci(),Jb=Ku(),_h=To(),JQ=bn().arrayEditor,$Q=mE();wE.exports={draw:KQ,drawOne:_E,drawRaw:xE};function KQ(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?We="right":We="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[We]}for(var pe=!1,U=["x","y"],Q=0;Q1)&&(Be===Te?(Sr=Ie.r2fraction(r["a"+$]),(Sr<0||Sr>1)&&(pe=!0)):pe=!0),yr=Ie._offset+Ie.r2p(r[$]),Ue=.5}else{var er=Er==="domain";$==="x"?(Ae=r[$],yr=er?Ie._offset+Ie._length*Ae:yr=l.l+l.w*Ae):(Ae=1-r[$],yr=er?Ie._offset+Ie._length*Ae:yr=l.t+l.h*Ae),Ue=r.showarrow?.5:Ae}if(r.showarrow){rr.head=yr;var Ke=r["a"+$];if(Xe=ur*Me(.5,r.xanchor)-Oe*Me(.5,r.yanchor),Be===Te){var br=xh.getRefType(Be);br==="domain"?($==="y"&&(Ke=1-Ke),rr.tail=Ie._offset+Ie._length*Ke):br==="paper"?$==="y"?(Ke=1-Ke,rr.tail=l.t+l.h*Ke):rr.tail=l.l+l.w*Ke:rr.tail=Ie._offset+Ie.r2p(Ke),dr=Xe}else rr.tail=yr+Ke,dr=Xe+Ke;rr.text=rr.tail+Xe;var Mr=o[$==="x"?"width":"height"];if(Te==="paper"&&(rr.head=uf.constrain(rr.head,1,Mr-1)),Be==="pixel"){var mr=-Math.max(rr.tail-3,rr.text),pr=Math.min(rr.tail+3,rr.text)-Mr;mr>0?(rr.tail+=mr,rr.text+=mr):pr>0&&(rr.tail-=pr,rr.text-=pr)}rr.tail+=vr,rr.head+=vr}else Xe=nr*Me(Ue,or),dr=Xe,rr.text=yr+Xe;rr.text+=vr,Xe+=vr,dr+=vr,r["_"+$+"padplus"]=nr/2+dr,r["_"+$+"padminus"]=nr/2-dr,r["_"+$+"size"]=nr,r["_"+$+"shift"]=Xe}if(pe){M.remove();return}var kr=0,Pr=0;if(r.align!=="left"&&(kr=(Ce-Ne)*(r.align==="center"?.5:1)),r.valign!=="top"&&(Pr=(Je-Ze)*(r.valign==="middle"?.5:1)),qe)he.select("svg").attr({x:F+kr-1,y:F+Pr}).call(iu.setClipUrl,W?p:null,e);else{var Ur=F+Pr-ze.top,lr=F+kr-ze.left;re.call(jb.positionText,lr,Ur).call(iu.setClipUrl,W?p:null,e)}B.select("rect").call(iu.setRect,F,F,Ce,Je),H.call(iu.setRect,D/2,D/2,ue-D,ye-D),M.call(iu.setTranslate,Math.round(y.x.text-ue/2),Math.round(y.y.text-ye/2)),x.attr({transform:"rotate("+_+","+y.x.text+","+y.y.text+")"});var _e=function($e,We){C.selectAll(".annotation-arrow-g").remove();var qr=y.x.head,Vr=y.y.head,Hr=y.x.tail+$e,lt=y.y.tail+We,xt=y.x.text+$e,Rt=y.y.text+We,St=uf.rotationXYMatrix(_,xt,Rt),hn=uf.apply2DTransform(St),Fn=uf.apply2DTransform2(St),$n=+H.attr("width"),jt=+H.attr("height"),cn=xt-.5*$n,un=cn+$n,Kt=Rt-.5*jt,aa=Kt+jt,rt=[[cn,Kt,cn,aa],[cn,aa,un,aa],[un,aa,un,Kt],[un,Kt,cn,Kt]].map(Fn);if(!rt.reduce(function(It,In){return It^!!uf.segmentsIntersect(qr,Vr,qr+1e6,Vr+1e6,In[0],In[1],In[2],In[3])},!1)){rt.forEach(function(It){var In=uf.segmentsIntersect(Hr,lt,qr,Vr,It[0],It[1],It[2],It[3]);In&&(Hr=In.x,lt=In.y)});var Qt=r.arrowwidth,Ct=r.arrowcolor,dn=r.arrowside,pn=C.append("g").style({opacity:Pc.opacity(Ct)}).classed("annotation-arrow-g",!0),tn=pn.append("path").attr("d","M"+Hr+","+lt+"L"+qr+","+Vr).style("stroke-width",Qt+"px").call(Pc.stroke,Pc.rgb(Ct));if($Q(tn,dn,r),s.annotationPosition&&tn.node().parentNode&&!n){var fn=qr,ha=Vr;if(r.standoff){var Sn=Math.sqrt(Math.pow(qr-Hr,2)+Math.pow(Vr-lt,2));fn+=r.standoff*(Hr-qr)/Sn,ha+=r.standoff*(lt-Vr)/Sn}var Na=pn.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Hr-fn)+","+(lt-ha),transform:Xb(fn,ha)}).style("stroke-width",Qt+6+"px").call(Pc.stroke,"rgba(0,0,0,0)").call(Pc.fill,"rgba(0,0,0,0)"),da,wn;_h.init({element:Na.node(),gd:e,prepFn:function(){var It=iu.getTranslate(M);da=It.x,wn=It.y,a&&a.autorange&&h(a._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(It,In){var pi=hn(da,wn),io=pi[0]+It,gi=pi[1]+In;M.call(iu.setTranslate,io,gi),d("x",sf(a,It,"x",l,r)),d("y",sf(i,In,"y",l,r)),r.axref===r.xref&&d("ax",sf(a,It,"ax",l,r)),r.ayref===r.yref&&d("ay",sf(i,In,"ay",l,r)),pn.attr("transform",Xb(It,In)),x.attr({transform:"rotate("+_+","+io+","+gi+")"})},doneFn:function(){Zb.call("_guiRelayout",e,m());var It=document.querySelector(".js-notes-box-panel");It&&It.redraw(It.selectedObj)}})}}};if(r.showarrow&&_e(0,0),b){var ke;_h.init({element:M.node(),gd:e,prepFn:function(){ke=x.attr("transform")},moveFn:function($e,We){var qr="pointer";if(r.showarrow)r.axref===r.xref?d("ax",sf(a,$e,"ax",l,r)):d("ax",r.ax+$e),r.ayref===r.yref?d("ay",sf(i,We,"ay",l.w,r)):d("ay",r.ay+We),_e($e,We);else{if(n)return;var Vr,Hr;if(a)Vr=sf(a,$e,"x",l,r);else{var lt=r._xsize/l.w,xt=r.x+(r._xshift-r.xshift)/l.w-lt/2;Vr=_h.align(xt+$e/l.w,lt,0,1,r.xanchor)}if(i)Hr=sf(i,We,"y",l,r);else{var Rt=r._ysize/l.h,St=r.y-(r._yshift+r.yshift)/l.h-Rt/2;Hr=_h.align(St-We/l.h,Rt,0,1,r.yanchor)}d("x",Vr),d("y",Hr),(!a||!i)&&(qr=_h.getCursor(a?.5:Vr,i?.5:Hr,r.xanchor,r.yanchor))}x.attr({transform:Xb($e,We)+ke}),Jb(M,qr)},clickFn:function($e,We){r.captureevents&&e.emit("plotly_clickannotation",k(We))},doneFn:function(){Jb(M),Zb.call("_guiRelayout",e,m());var $e=document.querySelector(".js-notes-box-panel");$e&&$e.redraw($e.selectedObj)}})}}s.annotationText?re.call(jb.makeEditable,{delegate:M,gd:e}).call(te).on("edit",function(ee){r.text=ee,this.call(te),d("text",ee),a&&a.autorange&&h(a._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),Zb.call("_guiRelayout",e,m())}):re.call(te)}});var CE=ne((s0e,SE)=>{"use strict";var ME=gr(),QQ=dt(),AE=bn().arrayEditor;SE.exports={hasClickToShow:eee,onClick:ree};function eee(e,r){var t=kE(e,r);return t.on.length>0||t.explicitOff.length>0}function ree(e,r){var t=kE(e,r),n=t.on,a=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(n.length||a.length){for(l=0;l{"use strict";var $b=gr(),bv=zt();LE.exports=function(r,t,n,a){a("opacity");var i=a("bgcolor"),o=a("bordercolor"),l=bv.opacity(o);a("borderpad");var s=a("borderwidth"),u=a("showarrow");a("text",u?" ":n._dfltTitle.annotation),a("textangle"),$b.coerceFont(a,"font",n.font),a("width"),a("align");var f=a("height");if(f&&a("valign"),u){var v=a("arrowside"),h,d;v.indexOf("end")!==-1&&(h=a("arrowhead"),d=a("arrowsize")),v.indexOf("start")!==-1&&(a("startarrowhead",h),a("startarrowsize",d)),a("arrowcolor",l?t.bordercolor:bv.defaultLine),a("arrowwidth",(l&&s||1)*2),a("standoff"),a("startstandoff")}var m=a("hovertext"),p=n.hoverlabel||{};if(m){var y=a("hoverlabel.bgcolor",p.bgcolor||(bv.opacity(i)?bv.rgb(i):bv.defaultLine)),_=a("hoverlabel.bordercolor",p.bordercolor||bv.contrast(y)),C=$b.extendFlat({},p.font);C.color||(C.color=_),$b.coerceFont(a,"hoverlabel.font",C)}a("captureevents",!!m)}});var DE=ne((f0e,qE)=>{"use strict";var Qb=gr(),Rc=Cn(),tee=gl(),nee=Kb(),aee=fv();qE.exports=function(r,t){tee(r,t,{name:"annotations",handleItemDefaults:iee})};function iee(e,r,t){function n(x,b){return Qb.coerce(e,r,aee,x,b)}var a=n("visible"),i=n("clicktoshow");if(a||i){nee(e,r,t,n);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var v=l[f],h=Rc.coerceRef(e,r,u,v,"","paper");if(h!=="paper"){var d=Rc.getFromId(u,h);d._annIndices.push(r._index)}if(Rc.coercePosition(r,u,n,h,v,.5),o){var m="a"+v,p=Rc.coerceRef(e,r,u,m,"pixel",["pixel","paper"]);p!=="pixel"&&p!==h&&(p=r[m]="pixel");var y=p==="pixel"?s[f]:.4;Rc.coercePosition(r,u,n,p,m,y)}n(v+"anchor"),n(v+"shift")}if(Qb.noneOrAll(e,r,["x","y"]),o&&Qb.noneOrAll(e,r,["ax","ay"]),i){var _=n("xclick"),C=n("yclick");r._xclick=_===void 0?r.x:Rc.cleanPosition(_,u,r.xref),r._yclick=C===void 0?r.y:Rc.cleanPosition(C,u,r.yref)}}}});var RE=ne((c0e,PE)=>{"use strict";var e4=gr(),zc=Cn(),oee=gm().draw;PE.exports=function(r){var t=r._fullLayout,n=e4.filterVisible(t.annotations);if(n.length&&r._fullData.length)return e4.syncOrAsync([oee,lee],r)};function lee(e){var r=e._fullLayout;e4.filterVisible(r.annotations).forEach(function(t){var n=zc.getFromId(e,t.xref),a=zc.getFromId(e,t.yref),i=zc.getRefType(t.xref),o=zc.getRefType(t.yref);t._extremes={},i==="range"&&EE(t,n),o==="range"&&EE(t,a)})}function EE(e,r){var t=r._id,n=t.charAt(0),a=e[n],i=e["a"+n],o=e[n+"ref"],l=e["a"+n+"ref"],s=e["_"+n+"padplus"],u=e["_"+n+"padminus"],f={x:1,y:-1}[n]*e[n+"shift"],v=3*e.arrowsize*e.arrowwidth||0,h=v+f,d=v-f,m=3*e.startarrowsize*e.arrowwidth||0,p=m+f,y=m-f,_;if(l===o){var C=zc.findExtremes(r,[r.r2c(a)],{ppadplus:h,ppadminus:d}),x=zc.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,p),ppadminus:Math.max(u,y)});_={min:[C.min[0],x.min[0]],max:[C.max[0],x.max[0]]}}else p=i?p+i:p,y=i?y-i:y,_=zc.findExtremes(r,[r.r2c(a)],{ppadplus:Math.max(s,h,p),ppadminus:Math.max(u,d,y)});e._extremes[t]=_}});var NE=ne((v0e,zE)=>{"use strict";var see=Bt(),uee=id();zE.exports=function(r,t,n,a){t=t||{};var i=n==="log"&&t.type==="linear",o=n==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function v(d){var m=u[d],p=null;i?p=uee(m,t.range):p=Math.pow(10,m),see(p)||(p=null),a(f+d,p)}for(var h=0;h{"use strict";var r4=gm(),FE=CE();IE.exports={moduleType:"component",name:"annotations",layoutAttributes:fv(),supplyLayoutDefaults:DE(),includeBasePlot:eh()("annotations"),calcAutorange:RE(),draw:r4.draw,drawOne:r4.drawOne,drawRaw:r4.drawRaw,hasClickToShow:FE.hasClickToShow,onClick:FE.onClick,convertCoords:NE()}});var mm=ne((d0e,BE)=>{"use strict";var xn=fv(),fee=_o().overrideAll,cee=bn().templatedArray;BE.exports=fee(cee("annotation",{visible:xn.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:xn.xanchor,xshift:xn.xshift,yanchor:xn.yanchor,yshift:xn.yshift,text:xn.text,textangle:xn.textangle,font:xn.font,width:xn.width,height:xn.height,opacity:xn.opacity,align:xn.align,valign:xn.valign,bgcolor:xn.bgcolor,bordercolor:xn.bordercolor,borderpad:xn.borderpad,borderwidth:xn.borderwidth,showarrow:xn.showarrow,arrowcolor:xn.arrowcolor,arrowhead:xn.arrowhead,startarrowhead:xn.startarrowhead,arrowside:xn.arrowside,arrowsize:xn.arrowsize,startarrowsize:xn.startarrowsize,arrowwidth:xn.arrowwidth,standoff:xn.standoff,startstandoff:xn.startstandoff,hovertext:xn.hovertext,hoverlabel:xn.hoverlabel,captureevents:xn.captureevents}),"calc","from-root")});var UE=ne((p0e,OE)=>{"use strict";var t4=gr(),vee=Cn(),hee=gl(),dee=Kb(),pee=mm();OE.exports=function(r,t,n){hee(r,t,{name:"annotations",handleItemDefaults:gee,fullLayout:n.fullLayout})};function gee(e,r,t,n){function a(l,s){return t4.coerce(e,r,pee,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],vee.coercePosition(r,u,a,l,l,.5)}var o=a("visible");o&&(dee(e,r,n.fullLayout,a),i("x"),i("y"),i("z"),t4.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",a("ax",-10),a("ay",-30),t4.noneOrAll(e,r,["ax","ay"])))}});var WE=ne((g0e,VE)=>{"use strict";var YE=gr(),GE=Cn();VE.exports=function(r){for(var t=r.fullSceneLayout,n=t.annotations,a=0;a{"use strict";function n4(e,r){var t=[0,0,0,0],n,a;for(n=0;n<4;++n)for(a=0;a<4;++a)t[a]+=e[4*n+a]*r[n];return t}function yee(e,r){var t=n4(e.projection,n4(e.view,n4(e.model,[r[0],r[1],r[2],1])));return t}ZE.exports=yee});var JE=ne((y0e,jE)=>{"use strict";var bee=gm().drawRaw,_ee=XE(),xee=["x","y","z"];jE.exports=function(r){for(var t=r.fullSceneLayout,n=r.dataScale,a=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=_ee(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*n[0],t.yaxis.r2l(o.y)*n[1],t.zaxis.r2l(o.z)*n[2]]),bee(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var QE=ne((b0e,KE)=>{"use strict";var wee=dt(),$E=gr();KE.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:mm()}}},layoutAttributes:mm(),handleDefaults:UE(),includeBasePlot:Mee,convert:WE(),draw:JE()};function Mee(e,r){var t=wee.subplotsRegistry.gl3d;if(t)for(var n=t.attrRegex,a=Object.keys(e),i=0;i{"use strict";var eP=fv(),rP=$a(),tP=kc().line,Aee=Kl().dash,Tl=la().extendFlat,Tee=bn().templatedArray,_0e=Q1(),_v=bo(),kee=Ru().shapeTexttemplateAttrs,See=bd();nP.exports=Tee("shape",{visible:Tl({},_v.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Tl({},_v.legend,{editType:"calc+arraydraw"}),legendgroup:Tl({},_v.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Tl({},_v.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:rP({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Tl({},_v.legendrank,{editType:"calc+arraydraw"}),legendwidth:Tl({},_v.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Tl({},eP.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Tl({},eP.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Tl({},tP.color,{editType:"arraydraw"}),width:Tl({},tP.width,{editType:"calc+arraydraw"}),dash:Tl({},Aee,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:kee({},{keys:Object.keys(See)}),font:rP({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var oP=ne((w0e,iP)=>{"use strict";var wh=gr(),xv=Cn(),Cee=gl(),Lee=a4(),aP=rf();iP.exports=function(r,t){Cee(r,t,{name:"shapes",handleItemDefaults:Dee})};function qee(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Dee(e,r,t){function n(ee,fe){return wh.coerce(e,r,Lee,ee,fe)}r._isShape=!0;var a=n("visible");if(a){var i=n("showlegend");i&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),wh.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var o=n("path"),l=o?"path":"rect",s=n("type",l),u=s!=="path";u&&delete r.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var f=n("line.width");f&&(n("line.color"),n("line.dash"));for(var v=n("xsizemode"),h=n("ysizemode"),d=["x","y"],m=0;m<2;m++){var p=d[m],y=p+"anchor",_=p==="x"?v:h,C={_fullLayout:t},x,b,A,k=xv.coerceRef(e,r,C,p,void 0,"paper"),M=xv.getRefType(k);if(M==="range"?(x=xv.getFromId(C,k),x._shapeIndices.push(r._index),A=aP.rangeToShapePosition(x),b=aP.shapePositionToRange(x),(x.type==="category"||x.type==="multicategory")&&(n(p+"0shift"),n(p+"1shift"))):b=A=wh.identity,u){var D=.25,z=.75,F=p+"0",H=p+"1",W=e[F],B=e[H];e[F]=b(e[F],!0),e[H]=b(e[H],!0),_==="pixel"?(n(F,0),n(H,10)):(xv.coercePosition(r,C,n,k,F,D),xv.coercePosition(r,C,n,k,H,z)),r[F]=A(r[F]),r[H]=A(r[H]),e[F]=W,e[H]=B}if(_==="pixel"){var X=e[y];e[y]=b(e[y],!0),xv.coercePosition(r,C,n,k,y,.25),r[y]=A(r[y]),e[y]=X}}u&&wh.noneOrAll(e,r,["x0","x1","y0","y1"]);var V=s==="line",re,te;if(u&&(re=n("label.texttemplate")),re||(te=n("label.text")),te||re){n("label.textangle");var K=n("label.textposition",V?"middle":"middle center");n("label.xanchor"),n("label.yanchor",qee(V,K)),n("label.padding"),wh.coerceFont(n,"label.font",t.font)}}}});var uP=ne((M0e,sP)=>{"use strict";var Eee=zt(),lP=gr();function Pee(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}sP.exports=function(r,t,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),lP.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var a=n("newshape.line.width");if(a){var i=(r||{}).plot_bgcolor||"#FFF";n("newshape.line.color",Eee.contrast(i)),n("newshape.line.dash")}var o=r.dragmode==="drawline",l=n("newshape.label.text"),s=n("newshape.label.texttemplate");if(l||s){n("newshape.label.textangle");var u=n("newshape.label.textposition",o?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",Pee(o,u)),n("newshape.label.padding"),lP.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var dP=ne((A0e,hP)=>{"use strict";var i4=gr(),wv=Cn(),Mv=P1(),cP=rf();hP.exports=function(r){var t=r._fullLayout,n=i4.filterVisible(t.shapes);if(!(!n.length||!r._fullData.length))for(var a=0;a0?u+o:o;return{ppad:o,ppadplus:l?v:h,ppadminus:l?h:v}}else return{ppad:o}}function fP(e,r,t){var n=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,u=a?e.r2c:e.d2c,f=r[n+"sizemode"]==="scaled";if(f?(i=r[n+"0"],o=r[n+"1"],a&&(l=r[n+"0shift"],s=r[n+"1shift"])):(i=r[n+"anchor"],o=r[n+"anchor"]),i!==void 0)return[u(i)+l,u(o)+s];if(r.path){var v=1/0,h=-1/0,d=r.path.match(Mv.segmentRE),m,p,y,_,C;for(e.type==="date"&&(u=cP.decodeDate(u)),m=0;mh&&(h=C)));if(h>=v)return[v,h]}}});var mP=ne((T0e,gP)=>{"use strict";var pP=og();gP.exports={moduleType:"component",name:"shapes",layoutAttributes:a4(),supplyLayoutDefaults:oP(),supplyDrawNewShapeDefaults:uP(),includeBasePlot:eh()("shapes"),calcAutorange:dP(),draw:pP.draw,drawOne:pP.drawOne}});var o4=ne((S0e,bP)=>{"use strict";var yP=Pa(),Nee=bn().templatedArray,k0e=Q1();bP.exports=Nee("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",yP.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",yP.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var xP=ne((C0e,_P)=>{"use strict";var Fee=gr(),l4=Cn(),Iee=gl(),Hee=o4(),Bee="images";_P.exports=function(r,t){var n={name:Bee,handleItemDefaults:Oee};Iee(r,t,n)};function Oee(e,r,t){function n(h,d){return Fee.coerce(e,r,Hee,h,d)}var a=n("source"),i=n("visible",!!a);if(!i)return r;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var u=l[s],f=l4.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var v=l4.getFromId(o,f);v._imgIndices.push(r._index)}l4.coercePosition(r,o,n,f,u,0)}return r}});var TP=ne((L0e,AP)=>{"use strict";var wP=kt(),Uee=sn(),Av=Cn(),MP=ya(),Yee=lc();AP.exports=function(r){var t=r._fullLayout,n=[],a={},i=[],o,l;for(l=0;l{"use strict";var kP=Bt(),Gee=id();SP.exports=function(r,t,n,a){t=t||{};var i=n==="log"&&t.type==="linear",o=n==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),u,f,v=0;v{"use strict";LP.exports={moduleType:"component",name:"images",layoutAttributes:o4(),supplyLayoutDefaults:xP(),includeBasePlot:eh()("images"),draw:TP(),convertCoords:CP()}});var ym=ne((E0e,DP)=>{"use strict";DP.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var s4=ne((P0e,PP)=>{"use strict";var Vee=$a(),Wee=cl(),Zee=la().extendFlat,Xee=_o().overrideAll,jee=_d(),EP=bn().templatedArray,Jee=EP("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});PP.exports=Xee(EP("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Jee,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Zee(jee({editType:"arraydraw"}),{}),font:Vee({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Wee.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var FP=ne((R0e,NP)=>{"use strict";var bm=gr(),RP=gl(),zP=s4(),$ee=ym(),Kee=$ee.name,Qee=zP.buttons;NP.exports=function(r,t){var n={name:Kee,handleItemDefaults:ere};RP(r,t,n)};function ere(e,r,t){function n(o,l){return bm.coerce(e,r,zP,o,l)}var a=RP(e,r,{name:"buttons",handleItemDefaults:rre}),i=n("visible",a.length>0);i&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),bm.noneOrAll(e,r,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),bm.coerceFont(n,"font",t.font),n("bgcolor",t.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function rre(e,r){function t(a,i){return bm.coerce(e,r,Qee,a,i)}var n=t("visible",e.method==="skip"||Array.isArray(e.args));n&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var BP=ne((z0e,HP)=>{"use strict";HP.exports=Pn;var kl=kt(),IP=zt(),Tv=sn(),_m=gr();function Pn(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Pn.barWidth=2;Pn.barLength=20;Pn.barRadius=2;Pn.barPad=1;Pn.barColor="#808BA4";Pn.prototype.enable=function(r,t,n){var a=this.gd._fullLayout,i=a.width,o=a.height;this.position=r;var l=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,v=this.position.direction,h=v==="down",d=v==="left",m=v==="right",p=v==="up",y=s,_=f,C,x,b,A;!h&&!d&&!m&&!p&&(this.position.direction="down",h=!0);var k=h||p;k?(C=l,x=C+y,h?(b=u,A=Math.min(b+_,o),_=A-b):(A=u+_,b=Math.max(A-_,0),_=A-b)):(b=u,A=b+_,d?(x=l+y,C=Math.max(x-y,0),y=x-C):(C=l,x=Math.min(C+y,i),y=x-C)),this._box={l:C,t:b,w:y,h:_};var M=s>y,D=Pn.barLength+2*Pn.barPad,z=Pn.barWidth+2*Pn.barPad,F=l,H=u+f;H+z>o&&(H=o-z);var W=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);W.exit().on(".drag",null).remove(),W.enter().append("rect").classed("scrollbar-horizontal",!0).call(IP.fill,Pn.barColor),M?(this.hbar=W.attr({rx:Pn.barRadius,ry:Pn.barRadius,x:F,y:H,width:D,height:z}),this._hbarXMin=F+D/2,this._hbarTranslateMax=y-D):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var B=f>_,X=Pn.barWidth+2*Pn.barPad,V=Pn.barLength+2*Pn.barPad,re=l+s,te=u;re+X>i&&(re=i-X);var K=this.container.selectAll("rect.scrollbar-vertical").data(B?[0]:[]);K.exit().on(".drag",null).remove(),K.enter().append("rect").classed("scrollbar-vertical",!0).call(IP.fill,Pn.barColor),B?(this.vbar=K.attr({rx:Pn.barRadius,ry:Pn.barRadius,x:re,y:te,width:X,height:V}),this._vbarYMin=te+V/2,this._vbarTranslateMax=_-V):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var ee=this.id,fe=C-.5,he=B?x+X+.5:x+.5,qe=b-.5,ze=M?A+z+.5:A+.5,Ne=a._topdefs.selectAll("#"+ee).data(M||B?[0]:[]);if(Ne.exit().remove(),Ne.enter().append("clipPath").attr("id",ee).append("rect"),M||B?(this._clipRect=Ne.select("rect").attr({x:Math.floor(fe),y:Math.floor(qe),width:Math.ceil(he)-Math.floor(fe),height:Math.ceil(ze)-Math.floor(qe)}),this.container.call(Tv.setClipUrl,ee,this.gd),this.bg.attr({x:l,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Tv.setClipUrl,null),delete this._clipRect),M||B){var Ze=kl.behavior.drag().on("dragstart",function(){kl.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Ze);var Ce=kl.behavior.drag().on("dragstart",function(){kl.event.sourceEvent.preventDefault(),kl.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(Ce),B&&this.vbar.on(".drag",null).call(Ce)}this.setTranslate(t,n)};Pn.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Tv.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Pn.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=kl.event.dx),this.vbar&&(t-=kl.event.dy),this.setTranslate(r,t)};Pn.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=kl.event.deltaY),this.vbar&&(t+=kl.event.deltaY),this.setTranslate(r,t)};Pn.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var n=r+this._hbarXMin,a=n+this._hbarTranslateMax,i=_m.constrain(kl.event.x,n,a),o=(i-n)/(a-n),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=_m.constrain(kl.event.y,s,u),v=(f-s)/(u-s),h=this.position.h-this._box.h;t=v*h}this.setTranslate(r,t)};Pn.prototype.setTranslate=function(r,t){var n=this.position.w-this._box.w,a=this.position.h-this._box.h;if(r=_m.constrain(r||0,0,n),t=_m.constrain(t||0,0,a),this.translateX=r,this.translateY=t,this.container.call(Tv.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/n;this.hbar.call(Tv.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/a;this.vbar.call(Tv.setTranslate,r,t+o*this._vbarTranslateMax)}}});var JP=ne((N0e,jP)=>{"use strict";var kv=kt(),Mh=ua(),Ah=zt(),Sv=sn(),no=gr(),xm=ci(),tre=bn().arrayEditor,UP=Ka().LINE_SPACING,ct=ym(),nre=BP();jP.exports=function(r){var t=r._fullLayout,n=no.filterVisible(t[ct.name]);function a(h){Mh.autoMargin(r,ZP(h))}var i=t._menulayer.selectAll("g."+ct.containerClassName).data(n.length>0?[0]:[]);if(i.enter().append("g").classed(ct.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){kv.select(this).selectAll("g."+ct.headerGroupClassName).each(a)}).remove(),n.length!==0){var o=i.selectAll("g."+ct.headerGroupClassName).data(n,are);o.enter().append("g").classed(ct.headerGroupClassName,!0);for(var l=no.ensureSingle(i,"g",ct.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s{"use strict";var cre=ym();$P.exports={moduleType:"component",name:cre.name,layoutAttributes:s4(),supplyLayoutDefaults:FP(),draw:JP()}});var kh=ne((I0e,QP)=>{"use strict";QP.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var v4=ne((H0e,tR)=>{"use strict";var eR=$a(),vre=_d(),hre=la().extendDeepAll,dre=_o().overrideAll,pre=i1(),rR=bn().templatedArray,Nc=kh(),gre=rR("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});tR.exports=dre(rR("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:gre,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:hre(vre({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:pre.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:eR({})},font:eR({}),activebgcolor:{valType:"color",dflt:Nc.gripBgActiveColor},bgcolor:{valType:"color",dflt:Nc.railBgColor},bordercolor:{valType:"color",dflt:Nc.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Nc.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Nc.tickLength},tickcolor:{valType:"color",dflt:Nc.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Nc.minorTickLength}}),"arraydraw","from-root")});var oR=ne((B0e,iR)=>{"use strict";var Cv=gr(),nR=gl(),aR=v4(),mre=kh(),yre=mre.name,bre=aR.steps;iR.exports=function(r,t){nR(r,t,{name:yre,handleItemDefaults:_re})};function _re(e,r,t){function n(v,h){return Cv.coerce(e,r,aR,v,h)}for(var a=nR(e,r,{name:"steps",handleItemDefaults:xre}),i=0,o=0;o{"use strict";var Sl=kt(),wm=ua(),ff=zt(),Cl=sn(),ao=gr(),wre=ao.strTranslate,Sh=ci(),Mre=bn().arrayEditor,Mt=kh(),p4=Ka(),uR=p4.LINE_SPACING,h4=p4.FROM_TL,d4=p4.FROM_BR;pR.exports=function(r){var t=r._context.staticPlot,n=r._fullLayout,a=Are(n,r),i=n._infolayer.selectAll("g."+Mt.containerClassName).data(a.length>0?[0]:[]);i.enter().append("g").classed(Mt.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),wm.autoMargin(r,fR(f))}if(i.exit().each(function(){Sl.select(this).selectAll("g."+Mt.groupClassName).each(o)}).remove(),a.length!==0){var l=i.selectAll("g."+Mt.groupClassName).data(a,Tre);l.enter().append("g").classed(Mt.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",wre(o-Mt.gripWidth*.5,r._dims.currentValueTotalHeight))}}function g4(e,r){var t=e._dims;return t.inputAreaStart+Mt.stepInset+(t.inputAreaLength-2*Mt.stepInset)*Math.min(1,Math.max(0,r))}function sR(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Mt.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Mt.stepInset-2*t.inputAreaStart)))}function Ere(e,r,t){var n=t._dims,a=ao.ensureSingle(e,"rect",Mt.railTouchRectClass,function(i){i.call(hR,r,e,t).style("pointer-events","all")});a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Mt.tickOffset+t.ticklen+n.labelHeight)}).call(ff.fill,t.bgcolor).attr("opacity",0),Cl.setTranslate(a,0,n.currentValueTotalHeight)}function Pre(e,r){var t=r._dims,n=t.inputAreaLength-Mt.railInset*2,a=ao.ensureSingle(e,"rect",Mt.railRectClass);a.attr({width:n,height:Mt.railWidth,rx:Mt.railRadius,ry:Mt.railRadius,"shape-rendering":"crispEdges"}).call(ff.stroke,r.bordercolor).call(ff.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Cl.setTranslate(a,Mt.railInset,(t.inputAreaWidth-Mt.railWidth)*.5+t.currentValueTotalHeight)}});var yR=ne((U0e,mR)=>{"use strict";var Rre=kh();mR.exports={moduleType:"component",name:Rre.name,layoutAttributes:v4(),supplyLayoutDefaults:oR(),draw:gR()}});var Am=ne((Y0e,_R)=>{"use strict";var bR=cl();_R.exports={bgcolor:{valType:"color",dflt:bR.background,editType:"plot"},bordercolor:{valType:"color",dflt:bR.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var m4=ne((G0e,xR)=>{"use strict";xR.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Tm=ne((V0e,wR)=>{"use strict";wR.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var TR=ne(Sm=>{"use strict";var zre=ya(),Nre=ci(),MR=Tm(),Fre=Ka().LINE_SPACING,km=MR.name;function AR(e){var r=e&&e[km];return r&&r.visible}Sm.isVisible=AR;Sm.makeData=function(e){for(var r=zre.list({_fullLayout:e},"x",!0),t=e.margin,n=[],a=0;a{"use strict";var Cm=gr(),kR=bn(),SR=ya(),Ire=Am(),Hre=m4();CR.exports=function(r,t,n){var a=r[n],i=t[n];if(!(a.rangeslider||t._requestRangeslider[i._id]))return;Cm.isPlainObject(a.rangeslider)||(a.rangeslider={});var o=a.rangeslider,l=kR.newContainer(i,"rangeslider");function s(A,k){return Cm.coerce(o,l,Ire,A,k)}var u,f;function v(A,k){return Cm.coerce(u,f,Hre,A,k)}var h=s("visible");if(h){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var m=d.cartesian.filter(function(A){return A.substr(0,A.indexOf("y"))===SR.name2id(n)}).map(function(A){return A.substr(A.indexOf("y"),A.length)}),p=Cm.simpleMap(m,SR.id2name),y=0;y{"use strict";var Bre=ya().list,Ore=Ju().getAutoRange,Ure=Tm();qR.exports=function(r){for(var t=Bre(r,"x",!0),n=0;n{"use strict";var Lm=kt(),Yre=dt(),Gre=ua(),Gn=gr(),qm=Gn.strTranslate,PR=sn(),cf=zt(),Vre=x1(),Wre=Vb(),y4=ya(),Zre=To(),Xre=Ku(),Pt=Tm();RR.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,n=0;n=K.max)re=H[te+1];else if(V=K.pmax)re=H[te+1];else if(V0?e.touches[0].clientX:0}function jre(e,r,t,n){if(r._context.staticPlot)return;var a=e.select("rect."+Pt.slideBoxClassName).node(),i=e.select("rect."+Pt.grabAreaMinClassName).node(),o=e.select("rect."+Pt.grabAreaMaxClassName).node();function l(){var s=Lm.event,u=s.target,f=ER(s),v=f-e.node().getBoundingClientRect().left,h=n.d2p(t._rl[0]),d=n.d2p(t._rl[1]),m=Zre.coverSlip();this.addEventListener("touchmove",p),this.addEventListener("touchend",y),m.addEventListener("mousemove",p),m.addEventListener("mouseup",y);function p(_){var C=ER(_),x=+C-f,b,A,k;switch(u){case a:if(k="ew-resize",h+x>t._length||d+x<0)return;b=h+x,A=d+x;break;case i:if(k="col-resize",h+x>t._length)return;b=h+x,A=d;break;case o:if(k="col-resize",d+x<0)return;b=h,A=d+x;break;default:k="ew-resize",b=v,A=v+x;break}if(A{"use strict";var ite=gr(),ote=Am(),lte=m4(),b4=TR();NR.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:ite.extendFlat({},ote,{yaxis:lte})}}},layoutAttributes:Am(),handleDefaults:LR(),calcAutorange:DR(),draw:zR(),isVisible:b4.isVisible,makeData:b4.makeData,autoMarginOpts:b4.autoMarginOpts}});var Dm=ne(($0e,HR)=>{"use strict";var ste=$a(),IR=cl(),ute=bn().templatedArray,fte=ute("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});HR.exports={visible:{valType:"boolean",editType:"plot"},buttons:fte,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:ste({editType:"plot"}),bgcolor:{valType:"color",dflt:IR.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:IR.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var _4=ne((K0e,BR)=>{"use strict";BR.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var YR=ne((Q0e,UR)=>{"use strict";var Em=gr(),cte=zt(),vte=bn(),hte=gl(),OR=Dm(),x4=_4();UR.exports=function(r,t,n,a,i){var o=r.rangeselector||{},l=vte.newContainer(t,"rangeselector");function s(d,m){return Em.coerce(o,l,OR,d,m)}var u=hte(o,l,{name:"buttons",handleItemDefaults:dte,calendar:i}),f=s("visible",u.length>0);if(f){var v=pte(t,n,a);s("x",v[0]),s("y",v[1]),Em.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Em.coerceFont(s,"font",n.font);var h=s("bgcolor");s("activecolor",cte.contrast(h,x4.lightAmount,x4.darkAmount)),s("bordercolor"),s("borderwidth")}};function dte(e,r,t,n){var a=n.calendar;function i(s,u){return Em.coerce(e,r,OR.buttons,s,u)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(a&&a!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function pte(e,r,t){for(var n=t.filter(function(l){return r[l].anchor===e._id}),a=0,i=0;i{"use strict";var gte=xy(),mte=gr().titleCase;GR.exports=function(r,t){var n=r._name,a={};if(t.step==="all")a[n+".autorange"]=!0;else{var i=yte(r,t);a[n+".range[0]"]=i[0],a[n+".range[1]"]=i[1]}return a};function yte(e,r){var t=e.range,n=new Date(e.r2l(t[1])),a=r.step,i=gte["utc"+mte(a)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(n,-o));break;case"todate":var s=i.offset(n,-o);l=e.l2r(+i.ceil(s));break}var u=t[1];return[l,u]}});var QR=ne((rve,KR)=>{"use strict";var Rm=kt(),bte=dt(),_te=ua(),WR=zt(),$R=sn(),ou=gr(),ZR=ou.strTranslate,Pm=ci(),xte=ya(),A4=Ka(),XR=A4.LINE_SPACING,jR=A4.FROM_TL,JR=A4.FROM_BR,M4=_4(),wte=VR();KR.exports=function(r){var t=r._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(Mte(r),Ate);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(a){var i=Rm.select(this),o=a,l=o.rangeselector,s=i.selectAll("g.button").data(ou.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Rm.select(this),v=wte(o,u);u._isActive=Tte(o,u,v),f.call(w4,l,u),f.call(Ste,l,u,r),f.on("click",function(){r._dragged||bte.call("_guiRelayout",r,v)}),f.on("mouseover",function(){u._isHovered=!0,f.call(w4,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(w4,l,u)})}),Lte(r,s,l,o._name,i)})};function Mte(e){for(var r=xte.list(e,"x",!0),t=[],n=0;n{"use strict";ez.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Dm()}}},layoutAttributes:Dm(),handleDefaults:YR(),draw:QR()}});var zm=ne(T4=>{"use strict";var tz=la().extendFlat;T4.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",a=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",o={x:tz({},t,{}),y:tz({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};T4.defaults=function(e,r,t,n){var a=n&&n.x||[0,1],i=n&&n.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l{"use strict";var qte=gr(),Dte=x0().counter,Ete=zm().attributes,nz=Pa().idRegex,Pte=bn(),k4={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Dte("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[nz.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[nz.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Ete({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Nm(e,r,t){var n=r[t+"axes"],a=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(n))return n;if(a.length)return a}function Rte(e,r){var t=e.grid||{},n=Nm(r,t,"x"),a=Nm(r,t,"y");if(!e.grid&&!n&&!a)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(n),l=Array.isArray(a),s=o&&n!==t.xaxes&&l&&a!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(l&&(u=a.length),o&&(f=n.length));var v=Pte.newContainer(r,"grid");function h(k,M){return qte.coerce(t,v,k4,k,M)}var d=h("rows",u),m=h("columns",f);if(!(d*m>1)){delete r.grid;return}if(!i&&!o&&!l){var p=h("pattern")==="independent";p&&(i=!0)}v._hasSubplotGrid=i;var y=h("roworder"),_=y==="top to bottom",C=i?.2:.1,x=i?.3:.1,b,A;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,A=r._splomGridDflt.yside),v._domains={x:az("x",h,C,b,m),y:az("y",h,x,A,d,_)}}function az(e,r,t,n,a,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",n);for(var s=new Array(a),u=l[0],f=(l[1]-u)/(a-o),v=f*(1-o),h=0;h{"use strict";sz.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var cz=ne((ove,fz)=>{"use strict";var uz=Bt(),Nte=dt(),Fte=gr(),Ite=bn(),Hte=S4();fz.exports=function(e,r,t,n){var a="error_"+n.axis,i=Ite.newContainer(r,a),o=e[a]||{};function l(m,p){return Fte.coerce(o,i,Hte,m,p)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=l("visible",s);if(u!==!1){var f=l("type","array"in o?"data":"percent"),v=!0;f!=="sqrt"&&(v=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(l("array"),l("traceref"),v||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),v||l("valueminus"));var h="copy_"+n.inherit+"style";if(n.inherit){var d=r["error_"+n.inherit];(d||{}).visible&&l(h,!(o.color||uz(o.thickness)||uz(o.width)))}(!n.inherit||!i[h])&&(l("color",t),l("thickness"),l("width",Nte.traceIs(r,"gl3d")?0:4))}}});var C4=ne((lve,hz)=>{"use strict";hz.exports=function(r){var t=r.type,n=r.symmetric;if(t==="data"){var a=r.array||[];if(n)return function(u,f){var v=+a[f];return[v,v]};var i=r.arrayminus||[];return function(u,f){var v=+a[f],h=+i[f];return!isNaN(v)||!isNaN(h)?[h||0,v||0]:[NaN,NaN]}}else{var o=vz(t,r.value),l=vz(t,r.valueminus);return n||r.valueminus===void 0?function(u){var f=o(u);return[f,f]}:function(u){return[l(u),o(u)]}}};function vz(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var gz=ne((sve,pz)=>{"use strict";var L4=Bt(),Bte=dt(),q4=Cn(),Ote=gr(),Ute=C4();pz.exports=function(r){for(var t=r.calcdata,n=0;n{"use strict";var mz=kt(),vf=Bt(),Yte=sn(),Gte=Qa();yz.exports=function(r,t,n,a){var i,o=n.xaxis,l=n.yaxis,s=a&&a.duration>0,u=r._context.staticPlot;t.each(function(f){var v=f[0].trace,h=v.error_x||{},d=v.error_y||{},m;v.ids&&(m=function(C){return C.id});var p=Gte.hasMarkers(v)&&v.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var y=mz.select(this).selectAll("g.errorbar").data(f,m);if(y.exit().remove(),!!f.length){h.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var _=y.enter().append("g").classed("errorbar",!0);s&&_.style("opacity",0).transition().duration(a.duration).style("opacity",1),Yte.setClipUrl(y,n.layerClipId,r),y.each(function(C){var x=mz.select(this),b=Vte(C,o,l);if(!(p&&!C.vis)){var A,k=x.select("path.yerror");if(d.visible&&vf(b.x)&&vf(b.yh)&&vf(b.ys)){var M=d.width;A="M"+(b.x-M)+","+b.yh+"h"+2*M+"m-"+M+",0V"+b.ys,b.noYS||(A+="m-"+M+",0h"+2*M),i=!k.size(),i?k=x.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(a.duration).ease(a.easing)),k.attr("d",A)}else k.remove();var D=x.select("path.xerror");if(h.visible&&vf(b.y)&&vf(b.xh)&&vf(b.xs)){var z=(h.copy_ystyle?d:h).width;A="M"+b.xh+","+(b.y-z)+"v"+2*z+"m0,-"+z+"H"+b.xs,b.noXS||(A+="m0,-"+z+"v"+2*z),i=!D.size(),i?D=x.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(D=D.transition().duration(a.duration).ease(a.easing)),D.attr("d",A)}else D.remove()}})}})};function Vte(e,r,t){var n={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(n.yh=t.c2p(e.yh),n.ys=t.c2p(e.ys),vf(n.ys)||(n.noYS=!0,n.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=r.c2p(e.xh),n.xs=r.c2p(e.xs),vf(n.xs)||(n.noXS=!0,n.xs=r.c2p(e.xs,!0))),n}});var wz=ne((fve,xz)=>{"use strict";var Wte=kt(),_z=zt();xz.exports=function(r){r.each(function(t){var n=t[0].trace,a=n.error_y||{},i=n.error_x||{},o=Wte.select(this);o.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(_z.stroke,a.color),i.copy_ystyle&&(i=a),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(_z.stroke,i.color)})}});var Tz=ne((cve,Az)=>{"use strict";var Ch=gr(),Mz=_o().overrideAll,Lh=S4(),Fc={error_x:Ch.extendFlat({},Lh),error_y:Ch.extendFlat({},Lh)};delete Fc.error_x.copy_zstyle;delete Fc.error_y.copy_zstyle;delete Fc.error_y.copy_ystyle;var qh={error_x:Ch.extendFlat({},Lh),error_y:Ch.extendFlat({},Lh),error_z:Ch.extendFlat({},Lh)};delete qh.error_x.copy_ystyle;delete qh.error_y.copy_ystyle;delete qh.error_z.copy_ystyle;delete qh.error_z.copy_zstyle;Az.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Fc,bar:Fc,histogram:Fc,scatter3d:Mz(qh,"calc","nested"),scattergl:Mz(Fc,"calc","nested")}},supplyDefaults:cz(),calc:gz(),makeComputeError:C4(),plot:bz(),style:wz(),hoverInfo:Zte};function Zte(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var Sz=ne((vve,kz)=>{"use strict";kz.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var Rz=ne((hve,Pz)=>{"use strict";var hf=kt(),D4=Jl(),Im=ua(),Cz=dt(),lu=Cn(),Fm=To(),Fo=gr(),ql=Fo.strTranslate,Ez=la().extendFlat,E4=Ku(),Ll=sn(),P4=zt(),Xte=x1(),jte=ci(),Jte=es().flipScale,$te=Ob(),Kte=Ub(),Qte=pl(),R4=Ka(),Lz=R4.LINE_SPACING,qz=R4.FROM_TL,Dz=R4.FROM_BR,qn=Sz().cn;function ene(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+qn.colorbar).data(rne(e),function(n){return n._id});t.enter().append("g").attr("class",function(n){return n._id}).classed(qn.colorbar,!0),t.each(function(n){var a=hf.select(this);Fo.ensureSingle(a,"rect",qn.cbbg),Fo.ensureSingle(a,"g",qn.cbfills),Fo.ensureSingle(a,"g",qn.cblines),Fo.ensureSingle(a,"g",qn.cbaxis,function(o){o.classed(qn.crisp,!0)}),Fo.ensureSingle(a,"g",qn.cbtitleunshift,function(o){o.append("g").classed(qn.cbtitle,!0)}),Fo.ensureSingle(a,"rect",qn.cboutline);var i=tne(a,n,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&nne(a,n,e)}),t.exit().each(function(n){Im.autoMargin(e,n._id)}).remove(),t.order()}function rne(e){var r=e._fullLayout,t=e.calcdata,n=[],a,i,o,l;function s(x){return Ez(x,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof l.calc=="function"?l.calc(e,o,a):(a._fillgradient=i.reversescale?Jte(i.colorscale):i.colorscale,a._zrange=[i[l.min],i[l.max]])}for(var f=0;f1){var Q=Math.pow(10,Math.floor(Math.log(U)/Math.LN10));Me*=Q*Fo.roundUp(U/Q,[2,5,10]),(Math.abs(W.start)/W.size+1e-6)%1<2e-6&&(ue.tick0=0)}ue.dtick=Me}ue.domain=n?[Ce+m/b.h,Ce+ee-m/b.h]:[Ce+d/b.w,Ce+ee-d/b.w],ue.setScale(),e.attr("transform",ql(Math.round(b.l),Math.round(b.t)));var $=e.select("."+qn.cbtitleunshift).attr("transform",ql(-Math.round(b.l),-Math.round(b.t))),Te=ue.ticklabelposition,Be=ue.title.font.size,Ie=e.select("."+qn.cbaxis),ir,ur=0,Oe=0;function nr(dr,Ae){var Ue={propContainer:ue,propName:r._propPrefix+"title",traceIndex:r._traceIndex,_meta:r._meta,placeholder:x._dfltTitle.colorbar,containerGroup:e.select("."+qn.cbtitle)},Xe=dr.charAt(0)==="h"?dr.substr(1):"h"+dr;e.selectAll("."+Xe+",."+Xe+"-math-group").remove(),Xte.draw(t,dr,Ez(Ue,Ae||{}))}function or(){if(n&&ye||!n&&!ye){var dr,Ae;D==="top"&&(dr=d+b.l+fe*p,Ae=m+b.t+he*(1-Ce-ee)+3+Be*.75),D==="bottom"&&(dr=d+b.l+fe*p,Ae=m+b.t+he*(1-Ce)-3-Be*.25),D==="right"&&(Ae=m+b.t+he*y+3+Be*.75,dr=d+b.l+fe*Ce),nr(ue._id+"title",{attributes:{x:dr,y:Ae,"text-anchor":n?"start":"middle"}})}}function vr(){if(n&&!ye||!n&&ye){var dr=ue.position||0,Ae=ue._offset+ue._length/2,Ue,Xe;if(D==="right")Xe=Ae,Ue=b.l+fe*dr+10+Be*(ue.showticklabels?1:.5);else if(Ue=Ae,D==="bottom"&&(Xe=b.t+he*dr+10+(Te.indexOf("inside")===-1?ue.tickfont.size:0)+(ue.ticks!=="intside"&&r.ticklen||0)),D==="top"){var Er=M.text.split("
").length;Xe=b.t+he*dr+10-re-Lz*Be*Er}nr((n?"h":"v")+ue._id+"title",{avoid:{selection:hf.select(t).selectAll("g."+ue._id+"tick"),side:D,offsetTop:n?0:b.t,offsetLeft:n?b.l:0,maxShift:n?x.width:x.height},attributes:{x:Ue,y:Xe,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function rr(){if(!n&&!ye||n&&ye){var dr=e.select("."+qn.cbtitle),Ae=dr.select("text"),Ue=[-s/2,s/2],Xe=dr.select(".h"+ue._id+"title-math-group").node(),Er=15.6;Ae.node()&&(Er=parseInt(Ae.node().style.fontSize,10)*Lz);var Sr;if(Xe?(Sr=Ll.bBox(Xe),Oe=Sr.width,ur=Sr.height,ur>Er&&(Ue[1]-=(ur-Er)/2)):Ae.node()&&!Ae.classed(qn.jsPlaceholder)&&(Sr=Ll.bBox(Ae.node()),Oe=Sr.width,ur=Sr.height),n){if(ur){if(ur+=5,D==="top")ue.domain[1]-=ur/b.h,Ue[1]*=-1;else{ue.domain[0]+=ur/b.h;var er=jte.lineCount(Ae);Ue[1]+=(1-er)*Er}dr.attr("transform",ql(Ue[0],Ue[1])),ue.setScale()}}else Oe&&(D==="right"&&(ue.domain[0]+=(Oe+Be/2)/b.w),dr.attr("transform",ql(Ue[0],Ue[1])),ue.setScale())}e.selectAll("."+qn.cbfills+",."+qn.cblines).attr("transform",n?ql(0,Math.round(b.h*(1-ue.domain[1]))):ql(Math.round(b.w*ue.domain[0]),0)),Ie.attr("transform",n?ql(0,Math.round(-b.t)):ql(Math.round(-b.l),0));var Ke=e.select("."+qn.cbfills).selectAll("rect."+qn.cbfill).attr("style","").data(X);Ke.enter().append("rect").classed(qn.cbfill,!0).attr("style",""),Ke.exit().remove();var br=z.map(ue.c2p).map(Math.round).sort(function(Pr,Ur){return Pr-Ur});Ke.each(function(Pr,Ur){var lr=[Ur===0?z[0]:(X[Ur]+X[Ur-1])/2,Ur===X.length-1?z[1]:(X[Ur]+X[Ur+1])/2].map(ue.c2p).map(Math.round);n&&(lr[1]=Fo.constrain(lr[1]+(lr[1]>lr[0])?1:-1,br[0],br[1]));var _e=hf.select(this).attr(n?"x":"y",qe).attr(n?"y":"x",hf.min(lr)).attr(n?"width":"height",Math.max(re,2)).attr(n?"height":"width",Math.max(hf.max(lr)-hf.min(lr),2));if(r._fillgradient)Ll.gradient(_e,t,r._id,n?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var ke=H(Pr).replace("e-","");_e.attr("fill",D4(ke).toHexString())}});var Mr=e.select("."+qn.cblines).selectAll("path."+qn.cbline).data(k.color&&k.width?V:[]);Mr.enter().append("path").classed(qn.cbline,!0),Mr.exit().remove(),Mr.each(function(Pr){var Ur=qe,lr=Math.round(ue.c2p(Pr))+k.width/2%1;hf.select(this).attr("d","M"+(n?Ur+","+lr:lr+","+Ur)+(n?"h":"v")+re).call(Ll.lineGroupStyle,k.width,F(Pr),k.dash)}),Ie.selectAll("g."+ue._id+"tick,path").remove();var mr=qe+re+(s||0)/2-(r.ticks==="outside"?1:0),pr=lu.calcTicks(ue),kr=lu.getTickSigns(ue)[2];return lu.drawTicks(t,ue,{vals:ue.ticks==="inside"?lu.clipEnds(ue,pr):pr,layer:Ie,path:lu.makeTickPath(ue,mr,kr),transFn:lu.makeTransTickFn(ue)}),lu.drawLabels(t,ue,{vals:pr,layer:Ie,transFn:lu.makeTransTickLabelFn(ue),labelFns:lu.makeLabelFns(ue,mr)})}function yr(){var dr,Ae=re+s/2;Te.indexOf("inside")===-1&&(dr=Ll.bBox(Ie.node()),Ae+=n?dr.width:dr.height),ir=$.select("text");var Ue=0,Xe=n&&D==="top",Er=!n&&D==="right",Sr=0;if(ir.node()&&!ir.classed(qn.jsPlaceholder)){var er,Ke=$.select(".h"+ue._id+"title-math-group").node();Ke&&(n&&ye||!n&&!ye)?(dr=Ll.bBox(Ke),Ue=dr.width,er=dr.height):(dr=Ll.bBox($.node()),Ue=dr.right-b.l-(n?qe:Je),er=dr.bottom-b.t-(n?Je:qe),!n&&D==="top"&&(Ae+=dr.height,Sr=dr.height)),Er&&(ir.attr("transform",ql(Ue/2+Be/2,0)),Ue*=2),Ae=Math.max(Ae,n?Ue:er)}var br=(n?d:m)*2+Ae+u+s/2,Mr=0;!n&&M.text&&h==="bottom"&&y<=0&&(Mr=br/2,br+=Mr,Sr+=Mr),x._hColorbarMoveTitle=Mr,x._hColorbarMoveCBTitle=Sr;var mr=u+s,pr=(n?qe:Je)-mr/2-(n?d:0),kr=(n?Je:qe)-(n?K:m+Sr-Mr);e.select("."+qn.cbbg).attr("x",pr).attr("y",kr).attr(n?"width":"height",Math.max(br-Mr,2)).attr(n?"height":"width",Math.max(K+mr,2)).call(P4.fill,f).call(P4.stroke,r.bordercolor).style("stroke-width",u);var Pr=Er?Math.max(Ue-10,0):0;e.selectAll("."+qn.cboutline).attr("x",(n?qe:Je+d)+Pr).attr("y",(n?Je+m-K:qe)+(Xe?ur:0)).attr(n?"width":"height",Math.max(re,2)).attr(n?"height":"width",Math.max(K-(n?2*m+ur:2*d+Pr),2)).call(P4.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Ur=n?ze*br:0,lr=n?0:(1-Ne)*br-Sr;if(Ur=C?b.l-Ur:-Ur,lr=_?b.t-lr:-lr,e.attr("transform",ql(Ur,lr)),!n&&(u||D4(f).getAlpha()&&!D4.equals(x.paper_bgcolor,f))){var _e=Ie.selectAll("text"),ke=_e[0].length,$e=e.select("."+qn.cbbg).node(),We=Ll.bBox($e),qr=Ll.getTranslate(e),Vr=2;_e.each(function(cn,un){var Kt=0,aa=ke-1;if(un===Kt||un===aa){var rt=Ll.bBox(this),Qt=Ll.getTranslate(this),Ct;if(un===aa){var dn=rt.right+Qt.x,pn=We.right+qr.x+Je-u-Vr+p;Ct=pn-dn,Ct>0&&(Ct=0)}else if(un===Kt){var tn=rt.left+Qt.x,fn=We.left+qr.x+Je+u+Vr;Ct=fn-tn,Ct<0&&(Ct=0)}Ct&&(ke<3?this.setAttribute("transform","translate("+Ct+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Hr={},lt=qz[v],xt=Dz[v],Rt=qz[h],St=Dz[h],hn=br-re;n?(i==="pixels"?(Hr.y=y,Hr.t=K*Rt,Hr.b=K*St):(Hr.t=Hr.b=0,Hr.yt=y+a*Rt,Hr.yb=y-a*St),l==="pixels"?(Hr.x=p,Hr.l=br*lt,Hr.r=br*xt):(Hr.l=hn*lt,Hr.r=hn*xt,Hr.xl=p-o*lt,Hr.xr=p+o*xt)):(i==="pixels"?(Hr.x=p,Hr.l=K*lt,Hr.r=K*xt):(Hr.l=Hr.r=0,Hr.xl=p+a*lt,Hr.xr=p-a*xt),l==="pixels"?(Hr.y=1-y,Hr.t=br*Rt,Hr.b=br*St):(Hr.t=hn*Rt,Hr.b=hn*St,Hr.yt=y-o*Rt,Hr.yb=y+o*St));var Fn=r.y<.5?"b":"t",$n=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var jt={r:x.width-pr-Ur,l:pr+Hr.r,b:x.height-kr-lr,t:kr+Hr.b};C&&_?Im.autoMargin(t,r._id,Hr):C?t._fullLayout._reservedMargin[r._id][Fn]=jt[Fn]:_||n?t._fullLayout._reservedMargin[r._id][$n]=jt[$n]:t._fullLayout._reservedMargin[r._id][Fn]=jt[Fn]}return Fo.syncOrAsync([Im.previousPromises,or,rr,vr,Im.previousPromises,yr],t)}function nne(e,r,t){var n=r.orientation==="v",a=t._fullLayout,i=a._size,o,l,s;Fm.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),E4(e)},moveFn:function(u,f){e.attr("transform",o+ql(u,f)),l=Fm.align((n?r._uFrac:r._vFrac)+u/i.w,n?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Fm.align((n?r._vFrac:1-r._uFrac)-f/i.h,n?r._lenFrac:r._thickFrac,0,1,r.yanchor);var v=Fm.getCursor(l,s,r.xanchor,r.yanchor);E4(e,v)},doneFn:function(){if(E4(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?Cz.call("_guiRestyle",t,u,r._traceIndex):Cz.call("_guiRelayout",t,u)}}})}function ane(e,r,t){var n=r._levels,a=[],i=[],o,l,s=n.end+n.size/100,u=n.size,f=1.001*t[0]-.001*t[1],v=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=n.start+l*u,!(u>0?o>=s:o<=s));l++)o>f&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";zz.exports={moduleType:"component",name:"colorbar",attributes:Jd(),supplyDefaults:I2(),draw:Rz().draw,hasColorbar:S2()}});var Iz=ne((pve,Fz)=>{"use strict";Fz.exports={moduleType:"component",name:"legend",layoutAttributes:P3(),supplyLayoutDefaults:N3(),draw:j3(),style:V3()}});var Bz=ne((gve,Hz)=>{"use strict";Hz.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var Uz=ne((mve,Oz)=>{"use strict";Oz.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var N4=ne((yve,Wz)=>{"use strict";var one=dt(),Vz=gr(),z4=Vz.extendFlat,Yz=Vz.extendDeep;function Gz(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function lne(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}Wz.exports=function(r,t){var n,a=r.data,i=r.layout,o=Yz([],a),l=Yz({},i,Gz(t.tileClass)),s=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var u=Object.keys(l);for(n=0;n{"use strict";var sne=Fd().EventEmitter,une=dt(),fne=gr(),Zz=Sc(),cne=N4(),vne=Vg(),hne=Wg();function dne(e,r){var t=new sne,n=cne(e,{format:"png"}),a=n.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function i(){var l=Zz.getDelay(a._fullLayout);setTimeout(function(){var s=vne(a),u=document.createElement("canvas");u.id=fne.randstr(),t=hne({format:r.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){a&&document.body.removeChild(a)}},l)}var o=Zz.getRedrawFunc(a);return une.call("_doPlot",a,n.data,n.layout,n.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}Xz.exports=dne});var Kz=ne((_ve,$z)=>{"use strict";var Jz=Sc(),pne={getDelay:Jz.getDelay,getRedrawFunc:Jz.getRedrawFunc,clone:N4(),toSVG:Vg(),svgToImg:Wg(),toImage:jz(),downloadImage:hb()};$z.exports=pne});var eN=ne(su=>{"use strict";su.version=Jh().version;V_();zw();var gne=dt(),Dh=su.register=gne.register,I4=aq(),Qz=Object.keys(I4);for(Hm=0;Hm{"use strict";rN.exports=eN()});var Eh=ne((Mve,iN)=>{"use strict";var mne=Ru().hovertemplateAttrs,yne=Ru().texttemplateAttrs,bne=Y5(),ds=kc(),_ne=bo(),nN=H0(),xne=Kl().dash,Ic=la().extendFlat,wne=_o().overrideAll,Io=ds.marker,aN=ds.line,Mne=Io.line;iN.exports=wne({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:Ic({},ds.mode,{dflt:"markers"}),text:Ic({},ds.text,{}),texttemplate:yne({editType:"plot"},{keys:["lat","lon","location","text"]}),hovertext:Ic({},ds.hovertext,{}),textfont:ds.textfont,textposition:ds.textposition,line:{color:aN.color,width:aN.width,dash:xne},connectgaps:ds.connectgaps,marker:Ic({symbol:Io.symbol,opacity:Io.opacity,angle:Io.angle,angleref:Ic({},Io.angleref,{values:["previous","up","north"]}),standoff:Io.standoff,size:Io.size,sizeref:Io.sizeref,sizemin:Io.sizemin,sizemode:Io.sizemode,colorbar:Io.colorbar,line:Ic({width:Mne.width},nN("marker.line")),gradient:Io.gradient},nN("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:bne(),selected:ds.selected,unselected:ds.unselected,hoverinfo:Ic({},_ne.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:mne()},"calc","nested")});var lN=ne((Ave,oN)=>{"use strict";var H4=gr(),B4=Qa(),Ane=gb(),Tne=mb(),kne=yb(),Sne=bb(),Cne=Eh();oN.exports=function(r,t,n,a){function i(d,m){return H4.coerce(r,t,Cne,d,m)}var o=i("locations"),l;if(o&&o.length){var s=i("geojson"),u;(typeof s=="string"&&s!==""||H4.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);f==="geojson-id"&&i("featureidkey"),l=o.length}else{var v=i("lon")||[],h=i("lat")||[];l=Math.min(v.length,h.length)}if(!l){t.visible=!1;return}t._length=l,i("text"),i("hovertext"),i("hovertemplate"),i("mode"),B4.hasMarkers(t)&&Ane(r,t,n,a,i,{gradient:!0}),B4.hasLines(t)&&(Tne(r,t,n,a,i),i("connectgaps")),B4.hasText(t)&&(i("texttemplate"),kne(r,t,a,i)),i("fill"),t.fill!=="none"&&Sne(r,t,n,i),H4.coerceSelectionMarkerOpacity(t,i)}});var fN=ne((Tve,uN)=>{"use strict";var sN=Cn();uN.exports=function(r,t,n){var a={},i=n[t.geo]._subplot,o=i.mockAxis,l=r.lonlat;return a.lonLabel=sN.tickText(o,o.c2l(l[0]),!0).text,a.latLabel=sN.tickText(o,o.c2l(l[1]),!0).text,a}});var pN=ne((kve,dN)=>{"use strict";var O4=Bt(),cN=En().BADNUM,Lne=wb(),qne=vh(),Dne=Qg(),Ene=gr().isArrayOrTypedArray,vN=gr()._;function hN(e){return e&&typeof e=="string"}dN.exports=function(r,t){var n=Ene(t.locations),a=n?t.locations.length:t._length,i=new Array(a),o;t.geojson?o=function(h){return hN(h)||O4(h)}:o=hN;for(var l=0;l{"use strict";Ya.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"};Ya.axesNames=["lonaxis","lataxis"];Ya.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};Ya.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};Ya.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}};Ya.clipPad=.001;Ya.precision=.1;Ya.landColor="#F0DC82";Ya.waterColor="#3399FF";Ya.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};Ya.sphereSVG={type:"Sphere"};Ya.fillLayers={ocean:1,land:1,lakes:1};Ya.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};Ya.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];Ya.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];Ya.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var U4=ne((Om,gN)=>{(function(e,r){typeof Om=="object"&&typeof gN!="undefined"?r(Om):(e=e||self,r(e.topojson=e.topojson||{}))})(Om,function(e){"use strict";function r(x){return x}function t(x){if(x==null)return r;var b,A,k=x.scale[0],M=x.scale[1],D=x.translate[0],z=x.translate[1];return function(F,H){H||(b=A=0);var W=2,B=F.length,X=new Array(B);for(X[0]=(b+=F[0])*k+D,X[1]=(A+=F[1])*M+z;WD&&(D=W[0]),W[1]z&&(z=W[1])}function H(W){switch(W.type){case"GeometryCollection":W.geometries.forEach(H);break;case"Point":F(W.coordinates);break;case"MultiPoint":W.coordinates.forEach(F);break}}x.arcs.forEach(function(W){for(var B=-1,X=W.length,V;++BD&&(D=V[0]),V[1]z&&(z=V[1])});for(A in x.objects)H(x.objects[A]);return[k,M,D,z]}function a(x,b){for(var A,k=x.length,M=k-b;M<--k;)A=x[M],x[M++]=x[k],x[k]=A}function i(x,b){return typeof b=="string"&&(b=x.objects[b]),b.type==="GeometryCollection"?{type:"FeatureCollection",features:b.geometries.map(function(A){return o(x,A)})}:o(x,b)}function o(x,b){var A=b.id,k=b.bbox,M=b.properties==null?{}:b.properties,D=l(x,b);return A==null&&k==null?{type:"Feature",properties:M,geometry:D}:k==null?{type:"Feature",id:A,properties:M,geometry:D}:{type:"Feature",id:A,bbox:k,properties:M,geometry:D}}function l(x,b){var A=t(x.transform),k=x.arcs;function M(B,X){X.length&&X.pop();for(var V=k[B<0?~B:B],re=0,te=V.length;re1)k=v(x,b,A);else for(M=0,k=new Array(D=x.arcs.length);M1)for(var X=1,V=F(W[0]),re,te;XV&&(te=W[0],W[0]=W[X],W[X]=te,V=re);return W}).filter(function(H){return H.length>0})}}function p(x,b){for(var A=0,k=x.length;A>>1;x[M]=2))throw new Error("n must be \u22652");H=x.bbox||n(x);var A=H[0],k=H[1],M=H[2],D=H[3],z;b={scale:[M-A?(M-A)/(z-1):1,D-k?(D-k)/(z-1):1],translate:[A,k]}}else H=x.bbox;var F=_(b),H,W,B=x.objects,X={};function V(K){return F(K)}function re(K){var ee;switch(K.type){case"GeometryCollection":ee={type:"GeometryCollection",geometries:K.geometries.map(re)};break;case"Point":ee={type:"Point",coordinates:V(K.coordinates)};break;case"MultiPoint":ee={type:"MultiPoint",coordinates:K.coordinates.map(V)};break;default:return K}return K.id!=null&&(ee.id=K.id),K.bbox!=null&&(ee.bbox=K.bbox),K.properties!=null&&(ee.properties=K.properties),ee}function te(K){var ee=0,fe=1,he=K.length,qe,ze=new Array(he);for(ze[0]=F(K[0],0);++ee{"use strict";var Y4=mN.exports={},Pne=Ph().locationmodeToLayer,Rne=U4().feature;Y4.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};Y4.getTopojsonPath=function(e,r){return e+=e.endsWith("/")?"":"/",`${e}${r}.json`};Y4.getTopojsonFeatures=function(e,r){var t=Pne[e.locationmode],n=r.objects[t];return Rne(r,n).features}});var yN=ne(Rh=>{"use strict";var zne=En().BADNUM;Rh.calcTraceToLineCoords=function(e){for(var r=e[0].trace,t=r.connectgaps,n=[],a=[],i=0;i0&&(n.push(a),a=[])}return a.length>0&&n.push(a),n};Rh.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};Rh.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var r=new Array(e.length),t=0;t{bN.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var Vm=ne(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});var Hi=63710088e-1,V4={centimeters:Hi*100,centimetres:Hi*100,degrees:360/(2*Math.PI),feet:Hi*3.28084,inches:Hi*39.37,kilometers:Hi/1e3,kilometres:Hi/1e3,meters:Hi,metres:Hi,miles:Hi/1609.344,millimeters:Hi*1e3,millimetres:Hi*1e3,nauticalmiles:Hi/1852,radians:1,yards:Hi*1.0936},G4={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function df(e,r,t={}){let n={type:"Feature"};return(t.id===0||t.id)&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.properties=r||{},n.geometry=e,n}function Nne(e,r,t={}){switch(e){case"Point":return W4(r).geometry;case"LineString":return X4(r).geometry;case"Polygon":return Z4(r).geometry;case"MultiPoint":return wN(r).geometry;case"MultiLineString":return xN(r).geometry;case"MultiPolygon":return MN(r).geometry;default:throw new Error(e+" is invalid")}}function W4(e,r,t={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Ym(e[0])||!Ym(e[1]))throw new Error("coordinates must contain numbers");return df({type:"Point",coordinates:e},r,t)}function Fne(e,r,t={}){return Gm(e.map(n=>W4(n,r)),t)}function Z4(e,r,t={}){for(let a of e){if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(a[a.length-1].length!==a[0].length)throw new Error("First and last Position are not equivalent.");for(let i=0;iZ4(n,r)),t)}function X4(e,r,t={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return df({type:"LineString",coordinates:e},r,t)}function Hne(e,r,t={}){return Gm(e.map(n=>X4(n,r)),t)}function Gm(e,r={}){let t={type:"FeatureCollection"};return r.id&&(t.id=r.id),r.bbox&&(t.bbox=r.bbox),t.features=e,t}function xN(e,r,t={}){return df({type:"MultiLineString",coordinates:e},r,t)}function wN(e,r,t={}){return df({type:"MultiPoint",coordinates:e},r,t)}function MN(e,r,t={}){return df({type:"MultiPolygon",coordinates:e},r,t)}function Bne(e,r,t={}){return df({type:"GeometryCollection",geometries:e},r,t)}function One(e,r=0){if(r&&!(r>=0))throw new Error("precision must be a positive number");let t=Math.pow(10,r||0);return Math.round(e*t)/t}function AN(e,r="kilometers"){let t=V4[r];if(!t)throw new Error(r+" units is invalid");return e*t}function j4(e,r="kilometers"){let t=V4[r];if(!t)throw new Error(r+" units is invalid");return e/t}function Une(e,r){return TN(j4(e,r))}function Yne(e){let r=e%360;return r<0&&(r+=360),r}function Gne(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function TN(e){return e%(2*Math.PI)*180/Math.PI}function Vne(e){return e%360*Math.PI/180}function Wne(e,r="kilometers",t="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return AN(j4(e,r),t)}function Zne(e,r="meters",t="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=G4[r];if(!n)throw new Error("invalid original units");let a=G4[t];if(!a)throw new Error("invalid final units");return e/n*a}function Ym(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function Xne(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function jne(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(r=>{if(!Ym(r))throw new Error("bbox must only contain numbers")})}function Jne(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}vn.areaFactors=G4;vn.azimuthToBearing=Gne;vn.bearingToAzimuth=Yne;vn.convertArea=Zne;vn.convertLength=Wne;vn.degreesToRadians=Vne;vn.earthRadius=Hi;vn.factors=V4;vn.feature=df;vn.featureCollection=Gm;vn.geometry=Nne;vn.geometryCollection=Bne;vn.isNumber=Ym;vn.isObject=Xne;vn.lengthToDegrees=Une;vn.lengthToRadians=j4;vn.lineString=X4;vn.lineStrings=Hne;vn.multiLineString=xN;vn.multiPoint=wN;vn.multiPolygon=MN;vn.point=W4;vn.points=Fne;vn.polygon=Z4;vn.polygons=Ine;vn.radiansToDegrees=TN;vn.radiansToLength=AN;vn.round=One;vn.validateBBox=jne;vn.validateId=Jne});var Zm=ne(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});var ii=Vm();function zh(e,r,t){if(e!==null)for(var n,a,i,o,l,s,u,f=0,v=0,h,d=e.type,m=d==="FeatureCollection",p=d==="Feature",y=m?e.features.length:1,_=0;_s||m>u||p>f){l=v,s=n,u=m,f=p,i=0;return}var y=ii.lineString.call(void 0,[l,v],t.properties);if(r(y,n,a,p,i)===!1)return!1;i++,l=v})===!1)return!1}}})}function nae(e,r,t){var n=t,a=!1;return CN(e,function(i,o,l,s,u){a===!1&&t===void 0?n=i:n=r(n,i,o,l,s,u),a=!0}),n}function LN(e,r){if(!e)throw new Error("geojson is required");Wm(e,function(t,n,a){if(t.geometry!==null){var i=t.geometry.type,o=t.geometry.coordinates;switch(i){case"LineString":if(r(t,n,a,0,0)===!1)return!1;break;case"Polygon":for(var l=0;l{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});var qN=Vm(),lae=Zm();function PN(e){return lae.geomReduce.call(void 0,e,(r,t)=>r+sae(t),0)}function sae(e){let r=0,t;switch(e.type){case"Polygon":return DN(e.coordinates);case"MultiPolygon":for(t=0;t0){r+=Math.abs(EN(e[0]));for(let t=1;t=r?(n+2)%r:n+2],l=a[0]*$4,s=i[1]*$4,u=o[0]*$4;t+=(u-l)*Math.sin(s),n++}return t*uae}var fae=PN;Xm.area=PN;Xm.default=fae});var NN=ne(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0});var cae=Vm(),vae=Zm();function zN(e,r={}){let t=0,n=0,a=0;return vae.coordEach.call(void 0,e,function(i){t+=i[0],n+=i[1],a++},!0),cae.point.call(void 0,[t/a,n/a],r.properties)}var hae=zN;jm.centroid=zN;jm.default=hae});var IN=ne(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});var dae=Zm();function FN(e,r={}){if(e.bbox!=null&&r.recompute!==!0)return e.bbox;let t=[1/0,1/0,-1/0,-1/0];return dae.coordEach.call(void 0,e,n=>{t[0]>n[0]&&(t[0]=n[0]),t[1]>n[1]&&(t[1]=n[1]),t[2]{"use strict";var gae=kt(),ON=_N(),{area:mae}=RN(),{centroid:yae}=NN(),{bbox:bae}=IN(),HN=kd(),qv=Pu(),_ae=Gs(),xae=$v(),$m=yg(),BN=Object.keys(ON),wae={"ISO-3":HN,"USA-states":HN,"country names":Mae};function Mae(e){for(var r=0;r0&&f[v+1][0]<0)return v;return null}switch(n==="RUS"||n==="FJI"?i=function(f){var v;if(u(f)===null)v=f;else for(v=new Array(f.length),s=0;sv?h[d++]=[f[s][0]+360,f[s][1]]:s===v?(h[d++]=f[s],h[d++]=[f[s][0],-90]):h[d++]=f[s];var m=$m.tester(h);m.pts.pop(),a.push(m)}:i=function(f){a.push($m.tester(f))},r.type){case"MultiPolygon":for(o=0;o0?m.properties.ct=Sae(m):m.properties.ct=[NaN,NaN],h.fIn=f,h.fOut=m,a.push(m)}else qv.log(["Location",h.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete n[v]}switch(t.type){case"FeatureCollection":var s=t.features;for(i=0;ia&&(a=l,t=o)}else t=r;return yae(t).geometry.coordinates}function Cae(e){var r=window.PlotlyGeoAssets||{},t=[];function n(s){return new Promise(function(u,f){gae.json(s,function(v,h){if(v){delete r[s];var d=v.status===404?'GeoJSON at URL "'+s+'" does not exist.':"Unexpected error while fetching from "+s;return f(new Error(d))}return r[s]=h,u(h)})})}function a(s){return new Promise(function(u,f){var v=0,h=setInterval(function(){if(r[s]&&r[s]!=="pending")return clearInterval(h),u(r[s]);if(v>100)return clearInterval(h),f("Unexpected error while fetching from "+s);v++},50)})}for(var i=0;i{"use strict";var qae=kt(),Dae=sn(),GN=zt(),VN=mh(),Eae=VN.stylePoints,Pae=VN.styleText;WN.exports=function(r,t){t&&Rae(r,t)};function Rae(e,r){var t=r[0].trace,n=r[0].node3;n.style("opacity",r[0].trace.opacity),Eae(n,t,e),Pae(n,t,e),n.selectAll("path.js-line").style("fill","none").each(function(a){var i=qae.select(this),o=a.trace,l=o.line||{};i.call(GN.stroke,l.color).call(Dae.dashLine,l.dash||"",l.width||0),o.fill!=="none"&&i.call(GN.fill,o.fillcolor)})}});var t_=ne((Ive,jN)=>{"use strict";var ZN=kt(),ey=gr(),zae=Um().getTopojsonFeatures,Q4=yN(),Qm=Km(),XN=Ju().findExtremes,r_=En().BADNUM,Nae=em().calcMarkerSize,e_=Qa(),Fae=K4();function Iae(e,r,t){var n=r.layers.frontplot.select(".scatterlayer"),a=ey.makeTraceGroups(n,t,"trace scattergeo");function i(o,l){o.lonlat[0]===r_&&ZN.select(l).remove()}a.selectAll("*").remove(),a.each(function(o){var l=ZN.select(this),s=o[0].trace;if(e_.hasLines(s)||s.fill!=="none"){var u=Q4.calcTraceToLineCoords(o),f=s.fill!=="none"?Q4.makePolygon(u):Q4.makeLine(u);l.selectAll("path.js-line").data([{geojson:f,trace:s}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}e_.hasMarkers(s)&&l.selectAll("path.point").data(ey.identity).enter().append("path").classed("point",!0).each(function(v){i(v,this)}),e_.hasText(s)&&l.selectAll("g").data(ey.identity).enter().append("g").append("text").each(function(v){i(v,this)}),Fae(e,o)})}function Hae(e,r){var t=e[0].trace,n=r[t.geo],a=n._subplot,i=t._length,o,l;if(ey.isArrayOrTypedArray(t.locations)){var s=t.locationmode,u=s==="geojson-id"?Qm.extractTraceFeature(e):zae(t,a.topojson);for(o=0;o{"use strict";var Bae=ss(),Oae=En().BADNUM,Uae=Fb(),Yae=gr().fillText,Gae=Eh();JN.exports=function(r,t,n){var a=r.cd,i=a[0].trace,o=r.xa,l=r.ya,s=r.subplot,u=s.projection.isLonLatOverEdges,f=s.project;function v(C){var x=C.lonlat;if(x[0]===Oae||u(x))return 1/0;var b=f(x),A=f([t,n]),k=Math.abs(b[0]-A[0]),M=Math.abs(b[1]-A[1]),D=Math.max(3,C.mrc||0);return Math.max(Math.sqrt(k*k+M*M)-D,1-3/D)}if(Bae.getClosest(a,v,r),r.index!==!1){var h=a[r.index],d=h.lonlat,m=[o.c2p(d),l.c2p(d)],p=h.mrc||1;r.x0=m[0]-p,r.x1=m[0]+p,r.y0=m[1]-p,r.y1=m[1]+p,r.loc=h.loc,r.lon=d[0],r.lat=d[1];var y={};y[i.geo]={_subplot:s};var _=i._module.formatLabels(h,i,y);return r.lonLabel=_.lonLabel,r.latLabel=_.latLabel,r.color=Uae(i,h),r.extraText=Vae(i,h,r,a[0].t.labels),r.hovertemplate=i.hovertemplate,[r]}};function Vae(e,r,t,n){if(e.hovertemplate)return;var a=r.hi||e.hoverinfo,i=a==="all"?Gae.hoverinfo.flags:a.split("+"),o=i.indexOf("location")!==-1&&Array.isArray(e.locations),l=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,u=i.indexOf("text")!==-1,f=[];function v(h){return h+"\xB0"}return o?f.push(r.loc):l&&s?f.push("("+v(t.latLabel)+", "+v(t.lonLabel)+")"):l?f.push(n.lon+v(t.lonLabel)):s&&f.push(n.lat+v(t.latLabel)),u&&Yae(r,e,f),f.join("
")}});var QN=ne((Bve,KN)=>{"use strict";KN.exports=function(r,t,n,a,i){r.lon=t.lon,r.lat=t.lat,r.location=t.loc?t.loc:null;var o=a[i];return o.fIn&&o.fIn.properties&&(r.properties=o.fIn.properties),r}});var tF=ne((Ove,rF)=>{"use strict";var eF=Qa(),Wae=En().BADNUM;rF.exports=function(r,t){var n=r.cd,a=r.xaxis,i=r.yaxis,o=[],l=n[0].trace,s,u,f,v,h,d=!eF.hasMarkers(l)&&!eF.hasText(l);if(d)return[];if(t===!1)for(h=0;h{(function(e,r){r(typeof ry=="object"&&typeof nF!="undefined"?ry:e.d3=e.d3||{})})(ry,function(e){"use strict";function r(ue,ye){return ueye?1:ue>=ye?0:NaN}function t(ue){return ue.length===1&&(ue=n(ue)),{left:function(ye,Me,pe,U){for(pe==null&&(pe=0),U==null&&(U=ye.length);pe>>1;ue(ye[Q],Me)<0?pe=Q+1:U=Q}return pe},right:function(ye,Me,pe,U){for(pe==null&&(pe=0),U==null&&(U=ye.length);pe>>1;ue(ye[Q],Me)>0?U=Q:pe=Q+1}return pe}}}function n(ue){return function(ye,Me){return r(ue(ye),Me)}}var a=t(r),i=a.right,o=a.left;function l(ue,ye){ye==null&&(ye=s);for(var Me=0,pe=ue.length-1,U=ue[0],Q=new Array(pe<0?0:pe);Meue?1:ye>=ue?0:NaN}function v(ue){return ue===null?NaN:+ue}function h(ue,ye){var Me=ue.length,pe=0,U=-1,Q=0,$,Te,Be=0;if(ye==null)for(;++U1)return Be/(pe-1)}function d(ue,ye){var Me=h(ue,ye);return Me&&Math.sqrt(Me)}function m(ue,ye){var Me=ue.length,pe=-1,U,Q,$;if(ye==null){for(;++pe=U)for(Q=$=U;++peU&&(Q=U),$=U)for(Q=$=U;++peU&&(Q=U),$0)return[ue];if((pe=ye0)for(ue=Math.ceil(ue/Te),ye=Math.floor(ye/Te),$=new Array(Q=Math.ceil(ye-ue+1));++U=0?(Q>=A?10:Q>=k?5:Q>=M?2:1)*Math.pow(10,U):-Math.pow(10,-U)/(Q>=A?10:Q>=k?5:Q>=M?2:1)}function F(ue,ye,Me){var pe=Math.abs(ye-ue)/Math.max(0,Me),U=Math.pow(10,Math.floor(Math.log(pe)/Math.LN10)),Q=pe/U;return Q>=A?U*=10:Q>=k?U*=5:Q>=M&&(U*=2),yeur;)Oe.pop(),--nr;var or=new Array(nr+1),vr;for(Q=0;Q<=nr;++Q)vr=or[Q]=[],vr.x0=Q>0?Oe[Q-1]:ir,vr.x1=Q=1)return+Me(ue[pe-1],pe-1,ue);var pe,U=(pe-1)*ye,Q=Math.floor(U),$=+Me(ue[Q],Q,ue),Te=+Me(ue[Q+1],Q+1,ue);return $+(Te-$)*(U-Q)}}function X(ue,ye,Me){return ue=_.call(ue,v).sort(r),Math.ceil((Me-ye)/(2*(B(ue,.75)-B(ue,.25))*Math.pow(ue.length,-1/3)))}function V(ue,ye,Me){return Math.ceil((Me-ye)/(3.5*d(ue)*Math.pow(ue.length,-1/3)))}function re(ue,ye){var Me=ue.length,pe=-1,U,Q;if(ye==null){for(;++pe=U)for(Q=U;++peQ&&(Q=U)}else for(;++pe=U)for(Q=U;++peQ&&(Q=U);return Q}function te(ue,ye){var Me=ue.length,pe=Me,U=-1,Q,$=0;if(ye==null)for(;++U=0;)for($=ue[ye],Me=$.length;--Me>=0;)Q[--U]=$[Me];return Q}function fe(ue,ye){var Me=ue.length,pe=-1,U,Q;if(ye==null){for(;++pe=U)for(Q=U;++peU&&(Q=U)}else for(;++pe=U)for(Q=U;++peU&&(Q=U);return Q}function he(ue,ye){for(var Me=ye.length,pe=new Array(Me);Me--;)pe[Me]=ue[ye[Me]];return pe}function qe(ue,ye){if(Me=ue.length){var Me,pe=0,U=0,Q,$=ue[U];for(ye==null&&(ye=r);++pe{(function(e,r){typeof ty=="object"&&typeof aF!="undefined"?r(ty,n_()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(ty,function(e,r){"use strict";function t(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(I){i(a,I,this.t),i(this,a.s,this.s),this.s?this.t+=a.t:this.s=a.t},valueOf:function(){return this.s}};var a=new n;function i(I,J,ce){var oe=I.s=J+ce,we=oe-J,He=oe-we;I.t=J-He+(ce-we)}var o=1e-6,l=1e-12,s=Math.PI,u=s/2,f=s/4,v=s*2,h=180/s,d=s/180,m=Math.abs,p=Math.atan,y=Math.atan2,_=Math.cos,C=Math.ceil,x=Math.exp,b=Math.log,A=Math.pow,k=Math.sin,M=Math.sign||function(I){return I>0?1:I<0?-1:0},D=Math.sqrt,z=Math.tan;function F(I){return I>1?0:I<-1?s:Math.acos(I)}function H(I){return I>1?u:I<-1?-u:Math.asin(I)}function W(I){return(I=k(I/2))*I}function B(){}function X(I,J){I&&re.hasOwnProperty(I.type)&&re[I.type](I,J)}var V={Feature:function(I,J){X(I.geometry,J)},FeatureCollection:function(I,J){for(var ce=I.features,oe=-1,we=ce.length;++oe=0?1:-1,we=oe*ce,He=_(J),je=k(J),ar=Ce*je,sr=Ze*He+ar*_(we),_r=ar*oe*k(we);fe.add(y(_r,sr)),Ne=I,Ze=He,Ce=je}function U(I){return he.reset(),ee(I,Je),he*2}function Q(I){return[y(I[1],I[0]),H(I[2])]}function $(I){var J=I[0],ce=I[1],oe=_(ce);return[oe*_(J),oe*k(J),k(ce)]}function Te(I,J){return I[0]*J[0]+I[1]*J[1]+I[2]*J[2]}function Be(I,J){return[I[1]*J[2]-I[2]*J[1],I[2]*J[0]-I[0]*J[2],I[0]*J[1]-I[1]*J[0]]}function Ie(I,J){I[0]+=J[0],I[1]+=J[1],I[2]+=J[2]}function ir(I,J){return[I[0]*J,I[1]*J,I[2]*J]}function ur(I){var J=D(I[0]*I[0]+I[1]*I[1]+I[2]*I[2]);I[0]/=J,I[1]/=J,I[2]/=J}var Oe,nr,or,vr,rr,yr,dr,Ae,Ue=t(),Xe,Er,Sr={point:er,lineStart:br,lineEnd:Mr,polygonStart:function(){Sr.point=mr,Sr.lineStart=pr,Sr.lineEnd=kr,Ue.reset(),Je.polygonStart()},polygonEnd:function(){Je.polygonEnd(),Sr.point=er,Sr.lineStart=br,Sr.lineEnd=Mr,fe<0?(Oe=-(or=180),nr=-(vr=90)):Ue>o?vr=90:Ue<-o&&(nr=-90),Er[0]=Oe,Er[1]=or},sphere:function(){Oe=-(or=180),nr=-(vr=90)}};function er(I,J){Xe.push(Er=[Oe=I,or=I]),Jvr&&(vr=J)}function Ke(I,J){var ce=$([I*d,J*d]);if(Ae){var oe=Be(Ae,ce),we=[oe[1],-oe[0],0],He=Be(we,oe);ur(He),He=Q(He);var je=I-rr,ar=je>0?1:-1,sr=He[0]*h*ar,_r,Qe=m(je)>180;Qe^(ar*rrvr&&(vr=_r)):(sr=(sr+360)%360-180,Qe^(ar*rrvr&&(vr=J))),Qe?IPr(Oe,or)&&(or=I):Pr(I,or)>Pr(Oe,or)&&(Oe=I):or>=Oe?(Ior&&(or=I)):I>rr?Pr(Oe,I)>Pr(Oe,or)&&(or=I):Pr(I,or)>Pr(Oe,or)&&(Oe=I)}else Xe.push(Er=[Oe=I,or=I]);Jvr&&(vr=J),Ae=ce,rr=I}function br(){Sr.point=Ke}function Mr(){Er[0]=Oe,Er[1]=or,Sr.point=er,Ae=null}function mr(I,J){if(Ae){var ce=I-rr;Ue.add(m(ce)>180?ce+(ce>0?360:-360):ce)}else yr=I,dr=J;Je.point(I,J),Ke(I,J)}function pr(){Je.lineStart()}function kr(){mr(yr,dr),Je.lineEnd(),m(Ue)>o&&(Oe=-(or=180)),Er[0]=Oe,Er[1]=or,Ae=null}function Pr(I,J){return(J-=I)<0?J+360:J}function Ur(I,J){return I[0]-J[0]}function lr(I,J){return I[0]<=I[1]?I[0]<=J&&J<=I[1]:JPr(oe[0],oe[1])&&(oe[1]=we[1]),Pr(we[0],oe[1])>Pr(oe[0],oe[1])&&(oe[0]=we[0])):He.push(oe=we);for(je=-1/0,ce=He.length-1,J=0,oe=He[ce];J<=ce;oe=we,++J)we=He[J],(ar=Pr(oe[1],we[0]))>je&&(je=ar,Oe=we[0],or=oe[1])}return Xe=Er=null,Oe===1/0||nr===1/0?[[NaN,NaN],[NaN,NaN]]:[[Oe,nr],[or,vr]]}var ke,$e,We,qr,Vr,Hr,lt,xt,Rt,St,hn,Fn,$n,jt,cn,un,Kt={sphere:B,point:aa,lineStart:Qt,lineEnd:pn,polygonStart:function(){Kt.lineStart=tn,Kt.lineEnd=fn},polygonEnd:function(){Kt.lineStart=Qt,Kt.lineEnd=pn}};function aa(I,J){I*=d,J*=d;var ce=_(J);rt(ce*_(I),ce*k(I),k(J))}function rt(I,J,ce){++ke,We+=(I-We)/ke,qr+=(J-qr)/ke,Vr+=(ce-Vr)/ke}function Qt(){Kt.point=Ct}function Ct(I,J){I*=d,J*=d;var ce=_(J);jt=ce*_(I),cn=ce*k(I),un=k(J),Kt.point=dn,rt(jt,cn,un)}function dn(I,J){I*=d,J*=d;var ce=_(J),oe=ce*_(I),we=ce*k(I),He=k(J),je=y(D((je=cn*He-un*we)*je+(je=un*oe-jt*He)*je+(je=jt*we-cn*oe)*je),jt*oe+cn*we+un*He);$e+=je,Hr+=je*(jt+(jt=oe)),lt+=je*(cn+(cn=we)),xt+=je*(un+(un=He)),rt(jt,cn,un)}function pn(){Kt.point=aa}function tn(){Kt.point=ha}function fn(){Sn(Fn,$n),Kt.point=aa}function ha(I,J){Fn=I,$n=J,I*=d,J*=d,Kt.point=Sn;var ce=_(J);jt=ce*_(I),cn=ce*k(I),un=k(J),rt(jt,cn,un)}function Sn(I,J){I*=d,J*=d;var ce=_(J),oe=ce*_(I),we=ce*k(I),He=k(J),je=cn*He-un*we,ar=un*oe-jt*He,sr=jt*we-cn*oe,_r=D(je*je+ar*ar+sr*sr),Qe=H(_r),hr=_r&&-Qe/_r;Rt+=hr*je,St+=hr*ar,hn+=hr*sr,$e+=Qe,Hr+=Qe*(jt+(jt=oe)),lt+=Qe*(cn+(cn=we)),xt+=Qe*(un+(un=He)),rt(jt,cn,un)}function Na(I){ke=$e=We=qr=Vr=Hr=lt=xt=Rt=St=hn=0,ee(I,Kt);var J=Rt,ce=St,oe=hn,we=J*J+ce*ce+oe*oe;return wes?I+Math.round(-I/v)*v:I,J]}It.invert=It;function In(I,J,ce){return(I%=v)?J||ce?wn(io(I),gi(J,ce)):io(I):J||ce?gi(J,ce):It}function pi(I){return function(J,ce){return J+=I,[J>s?J-v:J<-s?J+v:J,ce]}}function io(I){var J=pi(I);return J.invert=pi(-I),J}function gi(I,J){var ce=_(I),oe=k(I),we=_(J),He=k(J);function je(ar,sr){var _r=_(sr),Qe=_(ar)*_r,hr=k(ar)*_r,fr=k(sr),Ar=fr*ce+Qe*oe;return[y(hr*we-Ar*He,Qe*ce-fr*oe),H(Ar*we+hr*He)]}return je.invert=function(ar,sr){var _r=_(sr),Qe=_(ar)*_r,hr=k(ar)*_r,fr=k(sr),Ar=fr*we-hr*He;return[y(hr*we+fr*He,Qe*ce+Ar*oe),H(Ar*ce-Qe*oe)]},je}function ms(I){I=In(I[0]*d,I[1]*d,I.length>2?I[2]*d:0);function J(ce){return ce=I(ce[0]*d,ce[1]*d),ce[0]*=h,ce[1]*=h,ce}return J.invert=function(ce){return ce=I.invert(ce[0]*d,ce[1]*d),ce[0]*=h,ce[1]*=h,ce},J}function El(I,J,ce,oe,we,He){if(ce){var je=_(J),ar=k(J),sr=oe*ce;we==null?(we=J+oe*v,He=J-sr/2):(we=Bo(je,we),He=Bo(je,He),(oe>0?weHe)&&(we+=oe*v));for(var _r,Qe=we;oe>0?Qe>He:Qe1&&I.push(I.pop().concat(I.shift()))},result:function(){var ce=I;return I=[],J=null,ce}}}function Hn(I,J){return m(I[0]-J[0])=0;--ar)we.point((hr=Qe[ar])[0],hr[1]);else oe(fr.x,fr.p.x,-1,we);fr=fr.p}fr=fr.o,Qe=fr.z,Ar=!Ar}while(!fr.v);we.lineEnd()}}}function yi(I){if(J=I.length){for(var J,ce=0,oe=I[0],we;++ce=0?1:-1,Wt=en*Yt,gn=Wt>s,qt=et*it;if(Kr.add(y(qt*en*k(Wt),jr*pt+qt*_(Wt))),je+=gn?Yt+en*v:Yt,gn^Ar>=ce^Dr>=ce){var ia=Be($(fr),$(nt));ur(ia);var Rn=Be(He,ia);ur(Rn);var mn=(gn^Yt>=0?-1:1)*H(Rn[2]);(oe>mn||oe===mn&&(ia[0]||ia[1]))&&(ar+=gn^Yt>=0?1:-1)}}return(je<-o||je0){for(sr||(we.polygonStart(),sr=!0),we.lineStart(),pt=0;pt1&&Ir&2&&it.push(it.pop().concat(it.shift())),Qe.push(it.filter(Vn))}}return fr}}function Vn(I){return I.length>1}function nn(I,J){return((I=I.x)[0]<0?I[1]-u-o:u-I[1])-((J=J.x)[0]<0?J[1]-u-o:u-J[1])}var Dn=Br(function(){return!0},At,Yo,[-s,-u]);function At(I){var J=NaN,ce=NaN,oe=NaN,we;return{lineStart:function(){I.lineStart(),we=1},point:function(He,je){var ar=He>0?s:-s,sr=m(He-J);m(sr-s)0?u:-u),I.point(oe,ce),I.lineEnd(),I.lineStart(),I.point(ar,ce),I.point(He,ce),we=0):oe!==ar&&sr>=s&&(m(J-oe)o?p((k(J)*(He=_(oe))*k(ce)-k(oe)*(we=_(J))*k(I))/(we*He*je)):(J+oe)/2}function Yo(I,J,ce,oe){var we;if(I==null)we=ce*u,oe.point(-s,we),oe.point(0,we),oe.point(s,we),oe.point(s,0),oe.point(s,-we),oe.point(0,-we),oe.point(-s,-we),oe.point(-s,0),oe.point(-s,we);else if(m(I[0]-J[0])>o){var He=I[0]0,we=m(J)>o;function He(Qe,hr,fr,Ar){El(Ar,I,ce,fr,Qe,hr)}function je(Qe,hr){return _(Qe)*_(hr)>J}function ar(Qe){var hr,fr,Ar,Lr,et;return{lineStart:function(){Lr=Ar=!1,et=1},point:function(jr,tt){var nt=[jr,tt],Dr,Ir=je(jr,tt),it=oe?Ir?0:_r(jr,tt):Ir?_r(jr+(jr<0?s:-s),tt):0;if(!hr&&(Lr=Ar=Ir)&&Qe.lineStart(),Ir!==Ar&&(Dr=sr(hr,nt),(!Dr||Hn(hr,Dr)||Hn(nt,Dr))&&(nt[2]=1)),Ir!==Ar)et=0,Ir?(Qe.lineStart(),Dr=sr(nt,hr),Qe.point(Dr[0],Dr[1])):(Dr=sr(hr,nt),Qe.point(Dr[0],Dr[1],2),Qe.lineEnd()),hr=Dr;else if(we&&hr&&oe^Ir){var pt;!(it&fr)&&(pt=sr(nt,hr,!0))&&(et=0,oe?(Qe.lineStart(),Qe.point(pt[0][0],pt[0][1]),Qe.point(pt[1][0],pt[1][1]),Qe.lineEnd()):(Qe.point(pt[1][0],pt[1][1]),Qe.lineEnd(),Qe.lineStart(),Qe.point(pt[0][0],pt[0][1],3)))}Ir&&(!hr||!Hn(hr,nt))&&Qe.point(nt[0],nt[1]),hr=nt,Ar=Ir,fr=it},lineEnd:function(){Ar&&Qe.lineEnd(),hr=null},clean:function(){return et|(Lr&&Ar)<<1}}}function sr(Qe,hr,fr){var Ar=$(Qe),Lr=$(hr),et=[1,0,0],jr=Be(Ar,Lr),tt=Te(jr,jr),nt=jr[0],Dr=tt-nt*nt;if(!Dr)return!fr&&Qe;var Ir=J*tt/Dr,it=-J*nt/Dr,pt=Be(et,jr),Yt=ir(et,Ir),en=ir(jr,it);Ie(Yt,en);var Wt=pt,gn=Te(Yt,Wt),qt=Te(Wt,Wt),ia=gn*gn-qt*(Te(Yt,Yt)-1);if(!(ia<0)){var Rn=D(ia),mn=ir(Wt,(-gn-Rn)/qt);if(Ie(mn,Yt),mn=Q(mn),!fr)return mn;var Yr=Qe[0],Gt=hr[0],Bn=Qe[1],pa=hr[1],Xa;Gt0^mn[1]<(m(mn[0]-Yr)s^(Yr<=mn[0]&&mn[0]<=Gt)){var si=ir(Wt,(-gn+Rn)/qt);return Ie(si,Yt),[mn,Q(si)]}}}function _r(Qe,hr){var fr=oe?I:s-I,Ar=0;return Qe<-fr?Ar|=1:Qe>fr&&(Ar|=2),hr<-fr?Ar|=4:hr>fr&&(Ar|=8),Ar}return Br(je,ar,He,oe?[0,-I]:[-s,I-s])}function cu(I,J,ce,oe,we,He){var je=I[0],ar=I[1],sr=J[0],_r=J[1],Qe=0,hr=1,fr=sr-je,Ar=_r-ar,Lr;if(Lr=ce-je,!(!fr&&Lr>0)){if(Lr/=fr,fr<0){if(Lr0){if(Lr>hr)return;Lr>Qe&&(Qe=Lr)}if(Lr=we-je,!(!fr&&Lr<0)){if(Lr/=fr,fr<0){if(Lr>hr)return;Lr>Qe&&(Qe=Lr)}else if(fr>0){if(Lr0)){if(Lr/=Ar,Ar<0){if(Lr0){if(Lr>hr)return;Lr>Qe&&(Qe=Lr)}if(Lr=He-ar,!(!Ar&&Lr<0)){if(Lr/=Ar,Ar<0){if(Lr>hr)return;Lr>Qe&&(Qe=Lr)}else if(Ar>0){if(Lr0&&(I[0]=je+Qe*fr,I[1]=ar+Qe*Ar),hr<1&&(J[0]=je+hr*fr,J[1]=ar+hr*Ar),!0}}}}}var oo=1e9,Go=-oo;function Vo(I,J,ce,oe){function we(_r,Qe){return I<=_r&&_r<=ce&&J<=Qe&&Qe<=oe}function He(_r,Qe,hr,fr){var Ar=0,Lr=0;if(_r==null||(Ar=je(_r,hr))!==(Lr=je(Qe,hr))||sr(_r,Qe)<0^hr>0)do fr.point(Ar===0||Ar===3?I:ce,Ar>1?oe:J);while((Ar=(Ar+hr+4)%4)!==Lr);else fr.point(Qe[0],Qe[1])}function je(_r,Qe){return m(_r[0]-I)0?0:3:m(_r[0]-ce)0?2:1:m(_r[1]-J)0?1:0:Qe>0?3:2}function ar(_r,Qe){return sr(_r.x,Qe.x)}function sr(_r,Qe){var hr=je(_r,1),fr=je(Qe,1);return hr!==fr?hr-fr:hr===0?Qe[1]-_r[1]:hr===1?_r[0]-Qe[0]:hr===2?_r[1]-Qe[1]:Qe[0]-_r[0]}return function(_r){var Qe=_r,hr=Oo(),fr,Ar,Lr,et,jr,tt,nt,Dr,Ir,it,pt,Yt={point:en,lineStart:ia,lineEnd:Rn,polygonStart:gn,polygonEnd:qt};function en(Yr,Gt){we(Yr,Gt)&&Qe.point(Yr,Gt)}function Wt(){for(var Yr=0,Gt=0,Bn=Ar.length;Gtoe&&(al-nl)*(oe-si)>(Zl-si)*(I-nl)&&++Yr:Zl<=oe&&(al-nl)*(oe-si)<(Zl-si)*(I-nl)&&--Yr;return Yr}function gn(){Qe=hr,fr=[],Ar=[],pt=!0}function qt(){var Yr=Wt(),Gt=pt&&Yr,Bn=(fr=r.merge(fr)).length;(Gt||Bn)&&(_r.polygonStart(),Gt&&(_r.lineStart(),He(null,null,1,_r),_r.lineEnd()),Bn&&Uo(fr,ar,Yr,He,_r),_r.polygonEnd()),Qe=_r,fr=Ar=Lr=null}function ia(){Yt.point=mn,Ar&&Ar.push(Lr=[]),it=!0,Ir=!1,nt=Dr=NaN}function Rn(){fr&&(mn(et,jr),tt&&Ir&&hr.rejoin(),fr.push(hr.result())),Yt.point=en,Ir&&Qe.lineEnd()}function mn(Yr,Gt){var Bn=we(Yr,Gt);if(Ar&&Lr.push([Yr,Gt]),it)et=Yr,jr=Gt,tt=Bn,it=!1,Bn&&(Qe.lineStart(),Qe.point(Yr,Gt));else if(Bn&&Ir)Qe.point(Yr,Gt);else{var pa=[nt=Math.max(Go,Math.min(oo,nt)),Dr=Math.max(Go,Math.min(oo,Dr))],Xa=[Yr=Math.max(Go,Math.min(oo,Yr)),Gt=Math.max(Go,Math.min(oo,Gt))];cu(pa,Xa,I,J,ce,oe)?(Ir||(Qe.lineStart(),Qe.point(pa[0],pa[1])),Qe.point(Xa[0],Xa[1]),Bn||Qe.lineEnd(),pt=!1):Bn&&(Qe.lineStart(),Qe.point(Yr,Gt),pt=!1)}nt=Yr,Dr=Gt,Ir=Bn}return Yt}}function vu(){var I=0,J=0,ce=960,oe=500,we,He,je;return je={stream:function(ar){return we&&He===ar?we:we=Vo(I,J,ce,oe)(He=ar)},extent:function(ar){return arguments.length?(I=+ar[0][0],J=+ar[0][1],ce=+ar[1][0],oe=+ar[1][1],we=He=null,je):[[I,J],[ce,oe]]}}}var Pl=t(),Rl,bi,lo,Wo={sphere:B,point:B,lineStart:zl,lineEnd:B,polygonStart:B,polygonEnd:B};function zl(){Wo.point=Mf,Wo.lineEnd=bs}function bs(){Wo.point=Wo.lineEnd=B}function Mf(I,J){I*=d,J*=d,Rl=I,bi=k(J),lo=_(J),Wo.point=Zc}function Zc(I,J){I*=d,J*=d;var ce=k(J),oe=_(J),we=m(I-Rl),He=_(we),je=k(we),ar=oe*je,sr=lo*ce-bi*oe*He,_r=bi*ce+lo*oe*He;Pl.add(y(D(ar*ar+sr*sr),_r)),Rl=I,bi=ce,lo=oe}function _s(I){return Pl.reset(),ee(I,Wo),+Pl}var xs=[null,null],ws={type:"LineString",coordinates:xs};function Zo(I,J){return xs[0]=I,xs[1]=J,_s(ws)}var so={Feature:function(I,J){return Bi(I.geometry,J)},FeatureCollection:function(I,J){for(var ce=I.features,oe=-1,we=ce.length;++oe0&&(we=Zo(I[He],I[He-1]),we>0&&ce<=we&&oe<=we&&(ce+oe-we)*(1-Math.pow((ce-oe)/we,2))o}).map(fr)).concat(r.range(C(He/_r)*_r,we,_r).filter(function(Dr){return m(Dr%hr)>o}).map(Ar))}return tt.lines=function(){return nt().map(function(Dr){return{type:"LineString",coordinates:Dr}})},tt.outline=function(){return{type:"Polygon",coordinates:[Lr(oe).concat(et(je).slice(1),Lr(ce).reverse().slice(1),et(ar).reverse().slice(1))]}},tt.extent=function(Dr){return arguments.length?tt.extentMajor(Dr).extentMinor(Dr):tt.extentMinor()},tt.extentMajor=function(Dr){return arguments.length?(oe=+Dr[0][0],ce=+Dr[1][0],ar=+Dr[0][1],je=+Dr[1][1],oe>ce&&(Dr=oe,oe=ce,ce=Dr),ar>je&&(Dr=ar,ar=je,je=Dr),tt.precision(jr)):[[oe,ar],[ce,je]]},tt.extentMinor=function(Dr){return arguments.length?(J=+Dr[0][0],I=+Dr[1][0],He=+Dr[0][1],we=+Dr[1][1],J>I&&(Dr=J,J=I,I=Dr),He>we&&(Dr=He,He=we,we=Dr),tt.precision(jr)):[[J,He],[I,we]]},tt.step=function(Dr){return arguments.length?tt.stepMajor(Dr).stepMinor(Dr):tt.stepMinor()},tt.stepMajor=function(Dr){return arguments.length?(Qe=+Dr[0],hr=+Dr[1],tt):[Qe,hr]},tt.stepMinor=function(Dr){return arguments.length?(sr=+Dr[0],_r=+Dr[1],tt):[sr,_r]},tt.precision=function(Dr){return arguments.length?(jr=+Dr,fr=Oi(He,we,90),Ar=As(J,I,jr),Lr=Oi(ar,je,90),et=As(oe,ce,jr),tt):jr},tt.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Ts(){return jc()()}function Fv(I,J){var ce=I[0]*d,oe=I[1]*d,we=J[0]*d,He=J[1]*d,je=_(oe),ar=k(oe),sr=_(He),_r=k(He),Qe=je*_(ce),hr=je*k(ce),fr=sr*_(we),Ar=sr*k(we),Lr=2*H(D(W(He-oe)+je*sr*W(we-ce))),et=k(Lr),jr=Lr?function(tt){var nt=k(tt*=Lr)/et,Dr=k(Lr-tt)/et,Ir=Dr*Qe+nt*fr,it=Dr*hr+nt*Ar,pt=Dr*ar+nt*_r;return[y(it,Ir)*h,y(pt,D(Ir*Ir+it*it))*h]}:function(){return[ce*h,oe*h]};return jr.distance=Lr,jr}function Xo(I){return I}var kf=t(),Fl=t(),Jc,fo,co,Sf,_i={point:B,lineStart:B,lineEnd:B,polygonStart:function(){_i.lineStart=Iv,_i.lineEnd=Hv},polygonEnd:function(){_i.lineStart=_i.lineEnd=_i.point=B,kf.add(m(Fl)),Fl.reset()},result:function(){var I=kf/2;return kf.reset(),I}};function Iv(){_i.point=Ui}function Ui(I,J){_i.point=Il,Jc=co=I,fo=Sf=J}function Il(I,J){Fl.add(Sf*I-co*J),co=I,Sf=J}function Hv(){Il(Jc,fo)}var Yi=1/0,jo=Yi,Jo=-Yi,$o=Jo,vo={point:ks,lineStart:B,lineEnd:B,polygonStart:B,polygonEnd:B,result:function(){var I=[[Yi,jo],[Jo,$o]];return Jo=$o=-(jo=Yi=1/0),I}};function ks(I,J){IJo&&(Jo=I),J$o&&($o=J)}var du=0,Ss=0,Cs=0,Ko=0,Hl=0,Bl=0,pu=0,gu=0,oi=0,mu,yu,Fa,Kn,Aa={point:Gi,lineStart:Ls,lineEnd:Cf,polygonStart:function(){Aa.lineStart=$c,Aa.lineEnd=Bv},polygonEnd:function(){Aa.point=Gi,Aa.lineStart=Ls,Aa.lineEnd=Cf},result:function(){var I=oi?[pu/oi,gu/oi]:Bl?[Ko/Bl,Hl/Bl]:Cs?[du/Cs,Ss/Cs]:[NaN,NaN];return du=Ss=Cs=Ko=Hl=Bl=pu=gu=oi=0,I}};function Gi(I,J){du+=I,Ss+=J,++Cs}function Ls(){Aa.point=Qo}function Qo(I,J){Aa.point=Ol,Gi(Fa=I,Kn=J)}function Ol(I,J){var ce=I-Fa,oe=J-Kn,we=D(ce*ce+oe*oe);Ko+=we*(Fa+I)/2,Hl+=we*(Kn+J)/2,Bl+=we,Gi(Fa=I,Kn=J)}function Cf(){Aa.point=Gi}function $c(){Aa.point=Ov}function Bv(){Lf(mu,yu)}function Ov(I,J){Aa.point=Lf,Gi(mu=Fa=I,yu=Kn=J)}function Lf(I,J){var ce=I-Fa,oe=J-Kn,we=D(ce*ce+oe*oe);Ko+=we*(Fa+I)/2,Hl+=we*(Kn+J)/2,Bl+=we,we=Kn*I-Fa*J,pu+=we*(Fa+I),gu+=we*(Kn+J),oi+=we*3,Gi(Fa=I,Kn=J)}function qf(I){this._context=I}qf.prototype={_radius:4.5,pointRadius:function(I){return this._radius=I,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(I,J){switch(this._point){case 0:{this._context.moveTo(I,J),this._point=1;break}case 1:{this._context.lineTo(I,J);break}default:{this._context.moveTo(I+this._radius,J),this._context.arc(I,J,this._radius,0,v);break}}},result:B};var Df=t(),Ef,Kc,Qc,qs,Ds,xi={point:B,lineStart:function(){xi.point=bu},lineEnd:function(){Ef&&Es(Kc,Qc),xi.point=B},polygonStart:function(){Ef=!0},polygonEnd:function(){Ef=null},result:function(){var I=+Df;return Df.reset(),I}};function bu(I,J){xi.point=Es,Kc=qs=I,Qc=Ds=J}function Es(I,J){qs-=I,Ds-=J,Df.add(D(qs*qs+Ds*Ds)),qs=I,Ds=J}function _u(){this._string=[]}_u.prototype={_radius:4.5,_circle:e0(4.5),pointRadius:function(I){return(I=+I)!==this._radius&&(this._radius=I,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(I,J){switch(this._point){case 0:{this._string.push("M",I,",",J),this._point=1;break}case 1:{this._string.push("L",I,",",J);break}default:{this._circle==null&&(this._circle=e0(this._radius)),this._string.push("M",I,",",J,this._circle);break}}},result:function(){if(this._string.length){var I=this._string.join("");return this._string=[],I}else return null}};function e0(I){return"m0,"+I+"a"+I+","+I+" 0 1,1 0,"+-2*I+"a"+I+","+I+" 0 1,1 0,"+2*I+"z"}function Pf(I,J){var ce=4.5,oe,we;function He(je){return je&&(typeof ce=="function"&&we.pointRadius(+ce.apply(this,arguments)),ee(je,oe(we))),we.result()}return He.area=function(je){return ee(je,oe(_i)),_i.result()},He.measure=function(je){return ee(je,oe(xi)),xi.result()},He.bounds=function(je){return ee(je,oe(vo)),vo.result()},He.centroid=function(je){return ee(je,oe(Aa)),Aa.result()},He.projection=function(je){return arguments.length?(oe=je==null?(I=null,Xo):(I=je).stream,He):I},He.context=function(je){return arguments.length?(we=je==null?(J=null,new _u):new qf(J=je),typeof ce!="function"&&we.pointRadius(ce),He):J},He.pointRadius=function(je){return arguments.length?(ce=typeof je=="function"?je:(we.pointRadius(+je),+je),He):ce},He.projection(I).context(J)}function Uv(I){return{stream:ho(I)}}function ho(I){return function(J){var ce=new xu;for(var oe in I)ce[oe]=I[oe];return ce.stream=J,ce}}function xu(){}xu.prototype={constructor:xu,point:function(I,J){this.stream.point(I,J)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Ul(I,J,ce){var oe=I.clipExtent&&I.clipExtent();return I.scale(150).translate([0,0]),oe!=null&&I.clipExtent(null),ee(ce,I.stream(vo)),J(vo.result()),oe!=null&&I.clipExtent(oe),I}function Ps(I,J,ce){return Ul(I,function(oe){var we=J[1][0]-J[0][0],He=J[1][1]-J[0][1],je=Math.min(we/(oe[1][0]-oe[0][0]),He/(oe[1][1]-oe[0][1])),ar=+J[0][0]+(we-je*(oe[1][0]+oe[0][0]))/2,sr=+J[0][1]+(He-je*(oe[1][1]+oe[0][1]))/2;I.scale(150*je).translate([ar,sr])},ce)}function Rs(I,J,ce){return Ps(I,[[0,0],J],ce)}function Rf(I,J,ce){return Ul(I,function(oe){var we=+J,He=we/(oe[1][0]-oe[0][0]),je=(we-He*(oe[1][0]+oe[0][0]))/2,ar=-He*oe[0][1];I.scale(150*He).translate([je,ar])},ce)}function po(I,J,ce){return Ul(I,function(oe){var we=+J,He=we/(oe[1][1]-oe[0][1]),je=-He*oe[0][0],ar=(we-He*(oe[1][1]+oe[0][1]))/2;I.scale(150*He).translate([je,ar])},ce)}var r0=16,zf=_(30*d);function t0(I,J){return+J?wu(I,J):Nf(I)}function Nf(I){return ho({point:function(J,ce){J=I(J,ce),this.stream.point(J[0],J[1])}})}function wu(I,J){function ce(oe,we,He,je,ar,sr,_r,Qe,hr,fr,Ar,Lr,et,jr){var tt=_r-oe,nt=Qe-we,Dr=tt*tt+nt*nt;if(Dr>4*J&&et--){var Ir=je+fr,it=ar+Ar,pt=sr+Lr,Yt=D(Ir*Ir+it*it+pt*pt),en=H(pt/=Yt),Wt=m(m(pt)-1)J||m((tt*Rn+nt*mn)/Dr-.5)>.3||je*fr+ar*Ar+sr*Lr2?Yr[2]%360*d:0,Rn()):[ar*h,sr*h,_r*h]},qt.angle=function(Yr){return arguments.length?(hr=Yr%360*d,Rn()):hr*h},qt.reflectX=function(Yr){return arguments.length?(fr=Yr?-1:1,Rn()):fr<0},qt.reflectY=function(Yr){return arguments.length?(Ar=Yr?-1:1,Rn()):Ar<0},qt.precision=function(Yr){return arguments.length?(pt=t0(Yt,it=Yr*Yr),mn()):D(it)},qt.fitExtent=function(Yr,Gt){return Ps(qt,Yr,Gt)},qt.fitSize=function(Yr,Gt){return Rs(qt,Yr,Gt)},qt.fitWidth=function(Yr,Gt){return Rf(qt,Yr,Gt)},qt.fitHeight=function(Yr,Gt){return po(qt,Yr,Gt)};function Rn(){var Yr=Hf(ce,0,0,fr,Ar,hr).apply(null,J(He,je)),Gt=(hr?Hf:Yv)(ce,oe-Yr[0],we-Yr[1],fr,Ar,hr);return Qe=In(ar,sr,_r),Yt=wn(J,Gt),en=wn(Qe,Yt),pt=t0(Yt,it),mn()}function mn(){return Wt=gn=null,qt}return function(){return J=I.apply(this,arguments),qt.invert=J.invert&&ia,Rn()}}function Yl(I){var J=0,ce=s/3,oe=Bf(I),we=oe(J,ce);return we.parallels=function(He){return arguments.length?oe(J=He[0]*d,ce=He[1]*d):[J*h,ce*h]},we}function Of(I){var J=_(I);function ce(oe,we){return[oe*J,k(we)/J]}return ce.invert=function(oe,we){return[oe/J,H(we*J)]},ce}function n0(I,J){var ce=k(I),oe=(ce+k(J))/2;if(m(oe)=.12&&jr<.234&&et>=-.425&&et<-.214?we:jr>=.166&&jr<.234&&et>=-.214&&et<-.115?je:ce).invert(fr)},Qe.stream=function(fr){return I&&J===fr?I:I=Gv([ce.stream(J=fr),we.stream(fr),je.stream(fr)])},Qe.precision=function(fr){return arguments.length?(ce.precision(fr),we.precision(fr),je.precision(fr),hr()):ce.precision()},Qe.scale=function(fr){return arguments.length?(ce.scale(fr),we.scale(fr*.35),je.scale(fr),Qe.translate(ce.translate())):ce.scale()},Qe.translate=function(fr){if(!arguments.length)return ce.translate();var Ar=ce.scale(),Lr=+fr[0],et=+fr[1];return oe=ce.translate(fr).clipExtent([[Lr-.455*Ar,et-.238*Ar],[Lr+.455*Ar,et+.238*Ar]]).stream(_r),He=we.translate([Lr-.307*Ar,et+.201*Ar]).clipExtent([[Lr-.425*Ar+o,et+.12*Ar+o],[Lr-.214*Ar-o,et+.234*Ar-o]]).stream(_r),ar=je.translate([Lr-.205*Ar,et+.212*Ar]).clipExtent([[Lr-.214*Ar+o,et+.166*Ar+o],[Lr-.115*Ar-o,et+.234*Ar-o]]).stream(_r),hr()},Qe.fitExtent=function(fr,Ar){return Ps(Qe,fr,Ar)},Qe.fitSize=function(fr,Ar){return Rs(Qe,fr,Ar)},Qe.fitWidth=function(fr,Ar){return Rf(Qe,fr,Ar)},Qe.fitHeight=function(fr,Ar){return po(Qe,fr,Ar)};function hr(){return I=J=null,Qe}return Qe.scale(1070)}function Vi(I){return function(J,ce){var oe=_(J),we=_(ce),He=I(oe*we);return[He*we*k(J),He*k(ce)]}}function Mi(I){return function(J,ce){var oe=D(J*J+ce*ce),we=I(oe),He=k(we),je=_(we);return[y(J*He,oe*je),H(oe&&ce*He/oe)]}}var Ia=Vi(function(I){return D(2/(1+I))});Ia.invert=Mi(function(I){return 2*H(I/2)});function Wv(){return wi(Ia).scale(124.75).clipAngle(180-.001)}var Gl=Vi(function(I){return(I=F(I))&&I/k(I)});Gl.invert=Mi(function(I){return I});function i0(){return wi(Gl).scale(79.4188).clipAngle(180-.001)}function Za(I,J){return[I,b(z((u+J)/2))]}Za.invert=function(I,J){return[I,2*p(x(J))-u]};function o0(){return l0(Za).scale(961/v)}function l0(I){var J=wi(I),ce=J.center,oe=J.scale,we=J.translate,He=J.clipExtent,je=null,ar,sr,_r;J.scale=function(hr){return arguments.length?(oe(hr),Qe()):oe()},J.translate=function(hr){return arguments.length?(we(hr),Qe()):we()},J.center=function(hr){return arguments.length?(ce(hr),Qe()):ce()},J.clipExtent=function(hr){return arguments.length?(hr==null?je=ar=sr=_r=null:(je=+hr[0][0],ar=+hr[0][1],sr=+hr[1][0],_r=+hr[1][1]),Qe()):je==null?null:[[je,ar],[sr,_r]]};function Qe(){var hr=s*oe(),fr=J(ms(J.rotate()).invert([0,0]));return He(je==null?[[fr[0]-hr,fr[1]-hr],[fr[0]+hr,fr[1]+hr]]:I===Za?[[Math.max(fr[0]-hr,je),ar],[Math.min(fr[0]+hr,sr),_r]]:[[je,Math.max(fr[1]-hr,ar)],[sr,Math.min(fr[1]+hr,_r)]])}return Qe()}function zs(I){return z((u+I)/2)}function s0(I,J){var ce=_(I),oe=I===J?k(I):b(ce/_(J))/b(zs(J)/zs(I)),we=ce*A(zs(I),oe)/oe;if(!oe)return Za;function He(je,ar){we>0?ar<-u+o&&(ar=-u+o):ar>u-o&&(ar=u-o);var sr=we/A(zs(ar),oe);return[sr*k(oe*je),we-sr*_(oe*je)]}return He.invert=function(je,ar){var sr=we-ar,_r=M(oe)*D(je*je+sr*sr),Qe=y(je,m(sr))*M(sr);return sr*oe<0&&(Qe-=s*M(je)*M(sr)),[Qe/oe,2*p(A(we/_r,1/oe))-u]},He}function Mu(){return Yl(s0).scale(109.5).parallels([30,30])}function Ns(I,J){return[I,J]}Ns.invert=Ns;function Au(){return wi(Ns).scale(152.63)}function Fs(I,J){var ce=_(I),oe=I===J?k(I):(ce-_(J))/(J-I),we=ce/oe+I;if(m(oe)o&&--oe>0);return[I/(.8707+(He=ce*ce)*(-.131979+He*(-.013791+He*He*He*(.003971-.001529*He)))),ce]};function Su(){return wi(Uf).scale(175.295)}function Wn(I,J){return[_(J)*k(I),k(J)]}Wn.invert=Mi(H);function li(){return wi(Wn).scale(249.5).clipAngle(90+o)}function Wl(I,J){var ce=_(J),oe=1+_(I)*ce;return[ce*k(I)/oe,k(J)/oe]}Wl.invert=Mi(function(I){return 2*p(I)});function Cu(){return wi(Wl).scale(250).clipAngle(142)}function Os(I,J){return[b(z((u+J)/2)),-I]}Os.invert=function(I,J){return[-J,2*p(x(I))-u]};function Yf(){var I=l0(Os),J=I.center,ce=I.rotate;return I.center=function(oe){return arguments.length?J([-oe[1],oe[0]]):(oe=J(),[oe[1],-oe[0]])},I.rotate=function(oe){return arguments.length?ce([oe[0],oe[1],oe.length>2?oe[2]+90:90]):(oe=ce(),[oe[0],oe[1],oe[2]-90])},ce([0,0,90]).scale(159.155)}e.geoAlbers=a0,e.geoAlbersUsa=Vv,e.geoArea=U,e.geoAzimuthalEqualArea=Wv,e.geoAzimuthalEqualAreaRaw=Ia,e.geoAzimuthalEquidistant=i0,e.geoAzimuthalEquidistantRaw=Gl,e.geoBounds=_e,e.geoCentroid=Na,e.geoCircle=ys,e.geoClipAntimeridian=Dn,e.geoClipCircle=wf,e.geoClipExtent=vu,e.geoClipRectangle=Vo,e.geoConicConformal=Mu,e.geoConicConformalRaw=s0,e.geoConicEqualArea=el,e.geoConicEqualAreaRaw=n0,e.geoConicEquidistant=Zv,e.geoConicEquidistantRaw=Fs,e.geoContains=Ms,e.geoDistance=Zo,e.geoEqualEarth=u0,e.geoEqualEarthRaw=Bs,e.geoEquirectangular=Au,e.geoEquirectangularRaw=Ns,e.geoGnomonic=f0,e.geoGnomonicRaw=ku,e.geoGraticule=jc,e.geoGraticule10=Ts,e.geoIdentity=c0,e.geoInterpolate=Fv,e.geoLength=_s,e.geoMercator=o0,e.geoMercatorRaw=Za,e.geoNaturalEarth1=Su,e.geoNaturalEarth1Raw=Uf,e.geoOrthographic=li,e.geoOrthographicRaw=Wn,e.geoPath=Pf,e.geoProjection=wi,e.geoProjectionMutator=Bf,e.geoRotation=ms,e.geoStereographic=Cu,e.geoStereographicRaw=Wl,e.geoStream=ee,e.geoTransform=Uv,e.geoTransverseMercator=Yf,e.geoTransverseMercatorRaw=Os,Object.defineProperty(e,"__esModule",{value:!0})})});var oF=ne((ny,iF)=>{(function(e,r){typeof ny=="object"&&typeof iF!="undefined"?r(ny,a_(),n_()):r(e.d3=e.d3||{},e.d3,e.d3)})(ny,function(e,r,t){"use strict";var n=Math.abs,a=Math.atan,i=Math.atan2,o=Math.cos,l=Math.exp,s=Math.floor,u=Math.log,f=Math.max,v=Math.min,h=Math.pow,d=Math.round,m=Math.sign||function(T){return T>0?1:T<0?-1:0},p=Math.sin,y=Math.tan,_=1e-6,C=1e-12,x=Math.PI,b=x/2,A=x/4,k=Math.SQRT1_2,M=V(2),D=V(x),z=x*2,F=180/x,H=x/180;function W(T){return T?T/Math.sin(T):1}function B(T){return T>1?b:T<-1?-b:Math.asin(T)}function X(T){return T>1?0:T<-1?x:Math.acos(T)}function V(T){return T>0?Math.sqrt(T):0}function re(T){return T=l(2*T),(T-1)/(T+1)}function te(T){return(l(T)-l(-T))/2}function K(T){return(l(T)+l(-T))/2}function ee(T){return u(T+V(T*T+1))}function fe(T){return u(T+V(T*T-1))}function he(T){var L=y(T/2),P=2*u(o(T/2))/(L*L);function R(Y,O){var Z=o(Y),se=o(O),ve=p(O),le=se*Z,de=-((1-le?u((1+le)/2)/(1-le):-.5)+P/(1+le));return[de*se*p(Y),de*ve]}return R.invert=function(Y,O){var Z=V(Y*Y+O*O),se=-T/2,ve=50,le;if(!Z)return[0,0];do{var de=se/2,xe=o(de),Le=p(de),Fe=Le/xe,tr=-u(n(xe));se-=le=(2/Fe*tr-P*Fe-Z)/(-tr/(Le*Le)+1-P/(2*xe*xe))*(xe<0?.7:1)}while(n(le)>_&&--ve>0);var cr=p(se);return[i(Y*cr,Z*o(se)),B(O*cr/Z)]},R}function qe(){var T=b,L=r.geoProjectionMutator(he),P=L(T);return P.radius=function(R){return arguments.length?L(T=R*H):T*F},P.scale(179.976).clipAngle(147)}function ze(T,L){var P=o(L),R=W(X(P*o(T/=2)));return[2*P*p(T)*R,p(L)*R]}ze.invert=function(T,L){if(!(T*T+4*L*L>x*x+_)){var P=T,R=L,Y=25;do{var O=p(P),Z=p(P/2),se=o(P/2),ve=p(R),le=o(R),de=p(2*R),xe=ve*ve,Le=le*le,Fe=Z*Z,tr=1-Le*se*se,cr=tr?X(le*se)*V(Tr=1/tr):Tr=0,Tr,Zr=2*cr*le*Z-T,at=cr*ve-L,ot=Tr*(Le*Fe+cr*le*se*xe),st=Tr*(.5*O*de-cr*2*ve*Z),vt=Tr*.25*(de*Z-cr*ve*Le*O),an=Tr*(xe*se+cr*Fe*le),Mn=st*vt-an*ot;if(!Mn)break;var Ft=(at*st-Zr*an)/Mn,zn=(Zr*vt-at*ot)/Mn;P-=Ft,R-=zn}while((n(Ft)>_||n(zn)>_)&&--Y>0);return[P,R]}};function Ne(){return r.geoProjection(ze).scale(152.63)}function Ze(T){var L=p(T),P=o(T),R=T>=0?1:-1,Y=y(R*T),O=(1+L-P)/2;function Z(se,ve){var le=o(ve),de=o(se/=2);return[(1+le)*p(se),(R*ve>-i(de,Y)-.001?0:-R*10)+O+p(ve)*P-(1+le)*L*de]}return Z.invert=function(se,ve){var le=0,de=0,xe=50;do{var Le=o(le),Fe=p(le),tr=o(de),cr=p(de),Tr=1+tr,Zr=Tr*Fe-se,at=O+cr*P-Tr*L*Le-ve,ot=Tr*Le/2,st=-Fe*cr,vt=L*Tr*Fe/2,an=P*tr+L*Le*cr,Mn=st*vt-an*ot,Ft=(at*st-Zr*an)/Mn/2,zn=(Zr*vt-at*ot)/Mn;n(zn)>2&&(zn/=2),le-=Ft,de-=zn}while((n(Ft)>_||n(zn)>_)&&--xe>0);return R*de>-i(o(le),Y)-.001?[le*2,de]:null},Z}function Ce(){var T=20*H,L=T>=0?1:-1,P=y(L*T),R=r.geoProjectionMutator(Ze),Y=R(T),O=Y.stream;return Y.parallel=function(Z){return arguments.length?(P=y((L=(T=Z*H)>=0?1:-1)*T),R(T)):T*F},Y.stream=function(Z){var se=Y.rotate(),ve=O(Z),le=(Y.rotate([0,0]),O(Z)),de=Y.precision();return Y.rotate(se),ve.sphere=function(){le.polygonStart(),le.lineStart();for(var xe=L*-180;L*xe<180;xe+=L*90)le.point(xe,L*90);if(T)for(;L*(xe-=3*L*de)>=-180;)le.point(xe,L*-i(o(xe*H/2),P)*F);le.lineEnd(),le.polygonEnd()},ve},Y.scale(218.695).center([0,28.0974])}function Je(T,L){var P=y(L/2),R=V(1-P*P),Y=1+R*o(T/=2),O=p(T)*R/Y,Z=P/Y,se=O*O,ve=Z*Z;return[4/3*O*(3+se-3*ve),4/3*Z*(3+3*se-ve)]}Je.invert=function(T,L){if(T*=3/8,L*=3/8,!T&&n(L)>1)return null;var P=T*T,R=L*L,Y=1+P+R,O=V((Y-V(Y*Y-4*L*L))/2),Z=B(O)/3,se=O?fe(n(L/O))/3:ee(n(T))/3,ve=o(Z),le=K(se),de=le*le-ve*ve;return[m(T)*2*i(te(se)*ve,.25-de),m(L)*2*i(le*p(Z),.25+de)]};function ue(){return r.geoProjection(Je).scale(66.1603)}var ye=V(8),Me=u(1+M);function pe(T,L){var P=n(L);return PC&&--R>0);return[T/(o(P)*(ye-1/p(P))),m(L)*P]};function U(){return r.geoProjection(pe).scale(112.314)}function Q(T){var L=2*x/T;function P(R,Y){var O=r.geoAzimuthalEquidistantRaw(R,Y);if(n(R)>b){var Z=i(O[1],O[0]),se=V(O[0]*O[0]+O[1]*O[1]),ve=L*d((Z-b)/L)+b,le=i(p(Z-=ve),2-o(Z));Z=ve+B(x/se*p(le))-le,O[0]=se*o(Z),O[1]=se*p(Z)}return O}return P.invert=function(R,Y){var O=V(R*R+Y*Y);if(O>b){var Z=i(Y,R),se=L*d((Z-b)/L)+b,ve=Z>se?-1:1,le=O*o(se-Z),de=1/y(ve*X((le-x)/V(x*(x-2*le)+O*O)));Z=se+2*a((de+ve*V(de*de-3))/3),R=O*o(Z),Y=O*p(Z)}return r.geoAzimuthalEquidistantRaw.invert(R,Y)},P}function $(){var T=5,L=r.geoProjectionMutator(Q),P=L(T),R=P.stream,Y=.01,O=-o(Y*H),Z=p(Y*H);return P.lobes=function(se){return arguments.length?L(T=+se):T},P.stream=function(se){var ve=P.rotate(),le=R(se),de=(P.rotate([0,0]),R(se));return P.rotate(ve),le.sphere=function(){de.polygonStart(),de.lineStart();for(var xe=0,Le=360/T,Fe=2*x/T,tr=90-180/T,cr=b;xe0&&n(Y)>_);return R<0?NaN:P}function ur(T,L,P){return L===void 0&&(L=40),P===void 0&&(P=C),function(R,Y,O,Z){var se,ve,le;O=O===void 0?0:+O,Z=Z===void 0?0:+Z;for(var de=0;dese){O-=ve/=2,Z-=le/=2;continue}se=tr;var cr=(O>0?-1:1)*P,Tr=(Z>0?-1:1)*P,Zr=T(O+cr,Z),at=T(O,Z+Tr),ot=(Zr[0]-xe[0])/cr,st=(Zr[1]-xe[1])/cr,vt=(at[0]-xe[0])/Tr,an=(at[1]-xe[1])/Tr,Mn=an*ot-st*vt,Ft=(n(Mn)<.5?.5:1)/Mn;if(ve=(Fe*vt-Le*an)*Ft,le=(Le*st-Fe*ot)*Ft,O+=ve,Z+=le,n(ve)0&&(se[1]*=1+ve/1.5*se[0]*se[0]),se}return R.invert=ur(R),R}function nr(){return r.geoProjection(Oe()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function or(T,L){var P=T*p(L),R=30,Y;do L-=Y=(L+p(L)-P)/(1+o(L));while(n(Y)>_&&--R>0);return L/2}function vr(T,L,P){function R(Y,O){return[T*Y*o(O=or(P,O)),L*p(O)]}return R.invert=function(Y,O){return O=B(O/L),[Y/(T*o(O)),B((2*O+p(2*O))/P)]},R}var rr=vr(M/b,M,x);function yr(){return r.geoProjection(rr).scale(169.529)}var dr=2.00276,Ae=1.11072;function Ue(T,L){var P=or(x,L);return[dr*T/(1/o(L)+Ae/o(P)),(L+M*p(P))/dr]}Ue.invert=function(T,L){var P=dr*L,R=L<0?-A:A,Y=25,O,Z;do Z=P-M*p(R),R-=O=(p(2*R)+2*R-x*p(Z))/(2*o(2*R)+2+x*o(Z)*M*o(R));while(n(O)>_&&--Y>0);return Z=P-M*p(R),[T*(1/o(Z)+Ae/o(R))/dr,Z]};function Xe(){return r.geoProjection(Ue).scale(160.857)}function Er(T){var L=0,P=r.geoProjectionMutator(T),R=P(L);return R.parallel=function(Y){return arguments.length?P(L=Y*H):L*F},R}function Sr(T,L){return[T*o(L),L]}Sr.invert=function(T,L){return[T/o(L),L]};function er(){return r.geoProjection(Sr).scale(152.63)}function Ke(T){if(!T)return Sr;var L=1/y(T);function P(R,Y){var O=L+T-Y,Z=O&&R*o(Y)/O;return[O*p(Z),L-O*o(Z)]}return P.invert=function(R,Y){var O=V(R*R+(Y=L-Y)*Y),Z=L+T-O;return[O/o(Z)*i(R,Y),Z]},P}function br(){return Er(Ke).scale(123.082).center([0,26.1441]).parallel(45)}function Mr(T){function L(P,R){var Y=b-R,O=Y&&P*T*p(Y)/Y;return[Y*p(O)/T,b-Y*o(O)]}return L.invert=function(P,R){var Y=P*T,O=b-R,Z=V(Y*Y+O*O),se=i(Y,O);return[(Z?Z/p(Z):1)*se/T,b-Z]},L}function mr(){var T=.5,L=r.geoProjectionMutator(Mr),P=L(T);return P.fraction=function(R){return arguments.length?L(T=+R):T},P.scale(158.837)}var pr=vr(1,4/x,x);function kr(){return r.geoProjection(pr).scale(152.63)}function Pr(T,L,P,R,Y,O){var Z=o(O),se;if(n(T)>1||n(O)>1)se=X(P*Y+L*R*Z);else{var ve=p(T/2),le=p(O/2);se=2*B(V(ve*ve+L*R*le*le))}return n(se)>_?[se,i(R*p(O),L*Y-P*R*Z)]:[0,0]}function Ur(T,L,P){return X((T*T+L*L-P*P)/(2*T*L))}function lr(T){return T-2*x*s((T+x)/(2*x))}function _e(T,L,P){for(var R=[[T[0],T[1],p(T[1]),o(T[1])],[L[0],L[1],p(L[1]),o(L[1])],[P[0],P[1],p(P[1]),o(P[1])]],Y=R[2],O,Z=0;Z<3;++Z,Y=O)O=R[Z],Y.v=Pr(O[1]-Y[1],Y[3],Y[2],O[3],O[2],O[0]-Y[0]),Y.point=[0,0];var se=Ur(R[0].v[0],R[2].v[0],R[1].v[0]),ve=Ur(R[0].v[0],R[1].v[0],R[2].v[0]),le=x-se;R[2].point[1]=0,R[0].point[0]=-(R[1].point[0]=R[0].v[0]/2);var de=[R[2].point[0]=R[0].point[0]+R[2].v[0]*o(se),2*(R[0].point[1]=R[1].point[1]=R[2].v[0]*p(se))];function xe(Le,Fe){var tr=p(Fe),cr=o(Fe),Tr=new Array(3),Zr;for(Zr=0;Zr<3;++Zr){var at=R[Zr];if(Tr[Zr]=Pr(Fe-at[1],at[3],at[2],cr,tr,Le-at[0]),!Tr[Zr][0])return at.point;Tr[Zr][1]=lr(Tr[Zr][1]-at.v[1])}var ot=de.slice();for(Zr=0;Zr<3;++Zr){var st=Zr==2?0:Zr+1,vt=Ur(R[Zr].v[0],Tr[Zr][0],Tr[st][0]);Tr[Zr][1]<0&&(vt=-vt),Zr?Zr==1?(vt=ve-vt,ot[0]-=Tr[Zr][0]*o(vt),ot[1]-=Tr[Zr][0]*p(vt)):(vt=le-vt,ot[0]+=Tr[Zr][0]*o(vt),ot[1]+=Tr[Zr][0]*p(vt)):(ot[0]+=Tr[Zr][0]*o(vt),ot[1]-=Tr[Zr][0]*p(vt))}return ot[0]/=3,ot[1]/=3,ot}return xe}function ke(T){return T[0]*=H,T[1]*=H,T}function $e(){return We([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function We(T,L,P){var R=r.geoCentroid({type:"MultiPoint",coordinates:[T,L,P]}),Y=[-R[0],-R[1]],O=r.geoRotation(Y),Z=_e(ke(O(T)),ke(O(L)),ke(O(P)));Z.invert=ur(Z);var se=r.geoProjection(Z).rotate(Y),ve=se.center;return delete se.rotate,se.center=function(le){return arguments.length?ve(O(le)):O.invert(ve())},se.clipAngle(90)}function qr(T,L){var P=V(1-p(L));return[2/D*T*P,D*(1-P)]}qr.invert=function(T,L){var P=(P=L/D-1)*P;return[P>0?T*V(x/P)/2:0,B(1-P)]};function Vr(){return r.geoProjection(qr).scale(95.6464).center([0,30])}function Hr(T){var L=y(T);function P(R,Y){return[R,(R?R/p(R):1)*(p(Y)*o(R)-L*o(Y))]}return P.invert=L?function(R,Y){R&&(Y*=p(R)/R);var O=o(R);return[R,2*i(V(O*O+L*L-Y*Y)-O,L-Y)]}:function(R,Y){return[R,B(R?Y*y(R)/R:Y)]},P}function lt(){return Er(Hr).scale(249.828).clipAngle(90)}var xt=V(3);function Rt(T,L){return[xt*T*(2*o(2*L/3)-1)/D,xt*D*p(L/3)]}Rt.invert=function(T,L){var P=3*B(L/(xt*D));return[D*T/(xt*(2*o(2*P/3)-1)),P]};function St(){return r.geoProjection(Rt).scale(156.19)}function hn(T){var L=o(T);function P(R,Y){return[R*L,p(Y)/L]}return P.invert=function(R,Y){return[R/L,B(Y*L)]},P}function Fn(){return Er(hn).parallel(38.58).scale(195.044)}function $n(T){var L=o(T);function P(R,Y){return[R*L,(1+L)*y(Y/2)]}return P.invert=function(R,Y){return[R/L,a(Y/(1+L))*2]},P}function jt(){return Er($n).scale(124.75)}function cn(T,L){var P=V(8/(3*x));return[P*T*(1-n(L)/x),P*L]}cn.invert=function(T,L){var P=V(8/(3*x)),R=L/P;return[T/(P*(1-n(R)/x)),R]};function un(){return r.geoProjection(cn).scale(165.664)}function Kt(T,L){var P=V(4-3*p(n(L)));return[2/V(6*x)*T*P,m(L)*V(2*x/3)*(2-P)]}Kt.invert=function(T,L){var P=2-n(L)/V(2*x/3);return[T*V(6*x)/(2*P),m(L)*B((4-P*P)/3)]};function aa(){return r.geoProjection(Kt).scale(165.664)}function rt(T,L){var P=V(x*(4+x));return[2/P*T*(1+V(1-4*L*L/(x*x))),4/P*L]}rt.invert=function(T,L){var P=V(x*(4+x))/2;return[T*P/(1+V(1-L*L*(4+x)/(4*x))),L*P/2]};function Qt(){return r.geoProjection(rt).scale(180.739)}function Ct(T,L){var P=(2+b)*p(L);L/=2;for(var R=0,Y=1/0;R<10&&n(Y)>_;R++){var O=o(L);L-=Y=(L+p(L)*(O+2)-P)/(2*O*(1+O))}return[2/V(x*(4+x))*T*(1+o(L)),2*V(x/(4+x))*p(L)]}Ct.invert=function(T,L){var P=L*V((4+x)/x)/2,R=B(P),Y=o(R);return[T/(2/V(x*(4+x))*(1+Y)),B((R+P*(Y+2))/(2+b))]};function dn(){return r.geoProjection(Ct).scale(180.739)}function pn(T,L){return[T*(1+o(L))/V(2+x),2*L/V(2+x)]}pn.invert=function(T,L){var P=V(2+x),R=L*P/2;return[P*T/(1+o(R)),R]};function tn(){return r.geoProjection(pn).scale(173.044)}function fn(T,L){for(var P=(1+b)*p(L),R=0,Y=1/0;R<10&&n(Y)>_;R++)L-=Y=(L+p(L)-P)/(1+o(L));return P=V(2+x),[T*(1+o(L))/P,2*L/P]}fn.invert=function(T,L){var P=1+b,R=V(P/2);return[T*2*R/(1+o(L*=R)),B((L+p(L))/P)]};function ha(){return r.geoProjection(fn).scale(173.044)}var Sn=3+2*M;function Na(T,L){var P=p(T/=2),R=o(T),Y=V(o(L)),O=o(L/=2),Z=p(L)/(O+M*R*Y),se=V(2/(1+Z*Z)),ve=V((M*O+(R+P)*Y)/(M*O+(R-P)*Y));return[Sn*(se*(ve-1/ve)-2*u(ve)),Sn*(se*Z*(ve+1/ve)-2*a(Z))]}Na.invert=function(T,L){if(!(O=Je.invert(T/1.2,L*1.065)))return null;var P=O[0],R=O[1],Y=20,O;T/=Sn,L/=Sn;do{var Z=P/2,se=R/2,ve=p(Z),le=o(Z),de=p(se),xe=o(se),Le=o(R),Fe=V(Le),tr=de/(xe+M*le*Fe),cr=tr*tr,Tr=V(2/(1+cr)),Zr=M*xe+(le+ve)*Fe,at=M*xe+(le-ve)*Fe,ot=Zr/at,st=V(ot),vt=st-1/st,an=st+1/st,Mn=Tr*vt-2*u(st)-T,Ft=Tr*tr*an-2*a(tr)-L,zn=de&&k*Fe*ve*cr/de,ga=(M*le*xe+Fe)/(2*(xe+M*le*Fe)*(xe+M*le*Fe)*Fe),ui=-.5*tr*Tr*Tr*Tr,il=ui*zn,Us=ui*ga,La=(La=2*xe+M*Fe*(le-ve))*La*st,qa=(M*le*xe*Fe+Le)/La,Xi=-(M*ve*de)/(Fe*La),ol=vt*il-2*qa/st+Tr*(qa+qa/ot),ll=vt*Us-2*Xi/st+Tr*(Xi+Xi/ot),sl=tr*an*il-2*zn/(1+cr)+Tr*an*zn+Tr*tr*(qa-qa/ot),Xl=tr*an*Us-2*ga/(1+cr)+Tr*an*ga+Tr*tr*(Xi-Xi/ot),go=ll*sl-Xl*ol;if(!go)break;var Ys=(Ft*ll-Mn*Xl)/go,Wf=(Mn*sl-Ft*ol)/go;P-=Ys,R=f(-b,v(b,R-Wf))}while((n(Ys)>_||n(Wf)>_)&&--Y>0);return n(n(R)-b)<_?[0,R]:Y&&[P,R]};function da(){return r.geoProjection(Na).scale(62.5271)}var wn=o(35*H);function It(T,L){var P=y(L/2);return[T*wn*V(1-P*P),(1+wn)*P]}It.invert=function(T,L){var P=L/(1+wn);return[T&&T/(wn*V(1-P*P)),2*a(P)]};function In(){return r.geoProjection(It).scale(137.152)}function pi(T,L){var P=L/2,R=o(P);return[2*T/D*o(L)*R*R,D*y(P)]}pi.invert=function(T,L){var P=a(L/D),R=o(P),Y=2*P;return[T*D/2/(o(Y)*R*R),Y]};function io(){return r.geoProjection(pi).scale(135.264)}function gi(T){var L=1-T,P=O(x,0)[0]-O(-x,0)[0],R=O(0,b)[1]-O(0,-b)[1],Y=V(2*R/P);function O(ve,le){var de=o(le),xe=p(le);return[de/(L+T*de)*ve,L*le+T*xe]}function Z(ve,le){var de=O(ve,le);return[de[0]*Y,de[1]/Y]}function se(ve){return Z(0,ve)[1]}return Z.invert=function(ve,le){var de=ir(se,le),xe=ve/Y*(T+L/o(de));return[xe,de]},Z}function ms(){var T=.5,L=r.geoProjectionMutator(gi),P=L(T);return P.alpha=function(R){return arguments.length?L(T=+R):T},P.scale(168.725)}function El(T){return[T[0]/2,B(y(T[1]/2*H))*F]}function Bo(T){return[T[0]*2,2*a(p(T[1]*H))*F]}function ys(T){T==null&&(T=r.geoOrthographic);var L=T(),P=r.geoEquirectangular().scale(F).precision(0).clipAngle(null).translate([0,0]);function R(O){return L(El(O))}L.invert&&(R.invert=function(O){return Bo(L.invert(O))}),R.stream=function(O){var Z=L.stream(O),se=P.stream({point:function(ve,le){Z.point(ve/2,B(y(-le/2*H))*F)},lineStart:function(){Z.lineStart()},lineEnd:function(){Z.lineEnd()},polygonStart:function(){Z.polygonStart()},polygonEnd:function(){Z.polygonEnd()}});return se.sphere=Z.sphere,se};function Y(O){R[O]=function(){return arguments.length?(L[O].apply(L,arguments),R):L[O]()}}return R.rotate=function(O){return arguments.length?(P.rotate(O),R):P.rotate()},R.center=function(O){return arguments.length?(L.center(El(O)),R):Bo(L.center())},Y("angle"),Y("clipAngle"),Y("clipExtent"),Y("fitExtent"),Y("fitHeight"),Y("fitSize"),Y("fitWidth"),Y("scale"),Y("translate"),Y("precision"),R.scale(249.5)}function Oo(T,L){var P=2*x/L,R=T*T;function Y(O,Z){var se=r.geoAzimuthalEquidistantRaw(O,Z),ve=se[0],le=se[1],de=ve*ve+le*le;if(de>R){var xe=V(de),Le=i(le,ve),Fe=P*d(Le/P),tr=Le-Fe,cr=T*o(tr),Tr=(T*p(tr)-tr*p(cr))/(b-cr),Zr=Hn(tr,Tr),at=(x-T)/mi(Zr,cr,x);ve=xe;var ot=50,st;do ve-=st=(T+mi(Zr,cr,ve)*at-xe)/(Zr(ve)*at);while(n(st)>_&&--ot>0);le=tr*p(ve),veR){var ve=V(se),le=i(Z,O),de=P*d(le/P),xe=le-de;O=ve*o(xe),Z=ve*p(xe);for(var Le=O-b,Fe=p(O),tr=Z/Fe,cr=O_||n(tr)>_)&&--cr>0);return[xe,Le]},ve}var Kr=yi(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function Lt(){return r.geoProjection(Kr).scale(149.995)}var Ht=yi(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Br(){return r.geoProjection(Ht).scale(153.93)}var Vn=yi(5/6*x,-.62636,-.0344,0,1.3493,-.05524,0,.045);function nn(){return r.geoProjection(Vn).scale(130.945)}function Dn(T,L){var P=T*T,R=L*L;return[T*(1-.162388*R)*(.87-952426e-9*P*P),L*(1+R/12)]}Dn.invert=function(T,L){var P=T,R=L,Y=50,O;do{var Z=R*R;R-=O=(R*(1+Z/12)-L)/(1+Z/4)}while(n(O)>_&&--Y>0);Y=50,T/=1-.162388*Z;do{var se=(se=P*P)*se;P-=O=(P*(.87-952426e-9*se)-T)/(.87-.00476213*se)}while(n(O)>_&&--Y>0);return[P,R]};function At(){return r.geoProjection(Dn).scale(131.747)}var Wa=yi(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Yo(){return r.geoProjection(Wa).scale(131.087)}function wf(T){var L=T(b,0)[0]-T(-b,0)[0];function P(R,Y){var O=R>0?-.5:.5,Z=T(R+O*x,Y);return Z[0]-=O*L,Z}return T.invert&&(P.invert=function(R,Y){var O=R>0?-.5:.5,Z=T.invert(R+O*L,Y),se=Z[0]-O*x;return se<-x?se+=2*x:se>x&&(se-=2*x),Z[0]=se,Z}),P}function cu(T,L){var P=m(T),R=m(L),Y=o(L),O=o(T)*Y,Z=p(T)*Y,se=p(R*L);T=n(i(Z,se)),L=B(O),n(T-b)>_&&(T%=b);var ve=oo(T>x/4?b-T:T,L);return T>x/4&&(se=ve[0],ve[0]=-ve[1],ve[1]=-se),ve[0]*=P,ve[1]*=-R,ve}cu.invert=function(T,L){n(T)>1&&(T=m(T)*2-T),n(L)>1&&(L=m(L)*2-L);var P=m(T),R=m(L),Y=-P*T,O=-R*L,Z=O/Y<1,se=Go(Z?O:Y,Z?Y:O),ve=se[0],le=se[1],de=o(le);return Z&&(ve=-b-ve),[P*(i(p(ve)*de,-p(le))+x),R*B(o(ve)*de)]};function oo(T,L){if(L===b)return[0,0];var P=p(L),R=P*P,Y=R*R,O=1+Y,Z=1+3*Y,se=1-Y,ve=B(1/V(O)),le=se+R*O*ve,de=(1-P)/le,xe=V(de),Le=de*O,Fe=V(Le),tr=xe*se,cr,Tr;if(T===0)return[0,-(tr+R*Fe)];var Zr=o(L),at=1/Zr,ot=2*P*Zr,st=(-3*R+ve*Z)*ot,vt=(-le*Zr-(1-P)*st)/(le*le),an=.5*vt/xe,Mn=se*an-2*R*xe*ot,Ft=R*O*vt+de*Z*ot,zn=-at*ot,ga=-at*Ft,ui=-2*at*Mn,il=4*T/x,Us;if(T>.222*x||L.175*x){if(cr=(tr+R*V(Le*(1+Y)-tr*tr))/(1+Y),T>x/4)return[cr,cr];var La=cr,qa=.5*cr;cr=.5*(qa+La),Tr=50;do{var Xi=V(Le-cr*cr),ol=cr*(ui+zn*Xi)+ga*B(cr/Fe)-il;if(!ol)break;ol<0?qa=cr:La=cr,cr=.5*(qa+La)}while(n(La-qa)>_&&--Tr>0)}else{cr=_,Tr=25;do{var ll=cr*cr,sl=V(Le-ll),Xl=ui+zn*sl,go=cr*Xl+ga*B(cr/Fe)-il,Ys=Xl+(ga-zn*ll)/sl;cr-=Us=sl?go/Ys:0}while(n(Us)>_&&--Tr>0)}return[cr,-tr-R*V(Le-cr*cr)]}function Go(T,L){for(var P=0,R=1,Y=.5,O=50;;){var Z=Y*Y,se=V(Y),ve=B(1/V(1+Z)),le=1-Z+Y*(1+Z)*ve,de=(1-se)/le,xe=V(de),Le=de*(1+Z),Fe=xe*(1-Z),tr=Le-T*T,cr=V(tr),Tr=L+Fe+Y*cr;if(n(R-P)0?P=Y:R=Y,Y=.5*(P+R)}if(!O)return null;var Zr=B(se),at=o(Zr),ot=1/at,st=2*se*at,vt=(-3*Y+ve*(1+3*Z))*st,an=(-le*at-(1-se)*vt)/(le*le),Mn=.5*an/xe,Ft=(1-Z)*Mn-2*Y*xe*st,zn=-2*ot*Ft,ga=-ot*st,ui=-ot*(Y*(1+Z)*an+de*(1+3*Z)*st);return[x/4*(T*(zn+ga*cr)+ui*B(T/V(Le))),Zr]}function Vo(){return r.geoProjection(wf(cu)).scale(239.75)}function vu(T,L,P){var R,Y,O;return T?(R=Pl(T,P),L?(Y=Pl(L,1-P),O=Y[1]*Y[1]+P*R[0]*R[0]*Y[0]*Y[0],[[R[0]*Y[2]/O,R[1]*R[2]*Y[0]*Y[1]/O],[R[1]*Y[1]/O,-R[0]*R[2]*Y[0]*Y[2]/O],[R[2]*Y[1]*Y[2]/O,-P*R[0]*R[1]*Y[0]/O]]):[[R[0],0],[R[1],0],[R[2],0]]):(Y=Pl(L,1-P),[[0,Y[0]/Y[1]],[1/Y[1],0],[Y[2]/Y[1],0]])}function Pl(T,L){var P,R,Y,O,Z;if(L<_)return O=p(T),R=o(T),P=L*(T-O*R)/4,[O-P*R,R+P*O,1-L*O*O/2,T-P];if(L>=1-_)return P=(1-L)/4,R=K(T),O=re(T),Y=1/R,Z=R*te(T),[O+P*(Z-T)/(R*R),Y-P*O*Y*(Z-T),Y+P*O*Y*(Z+T),2*a(l(T))-b+P*(Z-T)/R];var se=[1,0,0,0,0,0,0,0,0],ve=[V(L),0,0,0,0,0,0,0,0],le=0;for(R=V(1-L),Z=1;n(ve[le]/se[le])>_&&le<8;)P=se[le++],ve[le]=(P-R)/2,se[le]=(P+R)/2,R=V(P*R),Z*=2;Y=Z*se[le]*T;do O=ve[le]*p(R=Y)/se[le],Y=(B(O)+Y)/2;while(--le);return[p(Y),O=o(Y),O/o(Y-R),Y]}function Rl(T,L,P){var R=n(T),Y=n(L),O=te(Y);if(R){var Z=1/p(R),se=1/(y(R)*y(R)),ve=-(se+P*(O*O*Z*Z)-1+P),le=(P-1)*se,de=(-ve+V(ve*ve-4*le))/2;return[bi(a(1/V(de)),P)*m(T),bi(a(V((de/se-1)/P)),1-P)*m(L)]}return[0,bi(a(O),1-P)*m(L)]}function bi(T,L){if(!L)return T;if(L===1)return u(y(T/2+A));for(var P=1,R=V(1-L),Y=V(L),O=0;n(Y)>_;O++){if(T%x){var Z=a(R*y(T)/P);Z<0&&(Z+=x),T+=Z+~~(T/x)*x}else T+=T;Y=(P+R)/2,R=V(P*R),Y=((P=Y)-R)/2}return T/(h(2,O)*P)}function lo(T,L){var P=(M-1)/(M+1),R=V(1-P*P),Y=bi(b,R*R),O=-1,Z=u(y(x/4+n(L)/2)),se=l(O*Z)/V(P),ve=Wo(se*o(O*T),se*p(O*T)),le=Rl(ve[0],ve[1],R*R);return[-le[1],(L>=0?1:-1)*(.5*Y-le[0])]}function Wo(T,L){var P=T*T,R=L+1,Y=1-P-L*L;return[.5*((T>=0?b:-b)-i(Y,2*T)),-.25*u(Y*Y+4*P)+.5*u(R*R+P)]}function zl(T,L){var P=L[0]*L[0]+L[1]*L[1];return[(T[0]*L[0]+T[1]*L[1])/P,(T[1]*L[0]-T[0]*L[1])/P]}lo.invert=function(T,L){var P=(M-1)/(M+1),R=V(1-P*P),Y=bi(b,R*R),O=-1,Z=vu(.5*Y-L,-T,R*R),se=zl(Z[0],Z[1]),ve=i(se[1],se[0])/O;return[ve,2*a(l(.5/O*u(P*se[0]*se[0]+P*se[1]*se[1])))-b]};function bs(){return r.geoProjection(wf(lo)).scale(151.496)}function Mf(T){var L=p(T),P=o(T),R=Zc(T);R.invert=Zc(-T);function Y(O,Z){var se=R(O,Z);O=se[0],Z=se[1];var ve=p(Z),le=o(Z),de=o(O),xe=X(L*ve+P*le*de),Le=p(xe),Fe=n(Le)>_?xe/Le:1;return[Fe*P*p(O),(n(O)>b?Fe:-Fe)*(L*le-P*ve*de)]}return Y.invert=function(O,Z){var se=V(O*O+Z*Z),ve=-p(se),le=o(se),de=se*le,xe=-Z*ve,Le=se*L,Fe=V(de*de+xe*xe-Le*Le),tr=i(de*Le+xe*Fe,xe*Le-de*Fe),cr=(se>b?-1:1)*i(O*ve,se*o(tr)*le+Z*p(tr)*ve);return R.invert(cr,tr)},Y}function Zc(T){var L=p(T),P=o(T);return function(R,Y){var O=o(Y),Z=o(R)*O,se=p(R)*O,ve=p(Y);return[i(se,Z*P-ve*L),B(ve*P+Z*L)]}}function _s(){var T=0,L=r.geoProjectionMutator(Mf),P=L(T),R=P.rotate,Y=P.stream,O=r.geoCircle();return P.parallel=function(Z){if(!arguments.length)return T*F;var se=P.rotate();return L(T=Z*H).rotate(se)},P.rotate=function(Z){return arguments.length?(R.call(P,[Z[0],Z[1]-T*F]),O.center([-Z[0],-Z[1]]),P):(Z=R.call(P),Z[1]+=T*F,Z)},P.stream=function(Z){return Z=Y(Z),Z.sphere=function(){Z.polygonStart();var se=.01,ve=O.radius(90-se)().coordinates[0],le=ve.length-1,de=-1,xe;for(Z.lineStart();++de=0;)Z.point((xe=ve[de])[0],xe[1]);Z.lineEnd(),Z.polygonEnd()},Z},P.scale(79.4187).parallel(45).clipAngle(180-.001)}var xs=3,ws=B(1-1/xs)*F,Zo=hn(0);function so(T){var L=ws*H,P=qr(x,L)[0]-qr(-x,L)[0],R=Zo(0,L)[1],Y=qr(0,L)[1],O=D-Y,Z=z/T,se=4/z,ve=R+O*O*4/z;function le(de,xe){var Le,Fe=n(xe);if(Fe>L){var tr=v(T-1,f(0,s((de+x)/Z)));de+=x*(T-1)/T-tr*Z,Le=qr(de,Fe),Le[0]=Le[0]*z/P-z*(T-1)/(2*T)+tr*z/T,Le[1]=R+(Le[1]-Y)*4*O/z,xe<0&&(Le[1]=-Le[1])}else Le=Zo(de,xe);return Le[0]*=se,Le[1]/=ve,Le}return le.invert=function(de,xe){de/=se,xe*=ve;var Le=n(xe);if(Le>R){var Fe=v(T-1,f(0,s((de+x)/Z)));de=(de+x*(T-1)/T-Fe*Z)*P/z;var tr=qr.invert(de,.25*(Le-R)*z/O+Y);return tr[0]-=x*(T-1)/T-Fe*Z,xe<0&&(tr[1]=-tr[1]),tr}return Zo.invert(de,xe)},le}function uo(T,L){return[T,L&1?90-_:ws]}function Bi(T,L){return[T,L&1?-90+_:-ws]}function Af(T){return[T[0]*(1-_),T[1]]}function hu(T){var L=[].concat(t.range(-180,180+T/2,T).map(uo),t.range(180,-180-T/2,-T).map(Bi));return{type:"Polygon",coordinates:[T===180?L.map(Af):L]}}function Nl(){var T=4,L=r.geoProjectionMutator(so),P=L(T),R=P.stream;return P.lobes=function(Y){return arguments.length?L(T=+Y):T},P.stream=function(Y){var O=P.rotate(),Z=R(Y),se=(P.rotate([0,0]),R(Y));return P.rotate(O),Z.sphere=function(){r.geoStream(hu(180/T),se)},Z},P.scale(239.75)}function Tf(T){var L=1+T,P=p(1/L),R=B(P),Y=2*V(x/(O=x+4*R*L)),O,Z=.5*Y*(L+V(T*(2+T))),se=T*T,ve=L*L;function le(de,xe){var Le=1-p(xe),Fe,tr;if(Le&&Le<2){var cr=b-xe,Tr=25,Zr;do{var at=p(cr),ot=o(cr),st=R+i(at,L-ot),vt=1+ve-2*L*ot;cr-=Zr=(cr-se*R-L*at+vt*st-.5*Le*O)/(2*L*at*st)}while(n(Zr)>C&&--Tr>0);Fe=Y*V(vt),tr=de*st/x}else Fe=Y*(T+Le),tr=de*R/x;return[Fe*p(tr),Z-Fe*o(tr)]}return le.invert=function(de,xe){var Le=de*de+(xe-=Z)*xe,Fe=(1+ve-Le/(Y*Y))/(2*L),tr=X(Fe),cr=p(tr),Tr=R+i(cr,L-Fe);return[B(de/V(Le))*x/Tr,B(1-2*(tr-se*R-L*cr+(1+ve-2*L*Fe)*Tr)/O)]},le}function Xc(){var T=1,L=r.geoProjectionMutator(Tf),P=L(T);return P.ratio=function(R){return arguments.length?L(T=+R):T},P.scale(167.774).center([0,18.67])}var Ms=.7109889596207567,Oi=.0528035274542;function As(T,L){return L>-Ms?(T=rr(T,L),T[1]+=Oi,T):Sr(T,L)}As.invert=function(T,L){return L>-Ms?rr.invert(T,L-Oi):Sr.invert(T,L)};function jc(){return r.geoProjection(As).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Ts(T,L){return n(L)>Ms?(T=rr(T,L),T[1]-=L>0?Oi:-Oi,T):Sr(T,L)}Ts.invert=function(T,L){return n(L)>Ms?rr.invert(T,L+(L>0?Oi:-Oi)):Sr.invert(T,L)};function Fv(){return r.geoProjection(Ts).scale(152.63)}function Xo(T,L,P,R){var Y=V(4*x/(2*P+(1+T-L/2)*p(2*P)+(T+L)/2*p(4*P)+L/2*p(6*P))),O=V(R*p(P)*V((1+T*o(2*P)+L*o(4*P))/(1+T+L))),Z=P*ve(1);function se(xe){return V(1+T*o(2*xe)+L*o(4*xe))}function ve(xe){var Le=xe*P;return(2*Le+(1+T-L/2)*p(2*Le)+(T+L)/2*p(4*Le)+L/2*p(6*Le))/P}function le(xe){return se(xe)*p(xe)}var de=function(xe,Le){var Fe=P*ir(ve,Z*p(Le)/P,Le/x);isNaN(Fe)&&(Fe=P*m(Le));var tr=Y*se(Fe);return[tr*O*xe/x*o(Fe),tr/O*p(Fe)]};return de.invert=function(xe,Le){var Fe=ir(le,Le*O/Y);return[xe*x/(o(Fe)*Y*O*se(Fe)),B(P*ve(Fe/P)/Z)]},P===0&&(Y=V(R/x),de=function(xe,Le){return[xe*Y,p(Le)/Y]},de.invert=function(xe,Le){return[xe/Y,B(Le*Y)]}),de}function kf(){var T=1,L=0,P=45*H,R=2,Y=r.geoProjectionMutator(Xo),O=Y(T,L,P,R);return O.a=function(Z){return arguments.length?Y(T=+Z,L,P,R):T},O.b=function(Z){return arguments.length?Y(T,L=+Z,P,R):L},O.psiMax=function(Z){return arguments.length?Y(T,L,P=+Z*H,R):P*F},O.ratio=function(Z){return arguments.length?Y(T,L,P,R=+Z):R},O.scale(180.739)}function Fl(T,L,P,R,Y,O,Z,se,ve,le,de){if(de.nanEncountered)return NaN;var xe,Le,Fe,tr,cr,Tr,Zr,at,ot,st;if(xe=P-L,Le=T(L+xe*.25),Fe=T(P-xe*.25),isNaN(Le)){de.nanEncountered=!0;return}if(isNaN(Fe)){de.nanEncountered=!0;return}return tr=xe*(R+4*Le+Y)/12,cr=xe*(Y+4*Fe+O)/12,Tr=tr+cr,st=(Tr-Z)/15,le>ve?(de.maxDepthCount++,Tr+st):Math.abs(st)>1;do ve[Tr]>Fe?cr=Tr:tr=Tr,Tr=tr+cr>>1;while(Tr>tr);var Zr=ve[Tr+1]-ve[Tr];return Zr&&(Zr=(Fe-ve[Tr+1])/Zr),(Tr+1+Zr)/Z}var xe=2*de(1)/x*O/P,Le=function(Fe,tr){var cr=de(n(p(tr))),Tr=R(cr)*Fe;return cr/=xe,[Tr,tr>=0?cr:-cr]};return Le.invert=function(Fe,tr){var cr;return tr*=xe,n(tr)<1&&(cr=m(tr)*B(Y(n(tr))*O)),[Fe/R(n(tr)),cr]},Le}function co(){var T=0,L=2.5,P=1.183136,R=r.geoProjectionMutator(fo),Y=R(T,L,P);return Y.alpha=function(O){return arguments.length?R(T=+O,L,P):T},Y.k=function(O){return arguments.length?R(T,L=+O,P):L},Y.gamma=function(O){return arguments.length?R(T,L,P=+O):P},Y.scale(152.63)}function Sf(T,L){return n(T[0]-L[0])<_&&n(T[1]-L[1])<_}function _i(T,L){for(var P=-1,R=T.length,Y=T[0],O,Z,se,ve=[];++P=0;--ve)P=T[1][ve],R=P[0][0],Y=P[0][1],O=P[1][1],Z=P[2][0],se=P[2][1],L.push(_i([[Z-_,se-_],[Z-_,O+_],[R+_,O+_],[R+_,Y-_]],30));return{type:"Polygon",coordinates:[t.merge(L)]}}function Ui(T,L,P){var R,Y;function O(ve,le){for(var de=le<0?-1:1,xe=L[+(le<0)],Le=0,Fe=xe.length-1;Lexe[Le][2][0];++Le);var tr=T(ve-xe[Le][1][0],le);return tr[0]+=T(xe[Le][1][0],de*le>de*xe[Le][0][1]?xe[Le][0][1]:le)[0],tr}P?O.invert=P(O):T.invert&&(O.invert=function(ve,le){for(var de=Y[+(le<0)],xe=L[+(le<0)],Le=0,Fe=de.length;Letr&&(cr=Fe,Fe=tr,tr=cr),[[xe,Fe],[Le,tr]]})}),Z):L.map(function(le){return le.map(function(de){return[[de[0][0]*F,de[0][1]*F],[de[1][0]*F,de[1][1]*F],[de[2][0]*F,de[2][1]*F]]})})},L!=null&&Z.lobes(L),Z}var Il=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Hv(){return Ui(Ue,Il).scale(160.857)}var Yi=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function jo(){return Ui(Ts,Yi).scale(152.63)}var Jo=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function $o(){return Ui(rr,Jo).scale(169.529)}var vo=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function ks(){return Ui(rr,vo).scale(169.529).rotate([20,0])}var du=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function Ss(){return Ui(As,du,ur).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Cs=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function Ko(){return Ui(Sr,Cs).scale(152.63).rotate([-20,0])}function Hl(T,L){return[3/z*T*V(x*x/3-L*L),L]}Hl.invert=function(T,L){return[z/3*T/V(x*x/3-L*L),L]};function Bl(){return r.geoProjection(Hl).scale(158.837)}function pu(T){function L(P,R){if(n(n(R)-b)<_)return[0,R<0?-2:2];var Y=p(R),O=h((1+Y)/(1-Y),T/2),Z=.5*(O+1/O)+o(P*=T);return[2*p(P)/Z,(O-1/O)/Z]}return L.invert=function(P,R){var Y=n(R);if(n(Y-2)<_)return P?null:[0,m(R)*b];if(Y>2)return null;P/=2,R/=2;var O=P*P,Z=R*R,se=2*R/(1+O+Z);return se=h((1+se)/(1-se),1/T),[i(2*P,1-O-Z)/T,B((se-1)/(se+1))]},L}function gu(){var T=.5,L=r.geoProjectionMutator(pu),P=L(T);return P.spacing=function(R){return arguments.length?L(T=+R):T},P.scale(124.75)}var oi=x/M;function mu(T,L){return[T*(1+V(o(L)))/2,L/(o(L/2)*o(T/6))]}mu.invert=function(T,L){var P=n(T),R=n(L),Y=_,O=b;R_||n(Tr)>_)&&--Y>0);return Y&&[P,R]};function Kn(){return r.geoProjection(Fa).scale(139.98)}function Aa(T,L){return[p(T)/o(L),y(L)*o(T)]}Aa.invert=function(T,L){var P=T*T,R=L*L,Y=R+1,O=P+Y,Z=T?k*V((O-V(O*O-4*P))/P):1/V(Y);return[B(T*Z),m(L)*X(Z)]};function Gi(){return r.geoProjection(Aa).scale(144.049).clipAngle(90-.001)}function Ls(T){var L=o(T),P=y(A+T/2);function R(Y,O){var Z=O-T,se=n(Z)<_?Y*L:n(se=A+O/2)<_||n(n(se)-b)<_?0:Y*Z/u(y(se)/P);return[se,Z]}return R.invert=function(Y,O){var Z,se=O+T;return[n(O)<_?Y/L:n(Z=A+se/2)<_||n(n(Z)-b)<_?0:Y*u(y(Z)/P)/O,se]},R}function Qo(){return Er(Ls).parallel(40).scale(158.837)}function Ol(T,L){return[T,1.25*u(y(A+.4*L))]}Ol.invert=function(T,L){return[T,2.5*a(l(.8*L))-.625*x]};function Cf(){return r.geoProjection(Ol).scale(108.318)}function $c(T){var L=T.length-1;function P(R,Y){for(var O=o(Y),Z=2/(1+O*o(R)),se=Z*O*p(R),ve=Z*p(Y),le=L,de=T[le],xe=de[0],Le=de[1],Fe;--le>=0;)de=T[le],xe=de[0]+se*(Fe=xe)-ve*Le,Le=de[1]+se*Le+ve*Fe;return xe=se*(Fe=xe)-ve*Le,Le=se*Le+ve*Fe,[xe,Le]}return P.invert=function(R,Y){var O=20,Z=R,se=Y;do{for(var ve=L,le=T[ve],de=le[0],xe=le[1],Le=0,Fe=0,tr;--ve>=0;)le=T[ve],Le=de+Z*(tr=Le)-se*Fe,Fe=xe+Z*Fe+se*tr,de=le[0]+Z*(tr=de)-se*xe,xe=le[1]+Z*xe+se*tr;Le=de+Z*(tr=Le)-se*Fe,Fe=xe+Z*Fe+se*tr,de=Z*(tr=de)-se*xe-R,xe=Z*xe+se*tr-Y;var cr=Le*Le+Fe*Fe,Tr,Zr;Z-=Tr=(de*Le+xe*Fe)/cr,se-=Zr=(xe*Le-de*Fe)/cr}while(n(Tr)+n(Zr)>_*_&&--O>0);if(O){var at=V(Z*Z+se*se),ot=2*a(at*.5),st=p(ot);return[i(Z*st,at*o(ot)),at?B(se*st/at):0]}},P}var Bv=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Ov=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Lf=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],qf=[[.9245,0],[0,0],[.01943,0]],Df=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Ef(){return xi(Bv,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function Kc(){return xi(Ov,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Qc(){return xi(Lf,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function qs(){return xi(qf,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Ds(){return xi(Df,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function xi(T,L){var P=r.geoProjection($c(T)).rotate(L).clipAngle(90),R=r.geoRotation(L),Y=P.center;return delete P.rotate,P.center=function(O){return arguments.length?Y(R(O)):R.invert(Y())},P}var bu=V(6),Es=V(7);function _u(T,L){var P=B(7*p(L)/(3*bu));return[bu*T*(2*o(2*P/3)-1)/Es,9*p(P/3)/Es]}_u.invert=function(T,L){var P=3*B(L*Es/9);return[T*Es/(bu*(2*o(2*P/3)-1)),B(p(P)*3*bu/7)]};function e0(){return r.geoProjection(_u).scale(164.859)}function Pf(T,L){for(var P=(1+k)*p(L),R=L,Y=0,O;Y<25&&(R-=O=(p(R/2)+p(R)-P)/(.5*o(R/2)+o(R)),!(n(O)<_));Y++);return[T*(1+2*o(R)/o(R/2))/(3*M),2*V(3)*p(R/2)/V(2+M)]}Pf.invert=function(T,L){var P=L*V(2+M)/(2*V(3)),R=2*B(P);return[3*M*T/(1+2*o(R)/o(R/2)),B((P+p(R))/(1+k))]};function Uv(){return r.geoProjection(Pf).scale(188.209)}function ho(T,L){for(var P=V(6/(4+x)),R=(1+x/4)*p(L),Y=L/2,O=0,Z;O<25&&(Y-=Z=(Y/2+p(Y)-R)/(.5+o(Y)),!(n(Z)<_));O++);return[P*(.5+o(Y))*T/1.5,P*Y]}ho.invert=function(T,L){var P=V(6/(4+x)),R=L/P;return n(n(R)-b)<_&&(R=R<0?-b:b),[1.5*T/(P*(.5+o(R))),B((R/2+p(R))/(1+x/4))]};function xu(){return r.geoProjection(ho).scale(166.518)}function Ul(T,L){var P=L*L,R=P*P,Y=P*R;return[T*(.84719-.13063*P+Y*Y*(-.04515+.05494*P-.02326*R+.00331*Y)),L*(1.01183+R*R*(-.02625+.01926*P-.00396*R))]}Ul.invert=function(T,L){var P=L,R=25,Y,O,Z,se;do O=P*P,Z=O*O,P-=Y=(P*(1.01183+Z*Z*(-.02625+.01926*O-.00396*Z))-L)/(1.01183+Z*Z*(9*-.02625+11*.01926*O+13*-.00396*Z));while(n(Y)>C&&--R>0);return O=P*P,Z=O*O,se=O*Z,[T/(.84719-.13063*O+se*se*(-.04515+.05494*O-.02326*Z+.00331*se)),P]};function Ps(){return r.geoProjection(Ul).scale(175.295)}function Rs(T,L){return[T*(1+o(L))/2,2*(L-y(L/2))]}Rs.invert=function(T,L){for(var P=L/2,R=0,Y=1/0;R<10&&n(Y)>_;++R){var O=o(L/2);L-=Y=(L-y(L/2)-P)/(1-.5/(O*O))}return[2*T/(1+o(L)),L]};function Rf(){return r.geoProjection(Rs).scale(152.63)}var po=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function r0(){return Ui(Te(1/0),po).rotate([20,0]).scale(152.63)}function zf(T,L){var P=p(L),R=o(L),Y=m(T);if(T===0||n(L)===b)return[0,L];if(L===0)return[T,0];if(n(T)===b)return[T*R,b*P];var O=x/(2*T)-2*T/x,Z=2*L/x,se=(1-Z*Z)/(P-Z),ve=O*O,le=se*se,de=1+ve/le,xe=1+le/ve,Le=(O*P/se-O/2)/de,Fe=(le*P/ve+se/2)/xe,tr=Le*Le+R*R/de,cr=Fe*Fe-(le*P*P/ve+se*P-1)/xe;return[b*(Le+V(tr)*Y),b*(Fe+V(cr<0?0:cr)*m(-L*O)*Y)]}zf.invert=function(T,L){T/=b,L/=b;var P=T*T,R=L*L,Y=P+R,O=x*x;return[T?(Y-1+V((1-Y)*(1-Y)+4*P))/(2*T)*b:0,ir(function(Z){return Y*(x*p(Z)-2*Z)*x+4*Z*Z*(L-p(Z))+2*x*Z-O*L},0)]};function t0(){return r.geoProjection(zf).scale(127.267)}var Nf=1.0148,wu=.23185,Ff=-.14499,If=.02406,Yv=Nf,Hf=5*wu,wi=7*Ff,Bf=9*If,Yl=1.790857183;function Of(T,L){var P=L*L;return[T,L*(Nf+P*P*(wu+P*(Ff+If*P)))]}Of.invert=function(T,L){L>Yl?L=Yl:L<-Yl&&(L=-Yl);var P=L,R;do{var Y=P*P;P-=R=(P*(Nf+Y*Y*(wu+Y*(Ff+If*Y)))-L)/(Yv+Y*Y*(Hf+Y*(wi+Bf*Y)))}while(n(R)>_);return[T,P]};function n0(){return r.geoProjection(Of).scale(139.319)}function el(T,L){if(n(L)<_)return[T,0];var P=y(L),R=T*p(L);return[p(R)/P,L+(1-o(R))/P]}el.invert=function(T,L){if(n(L)<_)return[T,0];var P=T*T+L*L,R=L*.5,Y=10,O;do{var Z=y(R),se=1/o(R),ve=P-2*L*R+R*R;R-=O=(Z*ve+2*(R-L))/(2+ve*se*se+2*(R-L)*Z)}while(n(O)>_&&--Y>0);return Z=y(R),[(n(L)=0;)if(R=L[se],P[0]===R[0]&&P[1]===R[1]){if(O)return[O,P];O=P}}}function l0(T){for(var L=T.length,P=[],R=T[L-1],Y=0;Y0?[-R[0],0]:[180-R[0],180])};var L=Mu.map(function(P){return{face:P,project:T(P)}});return[-1,0,0,1,0,1,4,5].forEach(function(P,R){var Y=L[P];Y&&(Y.children||(Y.children=[])).push(L[R])}),Gl(L[0],function(P,R){return L[P<-x/2?R<0?6:4:P<0?R<0?2:0:PR^Fe>R&&P<(Le-le)*(R-de)/(Fe-de)+le&&(Y=!Y)}return Y}function ku(T,L){var P=L.stream,R;if(!P)throw new Error("invalid projection");switch(T&&T.type){case"Feature":R=c0;break;case"FeatureCollection":R=f0;break;default:R=Su;break}return R(T,P)}function f0(T,L){return{type:"FeatureCollection",features:T.features.map(function(P){return c0(P,L)})}}function c0(T,L){return{type:"Feature",id:T.id,properties:T.properties,geometry:Su(T.geometry,L)}}function Uf(T,L){return{type:"GeometryCollection",geometries:T.geometries.map(function(P){return Su(P,L)})}}function Su(T,L){if(!T)return null;if(T.type==="GeometryCollection")return Uf(T,L);var P;switch(T.type){case"Point":P=Wl;break;case"MultiPoint":P=Wl;break;case"LineString":P=Cu;break;case"MultiLineString":P=Cu;break;case"Polygon":P=Os;break;case"MultiPolygon":P=Os;break;case"Sphere":P=Os;break;default:return null}return r.geoStream(T,L(P)),P.result()}var Wn=[],li=[],Wl={point:function(T,L){Wn.push([T,L])},result:function(){var T=Wn.length?Wn.length<2?{type:"Point",coordinates:Wn[0]}:{type:"MultiPoint",coordinates:Wn}:null;return Wn=[],T}},Cu={lineStart:Tu,point:function(T,L){Wn.push([T,L])},lineEnd:function(){Wn.length&&(li.push(Wn),Wn=[])},result:function(){var T=li.length?li.length<2?{type:"LineString",coordinates:li[0]}:{type:"MultiLineString",coordinates:li}:null;return li=[],T}},Os={polygonStart:Tu,lineStart:Tu,point:function(T,L){Wn.push([T,L])},lineEnd:function(){var T=Wn.length;if(T){do Wn.push(Wn[0].slice());while(++T<4);li.push(Wn),Wn=[]}},polygonEnd:Tu,result:function(){if(!li.length)return null;var T=[],L=[];return li.forEach(function(P){Bs(P)?T.push([P]):L.push(P)}),L.forEach(function(P){var R=P[0];T.some(function(Y){if(u0(Y[0],R))return Y.push(P),!0})||T.push([P])}),li=[],T.length?T.length>1?{type:"MultiPolygon",coordinates:T}:{type:"Polygon",coordinates:T[0]}:null}};function Yf(T){var L=T(b,0)[0]-T(-b,0)[0];function P(R,Y){var O=n(R)0?R-x:R+x,Y),se=(Z[0]-Z[1])*k,ve=(Z[0]+Z[1])*k;if(O)return[se,ve];var le=L*k,de=se>0^ve>0?-1:1;return[de*se-m(ve)*le,de*ve-m(se)*le]}return T.invert&&(P.invert=function(R,Y){var O=(R+Y)*k,Z=(Y-R)*k,se=n(O)<.5*L&&n(Z)<.5*L;if(!se){var ve=L*k,le=O>0^Z>0?-1:1,de=-le*R+(Z>0?1:-1)*ve,xe=-le*Y+(O>0?1:-1)*ve;O=(-de-xe)*k,Z=(de-xe)*k}var Le=T.invert(O,Z);return se||(Le[0]+=O>0?x:-x),Le}),r.geoProjection(P).rotate([-90,-90,45]).clipAngle(180-.001)}function I(){return Yf(cu).scale(176.423)}function J(){return Yf(lo).scale(111.48)}function ce(T,L){if(!(0<=(L=+L)&&L<=20))throw new Error("invalid digits");function P(le){var de=le.length,xe=2,Le=new Array(de);for(Le[0]=+le[0].toFixed(L),Le[1]=+le[1].toFixed(L);xe2||Fe[0]!=de[0]||Fe[1]!=de[1])&&(xe.push(Fe),de=Fe)}return xe.length===1&&le.length>1&&xe.push(P(le[le.length-1])),xe}function O(le){return le.map(Y)}function Z(le){if(le==null)return le;var de;switch(le.type){case"GeometryCollection":de={type:"GeometryCollection",geometries:le.geometries.map(Z)};break;case"Point":de={type:"Point",coordinates:P(le.coordinates)};break;case"MultiPoint":de={type:le.type,coordinates:R(le.coordinates)};break;case"LineString":de={type:le.type,coordinates:Y(le.coordinates)};break;case"MultiLineString":case"Polygon":de={type:le.type,coordinates:O(le.coordinates)};break;case"MultiPolygon":de={type:"MultiPolygon",coordinates:le.coordinates.map(O)};break;default:return le}return le.bbox!=null&&(de.bbox=le.bbox),de}function se(le){var de={type:"Feature",properties:le.properties,geometry:Z(le.geometry)};return le.id!=null&&(de.id=le.id),le.bbox!=null&&(de.bbox=le.bbox),de}if(T!=null)switch(T.type){case"Feature":return se(T);case"FeatureCollection":{var ve={type:"FeatureCollection",features:T.features.map(se)};return T.bbox!=null&&(ve.bbox=T.bbox),ve}default:return Z(T)}return T}function oe(T){var L=p(T);function P(R,Y){var O=L?y(R*L/2)/L:R/2;if(!Y)return[2*O,-T];var Z=2*a(O*p(Y)),se=1/y(Y);return[p(Z)*se,Y+(1-o(Z))*se-T]}return P.invert=function(R,Y){if(n(Y+=T)<_)return[L?2*a(L*R/2)/L:R,0];var O=R*R+Y*Y,Z=0,se=10,ve;do{var le=y(Z),de=1/o(Z),xe=O-2*Y*Z+Z*Z;Z-=ve=(le*xe+2*(Z-Y))/(2+xe*de*de+2*(Z-Y)*le)}while(n(ve)>_&&--se>0);var Le=R*(le=y(Z)),Fe=y(n(Y)0?b:-b)*(ve+Y*(de-Z)/2+Y*Y*(de-2*ve+Z)/2)]}je.invert=function(T,L){var P=L/b,R=P*90,Y=v(18,n(R/5)),O=f(0,s(Y));do{var Z=He[O][1],se=He[O+1][1],ve=He[v(19,O+2)][1],le=ve-Z,de=ve-2*se+Z,xe=2*(n(P)-se)/le,Le=de/le,Fe=xe*(1-Le*xe*(1-2*Le*xe));if(Fe>=0||O===1){R=(L>=0?5:-5)*(Fe+Y);var tr=50,cr;do Y=v(18,n(R)/5),O=s(Y),Fe=Y-O,Z=He[O][1],se=He[O+1][1],ve=He[v(19,O+2)][1],R-=(cr=(L>=0?b:-b)*(se+Fe*(ve-Z)/2+Fe*Fe*(ve-2*se+Z)/2)-L)*F;while(n(cr)>C&&--tr>0);break}}while(--O>=0);var Tr=He[O][0],Zr=He[O+1][0],at=He[v(19,O+2)][0];return[T/(Zr+Fe*(at-Tr)/2+Fe*Fe*(at-2*Zr+Tr)/2),R*H]};function ar(){return r.geoProjection(je).scale(152.63)}function sr(T){function L(P,R){var Y=o(R),O=(T-1)/(T-Y*o(P));return[O*Y*p(P),O*p(R)]}return L.invert=function(P,R){var Y=P*P+R*R,O=V(Y),Z=(T-V(1-Y*(T+1)/(T-1)))/((T-1)/O+O/(T-1));return[i(P*Z,O*V(1-Z*Z)),O?B(R*Z/O):0]},L}function _r(T,L){var P=sr(T);if(!L)return P;var R=o(L),Y=p(L);function O(Z,se){var ve=P(Z,se),le=ve[1],de=le*Y/(T-1)+R;return[ve[0]*R/de,le/de]}return O.invert=function(Z,se){var ve=(T-1)/(T-1-se*Y);return P.invert(ve*Z,ve*se*R)},O}function Qe(){var T=2,L=0,P=r.geoProjectionMutator(_r),R=P(T,L);return R.distance=function(Y){return arguments.length?P(T=+Y,L):T},R.tilt=function(Y){return arguments.length?P(T,L=Y*H):L*F},R.scale(432.147).clipAngle(X(1/T)*F-1e-6)}var hr=1e-4,fr=1e4,Ar=-180,Lr=Ar+hr,et=180,jr=et-hr,tt=-90,nt=tt+hr,Dr=90,Ir=Dr-hr;function it(T){return T.length>0}function pt(T){return Math.floor(T*fr)/fr}function Yt(T){return T===tt||T===Dr?[0,T]:[Ar,pt(T)]}function en(T){var L=T[0],P=T[1],R=!1;return L<=Lr?(L=Ar,R=!0):L>=jr&&(L=et,R=!0),P<=nt?(P=tt,R=!0):P>=Ir&&(P=Dr,R=!0),R?[L,P]:T}function Wt(T){return T.map(en)}function gn(T,L,P){for(var R=0,Y=T.length;R=jr||de<=nt||de>=Ir){O[Z]=en(ve);for(var xe=Z+1;xeLr&&Fent&&tr=se)break;P.push({index:-1,polygon:L,ring:O=O.slice(xe-1)}),O[0]=Yt(O[0][1]),Z=-1,se=O.length}}}}function qt(T){var L,P=T.length,R={},Y={},O,Z,se,ve,le;for(L=0;L0?x-se:se)*F],le=r.geoProjection(T(Z)).rotate(ve),de=r.geoRotation(ve),xe=le.center;return delete le.rotate,le.center=function(Le){return arguments.length?xe(de(Le)):de.invert(xe())},le.clipAngle(90)}function pa(T){var L=o(T);function P(R,Y){var O=r.geoGnomonicRaw(R,Y);return O[0]*=L,O}return P.invert=function(R,Y){return r.geoGnomonicRaw.invert(R/L,Y)},P}function Xa(){return Wi([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Wi(T,L){return Bn(pa,T,L)}function Ai(T){if(!(T*=2))return r.geoAzimuthalEquidistantRaw;var L=-T/2,P=-L,R=T*T,Y=y(P),O=.5/p(P);function Z(se,ve){var le=X(o(ve)*o(se-L)),de=X(o(ve)*o(se-P)),xe=ve<0?-1:1;return le*=le,de*=de,[(le-de)/(2*T),xe*V(4*R*de-(R-le+de)*(R-le+de))/(2*T)]}return Z.invert=function(se,ve){var le=ve*ve,de=o(V(le+(Le=se+L)*Le)),xe=o(V(le+(Le=se+P)*Le)),Le,Fe;return[i(Fe=de-xe,Le=(de+xe)*Y),(ve<0?-1:1)*X(V(Le*Le+Fe*Fe)*O)]},Z}function nl(){return si([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function si(T,L){return Bn(Ai,T,L)}function al(T,L){if(n(L)<_)return[T,0];var P=n(L/b),R=B(P);if(n(T)<_||n(n(L)-b)<_)return[0,m(L)*x*y(R/2)];var Y=o(R),O=n(x/T-T/x)/2,Z=O*O,se=Y/(P+Y-1),ve=se*(2/P-1),le=ve*ve,de=le+Z,xe=se-le,Le=Z+se;return[m(T)*x*(O*xe+V(Z*xe*xe-de*(se*se-le)))/de,m(L)*x*(ve*Le-O*V((Z+1)*de-Le*Le))/de]}al.invert=function(T,L){if(n(L)<_)return[T,0];if(n(T)<_)return[0,b*p(2*a(L/x))];var P=(T/=x)*T,R=(L/=x)*L,Y=P+R,O=Y*Y,Z=-n(L)*(1+Y),se=Z-2*R+P,ve=-2*Z+1+2*R+O,le=R/ve+(2*se*se*se/(ve*ve*ve)-9*Z*se/(ve*ve))/27,de=(Z-se*se/(3*ve))/ve,xe=2*V(-de/3),Le=X(3*le/(de*xe))/3;return[x*(Y-1+V(1+2*(P-R)+O))/(2*T),m(L)*x*(-xe*o(Le+x/3)-se/(3*ve))]};function Zl(){return r.geoProjection(al).scale(79.4183)}function Lu(T,L){if(n(L)<_)return[T,0];var P=n(L/b),R=B(P);if(n(T)<_||n(n(L)-b)<_)return[0,m(L)*x*y(R/2)];var Y=o(R),O=n(x/T-T/x)/2,Z=O*O,se=Y*(V(1+Z)-O*Y)/(1+Z*P*P);return[m(T)*x*se,m(L)*x*V(1-se*(2*O+se))]}Lu.invert=function(T,L){if(!T)return[0,b*p(2*a(L/x))];var P=n(T/x),R=(1-P*P-(L/=x)*L)/(2*P),Y=R*R,O=V(Y+1);return[m(T)*x*(O-R),m(L)*b*p(2*i(V((1-2*R*P)*(R+O)-P),V(O+R+P)))]};function v0(){return r.geoProjection(Lu).scale(79.4183)}function h0(T,L){if(n(L)<_)return[T,0];var P=L/b,R=B(P);if(n(T)<_||n(n(L)-b)<_)return[0,x*y(R/2)];var Y=(x/T-T/x)/2,O=P/(1+o(R));return[x*(m(T)*V(Y*Y+1-O*O)-Y),x*O]}h0.invert=function(T,L){if(!L)return[T,0];var P=L/x,R=(x*x*(1-P*P)-T*T)/(2*x*T);return[T?x*(m(T)*V(R*R+1)-R):0,b*p(2*a(P))]};function Uh(){return r.geoProjection(h0).scale(79.4183)}function Gf(T,L){if(!L)return[T,0];var P=n(L);if(!T||P===b)return[0,L];var R=P/b,Y=R*R,O=(8*R-Y*(Y+2)-5)/(2*Y*(R-1)),Z=O*O,se=R*O,ve=Y+Z+2*se,le=R+3*O,de=T/b,xe=de+1/de,Le=m(n(T)-b)*V(xe*xe-4),Fe=Le*Le,tr=ve*(Y+Z*Fe-1)+(1-Y)*(Y*(le*le+4*Z)+12*se*Z+4*Z*Z),cr=(Le*(ve+Z-1)+2*V(tr))/(4*ve+Fe);return[m(T)*b*cr,m(L)*b*V(1+Le*n(cr)-cr*cr)]}Gf.invert=function(T,L){var P;if(!T||!L)return[T,L];L/=x;var R=m(T)*T/b,Y=(R*R-1+4*L*L)/n(R),O=Y*Y,Z=2*L,se=50;do{var ve=Z*Z,le=(8*Z-ve*(ve+2)-5)/(2*ve*(Z-1)),de=(3*Z-ve*Z-10)/(2*ve*Z),xe=le*le,Le=Z*le,Fe=Z+le,tr=Fe*Fe,cr=Z+3*le,Tr=tr*(ve+xe*O-1)+(1-ve)*(ve*(cr*cr+4*xe)+xe*(12*Le+4*xe)),Zr=-2*Fe*(4*Le*xe+(1-4*ve+3*ve*ve)*(1+de)+xe*(-6+14*ve-O+(-8+8*ve-2*O)*de)+Le*(-8+12*ve+(-10+10*ve-O)*de)),at=V(Tr),ot=Y*(tr+xe-1)+2*at-R*(4*tr+O),st=Y*(2*le*de+2*Fe*(1+de))+Zr/at-8*Fe*(Y*(-1+xe+tr)+2*at)*(1+de)/(O+4*tr);Z-=P=ot/st}while(P>_&&--se>0);return[m(T)*(V(Y*Y+4)+Y)*x/4,b*Z]};function Zi(){return r.geoProjection(Gf).scale(127.16)}function Yh(T,L,P,R,Y){function O(Z,se){var ve=P*p(R*se),le=V(1-ve*ve),de=V(2/(1+le*o(Z*=Y)));return[T*le*de*p(Z),L*ve*de]}return O.invert=function(Z,se){var ve=Z/T,le=se/L,de=V(ve*ve+le*le),xe=2*B(de/2);return[i(Z*y(xe),T*de)/Y,de&&B(se*p(xe)/(L*P*de))/R]},O}function Gh(T,L,P,R){var Y=x/3;T=f(T,_),L=f(L,_),T=v(T,b),L=v(L,x-_),P=f(P,0),P=v(P,100-_),R=f(R,_);var O=P/100+1,Z=R/100,se=X(O*o(Y))/Y,ve=p(T)/p(se*b),le=L/x,de=V(Z*p(T/2)/p(L/2)),xe=de/V(le*ve*se),Le=1/(de*V(le*ve*se));return Yh(xe,Le,ve,se,le)}function d0(){var T=65*H,L=60*H,P=20,R=200,Y=r.geoProjectionMutator(Gh),O=Y(T,L,P,R);return O.poleline=function(Z){return arguments.length?Y(T=+Z*H,L,P,R):T*F},O.parallels=function(Z){return arguments.length?Y(T,L=+Z*H,P,R):L*F},O.inflation=function(Z){return arguments.length?Y(T,L,P=+Z,R):P},O.ratio=function(Z){return arguments.length?Y(T,L,P,R=+Z):R},O.scale(163.775)}function Xv(){return d0().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var Vh=4*x+3*V(3),Wh=2*V(2*x*V(3)/Vh),Zh=vr(Wh*V(3)/x,Wh,Vh/6);function p0(){return r.geoProjection(Zh).scale(176.84)}function Vf(T,L){return[T*V(1-3*L*L/(x*x)),L]}Vf.invert=function(T,L){return[T/V(1-3*L*L/(x*x)),L]};function Xh(){return r.geoProjection(Vf).scale(152.63)}function jv(T,L){var P=o(L),R=o(T)*P,Y=1-R,O=o(T=i(p(T)*P,-p(L))),Z=p(T);return P=V(1-R*R),[Z*P-O*Y,-O*P-Z*Y]}jv.invert=function(T,L){var P=(T*T+L*L)/-2,R=V(-P*(2+P)),Y=L*P+T*R,O=T*P-L*R,Z=V(O*O+Y*Y);return[i(R*Y,Z*(1+P)),Z?-B(R*O/Z):0]};function _y(){return r.geoProjection(jv).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function Jv(T,L){var P=ze(T,L);return[(P[0]+T/b)/2,(P[1]+L)/2]}Jv.invert=function(T,L){var P=T,R=L,Y=25;do{var O=o(R),Z=p(R),se=p(2*R),ve=Z*Z,le=O*O,de=p(P),xe=o(P/2),Le=p(P/2),Fe=Le*Le,tr=1-le*xe*xe,cr=tr?X(O*xe)*V(Tr=1/tr):Tr=0,Tr,Zr=.5*(2*cr*O*Le+P/b)-T,at=.5*(cr*Z+R)-L,ot=.5*Tr*(le*Fe+cr*O*xe*ve)+.5/b,st=Tr*(de*se/4-cr*Z*Le),vt=.125*Tr*(se*Le-cr*Z*le*de),an=.5*Tr*(ve*xe+cr*Fe*O)+.5,Mn=st*vt-an*ot,Ft=(at*st-Zr*an)/Mn,zn=(Zr*vt-at*ot)/Mn;P-=Ft,R-=zn}while((n(Ft)>_||n(zn)>_)&&--Y>0);return[P,R]};function Ti(){return r.geoProjection(Jv).scale(158.837)}e.geoNaturalEarth=r.geoNaturalEarth1,e.geoNaturalEarthRaw=r.geoNaturalEarth1Raw,e.geoAiry=qe,e.geoAiryRaw=he,e.geoAitoff=Ne,e.geoAitoffRaw=ze,e.geoArmadillo=Ce,e.geoArmadilloRaw=Ze,e.geoAugust=ue,e.geoAugustRaw=Je,e.geoBaker=U,e.geoBakerRaw=pe,e.geoBerghaus=$,e.geoBerghausRaw=Q,e.geoBertin1953=nr,e.geoBertin1953Raw=Oe,e.geoBoggs=Xe,e.geoBoggsRaw=Ue,e.geoBonne=br,e.geoBonneRaw=Ke,e.geoBottomley=mr,e.geoBottomleyRaw=Mr,e.geoBromley=kr,e.geoBromleyRaw=pr,e.geoChamberlin=We,e.geoChamberlinRaw=_e,e.geoChamberlinAfrica=$e,e.geoCollignon=Vr,e.geoCollignonRaw=qr,e.geoCraig=lt,e.geoCraigRaw=Hr,e.geoCraster=St,e.geoCrasterRaw=Rt,e.geoCylindricalEqualArea=Fn,e.geoCylindricalEqualAreaRaw=hn,e.geoCylindricalStereographic=jt,e.geoCylindricalStereographicRaw=$n,e.geoEckert1=un,e.geoEckert1Raw=cn,e.geoEckert2=aa,e.geoEckert2Raw=Kt,e.geoEckert3=Qt,e.geoEckert3Raw=rt,e.geoEckert4=dn,e.geoEckert4Raw=Ct,e.geoEckert5=tn,e.geoEckert5Raw=pn,e.geoEckert6=ha,e.geoEckert6Raw=fn,e.geoEisenlohr=da,e.geoEisenlohrRaw=Na,e.geoFahey=In,e.geoFaheyRaw=It,e.geoFoucaut=io,e.geoFoucautRaw=pi,e.geoFoucautSinusoidal=ms,e.geoFoucautSinusoidalRaw=gi,e.geoGilbert=ys,e.geoGingery=Uo,e.geoGingeryRaw=Oo,e.geoGinzburg4=Lt,e.geoGinzburg4Raw=Kr,e.geoGinzburg5=Br,e.geoGinzburg5Raw=Ht,e.geoGinzburg6=nn,e.geoGinzburg6Raw=Vn,e.geoGinzburg8=At,e.geoGinzburg8Raw=Dn,e.geoGinzburg9=Yo,e.geoGinzburg9Raw=Wa,e.geoGringorten=Vo,e.geoGringortenRaw=cu,e.geoGuyou=bs,e.geoGuyouRaw=lo,e.geoHammer=Ie,e.geoHammerRaw=Te,e.geoHammerRetroazimuthal=_s,e.geoHammerRetroazimuthalRaw=Mf,e.geoHealpix=Nl,e.geoHealpixRaw=so,e.geoHill=Xc,e.geoHillRaw=Tf,e.geoHomolosine=Fv,e.geoHomolosineRaw=Ts,e.geoHufnagel=kf,e.geoHufnagelRaw=Xo,e.geoHyperelliptical=co,e.geoHyperellipticalRaw=fo,e.geoInterrupt=Ui,e.geoInterruptedBoggs=Hv,e.geoInterruptedHomolosine=jo,e.geoInterruptedMollweide=$o,e.geoInterruptedMollweideHemispheres=ks,e.geoInterruptedSinuMollweide=Ss,e.geoInterruptedSinusoidal=Ko,e.geoKavrayskiy7=Bl,e.geoKavrayskiy7Raw=Hl,e.geoLagrange=gu,e.geoLagrangeRaw=pu,e.geoLarrivee=yu,e.geoLarriveeRaw=mu,e.geoLaskowski=Kn,e.geoLaskowskiRaw=Fa,e.geoLittrow=Gi,e.geoLittrowRaw=Aa,e.geoLoximuthal=Qo,e.geoLoximuthalRaw=Ls,e.geoMiller=Cf,e.geoMillerRaw=Ol,e.geoModifiedStereographic=xi,e.geoModifiedStereographicRaw=$c,e.geoModifiedStereographicAlaska=Ef,e.geoModifiedStereographicGs48=Kc,e.geoModifiedStereographicGs50=Qc,e.geoModifiedStereographicMiller=qs,e.geoModifiedStereographicLee=Ds,e.geoMollweide=yr,e.geoMollweideRaw=rr,e.geoMtFlatPolarParabolic=e0,e.geoMtFlatPolarParabolicRaw=_u,e.geoMtFlatPolarQuartic=Uv,e.geoMtFlatPolarQuarticRaw=Pf,e.geoMtFlatPolarSinusoidal=xu,e.geoMtFlatPolarSinusoidalRaw=ho,e.geoNaturalEarth2=Ps,e.geoNaturalEarth2Raw=Ul,e.geoNellHammer=Rf,e.geoNellHammerRaw=Rs,e.geoInterruptedQuarticAuthalic=r0,e.geoNicolosi=t0,e.geoNicolosiRaw=zf,e.geoPatterson=n0,e.geoPattersonRaw=Of,e.geoPolyconic=a0,e.geoPolyconicRaw=el,e.geoPolyhedral=Gl,e.geoPolyhedralButterfly=Ns,e.geoPolyhedralCollignon=Zv,e.geoPolyhedralWaterman=Is,e.geoProject=ku,e.geoGringortenQuincuncial=I,e.geoPeirceQuincuncial=J,e.geoPierceQuincuncial=J,e.geoQuantize=ce,e.geoQuincuncial=Yf,e.geoRectangularPolyconic=we,e.geoRectangularPolyconicRaw=oe,e.geoRobinson=ar,e.geoRobinsonRaw=je,e.geoSatellite=Qe,e.geoSatelliteRaw=_r,e.geoSinuMollweide=jc,e.geoSinuMollweideRaw=As,e.geoSinusoidal=er,e.geoSinusoidalRaw=Sr,e.geoStitch=mn,e.geoTimes=Gt,e.geoTimesRaw=Yr,e.geoTwoPointAzimuthal=Wi,e.geoTwoPointAzimuthalRaw=pa,e.geoTwoPointAzimuthalUsa=Xa,e.geoTwoPointEquidistant=si,e.geoTwoPointEquidistantRaw=Ai,e.geoTwoPointEquidistantUsa=nl,e.geoVanDerGrinten=Zl,e.geoVanDerGrintenRaw=al,e.geoVanDerGrinten2=v0,e.geoVanDerGrinten2Raw=Lu,e.geoVanDerGrinten3=Uh,e.geoVanDerGrinten3Raw=h0,e.geoVanDerGrinten4=Zi,e.geoVanDerGrinten4Raw=Gf,e.geoWagner=d0,e.geoWagner7=Xv,e.geoWagnerRaw=Gh,e.geoWagner4=p0,e.geoWagner4Raw=Zh,e.geoWagner6=Xh,e.geoWagner6Raw=Vf,e.geoWiechel=_y,e.geoWiechelRaw=jv,e.geoWinkel3=Ti,e.geoWinkel3Raw=Jv,Object.defineProperty(e,"__esModule",{value:!0})})});var cF=ne((Uve,fF)=>{"use strict";var va=kt(),i_=gr(),Zae=dt(),Dv=Math.PI/180,Hc=180/Math.PI,l_={cursor:"pointer"},s_={cursor:"auto"};function Xae(e,r){var t=e.projection,n;return r._isScoped?n=jae:r._isClipped?n=$ae:n=Jae,n(e,t)}fF.exports=Xae;function u_(e,r){return va.behavior.zoom().translate(r.translate()).scale(r.scale())}function f_(e,r,t){var n=e.id,a=e.graphDiv,i=a.layout,o=i[n],l=a._fullLayout,s=l[n],u={},f={};function v(h,d){u[n+"."+h]=i_.nestedProperty(o,h).get(),Zae.call("_storeDirectGUIEdit",i,l._preGUI,u);var m=i_.nestedProperty(s,h);m.get()!==d&&(m.set(d),i_.nestedProperty(o,h).set(d),f[n+"."+h]=d)}t(v),v("projection.scale",r.scale()/e.fitScale),v("fitbounds",!1),a.emit("plotly_relayout",f)}function jae(e,r){var t=u_(e,r);function n(){va.select(this).style(l_)}function a(){r.scale(va.event.scale).translate(va.event.translate),e.render(!0);var l=r.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.center.lon":l[0],"geo.center.lat":l[1]})}function i(l){var s=r.invert(e.midPt);l("center.lon",s[0]),l("center.lat",s[1])}function o(){va.select(this).style(s_),f_(e,r,i)}return t.on("zoomstart",n).on("zoom",a).on("zoomend",o),t}function Jae(e,r){var t=u_(e,r),n=2,a,i,o,l,s,u,f,v,h;function d(x){return r.invert(x)}function m(x){var b=d(x);if(!b)return!0;var A=r(b);return Math.abs(A[0]-x[0])>n||Math.abs(A[1]-x[1])>n}function p(){va.select(this).style(l_),a=va.mouse(this),i=r.rotate(),o=r.translate(),l=i,s=d(a)}function y(){if(u=va.mouse(this),m(a)){t.scale(r.scale()),t.translate(r.translate());return}r.scale(va.event.scale),r.translate([o[0],va.event.translate[1]]),s?d(u)&&(v=d(u),f=[l[0]+(v[0]-s[0]),i[1],i[2]],r.rotate(f),l=f):(a=u,s=d(a)),h=!0,e.render(!0);var x=r.rotate(),b=r.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.center.lon":b[0],"geo.center.lat":b[1],"geo.projection.rotation.lon":-x[0]})}function _(){va.select(this).style(s_),h&&f_(e,r,C)}function C(x){var b=r.rotate(),A=r.invert(e.midPt);x("projection.rotation.lon",-b[0]),x("center.lon",A[0]),x("center.lat",A[1])}return t.on("zoomstart",p).on("zoom",y).on("zoomend",_),t}function $ae(e,r){var t={r:r.rotate(),k:r.scale()},n=u_(e,r),a=iie(n,"zoomstart","zoom","zoomend"),i=0,o=n.on,l;n.on("zoomstart",function(){va.select(this).style(l_);var h=va.mouse(this),d=r.rotate(),m=d,p=r.translate(),y=Kae(d);l=ay(r,h),o.call(n,"zoom",function(){var _=va.mouse(this);if(r.scale(t.k=va.event.scale),!l)h=_,l=ay(r,h);else if(ay(r,_)){r.rotate(d).translate(p);var C=ay(r,_),x=eie(l,C),b=tie(Qae(y,x)),A=t.r=rie(b,l,m);(!isFinite(A[0])||!isFinite(A[1])||!isFinite(A[2]))&&(A=m),r.rotate(A),m=A}u(a.of(this,arguments))}),s(a.of(this,arguments))}).on("zoomend",function(){va.select(this).style(s_),o.call(n,"zoom",null),f(a.of(this,arguments)),f_(e,r,v)}).on("zoom.redraw",function(){e.render(!0);var h=r.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function s(h){i++||h({type:"zoomstart"})}function u(h){h({type:"zoom"})}function f(h){--i||h({type:"zoomend"})}function v(h){var d=r.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return va.rebind(n,a,"on")}function ay(e,r){var t=e.invert(r);return t&&isFinite(t[0])&&isFinite(t[1])&&nie(t)}function Kae(e){var r=.5*e[0]*Dv,t=.5*e[1]*Dv,n=.5*e[2]*Dv,a=Math.sin(r),i=Math.cos(r),o=Math.sin(t),l=Math.cos(t),s=Math.sin(n),u=Math.cos(n);return[i*l*u+a*o*s,a*l*u-i*o*s,i*o*u+a*l*s,i*l*s-a*o*u]}function Qae(e,r){var t=e[0],n=e[1],a=e[2],i=e[3],o=r[0],l=r[1],s=r[2],u=r[3];return[t*o-n*l-a*s-i*u,t*l+n*o+a*u-i*s,t*s-n*u+a*o+i*l,t*u+n*s-a*l+i*o]}function eie(e,r){if(!(!e||!r)){var t=aie(e,r),n=Math.sqrt(uF(t,t)),a=.5*Math.acos(Math.max(-1,Math.min(1,uF(e,r)))),i=Math.sin(a)/n;return n&&[Math.cos(a),t[2]*i,-t[1]*i,t[0]*i]}}function rie(e,r,t){var n=o_(r,2,e[0]);n=o_(n,1,e[1]),n=o_(n,0,e[2]-t[2]);var a=r[0],i=r[1],o=r[2],l=n[0],s=n[1],u=n[2],f=Math.atan2(i,a)*Hc,v=Math.sqrt(a*a+i*i),h,d;Math.abs(s)>v?(d=(s>0?90:-90)-f,h=0):(d=Math.asin(s/v)*Hc-f,h=Math.sqrt(v*v-s*s));var m=180-d-2*f,p=(Math.atan2(u,l)-Math.atan2(o,h))*Hc,y=(Math.atan2(u,l)-Math.atan2(o,-h))*Hc,_=lF(t[0],t[1],d,p),C=lF(t[0],t[1],m,y);return _<=C?[d,p,t[2]]:[m,y,t[2]]}function lF(e,r,t,n){var a=sF(t-e),i=sF(n-r);return Math.sqrt(a*a+i*i)}function sF(e){return(e%360+540)%360-180}function o_(e,r,t){var n=t*Dv,a=e.slice(),i=r===0?1:0,o=r===2?1:2,l=Math.cos(n),s=Math.sin(n);return a[i]=e[i]*l-e[o]*s,a[o]=e[o]*l+e[i]*s,a}function tie(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*Hc,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*Hc,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*Hc]}function nie(e){var r=e[0]*Dv,t=e[1]*Dv,n=Math.cos(t);return[n*Math.cos(r),n*Math.sin(r),Math.sin(t)]}function uF(e,r){for(var t=0,n=0,a=e.length;n{"use strict";var uu=kt(),h_=a_(),oie=h_.geoPath,lie=h_.geoDistance,sie=oF(),uie=dt(),Fh=gr(),fie=Fh.strTranslate,iy=zt(),Nh=sn(),vF=ss(),cie=ua(),v_=Cn(),hF=Ju().getAutoRange,c_=To(),vie=nu().prepSelect,hie=nu().clearOutline,die=nu().selectOnClick,pie=cF(),di=Ph(),gie=Km(),pF=Um(),mie=U4().feature;function gF(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var Dl=gF.prototype;mF.exports=function(r){return new gF(r)};Dl.plot=function(e,r,t,n){var a=this;if(n)return a.update(e,r,!0);a._geoCalcData=e,a._fullLayout=r;var i=r[this.id],o=[],l=!1;for(var s in di.layerNameToAdjective)if(s!=="frame"&&i["show"+s]){l=!0;break}for(var u=!1,f=0;f0&&o._module.calcGeoJSON(i,r)}if(!t){var l=this.updateProjection(e,r);if(l)return;(!this.viewInitial||this.scope!==n.scope)&&this.saveViewInitial(n)}this.scope=n.scope,this.updateBaseLayers(r,n),this.updateDims(r,n),this.updateFx(r,n),cie.generalUpdatePerTraceModule(this.graphDiv,this,e,n);var s=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=s.selectAll(".point"),this.dataPoints.text=s.selectAll("text"),this.dataPaths.line=s.selectAll(".js-line");var u=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=u.selectAll("path"),this._render()};Dl.updateProjection=function(e,r){var t=this.graphDiv,n=r[this.id],a=r._size,i=n.domain,o=n.projection,l=n.lonaxis,s=n.lataxis,u=l._ax,f=s._ax,v=this.projection=yie(n),h=[[a.l+a.w*i.x[0],a.t+a.h*(1-i.y[1])],[a.l+a.w*i.x[1],a.t+a.h*(1-i.y[0])]],d=n.center||{},m=o.rotation||{},p=l.range||[],y=s.range||[];if(n.fitbounds){u._length=h[1][0]-h[0][0],f._length=h[1][1]-h[0][1],u.range=hF(t,u),f.range=hF(t,f);var _=(u.range[0]+u.range[1])/2,C=(f.range[0]+f.range[1])/2;if(n._isScoped)d={lon:_,lat:C};else if(n._isClipped){d={lon:_,lat:C},m={lon:_,lat:C,roll:m.roll};var x=o.type,b=di.lonaxisSpan[x]/2||180,A=di.lataxisSpan[x]/2||90;p=[_-b,_+b],y=[C-A,C+A]}else d={lon:_,lat:C},m={lon:_,lat:m.lat,roll:m.roll}}v.center([d.lon-m.lon,d.lat-m.lat]).rotate([-m.lon,-m.lat,m.roll]).parallels(o.parallels);var k=dF(p,y);v.fitExtent(h,k);var M=this.bounds=v.getBounds(k),D=this.fitScale=v.scale(),z=v.translate();if(n.fitbounds){var F=v.getBounds(dF(u.range,f.range)),H=Math.min((M[1][0]-M[0][0])/(F[1][0]-F[0][0]),(M[1][1]-M[0][1])/(F[1][1]-F[0][1]));isFinite(H)?v.scale(H*D):Fh.warn("Something went wrong during"+this.id+"fitbounds computations.")}else v.scale(o.scale*D);var W=this.midPt=[(M[0][0]+M[1][0])/2,(M[0][1]+M[1][1])/2];if(v.translate([z[0]+(W[0]-z[0]),z[1]+(W[1]-z[1])]).clipExtent(M),n._isAlbersUsa){var B=v([d.lon,d.lat]),X=v.translate();v.translate([X[0]-(B[0]-X[0]),X[1]-(B[1]-X[1])])}};Dl.updateBaseLayers=function(e,r){var t=this,n=t.topojson,a=t.layers,i=t.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function l(h){return!!di.lineLayers[h]}function s(h){return!!di.fillLayers[h]}var u=this.hasChoropleth?di.layersForChoropleth:di.layers,f=u.filter(function(h){return l(h)||s(h)?r["show"+h]:o(h)?r[h].showgrid:!0}),v=t.framework.selectAll(".layer").data(f,String);v.exit().each(function(h){delete a[h],delete i[h],uu.select(this).remove()}),v.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=a[h]=uu.select(this);h==="bg"?t.bgRect=d.append("rect").style("pointer-events","all"):o(h)?i[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):l(h)?i[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):s(h)&&(i[h]=d.append("path").style("stroke","none"))}),v.order(),v.each(function(h){var d=i[h],m=di.layerNameToAdjective[h];h==="frame"?d.datum(di.sphereSVG):l(h)||s(h)?d.datum(mie(n,n.objects[h])):o(h)&&d.datum(bie(h,r,e)).call(iy.stroke,r[h].gridcolor).call(Nh.dashLine,r[h].griddash,r[h].gridwidth),l(h)?d.call(iy.stroke,r[m+"color"]).call(Nh.dashLine,"",r[m+"width"]):s(h)&&d.call(iy.fill,r[m+"color"])})};Dl.updateDims=function(e,r){var t=this.bounds,n=(r.framewidth||0)/2,a=t[0][0]-n,i=t[0][1]-n,o=t[1][0]-a+n,l=t[1][1]-i+n;Nh.setRect(this.clipRect,a,i,o,l),this.bgRect.call(Nh.setRect,a,i,o,l).call(iy.fill,r.bgcolor),this.xaxis._offset=a,this.xaxis._length=o,this.yaxis._offset=i,this.yaxis._length=l};Dl.updateFx=function(e,r){var t=this,n=t.graphDiv,a=t.bgRect,i=e.dragmode,o=e.clickmode;if(t.isStatic)return;function l(){var v=t.viewInitial,h={};for(var d in v)h[t.id+"."+d]=v[d];uie.call("_guiRelayout",n,h),n.emit("plotly_doubleclick",null)}function s(v){return t.projection.invert([v[0]+t.xaxis._offset,v[1]+t.yaxis._offset])}var u=function(v,h){if(h.isRect){var d=v.range={};d[t.id]=[s([h.xmin,h.ymin]),s([h.xmax,h.ymax])]}else{var m=v.lassoPoints={};m[t.id]=h.map(s)}},f={element:t.bgRect.node(),gd:n,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:u},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id,clickFn:function(v){v===2&&hie(n)}};i==="pan"?(a.node().onmousedown=null,a.call(pie(t,r)),a.on("dblclick.zoom",l),n._context._scrollZoom.geo||a.on("wheel.zoom",null)):(i==="select"||i==="lasso")&&(a.on(".zoom",null),f.prepFn=function(v,h,d){vie(v,h,d,f,i)},c_.init(f)),a.on("mousemove",function(){var v=t.projection.invert(Fh.getPositionFromD3Event());if(!v)return c_.unhover(n,uu.event);t.xaxis.p2c=function(){return v[0]},t.yaxis.p2c=function(){return v[1]},vF.hover(n,uu.event,t.id)}),a.on("mouseout",function(){n._dragging||c_.unhover(n,uu.event)}),a.on("click",function(){i!=="select"&&i!=="lasso"&&(o.indexOf("select")>-1&&die(uu.event,n,[t.xaxis],[t.yaxis],t.id,f),o.indexOf("event")>-1&&vF.click(n,uu.event))})};Dl.makeFramework=function(){var e=this,r=e.graphDiv,t=r._fullLayout,n="clip"+t._uid+e.id;e.clipDef=t._clips.append("clipPath").attr("id",n),e.clipRect=e.clipDef.append("rect"),e.framework=uu.select(e.container).append("g").attr("class","geo "+e.id).call(Nh.setClipUrl,n,r),e.project=function(a){var i=e.projection(a);return i?[i[0]-e.xaxis._offset,i[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(a){return e.project(a)[0]}},e.yaxis={_id:"y",c2p:function(a){return e.project(a)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},v_.setConvert(e.mockAxis,t)};Dl.saveViewInitial=function(e){var r=e.center||{},t=e.projection,n=t.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":t.scale};var a;e._isScoped?a={"center.lon":r.lon,"center.lat":r.lat}:e._isClipped?a={"projection.rotation.lon":n.lon,"projection.rotation.lat":n.lat}:a={"center.lon":r.lon,"center.lat":r.lat,"projection.rotation.lon":n.lon},Fh.extendFlat(this.viewInitial,a)};Dl.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};Dl._render=function(){var e=this.projection,r=e.getPath(),t;function n(i){var o=e(i.lonlat);return o?fie(o[0],o[1]):null}function a(i){return e.isLonLatOverEdges(i.lonlat)?"none":null}for(t in this.basePaths)this.basePaths[t].attr("d",r);for(t in this.dataPaths)this.dataPaths[t].attr("d",function(i){return r(i.geojson)});for(t in this.dataPoints)this.dataPoints[t].attr("display",a).attr("transform",n)};function yie(e){var r=e.projection,t=r.type,n=di.projNames[t];n="geo"+Fh.titleCase(n);for(var a=h_[n]||sie[n],i=a(),o=e._isSatellite?Math.acos(1/r.distance)*180/Math.PI:e._isClipped?di.lonaxisSpan[t]/2:null,l=["center","rotate","parallels","clipExtent"],s=function(v){return v?i:[]},u=0;um}else return!1},i.getPath=function(){return oie().projection(i)},i.getBounds=function(v){return i.getPath().bounds(v)},i.precision(di.precision),e._isSatellite&&i.tilt(r.tilt).distance(r.distance),o&&i.clipAngle(o-di.clipPad),i}function bie(e,r,t){var n=1e-6,a=2.5,i=r[e],o=di.scopeDefaults[r.scope],l,s,u;e==="lonaxis"?(l=o.lonaxisRange,s=o.lataxisRange,u=function(C,x){return[C,x]}):e==="lataxis"&&(l=o.lataxisRange,s=o.lonaxisRange,u=function(C,x){return[x,C]});var f={type:"linear",range:[l[0],l[1]-n],tick0:i.tick0,dtick:i.dtick};v_.setConvert(f,t);var v=v_.calcTicks(f);!r.isScoped&&e==="lonaxis"&&v.pop();for(var h=v.length,d=new Array(h),m=0;m0&&a<0&&(a+=360);var l=(a-n)/4;return{type:"Polygon",coordinates:[[[n,i],[n,o],[n+l,o],[n+2*l,o],[n+3*l,o],[a,o],[a,i],[a-l,i],[a-2*l,i],[a-3*l,i],[n,i]]]}}});var d_=ne((Gve,xF)=>{"use strict";var Pv=cl(),_ie=zm().attributes,xie=Kl().dash,Ev=Ph(),wie=_o().overrideAll,bF=Sd(),_F={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:Pv.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:xie},Mie=xF.exports=wie({domain:_ie({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:bF(Ev.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:bF(Ev.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:Pv.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:Ev.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:Ev.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:Ev.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:Ev.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:Pv.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:Pv.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:Pv.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:Pv.background},lonaxis:_F,lataxis:_F},"plot","from-root");Mie.uirevision={valType:"any",editType:"none"}});var MF=ne((Vve,wF)=>{"use strict";var Aie=gr(),Tie=bn(),kie=zm().defaults;wF.exports=function(r,t,n,a){var i=a.type,o=a.attributes,l=a.handleDefaults,s=a.partition||"x",u=t._subplots[i],f=u.length,v=f&&u[0].replace(/\d+$/,""),h,d;function m(C,x){return Aie.coerce(h,d,o,C,x)}for(var p=0;p{"use strict";var oy=gr(),Sie=MF(),Cie=p1().getSubplotData,ly=Ph(),Lie=d_(),AF=ly.axesNames;TF.exports=function(r,t,n){Sie(r,t,n,{type:"geo",attributes:Lie,handleDefaults:qie,fullData:n,partition:"y"})};function qie(e,r,t,n){var a=Cie(n.fullData,"geo",n.id),i=a.map(function(he){return he.index}),o=t("resolution"),l=t("scope"),s=ly.scopeDefaults[l],u=t("projection.type",s.projType),f=r._isAlbersUsa=u==="albers usa";f&&(l=r.scope="usa");var v=r._isScoped=l!=="world",h=r._isSatellite=u==="satellite",d=r._isConic=u.indexOf("conic")!==-1||u==="albers",m=r._isClipped=!!ly.lonaxisSpan[u];if(e.visible===!1){var p=oy.extendDeep({},r._template);p.showcoastlines=!1,p.showcountries=!1,p.showframe=!1,p.showlakes=!1,p.showland=!1,p.showocean=!1,p.showrivers=!1,p.showsubunits=!1,p.lonaxis&&(p.lonaxis.showgrid=!1),p.lataxis&&(p.lataxis.showgrid=!1),r._template=p}for(var y=t("visible"),_,C=0;C0&&B<0&&(B+=360);var X=(W+B)/2,V;if(!f){var re=v?s.projRotate:[X,0,0];V=t("projection.rotation.lon",re[0]),t("projection.rotation.lat",re[1]),t("projection.rotation.roll",re[2]),_=t("showcoastlines",!v&&y),_&&(t("coastlinecolor"),t("coastlinewidth")),_=t("showocean",y?void 0:!1),_&&t("oceancolor")}var te,K;if(f?(te=-96.6,K=38.7):(te=v?X:V,K=(H[0]+H[1])/2),t("center.lon",te),t("center.lat",K),h&&(t("projection.tilt"),t("projection.distance")),d){var ee=s.projParallels||[0,60];t("projection.parallels",ee)}t("projection.scale"),_=t("showland",y?void 0:!1),_&&t("landcolor"),_=t("showlakes",y?void 0:!1),_&&t("lakecolor"),_=t("showrivers",y?void 0:!1),_&&(t("rivercolor"),t("riverwidth")),_=t("showcountries",v&&l!=="usa"&&y),_&&(t("countrycolor"),t("countrywidth")),(l==="usa"||l==="north america"&&o===50)&&(t("showsubunits",y),t("subunitcolor"),t("subunitwidth")),v||(_=t("showframe",y),_&&(t("framecolor"),t("framewidth"))),t("bgcolor");var fe=t("fitbounds");fe&&(delete r.projection.scale,v?(delete r.center.lon,delete r.center.lat):m?(delete r.center.lon,delete r.center.lat,delete r.projection.rotation.lon,delete r.projection.rotation.lat,delete r.lonaxis.range,delete r.lataxis.range):(delete r.center.lon,delete r.center.lat,delete r.projection.rotation.lon))}});var p_=ne((Zve,LF)=>{"use strict";var Die=p1().getSubplotCalcData,Eie=gr().counterRegex,Pie=yF(),ps="geo",SF=Eie(ps),CF={};CF[ps]={valType:"subplotid",dflt:ps,editType:"calc"};function Rie(e){for(var r=e._fullLayout,t=e.calcdata,n=r._subplots[ps],a=0;a{"use strict";qF.exports={attributes:Eh(),supplyDefaults:lN(),colorbar:Pb(),formatLabels:fN(),calc:pN(),calcGeoJSON:t_().calcGeoJSON,plot:t_().plot,style:K4(),styleOnSelect:mh().styleOnSelect,hoverPoints:$N(),eventData:QN(),selectPoints:tF(),moduleType:"trace",name:"scattergeo",basePlotModule:p_(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var PF=ne((jve,EF)=>{"use strict";EF.exports=DF()});var sy=ne((Jve,NF)=>{"use strict";var Fie=Ru().hovertemplateAttrs,gf=Eh(),Iie=H0(),RF=bo(),Hie=cl().defaultLine,pf=la().extendFlat,zF=gf.marker.line;NF.exports=pf({locations:{valType:"data_array",editType:"calc"},locationmode:gf.locationmode,z:{valType:"data_array",editType:"calc"},geojson:pf({},gf.geojson,{}),featureidkey:gf.featureidkey,text:pf({},gf.text,{}),hovertext:pf({},gf.hovertext,{}),marker:{line:{color:pf({},zF.color,{dflt:Hie}),width:pf({},zF.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:gf.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:gf.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:pf({},RF.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:Fie(),showlegend:pf({},RF.showlegend,{dflt:!1})},Iie("",{cLetter:"z",editTypeOverride:"calc"}))});var IF=ne(($ve,FF)=>{"use strict";var uy=gr(),Bie=B0(),Oie=sy();FF.exports=function(r,t,n,a){function i(h,d){return uy.coerce(r,t,Oie,h,d)}var o=i("locations"),l=i("z");if(!(o&&o.length&&uy.isArrayOrTypedArray(l)&&l.length)){t.visible=!1;return}t._length=Math.min(o.length,l.length);var s=i("geojson"),u;(typeof s=="string"&&s!==""||uy.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);f==="geojson-id"&&i("featureidkey"),i("text"),i("hovertext"),i("hovertemplate");var v=i("marker.line.width");v&&i("marker.line.color"),i("marker.opacity"),Bie(r,t,a,i,{prefix:"",cLetter:"z"}),uy.coerceSelectionMarkerOpacity(t,i)}});var BF=ne((Kve,HF)=>{"use strict";HF.exports={min:"zmin",max:"zmax"}});var GF=ne((Qve,YF)=>{"use strict";var OF=Bt(),Uie=En().BADNUM,Yie=Qd(),Gie=vh(),Vie=Qg();function UF(e){return e&&typeof e=="string"}YF.exports=function(r,t){var n=t._length,a=new Array(n),i;t.geojson?i=function(f){return UF(f)||OF(f)}:i=UF;for(var o=0;o{"use strict";var Wie=kt(),Zie=zt(),g_=sn(),Xie=rp();function jie(e,r){r&&VF(e,r)}function VF(e,r){var t=r[0].trace,n=r[0].node3,a=n.selectAll(".choroplethlocation"),i=t.marker||{},o=i.line||{},l=Xie.makeColorScaleFuncFromTrace(t);a.each(function(s){Wie.select(this).attr("fill",l(s.z)).call(Zie.stroke,s.mlc||o.color).call(g_.dashLine,"",s.mlw||o.width||0).style("opacity",i.opacity)}),g_.selectedPointStyle(a,t)}function Jie(e,r){var t=r[0].node3,n=r[0].trace;n.selectedpoints?g_.selectedPointStyle(t.selectAll(".choroplethlocation"),n):VF(e,r)}WF.exports={style:jie,styleOnSelect:Jie}});var m_=ne((r1e,jF)=>{"use strict";var $ie=kt(),ZF=gr(),Rv=Km(),Kie=Um().getTopojsonFeatures,XF=Ju().findExtremes,Qie=fy().style;function eoe(e,r,t){var n=r.layers.backplot.select(".choroplethlayer");ZF.makeTraceGroups(n,t,"trace choropleth").each(function(a){var i=$ie.select(this),o=i.selectAll("path.choroplethlocation").data(ZF.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),Qie(e,a)})}function roe(e,r){for(var t=e[0].trace,n=r[t.geo],a=n._subplot,i=t.locationmode,o=t._length,l=i==="geojson-id"?Rv.extractTraceFeature(e):Kie(t,a.topojson),s=[],u=[],f=0;f{"use strict";var toe=Cn(),noe=sy(),aoe=gr().fillText;JF.exports=function(r,t,n){var a=r.cd,i=a[0].trace,o=r.subplot,l,s,u,f,v=[t,n],h=[t+360,n];for(s=0;s")}}});var QF=ne((n1e,KF)=>{"use strict";KF.exports=function(r,t,n,a,i){r.location=t.location,r.z=t.z;var o=a[i];return o.fIn&&o.fIn.properties&&(r.properties=o.fIn.properties),r.ct=o.ct,r}});var rI=ne((a1e,eI)=>{"use strict";eI.exports=function(r,t){var n=r.cd,a=r.xaxis,i=r.yaxis,o=[],l,s,u,f,v;if(t===!1)for(l=0;l{"use strict";tI.exports={attributes:sy(),supplyDefaults:IF(),colorbar:BF(),calc:GF(),calcGeoJSON:m_().calcGeoJSON,plot:m_().plot,style:fy().style,styleOnSelect:fy().styleOnSelect,hoverPoints:$F(),eventData:QF(),selectPoints:rI(),moduleType:"trace",name:"choropleth",basePlotModule:p_(),categories:["geo","noOpacity","showLegend"],meta:{}}});var iI=ne((o1e,aI)=>{"use strict";aI.exports=nI()});var Ga=ne((l1e,lI)=>{"use strict";var oI=Object.getOwnPropertySymbols,ooe=Object.prototype.hasOwnProperty,loe=Object.prototype.propertyIsEnumerable;function soe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function uoe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var n=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(n.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(i){a[i]=i}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}lI.exports=uoe()?Object.assign:function(e,r){for(var t,n=soe(e),a,i=1;i{var vy=Ga();function sI(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}vy(sI.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,n,a){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,a):n)||this.instance(),n.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var n="",a=0;t>0;){var i=t%10;n=(i===0?"":e[i]+r[a])+n,a++,t=Math.floor(t/10)}return n.indexOf(e[1]+r[1])===0&&(n=n.substr(1)),n||e[0]}}});function y_(e,r,t,n){if(this._calendar=e,this._year=r,this._month=t,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function cy(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}vy(y_.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Tt.local.differentCalendars||Tt.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+cy(Math.abs(this.year()),4)+"-"+cy(this.month(),2)+"-"+cy(this.day(),2)}});function b_(){this.shortYearCutoff="+10"}vy(b_.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new y_(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Tt.local.invalidYear||Tt.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Tt.local.invalidYear||Tt.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+cy(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Tt.local.invalidYear||Tt.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Tt.local.invalidMonth||Tt.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Tt.local.invalidMonth||Tt.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Tt.local.invalidYear||Tt.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var n=this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var n=e.toJD()+r*(t==="w"?this.daysInWeek():1),a=e.calendar().fromJD(n);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),a=e.day(),l=function(f){for(;ov-1+f.minMonth;)i++,o-=v,v=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),a=Math.min(a,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),a=Math.min(a,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),a];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],i=t<0?-1:1;r=this._add(e,t*a[0]+i*a[1],a[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate);var n=t==="y"?r:e.year(),a=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(n,a))),e.date(n,a,i)},isValid:function(e,r,t){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var a=this.newDate(e,r,this.minDay);n=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=a-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,l)},toJSDate:function(e,r,t){var n=this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate),a=new Date(n.year(),n.month()-1,n.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Tt=uI.exports=new sI;Tt.cdate=y_;Tt.baseCalendar=b_;Tt.calendars.gregorian=__});var fI=ne(()=>{var x_=Ga(),Ca=Va();x_(Ca.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Ca.local=Ca.regionalOptions[""];x_(Ca.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});x_(Ca.baseCalendar.prototype,{UNIX_EPOCH:Ca.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Ca.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Ca.local.invalidFormat||Ca.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var n=t.dayNamesShort||this.local.dayNamesShort,a=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(b,A){for(var k=1;x+k1},f=function(b,A,k,M){var D=""+A;if(u(b,M))for(;D.length1},C=function(W,B){var X=_(W,B),V=[2,3,X?4:2,X?4:2,10,11,20]["oyYJ@!".indexOf(W)+1],re=new RegExp("^-?\\d{1,"+V+"}"),te=r.substring(D).match(re);if(!te)throw(Ca.local.missingNumberAt||Ca.regionalOptions[""].missingNumberAt).replace(/\{0\}/,D);return D+=te[0].length,parseInt(te[0],10)},x=this,b=function(){if(typeof l=="function"){_("m");var W=l.call(x,r.substring(D));return D+=W.length,W}return C("m")},A=function(W,B,X,V){for(var re=_(W,V)?X:B,te=0;te-1){h=1,d=m;for(var H=this.daysInMonth(v,h);d>H;H=this.daysInMonth(v,h))h++,d-=H}return f>-1?this.fromJD(f):this.newDate(v,h,d)},determineDate:function(e,r,t,n,a){t&&typeof t!="object"&&(a=n,n=t,t=null),typeof n!="string"&&(a=n,n="");var i=this,o=function(l){try{return i.parseDate(n,l,a)}catch(v){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(l);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var cI=ne(()=>{var mf=Va(),foe=Ga(),w_=mf.instance();function hy(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}hy.prototype=new mf.baseCalendar;foe(hy.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(voe);return t?t[0]:""}var n=this._validateYear(e),a=e.month(),i=""+this.toChineseMonth(n,a);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(n,a)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(hoe);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][a-1];return this.isIntercalaryMonth(t,n)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(doe);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][a-1];return this.isIntercalaryMonth(t,n)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),n;if(isNaN(t))r[0]==="\u95F0"&&(n=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var a=r[r.length-1];n=a==="i"||a==="I"}var i=this.toMonthIndex(e,t,n);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var n=this.intercalaryMonth(e),a=t&&r!==n;if(a||r<1||r>12)throw mf.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return n?!t&&r<=n?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),n=t?12:11;if(r<0||r>n)throw mf.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var n=this._validateYear(e,mf.local.invalidyear),a=bf[n-bf[0]],i=a>>9&4095,o=a>>5&15,l=a&31,s;s=w_.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=yf[e-yf[0]],n=t>>13,a=n?12:11;if(r>a)throw mf.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,i,t,mf.local.invalidDate);e=this._validateYear(n.year()),r=n.month(),t=n.day();var a=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=goe(e,i,t,a);return w_.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=w_.fromJD(e),t=poe(r.year(),r.month(),r.day()),n=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,n,t.day)},fromString:function(e){var r=e.match(coe),t=this._validateYear(+r[1]),n=+r[2],a=!!r[3],i=this.toMonthIndex(t,n,a),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var n=e.year(),a=e.month(),i=this.isIntercalaryMonth(n,a),o=this.toChineseMonth(n,a),l=Object.getPrototypeOf(hy.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),u=l.month(),f=this.isIntercalaryMonth(s,o),v=i&&f?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);v!==u&&l.month(v)}return l}});var coe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,voe=/^\d?\d[iI]?/m,hoe=/^闰?十?[一二三四五六七八九]?月/m,doe=/^闰?十?[一二三四五六七八九]?/m;mf.calendars.chinese=hy;var yf=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],bf=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function poe(e,r,t,n){var a,i;if(typeof e=="object")a=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");a={year:e,month:r,day:t},i=n||{}}var u=bf[a.year-bf[0]],f=a.year<<9|a.month<<5|a.day;i.year=f>=u?a.year:a.year-1,u=bf[i.year-bf[0]];var v=u>>9&4095,h=u>>5&15,d=u&31,m,p=new Date(v,h-1,d),y=new Date(a.year,a.month-1,a.day);m=Math.round((y-p)/(24*3600*1e3));var _=yf[i.year-yf[0]],C;for(C=0;C<13;C++){var x=_&1<<12-C?30:29;if(m>13;return!b||C=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof n=="object"?(f=!1,i=n):(f=!!n,i=a||{}),o={year:e,month:r,day:t,isIntercalary:f}}var v;v=o.day-1;var h=yf[o.year-yf[0]],d=h>>13,m;d&&(o.month>d||o.isIntercalary)?m=o.month:m=o.month-1;for(var p=0;p>9&4095,x=_>>5&15,b=_&31,A=new Date(C,x-1,b+v);return i.year=A.getFullYear(),i.month=1+A.getMonth(),i.day=A.getDate(),i}});var vI=ne(()=>{var Bc=Va(),moe=Ga();function M_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}M_.prototype=new Bc.baseCalendar;moe(M_.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Bc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Bc.local.invalidYear||Bc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Bc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,Bc.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});Bc.calendars.coptic=M_});var hI=ne(()=>{var fu=Va(),yoe=Ga();function A_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}A_.prototype=new fu.baseCalendar;yoe(A_.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,fu.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,fu.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,fu.local.invalidYear),400},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,fu.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,fu.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,r,t){var n=this.dayOfWeek(e,r,t);return n>=2&&n<=6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,fu.local.invalidDate);return{century:boe[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,r,t){var n=this._validate(e,r,t,fu.local.invalidDate);return e=n.year()+(n.year()<0?1:0),r=n.month(),t=n.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,n=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,n)}});var boe={20:"Fruitbat",21:"Anchovy"};fu.calendars.discworld=A_});var dI=ne(()=>{var Oc=Va(),_oe=Ga();function T_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}T_.prototype=new Oc.baseCalendar;_oe(T_.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Oc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Oc.local.invalidYear||Oc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Oc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,Oc.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});Oc.calendars.ethiopian=T_});var pI=ne(()=>{var _f=Va(),xoe=Ga();function k_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}k_.prototype=new _f.baseCalendar;xoe(k_.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,_f.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,dy(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,_f.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,_f.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,_f.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&dy(this.daysInYear(e),10)===5?30:r===9&&dy(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,_f.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,r,t){var n=this._validate(e,r,t,_f.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=e<=0?e+1:e,i=this.jdEpoch+this._delay1(a)+this._delay2(a)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});function dy(e,r){return e-r*Math.floor(e/r)}_f.calendars.hebrew=k_});var gI=ne(()=>{var Ih=Va(),woe=Ga();function S_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}S_.prototype=new Ih.baseCalendar;woe(S_.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ih.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ih.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,Ih.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});Ih.calendars.islamic=S_});var mI=ne(()=>{var Hh=Va(),Moe=Ga();function C_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C_.prototype=new Hh.baseCalendar;Moe(C_.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Hh.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Hh.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,Hh.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,n=Math.floor((t-122.1)/365.25),a=Math.floor(365.25*n),i=Math.floor((t-a)/30.6001),o=i-Math.floor(i<14?1:13),l=n-Math.floor(o>2?4716:4715),s=t-a-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});Hh.calendars.julian=C_});var bI=ne(()=>{var Ho=Va(),Aoe=Ga();function q_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}q_.prototype=new Ho.baseCalendar;Aoe(q_.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ho.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ho.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return t+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&n<0)throw"Invalid Mayan year";r=r*20+n}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ho.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Ho.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ho.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Ho.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Ho.local.invalidDate);return n.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Ho.local.invalidDate),!0},extraInfo:function(e,r,t){var n=this._validate(e,r,t,Ho.local.invalidDate),a=n.toJD(),i=this._toHaab(a),o=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=L_(e+8+17*20,365);return[Math.floor(r/20)+1,L_(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[yI(e+20,20),yI(e+4,13)]},toJD:function(e,r,t){var n=this._validate(e,r,t,Ho.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),n=e%20;return this.newDate(r,t,n)}});function L_(e,r){return e-r*Math.floor(e/r)}function yI(e,r){return L_(e-1,r)+1}Ho.calendars.mayan=q_});var xI=ne(()=>{var Uc=Va(),Toe=Ga();function D_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}D_.prototype=new Uc.baseCalendar;var _I=Uc.instance("gregorian");Toe(D_.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Uc.local.invalidYear||Uc.regionalOptions[""].invalidYear);return _I.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Uc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,Uc.local.invalidMonth),a=n.year();a<0&&a++;for(var i=n.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,n=1;t>this.daysInMonth(r,n);)t-=this.daysInMonth(r,n),n++;return this.newDate(r,n,t)}});Uc.calendars.nanakshahi=D_});var wI=ne(()=>{var Yc=Va(),koe=Ga();function E_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}E_.prototype=new Yc.baseCalendar;koe(E_.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yc.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,n=this.minMonth;n<=12;n++)t+=this.NEPALI_CALENDAR_DATA[e][n];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Yc.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var n=this._validate(e,r,t,Yc.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=Yc.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=a.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=Yc.instance(),t=r.fromJD(e),n=t.year(),a=t.dayOfYear(),i=n+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;a>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var u=this.NEPALI_CALENDAR_DATA[i][o]-(s-a);return this.newDate(i,o,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var zv=Va(),Soe=Ga();function gy(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function py(e){var r=e-475;e<0&&r++;var t=.242197,n=t*r,a=t*(r+1),i=n-Math.floor(n),o=a-Math.floor(a);return i>o}gy.prototype=new zv.baseCalendar;Soe(gy.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,zv.local.invalidYear);return py(r.year())},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,zv.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,zv.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=0;if(e>0)for(var i=1;i0?e-1:e)*365+a+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,py(t)?30:29)&&(t++,t===0&&t++);var n=e-this.toJD(t,1,1)+1,a=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),i=e-this.toJD(t,a,1)+1;return this.newDate(t,a,i)}});zv.calendars.persian=gy;zv.calendars.jalali=gy});var AI=ne(()=>{var Gc=Va(),Coe=Ga(),my=Gc.instance();function P_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}P_.prototype=new Gc.baseCalendar;Coe(P_.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Gc.local.invalidYear),t=this._t2gYear(r.year());return my.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,Gc.local.invalidYear),a=this._t2gYear(n.year());return my.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Gc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,Gc.local.invalidDate),a=this._t2gYear(n.year());return my.toJD(a,n.month(),n.day())},fromJD:function(e){var r=my.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Gc.calendars.taiwan=P_});var TI=ne(()=>{var Vc=Va(),Loe=Ga(),yy=Vc.instance();function R_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}R_.prototype=new Vc.baseCalendar;Loe(R_.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Vc.local.invalidYear),t=this._t2gYear(r.year());return yy.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,Vc.local.invalidYear),a=this._t2gYear(n.year());return yy.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Vc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,Vc.local.invalidDate),a=this._t2gYear(n.year());return yy.toJD(a,n.month(),n.day())},fromJD:function(e){var r=yy.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Vc.calendars.thai=R_});var kI=ne(()=>{var Wc=Va(),qoe=Ga();function z_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}z_.prototype=new Wc.baseCalendar;qoe(z_.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Wc.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,Wc.local.invalidMonth),n=t.toJD()-24e5+.5,a=0,i=0;in)return xf[a]-xf[a-1];a++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,Wc.local.invalidDate),a=12*(n.year()-1)+n.month()-15292,i=n.day()+xf[a-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,n=0;nr);n++)t++;var a=t+15292,i=Math.floor((a-1)/12),o=i+1,l=a-12*i,s=r-xf[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var n=Wc.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,r,t,n){var a=Wc.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw n.replace(/\{0\}/,this.local.name);return a}});Wc.calendars.ummalqura=z_;var xf=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var CI=ne((H1e,SI)=>{"use strict";SI.exports=Va();fI();cI();vI();hI();dI();pI();gI();mI();bI();xI();wI();MI();AI();TI();kI()});var zI=ne((B1e,RI)=>{"use strict";var qI=CI(),Bh=gr(),DI=En(),Doe=DI.EPOCHJD,Eoe=DI.ONEDAY,I_={valType:"enumerated",values:Bh.sortObjectKeys(qI.calendars),editType:"calc",dflt:"gregorian"},EI=function(e,r,t,n){var a={};return a[t]=I_,Bh.coerce(e,r,a,t,n)},Poe=function(e,r,t,n){for(var a=0;a{"use strict";NI.exports=zI()});var Hoe=ne((U1e,HI)=>{var II=tN();II.register([PF(),iI(),FI()]);HI.exports=II});return Hoe();})(); +`)};function N(ae){return ae.map(j).join(c)}function j(ae){return w.test(ae)?'"'+ae.replace(/\"/g,'""')+'"':ae}return q},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var oo,Go,Vo,hu,Pl=this[te(this,"requestAnimationFrame")]||function(c){setTimeout(c,17)};e.timer=function(){Rl.apply(this,arguments)};function Rl(c,g,w){var S=arguments.length;S<2&&(g=0),S<3&&(w=Date.now());var q=w+g,E={c,t:q,n:null};return Go?Go.n=E:oo=E,Go=E,Vo||(hu=clearTimeout(hu),Vo=1,Pl(bi)),E}function bi(){var c=lo(),g=Wo()-c;g>24?(isFinite(g)&&(clearTimeout(hu),hu=setTimeout(bi,g)),Vo=0):(Vo=1,Pl(bi))}e.timer.flush=function(){lo(),Wo()};function lo(){for(var c=Date.now(),g=oo;g;)c>=g.t&&g.c(c-g.t)&&(g.c=null),g=g.n;return c}function Wo(){for(var c,g=oo,w=1/0;g;)g.c?(g.t=0;--N)_e.push(q[ae[ge[N]][2]]);for(N=+ze;N1&&It(c[w[S-2]],c[w[S-1]],c[q])<=0;)--S;w[S++]=q}return w.slice(0,S)}function Zc(c,g){return c[0]-g[0]||c[1]-g[1]}e.geom.polygon=function(c){return Le(c,_s),c};var _s=e.geom.polygon.prototype=[];_s.area=function(){for(var c=-1,g=this.length,w,S=this[g-1],q=0;++cke)N=N.L;else if(G=g-Fv(N,w),G>ke){if(!N.R){S=N;break}N=N.R}else{E>-ke?(S=N.P,q=N):G>-ke?(S=N,q=N.N):S=q=N;break}var j=Ms(c);if(Bi.insert(S,j),!(!S&&!q)){if(S===q){co(S),q=Ms(S.site),Bi.insert(j,q),j.edge=q.edge=Il(S.site,j.site),fo(S),fo(q);return}if(!q){j.edge=Il(S.site,j.site);return}co(S),co(q);var ae=S.site,ie=ae.x,ge=ae.y,ye=c.x-ie,ze=c.y-ge,Ve=q.site,_e=Ve.x-ie,Ce=Ve.y-ge,Ee=2*(ye*Ce-ze*_e),Ge=ye*ye+ze*ze,We=_e*_e+Ce*Ce,Re={x:(Ce*Ge-ze*We)/Ee+ie,y:(ye*We-_e*Ge)/Ee+ge};Yi(q.edge,ae,Ve,Re),j.edge=Il(ae,c,null,Re),q.edge=Il(c,Ve,null,Re),fo(S),fo(q)}}function Ts(c,g){var w=c.site,S=w.x,q=w.y,E=q-g;if(!E)return S;var G=c.P;if(!G)return-1/0;w=G.site;var N=w.x,j=w.y,ae=j-g;if(!ae)return N;var ie=N-S,ge=1/E-1/ae,ye=ie/ae;return ge?(-ye+Math.sqrt(ye*ye-2*ge*(ie*ie/(-2*ae)-j+ae/2+q-E/2)))/ge+S:(S+N)/2}function Fv(c,g){var w=c.N;if(w)return Ts(w,g);var S=c.site;return S.y===g?S.x:1/0}function Xo(c){this.site=c,this.edges=[]}Xo.prototype.prepare=function(){for(var c=this.edges,g=c.length,w;g--;)w=c[g].edge,(!w.b||!w.a)&&c.splice(g,1);return c.sort(Fl),c.length};function kf(c){for(var g=c[0][0],w=c[1][0],S=c[0][1],q=c[1][1],E,G,N,j,ae=uo,ie=ae.length,ge,ye,ze,Ve,_e,Ce;ie--;)if(ge=ae[ie],!(!ge||!ge.prepare()))for(ze=ge.edges,Ve=ze.length,ye=0;yeke||b(j-G)>ke)&&(ze.splice(ye,0,new jo(Hv(ge.site,Ce,b(N-g)ke?{x:g,y:b(E-g)ke?{x:b(G-q)ke?{x:w,y:b(E-w)ke?{x:b(G-S)=-$e)){var ye=j*j+ae*ae,ze=ie*ie+Ce*Ce,Ve=(Ce*ye-ae*ze)/ge,_e=(j*ze-ie*ye)/ge,Ce=_e+N,Ee=Tf.pop()||new Jc;Ee.arc=c,Ee.site=q,Ee.x=Ve+G,Ee.y=Ce+Math.sqrt(Ve*Ve+_e*_e),Ee.cy=Ce,c.circle=Ee;for(var Ge=null,We=Nl._;We;)if(Ee.y0)){if(_e/=ze,ze<0){if(_e0){if(_e>ye)return;_e>ge&&(ge=_e)}if(_e=w-N,!(!ze&&_e<0)){if(_e/=ze,ze<0){if(_e>ye)return;_e>ge&&(ge=_e)}else if(ze>0){if(_e0)){if(_e/=Ve,Ve<0){if(_e0){if(_e>ye)return;_e>ge&&(ge=_e)}if(_e=S-j,!(!Ve&&_e<0)){if(_e/=Ve,Ve<0){if(_e>ye)return;_e>ge&&(ge=_e)}else if(Ve>0){if(_e0&&(q.a={x:N+ge*ze,y:j+ge*Ve}),ye<1&&(q.b={x:N+ye*ze,y:j+ye*Ve}),q}}}}}}function _i(c){for(var g=so,w=Sf(c[0][0],c[0][1],c[1][0],c[1][1]),S=g.length,q;S--;)q=g[S],(!Iv(q,c)||!w(q)||b(q.a.x-q.b.x)=E)return;if(ie>ye){if(!S)S={x:Ve,y:G};else if(S.y>=N)return;w={x:Ve,y:N}}else{if(!S)S={x:Ve,y:N};else if(S.y1)if(ie>ye){if(!S)S={x:(G-Ee)/Ce,y:G};else if(S.y>=N)return;w={x:(N-Ee)/Ce,y:N}}else{if(!S)S={x:(N-Ee)/Ce,y:N};else if(S.y=E)return;w={x:E,y:Ce*E+Ee}}else{if(!S)S={x:E,y:Ce*E+Ee};else if(S.x=ie&&Ee.x<=ye&&Ee.y>=ge&&Ee.y<=ze?[[ie,ze],[ye,ze],[ye,ge],[ie,ge]]:[];Ge.point=j[_e]}),ae}function N(j){return j.map(function(ae,ie){return{x:Math.round(S(ae,ie)/ke)*ke,y:Math.round(q(ae,ie)/ke)*ke,i:ie}})}return G.links=function(j){return Ss(N(j)).edges.filter(function(ae){return ae.l&&ae.r}).map(function(ae){return{source:j[ae.l.i],target:j[ae.r.i]}})},G.triangles=function(j){var ae=[];return Ss(N(j)).cells.forEach(function(ie,ge){for(var ye=ie.site,ze=ie.edges.sort(Fl),Ve=-1,_e=ze.length,Ce,Ee,Ge=ze[_e-1].edge,We=Ge.l===ye?Ge.r:Ge.l;++Ve<_e;)Ce=Ge,Ee=We,Ge=ze[Ve].edge,We=Ge.l===ye?Ge.r:Ge.l,geWe&&(We=ie.x),ie.y>Re&&(Re=ie.y),ze.push(ie.x),Ve.push(ie.y);else for(_e=0;_eWe&&(We=br),Yr>Re&&(Re=Yr),ze.push(br),Ve.push(Yr)}var Wr=We-Ee,Vr=Re-Ge;Wr>Vr?Re=Ge+Wr:We=Ee+Vr;function Jr(Qr,ht,Kt,Xn,sn,Fr,_t,wt){if(!(isNaN(Kt)||isNaN(Xn)))if(Qr.leaf){var Qt=Qr.x,In=Qr.y;if(Qt!=null)if(b(Qt-Kt)+b(In-Xn)<.01)$r(Qr,ht,Kt,Xn,sn,Fr,_t,wt);else{var oa=Qr.point;Qr.x=Qr.y=Qr.point=null,$r(Qr,oa,Qt,In,sn,Fr,_t,wt),$r(Qr,ht,Kt,Xn,sn,Fr,_t,wt)}else Qr.x=Kt,Qr.y=Xn,Qr.point=ht}else $r(Qr,ht,Kt,Xn,sn,Fr,_t,wt)}function $r(Qr,ht,Kt,Xn,sn,Fr,_t,wt){var Qt=(sn+_t)*.5,In=(Fr+wt)*.5,oa=Kt>=Qt,Da=Xn>=In,ja=Da<<1|oa;Qr.leaf=!1,Qr=Qr.nodes[ja]||(Qr.nodes[ja]=mu()),oa?sn=Qt:_t=Qt,Da?Fr=In:wt=In,Jr(Qr,ht,Kt,Xn,sn,Fr,_t,wt)}var bt=mu();if(bt.add=function(Qr){Jr(bt,Qr,+ge(Qr,++_e),+ye(Qr,_e),Ee,Ge,We,Re)},bt.visit=function(Qr){oi(Qr,bt,Ee,Ge,We,Re)},bt.find=function(Qr){return yu(bt,Qr[0],Qr[1],Ee,Ge,We,Re)},_e=-1,g==null){for(;++_eE||ye>G||ze=br,Vr=w>=Yr,Jr=Vr<<1|Wr,$r=Jr+4;Jr<$r;++Jr)if(ie=Re[Jr&3])switch(Jr&3){case 0:ae(ie,ge,ye,br,Yr);break;case 1:ae(ie,br,ye,ze,Yr);break;case 2:ae(ie,ge,Yr,br,Ve);break;case 3:ae(ie,br,Yr,ze,Ve);break}}}(c,S,q,E,G),j}e.interpolateRgb=bu;function bu(c,g){c=e.rgb(c),g=e.rgb(g);var w=c.r,S=c.g,q=c.b,E=g.r-w,G=g.g-S,N=g.b-q;return function(j){return"#"+Kr(Math.round(w+E*j))+Kr(Math.round(S+G*j))+Kr(Math.round(q+N*j))}}e.interpolateObject=Fa;function Fa(c,g){var w={},S={},q;for(q in c)q in g?w[q]=Qo(c[q],g[q]):S[q]=c[q];for(q in g)q in c||(S[q]=g[q]);return function(E){for(q in w)S[q]=w[q](E);return S}}e.interpolateNumber=Kn;function Kn(c,g){return c=+c,g=+g,function(w){return c*(1-w)+g*w}}e.interpolateString=Aa;function Aa(c,g){var w=Gi.lastIndex=Ls.lastIndex=0,S,q,E,G=-1,N=[],j=[];for(c=c+"",g=g+"";(S=Gi.exec(c))&&(q=Ls.exec(g));)(E=q.index)>w&&(E=g.slice(w,E),N[G]?N[G]+=E:N[++G]=E),(S=S[0])===(q=q[0])?N[G]?N[G]+=q:N[++G]=q:(N[++G]=null,j.push({i:G,x:Kn(S,q)})),w=Ls.lastIndex;return w=0&&!(S=e.interpolators[w](c,g)););return S}e.interpolators=[function(c,g){var w=typeof g;return(w==="string"?Pn.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?bu:Aa:g instanceof pn?bu:Array.isArray(g)?Ol:w==="object"&&isNaN(g)?Fa:Kn)(c,g)}],e.interpolateArray=Ol;function Ol(c,g){var w=[],S=[],q=c.length,E=g.length,G=Math.min(c.length,g.length),N;for(N=0;N=0?c.slice(0,g):c,S=g>=0?c.slice(g+1):"in";return w=$c.get(w)||Cf,S=Bv.get(S)||V,Ov(S(w.apply(null,r.call(arguments,1))))};function Ov(c){return function(g){return g<=0?0:g>=1?1:c(g)}}function Lf(c){return function(g){return 1-c(1-g)}}function qf(c){return function(g){return .5*(g<.5?c(2*g):2-c(2-2*g))}}function Df(c){return c*c}function Ef(c){return c*c*c}function Kc(c){if(c<=0)return 0;if(c>=1)return 1;var g=c*c,w=g*c;return 4*(c<.5?w:3*(c-g)+w-.75)}function Qc(c){return function(g){return Math.pow(g,c)}}function qs(c){return 1-Math.cos(c*Pr)}function Ds(c){return Math.pow(2,10*(c-1))}function xi(c){return 1-Math.sqrt(1-c*c)}function _u(c,g){var w;return arguments.length<2&&(g=.45),arguments.length?w=g/qr*Math.asin(1/c):(c=1,w=g/4),function(S){return 1+c*Math.pow(2,-10*S)*Math.sin((S-w)*qr/g)}}function Es(c){return c||(c=1.70158),function(g){return g*g*((c+1)*g-c)}}function xu(c){return c<1/2.75?7.5625*c*c:c<2/2.75?7.5625*(c-=1.5/2.75)*c+.75:c<2.5/2.75?7.5625*(c-=2.25/2.75)*c+.9375:7.5625*(c-=2.625/2.75)*c+.984375}e.interpolateHcl=e0;function e0(c,g){c=e.hcl(c),g=e.hcl(g);var w=c.h,S=c.c,q=c.l,E=g.h-w,G=g.c-S,N=g.l-q;return isNaN(G)&&(G=0,S=isNaN(S)?g.c:S),isNaN(E)?(E=0,w=isNaN(w)?g.h:w):E>180?E-=360:E<-180&&(E+=360),function(j){return pa(w+E*j,S+G*j,q+N*j)+""}}e.interpolateHsl=Pf;function Pf(c,g){c=e.hsl(c),g=e.hsl(g);var w=c.h,S=c.s,q=c.l,E=g.h-w,G=g.s-S,N=g.l-q;return isNaN(G)&&(G=0,S=isNaN(S)?g.s:S),isNaN(E)?(E=0,w=isNaN(w)?g.h:w):E>180?E-=360:E<-180&&(E+=360),function(j){return da(w+E*j,S+G*j,q+N*j)+""}}e.interpolateLab=Uv;function Uv(c,g){c=e.lab(c),g=e.lab(g);var w=c.l,S=c.a,q=c.b,E=g.l-w,G=g.a-S,N=g.b-q;return function(j){return ms(w+E*j,S+G*j,q+N*j)+""}}e.interpolateRound=ho;function ho(c,g){return g-=c,function(w){return Math.round(c+g*w)}}e.transform=function(c){var g=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(w){if(w!=null){g.setAttribute("transform",w);var S=g.transform.baseVal.consolidate()}return new wu(S?S.matrix:Rf)})(c)};function wu(c){var g=[c.a,c.b],w=[c.c,c.d],S=Ps(g),q=Ul(g,w),E=Ps(Rs(w,g,-q))||0;g[0]*w[1]180?g+=360:g-c>180&&(c+=360),S.push({i:w.push(po(w)+"rotate(",null,")")-2,x:Kn(c,g)})):g&&w.push(po(w)+"rotate("+g+")")}function t0(c,g,w,S){c!==g?S.push({i:w.push(po(w)+"skewX(",null,")")-2,x:Kn(c,g)}):g&&w.push(po(w)+"skewX("+g+")")}function Nf(c,g,w,S){if(c[0]!==g[0]||c[1]!==g[1]){var q=w.push(po(w)+"scale(",null,",",null,")");S.push({i:q-4,x:Kn(c[0],g[0])},{i:q-2,x:Kn(c[1],g[1])})}else(g[0]!==1||g[1]!==1)&&w.push(po(w)+"scale("+g+")")}function Mu(c,g){var w=[],S=[];return c=e.transform(c),g=e.transform(g),r0(c.translate,g.translate,w,S),zf(c.rotate,g.rotate,w,S),t0(c.skew,g.skew,w,S),Nf(c.scale,g.scale,w,S),c=g=null,function(q){for(var E=-1,G=S.length,N;++E0?E=Re:(w.c=null,w.t=NaN,w=null,g.end({type:"end",alpha:E=0})):Re>0&&(g.start({type:"start",alpha:E=Re}),w=Rl(c.tick)),c):E},c.start=function(){var Re,br=ze.length,Yr=Ve.length,Wr=S[0],Vr=S[1],Jr,$r;for(Re=0;Re=0;)E.push(ie=ae[j]),ie.parent=N,ie.depth=N.depth+1;w&&(N.value=0),N.children=ae}else w&&(N.value=+w.call(S,N,N.depth)||0),delete N.children;return Ia(q,function(ge){var ye,ze;c&&(ye=ge.children)&&ye.sort(c),w&&(ze=ge.parent)&&(ze.value+=ge.value)}),G}return S.sort=function(q){return arguments.length?(c=q,S):c},S.children=function(q){return arguments.length?(g=q,S):g},S.value=function(q){return arguments.length?(w=q,S):w},S.revalue=function(q){return w&&(Mi(q,function(E){E.children&&(E.value=0)}),Ia(q,function(E){var G;E.children||(E.value=+w.call(S,E,E.depth)||0),(G=E.parent)&&(G.value+=E.value)})),q},S};function Vi(c,g){return e.rebind(c,g,"sort","children","value"),c.nodes=c,c.links=Za,c}function Mi(c,g){for(var w=[c];(c=w.pop())!=null;)if(g(c),(q=c.children)&&(S=q.length))for(var S,q;--S>=0;)w.push(q[S])}function Ia(c,g){for(var w=[c],S=[];(c=w.pop())!=null;)if(S.push(c),(G=c.children)&&(E=G.length))for(var q=-1,E,G;++qq&&(q=N),S.push(N)}for(G=0;GS&&(w=g,S=q);return w}function Is(c){return c.reduce(rl,0)}function rl(c,g){return c+g[1]}e.layout.histogram=function(){var c=!0,g=Number,w=Vl,S=Hs;function q(E,ye){for(var N=[],j=E.map(g,this),ae=w.call(this,j,ye),ie=S.call(this,ae,j,ye),ge,ye=-1,ze=j.length,Ve=ie.length-1,_e=c?1:1/ze,Ce;++ye0)for(ye=-1;++ye=ae[0]&&Ce<=ae[1]&&(ge=N[e.bisect(ie,Ce,1,Ve)-1],ge.y+=_e,ge.push(E[ye]));return N}return q.value=function(E){return arguments.length?(g=E,q):g},q.range=function(E){return arguments.length?(w=At(E),q):w},q.bins=function(E){return arguments.length?(S=typeof E=="number"?function(G){return tl(G,E)}:At(E),q):S},q.frequency=function(E){return arguments.length?(c=!!E,q):c},q};function Hs(c,g){return tl(c,Math.ceil(Math.log(g.length)/Math.LN2+1))}function tl(c,g){for(var w=-1,S=+c[0],q=(c[1]-S)/g,E=[];++w<=g;)E[w]=q*w+S;return E}function Vl(c){return[e.min(c),e.max(c)]}e.layout.pack=function(){var c=e.layout.hierarchy().sort(ku),g=0,w=[1,1],S;function q(E,G){var N=c.call(this,E,G),j=N[0],ae=w[0],ie=w[1],ge=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(j.x=j.y=0,Ia(j,function(ze){ze.r=+ge(ze.value)}),Ia(j,f0),g){var ye=g*(S?1:Math.max(2*j.r/ae,2*j.r/ie))/2;Ia(j,function(ze){ze.r+=ye}),Ia(j,f0),Ia(j,function(ze){ze.r-=ye})}return Cu(j,ae/2,ie/2,S?1:1/Math.max(2*j.r/ae,2*j.r/ie)),N}return q.size=function(E){return arguments.length?(w=E,q):w},q.radius=function(E){return arguments.length?(S=E==null||typeof E=="function"?E:+E,q):S},q.padding=function(E){return arguments.length?(g=+E,q):g},Vi(q,c)};function ku(c,g){return c.value-g.value}function Bs(c,g){var w=c._pack_next;c._pack_next=g,g._pack_prev=c,g._pack_next=w,w._pack_prev=g}function u0(c,g){c._pack_next=g,g._pack_prev=c}function Su(c,g){var w=g.x-c.x,S=g.y-c.y,q=c.r+g.r;return .999*q*q>w*w+S*S}function f0(c){if(!(g=c.children)||!(ye=g.length))return;var g,w=1/0,S=-1/0,q=1/0,E=-1/0,G,N,j,ae,ie,ge,ye;function ze(Re){w=Math.min(Re.x-Re.r,w),S=Math.max(Re.x+Re.r,S),q=Math.min(Re.y-Re.r,q),E=Math.max(Re.y+Re.r,E)}if(g.forEach(c0),G=g[0],G.x=-G.r,G.y=0,ze(G),ye>1&&(N=g[1],N.x=N.r,N.y=0,ze(N),ye>2))for(j=g[2],Zn(G,N,j),ze(j),Bs(G,j),G._pack_prev=j,Bs(j,N),N=G._pack_next,ae=3;aeCe.x&&(Ce=br),br.depth>Ee.depth&&(Ee=br)});var Ge=g(_e,Ce)/2-_e.x,We=w[0]/(Ce.x+g(Ce,_e)/2+Ge),Re=w[1]/(Ee.depth||1);Mi(ze,function(br){br.x=(br.x+Ge)*We,br.y=br.depth*Re})}return ye}function E(ie){for(var ge={A:null,children:[ie]},ye=[ge],ze;(ze=ye.pop())!=null;)for(var Ve=ze.children,_e,Ce=0,Ee=Ve.length;Ce0&&(Os(I(_e,ie,ye),ie,br),Ee+=br,Ge+=br),We+=_e.m,Ee+=ze.m,Re+=Ce.m,Ge+=Ve.m;_e&&!Lu(Ve)&&(Ve.t=_e,Ve.m+=We-Ge),ze&&!Wl(Ce)&&(Ce.t=ze,Ce.m+=Ee-Re,ye=ie)}return ye}function ae(ie){ie.x*=w[0],ie.y=ie.depth*w[1]}return q.separation=function(ie){return arguments.length?(g=ie,q):g},q.size=function(ie){return arguments.length?(S=(w=ie)==null?ae:null,q):S?null:w},q.nodeSize=function(ie){return arguments.length?(S=(w=ie)==null?null:ae,q):S?w:null},Vi(q,c)};function li(c,g){return c.parent==g.parent?1:2}function Wl(c){var g=c.children;return g.length?g[0]:c.t}function Lu(c){var g=c.children,w;return(w=g.length)?g[w-1]:c.t}function Os(c,g,w){var S=w/(g.i-c.i);g.c-=S,g.s+=w,c.c+=S,g.z+=w,g.m+=w}function Yf(c){for(var g=0,w=0,S=c.children,q=S.length,E;--q>=0;)E=S[q],E.z+=g,E.m+=g,g+=E.s+(w+=E.c)}function I(c,g,w){return c.a.parent===g.parent?c.a:w}e.layout.cluster=function(){var c=e.layout.hierarchy().sort(null).value(null),g=li,w=[1,1],S=!1;function q(E,G){var N=c.call(this,E,G),j=N[0],ae,ie=0;Ia(j,function(_e){var Ce=_e.children;Ce&&Ce.length?(_e.x=ce(Ce),_e.y=J(Ce)):(_e.x=ae?ie+=g(_e,ae):0,_e.y=0,ae=_e)});var ge=oe(j),ye=Me(j),ze=ge.x-g(ge,ye)/2,Ve=ye.x+g(ye,ge)/2;return Ia(j,S?function(_e){_e.x=(_e.x-j.x)*w[0],_e.y=(j.y-_e.y)*w[1]}:function(_e){_e.x=(_e.x-ze)/(Ve-ze)*w[0],_e.y=(1-(j.y?_e.y/j.y:1))*w[1]}),N}return q.separation=function(E){return arguments.length?(g=E,q):g},q.size=function(E){return arguments.length?(S=(w=E)==null,q):S?null:w},q.nodeSize=function(E){return arguments.length?(S=(w=E)!=null,q):S?w:null},Vi(q,c)};function J(c){return 1+e.max(c,function(g){return g.y})}function ce(c){return c.reduce(function(g,w){return g+w.x},0)/c.length}function oe(c){var g=c.children;return g&&g.length?oe(g[0]):c}function Me(c){var g=c.children,w;return g&&(w=g.length)?Me(g[w-1]):c}e.layout.treemap=function(){var c=e.layout.hierarchy(),g=Math.round,w=[1,1],S=null,q=Be,E=!1,G,N="squarify",j=.5*(1+Math.sqrt(5));function ae(_e,Ce){for(var Ee=-1,Ge=_e.length,We,Re;++Ee0;)Ge.push(Re=We[Vr-1]),Ge.area+=Re.area,N!=="squarify"||(Yr=ye(Ge,Wr))<=br?(We.pop(),br=Yr):(Ge.area-=Ge.pop().area,ze(Ge,Wr,Ee,!1),Wr=Math.min(Ee.dx,Ee.dy),Ge.length=Ge.area=0,br=1/0);Ge.length&&(ze(Ge,Wr,Ee,!0),Ge.length=Ge.area=0),Ce.forEach(ie)}}function ge(_e){var Ce=_e.children;if(Ce&&Ce.length){var Ee=q(_e),Ge=Ce.slice(),We,Re=[];for(ae(Ge,Ee.dx*Ee.dy/_e.value),Re.area=0;We=Ge.pop();)Re.push(We),Re.area+=We.area,We.z!=null&&(ze(Re,We.z?Ee.dx:Ee.dy,Ee,!Ge.length),Re.length=Re.area=0);Ce.forEach(ge)}}function ye(_e,Ce){for(var Ee=_e.area,Ge,We=0,Re=1/0,br=-1,Yr=_e.length;++brWe&&(We=Ge));return Ee*=Ee,Ce*=Ce,Ee?Math.max(Ce*We*j/Ee,Ee/(Ce*Re*j)):1/0}function ze(_e,Ce,Ee,Ge){var We=-1,Re=_e.length,br=Ee.x,Yr=Ee.y,Wr=Ce?g(_e.area/Ce):0,Vr;if(Ce==Ee.dx){for((Ge||Wr>Ee.dy)&&(Wr=Ee.dy);++WeEe.dx)&&(Wr=Ee.dx);++We1);return c+g*S*Math.sqrt(-2*Math.log(E)/E)}},logNormal:function(){var c=e.random.normal.apply(e,arguments);return function(){return Math.exp(c())}},bates:function(c){var g=e.random.irwinHall(c);return function(){return g()/c}},irwinHall:function(c){return function(){for(var g=0,w=0;w2?xr:yr,ae=S?If:Ff;return q=j(c,g,ae,w),E=j(g,c,ae,Qo),N}function N(j){return q(j)}return N.invert=function(j){return E(j)},N.domain=function(j){return arguments.length?(c=j.map(Number),G()):c},N.range=function(j){return arguments.length?(g=j,G()):g},N.rangeRound=function(j){return N.range(j).interpolate(ho)},N.clamp=function(j){return arguments.length?(S=j,G()):S},N.interpolate=function(j){return arguments.length?(w=j,G()):w},N.ticks=function(j){return nt(c,j)},N.tickFormat=function(j,ae){return d3_scale_linearTickFormat(c,j,ae)},N.nice=function(j){return jr(c,j),G()},N.copy=function(){return Sr(c,g,w,S)},G()}function et(c,g){return e.rebind(c,g,"range","rangeRound","interpolate","clamp")}function jr(c,g){return Ke(c,vr(tt(c,g)[2])),Ke(c,vr(tt(c,g)[2])),c}function tt(c,g){g==null&&(g=10);var w=nr(c),S=w[1]-w[0],q=Math.pow(10,Math.floor(Math.log(S/g)/Math.LN10)),E=g/S*q;return E<=.15?q*=10:E<=.35?q*=5:E<=.75&&(q*=2),w[0]=Math.ceil(w[0]/q)*q,w[1]=Math.floor(w[1]/q)*q+q*.5,w[2]=q,w}function nt(c,g){return e.range.apply(e,tt(c,g))}var Lr={s:1,g:1,p:1,r:1,e:1};function Br(c){return-Math.floor(Math.log(c)/Math.LN10+.01)}function it(c,g){var w=Br(g[2]);return c in Lr?Math.abs(w-Br(Math.max(b(g[0]),b(g[1]))))+ +(c!=="e"):w-(c==="%")*2}e.scale.log=function(){return pt(e.scale.linear().domain([0,1]),10,!0,[1,10])};function pt(c,g,w,S){function q(N){return(w?Math.log(N<0?0:N):-Math.log(N>0?0:-N))/Math.log(g)}function E(N){return w?Math.pow(g,N):-Math.pow(g,-N)}function G(N){return c(q(N))}return G.invert=function(N){return E(c.invert(N))},G.domain=function(N){return arguments.length?(w=N[0]>=0,c.domain((S=N.map(Number)).map(q)),G):S},G.base=function(N){return arguments.length?(g=+N,c.domain(S.map(q)),G):g},G.nice=function(){var N=Ke(S.map(q),w?Math:Gt);return c.domain(N),S=N.map(E),G},G.ticks=function(){var N=nr(S),j=[],ae=N[0],ie=N[1],ge=Math.floor(q(ae)),ye=Math.ceil(q(ie)),ze=g%1?2:g;if(isFinite(ye-ge)){if(w){for(;ge0;Ve--)j.push(E(ge)*Ve);for(ge=0;j[ge]ie;ye--);j=j.slice(ge,ye)}return j},G.copy=function(){return pt(c.copy(),g,w,S)},et(G,c)}var Gt={floor:function(c){return-Math.ceil(-c)},ceil:function(c){return-Math.floor(-c)}};e.scale.pow=function(){return tn(e.scale.linear(),1,[0,1])};function tn(c,g,w){var S=Zt(g),q=Zt(1/g);function E(G){return c(S(G))}return E.invert=function(G){return q(c.invert(G))},E.domain=function(G){return arguments.length?(c.domain((w=G.map(Number)).map(S)),E):w},E.ticks=function(G){return nt(w,G)},E.tickFormat=function(G,N){return d3_scale_linearTickFormat(w,G,N)},E.nice=function(G){return E.domain(jr(w,G))},E.exponent=function(G){return arguments.length?(S=Zt(g=G),q=Zt(1/g),c.domain(w.map(S)),E):g},E.copy=function(){return tn(c.copy(),g,w)},et(E,c)}function Zt(c){return function(g){return g<0?-Math.pow(-g,c):Math.pow(g,c)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return gn([],{t:"range",a:[[]]})};function gn(c,g){var w,S,q;function E(N){return S[((w.get(N)||(g.t==="range"?w.set(N,c.push(N)):NaN))-1)%S.length]}function G(N,j){return e.range(c.length).map(function(ae){return N+j*ae})}return E.domain=function(N){if(!arguments.length)return c;c=[],w=new _;for(var j=-1,ae=N.length,ie;++j0?w[E-1]:c[0],Eye?0:1;if(ie=Hr)return j(ie,Ve)+(ae?j(ae,1-Ve):"")+"Z";var _e,Ce,Ee,Ge,We=0,Re=0,br,Yr,Wr,Vr,Jr,$r,bt,Qr,ht=[];if((Ge=(+G.apply(this,arguments)||0)/2)&&(Ee=S===Wi?Math.sqrt(ae*ae+ie*ie):+S.apply(this,arguments),Ve||(Re*=-1),ie&&(Re=Tn(Ee/ie*Math.sin(Ge))),ae&&(We=Tn(Ee/ae*Math.sin(Ge)))),ie){br=ie*Math.cos(ge+Re),Yr=ie*Math.sin(ge+Re),Wr=ie*Math.cos(ye-Re),Vr=ie*Math.sin(ye-Re);var Kt=Math.abs(ye-ge-2*Re)<=Ze?0:1;if(Re&&qu(br,Yr,Wr,Vr)===Ve^Kt){var Xn=(ge+ye)/2;br=ie*Math.cos(Xn),Yr=ie*Math.sin(Xn),Wr=Vr=null}}else br=Yr=0;if(ae){Jr=ae*Math.cos(ye-We),$r=ae*Math.sin(ye-We),bt=ae*Math.cos(ge+We),Qr=ae*Math.sin(ge+We);var sn=Math.abs(ge-ye+2*We)<=Ze?0:1;if(We&&qu(Jr,$r,bt,Qr)===1-Ve^sn){var Fr=(ge+ye)/2;Jr=ae*Math.cos(Fr),$r=ae*Math.sin(Fr),bt=Qr=null}}else Jr=$r=0;if(ze>ke&&(_e=Math.min(Math.abs(ie-ae)/2,+w.apply(this,arguments)))>.001){Ce=ae0?0:1}function v0(c,g,w,S,q){var E=c[0]-g[0],G=c[1]-g[1],N=(q?S:-S)/Math.sqrt(E*E+G*G),j=N*G,ae=-N*E,ie=c[0]+j,ge=c[1]+ae,ye=g[0]+j,ze=g[1]+ae,Ve=(ie+ye)/2,_e=(ge+ze)/2,Ce=ye-ie,Ee=ze-ge,Ge=Ce*Ce+Ee*Ee,We=w-S,Re=ie*ze-ye*ge,br=(Ee<0?-1:1)*Math.sqrt(Math.max(0,We*We*Ge-Re*Re)),Yr=(Re*Ee-Ce*br)/Ge,Wr=(-Re*Ce-Ee*br)/Ge,Vr=(Re*Ee+Ce*br)/Ge,Jr=(-Re*Ce+Ee*br)/Ge,$r=Yr-Ve,bt=Wr-_e,Qr=Vr-Ve,ht=Jr-_e;return $r*$r+bt*bt>Qr*Qr+ht*ht&&(Yr=Vr,Wr=Jr),[[Yr-j,Wr-ae],[Yr*w/We,Wr*w/We]]}function h0(){return!0}function Vh(c){var g=zl,w=bs,S=h0,q=Zi,E=q.key,G=.7;function N(j){var ae=[],ie=[],ge=-1,ye=j.length,ze,Ve=At(g),_e=At(w);function Ce(){ae.push("M",q(c(ie),G))}for(;++ge1?c.join("L"):c+"Z"}function Wh(c){return c.join("L")+"Z"}function Zh(c){for(var g=0,w=c.length,S=c[0],q=[S[0],",",S[1]];++g1&&q.push("H",S[0]),q.join("")}function d0(c){for(var g=0,w=c.length,S=c[0],q=[S[0],",",S[1]];++g1){N=g[1],E=c[j],j++,S+="C"+(q[0]+G[0])+","+(q[1]+G[1])+","+(E[0]-N[0])+","+(E[1]-N[1])+","+E[0]+","+E[1];for(var ae=2;ae9&&(E=w*3/Math.sqrt(E),G[N]=E*S,G[N+1]=E*q));for(N=-1;++N<=j;)E=(c[Math.min(j,N+1)][0]-c[Math.max(0,N-1)][0])/(6*(1+G[N]*G[N])),g.push([E||0,G[N]*E||0]);return g}function ue(c){return c.length<3?Zi(c):c[0]+p0(c,Z(c))}e.svg.line.radial=function(){var c=Vh(ve);return c.radius=c.x,delete c.x,c.angle=c.y,delete c.y,c};function ve(c){for(var g,w=-1,S=c.length,q,E;++wZe)+",1 "+ge}function ae(ie,ge,ye,ze){return"Q 0,0 "+ze}return E.radius=function(ie){return arguments.length?(w=At(ie),E):w},E.source=function(ie){return arguments.length?(c=At(ie),E):c},E.target=function(ie){return arguments.length?(g=At(ie),E):g},E.startAngle=function(ie){return arguments.length?(S=At(ie),E):S},E.endAngle=function(ie){return arguments.length?(q=At(ie),E):q},E};function qe(c){return c.radius}e.svg.diagonal=function(){var c=de,g=xe,w=He;function S(q,E){var G=c.call(this,q,E),N=g.call(this,q,E),j=(G.y+N.y)/2,ae=[G,{x:G.x,y:j},{x:N.x,y:j},N];return ae=ae.map(w),"M"+ae[0]+"C"+ae[1]+" "+ae[2]+" "+ae[3]}return S.source=function(q){return arguments.length?(c=At(q),S):c},S.target=function(q){return arguments.length?(g=At(q),S):g},S.projection=function(q){return arguments.length?(w=q,S):w},S};function He(c){return[c.x,c.y]}e.svg.diagonal.radial=function(){var c=e.svg.diagonal(),g=He,w=c.projection;return c.projection=function(S){return arguments.length?w(er(g=S)):g},c};function er(c){return function(){var g=c.apply(this,arguments),w=g[0],S=g[1]-Pr;return[w*Math.cos(S),w*Math.sin(S)]}}e.svg.symbol=function(){var c=Mr,g=fr;function w(S,q){return(at.get(c.call(this,S,q))||Zr)(g.call(this,S,q))}return w.type=function(S){return arguments.length?(c=At(S),w):c},w.size=function(S){return arguments.length?(g=At(S),w):g},w};function fr(){return 64}function Mr(){return"circle"}function Zr(c){var g=Math.sqrt(c/Ze);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var at=e.map({circle:Zr,cross:function(c){var g=Math.sqrt(c/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(c){var g=Math.sqrt(c/(2*st)),w=g*st;return"M0,"+-g+"L"+w+",0 0,"+g+" "+-w+",0Z"},square:function(c){var g=Math.sqrt(c)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(c){var g=Math.sqrt(c/ot),w=g*ot/2;return"M0,"+w+"L"+g+","+-w+" "+-g+","+-w+"Z"},"triangle-up":function(c){var g=Math.sqrt(c/ot),w=g*ot/2;return"M0,"+-w+"L"+g+","+w+" "+-g+","+w+"Z"}});e.svg.symbolTypes=at.keys();var ot=Math.sqrt(3),st=Math.tan(30*lt);pe.transition=function(c){for(var g=ma||++Fn,w=La(c),S=[],q,E,G=ui||{time:Date.now(),ease:Kc,delay:0,duration:250},N=-1,j=this.length;++N0;)ge[--Ge].call(c,Ee);if(Ce>=1)return G.event&&G.event.end.call(c,c.__data__,g),--E.count?delete E[S]:delete c[w],1}G||(N=q.time,j=Rl(ye,0,N),G=E[S]={tween:new _,time:N,timer:j,delay:q.delay,duration:q.duration,ease:q.ease,index:g},q=null,++E.count)}e.svg.axis=function(){var c=e.scale.linear(),g=Xi,w=6,S=6,q=3,E=[10],G=null,N;function j(ae){ae.each(function(){var ie=e.select(this),ge=this.__chart__||c,ye=this.__chart__=c.copy(),ze=G==null?ye.ticks?ye.ticks.apply(ye,E):ye.domain():G,Ve=N==null?ye.tickFormat?ye.tickFormat.apply(ye,E):V:N,_e=ie.selectAll(".tick").data(ze,ye),Ce=_e.enter().insert("g",".domain").attr("class","tick").style("opacity",ke),Ee=e.transition(_e.exit()).style("opacity",ke).remove(),Ge=e.transition(_e.order()).style("opacity",1),We=Math.max(w,0)+q,Re,br=lr(ye),Yr=ie.selectAll(".domain").data([0]),Wr=(Yr.enter().append("path").attr("class","domain"),e.transition(Yr));Ce.append("line"),Ce.append("text");var Vr=Ce.select("line"),Jr=Ge.select("line"),$r=_e.select("text").text(Ve),bt=Ce.select("text"),Qr=Ge.select("text"),ht=g==="top"||g==="left"?-1:1,Kt,Xn,sn,Fr;if(g==="bottom"||g==="top"?(Re=ll,Kt="x",sn="y",Xn="x2",Fr="y2",$r.attr("dy",ht<0?"0em":".71em").style("text-anchor","middle"),Wr.attr("d","M"+br[0]+","+ht*S+"V0H"+br[1]+"V"+ht*S)):(Re=sl,Kt="y",sn="x",Xn="y2",Fr="x2",$r.attr("dy",".32em").style("text-anchor",ht<0?"end":"start"),Wr.attr("d","M"+ht*S+","+br[0]+"H0V"+br[1]+"H"+ht*S)),Vr.attr(Fr,ht*w),bt.attr(sn,ht*We),Jr.attr(Xn,0).attr(Fr,ht*w),Qr.attr(Kt,0).attr(sn,ht*We),ye.rangeBand){var _t=ye,wt=_t.rangeBand()/2;ge=ye=function(Qt){return _t(Qt)+wt}}else ge.rangeBand?ge=ye:Ee.call(Re,ye,ge);Ce.call(Re,ge,ye),Ge.call(Re,ye,ye)})}return j.scale=function(ae){return arguments.length?(c=ae,j):c},j.orient=function(ae){return arguments.length?(g=ae in ol?ae+"":Xi,j):g},j.ticks=function(){return arguments.length?(E=t(arguments),j):E},j.tickValues=function(ae){return arguments.length?(G=ae,j):G},j.tickFormat=function(ae){return arguments.length?(N=ae,j):N},j.tickSize=function(ae){var ie=arguments.length;return ie?(w=+ae,S=+arguments[ie-1],j):w},j.innerTickSize=function(ae){return arguments.length?(w=+ae,j):w},j.outerTickSize=function(ae){return arguments.length?(S=+ae,j):S},j.tickPadding=function(ae){return arguments.length?(q=+ae,j):q},j.tickSubdivide=function(){return arguments.length&&j},j};var Xi="bottom",ol={top:1,right:1,bottom:1,left:1};function ll(c,g,w){c.attr("transform",function(S){var q=g(S);return"translate("+(isFinite(q)?q:w(S))+",0)"})}function sl(c,g,w){c.attr("transform",function(S){var q=g(S);return"translate(0,"+(isFinite(q)?q:w(S))+")"})}e.svg.brush=function(){var c=Fe(ie,"brushstart","brush","brushend"),g=null,w=null,S=[0,0],q=[0,0],E,G,N=!0,j=!0,ae=go[0];function ie(_e){_e.each(function(){var Ce=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Ve).on("touchstart.brush",Ve),Ee=Ce.selectAll(".background").data([0]);Ee.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Ce.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ge=Ce.selectAll(".resize").data(ae,V);Ge.exit().remove(),Ge.enter().append("g").attr("class",function(Yr){return"resize "+Yr}).style("cursor",function(Yr){return Xl[Yr]}).append("rect").attr("x",function(Yr){return/[ew]$/.test(Yr)?-3:null}).attr("y",function(Yr){return/^[ns]/.test(Yr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ge.style("display",ie.empty()?"none":null);var We=e.transition(Ce),Re=e.transition(Ee),br;g&&(br=lr(g),Re.attr("x",br[0]).attr("width",br[1]-br[0]),ye(We)),w&&(br=lr(w),Re.attr("y",br[0]).attr("height",br[1]-br[0]),ze(We)),ge(We)})}ie.event=function(_e){_e.each(function(){var Ce=c.of(this,arguments),Ee={x:S,y:q,i:E,j:G},Ge=this.__chart__||Ee;this.__chart__=Ee,ma?e.select(this).transition().each("start.brush",function(){E=Ge.i,G=Ge.j,S=Ge.x,q=Ge.y,Ce({type:"brushstart"})}).tween("brush:brush",function(){var We=Ol(S,Ee.x),Re=Ol(q,Ee.y);return E=G=null,function(br){S=Ee.x=We(br),q=Ee.y=Re(br),Ce({type:"brush",mode:"resize"})}}).each("end.brush",function(){E=Ee.i,G=Ee.j,Ce({type:"brush",mode:"resize"}),Ce({type:"brushend"})}):(Ce({type:"brushstart"}),Ce({type:"brush",mode:"resize"}),Ce({type:"brushend"}))})};function ge(_e){_e.selectAll(".resize").attr("transform",function(Ce){return"translate("+S[+/e$/.test(Ce)]+","+q[+/^s/.test(Ce)]+")"})}function ye(_e){_e.select(".extent").attr("x",S[0]),_e.selectAll(".extent,.n>rect,.s>rect").attr("width",S[1]-S[0])}function ze(_e){_e.select(".extent").attr("y",q[0]),_e.selectAll(".extent,.e>rect,.w>rect").attr("height",q[1]-q[0])}function Ve(){var _e=this,Ce=e.select(e.event.target),Ee=c.of(_e,arguments),Ge=e.select(_e),We=Ce.datum(),Re=!/^(n|s)$/.test(We)&&g,br=!/^(e|w)$/.test(We)&&w,Yr=Ce.classed("extent"),Wr=Or(_e),Vr,Jr=e.mouse(_e),$r,bt=e.select(i(_e)).on("keydown.brush",Kt).on("keyup.brush",Xn);if(e.event.changedTouches?bt.on("touchmove.brush",sn).on("touchend.brush",_t):bt.on("mousemove.brush",sn).on("mouseup.brush",_t),Ge.interrupt().selectAll("*").interrupt(),Yr)Jr[0]=S[0]-Jr[0],Jr[1]=q[0]-Jr[1];else if(We){var Qr=+/w$/.test(We),ht=+/^n/.test(We);$r=[S[1-Qr]-Jr[0],q[1-ht]-Jr[1]],Jr[0]=S[Qr],Jr[1]=q[ht]}else e.event.altKey&&(Vr=Jr.slice());Ge.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Ce.style("cursor")),Ee({type:"brushstart"}),sn();function Kt(){e.event.keyCode==32&&(Yr||(Vr=null,Jr[0]-=S[1],Jr[1]-=q[1],Yr=2),De())}function Xn(){e.event.keyCode==32&&Yr==2&&(Jr[0]+=S[1],Jr[1]+=q[1],Yr=0,De())}function sn(){var wt=e.mouse(_e),Qt=!1;$r&&(wt[0]+=$r[0],wt[1]+=$r[1]),Yr||(e.event.altKey?(Vr||(Vr=[(S[0]+S[1])/2,(q[0]+q[1])/2]),Jr[0]=S[+(wt[0]{(function(e,r){typeof td=="object"&&typeof W_!="undefined"?r(td):(e=e||self,r(e.d3=e.d3||{}))})(td,function(e){"use strict";var r=new Date,t=new Date;function n(Te,Ye,Ar,Nr){function Er(Ae){return Te(Ae=arguments.length===0?new Date:new Date(+Ae)),Ae}return Er.floor=function(Ae){return Te(Ae=new Date(+Ae)),Ae},Er.ceil=function(Ae){return Te(Ae=new Date(Ae-1)),Ye(Ae,1),Te(Ae),Ae},Er.round=function(Ae){var Xe=Er(Ae),hr=Er.ceil(Ae);return Ae-Xe0))return wr;do wr.push(mr=new Date(+Ae)),Ye(Ae,hr),Te(Ae);while(mr=Xe)for(;Te(Xe),!Ae(Xe);)Xe.setTime(Xe-1)},function(Xe,hr){if(Xe>=Xe)if(hr<0)for(;++hr<=0;)for(;Ye(Xe,-1),!Ae(Xe););else for(;--hr>=0;)for(;Ye(Xe,1),!Ae(Xe););})},Ar&&(Er.count=function(Ae,Xe){return r.setTime(+Ae),t.setTime(+Xe),Te(r),Te(t),Math.floor(Ar(r,t))},Er.every=function(Ae){return Ae=Math.floor(Ae),!isFinite(Ae)||!(Ae>0)?null:Ae>1?Er.filter(Nr?function(Xe){return Nr(Xe)%Ae===0}:function(Xe){return Er.count(0,Xe)%Ae===0}):Er}),Er}var a=n(function(){},function(Te,Ye){Te.setTime(+Te+Ye)},function(Te,Ye){return Ye-Te});a.every=function(Te){return Te=Math.floor(Te),!isFinite(Te)||!(Te>0)?null:Te>1?n(function(Ye){Ye.setTime(Math.floor(Ye/Te)*Te)},function(Ye,Ar){Ye.setTime(+Ye+Ar*Te)},function(Ye,Ar){return(Ar-Ye)/Te}):a};var i=a.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,v=n(function(Te){Te.setTime(Te-Te.getMilliseconds())},function(Te,Ye){Te.setTime(+Te+Ye*o)},function(Te,Ye){return(Ye-Te)/o},function(Te){return Te.getUTCSeconds()}),h=v.range,d=n(function(Te){Te.setTime(Te-Te.getMilliseconds()-Te.getSeconds()*o)},function(Te,Ye){Te.setTime(+Te+Ye*l)},function(Te,Ye){return(Ye-Te)/l},function(Te){return Te.getMinutes()}),m=d.range,p=n(function(Te){Te.setTime(Te-Te.getMilliseconds()-Te.getSeconds()*o-Te.getMinutes()*l)},function(Te,Ye){Te.setTime(+Te+Ye*s)},function(Te,Ye){return(Ye-Te)/s},function(Te){return Te.getHours()}),y=p.range,b=n(function(Te){Te.setHours(0,0,0,0)},function(Te,Ye){Te.setDate(Te.getDate()+Ye)},function(Te,Ye){return(Ye-Te-(Ye.getTimezoneOffset()-Te.getTimezoneOffset())*l)/u},function(Te){return Te.getDate()-1}),C=b.range;function x(Te){return n(function(Ye){Ye.setDate(Ye.getDate()-(Ye.getDay()+7-Te)%7),Ye.setHours(0,0,0,0)},function(Ye,Ar){Ye.setDate(Ye.getDate()+Ar*7)},function(Ye,Ar){return(Ar-Ye-(Ar.getTimezoneOffset()-Ye.getTimezoneOffset())*l)/f})}var _=x(0),A=x(1),k=x(2),M=x(3),D=x(4),z=x(5),F=x(6),H=_.range,W=A.range,B=k.range,X=M.range,V=D.range,re=z.range,te=F.range,K=n(function(Te){Te.setDate(1),Te.setHours(0,0,0,0)},function(Te,Ye){Te.setMonth(Te.getMonth()+Ye)},function(Te,Ye){return Ye.getMonth()-Te.getMonth()+(Ye.getFullYear()-Te.getFullYear())*12},function(Te){return Te.getMonth()}),Q=K.range,fe=n(function(Te){Te.setMonth(0,1),Te.setHours(0,0,0,0)},function(Te,Ye){Te.setFullYear(Te.getFullYear()+Ye)},function(Te,Ye){return Ye.getFullYear()-Te.getFullYear()},function(Te){return Te.getFullYear()});fe.every=function(Te){return!isFinite(Te=Math.floor(Te))||!(Te>0)?null:n(function(Ye){Ye.setFullYear(Math.floor(Ye.getFullYear()/Te)*Te),Ye.setMonth(0,1),Ye.setHours(0,0,0,0)},function(Ye,Ar){Ye.setFullYear(Ye.getFullYear()+Ar*Te)})};var he=fe.range,De=n(function(Te){Te.setUTCSeconds(0,0)},function(Te,Ye){Te.setTime(+Te+Ye*l)},function(Te,Ye){return(Ye-Te)/l},function(Te){return Te.getUTCMinutes()}),Ne=De.range,Fe=n(function(Te){Te.setUTCMinutes(0,0,0)},function(Te,Ye){Te.setTime(+Te+Ye*s)},function(Te,Ye){return(Ye-Te)/s},function(Te){return Te.getUTCHours()}),Je=Fe.range,Le=n(function(Te){Te.setUTCHours(0,0,0,0)},function(Te,Ye){Te.setUTCDate(Te.getUTCDate()+Ye)},function(Te,Ye){return(Ye-Te)/u},function(Te){return Te.getUTCDate()-1}),rr=Le.range;function se(Te){return n(function(Ye){Ye.setUTCDate(Ye.getUTCDate()-(Ye.getUTCDay()+7-Te)%7),Ye.setUTCHours(0,0,0,0)},function(Ye,Ar){Ye.setUTCDate(Ye.getUTCDate()+Ar*7)},function(Ye,Ar){return(Ar-Ye)/f})}var me=se(0),we=se(1),pe=se(2),U=se(3),ee=se(4),$=se(5),Se=se(6),Oe=me.range,Ie=we.range,ir=pe.range,or=U.range,Ue=ee.range,tr=$.range,ur=Se.range,cr=n(function(Te){Te.setUTCDate(1),Te.setUTCHours(0,0,0,0)},function(Te,Ye){Te.setUTCMonth(Te.getUTCMonth()+Ye)},function(Te,Ye){return Ye.getUTCMonth()-Te.getUTCMonth()+(Ye.getUTCFullYear()-Te.getUTCFullYear())*12},function(Te){return Te.getUTCMonth()}),Qe=cr.range,pr=n(function(Te){Te.setUTCMonth(0,1),Te.setUTCHours(0,0,0,0)},function(Te,Ye){Te.setUTCFullYear(Te.getUTCFullYear()+Ye)},function(Te,Ye){return Ye.getUTCFullYear()-Te.getUTCFullYear()},function(Te){return Te.getUTCFullYear()});pr.every=function(Te){return!isFinite(Te=Math.floor(Te))||!(Te>0)?null:n(function(Ye){Ye.setUTCFullYear(Math.floor(Ye.getUTCFullYear()/Te)*Te),Ye.setUTCMonth(0,1),Ye.setUTCHours(0,0,0,0)},function(Ye,Ar){Ye.setUTCFullYear(Ye.getUTCFullYear()+Ar*Te)})};var dr=pr.range;e.timeDay=b,e.timeDays=C,e.timeFriday=z,e.timeFridays=re,e.timeHour=p,e.timeHours=y,e.timeInterval=n,e.timeMillisecond=a,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=m,e.timeMonday=A,e.timeMondays=W,e.timeMonth=K,e.timeMonths=Q,e.timeSaturday=F,e.timeSaturdays=te,e.timeSecond=v,e.timeSeconds=h,e.timeSunday=_,e.timeSundays=H,e.timeThursday=D,e.timeThursdays=V,e.timeTuesday=k,e.timeTuesdays=B,e.timeWednesday=M,e.timeWednesdays=X,e.timeWeek=_,e.timeWeeks=H,e.timeYear=fe,e.timeYears=he,e.utcDay=Le,e.utcDays=rr,e.utcFriday=$,e.utcFridays=tr,e.utcHour=Fe,e.utcHours=Je,e.utcMillisecond=a,e.utcMilliseconds=i,e.utcMinute=De,e.utcMinutes=Ne,e.utcMonday=we,e.utcMondays=Ie,e.utcMonth=cr,e.utcMonths=Qe,e.utcSaturday=Se,e.utcSaturdays=ur,e.utcSecond=v,e.utcSeconds=h,e.utcSunday=me,e.utcSundays=Oe,e.utcThursday=ee,e.utcThursdays=Ue,e.utcTuesday=pe,e.utcTuesdays=ir,e.utcWednesday=U,e.utcWednesdays=or,e.utcWeek=me,e.utcWeeks=Oe,e.utcYear=pr,e.utcYears=dr,Object.defineProperty(e,"__esModule",{value:!0})})});var m0=ne((nd,Z_)=>{(function(e,r){typeof nd=="object"&&typeof Z_!="undefined"?r(nd,xy()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(nd,function(e,r){"use strict";function t(be){if(0<=be.y&&be.y<100){var ke=new Date(-1,be.m,be.d,be.H,be.M,be.S,be.L);return ke.setFullYear(be.y),ke}return new Date(be.y,be.m,be.d,be.H,be.M,be.S,be.L)}function n(be){if(0<=be.y&&be.y<100){var ke=new Date(Date.UTC(-1,be.m,be.d,be.H,be.M,be.S,be.L));return ke.setUTCFullYear(be.y),ke}return new Date(Date.UTC(be.y,be.m,be.d,be.H,be.M,be.S,be.L))}function a(be,ke,$e){return{y:be,m:ke,d:$e,H:0,M:0,S:0,L:0}}function i(be){var ke=be.dateTime,$e=be.date,Ze=be.time,qr=be.periods,Hr=be.days,Pr=be.shortDays,lt=be.months,xt=be.shortMonths,Nt=h(qr),It=d(qr),An=h(Hr),Tn=d(Hr),cn=h(Pr),Ft=d(Pr),jt=h(lt),en=d(lt),Jt=h(xt),aa=d(xt),rt={a:pi,A:io,b:gi,B:ms,c:null,d:K,e:K,f:Ne,H:Q,I:fe,j:he,L:De,m:Fe,M:Je,p:El,q:Bo,Q:Xe,s:hr,S:Le,u:rr,U:se,V:me,w:we,W:pe,x:null,X:null,y:U,Y:ee,Z:$,"%":Ae},rn={a:ys,A:Oo,b:On,B:mi,c:null,d:Se,e:Se,f:Ue,H:Oe,I:Ie,j:ir,L:or,m:tr,M:ur,p:Uo,q:yi,Q:Xe,s:hr,S:cr,u:Qe,U:pr,V:dr,w:Te,W:Ye,x:null,X:null,y:Ar,Y:Nr,Z:Er,"%":Ae},St={a:da,A:qn,b:Na,B:pa,c:wn,d:D,e:D,f:X,H:F,I:F,j:z,L:B,m:M,M:H,p:vn,q:k,Q:re,s:te,S:W,u:p,U:y,V:b,w:m,W:C,x:Ht,X:Bn,y:_,Y:x,Z:A,"%":V};rt.x=dn($e,rt),rt.X=dn(Ze,rt),rt.c=dn(ke,rt),rn.x=dn($e,rn),rn.X=dn(Ze,rn),rn.c=dn(ke,rn);function dn(Kr,Ct){return function(Bt){var Ur=[],Wn=-1,on=0,Pn=Kr.length,At,Wa,Yo;for(Bt instanceof Date||(Bt=new Date(+Bt));++Wn53)return null;"w"in Ur||(Ur.w=1),"Z"in Ur?(on=n(a(Ur.y,0,1)),Pn=on.getUTCDay(),on=Pn>4||Pn===0?r.utcMonday.ceil(on):r.utcMonday(on),on=r.utcDay.offset(on,(Ur.V-1)*7),Ur.y=on.getUTCFullYear(),Ur.m=on.getUTCMonth(),Ur.d=on.getUTCDate()+(Ur.w+6)%7):(on=t(a(Ur.y,0,1)),Pn=on.getDay(),on=Pn>4||Pn===0?r.timeMonday.ceil(on):r.timeMonday(on),on=r.timeDay.offset(on,(Ur.V-1)*7),Ur.y=on.getFullYear(),Ur.m=on.getMonth(),Ur.d=on.getDate()+(Ur.w+6)%7)}else("W"in Ur||"U"in Ur)&&("w"in Ur||(Ur.w="u"in Ur?Ur.u%7:"W"in Ur?1:0),Pn="Z"in Ur?n(a(Ur.y,0,1)).getUTCDay():t(a(Ur.y,0,1)).getDay(),Ur.m=0,Ur.d="W"in Ur?(Ur.w+6)%7+Ur.W*7-(Pn+5)%7:Ur.w+Ur.U*7-(Pn+6)%7);return"Z"in Ur?(Ur.H+=Ur.Z/100|0,Ur.M+=Ur.Z%100,n(Ur)):t(Ur)}}function an(Kr,Ct,Bt,Ur){for(var Wn=0,on=Ct.length,Pn=Bt.length,At,Wa;Wn=Pn)return-1;if(At=Ct.charCodeAt(Wn++),At===37){if(At=Ct.charAt(Wn++),Wa=St[At in o?Ct.charAt(Wn++):At],!Wa||(Ur=Wa(Kr,Bt,Ur))<0)return-1}else if(At!=Bt.charCodeAt(Ur++))return-1}return Ur}function vn(Kr,Ct,Bt){var Ur=Nt.exec(Ct.slice(Bt));return Ur?(Kr.p=It[Ur[0].toLowerCase()],Bt+Ur[0].length):-1}function da(Kr,Ct,Bt){var Ur=cn.exec(Ct.slice(Bt));return Ur?(Kr.w=Ft[Ur[0].toLowerCase()],Bt+Ur[0].length):-1}function qn(Kr,Ct,Bt){var Ur=An.exec(Ct.slice(Bt));return Ur?(Kr.w=Tn[Ur[0].toLowerCase()],Bt+Ur[0].length):-1}function Na(Kr,Ct,Bt){var Ur=Jt.exec(Ct.slice(Bt));return Ur?(Kr.m=aa[Ur[0].toLowerCase()],Bt+Ur[0].length):-1}function pa(Kr,Ct,Bt){var Ur=jt.exec(Ct.slice(Bt));return Ur?(Kr.m=en[Ur[0].toLowerCase()],Bt+Ur[0].length):-1}function wn(Kr,Ct,Bt){return an(Kr,ke,Ct,Bt)}function Ht(Kr,Ct,Bt){return an(Kr,$e,Ct,Bt)}function Bn(Kr,Ct,Bt){return an(Kr,Ze,Ct,Bt)}function pi(Kr){return Pr[Kr.getDay()]}function io(Kr){return Hr[Kr.getDay()]}function gi(Kr){return xt[Kr.getMonth()]}function ms(Kr){return lt[Kr.getMonth()]}function El(Kr){return qr[+(Kr.getHours()>=12)]}function Bo(Kr){return 1+~~(Kr.getMonth()/3)}function ys(Kr){return Pr[Kr.getUTCDay()]}function Oo(Kr){return Hr[Kr.getUTCDay()]}function On(Kr){return xt[Kr.getUTCMonth()]}function mi(Kr){return lt[Kr.getUTCMonth()]}function Uo(Kr){return qr[+(Kr.getUTCHours()>=12)]}function yi(Kr){return 1+~~(Kr.getUTCMonth()/3)}return{format:function(Kr){var Ct=dn(Kr+="",rt);return Ct.toString=function(){return Kr},Ct},parse:function(Kr){var Ct=pn(Kr+="",!1);return Ct.toString=function(){return Kr},Ct},utcFormat:function(Kr){var Ct=dn(Kr+="",rn);return Ct.toString=function(){return Kr},Ct},utcParse:function(Kr){var Ct=pn(Kr+="",!0);return Ct.toString=function(){return Kr},Ct}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(be,ke,$e){var Ze=be<0?"-":"",qr=(Ze?-be:be)+"",Hr=qr.length;return Ze+(Hr<$e?new Array($e-Hr+1).join(ke)+qr:qr)}function v(be){return be.replace(u,"\\$&")}function h(be){return new RegExp("^(?:"+be.map(v).join("|")+")","i")}function d(be){for(var ke={},$e=-1,Ze=be.length;++$e68?1900:2e3),$e+Ze[0].length):-1}function A(be,ke,$e){var Ze=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ke.slice($e,$e+6));return Ze?(be.Z=Ze[1]?0:-(Ze[2]+(Ze[3]||"00")),$e+Ze[0].length):-1}function k(be,ke,$e){var Ze=l.exec(ke.slice($e,$e+1));return Ze?(be.q=Ze[0]*3-3,$e+Ze[0].length):-1}function M(be,ke,$e){var Ze=l.exec(ke.slice($e,$e+2));return Ze?(be.m=Ze[0]-1,$e+Ze[0].length):-1}function D(be,ke,$e){var Ze=l.exec(ke.slice($e,$e+2));return Ze?(be.d=+Ze[0],$e+Ze[0].length):-1}function z(be,ke,$e){var Ze=l.exec(ke.slice($e,$e+3));return Ze?(be.m=0,be.d=+Ze[0],$e+Ze[0].length):-1}function F(be,ke,$e){var Ze=l.exec(ke.slice($e,$e+2));return Ze?(be.H=+Ze[0],$e+Ze[0].length):-1}function H(be,ke,$e){var Ze=l.exec(ke.slice($e,$e+2));return Ze?(be.M=+Ze[0],$e+Ze[0].length):-1}function W(be,ke,$e){var Ze=l.exec(ke.slice($e,$e+2));return Ze?(be.S=+Ze[0],$e+Ze[0].length):-1}function B(be,ke,$e){var Ze=l.exec(ke.slice($e,$e+3));return Ze?(be.L=+Ze[0],$e+Ze[0].length):-1}function X(be,ke,$e){var Ze=l.exec(ke.slice($e,$e+6));return Ze?(be.L=Math.floor(Ze[0]/1e3),$e+Ze[0].length):-1}function V(be,ke,$e){var Ze=s.exec(ke.slice($e,$e+1));return Ze?$e+Ze[0].length:-1}function re(be,ke,$e){var Ze=l.exec(ke.slice($e));return Ze?(be.Q=+Ze[0],$e+Ze[0].length):-1}function te(be,ke,$e){var Ze=l.exec(ke.slice($e));return Ze?(be.s=+Ze[0],$e+Ze[0].length):-1}function K(be,ke){return f(be.getDate(),ke,2)}function Q(be,ke){return f(be.getHours(),ke,2)}function fe(be,ke){return f(be.getHours()%12||12,ke,2)}function he(be,ke){return f(1+r.timeDay.count(r.timeYear(be),be),ke,3)}function De(be,ke){return f(be.getMilliseconds(),ke,3)}function Ne(be,ke){return De(be,ke)+"000"}function Fe(be,ke){return f(be.getMonth()+1,ke,2)}function Je(be,ke){return f(be.getMinutes(),ke,2)}function Le(be,ke){return f(be.getSeconds(),ke,2)}function rr(be){var ke=be.getDay();return ke===0?7:ke}function se(be,ke){return f(r.timeSunday.count(r.timeYear(be)-1,be),ke,2)}function me(be,ke){var $e=be.getDay();return be=$e>=4||$e===0?r.timeThursday(be):r.timeThursday.ceil(be),f(r.timeThursday.count(r.timeYear(be),be)+(r.timeYear(be).getDay()===4),ke,2)}function we(be){return be.getDay()}function pe(be,ke){return f(r.timeMonday.count(r.timeYear(be)-1,be),ke,2)}function U(be,ke){return f(be.getFullYear()%100,ke,2)}function ee(be,ke){return f(be.getFullYear()%1e4,ke,4)}function $(be){var ke=be.getTimezoneOffset();return(ke>0?"-":(ke*=-1,"+"))+f(ke/60|0,"0",2)+f(ke%60,"0",2)}function Se(be,ke){return f(be.getUTCDate(),ke,2)}function Oe(be,ke){return f(be.getUTCHours(),ke,2)}function Ie(be,ke){return f(be.getUTCHours()%12||12,ke,2)}function ir(be,ke){return f(1+r.utcDay.count(r.utcYear(be),be),ke,3)}function or(be,ke){return f(be.getUTCMilliseconds(),ke,3)}function Ue(be,ke){return or(be,ke)+"000"}function tr(be,ke){return f(be.getUTCMonth()+1,ke,2)}function ur(be,ke){return f(be.getUTCMinutes(),ke,2)}function cr(be,ke){return f(be.getUTCSeconds(),ke,2)}function Qe(be){var ke=be.getUTCDay();return ke===0?7:ke}function pr(be,ke){return f(r.utcSunday.count(r.utcYear(be)-1,be),ke,2)}function dr(be,ke){var $e=be.getUTCDay();return be=$e>=4||$e===0?r.utcThursday(be):r.utcThursday.ceil(be),f(r.utcThursday.count(r.utcYear(be),be)+(r.utcYear(be).getUTCDay()===4),ke,2)}function Te(be){return be.getUTCDay()}function Ye(be,ke){return f(r.utcMonday.count(r.utcYear(be)-1,be),ke,2)}function Ar(be,ke){return f(be.getUTCFullYear()%100,ke,2)}function Nr(be,ke){return f(be.getUTCFullYear()%1e4,ke,4)}function Er(){return"+0000"}function Ae(){return"%"}function Xe(be){return+be}function hr(be){return Math.floor(+be/1e3)}var wr;mr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function mr(be){return wr=i(be),e.timeFormat=wr.format,e.timeParse=wr.parse,e.utcFormat=wr.utcFormat,e.utcParse=wr.utcParse,wr}var Tr="%Y-%m-%dT%H:%M:%S.%LZ";function Dr(be){return be.toISOString()}var Or=Date.prototype.toISOString?Dr:e.utcFormat(Tr);function Cr(be){var ke=new Date(be);return isNaN(ke)?null:ke}var ar=+new Date("2000-01-01T00:00:00.000Z")?Cr:e.utcParse(Tr);e.isoFormat=Or,e.isoParse=ar,e.timeFormatDefaultLocale=mr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var wy=ne((ad,X_)=>{(function(e,r){typeof ad=="object"&&typeof X_!="undefined"?r(ad):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(ad,function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,D){if((z=(M=D?M.toExponential(D-1):M.toExponential()).indexOf("e"))<0)return null;var z,F=M.slice(0,z);return[F.length>1?F[0]+F.slice(2):F,+M.slice(z+1)]}function n(M){return M=t(Math.abs(M)),M?M[1]:NaN}function a(M,D){return function(z,F){for(var H=z.length,W=[],B=0,X=M[0],V=0;H>0&&X>0&&(V+X+1>F&&(X=Math.max(1,F-V)),W.push(z.substring(H-=X,H+X)),!((V+=X+1)>F));)X=M[B=(B+1)%M.length];return W.reverse().join(D)}}function i(M){return function(D){return D.replace(/[0-9]/g,function(z){return M[+z]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(D=o.exec(M)))throw new Error("invalid format: "+M);var D;return new s({fill:D[1],align:D[2],sign:D[3],symbol:D[4],zero:D[5],width:D[6],comma:D[7],precision:D[8]&&D[8].slice(1),trim:D[9],type:D[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(M){e:for(var D=M.length,z=1,F=-1,H;z0&&(F=0);break}return F>0?M.slice(0,F)+M.slice(H+1):M}var f;function v(M,D){var z=t(M,D);if(!z)return M+"";var F=z[0],H=z[1],W=H-(f=Math.max(-8,Math.min(8,Math.floor(H/3)))*3)+1,B=F.length;return W===B?F:W>B?F+new Array(W-B+1).join("0"):W>0?F.slice(0,W)+"."+F.slice(W):"0."+new Array(1-W).join("0")+t(M,Math.max(0,D+W-1))[0]}function h(M,D){var z=t(M,D);if(!z)return M+"";var F=z[0],H=z[1];return H<0?"0."+new Array(-H).join("0")+F:F.length>H+1?F.slice(0,H+1)+"."+F.slice(H+1):F+new Array(H-F.length+2).join("0")}var d={"%":function(M,D){return(M*100).toFixed(D)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,D){return M.toExponential(D)},f:function(M,D){return M.toFixed(D)},g:function(M,D){return M.toPrecision(D)},o:function(M){return Math.round(M).toString(8)},p:function(M,D){return h(M*100,D)},r:h,s:v,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function m(M){return M}var p=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(M){var D=M.grouping===void 0||M.thousands===void 0?m:a(p.call(M.grouping,Number),M.thousands+""),z=M.currency===void 0?"":M.currency[0]+"",F=M.currency===void 0?"":M.currency[1]+"",H=M.decimal===void 0?".":M.decimal+"",W=M.numerals===void 0?m:i(p.call(M.numerals,String)),B=M.percent===void 0?"%":M.percent+"",X=M.minus===void 0?"-":M.minus+"",V=M.nan===void 0?"NaN":M.nan+"";function re(K){K=l(K);var Q=K.fill,fe=K.align,he=K.sign,De=K.symbol,Ne=K.zero,Fe=K.width,Je=K.comma,Le=K.precision,rr=K.trim,se=K.type;se==="n"?(Je=!0,se="g"):d[se]||(Le===void 0&&(Le=12),rr=!0,se="g"),(Ne||Q==="0"&&fe==="=")&&(Ne=!0,Q="0",fe="=");var me=De==="$"?z:De==="#"&&/[boxX]/.test(se)?"0"+se.toLowerCase():"",we=De==="$"?F:/[%p]/.test(se)?B:"",pe=d[se],U=/[defgprs%]/.test(se);Le=Le===void 0?6:/[gprs]/.test(se)?Math.max(1,Math.min(21,Le)):Math.max(0,Math.min(20,Le));function ee($){var Se=me,Oe=we,Ie,ir,or;if(se==="c")Oe=pe($)+Oe,$="";else{$=+$;var Ue=$<0||1/$<0;if($=isNaN($)?V:pe(Math.abs($),Le),rr&&($=u($)),Ue&&+$==0&&he!=="+"&&(Ue=!1),Se=(Ue?he==="("?he:X:he==="-"||he==="("?"":he)+Se,Oe=(se==="s"?y[8+f/3]:"")+Oe+(Ue&&he==="("?")":""),U){for(Ie=-1,ir=$.length;++Ieor||or>57){Oe=(or===46?H+$.slice(Ie+1):$.slice(Ie))+Oe,$=$.slice(0,Ie);break}}}Je&&!Ne&&($=D($,1/0));var tr=Se.length+$.length+Oe.length,ur=tr>1)+Se+$+Oe+ur.slice(tr);break;default:$=ur+Se+$+Oe;break}return W($)}return ee.toString=function(){return K+""},ee}function te(K,Q){var fe=re((K=l(K),K.type="f",K)),he=Math.max(-8,Math.min(8,Math.floor(n(Q)/3)))*3,De=Math.pow(10,-he),Ne=y[8+he/3];return function(Fe){return fe(De*Fe)+Ne}}return{format:re,formatPrefix:te}}var C;x({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function x(M){return C=b(M),e.format=C.format,e.formatPrefix=C.formatPrefix,C}function _(M){return Math.max(0,-n(Math.abs(M)))}function A(M,D){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(D)/3)))*3-n(Math.abs(M)))}function k(M,D){return M=Math.abs(M),D=Math.abs(D)-M,Math.max(0,n(D)-n(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=x,e.formatLocale=b,e.formatSpecifier=l,e.precisionFixed=_,e.precisionPrefix=A,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})})});var J_=ne((Xoe,j_)=>{"use strict";j_.exports=function(e){for(var r=e.length,t,n=0;n13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var Ot=ne((joe,$_)=>{"use strict";var ZI=J_();$_.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&ZI(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Rn=ne((Joe,K_)=>{"use strict";K_.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 My=ne((id,Q_)=>{(function(e,r){typeof id=="object"&&typeof Q_!="undefined"?r(id):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(id,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,v,h,d,m;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var p=new ArrayBuffer(l),y=new Uint8Array(p);for(u=0;u>4,y[f++]=(h&15)<<4|d>>2,y[f++]=(d&3)<<6|m&63;return p};e.decode=i,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})})});var Gs=ne(($oe,e6)=>{"use strict";e6.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var ji=ne(fl=>{"use strict";var XI=My().decode,jI=Gs(),Ay=Array.isArray,JI=ArrayBuffer,$I=DataView;function r6(e){return JI.isView(e)&&!(e instanceof $I)}fl.isTypedArray=r6;function od(e){return Ay(e)||r6(e)}fl.isArrayOrTypedArray=od;function KI(e){return!od(e[0])}fl.isArray1D=KI;fl.ensureArray=function(e,r){return Ay(e)||(e=[]),e.length=r,e};var Ta={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Ta.uint8c=Ta.u1c;Ta.uint8=Ta.u1;Ta.int8=Ta.i1;Ta.uint16=Ta.u2;Ta.int16=Ta.i2;Ta.uint32=Ta.u4;Ta.int32=Ta.i4;Ta.float32=Ta.f4;Ta.float64=Ta.f8;function Ty(e){return e.constructor===ArrayBuffer}fl.isArrayBuffer=Ty;fl.decodeTypedArraySpec=function(e){var r=[],t=QI(e),n=t.dtype,a=Ta[n];if(!a)throw new Error('Error in dtype: "'+n+'"');var i=a.BYTES_PER_ELEMENT,o=t.bdata;Ty(o)||(o=XI(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,v=+l[0],h=i*v,d=0;if(s===1)r=new a(o);else if(s===2)for(u=+l[1],f=0;f{"use strict";var n6=Ot(),Sy=ji().isArrayOrTypedArray;l6.exports=function(r,t){if(n6(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var n=t.split("."),a,i,o,l;for(l=0;l{"use strict";var y0=$v(),aH=/^\w*$/,iH=0,s6=1,ld=2,u6=3,jf=4;f6.exports=function(r,t,n,a){n=n||"name",a=a||"value";var i,o,l,s={};t&&t.length?(l=y0(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i2)return s[d]=s[d]|ld,v.set(h,null);if(f){for(i=d;i{"use strict";var oH=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,lH=/^[^\.\[\]]+$/;v6.exports=function(e,r){for(;r;){var t=e.match(oH);if(t)e=t[1];else if(e.match(lH))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 sd=ne((tle,d6)=>{"use strict";var sH=Ot();d6.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return sH(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}});var m6=ne((nle,g6)=>{"use strict";var p6=ji().isArrayOrTypedArray,Kv=Gs();g6.exports=function e(r,t){for(var n in t){var a=t[n],i=r[n];if(i!==a)if(n.charAt(0)==="_"||typeof a=="function"){if(n in r)continue;r[n]=a}else if(p6(a)&&p6(i)&&Kv(a[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(a.length,i.length),l=0;l{"use strict";function uH(e,r){var t=e%r;return t<0?t+r:t}function fH(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}y6.exports={mod:uH,modHalf:fH}});var Jl=ne((ile,ud)=>{(function(e){var r=/^\s+/,t=/\s+$/,n=0,a=e.round,i=e.min,o=e.max,l=e.random;function s(U,ee){if(U=U||"",ee=ee||{},U instanceof s)return U;if(!(this instanceof s))return new s(U,ee);var $=u(U);this._originalInput=U,this._r=$.r,this._g=$.g,this._b=$.b,this._a=$.a,this._roundA=a(100*this._a)/100,this._format=ee.format||$.format,this._gradientType=ee.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=$.ok,this._tc_id=n++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var U=this.toRgb();return(U.r*299+U.g*587+U.b*114)/1e3},getLuminance:function(){var U=this.toRgb(),ee,$,Se,Oe,Ie,ir;return ee=U.r/255,$=U.g/255,Se=U.b/255,ee<=.03928?Oe=ee/12.92:Oe=e.pow((ee+.055)/1.055,2.4),$<=.03928?Ie=$/12.92:Ie=e.pow(($+.055)/1.055,2.4),Se<=.03928?ir=Se/12.92:ir=e.pow((Se+.055)/1.055,2.4),.2126*Oe+.7152*Ie+.0722*ir},setAlpha:function(U){return this._a=K(U),this._roundA=a(100*this._a)/100,this},toHsv:function(){var U=d(this._r,this._g,this._b);return{h:U.h*360,s:U.s,v:U.v,a:this._a}},toHsvString:function(){var U=d(this._r,this._g,this._b),ee=a(U.h*360),$=a(U.s*100),Se=a(U.v*100);return this._a==1?"hsv("+ee+", "+$+"%, "+Se+"%)":"hsva("+ee+", "+$+"%, "+Se+"%, "+this._roundA+")"},toHsl:function(){var U=v(this._r,this._g,this._b);return{h:U.h*360,s:U.s,l:U.l,a:this._a}},toHslString:function(){var U=v(this._r,this._g,this._b),ee=a(U.h*360),$=a(U.s*100),Se=a(U.l*100);return this._a==1?"hsl("+ee+", "+$+"%, "+Se+"%)":"hsla("+ee+", "+$+"%, "+Se+"%, "+this._roundA+")"},toHex:function(U){return p(this._r,this._g,this._b,U)},toHexString:function(U){return"#"+this.toHex(U)},toHex8:function(U){return y(this._r,this._g,this._b,this._a,U)},toHex8String:function(U){return"#"+this.toHex8(U)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(Q(this._r,255)*100)+"%",g:a(Q(this._g,255)*100)+"%",b:a(Q(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(Q(this._r,255)*100)+"%, "+a(Q(this._g,255)*100)+"%, "+a(Q(this._b,255)*100)+"%)":"rgba("+a(Q(this._r,255)*100)+"%, "+a(Q(this._g,255)*100)+"%, "+a(Q(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:re[p(this._r,this._g,this._b,!0)]||!1},toFilter:function(U){var ee="#"+b(this._r,this._g,this._b,this._a),$=ee,Se=this._gradientType?"GradientType = 1, ":"";if(U){var Oe=s(U);$="#"+b(Oe._r,Oe._g,Oe._b,Oe._a)}return"progid:DXImageTransform.Microsoft.gradient("+Se+"startColorstr="+ee+",endColorstr="+$+")"},toString:function(U){var ee=!!U;U=U||this._format;var $=!1,Se=this._a<1&&this._a>=0,Oe=!ee&&Se&&(U==="hex"||U==="hex6"||U==="hex3"||U==="hex4"||U==="hex8"||U==="name");return Oe?U==="name"&&this._a===0?this.toName():this.toRgbString():(U==="rgb"&&($=this.toRgbString()),U==="prgb"&&($=this.toPercentageRgbString()),(U==="hex"||U==="hex6")&&($=this.toHexString()),U==="hex3"&&($=this.toHexString(!0)),U==="hex4"&&($=this.toHex8String(!0)),U==="hex8"&&($=this.toHex8String()),U==="name"&&($=this.toName()),U==="hsl"&&($=this.toHslString()),U==="hsv"&&($=this.toHsvString()),$||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(U,ee){var $=U.apply(null,[this].concat([].slice.call(ee)));return this._r=$._r,this._g=$._g,this._b=$._b,this.setAlpha($._a),this},lighten:function(){return this._applyModification(A,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(_,arguments)},spin:function(){return this._applyModification(D,arguments)},_applyCombination:function(U,ee){return U.apply(null,[this].concat([].slice.call(ee)))},analogous:function(){return this._applyCombination(B,arguments)},complement:function(){return this._applyCombination(z,arguments)},monochromatic:function(){return this._applyCombination(X,arguments)},splitcomplement:function(){return this._applyCombination(W,arguments)},triad:function(){return this._applyCombination(F,arguments)},tetrad:function(){return this._applyCombination(H,arguments)}},s.fromRatio=function(U,ee){if(typeof U=="object"){var $={};for(var Se in U)U.hasOwnProperty(Se)&&(Se==="a"?$[Se]=U[Se]:$[Se]=Je(U[Se]));U=$}return s(U,ee)};function u(U){var ee={r:0,g:0,b:0},$=1,Se=null,Oe=null,Ie=null,ir=!1,or=!1;return typeof U=="string"&&(U=we(U)),typeof U=="object"&&(me(U.r)&&me(U.g)&&me(U.b)?(ee=f(U.r,U.g,U.b),ir=!0,or=String(U.r).substr(-1)==="%"?"prgb":"rgb"):me(U.h)&&me(U.s)&&me(U.v)?(Se=Je(U.s),Oe=Je(U.v),ee=m(U.h,Se,Oe),ir=!0,or="hsv"):me(U.h)&&me(U.s)&&me(U.l)&&(Se=Je(U.s),Ie=Je(U.l),ee=h(U.h,Se,Ie),ir=!0,or="hsl"),U.hasOwnProperty("a")&&($=U.a)),$=K($),{ok:ir,format:U.format||or,r:i(255,o(ee.r,0)),g:i(255,o(ee.g,0)),b:i(255,o(ee.b,0)),a:$}}function f(U,ee,$){return{r:Q(U,255)*255,g:Q(ee,255)*255,b:Q($,255)*255}}function v(U,ee,$){U=Q(U,255),ee=Q(ee,255),$=Q($,255);var Se=o(U,ee,$),Oe=i(U,ee,$),Ie,ir,or=(Se+Oe)/2;if(Se==Oe)Ie=ir=0;else{var Ue=Se-Oe;switch(ir=or>.5?Ue/(2-Se-Oe):Ue/(Se+Oe),Se){case U:Ie=(ee-$)/Ue+(ee<$?6:0);break;case ee:Ie=($-U)/Ue+2;break;case $:Ie=(U-ee)/Ue+4;break}Ie/=6}return{h:Ie,s:ir,l:or}}function h(U,ee,$){var Se,Oe,Ie;U=Q(U,360),ee=Q(ee,100),$=Q($,100);function ir(tr,ur,cr){return cr<0&&(cr+=1),cr>1&&(cr-=1),cr<1/6?tr+(ur-tr)*6*cr:cr<1/2?ur:cr<2/3?tr+(ur-tr)*(2/3-cr)*6:tr}if(ee===0)Se=Oe=Ie=$;else{var or=$<.5?$*(1+ee):$+ee-$*ee,Ue=2*$-or;Se=ir(Ue,or,U+1/3),Oe=ir(Ue,or,U),Ie=ir(Ue,or,U-1/3)}return{r:Se*255,g:Oe*255,b:Ie*255}}function d(U,ee,$){U=Q(U,255),ee=Q(ee,255),$=Q($,255);var Se=o(U,ee,$),Oe=i(U,ee,$),Ie,ir,or=Se,Ue=Se-Oe;if(ir=Se===0?0:Ue/Se,Se==Oe)Ie=0;else{switch(Se){case U:Ie=(ee-$)/Ue+(ee<$?6:0);break;case ee:Ie=($-U)/Ue+2;break;case $:Ie=(U-ee)/Ue+4;break}Ie/=6}return{h:Ie,s:ir,v:or}}function m(U,ee,$){U=Q(U,360)*6,ee=Q(ee,100),$=Q($,100);var Se=e.floor(U),Oe=U-Se,Ie=$*(1-ee),ir=$*(1-Oe*ee),or=$*(1-(1-Oe)*ee),Ue=Se%6,tr=[$,ir,Ie,Ie,or,$][Ue],ur=[or,$,$,ir,Ie,Ie][Ue],cr=[Ie,Ie,or,$,$,ir][Ue];return{r:tr*255,g:ur*255,b:cr*255}}function p(U,ee,$,Se){var Oe=[Fe(a(U).toString(16)),Fe(a(ee).toString(16)),Fe(a($).toString(16))];return Se&&Oe[0].charAt(0)==Oe[0].charAt(1)&&Oe[1].charAt(0)==Oe[1].charAt(1)&&Oe[2].charAt(0)==Oe[2].charAt(1)?Oe[0].charAt(0)+Oe[1].charAt(0)+Oe[2].charAt(0):Oe.join("")}function y(U,ee,$,Se,Oe){var Ie=[Fe(a(U).toString(16)),Fe(a(ee).toString(16)),Fe(a($).toString(16)),Fe(Le(Se))];return Oe&&Ie[0].charAt(0)==Ie[0].charAt(1)&&Ie[1].charAt(0)==Ie[1].charAt(1)&&Ie[2].charAt(0)==Ie[2].charAt(1)&&Ie[3].charAt(0)==Ie[3].charAt(1)?Ie[0].charAt(0)+Ie[1].charAt(0)+Ie[2].charAt(0)+Ie[3].charAt(0):Ie.join("")}function b(U,ee,$,Se){var Oe=[Fe(Le(Se)),Fe(a(U).toString(16)),Fe(a(ee).toString(16)),Fe(a($).toString(16))];return Oe.join("")}s.equals=function(U,ee){return!U||!ee?!1:s(U).toRgbString()==s(ee).toRgbString()},s.random=function(){return s.fromRatio({r:l(),g:l(),b:l()})};function C(U,ee){ee=ee===0?0:ee||10;var $=s(U).toHsl();return $.s-=ee/100,$.s=fe($.s),s($)}function x(U,ee){ee=ee===0?0:ee||10;var $=s(U).toHsl();return $.s+=ee/100,$.s=fe($.s),s($)}function _(U){return s(U).desaturate(100)}function A(U,ee){ee=ee===0?0:ee||10;var $=s(U).toHsl();return $.l+=ee/100,$.l=fe($.l),s($)}function k(U,ee){ee=ee===0?0:ee||10;var $=s(U).toRgb();return $.r=o(0,i(255,$.r-a(255*-(ee/100)))),$.g=o(0,i(255,$.g-a(255*-(ee/100)))),$.b=o(0,i(255,$.b-a(255*-(ee/100)))),s($)}function M(U,ee){ee=ee===0?0:ee||10;var $=s(U).toHsl();return $.l-=ee/100,$.l=fe($.l),s($)}function D(U,ee){var $=s(U).toHsl(),Se=($.h+ee)%360;return $.h=Se<0?360+Se:Se,s($)}function z(U){var ee=s(U).toHsl();return ee.h=(ee.h+180)%360,s(ee)}function F(U){var ee=s(U).toHsl(),$=ee.h;return[s(U),s({h:($+120)%360,s:ee.s,l:ee.l}),s({h:($+240)%360,s:ee.s,l:ee.l})]}function H(U){var ee=s(U).toHsl(),$=ee.h;return[s(U),s({h:($+90)%360,s:ee.s,l:ee.l}),s({h:($+180)%360,s:ee.s,l:ee.l}),s({h:($+270)%360,s:ee.s,l:ee.l})]}function W(U){var ee=s(U).toHsl(),$=ee.h;return[s(U),s({h:($+72)%360,s:ee.s,l:ee.l}),s({h:($+216)%360,s:ee.s,l:ee.l})]}function B(U,ee,$){ee=ee||6,$=$||30;var Se=s(U).toHsl(),Oe=360/$,Ie=[s(U)];for(Se.h=(Se.h-(Oe*ee>>1)+720)%360;--ee;)Se.h=(Se.h+Oe)%360,Ie.push(s(Se));return Ie}function X(U,ee){ee=ee||6;for(var $=s(U).toHsv(),Se=$.h,Oe=$.s,Ie=$.v,ir=[],or=1/ee;ee--;)ir.push(s({h:Se,s:Oe,v:Ie})),Ie=(Ie+or)%1;return ir}s.mix=function(U,ee,$){$=$===0?0:$||50;var Se=s(U).toRgb(),Oe=s(ee).toRgb(),Ie=$/100,ir={r:(Oe.r-Se.r)*Ie+Se.r,g:(Oe.g-Se.g)*Ie+Se.g,b:(Oe.b-Se.b)*Ie+Se.b,a:(Oe.a-Se.a)*Ie+Se.a};return s(ir)},s.readability=function(U,ee){var $=s(U),Se=s(ee);return(e.max($.getLuminance(),Se.getLuminance())+.05)/(e.min($.getLuminance(),Se.getLuminance())+.05)},s.isReadable=function(U,ee,$){var Se=s.readability(U,ee),Oe,Ie;switch(Ie=!1,Oe=pe($),Oe.level+Oe.size){case"AAsmall":case"AAAlarge":Ie=Se>=4.5;break;case"AAlarge":Ie=Se>=3;break;case"AAAsmall":Ie=Se>=7;break}return Ie},s.mostReadable=function(U,ee,$){var Se=null,Oe=0,Ie,ir,or,Ue;$=$||{},ir=$.includeFallbackColors,or=$.level,Ue=$.size;for(var tr=0;trOe&&(Oe=Ie,Se=s(ee[tr]));return s.isReadable(U,Se,{level:or,size:Ue})||!ir?Se:($.includeFallbackColors=!1,s.mostReadable(U,["#fff","#000"],$))};var V=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},re=s.hexNames=te(V);function te(U){var ee={};for(var $ in U)U.hasOwnProperty($)&&(ee[U[$]]=$);return ee}function K(U){return U=parseFloat(U),(isNaN(U)||U<0||U>1)&&(U=1),U}function Q(U,ee){De(U)&&(U="100%");var $=Ne(U);return U=i(ee,o(0,parseFloat(U))),$&&(U=parseInt(U*ee,10)/100),e.abs(U-ee)<1e-6?1:U%ee/parseFloat(ee)}function fe(U){return i(1,o(0,U))}function he(U){return parseInt(U,16)}function De(U){return typeof U=="string"&&U.indexOf(".")!=-1&&parseFloat(U)===1}function Ne(U){return typeof U=="string"&&U.indexOf("%")!=-1}function Fe(U){return U.length==1?"0"+U:""+U}function Je(U){return U<=1&&(U=U*100+"%"),U}function Le(U){return e.round(parseFloat(U)*255).toString(16)}function rr(U){return he(U)/255}var se=function(){var U="[-\\+]?\\d+%?",ee="[-\\+]?\\d*\\.\\d+%?",$="(?:"+ee+")|(?:"+U+")",Se="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?",Oe="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?";return{CSS_UNIT:new RegExp($),rgb:new RegExp("rgb"+Se),rgba:new RegExp("rgba"+Oe),hsl:new RegExp("hsl"+Se),hsla:new RegExp("hsla"+Oe),hsv:new RegExp("hsv"+Se),hsva:new RegExp("hsva"+Oe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function me(U){return!!se.CSS_UNIT.exec(U)}function we(U){U=U.replace(r,"").replace(t,"").toLowerCase();var ee=!1;if(V[U])U=V[U],ee=!0;else if(U=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var $;return($=se.rgb.exec(U))?{r:$[1],g:$[2],b:$[3]}:($=se.rgba.exec(U))?{r:$[1],g:$[2],b:$[3],a:$[4]}:($=se.hsl.exec(U))?{h:$[1],s:$[2],l:$[3]}:($=se.hsla.exec(U))?{h:$[1],s:$[2],l:$[3],a:$[4]}:($=se.hsv.exec(U))?{h:$[1],s:$[2],v:$[3]}:($=se.hsva.exec(U))?{h:$[1],s:$[2],v:$[3],a:$[4]}:($=se.hex8.exec(U))?{r:he($[1]),g:he($[2]),b:he($[3]),a:rr($[4]),format:ee?"name":"hex8"}:($=se.hex6.exec(U))?{r:he($[1]),g:he($[2]),b:he($[3]),format:ee?"name":"hex"}:($=se.hex4.exec(U))?{r:he($[1]+""+$[1]),g:he($[2]+""+$[2]),b:he($[3]+""+$[3]),a:rr($[4]+""+$[4]),format:ee?"name":"hex8"}:($=se.hex3.exec(U))?{r:he($[1]+""+$[1]),g:he($[2]+""+$[2]),b:he($[3]+""+$[3]),format:ee?"name":"hex"}:!1}function pe(U){var ee,$;return U=U||{level:"AA",size:"small"},ee=(U.level||"AA").toUpperCase(),$=(U.size||"small").toLowerCase(),ee!=="AA"&&ee!=="AAA"&&(ee="AA"),$!=="small"&&$!=="large"&&($="small"),{level:ee,size:$}}typeof ud!="undefined"&&ud.exports?ud.exports=s:window.tinycolor=s})(Math)});var la=ne(r1=>{"use strict";var b6=Gs(),Qv=Array.isArray;function cH(e,r){var t,n;for(t=0;t{"use strict";_6.exports=function(e){var r=e.variantValues,t=e.editType,n=e.colorEditType;n===void 0&&(n=t);var a={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:n},weight:a,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var t1=ne((sle,x6)=>{"use strict";x6.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var _0=ne((ule,A6)=>{"use strict";var w6=t1(),M6=$a(),Cy=M6({editType:"none"});Cy.family.dflt=w6.HOVERFONT;Cy.size.dflt=w6.HOVERFONTSIZE;A6.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:Cy,grouptitlefont:M6({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var fd=ne((fle,T6)=>{"use strict";var vH=$a(),n1=_0().hoverlabel,a1=la().extendFlat;T6.exports={hoverlabel:{bgcolor:a1({},n1.bgcolor,{arrayOk:!0}),bordercolor:a1({},n1.bordercolor,{arrayOk:!0}),font:vH({arrayOk:!0,editType:"none"}),align:a1({},n1.align,{arrayOk:!0}),namelength:a1({},n1.namelength,{arrayOk:!0}),showarrow:a1({},n1.showarrow),editType:"none"}}});var bo=ne((cle,k6)=>{"use strict";var hH=$a(),dH=fd();k6.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:hH({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:dH.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var Jf=ne((vle,L6)=>{"use strict";var pH=Jl(),cd={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},S6=cd.RdBu;function gH(e,r){if(r||(r=S6),!e)return r;function t(){try{e=cd[e]||JSON.parse(e)}catch(n){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),C6(e)?e:r}function C6(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";$f.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];$f.defaultLine="#444";$f.lightLine="#eee";$f.background="#fff";$f.borderLine="#BEC8D9";$f.lightFraction=100*10/11});var Pt=ne((dle,q6)=>{"use strict";var Ci=Jl(),yH=Ot(),bH=ji().isTypedArray,ya=q6.exports={},vd=cl();ya.defaults=vd.defaults;var _H=ya.defaultLine=vd.defaultLine;ya.lightLine=vd.lightLine;var qy=ya.background=vd.background;ya.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};ya.rgb=function(e){return ya.tinyRGB(Ci(e))};ya.opacity=function(e){return e?Ci(e).getAlpha():0};ya.addOpacity=function(e,r){var t=Ci(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};ya.combine=function(e,r){var t=Ci(e).toRgb();if(t.a===1)return Ci(e).toRgbString();var n=Ci(r||qy).toRgb(),a=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},i={r:a.r*(1-t.a)+t.r*t.a,g:a.g*(1-t.a)+t.g*t.a,b:a.b*(1-t.a)+t.b*t.a};return Ci(i).toRgbString()};ya.interpolate=function(e,r,t){var n=Ci(e).toRgb(),a=Ci(r).toRgb(),i={r:t*n.r+(1-t)*a.r,g:t*n.g+(1-t)*a.g,b:t*n.b+(1-t)*a.b};return Ci(i).toRgbString()};ya.contrast=function(e,r,t){var n=Ci(e);n.getAlpha()!==1&&(n=Ci(ya.combine(e,qy)));var a=n.isDark()?r?n.lighten(r):qy:t?n.darken(t):_H;return a.toString()};ya.stroke=function(e,r){var t=Ci(r);e.style({stroke:ya.tinyRGB(t),"stroke-opacity":t.getAlpha()})};ya.fill=function(e,r){var t=Ci(r);e.style({fill:ya.tinyRGB(t),"fill-opacity":t.getAlpha()})};ya.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,n,a,i;for(t=0;t=0)))return e;if(i===3)n[i]>1&&(n[i]=1);else if(n[i]>=1)return e}var o=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return a?"rgba("+o+", "+n[3]+")":"rgb("+o+")"}});var hd=ne((ple,D6)=>{"use strict";D6.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var x0=ne(E6=>{"use strict";E6.counter=function(e,r,t,n){var a=(r||"")+(t?"":"$"),i=n===!1?"":"^";return e==="xy"?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+a)}});var N6=ne(Li=>{"use strict";var Dy=Ot(),P6=Jl(),R6=la().extendFlat,xH=bo(),wH=Jf(),MH=Pt(),AH=hd().DESELECTDIM,w0=$v(),z6=x0().counter,TH=b0().modHalf,$l=ji().isArrayOrTypedArray,Eu=ji().isTypedArraySpec,Pu=ji().decodeTypedArraySpec;Li.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set($l(e)?e:Eu(e)?Pu(e):t)}},enumerated:{coerceFunction:function(e,r,t,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,n=0;nn.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}Eu(e)&&(e=Pu(e)),e%1||!Dy(e)||n.min!==void 0&&en.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,n){if(typeof e!="string"){var a=typeof e=="number";n.strict===!0||!a?r.set(t):r.set(String(e))}else n.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Eu(e)&&(e=Pu(e)),P6(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function n(a){return P6(a).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(n)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(wH.get(e,t))}},angle:{coerceFunction:function(e,r,t){Eu(e)&&(e=Pu(e)),e==="auto"?r.set("auto"):Dy(e)?r.set(TH(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,n){var a=n.regex||z6(t);if(typeof e=="string"&&a.test(e)){r.set(e);return}r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!z6(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var a=e.split("+"),i=0;i{"use strict";var F6={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:{}}},I6={};function H6(e,r){for(var t in e){var n=e[t];n.valType?r[t]=n.dflt:(r[t]||(r[t]={}),H6(n,r[t]))}}H6(F6,I6);B6.exports={configAttributes:F6,dfltConfig:I6}});var Py=ne((ble,O6)=>{"use strict";var Ey=kt(),kH=Ot(),i1=[];O6.exports=function(e,r){if(i1.indexOf(e)!==-1)return;i1.push(e);var t=1e3;kH(r)?t=r:r==="long"&&(t=3e3);var n=Ey.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var a=n.selectAll(".notifier-note").data(i1);function i(o){o.duration(700).style("opacity",0).each("end",function(l){var s=i1.indexOf(l);s!==-1&&i1.splice(s,1),Ey.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var l=Ey.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(i)});for(var s=l.append("p"),u=o.split(//g),f=0;f{"use strict";var M0=Kf().dfltConfig,Ry=Py(),zy=U6.exports={};zy.log=function(){var e;if(M0.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};zy.warn=function(){var e;if(M0.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};zy.error=function(){var e;if(M0.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var pd=ne((xle,Y6)=>{"use strict";Y6.exports=function(){}});var Ny=ne((wle,G6)=>{"use strict";G6.exports=function(r,t){if(t instanceof RegExp){for(var n=t.toString(),a=0;a{V6.exports=SH;function SH(){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 X6=ne((Ale,Z6)=>{Z6.exports=CH;function CH(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 J6=ne((Tle,j6)=>{j6.exports=LH;function LH(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 Fy=ne((kle,$6)=>{$6.exports=qH;function qH(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 Q6=ne((Sle,K6)=>{K6.exports=DH;function DH(e,r){if(e===r){var t=r[1],n=r[2],a=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=n,e[9]=i,e[11]=r[14],e[12]=a,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var rx=ne((Cle,ex)=>{ex.exports=EH;function EH(e,r){var t=r[0],n=r[1],a=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],p=r[13],y=r[14],b=r[15],C=t*l-n*o,x=t*s-a*o,_=t*u-i*o,A=n*s-a*l,k=n*u-i*l,M=a*u-i*s,D=f*p-v*m,z=f*y-h*m,F=f*b-d*m,H=v*y-h*p,W=v*b-d*p,B=h*b-d*y,X=C*B-x*W+_*H+A*F-k*z+M*D;return X?(X=1/X,e[0]=(l*B-s*W+u*H)*X,e[1]=(a*W-n*B-i*H)*X,e[2]=(p*M-y*k+b*A)*X,e[3]=(h*k-v*M-d*A)*X,e[4]=(s*F-o*B-u*z)*X,e[5]=(t*B-a*F+i*z)*X,e[6]=(y*_-m*M-b*x)*X,e[7]=(f*M-h*_+d*x)*X,e[8]=(o*W-l*F+u*D)*X,e[9]=(n*F-t*W-i*D)*X,e[10]=(m*k-p*_+b*C)*X,e[11]=(v*_-f*k-d*C)*X,e[12]=(l*z-o*H-s*D)*X,e[13]=(t*H-n*z+a*D)*X,e[14]=(p*x-m*A-y*C)*X,e[15]=(f*A-v*x+h*C)*X,e):null}});var nx=ne((Lle,tx)=>{tx.exports=PH;function PH(e,r){var t=r[0],n=r[1],a=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],v=r[9],h=r[10],d=r[11],m=r[12],p=r[13],y=r[14],b=r[15];return e[0]=l*(h*b-d*y)-v*(s*b-u*y)+p*(s*d-u*h),e[1]=-(n*(h*b-d*y)-v*(a*b-i*y)+p*(a*d-i*h)),e[2]=n*(s*b-u*y)-l*(a*b-i*y)+p*(a*u-i*s),e[3]=-(n*(s*d-u*h)-l*(a*d-i*h)+v*(a*u-i*s)),e[4]=-(o*(h*b-d*y)-f*(s*b-u*y)+m*(s*d-u*h)),e[5]=t*(h*b-d*y)-f*(a*b-i*y)+m*(a*d-i*h),e[6]=-(t*(s*b-u*y)-o*(a*b-i*y)+m*(a*u-i*s)),e[7]=t*(s*d-u*h)-o*(a*d-i*h)+f*(a*u-i*s),e[8]=o*(v*b-d*p)-f*(l*b-u*p)+m*(l*d-u*v),e[9]=-(t*(v*b-d*p)-f*(n*b-i*p)+m*(n*d-i*v)),e[10]=t*(l*b-u*p)-o*(n*b-i*p)+m*(n*u-i*l),e[11]=-(t*(l*d-u*v)-o*(n*d-i*v)+f*(n*u-i*l)),e[12]=-(o*(v*y-h*p)-f*(l*y-s*p)+m*(l*h-s*v)),e[13]=t*(v*y-h*p)-f*(n*y-a*p)+m*(n*h-a*v),e[14]=-(t*(l*y-s*p)-o*(n*y-a*p)+m*(n*s-a*l)),e[15]=t*(l*h-s*v)-o*(n*h-a*v)+f*(n*s-a*l),e}});var ix=ne((qle,ax)=>{ax.exports=RH;function RH(e){var r=e[0],t=e[1],n=e[2],a=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],v=e[10],h=e[11],d=e[12],m=e[13],p=e[14],y=e[15],b=r*o-t*i,C=r*l-n*i,x=r*s-a*i,_=t*l-n*o,A=t*s-a*o,k=n*s-a*l,M=u*m-f*d,D=u*p-v*d,z=u*y-h*d,F=f*p-v*m,H=f*y-h*m,W=v*y-h*p;return b*W-C*H+x*F+_*z-A*D+k*M}});var lx=ne((Dle,ox)=>{ox.exports=zH;function zH(e,r,t){var n=r[0],a=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],v=r[8],h=r[9],d=r[10],m=r[11],p=r[12],y=r[13],b=r[14],C=r[15],x=t[0],_=t[1],A=t[2],k=t[3];return e[0]=x*n+_*l+A*v+k*p,e[1]=x*a+_*s+A*h+k*y,e[2]=x*i+_*u+A*d+k*b,e[3]=x*o+_*f+A*m+k*C,x=t[4],_=t[5],A=t[6],k=t[7],e[4]=x*n+_*l+A*v+k*p,e[5]=x*a+_*s+A*h+k*y,e[6]=x*i+_*u+A*d+k*b,e[7]=x*o+_*f+A*m+k*C,x=t[8],_=t[9],A=t[10],k=t[11],e[8]=x*n+_*l+A*v+k*p,e[9]=x*a+_*s+A*h+k*y,e[10]=x*i+_*u+A*d+k*b,e[11]=x*o+_*f+A*m+k*C,x=t[12],_=t[13],A=t[14],k=t[15],e[12]=x*n+_*l+A*v+k*p,e[13]=x*a+_*s+A*h+k*y,e[14]=x*i+_*u+A*d+k*b,e[15]=x*o+_*f+A*m+k*C,e}});var ux=ne((Ele,sx)=>{sx.exports=NH;function NH(e,r,t){var n=t[0],a=t[1],i=t[2],o,l,s,u,f,v,h,d,m,p,y,b;return r===e?(e[12]=r[0]*n+r[4]*a+r[8]*i+r[12],e[13]=r[1]*n+r[5]*a+r[9]*i+r[13],e[14]=r[2]*n+r[6]*a+r[10]*i+r[14],e[15]=r[3]*n+r[7]*a+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],v=r[5],h=r[6],d=r[7],m=r[8],p=r[9],y=r[10],b=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=v,e[6]=h,e[7]=d,e[8]=m,e[9]=p,e[10]=y,e[11]=b,e[12]=o*n+f*a+m*i+r[12],e[13]=l*n+v*a+p*i+r[13],e[14]=s*n+h*a+y*i+r[14],e[15]=u*n+d*a+b*i+r[15]),e}});var cx=ne((Ple,fx)=>{fx.exports=FH;function FH(e,r,t){var n=t[0],a=t[1],i=t[2];return e[0]=r[0]*n,e[1]=r[1]*n,e[2]=r[2]*n,e[3]=r[3]*n,e[4]=r[4]*a,e[5]=r[5]*a,e[6]=r[6]*a,e[7]=r[7]*a,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var hx=ne((Rle,vx)=>{vx.exports=IH;function IH(e,r,t,n){var a=n[0],i=n[1],o=n[2],l=Math.sqrt(a*a+i*i+o*o),s,u,f,v,h,d,m,p,y,b,C,x,_,A,k,M,D,z,F,H,W,B,X,V;return Math.abs(l)<1e-6?null:(l=1/l,a*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,v=r[0],h=r[1],d=r[2],m=r[3],p=r[4],y=r[5],b=r[6],C=r[7],x=r[8],_=r[9],A=r[10],k=r[11],M=a*a*f+u,D=i*a*f+o*s,z=o*a*f-i*s,F=a*i*f-o*s,H=i*i*f+u,W=o*i*f+a*s,B=a*o*f+i*s,X=i*o*f-a*s,V=o*o*f+u,e[0]=v*M+p*D+x*z,e[1]=h*M+y*D+_*z,e[2]=d*M+b*D+A*z,e[3]=m*M+C*D+k*z,e[4]=v*F+p*H+x*W,e[5]=h*F+y*H+_*W,e[6]=d*F+b*H+A*W,e[7]=m*F+C*H+k*W,e[8]=v*B+p*X+x*V,e[9]=h*B+y*X+_*V,e[10]=d*B+b*X+A*V,e[11]=m*B+C*X+k*V,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var px=ne((zle,dx)=>{dx.exports=HH;function HH(e,r,t){var n=Math.sin(t),a=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*a+u*n,e[5]=o*a+f*n,e[6]=l*a+v*n,e[7]=s*a+h*n,e[8]=u*a-i*n,e[9]=f*a-o*n,e[10]=v*a-l*n,e[11]=h*a-s*n,e}});var mx=ne((Nle,gx)=>{gx.exports=BH;function BH(e,r,t){var n=Math.sin(t),a=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],v=r[10],h=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*a-u*n,e[1]=o*a-f*n,e[2]=l*a-v*n,e[3]=s*a-h*n,e[8]=i*n+u*a,e[9]=o*n+f*a,e[10]=l*n+v*a,e[11]=s*n+h*a,e}});var bx=ne((Fle,yx)=>{yx.exports=OH;function OH(e,r,t){var n=Math.sin(t),a=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],v=r[6],h=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*a+u*n,e[1]=o*a+f*n,e[2]=l*a+v*n,e[3]=s*a+h*n,e[4]=u*a-i*n,e[5]=f*a-o*n,e[6]=v*a-l*n,e[7]=h*a-s*n,e}});var xx=ne((Ile,_x)=>{_x.exports=UH;function UH(e,r,t){var n,a,i,o=t[0],l=t[1],s=t[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,l*=u,s*=u,n=Math.sin(r),a=Math.cos(r),i=1-a,e[0]=o*o*i+a,e[1]=l*o*i+s*n,e[2]=s*o*i-l*n,e[3]=0,e[4]=o*l*i-s*n,e[5]=l*l*i+a,e[6]=s*l*i+o*n,e[7]=0,e[8]=o*s*i+l*n,e[9]=l*s*i-o*n,e[10]=s*s*i+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var Mx=ne((Hle,wx)=>{wx.exports=YH;function YH(e,r,t){var n=r[0],a=r[1],i=r[2],o=r[3],l=n+n,s=a+a,u=i+i,f=n*l,v=n*s,h=n*u,d=a*s,m=a*u,p=i*u,y=o*l,b=o*s,C=o*u;return e[0]=1-(d+p),e[1]=v+C,e[2]=h-b,e[3]=0,e[4]=v-C,e[5]=1-(f+p),e[6]=m+y,e[7]=0,e[8]=h+b,e[9]=m-y,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var Tx=ne((Ble,Ax)=>{Ax.exports=GH;function GH(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 Sx=ne((Ole,kx)=>{kx.exports=VH;function VH(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 Lx=ne((Ule,Cx)=>{Cx.exports=WH;function WH(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Dx=ne((Yle,qx)=>{qx.exports=ZH;function ZH(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Px=ne((Gle,Ex)=>{Ex.exports=XH;function XH(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Iy=ne((Vle,Rx)=>{Rx.exports=jH;function jH(e,r){var t=r[0],n=r[1],a=r[2],i=r[3],o=t+t,l=n+n,s=a+a,u=t*o,f=n*o,v=n*l,h=a*o,d=a*l,m=a*s,p=i*o,y=i*l,b=i*s;return e[0]=1-v-m,e[1]=f+b,e[2]=h-y,e[3]=0,e[4]=f-b,e[5]=1-u-m,e[6]=d+p,e[7]=0,e[8]=h+y,e[9]=d-p,e[10]=1-u-v,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Nx=ne((Wle,zx)=>{zx.exports=JH;function JH(e,r,t,n,a,i,o){var l=1/(t-r),s=1/(a-n),u=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(a+n)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var Ix=ne((Zle,Fx)=>{Fx.exports=$H;function $H(e,r,t,n,a){var i=1/Math.tan(r/2),o=1/(n-a);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*n*o,e[15]=0,e}});var Bx=ne((Xle,Hx)=>{Hx.exports=KH;function KH(e,r,t,n){var a=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(a+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(a-i)*u*.5,e[10]=n/(t-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*t/(t-n),e[15]=0,e}});var Ux=ne((jle,Ox)=>{Ox.exports=QH;function QH(e,r,t,n,a,i,o){var l=1/(r-t),s=1/(n-a),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*l,e[13]=(a+n)*s,e[14]=(o+i)*u,e[15]=1,e}});var Gx=ne((Jle,Yx)=>{var eB=Fy();Yx.exports=rB;function rB(e,r,t,n){var a,i,o,l,s,u,f,v,h,d,m=r[0],p=r[1],y=r[2],b=n[0],C=n[1],x=n[2],_=t[0],A=t[1],k=t[2];return Math.abs(m-_)<1e-6&&Math.abs(p-A)<1e-6&&Math.abs(y-k)<1e-6?eB(e):(f=m-_,v=p-A,h=y-k,d=1/Math.sqrt(f*f+v*v+h*h),f*=d,v*=d,h*=d,a=C*h-x*v,i=x*f-b*h,o=b*v-C*f,d=Math.sqrt(a*a+i*i+o*o),d?(d=1/d,a*=d,i*=d,o*=d):(a=0,i=0,o=0),l=v*o-h*i,s=h*a-f*o,u=f*i-v*a,d=Math.sqrt(l*l+s*s+u*u),d?(d=1/d,l*=d,s*=d,u*=d):(l=0,s=0,u=0),e[0]=a,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=v,e[7]=0,e[8]=o,e[9]=u,e[10]=h,e[11]=0,e[12]=-(a*m+i*p+o*y),e[13]=-(l*m+s*p+u*y),e[14]=-(f*m+v*p+h*y),e[15]=1,e)}});var Wx=ne(($le,Vx)=>{Vx.exports=tB;function tB(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var Hy=ne((Kle,Zx)=>{Zx.exports={create:W6(),clone:X6(),copy:J6(),identity:Fy(),transpose:Q6(),invert:rx(),adjoint:nx(),determinant:ix(),multiply:lx(),translate:ux(),scale:cx(),rotate:hx(),rotateX:px(),rotateY:mx(),rotateZ:bx(),fromRotation:xx(),fromRotationTranslation:Mx(),fromScaling:Tx(),fromTranslation:Sx(),fromXRotation:Lx(),fromYRotation:Dx(),fromZRotation:Px(),fromQuat:Iy(),frustum:Nx(),perspective:Ix(),perspectiveFromFieldOfView:Bx(),ortho:Ux(),lookAt:Gx(),str:Wx()}});var gd=ne(jn=>{"use strict";var nB=Hy();jn.init2dArray=function(e,r){for(var t=new Array(e),n=0;n{"use strict";var aB=kt(),Xx=Ru(),iB=gd(),oB=Hy();function lB(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 sB(e){var r=aB.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function jx(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function uB(e,r){Jx("global",e,r)}function Jx(e,r,t){var n="plotly.js-style-"+e,a=document.getElementById(n);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",n),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var i=a.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):Xx.warn("addStyleRule failed"):Xx.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function fB(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&jx(t)}function cB(e,r,t,n,a,i){var o=n.split(":"),l=a.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[o[0]]=o[1])}),u.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[o[0]]=o[1]:f.style[l[0]]=l[1])}),u.setAttribute(s,!0))})}function vB(e){var r=Kx(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(n){var a=$x(n);if(a){var i=iB.convertCssMatrix(a);t=oB.multiply(t,t,i)}}),t}function $x(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function Kx(e){for(var r=[];hB(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function hB(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function dB(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}Qx.exports={getGraphDiv:lB,isPlotDiv:sB,removeElement:jx,addStyleRule:uB,addRelatedStyleRule:Jx,deleteRelatedStyleRule:fB,setStyleOnHover:cB,getFullTransformMatrix:vB,getElementTransformMatrix:$x,getElementAndAncestors:Kx,equalDomRects:dB}});var l1=ne((rse,e7)=>{"use strict";e7.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var _o=ne((tse,l7)=>{"use strict";var t7=la().extendFlat,pB=Gs(),n7={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},a7={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},gB=n7.flags.slice().concat(["fullReplot"]),mB=a7.flags.slice().concat("layoutReplot");l7.exports={traces:n7,layout:a7,traceFlags:function(){return r7(gB)},layoutFlags:function(){return r7(mB)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var n=t.split("+"),a=0;a{"use strict";By.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};By.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var Oy=ne((ase,s7)=>{"use strict";s7.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Vs=ne(s1=>{"use strict";var u7=Oy(),yB=u7.FORMAT_LINK,bB=u7.DATE_FORMAT_LINK;function _B(e){var r=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(r?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,yB,"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}".`,bB,"for details on the date formatting syntax."].join(" ")}s1.templateFormatStringDescription=_B;function Uy(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var n=[],a=0;a{"use strict";function zu(e,r){return r?r.d2l(e):e}function f7(e,r){return r?r.l2d(e):e}function xB(e){return e.x0}function wB(e){return e.x1}function MB(e){return e.y0}function AB(e){return e.y1}function c7(e){return e.x0shift||0}function v7(e){return e.x1shift||0}function h7(e){return e.y0shift||0}function d7(e){return e.y1shift||0}function md(e,r){return zu(e.x1,r)+v7(e)-zu(e.x0,r)-c7(e)}function yd(e,r,t){return zu(e.y1,t)+d7(e)-zu(e.y0,t)-h7(e)}function TB(e,r){return Math.abs(md(e,r))}function kB(e,r,t){return Math.abs(yd(e,r,t))}function SB(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(md(e,r),2)+Math.pow(yd(e,r,t),2))}function CB(e,r){return f7((zu(e.x1,r)+v7(e)+zu(e.x0,r)+c7(e))/2,r)}function LB(e,r,t){return f7((zu(e.y1,t)+d7(e)+zu(e.y0,t)+h7(e))/2,t)}function qB(e,r,t){return e.type!=="line"?void 0:yd(e,r,t)/md(e,r)}p7.exports={x0:xB,x1:wB,y0:MB,y1:AB,slope:qB,dx:md,dy:yd,width:TB,height:kB,length:SB,xcenter:CB,ycenter:LB}});var y7=ne((lse,m7)=>{"use strict";var DB=_o().overrideAll,Qf=bo(),g7=$a(),EB=Kl().dash,Nu=la().extendFlat,PB=Vs().shapeTexttemplateAttrs,RB=bd();m7.exports=DB({newshape:{visible:Nu({},Qf.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Nu({},Qf.legend,{}),legendgroup:Nu({},Qf.legendgroup,{}),legendgrouptitle:{text:Nu({},Qf.legendgrouptitle.text,{}),font:g7({})},legendrank:Nu({},Qf.legendrank,{}),legendwidth:Nu({},Qf.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Nu({},EB,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Nu({},Qf.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:PB({newshape:!0},{keys:Object.keys(RB)}),font:g7({}),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 _7=ne((sse,b7)=>{"use strict";var zB=Kl().dash,NB=la().extendFlat;b7.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:NB({},zB,{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 _d=ne((use,x7)=>{"use strict";x7.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var A0=ne((fse,T7)=>{"use strict";var Yy=$a(),FB=l1(),xd=cl(),w7=y7(),M7=_7(),IB=_d(),A7=la().extendFlat,wd=Yy({editType:"calc"});wd.family.dflt='"Open Sans", verdana, arial, sans-serif';wd.size.dflt=12;wd.color.dflt=xd.defaultLine;T7.exports={font:wd,title:{text:{valType:"string",editType:"layoutstyle"},font:Yy({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Yy({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:A7(IB({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:xd.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:xd.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:xd.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:w7.newshape,activeshape:w7.activeshape,newselection:M7.newselection,activeselection:M7.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:A7({},FB.transition,{editType:"none"})}});var k7=U_(()=>{});var HB={};var S7=U_(()=>{k7()});var dt=ne(qt=>{"use strict";var T0=Ru(),C7=pd(),L7=Ny(),BB=Gs(),OB=o1().addStyleRule,q7=la(),UB=bo(),YB=A0(),GB=q7.extendFlat,Gy=q7.extendDeepAll;qt.modules={};qt.allCategories={};qt.allTypes=[];qt.subplotsRegistry={};qt.componentsRegistry={};qt.layoutArrayContainers=[];qt.layoutArrayRegexes=[];qt.traceLayoutAttributes={};qt.localeRegistry={};qt.apiMethodRegistry={};qt.collectableSubplotTypes=null;qt.register=function(r){if(qt.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var JB=m0().timeFormat,O7=Ot(),Vy=Ru(),Iu=b0().mod,C0=Rn(),xo=C0.BADNUM,qi=C0.ONEDAY,u1=C0.ONEHOUR,Fu=C0.ONEMIN,S0=C0.ONESEC,f1=C0.EPOCHJD,Ws=dt(),z7=m0().utcFormat,$B=/^\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,KB=/^\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,N7=new Date().getFullYear()-70;function Zs(e){return e&&Ws.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Jn.dateTick0=function(e,r){var t=QB(e,!!r);if(r<2)return t;var n=Jn.dateTime2ms(t,e);return n+=qi*(r-1),Jn.ms2DateTime(n,0,e)};function QB(e,r){return Zs(e)?r?Ws.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Ws.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Jn.dfltRange=function(e){return Zs(e)?Ws.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Jn.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Ad,Td;Jn.dateTime2ms=function(e,r){if(Jn.isJSDate(e)){var t=e.getTimezoneOffset()*Fu,n=(e.getUTCMinutes()-e.getMinutes())*Fu+(e.getUTCSeconds()-e.getSeconds())*S0+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var a=3*Fu;t=t-a/2+Iu(n-t+a/2,a)}return e=Number(e)-t,e>=Ad&&e<=Td?e:xo}if(typeof e!="string"&&typeof e!="number")return xo;e=String(e);var i=Zs(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.substr(1),r="");var l=i&&r.substr(0,7)==="chinese",s=e.match(l?KB:$B);if(!s)return xo;var u=s[1],f=s[3]||"1",v=Number(s[5]||1),h=Number(s[7]||0),d=Number(s[9]||0),m=Number(s[11]||0);if(i){if(u.length===2)return xo;u=Number(u);var p;try{var y=Ws.getComponentMethod("calendars","getCal")(r);if(l){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),p=y.newDate(u,y.toMonthIndex(u,f,b),v)}else p=y.newDate(u,Number(f),v)}catch(x){return xo}return p?(p.toJD()-f1)*qi+h*u1+d*Fu+m*S0:xo}u.length===2?u=(Number(u)+2e3-N7)%100+N7:u=Number(u),f-=1;var C=new Date(Date.UTC(2e3,f,v,h,d));return C.setUTCFullYear(u),C.getUTCMonth()!==f||C.getUTCDate()!==v?xo:C.getTime()+m*S0};Ad=Jn.MIN_MS=Jn.dateTime2ms("-9999");Td=Jn.MAX_MS=Jn.dateTime2ms("9999-12-31 23:59:59.9999");Jn.isDateTime=function(e,r){return Jn.dateTime2ms(e,r)!==xo};function k0(e,r){return String(e+Math.pow(10,r)).substr(1)}var Md=90*qi,F7=3*u1,I7=5*Fu;Jn.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Ad&&e<=Td))return xo;r||(r=0);var n=Math.floor(Iu(e+.05,1)*10),a=Math.round(e-n/10),i,o,l,s,u,f;if(Zs(t)){var v=Math.floor(a/qi)+f1,h=Math.floor(Iu(e,qi));try{i=Ws.getComponentMethod("calendars","getCal")(t).fromJD(v).formatDate("yyyy-mm-dd")}catch(d){i=z7("G%Y-%m-%d")(new Date(a))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=r=Ad+qi&&e<=Td-qi))return xo;var r=Math.floor(Iu(e+.05,1)*10),t=new Date(Math.round(e-r/10)),n=JB("%Y-%m-%d")(t),a=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return U7(n,a,i,o,l)};function U7(e,r,t,n,a){if((r||t||n||a)&&(e+=" "+k0(r,2)+":"+k0(t,2),(n||a)&&(e+=":"+k0(n,2),a))){for(var i=4;a%10===0;)i-=1,a/=10;e+="."+k0(a,i)}return e}Jn.cleanDate=function(e,r,t){if(e===xo)return r;if(Jn.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Zs(t))return Vy.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Jn.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Jn.isDateTime(e,t))return Vy.error("unrecognized date",e),r;return e};var eO=/%\d?f/g,rO=/%h/g,tO={1:"1",2:"1",3:"2",4:"2"};function H7(e,r,t,n){e=e.replace(eO,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return l});var a=new Date(Math.floor(r+.05));if(e=e.replace(rO,function(){return tO[t("%q")(a)]}),Zs(n))try{e=Ws.getComponentMethod("calendars","worldCalFmt")(e,r,n)}catch(i){return"Invalid"}return t(e)(a)}var nO=[59,59.9,59.99,59.999,59.9999];function aO(e,r){var t=Iu(e+.05,qi),n=k0(Math.floor(t/u1),2)+":"+k0(Iu(Math.floor(t/Fu),60),2);if(r!=="M"){O7(r)||(r=0);var a=Math.min(Iu(e/S0,60),nO[r]),i=(100+a).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+i}return n}Jn.formatDate=function(e,r,t,n,a,i){if(a=Zs(a)&&a,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`+i.year;else return aO(e,t)+` +`+H7(i.dayMonthYear,e,n,a);return H7(r,e,n,a)};var B7=3*qi;Jn.incrementMonth=function(e,r,t){t=Zs(t)&&t;var n=Iu(e,qi);if(e=Math.round(e-n),t)try{var a=Math.round(e/qi)+f1,i=Ws.getComponentMethod("calendars","getCal")(t),o=i.fromJD(a);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-f1)*qi+n}catch(s){Vy.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+B7);return l.setUTCMonth(l.getUTCMonth()+r)+n-B7};Jn.findExactDates=function(e,r){for(var t=0,n=0,a=0,i=0,o,l,s=Zs(r)&&Ws.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";G7.exports=function(r){return r}});var Zy=ne(Xs=>{"use strict";var iO=Ot(),oO=Ru(),lO=kd(),sO=Rn().BADNUM,Wy=1e-9;Xs.findBin=function(e,r,t){if(iO(r.start))return t?Math.ceil((e-r.start)/r.size-Wy)-1:Math.floor((e-r.start)/r.size+Wy);var n=0,a=r.length,i=0,o=a>1?(r[a-1]-r[0])/(a-1):1,l,s;for(o>=0?s=t?uO:fO:s=t?vO:cO,e+=o*Wy*(t?-1:1)*(o>=0?1:-1);n90&&oO.log("Long binary search..."),n-1};function uO(e,r){return er}function vO(e,r){return e>=r}Xs.sorterAsc=function(e,r){return e-r};Xs.sorterDes=function(e,r){return r-e};Xs.distinctVals=function(e){var r=e.slice();r.sort(Xs.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===sO;t--);for(var n=r[t]-r[0]||1,a=n/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],u=s-o;o===void 0?(i.push(s),o=s):u>a&&(n=Math.min(n,u),i.push(s),o=s)}return{vals:i,minDiff:n}};Xs.roundUp=function(e,r,t){for(var n=0,a=r.length-1,i,o=0,l=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;n0&&(n=1),t&&n)return e.sort(r)}return n?e:e.reverse()};Xs.findIndexOfMin=function(e,r){r=r||lO;for(var t=1/0,n,a=0;a{"use strict";V7.exports=function(r){return Object.keys(r).sort()}});var W7=ne($n=>{"use strict";var c1=Ot(),hO=ji().isArrayOrTypedArray;$n.aggNums=function(e,r,t,n){var a,i;if((!n||n>t.length)&&(n=t.length),c1(r)||(r=!1),hO(t[0])){for(i=new Array(n),a=0;ae.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var $7=ne((_se,J7)=>{"use strict";var Z7=b0(),Xy=Z7.mod,dO=Z7.modHalf,v1=Math.PI,Hu=2*v1;function pO(e){return e/180*v1}function gO(e){return e/v1*180}function jy(e){return Math.abs(e[1]-e[0])>Hu-1e-14}function X7(e,r){return dO(r-e,Hu)}function mO(e,r){return Math.abs(X7(e,r))}function j7(e,r){if(jy(r))return!0;var t,n;r[0]n&&(n+=Hu);var a=Xy(e,Hu),i=a+Hu;return a>=t&&a<=n||i>=t&&i<=n}function yO(e,r,t,n){if(!j7(r,n))return!1;var a,i;return t[0]=a&&e<=i}function Jy(e,r,t,n,a,i,o){a=a||0,i=i||0;var l=jy([t,n]),s,u,f,v,h;l?(s=0,u=v1,f=Hu):t{"use strict";ec.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};ec.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};ec.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};ec.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};ec.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};ec.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var rw=ne(rc=>{"use strict";var $y=b0().mod;rc.segmentsIntersect=ew;function ew(e,r,t,n,a,i,o,l){var s=t-e,u=a-e,f=o-a,v=n-r,h=i-r,d=l-i,m=s*d-f*v;if(m===0)return null;var p=(u*d-f*h)/m,y=(u*v-s*h)/m;return y<0||y>1||p<0||p>1?null:{x:e+s*p,y:r+v*p}}rc.segmentDistance=function(r,t,n,a,i,o,l,s){if(ew(r,t,n,a,i,o,l,s))return 0;var u=n-r,f=a-t,v=l-i,h=s-o,d=u*u+f*f,m=v*v+h*h,p=Math.min(Cd(u,f,d,i-r,o-t),Cd(u,f,d,l-r,s-t),Cd(v,h,m,r-i,t-o),Cd(v,h,m,n-i,a-o));return Math.sqrt(p)};function Cd(e,r,t,n,a){var i=n*e+a*r;if(i<0)return n*n+a*a;if(i>t){var o=n-e,l=a-r;return o*o+l*l}else{var s=n*r-a*e;return s*s/t}}var Ld,Ky,Q7;rc.getTextLocation=function(r,t,n,a){if((r!==Ky||a!==Q7)&&(Ld={},Ky=r,Q7=a),Ld[n])return Ld[n];var i=r.getPointAtLength($y(n-a/2,t)),o=r.getPointAtLength($y(n+a/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength($y(n,t)),u=(s.x*4+i.x+o.x)/6,f=(s.y*4+i.y+o.y)/6,v={x:u,y:f,theta:l};return Ld[n]=v,v};rc.clearLocationCache=function(){Ky=null};rc.getVisibleSegment=function(r,t,n){var a=t.left,i=t.right,o=t.top,l=t.bottom,s=0,u=r.getTotalLength(),f=u,v,h;function d(p){var y=r.getPointAtLength(p);p===0?v=y:p===u&&(h=y);var b=y.xi?y.x-i:0,C=y.yl?y.y-l:0;return Math.sqrt(b*b+C*C)}for(var m=d(s);m;){if(s+=m+n,s>f)return;m=d(s)}for(m=d(f);m;){if(f-=m+n,s>f)return;m=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(v.x-h.x)<.1&&Math.abs(v.y-h.y)<.1}};rc.findPointOnPath=function(r,t,n,a){a=a||{};for(var i=a.pathLength||r.getTotalLength(),o=a.tolerance||.001,l=a.iterationLimit||30,s=r.getPointAtLength(0)[n]>r.getPointAtLength(i)[n]?-1:1,u=0,f=0,v=i,h,d,m;u0?v=h:f=h,u++}return d}});var qd=ne(h1=>{"use strict";var js={};h1.throttle=function(r,t,n){var a=js[r],i=Date.now();if(!a){for(var o in js)js[o].tsa.ts+t){l();return}a.timer=setTimeout(function(){l(),a.timer=null},t)};h1.done=function(e){var r=js[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var n=r.onDone;r.onDone=function(){n&&n(),t(),r.onDone=null}})};h1.clear=function(e){if(e)tw(js[e]),delete js[e];else for(var r in js)h1.clear(r)};function tw(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var aw=ne((Ase,nw)=>{"use strict";nw.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var iw=ne((Tse,Dd)=>{"use strict";Dd.exports=Qy;Dd.exports.isMobile=Qy;Dd.exports.default=Qy;var wO=/(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,MO=/CrOS/,AO=/android|ipad|playbook|silk/i;function Qy(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=wO.test(r)&&!MO.test(r)||!!e.tablet&&AO.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var lw=ne((kse,ow)=>{"use strict";var TO=Ot(),kO=iw();ow.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=SO(),typeof t!="string")return!0;var n=kO({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!n)for(var a=t.split(" "),i=1;i-1;l--){var s=a[l];if(s.substr(0,8)==="Version/"){var u=s.substr(8).split(".")[0];if(TO(u)&&(u=+u),u>=13)return!0}}}return n};function SO(){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 uw=ne((Sse,sw)=>{"use strict";var CO=kt();sw.exports=function(r,t,n){var a=r.selectAll("g."+n.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",n),a.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(o){o[0][i]=CO.select(this)}),a}});var cw=ne((Cse,fw)=>{"use strict";var LO=dt();fw.exports=function(r,t){for(var n=r._context.locale,a=0;a<2;a++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[n]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=LO.localeRegistry}var u=n.split("-")[0];if(u===n)break;n=u}return t}});var hw=ne((Lse,vw)=>{"use strict";vw.exports=function(r){for(var t={},n=[],a=0,i=0;i{"use strict";dw.exports=function(r){for(var t=EO(r)?DO:qO,n=[],a=0;a{"use strict";gw.exports=function(r,t){if(!t)return r;var n=1/Math.abs(t),a=n>1?(n*r+n*t)/n:r+t,i=String(a).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(a).toPrecision(12);s.indexOf("e+")===-1&&(a=+s)}}return a}});var bw=ne((Ese,yw)=>{"use strict";var PO=Ot(),RO=Rn().BADNUM,zO=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;yw.exports=function(r){return typeof r=="string"&&(r=r.replace(zO,"")),PO(r)?Number(r):RO}});var gr=ne((Pse,Ew)=>{"use strict";var d1=kt(),NO=m0().utcFormat,FO=wy().format,Tw=Ot(),kw=Rn(),Sw=kw.FP_SAFE,IO=-Sw,_w=kw.BADNUM,Pe=Ew.exports={};Pe.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var xw={};Pe.warnBadFormat=function(e){var r=String(e);xw[r]||(xw[r]=1,Pe.warn('encountered bad format: "'+r+'"'))};Pe.noFormat=function(e){return String(e)};Pe.numberFormat=function(e){var r;try{r=FO(Pe.adjustFormat(e))}catch(t){return Pe.warnBadFormat(e),Pe.noFormat}return r};Pe.nestedProperty=$v();Pe.keyedContainer=c6();Pe.relativeAttr=h6();Pe.isPlainObject=Gs();Pe.toLogRange=sd();Pe.relinkPrivateKeys=m6();var Bu=ji();Pe.isArrayBuffer=Bu.isArrayBuffer;Pe.isTypedArray=Bu.isTypedArray;Pe.isArrayOrTypedArray=Bu.isArrayOrTypedArray;Pe.isArray1D=Bu.isArray1D;Pe.ensureArray=Bu.ensureArray;Pe.concat=Bu.concat;Pe.maxRowLength=Bu.maxRowLength;Pe.minRowLength=Bu.minRowLength;var Cw=b0();Pe.mod=Cw.mod;Pe.modHalf=Cw.modHalf;var Ou=N6();Pe.valObjectMeta=Ou.valObjectMeta;Pe.coerce=Ou.coerce;Pe.coerce2=Ou.coerce2;Pe.coerceFont=Ou.coerceFont;Pe.coercePattern=Ou.coercePattern;Pe.coerceHoverinfo=Ou.coerceHoverinfo;Pe.coerceSelectionMarkerOpacity=Ou.coerceSelectionMarkerOpacity;Pe.validate=Ou.validate;var Ji=Y7();Pe.dateTime2ms=Ji.dateTime2ms;Pe.isDateTime=Ji.isDateTime;Pe.ms2DateTime=Ji.ms2DateTime;Pe.ms2DateTimeLocal=Ji.ms2DateTimeLocal;Pe.cleanDate=Ji.cleanDate;Pe.isJSDate=Ji.isJSDate;Pe.formatDate=Ji.formatDate;Pe.incrementMonth=Ji.incrementMonth;Pe.dateTick0=Ji.dateTick0;Pe.dfltRange=Ji.dfltRange;Pe.findExactDates=Ji.findExactDates;Pe.MIN_MS=Ji.MIN_MS;Pe.MAX_MS=Ji.MAX_MS;var tc=Zy();Pe.findBin=tc.findBin;Pe.sorterAsc=tc.sorterAsc;Pe.sorterDes=tc.sorterDes;Pe.distinctVals=tc.distinctVals;Pe.roundUp=tc.roundUp;Pe.sort=tc.sort;Pe.findIndexOfMin=tc.findIndexOfMin;Pe.sortObjectKeys=Sd();var Js=W7();Pe.aggNums=Js.aggNums;Pe.len=Js.len;Pe.mean=Js.mean;Pe.geometricMean=Js.geometricMean;Pe.median=Js.median;Pe.midRange=Js.midRange;Pe.variance=Js.variance;Pe.stdev=Js.stdev;Pe.interp=Js.interp;var vl=gd();Pe.init2dArray=vl.init2dArray;Pe.transposeRagged=vl.transposeRagged;Pe.dot=vl.dot;Pe.translationMatrix=vl.translationMatrix;Pe.rotationMatrix=vl.rotationMatrix;Pe.rotationXYMatrix=vl.rotationXYMatrix;Pe.apply3DTransform=vl.apply3DTransform;Pe.apply2DTransform=vl.apply2DTransform;Pe.apply2DTransform2=vl.apply2DTransform2;Pe.convertCssMatrix=vl.convertCssMatrix;Pe.inverseTransformMatrix=vl.inverseTransformMatrix;var Ql=$7();Pe.deg2rad=Ql.deg2rad;Pe.rad2deg=Ql.rad2deg;Pe.angleDelta=Ql.angleDelta;Pe.angleDist=Ql.angleDist;Pe.isFullCircle=Ql.isFullCircle;Pe.isAngleInsideSector=Ql.isAngleInsideSector;Pe.isPtInsideSector=Ql.isPtInsideSector;Pe.pathArc=Ql.pathArc;Pe.pathSector=Ql.pathSector;Pe.pathAnnulus=Ql.pathAnnulus;var q0=K7();Pe.isLeftAnchor=q0.isLeftAnchor;Pe.isCenterAnchor=q0.isCenterAnchor;Pe.isRightAnchor=q0.isRightAnchor;Pe.isTopAnchor=q0.isTopAnchor;Pe.isMiddleAnchor=q0.isMiddleAnchor;Pe.isBottomAnchor=q0.isBottomAnchor;var D0=rw();Pe.segmentsIntersect=D0.segmentsIntersect;Pe.segmentDistance=D0.segmentDistance;Pe.getTextLocation=D0.getTextLocation;Pe.clearLocationCache=D0.clearLocationCache;Pe.getVisibleSegment=D0.getVisibleSegment;Pe.findPointOnPath=D0.findPointOnPath;var Rd=la();Pe.extendFlat=Rd.extendFlat;Pe.extendDeep=Rd.extendDeep;Pe.extendDeepAll=Rd.extendDeepAll;Pe.extendDeepNoArrays=Rd.extendDeepNoArrays;var e2=Ru();Pe.log=e2.log;Pe.warn=e2.warn;Pe.error=e2.error;var HO=x0();Pe.counterRegex=HO.counter;var r2=qd();Pe.throttle=r2.throttle;Pe.throttleDone=r2.done;Pe.clearThrottle=r2.clear;var hl=o1();Pe.getGraphDiv=hl.getGraphDiv;Pe.isPlotDiv=hl.isPlotDiv;Pe.removeElement=hl.removeElement;Pe.addStyleRule=hl.addStyleRule;Pe.addRelatedStyleRule=hl.addRelatedStyleRule;Pe.deleteRelatedStyleRule=hl.deleteRelatedStyleRule;Pe.setStyleOnHover=hl.setStyleOnHover;Pe.getFullTransformMatrix=hl.getFullTransformMatrix;Pe.getElementTransformMatrix=hl.getElementTransformMatrix;Pe.getElementAndAncestors=hl.getElementAndAncestors;Pe.equalDomRects=hl.equalDomRects;Pe.clearResponsive=aw();Pe.preserveDrawingBuffer=lw();Pe.makeTraceGroups=uw();Pe._=cw();Pe.notifier=Py();Pe.filterUnique=hw();Pe.filterVisible=pw();Pe.pushUnique=Ny();Pe.increment=mw();Pe.cleanNumber=bw();Pe.ensureNumber=function(r){return Tw(r)?(r=Number(r),r>Sw||r=r?!1:Tw(e)&&e>=0&&e%1===0};Pe.noop=pd();Pe.identity=kd();Pe.repeat=function(e,r){for(var t=new Array(r),n=0;nt?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};Pe.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};Pe.simpleMap=function(e,r,t,n,a){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,t)?a>10?(Pe.warn("randstr failed uniqueness"),o):e(r,t,n,(a||0)+1):o};Pe.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(n){n[r]=e,t[n.name]=n,t.optionList.push(n)},t["_"+r]=e,t};Pe.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,n=2*t,a=2*r-1,i=new Array(a),o=new Array(t),l,s,u,f;for(l=0;l=n&&(u-=n*Math.floor(u/n)),u<0?u=-1-u:u>=t&&(u=n-1-u),f+=e[u]*i[s];o[l]=f}return o};Pe.syncOrAsync=function(e,r,t){var n,a;function i(){return Pe.syncOrAsync(e,r,t)}for(;e.length;)if(a=e.splice(0,1)[0],n=a(r),n&&n.then)return n.then(i);return t&&t(r)};Pe.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};Pe.noneOrAll=function(e,r,t){if(e){var n=!1,a=!0,i,o;for(i=0;i0?a:0})};Pe.fillArray=function(e,r,t,n){if(n=n||Pe.identity,Pe.isArrayOrTypedArray(e))for(var a=0;aUO.test(window.navigator.userAgent);var YO=/Firefox\/(\d+)\.\d+/;Pe.getFirefoxVersion=function(){var e=YO.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};Pe.isD3Selection=function(e){return e instanceof d1.selection};Pe.ensureSingle=function(e,r,t,n){var a=e.select(r+(t?"."+t:""));if(a.size())return a;var i=e.append(r);return t&&i.classed(t,!0),n&&i.call(n),i};Pe.ensureSingleById=function(e,r,t,n){var a=e.select(r+"#"+t);if(a.size())return a;var i=e.append(r).attr("id",t);return n&&i.call(n),i};Pe.objectFromPath=function(e,r){for(var t=e.split("."),n,a=n={},i=0;i1?a+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;n.test(l);)l=l.replace(n,"$1"+i+"$2");return l+s};Pe.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Dw=/^\w*$/;Pe.templateString=function(e,r){var t={};return e.replace(Pe.TEMPLATE_STRING_REGEX,function(n,a){var i;return Dw.test(a)?i=r[a]:(t[a]=t[a]||Pe.nestedProperty(r,a).get,i=t[a](!0)),i!==void 0?i:""})};var WO={max:10,count:0,name:"hovertemplate"};Pe.hovertemplateString=function(){return t2.apply(WO,arguments)};var ZO={max:10,count:0,name:"texttemplate"};Pe.texttemplateString=function(){return t2.apply(ZO,arguments)};var XO=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function jO(e){var r=e.match(XO);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var JO={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Pe.texttemplateStringForShapes=function(){return t2.apply(JO,arguments)};var ww=/^[:|\|]/;function t2(e,r,t){var n=this,a=arguments;return r||(r={}),e.replace(Pe.TEMPLATE_STRING_REGEX,function(i,o,l){var s=o==="xother"||o==="yother",u=o==="_xother"||o==="_yother",f=o==="_xother_"||o==="_yother_",v=o==="xother_"||o==="yother_",h=s||u||v||f,d=o;(u||f)&&(d=d.substring(1)),(v||f)&&(d=d.substring(0,d.length-1));var m=null,p=null;if(n.parseMultDiv){var y=jO(d);d=y.key,m=y.op,p=y.number}var b;if(h){if(b=r[d],b===void 0)return""}else{var C,x;for(x=3;x=Pd&&o<=Mw,u=l>=Pd&&l<=Mw;if(s&&(n=10*n+o-Pd),u&&(a=10*a+l-Pd),!s||!u){if(n!==a)return n-a;if(o!==l)return o-l}}return a-n};var L0=2e9;Pe.seedPseudoRandom=function(){L0=2e9};Pe.pseudoRandom=function(){var e=L0;return L0=(69069*L0+1)%4294967296,Math.abs(L0-e)<429496729?Pe.pseudoRandom():L0/4294967296};Pe.fillText=function(e,r,t){var n=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},a=Pe.extractOption(e,r,"htx","hovertext");if(Pe.isValidTextValue(a))return n(a);var i=Pe.extractOption(e,r,"tx","text");if(Pe.isValidTextValue(i))return n(i)};Pe.isValidTextValue=function(e){return e||e===0};Pe.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",n=0;n1&&(u=1):u=0,Pe.strTranslate(a-u*(t+o),i-u*(n+l))+Pe.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+n)+")":"")};Pe.setTransormAndDisplay=function(e,r){e.attr("transform",Pe.getTextTransform(r)),e.style("display",r.scale?null:"none")};Pe.ensureUniformFontSize=function(e,r){var t=Pe.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};Pe.join2=function(e,r,t){var n=e.length;return n>1?e.slice(0,-1).join(r)+t+e[n-1]:e.join(r)};Pe.bigFont=function(e){return Math.round(1.2*e)};var Aw=Pe.getFirefoxVersion(),$O=Aw!==null&&Aw<86;Pe.getPositionFromD3Event=function(){return $O?[d1.event.layerX,d1.event.layerY]:[d1.event.offsetX,d1.event.offsetY]}});var zw=ne(()=>{"use strict";var KO=gr(),Pw={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(n2 in Pw)Rw=n2.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),KO.addStyleRule(Rw,Pw[n2]);var Rw,n2});var a2=ne((Nse,Nw)=>{Nw.exports=!0});var o2=ne((Fse,Fw)=>{"use strict";var QO=a2(),i2;typeof window.matchMedia=="function"?i2=!window.matchMedia("(hover: none)").matches:i2=QO;Fw.exports=i2});var Fd=ne((Ise,l2)=>{"use strict";var E0=typeof Reflect=="object"?Reflect:null,Iw=E0&&typeof E0.apply=="function"?E0.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},zd;E0&&typeof E0.ownKeys=="function"?zd=E0.ownKeys:Object.getOwnPropertySymbols?zd=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:zd=function(r){return Object.getOwnPropertyNames(r)};function eU(e){console&&console.warn&&console.warn(e)}var Bw=Number.isNaN||function(r){return r!==r};function kn(){kn.init.call(this)}l2.exports=kn;l2.exports.once=aU;kn.EventEmitter=kn;kn.prototype._events=void 0;kn.prototype._eventsCount=0;kn.prototype._maxListeners=void 0;var Hw=10;function Nd(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(kn,"defaultMaxListeners",{enumerable:!0,get:function(){return Hw},set:function(e){if(typeof e!="number"||e<0||Bw(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Hw=e}});kn.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};kn.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||Bw(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 Ow(e){return e._maxListeners===void 0?kn.defaultMaxListeners:e._maxListeners}kn.prototype.getMaxListeners=function(){return Ow(this)};kn.prototype.emit=function(r){for(var t=[],n=1;n0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")Iw(s,this,t);else for(var u=s.length,f=Ww(s,u),n=0;n0&&o.length>a&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,eU(l)}return e}kn.prototype.addListener=function(r,t){return Uw(this,r,t,!1)};kn.prototype.on=kn.prototype.addListener;kn.prototype.prependListener=function(r,t){return Uw(this,r,t,!0)};function rU(){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 Yw(e,r,t){var n={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},a=rU.bind(n);return a.listener=t,n.wrapFn=a,a}kn.prototype.once=function(r,t){return Nd(t),this.on(r,Yw(this,r,t)),this};kn.prototype.prependOnceListener=function(r,t){return Nd(t),this.prependListener(r,Yw(this,r,t)),this};kn.prototype.removeListener=function(r,t){var n,a,i,o,l;if(Nd(t),a=this._events,a===void 0)return this;if(n=a[r],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete a[r],a.removeListener&&this.emit("removeListener",r,n.listener||t));else if(typeof n!="function"){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){l=n[o].listener,i=o;break}if(i<0)return this;i===0?n.shift():tU(n,i),n.length===1&&(a[r]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};kn.prototype.off=kn.prototype.removeListener;kn.prototype.removeAllListeners=function(r){var t,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[r]),this;if(arguments.length===0){var i=Object.keys(n),o;for(a=0;a=0;a--)this.removeListener(r,t[a]);return this};function Gw(e,r,t){var n=e._events;if(n===void 0)return[];var a=n[r];return a===void 0?[]:typeof a=="function"?t?[a.listener||a]:[a]:t?nU(a):Ww(a,a.length)}kn.prototype.listeners=function(r){return Gw(this,r,!0)};kn.prototype.rawListeners=function(r){return Gw(this,r,!1)};kn.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):Vw.call(e,r)};kn.prototype.listenerCount=Vw;function Vw(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}kn.prototype.eventNames=function(){return this._eventsCount>0?zd(this._events):[]};function Ww(e,r){for(var t=new Array(r),n=0;n{"use strict";var s2=Fd().EventEmitter,oU={init:function(e){if(e._ev instanceof s2)return e;var r=new s2,t=new s2;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(n,a){r.emit(n,a),t.emit(n,a)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{}),e},triggerHandler:function(e,r,t){var n,a=e._ev;if(!a)return;var i=a._events[r];if(!i)return;function o(s){if(s.listener){if(a.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(a,[t])}else return s.apply(a,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l{"use strict";var jw=gr(),lU=Kf().dfltConfig;function sU(e,r){for(var t=[],n,a=0;alU.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};$s.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};$s.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};$s.undo=function(r){var t,n;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n{"use strict";Kw.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var z0=ne(sa=>{"use strict";var wo=dt(),g1=gr(),Hd=bo(),f2=A0(),uU=u2(),fU=l1(),cU=Kf().configAttributes,Qw=_o(),dl=g1.extendDeepAll,P0=g1.isPlainObject,vU=g1.isArrayOrTypedArray,Bd=g1.nestedProperty,hU=g1.valObjectMeta,c2="_isSubplotObj",Od="_isLinkedToArray",dU="_arrayAttrRegexps",r9="_deprecated",v2=[c2,Od,dU,r9];sa.IS_SUBPLOT_OBJ=c2;sa.IS_LINKED_TO_ARRAY=Od;sa.DEPRECATED=r9;sa.UNDERSCORE_ATTRS=v2;sa.get=function(){var e={};return wo.allTypes.forEach(function(r){e[r]=gU(r)}),{defs:{valObjects:hU,metaKeys:v2.concat(["description","role","editType","impliedEdits"]),editType:{traces:Qw.traces,layout:Qw.layout},impliedEdits:{}},traces:e,layout:mU(),frames:yU(),animation:R0(fU),config:R0(cU)}};sa.crawl=function(e,r,t,n){var a=t||0;n=n||"",Object.keys(e).forEach(function(i){var o=e[i];if(v2.indexOf(i)===-1){var l=(n?n+".":"")+i;r(o,i,e,a,l),!sa.isValObject(o)&&P0(o)&&i!=="impliedEdits"&&sa.crawl(o,r,a+1,l)}})};sa.isValObject=function(e){return e&&e.valType!==void 0};sa.findArrayAttributes=function(e){var r=[],t=[],n=[],a,i;function o(s,u,f,v){t=t.slice(0,v).concat([u]),n=n.slice(0,v).concat([s&&s._isLinkedToArray]);var h=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[v-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&l(a,0,"")}function l(s,u,f){var v=s[t[u]],h=f+t[u];if(u===t.length-1)vU(v)&&r.push(i+h);else if(n[u]){if(Array.isArray(v))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!Id(o))return!1;e=i[a][o]}else e=i[a]}else e=i}}return e}function Id(e){return e===Math.round(e)&&e>=0}function gU(e){var r,t;r=wo.modules[e]._module,t=r.basePlotModule;var n={};n.type=null;var a=dl({},Hd),i=dl({},r.attributes);sa.crawl(i,function(s,u,f,v,h){Bd(a,h).set(void 0),s===void 0&&Bd(i,h).set(void 0)}),dl(n,a),wo.traceIs(e,"noOpacity")&&delete n.opacity,wo.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),wo.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),r.selectPoints||delete n.selectedpoints,dl(n,i),t.attributes&&dl(n,t.attributes),n.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:R0(n)};if(r.layoutAttributes){var l={};dl(l,r.layoutAttributes),o.layoutAttributes=R0(l)}return r.animatable||sa.crawl(o,function(s){sa.isValObject(s)&&"anim"in s&&delete s.anim}),o}function mU(){var e={},r,t;dl(e,f2);for(r in wo.subplotsRegistry)if(t=wo.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var n=0;n{"use strict";var N0=gr(),MU=bo(),Uu="templateitemname",h2={name:{valType:"string",editType:"none"}};h2[Uu]={valType:"string",editType:"calc"};nc.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=h2.name,r[Uu]=h2[Uu],r};nc.traceTemplater=function(e){var r={},t,n;for(t in e)n=e[t],Array.isArray(n)&&n.length&&(r[t]=0);function a(i){t=N0.coerce(i,{},MU,"type");var o={type:t,_template:null};if(t in r){n=e[t];var l=r[t]%n.length;r[t]++,o._template=n[l]}return o}return{newTrace:a}};nc.newContainer=function(e,r,t){var n=e._template,a=n&&(n[r]||t&&n[t]);N0.isPlainObject(a)||(a=null);var i=e[r]={_template:a};return i};nc.arrayTemplater=function(e,r,t){var n=e._template,a=n&&n[a9(r)],i=n&&n[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(u){var f={name:u.name,_input:u},v=f[Uu]=u[Uu];if(!n9(v))return f._template=a,f;for(var h=0;h=n&&(t._input||{})._templateitemname;i&&(a=n);var o=r+"["+a+"]",l;function s(){l={},i&&(l[o]={},l[o][Uu]=i)}s();function u(d,m){l[d]=m}function f(d,m){i?N0.nestedProperty(l[o],d).set(m):l[o+"."+d]=m}function v(){var d=l;return s(),d}function h(d,m){d&&f(d,m);var p=v();for(var y in p)N0.nestedProperty(e,y).set(p[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:v,applyUpdate:h}}});var Pa=ne((Gse,i9)=>{"use strict";var m1=x0().counter;i9.exports={idRegex:{x:m1("x","( domain)?"),y:m1("y","( domain)?")},attrRegex:m1("[xy]axis"),xAxisMatch:m1("xaxis"),yAxisMatch:m1("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var ua=ne(Di=>{"use strict";var AU=dt(),d2=Pa();Di.id2name=function(r){if(!(typeof r!="string"||!r.match(d2.AX_ID_PATTERN))){var t=r.split(" ")[0].substr(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Di.name2id=function(r){if(r.match(d2.AX_NAME_PATTERN)){var t=r.substr(5);return t==="1"&&(t=""),r.charAt(0)+t}};Di.cleanId=function(r,t,n){var a=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(d2.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(a&&!n)){var i=r.split(" ")[0].substr(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(a&&n?" domain":"")}};Di.list=function(e,r,t){var n=e._fullLayout;if(!n)return[];var a=Di.listIds(e,r),i=new Array(a.length),o;for(o=0;on?1:-1:+(e.substr(1)||1)-+(r.substr(1)||1)};Di.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function o9(e,r){if(r&&r.length){for(var t=0;t{"use strict";function TU(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function kU(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}l9.exports={clearOutlineControllers:TU,clearOutline:kU}});var Ud=ne((Zse,s9)=>{"use strict";s9.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var y1=ne(Gd=>{"use strict";var Yd=dt(),Xse=Pa().SUBPLOT_PATTERN;Gd.getSubplotCalcData=function(e,r,t){var n=Yd.subplotsRegistry[r];if(!n)return[];for(var a=n.attr,i=[],o=0;o{"use strict";var SU=dt(),F0=gr();ac.manageCommandObserver=function(e,r,t,n){var a={},i=!0;r&&r._commandObserver&&(a=r._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var o=ac.hasSimpleAPICommandBindings(e,t,a.lookupTable);if(r&&r._commandObserver){if(o)return a;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,a}if(o){u9(e,o,a.cache),a.check=function(){if(i){var f=u9(e,o,a.cache);return f.changed&&n&&a.lookupTable[f.value]!==void 0&&(a.disable(),Promise.resolve(n({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:a.lookupTable[f.value]})).then(a.enable,a.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+a;F0.isPlainObject(i)?p2(i,r,o,n+1):r(o,a,i)}})}});var fa=ne(($se,k9)=>{"use strict";var b9=kt(),LU=m0().timeFormatLocale,qU=wy().formatLocale,b1=Ot(),DU=My(),Xt=dt(),_9=z0(),EU=bn(),Xr=gr(),x9=Pt(),h9=Rn().BADNUM,Ei=ua(),PU=Yu().clearOutline,RU=Ud(),g2=l1(),zU=u2(),NU=y1().getModuleCalcData,d9=Xr.relinkPrivateKeys,ic=Xr._,zr=k9.exports={};Xr.extendFlat(zr,Xt);zr.attributes=bo();zr.attributes.type.values=zr.allTypes;zr.fontAttrs=$a();zr.layoutAttributes=A0();var Wd=v9();zr.executeAPICommand=Wd.executeAPICommand;zr.computeAPICommandBindings=Wd.computeAPICommandBindings;zr.manageCommandObserver=Wd.manageCommandObserver;zr.hasSimpleAPICommandBindings=Wd.hasSimpleAPICommandBindings;zr.redrawText=function(e){return e=Xr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Xt.getComponentMethod("annotations","draw")(e),Xt.getComponentMethod("legend","draw")(e),Xt.getComponentMethod("colorbar","draw")(e),r(zr.previousPromises(e)))},300)})};zr.resize=function(e){e=Xr.getGraphDiv(e);var r,t=new Promise(function(n,a){(!e||Xr.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Xr.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Xt.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return r&&r(t),t};zr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};zr.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=Xr.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:x9.defaultLine,"pointer-events":"all"}).each(function(){var u=b9.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),n=t.node(),a={y:r._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=r.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=r._paper.attr("width")-7),t.attr(a);var i=t.select(".js-link-to-tool"),o=t.select(".js-link-spacer"),l=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&FU(e,i),o.text(i.text()&&l.text()?" - ":"")}};function FU(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){zr.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),a=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+a})}}zr.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=b9.select(e).append("div").attr("id","hiddenform").style("display","none"),n=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),a=n.append("input").attr({type:"text",name:"data"});return a.node().value=zr.graphJson(e,!1,"keepdata"),n.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var IU=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],HU=["year","month","dayMonth","dayMonthYear"];zr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var a=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},v;e._transitionData||zr.createTransitionData(e),a._dfltTitle={plot:ic(e,"Click to enter Plot title"),subtitle:ic(e,"Click to enter Plot subtitle"),x:ic(e,"Click to enter X axis title"),y:ic(e,"Click to enter Y axis title"),colorbar:ic(e,"Click to enter Colorscale title"),annotation:ic(e,"new text")},a._traceWord=ic(e,"trace");var h=p9(e,IU);if(a._mapboxAccessToken=f.mapboxAccessToken,n._initialAutoSizeIsDone){var d=n.width,m=n.height;zr.supplyLayoutGlobalDefaults(i,a,h),i.width||(a.width=d),i.height||(a.height=m),zr.sanitizeMargins(a)}else{zr.supplyLayoutGlobalDefaults(i,a,h);var p=!i.width||!i.height,y=a.autosize,b=f.autosizable,C=p&&(y||b);C?zr.plotAutoSize(e,i,a):p&&zr.sanitizeMargins(a),!y&&p&&(i.width=a.width,i.height=a.height)}a._d3locale=UU(h,a.separators),a._extraFormat=p9(e,HU),a._initialAutoSizeIsDone=!0,a._dataLength=s.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var x=a._subplots=OU(),_=a._splomAxes={x:{},y:{}},A=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=BU(o,s),zr.supplyDataDefaults(s,l,i,a);var k=Object.keys(_.x),M=Object.keys(_.y);if(k.length>1&&M.length>1){for(Xt.getComponentMethod("grid","sizeDefaults")(i,a),v=0;v15&&M.length>15&&a.shapes.length===0&&a.images.length===0,zr.linkSubplots(l,a,o,n),zr.cleanPlot(l,a,o,n);var W=!!(n._has&&n._has("cartesian")),B=!!(a._has&&a._has("cartesian")),X=W,V=B;X&&!V?n._bgLayer.remove():V&&!X&&(a._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&PU({_fullLayout:n}),YU(l,a),d9(a,n),Xt.getComponentMethod("colorscale","crossTraceDefaults")(l,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var re=a._tracePreGUI,te={},K;for(K in re)te[K]="old";for(v=0;v0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var v=zr.layoutAttributes.width.min,h=zr.layoutAttributes.height.min;o1,m=!t.height&&Math.abs(n.height-l)>1;(m||d)&&(d&&(n.width=o),m&&(n.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),zr.sanitizeMargins(n)};zr.supplyLayoutModuleDefaults=function(e,r,t,n){var a=Xt.componentsRegistry,i=r._basePlotModules,o,l,s,u=Xt.subplotsRegistry.cartesian;for(o in a)s=a[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Xt.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(Xr.subplotSort);for(l=0;l1&&(t.l/=y,t.r/=y)}if(h){var b=(t.t+t.b)/h;b>1&&(t.t/=b,t.b/=b)}var C=t.xl!==void 0?t.xl:t.x,x=t.xr!==void 0?t.xr:t.x,_=t.yt!==void 0?t.yt:t.y,A=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:C,size:t.l+p},r:{val:x,size:t.r+p},b:{val:A,size:t.b+p},t:{val:_,size:t.t+p}},m[r]=1}if(!n._replotting)return zr.doAutoMargin(e)}};function VU(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Ei.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}zr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,n=r.height;r._size||(r._size={}),w9(r);var a=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=Xr.extendFlat({},a),s=i.l,u=i.r,f=i.t,v=i.b,h=r._pushmargin,d=r._pushmarginIds,m=r.minreducedwidth,p=r.minreducedheight;if(i.autoexpand!==!1){for(var y in h)d[y]||delete h[y];var b=e._fullLayout._reservedMargin;for(var C in b)for(var x in b[C]){var _=b[C][x];o[x]=Math.max(o[x],_)}h.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:v}};for(var A in o){var k=0;for(var M in h)M!=="base"&&b1(h[M][A].size)&&(k=h[M][A].size>k?h[M][A].size:k);var D=Math.max(0,i[A]-k);o[A]=Math.max(0,o[A]-D)}for(var z in h){var F=h[z].l||{},H=h[z].b||{},W=F.val,B=F.size,X=H.val,V=H.size,re=t-o.r-o.l,te=n-o.t-o.b;for(var K in h){if(b1(B)&&h[K].r){var Q=h[K].r.val,fe=h[K].r.size;if(Q>W){var he=(B*Q+(fe-re)*W)/(Q-W),De=(fe*(1-W)+(B-re)*(1-Q))/(Q-W);he+De>s+u&&(s=he,u=De)}}if(b1(V)&&h[K].t){var Ne=h[K].t.val,Fe=h[K].t.size;if(Ne>X){var Je=(V*Ne+(Fe-te)*X)/(Ne-X),Le=(Fe*(1-X)+(V-te)*(1-Ne))/(Ne-X);Je+Le>v+f&&(v=Je,f=Le)}}}}}var rr=Xr.constrain(t-i.l-i.r,M9,m),se=Xr.constrain(n-i.t-i.b,A9,p),me=Math.max(0,t-rr),we=Math.max(0,n-se);if(me){var pe=(s+u)/me;pe>1&&(s/=pe,u/=pe)}if(we){var U=(v+f)/we;U>1&&(v/=U,f/=U)}if(a.l=Math.round(s)+o.l,a.r=Math.round(u)+o.r,a.t=Math.round(f)+o.t,a.b=Math.round(v)+o.b,a.p=Math.round(i.pad),a.w=Math.round(t)-a.l-a.r,a.h=Math.round(n)-a.t-a.b,!r._replotting&&(zr.didMarginChange(l,a)||VU(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var ee=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};zr.graphJson=function(e,r,t,n,a,i){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&zr.supplyDefaults(e);var o=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(Xr.isPlainObject(h)){var m={},p;return Object.keys(h).sort().forEach(function(x){if(["_","["].indexOf(x.charAt(0))===-1){if(typeof h[x]=="function"){d&&(m[x]="_function");return}if(t==="keepdata"){if(x.substr(x.length-3)==="src")return}else if(t==="keepstream"){if(p=h[x+"src"],typeof p=="string"&&p.indexOf(":")>0&&!Xr.isPlainObject(h.stream))return}else if(t!=="keepall"&&(p=h[x+"src"],typeof p=="string"&&p.indexOf(":")>0))return;m[x]=u(h[x],d)}}),m}var y=Array.isArray(h),b=Xr.isTypedArray(h);if((y||b)&&h.dtype&&h.shape){var C=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:Xr.isArrayBuffer(C)?DU.encode(C):C},d)}return y?h.map(function(x){return u(x,d)}):b?Xr.simpleMap(h,Xr.identity):Xr.isJSDate(h)?Xr.ms2DateTimeLocal(+h):h}var f={data:(o||[]).map(function(h){var d=u(h);return r&&delete d.fit,d})};if(!r&&(f.layout=u(l),a)){var v=l._size;f.layout.computed={margin:{b:v.b,l:v.l,r:v.r,t:v.t}}}return s&&(f.frames=u(s)),i&&(f.config=u(e._context,!0)),n==="object"?f:JSON.stringify(f)};zr.modifyFrames=function(e,r){var t,n,a,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Xt.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function m(){return h++,function(){d++,!n&&d===h&&l(v)}}t.runFn(m),setTimeout(m())})}function l(v){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Xt.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(v)}function s(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var u=[zr.previousPromises,s,t.prepareFn,zr.rehover,zr.reselect,o],f=Xr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}zr.doCalcdata=function(e,r){var t=Ei.list(e),n=e._fullData,a=e._fullLayout,i,o,l,s,u=new Array(n.length),f=(e.calcdata||[]).slice();for(e.calcdata=u,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},l=0;l=0;s--)if(A[s].enabled){i._indexToPoints=A[s]._indexToPoints;break}o&&o.calc&&(_=o.calc(e,i))}(!Array.isArray(_)||!_[0])&&(_=[{x:h9,y:h9}]),_[0].t||(_[0].t={}),_[0].trace=i,u[C]=_}}for(m9(t,n,a),l=0;l{"use strict";oc.xmlns="http://www.w3.org/2000/xmlns/";oc.svg="http://www.w3.org/2000/svg";oc.xlink="http://www.w3.org/1999/xlink";oc.svgAttrs={xmlns:oc.svg,"xmlns:xlink":oc.xlink}});var Ka=ne((Qse,S9)=>{"use strict";S9.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var ci=ne(Mo=>{"use strict";var Qn=kt(),Ks=gr(),jU=Ks.strTranslate,m2=lc(),JU=Ka().LINE_SPACING,$U=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Mo.convertToTspans=function(e,r,t){var n=e.text(),a=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&n.match($U),i=Qn.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=fY(e.node(),n);s&&e.style("pointer-events","all"),Mo.positionText(e),t&&t.call(e)}return a?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u};rY(a[2],f,function(v,h,d){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var m=v&&v.select("svg");if(!m||!m.node()){l(),s();return}var p=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});p.node().appendChild(m.node()),h&&h.node()&&m.node().insertBefore(h.node().cloneNode(!0),m.node().firstChild);var y=d.width,b=d.height;m.attr({class:o,height:b,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var C=e.node().style.fill||"black",x=m.select("g");x.attr({fill:C,stroke:C});var _=x.node().getBoundingClientRect(),A=_.width,k=_.height;(A>y||k>b)&&(m.style("overflow","hidden"),_=m.node().getBoundingClientRect(),A=_.width,k=_.height);var M=+e.attr("x"),D=+e.attr("y"),z=u||e.node().getBoundingClientRect().height,F=-z/4;if(o[0]==="y")p.attr({transform:"rotate("+[-90,M,D]+")"+jU(-A/2,F-k/2)});else if(o[0]==="l")D=F-k/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)M=0,D=F;else{var H=e.attr("text-anchor");M=M-A*(H==="middle"?.5:H==="end"?1:0),D=D+F-k/2}m.attr({x:M,y:D}),t&&t.call(e,p),s(p)})})):l(),e};var KU=/(<|<|<)/g,QU=/(>|>|>)/g;function eY(e){return e.replace(KU,"\\lt ").replace(QU,"\\gt ")}var C9=[["$","$"],["\\(","\\)"]];function rY(e,r,t){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){Ks.warn("No MathJax version:",MathJax.version);return}var a,i,o,l,s=function(){return i=Ks.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:C9},displayAlign:"left"})},u=function(){i=Ks.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=C9},f=function(){if(a=MathJax.Hub.config.menuSettings.renderer,a!=="SVG")return MathJax.Hub.setRenderer("SVG")},v=function(){a=MathJax.config.startup.output,a!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var C="math-output-"+Ks.randstr({},64);l=Qn.select("body").append("div").attr({id:C}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(eY(e));var x=l.node();return n===2?MathJax.Hub.Typeset(x):MathJax.typeset([x])},d=function(){var C=l.select(n===2?".MathJax_SVG":".MathJax"),x=!C.empty()&&l.select("svg").node();if(!x)Ks.log("There was an error in the tex syntax.",e),t();else{var _=x.getBoundingClientRect(),A;n===2?A=Qn.select("body").select("#MathJax_SVG_glyphs"):A=C.select("defs"),t(C,A,_)}l.remove()},m=function(){if(a!=="SVG")return MathJax.Hub.setRenderer(a)},p=function(){a!=="svg"&&(MathJax.config.startup.output=a)},y=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(i)},b=function(){MathJax.config=i};n===2?MathJax.Hub.Queue(s,f,h,d,m,y):n===3&&(u(),v(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),p(),b()}))}var E9={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},tY={sub:"0.3em",sup:"-0.6em"},nY={sub:"-0.21em",sup:"0.42em"},L9="\u200B",q9=["http:","https:","mailto:","",void 0,":"],P9=Mo.NEWLINES=/(\r\n?|\n)/g,b2=/(<[^<>]*>)/,_2=/<(\/?)([^ >]*)(\s+(.*))?>/i,aY=//i;Mo.BR_TAG_ALL=//gi;var R9=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,z9=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,N9=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,iY=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function sc(e,r){if(!e)return null;var t=e.match(r),n=t&&(t[3]||t[4]);return n&&Zd(n)}var oY=/(^|;)\s*color:/;Mo.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,n=r.allowedTags!==void 0?r.allowedTags:["br"],a="...",i=a.length,o=e.split(b2),l=[],s="",u=0,f=0;fi?l.push(v.substr(0,p-i)+a):l.push(v.substr(0,p));break}s=""}}return l.join("")};var lY={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},sY=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Zd(e){return e.replace(sY,function(r,t){var n;return t.charAt(0)==="#"?n=uY(t.charAt(1)==="x"?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):n=lY[t],n||r})}Mo.convertEntities=Zd;function uY(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 fY(e,r){r=r.replace(P9," ");var t=!1,n=[],a,i=-1;function o(){i++;var k=document.createElementNS(m2.svg,"tspan");Qn.select(k).attr({class:"line",dy:i*JU+"em"}),e.appendChild(k),a=k;var M=n;if(n=[{node:k}],M.length>1)for(var D=1;D.",r);return}var M=n.pop();k!==M.type&&Ks.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),a=n[n.length-1].node}var f=aY.test(r);f?o():(a=e,n=[{node:e}]);for(var v=r.split(b2),h=0;h{"use strict";var cY=kt(),jd=Jl(),x1=Ot(),Xd=gr(),I9=Pt(),vY=Jf().isValid;function hY(e,r,t){var n=r?Xd.nestedProperty(e,r).get()||{}:e,a=n[t||"color"];a&&a._inputArray&&(a=a._inputArray);var i=!1;if(Xd.isArrayOrTypedArray(a)){for(var o=0;o=0;n--,a++){var i=e[n];t[a]=[1-i[0],i[1]]}return t}function G9(e,r){r=r||{};for(var t=e.domain,n=e.range,a=n.length,i=new Array(a),o=0;o{"use strict";var W9=Oy(),pY=W9.FORMAT_LINK,gY=W9.DATE_FORMAT_LINK;function mY(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?x2:Z9)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function x2(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+pY+"."].join(" ")}function Z9(e,r){return x2(e,r)+[" And for dates see: "+gY+".","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(" ")}X9.exports={axisHoverFormat:mY,descriptionOnlyNumbers:x2,descriptionWithDates:Z9}});var pl=ne((aue,c8)=>{"use strict";var j9=$a(),I0=cl(),f8=Kl().dash,A2=la().extendFlat,J9=bn().templatedArray,nue=Vs().templateFormatStringDescription,$9=w2().descriptionWithDates,yY=Rn().ONEDAY,rs=Pa(),bY=rs.HOUR_PATTERN,_Y=rs.WEEKDAY_PATTERN,M2={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},xY=A2({},M2,{values:M2.values.slice().concat(["sync"])});function K9(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var Q9={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},e8={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},r8={valType:"data_array",editType:"ticks"},t8={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function n8(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function a8(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var i8={valType:"color",dflt:I0.defaultLine,editType:"ticks"},o8={valType:"color",dflt:I0.lightLine,editType:"ticks"};function l8(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var s8=A2({},f8,{editType:"ticks"}),u8={valType:"boolean",editType:"ticks"};c8.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:I0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:j9({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[rs.idRegex.x.toString(),rs.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[rs.idRegex.x.toString(),rs.idRegex.y.toString()],editType:"calc"},rangebreaks:J9("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:[_Y,bY,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:yY},editType:"calc"}),tickmode:xY,nticks:K9(),tick0:Q9,dtick:e8,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:r8,ticktext:{valType:"data_array",editType:"ticks"},ticks:t8,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:n8(),tickwidth:a8(),tickcolor:i8,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:A2({},f8,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:j9({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:$9("tick label")},tickformatstops:J9("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:$9("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:I0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:u8,gridcolor:o8,gridwidth:l8(),griddash:s8,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:I0.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:I0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",rs.idRegex.x.toString(),rs.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",rs.idRegex.x.toString(),rs.idRegex.y.toString()],editType:"plot"},minor:{tickmode:M2,nticks:K9("minor"),tick0:Q9,dtick:e8,tickvals:r8,ticks:t8,ticklen:n8("minor"),tickwidth:a8("minor"),tickcolor:i8,gridcolor:o8,gridwidth:l8("minor"),griddash:s8,showgrid:u8,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var Jd=ne((iue,d8)=>{"use strict";var Sn=pl(),v8=$a(),h8=la().extendFlat,wY=_o().overrideAll;d8.exports=wY({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:Sn.linecolor,outlinewidth:Sn.linewidth,bordercolor:Sn.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Sn.minor.tickmode,nticks:Sn.nticks,tick0:Sn.tick0,dtick:Sn.dtick,tickvals:Sn.tickvals,ticktext:Sn.ticktext,ticks:h8({},Sn.ticks,{dflt:""}),ticklabeloverflow:h8({},Sn.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:Sn.ticklen,tickwidth:Sn.tickwidth,tickcolor:Sn.tickcolor,ticklabelstep:Sn.ticklabelstep,showticklabels:Sn.showticklabels,labelalias:Sn.labelalias,tickfont:v8({}),tickangle:Sn.tickangle,tickformat:Sn.tickformat,tickformatstops:Sn.tickformatstops,tickprefix:Sn.tickprefix,showtickprefix:Sn.showtickprefix,ticksuffix:Sn.ticksuffix,showticksuffix:Sn.showticksuffix,separatethousands:Sn.separatethousands,exponentformat:Sn.exponentformat,minexponent:Sn.minexponent,showexponent:Sn.showexponent,title:{text:{valType:"string"},font:v8({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var H0=ne((lue,g8)=>{"use strict";var MY=Jd(),AY=x0().counter,TY=Sd(),p8=Jf().scales,oue=TY(p8);function $d(e){return"`"+e+"`"}g8.exports=function(r,t){r=r||"",t=t||{};var n=t.cLetter||"c",a="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:n==="z",l=typeof t.colorscaleDflt=="string"?p8[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,v;"colorAttr"in t?(f=t.colorAttr,v=t.colorAttr):(f={z:"z",c:"color"}[n],v="in "+$d(u+f));var h=a?" Has an effect only if "+v+" is set to a numerical array.":"",d=n+"auto",m=n+"min",p=n+"max",y=n+"mid",b=$d(u+d),C=$d(u+m),x=$d(u+p),_=C+" and "+x,A={};A[m]=A[p]=void 0;var k={};k[d]=!1;var M={};return f==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:A},M[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:A},M.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=MY),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:AY("coloraxis"),dflt:null,editType:"calc"}),M}});var k2=ne((sue,m8)=>{"use strict";var kY=la().extendFlat,SY=H0(),T2=Jf().scales;m8.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:T2.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:T2.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:T2.RdBu,editType:"calc"}},coloraxis:kY({_isSubplotObj:!0,editType:"calc"},SY("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var S2=ne((uue,y8)=>{"use strict";var CY=gr();y8.exports=function(r){return CY.isPlainObject(r.colorbar)}});var q2=ne(L2=>{"use strict";var C2=Ot(),b8=gr(),_8=Rn(),LY=_8.ONEDAY,qY=_8.ONEWEEK;L2.dtick=function(e,r){var t=r==="log",n=r==="date",a=r==="category",i=n?LY:1;if(!e)return i;if(C2(e))return e=Number(e),e<=0?i:a?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||t))return i;var o=e.charAt(0),l=e.substr(1);return l=C2(l)?Number(l):0,l<=0||!(n&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};L2.tick0=function(e,r,t,n){if(r==="date")return b8.cleanDate(e,b8.dateTick0(t,n%qY===0?1:0));if(!(n==="D1"||n==="D2"))return C2(e)?Number(e):0}});var D2=ne((cue,w8)=>{"use strict";var x8=q2(),DY=gr().isArrayOrTypedArray,EY=ji().isTypedArraySpec,PY=ji().decodeTypedArraySpec;w8.exports=function(r,t,n,a,i){i||(i={});var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,u=o?"minor.":"";function f(C){var x=l[C];return EY(x)&&(x=PY(x)),x!==void 0?x:(s._template||{})[C]}var v=f("tick0"),h=f("dtick"),d=f("tickvals"),m=DY(d)?"array":h?"linear":"auto",p=n(u+"tickmode",m);if(p==="auto"||p==="sync")n(u+"nticks");else if(p==="linear"){var y=s.dtick=x8.dtick(h,a);s.tick0=x8.tick0(v,a,t.calendar,y)}else if(a!=="multicategory"){var b=n(u+"tickvals");b===void 0?s.tickmode="auto":o||n("ticktext")}}});var P2=ne((vue,A8)=>{"use strict";var E2=gr(),M8=pl();A8.exports=function(r,t,n,a){var i=a.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?M8.minor:M8,u=i?"minor.":"",f=E2.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),v=E2.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),h=E2.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=n(u+"ticks",!i&&a.outerTicks||f||v||h?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var R2=ne((hue,T8)=>{"use strict";T8.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],n=t.filter(function(i){return r[i]!==void 0}),a=function(i){return r[i]===r[n[0]]};if(n.every(a)||n.length===1)return r[n[0]]}});var gl=ne((due,k8)=>{"use strict";var Kd=gr(),RY=bn();k8.exports=function(r,t,n){var a=n.name,i=n.inclusionAttr||"visible",o=t[a],l=Kd.isArrayOrTypedArray(r[a])?r[a]:[],s=t[a]=[],u=RY.arrayTemplater(t,a,i),f,v;for(f=0;f{"use strict";var z2=gr(),zY=Pt().contrast,S8=pl(),NY=R2(),FY=gl();C8.exports=function(r,t,n,a,i){i||(i={});var o=n("labelalias");z2.isPlainObject(o)||delete t.labelalias;var l=NY(r),s=n("showticklabels");if(s){i.noTicklabelshift||n("ticklabelshift"),i.noTicklabelstandoff||n("ticklabelstandoff");var u=i.font||{},f=t.color,v=t.ticklabelposition||"",h=v.indexOf("inside")!==-1?zY(i.bgColor):f&&f!==S8.color.dflt?f:u.color;if(z2.coerceFont(n,"tickfont",u,{overrideDflt:{color:h}}),!i.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&n("ticklabelstep"),!i.noAng){var d=n("tickangle");!i.noAutotickangles&&d==="auto"&&n("autotickangles")}if(a!=="category"){var m=n("tickformat");FY(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:IY}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!m&&a!=="date"&&(n("showexponent",l),n("exponentformat"),n("minexponent"),n("separatethousands"))}!i.noMinorloglabels&&a==="log"&&n("minorloglabels")}};function IY(e,r){function t(a,i){return z2.coerce(e,r,S8.tickformatstops,a,i)}var n=t("enabled");n&&(t("dtickrange"),t("value"))}});var F2=ne((gue,L8)=>{"use strict";var HY=R2();L8.exports=function(r,t,n,a,i){i||(i={});var o=i.tickSuffixDflt,l=HY(r),s=n("tickprefix");s&&n("showtickprefix",l);var u=n("ticksuffix",o);u&&n("showticksuffix",l)}});var I2=ne((mue,q8)=>{"use strict";var Gu=gr(),BY=bn(),OY=D2(),UY=P2(),YY=N2(),GY=F2(),VY=Jd();q8.exports=function(r,t,n){var a=BY.newContainer(t,"colorbar"),i=r.colorbar||{};function o(H,W){return Gu.coerce(i,a,VY,H,W)}var l=n.margin||{t:0,b:0,l:0,r:0},s=n.width-l.l-l.r,u=n.height-l.t-l.b,f=o("orientation"),v=f==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(v?s:u):30);var d=o("lenmode");o("len",d==="fraction"?1:v?u:s);var m=o("yref"),p=o("xref"),y=m==="paper",b=p==="paper",C,x,_,A="left";v?(_="middle",A=b?"left":"right",C=b?1.02:1,x=.5):(_=y?"bottom":"top",A="center",C=.5,x=y?1.02:1),Gu.coerce(i,a,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:C}},"x"),Gu.coerce(i,a,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:x}},"y"),o("xanchor",A),o("xpad"),o("yanchor",_),o("ypad"),Gu.noneOrAll(i,a,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var k=Gu.coerce(i,a,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),OY(i,a,o,"linear");var M=n.font,D={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};k.indexOf("inside")!==-1&&(D.bgColor="black"),GY(i,a,o,"linear",D),YY(i,a,o,"linear",D),UY(i,a,o,"linear",D),o("title.text",n._dfltTitle.colorbar);var z=a.showticklabels?a.tickfont:M,F=Gu.extendFlat({},M,{family:z.family,size:Gu.bigFont(z.size)});Gu.coerceFont(o,"title.font",F),o("title.side",v?"top":"right")}});var B0=ne((yue,P8)=>{"use strict";var D8=Ot(),B2=gr(),WY=S2(),ZY=I2(),E8=Jf().isValid,XY=dt().traceIs;function H2(e,r){var t=r.slice(0,r.length-1);return r?B2.nestedProperty(e,t).get()||{}:e}P8.exports=function e(r,t,n,a,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=H2(r,o),f=H2(t,o),v=H2(t._template||{},o)||{},h=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,n,a,i)};if(s){var d=n._colorAxes||{},m=a(o+"coloraxis");if(m){var p=XY(t,"contour")&&B2.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[m];y?(y[2].push(h),y[0]!==p&&(y[0]=!1,B2.warn(["Ignoring coloraxis:",m,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[m]=[p,t,[h]];return}}var b=u[l+"min"],C=u[l+"max"],x=D8(b)&&D8(C)&&b{"use strict";var R8=gr(),jY=bn(),z8=k2(),JY=B0();N8.exports=function(r,t){function n(v,h){return R8.coerce(r,t,z8,v,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var a=t._colorAxes,i,o;function l(v,h){return R8.coerce(i,o,z8.coloraxis,v,h)}for(var s in a){var u=a[s];if(u[0])i=r[s]||{},o=jY.newContainer(t,s,"coloraxis"),o._name=s,JY(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var $Y=gr(),KY=es().hasColorscale,QY=es().extractOpts;I8.exports=function(r,t){function n(f,v){var h=f["_"+v];h!==void 0&&(f[v]=h)}function a(f,v){var h=v.container?$Y.nestedProperty(f,v.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=QY(h),m=d.auto;(m||d.min===void 0)&&n(h,v.min),(m||d.max===void 0)&&n(h,v.max),d.autocolorscale&&n(h,"colorscale")}}for(var i=0;i{"use strict";var B8=Ot(),O2=gr(),eG=es().extractOpts;O8.exports=function(r,t,n){var a=r._fullLayout,i=n.vals,o=n.containerStr,l=o?O2.nestedProperty(t,o).get():t,s=eG(l),u=s.auto!==!1,f=s.min,v=s.max,h=s.mid,d=function(){return O2.aggNums(Math.min,null,i)},m=function(){return O2.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&B8(f)?f=Math.min(f,d()):f=d()),v===void 0?v=m():u&&(l._colorAx&&B8(v)?v=Math.max(v,m()):v=m()),u&&h!==void 0&&(v-h>h-f?f=h-(v-h):v-h=0?p=a.colorscale.sequential:p=a.colorscale.sequentialminus,s._sync("colorscale",p)}}});var rp=ne((wue,U8)=>{"use strict";var ep=Jf(),O0=es();U8.exports={moduleType:"component",name:"colorscale",attributes:H0(),layoutAttributes:k2(),supplyLayoutDefaults:F8(),handleDefaults:B0(),crossTraceDefaults:H8(),calc:Qd(),scales:ep.scales,defaultScale:ep.defaultScale,getScale:ep.get,isValidScale:ep.isValid,hasColorscale:O0.hasColorscale,extractOpts:O0.extractOpts,extractScale:O0.extractScale,flipScale:O0.flipScale,makeColorScaleFunc:O0.makeColorScaleFunc,makeColorScaleFuncFromTrace:O0.makeColorScaleFuncFromTrace}});var Qa=ne((Mue,G8)=>{"use strict";var Y8=gr(),rG=ji().isTypedArraySpec;G8.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 Y8.isPlainObject(r)&&(Y8.isArrayOrTypedArray(r.size)||rG(r.size))}}});var W8=ne((Aue,V8)=>{"use strict";var tG=Ot();V8.exports=function(r,t){t||(t=2);var n=r.marker,a=n.sizeref||1,i=n.sizemin||0,o=n.sizemode==="area"?function(l){return Math.sqrt(l/a)}:function(l){return l/a};return function(l){var s=o(l/t);return tG(s)&&s>0?Math.max(s,i):0}}});var Vu=ne(Ba=>{"use strict";var Z8=gr();Ba.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Ba.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],n=e.yaxes||[],a=0;a=0&&t.index{J8.exports=lG;var U2={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},oG=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function lG(e){var r=[];return e.replace(oG,function(t,n,a){var i=n.toLowerCase();for(a=uG(a),i=="m"&&a.length>2&&(r.push([n].concat(a.splice(0,2))),i="l",n=n=="m"?"l":"L");;){if(a.length==U2[i])return a.unshift(n),r.push(a);if(a.length{"use strict";var fG=Y2(),kr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},gt="M0,0Z",$8=Math.sqrt(2),Wu=Math.sqrt(3),G2=Math.PI,V2=Math.cos,W2=Math.sin;tM.exports={circle:{n:0,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2),a="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return t?yt(r,t,a):a}},square:{n:1,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.3,2);return yt(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.4,2),a=kr(e*1.2,2);return yt(r,t,"M"+a+","+n+"H"+n+"V"+a+"H-"+n+"V"+n+"H-"+a+"V-"+n+"H-"+n+"V-"+a+"H"+n+"V-"+n+"H"+a+"Z")}},x:{n:4,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.8/$8,2),a="l"+n+","+n,i="l"+n+",-"+n,o="l-"+n+",-"+n,l="l-"+n+","+n;return yt(r,t,"M0,"+n+a+i+o+i+o+l+o+l+a+l+a+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*2/Wu,2),a=kr(e/2,2),i=kr(e,2);return yt(r,t,"M-"+n+","+a+"H"+n+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*2/Wu,2),a=kr(e/2,2),i=kr(e,2);return yt(r,t,"M-"+n+",-"+a+"H"+n+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*2/Wu,2),a=kr(e/2,2),i=kr(e,2);return yt(r,t,"M"+a+",-"+n+"V"+n+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*2/Wu,2),a=kr(e/2,2),i=kr(e,2);return yt(r,t,"M-"+a+",-"+n+"V"+n+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.6,2),a=kr(e*1.2,2);return yt(r,t,"M-"+a+",-"+n+"H"+n+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.6,2),a=kr(e*1.2,2);return yt(r,t,"M"+n+",-"+a+"V"+n+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.6,2),a=kr(e*1.2,2);return yt(r,t,"M"+a+","+n+"H-"+n+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.6,2),a=kr(e*1.2,2);return yt(r,t,"M-"+n+","+a+"V-"+n+"H"+a+"Z")}},pentagon:{n:13,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.951,2),a=kr(e*.588,2),i=kr(-e,2),o=kr(e*-.309,2),l=kr(e*.809,2);return yt(r,t,"M"+n+","+o+"L"+a+","+l+"H-"+a+"L-"+n+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2),a=kr(e/2,2),i=kr(e*Wu/2,2);return yt(r,t,"M"+i+",-"+a+"V"+a+"L0,"+n+"L-"+i+","+a+"V-"+a+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2),a=kr(e/2,2),i=kr(e*Wu/2,2);return yt(r,t,"M-"+a+","+i+"H"+a+"L"+n+",0L"+a+",-"+i+"H-"+a+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.924,2),a=kr(e*.383,2);return yt(r,t,"M-"+a+",-"+n+"H"+a+"L"+n+",-"+a+"V"+a+"L"+a+","+n+"H-"+a+"L-"+n+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,r,t){if(mt(r))return gt;var n=e*1.4,a=kr(n*.225,2),i=kr(n*.951,2),o=kr(n*.363,2),l=kr(n*.588,2),s=kr(-n,2),u=kr(n*-.309,2),f=kr(n*.118,2),v=kr(n*.809,2),h=kr(n*.382,2);return yt(r,t,"M"+a+","+u+"H"+i+"L"+o+","+f+"L"+l+","+v+"L0,"+h+"L-"+l+","+v+"L-"+o+","+f+"L-"+i+","+u+"H-"+a+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.66,2),a=kr(e*.38,2),i=kr(e*.76,2);return yt(r,t,"M-"+i+",0l-"+a+",-"+n+"h"+i+"l"+a+",-"+n+"l"+a+","+n+"h"+i+"l-"+a+","+n+"l"+a+","+n+"h-"+i+"l-"+a+","+n+"l-"+a+",-"+n+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*Wu*.8,2),a=kr(e*.8,2),i=kr(e*1.6,2),o=kr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return yt(r,t,"M-"+n+","+a+l+n+","+a+l+"0,-"+i+l+"-"+n+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*Wu*.8,2),a=kr(e*.8,2),i=kr(e*1.6,2),o=kr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return yt(r,t,"M"+n+",-"+a+l+"-"+n+",-"+a+l+"0,"+i+l+n+",-"+a+"Z")}},"star-square":{n:21,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.1,2),a=kr(e*2,2),i="A "+a+","+a+" 0 0 1 ";return yt(r,t,"M-"+n+",-"+n+i+"-"+n+","+n+i+n+","+n+i+n+",-"+n+i+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.4,2),a=kr(e*1.9,2),i="A "+a+","+a+" 0 0 1 ";return yt(r,t,"M-"+n+",0"+i+"0,"+n+i+n+",0"+i+"0,-"+n+i+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*.7,2),a=kr(e*1.4,2);return yt(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.4,2),a=kr(e*.7,2);return yt(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2),a=kr(e/$8,2);return yt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.3,2);return yt(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.3,2),a=kr(e*.65,2);return yt(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.4,2);return yt(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.2,2),a=kr(e*.85,2);return yt(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(mt(r))return gt;var n=kr(e/2,2),a=kr(e,2);return yt(r,t,"M"+n+","+a+"V-"+a+"M"+(n-a)+",-"+a+"V"+a+"M"+a+","+n+"H-"+a+"M-"+a+","+(n-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.2,2),a=kr(e*1.6,2),i=kr(e*.8,2);return yt(r,t,"M-"+n+","+i+"L0,0M"+n+","+i+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.2,2),a=kr(e*1.6,2),i=kr(e*.8,2);return yt(r,t,"M-"+n+",-"+i+"L0,0M"+n+",-"+i+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.2,2),a=kr(e*1.6,2),i=kr(e*.8,2);return yt(r,t,"M"+i+","+n+"L0,0M"+i+",-"+n+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.2,2),a=kr(e*1.6,2),i=kr(e*.8,2);return yt(r,t,"M-"+i+","+n+"L0,0M-"+i+",-"+n+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.4,2);return yt(r,t,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*1.4,2);return yt(r,t,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2);return yt(r,t,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2),a=kr(e*2,2);return yt(r,t,"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2),a=kr(e*2,2);return yt(r,t,"M0,0L-"+n+",-"+a+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*2,2),a=kr(e,2);return yt(r,t,"M0,0L"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*2,2),a=kr(e,2);return yt(r,t,"M0,0L-"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2),a=kr(e*2,2);return yt(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(mt(r))return gt;var n=kr(e,2),a=kr(e*2,2);return yt(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+a+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*2,2),a=kr(e,2);return yt(r,t,"M0,-"+a+"V"+a+"M0,0L"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(mt(r))return gt;var n=kr(e*2,2),a=kr(e,2);return yt(r,t,"M0,-"+a+"V"+a+"M0,0L-"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(mt(r))return gt;var n=G2/2.5,a=2*e*V2(n),i=2*e*W2(n);return yt(r,t,"M0,0L"+-a+","+i+"L"+a+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(mt(r))return gt;var n=G2/4,a=2*e*V2(n),i=2*e*W2(n);return yt(r,t,"M0,0L"+-a+","+i+"A "+2*e+","+2*e+" 0 0 1 "+a+","+i+"Z")},backoff:.4,noDot:!0}};function mt(e){return e===null}var K8,Q8,eM,rM;function yt(e,r,t){if((!e||e%360===0)&&!r)return t;if(eM===e&&rM===r&&K8===t)return Q8;eM=e,rM=r,K8=t;function n(y,b){var C=V2(y),x=W2(y),_=b[0],A=b[1]+(r||0);return[_*C-A*x,_*x+A*C]}for(var a=e/180*G2,i=0,o=0,l=fG(t),s="",u=0;u{"use strict";var ba=kt(),un=gr(),cG=un.numberFormat,vc=Ot(),K2=Jl(),np=dt(),Ra=Pt(),vG=rp(),M1=un.strTranslate,ap=ci(),hG=lc(),dG=Ka(),pG=dG.LINE_SPACING,hM=hd().DESELECTDIM,gG=Qa(),mG=W8(),yG=Vu().appendArrayPointValue,Ir=MM.exports={};Ir.font=function(e,r){var t=r.variant,n=r.style,a=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Ra.fill,i),a&&e.style("font-weight",a),n&&e.style("font-style",n),t&&e.style("font-variant",t),f&&e.style("text-transform",Z2(_G(f))),s&&e.style("text-shadow",s==="auto"?ap.makeTextShadow(Ra.contrast(i)):Z2(s)),u&&e.style("text-decoration-line",Z2(xG(u)))};function Z2(e){return e==="none"?void 0:e}var bG={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function _G(e){return bG[e]}function xG(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Ir.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};Ir.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};Ir.setRect=function(e,r,t,n,a){e.call(Ir.setPosition,r,t).call(Ir.setSize,n,a)};Ir.translatePoint=function(e,r,t,n){var a=t.c2p(e.x),i=n.c2p(e.y);if(vc(a)&&vc(i)&&r.node())r.node().nodeName==="text"?r.attr("x",a).attr("y",i):r.attr("transform",M1(a,i));else return!1;return!0};Ir.translatePoints=function(e,r,t){e.each(function(n){var a=ba.select(this);Ir.translatePoint(n,a,r,t)})};Ir.hideOutsideRangePoint=function(e,r,t,n,a,i){r.attr("display",t.isPtWithinRange(e,a)&&n.isPtWithinRange(e,i)?null:"none")};Ir.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,n=r.yaxis;e.each(function(a){var i=a[0].trace,o=i.xcalendar,l=i.ycalendar,s=np.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){Ir.hideOutsideRangePoint(u,ba.select(this),t,n,o,l)})})}};Ir.crispRound=function(e,r,t){return!r||!vc(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};Ir.singleLineStyle=function(e,r,t,n,a){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=a||i.dash||"";Ra.stroke(r,n||i.color),Ir.dashLine(r,l,o)};Ir.lineGroupStyle=function(e,r,t,n){e.style("fill","none").each(function(a){var i=(((a||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=n||i.dash||"";ba.select(this).call(Ra.stroke,t||i.color).call(Ir.dashLine,l,o)})};Ir.dashLine=function(e,r,t){t=+t||0,r=Ir.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};Ir.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function dM(e,r,t,n){var a=r.fillpattern,i=r.fillgradient,o=Ir.getPatternAttr,l=a&&(o(a.shape,0,"")||o(a.path,0,""));if(l){var s=o(a.bgcolor,0,null),u=o(a.fgcolor,0,null),f=a.fgopacity,v=o(a.size,0,8),h=o(a.solidity,0,.3),d=r.uid;Ir.pattern(e,"point",t,d,l,v,h,void 0,a.fillmode,s,u,f)}else if(i&&i.type!=="none"){var m=i.type,p="scatterfill-"+r.uid;if(n&&(p="legendfill-"+r.uid),!n&&(i.start!==void 0||i.stop!==void 0)){var y,b;m==="horizontal"?(y={x:i.start,y:0},b={x:i.stop,y:0}):m==="vertical"&&(y={x:0,y:i.start},b={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(mM,t,p,"linear",i.colorscale,"fill",y,b,!0,!1)}else m==="horizontal"&&(m=m+"reversed"),e.call(Ir.gradient,t,p,m,i.colorscale,"fill")}else r.fillcolor&&e.call(Ra.fill,r.fillcolor)}Ir.singleFillStyle=function(e,r){var t=ba.select(e.node()),n=t.data(),a=((n[0]||[])[0]||{}).trace||{};dM(e,a,r,!1)};Ir.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(n){var a=ba.select(this);n[0].trace&&dM(a,n[0].trace,r,t)})};var aM=nM();Ir.symbolNames=[];Ir.symbolFuncs=[];Ir.symbolBackOffs=[];Ir.symbolNeedLines={};Ir.symbolNoDot={};Ir.symbolNoFill={};Ir.symbolList=[];Object.keys(aM).forEach(function(e){var r=aM[e],t=r.n;Ir.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),Ir.symbolNames[t]=e,Ir.symbolFuncs[t]=r.f,Ir.symbolBackOffs[t]=r.backoff||0,r.needLine&&(Ir.symbolNeedLines[t]=!0),r.noDot?Ir.symbolNoDot[t]=!0:Ir.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(Ir.symbolNoFill[t]=!0)});var wG=Ir.symbolNames.length,MG="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Ir.symbolNumber=function(e){if(vc(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=Ir.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=wG||e>=400?0:Math.floor(Math.max(e,0))};function pM(e,r,t,n){var a=e%100;return Ir.symbolFuncs[a](r,t,n)+(e>=200?MG:"")}var iM=cG("~f"),gM={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};Ir.gradient=function(e,r,t,n,a,i){var o=gM[n];return mM(e,r,t,o.type,a,i,o.start,o.stop,!1,o.reversed)};function mM(e,r,t,n,a,i,o,l,s,u){var f=a.length,v;n==="linear"?v={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:n==="radial"&&(v={node:"radialGradient",reversed:u});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),n.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=n.ms2mrc(e.ms),e.mrc=s,n.selectedSizeFn&&(s=e.mrc=n.selectedSizeFn(e));var u=Ir.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=r3(e,t),v=e3(e,t);r.attr("d",pM(u,s,f,v))}var h=!1,d,m,p;if(e.so)p=l.outlierwidth,m=l.outliercolor,d=o.outliercolor;else{var y=(l||{}).width;p=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?m=e.mlcc=n.lineScale(e.mlc):un.isArrayOrTypedArray(l.color)?m=Ra.defaultLine:m=l.color,un.isArrayOrTypedArray(o.color)&&(d=Ra.defaultLine,h=!0),"mc"in e?d=e.mcc=n.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(d=n.selectedColorFn(e))}if(e.om)r.call(Ra.stroke,d).style({"stroke-width":(p||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:p)+"px");var b=o.gradient,C=e.mgt;C?h=!0:C=b&&b.type,un.isArrayOrTypedArray(C)&&(C=C[0],gM[C]||(C=0));var x=o.pattern,_=Ir.getPatternAttr,A=x&&(_(x.shape,e.i,"")||_(x.path,e.i,""));if(C&&C!=="none"){var k=e.mgc;k?h=!0:k=b.color;var M=t.uid;h&&(M+="-"+e.i),Ir.gradient(r,a,M,C,[[0,k],[1,d]],"fill")}else if(A){var D=!1,z=x.fgcolor;!z&&i&&i.color&&(z=i.color,D=!0);var F=_(z,e.i,i&&i.color||null),H=_(x.bgcolor,e.i,null),W=x.fgopacity,B=_(x.size,e.i,8),X=_(x.solidity,e.i,.3);D=D||e.mcc||un.isArrayOrTypedArray(x.shape)||un.isArrayOrTypedArray(x.path)||un.isArrayOrTypedArray(x.bgcolor)||un.isArrayOrTypedArray(x.fgcolor)||un.isArrayOrTypedArray(x.size)||un.isArrayOrTypedArray(x.solidity);var V=t.uid;D&&(V+="-"+e.i),Ir.pattern(r,"point",a,V,A,B,X,e.mcc,x.fillmode,H,F,W)}else un.isArrayOrTypedArray(d)?Ra.fill(r,d[e.i]):Ra.fill(r,d);p&&Ra.stroke(r,m)}};Ir.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=Ir.tryColorscale(t,""),r.lineScale=Ir.tryColorscale(t,"line"),np.traceIs(e,"symbols")&&(r.ms2mrc=gG.isBubble(e)?mG(e):function(){return(t.size||6)/2}),e.selectedpoints&&un.extendFlat(r,Ir.makeSelectedPointStyleFns(e)),r};Ir.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.marker||{},i=t.marker||{},o=n.marker||{},l=a.opacity,s=i.opacity,u=o.opacity,f=s!==void 0,v=u!==void 0;(un.isArrayOrTypedArray(l)||f||v)&&(r.selectedOpacityFn=function(_){var A=_.mo===void 0?a.opacity:_.mo;return _.selected?f?s:A:v?u:hM*A});var h=a.color,d=i.color,m=o.color;(d||m)&&(r.selectedColorFn=function(_){var A=_.mcc||h;return _.selected?d||A:m||A});var p=a.size,y=i.size,b=o.size,C=y!==void 0,x=b!==void 0;return np.traceIs(e,"symbols")&&(C||x)&&(r.selectedSizeFn=function(_){var A=_.mrc||p/2;return _.selected?C?y/2:A:x?b/2:A}),r};Ir.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.textfont||{},i=t.textfont||{},o=n.textfont||{},l=a.color,s=i.color,u=o.color;return r.selectedTextColorFn=function(f){var v=f.tc||l;return f.selected?s||v:u||(s?v:Ra.addOpacity(v,hM))},r};Ir.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=Ir.makeSelectedPointStyleFns(r),n=r.marker||{},a=[];t.selectedOpacityFn&&a.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&a.push(function(i,o){Ra.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&a.push(function(i,o){var l=o.mx||n.symbol||0,s=t.selectedSizeFn(o);i.attr("d",pM(Ir.symbolNumber(l),s,r3(o,r),e3(o,r))),o.mrc2=s}),a.length&&e.each(function(i){for(var o=ba.select(this),l=0;l0?t:0}Ir.textPointStyle=function(e,r,t){if(e.size()){var n;if(r.selectedpoints){var a=Ir.makeSelectedTextStyleFns(r);n=a.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=ba.select(this),u=i?un.extractOption(l,r,"txt","texttemplate"):un.extractOption(l,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,v=f?f(l,r,o):{},h={};yG(h,r,l.i);var d=r._meta||{};u=un.texttemplateString(u,v,o._d3locale,h,l,d)}var m=l.tp||r.textposition,p=bM(l,r),y=n?n(l):l.tc||r.textfont.color;s.call(Ir.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:p,color:y}).text(u).call(ap.convertToTspans,t).call(yM,m,p,l.mrc)})}};Ir.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=Ir.makeSelectedTextStyleFns(r);e.each(function(n){var a=ba.select(this),i=t.selectedTextColorFn(n),o=n.tp||r.textposition,l=bM(n,r);Ra.fill(a,i);var s=np.traceIs(r,"bar-like");yM(a,o,l,n.mrc2||n.mrc,s)})}};var oM=.5;Ir.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],n=[],a;for(a=1;a=s||_>=f&&_<=s)&&(A<=v&&A>=u||A>=v&&A<=u)&&(e=[_,A])}return e}Ir.applyBackoff=wM;Ir.makeTester=function(){var e=un.ensureSingleById(ba.select("body"),"svg","js-plotly-tester",function(t){t.attr(hG.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=un.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Ir.tester=e,Ir.testref=r};Ir.savedBBoxes={};var j2=0,kG=1e4;Ir.bBox=function(e,r,t){t||(t=lM(e));var n;if(t){if(n=Ir.savedBBoxes[t],n)return un.extendFlat({},n)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(t=lM(a),t){var i=+a.getAttribute("x")||0,o=+a.getAttribute("y")||0,l=a.getAttribute("transform");if(!l){var s=Ir.bBox(a,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,n=Ir.savedBBoxes[t],n)return un.extendFlat({},n)}}var u,f;r?u=e:(f=Ir.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),ba.select(u).attr("transform",null).call(ap.positionText,0,0);var v=u.getBoundingClientRect(),h=Ir.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:v.height,width:v.width,left:v.left-h.left,top:v.top-h.top,right:v.right-h.left,bottom:v.bottom-h.top};return j2>=kG&&(Ir.savedBBoxes={},j2=0),t&&(Ir.savedBBoxes[t]=d),j2++,un.extendFlat({},d)};function lM(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Ir.setClipUrl=function(e,r,t){e.attr("clip-path",Q2(r,t))};function Q2(e,r){if(!e)return null;var t=r._context,n=t._exportedPlot?"":t._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}Ir.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}};Ir.setTranslate=function(e,r,t){var n=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[a]("transform")||"";return r=r||0,t=t||0,o=o.replace(n,"").trim(),o+=M1(r,t),o=o.trim(),e[i]("transform",o),o};Ir.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}};Ir.setScale=function(e,r,t){var n=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[a]("transform")||"";return r=r||1,t=t||1,o=o.replace(n,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var SG=/\s*sc.*/;Ir.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var n=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(SG,"");a+=n,a=a.trim(),this.setAttribute("transform",a)})}};var CG=/translate\([^)]*\)\s*$/;Ir.setTextPointsScale=function(e,r,t){e&&e.each(function(){var n,a=ba.select(this),i=a.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(a.attr("transform")||"").match(CG);r===1&&t===1?n=[]:n=[M1(o,l),"scale("+r+","+t+")",M1(-o,-l)],s&&n.push(s),a.attr("transform",n.join(""))}})};function e3(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}Ir.getMarkerStandoff=e3;var w1=Math.atan2,uc=Math.cos,Y0=Math.sin;function sM(e,r){var t=r[0],n=r[1];return[t*uc(e)-n*Y0(e),t*Y0(e)+n*uc(e)]}var uM,fM,cM,vM,J2,$2;function r3(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||un.isArrayOrTypedArray(t))&&(t=0));var n,a,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);n=o[0],a=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)n=l.c2p(e.x),a=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],v=r._geo.project([u,f+1e-5]),h=r._geo.project([u+1e-5,f]),d=w1(h[1]-a,h[0]-n),m=w1(v[1]-a,v[0]-n),p;if(i==="north")p=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,b=f/180*Math.PI,C=uM/180*Math.PI,x=fM/180*Math.PI,_=C-y,A=uc(x)*Y0(_),k=Y0(x)*uc(b)-uc(x)*Y0(b)*uc(_);p=-w1(A,k)-Math.PI,uM=u,fM=f}var M=sM(d,[uc(p),0]),D=sM(m,[Y0(p),0]);t=w1(M[1]+D[1],M[0]+D[0])/Math.PI*180,i==="previous"&&!($2===r.uid&&e.i===J2+1)&&(t=null)}if(i==="previous"&&!r._geo)if($2===r.uid&&e.i===J2+1&&vc(n)&&vc(a)){var z=n-cM,F=a-vM,H=r.line&&r.line.shape||"",W=H.slice(H.length-1);W==="h"&&(F=0),W==="v"&&(z=0),t+=w1(F,z)/Math.PI*180+90}else t=null}return cM=n,vM=a,J2=e.i,$2=r.uid,t}Ir.getMarkerAngle=r3});var A1=ne((Lue,SM)=>{"use strict";var G0=kt(),LG=Ot(),qG=fa(),t3=dt(),hc=gr(),AM=hc.strTranslate,ip=fn(),op=Pt(),V0=ci(),TM=hd(),DG=Ka().OPPOSITE_SIDE,kM=/ [XY][0-9]* /,n3=1.6,a3=1.6;function EG(e,r,t){var n=e._fullLayout,a=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,v=t.containerGroup,h=1,d=a.title,m=(d&&d.text?d.text:"").trim(),p=!1,y=d&&d.font?d.font:{},b=y.family,C=y.size,x=y.color,_=y.weight,A=y.style,k=y.variant,M=y.textcase,D=y.lineposition,z=y.shadow,F=t.subtitlePropName,H=!!F,W=t.subtitlePlaceholder,B=(a.title||{}).subtitle||{text:"",font:{}},X=B.text.trim(),V=!1,re=1,te=B.font,K=te.family,Q=te.size,fe=te.color,he=te.weight,De=te.style,Ne=te.variant,Fe=te.textcase,Je=te.lineposition,Le=te.shadow,rr;i==="title.text"?rr="titleText":i.indexOf("axis")!==-1?rr="axisTitleText":i.indexOf("colorbar")!==-1&&(rr="colorbarTitleText");var se=e._context.edits[rr];function me(ur,cr){return ur===void 0||cr===void 0?!1:ur.replace(kM," % ")===cr.replace(kM," % ")}m===""?h=0:me(m,o)&&(se||(m=""),h=.2,p=!0),H&&(X===""?re=0:me(X,W)&&(se||(X=""),re=.2,V=!0)),t._meta?m=hc.templateString(m,t._meta):n._meta&&(m=hc.templateString(m,n._meta));var we=m||X||se,pe;v||(v=hc.ensureSingle(n._infolayer,"g","g-"+r),pe=n._hColorbarMoveTitle);var U=v.selectAll("text."+r).data(we?[0]:[]);U.enter().append("text"),U.text(m).attr("class",r),U.exit().remove();var ee=null,$=r+"-subtitle",Se=X||se;if(H&&Se&&(ee=v.selectAll("text."+$).data(Se?[0]:[]),ee.enter().append("text"),ee.text(X).attr("class",$),ee.exit().remove()),!we)return v;function Oe(ur,cr){hc.syncOrAsync([Ie,ir],{title:ur,subtitle:cr})}function Ie(ur){var cr=ur.title,Qe=ur.subtitle,pr;!f&&pe&&(f={}),f?(pr="",f.rotate&&(pr+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||pe)&&(pr+=AM(0,(f.offset||0)-(pe||0)))):pr=null,cr.attr("transform",pr);function dr(Ae){if(Ae){var Xe=G0.select(Ae.node().parentNode).select("."+$);if(!Xe.empty()){var hr=Ae.node().getBBox();if(hr.height){var wr=hr.y+hr.height+n3*Q;Xe.attr("y",wr)}}}}if(cr.style("opacity",h*op.opacity(x)).call(ip.font,{color:op.rgb(x),size:G0.round(C,2),family:b,weight:_,style:A,variant:k,textcase:M,shadow:z,lineposition:D}).attr(u).call(V0.convertToTspans,e,dr),Qe){var Te=v.select("."+r+"-math-group"),Ye=cr.node().getBBox(),Ar=Te.node()?Te.node().getBBox():void 0,Nr=Ar?Ar.y+Ar.height+n3*Q:Ye.y+Ye.height+a3*Q,Er=hc.extendFlat({},u,{y:Nr});Qe.attr("transform",pr),Qe.style("opacity",re*op.opacity(fe)).call(ip.font,{color:op.rgb(fe),size:G0.round(Q,2),family:K,weight:he,style:De,variant:Ne,textcase:Fe,shadow:Le,lineposition:Je}).attr(Er).call(V0.convertToTspans,e)}return qG.previousPromises(e)}function ir(ur){var cr=ur.title,Qe=G0.select(cr.node().parentNode);if(s&&s.selection&&s.side&&m){Qe.attr("transform",null);var pr=DG[s.side],dr=s.side==="left"||s.side==="top"?-1:1,Te=LG(s.pad)?s.pad:2,Ye=ip.bBox(Qe.node()),Ar={t:0,b:0,l:0,r:0},Nr=e._fullLayout._reservedMargin;for(var Er in Nr)for(var Ae in Nr[Er]){var Xe=Nr[Er][Ae];Ar[Ae]=Math.max(Ar[Ae],Xe)}var hr={left:Ar.l,top:Ar.t,right:n.width-Ar.r,bottom:n.height-Ar.b},wr=s.maxShift||dr*(hr[s.side]-Ye[s.side]),mr=0;if(wr<0)mr=wr;else{var Tr=s.offsetLeft||0,Dr=s.offsetTop||0;Ye.left-=Tr,Ye.right-=Tr,Ye.top-=Dr,Ye.bottom-=Dr,s.selection.each(function(){var Cr=ip.bBox(this);hc.bBoxIntersect(Ye,Cr,Te)&&(mr=Math.max(mr,dr*(Cr[s.side]-Ye[pr])+Te))}),mr=Math.min(wr,mr),a._titleScoot=Math.abs(mr)}if(mr>0||wr<0){var Or={left:[-mr,0],right:[mr,0],top:[0,-mr],bottom:[0,mr]}[s.side];Qe.attr("transform",AM(Or[0],Or[1]))}}}U.call(Oe,ee);function or(ur,cr){ur.text(cr).on("mouseover.opacity",function(){G0.select(this).transition().duration(TM.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){G0.select(this).transition().duration(TM.HIDE_PLACEHOLDER).style("opacity",0)})}if(se&&(m?U.on(".opacity",null):(or(U,o),p=!0),U.call(V0.makeEditable,{gd:e}).on("edit",function(ur){l!==void 0?t3.call("_guiRestyle",e,i,ur,l):t3.call("_guiRelayout",e,i,ur)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Oe)}).on("input",function(ur){this.text(ur||" ").call(V0.positionText,u.x,u.y)}),H)){if(H&&!m){var Ue=U.node().getBBox(),tr=Ue.y+Ue.height+a3*Q;ee.attr("y",tr)}X?ee.on(".opacity",null):(or(ee,W),V=!0),ee.call(V0.makeEditable,{gd:e}).on("edit",function(ur){t3.call("_guiRelayout",e,"title.subtitle.text",ur)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Oe)}).on("input",function(ur){this.text(ur||" ").call(V0.positionText,ee.attr("x"),ee.attr("y"))})}return U.classed("js-placeholder",p),ee&&ee.classed("js-placeholder",V),v}SM.exports={draw:EG,SUBTITLE_PADDING_EM:a3,SUBTITLE_PADDING_MATHJAX_EM:n3}});var dp=ne((que,EM)=>{"use strict";var PG=kt(),RG=m0().utcFormat,yn=gr(),zG=yn.numberFormat,ts=Ot(),Zu=yn.cleanNumber,NG=yn.ms2DateTime,CM=yn.dateTime2ms,ns=yn.ensureNumber,LM=yn.isArrayOrTypedArray,Xu=Rn(),lp=Xu.FP_SAFE,ml=Xu.BADNUM,FG=Xu.LOG_CLIP,IG=Xu.ONEWEEK,sp=Xu.ONEDAY,up=Xu.ONEHOUR,qM=Xu.ONEMIN,DM=Xu.ONESEC,fp=ua(),hp=Pa(),cp=hp.HOUR_PATTERN,vp=hp.WEEKDAY_PATTERN;function T1(e){return Math.pow(10,e)}function i3(e){return e!=null}EM.exports=function(r,t){t=t||{};var n=r._id||"x",a=n.charAt(0);function i(_,A){if(_>0)return Math.log(_)/Math.LN10;if(_<=0&&A&&r.range&&r.range.length===2){var k=r.range[0],M=r.range[1];return .5*(k+M-2*FG*Math.abs(k-M))}else return ml}function o(_,A,k,M){if((M||{}).msUTC&&ts(_))return+_;var D=CM(_,k||r.calendar);if(D===ml)if(ts(_)){_=+_;var z=Math.floor(yn.mod(_+.05,1)*10),F=Math.round(_-z/10);D=CM(new Date(F))+z/10}else return ml;return D}function l(_,A,k){return NG(_,A,k||r.calendar)}function s(_){return r._categories[Math.round(_)]}function u(_){if(i3(_)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[_]!==void 0)return r._categoriesMap[_];r._categories.push(typeof _=="number"?String(_):_);var A=r._categories.length-1;return r._categoriesMap[_]=A,A}return ml}function f(_,A){for(var k=new Array(A),M=0;Mr.range[1]&&(k=!k);for(var M=k?-1:1,D=M*_,z=0,F=0;FW)z=F+1;else{z=D<(H+W)/2?F:F+1;break}}var B=r._B[z]||0;return isFinite(B)?m(_,r._m2,B):0},b=function(_){var A=r._rangebreaks.length;if(!A)return p(_,r._m,r._b);for(var k=0,M=0;Mr._rangebreaks[M].pmax&&(k=M+1);return p(_,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:ns,r.l2c=r.type==="log"?T1:ns,r.l2p=y,r.p2l=b,r.c2p=r.type==="log"?function(_,A){return y(i(_,A))}:y,r.p2c=r.type==="log"?function(_){return T1(b(_))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Zu,r.c2d=r.c2r=r.l2d=r.l2r=ns,r.d2p=r.r2p=function(_){return r.l2p(Zu(_))},r.p2d=r.p2r=b,r.cleanPos=ns):r.type==="log"?(r.d2r=r.d2l=function(_,A){return i(Zu(_),A)},r.r2d=r.r2c=function(_){return T1(Zu(_))},r.d2c=r.r2l=Zu,r.c2d=r.l2r=ns,r.c2r=i,r.l2d=T1,r.d2p=function(_,A){return r.l2p(r.d2r(_,A))},r.p2d=function(_){return T1(b(_))},r.r2p=function(_){return r.l2p(Zu(_))},r.p2r=b,r.cleanPos=ns):r.type==="date"?(r.d2r=r.r2d=yn.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(_,A,k){return r.l2p(o(_,0,k))},r.p2d=r.p2r=function(_,A,k){return l(b(_),A,k)},r.cleanPos=function(_){return yn.cleanDate(_,ml,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(_){var A=d(_);return A!==void 0?A:r.fraction2r(.5)},r.l2r=r.c2r=ns,r.r2l=d,r.d2p=function(_){return r.l2p(r.r2c(_))},r.p2d=function(_){return s(b(_))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(_){return typeof _=="string"&&_!==""?_:ns(_)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(_){var A=h(_);return A!==void 0?A:r.fraction2r(.5)},r.r2c_just_indices=v,r.l2r=r.c2r=ns,r.r2l=h,r.d2p=function(_){return r.l2p(r.r2c(_))},r.p2d=function(_){return s(b(_))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(_){return Array.isArray(_)||typeof _=="string"&&_!==""?_:ns(_)},r.setupMultiCategory=function(_){var A=r._traceIndices,k,M,D=r._matchGroup;if(D&&r._categories.length===0){for(var z in D)if(z!==n){var F=t[fp.id2name(z)];A=A.concat(F._traceIndices)}}var H=[[0,{}],[0,{}]],W=[];for(k=0;kF[1]&&(M[z?0:1]=k),M[0]===M[1]){var H=r.l2r(A),W=r.l2r(k);if(A!==void 0){var B=H+1;k!==void 0&&(B=Math.min(B,W)),M[z?1:0]=B}if(k!==void 0){var X=W+1;A!==void 0&&(X=Math.max(X,H)),M[z?0:1]=X}}}},r.cleanRange=function(_,A){r._cleanRange(_,A),r.limitRange(_)},r._cleanRange=function(_,A){A||(A={}),_||(_="range");var k=yn.nestedProperty(r,_).get(),M,D;if(r.type==="date"?D=yn.dfltRange(r.calendar):a==="y"?D=hp.DFLTRANGEY:r._name==="realaxis"?D=[0,1]:D=A.dfltRange||hp.DFLTRANGEX,D=D.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(D[0]=0),!k||k.length!==2){yn.nestedProperty(r,_).set(D);return}var z=k[0]===null,F=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=yn.cleanDate(k[0],ml,r.calendar),k[1]=yn.cleanDate(k[1],ml,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!yn.isDateTime(k[M],r.calendar)){r[_]=D;break}if(r.r2l(k[0])===r.r2l(k[1])){var H=yn.constrain(r.r2l(k[0]),yn.MIN_MS+1e3,yn.MAX_MS-1e3);k[0]=r.l2r(H-1e3),k[1]=r.l2r(H+1e3);break}}else{if(!ts(k[M]))if(!(z||F)&&ts(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[_]=D;break}if(k[M]<-lp?k[M]=-lp:k[M]>lp&&(k[M]=lp),k[0]===k[1]){var W=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=W,k[1]+=W}}},r.setScale=function(_){var A=t._size;if(r.overlaying){var k=fp.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var M=_&&r._r?"_r":"range",D=r.calendar;r.cleanRange(M);var z=r.r2l(r[M][0],D),F=r.r2l(r[M][1],D),H=a==="y";if(H?(r._offset=A.t+(1-r.domain[1])*A.h,r._length=A.h*(r.domain[1]-r.domain[0]),r._m=r._length/(z-F),r._b=-r._m*F):(r._offset=A.l+r.domain[0]*A.w,r._length=A.w*(r.domain[1]-r.domain[0]),r._m=r._length/(F-z),r._b=-r._m*z),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var W,B;if(r._rangebreaks=r.locateBreaks(Math.min(z,F),Math.max(z,F)),r._rangebreaks.length){for(W=0;WF&&(X=!X),X&&r._rangebreaks.reverse();var V=X?-1:1;for(r._m2=V*r._length/(Math.abs(F-z)-r._lBreaks),r._B.push(-r._m2*(H?F:z)),W=0;WD&&(D+=7,zD&&(D+=24,z=M&&z=M&&_=Le.min&&(DeLe.max&&(Le.max=Ne),Fe=!1)}Fe&&F.push({min:De,max:Ne})}};for(k=0;k{"use strict";var PM=Ot(),o3=gr(),HG=Rn().BADNUM,pp=o3.isArrayOrTypedArray,BG=o3.isDateTime,OG=o3.cleanNumber,RM=Math.round;NM.exports=function(r,t,n){var a=r,i=n.noMultiCategory;if(pp(a)&&!a.length)return"-";if(!i&&WG(a))return"multicategory";if(i&&Array.isArray(a[0])){for(var o=[],l=0;li*2}function zM(e){return Math.max(1,(e-1)/1e3)}function VG(e,r){for(var t=e.length,n=zM(t),a=0,i=0,o={},l=0;la*2}function WG(e){return pp(e[0])&&pp(e[1])}});var Ju=ne((Eue,GM)=>{"use strict";var ZG=kt(),BM=Ot(),ju=gr(),gp=Rn().FP_SAFE,XG=dt(),jG=fn(),OM=ua(),JG=OM.getFromId,$G=OM.isLinked;GM.exports={applyAutorangeOptions:YM,getAutoRange:s3,makePadFn:u3,doAutoRange:QG,findExtremes:eV,concatExtremes:v3};function s3(e,r){var t,n,a=[],i=e._fullLayout,o=u3(i,r,0),l=u3(i,r,1),s=v3(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return ju.simpleMap(r.range,r.r2l);var v=u[0].val,h=f[0].val;for(t=1;t0&&(F=x-o(k)-l(M),F>_?H/F>A&&(D=k,z=M,A=H/F):H/x>A&&(D={val:k.val,nopad:1},z={val:M.val,nopad:1},A=H/x));function W(te,K){return Math.max(te,l(K))}if(v===h){var B=v-1,X=v+1;if(b)if(v===0)a=[0,1];else{var V=(v>0?f:u).reduce(W,0),re=v/(1-Math.min(.5,V/x));a=v>0?[0,re]:[re,0]}else C?a=[Math.max(0,B),Math.max(1,X)]:a=[B,X]}else b?(D.val>=0&&(D={val:0,nopad:1}),z.val<=0&&(z={val:0,nopad:1})):C&&(D.val-A*o(D)<0&&(D={val:0,nopad:1}),z.val<=0&&(z={val:1,nopad:1})),A=(z.val-D.val-FM(r,k.val,M.val))/(x-o(D)-l(z)),a=[D.val-A*o(D),z.val+A*l(z)];return a=YM(a,r),r.limitRange&&r.limitRange(),m&&a.reverse(),ju.simpleMap(a,r.l2r||Number)}function FM(e,r,t){var n=0;if(e.rangebreaks)for(var a=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),k=_((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=_(t.vpadplus||t.vpad),D=_(t.vpadminus||t.vpad);if(!u){if(C=1/0,x=-1/0,s)for(v=0;v0&&(C=h),h>x&&h-gp&&(C=h),h>x&&h=H;v--)F(v);return{min:n,max:a,opts:t}}function f3(e,r,t,n){UM(e,r,t,n,rV)}function c3(e,r,t,n){UM(e,r,t,n,tV)}function UM(e,r,t,n,a){for(var i=n.tozero,o=n.extrapad,l=!0,s=0;s=t&&(u.extrapad||!o)){l=!1;break}else a(r,u.val)&&u.pad<=t&&(o||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:o})}}function HM(e){return BM(e)&&Math.abs(e)=r}function nV(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&mp(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&mp(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function aV(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&mp(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&mp(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function mp(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,n=s)}}return t=nV(t,r),n=aV(n,r),[t,n]}});var Dn=ne((Pue,vA)=>{"use strict";var Ao=kt(),ea=Ot(),W0=fa(),S1=dt(),ut=gr(),Z0=ut.strTranslate,dc=ci(),iV=A1(),C1=Pt(),$i=fn(),oV=pl(),VM=q2(),za=Rn(),lV=za.ONEMAXYEAR,_p=za.ONEAVGYEAR,xp=za.ONEMINYEAR,sV=za.ONEMAXQUARTER,g3=za.ONEAVGQUARTER,wp=za.ONEMINQUARTER,uV=za.ONEMAXMONTH,X0=za.ONEAVGMONTH,Mp=za.ONEMINMONTH,Ki=za.ONEWEEK,ei=za.ONEDAY,$u=ei/2,is=za.ONEHOUR,L1=za.ONEMIN,Ap=za.ONESEC,fV=za.ONEMILLI,cV=za.ONEMICROSEC,pc=za.MINUS_SIGN,Sp=za.BADNUM,m3={K:"zeroline"},y3={K:"gridline",L:"path"},b3={K:"minor-gridline",L:"path"},tA={K:"tick",L:"path"},WM={K:"tick",L:"text"},ZM={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Cp=Ka(),k1=Cp.MID_SHIFT,gc=Cp.CAP_SHIFT,q1=Cp.LINE_SPACING,vV=Cp.OPPOSITE_SIDE,Tp=3,_r=vA.exports={};_r.setConvert=dp();var hV=l3(),Qs=ua(),dV=Qs.idSort,pV=Qs.isLinked;_r.id2name=Qs.id2name;_r.name2id=Qs.name2id;_r.cleanId=Qs.cleanId;_r.list=Qs.list;_r.listIds=Qs.listIds;_r.getFromId=Qs.getFromId;_r.getFromTrace=Qs.getFromTrace;var nA=Ju();_r.getAutoRange=nA.getAutoRange;_r.findExtremes=nA.findExtremes;var gV=1e-4;function M3(e){var r=(e[1]-e[0])*gV;return[e[0]-r,e[1]+r]}_r.coerceRef=function(e,r,t,n,a,i){var o=n.charAt(n.length-1),l=t._fullLayout._subplots[o+"axis"],s=n+"ref",u={};return a||(a=l[0]||(typeof i=="string"?i:i[0])),i||(i=a),l=l.concat(l.map(function(f){return f+" domain"})),u[s]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:a},ut.coerce(e,r,u,s)};_r.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};_r.coercePosition=function(e,r,t,n,a,i){var o,l,s=_r.getRefType(n);if(s!=="range")o=ut.ensureNumber,l=t(a,i);else{var u=_r.getFromId(r,n);i=u.fraction2r(i),l=t(a,i),o=u.cleanPos}e[a]=o(l)};_r.cleanPosition=function(e,r,t){var n=t==="paper"||t==="pixel"?ut.ensureNumber:_r.getFromId(r,t).cleanPos;return n(e)};_r.redrawComponents=function(e,r){r=r||_r.listIds(e);var t=e._fullLayout;function n(a,i,o,l){for(var s=S1.getComponentMethod(a,i),u={},f=0;f2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};_r.saveRangeInitial=function(e,r){for(var t=_r.list(e,"",!0),n=!1,a=0;av*.3||u(n)||u(a))){var h=t.dtick/2;e+=e+ho){var l=Number(t.substr(1));i.exactYears>o&&l%12===0?e=_r.tickIncrement(e,"M6","reverse")+ei*1.5:i.exactMonths>o?e=_r.tickIncrement(e,"M1","reverse")+ei*15.5:e-=$u;var s=_r.tickIncrement(e,t);if(s<=n)return s}return e}_r.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var n=r.dtick&&ea(r._tmin),a;if(n){var i=_r.tickIncrement(r._tmin,r.dtick,!0);a=[r._tmin,i*.99+r._tmin*.01]}else{var o=ut.simpleMap(r.range,r.r2l);a=[o[0],.8*o[0]+.2*o[1]]}if(e.range=ut.simpleMap(a,r.l2r),e._isMinor=!0,_r.prepTicks(e,t),n){var l=ea(r.dtick),s=ea(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?h3(u,f)?u===2*Ki&&f===2*ei&&(e.dtick=Ki):u===2*Ki&&f===3*ei?e.dtick=Ki:u===Ki&&!(r._input.minor||{}).nticks?e.dtick=ei:JM(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":h3(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?h3(u,f)||(e.dtick=JM(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function h3(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function JM(e,r){return Math.abs(e/r-1)<.001}_r.prepTicks=function(e,r){var t=ut.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,a;n||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?ut.bigFont(e.tickfont.size||12):15,n=e._length/a):(a=e._id.charAt(0)==="y"?40:80,n=ut.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(t[1]-t[0])/n,_r.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=n-1,o=n):(i=n,o=n);var l=e[i].value,s=e[o].value,u=Math.abs(s-l),f=t||u,v=0;f>=xp?u>=xp&&u<=lV?v=u:v=_p:t===g3&&f>=wp?u>=wp&&u<=sV?v=u:v=g3:f>=Mp?u>=Mp&&u<=uV?v=u:v=X0:t===Ki&&f>=Ki?v=Ki:f>=ei?v=ei:t===$u&&f>=$u?v=$u:t===is&&f>=is&&(v=is);var h;v>=u&&(v=u,h=!0);var d=a+v;if(r.rangebreaks&&v>0){for(var m=84,p=0,y=0;yKi&&(v=u)}(v>0||n===0)&&(e[n].periodX=a+v/2)}}_r.calcTicks=function(r,t){for(var n=r.type,a=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||ut.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=ut.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(x?0:1);_--){var A=!_;_?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var k=_?r:ut.extendFlat({},r,r.minor);if(A?_r.prepMinorTicks(k,r,t):_r.prepTicks(k,t),k.tickmode==="array"){_?(y=[],m=$M(r,!A)):(b=[],p=$M(r,!A));continue}if(k.tickmode==="sync"){y=[],m=wV(r);continue}var M=M3(u),D=M[0],z=M[1],F=ea(k.dtick),H=n==="log"&&!(F||k.dtick.charAt(0)==="L"),W=_r.tickFirst(k,t);if(_){if(r._tmin=W,W=z:X<=z;X=_r.tickIncrement(X,te,f,a)){if(_&&V++,k.rangebreaks&&!f){if(X=h)break}if(y.length>d||X===B)break;B=X;var K={value:X};_?(H&&X!==(X|0)&&(K.simpleLabel=!0),i>1&&V%i&&(K.skipLabel=!0),y.push(K)):(K.minor=!0,b.push(K))}}if(!b||b.length<2)s=!1;else{var Q=(b[1].value-b[0].value)*(l?-1:1);WV(Q,r.tickformat)||(s=!1)}if(!s)C=y;else{var fe=y.concat(b);o&&y.length&&(fe=fe.slice(1)),fe=fe.sort(function(tr,ur){return tr.value-ur.value}).filter(function(tr,ur,cr){return ur===0||tr.value!==cr[ur-1].value});var he=fe.map(function(tr,ur){return tr.minor===void 0&&!tr.skipLabel?ur:null}).filter(function(tr){return tr!==null});he.forEach(function(tr){s.map(function(ur){var cr=tr+ur;cr>=0&&cr-1;we--){if(y[we].drop){y.splice(we,1);continue}y[we].value=p3(y[we].value,r);var $=r.c2p(y[we].value);(pe?ee>$-U:ee<$+U)?y.splice(f?we+1:we,1):ee=$}}k3(r)&&Math.abs(u[1]-u[0])===360&&y.pop(),r._tmax=(y[y.length-1]||{}).value,r._prevDateHead="",r._inCalcTicks=!0;var Se,Oe=function(tr){tr.text="",r._prevDateHead=Se};y=y.concat(b);function Ie(tr,ur){var cr=_r.tickText(tr,ur.value,!1,ur.simpleLabel),Qe=ur.periodX;return Qe!==void 0&&(cr.periodX=Qe,(Qe>h||Qeh&&(cr.periodX=h),Qea&&h_p)r/=_p,n=a(10),e.dtick="M"+12*as(r,n,yp);else if(i>X0)r/=X0,e.dtick="M"+as(r,1,KM);else if(i>ei){if(e.dtick=as(r,ei,e._hasDayOfWeekBreaks?[1,2,7,14]:MV),!t){var o=_r.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=ut.dateTick0(e.calendar,2):e.tick0=ut.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>is?e.dtick=as(r,is,KM):i>L1?e.dtick=as(r,L1,QM):i>Ap?e.dtick=as(r,Ap,QM):(n=a(10),e.dtick=as(r,n,yp))}else if(e.type==="log"){e.tick0=0;var s=ut.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,n=a(10),e.dtick="L"+as(r,n,yp)}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))):k3(e)?(e.tick0=0,n=1,e.dtick=as(r,n,AV)):(e.tick0=0,n=a(10),e.dtick=as(r,n,yp));if(e.dtick===0&&(e.dtick=1),!ea(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function lA(e){var r=e.dtick;if(e._tickexponent=0,!ea(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),n=e.l2r(t).replace(/(^-|i)/g,""),a=n.length;if(String(r).charAt(0)==="M")a>10||n.substr(5)!=="01-01"?e._tickround="d":e._tickround=+r.substr(1)%12===0?"y":"m";else if(r>=ei&&a<=10||r>=ei*15)e._tickround="d";else if(r>=L1&&a<=16||r>=is)e._tickround="M";else if(r>=Ap&&a<=19||r>=L1)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(a,i)-20,e._tickround<0&&(e._tickround=4)}}else if(ea(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);ea(r)||(r=Number(r.substr(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(kp(e.exponentformat)&&!A3(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}_r.tickIncrement=function(e,r,t,n){var a=t?-1:1;if(ea(r))return ut.increment(e,a*r);var i=r.charAt(0),o=a*Number(r.substr(1));if(i==="M")return ut.incrementMonth(e,o,n);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?oA:iA,s=e+a*.01,u=ut.roundUp(ut.mod(s,1),l,t);return Math.floor(s)+Math.log(Ao.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};_r.tickFirst=function(e,r){var t=e.r2l||Number,n=ut.simpleMap(e.range,t,void 0,void 0,r),a=n[1]=0&&b<=e._length?y:null};if(i&&ut.isArrayOrTypedArray(e.ticktext)){var v=ut.simpleMap(e.range,e.r2l),h=(Math.abs(v[1]-v[0])-(e._lBreaks||0))/1e4;for(u=0;u"+l;else{var u=E1(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}r.text=o}function kV(e,r,t,n,a){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(a==="never"&&(a=""),n&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=D1(Math.pow(10,o),e,a,n);else if(ea(i)||s==="D"&&(e.minorloglabels==="complete"||ut.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(ut.mod(o+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),v=f.split("e"),h=+v[1],d=Math.abs(h),m=e.exponentformat;m==="power"||kp(m)&&A3(h)?(r.text=v[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),h!==0&&h!==1&&(r.text+=""+(h>0?"":pc)+d+""),r.fontSize*=1.25):(m==="e"||m==="E")&&d>2?r.text=v[0]+m+(h>0?"+":pc)+d:(r.text=D1(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,ut.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var p=String(r.text).charAt(0);(p==="0"||p==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function SV(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function CV(e,r,t){var n=Math.round(r.x),a=e._categories[n]||[],i=a[1]===void 0?"":String(a[1]),o=a[0]===void 0?"":String(a[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function LV(e,r,t,n,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(a="hide"),r.text=D1(r.x,e,a,n)}function qV(e,r,t,n,a){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=DV(i);if(o[1]>=100)r.text=D1(ut.deg2rad(r.x),e,a,n);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=pc+r.text)}}}else r.text=D1(r.x,e,a,n)}function DV(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function n(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var a=n(e),i=e*a,o=Math.abs(t(i,a));return[Math.round(i/o),Math.round(a/o)]}var EV=["f","p","n","\u03BC","m","","k","M","G","T"];function kp(e){return e==="SI"||e==="B"}function A3(e){return e>14||e<-15}function D1(e,r,t,n){var a=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=_r.getTickFormat(r),u=r.separatethousands;if(n){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:ea(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};lA(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,pc);var v=Math.pow(10,-i)/2;if(o==="none"&&(l=0),e=Math.abs(e),e"+m+"":o==="B"&&l===9?e+="B":kp(o)&&(e+=EV[l/3+5])}return a?pc+e:e}_r.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*X0}function n(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var v=f.indexOf(s.charAt(0)),h=f.indexOf(u.charAt(0));return v===h?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):v-h}else return typeof s=="number"?1:-1}function a(s,u,f){var v=f||function(m){return m},h=u[0],d=u[1];return(!h&&typeof h!="number"||v(h)<=v(s))&&(!d&&typeof d!="number"||v(d)>=v(s))}function i(s,u){var f=u[0]===null,v=u[1]===null,h=n(s,u[0])>=0,d=n(s,u[1])<=0;return(f||h)&&(v||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&a.unshift(a.splice(f,1).shift())}});var l={false:{left:0,right:0}};return ut.syncOrAsync(a.map(function(s){return function(){if(s){var u=_r.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=_r.drawOne(e,u,t);return u._shiftPusher&&w3(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=ut.simpleMap(u._r,u.r2l),f}}}))};_r.drawOne=function(e,r,t){t=t||{};var n=t.axShifts||{},a=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),v=_r.counterLetter(u),h=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!h)return;if(r._shiftPusher=r.autoshift||a.indexOf(r._id)!==-1||a.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var m=r.linewidth/2||0;r.ticks==="inside"&&(m+=r.ticklen),w3(r,m,n,!0),w3(r,r.shift||0,n,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=VV(r,n));var p=h[f+"axislayer"],y=r._mainLinePosition,b=y+=r._shift,C=r._mainMirrorPosition,x=r._vals=_r.calcTicks(r),_=[r.mirror,b,C].join("_");for(i=0;i0?Qe.bottom-ur:0,cr))));var Ye=0,Ar=0;if(r._shiftPusher&&(Ye=Math.max(cr,Qe.height>0?Ue==="l"?ur-Qe.left:Qe.right-ur:0),r.title.text!==s._dfltTitle[f]&&(Ar=(r._titleStandoff||0)+(r._titleScoot||0),Ue==="l"&&(Ar+=rA(r))),r._fullDepth=Math.max(Ye,Ar)),r.automargin){pr={x:0,y:0,r:0,l:0,t:0,b:0};var Nr=[0,1],Er=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Ue==="b"?pr[Ue]=r._depth:(pr[Ue]=r._depth=Math.max(Qe.width>0?ur-Qe.top:0,cr),Nr.reverse()),Qe.width>0){var Ae=Qe.right-(r._offset+r._length);Ae>0&&(pr.xr=1,pr.r=Ae);var Xe=r._offset-Qe.left;Xe>0&&(pr.xl=0,pr.l=Xe)}}else if(Ue==="l"?(r._depth=Math.max(Qe.height>0?ur-Qe.left:0,cr),pr[Ue]=r._depth-Er):(r._depth=Math.max(Qe.height>0?Qe.right-ur:0,cr),pr[Ue]=r._depth+Er,Nr.reverse()),Qe.height>0){var hr=Qe.bottom-(r._offset+r._length);hr>0&&(pr.yb=0,pr.b=hr);var wr=r._offset-Qe.top;wr>0&&(pr.yt=1,pr.t=wr)}pr[v]=r.anchor==="free"?r.position:r._anchorAxis.domain[Nr[0]],r.title.text!==s._dfltTitle[f]&&(pr[Ue]+=rA(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(dr={x:0,y:0,r:0,l:0,t:0,b:0},dr[tr]=r.linewidth,r.mirror&&r.mirror!==!0&&(dr[tr]+=cr),r.mirror===!0||r.mirror==="ticks"?dr[v]=r._anchorAxis.domain[Nr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(dr[v]=[r._counterDomainMin,r._counterDomainMax][Nr[1]]))}or&&(Te=S1.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(eA(pr,r.automargin),eA(dr,r.automargin)),W0.autoMargin(e,T3(r),pr),W0.autoMargin(e,fA(r),dr),W0.autoMargin(e,cA(r),Te)}),ut.syncOrAsync(Ie)}};function eA(e,r){if(e){var t=Object.keys(ZM).reduce(function(n,a){return r.indexOf(a)!==-1&&ZM[a].forEach(function(i){n[i]=1}),n},{});Object.keys(e).forEach(function(n){t[n]||(n.length===1?e[n]=0:delete e[n])})}}function PV(e,r){var t=[],n,a=function(i,o){var l=i.xbnd[o];l!==null&&t.push(ut.extendFlat({},i,{x:l}))};if(r.length){for(n=0;ne.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var u=o?-1:1;t=t*u}if(n){var f=e.side,v=l&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;n=n*v}return e._id.charAt(0)==="x"?function(h){return Z0(a+e._offset+e.l2p(_3(h))+t,i+n)}:function(h){return Z0(i+n,a+e._offset+e.l2p(_3(h))+t)}};function _3(e){return e.periodX!==void 0?e.periodX:e.x}function FV(e){var r=e.ticklabelposition||"",t=e.tickson||"",n=function(m){return r.indexOf(m)!==-1},a=n("top"),i=n("left"),o=n("right"),l=n("bottom"),s=n("inside"),u=t!=="boundaries"&&(l||i||a||o);if(!u&&!s)return[0,0];var f=e.side,v=u?(e.tickwidth||0)/2:0,h=Tp,d=e.tickfont?e.tickfont.size:12;return(l||a)&&(v+=d*gc,h+=(e.linewidth||0)/2),(i||o)&&(v+=(e.linewidth||0)/2,h+=Tp),s&&f==="top"&&(h-=d*(1-gc)),(i||a)&&(v=-v),(f==="bottom"||f==="right")&&(h=-h),[u?v:0,s?h:0]}_r.makeTickPath=function(e,r,t,n){n||(n={});var a=n.minor;if(a&&!e.minor)return"";var i=n.len!==void 0?n.len:a?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};_r.makeLabelFns=function(e,r,t){var n=e.ticklabelposition||"",a=e.tickson||"",i=function(B){return n.indexOf(B)!==-1},o=i("top"),l=i("left"),s=i("right"),u=i("bottom"),f=a!=="boundaries"&&(u||l||o||s),v=i("inside"),h=n==="inside"&&e.ticks==="inside"||!v&&e.ticks==="outside"&&a!=="boundaries",d=0,m=0,p=h?e.ticklen:0;if(v?p*=-1:f&&(p=0),h&&(d+=p,t)){var y=ut.deg2rad(t);d=p*Math.cos(y)+1,m=p*Math.sin(y)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(v?-1:1);var b={labelStandoff:d,labelShift:m},C,x,_,A,k=0,M=e.side,D=e._id.charAt(0),z=e.tickangle,F;if(D==="x")F=!v&&M==="bottom"||v&&M==="top",A=F?1:-1,v&&(A*=-1),C=m*A,x=r+d*A,_=F?1:-.2,Math.abs(z)===90&&(v?_+=k1:z===-90&&M==="bottom"?_=gc:z===90&&M==="top"?_=k1:_=.5,k=k1/2*(z/90)),b.xFn=function(B){return B.dx+C+k*B.fontSize},b.yFn=function(B){return B.dy+x+B.fontSize*_},b.anchorFn=function(B,X){if(f){if(l)return"end";if(s)return"start"}return!ea(X)||X===0||X===180?"middle":X*A<0!==v?"end":"start"},b.heightFn=function(B,X,V){return X<-60||X>60?-.5*V:e.side==="top"!==v?-V:0};else if(D==="y"){if(F=!v&&M==="left"||v&&M==="right",A=F?1:-1,v&&(A*=-1),C=d,x=m*A,_=0,!v&&Math.abs(z)===90&&(z===-90&&M==="left"||z===90&&M==="right"?_=gc:_=.5),v){var H=ea(z)?+z:0;if(H!==0){var W=ut.deg2rad(H);k=Math.abs(Math.sin(W))*gc*A,_=0}}b.xFn=function(B){return B.dx+r-(C+B.fontSize*_)*A+k*B.fontSize},b.yFn=function(B){return B.dy+x+B.fontSize*k1},b.anchorFn=function(B,X){return ea(X)&&Math.abs(X)===90?"middle":F?"end":"start"},b.heightFn=function(B,X,V){return e.side==="right"&&(X*=-1),X<-30?-V:X<30?-.5*V:0}}return b};function Lp(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}_r.drawTicks=function(e,r,t){t=t||{};var n=r._id+"tick",a=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+n).data(a,Lp);i.exit().remove(),i.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return C1.stroke(Ao.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return $i.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),qp(r,[tA]),i.attr("transform",t.transFn)};_r.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var n=r._id+"grid",a=r.minor&&r.minor.showgrid,i=a?t.vals.filter(function(b){return b.minor}):[],o=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],l=t.counterAxis;if(l&&_r.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",u=0;u=0;m--){var p=m?h:d;if(p){var y=p.selectAll("path."+n).data(m?o:i,Lp);y.exit().remove(),y.enter().append("path").classed(n,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(b){return C1.stroke(Ao.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return $i.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?v:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}qp(r,[y3,b3])}};_r.drawZeroLine=function(e,r,t){t=t||t;var n=r._id+"zl",a=_r.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+n).data(a?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return dV(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(C1.stroke,r.zerolinecolor||C1.defaultLine).style("stroke-width",$i.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),qp(r,[m3])};_r.drawLabels=function(e,r,t){t=t||{};var n=e._fullLayout,a=r._id,i=r.zerolinelayer==="above traces",o=t.cls||a+"tick",l=t.vals.filter(function(Q){return Q.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],v=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],Lp),h=[];v.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(Q){var fe=Ao.select(this),he=e._promises.length;fe.call(dc.positionText,s.xFn(Q),s.yFn(Q)).call($i.font,{family:Q.font,size:Q.fontSize,color:Q.fontColor,weight:Q.fontWeight,style:Q.fontStyle,variant:Q.fontVariant,textcase:Q.fontTextcase,lineposition:Q.fontLineposition,shadow:Q.fontShadow}).text(Q.text).call(dc.convertToTspans,e),e._promises[he]?h.push(e._promises.pop().then(function(){d(fe,u)})):d(fe,u)}),qp(r,[WM]),v.exit().remove(),t.repositionOnUpdate&&v.each(function(Q){Ao.select(this).select("text").call(dc.positionText,s.xFn(Q),s.yFn(Q))});function d(Q,fe){Q.each(function(he){var De=Ao.select(this),Ne=De.select(".text-math-group"),Fe=s.anchorFn(he,fe),Je=t.transFn.call(De.node(),he)+(ea(fe)&&+fe!=0?" rotate("+fe+","+s.xFn(he)+","+(s.yFn(he)-he.fontSize/2)+")":""),Le=dc.lineCount(De),rr=q1*he.fontSize,se=s.heightFn(he,ea(fe)?+fe:0,(Le-1)*rr);if(se&&(Je+=Z0(0,se)),Ne.empty()){var me=De.select("text");me.attr({transform:Je,"text-anchor":Fe}),me.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var we=$i.bBox(Ne.node()).width,pe=we*{end:-.5,start:.5}[Fe];Ne.attr("transform",Je+Z0(pe,0))}})}r._adjustTickLabelsOverflow=function(){var Q=r.ticklabeloverflow;if(!(!Q||Q==="allow")){var fe=Q.indexOf("hide")!==-1,he=r._id.charAt(0)==="x",De=0,Ne=he?e._fullLayout.width:e._fullLayout.height;if(Q.indexOf("domain")!==-1){var Fe=ut.simpleMap(r.range,r.r2l);De=r.l2p(Fe[0])+r._offset,Ne=r.l2p(Fe[1])+r._offset}var Je=Math.min(De,Ne),Le=Math.max(De,Ne),rr=r.side,se=1/0,me=-1/0;v.each(function(ee){var $=Ao.select(this),Se=$.select(".text-math-group");if(Se.empty()){var Oe=$i.bBox($.node()),Ie=0;he?(Oe.right>Le||Oe.leftLe||Oe.top+(r.tickangle?0:ee.fontSize/4)r["_visibleLabelMin_"+Fe._id]?$.style("display","none"):Le.K==="tick"&&!Je&&$.node().style.display!=="none"&&$.style("display",null)})})})})},d(v,f+1?f:u);function m(){return h.length&&Promise.all(h)}var p=null;function y(){if(d(v,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){p=r.autotickangles[0];var Q=0,fe=[],he,De=1;v.each(function(pr){Q=Math.max(Q,pr.fontSize);var dr=r.l2p(pr.x),Te=x3(this),Ye=$i.bBox(Te.node());De=Math.max(De,dc.lineCount(Te)),fe.push({top:0,bottom:10,height:10,left:dr-Ye.width/2,right:dr+Ye.width/2+2,width:Ye.width+2})});var Ne=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,Fe=l.length,Je=Math.abs((l[Fe-1].x-l[0].x)*r._m)/(Fe-1),Le=Ne?Je/2:Je,rr=Ne?r.ticklen:Q*1.25*De,se=Math.sqrt(Math.pow(Le,2)+Math.pow(rr,2)),me=Le/se,we=r.autotickangles.map(function(pr){return pr*Math.PI/180}),pe=we.find(function(pr){return Math.abs(Math.cos(pr))<=me});pe===void 0&&(pe=we.reduce(function(pr,dr){return Math.abs(Math.cos(pr))re*V&&(W=V,z[D]=F[D]=B[D])}var te=Math.abs(W-H);te-A>0?(te-=A,A*=1+A/te):A=0,r._id.charAt(0)!=="y"&&(A=-A),z[M]=x.p2r(x.r2p(F[M])+k*A),x.autorange==="min"||x.autorange==="max reversed"?(z[0]=null,x._rangeInitial0=void 0,x._rangeInitial1=void 0):(x.autorange==="max"||x.autorange==="min reversed")&&(z[1]=null,x._rangeInitial0=void 0,x._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[x._name+".range"]=z}var K=ut.syncOrAsync(b);return K&&K.then&&e._promises.push(K),K};function IV(e,r,t){var n=r._id+"divider",a=t.vals,i=t.layer.selectAll("path."+n).data(a,Lp);i.exit().remove(),i.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(C1.stroke,r.dividercolor).style("stroke-width",$i.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}_r.getPxPosition=function(e,r){var t=e._fullLayout._size,n=r._id.charAt(0),a=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:n==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:n==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),a==="top"||a==="left")return i._offset;if(a==="bottom"||a==="right")return i._offset+i._length};function rA(e){var r=e.title.font.size,t=(e.title.text.match(dc.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(gc+t*q1):t?r*(t+1)*q1:r}function HV(e,r){var t=e._fullLayout,n=r._id,a=n.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(dc.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*gc:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(k1+l*q1));else{var s=E1(r);if(r.type==="multicategory")o=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),o=10+u+(r.linewidth?r.linewidth-1:0)}s||(a==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=_r.getPxPosition(e,r),v,h,d;a==="x"?(h=r._offset+r._length/2,d=r.side==="top"?f-o:f+o):(d=r._offset+r._length/2,h=r.side==="right"?f+o:f-o,v={rotate:"-90",offset:0});var m;if(r.type!=="multicategory"){var p=r._selections[r._id+"tick"];if(m={selection:p,side:r.side},p&&p.node()&&p.node().parentNode){var y=$i.getTranslate(p.node().parentNode);m.offsetLeft=y.x,m.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=o,iV.draw(e,n+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[a],avoid:m,transform:v,attributes:{x:h,y:d,"text-anchor":"middle"}})}_r.shouldShowZeroLine=function(e,r,t){var n=ut.simpleMap(r.range,r.r2l);return n[0]*n[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Sp)&&(uA(r,0)||!BV(e,r,t,n)||OV(e,r))};_r.clipEnds=function(e,r){return r.filter(function(t){return uA(e,t.x)})};function uA(e,r){var t=e.l2p(r);return t>1&&t1)for(a=1;a=a.min&&e=cV:/%L/.test(r)?e>=fV:/%[SX]/.test(r)?e>=Ap:/%M/.test(r)?e>=L1:/%[HI]/.test(r)?e>=is:/%p/.test(r)?e>=$u:/%[Aadejuwx]/.test(r)?e>=ei:/%[UVW]/.test(r)?e>=Ki:/%[Bbm]/.test(r)?e>=Mp:/%[q]/.test(r)?e>=wp:/%[Yy]/.test(r)?e>=xp:!0}});var dA=ne((Rue,hA)=>{"use strict";hA.exports=function(r,t,n){var a,i;if(n){var o=t==="reversed"||t==="min reversed"||t==="max reversed";a=n[o?1:0],i=n[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?a:void 0),s=r("autorangeoptions.maxallowed",a===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var S3=ne((zue,pA)=>{"use strict";var ZV=dA();pA.exports=function(r,t,n,a){var i=t._template||{},o=t.type||i.type||"-";n("minallowed"),n("maxallowed");var l=n("range");if(!l){var s;!a.noInsiderange&&o!=="log"&&(s=n("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=n("range",s)))}var u=t.getAutorangeDflt(l,a),f=n("autorange",u),v;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,v=!0),v||(u=t.getAutorangeDflt(l,a),f=n("autorange",u)),f&&(ZV(n,f,l),(o==="linear"||o==="-")&&n("rangemode")),t.cleanRange()}});var mA=ne((Nue,gA)=>{var XV={left:0,top:0};gA.exports=jV;function jV(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var n=e.clientX||0,a=e.clientY||0,i=JV(r);return t[0]=n-i.left,t[1]=a-i.top,t}function JV(e){return e===window||e===document||e===document.body?XV:e.getBoundingClientRect()}});var C3=ne((Fue,yA)=>{"use strict";var $V=a2();function KV(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}yA.exports=$V&&KV()});var _A=ne((Iue,bA)=>{"use strict";bA.exports=function(r,t,n,a,i){var o=(r-n)/(a-n),l=o+t/(a-n),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var MA=ne((Hue,wA)=>{"use strict";var xA=gr(),QV=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];wA.exports=function(r,t,n,a){return n==="left"?r=0:n==="center"?r=1:n==="right"?r=2:r=xA.constrain(Math.floor(r*3),0,2),a==="bottom"?t=0:a==="middle"?t=1:a==="top"?t=2:t=xA.constrain(Math.floor(t*3),0,2),QV[t][r]}});var TA=ne((Bue,AA)=>{"use strict";var eW=p1(),rW=qd(),tW=o1().getGraphDiv,nW=t1(),L3=AA.exports={};L3.wrapped=function(e,r,t){e=tW(e),e._fullLayout&&rW.clear(e._fullLayout._uid+nW.HOVERID),L3.raw(e,r,t)};L3.raw=function(r,t){var n=r._fullLayout,a=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&eW.triggerHandler(r,"plotly_beforehover",t)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&a&&r.emit("plotly_unhover",{event:t,points:a}))}});var To=ne((Oue,LA)=>{"use strict";var aW=mA(),q3=o2(),iW=C3(),oW=gr().removeElement,lW=Pa(),mc=LA.exports={};mc.align=_A();mc.getCursor=MA();var SA=TA();mc.unhover=SA.wrapped;mc.unhoverRaw=SA.raw;mc.init=function(r){var t=r.gd,n=1,a=t._context.doubleClickDelay,i=r.element,o,l,s,u,f,v,h,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,iW?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function m(x,_,A){return Math.abs(x)a&&(n=Math.max(n-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var _;v.target===h?_=v:(_={target:h,srcElement:h,toElement:h},Object.keys(v).concat(Object.keys(v.__proto__)).forEach(A=>{var k=v[A];!_[A]&&typeof k!="function"&&(_[A]=k)})),r.clickFn&&r.clickFn(n,_),d||h.dispatchEvent(new MouseEvent("click",x))}t._dragging=!1,t._dragged=!1}};function CA(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}mc.coverSlip=CA;function kA(e){return aW(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Ku=ne((Uue,qA)=>{"use strict";qA.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&r.classed(n,!1)}),t&&r.classed("cursor-"+t,!0)}});var PA=ne((Yue,EA)=>{"use strict";var D3=Ku(),P1="data-savedcursor",DA="!!";EA.exports=function(r,t){var n=r.attr(P1);if(t){if(!n){for(var a=(r.attr("class")||"").split(" "),i=0;i{"use strict";var E3=$a(),sW=cl();RA.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:sW.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:E3({editType:"legend"}),grouptitlefont:E3({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:E3({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Ep=ne(Dp=>{"use strict";Dp.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Dp.isVertical=function(r){return r.orientation!=="h"};Dp.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1}});var N3=ne((Wue,zA)=>{"use strict";var R3=dt(),Qi=gr(),uW=bn(),fW=bo(),cW=P3(),vW=A0(),z3=Ep();function hW(e,r,t,n){var a=r[e]||{},i=uW.newContainer(t,e);function o(te,K){return Qi.coerce(a,i,cW,te,K)}var l=Qi.coerceFont(o,"font",t.font);o("bgcolor",t.paper_bgcolor),o("bordercolor");var s=o("visible");if(s){for(var u,f=function(te,K){var Q=u._input,fe=u;return Qi.coerce(Q,fe,fW,te,K)},v=t.font||{},h=Qi.coerceFont(o,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),d=0,m=!1,p="normal",y=(t.shapes||[]).filter(function(te){return te.showlegend}),b=n.concat(y).filter(function(te){return e===(te.legend||"legend")}),C=0;C(e==="legend"?1:0));if(_===!1&&(t[e]=void 0),!(_===!1&&!a.uirevision)&&(o("uirevision",t.uirevision),_!==!1)){o("borderwidth");var A=o("orientation"),k=o("yref"),M=o("xref"),D=A==="h",z=k==="paper",F=M==="paper",H,W,B,X="left";D?(H=0,R3.getComponentMethod("rangeslider","isVisible")(r.xaxis)?z?(W=1.1,B="bottom"):(W=1,B="top"):z?(W=-.1,B="top"):(W=0,B="bottom")):(W=1,B="auto",F?H=1.02:(H=1,X="right")),Qi.coerce(a,i,{x:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:H}},"x"),Qi.coerce(a,i,{y:{valType:"number",editType:"legend",min:z?-2:0,max:z?3:1,dflt:W}},"y"),o("traceorder",p),z3.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",X),o("yanchor",B),o("maxheight",D?.5:1),o("valign"),Qi.noneOrAll(a,i,["x","y"]);var V=o("title.text");if(V){o("title.side",D?"left":"top");var re=Qi.extendFlat({},l,{size:Qi.bigFont(l.size)});Qi.coerceFont(o,"title.font",re)}}}}zA.exports=function(r,t,n){var a,i=n.slice(),o=t.shapes;if(o)for(a=0;a{"use strict";var j0=dt(),I3=gr(),dW=I3.pushUnique,F3=!0;NA.exports=function(r,t,n){var a=t._fullLayout;if(t._dragged||t._editing)return;var i=a.legend.itemclick,o=a.legend.itemdoubleclick,l=a.legend.groupclick;n===1&&i==="toggle"&&o==="toggleothers"&&F3&&t.data&&t._context.showTips&&I3.notifier(I3._(t,"Double-click on legend to isolate one trace"),"long"),F3=!1;var s;if(n===1?s=i:n===2&&(s=o),!s)return;var u=l==="togglegroup",f=a.hiddenlabels?a.hiddenlabels.slice():[],v=r.data()[0][0];if(v.groupTitle&&v.noClick)return;var h=t._fullData,d=(a.shapes||[]).filter(function(tr){return tr.showlegend}),m=h.concat(d),p=v.trace;p._isShape&&(p=p._fullInput);var y=p.legendgroup,b,C,x,_,A,k,M={},D=[],z=[],F=[];function H(tr,ur){var cr=D.indexOf(tr),Qe=M.visible;return Qe||(Qe=M.visible=[]),D.indexOf(tr)===-1&&(D.push(tr),cr=D.length-1),Qe[cr]=ur,cr}var W=(a.shapes||[]).map(function(tr){return tr._input}),B=!1;function X(tr,ur){W[tr].visible=ur,B=!0}function V(tr,ur){if(!(v.groupTitle&&!u)){var cr=tr._fullInput||tr,Qe=cr._isShape,pr=cr.index;pr===void 0&&(pr=cr._index);var dr=cr.visible===!1?!1:ur;Qe?X(pr,dr):H(pr,dr)}}var re=p.legend,te=p._fullInput,K=te&&te._isShape;if(!K&&j0.traceIs(p,"pie-like")){var Q=v.label,fe=f.indexOf(Q);if(s==="toggle")fe===-1?f.push(Q):f.splice(fe,1);else if(s==="toggleothers"){var he=fe!==-1,De=[];for(b=0;b{"use strict";IA.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var OA=ne((jue,BA)=>{"use strict";var HA=dt(),B3=Ep();BA.exports=function(r,t,n){var a=t._inHover,i=B3.isGrouped(t),o=B3.isReversed(t),l={},s=[],u=!1,f={},v=0,h=0,d,m;function p(te,K,Q){if(t.visible!==!1&&!(n&&te!==t._id))if(K===""||!B3.isGrouped(t)){var fe="~~i"+v;s.push(fe),l[fe]=[Q],v++}else s.indexOf(K)===-1?(s.push(K),u=!0,l[K]=[Q]):l[K].push(Q)}for(d=0;dF&&(z=F)}M[d][0]._groupMinRank=z,M[d][0]._preGroupSort=d}var H=function(te,K){return te[0]._groupMinRank-K[0]._groupMinRank||te[0]._preGroupSort-K[0]._preGroupSort},W=function(te,K){return te.trace.legendrank-K.trace.legendrank||te._preSort-K._preSort};for(M.forEach(function(te,K){te[0]._preGroupSort=K}),M.sort(H),d=0;d{"use strict";var Pp=gr();function UA(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}yc.formatPiePercent=function(r,t){var n=UA((r*100).toPrecision(3));return Pp.numSeparate(n,t)+"%"};yc.formatPieValue=function(r,t){var n=UA(r.toPrecision(10));return Pp.numSeparate(n,t)};yc.getFirstFilled=function(r,t){if(Pp.isArrayOrTypedArray(r))for(var n=0;n{"use strict";var pW=fn(),gW=Pt();YA.exports=function(r,t,n,a){var i=n.marker.pattern;i&&i.shape?pW.pointStyle(r,n,a,t):gW.fill(r,t.color)}});var XA=ne((Kue,ZA)=>{"use strict";var VA=Pt(),WA=O3().castOption,mW=GA();ZA.exports=function(r,t,n,a){var i=n.marker.line,o=WA(i.color,t.pts)||VA.defaultLine,l=WA(i.width,t.pts)||0;r.call(mW,t,n,a).style("stroke-width",l).call(VA.stroke,o)}});var V3=ne((Que,eT)=>{"use strict";var ri=kt(),U3=dt(),Oa=gr(),jA=Oa.strTranslate,eo=fn(),ko=Pt(),Y3=es().extractOpts,Rp=Qa(),yW=XA(),bW=O3().castOption,_W=H3(),JA=12,$A=5,bc=2,xW=10,J0=5;eT.exports=function(r,t,n){var a=t._fullLayout;n||(n=a.legend);var i=n.itemsizing==="constant",o=n.itemwidth,l=(o+_W.itemGap*2)/2,s=jA(l,0),u=function(M,D,z,F){var H;if(M+1)H=M;else if(D&&D.width>0)H=D.width;else return 0;return i?F:Math.min(H,z)};r.each(function(M){var D=ri.select(this),z=Oa.ensureSingle(D,"g","layers");z.style("opacity",M[0].trace.opacity);var F=n.indentation,H=n.valign,W=M[0].lineHeight,B=M[0].height;if(H==="middle"&&F===0||!W||!B)z.attr("transform",null);else{var X={top:1,bottom:-1}[H],V=X*(.5*(W-B+3))||0,re=n.indentation;z.attr("transform",jA(re,V))}var te=z.selectAll("g.legendfill").data([M]);te.enter().append("g").classed("legendfill",!0);var K=z.selectAll("g.legendlines").data([M]);K.enter().append("g").classed("legendlines",!0);var Q=z.selectAll("g.legendsymbols").data([M]);Q.enter().append("g").classed("legendsymbols",!0),Q.selectAll("g.legendpoints").data([M]).enter().append("g").classed("legendpoints",!0)}).each(k).each(h).each(m).each(d).each(y).each(_).each(x).each(f).each(v).each(b).each(C);function f(M){var D=KA(M),z=D.showFill,F=D.showLine,H=D.showGradientLine,W=D.showGradientFill,B=D.anyFill,X=D.anyLine,V=M[0],re=V.trace,te,K,Q=Y3(re),fe=Q.colorscale,he=Q.reversescale,De=function(me){if(me.size())if(z)eo.fillGroupStyle(me,t,!0);else{var we="legendfill-"+re.uid;eo.gradient(me,t,we,G3(he),fe,"fill")}},Ne=function(me){if(me.size()){var we="legendline-"+re.uid;eo.lineGroupStyle(me),eo.gradient(me,t,we,G3(he),fe,"stroke")}},Fe=Rp.hasMarkers(re)||!B?"M5,0":X?"M5,-2":"M5,-3",Je=ri.select(this),Le=Je.select(".legendfill").selectAll("path").data(z||W?[M]:[]);if(Le.enter().append("path").classed("js-fill",!0),Le.exit().remove(),Le.attr("d",Fe+"h"+o+"v6h-"+o+"z").call(De),F||H){var rr=u(void 0,re.line,xW,$A);K=Oa.minExtend(re,{line:{width:rr}}),te=[Oa.minExtend(V,{trace:K})]}var se=Je.select(".legendlines").selectAll("path").data(F||H?[te]:[]);se.enter().append("path").classed("js-line",!0),se.exit().remove(),se.attr("d",Fe+(H?"l"+o+",0.0001":"h"+o)).call(F?eo.lineGroupStyle:Ne)}function v(M){var D=KA(M),z=D.anyFill,F=D.anyLine,H=D.showLine,W=D.showMarker,B=M[0],X=B.trace,V=!W&&!F&&!z&&Rp.hasText(X),re,te;function K(Le,rr,se,me){var we=Oa.nestedProperty(X,Le).get(),pe=Oa.isArrayOrTypedArray(we)&&rr?rr(we):we;if(i&&pe&&me!==void 0&&(pe=me),se){if(pese[1])return se[1]}return pe}function Q(Le){return B._distinct&&B.index&&Le[B.index]?Le[B.index]:Le[0]}if(W||V||H){var fe={},he={};if(W){fe.mc=K("marker.color",Q),fe.mx=K("marker.symbol",Q),fe.mo=K("marker.opacity",Oa.mean,[.2,1]),fe.mlc=K("marker.line.color",Q),fe.mlw=K("marker.line.width",Oa.mean,[0,5],bc),he.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var De=K("marker.size",Oa.mean,[2,16],JA);fe.ms=De,he.marker.size=De}H&&(he.line={width:K("line.width",Q,[0,10],$A)}),V&&(fe.tx="Aa",fe.tp=K("textposition",Q),fe.ts=10,fe.tc=K("textfont.color",Q),fe.tf=K("textfont.family",Q),fe.tw=K("textfont.weight",Q),fe.ty=K("textfont.style",Q),fe.tv=K("textfont.variant",Q),fe.tC=K("textfont.textcase",Q),fe.tE=K("textfont.lineposition",Q),fe.tS=K("textfont.shadow",Q)),re=[Oa.minExtend(B,fe)],te=Oa.minExtend(X,he),te.selectedpoints=null,te.texttemplate=null}var Ne=ri.select(this).select("g.legendpoints"),Fe=Ne.selectAll("path.scatterpts").data(W?re:[]);Fe.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),Fe.exit().remove(),Fe.call(eo.pointStyle,te,t),W&&(re[0].mrc=3);var Je=Ne.selectAll("g.pointtext").data(V?re:[]);Je.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Je.exit().remove(),Je.selectAll("text").call(eo.textPointStyle,te,t)}function h(M){var D=M[0].trace,z=D.type==="waterfall";if(M[0]._distinct&&z){var F=M[0].trace[M[0].dir].marker;return M[0].mc=F.color,M[0].mlw=F.line.width,M[0].mlc=F.line.color,p(M,this,"waterfall")}var H=[];D.visible&&z&&(H=M[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var W=ri.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(H);W.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),W.exit().remove(),W.each(function(B){var X=ri.select(this),V=D[B[0]].marker,re=u(void 0,V.line,J0,bc);X.attr("d",B[1]).style("stroke-width",re+"px").call(ko.fill,V.color),re&&X.call(ko.stroke,V.line.color)})}function d(M){p(M,this)}function m(M){p(M,this,"funnel")}function p(M,D,z){var F=M[0].trace,H=F.marker||{},W=H.line||{},B=H.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",X=z?F.visible&&F.type===z:U3.traceIs(F,"bar"),V=ri.select(D).select("g.legendpoints").selectAll("path.legend"+z).data(X?[M]:[]);V.enter().append("path").classed("legend"+z,!0).attr("d",B).attr("transform",s),V.exit().remove(),V.each(function(re){var te=ri.select(this),K=re[0],Q=u(K.mlw,H.line,J0,bc);te.style("stroke-width",Q+"px");var fe=K.mcc;if(!n._inHover&&"mc"in K){var he=Y3(H),De=he.mid;De===void 0&&(De=(he.max+he.min)/2),fe=eo.tryColorscale(H,"")(De)}var Ne=fe||K.mc||H.color,Fe=H.pattern,Je=eo.getPatternAttr,Le=Fe&&(Je(Fe.shape,0,"")||Je(Fe.path,0,""));if(Le){var rr=Je(Fe.bgcolor,0,null),se=Je(Fe.fgcolor,0,null),me=Fe.fgopacity,we=QA(Fe.size,8,10),pe=QA(Fe.solidity,.5,1),U="legend-"+F.uid;te.call(eo.pattern,"legend",t,U,Le,we,pe,fe,Fe.fillmode,rr,se,me)}else te.call(ko.fill,Ne);Q&&ko.stroke(te,K.mlc||W.color)})}function y(M){var D=M[0].trace,z=ri.select(this).select("g.legendpoints").selectAll("path.legendbox").data(D.visible&&U3.traceIs(D,"box-violin")?[M]:[]);z.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),z.exit().remove(),z.each(function(){var F=ri.select(this);if((D.boxpoints==="all"||D.points==="all")&&ko.opacity(D.fillcolor)===0&&ko.opacity((D.line||{}).color)===0){var H=Oa.minExtend(D,{marker:{size:i?JA:Oa.constrain(D.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});z.call(eo.pointStyle,H,t)}else{var W=u(void 0,D.line,J0,bc);F.style("stroke-width",W+"px").call(ko.fill,D.fillcolor),W&&ko.stroke(F,D.line.color)}})}function b(M){var D=M[0].trace,z=ri.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(D.visible&&D.type==="candlestick"?[M,M]:[]);z.enter().append("path").classed("legendcandle",!0).attr("d",function(F,H){return H?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(F,H){var W=ri.select(this),B=D[H?"increasing":"decreasing"],X=u(void 0,B.line,J0,bc);W.style("stroke-width",X+"px").call(ko.fill,B.fillcolor),X&&ko.stroke(W,B.line.color)})}function C(M){var D=M[0].trace,z=ri.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(D.visible&&D.type==="ohlc"?[M,M]:[]);z.enter().append("path").classed("legendohlc",!0).attr("d",function(F,H){return H?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(F,H){var W=ri.select(this),B=D[H?"increasing":"decreasing"],X=u(void 0,B.line,J0,bc);W.style("fill","none").call(eo.dashLine,B.line.dash,X),X&&ko.stroke(W,B.line.color)})}function x(M){A(M,this,"pie")}function _(M){A(M,this,"funnelarea")}function A(M,D,z){var F=M[0],H=F.trace,W=z?H.visible&&H.type===z:U3.traceIs(H,z),B=ri.select(D).select("g.legendpoints").selectAll("path.legend"+z).data(W?[M]:[]);if(B.enter().append("path").classed("legend"+z,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),B.exit().remove(),B.size()){var X=H.marker||{},V=u(bW(X.line.width,F.pts),X.line,J0,bc),re="pieLike",te=Oa.minExtend(H,{marker:{line:{width:V}}},re),K=Oa.minExtend(F,{trace:te},re);yW(B,K,te,t)}}function k(M){var D=M[0].trace,z,F=[];if(D.visible)switch(D.type){case"histogram2d":case"heatmap":F=[["M-15,-2V4H15V-2Z"]],z=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":F=[["M-6,-6V6H6V-6Z"]],z=!0;break;case"densitymapbox":case"densitymap":F=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],z="radial";break;case"cone":F=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],z=!1;break;case"streamtube":F=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],z=!1;break;case"surface":F=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],z=!0;break;case"mesh3d":F=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!1;break;case"volume":F=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!0;break;case"isosurface":F=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],z=!1;break}var H=ri.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(F);H.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),H.exit().remove(),H.each(function(W,B){var X=ri.select(this),V=Y3(D),re=V.colorscale,te=V.reversescale,K=function(De){if(De.size()){var Ne="legendfill-"+D.uid;eo.gradient(De,t,Ne,G3(te,z==="radial"),re,"fill")}},Q;if(re){if(!z){var he=re.length;Q=B===0?re[te?he-1:0][1]:B===1?re[te?0:he-1][1]:re[Math.floor((he-1)/2)][1]}}else{var fe=D.vertexcolor||D.facecolor||D.color;Q=Oa.isArrayOrTypedArray(fe)?fe[B]||fe[0]:fe}X.attr("d",W[0]),Q?X.call(ko.fill,Q):X.call(K)})}};function G3(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function KA(e){var r=e[0].trace,t=r.contours,n=Rp.hasLines(r),a=Rp.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:n=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:a,showLine:n,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:n||o,anyFill:i||l}}function QA(e,r,t){return e&&Oa.isArrayOrTypedArray(e)?r:e>t?t:e}});var j3=ne((efe,fT)=>{"use strict";var Pi=kt(),ra=gr(),Z3=fa(),Q0=dt(),rT=p1(),W3=To(),ta=fn(),Np=Pt(),_c=ci(),tT=FA(),ca=H3(),X3=Ka(),sT=X3.LINE_SPACING,K0=X3.FROM_TL,nT=X3.FROM_BR,aT=OA(),wW=V3(),iT=Ep(),$0=1,MW=/^legend[0-9]*$/;fT.exports=function(r,t){if(t)oT(r,t);else{var n=r._fullLayout,a=n._legends,i=n._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Pi.select(this),f=u.attr("class"),v=f.split(" ")[0];v.match(MW)&&a.indexOf(v)===-1&&u.remove()});for(var o=0;o1)}var m=n.hiddenlabels||[];if(!l&&(!n.showlegend||!s.length))return o.selectAll("."+a).remove(),n._topdefs.select("#"+i).remove(),Z3.autoMargin(e,a);var p=ra.ensureSingle(o,"g",a,function(D){l||D.attr("pointer-events","all")}),y=ra.ensureSingleById(n._topdefs,"clipPath",i,function(D){D.append("rect")}),b=ra.ensureSingle(p,"rect","bg",function(D){D.attr("shape-rendering","crispEdges")});b.call(Np.stroke,t.bordercolor).call(Np.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var C=ra.ensureSingle(p,"g","scrollbox"),x=t.title;t._titleWidth=0,t._titleHeight=0;var _;x.text?(_=ra.ensureSingle(C,"text",a+"titletext"),_.attr("text-anchor","start").call(ta.font,x.font).text(x.text),Fp(_,C,e,t,$0)):C.selectAll("."+a+"titletext").remove();var A=ra.ensureSingle(p,"rect","scrollbar",function(D){D.attr(ca.scrollBarEnterAttrs).call(Np.fill,ca.scrollBarColor)}),k=C.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var M=k.selectAll("g.traces").data(ra.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(D){var z=D[0].trace;return Q0.traceIs(z,"pie-like")?m.indexOf(D[0].label)!==-1?.5:1:z.visible==="legendonly"?.5:1}).each(function(){Pi.select(this).call(TW,e,t)}).call(wW,e,t).each(function(){l||Pi.select(this).call(kW,e,a)}),ra.syncOrAsync([Z3.previousPromises,function(){return LW(e,k,M,t)},function(){var D=n._size,z=t.borderwidth,F=t.xref==="paper",H=t.yref==="paper";if(x.text&&AW(_,t,z),!l){var W,B;F?W=D.l+D.w*t.x-K0[Ip(t)]*t._width:W=n.width*t.x-K0[Ip(t)]*t._width,H?B=D.t+D.h*(1-t.y)-K0[Hp(t)]*t._effHeight:B=n.height*(1-t.y)-K0[Hp(t)]*t._effHeight;var X=qW(e,a,W,B);if(X)return;if(n.margin.autoexpand){var V=W,re=B;W=F?ra.constrain(W,0,n.width-t._width):V,B=H?ra.constrain(B,0,n.height-t._effHeight):re,W!==V&&ra.log("Constrain "+a+".x to make legend fit inside graph"),B!==re&&ra.log("Constrain "+a+".y to make legend fit inside graph")}ta.setTranslate(p,W,B)}if(A.on(".drag",null),p.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var te=t._effHeight;l&&(te=t._height),b.attr({width:t._width-z,height:te-z,x:z/2,y:z/2}),ta.setTranslate(C,0,0),y.select("rect").attr({width:t._width-2*z,height:te-2*z,x:z,y:z}),ta.setClipUrl(C,i,e),ta.setRect(A,0,0,0,0),delete t._scrollY}else{var K=Math.max(ca.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),Q=t._effHeight-K-2*ca.scrollBarMargin,fe=t._height-t._effHeight,he=Q/fe,De=Math.min(t._scrollY||0,fe);b.attr({width:t._width-2*z+ca.scrollBarWidth+ca.scrollBarMargin,height:t._effHeight-z,x:z/2,y:z/2}),y.select("rect").attr({width:t._width-2*z+ca.scrollBarWidth+ca.scrollBarMargin,height:t._effHeight-2*z,x:z,y:z+De}),ta.setClipUrl(C,i,e),we(De,K,he),p.on("wheel",function(){De=ra.constrain(t._scrollY+Pi.event.deltaY/Q*fe,0,fe),we(De,K,he),De!==0&&De!==fe&&Pi.event.preventDefault()});var Ne,Fe,Je,Le=function(Se,Oe,Ie){var ir=(Ie-Oe)/he+Se;return ra.constrain(ir,0,fe)},rr=function(Se,Oe,Ie){var ir=(Oe-Ie)/he+Se;return ra.constrain(ir,0,fe)},se=Pi.behavior.drag().on("dragstart",function(){var Se=Pi.event.sourceEvent;Se.type==="touchstart"?Ne=Se.changedTouches[0].clientY:Ne=Se.clientY,Je=De}).on("drag",function(){var Se=Pi.event.sourceEvent;Se.buttons===2||Se.ctrlKey||(Se.type==="touchmove"?Fe=Se.changedTouches[0].clientY:Fe=Se.clientY,De=Le(Je,Ne,Fe),we(De,K,he))});A.call(se);var me=Pi.behavior.drag().on("dragstart",function(){var Se=Pi.event.sourceEvent;Se.type==="touchstart"&&(Ne=Se.changedTouches[0].clientY,Je=De)}).on("drag",function(){var Se=Pi.event.sourceEvent;Se.type==="touchmove"&&(Fe=Se.changedTouches[0].clientY,De=rr(Je,Ne,Fe),we(De,K,he))});C.call(me)}function we(Se,Oe,Ie){t._scrollY=e._fullLayout[a]._scrollY=Se,ta.setTranslate(C,0,-Se),ta.setRect(A,t._width,ca.scrollBarMargin+Se*Ie,ca.scrollBarWidth,Oe),y.select("rect").attr("y",z+Se)}if(e._context.edits.legendPosition){var pe,U,ee,$;p.classed("cursor-move",!0),W3.init({element:p.node(),gd:e,prepFn:function(Se){if(Se.target!==A.node()){var Oe=ta.getTranslate(p);ee=Oe.x,$=Oe.y}},moveFn:function(Se,Oe){if(ee!==void 0&&$!==void 0){var Ie=ee+Se,ir=$+Oe;ta.setTranslate(p,Ie,ir),pe=W3.align(Ie,t._width,D.l,D.l+D.w,t.xanchor),U=W3.align(ir+t._height,-t._height,D.t+D.h,D.t,t.yanchor)}},doneFn:function(){if(pe!==void 0&&U!==void 0){var Se={};Se[a+".x"]=pe,Se[a+".y"]=U,Q0.call("_guiRelayout",e,Se)}},clickFn:function(Se,Oe){var Ie=o.selectAll("g.traces").filter(function(){var ir=this.getBoundingClientRect();return Oe.clientX>=ir.left&&Oe.clientX<=ir.right&&Oe.clientY>=ir.top&&Oe.clientY<=ir.bottom});Ie.size()>0&&uT(e,p,Ie,Se,Oe)}})}}],e)}}function zp(e,r,t){var n=e[0],a=n.width,i=r.entrywidthmode,o=n.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||a)}function uT(e,r,t,n,a){var i=t.data()[0][0].trace,o={event:a,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(o.group=i._group),Q0.traceIs(i,"pie-like")&&(o.label=t.datum()[0].label);var l=rT.triggerHandler(e,"plotly_legendclick",o);if(n===1){if(l===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&tT(t,e,n)},e._context.doubleClickDelay)}else if(n===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var s=rT.triggerHandler(e,"plotly_legenddoubleclick",o);s!==!1&&l!==!1&&tT(t,e,n)}}function TW(e,r,t){var n=Bp(t),a=e.data()[0][0],i=a.trace,o=Q0.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,u,f;a.groupTitle?(u=a.groupTitle.text,f=a.groupTitle.font):(f=t.font,t.entries?u=a.text:(u=o?a.label:i.name,i._meta&&(u=ra.templateString(u,i._meta))));var v=ra.ensureSingle(e,"text",n+"text");v.attr("text-anchor","start").call(ta.font,f).text(l?lT(u,s):u);var h=t.indentation+t.itemwidth+ca.itemGap*2;_c.positionText(v,h,0),l?v.call(_c.makeEditable,{gd:r,text:u}).call(Fp,e,r,t).on("edit",function(d){this.text(lT(d,s)).call(Fp,e,r,t);var m=a.trace._fullInput||{},p={};return p.name=d,m._isShape?Q0.call("_guiRelayout",r,"shapes["+i.index+"].name",p.name):Q0.call("_guiRestyle",r,p,i.index)}):Fp(v,e,r,t)}function lT(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var n=t-e.length;n>0;n--)e+=" ";return e}function kW(e,r,t){var n=r._context.doubleClickDelay,a,i=1,o=ra.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(Np.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){a=new Date().getTime(),a-r._legendMouseDownTimen&&(i=Math.max(i-1,1)),uT(r,l,e,i,Pi.event)}}))}function Fp(e,r,t,n,a){n._inHover&&e.attr("data-notex",!0),_c.convertToTspans(e,t,function(){SW(r,t,n,a)})}function SW(e,r,t,n){var a=e.data()[0][0];if(!t._inHover&&a&&!a.trace.showlegend){e.remove();return}var i=e.select("g[class*=math-group]"),o=i.node(),l=Bp(t);t||(t=r._fullLayout[l]);var s=t.borderwidth,u;n===$0?u=t.title.font:a.groupTitle?u=a.groupTitle.font:u=t.font;var f=u.size*sT,v,h;if(o){var d=ta.bBox(o);v=d.height,h=d.width,n===$0?ta.setTranslate(i,s,s+v*.75):ta.setTranslate(i,0,v*.25)}else{var m="."+l+(n===$0?"title":"")+"text",p=e.select(m),y=_c.lineCount(p),b=p.node();if(v=f*y,h=b?ta.bBox(b).width:0,n===$0)t.title.side==="left"&&(h+=ca.itemGap*2),_c.positionText(p,s+ca.titlePad,s+f);else{var C=ca.itemGap*2+t.indentation+t.itemwidth;a.groupTitle&&(C=ca.itemGap,h-=t.indentation+t.itemwidth),_c.positionText(p,C,-f*((y-1)/2-.3))}}n===$0?(t._titleWidth=h,t._titleHeight=v):(a.lineHeight=f,a.height=Math.max(v,16)+3,a.width=h)}function CW(e){var r=0,t=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(r=e._titleWidth),n.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function LW(e,r,t,n){var a=e._fullLayout,i=Bp(n);n||(n=a[i]);var o=a._size,l=iT.isVertical(n),s=iT.isGrouped(n),u=n.entrywidthmode==="fraction",f=n.borderwidth,v=2*f,h=ca.itemGap,d=n.indentation+n.itemwidth+h*2,m=2*(f+h),p=Hp(n),y=n.y<0||n.y===0&&p==="top",b=n.y>1||n.y===1&&p==="bottom",C=n.tracegroupgap,x={},{maxheight:_,orientation:A,yref:k}=n,M=A==="v"&&k==="paper"?o.h:a.height;n._maxHeight=Math.max(_>1?_:_*M,30);var D=0;n._width=0,n._height=0;var z=CW(n);if(l)t.each(function(me){var we=me[0].height;ta.setTranslate(this,f+z[0],f+z[1]+n._height+we/2+h),n._height+=we,n._width=Math.max(n._width,me[0].width)}),D=d+n._width,n._width+=h+d+v,n._height+=m,s&&(r.each(function(me,we){ta.setTranslate(this,0,we*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var F=Ip(n),H=n.x<0||n.x===0&&F==="right",W=n.x>1||n.x===1&&F==="left",B=b||y,X=a.width/2;n._maxWidth=Math.max(H?B&&F==="left"?o.l+o.w:X:W?B&&F==="right"?o.r+o.w:X:o.w,2*d);var V=0,re=0;t.each(function(me){var we=zp(me,n,d);V=Math.max(V,we),re+=we}),D=null;var te=0;if(s){var K=0,Q=0,fe=0;r.each(function(){var me=0,we=0;Pi.select(this).selectAll("g.traces").each(function(U){var ee=zp(U,n,d),$=U[0].height;ta.setTranslate(this,z[0],z[1]+f+h+$/2+we),we+=$,me=Math.max(me,ee),x[U[0].trace.legendgroup]=me});var pe=me+h;Q>0&&pe+f+Q>n._maxWidth?(te=Math.max(te,Q),Q=0,fe+=K+C,K=we):K=Math.max(K,we),ta.setTranslate(this,Q,fe),Q+=pe}),n._width=Math.max(te,Q)+f,n._height=fe+K+m}else{var he=t.size(),De=re+v+(he-1)*h=n._maxWidth&&(te=Math.max(te,Le),Fe=0,Je+=Ne,n._height+=Ne,Ne=0),ta.setTranslate(this,z[0]+f+Fe,z[1]+f+Je+we/2+h),Le=Fe+pe+h,Fe+=U,Ne=Math.max(Ne,we)}),De?(n._width=Fe+v,n._height=Ne+m):(n._width=Math.max(te,Le)+v,n._height+=Ne+m)}}n._width=Math.ceil(Math.max(n._width+z[0],n._titleWidth+2*(f+ca.titlePad))),n._height=Math.ceil(Math.max(n._height+z[1],n._titleHeight+2*(f+ca.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var rr=e._context.edits,se=rr.legendText||rr.legendPosition;t.each(function(me){var we=Pi.select(this).select("."+i+"toggle"),pe=me[0].height,U=me[0].trace.legendgroup,ee=zp(me,n,d);s&&U!==""&&(ee=x[U]);var $=se?d:D||ee;!l&&!u&&($+=h/2),ta.setRect(we,0,-pe/2,$,pe)})}function qW(e,r,t,n){var a=e._fullLayout,i=a[r],o=Ip(i),l=Hp(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",v=i.x<.5?"l":"r",h={r:a.width-t,l:t+i._width,b:a.height-n,t:n+i._effHeight};if(s&&u)return Z3.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*K0[o],r:i._width*nT[o],b:i._effHeight*nT[l],t:i._effHeight*K0[l]});s?e._fullLayout._reservedMargin[r][f]=h[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][v]=h[v]:e._fullLayout._reservedMargin[r][f]=h[f]}function Ip(e){return ra.isRightAnchor(e)?"right":ra.isCenterAnchor(e)?"center":"left"}function Hp(e){return ra.isBottomAnchor(e)?"bottom":ra.isMiddleAnchor(e)?"middle":"top"}function Bp(e){return e._id||"legend"}});var Q3=ne(K3=>{"use strict";var xc=kt(),eu=Ot(),cT=Jl(),Hn=gr(),DW=Hn.pushUnique,J3=Hn.strTranslate,EW=Hn.strRotate,PW=p1(),So=ci(),RW=PA(),os=fn(),_a=Pt(),Op=To(),ls=Dn(),zW=Pa().zindexSeparator,rv=dt(),yl=Vu(),wc=t1(),NW=N3(),FW=j3(),bT=wc.YANGLE,$3=Math.PI*bT/180,IW=1/Math.sin($3),HW=Math.cos($3),BW=Math.sin($3),Cn=wc.HOVERARROWSIZE,Rt=wc.HOVERTEXTPAD,vT={box:!0,ohlc:!0,violin:!0,candlestick:!0},OW={scatter:!0,scattergl:!0,splom:!0};function hT(e,r){return e.distance-r.distance}K3.hover=function(r,t,n,a){r=Hn.getGraphDiv(r);var i=t.target;Hn.throttle(r._fullLayout._uid+wc.HOVERID,wc.HOVERMINTIME,function(){UW(r,t,n,a,i)})};K3.loneHover=function(r,t){var n=!0;Array.isArray(r)||(n=!1,r=[r]);var a=t.gd,i=AT(a),o=TT(a),l=r.map(function(y){var b=y._x0||y.x0||y.x||0,C=y._x1||y.x1||y.x||0,x=y._y0||y.y0||y.y||0,_=y._y1||y.y1||y.y||0,A=y.eventData;if(A){var k=Math.min(b,C),M=Math.max(b,C),D=Math.min(x,_),z=Math.max(x,_),F=y.trace;if(rv.traceIs(F,"gl3d")){var H=a._fullLayout[F.scene]._scene.container,W=H.offsetLeft,B=H.offsetTop;k+=W,M+=W,D+=B,z+=B}A.bbox={x0:k+o,x1:M+o,y0:D+i,y1:z+i},t.inOut_bbox&&t.inOut_bbox.push(A.bbox)}else A=!1;return{color:y.color||_a.defaultLine,x0:y.x0||y.x||0,x1:y.x1||y.x||0,y0:y.y0||y.y||0,y1:y.y1||y.y||0,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:y.text,name:y.name,idealAlign:y.idealAlign,borderColor:y.borderColor,fontFamily:y.fontFamily,fontSize:y.fontSize,fontColor:y.fontColor,fontWeight:y.fontWeight,fontStyle:y.fontStyle,fontVariant:y.fontVariant,nameLength:y.nameLength,textAlign:y.textAlign,trace:y.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:y.hovertemplate||!1,hovertemplateLabels:y.hovertemplateLabels||!1,eventData:A}}),s=!1,u=xT(l,{gd:a,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||_a.background,container:xc.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,v=5,h=0,d=0;f.sort(function(y,b){return y.y0-b.y0}).each(function(y,b){var C=y.y0-y.by/2;C-vM[0]._length||$<0||$>D[0]._length)return Op.unhoverRaw(e,r)}if(r.pointerX=ee+M[0]._offset,r.pointerY=$+D[0]._offset,"xval"in r?re=yl.flat(i,r.xval):re=yl.p2c(M,ee),"yval"in r?te=yl.flat(i,r.yval):te=yl.p2c(D,$),!eu(re[0])||!eu(te[0]))return Hn.warn("Fx.hover failed",r,e),Op.unhoverRaw(e,r)}var Ie=1/0;function ir(rt,rn){for(Q=0;Qse&&(X.splice(0,se),Ie=X[0].distance),v&&B!==0&&X.length===0){rr.distance=B,rr.index=!1;var vn=he._module.hoverPoints(rr,Je,Le,"closest",{hoverLayer:l._hoverlayer});if(vn&&(vn=vn.filter(function(Ht){return Ht.spikeDistance<=B})),vn&&vn.length){var da,qn=vn.filter(function(Ht){return Ht.xa.showspikes&&Ht.xa.spikesnap!=="hovered data"});if(qn.length){var Na=qn[0];eu(Na.x0)&&eu(Na.y0)&&(da=Ue(Na),(!me.vLinePoint||me.vLinePoint.spikeDistance>da.spikeDistance)&&(me.vLinePoint=da))}var pa=vn.filter(function(Ht){return Ht.ya.showspikes&&Ht.ya.spikesnap!=="hovered data"});if(pa.length){var wn=pa[0];eu(wn.x0)&&eu(wn.y0)&&(da=Ue(wn),(!me.hLinePoint||me.hLinePoint.spikeDistance>da.spikeDistance)&&(me.hLinePoint=da))}}}}}ir();function or(rt,rn,St){for(var dn=null,pn=1/0,an,vn=0;vn0&&Math.abs(rt.distance)Xe-1;Cr--)Or(X[Cr]);X=mr,Qe()}var ar=e._hoverdata,be=[],ke=AT(e),$e=TT(e);for(K=0;K1||X.length>1)||h==="closest"&&we&&X.length>1,jt=_a.combine(l.plot_bgcolor||_a.background,l.paper_bgcolor),en=xT(X,{gd:e,hovermode:h,rotateLabels:Ft,bgColor:jt,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),Jt=en.hoverLabels;if(yl.isUnifiedHover(h)||(GW(Jt,Ft,l,en.commonLabelBoundingBox),MT(Jt,Ft,l._invScaleX,l._invScaleY)),a&&a.tagName){var aa=rv.getComponentMethod("annotations","hasClickToShow")(e,be);RW(xc.select(a),aa?"pointer":"")}!a||n||!ZW(e,r,ar)||(ar&&e.emit("plotly_unhover",{event:r,points:ar}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:M,yaxes:D,xvals:re,yvals:te}))}function _T(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var YW=/([\s\S]*)<\/extra>/;function xT(e,r){var t=r.gd,n=t._fullLayout,a=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||wc.HOVERFONT,v=r.fontSize||wc.HOVERFONTSIZE,h=r.fontWeight||n.font.weight,d=r.fontStyle||n.font.style,m=r.fontVariant||n.font.variant,p=r.fontTextcase||n.font.textcase,y=r.fontLineposition||n.font.lineposition,b=r.fontShadow||n.font.shadow,C=e[0],x=C.xa,_=C.ya,A=a.charAt(0),k=A+"Label",M=C[k];if(M===void 0&&x.type==="multicategory")for(var D=0;Dn.width-$e&&(Ze=n.width-$e),Xe.attr("d","M"+(ar-Ze)+",0L"+(ar-Ze+Cn)+","+ke+Cn+"H"+$e+"v"+ke+(Rt*2+Cr.height)+"H"+-$e+"V"+ke+Cn+"H"+(ar-Ze-Cn)+"Z"),ar=Ze,Q.minX=ar-$e,Q.maxX=ar+$e,x.side==="top"?(Q.minY=be-(Rt*2+Cr.height),Q.maxY=be-Rt):(Q.minY=be+Rt,Q.maxY=be+(Rt*2+Cr.height))}else{var qr,Hr,Pr;_.side==="right"?(qr="start",Hr=1,Pr="",ar=x._offset+x._length):(qr="end",Hr=-1,Pr="-",ar=x._offset),be=_._offset+(C.y0+C.y1)/2,hr.attr("text-anchor",qr),Xe.attr("d","M0,0L"+Pr+Cn+","+Cn+"V"+(Rt+Cr.height/2)+"h"+Pr+(Rt*2+Cr.width)+"V-"+(Rt+Cr.height/2)+"H"+Pr+Cn+"V-"+Cn+"Z"),Q.minY=be-(Rt+Cr.height/2),Q.maxY=be+(Rt+Cr.height/2),_.side==="right"?(Q.minX=ar+Cn,Q.maxX=ar+Cn+(Rt*2+Cr.width)):(Q.minX=ar-Cn-(Rt*2+Cr.width),Q.maxX=ar-Cn);var lt=Cr.height/2,xt=F-Cr.top-lt,Nt="clip"+n._uid+"commonlabel"+_._id,It;if(ar=0?Ar=pr:dr+Ie=0?Ar=dr:Te+Ie=0?Nr=cr:Qe+ir=0?Nr=Qe:Ye+ir=0,(Ae.idealAlign==="top"||!cn)&&Ft?(Pr-=xt/2,Ae.anchor="end"):cn?(Pr+=xt/2,Ae.anchor="start"):Ae.anchor="middle",Ae.crossPos=Pr;else{if(Ae.pos=Pr,cn=Hr+lt/2+Tn<=H,Ft=Hr-lt/2-Tn>=0,(Ae.idealAlign==="left"||!cn)&&Ft)Hr-=lt/2,Ae.anchor="end";else if(cn)Hr+=lt/2,Ae.anchor="start";else{Ae.anchor="middle";var jt=Tn/2,en=Hr+jt-H,Jt=Hr-jt;en>0&&(Hr-=en),Jt<0&&(Hr+=-Jt)}Ae.crossPos=Hr}be.attr("text-anchor",Ae.anchor),$e&&ke.attr("text-anchor",Ae.anchor),Xe.attr("transform",J3(Hr,Pr)+(i?EW(bT):""))}),{hoverLabels:Er,commonLabelBoundingBox:Q}}function dT(e,r,t,n,a,i){var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Hn.templateString(e.name,e.trace._meta)),o=mT(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===a?l=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o);var f=e.hovertemplate||!1;if(f){var v=e.hovertemplateLabels||e;e[s+"Label"]!==a&&(v[s+"other"]=v[s+"Val"],v[s+"otherLabel"]=v[s+"Label"]),l=Hn.hovertemplateString(f,v,n._d3locale,e.eventData[0]||{},e.trace._meta),l=l.replace(YW,function(h,d){return o=mT(d,e.nameLength),""})}return[l,o]}function GW(e,r,t,n){var a=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),u=new Array(s),f=0,v=n.minX,h=n.maxX,d=n.minY,m=n.maxY,p=function(re){return re*t._invScaleX},y=function(re){return re*t._invScaleY};e.each(function(re){var te=re[a],K=re[i],Q=te._id.charAt(0)==="x",fe=te.range;f===0&&fe&&fe[0]>fe[1]!==Q&&(l=-1);var he=0,De=Q?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var Ne=wT(re,r),Fe=re.anchor,Je=Fe==="end"?-1:1,Le,rr;if(Fe==="middle")Le=re.crossPos+(Q?y(Ne.y-re.by/2):p(re.bx/2+re.tx2width/2)),rr=Le+(Q?y(re.by):p(re.bx));else if(Q)Le=re.crossPos+y(Cn+Ne.y)-y(re.by/2-Cn),rr=Le+y(re.by);else{var se=p(Je*Cn+Ne.x),me=se+p(Je*re.bx);Le=re.crossPos+Math.min(se,me),rr=re.crossPos+Math.max(se,me)}Q?d!==void 0&&m!==void 0&&Math.min(rr,m)-Math.max(Le,d)>1&&(K.side==="left"?(he=K._mainLinePosition,De=t.width):De=K._mainLinePosition):v!==void 0&&h!==void 0&&Math.min(rr,h)-Math.max(Le,v)>1&&(K.side==="top"?(he=K._mainLinePosition,De=t.height):De=K._mainLinePosition)}u[f++]=[{datum:re,traceIndex:re.trace.index,dp:0,pos:re.pos,posref:re.posref,size:re.by*(Q?IW:1)/2,pmin:he,pmax:De}]}),u.sort(function(re,te){return re[0].posref-te[0].posref||l*(te[0].traceIndex-re[0].traceIndex)});var b,C,x,_,A,k,M;function D(re){var te=re[0],K=re[re.length-1];if(C=te.pmin-te.pos-te.dp+te.size,x=K.pos+K.dp+K.size-te.pmax,C>.01){for(A=re.length-1;A>=0;A--)re[A].dp+=C;b=!1}if(!(x<.01)){if(C<-.01){for(A=re.length-1;A>=0;A--)re[A].dp-=x;b=!1}if(b){var Q=0;for(_=0;_te.pmax&&Q++;for(_=re.length-1;_>=0&&!(Q<=0);_--)k=re[_],k.pos>te.pmax-1&&(k.del=!0,Q--);for(_=0;_=0;A--)re[A].dp-=x;for(_=re.length-1;_>=0&&!(Q<=0);_--)k=re[_],k.pos+k.dp+k.size>te.pmax&&(k.del=!0,Q--)}}}for(;!b&&o<=s;){for(o++,b=!0,_=0;_.01){for(A=F.length-1;A>=0;A--)F[A].dp+=C;for(z.push.apply(z,F),u.splice(_+1,1),M=0,A=z.length-1;A>=0;A--)M+=z[A].dp;for(x=M/z.length,A=z.length-1;A>=0;A--)z[A].dp-=x;b=!1}else _++}u.forEach(D)}for(_=u.length-1;_>=0;_--){var B=u[_];for(A=B.length-1;A>=0;A--){var X=B[A],V=X.datum;V.offset=X.dp,V.del=X.del}}}function wT(e,r){var t=0,n=e.offset;return r&&(n*=-BW,t=e.offset*HW),{x:t,y:n}}function VW(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Cn+Rt),n=t+r*(e.txwidth+Rt),a=e.anchor==="middle";return a&&(t-=e.tx2width/2,n+=e.txwidth/2+Rt),{alignShift:r,textShiftX:t,text2ShiftX:n}}function MT(e,r,t,n){var a=function(o){return o*t},i=function(o){return o*n};e.each(function(o){var l=xc.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,v=VW(o),h=wT(o,r),d=h.x,m=h.y,p=u==="middle",y="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,b;p?b="M-"+a(o.bx/2+o.tx2width/2)+","+i(m-o.by/2)+"h"+a(o.bx)+"v"+i(o.by)+"h-"+a(o.bx)+"Z":y?b="M0,0L"+a(f*Cn+d)+","+i(Cn+m)+"v"+i(o.by/2-Cn)+"h"+a(f*o.bx)+"v-"+i(o.by)+"H"+a(f*Cn+d)+"V"+i(m-Cn)+"Z":b="M"+a(f*Cn+d)+","+i(m-o.by/2)+"h"+a(f*o.bx)+"v"+i(o.by)+"h"+a(-f*o.bx)+"Z",l.select("path").attr("d",b);var C=d+v.textShiftX,x=m+o.ty0-o.by/2+Rt,_=o.textAlign||"auto";_!=="auto"&&(_==="left"&&u!=="start"?(s.attr("text-anchor","start"),C=p?-o.bx/2-o.tx2width/2+Rt:-o.bx-Rt):_==="right"&&u!=="end"&&(s.attr("text-anchor","end"),C=p?o.bx/2-o.tx2width/2-Rt:o.bx+Rt)),s.call(So.positionText,a(C),i(x)),o.tx2width&&(l.select("text.name").call(So.positionText,a(v.text2ShiftX+v.alignShift*Rt+d),i(m+o.ty0-o.by/2+Rt)),l.select("rect").call(os.setRect,a(v.text2ShiftX+(v.alignShift-1)*o.tx2width/2+d),i(m-o.by/2-1),a(o.tx2width),i(o.by+2)))})}function WW(e,r){var t=e.index,n=e.trace||{},a=e.cd[0],i=e.cd[t]||{};function o(h){return h||eu(h)&&h===0}var l=Array.isArray(t)?function(h,d){var m=Hn.castOption(a,t,h);return o(m)?m:Hn.extractOption({},n,"",d)}:function(h,d){return Hn.extractOption(i,n,h,d)};function s(h,d,m){var p=l(d,m);o(p)&&(e[h]=p)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Hn.constrain(e.x0,0,e.xa._length),e.x1=Hn.constrain(e.x1,0,e.xa._length),e.y0=Hn.constrain(e.y0,0,e.ya._length),e.y1=Hn.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:ls.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:ls.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=ls.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+ls.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=ls.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+ls.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var v=e.hoverinfo||e.trace.hoverinfo;return v&&v!=="all"&&(v=Array.isArray(v)?v:v.split("+"),v.indexOf("x")===-1&&(e.xLabel=void 0),v.indexOf("y")===-1&&(e.yLabel=void 0),v.indexOf("z")===-1&&(e.zLabel=void 0),v.indexOf("text")===-1&&(e.text=void 0),v.indexOf("name")===-1&&(e.name=void 0)),e}function pT(e,r,t){var n=t.container,a=t.fullLayout,i=a._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(n.selectAll(".spikeline").remove(),!!(s||l)){var v=_a.combine(a.plot_bgcolor,a.paper_bgcolor);if(l){var h=r.hLinePoint,d,m;u=h&&h.xa,f=h&&h.ya;var p=f.spikesnap;p==="cursor"?(d=o.pointerX,m=o.pointerY):(d=u._offset+h.x,m=f._offset+h.y);var y=cT.readability(h.color,v)<1.5?_a.contrast(v):h.color,b=f.spikemode,C=f.spikethickness,x=f.spikecolor||y,_=ls.getPxPosition(e,f),A,k;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(A=_,k=d),b.indexOf("across")!==-1){var M=f._counterDomainMin,D=f._counterDomainMax;f.anchor==="free"&&(M=Math.min(M,f.position),D=Math.max(D,f.position)),A=i.l+M*i.w,k=i.l+D*i.w}n.insert("line",":first-child").attr({x1:A,x2:k,y1:m,y2:m,"stroke-width":C,stroke:x,"stroke-dasharray":os.dashStyle(f.spikedash,C)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:A,x2:k,y1:m,y2:m,"stroke-width":C+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:_+(f.side!=="right"?C:-C),cy:m,r:C,fill:x}).classed("spikeline",!0)}if(s){var z=r.vLinePoint,F,H;u=z&&z.xa,f=z&&z.ya;var W=u.spikesnap;W==="cursor"?(F=o.pointerX,H=o.pointerY):(F=u._offset+z.x,H=f._offset+z.y);var B=cT.readability(z.color,v)<1.5?_a.contrast(v):z.color,X=u.spikemode,V=u.spikethickness,re=u.spikecolor||B,te=ls.getPxPosition(e,u),K,Q;if(X.indexOf("toaxis")!==-1||X.indexOf("across")!==-1){if(X.indexOf("toaxis")!==-1&&(K=te,Q=H),X.indexOf("across")!==-1){var fe=u._counterDomainMin,he=u._counterDomainMax;u.anchor==="free"&&(fe=Math.min(fe,u.position),he=Math.max(he,u.position)),K=i.t+(1-he)*i.h,Q=i.t+(1-fe)*i.h}n.insert("line",":first-child").attr({x1:F,x2:F,y1:K,y2:Q,"stroke-width":V,stroke:re,"stroke-dasharray":os.dashStyle(u.spikedash,V)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:F,x2:F,y1:K,y2:Q,"stroke-width":V+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}X.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:F,cy:te-(u.side!=="top"?V:-V),r:V,fill:re}).classed("spikeline",!0)}}}function ZW(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var n=t.length-1;n>=0;n--){var a=t[n],i=e._hoverdata[n];if(a.curveNumber!==i.curveNumber||String(a.pointNumber)!==String(i.pointNumber)||String(a.pointNumbers)!==String(i.pointNumbers))return!0}return!1}function gT(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function mT(e,r){return So.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function XW(e,r){for(var t=r.charAt(0),n=[],a=[],i=[],o=0;o{"use strict";var jW=gr(),JW=Pt(),$W=Vu().isUnifiedHover;kT.exports=function(r,t,n,a){a=a||{};var i=t.legend;function o(l){a.font[l]||(a.font[l]=i?t.legend.font[l]:t.font[l])}t&&$W(t.hovermode)&&(a.font||(a.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(a.bgcolor||(a.bgcolor=JW.combine(t.legend.bgcolor,t.paper_bgcolor)),a.bordercolor||(a.bordercolor=t.legend.bordercolor)):a.bgcolor||(a.bgcolor=t.paper_bgcolor)),n("hoverlabel.bgcolor",a.bgcolor),n("hoverlabel.bordercolor",a.bordercolor),n("hoverlabel.namelength",a.namelength),n("hoverlabel.showarrow",a.showarrow),jW.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}});var CT=ne((nfe,ST)=>{"use strict";var KW=gr(),QW=Up(),eZ=_0();ST.exports=function(r,t){function n(a,i){return KW.coerce(r,t,eZ,a,i)}QW(r,t,n)}});var DT=ne((afe,qT)=>{"use strict";var LT=gr(),rZ=fd(),tZ=Up();qT.exports=function(r,t,n,a){function i(l,s){return LT.coerce(r,t,rZ,l,s)}var o=LT.extendFlat({},a.hoverlabel);t.hovertemplate&&(o.namelength=-1),tZ(r,t,i,o)}});var e5=ne((ife,ET)=>{"use strict";var nZ=gr(),aZ=_0();ET.exports=function(r,t){function n(a,i){return t[a]!==void 0?t[a]:nZ.coerce(r,t,aZ,a,i)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var zT=ne((ofe,RT)=>{"use strict";var PT=gr(),iZ=_0(),oZ=e5(),lZ=Up();RT.exports=function(r,t){function n(f,v){return PT.coerce(r,t,iZ,f,v)}var a=oZ(r,t);a&&(n("hoverdistance"),n("spikedistance"));var i=n("dragmode");i==="select"&&n("selectdirection");var o=t._has("mapbox"),l=t._has("map"),s=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l||s)&&u===1||(o||l)&&s&&u===2)&&(t.dragmode="pan"),lZ(r,t,n),PT.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var IT=ne((lfe,FT)=>{"use strict";var r5=gr(),NT=dt();FT.exports=function(r){var t=r.calcdata,n=r._fullLayout;function a(u){return function(f){return r5.coerceHoverinfo({hoverinfo:f},{_module:u._module},n)}}for(var i=0;i{"use strict";var uZ=dt(),fZ=Q3().hover;HT.exports=function(r,t,n){var a=uZ.getComponentMethod("annotations","onClick")(r,r._hoverdata);n!==void 0&&fZ(r,t,n,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(a&&a.then?a.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var ss=ne((ufe,YT)=>{"use strict";var cZ=kt(),Yp=gr(),vZ=To(),R1=Vu(),OT=_0(),UT=Q3();YT.exports={moduleType:"component",name:"fx",constants:t1(),schema:{layout:OT},attributes:fd(),layoutAttributes:OT,supplyLayoutGlobalDefaults:CT(),supplyDefaults:DT(),supplyLayoutDefaults:zT(),calc:IT(),getDistanceFunction:R1.getDistanceFunction,getClosest:R1.getClosest,inbox:R1.inbox,quadrature:R1.quadrature,appendArrayPointValue:R1.appendArrayPointValue,castHoverOption:dZ,castHoverinfo:pZ,hover:UT.hover,unhover:vZ.unhover,loneHover:UT.loneHover,loneUnhover:hZ,click:BT()};function hZ(e){var r=Yp.isD3Selection(e)?e:cZ.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function dZ(e,r,t){return Yp.castOption(e,r,"hoverlabel."+t)}function pZ(e,r,t){function n(a){return Yp.coerceHoverinfo({hoverinfo:a},{_module:e._module},r)}return Yp.castOption(e,t,"hoverinfo",n)}});var tv=ne(ru=>{"use strict";ru.selectMode=function(e){return e==="lasso"||e==="select"};ru.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};ru.openMode=function(e){return e==="drawline"||e==="drawopenpath"};ru.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};ru.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};ru.selectingOrDrawing=function(e){return ru.freeMode(e)||ru.rectMode(e)}});var Gp=ne((cfe,GT)=>{"use strict";GT.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var Vp=ne((vfe,VT)=>{"use strict";VT.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var Zp=ne((hfe,WT)=>{"use strict";var Wp=32;WT.exports={CIRCLE_SIDES:Wp,i000:0,i090:Wp/4,i180:Wp/2,i270:Wp/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var Xp=ne((dfe,XT)=>{"use strict";var gZ=gr().strTranslate;function ZT(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function mZ(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function yZ(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return ZT(e,t[r])}}function bZ(e){return gZ(e.xaxis._offset,e.yaxis._offset)}XT.exports={p2r:ZT,r2p:mZ,axValue:yZ,getTransform:bZ}});var Qu=ne(tu=>{"use strict";var _Z=Y2(),$T=Zp(),nv=$T.CIRCLE_SIDES,t5=$T.SQRT2,KT=Xp(),jT=KT.p2r,JT=KT.r2p,xZ=[0,3,4,5,6,1,2],wZ=[0,3,4,1,2];tu.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",n=0;n0&&s{"use strict";var QT=ua(),ak=tv(),MZ=ak.drawMode,AZ=ak.openMode,av=Zp(),ek=av.i000,rk=av.i090,tk=av.i180,nk=av.i270,TZ=av.cos45,kZ=av.sin45,ik=Xp(),Jp=ik.p2r,ef=ik.r2p,SZ=Yu(),CZ=SZ.clearOutline,$p=Qu(),LZ=$p.readPaths,qZ=$p.writePaths,DZ=$p.ellipseOver,EZ=$p.fixDatesForPaths;function PZ(e,r){if(e.length){var t=e[0][0];if(t){var n=r.gd,a=r.isActiveShape,i=r.dragmode,o=(n.layout||{}).shapes||[];if(!MZ(i)&&a!==void 0){var l=n._fullLayout._activeShapeIndex;if(l{"use strict";var RZ=tv(),zZ=RZ.selectMode,NZ=Yu(),FZ=NZ.clearOutline,n5=Qu(),IZ=n5.readPaths,HZ=n5.writePaths,BZ=n5.fixDatesForPaths;sk.exports=function(r,t){if(r.length){var n=r[0][0];if(n){var a=n.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,u=l.yaxis,f=t.isActiveSelection,v=t.dragmode,h=(i.layout||{}).selections||[];if(!zZ(v)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";uk.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var rf=ne(ka=>{"use strict";var Mc=N1(),fk=gr(),Qp=Dn();ka.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};ka.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};ka.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};ka.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};ka.extractPathCoords=function(e,r,t){var n=[],a=e.match(Mc.segmentRE);return a.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.substr(1).match(Mc.paramRE);if(!(!l||l.lengthd&&(p="X"),p});return u>d&&(m=m.replace(/[\s,]*X.*/,""),fk.log("Ignoring extra params in segment "+s)),f+m})}function F1(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var o5=ne((_fe,dk)=>{"use strict";var UZ=gr(),iv=Dn(),ck=ci(),vk=fn(),YZ=Qu().readPaths,i5=rf(),GZ=i5.getPathString,hk=bd(),VZ=Ka().FROM_TL;dk.exports=function(r,t,n,a){if(a.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var i;if(n.label.texttemplate){var o={};if(n.type!=="path"){var l=iv.getFromId(r,n.xref),s=iv.getFromId(r,n.yref);for(var u in hk){var f=hk[u](n,l,s);f!==void 0&&(o[u]=f)}}i=UZ.texttemplateStringForShapes(n.label.texttemplate,{},r._fullLayout._d3locale,o)}else i=n.label.text;var v={"data-index":t},h=n.label.font,d={"data-notex":1},m=a.append("g").attr(v).classed("shape-label",!0),p=m.append("text").attr(d).classed("shape-label-text",!0).text(i),y,b,C,x;if(n.path){var _=GZ(r,n),A=YZ(_,r);y=1/0,C=1/0,b=-1/0,x=-1/0;for(var k=0;k=e?a=r-n:a=n-r,-180/Math.PI*Math.atan2(a,i)}function ZZ(e,r,t,n,a,i,o){var l=a.label.textposition,s=a.label.textangle,u=a.label.padding,f=a.type,v=Math.PI/180*i,h=Math.sin(v),d=Math.cos(v),m=a.label.xanchor,p=a.label.yanchor,y,b,C,x;if(f==="line"){l==="start"?(y=e,b=r):l==="end"?(y=t,b=n):(y=(e+t)/2,b=(r+n)/2),m==="auto"&&(l==="start"?s==="auto"?t>e?m="left":te?m="right":te?m="right":te?m="left":t{"use strict";var XZ=gr(),jZ=XZ.strTranslate,pk=To(),yk=tv(),JZ=yk.drawMode,bk=yk.selectMode,_k=dt(),gk=Pt(),rg=Zp(),$Z=rg.i000,KZ=rg.i090,QZ=rg.i180,eX=rg.i270,rX=Yu(),xk=rX.clearOutlineControllers,s5=Qu(),eg=s5.pointsOnRectangle,l5=s5.pointsOnEllipse,tX=s5.writePaths,nX=Kp().newShapes,aX=Kp().createShapeObj,iX=a5(),oX=o5();wk.exports=function e(r,t,n,a){a||(a=0);var i=n.gd;function o(){e(r,t,n,a++),(l5(r[0])||n.hasText)&&l({redrawing:!0})}function l(te){var K={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,K=nX(t,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,K=iX(t,n),i._fullLayout._reselect=!0),Object.keys(K).length&&_k.call((te||{}).redrawing?"relayout":"_guiRelayout",i,K)}var s=i._fullLayout,u=s._zoomlayer,f=n.dragmode,v=JZ(f),h=bk(f);(v||h)&&(i._fullLayout._outlining=!0),xk(i),t.attr("d",tX(r));var d,m,p,y,b;if(!a&&(n.isActiveShape||n.isActiveSelection)){b=lX([],r);var C=u.append("g").attr("class","outline-controllers");F(C),re()}if(v&&n.hasText){var x=u.select(".label-temp"),_=aX(t,n,n.dragmode);oX(i,"label-temp",_,x)}function A(te){p=+te.srcElement.getAttribute("data-i"),y=+te.srcElement.getAttribute("data-j"),d[p][y].moveFn=k}function k(te,K){if(r.length){var Q=b[p][y][1],fe=b[p][y][2],he=r[p],De=he.length;if(eg(he)){var Ne=te,Fe=K;if(n.isActiveSelection){var Je=mk(he,y);Je[1]===he[y][1]?Fe=0:Ne=0}for(var Le=0;Le1&&!(te.length===2&&te[1][0]==="Z")&&(y===0&&(te[0][0]="M"),r[p]=te,o(),l())}}function z(te,K){if(te===2){p=+K.srcElement.getAttribute("data-i"),y=+K.srcElement.getAttribute("data-j");var Q=r[p];!eg(Q)&&!l5(Q)&&D()}}function F(te){d=[];for(var K=0;K{"use strict";var uX=kt(),Ck=dt(),Mk=gr(),ov=Dn(),fX=Qu().readPaths,cX=tg(),ag=o5(),Lk=Yu().clearOutlineControllers,u5=Pt(),c5=fn(),vX=bn().arrayEditor,Ak=To(),Tk=Ku(),Ac=N1(),Ri=rf(),f5=Ri.getPathString;Ek.exports={draw:v5,drawOne:qk,eraseActiveShape:pX,drawLabel:ag};function v5(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var n=r._plots[t].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var a=0;ao&&ur>l&&!or.shiftKey?Ak.getCursor(cr/tr,1-Qe/ur):"move";Tk(r,pr),rr=pr.split("-")[0]}}function pe(or){ng(e)||(s&&(b=he(t.xanchor)),u&&(C=De(t.yanchor)),t.type==="path"?H=t.path:(d=s?t.x0:he(t.x0),m=u?t.y0:De(t.y0),p=s?t.x1:he(t.x1),y=u?t.y1:De(t.y1)),dy?(x=m,M="y0",_=y,D="y1"):(x=y,M="y1",_=m,D="y0"),we(or),Oe(a,t),ir(r,t,e),Le.moveFn=rr==="move"?$:Se,Le.altKey=or.altKey)}function U(){ng(e)||(Tk(r),Ie(a),Dk(r,e,t),Ck.call("_guiRelayout",e,i.getUpdateObj()))}function ee(){ng(e)||Ie(a)}function $(or,Ue){if(t.type==="path"){var tr=function(Qe){return Qe},ur=tr,cr=tr;s?h("xanchor",t.xanchor=Ne(b+or)):(ur=function(pr){return Ne(he(pr)+or)},B&&B.type==="date"&&(ur=Ri.encodeDate(ur))),u?h("yanchor",t.yanchor=Fe(C+Ue)):(cr=function(pr){return Fe(De(pr)+Ue)},V&&V.type==="date"&&(cr=Ri.encodeDate(cr))),h("path",t.path=kk(H,ur,cr))}else s?h("xanchor",t.xanchor=Ne(b+or)):(h("x0",t.x0=Ne(d+or)),h("x1",t.x1=Ne(p+or))),u?h("yanchor",t.yanchor=Fe(C+Ue)):(h("y0",t.y0=Fe(m+Ue)),h("y1",t.y1=Fe(y+Ue)));r.attr("d",f5(e,t)),Oe(a,t),ag(e,n,t,W)}function Se(or,Ue){if(v){var tr=function(Tr){return Tr},ur=tr,cr=tr;s?h("xanchor",t.xanchor=Ne(b+or)):(ur=function(Dr){return Ne(he(Dr)+or)},B&&B.type==="date"&&(ur=Ri.encodeDate(ur))),u?h("yanchor",t.yanchor=Fe(C+Ue)):(cr=function(Dr){return Fe(De(Dr)+Ue)},V&&V.type==="date"&&(cr=Ri.encodeDate(cr))),h("path",t.path=kk(H,ur,cr))}else if(f){if(rr==="resize-over-start-point"){var Qe=d+or,pr=u?m-Ue:m+Ue;h("x0",t.x0=s?Qe:Ne(Qe)),h("y0",t.y0=u?pr:Fe(pr))}else if(rr==="resize-over-end-point"){var dr=p+or,Te=u?y-Ue:y+Ue;h("x1",t.x1=s?dr:Ne(dr)),h("y1",t.y1=u?Te:Fe(Te))}}else{var Ye=function(Tr){return rr.indexOf(Tr)!==-1},Ar=Ye("n"),Nr=Ye("s"),Er=Ye("w"),Ae=Ye("e"),Xe=Ar?x+Ue:x,hr=Nr?_+Ue:_,wr=Er?A+or:A,mr=Ae?k+or:k;u&&(Ar&&(Xe=x-Ue),Nr&&(hr=_-Ue)),(!u&&hr-Xe>l||u&&Xe-hr>l)&&(h(M,t[M]=u?Xe:Fe(Xe)),h(D,t[D]=u?hr:Fe(hr))),mr-wr>o&&(h(z,t[z]=s?wr:Ne(wr)),h(F,t[F]=s?mr:Ne(mr)))}r.attr("d",f5(e,t)),Oe(a,t),ag(e,n,t,W)}function Oe(or,Ue){(s||u)&&tr();function tr(){var ur=Ue.type!=="path",cr=or.selectAll(".visual-cue").data([0]),Qe=1;cr.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Qe}).classed("visual-cue",!0);var pr=he(s?Ue.xanchor:Mk.midRange(ur?[Ue.x0,Ue.x1]:Ri.extractPathCoords(Ue.path,Ac.paramIsX))),dr=De(u?Ue.yanchor:Mk.midRange(ur?[Ue.y0,Ue.y1]:Ri.extractPathCoords(Ue.path,Ac.paramIsY)));if(pr=Ri.roundPositionForSharpStrokeRendering(pr,Qe),dr=Ri.roundPositionForSharpStrokeRendering(dr,Qe),s&&u){var Te="M"+(pr-1-Qe)+","+(dr-1-Qe)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";cr.attr("d",Te)}else if(s){var Ye="M"+(pr-1-Qe)+","+(dr-9-Qe)+"v18 h2 v-18 Z";cr.attr("d",Ye)}else{var Ar="M"+(pr-9-Qe)+","+(dr-1-Qe)+"h18 v2 h-18 Z";cr.attr("d",Ar)}}}function Ie(or){or.selectAll(".visual-cue").remove()}function ir(or,Ue,tr){var ur=Ue.xref,cr=Ue.yref,Qe=ov.getFromId(tr,ur),pr=ov.getFromId(tr,cr),dr="";ur!=="paper"&&!Qe.autorange&&(dr+=ur),cr!=="paper"&&!pr.autorange&&(dr+=cr),c5.setClipUrl(or,dr?"clip"+tr._fullLayout._uid+dr:null,tr)}}function kk(e,r,t){return e.replace(Ac.segmentRE,function(n){var a=0,i=n.charAt(0),o=Ac.paramIsX[i],l=Ac.paramIsY[i],s=Ac.numParams[i],u=n.substr(1).replace(Ac.paramRE,function(f){return a>=s||(o[a]?f=r(f):l[a]&&(f=t(f)),a++),f});return i+u})}function dX(e,r){if(ig(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){Sk(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=Sk,v5(e)}}}function Sk(e){if(ig(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(Lk(e),delete e._fullLayout._activeShapeIndex,v5(e))}}function pX(e){if(ig(e)){Lk(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Co=dt(),Pk=fa(),Rk=ua(),Ut=Vp(),gX=og().eraseActiveShape,lg=gr(),Dt=lg._,Yt=Ok.exports={};Yt.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Dt(e,"Download plot as a PNG"):Dt(e,"Download plot")},icon:Ut.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};lg.notifier(Dt(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in r&&(t[n]=r[n])}),Co.call("downloadImage",e,t).then(function(n){lg.notifier(Dt(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){lg.notifier(Dt(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Yt.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Dt(e,"Edit in Chart Studio")},icon:Ut.disk,click:function(e){Pk.sendDataToCloud(e)}};Yt.editInChartStudio={name:"editInChartStudio",title:function(e){return Dt(e,"Edit in Chart Studio")},icon:Ut.pencil,click:function(e){Pk.sendDataToCloud(e)}};Yt.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Dt(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ut.zoombox,click:ti};Yt.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Dt(e,"Pan")},attr:"dragmode",val:"pan",icon:Ut.pan,click:ti};Yt.select2d={name:"select2d",_cat:"select",title:function(e){return Dt(e,"Box Select")},attr:"dragmode",val:"select",icon:Ut.selectbox,click:ti};Yt.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Dt(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ut.lasso,click:ti};Yt.drawclosedpath={name:"drawclosedpath",title:function(e){return Dt(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ut.drawclosedpath,click:ti};Yt.drawopenpath={name:"drawopenpath",title:function(e){return Dt(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ut.drawopenpath,click:ti};Yt.drawline={name:"drawline",title:function(e){return Dt(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ut.drawline,click:ti};Yt.drawrect={name:"drawrect",title:function(e){return Dt(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ut.drawrect,click:ti};Yt.drawcircle={name:"drawcircle",title:function(e){return Dt(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ut.drawcircle,click:ti};Yt.eraseshape={name:"eraseshape",title:function(e){return Dt(e,"Erase active shape")},icon:Ut.eraseshape,click:gX};Yt.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Dt(e,"Zoom in")},attr:"zoom",val:"in",icon:Ut.zoom_plus,click:ti};Yt.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Dt(e,"Zoom out")},attr:"zoom",val:"out",icon:Ut.zoom_minus,click:ti};Yt.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Dt(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ut.autoscale,click:ti};Yt.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Dt(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ut.home,click:ti};Yt.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Dt(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Ut.tooltip_basic,gravity:"ne",click:ti};Yt.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Dt(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Ut.tooltip_compare,gravity:"ne",click:ti};function ti(e,r){var t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=Rk.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(n==="zoom"){var v=a==="in"?.5:2,h=(1+v)/2,d=(1-v)/2,m,p;for(f=0;f{"use strict";var Uk=p5(),bX=Object.keys(Uk),Yk=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Gk=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Yk),sv=[],_X=function(e){if(Gk.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();sv.indexOf(r)===-1&&sv.push(r),sv.indexOf(t)===-1&&sv.push(t)}};bX.forEach(function(e){_X(Uk[e])});sv.sort();Vk.exports={DRAW_MODES:Yk,backButtons:Gk,foreButtons:sv}});var m5=ne((kfe,Wk)=>{"use strict";var Tfe=g5();Wk.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var Xk=ne((Sfe,Zk)=>{"use strict";var xX=gr(),I1=Pt(),wX=bn(),MX=m5();Zk.exports=function(r,t){var n=r.modebar||{},a=wX.newContainer(t,"modebar");function i(l,s){return xX.coerce(n,a,MX,l,s)}i("orientation"),i("bgcolor",I1.addOpacity(t.paper_bgcolor,.5));var o=I1.contrast(I1.rgb(t.modebar.bgcolor));i("color",I1.addOpacity(o,.3)),i("activecolor",I1.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var Kk=ne((Cfe,$k)=>{"use strict";var y5=kt(),AX=Ot(),ug=gr(),jk=Vp(),TX=Qh().version,kX=new DOMParser;function Jk(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var us=Jk.prototype;us.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,n=this.graphInfo._fullLayout,a="modebar-"+n._uid;this.element.setAttribute("id",a),this.element.setAttribute("role","toolbar"),this._uid=a,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=n.modebar,o="#"+a+" .modebar-group";document.querySelectorAll(o).forEach(function(v){v.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(l||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),ug.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};us.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var n=r.createGroup();t.forEach(function(a){var i=a.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(a);r.buttonElements.push(o),n.appendChild(o)}),r.element.appendChild(n)})};us.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};us.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(t.setAttribute("data-title",n),t.setAttribute("aria-label",n)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),t.setAttribute("data-val",a));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&y5.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||jk.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};us.createIcon=function(e){var r=AX(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(t,"svg"),n.setAttribute("viewBox",[0,0,e.width,r].join(" ")),n.setAttribute("class","icon");var a=document.createElementNS(t,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(a)}if(e.svg){var i=kX.parseFromString(e.svg,"application/xml");n=i.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};us.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var a=n.getAttribute("data-val")||!0,i=n.getAttribute("data-attr"),o=n.getAttribute("data-toggle")==="true",l=y5.select(n),s=function(v,h){var d=r.modebar,m=v.querySelector(".icon path");m&&(h||v.matches(":hover")?m.style.fill=d.activecolor:m.style.fill=d.color)};if(o){if(i===t){var u=!l.classed("active");l.classed("active",u),s(n,u)}}else{var f=i===null?i:ug.nestedProperty(r,i).get();l.classed("active",f===a),s(n,f===a)}})};us.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var LX=ua(),Qk=Qa(),b5=dt(),qX=Vu().isUnifiedHover,DX=Kk(),fg=p5(),EX=g5().DRAW_MODES,PX=gr().extendDeep;eS.exports=function(r){var t=r._fullLayout,n=r._context,a=t._modeBar;if(!n.displayModeBar&&!n.watermark){a&&(a.destroy(),delete t._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=n.modeBarButtons,o;Array.isArray(i)&&i.length?o=HX(i):!n.displayModeBar&&n.watermark?o=[]:o=RX(r),a?a.update(r,o):t._modeBar=DX(r,o)};function RX(e){var r=e._fullLayout,t=e._fullData,n=e._context;function a(K,Q){if(typeof Q=="string"){if(Q.toLowerCase()===K.toLowerCase())return!0}else{var fe=Q.name,he=Q._cat||Q.name;if(fe===K||he===K.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=n.modeBarButtonsToAdd.concat(i.filter(function(K){for(var Q=0;Q1?(F=["toggleHover"],H=["resetViews"]):v?(z=["zoomInGeo","zoomOutGeo"],F=["hoverClosestGeo"],H=["resetGeo"]):f?(F=["hoverClosest3d"],H=["resetCameraDefault3d","resetCameraLastSave3d"]):p?(z=["zoomInMapbox","zoomOutMapbox"],F=["toggleHover"],H=["resetViewMapbox"]):y?(z=["zoomInMap","zoomOutMap"],F=["toggleHover"],H=["resetViewMap"]):h?F=["hoverClosestPie"]:x?(F=["hoverClosestCartesian","hoverCompareCartesian"],H=["resetViewSankey"]):F=["toggleHover"],u&&F.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(FX(t)||A)&&(F=[]),u&&!_&&(z=["zoomIn2d","zoomOut2d","autoScale2d"],H[0]!=="resetViews"&&(H=["resetScale2d"])),f?W=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!_||m?W=["zoom2d","pan2d"]:p||y||v?W=["pan2d"]:b&&(W=["zoom2d"]),NX(t)&&W.push("select2d","lasso2d");var B=[],X=function(K){B.indexOf(K)===-1&&F.indexOf(K)!==-1&&B.push(K)};if(Array.isArray(l)){for(var V=[],re=0;re{"use strict";tS.exports={moduleType:"component",name:"modebar",layoutAttributes:m5(),supplyLayoutDefaults:Xk(),manage:rS()}});var x5=ne((Dfe,nS)=>{"use strict";var BX=Ka().FROM_BL;nS.exports=function(r,t,n){n===void 0&&(n=BX[r.constraintoward||"center"]);var a=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=a[0]+(a[1]-a[0])*n;r.range=r._input.range=[r.l2r(i+(a[0]-i)*t),r.l2r(i+(a[1]-i)*t)],r.setScale()}});var B1=ne(H1=>{"use strict";var Tc=gr(),w5=Ju(),bl=ua().id2name,OX=pl(),aS=x5(),UX=dp(),YX=Rn().ALMOST_EQUAL,GX=Ka().FROM_BL;H1.handleDefaults=function(e,r,t){var n=t.axIds,a=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,u,f,v,h,d,m;for(l=0;li?t.substr(i):n.substr(a))+o}function WX(e,r){for(var t=r._size,n=t.h/t.w,a={},i=Object.keys(e),o=0;oYX*m&&!C)){for(i=0;iW&&feF&&(F=fe);var De=(F-z)/(2*H);v/=De,z=s.l2r(z),F=s.l2r(F),s.range=s._input.range=k{"use strict";var vg=kt(),ni=dt(),ro=fa(),Lo=gr(),T5=ci(),k5=Gp(),O1=Pt(),uv=fn(),sS=A1(),hS=_5(),U1=Dn(),nu=Ka(),dS=B1(),ZX=dS.enforce,XX=dS.clean,uS=Ju().doAutoRange,pS="start",jX="middle",gS="end",JX=Pa().zindexSeparator;xa.layoutStyles=function(e){return Lo.syncOrAsync([ro.doAutoMargin,KX],e)};function $X(e,r,t){for(var n=0;n=e[1]||a[1]<=e[0])&&i[0]r[0])return!0}return!1}function KX(e){var r=e._fullLayout,t=r._size,n=t.p,a=U1.list(e,"",!0),i,o,l,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(uv.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),xa.drawMainTitle(e),hS.manage(e),!r._has("cartesian"))return ro.previousPromises(e);function v(pe,U,ee){var $=pe._lw/2;if(pe._id.charAt(0)==="x"){if(U){if(ee==="top")return U._offset-n-$}else return t.t+t.h*(1-(pe.position||0))+$%1;return U._offset+U._length+n+$}if(U){if(ee==="right")return U._offset+U._length+n+$}else return t.l+t.w*(pe.position||0)+$%1;return U._offset-n-$}for(i=0;i0){tj(e,i,u,s),l.attr({x:o,y:i,"text-anchor":n,dy:vS(r.yanchor)}).call(T5.positionText,o,i);var f=(r.text.match(T5.BR_TAG_ALL)||[]).length;if(f){var v=nu.LINE_SPACING*f+nu.MID_SHIFT;r.y===0&&(v=-v),l.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-v+"em";this.setAttribute("dy",y)})}var h=vg.selectAll(".gtitle-subtitle");if(h.node()){var d=l.node().getBBox(),m=d.y+d.height,p=m+sS.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:o,y:p,"text-anchor":n,dy:vS(r.yanchor)}).call(T5.positionText,o,p)}}}};function QX(e,r,t,n,a){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=Lo.isTopAnchor(r)?n:n-a,l=t==="b"?i-o:o;return Lo.isTopAnchor(r)&&t==="t"||Lo.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=ej(i,n,a,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function tj(e,r,t,n){var a="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&QX(e,i,o,r,n)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[a]=s),ro.allowAutoMargin(e,a),ro.autoMargin(e,a,l)}function nj(e,r){var t=e.title,n=e._size,a=0;switch(r===pS?a=t.pad.l:r===gS&&(a=-t.pad.r),t.xref){case"paper":return n.l+n.w*t.x+a;case"container":default:return e.width*t.x+a}}function aj(e,r){var t=e.title,n=e._size,a=0;if(r==="0em"||!r?a=-t.pad.b:r===nu.CAP_SHIFT+"em"&&(a=t.pad.t),t.y==="auto")return n.t/2;switch(t.yref){case"paper":return n.t+n.h-n.h*t.y+a;case"container":default:return e.height-e.height*t.y+a}}function vS(e){return e==="top"?nu.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":nu.MID_SHIFT+"em"}function ij(e){var r=e.title,t=jX;return Lo.isRightAnchor(r)?t=gS:Lo.isLeftAnchor(r)&&(t=pS),t}function oj(e){var r=e.title,t="0em";return Lo.isTopAnchor(r)?t=nu.CAP_SHIFT+"em":Lo.isMiddleAnchor(r)&&(t=nu.MID_SHIFT+"em"),t}xa.doTraceStyle=function(e){var r=e.calcdata,t=[],n;for(n=0;n{"use strict";var lj=Qu().readPaths,sj=tg(),mS=Yu().clearOutlineControllers,S5=Pt(),yS=fn(),uj=bn().arrayEditor,bS=rf(),fj=bS.getPathString;xS.exports={draw:dg,drawOne:_S,activateLastSelection:hj};function dg(e){var r=e._fullLayout;mS(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var n=r._plots[t].selectionLayer;n&&n.selectAll("path").remove()}for(var a=0;a=0;y--){var b=o.append("path").attr(s).style("opacity",y?.1:u).call(S5.stroke,v).call(S5.fill,f).call(yS.dashLine,y?"solid":d,y?4+h:h);if(cj(b,e,n),m){var C=uj(e.layout,"selections",n);b.style({cursor:"move"});var x={element:b.node(),plotinfo:a,gd:e,editHelpers:C,isActiveSelection:!0},_=lj(l,e);sj(_,b,x)}else b.style("pointer-events",y?"all":"none");p[y]=b}var A=p[0],k=p[1];k.node().addEventListener("click",function(){return vj(e,A)})}}function cj(e,r,t){var n=t.xref+t.yref;yS.setClipUrl(e,"clip"+r._fullLayout._uid+n,r)}function vj(e,r){if(pg(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){C5(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=C5,dg(e)}}}function hj(e){if(pg(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=C5,dg(e)}}function C5(e){if(pg(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(mS(e),delete e._fullLayout._activeSelectionIndex,dg(e))}}});var MS=ne((zfe,wS)=>{function dj(){var e,r=0,t=!1;function n(a,i){return e.list.push({type:a,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(a,i){return n("check",{seg1:a,seg2:i})},segmentChop:function(a,i){return n("div_seg",{seg:a,pt:i}),n("chop",{seg:a,pt:i})},statusRemove:function(a){return n("pop_seg",{seg:a})},segmentUpdate:function(a){return n("seg_update",{seg:a})},segmentNew:function(a,i){return n("new_seg",{seg:a,primary:i})},segmentRemove:function(a){return n("rem_seg",{seg:a})},tempStatus:function(a,i,o){return n("temp_status",{seg:a,above:i,below:o})},rewind:function(a){return n("rewind",{seg:a})},status:function(a,i,o){return n("status",{seg:a,above:i,below:o})},vert:function(a){return a===t?e:(t=a,n("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),n("log",{txt:a})},reset:function(){return n("reset")},selected:function(a){return n("selected",{segs:a})},chainStart:function(a){return n("chain_start",{seg:a})},chainRemoveHead:function(a,i){return n("chain_rem_head",{index:a,pt:i})},chainRemoveTail:function(a,i){return n("chain_rem_tail",{index:a,pt:i})},chainNew:function(a,i){return n("chain_new",{pt1:a,pt2:i})},chainMatch:function(a){return n("chain_match",{index:a})},chainClose:function(a){return n("chain_close",{index:a})},chainAddHead:function(a,i){return n("chain_add_head",{index:a,pt:i})},chainAddTail:function(a,i){return n("chain_add_tail",{index:a,pt:i})},chainConnect:function(a,i){return n("chain_con",{index1:a,index2:i})},chainReverse:function(a){return n("chain_rev",{index:a})},chainJoin:function(a,i){return n("chain_join",{index1:a,index2:i})},done:function(){return n("done")}},e}wS.exports=dj});var TS=ne((Nfe,AS)=>{function pj(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,n,a){var i=n[0],o=n[1],l=a[0],s=a[1],u=t[0],f=t[1];return(l-i)*(f-o)-(s-o)*(u-i)>=-e},pointBetween:function(t,n,a){var i=t[1]-n[1],o=a[0]-n[0],l=t[0]-n[0],s=a[1]-n[1],u=l*o+i*s;if(u-e)},pointsSameX:function(t,n){return Math.abs(t[0]-n[0])e!=l-i>e&&(o-f)*(i-v)/(l-v)+f-a>e&&(s=!s),o=f,l=v}return s}};return r}AS.exports=pj});var SS=ne((Ffe,kS)=>{var gj={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var n=e.root,a=e.root.next;a!==null;){if(t(a)){r.prev=a.prev,r.next=a,a.prev.next=r,a.prev=r;return}n=a,a=a.next}n.next=r,r.prev=n,r.next=null},findTransition:function(r){for(var t=e.root,n=e.root.next;n!==null&&!r(n);)t=n,n=n.next;return{before:t===e.root?null:t,after:n,insert:function(a){return a.prev=t,a.next=n,t.next=a,n!==null&&(n.prev=a),a}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};kS.exports=gj});var LS=ne((Ife,CS)=>{var Y1=SS();function mj(e,r,t){function n(m,p){return{id:t?t.segmentId():-1,start:m,end:p,myFill:{above:null,below:null},otherFill:null}}function a(m,p,y){return{id:t?t.segmentId():-1,start:m,end:p,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=Y1.create();function o(m,p,y,b,C,x){var _=r.pointsCompare(p,C);return _!==0?_:r.pointsSame(y,x)?0:m!==b?m?1:-1:r.pointAboveOrOnLine(y,b?C:x,b?x:C)?1:-1}function l(m,p){i.insertBefore(m,function(y){var b=o(m.isStart,m.pt,p,y.isStart,y.pt,y.other.pt);return b<0})}function s(m,p){var y=Y1.node({isStart:!0,pt:m.start,seg:m,primary:p,other:null,status:null});return l(y,m.end),y}function u(m,p,y){var b=Y1.node({isStart:!1,pt:p.end,seg:p,primary:y,other:m,status:null});m.other=b,l(b,m.pt)}function f(m,p){var y=s(m,p);return u(y,m,p),y}function v(m,p){t&&t.segmentChop(m.seg,p),m.other.remove(),m.seg.end=p,m.other.pt=p,l(m.other,m.pt)}function h(m,p){var y=a(p,m.seg.end,m.seg);return v(m,p),f(y,m.primary)}function d(m,p){var y=Y1.create();function b(V,re){var te=V.seg.start,K=V.seg.end,Q=re.seg.start,fe=re.seg.end;return r.pointsCollinear(te,Q,fe)?r.pointsCollinear(K,Q,fe)||r.pointAboveOrOnLine(K,Q,fe)?1:-1:r.pointAboveOrOnLine(te,Q,fe)?1:-1}function C(V){return y.findTransition(function(re){var te=b(V,re.ev);return te>0})}function x(V,re){var te=V.seg,K=re.seg,Q=te.start,fe=te.end,he=K.start,De=K.end;t&&t.checkIntersection(te,K);var Ne=r.linesIntersect(Q,fe,he,De);if(Ne===!1){if(!r.pointsCollinear(Q,fe,he)||r.pointsSame(Q,De)||r.pointsSame(fe,he))return!1;var Fe=r.pointsSame(Q,he),Je=r.pointsSame(fe,De);if(Fe&&Je)return re;var Le=!Fe&&r.pointBetween(Q,he,De),rr=!Je&&r.pointBetween(fe,he,De);if(Fe)return rr?h(re,fe):h(V,De),re;Le&&(Je||(rr?h(re,fe):h(V,De)),h(re,Q))}else Ne.alongA===0&&(Ne.alongB===-1?h(V,he):Ne.alongB===0?h(V,Ne.pt):Ne.alongB===1&&h(V,De)),Ne.alongB===0&&(Ne.alongA===-1?h(re,Q):Ne.alongA===0?h(re,Ne.pt):Ne.alongA===1&&h(re,fe));return!1}for(var _=[];!i.isEmpty();){var A=i.getHead();if(t&&t.vert(A.pt[0]),A.isStart){let V=function(){if(M){var re=x(A,M);if(re)return re}return D?x(A,D):!1};var X=V;t&&t.segmentNew(A.seg,A.primary);var k=C(A),M=k.before?k.before.ev:null,D=k.after?k.after.ev:null;t&&t.tempStatus(A.seg,M?M.seg:!1,D?D.seg:!1);var z=V();if(z){if(e){var F;A.seg.myFill.below===null?F=!0:F=A.seg.myFill.above!==A.seg.myFill.below,F&&(z.seg.myFill.above=!z.seg.myFill.above)}else z.seg.otherFill=A.seg.myFill;t&&t.segmentUpdate(z.seg),A.other.remove(),A.remove()}if(i.getHead()!==A){t&&t.rewind(A.seg);continue}if(e){var F;A.seg.myFill.below===null?F=!0:F=A.seg.myFill.above!==A.seg.myFill.below,D?A.seg.myFill.below=D.seg.myFill.above:A.seg.myFill.below=m,F?A.seg.myFill.above=!A.seg.myFill.below:A.seg.myFill.above=A.seg.myFill.below}else if(A.seg.otherFill===null){var H;D?A.primary===D.primary?H=D.seg.otherFill.above:H=D.seg.myFill.above:H=A.primary?p:m,A.seg.otherFill={above:H,below:H}}t&&t.status(A.seg,M?M.seg:!1,D?D.seg:!1),A.other.status=k.insert(Y1.node({ev:A}))}else{var W=A.status;if(W===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(W.prev)&&y.exists(W.next)&&x(W.prev.ev,W.next.ev),t&&t.statusRemove(W.ev.seg),W.remove(),!A.primary){var B=A.seg.myFill;A.seg.myFill=A.seg.otherFill,A.seg.otherFill=B}_.push(A.seg)}i.getHead().remove()}return t&&t.done(),_}return e?{addRegion:function(m){for(var p,y=m[m.length-1],b=0;b{function yj(e,r,t){var n=[],a=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function v(X,V,re){return f.index=X,f.matches_head=V,f.matches_pt1=re,f===s?(f=u,!1):(f=null,!0)}for(var h=0;h{function G1(e,r,t){var n=[];return e.forEach(function(a){var i=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);r[i]!==0&&n.push({id:t?t.segmentId():-1,start:a.start,end:a.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(n),n}var bj={union:function(e,r){return G1(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return G1(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return G1(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return G1(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return G1(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};ES.exports=bj});var zS=ne((Ofe,RS)=>{var _j={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),s=1;s{var xj=MS(),wj=TS(),NS=LS(),Mj=DS(),V1=PS(),FS=zS(),qo=!1,W1=wj(),zi;zi={buildLog:function(e){return e===!0?qo=xj():e===!1&&(qo=!1),qo===!1?!1:qo.list},epsilon:function(e){return W1.epsilon(e)},segments:function(e){var r=NS(!0,W1,qo);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=NS(!1,W1,qo);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:V1.union(e.combined,qo),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:V1.intersect(e.combined,qo),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:V1.difference(e.combined,qo),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:V1.differenceRev(e.combined,qo),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:V1.xor(e.combined,qo),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Mj(e.segments,W1,qo),inverted:e.inverted}},polygonFromGeoJSON:function(e){return FS.toPolygon(zi,e)},polygonToGeoJSON:function(e){return FS.fromPolygon(zi,W1,e)},union:function(e,r){return Z1(e,r,zi.selectUnion)},intersect:function(e,r){return Z1(e,r,zi.selectIntersect)},difference:function(e,r){return Z1(e,r,zi.selectDifference)},differenceRev:function(e,r){return Z1(e,r,zi.selectDifferenceRev)},xor:function(e,r){return Z1(e,r,zi.selectXor)}};function Z1(e,r,t){var n=zi.segments(e),a=zi.segments(r),i=zi.combine(n,a),o=t(i);return zi.polygon(o)}typeof window=="object"&&(window.PolyBool=zi);IS.exports=zi});var OS=ne((Yfe,BS)=>{BS.exports=function(r,t,n,a){var i=r[0],o=r[1],l=!1;n===void 0&&(n=0),a===void 0&&(a=t.length);for(var s=a-n,u=0,f=s-1;uo!=m>o&&i<(d-v)*(o-h)/(m-h)+v;p&&(l=!l)}return l}});var yg=ne((Gfe,US)=>{"use strict";var q5=gd().dot,gg=Rn().BADNUM,mg=US.exports={};mg.tester=function(r){var t=r.slice(),n=t[0][0],a=n,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;la||b===gg||bo||p&&u(m))}function v(m,p){var y=m[0],b=m[1];if(y===gg||ya||b===gg||bo)return!1;var C=t.length,x=t[0][0],_=t[0][1],A=0,k,M,D,z,F;for(k=1;kMath.max(M,x)||b>Math.max(D,_)))if(bl||Math.abs(q5(v,u))>a)return!0;return!1};mg.filter=function(r,t){var n=[r[0]],a=0,i=0;function o(s){r.push(s);var u=n.length,f=a;n.splice(i+1);for(var v=f+1;v1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:n}}});var GS=ne((Vfe,YS)=>{"use strict";YS.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var vC=ne((Wfe,cC)=>{"use strict";var VS=HS(),Aj=OS(),J1=dt(),Tj=fn().dashStyle,X1=Pt(),kj=ss(),Sj=Vu().makeEventData,rh=tv(),Cj=rh.freeMode,Lj=rh.rectMode,$1=rh.drawMode,R5=rh.openMode,z5=rh.selectMode,WS=rf(),ZS=N1(),KS=tg(),QS=Yu().clearOutline,eC=Qu(),D5=eC.handleEllipse,qj=eC.readPaths,Dj=Kp().newShapes,Ej=a5(),Pj=L5().activateLastSelection,_g=gr(),Rj=_g.sorterAsc,rC=yg(),j1=qd(),Do=ua().getFromId,zj=Gp(),Nj=hg().redrawReglTraces,xg=GS(),fs=xg.MINSELECT,Fj=rC.filter,N5=rC.tester,F5=Xp(),XS=F5.p2r,Ij=F5.axValue,Hj=F5.getTransform;function I5(e){return e.subplot!==void 0}function Bj(e,r,t,n,a){var i=!I5(n),o=Cj(a),l=Lj(a),s=R5(a),u=$1(a),f=z5(a),v=a==="drawline",h=a==="drawcircle",d=v||h,m=n.gd,p=m._fullLayout,y=f&&p.newselection.mode==="immediate"&&i,b=p._zoomlayer,C=n.element.getBoundingClientRect(),x=n.plotinfo,_=Hj(x),A=r-C.left,k=t-C.top;p._calcInverseTransform(m);var M=_g.apply3DTransform(p._invTransform)(A,k);A=M[0],k=M[1];var D=p._invScaleX,z=p._invScaleY,F=A,H=k,W="M"+A+","+k,B=n.xaxes[0],X=n.yaxes[0],V=B._length,re=X._length,te=e.altKey&&!($1(a)&&s),K,Q,fe,he,De,Ne,Fe;nC(e,m,n),o&&(K=Fj([[A,k]],xg.BENDPX));var Je=b.selectAll("path.select-outline-"+x.id).data([1]),Le=u?p.newshape:p.newselection;u&&(n.hasText=Le.label.text||Le.label.texttemplate);var rr=u&&!s?Le.fillcolor:"rgba(0,0,0,0)",se=Le.line.color||(i?X1.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");Je.enter().append("path").attr("class","select-outline select-outline-"+x.id).style({opacity:u?Le.opacity/2:1,"stroke-dasharray":Tj(Le.line.dash,Le.line.width),"stroke-width":Le.line.width+"px","shape-rendering":"crispEdges"}).call(X1.stroke,se).call(X1.fill,rr).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",_).attr("d",W+"Z");var me=b.append("path").attr("class","zoombox-corners").style({fill:X1.background,stroke:X1.defaultLine,"stroke-width":1}).attr("transform",_).attr("d","M0,0Z");if(u&&n.hasText){var we=b.select(".label-temp");we.empty()&&(we=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var pe=p._uid+xg.SELECTID,U=[],ee=wg(m,n.xaxes,n.yaxes,n.subplot);y&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(i){var Se=B._id,Oe=X._id;sC(m,Se,Oe,ee);for(var Ie=(m.layout||{}).selections||[],ir=[],or=!1,Ue=0;Ue=0){m._fullLayout._deactivateShape(m);return}if(!u){var Ie=p.clickmode;j1.done(pe).then(function(){if(j1.clear(pe),Se===2){for(Je.remove(),De=0;De-1&&tC(Oe,m,n.xaxes,n.yaxes,n.subplot,n,Je),Ie==="event"&&eh(m,void 0);kj.click(m,Oe,x.id)}).catch(_g.error)}},n.doneFn=function(){me.remove(),j1.done(pe).then(function(){j1.clear(pe),!y&&he&&n.selectionDefs&&(he.subtract=te,n.selectionDefs.push(he),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,fe)),(y||u)&&K1(n,y),n.doneFnCompleted&&n.doneFnCompleted(U),f&&eh(m,Fe)}).catch(_g.error)}}function tC(e,r,t,n,a,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,v=[],h,d,m,p,y,b,C,x,_,A;if(Vj(l)){nC(e,r,i),h=wg(r,t,n,a);var k=Wj(l,h),M=k.pointNumbers.length>0;if(M?Zj(h,k):Xj(h)&&(C=JS(k))){for(o&&o.remove(),A=0;A=0}function Gj(e){return e._fullLayout._activeSelectionIndex>=0}function K1(e,r){var t=e.dragmode,n=e.plotinfo,a=e.gd;Yj(a)&&a._fullLayout._deactivateShape(a),Gj(a)&&a._fullLayout._deactivateSelection(a);var i=a._fullLayout,o=i._zoomlayer,l=$1(t),s=z5(t);if(l||s){var u=o.selectAll(".select-outline-"+n.id);if(u&&a._fullLayout._outlining){var f;l&&(f=Dj(u,e)),f&&J1.call("_guiRelayout",a,{shapes:f});var v;s&&!I5(e)&&(v=Ej(u,e)),v&&(a._fullLayout._noEmitSelectedAtStart=!0,J1.call("_guiRelayout",a,{selections:v}).then(function(){r&&Pj(a)})),a._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function jS(e){return e._id}function wg(e,r,t,n){if(!e.calcdata)return[];var a=[],i=r.map(jS),o=t.map(jS),l,s,u;for(u=0;u0,i=a?n[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function Zj(e,r){var t=[],n,a,i,o;for(o=0;o0&&t.push(n);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(a=r.searchInfo.cd[0].trace,a.selectedpoints.length===r.pointNumbers.length))){for(o=0;o1||(r+=n.selectedpoints.length,r>1)))return!1;return r===1}function Q1(e,r,t){var n;for(n=0;n-1&&r;if(!o&&r){var Se=$S(e,!0);if(Se.length){var Oe=Se[0].xref,Ie=Se[0].yref;if(Oe&&Ie){var ir=uC(Se),or=fC([Do(e,Oe,"x"),Do(e,Ie,"y")]);or(U,ir)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:$&&eh(e,U),h._reselect=!1}if(!o&&h._deselect){var Ue=h._deselect;l=Ue.xref,s=Ue.yref,$j(l,s,f)||sC(e,l,s,n),$&&(U.points.length?eh(e,U):O5(e)),h._deselect=!1}return{eventData:U,selectionTesters:t}}function Jj(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";hC.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var th=ne((Xfe,dC)=>{"use strict";dC.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var fv=ne((Jfe,mC)=>{"use strict";var pC=U5(),gC=$a(),Mg=Pa(),tJ=bn().templatedArray,jfe=th();mC.exports=tJ("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:gC({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:pC.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:pC.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Mg.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Mg.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Mg.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Mg.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:gC({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Ag=ne(($fe,yC)=>{"use strict";yC.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Y5=ne((Kfe,bC)=>{"use strict";bC.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var kc=ne((Qfe,TC)=>{"use strict";var _C=w2().axisHoverFormat,nJ=Vs().texttemplateAttrs,aJ=Vs().hovertemplateAttrs,xC=H0(),iJ=$a(),oJ=Kl().dash,lJ=Kl().pattern,sJ=fn(),uJ=Ag(),Tg=la().extendFlat,fJ=Y5();function wC(e){return{valType:"any",dflt:0,editType:"calc"}}function MC(e){return{valType:"any",editType:"calc"}}function AC(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}TC.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:wC("x"),yperiod:wC("y"),xperiod0:MC("x0"),yperiod0:MC("y0"),xperiodalignment:AC("x"),yperiodalignment:AC("y"),xhoverformat:_C("x"),yhoverformat:_C("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:nJ({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:aJ({},{keys:uJ.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Tg({},oJ,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:fJ(!0),fillgradient:Tg({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:lJ,marker:Tg({symbol:{valType:"enumerated",values:sJ.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Tg({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},xC("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},xC("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:iJ({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var G5=ne((rce,CC)=>{"use strict";var kC=fv(),SC=kc().line,cJ=Kl().dash,kg=la().extendFlat,vJ=_o().overrideAll,hJ=bn().templatedArray,ece=th();CC.exports=vJ(hJ("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:kg({},kC.xref,{}),yref:kg({},kC.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:SC.color,width:kg({},SC.width,{min:1,dflt:1}),dash:kg({},cJ,{dflt:"dot"})}}),"arraydraw","from-root")});var EC=ne((tce,DC)=>{"use strict";var LC=gr(),Sg=Dn(),dJ=gl(),pJ=G5(),qC=rf();DC.exports=function(r,t){dJ(r,t,{name:"selections",handleItemDefaults:gJ});for(var n=t.selections,a=0;a{"use strict";PC.exports=function(r,t,n){n("newselection.mode");var a=n("newselection.line.width");a&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var nh=ne((ace,FC)=>{"use strict";var mJ=dt(),zC=gr(),NC=ua();FC.exports=function(r){return function(n,a){var i=n[r];if(Array.isArray(i))for(var o=mJ.subplotsRegistry.cartesian,l=o.idRegex,s=a._subplots,u=s.xaxis,f=s.yaxis,v=s.cartesian,h=a._has("cartesian"),d=0;d{"use strict";var IC=L5(),ah=vC();HC.exports={moduleType:"component",name:"selections",layoutAttributes:G5(),supplyLayoutDefaults:EC(),supplyDrawNewSelectionDefaults:RC(),includeBasePlot:nh()("selections"),draw:IC.draw,drawOne:IC.drawOne,reselect:ah.reselect,prepSelect:ah.prepSelect,clearOutline:ah.clearOutline,clearSelectionsCache:ah.clearSelectionsCache,selectOnClick:ah.selectOnClick}});var oL=ne((oce,iL)=>{"use strict";var j5=kt(),Eo=gr(),BC=Eo.numberFormat,yJ=Jl(),bJ=C3(),Cg=dt(),jC=Eo.strTranslate,_J=ci(),OC=Pt(),nf=fn(),xJ=ss(),UC=Dn(),wJ=Ku(),MJ=To(),JC=tv(),Lg=JC.selectingOrDrawing,AJ=JC.freeMode,TJ=Ka().FROM_TL,kJ=Gp(),SJ=hg().redrawReglTraces,CJ=fa(),W5=ua().getFromId,LJ=au().prepSelect,qJ=au().clearOutline,DJ=au().selectOnClick,V5=x5(),J5=Pa(),YC=J5.MINDRAG,vi=J5.MINZOOM,GC=!0;function EJ(e,r,t,n,a,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,v,h,d,m,p,y,b,C,x,_,A,k,M,D,z,F,H,W,B,X,V,re,te;t+=r.yaxis._shift;function K(){if(v=r.xaxis,h=r.yaxis,x=v._length,_=h._length,b=v._offset,C=h._offset,d={},d[v._id]=v,m={},m[h._id]=h,o&&l)for(var Ae=r.overlays,Xe=0;Xe=0){hr._fullLayout._deactivateShape(hr);return}var wr=hr._fullLayout.clickmode;if(X5(hr),Ae===2&&!f&&dr(),u)wr.indexOf("select")>-1&&DJ(Xe,hr,p,y,r.id,he),wr.indexOf("event")>-1&&xJ.click(hr,Xe,r.id);else if(Ae===1&&f){var mr=o?h:v,Tr=o==="s"||l==="w"?0:1,Dr=mr._name+".range["+Tr+"]",Or=PJ(mr,Tr),Cr="left",ar="middle";if(mr.fixedrange)return;o?(ar=o==="n"?"top":"bottom",mr.side==="right"&&(Cr="right")):l==="e"&&(Cr="right"),hr._context.showAxisRangeEntryBoxes&&j5.select(fe).call(_J.makeEditable,{gd:hr,immediate:!0,background:hr._fullLayout.paper_bgcolor,text:String(Or),fill:mr.tickfont?mr.tickfont.color:"#444",horizontalAlign:Cr,verticalAlign:ar}).on("edit",function(be){var ke=mr.d2r(be);ke!==void 0&&Cg.call("_guiRelayout",hr,Dr,ke)})}}MJ.init(he);var Fe,Je,Le,rr,se,me,we,pe,U,ee;function $(Ae,Xe,hr){var wr=fe.getBoundingClientRect();Fe=Xe-wr.left,Je=hr-wr.top,e._fullLayout._calcInverseTransform(e);var mr=Eo.apply3DTransform(e._fullLayout._invTransform)(Fe,Je);Fe=mr[0],Je=mr[1],Le={l:Fe,r:Fe,w:0,t:Je,b:Je,h:0},rr=e._hmpixcount?e._hmlumcount/e._hmpixcount:yJ(e._fullLayout.plot_bgcolor).getLuminance(),se="M0,0H"+x+"V"+_+"H0V0",me=!1,we="xy",ee=!1,pe=QC(s,rr,b,C,se),U=eL(s,b,C)}function Se(Ae,Xe){if(e._transitioningWithDuration)return!1;var hr=Math.max(0,Math.min(x,re*Ae+Fe)),wr=Math.max(0,Math.min(_,te*Xe+Je)),mr=Math.abs(hr-Fe),Tr=Math.abs(wr-Je);Le.l=Math.min(Fe,hr),Le.r=Math.max(Fe,hr),Le.t=Math.min(Je,wr),Le.b=Math.max(Je,wr);function Dr(){we="",Le.r=Le.l,Le.t=Le.b,U.attr("d","M0,0Z")}if(A.isSubplotConstrained)mr>vi||Tr>vi?(we="xy",mr/x>Tr/_?(Tr=mr*_/x,Je>wr?Le.t=Je-Tr:Le.b=Je+Tr):(mr=Tr*x/_,Fe>hr?Le.l=Fe-mr:Le.r=Fe+mr),U.attr("d",qg(Le))):Dr();else if(k.isSubplotConstrained)if(mr>vi||Tr>vi){we="xy";var Or=Math.min(Le.l/x,(_-Le.b)/_),Cr=Math.max(Le.r/x,(_-Le.t)/_);Le.l=Or*x,Le.r=Cr*x,Le.b=(1-Or)*_,Le.t=(1-Cr)*_,U.attr("d",qg(Le))}else Dr();else!D||Tr0){var be;if(k.isSubplotConstrained||!M&&D.length===1){for(be=0;be1&&(Dr.maxallowed!==void 0&&F===(Dr.range[0]1&&(Or.maxallowed!==void 0&&H===(Or.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function zJ(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function QC(e,r,t,n,a){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",jC(t,n)).attr("d",a+"Z")}function eL(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:OC.background,stroke:OC.defaultLine,"stroke-width":1,opacity:0}).attr("transform",jC(r,t)).attr("d","M0,0Z")}function rL(e,r,t,n,a,i){e.attr("d",n+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),tL(e,r,a,i)}function tL(e,r,t,n){t||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function X5(e){j5.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function nL(e){GC&&e.data&&e._context.showTips&&(Eo.notifier(Eo._(e,"Double-click to zoom back out"),"long"),GC=!1)}function NJ(e,r){return"M"+(e.l-.5)+","+(r-vi-.5)+"h-3v"+(2*vi+1)+"h3ZM"+(e.r+.5)+","+(r-vi-.5)+"h3v"+(2*vi+1)+"h-3Z"}function FJ(e,r){return"M"+(r-vi-.5)+","+(e.t-.5)+"v-3h"+(2*vi+1)+"v3ZM"+(r-vi-.5)+","+(e.b+.5)+"v3h"+(2*vi+1)+"v-3Z"}function qg(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,vi)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function ZC(e,r,t,n,a){for(var i=!1,o={},l={},s,u,f,v,h=(a||{}).xaHash,d=(a||{}).yaHash,m=0;m{"use strict";var IJ=kt(),Dg=ss(),HJ=To(),BJ=Ku(),_l=oL().makeDragBox,wa=Pa().DRAGGERSIZE;Eg.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){IJ.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var n=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});n.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var u=_l(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");u.onmousemove=function(h){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Dg.hover(r,h,i)},Dg.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,HJ.unhover(r,h))},r._context.showAxisDragHandles&&(_l(r,o,l._offset-wa,s._offset-wa,wa,wa,"n","w"),_l(r,o,l._offset+l._length,s._offset-wa,wa,wa,"n","e"),_l(r,o,l._offset-wa,s._offset+s._length,wa,wa,"s","w"),_l(r,o,l._offset+l._length,s._offset+s._length,wa,wa,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=wa),_l(r,o,l._offset+l._length*.1,f,l._length*.8,wa,"","ew"),_l(r,o,l._offset,f,l._length*.1,wa,"","w"),_l(r,o,l._offset+l._length*.9,f,l._length*.1,wa,"","e")}if(i===s._mainSubplot){var v=s._mainLinePosition;s.side!=="right"&&(v-=wa),_l(r,o,v,s._offset+s._length*.1,wa,s._length*.8,"ns",""),_l(r,o,v,s._offset+s._length*.9,wa,s._length*.1,"s",""),_l(r,o,v,s._offset,wa,s._length*.1,"n","")}}});var a=t._hoverlayer.node();a.onmousemove=function(i){i.target=r._fullLayout._lasthover,Dg.hover(r,i,t._hoversubplot)},a.onclick=function(i){i.target=r._fullLayout._lasthover,Dg.click(r,i)},a.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Eg.updateFx(r)}};Eg.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";BJ(r._draggers,t)}});var uL=ne((sce,sL)=>{"use strict";var lL=dt();sL.exports=function(r){for(var t=lL.layoutArrayContainers,n=lL.layoutArrayRegexes,a=r.split("[")[0],i,o,l=0;l{"use strict";var OJ=Gs(),K5=pd(),ih=Ru(),UJ=Zy().sorterAsc,Q5=dt();oh.containerArrayMatch=uL();var YJ=oh.isAddVal=function(r){return r==="add"||OJ(r)},fL=oh.isRemoveVal=function(r){return r===null||r==="remove"};oh.applyContainerArrayChanges=function(r,t,n,a,i){var o=t.astr,l=Q5.getComponentMethod(o,"supplyLayoutDefaults"),s=Q5.getComponentMethod(o,"draw"),u=Q5.getComponentMethod(o,"drawOne"),f=a.replot||a.recalc||l===K5||s===K5,v=r.layout,h=r._fullLayout;if(n[""]){Object.keys(n).length>1&&ih.warn("Full array edits are incompatible with other edits",o);var d=n[""][""];if(fL(d))t.set(null);else if(Array.isArray(d))t.set(d);else return ih.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(l(v,h),s(r),!0)}var m=Object.keys(n).map(Number).sort(UJ),p=t.get(),y=p||[],b=i(h,o).get(),C=[],x=-1,_=y.length,A,k,M,D,z,F,H,W;for(A=0;Ay.length-(H?0:1)){ih.warn("index out of range",o,M);continue}if(F!==void 0)z.length>1&&ih.warn("Insertion & removal are incompatible with edits to the same index.",o,M),fL(F)?C.push(M):H?(F==="add"&&(F={}),y.splice(M,0,F),b&&b.splice(M,0,{})):ih.warn("Unrecognized full object edit value",o,M,F),x===-1&&(x=M);else for(k=0;k=0;A--)y.splice(C[A],1),b&&b.splice(C[A],1);if(y.length?p||t.set(y):t.set(null),f)return!1;if(l(v,h),u!==K5){var B;if(x===-1)B=m;else{for(_=Math.max(y.length,_),B=[],A=0;A=x));A++)B.push(M);for(A=x;A<_;A++)B.push(A)}for(A=0;A{"use strict";var pL=Ot(),fce=Iy(),gL=dt(),Ni=gr(),lh=fa(),mL=ua(),yL=Pt(),sh=mL.cleanId,GJ=mL.getFromTrace,eb=gL.traceIs;xl.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ni.log("Clearing previous rejected promises from queue."),e._promises=[]};xl.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(lh.subplotsRegistry.cartesian||{}).attrRegex,a=(lh.subplotsRegistry.polar||{}).attrRegex,i=(lh.subplotsRegistry.ternary||{}).attrRegex,o=(lh.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),yL.clean(e),e.template&&e.template.layout&&xl.cleanLayout(e.template.layout),e};function cv(e,r){var t=e[r],n=r.charAt(0);t&&t!=="paper"&&(e[r]=sh(t,n,!0))}xl.cleanData=function(e){for(var r=0;r0)return e.substr(0,r)}xl.hasParent=function(e,r){for(var t=dL(r);t;){if(t in e)return!0;t=dL(t)}return!1};var ZJ=["x","y","z"];xl.clearAxisTypes=function(e,r,t){for(var n=0;n{"use strict";var Ng=kt(),XJ=Ot(),jJ=o2(),Rr=gr(),_n=Rr.nestedProperty,nb=p1(),hi=$w(),Po=dt(),Yg=z0(),ft=fa(),ai=Dn(),JJ=S3(),$J=pl(),rb=fn(),KJ=Pt(),QJ=$5().initInteractions,e$=lc(),r$=au().clearOutline,AL=Kf().dfltConfig,Rg=cL(),na=bL(),nn=hg(),af=_o(),t$=Pa().AX_NAME_PATTERN,tb=0,_L=5;function n$(e,r,t,n){var a;if(e=Rr.getGraphDiv(e),nb.init(e),Rr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,n=i.config,a=i.frames}var o=nb.triggerHandler(e,"plotly_beforeplot",[r,t,n]);if(o===!1)return Promise.reject();!r&&!t&&!Rr.isPlotDiv(e)&&Rr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(a)return Wt.addFrames(e,a)}kL(e,n),t||(t={}),Ng.select(e).classed("js-plotly-plot",!0),rb.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(na.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=na.cleanLayout(t)),ft.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(k$(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),rb.initGradients(e),rb.initPatterns(e),s&&ai.saveShowSpikeInitial(e);var v=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;v&&ft.doCalcdata(e);for(var h=0;h=e.data.length||a<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(a,n+1)>-1||a>=0&&r.indexOf(-e.data.length+a)>-1||a<0&&r.indexOf(e.data.length+a)>-1)throw new Error("each index in "+t+" must be unique.")}}function SL(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),Ig(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Ig(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function s$(e,r,t){var n,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),n=0;n=0&&f=0&&f0&&typeof D.parts[H]!="string";)H--;var W=D.parts[H],B=D.parts[H-1]+"."+W,X=D.parts.slice(0,H).join("."),V=_n(e.layout,X).get(),re=_n(n,X).get(),te=D.get();if(z!==void 0){b[M]=z,C[M]=W==="reverse"?z:iu(te);var K=Yg.getLayoutValObject(n,D.parts);if(K&&K.impliedEdits&&z!==null)for(var Q in K.impliedEdits)x(Rr.relativeAttr(M,Q),K.impliedEdits[Q]);if(["width","height"].indexOf(M)!==-1)if(z){x("autosize",null);var fe=M==="height"?"width":"height";x(fe,n[fe])}else n[M]=e._initialAutoSize[M];else if(M==="autosize")x("width",z?null:n.width),x("height",z?null:n.height);else if(B.match(NL))k(B),_n(n,X+"._inputRange").set(null);else if(B.match(FL)){k(B),_n(n,X+"._inputRange").set(null);var he=_n(n,X).get();he._inputDomain&&(he._input.domain=he._inputDomain.slice())}else B.match(v$)&&_n(n,X+"._inputDomain").set(null);if(W==="type"){A=V;var De=re.type==="linear"&&z==="log",Ne=re.type==="log"&&z==="linear";if(De||Ne){if(!A||!A.range)x(X+".autorange",!0);else if(re.autorange)De&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var Fe=A.range[0],Je=A.range[1];De?(Fe<=0&&Je<=0&&x(X+".autorange",!0),Fe<=0?Fe=Je/1e6:Je<=0&&(Je=Fe/1e6),x(X+".range[0]",Math.log(Fe)/Math.LN10),x(X+".range[1]",Math.log(Je)/Math.LN10)):(x(X+".range[0]",Math.pow(10,Fe)),x(X+".range[1]",Math.pow(10,Je)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[D.parts[0]]&&D.parts[1]==="radialaxis"&&delete n[D.parts[0]]._subplot.viewInitial["radialaxis.range"],Po.getComponentMethod("annotations","convertCoords")(e,re,z,x),Po.getComponentMethod("images","convertCoords")(e,re,z,x)}else x(X+".autorange",!0),x(X+".range",null);_n(n,X+"._inputRange").set(null)}else if(W.match(t$)){var Le=_n(n,M).get(),rr=(z||{}).type;(!rr||rr==="-")&&(rr="linear"),Po.getComponentMethod("annotations","convertCoords")(e,Le,rr,x),Po.getComponentMethod("images","convertCoords")(e,Le,rr,x)}var se=Rg.containerArrayMatch(M);if(se){f=se.array,v=se.index;var me=se.property,we=K||{editType:"calc"};v!==""&&me===""&&(Rg.isAddVal(z)?C[M]=null:Rg.isRemoveVal(z)?C[M]=(_n(t,f).get()||[])[v]:Rr.warn("unrecognized full object value",r)),af.update(y,we),u[f]||(u[f]={});var pe=u[f][v];pe||(pe=u[f][v]={}),pe[me]=z,delete r[M]}else W==="reverse"?(V.range?V.range.reverse():(x(X+".autorange",!0),V.range=[1,0]),re.autorange?y.calc=!0:y.plot=!0):(M==="dragmode"&&(z===!1&&te!==!1||z!==!1&&te===!1)||n._has("scatter-like")&&n._has("regl")&&M==="dragmode"&&(z==="lasso"||z==="select")&&!(te==="lasso"||te==="select")?y.plot=!0:K?af.update(y,K):y.calc=!0,D.set(z))}}for(f in u){var U=Rg.applyContainerArrayChanges(e,i(t,f),u[f],y,i);U||(y.plot=!0)}for(var ee in _){A=ai.getFromId(e,ee);var $=A&&A._constraintGroup;if($){y.calc=!0;for(var Se in $)_[Se]||(ai.getFromId(e,Se)._constraintShrinkable=!0)}}(HL(e)||r.height||r.width)&&(y.plot=!0);var Oe=n.shapes;for(v=0;v1;)if(n.pop(),t=_n(r,n.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function p$(e,r){for(var t=0;t=a.length?a[0]:a[u]:a}function l(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var v=0;return function(){if(u&&++v===f)return u()}}return new Promise(function(u,f){function v(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var W=n._frameQueue.pop();W.onInterrupt&&W.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(W){if(W.length!==0){for(var B=0;Bn._timeToNext&&m()};W()}var y=0;function b(W){return Array.isArray(a)?y>=a.length?W.transitionOpts=a[y]:W.transitionOpts=a[0]:W.transitionOpts=a,y++,W}var C,x,_=[],A=r==null,k=Array.isArray(r),M=!A&&!k&&Rr.isPlainObject(r);if(M)_.push({type:"object",data:b(Rr.extendFlat({},r))});else if(A||["string","number"].indexOf(typeof r)!==-1)for(C=0;C0&&F<_.length-1){var H=[];for(C=0;C<_.length;C++)x=_[C],(_[C].type!=="byname"||C>F)&&H.push(x);_=H}}_.length>0?h(_):(e.emit("plotly_animated"),u())})}function w$(e,r,t){if(e=Rr.getGraphDiv(e),r==null)return Promise.resolve();if(!Rr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,a,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=l.length+r.length*2,f=[],v={};for(n=r.length-1;n>=0;n--)if(Rr.isPlainObject(r[n])){var h=r[n].name,d=(s[h]||v[h]||{}).name,m=r[n].name,p=s[d]||v[d];d&&m&&typeof m=="number"&&p&&tb<_L&&(tb++,Rr.warn('addFrames: overwriting frame "'+(s[d]||v[d]).name+'" with a frame whose name of type "number" also equates to "'+d+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),tb===_L&&Rr.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),v[h]={name:h},f.push({frame:ft.supplyFrameDefaults(r[n]),index:t&&t[n]!==void 0&&t[n]!==null?t[n]:u+n})}f.sort(function(M,D){return M.index>D.index?-1:M.index=0;n--){if(a=f[n].frame,typeof a.name=="number"&&Rr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;s[a.name="frame "+e._transitionData._counter++];);if(s[a.name]){for(i=0;i=0;t--)n=r[t],i.push({type:"delete",index:n}),o.unshift({type:"insert",index:n,value:a[n]});var l=ft.modifyFrames,s=ft.modifyFrames,u=[e,o],f=[e,i];return hi&&hi.add(e,l,u,s,f),ft.modifyFrames(e,i)}function A$(e){e=Rr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return ft.cleanPlot([],{},t,r),ft.purge(e),nb.purge(e),r._container&&r._container.remove(),delete e._context,e}function T$(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Rr.equalDomRects(t,r._lastBBox)){var n=r._invTransform=Rr.inverseTransformMatrix(Rr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),r._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),r._lastBBox=t}}function k$(e){var r=Ng.select(e),t=e._fullLayout;if(t._calcInverseTransform=T$,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var n={};Ng.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),t._uid=Rr.randstr(n)}t._paperdiv.selectAll(".main-svg").attr(e$.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var a=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=a.append("g").classed("imagelayer",!0),t._shapeLowerLayer=a.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Wt.animate=x$;Wt.addFrames=w$;Wt.deleteFrames=M$;Wt.addTraces=EL;Wt.deleteTraces=PL;Wt.extendTraces=qL;Wt.moveTraces=ab;Wt.prependTraces=DL;Wt.newPlot=l$;Wt._doPlot=n$;Wt.purge=A$;Wt.react=y$;Wt.redraw=o$;Wt.relayout=uh;Wt.restyle=Hg;Wt.setPlotConfig=a$;Wt.update=Og;Wt._guiRelayout=ob(uh);Wt._guiRestyle=ob(Hg);Wt._guiUpdate=ob(Og);Wt._storeDirectGUIEdit=c$});var Sc=ne(cs=>{"use strict";var S$=dt();cs.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};cs.getRedrawFunc=function(e){return function(){S$.getComponentMethod("colorbar","draw")(e)}};cs.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};cs.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var BL=window.URL||window.webkitURL;cs.createObjectURL=function(e){return BL.createObjectURL(e)};cs.revokeObjectURL=function(e){return BL.revokeObjectURL(e)};cs.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=C$(window.atob(e));return new window.Blob([t],{type:"image/"+r})};cs.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function C$(e){for(var r=e.length,t=new ArrayBuffer(r),n=new Uint8Array(t),a=0;a{"use strict";var ub=kt(),dce=gr(),L$=fn(),q$=Pt(),pce=lc(),sb=/"/g,ch="TOBESTRIPPED",D$=new RegExp('("'+ch+")|("+ch+'")',"g");function E$(e){var r=ub.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(n){return n==="<"?"<":n==="&rt;"?">":n.indexOf("<")!==-1||n.indexOf(">")!==-1?"":r.html(n).text()});return r.remove(),t}function P$(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}OL.exports=function(r,t,n){var a=r._fullLayout,i=a._paper,o=a._toppaper,l=a.width,s=a.height,u;i.insert("rect",":first-child").call(L$.setRect,0,0,l,s).call(q$.fill,a.paper_bgcolor);var f=a._basePlotModules||[];for(u=0;u{"use strict";var R$=gr(),z$=Fd().EventEmitter,vh=Sc();function N$(e){var r=e.emitter||new z$,t=new Promise(function(n,a){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,v=e.height||150,h=u*f,d=u*v,m=s.getContext("2d",{willReadFrequently:!0}),p=new i,y,b;l==="svg"||R$.isSafari()?b=vh.encodeSVG(o):(y=vh.createBlob(o,"svg"),b=vh.createObjectURL(y)),s.width=h,s.height=d,p.onload=function(){var C;switch(y=null,vh.revokeObjectURL(b),l!=="svg"&&m.drawImage(p,0,0,h,d),l){case"jpeg":C=s.toDataURL("image/jpeg");break;case"png":C=s.toDataURL("image/png");break;case"webp":C=s.toDataURL("image/webp");break;case"svg":C=b;break;default:var x="Image format is not jpeg, png, svg or webp.";if(a(new Error(x)),!e.promise)return r.emit("error",x)}n(C),e.promise||r.emit("success",C)},p.onerror=function(C){if(y=null,vh.revokeObjectURL(b),a(C),!e.promise)return r.emit("error",C)},p.src=b});return e.promise?t:r}UL.exports=N$});var cb=ne((yce,VL)=>{"use strict";var YL=Ot(),GL=lb(),F$=fa(),vs=gr(),hh=Sc(),I$=Vg(),H$=Wg(),B$=Qh().version,fb={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function O$(e,r){r=r||{};var t,n,a,i;vs.isPlainObject(e)?(t=e.data||[],n=e.layout||{},a=e.config||{},i={}):(e=vs.getGraphDiv(e),t=vs.extendDeep([],e.data),n=vs.extendDeep({},e.layout),a=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||vs.validate(r[k],fb[k])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+vs.join2(fb.format.values,", "," or ")+".");var l={};function s(k,M){return vs.coerce(r,l,fb,k,M)}var u=s("format"),f=s("width"),v=s("height"),h=s("scale"),d=s("setBackground"),m=s("imageDataOnly"),p=document.createElement("div");p.style.position="absolute",p.style.left="-5000px",document.body.appendChild(p);var y=vs.extendFlat({},n);f?y.width=f:r.width===null&&YL(i.width)&&(y.width=i.width),v?y.height=v:r.height===null&&YL(i.height)&&(y.height=i.height);var b=vs.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),C=hh.getRedrawFunc(p);function x(){return new Promise(function(k){setTimeout(k,hh.getDelay(p._fullLayout))})}function _(){return new Promise(function(k,M){var D=I$(p,u,h),z=p._fullLayout.width,F=p._fullLayout.height;function H(){GL.purge(p),document.body.removeChild(p)}if(u==="full-json"){var W=F$.graphJson(p,!1,"keepdata","object",!0,!0);return W.version=B$,W=JSON.stringify(W),H(),k(m?W:hh.encodeJSON(W))}if(H(),u==="svg")return k(m?D:hh.encodeSVG(D));var B=document.createElement("canvas");B.id=vs.randstr(),H$({format:u,width:z,height:F,scale:h,canvas:B,svg:D,promise:!0}).then(k).catch(M)})}function A(k){return m?k.replace(hh.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){GL.newPlot(p,t,y,b).then(C).then(x).then(_).then(function(D){k(A(D))}).catch(function(D){M(D)})})}VL.exports=O$});var XL=ne((bce,ZL)=>{"use strict";var Ro=gr(),U$=fa(),Y$=z0(),G$=Kf().dfltConfig,wl=Ro.isPlainObject,Lc=Array.isArray,vb=Ro.isArrayOrTypedArray;ZL.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var n=Y$.get(),a=[],i={_context:Ro.extendFlat({},G$)},o,l;Lc(r)?(i.data=Ro.extendDeep([],r),o=r):(i.data=[],o=[],a.push(Ma("array","data"))),wl(t)?(i.layout=Ro.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&a.push(Ma("object","layout"))),U$.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;fv.length&&n.push(Ma("unused",a,u.concat(v.length)));var b=v.length,C=Array.isArray(y);C&&(b=Math.min(b,y.length));var x,_,A,k,M;if(h.dimensions===2)for(_=0;_v[_].length&&n.push(Ma("unused",a,u.concat(_,v[_].length)));var D=v[_].length;for(x=0;x<(C?Math.min(D,y[_].length):D);x++)A=C?y[_][x]:y,k=f[_][x],M=v[_][x],Ro.validate(k,A)?M!==k&&M!==+k&&n.push(Ma("dynamic",a,u.concat(_,x),k,M)):n.push(Ma("value",a,u.concat(_,x),k))}else n.push(Ma("array",a,u.concat(_),f[_]));else for(_=0;_{"use strict";var $$=gr(),Xg=Sc();function K$(e,r,t){var n=document.createElement("a"),a="download"in n,i=new Promise(function(o,l){var s,u;if(a)return s=Xg.createBlob(e,t),u=Xg.createObjectURL(s),n.href=u,n.download=r,document.body.appendChild(n),n.click(),document.body.removeChild(n),Xg.revokeObjectURL(u),s=null,o(r);if($$.isSafari()){var f=t==="svg"?",":";base64,";return Xg.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}jL.exports=K$});var hb=ne((wce,KL)=>{"use strict";var $L=gr(),Q$=cb(),eK=JL(),xce=Sc();function rK(e,r){var t;return $L.isPlainObject(e)||(t=$L.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(n,a){t&&t._snapshotInProgress&&a(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=Q$(e,r),o=r.filename||e.fn||"newplot";o+="."+r.format.replace("-","."),i.then(function(l){return t&&(t._snapshotInProgress=!1),eK(l,o,r.format)}).then(function(l){n(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),a(l)})})}KL.exports=rK});var nq=ne(db=>{"use strict";var Fi=gr(),Ii=Fi.isPlainObject,QL=z0(),eq=fa(),tK=bo(),rq=bn(),tq=Kf().dfltConfig;db.makeTemplate=function(e){e=Fi.isPlainObject(e)?e:Fi.getGraphDiv(e),e=Fi.extendDeep({_context:tq},{data:e.data,layout:e.layout}),eq.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var n={data:{},layout:{}};r.forEach(function(d){var m={};dh(d,m,aK.bind(null,d));var p=Fi.coerce(d,{},tK,"type"),y=n.data[p];y||(y=n.data[p]=[]),y.push(m)}),dh(t,n.layout,nK.bind(null,t)),delete n.layout.template;var a=t.template;if(Ii(a)){var i=a.layout,o,l,s,u,f,v;Ii(i)&&jg(i,n.layout);var h=a.data;if(Ii(h)){for(l in n.data)if(s=h[l],Array.isArray(s)){for(f=n.data[l],v=f.length,u=s.length,o=0;ob?o.push({code:"unused",traceType:d,templateCount:y,dataCount:b}):b>y&&o.push({code:"reused",traceType:d,templateCount:y,dataCount:b})}}function C(x,_){for(var A in x)if(A.charAt(0)!=="_"){var k=x[A],M=zo(x,A,_);Ii(k)?(Array.isArray(x)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:M,templateitemname:k.templateitemname}),C(k,M)):Array.isArray(k)&&iK(k)&&C(k,M)}}if(C({data:s,layout:l},""),o.length)return o.map(oK)};function iK(e){for(var r=0;r{"use strict";var va=lb();Ln._doPlot=va._doPlot;Ln.newPlot=va.newPlot;Ln.restyle=va.restyle;Ln.relayout=va.relayout;Ln.redraw=va.redraw;Ln.update=va.update;Ln._guiRestyle=va._guiRestyle;Ln._guiRelayout=va._guiRelayout;Ln._guiUpdate=va._guiUpdate;Ln._storeDirectGUIEdit=va._storeDirectGUIEdit;Ln.react=va.react;Ln.extendTraces=va.extendTraces;Ln.prependTraces=va.prependTraces;Ln.addTraces=va.addTraces;Ln.deleteTraces=va.deleteTraces;Ln.moveTraces=va.moveTraces;Ln.purge=va.purge;Ln.addFrames=va.addFrames;Ln.deleteFrames=va.deleteFrames;Ln.animate=va.animate;Ln.setPlotConfig=va.setPlotConfig;var lK=o1().getGraphDiv,sK=og().eraseActiveShape;Ln.deleteActiveShape=function(e){return sK(lK(e))};Ln.toImage=cb();Ln.validate=XL();Ln.downloadImage=hb();var aq=nq();Ln.makeTemplate=aq.makeTemplate;Ln.validateTemplate=aq.validateTemplate});var lq=ne((Tce,oq)=>{"use strict";var pb=gr(),uK=dt();oq.exports=function(r,t,n,a){var i=a("x"),o=a("y"),l,s=uK.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],n),i){var u=pb.minRowLength(i);o?l=Math.min(u,pb.minRowLength(o)):(l=u,a("y0"),a("dy"))}else{if(!o)return 0;l=pb.minRowLength(o),a("x0"),a("dx")}return t._length=l,l}});var cq=ne((kce,fq)=>{"use strict";var sq=gr().dateTick0,fK=Rn(),cK=fK.ONEWEEK;function uq(e,r){return e%cK===0?sq(r,1):sq(r,0)}fq.exports=function(r,t,n,a,i){if(i||(i={x:!0,y:!0}),i.x){var o=a("xperiod");o&&(a("xperiod0",uq(o,t.xcalendar)),a("xperiodalignment"))}if(i.y){var l=a("yperiod");l&&(a("yperiod0",uq(l,t.ycalendar)),a("yperiodalignment"))}}});var dq=ne((Sce,hq)=>{"use strict";var vq=["orientation","groupnorm","stackgaps"];hq.exports=function(r,t,n,a){var i=n._scatterStackOpts,o=a("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var u=s[o],f=!1;u?u.traces.push(t):(u=s[o]={traceIndices:[],traces:[t]},f=!0);for(var v={orientation:t.x&&!t.y?"h":"v"},h=0;h{"use strict";var pq=Pt(),gq=es().hasColorscale,mq=B0(),vK=Qa();yq.exports=function(r,t,n,a,i,o){var l=vK.isBubble(r),s=(r.line||{}).color,u;if(o=o||{},s&&(n=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",n),gq(r,"marker")&&mq(r,t,a,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:l?u=pq.background:u=pq.defaultLine,i("marker.line.color",u),gq(r,"marker.line")&&mq(r,t,a,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0)),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var mb=ne((Lce,bq)=>{"use strict";var hK=gr().isArrayOrTypedArray,dK=es().hasColorscale,pK=B0();bq.exports=function(r,t,n,a,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",n),dK(r,"line"))pK(r,t,a,i,{prefix:"line.",cLetter:"c"});else{var s=(hK(l)?!1:l)||n;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var xq=ne((qce,_q)=>{"use strict";_q.exports=function(r,t,n){var a=n("line.shape");a==="spline"&&n("line.smoothing")}});var yb=ne((Dce,wq)=>{"use strict";var gK=gr();wq.exports=function(e,r,t,n,a){a=a||{},n("textposition"),gK.coerceFont(n,"textfont",a.font||t.font,a),a.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var bb=ne((Ece,Aq)=>{"use strict";var $g=Pt(),Mq=gr().isArrayOrTypedArray;function mK(e){for(var r=$g.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var Tq=gr(),yK=dt(),bK=kc(),_K=Ag(),vv=Qa(),xK=lq(),wK=cq(),MK=dq(),AK=gb(),TK=mb(),kq=xq(),kK=yb(),SK=bb(),CK=gr().coercePattern;Sq.exports=function(r,t,n,a){function i(d,m){return Tq.coerce(r,t,bK,d,m)}var o=xK(r,t,a,i);if(o||(t.visible=!1),!!t.visible){wK(r,t,a,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=MK(r,t,a,i);a.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o<_K.PTS_LINESONLY?"lines+markers":"lines";i("text"),i("hovertext"),i("mode",s),vv.hasMarkers(t)&&AK(r,t,n,a,i,{gradient:!0}),vv.hasLines(t)&&(TK(r,t,n,a,i,{backoff:!0}),kq(r,t,i),i("connectgaps"),i("line.simplify")),vv.hasText(t)&&(i("texttemplate"),kK(r,t,a,i));var u=[];(vv.hasMarkers(t)||vv.hasText(t))&&(i("cliponaxis"),i("marker.maxdisplayed"),u.push("points")),i("fill",l?l.fillDflt:"none"),t.fill!=="none"&&(SK(r,t,n,i,{moduleHasFillgradient:!0}),vv.hasLines(t)||kq(r,t,i),CK(i,"fillpattern",t.fillcolor,!1));var f=(t.line||{}).color,v=(t.marker||{}).color;(t.fill==="tonext"||t.fill==="toself")&&u.push("fills"),i("hoveron",u.join("+")||"points"),t.hoveron!=="fills"&&i("hovertemplate");var h=yK.getComponentMethod("errorbars","supplyDefaults");h(r,t,f||v||n,{axis:"y"}),h(r,t,f||v||n,{axis:"x",inherit:"y"}),Tq.coerceSelectionMarkerOpacity(t,i)}}});var qq=ne((Rce,Lq)=>{"use strict";var LK=B1().getAxisGroup;Lq.exports=function(r,t,n,a,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=LK(n,l)+o,u=n._alignmentOpts||{},f=a("alignmentgroup"),v=u[s];v||(v=u[s]={});var h=v[f];h?h.traces.push(t):h=v[f]={traces:[t],alignmentIndex:Object.keys(v).length,offsetGroups:{}};var d=a("offsetgroup")||"",m=h.offsetGroups,p=m[d];t._offsetIndex=0,(i!=="group"||d)&&(p||(p=m[d]={offsetIndex:Object.keys(m).length}),t._offsetIndex=p.offsetIndex)}});var Eq=ne((zce,Dq)=>{"use strict";var qK=gr(),DK=qq(),EK=kc();Dq.exports=function(r,t){var n,a,i,o=t.scattermode;function l(h){return qK.coerce(a._input,a,EK,h)}if(t.scattermode==="group")for(i=0;i=0;f--){var v=r[f];if(v.type==="scatter"&&v.xaxis===s.xaxis&&v.yaxis===s.yaxis){v.opacity=void 0;break}}}}}});var Rq=ne((Nce,Pq)=>{"use strict";var PK=gr(),RK=Ud();Pq.exports=function(e,r){function t(a,i){return PK.coerce(e,r,RK,a,i)}var n=r.barmode==="group";r.scattermode==="group"&&t("scattergap",n?r.bargap:.2)}});var Fq=ne((Fce,Nq)=>{"use strict";var zK=Ot(),zq=gr(),NK=zq.dateTime2ms,Kg=zq.incrementMonth,FK=Rn(),IK=FK.ONEAVGMONTH;Nq.exports=function(r,t,n,a){if(t.type!=="date")return{vals:a};var i=r[n+"periodalignment"];if(!i)return{vals:a};var o=r[n+"period"],l;if(zK(o)){if(o=+o,o<=0)return{vals:a}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:a}}for(var u=t.calendar,f=i==="start",v=i==="end",h=r[n+"period0"],d=NK(h,u)||0,m=[],p=[],y=[],b=a.length,C=0;Cx;)k=Kg(k,-l,u);for(;k<=x;)k=Kg(k,l,u);A=Kg(k,-l,u)}else{for(_=Math.round((x-d)/o),k=d+_*o;k>x;)k-=o;for(;k<=x;)k+=o;A=k-o}m[C]=f?A:v?k:(A+k)/2,p[C]=A,y[C]=k}return{vals:m,starts:p,ends:y}}});var wb=ne((Ice,Hq)=>{"use strict";var _b=es().hasColorscale,xb=Qd(),Iq=Qa();Hq.exports=function(r,t){Iq.hasLines(t)&&_b(t,"line")&&xb(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),Iq.hasMarkers(t)&&(_b(t,"marker")&&xb(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),_b(t,"marker.line")&&xb(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var ph=ne((Hce,Bq)=>{"use strict";var Yn=gr();Bq.exports=function(r,t){for(var n=0;n{"use strict";var Oq=gr();Uq.exports=function(r,t){Oq.isArrayOrTypedArray(t.selectedpoints)&&Oq.tagSelected(r,t)}});var em=ne((Oce,jq)=>{"use strict";var Yq=Ot(),Ab=gr(),gh=Dn(),Gq=Fq(),Mb=Rn().BADNUM,Tb=Qa(),HK=wb(),BK=ph(),OK=Qg();function UK(e,r){var t=e._fullLayout,n=r._xA=gh.getFromId(e,r.xaxis||"x","x"),a=r._yA=gh.getFromId(e,r.yaxis||"y","y"),i=n.makeCalcdata(r,"x"),o=a.makeCalcdata(r,"y"),l=Gq(r,n,"x",i),s=Gq(r,a,"y",o),u=l.vals,f=s.vals,v=r._length,h=new Array(v),d=r.ids,m=kb(r,t,n,a),p=!1,y,b,C,x,_,A;Zq(t,r);var k="x",M="y",D;if(m)Ab.pushUnique(m.traceIndices,r.index),y=m.orientation==="v",y?(M="s",D="x"):(k="s",D="y"),_=m.stackgaps==="interpolate";else{var z=Wq(r,v);Vq(e,r,n,a,u,f,z)}var F=!!r.xperiodalignment,H=!!r.yperiodalignment;for(b=0;bb&&h[x].gap;)x--;for(A=h[x].s,C=h.length-1;C>x;C--)h[C].s=A;for(;b{"use strict";Jq.exports=rm;var YK=gr().distinctVals;function rm(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,n=r.posAxis._id.charAt(0),a=[],i=0;i{"use strict";var No=Ot(),of=gr().isArrayOrTypedArray,hv=Rn().BADNUM,GK=dt(),mh=Dn(),VK=B1().getAxisGroup,tm=$q();function WK(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;us+o||!No(l))}for(var f=0;f{"use strict";var nD=em(),aD=tD().setGroupPositions;function aQ(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;uz[f]&&f{"use strict";var oQ=fn(),fD=Rn(),yh=fD.BADNUM,cD=fD.LOG_CLIP,lD=cD+.5,sD=cD-.5,nm=gr(),lQ=nm.segmentsIntersect,uD=nm.constrain,Eb=Ag();vD.exports=function(r,t){var n=t.trace||{},a=t.xaxis,i=t.yaxis,o=a.type==="log",l=i.type==="log",s=a._length,u=i._length,f=t.backoff,v=n.marker,h=t.connectGaps,d=t.baseTolerance,m=t.shape,p=m==="linear",y=n.fill&&n.fill!=="none",b=[],C=Eb.minTolerance,x=r.length,_=new Array(x),A=0,k,M,D,z,F,H,W,B,X,V,re,te,K,Q,fe,he;function De(ar){var be=r[ar];if(!be)return!1;var ke=t.linearized?a.l2p(be.x):a.c2p(be.x),$e=t.linearized?i.l2p(be.y):i.c2p(be.y);if(ke===yh){if(o&&(ke=a.c2p(be.x,!0)),ke===yh)return!1;l&&$e===yh&&(ke*=Math.abs(a._m*u*(a._m>0?lD:sD)/(i._m*s*(i._m>0?lD:sD)))),ke*=1e3}if($e===yh){if(l&&($e=i.c2p(be.y,!0)),$e===yh)return!1;$e*=1e3}return[ke,$e]}function Ne(ar,be,ke,$e){var Ze=ke-ar,qr=$e-be,Hr=.5-ar,Pr=.5-be,lt=Ze*Ze+qr*qr,xt=Ze*Hr+qr*Pr;if(xt>0&&xt1||Math.abs(Hr.y-ke[0][1])>1)&&(Hr=[Hr.x,Hr.y],$e&&rr(Hr,ar)we||ar[1]U)return[uD(ar[0],me,we),uD(ar[1],pe,U)]}function ur(ar,be){if(ar[0]===be[0]&&(ar[0]===me||ar[0]===we)||ar[1]===be[1]&&(ar[1]===pe||ar[1]===U))return!0}function cr(ar,be){var ke=[],$e=tr(ar),Ze=tr(be);return $e&&Ze&&ur($e,Ze)||($e&&ke.push($e),Ze&&ke.push(Ze)),ke}function Qe(ar,be,ke){return function($e,Ze){var qr=tr($e),Hr=tr(Ze),Pr=[];if(qr&&Hr&&ur(qr,Hr))return Pr;qr&&Pr.push(qr),Hr&&Pr.push(Hr);var lt=2*nm.constrain(($e[ar]+Ze[ar])/2,be,ke)-((qr||$e)[ar]+(Hr||Ze)[ar]);if(lt){var xt;qr&&Hr?xt=lt>0==qr[ar]>Hr[ar]?qr:Hr:xt=qr||Hr,xt[ar]+=lt}return Pr}}var pr;m==="linear"||m==="spline"?pr=Ue:m==="hv"||m==="vh"?pr=cr:m==="hvh"?pr=Qe(0,me,we):m==="vhv"&&(pr=Qe(1,pe,U));function dr(ar,be){var ke=be[0]-ar[0],$e=(be[1]-ar[1])/ke,Ze=(ar[1]*be[0]-be[1]*ar[0])/ke;return Ze>0?[$e>0?me:we,U]:[$e>0?we:me,pe]}function Te(ar){var be=ar[0],ke=ar[1],$e=be===_[A-1][0],Ze=ke===_[A-1][1];if(!($e&&Ze))if(A>1){var qr=be===_[A-2][0],Hr=ke===_[A-2][1];$e&&(be===me||be===we)&&qr?Hr?A--:_[A-1]=ar:Ze&&(ke===pe||ke===U)&&Hr?qr?A--:_[A-1]=ar:_[A++]=ar}else _[A++]=ar}function Ye(ar){_[A-1][0]!==ar[0]&&_[A-1][1]!==ar[1]&&Te([Oe,Ie]),Te(ar),ir=null,Oe=Ie=0}var Ar=nm.isArrayOrTypedArray(v);function Nr(ar){if(ar&&f&&(ar.i=k,ar.d=r,ar.trace=n,ar.marker=Ar?v[ar.i]:v,ar.backoff=f),Fe=ar[0]/s,Je=ar[1]/u,$=ar[0]we?we:0,Se=ar[1]U?U:0,$||Se){if(!A)_[A++]=[$||ar[0],Se||ar[1]];else if(ir){var be=pr(ir,ar);be.length>1&&(Ye(be[0]),_[A++]=be[1])}else or=pr(_[A-1],ar)[0],_[A++]=or;var ke=_[A-1];$&&Se&&(ke[0]!==$||ke[1]!==Se)?(ir&&(Oe!==$&&Ie!==Se?Te(Oe&&Ie?dr(ir,ar):[Oe||$,Ie||Se]):Oe&&Ie&&Te([Oe,Ie])),Te([$,Se])):Oe-$&&Ie-Se&&Te([$||Oe,Se||Ie]),ir=ar,Oe=$,Ie=Se}else ir&&Ye(pr(ir,ar)[0]),_[A++]=ar}for(k=0;kLe(H,Er))break;D=H,K=X[0]*B[0]+X[1]*B[1],K>re?(re=K,z=H,W=!1):K=r.length||!H)break;Nr(H),M=H}}ir&&Te([Oe||ir[0],Ie||ir[1]]),b.push(_.slice(0,A))}var Ae=m.slice(m.length-1);if(f&&Ae!=="h"&&Ae!=="v"){for(var Xe=!1,hr=-1,wr=[],mr=0;mr{"use strict";var dD={tonextx:1,tonexty:1,tonext:1};pD.exports=function(r,t,n){var a,i,o,l,s,u={},f=!1,v=-1,h=0,d=-1;for(i=0;i=0?s=d:(s=d=h,h++),s{"use strict";var Ml=kt(),sQ=dt(),bh=gr(),pv=bh.ensureSingle,yD=bh.identity,Gn=fn(),gv=Qa(),uQ=hD(),fQ=gD(),am=yg().tester;bD.exports=function(r,t,n,a,i,o){var l,s,u=!i,f=!!i&&i.duration>0,v=fQ(r,t,n);if(l=a.selectAll("g.trace").data(v,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),cQ(r,l,t),f){o&&(s=o());var h=Ml.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});h.each(function(){a.selectAll("g.trace").each(function(d,m){mD(r,m,t,d,v,this,i)})})}else l.each(function(d,m){mD(r,m,t,d,v,this,i)});u&&l.exit().remove(),a.selectAll("path:not([d])").remove()};function cQ(e,r,t){r.each(function(n){var a=pv(Ml.select(this),"g","fills");Gn.setClipUrl(a,t.layerClipId,e);var i=n[0].trace,o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=a.selectAll("g").data(o,yD);l.enter().append("g"),l.exit().each(function(s){i[s]=null}).remove(),l.order().each(function(s){i[s]=pv(Ml.select(this),"path","js-fill")})})}function mD(e,r,t,n,a,i,o){var l=e._context.staticPlot,s;vQ(e,r,t,n,a);var u=!!o&&o.duration>0;function f(Qe){return u?Qe.transition():Qe}var v=t.xaxis,h=t.yaxis,d=n[0].trace,m=d.line,p=Ml.select(i),y=pv(p,"g","errorbars"),b=pv(p,"g","lines"),C=pv(p,"g","points"),x=pv(p,"g","text");if(sQ.getComponentMethod("errorbars","plot")(e,y,t,o),d.visible!==!0)return;f(p).style("opacity",d.opacity);var _,A,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var M,D;k==="y"?(M=1,D=h.c2p(0,!0)):k==="x"&&(M=0,D=v.c2p(0,!0)),n[0][t.isRangePlot?"nodeRangePlot3":"node3"]=p;var z="",F=[],H=d._prevtrace,W=null,B=null;H&&(z=H._prevRevpath||"",A=H._nextFill,F=H._ownPolygons,W=H._fillsegments,B=H._fillElement);var X,V,re="",te="",K,Q,fe,he,De,Ne,Fe=[];d._polygons=[];var Je=[],Le=[],rr=bh.noop;if(_=d._ownFill,gv.hasLines(d)||d.fill!=="none"){A&&A.datum(n),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(K=Gn.steps(m.shape),Q=Gn.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?K=Q=function(Qe){var pr=Qe[Qe.length-1];return Qe.length>1&&Qe[0][0]===pr[0]&&Qe[0][1]===pr[1]?Gn.smoothclosed(Qe.slice(1),m.smoothing):Gn.smoothopen(Qe,m.smoothing)}:K=Q=function(Qe){return"M"+Qe.join("L")},fe=function(Qe){return Q(Qe.reverse())},Le=uQ(n,{xaxis:v,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(m.width||1,3)/4,shape:m.shape,backoff:m.backoff,simplify:m.simplify,fill:d.fill}),Je=new Array(Le.length);var se=0;for(s=0;s=l[0]&&p.x<=l[1]&&p.y>=s[0]&&p.y<=s[1]}),h=Math.ceil(v.length/f),d=0;a.forEach(function(p,y){var b=p[0].trace;gv.hasMarkers(b)&&b.marker.maxdisplayed>0&&y{"use strict";xD.exports={container:"marker",min:"cmin",max:"cmax"}});var MD=ne((jce,wD)=>{"use strict";var im=Dn();wD.exports=function(r,t,n){var a={},i={_fullLayout:n},o=im.getFromTrace(i,t,"x"),l=im.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),a.xLabel=im.tickText(o,o.c2l(s),!0).text,a.yLabel=im.tickText(l,l.c2l(u),!0).text,a}});var _h=ne((Jce,AD)=>{"use strict";var Rb=kt(),mv=fn(),hQ=dt();function dQ(e){var r=Rb.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var n=Rb.select(this),a=t.trace||t[0].trace;zb(n,a,e)}),r.selectAll("g.text").each(function(t){var n=Rb.select(this),a=t.trace||t[0].trace;Nb(n,a,e)}),r.selectAll("g.trace path.js-line").call(mv.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(mv.fillGroupStyle,e,!1),hQ.getComponentMethod("errorbars","style")(r)}function zb(e,r,t){mv.pointStyle(e.selectAll("path.point"),r,t)}function Nb(e,r,t){mv.textPointStyle(e.selectAll("text"),r,t)}function pQ(e,r,t){var n=r[0].trace;n.selectedpoints?(mv.selectedPointStyle(t.selectAll("path.point"),n),mv.selectedTextStyle(t.selectAll("text"),n)):(zb(t,n,e),Nb(t,n,e))}AD.exports={style:dQ,stylePoints:zb,styleText:Nb,styleOnSelect:pQ}});var Fb=ne(($ce,TD)=>{"use strict";var yv=Pt(),gQ=Qa();TD.exports=function(r,t){var n,a;if(r.mode==="lines")return n=r.line.color,n&&yv.opacity(n)?n:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return a=i&&yv.opacity(i)?i:o&&yv.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",a?yv.opacity(a)<.3?yv.addOpacity(a,.3):a:(n=(r.line||{}).color,n&&yv.opacity(n)&&gQ.hasLines(r)&&r.line.width?n:r.fillcolor)}});var CD=ne((Kce,SD)=>{"use strict";var om=gr(),kD=ss(),mQ=dt(),yQ=Fb(),Ib=Pt(),bQ=om.fillText;SD.exports=function(r,t,n,a){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,u=l.c2p(t),f=s.c2p(n),v=[u,f],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,m=!!o.xperiodalignment,p=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var y=function(te){if(m){var K=l.c2p(te.xStart),Q=l.c2p(te.xEnd);return u>=Math.min(K,Q)&&u<=Math.max(K,Q)?0:1/0}var fe=Math.max(3,te.mrc||0),he=1-1/fe,De=Math.abs(l.c2p(te.x)-u);return De=Math.min(K,Q)&&f<=Math.max(K,Q)?0:1/0}var fe=Math.max(3,te.mrc||0),he=1-1/fe,De=Math.abs(s.c2p(te.y)-f);return DeFe!=U>=Fe&&(me=rr[Le-1][0],we=rr[Le][0],U-pe&&(se=me+(we-me)*(Fe-pe)/(U-pe),fe=Math.min(fe,se),he=Math.max(he,se)));return fe=Math.max(fe,0),he=Math.min(he,l._length),{x0:fe,x1:he,y0:Fe,y1:Fe}}if(h.indexOf("fills")!==-1&&o._fillElement){var X=W(o._fillElement)&&!W(o._fillExclusionElement);if(X){var V=B(o._polygons);V===null&&(V={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var re=Ib.defaultLine;return Ib.opacity(o.fillcolor)?re=o.fillcolor:Ib.opacity((o.line||{}).color)&&(re=o.line.color),om.extendFlat(r,{distance:r.maxHoverDistance,x0:V.x0,x1:V.x1,y0:V.y0,y1:V.y1,color:re,hovertemplate:!1}),delete r.index,o.text&&!om.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var DD=ne((Qce,qD)=>{"use strict";var LD=Qa();qD.exports=function(r,t){var n=r.cd,a=r.xaxis,i=r.yaxis,o=[],l=n[0].trace,s,u,f,v,h=!LD.hasMarkers(l)&&!LD.hasText(l);if(h)return[];if(t===!1)for(s=0;s{"use strict";ED.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var FD=ne((r0e,ND)=>{"use strict";var xh=dt().traceIs,Hb=l3();ND.exports=function(r,t,n,a){n("autotypenumbers",a.autotypenumbersDflt);var i=n("type",(a.splomStash||{}).type);i==="-"&&(_Q(t,a.data),t.type==="-"?t.type="linear":r.type=t.type)};function _Q(e,r){if(e.type==="-"){var t=e._id,n=t.charAt(0),a;t.indexOf("scene")!==-1&&(t=n);var i=xQ(r,t,n);if(i){if(i.type==="histogram"&&n==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=n+"calendar",l=i[o],s={noMultiCategory:!xh(i,"cartesian")||xh(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&n==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,zD(i,n)){var u=RD(i),f=[];for(a=0;a0&&(a["_"+t+"axes"]||{})[r])return a;if((a[t+"axis"]||t)===r){if(zD(a,t))return a;if((a[t]||[]).length||a[t+"0"])return a}}}function RD(e){return{v:"x",h:"y"}[e.orientation||"v"]}function zD(e,r){var t=RD(e),n=xh(e,"box-violin"),a=xh(e._fullInput||{},"candlestick");return n&&!a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var HD=ne((t0e,ID)=>{"use strict";var wQ=ji().isTypedArraySpec;function MQ(e,r){var t=r.dataAttr||e._id.charAt(0),n={},a,i,o;if(r.axData)a=r.axData;else for(a=[],i=0;i0||wQ(i),l;o&&(l="array");var s=n("categoryorder",l),u;s==="array"&&(u=n("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=MQ(t,a).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var UD=ne((n0e,OD)=>{"use strict";var BD=Jl().mix,AQ=cl(),TQ=gr();OD.exports=function(r,t,n,a){a=a||{};var i=a.dfltColor;function o(D,z){return TQ.coerce2(r,t,a.attributes,D,z)}var l=o("linecolor",i),s=o("linewidth"),u=n("showline",a.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=BD(i,a.bgColor,a.blend||AQ.lightFraction).toRgbString(),v=o("gridcolor",f),h=o("gridwidth"),d=o("griddash"),m=n("showgrid",a.showGrid||!!v||!!h||!!d);if(m||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),a.hasMinor){var p=BD(t.gridcolor,a.bgColor,67).toRgbString(),y=o("minor.gridcolor",p),b=o("minor.gridwidth",t.gridwidth||1),C=o("minor.griddash",t.griddash||"solid"),x=n("minor.showgrid",!!y||!!b||!!C);x||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!a.noZeroLine){var _=o("zerolinelayer"),A=o("zerolinecolor",i),k=o("zerolinewidth"),M=n("zeroline",a.showGrid||!!A||!!k);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var Ob=ne((a0e,XD)=>{"use strict";var YD=Ot(),kQ=dt(),wh=gr(),SQ=bn(),CQ=gl(),Bb=pl(),GD=D2(),VD=P2(),LQ=N2(),qQ=F2(),DQ=HD(),EQ=UD(),PQ=S3(),WD=dp(),lm=Pa().WEEKDAY_PATTERN,RQ=Pa().HOUR_PATTERN;XD.exports=function(r,t,n,a,i){var o=a.letter,l=a.font||{},s=a.splomStash||{},u=n("visible",!a.visibleDflt),f=t._template||{},v=t.type||f.type||"-",h;if(v==="date"){var d=kQ.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",a.calendar),a.noTicklabelmode||(h=n("ticklabelmode"))}!a.noTicklabelindex&&(v==="date"||v==="linear")&&n("ticklabelindex");var m="";(!a.noTicklabelposition||v==="multicategory")&&(m=wh.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||n("ticklabeloverflow",m.indexOf("inside")!==-1?"hide past domain":v==="category"||v==="multicategory"?"allow":"hide past div"),WD(t,i),PQ(r,t,n,a),DQ(r,t,n,a),a.noHover||(v!=="category"&&n("hoverformat"),a.noUnifiedhovertitle||n("unifiedhovertitle.text"));var p=n("color"),y=p!==Bb.color.dflt?p:l.color,b=s.label||i._dfltTitle[o];if(qQ(r,t,n,v,a),!u)return t;n("title.text",b),wh.coerceFont(n,"title.font",l,{overrideDflt:{size:wh.bigFont(l.size),color:y}}),GD(r,t,n,v);var C=a.hasMinor;if(C&&(SQ.newContainer(t,"minor"),GD(r,t,n,v,{isMinor:!0})),LQ(r,t,n,v,a),VD(r,t,n,a),C){var x=a.isMinor;a.isMinor=!0,VD(r,t,n,a),a.isMinor=x}EQ(r,t,n,{dfltColor:p,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:C,attributes:Bb}),C&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&n("mirror");var _=v==="multicategory";if(!a.noTickson&&(v==="category"||_)&&(t.ticks||t.showgrid)&&(_?(n("tickson","boundaries"),delete t.ticklabelposition):n("tickson")),_){var A=n("showdividers");A&&(n("dividercolor"),n("dividerwidth"))}if(v==="date")if(CQ(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:zQ}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=ZD(i[l]),s){o=lm;break}}var u=n("pattern",o);if(u===lm)for(l=0;l<2;l++)s=ZD(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case lm:if(!YD(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case RQ:if(!YD(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var FQ=Ot(),sm=gr();jD.exports=function(r,t,n,a){var i=a.counterAxes||[],o=a.overlayableAxes||[],l=a.letter,s=a.grid,u=a.overlayingDomain,f,v,h,d,m,p;s&&(v=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],v&&(h=s[l+"side"].split(" ")[0],d=s.domain[l][h==="right"||h==="top"?1:0])),v=v||[0,1],f=f||(FQ(r.position)?"free":i[0]||"free"),h=h||(l==="x"?"bottom":"left"),d=d||0,m=0,p=!1;var y=sm.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=sm.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(y==="free"){if(l==="y"){var C=n("autoshift");C&&(d=b==="left"?u[0]:u[1],p=t.automargin?t.automargin:!0,m=b==="left"?-3:3),n("shift",m)}n("position",d)}n("automargin",p);var x=!1;if(o.length&&(x=sm.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!x){var _=n("domain",v);_[0]>_[1]-1/4096&&(t.domain=v),sm.noneOrAll(r.domain,t.domain,v),t.tickmode==="sync"&&(t.tickmode="auto")}return n("layer"),t}});var aE=ne((o0e,nE)=>{"use strict";var qc=gr(),JD=Pt(),IQ=Vu().isUnifiedHover,HQ=e5(),$D=bn(),BQ=A0(),KD=pl(),OQ=FD(),QD=Ob(),UQ=B1(),eE=Ub(),Gb=ua(),hs=Gb.id2name,rE=Gb.name2id,YQ=Pa().AX_ID_PATTERN,tE=dt(),um=tE.traceIs,Yb=tE.getComponentMethod;function fm(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}nE.exports=function(r,t,n){var a=t.autotypenumbers,i={},o={},l={},s={},u={},f={},v={},h={},d={},m={},p,y;for(p=0;p{"use strict";var GQ=kt(),iE=dt(),cm=gr(),to=fn(),vm=Dn();oE.exports=function(r,t,n,a){var i=r._fullLayout;if(t.length===0){vm.redrawComponents(r);return}function o(y){var b=y.xaxis,C=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(to.setTranslate,0,0).call(to.setScale,1,1),y.plot.call(to.setTranslate,b._offset,C._offset).call(to.setScale,1,1);var x=y.plot.selectAll(".scatterlayer .trace");x.selectAll(".point").call(to.setPointGroupScale,1,1),x.selectAll(".textpoint").call(to.setTextPointsScale,1,1),x.call(to.hideOutsideRangePoints,y)}function l(y,b){var C=y.plotinfo,x=C.xaxis,_=C.yaxis,A=x._length,k=_._length,M=!!y.xr1,D=!!y.yr1,z=[];if(M){var F=cm.simpleMap(y.xr0,x.r2l),H=cm.simpleMap(y.xr1,x.r2l),W=F[1]-F[0],B=H[1]-H[0];z[0]=(F[0]*(1-b)+b*H[0]-F[0])/(F[1]-F[0])*A,z[2]=A*(1-b+b*B/W),x.range[0]=x.l2r(F[0]*(1-b)+b*H[0]),x.range[1]=x.l2r(F[1]*(1-b)+b*H[1])}else z[0]=0,z[2]=A;if(D){var X=cm.simpleMap(y.yr0,_.r2l),V=cm.simpleMap(y.yr1,_.r2l),re=X[1]-X[0],te=V[1]-V[0];z[1]=(X[1]*(1-b)+b*V[1]-X[1])/(X[0]-X[1])*k,z[3]=k*(1-b+b*te/re),_.range[0]=x.l2r(X[0]*(1-b)+b*V[0]),_.range[1]=_.l2r(X[1]*(1-b)+b*V[1])}else z[1]=0,z[3]=k;vm.drawOne(r,x,{skipTitle:!0}),vm.drawOne(r,_,{skipTitle:!0}),vm.redrawComponents(r,[x._id,_._id]);var K=M?A/z[2]:1,Q=D?k/z[3]:1,fe=M?z[0]:0,he=D?z[1]:0,De=M?z[0]/z[2]*A:0,Ne=D?z[1]/z[3]*k:0,Fe=x._offset-De,Je=_._offset-Ne;C.clipRect.call(to.setTranslate,fe,he).call(to.setScale,1/K,1/Q),C.plot.call(to.setTranslate,Fe,Je).call(to.setScale,K,Q),to.setPointGroupScale(C.zoomScalePts,1/K,1/Q),to.setTextPointsScale(C.zoomScaleTxt,1/K,1/Q)}var s;a&&(s=a());function u(){for(var y={},b=0;bn.duration?(u(),d=window.cancelAnimationFrame(p)):d=window.requestAnimationFrame(p)}return v=Date.now(),d=window.requestAnimationFrame(p),Promise.resolve()}});var Vb=ne(Ua=>{"use strict";var dm=kt(),sE=dt(),Dc=gr(),VQ=fa(),WQ=fn(),uE=y1().getModuleCalcData,lf=ua(),Al=Pa(),ZQ=lc(),$t=Dc.ensureSingle;function hm(e,r,t){return Dc.ensureSingle(e,r,t,function(n){n.datum(t)})}var Ec=Al.zindexSeparator;Ua.name="cartesian";Ua.attr=["xaxis","yaxis"];Ua.idRoot=["x","y"];Ua.idRegex=Al.idRegex;Ua.attrRegex=Al.attrRegex;Ua.attributes=PD();Ua.layoutAttributes=pl();Ua.supplyLayoutDefaults=aE();Ua.transitionAxes=lE();Ua.finalizeSubplots=function(e,r){var t=r._subplots,n=t.xaxis,a=t.yaxis,i=t.cartesian,o=i,l={},s={},u,f,v;for(u=0;u0){var d=h.id;if(d.indexOf(Ec)!==-1)continue;d+=Ec+(u+1),h=Dc.extendFlat({},h,{id:d,plot:a._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var m=[],p,y=0;y1&&(A+=Ec+_),x.push(l+A),o=0;o1,v=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=$t(n,"path","xlines-above"),r.ylines=$t(n,"path","ylines-above"),r.xaxislayer=$t(n,"g","xaxislayer-above"),r.yaxislayer=$t(n,"g","yaxislayer-above");else{if(!o){var h=$t(n,"g","layer-subplot");r.shapelayer=$t(h,"g","shapelayer"),r.imagelayer=$t(h,"g","imagelayer"),v&&f?(r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer):(r.minorGridlayer=$t(n,"g","minor-gridlayer"),r.gridlayer=$t(n,"g","gridlayer"),r.zerolinelayer=$t(n,"g","zerolinelayer"));var d=$t(n,"g","layer-between");r.shapelayerBetween=$t(d,"g","shapelayer"),r.imagelayerBetween=$t(d,"g","imagelayer"),$t(n,"path","xlines-below"),$t(n,"path","ylines-below"),r.overlinesBelow=$t(n,"g","overlines-below"),$t(n,"g","xaxislayer-below"),$t(n,"g","yaxislayer-below"),r.overaxesBelow=$t(n,"g","overaxes-below")}r.overplot=$t(n,"g","overplot"),r.plot=$t(r.overplot,"g",a),v&&f?r.zerolinelayerAbove=v.zerolinelayerAbove:r.zerolinelayerAbove=$t(n,"g","zerolinelayer-above"),o||(r.xlines=$t(n,"path","xlines-above"),r.ylines=$t(n,"path","ylines-above"),r.overlinesAbove=$t(n,"g","overlines-above"),$t(n,"g","xaxislayer-above"),$t(n,"g","yaxislayer-above"),r.overaxesAbove=$t(n,"g","overaxes-above"),r.xlines=n.select(".xlines-"+l),r.ylines=n.select(".ylines-"+s),r.xaxislayer=n.select(".xaxislayer-"+l),r.yaxislayer=n.select(".yaxislayer-"+s))}else{var m=v.plotgroup,p=a+"-x",y=a+"-y";r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer,r.zerolinelayerAbove=v.zerolinelayerAbove,$t(v.overlinesBelow,"path",p),$t(v.overlinesBelow,"path",y),$t(v.overaxesBelow,"g",p),$t(v.overaxesBelow,"g",y),r.plot=$t(v.overplot,"g",a),$t(v.overlinesAbove,"path",p),$t(v.overlinesAbove,"path",y),$t(v.overaxesAbove,"g",p),$t(v.overaxesAbove,"g",y),r.xlines=m.select(".overlines-"+l).select("."+p),r.ylines=m.select(".overlines-"+s).select("."+y),r.xaxislayer=m.select(".overaxes-"+l).select("."+p),r.yaxislayer=m.select(".overaxes-"+s).select("."+y)}o||(u||(hm(r.minorGridlayer,"g",r.xaxis._id),hm(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(lf.idSort),hm(r.gridlayer,"g",r.xaxis._id),hm(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(lf.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function vE(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=dm.select(this);f.remove(),hE(u,r),t[u]=!0});for(var n in r._plots)for(var a=r._plots[n],i=a.overlays||[],o=0;o{"use strict";var pm=Qa();dE.exports={hasLines:pm.hasLines,hasMarkers:pm.hasMarkers,hasText:pm.hasText,isBubble:pm.isBubble,attributes:kc(),layoutAttributes:Ud(),supplyDefaults:Cq(),crossTraceDefaults:Eq(),supplyLayoutDefaults:Rq(),calc:em().calc,crossTraceCalc:oD(),arraysToCalcdata:ph(),plot:_D(),colorbar:Pb(),formatLabels:MD(),style:_h().style,styleOnSelect:_h().styleOnSelect,hoverPoints:CD(),selectPoints:DD(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Vb(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var yE=ne((f0e,mE)=>{"use strict";var jQ=kt(),JQ=Pt(),gE=U5(),Wb=gr(),$Q=Wb.strScale,KQ=Wb.strRotate,QQ=Wb.strTranslate;mE.exports=function(r,t,n){var a=r.node(),i=gE[n.arrowhead||0],o=gE[n.startarrowhead||0],l=(n.arrowwidth||1)*(n.arrowsize||1),s=(n.arrowwidth||1)*(n.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,v=i.backoff*l+n.standoff,h=o.backoff*s+n.startstandoff,d,m,p,y;if(a.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},m={x:+r.attr("x2"),y:+r.attr("y2")};var b=d.x-m.x,C=d.y-m.y;if(p=Math.atan2(C,b),y=p+Math.PI,v&&h&&v+h>Math.sqrt(b*b+C*C)){X();return}if(v){if(v*v>b*b+C*C){X();return}var x=v*Math.cos(p),_=v*Math.sin(p);m.x+=x,m.y+=_,r.attr({x2:m.x,y2:m.y})}if(h){if(h*h>b*b+C*C){X();return}var A=h*Math.cos(p),k=h*Math.sin(p);d.x-=A,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(a.nodeName==="path"){var M=a.getTotalLength(),D="";if(M{"use strict";var bE=kt(),Zb=dt(),eee=fa(),uf=gr(),Xb=uf.strTranslate,Ah=Dn(),Pc=Pt(),ou=fn(),_E=ss(),jb=ci(),Jb=Ku(),Mh=To(),ree=bn().arrayEditor,tee=yE();ME.exports={draw:nee,drawOne:xE,drawRaw:wE};function nee(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Ze="right":Ze="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ze]}for(var pe=!1,U=["x","y"],ee=0;ee1)&&(Oe===Se?(Er=Ie.r2fraction(r["a"+$]),(Er<0||Er>1)&&(pe=!0)):pe=!0),pr=Ie._offset+Ie.r2p(r[$]),Ye=.5}else{var Ae=Nr==="domain";$==="x"?(Te=r[$],pr=Ae?Ie._offset+Ie._length*Te:pr=l.l+l.w*Te):(Te=1-r[$],pr=Ae?Ie._offset+Ie._length*Te:pr=l.t+l.h*Te),Ye=r.showarrow?.5:Te}if(r.showarrow){Qe.head=pr;var Xe=r["a"+$];if(Ar=or*we(.5,r.xanchor)-Ue*we(.5,r.yanchor),Oe===Se){var hr=Ah.getRefType(Oe);hr==="domain"?($==="y"&&(Xe=1-Xe),Qe.tail=Ie._offset+Ie._length*Xe):hr==="paper"?$==="y"?(Xe=1-Xe,Qe.tail=l.t+l.h*Xe):Qe.tail=l.l+l.w*Xe:Qe.tail=Ie._offset+Ie.r2p(Xe),dr=Ar}else Qe.tail=pr+Xe,dr=Ar+Xe;Qe.text=Qe.tail+Ar;var wr=o[$==="x"?"width":"height"];if(Se==="paper"&&(Qe.head=uf.constrain(Qe.head,1,wr-1)),Oe==="pixel"){var mr=-Math.max(Qe.tail-3,Qe.text),Tr=Math.min(Qe.tail+3,Qe.text)-wr;mr>0?(Qe.tail+=mr,Qe.text+=mr):Tr>0&&(Qe.tail-=Tr,Qe.text-=Tr)}Qe.tail+=cr,Qe.head+=cr}else Ar=tr*we(Ye,ur),dr=Ar,Qe.text=pr+Ar;Qe.text+=cr,Ar+=cr,dr+=cr,r["_"+$+"padplus"]=tr/2+dr,r["_"+$+"padminus"]=tr/2-dr,r["_"+$+"size"]=tr,r["_"+$+"shift"]=Ar}if(pe){M.remove();return}var Dr=0,Or=0;if(r.align!=="left"&&(Dr=(Le-Fe)*(r.align==="center"?.5:1)),r.valign!=="top"&&(Or=(rr-Je)*(r.valign==="middle"?.5:1)),De)he.select("svg").attr({x:F+Dr-1,y:F+Or}).call(ou.setClipUrl,W?p:null,e);else{var Cr=F+Or-Ne.top,ar=F+Dr-Ne.left;re.call(jb.positionText,ar,Cr).call(ou.setClipUrl,W?p:null,e)}B.select("rect").call(ou.setRect,F,F,Le,rr),H.call(ou.setRect,D/2,D/2,se-D,me-D),M.call(ou.setTranslate,Math.round(y.x.text-se/2),Math.round(y.y.text-me/2)),x.attr({transform:"rotate("+b+","+y.x.text+","+y.y.text+")"});var be=function($e,Ze){C.selectAll(".annotation-arrow-g").remove();var qr=y.x.head,Hr=y.y.head,Pr=y.x.tail+$e,lt=y.y.tail+Ze,xt=y.x.text+$e,Nt=y.y.text+Ze,It=uf.rotationXYMatrix(b,xt,Nt),An=uf.apply2DTransform(It),Tn=uf.apply2DTransform2(It),cn=+H.attr("width"),Ft=+H.attr("height"),jt=xt-.5*cn,en=jt+cn,Jt=Nt-.5*Ft,aa=Jt+Ft,rt=[[jt,Jt,jt,aa],[jt,aa,en,aa],[en,aa,en,Jt],[en,Jt,jt,Jt]].map(Tn);if(!rt.reduce(function(Ht,Bn){return Ht^!!uf.segmentsIntersect(qr,Hr,qr+1e6,Hr+1e6,Bn[0],Bn[1],Bn[2],Bn[3])},!1)){rt.forEach(function(Ht){var Bn=uf.segmentsIntersect(Pr,lt,qr,Hr,Ht[0],Ht[1],Ht[2],Ht[3]);Bn&&(Pr=Bn.x,lt=Bn.y)});var rn=r.arrowwidth,St=r.arrowcolor,dn=r.arrowside,pn=C.append("g").style({opacity:Pc.opacity(St)}).classed("annotation-arrow-g",!0),an=pn.append("path").attr("d","M"+Pr+","+lt+"L"+qr+","+Hr).style("stroke-width",rn+"px").call(Pc.stroke,Pc.rgb(St));if(tee(an,dn,r),s.annotationPosition&&an.node().parentNode&&!n){var vn=qr,da=Hr;if(r.standoff){var qn=Math.sqrt(Math.pow(qr-Pr,2)+Math.pow(Hr-lt,2));vn+=r.standoff*(Pr-qr)/qn,da+=r.standoff*(lt-Hr)/qn}var Na=pn.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Pr-vn)+","+(lt-da),transform:Xb(vn,da)}).style("stroke-width",rn+6+"px").call(Pc.stroke,"rgba(0,0,0,0)").call(Pc.fill,"rgba(0,0,0,0)"),pa,wn;Mh.init({element:Na.node(),gd:e,prepFn:function(){var Ht=ou.getTranslate(M);pa=Ht.x,wn=Ht.y,a&&a.autorange&&h(a._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(Ht,Bn){var pi=An(pa,wn),io=pi[0]+Ht,gi=pi[1]+Bn;M.call(ou.setTranslate,io,gi),d("x",sf(a,Ht,"x",l,r)),d("y",sf(i,Bn,"y",l,r)),r.axref===r.xref&&d("ax",sf(a,Ht,"ax",l,r)),r.ayref===r.yref&&d("ay",sf(i,Bn,"ay",l,r)),pn.attr("transform",Xb(Ht,Bn)),x.attr({transform:"rotate("+b+","+io+","+gi+")"})},doneFn:function(){Zb.call("_guiRelayout",e,m());var Ht=document.querySelector(".js-notes-box-panel");Ht&&Ht.redraw(Ht.selectedObj)}})}}};if(r.showarrow&&be(0,0),_){var ke;Mh.init({element:M.node(),gd:e,prepFn:function(){ke=x.attr("transform")},moveFn:function($e,Ze){var qr="pointer";if(r.showarrow)r.axref===r.xref?d("ax",sf(a,$e,"ax",l,r)):d("ax",r.ax+$e),r.ayref===r.yref?d("ay",sf(i,Ze,"ay",l.w,r)):d("ay",r.ay+Ze),be($e,Ze);else{if(n)return;var Hr,Pr;if(a)Hr=sf(a,$e,"x",l,r);else{var lt=r._xsize/l.w,xt=r.x+(r._xshift-r.xshift)/l.w-lt/2;Hr=Mh.align(xt+$e/l.w,lt,0,1,r.xanchor)}if(i)Pr=sf(i,Ze,"y",l,r);else{var Nt=r._ysize/l.h,It=r.y-(r._yshift+r.yshift)/l.h-Nt/2;Pr=Mh.align(It-Ze/l.h,Nt,0,1,r.yanchor)}d("x",Hr),d("y",Pr),(!a||!i)&&(qr=Mh.getCursor(a?.5:Hr,i?.5:Pr,r.xanchor,r.yanchor))}x.attr({transform:Xb($e,Ze)+ke}),Jb(M,qr)},clickFn:function($e,Ze){r.captureevents&&e.emit("plotly_clickannotation",k(Ze))},doneFn:function(){Jb(M),Zb.call("_guiRelayout",e,m());var $e=document.querySelector(".js-notes-box-panel");$e&&$e.redraw($e.selectedObj)}})}}s.annotationText?re.call(jb.makeEditable,{delegate:M,gd:e}).call(te).on("edit",function(Q){r.text=Q,this.call(te),d("text",Q),a&&a.autorange&&h(a._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),Zb.call("_guiRelayout",e,m())}):re.call(te)}});var LE=ne((v0e,CE)=>{"use strict";var AE=gr(),aee=dt(),TE=bn().arrayEditor;CE.exports={hasClickToShow:iee,onClick:oee};function iee(e,r){var t=SE(e,r);return t.on.length>0||t.explicitOff.length>0}function oee(e,r){var t=SE(e,r),n=t.on,a=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(n.length||a.length){for(l=0;l{"use strict";var $b=gr(),bv=Pt();qE.exports=function(r,t,n,a){a("opacity");var i=a("bgcolor"),o=a("bordercolor"),l=bv.opacity(o);a("borderpad");var s=a("borderwidth"),u=a("showarrow");a("text",u?" ":n._dfltTitle.annotation),a("textangle"),$b.coerceFont(a,"font",n.font),a("width"),a("align");var f=a("height");if(f&&a("valign"),u){var v=a("arrowside"),h,d;v.indexOf("end")!==-1&&(h=a("arrowhead"),d=a("arrowsize")),v.indexOf("start")!==-1&&(a("startarrowhead",h),a("startarrowsize",d)),a("arrowcolor",l?t.bordercolor:bv.defaultLine),a("arrowwidth",(l&&s||1)*2),a("standoff"),a("startstandoff")}var m=a("hovertext"),p=n.hoverlabel||{};if(m){var y=a("hoverlabel.bgcolor",p.bgcolor||(bv.opacity(i)?bv.rgb(i):bv.defaultLine)),b=a("hoverlabel.bordercolor",p.bordercolor||bv.contrast(y)),C=$b.extendFlat({},p.font);C.color||(C.color=b),$b.coerceFont(a,"hoverlabel.font",C)}a("captureevents",!!m)}});var EE=ne((d0e,DE)=>{"use strict";var Qb=gr(),Rc=Dn(),lee=gl(),see=Kb(),uee=fv();DE.exports=function(r,t){lee(r,t,{name:"annotations",handleItemDefaults:fee})};function fee(e,r,t){function n(x,_){return Qb.coerce(e,r,uee,x,_)}var a=n("visible"),i=n("clicktoshow");if(a||i){see(e,r,t,n);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var v=l[f],h=Rc.coerceRef(e,r,u,v,"","paper");if(h!=="paper"){var d=Rc.getFromId(u,h);d._annIndices.push(r._index)}if(Rc.coercePosition(r,u,n,h,v,.5),o){var m="a"+v,p=Rc.coerceRef(e,r,u,m,"pixel",["pixel","paper"]);p!=="pixel"&&p!==h&&(p=r[m]="pixel");var y=p==="pixel"?s[f]:.4;Rc.coercePosition(r,u,n,p,m,y)}n(v+"anchor"),n(v+"shift")}if(Qb.noneOrAll(e,r,["x","y"]),o&&Qb.noneOrAll(e,r,["ax","ay"]),i){var b=n("xclick"),C=n("yclick");r._xclick=b===void 0?r.x:Rc.cleanPosition(b,u,r.xref),r._yclick=C===void 0?r.y:Rc.cleanPosition(C,u,r.yref)}}}});var zE=ne((p0e,RE)=>{"use strict";var e4=gr(),zc=Dn(),cee=gm().draw;RE.exports=function(r){var t=r._fullLayout,n=e4.filterVisible(t.annotations);if(n.length&&r._fullData.length)return e4.syncOrAsync([cee,vee],r)};function vee(e){var r=e._fullLayout;e4.filterVisible(r.annotations).forEach(function(t){var n=zc.getFromId(e,t.xref),a=zc.getFromId(e,t.yref),i=zc.getRefType(t.xref),o=zc.getRefType(t.yref);t._extremes={},i==="range"&&PE(t,n),o==="range"&&PE(t,a)})}function PE(e,r){var t=r._id,n=t.charAt(0),a=e[n],i=e["a"+n],o=e[n+"ref"],l=e["a"+n+"ref"],s=e["_"+n+"padplus"],u=e["_"+n+"padminus"],f={x:1,y:-1}[n]*e[n+"shift"],v=3*e.arrowsize*e.arrowwidth||0,h=v+f,d=v-f,m=3*e.startarrowsize*e.arrowwidth||0,p=m+f,y=m-f,b;if(l===o){var C=zc.findExtremes(r,[r.r2c(a)],{ppadplus:h,ppadminus:d}),x=zc.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,p),ppadminus:Math.max(u,y)});b={min:[C.min[0],x.min[0]],max:[C.max[0],x.max[0]]}}else p=i?p+i:p,y=i?y-i:y,b=zc.findExtremes(r,[r.r2c(a)],{ppadplus:Math.max(s,h,p),ppadminus:Math.max(u,d,y)});e._extremes[t]=b}});var FE=ne((g0e,NE)=>{"use strict";var hee=Ot(),dee=sd();NE.exports=function(r,t,n,a){t=t||{};var i=n==="log"&&t.type==="linear",o=n==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function v(d){var m=u[d],p=null;i?p=dee(m,t.range):p=Math.pow(10,m),hee(p)||(p=null),a(f+d,p)}for(var h=0;h{"use strict";var r4=gm(),IE=LE();HE.exports={moduleType:"component",name:"annotations",layoutAttributes:fv(),supplyLayoutDefaults:EE(),includeBasePlot:nh()("annotations"),calcAutorange:zE(),draw:r4.draw,drawOne:r4.drawOne,drawRaw:r4.drawRaw,hasClickToShow:IE.hasClickToShow,onClick:IE.onClick,convertCoords:FE()}});var mm=ne((y0e,OE)=>{"use strict";var xn=fv(),pee=_o().overrideAll,gee=bn().templatedArray;OE.exports=pee(gee("annotation",{visible:xn.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:xn.xanchor,xshift:xn.xshift,yanchor:xn.yanchor,yshift:xn.yshift,text:xn.text,textangle:xn.textangle,font:xn.font,width:xn.width,height:xn.height,opacity:xn.opacity,align:xn.align,valign:xn.valign,bgcolor:xn.bgcolor,bordercolor:xn.bordercolor,borderpad:xn.borderpad,borderwidth:xn.borderwidth,showarrow:xn.showarrow,arrowcolor:xn.arrowcolor,arrowhead:xn.arrowhead,startarrowhead:xn.startarrowhead,arrowside:xn.arrowside,arrowsize:xn.arrowsize,startarrowsize:xn.startarrowsize,arrowwidth:xn.arrowwidth,standoff:xn.standoff,startstandoff:xn.startstandoff,hovertext:xn.hovertext,hoverlabel:xn.hoverlabel,captureevents:xn.captureevents}),"calc","from-root")});var YE=ne((b0e,UE)=>{"use strict";var t4=gr(),mee=Dn(),yee=gl(),bee=Kb(),_ee=mm();UE.exports=function(r,t,n){yee(r,t,{name:"annotations",handleItemDefaults:xee,fullLayout:n.fullLayout})};function xee(e,r,t,n){function a(l,s){return t4.coerce(e,r,_ee,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],mee.coercePosition(r,u,a,l,l,.5)}var o=a("visible");o&&(bee(e,r,n.fullLayout,a),i("x"),i("y"),i("z"),t4.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",a("ax",-10),a("ay",-30),t4.noneOrAll(e,r,["ax","ay"])))}});var ZE=ne((_0e,WE)=>{"use strict";var GE=gr(),VE=Dn();WE.exports=function(r){for(var t=r.fullSceneLayout,n=t.annotations,a=0;a{"use strict";function n4(e,r){var t=[0,0,0,0],n,a;for(n=0;n<4;++n)for(a=0;a<4;++a)t[a]+=e[4*n+a]*r[n];return t}function Mee(e,r){var t=n4(e.projection,n4(e.view,n4(e.model,[r[0],r[1],r[2],1])));return t}XE.exports=Mee});var $E=ne((w0e,JE)=>{"use strict";var Aee=gm().drawRaw,Tee=jE(),kee=["x","y","z"];JE.exports=function(r){for(var t=r.fullSceneLayout,n=r.dataScale,a=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=Tee(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*n[0],t.yaxis.r2l(o.y)*n[1],t.zaxis.r2l(o.z)*n[2]]),Aee(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var eP=ne((M0e,QE)=>{"use strict";var See=dt(),KE=gr();QE.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:mm()}}},layoutAttributes:mm(),handleDefaults:YE(),includeBasePlot:Cee,convert:ZE(),draw:$E()};function Cee(e,r){var t=See.subplotsRegistry.gl3d;if(t)for(var n=t.attrRegex,a=Object.keys(e),i=0;i{"use strict";var rP=fv(),tP=$a(),nP=kc().line,Lee=Kl().dash,Tl=la().extendFlat,qee=bn().templatedArray,A0e=th(),_v=bo(),Dee=Vs().shapeTexttemplateAttrs,Eee=bd();aP.exports=qee("shape",{visible:Tl({},_v.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Tl({},_v.legend,{editType:"calc+arraydraw"}),legendgroup:Tl({},_v.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Tl({},_v.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:tP({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Tl({},_v.legendrank,{editType:"calc+arraydraw"}),legendwidth:Tl({},_v.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Tl({},rP.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Tl({},rP.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Tl({},nP.color,{editType:"arraydraw"}),width:Tl({},nP.width,{editType:"calc+arraydraw"}),dash:Tl({},Lee,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Dee({},{keys:Object.keys(Eee)}),font:tP({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var lP=ne((k0e,oP)=>{"use strict";var Th=gr(),xv=Dn(),Pee=gl(),Ree=a4(),iP=rf();oP.exports=function(r,t){Pee(r,t,{name:"shapes",handleItemDefaults:Nee})};function zee(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Nee(e,r,t){function n(Q,fe){return Th.coerce(e,r,Ree,Q,fe)}r._isShape=!0;var a=n("visible");if(a){var i=n("showlegend");i&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),Th.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var o=n("path"),l=o?"path":"rect",s=n("type",l),u=s!=="path";u&&delete r.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var f=n("line.width");f&&(n("line.color"),n("line.dash"));for(var v=n("xsizemode"),h=n("ysizemode"),d=["x","y"],m=0;m<2;m++){var p=d[m],y=p+"anchor",b=p==="x"?v:h,C={_fullLayout:t},x,_,A,k=xv.coerceRef(e,r,C,p,void 0,"paper"),M=xv.getRefType(k);if(M==="range"?(x=xv.getFromId(C,k),x._shapeIndices.push(r._index),A=iP.rangeToShapePosition(x),_=iP.shapePositionToRange(x),(x.type==="category"||x.type==="multicategory")&&(n(p+"0shift"),n(p+"1shift"))):_=A=Th.identity,u){var D=.25,z=.75,F=p+"0",H=p+"1",W=e[F],B=e[H];e[F]=_(e[F],!0),e[H]=_(e[H],!0),b==="pixel"?(n(F,0),n(H,10)):(xv.coercePosition(r,C,n,k,F,D),xv.coercePosition(r,C,n,k,H,z)),r[F]=A(r[F]),r[H]=A(r[H]),e[F]=W,e[H]=B}if(b==="pixel"){var X=e[y];e[y]=_(e[y],!0),xv.coercePosition(r,C,n,k,y,.25),r[y]=A(r[y]),e[y]=X}}u&&Th.noneOrAll(e,r,["x0","x1","y0","y1"]);var V=s==="line",re,te;if(u&&(re=n("label.texttemplate")),re||(te=n("label.text")),te||re){n("label.textangle");var K=n("label.textposition",V?"middle":"middle center");n("label.xanchor"),n("label.yanchor",zee(V,K)),n("label.padding"),Th.coerceFont(n,"label.font",t.font)}}}});var fP=ne((S0e,uP)=>{"use strict";var Fee=Pt(),sP=gr();function Iee(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}uP.exports=function(r,t,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),sP.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var a=n("newshape.line.width");if(a){var i=(r||{}).plot_bgcolor||"#FFF";n("newshape.line.color",Fee.contrast(i)),n("newshape.line.dash")}var o=r.dragmode==="drawline",l=n("newshape.label.text"),s=n("newshape.label.texttemplate");if(l||s){n("newshape.label.textangle");var u=n("newshape.label.textposition",o?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",Iee(o,u)),n("newshape.label.padding"),sP.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var pP=ne((C0e,dP)=>{"use strict";var i4=gr(),wv=Dn(),Mv=N1(),vP=rf();dP.exports=function(r){var t=r._fullLayout,n=i4.filterVisible(t.shapes);if(!(!n.length||!r._fullData.length))for(var a=0;a0?u+o:o;return{ppad:o,ppadplus:l?v:h,ppadminus:l?h:v}}else return{ppad:o}}function cP(e,r,t){var n=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,u=a?e.r2c:e.d2c,f=r[n+"sizemode"]==="scaled";if(f?(i=r[n+"0"],o=r[n+"1"],a&&(l=r[n+"0shift"],s=r[n+"1shift"])):(i=r[n+"anchor"],o=r[n+"anchor"]),i!==void 0)return[u(i)+l,u(o)+s];if(r.path){var v=1/0,h=-1/0,d=r.path.match(Mv.segmentRE),m,p,y,b,C;for(e.type==="date"&&(u=vP.decodeDate(u)),m=0;mh&&(h=C)));if(h>=v)return[v,h]}}});var yP=ne((L0e,mP)=>{"use strict";var gP=og();mP.exports={moduleType:"component",name:"shapes",layoutAttributes:a4(),supplyLayoutDefaults:lP(),supplyDrawNewShapeDefaults:fP(),includeBasePlot:nh()("shapes"),calcAutorange:pP(),draw:gP.draw,drawOne:gP.drawOne}});var o4=ne((D0e,_P)=>{"use strict";var bP=Pa(),Oee=bn().templatedArray,q0e=th();_P.exports=Oee("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",bP.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",bP.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var wP=ne((E0e,xP)=>{"use strict";var Uee=gr(),l4=Dn(),Yee=gl(),Gee=o4(),Vee="images";xP.exports=function(r,t){var n={name:Vee,handleItemDefaults:Wee};Yee(r,t,n)};function Wee(e,r,t){function n(h,d){return Uee.coerce(e,r,Gee,h,d)}var a=n("source"),i=n("visible",!!a);if(!i)return r;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var u=l[s],f=l4.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var v=l4.getFromId(o,f);v._imgIndices.push(r._index)}l4.coercePosition(r,o,n,f,u,0)}return r}});var kP=ne((P0e,TP)=>{"use strict";var MP=kt(),Zee=fn(),Av=Dn(),AP=ua(),Xee=lc();TP.exports=function(r){var t=r._fullLayout,n=[],a={},i=[],o,l;for(l=0;l{"use strict";var SP=Ot(),jee=sd();CP.exports=function(r,t,n,a){t=t||{};var i=n==="log"&&t.type==="linear",o=n==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),u,f,v=0;v{"use strict";qP.exports={moduleType:"component",name:"images",layoutAttributes:o4(),supplyLayoutDefaults:wP(),includeBasePlot:nh()("images"),draw:kP(),convertCoords:LP()}});var ym=ne((N0e,EP)=>{"use strict";EP.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var s4=ne((F0e,RP)=>{"use strict";var Jee=$a(),$ee=cl(),Kee=la().extendFlat,Qee=_o().overrideAll,ere=_d(),PP=bn().templatedArray,rre=PP("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});RP.exports=Qee(PP("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:rre,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Kee(ere({editType:"arraydraw"}),{}),font:Jee({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:$ee.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var IP=ne((I0e,FP)=>{"use strict";var bm=gr(),zP=gl(),NP=s4(),tre=ym(),nre=tre.name,are=NP.buttons;FP.exports=function(r,t){var n={name:nre,handleItemDefaults:ire};zP(r,t,n)};function ire(e,r,t){function n(o,l){return bm.coerce(e,r,NP,o,l)}var a=zP(e,r,{name:"buttons",handleItemDefaults:ore}),i=n("visible",a.length>0);i&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),bm.noneOrAll(e,r,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),bm.coerceFont(n,"font",t.font),n("bgcolor",t.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function ore(e,r){function t(a,i){return bm.coerce(e,r,are,a,i)}var n=t("visible",e.method==="skip"||Array.isArray(e.args));n&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var OP=ne((H0e,BP)=>{"use strict";BP.exports=zn;var kl=kt(),HP=Pt(),Tv=fn(),_m=gr();function zn(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}zn.barWidth=2;zn.barLength=20;zn.barRadius=2;zn.barPad=1;zn.barColor="#808BA4";zn.prototype.enable=function(r,t,n){var a=this.gd._fullLayout,i=a.width,o=a.height;this.position=r;var l=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,v=this.position.direction,h=v==="down",d=v==="left",m=v==="right",p=v==="up",y=s,b=f,C,x,_,A;!h&&!d&&!m&&!p&&(this.position.direction="down",h=!0);var k=h||p;k?(C=l,x=C+y,h?(_=u,A=Math.min(_+b,o),b=A-_):(A=u+b,_=Math.max(A-b,0),b=A-_)):(_=u,A=_+b,d?(x=l+y,C=Math.max(x-y,0),y=x-C):(C=l,x=Math.min(C+y,i),y=x-C)),this._box={l:C,t:_,w:y,h:b};var M=s>y,D=zn.barLength+2*zn.barPad,z=zn.barWidth+2*zn.barPad,F=l,H=u+f;H+z>o&&(H=o-z);var W=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);W.exit().on(".drag",null).remove(),W.enter().append("rect").classed("scrollbar-horizontal",!0).call(HP.fill,zn.barColor),M?(this.hbar=W.attr({rx:zn.barRadius,ry:zn.barRadius,x:F,y:H,width:D,height:z}),this._hbarXMin=F+D/2,this._hbarTranslateMax=y-D):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var B=f>b,X=zn.barWidth+2*zn.barPad,V=zn.barLength+2*zn.barPad,re=l+s,te=u;re+X>i&&(re=i-X);var K=this.container.selectAll("rect.scrollbar-vertical").data(B?[0]:[]);K.exit().on(".drag",null).remove(),K.enter().append("rect").classed("scrollbar-vertical",!0).call(HP.fill,zn.barColor),B?(this.vbar=K.attr({rx:zn.barRadius,ry:zn.barRadius,x:re,y:te,width:X,height:V}),this._vbarYMin=te+V/2,this._vbarTranslateMax=b-V):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var Q=this.id,fe=C-.5,he=B?x+X+.5:x+.5,De=_-.5,Ne=M?A+z+.5:A+.5,Fe=a._topdefs.selectAll("#"+Q).data(M||B?[0]:[]);if(Fe.exit().remove(),Fe.enter().append("clipPath").attr("id",Q).append("rect"),M||B?(this._clipRect=Fe.select("rect").attr({x:Math.floor(fe),y:Math.floor(De),width:Math.ceil(he)-Math.floor(fe),height:Math.ceil(Ne)-Math.floor(De)}),this.container.call(Tv.setClipUrl,Q,this.gd),this.bg.attr({x:l,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Tv.setClipUrl,null),delete this._clipRect),M||B){var Je=kl.behavior.drag().on("dragstart",function(){kl.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Je);var Le=kl.behavior.drag().on("dragstart",function(){kl.event.sourceEvent.preventDefault(),kl.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(Le),B&&this.vbar.on(".drag",null).call(Le)}this.setTranslate(t,n)};zn.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Tv.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};zn.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=kl.event.dx),this.vbar&&(t-=kl.event.dy),this.setTranslate(r,t)};zn.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=kl.event.deltaY),this.vbar&&(t+=kl.event.deltaY),this.setTranslate(r,t)};zn.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var n=r+this._hbarXMin,a=n+this._hbarTranslateMax,i=_m.constrain(kl.event.x,n,a),o=(i-n)/(a-n),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=_m.constrain(kl.event.y,s,u),v=(f-s)/(u-s),h=this.position.h-this._box.h;t=v*h}this.setTranslate(r,t)};zn.prototype.setTranslate=function(r,t){var n=this.position.w-this._box.w,a=this.position.h-this._box.h;if(r=_m.constrain(r||0,0,n),t=_m.constrain(t||0,0,a),this.translateX=r,this.translateY=t,this.container.call(Tv.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/n;this.hbar.call(Tv.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/a;this.vbar.call(Tv.setTranslate,r,t+o*this._vbarTranslateMax)}}});var $P=ne((B0e,JP)=>{"use strict";var kv=kt(),kh=fa(),Sh=Pt(),Sv=fn(),no=gr(),xm=ci(),lre=bn().arrayEditor,YP=Ka().LINE_SPACING,ct=ym(),sre=OP();JP.exports=function(r){var t=r._fullLayout,n=no.filterVisible(t[ct.name]);function a(h){kh.autoMargin(r,XP(h))}var i=t._menulayer.selectAll("g."+ct.containerClassName).data(n.length>0?[0]:[]);if(i.enter().append("g").classed(ct.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){kv.select(this).selectAll("g."+ct.headerGroupClassName).each(a)}).remove(),n.length!==0){var o=i.selectAll("g."+ct.headerGroupClassName).data(n,ure);o.enter().append("g").classed(ct.headerGroupClassName,!0);for(var l=no.ensureSingle(i,"g",ct.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s{"use strict";var gre=ym();KP.exports={moduleType:"component",name:gre.name,layoutAttributes:s4(),supplyLayoutDefaults:IP(),draw:$P()}});var Lh=ne((U0e,eR)=>{"use strict";eR.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var v4=ne((Y0e,nR)=>{"use strict";var rR=$a(),mre=_d(),yre=la().extendDeepAll,bre=_o().overrideAll,_re=l1(),tR=bn().templatedArray,Nc=Lh(),xre=tR("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});nR.exports=bre(tR("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:xre,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:yre(mre({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:_re.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:rR({})},font:rR({}),activebgcolor:{valType:"color",dflt:Nc.gripBgActiveColor},bgcolor:{valType:"color",dflt:Nc.railBgColor},bordercolor:{valType:"color",dflt:Nc.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Nc.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Nc.tickLength},tickcolor:{valType:"color",dflt:Nc.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Nc.minorTickLength}}),"arraydraw","from-root")});var lR=ne((G0e,oR)=>{"use strict";var Cv=gr(),aR=gl(),iR=v4(),wre=Lh(),Mre=wre.name,Are=iR.steps;oR.exports=function(r,t){aR(r,t,{name:Mre,handleItemDefaults:Tre})};function Tre(e,r,t){function n(v,h){return Cv.coerce(e,r,iR,v,h)}for(var a=aR(e,r,{name:"steps",handleItemDefaults:kre}),i=0,o=0;o{"use strict";var Sl=kt(),wm=fa(),ff=Pt(),Cl=fn(),ao=gr(),Sre=ao.strTranslate,qh=ci(),Cre=bn().arrayEditor,Mt=Lh(),p4=Ka(),fR=p4.LINE_SPACING,h4=p4.FROM_TL,d4=p4.FROM_BR;gR.exports=function(r){var t=r._context.staticPlot,n=r._fullLayout,a=Lre(n,r),i=n._infolayer.selectAll("g."+Mt.containerClassName).data(a.length>0?[0]:[]);i.enter().append("g").classed(Mt.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),wm.autoMargin(r,cR(f))}if(i.exit().each(function(){Sl.select(this).selectAll("g."+Mt.groupClassName).each(o)}).remove(),a.length!==0){var l=i.selectAll("g."+Mt.groupClassName).data(a,qre);l.enter().append("g").classed(Mt.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",Sre(o-Mt.gripWidth*.5,r._dims.currentValueTotalHeight))}}function g4(e,r){var t=e._dims;return t.inputAreaStart+Mt.stepInset+(t.inputAreaLength-2*Mt.stepInset)*Math.min(1,Math.max(0,r))}function uR(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Mt.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Mt.stepInset-2*t.inputAreaStart)))}function Fre(e,r,t){var n=t._dims,a=ao.ensureSingle(e,"rect",Mt.railTouchRectClass,function(i){i.call(dR,r,e,t).style("pointer-events","all")});a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Mt.tickOffset+t.ticklen+n.labelHeight)}).call(ff.fill,t.bgcolor).attr("opacity",0),Cl.setTranslate(a,0,n.currentValueTotalHeight)}function Ire(e,r){var t=r._dims,n=t.inputAreaLength-Mt.railInset*2,a=ao.ensureSingle(e,"rect",Mt.railRectClass);a.attr({width:n,height:Mt.railWidth,rx:Mt.railRadius,ry:Mt.railRadius,"shape-rendering":"crispEdges"}).call(ff.stroke,r.bordercolor).call(ff.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Cl.setTranslate(a,Mt.railInset,(t.inputAreaWidth-Mt.railWidth)*.5+t.currentValueTotalHeight)}});var bR=ne((W0e,yR)=>{"use strict";var Hre=Lh();yR.exports={moduleType:"component",name:Hre.name,layoutAttributes:v4(),supplyLayoutDefaults:lR(),draw:mR()}});var Am=ne((Z0e,xR)=>{"use strict";var _R=cl();xR.exports={bgcolor:{valType:"color",dflt:_R.background,editType:"plot"},bordercolor:{valType:"color",dflt:_R.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var m4=ne((X0e,wR)=>{"use strict";wR.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Tm=ne((j0e,MR)=>{"use strict";MR.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var kR=ne(Sm=>{"use strict";var Bre=ua(),Ore=ci(),AR=Tm(),Ure=Ka().LINE_SPACING,km=AR.name;function TR(e){var r=e&&e[km];return r&&r.visible}Sm.isVisible=TR;Sm.makeData=function(e){for(var r=Bre.list({_fullLayout:e},"x",!0),t=e.margin,n=[],a=0;a{"use strict";var Cm=gr(),SR=bn(),CR=ua(),Yre=Am(),Gre=m4();LR.exports=function(r,t,n){var a=r[n],i=t[n];if(!(a.rangeslider||t._requestRangeslider[i._id]))return;Cm.isPlainObject(a.rangeslider)||(a.rangeslider={});var o=a.rangeslider,l=SR.newContainer(i,"rangeslider");function s(A,k){return Cm.coerce(o,l,Yre,A,k)}var u,f;function v(A,k){return Cm.coerce(u,f,Gre,A,k)}var h=s("visible");if(h){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var m=d.cartesian.filter(function(A){return A.substr(0,A.indexOf("y"))===CR.name2id(n)}).map(function(A){return A.substr(A.indexOf("y"),A.length)}),p=Cm.simpleMap(m,CR.id2name),y=0;y{"use strict";var Vre=ua().list,Wre=Ju().getAutoRange,Zre=Tm();DR.exports=function(r){for(var t=Vre(r,"x",!0),n=0;n{"use strict";var Lm=kt(),Xre=dt(),jre=fa(),Vn=gr(),qm=Vn.strTranslate,RR=fn(),cf=Pt(),Jre=A1(),$re=Vb(),y4=ua(),Kre=To(),Qre=Ku(),Et=Tm();zR.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,n=0;n=K.max)re=H[te+1];else if(V=K.pmax)re=H[te+1];else if(V0?e.touches[0].clientX:0}function ete(e,r,t,n){if(r._context.staticPlot)return;var a=e.select("rect."+Et.slideBoxClassName).node(),i=e.select("rect."+Et.grabAreaMinClassName).node(),o=e.select("rect."+Et.grabAreaMaxClassName).node();function l(){var s=Lm.event,u=s.target,f=PR(s),v=f-e.node().getBoundingClientRect().left,h=n.d2p(t._rl[0]),d=n.d2p(t._rl[1]),m=Kre.coverSlip();this.addEventListener("touchmove",p),this.addEventListener("touchend",y),m.addEventListener("mousemove",p),m.addEventListener("mouseup",y);function p(b){var C=PR(b),x=+C-f,_,A,k;switch(u){case a:if(k="ew-resize",h+x>t._length||d+x<0)return;_=h+x,A=d+x;break;case i:if(k="col-resize",h+x>t._length)return;_=h+x,A=d;break;case o:if(k="col-resize",d+x<0)return;_=h,A=d+x;break;default:k="ew-resize",_=v,A=v+x;break}if(A<_){var M=A;A=_,_=M}n._pixelMin=_,n._pixelMax=A,Qre(Lm.select(m),k),rte(e,r,t,n)}function y(){m.removeEventListener("mousemove",p),m.removeEventListener("mouseup",y),this.removeEventListener("touchmove",p),this.removeEventListener("touchend",y),Vn.removeElement(m)}}e.on("mousedown",l),e.on("touchstart",l)}function rte(e,r,t,n){function a(l){return t.l2r(Vn.constrain(l,n._rl[0],n._rl[1]))}var i=a(n.p2d(n._pixelMin)),o=a(n.p2d(n._pixelMax));window.requestAnimationFrame(function(){Xre.call("_guiRelayout",r,t._name+".range",[i,o])})}function tte(e,r,t,n,a,i){var o=Et.handleWidth/2;function l(b){return Vn.constrain(b,0,n._width)}function s(b){return Vn.constrain(b,0,n._height)}function u(b){return Vn.constrain(b,-o,n._width+o)}var f=l(n.d2p(t._rl[0])),v=l(n.d2p(t._rl[1]));if(e.select("rect."+Et.slideBoxClassName).attr("x",f).attr("width",v-f),e.select("rect."+Et.maskMinClassName).attr("width",f),e.select("rect."+Et.maskMaxClassName).attr("x",v).attr("width",n._width-v),i.rangemode!=="match"){var h=n._height-s(n.d2pOppAxis(a._rl[1])),d=n._height-s(n.d2pOppAxis(a._rl[0]));e.select("rect."+Et.maskMinOppAxisClassName).attr("x",f).attr("height",h).attr("width",v-f),e.select("rect."+Et.maskMaxOppAxisClassName).attr("x",f).attr("y",d).attr("height",n._height-d).attr("width",v-f),e.select("rect."+Et.slideBoxClassName).attr("y",h).attr("height",d-h)}var m=.5,p=Math.round(u(f-o))-m,y=Math.round(u(v-o))+m;e.select("g."+Et.grabberMinClassName).attr("transform",qm(p,m)),e.select("g."+Et.grabberMaxClassName).attr("transform",qm(y,m))}function nte(e,r,t,n){var a=Vn.ensureSingle(e,"rect",Et.bgClassName,function(s){s.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),i=n.borderwidth%2===0?n.borderwidth:n.borderwidth-1,o=-n._offsetShift,l=RR.crispRound(r,n.borderwidth);a.attr({width:n._width+i,height:n._height+i,transform:qm(o,o),"stroke-width":l}).call(cf.stroke,n.bordercolor).call(cf.fill,n.bgcolor)}function ate(e,r,t,n){var a=r._fullLayout,i=Vn.ensureSingleById(a._topdefs,"clipPath",n._clipId,function(o){o.append("rect").attr({x:0,y:0})});i.select("rect").attr({width:n._width,height:n._height})}function ite(e,r,t,n){var a=r.calcdata,i=e.selectAll("g."+Et.rangePlotClassName).data(t._subplotsWith,Vn.identity);i.enter().append("g").attr("class",function(l){return Et.rangePlotClassName+" "+l}).call(RR.setClipUrl,n._clipId,r),i.order(),i.exit().remove();var o;i.each(function(l,s){var u=Lm.select(this),f=s===0,v=y4.getFromId(r,l,"y"),h=v._name,d=n[h],m={data:[],layout:{xaxis:{type:t.type,domain:[0,1],range:n.range.slice(),calendar:t.calendar},width:n._width,height:n._height,margin:{t:0,b:0,l:0,r:0}},_context:r._context};t.rangebreaks&&(m.layout.xaxis.rangebreaks=t.rangebreaks),m.layout[h]={type:v.type,domain:[0,1],range:d.rangemode!=="match"?d.range.slice():v.range.slice(),calendar:v.calendar},v.rangebreaks&&(m.layout[h].rangebreaks=v.rangebreaks),jre.supplyDefaults(m);var p=m._fullLayout.xaxis,y=m._fullLayout[h];p.clearCalc(),p.setScale(),y.clearCalc(),y.setScale();var b={id:l,plotgroup:u,xaxis:p,yaxis:y,isRangePlot:!0};f?o=b:(b.mainplot="xy",b.mainplotinfo=o),$re.rangePlot(r,b,ote(a,l))})}function ote(e,r){for(var t=[],n=0;n{"use strict";var fte=gr(),cte=Am(),vte=m4(),b4=kR();FR.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:fte.extendFlat({},cte,{yaxis:vte})}}},layoutAttributes:Am(),handleDefaults:qR(),calcAutorange:ER(),draw:NR(),isVisible:b4.isVisible,makeData:b4.makeData,autoMarginOpts:b4.autoMarginOpts}});var Dm=ne((rve,BR)=>{"use strict";var hte=$a(),HR=cl(),dte=bn().templatedArray,pte=dte("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});BR.exports={visible:{valType:"boolean",editType:"plot"},buttons:pte,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:hte({editType:"plot"}),bgcolor:{valType:"color",dflt:HR.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:HR.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var _4=ne((tve,OR)=>{"use strict";OR.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var GR=ne((nve,YR)=>{"use strict";var Em=gr(),gte=Pt(),mte=bn(),yte=gl(),UR=Dm(),x4=_4();YR.exports=function(r,t,n,a,i){var o=r.rangeselector||{},l=mte.newContainer(t,"rangeselector");function s(d,m){return Em.coerce(o,l,UR,d,m)}var u=yte(o,l,{name:"buttons",handleItemDefaults:bte,calendar:i}),f=s("visible",u.length>0);if(f){var v=_te(t,n,a);s("x",v[0]),s("y",v[1]),Em.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Em.coerceFont(s,"font",n.font);var h=s("bgcolor");s("activecolor",gte.contrast(h,x4.lightAmount,x4.darkAmount)),s("bordercolor"),s("borderwidth")}};function bte(e,r,t,n){var a=n.calendar;function i(s,u){return Em.coerce(e,r,UR.buttons,s,u)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(a&&a!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function _te(e,r,t){for(var n=t.filter(function(l){return r[l].anchor===e._id}),a=0,i=0;i{"use strict";var xte=xy(),wte=gr().titleCase;VR.exports=function(r,t){var n=r._name,a={};if(t.step==="all")a[n+".autorange"]=!0;else{var i=Mte(r,t);a[n+".range[0]"]=i[0],a[n+".range[1]"]=i[1]}return a};function Mte(e,r){var t=e.range,n=new Date(e.r2l(t[1])),a=r.step,i=xte["utc"+wte(a)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(n,-o));break;case"todate":var s=i.offset(n,-o);l=e.l2r(+i.ceil(s));break}var u=t[1];return[l,u]}});var ez=ne((ive,QR)=>{"use strict";var Rm=kt(),Ate=dt(),Tte=fa(),ZR=Pt(),KR=fn(),lu=gr(),XR=lu.strTranslate,Pm=ci(),kte=ua(),A4=Ka(),jR=A4.LINE_SPACING,JR=A4.FROM_TL,$R=A4.FROM_BR,M4=_4(),Ste=WR();QR.exports=function(r){var t=r._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(Cte(r),Lte);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(a){var i=Rm.select(this),o=a,l=o.rangeselector,s=i.selectAll("g.button").data(lu.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Rm.select(this),v=Ste(o,u);u._isActive=qte(o,u,v),f.call(w4,l,u),f.call(Ete,l,u,r),f.on("click",function(){r._dragged||Ate.call("_guiRelayout",r,v)}),f.on("mouseover",function(){u._isHovered=!0,f.call(w4,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(w4,l,u)})}),Rte(r,s,l,o._name,i)})};function Cte(e){for(var r=kte.list(e,"x",!0),t=[],n=0;n{"use strict";rz.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Dm()}}},layoutAttributes:Dm(),handleDefaults:GR(),draw:ez()}});var zm=ne(T4=>{"use strict";var nz=la().extendFlat;T4.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",a=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",o={x:nz({},t,{}),y:nz({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};T4.defaults=function(e,r,t,n){var a=n&&n.x||[0,1],i=n&&n.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l{"use strict";var zte=gr(),Nte=x0().counter,Fte=zm().attributes,az=Pa().idRegex,Ite=bn(),k4={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Nte("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[az.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[az.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Fte({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Nm(e,r,t){var n=r[t+"axes"],a=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(n))return n;if(a.length)return a}function Hte(e,r){var t=e.grid||{},n=Nm(r,t,"x"),a=Nm(r,t,"y");if(!e.grid&&!n&&!a)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(n),l=Array.isArray(a),s=o&&n!==t.xaxes&&l&&a!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(l&&(u=a.length),o&&(f=n.length));var v=Ite.newContainer(r,"grid");function h(k,M){return zte.coerce(t,v,k4,k,M)}var d=h("rows",u),m=h("columns",f);if(!(d*m>1)){delete r.grid;return}if(!i&&!o&&!l){var p=h("pattern")==="independent";p&&(i=!0)}v._hasSubplotGrid=i;var y=h("roworder"),b=y==="top to bottom",C=i?.2:.1,x=i?.3:.1,_,A;s&&r._splomGridDflt&&(_=r._splomGridDflt.xside,A=r._splomGridDflt.yside),v._domains={x:iz("x",h,C,_,m),y:iz("y",h,x,A,d,b)}}function iz(e,r,t,n,a,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",n);for(var s=new Array(a),u=l[0],f=(l[1]-u)/(a-o),v=f*(1-o),h=0;h{"use strict";uz.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var vz=ne((fve,cz)=>{"use strict";var fz=Ot(),Ote=dt(),Ute=gr(),Yte=bn(),Gte=S4();cz.exports=function(e,r,t,n){var a="error_"+n.axis,i=Yte.newContainer(r,a),o=e[a]||{};function l(m,p){return Ute.coerce(o,i,Gte,m,p)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=l("visible",s);if(u!==!1){var f=l("type","array"in o?"data":"percent"),v=!0;f!=="sqrt"&&(v=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(l("array"),l("traceref"),v||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),v||l("valueminus"));var h="copy_"+n.inherit+"style";if(n.inherit){var d=r["error_"+n.inherit];(d||{}).visible&&l(h,!(o.color||fz(o.thickness)||fz(o.width)))}(!n.inherit||!i[h])&&(l("color",t),l("thickness"),l("width",Ote.traceIs(r,"gl3d")?0:4))}}});var C4=ne((cve,dz)=>{"use strict";dz.exports=function(r){var t=r.type,n=r.symmetric;if(t==="data"){var a=r.array||[];if(n)return function(u,f){var v=+a[f];return[v,v]};var i=r.arrayminus||[];return function(u,f){var v=+a[f],h=+i[f];return!isNaN(v)||!isNaN(h)?[h||0,v||0]:[NaN,NaN]}}else{var o=hz(t,r.value),l=hz(t,r.valueminus);return n||r.valueminus===void 0?function(u){var f=o(u);return[f,f]}:function(u){return[l(u),o(u)]}}};function hz(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var mz=ne((vve,gz)=>{"use strict";var L4=Ot(),Vte=dt(),q4=Dn(),Wte=gr(),Zte=C4();gz.exports=function(r){for(var t=r.calcdata,n=0;n{"use strict";var yz=kt(),vf=Ot(),Xte=fn(),jte=Qa();bz.exports=function(r,t,n,a){var i,o=n.xaxis,l=n.yaxis,s=a&&a.duration>0,u=r._context.staticPlot;t.each(function(f){var v=f[0].trace,h=v.error_x||{},d=v.error_y||{},m;v.ids&&(m=function(C){return C.id});var p=jte.hasMarkers(v)&&v.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var y=yz.select(this).selectAll("g.errorbar").data(f,m);if(y.exit().remove(),!!f.length){h.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var b=y.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(a.duration).style("opacity",1),Xte.setClipUrl(y,n.layerClipId,r),y.each(function(C){var x=yz.select(this),_=Jte(C,o,l);if(!(p&&!C.vis)){var A,k=x.select("path.yerror");if(d.visible&&vf(_.x)&&vf(_.yh)&&vf(_.ys)){var M=d.width;A="M"+(_.x-M)+","+_.yh+"h"+2*M+"m-"+M+",0V"+_.ys,_.noYS||(A+="m-"+M+",0h"+2*M),i=!k.size(),i?k=x.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(a.duration).ease(a.easing)),k.attr("d",A)}else k.remove();var D=x.select("path.xerror");if(h.visible&&vf(_.y)&&vf(_.xh)&&vf(_.xs)){var z=(h.copy_ystyle?d:h).width;A="M"+_.xh+","+(_.y-z)+"v"+2*z+"m0,-"+z+"H"+_.xs,_.noXS||(A+="m0,-"+z+"v"+2*z),i=!D.size(),i?D=x.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(D=D.transition().duration(a.duration).ease(a.easing)),D.attr("d",A)}else D.remove()}})}})};function Jte(e,r,t){var n={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(n.yh=t.c2p(e.yh),n.ys=t.c2p(e.ys),vf(n.ys)||(n.noYS=!0,n.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=r.c2p(e.xh),n.xs=r.c2p(e.xs),vf(n.xs)||(n.noXS=!0,n.xs=r.c2p(e.xs,!0))),n}});var Mz=ne((dve,wz)=>{"use strict";var $te=kt(),xz=Pt();wz.exports=function(r){r.each(function(t){var n=t[0].trace,a=n.error_y||{},i=n.error_x||{},o=$te.select(this);o.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(xz.stroke,a.color),i.copy_ystyle&&(i=a),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(xz.stroke,i.color)})}});var kz=ne((pve,Tz)=>{"use strict";var Dh=gr(),Az=_o().overrideAll,Eh=S4(),Fc={error_x:Dh.extendFlat({},Eh),error_y:Dh.extendFlat({},Eh)};delete Fc.error_x.copy_zstyle;delete Fc.error_y.copy_zstyle;delete Fc.error_y.copy_ystyle;var Ph={error_x:Dh.extendFlat({},Eh),error_y:Dh.extendFlat({},Eh),error_z:Dh.extendFlat({},Eh)};delete Ph.error_x.copy_ystyle;delete Ph.error_y.copy_ystyle;delete Ph.error_z.copy_ystyle;delete Ph.error_z.copy_zstyle;Tz.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Fc,bar:Fc,histogram:Fc,scatter3d:Az(Ph,"calc","nested"),scattergl:Az(Fc,"calc","nested")}},supplyDefaults:vz(),calc:mz(),makeComputeError:C4(),plot:_z(),style:Mz(),hoverInfo:Kte};function Kte(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var Cz=ne((gve,Sz)=>{"use strict";Sz.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var zz=ne((mve,Rz)=>{"use strict";var hf=kt(),D4=Jl(),Im=fa(),Lz=dt(),su=Dn(),Fm=To(),Fo=gr(),ql=Fo.strTranslate,Pz=la().extendFlat,E4=Ku(),Ll=fn(),P4=Pt(),Qte=A1(),ene=ci(),rne=es().flipScale,tne=Ob(),nne=Ub(),ane=pl(),R4=Ka(),qz=R4.LINE_SPACING,Dz=R4.FROM_TL,Ez=R4.FROM_BR,En=Cz().cn;function ine(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+En.colorbar).data(one(e),function(n){return n._id});t.enter().append("g").attr("class",function(n){return n._id}).classed(En.colorbar,!0),t.each(function(n){var a=hf.select(this);Fo.ensureSingle(a,"rect",En.cbbg),Fo.ensureSingle(a,"g",En.cbfills),Fo.ensureSingle(a,"g",En.cblines),Fo.ensureSingle(a,"g",En.cbaxis,function(o){o.classed(En.crisp,!0)}),Fo.ensureSingle(a,"g",En.cbtitleunshift,function(o){o.append("g").classed(En.cbtitle,!0)}),Fo.ensureSingle(a,"rect",En.cboutline);var i=lne(a,n,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&sne(a,n,e)}),t.exit().each(function(n){Im.autoMargin(e,n._id)}).remove(),t.order()}function one(e){var r=e._fullLayout,t=e.calcdata,n=[],a,i,o,l;function s(x){return Pz(x,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof l.calc=="function"?l.calc(e,o,a):(a._fillgradient=i.reversescale?rne(i.colorscale):i.colorscale,a._zrange=[i[l.min],i[l.max]])}for(var f=0;f1){var ee=Math.pow(10,Math.floor(Math.log(U)/Math.LN10));we*=ee*Fo.roundUp(U/ee,[2,5,10]),(Math.abs(W.start)/W.size+1e-6)%1<2e-6&&(se.tick0=0)}se.dtick=we}se.domain=n?[Le+m/_.h,Le+Q-m/_.h]:[Le+d/_.w,Le+Q-d/_.w],se.setScale(),e.attr("transform",ql(Math.round(_.l),Math.round(_.t)));var $=e.select("."+En.cbtitleunshift).attr("transform",ql(-Math.round(_.l),-Math.round(_.t))),Se=se.ticklabelposition,Oe=se.title.font.size,Ie=e.select("."+En.cbaxis),ir,or=0,Ue=0;function tr(dr,Te){var Ye={propContainer:se,propName:r._propPrefix+"title",traceIndex:r._traceIndex,_meta:r._meta,placeholder:x._dfltTitle.colorbar,containerGroup:e.select("."+En.cbtitle)},Ar=dr.charAt(0)==="h"?dr.substr(1):"h"+dr;e.selectAll("."+Ar+",."+Ar+"-math-group").remove(),Qte.draw(t,dr,Pz(Ye,Te||{}))}function ur(){if(n&&me||!n&&!me){var dr,Te;D==="top"&&(dr=d+_.l+fe*p,Te=m+_.t+he*(1-Le-Q)+3+Oe*.75),D==="bottom"&&(dr=d+_.l+fe*p,Te=m+_.t+he*(1-Le)-3-Oe*.25),D==="right"&&(Te=m+_.t+he*y+3+Oe*.75,dr=d+_.l+fe*Le),tr(se._id+"title",{attributes:{x:dr,y:Te,"text-anchor":n?"start":"middle"}})}}function cr(){if(n&&!me||!n&&me){var dr=se.position||0,Te=se._offset+se._length/2,Ye,Ar;if(D==="right")Ar=Te,Ye=_.l+fe*dr+10+Oe*(se.showticklabels?1:.5);else if(Ye=Te,D==="bottom"&&(Ar=_.t+he*dr+10+(Se.indexOf("inside")===-1?se.tickfont.size:0)+(se.ticks!=="intside"&&r.ticklen||0)),D==="top"){var Nr=M.text.split("
").length;Ar=_.t+he*dr+10-re-qz*Oe*Nr}tr((n?"h":"v")+se._id+"title",{avoid:{selection:hf.select(t).selectAll("g."+se._id+"tick"),side:D,offsetTop:n?0:_.t,offsetLeft:n?_.l:0,maxShift:n?x.width:x.height},attributes:{x:Ye,y:Ar,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function Qe(){if(!n&&!me||n&&me){var dr=e.select("."+En.cbtitle),Te=dr.select("text"),Ye=[-s/2,s/2],Ar=dr.select(".h"+se._id+"title-math-group").node(),Nr=15.6;Te.node()&&(Nr=parseInt(Te.node().style.fontSize,10)*qz);var Er;if(Ar?(Er=Ll.bBox(Ar),Ue=Er.width,or=Er.height,or>Nr&&(Ye[1]-=(or-Nr)/2)):Te.node()&&!Te.classed(En.jsPlaceholder)&&(Er=Ll.bBox(Te.node()),Ue=Er.width,or=Er.height),n){if(or){if(or+=5,D==="top")se.domain[1]-=or/_.h,Ye[1]*=-1;else{se.domain[0]+=or/_.h;var Ae=ene.lineCount(Te);Ye[1]+=(1-Ae)*Nr}dr.attr("transform",ql(Ye[0],Ye[1])),se.setScale()}}else Ue&&(D==="right"&&(se.domain[0]+=(Ue+Oe/2)/_.w),dr.attr("transform",ql(Ye[0],Ye[1])),se.setScale())}e.selectAll("."+En.cbfills+",."+En.cblines).attr("transform",n?ql(0,Math.round(_.h*(1-se.domain[1]))):ql(Math.round(_.w*se.domain[0]),0)),Ie.attr("transform",n?ql(0,Math.round(-_.t)):ql(Math.round(-_.l),0));var Xe=e.select("."+En.cbfills).selectAll("rect."+En.cbfill).attr("style","").data(X);Xe.enter().append("rect").classed(En.cbfill,!0).attr("style",""),Xe.exit().remove();var hr=z.map(se.c2p).map(Math.round).sort(function(Or,Cr){return Or-Cr});Xe.each(function(Or,Cr){var ar=[Cr===0?z[0]:(X[Cr]+X[Cr-1])/2,Cr===X.length-1?z[1]:(X[Cr]+X[Cr+1])/2].map(se.c2p).map(Math.round);n&&(ar[1]=Fo.constrain(ar[1]+(ar[1]>ar[0])?1:-1,hr[0],hr[1]));var be=hf.select(this).attr(n?"x":"y",De).attr(n?"y":"x",hf.min(ar)).attr(n?"width":"height",Math.max(re,2)).attr(n?"height":"width",Math.max(hf.max(ar)-hf.min(ar),2));if(r._fillgradient)Ll.gradient(be,t,r._id,n?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var ke=H(Or).replace("e-","");be.attr("fill",D4(ke).toHexString())}});var wr=e.select("."+En.cblines).selectAll("path."+En.cbline).data(k.color&&k.width?V:[]);wr.enter().append("path").classed(En.cbline,!0),wr.exit().remove(),wr.each(function(Or){var Cr=De,ar=Math.round(se.c2p(Or))+k.width/2%1;hf.select(this).attr("d","M"+(n?Cr+","+ar:ar+","+Cr)+(n?"h":"v")+re).call(Ll.lineGroupStyle,k.width,F(Or),k.dash)}),Ie.selectAll("g."+se._id+"tick,path").remove();var mr=De+re+(s||0)/2-(r.ticks==="outside"?1:0),Tr=su.calcTicks(se),Dr=su.getTickSigns(se)[2];return su.drawTicks(t,se,{vals:se.ticks==="inside"?su.clipEnds(se,Tr):Tr,layer:Ie,path:su.makeTickPath(se,mr,Dr),transFn:su.makeTransTickFn(se)}),su.drawLabels(t,se,{vals:Tr,layer:Ie,transFn:su.makeTransTickLabelFn(se),labelFns:su.makeLabelFns(se,mr)})}function pr(){var dr,Te=re+s/2;Se.indexOf("inside")===-1&&(dr=Ll.bBox(Ie.node()),Te+=n?dr.width:dr.height),ir=$.select("text");var Ye=0,Ar=n&&D==="top",Nr=!n&&D==="right",Er=0;if(ir.node()&&!ir.classed(En.jsPlaceholder)){var Ae,Xe=$.select(".h"+se._id+"title-math-group").node();Xe&&(n&&me||!n&&!me)?(dr=Ll.bBox(Xe),Ye=dr.width,Ae=dr.height):(dr=Ll.bBox($.node()),Ye=dr.right-_.l-(n?De:rr),Ae=dr.bottom-_.t-(n?rr:De),!n&&D==="top"&&(Te+=dr.height,Er=dr.height)),Nr&&(ir.attr("transform",ql(Ye/2+Oe/2,0)),Ye*=2),Te=Math.max(Te,n?Ye:Ae)}var hr=(n?d:m)*2+Te+u+s/2,wr=0;!n&&M.text&&h==="bottom"&&y<=0&&(wr=hr/2,hr+=wr,Er+=wr),x._hColorbarMoveTitle=wr,x._hColorbarMoveCBTitle=Er;var mr=u+s,Tr=(n?De:rr)-mr/2-(n?d:0),Dr=(n?rr:De)-(n?K:m+Er-wr);e.select("."+En.cbbg).attr("x",Tr).attr("y",Dr).attr(n?"width":"height",Math.max(hr-wr,2)).attr(n?"height":"width",Math.max(K+mr,2)).call(P4.fill,f).call(P4.stroke,r.bordercolor).style("stroke-width",u);var Or=Nr?Math.max(Ye-10,0):0;e.selectAll("."+En.cboutline).attr("x",(n?De:rr+d)+Or).attr("y",(n?rr+m-K:De)+(Ar?or:0)).attr(n?"width":"height",Math.max(re,2)).attr(n?"height":"width",Math.max(K-(n?2*m+or:2*d+Or),2)).call(P4.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Cr=n?Ne*hr:0,ar=n?0:(1-Fe)*hr-Er;if(Cr=C?_.l-Cr:-Cr,ar=b?_.t-ar:-ar,e.attr("transform",ql(Cr,ar)),!n&&(u||D4(f).getAlpha()&&!D4.equals(x.paper_bgcolor,f))){var be=Ie.selectAll("text"),ke=be[0].length,$e=e.select("."+En.cbbg).node(),Ze=Ll.bBox($e),qr=Ll.getTranslate(e),Hr=2;be.each(function(jt,en){var Jt=0,aa=ke-1;if(en===Jt||en===aa){var rt=Ll.bBox(this),rn=Ll.getTranslate(this),St;if(en===aa){var dn=rt.right+rn.x,pn=Ze.right+qr.x+rr-u-Hr+p;St=pn-dn,St>0&&(St=0)}else if(en===Jt){var an=rt.left+rn.x,vn=Ze.left+qr.x+rr+u+Hr;St=vn-an,St<0&&(St=0)}St&&(ke<3?this.setAttribute("transform","translate("+St+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Pr={},lt=Dz[v],xt=Ez[v],Nt=Dz[h],It=Ez[h],An=hr-re;n?(i==="pixels"?(Pr.y=y,Pr.t=K*Nt,Pr.b=K*It):(Pr.t=Pr.b=0,Pr.yt=y+a*Nt,Pr.yb=y-a*It),l==="pixels"?(Pr.x=p,Pr.l=hr*lt,Pr.r=hr*xt):(Pr.l=An*lt,Pr.r=An*xt,Pr.xl=p-o*lt,Pr.xr=p+o*xt)):(i==="pixels"?(Pr.x=p,Pr.l=K*lt,Pr.r=K*xt):(Pr.l=Pr.r=0,Pr.xl=p+a*lt,Pr.xr=p-a*xt),l==="pixels"?(Pr.y=1-y,Pr.t=hr*Nt,Pr.b=hr*It):(Pr.t=An*Nt,Pr.b=An*It,Pr.yt=y-o*Nt,Pr.yb=y+o*It));var Tn=r.y<.5?"b":"t",cn=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Ft={r:x.width-Tr-Cr,l:Tr+Pr.r,b:x.height-Dr-ar,t:Dr+Pr.b};C&&b?Im.autoMargin(t,r._id,Pr):C?t._fullLayout._reservedMargin[r._id][Tn]=Ft[Tn]:b||n?t._fullLayout._reservedMargin[r._id][cn]=Ft[cn]:t._fullLayout._reservedMargin[r._id][Tn]=Ft[Tn]}return Fo.syncOrAsync([Im.previousPromises,ur,Qe,cr,Im.previousPromises,pr],t)}function sne(e,r,t){var n=r.orientation==="v",a=t._fullLayout,i=a._size,o,l,s;Fm.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),E4(e)},moveFn:function(u,f){e.attr("transform",o+ql(u,f)),l=Fm.align((n?r._uFrac:r._vFrac)+u/i.w,n?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Fm.align((n?r._vFrac:1-r._uFrac)-f/i.h,n?r._lenFrac:r._thickFrac,0,1,r.yanchor);var v=Fm.getCursor(l,s,r.xanchor,r.yanchor);E4(e,v)},doneFn:function(){if(E4(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?Lz.call("_guiRestyle",t,u,r._traceIndex):Lz.call("_guiRelayout",t,u)}}})}function une(e,r,t){var n=r._levels,a=[],i=[],o,l,s=n.end+n.size/100,u=n.size,f=1.001*t[0]-.001*t[1],v=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=n.start+l*u,!(u>0?o>=s:o<=s));l++)o>f&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";Nz.exports={moduleType:"component",name:"colorbar",attributes:Jd(),supplyDefaults:I2(),draw:zz().draw,hasColorbar:S2()}});var Hz=ne((bve,Iz)=>{"use strict";Iz.exports={moduleType:"component",name:"legend",layoutAttributes:P3(),supplyLayoutDefaults:N3(),draw:j3(),style:V3()}});var Oz=ne((_ve,Bz)=>{"use strict";Bz.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var Yz=ne((xve,Uz)=>{"use strict";Uz.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var N4=ne((wve,Zz)=>{"use strict";var cne=dt(),Wz=gr(),z4=Wz.extendFlat,Gz=Wz.extendDeep;function Vz(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function vne(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}Zz.exports=function(r,t){var n,a=r.data,i=r.layout,o=Gz([],a),l=Gz({},i,Vz(t.tileClass)),s=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var u=Object.keys(l);for(n=0;n{"use strict";var hne=Fd().EventEmitter,dne=dt(),pne=gr(),Xz=Sc(),gne=N4(),mne=Vg(),yne=Wg();function bne(e,r){var t=new hne,n=gne(e,{format:"png"}),a=n.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function i(){var l=Xz.getDelay(a._fullLayout);setTimeout(function(){var s=mne(a),u=document.createElement("canvas");u.id=pne.randstr(),t=yne({format:r.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){a&&document.body.removeChild(a)}},l)}var o=Xz.getRedrawFunc(a);return dne.call("_doPlot",a,n.data,n.layout,n.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}jz.exports=bne});var Qz=ne((Ave,Kz)=>{"use strict";var $z=Sc(),_ne={getDelay:$z.getDelay,getRedrawFunc:$z.getRedrawFunc,clone:N4(),toSVG:Vg(),svgToImg:Wg(),toImage:Jz(),downloadImage:hb()};Kz.exports=_ne});var rN=ne(uu=>{"use strict";uu.version=Qh().version;V_();zw();var xne=dt(),Rh=uu.register=xne.register,I4=iq(),eN=Object.keys(I4);for(Hm=0;Hm{"use strict";tN.exports=rN()});var zh=ne((Sve,oN)=>{"use strict";var wne=Vs().hovertemplateAttrs,Mne=Vs().texttemplateAttrs,Ane=Y5(),ds=kc(),Tne=bo(),aN=H0(),kne=Kl().dash,Ic=la().extendFlat,Sne=_o().overrideAll,Io=ds.marker,iN=ds.line,Cne=Io.line;oN.exports=Sne({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:Ic({},ds.mode,{dflt:"markers"}),text:Ic({},ds.text,{}),texttemplate:Mne({editType:"plot"},{keys:["lat","lon","location","text"]}),hovertext:Ic({},ds.hovertext,{}),textfont:ds.textfont,textposition:ds.textposition,line:{color:iN.color,width:iN.width,dash:kne},connectgaps:ds.connectgaps,marker:Ic({symbol:Io.symbol,opacity:Io.opacity,angle:Io.angle,angleref:Ic({},Io.angleref,{values:["previous","up","north"]}),standoff:Io.standoff,size:Io.size,sizeref:Io.sizeref,sizemin:Io.sizemin,sizemode:Io.sizemode,colorbar:Io.colorbar,line:Ic({width:Cne.width},aN("marker.line")),gradient:Io.gradient},aN("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:Ane(),selected:ds.selected,unselected:ds.unselected,hoverinfo:Ic({},Tne.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:wne()},"calc","nested")});var sN=ne((Cve,lN)=>{"use strict";var H4=gr(),B4=Qa(),Lne=gb(),qne=mb(),Dne=yb(),Ene=bb(),Pne=zh();lN.exports=function(r,t,n,a){function i(d,m){return H4.coerce(r,t,Pne,d,m)}var o=i("locations"),l;if(o&&o.length){var s=i("geojson"),u;(typeof s=="string"&&s!==""||H4.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);f==="geojson-id"&&i("featureidkey"),l=o.length}else{var v=i("lon")||[],h=i("lat")||[];l=Math.min(v.length,h.length)}if(!l){t.visible=!1;return}t._length=l,i("text"),i("hovertext"),i("hovertemplate"),i("mode"),B4.hasMarkers(t)&&Lne(r,t,n,a,i,{gradient:!0}),B4.hasLines(t)&&(qne(r,t,n,a,i),i("connectgaps")),B4.hasText(t)&&(i("texttemplate"),Dne(r,t,a,i)),i("fill"),t.fill!=="none"&&Ene(r,t,n,i),H4.coerceSelectionMarkerOpacity(t,i)}});var cN=ne((Lve,fN)=>{"use strict";var uN=Dn();fN.exports=function(r,t,n){var a={},i=n[t.geo]._subplot,o=i.mockAxis,l=r.lonlat;return a.lonLabel=uN.tickText(o,o.c2l(l[0]),!0).text,a.latLabel=uN.tickText(o,o.c2l(l[1]),!0).text,a}});var gN=ne((qve,pN)=>{"use strict";var O4=Ot(),vN=Rn().BADNUM,Rne=wb(),zne=ph(),Nne=Qg(),Fne=gr().isArrayOrTypedArray,hN=gr()._;function dN(e){return e&&typeof e=="string"}pN.exports=function(r,t){var n=Fne(t.locations),a=n?t.locations.length:t._length,i=new Array(a),o;t.geojson?o=function(h){return dN(h)||O4(h)}:o=dN;for(var l=0;l{"use strict";Ya.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"};Ya.axesNames=["lonaxis","lataxis"];Ya.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};Ya.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};Ya.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}};Ya.clipPad=.001;Ya.precision=.1;Ya.landColor="#F0DC82";Ya.waterColor="#3399FF";Ya.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};Ya.sphereSVG={type:"Sphere"};Ya.fillLayers={ocean:1,land:1,lakes:1};Ya.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};Ya.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];Ya.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];Ya.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var U4=ne((Om,mN)=>{(function(e,r){typeof Om=="object"&&typeof mN!="undefined"?r(Om):(e=e||self,r(e.topojson=e.topojson||{}))})(Om,function(e){"use strict";function r(x){return x}function t(x){if(x==null)return r;var _,A,k=x.scale[0],M=x.scale[1],D=x.translate[0],z=x.translate[1];return function(F,H){H||(_=A=0);var W=2,B=F.length,X=new Array(B);for(X[0]=(_+=F[0])*k+D,X[1]=(A+=F[1])*M+z;WD&&(D=W[0]),W[1]z&&(z=W[1])}function H(W){switch(W.type){case"GeometryCollection":W.geometries.forEach(H);break;case"Point":F(W.coordinates);break;case"MultiPoint":W.coordinates.forEach(F);break}}x.arcs.forEach(function(W){for(var B=-1,X=W.length,V;++BD&&(D=V[0]),V[1]z&&(z=V[1])});for(A in x.objects)H(x.objects[A]);return[k,M,D,z]}function a(x,_){for(var A,k=x.length,M=k-_;M<--k;)A=x[M],x[M++]=x[k],x[k]=A}function i(x,_){return typeof _=="string"&&(_=x.objects[_]),_.type==="GeometryCollection"?{type:"FeatureCollection",features:_.geometries.map(function(A){return o(x,A)})}:o(x,_)}function o(x,_){var A=_.id,k=_.bbox,M=_.properties==null?{}:_.properties,D=l(x,_);return A==null&&k==null?{type:"Feature",properties:M,geometry:D}:k==null?{type:"Feature",id:A,properties:M,geometry:D}:{type:"Feature",id:A,bbox:k,properties:M,geometry:D}}function l(x,_){var A=t(x.transform),k=x.arcs;function M(B,X){X.length&&X.pop();for(var V=k[B<0?~B:B],re=0,te=V.length;re1)k=v(x,_,A);else for(M=0,k=new Array(D=x.arcs.length);M1)for(var X=1,V=F(W[0]),re,te;XV&&(te=W[0],W[0]=W[X],W[X]=te,V=re);return W}).filter(function(H){return H.length>0})}}function p(x,_){for(var A=0,k=x.length;A>>1;x[M]<_?A=M+1:k=M}return A}function y(x){var _={},A=x.map(function(){return[]});function k(K,Q){K.forEach(function(fe){fe<0&&(fe=~fe);var he=_[fe];he?he.push(Q):_[fe]=[Q]})}function M(K,Q){K.forEach(function(fe){k(fe,Q)})}function D(K,Q){K.type==="GeometryCollection"?K.geometries.forEach(function(fe){D(fe,Q)}):K.type in z&&z[K.type](K.arcs,Q)}var z={LineString:k,MultiLineString:M,Polygon:M,MultiPolygon:function(K,Q){K.forEach(function(fe){M(fe,Q)})}};x.forEach(D);for(var F in _)for(var H=_[F],W=H.length,B=0;B=2))throw new Error("n must be \u22652");H=x.bbox||n(x);var A=H[0],k=H[1],M=H[2],D=H[3],z;_={scale:[M-A?(M-A)/(z-1):1,D-k?(D-k)/(z-1):1],translate:[A,k]}}else H=x.bbox;var F=b(_),H,W,B=x.objects,X={};function V(K){return F(K)}function re(K){var Q;switch(K.type){case"GeometryCollection":Q={type:"GeometryCollection",geometries:K.geometries.map(re)};break;case"Point":Q={type:"Point",coordinates:V(K.coordinates)};break;case"MultiPoint":Q={type:"MultiPoint",coordinates:K.coordinates.map(V)};break;default:return K}return K.id!=null&&(Q.id=K.id),K.bbox!=null&&(Q.bbox=K.bbox),K.properties!=null&&(Q.properties=K.properties),Q}function te(K){var Q=0,fe=1,he=K.length,De,Ne=new Array(he);for(Ne[0]=F(K[0],0);++Q{"use strict";var Y4=yN.exports={},Ine=Nh().locationmodeToLayer,Hne=U4().feature;Y4.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};Y4.getTopojsonPath=function(e,r){return e+=e.endsWith("/")?"":"/",`${e}${r}.json`};Y4.getTopojsonFeatures=function(e,r){var t=Ine[e.locationmode],n=r.objects[t];return Hne(r,n).features}});var bN=ne(Fh=>{"use strict";var Bne=Rn().BADNUM;Fh.calcTraceToLineCoords=function(e){for(var r=e[0].trace,t=r.connectgaps,n=[],a=[],i=0;i0&&(n.push(a),a=[])}return a.length>0&&n.push(a),n};Fh.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};Fh.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var r=new Array(e.length),t=0;t{_N.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var Vm=ne(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});var Hi=63710088e-1,V4={centimeters:Hi*100,centimetres:Hi*100,degrees:360/(2*Math.PI),feet:Hi*3.28084,inches:Hi*39.37,kilometers:Hi/1e3,kilometres:Hi/1e3,meters:Hi,metres:Hi,miles:Hi/1609.344,millimeters:Hi*1e3,millimetres:Hi*1e3,nauticalmiles:Hi/1852,radians:1,yards:Hi*1.0936},G4={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function df(e,r,t={}){let n={type:"Feature"};return(t.id===0||t.id)&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.properties=r||{},n.geometry=e,n}function One(e,r,t={}){switch(e){case"Point":return W4(r).geometry;case"LineString":return X4(r).geometry;case"Polygon":return Z4(r).geometry;case"MultiPoint":return MN(r).geometry;case"MultiLineString":return wN(r).geometry;case"MultiPolygon":return AN(r).geometry;default:throw new Error(e+" is invalid")}}function W4(e,r,t={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Ym(e[0])||!Ym(e[1]))throw new Error("coordinates must contain numbers");return df({type:"Point",coordinates:e},r,t)}function Une(e,r,t={}){return Gm(e.map(n=>W4(n,r)),t)}function Z4(e,r,t={}){for(let a of e){if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(a[a.length-1].length!==a[0].length)throw new Error("First and last Position are not equivalent.");for(let i=0;iZ4(n,r)),t)}function X4(e,r,t={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return df({type:"LineString",coordinates:e},r,t)}function Gne(e,r,t={}){return Gm(e.map(n=>X4(n,r)),t)}function Gm(e,r={}){let t={type:"FeatureCollection"};return r.id&&(t.id=r.id),r.bbox&&(t.bbox=r.bbox),t.features=e,t}function wN(e,r,t={}){return df({type:"MultiLineString",coordinates:e},r,t)}function MN(e,r,t={}){return df({type:"MultiPoint",coordinates:e},r,t)}function AN(e,r,t={}){return df({type:"MultiPolygon",coordinates:e},r,t)}function Vne(e,r,t={}){return df({type:"GeometryCollection",geometries:e},r,t)}function Wne(e,r=0){if(r&&!(r>=0))throw new Error("precision must be a positive number");let t=Math.pow(10,r||0);return Math.round(e*t)/t}function TN(e,r="kilometers"){let t=V4[r];if(!t)throw new Error(r+" units is invalid");return e*t}function j4(e,r="kilometers"){let t=V4[r];if(!t)throw new Error(r+" units is invalid");return e/t}function Zne(e,r){return kN(j4(e,r))}function Xne(e){let r=e%360;return r<0&&(r+=360),r}function jne(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function kN(e){return e%(2*Math.PI)*180/Math.PI}function Jne(e){return e%360*Math.PI/180}function $ne(e,r="kilometers",t="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return TN(j4(e,r),t)}function Kne(e,r="meters",t="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=G4[r];if(!n)throw new Error("invalid original units");let a=G4[t];if(!a)throw new Error("invalid final units");return e/n*a}function Ym(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function Qne(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function eae(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(r=>{if(!Ym(r))throw new Error("bbox must only contain numbers")})}function rae(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}hn.areaFactors=G4;hn.azimuthToBearing=jne;hn.bearingToAzimuth=Xne;hn.convertArea=Kne;hn.convertLength=$ne;hn.degreesToRadians=Jne;hn.earthRadius=Hi;hn.factors=V4;hn.feature=df;hn.featureCollection=Gm;hn.geometry=One;hn.geometryCollection=Vne;hn.isNumber=Ym;hn.isObject=Qne;hn.lengthToDegrees=Zne;hn.lengthToRadians=j4;hn.lineString=X4;hn.lineStrings=Gne;hn.multiLineString=wN;hn.multiPoint=MN;hn.multiPolygon=AN;hn.point=W4;hn.points=Une;hn.polygon=Z4;hn.polygons=Yne;hn.radiansToDegrees=kN;hn.radiansToLength=TN;hn.round=Wne;hn.validateBBox=eae;hn.validateId=rae});var Zm=ne(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});var ii=Vm();function Ih(e,r,t){if(e!==null)for(var n,a,i,o,l,s,u,f=0,v=0,h,d=e.type,m=d==="FeatureCollection",p=d==="Feature",y=m?e.features.length:1,b=0;bs||m>u||p>f){l=v,s=n,u=m,f=p,i=0;return}var y=ii.lineString.call(void 0,[l,v],t.properties);if(r(y,n,a,p,i)===!1)return!1;i++,l=v})===!1)return!1}}})}function sae(e,r,t){var n=t,a=!1;return LN(e,function(i,o,l,s,u){a===!1&&t===void 0?n=i:n=r(n,i,o,l,s,u),a=!0}),n}function qN(e,r){if(!e)throw new Error("geojson is required");Wm(e,function(t,n,a){if(t.geometry!==null){var i=t.geometry.type,o=t.geometry.coordinates;switch(i){case"LineString":if(r(t,n,a,0,0)===!1)return!1;break;case"Polygon":for(var l=0;l{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});var DN=Vm(),vae=Zm();function RN(e){return vae.geomReduce.call(void 0,e,(r,t)=>r+hae(t),0)}function hae(e){let r=0,t;switch(e.type){case"Polygon":return EN(e.coordinates);case"MultiPolygon":for(t=0;t0){r+=Math.abs(PN(e[0]));for(let t=1;t=r?(n+2)%r:n+2],l=a[0]*$4,s=i[1]*$4,u=o[0]*$4;t+=(u-l)*Math.sin(s),n++}return t*dae}var pae=RN;Xm.area=RN;Xm.default=pae});var FN=ne(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0});var gae=Vm(),mae=Zm();function NN(e,r={}){let t=0,n=0,a=0;return mae.coordEach.call(void 0,e,function(i){t+=i[0],n+=i[1],a++},!0),gae.point.call(void 0,[t/a,n/a],r.properties)}var yae=NN;jm.centroid=NN;jm.default=yae});var HN=ne(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});var bae=Zm();function IN(e,r={}){if(e.bbox!=null&&r.recompute!==!0)return e.bbox;let t=[1/0,1/0,-1/0,-1/0];return bae.coordEach.call(void 0,e,n=>{t[0]>n[0]&&(t[0]=n[0]),t[1]>n[1]&&(t[1]=n[1]),t[2]{"use strict";var xae=kt(),UN=xN(),{area:wae}=zN(),{centroid:Mae}=FN(),{bbox:Aae}=HN(),BN=kd(),qv=Ru(),Tae=Gs(),kae=$v(),$m=yg(),ON=Object.keys(UN),Sae={"ISO-3":BN,"USA-states":BN,"country names":Cae};function Cae(e){for(var r=0;r0&&f[v+1][0]<0)return v;return null}switch(n==="RUS"||n==="FJI"?i=function(f){var v;if(u(f)===null)v=f;else for(v=new Array(f.length),s=0;sv?h[d++]=[f[s][0]+360,f[s][1]]:s===v?(h[d++]=f[s],h[d++]=[f[s][0],-90]):h[d++]=f[s];var m=$m.tester(h);m.pts.pop(),a.push(m)}:i=function(f){a.push($m.tester(f))},r.type){case"MultiPolygon":for(o=0;o0?m.properties.ct=Eae(m):m.properties.ct=[NaN,NaN],h.fIn=f,h.fOut=m,a.push(m)}else qv.log(["Location",h.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete n[v]}switch(t.type){case"FeatureCollection":var s=t.features;for(i=0;ia&&(a=l,t=o)}else t=r;return Mae(t).geometry.coordinates}function Pae(e){var r=window.PlotlyGeoAssets||{},t=[];function n(s){return new Promise(function(u,f){xae.json(s,function(v,h){if(v){delete r[s];var d=v.status===404?'GeoJSON at URL "'+s+'" does not exist.':"Unexpected error while fetching from "+s;return f(new Error(d))}return r[s]=h,u(h)})})}function a(s){return new Promise(function(u,f){var v=0,h=setInterval(function(){if(r[s]&&r[s]!=="pending")return clearInterval(h),u(r[s]);if(v>100)return clearInterval(h),f("Unexpected error while fetching from "+s);v++},50)})}for(var i=0;i{"use strict";var zae=kt(),Nae=fn(),VN=Pt(),WN=_h(),Fae=WN.stylePoints,Iae=WN.styleText;ZN.exports=function(r,t){t&&Hae(r,t)};function Hae(e,r){var t=r[0].trace,n=r[0].node3;n.style("opacity",r[0].trace.opacity),Fae(n,t,e),Iae(n,t,e),n.selectAll("path.js-line").style("fill","none").each(function(a){var i=zae.select(this),o=a.trace,l=o.line||{};i.call(VN.stroke,l.color).call(Nae.dashLine,l.dash||"",l.width||0),o.fill!=="none"&&i.call(VN.fill,o.fillcolor)})}});var t_=ne((Uve,JN)=>{"use strict";var XN=kt(),ey=gr(),Bae=Um().getTopojsonFeatures,Q4=bN(),Qm=Km(),jN=Ju().findExtremes,r_=Rn().BADNUM,Oae=em().calcMarkerSize,e_=Qa(),Uae=K4();function Yae(e,r,t){var n=r.layers.frontplot.select(".scatterlayer"),a=ey.makeTraceGroups(n,t,"trace scattergeo");function i(o,l){o.lonlat[0]===r_&&XN.select(l).remove()}a.selectAll("*").remove(),a.each(function(o){var l=XN.select(this),s=o[0].trace;if(e_.hasLines(s)||s.fill!=="none"){var u=Q4.calcTraceToLineCoords(o),f=s.fill!=="none"?Q4.makePolygon(u):Q4.makeLine(u);l.selectAll("path.js-line").data([{geojson:f,trace:s}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}e_.hasMarkers(s)&&l.selectAll("path.point").data(ey.identity).enter().append("path").classed("point",!0).each(function(v){i(v,this)}),e_.hasText(s)&&l.selectAll("g").data(ey.identity).enter().append("g").append("text").each(function(v){i(v,this)}),Uae(e,o)})}function Gae(e,r){var t=e[0].trace,n=r[t.geo],a=n._subplot,i=t._length,o,l;if(ey.isArrayOrTypedArray(t.locations)){var s=t.locationmode,u=s==="geojson-id"?Qm.extractTraceFeature(e):Bae(t,a.topojson);for(o=0;o{"use strict";var Vae=ss(),Wae=Rn().BADNUM,Zae=Fb(),Xae=gr().fillText,jae=zh();$N.exports=function(r,t,n){var a=r.cd,i=a[0].trace,o=r.xa,l=r.ya,s=r.subplot,u=s.projection.isLonLatOverEdges,f=s.project;function v(C){var x=C.lonlat;if(x[0]===Wae||u(x))return 1/0;var _=f(x),A=f([t,n]),k=Math.abs(_[0]-A[0]),M=Math.abs(_[1]-A[1]),D=Math.max(3,C.mrc||0);return Math.max(Math.sqrt(k*k+M*M)-D,1-3/D)}if(Vae.getClosest(a,v,r),r.index!==!1){var h=a[r.index],d=h.lonlat,m=[o.c2p(d),l.c2p(d)],p=h.mrc||1;r.x0=m[0]-p,r.x1=m[0]+p,r.y0=m[1]-p,r.y1=m[1]+p,r.loc=h.loc,r.lon=d[0],r.lat=d[1];var y={};y[i.geo]={_subplot:s};var b=i._module.formatLabels(h,i,y);return r.lonLabel=b.lonLabel,r.latLabel=b.latLabel,r.color=Zae(i,h),r.extraText=Jae(i,h,r,a[0].t.labels),r.hovertemplate=i.hovertemplate,[r]}};function Jae(e,r,t,n){if(e.hovertemplate)return;var a=r.hi||e.hoverinfo,i=a==="all"?jae.hoverinfo.flags:a.split("+"),o=i.indexOf("location")!==-1&&Array.isArray(e.locations),l=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,u=i.indexOf("text")!==-1,f=[];function v(h){return h+"\xB0"}return o?f.push(r.loc):l&&s?f.push("("+v(t.latLabel)+", "+v(t.lonLabel)+")"):l?f.push(n.lon+v(t.lonLabel)):s&&f.push(n.lat+v(t.latLabel)),u&&Xae(r,e,f),f.join("
")}});var eF=ne((Gve,QN)=>{"use strict";QN.exports=function(r,t,n,a,i){r.lon=t.lon,r.lat=t.lat,r.location=t.loc?t.loc:null;var o=a[i];return o.fIn&&o.fIn.properties&&(r.properties=o.fIn.properties),r}});var nF=ne((Vve,tF)=>{"use strict";var rF=Qa(),$ae=Rn().BADNUM;tF.exports=function(r,t){var n=r.cd,a=r.xaxis,i=r.yaxis,o=[],l=n[0].trace,s,u,f,v,h,d=!rF.hasMarkers(l)&&!rF.hasText(l);if(d)return[];if(t===!1)for(h=0;h{(function(e,r){r(typeof ry=="object"&&typeof aF!="undefined"?ry:e.d3=e.d3||{})})(ry,function(e){"use strict";function r(se,me){return seme?1:se>=me?0:NaN}function t(se){return se.length===1&&(se=n(se)),{left:function(me,we,pe,U){for(pe==null&&(pe=0),U==null&&(U=me.length);pe>>1;se(me[ee],we)<0?pe=ee+1:U=ee}return pe},right:function(me,we,pe,U){for(pe==null&&(pe=0),U==null&&(U=me.length);pe>>1;se(me[ee],we)>0?U=ee:pe=ee+1}return pe}}}function n(se){return function(me,we){return r(se(me),we)}}var a=t(r),i=a.right,o=a.left;function l(se,me){me==null&&(me=s);for(var we=0,pe=se.length-1,U=se[0],ee=new Array(pe<0?0:pe);wese?1:me>=se?0:NaN}function v(se){return se===null?NaN:+se}function h(se,me){var we=se.length,pe=0,U=-1,ee=0,$,Se,Oe=0;if(me==null)for(;++U1)return Oe/(pe-1)}function d(se,me){var we=h(se,me);return we&&Math.sqrt(we)}function m(se,me){var we=se.length,pe=-1,U,ee,$;if(me==null){for(;++pe=U)for(ee=$=U;++peU&&(ee=U),$=U)for(ee=$=U;++peU&&(ee=U),$0)return[se];if((pe=me0)for(se=Math.ceil(se/Se),me=Math.floor(me/Se),$=new Array(ee=Math.ceil(me-se+1));++U=0?(ee>=A?10:ee>=k?5:ee>=M?2:1)*Math.pow(10,U):-Math.pow(10,-U)/(ee>=A?10:ee>=k?5:ee>=M?2:1)}function F(se,me,we){var pe=Math.abs(me-se)/Math.max(0,we),U=Math.pow(10,Math.floor(Math.log(pe)/Math.LN10)),ee=pe/U;return ee>=A?U*=10:ee>=k?U*=5:ee>=M&&(U*=2),meor;)Ue.pop(),--tr;var ur=new Array(tr+1),cr;for(ee=0;ee<=tr;++ee)cr=ur[ee]=[],cr.x0=ee>0?Ue[ee-1]:ir,cr.x1=ee=1)return+we(se[pe-1],pe-1,se);var pe,U=(pe-1)*me,ee=Math.floor(U),$=+we(se[ee],ee,se),Se=+we(se[ee+1],ee+1,se);return $+(Se-$)*(U-ee)}}function X(se,me,we){return se=b.call(se,v).sort(r),Math.ceil((we-me)/(2*(B(se,.75)-B(se,.25))*Math.pow(se.length,-1/3)))}function V(se,me,we){return Math.ceil((we-me)/(3.5*d(se)*Math.pow(se.length,-1/3)))}function re(se,me){var we=se.length,pe=-1,U,ee;if(me==null){for(;++pe=U)for(ee=U;++peee&&(ee=U)}else for(;++pe=U)for(ee=U;++peee&&(ee=U);return ee}function te(se,me){var we=se.length,pe=we,U=-1,ee,$=0;if(me==null)for(;++U=0;)for($=se[me],we=$.length;--we>=0;)ee[--U]=$[we];return ee}function fe(se,me){var we=se.length,pe=-1,U,ee;if(me==null){for(;++pe=U)for(ee=U;++peU&&(ee=U)}else for(;++pe=U)for(ee=U;++peU&&(ee=U);return ee}function he(se,me){for(var we=me.length,pe=new Array(we);we--;)pe[we]=se[me[we]];return pe}function De(se,me){if(we=se.length){var we,pe=0,U=0,ee,$=se[U];for(me==null&&(me=r);++pe{(function(e,r){typeof ty=="object"&&typeof iF!="undefined"?r(ty,n_()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(ty,function(e,r){"use strict";function t(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(I){i(a,I,this.t),i(this,a.s,this.s),this.s?this.t+=a.t:this.s=a.t},valueOf:function(){return this.s}};var a=new n;function i(I,J,ce){var oe=I.s=J+ce,Me=oe-J,Be=oe-Me;I.t=J-Be+(ce-Me)}var o=1e-6,l=1e-12,s=Math.PI,u=s/2,f=s/4,v=s*2,h=180/s,d=s/180,m=Math.abs,p=Math.atan,y=Math.atan2,b=Math.cos,C=Math.ceil,x=Math.exp,_=Math.log,A=Math.pow,k=Math.sin,M=Math.sign||function(I){return I>0?1:I<0?-1:0},D=Math.sqrt,z=Math.tan;function F(I){return I>1?0:I<-1?s:Math.acos(I)}function H(I){return I>1?u:I<-1?-u:Math.asin(I)}function W(I){return(I=k(I/2))*I}function B(){}function X(I,J){I&&re.hasOwnProperty(I.type)&&re[I.type](I,J)}var V={Feature:function(I,J){X(I.geometry,J)},FeatureCollection:function(I,J){for(var ce=I.features,oe=-1,Me=ce.length;++oe=0?1:-1,Me=oe*ce,Be=b(J),je=k(J),nr=Le*je,lr=Je*Be+nr*b(Me),yr=nr*oe*k(Me);fe.add(y(yr,lr)),Fe=I,Je=Be,Le=je}function U(I){return he.reset(),Q(I,rr),he*2}function ee(I){return[y(I[1],I[0]),H(I[2])]}function $(I){var J=I[0],ce=I[1],oe=b(ce);return[oe*b(J),oe*k(J),k(ce)]}function Se(I,J){return I[0]*J[0]+I[1]*J[1]+I[2]*J[2]}function Oe(I,J){return[I[1]*J[2]-I[2]*J[1],I[2]*J[0]-I[0]*J[2],I[0]*J[1]-I[1]*J[0]]}function Ie(I,J){I[0]+=J[0],I[1]+=J[1],I[2]+=J[2]}function ir(I,J){return[I[0]*J,I[1]*J,I[2]*J]}function or(I){var J=D(I[0]*I[0]+I[1]*I[1]+I[2]*I[2]);I[0]/=J,I[1]/=J,I[2]/=J}var Ue,tr,ur,cr,Qe,pr,dr,Te,Ye=t(),Ar,Nr,Er={point:Ae,lineStart:hr,lineEnd:wr,polygonStart:function(){Er.point=mr,Er.lineStart=Tr,Er.lineEnd=Dr,Ye.reset(),rr.polygonStart()},polygonEnd:function(){rr.polygonEnd(),Er.point=Ae,Er.lineStart=hr,Er.lineEnd=wr,fe<0?(Ue=-(ur=180),tr=-(cr=90)):Ye>o?cr=90:Ye<-o&&(tr=-90),Nr[0]=Ue,Nr[1]=ur},sphere:function(){Ue=-(ur=180),tr=-(cr=90)}};function Ae(I,J){Ar.push(Nr=[Ue=I,ur=I]),Jcr&&(cr=J)}function Xe(I,J){var ce=$([I*d,J*d]);if(Te){var oe=Oe(Te,ce),Me=[oe[1],-oe[0],0],Be=Oe(Me,oe);or(Be),Be=ee(Be);var je=I-Qe,nr=je>0?1:-1,lr=Be[0]*h*nr,yr,Ke=m(je)>180;Ke^(nr*Qecr&&(cr=yr)):(lr=(lr+360)%360-180,Ke^(nr*Qecr&&(cr=J))),Ke?IOr(Ue,ur)&&(ur=I):Or(I,ur)>Or(Ue,ur)&&(Ue=I):ur>=Ue?(Iur&&(ur=I)):I>Qe?Or(Ue,I)>Or(Ue,ur)&&(ur=I):Or(I,ur)>Or(Ue,ur)&&(Ue=I)}else Ar.push(Nr=[Ue=I,ur=I]);Jcr&&(cr=J),Te=ce,Qe=I}function hr(){Er.point=Xe}function wr(){Nr[0]=Ue,Nr[1]=ur,Er.point=Ae,Te=null}function mr(I,J){if(Te){var ce=I-Qe;Ye.add(m(ce)>180?ce+(ce>0?360:-360):ce)}else pr=I,dr=J;rr.point(I,J),Xe(I,J)}function Tr(){rr.lineStart()}function Dr(){mr(pr,dr),rr.lineEnd(),m(Ye)>o&&(Ue=-(ur=180)),Nr[0]=Ue,Nr[1]=ur,Te=null}function Or(I,J){return(J-=I)<0?J+360:J}function Cr(I,J){return I[0]-J[0]}function ar(I,J){return I[0]<=I[1]?I[0]<=J&&J<=I[1]:JOr(oe[0],oe[1])&&(oe[1]=Me[1]),Or(Me[0],oe[1])>Or(oe[0],oe[1])&&(oe[0]=Me[0])):Be.push(oe=Me);for(je=-1/0,ce=Be.length-1,J=0,oe=Be[ce];J<=ce;oe=Me,++J)Me=Be[J],(nr=Or(oe[1],Me[0]))>je&&(je=nr,Ue=Me[0],ur=oe[1])}return Ar=Nr=null,Ue===1/0||tr===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ue,tr],[ur,cr]]}var ke,$e,Ze,qr,Hr,Pr,lt,xt,Nt,It,An,Tn,cn,Ft,jt,en,Jt={sphere:B,point:aa,lineStart:rn,lineEnd:pn,polygonStart:function(){Jt.lineStart=an,Jt.lineEnd=vn},polygonEnd:function(){Jt.lineStart=rn,Jt.lineEnd=pn}};function aa(I,J){I*=d,J*=d;var ce=b(J);rt(ce*b(I),ce*k(I),k(J))}function rt(I,J,ce){++ke,Ze+=(I-Ze)/ke,qr+=(J-qr)/ke,Hr+=(ce-Hr)/ke}function rn(){Jt.point=St}function St(I,J){I*=d,J*=d;var ce=b(J);Ft=ce*b(I),jt=ce*k(I),en=k(J),Jt.point=dn,rt(Ft,jt,en)}function dn(I,J){I*=d,J*=d;var ce=b(J),oe=ce*b(I),Me=ce*k(I),Be=k(J),je=y(D((je=jt*Be-en*Me)*je+(je=en*oe-Ft*Be)*je+(je=Ft*Me-jt*oe)*je),Ft*oe+jt*Me+en*Be);$e+=je,Pr+=je*(Ft+(Ft=oe)),lt+=je*(jt+(jt=Me)),xt+=je*(en+(en=Be)),rt(Ft,jt,en)}function pn(){Jt.point=aa}function an(){Jt.point=da}function vn(){qn(Tn,cn),Jt.point=aa}function da(I,J){Tn=I,cn=J,I*=d,J*=d,Jt.point=qn;var ce=b(J);Ft=ce*b(I),jt=ce*k(I),en=k(J),rt(Ft,jt,en)}function qn(I,J){I*=d,J*=d;var ce=b(J),oe=ce*b(I),Me=ce*k(I),Be=k(J),je=jt*Be-en*Me,nr=en*oe-Ft*Be,lr=Ft*Me-jt*oe,yr=D(je*je+nr*nr+lr*lr),Ke=H(yr),vr=yr&&-Ke/yr;Nt+=vr*je,It+=vr*nr,An+=vr*lr,$e+=Ke,Pr+=Ke*(Ft+(Ft=oe)),lt+=Ke*(jt+(jt=Me)),xt+=Ke*(en+(en=Be)),rt(Ft,jt,en)}function Na(I){ke=$e=Ze=qr=Hr=Pr=lt=xt=Nt=It=An=0,Q(I,Jt);var J=Nt,ce=It,oe=An,Me=J*J+ce*ce+oe*oe;return Mes?I+Math.round(-I/v)*v:I,J]}Ht.invert=Ht;function Bn(I,J,ce){return(I%=v)?J||ce?wn(io(I),gi(J,ce)):io(I):J||ce?gi(J,ce):Ht}function pi(I){return function(J,ce){return J+=I,[J>s?J-v:J<-s?J+v:J,ce]}}function io(I){var J=pi(I);return J.invert=pi(-I),J}function gi(I,J){var ce=b(I),oe=k(I),Me=b(J),Be=k(J);function je(nr,lr){var yr=b(lr),Ke=b(nr)*yr,vr=k(nr)*yr,sr=k(lr),xr=sr*ce+Ke*oe;return[y(vr*Me-xr*Be,Ke*ce-sr*oe),H(xr*Me+vr*Be)]}return je.invert=function(nr,lr){var yr=b(lr),Ke=b(nr)*yr,vr=k(nr)*yr,sr=k(lr),xr=sr*Me-vr*Be;return[y(vr*Me+sr*Be,Ke*ce+xr*oe),H(xr*ce-Ke*oe)]},je}function ms(I){I=Bn(I[0]*d,I[1]*d,I.length>2?I[2]*d:0);function J(ce){return ce=I(ce[0]*d,ce[1]*d),ce[0]*=h,ce[1]*=h,ce}return J.invert=function(ce){return ce=I.invert(ce[0]*d,ce[1]*d),ce[0]*=h,ce[1]*=h,ce},J}function El(I,J,ce,oe,Me,Be){if(ce){var je=b(J),nr=k(J),lr=oe*ce;Me==null?(Me=J+oe*v,Be=J-lr/2):(Me=Bo(je,Me),Be=Bo(je,Be),(oe>0?MeBe)&&(Me+=oe*v));for(var yr,Ke=Me;oe>0?Ke>Be:Ke1&&I.push(I.pop().concat(I.shift()))},result:function(){var ce=I;return I=[],J=null,ce}}}function On(I,J){return m(I[0]-J[0])=0;--nr)Me.point((vr=Ke[nr])[0],vr[1]);else oe(sr.x,sr.p.x,-1,Me);sr=sr.p}sr=sr.o,Ke=sr.z,xr=!xr}while(!sr.v);Me.lineEnd()}}}function yi(I){if(J=I.length){for(var J,ce=0,oe=I[0],Me;++ce=0?1:-1,Zt=tn*Gt,gn=Zt>s,Lt=et*it;if(Kr.add(y(Lt*tn*k(Zt),jr*pt+Lt*b(Zt))),je+=gn?Gt+tn*v:Gt,gn^xr>=ce^Lr>=ce){var ia=Oe($(sr),$(nt));or(ia);var Nn=Oe(Be,ia);or(Nn);var mn=(gn^Gt>=0?-1:1)*H(Nn[2]);(oe>mn||oe===mn&&(ia[0]||ia[1]))&&(nr+=gn^Gt>=0?1:-1)}}return(je<-o||je0){for(lr||(Me.polygonStart(),lr=!0),Me.lineStart(),pt=0;pt1&&Br&2&&it.push(it.pop().concat(it.shift())),Ke.push(it.filter(Wn))}}return sr}}function Wn(I){return I.length>1}function on(I,J){return((I=I.x)[0]<0?I[1]-u-o:u-I[1])-((J=J.x)[0]<0?J[1]-u-o:u-J[1])}var Pn=Ur(function(){return!0},At,Yo,[-s,-u]);function At(I){var J=NaN,ce=NaN,oe=NaN,Me;return{lineStart:function(){I.lineStart(),Me=1},point:function(Be,je){var nr=Be>0?s:-s,lr=m(Be-J);m(lr-s)0?u:-u),I.point(oe,ce),I.lineEnd(),I.lineStart(),I.point(nr,ce),I.point(Be,ce),Me=0):oe!==nr&&lr>=s&&(m(J-oe)o?p((k(J)*(Be=b(oe))*k(ce)-k(oe)*(Me=b(J))*k(I))/(Me*Be*je)):(J+oe)/2}function Yo(I,J,ce,oe){var Me;if(I==null)Me=ce*u,oe.point(-s,Me),oe.point(0,Me),oe.point(s,Me),oe.point(s,0),oe.point(s,-Me),oe.point(0,-Me),oe.point(-s,-Me),oe.point(-s,0),oe.point(-s,Me);else if(m(I[0]-J[0])>o){var Be=I[0]0,Me=m(J)>o;function Be(Ke,vr,sr,xr){El(xr,I,ce,sr,Ke,vr)}function je(Ke,vr){return b(Ke)*b(vr)>J}function nr(Ke){var vr,sr,xr,Sr,et;return{lineStart:function(){Sr=xr=!1,et=1},point:function(jr,tt){var nt=[jr,tt],Lr,Br=je(jr,tt),it=oe?Br?0:yr(jr,tt):Br?yr(jr+(jr<0?s:-s),tt):0;if(!vr&&(Sr=xr=Br)&&Ke.lineStart(),Br!==xr&&(Lr=lr(vr,nt),(!Lr||On(vr,Lr)||On(nt,Lr))&&(nt[2]=1)),Br!==xr)et=0,Br?(Ke.lineStart(),Lr=lr(nt,vr),Ke.point(Lr[0],Lr[1])):(Lr=lr(vr,nt),Ke.point(Lr[0],Lr[1],2),Ke.lineEnd()),vr=Lr;else if(Me&&vr&&oe^Br){var pt;!(it&sr)&&(pt=lr(nt,vr,!0))&&(et=0,oe?(Ke.lineStart(),Ke.point(pt[0][0],pt[0][1]),Ke.point(pt[1][0],pt[1][1]),Ke.lineEnd()):(Ke.point(pt[1][0],pt[1][1]),Ke.lineEnd(),Ke.lineStart(),Ke.point(pt[0][0],pt[0][1],3)))}Br&&(!vr||!On(vr,nt))&&Ke.point(nt[0],nt[1]),vr=nt,xr=Br,sr=it},lineEnd:function(){xr&&Ke.lineEnd(),vr=null},clean:function(){return et|(Sr&&xr)<<1}}}function lr(Ke,vr,sr){var xr=$(Ke),Sr=$(vr),et=[1,0,0],jr=Oe(xr,Sr),tt=Se(jr,jr),nt=jr[0],Lr=tt-nt*nt;if(!Lr)return!sr&&Ke;var Br=J*tt/Lr,it=-J*nt/Lr,pt=Oe(et,jr),Gt=ir(et,Br),tn=ir(jr,it);Ie(Gt,tn);var Zt=pt,gn=Se(Gt,Zt),Lt=Se(Zt,Zt),ia=gn*gn-Lt*(Se(Gt,Gt)-1);if(!(ia<0)){var Nn=D(ia),mn=ir(Zt,(-gn-Nn)/Lt);if(Ie(mn,Gt),mn=ee(mn),!sr)return mn;var Gr=Ke[0],Vt=vr[0],Un=Ke[1],ga=vr[1],Xa;Vt0^mn[1]<(m(mn[0]-Gr)s^(Gr<=mn[0]&&mn[0]<=Vt)){var si=ir(Zt,(-gn+Nn)/Lt);return Ie(si,Gt),[mn,ee(si)]}}}function yr(Ke,vr){var sr=oe?I:s-I,xr=0;return Ke<-sr?xr|=1:Ke>sr&&(xr|=2),vr<-sr?xr|=4:vr>sr&&(xr|=8),xr}return Ur(je,nr,Be,oe?[0,-I]:[-s,I-s])}function vu(I,J,ce,oe,Me,Be){var je=I[0],nr=I[1],lr=J[0],yr=J[1],Ke=0,vr=1,sr=lr-je,xr=yr-nr,Sr;if(Sr=ce-je,!(!sr&&Sr>0)){if(Sr/=sr,sr<0){if(Sr0){if(Sr>vr)return;Sr>Ke&&(Ke=Sr)}if(Sr=Me-je,!(!sr&&Sr<0)){if(Sr/=sr,sr<0){if(Sr>vr)return;Sr>Ke&&(Ke=Sr)}else if(sr>0){if(Sr0)){if(Sr/=xr,xr<0){if(Sr0){if(Sr>vr)return;Sr>Ke&&(Ke=Sr)}if(Sr=Be-nr,!(!xr&&Sr<0)){if(Sr/=xr,xr<0){if(Sr>vr)return;Sr>Ke&&(Ke=Sr)}else if(xr>0){if(Sr0&&(I[0]=je+Ke*sr,I[1]=nr+Ke*xr),vr<1&&(J[0]=je+vr*sr,J[1]=nr+vr*xr),!0}}}}}var oo=1e9,Go=-oo;function Vo(I,J,ce,oe){function Me(yr,Ke){return I<=yr&&yr<=ce&&J<=Ke&&Ke<=oe}function Be(yr,Ke,vr,sr){var xr=0,Sr=0;if(yr==null||(xr=je(yr,vr))!==(Sr=je(Ke,vr))||lr(yr,Ke)<0^vr>0)do sr.point(xr===0||xr===3?I:ce,xr>1?oe:J);while((xr=(xr+vr+4)%4)!==Sr);else sr.point(Ke[0],Ke[1])}function je(yr,Ke){return m(yr[0]-I)0?0:3:m(yr[0]-ce)0?2:1:m(yr[1]-J)0?1:0:Ke>0?3:2}function nr(yr,Ke){return lr(yr.x,Ke.x)}function lr(yr,Ke){var vr=je(yr,1),sr=je(Ke,1);return vr!==sr?vr-sr:vr===0?Ke[1]-yr[1]:vr===1?yr[0]-Ke[0]:vr===2?yr[1]-Ke[1]:Ke[0]-yr[0]}return function(yr){var Ke=yr,vr=Oo(),sr,xr,Sr,et,jr,tt,nt,Lr,Br,it,pt,Gt={point:tn,lineStart:ia,lineEnd:Nn,polygonStart:gn,polygonEnd:Lt};function tn(Gr,Vt){Me(Gr,Vt)&&Ke.point(Gr,Vt)}function Zt(){for(var Gr=0,Vt=0,Un=xr.length;Vtoe&&(al-nl)*(oe-si)>(Zl-si)*(I-nl)&&++Gr:Zl<=oe&&(al-nl)*(oe-si)<(Zl-si)*(I-nl)&&--Gr;return Gr}function gn(){Ke=vr,sr=[],xr=[],pt=!0}function Lt(){var Gr=Zt(),Vt=pt&&Gr,Un=(sr=r.merge(sr)).length;(Vt||Un)&&(yr.polygonStart(),Vt&&(yr.lineStart(),Be(null,null,1,yr),yr.lineEnd()),Un&&Uo(sr,nr,Gr,Be,yr),yr.polygonEnd()),Ke=yr,sr=xr=Sr=null}function ia(){Gt.point=mn,xr&&xr.push(Sr=[]),it=!0,Br=!1,nt=Lr=NaN}function Nn(){sr&&(mn(et,jr),tt&&Br&&vr.rejoin(),sr.push(vr.result())),Gt.point=tn,Br&&Ke.lineEnd()}function mn(Gr,Vt){var Un=Me(Gr,Vt);if(xr&&Sr.push([Gr,Vt]),it)et=Gr,jr=Vt,tt=Un,it=!1,Un&&(Ke.lineStart(),Ke.point(Gr,Vt));else if(Un&&Br)Ke.point(Gr,Vt);else{var ga=[nt=Math.max(Go,Math.min(oo,nt)),Lr=Math.max(Go,Math.min(oo,Lr))],Xa=[Gr=Math.max(Go,Math.min(oo,Gr)),Vt=Math.max(Go,Math.min(oo,Vt))];vu(ga,Xa,I,J,ce,oe)?(Br||(Ke.lineStart(),Ke.point(ga[0],ga[1])),Ke.point(Xa[0],Xa[1]),Un||Ke.lineEnd(),pt=!1):Un&&(Ke.lineStart(),Ke.point(Gr,Vt),pt=!1)}nt=Gr,Lr=Vt,Br=Un}return Gt}}function hu(){var I=0,J=0,ce=960,oe=500,Me,Be,je;return je={stream:function(nr){return Me&&Be===nr?Me:Me=Vo(I,J,ce,oe)(Be=nr)},extent:function(nr){return arguments.length?(I=+nr[0][0],J=+nr[0][1],ce=+nr[1][0],oe=+nr[1][1],Me=Be=null,je):[[I,J],[ce,oe]]}}}var Pl=t(),Rl,bi,lo,Wo={sphere:B,point:B,lineStart:zl,lineEnd:B,polygonStart:B,polygonEnd:B};function zl(){Wo.point=Mf,Wo.lineEnd=bs}function bs(){Wo.point=Wo.lineEnd=B}function Mf(I,J){I*=d,J*=d,Rl=I,bi=k(J),lo=b(J),Wo.point=Zc}function Zc(I,J){I*=d,J*=d;var ce=k(J),oe=b(J),Me=m(I-Rl),Be=b(Me),je=k(Me),nr=oe*je,lr=lo*ce-bi*oe*Be,yr=bi*ce+lo*oe*Be;Pl.add(y(D(nr*nr+lr*lr),yr)),Rl=I,bi=ce,lo=oe}function _s(I){return Pl.reset(),Q(I,Wo),+Pl}var xs=[null,null],ws={type:"LineString",coordinates:xs};function Zo(I,J){return xs[0]=I,xs[1]=J,_s(ws)}var so={Feature:function(I,J){return Bi(I.geometry,J)},FeatureCollection:function(I,J){for(var ce=I.features,oe=-1,Me=ce.length;++oe0&&(Me=Zo(I[Be],I[Be-1]),Me>0&&ce<=Me&&oe<=Me&&(ce+oe-Me)*(1-Math.pow((ce-oe)/Me,2))o}).map(sr)).concat(r.range(C(Be/yr)*yr,Me,yr).filter(function(Lr){return m(Lr%vr)>o}).map(xr))}return tt.lines=function(){return nt().map(function(Lr){return{type:"LineString",coordinates:Lr}})},tt.outline=function(){return{type:"Polygon",coordinates:[Sr(oe).concat(et(je).slice(1),Sr(ce).reverse().slice(1),et(nr).reverse().slice(1))]}},tt.extent=function(Lr){return arguments.length?tt.extentMajor(Lr).extentMinor(Lr):tt.extentMinor()},tt.extentMajor=function(Lr){return arguments.length?(oe=+Lr[0][0],ce=+Lr[1][0],nr=+Lr[0][1],je=+Lr[1][1],oe>ce&&(Lr=oe,oe=ce,ce=Lr),nr>je&&(Lr=nr,nr=je,je=Lr),tt.precision(jr)):[[oe,nr],[ce,je]]},tt.extentMinor=function(Lr){return arguments.length?(J=+Lr[0][0],I=+Lr[1][0],Be=+Lr[0][1],Me=+Lr[1][1],J>I&&(Lr=J,J=I,I=Lr),Be>Me&&(Lr=Be,Be=Me,Me=Lr),tt.precision(jr)):[[J,Be],[I,Me]]},tt.step=function(Lr){return arguments.length?tt.stepMajor(Lr).stepMinor(Lr):tt.stepMinor()},tt.stepMajor=function(Lr){return arguments.length?(Ke=+Lr[0],vr=+Lr[1],tt):[Ke,vr]},tt.stepMinor=function(Lr){return arguments.length?(lr=+Lr[0],yr=+Lr[1],tt):[lr,yr]},tt.precision=function(Lr){return arguments.length?(jr=+Lr,sr=Oi(Be,Me,90),xr=As(J,I,jr),Sr=Oi(nr,je,90),et=As(oe,ce,jr),tt):jr},tt.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Ts(){return jc()()}function Fv(I,J){var ce=I[0]*d,oe=I[1]*d,Me=J[0]*d,Be=J[1]*d,je=b(oe),nr=k(oe),lr=b(Be),yr=k(Be),Ke=je*b(ce),vr=je*k(ce),sr=lr*b(Me),xr=lr*k(Me),Sr=2*H(D(W(Be-oe)+je*lr*W(Me-ce))),et=k(Sr),jr=Sr?function(tt){var nt=k(tt*=Sr)/et,Lr=k(Sr-tt)/et,Br=Lr*Ke+nt*sr,it=Lr*vr+nt*xr,pt=Lr*nr+nt*yr;return[y(it,Br)*h,y(pt,D(Br*Br+it*it))*h]}:function(){return[ce*h,oe*h]};return jr.distance=Sr,jr}function Xo(I){return I}var kf=t(),Fl=t(),Jc,fo,co,Sf,_i={point:B,lineStart:B,lineEnd:B,polygonStart:function(){_i.lineStart=Iv,_i.lineEnd=Hv},polygonEnd:function(){_i.lineStart=_i.lineEnd=_i.point=B,kf.add(m(Fl)),Fl.reset()},result:function(){var I=kf/2;return kf.reset(),I}};function Iv(){_i.point=Ui}function Ui(I,J){_i.point=Il,Jc=co=I,fo=Sf=J}function Il(I,J){Fl.add(Sf*I-co*J),co=I,Sf=J}function Hv(){Il(Jc,fo)}var Yi=1/0,jo=Yi,Jo=-Yi,$o=Jo,vo={point:ks,lineStart:B,lineEnd:B,polygonStart:B,polygonEnd:B,result:function(){var I=[[Yi,jo],[Jo,$o]];return Jo=$o=-(jo=Yi=1/0),I}};function ks(I,J){IJo&&(Jo=I),J$o&&($o=J)}var pu=0,Ss=0,Cs=0,Ko=0,Hl=0,Bl=0,gu=0,mu=0,oi=0,yu,bu,Fa,Kn,Aa={point:Gi,lineStart:Ls,lineEnd:Cf,polygonStart:function(){Aa.lineStart=$c,Aa.lineEnd=Bv},polygonEnd:function(){Aa.point=Gi,Aa.lineStart=Ls,Aa.lineEnd=Cf},result:function(){var I=oi?[gu/oi,mu/oi]:Bl?[Ko/Bl,Hl/Bl]:Cs?[pu/Cs,Ss/Cs]:[NaN,NaN];return pu=Ss=Cs=Ko=Hl=Bl=gu=mu=oi=0,I}};function Gi(I,J){pu+=I,Ss+=J,++Cs}function Ls(){Aa.point=Qo}function Qo(I,J){Aa.point=Ol,Gi(Fa=I,Kn=J)}function Ol(I,J){var ce=I-Fa,oe=J-Kn,Me=D(ce*ce+oe*oe);Ko+=Me*(Fa+I)/2,Hl+=Me*(Kn+J)/2,Bl+=Me,Gi(Fa=I,Kn=J)}function Cf(){Aa.point=Gi}function $c(){Aa.point=Ov}function Bv(){Lf(yu,bu)}function Ov(I,J){Aa.point=Lf,Gi(yu=Fa=I,bu=Kn=J)}function Lf(I,J){var ce=I-Fa,oe=J-Kn,Me=D(ce*ce+oe*oe);Ko+=Me*(Fa+I)/2,Hl+=Me*(Kn+J)/2,Bl+=Me,Me=Kn*I-Fa*J,gu+=Me*(Fa+I),mu+=Me*(Kn+J),oi+=Me*3,Gi(Fa=I,Kn=J)}function qf(I){this._context=I}qf.prototype={_radius:4.5,pointRadius:function(I){return this._radius=I,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(I,J){switch(this._point){case 0:{this._context.moveTo(I,J),this._point=1;break}case 1:{this._context.lineTo(I,J);break}default:{this._context.moveTo(I+this._radius,J),this._context.arc(I,J,this._radius,0,v);break}}},result:B};var Df=t(),Ef,Kc,Qc,qs,Ds,xi={point:B,lineStart:function(){xi.point=_u},lineEnd:function(){Ef&&Es(Kc,Qc),xi.point=B},polygonStart:function(){Ef=!0},polygonEnd:function(){Ef=null},result:function(){var I=+Df;return Df.reset(),I}};function _u(I,J){xi.point=Es,Kc=qs=I,Qc=Ds=J}function Es(I,J){qs-=I,Ds-=J,Df.add(D(qs*qs+Ds*Ds)),qs=I,Ds=J}function xu(){this._string=[]}xu.prototype={_radius:4.5,_circle:e0(4.5),pointRadius:function(I){return(I=+I)!==this._radius&&(this._radius=I,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(I,J){switch(this._point){case 0:{this._string.push("M",I,",",J),this._point=1;break}case 1:{this._string.push("L",I,",",J);break}default:{this._circle==null&&(this._circle=e0(this._radius)),this._string.push("M",I,",",J,this._circle);break}}},result:function(){if(this._string.length){var I=this._string.join("");return this._string=[],I}else return null}};function e0(I){return"m0,"+I+"a"+I+","+I+" 0 1,1 0,"+-2*I+"a"+I+","+I+" 0 1,1 0,"+2*I+"z"}function Pf(I,J){var ce=4.5,oe,Me;function Be(je){return je&&(typeof ce=="function"&&Me.pointRadius(+ce.apply(this,arguments)),Q(je,oe(Me))),Me.result()}return Be.area=function(je){return Q(je,oe(_i)),_i.result()},Be.measure=function(je){return Q(je,oe(xi)),xi.result()},Be.bounds=function(je){return Q(je,oe(vo)),vo.result()},Be.centroid=function(je){return Q(je,oe(Aa)),Aa.result()},Be.projection=function(je){return arguments.length?(oe=je==null?(I=null,Xo):(I=je).stream,Be):I},Be.context=function(je){return arguments.length?(Me=je==null?(J=null,new xu):new qf(J=je),typeof ce!="function"&&Me.pointRadius(ce),Be):J},Be.pointRadius=function(je){return arguments.length?(ce=typeof je=="function"?je:(Me.pointRadius(+je),+je),Be):ce},Be.projection(I).context(J)}function Uv(I){return{stream:ho(I)}}function ho(I){return function(J){var ce=new wu;for(var oe in I)ce[oe]=I[oe];return ce.stream=J,ce}}function wu(){}wu.prototype={constructor:wu,point:function(I,J){this.stream.point(I,J)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Ul(I,J,ce){var oe=I.clipExtent&&I.clipExtent();return I.scale(150).translate([0,0]),oe!=null&&I.clipExtent(null),Q(ce,I.stream(vo)),J(vo.result()),oe!=null&&I.clipExtent(oe),I}function Ps(I,J,ce){return Ul(I,function(oe){var Me=J[1][0]-J[0][0],Be=J[1][1]-J[0][1],je=Math.min(Me/(oe[1][0]-oe[0][0]),Be/(oe[1][1]-oe[0][1])),nr=+J[0][0]+(Me-je*(oe[1][0]+oe[0][0]))/2,lr=+J[0][1]+(Be-je*(oe[1][1]+oe[0][1]))/2;I.scale(150*je).translate([nr,lr])},ce)}function Rs(I,J,ce){return Ps(I,[[0,0],J],ce)}function Rf(I,J,ce){return Ul(I,function(oe){var Me=+J,Be=Me/(oe[1][0]-oe[0][0]),je=(Me-Be*(oe[1][0]+oe[0][0]))/2,nr=-Be*oe[0][1];I.scale(150*Be).translate([je,nr])},ce)}function po(I,J,ce){return Ul(I,function(oe){var Me=+J,Be=Me/(oe[1][1]-oe[0][1]),je=-Be*oe[0][0],nr=(Me-Be*(oe[1][1]+oe[0][1]))/2;I.scale(150*Be).translate([je,nr])},ce)}var r0=16,zf=b(30*d);function t0(I,J){return+J?Mu(I,J):Nf(I)}function Nf(I){return ho({point:function(J,ce){J=I(J,ce),this.stream.point(J[0],J[1])}})}function Mu(I,J){function ce(oe,Me,Be,je,nr,lr,yr,Ke,vr,sr,xr,Sr,et,jr){var tt=yr-oe,nt=Ke-Me,Lr=tt*tt+nt*nt;if(Lr>4*J&&et--){var Br=je+sr,it=nr+xr,pt=lr+Sr,Gt=D(Br*Br+it*it+pt*pt),tn=H(pt/=Gt),Zt=m(m(pt)-1)J||m((tt*Nn+nt*mn)/Lr-.5)>.3||je*sr+nr*xr+lr*Sr2?Gr[2]%360*d:0,Nn()):[nr*h,lr*h,yr*h]},Lt.angle=function(Gr){return arguments.length?(vr=Gr%360*d,Nn()):vr*h},Lt.reflectX=function(Gr){return arguments.length?(sr=Gr?-1:1,Nn()):sr<0},Lt.reflectY=function(Gr){return arguments.length?(xr=Gr?-1:1,Nn()):xr<0},Lt.precision=function(Gr){return arguments.length?(pt=t0(Gt,it=Gr*Gr),mn()):D(it)},Lt.fitExtent=function(Gr,Vt){return Ps(Lt,Gr,Vt)},Lt.fitSize=function(Gr,Vt){return Rs(Lt,Gr,Vt)},Lt.fitWidth=function(Gr,Vt){return Rf(Lt,Gr,Vt)},Lt.fitHeight=function(Gr,Vt){return po(Lt,Gr,Vt)};function Nn(){var Gr=Hf(ce,0,0,sr,xr,vr).apply(null,J(Be,je)),Vt=(vr?Hf:Yv)(ce,oe-Gr[0],Me-Gr[1],sr,xr,vr);return Ke=Bn(nr,lr,yr),Gt=wn(J,Vt),tn=wn(Ke,Gt),pt=t0(Gt,it),mn()}function mn(){return Zt=gn=null,Lt}return function(){return J=I.apply(this,arguments),Lt.invert=J.invert&&ia,Nn()}}function Yl(I){var J=0,ce=s/3,oe=Bf(I),Me=oe(J,ce);return Me.parallels=function(Be){return arguments.length?oe(J=Be[0]*d,ce=Be[1]*d):[J*h,ce*h]},Me}function Of(I){var J=b(I);function ce(oe,Me){return[oe*J,k(Me)/J]}return ce.invert=function(oe,Me){return[oe/J,H(Me*J)]},ce}function n0(I,J){var ce=k(I),oe=(ce+k(J))/2;if(m(oe)=.12&&jr<.234&&et>=-.425&&et<-.214?Me:jr>=.166&&jr<.234&&et>=-.214&&et<-.115?je:ce).invert(sr)},Ke.stream=function(sr){return I&&J===sr?I:I=Gv([ce.stream(J=sr),Me.stream(sr),je.stream(sr)])},Ke.precision=function(sr){return arguments.length?(ce.precision(sr),Me.precision(sr),je.precision(sr),vr()):ce.precision()},Ke.scale=function(sr){return arguments.length?(ce.scale(sr),Me.scale(sr*.35),je.scale(sr),Ke.translate(ce.translate())):ce.scale()},Ke.translate=function(sr){if(!arguments.length)return ce.translate();var xr=ce.scale(),Sr=+sr[0],et=+sr[1];return oe=ce.translate(sr).clipExtent([[Sr-.455*xr,et-.238*xr],[Sr+.455*xr,et+.238*xr]]).stream(yr),Be=Me.translate([Sr-.307*xr,et+.201*xr]).clipExtent([[Sr-.425*xr+o,et+.12*xr+o],[Sr-.214*xr-o,et+.234*xr-o]]).stream(yr),nr=je.translate([Sr-.205*xr,et+.212*xr]).clipExtent([[Sr-.214*xr+o,et+.166*xr+o],[Sr-.115*xr-o,et+.234*xr-o]]).stream(yr),vr()},Ke.fitExtent=function(sr,xr){return Ps(Ke,sr,xr)},Ke.fitSize=function(sr,xr){return Rs(Ke,sr,xr)},Ke.fitWidth=function(sr,xr){return Rf(Ke,sr,xr)},Ke.fitHeight=function(sr,xr){return po(Ke,sr,xr)};function vr(){return I=J=null,Ke}return Ke.scale(1070)}function Vi(I){return function(J,ce){var oe=b(J),Me=b(ce),Be=I(oe*Me);return[Be*Me*k(J),Be*k(ce)]}}function Mi(I){return function(J,ce){var oe=D(J*J+ce*ce),Me=I(oe),Be=k(Me),je=b(Me);return[y(J*Be,oe*je),H(oe&&ce*Be/oe)]}}var Ia=Vi(function(I){return D(2/(1+I))});Ia.invert=Mi(function(I){return 2*H(I/2)});function Wv(){return wi(Ia).scale(124.75).clipAngle(180-.001)}var Gl=Vi(function(I){return(I=F(I))&&I/k(I)});Gl.invert=Mi(function(I){return I});function i0(){return wi(Gl).scale(79.4188).clipAngle(180-.001)}function Za(I,J){return[I,_(z((u+J)/2))]}Za.invert=function(I,J){return[I,2*p(x(J))-u]};function o0(){return l0(Za).scale(961/v)}function l0(I){var J=wi(I),ce=J.center,oe=J.scale,Me=J.translate,Be=J.clipExtent,je=null,nr,lr,yr;J.scale=function(vr){return arguments.length?(oe(vr),Ke()):oe()},J.translate=function(vr){return arguments.length?(Me(vr),Ke()):Me()},J.center=function(vr){return arguments.length?(ce(vr),Ke()):ce()},J.clipExtent=function(vr){return arguments.length?(vr==null?je=nr=lr=yr=null:(je=+vr[0][0],nr=+vr[0][1],lr=+vr[1][0],yr=+vr[1][1]),Ke()):je==null?null:[[je,nr],[lr,yr]]};function Ke(){var vr=s*oe(),sr=J(ms(J.rotate()).invert([0,0]));return Be(je==null?[[sr[0]-vr,sr[1]-vr],[sr[0]+vr,sr[1]+vr]]:I===Za?[[Math.max(sr[0]-vr,je),nr],[Math.min(sr[0]+vr,lr),yr]]:[[je,Math.max(sr[1]-vr,nr)],[lr,Math.min(sr[1]+vr,yr)]])}return Ke()}function zs(I){return z((u+I)/2)}function s0(I,J){var ce=b(I),oe=I===J?k(I):_(ce/b(J))/_(zs(J)/zs(I)),Me=ce*A(zs(I),oe)/oe;if(!oe)return Za;function Be(je,nr){Me>0?nr<-u+o&&(nr=-u+o):nr>u-o&&(nr=u-o);var lr=Me/A(zs(nr),oe);return[lr*k(oe*je),Me-lr*b(oe*je)]}return Be.invert=function(je,nr){var lr=Me-nr,yr=M(oe)*D(je*je+lr*lr),Ke=y(je,m(lr))*M(lr);return lr*oe<0&&(Ke-=s*M(je)*M(lr)),[Ke/oe,2*p(A(Me/yr,1/oe))-u]},Be}function Au(){return Yl(s0).scale(109.5).parallels([30,30])}function Ns(I,J){return[I,J]}Ns.invert=Ns;function Tu(){return wi(Ns).scale(152.63)}function Fs(I,J){var ce=b(I),oe=I===J?k(I):(ce-b(J))/(J-I),Me=ce/oe+I;if(m(oe)o&&--oe>0);return[I/(.8707+(Be=ce*ce)*(-.131979+Be*(-.013791+Be*Be*Be*(.003971-.001529*Be)))),ce]};function Cu(){return wi(Uf).scale(175.295)}function Zn(I,J){return[b(J)*k(I),k(J)]}Zn.invert=Mi(H);function li(){return wi(Zn).scale(249.5).clipAngle(90+o)}function Wl(I,J){var ce=b(J),oe=1+b(I)*ce;return[ce*k(I)/oe,k(J)/oe]}Wl.invert=Mi(function(I){return 2*p(I)});function Lu(){return wi(Wl).scale(250).clipAngle(142)}function Os(I,J){return[_(z((u+J)/2)),-I]}Os.invert=function(I,J){return[-J,2*p(x(I))-u]};function Yf(){var I=l0(Os),J=I.center,ce=I.rotate;return I.center=function(oe){return arguments.length?J([-oe[1],oe[0]]):(oe=J(),[oe[1],-oe[0]])},I.rotate=function(oe){return arguments.length?ce([oe[0],oe[1],oe.length>2?oe[2]+90:90]):(oe=ce(),[oe[0],oe[1],oe[2]-90])},ce([0,0,90]).scale(159.155)}e.geoAlbers=a0,e.geoAlbersUsa=Vv,e.geoArea=U,e.geoAzimuthalEqualArea=Wv,e.geoAzimuthalEqualAreaRaw=Ia,e.geoAzimuthalEquidistant=i0,e.geoAzimuthalEquidistantRaw=Gl,e.geoBounds=be,e.geoCentroid=Na,e.geoCircle=ys,e.geoClipAntimeridian=Pn,e.geoClipCircle=wf,e.geoClipExtent=hu,e.geoClipRectangle=Vo,e.geoConicConformal=Au,e.geoConicConformalRaw=s0,e.geoConicEqualArea=el,e.geoConicEqualAreaRaw=n0,e.geoConicEquidistant=Zv,e.geoConicEquidistantRaw=Fs,e.geoContains=Ms,e.geoDistance=Zo,e.geoEqualEarth=u0,e.geoEqualEarthRaw=Bs,e.geoEquirectangular=Tu,e.geoEquirectangularRaw=Ns,e.geoGnomonic=f0,e.geoGnomonicRaw=Su,e.geoGraticule=jc,e.geoGraticule10=Ts,e.geoIdentity=c0,e.geoInterpolate=Fv,e.geoLength=_s,e.geoMercator=o0,e.geoMercatorRaw=Za,e.geoNaturalEarth1=Cu,e.geoNaturalEarth1Raw=Uf,e.geoOrthographic=li,e.geoOrthographicRaw=Zn,e.geoPath=Pf,e.geoProjection=wi,e.geoProjectionMutator=Bf,e.geoRotation=ms,e.geoStereographic=Lu,e.geoStereographicRaw=Wl,e.geoStream=Q,e.geoTransform=Uv,e.geoTransverseMercator=Yf,e.geoTransverseMercatorRaw=Os,Object.defineProperty(e,"__esModule",{value:!0})})});var lF=ne((ny,oF)=>{(function(e,r){typeof ny=="object"&&typeof oF!="undefined"?r(ny,a_(),n_()):r(e.d3=e.d3||{},e.d3,e.d3)})(ny,function(e,r,t){"use strict";var n=Math.abs,a=Math.atan,i=Math.atan2,o=Math.cos,l=Math.exp,s=Math.floor,u=Math.log,f=Math.max,v=Math.min,h=Math.pow,d=Math.round,m=Math.sign||function(T){return T>0?1:T<0?-1:0},p=Math.sin,y=Math.tan,b=1e-6,C=1e-12,x=Math.PI,_=x/2,A=x/4,k=Math.SQRT1_2,M=V(2),D=V(x),z=x*2,F=180/x,H=x/180;function W(T){return T?T/Math.sin(T):1}function B(T){return T>1?_:T<-1?-_:Math.asin(T)}function X(T){return T>1?0:T<-1?x:Math.acos(T)}function V(T){return T>0?Math.sqrt(T):0}function re(T){return T=l(2*T),(T-1)/(T+1)}function te(T){return(l(T)-l(-T))/2}function K(T){return(l(T)+l(-T))/2}function Q(T){return u(T+V(T*T+1))}function fe(T){return u(T+V(T*T-1))}function he(T){var L=y(T/2),P=2*u(o(T/2))/(L*L);function R(Y,O){var Z=o(Y),ue=o(O),ve=p(O),le=ue*Z,de=-((1-le?u((1+le)/2)/(1-le):-.5)+P/(1+le));return[de*ue*p(Y),de*ve]}return R.invert=function(Y,O){var Z=V(Y*Y+O*O),ue=-T/2,ve=50,le;if(!Z)return[0,0];do{var de=ue/2,xe=o(de),qe=p(de),He=qe/xe,er=-u(n(xe));ue-=le=(2/He*er-P*He-Z)/(-er/(qe*qe)+1-P/(2*xe*xe))*(xe<0?.7:1)}while(n(le)>b&&--ve>0);var fr=p(ue);return[i(Y*fr,Z*o(ue)),B(O*fr/Z)]},R}function De(){var T=_,L=r.geoProjectionMutator(he),P=L(T);return P.radius=function(R){return arguments.length?L(T=R*H):T*F},P.scale(179.976).clipAngle(147)}function Ne(T,L){var P=o(L),R=W(X(P*o(T/=2)));return[2*P*p(T)*R,p(L)*R]}Ne.invert=function(T,L){if(!(T*T+4*L*L>x*x+b)){var P=T,R=L,Y=25;do{var O=p(P),Z=p(P/2),ue=o(P/2),ve=p(R),le=o(R),de=p(2*R),xe=ve*ve,qe=le*le,He=Z*Z,er=1-qe*ue*ue,fr=er?X(le*ue)*V(Mr=1/er):Mr=0,Mr,Zr=2*fr*le*Z-T,at=fr*ve-L,ot=Mr*(qe*He+fr*le*ue*xe),st=Mr*(.5*O*de-fr*2*ve*Z),vt=Mr*.25*(de*Z-fr*ve*qe*O),ln=Mr*(xe*ue+fr*He*le),Mn=st*vt-ln*ot;if(!Mn)break;var zt=(at*st-Zr*ln)/Mn,Fn=(Zr*vt-at*ot)/Mn;P-=zt,R-=Fn}while((n(zt)>b||n(Fn)>b)&&--Y>0);return[P,R]}};function Fe(){return r.geoProjection(Ne).scale(152.63)}function Je(T){var L=p(T),P=o(T),R=T>=0?1:-1,Y=y(R*T),O=(1+L-P)/2;function Z(ue,ve){var le=o(ve),de=o(ue/=2);return[(1+le)*p(ue),(R*ve>-i(de,Y)-.001?0:-R*10)+O+p(ve)*P-(1+le)*L*de]}return Z.invert=function(ue,ve){var le=0,de=0,xe=50;do{var qe=o(le),He=p(le),er=o(de),fr=p(de),Mr=1+er,Zr=Mr*He-ue,at=O+fr*P-Mr*L*qe-ve,ot=Mr*qe/2,st=-He*fr,vt=L*Mr*He/2,ln=P*er+L*qe*fr,Mn=st*vt-ln*ot,zt=(at*st-Zr*ln)/Mn/2,Fn=(Zr*vt-at*ot)/Mn;n(Fn)>2&&(Fn/=2),le-=zt,de-=Fn}while((n(zt)>b||n(Fn)>b)&&--xe>0);return R*de>-i(o(le),Y)-.001?[le*2,de]:null},Z}function Le(){var T=20*H,L=T>=0?1:-1,P=y(L*T),R=r.geoProjectionMutator(Je),Y=R(T),O=Y.stream;return Y.parallel=function(Z){return arguments.length?(P=y((L=(T=Z*H)>=0?1:-1)*T),R(T)):T*F},Y.stream=function(Z){var ue=Y.rotate(),ve=O(Z),le=(Y.rotate([0,0]),O(Z)),de=Y.precision();return Y.rotate(ue),ve.sphere=function(){le.polygonStart(),le.lineStart();for(var xe=L*-180;L*xe<180;xe+=L*90)le.point(xe,L*90);if(T)for(;L*(xe-=3*L*de)>=-180;)le.point(xe,L*-i(o(xe*H/2),P)*F);le.lineEnd(),le.polygonEnd()},ve},Y.scale(218.695).center([0,28.0974])}function rr(T,L){var P=y(L/2),R=V(1-P*P),Y=1+R*o(T/=2),O=p(T)*R/Y,Z=P/Y,ue=O*O,ve=Z*Z;return[4/3*O*(3+ue-3*ve),4/3*Z*(3+3*ue-ve)]}rr.invert=function(T,L){if(T*=3/8,L*=3/8,!T&&n(L)>1)return null;var P=T*T,R=L*L,Y=1+P+R,O=V((Y-V(Y*Y-4*L*L))/2),Z=B(O)/3,ue=O?fe(n(L/O))/3:Q(n(T))/3,ve=o(Z),le=K(ue),de=le*le-ve*ve;return[m(T)*2*i(te(ue)*ve,.25-de),m(L)*2*i(le*p(Z),.25+de)]};function se(){return r.geoProjection(rr).scale(66.1603)}var me=V(8),we=u(1+M);function pe(T,L){var P=n(L);return PC&&--R>0);return[T/(o(P)*(me-1/p(P))),m(L)*P]};function U(){return r.geoProjection(pe).scale(112.314)}function ee(T){var L=2*x/T;function P(R,Y){var O=r.geoAzimuthalEquidistantRaw(R,Y);if(n(R)>_){var Z=i(O[1],O[0]),ue=V(O[0]*O[0]+O[1]*O[1]),ve=L*d((Z-_)/L)+_,le=i(p(Z-=ve),2-o(Z));Z=ve+B(x/ue*p(le))-le,O[0]=ue*o(Z),O[1]=ue*p(Z)}return O}return P.invert=function(R,Y){var O=V(R*R+Y*Y);if(O>_){var Z=i(Y,R),ue=L*d((Z-_)/L)+_,ve=Z>ue?-1:1,le=O*o(ue-Z),de=1/y(ve*X((le-x)/V(x*(x-2*le)+O*O)));Z=ue+2*a((de+ve*V(de*de-3))/3),R=O*o(Z),Y=O*p(Z)}return r.geoAzimuthalEquidistantRaw.invert(R,Y)},P}function $(){var T=5,L=r.geoProjectionMutator(ee),P=L(T),R=P.stream,Y=.01,O=-o(Y*H),Z=p(Y*H);return P.lobes=function(ue){return arguments.length?L(T=+ue):T},P.stream=function(ue){var ve=P.rotate(),le=R(ue),de=(P.rotate([0,0]),R(ue));return P.rotate(ve),le.sphere=function(){de.polygonStart(),de.lineStart();for(var xe=0,qe=360/T,He=2*x/T,er=90-180/T,fr=_;xe0&&n(Y)>b);return R<0?NaN:P}function or(T,L,P){return L===void 0&&(L=40),P===void 0&&(P=C),function(R,Y,O,Z){var ue,ve,le;O=O===void 0?0:+O,Z=Z===void 0?0:+Z;for(var de=0;deue){O-=ve/=2,Z-=le/=2;continue}ue=er;var fr=(O>0?-1:1)*P,Mr=(Z>0?-1:1)*P,Zr=T(O+fr,Z),at=T(O,Z+Mr),ot=(Zr[0]-xe[0])/fr,st=(Zr[1]-xe[1])/fr,vt=(at[0]-xe[0])/Mr,ln=(at[1]-xe[1])/Mr,Mn=ln*ot-st*vt,zt=(n(Mn)<.5?.5:1)/Mn;if(ve=(He*vt-qe*ln)*zt,le=(qe*st-He*ot)*zt,O+=ve,Z+=le,n(ve)0&&(ue[1]*=1+ve/1.5*ue[0]*ue[0]),ue}return R.invert=or(R),R}function tr(){return r.geoProjection(Ue()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function ur(T,L){var P=T*p(L),R=30,Y;do L-=Y=(L+p(L)-P)/(1+o(L));while(n(Y)>b&&--R>0);return L/2}function cr(T,L,P){function R(Y,O){return[T*Y*o(O=ur(P,O)),L*p(O)]}return R.invert=function(Y,O){return O=B(O/L),[Y/(T*o(O)),B((2*O+p(2*O))/P)]},R}var Qe=cr(M/_,M,x);function pr(){return r.geoProjection(Qe).scale(169.529)}var dr=2.00276,Te=1.11072;function Ye(T,L){var P=ur(x,L);return[dr*T/(1/o(L)+Te/o(P)),(L+M*p(P))/dr]}Ye.invert=function(T,L){var P=dr*L,R=L<0?-A:A,Y=25,O,Z;do Z=P-M*p(R),R-=O=(p(2*R)+2*R-x*p(Z))/(2*o(2*R)+2+x*o(Z)*M*o(R));while(n(O)>b&&--Y>0);return Z=P-M*p(R),[T*(1/o(Z)+Te/o(R))/dr,Z]};function Ar(){return r.geoProjection(Ye).scale(160.857)}function Nr(T){var L=0,P=r.geoProjectionMutator(T),R=P(L);return R.parallel=function(Y){return arguments.length?P(L=Y*H):L*F},R}function Er(T,L){return[T*o(L),L]}Er.invert=function(T,L){return[T/o(L),L]};function Ae(){return r.geoProjection(Er).scale(152.63)}function Xe(T){if(!T)return Er;var L=1/y(T);function P(R,Y){var O=L+T-Y,Z=O&&R*o(Y)/O;return[O*p(Z),L-O*o(Z)]}return P.invert=function(R,Y){var O=V(R*R+(Y=L-Y)*Y),Z=L+T-O;return[O/o(Z)*i(R,Y),Z]},P}function hr(){return Nr(Xe).scale(123.082).center([0,26.1441]).parallel(45)}function wr(T){function L(P,R){var Y=_-R,O=Y&&P*T*p(Y)/Y;return[Y*p(O)/T,_-Y*o(O)]}return L.invert=function(P,R){var Y=P*T,O=_-R,Z=V(Y*Y+O*O),ue=i(Y,O);return[(Z?Z/p(Z):1)*ue/T,_-Z]},L}function mr(){var T=.5,L=r.geoProjectionMutator(wr),P=L(T);return P.fraction=function(R){return arguments.length?L(T=+R):T},P.scale(158.837)}var Tr=cr(1,4/x,x);function Dr(){return r.geoProjection(Tr).scale(152.63)}function Or(T,L,P,R,Y,O){var Z=o(O),ue;if(n(T)>1||n(O)>1)ue=X(P*Y+L*R*Z);else{var ve=p(T/2),le=p(O/2);ue=2*B(V(ve*ve+L*R*le*le))}return n(ue)>b?[ue,i(R*p(O),L*Y-P*R*Z)]:[0,0]}function Cr(T,L,P){return X((T*T+L*L-P*P)/(2*T*L))}function ar(T){return T-2*x*s((T+x)/(2*x))}function be(T,L,P){for(var R=[[T[0],T[1],p(T[1]),o(T[1])],[L[0],L[1],p(L[1]),o(L[1])],[P[0],P[1],p(P[1]),o(P[1])]],Y=R[2],O,Z=0;Z<3;++Z,Y=O)O=R[Z],Y.v=Or(O[1]-Y[1],Y[3],Y[2],O[3],O[2],O[0]-Y[0]),Y.point=[0,0];var ue=Cr(R[0].v[0],R[2].v[0],R[1].v[0]),ve=Cr(R[0].v[0],R[1].v[0],R[2].v[0]),le=x-ue;R[2].point[1]=0,R[0].point[0]=-(R[1].point[0]=R[0].v[0]/2);var de=[R[2].point[0]=R[0].point[0]+R[2].v[0]*o(ue),2*(R[0].point[1]=R[1].point[1]=R[2].v[0]*p(ue))];function xe(qe,He){var er=p(He),fr=o(He),Mr=new Array(3),Zr;for(Zr=0;Zr<3;++Zr){var at=R[Zr];if(Mr[Zr]=Or(He-at[1],at[3],at[2],fr,er,qe-at[0]),!Mr[Zr][0])return at.point;Mr[Zr][1]=ar(Mr[Zr][1]-at.v[1])}var ot=de.slice();for(Zr=0;Zr<3;++Zr){var st=Zr==2?0:Zr+1,vt=Cr(R[Zr].v[0],Mr[Zr][0],Mr[st][0]);Mr[Zr][1]<0&&(vt=-vt),Zr?Zr==1?(vt=ve-vt,ot[0]-=Mr[Zr][0]*o(vt),ot[1]-=Mr[Zr][0]*p(vt)):(vt=le-vt,ot[0]+=Mr[Zr][0]*o(vt),ot[1]+=Mr[Zr][0]*p(vt)):(ot[0]+=Mr[Zr][0]*o(vt),ot[1]-=Mr[Zr][0]*p(vt))}return ot[0]/=3,ot[1]/=3,ot}return xe}function ke(T){return T[0]*=H,T[1]*=H,T}function $e(){return Ze([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Ze(T,L,P){var R=r.geoCentroid({type:"MultiPoint",coordinates:[T,L,P]}),Y=[-R[0],-R[1]],O=r.geoRotation(Y),Z=be(ke(O(T)),ke(O(L)),ke(O(P)));Z.invert=or(Z);var ue=r.geoProjection(Z).rotate(Y),ve=ue.center;return delete ue.rotate,ue.center=function(le){return arguments.length?ve(O(le)):O.invert(ve())},ue.clipAngle(90)}function qr(T,L){var P=V(1-p(L));return[2/D*T*P,D*(1-P)]}qr.invert=function(T,L){var P=(P=L/D-1)*P;return[P>0?T*V(x/P)/2:0,B(1-P)]};function Hr(){return r.geoProjection(qr).scale(95.6464).center([0,30])}function Pr(T){var L=y(T);function P(R,Y){return[R,(R?R/p(R):1)*(p(Y)*o(R)-L*o(Y))]}return P.invert=L?function(R,Y){R&&(Y*=p(R)/R);var O=o(R);return[R,2*i(V(O*O+L*L-Y*Y)-O,L-Y)]}:function(R,Y){return[R,B(R?Y*y(R)/R:Y)]},P}function lt(){return Nr(Pr).scale(249.828).clipAngle(90)}var xt=V(3);function Nt(T,L){return[xt*T*(2*o(2*L/3)-1)/D,xt*D*p(L/3)]}Nt.invert=function(T,L){var P=3*B(L/(xt*D));return[D*T/(xt*(2*o(2*P/3)-1)),P]};function It(){return r.geoProjection(Nt).scale(156.19)}function An(T){var L=o(T);function P(R,Y){return[R*L,p(Y)/L]}return P.invert=function(R,Y){return[R/L,B(Y*L)]},P}function Tn(){return Nr(An).parallel(38.58).scale(195.044)}function cn(T){var L=o(T);function P(R,Y){return[R*L,(1+L)*y(Y/2)]}return P.invert=function(R,Y){return[R/L,a(Y/(1+L))*2]},P}function Ft(){return Nr(cn).scale(124.75)}function jt(T,L){var P=V(8/(3*x));return[P*T*(1-n(L)/x),P*L]}jt.invert=function(T,L){var P=V(8/(3*x)),R=L/P;return[T/(P*(1-n(R)/x)),R]};function en(){return r.geoProjection(jt).scale(165.664)}function Jt(T,L){var P=V(4-3*p(n(L)));return[2/V(6*x)*T*P,m(L)*V(2*x/3)*(2-P)]}Jt.invert=function(T,L){var P=2-n(L)/V(2*x/3);return[T*V(6*x)/(2*P),m(L)*B((4-P*P)/3)]};function aa(){return r.geoProjection(Jt).scale(165.664)}function rt(T,L){var P=V(x*(4+x));return[2/P*T*(1+V(1-4*L*L/(x*x))),4/P*L]}rt.invert=function(T,L){var P=V(x*(4+x))/2;return[T*P/(1+V(1-L*L*(4+x)/(4*x))),L*P/2]};function rn(){return r.geoProjection(rt).scale(180.739)}function St(T,L){var P=(2+_)*p(L);L/=2;for(var R=0,Y=1/0;R<10&&n(Y)>b;R++){var O=o(L);L-=Y=(L+p(L)*(O+2)-P)/(2*O*(1+O))}return[2/V(x*(4+x))*T*(1+o(L)),2*V(x/(4+x))*p(L)]}St.invert=function(T,L){var P=L*V((4+x)/x)/2,R=B(P),Y=o(R);return[T/(2/V(x*(4+x))*(1+Y)),B((R+P*(Y+2))/(2+_))]};function dn(){return r.geoProjection(St).scale(180.739)}function pn(T,L){return[T*(1+o(L))/V(2+x),2*L/V(2+x)]}pn.invert=function(T,L){var P=V(2+x),R=L*P/2;return[P*T/(1+o(R)),R]};function an(){return r.geoProjection(pn).scale(173.044)}function vn(T,L){for(var P=(1+_)*p(L),R=0,Y=1/0;R<10&&n(Y)>b;R++)L-=Y=(L+p(L)-P)/(1+o(L));return P=V(2+x),[T*(1+o(L))/P,2*L/P]}vn.invert=function(T,L){var P=1+_,R=V(P/2);return[T*2*R/(1+o(L*=R)),B((L+p(L))/P)]};function da(){return r.geoProjection(vn).scale(173.044)}var qn=3+2*M;function Na(T,L){var P=p(T/=2),R=o(T),Y=V(o(L)),O=o(L/=2),Z=p(L)/(O+M*R*Y),ue=V(2/(1+Z*Z)),ve=V((M*O+(R+P)*Y)/(M*O+(R-P)*Y));return[qn*(ue*(ve-1/ve)-2*u(ve)),qn*(ue*Z*(ve+1/ve)-2*a(Z))]}Na.invert=function(T,L){if(!(O=rr.invert(T/1.2,L*1.065)))return null;var P=O[0],R=O[1],Y=20,O;T/=qn,L/=qn;do{var Z=P/2,ue=R/2,ve=p(Z),le=o(Z),de=p(ue),xe=o(ue),qe=o(R),He=V(qe),er=de/(xe+M*le*He),fr=er*er,Mr=V(2/(1+fr)),Zr=M*xe+(le+ve)*He,at=M*xe+(le-ve)*He,ot=Zr/at,st=V(ot),vt=st-1/st,ln=st+1/st,Mn=Mr*vt-2*u(st)-T,zt=Mr*er*ln-2*a(er)-L,Fn=de&&k*He*ve*fr/de,ma=(M*le*xe+He)/(2*(xe+M*le*He)*(xe+M*le*He)*He),ui=-.5*er*Mr*Mr*Mr,il=ui*Fn,Us=ui*ma,La=(La=2*xe+M*He*(le-ve))*La*st,qa=(M*le*xe*He+qe)/La,Xi=-(M*ve*de)/(He*La),ol=vt*il-2*qa/st+Mr*(qa+qa/ot),ll=vt*Us-2*Xi/st+Mr*(Xi+Xi/ot),sl=er*ln*il-2*Fn/(1+fr)+Mr*ln*Fn+Mr*er*(qa-qa/ot),Xl=er*ln*Us-2*ma/(1+fr)+Mr*ln*ma+Mr*er*(Xi-Xi/ot),go=ll*sl-Xl*ol;if(!go)break;var Ys=(zt*ll-Mn*Xl)/go,Wf=(Mn*sl-zt*ol)/go;P-=Ys,R=f(-_,v(_,R-Wf))}while((n(Ys)>b||n(Wf)>b)&&--Y>0);return n(n(R)-_)R){var xe=V(de),qe=i(le,ve),He=P*d(qe/P),er=qe-He,fr=T*o(er),Mr=(T*p(er)-er*p(fr))/(_-fr),Zr=On(er,Mr),at=(x-T)/mi(Zr,fr,x);ve=xe;var ot=50,st;do ve-=st=(T+mi(Zr,fr,ve)*at-xe)/(Zr(ve)*at);while(n(st)>b&&--ot>0);le=er*p(ve),ve<_&&(le-=Mr*(ve-_));var vt=p(He),ln=o(He);ue[0]=ve*ln-le*vt,ue[1]=ve*vt+le*ln}return ue}return Y.invert=function(O,Z){var ue=O*O+Z*Z;if(ue>R){var ve=V(ue),le=i(Z,O),de=P*d(le/P),xe=le-de;O=ve*o(xe),Z=ve*p(xe);for(var qe=O-_,He=p(O),er=Z/He,fr=O<_?1/0:0,Mr=10;;){var Zr=T*p(er),at=T*o(er),ot=p(at),st=_-at,vt=(Zr-er*ot)/st,ln=On(er,vt);if(n(fr)b||n(er)>b)&&--fr>0);return[xe,qe]},ve}var Kr=yi(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function Ct(){return r.geoProjection(Kr).scale(149.995)}var Bt=yi(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Ur(){return r.geoProjection(Bt).scale(153.93)}var Wn=yi(5/6*x,-.62636,-.0344,0,1.3493,-.05524,0,.045);function on(){return r.geoProjection(Wn).scale(130.945)}function Pn(T,L){var P=T*T,R=L*L;return[T*(1-.162388*R)*(.87-952426e-9*P*P),L*(1+R/12)]}Pn.invert=function(T,L){var P=T,R=L,Y=50,O;do{var Z=R*R;R-=O=(R*(1+Z/12)-L)/(1+Z/4)}while(n(O)>b&&--Y>0);Y=50,T/=1-.162388*Z;do{var ue=(ue=P*P)*ue;P-=O=(P*(.87-952426e-9*ue)-T)/(.87-.00476213*ue)}while(n(O)>b&&--Y>0);return[P,R]};function At(){return r.geoProjection(Pn).scale(131.747)}var Wa=yi(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Yo(){return r.geoProjection(Wa).scale(131.087)}function wf(T){var L=T(_,0)[0]-T(-_,0)[0];function P(R,Y){var O=R>0?-.5:.5,Z=T(R+O*x,Y);return Z[0]-=O*L,Z}return T.invert&&(P.invert=function(R,Y){var O=R>0?-.5:.5,Z=T.invert(R+O*L,Y),ue=Z[0]-O*x;return ue<-x?ue+=2*x:ue>x&&(ue-=2*x),Z[0]=ue,Z}),P}function vu(T,L){var P=m(T),R=m(L),Y=o(L),O=o(T)*Y,Z=p(T)*Y,ue=p(R*L);T=n(i(Z,ue)),L=B(O),n(T-_)>b&&(T%=_);var ve=oo(T>x/4?_-T:T,L);return T>x/4&&(ue=ve[0],ve[0]=-ve[1],ve[1]=-ue),ve[0]*=P,ve[1]*=-R,ve}vu.invert=function(T,L){n(T)>1&&(T=m(T)*2-T),n(L)>1&&(L=m(L)*2-L);var P=m(T),R=m(L),Y=-P*T,O=-R*L,Z=O/Y<1,ue=Go(Z?O:Y,Z?Y:O),ve=ue[0],le=ue[1],de=o(le);return Z&&(ve=-_-ve),[P*(i(p(ve)*de,-p(le))+x),R*B(o(ve)*de)]};function oo(T,L){if(L===_)return[0,0];var P=p(L),R=P*P,Y=R*R,O=1+Y,Z=1+3*Y,ue=1-Y,ve=B(1/V(O)),le=ue+R*O*ve,de=(1-P)/le,xe=V(de),qe=de*O,He=V(qe),er=xe*ue,fr,Mr;if(T===0)return[0,-(er+R*He)];var Zr=o(L),at=1/Zr,ot=2*P*Zr,st=(-3*R+ve*Z)*ot,vt=(-le*Zr-(1-P)*st)/(le*le),ln=.5*vt/xe,Mn=ue*ln-2*R*xe*ot,zt=R*O*vt+de*Z*ot,Fn=-at*ot,ma=-at*zt,ui=-2*at*Mn,il=4*T/x,Us;if(T>.222*x||L.175*x){if(fr=(er+R*V(qe*(1+Y)-er*er))/(1+Y),T>x/4)return[fr,fr];var La=fr,qa=.5*fr;fr=.5*(qa+La),Mr=50;do{var Xi=V(qe-fr*fr),ol=fr*(ui+Fn*Xi)+ma*B(fr/He)-il;if(!ol)break;ol<0?qa=fr:La=fr,fr=.5*(qa+La)}while(n(La-qa)>b&&--Mr>0)}else{fr=b,Mr=25;do{var ll=fr*fr,sl=V(qe-ll),Xl=ui+Fn*sl,go=fr*Xl+ma*B(fr/He)-il,Ys=Xl+(ma-Fn*ll)/sl;fr-=Us=sl?go/Ys:0}while(n(Us)>b&&--Mr>0)}return[fr,-er-R*V(qe-fr*fr)]}function Go(T,L){for(var P=0,R=1,Y=.5,O=50;;){var Z=Y*Y,ue=V(Y),ve=B(1/V(1+Z)),le=1-Z+Y*(1+Z)*ve,de=(1-ue)/le,xe=V(de),qe=de*(1+Z),He=xe*(1-Z),er=qe-T*T,fr=V(er),Mr=L+He+Y*fr;if(n(R-P)0?P=Y:R=Y,Y=.5*(P+R)}if(!O)return null;var Zr=B(ue),at=o(Zr),ot=1/at,st=2*ue*at,vt=(-3*Y+ve*(1+3*Z))*st,ln=(-le*at-(1-ue)*vt)/(le*le),Mn=.5*ln/xe,zt=(1-Z)*Mn-2*Y*xe*st,Fn=-2*ot*zt,ma=-ot*st,ui=-ot*(Y*(1+Z)*ln+de*(1+3*Z)*st);return[x/4*(T*(Fn+ma*fr)+ui*B(T/V(qe))),Zr]}function Vo(){return r.geoProjection(wf(vu)).scale(239.75)}function hu(T,L,P){var R,Y,O;return T?(R=Pl(T,P),L?(Y=Pl(L,1-P),O=Y[1]*Y[1]+P*R[0]*R[0]*Y[0]*Y[0],[[R[0]*Y[2]/O,R[1]*R[2]*Y[0]*Y[1]/O],[R[1]*Y[1]/O,-R[0]*R[2]*Y[0]*Y[2]/O],[R[2]*Y[1]*Y[2]/O,-P*R[0]*R[1]*Y[0]/O]]):[[R[0],0],[R[1],0],[R[2],0]]):(Y=Pl(L,1-P),[[0,Y[0]/Y[1]],[1/Y[1],0],[Y[2]/Y[1],0]])}function Pl(T,L){var P,R,Y,O,Z;if(L=1-b)return P=(1-L)/4,R=K(T),O=re(T),Y=1/R,Z=R*te(T),[O+P*(Z-T)/(R*R),Y-P*O*Y*(Z-T),Y+P*O*Y*(Z+T),2*a(l(T))-_+P*(Z-T)/R];var ue=[1,0,0,0,0,0,0,0,0],ve=[V(L),0,0,0,0,0,0,0,0],le=0;for(R=V(1-L),Z=1;n(ve[le]/ue[le])>b&&le<8;)P=ue[le++],ve[le]=(P-R)/2,ue[le]=(P+R)/2,R=V(P*R),Z*=2;Y=Z*ue[le]*T;do O=ve[le]*p(R=Y)/ue[le],Y=(B(O)+Y)/2;while(--le);return[p(Y),O=o(Y),O/o(Y-R),Y]}function Rl(T,L,P){var R=n(T),Y=n(L),O=te(Y);if(R){var Z=1/p(R),ue=1/(y(R)*y(R)),ve=-(ue+P*(O*O*Z*Z)-1+P),le=(P-1)*ue,de=(-ve+V(ve*ve-4*le))/2;return[bi(a(1/V(de)),P)*m(T),bi(a(V((de/ue-1)/P)),1-P)*m(L)]}return[0,bi(a(O),1-P)*m(L)]}function bi(T,L){if(!L)return T;if(L===1)return u(y(T/2+A));for(var P=1,R=V(1-L),Y=V(L),O=0;n(Y)>b;O++){if(T%x){var Z=a(R*y(T)/P);Z<0&&(Z+=x),T+=Z+~~(T/x)*x}else T+=T;Y=(P+R)/2,R=V(P*R),Y=((P=Y)-R)/2}return T/(h(2,O)*P)}function lo(T,L){var P=(M-1)/(M+1),R=V(1-P*P),Y=bi(_,R*R),O=-1,Z=u(y(x/4+n(L)/2)),ue=l(O*Z)/V(P),ve=Wo(ue*o(O*T),ue*p(O*T)),le=Rl(ve[0],ve[1],R*R);return[-le[1],(L>=0?1:-1)*(.5*Y-le[0])]}function Wo(T,L){var P=T*T,R=L+1,Y=1-P-L*L;return[.5*((T>=0?_:-_)-i(Y,2*T)),-.25*u(Y*Y+4*P)+.5*u(R*R+P)]}function zl(T,L){var P=L[0]*L[0]+L[1]*L[1];return[(T[0]*L[0]+T[1]*L[1])/P,(T[1]*L[0]-T[0]*L[1])/P]}lo.invert=function(T,L){var P=(M-1)/(M+1),R=V(1-P*P),Y=bi(_,R*R),O=-1,Z=hu(.5*Y-L,-T,R*R),ue=zl(Z[0],Z[1]),ve=i(ue[1],ue[0])/O;return[ve,2*a(l(.5/O*u(P*ue[0]*ue[0]+P*ue[1]*ue[1])))-_]};function bs(){return r.geoProjection(wf(lo)).scale(151.496)}function Mf(T){var L=p(T),P=o(T),R=Zc(T);R.invert=Zc(-T);function Y(O,Z){var ue=R(O,Z);O=ue[0],Z=ue[1];var ve=p(Z),le=o(Z),de=o(O),xe=X(L*ve+P*le*de),qe=p(xe),He=n(qe)>b?xe/qe:1;return[He*P*p(O),(n(O)>_?He:-He)*(L*le-P*ve*de)]}return Y.invert=function(O,Z){var ue=V(O*O+Z*Z),ve=-p(ue),le=o(ue),de=ue*le,xe=-Z*ve,qe=ue*L,He=V(de*de+xe*xe-qe*qe),er=i(de*qe+xe*He,xe*qe-de*He),fr=(ue>_?-1:1)*i(O*ve,ue*o(er)*le+Z*p(er)*ve);return R.invert(fr,er)},Y}function Zc(T){var L=p(T),P=o(T);return function(R,Y){var O=o(Y),Z=o(R)*O,ue=p(R)*O,ve=p(Y);return[i(ue,Z*P-ve*L),B(ve*P+Z*L)]}}function _s(){var T=0,L=r.geoProjectionMutator(Mf),P=L(T),R=P.rotate,Y=P.stream,O=r.geoCircle();return P.parallel=function(Z){if(!arguments.length)return T*F;var ue=P.rotate();return L(T=Z*H).rotate(ue)},P.rotate=function(Z){return arguments.length?(R.call(P,[Z[0],Z[1]-T*F]),O.center([-Z[0],-Z[1]]),P):(Z=R.call(P),Z[1]+=T*F,Z)},P.stream=function(Z){return Z=Y(Z),Z.sphere=function(){Z.polygonStart();var ue=.01,ve=O.radius(90-ue)().coordinates[0],le=ve.length-1,de=-1,xe;for(Z.lineStart();++de=0;)Z.point((xe=ve[de])[0],xe[1]);Z.lineEnd(),Z.polygonEnd()},Z},P.scale(79.4187).parallel(45).clipAngle(180-.001)}var xs=3,ws=B(1-1/xs)*F,Zo=An(0);function so(T){var L=ws*H,P=qr(x,L)[0]-qr(-x,L)[0],R=Zo(0,L)[1],Y=qr(0,L)[1],O=D-Y,Z=z/T,ue=4/z,ve=R+O*O*4/z;function le(de,xe){var qe,He=n(xe);if(He>L){var er=v(T-1,f(0,s((de+x)/Z)));de+=x*(T-1)/T-er*Z,qe=qr(de,He),qe[0]=qe[0]*z/P-z*(T-1)/(2*T)+er*z/T,qe[1]=R+(qe[1]-Y)*4*O/z,xe<0&&(qe[1]=-qe[1])}else qe=Zo(de,xe);return qe[0]*=ue,qe[1]/=ve,qe}return le.invert=function(de,xe){de/=ue,xe*=ve;var qe=n(xe);if(qe>R){var He=v(T-1,f(0,s((de+x)/Z)));de=(de+x*(T-1)/T-He*Z)*P/z;var er=qr.invert(de,.25*(qe-R)*z/O+Y);return er[0]-=x*(T-1)/T-He*Z,xe<0&&(er[1]=-er[1]),er}return Zo.invert(de,xe)},le}function uo(T,L){return[T,L&1?90-b:ws]}function Bi(T,L){return[T,L&1?-90+b:-ws]}function Af(T){return[T[0]*(1-b),T[1]]}function du(T){var L=[].concat(t.range(-180,180+T/2,T).map(uo),t.range(180,-180-T/2,-T).map(Bi));return{type:"Polygon",coordinates:[T===180?L.map(Af):L]}}function Nl(){var T=4,L=r.geoProjectionMutator(so),P=L(T),R=P.stream;return P.lobes=function(Y){return arguments.length?L(T=+Y):T},P.stream=function(Y){var O=P.rotate(),Z=R(Y),ue=(P.rotate([0,0]),R(Y));return P.rotate(O),Z.sphere=function(){r.geoStream(du(180/T),ue)},Z},P.scale(239.75)}function Tf(T){var L=1+T,P=p(1/L),R=B(P),Y=2*V(x/(O=x+4*R*L)),O,Z=.5*Y*(L+V(T*(2+T))),ue=T*T,ve=L*L;function le(de,xe){var qe=1-p(xe),He,er;if(qe&&qe<2){var fr=_-xe,Mr=25,Zr;do{var at=p(fr),ot=o(fr),st=R+i(at,L-ot),vt=1+ve-2*L*ot;fr-=Zr=(fr-ue*R-L*at+vt*st-.5*qe*O)/(2*L*at*st)}while(n(Zr)>C&&--Mr>0);He=Y*V(vt),er=de*st/x}else He=Y*(T+qe),er=de*R/x;return[He*p(er),Z-He*o(er)]}return le.invert=function(de,xe){var qe=de*de+(xe-=Z)*xe,He=(1+ve-qe/(Y*Y))/(2*L),er=X(He),fr=p(er),Mr=R+i(fr,L-He);return[B(de/V(qe))*x/Mr,B(1-2*(er-ue*R-L*fr+(1+ve-2*L*He)*Mr)/O)]},le}function Xc(){var T=1,L=r.geoProjectionMutator(Tf),P=L(T);return P.ratio=function(R){return arguments.length?L(T=+R):T},P.scale(167.774).center([0,18.67])}var Ms=.7109889596207567,Oi=.0528035274542;function As(T,L){return L>-Ms?(T=Qe(T,L),T[1]+=Oi,T):Er(T,L)}As.invert=function(T,L){return L>-Ms?Qe.invert(T,L-Oi):Er.invert(T,L)};function jc(){return r.geoProjection(As).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Ts(T,L){return n(L)>Ms?(T=Qe(T,L),T[1]-=L>0?Oi:-Oi,T):Er(T,L)}Ts.invert=function(T,L){return n(L)>Ms?Qe.invert(T,L+(L>0?Oi:-Oi)):Er.invert(T,L)};function Fv(){return r.geoProjection(Ts).scale(152.63)}function Xo(T,L,P,R){var Y=V(4*x/(2*P+(1+T-L/2)*p(2*P)+(T+L)/2*p(4*P)+L/2*p(6*P))),O=V(R*p(P)*V((1+T*o(2*P)+L*o(4*P))/(1+T+L))),Z=P*ve(1);function ue(xe){return V(1+T*o(2*xe)+L*o(4*xe))}function ve(xe){var qe=xe*P;return(2*qe+(1+T-L/2)*p(2*qe)+(T+L)/2*p(4*qe)+L/2*p(6*qe))/P}function le(xe){return ue(xe)*p(xe)}var de=function(xe,qe){var He=P*ir(ve,Z*p(qe)/P,qe/x);isNaN(He)&&(He=P*m(qe));var er=Y*ue(He);return[er*O*xe/x*o(He),er/O*p(He)]};return de.invert=function(xe,qe){var He=ir(le,qe*O/Y);return[xe*x/(o(He)*Y*O*ue(He)),B(P*ve(He/P)/Z)]},P===0&&(Y=V(R/x),de=function(xe,qe){return[xe*Y,p(qe)/Y]},de.invert=function(xe,qe){return[xe/Y,B(qe*Y)]}),de}function kf(){var T=1,L=0,P=45*H,R=2,Y=r.geoProjectionMutator(Xo),O=Y(T,L,P,R);return O.a=function(Z){return arguments.length?Y(T=+Z,L,P,R):T},O.b=function(Z){return arguments.length?Y(T,L=+Z,P,R):L},O.psiMax=function(Z){return arguments.length?Y(T,L,P=+Z*H,R):P*F},O.ratio=function(Z){return arguments.length?Y(T,L,P,R=+Z):R},O.scale(180.739)}function Fl(T,L,P,R,Y,O,Z,ue,ve,le,de){if(de.nanEncountered)return NaN;var xe,qe,He,er,fr,Mr,Zr,at,ot,st;if(xe=P-L,qe=T(L+xe*.25),He=T(P-xe*.25),isNaN(qe)){de.nanEncountered=!0;return}if(isNaN(He)){de.nanEncountered=!0;return}return er=xe*(R+4*qe+Y)/12,fr=xe*(Y+4*He+O)/12,Mr=er+fr,st=(Mr-Z)/15,le>ve?(de.maxDepthCount++,Mr+st):Math.abs(st)>1;do ve[Mr]>He?fr=Mr:er=Mr,Mr=er+fr>>1;while(Mr>er);var Zr=ve[Mr+1]-ve[Mr];return Zr&&(Zr=(He-ve[Mr+1])/Zr),(Mr+1+Zr)/Z}var xe=2*de(1)/x*O/P,qe=function(He,er){var fr=de(n(p(er))),Mr=R(fr)*He;return fr/=xe,[Mr,er>=0?fr:-fr]};return qe.invert=function(He,er){var fr;return er*=xe,n(er)<1&&(fr=m(er)*B(Y(n(er))*O)),[He/R(n(er)),fr]},qe}function co(){var T=0,L=2.5,P=1.183136,R=r.geoProjectionMutator(fo),Y=R(T,L,P);return Y.alpha=function(O){return arguments.length?R(T=+O,L,P):T},Y.k=function(O){return arguments.length?R(T,L=+O,P):L},Y.gamma=function(O){return arguments.length?R(T,L,P=+O):P},Y.scale(152.63)}function Sf(T,L){return n(T[0]-L[0])=0;--ve)P=T[1][ve],R=P[0][0],Y=P[0][1],O=P[1][1],Z=P[2][0],ue=P[2][1],L.push(_i([[Z-b,ue-b],[Z-b,O+b],[R+b,O+b],[R+b,Y-b]],30));return{type:"Polygon",coordinates:[t.merge(L)]}}function Ui(T,L,P){var R,Y;function O(ve,le){for(var de=le<0?-1:1,xe=L[+(le<0)],qe=0,He=xe.length-1;qexe[qe][2][0];++qe);var er=T(ve-xe[qe][1][0],le);return er[0]+=T(xe[qe][1][0],de*le>de*xe[qe][0][1]?xe[qe][0][1]:le)[0],er}P?O.invert=P(O):T.invert&&(O.invert=function(ve,le){for(var de=Y[+(le<0)],xe=L[+(le<0)],qe=0,He=de.length;qeer&&(fr=He,He=er,er=fr),[[xe,He],[qe,er]]})}),Z):L.map(function(le){return le.map(function(de){return[[de[0][0]*F,de[0][1]*F],[de[1][0]*F,de[1][1]*F],[de[2][0]*F,de[2][1]*F]]})})},L!=null&&Z.lobes(L),Z}var Il=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Hv(){return Ui(Ye,Il).scale(160.857)}var Yi=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function jo(){return Ui(Ts,Yi).scale(152.63)}var Jo=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function $o(){return Ui(Qe,Jo).scale(169.529)}var vo=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function ks(){return Ui(Qe,vo).scale(169.529).rotate([20,0])}var pu=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function Ss(){return Ui(As,pu,or).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Cs=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function Ko(){return Ui(Er,Cs).scale(152.63).rotate([-20,0])}function Hl(T,L){return[3/z*T*V(x*x/3-L*L),L]}Hl.invert=function(T,L){return[z/3*T/V(x*x/3-L*L),L]};function Bl(){return r.geoProjection(Hl).scale(158.837)}function gu(T){function L(P,R){if(n(n(R)-_)2)return null;P/=2,R/=2;var O=P*P,Z=R*R,ue=2*R/(1+O+Z);return ue=h((1+ue)/(1-ue),1/T),[i(2*P,1-O-Z)/T,B((ue-1)/(ue+1))]},L}function mu(){var T=.5,L=r.geoProjectionMutator(gu),P=L(T);return P.spacing=function(R){return arguments.length?L(T=+R):T},P.scale(124.75)}var oi=x/M;function yu(T,L){return[T*(1+V(o(L)))/2,L/(o(L/2)*o(T/6))]}yu.invert=function(T,L){var P=n(T),R=n(L),Y=b,O=_;Rb||n(Mr)>b)&&--Y>0);return Y&&[P,R]};function Kn(){return r.geoProjection(Fa).scale(139.98)}function Aa(T,L){return[p(T)/o(L),y(L)*o(T)]}Aa.invert=function(T,L){var P=T*T,R=L*L,Y=R+1,O=P+Y,Z=T?k*V((O-V(O*O-4*P))/P):1/V(Y);return[B(T*Z),m(L)*X(Z)]};function Gi(){return r.geoProjection(Aa).scale(144.049).clipAngle(90-.001)}function Ls(T){var L=o(T),P=y(A+T/2);function R(Y,O){var Z=O-T,ue=n(Z)=0;)de=T[le],xe=de[0]+ue*(He=xe)-ve*qe,qe=de[1]+ue*qe+ve*He;return xe=ue*(He=xe)-ve*qe,qe=ue*qe+ve*He,[xe,qe]}return P.invert=function(R,Y){var O=20,Z=R,ue=Y;do{for(var ve=L,le=T[ve],de=le[0],xe=le[1],qe=0,He=0,er;--ve>=0;)le=T[ve],qe=de+Z*(er=qe)-ue*He,He=xe+Z*He+ue*er,de=le[0]+Z*(er=de)-ue*xe,xe=le[1]+Z*xe+ue*er;qe=de+Z*(er=qe)-ue*He,He=xe+Z*He+ue*er,de=Z*(er=de)-ue*xe-R,xe=Z*xe+ue*er-Y;var fr=qe*qe+He*He,Mr,Zr;Z-=Mr=(de*qe+xe*He)/fr,ue-=Zr=(xe*qe-de*He)/fr}while(n(Mr)+n(Zr)>b*b&&--O>0);if(O){var at=V(Z*Z+ue*ue),ot=2*a(at*.5),st=p(ot);return[i(Z*st,at*o(ot)),at?B(ue*st/at):0]}},P}var Bv=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Ov=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Lf=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],qf=[[.9245,0],[0,0],[.01943,0]],Df=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Ef(){return xi(Bv,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function Kc(){return xi(Ov,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Qc(){return xi(Lf,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function qs(){return xi(qf,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Ds(){return xi(Df,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function xi(T,L){var P=r.geoProjection($c(T)).rotate(L).clipAngle(90),R=r.geoRotation(L),Y=P.center;return delete P.rotate,P.center=function(O){return arguments.length?Y(R(O)):R.invert(Y())},P}var _u=V(6),Es=V(7);function xu(T,L){var P=B(7*p(L)/(3*_u));return[_u*T*(2*o(2*P/3)-1)/Es,9*p(P/3)/Es]}xu.invert=function(T,L){var P=3*B(L*Es/9);return[T*Es/(_u*(2*o(2*P/3)-1)),B(p(P)*3*_u/7)]};function e0(){return r.geoProjection(xu).scale(164.859)}function Pf(T,L){for(var P=(1+k)*p(L),R=L,Y=0,O;Y<25&&(R-=O=(p(R/2)+p(R)-P)/(.5*o(R/2)+o(R)),!(n(O)C&&--R>0);return O=P*P,Z=O*O,ue=O*Z,[T/(.84719-.13063*O+ue*ue*(-.04515+.05494*O-.02326*Z+.00331*ue)),P]};function Ps(){return r.geoProjection(Ul).scale(175.295)}function Rs(T,L){return[T*(1+o(L))/2,2*(L-y(L/2))]}Rs.invert=function(T,L){for(var P=L/2,R=0,Y=1/0;R<10&&n(Y)>b;++R){var O=o(L/2);L-=Y=(L-y(L/2)-P)/(1-.5/(O*O))}return[2*T/(1+o(L)),L]};function Rf(){return r.geoProjection(Rs).scale(152.63)}var po=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function r0(){return Ui(Se(1/0),po).rotate([20,0]).scale(152.63)}function zf(T,L){var P=p(L),R=o(L),Y=m(T);if(T===0||n(L)===_)return[0,L];if(L===0)return[T,0];if(n(T)===_)return[T*R,_*P];var O=x/(2*T)-2*T/x,Z=2*L/x,ue=(1-Z*Z)/(P-Z),ve=O*O,le=ue*ue,de=1+ve/le,xe=1+le/ve,qe=(O*P/ue-O/2)/de,He=(le*P/ve+ue/2)/xe,er=qe*qe+R*R/de,fr=He*He-(le*P*P/ve+ue*P-1)/xe;return[_*(qe+V(er)*Y),_*(He+V(fr<0?0:fr)*m(-L*O)*Y)]}zf.invert=function(T,L){T/=_,L/=_;var P=T*T,R=L*L,Y=P+R,O=x*x;return[T?(Y-1+V((1-Y)*(1-Y)+4*P))/(2*T)*_:0,ir(function(Z){return Y*(x*p(Z)-2*Z)*x+4*Z*Z*(L-p(Z))+2*x*Z-O*L},0)]};function t0(){return r.geoProjection(zf).scale(127.267)}var Nf=1.0148,Mu=.23185,Ff=-.14499,If=.02406,Yv=Nf,Hf=5*Mu,wi=7*Ff,Bf=9*If,Yl=1.790857183;function Of(T,L){var P=L*L;return[T,L*(Nf+P*P*(Mu+P*(Ff+If*P)))]}Of.invert=function(T,L){L>Yl?L=Yl:L<-Yl&&(L=-Yl);var P=L,R;do{var Y=P*P;P-=R=(P*(Nf+Y*Y*(Mu+Y*(Ff+If*Y)))-L)/(Yv+Y*Y*(Hf+Y*(wi+Bf*Y)))}while(n(R)>b);return[T,P]};function n0(){return r.geoProjection(Of).scale(139.319)}function el(T,L){if(n(L)b&&--Y>0);return Z=y(R),[(n(L)=0;)if(R=L[ue],P[0]===R[0]&&P[1]===R[1]){if(O)return[O,P];O=P}}}function l0(T){for(var L=T.length,P=[],R=T[L-1],Y=0;Y0?[-R[0],0]:[180-R[0],180])};var L=Au.map(function(P){return{face:P,project:T(P)}});return[-1,0,0,1,0,1,4,5].forEach(function(P,R){var Y=L[P];Y&&(Y.children||(Y.children=[])).push(L[R])}),Gl(L[0],function(P,R){return L[P<-x/2?R<0?6:4:P<0?R<0?2:0:PR^He>R&&P<(qe-le)*(R-de)/(He-de)+le&&(Y=!Y)}return Y}function Su(T,L){var P=L.stream,R;if(!P)throw new Error("invalid projection");switch(T&&T.type){case"Feature":R=c0;break;case"FeatureCollection":R=f0;break;default:R=Cu;break}return R(T,P)}function f0(T,L){return{type:"FeatureCollection",features:T.features.map(function(P){return c0(P,L)})}}function c0(T,L){return{type:"Feature",id:T.id,properties:T.properties,geometry:Cu(T.geometry,L)}}function Uf(T,L){return{type:"GeometryCollection",geometries:T.geometries.map(function(P){return Cu(P,L)})}}function Cu(T,L){if(!T)return null;if(T.type==="GeometryCollection")return Uf(T,L);var P;switch(T.type){case"Point":P=Wl;break;case"MultiPoint":P=Wl;break;case"LineString":P=Lu;break;case"MultiLineString":P=Lu;break;case"Polygon":P=Os;break;case"MultiPolygon":P=Os;break;case"Sphere":P=Os;break;default:return null}return r.geoStream(T,L(P)),P.result()}var Zn=[],li=[],Wl={point:function(T,L){Zn.push([T,L])},result:function(){var T=Zn.length?Zn.length<2?{type:"Point",coordinates:Zn[0]}:{type:"MultiPoint",coordinates:Zn}:null;return Zn=[],T}},Lu={lineStart:ku,point:function(T,L){Zn.push([T,L])},lineEnd:function(){Zn.length&&(li.push(Zn),Zn=[])},result:function(){var T=li.length?li.length<2?{type:"LineString",coordinates:li[0]}:{type:"MultiLineString",coordinates:li}:null;return li=[],T}},Os={polygonStart:ku,lineStart:ku,point:function(T,L){Zn.push([T,L])},lineEnd:function(){var T=Zn.length;if(T){do Zn.push(Zn[0].slice());while(++T<4);li.push(Zn),Zn=[]}},polygonEnd:ku,result:function(){if(!li.length)return null;var T=[],L=[];return li.forEach(function(P){Bs(P)?T.push([P]):L.push(P)}),L.forEach(function(P){var R=P[0];T.some(function(Y){if(u0(Y[0],R))return Y.push(P),!0})||T.push([P])}),li=[],T.length?T.length>1?{type:"MultiPolygon",coordinates:T}:{type:"Polygon",coordinates:T[0]}:null}};function Yf(T){var L=T(_,0)[0]-T(-_,0)[0];function P(R,Y){var O=n(R)<_,Z=T(O?R:R>0?R-x:R+x,Y),ue=(Z[0]-Z[1])*k,ve=(Z[0]+Z[1])*k;if(O)return[ue,ve];var le=L*k,de=ue>0^ve>0?-1:1;return[de*ue-m(ve)*le,de*ve-m(ue)*le]}return T.invert&&(P.invert=function(R,Y){var O=(R+Y)*k,Z=(Y-R)*k,ue=n(O)<.5*L&&n(Z)<.5*L;if(!ue){var ve=L*k,le=O>0^Z>0?-1:1,de=-le*R+(Z>0?1:-1)*ve,xe=-le*Y+(O>0?1:-1)*ve;O=(-de-xe)*k,Z=(de-xe)*k}var qe=T.invert(O,Z);return ue||(qe[0]+=O>0?x:-x),qe}),r.geoProjection(P).rotate([-90,-90,45]).clipAngle(180-.001)}function I(){return Yf(vu).scale(176.423)}function J(){return Yf(lo).scale(111.48)}function ce(T,L){if(!(0<=(L=+L)&&L<=20))throw new Error("invalid digits");function P(le){var de=le.length,xe=2,qe=new Array(de);for(qe[0]=+le[0].toFixed(L),qe[1]=+le[1].toFixed(L);xe2||He[0]!=de[0]||He[1]!=de[1])&&(xe.push(He),de=He)}return xe.length===1&&le.length>1&&xe.push(P(le[le.length-1])),xe}function O(le){return le.map(Y)}function Z(le){if(le==null)return le;var de;switch(le.type){case"GeometryCollection":de={type:"GeometryCollection",geometries:le.geometries.map(Z)};break;case"Point":de={type:"Point",coordinates:P(le.coordinates)};break;case"MultiPoint":de={type:le.type,coordinates:R(le.coordinates)};break;case"LineString":de={type:le.type,coordinates:Y(le.coordinates)};break;case"MultiLineString":case"Polygon":de={type:le.type,coordinates:O(le.coordinates)};break;case"MultiPolygon":de={type:"MultiPolygon",coordinates:le.coordinates.map(O)};break;default:return le}return le.bbox!=null&&(de.bbox=le.bbox),de}function ue(le){var de={type:"Feature",properties:le.properties,geometry:Z(le.geometry)};return le.id!=null&&(de.id=le.id),le.bbox!=null&&(de.bbox=le.bbox),de}if(T!=null)switch(T.type){case"Feature":return ue(T);case"FeatureCollection":{var ve={type:"FeatureCollection",features:T.features.map(ue)};return T.bbox!=null&&(ve.bbox=T.bbox),ve}default:return Z(T)}return T}function oe(T){var L=p(T);function P(R,Y){var O=L?y(R*L/2)/L:R/2;if(!Y)return[2*O,-T];var Z=2*a(O*p(Y)),ue=1/y(Y);return[p(Z)*ue,Y+(1-o(Z))*ue-T]}return P.invert=function(R,Y){if(n(Y+=T)b&&--ue>0);var qe=R*(le=y(Z)),He=y(n(Y)0?_:-_)*(ve+Y*(de-Z)/2+Y*Y*(de-2*ve+Z)/2)]}je.invert=function(T,L){var P=L/_,R=P*90,Y=v(18,n(R/5)),O=f(0,s(Y));do{var Z=Be[O][1],ue=Be[O+1][1],ve=Be[v(19,O+2)][1],le=ve-Z,de=ve-2*ue+Z,xe=2*(n(P)-ue)/le,qe=de/le,He=xe*(1-qe*xe*(1-2*qe*xe));if(He>=0||O===1){R=(L>=0?5:-5)*(He+Y);var er=50,fr;do Y=v(18,n(R)/5),O=s(Y),He=Y-O,Z=Be[O][1],ue=Be[O+1][1],ve=Be[v(19,O+2)][1],R-=(fr=(L>=0?_:-_)*(ue+He*(ve-Z)/2+He*He*(ve-2*ue+Z)/2)-L)*F;while(n(fr)>C&&--er>0);break}}while(--O>=0);var Mr=Be[O][0],Zr=Be[O+1][0],at=Be[v(19,O+2)][0];return[T/(Zr+He*(at-Mr)/2+He*He*(at-2*Zr+Mr)/2),R*H]};function nr(){return r.geoProjection(je).scale(152.63)}function lr(T){function L(P,R){var Y=o(R),O=(T-1)/(T-Y*o(P));return[O*Y*p(P),O*p(R)]}return L.invert=function(P,R){var Y=P*P+R*R,O=V(Y),Z=(T-V(1-Y*(T+1)/(T-1)))/((T-1)/O+O/(T-1));return[i(P*Z,O*V(1-Z*Z)),O?B(R*Z/O):0]},L}function yr(T,L){var P=lr(T);if(!L)return P;var R=o(L),Y=p(L);function O(Z,ue){var ve=P(Z,ue),le=ve[1],de=le*Y/(T-1)+R;return[ve[0]*R/de,le/de]}return O.invert=function(Z,ue){var ve=(T-1)/(T-1-ue*Y);return P.invert(ve*Z,ve*ue*R)},O}function Ke(){var T=2,L=0,P=r.geoProjectionMutator(yr),R=P(T,L);return R.distance=function(Y){return arguments.length?P(T=+Y,L):T},R.tilt=function(Y){return arguments.length?P(T,L=Y*H):L*F},R.scale(432.147).clipAngle(X(1/T)*F-1e-6)}var vr=1e-4,sr=1e4,xr=-180,Sr=xr+vr,et=180,jr=et-vr,tt=-90,nt=tt+vr,Lr=90,Br=Lr-vr;function it(T){return T.length>0}function pt(T){return Math.floor(T*sr)/sr}function Gt(T){return T===tt||T===Lr?[0,T]:[xr,pt(T)]}function tn(T){var L=T[0],P=T[1],R=!1;return L<=Sr?(L=xr,R=!0):L>=jr&&(L=et,R=!0),P<=nt?(P=tt,R=!0):P>=Br&&(P=Lr,R=!0),R?[L,P]:T}function Zt(T){return T.map(tn)}function gn(T,L,P){for(var R=0,Y=T.length;R=jr||de<=nt||de>=Br){O[Z]=tn(ve);for(var xe=Z+1;xeSr&&Hent&&er=ue)break;P.push({index:-1,polygon:L,ring:O=O.slice(xe-1)}),O[0]=Gt(O[0][1]),Z=-1,ue=O.length}}}}function Lt(T){var L,P=T.length,R={},Y={},O,Z,ue,ve,le;for(L=0;L0?x-ue:ue)*F],le=r.geoProjection(T(Z)).rotate(ve),de=r.geoRotation(ve),xe=le.center;return delete le.rotate,le.center=function(qe){return arguments.length?xe(de(qe)):de.invert(xe())},le.clipAngle(90)}function ga(T){var L=o(T);function P(R,Y){var O=r.geoGnomonicRaw(R,Y);return O[0]*=L,O}return P.invert=function(R,Y){return r.geoGnomonicRaw.invert(R/L,Y)},P}function Xa(){return Wi([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Wi(T,L){return Un(ga,T,L)}function Ai(T){if(!(T*=2))return r.geoAzimuthalEquidistantRaw;var L=-T/2,P=-L,R=T*T,Y=y(P),O=.5/p(P);function Z(ue,ve){var le=X(o(ve)*o(ue-L)),de=X(o(ve)*o(ue-P)),xe=ve<0?-1:1;return le*=le,de*=de,[(le-de)/(2*T),xe*V(4*R*de-(R-le+de)*(R-le+de))/(2*T)]}return Z.invert=function(ue,ve){var le=ve*ve,de=o(V(le+(qe=ue+L)*qe)),xe=o(V(le+(qe=ue+P)*qe)),qe,He;return[i(He=de-xe,qe=(de+xe)*Y),(ve<0?-1:1)*X(V(qe*qe+He*He)*O)]},Z}function nl(){return si([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function si(T,L){return Un(Ai,T,L)}function al(T,L){if(n(L)b&&--ue>0);return[m(T)*(V(Y*Y+4)+Y)*x/4,_*Z]};function Zi(){return r.geoProjection(Gf).scale(127.16)}function Wh(T,L,P,R,Y){function O(Z,ue){var ve=P*p(R*ue),le=V(1-ve*ve),de=V(2/(1+le*o(Z*=Y)));return[T*le*de*p(Z),L*ve*de]}return O.invert=function(Z,ue){var ve=Z/T,le=ue/L,de=V(ve*ve+le*le),xe=2*B(de/2);return[i(Z*y(xe),T*de)/Y,de&&B(ue*p(xe)/(L*P*de))/R]},O}function Zh(T,L,P,R){var Y=x/3;T=f(T,b),L=f(L,b),T=v(T,_),L=v(L,x-b),P=f(P,0),P=v(P,100-b),R=f(R,b);var O=P/100+1,Z=R/100,ue=X(O*o(Y))/Y,ve=p(T)/p(ue*_),le=L/x,de=V(Z*p(T/2)/p(L/2)),xe=de/V(le*ve*ue),qe=1/(de*V(le*ve*ue));return Wh(xe,qe,ve,ue,le)}function d0(){var T=65*H,L=60*H,P=20,R=200,Y=r.geoProjectionMutator(Zh),O=Y(T,L,P,R);return O.poleline=function(Z){return arguments.length?Y(T=+Z*H,L,P,R):T*F},O.parallels=function(Z){return arguments.length?Y(T,L=+Z*H,P,R):L*F},O.inflation=function(Z){return arguments.length?Y(T,L,P=+Z,R):P},O.ratio=function(Z){return arguments.length?Y(T,L,P,R=+Z):R},O.scale(163.775)}function Xv(){return d0().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var Xh=4*x+3*V(3),jh=2*V(2*x*V(3)/Xh),Jh=cr(jh*V(3)/x,jh,Xh/6);function p0(){return r.geoProjection(Jh).scale(176.84)}function Vf(T,L){return[T*V(1-3*L*L/(x*x)),L]}Vf.invert=function(T,L){return[T/V(1-3*L*L/(x*x)),L]};function $h(){return r.geoProjection(Vf).scale(152.63)}function jv(T,L){var P=o(L),R=o(T)*P,Y=1-R,O=o(T=i(p(T)*P,-p(L))),Z=p(T);return P=V(1-R*R),[Z*P-O*Y,-O*P-Z*Y]}jv.invert=function(T,L){var P=(T*T+L*L)/-2,R=V(-P*(2+P)),Y=L*P+T*R,O=T*P-L*R,Z=V(O*O+Y*Y);return[i(R*Y,Z*(1+P)),Z?-B(R*O/Z):0]};function _y(){return r.geoProjection(jv).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function Jv(T,L){var P=Ne(T,L);return[(P[0]+T/_)/2,(P[1]+L)/2]}Jv.invert=function(T,L){var P=T,R=L,Y=25;do{var O=o(R),Z=p(R),ue=p(2*R),ve=Z*Z,le=O*O,de=p(P),xe=o(P/2),qe=p(P/2),He=qe*qe,er=1-le*xe*xe,fr=er?X(O*xe)*V(Mr=1/er):Mr=0,Mr,Zr=.5*(2*fr*O*qe+P/_)-T,at=.5*(fr*Z+R)-L,ot=.5*Mr*(le*He+fr*O*xe*ve)+.5/_,st=Mr*(de*ue/4-fr*Z*qe),vt=.125*Mr*(ue*qe-fr*Z*le*de),ln=.5*Mr*(ve*xe+fr*He*O)+.5,Mn=st*vt-ln*ot,zt=(at*st-Zr*ln)/Mn,Fn=(Zr*vt-at*ot)/Mn;P-=zt,R-=Fn}while((n(zt)>b||n(Fn)>b)&&--Y>0);return[P,R]};function Ti(){return r.geoProjection(Jv).scale(158.837)}e.geoNaturalEarth=r.geoNaturalEarth1,e.geoNaturalEarthRaw=r.geoNaturalEarth1Raw,e.geoAiry=De,e.geoAiryRaw=he,e.geoAitoff=Fe,e.geoAitoffRaw=Ne,e.geoArmadillo=Le,e.geoArmadilloRaw=Je,e.geoAugust=se,e.geoAugustRaw=rr,e.geoBaker=U,e.geoBakerRaw=pe,e.geoBerghaus=$,e.geoBerghausRaw=ee,e.geoBertin1953=tr,e.geoBertin1953Raw=Ue,e.geoBoggs=Ar,e.geoBoggsRaw=Ye,e.geoBonne=hr,e.geoBonneRaw=Xe,e.geoBottomley=mr,e.geoBottomleyRaw=wr,e.geoBromley=Dr,e.geoBromleyRaw=Tr,e.geoChamberlin=Ze,e.geoChamberlinRaw=be,e.geoChamberlinAfrica=$e,e.geoCollignon=Hr,e.geoCollignonRaw=qr,e.geoCraig=lt,e.geoCraigRaw=Pr,e.geoCraster=It,e.geoCrasterRaw=Nt,e.geoCylindricalEqualArea=Tn,e.geoCylindricalEqualAreaRaw=An,e.geoCylindricalStereographic=Ft,e.geoCylindricalStereographicRaw=cn,e.geoEckert1=en,e.geoEckert1Raw=jt,e.geoEckert2=aa,e.geoEckert2Raw=Jt,e.geoEckert3=rn,e.geoEckert3Raw=rt,e.geoEckert4=dn,e.geoEckert4Raw=St,e.geoEckert5=an,e.geoEckert5Raw=pn,e.geoEckert6=da,e.geoEckert6Raw=vn,e.geoEisenlohr=pa,e.geoEisenlohrRaw=Na,e.geoFahey=Bn,e.geoFaheyRaw=Ht,e.geoFoucaut=io,e.geoFoucautRaw=pi,e.geoFoucautSinusoidal=ms,e.geoFoucautSinusoidalRaw=gi,e.geoGilbert=ys,e.geoGingery=Uo,e.geoGingeryRaw=Oo,e.geoGinzburg4=Ct,e.geoGinzburg4Raw=Kr,e.geoGinzburg5=Ur,e.geoGinzburg5Raw=Bt,e.geoGinzburg6=on,e.geoGinzburg6Raw=Wn,e.geoGinzburg8=At,e.geoGinzburg8Raw=Pn,e.geoGinzburg9=Yo,e.geoGinzburg9Raw=Wa,e.geoGringorten=Vo,e.geoGringortenRaw=vu,e.geoGuyou=bs,e.geoGuyouRaw=lo,e.geoHammer=Ie,e.geoHammerRaw=Se,e.geoHammerRetroazimuthal=_s,e.geoHammerRetroazimuthalRaw=Mf,e.geoHealpix=Nl,e.geoHealpixRaw=so,e.geoHill=Xc,e.geoHillRaw=Tf,e.geoHomolosine=Fv,e.geoHomolosineRaw=Ts,e.geoHufnagel=kf,e.geoHufnagelRaw=Xo,e.geoHyperelliptical=co,e.geoHyperellipticalRaw=fo,e.geoInterrupt=Ui,e.geoInterruptedBoggs=Hv,e.geoInterruptedHomolosine=jo,e.geoInterruptedMollweide=$o,e.geoInterruptedMollweideHemispheres=ks,e.geoInterruptedSinuMollweide=Ss,e.geoInterruptedSinusoidal=Ko,e.geoKavrayskiy7=Bl,e.geoKavrayskiy7Raw=Hl,e.geoLagrange=mu,e.geoLagrangeRaw=gu,e.geoLarrivee=bu,e.geoLarriveeRaw=yu,e.geoLaskowski=Kn,e.geoLaskowskiRaw=Fa,e.geoLittrow=Gi,e.geoLittrowRaw=Aa,e.geoLoximuthal=Qo,e.geoLoximuthalRaw=Ls,e.geoMiller=Cf,e.geoMillerRaw=Ol,e.geoModifiedStereographic=xi,e.geoModifiedStereographicRaw=$c,e.geoModifiedStereographicAlaska=Ef,e.geoModifiedStereographicGs48=Kc,e.geoModifiedStereographicGs50=Qc,e.geoModifiedStereographicMiller=qs,e.geoModifiedStereographicLee=Ds,e.geoMollweide=pr,e.geoMollweideRaw=Qe,e.geoMtFlatPolarParabolic=e0,e.geoMtFlatPolarParabolicRaw=xu,e.geoMtFlatPolarQuartic=Uv,e.geoMtFlatPolarQuarticRaw=Pf,e.geoMtFlatPolarSinusoidal=wu,e.geoMtFlatPolarSinusoidalRaw=ho,e.geoNaturalEarth2=Ps,e.geoNaturalEarth2Raw=Ul,e.geoNellHammer=Rf,e.geoNellHammerRaw=Rs,e.geoInterruptedQuarticAuthalic=r0,e.geoNicolosi=t0,e.geoNicolosiRaw=zf,e.geoPatterson=n0,e.geoPattersonRaw=Of,e.geoPolyconic=a0,e.geoPolyconicRaw=el,e.geoPolyhedral=Gl,e.geoPolyhedralButterfly=Ns,e.geoPolyhedralCollignon=Zv,e.geoPolyhedralWaterman=Is,e.geoProject=Su,e.geoGringortenQuincuncial=I,e.geoPeirceQuincuncial=J,e.geoPierceQuincuncial=J,e.geoQuantize=ce,e.geoQuincuncial=Yf,e.geoRectangularPolyconic=Me,e.geoRectangularPolyconicRaw=oe,e.geoRobinson=nr,e.geoRobinsonRaw=je,e.geoSatellite=Ke,e.geoSatelliteRaw=yr,e.geoSinuMollweide=jc,e.geoSinuMollweideRaw=As,e.geoSinusoidal=Ae,e.geoSinusoidalRaw=Er,e.geoStitch=mn,e.geoTimes=Vt,e.geoTimesRaw=Gr,e.geoTwoPointAzimuthal=Wi,e.geoTwoPointAzimuthalRaw=ga,e.geoTwoPointAzimuthalUsa=Xa,e.geoTwoPointEquidistant=si,e.geoTwoPointEquidistantRaw=Ai,e.geoTwoPointEquidistantUsa=nl,e.geoVanDerGrinten=Zl,e.geoVanDerGrintenRaw=al,e.geoVanDerGrinten2=v0,e.geoVanDerGrinten2Raw=qu,e.geoVanDerGrinten3=Vh,e.geoVanDerGrinten3Raw=h0,e.geoVanDerGrinten4=Zi,e.geoVanDerGrinten4Raw=Gf,e.geoWagner=d0,e.geoWagner7=Xv,e.geoWagnerRaw=Zh,e.geoWagner4=p0,e.geoWagner4Raw=Jh,e.geoWagner6=$h,e.geoWagner6Raw=Vf,e.geoWiechel=_y,e.geoWiechelRaw=jv,e.geoWinkel3=Ti,e.geoWinkel3Raw=Jv,Object.defineProperty(e,"__esModule",{value:!0})})});var vF=ne((Wve,cF)=>{"use strict";var ha=kt(),i_=gr(),Kae=dt(),Dv=Math.PI/180,Hc=180/Math.PI,l_={cursor:"pointer"},s_={cursor:"auto"};function Qae(e,r){var t=e.projection,n;return r._isScoped?n=eie:r._isClipped?n=tie:n=rie,n(e,t)}cF.exports=Qae;function u_(e,r){return ha.behavior.zoom().translate(r.translate()).scale(r.scale())}function f_(e,r,t){var n=e.id,a=e.graphDiv,i=a.layout,o=i[n],l=a._fullLayout,s=l[n],u={},f={};function v(h,d){u[n+"."+h]=i_.nestedProperty(o,h).get(),Kae.call("_storeDirectGUIEdit",i,l._preGUI,u);var m=i_.nestedProperty(s,h);m.get()!==d&&(m.set(d),i_.nestedProperty(o,h).set(d),f[n+"."+h]=d)}t(v),v("projection.scale",r.scale()/e.fitScale),v("fitbounds",!1),a.emit("plotly_relayout",f)}function eie(e,r){var t=u_(e,r);function n(){ha.select(this).style(l_)}function a(){r.scale(ha.event.scale).translate(ha.event.translate),e.render(!0);var l=r.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.center.lon":l[0],"geo.center.lat":l[1]})}function i(l){var s=r.invert(e.midPt);l("center.lon",s[0]),l("center.lat",s[1])}function o(){ha.select(this).style(s_),f_(e,r,i)}return t.on("zoomstart",n).on("zoom",a).on("zoomend",o),t}function rie(e,r){var t=u_(e,r),n=2,a,i,o,l,s,u,f,v,h;function d(x){return r.invert(x)}function m(x){var _=d(x);if(!_)return!0;var A=r(_);return Math.abs(A[0]-x[0])>n||Math.abs(A[1]-x[1])>n}function p(){ha.select(this).style(l_),a=ha.mouse(this),i=r.rotate(),o=r.translate(),l=i,s=d(a)}function y(){if(u=ha.mouse(this),m(a)){t.scale(r.scale()),t.translate(r.translate());return}r.scale(ha.event.scale),r.translate([o[0],ha.event.translate[1]]),s?d(u)&&(v=d(u),f=[l[0]+(v[0]-s[0]),i[1],i[2]],r.rotate(f),l=f):(a=u,s=d(a)),h=!0,e.render(!0);var x=r.rotate(),_=r.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.center.lon":_[0],"geo.center.lat":_[1],"geo.projection.rotation.lon":-x[0]})}function b(){ha.select(this).style(s_),h&&f_(e,r,C)}function C(x){var _=r.rotate(),A=r.invert(e.midPt);x("projection.rotation.lon",-_[0]),x("center.lon",A[0]),x("center.lat",A[1])}return t.on("zoomstart",p).on("zoom",y).on("zoomend",b),t}function tie(e,r){var t={r:r.rotate(),k:r.scale()},n=u_(e,r),a=fie(n,"zoomstart","zoom","zoomend"),i=0,o=n.on,l;n.on("zoomstart",function(){ha.select(this).style(l_);var h=ha.mouse(this),d=r.rotate(),m=d,p=r.translate(),y=nie(d);l=ay(r,h),o.call(n,"zoom",function(){var b=ha.mouse(this);if(r.scale(t.k=ha.event.scale),!l)h=b,l=ay(r,h);else if(ay(r,b)){r.rotate(d).translate(p);var C=ay(r,b),x=iie(l,C),_=lie(aie(y,x)),A=t.r=oie(_,l,m);(!isFinite(A[0])||!isFinite(A[1])||!isFinite(A[2]))&&(A=m),r.rotate(A),m=A}u(a.of(this,arguments))}),s(a.of(this,arguments))}).on("zoomend",function(){ha.select(this).style(s_),o.call(n,"zoom",null),f(a.of(this,arguments)),f_(e,r,v)}).on("zoom.redraw",function(){e.render(!0);var h=r.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function s(h){i++||h({type:"zoomstart"})}function u(h){h({type:"zoom"})}function f(h){--i||h({type:"zoomend"})}function v(h){var d=r.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return ha.rebind(n,a,"on")}function ay(e,r){var t=e.invert(r);return t&&isFinite(t[0])&&isFinite(t[1])&&sie(t)}function nie(e){var r=.5*e[0]*Dv,t=.5*e[1]*Dv,n=.5*e[2]*Dv,a=Math.sin(r),i=Math.cos(r),o=Math.sin(t),l=Math.cos(t),s=Math.sin(n),u=Math.cos(n);return[i*l*u+a*o*s,a*l*u-i*o*s,i*o*u+a*l*s,i*l*s-a*o*u]}function aie(e,r){var t=e[0],n=e[1],a=e[2],i=e[3],o=r[0],l=r[1],s=r[2],u=r[3];return[t*o-n*l-a*s-i*u,t*l+n*o+a*u-i*s,t*s-n*u+a*o+i*l,t*u+n*s-a*l+i*o]}function iie(e,r){if(!(!e||!r)){var t=uie(e,r),n=Math.sqrt(fF(t,t)),a=.5*Math.acos(Math.max(-1,Math.min(1,fF(e,r)))),i=Math.sin(a)/n;return n&&[Math.cos(a),t[2]*i,-t[1]*i,t[0]*i]}}function oie(e,r,t){var n=o_(r,2,e[0]);n=o_(n,1,e[1]),n=o_(n,0,e[2]-t[2]);var a=r[0],i=r[1],o=r[2],l=n[0],s=n[1],u=n[2],f=Math.atan2(i,a)*Hc,v=Math.sqrt(a*a+i*i),h,d;Math.abs(s)>v?(d=(s>0?90:-90)-f,h=0):(d=Math.asin(s/v)*Hc-f,h=Math.sqrt(v*v-s*s));var m=180-d-2*f,p=(Math.atan2(u,l)-Math.atan2(o,h))*Hc,y=(Math.atan2(u,l)-Math.atan2(o,-h))*Hc,b=sF(t[0],t[1],d,p),C=sF(t[0],t[1],m,y);return b<=C?[d,p,t[2]]:[m,y,t[2]]}function sF(e,r,t,n){var a=uF(t-e),i=uF(n-r);return Math.sqrt(a*a+i*i)}function uF(e){return(e%360+540)%360-180}function o_(e,r,t){var n=t*Dv,a=e.slice(),i=r===0?1:0,o=r===2?1:2,l=Math.cos(n),s=Math.sin(n);return a[i]=e[i]*l-e[o]*s,a[o]=e[o]*l+e[i]*s,a}function lie(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*Hc,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*Hc,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*Hc]}function sie(e){var r=e[0]*Dv,t=e[1]*Dv,n=Math.cos(t);return[n*Math.cos(r),n*Math.sin(r),Math.sin(t)]}function fF(e,r){for(var t=0,n=0,a=e.length;n{"use strict";var fu=kt(),h_=a_(),cie=h_.geoPath,vie=h_.geoDistance,hie=lF(),die=dt(),Bh=gr(),pie=Bh.strTranslate,iy=Pt(),Hh=fn(),hF=ss(),gie=fa(),v_=Dn(),dF=Ju().getAutoRange,c_=To(),mie=au().prepSelect,yie=au().clearOutline,bie=au().selectOnClick,_ie=vF(),di=Nh(),xie=Km(),gF=Um(),wie=U4().feature;function mF(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var Dl=mF.prototype;yF.exports=function(r){return new mF(r)};Dl.plot=function(e,r,t,n){var a=this;if(n)return a.update(e,r,!0);a._geoCalcData=e,a._fullLayout=r;var i=r[this.id],o=[],l=!1;for(var s in di.layerNameToAdjective)if(s!=="frame"&&i["show"+s]){l=!0;break}for(var u=!1,f=0;f0&&o._module.calcGeoJSON(i,r)}if(!t){var l=this.updateProjection(e,r);if(l)return;(!this.viewInitial||this.scope!==n.scope)&&this.saveViewInitial(n)}this.scope=n.scope,this.updateBaseLayers(r,n),this.updateDims(r,n),this.updateFx(r,n),gie.generalUpdatePerTraceModule(this.graphDiv,this,e,n);var s=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=s.selectAll(".point"),this.dataPoints.text=s.selectAll("text"),this.dataPaths.line=s.selectAll(".js-line");var u=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=u.selectAll("path"),this._render()};Dl.updateProjection=function(e,r){var t=this.graphDiv,n=r[this.id],a=r._size,i=n.domain,o=n.projection,l=n.lonaxis,s=n.lataxis,u=l._ax,f=s._ax,v=this.projection=Mie(n),h=[[a.l+a.w*i.x[0],a.t+a.h*(1-i.y[1])],[a.l+a.w*i.x[1],a.t+a.h*(1-i.y[0])]],d=n.center||{},m=o.rotation||{},p=l.range||[],y=s.range||[];if(n.fitbounds){u._length=h[1][0]-h[0][0],f._length=h[1][1]-h[0][1],u.range=dF(t,u),f.range=dF(t,f);var b=(u.range[0]+u.range[1])/2,C=(f.range[0]+f.range[1])/2;if(n._isScoped)d={lon:b,lat:C};else if(n._isClipped){d={lon:b,lat:C},m={lon:b,lat:C,roll:m.roll};var x=o.type,_=di.lonaxisSpan[x]/2||180,A=di.lataxisSpan[x]/2||90;p=[b-_,b+_],y=[C-A,C+A]}else d={lon:b,lat:C},m={lon:b,lat:m.lat,roll:m.roll}}v.center([d.lon-m.lon,d.lat-m.lat]).rotate([-m.lon,-m.lat,m.roll]).parallels(o.parallels);var k=pF(p,y);v.fitExtent(h,k);var M=this.bounds=v.getBounds(k),D=this.fitScale=v.scale(),z=v.translate();if(n.fitbounds){var F=v.getBounds(pF(u.range,f.range)),H=Math.min((M[1][0]-M[0][0])/(F[1][0]-F[0][0]),(M[1][1]-M[0][1])/(F[1][1]-F[0][1]));isFinite(H)?v.scale(H*D):Bh.warn("Something went wrong during"+this.id+"fitbounds computations.")}else v.scale(o.scale*D);var W=this.midPt=[(M[0][0]+M[1][0])/2,(M[0][1]+M[1][1])/2];if(v.translate([z[0]+(W[0]-z[0]),z[1]+(W[1]-z[1])]).clipExtent(M),n._isAlbersUsa){var B=v([d.lon,d.lat]),X=v.translate();v.translate([X[0]-(B[0]-X[0]),X[1]-(B[1]-X[1])])}};Dl.updateBaseLayers=function(e,r){var t=this,n=t.topojson,a=t.layers,i=t.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function l(h){return!!di.lineLayers[h]}function s(h){return!!di.fillLayers[h]}var u=this.hasChoropleth?di.layersForChoropleth:di.layers,f=u.filter(function(h){return l(h)||s(h)?r["show"+h]:o(h)?r[h].showgrid:!0}),v=t.framework.selectAll(".layer").data(f,String);v.exit().each(function(h){delete a[h],delete i[h],fu.select(this).remove()}),v.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=a[h]=fu.select(this);h==="bg"?t.bgRect=d.append("rect").style("pointer-events","all"):o(h)?i[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):l(h)?i[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):s(h)&&(i[h]=d.append("path").style("stroke","none"))}),v.order(),v.each(function(h){var d=i[h],m=di.layerNameToAdjective[h];h==="frame"?d.datum(di.sphereSVG):l(h)||s(h)?d.datum(wie(n,n.objects[h])):o(h)&&d.datum(Aie(h,r,e)).call(iy.stroke,r[h].gridcolor).call(Hh.dashLine,r[h].griddash,r[h].gridwidth),l(h)?d.call(iy.stroke,r[m+"color"]).call(Hh.dashLine,"",r[m+"width"]):s(h)&&d.call(iy.fill,r[m+"color"])})};Dl.updateDims=function(e,r){var t=this.bounds,n=(r.framewidth||0)/2,a=t[0][0]-n,i=t[0][1]-n,o=t[1][0]-a+n,l=t[1][1]-i+n;Hh.setRect(this.clipRect,a,i,o,l),this.bgRect.call(Hh.setRect,a,i,o,l).call(iy.fill,r.bgcolor),this.xaxis._offset=a,this.xaxis._length=o,this.yaxis._offset=i,this.yaxis._length=l};Dl.updateFx=function(e,r){var t=this,n=t.graphDiv,a=t.bgRect,i=e.dragmode,o=e.clickmode;if(t.isStatic)return;function l(){var v=t.viewInitial,h={};for(var d in v)h[t.id+"."+d]=v[d];die.call("_guiRelayout",n,h),n.emit("plotly_doubleclick",null)}function s(v){return t.projection.invert([v[0]+t.xaxis._offset,v[1]+t.yaxis._offset])}var u=function(v,h){if(h.isRect){var d=v.range={};d[t.id]=[s([h.xmin,h.ymin]),s([h.xmax,h.ymax])]}else{var m=v.lassoPoints={};m[t.id]=h.map(s)}},f={element:t.bgRect.node(),gd:n,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:u},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id,clickFn:function(v){v===2&&yie(n)}};i==="pan"?(a.node().onmousedown=null,a.call(_ie(t,r)),a.on("dblclick.zoom",l),n._context._scrollZoom.geo||a.on("wheel.zoom",null)):(i==="select"||i==="lasso")&&(a.on(".zoom",null),f.prepFn=function(v,h,d){mie(v,h,d,f,i)},c_.init(f)),a.on("mousemove",function(){var v=t.projection.invert(Bh.getPositionFromD3Event());if(!v)return c_.unhover(n,fu.event);t.xaxis.p2c=function(){return v[0]},t.yaxis.p2c=function(){return v[1]},hF.hover(n,fu.event,t.id)}),a.on("mouseout",function(){n._dragging||c_.unhover(n,fu.event)}),a.on("click",function(){i!=="select"&&i!=="lasso"&&(o.indexOf("select")>-1&&bie(fu.event,n,[t.xaxis],[t.yaxis],t.id,f),o.indexOf("event")>-1&&hF.click(n,fu.event))})};Dl.makeFramework=function(){var e=this,r=e.graphDiv,t=r._fullLayout,n="clip"+t._uid+e.id;e.clipDef=t._clips.append("clipPath").attr("id",n),e.clipRect=e.clipDef.append("rect"),e.framework=fu.select(e.container).append("g").attr("class","geo "+e.id).call(Hh.setClipUrl,n,r),e.project=function(a){var i=e.projection(a);return i?[i[0]-e.xaxis._offset,i[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(a){return e.project(a)[0]}},e.yaxis={_id:"y",c2p:function(a){return e.project(a)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},v_.setConvert(e.mockAxis,t)};Dl.saveViewInitial=function(e){var r=e.center||{},t=e.projection,n=t.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":t.scale};var a;e._isScoped?a={"center.lon":r.lon,"center.lat":r.lat}:e._isClipped?a={"projection.rotation.lon":n.lon,"projection.rotation.lat":n.lat}:a={"center.lon":r.lon,"center.lat":r.lat,"projection.rotation.lon":n.lon},Bh.extendFlat(this.viewInitial,a)};Dl.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};Dl._render=function(){var e=this.projection,r=e.getPath(),t;function n(i){var o=e(i.lonlat);return o?pie(o[0],o[1]):null}function a(i){return e.isLonLatOverEdges(i.lonlat)?"none":null}for(t in this.basePaths)this.basePaths[t].attr("d",r);for(t in this.dataPaths)this.dataPaths[t].attr("d",function(i){return r(i.geojson)});for(t in this.dataPoints)this.dataPoints[t].attr("display",a).attr("transform",n)};function Mie(e){var r=e.projection,t=r.type,n=di.projNames[t];n="geo"+Bh.titleCase(n);for(var a=h_[n]||hie[n],i=a(),o=e._isSatellite?Math.acos(1/r.distance)*180/Math.PI:e._isClipped?di.lonaxisSpan[t]/2:null,l=["center","rotate","parallels","clipExtent"],s=function(v){return v?i:[]},u=0;um}else return!1},i.getPath=function(){return cie().projection(i)},i.getBounds=function(v){return i.getPath().bounds(v)},i.precision(di.precision),e._isSatellite&&i.tilt(r.tilt).distance(r.distance),o&&i.clipAngle(o-di.clipPad),i}function Aie(e,r,t){var n=1e-6,a=2.5,i=r[e],o=di.scopeDefaults[r.scope],l,s,u;e==="lonaxis"?(l=o.lonaxisRange,s=o.lataxisRange,u=function(C,x){return[C,x]}):e==="lataxis"&&(l=o.lataxisRange,s=o.lonaxisRange,u=function(C,x){return[x,C]});var f={type:"linear",range:[l[0],l[1]-n],tick0:i.tick0,dtick:i.dtick};v_.setConvert(f,t);var v=v_.calcTicks(f);!r.isScoped&&e==="lonaxis"&&v.pop();for(var h=v.length,d=new Array(h),m=0;m0&&a<0&&(a+=360);var l=(a-n)/4;return{type:"Polygon",coordinates:[[[n,i],[n,o],[n+l,o],[n+2*l,o],[n+3*l,o],[a,o],[a,i],[a-l,i],[a-2*l,i],[a-3*l,i],[n,i]]]}}});var d_=ne((Xve,wF)=>{"use strict";var Pv=cl(),Tie=zm().attributes,kie=Kl().dash,Ev=Nh(),Sie=_o().overrideAll,_F=Sd(),xF={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:Pv.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:kie},Cie=wF.exports=Sie({domain:Tie({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:_F(Ev.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:_F(Ev.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:Pv.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:Ev.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:Ev.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:Ev.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:Ev.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:Pv.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:Pv.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:Pv.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:Pv.background},lonaxis:xF,lataxis:xF},"plot","from-root");Cie.uirevision={valType:"any",editType:"none"}});var AF=ne((jve,MF)=>{"use strict";var Lie=gr(),qie=bn(),Die=zm().defaults;MF.exports=function(r,t,n,a){var i=a.type,o=a.attributes,l=a.handleDefaults,s=a.partition||"x",u=t._subplots[i],f=u.length,v=f&&u[0].replace(/\d+$/,""),h,d;function m(C,x){return Lie.coerce(h,d,o,C,x)}for(var p=0;p{"use strict";var oy=gr(),Eie=AF(),Pie=y1().getSubplotData,ly=Nh(),Rie=d_(),TF=ly.axesNames;kF.exports=function(r,t,n){Eie(r,t,n,{type:"geo",attributes:Rie,handleDefaults:zie,fullData:n,partition:"y"})};function zie(e,r,t,n){var a=Pie(n.fullData,"geo",n.id),i=a.map(function(he){return he.index}),o=t("resolution"),l=t("scope"),s=ly.scopeDefaults[l],u=t("projection.type",s.projType),f=r._isAlbersUsa=u==="albers usa";f&&(l=r.scope="usa");var v=r._isScoped=l!=="world",h=r._isSatellite=u==="satellite",d=r._isConic=u.indexOf("conic")!==-1||u==="albers",m=r._isClipped=!!ly.lonaxisSpan[u];if(e.visible===!1){var p=oy.extendDeep({},r._template);p.showcoastlines=!1,p.showcountries=!1,p.showframe=!1,p.showlakes=!1,p.showland=!1,p.showocean=!1,p.showrivers=!1,p.showsubunits=!1,p.lonaxis&&(p.lonaxis.showgrid=!1),p.lataxis&&(p.lataxis.showgrid=!1),r._template=p}for(var y=t("visible"),b,C=0;C0&&B<0&&(B+=360);var X=(W+B)/2,V;if(!f){var re=v?s.projRotate:[X,0,0];V=t("projection.rotation.lon",re[0]),t("projection.rotation.lat",re[1]),t("projection.rotation.roll",re[2]),b=t("showcoastlines",!v&&y),b&&(t("coastlinecolor"),t("coastlinewidth")),b=t("showocean",y?void 0:!1),b&&t("oceancolor")}var te,K;if(f?(te=-96.6,K=38.7):(te=v?X:V,K=(H[0]+H[1])/2),t("center.lon",te),t("center.lat",K),h&&(t("projection.tilt"),t("projection.distance")),d){var Q=s.projParallels||[0,60];t("projection.parallels",Q)}t("projection.scale"),b=t("showland",y?void 0:!1),b&&t("landcolor"),b=t("showlakes",y?void 0:!1),b&&t("lakecolor"),b=t("showrivers",y?void 0:!1),b&&(t("rivercolor"),t("riverwidth")),b=t("showcountries",v&&l!=="usa"&&y),b&&(t("countrycolor"),t("countrywidth")),(l==="usa"||l==="north america"&&o===50)&&(t("showsubunits",y),t("subunitcolor"),t("subunitwidth")),v||(b=t("showframe",y),b&&(t("framecolor"),t("framewidth"))),t("bgcolor");var fe=t("fitbounds");fe&&(delete r.projection.scale,v?(delete r.center.lon,delete r.center.lat):m?(delete r.center.lon,delete r.center.lat,delete r.projection.rotation.lon,delete r.projection.rotation.lat,delete r.lonaxis.range,delete r.lataxis.range):(delete r.center.lon,delete r.center.lat,delete r.projection.rotation.lon))}});var p_=ne(($ve,qF)=>{"use strict";var Nie=y1().getSubplotCalcData,Fie=gr().counterRegex,Iie=bF(),ps="geo",CF=Fie(ps),LF={};LF[ps]={valType:"subplotid",dflt:ps,editType:"calc"};function Hie(e){for(var r=e._fullLayout,t=e.calcdata,n=r._subplots[ps],a=0;a{"use strict";DF.exports={attributes:zh(),supplyDefaults:sN(),colorbar:Pb(),formatLabels:cN(),calc:gN(),calcGeoJSON:t_().calcGeoJSON,plot:t_().plot,style:K4(),styleOnSelect:_h().styleOnSelect,hoverPoints:KN(),eventData:eF(),selectPoints:nF(),moduleType:"trace",name:"scattergeo",basePlotModule:p_(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var RF=ne((Qve,PF)=>{"use strict";PF.exports=EF()});var sy=ne((e1e,FF)=>{"use strict";var Uie=Vs().hovertemplateAttrs,gf=zh(),Yie=H0(),zF=bo(),Gie=cl().defaultLine,pf=la().extendFlat,NF=gf.marker.line;FF.exports=pf({locations:{valType:"data_array",editType:"calc"},locationmode:gf.locationmode,z:{valType:"data_array",editType:"calc"},geojson:pf({},gf.geojson,{}),featureidkey:gf.featureidkey,text:pf({},gf.text,{}),hovertext:pf({},gf.hovertext,{}),marker:{line:{color:pf({},NF.color,{dflt:Gie}),width:pf({},NF.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:gf.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:gf.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:pf({},zF.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:Uie(),showlegend:pf({},zF.showlegend,{dflt:!1})},Yie("",{cLetter:"z",editTypeOverride:"calc"}))});var HF=ne((r1e,IF)=>{"use strict";var uy=gr(),Vie=B0(),Wie=sy();IF.exports=function(r,t,n,a){function i(h,d){return uy.coerce(r,t,Wie,h,d)}var o=i("locations"),l=i("z");if(!(o&&o.length&&uy.isArrayOrTypedArray(l)&&l.length)){t.visible=!1;return}t._length=Math.min(o.length,l.length);var s=i("geojson"),u;(typeof s=="string"&&s!==""||uy.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);f==="geojson-id"&&i("featureidkey"),i("text"),i("hovertext"),i("hovertemplate");var v=i("marker.line.width");v&&i("marker.line.color"),i("marker.opacity"),Vie(r,t,a,i,{prefix:"",cLetter:"z"}),uy.coerceSelectionMarkerOpacity(t,i)}});var OF=ne((t1e,BF)=>{"use strict";BF.exports={min:"zmin",max:"zmax"}});var VF=ne((n1e,GF)=>{"use strict";var UF=Ot(),Zie=Rn().BADNUM,Xie=Qd(),jie=ph(),Jie=Qg();function YF(e){return e&&typeof e=="string"}GF.exports=function(r,t){var n=t._length,a=new Array(n),i;t.geojson?i=function(f){return YF(f)||UF(f)}:i=YF;for(var o=0;o{"use strict";var $ie=kt(),Kie=Pt(),g_=fn(),Qie=rp();function eoe(e,r){r&&WF(e,r)}function WF(e,r){var t=r[0].trace,n=r[0].node3,a=n.selectAll(".choroplethlocation"),i=t.marker||{},o=i.line||{},l=Qie.makeColorScaleFuncFromTrace(t);a.each(function(s){$ie.select(this).attr("fill",l(s.z)).call(Kie.stroke,s.mlc||o.color).call(g_.dashLine,"",s.mlw||o.width||0).style("opacity",i.opacity)}),g_.selectedPointStyle(a,t)}function roe(e,r){var t=r[0].node3,n=r[0].trace;n.selectedpoints?g_.selectedPointStyle(t.selectAll(".choroplethlocation"),n):WF(e,r)}ZF.exports={style:eoe,styleOnSelect:roe}});var m_=ne((i1e,JF)=>{"use strict";var toe=kt(),XF=gr(),Rv=Km(),noe=Um().getTopojsonFeatures,jF=Ju().findExtremes,aoe=fy().style;function ioe(e,r,t){var n=r.layers.backplot.select(".choroplethlayer");XF.makeTraceGroups(n,t,"trace choropleth").each(function(a){var i=toe.select(this),o=i.selectAll("path.choroplethlocation").data(XF.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),aoe(e,a)})}function ooe(e,r){for(var t=e[0].trace,n=r[t.geo],a=n._subplot,i=t.locationmode,o=t._length,l=i==="geojson-id"?Rv.extractTraceFeature(e):noe(t,a.topojson),s=[],u=[],f=0;f{"use strict";var loe=Dn(),soe=sy(),uoe=gr().fillText;$F.exports=function(r,t,n){var a=r.cd,i=a[0].trace,o=r.subplot,l,s,u,f,v=[t,n],h=[t+360,n];for(s=0;s")}}});var eI=ne((l1e,QF)=>{"use strict";QF.exports=function(r,t,n,a,i){r.location=t.location,r.z=t.z;var o=a[i];return o.fIn&&o.fIn.properties&&(r.properties=o.fIn.properties),r.ct=o.ct,r}});var tI=ne((s1e,rI)=>{"use strict";rI.exports=function(r,t){var n=r.cd,a=r.xaxis,i=r.yaxis,o=[],l,s,u,f,v;if(t===!1)for(l=0;l{"use strict";nI.exports={attributes:sy(),supplyDefaults:HF(),colorbar:OF(),calc:VF(),calcGeoJSON:m_().calcGeoJSON,plot:m_().plot,style:fy().style,styleOnSelect:fy().styleOnSelect,hoverPoints:KF(),eventData:eI(),selectPoints:tI(),moduleType:"trace",name:"choropleth",basePlotModule:p_(),categories:["geo","noOpacity","showLegend"],meta:{}}});var oI=ne((f1e,iI)=>{"use strict";iI.exports=aI()});var Ga=ne((c1e,sI)=>{"use strict";var lI=Object.getOwnPropertySymbols,coe=Object.prototype.hasOwnProperty,voe=Object.prototype.propertyIsEnumerable;function hoe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function doe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var n=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(n.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(i){a[i]=i}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}sI.exports=doe()?Object.assign:function(e,r){for(var t,n=hoe(e),a,i=1;i{var vy=Ga();function uI(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}vy(uI.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,n,a){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,a):n)||this.instance(),n.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var n="",a=0;t>0;){var i=t%10;n=(i===0?"":e[i]+r[a])+n,a++,t=Math.floor(t/10)}return n.indexOf(e[1]+r[1])===0&&(n=n.substr(1)),n||e[0]}}});function y_(e,r,t,n){if(this._calendar=e,this._year=r,this._month=t,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function cy(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}vy(y_.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Tt.local.differentCalendars||Tt.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+cy(Math.abs(this.year()),4)+"-"+cy(this.month(),2)+"-"+cy(this.day(),2)}});function b_(){this.shortYearCutoff="+10"}vy(b_.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new y_(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Tt.local.invalidYear||Tt.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Tt.local.invalidYear||Tt.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+cy(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Tt.local.invalidYear||Tt.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Tt.local.invalidMonth||Tt.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Tt.local.invalidMonth||Tt.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Tt.local.invalidYear||Tt.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var n=this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var n=e.toJD()+r*(t==="w"?this.daysInWeek():1),a=e.calendar().fromJD(n);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),a=e.day(),l=function(f){for(;ov-1+f.minMonth;)i++,o-=v,v=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),a=Math.min(a,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),a=Math.min(a,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),a];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],i=t<0?-1:1;r=this._add(e,t*a[0]+i*a[1],a[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate);var n=t==="y"?r:e.year(),a=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(n,a))),e.date(n,a,i)},isValid:function(e,r,t){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var a=this.newDate(e,r,this.minDay);n=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=a-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,l)},toJSDate:function(e,r,t){var n=this._validate(e,r,t,Tt.local.invalidDate||Tt.regionalOptions[""].invalidDate),a=new Date(n.year(),n.month()-1,n.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Tt=fI.exports=new uI;Tt.cdate=y_;Tt.baseCalendar=b_;Tt.calendars.gregorian=__});var cI=ne(()=>{var x_=Ga(),Ca=Va();x_(Ca.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Ca.local=Ca.regionalOptions[""];x_(Ca.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});x_(Ca.baseCalendar.prototype,{UNIX_EPOCH:Ca.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Ca.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Ca.local.invalidFormat||Ca.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var n=t.dayNamesShort||this.local.dayNamesShort,a=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(_,A){for(var k=1;x+k1},f=function(_,A,k,M){var D=""+A;if(u(_,M))for(;D.length1},C=function(W,B){var X=b(W,B),V=[2,3,X?4:2,X?4:2,10,11,20]["oyYJ@!".indexOf(W)+1],re=new RegExp("^-?\\d{1,"+V+"}"),te=r.substring(D).match(re);if(!te)throw(Ca.local.missingNumberAt||Ca.regionalOptions[""].missingNumberAt).replace(/\{0\}/,D);return D+=te[0].length,parseInt(te[0],10)},x=this,_=function(){if(typeof l=="function"){b("m");var W=l.call(x,r.substring(D));return D+=W.length,W}return C("m")},A=function(W,B,X,V){for(var re=b(W,V)?X:B,te=0;te-1){h=1,d=m;for(var H=this.daysInMonth(v,h);d>H;H=this.daysInMonth(v,h))h++,d-=H}return f>-1?this.fromJD(f):this.newDate(v,h,d)},determineDate:function(e,r,t,n,a){t&&typeof t!="object"&&(a=n,n=t,t=null),typeof n!="string"&&(a=n,n="");var i=this,o=function(l){try{return i.parseDate(n,l,a)}catch(v){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(l);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var vI=ne(()=>{var mf=Va(),poe=Ga(),w_=mf.instance();function hy(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}hy.prototype=new mf.baseCalendar;poe(hy.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(moe);return t?t[0]:""}var n=this._validateYear(e),a=e.month(),i=""+this.toChineseMonth(n,a);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(n,a)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(yoe);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][a-1];return this.isIntercalaryMonth(t,n)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(boe);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][a-1];return this.isIntercalaryMonth(t,n)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),n;if(isNaN(t))r[0]==="\u95F0"&&(n=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var a=r[r.length-1];n=a==="i"||a==="I"}var i=this.toMonthIndex(e,t,n);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var n=this.intercalaryMonth(e),a=t&&r!==n;if(a||r<1||r>12)throw mf.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return n?!t&&r<=n?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),n=t?12:11;if(r<0||r>n)throw mf.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var n=this._validateYear(e,mf.local.invalidyear),a=bf[n-bf[0]],i=a>>9&4095,o=a>>5&15,l=a&31,s;s=w_.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=yf[e-yf[0]],n=t>>13,a=n?12:11;if(r>a)throw mf.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,i,t,mf.local.invalidDate);e=this._validateYear(n.year()),r=n.month(),t=n.day();var a=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=xoe(e,i,t,a);return w_.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=w_.fromJD(e),t=_oe(r.year(),r.month(),r.day()),n=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,n,t.day)},fromString:function(e){var r=e.match(goe),t=this._validateYear(+r[1]),n=+r[2],a=!!r[3],i=this.toMonthIndex(t,n,a),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var n=e.year(),a=e.month(),i=this.isIntercalaryMonth(n,a),o=this.toChineseMonth(n,a),l=Object.getPrototypeOf(hy.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),u=l.month(),f=this.isIntercalaryMonth(s,o),v=i&&f?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);v!==u&&l.month(v)}return l}});var goe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,moe=/^\d?\d[iI]?/m,yoe=/^闰?十?[一二三四五六七八九]?月/m,boe=/^闰?十?[一二三四五六七八九]?/m;mf.calendars.chinese=hy;var yf=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],bf=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function _oe(e,r,t,n){var a,i;if(typeof e=="object")a=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");a={year:e,month:r,day:t},i=n||{}}var u=bf[a.year-bf[0]],f=a.year<<9|a.month<<5|a.day;i.year=f>=u?a.year:a.year-1,u=bf[i.year-bf[0]];var v=u>>9&4095,h=u>>5&15,d=u&31,m,p=new Date(v,h-1,d),y=new Date(a.year,a.month-1,a.day);m=Math.round((y-p)/(24*3600*1e3));var b=yf[i.year-yf[0]],C;for(C=0;C<13;C++){var x=b&1<<12-C?30:29;if(m>13;return!_||C<_?(i.isIntercalary=!1,i.month=1+C):C===_?(i.isIntercalary=!0,i.month=C):(i.isIntercalary=!1,i.month=C),i.day=1+m,i}function xoe(e,r,t,n,a){var i,o;if(typeof e=="object")o=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof n=="object"?(f=!1,i=n):(f=!!n,i=a||{}),o={year:e,month:r,day:t,isIntercalary:f}}var v;v=o.day-1;var h=yf[o.year-yf[0]],d=h>>13,m;d&&(o.month>d||o.isIntercalary)?m=o.month:m=o.month-1;for(var p=0;p>9&4095,x=b>>5&15,_=b&31,A=new Date(C,x-1,_+v);return i.year=A.getFullYear(),i.month=1+A.getMonth(),i.day=A.getDate(),i}});var hI=ne(()=>{var Bc=Va(),woe=Ga();function M_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}M_.prototype=new Bc.baseCalendar;woe(M_.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Bc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Bc.local.invalidYear||Bc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Bc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,Bc.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});Bc.calendars.coptic=M_});var dI=ne(()=>{var cu=Va(),Moe=Ga();function A_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}A_.prototype=new cu.baseCalendar;Moe(A_.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,cu.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cu.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cu.local.invalidYear),400},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,cu.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,cu.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,r,t){var n=this.dayOfWeek(e,r,t);return n>=2&&n<=6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,cu.local.invalidDate);return{century:Aoe[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,r,t){var n=this._validate(e,r,t,cu.local.invalidDate);return e=n.year()+(n.year()<0?1:0),r=n.month(),t=n.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,n=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,n)}});var Aoe={20:"Fruitbat",21:"Anchovy"};cu.calendars.discworld=A_});var pI=ne(()=>{var Oc=Va(),Toe=Ga();function T_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}T_.prototype=new Oc.baseCalendar;Toe(T_.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Oc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Oc.local.invalidYear||Oc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Oc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,Oc.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});Oc.calendars.ethiopian=T_});var gI=ne(()=>{var _f=Va(),koe=Ga();function k_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}k_.prototype=new _f.baseCalendar;koe(k_.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,_f.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,dy(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,_f.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,_f.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,_f.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&dy(this.daysInYear(e),10)===5?30:r===9&&dy(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,_f.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,r,t){var n=this._validate(e,r,t,_f.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=e<=0?e+1:e,i=this.jdEpoch+this._delay1(a)+this._delay2(a)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});function dy(e,r){return e-r*Math.floor(e/r)}_f.calendars.hebrew=k_});var mI=ne(()=>{var Oh=Va(),Soe=Ga();function S_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}S_.prototype=new Oh.baseCalendar;Soe(S_.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Oh.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Oh.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,Oh.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});Oh.calendars.islamic=S_});var yI=ne(()=>{var Uh=Va(),Coe=Ga();function C_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C_.prototype=new Uh.baseCalendar;Coe(C_.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Uh.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Uh.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,Uh.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,n=Math.floor((t-122.1)/365.25),a=Math.floor(365.25*n),i=Math.floor((t-a)/30.6001),o=i-Math.floor(i<14?1:13),l=n-Math.floor(o>2?4716:4715),s=t-a-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});Uh.calendars.julian=C_});var _I=ne(()=>{var Ho=Va(),Loe=Ga();function q_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}q_.prototype=new Ho.baseCalendar;Loe(q_.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ho.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ho.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return t+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&n<0)throw"Invalid Mayan year";r=r*20+n}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ho.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Ho.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ho.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Ho.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Ho.local.invalidDate);return n.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Ho.local.invalidDate),!0},extraInfo:function(e,r,t){var n=this._validate(e,r,t,Ho.local.invalidDate),a=n.toJD(),i=this._toHaab(a),o=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=L_(e+8+17*20,365);return[Math.floor(r/20)+1,L_(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[bI(e+20,20),bI(e+4,13)]},toJD:function(e,r,t){var n=this._validate(e,r,t,Ho.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),n=e%20;return this.newDate(r,t,n)}});function L_(e,r){return e-r*Math.floor(e/r)}function bI(e,r){return L_(e-1,r)+1}Ho.calendars.mayan=q_});var wI=ne(()=>{var Uc=Va(),qoe=Ga();function D_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}D_.prototype=new Uc.baseCalendar;var xI=Uc.instance("gregorian");qoe(D_.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Uc.local.invalidYear||Uc.regionalOptions[""].invalidYear);return xI.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Uc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,Uc.local.invalidMonth),a=n.year();a<0&&a++;for(var i=n.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,n=1;t>this.daysInMonth(r,n);)t-=this.daysInMonth(r,n),n++;return this.newDate(r,n,t)}});Uc.calendars.nanakshahi=D_});var MI=ne(()=>{var Yc=Va(),Doe=Ga();function E_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}E_.prototype=new Yc.baseCalendar;Doe(E_.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yc.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,n=this.minMonth;n<=12;n++)t+=this.NEPALI_CALENDAR_DATA[e][n];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Yc.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var n=this._validate(e,r,t,Yc.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=Yc.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=a.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=Yc.instance(),t=r.fromJD(e),n=t.year(),a=t.dayOfYear(),i=n+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;a>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var u=this.NEPALI_CALENDAR_DATA[i][o]-(s-a);return this.newDate(i,o,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var zv=Va(),Eoe=Ga();function gy(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function py(e){var r=e-475;e<0&&r++;var t=.242197,n=t*r,a=t*(r+1),i=n-Math.floor(n),o=a-Math.floor(a);return i>o}gy.prototype=new zv.baseCalendar;Eoe(gy.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,zv.local.invalidYear);return py(r.year())},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,zv.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,zv.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=0;if(e>0)for(var i=1;i0?e-1:e)*365+a+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,py(t)?30:29)&&(t++,t===0&&t++);var n=e-this.toJD(t,1,1)+1,a=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),i=e-this.toJD(t,a,1)+1;return this.newDate(t,a,i)}});zv.calendars.persian=gy;zv.calendars.jalali=gy});var TI=ne(()=>{var Gc=Va(),Poe=Ga(),my=Gc.instance();function P_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}P_.prototype=new Gc.baseCalendar;Poe(P_.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Gc.local.invalidYear),t=this._t2gYear(r.year());return my.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,Gc.local.invalidYear),a=this._t2gYear(n.year());return my.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Gc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,Gc.local.invalidDate),a=this._t2gYear(n.year());return my.toJD(a,n.month(),n.day())},fromJD:function(e){var r=my.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Gc.calendars.taiwan=P_});var kI=ne(()=>{var Vc=Va(),Roe=Ga(),yy=Vc.instance();function R_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}R_.prototype=new Vc.baseCalendar;Roe(R_.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Vc.local.invalidYear),t=this._t2gYear(r.year());return yy.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,Vc.local.invalidYear),a=this._t2gYear(n.year());return yy.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Vc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,Vc.local.invalidDate),a=this._t2gYear(n.year());return yy.toJD(a,n.month(),n.day())},fromJD:function(e){var r=yy.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Vc.calendars.thai=R_});var SI=ne(()=>{var Wc=Va(),zoe=Ga();function z_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}z_.prototype=new Wc.baseCalendar;zoe(z_.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Wc.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,Wc.local.invalidMonth),n=t.toJD()-24e5+.5,a=0,i=0;in)return xf[a]-xf[a-1];a++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,Wc.local.invalidDate),a=12*(n.year()-1)+n.month()-15292,i=n.day()+xf[a-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,n=0;nr);n++)t++;var a=t+15292,i=Math.floor((a-1)/12),o=i+1,l=a-12*i,s=r-xf[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var n=Wc.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,r,t,n){var a=Wc.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw n.replace(/\{0\}/,this.local.name);return a}});Wc.calendars.ummalqura=z_;var xf=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var LI=ne((Y1e,CI)=>{"use strict";CI.exports=Va();cI();vI();hI();dI();pI();gI();mI();yI();_I();wI();MI();AI();TI();kI();SI()});var NI=ne((G1e,zI)=>{"use strict";var DI=LI(),Yh=gr(),EI=Rn(),Noe=EI.EPOCHJD,Foe=EI.ONEDAY,I_={valType:"enumerated",values:Yh.sortObjectKeys(DI.calendars),editType:"calc",dflt:"gregorian"},PI=function(e,r,t,n){var a={};return a[t]=I_,Yh.coerce(e,r,a,t,n)},Ioe=function(e,r,t,n){for(var a=0;a{"use strict";FI.exports=NI()});var Goe=ne((W1e,BI)=>{var HI=nN();HI.register([RF(),oI(),II()]);BI.exports=HI});return Goe();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-gl2d.js b/dist/plotly-gl2d.js index 79aba00a5f6..0893e4638b6 100644 --- a/dist/plotly-gl2d.js +++ b/dist/plotly-gl2d.js @@ -1,5 +1,5 @@ /** -* plotly.js (gl2d) v3.1.0-rc.0 +* plotly.js (gl2d) v3.1.0-rc.1 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -52,7 +52,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.1.0-rc.0"; + exports.version = "3.1.0-rc.1"; } }); @@ -10345,6 +10345,11 @@ var Plotly = (() => { dflt: 15, editType: "none" }, + showarrow: { + valType: "boolean", + dflt: true, + editType: "none" + }, editType: "none" }, selectdirection: { @@ -10378,6 +10383,7 @@ var Plotly = (() => { }), align: extendFlat({}, hoverLabelAttrs.align, { arrayOk: true }), namelength: extendFlat({}, hoverLabelAttrs.namelength, { arrayOk: true }), + showarrow: extendFlat({}, hoverLabelAttrs.showarrow), editType: "none" } }; @@ -13163,6 +13169,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 || []; @@ -15606,6 +15626,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); @@ -16015,9 +16037,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;", @@ -16458,6 +16483,10 @@ var Plotly = (() => { ev.emit(event, data); internalEv.emit(event, data); }; + if (typeof plotObj.addEventListener === "function") { + plotObj.addEventListener("wheel", () => { + }); + } return plotObj; }, /* @@ -20948,6 +20977,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(); @@ -21143,6 +21173,13 @@ var Plotly = (() => { dflt: false, editType: "calc" }, + modebardisable: { + valType: "flaglist", + flags: ["autoscale", "zoominout"], + extras: ["none"], + dflt: "none", + editType: "modebar" + }, insiderange: { valType: "info_array", items: [ @@ -21466,6 +21503,14 @@ var Plotly = (() => { editType: "none", description: descriptionWithDates("hover text") }, + unifiedhovertitle: { + text: { + valType: "string", + dflt: "", + editType: "none" + }, + editType: "none" + }, // lines and grids showline: { valType: "boolean", @@ -21570,6 +21615,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"], @@ -22203,6 +22254,9 @@ var Plotly = (() => { coerce("separatethousands"); } } + if (!options.noMinorloglabels && axType === "log") { + coerce("minorloglabels"); + } } }; function tickformatstopDefaults(valueIn, valueOut) { @@ -25003,7 +25057,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; @@ -27745,17 +27799,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") { @@ -27763,7 +27825,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") { @@ -28503,11 +28568,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); @@ -28909,7 +28976,7 @@ var Plotly = (() => { transform, "text-anchor": anchor }); - thisText.style("opacity", 1); + thisText.style("display", null); if (ax._adjustTickLabelsOverflow) { ax._adjustTickLabelsOverflow(); } @@ -28952,9 +29019,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 { @@ -29014,7 +29081,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); } }); @@ -32986,10 +33053,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, @@ -33521,13 +33596,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"; @@ -33895,6 +33973,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); }; @@ -34017,6 +34096,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) { @@ -34687,6 +34767,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; @@ -34753,10 +34834,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); @@ -36572,10 +36665,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; @@ -37191,8 +37287,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"; @@ -37258,13 +37355,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) { @@ -37619,7 +37721,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; } } @@ -50872,7 +50975,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]; @@ -51383,6 +51491,7 @@ var Plotly = (() => { grid: layoutOut.grid }); coerce("fixedrange"); + coerce("modebardisable"); addMissingMatchedAxis(); axLayoutOut._input = axLayoutIn; } @@ -51403,6 +51512,7 @@ var Plotly = (() => { ); } coerce("fixedrange"); + coerce("modebardisable"); } for (i = 0; i < yNames.length; i++) { axName = yNames[i]; @@ -51411,6 +51521,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-gl2d.min.js b/dist/plotly-gl2d.min.js index 4fb1d4f4cc2..68822663ec9 100644 --- a/dist/plotly-gl2d.min.js +++ b/dist/plotly-gl2d.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (gl2d - minified) v3.1.0-rc.0 +* plotly.js (gl2d - minified) v3.1.0-rc.1 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,80 +12,80 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var Pne=Object.create;var xg=Object.defineProperty;var Nne=Object.getOwnPropertyDescriptor;var One=Object.getOwnPropertyNames;var Ine=Object.getPrototypeOf,Bne=Object.prototype.hasOwnProperty;var Yh=(e,r)=>()=>(e&&(r=e(e=0)),r);var P=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),zne=(e,r)=>{for(var t in r)xg(e,t,{get:r[t],enumerable:!0})},pM=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of One(r))!Bne.call(e,n)&&n!==t&&xg(e,n,{get:()=>r[n],enumerable:!(a=Nne(r,n))||a.enumerable});return e};var Gne=(e,r,t)=>(t=e!=null?Pne(Ine(e)):{},pM(r||!e||!e.__esModule?xg(t,"default",{value:e,enumerable:!0}):t,e)),mM=e=>pM(xg({},"__esModule",{value:!0}),e);var _g=P(yM=>{"use strict";yM.version="3.1.0-rc.0"});var bM=P((gM,wg)=>{(function(r,t,a){t[r]=t[r]||a(),typeof wg!="undefined"&&wg.exports&&(wg.exports=t[r])})("Promise",typeof window!="undefined"?window:gM,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(A){return setImmediate(A)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(A,_,x,T){return Object.defineProperty(A,_,{value:x,writable:!0,configurable:T!==!1})}}catch(b){r=function(_,x,T){return _[x]=T,_}}a=function(){var A,_,x;function T(E,S){this.fn=E,this.self=S,this.next=void 0}return{add:function(S,k){x=new T(S,k),_?_.next=x:A=x,_=x,x=void 0},drain:function(){var S=A;for(A=_=t=void 0;S;)S.fn.call(S.self),S=S.next}}}();function o(b,A){a.add(b,A),t||(t=i(a.drain))}function l(b){var A,_=typeof b;return b!=null&&(_=="object"||_=="function")&&(A=b.then),typeof A=="function"?A:!1}function s(){for(var b=0;b0&&o(s,_))}catch(x){c.call(new d(_),x)}}}function c(b){var A=this;A.triggered||(A.triggered=!0,A.def&&(A=A.def),A.msg=b,A.state=2,A.chain.length>0&&o(s,A))}function v(b,A,_,x){for(var T=0;T{(function(){var e={version:"3.8.2"},r=[].slice,t=function(h){return r.call(h)},a=self.document;function n(h){return h&&(h.ownerDocument||h.document||h).documentElement}function i(h){return h&&(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(h){t=function(y){for(var w=y.length,C=new Array(w);w--;)C[w]=y[w];return C}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(h){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,f=this.CSSStyleDeclaration.prototype,u=f.setProperty;o.setAttribute=function(y,w){l.call(this,y,w+"")},o.setAttributeNS=function(y,w,C){s.call(this,y,w,C+"")},f.setProperty=function(y,w,C){u.call(this,y,w+"",C)}}e.ascending=c;function c(h,y){return hy?1:h>=y?0:NaN}e.descending=function(h,y){return yh?1:y>=h?0:NaN},e.min=function(h,y){var w=-1,C=h.length,L,D;if(arguments.length===1){for(;++w=D){L=D;break}for(;++wD&&(L=D)}else{for(;++w=D){L=D;break}for(;++wD&&(L=D)}return L},e.max=function(h,y){var w=-1,C=h.length,L,D;if(arguments.length===1){for(;++w=D){L=D;break}for(;++wL&&(L=D)}else{for(;++w=D){L=D;break}for(;++wL&&(L=D)}return L},e.extent=function(h,y){var w=-1,C=h.length,L,D,G;if(arguments.length===1){for(;++w=D){L=G=D;break}for(;++wD&&(L=D),G=D){L=G=D;break}for(;++wD&&(L=D),G1)return G/(j-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(y,w,C,L){for(arguments.length<3&&(C=0),arguments.length<4&&(L=y.length);C>>1;h(y[D],w)<0?C=D+1:L=D}return C},right:function(y,w,C,L){for(arguments.length<3&&(C=0),arguments.length<4&&(L=y.length);C>>1;h(y[D],w)>0?L=D:C=D+1}return C}}}var g=p(c);e.bisectLeft=g.left,e.bisect=e.bisectRight=g.right,e.bisector=function(h){return p(h.length===1?function(y,w){return c(h(y),w)}:h)},e.shuffle=function(h,y,w){(C=arguments.length)<3&&(w=h.length,C<2&&(y=0));for(var C=w-y,L,D;C;)D=Math.random()*C--|0,L=h[C+y],h[C+y]=h[D+y],h[D+y]=L;return h},e.permute=function(h,y){for(var w=y.length,C=new Array(w);w--;)C[w]=h[y[w]];return C},e.pairs=function(h){for(var y=0,w=h.length-1,C,L=h[0],D=new Array(w<0?0:w);y=0;)for(G=h[y],w=G.length;--w>=0;)D[--L]=G[w];return D};var b=Math.abs;e.range=function(h,y,w){if(arguments.length<3&&(w=1,arguments.length<2&&(y=h,h=0)),(y-h)/w===1/0)throw new Error("infinite range");var C=[],L=A(b(w)),D=-1,G;if(h*=L,y*=L,w*=L,w<0)for(;(G=h+w*++D)>y;)C.push(G/L);else for(;(G=h+w*++D)=y.length)return L?L.call(h,j):C?j.sort(C):j;for(var ie=-1,me=j.length,ye=y[ne++],We,Ke,Me,Re=new x,Ge;++ie=y.length)return q;var ne=[],ie=w[j++];return q.forEach(function(me,ye){ne.push({key:me,values:G(ye,j)})}),ie?ne.sort(function(me,ye){return ie(me.key,ye.key)}):ne}return h.map=function(q,j){return D(j,q,0)},h.entries=function(q){return G(D(e.map,q,0),0)},h.key=function(q){return y.push(q),h},h.sortKeys=function(q){return w[y.length-1]=q,h},h.sortValues=function(q){return C=q,h},h.rollup=function(q){return L=q,h},h},e.set=function(h){var y=new X;if(h)for(var w=0,C=h.length;w=0&&(C=h.slice(w+1),h=h.slice(0,w)),h)return arguments.length<2?this[h].on(C):this[h].on(C,y);if(arguments.length===2){if(y==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(C,null);return this}};function ce(h){var y=[],w=new x;function C(){for(var L=y,D=-1,G=L.length,q;++D=0&&(w=h.slice(0,y))!=="xmlns"&&(h=h.slice(y+1)),Xe.hasOwnProperty(w)?{space:Xe[w],local:h}:h}},Ue.attr=function(h,y){if(arguments.length<2){if(typeof h=="string"){var w=this.node();return h=e.ns.qualify(h),h.local?w.getAttributeNS(h.space,h.local):w.getAttribute(h)}for(y in h)this.each(ur(y,h[y]));return this}return this.each(ur(h,y))};function ur(h,y){h=e.ns.qualify(h);function w(){this.removeAttribute(h)}function C(){this.removeAttributeNS(h.space,h.local)}function L(){this.setAttribute(h,y)}function D(){this.setAttributeNS(h.space,h.local,y)}function G(){var j=y.apply(this,arguments);j==null?this.removeAttribute(h):this.setAttribute(h,j)}function q(){var j=y.apply(this,arguments);j==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,j)}return y==null?h.local?C:w:typeof y=="function"?h.local?q:G:h.local?D:L}function rr(h){return h.trim().replace(/\s+/g," ")}Ue.classed=function(h,y){if(arguments.length<2){if(typeof h=="string"){var w=this.node(),C=(h=Or(h)).length,L=-1;if(y=w.classList){for(;++L=0;)(D=w[C])&&(L&&L!==D.nextSibling&&L.parentNode.insertBefore(D,L),L=D);return this},Ue.sort=function(h){h=lr.apply(this,arguments);for(var y=-1,w=this.length;++y=y&&(y=L+1);!(j=G[y])&&++y0&&(h=h.slice(0,L));var G=Vr.get(h);G&&(h=G,D=Wr);function q(){var ie=this[C];ie&&(this.removeEventListener(h,ie,ie.$),delete this[C])}function j(){var ie=D(y,t(arguments));q.call(this),this.addEventListener(h,this[C]=ie,ie.$=w),ie._=y}function ne(){var ie=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),me;for(var ye in this)if(me=ye.match(ie)){var We=this[ye];this.removeEventListener(me[1],We,We.$),delete this[ye]}}return L?y?j:q:y?$:ne}var Vr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Vr.forEach(function(h){"on"+h in a&&Vr.remove(h)});function at(h,y){return function(w){var C=e.event;e.event=w,y[0]=this.__data__;try{h.apply(this,y)}finally{e.event=C}}}function Wr(h,y){var w=at(h,y);return function(C){var L=this,D=C.relatedTarget;(!D||D!==L&&!(D.compareDocumentPosition(L)&8))&&w.call(L,C)}}var Hr,ot=0;function it(h){var y=".dragsuppress-"+ ++ot,w="click"+y,C=e.select(i(h)).on("touchmove"+y,De).on("dragstart"+y,De).on("selectstart"+y,De);if(Hr==null&&(Hr="onselectstart"in h?!1:J(h.style,"userSelect")),Hr){var L=n(h).style,D=L[Hr];L[Hr]="none"}return function(G){if(C.on(y,null),Hr&&(L[Hr]=D),G){var q=function(){C.on(w,null)};C.on(w,function(){De(),q()},!0),setTimeout(q,0)}}}e.mouse=function(h){return br(h,Ne())};var st=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function br(h,y){y.changedTouches&&(y=y.changedTouches[0]);var w=h.ownerSVGElement||h;if(w.createSVGPoint){var C=w.createSVGPoint();if(st<0){var L=i(h);if(L.scrollX||L.scrollY){w=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var D=w[0][0].getScreenCTM();st=!(D.f||D.e),w.remove()}}return st?(C.x=y.pageX,C.y=y.pageY):(C.x=y.clientX,C.y=y.clientY),C=C.matrixTransform(h.getScreenCTM().inverse()),[C.x,C.y]}var G=h.getBoundingClientRect();return[y.clientX-G.left-h.clientLeft,y.clientY-G.top-h.clientTop]}e.touch=function(h,y,w){if(arguments.length<3&&(w=y,y=Ne().changedTouches),y){for(var C=0,L=y.length,D;C0?1:h<0?-1:0}function ua(h,y,w){return(y[0]-h[0])*(w[1]-h[1])-(y[1]-h[1])*(w[0]-h[0])}function pn(h){return h>1?0:h<-1?fr:Math.acos(h)}function Pn(h){return h>1?At:h<-1?-At:Math.asin(h)}function ci(h){return((h=Math.exp(h))-1/h)/2}function Nn(h){return((h=Math.exp(h))+1/h)/2}function lo(h){return((h=Math.exp(2*h))-1)/(h+1)}function Tn(h){return(h=Math.sin(h/2))*h}var On=Math.SQRT2,Ti=2,Pt=4;e.interpolateZoom=function(h,y){var w=h[0],C=h[1],L=h[2],D=y[0],G=y[1],q=y[2],j=D-w,ne=G-C,ie=j*j+ne*ne,me,ye;if(ie0&&(dt=dt.transition().duration(G)),dt.call(tr.event)}function kt(){Re&&Re.domain(Me.range().map(function(dt){return(dt-h.x)/h.k}).map(Me.invert)),er&&er.domain(Ge.range().map(function(dt){return(dt-h.y)/h.k}).map(Ge.invert))}function Ct(dt){q++||dt({type:"zoomstart"})}function Vt(dt){kt(),dt({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function Ft(dt){--q||(dt({type:"zoomend"}),w=null)}function Ot(){var dt=this,Yt=Ke.of(dt,arguments),jt=0,va=e.select(i(dt)).on(ne,Xn).on(ie,Zn),ja=Le(e.mouse(dt)),Mn=it(dt);Ac.call(dt),Ct(Yt);function Xn(){jt=1,nt(e.mouse(dt),ja),Vt(Yt)}function Zn(){va.on(ne,null).on(ie,null),Mn(jt),Ft(Yt)}}function pa(){var dt=this,Yt=Ke.of(dt,arguments),jt={},va=0,ja,Mn=".zoom-"+e.event.changedTouches[0].identifier,Xn="touchmove"+Mn,Zn="touchend"+Mn,Ci=[],M=e.select(dt),B=it(dt);he(),Ct(Yt),M.on(j,null).on(ye,he);function V(){var xe=e.touches(dt);return ja=h.k,xe.forEach(function(Ve){Ve.identifier in jt&&(jt[Ve.identifier]=Le(Ve))}),xe}function he(){var xe=e.event.target;e.select(xe).on(Xn,be).on(Zn,Ae),Ci.push(xe);for(var Ve=e.event.changedTouches,ir=0,nr=Ve.length;ir1){var Fr=or[0],xr=or[1],Pe=Fr[0]-xr[0],fe=Fr[1]-xr[1];va=Pe*Pe+fe*fe}}function be(){var xe=e.touches(dt),Ve,ir,nr,or;Ac.call(dt);for(var Qr=0,Fr=xe.length;Qr1?1:y,w=w<0?0:w>1?1:w,L=w<=.5?w*(1+y):w+y-w*y,C=2*w-L;function D(q){return q>360?q-=360:q<0&&(q+=360),q<60?C+(L-C)*q/60:q<180?L:q<240?C+(L-C)*(240-q)/60:C}function G(q){return Math.round(D(q)*255)}return new vi(G(h+120),G(h),G(h-120))}e.hcl=rn;function rn(h,y,w){return this instanceof rn?(this.h=+h,this.c=+y,void(this.l=+w)):arguments.length<2?h instanceof rn?new rn(h.h,h.c,h.l):h instanceof Cn?Oo(h.l,h.a,h.b):Oo((h=_t((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new rn(h,y,w)}var Yi=rn.prototype=new un;Yi.brighter=function(h){return new rn(this.h,this.c,Math.min(100,this.l+Ra*(arguments.length?h:1)))},Yi.darker=function(h){return new rn(this.h,this.c,Math.max(0,this.l-Ra*(arguments.length?h:1)))},Yi.rgb=function(){return Wi(this.h,this.c,this.l).rgb()};function Wi(h,y,w){return isNaN(h)&&(h=0),isNaN(y)&&(y=0),new Cn(w,Math.cos(h*=Nt)*y,Math.sin(h)*y)}e.lab=Cn;function Cn(h,y,w){return this instanceof Cn?(this.l=+h,this.a=+y,void(this.b=+w)):arguments.length<2?h instanceof Cn?new Cn(h.l,h.a,h.b):h instanceof rn?Wi(h.h,h.c,h.l):_t((h=vi(h)).r,h.g,h.b):new Cn(h,y,w)}var Ra=18,Wn=.95047,ss=1,fs=1.08883,kl=Cn.prototype=new un;kl.brighter=function(h){return new Cn(Math.min(100,this.l+Ra*(arguments.length?h:1)),this.a,this.b)},kl.darker=function(h){return new Cn(Math.max(0,this.l-Ra*(arguments.length?h:1)),this.a,this.b)},kl.rgb=function(){return Zu(this.l,this.a,this.b)};function Zu(h,y,w){var C=(h+16)/116,L=C+y/500,D=C-w/200;return L=Yf(L)*Wn,C=Yf(C)*ss,D=Yf(D)*fs,new vi(ji(3.2404542*L-1.5371385*C-.4985314*D),ji(-.969266*L+1.8760108*C+.041556*D),ji(.0556434*L-.2040259*C+1.0572252*D))}function Oo(h,y,w){return h>0?new rn(Math.atan2(w,y)*sa,Math.sqrt(y*y+w*w),h):new rn(NaN,NaN,h)}function Yf(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function Wf(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function ji(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=vi;function vi(h,y,w){return this instanceof vi?(this.r=~~h,this.g=~~y,void(this.b=~~w)):arguments.length<2?h instanceof vi?new vi(h.r,h.g,h.b):$t(""+h,vi,Ga):new vi(h,y,w)}function Oi(h){return new vi(h>>16,h>>8&255,h&255)}function Cl(h){return Oi(h)+""}var hi=vi.prototype=new un;hi.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var y=this.r,w=this.g,C=this.b,L=30;return!y&&!w&&!C?new vi(L,L,L):(y&&y>4,C=C>>4|C,L=j&240,L=L>>4|L,D=j&15,D=D<<4|D):h.length===7&&(C=(j&16711680)>>16,L=(j&65280)>>8,D=j&255)),y(C,L,D))}function ca(h,y,w){var C=Math.min(h/=255,y/=255,w/=255),L=Math.max(h,y,w),D=L-C,G,q,j=(L+C)/2;return D?(q=j<.5?D/(L+C):D/(2-L-C),h==L?G=(y-w)/D+(y0&&j<1?0:G),new La(G,q,j)}function _t(h,y,w){h=jn(h),y=jn(y),w=jn(w);var C=Wf((.4124564*h+.3575761*y+.1804375*w)/Wn),L=Wf((.2126729*h+.7151522*y+.072175*w)/ss),D=Wf((.0193339*h+.119192*y+.9503041*w)/fs);return Cn(116*L-16,500*(C-L),200*(L-D))}function jn(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function Ua(h){var y=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(y*2.55):y}var Ln=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});Ln.forEach(function(h,y){Ln.set(h,Oi(y))});function ra(h){return typeof h=="function"?h:function(){return h}}e.functor=ra,e.xhr=wo(le);function wo(h){return function(y,w,C){return arguments.length===2&&typeof w=="function"&&(C=w,w=null),ol(y,w,h,C)}}function ol(h,y,w,C){var L={},D=e.dispatch("beforesend","progress","load","error"),G={},q=new XMLHttpRequest,j=null;self.XDomainRequest&&!("withCredentials"in q)&&/^(http(s)?:)?\/\//.test(h)&&(q=new XDomainRequest),"onload"in q?q.onload=q.onerror=ne:q.onreadystatechange=function(){q.readyState>3&&ne()};function ne(){var ie=q.status,me;if(!ie&&J1(q)||ie>=200&&ie<300||ie===304){try{me=w.call(L,q)}catch(ye){D.error.call(L,ye);return}D.load.call(L,me)}else D.error.call(L,q)}return q.onprogress=function(ie){var me=e.event;e.event=ie;try{D.progress.call(L,q)}finally{e.event=me}},L.header=function(ie,me){return ie=(ie+"").toLowerCase(),arguments.length<2?G[ie]:(me==null?delete G[ie]:G[ie]=me+"",L)},L.mimeType=function(ie){return arguments.length?(y=ie==null?null:ie+"",L):y},L.responseType=function(ie){return arguments.length?(j=ie,L):j},L.response=function(ie){return w=ie,L},["get","post"].forEach(function(ie){L[ie]=function(){return L.send.apply(L,[ie].concat(t(arguments)))}}),L.send=function(ie,me,ye){if(arguments.length===2&&typeof me=="function"&&(ye=me,me=null),q.open(ie,h,!0),y!=null&&!("accept"in G)&&(G.accept=y+",*/*"),q.setRequestHeader)for(var We in G)q.setRequestHeader(We,G[We]);return y!=null&&q.overrideMimeType&&q.overrideMimeType(y),j!=null&&(q.responseType=j),ye!=null&&L.on("error",ye).on("load",function(Ke){ye(null,Ke)}),D.beforesend.call(L,q),q.send(me==null?null:me),L},L.abort=function(){return q.abort(),L},e.rebind(L,D,"on"),C==null?L:L.get(Mi(C))}function Mi(h){return h.length===1?function(y,w){h(y==null?w:null)}:h}function J1(h){var y=h.responseType;return y&&y!=="text"?h.response:h.responseText}e.dsv=function(h,y){var w=new RegExp('["'+h+` -]`),C=h.charCodeAt(0);function L(ne,ie,me){arguments.length<3&&(me=ie,ie=null);var ye=ol(ne,y,ie==null?D:G(ie),me);return ye.row=function(We){return arguments.length?ye.response((ie=We)==null?D:G(We)):ie},ye}function D(ne){return L.parse(ne.responseText)}function G(ne){return function(ie){return L.parse(ie.responseText,ne)}}L.parse=function(ne,ie){var me;return L.parseRows(ne,function(ye,We){if(me)return me(ye,We-1);var Ke=function(Me){for(var Re={},Ge=ye.length,er=0;er=Ke)return ye;if(er)return er=!1,me;var Dr=Me;if(ne.charCodeAt(Dr)===34){for(var zr=Dr;zr++{var Nne=Object.create;var Ag=Object.defineProperty;var One=Object.getOwnPropertyDescriptor;var Ine=Object.getOwnPropertyNames;var Bne=Object.getPrototypeOf,zne=Object.prototype.hasOwnProperty;var Wh=(e,r)=>()=>(e&&(r=e(e=0)),r);var P=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Gne=(e,r)=>{for(var t in r)Ag(e,t,{get:r[t],enumerable:!0})},pM=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Ine(r))!zne.call(e,n)&&n!==t&&Ag(e,n,{get:()=>r[n],enumerable:!(a=One(r,n))||a.enumerable});return e};var Une=(e,r,t)=>(t=e!=null?Nne(Bne(e)):{},pM(r||!e||!e.__esModule?Ag(t,"default",{value:e,enumerable:!0}):t,e)),mM=e=>pM(Ag({},"__esModule",{value:!0}),e);var Tg=P(yM=>{"use strict";yM.version="3.1.0-rc.1"});var bM=P((gM,Mg)=>{(function(r,t,a){t[r]=t[r]||a(),typeof Mg!="undefined"&&Mg.exports&&(Mg.exports=t[r])})("Promise",typeof window!="undefined"?window:gM,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(A){return setImmediate(A)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(A,_,x,T){return Object.defineProperty(A,_,{value:x,writable:!0,configurable:T!==!1})}}catch(b){r=function(_,x,T){return _[x]=T,_}}a=function(){var A,_,x;function T(E,S){this.fn=E,this.self=S,this.next=void 0}return{add:function(S,k){x=new T(S,k),_?_.next=x:A=x,_=x,x=void 0},drain:function(){var S=A;for(A=_=t=void 0;S;)S.fn.call(S.self),S=S.next}}}();function o(b,A){a.add(b,A),t||(t=i(a.drain))}function l(b){var A,_=typeof b;return b!=null&&(_=="object"||_=="function")&&(A=b.then),typeof A=="function"?A:!1}function s(){for(var b=0;b0&&o(s,_))}catch(x){c.call(new d(_),x)}}}function c(b){var A=this;A.triggered||(A.triggered=!0,A.def&&(A=A.def),A.msg=b,A.state=2,A.chain.length>0&&o(s,A))}function v(b,A,_,x){for(var T=0;T{(function(){var e={version:"3.8.2"},r=[].slice,t=function(h){return r.call(h)},a=self.document;function n(h){return h&&(h.ownerDocument||h.document||h).documentElement}function i(h){return h&&(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(h){t=function(y){for(var w=y.length,C=new Array(w);w--;)C[w]=y[w];return C}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(h){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,f=this.CSSStyleDeclaration.prototype,u=f.setProperty;o.setAttribute=function(y,w){l.call(this,y,w+"")},o.setAttributeNS=function(y,w,C){s.call(this,y,w,C+"")},f.setProperty=function(y,w,C){u.call(this,y,w+"",C)}}e.ascending=c;function c(h,y){return hy?1:h>=y?0:NaN}e.descending=function(h,y){return yh?1:y>=h?0:NaN},e.min=function(h,y){var w=-1,C=h.length,L,D;if(arguments.length===1){for(;++w=D){L=D;break}for(;++wD&&(L=D)}else{for(;++w=D){L=D;break}for(;++wD&&(L=D)}return L},e.max=function(h,y){var w=-1,C=h.length,L,D;if(arguments.length===1){for(;++w=D){L=D;break}for(;++wL&&(L=D)}else{for(;++w=D){L=D;break}for(;++wL&&(L=D)}return L},e.extent=function(h,y){var w=-1,C=h.length,L,D,G;if(arguments.length===1){for(;++w=D){L=G=D;break}for(;++wD&&(L=D),G=D){L=G=D;break}for(;++wD&&(L=D),G1)return G/(j-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(y,w,C,L){for(arguments.length<3&&(C=0),arguments.length<4&&(L=y.length);C>>1;h(y[D],w)<0?C=D+1:L=D}return C},right:function(y,w,C,L){for(arguments.length<3&&(C=0),arguments.length<4&&(L=y.length);C>>1;h(y[D],w)>0?L=D:C=D+1}return C}}}var g=p(c);e.bisectLeft=g.left,e.bisect=e.bisectRight=g.right,e.bisector=function(h){return p(h.length===1?function(y,w){return c(h(y),w)}:h)},e.shuffle=function(h,y,w){(C=arguments.length)<3&&(w=h.length,C<2&&(y=0));for(var C=w-y,L,D;C;)D=Math.random()*C--|0,L=h[C+y],h[C+y]=h[D+y],h[D+y]=L;return h},e.permute=function(h,y){for(var w=y.length,C=new Array(w);w--;)C[w]=h[y[w]];return C},e.pairs=function(h){for(var y=0,w=h.length-1,C,L=h[0],D=new Array(w<0?0:w);y=0;)for(G=h[y],w=G.length;--w>=0;)D[--L]=G[w];return D};var b=Math.abs;e.range=function(h,y,w){if(arguments.length<3&&(w=1,arguments.length<2&&(y=h,h=0)),(y-h)/w===1/0)throw new Error("infinite range");var C=[],L=A(b(w)),D=-1,G;if(h*=L,y*=L,w*=L,w<0)for(;(G=h+w*++D)>y;)C.push(G/L);else for(;(G=h+w*++D)=y.length)return L?L.call(h,j):C?j.sort(C):j;for(var ie=-1,me=j.length,ye=y[ne++],je,Ke,Me,Re=new x,Ue;++ie=y.length)return q;var ne=[],ie=w[j++];return q.forEach(function(me,ye){ne.push({key:me,values:G(ye,j)})}),ie?ne.sort(function(me,ye){return ie(me.key,ye.key)}):ne}return h.map=function(q,j){return D(j,q,0)},h.entries=function(q){return G(D(e.map,q,0),0)},h.key=function(q){return y.push(q),h},h.sortKeys=function(q){return w[y.length-1]=q,h},h.sortValues=function(q){return C=q,h},h.rollup=function(q){return L=q,h},h},e.set=function(h){var y=new X;if(h)for(var w=0,C=h.length;w=0&&(C=h.slice(w+1),h=h.slice(0,w)),h)return arguments.length<2?this[h].on(C):this[h].on(C,y);if(arguments.length===2){if(y==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(C,null);return this}};function ce(h){var y=[],w=new x;function C(){for(var L=y,D=-1,G=L.length,q;++D=0&&(w=h.slice(0,y))!=="xmlns"&&(h=h.slice(y+1)),Ze.hasOwnProperty(w)?{space:Ze[w],local:h}:h}},Qe.attr=function(h,y){if(arguments.length<2){if(typeof h=="string"){var w=this.node();return h=e.ns.qualify(h),h.local?w.getAttributeNS(h.space,h.local):w.getAttribute(h)}for(y in h)this.each(vr(y,h[y]));return this}return this.each(vr(h,y))};function vr(h,y){h=e.ns.qualify(h);function w(){this.removeAttribute(h)}function C(){this.removeAttributeNS(h.space,h.local)}function L(){this.setAttribute(h,y)}function D(){this.setAttributeNS(h.space,h.local,y)}function G(){var j=y.apply(this,arguments);j==null?this.removeAttribute(h):this.setAttribute(h,j)}function q(){var j=y.apply(this,arguments);j==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,j)}return y==null?h.local?C:w:typeof y=="function"?h.local?q:G:h.local?D:L}function rr(h){return h.trim().replace(/\s+/g," ")}Qe.classed=function(h,y){if(arguments.length<2){if(typeof h=="string"){var w=this.node(),C=(h=Lr(h)).length,L=-1;if(y=w.classList){for(;++L=0;)(D=w[C])&&(L&&L!==D.nextSibling&&L.parentNode.insertBefore(D,L),L=D);return this},Qe.sort=function(h){h=sr.apply(this,arguments);for(var y=-1,w=this.length;++y=y&&(y=L+1);!(j=G[y])&&++y0&&(h=h.slice(0,L));var G=Or.get(h);G&&(h=G,D=Yr);function q(){var ie=this[C];ie&&(this.removeEventListener(h,ie,ie.$),delete this[C])}function j(){var ie=D(y,t(arguments));q.call(this),this.addEventListener(h,this[C]=ie,ie.$=w),ie._=y}function ne(){var ie=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),me;for(var ye in this)if(me=ye.match(ie)){var je=this[ye];this.removeEventListener(me[1],je,je.$),delete this[ye]}}return L?y?j:q:y?J:ne}var Or=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Or.forEach(function(h){"on"+h in a&&Or.remove(h)});function at(h,y){return function(w){var C=e.event;e.event=w,y[0]=this.__data__;try{h.apply(this,y)}finally{e.event=C}}}function Yr(h,y){var w=at(h,y);return function(C){var L=this,D=C.relatedTarget;(!D||D!==L&&!(D.compareDocumentPosition(L)&8))&&w.call(L,C)}}var nt,vt=0;function ot(h){var y=".dragsuppress-"+ ++vt,w="click"+y,C=e.select(i(h)).on("touchmove"+y,De).on("dragstart"+y,De).on("selectstart"+y,De);if(nt==null&&(nt="onselectstart"in h?!1:$(h.style,"userSelect")),nt){var L=n(h).style,D=L[nt];L[nt]="none"}return function(G){if(C.on(y,null),nt&&(L[nt]=D),G){var q=function(){C.on(w,null)};C.on(w,function(){De(),q()},!0),setTimeout(q,0)}}}e.mouse=function(h){return pr(h,Oe())};var et=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function pr(h,y){y.changedTouches&&(y=y.changedTouches[0]);var w=h.ownerSVGElement||h;if(w.createSVGPoint){var C=w.createSVGPoint();if(et<0){var L=i(h);if(L.scrollX||L.scrollY){w=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var D=w[0][0].getScreenCTM();et=!(D.f||D.e),w.remove()}}return et?(C.x=y.pageX,C.y=y.pageY):(C.x=y.clientX,C.y=y.clientY),C=C.matrixTransform(h.getScreenCTM().inverse()),[C.x,C.y]}var G=h.getBoundingClientRect();return[y.clientX-G.left-h.clientLeft,y.clientY-G.top-h.clientTop]}e.touch=function(h,y,w){if(arguments.length<3&&(w=y,y=Oe().changedTouches),y){for(var C=0,L=y.length,D;C0?1:h<0?-1:0}function Ta(h,y,w){return(y[0]-h[0])*(w[1]-h[1])-(y[1]-h[1])*(w[0]-h[0])}function Rn(h){return h>1?0:h<-1?cr:Math.acos(h)}function bn(h){return h>1?gt:h<-1?-gt:Math.asin(h)}function ja(h){return((h=Math.exp(h))-1/h)/2}function cn(h){return((h=Math.exp(h))+1/h)/2}function jn(h){return((h=Math.exp(2*h))-1)/(h+1)}function vn(h){return(h=Math.sin(h/2))*h}var wn=Math.SQRT2,Mi=2,Pt=4;e.interpolateZoom=function(h,y){var w=h[0],C=h[1],L=h[2],D=y[0],G=y[1],q=y[2],j=D-w,ne=G-C,ie=j*j+ne*ne,me,ye;if(ie0&&(ht=ht.transition().duration(G)),ht.call(tr.event)}function kt(){Re&&Re.domain(Me.range().map(function(ht){return(ht-h.x)/h.k}).map(Me.invert)),er&&er.domain(Ue.range().map(function(ht){return(ht-h.y)/h.k}).map(Ue.invert))}function Ct(ht){q++||ht({type:"zoomstart"})}function Vt(ht){kt(),ht({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function Ft(ht){--q||(ht({type:"zoomend"}),w=null)}function Ot(){var ht=this,Yt=Ke.of(ht,arguments),jt=0,ca=e.select(i(ht)).on(ne,Jn).on(ie,$n),Xa=Le(e.mouse(ht)),Cn=ot(ht);Ac.call(ht),Ct(Yt);function Jn(){jt=1,tt(e.mouse(ht),Xa),Vt(Yt)}function $n(){ca.on(ne,null).on(ie,null),Cn(jt),Ft(Yt)}}function da(){var ht=this,Yt=Ke.of(ht,arguments),jt={},ca=0,Xa,Cn=".zoom-"+e.event.changedTouches[0].identifier,Jn="touchmove"+Cn,$n="touchend"+Cn,Li=[],M=e.select(ht),B=ot(ht);he(),Ct(Yt),M.on(j,null).on(ye,he);function V(){var xe=e.touches(ht);return Xa=h.k,xe.forEach(function(Ye){Ye.identifier in jt&&(jt[Ye.identifier]=Le(Ye))}),xe}function he(){var xe=e.event.target;e.select(xe).on(Jn,be).on($n,we),Li.push(xe);for(var Ye=e.event.changedTouches,ir=0,nr=Ye.length;ir1){var Fr=lr[0],br=lr[1],Ne=Fr[0]-br[0],fe=Fr[1]-br[1];ca=Ne*Ne+fe*fe}}function be(){var xe=e.touches(ht),Ye,ir,nr,lr;Ac.call(ht);for(var Zr=0,Fr=xe.length;Zr1?1:y,w=w<0?0:w>1?1:w,L=w<=.5?w*(1+y):w+y-w*y,C=2*w-L;function D(q){return q>360?q-=360:q<0&&(q+=360),q<60?C+(L-C)*q/60:q<180?L:q<240?C+(L-C)*(240-q)/60:C}function G(q){return Math.round(D(q)*255)}return new hi(G(h+120),G(h),G(h-120))}e.hcl=tn;function tn(h,y,w){return this instanceof tn?(this.h=+h,this.c=+y,void(this.l=+w)):arguments.length<2?h instanceof tn?new tn(h.h,h.c,h.l):h instanceof qn?Oo(h.l,h.a,h.b):Oo((h=_t((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new tn(h,y,w)}var Wi=tn.prototype=new hn;Wi.brighter=function(h){return new tn(this.h,this.c,Math.min(100,this.l+Ra*(arguments.length?h:1)))},Wi.darker=function(h){return new tn(this.h,this.c,Math.max(0,this.l-Ra*(arguments.length?h:1)))},Wi.rgb=function(){return ji(this.h,this.c,this.l).rgb()};function ji(h,y,w){return isNaN(h)&&(h=0),isNaN(y)&&(y=0),new qn(w,Math.cos(h*=Nt)*y,Math.sin(h)*y)}e.lab=qn;function qn(h,y,w){return this instanceof qn?(this.l=+h,this.a=+y,void(this.b=+w)):arguments.length<2?h instanceof qn?new qn(h.l,h.a,h.b):h instanceof tn?ji(h.h,h.c,h.l):_t((h=hi(h)).r,h.g,h.b):new qn(h,y,w)}var Ra=18,Xn=.95047,ss=1,fs=1.08883,kl=qn.prototype=new hn;kl.brighter=function(h){return new qn(Math.min(100,this.l+Ra*(arguments.length?h:1)),this.a,this.b)},kl.darker=function(h){return new qn(Math.max(0,this.l-Ra*(arguments.length?h:1)),this.a,this.b)},kl.rgb=function(){return Zu(this.l,this.a,this.b)};function Zu(h,y,w){var C=(h+16)/116,L=C+y/500,D=C-w/200;return L=Yf(L)*Xn,C=Yf(C)*ss,D=Yf(D)*fs,new hi(Xi(3.2404542*L-1.5371385*C-.4985314*D),Xi(-.969266*L+1.8760108*C+.041556*D),Xi(.0556434*L-.2040259*C+1.0572252*D))}function Oo(h,y,w){return h>0?new tn(Math.atan2(w,y)*ta,Math.sqrt(y*y+w*w),h):new tn(NaN,NaN,h)}function Yf(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function Wf(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function Xi(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=hi;function hi(h,y,w){return this instanceof hi?(this.r=~~h,this.g=~~y,void(this.b=~~w)):arguments.length<2?h instanceof hi?new hi(h.r,h.g,h.b):$t(""+h,hi,Ga):new hi(h,y,w)}function Ii(h){return new hi(h>>16,h>>8&255,h&255)}function Cl(h){return Ii(h)+""}var di=hi.prototype=new hn;di.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var y=this.r,w=this.g,C=this.b,L=30;return!y&&!w&&!C?new hi(L,L,L):(y&&y>4,C=C>>4|C,L=j&240,L=L>>4|L,D=j&15,D=D<<4|D):h.length===7&&(C=(j&16711680)>>16,L=(j&65280)>>8,D=j&255)),y(C,L,D))}function ua(h,y,w){var C=Math.min(h/=255,y/=255,w/=255),L=Math.max(h,y,w),D=L-C,G,q,j=(L+C)/2;return D?(q=j<.5?D/(L+C):D/(2-L-C),h==L?G=(y-w)/D+(y0&&j<1?0:G),new La(G,q,j)}function _t(h,y,w){h=Zn(h),y=Zn(y),w=Zn(w);var C=Wf((.4124564*h+.3575761*y+.1804375*w)/Xn),L=Wf((.2126729*h+.7151522*y+.072175*w)/ss),D=Wf((.0193339*h+.119192*y+.9503041*w)/fs);return qn(116*L-16,500*(C-L),200*(L-D))}function Zn(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function Ua(h){var y=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(y*2.55):y}var Pn=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Pn.forEach(function(h,y){Pn.set(h,Ii(y))});function ra(h){return typeof h=="function"?h:function(){return h}}e.functor=ra,e.xhr=wo(le);function wo(h){return function(y,w,C){return arguments.length===2&&typeof w=="function"&&(C=w,w=null),ol(y,w,h,C)}}function ol(h,y,w,C){var L={},D=e.dispatch("beforesend","progress","load","error"),G={},q=new XMLHttpRequest,j=null;self.XDomainRequest&&!("withCredentials"in q)&&/^(http(s)?:)?\/\//.test(h)&&(q=new XDomainRequest),"onload"in q?q.onload=q.onerror=ne:q.onreadystatechange=function(){q.readyState>3&&ne()};function ne(){var ie=q.status,me;if(!ie&&Jp(q)||ie>=200&&ie<300||ie===304){try{me=w.call(L,q)}catch(ye){D.error.call(L,ye);return}D.load.call(L,me)}else D.error.call(L,q)}return q.onprogress=function(ie){var me=e.event;e.event=ie;try{D.progress.call(L,q)}finally{e.event=me}},L.header=function(ie,me){return ie=(ie+"").toLowerCase(),arguments.length<2?G[ie]:(me==null?delete G[ie]:G[ie]=me+"",L)},L.mimeType=function(ie){return arguments.length?(y=ie==null?null:ie+"",L):y},L.responseType=function(ie){return arguments.length?(j=ie,L):j},L.response=function(ie){return w=ie,L},["get","post"].forEach(function(ie){L[ie]=function(){return L.send.apply(L,[ie].concat(t(arguments)))}}),L.send=function(ie,me,ye){if(arguments.length===2&&typeof me=="function"&&(ye=me,me=null),q.open(ie,h,!0),y!=null&&!("accept"in G)&&(G.accept=y+",*/*"),q.setRequestHeader)for(var je in G)q.setRequestHeader(je,G[je]);return y!=null&&q.overrideMimeType&&q.overrideMimeType(y),j!=null&&(q.responseType=j),ye!=null&&L.on("error",ye).on("load",function(Ke){ye(null,Ke)}),D.beforesend.call(L,q),q.send(me==null?null:me),L},L.abort=function(){return q.abort(),L},e.rebind(L,D,"on"),C==null?L:L.get(Si(C))}function Si(h){return h.length===1?function(y,w){h(y==null?w:null)}:h}function Jp(h){var y=h.responseType;return y&&y!=="text"?h.response:h.responseText}e.dsv=function(h,y){var w=new RegExp('["'+h+` +]`),C=h.charCodeAt(0);function L(ne,ie,me){arguments.length<3&&(me=ie,ie=null);var ye=ol(ne,y,ie==null?D:G(ie),me);return ye.row=function(je){return arguments.length?ye.response((ie=je)==null?D:G(je)):ie},ye}function D(ne){return L.parse(ne.responseText)}function G(ne){return function(ie){return L.parse(ie.responseText,ne)}}L.parse=function(ne,ie){var me;return L.parseRows(ne,function(ye,je){if(me)return me(ye,je-1);var Ke=function(Me){for(var Re={},Ue=ye.length,er=0;er=Ke)return ye;if(er)return er=!1,me;var Dr=Me;if(ne.charCodeAt(Dr)===34){for(var zr=Dr;zr++24?(isFinite(y)&&(clearTimeout(di),di=setTimeout(Ao,y)),Io=0):(Io=1,rf(Ao))}e.timer.flush=function(){Dl(),Ju()};function Dl(){for(var h=Date.now(),y=bn;y;)h>=y.t&&y.c(h-y.t)&&(y.c=null),y=y.n;return h}function Ju(){for(var h,y=bn,w=1/0;y;)y.c?(y.t=0;--q)Me.push(L[ne[me[q]][2]]);for(q=+We;q1&&ua(h[w[C-2]],h[w[C-1]],h[L])<=0;)--C;w[C++]=L}return w.slice(0,C)}function $1(h,y){return h[0]-y[0]||h[1]-y[1]}e.geom.polygon=function(h){return we(h,$u),h};var $u=e.geom.polygon.prototype=[];$u.area=function(){for(var h=-1,y=this.length,w,C=this[y-1],L=0;++hIe)q=q.L;else if(G=y-qv(q,w),G>Ie){if(!q.R){C=q;break}q=q.R}else{D>-Ie?(C=q.P,L=q):G>-Ie?(C=q,L=q.N):C=L=q;break}var j=Qu(h);if(pi.insert(C,j),!(!C&&!L)){if(C===L){of(C),L=Qu(C.site),pi.insert(j,L),j.edge=L.edge=Jf(C.site,j.site),Ii(C),Ii(L);return}if(!L){j.edge=Jf(C.site,j.site);return}of(C),of(L);var ne=C.site,ie=ne.x,me=ne.y,ye=h.x-ie,We=h.y-me,Ke=L.site,Me=Ke.x-ie,Re=Ke.y-me,Ge=2*(ye*Re-We*Me),er=ye*ye+We*We,tr=Me*Me+Re*Re,Le={x:(Re*er-We*tr)/Ge+ie,y:(ye*tr-Me*er)/Ge+me};Rl(L.edge,ne,Ke,Le),j.edge=Jf(ne,h,null,Le),L.edge=Jf(h,Ke,null,Le),Ii(C),Ii(L)}}function Ku(h,y){var w=h.site,C=w.x,L=w.y,D=L-y;if(!D)return C;var G=h.P;if(!G)return-1/0;w=G.site;var q=w.x,j=w.y,ne=j-y;if(!ne)return q;var ie=q-C,me=1/D-1/ne,ye=ie/ne;return me?(-ye+Math.sqrt(ye*ye-2*me*(ie*ie/(-2*ne)-j+ne/2+L-D/2)))/me+C:(C+q)/2}function qv(h,y){var w=h.N;if(w)return Ku(w,y);var C=h.site;return C.y===y?C.x:1/0}function ec(h){this.site=h,this.edges=[]}ec.prototype.prepare=function(){for(var h=this.edges,y=h.length,w;y--;)w=h[y].edge,(!w.b||!w.a)&&h.splice(y,1);return h.sort(nf),h.length};function Mo(h){for(var y=h[0][0],w=h[1][0],C=h[0][1],L=h[1][1],D,G,q,j,ne=To,ie=ne.length,me,ye,We,Ke,Me,Re;ie--;)if(me=ne[ie],!(!me||!me.prepare()))for(We=me.edges,Ke=We.length,ye=0;yeIe||b(j-G)>Ie)&&(We.splice(ye,0,new rc(ep(me.site,Re,b(q-y)Ie?{x:y,y:b(D-y)Ie?{x:b(G-L)Ie?{x:w,y:b(D-w)Ie?{x:b(G-C)=-dr)){var ye=j*j+ne*ne,We=ie*ie+Re*Re,Ke=(Re*ye-ne*We)/me,Me=(j*We-ie*ye)/me,Re=Me+q,Ge=af.pop()||new Xf;Ge.arc=h,Ge.site=L,Ge.x=Ke+G,Ge.y=Re+Math.sqrt(Ke*Ke+Me*Me),Ge.cy=Re,h.circle=Ge;for(var er=null,tr=ll._;tr;)if(Ge.y0)){if(Me/=We,We<0){if(Me0){if(Me>ye)return;Me>me&&(me=Me)}if(Me=w-q,!(!We&&Me<0)){if(Me/=We,We<0){if(Me>ye)return;Me>me&&(me=Me)}else if(We>0){if(Me0)){if(Me/=Ke,Ke<0){if(Me0){if(Me>ye)return;Me>me&&(me=Me)}if(Me=C-j,!(!Ke&&Me<0)){if(Me/=Ke,Ke<0){if(Me>ye)return;Me>me&&(me=Me)}else if(Ke>0){if(Me0&&(L.a={x:q+me*We,y:j+me*Ke}),ye<1&&(L.b={x:q+ye*We,y:j+ye*Ke}),L}}}}}}function K1(h){for(var y=Go,w=Q1(h[0][0],h[0][1],h[1][0],h[1][1]),C=y.length,L;C--;)L=y[C],(!Zf(L,h)||!w(L)||b(L.a.x-L.b.x)=D)return;if(ie>ye){if(!C)C={x:Ke,y:G};else if(C.y>=q)return;w={x:Ke,y:q}}else{if(!C)C={x:Ke,y:q};else if(C.y1)if(ie>ye){if(!C)C={x:(G-Ge)/Re,y:G};else if(C.y>=q)return;w={x:(q-Ge)/Re,y:q}}else{if(!C)C={x:(q-Ge)/Re,y:q};else if(C.y=D)return;w={x:D,y:Re*D+Ge}}else{if(!C)C={x:D,y:Re*D+Ge};else if(C.x=ie&&Ge.x<=ye&&Ge.y>=me&&Ge.y<=We?[[ie,We],[ye,We],[ye,me],[ie,me]]:[];er.point=j[Me]}),ne}function q(j){return j.map(function(ne,ie){return{x:Math.round(C(ne,ie)/Ie)*Ie,y:Math.round(L(ne,ie)/Ie)*Ie,i:ie}})}return G.links=function(j){return fl(q(j)).edges.filter(function(ne){return ne.l&&ne.r}).map(function(ne){return{source:j[ne.l.i],target:j[ne.r.i]}})},G.triangles=function(j){var ne=[];return fl(q(j)).cells.forEach(function(ie,me){for(var ye=ie.site,We=ie.edges.sort(nf),Ke=-1,Me=We.length,Re,Ge,er=We[Me-1].edge,tr=er.l===ye?er.r:er.l;++Ketr&&(tr=ie.x),ie.y>Le&&(Le=ie.y),We.push(ie.x),Ke.push(ie.y);else for(Me=0;Metr&&(tr=Dr),zr>Le&&(Le=zr),We.push(Dr),Ke.push(zr)}var nt=tr-Ge,gt=Le-er;nt>gt?Le=er+nt:tr=Ge+gt;function kt(Ft,Ot,pa,mn,Da,dt,Yt,jt){if(!(isNaN(pa)||isNaN(mn)))if(Ft.leaf){var va=Ft.x,ja=Ft.y;if(va!=null)if(b(va-pa)+b(ja-mn)<.01)Ct(Ft,Ot,pa,mn,Da,dt,Yt,jt);else{var Mn=Ft.point;Ft.x=Ft.y=Ft.point=null,Ct(Ft,Mn,va,ja,Da,dt,Yt,jt),Ct(Ft,Ot,pa,mn,Da,dt,Yt,jt)}else Ft.x=pa,Ft.y=mn,Ft.point=Ot}else Ct(Ft,Ot,pa,mn,Da,dt,Yt,jt)}function Ct(Ft,Ot,pa,mn,Da,dt,Yt,jt){var va=(Da+Yt)*.5,ja=(dt+jt)*.5,Mn=pa>=va,Xn=mn>=ja,Zn=Xn<<1|Mn;Ft.leaf=!1,Ft=Ft.nodes[Zn]||(Ft.nodes[Zn]=Eh()),Mn?Da=va:Yt=va,Xn?dt=ja:jt=ja,kt(Ft,Ot,pa,mn,Da,dt,Yt,jt)}var Vt=Eh();if(Vt.add=function(Ft){kt(Vt,Ft,+me(Ft,++Me),+ye(Ft,Me),Ge,er,tr,Le)},Vt.visit=function(Ft){$f(Ft,Vt,Ge,er,tr,Le)},Vt.find=function(Ft){return Pv(Vt,Ft[0],Ft[1],Ge,er,tr,Le)},Me=-1,y==null){for(;++MeD||ye>G||We=Dr,gt=w>=zr,kt=gt<<1|nt,Ct=kt+4;ktw&&(D=y.slice(w,D),q[G]?q[G]+=D:q[++G]=D),(C=C[0])===(L=L[0])?q[G]?q[G]+=L:q[++G]=L:(q[++G]=null,j.push({i:G,x:Si(C,L)})),w=Qf.lastIndex;return w=0&&!(C=e.interpolators[w](h,y)););return C}e.interpolators=[function(h,y){var w=typeof y;return(w==="string"?Ln.has(y.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(y)?So:xn:y instanceof un?So:Array.isArray(y)?sf:w==="object"&&isNaN(y)?kh:Si)(h,y)}],e.interpolateArray=sf;function sf(h,y){var w=[],C=[],L=h.length,D=y.length,G=Math.min(h.length,y.length),q;for(q=0;q=0?h.slice(0,y):h,C=y>=0?h.slice(y+1):"in";return w=Nv.get(w)||ac,C=Ov.get(C)||le,ip(C(w.apply(null,r.call(arguments,1))))};function ip(h){return function(y){return y<=0?0:y>=1?1:h(y)}}function so(h){return function(y){return 1-h(1-y)}}function Aa(h){return function(y){return .5*(y<.5?h(2*y):2-h(2-2*y))}}function Iv(h){return h*h}function Bv(h){return h*h*h}function Zi(h){if(h<=0)return 0;if(h>=1)return 1;var y=h*h,w=y*h;return 4*(h<.5?w:3*(h-y)+w-.75)}function zv(h){return function(y){return Math.pow(y,h)}}function Gv(h){return 1-Math.cos(h*At)}function op(h){return Math.pow(2,10*(h-1))}function lp(h){return 1-Math.sqrt(1-h*h)}function sp(h,y){var w;return arguments.length<2&&(y=.45),arguments.length?w=y/xt*Math.asin(1/h):(h=1,w=y/4),function(C){return 1+h*Math.pow(2,-10*C)*Math.sin((C-w)*xt/y)}}function fp(h){return h||(h=1.70158),function(y){return y*y*((h+1)*y-h)}}function Kf(h){return h<1/2.75?7.5625*h*h:h<2/2.75?7.5625*(h-=1.5/2.75)*h+.75:h<2.5/2.75?7.5625*(h-=2.25/2.75)*h+.9375:7.5625*(h-=2.625/2.75)*h+.984375}e.interpolateHcl=Uv;function Uv(h,y){h=e.hcl(h),y=e.hcl(y);var w=h.h,C=h.c,L=h.l,D=y.h-w,G=y.c-C,q=y.l-L;return isNaN(G)&&(G=0,C=isNaN(C)?y.c:C),isNaN(D)?(D=0,w=isNaN(w)?y.h:w):D>180?D-=360:D<-180&&(D+=360),function(j){return Wi(w+D*j,C+G*j,L+q*j)+""}}e.interpolateHsl=up;function up(h,y){h=e.hsl(h),y=e.hsl(y);var w=h.h,C=h.s,L=h.l,D=y.h-w,G=y.s-C,q=y.l-L;return isNaN(G)&&(G=0,C=isNaN(C)?y.s:C),isNaN(D)?(D=0,w=isNaN(w)?y.h:w):D>180?D-=360:D<-180&&(D+=360),function(j){return Ga(w+D*j,C+G*j,L+q*j)+""}}e.interpolateLab=Hv;function Hv(h,y){h=e.lab(h),y=e.lab(y);var w=h.l,C=h.a,L=h.b,D=y.l-w,G=y.a-C,q=y.b-L;return function(j){return Zu(w+D*j,C+G*j,L+q*j)+""}}e.interpolateRound=nc;function nc(h,y){return y-=h,function(w){return Math.round(h+y*w)}}e.transform=function(h){var y=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(w){if(w!=null){y.setAttribute("transform",w);var C=y.transform.baseVal.consolidate()}return new Ch(C?C.matrix:ps)})(h)};function Ch(h){var y=[h.a,h.b],w=[h.c,h.d],C=Lh(y),L=ql(y,w),D=Lh(Ei(w,y,-L))||0;y[0]*w[1]180?y+=360:y-h>180&&(h+=360),C.push({i:w.push(Pl(w)+"rotate(",null,")")-2,x:Si(h,y)})):y&&w.push(Pl(w)+"rotate("+y+")")}function Wv(h,y,w,C){h!==y?C.push({i:w.push(Pl(w)+"skewX(",null,")")-2,x:Si(h,y)}):y&&w.push(Pl(w)+"skewX("+y+")")}function jv(h,y,w,C){if(h[0]!==y[0]||h[1]!==y[1]){var L=w.push(Pl(w)+"scale(",null,",",null,")");C.push({i:L-4,x:Si(h[0],y[0])},{i:L-2,x:Si(h[1],y[1])})}else(y[0]!==1||y[1]!==1)&&w.push(Pl(w)+"scale("+y+")")}function ic(h,y){var w=[],C=[];return h=e.transform(h),y=e.transform(y),Vv(h.translate,y.translate,w,C),Yv(h.rotate,y.rotate,w,C),Wv(h.skew,y.skew,w,C),jv(h.scale,y.scale,w,C),h=y=null,function(L){for(var D=-1,G=C.length,q;++D0?D=Le:(w.c=null,w.t=NaN,w=null,y.end({type:"end",alpha:D=0})):Le>0&&(y.start({type:"start",alpha:D=Le}),w=Bo(h.tick)),h):D},h.start=function(){var Le,Dr=We.length,zr=Ke.length,nt=C[0],gt=C[1],kt,Ct;for(Le=0;Le=0;)D.push(ie=ne[j]),ie.parent=q,ie.depth=q.depth+1;w&&(q.value=0),q.children=ne}else w&&(q.value=+w.call(C,q,q.depth)||0),delete q.children;return Uo(L,function(me){var ye,We;h&&(ye=me.children)&&ye.sort(h),w&&(We=me.parent)&&(We.value+=me.value)}),G}return C.sort=function(L){return arguments.length?(h=L,C):h},C.children=function(L){return arguments.length?(y=L,C):y},C.value=function(L){return arguments.length?(w=L,C):w},C.revalue=function(L){return w&&(ru(L,function(D){D.children&&(D.value=0)}),Uo(L,function(D){var G;D.children||(D.value=+w.call(C,D,D.depth)||0),(G=D.parent)&&(G.value+=D.value)})),L},C};function ms(h,y){return e.rebind(h,y,"sort","children","value"),h.nodes=h,h.links=pp,h}function ru(h,y){for(var w=[h];(h=w.pop())!=null;)if(y(h),(L=h.children)&&(C=L.length))for(var C,L;--C>=0;)w.push(L[C])}function Uo(h,y){for(var w=[h],C=[];(h=w.pop())!=null;)if(C.push(h),(G=h.children)&&(D=G.length))for(var L=-1,D,G;++LL&&(L=q),C.push(q)}for(G=0;GC&&(w=y,C=L);return w}function gp(h){return h.reduce(bp,0)}function bp(h,y){return h+y[1]}e.layout.histogram=function(){var h=!0,y=Number,w=_p,C=xp;function L(D,ye){for(var q=[],j=D.map(y,this),ne=w.call(this,j,ye),ie=C.call(this,ne,j,ye),me,ye=-1,We=j.length,Ke=ie.length-1,Me=h?1:1/We,Re;++ye0)for(ye=-1;++ye=ne[0]&&Re<=ne[1]&&(me=q[e.bisect(ie,Re,1,Ke)-1],me.y+=Me,me.push(D[ye]));return q}return L.value=function(D){return arguments.length?(y=D,L):y},L.range=function(D){return arguments.length?(w=ra(D),L):w},L.bins=function(D){return arguments.length?(C=typeof D=="number"?function(G){return Dh(G,D)}:ra(D),L):C},L.frequency=function(D){return arguments.length?(h=!!D,L):h},L};function xp(h,y){return Dh(h,Math.ceil(Math.log(y.length)/Math.LN2+1))}function Dh(h,y){for(var w=-1,C=+h[0],L=(h[1]-C)/y,D=[];++w<=y;)D[w]=L*w+C;return D}function _p(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(tu),y=0,w=[1,1],C;function L(D,G){var q=h.call(this,D,G),j=q[0],ne=w[0],ie=w[1],me=C==null?Math.sqrt:typeof C=="function"?C:function(){return C};if(j.x=j.y=0,Uo(j,function(We){We.r=+me(We.value)}),Uo(j,Rh),y){var ye=y*(C?1:Math.max(2*j.r/ne,2*j.r/ie))/2;Uo(j,function(We){We.r+=ye}),Uo(j,Rh),Uo(j,function(We){We.r-=ye})}return qh(j,ne/2,ie/2,C?1:1/Math.max(2*j.r/ne,2*j.r/ie)),q}return L.size=function(D){return arguments.length?(w=D,L):w},L.radius=function(D){return arguments.length?(C=D==null||typeof D=="function"?D:+D,L):C},L.padding=function(D){return arguments.length?(y=+D,L):y},ms(L,h)};function tu(h,y){return h.value-y.value}function n0(h,y){var w=h._pack_next;h._pack_next=y,y._pack_prev=h,y._pack_next=w,w._pack_prev=y}function lc(h,y){h._pack_next=y,y._pack_prev=h}function Fh(h,y){var w=y.x-h.x,C=y.y-h.y,L=h.r+y.r;return .999*L*L>w*w+C*C}function Rh(h){if(!(y=h.children)||!(ye=y.length))return;var y,w=1/0,C=-1/0,L=1/0,D=-1/0,G,q,j,ne,ie,me,ye;function We(Le){w=Math.min(Le.x-Le.r,w),C=Math.max(Le.x+Le.r,C),L=Math.min(Le.y-Le.r,L),D=Math.max(Le.y+Le.r,D)}if(y.forEach(wp),G=y[0],G.x=-G.r,G.y=0,We(G),ye>1&&(q=y[1],q.x=q.r,q.y=0,We(q),ye>2))for(j=y[2],bg(G,q,j),We(j),n0(G,j),G._pack_prev=j,n0(j,q),q=G._pack_next,ne=3;neRe.x&&(Re=Dr),Dr.depth>Ge.depth&&(Ge=Dr)});var er=y(Me,Re)/2-Me.x,tr=w[0]/(Re.x+y(Re,Me)/2+er),Le=w[1]/(Ge.depth||1);ru(We,function(Dr){Dr.x=(Dr.x+er)*tr,Dr.y=Dr.depth*Le})}return ye}function D(ie){for(var me={A:null,children:[ie]},ye=[me],We;(We=ye.pop())!=null;)for(var Ke=We.children,Me,Re=0,Ge=Ke.length;Re0&&(Sp(i0(Me,ie,ye),ie,Dr),Ge+=Dr,er+=Dr),tr+=Me.m,Ge+=We.m,Le+=Re.m,er+=Ke.m;Me&&!Mp(Ke)&&(Ke.t=Me,Ke.m+=tr-er),We&&!Tp(Re)&&(Re.t=We,Re.m+=Ge-Le,ye=ie)}return ye}function ne(ie){ie.x*=w[0],ie.y=ie.depth*w[1]}return L.separation=function(ie){return arguments.length?(y=ie,L):y},L.size=function(ie){return arguments.length?(C=(w=ie)==null?ne:null,L):C?null:w},L.nodeSize=function(ie){return arguments.length?(C=(w=ie)==null?null:ne,L):C?w:null},ms(L,h)};function Ph(h,y){return h.parent==y.parent?1:2}function Tp(h){var y=h.children;return y.length?y[0]:h.t}function Mp(h){var y=h.children,w;return(w=y.length)?y[w-1]:h.t}function Sp(h,y,w){var C=w/(y.i-h.i);y.c-=C,y.s+=w,h.c+=C,y.z+=w,y.m+=w}function au(h){for(var y=0,w=0,C=h.children,L=C.length,D;--L>=0;)D=C[L],D.z+=y,D.m+=y,y+=D.s+(w+=D.c)}function i0(h,y,w){return h.a.parent===y.parent?h.a:w}e.layout.cluster=function(){var h=e.layout.hierarchy().sort(null).value(null),y=Ph,w=[1,1],C=!1;function L(D,G){var q=h.call(this,D,G),j=q[0],ne,ie=0;Uo(j,function(Me){var Re=Me.children;Re&&Re.length?(Me.x=o0(Re),Me.y=In(Re)):(Me.x=ne?ie+=y(Me,ne):0,Me.y=0,ne=Me)});var me=Nh(j),ye=Oh(j),We=me.x-y(me,ye)/2,Ke=ye.x+y(ye,me)/2;return Uo(j,C?function(Me){Me.x=(Me.x-j.x)*w[0],Me.y=(j.y-Me.y)*w[1]}:function(Me){Me.x=(Me.x-We)/(Ke-We)*w[0],Me.y=(1-(j.y?Me.y/j.y:1))*w[1]}),q}return L.separation=function(D){return arguments.length?(y=D,L):y},L.size=function(D){return arguments.length?(C=(w=D)==null,L):C?null:w},L.nodeSize=function(D){return arguments.length?(C=(w=D)!=null,L):C?w:null},ms(L,h)};function In(h){return 1+e.max(h,function(y){return y.y})}function o0(h){return h.reduce(function(y,w){return y+w.x},0)/h.length}function Nh(h){var y=h.children;return y&&y.length?Nh(y[0]):h}function Oh(h){var y=h.children,w;return y&&(w=y.length)?Oh(y[w-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),y=Math.round,w=[1,1],C=null,L=l0,D=!1,G,q="squarify",j=.5*(1+Math.sqrt(5));function ne(Me,Re){for(var Ge=-1,er=Me.length,tr,Le;++Ge0;)er.push(Le=tr[gt-1]),er.area+=Le.area,q!=="squarify"||(zr=ye(er,nt))<=Dr?(tr.pop(),Dr=zr):(er.area-=er.pop().area,We(er,nt,Ge,!1),nt=Math.min(Ge.dx,Ge.dy),er.length=er.area=0,Dr=1/0);er.length&&(We(er,nt,Ge,!0),er.length=er.area=0),Re.forEach(ie)}}function me(Me){var Re=Me.children;if(Re&&Re.length){var Ge=L(Me),er=Re.slice(),tr,Le=[];for(ne(er,Ge.dx*Ge.dy/Me.value),Le.area=0;tr=er.pop();)Le.push(tr),Le.area+=tr.area,tr.z!=null&&(We(Le,tr.z?Ge.dx:Ge.dy,Ge,!er.length),Le.length=Le.area=0);Re.forEach(me)}}function ye(Me,Re){for(var Ge=Me.area,er,tr=0,Le=1/0,Dr=-1,zr=Me.length;++Drtr&&(tr=er));return Ge*=Ge,Re*=Re,Ge?Math.max(Re*tr*j/Ge,Ge/(Re*Le*j)):1/0}function We(Me,Re,Ge,er){var tr=-1,Le=Me.length,Dr=Ge.x,zr=Ge.y,nt=Re?y(Me.area/Re):0,gt;if(Re==Ge.dx){for((er||nt>Ge.dy)&&(nt=Ge.dy);++trGe.dx)&&(nt=Ge.dx);++tr1);return h+y*C*Math.sqrt(-2*Math.log(D)/D)}},logNormal:function(){var h=e.random.normal.apply(e,arguments);return function(){return Math.exp(h())}},bates:function(h){var y=e.random.irwinHall(h);return function(){return y()/h}},irwinHall:function(h){return function(){for(var y=0,w=0;w2?Co:Ep,ne=C?Zv:Xv;return L=j(h,y,ne,w),D=j(y,h,ne,ul),q}function q(j){return L(j)}return q.invert=function(j){return D(j)},q.domain=function(j){return arguments.length?(h=j.map(Number),G()):h},q.range=function(j){return arguments.length?(y=j,G()):y},q.rangeRound=function(j){return q.range(j).interpolate(nc)},q.clamp=function(j){return arguments.length?(C=j,G()):C},q.interpolate=function(j){return arguments.length?(w=j,G()):w},q.ticks=function(j){return xs(h,j)},q.tickFormat=function(j,ne){return d3_scale_linearTickFormat(h,j,ne)},q.nice=function(j){return uc(h,j),G()},q.copy=function(){return Bh(h,y,w,C)},G()}function fo(h,y){return e.rebind(h,y,"range","rangeRound","interpolate","clamp")}function uc(h,y){return cl(h,Ta(Ji(h,y)[2])),cl(h,Ta(Ji(h,y)[2])),h}function Ji(h,y){y==null&&(y=10);var w=sc(h),C=w[1]-w[0],L=Math.pow(10,Math.floor(Math.log(C/y)/Math.LN10)),D=y/C*L;return D<=.15?L*=10:D<=.35?L*=5:D<=.75&&(L*=2),w[0]=Math.ceil(w[0]/L)*L,w[1]=Math.floor(w[1]/L)*L+L*.5,w[2]=L,w}function xs(h,y){return e.range.apply(e,Ji(h,y))}var nu={s:1,g:1,p:1,r:1,e:1};function uf(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function cc(h,y){var w=uf(y[2]);return h in nu?Math.abs(w-uf(Math.max(b(y[0]),b(y[1]))))+ +(h!=="e"):w-(h==="%")*2}e.scale.log=function(){return cf(e.scale.linear().domain([0,1]),10,!0,[1,10])};function cf(h,y,w,C){function L(q){return(w?Math.log(q<0?0:q):-Math.log(q>0?0:-q))/Math.log(y)}function D(q){return w?Math.pow(y,q):-Math.pow(y,-q)}function G(q){return h(L(q))}return G.invert=function(q){return D(h.invert(q))},G.domain=function(q){return arguments.length?(w=q[0]>=0,h.domain((C=q.map(Number)).map(L)),G):C},G.base=function(q){return arguments.length?(y=+q,h.domain(C.map(L)),G):y},G.nice=function(){var q=cl(C.map(L),w?Math:_s);return h.domain(q),C=q.map(D),G},G.ticks=function(){var q=sc(C),j=[],ne=q[0],ie=q[1],me=Math.floor(L(ne)),ye=Math.ceil(L(ie)),We=y%1?2:y;if(isFinite(ye-me)){if(w){for(;me0;Ke--)j.push(D(me)*Ke);for(me=0;j[me]ie;ye--);j=j.slice(me,ye)}return j},G.copy=function(){return cf(h.copy(),y,w,C)},fo(G,h)}var _s={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return vc(e.scale.linear(),1,[0,1])};function vc(h,y,w){var C=vf(y),L=vf(1/y);function D(G){return h(C(G))}return D.invert=function(G){return L(h.invert(G))},D.domain=function(G){return arguments.length?(h.domain((w=G.map(Number)).map(C)),D):w},D.ticks=function(G){return xs(w,G)},D.tickFormat=function(G,q){return d3_scale_linearTickFormat(w,G,q)},D.nice=function(G){return D.domain(uc(w,G))},D.exponent=function(G){return arguments.length?(C=vf(y=G),L=vf(1/y),h.domain(w.map(C)),D):y},D.copy=function(){return vc(h.copy(),y,w)},fo(D,h)}function vf(h){return function(y){return y<0?-Math.pow(-y,h):Math.pow(y,h)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return hc([],{t:"range",a:[[]]})};function hc(h,y){var w,C,L;function D(q){return C[((w.get(q)||(y.t==="range"?w.set(q,h.push(q)):NaN))-1)%C.length]}function G(q,j){return e.range(h.length).map(function(ne){return q+j*ne})}return D.domain=function(q){if(!arguments.length)return h;h=[],w=new x;for(var j=-1,ne=q.length,ie;++j0?w[D-1]:h[0],Dye?0:1;if(ie=Et)return j(ie,Ke)+(ne?j(ne,1-Ke):"")+"Z";var Me,Re,Ge,er,tr=0,Le=0,Dr,zr,nt,gt,kt,Ct,Vt,Ft,Ot=[];if((er=(+G.apply(this,arguments)||0)/2)&&(Ge=C===hf?Math.sqrt(ne*ne+ie*ie):+C.apply(this,arguments),Ke||(Le*=-1),ie&&(Le=Pn(Ge/ie*Math.sin(er))),ne&&(tr=Pn(Ge/ne*Math.sin(er)))),ie){Dr=ie*Math.cos(me+Le),zr=ie*Math.sin(me+Le),nt=ie*Math.cos(ye-Le),gt=ie*Math.sin(ye-Le);var pa=Math.abs(ye-me-2*Le)<=fr?0:1;if(Le&&pf(Dr,zr,nt,gt)===Ke^pa){var mn=(me+ye)/2;Dr=ie*Math.cos(mn),zr=ie*Math.sin(mn),nt=gt=null}}else Dr=zr=0;if(ne){kt=ne*Math.cos(ye-tr),Ct=ne*Math.sin(ye-tr),Vt=ne*Math.cos(me+tr),Ft=ne*Math.sin(me+tr);var Da=Math.abs(me-ye+2*tr)<=fr?0:1;if(tr&&pf(kt,Ct,Vt,Ft)===1-Ke^Da){var dt=(me+ye)/2;kt=ne*Math.cos(dt),Ct=ne*Math.sin(dt),Vt=Ft=null}}else kt=Ct=0;if(We>Ie&&(Me=Math.min(Math.abs(ie-ne)/2,+w.apply(this,arguments)))>.001){Re=ne0?0:1}function mf(h,y,w,C,L){var D=h[0]-y[0],G=h[1]-y[1],q=(L?C:-C)/Math.sqrt(D*D+G*G),j=q*G,ne=-q*D,ie=h[0]+j,me=h[1]+ne,ye=y[0]+j,We=y[1]+ne,Ke=(ie+ye)/2,Me=(me+We)/2,Re=ye-ie,Ge=We-me,er=Re*Re+Ge*Ge,tr=w-C,Le=ie*We-ye*me,Dr=(Ge<0?-1:1)*Math.sqrt(Math.max(0,tr*tr*er-Le*Le)),zr=(Le*Ge-Re*Dr)/er,nt=(-Le*Re-Ge*Dr)/er,gt=(Le*Ge+Re*Dr)/er,kt=(-Le*Re+Ge*Dr)/er,Ct=zr-Ke,Vt=nt-Me,Ft=gt-Ke,Ot=kt-Me;return Ct*Ct+Vt*Vt>Ft*Ft+Ot*Ot&&(zr=gt,nt=kt),[[zr-j,nt-ne],[zr*w/tr,nt*w/tr]]}function yf(){return!0}function bc(h){var y=zo,w=us,C=yf,L=ki,D=L.key,G=.7;function q(j){var ne=[],ie=[],me=-1,ye=j.length,We,Ke=ra(y),Me=ra(w);function Re(){ne.push("M",L(h(ie),G))}for(;++me1?h.join("L"):h+"Z"}function gf(h){return h.join("L")+"Z"}function vl(h){for(var y=0,w=h.length,C=h[0],L=[C[0],",",C[1]];++y1&&L.push("H",C[0]),L.join("")}function cu(h){for(var y=0,w=h.length,C=h[0],L=[C[0],",",C[1]];++y1){q=y[1],D=h[j],j++,C+="C"+(L[0]+G[0])+","+(L[1]+G[1])+","+(D[0]-q[0])+","+(D[1]-q[1])+","+D[0]+","+D[1];for(var ne=2;ne9&&(D=w*3/Math.sqrt(D),G[q]=D*C,G[q+1]=D*L));for(q=-1;++q<=j;)D=(h[Math.min(j,q+1)][0]-h[Math.max(0,q-1)][0])/(6*(1+G[q]*G[q])),y.push([D||0,G[q]*D||0]);return y}function c0(h){return h.length<3?ki(h):h[0]+Ho(h,Cp(h))}e.svg.line.radial=function(){var h=bc(xc);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function xc(h){for(var y,w=-1,C=h.length,L,D;++wfr)+",1 "+me}function ne(ie,me,ye,We){return"Q 0,0 "+We}return D.radius=function(ie){return arguments.length?(w=ra(ie),D):w},D.source=function(ie){return arguments.length?(h=ra(ie),D):h},D.target=function(ie){return arguments.length?(y=ra(ie),D):y},D.startAngle=function(ie){return arguments.length?(C=ra(ie),D):C},D.endAngle=function(ie){return arguments.length?(L=ra(ie),D):L},D};function hu(h){return h.radius}e.svg.diagonal=function(){var h=zh,y=vo,w=Gh;function C(L,D){var G=h.call(this,L,D),q=y.call(this,L,D),j=(G.y+q.y)/2,ne=[G,{x:G.x,y:j},{x:q.x,y:j},q];return ne=ne.map(w),"M"+ne[0]+"C"+ne[1]+" "+ne[2]+" "+ne[3]}return C.source=function(L){return arguments.length?(h=ra(L),C):h},C.target=function(L){return arguments.length?(y=ra(L),C):y},C.projection=function(L){return arguments.length?(w=L,C):w},C};function Gh(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),y=Gh,w=h.projection;return h.projection=function(C){return arguments.length?w(Lp(y=C)):y},h};function Lp(h){return function(){var y=h.apply(this,arguments),w=y[0],C=y[1]-At;return[w*Math.cos(C),w*Math.sin(C)]}}e.svg.symbol=function(){var h=Fp,y=Dp;function w(C,L){return(Hh.get(h.call(this,C,L))||Uh)(y.call(this,C,L))}return w.type=function(C){return arguments.length?(h=ra(C),w):h},w.size=function(C){return arguments.length?(y=ra(C),w):y},w};function Dp(){return 64}function Fp(){return"circle"}function Uh(h){var y=Math.sqrt(h/fr);return"M0,"+y+"A"+y+","+y+" 0 1,1 0,"+-y+"A"+y+","+y+" 0 1,1 0,"+y+"Z"}var Hh=e.map({circle:Uh,cross:function(h){var y=Math.sqrt(h/5)/2;return"M"+-3*y+","+-y+"H"+-y+"V"+-3*y+"H"+y+"V"+-y+"H"+3*y+"V"+y+"H"+y+"V"+3*y+"H"+-y+"V"+y+"H"+-3*y+"Z"},diamond:function(h){var y=Math.sqrt(h/(2*Vh)),w=y*Vh;return"M0,"+-y+"L"+w+",0 0,"+y+" "+-w+",0Z"},square:function(h){var y=Math.sqrt(h)/2;return"M"+-y+","+-y+"L"+y+","+-y+" "+y+","+y+" "+-y+","+y+"Z"},"triangle-down":function(h){var y=Math.sqrt(h/wc),w=y*wc/2;return"M0,"+w+"L"+y+","+-w+" "+-y+","+-w+"Z"},"triangle-up":function(h){var y=Math.sqrt(h/wc),w=y*wc/2;return"M0,"+-w+"L"+y+","+w+" "+-y+","+w+"Z"}});e.svg.symbolTypes=Hh.keys();var wc=Math.sqrt(3),Vh=Math.tan(30*Nt);Ue.transition=function(h){for(var y=ml||++xf,w=pu(h),C=[],L,D,G=Ol||{time:Date.now(),ease:Zi,delay:0,duration:250},q=-1,j=this.length;++q0;)me[--er].call(h,Ge);if(Re>=1)return G.event&&G.event.end.call(h,h.__data__,y),--D.count?delete D[C]:delete h[w],1}G||(q=L.time,j=Bo(ye,0,q),G=D[C]={tween:new x,time:q,timer:j,delay:L.delay,duration:L.duration,ease:L.ease,index:y},L=null,++D.count)}e.svg.axis=function(){var h=e.scale.linear(),y=_f,w=6,C=6,L=3,D=[10],G=null,q;function j(ne){ne.each(function(){var ie=e.select(this),me=this.__chart__||h,ye=this.__chart__=h.copy(),We=G==null?ye.ticks?ye.ticks.apply(ye,D):ye.domain():G,Ke=q==null?ye.tickFormat?ye.tickFormat.apply(ye,D):le:q,Me=ie.selectAll(".tick").data(We,ye),Re=Me.enter().insert("g",".domain").attr("class","tick").style("opacity",Ie),Ge=e.transition(Me.exit()).style("opacity",Ie).remove(),er=e.transition(Me.order()).style("opacity",1),tr=Math.max(w,0)+L,Le,Dr=fc(ye),zr=ie.selectAll(".domain").data([0]),nt=(zr.enter().append("path").attr("class","domain"),e.transition(zr));Re.append("line"),Re.append("text");var gt=Re.select("line"),kt=er.select("line"),Ct=Me.select("text").text(Ke),Vt=Re.select("text"),Ft=er.select("text"),Ot=y==="top"||y==="left"?-1:1,pa,mn,Da,dt;if(y==="bottom"||y==="top"?(Le=yu,pa="x",Da="y",mn="x2",dt="y2",Ct.attr("dy",Ot<0?"0em":".71em").style("text-anchor","middle"),nt.attr("d","M"+Dr[0]+","+Ot*C+"V0H"+Dr[1]+"V"+Ot*C)):(Le=gu,pa="y",Da="x",mn="y2",dt="x2",Ct.attr("dy",".32em").style("text-anchor",Ot<0?"end":"start"),nt.attr("d","M"+Ot*C+","+Dr[0]+"H0V"+Dr[1]+"H"+Ot*C)),gt.attr(dt,Ot*w),Vt.attr(Da,Ot*tr),kt.attr(mn,0).attr(dt,Ot*w),Ft.attr(pa,0).attr(Da,Ot*tr),ye.rangeBand){var Yt=ye,jt=Yt.rangeBand()/2;me=ye=function(va){return Yt(va)+jt}}else me.rangeBand?me=ye:Ge.call(Le,ye,me);Re.call(Le,me,ye),er.call(Le,ye,ye)})}return j.scale=function(ne){return arguments.length?(h=ne,j):h},j.orient=function(ne){return arguments.length?(y=ne in mu?ne+"":_f,j):y},j.ticks=function(){return arguments.length?(D=t(arguments),j):D},j.tickValues=function(ne){return arguments.length?(G=ne,j):G},j.tickFormat=function(ne){return arguments.length?(q=ne,j):q},j.tickSize=function(ne){var ie=arguments.length;return ie?(w=+ne,C=+arguments[ie-1],j):w},j.innerTickSize=function(ne){return arguments.length?(w=+ne,j):w},j.outerTickSize=function(ne){return arguments.length?(C=+ne,j):C},j.tickPadding=function(ne){return arguments.length?(L=+ne,j):L},j.tickSubdivide=function(){return arguments.length&&j},j};var _f="bottom",mu={top:1,right:1,bottom:1,left:1};function yu(h,y,w){h.attr("transform",function(C){var L=y(C);return"translate("+(isFinite(L)?L:w(C))+",0)"})}function gu(h,y,w){h.attr("transform",function(C){var L=y(C);return"translate(0,"+(isFinite(L)?L:w(C))+")"})}e.svg.brush=function(){var h=Ee(ie,"brushstart","brush","brushend"),y=null,w=null,C=[0,0],L=[0,0],D,G,q=!0,j=!0,ne=Ts[0];function ie(Me){Me.each(function(){var Re=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Ke).on("touchstart.brush",Ke),Ge=Re.selectAll(".background").data([0]);Ge.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Re.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var er=Re.selectAll(".resize").data(ne,le);er.exit().remove(),er.enter().append("g").attr("class",function(zr){return"resize "+zr}).style("cursor",function(zr){return bu[zr]}).append("rect").attr("x",function(zr){return/[ew]$/.test(zr)?-3:null}).attr("y",function(zr){return/^[ns]/.test(zr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),er.style("display",ie.empty()?"none":null);var tr=e.transition(Re),Le=e.transition(Ge),Dr;y&&(Dr=fc(y),Le.attr("x",Dr[0]).attr("width",Dr[1]-Dr[0]),ye(tr)),w&&(Dr=fc(w),Le.attr("y",Dr[0]).attr("height",Dr[1]-Dr[0]),We(tr)),me(tr)})}ie.event=function(Me){Me.each(function(){var Re=h.of(this,arguments),Ge={x:C,y:L,i:D,j:G},er=this.__chart__||Ge;this.__chart__=Ge,ml?e.select(this).transition().each("start.brush",function(){D=er.i,G=er.j,C=er.x,L=er.y,Re({type:"brushstart"})}).tween("brush:brush",function(){var tr=sf(C,Ge.x),Le=sf(L,Ge.y);return D=G=null,function(Dr){C=Ge.x=tr(Dr),L=Ge.y=Le(Dr),Re({type:"brush",mode:"resize"})}}).each("end.brush",function(){D=Ge.i,G=Ge.j,Re({type:"brush",mode:"resize"}),Re({type:"brushend"})}):(Re({type:"brushstart"}),Re({type:"brush",mode:"resize"}),Re({type:"brushend"}))})};function me(Me){Me.selectAll(".resize").attr("transform",function(Re){return"translate("+C[+/e$/.test(Re)]+","+L[+/^s/.test(Re)]+")"})}function ye(Me){Me.select(".extent").attr("x",C[0]),Me.selectAll(".extent,.n>rect,.s>rect").attr("width",C[1]-C[0])}function We(Me){Me.select(".extent").attr("y",L[0]),Me.selectAll(".extent,.e>rect,.w>rect").attr("height",L[1]-L[0])}function Ke(){var Me=this,Re=e.select(e.event.target),Ge=h.of(Me,arguments),er=e.select(Me),tr=Re.datum(),Le=!/^(n|s)$/.test(tr)&&y,Dr=!/^(e|w)$/.test(tr)&&w,zr=Re.classed("extent"),nt=it(Me),gt,kt=e.mouse(Me),Ct,Vt=e.select(i(Me)).on("keydown.brush",pa).on("keyup.brush",mn);if(e.event.changedTouches?Vt.on("touchmove.brush",Da).on("touchend.brush",Yt):Vt.on("mousemove.brush",Da).on("mouseup.brush",Yt),er.interrupt().selectAll("*").interrupt(),zr)kt[0]=C[0]-kt[0],kt[1]=L[0]-kt[1];else if(tr){var Ft=+/w$/.test(tr),Ot=+/^n/.test(tr);Ct=[C[1-Ft]-kt[0],L[1-Ot]-kt[1]],kt[0]=C[Ft],kt[1]=L[Ot]}else e.event.altKey&&(gt=kt.slice());er.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Re.style("cursor")),Ge({type:"brushstart"}),Da();function pa(){e.event.keyCode==32&&(zr||(gt=null,kt[0]-=C[1],kt[1]-=L[1],zr=2),De())}function mn(){e.event.keyCode==32&&zr==2&&(kt[0]+=C[1],kt[1]+=L[1],zr=0,De())}function Da(){var jt=e.mouse(Me),va=!1;Ct&&(jt[0]+=Ct[0],jt[1]+=Ct[1]),zr||(e.event.altKey?(gt||(gt=[(C[0]+C[1])/2,(L[0]+L[1])/2]),kt[0]=C[+(jt[0]{(function(e,r){typeof Tg=="object"&&typeof xM!="undefined"?r(Tg):(e=e||self,r(e.d3=e.d3||{}))})(Tg,function(e){"use strict";var r=new Date,t=new Date;function a(Fe,lr,vr,Tt){function ht(mr){return Fe(mr=arguments.length===0?new Date:new Date(+mr)),mr}return ht.floor=function(mr){return Fe(mr=new Date(+mr)),mr},ht.ceil=function(mr){return Fe(mr=new Date(mr-1)),lr(mr,1),Fe(mr),mr},ht.round=function(mr){var yr=ht(mr),Vr=ht.ceil(mr);return mr-yr0))return at;do at.push(Wr=new Date(+mr)),lr(mr,Vr),Fe(mr);while(Wr=yr)for(;Fe(yr),!mr(yr);)yr.setTime(yr-1)},function(yr,Vr){if(yr>=yr)if(Vr<0)for(;++Vr<=0;)for(;lr(yr,-1),!mr(yr););else for(;--Vr>=0;)for(;lr(yr,1),!mr(yr););})},vr&&(ht.count=function(mr,yr){return r.setTime(+mr),t.setTime(+yr),Fe(r),Fe(t),Math.floor(vr(r,t))},ht.every=function(mr){return mr=Math.floor(mr),!isFinite(mr)||!(mr>0)?null:mr>1?ht.filter(Tt?function(yr){return Tt(yr)%mr===0}:function(yr){return ht.count(0,yr)%mr===0}):ht}),ht}var n=a(function(){},function(Fe,lr){Fe.setTime(+Fe+lr)},function(Fe,lr){return lr-Fe});n.every=function(Fe){return Fe=Math.floor(Fe),!isFinite(Fe)||!(Fe>0)?null:Fe>1?a(function(lr){lr.setTime(Math.floor(lr/Fe)*Fe)},function(lr,vr){lr.setTime(+lr+vr*Fe)},function(lr,vr){return(vr-lr)/Fe}):n};var i=n.range,o=1e3,l=6e4,s=36e5,f=864e5,u=6048e5,c=a(function(Fe){Fe.setTime(Fe-Fe.getMilliseconds())},function(Fe,lr){Fe.setTime(+Fe+lr*o)},function(Fe,lr){return(lr-Fe)/o},function(Fe){return Fe.getUTCSeconds()}),v=c.range,d=a(function(Fe){Fe.setTime(Fe-Fe.getMilliseconds()-Fe.getSeconds()*o)},function(Fe,lr){Fe.setTime(+Fe+lr*l)},function(Fe,lr){return(lr-Fe)/l},function(Fe){return Fe.getMinutes()}),p=d.range,g=a(function(Fe){Fe.setTime(Fe-Fe.getMilliseconds()-Fe.getSeconds()*o-Fe.getMinutes()*l)},function(Fe,lr){Fe.setTime(+Fe+lr*s)},function(Fe,lr){return(lr-Fe)/s},function(Fe){return Fe.getHours()}),m=g.range,b=a(function(Fe){Fe.setHours(0,0,0,0)},function(Fe,lr){Fe.setDate(Fe.getDate()+lr)},function(Fe,lr){return(lr-Fe-(lr.getTimezoneOffset()-Fe.getTimezoneOffset())*l)/f},function(Fe){return Fe.getDate()-1}),A=b.range;function _(Fe){return a(function(lr){lr.setDate(lr.getDate()-(lr.getDay()+7-Fe)%7),lr.setHours(0,0,0,0)},function(lr,vr){lr.setDate(lr.getDate()+vr*7)},function(lr,vr){return(vr-lr-(vr.getTimezoneOffset()-lr.getTimezoneOffset())*l)/u})}var x=_(0),T=_(1),E=_(2),S=_(3),k=_(4),F=_(5),O=_(6),I=x.range,R=T.range,H=E.range,X=S.range,le=k.range,ae=F.range,J=O.range,Z=a(function(Fe){Fe.setDate(1),Fe.setHours(0,0,0,0)},function(Fe,lr){Fe.setMonth(Fe.getMonth()+lr)},function(Fe,lr){return lr.getMonth()-Fe.getMonth()+(lr.getFullYear()-Fe.getFullYear())*12},function(Fe){return Fe.getMonth()}),$=Z.range,oe=a(function(Fe){Fe.setMonth(0,1),Fe.setHours(0,0,0,0)},function(Fe,lr){Fe.setFullYear(Fe.getFullYear()+lr)},function(Fe,lr){return lr.getFullYear()-Fe.getFullYear()},function(Fe){return Fe.getFullYear()});oe.every=function(Fe){return!isFinite(Fe=Math.floor(Fe))||!(Fe>0)?null:a(function(lr){lr.setFullYear(Math.floor(lr.getFullYear()/Fe)*Fe),lr.setMonth(0,1),lr.setHours(0,0,0,0)},function(lr,vr){lr.setFullYear(lr.getFullYear()+vr*Fe)})};var ce=oe.range,De=a(function(Fe){Fe.setUTCSeconds(0,0)},function(Fe,lr){Fe.setTime(+Fe+lr*l)},function(Fe,lr){return(lr-Fe)/l},function(Fe){return Fe.getUTCMinutes()}),Ne=De.range,Ee=a(function(Fe){Fe.setUTCMinutes(0,0,0)},function(Fe,lr){Fe.setTime(+Fe+lr*s)},function(Fe,lr){return(lr-Fe)/s},function(Fe){return Fe.getUTCHours()}),Ye=Ee.range,we=a(function(Fe){Fe.setUTCHours(0,0,0,0)},function(Fe,lr){Fe.setUTCDate(Fe.getUTCDate()+lr)},function(Fe,lr){return(lr-Fe)/f},function(Fe){return Fe.getUTCDate()-1}),Qe=we.range;function ze(Fe){return a(function(lr){lr.setUTCDate(lr.getUTCDate()-(lr.getUTCDay()+7-Fe)%7),lr.setUTCHours(0,0,0,0)},function(lr,vr){lr.setUTCDate(lr.getUTCDate()+vr*7)},function(lr,vr){return(vr-lr)/u})}var He=ze(0),$e=ze(1),Ue=ze(2),ee=ze(3),_e=ze(4),te=ze(5),Xe=ze(6),ur=He.range,rr=$e.range,Pr=Ue.range,Or=ee.range,wr=_e.range,Lr=te.range,Xr=Xe.range,Kr=a(function(Fe){Fe.setUTCDate(1),Fe.setUTCHours(0,0,0,0)},function(Fe,lr){Fe.setUTCMonth(Fe.getUTCMonth()+lr)},function(Fe,lr){return lr.getUTCMonth()-Fe.getUTCMonth()+(lr.getUTCFullYear()-Fe.getUTCFullYear())*12},function(Fe){return Fe.getUTCMonth()}),Mr=Kr.range,jr=a(function(Fe){Fe.setUTCMonth(0,1),Fe.setUTCHours(0,0,0,0)},function(Fe,lr){Fe.setUTCFullYear(Fe.getUTCFullYear()+lr)},function(Fe,lr){return lr.getUTCFullYear()-Fe.getUTCFullYear()},function(Fe){return Fe.getUTCFullYear()});jr.every=function(Fe){return!isFinite(Fe=Math.floor(Fe))||!(Fe>0)?null:a(function(lr){lr.setUTCFullYear(Math.floor(lr.getUTCFullYear()/Fe)*Fe),lr.setUTCMonth(0,1),lr.setUTCHours(0,0,0,0)},function(lr,vr){lr.setUTCFullYear(lr.getUTCFullYear()+vr*Fe)})};var Yr=jr.range;e.timeDay=b,e.timeDays=A,e.timeFriday=F,e.timeFridays=ae,e.timeHour=g,e.timeHours=m,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=T,e.timeMondays=R,e.timeMonth=Z,e.timeMonths=$,e.timeSaturday=O,e.timeSaturdays=J,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=x,e.timeSundays=I,e.timeThursday=k,e.timeThursdays=le,e.timeTuesday=E,e.timeTuesdays=H,e.timeWednesday=S,e.timeWednesdays=X,e.timeWeek=x,e.timeWeeks=I,e.timeYear=oe,e.timeYears=ce,e.utcDay=we,e.utcDays=Qe,e.utcFriday=te,e.utcFridays=Lr,e.utcHour=Ee,e.utcHours=Ye,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=De,e.utcMinutes=Ne,e.utcMonday=$e,e.utcMondays=rr,e.utcMonth=Kr,e.utcMonths=Mr,e.utcSaturday=Xe,e.utcSaturdays=Xr,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=He,e.utcSundays=ur,e.utcThursday=_e,e.utcThursdays=wr,e.utcTuesday=Ue,e.utcTuesdays=Pr,e.utcWednesday=ee,e.utcWednesdays=Or,e.utcWeek=He,e.utcWeeks=ur,e.utcYear=jr,e.utcYears=Yr,Object.defineProperty(e,"__esModule",{value:!0})})});var Wh=P((Mg,_M)=>{(function(e,r){typeof Mg=="object"&&typeof _M!="undefined"?r(Mg,y5()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Mg,function(e,r){"use strict";function t(Se){if(0<=Se.y&&Se.y<100){var Ie=new Date(-1,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L);return Ie.setFullYear(Se.y),Ie}return new Date(Se.y,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L)}function a(Se){if(0<=Se.y&&Se.y<100){var Ie=new Date(Date.UTC(-1,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L));return Ie.setUTCFullYear(Se.y),Ie}return new Date(Date.UTC(Se.y,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L))}function n(Se,Ie,dr){return{y:Se,m:Ie,d:dr,H:0,M:0,S:0,L:0}}function i(Se){var Ie=Se.dateTime,dr=Se.date,fr=Se.time,xt=Se.periods,Et=Se.days,At=Se.shortDays,Nt=Se.months,sa=Se.shortMonths,wa=v(xt),ua=d(xt),pn=v(Et),Pn=d(Et),ci=v(At),Nn=d(At),lo=v(Nt),Tn=d(Nt),On=v(sa),Ti=d(sa),Pt={a:ss,A:fs,b:kl,B:Zu,c:null,d:Z,e:Z,f:Ne,H:$,I:oe,j:ce,L:De,m:Ee,M:Ye,p:Oo,q:Yf,Q:yr,s:Vr,S:we,u:Qe,U:ze,V:He,w:$e,W:Ue,x:null,X:null,y:ee,Y:_e,Z:te,"%":mr},Ca={a:Wf,A:ji,b:vi,B:Oi,c:null,d:Xe,e:Xe,f:wr,H:ur,I:rr,j:Pr,L:Or,m:Lr,M:Xr,p:Cl,q:hi,Q:yr,s:Vr,S:Kr,u:Mr,U:jr,V:Yr,w:Fe,W:lr,x:null,X:null,y:vr,Y:Tt,Z:ht,"%":mr},na={a:Ga,A:rn,b:Yi,B:Wi,c:Cn,d:k,e:k,f:X,H:O,I:O,j:F,L:H,m:S,M:I,p:Ba,q:E,Q:ae,s:J,S:R,u:g,U:m,V:b,w:p,W:A,x:Ra,X:Wn,y:x,Y:_,Z:T,"%":le};Pt.x=Va(dr,Pt),Pt.X=Va(fr,Pt),Pt.c=Va(Ie,Pt),Ca.x=Va(dr,Ca),Ca.X=Va(fr,Ca),Ca.c=Va(Ie,Ca);function Va(qt,$t){return function(ca){var _t=[],jn=-1,Ua=0,Ln=qt.length,ra,wo,ol;for(ca instanceof Date||(ca=new Date(+ca));++jn53)return null;"w"in _t||(_t.w=1),"Z"in _t?(Ua=a(n(_t.y,0,1)),Ln=Ua.getUTCDay(),Ua=Ln>4||Ln===0?r.utcMonday.ceil(Ua):r.utcMonday(Ua),Ua=r.utcDay.offset(Ua,(_t.V-1)*7),_t.y=Ua.getUTCFullYear(),_t.m=Ua.getUTCMonth(),_t.d=Ua.getUTCDate()+(_t.w+6)%7):(Ua=t(n(_t.y,0,1)),Ln=Ua.getDay(),Ua=Ln>4||Ln===0?r.timeMonday.ceil(Ua):r.timeMonday(Ua),Ua=r.timeDay.offset(Ua,(_t.V-1)*7),_t.y=Ua.getFullYear(),_t.m=Ua.getMonth(),_t.d=Ua.getDate()+(_t.w+6)%7)}else("W"in _t||"U"in _t)&&("w"in _t||(_t.w="u"in _t?_t.u%7:"W"in _t?1:0),Ln="Z"in _t?a(n(_t.y,0,1)).getUTCDay():t(n(_t.y,0,1)).getDay(),_t.m=0,_t.d="W"in _t?(_t.w+6)%7+_t.W*7-(Ln+5)%7:_t.w+_t.U*7-(Ln+6)%7);return"Z"in _t?(_t.H+=_t.Z/100|0,_t.M+=_t.Z%100,a(_t)):t(_t)}}function La(qt,$t,ca,_t){for(var jn=0,Ua=$t.length,Ln=ca.length,ra,wo;jn=Ln)return-1;if(ra=$t.charCodeAt(jn++),ra===37){if(ra=$t.charAt(jn++),wo=na[ra in o?$t.charAt(jn++):ra],!wo||(_t=wo(qt,ca,_t))<0)return-1}else if(ra!=ca.charCodeAt(_t++))return-1}return _t}function Ba(qt,$t,ca){var _t=wa.exec($t.slice(ca));return _t?(qt.p=ua[_t[0].toLowerCase()],ca+_t[0].length):-1}function Ga(qt,$t,ca){var _t=ci.exec($t.slice(ca));return _t?(qt.w=Nn[_t[0].toLowerCase()],ca+_t[0].length):-1}function rn(qt,$t,ca){var _t=pn.exec($t.slice(ca));return _t?(qt.w=Pn[_t[0].toLowerCase()],ca+_t[0].length):-1}function Yi(qt,$t,ca){var _t=On.exec($t.slice(ca));return _t?(qt.m=Ti[_t[0].toLowerCase()],ca+_t[0].length):-1}function Wi(qt,$t,ca){var _t=lo.exec($t.slice(ca));return _t?(qt.m=Tn[_t[0].toLowerCase()],ca+_t[0].length):-1}function Cn(qt,$t,ca){return La(qt,Ie,$t,ca)}function Ra(qt,$t,ca){return La(qt,dr,$t,ca)}function Wn(qt,$t,ca){return La(qt,fr,$t,ca)}function ss(qt){return At[qt.getDay()]}function fs(qt){return Et[qt.getDay()]}function kl(qt){return sa[qt.getMonth()]}function Zu(qt){return Nt[qt.getMonth()]}function Oo(qt){return xt[+(qt.getHours()>=12)]}function Yf(qt){return 1+~~(qt.getMonth()/3)}function Wf(qt){return At[qt.getUTCDay()]}function ji(qt){return Et[qt.getUTCDay()]}function vi(qt){return sa[qt.getUTCMonth()]}function Oi(qt){return Nt[qt.getUTCMonth()]}function Cl(qt){return xt[+(qt.getUTCHours()>=12)]}function hi(qt){return 1+~~(qt.getUTCMonth()/3)}return{format:function(qt){var $t=Va(qt+="",Pt);return $t.toString=function(){return qt},$t},parse:function(qt){var $t=un(qt+="",!1);return $t.toString=function(){return qt},$t},utcFormat:function(qt){var $t=Va(qt+="",Ca);return $t.toString=function(){return qt},$t},utcParse:function(qt){var $t=un(qt+="",!0);return $t.toString=function(){return qt},$t}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,f=/[\\^$*+?|[\]().{}]/g;function u(Se,Ie,dr){var fr=Se<0?"-":"",xt=(fr?-Se:Se)+"",Et=xt.length;return fr+(Et68?1900:2e3),dr+fr[0].length):-1}function T(Se,Ie,dr){var fr=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ie.slice(dr,dr+6));return fr?(Se.Z=fr[1]?0:-(fr[2]+(fr[3]||"00")),dr+fr[0].length):-1}function E(Se,Ie,dr){var fr=l.exec(Ie.slice(dr,dr+1));return fr?(Se.q=fr[0]*3-3,dr+fr[0].length):-1}function S(Se,Ie,dr){var fr=l.exec(Ie.slice(dr,dr+2));return fr?(Se.m=fr[0]-1,dr+fr[0].length):-1}function k(Se,Ie,dr){var fr=l.exec(Ie.slice(dr,dr+2));return fr?(Se.d=+fr[0],dr+fr[0].length):-1}function F(Se,Ie,dr){var fr=l.exec(Ie.slice(dr,dr+3));return fr?(Se.m=0,Se.d=+fr[0],dr+fr[0].length):-1}function O(Se,Ie,dr){var fr=l.exec(Ie.slice(dr,dr+2));return fr?(Se.H=+fr[0],dr+fr[0].length):-1}function I(Se,Ie,dr){var fr=l.exec(Ie.slice(dr,dr+2));return fr?(Se.M=+fr[0],dr+fr[0].length):-1}function R(Se,Ie,dr){var fr=l.exec(Ie.slice(dr,dr+2));return fr?(Se.S=+fr[0],dr+fr[0].length):-1}function H(Se,Ie,dr){var fr=l.exec(Ie.slice(dr,dr+3));return fr?(Se.L=+fr[0],dr+fr[0].length):-1}function X(Se,Ie,dr){var fr=l.exec(Ie.slice(dr,dr+6));return fr?(Se.L=Math.floor(fr[0]/1e3),dr+fr[0].length):-1}function le(Se,Ie,dr){var fr=s.exec(Ie.slice(dr,dr+1));return fr?dr+fr[0].length:-1}function ae(Se,Ie,dr){var fr=l.exec(Ie.slice(dr));return fr?(Se.Q=+fr[0],dr+fr[0].length):-1}function J(Se,Ie,dr){var fr=l.exec(Ie.slice(dr));return fr?(Se.s=+fr[0],dr+fr[0].length):-1}function Z(Se,Ie){return u(Se.getDate(),Ie,2)}function $(Se,Ie){return u(Se.getHours(),Ie,2)}function oe(Se,Ie){return u(Se.getHours()%12||12,Ie,2)}function ce(Se,Ie){return u(1+r.timeDay.count(r.timeYear(Se),Se),Ie,3)}function De(Se,Ie){return u(Se.getMilliseconds(),Ie,3)}function Ne(Se,Ie){return De(Se,Ie)+"000"}function Ee(Se,Ie){return u(Se.getMonth()+1,Ie,2)}function Ye(Se,Ie){return u(Se.getMinutes(),Ie,2)}function we(Se,Ie){return u(Se.getSeconds(),Ie,2)}function Qe(Se){var Ie=Se.getDay();return Ie===0?7:Ie}function ze(Se,Ie){return u(r.timeSunday.count(r.timeYear(Se)-1,Se),Ie,2)}function He(Se,Ie){var dr=Se.getDay();return Se=dr>=4||dr===0?r.timeThursday(Se):r.timeThursday.ceil(Se),u(r.timeThursday.count(r.timeYear(Se),Se)+(r.timeYear(Se).getDay()===4),Ie,2)}function $e(Se){return Se.getDay()}function Ue(Se,Ie){return u(r.timeMonday.count(r.timeYear(Se)-1,Se),Ie,2)}function ee(Se,Ie){return u(Se.getFullYear()%100,Ie,2)}function _e(Se,Ie){return u(Se.getFullYear()%1e4,Ie,4)}function te(Se){var Ie=Se.getTimezoneOffset();return(Ie>0?"-":(Ie*=-1,"+"))+u(Ie/60|0,"0",2)+u(Ie%60,"0",2)}function Xe(Se,Ie){return u(Se.getUTCDate(),Ie,2)}function ur(Se,Ie){return u(Se.getUTCHours(),Ie,2)}function rr(Se,Ie){return u(Se.getUTCHours()%12||12,Ie,2)}function Pr(Se,Ie){return u(1+r.utcDay.count(r.utcYear(Se),Se),Ie,3)}function Or(Se,Ie){return u(Se.getUTCMilliseconds(),Ie,3)}function wr(Se,Ie){return Or(Se,Ie)+"000"}function Lr(Se,Ie){return u(Se.getUTCMonth()+1,Ie,2)}function Xr(Se,Ie){return u(Se.getUTCMinutes(),Ie,2)}function Kr(Se,Ie){return u(Se.getUTCSeconds(),Ie,2)}function Mr(Se){var Ie=Se.getUTCDay();return Ie===0?7:Ie}function jr(Se,Ie){return u(r.utcSunday.count(r.utcYear(Se)-1,Se),Ie,2)}function Yr(Se,Ie){var dr=Se.getUTCDay();return Se=dr>=4||dr===0?r.utcThursday(Se):r.utcThursday.ceil(Se),u(r.utcThursday.count(r.utcYear(Se),Se)+(r.utcYear(Se).getUTCDay()===4),Ie,2)}function Fe(Se){return Se.getUTCDay()}function lr(Se,Ie){return u(r.utcMonday.count(r.utcYear(Se)-1,Se),Ie,2)}function vr(Se,Ie){return u(Se.getUTCFullYear()%100,Ie,2)}function Tt(Se,Ie){return u(Se.getUTCFullYear()%1e4,Ie,4)}function ht(){return"+0000"}function mr(){return"%"}function yr(Se){return+Se}function Vr(Se){return Math.floor(+Se/1e3)}var at;Wr({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 Wr(Se){return at=i(Se),e.timeFormat=at.format,e.timeParse=at.parse,e.utcFormat=at.utcFormat,e.utcParse=at.utcParse,at}var Hr="%Y-%m-%dT%H:%M:%S.%LZ";function ot(Se){return Se.toISOString()}var it=Date.prototype.toISOString?ot:e.utcFormat(Hr);function st(Se){var Ie=new Date(Se);return isNaN(Ie)?null:Ie}var br=+new Date("2000-01-01T00:00:00.000Z")?st:e.utcParse(Hr);e.isoFormat=it,e.isoParse=br,e.timeFormatDefaultLocale=Wr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var g5=P((Sg,wM)=>{(function(e,r){typeof Sg=="object"&&typeof wM!="undefined"?r(Sg):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Sg,function(e){"use strict";function r(S){return Math.abs(S=Math.round(S))>=1e21?S.toLocaleString("en").replace(/,/g,""):S.toString(10)}function t(S,k){if((F=(S=k?S.toExponential(k-1):S.toExponential()).indexOf("e"))<0)return null;var F,O=S.slice(0,F);return[O.length>1?O[0]+O.slice(2):O,+S.slice(F+1)]}function a(S){return S=t(Math.abs(S)),S?S[1]:NaN}function n(S,k){return function(F,O){for(var I=F.length,R=[],H=0,X=S[0],le=0;I>0&&X>0&&(le+X+1>O&&(X=Math.max(1,O-le)),R.push(F.substring(I-=X,I+X)),!((le+=X+1)>O));)X=S[H=(H+1)%S.length];return R.reverse().join(k)}}function i(S){return function(k){return k.replace(/[0-9]/g,function(F){return S[+F]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(S){if(!(k=o.exec(S)))throw new Error("invalid format: "+S);var k;return new s({fill:k[1],align:k[2],sign:k[3],symbol:k[4],zero:k[5],width:k[6],comma:k[7],precision:k[8]&&k[8].slice(1),trim:k[9],type:k[10]})}l.prototype=s.prototype;function s(S){this.fill=S.fill===void 0?" ":S.fill+"",this.align=S.align===void 0?">":S.align+"",this.sign=S.sign===void 0?"-":S.sign+"",this.symbol=S.symbol===void 0?"":S.symbol+"",this.zero=!!S.zero,this.width=S.width===void 0?void 0:+S.width,this.comma=!!S.comma,this.precision=S.precision===void 0?void 0:+S.precision,this.trim=!!S.trim,this.type=S.type===void 0?"":S.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function f(S){e:for(var k=S.length,F=1,O=-1,I;F0&&(O=0);break}return O>0?S.slice(0,O)+S.slice(I+1):S}var u;function c(S,k){var F=t(S,k);if(!F)return S+"";var O=F[0],I=F[1],R=I-(u=Math.max(-8,Math.min(8,Math.floor(I/3)))*3)+1,H=O.length;return R===H?O:R>H?O+new Array(R-H+1).join("0"):R>0?O.slice(0,R)+"."+O.slice(R):"0."+new Array(1-R).join("0")+t(S,Math.max(0,k+R-1))[0]}function v(S,k){var F=t(S,k);if(!F)return S+"";var O=F[0],I=F[1];return I<0?"0."+new Array(-I).join("0")+O:O.length>I+1?O.slice(0,I+1)+"."+O.slice(I+1):O+new Array(I-O.length+2).join("0")}var d={"%":function(S,k){return(S*100).toFixed(k)},b:function(S){return Math.round(S).toString(2)},c:function(S){return S+""},d:r,e:function(S,k){return S.toExponential(k)},f:function(S,k){return S.toFixed(k)},g:function(S,k){return S.toPrecision(k)},o:function(S){return Math.round(S).toString(8)},p:function(S,k){return v(S*100,k)},r:v,s:c,X:function(S){return Math.round(S).toString(16).toUpperCase()},x:function(S){return Math.round(S).toString(16)}};function p(S){return S}var g=Array.prototype.map,m=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(S){var k=S.grouping===void 0||S.thousands===void 0?p:n(g.call(S.grouping,Number),S.thousands+""),F=S.currency===void 0?"":S.currency[0]+"",O=S.currency===void 0?"":S.currency[1]+"",I=S.decimal===void 0?".":S.decimal+"",R=S.numerals===void 0?p:i(g.call(S.numerals,String)),H=S.percent===void 0?"%":S.percent+"",X=S.minus===void 0?"-":S.minus+"",le=S.nan===void 0?"NaN":S.nan+"";function ae(Z){Z=l(Z);var $=Z.fill,oe=Z.align,ce=Z.sign,De=Z.symbol,Ne=Z.zero,Ee=Z.width,Ye=Z.comma,we=Z.precision,Qe=Z.trim,ze=Z.type;ze==="n"?(Ye=!0,ze="g"):d[ze]||(we===void 0&&(we=12),Qe=!0,ze="g"),(Ne||$==="0"&&oe==="=")&&(Ne=!0,$="0",oe="=");var He=De==="$"?F:De==="#"&&/[boxX]/.test(ze)?"0"+ze.toLowerCase():"",$e=De==="$"?O:/[%p]/.test(ze)?H:"",Ue=d[ze],ee=/[defgprs%]/.test(ze);we=we===void 0?6:/[gprs]/.test(ze)?Math.max(1,Math.min(21,we)):Math.max(0,Math.min(20,we));function _e(te){var Xe=He,ur=$e,rr,Pr,Or;if(ze==="c")ur=Ue(te)+ur,te="";else{te=+te;var wr=te<0||1/te<0;if(te=isNaN(te)?le:Ue(Math.abs(te),we),Qe&&(te=f(te)),wr&&+te==0&&ce!=="+"&&(wr=!1),Xe=(wr?ce==="("?ce:X:ce==="-"||ce==="("?"":ce)+Xe,ur=(ze==="s"?m[8+u/3]:"")+ur+(wr&&ce==="("?")":""),ee){for(rr=-1,Pr=te.length;++rrOr||Or>57){ur=(Or===46?I+te.slice(rr+1):te.slice(rr))+ur,te=te.slice(0,rr);break}}}Ye&&!Ne&&(te=k(te,1/0));var Lr=Xe.length+te.length+ur.length,Xr=Lr>1)+Xe+te+ur+Xr.slice(Lr);break;default:te=Xr+Xe+te+ur;break}return R(te)}return _e.toString=function(){return Z+""},_e}function J(Z,$){var oe=ae((Z=l(Z),Z.type="f",Z)),ce=Math.max(-8,Math.min(8,Math.floor(a($)/3)))*3,De=Math.pow(10,-ce),Ne=m[8+ce/3];return function(Ee){return oe(De*Ee)+Ne}}return{format:ae,formatPrefix:J}}var A;_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function _(S){return A=b(S),e.format=A.format,e.formatPrefix=A.formatPrefix,A}function x(S){return Math.max(0,-a(Math.abs(S)))}function T(S,k){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(k)/3)))*3-a(Math.abs(S)))}function E(S,k){return S=Math.abs(S),k=Math.abs(k)-S,Math.max(0,a(k)-a(S))+1}e.FormatSpecifier=s,e.formatDefaultLocale=_,e.formatLocale=b,e.formatSpecifier=l,e.precisionFixed=x,e.precisionPrefix=T,e.precisionRound=E,Object.defineProperty(e,"__esModule",{value:!0})})});var TM=P(($Se,AM)=>{"use strict";AM.exports=function(e){for(var r=e.length,t,a=0;a13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var ga=P((QSe,MM)=>{"use strict";var Une=TM();MM.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&Une(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Jn=P((KSe,SM)=>{"use strict";SM.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var b5=P((Eg,EM)=>{(function(e,r){typeof Eg=="object"&&typeof EM!="undefined"?r(Eg):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Eg,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],u+=r[(l[s]&3)<<4|l[s+1]>>4],u+=r[(l[s+1]&15)<<2|l[s+2]>>6],u+=r[l[s+2]&63];return f%3===2?u=u.substring(0,u.length-1)+"=":f%3===1&&(u=u.substring(0,u.length-2)+"=="),u},i=function(o){var l=o.length*.75,s=o.length,f,u=0,c,v,d,p;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var g=new ArrayBuffer(l),m=new Uint8Array(g);for(f=0;f>4,m[u++]=(v&15)<<4|d>>2,m[u++]=(d&3)<<6|p&63;return g};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})})});var Mc=P((eEe,kM)=>{"use strict";kM.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var Vo=P(Ss=>{"use strict";var Hne=b5().decode,Vne=Mc(),x5=Array.isArray,Yne=ArrayBuffer,Wne=DataView;function CM(e){return Yne.isView(e)&&!(e instanceof Wne)}Ss.isTypedArray=CM;function kg(e){return x5(e)||CM(e)}Ss.isArrayOrTypedArray=kg;function jne(e){return!kg(e[0])}Ss.isArray1D=jne;Ss.ensureArray=function(e,r){return x5(e)||(e=[]),e.length=r,e};var Di={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};Di.uint8c=Di.u1c;Di.uint8=Di.u1;Di.int8=Di.i1;Di.uint16=Di.u2;Di.int16=Di.i2;Di.uint32=Di.u4;Di.int32=Di.i4;Di.float32=Di.f4;Di.float64=Di.f8;function _5(e){return e.constructor===ArrayBuffer}Ss.isArrayBuffer=_5;Ss.decodeTypedArraySpec=function(e){var r=[],t=Xne(e),a=t.dtype,n=Di[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;_5(o)||(o=Hne(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,f,u,c=+l[0],v=i*c,d=0;if(s===1)r=new n(o);else if(s===2)for(f=+l[1],u=0;u{"use strict";var DM=ga(),A5=Vo().isArrayOrTypedArray;PM.exports=function(r,t){if(DM(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,o,l;for(l=0;l{"use strict";var jh=Cg(),Kne=/^\w*$/,eie=0,NM=1,Lg=2,OM=3,v0=4;IM.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=jh(r,t),o=l.get()):o=r,t=t||"";var f={};if(o)for(i=0;i2)return s[d]=s[d]|Lg,c.set(v,null);if(u){for(i=d;i{"use strict";var rie=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,tie=/^[^\.\[\]]+$/;zM.exports=function(e,r){for(;r;){var t=e.match(rie);if(t)e=t[1];else if(e.match(tie))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var Dg=P((iEe,UM)=>{"use strict";var aie=ga();UM.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return aie(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var YM=P((oEe,VM)=>{"use strict";var HM=Vo().isArrayOrTypedArray,Rp=Mc();VM.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(HM(n)&&HM(i)&&Rp(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;l{"use strict";function nie(e,r){var t=e%r;return t<0?t+r:t}function iie(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}WM.exports={mod:nie,modHalf:iie}});var Es=P((sEe,Fg)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,o=e.max,l=e.random;function s(ee,_e){if(ee=ee||"",_e=_e||{},ee instanceof s)return ee;if(!(this instanceof s))return new s(ee,_e);var te=f(ee);this._originalInput=ee,this._r=te.r,this._g=te.g,this._b=te.b,this._a=te.a,this._roundA=n(100*this._a)/100,this._format=_e.format||te.format,this._gradientType=_e.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=te.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ee=this.toRgb();return(ee.r*299+ee.g*587+ee.b*114)/1e3},getLuminance:function(){var ee=this.toRgb(),_e,te,Xe,ur,rr,Pr;return _e=ee.r/255,te=ee.g/255,Xe=ee.b/255,_e<=.03928?ur=_e/12.92:ur=e.pow((_e+.055)/1.055,2.4),te<=.03928?rr=te/12.92:rr=e.pow((te+.055)/1.055,2.4),Xe<=.03928?Pr=Xe/12.92:Pr=e.pow((Xe+.055)/1.055,2.4),.2126*ur+.7152*rr+.0722*Pr},setAlpha:function(ee){return this._a=Z(ee),this._roundA=n(100*this._a)/100,this},toHsv:function(){var ee=d(this._r,this._g,this._b);return{h:ee.h*360,s:ee.s,v:ee.v,a:this._a}},toHsvString:function(){var ee=d(this._r,this._g,this._b),_e=n(ee.h*360),te=n(ee.s*100),Xe=n(ee.v*100);return this._a==1?"hsv("+_e+", "+te+"%, "+Xe+"%)":"hsva("+_e+", "+te+"%, "+Xe+"%, "+this._roundA+")"},toHsl:function(){var ee=c(this._r,this._g,this._b);return{h:ee.h*360,s:ee.s,l:ee.l,a:this._a}},toHslString:function(){var ee=c(this._r,this._g,this._b),_e=n(ee.h*360),te=n(ee.s*100),Xe=n(ee.l*100);return this._a==1?"hsl("+_e+", "+te+"%, "+Xe+"%)":"hsla("+_e+", "+te+"%, "+Xe+"%, "+this._roundA+")"},toHex:function(ee){return g(this._r,this._g,this._b,ee)},toHexString:function(ee){return"#"+this.toHex(ee)},toHex8:function(ee){return m(this._r,this._g,this._b,this._a,ee)},toHex8String:function(ee){return"#"+this.toHex8(ee)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n($(this._r,255)*100)+"%",g:n($(this._g,255)*100)+"%",b:n($(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n($(this._r,255)*100)+"%, "+n($(this._g,255)*100)+"%, "+n($(this._b,255)*100)+"%)":"rgba("+n($(this._r,255)*100)+"%, "+n($(this._g,255)*100)+"%, "+n($(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ae[g(this._r,this._g,this._b,!0)]||!1},toFilter:function(ee){var _e="#"+b(this._r,this._g,this._b,this._a),te=_e,Xe=this._gradientType?"GradientType = 1, ":"";if(ee){var ur=s(ee);te="#"+b(ur._r,ur._g,ur._b,ur._a)}return"progid:DXImageTransform.Microsoft.gradient("+Xe+"startColorstr="+_e+",endColorstr="+te+")"},toString:function(ee){var _e=!!ee;ee=ee||this._format;var te=!1,Xe=this._a<1&&this._a>=0,ur=!_e&&Xe&&(ee==="hex"||ee==="hex6"||ee==="hex3"||ee==="hex4"||ee==="hex8"||ee==="name");return ur?ee==="name"&&this._a===0?this.toName():this.toRgbString():(ee==="rgb"&&(te=this.toRgbString()),ee==="prgb"&&(te=this.toPercentageRgbString()),(ee==="hex"||ee==="hex6")&&(te=this.toHexString()),ee==="hex3"&&(te=this.toHexString(!0)),ee==="hex4"&&(te=this.toHex8String(!0)),ee==="hex8"&&(te=this.toHex8String()),ee==="name"&&(te=this.toName()),ee==="hsl"&&(te=this.toHslString()),ee==="hsv"&&(te=this.toHsvString()),te||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(ee,_e){var te=ee.apply(null,[this].concat([].slice.call(_e)));return this._r=te._r,this._g=te._g,this._b=te._b,this.setAlpha(te._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(E,arguments)},darken:function(){return this._applyModification(S,arguments)},desaturate:function(){return this._applyModification(A,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(ee,_e){return ee.apply(null,[this].concat([].slice.call(_e)))},analogous:function(){return this._applyCombination(H,arguments)},complement:function(){return this._applyCombination(F,arguments)},monochromatic:function(){return this._applyCombination(X,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(I,arguments)}},s.fromRatio=function(ee,_e){if(typeof ee=="object"){var te={};for(var Xe in ee)ee.hasOwnProperty(Xe)&&(Xe==="a"?te[Xe]=ee[Xe]:te[Xe]=Ye(ee[Xe]));ee=te}return s(ee,_e)};function f(ee){var _e={r:0,g:0,b:0},te=1,Xe=null,ur=null,rr=null,Pr=!1,Or=!1;return typeof ee=="string"&&(ee=$e(ee)),typeof ee=="object"&&(He(ee.r)&&He(ee.g)&&He(ee.b)?(_e=u(ee.r,ee.g,ee.b),Pr=!0,Or=String(ee.r).substr(-1)==="%"?"prgb":"rgb"):He(ee.h)&&He(ee.s)&&He(ee.v)?(Xe=Ye(ee.s),ur=Ye(ee.v),_e=p(ee.h,Xe,ur),Pr=!0,Or="hsv"):He(ee.h)&&He(ee.s)&&He(ee.l)&&(Xe=Ye(ee.s),rr=Ye(ee.l),_e=v(ee.h,Xe,rr),Pr=!0,Or="hsl"),ee.hasOwnProperty("a")&&(te=ee.a)),te=Z(te),{ok:Pr,format:ee.format||Or,r:i(255,o(_e.r,0)),g:i(255,o(_e.g,0)),b:i(255,o(_e.b,0)),a:te}}function u(ee,_e,te){return{r:$(ee,255)*255,g:$(_e,255)*255,b:$(te,255)*255}}function c(ee,_e,te){ee=$(ee,255),_e=$(_e,255),te=$(te,255);var Xe=o(ee,_e,te),ur=i(ee,_e,te),rr,Pr,Or=(Xe+ur)/2;if(Xe==ur)rr=Pr=0;else{var wr=Xe-ur;switch(Pr=Or>.5?wr/(2-Xe-ur):wr/(Xe+ur),Xe){case ee:rr=(_e-te)/wr+(_e1&&(Kr-=1),Kr<1/6?Lr+(Xr-Lr)*6*Kr:Kr<1/2?Xr:Kr<2/3?Lr+(Xr-Lr)*(2/3-Kr)*6:Lr}if(_e===0)Xe=ur=rr=te;else{var Or=te<.5?te*(1+_e):te+_e-te*_e,wr=2*te-Or;Xe=Pr(wr,Or,ee+1/3),ur=Pr(wr,Or,ee),rr=Pr(wr,Or,ee-1/3)}return{r:Xe*255,g:ur*255,b:rr*255}}function d(ee,_e,te){ee=$(ee,255),_e=$(_e,255),te=$(te,255);var Xe=o(ee,_e,te),ur=i(ee,_e,te),rr,Pr,Or=Xe,wr=Xe-ur;if(Pr=Xe===0?0:wr/Xe,Xe==ur)rr=0;else{switch(Xe){case ee:rr=(_e-te)/wr+(_e>1)+720)%360;--_e;)Xe.h=(Xe.h+ur)%360,rr.push(s(Xe));return rr}function X(ee,_e){_e=_e||6;for(var te=s(ee).toHsv(),Xe=te.h,ur=te.s,rr=te.v,Pr=[],Or=1/_e;_e--;)Pr.push(s({h:Xe,s:ur,v:rr})),rr=(rr+Or)%1;return Pr}s.mix=function(ee,_e,te){te=te===0?0:te||50;var Xe=s(ee).toRgb(),ur=s(_e).toRgb(),rr=te/100,Pr={r:(ur.r-Xe.r)*rr+Xe.r,g:(ur.g-Xe.g)*rr+Xe.g,b:(ur.b-Xe.b)*rr+Xe.b,a:(ur.a-Xe.a)*rr+Xe.a};return s(Pr)},s.readability=function(ee,_e){var te=s(ee),Xe=s(_e);return(e.max(te.getLuminance(),Xe.getLuminance())+.05)/(e.min(te.getLuminance(),Xe.getLuminance())+.05)},s.isReadable=function(ee,_e,te){var Xe=s.readability(ee,_e),ur,rr;switch(rr=!1,ur=Ue(te),ur.level+ur.size){case"AAsmall":case"AAAlarge":rr=Xe>=4.5;break;case"AAlarge":rr=Xe>=3;break;case"AAAsmall":rr=Xe>=7;break}return rr},s.mostReadable=function(ee,_e,te){var Xe=null,ur=0,rr,Pr,Or,wr;te=te||{},Pr=te.includeFallbackColors,Or=te.level,wr=te.size;for(var Lr=0;Lr<_e.length;Lr++)rr=s.readability(ee,_e[Lr]),rr>ur&&(ur=rr,Xe=s(_e[Lr]));return s.isReadable(ee,Xe,{level:Or,size:wr})||!Pr?Xe:(te.includeFallbackColors=!1,s.mostReadable(ee,["#fff","#000"],te))};var le=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ae=s.hexNames=J(le);function J(ee){var _e={};for(var te in ee)ee.hasOwnProperty(te)&&(_e[ee[te]]=te);return _e}function Z(ee){return ee=parseFloat(ee),(isNaN(ee)||ee<0||ee>1)&&(ee=1),ee}function $(ee,_e){De(ee)&&(ee="100%");var te=Ne(ee);return ee=i(_e,o(0,parseFloat(ee))),te&&(ee=parseInt(ee*_e,10)/100),e.abs(ee-_e)<1e-6?1:ee%_e/parseFloat(_e)}function oe(ee){return i(1,o(0,ee))}function ce(ee){return parseInt(ee,16)}function De(ee){return typeof ee=="string"&&ee.indexOf(".")!=-1&&parseFloat(ee)===1}function Ne(ee){return typeof ee=="string"&&ee.indexOf("%")!=-1}function Ee(ee){return ee.length==1?"0"+ee:""+ee}function Ye(ee){return ee<=1&&(ee=ee*100+"%"),ee}function we(ee){return e.round(parseFloat(ee)*255).toString(16)}function Qe(ee){return ce(ee)/255}var ze=function(){var ee="[-\\+]?\\d+%?",_e="[-\\+]?\\d*\\.\\d+%?",te="(?:"+_e+")|(?:"+ee+")",Xe="[\\s|\\(]+("+te+")[,|\\s]+("+te+")[,|\\s]+("+te+")\\s*\\)?",ur="[\\s|\\(]+("+te+")[,|\\s]+("+te+")[,|\\s]+("+te+")[,|\\s]+("+te+")\\s*\\)?";return{CSS_UNIT:new RegExp(te),rgb:new RegExp("rgb"+Xe),rgba:new RegExp("rgba"+ur),hsl:new RegExp("hsl"+Xe),hsla:new RegExp("hsla"+ur),hsv:new RegExp("hsv"+Xe),hsva:new RegExp("hsva"+ur),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 He(ee){return!!ze.CSS_UNIT.exec(ee)}function $e(ee){ee=ee.replace(r,"").replace(t,"").toLowerCase();var _e=!1;if(le[ee])ee=le[ee],_e=!0;else if(ee=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var te;return(te=ze.rgb.exec(ee))?{r:te[1],g:te[2],b:te[3]}:(te=ze.rgba.exec(ee))?{r:te[1],g:te[2],b:te[3],a:te[4]}:(te=ze.hsl.exec(ee))?{h:te[1],s:te[2],l:te[3]}:(te=ze.hsla.exec(ee))?{h:te[1],s:te[2],l:te[3],a:te[4]}:(te=ze.hsv.exec(ee))?{h:te[1],s:te[2],v:te[3]}:(te=ze.hsva.exec(ee))?{h:te[1],s:te[2],v:te[3],a:te[4]}:(te=ze.hex8.exec(ee))?{r:ce(te[1]),g:ce(te[2]),b:ce(te[3]),a:Qe(te[4]),format:_e?"name":"hex8"}:(te=ze.hex6.exec(ee))?{r:ce(te[1]),g:ce(te[2]),b:ce(te[3]),format:_e?"name":"hex"}:(te=ze.hex4.exec(ee))?{r:ce(te[1]+""+te[1]),g:ce(te[2]+""+te[2]),b:ce(te[3]+""+te[3]),a:Qe(te[4]+""+te[4]),format:_e?"name":"hex8"}:(te=ze.hex3.exec(ee))?{r:ce(te[1]+""+te[1]),g:ce(te[2]+""+te[2]),b:ce(te[3]+""+te[3]),format:_e?"name":"hex"}:!1}function Ue(ee){var _e,te;return ee=ee||{level:"AA",size:"small"},_e=(ee.level||"AA").toUpperCase(),te=(ee.size||"small").toLowerCase(),_e!=="AA"&&_e!=="AAA"&&(_e="AA"),te!=="small"&&te!=="large"&&(te="small"),{level:_e,size:te}}typeof Fg!="undefined"&&Fg.exports?Fg.exports=s:window.tinycolor=s})(Math)});var Bn=P(Np=>{"use strict";var jM=Mc(),qp=Array.isArray;function oie(e,r){var t,a;for(t=0;t{"use strict";XM.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 Op=P((cEe,ZM)=>{"use strict";ZM.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var Zh=P((vEe,QM)=>{"use strict";var JM=Op(),$M=Bi(),T5=$M({editType:"none"});T5.family.dflt=JM.HOVERFONT;T5.size.dflt=JM.HOVERFONTSIZE;QM.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:T5,grouptitlefont:$M({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 Pg=P((hEe,KM)=>{"use strict";var lie=Bi(),Rg=Zh().hoverlabel,qg=Bn().extendFlat;KM.exports={hoverlabel:{bgcolor:qg({},Rg.bgcolor,{arrayOk:!0}),bordercolor:qg({},Rg.bordercolor,{arrayOk:!0}),font:lie({arrayOk:!0,editType:"none"}),align:qg({},Rg.align,{arrayOk:!0}),namelength:qg({},Rg.namelength,{arrayOk:!0}),editType:"none"}}});var ks=P((dEe,eS)=>{"use strict";var sie=Bi(),fie=Pg();eS.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:sie({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:fie.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var h0=P((pEe,aS)=>{"use strict";var uie=Es(),Ng={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)"]]},rS=Ng.RdBu;function cie(e,r){if(r||(r=rS),!e)return r;function t(){try{e=Ng[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),tS(e)?e:r}function tS(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";d0.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];d0.defaultLine="#444";d0.lightLine="#eee";d0.background="#fff";d0.borderLine="#BEC8D9";d0.lightFraction=100*10/11});var ha=P((yEe,nS)=>{"use strict";var Yo=Es(),hie=ga(),die=Vo().isTypedArray,yi=nS.exports={},Og=wf();yi.defaults=Og.defaults;var pie=yi.defaultLine=Og.defaultLine;yi.lightLine=Og.lightLine;var S5=yi.background=Og.background;yi.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};yi.rgb=function(e){return yi.tinyRGB(Yo(e))};yi.opacity=function(e){return e?Yo(e).getAlpha():0};yi.addOpacity=function(e,r){var t=Yo(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};yi.combine=function(e,r){var t=Yo(e).toRgb();if(t.a===1)return Yo(e).toRgbString();var a=Yo(r||S5).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return Yo(i).toRgbString()};yi.interpolate=function(e,r,t){var a=Yo(e).toRgb(),n=Yo(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return Yo(i).toRgbString()};yi.contrast=function(e,r,t){var a=Yo(e);a.getAlpha()!==1&&(a=Yo(yi.combine(e,S5)));var n=a.isDark()?r?a.lighten(r):S5:t?a.darken(t):pie;return n.toString()};yi.stroke=function(e,r){var t=Yo(r);e.style({stroke:yi.tinyRGB(t),"stroke-opacity":t.getAlpha()})};yi.fill=function(e,r){var t=Yo(r);e.style({fill:yi.tinyRGB(t),"fill-opacity":t.getAlpha()})};yi.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var o=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+o+", "+a[3]+")":"rgb("+o+")"}});var Jh=P((gEe,iS)=>{"use strict";iS.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var $h=P(oS=>{"use strict";oS.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 uS=P(Wo=>{"use strict";var E5=ga(),lS=Es(),sS=Bn().extendFlat,mie=ks(),yie=h0(),gie=ha(),bie=Jh().DESELECTDIM,Qh=Cg(),fS=$h().counter,xie=Xh().modHalf,Af=Vo().isArrayOrTypedArray,Sc=Vo().isTypedArraySpec,Ec=Vo().decodeTypedArraySpec;Wo.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Af(e)?e:Sc(e)?Ec(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;aa.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}Sc(e)&&(e=Ec(e)),e%1||!E5(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Sc(e)&&(e=Ec(e)),lS(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return lS(n).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(a)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(yie.get(e,t))}},angle:{coerceFunction:function(e,r,t){Sc(e)&&(e=Ec(e)),e==="auto"?r.set("auto"):E5(e)?r.set(xie(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||fS(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:!!fS(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 cS={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:{}}},vS={};function hS(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),hS(a,r[t]))}}hS(cS,vS);dS.exports={configAttributes:cS,dfltConfig:vS}});var C5=P((wEe,pS)=>{"use strict";var k5=da(),_ie=ga(),Ip=[];pS.exports=function(e,r){if(Ip.indexOf(e)!==-1)return;Ip.push(e);var t=1e3;_ie(r)?t=r:r==="long"&&(t=3e3);var a=k5.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(Ip);function i(o){o.duration(700).style("opacity",0).each("end",function(l){var s=Ip.indexOf(l);s!==-1&&Ip.splice(s,1),k5.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var l=k5.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(i)});for(var s=l.append("p"),f=o.split(//g),u=0;u{"use strict";var Kh=p0().dfltConfig,L5=C5(),D5=mS.exports={};D5.log=function(){var e;if(Kh.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};D5.warn=function(){var e;if(Kh.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};D5.error=function(){var e;if(Kh.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Bg=P((TEe,yS)=>{"use strict";yS.exports=function(){}});var F5=P((MEe,gS)=>{"use strict";gS.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{bS.exports=wie;function wie(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var wS=P((EEe,_S)=>{_S.exports=Aie;function Aie(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var TS=P((kEe,AS)=>{AS.exports=Tie;function Tie(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var R5=P((CEe,MS)=>{MS.exports=Mie;function Mie(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var ES=P((LEe,SS)=>{SS.exports=Sie;function Sie(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var CS=P((DEe,kS)=>{kS.exports=Eie;function Eie(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],f=r[7],u=r[8],c=r[9],v=r[10],d=r[11],p=r[12],g=r[13],m=r[14],b=r[15],A=t*l-a*o,_=t*s-n*o,x=t*f-i*o,T=a*s-n*l,E=a*f-i*l,S=n*f-i*s,k=u*g-c*p,F=u*m-v*p,O=u*b-d*p,I=c*m-v*g,R=c*b-d*g,H=v*b-d*m,X=A*H-_*R+x*I+T*O-E*F+S*k;return X?(X=1/X,e[0]=(l*H-s*R+f*I)*X,e[1]=(n*R-a*H-i*I)*X,e[2]=(g*S-m*E+b*T)*X,e[3]=(v*E-c*S-d*T)*X,e[4]=(s*O-o*H-f*F)*X,e[5]=(t*H-n*O+i*F)*X,e[6]=(m*x-p*S-b*_)*X,e[7]=(u*S-v*x+d*_)*X,e[8]=(o*R-l*O+f*k)*X,e[9]=(a*O-t*R-i*k)*X,e[10]=(p*E-g*x+b*A)*X,e[11]=(c*x-u*E-d*A)*X,e[12]=(l*F-o*I-s*k)*X,e[13]=(t*I-a*F+n*k)*X,e[14]=(g*_-p*T-m*A)*X,e[15]=(u*T-c*_+v*A)*X,e):null}});var DS=P((FEe,LS)=>{LS.exports=kie;function kie(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],f=r[7],u=r[8],c=r[9],v=r[10],d=r[11],p=r[12],g=r[13],m=r[14],b=r[15];return e[0]=l*(v*b-d*m)-c*(s*b-f*m)+g*(s*d-f*v),e[1]=-(a*(v*b-d*m)-c*(n*b-i*m)+g*(n*d-i*v)),e[2]=a*(s*b-f*m)-l*(n*b-i*m)+g*(n*f-i*s),e[3]=-(a*(s*d-f*v)-l*(n*d-i*v)+c*(n*f-i*s)),e[4]=-(o*(v*b-d*m)-u*(s*b-f*m)+p*(s*d-f*v)),e[5]=t*(v*b-d*m)-u*(n*b-i*m)+p*(n*d-i*v),e[6]=-(t*(s*b-f*m)-o*(n*b-i*m)+p*(n*f-i*s)),e[7]=t*(s*d-f*v)-o*(n*d-i*v)+u*(n*f-i*s),e[8]=o*(c*b-d*g)-u*(l*b-f*g)+p*(l*d-f*c),e[9]=-(t*(c*b-d*g)-u*(a*b-i*g)+p*(a*d-i*c)),e[10]=t*(l*b-f*g)-o*(a*b-i*g)+p*(a*f-i*l),e[11]=-(t*(l*d-f*c)-o*(a*d-i*c)+u*(a*f-i*l)),e[12]=-(o*(c*m-v*g)-u*(l*m-s*g)+p*(l*v-s*c)),e[13]=t*(c*m-v*g)-u*(a*m-n*g)+p*(a*v-n*c),e[14]=-(t*(l*m-s*g)-o*(a*m-n*g)+p*(a*s-n*l)),e[15]=t*(l*v-s*c)-o*(a*v-n*c)+u*(a*s-n*l),e}});var RS=P((REe,FS)=>{FS.exports=Cie;function Cie(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],f=e[8],u=e[9],c=e[10],v=e[11],d=e[12],p=e[13],g=e[14],m=e[15],b=r*o-t*i,A=r*l-a*i,_=r*s-n*i,x=t*l-a*o,T=t*s-n*o,E=a*s-n*l,S=f*p-u*d,k=f*g-c*d,F=f*m-v*d,O=u*g-c*p,I=u*m-v*p,R=c*m-v*g;return b*R-A*I+_*O+x*F-T*k+E*S}});var PS=P((qEe,qS)=>{qS.exports=Lie;function Lie(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],f=r[6],u=r[7],c=r[8],v=r[9],d=r[10],p=r[11],g=r[12],m=r[13],b=r[14],A=r[15],_=t[0],x=t[1],T=t[2],E=t[3];return e[0]=_*a+x*l+T*c+E*g,e[1]=_*n+x*s+T*v+E*m,e[2]=_*i+x*f+T*d+E*b,e[3]=_*o+x*u+T*p+E*A,_=t[4],x=t[5],T=t[6],E=t[7],e[4]=_*a+x*l+T*c+E*g,e[5]=_*n+x*s+T*v+E*m,e[6]=_*i+x*f+T*d+E*b,e[7]=_*o+x*u+T*p+E*A,_=t[8],x=t[9],T=t[10],E=t[11],e[8]=_*a+x*l+T*c+E*g,e[9]=_*n+x*s+T*v+E*m,e[10]=_*i+x*f+T*d+E*b,e[11]=_*o+x*u+T*p+E*A,_=t[12],x=t[13],T=t[14],E=t[15],e[12]=_*a+x*l+T*c+E*g,e[13]=_*n+x*s+T*v+E*m,e[14]=_*i+x*f+T*d+E*b,e[15]=_*o+x*u+T*p+E*A,e}});var OS=P((PEe,NS)=>{NS.exports=Die;function Die(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,f,u,c,v,d,p,g,m,b;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],f=r[3],u=r[4],c=r[5],v=r[6],d=r[7],p=r[8],g=r[9],m=r[10],b=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=f,e[4]=u,e[5]=c,e[6]=v,e[7]=d,e[8]=p,e[9]=g,e[10]=m,e[11]=b,e[12]=o*a+u*n+p*i+r[12],e[13]=l*a+c*n+g*i+r[13],e[14]=s*a+v*n+m*i+r[14],e[15]=f*a+d*n+b*i+r[15]),e}});var BS=P((NEe,IS)=>{IS.exports=Fie;function Fie(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var GS=P((OEe,zS)=>{zS.exports=Rie;function Rie(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,f,u,c,v,d,p,g,m,b,A,_,x,T,E,S,k,F,O,I,R,H,X,le;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),f=Math.cos(t),u=1-f,c=r[0],v=r[1],d=r[2],p=r[3],g=r[4],m=r[5],b=r[6],A=r[7],_=r[8],x=r[9],T=r[10],E=r[11],S=n*n*u+f,k=i*n*u+o*s,F=o*n*u-i*s,O=n*i*u-o*s,I=i*i*u+f,R=o*i*u+n*s,H=n*o*u+i*s,X=i*o*u-n*s,le=o*o*u+f,e[0]=c*S+g*k+_*F,e[1]=v*S+m*k+x*F,e[2]=d*S+b*k+T*F,e[3]=p*S+A*k+E*F,e[4]=c*O+g*I+_*R,e[5]=v*O+m*I+x*R,e[6]=d*O+b*I+T*R,e[7]=p*O+A*I+E*R,e[8]=c*H+g*X+_*le,e[9]=v*H+m*X+x*le,e[10]=d*H+b*X+T*le,e[11]=p*H+A*X+E*le,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var HS=P((IEe,US)=>{US.exports=qie;function qie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],f=r[8],u=r[9],c=r[10],v=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+f*a,e[5]=o*n+u*a,e[6]=l*n+c*a,e[7]=s*n+v*a,e[8]=f*n-i*a,e[9]=u*n-o*a,e[10]=c*n-l*a,e[11]=v*n-s*a,e}});var YS=P((BEe,VS)=>{VS.exports=Pie;function Pie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],f=r[8],u=r[9],c=r[10],v=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-f*a,e[1]=o*n-u*a,e[2]=l*n-c*a,e[3]=s*n-v*a,e[8]=i*a+f*n,e[9]=o*a+u*n,e[10]=l*a+c*n,e[11]=s*a+v*n,e}});var jS=P((zEe,WS)=>{WS.exports=Nie;function Nie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],f=r[4],u=r[5],c=r[6],v=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+f*a,e[1]=o*n+u*a,e[2]=l*n+c*a,e[3]=s*n+v*a,e[4]=f*n-i*a,e[5]=u*n-o*a,e[6]=c*n-l*a,e[7]=v*n-s*a,e}});var ZS=P((GEe,XS)=>{XS.exports=Oie;function Oie(e,r,t){var a,n,i,o=t[0],l=t[1],s=t[2],f=Math.sqrt(o*o+l*l+s*s);return Math.abs(f)<1e-6?null:(f=1/f,o*=f,l*=f,s*=f,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+s*a,e[2]=s*o*i-l*a,e[3]=0,e[4]=o*l*i-s*a,e[5]=l*l*i+n,e[6]=s*l*i+o*a,e[7]=0,e[8]=o*s*i+l*a,e[9]=l*s*i-o*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var $S=P((UEe,JS)=>{JS.exports=Iie;function Iie(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,f=i+i,u=a*l,c=a*s,v=a*f,d=n*s,p=n*f,g=i*f,m=o*l,b=o*s,A=o*f;return e[0]=1-(d+g),e[1]=c+A,e[2]=v-b,e[3]=0,e[4]=c-A,e[5]=1-(u+g),e[6]=p+m,e[7]=0,e[8]=v+b,e[9]=p-m,e[10]=1-(u+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var KS=P((HEe,QS)=>{QS.exports=Bie;function Bie(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var rE=P((VEe,eE)=>{eE.exports=zie;function zie(e,r){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var aE=P((YEe,tE)=>{tE.exports=Gie;function Gie(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var iE=P((WEe,nE)=>{nE.exports=Uie;function Uie(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var lE=P((jEe,oE)=>{oE.exports=Hie;function Hie(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var q5=P((XEe,sE)=>{sE.exports=Vie;function Vie(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,f=t*o,u=a*o,c=a*l,v=n*o,d=n*l,p=n*s,g=i*o,m=i*l,b=i*s;return e[0]=1-c-p,e[1]=u+b,e[2]=v-m,e[3]=0,e[4]=u-b,e[5]=1-f-p,e[6]=d+g,e[7]=0,e[8]=v+m,e[9]=d-g,e[10]=1-f-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var uE=P((ZEe,fE)=>{fE.exports=Yie;function Yie(e,r,t,a,n,i,o){var l=1/(t-r),s=1/(n-a),f=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*s,e[10]=(o+i)*f,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*f,e[15]=0,e}});var vE=P((JEe,cE)=>{cE.exports=Wie;function Wie(e,r,t,a,n){var i=1/Math.tan(r/2),o=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var dE=P(($Ee,hE)=>{hE.exports=jie;function jie(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),f=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=f,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(n-i)*f*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var mE=P((QEe,pE)=>{pE.exports=Xie;function Xie(e,r,t,a,n,i,o){var l=1/(r-t),s=1/(a-n),f=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*f,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*s,e[14]=(o+i)*f,e[15]=1,e}});var gE=P((KEe,yE)=>{var Zie=R5();yE.exports=Jie;function Jie(e,r,t,a){var n,i,o,l,s,f,u,c,v,d,p=r[0],g=r[1],m=r[2],b=a[0],A=a[1],_=a[2],x=t[0],T=t[1],E=t[2];return Math.abs(p-x)<1e-6&&Math.abs(g-T)<1e-6&&Math.abs(m-E)<1e-6?Zie(e):(u=p-x,c=g-T,v=m-E,d=1/Math.sqrt(u*u+c*c+v*v),u*=d,c*=d,v*=d,n=A*v-_*c,i=_*u-b*v,o=b*c-A*u,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-v*i,s=v*n-u*o,f=u*i-c*n,d=Math.sqrt(l*l+s*s+f*f),d?(d=1/d,l*=d,s*=d,f*=d):(l=0,s=0,f=0),e[0]=n,e[1]=l,e[2]=u,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=f,e[10]=v,e[11]=0,e[12]=-(n*p+i*g+o*m),e[13]=-(l*p+s*g+f*m),e[14]=-(u*p+c*g+v*m),e[15]=1,e)}});var xE=P((eke,bE)=>{bE.exports=$ie;function $ie(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var P5=P((rke,_E)=>{_E.exports={create:xS(),clone:wS(),copy:TS(),identity:R5(),transpose:ES(),invert:CS(),adjoint:DS(),determinant:RS(),multiply:PS(),translate:OS(),scale:BS(),rotate:GS(),rotateX:HS(),rotateY:YS(),rotateZ:jS(),fromRotation:ZS(),fromRotationTranslation:$S(),fromScaling:KS(),fromTranslation:rE(),fromXRotation:aE(),fromYRotation:iE(),fromZRotation:lE(),fromQuat:q5(),frustum:uE(),perspective:vE(),perspectiveFromFieldOfView:dE(),ortho:mE(),lookAt:gE(),str:xE()}});var zg=P(zn=>{"use strict";var Qie=P5();zn.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var Kie=da(),wE=m0(),eoe=zg(),roe=P5();function toe(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function aoe(e){var r=Kie.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function AE(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function noe(e,r){TE("global",e,r)}function TE(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):wE.warn("addStyleRule failed"):wE.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function ioe(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&AE(t)}function ooe(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(f){f.getAttribute(s)||(f.addEventListener("mouseenter",function(){var u=this.querySelector(t);u&&(u.style[o[0]]=o[1])}),f.addEventListener("mouseleave",function(){var u=this.querySelector(t);u&&(r&&this.matches(r)?u.style[o[0]]=o[1]:u.style[l[0]]=l[1])}),f.setAttribute(s,!0))})}function loe(e){var r=SE(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=ME(a);if(n){var i=eoe.convertCssMatrix(n);t=roe.multiply(t,t,i)}}),t}function ME(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function SE(e){for(var r=[];soe(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function soe(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function foe(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}EE.exports={getGraphDiv:toe,isPlotDiv:aoe,removeElement:AE,addStyleRule:noe,addRelatedStyleRule:TE,deleteRelatedStyleRule:ioe,setStyleOnHover:ooe,getFullTransformMatrix:loe,getElementTransformMatrix:ME,getElementAndAncestors:SE,equalDomRects:foe}});var zp=P((nke,kE)=>{"use strict";kE.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Cs=P((ike,PE)=>{"use strict";var LE=Bn().extendFlat,uoe=Mc(),DE={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},FE={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},coe=DE.flags.slice().concat(["fullReplot"]),voe=FE.flags.slice().concat("layoutReplot");PE.exports={traces:DE,layout:FE,traceFlags:function(){return CE(coe)},layoutFlags:function(){return CE(voe)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";N5.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};N5.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var O5=P((lke,NE)=>{"use strict";NE.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var ed=P(Gg=>{"use strict";var OE=O5(),ske=OE.FORMAT_LINK,fke=OE.DATE_FORMAT_LINK;function I5(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var a=[],n=0;n{"use strict";function Cc(e,r){return r?r.d2l(e):e}function IE(e,r){return r?r.l2d(e):e}function hoe(e){return e.x0}function doe(e){return e.x1}function poe(e){return e.y0}function moe(e){return e.y1}function BE(e){return e.x0shift||0}function zE(e){return e.x1shift||0}function GE(e){return e.y0shift||0}function UE(e){return e.y1shift||0}function Ug(e,r){return Cc(e.x1,r)+zE(e)-Cc(e.x0,r)-BE(e)}function Hg(e,r,t){return Cc(e.y1,t)+UE(e)-Cc(e.y0,t)-GE(e)}function yoe(e,r){return Math.abs(Ug(e,r))}function goe(e,r,t){return Math.abs(Hg(e,r,t))}function boe(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Ug(e,r),2)+Math.pow(Hg(e,r,t),2))}function xoe(e,r){return IE((Cc(e.x1,r)+zE(e)+Cc(e.x0,r)+BE(e))/2,r)}function _oe(e,r,t){return IE((Cc(e.y1,t)+UE(e)+Cc(e.y0,t)+GE(e))/2,t)}function woe(e,r,t){return e.type!=="line"?void 0:Hg(e,r,t)/Ug(e,r)}HE.exports={x0:hoe,x1:doe,y0:poe,y1:moe,slope:woe,dx:Ug,dy:Hg,width:yoe,height:goe,length:boe,xcenter:xoe,ycenter:_oe}});var WE=P((vke,YE)=>{"use strict";var Aoe=Cs().overrideAll,y0=ks(),VE=Bi(),Toe=kc().dash,Lc=Bn().extendFlat,Moe=ed().shapeTexttemplateAttrs,Soe=Vg();YE.exports=Aoe({newshape:{visible:Lc({},y0.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Lc({},y0.legend,{}),legendgroup:Lc({},y0.legendgroup,{}),legendgrouptitle:{text:Lc({},y0.legendgrouptitle.text,{}),font:VE({})},legendrank:Lc({},y0.legendrank,{}),legendwidth:Lc({},y0.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Lc({},Toe,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Lc({},y0.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:Moe({newshape:!0},{keys:Object.keys(Soe)}),font:VE({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var XE=P((hke,jE)=>{"use strict";var Eoe=kc().dash,koe=Bn().extendFlat;jE.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:koe({},Eoe,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Yg=P((dke,ZE)=>{"use strict";ZE.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var rd=P((pke,KE)=>{"use strict";var B5=Bi(),Coe=zp(),Wg=wf(),JE=WE(),$E=XE(),Loe=Yg(),QE=Bn().extendFlat,jg=B5({editType:"calc"});jg.family.dflt='"Open Sans", verdana, arial, sans-serif';jg.size.dflt=12;jg.color.dflt=Wg.defaultLine;KE.exports={font:jg,title:{text:{valType:"string",editType:"layoutstyle"},font:B5({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:B5({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:QE(Loe({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Wg.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Wg.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Wg.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:JE.newshape,activeshape:JE.activeshape,newselection:$E.newselection,activeselection:$E.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:QE({},Coe.transition,{editType:"none"})}});var ek=Yh(()=>{});var Doe={};var rk=Yh(()=>{ek()});var It=P(ia=>{"use strict";var td=m0(),tk=Bg(),ak=F5(),Foe=Mc(),Roe=Bp().addStyleRule,nk=Bn(),qoe=ks(),Poe=rd(),Noe=nk.extendFlat,z5=nk.extendDeepAll;ia.modules={};ia.allCategories={};ia.allTypes=[];ia.subplotsRegistry={};ia.componentsRegistry={};ia.layoutArrayContainers=[];ia.layoutArrayRegexes=[];ia.traceLayoutAttributes={};ia.localeRegistry={};ia.apiMethodRegistry={};ia.collectableSubplotTypes=null;ia.register=function(r){if(ia.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 Uoe=Wh().timeFormat,pk=ga(),G5=m0(),Fc=Xh().mod,id=Jn(),Bl=id.BADNUM,jo=id.ONEDAY,Gp=id.ONEHOUR,Dc=id.ONEMIN,nd=id.ONESEC,Up=id.EPOCHJD,wu=It(),fk=Wh().utcFormat,Hoe=/^\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,Voe=/^\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,uk=new Date().getFullYear()-70;function Au(e){return e&&wu.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Gn.dateTick0=function(e,r){var t=Yoe(e,!!r);if(r<2)return t;var a=Gn.dateTime2ms(t,e);return a+=jo*(r-1),Gn.ms2DateTime(a,0,e)};function Yoe(e,r){return Au(e)?r?wu.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:wu.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Gn.dfltRange=function(e){return Au(e)?wu.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Gn.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Zg,Jg;Gn.dateTime2ms=function(e,r){if(Gn.isJSDate(e)){var t=e.getTimezoneOffset()*Dc,a=(e.getUTCMinutes()-e.getMinutes())*Dc+(e.getUTCSeconds()-e.getSeconds())*nd+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Dc;t=t-n/2+Fc(a-t+n/2,n)}return e=Number(e)-t,e>=Zg&&e<=Jg?e:Bl}if(typeof e!="string"&&typeof e!="number")return Bl;e=String(e);var i=Au(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.substr(1),r="");var l=i&&r.substr(0,7)==="chinese",s=e.match(l?Voe:Hoe);if(!s)return Bl;var f=s[1],u=s[3]||"1",c=Number(s[5]||1),v=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(f.length===2)return Bl;f=Number(f);var g;try{var m=wu.getComponentMethod("calendars","getCal")(r);if(l){var b=u.charAt(u.length-1)==="i";u=parseInt(u,10),g=m.newDate(f,m.toMonthIndex(f,u,b),c)}else g=m.newDate(f,Number(u),c)}catch(_){return Bl}return g?(g.toJD()-Up)*jo+v*Gp+d*Dc+p*nd:Bl}f.length===2?f=(Number(f)+2e3-uk)%100+uk:f=Number(f),u-=1;var A=new Date(Date.UTC(2e3,u,c,v,d));return A.setUTCFullYear(f),A.getUTCMonth()!==u||A.getUTCDate()!==c?Bl:A.getTime()+p*nd};Zg=Gn.MIN_MS=Gn.dateTime2ms("-9999");Jg=Gn.MAX_MS=Gn.dateTime2ms("9999-12-31 23:59:59.9999");Gn.isDateTime=function(e,r){return Gn.dateTime2ms(e,r)!==Bl};function ad(e,r){return String(e+Math.pow(10,r)).substr(1)}var Xg=90*jo,ck=3*Gp,vk=5*Dc;Gn.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Zg&&e<=Jg))return Bl;r||(r=0);var a=Math.floor(Fc(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,f,u;if(Au(t)){var c=Math.floor(n/jo)+Up,v=Math.floor(Fc(e,jo));try{i=wu.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=fk("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=r=Zg+jo&&e<=Jg-jo))return Bl;var r=Math.floor(Fc(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=Uoe("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return mk(a,n,i,o,l)};function mk(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+ad(r,2)+":"+ad(t,2),(a||n)&&(e+=":"+ad(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+ad(n,i)}return e}Gn.cleanDate=function(e,r,t){if(e===Bl)return r;if(Gn.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Au(t))return G5.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Gn.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Gn.isDateTime(e,t))return G5.error("unrecognized date",e),r;return e};var Woe=/%\d?f/g,joe=/%h/g,Xoe={1:"1",2:"1",3:"2",4:"2"};function hk(e,r,t,a){e=e.replace(Woe,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return l});var n=new Date(Math.floor(r+.05));if(e=e.replace(joe,function(){return Xoe[t("%q")(n)]}),Au(a))try{e=wu.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var Zoe=[59,59.9,59.99,59.999,59.9999];function Joe(e,r){var t=Fc(e+.05,jo),a=ad(Math.floor(t/Gp),2)+":"+ad(Fc(Math.floor(t/Dc),60),2);if(r!=="M"){pk(r)||(r=0);var n=Math.min(Fc(e/nd,60),Zoe[r]),i=(100+n).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Gn.formatDate=function(e,r,t,a,n,i){if(n=Au(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` -`+i.year;else return Joe(e,t)+` -`+hk(i.dayMonthYear,e,a,n);return hk(r,e,a,n)};var dk=3*jo;Gn.incrementMonth=function(e,r,t){t=Au(t)&&t;var a=Fc(e,jo);if(e=Math.round(e-a),t)try{var n=Math.round(e/jo)+Up,i=wu.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-Up)*jo+a}catch(s){G5.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+dk);return l.setUTCMonth(l.getUTCMonth()+r)+a-dk};Gn.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=Au(r)&&wu.getComponentMethod("calendars","getCal")(r),f=0;f{"use strict";gk.exports=function(r){return r}});var H5=P(Tu=>{"use strict";var $oe=ga(),Qoe=m0(),Koe=$g(),ele=Jn().BADNUM,U5=1e-9;Tu.findBin=function(e,r,t){if($oe(r.start))return t?Math.ceil((e-r.start)/r.size-U5)-1:Math.floor((e-r.start)/r.size+U5);var a=0,n=r.length,i=0,o=n>1?(r[n-1]-r[0])/(n-1):1,l,s;for(o>=0?s=t?rle:tle:s=t?nle:ale,e+=o*U5*(t?-1:1)*(o>=0?1:-1);a90&&Qoe.log("Long binary search..."),a-1};function rle(e,r){return er}function nle(e,r){return e>=r}Tu.sorterAsc=function(e,r){return e-r};Tu.sorterDes=function(e,r){return r-e};Tu.distinctVals=function(e){var r=e.slice();r.sort(Tu.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===ele;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],f=s-o;o===void 0?(i.push(s),o=s):f>n&&(a=Math.min(a,f),i.push(s),o=s)}return{vals:i,minDiff:a}};Tu.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,o=0,l=t?0:1,s=t?1:0,f=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};Tu.findIndexOfMin=function(e,r){r=r||Koe;for(var t=1/0,a,n=0;n{"use strict";bk.exports=function(r){return Object.keys(r).sort()}});var xk=P(Un=>{"use strict";var Hp=ga(),ile=Vo().isArrayOrTypedArray;Un.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),Hp(r)||(r=!1),ile(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 Mk=P((Mke,Tk)=>{"use strict";var _k=Xh(),V5=_k.mod,ole=_k.modHalf,Vp=Math.PI,Rc=2*Vp;function lle(e){return e/180*Vp}function sle(e){return e/Vp*180}function Y5(e){return Math.abs(e[1]-e[0])>Rc-1e-14}function wk(e,r){return ole(r-e,Rc)}function fle(e,r){return Math.abs(wk(e,r))}function Ak(e,r){if(Y5(r))return!0;var t,a;r[0]a&&(a+=Rc);var n=V5(e,Rc),i=n+Rc;return n>=t&&n<=a||i>=t&&i<=a}function ule(e,r,t,a){if(!Ak(r,a))return!1;var n,i;return t[0]=n&&e<=i}function W5(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=Y5([t,a]),s,f,u,c,v;l?(s=0,f=Vp,u=Rc):t{"use strict";g0.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};g0.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};g0.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};g0.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};g0.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};g0.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var Ck=P(b0=>{"use strict";var j5=Xh().mod;b0.segmentsIntersect=kk;function kk(e,r,t,a,n,i,o,l){var s=t-e,f=n-e,u=o-n,c=a-r,v=i-r,d=l-i,p=s*d-u*c;if(p===0)return null;var g=(f*d-u*v)/p,m=(f*c-s*v)/p;return m<0||m>1||g<0||g>1?null:{x:e+s*g,y:r+c*g}}b0.segmentDistance=function(r,t,a,n,i,o,l,s){if(kk(r,t,a,n,i,o,l,s))return 0;var f=a-r,u=n-t,c=l-i,v=s-o,d=f*f+u*u,p=c*c+v*v,g=Math.min(Kg(f,u,d,i-r,o-t),Kg(f,u,d,l-r,s-t),Kg(c,v,p,r-i,t-o),Kg(c,v,p,a-i,n-o));return Math.sqrt(g)};function Kg(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var o=a-e,l=n-r;return o*o+l*l}else{var s=a*r-n*e;return s*s/t}}var e2,X5,Ek;b0.getTextLocation=function(r,t,a,n){if((r!==X5||n!==Ek)&&(e2={},X5=r,Ek=n),e2[a])return e2[a];var i=r.getPointAtLength(j5(a-n/2,t)),o=r.getPointAtLength(j5(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(j5(a,t)),f=(s.x*4+i.x+o.x)/6,u=(s.y*4+i.y+o.y)/6,c={x:f,y:u,theta:l};return e2[a]=c,c};b0.clearLocationCache=function(){X5=null};b0.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,s=0,f=r.getTotalLength(),u=f,c,v;function d(g){var m=r.getPointAtLength(g);g===0?c=m:g===f&&(v=m);var b=m.xi?m.x-i:0,A=m.yl?m.y-l:0;return Math.sqrt(b*b+A*A)}for(var p=d(s);p;){if(s+=p+a,s>u)return;p=d(s)}for(p=d(u);p;){if(u-=p+a,s>u)return;p=d(u)}return{min:s,max:u,len:u-s,total:f,isClosed:s===0&&u===f&&Math.abs(c.x-v.x)<.1&&Math.abs(c.y-v.y)<.1}};b0.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),o=n.tolerance||.001,l=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,f=0,u=0,c=i,v,d,p;f0?c=v:u=v,f++}return d}});var r2=P(Yp=>{"use strict";var Mu={};Yp.throttle=function(r,t,a){var n=Mu[r],i=Date.now();if(!n){for(var o in Mu)Mu[o].tsn.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};Yp.done=function(e){var r=Mu[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};Yp.clear=function(e){if(e)Lk(Mu[e]),delete Mu[e];else for(var r in Mu)Yp.clear(r)};function Lk(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Fk=P((Cke,Dk)=>{"use strict";Dk.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var Rk=P((Lke,t2)=>{"use strict";t2.exports=Z5;t2.exports.isMobile=Z5;t2.exports.default=Z5;var dle=/(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,ple=/CrOS/,mle=/android|ipad|playbook|silk/i;function Z5(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=dle.test(r)&&!ple.test(r)||!!e.tablet&&mle.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var Pk=P((Dke,qk)=>{"use strict";var yle=ga(),gle=Rk();qk.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=ble(),typeof t!="string")return!0;var a=gle({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;l--){var s=n[l];if(s.substr(0,8)==="Version/"){var f=s.substr(8).split(".")[0];if(yle(f)&&(f=+f),f>=13)return!0}}}return a};function ble(){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 Ok=P((Fke,Nk)=>{"use strict";var xle=da();Nk.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][i]=xle.select(this)}),n}});var Bk=P((Rke,Ik)=>{"use strict";var _le=It();Ik.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[a]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=_le.localeRegistry}var f=a.split("-")[0];if(f===a)break;a=f}return t}});var Gk=P((qke,zk)=>{"use strict";zk.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";Uk.exports=function(r){for(var t=Tle(r)?Ale:wle,a=[],n=0;n{"use strict";Vk.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var jk=P((Oke,Wk)=>{"use strict";var Mle=ga(),Sle=Jn().BADNUM,Ele=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Wk.exports=function(r){return typeof r=="string"&&(r=r.replace(Ele,"")),Mle(r)?Number(r):Sle}});var Ur=P((Ike,oC)=>{"use strict";var Wp=da(),kle=Wh().utcFormat,Cle=g5().format,Kk=ga(),eC=Jn(),rC=eC.FP_SAFE,Lle=-rC,Xk=eC.BADNUM,je=oC.exports={};je.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var Zk={};je.warnBadFormat=function(e){var r=String(e);Zk[r]||(Zk[r]=1,je.warn('encountered bad format: "'+r+'"'))};je.noFormat=function(e){return String(e)};je.numberFormat=function(e){var r;try{r=Cle(je.adjustFormat(e))}catch(t){return je.warnBadFormat(e),je.noFormat}return r};je.nestedProperty=Cg();je.keyedContainer=BM();je.relativeAttr=GM();je.isPlainObject=Mc();je.toLogRange=Dg();je.relinkPrivateKeys=YM();var qc=Vo();je.isArrayBuffer=qc.isArrayBuffer;je.isTypedArray=qc.isTypedArray;je.isArrayOrTypedArray=qc.isArrayOrTypedArray;je.isArray1D=qc.isArray1D;je.ensureArray=qc.ensureArray;je.concat=qc.concat;je.maxRowLength=qc.maxRowLength;je.minRowLength=qc.minRowLength;var tC=Xh();je.mod=tC.mod;je.modHalf=tC.modHalf;var Pc=uS();je.valObjectMeta=Pc.valObjectMeta;je.coerce=Pc.coerce;je.coerce2=Pc.coerce2;je.coerceFont=Pc.coerceFont;je.coercePattern=Pc.coercePattern;je.coerceHoverinfo=Pc.coerceHoverinfo;je.coerceSelectionMarkerOpacity=Pc.coerceSelectionMarkerOpacity;je.validate=Pc.validate;var yl=yk();je.dateTime2ms=yl.dateTime2ms;je.isDateTime=yl.isDateTime;je.ms2DateTime=yl.ms2DateTime;je.ms2DateTimeLocal=yl.ms2DateTimeLocal;je.cleanDate=yl.cleanDate;je.isJSDate=yl.isJSDate;je.formatDate=yl.formatDate;je.incrementMonth=yl.incrementMonth;je.dateTick0=yl.dateTick0;je.dfltRange=yl.dfltRange;je.findExactDates=yl.findExactDates;je.MIN_MS=yl.MIN_MS;je.MAX_MS=yl.MAX_MS;var x0=H5();je.findBin=x0.findBin;je.sorterAsc=x0.sorterAsc;je.sorterDes=x0.sorterDes;je.distinctVals=x0.distinctVals;je.roundUp=x0.roundUp;je.sort=x0.sort;je.findIndexOfMin=x0.findIndexOfMin;je.sortObjectKeys=Qg();var Su=xk();je.aggNums=Su.aggNums;je.len=Su.len;je.mean=Su.mean;je.geometricMean=Su.geometricMean;je.median=Su.median;je.midRange=Su.midRange;je.variance=Su.variance;je.stdev=Su.stdev;je.interp=Su.interp;var Ls=zg();je.init2dArray=Ls.init2dArray;je.transposeRagged=Ls.transposeRagged;je.dot=Ls.dot;je.translationMatrix=Ls.translationMatrix;je.rotationMatrix=Ls.rotationMatrix;je.rotationXYMatrix=Ls.rotationXYMatrix;je.apply3DTransform=Ls.apply3DTransform;je.apply2DTransform=Ls.apply2DTransform;je.apply2DTransform2=Ls.apply2DTransform2;je.convertCssMatrix=Ls.convertCssMatrix;je.inverseTransformMatrix=Ls.inverseTransformMatrix;var Tf=Mk();je.deg2rad=Tf.deg2rad;je.rad2deg=Tf.rad2deg;je.angleDelta=Tf.angleDelta;je.angleDist=Tf.angleDist;je.isFullCircle=Tf.isFullCircle;je.isAngleInsideSector=Tf.isAngleInsideSector;je.isPtInsideSector=Tf.isPtInsideSector;je.pathArc=Tf.pathArc;je.pathSector=Tf.pathSector;je.pathAnnulus=Tf.pathAnnulus;var ld=Sk();je.isLeftAnchor=ld.isLeftAnchor;je.isCenterAnchor=ld.isCenterAnchor;je.isRightAnchor=ld.isRightAnchor;je.isTopAnchor=ld.isTopAnchor;je.isMiddleAnchor=ld.isMiddleAnchor;je.isBottomAnchor=ld.isBottomAnchor;var sd=Ck();je.segmentsIntersect=sd.segmentsIntersect;je.segmentDistance=sd.segmentDistance;je.getTextLocation=sd.getTextLocation;je.clearLocationCache=sd.clearLocationCache;je.getVisibleSegment=sd.getVisibleSegment;je.findPointOnPath=sd.findPointOnPath;var i2=Bn();je.extendFlat=i2.extendFlat;je.extendDeep=i2.extendDeep;je.extendDeepAll=i2.extendDeepAll;je.extendDeepNoArrays=i2.extendDeepNoArrays;var J5=m0();je.log=J5.log;je.warn=J5.warn;je.error=J5.error;var Dle=$h();je.counterRegex=Dle.counter;var $5=r2();je.throttle=$5.throttle;je.throttleDone=$5.done;je.clearThrottle=$5.clear;var Ds=Bp();je.getGraphDiv=Ds.getGraphDiv;je.isPlotDiv=Ds.isPlotDiv;je.removeElement=Ds.removeElement;je.addStyleRule=Ds.addStyleRule;je.addRelatedStyleRule=Ds.addRelatedStyleRule;je.deleteRelatedStyleRule=Ds.deleteRelatedStyleRule;je.setStyleOnHover=Ds.setStyleOnHover;je.getFullTransformMatrix=Ds.getFullTransformMatrix;je.getElementTransformMatrix=Ds.getElementTransformMatrix;je.getElementAndAncestors=Ds.getElementAndAncestors;je.equalDomRects=Ds.equalDomRects;je.clearResponsive=Fk();je.preserveDrawingBuffer=Pk();je.makeTraceGroups=Ok();je._=Bk();je.notifier=C5();je.filterUnique=Gk();je.filterVisible=Hk();je.pushUnique=F5();je.increment=Yk();je.cleanNumber=jk();je.ensureNumber=function(r){return Kk(r)?(r=Number(r),r>rC||r=r?!1:Kk(e)&&e>=0&&e%1===0};je.noop=Bg();je.identity=$g();je.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};je.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};je.simpleMap=function(e,r,t,a,n){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,t)?n>10?(je.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};je.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};je.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),o=new Array(t),l,s,f,u;for(l=0;l=a&&(f-=a*Math.floor(f/a)),f<0?f=-1-f:f>=t&&(f=a-1-f),u+=e[f]*i[s];o[l]=u}return o};je.syncOrAsync=function(e,r,t){var a,n;function i(){return je.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};je.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};je.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,o;for(i=0;i0?n:0})};je.fillArray=function(e,r,t,a){if(a=a||je.identity,je.isArrayOrTypedArray(e))for(var n=0;n1?n+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;a.test(l);)l=l.replace(a,"$1"+i+"$2");return l+s};je.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var iC=/^\w*$/;je.templateString=function(e,r){var t={};return e.replace(je.TEMPLATE_STRING_REGEX,function(a,n){var i;return iC.test(n)?i=r[n]:(t[n]=t[n]||je.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var Ole={max:10,count:0,name:"hovertemplate"};je.hovertemplateString=function(){return Q5.apply(Ole,arguments)};var Ile={max:10,count:0,name:"texttemplate"};je.texttemplateString=function(){return Q5.apply(Ile,arguments)};var Ble=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function zle(e){var r=e.match(Ble);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var Gle={max:10,count:0,name:"texttemplate",parseMultDiv:!0};je.texttemplateStringForShapes=function(){return Q5.apply(Gle,arguments)};var Jk=/^[:|\|]/;function Q5(e,r,t){var a=this,n=arguments;return r||(r={}),e.replace(je.TEMPLATE_STRING_REGEX,function(i,o,l){var s=o==="xother"||o==="yother",f=o==="_xother"||o==="_yother",u=o==="_xother_"||o==="_yother_",c=o==="xother_"||o==="yother_",v=s||f||c||u,d=o;(f||u)&&(d=d.substring(1)),(c||u)&&(d=d.substring(0,d.length-1));var p=null,g=null;if(a.parseMultDiv){var m=zle(d);d=m.key,p=m.op,g=m.number}var b;if(v){if(b=r[d],b===void 0)return""}else{var A,_;for(_=3;_=n2&&o<=$k,f=l>=n2&&l<=$k;if(s&&(a=10*a+o-n2),f&&(n=10*n+l-n2),!s||!f){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var od=2e9;je.seedPseudoRandom=function(){od=2e9};je.pseudoRandom=function(){var e=od;return od=(69069*od+1)%4294967296,Math.abs(od-e)<429496729?je.pseudoRandom():od/4294967296};je.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=je.extractOption(e,r,"htx","hovertext");if(je.isValidTextValue(n))return a(n);var i=je.extractOption(e,r,"tx","text");if(je.isValidTextValue(i))return a(i)};je.isValidTextValue=function(e){return e||e===0};je.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(f=1):f=0,je.strTranslate(n-f*(t+o),i-f*(a+l))+je.strScale(f)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};je.setTransormAndDisplay=function(e,r){e.attr("transform",je.getTextTransform(r)),e.style("display",r.scale?null:"none")};je.ensureUniformFontSize=function(e,r){var t=je.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};je.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};je.bigFont=function(e){return Math.round(1.2*e)};var Qk=je.getFirefoxVersion(),Ule=Qk!==null&&Qk<86;je.getPositionFromD3Event=function(){return Ule?[Wp.event.layerX,Wp.event.layerY]:[Wp.event.offsetX,Wp.event.offsetY]}});var fC=P(()=>{"use strict";var Hle=Ur(),lC={"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(K5 in lC)sC=K5.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Hle.addStyleRule(sC,lC[K5]);var sC,K5});var e4=P((Gke,uC)=>{uC.exports=!0});var t4=P((Uke,cC)=>{"use strict";var Vle=e4(),r4;typeof window.matchMedia=="function"?r4=!window.matchMedia("(hover: none)").matches:r4=Vle;cC.exports=r4});var s2=P((Hke,a4)=>{"use strict";var fd=typeof Reflect=="object"?Reflect:null,vC=fd&&typeof fd.apply=="function"?fd.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},o2;fd&&typeof fd.ownKeys=="function"?o2=fd.ownKeys:Object.getOwnPropertySymbols?o2=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:o2=function(r){return Object.getOwnPropertyNames(r)};function Yle(e){console&&console.warn&&console.warn(e)}var dC=Number.isNaN||function(r){return r!==r};function cn(){cn.init.call(this)}a4.exports=cn;a4.exports.once=Zle;cn.EventEmitter=cn;cn.prototype._events=void 0;cn.prototype._eventsCount=0;cn.prototype._maxListeners=void 0;var hC=10;function l2(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(cn,"defaultMaxListeners",{enumerable:!0,get:function(){return hC},set:function(e){if(typeof e!="number"||e<0||dC(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");hC=e}});cn.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};cn.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||dC(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 pC(e){return e._maxListeners===void 0?cn.defaultMaxListeners:e._maxListeners}cn.prototype.getMaxListeners=function(){return pC(this)};cn.prototype.emit=function(r){for(var t=[],a=1;a0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")vC(s,this,t);else for(var f=s.length,u=xC(s,f),a=0;a0&&o.length>n&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,Yle(l)}return e}cn.prototype.addListener=function(r,t){return mC(this,r,t,!1)};cn.prototype.on=cn.prototype.addListener;cn.prototype.prependListener=function(r,t){return mC(this,r,t,!0)};function Wle(){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 yC(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=Wle.bind(a);return n.listener=t,a.wrapFn=n,n}cn.prototype.once=function(r,t){return l2(t),this.on(r,yC(this,r,t)),this};cn.prototype.prependOnceListener=function(r,t){return l2(t),this.prependListener(r,yC(this,r,t)),this};cn.prototype.removeListener=function(r,t){var a,n,i,o,l;if(l2(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,o=a.length-1;o>=0;o--)if(a[o]===t||a[o].listener===t){l=a[o].listener,i=o;break}if(i<0)return this;i===0?a.shift():jle(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};cn.prototype.off=cn.prototype.removeListener;cn.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),o;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function gC(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?Xle(n):xC(n,n.length)}cn.prototype.listeners=function(r){return gC(this,r,!0)};cn.prototype.rawListeners=function(r){return gC(this,r,!1)};cn.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):bC.call(e,r)};cn.prototype.listenerCount=bC;function bC(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}cn.prototype.eventNames=function(){return this._eventsCount>0?o2(this._events):[]};function xC(e,r){for(var t=new Array(r),a=0;a{"use strict";var n4=s2().EventEmitter,$le={init:function(e){if(e._ev instanceof n4)return e;var r=new n4,t=new n4;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function o(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l{"use strict";var AC=Ur(),Qle=p0().dfltConfig;function Kle(e,r){for(var t=[],a,n=0;nQle.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Eu.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Eu.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Eu.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";SC.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var vd=P(li=>{"use strict";var zl=It(),Xp=Ur(),u2=ks(),o4=rd(),ese=i4(),rse=zp(),tse=p0().configAttributes,EC=Cs(),Fs=Xp.extendDeepAll,ud=Xp.isPlainObject,ase=Xp.isArrayOrTypedArray,c2=Xp.nestedProperty,nse=Xp.valObjectMeta,l4="_isSubplotObj",v2="_isLinkedToArray",ise="_arrayAttrRegexps",CC="_deprecated",s4=[l4,v2,ise,CC];li.IS_SUBPLOT_OBJ=l4;li.IS_LINKED_TO_ARRAY=v2;li.DEPRECATED=CC;li.UNDERSCORE_ATTRS=s4;li.get=function(){var e={};return zl.allTypes.forEach(function(r){e[r]=lse(r)}),{defs:{valObjects:nse,metaKeys:s4.concat(["description","role","editType","impliedEdits"]),editType:{traces:EC.traces,layout:EC.layout},impliedEdits:{}},traces:e,layout:sse(),frames:fse(),animation:cd(rse),config:cd(tse)}};li.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(s4.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!li.isValObject(o)&&ud(o)&&i!=="impliedEdits"&&li.crawl(o,r,n+1,l)}})};li.isValObject=function(e){return e&&e.valType!==void 0};li.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function o(s,f,u,c){t=t.slice(0,c).concat([f]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var v=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(f==="ticktext"||f==="tickvals"));v&&l(n,0,"")}function l(s,f,u){var c=s[t[f]],v=u+t[f];if(f===t.length-1)ase(c)&&r.push(i+v);else if(a[f]){if(Array.isArray(c))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!f2(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function f2(e){return e===Math.round(e)&&e>=0}function lse(e){var r,t;r=zl.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Fs({},u2),i=Fs({},r.attributes);li.crawl(i,function(s,f,u,c,v){c2(n,v).set(void 0),s===void 0&&c2(i,v).set(void 0)}),Fs(a,n),zl.traceIs(e,"noOpacity")&&delete a.opacity,zl.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),zl.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Fs(a,i),t.attributes&&Fs(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:cd(a)};if(r.layoutAttributes){var l={};Fs(l,r.layoutAttributes),o.layoutAttributes=cd(l)}return r.animatable||li.crawl(o,function(s){li.isValObject(s)&&"anim"in s&&delete s.anim}),o}function sse(){var e={},r,t;Fs(e,o4);for(r in zl.subplotsRegistry)if(t=zl.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var hd=Ur(),dse=ks(),Nc="templateitemname",f4={name:{valType:"string",editType:"none"}};f4[Nc]={valType:"string",editType:"calc"};_0.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=f4.name,r[Nc]=f4[Nc],r};_0.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=hd.coerce(i,{},dse,"type");var o={type:t,_template:null};if(t in r){a=e[t];var l=r[t]%a.length;r[t]++,o._template=a[l]}return o}return{newTrace:n}};_0.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);hd.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};_0.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[FC(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(f){var u={name:f.name,_input:f},c=u[Nc]=f[Nc];if(!DC(c))return u._template=n,u;for(var v=0;v=a&&(t._input||{})._templateitemname;i&&(n=a);var o=r+"["+n+"]",l;function s(){l={},i&&(l[o]={},l[o][Nc]=i)}s();function f(d,p){l[d]=p}function u(d,p){i?hd.nestedProperty(l[o],d).set(p):l[o+"."+d]=p}function c(){var d=l;return s(),d}function v(d,p){d&&u(d,p);var g=c();for(var m in g)hd.nestedProperty(e,m).set(g[m])}return{modifyBase:f,modifyItem:u,getUpdateObj:c,applyUpdate:v}}});var Fi=P((Zke,RC)=>{"use strict";var Zp=$h().counter;RC.exports={idRegex:{x:Zp("x","( domain)?"),y:Zp("y","( domain)?")},attrRegex:Zp("[xy]axis"),xAxisMatch:Zp("xaxis"),yAxisMatch:Zp("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var En=P(Xo=>{"use strict";var pse=It(),u4=Fi();Xo.id2name=function(r){if(!(typeof r!="string"||!r.match(u4.AX_ID_PATTERN))){var t=r.split(" ")[0].substr(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Xo.name2id=function(r){if(r.match(u4.AX_NAME_PATTERN)){var t=r.substr(5);return t==="1"&&(t=""),r.charAt(0)+t}};Xo.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(u4.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].substr(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};Xo.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Xo.listIds(e,r),i=new Array(n.length),o;for(o=0;oa?1:-1:+(e.substr(1)||1)-+(r.substr(1)||1)};Xo.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function qC(e,r){if(r&&r.length){for(var t=0;t{"use strict";function mse(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function yse(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}PC.exports={clearOutlineControllers:mse,clearOutline:yse}});var h2=P((Qke,NC)=>{"use strict";NC.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Jp=P(p2=>{"use strict";var d2=It(),Kke=Fi().SUBPLOT_PATTERN;p2.getSubplotCalcData=function(e,r,t){var a=d2.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o{"use strict";var gse=It(),dd=Ur();w0.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=w0.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(o)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(o){OC(e,o,n.cache),n.check=function(){if(i){var u=OC(e,o,n.cache);return u.changed&&a&&n.lookupTable[u.value]!==void 0&&(n.disable(),Promise.resolve(a({value:u.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[u.value]})).then(n.enable,n.enable)),u.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;dd.isPlainObject(i)?c4(i,r,o,a+1):r(o,n,i)}})}});var gi=P((tCe,eL)=>{"use strict";var jC=da(),xse=Wh().timeFormatLocale,_se=g5().formatLocale,$p=ga(),wse=b5(),ka=It(),XC=vd(),Ase=Ja(),Mt=Ur(),ZC=ha(),GC=Jn().BADNUM,Zo=En(),Tse=Oc().clearOutline,Mse=h2(),v4=zp(),Sse=i4(),Ese=Jp().getModuleCalcData,UC=Mt.relinkPrivateKeys,A0=Mt._,yt=eL.exports={};Mt.extendFlat(yt,ka);yt.attributes=ks();yt.attributes.type.values=yt.allTypes;yt.fontAttrs=Bi();yt.layoutAttributes=rd();var y2=zC();yt.executeAPICommand=y2.executeAPICommand;yt.computeAPICommandBindings=y2.computeAPICommandBindings;yt.manageCommandObserver=y2.manageCommandObserver;yt.hasSimpleAPICommandBindings=y2.hasSimpleAPICommandBindings;yt.redrawText=function(e){return e=Mt.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(ka.getComponentMethod("annotations","draw")(e),ka.getComponentMethod("legend","draw")(e),ka.getComponentMethod("colorbar","draw")(e),r(yt.previousPromises(e)))},300)})};yt.resize=function(e){e=Mt.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||Mt.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Mt.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,ka.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};yt.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};yt.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=Mt.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:ZC.defaultLine,"pointer-events":"all"}).each(function(){var f=jC.select(this);f.append("tspan").classed("js-link-to-tool",!0),f.append("tspan").classed("js-link-spacer",!0),f.append("tspan").classed("js-sourcelinks",!0)})}),a=t.node(),n={y:r._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=r.width-20?(n["text-anchor"]="start",n.x=5):(n["text-anchor"]="end",n.x=r._paper.attr("width")-7),t.attr(n);var i=t.select(".js-link-to-tool"),o=t.select(".js-link-spacer"),l=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&kse(e,i),o.text(i.text()&&l.text()?" - ":"")}};function kse(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(){yt.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})}}yt.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=jC.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=yt.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var Cse=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Lse=["year","month","dayMonth","dayMonthYear"];yt.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],f=e.calcdata||[],u=e._context||{},c;e._transitionData||yt.createTransitionData(e),n._dfltTitle={plot:A0(e,"Click to enter Plot title"),subtitle:A0(e,"Click to enter Plot subtitle"),x:A0(e,"Click to enter X axis title"),y:A0(e,"Click to enter Y axis title"),colorbar:A0(e,"Click to enter Colorscale title"),annotation:A0(e,"new text")},n._traceWord=A0(e,"trace");var v=HC(e,Cse);if(n._mapboxAccessToken=u.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,p=a.height;yt.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),yt.sanitizeMargins(n)}else{yt.supplyLayoutGlobalDefaults(i,n,v);var g=!i.width||!i.height,m=n.autosize,b=u.autosizable,A=g&&(m||b);A?yt.plotAutoSize(e,i,n):g&&yt.sanitizeMargins(n),!m&&g&&(i.width=n.width,i.height=n.height)}n._d3locale=Rse(v,n.separators),n._extraFormat=HC(e,Lse),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=Fse(),x=n._splomAxes={x:{},y:{}},T=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=Dse(o,s),yt.supplyDataDefaults(s,l,i,n);var E=Object.keys(x.x),S=Object.keys(x.y);if(E.length>1&&S.length>1){for(ka.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&S.length>15&&n.shapes.length===0&&n.images.length===0,yt.linkSubplots(l,n,o,a),yt.cleanPlot(l,n,o,a);var R=!!(a._has&&a._has("cartesian")),H=!!(n._has&&n._has("cartesian")),X=R,le=H;X&&!le?a._bgLayer.remove():le&&!X&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Tse({_fullLayout:a}),qse(l,n),UC(n,a),ka.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var ae=n._tracePreGUI,J={},Z;for(Z in ae)J[Z]="old";for(c=0;c0){var u=1-2*i;o=Math.round(u*o),l=Math.round(u*l)}}var c=yt.layoutAttributes.width.min,v=yt.layoutAttributes.height.min;o1,p=!t.height&&Math.abs(a.height-l)>1;(p||d)&&(d&&(a.width=o),p&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),yt.sanitizeMargins(a)};yt.supplyLayoutModuleDefaults=function(e,r,t,a){var n=ka.componentsRegistry,i=r._basePlotModules,o,l,s,f=ka.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(f),r._has("cartesian")&&(ka.getComponentMethod("grid","contentDefaults")(e,r),f.finalizeSubplots(e,r));for(var u in r._subplots)r._subplots[u].sort(Mt.subplotSort);for(l=0;l1&&(t.l/=m,t.r/=m)}if(v){var b=(t.t+t.b)/v;b>1&&(t.t/=b,t.b/=b)}var A=t.xl!==void 0?t.xl:t.x,_=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,T=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:A,size:t.l+g},r:{val:_,size:t.r+g},b:{val:T,size:t.b+g},t:{val:x,size:t.t+g}},p[r]=1}if(!a._replotting)return yt.doAutoMargin(e)}};function Nse(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Zo.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}yt.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),JC(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=Mt.extendFlat({},n),s=i.l,f=i.r,u=i.t,c=i.b,v=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,g=r.minreducedheight;if(i.autoexpand!==!1){for(var m in v)d[m]||delete v[m];var b=e._fullLayout._reservedMargin;for(var A in b)for(var _ in b[A]){var x=b[A][_];o[_]=Math.max(o[_],x)}v.base={l:{val:0,size:s},r:{val:1,size:f},t:{val:1,size:u},b:{val:0,size:c}};for(var T in o){var E=0;for(var S in v)S!=="base"&&$p(v[S][T].size)&&(E=v[S][T].size>E?v[S][T].size:E);var k=Math.max(0,i[T]-E);o[T]=Math.max(0,o[T]-k)}for(var F in v){var O=v[F].l||{},I=v[F].b||{},R=O.val,H=O.size,X=I.val,le=I.size,ae=t-o.r-o.l,J=a-o.t-o.b;for(var Z in v){if($p(H)&&v[Z].r){var $=v[Z].r.val,oe=v[Z].r.size;if($>R){var ce=(H*$+(oe-ae)*R)/($-R),De=(oe*(1-R)+(H-ae)*(1-$))/($-R);ce+De>s+f&&(s=ce,f=De)}}if($p(le)&&v[Z].t){var Ne=v[Z].t.val,Ee=v[Z].t.size;if(Ne>X){var Ye=(le*Ne+(Ee-J)*X)/(Ne-X),we=(Ee*(1-X)+(le-J)*(1-Ne))/(Ne-X);Ye+we>c+u&&(c=Ye,u=we)}}}}}var Qe=Mt.constrain(t-i.l-i.r,$C,p),ze=Mt.constrain(a-i.t-i.b,QC,g),He=Math.max(0,t-Qe),$e=Math.max(0,a-ze);if(He){var Ue=(s+f)/He;Ue>1&&(s/=Ue,f/=Ue)}if($e){var ee=(c+u)/$e;ee>1&&(c/=ee,u/=ee)}if(n.l=Math.round(s)+o.l,n.r=Math.round(f)+o.r,n.t=Math.round(u)+o.t,n.b=Math.round(c)+o.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(yt.didMarginChange(l,n)||Nse(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var _e=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount<_e)return ka.call("_doPlot",e);r._size=l,Mt.warn("Too many auto-margin redraws.")}Ose(e)};function Ose(e){var r=Zo.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(t){for(var a=0;a1)return!0}return!1};yt.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&yt.supplyDefaults(e);var o=n?e._fullData:e.data,l=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function f(v,d){if(typeof v=="function")return d?"_function_":null;if(Mt.isPlainObject(v)){var p={},g;return Object.keys(v).sort().forEach(function(_){if(["_","["].indexOf(_.charAt(0))===-1){if(typeof v[_]=="function"){d&&(p[_]="_function");return}if(t==="keepdata"){if(_.substr(_.length-3)==="src")return}else if(t==="keepstream"){if(g=v[_+"src"],typeof g=="string"&&g.indexOf(":")>0&&!Mt.isPlainObject(v.stream))return}else if(t!=="keepall"&&(g=v[_+"src"],typeof g=="string"&&g.indexOf(":")>0))return;p[_]=f(v[_],d)}}),p}var m=Array.isArray(v),b=Mt.isTypedArray(v);if((m||b)&&v.dtype&&v.shape){var A=v.bdata;return f({dtype:v.dtype,shape:v.shape,bdata:Mt.isArrayBuffer(A)?wse.encode(A):A},d)}return m?v.map(function(_){return f(_,d)}):b?Mt.simpleMap(v,Mt.identity):Mt.isJSDate(v)?Mt.ms2DateTimeLocal(+v):v}var u={data:(o||[]).map(function(v){var d=f(v);return r&&delete d.fit,d})};if(!r&&(u.layout=f(l),n)){var c=l._size;u.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return s&&(u.frames=f(s)),i&&(u.config=f(e._context,!0)),a==="object"?u:JSON.stringify(u)};yt.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return ka.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var v=0,d=0;function p(){return v++,function(){d++,!a&&d===v&&l(c)}}t.runFn(p),setTimeout(p())})}function l(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return ka.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var f=[yt.previousPromises,s,t.prepareFn,yt.rehover,yt.reselect,o],u=Mt.syncOrAsync(f,e);return(!u||!u.then)&&(u=Promise.resolve()),u.then(function(){return e})}yt.doCalcdata=function(e,r){var t=Zo.list(e),a=e._fullData,n=e._fullLayout,i,o,l,s,f=new Array(a.length),u=(e.calcdata||[]).slice();for(e.calcdata=f,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},l=0;l=0;s--)if(T[s].enabled){i._indexToPoints=T[s]._indexToPoints;break}o&&o.calc&&(x=o.calc(e,i))}(!Array.isArray(x)||!x[0])&&(x=[{x:GC,y:GC}]),x[0].t||(x[0].t={}),x[0].trace=i,f[A]=x}}for(YC(t,a,n),l=0;l{"use strict";T0.xmlns="http://www.w3.org/2000/xmlns/";T0.svg="http://www.w3.org/2000/svg";T0.xlink="http://www.w3.org/1999/xlink";T0.svgAttrs={xmlns:T0.svg,"xmlns:xlink":T0.xlink}});var ho=P((nCe,rL)=>{"use strict";rL.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var po=P(Gl=>{"use strict";var $n=da(),ku=Ur(),zse=ku.strTranslate,h4=Ic(),Gse=ho().LINE_SPACING,Use=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Gl.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(Use),i=$n.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=rfe(e.node(),a);s&&e.style("pointer-events","all"),Gl.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var f=parseInt(e.node().style.fontSize,10),u={fontSize:f};Wse(n[2],u,function(c,v,d){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var p=c&&c.select("svg");if(!p||!p.node()){l(),s();return}var g=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});g.node().appendChild(p.node()),v&&v.node()&&p.node().insertBefore(v.node().cloneNode(!0),p.node().firstChild);var m=d.width,b=d.height;p.attr({class:o,height:b,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var A=e.node().style.fill||"black",_=p.select("g");_.attr({fill:A,stroke:A});var x=_.node().getBoundingClientRect(),T=x.width,E=x.height;(T>m||E>b)&&(p.style("overflow","hidden"),x=p.node().getBoundingClientRect(),T=x.width,E=x.height);var S=+e.attr("x"),k=+e.attr("y"),F=f||e.node().getBoundingClientRect().height,O=-F/4;if(o[0]==="y")g.attr({transform:"rotate("+[-90,S,k]+")"+zse(-T/2,O-E/2)});else if(o[0]==="l")k=O-E/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)S=0,k=O;else{var I=e.attr("text-anchor");S=S-T*(I==="middle"?.5:I==="end"?1:0),k=k+O-E/2}p.attr({x:S,y:k}),t&&t.call(e,g),s(g)})})):l(),e};var Hse=/(<|<|<)/g,Vse=/(>|>|>)/g;function Yse(e){return e.replace(Hse,"\\lt ").replace(Vse,"\\gt ")}var tL=[["$","$"],["\\(","\\)"]];function Wse(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){ku.warn("No MathJax version:",MathJax.version);return}var n,i,o,l,s=function(){return i=ku.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:tL},displayAlign:"left"})},f=function(){i=ku.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=tL},u=function(){if(n=MathJax.Hub.config.menuSettings.renderer,n!=="SVG")return MathJax.Hub.setRenderer("SVG")},c=function(){n=MathJax.config.startup.output,n!=="svg"&&(MathJax.config.startup.output="svg")},v=function(){var A="math-output-"+ku.randstr({},64);l=$n.select("body").append("div").attr({id:A}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(Yse(e));var _=l.node();return a===2?MathJax.Hub.Typeset(_):MathJax.typeset([_])},d=function(){var A=l.select(a===2?".MathJax_SVG":".MathJax"),_=!A.empty()&&l.select("svg").node();if(!_)ku.log("There was an error in the tex syntax.",e),t();else{var x=_.getBoundingClientRect(),T;a===2?T=$n.select("body").select("#MathJax_SVG_glyphs"):T=A.select("defs"),t(A,T,x)}l.remove()},p=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},g=function(){n!=="svg"&&(MathJax.config.startup.output=n)},m=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(i)},b=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(s,u,v,d,p,m):a===3&&(f(),c(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){v(),d(),g(),b()}))}var oL={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},jse={sub:"0.3em",sup:"-0.6em"},Xse={sub:"-0.21em",sup:"0.42em"},aL="\u200B",nL=["http:","https:","mailto:","",void 0,":"],lL=Gl.NEWLINES=/(\r\n?|\n)/g,p4=/(<[^<>]*>)/,m4=/<(\/?)([^ >]*)(\s+(.*))?>/i,Zse=//i;Gl.BR_TAG_ALL=//gi;var sL=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,fL=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,uL=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Jse=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function M0(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&g2(a)}var $se=/(^|;)\s*color:/;Gl.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,o=e.split(p4),l=[],s="",f=0,u=0;ui?l.push(c.substr(0,g-i)+n):l.push(c.substr(0,g));break}s=""}}return l.join("")};var Qse={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Kse=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function g2(e){return e.replace(Kse,function(r,t){var a;return t.charAt(0)==="#"?a=efe(t.charAt(1)==="x"?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):a=Qse[t],a||r})}Gl.convertEntities=g2;function efe(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 rfe(e,r){r=r.replace(lL," ");var t=!1,a=[],n,i=-1;function o(){i++;var E=document.createElementNS(h4.svg,"tspan");$n.select(E).attr({class:"line",dy:i*Gse+"em"}),e.appendChild(E),n=E;var S=a;if(a=[{node:E}],S.length>1)for(var k=1;k.",r);return}var S=a.pop();E!==S.type&&ku.log("Start tag <"+S.type+"> doesnt match end tag <"+E+">. Pretending it did match.",r),n=a[a.length-1].node}var u=Zse.test(r);u?o():(n=e,a=[{node:e}]);for(var c=r.split(p4),v=0;v{"use strict";var tfe=da(),x2=Es(),Kp=ga(),b2=Ur(),vL=ha(),afe=h0().isValid;function nfe(e,r,t){var a=r?b2.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(b2.isArrayOrTypedArray(n)){for(var o=0;o=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function gL(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),o=0;o{"use strict";var xL=O5(),ofe=xL.FORMAT_LINK,lfe=xL.DATE_FORMAT_LINK;function sfe(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?y4:_L)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function y4(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+ofe+"."].join(" ")}function _L(e,r){return y4(e,r)+[" And for dates see: "+lfe+".","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(" ")}wL.exports={axisHoverFormat:sfe,descriptionOnlyNumbers:y4,descriptionWithDates:_L}});var Ul=P((sCe,BL)=>{"use strict";var AL=Bi(),pd=wf(),IL=kc().dash,b4=Bn().extendFlat,TL=Ja().templatedArray,ML=em().descriptionWithDates,ffe=Jn().ONEDAY,Mf=Fi(),ufe=Mf.HOUR_PATTERN,cfe=Mf.WEEKDAY_PATTERN,g4={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},vfe=b4({},g4,{values:g4.values.slice().concat(["sync"])});function SL(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var EL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},kL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},CL={valType:"data_array",editType:"ticks"},LL={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function DL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function FL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var RL={valType:"color",dflt:pd.defaultLine,editType:"ticks"},qL={valType:"color",dflt:pd.lightLine,editType:"ticks"};function PL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var NL=b4({},IL,{editType:"ticks"}),OL={valType:"boolean",editType:"ticks"};BL.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:pd.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:AL({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:[Mf.idRegex.x.toString(),Mf.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Mf.idRegex.x.toString(),Mf.idRegex.y.toString()],editType:"calc"},rangebreaks:TL("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:[cfe,ufe,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:ffe},editType:"calc"}),tickmode:vfe,nticks:SL(),tick0:EL,dtick:kL,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:CL,ticktext:{valType:"data_array",editType:"ticks"},ticks:LL,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:DL(),tickwidth:FL(),tickcolor:RL,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:b4({},IL,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:AL({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:ML("tick label")},tickformatstops:TL("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:ML("hover text")},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:pd.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:OL,gridcolor:qL,gridwidth:PL(),griddash:NL,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:pd.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:pd.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Mf.idRegex.x.toString(),Mf.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Mf.idRegex.x.toString(),Mf.idRegex.y.toString()],editType:"plot"},minor:{tickmode:g4,nticks:SL("minor"),tick0:EL,dtick:kL,tickvals:CL,ticks:LL,ticklen:DL("minor"),tickwidth:FL("minor"),tickcolor:RL,gridcolor:qL,gridwidth:PL("minor"),griddash:NL,showgrid:OL,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 _2=P((fCe,UL)=>{"use strict";var vn=Ul(),zL=Bi(),GL=Bn().extendFlat,hfe=Cs().overrideAll;UL.exports=hfe({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:vn.linecolor,outlinewidth:vn.linewidth,bordercolor:vn.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:vn.minor.tickmode,nticks:vn.nticks,tick0:vn.tick0,dtick:vn.dtick,tickvals:vn.tickvals,ticktext:vn.ticktext,ticks:GL({},vn.ticks,{dflt:""}),ticklabeloverflow:GL({},vn.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:vn.ticklen,tickwidth:vn.tickwidth,tickcolor:vn.tickcolor,ticklabelstep:vn.ticklabelstep,showticklabels:vn.showticklabels,labelalias:vn.labelalias,tickfont:zL({}),tickangle:vn.tickangle,tickformat:vn.tickformat,tickformatstops:vn.tickformatstops,tickprefix:vn.tickprefix,showtickprefix:vn.showtickprefix,ticksuffix:vn.ticksuffix,showticksuffix:vn.showticksuffix,separatethousands:vn.separatethousands,exponentformat:vn.exponentformat,minexponent:vn.minexponent,showexponent:vn.showexponent,title:{text:{valType:"string"},font:zL({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var S0=P((cCe,VL)=>{"use strict";var dfe=_2(),pfe=$h().counter,mfe=Qg(),HL=h0().scales,uCe=mfe(HL);function w2(e){return"`"+e+"`"}VL.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:a==="z",l=typeof t.colorscaleDflt=="string"?HL[t.colorscaleDflt]:null,s=t.editTypeOverride||"",f=r?r+".":"",u,c;"colorAttr"in t?(u=t.colorAttr,c=t.colorAttr):(u={z:"z",c:"color"}[a],c="in "+w2(f+u));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",g=a+"max",m=a+"mid",b=w2(f+d),A=w2(f+p),_=w2(f+g),x=A+" and "+_,T={};T[p]=T[g]=void 0;var E={};E[d]=!1;var S={};return u==="color"&&(S.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(S.color.anim=!0)),S[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},S[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:E},S[g]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:E},S[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},S.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},S.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},S.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(S.showscale={valType:"boolean",dflt:o,editType:"calc"},S.colorbar=dfe),t.noColorAxis||(S.coloraxis={valType:"subplotid",regex:pfe("coloraxis"),dflt:null,editType:"calc"}),S}});var _4=P((vCe,YL)=>{"use strict";var yfe=Bn().extendFlat,gfe=S0(),x4=h0().scales;YL.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:x4.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:x4.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:x4.RdBu,editType:"calc"}},coloraxis:yfe({_isSubplotObj:!0,editType:"calc"},gfe("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var w4=P((hCe,WL)=>{"use strict";var bfe=Ur();WL.exports=function(r){return bfe.isPlainObject(r.colorbar)}});var M4=P(T4=>{"use strict";var A4=ga(),jL=Ur(),XL=Jn(),xfe=XL.ONEDAY,_fe=XL.ONEWEEK;T4.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?xfe:1;if(!e)return i;if(A4(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var o=e.charAt(0),l=e.substr(1);return l=A4(l)?Number(l):0,l<=0||!(a&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};T4.tick0=function(e,r,t,a){if(r==="date")return jL.cleanDate(e,jL.dateTick0(t,a%_fe===0?1:0));if(!(a==="D1"||a==="D2"))return A4(e)?Number(e):0}});var S4=P((pCe,JL)=>{"use strict";var ZL=M4(),wfe=Ur().isArrayOrTypedArray,Afe=Vo().isTypedArraySpec,Tfe=Vo().decodeTypedArraySpec;JL.exports=function(r,t,a,n,i){i||(i={});var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,f=o?"minor.":"";function u(A){var _=l[A];return Afe(_)&&(_=Tfe(_)),_!==void 0?_:(s._template||{})[A]}var c=u("tick0"),v=u("dtick"),d=u("tickvals"),p=wfe(d)?"array":v?"linear":"auto",g=a(f+"tickmode",p);if(g==="auto"||g==="sync")a(f+"nticks");else if(g==="linear"){var m=s.dtick=ZL.dtick(v,n);s.tick0=ZL.tick0(c,n,t.calendar,m)}else if(n!=="multicategory"){var b=a(f+"tickvals");b===void 0?s.tickmode="auto":o||a("ticktext")}}});var k4=P((mCe,QL)=>{"use strict";var E4=Ur(),$L=Ul();QL.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?$L.minor:$L,f=i?"minor.":"",u=E4.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=E4.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),v=E4.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=a(f+"ticks",!i&&n.outerTicks||u||c||v?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var C4=P((yCe,KL)=>{"use strict";KL.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var gl=P((gCe,eD)=>{"use strict";var A2=Ur(),Mfe=Ja();eD.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=A2.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],f=Mfe.arrayTemplater(t,n,i),u,c;for(u=0;u{"use strict";var L4=Ur(),Sfe=ha().contrast,rD=Ul(),Efe=C4(),kfe=gl();tD.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");L4.isPlainObject(o)||delete t.labelalias;var l=Efe(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var f=i.font||{},u=t.color,c=t.ticklabelposition||"",v=c.indexOf("inside")!==-1?Sfe(i.bgColor):u&&u!==rD.color.dflt?u:f.color;if(L4.coerceFont(a,"tickfont",f,{overrideDflt:{color:v}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");kfe(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Cfe}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",l),a("exponentformat"),a("minexponent"),a("separatethousands"))}}};function Cfe(e,r){function t(n,i){return L4.coerce(e,r,rD.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var F4=P((xCe,aD)=>{"use strict";var Lfe=C4();aD.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=Lfe(r),s=a("tickprefix");s&&a("showtickprefix",l);var f=a("ticksuffix",o);f&&a("showticksuffix",l)}});var R4=P((_Ce,nD)=>{"use strict";var Bc=Ur(),Dfe=Ja(),Ffe=S4(),Rfe=k4(),qfe=D4(),Pfe=F4(),Nfe=_2();nD.exports=function(r,t,a){var n=Dfe.newContainer(t,"colorbar"),i=r.colorbar||{};function o(I,R){return Bc.coerce(i,n,Nfe,I,R)}var l=a.margin||{t:0,b:0,l:0,r:0},s=a.width-l.l-l.r,f=a.height-l.t-l.b,u=o("orientation"),c=u==="v",v=o("thicknessmode");o("thickness",v==="fraction"?30/(c?s:f):30);var d=o("lenmode");o("len",d==="fraction"?1:c?f:s);var p=o("yref"),g=o("xref"),m=p==="paper",b=g==="paper",A,_,x,T="left";c?(x="middle",T=b?"left":"right",A=b?1.02:1,_=.5):(x=m?"bottom":"top",T="center",A=.5,_=m?1.02:1),Bc.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:A}},"x"),Bc.coerce(i,n,{y:{valType:"number",min:m?-2:0,max:m?3:1,dflt:_}},"y"),o("xanchor",T),o("xpad"),o("yanchor",x),o("ypad"),Bc.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var E=Bc.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",E.indexOf("inside")!==-1?"hide past domain":"hide past div"),Ffe(i,n,o,"linear");var S=a.font,k={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:S};E.indexOf("inside")!==-1&&(k.bgColor="black"),Pfe(i,n,o,"linear",k),qfe(i,n,o,"linear",k),Rfe(i,n,o,"linear",k),o("title.text",a._dfltTitle.colorbar);var F=n.showticklabels?n.tickfont:S,O=Bc.extendFlat({},S,{family:F.family,size:Bc.bigFont(F.size)});Bc.coerceFont(o,"title.font",O),o("title.side",c?"top":"right")}});var md=P((wCe,lD)=>{"use strict";var iD=ga(),P4=Ur(),Ofe=w4(),Ife=R4(),oD=h0().isValid,Bfe=It().traceIs;function q4(e,r){var t=r.slice(0,r.length-1);return r?P4.nestedProperty(e,t).get()||{}:e}lD.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,f=q4(r,o),u=q4(t,o),c=q4(t._template||{},o)||{},v=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},p=n(o+"coloraxis");if(p){var g=Bfe(t,"contour")&&P4.nestedProperty(t,"contours.coloring").get()||"heatmap",m=d[p];m?(m[2].push(v),m[0]!==g&&(m[0]=!1,P4.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[g,t,[v]];return}}var b=f[l+"min"],A=f[l+"max"],_=iD(b)&&iD(A)&&b{"use strict";var sD=Ur(),zfe=Ja(),fD=_4(),Gfe=md();uD.exports=function(r,t){function a(c,v){return sD.coerce(r,t,fD,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return sD.coerce(i,o,fD.coloraxis,c,v)}for(var s in n){var f=n[s];if(f[0])i=r[s]||{},o=zfe.newContainer(t,s,"coloraxis"),o._name=s,Gfe(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var u=0;u{"use strict";var Ufe=Ur(),Hfe=Rs().hasColorscale,Vfe=Rs().extractOpts;vD.exports=function(r,t){function a(u,c){var v=u["_"+c];v!==void 0&&(u[c]=v)}function n(u,c){var v=c.container?Ufe.nestedProperty(u,c.container).get():u;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=Vfe(v),p=d.auto;(p||d.min===void 0)&&a(v,c.min),(p||d.max===void 0)&&a(v,c.max),d.autocolorscale&&a(v,"colorscale")}}for(var i=0;i{"use strict";var dD=ga(),N4=Ur(),Yfe=Rs().extractOpts;pD.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?N4.nestedProperty(t,o).get():t,s=Yfe(l),f=s.auto!==!1,u=s.min,c=s.max,v=s.mid,d=function(){return N4.aggNums(Math.min,null,i)},p=function(){return N4.aggNums(Math.max,null,i)};if(u===void 0?u=d():f&&(l._colorAx&&dD(u)?u=Math.min(u,d()):u=d()),c===void 0?c=p():f&&(l._colorAx&&dD(c)?c=Math.max(c,p()):c=p()),f&&v!==void 0&&(c-v>v-u?u=v-(c-v):c-v=0?g=n.colorscale.sequential:g=n.colorscale.sequentialminus,s._sync("colorscale",g)}}});var gd=P((SCe,mD)=>{"use strict";var T2=h0(),yd=Rs();mD.exports={moduleType:"component",name:"colorscale",attributes:S0(),layoutAttributes:_4(),supplyLayoutDefaults:cD(),handleDefaults:md(),crossTraceDefaults:hD(),calc:O4(),scales:T2.scales,defaultScale:T2.defaultScale,getScale:T2.get,isValidScale:T2.isValid,hasColorscale:yd.hasColorscale,extractOpts:yd.extractOpts,extractScale:yd.extractScale,flipScale:yd.flipScale,makeColorScaleFunc:yd.makeColorScaleFunc,makeColorScaleFuncFromTrace:yd.makeColorScaleFuncFromTrace}});var Ri=P((ECe,gD)=>{"use strict";var yD=Ur(),Wfe=Vo().isTypedArraySpec;gD.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 yD.isPlainObject(r)&&(yD.isArrayOrTypedArray(r.size)||Wfe(r.size))}}});var I4=P((kCe,bD)=>{"use strict";var jfe=ga();bD.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,o=a.sizemode==="area"?function(l){return Math.sqrt(l/n)}:function(l){return l/n};return function(l){var s=o(l/t);return jfe(s)&&s>0?Math.max(s,i):0}}});var Cu=P(ro=>{"use strict";var xD=Ur();ro.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};ro.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{AD.exports=Qfe;var B4={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},$fe=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Qfe(e){var r=[];return e.replace($fe,function(t,a,n){var i=a.toLowerCase();for(n=eue(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==B4[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var rue=rm(),lt=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Xt="M0,0Z",TD=Math.sqrt(2),zc=Math.sqrt(3),z4=Math.PI,G4=Math.cos,U4=Math.sin;CD.exports={circle:{n:0,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Jt(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return Jt(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.3,2);return Jt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.4,2),n=lt(e*1.2,2);return Jt(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.8/TD,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return Jt(r,t,"M0,"+a+n+i+o+i+o+l+o+l+n+l+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*2/zc,2),n=lt(e/2,2),i=lt(e,2);return Jt(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*2/zc,2),n=lt(e/2,2),i=lt(e,2);return Jt(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*2/zc,2),n=lt(e/2,2),i=lt(e,2);return Jt(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*2/zc,2),n=lt(e/2,2),i=lt(e,2);return Jt(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.6,2),n=lt(e*1.2,2);return Jt(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.6,2),n=lt(e*1.2,2);return Jt(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.6,2),n=lt(e*1.2,2);return Jt(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.6,2),n=lt(e*1.2,2);return Jt(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.951,2),n=lt(e*.588,2),i=lt(-e,2),o=lt(e*-.309,2),l=lt(e*.809,2);return Jt(r,t,"M"+a+","+o+"L"+n+","+l+"H-"+n+"L-"+a+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2),n=lt(e/2,2),i=lt(e*zc/2,2);return Jt(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2),n=lt(e/2,2),i=lt(e*zc/2,2);return Jt(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.924,2),n=lt(e*.383,2);return Jt(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(Zt(r))return Xt;var a=e*1.4,n=lt(a*.225,2),i=lt(a*.951,2),o=lt(a*.363,2),l=lt(a*.588,2),s=lt(-a,2),f=lt(a*-.309,2),u=lt(a*.118,2),c=lt(a*.809,2),v=lt(a*.382,2);return Jt(r,t,"M"+n+","+f+"H"+i+"L"+o+","+u+"L"+l+","+c+"L0,"+v+"L-"+l+","+c+"L-"+o+","+u+"L-"+i+","+f+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.66,2),n=lt(e*.38,2),i=lt(e*.76,2);return Jt(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*zc*.8,2),n=lt(e*.8,2),i=lt(e*1.6,2),o=lt(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Jt(r,t,"M-"+a+","+n+l+a+","+n+l+"0,-"+i+l+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*zc*.8,2),n=lt(e*.8,2),i=lt(e*1.6,2),o=lt(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Jt(r,t,"M"+a+",-"+n+l+"-"+a+",-"+n+l+"0,"+i+l+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.1,2),n=lt(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Jt(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.4,2),n=lt(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Jt(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*.7,2),n=lt(e*1.4,2);return Jt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.4,2),n=lt(e*.7,2);return Jt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return Jt(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return Jt(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return Jt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2),n=lt(e/TD,2);return Jt(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return Jt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return Jt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.3,2);return Jt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.3,2),n=lt(e*.65,2);return Jt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.4,2);return Jt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return Jt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.2,2),n=lt(e*.85,2);return Jt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e/2,2),n=lt(e,2);return Jt(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.2,2),n=lt(e*1.6,2),i=lt(e*.8,2);return Jt(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.2,2),n=lt(e*1.6,2),i=lt(e*.8,2);return Jt(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.2,2),n=lt(e*1.6,2),i=lt(e*.8,2);return Jt(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.2,2),n=lt(e*1.6,2),i=lt(e*.8,2);return Jt(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.4,2);return Jt(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*1.4,2);return Jt(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return Jt(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2);return Jt(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2),n=lt(e*2,2);return Jt(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2),n=lt(e*2,2);return Jt(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*2,2),n=lt(e,2);return Jt(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*2,2),n=lt(e,2);return Jt(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2),n=lt(e*2,2);return Jt(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e,2),n=lt(e*2,2);return Jt(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*2,2),n=lt(e,2);return Jt(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Zt(r))return Xt;var a=lt(e*2,2),n=lt(e,2);return Jt(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Zt(r))return Xt;var a=z4/2.5,n=2*e*G4(a),i=2*e*U4(a);return Jt(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Zt(r))return Xt;var a=z4/4,n=2*e*G4(a),i=2*e*U4(a);return Jt(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Zt(e){return e===null}var MD,SD,ED,kD;function Jt(e,r,t){if((!e||e%360===0)&&!r)return t;if(ED===e&&kD===r&&MD===t)return SD;ED=e,kD=r,MD=t;function a(m,b){var A=G4(m),_=U4(m),x=b[0],T=b[1]+(r||0);return[x*A-T*_,x*_+T*A]}for(var n=e/180*z4,i=0,o=0,l=rue(t),s="",f=0;f{"use strict";var bi=da(),Ha=Ur(),tue=Ha.numberFormat,L0=ga(),X4=Es(),S2=It(),zi=ha(),aue=gd(),am=Ha.strTranslate,E2=po(),nue=Ic(),iue=ho(),oue=iue.LINE_SPACING,zD=Jh().DESELECTDIM,lue=Ri(),sue=I4(),fue=Cu().appendArrayPointValue,bt=JD.exports={};bt.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,f=r.lineposition,u=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(zi.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),u&&e.style("text-transform",H4(cue(u))),s&&e.style("text-shadow",s==="auto"?E2.makeTextShadow(zi.contrast(i)):H4(s)),f&&e.style("text-decoration-line",H4(vue(f)))};function H4(e){return e==="none"?void 0:e}var uue={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function cue(e){return uue[e]}function vue(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}bt.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};bt.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};bt.setRect=function(e,r,t,a,n){e.call(bt.setPosition,r,t).call(bt.setSize,a,n)};bt.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(L0(n)&&L0(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",am(n,i));else return!1;return!0};bt.translatePoints=function(e,r,t){e.each(function(a){var n=bi.select(this);bt.translatePoint(a,n,r,t)})};bt.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};bt.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,o=i.xcalendar,l=i.ycalendar,s=S2.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(f){bt.hideOutsideRangePoint(f,bi.select(this),t,a,o,l)})})}};bt.crispRound=function(e,r,t){return!r||!L0(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};bt.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=n||i.dash||"";zi.stroke(r,a||i.color),bt.dashLine(r,l,o)};bt.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";bi.select(this).call(zi.stroke,t||i.color).call(bt.dashLine,l,o)})};bt.dashLine=function(e,r,t){t=+t||0,r=bt.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};bt.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function GD(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=bt.getPatternAttr,l=n&&(o(n.shape,0,"")||o(n.path,0,""));if(l){var s=o(n.bgcolor,0,null),f=o(n.fgcolor,0,null),u=n.fgopacity,c=o(n.size,0,8),v=o(n.solidity,0,.3),d=r.uid;bt.pattern(e,"point",t,d,l,c,v,void 0,n.fillmode,s,f,u)}else if(i&&i.type!=="none"){var p=i.type,g="scatterfill-"+r.uid;if(a&&(g="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var m,b;p==="horizontal"?(m={x:i.start,y:0},b={x:i.stop,y:0}):p==="vertical"&&(m={x:0,y:i.start},b={x:0,y:i.stop}),m.x=r._xA.c2p(m.x===void 0?r._extremes.x.min[0].val:m.x,!0),m.y=r._yA.c2p(m.y===void 0?r._extremes.y.min[0].val:m.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(VD,t,g,"linear",i.colorscale,"fill",m,b,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(bt.gradient,t,g,p,i.colorscale,"fill")}else r.fillcolor&&e.call(zi.fill,r.fillcolor)}bt.singleFillStyle=function(e,r){var t=bi.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};GD(e,n,r,!1)};bt.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=bi.select(this);a[0].trace&&GD(n,a[0].trace,r,t)})};var DD=LD();bt.symbolNames=[];bt.symbolFuncs=[];bt.symbolBackOffs=[];bt.symbolNeedLines={};bt.symbolNoDot={};bt.symbolNoFill={};bt.symbolList=[];Object.keys(DD).forEach(function(e){var r=DD[e],t=r.n;bt.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),bt.symbolNames[t]=e,bt.symbolFuncs[t]=r.f,bt.symbolBackOffs[t]=r.backoff||0,r.needLine&&(bt.symbolNeedLines[t]=!0),r.noDot?bt.symbolNoDot[t]=!0:bt.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(bt.symbolNoFill[t]=!0)});var hue=bt.symbolNames.length,due="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";bt.symbolNumber=function(e){if(L0(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=bt.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=hue||e>=400?0:Math.floor(Math.max(e,0))};function UD(e,r,t,a){var n=e%100;return bt.symbolFuncs[n](r,t,a)+(e>=200?due:"")}var FD=tue("~f"),HD={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};bt.gradient=function(e,r,t,a,n,i){var o=HD[a];return VD(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function VD(e,r,t,a,n,i,o,l,s,f){var u=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:f}:a==="radial"&&(c={node:"radialGradient",reversed:f});for(var v=new Array(u),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var f=bt.symbolNumber(e.mx||o.symbol)||0;e.om=f%200>=100;var u=$4(e,t),c=J4(e,t);r.attr("d",UD(f,s,u,c))}var v=!1,d,p,g;if(e.so)g=l.outlierwidth,p=l.outliercolor,d=o.outliercolor;else{var m=(l||{}).width;g=(e.mlw+1||m+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):Ha.isArrayOrTypedArray(l.color)?p=zi.defaultLine:p=l.color,Ha.isArrayOrTypedArray(o.color)&&(d=zi.defaultLine,v=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}if(e.om)r.call(zi.stroke,d).style({"stroke-width":(g||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:g)+"px");var b=o.gradient,A=e.mgt;A?v=!0:A=b&&b.type,Ha.isArrayOrTypedArray(A)&&(A=A[0],HD[A]||(A=0));var _=o.pattern,x=bt.getPatternAttr,T=_&&(x(_.shape,e.i,"")||x(_.path,e.i,""));if(A&&A!=="none"){var E=e.mgc;E?v=!0:E=b.color;var S=t.uid;v&&(S+="-"+e.i),bt.gradient(r,n,S,A,[[0,E],[1,d]],"fill")}else if(T){var k=!1,F=_.fgcolor;!F&&i&&i.color&&(F=i.color,k=!0);var O=x(F,e.i,i&&i.color||null),I=x(_.bgcolor,e.i,null),R=_.fgopacity,H=x(_.size,e.i,8),X=x(_.solidity,e.i,.3);k=k||e.mcc||Ha.isArrayOrTypedArray(_.shape)||Ha.isArrayOrTypedArray(_.path)||Ha.isArrayOrTypedArray(_.bgcolor)||Ha.isArrayOrTypedArray(_.fgcolor)||Ha.isArrayOrTypedArray(_.size)||Ha.isArrayOrTypedArray(_.solidity);var le=t.uid;k&&(le+="-"+e.i),bt.pattern(r,"point",n,le,T,H,X,e.mcc,_.fillmode,I,O,R)}else Ha.isArrayOrTypedArray(d)?zi.fill(r,d[e.i]):zi.fill(r,d);g&&zi.stroke(r,p)}};bt.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=bt.tryColorscale(t,""),r.lineScale=bt.tryColorscale(t,"line"),S2.traceIs(e,"symbols")&&(r.ms2mrc=lue.isBubble(e)?sue(e):function(){return(t.size||6)/2}),e.selectedpoints&&Ha.extendFlat(r,bt.makeSelectedPointStyleFns(e)),r};bt.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},o=a.marker||{},l=n.opacity,s=i.opacity,f=o.opacity,u=s!==void 0,c=f!==void 0;(Ha.isArrayOrTypedArray(l)||u||c)&&(r.selectedOpacityFn=function(x){var T=x.mo===void 0?n.opacity:x.mo;return x.selected?u?s:T:c?f:zD*T});var v=n.color,d=i.color,p=o.color;(d||p)&&(r.selectedColorFn=function(x){var T=x.mcc||v;return x.selected?d||T:p||T});var g=n.size,m=i.size,b=o.size,A=m!==void 0,_=b!==void 0;return S2.traceIs(e,"symbols")&&(A||_)&&(r.selectedSizeFn=function(x){var T=x.mrc||g/2;return x.selected?A?m/2:T:_?b/2:T}),r};bt.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},o=a.textfont||{},l=n.color,s=i.color,f=o.color;return r.selectedTextColorFn=function(u){var c=u.tc||l;return u.selected?s||c:f||(s?c:zi.addOpacity(c,zD))},r};bt.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=bt.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&n.push(function(i,o){zi.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&n.push(function(i,o){var l=o.mx||a.symbol||0,s=t.selectedSizeFn(o);i.attr("d",UD(bt.symbolNumber(l),s,$4(o,r),J4(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=bi.select(this),l=0;l0?t:0}bt.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=bt.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=bi.select(this),f=i?Ha.extractOption(l,r,"txt","texttemplate"):Ha.extractOption(l,r,"tx","text");if(!f&&f!==0){s.remove();return}if(i){var u=r._module.formatLabels,c=u?u(l,r,o):{},v={};fue(v,r,l.i);var d=r._meta||{};f=Ha.texttemplateString(f,c,o._d3locale,v,l,d)}var p=l.tp||r.textposition,g=WD(l,r),m=a?a(l):l.tc||r.textfont.color;s.call(bt.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:g,color:m}).text(f).call(E2.convertToTspans,t).call(YD,p,g,l.mrc)})}};bt.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=bt.makeSelectedTextStyleFns(r);e.each(function(a){var n=bi.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=WD(a,r);zi.fill(n,i);var s=S2.traceIs(r,"bar-like");YD(n,o,l,a.mrc2||a.mrc,s)})}};var RD=.5;bt.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||x>=u&&x<=s)&&(T<=c&&T>=f||T>=c&&T<=f)&&(e=[x,T])}return e}bt.applyBackoff=ZD;bt.makeTester=function(){var e=Ha.ensureSingleById(bi.select("body"),"svg","js-plotly-tester",function(t){t.attr(nue.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=Ha.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});bt.tester=e,bt.testref=r};bt.savedBBoxes={};var Y4=0,yue=1e4;bt.bBox=function(e,r,t){t||(t=qD(e));var a;if(t){if(a=bt.savedBBoxes[t],a)return Ha.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=qD(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=bt.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,a=bt.savedBBoxes[t],a)return Ha.extendFlat({},a)}}var f,u;r?f=e:(u=bt.tester.node(),f=e.cloneNode(!0),u.appendChild(f)),bi.select(f).attr("transform",null).call(E2.positionText,0,0);var c=f.getBoundingClientRect(),v=bt.testref.node().getBoundingClientRect();r||u.removeChild(f);var d={height:c.height,width:c.width,left:c.left-v.left,top:c.top-v.top,right:c.right-v.left,bottom:c.bottom-v.top};return Y4>=yue&&(bt.savedBBoxes={},Y4=0),t&&(bt.savedBBoxes[t]=d),Y4++,Ha.extendFlat({},d)};function qD(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}bt.setClipUrl=function(e,r,t){e.attr("clip-path",Z4(r,t))};function Z4(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}bt.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};bt.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||0,t=t||0,o=o.replace(a,"").trim(),o+=am(r,t),o=o.trim(),e[i]("transform",o),o};bt.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};bt.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||1,t=t||1,o=o.replace(a,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var gue=/\s*sc.*/;bt.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(gue,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var bue=/translate\([^)]*\)\s*$/;bt.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=bi.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(bue);r===1&&t===1?a=[]:a=[am(o,l),"scale("+r+","+t+")",am(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function J4(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}bt.getMarkerStandoff=J4;var tm=Math.atan2,E0=Math.cos,xd=Math.sin;function PD(e,r){var t=r[0],a=r[1];return[t*E0(e)-a*xd(e),t*xd(e)+a*E0(e)]}var ND,OD,ID,BD,W4,j4;function $4(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||Ha.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);a=o[0],n=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)a=l.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var f=e.lonlat[0],u=e.lonlat[1],c=r._geo.project([f,u+1e-5]),v=r._geo.project([f+1e-5,u]),d=tm(v[1]-n,v[0]-a),p=tm(c[1]-n,c[0]-a),g;if(i==="north")g=t/180*Math.PI;else if(i==="previous"){var m=f/180*Math.PI,b=u/180*Math.PI,A=ND/180*Math.PI,_=OD/180*Math.PI,x=A-m,T=E0(_)*xd(x),E=xd(_)*E0(b)-E0(_)*xd(b)*E0(x);g=-tm(T,E)-Math.PI,ND=f,OD=u}var S=PD(d,[E0(g),0]),k=PD(p,[xd(g),0]);t=tm(S[1]+k[1],S[0]+k[0])/Math.PI*180,i==="previous"&&!(j4===r.uid&&e.i===W4+1)&&(t=null)}if(i==="previous"&&!r._geo)if(j4===r.uid&&e.i===W4+1&&L0(a)&&L0(n)){var F=a-ID,O=n-BD,I=r.line&&r.line.shape||"",R=I.slice(I.length-1);R==="h"&&(O=0),R==="v"&&(F=0),t+=tm(O,F)/Math.PI*180+90}else t=null}return ID=a,BD=n,W4=e.i,j4=r.uid,t}bt.getMarkerAngle=$4});var nm=P((RCe,eF)=>{"use strict";var _d=da(),xue=ga(),_ue=gi(),Q4=It(),D0=Ur(),$D=D0.strTranslate,k2=Wa(),C2=ha(),wd=po(),QD=Jh(),wue=ho().OPPOSITE_SIDE,KD=/ [XY][0-9]* /,K4=1.6,ew=1.6;function Aue(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},f=t.attributes,u=t.transform,c=t.containerGroup,v=1,d=n.title,p=(d&&d.text?d.text:"").trim(),g=!1,m=d&&d.font?d.font:{},b=m.family,A=m.size,_=m.color,x=m.weight,T=m.style,E=m.variant,S=m.textcase,k=m.lineposition,F=m.shadow,O=t.subtitlePropName,I=!!O,R=t.subtitlePlaceholder,H=(n.title||{}).subtitle||{text:"",font:{}},X=H.text.trim(),le=!1,ae=1,J=H.font,Z=J.family,$=J.size,oe=J.color,ce=J.weight,De=J.style,Ne=J.variant,Ee=J.textcase,Ye=J.lineposition,we=J.shadow,Qe;i==="title.text"?Qe="titleText":i.indexOf("axis")!==-1?Qe="axisTitleText":i.indexOf(!0)&&(Qe="colorbarTitleText");var ze=e._context.edits[Qe];function He(Xr,Kr){return Xr===void 0||Kr===void 0?!1:Xr.replace(KD," % ")===Kr.replace(KD," % ")}p===""?v=0:He(p,o)&&(ze||(p=""),v=.2,g=!0),I&&(X===""?ae=0:He(X,R)&&(ze||(X=""),ae=.2,le=!0)),t._meta?p=D0.templateString(p,t._meta):a._meta&&(p=D0.templateString(p,a._meta));var $e=p||X||ze,Ue;c||(c=D0.ensureSingle(a._infolayer,"g","g-"+r),Ue=a._hColorbarMoveTitle);var ee=c.selectAll("text."+r).data($e?[0]:[]);ee.enter().append("text"),ee.text(p).attr("class",r),ee.exit().remove();var _e=null,te=r+"-subtitle",Xe=X||ze;if(I&&Xe&&(_e=c.selectAll("text."+te).data(Xe?[0]:[]),_e.enter().append("text"),_e.text(X).attr("class",te),_e.exit().remove()),!$e)return c;function ur(Xr,Kr){D0.syncOrAsync([rr,Pr],{title:Xr,subtitle:Kr})}function rr(Xr){var Kr=Xr.title,Mr=Xr.subtitle,jr;!u&&Ue&&(u={}),u?(jr="",u.rotate&&(jr+="rotate("+[u.rotate,f.x,f.y]+")"),(u.offset||Ue)&&(jr+=$D(0,(u.offset||0)-(Ue||0)))):jr=null,Kr.attr("transform",jr);function Yr(mr){if(mr){var yr=_d.select(mr.node().parentNode).select("."+te);if(!yr.empty()){var Vr=mr.node().getBBox();if(Vr.height){var at=Vr.y+Vr.height+K4*$;yr.attr("y",at)}}}}if(Kr.style("opacity",v*C2.opacity(_)).call(k2.font,{color:C2.rgb(_),size:_d.round(A,2),family:b,weight:x,style:T,variant:E,textcase:S,shadow:F,lineposition:k}).attr(f).call(wd.convertToTspans,e,Yr),Mr){var Fe=c.select("."+r+"-math-group"),lr=Kr.node().getBBox(),vr=Fe.node()?Fe.node().getBBox():void 0,Tt=vr?vr.y+vr.height+K4*$:lr.y+lr.height+ew*$,ht=D0.extendFlat({},f,{y:Tt});Mr.attr("transform",jr),Mr.style("opacity",ae*C2.opacity(oe)).call(k2.font,{color:C2.rgb(oe),size:_d.round($,2),family:Z,weight:ce,style:De,variant:Ne,textcase:Ee,shadow:we,lineposition:Ye}).attr(ht).call(wd.convertToTspans,e)}return _ue.previousPromises(e)}function Pr(Xr){var Kr=Xr.title,Mr=_d.select(Kr.node().parentNode);if(s&&s.selection&&s.side&&p){Mr.attr("transform",null);var jr=wue[s.side],Yr=s.side==="left"||s.side==="top"?-1:1,Fe=xue(s.pad)?s.pad:2,lr=k2.bBox(Mr.node()),vr={t:0,b:0,l:0,r:0},Tt=e._fullLayout._reservedMargin;for(var ht in Tt)for(var mr in Tt[ht]){var yr=Tt[ht][mr];vr[mr]=Math.max(vr[mr],yr)}var Vr={left:vr.l,top:vr.t,right:a.width-vr.r,bottom:a.height-vr.b},at=s.maxShift||Yr*(Vr[s.side]-lr[s.side]),Wr=0;if(at<0)Wr=at;else{var Hr=s.offsetLeft||0,ot=s.offsetTop||0;lr.left-=Hr,lr.right-=Hr,lr.top-=ot,lr.bottom-=ot,s.selection.each(function(){var st=k2.bBox(this);D0.bBoxIntersect(lr,st,Fe)&&(Wr=Math.max(Wr,Yr*(st[s.side]-lr[jr])+Fe))}),Wr=Math.min(at,Wr),n._titleScoot=Math.abs(Wr)}if(Wr>0||at<0){var it={left:[-Wr,0],right:[Wr,0],top:[0,-Wr],bottom:[0,Wr]}[s.side];Mr.attr("transform",$D(it[0],it[1]))}}}ee.call(ur,_e);function Or(Xr,Kr){Xr.text(Kr).on("mouseover.opacity",function(){_d.select(this).transition().duration(QD.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){_d.select(this).transition().duration(QD.HIDE_PLACEHOLDER).style("opacity",0)})}if(ze&&(p?ee.on(".opacity",null):(Or(ee,o),g=!0),ee.call(wd.makeEditable,{gd:e}).on("edit",function(Xr){l!==void 0?Q4.call("_guiRestyle",e,i,Xr,l):Q4.call("_guiRelayout",e,i,Xr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ur)}).on("input",function(Xr){this.text(Xr||" ").call(wd.positionText,f.x,f.y)}),I)){if(I&&!p){var wr=ee.node().getBBox(),Lr=wr.y+wr.height+ew*$;_e.attr("y",Lr)}X?_e.on(".opacity",null):(Or(_e,R),le=!0),_e.call(wd.makeEditable,{gd:e}).on("edit",function(Xr){Q4.call("_guiRelayout",e,"title.subtitle.text",Xr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ur)}).on("input",function(Xr){this.text(Xr||" ").call(wd.positionText,_e.attr("x"),_e.attr("y"))})}return ee.classed("js-placeholder",g),_e&&_e.classed("js-placeholder",le),c}eF.exports={draw:Aue,SUBTITLE_PADDING_EM:ew,SUBTITLE_PADDING_MATHJAX_EM:K4}});var O2=P((qCe,iF)=>{"use strict";var Tue=da(),Mue=Wh().utcFormat,$a=Ur(),Sue=$a.numberFormat,Sf=ga(),Gc=$a.cleanNumber,Eue=$a.ms2DateTime,rF=$a.dateTime2ms,Ef=$a.ensureNumber,tF=$a.isArrayOrTypedArray,Uc=Jn(),L2=Uc.FP_SAFE,qs=Uc.BADNUM,kue=Uc.LOG_CLIP,Cue=Uc.ONEWEEK,D2=Uc.ONEDAY,F2=Uc.ONEHOUR,aF=Uc.ONEMIN,nF=Uc.ONESEC,R2=En(),N2=Fi(),q2=N2.HOUR_PATTERN,P2=N2.WEEKDAY_PATTERN;function im(e){return Math.pow(10,e)}function rw(e){return e!=null}iF.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(x,T){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&T&&r.range&&r.range.length===2){var E=r.range[0],S=r.range[1];return .5*(E+S-2*kue*Math.abs(E-S))}else return qs}function o(x,T,E,S){if((S||{}).msUTC&&Sf(x))return+x;var k=rF(x,E||r.calendar);if(k===qs)if(Sf(x)){x=+x;var F=Math.floor($a.mod(x+.05,1)*10),O=Math.round(x-F/10);k=rF(new Date(O))+F/10}else return qs;return k}function l(x,T,E){return Eue(x,T,E||r.calendar)}function s(x){return r._categories[Math.round(x)]}function f(x){if(rw(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var T=r._categories.length-1;return r._categoriesMap[x]=T,T}return qs}function u(x,T){for(var E=new Array(T),S=0;Sr.range[1]&&(E=!E);for(var S=E?-1:1,k=S*x,F=0,O=0;OR)F=O+1;else{F=k<(I+R)/2?O:O+1;break}}var H=r._B[F]||0;return isFinite(H)?p(x,r._m2,H):0},b=function(x){var T=r._rangebreaks.length;if(!T)return g(x,r._m,r._b);for(var E=0,S=0;Sr._rangebreaks[S].pmax&&(E=S+1);return g(x,r._m2,r._B[E])}}r.c2l=r.type==="log"?i:Ef,r.l2c=r.type==="log"?im:Ef,r.l2p=m,r.p2l=b,r.c2p=r.type==="log"?function(x,T){return m(i(x,T))}:m,r.p2c=r.type==="log"?function(x){return im(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Gc,r.c2d=r.c2r=r.l2d=r.l2r=Ef,r.d2p=r.r2p=function(x){return r.l2p(Gc(x))},r.p2d=r.p2r=b,r.cleanPos=Ef):r.type==="log"?(r.d2r=r.d2l=function(x,T){return i(Gc(x),T)},r.r2d=r.r2c=function(x){return im(Gc(x))},r.d2c=r.r2l=Gc,r.c2d=r.l2r=Ef,r.c2r=i,r.l2d=im,r.d2p=function(x,T){return r.l2p(r.d2r(x,T))},r.p2d=function(x){return im(b(x))},r.r2p=function(x){return r.l2p(Gc(x))},r.p2r=b,r.cleanPos=Ef):r.type==="date"?(r.d2r=r.r2d=$a.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(x,T,E){return r.l2p(o(x,0,E))},r.p2d=r.p2r=function(x,T,E){return l(b(x),T,E)},r.cleanPos=function(x){return $a.cleanDate(x,qs,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=f,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var T=d(x);return T!==void 0?T:r.fraction2r(.5)},r.l2r=r.c2r=Ef,r.r2l=d,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:Ef(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var T=v(x);return T!==void 0?T:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Ef,r.r2l=v,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:Ef(x)},r.setupMultiCategory=function(x){var T=r._traceIndices,E,S,k=r._matchGroup;if(k&&r._categories.length===0){for(var F in k)if(F!==a){var O=t[R2.id2name(F)];T=T.concat(O._traceIndices)}}var I=[[0,{}],[0,{}]],R=[];for(E=0;EO[1]&&(S[F?0:1]=E),S[0]===S[1]){var I=r.l2r(T),R=r.l2r(E);if(T!==void 0){var H=I+1;E!==void 0&&(H=Math.min(H,R)),S[F?1:0]=H}if(E!==void 0){var X=R+1;T!==void 0&&(X=Math.max(X,I)),S[F?0:1]=X}}}},r.cleanRange=function(x,T){r._cleanRange(x,T),r.limitRange(x)},r._cleanRange=function(x,T){T||(T={}),x||(x="range");var E=$a.nestedProperty(r,x).get(),S,k;if(r.type==="date"?k=$a.dfltRange(r.calendar):n==="y"?k=N2.DFLTRANGEY:r._name==="realaxis"?k=[0,1]:k=T.dfltRange||N2.DFLTRANGEX,k=k.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(k[0]=0),!E||E.length!==2){$a.nestedProperty(r,x).set(k);return}var F=E[0]===null,O=E[1]===null;for(r.type==="date"&&!r.autorange&&(E[0]=$a.cleanDate(E[0],qs,r.calendar),E[1]=$a.cleanDate(E[1],qs,r.calendar)),S=0;S<2;S++)if(r.type==="date"){if(!$a.isDateTime(E[S],r.calendar)){r[x]=k;break}if(r.r2l(E[0])===r.r2l(E[1])){var I=$a.constrain(r.r2l(E[0]),$a.MIN_MS+1e3,$a.MAX_MS-1e3);E[0]=r.l2r(I-1e3),E[1]=r.l2r(I+1e3);break}}else{if(!Sf(E[S]))if(!(F||O)&&Sf(E[1-S]))E[S]=E[1-S]*(S?10:.1);else{r[x]=k;break}if(E[S]<-L2?E[S]=-L2:E[S]>L2&&(E[S]=L2),E[0]===E[1]){var R=Math.max(1,Math.abs(E[0]*1e-6));E[0]-=R,E[1]+=R}}},r.setScale=function(x){var T=t._size;if(r.overlaying){var E=R2.getFromId({_fullLayout:t},r.overlaying);r.domain=E.domain}var S=x&&r._r?"_r":"range",k=r.calendar;r.cleanRange(S);var F=r.r2l(r[S][0],k),O=r.r2l(r[S][1],k),I=n==="y";if(I?(r._offset=T.t+(1-r.domain[1])*T.h,r._length=T.h*(r.domain[1]-r.domain[0]),r._m=r._length/(F-O),r._b=-r._m*O):(r._offset=T.l+r.domain[0]*T.w,r._length=T.w*(r.domain[1]-r.domain[0]),r._m=r._length/(O-F),r._b=-r._m*F),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var R,H;if(r._rangebreaks=r.locateBreaks(Math.min(F,O),Math.max(F,O)),r._rangebreaks.length){for(R=0;RO&&(X=!X),X&&r._rangebreaks.reverse();var le=X?-1:1;for(r._m2=le*r._length/(Math.abs(O-F)-r._lBreaks),r._B.push(-r._m2*(I?O:F)),R=0;Rk&&(k+=7,Fk&&(k+=24,F=S&&F=S&&x=we.min&&(Dewe.max&&(we.max=Ne),Ee=!1)}Ee&&O.push({min:De,max:Ne})}};for(E=0;E{"use strict";var oF=ga(),tw=Ur(),Lue=Jn().BADNUM,I2=tw.isArrayOrTypedArray,Due=tw.isDateTime,Fue=tw.cleanNumber,lF=Math.round;fF.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(I2(n)&&!n.length)return"-";if(!i&&Oue(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;li*2}function sF(e){return Math.max(1,(e-1)/1e3)}function Nue(e,r){for(var t=e.length,a=sF(t),n=0,i=0,o={},l=0;ln*2}function Oue(e){return I2(e[0])&&I2(e[1])}});var Ad=P((NCe,yF)=>{"use strict";var Iue=da(),hF=ga(),Hc=Ur(),B2=Jn().FP_SAFE,Bue=It(),zue=Wa(),dF=En(),Gue=dF.getFromId,Uue=dF.isLinked;yF.exports={applyAutorangeOptions:mF,getAutoRange:nw,makePadFn:iw,doAutoRange:Vue,findExtremes:Yue,concatExtremes:sw};function nw(e,r){var t,a,n=[],i=e._fullLayout,o=iw(i,r,0),l=iw(i,r,1),s=sw(e,r),f=s.min,u=s.max;if(f.length===0||u.length===0)return Hc.simpleMap(r.range,r.r2l);var c=f[0].val,v=u[0].val;for(t=1;t0&&(O=_-o(E)-l(S),O>x?I/O>T&&(k=E,F=S,T=I/O):I/_>T&&(k={val:E.val,nopad:1},F={val:S.val,nopad:1},T=I/_));function R(J,Z){return Math.max(J,l(Z))}if(c===v){var H=c-1,X=c+1;if(b)if(c===0)n=[0,1];else{var le=(c>0?u:f).reduce(R,0),ae=c/(1-Math.min(.5,le/_));n=c>0?[0,ae]:[ae,0]}else A?n=[Math.max(0,H),Math.max(1,X)]:n=[H,X]}else b?(k.val>=0&&(k={val:0,nopad:1}),F.val<=0&&(F={val:0,nopad:1})):A&&(k.val-T*o(k)<0&&(k={val:0,nopad:1}),F.val<=0&&(F={val:1,nopad:1})),T=(F.val-k.val-uF(r,E.val,S.val))/(_-o(k)-l(F)),n=[k.val-T*o(k),F.val+T*l(F)];return n=mF(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Hc.simpleMap(n,r.l2r||Number)}function uF(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),E=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),S=x(t.vpadplus||t.vpad),k=x(t.vpadminus||t.vpad);if(!f){if(A=1/0,_=-1/0,s)for(c=0;c0&&(A=v),v>_&&v-B2&&(A=v),v>_&&v=I;c--)O(c);return{min:a,max:n,opts:t}}function ow(e,r,t,a){pF(e,r,t,a,Wue)}function lw(e,r,t,a){pF(e,r,t,a,jue)}function pF(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,s=0;s=t&&(f.extrapad||!o)){l=!1;break}else n(r,f.val)&&f.pad<=t&&(o||!f.extrapad)&&(e.splice(s,1),s--)}if(l){var u=i&&r===0;e.push({val:r,pad:u?0:t,extrapad:u?!1:o})}}function vF(e){return hF(e)&&Math.abs(e)=r}function Xue(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&z2(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&z2(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function Zue(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&z2(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&z2(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function z2(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,a=s)}}return t=Xue(t,r),a=Zue(a,r),[t,a]}});var hn=P((OCe,BF)=>{"use strict";var Hl=da(),Qn=ga(),Td=gi(),lm=It(),Bt=Ur(),Md=Bt.strTranslate,F0=po(),Jue=nm(),sm=ha(),bl=Wa(),$ue=Ul(),gF=M4(),Gi=Jn(),Que=Gi.ONEMAXYEAR,H2=Gi.ONEAVGYEAR,V2=Gi.ONEMINYEAR,Kue=Gi.ONEMAXQUARTER,vw=Gi.ONEAVGQUARTER,Y2=Gi.ONEMINQUARTER,ece=Gi.ONEMAXMONTH,Sd=Gi.ONEAVGMONTH,W2=Gi.ONEMINMONTH,xl=Gi.ONEWEEK,mo=Gi.ONEDAY,Vc=mo/2,Cf=Gi.ONEHOUR,fm=Gi.ONEMIN,j2=Gi.ONESEC,rce=Gi.ONEMILLI,tce=Gi.ONEMICROSEC,R0=Gi.MINUS_SIGN,J2=Gi.BADNUM,hw={K:"zeroline"},dw={K:"gridline",L:"path"},pw={K:"minor-gridline",L:"path"},CF={K:"tick",L:"path"},bF={K:"tick",L:"text"},xF={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},$2=ho(),om=$2.MID_SHIFT,q0=$2.CAP_SHIFT,um=$2.LINE_SPACING,ace=$2.OPPOSITE_SIDE,X2=3,rt=BF.exports={};rt.setConvert=O2();var nce=aw(),Lu=En(),ice=Lu.idSort,oce=Lu.isLinked;rt.id2name=Lu.id2name;rt.name2id=Lu.name2id;rt.cleanId=Lu.cleanId;rt.list=Lu.list;rt.listIds=Lu.listIds;rt.getFromId=Lu.getFromId;rt.getFromTrace=Lu.getFromTrace;var LF=Ad();rt.getAutoRange=LF.getAutoRange;rt.findExtremes=LF.findExtremes;var lce=1e-4;function bw(e){var r=(e[1]-e[0])*lce;return[e[0]-r,e[1]+r]}rt.coerceRef=function(e,r,t,a,n,i){var o=a.charAt(a.length-1),l=t._fullLayout._subplots[o+"axis"],s=a+"ref",f={};return n||(n=l[0]||(typeof i=="string"?i:i[0])),i||(i=n),l=l.concat(l.map(function(u){return u+" domain"})),f[s]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},Bt.coerce(e,r,f,s)};rt.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};rt.coercePosition=function(e,r,t,a,n,i){var o,l,s=rt.getRefType(a);if(s!=="range")o=Bt.ensureNumber,l=t(n,i);else{var f=rt.getFromId(r,a);i=f.fraction2r(i),l=t(n,i),o=f.cleanPos}e[n]=o(l)};rt.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?Bt.ensureNumber:rt.getFromId(r,t).cleanPos;return a(e)};rt.redrawComponents=function(e,r){r=r||rt.listIds(e);var t=e._fullLayout;function a(n,i,o,l){for(var s=lm.getComponentMethod(n,i),f={},u=0;u2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};rt.saveRangeInitial=function(e,r){for(var t=rt.list(e,"",!0),a=!1,n=0;nc*.3||f(a)||f(n))){var v=t.dtick/2;e+=e+vo){var l=Number(t.substr(1));i.exactYears>o&&l%12===0?e=rt.tickIncrement(e,"M6","reverse")+mo*1.5:i.exactMonths>o?e=rt.tickIncrement(e,"M1","reverse")+mo*15.5:e-=Vc;var s=rt.tickIncrement(e,t);if(s<=a)return s}return e}rt.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var a=r.dtick&&Qn(r._tmin),n;if(a){var i=rt.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=Bt.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Bt.simpleMap(n,r.l2r),e._isMinor=!0,rt.prepTicks(e,t),a){var l=Qn(r.dtick),s=Qn(e.dtick),f=l?r.dtick:+r.dtick.substring(1),u=s?e.dtick:+e.dtick.substring(1);l&&s?fw(f,u)?f===2*xl&&u===2*mo&&(e.dtick=xl):f===2*xl&&u===3*mo?e.dtick=xl:f===xl&&!(r._input.minor||{}).nticks?e.dtick=mo:AF(f/u,2.5)?e.dtick=f/2:e.dtick=f:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":fw(f,u)?f>=12&&u===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?fw(f,u)||(e.dtick=AF(f/u,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function fw(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function AF(e,r){return Math.abs(e/r-1)<.001}rt.prepTicks=function(e,r){var t=Bt.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?Bt.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=Bt.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,rt.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,o=a):(i=a,o=a);var l=e[i].value,s=e[o].value,f=Math.abs(s-l),u=t||f,c=0;u>=V2?f>=V2&&f<=Que?c=f:c=H2:t===vw&&u>=Y2?f>=Y2&&f<=Kue?c=f:c=vw:u>=W2?f>=W2&&f<=ece?c=f:c=Sd:t===xl&&u>=xl?c=xl:u>=mo?c=mo:t===Vc&&u>=Vc?c=Vc:t===Cf&&u>=Cf&&(c=Cf);var v;c>=f&&(c=f,v=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,g=0,m=0;mxl&&(c=f)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}rt.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||Bt.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],f=Bt.simpleMap(r.range,r.r2l,void 0,void 0,t),u=f[1]=(_?0:1);x--){var T=!x;x?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var E=x?r:Bt.extendFlat({},r,r.minor);if(T?rt.prepMinorTicks(E,r,t):rt.prepTicks(E,t),E.tickmode==="array"){x?(m=[],p=TF(r,!T)):(b=[],g=TF(r,!T));continue}if(E.tickmode==="sync"){m=[],p=hce(r);continue}var S=bw(f),k=S[0],F=S[1],O=Qn(E.dtick),I=a==="log"&&!(O||E.dtick.charAt(0)==="L"),R=rt.tickFirst(E,t);if(x){if(r._tmin=R,R=F:X<=F;X=rt.tickIncrement(X,J,u,n)){if(x&&le++,E.rangebreaks&&!u){if(X=v)break}if(m.length>d||X===H)break;H=X;var Z={value:X};x?(I&&X!==(X|0)&&(Z.simpleLabel=!0),i>1&&le%i&&(Z.skipLabel=!0),m.push(Z)):(Z.minor=!0,b.push(Z))}}if(!b||b.length<2)s=!1;else{var $=(b[1].value-b[0].value)*(l?-1:1);Oce($,r.tickformat)||(s=!1)}if(!s)A=m;else{var oe=m.concat(b);o&&m.length&&(oe=oe.slice(1)),oe=oe.sort(function(Lr,Xr){return Lr.value-Xr.value}).filter(function(Lr,Xr,Kr){return Xr===0||Lr.value!==Kr[Xr-1].value});var ce=oe.map(function(Lr,Xr){return Lr.minor===void 0&&!Lr.skipLabel?Xr:null}).filter(function(Lr){return Lr!==null});ce.forEach(function(Lr){s.map(function(Xr){var Kr=Lr+Xr;Kr>=0&&Kr-1;$e--){if(m[$e].drop){m.splice($e,1);continue}m[$e].value=cw(m[$e].value,r);var te=r.c2p(m[$e].value);(Ue?_e>te-ee:_ev||Mrv&&(Kr.periodX=v),Mrn&&vH2)r/=H2,a=n(10),e.dtick="M"+12*kf(r,a,G2);else if(i>Sd)r/=Sd,e.dtick="M"+kf(r,1,MF);else if(i>mo){if(e.dtick=kf(r,mo,e._hasDayOfWeekBreaks?[1,2,7,14]:dce),!t){var o=rt.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Bt.dateTick0(e.calendar,2):e.tick0=Bt.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>Cf?e.dtick=kf(r,Cf,MF):i>fm?e.dtick=kf(r,fm,SF):i>j2?e.dtick=kf(r,j2,SF):(a=n(10),e.dtick=kf(r,a,G2))}else if(e.type==="log"){e.tick0=0;var s=Bt.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var f=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/f,a=n(10),e.dtick="L"+kf(r,a,G2)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):ww(e)?(e.tick0=0,a=1,e.dtick=kf(r,a,pce)):(e.tick0=0,a=n(10),e.dtick=kf(r,a,G2));if(e.dtick===0&&(e.dtick=1),!Qn(e.dtick)&&typeof e.dtick!="string"){var u=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(u)}};function qF(e){var r=e.dtick;if(e._tickexponent=0,!Qn(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.substr(5)!=="01-01"?e._tickround="d":e._tickround=+r.substr(1)%12===0?"y":"m";else if(r>=mo&&n<=10||r>=mo*15)e._tickround="d";else if(r>=fm&&n<=16||r>=Cf)e._tickround="M";else if(r>=j2&&n<=19||r>=fm)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(Qn(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);Qn(r)||(r=Number(r.substr(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),f=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>f&&(Z2(e.exponentformat)&&!xw(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}rt.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(Qn(r))return Bt.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.substr(1));if(i==="M")return Bt.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?RF:FF,s=e+n*.01,f=Bt.roundUp(Bt.mod(s,1),l,t);return Math.floor(s)+Math.log(Hl.round(Math.pow(10,f),1))/Math.LN10}throw"unrecognized dtick "+String(r)};rt.tickFirst=function(e,r){var t=e.r2l||Number,a=Bt.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&b<=e._length?m:null};if(i&&Bt.isArrayOrTypedArray(e.ticktext)){var c=Bt.simpleMap(e.range,e.r2l),v=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(f=0;f"+l;else{var f=vm(e),u=e._trueSide||e.side;(!f&&u==="top"||f&&u==="bottom")&&(o+="
")}r.text=o}function yce(e,r,t,a,n){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=cm(Math.pow(10,o),e,n,a);else if(Qn(i)||s==="D"&&Bt.mod(o+.01,1)<.1){var f=Math.round(o),u=Math.abs(f),c=e.exponentformat;c==="power"||Z2(c)&&xw(f)?(f===0?r.text=1:f===1?r.text="10":r.text="10"+(f>1?"":R0)+u+"",r.fontSize*=1.25):(c==="e"||c==="E")&&u>2?r.text="1"+c+(f>0?"+":R0)+u:(r.text=cm(Math.pow(10,o),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,Bt.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var v=String(r.text).charAt(0);(v==="0"||v==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function gce(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function bce(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function xce(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=cm(r.x,e,n,a)}function _ce(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=wce(i);if(o[1]>=100)r.text=cm(Bt.deg2rad(r.x),e,n,a);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=R0+r.text)}}}else r.text=cm(r.x,e,n,a)}function wce(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function a(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var n=a(e),i=e*n,o=Math.abs(t(i,n));return[Math.round(i/o),Math.round(n/o)]}var Ace=["f","p","n","\u03BC","m","","k","M","G","T"];function Z2(e){return e==="SI"||e==="B"}function xw(e){return e>14||e<-15}function cm(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=rt.getTickFormat(r),f=r.separatethousands;if(a){var u={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Qn(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};qF(u),i=(Number(u._tickround)||0)+4,l=u._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,R0);var c=Math.pow(10,-i)/2;if(o==="none"&&(l=0),e=Math.abs(e),e"+p+"":o==="B"&&l===9?e+="B":Z2(o)&&(e+=Ace[l/3+5])}return n?R0+e:e}rt.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Sd}function a(s,f){var u=["L","D"];if(typeof s==typeof f){if(typeof s=="number")return s-f;var c=u.indexOf(s.charAt(0)),v=u.indexOf(f.charAt(0));return c===v?Number(s.replace(/(L|D)/g,""))-Number(f.replace(/(L|D)/g,"")):c-v}else return typeof s=="number"?1:-1}function n(s,f,u){var c=u||function(p){return p},v=f[0],d=f[1];return(!v&&typeof v!="number"||c(v)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,f){var u=f[0]===null,c=f[1]===null,v=a(s,f[0])>=0,d=a(s,f[1])<=0;return(u||v)&&(c||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(u,1).shift())}});var l={false:{left:0,right:0}};return Bt.syncOrAsync(n.map(function(s){return function(){if(s){var f=rt.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var u=rt.drawOne(e,f,t);return f._shiftPusher&&gw(f,f._fullDepth||0,l,!0),f._r=f.range.slice(),f._rl=Bt.simpleMap(f._r,f.r2l),u}}}))};rt.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,f=r._id,u=f.charAt(0),c=rt.counterLetter(f),v=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!v)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),gw(r,p,a,!0),gw(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=Nce(r,a));var g=v[u+"axislayer"],m=r._mainLinePosition,b=m+=r._shift,A=r._mainMirrorPosition,_=r._vals=rt.calcTicks(r),x=[r.mirror,b,A].join("_");for(i=0;i<_.length;i++)_[i].axInfo=x;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var T={};function E(wr){var Lr=f+(wr||"tick");return T[Lr]||(T[Lr]=Ece(r,Lr,b)),T[Lr]}if(r.visible){var S=rt.makeTransTickFn(r),k=rt.makeTransTickLabelFn(r),F,O,I=r.ticks==="inside",R=r.ticks==="outside";if(r.tickson==="boundaries"){var H=Tce(r,_);O=rt.clipEnds(r,H),F=I?O:H}else O=rt.clipEnds(r,_),F=I&&r.ticklabelmode!=="period"?O:_;var X=r._gridVals=O,le=Sce(r,_);if(!s._hasOnlyLargeSploms){var ae=r._subplotsWith,J={};for(i=0;i0?Mr.bottom-Xr:0,Kr))));var lr=0,vr=0;if(r._shiftPusher&&(lr=Math.max(Kr,Mr.height>0?wr==="l"?Xr-Mr.left:Mr.right-Xr:0),r.title.text!==s._dfltTitle[u]&&(vr=(r._titleStandoff||0)+(r._titleScoot||0),wr==="l"&&(vr+=kF(r))),r._fullDepth=Math.max(lr,vr)),r.automargin){jr={x:0,y:0,r:0,l:0,t:0,b:0};var Tt=[0,1],ht=typeof r._shift=="number"?r._shift:0;if(u==="x"){if(wr==="b"?jr[wr]=r._depth:(jr[wr]=r._depth=Math.max(Mr.width>0?Xr-Mr.top:0,Kr),Tt.reverse()),Mr.width>0){var mr=Mr.right-(r._offset+r._length);mr>0&&(jr.xr=1,jr.r=mr);var yr=r._offset-Mr.left;yr>0&&(jr.xl=0,jr.l=yr)}}else if(wr==="l"?(r._depth=Math.max(Mr.height>0?Xr-Mr.left:0,Kr),jr[wr]=r._depth-ht):(r._depth=Math.max(Mr.height>0?Mr.right-Xr:0,Kr),jr[wr]=r._depth+ht,Tt.reverse()),Mr.height>0){var Vr=Mr.bottom-(r._offset+r._length);Vr>0&&(jr.yb=0,jr.b=Vr);var at=r._offset-Mr.top;at>0&&(jr.yt=1,jr.t=at)}jr[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[Tt[0]],r.title.text!==s._dfltTitle[u]&&(jr[wr]+=kF(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Yr={x:0,y:0,r:0,l:0,t:0,b:0},Yr[Lr]=r.linewidth,r.mirror&&r.mirror!==!0&&(Yr[Lr]+=Kr),r.mirror===!0||r.mirror==="ticks"?Yr[c]=r._anchorAxis.domain[Tt[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Yr[c]=[r._counterDomainMin,r._counterDomainMax][Tt[1]]))}Or&&(Fe=lm.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(EF(jr,r.automargin),EF(Yr,r.automargin)),Td.autoMargin(e,_w(r),jr),Td.autoMargin(e,OF(r),Yr),Td.autoMargin(e,IF(r),Fe)}),Bt.syncOrAsync(rr)}};function EF(e,r){if(e){var t=Object.keys(xF).reduce(function(a,n){return r.indexOf(n)!==-1&&xF[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function Tce(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(Bt.extendFlat({},i,{x:l}))};if(r.length){for(a=0;ae.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var f=o?-1:1;t=t*f}if(a){var u=e.side,c=l&&(u==="top"||u==="left")||s&&(u==="bottom"||u==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(v){return Md(n+e._offset+e.l2p(mw(v))+t,i+a)}:function(v){return Md(i+a,n+e._offset+e.l2p(mw(v))+t)}};function mw(e){return e.periodX!==void 0?e.periodX:e.x}function kce(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),o=a("right"),l=a("bottom"),s=a("inside"),f=t!=="boundaries"&&(l||i||n||o);if(!f&&!s)return[0,0];var u=e.side,c=f?(e.tickwidth||0)/2:0,v=X2,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*q0,v+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,v+=X2),s&&u==="top"&&(v-=d*(1-q0)),(i||n)&&(c=-c),(u==="bottom"||u==="right")&&(v=-v),[f?c:0,s?v:0]}rt.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};rt.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(H){return a.indexOf(H)!==-1},o=i("top"),l=i("left"),s=i("right"),f=i("bottom"),u=n!=="boundaries"&&(f||l||o||s),c=i("inside"),v=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,g=v?e.ticklen:0;if(c?g*=-1:u&&(g=0),v&&(d+=g,t)){var m=Bt.deg2rad(t);d=g*Math.cos(m)+1,p=g*Math.sin(m)}e.showticklabels&&(v||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:d,labelShift:p},A,_,x,T,E=0,S=e.side,k=e._id.charAt(0),F=e.tickangle,O;if(k==="x")O=!c&&S==="bottom"||c&&S==="top",T=O?1:-1,c&&(T*=-1),A=p*T,_=r+d*T,x=O?1:-.2,Math.abs(F)===90&&(c?x+=om:F===-90&&S==="bottom"?x=q0:F===90&&S==="top"?x=om:x=.5,E=om/2*(F/90)),b.xFn=function(H){return H.dx+A+E*H.fontSize},b.yFn=function(H){return H.dy+_+H.fontSize*x},b.anchorFn=function(H,X){if(u){if(l)return"end";if(s)return"start"}return!Qn(X)||X===0||X===180?"middle":X*T<0!==c?"end":"start"},b.heightFn=function(H,X,le){return X<-60||X>60?-.5*le:e.side==="top"!==c?-le:0};else if(k==="y"){if(O=!c&&S==="left"||c&&S==="right",T=O?1:-1,c&&(T*=-1),A=d,_=p*T,x=0,!c&&Math.abs(F)===90&&(F===-90&&S==="left"||F===90&&S==="right"?x=q0:x=.5),c){var I=Qn(F)?+F:0;if(I!==0){var R=Bt.deg2rad(I);E=Math.abs(Math.sin(R))*q0*T,x=0}}b.xFn=function(H){return H.dx+r-(A+H.fontSize*x)*T+E*H.fontSize},b.yFn=function(H){return H.dy+_+H.fontSize*om},b.anchorFn=function(H,X){return Qn(X)&&Math.abs(X)===90?"middle":O?"end":"start"},b.heightFn=function(H,X,le){return e.side==="right"&&(X*=-1),X<-30?-le:X<30?-.5*le:0}}return b};function Q2(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}rt.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,Q2);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return sm.stroke(Hl.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return bl.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),K2(r,[CF]),i.attr("transform",t.transFn)};rt.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(b){return b.minor}):[],o=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],l=t.counterAxis;if(l&&rt.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",f=0;f=0;p--){var g=p?v:d;if(g){var m=g.selectAll("path."+a).data(p?o:i,Q2);m.exit().remove(),m.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),m.attr("transform",t.transFn).attr("d",t.path).each(function(b){return sm.stroke(Hl.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return bl.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&m.attr("d",t.path)}}K2(r,[dw,pw])}};rt.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=rt.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return ice(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(sm.stroke,r.zerolinecolor||sm.defaultLine).style("stroke-width",bl.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),K2(r,[hw])};rt.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",o=t.cls||n+"tick",l=t.vals.filter(function($){return $.text}),s=t.labelFns,f=t.secondary?0:r.tickangle,u=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],Q2),v=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function($){var oe=Hl.select(this),ce=e._promises.length;oe.call(F0.positionText,s.xFn($),s.yFn($)).call(bl.font,{family:$.font,size:$.fontSize,color:$.fontColor,weight:$.fontWeight,style:$.fontStyle,variant:$.fontVariant,textcase:$.fontTextcase,lineposition:$.fontLineposition,shadow:$.fontShadow}).text($.text).call(F0.convertToTspans,e),e._promises[ce]?v.push(e._promises.pop().then(function(){d(oe,f)})):d(oe,f)}),K2(r,[bF]),c.exit().remove(),t.repositionOnUpdate&&c.each(function($){Hl.select(this).select("text").call(F0.positionText,s.xFn($),s.yFn($))});function d($,oe){$.each(function(ce){var De=Hl.select(this),Ne=De.select(".text-math-group"),Ee=s.anchorFn(ce,oe),Ye=t.transFn.call(De.node(),ce)+(Qn(oe)&&+oe!=0?" rotate("+oe+","+s.xFn(ce)+","+(s.yFn(ce)-ce.fontSize/2)+")":""),we=F0.lineCount(De),Qe=um*ce.fontSize,ze=s.heightFn(ce,Qn(oe)?+oe:0,(we-1)*Qe);if(ze&&(Ye+=Md(0,ze)),Ne.empty()){var He=De.select("text");He.attr({transform:Ye,"text-anchor":Ee}),He.style("opacity",1),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var $e=bl.bBox(Ne.node()).width,Ue=$e*{end:-.5,start:.5}[Ee];Ne.attr("transform",Ye+Md(Ue,0))}})}r._adjustTickLabelsOverflow=function(){var $=r.ticklabeloverflow;if(!(!$||$==="allow")){var oe=$.indexOf("hide")!==-1,ce=r._id.charAt(0)==="x",De=0,Ne=ce?e._fullLayout.width:e._fullLayout.height;if($.indexOf("domain")!==-1){var Ee=Bt.simpleMap(r.range,r.r2l);De=r.l2p(Ee[0])+r._offset,Ne=r.l2p(Ee[1])+r._offset}var Ye=Math.min(De,Ne),we=Math.max(De,Ne),Qe=r.side,ze=1/0,He=-1/0;c.each(function(_e){var te=Hl.select(this),Xe=te.select(".text-math-group");if(Xe.empty()){var ur=bl.bBox(te.node()),rr=0;ce?(ur.right>we||ur.leftwe||ur.top+(r.tickangle?0:_e.fontSize/4)r["_visibleLabelMin_"+Ee._id]?te.style("display","none"):we.K==="tick"&&!Ye&&te.style("display",null)})})})})},d(c,u+1?u:f);function p(){return v.length&&Promise.all(v)}var g=null;function m(){if(d(c,f),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){g=r.autotickangles[0];var $=0,oe=[],ce,De=1;c.each(function(jr){$=Math.max($,jr.fontSize);var Yr=r.l2p(jr.x),Fe=yw(this),lr=bl.bBox(Fe.node());De=Math.max(De,F0.lineCount(Fe)),oe.push({top:0,bottom:10,height:10,left:Yr-lr.width/2,right:Yr+lr.width/2+2,width:lr.width+2})});var Ne=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,Ee=l.length,Ye=Math.abs((l[Ee-1].x-l[0].x)*r._m)/(Ee-1),we=Ne?Ye/2:Ye,Qe=Ne?r.ticklen:$*1.25*De,ze=Math.sqrt(Math.pow(we,2)+Math.pow(Qe,2)),He=we/ze,$e=r.autotickangles.map(function(jr){return jr*Math.PI/180}),Ue=$e.find(function(jr){return Math.abs(Math.cos(jr))<=He});Ue===void 0&&(Ue=$e.reduce(function(jr,Yr){return Math.abs(Math.cos(jr))ae*le&&(R=le,F[k]=O[k]=H[k])}var J=Math.abs(R-I);J-T>0?(J-=T,T*=1+T/J):T=0,r._id.charAt(0)!=="y"&&(T=-T),F[S]=_.p2r(_.r2p(O[S])+E*T),_.autorange==="min"||_.autorange==="max reversed"?(F[0]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0):(_.autorange==="max"||_.autorange==="min reversed")&&(F[1]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[_._name+".range"]=F}var Z=Bt.syncOrAsync(b);return Z&&Z.then&&e._promises.push(Z),Z};function Cce(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,Q2);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(sm.stroke,r.dividercolor).style("stroke-width",bl.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}rt.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function kF(e){var r=e.title.font.size,t=(e.title.text.match(F0.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(q0+t*um):t?r*(t+1)*um:r}function Lce(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(F0.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*q0:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(om+l*um));else{var s=vm(r);if(r.type==="multicategory")o=r._depth;else{var f=1.5*i;s&&(f=.5*i,r.ticks==="outside"&&(f+=r.ticklen)),o=10+f+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var u=rt.getPxPosition(e,r),c,v,d;n==="x"?(v=r._offset+r._length/2,d=r.side==="top"?u-o:u+o):(d=r._offset+r._length/2,v=r.side==="right"?u+o:u-o,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var g=r._selections[r._id+"tick"];if(p={selection:g,side:r.side},g&&g.node()&&g.node().parentNode){var m=bl.getTranslate(g.node().parentNode);p.offsetLeft=m.x,p.offsetTop=m.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,Jue.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:v,y:d,"text-anchor":"middle"}})}rt.shouldShowZeroLine=function(e,r,t){var a=Bt.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===J2)&&(NF(r,0)||!Dce(e,r,t,a)||Fce(e,r))};rt.clipEnds=function(e,r){return r.filter(function(t){return NF(e,t.x)})};function NF(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=tce:/%L/.test(r)?e>=rce:/%[SX]/.test(r)?e>=j2:/%M/.test(r)?e>=fm:/%[HI]/.test(r)?e>=Cf:/%p/.test(r)?e>=Vc:/%[Aadejuwx]/.test(r)?e>=mo:/%[UVW]/.test(r)?e>=xl:/%[Bbm]/.test(r)?e>=W2:/%[q]/.test(r)?e>=Y2:/%[Yy]/.test(r)?e>=V2:!0}});var GF=P((ICe,zF)=>{"use strict";zF.exports=function(r,t,a){var n,i;if(a){var o=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[o?1:0],i=a[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var Aw=P((BCe,UF)=>{"use strict";var Ice=GF();UF.exports=function(r,t,a,n){var i=t._template||{},o=t.type||i.type||"-";a("minallowed"),a("maxallowed");var l=a("range");if(!l){var s;!n.noInsiderange&&o!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=a("range",s)))}var f=t.getAutorangeDflt(l,n),u=a("autorange",f),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(u==="reversed"||u===!0)||l[0]!==null&&(u==="min"||u==="max reversed")||l[1]!==null&&(u==="max"||u==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(f=t.getAutorangeDflt(l,n),u=a("autorange",f)),u&&(Ice(a,u,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var VF=P((zCe,HF)=>{var Bce={left:0,top:0};HF.exports=zce;function zce(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=Gce(r);return t[0]=a-i.left,t[1]=n-i.top,t}function Gce(e){return e===window||e===document||e===document.body?Bce:e.getBoundingClientRect()}});var Tw=P((GCe,YF)=>{"use strict";var Uce=e4();function Hce(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}YF.exports=Uce&&Hce()});var jF=P((UCe,WF)=>{"use strict";WF.exports=function(r,t,a,n,i){var o=(r-a)/(n-a),l=o+t/(n-a),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var JF=P((HCe,ZF)=>{"use strict";var XF=Ur(),Vce=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];ZF.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=XF.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=XF.constrain(Math.floor(t*3),0,2),Vce[t][r]}});var QF=P((VCe,$F)=>{"use strict";var Yce=jp(),Wce=r2(),jce=Bp().getGraphDiv,Xce=Op(),Mw=$F.exports={};Mw.wrapped=function(e,r,t){e=jce(e),e._fullLayout&&Wce.clear(e._fullLayout._uid+Xce.HOVERID),Mw.raw(e,r,t)};Mw.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&Yce.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var Ps=P((YCe,tR)=>{"use strict";var Zce=VF(),Sw=t4(),Jce=Tw(),$ce=Ur().removeElement,Qce=Fi(),P0=tR.exports={};P0.align=jF();P0.getCursor=JF();var eR=QF();P0.unhover=eR.wrapped;P0.unhoverRaw=eR.raw;P0.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,s,f,u,c,v,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=m,Jce?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=m,i.addEventListener("touchstart",m,{passive:!1})):i.ontouchstart=m;function p(_,x,T){return Math.abs(_)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;c.target===v?x=c:(x={target:v,srcElement:v,toElement:v},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(T=>{var E=c[T];!x[T]&&typeof E!="function"&&(x[T]=E)})),r.clickFn&&r.clickFn(a,x),d||v.dispatchEvent(new MouseEvent("click",_))}t._dragging=!1,t._dragged=!1}};function rR(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}P0.coverSlip=rR;function KF(e){return Zce(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Yc=P((WCe,aR)=>{"use strict";aR.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var oR=P((jCe,iR)=>{"use strict";var Ew=Yc(),hm="data-savedcursor",nR="!!";iR.exports=function(r,t){var a=r.attr(hm);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var kw=Bi(),Kce=wf();lR.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Kce.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:kw({editType:"legend"}),grouptitlefont:kw({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:kw({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var r3=P(e3=>{"use strict";e3.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};e3.isVertical=function(r){return r.orientation!=="h"};e3.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1}});var Fw=P((JCe,sR)=>{"use strict";var Lw=It(),_l=Ur(),eve=Ja(),rve=ks(),tve=Cw(),ave=rd(),Dw=r3();function nve(e,r,t,a){var n=r[e]||{},i=eve.newContainer(t,e);function o(J,Z){return _l.coerce(n,i,tve,J,Z)}var l=_l.coerceFont(o,"font",t.font);o("bgcolor",t.paper_bgcolor),o("bordercolor");var s=o("visible");if(s){for(var f,u=function(J,Z){var $=f._input,oe=f;return _l.coerce($,oe,rve,J,Z)},c=t.font||{},v=_l.coerceFont(o,"grouptitlefont",c,{overrideDflt:{size:Math.round(c.size*1.1)}}),d=0,p=!1,g="normal",m=(t.shapes||[]).filter(function(J){return J.showlegend}),b=a.concat(m).filter(function(J){return e===(J.legend||"legend")}),A=0;A(e==="legend"?1:0));if(x===!1&&(t[e]=void 0),!(x===!1&&!n.uirevision)&&(o("uirevision",t.uirevision),x!==!1)){o("borderwidth");var T=o("orientation"),E=o("yref"),S=o("xref"),k=T==="h",F=E==="paper",O=S==="paper",I,R,H,X="left";k?(I=0,Lw.getComponentMethod("rangeslider","isVisible")(r.xaxis)?F?(R=1.1,H="bottom"):(R=1,H="top"):F?(R=-.1,H="top"):(R=0,H="bottom")):(R=1,H="auto",O?I=1.02:(I=1,X="right")),_l.coerce(n,i,{x:{valType:"number",editType:"legend",min:O?-2:0,max:O?3:1,dflt:I}},"x"),_l.coerce(n,i,{y:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:R}},"y"),o("traceorder",g),Dw.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",X),o("yanchor",H),o("maxheight",k?.5:1),o("valign"),_l.noneOrAll(n,i,["x","y"]);var le=o("title.text");if(le){o("title.side",k?"left":"top");var ae=_l.extendFlat({},l,{size:_l.bigFont(l.size)});_l.coerceFont(o,"title.font",ae)}}}}sR.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n{"use strict";var Ed=It(),qw=Ur(),ive=qw.pushUnique,Rw=!0;fR.exports=function(r,t,a){var n=t._fullLayout;if(t._dragged||t._editing)return;var i=n.legend.itemclick,o=n.legend.itemdoubleclick,l=n.legend.groupclick;a===1&&i==="toggle"&&o==="toggleothers"&&Rw&&t.data&&t._context.showTips&&qw.notifier(qw._(t,"Double-click on legend to isolate one trace"),"long"),Rw=!1;var s;if(a===1?s=i:a===2&&(s=o),!s)return;var f=l==="togglegroup",u=n.hiddenlabels?n.hiddenlabels.slice():[],c=r.data()[0][0];if(c.groupTitle&&c.noClick)return;var v=t._fullData,d=(n.shapes||[]).filter(function(Lr){return Lr.showlegend}),p=v.concat(d),g=c.trace;g._isShape&&(g=g._fullInput);var m=g.legendgroup,b,A,_,x,T,E,S={},k=[],F=[],O=[];function I(Lr,Xr){var Kr=k.indexOf(Lr),Mr=S.visible;return Mr||(Mr=S.visible=[]),k.indexOf(Lr)===-1&&(k.push(Lr),Kr=k.length-1),Mr[Kr]=Xr,Kr}var R=(n.shapes||[]).map(function(Lr){return Lr._input}),H=!1;function X(Lr,Xr){R[Lr].visible=Xr,H=!0}function le(Lr,Xr){if(!(c.groupTitle&&!f)){var Kr=Lr._fullInput||Lr,Mr=Kr._isShape,jr=Kr.index;jr===void 0&&(jr=Kr._index);var Yr=Kr.visible===!1?!1:Xr;Mr?X(jr,Yr):I(jr,Yr)}}var ae=g.legend,J=g._fullInput,Z=J&&J._isShape;if(!Z&&Ed.traceIs(g,"pie-like")){var $=c.label,oe=u.indexOf($);if(s==="toggle")oe===-1?u.push($):u.splice(oe,1);else if(s==="toggleothers"){var ce=oe!==-1,De=[];for(b=0;b{"use strict";cR.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var dR=P((KCe,hR)=>{"use strict";var vR=It(),Nw=r3();hR.exports=function(r,t,a){var n=t._inHover,i=Nw.isGrouped(t),o=Nw.isReversed(t),l={},s=[],f=!1,u={},c=0,v=0,d,p;function g(J,Z,$){if(t.visible!==!1&&!(a&&J!==t._id))if(Z===""||!Nw.isGrouped(t)){var oe="~~i"+c;s.push(oe),l[oe]=[$],c++}else s.indexOf(Z)===-1?(s.push(Z),f=!0,l[Z]=[$]):l[Z].push($)}for(d=0;dO&&(F=O)}S[d][0]._groupMinRank=F,S[d][0]._preGroupSort=d}var I=function(J,Z){return J[0]._groupMinRank-Z[0]._groupMinRank||J[0]._preGroupSort-Z[0]._preGroupSort},R=function(J,Z){return J.trace.legendrank-Z.trace.legendrank||J._preSort-Z._preSort};for(S.forEach(function(J,Z){J[0]._preGroupSort=Z}),S.sort(I),d=0;d{"use strict";var t3=Ur();function pR(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}N0.formatPiePercent=function(r,t){var a=pR((r*100).toPrecision(3));return t3.numSeparate(a,t)+"%"};N0.formatPieValue=function(r,t){var a=pR(r.toPrecision(10));return t3.numSeparate(a,t)};N0.getFirstFilled=function(r,t){if(t3.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var ove=Wa(),lve=ha();mR.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?ove.pointStyle(r,a,n,t):lve.fill(r,t.color)}});var _R=P((tLe,xR)=>{"use strict";var gR=ha(),bR=Ow().castOption,sve=yR();xR.exports=function(r,t,a,n){var i=a.marker.line,o=bR(i.color,t.pts)||gR.defaultLine,l=bR(i.width,t.pts)||0;r.call(sve,t,a,n).style("stroke-width",l).call(gR.stroke,o)}});var Gw=P((aLe,ER)=>{"use strict";var yo=da(),Iw=It(),to=Ur(),wR=to.strTranslate,wl=Wa(),Vl=ha(),Bw=Rs().extractOpts,a3=Ri(),fve=_R(),uve=Ow().castOption,cve=Pw(),AR=12,TR=5,O0=2,vve=10,kd=5;ER.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+cve.itemGap*2)/2,s=wR(l,0),f=function(S,k,F,O){var I;if(S+1)I=S;else if(k&&k.width>0)I=k.width;else return 0;return i?O:Math.min(I,F)};r.each(function(S){var k=yo.select(this),F=to.ensureSingle(k,"g","layers");F.style("opacity",S[0].trace.opacity);var O=a.indentation,I=a.valign,R=S[0].lineHeight,H=S[0].height;if(I==="middle"&&O===0||!R||!H)F.attr("transform",null);else{var X={top:1,bottom:-1}[I],le=X*(.5*(R-H+3))||0,ae=a.indentation;F.attr("transform",wR(ae,le))}var J=F.selectAll("g.legendfill").data([S]);J.enter().append("g").classed("legendfill",!0);var Z=F.selectAll("g.legendlines").data([S]);Z.enter().append("g").classed("legendlines",!0);var $=F.selectAll("g.legendsymbols").data([S]);$.enter().append("g").classed("legendsymbols",!0),$.selectAll("g.legendpoints").data([S]).enter().append("g").classed("legendpoints",!0)}).each(E).each(v).each(p).each(d).each(m).each(x).each(_).each(u).each(c).each(b).each(A);function u(S){var k=MR(S),F=k.showFill,O=k.showLine,I=k.showGradientLine,R=k.showGradientFill,H=k.anyFill,X=k.anyLine,le=S[0],ae=le.trace,J,Z,$=Bw(ae),oe=$.colorscale,ce=$.reversescale,De=function(He){if(He.size())if(F)wl.fillGroupStyle(He,t,!0);else{var $e="legendfill-"+ae.uid;wl.gradient(He,t,$e,zw(ce),oe,"fill")}},Ne=function(He){if(He.size()){var $e="legendline-"+ae.uid;wl.lineGroupStyle(He),wl.gradient(He,t,$e,zw(ce),oe,"stroke")}},Ee=a3.hasMarkers(ae)||!H?"M5,0":X?"M5,-2":"M5,-3",Ye=yo.select(this),we=Ye.select(".legendfill").selectAll("path").data(F||R?[S]:[]);if(we.enter().append("path").classed("js-fill",!0),we.exit().remove(),we.attr("d",Ee+"h"+o+"v6h-"+o+"z").call(De),O||I){var Qe=f(void 0,ae.line,vve,TR);Z=to.minExtend(ae,{line:{width:Qe}}),J=[to.minExtend(le,{trace:Z})]}var ze=Ye.select(".legendlines").selectAll("path").data(O||I?[J]:[]);ze.enter().append("path").classed("js-line",!0),ze.exit().remove(),ze.attr("d",Ee+(I?"l"+o+",0.0001":"h"+o)).call(O?wl.lineGroupStyle:Ne)}function c(S){var k=MR(S),F=k.anyFill,O=k.anyLine,I=k.showLine,R=k.showMarker,H=S[0],X=H.trace,le=!R&&!O&&!F&&a3.hasText(X),ae,J;function Z(we,Qe,ze,He){var $e=to.nestedProperty(X,we).get(),Ue=to.isArrayOrTypedArray($e)&&Qe?Qe($e):$e;if(i&&Ue&&He!==void 0&&(Ue=He),ze){if(Ueze[1])return ze[1]}return Ue}function $(we){return H._distinct&&H.index&&we[H.index]?we[H.index]:we[0]}if(R||le||I){var oe={},ce={};if(R){oe.mc=Z("marker.color",$),oe.mx=Z("marker.symbol",$),oe.mo=Z("marker.opacity",to.mean,[.2,1]),oe.mlc=Z("marker.line.color",$),oe.mlw=Z("marker.line.width",to.mean,[0,5],O0),ce.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var De=Z("marker.size",to.mean,[2,16],AR);oe.ms=De,ce.marker.size=De}I&&(ce.line={width:Z("line.width",$,[0,10],TR)}),le&&(oe.tx="Aa",oe.tp=Z("textposition",$),oe.ts=10,oe.tc=Z("textfont.color",$),oe.tf=Z("textfont.family",$),oe.tw=Z("textfont.weight",$),oe.ty=Z("textfont.style",$),oe.tv=Z("textfont.variant",$),oe.tC=Z("textfont.textcase",$),oe.tE=Z("textfont.lineposition",$),oe.tS=Z("textfont.shadow",$)),ae=[to.minExtend(H,oe)],J=to.minExtend(X,ce),J.selectedpoints=null,J.texttemplate=null}var Ne=yo.select(this).select("g.legendpoints"),Ee=Ne.selectAll("path.scatterpts").data(R?ae:[]);Ee.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),Ee.exit().remove(),Ee.call(wl.pointStyle,J,t),R&&(ae[0].mrc=3);var Ye=Ne.selectAll("g.pointtext").data(le?ae:[]);Ye.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Ye.exit().remove(),Ye.selectAll("text").call(wl.textPointStyle,J,t)}function v(S){var k=S[0].trace,F=k.type==="waterfall";if(S[0]._distinct&&F){var O=S[0].trace[S[0].dir].marker;return S[0].mc=O.color,S[0].mlw=O.line.width,S[0].mlc=O.line.color,g(S,this,"waterfall")}var I=[];k.visible&&F&&(I=S[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var R=yo.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(I);R.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(H){var X=yo.select(this),le=k[H[0]].marker,ae=f(void 0,le.line,kd,O0);X.attr("d",H[1]).style("stroke-width",ae+"px").call(Vl.fill,le.color),ae&&X.call(Vl.stroke,le.line.color)})}function d(S){g(S,this)}function p(S){g(S,this,"funnel")}function g(S,k,F){var O=S[0].trace,I=O.marker||{},R=I.line||{},H=I.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",X=F?O.visible&&O.type===F:Iw.traceIs(O,"bar"),le=yo.select(k).select("g.legendpoints").selectAll("path.legend"+F).data(X?[S]:[]);le.enter().append("path").classed("legend"+F,!0).attr("d",H).attr("transform",s),le.exit().remove(),le.each(function(ae){var J=yo.select(this),Z=ae[0],$=f(Z.mlw,I.line,kd,O0);J.style("stroke-width",$+"px");var oe=Z.mcc;if(!a._inHover&&"mc"in Z){var ce=Bw(I),De=ce.mid;De===void 0&&(De=(ce.max+ce.min)/2),oe=wl.tryColorscale(I,"")(De)}var Ne=oe||Z.mc||I.color,Ee=I.pattern,Ye=wl.getPatternAttr,we=Ee&&(Ye(Ee.shape,0,"")||Ye(Ee.path,0,""));if(we){var Qe=Ye(Ee.bgcolor,0,null),ze=Ye(Ee.fgcolor,0,null),He=Ee.fgopacity,$e=SR(Ee.size,8,10),Ue=SR(Ee.solidity,.5,1),ee="legend-"+O.uid;J.call(wl.pattern,"legend",t,ee,we,$e,Ue,oe,Ee.fillmode,Qe,ze,He)}else J.call(Vl.fill,Ne);$&&Vl.stroke(J,Z.mlc||R.color)})}function m(S){var k=S[0].trace,F=yo.select(this).select("g.legendpoints").selectAll("path.legendbox").data(k.visible&&Iw.traceIs(k,"box-violin")?[S]:[]);F.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),F.exit().remove(),F.each(function(){var O=yo.select(this);if((k.boxpoints==="all"||k.points==="all")&&Vl.opacity(k.fillcolor)===0&&Vl.opacity((k.line||{}).color)===0){var I=to.minExtend(k,{marker:{size:i?AR:to.constrain(k.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});F.call(wl.pointStyle,I,t)}else{var R=f(void 0,k.line,kd,O0);O.style("stroke-width",R+"px").call(Vl.fill,k.fillcolor),R&&Vl.stroke(O,k.line.color)}})}function b(S){var k=S[0].trace,F=yo.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(k.visible&&k.type==="candlestick"?[S,S]:[]);F.enter().append("path").classed("legendcandle",!0).attr("d",function(O,I){return I?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(O,I){var R=yo.select(this),H=k[I?"increasing":"decreasing"],X=f(void 0,H.line,kd,O0);R.style("stroke-width",X+"px").call(Vl.fill,H.fillcolor),X&&Vl.stroke(R,H.line.color)})}function A(S){var k=S[0].trace,F=yo.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(k.visible&&k.type==="ohlc"?[S,S]:[]);F.enter().append("path").classed("legendohlc",!0).attr("d",function(O,I){return I?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(O,I){var R=yo.select(this),H=k[I?"increasing":"decreasing"],X=f(void 0,H.line,kd,O0);R.style("fill","none").call(wl.dashLine,H.line.dash,X),X&&Vl.stroke(R,H.line.color)})}function _(S){T(S,this,"pie")}function x(S){T(S,this,"funnelarea")}function T(S,k,F){var O=S[0],I=O.trace,R=F?I.visible&&I.type===F:Iw.traceIs(I,F),H=yo.select(k).select("g.legendpoints").selectAll("path.legend"+F).data(R?[S]:[]);if(H.enter().append("path").classed("legend"+F,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),H.exit().remove(),H.size()){var X=I.marker||{},le=f(uve(X.line.width,O.pts),X.line,kd,O0),ae="pieLike",J=to.minExtend(I,{marker:{line:{width:le}}},ae),Z=to.minExtend(O,{trace:J},ae);fve(H,Z,J,t)}}function E(S){var k=S[0].trace,F,O=[];if(k.visible)switch(k.type){case"histogram2d":case"heatmap":O=[["M-15,-2V4H15V-2Z"]],F=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":O=[["M-6,-6V6H6V-6Z"]],F=!0;break;case"densitymapbox":case"densitymap":O=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],F="radial";break;case"cone":O=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],F=!1;break;case"streamtube":O=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],F=!1;break;case"surface":O=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],F=!0;break;case"mesh3d":O=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!1;break;case"volume":O=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!0;break;case"isosurface":O=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],F=!1;break}var I=yo.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(O);I.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),I.exit().remove(),I.each(function(R,H){var X=yo.select(this),le=Bw(k),ae=le.colorscale,J=le.reversescale,Z=function(De){if(De.size()){var Ne="legendfill-"+k.uid;wl.gradient(De,t,Ne,zw(J,F==="radial"),ae,"fill")}},$;if(ae){if(!F){var ce=ae.length;$=H===0?ae[J?ce-1:0][1]:H===1?ae[J?0:ce-1][1]:ae[Math.floor((ce-1)/2)][1]}}else{var oe=k.vertexcolor||k.facecolor||k.color;$=to.isArrayOrTypedArray(oe)?oe[H]||oe[0]:oe}X.attr("d",R[0]),$?X.call(Vl.fill,$):X.call(Z)})}};function zw(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function MR(e){var r=e[0].trace,t=r.contours,a=a3.hasLines(r),n=a3.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function SR(e,r,t){return e&&to.isArrayOrTypedArray(e)?r:e>t?t:e}});var Yw=P((nLe,OR)=>{"use strict";var Jo=da(),Kn=Ur(),Hw=gi(),Dd=It(),kR=jp(),Uw=Ps(),ei=Wa(),i3=ha(),I0=po(),CR=uR(),si=Pw(),Vw=ho(),PR=Vw.LINE_SPACING,Ld=Vw.FROM_TL,LR=Vw.FROM_BR,DR=dR(),hve=Gw(),FR=r3(),Cd=1,dve=/^legend[0-9]*$/;OR.exports=function(r,t){if(t)RR(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var f=Jo.select(this),u=f.attr("class"),c=u.split(" ")[0];c.match(dve)&&n.indexOf(c)===-1&&f.remove()});for(var o=0;o1)}var p=a.hiddenlabels||[];if(!l&&(!a.showlegend||!s.length))return o.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),Hw.autoMargin(e,n);var g=Kn.ensureSingle(o,"g",n,function(k){l||k.attr("pointer-events","all")}),m=Kn.ensureSingleById(a._topdefs,"clipPath",i,function(k){k.append("rect")}),b=Kn.ensureSingle(g,"rect","bg",function(k){k.attr("shape-rendering","crispEdges")});b.call(i3.stroke,t.bordercolor).call(i3.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var A=Kn.ensureSingle(g,"g","scrollbox"),_=t.title;t._titleWidth=0,t._titleHeight=0;var x;_.text?(x=Kn.ensureSingle(A,"text",n+"titletext"),x.attr("text-anchor","start").call(ei.font,_.font).text(_.text),o3(x,A,e,t,Cd)):A.selectAll("."+n+"titletext").remove();var T=Kn.ensureSingle(g,"rect","scrollbar",function(k){k.attr(si.scrollBarEnterAttrs).call(i3.fill,si.scrollBarColor)}),E=A.selectAll("g.groups").data(s);E.enter().append("g").attr("class","groups"),E.exit().remove();var S=E.selectAll("g.traces").data(Kn.identity);S.enter().append("g").attr("class","traces"),S.exit().remove(),S.style("opacity",function(k){var F=k[0].trace;return Dd.traceIs(F,"pie-like")?p.indexOf(k[0].label)!==-1?.5:1:F.visible==="legendonly"?.5:1}).each(function(){Jo.select(this).call(mve,e,t)}).call(hve,e,t).each(function(){l||Jo.select(this).call(yve,e,n)}),Kn.syncOrAsync([Hw.previousPromises,function(){return xve(e,E,S,t)},function(){var k=a._size,F=t.borderwidth,O=t.xref==="paper",I=t.yref==="paper";if(_.text&&pve(x,t,F),!l){var R,H;O?R=k.l+k.w*t.x-Ld[l3(t)]*t._width:R=a.width*t.x-Ld[l3(t)]*t._width,I?H=k.t+k.h*(1-t.y)-Ld[s3(t)]*t._effHeight:H=a.height*(1-t.y)-Ld[s3(t)]*t._effHeight;var X=_ve(e,n,R,H);if(X)return;if(a.margin.autoexpand){var le=R,ae=H;R=O?Kn.constrain(R,0,a.width-t._width):le,H=I?Kn.constrain(H,0,a.height-t._effHeight):ae,R!==le&&Kn.log("Constrain "+n+".x to make legend fit inside graph"),H!==ae&&Kn.log("Constrain "+n+".y to make legend fit inside graph")}ei.setTranslate(g,R,H)}if(T.on(".drag",null),g.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var J=t._effHeight;l&&(J=t._height),b.attr({width:t._width-F,height:J-F,x:F/2,y:F/2}),ei.setTranslate(A,0,0),m.select("rect").attr({width:t._width-2*F,height:J-2*F,x:F,y:F}),ei.setClipUrl(A,i,e),ei.setRect(T,0,0,0,0),delete t._scrollY}else{var Z=Math.max(si.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),$=t._effHeight-Z-2*si.scrollBarMargin,oe=t._height-t._effHeight,ce=$/oe,De=Math.min(t._scrollY||0,oe);b.attr({width:t._width-2*F+si.scrollBarWidth+si.scrollBarMargin,height:t._effHeight-F,x:F/2,y:F/2}),m.select("rect").attr({width:t._width-2*F+si.scrollBarWidth+si.scrollBarMargin,height:t._effHeight-2*F,x:F,y:F+De}),ei.setClipUrl(A,i,e),$e(De,Z,ce),g.on("wheel",function(){De=Kn.constrain(t._scrollY+Jo.event.deltaY/$*oe,0,oe),$e(De,Z,ce),De!==0&&De!==oe&&Jo.event.preventDefault()});var Ne,Ee,Ye,we=function(Xe,ur,rr){var Pr=(rr-ur)/ce+Xe;return Kn.constrain(Pr,0,oe)},Qe=function(Xe,ur,rr){var Pr=(ur-rr)/ce+Xe;return Kn.constrain(Pr,0,oe)},ze=Jo.behavior.drag().on("dragstart",function(){var Xe=Jo.event.sourceEvent;Xe.type==="touchstart"?Ne=Xe.changedTouches[0].clientY:Ne=Xe.clientY,Ye=De}).on("drag",function(){var Xe=Jo.event.sourceEvent;Xe.buttons===2||Xe.ctrlKey||(Xe.type==="touchmove"?Ee=Xe.changedTouches[0].clientY:Ee=Xe.clientY,De=we(Ye,Ne,Ee),$e(De,Z,ce))});T.call(ze);var He=Jo.behavior.drag().on("dragstart",function(){var Xe=Jo.event.sourceEvent;Xe.type==="touchstart"&&(Ne=Xe.changedTouches[0].clientY,Ye=De)}).on("drag",function(){var Xe=Jo.event.sourceEvent;Xe.type==="touchmove"&&(Ee=Xe.changedTouches[0].clientY,De=Qe(Ye,Ne,Ee),$e(De,Z,ce))});A.call(He)}function $e(Xe,ur,rr){t._scrollY=e._fullLayout[n]._scrollY=Xe,ei.setTranslate(A,0,-Xe),ei.setRect(T,t._width,si.scrollBarMargin+Xe*rr,si.scrollBarWidth,ur),m.select("rect").attr("y",F+Xe)}if(e._context.edits.legendPosition){var Ue,ee,_e,te;g.classed("cursor-move",!0),Uw.init({element:g.node(),gd:e,prepFn:function(Xe){if(Xe.target!==T.node()){var ur=ei.getTranslate(g);_e=ur.x,te=ur.y}},moveFn:function(Xe,ur){if(_e!==void 0&&te!==void 0){var rr=_e+Xe,Pr=te+ur;ei.setTranslate(g,rr,Pr),Ue=Uw.align(rr,t._width,k.l,k.l+k.w,t.xanchor),ee=Uw.align(Pr+t._height,-t._height,k.t+k.h,k.t,t.yanchor)}},doneFn:function(){if(Ue!==void 0&&ee!==void 0){var Xe={};Xe[n+".x"]=Ue,Xe[n+".y"]=ee,Dd.call("_guiRelayout",e,Xe)}},clickFn:function(Xe,ur){var rr=o.selectAll("g.traces").filter(function(){var Pr=this.getBoundingClientRect();return ur.clientX>=Pr.left&&ur.clientX<=Pr.right&&ur.clientY>=Pr.top&&ur.clientY<=Pr.bottom});rr.size()>0&&NR(e,g,rr,Xe,ur)}})}}],e)}}function n3(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,o=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||n)}function NR(e,r,t,a,n){var i=t.data()[0][0].trace,o={event:n,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(o.group=i._group),Dd.traceIs(i,"pie-like")&&(o.label=t.datum()[0].label);var l=kR.triggerHandler(e,"plotly_legendclick",o);if(a===1){if(l===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&CR(t,e,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var s=kR.triggerHandler(e,"plotly_legenddoubleclick",o);s!==!1&&l!==!1&&CR(t,e,a)}}function mve(e,r,t){var a=f3(t),n=e.data()[0][0],i=n.trace,o=Dd.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,f,u;n.groupTitle?(f=n.groupTitle.text,u=n.groupTitle.font):(u=t.font,t.entries?f=n.text:(f=o?n.label:i.name,i._meta&&(f=Kn.templateString(f,i._meta))));var c=Kn.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(ei.font,u).text(l?qR(f,s):f);var v=t.indentation+t.itemwidth+si.itemGap*2;I0.positionText(c,v,0),l?c.call(I0.makeEditable,{gd:r,text:f}).call(o3,e,r,t).on("edit",function(d){this.text(qR(d,s)).call(o3,e,r,t);var p=n.trace._fullInput||{},g={};return g.name=d,p._isShape?Dd.call("_guiRelayout",r,"shapes["+i.index+"].name",g.name):Dd.call("_guiRestyle",r,g,i.index)}):o3(c,e,r,t)}function qR(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function yve(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=Kn.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(i3.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),NR(r,l,e,i,Jo.event)}}))}function o3(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),I0.convertToTspans(e,t,function(){gve(r,t,a,n)})}function gve(e,r,t,a){var n=e.data()[0][0];if(!t._inHover&&n&&!n.trace.showlegend){e.remove();return}var i=e.select("g[class*=math-group]"),o=i.node(),l=f3(t);t||(t=r._fullLayout[l]);var s=t.borderwidth,f;a===Cd?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var u=f.size*PR,c,v;if(o){var d=ei.bBox(o);c=d.height,v=d.width,a===Cd?ei.setTranslate(i,s,s+c*.75):ei.setTranslate(i,0,c*.25)}else{var p="."+l+(a===Cd?"title":"")+"text",g=e.select(p),m=I0.lineCount(g),b=g.node();if(c=u*m,v=b?ei.bBox(b).width:0,a===Cd)t.title.side==="left"&&(v+=si.itemGap*2),I0.positionText(g,s+si.titlePad,s+u);else{var A=si.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(A=si.itemGap,v-=t.indentation+t.itemwidth),I0.positionText(g,A,-u*((m-1)/2-.3))}}a===Cd?(t._titleWidth=v,t._titleHeight=c):(n.lineHeight=u,n.height=Math.max(c,16)+3,n.width=v)}function bve(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function xve(e,r,t,a){var n=e._fullLayout,i=f3(a);a||(a=n[i]);var o=n._size,l=FR.isVertical(a),s=FR.isGrouped(a),f=a.entrywidthmode==="fraction",u=a.borderwidth,c=2*u,v=si.itemGap,d=a.indentation+a.itemwidth+v*2,p=2*(u+v),g=s3(a),m=a.y<0||a.y===0&&g==="top",b=a.y>1||a.y===1&&g==="bottom",A=a.tracegroupgap,_={},{maxheight:x,orientation:T,yref:E}=a,S=T==="v"&&E==="paper"?o.h:n.height;a._maxHeight=Math.max(x>1?x:x*S,30);var k=0;a._width=0,a._height=0;var F=bve(a);if(l)t.each(function(He){var $e=He[0].height;ei.setTranslate(this,u+F[0],u+F[1]+a._height+$e/2+v),a._height+=$e,a._width=Math.max(a._width,He[0].width)}),k=d+a._width,a._width+=v+d+c,a._height+=p,s&&(r.each(function(He,$e){ei.setTranslate(this,0,$e*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var O=l3(a),I=a.x<0||a.x===0&&O==="right",R=a.x>1||a.x===1&&O==="left",H=b||m,X=n.width/2;a._maxWidth=Math.max(I?H&&O==="left"?o.l+o.w:X:R?H&&O==="right"?o.r+o.w:X:o.w,2*d);var le=0,ae=0;t.each(function(He){var $e=n3(He,a,d);le=Math.max(le,$e),ae+=$e}),k=null;var J=0;if(s){var Z=0,$=0,oe=0;r.each(function(){var He=0,$e=0;Jo.select(this).selectAll("g.traces").each(function(ee){var _e=n3(ee,a,d),te=ee[0].height;ei.setTranslate(this,F[0],F[1]+u+v+te/2+$e),$e+=te,He=Math.max(He,_e),_[ee[0].trace.legendgroup]=He});var Ue=He+v;$>0&&Ue+u+$>a._maxWidth?(J=Math.max(J,$),$=0,oe+=Z+A,Z=$e):Z=Math.max(Z,$e),ei.setTranslate(this,$,oe),$+=Ue}),a._width=Math.max(J,$)+u,a._height=oe+Z+p}else{var ce=t.size(),De=ae+c+(ce-1)*v=a._maxWidth&&(J=Math.max(J,we),Ee=0,Ye+=Ne,a._height+=Ne,Ne=0),ei.setTranslate(this,F[0]+u+Ee,F[1]+u+Ye+$e/2+v),we=Ee+Ue+v,Ee+=ee,Ne=Math.max(Ne,$e)}),De?(a._width=Ee+c,a._height=Ne+p):(a._width=Math.max(J,we)+c,a._height+=Ne+p)}}a._width=Math.ceil(Math.max(a._width+F[0],a._titleWidth+2*(u+si.titlePad))),a._height=Math.ceil(Math.max(a._height+F[1],a._titleHeight+2*(u+si.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var Qe=e._context.edits,ze=Qe.legendText||Qe.legendPosition;t.each(function(He){var $e=Jo.select(this).select("."+i+"toggle"),Ue=He[0].height,ee=He[0].trace.legendgroup,_e=n3(He,a,d);s&&ee!==""&&(_e=_[ee]);var te=ze?d:k||_e;!l&&!f&&(te+=v/2),ei.setRect($e,0,-Ue/2,te,Ue)})}function _ve(e,r,t,a){var n=e._fullLayout,i=n[r],o=l3(i),l=s3(i),s=i.xref==="paper",f=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var u=i.y<.5?"b":"t",c=i.x<.5?"l":"r",v={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&f)return Hw.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*Ld[o],r:i._width*LR[o],b:i._effHeight*LR[l],t:i._effHeight*Ld[l]});s?e._fullLayout._reservedMargin[r][u]=v[u]:f||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=v[c]:e._fullLayout._reservedMargin[r][u]=v[u]}function l3(e){return Kn.isRightAnchor(e)?"right":Kn.isCenterAnchor(e)?"center":"left"}function s3(e){return Kn.isBottomAnchor(e)?"bottom":Kn.isMiddleAnchor(e)?"middle":"top"}function f3(e){return e._id||"legend"}});var Zw=P(Xw=>{"use strict";var B0=da(),Du=ga(),IR=Es(),Dn=Ur(),wve=Dn.pushUnique,Ww=Dn.strTranslate,Ave=Dn.strRotate,Tve=jp(),Yl=po(),Mve=oR(),Lf=Wa(),xi=ha(),u3=Ps(),Df=hn(),Sve=Fi().zindexSeparator,Rd=It(),Ns=Cu(),z0=Op(),Eve=Fw(),kve=Yw(),WR=z0.YANGLE,jw=Math.PI*WR/180,Cve=1/Math.sin(jw),Lve=Math.cos(jw),Dve=Math.sin(jw),yn=z0.HOVERARROWSIZE,fa=z0.HOVERTEXTPAD,BR={box:!0,ohlc:!0,violin:!0,candlestick:!0},Fve={scatter:!0,scattergl:!0,splom:!0};function zR(e,r){return e.distance-r.distance}Xw.hover=function(r,t,a,n){r=Dn.getGraphDiv(r);var i=t.target;Dn.throttle(r._fullLayout._uid+z0.HOVERID,z0.HOVERMINTIME,function(){Rve(r,t,a,n,i)})};Xw.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=$R(n),o=QR(n),l=r.map(function(m){var b=m._x0||m.x0||m.x||0,A=m._x1||m.x1||m.x||0,_=m._y0||m.y0||m.y||0,x=m._y1||m.y1||m.y||0,T=m.eventData;if(T){var E=Math.min(b,A),S=Math.max(b,A),k=Math.min(_,x),F=Math.max(_,x),O=m.trace;if(Rd.traceIs(O,"gl3d")){var I=n._fullLayout[O.scene]._scene.container,R=I.offsetLeft,H=I.offsetTop;E+=R,S+=R,k+=H,F+=H}T.bbox={x0:E+o,x1:S+o,y0:k+i,y1:F+i},t.inOut_bbox&&t.inOut_bbox.push(T.bbox)}else T=!1;return{color:m.color||xi.defaultLine,x0:m.x0||m.x||0,x1:m.x1||m.x||0,y0:m.y0||m.y||0,y1:m.y1||m.y||0,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:m.text,name:m.name,idealAlign:m.idealAlign,borderColor:m.borderColor,fontFamily:m.fontFamily,fontSize:m.fontSize,fontColor:m.fontColor,fontWeight:m.fontWeight,fontStyle:m.fontStyle,fontVariant:m.fontVariant,nameLength:m.nameLength,textAlign:m.textAlign,trace:m.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:m.hovertemplate||!1,hovertemplateLabels:m.hovertemplateLabels||!1,eventData:T}}),s=!1,f=XR(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||xi.background,container:B0.select(t.container),outerContainer:t.outerContainer||t.container}),u=f.hoverLabels,c=5,v=0,d=0;u.sort(function(m,b){return m.y0-b.y0}).each(function(m,b){var A=m.y0-m.by/2;A-cS[0]._length||te<0||te>k[0]._length)return u3.unhoverRaw(e,r)}if(r.pointerX=_e+S[0]._offset,r.pointerY=te+k[0]._offset,"xval"in r?ae=Ns.flat(i,r.xval):ae=Ns.p2c(S,_e),"yval"in r?J=Ns.flat(i,r.yval):J=Ns.p2c(k,te),!Du(ae[0])||!Du(J[0]))return Dn.warn("Fx.hover failed",r,e),u3.unhoverRaw(e,r)}var rr=1/0;function Pr(Pt,Ca){for($=0;$ze&&(X.splice(0,ze),rr=X[0].distance),c&&H!==0&&X.length===0){Qe.distance=H,Qe.index=!1;var Ba=ce._module.hoverPoints(Qe,Ye,we,"closest",{hoverLayer:l._hoverlayer});if(Ba&&(Ba=Ba.filter(function(Ra){return Ra.spikeDistance<=H})),Ba&&Ba.length){var Ga,rn=Ba.filter(function(Ra){return Ra.xa.showspikes&&Ra.xa.spikesnap!=="hovered data"});if(rn.length){var Yi=rn[0];Du(Yi.x0)&&Du(Yi.y0)&&(Ga=wr(Yi),(!He.vLinePoint||He.vLinePoint.spikeDistance>Ga.spikeDistance)&&(He.vLinePoint=Ga))}var Wi=Ba.filter(function(Ra){return Ra.ya.showspikes&&Ra.ya.spikesnap!=="hovered data"});if(Wi.length){var Cn=Wi[0];Du(Cn.x0)&&Du(Cn.y0)&&(Ga=wr(Cn),(!He.hLinePoint||He.hLinePoint.spikeDistance>Ga.spikeDistance)&&(He.hLinePoint=Ga))}}}}}Pr();function Or(Pt,Ca,na){for(var Va=null,un=1/0,La,Ba=0;Ba0&&Math.abs(Pt.distance)yr-1;st--)it(X[st]);X=Wr,Mr()}var br=e._hoverdata,Se=[],Ie=$R(e),dr=QR(e);for(Z=0;Z1||X.length>1)||v==="closest"&&$e&&X.length>1,lo=xi.combine(l.plot_bgcolor||xi.background,l.paper_bgcolor),Tn=XR(X,{gd:e,hovermode:v,rotateLabels:Nn,bgColor:lo,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),On=Tn.hoverLabels;if(Ns.isUnifiedHover(v)||(Pve(On,Nn,l,Tn.commonLabelBoundingBox),JR(On,Nn,l._invScaleX,l._invScaleY)),n&&n.tagName){var Ti=Rd.getComponentMethod("annotations","hasClickToShow")(e,Se);Mve(B0.select(n),Ti?"pointer":"")}!n||a||!Ive(e,r,br)||(br&&e.emit("plotly_unhover",{event:r,points:br}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:S,yaxes:k,xvals:ae,yvals:J}))}function jR(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var qve=/([\s\S]*)<\/extra>/;function XR(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,f=r.commonLabelOpts||{};if(e.length===0)return[[]];var u=r.fontFamily||z0.HOVERFONT,c=r.fontSize||z0.HOVERFONTSIZE,v=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,p=r.fontVariant||a.font.variant,g=r.fontTextcase||a.font.textcase,m=r.fontLineposition||a.font.lineposition,b=r.fontShadow||a.font.shadow,A=e[0],_=A.xa,x=A.ya,T=n.charAt(0),E=T+"Label",S=A[E];if(S===void 0&&_.type==="multicategory")for(var k=0;ka.width-br&&(Se=a.width-br),Tt.attr("d","M"+(ot-Se)+",0L"+(ot-Se+yn)+","+st+yn+"H"+br+"v"+st+(fa*2+Hr.height)+"H"+-br+"V"+st+yn+"H"+(ot-Se-yn)+"Z"),ot=Se,$.minX=ot-br,$.maxX=ot+br,_.side==="top"?($.minY=it-(fa*2+Hr.height),$.maxY=it-fa):($.minY=it+fa,$.maxY=it+(fa*2+Hr.height))}else{var Ie,dr,fr;x.side==="right"?(Ie="start",dr=1,fr="",ot=_._offset+_._length):(Ie="end",dr=-1,fr="-",ot=_._offset),it=x._offset+(A.y0+A.y1)/2,ht.attr("text-anchor",Ie),Tt.attr("d","M0,0L"+fr+yn+","+yn+"V"+(fa+Hr.height/2)+"h"+fr+(fa*2+Hr.width)+"V-"+(fa+Hr.height/2)+"H"+fr+yn+"V-"+yn+"Z"),$.minY=it-(fa+Hr.height/2),$.maxY=it+(fa+Hr.height/2),x.side==="right"?($.minX=ot+yn,$.maxX=ot+yn+(fa*2+Hr.width)):($.minX=ot-yn-(fa*2+Hr.width),$.maxX=ot-yn);var xt=Hr.height/2,Et=O-Hr.top-xt,At="clip"+a._uid+"commonlabel"+x._id,Nt;if(ot=0?Yr=Xr:Kr+te=0?Yr=Kr:Mr+te=0?Fe=wr:Lr+Xe=0?Fe=Lr:jr+Xe=0,(vr.idealAlign==="top"||!ua)&&pn?(fr-=Et/2,vr.anchor="end"):ua?(fr+=Et/2,vr.anchor="start"):vr.anchor="middle",vr.crossPos=fr;else{if(vr.pos=fr,ua=dr+xt/2+wa<=I,pn=dr-xt/2-wa>=0,(vr.idealAlign==="left"||!ua)&&pn)dr-=xt/2,vr.anchor="end";else if(ua)dr+=xt/2,vr.anchor="start";else{vr.anchor="middle";var Pn=wa/2,ci=dr+Pn-I,Nn=dr-Pn;ci>0&&(dr-=ci),Nn<0&&(dr+=-Nn)}vr.crossPos=dr}it.attr("text-anchor",vr.anchor),br&&st.attr("text-anchor",vr.anchor),Tt.attr("transform",Ww(dr,fr)+(i?Ave(WR):""))}),{hoverLabels:lr,commonLabelBoundingBox:$}}function GR(e,r,t,a,n,i){var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Dn.templateString(e.name,e.trace._meta)),o=VR(e.name,e.nameLength));var s=t.charAt(0),f=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?l=e[f+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o);var u=e.hovertemplate||!1;if(u){var c=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(c[s+"other"]=c[s+"Val"],c[s+"otherLabel"]=c[s+"Label"]),l=Dn.hovertemplateString(u,c,a._d3locale,e.eventData[0]||{},e.trace._meta),l=l.replace(qve,function(v,d){return o=VR(d,e.nameLength),""})}return[l,o]}function Pve(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),f=new Array(s),u=0,c=a.minX,v=a.maxX,d=a.minY,p=a.maxY,g=function(ae){return ae*t._invScaleX},m=function(ae){return ae*t._invScaleY};e.each(function(ae){var J=ae[n],Z=ae[i],$=J._id.charAt(0)==="x",oe=J.range;u===0&&oe&&oe[0]>oe[1]!==$&&(l=-1);var ce=0,De=$?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var Ne=ZR(ae,r),Ee=ae.anchor,Ye=Ee==="end"?-1:1,we,Qe;if(Ee==="middle")we=ae.crossPos+($?m(Ne.y-ae.by/2):g(ae.bx/2+ae.tx2width/2)),Qe=we+($?m(ae.by):g(ae.bx));else if($)we=ae.crossPos+m(yn+Ne.y)-m(ae.by/2-yn),Qe=we+m(ae.by);else{var ze=g(Ye*yn+Ne.x),He=ze+g(Ye*ae.bx);we=ae.crossPos+Math.min(ze,He),Qe=ae.crossPos+Math.max(ze,He)}$?d!==void 0&&p!==void 0&&Math.min(Qe,p)-Math.max(we,d)>1&&(Z.side==="left"?(ce=Z._mainLinePosition,De=t.width):De=Z._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(Qe,v)-Math.max(we,c)>1&&(Z.side==="top"?(ce=Z._mainLinePosition,De=t.height):De=Z._mainLinePosition)}f[u++]=[{datum:ae,traceIndex:ae.trace.index,dp:0,pos:ae.pos,posref:ae.posref,size:ae.by*($?Cve:1)/2,pmin:ce,pmax:De}]}),f.sort(function(ae,J){return ae[0].posref-J[0].posref||l*(J[0].traceIndex-ae[0].traceIndex)});var b,A,_,x,T,E,S;function k(ae){var J=ae[0],Z=ae[ae.length-1];if(A=J.pmin-J.pos-J.dp+J.size,_=Z.pos+Z.dp+Z.size-J.pmax,A>.01){for(T=ae.length-1;T>=0;T--)ae[T].dp+=A;b=!1}if(!(_<.01)){if(A<-.01){for(T=ae.length-1;T>=0;T--)ae[T].dp-=_;b=!1}if(b){var $=0;for(x=0;xJ.pmax&&$++;for(x=ae.length-1;x>=0&&!($<=0);x--)E=ae[x],E.pos>J.pmax-1&&(E.del=!0,$--);for(x=0;x=0;T--)ae[T].dp-=_;for(x=ae.length-1;x>=0&&!($<=0);x--)E=ae[x],E.pos+E.dp+E.size>J.pmax&&(E.del=!0,$--)}}}for(;!b&&o<=s;){for(o++,b=!0,x=0;x.01){for(T=O.length-1;T>=0;T--)O[T].dp+=A;for(F.push.apply(F,O),f.splice(x+1,1),S=0,T=F.length-1;T>=0;T--)S+=F[T].dp;for(_=S/F.length,T=F.length-1;T>=0;T--)F[T].dp-=_;b=!1}else x++}f.forEach(k)}for(x=f.length-1;x>=0;x--){var H=f[x];for(T=H.length-1;T>=0;T--){var X=H[T],le=X.datum;le.offset=X.dp,le.del=X.del}}}function ZR(e,r){var t=0,a=e.offset;return r&&(a*=-Dve,t=e.offset*Lve),{x:t,y:a}}function Nve(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(yn+fa),a=t+r*(e.txwidth+fa),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+fa),{alignShift:r,textShiftX:t,text2ShiftX:a}}function JR(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=B0.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),f=o.anchor,u=f==="end"?-1:1,c=Nve(o),v=ZR(o,r),d=v.x,p=v.y,g=f==="middle";l.select("path").attr("d",g?"M-"+n(o.bx/2+o.tx2width/2)+","+i(p-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":"M0,0L"+n(u*yn+d)+","+i(yn+p)+"v"+i(o.by/2-yn)+"h"+n(u*o.bx)+"v-"+i(o.by)+"H"+n(u*yn+d)+"V"+i(p-yn)+"Z");var m=d+c.textShiftX,b=p+o.ty0-o.by/2+fa,A=o.textAlign||"auto";A!=="auto"&&(A==="left"&&f!=="start"?(s.attr("text-anchor","start"),m=g?-o.bx/2-o.tx2width/2+fa:-o.bx-fa):A==="right"&&f!=="end"&&(s.attr("text-anchor","end"),m=g?o.bx/2-o.tx2width/2-fa:o.bx+fa)),s.call(Yl.positionText,n(m),i(b)),o.tx2width&&(l.select("text.name").call(Yl.positionText,n(c.text2ShiftX+c.alignShift*fa+d),i(p+o.ty0-o.by/2+fa)),l.select("rect").call(Lf.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),i(p-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function Ove(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||Du(v)&&v===0}var l=Array.isArray(t)?function(v,d){var p=Dn.castOption(n,t,v);return o(p)?p:Dn.extractOption({},a,"",d)}:function(v,d){return Dn.extractOption(i,a,v,d)};function s(v,d,p){var g=l(d,p);o(g)&&(e[v]=g)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Dn.constrain(e.x0,0,e.xa._length),e.x1=Dn.constrain(e.x1,0,e.xa._length),e.y0=Dn.constrain(e.y0,0,e.ya._length),e.y1=Dn.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Df.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Df.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var f=Df.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+f+" / -"+Df.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+f,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var u=Df.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+u+" / -"+Df.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+u,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function UR(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,f,u;if(a.selectAll(".spikeline").remove(),!!(s||l)){var c=xi.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var v=r.hLinePoint,d,p;f=v&&v.xa,u=v&&v.ya;var g=u.spikesnap;g==="cursor"?(d=o.pointerX,p=o.pointerY):(d=f._offset+v.x,p=u._offset+v.y);var m=IR.readability(v.color,c)<1.5?xi.contrast(c):v.color,b=u.spikemode,A=u.spikethickness,_=u.spikecolor||m,x=Df.getPxPosition(e,u),T,E;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(T=x,E=d),b.indexOf("across")!==-1){var S=u._counterDomainMin,k=u._counterDomainMax;u.anchor==="free"&&(S=Math.min(S,u.position),k=Math.max(k,u.position)),T=i.l+S*i.w,E=i.l+k*i.w}a.insert("line",":first-child").attr({x1:T,x2:E,y1:p,y2:p,"stroke-width":A,stroke:_,"stroke-dasharray":Lf.dashStyle(u.spikedash,A)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:T,x2:E,y1:p,y2:p,"stroke-width":A+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:x+(u.side!=="right"?A:-A),cy:p,r:A,fill:_}).classed("spikeline",!0)}if(s){var F=r.vLinePoint,O,I;f=F&&F.xa,u=F&&F.ya;var R=f.spikesnap;R==="cursor"?(O=o.pointerX,I=o.pointerY):(O=f._offset+F.x,I=u._offset+F.y);var H=IR.readability(F.color,c)<1.5?xi.contrast(c):F.color,X=f.spikemode,le=f.spikethickness,ae=f.spikecolor||H,J=Df.getPxPosition(e,f),Z,$;if(X.indexOf("toaxis")!==-1||X.indexOf("across")!==-1){if(X.indexOf("toaxis")!==-1&&(Z=J,$=I),X.indexOf("across")!==-1){var oe=f._counterDomainMin,ce=f._counterDomainMax;f.anchor==="free"&&(oe=Math.min(oe,f.position),ce=Math.max(ce,f.position)),Z=i.t+(1-ce)*i.h,$=i.t+(1-oe)*i.h}a.insert("line",":first-child").attr({x1:O,x2:O,y1:Z,y2:$,"stroke-width":le,stroke:ae,"stroke-dasharray":Lf.dashStyle(f.spikedash,le)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:O,x2:O,y1:Z,y2:$,"stroke-width":le+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}X.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:O,cy:J-(f.side!=="top"?le:-le),r:le,fill:ae}).classed("spikeline",!0)}}}function Ive(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers))return!0}return!1}function HR(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function VR(e,r){return Yl.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Bve(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;o{"use strict";var zve=Ur(),Gve=ha(),Uve=Cu().isUnifiedHover;KR.exports=function(r,t,a,n){n=n||{};var i=t.legend;function o(l){n.font[l]||(n.font[l]=i?t.legend.font[l]:t.font[l])}t&&Uve(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=Gve.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),zve.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var rq=P((lLe,eq)=>{"use strict";var Hve=Ur(),Vve=c3(),Yve=Zh();eq.exports=function(r,t){function a(n,i){return Hve.coerce(r,t,Yve,n,i)}Vve(r,t,a)}});var nq=P((sLe,aq)=>{"use strict";var tq=Ur(),Wve=Pg(),jve=c3();aq.exports=function(r,t,a,n){function i(l,s){return tq.coerce(r,t,Wve,l,s)}var o=tq.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),jve(r,t,i,o)}});var Jw=P((fLe,iq)=>{"use strict";var Xve=Ur(),Zve=Zh();iq.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:Xve.coerce(r,t,Zve,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var sq=P((uLe,lq)=>{"use strict";var oq=Ur(),Jve=Zh(),$ve=Jw(),Qve=c3();lq.exports=function(r,t){function a(u,c){return oq.coerce(r,t,Jve,u,c)}var n=$ve(r,t);n&&(a("hoverdistance"),a("spikedistance"));var i=a("dragmode");i==="select"&&a("selectdirection");var o=t._has("mapbox"),l=t._has("map"),s=t._has("geo"),f=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l||s)&&f===1||(o||l)&&s&&f===2)&&(t.dragmode="pan"),Qve(r,t,a),oq.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var cq=P((cLe,uq)=>{"use strict";var $w=Ur(),fq=It();uq.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(f){return function(u){return $w.coerceHoverinfo({hoverinfo:u},{_module:f._module},a)}}for(var i=0;i{"use strict";var e0e=It(),r0e=Zw().hover;vq.exports=function(r,t,a){var n=e0e.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&r0e(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Wc=P((hLe,mq)=>{"use strict";var t0e=da(),v3=Ur(),a0e=Ps(),dm=Cu(),dq=Zh(),pq=Zw();mq.exports={moduleType:"component",name:"fx",constants:Op(),schema:{layout:dq},attributes:Pg(),layoutAttributes:dq,supplyLayoutGlobalDefaults:rq(),supplyDefaults:nq(),supplyLayoutDefaults:sq(),calc:cq(),getDistanceFunction:dm.getDistanceFunction,getClosest:dm.getClosest,inbox:dm.inbox,quadrature:dm.quadrature,appendArrayPointValue:dm.appendArrayPointValue,castHoverOption:i0e,castHoverinfo:o0e,hover:pq.hover,unhover:a0e.unhover,loneHover:pq.loneHover,loneUnhover:n0e,click:hq()};function n0e(e){var r=v3.isD3Selection(e)?e:t0e.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function i0e(e,r,t){return v3.castOption(e,r,"hoverlabel."+t)}function o0e(e,r,t){function a(n){return v3.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return v3.castOption(e,t,"hoverinfo",a)}});var jc=P(Fu=>{"use strict";Fu.selectMode=function(e){return e==="lasso"||e==="select"};Fu.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Fu.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Fu.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Fu.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Fu.selectingOrDrawing=function(e){return Fu.freeMode(e)||Fu.rectMode(e)}});var h3=P((pLe,yq)=>{"use strict";yq.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var d3=P((mLe,gq)=>{"use strict";gq.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var m3=P((yLe,bq)=>{"use strict";var p3=32;bq.exports={CIRCLE_SIDES:p3,i000:0,i090:p3/4,i180:p3/2,i270:p3/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var y3=P((gLe,_q)=>{"use strict";var l0e=Ur().strTranslate;function xq(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function s0e(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function f0e(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return xq(e,t[r])}}function u0e(e){return l0e(e.xaxis._offset,e.yaxis._offset)}_q.exports={p2r:xq,r2p:s0e,axValue:f0e,getTransform:u0e}});var Xc=P(Ru=>{"use strict";var c0e=rm(),Tq=m3(),qd=Tq.CIRCLE_SIDES,Qw=Tq.SQRT2,Mq=y3(),wq=Mq.p2r,Aq=Mq.r2p,v0e=[0,3,4,5,6,1,2],h0e=[0,3,4,1,2];Ru.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var Lq=jc(),d0e=Lq.drawMode,p0e=Lq.openMode,Pd=m3(),Sq=Pd.i000,Eq=Pd.i090,kq=Pd.i180,Cq=Pd.i270,m0e=Pd.cos45,y0e=Pd.sin45,Dq=y3(),b3=Dq.p2r,Zc=Dq.r2p,g0e=Oc(),b0e=g0e.clearOutline,x3=Xc(),x0e=x3.readPaths,_0e=x3.writePaths,w0e=x3.ellipseOver,A0e=x3.fixDatesForPaths;function T0e(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,o=(a.layout||{}).shapes||[];if(!d0e(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var M0e=jc(),S0e=M0e.selectMode,E0e=Oc(),k0e=E0e.clearOutline,Kw=Xc(),C0e=Kw.readPaths,L0e=Kw.writePaths,D0e=Kw.fixDatesForPaths;qq.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,f=l.yaxis,u=t.isActiveSelection,c=t.dragmode,v=(i.layout||{}).selections||[];if(!S0e(c)&&u!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";Pq.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var Jc=P(qi=>{"use strict";var G0=mm(),Nq=Ur(),w3=hn();qi.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};qi.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};qi.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};qi.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};qi.extractPathCoords=function(e,r,t){var a=[],n=e.match(G0.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.substr(1).match(G0.paramRE);if(!(!l||l.lengthd&&(g="X"),g});return f>d&&(p=p.replace(/[\s,]*X.*/,""),Nq.log("Ignoring extra params in segment "+s)),u+p})}function ym(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var tA=P((TLe,zq)=>{"use strict";var R0e=Ur(),Nd=hn(),Oq=po(),Iq=Wa(),q0e=Xc().readPaths,rA=Jc(),P0e=rA.getPathString,Bq=Vg(),N0e=ho().FROM_TL;zq.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var o={};if(a.type!=="path"){var l=Nd.getFromId(r,a.xref),s=Nd.getFromId(r,a.yref);for(var f in Bq){var u=Bq[f](a,l,s);u!==void 0&&(o[f]=u)}}i=R0e.texttemplateStringForShapes(a.label.texttemplate,{},r._fullLayout._d3locale,o)}else i=a.label.text;var c={"data-index":t},v=a.label.font,d={"data-notex":1},p=n.append("g").attr(c).classed("shape-label",!0),g=p.append("text").attr(d).classed("shape-label-text",!0).text(i),m,b,A,_;if(a.path){var x=P0e(r,a),T=q0e(x,r);m=1/0,A=1/0,b=-1/0,_=-1/0;for(var E=0;E=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function I0e(e,r,t,a,n,i,o){var l=n.label.textposition,s=n.label.textangle,f=n.label.padding,u=n.type,c=Math.PI/180*i,v=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,g=n.label.yanchor,m,b,A,_;if(u==="line"){l==="start"?(m=e,b=r):l==="end"?(m=t,b=a):(m=(e+t)/2,b=(r+a)/2),p==="auto"&&(l==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var B0e=Ur(),z0e=B0e.strTranslate,Gq=Ps(),Vq=jc(),G0e=Vq.drawMode,Yq=Vq.selectMode,Wq=It(),Uq=ha(),T3=m3(),U0e=T3.i000,H0e=T3.i090,V0e=T3.i180,Y0e=T3.i270,W0e=Oc(),jq=W0e.clearOutlineControllers,nA=Xc(),A3=nA.pointsOnRectangle,aA=nA.pointsOnEllipse,j0e=nA.writePaths,X0e=_3().newShapes,Z0e=_3().createShapeObj,J0e=eA(),$0e=tA();Xq.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(aA(r[0])||a.hasText)&&l({redrawing:!0})}function l(J){var Z={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,Z=X0e(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,Z=J0e(t,a),i._fullLayout._reselect=!0),Object.keys(Z).length&&Wq.call((J||{}).redrawing?"relayout":"_guiRelayout",i,Z)}var s=i._fullLayout,f=s._zoomlayer,u=a.dragmode,c=G0e(u),v=Yq(u);(c||v)&&(i._fullLayout._outlining=!0),jq(i),t.attr("d",j0e(r));var d,p,g,m,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=Q0e([],r);var A=f.append("g").attr("class","outline-controllers");O(A),ae()}if(c&&a.hasText){var _=f.select(".label-temp"),x=Z0e(t,a,a.dragmode);$0e(i,"label-temp",x,_)}function T(J){g=+J.srcElement.getAttribute("data-i"),m=+J.srcElement.getAttribute("data-j"),d[g][m].moveFn=E}function E(J,Z){if(r.length){var $=b[g][m][1],oe=b[g][m][2],ce=r[g],De=ce.length;if(A3(ce)){var Ne=J,Ee=Z;if(a.isActiveSelection){var Ye=Hq(ce,m);Ye[1]===ce[m][1]?Ee=0:Ne=0}for(var we=0;we1&&!(J.length===2&&J[1][0]==="Z")&&(m===0&&(J[0][0]="M"),r[g]=J,o(),l())}}function F(J,Z){if(J===2){g=+Z.srcElement.getAttribute("data-i"),m=+Z.srcElement.getAttribute("data-j");var $=r[g];!A3($)&&!aA($)&&k()}}function O(J){d=[];for(var Z=0;Z{"use strict";var ehe=da(),eP=It(),Zq=Ur(),Od=hn(),rhe=Xc().readPaths,the=M3(),E3=tA(),rP=Oc().clearOutlineControllers,iA=ha(),lA=Wa(),ahe=Ja().arrayEditor,Jq=Ps(),$q=Yc(),U0=mm(),$o=Jc(),oA=$o.getPathString;nP.exports={draw:sA,drawOne:tP,eraseActiveShape:ohe,drawLabel:E3};function sA(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;no&&Xr>l&&!Or.shiftKey?Jq.getCursor(Kr/Lr,1-Mr/Xr):"move";$q(r,jr),Qe=jr.split("-")[0]}}function Ue(Or){S3(e)||(s&&(b=ce(t.xanchor)),f&&(A=De(t.yanchor)),t.type==="path"?I=t.path:(d=s?t.x0:ce(t.x0),p=f?t.y0:De(t.y0),g=s?t.x1:ce(t.x1),m=f?t.y1:De(t.y1)),dm?(_=p,S="y0",x=m,k="y1"):(_=m,S="y1",x=p,k="y0"),$e(Or),ur(n,t),Pr(r,t,e),we.moveFn=Qe==="move"?te:Xe,we.altKey=Or.altKey)}function ee(){S3(e)||($q(r),rr(n),aP(r,e,t),eP.call("_guiRelayout",e,i.getUpdateObj()))}function _e(){S3(e)||rr(n)}function te(Or,wr){if(t.type==="path"){var Lr=function(Mr){return Mr},Xr=Lr,Kr=Lr;s?v("xanchor",t.xanchor=Ne(b+Or)):(Xr=function(jr){return Ne(ce(jr)+Or)},H&&H.type==="date"&&(Xr=$o.encodeDate(Xr))),f?v("yanchor",t.yanchor=Ee(A+wr)):(Kr=function(jr){return Ee(De(jr)+wr)},le&&le.type==="date"&&(Kr=$o.encodeDate(Kr))),v("path",t.path=Qq(I,Xr,Kr))}else s?v("xanchor",t.xanchor=Ne(b+Or)):(v("x0",t.x0=Ne(d+Or)),v("x1",t.x1=Ne(g+Or))),f?v("yanchor",t.yanchor=Ee(A+wr)):(v("y0",t.y0=Ee(p+wr)),v("y1",t.y1=Ee(m+wr)));r.attr("d",oA(e,t)),ur(n,t),E3(e,a,t,R)}function Xe(Or,wr){if(c){var Lr=function(Hr){return Hr},Xr=Lr,Kr=Lr;s?v("xanchor",t.xanchor=Ne(b+Or)):(Xr=function(ot){return Ne(ce(ot)+Or)},H&&H.type==="date"&&(Xr=$o.encodeDate(Xr))),f?v("yanchor",t.yanchor=Ee(A+wr)):(Kr=function(ot){return Ee(De(ot)+wr)},le&&le.type==="date"&&(Kr=$o.encodeDate(Kr))),v("path",t.path=Qq(I,Xr,Kr))}else if(u){if(Qe==="resize-over-start-point"){var Mr=d+Or,jr=f?p-wr:p+wr;v("x0",t.x0=s?Mr:Ne(Mr)),v("y0",t.y0=f?jr:Ee(jr))}else if(Qe==="resize-over-end-point"){var Yr=g+Or,Fe=f?m-wr:m+wr;v("x1",t.x1=s?Yr:Ne(Yr)),v("y1",t.y1=f?Fe:Ee(Fe))}}else{var lr=function(Hr){return Qe.indexOf(Hr)!==-1},vr=lr("n"),Tt=lr("s"),ht=lr("w"),mr=lr("e"),yr=vr?_+wr:_,Vr=Tt?x+wr:x,at=ht?T+Or:T,Wr=mr?E+Or:E;f&&(vr&&(yr=_-wr),Tt&&(Vr=x-wr)),(!f&&Vr-yr>l||f&&yr-Vr>l)&&(v(S,t[S]=f?yr:Ee(yr)),v(k,t[k]=f?Vr:Ee(Vr))),Wr-at>o&&(v(F,t[F]=s?at:Ne(at)),v(O,t[O]=s?Wr:Ne(Wr)))}r.attr("d",oA(e,t)),ur(n,t),E3(e,a,t,R)}function ur(Or,wr){(s||f)&&Lr();function Lr(){var Xr=wr.type!=="path",Kr=Or.selectAll(".visual-cue").data([0]),Mr=1;Kr.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Mr}).classed("visual-cue",!0);var jr=ce(s?wr.xanchor:Zq.midRange(Xr?[wr.x0,wr.x1]:$o.extractPathCoords(wr.path,U0.paramIsX))),Yr=De(f?wr.yanchor:Zq.midRange(Xr?[wr.y0,wr.y1]:$o.extractPathCoords(wr.path,U0.paramIsY)));if(jr=$o.roundPositionForSharpStrokeRendering(jr,Mr),Yr=$o.roundPositionForSharpStrokeRendering(Yr,Mr),s&&f){var Fe="M"+(jr-1-Mr)+","+(Yr-1-Mr)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Kr.attr("d",Fe)}else if(s){var lr="M"+(jr-1-Mr)+","+(Yr-9-Mr)+"v18 h2 v-18 Z";Kr.attr("d",lr)}else{var vr="M"+(jr-9-Mr)+","+(Yr-1-Mr)+"h18 v2 h-18 Z";Kr.attr("d",vr)}}}function rr(Or){Or.selectAll(".visual-cue").remove()}function Pr(Or,wr,Lr){var Xr=wr.xref,Kr=wr.yref,Mr=Od.getFromId(Lr,Xr),jr=Od.getFromId(Lr,Kr),Yr="";Xr!=="paper"&&!Mr.autorange&&(Yr+=Xr),Kr!=="paper"&&!jr.autorange&&(Yr+=Kr),lA.setClipUrl(Or,Yr?"clip"+Lr._fullLayout._uid+Yr:null,Lr)}}function Qq(e,r,t){return e.replace(U0.segmentRE,function(a){var n=0,i=a.charAt(0),o=U0.paramIsX[i],l=U0.paramIsY[i],s=U0.numParams[i],f=a.substr(1).replace(U0.paramRE,function(u){return n>=s||(o[n]?u=r(u):l[n]&&(u=t(u)),n++),u});return i+f})}function ihe(e,r){if(k3(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){Kq(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=Kq,sA(e)}}}function Kq(e){if(k3(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(rP(e),delete e._fullLayout._activeShapeIndex,sA(e))}}function ohe(e){if(k3(e)){rP(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Wl=It(),iP=gi(),oP=En(),ba=d3(),lhe=C3().eraseActiveShape,L3=Ur(),oa=L3._,xa=hP.exports={};xa.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?oa(e,"Download plot as a PNG"):oa(e,"Download plot")},icon:ba.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};L3.notifier(oa(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Wl.call("downloadImage",e,t).then(function(a){L3.notifier(oa(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){L3.notifier(oa(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};xa.sendDataToCloud={name:"sendDataToCloud",title:function(e){return oa(e,"Edit in Chart Studio")},icon:ba.disk,click:function(e){iP.sendDataToCloud(e)}};xa.editInChartStudio={name:"editInChartStudio",title:function(e){return oa(e,"Edit in Chart Studio")},icon:ba.pencil,click:function(e){iP.sendDataToCloud(e)}};xa.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return oa(e,"Zoom")},attr:"dragmode",val:"zoom",icon:ba.zoombox,click:go};xa.pan2d={name:"pan2d",_cat:"pan",title:function(e){return oa(e,"Pan")},attr:"dragmode",val:"pan",icon:ba.pan,click:go};xa.select2d={name:"select2d",_cat:"select",title:function(e){return oa(e,"Box Select")},attr:"dragmode",val:"select",icon:ba.selectbox,click:go};xa.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return oa(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:ba.lasso,click:go};xa.drawclosedpath={name:"drawclosedpath",title:function(e){return oa(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:ba.drawclosedpath,click:go};xa.drawopenpath={name:"drawopenpath",title:function(e){return oa(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:ba.drawopenpath,click:go};xa.drawline={name:"drawline",title:function(e){return oa(e,"Draw line")},attr:"dragmode",val:"drawline",icon:ba.drawline,click:go};xa.drawrect={name:"drawrect",title:function(e){return oa(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:ba.drawrect,click:go};xa.drawcircle={name:"drawcircle",title:function(e){return oa(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:ba.drawcircle,click:go};xa.eraseshape={name:"eraseshape",title:function(e){return oa(e,"Erase active shape")},icon:ba.eraseshape,click:lhe};xa.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return oa(e,"Zoom in")},attr:"zoom",val:"in",icon:ba.zoom_plus,click:go};xa.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return oa(e,"Zoom out")},attr:"zoom",val:"out",icon:ba.zoom_minus,click:go};xa.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return oa(e,"Autoscale")},attr:"zoom",val:"auto",icon:ba.autoscale,click:go};xa.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return oa(e,"Reset axes")},attr:"zoom",val:"reset",icon:ba.home,click:go};xa.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return oa(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:ba.tooltip_basic,gravity:"ne",click:go};xa.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return oa(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:ba.tooltip_compare,gravity:"ne",click:go};function go(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=oP.list(e,null,!0),s=i._cartesianSpikesEnabled,f,u;if(a==="zoom"){var c=n==="in"?.5:2,v=(1+c)/2,d=(1-c)/2,p;for(u=0;u{"use strict";var dP=cA(),uhe=Object.keys(dP),pP=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],mP=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(pP),Bd=[],che=function(e){if(mP.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();Bd.indexOf(r)===-1&&Bd.push(r),Bd.indexOf(t)===-1&&Bd.push(t)}};uhe.forEach(function(e){che(dP[e])});Bd.sort();yP.exports={DRAW_MODES:pP,backButtons:mP,foreButtons:Bd}});var hA=P((LLe,gP)=>{"use strict";var CLe=vA();gP.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var xP=P((DLe,bP)=>{"use strict";var vhe=Ur(),gm=ha(),hhe=Ja(),dhe=hA();bP.exports=function(r,t){var a=r.modebar||{},n=hhe.newContainer(t,"modebar");function i(l,s){return vhe.coerce(a,n,dhe,l,s)}i("orientation"),i("bgcolor",gm.addOpacity(t.paper_bgcolor,.5));var o=gm.contrast(gm.rgb(t.modebar.bgcolor));i("color",gm.addOpacity(o,.3)),i("activecolor",gm.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var TP=P((FLe,AP)=>{"use strict";var dA=da(),phe=ga(),F3=Ur(),_P=d3(),mhe=_g().version,yhe=new DOMParser;function wP(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Ff=wP.prototype;Ff.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this._uid=n,this.element.className="modebar",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,f=this.locale!==t.locale;if(this.locale=t.locale,(l||s||f)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var u=this.getLogo();t.watermark&&(u.className=u.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(u,this.element.childNodes[0]):this.element.appendChild(u),this.hasLogo=!0}this.updateActiveButton(),F3.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Ff.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(n);r.buttonElements.push(o),a.appendChild(o)}),r.element.appendChild(a)})};Ff.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Ff.createButton=function(e){var r=this,t=document.createElement("a");t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&t.setAttribute("data-title",a),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&dA.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||_P.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Ff.createIcon=function(e){var r=phe(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=yhe.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Ff.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),o=a.getAttribute("data-toggle")==="true",l=dA.select(a),s=function(c,v){var d=r.modebar,p=c.querySelector(".icon path");p&&(v||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(i===t){var f=!l.classed("active");l.classed("active",f),s(a,f)}}else{var u=i===null?i:F3.nestedProperty(r,i).get();l.classed("active",u===n),s(a,u===n)}})};Ff.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var xhe=En(),MP=Ri(),pA=It(),_he=Cu().isUnifiedHover,whe=TP(),R3=cA(),Ahe=vA().DRAW_MODES,The=Ur().extendDeep;SP.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,o;Array.isArray(i)&&i.length?o=Lhe(i):!a.displayModeBar&&a.watermark?o=[]:o=Mhe(r),n?n.update(r,o):t._modeBar=whe(r,o)};function Mhe(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(Z,$){if(typeof $=="string"){if($.toLowerCase()===Z.toLowerCase())return!0}else{var oe=$.name,ce=$._cat||$.name;if(oe===Z||ce===Z.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=a.modeBarButtonsToAdd.concat(i.filter(function(Z){for(var $=0;$1?(O=["toggleHover"],I=["resetViews"]):c?(F=["zoomInGeo","zoomOutGeo"],O=["hoverClosestGeo"],I=["resetGeo"]):u?(O=["hoverClosest3d"],I=["resetCameraDefault3d","resetCameraLastSave3d"]):g?(F=["zoomInMapbox","zoomOutMapbox"],O=["toggleHover"],I=["resetViewMapbox"]):m?(F=["zoomInMap","zoomOutMap"],O=["toggleHover"],I=["resetViewMap"]):v?O=["hoverClosestPie"]:_?(O=["hoverClosestCartesian","hoverCompareCartesian"],I=["resetViewSankey"]):O=["toggleHover"],f&&O.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(khe(t)||T)&&(O=[]),f&&!x&&(F=["zoomIn2d","zoomOut2d","autoScale2d"],I[0]!=="resetViews"&&(I=["resetScale2d"])),u?R=["zoom3d","pan3d","orbitRotation","tableRotation"]:f&&!x||p?R=["zoom2d","pan2d"]:g||m||c?R=["pan2d"]:b&&(R=["zoom2d"]),Ehe(t)&&R.push("select2d","lasso2d");var H=[],X=function(Z){H.indexOf(Z)===-1&&O.indexOf(Z)!==-1&&H.push(Z)};if(Array.isArray(l)){for(var le=[],ae=0;ae{"use strict";kP.exports={moduleType:"component",name:"modebar",layoutAttributes:hA(),supplyLayoutDefaults:xP(),manage:EP()}});var yA=P((PLe,CP)=>{"use strict";var Dhe=ho().FROM_BL;CP.exports=function(r,t,a){a===void 0&&(a=Dhe[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var xm=P(bm=>{"use strict";var H0=Ur(),gA=Ad(),Os=En().id2name,Fhe=Ul(),LP=yA(),Rhe=O2(),qhe=Jn().ALMOST_EQUAL,Phe=ho().FROM_BL;bm.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,f,u,c,v,d,p;for(l=0;li?t.substr(i):a.substr(n))+o}function Ohe(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;oqhe*p&&!A)){for(i=0;iR&&oeO&&(O=oe);var De=(O-F)/(2*I);c/=De,F=s.l2r(F),O=s.l2r(O),s.range=s._input.range=E{"use strict";var P3=da(),bo=It(),Al=gi(),jl=Ur(),_A=po(),wA=h3(),_m=ha(),zd=Wa(),qP=nm(),BP=mA(),wm=hn(),qu=ho(),zP=xm(),Ihe=zP.enforce,Bhe=zP.clean,PP=Ad().doAutoRange,GP="start",zhe="middle",UP="end",Ghe=Fi().zindexSeparator;_i.layoutStyles=function(e){return jl.syncOrAsync([Al.doAutoMargin,Hhe],e)};function Uhe(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function Hhe(e){var r=e._fullLayout,t=r._size,a=t.p,n=wm.list(e,"",!0),i,o,l,s,f,u;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(zd.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),_i.drawMainTitle(e),BP.manage(e),!r._has("cartesian"))return Al.previousPromises(e);function c(Ue,ee,_e){var te=Ue._lw/2;if(Ue._id.charAt(0)==="x"){if(ee){if(_e==="top")return ee._offset-a-te}else return t.t+t.h*(1-(Ue.position||0))+te%1;return ee._offset+ee._length+a+te}if(ee){if(_e==="right")return ee._offset+ee._length+a+te}else return t.l+t.w*(Ue.position||0)+te%1;return ee._offset-a-te}for(i=0;i0){jhe(e,i,f,s),l.attr({x:o,y:i,"text-anchor":a,dy:IP(r.yanchor)}).call(_A.positionText,o,i);var u=(r.text.match(_A.BR_TAG_ALL)||[]).length;if(u){var c=qu.LINE_SPACING*u+qu.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var m=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",m)})}var v=P3.selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,g=p+qP.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y:g,"text-anchor":a,dy:IP(r.yanchor)}).call(_A.positionText,o,g)}}}};function Vhe(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=jl.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return jl.isTopAnchor(r)&&t==="t"||jl.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=Yhe(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function jhe(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&Vhe(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),Al.allowAutoMargin(e,n),Al.autoMargin(e,n,l)}function Xhe(e,r){var t=e.title,a=e._size,n=0;switch(r===GP?n=t.pad.l:r===UP&&(n=-t.pad.r),t.xref){case"paper":return a.l+a.w*t.x+n;case"container":default:return e.width*t.x+n}}function Zhe(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===qu.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto")return a.t/2;switch(t.yref){case"paper":return a.t+a.h-a.h*t.y+n;case"container":default:return e.height-e.height*t.y+n}}function IP(e){return e==="top"?qu.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":qu.MID_SHIFT+"em"}function Jhe(e){var r=e.title,t=zhe;return jl.isRightAnchor(r)?t=UP:jl.isLeftAnchor(r)&&(t=GP),t}function $he(e){var r=e.title,t="0em";return jl.isTopAnchor(r)?t=qu.CAP_SHIFT+"em":jl.isMiddleAnchor(r)&&(t=qu.MID_SHIFT+"em"),t}_i.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var Qhe=Xc().readPaths,Khe=M3(),HP=Oc().clearOutlineControllers,AA=ha(),VP=Wa(),ede=Ja().arrayEditor,YP=Jc(),rde=YP.getPathString;jP.exports={draw:O3,drawOne:WP,activateLastSelection:nde};function O3(e){var r=e._fullLayout;HP(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;m--){var b=o.append("path").attr(s).style("opacity",m?.1:f).call(AA.stroke,c).call(AA.fill,u).call(VP.dashLine,m?"solid":d,m?4+v:v);if(tde(b,e,a),p){var A=ede(e.layout,"selections",a);b.style({cursor:"move"});var _={element:b.node(),plotinfo:n,gd:e,editHelpers:A,isActiveSelection:!0},x=Qhe(l,e);Khe(x,b,_)}else b.style("pointer-events",m?"all":"none");g[m]=b}var T=g[0],E=g[1];E.node().addEventListener("click",function(){return ade(e,T)})}}function tde(e,r,t){var a=t.xref+t.yref;VP.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function ade(e,r){if(I3(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){TA(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=TA,O3(e)}}}function nde(e){if(I3(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=TA,O3(e)}}function TA(e){if(I3(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(HP(e),delete e._fullLayout._activeSelectionIndex,O3(e))}}});var ZP=P((BLe,XP)=>{function ide(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,o){return a("temp_status",{seg:n,above:i,below:o})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,o){return a("status",{seg:n,above:i,below:o})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}XP.exports=ide});var $P=P((zLe,JP)=>{function ode(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],o=a[1],l=n[0],s=n[1],f=t[0],u=t[1];return(l-i)*(u-o)-(s-o)*(f-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],o=n[0]-a[0],l=t[0]-a[0],s=n[1]-a[1],f=l*o+i*s;if(f-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=l-i>e&&(o-u)*(i-c)/(l-c)+u-n>e&&(s=!s),o=u,l=c}return s}};return r}JP.exports=ode});var KP=P((GLe,QP)=>{var lde={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};QP.exports=lde});var rN=P((ULe,eN)=>{var Am=KP();function sde(e,r,t){function a(p,g){return{id:t?t.segmentId():-1,start:p,end:g,myFill:{above:null,below:null},otherFill:null}}function n(p,g,m){return{id:t?t.segmentId():-1,start:p,end:g,myFill:{above:m.myFill.above,below:m.myFill.below},otherFill:null}}var i=Am.create();function o(p,g,m,b,A,_){var x=r.pointsCompare(g,A);return x!==0?x:r.pointsSame(m,_)?0:p!==b?p?1:-1:r.pointAboveOrOnLine(m,b?A:_,b?_:A)?1:-1}function l(p,g){i.insertBefore(p,function(m){var b=o(p.isStart,p.pt,g,m.isStart,m.pt,m.other.pt);return b<0})}function s(p,g){var m=Am.node({isStart:!0,pt:p.start,seg:p,primary:g,other:null,status:null});return l(m,p.end),m}function f(p,g,m){var b=Am.node({isStart:!1,pt:g.end,seg:g,primary:m,other:p,status:null});p.other=b,l(b,p.pt)}function u(p,g){var m=s(p,g);return f(m,p,g),m}function c(p,g){t&&t.segmentChop(p.seg,g),p.other.remove(),p.seg.end=g,p.other.pt=g,l(p.other,p.pt)}function v(p,g){var m=n(g,p.seg.end,p.seg);return c(p,g),u(m,p.primary)}function d(p,g){var m=Am.create();function b(le,ae){var J=le.seg.start,Z=le.seg.end,$=ae.seg.start,oe=ae.seg.end;return r.pointsCollinear(J,$,oe)?r.pointsCollinear(Z,$,oe)||r.pointAboveOrOnLine(Z,$,oe)?1:-1:r.pointAboveOrOnLine(J,$,oe)?1:-1}function A(le){return m.findTransition(function(ae){var J=b(le,ae.ev);return J>0})}function _(le,ae){var J=le.seg,Z=ae.seg,$=J.start,oe=J.end,ce=Z.start,De=Z.end;t&&t.checkIntersection(J,Z);var Ne=r.linesIntersect($,oe,ce,De);if(Ne===!1){if(!r.pointsCollinear($,oe,ce)||r.pointsSame($,De)||r.pointsSame(oe,ce))return!1;var Ee=r.pointsSame($,ce),Ye=r.pointsSame(oe,De);if(Ee&&Ye)return ae;var we=!Ee&&r.pointBetween($,ce,De),Qe=!Ye&&r.pointBetween(oe,ce,De);if(Ee)return Qe?v(ae,oe):v(le,De),ae;we&&(Ye||(Qe?v(ae,oe):v(le,De)),v(ae,$))}else Ne.alongA===0&&(Ne.alongB===-1?v(le,ce):Ne.alongB===0?v(le,Ne.pt):Ne.alongB===1&&v(le,De)),Ne.alongB===0&&(Ne.alongA===-1?v(ae,$):Ne.alongA===0?v(ae,Ne.pt):Ne.alongA===1&&v(ae,oe));return!1}for(var x=[];!i.isEmpty();){var T=i.getHead();if(t&&t.vert(T.pt[0]),T.isStart){let le=function(){if(S){var ae=_(T,S);if(ae)return ae}return k?_(T,k):!1};var X=le;t&&t.segmentNew(T.seg,T.primary);var E=A(T),S=E.before?E.before.ev:null,k=E.after?E.after.ev:null;t&&t.tempStatus(T.seg,S?S.seg:!1,k?k.seg:!1);var F=le();if(F){if(e){var O;T.seg.myFill.below===null?O=!0:O=T.seg.myFill.above!==T.seg.myFill.below,O&&(F.seg.myFill.above=!F.seg.myFill.above)}else F.seg.otherFill=T.seg.myFill;t&&t.segmentUpdate(F.seg),T.other.remove(),T.remove()}if(i.getHead()!==T){t&&t.rewind(T.seg);continue}if(e){var O;T.seg.myFill.below===null?O=!0:O=T.seg.myFill.above!==T.seg.myFill.below,k?T.seg.myFill.below=k.seg.myFill.above:T.seg.myFill.below=p,O?T.seg.myFill.above=!T.seg.myFill.below:T.seg.myFill.above=T.seg.myFill.below}else if(T.seg.otherFill===null){var I;k?T.primary===k.primary?I=k.seg.otherFill.above:I=k.seg.myFill.above:I=T.primary?g:p,T.seg.otherFill={above:I,below:I}}t&&t.status(T.seg,S?S.seg:!1,k?k.seg:!1),T.other.status=E.insert(Am.node({ev:T}))}else{var R=T.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(m.exists(R.prev)&&m.exists(R.next)&&_(R.prev.ev,R.next.ev),t&&t.statusRemove(R.ev.seg),R.remove(),!T.primary){var H=T.seg.myFill;T.seg.myFill=T.seg.otherFill,T.seg.otherFill=H}x.push(T.seg)}i.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(p){for(var g,m=p[p.length-1],b=0;b{function fde(e,r,t){var a=[],n=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},f={index:0,matches_head:!1,matches_pt1:!1},u=s;function c(X,le,ae){return u.index=X,u.matches_head=le,u.matches_pt1=ae,u===s?(u=f,!1):(u=null,!0)}for(var v=0;v{function Tm(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var ude={union:function(e,r){return Tm(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Tm(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Tm(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Tm(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Tm(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};nN.exports=ude});var lN=P((YLe,oN)=>{var cde={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(f){var u=f.slice(0,f.length-1);return e.segments({inverted:!1,regions:[u]})}for(var l=o(i[0]),s=1;s{var vde=ZP(),hde=$P(),sN=rN(),dde=aN(),Mm=iN(),fN=lN(),Xl=!1,Sm=hde(),Qo;Qo={buildLog:function(e){return e===!0?Xl=vde():e===!1&&(Xl=!1),Xl===!1?!1:Xl.list},epsilon:function(e){return Sm.epsilon(e)},segments:function(e){var r=sN(!0,Sm,Xl);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=sN(!1,Sm,Xl);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Mm.union(e.combined,Xl),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Mm.intersect(e.combined,Xl),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Mm.difference(e.combined,Xl),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Mm.differenceRev(e.combined,Xl),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Mm.xor(e.combined,Xl),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:dde(e.segments,Sm,Xl),inverted:e.inverted}},polygonFromGeoJSON:function(e){return fN.toPolygon(Qo,e)},polygonToGeoJSON:function(e){return fN.fromPolygon(Qo,Sm,e)},union:function(e,r){return Em(e,r,Qo.selectUnion)},intersect:function(e,r){return Em(e,r,Qo.selectIntersect)},difference:function(e,r){return Em(e,r,Qo.selectDifference)},differenceRev:function(e,r){return Em(e,r,Qo.selectDifferenceRev)},xor:function(e,r){return Em(e,r,Qo.selectXor)}};function Em(e,r,t){var a=Qo.segments(e),n=Qo.segments(r),i=Qo.combine(a,n),o=t(i);return Qo.polygon(o)}typeof window=="object"&&(window.PolyBool=Qo);uN.exports=Qo});var hN=P((jLe,vN)=>{vN.exports=function(r,t,a,n){var i=r[0],o=r[1],l=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,f=0,u=s-1;fo!=p>o&&i<(d-c)*(o-v)/(p-v)+c;g&&(l=!l)}return l}});var EA=P((XLe,dN)=>{"use strict";var SA=zg().dot,B3=Jn().BADNUM,z3=dN.exports={};z3.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;ln||b===B3||bo||g&&f(p))}function c(p,g){var m=p[0],b=p[1];if(m===B3||mn||b===B3||bo)return!1;var A=t.length,_=t[0][0],x=t[0][1],T=0,E,S,k,F,O;for(E=1;EMath.max(S,_)||b>Math.max(k,x)))if(bl||Math.abs(SA(c,f))>n)return!0;return!1};z3.filter=function(r,t){var a=[r[0]],n=0,i=0;function o(s){r.push(s);var f=a.length,u=n;a.splice(i+1);for(var c=u+1;c1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:a}}});var mN=P((ZLe,pN)=>{"use strict";pN.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var IN=P((JLe,ON)=>{"use strict";var yN=cN(),pde=hN(),Lm=It(),mde=Wa().dashStyle,km=ha(),yde=Wc(),gde=Cu().makeEventData,Pm=jc(),bde=Pm.freeMode,xde=Pm.rectMode,Dm=Pm.drawMode,DA=Pm.openMode,FA=Pm.selectMode,gN=Jc(),bN=mm(),TN=M3(),MN=Oc().clearOutline,SN=Xc(),kA=SN.handleEllipse,_de=SN.readPaths,wde=_3().newShapes,Ade=eA(),Tde=MA().activateLastSelection,U3=Ur(),Mde=U3.sorterAsc,EN=EA(),Cm=r2(),Zl=En().getFromId,Sde=h3(),Ede=N3().redrawReglTraces,H3=mN(),Rf=H3.MINSELECT,kde=EN.filter,RA=EN.tester,qA=y3(),xN=qA.p2r,Cde=qA.axValue,Lde=qA.getTransform;function PA(e){return e.subplot!==void 0}function Dde(e,r,t,a,n){var i=!PA(a),o=bde(n),l=xde(n),s=DA(n),f=Dm(n),u=FA(n),c=n==="drawline",v=n==="drawcircle",d=c||v,p=a.gd,g=p._fullLayout,m=u&&g.newselection.mode==="immediate"&&i,b=g._zoomlayer,A=a.element.getBoundingClientRect(),_=a.plotinfo,x=Lde(_),T=r-A.left,E=t-A.top;g._calcInverseTransform(p);var S=U3.apply3DTransform(g._invTransform)(T,E);T=S[0],E=S[1];var k=g._invScaleX,F=g._invScaleY,O=T,I=E,R="M"+T+","+E,H=a.xaxes[0],X=a.yaxes[0],le=H._length,ae=X._length,J=e.altKey&&!(Dm(n)&&s),Z,$,oe,ce,De,Ne,Ee;CN(e,p,a),o&&(Z=kde([[T,E]],H3.BENDPX));var Ye=b.selectAll("path.select-outline-"+_.id).data([1]),we=f?g.newshape:g.newselection;f&&(a.hasText=we.label.text||we.label.texttemplate);var Qe=f&&!s?we.fillcolor:"rgba(0,0,0,0)",ze=we.line.color||(i?km.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");Ye.enter().append("path").attr("class","select-outline select-outline-"+_.id).style({opacity:f?we.opacity/2:1,"stroke-dasharray":mde(we.line.dash,we.line.width),"stroke-width":we.line.width+"px","shape-rendering":"crispEdges"}).call(km.stroke,ze).call(km.fill,Qe).attr("fill-rule","evenodd").classed("cursor-move",!!f).attr("transform",x).attr("d",R+"Z");var He=b.append("path").attr("class","zoombox-corners").style({fill:km.background,stroke:km.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(f&&a.hasText){var $e=b.select(".label-temp");$e.empty()&&($e=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Ue=g._uid+H3.SELECTID,ee=[],_e=V3(p,a.xaxes,a.yaxes,a.subplot);m&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var Xe=H._id,ur=X._id;qN(p,Xe,ur,_e);for(var rr=(p.layout||{}).selections||[],Pr=[],Or=!1,wr=0;wr=0){p._fullLayout._deactivateShape(p);return}if(!f){var rr=g.clickmode;Cm.done(Ue).then(function(){if(Cm.clear(Ue),Xe===2){for(Ye.remove(),De=0;De<_e.length;De++)Ne=_e[De],Ne._module.selectPoints(Ne,!1);if(Rm(p,_e),Fm(a),IA(p),_e.length){var Pr=_e[0].xaxis,Or=_e[0].yaxis;if(Pr&&Or){for(var wr=[],Lr=p._fullLayout.selections,Xr=0;Xr-1&&kN(ur,p,a.xaxes,a.yaxes,a.subplot,a,Ye),rr==="event"&&qm(p,void 0);yde.click(p,ur,_.id)}).catch(U3.error)}},a.doneFn=function(){He.remove(),Cm.done(Ue).then(function(){Cm.clear(Ue),!m&&ce&&a.selectionDefs&&(ce.subtract=J,a.selectionDefs.push(ce),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,oe)),(m||f)&&Fm(a,m),a.doneFnCompleted&&a.doneFnCompleted(ee),u&&qm(p,Ee)}).catch(U3.error)}}function kN(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,f=s.clickmode,u=f.indexOf("event")>-1,c=[],v,d,p,g,m,b,A,_,x,T;if(Nde(l)){CN(e,r,i),v=V3(r,t,a,n);var E=Ode(l,v),S=E.pointNumbers.length>0;if(S?Ide(v,E):Bde(v)&&(A=wN(E))){for(o&&o.remove(),T=0;T=0}function Pde(e){return e._fullLayout._activeSelectionIndex>=0}function Fm(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;qde(n)&&n._fullLayout._deactivateShape(n),Pde(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=Dm(t),s=FA(t);if(l||s){var f=o.selectAll(".select-outline-"+a.id);if(f&&n._fullLayout._outlining){var u;l&&(u=wde(f,e)),u&&Lm.call("_guiRelayout",n,{shapes:u});var c;s&&!PA(e)&&(c=Ade(f,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,Lm.call("_guiRelayout",n,{selections:c}).then(function(){r&&Tde(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function _N(e){return e._id}function V3(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(_N),o=t.map(_N),l,s,f;for(f=0;f0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function Ide(e,r){var t=[],a,n,i,o;for(o=0;o0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(o=0;o1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function Rm(e,r,t){var a;for(a=0;a-1&&r;if(!o&&r){var Xe=AN(e,!0);if(Xe.length){var ur=Xe[0].xref,rr=Xe[0].yref;if(ur&&rr){var Pr=PN(Xe),Or=NN([Zl(e,ur,"x"),Zl(e,rr,"y")]);Or(ee,Pr)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:te&&qm(e,ee),v._reselect=!1}if(!o&&v._deselect){var wr=v._deselect;l=wr.xref,s=wr.yref,Ude(l,s,u)||qN(e,l,s,a),te&&(ee.points.length?qm(e,ee):IA(e)),v._deselect=!1}return{eventData:ee,selectionTesters:t}}function Gde(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";BN.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Nm=P((QLe,zN)=>{"use strict";zN.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var Gd=P((eDe,HN)=>{"use strict";var GN=BA(),UN=Bi(),Y3=Fi(),jde=Ja().templatedArray,KLe=Nm();HN.exports=jde("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:UN({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:GN.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:GN.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Y3.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Y3.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Y3.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Y3.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:UN({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Om=P((rDe,VN)=>{"use strict";VN.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var zA=P((tDe,YN)=>{"use strict";YN.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Qc=P((aDe,$N)=>{"use strict";var WN=em().axisHoverFormat,Xde=ed().texttemplateAttrs,Zde=ed().hovertemplateAttrs,jN=S0(),Jde=Bi(),$de=kc().dash,Qde=kc().pattern,Kde=Wa(),e1e=Om(),W3=Bn().extendFlat,r1e=zA();function XN(e){return{valType:"any",dflt:0,editType:"calc"}}function ZN(e){return{valType:"any",editType:"calc"}}function JN(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}$N.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:XN("x"),yperiod:XN("y"),xperiod0:ZN("x0"),yperiod0:ZN("y0"),xperiodalignment:JN("x"),yperiodalignment:JN("y"),xhoverformat:WN("x"),yhoverformat:WN("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:Xde({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:Zde({},{keys:e1e.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:W3({},$de,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:r1e(!0),fillgradient:W3({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:Qde,marker:W3({symbol:{valType:"enumerated",values:Kde.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:W3({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},jN("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},jN("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:Jde({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var GA=P((iDe,eO)=>{"use strict";var QN=Gd(),KN=Qc().line,t1e=kc().dash,j3=Bn().extendFlat,a1e=Cs().overrideAll,n1e=Ja().templatedArray,nDe=Nm();eO.exports=a1e(n1e("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:j3({},QN.xref,{}),yref:j3({},QN.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:KN.color,width:j3({},KN.width,{min:1,dflt:1}),dash:j3({},t1e,{dflt:"dot"})}}),"arraydraw","from-root")});var nO=P((oDe,aO)=>{"use strict";var rO=Ur(),X3=hn(),i1e=gl(),o1e=GA(),tO=Jc();aO.exports=function(r,t){i1e(r,t,{name:"selections",handleItemDefaults:l1e});for(var a=t.selections,n=0;n{"use strict";iO.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var Im=P((sDe,fO)=>{"use strict";var s1e=It(),lO=Ur(),sO=En();fO.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=s1e.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,f=s.xaxis,u=s.yaxis,c=s.cartesian,v=n._has("cartesian"),d=0;d{"use strict";var uO=MA(),Bm=IN();cO.exports={moduleType:"component",name:"selections",layoutAttributes:GA(),supplyLayoutDefaults:nO(),supplyDrawNewSelectionDefaults:oO(),includeBasePlot:Im()("selections"),draw:uO.draw,drawOne:uO.drawOne,reselect:Bm.reselect,prepSelect:Bm.prepSelect,clearOutline:Bm.clearOutline,clearSelectionsCache:Bm.clearSelectionsCache,selectOnClick:Bm.selectOnClick}});var FO=P((uDe,DO)=>{"use strict";var WA=da(),Jl=Ur(),vO=Jl.numberFormat,f1e=Es(),u1e=Tw(),Z3=It(),_O=Jl.strTranslate,c1e=po(),hO=ha(),Kc=Wa(),v1e=Wc(),dO=hn(),h1e=Yc(),d1e=Ps(),wO=jc(),J3=wO.selectingOrDrawing,p1e=wO.freeMode,m1e=ho().FROM_TL,y1e=h3(),g1e=N3().redrawReglTraces,b1e=gi(),HA=En().getFromId,x1e=Ud().prepSelect,_1e=Ud().clearOutline,w1e=Ud().selectOnClick,UA=yA(),jA=Fi(),pO=jA.MINDRAG,Ro=jA.MINZOOM,mO=!0;function A1e(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,f=o+l==="nsew",u=(o+l).length===1,c,v,d,p,g,m,b,A,_,x,T,E,S,k,F,O,I,R,H,X,le,ae,J;t+=r.yaxis._shift;function Z(){if(c=r.xaxis,v=r.yaxis,_=c._length,x=v._length,b=c._offset,A=v._offset,d={},d[c._id]=c,p={},p[v._id]=v,o&&l)for(var mr=r.overlays,yr=0;yr=0){Vr._fullLayout._deactivateShape(Vr);return}var at=Vr._fullLayout.clickmode;if(YA(Vr),mr===2&&!u&&Yr(),f)at.indexOf("select")>-1&&w1e(yr,Vr,g,m,r.id,ce),at.indexOf("event")>-1&&v1e.click(Vr,yr,r.id);else if(mr===1&&u){var Wr=o?v:c,Hr=o==="s"||l==="w"?0:1,ot=Wr._name+".range["+Hr+"]",it=T1e(Wr,Hr),st="left",br="middle";if(Wr.fixedrange)return;o?(br=o==="n"?"top":"bottom",Wr.side==="right"&&(st="right")):l==="e"&&(st="right"),Vr._context.showAxisRangeEntryBoxes&&WA.select(oe).call(c1e.makeEditable,{gd:Vr,immediate:!0,background:Vr._fullLayout.paper_bgcolor,text:String(it),fill:Wr.tickfont?Wr.tickfont.color:"#444",horizontalAlign:st,verticalAlign:br}).on("edit",function(Se){var Ie=Wr.d2r(Se);Ie!==void 0&&Z3.call("_guiRelayout",Vr,ot,Ie)})}}d1e.init(ce);var Ee,Ye,we,Qe,ze,He,$e,Ue,ee,_e;function te(mr,yr,Vr){var at=oe.getBoundingClientRect();Ee=yr-at.left,Ye=Vr-at.top,e._fullLayout._calcInverseTransform(e);var Wr=Jl.apply3DTransform(e._fullLayout._invTransform)(Ee,Ye);Ee=Wr[0],Ye=Wr[1],we={l:Ee,r:Ee,w:0,t:Ye,b:Ye,h:0},Qe=e._hmpixcount?e._hmlumcount/e._hmpixcount:f1e(e._fullLayout.plot_bgcolor).getLuminance(),ze="M0,0H"+_+"V"+x+"H0V0",He=!1,$e="xy",_e=!1,Ue=MO(s,Qe,b,A,ze),ee=SO(s,b,A)}function Xe(mr,yr){if(e._transitioningWithDuration)return!1;var Vr=Math.max(0,Math.min(_,ae*mr+Ee)),at=Math.max(0,Math.min(x,J*yr+Ye)),Wr=Math.abs(Vr-Ee),Hr=Math.abs(at-Ye);we.l=Math.min(Ee,Vr),we.r=Math.max(Ee,Vr),we.t=Math.min(Ye,at),we.b=Math.max(Ye,at);function ot(){$e="",we.r=we.l,we.t=we.b,ee.attr("d","M0,0Z")}if(T.isSubplotConstrained)Wr>Ro||Hr>Ro?($e="xy",Wr/_>Hr/x?(Hr=Wr*x/_,Ye>at?we.t=Ye-Hr:we.b=Ye+Hr):(Wr=Hr*_/x,Ee>Vr?we.l=Ee-Wr:we.r=Ee+Wr),ee.attr("d",$3(we))):ot();else if(E.isSubplotConstrained)if(Wr>Ro||Hr>Ro){$e="xy";var it=Math.min(we.l/_,(x-we.b)/x),st=Math.max(we.r/_,(x-we.t)/x);we.l=it*_,we.r=st*_,we.b=(1-it)*x,we.t=(1-st)*x,ee.attr("d",$3(we))}else ot();else!k||Hr0){var Se;if(E.isSubplotConstrained||!S&&k.length===1){for(Se=0;Se1&&(ot.maxallowed!==void 0&&O===(ot.range[0]1&&(it.maxallowed!==void 0&&I===(it.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function S1e(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function MO(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",_O(t,a)).attr("d",n+"Z")}function SO(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:hO.background,stroke:hO.defaultLine,"stroke-width":1,opacity:0}).attr("transform",_O(r,t)).attr("d","M0,0Z")}function EO(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),kO(e,r,n,i)}function kO(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function YA(e){WA.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function CO(e){mO&&e.data&&e._context.showTips&&(Jl.notifier(Jl._(e,"Double-click to zoom back out"),"long"),mO=!1)}function E1e(e,r){return"M"+(e.l-.5)+","+(r-Ro-.5)+"h-3v"+(2*Ro+1)+"h3ZM"+(e.r+.5)+","+(r-Ro-.5)+"h3v"+(2*Ro+1)+"h-3Z"}function k1e(e,r){return"M"+(r-Ro-.5)+","+(e.t-.5)+"v-3h"+(2*Ro+1)+"v3ZM"+(r-Ro-.5)+","+(e.b+.5)+"v3h"+(2*Ro+1)+"v-3Z"}function $3(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Ro)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function bO(e,r,t,a,n){for(var i=!1,o={},l={},s,f,u,c,v=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var C1e=da(),Q3=Wc(),L1e=Ps(),D1e=Yc(),Is=FO().makeDragBox,wi=Fi().DRAGGERSIZE;K3.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){C1e.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var f=Is(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");f.onmousemove=function(v){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Q3.hover(r,v,i)},Q3.hover(r,v,i),r._fullLayout._lasthover=f,r._fullLayout._hoversubplot=i},f.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,L1e.unhover(r,v))},r._context.showAxisDragHandles&&(Is(r,o,l._offset-wi,s._offset-wi,wi,wi,"n","w"),Is(r,o,l._offset+l._length,s._offset-wi,wi,wi,"n","e"),Is(r,o,l._offset-wi,s._offset+s._length,wi,wi,"s","w"),Is(r,o,l._offset+l._length,s._offset+s._length,wi,wi,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var u=l._mainLinePosition;l.side==="top"&&(u-=wi),Is(r,o,l._offset+l._length*.1,u,l._length*.8,wi,"","ew"),Is(r,o,l._offset,u,l._length*.1,wi,"","w"),Is(r,o,l._offset+l._length*.9,u,l._length*.1,wi,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=wi),Is(r,o,c,s._offset+s._length*.1,wi,s._length*.8,"ns",""),Is(r,o,c,s._offset+s._length*.9,wi,s._length*.1,"s",""),Is(r,o,c,s._offset,wi,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Q3.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Q3.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},K3.updateFx(r)}};K3.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";D1e(r._draggers,t)}});var PO=P((vDe,qO)=>{"use strict";var RO=It();qO.exports=function(r){for(var t=RO.layoutArrayContainers,a=RO.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var F1e=Mc(),ZA=Bg(),zm=m0(),R1e=H5().sorterAsc,JA=It();Gm.containerArrayMatch=PO();var q1e=Gm.isAddVal=function(r){return r==="add"||F1e(r)},NO=Gm.isRemoveVal=function(r){return r===null||r==="remove"};Gm.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=JA.getComponentMethod(o,"supplyLayoutDefaults"),s=JA.getComponentMethod(o,"draw"),f=JA.getComponentMethod(o,"drawOne"),u=n.replot||n.recalc||l===ZA||s===ZA,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&zm.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(NO(d))t.set(null);else if(Array.isArray(d))t.set(d);else return zm.warn("Unrecognized full array edit value",o,d),!0;return u?!1:(l(c,v),s(r),!0)}var p=Object.keys(a).map(Number).sort(R1e),g=t.get(),m=g||[],b=i(v,o).get(),A=[],_=-1,x=m.length,T,E,S,k,F,O,I,R;for(T=0;Tm.length-(I?0:1)){zm.warn("index out of range",o,S);continue}if(O!==void 0)F.length>1&&zm.warn("Insertion & removal are incompatible with edits to the same index.",o,S),NO(O)?A.push(S):I?(O==="add"&&(O={}),m.splice(S,0,O),b&&b.splice(S,0,{})):zm.warn("Unrecognized full object edit value",o,S,O),_===-1&&(_=S);else for(E=0;E=0;T--)m.splice(A[T],1),b&&b.splice(A[T],1);if(m.length?g||t.set(m):t.set(null),u)return!1;if(l(c,v),f!==ZA){var H;if(_===-1)H=p;else{for(x=Math.max(m.length,x),H=[],T=0;T=_));T++)H.push(S);for(T=_;T{"use strict";var GO=ga(),dDe=q5(),UO=It(),Ko=Ur(),Um=gi(),HO=En(),VO=ha(),Hm=HO.cleanId,P1e=HO.getFromTrace,$A=UO.traceIs;Bs.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ko.log("Clearing previous rejected promises from queue."),e._promises=[]};Bs.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(Um.subplotsRegistry.cartesian||{}).attrRegex,n=(Um.subplotsRegistry.polar||{}).attrRegex,i=(Um.subplotsRegistry.ternary||{}).attrRegex,o=(Um.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(m.x=1.02,m.xanchor="left"):m.x<-2&&(m.x=-.02,m.xanchor="right"),m.y>3?(m.y=1.02,m.yanchor="bottom"):m.y<-2&&(m.y=-.02,m.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),VO.clean(e),e.template&&e.template.layout&&Bs.cleanLayout(e.template.layout),e};function Hd(e,r){var t=e[r],a=r.charAt(0);t&&t!=="paper"&&(e[r]=Hm(t,a,!0))}Bs.cleanData=function(e){for(var r=0;r0)return e.substr(0,r)}Bs.hasParent=function(e,r){for(var t=zO(r);t;){if(t in e)return!0;t=zO(t)}return!1};var I1e=["x","y","z"];Bs.clearAxisTypes=function(e,r,t){for(var a=0;a{"use strict";var ab=da(),B1e=ga(),z1e=t4(),pt=Ur(),Ka=pt.nestedProperty,e6=jp(),qo=MC(),$l=It(),ub=vd(),zt=gi(),xo=hn(),G1e=Aw(),U1e=Ul(),QA=Wa(),H1e=ha(),V1e=XA().initInteractions,Y1e=Ic(),W1e=Ud().clearOutline,JO=p0().dfltConfig,rb=OO(),ri=YO(),za=N3(),ev=Cs(),j1e=Fi().AX_NAME_PATTERN,KA=0,WO=5;function X1e(e,r,t,a){var n;if(e=pt.getGraphDiv(e),e6.init(e),pt.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=e6.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!pt.isPlotDiv(e)&&pt.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return Ma.addFrames(e,n)}QO(e,a),t||(t={}),ab.select(e).classed("js-plotly-plot",!0),QA.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(ri.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=ri.cleanLayout(t)),zt.supplyDefaults(e);var f=e._fullLayout,u=f._has("cartesian");f._replotting=!0,(s||f._shouldCreateBgLayer)&&(ype(e),f._shouldCreateBgLayer&&delete f._shouldCreateBgLayer),QA.initGradients(e),QA.initPatterns(e),s&&xo.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&zt.doCalcdata(e);for(var v=0;v=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function KO(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),ib(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&ib(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function K1e(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&u=0&&u0&&typeof k.parts[I]!="string";)I--;var R=k.parts[I],H=k.parts[I-1]+"."+R,X=k.parts.slice(0,I).join("."),le=Ka(e.layout,X).get(),ae=Ka(a,X).get(),J=k.get();if(F!==void 0){b[S]=F,A[S]=R==="reverse"?F:Pu(J);var Z=ub.getLayoutValObject(a,k.parts);if(Z&&Z.impliedEdits&&F!==null)for(var $ in Z.impliedEdits)_(pt.relativeAttr(S,$),Z.impliedEdits[$]);if(["width","height"].indexOf(S)!==-1)if(F){_("autosize",null);var oe=S==="height"?"width":"height";_(oe,a[oe])}else a[S]=e._initialAutoSize[S];else if(S==="autosize")_("width",F?null:a.width),_("height",F?null:a.height);else if(H.match(sI))E(H),Ka(a,X+"._inputRange").set(null);else if(H.match(fI)){E(H),Ka(a,X+"._inputRange").set(null);var ce=Ka(a,X).get();ce._inputDomain&&(ce._input.domain=ce._inputDomain.slice())}else H.match(ape)&&Ka(a,X+"._inputDomain").set(null);if(R==="type"){T=le;var De=ae.type==="linear"&&F==="log",Ne=ae.type==="log"&&F==="linear";if(De||Ne){if(!T||!T.range)_(X+".autorange",!0);else if(ae.autorange)De&&(T.range=T.range[1]>T.range[0]?[1,2]:[2,1]);else{var Ee=T.range[0],Ye=T.range[1];De?(Ee<=0&&Ye<=0&&_(X+".autorange",!0),Ee<=0?Ee=Ye/1e6:Ye<=0&&(Ye=Ee/1e6),_(X+".range[0]",Math.log(Ee)/Math.LN10),_(X+".range[1]",Math.log(Ye)/Math.LN10)):(_(X+".range[0]",Math.pow(10,Ee)),_(X+".range[1]",Math.pow(10,Ye)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[k.parts[0]]&&k.parts[1]==="radialaxis"&&delete a[k.parts[0]]._subplot.viewInitial["radialaxis.range"],$l.getComponentMethod("annotations","convertCoords")(e,ae,F,_),$l.getComponentMethod("images","convertCoords")(e,ae,F,_)}else _(X+".autorange",!0),_(X+".range",null);Ka(a,X+"._inputRange").set(null)}else if(R.match(j1e)){var we=Ka(a,S).get(),Qe=(F||{}).type;(!Qe||Qe==="-")&&(Qe="linear"),$l.getComponentMethod("annotations","convertCoords")(e,we,Qe,_),$l.getComponentMethod("images","convertCoords")(e,we,Qe,_)}var ze=rb.containerArrayMatch(S);if(ze){u=ze.array,c=ze.index;var He=ze.property,$e=Z||{editType:"calc"};c!==""&&He===""&&(rb.isAddVal(F)?A[S]=null:rb.isRemoveVal(F)?A[S]=(Ka(t,u).get()||[])[c]:pt.warn("unrecognized full object value",r)),ev.update(m,$e),f[u]||(f[u]={});var Ue=f[u][c];Ue||(Ue=f[u][c]={}),Ue[He]=F,delete r[S]}else R==="reverse"?(le.range?le.range.reverse():(_(X+".autorange",!0),le.range=[1,0]),ae.autorange?m.calc=!0:m.plot=!0):(S==="dragmode"&&(F===!1&&J!==!1||F!==!1&&J===!1)||a._has("scatter-like")&&a._has("regl")&&S==="dragmode"&&(F==="lasso"||F==="select")&&!(J==="lasso"||J==="select")?m.plot=!0:Z?ev.update(m,Z):m.calc=!0,k.set(F))}}for(u in f){var ee=rb.applyContainerArrayChanges(e,i(t,u),f[u],m,i);ee||(m.plot=!0)}for(var _e in x){T=xo.getFromId(e,_e);var te=T&&T._constraintGroup;if(te){m.calc=!0;for(var Xe in te)x[Xe]||(xo.getFromId(e,Xe)._constraintShrinkable=!0)}}(cI(e)||r.height||r.width)&&(m.plot=!0);var ur=a.shapes;for(c=0;c1;)if(a.pop(),t=Ka(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function ope(e,r){for(var t=0;t=n.length?n[0]:n[f]:n}function l(f){return Array.isArray(i)?f>=i.length?i[0]:i[f]:i}function s(f,u){var c=0;return function(){if(f&&++c===u)return f()}}return new Promise(function(f,u){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var R=a._frameQueue.pop();R.onInterrupt&&R.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function v(R){if(R.length!==0){for(var H=0;Ha._timeToNext&&p()};R()}var m=0;function b(R){return Array.isArray(n)?m>=n.length?R.transitionOpts=n[m]:R.transitionOpts=n[0]:R.transitionOpts=n,m++,R}var A,_,x=[],T=r==null,E=Array.isArray(r),S=!T&&!E&&pt.isPlainObject(r);if(S)x.push({type:"object",data:b(pt.extendFlat({},r))});else if(T||["string","number"].indexOf(typeof r)!==-1)for(A=0;A0&&OO)&&I.push(_);x=I}}x.length>0?v(x):(e.emit("plotly_animated"),f())})}function hpe(e,r,t){if(e=pt.getGraphDiv(e),r==null)return Promise.resolve();if(!pt.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var f=l.length+r.length*2,u=[],c={};for(a=r.length-1;a>=0;a--)if(pt.isPlainObject(r[a])){var v=r[a].name,d=(s[v]||c[v]||{}).name,p=r[a].name,g=s[d]||c[d];d&&p&&typeof p=="number"&&g&&KAk.index?-1:S.index=0;a--){if(n=u[a].frame,typeof n.name=="number"&&pt.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),o.unshift({type:"insert",index:a,value:n[a]});var l=zt.modifyFrames,s=zt.modifyFrames,f=[e,o],u=[e,i];return qo&&qo.add(e,l,f,s,u),zt.modifyFrames(e,i)}function ppe(e){e=pt.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return zt.cleanPlot([],{},t,r),zt.purge(e),e6.purge(e),r._container&&r._container.remove(),delete e._context,e}function mpe(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!pt.equalDomRects(t,r._lastBBox)){var a=r._invTransform=pt.inverseTransformMatrix(pt.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function ype(e){var r=ab.select(e),t=e._fullLayout;if(t._calcInverseTransform=mpe,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};ab.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=pt.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(Y1e.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Ma.animate=vpe;Ma.addFrames=hpe;Ma.deleteFrames=dpe;Ma.addTraces=nI;Ma.deleteTraces=iI;Ma.extendTraces=tI;Ma.moveTraces=r6;Ma.prependTraces=aI;Ma.newPlot=Q1e;Ma._doPlot=X1e;Ma.purge=ppe;Ma.react=fpe;Ma.redraw=$1e;Ma.relayout=Vm;Ma.restyle=ob;Ma.setPlotConfig=Z1e;Ma.update=sb;Ma._guiRelayout=a6(Vm);Ma._guiRestyle=a6(ob);Ma._guiUpdate=a6(sb);Ma._storeDirectGUIEdit=tpe});var V0=P(qf=>{"use strict";var gpe=It();qf.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};qf.getRedrawFunc=function(e){return function(){gpe.getComponentMethod("colorbar","draw")(e)}};qf.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};qf.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var vI=window.URL||window.webkitURL;qf.createObjectURL=function(e){return vI.createObjectURL(e)};qf.revokeObjectURL=function(e){return vI.revokeObjectURL(e)};qf.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=bpe(window.atob(e));return new window.Blob([t],{type:"image/"+r})};qf.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function bpe(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var o6=da(),gDe=Ur(),xpe=Wa(),_pe=ha(),bDe=Ic(),i6=/"/g,Wm="TOBESTRIPPED",wpe=new RegExp('("'+Wm+")|("+Wm+'")',"g");function Ape(e){var r=o6.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(a){return a==="<"?"<":a==="&rt;"?">":a.indexOf("<")!==-1||a.indexOf(">")!==-1?"":r.html(a).text()});return r.remove(),t}function Tpe(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}hI.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,o=n._toppaper,l=n.width,s=n.height,f;i.insert("rect",":first-child").call(xpe.setRect,0,0,l,s).call(_pe.fill,n.paper_bgcolor);var u=n._basePlotModules||[];for(f=0;f{"use strict";var Mpe=Ur(),Spe=s2().EventEmitter,jm=V0();function Epe(e){var r=e.emitter||new Spe,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,f=e.scale||1,u=e.width||300,c=e.height||150,v=f*u,d=f*c,p=s.getContext("2d",{willReadFrequently:!0}),g=new i,m,b;l==="svg"||Mpe.isSafari()?b=jm.encodeSVG(o):(m=jm.createBlob(o,"svg"),b=jm.createObjectURL(m)),s.width=v,s.height=d,g.onload=function(){var A;switch(m=null,jm.revokeObjectURL(b),l!=="svg"&&p.drawImage(g,0,0,v,d),l){case"jpeg":A=s.toDataURL("image/jpeg");break;case"png":A=s.toDataURL("image/png");break;case"webp":A=s.toDataURL("image/webp");break;case"svg":A=b;break;default:var _="Image format is not jpeg, png, svg or webp.";if(n(new Error(_)),!e.promise)return r.emit("error",_)}a(A),e.promise||r.emit("success",A)},g.onerror=function(A){if(m=null,jm.revokeObjectURL(b),n(A),!e.promise)return r.emit("error",A)},g.src=b});return e.promise?t:r}dI.exports=Epe});var s6=P((wDe,yI)=>{"use strict";var pI=ga(),mI=n6(),kpe=gi(),Pf=Ur(),Xm=V0(),Cpe=vb(),Lpe=hb(),Dpe=_g().version,l6={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Fpe(e,r){r=r||{};var t,a,n,i;Pf.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Pf.getGraphDiv(e),t=Pf.extendDeep([],e.data),a=Pf.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(E){return!(E in r)||Pf.validate(r[E],l6[E])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Pf.join2(l6.format.values,", "," or ")+".");var l={};function s(E,S){return Pf.coerce(r,l,l6,E,S)}var f=s("format"),u=s("width"),c=s("height"),v=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),g=document.createElement("div");g.style.position="absolute",g.style.left="-5000px",document.body.appendChild(g);var m=Pf.extendFlat({},a);u?m.width=u:r.width===null&&pI(i.width)&&(m.width=i.width),c?m.height=c:r.height===null&&pI(i.height)&&(m.height=i.height);var b=Pf.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),A=Xm.getRedrawFunc(g);function _(){return new Promise(function(E){setTimeout(E,Xm.getDelay(g._fullLayout))})}function x(){return new Promise(function(E,S){var k=Cpe(g,f,v),F=g._fullLayout.width,O=g._fullLayout.height;function I(){mI.purge(g),document.body.removeChild(g)}if(f==="full-json"){var R=kpe.graphJson(g,!1,"keepdata","object",!0,!0);return R.version=Dpe,R=JSON.stringify(R),I(),E(p?R:Xm.encodeJSON(R))}if(I(),f==="svg")return E(p?k:Xm.encodeSVG(k));var H=document.createElement("canvas");H.id=Pf.randstr(),Lpe({format:f,width:F,height:O,scale:v,canvas:H,svg:k,promise:!0}).then(E).catch(S)})}function T(E){return p?E.replace(Xm.IMAGE_URL_PREFIX,""):E}return new Promise(function(E,S){mI.newPlot(g,t,m,b).then(A).then(_).then(x).then(function(k){E(T(k))}).catch(function(k){S(k)})})}yI.exports=Fpe});var xI=P((ADe,bI)=>{"use strict";var Ql=Ur(),Rpe=gi(),qpe=vd(),Ppe=p0().dfltConfig,zs=Ql.isPlainObject,W0=Array.isArray,f6=Ql.isArrayOrTypedArray;bI.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=qpe.get(),n=[],i={_context:Ql.extendFlat({},Ppe)},o,l;W0(r)?(i.data=Ql.extendDeep([],r),o=r):(i.data=[],o=[],n.push(Ai("array","data"))),zs(t)?(i.layout=Ql.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(Ai("object","layout"))),Rpe.supplyDefaults(i);for(var s=i._fullData,f=o.length,u=0;uc.length&&a.push(Ai("unused",n,f.concat(c.length)));var b=c.length,A=Array.isArray(m);A&&(b=Math.min(b,m.length));var _,x,T,E,S;if(v.dimensions===2)for(x=0;xc[x].length&&a.push(Ai("unused",n,f.concat(x,c[x].length)));var k=c[x].length;for(_=0;_<(A?Math.min(k,m[x].length):k);_++)T=A?m[x][_]:m,E=u[x][_],S=c[x][_],Ql.validate(E,T)?S!==E&&S!==+E&&a.push(Ai("dynamic",n,f.concat(x,_),E,S)):a.push(Ai("value",n,f.concat(x,_),E))}else a.push(Ai("array",n,f.concat(x),u[x]));else for(x=0;x{"use strict";var Upe=Ur(),pb=V0();function Hpe(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var s,f;if(n)return s=pb.createBlob(e,t),f=pb.createObjectURL(s),a.href=f,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),pb.revokeObjectURL(f),s=null,o(r);if(Upe.isSafari()){var u=t==="svg"?",":";base64,";return pb.octetStream(u+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}_I.exports=Hpe});var u6=P((SDe,TI)=>{"use strict";var AI=Ur(),Vpe=s6(),Ype=wI(),MDe=V0();function Wpe(e,r){var t;return AI.isPlainObject(e)||(t=AI.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=Vpe(e,r),o=r.filename||e.fn||"newplot";o+="."+r.format.replace("-","."),i.then(function(l){return t&&(t._snapshotInProgress=!1),Ype(l,o,r.format)}).then(function(l){a(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),n(l)})})}TI.exports=Wpe});var CI=P(c6=>{"use strict";var el=Ur(),rl=el.isPlainObject,MI=vd(),SI=gi(),jpe=ks(),EI=Ja(),kI=p0().dfltConfig;c6.makeTemplate=function(e){e=el.isPlainObject(e)?e:el.getGraphDiv(e),e=el.extendDeep({_context:kI},{data:e.data,layout:e.layout}),SI.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var p={};Zm(d,p,Zpe.bind(null,d));var g=el.coerce(d,{},jpe,"type"),m=a.data[g];m||(m=a.data[g]=[]),m.push(p)}),Zm(t,a.layout,Xpe.bind(null,t)),delete a.layout.template;var n=t.template;if(rl(n)){var i=n.layout,o,l,s,f,u,c;rl(i)&&mb(i,a.layout);var v=n.data;if(rl(v)){for(l in a.data)if(s=v[l],Array.isArray(s)){for(u=a.data[l],c=u.length,f=s.length,o=0;ob?o.push({code:"unused",traceType:d,templateCount:m,dataCount:b}):b>m&&o.push({code:"reused",traceType:d,templateCount:m,dataCount:b})}}function A(_,x){for(var T in _)if(T.charAt(0)!=="_"){var E=_[T],S=Kl(_,T,x);rl(E)?(Array.isArray(_)&&E._template===!1&&E.templateitemname&&o.push({code:"missing",path:S,templateitemname:E.templateitemname}),A(E,S)):Array.isArray(E)&&Jpe(E)&&A(E,S)}}if(A({data:s,layout:l},""),o.length)return o.map($pe)};function Jpe(e){for(var r=0;r{"use strict";var fi=n6();dn._doPlot=fi._doPlot;dn.newPlot=fi.newPlot;dn.restyle=fi.restyle;dn.relayout=fi.relayout;dn.redraw=fi.redraw;dn.update=fi.update;dn._guiRestyle=fi._guiRestyle;dn._guiRelayout=fi._guiRelayout;dn._guiUpdate=fi._guiUpdate;dn._storeDirectGUIEdit=fi._storeDirectGUIEdit;dn.react=fi.react;dn.extendTraces=fi.extendTraces;dn.prependTraces=fi.prependTraces;dn.addTraces=fi.addTraces;dn.deleteTraces=fi.deleteTraces;dn.moveTraces=fi.moveTraces;dn.purge=fi.purge;dn.addFrames=fi.addFrames;dn.deleteFrames=fi.deleteFrames;dn.animate=fi.animate;dn.setPlotConfig=fi.setPlotConfig;var Qpe=Bp().getGraphDiv,Kpe=C3().eraseActiveShape;dn.deleteActiveShape=function(e){return Kpe(Qpe(e))};dn.toImage=s6();dn.validate=xI();dn.downloadImage=u6();var LI=CI();dn.makeTemplate=LI.makeTemplate;dn.validateTemplate=LI.validateTemplate});var h6=P((CDe,FI)=>{"use strict";var v6=Ur(),eme=It();FI.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=eme.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var f=v6.minRowLength(i);o?l=Math.min(f,v6.minRowLength(o)):(l=f,n("y0"),n("dy"))}else{if(!o)return 0;l=v6.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var d6=P((LDe,PI)=>{"use strict";var RI=Ur().dateTick0,rme=Jn(),tme=rme.ONEWEEK;function qI(e,r){return e%tme===0?RI(r,1):RI(r,0)}PI.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",qI(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",qI(l,t.ycalendar)),n("yperiodalignment"))}}});var II=P((DDe,OI)=>{"use strict";var NI=["orientation","groupnorm","stackgaps"];OI.exports=function(r,t,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var f=s[o],u=!1;f?f.traces.push(t):(f=s[o]={traceIndices:[],traces:[t]},u=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},v=0;v{"use strict";var BI=ha(),zI=Rs().hasColorscale,GI=md(),ame=Ri();UI.exports=function(r,t,a,n,i,o){var l=ame.isBubble(r),s=(r.line||{}).color,f;if(o=o||{},s&&(a=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",a),zI(r,"marker")&&GI(r,t,n,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?f=s:l?f=BI.background:f=BI.defaultLine,i("marker.line.color",f),zI(r,"marker.line")&&GI(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0)),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var u=i("marker.gradient.type");u!=="none"&&i("marker.gradient.color")}}});var p6=P((RDe,HI)=>{"use strict";var nme=Ur().isArrayOrTypedArray,ime=Rs().hasColorscale,ome=md();HI.exports=function(r,t,a,n,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",a),ime(r,"line"))ome(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(nme(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var YI=P((qDe,VI)=>{"use strict";VI.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var m6=P((PDe,WI)=>{"use strict";var lme=Ur();WI.exports=function(e,r,t,a,n){n=n||{},a("textposition"),lme.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var y6=P((NDe,XI)=>{"use strict";var bb=ha(),jI=Ur().isArrayOrTypedArray;function sme(e){for(var r=bb.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var ZI=Ur(),fme=It(),ume=Qc(),cme=Om(),Vd=Ri(),vme=h6(),hme=d6(),dme=II(),pme=gb(),mme=p6(),JI=YI(),yme=m6(),gme=y6(),bme=Ur().coercePattern;$I.exports=function(r,t,a,n){function i(d,p){return ZI.coerce(r,t,ume,d,p)}var o=vme(r,t,n,i);if(o||(t.visible=!1),!!t.visible){hme(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=dme(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var xme=xm().getAxisGroup;KI.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=xme(a,l)+o,f=a._alignmentOpts||{},u=n("alignmentgroup"),c=f[s];c||(c=f[s]={});var v=c[u];v?v.traces.push(t):v=c[u]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=v.offsetGroups,g=p[d];t._offsetIndex=0,(i!=="group"||d)&&(g||(g=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=g.offsetIndex)}});var g6=P((BDe,rB)=>{"use strict";var _me=Ur(),wme=eB(),Ame=Qc();rB.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return _me.coerce(n._input,n,Ame,v)}if(t.scattermode==="group")for(i=0;i=0;u--){var c=r[u];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var aB=P((zDe,tB)=>{"use strict";var Tme=Ur(),Mme=h2();tB.exports=function(e,r){function t(n,i){return Tme.coerce(e,r,Mme,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var b6=P((GDe,iB)=>{"use strict";var Sme=ga(),nB=Ur(),Eme=nB.dateTime2ms,xb=nB.incrementMonth,kme=Jn(),Cme=kme.ONEAVGMONTH;iB.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var o=r[a+"period"],l;if(Sme(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:n}}for(var f=t.calendar,u=i==="start",c=i==="end",v=r[a+"period0"],d=Eme(v,f)||0,p=[],g=[],m=[],b=n.length,A=0;A_;)E=xb(E,-l,f);for(;E<=_;)E=xb(E,l,f);T=xb(E,-l,f)}else{for(x=Math.round((_-d)/o),E=d+x*o;E>_;)E-=o;for(;E<=_;)E+=o;T=E-o}p[A]=u?T:c?E:(T+E)/2,g[A]=T,m[A]=E}return{vals:p,starts:g,ends:m}}});var Jm=P((UDe,lB)=>{"use strict";var x6=Rs().hasColorscale,_6=O4(),oB=Ri();lB.exports=function(r,t){oB.hasLines(t)&&x6(t,"line")&&_6(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),oB.hasMarkers(t)&&(x6(t,"marker")&&_6(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),x6(t,"marker.line")&&_6(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var w6=P((HDe,sB)=>{"use strict";var Fn=Ur();sB.exports=function(r,t){for(var a=0;a{"use strict";var fB=Ur();uB.exports=function(r,t){fB.isArrayOrTypedArray(t.selectedpoints)&&fB.tagSelected(r,t)}});var Yd=P((YDe,gB)=>{"use strict";var vB=ga(),T6=Ur(),$m=hn(),hB=b6(),A6=Jn().BADNUM,M6=Ri(),Lme=Jm(),Dme=w6(),Fme=cB();function Rme(e,r){var t=e._fullLayout,a=r._xA=$m.getFromId(e,r.xaxis||"x","x"),n=r._yA=$m.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=hB(r,a,"x",i),s=hB(r,n,"y",o),f=l.vals,u=s.vals,c=r._length,v=new Array(c),d=r.ids,p=S6(r,t,a,n),g=!1,m,b,A,_,x,T;mB(t,r);var E="x",S="y",k;if(p)T6.pushUnique(p.traceIndices,r.index),m=p.orientation==="v",m?(S="s",k="x"):(E="s",k="y"),x=p.stackgaps==="interpolate";else{var F=pB(r,c);dB(e,r,a,n,f,u,F)}var O=!!r.xperiodalignment,I=!!r.yperiodalignment;for(b=0;bb&&v[_].gap;)_--;for(T=v[_].s,A=v.length-1;A>_;A--)v[A].s=T;for(;b<_;)if(b++,v[b].gap){for(A=b+1;v[A].gap;)A++;for(var le=v[b-1][k],ae=v[b-1].s,J=(v[A].s-ae)/(v[A][k]-le);b{"use strict";bB.exports=_b;var qme=Ur().distinctVals;function _b(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";var es=ga(),rv=Ur().isArrayOrTypedArray,Wd=Jn().BADNUM,Pme=It(),Qm=hn(),Nme=xm().getAxisGroup,wb=xB();function Ome(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],f=0;fs+o||!es(l))}for(var u=0;u{"use strict";var SB=Yd(),EB=MB().setGroupPositions;function Zme(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],f=0;fF[u]&&u{"use strict";var $me=Wa(),RB=Jn(),Km=RB.BADNUM,qB=RB.LOG_CLIP,LB=qB+.5,DB=qB-.5,Ab=Ur(),Qme=Ab.segmentsIntersect,FB=Ab.constrain,F6=Om();PB.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",s=n._length,f=i._length,u=t.backoff,c=a.marker,v=t.connectGaps,d=t.baseTolerance,p=t.shape,g=p==="linear",m=a.fill&&a.fill!=="none",b=[],A=F6.minTolerance,_=r.length,x=new Array(_),T=0,E,S,k,F,O,I,R,H,X,le,ae,J,Z,$,oe,ce;function De(br){var Se=r[br];if(!Se)return!1;var Ie=t.linearized?n.l2p(Se.x):n.c2p(Se.x),dr=t.linearized?i.l2p(Se.y):i.c2p(Se.y);if(Ie===Km){if(o&&(Ie=n.c2p(Se.x,!0)),Ie===Km)return!1;l&&dr===Km&&(Ie*=Math.abs(n._m*f*(n._m>0?LB:DB)/(i._m*s*(i._m>0?LB:DB)))),Ie*=1e3}if(dr===Km){if(l&&(dr=i.c2p(Se.y,!0)),dr===Km)return!1;dr*=1e3}return[Ie,dr]}function Ne(br,Se,Ie,dr){var fr=Ie-br,xt=dr-Se,Et=.5-br,At=.5-Se,Nt=fr*fr+xt*xt,sa=fr*Et+xt*At;if(sa>0&&sa1||Math.abs(Et.y-Ie[0][1])>1)&&(Et=[Et.x,Et.y],dr&&Qe(Et,br)$e||br[1]ee)return[FB(br[0],He,$e),FB(br[1],Ue,ee)]}function Xr(br,Se){if(br[0]===Se[0]&&(br[0]===He||br[0]===$e)||br[1]===Se[1]&&(br[1]===Ue||br[1]===ee))return!0}function Kr(br,Se){var Ie=[],dr=Lr(br),fr=Lr(Se);return dr&&fr&&Xr(dr,fr)||(dr&&Ie.push(dr),fr&&Ie.push(fr)),Ie}function Mr(br,Se,Ie){return function(dr,fr){var xt=Lr(dr),Et=Lr(fr),At=[];if(xt&&Et&&Xr(xt,Et))return At;xt&&At.push(xt),Et&&At.push(Et);var Nt=2*Ab.constrain((dr[br]+fr[br])/2,Se,Ie)-((xt||dr)[br]+(Et||fr)[br]);if(Nt){var sa;xt&&Et?sa=Nt>0==xt[br]>Et[br]?xt:Et:sa=xt||Et,sa[br]+=Nt}return At}}var jr;p==="linear"||p==="spline"?jr=wr:p==="hv"||p==="vh"?jr=Kr:p==="hvh"?jr=Mr(0,He,$e):p==="vhv"&&(jr=Mr(1,Ue,ee));function Yr(br,Se){var Ie=Se[0]-br[0],dr=(Se[1]-br[1])/Ie,fr=(br[1]*Se[0]-Se[1]*br[0])/Ie;return fr>0?[dr>0?He:$e,ee]:[dr>0?$e:He,Ue]}function Fe(br){var Se=br[0],Ie=br[1],dr=Se===x[T-1][0],fr=Ie===x[T-1][1];if(!(dr&&fr))if(T>1){var xt=Se===x[T-2][0],Et=Ie===x[T-2][1];dr&&(Se===He||Se===$e)&&xt?Et?T--:x[T-1]=br:fr&&(Ie===Ue||Ie===ee)&&Et?xt?T--:x[T-1]=br:x[T++]=br}else x[T++]=br}function lr(br){x[T-1][0]!==br[0]&&x[T-1][1]!==br[1]&&Fe([ur,rr]),Fe(br),Pr=null,ur=rr=0}var vr=Ab.isArrayOrTypedArray(c);function Tt(br){if(br&&u&&(br.i=E,br.d=r,br.trace=a,br.marker=vr?c[br.i]:c,br.backoff=u),Ee=br[0]/s,Ye=br[1]/f,te=br[0]$e?$e:0,Xe=br[1]ee?ee:0,te||Xe){if(!T)x[T++]=[te||br[0],Xe||br[1]];else if(Pr){var Se=jr(Pr,br);Se.length>1&&(lr(Se[0]),x[T++]=Se[1])}else Or=jr(x[T-1],br)[0],x[T++]=Or;var Ie=x[T-1];te&&Xe&&(Ie[0]!==te||Ie[1]!==Xe)?(Pr&&(ur!==te&&rr!==Xe?Fe(ur&&rr?Yr(Pr,br):[ur||te,rr||Xe]):ur&&rr&&Fe([ur,rr])),Fe([te,Xe])):ur-te&&rr-Xe&&Fe([te||ur,Xe||rr]),Pr=br,ur=te,rr=Xe}else Pr&&lr(jr(Pr,br)[0]),x[T++]=br}for(E=0;E<_;E++)if(S=De(E),!!S){for(T=0,Pr=null,Tt(S),E++;E<_;E++){if(F=De(E),!F){if(v)continue;break}if(!g||!t.simplify){Tt(F);continue}var ht=De(E+1);if(le=Qe(F,S),!(!(m&&(T===0||T===_-1))&&lewe(I,ht))break;k=I,Z=X[0]*H[0]+X[1]*H[1],Z>ae?(ae=Z,F=I,R=!1):Z=r.length||!I)break;Tt(I),S=I}}Pr&&Fe([ur||Pr[0],rr||Pr[1]]),b.push(x.slice(0,T))}var mr=p.slice(p.length-1);if(u&&mr!=="h"&&mr!=="v"){for(var yr=!1,Vr=-1,at=[],Wr=0;Wr{"use strict";var OB={tonextx:1,tonexty:1,tonext:1};IB.exports=function(r,t,a){var n,i,o,l,s,f={},u=!1,c=-1,v=0,d=-1;for(i=0;i=0?s=d:(s=d=v,v++),s{"use strict";var Gs=da(),Kme=It(),ey=Ur(),Xd=ey.ensureSingle,zB=ey.identity,Rn=Wa(),Zd=Ri(),eye=NB(),rye=R6(),Tb=EA().tester;GB.exports=function(r,t,a,n,i,o){var l,s,f=!i,u=!!i&&i.duration>0,c=rye(r,t,a);if(l=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),tye(r,l,t),u){o&&(s=o());var v=Gs.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});v.each(function(){n.selectAll("g.trace").each(function(d,p){BB(r,p,t,d,c,this,i)})})}else l.each(function(d,p){BB(r,p,t,d,c,this,i)});f&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function tye(e,r,t){r.each(function(a){var n=Xd(Gs.select(this),"g","fills");Rn.setClipUrl(n,t.layerClipId,e);var i=a[0].trace,o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=n.selectAll("g").data(o,zB);l.enter().append("g"),l.exit().each(function(s){i[s]=null}).remove(),l.order().each(function(s){i[s]=Xd(Gs.select(this),"path","js-fill")})})}function BB(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;aye(e,r,t,a,n);var f=!!o&&o.duration>0;function u(Mr){return f?Mr.transition():Mr}var c=t.xaxis,v=t.yaxis,d=a[0].trace,p=d.line,g=Gs.select(i),m=Xd(g,"g","errorbars"),b=Xd(g,"g","lines"),A=Xd(g,"g","points"),_=Xd(g,"g","text");if(Kme.getComponentMethod("errorbars","plot")(e,m,t,o),d.visible!==!0)return;u(g).style("opacity",d.opacity);var x,T,E=d.fill.charAt(d.fill.length-1);E!=="x"&&E!=="y"&&(E="");var S,k;E==="y"?(S=1,k=v.c2p(0,!0)):E==="x"&&(S=0,k=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=g;var F="",O=[],I=d._prevtrace,R=null,H=null;I&&(F=I._prevRevpath||"",T=I._nextFill,O=I._ownPolygons,R=I._fillsegments,H=I._fillElement);var X,le,ae="",J="",Z,$,oe,ce,De,Ne,Ee=[];d._polygons=[];var Ye=[],we=[],Qe=ey.noop;if(x=d._ownFill,Zd.hasLines(d)||d.fill!=="none"){T&&T.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(Z=Rn.steps(p.shape),$=Rn.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?Z=$=function(Mr){var jr=Mr[Mr.length-1];return Mr.length>1&&Mr[0][0]===jr[0]&&Mr[0][1]===jr[1]?Rn.smoothclosed(Mr.slice(1),p.smoothing):Rn.smoothopen(Mr,p.smoothing)}:Z=$=function(Mr){return"M"+Mr.join("L")},oe=function(Mr){return $(Mr.reverse())},we=eye(a,{xaxis:c,yaxis:v,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),Ye=new Array(we.length);var ze=0;for(s=0;s=l[0]&&g.x<=l[1]&&g.y>=s[0]&&g.y<=s[1]}),v=Math.ceil(c.length/u),d=0;n.forEach(function(g,m){var b=g[0].trace;Zd.hasMarkers(b)&&b.marker.maxdisplayed>0&&m{"use strict";HB.exports={container:"marker",min:"cmin",max:"cmax"}});var q6=P((KDe,VB)=>{"use strict";var Sb=hn();VB.exports=function(r,t,a){var n={},i={_fullLayout:a},o=Sb.getFromTrace(i,t,"x"),l=Sb.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var f=r.orig_y;return f===void 0&&(f=r.y),n.xLabel=Sb.tickText(o,o.c2l(s),!0).text,n.yLabel=Sb.tickText(l,l.c2l(f),!0).text,n}});var I6=P((eFe,YB)=>{"use strict";var P6=da(),Jd=Wa(),nye=It();function iye(e){var r=P6.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=P6.select(this),n=t.trace||t[0].trace;N6(a,n,e)}),r.selectAll("g.text").each(function(t){var a=P6.select(this),n=t.trace||t[0].trace;O6(a,n,e)}),r.selectAll("g.trace path.js-line").call(Jd.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Jd.fillGroupStyle,e,!1),nye.getComponentMethod("errorbars","style")(r)}function N6(e,r,t){Jd.pointStyle(e.selectAll("path.point"),r,t)}function O6(e,r,t){Jd.textPointStyle(e.selectAll("text"),r,t)}function oye(e,r,t){var a=r[0].trace;a.selectedpoints?(Jd.selectedPointStyle(t.selectAll("path.point"),a),Jd.selectedTextStyle(t.selectAll("text"),a)):(N6(t,a,e),O6(t,a,e))}YB.exports={style:iye,stylePoints:N6,styleText:O6,styleOnSelect:oye}});var B6=P((rFe,WB)=>{"use strict";var $d=ha(),lye=Ri();WB.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&$d.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&$d.opacity(i)?i:o&&$d.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?$d.opacity(n)<.3?$d.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&$d.opacity(a)&&lye.hasLines(r)&&r.line.width?a:r.fillcolor)}});var ZB=P((tFe,XB)=>{"use strict";var Eb=Ur(),jB=Wc(),sye=It(),fye=B6(),z6=ha(),uye=Eb.fillText;XB.exports=function(r,t,a,n){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,f=l.c2p(t),u=s.c2p(a),c=[f,u],v=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,g=!!o.yperiodalignment;if(v.indexOf("points")!==-1){var m=function(J){if(p){var Z=l.c2p(J.xStart),$=l.c2p(J.xEnd);return f>=Math.min(Z,$)&&f<=Math.max(Z,$)?0:1/0}var oe=Math.max(3,J.mrc||0),ce=1-1/oe,De=Math.abs(l.c2p(J.x)-f);return De=Math.min(Z,$)&&u<=Math.max(Z,$)?0:1/0}var oe=Math.max(3,J.mrc||0),ce=1-1/oe,De=Math.abs(s.c2p(J.y)-u);return DeEe!=ee>=Ee&&(He=Qe[we-1][0],$e=Qe[we][0],ee-Ue&&(ze=He+($e-He)*(Ee-Ue)/(ee-Ue),oe=Math.min(oe,ze),ce=Math.max(ce,ze)));return oe=Math.max(oe,0),ce=Math.min(ce,l._length),{x0:oe,x1:ce,y0:Ee,y1:Ee}}if(v.indexOf("fills")!==-1&&o._fillElement){var X=R(o._fillElement)&&!R(o._fillExclusionElement);if(X){var le=H(o._polygons);le===null&&(le={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var ae=z6.defaultLine;return z6.opacity(o.fillcolor)?ae=o.fillcolor:z6.opacity((o.line||{}).color)&&(ae=o.line.color),Eb.extendFlat(r,{distance:r.maxHoverDistance,x0:le.x0,x1:le.x1,y0:le.y0,y1:le.y1,color:ae,hovertemplate:!1}),delete r.index,o.text&&!Eb.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var QB=P((aFe,$B)=>{"use strict";var JB=Ri();$B.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,f,u,c,v=!JB.hasMarkers(l)&&!JB.hasText(l);if(v)return[];if(t===!1)for(s=0;s{"use strict";KB.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var nz=P((iFe,az)=>{"use strict";var ry=It().traceIs,G6=aw();az.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(cye(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function cye(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=vye(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=a+"calendar",l=i[o],s={noMultiCategory:!ry(i,"cartesian")||ry(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,tz(i,a)){var f=rz(i),u=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(tz(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function rz(e){return{v:"x",h:"y"}[e.orientation||"v"]}function tz(e,r){var t=rz(e),a=ry(e,"box-violin"),n=ry(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var oz=P((oFe,iz)=>{"use strict";var hye=Vo().isTypedArraySpec;function dye(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,o;if(r.axData)n=r.axData;else for(n=[],i=0;i0||hye(i),l;o&&(l="array");var s=a("categoryorder",l),f;s==="array"&&(f=a("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=f.slice():(f=dye(t,n).sort(),s==="category ascending"?t._initialCategories=f:s==="category descending"&&(t._initialCategories=f.reverse()))}}});var fz=P((lFe,sz)=>{"use strict";var lz=Es().mix,pye=wf(),mye=Ur();sz.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(k,F){return mye.coerce2(r,t,n.attributes,k,F)}var l=o("linecolor",i),s=o("linewidth"),f=a("showline",n.showLine||!!l||!!s);f||(delete t.linecolor,delete t.linewidth);var u=lz(i,n.bgColor,n.blend||pye.lightFraction).toRgbString(),c=o("gridcolor",u),v=o("gridwidth"),d=o("griddash"),p=a("showgrid",n.showGrid||!!c||!!v||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var g=lz(t.gridcolor,n.bgColor,67).toRgbString(),m=o("minor.gridcolor",g),b=o("minor.gridwidth",t.gridwidth||1),A=o("minor.griddash",t.griddash||"solid"),_=a("minor.showgrid",!!m||!!b||!!A);_||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var x=o("zerolinelayer"),T=o("zerolinecolor",i),E=o("zerolinewidth"),S=a("zeroline",n.showGrid||!!T||!!E);S||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var H6=P((sFe,pz)=>{"use strict";var uz=ga(),yye=It(),ty=Ur(),gye=Ja(),bye=gl(),U6=Ul(),cz=S4(),vz=k4(),xye=D4(),_ye=F4(),wye=oz(),Aye=fz(),Tye=Aw(),hz=O2(),kb=Fi().WEEKDAY_PATTERN,Mye=Fi().HOUR_PATTERN;pz.exports=function(r,t,a,n,i){var o=n.letter,l=n.font||{},s=n.splomStash||{},f=a("visible",!n.visibleDflt),u=t._template||{},c=t.type||u.type||"-",v;if(c==="date"){var d=yye.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(v=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=ty.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),hz(t,i),Tye(r,t,a,n),wye(r,t,a,n),c!=="category"&&!n.noHover&&a("hoverformat");var g=a("color"),m=g!==U6.color.dflt?g:l.color,b=s.label||i._dfltTitle[o];if(_ye(r,t,a,c,n),!f)return t;a("title.text",b),ty.coerceFont(a,"title.font",l,{overrideDflt:{size:ty.bigFont(l.size),color:m}}),cz(r,t,a,c);var A=n.hasMinor;if(A&&(gye.newContainer(t,"minor"),cz(r,t,a,c,{isMinor:!0})),xye(r,t,a,c,n),vz(r,t,a,n),A){var _=n.isMinor;n.isMinor=!0,vz(r,t,a,n),n.isMinor=_}Aye(r,t,a,{dfltColor:g,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:A,attributes:U6}),A&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var x=c==="multicategory";if(!n.noTickson&&(c==="category"||x)&&(t.ticks||t.showgrid)&&(x?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),x){var T=a("showdividers");T&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(bye(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Sye}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var E=0;E=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=dz(i[l]),s){o=kb;break}}var f=a("pattern",o);if(f===kb)for(l=0;l<2;l++)s=dz(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(f)for(l=0;l<2;l++)switch(s=i[l],f){case kb:if(!uz(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case Mye:if(!uz(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var u=t.range;if(u[0]u[1]){r.enabled=!1;return}}else if(i[0]>u[0]&&i[1]{"use strict";var kye=ga(),Cb=Ur();mz.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,f=n.overlayingDomain,u,c,v,d,p,g;s&&(c=s._domains[l][s._axisMap[t._id]],u=s._anchors[t._id],c&&(v=s[l+"side"].split(" ")[0],d=s.domain[l][v==="right"||v==="top"?1:0])),c=c||[0,1],u=u||(kye(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,g=!1;var m=Cb.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:u}},"anchor"),b=Cb.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:v}},"side");if(m==="free"){if(l==="y"){var A=a("autoshift");A&&(d=b==="left"?f[0]:f[1],g=t.automargin?t.automargin:!0,p=b==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",g);var _=!1;if(o.length&&(_=Cb.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!_){var x=a("domain",c);x[0]>x[1]-1/4096&&(t.domain=c),Cb.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var Mz=P((uFe,Tz)=>{"use strict";var j0=Ur(),yz=ha(),Cye=Cu().isUnifiedHover,Lye=Jw(),gz=Ja(),Dye=rd(),bz=Ul(),Fye=nz(),xz=H6(),Rye=xm(),_z=V6(),W6=En(),Nf=W6.id2name,wz=W6.name2id,qye=Fi().AX_ID_PATTERN,Az=It(),Lb=Az.traceIs,Y6=Az.getComponentMethod;function Db(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}Tz.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},f={},u={},c={},v={},d={},p={},g,m;for(g=0;g{"use strict";var Pye=da(),Sz=It(),Fb=Ur(),Tl=Wa(),Rb=hn();Ez.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){Rb.redrawComponents(r);return}function o(m){var b=m.xaxis,A=m.yaxis;i._defs.select("#"+m.clipId+"> rect").call(Tl.setTranslate,0,0).call(Tl.setScale,1,1),m.plot.call(Tl.setTranslate,b._offset,A._offset).call(Tl.setScale,1,1);var _=m.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call(Tl.setPointGroupScale,1,1),_.selectAll(".textpoint").call(Tl.setTextPointsScale,1,1),_.call(Tl.hideOutsideRangePoints,m)}function l(m,b){var A=m.plotinfo,_=A.xaxis,x=A.yaxis,T=_._length,E=x._length,S=!!m.xr1,k=!!m.yr1,F=[];if(S){var O=Fb.simpleMap(m.xr0,_.r2l),I=Fb.simpleMap(m.xr1,_.r2l),R=O[1]-O[0],H=I[1]-I[0];F[0]=(O[0]*(1-b)+b*I[0]-O[0])/(O[1]-O[0])*T,F[2]=T*(1-b+b*H/R),_.range[0]=_.l2r(O[0]*(1-b)+b*I[0]),_.range[1]=_.l2r(O[1]*(1-b)+b*I[1])}else F[0]=0,F[2]=T;if(k){var X=Fb.simpleMap(m.yr0,x.r2l),le=Fb.simpleMap(m.yr1,x.r2l),ae=X[1]-X[0],J=le[1]-le[0];F[1]=(X[1]*(1-b)+b*le[1]-X[1])/(X[0]-X[1])*E,F[3]=E*(1-b+b*J/ae),x.range[0]=_.l2r(X[0]*(1-b)+b*le[0]),x.range[1]=x.l2r(X[1]*(1-b)+b*le[1])}else F[1]=0,F[3]=E;Rb.drawOne(r,_,{skipTitle:!0}),Rb.drawOne(r,x,{skipTitle:!0}),Rb.redrawComponents(r,[_._id,x._id]);var Z=S?T/F[2]:1,$=k?E/F[3]:1,oe=S?F[0]:0,ce=k?F[1]:0,De=S?F[0]/F[2]*T:0,Ne=k?F[1]/F[3]*E:0,Ee=_._offset-De,Ye=x._offset-Ne;A.clipRect.call(Tl.setTranslate,oe,ce).call(Tl.setScale,1/Z,1/$),A.plot.call(Tl.setTranslate,Ee,Ye).call(Tl.setScale,Z,$),Tl.setPointGroupScale(A.zoomScalePts,1/Z,1/$),Tl.setTextPointsScale(A.zoomScaleTxt,1/Z,1/$)}var s;n&&(s=n());function f(){for(var m={},b=0;ba.duration?(f(),d=window.cancelAnimationFrame(g)):d=window.requestAnimationFrame(g)}return c=Date.now(),d=window.requestAnimationFrame(g),Promise.resolve()}});var ay=P(ao=>{"use strict";var Pb=da(),Cz=It(),X0=Ur(),Nye=gi(),Oye=Wa(),Lz=Jp().getModuleCalcData,tv=En(),Us=Fi(),Iye=Ic(),Fa=X0.ensureSingle;function qb(e,r,t){return X0.ensureSingle(e,r,t,function(a){a.datum(t)})}var Z0=Us.zindexSeparator;ao.name="cartesian";ao.attr=["xaxis","yaxis"];ao.idRoot=["x","y"];ao.idRegex=Us.idRegex;ao.attrRegex=Us.attrRegex;ao.attributes=ez();ao.layoutAttributes=Ul();ao.supplyLayoutDefaults=Mz();ao.transitionAxes=kz();ao.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,o=i,l={},s={},f,u,c;for(f=0;f0){var d=v.id;if(d.indexOf(Z0)!==-1)continue;d+=Z0+(f+1),v=X0.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],g,m=0;m1&&(T+=Z0+x),_.push(l+T),o=0;o1,c=r.mainplotinfo;if(!r.mainplot||u)if(f)r.xlines=Fa(a,"path","xlines-above"),r.ylines=Fa(a,"path","ylines-above"),r.xaxislayer=Fa(a,"g","xaxislayer-above"),r.yaxislayer=Fa(a,"g","yaxislayer-above");else{if(!o){var v=Fa(a,"g","layer-subplot");r.shapelayer=Fa(v,"g","shapelayer"),r.imagelayer=Fa(v,"g","imagelayer"),c&&u?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=Fa(a,"g","minor-gridlayer"),r.gridlayer=Fa(a,"g","gridlayer"),r.zerolinelayer=Fa(a,"g","zerolinelayer"));var d=Fa(a,"g","layer-between");r.shapelayerBetween=Fa(d,"g","shapelayer"),r.imagelayerBetween=Fa(d,"g","imagelayer"),Fa(a,"path","xlines-below"),Fa(a,"path","ylines-below"),r.overlinesBelow=Fa(a,"g","overlines-below"),Fa(a,"g","xaxislayer-below"),Fa(a,"g","yaxislayer-below"),r.overaxesBelow=Fa(a,"g","overaxes-below")}r.overplot=Fa(a,"g","overplot"),r.plot=Fa(r.overplot,"g",n),c&&u?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=Fa(a,"g","zerolinelayer-above"),o||(r.xlines=Fa(a,"path","xlines-above"),r.ylines=Fa(a,"path","ylines-above"),r.overlinesAbove=Fa(a,"g","overlines-above"),Fa(a,"g","xaxislayer-above"),Fa(a,"g","yaxislayer-above"),r.overaxesAbove=Fa(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,g=n+"-x",m=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,Fa(c.overlinesBelow,"path",g),Fa(c.overlinesBelow,"path",m),Fa(c.overaxesBelow,"g",g),Fa(c.overaxesBelow,"g",m),r.plot=Fa(c.overplot,"g",n),Fa(c.overlinesAbove,"path",g),Fa(c.overlinesAbove,"path",m),Fa(c.overaxesAbove,"g",g),Fa(c.overaxesAbove,"g",m),r.xlines=p.select(".overlines-"+l).select("."+g),r.ylines=p.select(".overlines-"+s).select("."+m),r.xaxislayer=p.select(".overaxes-"+l).select("."+g),r.yaxislayer=p.select(".overaxes-"+s).select("."+m)}o||(f||(qb(r.minorGridlayer,"g",r.xaxis._id),qb(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(tv.idSort),qb(r.gridlayer,"g",r.xaxis._id),qb(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(tv.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function Rz(e,r){if(e){var t={};e.each(function(s){var f=s[0],u=Pb.select(this);u.remove(),qz(f,r),t[f]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],o=0;o{"use strict";var Nb=Ri();Pz.exports={hasLines:Nb.hasLines,hasMarkers:Nb.hasMarkers,hasText:Nb.hasText,isBubble:Nb.isBubble,attributes:Qc(),layoutAttributes:h2(),supplyDefaults:QI(),crossTraceDefaults:g6(),supplyLayoutDefaults:aB(),calc:Yd().calc,crossTraceCalc:CB(),arraysToCalcdata:w6(),plot:UB(),colorbar:Mb(),formatLabels:q6(),style:I6().style,styleOnSelect:I6().styleOnSelect,hoverPoints:ZB(),selectPoints:QB(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:ay(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var Bz=P((dFe,Iz)=>{"use strict";var zye=da(),Gye=ha(),Oz=BA(),j6=Ur(),Uye=j6.strScale,Hye=j6.strRotate,Vye=j6.strTranslate;Iz.exports=function(r,t,a){var n=r.node(),i=Oz[a.arrowhead||0],o=Oz[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),f=t.indexOf("start")>=0,u=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,v=o.backoff*s+a.startstandoff,d,p,g,m;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var b=d.x-p.x,A=d.y-p.y;if(g=Math.atan2(A,b),m=g+Math.PI,c&&v&&c+v>Math.sqrt(b*b+A*A)){X();return}if(c){if(c*c>b*b+A*A){X();return}var _=c*Math.cos(g),x=c*Math.sin(g);p.x+=_,p.y+=x,r.attr({x2:p.x,y2:p.y})}if(v){if(v*v>b*b+A*A){X();return}var T=v*Math.cos(g),E=v*Math.sin(g);d.x-=T,d.y-=E,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var S=n.getTotalLength(),k="";if(S{"use strict";var zz=da(),X6=It(),Yye=gi(),nv=Ur(),Z6=nv.strTranslate,iy=hn(),J0=ha(),Nu=Wa(),Gz=Wc(),J6=po(),$6=Yc(),ny=Ps(),Wye=Ja().arrayEditor,jye=Bz();Vz.exports={draw:Xye,drawOne:Uz,drawRaw:Hz};function Xye(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?fr="right":fr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[fr]}for(var Ue=!1,ee=["x","y"],_e=0;_e1)&&(ur===Xe?(ht=rr.r2fraction(r["a"+te]),(ht<0||ht>1)&&(Ue=!0)):Ue=!0),jr=rr._offset+rr.r2p(r[te]),lr=.5}else{var mr=Tt==="domain";te==="x"?(Fe=r[te],jr=mr?rr._offset+rr._length*Fe:jr=l.l+l.w*Fe):(Fe=1-r[te],jr=mr?rr._offset+rr._length*Fe:jr=l.t+l.h*Fe),lr=r.showarrow?.5:Fe}if(r.showarrow){Mr.head=jr;var yr=r["a"+te];if(vr=Or*$e(.5,r.xanchor)-wr*$e(.5,r.yanchor),ur===Xe){var Vr=iy.getRefType(ur);Vr==="domain"?(te==="y"&&(yr=1-yr),Mr.tail=rr._offset+rr._length*yr):Vr==="paper"?te==="y"?(yr=1-yr,Mr.tail=l.t+l.h*yr):Mr.tail=l.l+l.w*yr:Mr.tail=rr._offset+rr.r2p(yr),Yr=vr}else Mr.tail=jr+yr,Yr=vr+yr;Mr.text=Mr.tail+vr;var at=o[te==="x"?"width":"height"];if(Xe==="paper"&&(Mr.head=nv.constrain(Mr.head,1,at-1)),ur==="pixel"){var Wr=-Math.max(Mr.tail-3,Mr.text),Hr=Math.min(Mr.tail+3,Mr.text)-at;Wr>0?(Mr.tail+=Wr,Mr.text+=Wr):Hr>0&&(Mr.tail-=Hr,Mr.text-=Hr)}Mr.tail+=Kr,Mr.head+=Kr}else vr=Lr*$e(lr,Xr),Yr=vr,Mr.text=jr+vr;Mr.text+=Kr,vr+=Kr,Yr+=Kr,r["_"+te+"padplus"]=Lr/2+Yr,r["_"+te+"padminus"]=Lr/2-Yr,r["_"+te+"size"]=Lr,r["_"+te+"shift"]=vr}if(Ue){S.remove();return}var ot=0,it=0;if(r.align!=="left"&&(ot=(we-Ee)*(r.align==="center"?.5:1)),r.valign!=="top"&&(it=(Qe-Ye)*(r.valign==="middle"?.5:1)),De)ce.select("svg").attr({x:O+ot-1,y:O+it}).call(Nu.setClipUrl,R?g:null,e);else{var st=O+it-Ne.top,br=O+ot-Ne.left;ae.call(J6.positionText,br,st).call(Nu.setClipUrl,R?g:null,e)}H.select("rect").call(Nu.setRect,O,O,we,Qe),I.call(Nu.setRect,k/2,k/2,ze-k,He-k),S.call(Nu.setTranslate,Math.round(m.x.text-ze/2),Math.round(m.y.text-He/2)),_.attr({transform:"rotate("+b+","+m.x.text+","+m.y.text+")"});var Se=function(dr,fr){A.selectAll(".annotation-arrow-g").remove();var xt=m.x.head,Et=m.y.head,At=m.x.tail+dr,Nt=m.y.tail+fr,sa=m.x.text+dr,wa=m.y.text+fr,ua=nv.rotationXYMatrix(b,sa,wa),pn=nv.apply2DTransform(ua),Pn=nv.apply2DTransform2(ua),ci=+I.attr("width"),Nn=+I.attr("height"),lo=sa-.5*ci,Tn=lo+ci,On=wa-.5*Nn,Ti=On+Nn,Pt=[[lo,On,lo,Ti],[lo,Ti,Tn,Ti],[Tn,Ti,Tn,On],[Tn,On,lo,On]].map(Pn);if(!Pt.reduce(function(Ra,Wn){return Ra^!!nv.segmentsIntersect(xt,Et,xt+1e6,Et+1e6,Wn[0],Wn[1],Wn[2],Wn[3])},!1)){Pt.forEach(function(Ra){var Wn=nv.segmentsIntersect(At,Nt,xt,Et,Ra[0],Ra[1],Ra[2],Ra[3]);Wn&&(At=Wn.x,Nt=Wn.y)});var Ca=r.arrowwidth,na=r.arrowcolor,Va=r.arrowside,un=A.append("g").style({opacity:J0.opacity(na)}).classed("annotation-arrow-g",!0),La=un.append("path").attr("d","M"+At+","+Nt+"L"+xt+","+Et).style("stroke-width",Ca+"px").call(J0.stroke,J0.rgb(na));if(jye(La,Va,r),s.annotationPosition&&La.node().parentNode&&!a){var Ba=xt,Ga=Et;if(r.standoff){var rn=Math.sqrt(Math.pow(xt-At,2)+Math.pow(Et-Nt,2));Ba+=r.standoff*(At-xt)/rn,Ga+=r.standoff*(Nt-Et)/rn}var Yi=un.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(At-Ba)+","+(Nt-Ga),transform:Z6(Ba,Ga)}).style("stroke-width",Ca+6+"px").call(J0.stroke,"rgba(0,0,0,0)").call(J0.fill,"rgba(0,0,0,0)"),Wi,Cn;ny.init({element:Yi.node(),gd:e,prepFn:function(){var Ra=Nu.getTranslate(S);Wi=Ra.x,Cn=Ra.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(Ra,Wn){var ss=pn(Wi,Cn),fs=ss[0]+Ra,kl=ss[1]+Wn;S.call(Nu.setTranslate,fs,kl),d("x",av(n,Ra,"x",l,r)),d("y",av(i,Wn,"y",l,r)),r.axref===r.xref&&d("ax",av(n,Ra,"ax",l,r)),r.ayref===r.yref&&d("ay",av(i,Wn,"ay",l,r)),un.attr("transform",Z6(Ra,Wn)),_.attr({transform:"rotate("+b+","+fs+","+kl+")"})},doneFn:function(){X6.call("_guiRelayout",e,p());var Ra=document.querySelector(".js-notes-box-panel");Ra&&Ra.redraw(Ra.selectedObj)}})}}};if(r.showarrow&&Se(0,0),x){var Ie;ny.init({element:S.node(),gd:e,prepFn:function(){Ie=_.attr("transform")},moveFn:function(dr,fr){var xt="pointer";if(r.showarrow)r.axref===r.xref?d("ax",av(n,dr,"ax",l,r)):d("ax",r.ax+dr),r.ayref===r.yref?d("ay",av(i,fr,"ay",l.w,r)):d("ay",r.ay+fr),Se(dr,fr);else{if(a)return;var Et,At;if(n)Et=av(n,dr,"x",l,r);else{var Nt=r._xsize/l.w,sa=r.x+(r._xshift-r.xshift)/l.w-Nt/2;Et=ny.align(sa+dr/l.w,Nt,0,1,r.xanchor)}if(i)At=av(i,fr,"y",l,r);else{var wa=r._ysize/l.h,ua=r.y-(r._yshift+r.yshift)/l.h-wa/2;At=ny.align(ua-fr/l.h,wa,0,1,r.yanchor)}d("x",Et),d("y",At),(!n||!i)&&(xt=ny.getCursor(n?.5:Et,i?.5:At,r.xanchor,r.yanchor))}_.attr({transform:Z6(dr,fr)+Ie}),$6(S,xt)},clickFn:function(dr,fr){r.captureevents&&e.emit("plotly_clickannotation",E(fr))},doneFn:function(){$6(S),X6.call("_guiRelayout",e,p());var dr=document.querySelector(".js-notes-box-panel");dr&&dr.redraw(dr.selectedObj)}})}}s.annotationText?ae.call(J6.makeEditable,{delegate:S,gd:e}).call(J).on("edit",function($){r.text=$,this.call(J),d("text",$),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),X6.call("_guiRelayout",e,p())}):ae.call(J)}});var Jz=P((mFe,Zz)=>{"use strict";var Yz=Ur(),Zye=It(),Wz=Ja().arrayEditor;Zz.exports={hasClickToShow:Jye,onClick:$ye};function Jye(e,r){var t=Xz(e,r);return t.on.length>0||t.explicitOff.length>0}function $ye(e,r){var t=Xz(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(a.length||n.length){for(l=0;l{"use strict";var Q6=Ur(),Qd=ha();$z.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=Qd.opacity(o);n("borderpad");var s=n("borderwidth"),f=n("showarrow");n("text",f?" ":a._dfltTitle.annotation),n("textangle"),Q6.coerceFont(n,"font",a.font),n("width"),n("align");var u=n("height");if(u&&n("valign"),f){var c=n("arrowside"),v,d;c.indexOf("end")!==-1&&(v=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",v),n("startarrowsize",d)),n("arrowcolor",l?t.bordercolor:Qd.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),g=a.hoverlabel||{};if(p){var m=n("hoverlabel.bgcolor",g.bgcolor||(Qd.opacity(i)?Qd.rgb(i):Qd.defaultLine)),b=n("hoverlabel.bordercolor",g.bordercolor||Qd.contrast(m)),A=Q6.extendFlat({},g.font);A.color||(A.color=b),Q6.coerceFont(n,"hoverlabel.font",A)}n("captureevents",!!p)}});var Kz=P((gFe,Qz)=>{"use strict";var eT=Ur(),$0=hn(),Qye=gl(),Kye=K6(),ege=Gd();Qz.exports=function(r,t){Qye(r,t,{name:"annotations",handleItemDefaults:rge})};function rge(e,r,t){function a(_,x){return eT.coerce(e,r,ege,_,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){Kye(e,r,t,a);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],f={_fullLayout:t},u=0;u<2;u++){var c=l[u],v=$0.coerceRef(e,r,f,c,"","paper");if(v!=="paper"){var d=$0.getFromId(f,v);d._annIndices.push(r._index)}if($0.coercePosition(r,f,a,v,c,.5),o){var p="a"+c,g=$0.coerceRef(e,r,f,p,"pixel",["pixel","paper"]);g!=="pixel"&&g!==v&&(g=r[p]="pixel");var m=g==="pixel"?s[u]:.4;$0.coercePosition(r,f,a,g,p,m)}a(c+"anchor"),a(c+"shift")}if(eT.noneOrAll(e,r,["x","y"]),o&&eT.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),A=a("yclick");r._xclick=b===void 0?r.x:$0.cleanPosition(b,f,r.xref),r._yclick=A===void 0?r.y:$0.cleanPosition(A,f,r.yref)}}}});var tG=P((bFe,rG)=>{"use strict";var rT=Ur(),Q0=hn(),tge=Ob().draw;rG.exports=function(r){var t=r._fullLayout,a=rT.filterVisible(t.annotations);if(a.length&&r._fullData.length)return rT.syncOrAsync([tge,age],r)};function age(e){var r=e._fullLayout;rT.filterVisible(r.annotations).forEach(function(t){var a=Q0.getFromId(e,t.xref),n=Q0.getFromId(e,t.yref),i=Q0.getRefType(t.xref),o=Q0.getRefType(t.yref);t._extremes={},i==="range"&&eG(t,a),o==="range"&&eG(t,n)})}function eG(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],l=e["a"+a+"ref"],s=e["_"+a+"padplus"],f=e["_"+a+"padminus"],u={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,v=c+u,d=c-u,p=3*e.startarrowsize*e.arrowwidth||0,g=p+u,m=p-u,b;if(l===o){var A=Q0.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),_=Q0.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,g),ppadminus:Math.max(f,m)});b={min:[A.min[0],_.min[0]],max:[A.max[0],_.max[0]]}}else g=i?g+i:g,m=i?m-i:m,b=Q0.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,g),ppadminus:Math.max(f,d,m)});e._extremes[t]=b}});var nG=P((xFe,aG)=>{"use strict";var nge=ga(),ige=Dg();aG.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),f,u;function c(d){var p=f[d],g=null;i?g=ige(p,t.range):g=Math.pow(10,p),nge(g)||(g=null),n(u+d,g)}for(var v=0;v{"use strict";var tT=Ob(),iG=Jz();oG.exports={moduleType:"component",name:"annotations",layoutAttributes:Gd(),supplyLayoutDefaults:Kz(),includeBasePlot:Im()("annotations"),calcAutorange:tG(),draw:tT.draw,drawOne:tT.drawOne,drawRaw:tT.drawRaw,hasClickToShow:iG.hasClickToShow,onClick:iG.onClick,convertCoords:nG()}});var Ib=P((wFe,sG)=>{"use strict";var en=Gd(),oge=Cs().overrideAll,lge=Ja().templatedArray;sG.exports=oge(lge("annotation",{visible:en.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:en.xanchor,xshift:en.xshift,yanchor:en.yanchor,yshift:en.yshift,text:en.text,textangle:en.textangle,font:en.font,width:en.width,height:en.height,opacity:en.opacity,align:en.align,valign:en.valign,bgcolor:en.bgcolor,bordercolor:en.bordercolor,borderpad:en.borderpad,borderwidth:en.borderwidth,showarrow:en.showarrow,arrowcolor:en.arrowcolor,arrowhead:en.arrowhead,startarrowhead:en.startarrowhead,arrowside:en.arrowside,arrowsize:en.arrowsize,startarrowsize:en.startarrowsize,arrowwidth:en.arrowwidth,standoff:en.standoff,startstandoff:en.startstandoff,hovertext:en.hovertext,hoverlabel:en.hoverlabel,captureevents:en.captureevents}),"calc","from-root")});var uG=P((AFe,fG)=>{"use strict";var aT=Ur(),sge=hn(),fge=gl(),uge=K6(),cge=Ib();fG.exports=function(r,t,a){fge(r,t,{name:"annotations",handleItemDefaults:vge,fullLayout:a.fullLayout})};function vge(e,r,t,a){function n(l,s){return aT.coerce(e,r,cge,l,s)}function i(l){var s=l+"axis",f={_fullLayout:{}};return f._fullLayout[s]=t[s],sge.coercePosition(r,f,n,l,l,.5)}var o=n("visible");o&&(uge(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),aT.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),aT.noneOrAll(e,r,["ax","ay"])))}});var dG=P((TFe,hG)=>{"use strict";var cG=Ur(),vG=hn();hG.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function nT(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function dge(e,r){var t=nT(e.projection,nT(e.view,nT(e.model,[r[0],r[1],r[2],1])));return t}pG.exports=dge});var gG=P((SFe,yG)=>{"use strict";var pge=Ob().drawRaw,mge=mG(),yge=["x","y","z"];yG.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=mge(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),pge(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var _G=P((EFe,xG)=>{"use strict";var gge=It(),bG=Ur();xG.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Ib()}}},layoutAttributes:Ib(),handleDefaults:uG(),includeBasePlot:bge,convert:dG(),draw:gG()};function bge(e,r){var t=gge.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var wG=Gd(),AG=Bi(),TG=Qc().line,xge=kc().dash,Hs=Bn().extendFlat,_ge=Ja().templatedArray,kFe=Nm(),Kd=ks(),wge=ed().shapeTexttemplateAttrs,Age=Vg();MG.exports=_ge("shape",{visible:Hs({},Kd.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Hs({},Kd.legend,{editType:"calc+arraydraw"}),legendgroup:Hs({},Kd.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Hs({},Kd.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:AG({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Hs({},Kd.legendrank,{editType:"calc+arraydraw"}),legendwidth:Hs({},Kd.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Hs({},wG.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Hs({},wG.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Hs({},TG.color,{editType:"arraydraw"}),width:Hs({},TG.width,{editType:"calc+arraydraw"}),dash:Hs({},xge,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:wge({},{keys:Object.keys(Age)}),font:AG({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var kG=P((LFe,EG)=>{"use strict";var oy=Ur(),e1=hn(),Tge=gl(),Mge=iT(),SG=Jc();EG.exports=function(r,t){Tge(r,t,{name:"shapes",handleItemDefaults:Ege})};function Sge(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Ege(e,r,t){function a($,oe){return oy.coerce(e,r,Mge,$,oe)}r._isShape=!0;var n=a("visible");if(n){var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),oy.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var o=a("path"),l=o?"path":"rect",s=a("type",l),f=s!=="path";f&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var u=a("line.width");u&&(a("line.color"),a("line.dash"));for(var c=a("xsizemode"),v=a("ysizemode"),d=["x","y"],p=0;p<2;p++){var g=d[p],m=g+"anchor",b=g==="x"?c:v,A={_fullLayout:t},_,x,T,E=e1.coerceRef(e,r,A,g,void 0,"paper"),S=e1.getRefType(E);if(S==="range"?(_=e1.getFromId(A,E),_._shapeIndices.push(r._index),T=SG.rangeToShapePosition(_),x=SG.shapePositionToRange(_),(_.type==="category"||_.type==="multicategory")&&(a(g+"0shift"),a(g+"1shift"))):x=T=oy.identity,f){var k=.25,F=.75,O=g+"0",I=g+"1",R=e[O],H=e[I];e[O]=x(e[O],!0),e[I]=x(e[I],!0),b==="pixel"?(a(O,0),a(I,10)):(e1.coercePosition(r,A,a,E,O,k),e1.coercePosition(r,A,a,E,I,F)),r[O]=T(r[O]),r[I]=T(r[I]),e[O]=R,e[I]=H}if(b==="pixel"){var X=e[m];e[m]=x(e[m],!0),e1.coercePosition(r,A,a,E,m,.25),r[m]=T(r[m]),e[m]=X}}f&&oy.noneOrAll(e,r,["x0","x1","y0","y1"]);var le=s==="line",ae,J;if(f&&(ae=a("label.texttemplate")),ae||(J=a("label.text")),J||ae){a("label.textangle");var Z=a("label.textposition",le?"middle":"middle center");a("label.xanchor"),a("label.yanchor",Sge(le,Z)),a("label.padding"),oy.coerceFont(a,"label.font",t.font)}}}});var DG=P((DFe,LG)=>{"use strict";var kge=ha(),CG=Ur();function Cge(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}LG.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),CG.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",kge.contrast(i)),a("newshape.line.dash")}var o=r.dragmode==="drawline",l=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(l||s){a("newshape.label.textangle");var f=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",Cge(o,f)),a("newshape.label.padding"),CG.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var NG=P((FFe,PG)=>{"use strict";var oT=Ur(),r1=hn(),t1=mm(),RG=Jc();PG.exports=function(r){var t=r._fullLayout,a=oT.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n0?f+o:o;return{ppad:o,ppadplus:l?c:v,ppadminus:l?v:c}}else return{ppad:o}}function FG(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,f=n?e.r2c:e.d2c,u=r[a+"sizemode"]==="scaled";if(u?(i=r[a+"0"],o=r[a+"1"],n&&(l=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],o=r[a+"anchor"]),i!==void 0)return[f(i)+l,f(o)+s];if(r.path){var c=1/0,v=-1/0,d=r.path.match(t1.segmentRE),p,g,m,b,A;for(e.type==="date"&&(f=RG.decodeDate(f)),p=0;pv&&(v=A)));if(v>=c)return[c,v]}}});var BG=P((RFe,IG)=>{"use strict";var OG=C3();IG.exports={moduleType:"component",name:"shapes",layoutAttributes:iT(),supplyLayoutDefaults:kG(),supplyDrawNewShapeDefaults:DG(),includeBasePlot:Im()("shapes"),calcAutorange:NG(),draw:OG.draw,drawOne:OG.drawOne}});var lT=P((PFe,GG)=>{"use strict";var zG=Fi(),Fge=Ja().templatedArray,qFe=Nm();GG.exports=Fge("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",zG.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",zG.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var HG=P((NFe,UG)=>{"use strict";var Rge=Ur(),sT=hn(),qge=gl(),Pge=lT(),Nge="images";UG.exports=function(r,t){var a={name:Nge,handleItemDefaults:Oge};qge(r,t,a)};function Oge(e,r,t){function a(v,d){return Rge.coerce(e,r,Pge,v,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var f=l[s],u=sT.coerceRef(e,r,o,f,"paper",void 0);if(u!=="paper"){var c=sT.getFromId(o,u);c._imgIndices.push(r._index)}sT.coercePosition(r,o,a,u,f,0)}return r}});var jG=P((OFe,WG)=>{"use strict";var VG=da(),Ige=Wa(),a1=hn(),YG=En(),Bge=Ic();WG.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var XG=ga(),zge=Dg();ZG.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),f,u,c=0;c{"use strict";$G.exports={moduleType:"component",name:"images",layoutAttributes:lT(),supplyLayoutDefaults:HG(),includeBasePlot:Im()("images"),draw:jG(),convertCoords:JG()}});var Bb=P((zFe,KG)=>{"use strict";KG.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var fT=P((GFe,rU)=>{"use strict";var Gge=Bi(),Uge=wf(),Hge=Bn().extendFlat,Vge=Cs().overrideAll,Yge=Yg(),eU=Ja().templatedArray,Wge=eU("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});rU.exports=Vge(eU("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Wge,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Hge(Yge({editType:"arraydraw"}),{}),font:Gge({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Uge.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var iU=P((UFe,nU)=>{"use strict";var zb=Ur(),tU=gl(),aU=fT(),jge=Bb(),Xge=jge.name,Zge=aU.buttons;nU.exports=function(r,t){var a={name:Xge,handleItemDefaults:Jge};tU(r,t,a)};function Jge(e,r,t){function a(o,l){return zb.coerce(e,r,aU,o,l)}var n=tU(e,r,{name:"buttons",handleItemDefaults:$ge}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),zb.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),zb.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function $ge(e,r){function t(n,i){return zb.coerce(e,r,Zge,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var sU=P((HFe,lU)=>{"use strict";lU.exports=wn;var Vs=da(),oU=ha(),n1=Wa(),Gb=Ur();function wn(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}wn.barWidth=2;wn.barLength=20;wn.barRadius=2;wn.barPad=1;wn.barColor="#808BA4";wn.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,o=n.height;this.position=r;var l=this.position.l,s=this.position.w,f=this.position.t,u=this.position.h,c=this.position.direction,v=c==="down",d=c==="left",p=c==="right",g=c==="up",m=s,b=u,A,_,x,T;!v&&!d&&!p&&!g&&(this.position.direction="down",v=!0);var E=v||g;E?(A=l,_=A+m,v?(x=f,T=Math.min(x+b,o),b=T-x):(T=f+b,x=Math.max(T-b,0),b=T-x)):(x=f,T=x+b,d?(_=l+m,A=Math.max(_-m,0),m=_-A):(A=l,_=Math.min(A+m,i),m=_-A)),this._box={l:A,t:x,w:m,h:b};var S=s>m,k=wn.barLength+2*wn.barPad,F=wn.barWidth+2*wn.barPad,O=l,I=f+u;I+F>o&&(I=o-F);var R=this.container.selectAll("rect.scrollbar-horizontal").data(S?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(oU.fill,wn.barColor),S?(this.hbar=R.attr({rx:wn.barRadius,ry:wn.barRadius,x:O,y:I,width:k,height:F}),this._hbarXMin=O+k/2,this._hbarTranslateMax=m-k):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var H=u>b,X=wn.barWidth+2*wn.barPad,le=wn.barLength+2*wn.barPad,ae=l+s,J=f;ae+X>i&&(ae=i-X);var Z=this.container.selectAll("rect.scrollbar-vertical").data(H?[0]:[]);Z.exit().on(".drag",null).remove(),Z.enter().append("rect").classed("scrollbar-vertical",!0).call(oU.fill,wn.barColor),H?(this.vbar=Z.attr({rx:wn.barRadius,ry:wn.barRadius,x:ae,y:J,width:X,height:le}),this._vbarYMin=J+le/2,this._vbarTranslateMax=b-le):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var $=this.id,oe=A-.5,ce=H?_+X+.5:_+.5,De=x-.5,Ne=S?T+F+.5:T+.5,Ee=n._topdefs.selectAll("#"+$).data(S||H?[0]:[]);if(Ee.exit().remove(),Ee.enter().append("clipPath").attr("id",$).append("rect"),S||H?(this._clipRect=Ee.select("rect").attr({x:Math.floor(oe),y:Math.floor(De),width:Math.ceil(ce)-Math.floor(oe),height:Math.ceil(Ne)-Math.floor(De)}),this.container.call(n1.setClipUrl,$,this.gd),this.bg.attr({x:l,y:f,width:s,height:u})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(n1.setClipUrl,null),delete this._clipRect),S||H){var Ye=Vs.behavior.drag().on("dragstart",function(){Vs.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Ye);var we=Vs.behavior.drag().on("dragstart",function(){Vs.event.sourceEvent.preventDefault(),Vs.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));S&&this.hbar.on(".drag",null).call(we),H&&this.vbar.on(".drag",null).call(we)}this.setTranslate(t,a)};wn.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(n1.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};wn.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=Vs.event.dx),this.vbar&&(t-=Vs.event.dy),this.setTranslate(r,t)};wn.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Vs.event.deltaY),this.vbar&&(t+=Vs.event.deltaY),this.setTranslate(r,t)};wn.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Gb.constrain(Vs.event.x,a,n),o=(i-a)/(n-a),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,f=s+this._vbarTranslateMax,u=Gb.constrain(Vs.event.y,s,f),c=(u-s)/(f-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};wn.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Gb.constrain(r||0,0,a),t=Gb.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(n1.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(n1.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(n1.setTranslate,r,t+o*this._vbarTranslateMax)}}});var gU=P((VFe,yU)=>{"use strict";var i1=da(),ly=gi(),sy=ha(),o1=Wa(),Ml=Ur(),Ub=po(),Qge=Ja().arrayEditor,uU=ho().LINE_SPACING,Gt=Bb(),Kge=sU();yU.exports=function(r){var t=r._fullLayout,a=Ml.filterVisible(t[Gt.name]);function n(v){ly.autoMargin(r,pU(v))}var i=t._menulayer.selectAll("g."+Gt.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(Gt.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){i1.select(this).selectAll("g."+Gt.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+Gt.headerGroupClassName).data(a,e2e);o.enter().append("g").classed(Gt.headerGroupClassName,!0);for(var l=Ml.ensureSingle(i,"g",Gt.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s{"use strict";var l2e=Bb();bU.exports={moduleType:"component",name:l2e.name,layoutAttributes:fT(),supplyLayoutDefaults:iU(),draw:gU()}});var uy=P((WFe,_U)=>{"use strict";_U.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var hT=P((jFe,TU)=>{"use strict";var wU=Bi(),s2e=Yg(),f2e=Bn().extendDeepAll,u2e=Cs().overrideAll,c2e=zp(),AU=Ja().templatedArray,K0=uy(),v2e=AU("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});TU.exports=u2e(AU("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:v2e,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:f2e(s2e({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:c2e.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:wU({})},font:wU({}),activebgcolor:{valType:"color",dflt:K0.gripBgActiveColor},bgcolor:{valType:"color",dflt:K0.railBgColor},bordercolor:{valType:"color",dflt:K0.railBorderColor},borderwidth:{valType:"number",min:0,dflt:K0.railBorderWidth},ticklen:{valType:"number",min:0,dflt:K0.tickLength},tickcolor:{valType:"color",dflt:K0.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:K0.minorTickLength}}),"arraydraw","from-root")});var kU=P((XFe,EU)=>{"use strict";var l1=Ur(),MU=gl(),SU=hT(),h2e=uy(),d2e=h2e.name,p2e=SU.steps;EU.exports=function(r,t){MU(r,t,{name:d2e,handleItemDefaults:m2e})};function m2e(e,r,t){function a(c,v){return l1.coerce(e,r,SU,c,v)}for(var n=MU(e,r,{name:"steps",handleItemDefaults:y2e}),i=0,o=0;o{"use strict";var Ys=da(),Hb=gi(),iv=ha(),Ws=Wa(),Sl=Ur(),g2e=Sl.strTranslate,cy=po(),b2e=Ja().arrayEditor,ea=uy(),mT=ho(),DU=mT.LINE_SPACING,dT=mT.FROM_TL,pT=mT.FROM_BR;OU.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=x2e(a,r),i=a._infolayer.selectAll("g."+ea.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(ea.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(u){u._commandObserver&&(u._commandObserver.remove(),delete u._commandObserver),Hb.autoMargin(r,FU(u))}if(i.exit().each(function(){Ys.select(this).selectAll("g."+ea.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+ea.groupClassName).data(n,_2e);l.enter().append("g").classed(ea.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",g2e(o-ea.gripWidth*.5,r._dims.currentValueTotalHeight))}}function yT(e,r){var t=e._dims;return t.inputAreaStart+ea.stepInset+(t.inputAreaLength-2*ea.stepInset)*Math.min(1,Math.max(0,r))}function LU(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-ea.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*ea.stepInset-2*t.inputAreaStart)))}function k2e(e,r,t){var a=t._dims,n=Sl.ensureSingle(e,"rect",ea.railTouchRectClass,function(i){i.call(PU,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,ea.tickOffset+t.ticklen+a.labelHeight)}).call(iv.fill,t.bgcolor).attr("opacity",0),Ws.setTranslate(n,0,a.currentValueTotalHeight)}function C2e(e,r){var t=r._dims,a=t.inputAreaLength-ea.railInset*2,n=Sl.ensureSingle(e,"rect",ea.railRectClass);n.attr({width:a,height:ea.railWidth,rx:ea.railRadius,ry:ea.railRadius,"shape-rendering":"crispEdges"}).call(iv.stroke,r.bordercolor).call(iv.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Ws.setTranslate(n,ea.railInset,(t.inputAreaWidth-ea.railWidth)*.5+t.currentValueTotalHeight)}});var zU=P((JFe,BU)=>{"use strict";var L2e=uy();BU.exports={moduleType:"component",name:L2e.name,layoutAttributes:hT(),supplyLayoutDefaults:kU(),draw:IU()}});var Yb=P(($Fe,UU)=>{"use strict";var GU=wf();UU.exports={bgcolor:{valType:"color",dflt:GU.background,editType:"plot"},bordercolor:{valType:"color",dflt:GU.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var gT=P((QFe,HU)=>{"use strict";HU.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Wb=P((KFe,VU)=>{"use strict";VU.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var jU=P(Xb=>{"use strict";var D2e=En(),F2e=po(),YU=Wb(),R2e=ho().LINE_SPACING,jb=YU.name;function WU(e){var r=e&&e[jb];return r&&r.visible}Xb.isVisible=WU;Xb.makeData=function(e){for(var r=D2e.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Zb=Ur(),XU=Ja(),ZU=En(),q2e=Yb(),P2e=gT();JU.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Zb.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=XU.newContainer(i,"rangeslider");function s(T,E){return Zb.coerce(o,l,q2e,T,E)}var f,u;function c(T,E){return Zb.coerce(f,u,P2e,T,E)}var v=s("visible");if(v){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var p=d.cartesian.filter(function(T){return T.substr(0,T.indexOf("y"))===ZU.name2id(a)}).map(function(T){return T.substr(T.indexOf("y"),T.length)}),g=Zb.simpleMap(p,ZU.id2name),m=0;m{"use strict";var N2e=En().list,O2e=Ad().getAutoRange,I2e=Wb();QU.exports=function(r){for(var t=N2e(r,"x",!0),a=0;a{"use strict";var Jb=da(),B2e=It(),z2e=gi(),qn=Ur(),$b=qn.strTranslate,rH=Wa(),ov=ha(),G2e=nm(),U2e=ay(),bT=En(),H2e=Ps(),V2e=Yc(),la=Wb();tH.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=Z.max)ae=I[J+1];else if(le=Z.pmax)ae=I[J+1];else if(le0?e.touches[0].clientX:0}function Y2e(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+la.slideBoxClassName).node(),i=e.select("rect."+la.grabAreaMinClassName).node(),o=e.select("rect."+la.grabAreaMaxClassName).node();function l(){var s=Jb.event,f=s.target,u=eH(s),c=u-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=H2e.coverSlip();this.addEventListener("touchmove",g),this.addEventListener("touchend",m),p.addEventListener("mousemove",g),p.addEventListener("mouseup",m);function g(b){var A=eH(b),_=+A-u,x,T,E;switch(f){case n:if(E="ew-resize",v+_>t._length||d+_<0)return;x=v+_,T=d+_;break;case i:if(E="col-resize",v+_>t._length)return;x=v+_,T=d;break;case o:if(E="col-resize",d+_<0)return;x=v,T=d+_;break;default:E="ew-resize",x=c,T=c+_;break}if(T{"use strict";var r3e=Ur(),t3e=Yb(),a3e=gT(),xT=jU();nH.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:r3e.extendFlat({},t3e,{yaxis:a3e})}}},layoutAttributes:Yb(),handleDefaults:$U(),calcAutorange:KU(),draw:aH(),isVisible:xT.isVisible,makeData:xT.makeData,autoMarginOpts:xT.autoMarginOpts}});var Qb=P((iRe,lH)=>{"use strict";var n3e=Bi(),oH=wf(),i3e=Ja().templatedArray,o3e=i3e("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});lH.exports={visible:{valType:"boolean",editType:"plot"},buttons:o3e,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:n3e({editType:"plot"}),bgcolor:{valType:"color",dflt:oH.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:oH.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var _T=P((oRe,sH)=>{"use strict";sH.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var cH=P((lRe,uH)=>{"use strict";var Kb=Ur(),l3e=ha(),s3e=Ja(),f3e=gl(),fH=Qb(),wT=_T();uH.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=s3e.newContainer(t,"rangeselector");function s(d,p){return Kb.coerce(o,l,fH,d,p)}var f=f3e(o,l,{name:"buttons",handleItemDefaults:u3e,calendar:i}),u=s("visible",f.length>0);if(u){var c=c3e(t,a,n);s("x",c[0]),s("y",c[1]),Kb.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Kb.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",l3e.contrast(v,wT.lightAmount,wT.darkAmount)),s("bordercolor"),s("borderwidth")}};function u3e(e,r,t,a){var n=a.calendar;function i(s,f){return Kb.coerce(e,r,fH.buttons,s,f)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(n&&n!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function c3e(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i{"use strict";var v3e=y5(),h3e=Ur().titleCase;vH.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=d3e(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function d3e(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=v3e["utc"+h3e(n)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(a,-o));break;case"todate":var s=i.offset(a,-o);l=e.l2r(+i.ceil(s));break}var f=t[1];return[l,f]}});var _H=P((fRe,xH)=>{"use strict";var rx=da(),p3e=It(),m3e=gi(),dH=ha(),bH=Wa(),Ou=Ur(),pH=Ou.strTranslate,ex=po(),y3e=En(),MT=ho(),mH=MT.LINE_SPACING,yH=MT.FROM_TL,gH=MT.FROM_BR,TT=_T(),g3e=hH();xH.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(b3e(r),x3e);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=rx.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(Ou.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(f){var u=rx.select(this),c=g3e(o,f);f._isActive=_3e(o,f,c),u.call(AT,l,f),u.call(A3e,l,f,r),u.on("click",function(){r._dragged||p3e.call("_guiRelayout",r,c)}),u.on("mouseover",function(){f._isHovered=!0,u.call(AT,l,f)}),u.on("mouseout",function(){f._isHovered=!1,u.call(AT,l,f)})}),M3e(r,s,l,o._name,i)})};function b3e(e){for(var r=y3e.list(e,"x",!0),t=[],a=0;a{"use strict";wH.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Qb()}}},layoutAttributes:Qb(),handleDefaults:cH(),draw:_H()}});var tx=P(ST=>{"use strict";var TH=Bn().extendFlat;ST.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",o={x:TH({},t,{}),y:TH({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};ST.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l{"use strict";var S3e=Ur(),E3e=$h().counter,k3e=tx().attributes,MH=Fi().idRegex,C3e=Ja(),ET={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[E3e("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[MH.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[MH.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:k3e({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function ax(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function L3e(e,r){var t=e.grid||{},a=ax(r,t,"x"),n=ax(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(a),l=Array.isArray(n),s=o&&a!==t.xaxes&&l&&n!==t.yaxes,f,u;i?(f=t.subplots.length,u=t.subplots[0].length):(l&&(f=n.length),o&&(u=a.length));var c=C3e.newContainer(r,"grid");function v(E,S){return S3e.coerce(t,c,ET,E,S)}var d=v("rows",f),p=v("columns",u);if(!(d*p>1)){delete r.grid;return}if(!i&&!o&&!l){var g=v("pattern")==="independent";g&&(i=!0)}c._hasSubplotGrid=i;var m=v("roworder"),b=m==="top to bottom",A=i?.2:.1,_=i?.3:.1,x,T;s&&r._splomGridDflt&&(x=r._splomGridDflt.xside,T=r._splomGridDflt.yside),c._domains={x:SH("x",v,A,x,p),y:SH("y",v,_,T,d,b)}}function SH(e,r,t,a,n,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",a);for(var s=new Array(n),f=l[0],u=(l[1]-f)/(n-o),c=u*(1-o),v=0;v{"use strict";CH.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var FH=P((dRe,DH)=>{"use strict";var LH=ga(),F3e=It(),R3e=Ur(),q3e=Ja(),P3e=CT();DH.exports=function(e,r,t,a){var n="error_"+a.axis,i=q3e.newContainer(r,n),o=e[n]||{};function l(p,g){return R3e.coerce(o,i,P3e,p,g)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",f=l("visible",s);if(f!==!1){var u=l("type","array"in o?"data":"percent"),c=!0;u!=="sqrt"&&(c=l("symmetric",!((u==="data"?"arrayminus":"valueminus")in o))),u==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(u==="percent"||u==="constant")&&(l("value"),c||l("valueminus"));var v="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(v,!(o.color||LH(o.thickness)||LH(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",F3e.traceIs(r,"gl3d")?0:4))}}});var LT=P((pRe,qH)=>{"use strict";qH.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(f,u){var c=+n[u];return[c,c]};var i=r.arrayminus||[];return function(f,u){var c=+n[u],v=+i[u];return!isNaN(c)||!isNaN(v)?[v||0,c||0]:[NaN,NaN]}}else{var o=RH(t,r.value),l=RH(t,r.valueminus);return a||r.valueminus===void 0?function(f){var u=o(f);return[u,u]}:function(f){return[l(f),o(f)]}}};function RH(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var OH=P((mRe,NH)=>{"use strict";var DT=ga(),N3e=It(),FT=hn(),O3e=Ur(),I3e=LT();NH.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var IH=da(),lv=ga(),B3e=Wa(),z3e=Ri();BH.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,s=n&&n.duration>0,f=r._context.staticPlot;t.each(function(u){var c=u[0].trace,v=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(A){return A.id});var g=z3e.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(u=[]);var m=IH.select(this).selectAll("g.errorbar").data(u,p);if(m.exit().remove(),!!u.length){v.visible||m.selectAll("path.xerror").remove(),d.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var b=m.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),B3e.setClipUrl(m,a.layerClipId,r),m.each(function(A){var _=IH.select(this),x=G3e(A,o,l);if(!(g&&!A.vis)){var T,E=_.select("path.yerror");if(d.visible&&lv(x.x)&&lv(x.yh)&&lv(x.ys)){var S=d.width;T="M"+(x.x-S)+","+x.yh+"h"+2*S+"m-"+S+",0V"+x.ys,x.noYS||(T+="m-"+S+",0h"+2*S),i=!E.size(),i?E=_.append("path").style("vector-effect",f?"none":"non-scaling-stroke").classed("yerror",!0):s&&(E=E.transition().duration(n.duration).ease(n.easing)),E.attr("d",T)}else E.remove();var k=_.select("path.xerror");if(v.visible&&lv(x.y)&&lv(x.xh)&&lv(x.xs)){var F=(v.copy_ystyle?d:v).width;T="M"+x.xh+","+(x.y-F)+"v"+2*F+"m0,-"+F+"H"+x.xs,x.noXS||(T+="m0,-"+F+"v"+2*F),i=!k.size(),i?k=_.append("path").style("vector-effect",f?"none":"non-scaling-stroke").classed("xerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",T)}else k.remove()}})}})};function G3e(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),lv(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),lv(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var HH=P((gRe,UH)=>{"use strict";var U3e=da(),GH=ha();UH.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=U3e.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(GH.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(GH.stroke,i.color)})}});var WH=P((bRe,YH)=>{"use strict";var vy=Ur(),VH=Cs().overrideAll,hy=CT(),eh={error_x:vy.extendFlat({},hy),error_y:vy.extendFlat({},hy)};delete eh.error_x.copy_zstyle;delete eh.error_y.copy_zstyle;delete eh.error_y.copy_ystyle;var dy={error_x:vy.extendFlat({},hy),error_y:vy.extendFlat({},hy),error_z:vy.extendFlat({},hy)};delete dy.error_x.copy_ystyle;delete dy.error_y.copy_ystyle;delete dy.error_z.copy_ystyle;delete dy.error_z.copy_zstyle;YH.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:eh,bar:eh,histogram:eh,scatter3d:VH(dy,"calc","nested"),scattergl:VH(eh,"calc","nested")}},supplyDefaults:FH(),calc:OH(),makeComputeError:LT(),plot:zH(),style:HH(),hoverInfo:H3e};function H3e(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var XH=P((xRe,jH)=>{"use strict";jH.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var rV=P((_Re,eV)=>{"use strict";var sv=da(),RT=Es(),ix=gi(),ZH=It(),Iu=hn(),nx=Ps(),rs=Ur(),Xs=rs.strTranslate,KH=Bn().extendFlat,qT=Yc(),js=Wa(),PT=ha(),V3e=nm(),Y3e=po(),W3e=Rs().flipScale,j3e=H6(),X3e=V6(),Z3e=Ul(),NT=ho(),JH=NT.LINE_SPACING,$H=NT.FROM_TL,QH=NT.FROM_BR,gn=XH().cn;function J3e(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+gn.colorbar).data($3e(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(gn.colorbar,!0),t.each(function(a){var n=sv.select(this);rs.ensureSingle(n,"rect",gn.cbbg),rs.ensureSingle(n,"g",gn.cbfills),rs.ensureSingle(n,"g",gn.cblines),rs.ensureSingle(n,"g",gn.cbaxis,function(o){o.classed(gn.crisp,!0)}),rs.ensureSingle(n,"g",gn.cbtitleunshift,function(o){o.append("g").classed(gn.cbtitle,!0)}),rs.ensureSingle(n,"rect",gn.cboutline);var i=Q3e(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&K3e(n,a,e)}),t.exit().each(function(a){ix.autoMargin(e,a._id)}).remove(),t.order()}function $3e(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(_){return KH(_,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function f(){typeof l.calc=="function"?l.calc(e,o,n):(n._fillgradient=i.reversescale?W3e(i.colorscale):i.colorscale,n._zrange=[i[l.min],i[l.max]])}for(var u=0;u1){var _e=Math.pow(10,Math.floor(Math.log(ee)/Math.LN10));$e*=_e*rs.roundUp(ee/_e,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(ze.tick0=0)}ze.dtick=$e}ze.domain=a?[we+p/x.h,we+$-p/x.h]:[we+d/x.w,we+$-d/x.w],ze.setScale(),e.attr("transform",Xs(Math.round(x.l),Math.round(x.t)));var te=e.select("."+gn.cbtitleunshift).attr("transform",Xs(-Math.round(x.l),-Math.round(x.t))),Xe=ze.ticklabelposition,ur=ze.title.font.size,rr=e.select("."+gn.cbaxis),Pr,Or=0,wr=0;function Lr(Yr,Fe){var lr={propContainer:ze,propName:r._propPrefix+"title",traceIndex:r._traceIndex,_meta:r._meta,placeholder:_._dfltTitle.colorbar,containerGroup:e.select("."+gn.cbtitle)},vr=Yr.charAt(0)==="h"?Yr.substr(1):"h"+Yr;e.selectAll("."+vr+",."+vr+"-math-group").remove(),V3e.draw(t,Yr,KH(lr,Fe||{}))}function Xr(){if(a&&He||!a&&!He){var Yr,Fe;k==="top"&&(Yr=d+x.l+oe*g,Fe=p+x.t+ce*(1-we-$)+3+ur*.75),k==="bottom"&&(Yr=d+x.l+oe*g,Fe=p+x.t+ce*(1-we)-3-ur*.25),k==="right"&&(Fe=p+x.t+ce*m+3+ur*.75,Yr=d+x.l+oe*we),Lr(ze._id+"title",{attributes:{x:Yr,y:Fe,"text-anchor":a?"start":"middle"}})}}function Kr(){if(a&&!He||!a&&He){var Yr=ze.position||0,Fe=ze._offset+ze._length/2,lr,vr;if(k==="right")vr=Fe,lr=x.l+oe*Yr+10+ur*(ze.showticklabels?1:.5);else if(lr=Fe,k==="bottom"&&(vr=x.t+ce*Yr+10+(Xe.indexOf("inside")===-1?ze.tickfont.size:0)+(ze.ticks!=="intside"&&r.ticklen||0)),k==="top"){var Tt=S.text.split("
").length;vr=x.t+ce*Yr+10-ae-JH*ur*Tt}Lr((a?"h":"v")+ze._id+"title",{avoid:{selection:sv.select(t).selectAll("g."+ze._id+"tick"),side:k,offsetTop:a?0:x.t,offsetLeft:a?x.l:0,maxShift:a?_.width:_.height},attributes:{x:lr,y:vr,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function Mr(){if(!a&&!He||a&&He){var Yr=e.select("."+gn.cbtitle),Fe=Yr.select("text"),lr=[-s/2,s/2],vr=Yr.select(".h"+ze._id+"title-math-group").node(),Tt=15.6;Fe.node()&&(Tt=parseInt(Fe.node().style.fontSize,10)*JH);var ht;if(vr?(ht=js.bBox(vr),wr=ht.width,Or=ht.height,Or>Tt&&(lr[1]-=(Or-Tt)/2)):Fe.node()&&!Fe.classed(gn.jsPlaceholder)&&(ht=js.bBox(Fe.node()),wr=ht.width,Or=ht.height),a){if(Or){if(Or+=5,k==="top")ze.domain[1]-=Or/x.h,lr[1]*=-1;else{ze.domain[0]+=Or/x.h;var mr=Y3e.lineCount(Fe);lr[1]+=(1-mr)*Tt}Yr.attr("transform",Xs(lr[0],lr[1])),ze.setScale()}}else wr&&(k==="right"&&(ze.domain[0]+=(wr+ur/2)/x.w),Yr.attr("transform",Xs(lr[0],lr[1])),ze.setScale())}e.selectAll("."+gn.cbfills+",."+gn.cblines).attr("transform",a?Xs(0,Math.round(x.h*(1-ze.domain[1]))):Xs(Math.round(x.w*ze.domain[0]),0)),rr.attr("transform",a?Xs(0,Math.round(-x.t)):Xs(Math.round(-x.l),0));var yr=e.select("."+gn.cbfills).selectAll("rect."+gn.cbfill).attr("style","").data(X);yr.enter().append("rect").classed(gn.cbfill,!0).attr("style",""),yr.exit().remove();var Vr=F.map(ze.c2p).map(Math.round).sort(function(it,st){return it-st});yr.each(function(it,st){var br=[st===0?F[0]:(X[st]+X[st-1])/2,st===X.length-1?F[1]:(X[st]+X[st+1])/2].map(ze.c2p).map(Math.round);a&&(br[1]=rs.constrain(br[1]+(br[1]>br[0])?1:-1,Vr[0],Vr[1]));var Se=sv.select(this).attr(a?"x":"y",De).attr(a?"y":"x",sv.min(br)).attr(a?"width":"height",Math.max(ae,2)).attr(a?"height":"width",Math.max(sv.max(br)-sv.min(br),2));if(r._fillgradient)js.gradient(Se,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var Ie=I(it).replace("e-","");Se.attr("fill",RT(Ie).toHexString())}});var at=e.select("."+gn.cblines).selectAll("path."+gn.cbline).data(E.color&&E.width?le:[]);at.enter().append("path").classed(gn.cbline,!0),at.exit().remove(),at.each(function(it){var st=De,br=Math.round(ze.c2p(it))+E.width/2%1;sv.select(this).attr("d","M"+(a?st+","+br:br+","+st)+(a?"h":"v")+ae).call(js.lineGroupStyle,E.width,O(it),E.dash)}),rr.selectAll("g."+ze._id+"tick,path").remove();var Wr=De+ae+(s||0)/2-(r.ticks==="outside"?1:0),Hr=Iu.calcTicks(ze),ot=Iu.getTickSigns(ze)[2];return Iu.drawTicks(t,ze,{vals:ze.ticks==="inside"?Iu.clipEnds(ze,Hr):Hr,layer:rr,path:Iu.makeTickPath(ze,Wr,ot),transFn:Iu.makeTransTickFn(ze)}),Iu.drawLabels(t,ze,{vals:Hr,layer:rr,transFn:Iu.makeTransTickLabelFn(ze),labelFns:Iu.makeLabelFns(ze,Wr)})}function jr(){var Yr,Fe=ae+s/2;Xe.indexOf("inside")===-1&&(Yr=js.bBox(rr.node()),Fe+=a?Yr.width:Yr.height),Pr=te.select("text");var lr=0,vr=a&&k==="top",Tt=!a&&k==="right",ht=0;if(Pr.node()&&!Pr.classed(gn.jsPlaceholder)){var mr,yr=te.select(".h"+ze._id+"title-math-group").node();yr&&(a&&He||!a&&!He)?(Yr=js.bBox(yr),lr=Yr.width,mr=Yr.height):(Yr=js.bBox(te.node()),lr=Yr.right-x.l-(a?De:Qe),mr=Yr.bottom-x.t-(a?Qe:De),!a&&k==="top"&&(Fe+=Yr.height,ht=Yr.height)),Tt&&(Pr.attr("transform",Xs(lr/2+ur/2,0)),lr*=2),Fe=Math.max(Fe,a?lr:mr)}var Vr=(a?d:p)*2+Fe+f+s/2,at=0;!a&&S.text&&v==="bottom"&&m<=0&&(at=Vr/2,Vr+=at,ht+=at),_._hColorbarMoveTitle=at,_._hColorbarMoveCBTitle=ht;var Wr=f+s,Hr=(a?De:Qe)-Wr/2-(a?d:0),ot=(a?Qe:De)-(a?Z:p+ht-at);e.select("."+gn.cbbg).attr("x",Hr).attr("y",ot).attr(a?"width":"height",Math.max(Vr-at,2)).attr(a?"height":"width",Math.max(Z+Wr,2)).call(PT.fill,u).call(PT.stroke,r.bordercolor).style("stroke-width",f);var it=Tt?Math.max(lr-10,0):0;e.selectAll("."+gn.cboutline).attr("x",(a?De:Qe+d)+it).attr("y",(a?Qe+p-Z:De)+(vr?Or:0)).attr(a?"width":"height",Math.max(ae,2)).attr(a?"height":"width",Math.max(Z-(a?2*p+Or:2*d+it),2)).call(PT.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var st=a?Ne*Vr:0,br=a?0:(1-Ee)*Vr-ht;if(st=A?x.l-st:-st,br=b?x.t-br:-br,e.attr("transform",Xs(st,br)),!a&&(f||RT(u).getAlpha()&&!RT.equals(_.paper_bgcolor,u))){var Se=rr.selectAll("text"),Ie=Se[0].length,dr=e.select("."+gn.cbbg).node(),fr=js.bBox(dr),xt=js.getTranslate(e),Et=2;Se.each(function(lo,Tn){var On=0,Ti=Ie-1;if(Tn===On||Tn===Ti){var Pt=js.bBox(this),Ca=js.getTranslate(this),na;if(Tn===Ti){var Va=Pt.right+Ca.x,un=fr.right+xt.x+Qe-f-Et+g;na=un-Va,na>0&&(na=0)}else if(Tn===On){var La=Pt.left+Ca.x,Ba=fr.left+xt.x+Qe+f+Et;na=Ba-La,na<0&&(na=0)}na&&(Ie<3?this.setAttribute("transform","translate("+na+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var At={},Nt=$H[c],sa=QH[c],wa=$H[v],ua=QH[v],pn=Vr-ae;a?(i==="pixels"?(At.y=m,At.t=Z*wa,At.b=Z*ua):(At.t=At.b=0,At.yt=m+n*wa,At.yb=m-n*ua),l==="pixels"?(At.x=g,At.l=Vr*Nt,At.r=Vr*sa):(At.l=pn*Nt,At.r=pn*sa,At.xl=g-o*Nt,At.xr=g+o*sa)):(i==="pixels"?(At.x=g,At.l=Z*Nt,At.r=Z*sa):(At.l=At.r=0,At.xl=g+n*Nt,At.xr=g-n*sa),l==="pixels"?(At.y=1-m,At.t=Vr*wa,At.b=Vr*ua):(At.t=pn*wa,At.b=pn*ua,At.yt=m-o*wa,At.yb=m+o*ua));var Pn=r.y<.5?"b":"t",ci=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Nn={r:_.width-Hr-st,l:Hr+At.r,b:_.height-ot-br,t:ot+At.b};A&&b?ix.autoMargin(t,r._id,At):A?t._fullLayout._reservedMargin[r._id][Pn]=Nn[Pn]:b||a?t._fullLayout._reservedMargin[r._id][ci]=Nn[ci]:t._fullLayout._reservedMargin[r._id][Pn]=Nn[Pn]}return rs.syncOrAsync([ix.previousPromises,Xr,Mr,Kr,ix.previousPromises,jr],t)}function K3e(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;nx.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),qT(e)},moveFn:function(f,u){e.attr("transform",o+Xs(f,u)),l=nx.align((a?r._uFrac:r._vFrac)+f/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=nx.align((a?r._vFrac:1-r._uFrac)-u/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=nx.getCursor(l,s,r.xanchor,r.yanchor);qT(e,c)},doneFn:function(){if(qT(e),l!==void 0&&s!==void 0){var f={};f[r._propPrefix+"x"]=l,f[r._propPrefix+"y"]=s,r._traceIndex!==void 0?ZH.call("_guiRestyle",t,f,r._traceIndex):ZH.call("_guiRelayout",t,f)}}})}function ebe(e,r,t){var a=r._levels,n=[],i=[],o,l,s=a.end+a.size/100,f=a.size,u=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=a.start+l*f,!(f>0?o>=s:o<=s));l++)o>u&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";tV.exports={moduleType:"component",name:"colorbar",attributes:_2(),supplyDefaults:R4(),draw:rV().draw,hasColorbar:w4()}});var iV=P((ARe,nV)=>{"use strict";nV.exports={moduleType:"component",name:"legend",layoutAttributes:Cw(),supplyLayoutDefaults:Fw(),draw:Yw(),style:Gw()}});var lV=P((TRe,oV)=>{"use strict";oV.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var fV=P((MRe,sV)=>{"use strict";sV.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var IT=P((SRe,hV)=>{"use strict";var tbe=It(),vV=Ur(),OT=vV.extendFlat,uV=vV.extendDeep;function cV(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function abe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}hV.exports=function(r,t){var a,n=r.data,i=r.layout,o=uV([],n),l=uV({},i,cV(t.tileClass)),s=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var f=Object.keys(l);for(a=0;a{"use strict";var nbe=s2().EventEmitter,ibe=It(),obe=Ur(),dV=V0(),lbe=IT(),sbe=vb(),fbe=hb();function ube(e,r){var t=new nbe,a=lbe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=dV.getDelay(n._fullLayout);setTimeout(function(){var s=sbe(n),f=document.createElement("canvas");f.id=obe.randstr(),t=fbe({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:f,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},l)}var o=dV.getRedrawFunc(n);return ibe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}pV.exports=ube});var bV=P((kRe,gV)=>{"use strict";var yV=V0(),cbe={getDelay:yV.getDelay,getRedrawFunc:yV.getRedrawFunc,clone:IT(),toSVG:vb(),svgToImg:hb(),toImage:mV(),downloadImage:u6()};gV.exports=cbe});var _V=P(Bu=>{"use strict";Bu.version=_g().version;bM();fC();var vbe=It(),py=Bu.register=vbe.register,zT=DI(),xV=Object.keys(zT);for(ox=0;ox{"use strict";wV.exports=_V()});var GT=P((DRe,MV)=>{"use strict";var hbe=It(),El=Ur(),dbe=B6();function pbe(e,r,t,a){var n=e.cd,i=n[0].t,o=n[0].trace,l=e.xa,s=e.ya,f=i.x,u=i.y,c=l.c2p(r),v=s.c2p(t),d=e.distance,p;if(i.tree){var g=l.p2c(c-d),m=l.p2c(c+d),b=s.p2c(v-d),A=s.p2c(v+d);a==="x"?p=i.tree.range(Math.min(g,m),Math.min(s._rl[0],s._rl[1]),Math.max(g,m),Math.max(s._rl[0],s._rl[1])):p=i.tree.range(Math.min(g,m),Math.min(b,A),Math.max(g,m),Math.max(b,A))}else p=i.ids;var _,x,T,E,S,k,F,O,I,R=d;if(a==="x"){var H=!!o.xperiodalignment,X=!!o.yperiodalignment;for(S=0;S=Math.min(le,ae)&&c<=Math.max(le,ae)?0:1/0}if(k=Math.min(J,Z)&&v<=Math.max(J,Z)?0:1/0}I=Math.sqrt(k*k+F*F),x=p[S]}}}else for(S=p.length-1;S>-1;S--)_=p[S],T=f[_],E=u[_],k=l.c2p(T)-c,F=s.c2p(E)-v,O=Math.sqrt(k*k+F*F),O{"use strict";var SV=20;EV.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:SV,SYMBOL_STROKE:SV/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}});var sx=P((RRe,DV)=>{"use strict";var mbe=ks(),ybe=Bi(),gbe=zA(),kn=Qc(),kV=em().axisHoverFormat,CV=S0(),bbe=Qg(),UT=Bn().extendFlat,xbe=Cs().overrideAll,_be=f1().DASHES,LV=kn.line,zu=kn.marker,wbe=zu.line,u1=DV.exports=xbe({x:kn.x,x0:kn.x0,dx:kn.dx,y:kn.y,y0:kn.y0,dy:kn.dy,xperiod:kn.xperiod,yperiod:kn.yperiod,xperiod0:kn.xperiod0,yperiod0:kn.yperiod0,xperiodalignment:kn.xperiodalignment,yperiodalignment:kn.yperiodalignment,xhoverformat:kV("x"),yhoverformat:kV("y"),text:kn.text,hovertext:kn.hovertext,textposition:kn.textposition,textfont:ybe({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:LV.color,width:LV.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:bbe(_be),dflt:"solid"}},marker:UT({},CV("marker"),{symbol:zu.symbol,angle:zu.angle,size:zu.size,sizeref:zu.sizeref,sizemin:zu.sizemin,sizemode:zu.sizemode,opacity:zu.opacity,colorbar:zu.colorbar,line:UT({},CV("marker.line"),{width:wbe.width})}),connectgaps:kn.connectgaps,fill:UT({},kn.fill,{dflt:"none"}),fillcolor:gbe(),selected:{marker:kn.selected.marker,textfont:kn.selected.textfont},unselected:{marker:kn.unselected.marker,textfont:kn.unselected.textfont},opacity:mbe.opacity},"calc","nested");u1.x.editType=u1.y.editType=u1.x0.editType=u1.y0.editType="calc+clearAxisTypes";u1.hovertemplate=kn.hovertemplate;u1.texttemplate=kn.texttemplate});var fx=P(HT=>{"use strict";var FV=f1();HT.isOpenSymbol=function(e){return typeof e=="string"?FV.OPEN_RE.test(e):e%200>100};HT.isDotSymbol=function(e){return typeof e=="string"?FV.DOT_RE.test(e):e>200}});var PV=P((PRe,qV)=>{"use strict";var RV=Ur(),Abe=It(),Tbe=fx(),Mbe=sx(),Sbe=Om(),ux=Ri(),Ebe=h6(),kbe=d6(),Cbe=gb(),Lbe=p6(),Dbe=y6(),Fbe=m6();qV.exports=function(r,t,a,n){function i(d,p){return RV.coerce(r,t,Mbe,d,p)}var o=r.marker?Tbe.isOpenSymbol(r.marker.symbol):!1,l=ux.isBubble(r),s=Ebe(r,t,n,i);if(!s){t.visible=!1;return}kbe(r,t,n,i),i("xhoverformat"),i("yhoverformat");var f=s{"use strict";var Rbe=q6();NV.exports=function(r,t,a){var n=r.i;return"x"in r||(r.x=t._x[n]),"y"in r||(r.y=t._y[n]),Rbe(r,t,a)}});var BV=P((ORe,IV)=>{"use strict";function qbe(e,r,t,a,n){for(var i=n+1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s>=0?(i=o,n=o-1):a=o+1}return i}function Pbe(e,r,t,a,n){for(var i=n+1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s>0?(i=o,n=o-1):a=o+1}return i}function Nbe(e,r,t,a,n){for(var i=a-1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s<0?(i=o,a=o+1):n=o-1}return i}function Obe(e,r,t,a,n){for(var i=a-1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s<=0?(i=o,a=o+1):n=o-1}return i}function Ibe(e,r,t,a,n){for(;a<=n;){var i=a+n>>>1,o=e[i],l=t!==void 0?t(o,r):o-r;if(l===0)return i;l<=0?a=i+1:n=i-1}return-1}function my(e,r,t,a,n,i){return typeof t=="function"?i(e,r,t,a===void 0?0:a|0,n===void 0?e.length-1:n|0):i(e,r,void 0,t===void 0?0:t|0,a===void 0?e.length-1:a|0)}IV.exports={ge:function(e,r,t,a,n){return my(e,r,t,a,n,qbe)},gt:function(e,r,t,a,n){return my(e,r,t,a,n,Pbe)},lt:function(e,r,t,a,n){return my(e,r,t,a,n,Nbe)},le:function(e,r,t,a,n){return my(e,r,t,a,n,Obe)},eq:function(e,r,t,a,n){return my(e,r,t,a,n,Ibe)}}});var yy=P((IRe,zV)=>{zV.exports=Bbe;function Bbe(e,r,t){return rt?t:e:er?r:e}});var Of=P((BRe,UV)=>{"use strict";UV.exports=function(r,t,a){var n={},i,o;if(typeof t=="string"&&(t=GV(t)),Array.isArray(t)){var l={};for(o=0;o{"use strict";var zbe=Of();HV.exports=Gbe;function Gbe(e){var r;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?r={width:e[0],height:e[0],x:0,y:0}:e.length===2?r={width:e[0],height:e[1],x:0,y:0}:r={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=zbe(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),r={x:e.left||0,y:e.top||0},e.width==null?e.right?r.width=e.right-r.x:r.width=0:r.width=e.width,e.height==null?e.bottom?r.height=e.bottom-r.y:r.height=0:r.height=e.height),r}});var rh=P((GRe,VV)=>{"use strict";VV.exports=Ube;function Ube(e,r){if(!e||e.length==null)throw Error("Argument should be an array");r==null?r=1:r=Math.floor(r);for(var t=Array(r*2),a=0;an&&(n=e[o]),e[o]{YV.exports=function(){for(var e=0;e{jV.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var th=P((VRe,ZV)=>{var XV=cx();ZV.exports=Hbe;function Hbe(e,r,t){if(!e)throw new TypeError("must specify data as first parameter");if(t=+(t||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var a=e[0].length,n=e.length*a,i,o,l,s;(!r||typeof r=="string")&&(r=new(XV(r||"float32"))(n+t));var f=r.length-t;if(n!==f)throw new Error("source length "+n+" ("+a+"x"+e.length+") does not match destination length "+f);for(i=0,l=t;i{"use strict";JV.exports=function(e){var r=typeof e;return e!==null&&(r==="object"||r==="function")}});var KV=P((WRe,QV)=>{"use strict";QV.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var oY=P((jRe,iY)=>{"use strict";var eY=BV(),rY=yy(),Vbe=c1(),Ybe=rh(),tY=Of(),YT=WV(),Wbe=th(),jbe=$V(),Xbe=cx(),aY=KV(),Zbe=1073741824;iY.exports=function(r,t){t||(t={}),r=Wbe(r,"float64"),t=tY(t,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let a=YT(t.maxDepth,255),n=YT(t.bounds,Ybe(r,2));n[0]===n[2]&&n[2]++,n[1]===n[3]&&n[3]++;let i=nY(r,n),o=r.length>>>1,l;t.dtype||(t.dtype="array"),typeof t.dtype=="string"?l=new(Xbe(t.dtype))(o):t.dtype&&(l=t.dtype,Array.isArray(l)&&(l.length=o));for(let b=0;ba||E>Zbe){for(let Z=0;ZDe||F>Ne||O=R||oe===ce)return;let Ee=s[$];ce===void 0&&(ce=Ee.length);for(let _e=oe;_e=x&&Xe<=E&&ur>=T&&ur<=S&&H.push(te)}let Ye=f[$],we=Ye[oe*4+0],Qe=Ye[oe*4+1],ze=Ye[oe*4+2],He=Ye[oe*4+3],$e=le(Ye,oe+1),Ue=Z*.5,ee=$+1;X(ae,J,Ue,ee,we,Qe||ze||He||$e),X(ae,J+Ue,Ue,ee,Qe,ze||He||$e),X(ae+Ue,J,Ue,ee,ze,He||$e),X(ae+Ue,J+Ue,Ue,ee,He,$e)}function le(ae,J){let Z=null,$=0;for(;Z===null;)if(Z=ae[J*4+$],$++,$>ae.length)return null;return Z}return H}function g(b,A,_,x,T){let E=[];for(let S=0;S{"use strict";lY.exports=oY()});var jT=P((ZRe,sY)=>{sY.exports=Jbe;function Jbe(e){var r=0,t=0,a=0,n=0;return e.map(function(i){i=i.slice();var o=i[0],l=o.toUpperCase();if(o!=l)switch(i[0]=l,o){case"a":i[6]+=a,i[7]+=n;break;case"v":i[1]+=n;break;case"h":i[1]+=a;break;default:for(var s=1;s{"use strict";Object.defineProperty(vx,"__esModule",{value:!0});var $be=function(){function e(r,t){var a=[],n=!0,i=!1,o=void 0;try{for(var l=r[Symbol.iterator](),s;!(n=(s=l.next()).done)&&(a.push(s.value),!(t&&a.length===t));n=!0);}catch(f){i=!0,o=f}finally{try{!n&&l.return&&l.return()}finally{if(i)throw o}}return a}return function(r,t){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),gy=Math.PI*2,XT=function(r,t,a,n,i,o,l){var s=r.x,f=r.y;s*=t,f*=a;var u=n*s-i*f,c=i*s+n*f;return{x:u+o,y:c+l}},Qbe=function(r,t){var a=t===1.5707963267948966?.551915024494:t===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(t/4),n=Math.cos(r),i=Math.sin(r),o=Math.cos(r+t),l=Math.sin(r+t);return[{x:n-i*a,y:i+n*a},{x:o+l*a,y:l-o*a},{x:o,y:l}]},fY=function(r,t,a,n){var i=r*n-t*a<0?-1:1,o=r*a+t*n;return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)},Kbe=function(r,t,a,n,i,o,l,s,f,u,c,v){var d=Math.pow(i,2),p=Math.pow(o,2),g=Math.pow(c,2),m=Math.pow(v,2),b=d*p-d*m-p*g;b<0&&(b=0),b/=d*m+p*g,b=Math.sqrt(b)*(l===s?-1:1);var A=b*i/o*v,_=b*-o/i*c,x=u*A-f*_+(r+a)/2,T=f*A+u*_+(t+n)/2,E=(c-A)/i,S=(v-_)/o,k=(-c-A)/i,F=(-v-_)/o,O=fY(1,0,E,S),I=fY(E,S,k,F);return s===0&&I>0&&(I-=gy),s===1&&I<0&&(I+=gy),[x,T,O,I]},exe=function(r){var t=r.px,a=r.py,n=r.cx,i=r.cy,o=r.rx,l=r.ry,s=r.xAxisRotation,f=s===void 0?0:s,u=r.largeArcFlag,c=u===void 0?0:u,v=r.sweepFlag,d=v===void 0?0:v,p=[];if(o===0||l===0)return[];var g=Math.sin(f*gy/360),m=Math.cos(f*gy/360),b=m*(t-n)/2+g*(a-i)/2,A=-g*(t-n)/2+m*(a-i)/2;if(b===0&&A===0)return[];o=Math.abs(o),l=Math.abs(l);var _=Math.pow(b,2)/Math.pow(o,2)+Math.pow(A,2)/Math.pow(l,2);_>1&&(o*=Math.sqrt(_),l*=Math.sqrt(_));var x=Kbe(t,a,n,i,o,l,c,d,g,m,b,A),T=$be(x,4),E=T[0],S=T[1],k=T[2],F=T[3],O=Math.abs(F)/(gy/4);Math.abs(1-O)<1e-7&&(O=1);var I=Math.max(Math.ceil(O),1);F/=I;for(var R=0;R{"use strict";hY.exports=txe;var rxe=cY();function txe(e){for(var r,t=[],a=0,n=0,i=0,o=0,l=null,s=null,f=0,u=0,c=0,v=e.length;c4?(a=d[d.length-4],n=d[d.length-3]):(a=f,n=u),t.push(d)}return t}function hx(e,r,t,a){return["C",e,r,t,a,t,a]}function vY(e,r,t,a,n,i){return["C",e/3+2/3*t,r/3+2/3*a,n/3+2/3*t,i/3+2/3*a,n,i]}});var ZT=P(($Re,pY)=>{"use strict";pY.exports=function(r){return typeof r!="string"?!1:(r=r.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(r)&&/[\dz]$/i.test(r)&&r.length>4))}});var dx=P((QRe,mY)=>{"use strict";mY.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),a=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;r[t]=n;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var o=Object.getOwnPropertySymbols(r);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(r,t);if(l.value!==n||l.enumerable!==!0)return!1}return!0}});var by=P((KRe,yY)=>{"use strict";var axe=dx();yY.exports=function(){return axe()&&!!Symbol.toStringTag}});var JT=P((eqe,gY)=>{"use strict";gY.exports=Object});var xY=P((rqe,bY)=>{"use strict";bY.exports=Error});var wY=P((tqe,_Y)=>{"use strict";_Y.exports=EvalError});var TY=P((aqe,AY)=>{"use strict";AY.exports=RangeError});var SY=P((nqe,MY)=>{"use strict";MY.exports=ReferenceError});var $T=P((iqe,EY)=>{"use strict";EY.exports=SyntaxError});var v1=P((oqe,kY)=>{"use strict";kY.exports=TypeError});var LY=P((lqe,CY)=>{"use strict";CY.exports=URIError});var FY=P((sqe,DY)=>{"use strict";DY.exports=Math.abs});var qY=P((fqe,RY)=>{"use strict";RY.exports=Math.floor});var NY=P((uqe,PY)=>{"use strict";PY.exports=Math.max});var IY=P((cqe,OY)=>{"use strict";OY.exports=Math.min});var zY=P((vqe,BY)=>{"use strict";BY.exports=Math.pow});var UY=P((hqe,GY)=>{"use strict";GY.exports=Math.round});var VY=P((dqe,HY)=>{"use strict";HY.exports=Number.isNaN||function(r){return r!==r}});var WY=P((pqe,YY)=>{"use strict";var nxe=VY();YY.exports=function(r){return nxe(r)||r===0?r:r<0?-1:1}});var XY=P((mqe,jY)=>{"use strict";jY.exports=Object.getOwnPropertyDescriptor});var ah=P((yqe,ZY)=>{"use strict";var px=XY();if(px)try{px([],"length")}catch(e){px=null}ZY.exports=px});var xy=P((gqe,JY)=>{"use strict";var mx=Object.defineProperty||!1;if(mx)try{mx({},"a",{value:1})}catch(e){mx=!1}JY.exports=mx});var KY=P((bqe,QY)=>{"use strict";var $Y=typeof Symbol!="undefined"&&Symbol,ixe=dx();QY.exports=function(){return typeof $Y!="function"||typeof Symbol!="function"||typeof $Y("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ixe()}});var QT=P((xqe,eW)=>{"use strict";eW.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var KT=P((_qe,rW)=>{"use strict";var oxe=JT();rW.exports=oxe.getPrototypeOf||null});var nW=P((wqe,aW)=>{"use strict";var lxe="Function.prototype.bind called on incompatible ",sxe=Object.prototype.toString,fxe=Math.max,uxe="[object Function]",tW=function(r,t){for(var a=[],n=0;n{"use strict";var hxe=nW();iW.exports=Function.prototype.bind||hxe});var yx=P((Tqe,oW)=>{"use strict";oW.exports=Function.prototype.call});var e8=P((Mqe,lW)=>{"use strict";lW.exports=Function.prototype.apply});var fW=P((Sqe,sW)=>{"use strict";sW.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var cW=P((Eqe,uW)=>{"use strict";var dxe=h1(),pxe=e8(),mxe=yx(),yxe=fW();uW.exports=yxe||dxe.call(mxe,pxe)});var hW=P((kqe,vW)=>{"use strict";var gxe=h1(),bxe=v1(),xxe=yx(),_xe=cW();vW.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new bxe("a function is required");return _xe(gxe,xxe,r)}});var bW=P((Cqe,gW)=>{"use strict";var wxe=hW(),dW=ah(),mW;try{mW=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var r8=!!mW&&dW&&dW(Object.prototype,"__proto__"),yW=Object,pW=yW.getPrototypeOf;gW.exports=r8&&typeof r8.get=="function"?wxe([r8.get]):typeof pW=="function"?function(r){return pW(r==null?r:yW(r))}:!1});var TW=P((Lqe,AW)=>{"use strict";var xW=QT(),_W=KT(),wW=bW();AW.exports=xW?function(r){return xW(r)}:_W?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return _W(r)}:wW?function(r){return wW(r)}:null});var SW=P((Dqe,MW)=>{"use strict";var Axe=Function.prototype.call,Txe=Object.prototype.hasOwnProperty,Mxe=h1();MW.exports=Mxe.call(Axe,Txe)});var xx=P((Fqe,FW)=>{"use strict";var Pa,Sxe=JT(),Exe=xY(),kxe=wY(),Cxe=TY(),Lxe=SY(),y1=$T(),m1=v1(),Dxe=LY(),Fxe=FY(),Rxe=qY(),qxe=NY(),Pxe=IY(),Nxe=zY(),Oxe=UY(),Ixe=WY(),LW=Function,t8=function(e){try{return LW('"use strict"; return ('+e+").constructor;")()}catch(r){}},_y=ah(),Bxe=xy(),a8=function(){throw new m1},zxe=_y?function(){try{return arguments.callee,a8}catch(e){try{return _y(arguments,"callee").get}catch(r){return a8}}}():a8,d1=KY()(),Ui=TW(),Gxe=KT(),Uxe=QT(),DW=e8(),wy=yx(),p1={},Hxe=typeof Uint8Array=="undefined"||!Ui?Pa:Ui(Uint8Array),nh={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Pa:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Pa:ArrayBuffer,"%ArrayIteratorPrototype%":d1&&Ui?Ui([][Symbol.iterator]()):Pa,"%AsyncFromSyncIteratorPrototype%":Pa,"%AsyncFunction%":p1,"%AsyncGenerator%":p1,"%AsyncGeneratorFunction%":p1,"%AsyncIteratorPrototype%":p1,"%Atomics%":typeof Atomics=="undefined"?Pa:Atomics,"%BigInt%":typeof BigInt=="undefined"?Pa:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Pa:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Pa:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Pa:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Exe,"%eval%":eval,"%EvalError%":kxe,"%Float16Array%":typeof Float16Array=="undefined"?Pa:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?Pa:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Pa:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Pa:FinalizationRegistry,"%Function%":LW,"%GeneratorFunction%":p1,"%Int8Array%":typeof Int8Array=="undefined"?Pa:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Pa:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Pa:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d1&&Ui?Ui(Ui([][Symbol.iterator]())):Pa,"%JSON%":typeof JSON=="object"?JSON:Pa,"%Map%":typeof Map=="undefined"?Pa:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!d1||!Ui?Pa:Ui(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Sxe,"%Object.getOwnPropertyDescriptor%":_y,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Pa:Promise,"%Proxy%":typeof Proxy=="undefined"?Pa:Proxy,"%RangeError%":Cxe,"%ReferenceError%":Lxe,"%Reflect%":typeof Reflect=="undefined"?Pa:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Pa:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!d1||!Ui?Pa:Ui(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Pa:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d1&&Ui?Ui(""[Symbol.iterator]()):Pa,"%Symbol%":d1?Symbol:Pa,"%SyntaxError%":y1,"%ThrowTypeError%":zxe,"%TypedArray%":Hxe,"%TypeError%":m1,"%Uint8Array%":typeof Uint8Array=="undefined"?Pa:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Pa:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Pa:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Pa:Uint32Array,"%URIError%":Dxe,"%WeakMap%":typeof WeakMap=="undefined"?Pa:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Pa:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Pa:WeakSet,"%Function.prototype.call%":wy,"%Function.prototype.apply%":DW,"%Object.defineProperty%":Bxe,"%Object.getPrototypeOf%":Gxe,"%Math.abs%":Fxe,"%Math.floor%":Rxe,"%Math.max%":qxe,"%Math.min%":Pxe,"%Math.pow%":Nxe,"%Math.round%":Oxe,"%Math.sign%":Ixe,"%Reflect.getPrototypeOf%":Uxe};if(Ui)try{null.error}catch(e){EW=Ui(Ui(e)),nh["%Error.prototype%"]=EW}var EW,Vxe=function e(r){var t;if(r==="%AsyncFunction%")t=t8("async function () {}");else if(r==="%GeneratorFunction%")t=t8("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=t8("async function* () {}");else if(r==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(t=a.prototype)}else if(r==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Ui&&(t=Ui(n.prototype))}return nh[r]=t,t},kW={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ay=h1(),gx=SW(),Yxe=Ay.call(wy,Array.prototype.concat),Wxe=Ay.call(DW,Array.prototype.splice),CW=Ay.call(wy,String.prototype.replace),bx=Ay.call(wy,String.prototype.slice),jxe=Ay.call(wy,RegExp.prototype.exec),Xxe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Zxe=/\\(\\)?/g,Jxe=function(r){var t=bx(r,0,1),a=bx(r,-1);if(t==="%"&&a!=="%")throw new y1("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&t!=="%")throw new y1("invalid intrinsic syntax, expected opening `%`");var n=[];return CW(r,Xxe,function(i,o,l,s){n[n.length]=l?CW(s,Zxe,"$1"):o||i}),n},$xe=function(r,t){var a=r,n;if(gx(kW,a)&&(n=kW[a],a="%"+n[0]+"%"),gx(nh,a)){var i=nh[a];if(i===p1&&(i=Vxe(a)),typeof i=="undefined"&&!t)throw new m1("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:i}}throw new y1("intrinsic "+r+" does not exist!")};FW.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new m1("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new m1('"allowMissing" argument must be a boolean');if(jxe(/^%?[^%]*%?$/,r)===null)throw new y1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=Jxe(r),n=a.length>0?a[0]:"",i=$xe("%"+n+"%",t),o=i.name,l=i.value,s=!1,f=i.alias;f&&(n=f[0],Wxe(a,Yxe([0,1],f)));for(var u=1,c=!0;u=a.length){var g=_y(l,v);c=!!g,c&&"get"in g&&!("originalValue"in g.get)?l=g.get:l=l[v]}else c=gx(l,v),l=l[v];c&&!s&&(nh[o]=l)}}return l}});var NW=P((Rqe,PW)=>{"use strict";var RW=xy(),Qxe=$T(),g1=v1(),qW=ah();PW.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new g1("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new g1("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new g1("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new g1("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new g1("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new g1("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,s=!!qW&&qW(r,t);if(RW)RW(r,t,{configurable:o===null&&s?s.configurable:!o,enumerable:n===null&&s?s.enumerable:!n,value:a,writable:i===null&&s?s.writable:!i});else if(l||!n&&!i&&!o)r[t]=a;else throw new Qxe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var i8=P((qqe,IW)=>{"use strict";var n8=xy(),OW=function(){return!!n8};OW.hasArrayLengthDefineBug=function(){if(!n8)return null;try{return n8([],"length",{value:1}).length!==1}catch(r){return!0}};IW.exports=OW});var HW=P((Pqe,UW)=>{"use strict";var Kxe=xx(),BW=NW(),e_e=i8()(),zW=ah(),GW=v1(),r_e=Kxe("%Math.floor%");UW.exports=function(r,t){if(typeof r!="function")throw new GW("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||r_e(t)!==t)throw new GW("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in r&&zW){var o=zW(r,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(i=!1)}return(n||i||!a)&&(e_e?BW(r,"length",t,!0,!0):BW(r,"length",t)),r}});var Ty=P((Nqe,_x)=>{"use strict";var o8=h1(),wx=xx(),t_e=HW(),a_e=v1(),WW=wx("%Function.prototype.apply%"),jW=wx("%Function.prototype.call%"),XW=wx("%Reflect.apply%",!0)||o8.call(jW,WW),VW=xy(),n_e=wx("%Math.max%");_x.exports=function(r){if(typeof r!="function")throw new a_e("a function is required");var t=XW(o8,jW,arguments);return t_e(t,1+n_e(0,r.length-(arguments.length-1)),!0)};var YW=function(){return XW(o8,WW,arguments)};VW?VW(_x.exports,"apply",{value:YW}):_x.exports.apply=YW});var b1=P((Oqe,$W)=>{"use strict";var ZW=xx(),JW=Ty(),i_e=JW(ZW("String.prototype.indexOf"));$W.exports=function(r,t){var a=ZW(r,!!t);return typeof a=="function"&&i_e(r,".prototype.")>-1?JW(a):a}});var ej=P((Iqe,KW)=>{"use strict";var o_e=by()(),l_e=b1(),l8=l_e("Object.prototype.toString"),Ax=function(r){return o_e&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:l8(r)==="[object Arguments]"},QW=function(r){return Ax(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&l8(r)!=="[object Array]"&&l8(r.callee)==="[object Function]"},s_e=function(){return Ax(arguments)}();Ax.isLegacyArguments=QW;KW.exports=s_e?Ax:QW});var aj=P((Bqe,tj)=>{"use strict";var f_e=Object.prototype.toString,u_e=Function.prototype.toString,c_e=/^\s*(?:function)?\*/,rj=by()(),s8=Object.getPrototypeOf,v_e=function(){if(!rj)return!1;try{return Function("return function*() {}")()}catch(e){}},f8;tj.exports=function(r){if(typeof r!="function")return!1;if(c_e.test(u_e.call(r)))return!0;if(!rj){var t=f_e.call(r);return t==="[object GeneratorFunction]"}if(!s8)return!1;if(typeof f8=="undefined"){var a=v_e();f8=a?s8(a):!1}return s8(r)===f8}});var lj=P((zqe,oj)=>{"use strict";var ij=Function.prototype.toString,x1=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,c8,Tx;if(typeof x1=="function"&&typeof Object.defineProperty=="function")try{c8=Object.defineProperty({},"length",{get:function(){throw Tx}}),Tx={},x1(function(){throw 42},null,c8)}catch(e){e!==Tx&&(x1=null)}else x1=null;var h_e=/^\s*class\b/,v8=function(r){try{var t=ij.call(r);return h_e.test(t)}catch(a){return!1}},u8=function(r){try{return v8(r)?!1:(ij.call(r),!0)}catch(t){return!1}},Mx=Object.prototype.toString,d_e="[object Object]",p_e="[object Function]",m_e="[object GeneratorFunction]",y_e="[object HTMLAllCollection]",g_e="[object HTML document.all class]",b_e="[object HTMLCollection]",x_e=typeof Symbol=="function"&&!!Symbol.toStringTag,__e=!(0 in[,]),h8=function(){return!1};typeof document=="object"&&(nj=document.all,Mx.call(nj)===Mx.call(document.all)&&(h8=function(r){if((__e||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=Mx.call(r);return(t===y_e||t===g_e||t===b_e||t===d_e)&&r("")==null}catch(a){}return!1}));var nj;oj.exports=x1?function(r){if(h8(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{x1(r,null,c8)}catch(t){if(t!==Tx)return!1}return!v8(r)&&u8(r)}:function(r){if(h8(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(x_e)return u8(r);if(v8(r))return!1;var t=Mx.call(r);return t!==p_e&&t!==m_e&&!/^\[object HTML/.test(t)?!1:u8(r)}});var d8=P((Gqe,fj)=>{"use strict";var w_e=lj(),A_e=Object.prototype.toString,sj=Object.prototype.hasOwnProperty,T_e=function(r,t,a){for(var n=0,i=r.length;n=3&&(n=a),A_e.call(r)==="[object Array]"?T_e(r,t,n):typeof r=="string"?M_e(r,t,n):S_e(r,t,n)};fj.exports=E_e});var m8=P((Uqe,uj)=>{"use strict";var p8=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],k_e=typeof globalThis=="undefined"?window:globalThis;uj.exports=function(){for(var r=[],t=0;t{"use strict";var Ex=d8(),C_e=m8(),cj=Ty(),b8=b1(),Sx=ah(),L_e=b8("Object.prototype.toString"),hj=by()(),vj=typeof globalThis=="undefined"?window:globalThis,g8=C_e(),x8=b8("String.prototype.slice"),y8=Object.getPrototypeOf,D_e=b8("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1?t:t!=="Object"?!1:R_e(r)}return Sx?F_e(r):null}});var _j=P((Vqe,xj)=>{"use strict";var mj=d8(),q_e=m8(),w8=b1(),P_e=w8("Object.prototype.toString"),yj=by()(),Cx=ah(),N_e=typeof globalThis=="undefined"?window:globalThis,gj=q_e(),O_e=w8("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1}return Cx?B_e(r):!1}});var Pj=P(Na=>{"use strict";var z_e=ej(),G_e=aj(),Zs=pj(),wj=_j();function _1(e){return e.call.bind(e)}var Aj=typeof BigInt!="undefined",Tj=typeof Symbol!="undefined",ts=_1(Object.prototype.toString),U_e=_1(Number.prototype.valueOf),H_e=_1(String.prototype.valueOf),V_e=_1(Boolean.prototype.valueOf);Aj&&(Mj=_1(BigInt.prototype.valueOf));var Mj;Tj&&(Sj=_1(Symbol.prototype.valueOf));var Sj;function Sy(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch(t){return!1}}Na.isArgumentsObject=z_e;Na.isGeneratorFunction=G_e;Na.isTypedArray=wj;function Y_e(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}Na.isPromise=Y_e;function W_e(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):wj(e)||kj(e)}Na.isArrayBufferView=W_e;function j_e(e){return Zs(e)==="Uint8Array"}Na.isUint8Array=j_e;function X_e(e){return Zs(e)==="Uint8ClampedArray"}Na.isUint8ClampedArray=X_e;function Z_e(e){return Zs(e)==="Uint16Array"}Na.isUint16Array=Z_e;function J_e(e){return Zs(e)==="Uint32Array"}Na.isUint32Array=J_e;function $_e(e){return Zs(e)==="Int8Array"}Na.isInt8Array=$_e;function Q_e(e){return Zs(e)==="Int16Array"}Na.isInt16Array=Q_e;function K_e(e){return Zs(e)==="Int32Array"}Na.isInt32Array=K_e;function e5e(e){return Zs(e)==="Float32Array"}Na.isFloat32Array=e5e;function r5e(e){return Zs(e)==="Float64Array"}Na.isFloat64Array=r5e;function t5e(e){return Zs(e)==="BigInt64Array"}Na.isBigInt64Array=t5e;function a5e(e){return Zs(e)==="BigUint64Array"}Na.isBigUint64Array=a5e;function Lx(e){return ts(e)==="[object Map]"}Lx.working=typeof Map!="undefined"&&Lx(new Map);function n5e(e){return typeof Map=="undefined"?!1:Lx.working?Lx(e):e instanceof Map}Na.isMap=n5e;function Dx(e){return ts(e)==="[object Set]"}Dx.working=typeof Set!="undefined"&&Dx(new Set);function i5e(e){return typeof Set=="undefined"?!1:Dx.working?Dx(e):e instanceof Set}Na.isSet=i5e;function Fx(e){return ts(e)==="[object WeakMap]"}Fx.working=typeof WeakMap!="undefined"&&Fx(new WeakMap);function o5e(e){return typeof WeakMap=="undefined"?!1:Fx.working?Fx(e):e instanceof WeakMap}Na.isWeakMap=o5e;function T8(e){return ts(e)==="[object WeakSet]"}T8.working=typeof WeakSet!="undefined"&&T8(new WeakSet);function l5e(e){return T8(e)}Na.isWeakSet=l5e;function Rx(e){return ts(e)==="[object ArrayBuffer]"}Rx.working=typeof ArrayBuffer!="undefined"&&Rx(new ArrayBuffer);function Ej(e){return typeof ArrayBuffer=="undefined"?!1:Rx.working?Rx(e):e instanceof ArrayBuffer}Na.isArrayBuffer=Ej;function qx(e){return ts(e)==="[object DataView]"}qx.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&qx(new DataView(new ArrayBuffer(1),0,1));function kj(e){return typeof DataView=="undefined"?!1:qx.working?qx(e):e instanceof DataView}Na.isDataView=kj;var A8=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function My(e){return ts(e)==="[object SharedArrayBuffer]"}function Cj(e){return typeof A8=="undefined"?!1:(typeof My.working=="undefined"&&(My.working=My(new A8)),My.working?My(e):e instanceof A8)}Na.isSharedArrayBuffer=Cj;function s5e(e){return ts(e)==="[object AsyncFunction]"}Na.isAsyncFunction=s5e;function f5e(e){return ts(e)==="[object Map Iterator]"}Na.isMapIterator=f5e;function u5e(e){return ts(e)==="[object Set Iterator]"}Na.isSetIterator=u5e;function c5e(e){return ts(e)==="[object Generator]"}Na.isGeneratorObject=c5e;function v5e(e){return ts(e)==="[object WebAssembly.Module]"}Na.isWebAssemblyCompiledModule=v5e;function Lj(e){return Sy(e,U_e)}Na.isNumberObject=Lj;function Dj(e){return Sy(e,H_e)}Na.isStringObject=Dj;function Fj(e){return Sy(e,V_e)}Na.isBooleanObject=Fj;function Rj(e){return Aj&&Sy(e,Mj)}Na.isBigIntObject=Rj;function qj(e){return Tj&&Sy(e,Sj)}Na.isSymbolObject=qj;function h5e(e){return Lj(e)||Dj(e)||Fj(e)||Rj(e)||qj(e)}Na.isBoxedPrimitive=h5e;function d5e(e){return typeof Uint8Array!="undefined"&&(Ej(e)||Cj(e))}Na.isAnyArrayBuffer=d5e;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(Na,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var Oj=P((Wqe,Nj)=>{Nj.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var Ij=P((jqe,M8)=>{typeof Object.create=="function"?M8.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:M8.exports=function(r,t){if(t){r.super_=t;var a=function(){};a.prototype=t.prototype,r.prototype=new a,r.prototype.constructor=r}}});var A1=P(Oa=>{var Bj=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),C8(r)?t.showHidden=r:r&&Oa._extend(t,r),oh(t.showHidden)&&(t.showHidden=!1),oh(t.depth)&&(t.depth=2),oh(t.colors)&&(t.colors=!1),oh(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=m5e),Ix(t,e,t.depth)}Oa.inspect=fv;fv.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};fv.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function m5e(e,r){var t=fv.styles[r];return t?"\x1B["+fv.colors[t][0]+"m"+e+"\x1B["+fv.colors[t][1]+"m":e}function y5e(e,r){return e}function g5e(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function Ix(e,r,t){if(e.customInspect&&r&&Ox(r.inspect)&&r.inspect!==Oa.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return Gx(a)||(a=Ix(e,a,t)),a}var n=b5e(e,r);if(n)return n;var i=Object.keys(r),o=g5e(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),ky(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return S8(r);if(i.length===0){if(Ox(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(Ey(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(Bx(r))return e.stylize(Date.prototype.toString.call(r),"date");if(ky(r))return S8(r)}var s="",f=!1,u=["{","}"];if(Gj(r)&&(f=!0,u=["[","]"]),Ox(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(Ey(r)&&(s=" "+RegExp.prototype.toString.call(r)),Bx(r)&&(s=" "+Date.prototype.toUTCString.call(r)),ky(r)&&(s=" "+S8(r)),i.length===0&&(!f||r.length==0))return u[0]+s+u[1];if(t<0)return Ey(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return f?v=x5e(e,r,t,o,i):v=i.map(function(d){return k8(e,r,t,o,d,f)}),e.seen.pop(),_5e(v,s,u)}function b5e(e,r){if(oh(r))return e.stylize("undefined","undefined");if(Gx(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(Uj(r))return e.stylize(""+r,"number");if(C8(r))return e.stylize(""+r,"boolean");if(zx(r))return e.stylize("null","null")}function S8(e){return"["+Error.prototype.toString.call(e)+"]"}function x5e(e,r,t,a,n){for(var i=[],o=0,l=r.length;o24?(isFinite(y)&&(clearTimeout(pi),pi=setTimeout(Ao,y)),Io=0):(Io=1,rf(Ao))}e.timer.flush=function(){Dl(),Ju()};function Dl(){for(var h=Date.now(),y=An;y;)h>=y.t&&y.c(h-y.t)&&(y.c=null),y=y.n;return h}function Ju(){for(var h,y=An,w=1/0;y;)y.c?(y.t=0;--q)Me.push(L[ne[me[q]][2]]);for(q=+je;q1&&Ta(h[w[C-2]],h[w[C-1]],h[L])<=0;)--C;w[C++]=L}return w.slice(0,C)}function $p(h,y){return h[0]-y[0]||h[1]-y[1]}e.geom.polygon=function(h){return Ae(h,$u),h};var $u=e.geom.polygon.prototype=[];$u.area=function(){for(var h=-1,y=this.length,w,C=this[y-1],L=0;++hIe)q=q.L;else if(G=y-qv(q,w),G>Ie){if(!q.R){C=q;break}q=q.R}else{D>-Ie?(C=q.P,L=q):G>-Ie?(C=q,L=q.N):C=L=q;break}var j=Qu(h);if(mi.insert(C,j),!(!C&&!L)){if(C===L){of(C),L=Qu(C.site),mi.insert(j,L),j.edge=L.edge=Jf(C.site,j.site),Bi(C),Bi(L);return}if(!L){j.edge=Jf(C.site,j.site);return}of(C),of(L);var ne=C.site,ie=ne.x,me=ne.y,ye=h.x-ie,je=h.y-me,Ke=L.site,Me=Ke.x-ie,Re=Ke.y-me,Ue=2*(ye*Re-je*Me),er=ye*ye+je*je,tr=Me*Me+Re*Re,Le={x:(Re*er-je*tr)/Ue+ie,y:(ye*tr-Me*er)/Ue+me};Rl(L.edge,ne,Ke,Le),j.edge=Jf(ne,h,null,Le),L.edge=Jf(h,Ke,null,Le),Bi(C),Bi(L)}}function Ku(h,y){var w=h.site,C=w.x,L=w.y,D=L-y;if(!D)return C;var G=h.P;if(!G)return-1/0;w=G.site;var q=w.x,j=w.y,ne=j-y;if(!ne)return q;var ie=q-C,me=1/D-1/ne,ye=ie/ne;return me?(-ye+Math.sqrt(ye*ye-2*me*(ie*ie/(-2*ne)-j+ne/2+L-D/2)))/me+C:(C+q)/2}function qv(h,y){var w=h.N;if(w)return Ku(w,y);var C=h.site;return C.y===y?C.x:1/0}function ec(h){this.site=h,this.edges=[]}ec.prototype.prepare=function(){for(var h=this.edges,y=h.length,w;y--;)w=h[y].edge,(!w.b||!w.a)&&h.splice(y,1);return h.sort(nf),h.length};function Mo(h){for(var y=h[0][0],w=h[1][0],C=h[0][1],L=h[1][1],D,G,q,j,ne=To,ie=ne.length,me,ye,je,Ke,Me,Re;ie--;)if(me=ne[ie],!(!me||!me.prepare()))for(je=me.edges,Ke=je.length,ye=0;yeIe||b(j-G)>Ie)&&(je.splice(ye,0,new rc(e1(me.site,Re,b(q-y)Ie?{x:y,y:b(D-y)Ie?{x:b(G-L)Ie?{x:w,y:b(D-w)Ie?{x:b(G-C)=-yr)){var ye=j*j+ne*ne,je=ie*ie+Re*Re,Ke=(Re*ye-ne*je)/me,Me=(j*je-ie*ye)/me,Re=Me+q,Ue=af.pop()||new Xf;Ue.arc=h,Ue.site=L,Ue.x=Ke+G,Ue.y=Re+Math.sqrt(Ke*Ke+Me*Me),Ue.cy=Re,h.circle=Ue;for(var er=null,tr=ll._;tr;)if(Ue.y0)){if(Me/=je,je<0){if(Me0){if(Me>ye)return;Me>me&&(me=Me)}if(Me=w-q,!(!je&&Me<0)){if(Me/=je,je<0){if(Me>ye)return;Me>me&&(me=Me)}else if(je>0){if(Me0)){if(Me/=Ke,Ke<0){if(Me0){if(Me>ye)return;Me>me&&(me=Me)}if(Me=C-j,!(!Ke&&Me<0)){if(Me/=Ke,Ke<0){if(Me>ye)return;Me>me&&(me=Me)}else if(Ke>0){if(Me0&&(L.a={x:q+me*je,y:j+me*Ke}),ye<1&&(L.b={x:q+ye*je,y:j+ye*Ke}),L}}}}}}function Kp(h){for(var y=Go,w=Qp(h[0][0],h[0][1],h[1][0],h[1][1]),C=y.length,L;C--;)L=y[C],(!Zf(L,h)||!w(L)||b(L.a.x-L.b.x)=D)return;if(ie>ye){if(!C)C={x:Ke,y:G};else if(C.y>=q)return;w={x:Ke,y:q}}else{if(!C)C={x:Ke,y:q};else if(C.y1)if(ie>ye){if(!C)C={x:(G-Ue)/Re,y:G};else if(C.y>=q)return;w={x:(q-Ue)/Re,y:q}}else{if(!C)C={x:(q-Ue)/Re,y:q};else if(C.y=D)return;w={x:D,y:Re*D+Ue}}else{if(!C)C={x:D,y:Re*D+Ue};else if(C.x=ie&&Ue.x<=ye&&Ue.y>=me&&Ue.y<=je?[[ie,je],[ye,je],[ye,me],[ie,me]]:[];er.point=j[Me]}),ne}function q(j){return j.map(function(ne,ie){return{x:Math.round(C(ne,ie)/Ie)*Ie,y:Math.round(L(ne,ie)/Ie)*Ie,i:ie}})}return G.links=function(j){return fl(q(j)).edges.filter(function(ne){return ne.l&&ne.r}).map(function(ne){return{source:j[ne.l.i],target:j[ne.r.i]}})},G.triangles=function(j){var ne=[];return fl(q(j)).cells.forEach(function(ie,me){for(var ye=ie.site,je=ie.edges.sort(nf),Ke=-1,Me=je.length,Re,Ue,er=je[Me-1].edge,tr=er.l===ye?er.r:er.l;++Ketr&&(tr=ie.x),ie.y>Le&&(Le=ie.y),je.push(ie.x),Ke.push(ie.y);else for(Me=0;Metr&&(tr=Dr),zr>Le&&(Le=zr),je.push(Dr),Ke.push(zr)}var tt=tr-Ue,yt=Le-er;tt>yt?Le=er+tt:tr=Ue+yt;function kt(Ft,Ot,da,xn,Da,ht,Yt,jt){if(!(isNaN(da)||isNaN(xn)))if(Ft.leaf){var ca=Ft.x,Xa=Ft.y;if(ca!=null)if(b(ca-da)+b(Xa-xn)<.01)Ct(Ft,Ot,da,xn,Da,ht,Yt,jt);else{var Cn=Ft.point;Ft.x=Ft.y=Ft.point=null,Ct(Ft,Cn,ca,Xa,Da,ht,Yt,jt),Ct(Ft,Ot,da,xn,Da,ht,Yt,jt)}else Ft.x=da,Ft.y=xn,Ft.point=Ot}else Ct(Ft,Ot,da,xn,Da,ht,Yt,jt)}function Ct(Ft,Ot,da,xn,Da,ht,Yt,jt){var ca=(Da+Yt)*.5,Xa=(ht+jt)*.5,Cn=da>=ca,Jn=xn>=Xa,$n=Jn<<1|Cn;Ft.leaf=!1,Ft=Ft.nodes[$n]||(Ft.nodes[$n]=kh()),Cn?Da=ca:Yt=ca,Jn?ht=Xa:jt=Xa,kt(Ft,Ot,da,xn,Da,ht,Yt,jt)}var Vt=kh();if(Vt.add=function(Ft){kt(Vt,Ft,+me(Ft,++Me),+ye(Ft,Me),Ue,er,tr,Le)},Vt.visit=function(Ft){$f(Ft,Vt,Ue,er,tr,Le)},Vt.find=function(Ft){return Pv(Vt,Ft[0],Ft[1],Ue,er,tr,Le)},Me=-1,y==null){for(;++MeD||ye>G||je=Dr,yt=w>=zr,kt=yt<<1|tt,Ct=kt+4;ktw&&(D=y.slice(w,D),q[G]?q[G]+=D:q[++G]=D),(C=C[0])===(L=L[0])?q[G]?q[G]+=L:q[++G]=L:(q[++G]=null,j.push({i:G,x:Ei(C,L)})),w=Qf.lastIndex;return w=0&&!(C=e.interpolators[w](h,y)););return C}e.interpolators=[function(h,y){var w=typeof y;return(w==="string"?Pn.has(y.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(y)?So:Tn:y instanceof hn?So:Array.isArray(y)?sf:w==="object"&&isNaN(y)?Ch:Ei)(h,y)}],e.interpolateArray=sf;function sf(h,y){var w=[],C=[],L=h.length,D=y.length,G=Math.min(h.length,y.length),q;for(q=0;q=0?h.slice(0,y):h,C=y>=0?h.slice(y+1):"in";return w=Nv.get(w)||ac,C=Ov.get(C)||le,i1(C(w.apply(null,r.call(arguments,1))))};function i1(h){return function(y){return y<=0?0:y>=1?1:h(y)}}function so(h){return function(y){return 1-h(1-y)}}function _a(h){return function(y){return .5*(y<.5?h(2*y):2-h(2-2*y))}}function Iv(h){return h*h}function Bv(h){return h*h*h}function Ji(h){if(h<=0)return 0;if(h>=1)return 1;var y=h*h,w=y*h;return 4*(h<.5?w:3*(h-y)+w-.75)}function zv(h){return function(y){return Math.pow(y,h)}}function Gv(h){return 1-Math.cos(h*gt)}function o1(h){return Math.pow(2,10*(h-1))}function l1(h){return 1-Math.sqrt(1-h*h)}function s1(h,y){var w;return arguments.length<2&&(y=.45),arguments.length?w=y/xt*Math.asin(1/h):(h=1,w=y/4),function(C){return 1+h*Math.pow(2,-10*C)*Math.sin((C-w)*xt/y)}}function f1(h){return h||(h=1.70158),function(y){return y*y*((h+1)*y-h)}}function Kf(h){return h<1/2.75?7.5625*h*h:h<2/2.75?7.5625*(h-=1.5/2.75)*h+.75:h<2.5/2.75?7.5625*(h-=2.25/2.75)*h+.9375:7.5625*(h-=2.625/2.75)*h+.984375}e.interpolateHcl=Uv;function Uv(h,y){h=e.hcl(h),y=e.hcl(y);var w=h.h,C=h.c,L=h.l,D=y.h-w,G=y.c-C,q=y.l-L;return isNaN(G)&&(G=0,C=isNaN(C)?y.c:C),isNaN(D)?(D=0,w=isNaN(w)?y.h:w):D>180?D-=360:D<-180&&(D+=360),function(j){return ji(w+D*j,C+G*j,L+q*j)+""}}e.interpolateHsl=u1;function u1(h,y){h=e.hsl(h),y=e.hsl(y);var w=h.h,C=h.s,L=h.l,D=y.h-w,G=y.s-C,q=y.l-L;return isNaN(G)&&(G=0,C=isNaN(C)?y.s:C),isNaN(D)?(D=0,w=isNaN(w)?y.h:w):D>180?D-=360:D<-180&&(D+=360),function(j){return Ga(w+D*j,C+G*j,L+q*j)+""}}e.interpolateLab=Hv;function Hv(h,y){h=e.lab(h),y=e.lab(y);var w=h.l,C=h.a,L=h.b,D=y.l-w,G=y.a-C,q=y.b-L;return function(j){return Zu(w+D*j,C+G*j,L+q*j)+""}}e.interpolateRound=nc;function nc(h,y){return y-=h,function(w){return Math.round(h+y*w)}}e.transform=function(h){var y=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(w){if(w!=null){y.setAttribute("transform",w);var C=y.transform.baseVal.consolidate()}return new Lh(C?C.matrix:ps)})(h)};function Lh(h){var y=[h.a,h.b],w=[h.c,h.d],C=Dh(y),L=ql(y,w),D=Dh(ki(w,y,-L))||0;y[0]*w[1]180?y+=360:y-h>180&&(h+=360),C.push({i:w.push(Pl(w)+"rotate(",null,")")-2,x:Ei(h,y)})):y&&w.push(Pl(w)+"rotate("+y+")")}function Wv(h,y,w,C){h!==y?C.push({i:w.push(Pl(w)+"skewX(",null,")")-2,x:Ei(h,y)}):y&&w.push(Pl(w)+"skewX("+y+")")}function jv(h,y,w,C){if(h[0]!==y[0]||h[1]!==y[1]){var L=w.push(Pl(w)+"scale(",null,",",null,")");C.push({i:L-4,x:Ei(h[0],y[0])},{i:L-2,x:Ei(h[1],y[1])})}else(y[0]!==1||y[1]!==1)&&w.push(Pl(w)+"scale("+y+")")}function ic(h,y){var w=[],C=[];return h=e.transform(h),y=e.transform(y),Vv(h.translate,y.translate,w,C),Yv(h.rotate,y.rotate,w,C),Wv(h.skew,y.skew,w,C),jv(h.scale,y.scale,w,C),h=y=null,function(L){for(var D=-1,G=C.length,q;++D0?D=Le:(w.c=null,w.t=NaN,w=null,y.end({type:"end",alpha:D=0})):Le>0&&(y.start({type:"start",alpha:D=Le}),w=Bo(h.tick)),h):D},h.start=function(){var Le,Dr=je.length,zr=Ke.length,tt=C[0],yt=C[1],kt,Ct;for(Le=0;Le=0;)D.push(ie=ne[j]),ie.parent=q,ie.depth=q.depth+1;w&&(q.value=0),q.children=ne}else w&&(q.value=+w.call(C,q,q.depth)||0),delete q.children;return Uo(L,function(me){var ye,je;h&&(ye=me.children)&&ye.sort(h),w&&(je=me.parent)&&(je.value+=me.value)}),G}return C.sort=function(L){return arguments.length?(h=L,C):h},C.children=function(L){return arguments.length?(y=L,C):y},C.value=function(L){return arguments.length?(w=L,C):w},C.revalue=function(L){return w&&(ru(L,function(D){D.children&&(D.value=0)}),Uo(L,function(D){var G;D.children||(D.value=+w.call(C,D,D.depth)||0),(G=D.parent)&&(G.value+=D.value)})),L},C};function ms(h,y){return e.rebind(h,y,"sort","children","value"),h.nodes=h,h.links=p1,h}function ru(h,y){for(var w=[h];(h=w.pop())!=null;)if(y(h),(L=h.children)&&(C=L.length))for(var C,L;--C>=0;)w.push(L[C])}function Uo(h,y){for(var w=[h],C=[];(h=w.pop())!=null;)if(C.push(h),(G=h.children)&&(D=G.length))for(var L=-1,D,G;++LL&&(L=q),C.push(q)}for(G=0;GC&&(w=y,C=L);return w}function g1(h){return h.reduce(b1,0)}function b1(h,y){return h+y[1]}e.layout.histogram=function(){var h=!0,y=Number,w=_1,C=x1;function L(D,ye){for(var q=[],j=D.map(y,this),ne=w.call(this,j,ye),ie=C.call(this,ne,j,ye),me,ye=-1,je=j.length,Ke=ie.length-1,Me=h?1:1/je,Re;++ye0)for(ye=-1;++ye=ne[0]&&Re<=ne[1]&&(me=q[e.bisect(ie,Re,1,Ke)-1],me.y+=Me,me.push(D[ye]));return q}return L.value=function(D){return arguments.length?(y=D,L):y},L.range=function(D){return arguments.length?(w=ra(D),L):w},L.bins=function(D){return arguments.length?(C=typeof D=="number"?function(G){return Fh(G,D)}:ra(D),L):C},L.frequency=function(D){return arguments.length?(h=!!D,L):h},L};function x1(h,y){return Fh(h,Math.ceil(Math.log(y.length)/Math.LN2+1))}function Fh(h,y){for(var w=-1,C=+h[0],L=(h[1]-C)/y,D=[];++w<=y;)D[w]=L*w+C;return D}function _1(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(tu),y=0,w=[1,1],C;function L(D,G){var q=h.call(this,D,G),j=q[0],ne=w[0],ie=w[1],me=C==null?Math.sqrt:typeof C=="function"?C:function(){return C};if(j.x=j.y=0,Uo(j,function(je){je.r=+me(je.value)}),Uo(j,qh),y){var ye=y*(C?1:Math.max(2*j.r/ne,2*j.r/ie))/2;Uo(j,function(je){je.r+=ye}),Uo(j,qh),Uo(j,function(je){je.r-=ye})}return Ph(j,ne/2,ie/2,C?1:1/Math.max(2*j.r/ne,2*j.r/ie)),q}return L.size=function(D){return arguments.length?(w=D,L):w},L.radius=function(D){return arguments.length?(C=D==null||typeof D=="function"?D:+D,L):C},L.padding=function(D){return arguments.length?(y=+D,L):y},ms(L,h)};function tu(h,y){return h.value-y.value}function n0(h,y){var w=h._pack_next;h._pack_next=y,y._pack_prev=h,y._pack_next=w,w._pack_prev=y}function lc(h,y){h._pack_next=y,y._pack_prev=h}function Rh(h,y){var w=y.x-h.x,C=y.y-h.y,L=h.r+y.r;return .999*L*L>w*w+C*C}function qh(h){if(!(y=h.children)||!(ye=y.length))return;var y,w=1/0,C=-1/0,L=1/0,D=-1/0,G,q,j,ne,ie,me,ye;function je(Le){w=Math.min(Le.x-Le.r,w),C=Math.max(Le.x+Le.r,C),L=Math.min(Le.y-Le.r,L),D=Math.max(Le.y+Le.r,D)}if(y.forEach(w1),G=y[0],G.x=-G.r,G.y=0,je(G),ye>1&&(q=y[1],q.x=q.r,q.y=0,je(q),ye>2))for(j=y[2],wg(G,q,j),je(j),n0(G,j),G._pack_prev=j,n0(j,q),q=G._pack_next,ne=3;neRe.x&&(Re=Dr),Dr.depth>Ue.depth&&(Ue=Dr)});var er=y(Me,Re)/2-Me.x,tr=w[0]/(Re.x+y(Re,Me)/2+er),Le=w[1]/(Ue.depth||1);ru(je,function(Dr){Dr.x=(Dr.x+er)*tr,Dr.y=Dr.depth*Le})}return ye}function D(ie){for(var me={A:null,children:[ie]},ye=[me],je;(je=ye.pop())!=null;)for(var Ke=je.children,Me,Re=0,Ue=Ke.length;Re0&&(S1(i0(Me,ie,ye),ie,Dr),Ue+=Dr,er+=Dr),tr+=Me.m,Ue+=je.m,Le+=Re.m,er+=Ke.m;Me&&!M1(Ke)&&(Ke.t=Me,Ke.m+=tr-er),je&&!T1(Re)&&(Re.t=je,Re.m+=Ue-Le,ye=ie)}return ye}function ne(ie){ie.x*=w[0],ie.y=ie.depth*w[1]}return L.separation=function(ie){return arguments.length?(y=ie,L):y},L.size=function(ie){return arguments.length?(C=(w=ie)==null?ne:null,L):C?null:w},L.nodeSize=function(ie){return arguments.length?(C=(w=ie)==null?null:ne,L):C?w:null},ms(L,h)};function Nh(h,y){return h.parent==y.parent?1:2}function T1(h){var y=h.children;return y.length?y[0]:h.t}function M1(h){var y=h.children,w;return(w=y.length)?y[w-1]:h.t}function S1(h,y,w){var C=w/(y.i-h.i);y.c-=C,y.s+=w,h.c+=C,y.z+=w,y.m+=w}function au(h){for(var y=0,w=0,C=h.children,L=C.length,D;--L>=0;)D=C[L],D.z+=y,D.m+=y,y+=D.s+(w+=D.c)}function i0(h,y,w){return h.a.parent===y.parent?h.a:w}e.layout.cluster=function(){var h=e.layout.hierarchy().sort(null).value(null),y=Nh,w=[1,1],C=!1;function L(D,G){var q=h.call(this,D,G),j=q[0],ne,ie=0;Uo(j,function(Me){var Re=Me.children;Re&&Re.length?(Me.x=o0(Re),Me.y=Bn(Re)):(Me.x=ne?ie+=y(Me,ne):0,Me.y=0,ne=Me)});var me=Oh(j),ye=Ih(j),je=me.x-y(me,ye)/2,Ke=ye.x+y(ye,me)/2;return Uo(j,C?function(Me){Me.x=(Me.x-j.x)*w[0],Me.y=(j.y-Me.y)*w[1]}:function(Me){Me.x=(Me.x-je)/(Ke-je)*w[0],Me.y=(1-(j.y?Me.y/j.y:1))*w[1]}),q}return L.separation=function(D){return arguments.length?(y=D,L):y},L.size=function(D){return arguments.length?(C=(w=D)==null,L):C?null:w},L.nodeSize=function(D){return arguments.length?(C=(w=D)!=null,L):C?w:null},ms(L,h)};function Bn(h){return 1+e.max(h,function(y){return y.y})}function o0(h){return h.reduce(function(y,w){return y+w.x},0)/h.length}function Oh(h){var y=h.children;return y&&y.length?Oh(y[0]):h}function Ih(h){var y=h.children,w;return y&&(w=y.length)?Ih(y[w-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),y=Math.round,w=[1,1],C=null,L=l0,D=!1,G,q="squarify",j=.5*(1+Math.sqrt(5));function ne(Me,Re){for(var Ue=-1,er=Me.length,tr,Le;++Ue0;)er.push(Le=tr[yt-1]),er.area+=Le.area,q!=="squarify"||(zr=ye(er,tt))<=Dr?(tr.pop(),Dr=zr):(er.area-=er.pop().area,je(er,tt,Ue,!1),tt=Math.min(Ue.dx,Ue.dy),er.length=er.area=0,Dr=1/0);er.length&&(je(er,tt,Ue,!0),er.length=er.area=0),Re.forEach(ie)}}function me(Me){var Re=Me.children;if(Re&&Re.length){var Ue=L(Me),er=Re.slice(),tr,Le=[];for(ne(er,Ue.dx*Ue.dy/Me.value),Le.area=0;tr=er.pop();)Le.push(tr),Le.area+=tr.area,tr.z!=null&&(je(Le,tr.z?Ue.dx:Ue.dy,Ue,!er.length),Le.length=Le.area=0);Re.forEach(me)}}function ye(Me,Re){for(var Ue=Me.area,er,tr=0,Le=1/0,Dr=-1,zr=Me.length;++Drtr&&(tr=er));return Ue*=Ue,Re*=Re,Ue?Math.max(Re*tr*j/Ue,Ue/(Re*Le*j)):1/0}function je(Me,Re,Ue,er){var tr=-1,Le=Me.length,Dr=Ue.x,zr=Ue.y,tt=Re?y(Me.area/Re):0,yt;if(Re==Ue.dx){for((er||tt>Ue.dy)&&(tt=Ue.dy);++trUe.dx)&&(tt=Ue.dx);++tr1);return h+y*C*Math.sqrt(-2*Math.log(D)/D)}},logNormal:function(){var h=e.random.normal.apply(e,arguments);return function(){return Math.exp(h())}},bates:function(h){var y=e.random.irwinHall(h);return function(){return y()/h}},irwinHall:function(h){return function(){for(var y=0,w=0;w2?Co:E1,ne=C?Zv:Xv;return L=j(h,y,ne,w),D=j(y,h,ne,ul),q}function q(j){return L(j)}return q.invert=function(j){return D(j)},q.domain=function(j){return arguments.length?(h=j.map(Number),G()):h},q.range=function(j){return arguments.length?(y=j,G()):y},q.rangeRound=function(j){return q.range(j).interpolate(nc)},q.clamp=function(j){return arguments.length?(C=j,G()):C},q.interpolate=function(j){return arguments.length?(w=j,G()):w},q.ticks=function(j){return xs(h,j)},q.tickFormat=function(j,ne){return d3_scale_linearTickFormat(h,j,ne)},q.nice=function(j){return uc(h,j),G()},q.copy=function(){return zh(h,y,w,C)},G()}function fo(h,y){return e.rebind(h,y,"range","rangeRound","interpolate","clamp")}function uc(h,y){return cl(h,wa($i(h,y)[2])),cl(h,wa($i(h,y)[2])),h}function $i(h,y){y==null&&(y=10);var w=sc(h),C=w[1]-w[0],L=Math.pow(10,Math.floor(Math.log(C/y)/Math.LN10)),D=y/C*L;return D<=.15?L*=10:D<=.35?L*=5:D<=.75&&(L*=2),w[0]=Math.ceil(w[0]/L)*L,w[1]=Math.floor(w[1]/L)*L+L*.5,w[2]=L,w}function xs(h,y){return e.range.apply(e,$i(h,y))}var nu={s:1,g:1,p:1,r:1,e:1};function uf(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function cc(h,y){var w=uf(y[2]);return h in nu?Math.abs(w-uf(Math.max(b(y[0]),b(y[1]))))+ +(h!=="e"):w-(h==="%")*2}e.scale.log=function(){return cf(e.scale.linear().domain([0,1]),10,!0,[1,10])};function cf(h,y,w,C){function L(q){return(w?Math.log(q<0?0:q):-Math.log(q>0?0:-q))/Math.log(y)}function D(q){return w?Math.pow(y,q):-Math.pow(y,-q)}function G(q){return h(L(q))}return G.invert=function(q){return D(h.invert(q))},G.domain=function(q){return arguments.length?(w=q[0]>=0,h.domain((C=q.map(Number)).map(L)),G):C},G.base=function(q){return arguments.length?(y=+q,h.domain(C.map(L)),G):y},G.nice=function(){var q=cl(C.map(L),w?Math:_s);return h.domain(q),C=q.map(D),G},G.ticks=function(){var q=sc(C),j=[],ne=q[0],ie=q[1],me=Math.floor(L(ne)),ye=Math.ceil(L(ie)),je=y%1?2:y;if(isFinite(ye-me)){if(w){for(;me0;Ke--)j.push(D(me)*Ke);for(me=0;j[me]ie;ye--);j=j.slice(me,ye)}return j},G.copy=function(){return cf(h.copy(),y,w,C)},fo(G,h)}var _s={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return vc(e.scale.linear(),1,[0,1])};function vc(h,y,w){var C=vf(y),L=vf(1/y);function D(G){return h(C(G))}return D.invert=function(G){return L(h.invert(G))},D.domain=function(G){return arguments.length?(h.domain((w=G.map(Number)).map(C)),D):w},D.ticks=function(G){return xs(w,G)},D.tickFormat=function(G,q){return d3_scale_linearTickFormat(w,G,q)},D.nice=function(G){return D.domain(uc(w,G))},D.exponent=function(G){return arguments.length?(C=vf(y=G),L=vf(1/y),h.domain(w.map(C)),D):y},D.copy=function(){return vc(h.copy(),y,w)},fo(D,h)}function vf(h){return function(y){return y<0?-Math.pow(-y,h):Math.pow(y,h)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return hc([],{t:"range",a:[[]]})};function hc(h,y){var w,C,L;function D(q){return C[((w.get(q)||(y.t==="range"?w.set(q,h.push(q)):NaN))-1)%C.length]}function G(q,j){return e.range(h.length).map(function(ne){return q+j*ne})}return D.domain=function(q){if(!arguments.length)return h;h=[],w=new x;for(var j=-1,ne=q.length,ie;++j0?w[D-1]:h[0],Dye?0:1;if(ie=At)return j(ie,Ke)+(ne?j(ne,1-Ke):"")+"Z";var Me,Re,Ue,er,tr=0,Le=0,Dr,zr,tt,yt,kt,Ct,Vt,Ft,Ot=[];if((er=(+G.apply(this,arguments)||0)/2)&&(Ue=C===hf?Math.sqrt(ne*ne+ie*ie):+C.apply(this,arguments),Ke||(Le*=-1),ie&&(Le=bn(Ue/ie*Math.sin(er))),ne&&(tr=bn(Ue/ne*Math.sin(er)))),ie){Dr=ie*Math.cos(me+Le),zr=ie*Math.sin(me+Le),tt=ie*Math.cos(ye-Le),yt=ie*Math.sin(ye-Le);var da=Math.abs(ye-me-2*Le)<=cr?0:1;if(Le&&pf(Dr,zr,tt,yt)===Ke^da){var xn=(me+ye)/2;Dr=ie*Math.cos(xn),zr=ie*Math.sin(xn),tt=yt=null}}else Dr=zr=0;if(ne){kt=ne*Math.cos(ye-tr),Ct=ne*Math.sin(ye-tr),Vt=ne*Math.cos(me+tr),Ft=ne*Math.sin(me+tr);var Da=Math.abs(me-ye+2*tr)<=cr?0:1;if(tr&&pf(kt,Ct,Vt,Ft)===1-Ke^Da){var ht=(me+ye)/2;kt=ne*Math.cos(ht),Ct=ne*Math.sin(ht),Vt=Ft=null}}else kt=Ct=0;if(je>Ie&&(Me=Math.min(Math.abs(ie-ne)/2,+w.apply(this,arguments)))>.001){Re=ne0?0:1}function mf(h,y,w,C,L){var D=h[0]-y[0],G=h[1]-y[1],q=(L?C:-C)/Math.sqrt(D*D+G*G),j=q*G,ne=-q*D,ie=h[0]+j,me=h[1]+ne,ye=y[0]+j,je=y[1]+ne,Ke=(ie+ye)/2,Me=(me+je)/2,Re=ye-ie,Ue=je-me,er=Re*Re+Ue*Ue,tr=w-C,Le=ie*je-ye*me,Dr=(Ue<0?-1:1)*Math.sqrt(Math.max(0,tr*tr*er-Le*Le)),zr=(Le*Ue-Re*Dr)/er,tt=(-Le*Re-Ue*Dr)/er,yt=(Le*Ue+Re*Dr)/er,kt=(-Le*Re+Ue*Dr)/er,Ct=zr-Ke,Vt=tt-Me,Ft=yt-Ke,Ot=kt-Me;return Ct*Ct+Vt*Vt>Ft*Ft+Ot*Ot&&(zr=yt,tt=kt),[[zr-j,tt-ne],[zr*w/tr,tt*w/tr]]}function yf(){return!0}function bc(h){var y=zo,w=us,C=yf,L=Ci,D=L.key,G=.7;function q(j){var ne=[],ie=[],me=-1,ye=j.length,je,Ke=ra(y),Me=ra(w);function Re(){ne.push("M",L(h(ie),G))}for(;++me1?h.join("L"):h+"Z"}function gf(h){return h.join("L")+"Z"}function vl(h){for(var y=0,w=h.length,C=h[0],L=[C[0],",",C[1]];++y1&&L.push("H",C[0]),L.join("")}function cu(h){for(var y=0,w=h.length,C=h[0],L=[C[0],",",C[1]];++y1){q=y[1],D=h[j],j++,C+="C"+(L[0]+G[0])+","+(L[1]+G[1])+","+(D[0]-q[0])+","+(D[1]-q[1])+","+D[0]+","+D[1];for(var ne=2;ne9&&(D=w*3/Math.sqrt(D),G[q]=D*C,G[q+1]=D*L));for(q=-1;++q<=j;)D=(h[Math.min(j,q+1)][0]-h[Math.max(0,q-1)][0])/(6*(1+G[q]*G[q])),y.push([D||0,G[q]*D||0]);return y}function c0(h){return h.length<3?Ci(h):h[0]+Ho(h,C1(h))}e.svg.line.radial=function(){var h=bc(xc);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function xc(h){for(var y,w=-1,C=h.length,L,D;++wcr)+",1 "+me}function ne(ie,me,ye,je){return"Q 0,0 "+je}return D.radius=function(ie){return arguments.length?(w=ra(ie),D):w},D.source=function(ie){return arguments.length?(h=ra(ie),D):h},D.target=function(ie){return arguments.length?(y=ra(ie),D):y},D.startAngle=function(ie){return arguments.length?(C=ra(ie),D):C},D.endAngle=function(ie){return arguments.length?(L=ra(ie),D):L},D};function hu(h){return h.radius}e.svg.diagonal=function(){var h=Gh,y=vo,w=Uh;function C(L,D){var G=h.call(this,L,D),q=y.call(this,L,D),j=(G.y+q.y)/2,ne=[G,{x:G.x,y:j},{x:q.x,y:j},q];return ne=ne.map(w),"M"+ne[0]+"C"+ne[1]+" "+ne[2]+" "+ne[3]}return C.source=function(L){return arguments.length?(h=ra(L),C):h},C.target=function(L){return arguments.length?(y=ra(L),C):y},C.projection=function(L){return arguments.length?(w=L,C):w},C};function Uh(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),y=Uh,w=h.projection;return h.projection=function(C){return arguments.length?w(L1(y=C)):y},h};function L1(h){return function(){var y=h.apply(this,arguments),w=y[0],C=y[1]-gt;return[w*Math.cos(C),w*Math.sin(C)]}}e.svg.symbol=function(){var h=F1,y=D1;function w(C,L){return(Vh.get(h.call(this,C,L))||Hh)(y.call(this,C,L))}return w.type=function(C){return arguments.length?(h=ra(C),w):h},w.size=function(C){return arguments.length?(y=ra(C),w):y},w};function D1(){return 64}function F1(){return"circle"}function Hh(h){var y=Math.sqrt(h/cr);return"M0,"+y+"A"+y+","+y+" 0 1,1 0,"+-y+"A"+y+","+y+" 0 1,1 0,"+y+"Z"}var Vh=e.map({circle:Hh,cross:function(h){var y=Math.sqrt(h/5)/2;return"M"+-3*y+","+-y+"H"+-y+"V"+-3*y+"H"+y+"V"+-y+"H"+3*y+"V"+y+"H"+y+"V"+3*y+"H"+-y+"V"+y+"H"+-3*y+"Z"},diamond:function(h){var y=Math.sqrt(h/(2*Yh)),w=y*Yh;return"M0,"+-y+"L"+w+",0 0,"+y+" "+-w+",0Z"},square:function(h){var y=Math.sqrt(h)/2;return"M"+-y+","+-y+"L"+y+","+-y+" "+y+","+y+" "+-y+","+y+"Z"},"triangle-down":function(h){var y=Math.sqrt(h/wc),w=y*wc/2;return"M0,"+w+"L"+y+","+-w+" "+-y+","+-w+"Z"},"triangle-up":function(h){var y=Math.sqrt(h/wc),w=y*wc/2;return"M0,"+-w+"L"+y+","+w+" "+-y+","+w+"Z"}});e.svg.symbolTypes=Vh.keys();var wc=Math.sqrt(3),Yh=Math.tan(30*Nt);Qe.transition=function(h){for(var y=ml||++xf,w=pu(h),C=[],L,D,G=Ol||{time:Date.now(),ease:Ji,delay:0,duration:250},q=-1,j=this.length;++q0;)me[--er].call(h,Ue);if(Re>=1)return G.event&&G.event.end.call(h,h.__data__,y),--D.count?delete D[C]:delete h[w],1}G||(q=L.time,j=Bo(ye,0,q),G=D[C]={tween:new x,time:q,timer:j,delay:L.delay,duration:L.duration,ease:L.ease,index:y},L=null,++D.count)}e.svg.axis=function(){var h=e.scale.linear(),y=_f,w=6,C=6,L=3,D=[10],G=null,q;function j(ne){ne.each(function(){var ie=e.select(this),me=this.__chart__||h,ye=this.__chart__=h.copy(),je=G==null?ye.ticks?ye.ticks.apply(ye,D):ye.domain():G,Ke=q==null?ye.tickFormat?ye.tickFormat.apply(ye,D):le:q,Me=ie.selectAll(".tick").data(je,ye),Re=Me.enter().insert("g",".domain").attr("class","tick").style("opacity",Ie),Ue=e.transition(Me.exit()).style("opacity",Ie).remove(),er=e.transition(Me.order()).style("opacity",1),tr=Math.max(w,0)+L,Le,Dr=fc(ye),zr=ie.selectAll(".domain").data([0]),tt=(zr.enter().append("path").attr("class","domain"),e.transition(zr));Re.append("line"),Re.append("text");var yt=Re.select("line"),kt=er.select("line"),Ct=Me.select("text").text(Ke),Vt=Re.select("text"),Ft=er.select("text"),Ot=y==="top"||y==="left"?-1:1,da,xn,Da,ht;if(y==="bottom"||y==="top"?(Le=yu,da="x",Da="y",xn="x2",ht="y2",Ct.attr("dy",Ot<0?"0em":".71em").style("text-anchor","middle"),tt.attr("d","M"+Dr[0]+","+Ot*C+"V0H"+Dr[1]+"V"+Ot*C)):(Le=gu,da="y",Da="x",xn="y2",ht="x2",Ct.attr("dy",".32em").style("text-anchor",Ot<0?"end":"start"),tt.attr("d","M"+Ot*C+","+Dr[0]+"H0V"+Dr[1]+"H"+Ot*C)),yt.attr(ht,Ot*w),Vt.attr(Da,Ot*tr),kt.attr(xn,0).attr(ht,Ot*w),Ft.attr(da,0).attr(Da,Ot*tr),ye.rangeBand){var Yt=ye,jt=Yt.rangeBand()/2;me=ye=function(ca){return Yt(ca)+jt}}else me.rangeBand?me=ye:Ue.call(Le,ye,me);Re.call(Le,me,ye),er.call(Le,ye,ye)})}return j.scale=function(ne){return arguments.length?(h=ne,j):h},j.orient=function(ne){return arguments.length?(y=ne in mu?ne+"":_f,j):y},j.ticks=function(){return arguments.length?(D=t(arguments),j):D},j.tickValues=function(ne){return arguments.length?(G=ne,j):G},j.tickFormat=function(ne){return arguments.length?(q=ne,j):q},j.tickSize=function(ne){var ie=arguments.length;return ie?(w=+ne,C=+arguments[ie-1],j):w},j.innerTickSize=function(ne){return arguments.length?(w=+ne,j):w},j.outerTickSize=function(ne){return arguments.length?(C=+ne,j):C},j.tickPadding=function(ne){return arguments.length?(L=+ne,j):L},j.tickSubdivide=function(){return arguments.length&&j},j};var _f="bottom",mu={top:1,right:1,bottom:1,left:1};function yu(h,y,w){h.attr("transform",function(C){var L=y(C);return"translate("+(isFinite(L)?L:w(C))+",0)"})}function gu(h,y,w){h.attr("transform",function(C){var L=y(C);return"translate(0,"+(isFinite(L)?L:w(C))+")"})}e.svg.brush=function(){var h=Ee(ie,"brushstart","brush","brushend"),y=null,w=null,C=[0,0],L=[0,0],D,G,q=!0,j=!0,ne=Ts[0];function ie(Me){Me.each(function(){var Re=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Ke).on("touchstart.brush",Ke),Ue=Re.selectAll(".background").data([0]);Ue.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Re.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var er=Re.selectAll(".resize").data(ne,le);er.exit().remove(),er.enter().append("g").attr("class",function(zr){return"resize "+zr}).style("cursor",function(zr){return bu[zr]}).append("rect").attr("x",function(zr){return/[ew]$/.test(zr)?-3:null}).attr("y",function(zr){return/^[ns]/.test(zr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),er.style("display",ie.empty()?"none":null);var tr=e.transition(Re),Le=e.transition(Ue),Dr;y&&(Dr=fc(y),Le.attr("x",Dr[0]).attr("width",Dr[1]-Dr[0]),ye(tr)),w&&(Dr=fc(w),Le.attr("y",Dr[0]).attr("height",Dr[1]-Dr[0]),je(tr)),me(tr)})}ie.event=function(Me){Me.each(function(){var Re=h.of(this,arguments),Ue={x:C,y:L,i:D,j:G},er=this.__chart__||Ue;this.__chart__=Ue,ml?e.select(this).transition().each("start.brush",function(){D=er.i,G=er.j,C=er.x,L=er.y,Re({type:"brushstart"})}).tween("brush:brush",function(){var tr=sf(C,Ue.x),Le=sf(L,Ue.y);return D=G=null,function(Dr){C=Ue.x=tr(Dr),L=Ue.y=Le(Dr),Re({type:"brush",mode:"resize"})}}).each("end.brush",function(){D=Ue.i,G=Ue.j,Re({type:"brush",mode:"resize"}),Re({type:"brushend"})}):(Re({type:"brushstart"}),Re({type:"brush",mode:"resize"}),Re({type:"brushend"}))})};function me(Me){Me.selectAll(".resize").attr("transform",function(Re){return"translate("+C[+/e$/.test(Re)]+","+L[+/^s/.test(Re)]+")"})}function ye(Me){Me.select(".extent").attr("x",C[0]),Me.selectAll(".extent,.n>rect,.s>rect").attr("width",C[1]-C[0])}function je(Me){Me.select(".extent").attr("y",L[0]),Me.selectAll(".extent,.e>rect,.w>rect").attr("height",L[1]-L[0])}function Ke(){var Me=this,Re=e.select(e.event.target),Ue=h.of(Me,arguments),er=e.select(Me),tr=Re.datum(),Le=!/^(n|s)$/.test(tr)&&y,Dr=!/^(e|w)$/.test(tr)&&w,zr=Re.classed("extent"),tt=ot(Me),yt,kt=e.mouse(Me),Ct,Vt=e.select(i(Me)).on("keydown.brush",da).on("keyup.brush",xn);if(e.event.changedTouches?Vt.on("touchmove.brush",Da).on("touchend.brush",Yt):Vt.on("mousemove.brush",Da).on("mouseup.brush",Yt),er.interrupt().selectAll("*").interrupt(),zr)kt[0]=C[0]-kt[0],kt[1]=L[0]-kt[1];else if(tr){var Ft=+/w$/.test(tr),Ot=+/^n/.test(tr);Ct=[C[1-Ft]-kt[0],L[1-Ot]-kt[1]],kt[0]=C[Ft],kt[1]=L[Ot]}else e.event.altKey&&(yt=kt.slice());er.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Re.style("cursor")),Ue({type:"brushstart"}),Da();function da(){e.event.keyCode==32&&(zr||(yt=null,kt[0]-=C[1],kt[1]-=L[1],zr=2),De())}function xn(){e.event.keyCode==32&&zr==2&&(kt[0]+=C[1],kt[1]+=L[1],zr=0,De())}function Da(){var jt=e.mouse(Me),ca=!1;Ct&&(jt[0]+=Ct[0],jt[1]+=Ct[1]),zr||(e.event.altKey?(yt||(yt=[(C[0]+C[1])/2,(L[0]+L[1])/2]),kt[0]=C[+(jt[0]{(function(e,r){typeof Eg=="object"&&typeof xM!="undefined"?r(Eg):(e=e||self,r(e.d3=e.d3||{}))})(Eg,function(e){"use strict";var r=new Date,t=new Date;function a(Pe,sr,lt,Et){function wt(Fe){return Pe(Fe=arguments.length===0?new Date:new Date(+Fe)),Fe}return wt.floor=function(Fe){return Pe(Fe=new Date(+Fe)),Fe},wt.ceil=function(Fe){return Pe(Fe=new Date(Fe-1)),sr(Fe,1),Pe(Fe),Fe},wt.round=function(Fe){var hr=wt(Fe),Or=wt.ceil(Fe);return Fe-hr0))return at;do at.push(Yr=new Date(+Fe)),sr(Fe,Or),Pe(Fe);while(Yr=hr)for(;Pe(hr),!Fe(hr);)hr.setTime(hr-1)},function(hr,Or){if(hr>=hr)if(Or<0)for(;++Or<=0;)for(;sr(hr,-1),!Fe(hr););else for(;--Or>=0;)for(;sr(hr,1),!Fe(hr););})},lt&&(wt.count=function(Fe,hr){return r.setTime(+Fe),t.setTime(+hr),Pe(r),Pe(t),Math.floor(lt(r,t))},wt.every=function(Fe){return Fe=Math.floor(Fe),!isFinite(Fe)||!(Fe>0)?null:Fe>1?wt.filter(Et?function(hr){return Et(hr)%Fe===0}:function(hr){return wt.count(0,hr)%Fe===0}):wt}),wt}var n=a(function(){},function(Pe,sr){Pe.setTime(+Pe+sr)},function(Pe,sr){return sr-Pe});n.every=function(Pe){return Pe=Math.floor(Pe),!isFinite(Pe)||!(Pe>0)?null:Pe>1?a(function(sr){sr.setTime(Math.floor(sr/Pe)*Pe)},function(sr,lt){sr.setTime(+sr+lt*Pe)},function(sr,lt){return(lt-sr)/Pe}):n};var i=n.range,o=1e3,l=6e4,s=36e5,f=864e5,u=6048e5,c=a(function(Pe){Pe.setTime(Pe-Pe.getMilliseconds())},function(Pe,sr){Pe.setTime(+Pe+sr*o)},function(Pe,sr){return(sr-Pe)/o},function(Pe){return Pe.getUTCSeconds()}),v=c.range,d=a(function(Pe){Pe.setTime(Pe-Pe.getMilliseconds()-Pe.getSeconds()*o)},function(Pe,sr){Pe.setTime(+Pe+sr*l)},function(Pe,sr){return(sr-Pe)/l},function(Pe){return Pe.getMinutes()}),p=d.range,g=a(function(Pe){Pe.setTime(Pe-Pe.getMilliseconds()-Pe.getSeconds()*o-Pe.getMinutes()*l)},function(Pe,sr){Pe.setTime(+Pe+sr*s)},function(Pe,sr){return(sr-Pe)/s},function(Pe){return Pe.getHours()}),m=g.range,b=a(function(Pe){Pe.setHours(0,0,0,0)},function(Pe,sr){Pe.setDate(Pe.getDate()+sr)},function(Pe,sr){return(sr-Pe-(sr.getTimezoneOffset()-Pe.getTimezoneOffset())*l)/f},function(Pe){return Pe.getDate()-1}),A=b.range;function _(Pe){return a(function(sr){sr.setDate(sr.getDate()-(sr.getDay()+7-Pe)%7),sr.setHours(0,0,0,0)},function(sr,lt){sr.setDate(sr.getDate()+lt*7)},function(sr,lt){return(lt-sr-(lt.getTimezoneOffset()-sr.getTimezoneOffset())*l)/u})}var x=_(0),T=_(1),E=_(2),S=_(3),k=_(4),F=_(5),O=_(6),I=x.range,R=T.range,H=E.range,X=S.range,le=k.range,ae=F.range,$=O.range,Z=a(function(Pe){Pe.setDate(1),Pe.setHours(0,0,0,0)},function(Pe,sr){Pe.setMonth(Pe.getMonth()+sr)},function(Pe,sr){return sr.getMonth()-Pe.getMonth()+(sr.getFullYear()-Pe.getFullYear())*12},function(Pe){return Pe.getMonth()}),J=Z.range,oe=a(function(Pe){Pe.setMonth(0,1),Pe.setHours(0,0,0,0)},function(Pe,sr){Pe.setFullYear(Pe.getFullYear()+sr)},function(Pe,sr){return sr.getFullYear()-Pe.getFullYear()},function(Pe){return Pe.getFullYear()});oe.every=function(Pe){return!isFinite(Pe=Math.floor(Pe))||!(Pe>0)?null:a(function(sr){sr.setFullYear(Math.floor(sr.getFullYear()/Pe)*Pe),sr.setMonth(0,1),sr.setHours(0,0,0,0)},function(sr,lt){sr.setFullYear(sr.getFullYear()+lt*Pe)})};var ce=oe.range,De=a(function(Pe){Pe.setUTCSeconds(0,0)},function(Pe,sr){Pe.setTime(+Pe+sr*l)},function(Pe,sr){return(sr-Pe)/l},function(Pe){return Pe.getUTCMinutes()}),Oe=De.range,Ee=a(function(Pe){Pe.setUTCMinutes(0,0,0)},function(Pe,sr){Pe.setTime(+Pe+sr*s)},function(Pe,sr){return(sr-Pe)/s},function(Pe){return Pe.getUTCHours()}),Je=Ee.range,Ae=a(function(Pe){Pe.setUTCHours(0,0,0,0)},function(Pe,sr){Pe.setUTCDate(Pe.getUTCDate()+sr)},function(Pe,sr){return(sr-Pe)/f},function(Pe){return Pe.getUTCDate()-1}),or=Ae.range;function Ge(Pe){return a(function(sr){sr.setUTCDate(sr.getUTCDate()-(sr.getUTCDay()+7-Pe)%7),sr.setUTCHours(0,0,0,0)},function(sr,lt){sr.setUTCDate(sr.getUTCDate()+lt*7)},function(sr,lt){return(lt-sr)/u})}var He=Ge(0),Ve=Ge(1),Qe=Ge(2),ee=Ge(3),_e=Ge(4),re=Ge(5),Ze=Ge(6),vr=He.range,rr=Ve.range,Cr=Qe.range,Lr=ee.range,_r=_e.range,Pr=re.range,rt=Ze.range,Jr=a(function(Pe){Pe.setUTCDate(1),Pe.setUTCHours(0,0,0,0)},function(Pe,sr){Pe.setUTCMonth(Pe.getUTCMonth()+sr)},function(Pe,sr){return sr.getUTCMonth()-Pe.getUTCMonth()+(sr.getUTCFullYear()-Pe.getUTCFullYear())*12},function(Pe){return Pe.getUTCMonth()}),wr=Jr.range,Hr=a(function(Pe){Pe.setUTCMonth(0,1),Pe.setUTCHours(0,0,0,0)},function(Pe,sr){Pe.setUTCFullYear(Pe.getUTCFullYear()+sr)},function(Pe,sr){return sr.getUTCFullYear()-Pe.getUTCFullYear()},function(Pe){return Pe.getUTCFullYear()});Hr.every=function(Pe){return!isFinite(Pe=Math.floor(Pe))||!(Pe>0)?null:a(function(sr){sr.setUTCFullYear(Math.floor(sr.getUTCFullYear()/Pe)*Pe),sr.setUTCMonth(0,1),sr.setUTCHours(0,0,0,0)},function(sr,lt){sr.setUTCFullYear(sr.getUTCFullYear()+lt*Pe)})};var Vr=Hr.range;e.timeDay=b,e.timeDays=A,e.timeFriday=F,e.timeFridays=ae,e.timeHour=g,e.timeHours=m,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=T,e.timeMondays=R,e.timeMonth=Z,e.timeMonths=J,e.timeSaturday=O,e.timeSaturdays=$,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=x,e.timeSundays=I,e.timeThursday=k,e.timeThursdays=le,e.timeTuesday=E,e.timeTuesdays=H,e.timeWednesday=S,e.timeWednesdays=X,e.timeWeek=x,e.timeWeeks=I,e.timeYear=oe,e.timeYears=ce,e.utcDay=Ae,e.utcDays=or,e.utcFriday=re,e.utcFridays=Pr,e.utcHour=Ee,e.utcHours=Je,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=De,e.utcMinutes=Oe,e.utcMonday=Ve,e.utcMondays=rr,e.utcMonth=Jr,e.utcMonths=wr,e.utcSaturday=Ze,e.utcSaturdays=rt,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=He,e.utcSundays=vr,e.utcThursday=_e,e.utcThursdays=_r,e.utcTuesday=Qe,e.utcTuesdays=Cr,e.utcWednesday=ee,e.utcWednesdays=Lr,e.utcWeek=He,e.utcWeeks=vr,e.utcYear=Hr,e.utcYears=Vr,Object.defineProperty(e,"__esModule",{value:!0})})});var jh=P((kg,_M)=>{(function(e,r){typeof kg=="object"&&typeof _M!="undefined"?r(kg,y5()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(kg,function(e,r){"use strict";function t(Se){if(0<=Se.y&&Se.y<100){var Ie=new Date(-1,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L);return Ie.setFullYear(Se.y),Ie}return new Date(Se.y,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L)}function a(Se){if(0<=Se.y&&Se.y<100){var Ie=new Date(Date.UTC(-1,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L));return Ie.setUTCFullYear(Se.y),Ie}return new Date(Date.UTC(Se.y,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L))}function n(Se,Ie,yr){return{y:Se,m:Ie,d:yr,H:0,M:0,S:0,L:0}}function i(Se){var Ie=Se.dateTime,yr=Se.date,cr=Se.time,xt=Se.periods,At=Se.days,gt=Se.shortDays,Nt=Se.months,ta=Se.shortMonths,ka=v(xt),Ta=d(xt),Rn=v(At),bn=d(At),ja=v(gt),cn=d(gt),jn=v(Nt),vn=d(Nt),wn=v(ta),Mi=d(ta),Pt={a:ss,A:fs,b:kl,B:Zu,c:null,d:Z,e:Z,f:Oe,H:J,I:oe,j:ce,L:De,m:Ee,M:Je,p:Oo,q:Yf,Q:hr,s:Or,S:Ae,u:or,U:Ge,V:He,w:Ve,W:Qe,x:null,X:null,y:ee,Y:_e,Z:re,"%":Fe},Ca={a:Wf,A:Xi,b:hi,B:Ii,c:null,d:Ze,e:Ze,f:_r,H:vr,I:rr,j:Cr,L:Lr,m:Pr,M:rt,p:Cl,q:di,Q:hr,s:Or,S:Jr,u:wr,U:Hr,V:Vr,w:Pe,W:sr,x:null,X:null,y:lt,Y:Et,Z:wt,"%":Fe},ia={a:Ga,A:tn,b:Wi,B:ji,c:qn,d:k,e:k,f:X,H:O,I:O,j:F,L:H,m:S,M:I,p:Ba,q:E,Q:ae,s:$,S:R,u:g,U:m,V:b,w:p,W:A,x:Ra,X:Xn,y:x,Y:_,Z:T,"%":le};Pt.x=Va(yr,Pt),Pt.X=Va(cr,Pt),Pt.c=Va(Ie,Pt),Ca.x=Va(yr,Ca),Ca.X=Va(cr,Ca),Ca.c=Va(Ie,Ca);function Va(qt,$t){return function(ua){var _t=[],Zn=-1,Ua=0,Pn=qt.length,ra,wo,ol;for(ua instanceof Date||(ua=new Date(+ua));++Zn53)return null;"w"in _t||(_t.w=1),"Z"in _t?(Ua=a(n(_t.y,0,1)),Pn=Ua.getUTCDay(),Ua=Pn>4||Pn===0?r.utcMonday.ceil(Ua):r.utcMonday(Ua),Ua=r.utcDay.offset(Ua,(_t.V-1)*7),_t.y=Ua.getUTCFullYear(),_t.m=Ua.getUTCMonth(),_t.d=Ua.getUTCDate()+(_t.w+6)%7):(Ua=t(n(_t.y,0,1)),Pn=Ua.getDay(),Ua=Pn>4||Pn===0?r.timeMonday.ceil(Ua):r.timeMonday(Ua),Ua=r.timeDay.offset(Ua,(_t.V-1)*7),_t.y=Ua.getFullYear(),_t.m=Ua.getMonth(),_t.d=Ua.getDate()+(_t.w+6)%7)}else("W"in _t||"U"in _t)&&("w"in _t||(_t.w="u"in _t?_t.u%7:"W"in _t?1:0),Pn="Z"in _t?a(n(_t.y,0,1)).getUTCDay():t(n(_t.y,0,1)).getDay(),_t.m=0,_t.d="W"in _t?(_t.w+6)%7+_t.W*7-(Pn+5)%7:_t.w+_t.U*7-(Pn+6)%7);return"Z"in _t?(_t.H+=_t.Z/100|0,_t.M+=_t.Z%100,a(_t)):t(_t)}}function La(qt,$t,ua,_t){for(var Zn=0,Ua=$t.length,Pn=ua.length,ra,wo;Zn=Pn)return-1;if(ra=$t.charCodeAt(Zn++),ra===37){if(ra=$t.charAt(Zn++),wo=ia[ra in o?$t.charAt(Zn++):ra],!wo||(_t=wo(qt,ua,_t))<0)return-1}else if(ra!=ua.charCodeAt(_t++))return-1}return _t}function Ba(qt,$t,ua){var _t=ka.exec($t.slice(ua));return _t?(qt.p=Ta[_t[0].toLowerCase()],ua+_t[0].length):-1}function Ga(qt,$t,ua){var _t=ja.exec($t.slice(ua));return _t?(qt.w=cn[_t[0].toLowerCase()],ua+_t[0].length):-1}function tn(qt,$t,ua){var _t=Rn.exec($t.slice(ua));return _t?(qt.w=bn[_t[0].toLowerCase()],ua+_t[0].length):-1}function Wi(qt,$t,ua){var _t=wn.exec($t.slice(ua));return _t?(qt.m=Mi[_t[0].toLowerCase()],ua+_t[0].length):-1}function ji(qt,$t,ua){var _t=jn.exec($t.slice(ua));return _t?(qt.m=vn[_t[0].toLowerCase()],ua+_t[0].length):-1}function qn(qt,$t,ua){return La(qt,Ie,$t,ua)}function Ra(qt,$t,ua){return La(qt,yr,$t,ua)}function Xn(qt,$t,ua){return La(qt,cr,$t,ua)}function ss(qt){return gt[qt.getDay()]}function fs(qt){return At[qt.getDay()]}function kl(qt){return ta[qt.getMonth()]}function Zu(qt){return Nt[qt.getMonth()]}function Oo(qt){return xt[+(qt.getHours()>=12)]}function Yf(qt){return 1+~~(qt.getMonth()/3)}function Wf(qt){return gt[qt.getUTCDay()]}function Xi(qt){return At[qt.getUTCDay()]}function hi(qt){return ta[qt.getUTCMonth()]}function Ii(qt){return Nt[qt.getUTCMonth()]}function Cl(qt){return xt[+(qt.getUTCHours()>=12)]}function di(qt){return 1+~~(qt.getUTCMonth()/3)}return{format:function(qt){var $t=Va(qt+="",Pt);return $t.toString=function(){return qt},$t},parse:function(qt){var $t=hn(qt+="",!1);return $t.toString=function(){return qt},$t},utcFormat:function(qt){var $t=Va(qt+="",Ca);return $t.toString=function(){return qt},$t},utcParse:function(qt){var $t=hn(qt+="",!0);return $t.toString=function(){return qt},$t}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,f=/[\\^$*+?|[\]().{}]/g;function u(Se,Ie,yr){var cr=Se<0?"-":"",xt=(cr?-Se:Se)+"",At=xt.length;return cr+(At68?1900:2e3),yr+cr[0].length):-1}function T(Se,Ie,yr){var cr=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ie.slice(yr,yr+6));return cr?(Se.Z=cr[1]?0:-(cr[2]+(cr[3]||"00")),yr+cr[0].length):-1}function E(Se,Ie,yr){var cr=l.exec(Ie.slice(yr,yr+1));return cr?(Se.q=cr[0]*3-3,yr+cr[0].length):-1}function S(Se,Ie,yr){var cr=l.exec(Ie.slice(yr,yr+2));return cr?(Se.m=cr[0]-1,yr+cr[0].length):-1}function k(Se,Ie,yr){var cr=l.exec(Ie.slice(yr,yr+2));return cr?(Se.d=+cr[0],yr+cr[0].length):-1}function F(Se,Ie,yr){var cr=l.exec(Ie.slice(yr,yr+3));return cr?(Se.m=0,Se.d=+cr[0],yr+cr[0].length):-1}function O(Se,Ie,yr){var cr=l.exec(Ie.slice(yr,yr+2));return cr?(Se.H=+cr[0],yr+cr[0].length):-1}function I(Se,Ie,yr){var cr=l.exec(Ie.slice(yr,yr+2));return cr?(Se.M=+cr[0],yr+cr[0].length):-1}function R(Se,Ie,yr){var cr=l.exec(Ie.slice(yr,yr+2));return cr?(Se.S=+cr[0],yr+cr[0].length):-1}function H(Se,Ie,yr){var cr=l.exec(Ie.slice(yr,yr+3));return cr?(Se.L=+cr[0],yr+cr[0].length):-1}function X(Se,Ie,yr){var cr=l.exec(Ie.slice(yr,yr+6));return cr?(Se.L=Math.floor(cr[0]/1e3),yr+cr[0].length):-1}function le(Se,Ie,yr){var cr=s.exec(Ie.slice(yr,yr+1));return cr?yr+cr[0].length:-1}function ae(Se,Ie,yr){var cr=l.exec(Ie.slice(yr));return cr?(Se.Q=+cr[0],yr+cr[0].length):-1}function $(Se,Ie,yr){var cr=l.exec(Ie.slice(yr));return cr?(Se.s=+cr[0],yr+cr[0].length):-1}function Z(Se,Ie){return u(Se.getDate(),Ie,2)}function J(Se,Ie){return u(Se.getHours(),Ie,2)}function oe(Se,Ie){return u(Se.getHours()%12||12,Ie,2)}function ce(Se,Ie){return u(1+r.timeDay.count(r.timeYear(Se),Se),Ie,3)}function De(Se,Ie){return u(Se.getMilliseconds(),Ie,3)}function Oe(Se,Ie){return De(Se,Ie)+"000"}function Ee(Se,Ie){return u(Se.getMonth()+1,Ie,2)}function Je(Se,Ie){return u(Se.getMinutes(),Ie,2)}function Ae(Se,Ie){return u(Se.getSeconds(),Ie,2)}function or(Se){var Ie=Se.getDay();return Ie===0?7:Ie}function Ge(Se,Ie){return u(r.timeSunday.count(r.timeYear(Se)-1,Se),Ie,2)}function He(Se,Ie){var yr=Se.getDay();return Se=yr>=4||yr===0?r.timeThursday(Se):r.timeThursday.ceil(Se),u(r.timeThursday.count(r.timeYear(Se),Se)+(r.timeYear(Se).getDay()===4),Ie,2)}function Ve(Se){return Se.getDay()}function Qe(Se,Ie){return u(r.timeMonday.count(r.timeYear(Se)-1,Se),Ie,2)}function ee(Se,Ie){return u(Se.getFullYear()%100,Ie,2)}function _e(Se,Ie){return u(Se.getFullYear()%1e4,Ie,4)}function re(Se){var Ie=Se.getTimezoneOffset();return(Ie>0?"-":(Ie*=-1,"+"))+u(Ie/60|0,"0",2)+u(Ie%60,"0",2)}function Ze(Se,Ie){return u(Se.getUTCDate(),Ie,2)}function vr(Se,Ie){return u(Se.getUTCHours(),Ie,2)}function rr(Se,Ie){return u(Se.getUTCHours()%12||12,Ie,2)}function Cr(Se,Ie){return u(1+r.utcDay.count(r.utcYear(Se),Se),Ie,3)}function Lr(Se,Ie){return u(Se.getUTCMilliseconds(),Ie,3)}function _r(Se,Ie){return Lr(Se,Ie)+"000"}function Pr(Se,Ie){return u(Se.getUTCMonth()+1,Ie,2)}function rt(Se,Ie){return u(Se.getUTCMinutes(),Ie,2)}function Jr(Se,Ie){return u(Se.getUTCSeconds(),Ie,2)}function wr(Se){var Ie=Se.getUTCDay();return Ie===0?7:Ie}function Hr(Se,Ie){return u(r.utcSunday.count(r.utcYear(Se)-1,Se),Ie,2)}function Vr(Se,Ie){var yr=Se.getUTCDay();return Se=yr>=4||yr===0?r.utcThursday(Se):r.utcThursday.ceil(Se),u(r.utcThursday.count(r.utcYear(Se),Se)+(r.utcYear(Se).getUTCDay()===4),Ie,2)}function Pe(Se){return Se.getUTCDay()}function sr(Se,Ie){return u(r.utcMonday.count(r.utcYear(Se)-1,Se),Ie,2)}function lt(Se,Ie){return u(Se.getUTCFullYear()%100,Ie,2)}function Et(Se,Ie){return u(Se.getUTCFullYear()%1e4,Ie,4)}function wt(){return"+0000"}function Fe(){return"%"}function hr(Se){return+Se}function Or(Se){return Math.floor(+Se/1e3)}var at;Yr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Yr(Se){return at=i(Se),e.timeFormat=at.format,e.timeParse=at.parse,e.utcFormat=at.utcFormat,e.utcParse=at.utcParse,at}var nt="%Y-%m-%dT%H:%M:%S.%LZ";function vt(Se){return Se.toISOString()}var ot=Date.prototype.toISOString?vt:e.utcFormat(nt);function et(Se){var Ie=new Date(Se);return isNaN(Ie)?null:Ie}var pr=+new Date("2000-01-01T00:00:00.000Z")?et:e.utcParse(nt);e.isoFormat=ot,e.isoParse=pr,e.timeFormatDefaultLocale=Yr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var g5=P((Cg,wM)=>{(function(e,r){typeof Cg=="object"&&typeof wM!="undefined"?r(Cg):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Cg,function(e){"use strict";function r(S){return Math.abs(S=Math.round(S))>=1e21?S.toLocaleString("en").replace(/,/g,""):S.toString(10)}function t(S,k){if((F=(S=k?S.toExponential(k-1):S.toExponential()).indexOf("e"))<0)return null;var F,O=S.slice(0,F);return[O.length>1?O[0]+O.slice(2):O,+S.slice(F+1)]}function a(S){return S=t(Math.abs(S)),S?S[1]:NaN}function n(S,k){return function(F,O){for(var I=F.length,R=[],H=0,X=S[0],le=0;I>0&&X>0&&(le+X+1>O&&(X=Math.max(1,O-le)),R.push(F.substring(I-=X,I+X)),!((le+=X+1)>O));)X=S[H=(H+1)%S.length];return R.reverse().join(k)}}function i(S){return function(k){return k.replace(/[0-9]/g,function(F){return S[+F]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(S){if(!(k=o.exec(S)))throw new Error("invalid format: "+S);var k;return new s({fill:k[1],align:k[2],sign:k[3],symbol:k[4],zero:k[5],width:k[6],comma:k[7],precision:k[8]&&k[8].slice(1),trim:k[9],type:k[10]})}l.prototype=s.prototype;function s(S){this.fill=S.fill===void 0?" ":S.fill+"",this.align=S.align===void 0?">":S.align+"",this.sign=S.sign===void 0?"-":S.sign+"",this.symbol=S.symbol===void 0?"":S.symbol+"",this.zero=!!S.zero,this.width=S.width===void 0?void 0:+S.width,this.comma=!!S.comma,this.precision=S.precision===void 0?void 0:+S.precision,this.trim=!!S.trim,this.type=S.type===void 0?"":S.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function f(S){e:for(var k=S.length,F=1,O=-1,I;F0&&(O=0);break}return O>0?S.slice(0,O)+S.slice(I+1):S}var u;function c(S,k){var F=t(S,k);if(!F)return S+"";var O=F[0],I=F[1],R=I-(u=Math.max(-8,Math.min(8,Math.floor(I/3)))*3)+1,H=O.length;return R===H?O:R>H?O+new Array(R-H+1).join("0"):R>0?O.slice(0,R)+"."+O.slice(R):"0."+new Array(1-R).join("0")+t(S,Math.max(0,k+R-1))[0]}function v(S,k){var F=t(S,k);if(!F)return S+"";var O=F[0],I=F[1];return I<0?"0."+new Array(-I).join("0")+O:O.length>I+1?O.slice(0,I+1)+"."+O.slice(I+1):O+new Array(I-O.length+2).join("0")}var d={"%":function(S,k){return(S*100).toFixed(k)},b:function(S){return Math.round(S).toString(2)},c:function(S){return S+""},d:r,e:function(S,k){return S.toExponential(k)},f:function(S,k){return S.toFixed(k)},g:function(S,k){return S.toPrecision(k)},o:function(S){return Math.round(S).toString(8)},p:function(S,k){return v(S*100,k)},r:v,s:c,X:function(S){return Math.round(S).toString(16).toUpperCase()},x:function(S){return Math.round(S).toString(16)}};function p(S){return S}var g=Array.prototype.map,m=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(S){var k=S.grouping===void 0||S.thousands===void 0?p:n(g.call(S.grouping,Number),S.thousands+""),F=S.currency===void 0?"":S.currency[0]+"",O=S.currency===void 0?"":S.currency[1]+"",I=S.decimal===void 0?".":S.decimal+"",R=S.numerals===void 0?p:i(g.call(S.numerals,String)),H=S.percent===void 0?"%":S.percent+"",X=S.minus===void 0?"-":S.minus+"",le=S.nan===void 0?"NaN":S.nan+"";function ae(Z){Z=l(Z);var J=Z.fill,oe=Z.align,ce=Z.sign,De=Z.symbol,Oe=Z.zero,Ee=Z.width,Je=Z.comma,Ae=Z.precision,or=Z.trim,Ge=Z.type;Ge==="n"?(Je=!0,Ge="g"):d[Ge]||(Ae===void 0&&(Ae=12),or=!0,Ge="g"),(Oe||J==="0"&&oe==="=")&&(Oe=!0,J="0",oe="=");var He=De==="$"?F:De==="#"&&/[boxX]/.test(Ge)?"0"+Ge.toLowerCase():"",Ve=De==="$"?O:/[%p]/.test(Ge)?H:"",Qe=d[Ge],ee=/[defgprs%]/.test(Ge);Ae=Ae===void 0?6:/[gprs]/.test(Ge)?Math.max(1,Math.min(21,Ae)):Math.max(0,Math.min(20,Ae));function _e(re){var Ze=He,vr=Ve,rr,Cr,Lr;if(Ge==="c")vr=Qe(re)+vr,re="";else{re=+re;var _r=re<0||1/re<0;if(re=isNaN(re)?le:Qe(Math.abs(re),Ae),or&&(re=f(re)),_r&&+re==0&&ce!=="+"&&(_r=!1),Ze=(_r?ce==="("?ce:X:ce==="-"||ce==="("?"":ce)+Ze,vr=(Ge==="s"?m[8+u/3]:"")+vr+(_r&&ce==="("?")":""),ee){for(rr=-1,Cr=re.length;++rrLr||Lr>57){vr=(Lr===46?I+re.slice(rr+1):re.slice(rr))+vr,re=re.slice(0,rr);break}}}Je&&!Oe&&(re=k(re,1/0));var Pr=Ze.length+re.length+vr.length,rt=Pr>1)+Ze+re+vr+rt.slice(Pr);break;default:re=rt+Ze+re+vr;break}return R(re)}return _e.toString=function(){return Z+""},_e}function $(Z,J){var oe=ae((Z=l(Z),Z.type="f",Z)),ce=Math.max(-8,Math.min(8,Math.floor(a(J)/3)))*3,De=Math.pow(10,-ce),Oe=m[8+ce/3];return function(Ee){return oe(De*Ee)+Oe}}return{format:ae,formatPrefix:$}}var A;_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function _(S){return A=b(S),e.format=A.format,e.formatPrefix=A.formatPrefix,A}function x(S){return Math.max(0,-a(Math.abs(S)))}function T(S,k){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(k)/3)))*3-a(Math.abs(S)))}function E(S,k){return S=Math.abs(S),k=Math.abs(k)-S,Math.max(0,a(k)-a(S))+1}e.FormatSpecifier=s,e.formatDefaultLocale=_,e.formatLocale=b,e.formatSpecifier=l,e.precisionFixed=x,e.precisionPrefix=T,e.precisionRound=E,Object.defineProperty(e,"__esModule",{value:!0})})});var TM=P((tEe,AM)=>{"use strict";AM.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 ya=P((aEe,MM)=>{"use strict";var Hne=TM();MM.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&Hne(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Qn=P((nEe,SM)=>{"use strict";SM.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var b5=P((Lg,EM)=>{(function(e,r){typeof Lg=="object"&&typeof EM!="undefined"?r(Lg):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Lg,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],u+=r[(l[s]&3)<<4|l[s+1]>>4],u+=r[(l[s+1]&15)<<2|l[s+2]>>6],u+=r[l[s+2]&63];return f%3===2?u=u.substring(0,u.length-1)+"=":f%3===1&&(u=u.substring(0,u.length-2)+"=="),u},i=function(o){var l=o.length*.75,s=o.length,f,u=0,c,v,d,p;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var g=new ArrayBuffer(l),m=new Uint8Array(g);for(f=0;f>4,m[u++]=(v&15)<<4|d>>2,m[u++]=(d&3)<<6|p&63;return g};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})})});var Mc=P((iEe,kM)=>{"use strict";kM.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var Vo=P(Ss=>{"use strict";var Vne=b5().decode,Yne=Mc(),x5=Array.isArray,Wne=ArrayBuffer,jne=DataView;function CM(e){return Wne.isView(e)&&!(e instanceof jne)}Ss.isTypedArray=CM;function Dg(e){return x5(e)||CM(e)}Ss.isArrayOrTypedArray=Dg;function Xne(e){return!Dg(e[0])}Ss.isArray1D=Xne;Ss.ensureArray=function(e,r){return x5(e)||(e=[]),e.length=r,e};var Fi={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Fi.uint8c=Fi.u1c;Fi.uint8=Fi.u1;Fi.int8=Fi.i1;Fi.uint16=Fi.u2;Fi.int16=Fi.i2;Fi.uint32=Fi.u4;Fi.int32=Fi.i4;Fi.float32=Fi.f4;Fi.float64=Fi.f8;function _5(e){return e.constructor===ArrayBuffer}Ss.isArrayBuffer=_5;Ss.decodeTypedArraySpec=function(e){var r=[],t=Zne(e),a=t.dtype,n=Fi[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;_5(o)||(o=Vne(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,f,u,c=+l[0],v=i*c,d=0;if(s===1)r=new n(o);else if(s===2)for(f=+l[1],u=0;u{"use strict";var DM=ya(),A5=Vo().isArrayOrTypedArray;PM.exports=function(r,t){if(DM(t))t=String(t);else if(typeof t!="string"||t.substr(t.length-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,o,l;for(l=0;l{"use strict";var Xh=Fg(),eie=/^\w*$/,rie=0,NM=1,Rg=2,OM=3,v0=4;IM.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=Xh(r,t),o=l.get()):o=r,t=t||"";var f={};if(o)for(i=0;i2)return s[d]=s[d]|Rg,c.set(v,null);if(u){for(i=d;i{"use strict";var tie=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,aie=/^[^\.\[\]]+$/;zM.exports=function(e,r){for(;r;){var t=e.match(tie);if(t)e=t[1];else if(e.match(aie))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var qg=P((uEe,UM)=>{"use strict";var nie=ya();UM.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 nie(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var YM=P((cEe,VM)=>{"use strict";var HM=Vo().isArrayOrTypedArray,R1=Mc();VM.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(HM(n)&&HM(i)&&R1(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;l{"use strict";function iie(e,r){var t=e%r;return t<0?t+r:t}function oie(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}WM.exports={mod:iie,modHalf:oie}});var Es=P((hEe,Pg)=>{(function(e){var r=/^\s+/,t=/\s+$/,a=0,n=e.round,i=e.min,o=e.max,l=e.random;function s(ee,_e){if(ee=ee||"",_e=_e||{},ee instanceof s)return ee;if(!(this instanceof s))return new s(ee,_e);var re=f(ee);this._originalInput=ee,this._r=re.r,this._g=re.g,this._b=re.b,this._a=re.a,this._roundA=n(100*this._a)/100,this._format=_e.format||re.format,this._gradientType=_e.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=re.ok,this._tc_id=a++}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ee=this.toRgb();return(ee.r*299+ee.g*587+ee.b*114)/1e3},getLuminance:function(){var ee=this.toRgb(),_e,re,Ze,vr,rr,Cr;return _e=ee.r/255,re=ee.g/255,Ze=ee.b/255,_e<=.03928?vr=_e/12.92:vr=e.pow((_e+.055)/1.055,2.4),re<=.03928?rr=re/12.92:rr=e.pow((re+.055)/1.055,2.4),Ze<=.03928?Cr=Ze/12.92:Cr=e.pow((Ze+.055)/1.055,2.4),.2126*vr+.7152*rr+.0722*Cr},setAlpha:function(ee){return this._a=Z(ee),this._roundA=n(100*this._a)/100,this},toHsv:function(){var ee=d(this._r,this._g,this._b);return{h:ee.h*360,s:ee.s,v:ee.v,a:this._a}},toHsvString:function(){var ee=d(this._r,this._g,this._b),_e=n(ee.h*360),re=n(ee.s*100),Ze=n(ee.v*100);return this._a==1?"hsv("+_e+", "+re+"%, "+Ze+"%)":"hsva("+_e+", "+re+"%, "+Ze+"%, "+this._roundA+")"},toHsl:function(){var ee=c(this._r,this._g,this._b);return{h:ee.h*360,s:ee.s,l:ee.l,a:this._a}},toHslString:function(){var ee=c(this._r,this._g,this._b),_e=n(ee.h*360),re=n(ee.s*100),Ze=n(ee.l*100);return this._a==1?"hsl("+_e+", "+re+"%, "+Ze+"%)":"hsla("+_e+", "+re+"%, "+Ze+"%, "+this._roundA+")"},toHex:function(ee){return g(this._r,this._g,this._b,ee)},toHexString:function(ee){return"#"+this.toHex(ee)},toHex8:function(ee){return m(this._r,this._g,this._b,this._a,ee)},toHex8String:function(ee){return"#"+this.toHex8(ee)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(J(this._r,255)*100)+"%",g:n(J(this._g,255)*100)+"%",b:n(J(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(J(this._r,255)*100)+"%, "+n(J(this._g,255)*100)+"%, "+n(J(this._b,255)*100)+"%)":"rgba("+n(J(this._r,255)*100)+"%, "+n(J(this._g,255)*100)+"%, "+n(J(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ae[g(this._r,this._g,this._b,!0)]||!1},toFilter:function(ee){var _e="#"+b(this._r,this._g,this._b,this._a),re=_e,Ze=this._gradientType?"GradientType = 1, ":"";if(ee){var vr=s(ee);re="#"+b(vr._r,vr._g,vr._b,vr._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ze+"startColorstr="+_e+",endColorstr="+re+")"},toString:function(ee){var _e=!!ee;ee=ee||this._format;var re=!1,Ze=this._a<1&&this._a>=0,vr=!_e&&Ze&&(ee==="hex"||ee==="hex6"||ee==="hex3"||ee==="hex4"||ee==="hex8"||ee==="name");return vr?ee==="name"&&this._a===0?this.toName():this.toRgbString():(ee==="rgb"&&(re=this.toRgbString()),ee==="prgb"&&(re=this.toPercentageRgbString()),(ee==="hex"||ee==="hex6")&&(re=this.toHexString()),ee==="hex3"&&(re=this.toHexString(!0)),ee==="hex4"&&(re=this.toHex8String(!0)),ee==="hex8"&&(re=this.toHex8String()),ee==="name"&&(re=this.toName()),ee==="hsl"&&(re=this.toHslString()),ee==="hsv"&&(re=this.toHsvString()),re||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(ee,_e){var re=ee.apply(null,[this].concat([].slice.call(_e)));return this._r=re._r,this._g=re._g,this._b=re._b,this.setAlpha(re._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(E,arguments)},darken:function(){return this._applyModification(S,arguments)},desaturate:function(){return this._applyModification(A,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(ee,_e){return ee.apply(null,[this].concat([].slice.call(_e)))},analogous:function(){return this._applyCombination(H,arguments)},complement:function(){return this._applyCombination(F,arguments)},monochromatic:function(){return this._applyCombination(X,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(I,arguments)}},s.fromRatio=function(ee,_e){if(typeof ee=="object"){var re={};for(var Ze in ee)ee.hasOwnProperty(Ze)&&(Ze==="a"?re[Ze]=ee[Ze]:re[Ze]=Je(ee[Ze]));ee=re}return s(ee,_e)};function f(ee){var _e={r:0,g:0,b:0},re=1,Ze=null,vr=null,rr=null,Cr=!1,Lr=!1;return typeof ee=="string"&&(ee=Ve(ee)),typeof ee=="object"&&(He(ee.r)&&He(ee.g)&&He(ee.b)?(_e=u(ee.r,ee.g,ee.b),Cr=!0,Lr=String(ee.r).substr(-1)==="%"?"prgb":"rgb"):He(ee.h)&&He(ee.s)&&He(ee.v)?(Ze=Je(ee.s),vr=Je(ee.v),_e=p(ee.h,Ze,vr),Cr=!0,Lr="hsv"):He(ee.h)&&He(ee.s)&&He(ee.l)&&(Ze=Je(ee.s),rr=Je(ee.l),_e=v(ee.h,Ze,rr),Cr=!0,Lr="hsl"),ee.hasOwnProperty("a")&&(re=ee.a)),re=Z(re),{ok:Cr,format:ee.format||Lr,r:i(255,o(_e.r,0)),g:i(255,o(_e.g,0)),b:i(255,o(_e.b,0)),a:re}}function u(ee,_e,re){return{r:J(ee,255)*255,g:J(_e,255)*255,b:J(re,255)*255}}function c(ee,_e,re){ee=J(ee,255),_e=J(_e,255),re=J(re,255);var Ze=o(ee,_e,re),vr=i(ee,_e,re),rr,Cr,Lr=(Ze+vr)/2;if(Ze==vr)rr=Cr=0;else{var _r=Ze-vr;switch(Cr=Lr>.5?_r/(2-Ze-vr):_r/(Ze+vr),Ze){case ee:rr=(_e-re)/_r+(_e1&&(Jr-=1),Jr<1/6?Pr+(rt-Pr)*6*Jr:Jr<1/2?rt:Jr<2/3?Pr+(rt-Pr)*(2/3-Jr)*6:Pr}if(_e===0)Ze=vr=rr=re;else{var Lr=re<.5?re*(1+_e):re+_e-re*_e,_r=2*re-Lr;Ze=Cr(_r,Lr,ee+1/3),vr=Cr(_r,Lr,ee),rr=Cr(_r,Lr,ee-1/3)}return{r:Ze*255,g:vr*255,b:rr*255}}function d(ee,_e,re){ee=J(ee,255),_e=J(_e,255),re=J(re,255);var Ze=o(ee,_e,re),vr=i(ee,_e,re),rr,Cr,Lr=Ze,_r=Ze-vr;if(Cr=Ze===0?0:_r/Ze,Ze==vr)rr=0;else{switch(Ze){case ee:rr=(_e-re)/_r+(_e>1)+720)%360;--_e;)Ze.h=(Ze.h+vr)%360,rr.push(s(Ze));return rr}function X(ee,_e){_e=_e||6;for(var re=s(ee).toHsv(),Ze=re.h,vr=re.s,rr=re.v,Cr=[],Lr=1/_e;_e--;)Cr.push(s({h:Ze,s:vr,v:rr})),rr=(rr+Lr)%1;return Cr}s.mix=function(ee,_e,re){re=re===0?0:re||50;var Ze=s(ee).toRgb(),vr=s(_e).toRgb(),rr=re/100,Cr={r:(vr.r-Ze.r)*rr+Ze.r,g:(vr.g-Ze.g)*rr+Ze.g,b:(vr.b-Ze.b)*rr+Ze.b,a:(vr.a-Ze.a)*rr+Ze.a};return s(Cr)},s.readability=function(ee,_e){var re=s(ee),Ze=s(_e);return(e.max(re.getLuminance(),Ze.getLuminance())+.05)/(e.min(re.getLuminance(),Ze.getLuminance())+.05)},s.isReadable=function(ee,_e,re){var Ze=s.readability(ee,_e),vr,rr;switch(rr=!1,vr=Qe(re),vr.level+vr.size){case"AAsmall":case"AAAlarge":rr=Ze>=4.5;break;case"AAlarge":rr=Ze>=3;break;case"AAAsmall":rr=Ze>=7;break}return rr},s.mostReadable=function(ee,_e,re){var Ze=null,vr=0,rr,Cr,Lr,_r;re=re||{},Cr=re.includeFallbackColors,Lr=re.level,_r=re.size;for(var Pr=0;Pr<_e.length;Pr++)rr=s.readability(ee,_e[Pr]),rr>vr&&(vr=rr,Ze=s(_e[Pr]));return s.isReadable(ee,Ze,{level:Lr,size:_r})||!Cr?Ze:(re.includeFallbackColors=!1,s.mostReadable(ee,["#fff","#000"],re))};var le=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ae=s.hexNames=$(le);function $(ee){var _e={};for(var re in ee)ee.hasOwnProperty(re)&&(_e[ee[re]]=re);return _e}function Z(ee){return ee=parseFloat(ee),(isNaN(ee)||ee<0||ee>1)&&(ee=1),ee}function J(ee,_e){De(ee)&&(ee="100%");var re=Oe(ee);return ee=i(_e,o(0,parseFloat(ee))),re&&(ee=parseInt(ee*_e,10)/100),e.abs(ee-_e)<1e-6?1:ee%_e/parseFloat(_e)}function oe(ee){return i(1,o(0,ee))}function ce(ee){return parseInt(ee,16)}function De(ee){return typeof ee=="string"&&ee.indexOf(".")!=-1&&parseFloat(ee)===1}function Oe(ee){return typeof ee=="string"&&ee.indexOf("%")!=-1}function Ee(ee){return ee.length==1?"0"+ee:""+ee}function Je(ee){return ee<=1&&(ee=ee*100+"%"),ee}function Ae(ee){return e.round(parseFloat(ee)*255).toString(16)}function or(ee){return ce(ee)/255}var Ge=function(){var ee="[-\\+]?\\d+%?",_e="[-\\+]?\\d*\\.\\d+%?",re="(?:"+_e+")|(?:"+ee+")",Ze="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?",vr="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?";return{CSS_UNIT:new RegExp(re),rgb:new RegExp("rgb"+Ze),rgba:new RegExp("rgba"+vr),hsl:new RegExp("hsl"+Ze),hsla:new RegExp("hsla"+vr),hsv:new RegExp("hsv"+Ze),hsva:new RegExp("hsva"+vr),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function He(ee){return!!Ge.CSS_UNIT.exec(ee)}function Ve(ee){ee=ee.replace(r,"").replace(t,"").toLowerCase();var _e=!1;if(le[ee])ee=le[ee],_e=!0;else if(ee=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var re;return(re=Ge.rgb.exec(ee))?{r:re[1],g:re[2],b:re[3]}:(re=Ge.rgba.exec(ee))?{r:re[1],g:re[2],b:re[3],a:re[4]}:(re=Ge.hsl.exec(ee))?{h:re[1],s:re[2],l:re[3]}:(re=Ge.hsla.exec(ee))?{h:re[1],s:re[2],l:re[3],a:re[4]}:(re=Ge.hsv.exec(ee))?{h:re[1],s:re[2],v:re[3]}:(re=Ge.hsva.exec(ee))?{h:re[1],s:re[2],v:re[3],a:re[4]}:(re=Ge.hex8.exec(ee))?{r:ce(re[1]),g:ce(re[2]),b:ce(re[3]),a:or(re[4]),format:_e?"name":"hex8"}:(re=Ge.hex6.exec(ee))?{r:ce(re[1]),g:ce(re[2]),b:ce(re[3]),format:_e?"name":"hex"}:(re=Ge.hex4.exec(ee))?{r:ce(re[1]+""+re[1]),g:ce(re[2]+""+re[2]),b:ce(re[3]+""+re[3]),a:or(re[4]+""+re[4]),format:_e?"name":"hex8"}:(re=Ge.hex3.exec(ee))?{r:ce(re[1]+""+re[1]),g:ce(re[2]+""+re[2]),b:ce(re[3]+""+re[3]),format:_e?"name":"hex"}:!1}function Qe(ee){var _e,re;return ee=ee||{level:"AA",size:"small"},_e=(ee.level||"AA").toUpperCase(),re=(ee.size||"small").toLowerCase(),_e!=="AA"&&_e!=="AAA"&&(_e="AA"),re!=="small"&&re!=="large"&&(re="small"),{level:_e,size:re}}typeof Pg!="undefined"&&Pg.exports?Pg.exports=s:window.tinycolor=s})(Math)});var zn=P(N1=>{"use strict";var jM=Mc(),q1=Array.isArray;function lie(e,r){var t,a;for(t=0;t{"use strict";XM.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 O1=P((mEe,ZM)=>{"use strict";ZM.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var Jh=P((yEe,QM)=>{"use strict";var JM=O1(),$M=zi(),T5=$M({editType:"none"});T5.family.dflt=JM.HOVERFONT;T5.size.dflt=JM.HOVERFONTSIZE;QM.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:T5,grouptitlefont:$M({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Ng=P((gEe,KM)=>{"use strict";var sie=zi(),I1=Jh().hoverlabel,B1=zn().extendFlat;KM.exports={hoverlabel:{bgcolor:B1({},I1.bgcolor,{arrayOk:!0}),bordercolor:B1({},I1.bordercolor,{arrayOk:!0}),font:sie({arrayOk:!0,editType:"none"}),align:B1({},I1.align,{arrayOk:!0}),namelength:B1({},I1.namelength,{arrayOk:!0}),showarrow:B1({},I1.showarrow),editType:"none"}}});var ks=P((bEe,eS)=>{"use strict";var fie=zi(),uie=Ng();eS.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:fie({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:uie.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var h0=P((xEe,aS)=>{"use strict";var cie=Es(),Og={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},rS=Og.RdBu;function vie(e,r){if(r||(r=rS),!e)return r;function t(){try{e=Og[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),tS(e)?e:r}function tS(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;t{"use strict";d0.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];d0.defaultLine="#444";d0.lightLine="#eee";d0.background="#fff";d0.borderLine="#BEC8D9";d0.lightFraction=100*10/11});var va=P((wEe,nS)=>{"use strict";var Yo=Es(),die=ya(),pie=Vo().isTypedArray,gi=nS.exports={},Ig=wf();gi.defaults=Ig.defaults;var mie=gi.defaultLine=Ig.defaultLine;gi.lightLine=Ig.lightLine;var S5=gi.background=Ig.background;gi.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};gi.rgb=function(e){return gi.tinyRGB(Yo(e))};gi.opacity=function(e){return e?Yo(e).getAlpha():0};gi.addOpacity=function(e,r){var t=Yo(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};gi.combine=function(e,r){var t=Yo(e).toRgb();if(t.a===1)return Yo(e).toRgbString();var a=Yo(r||S5).toRgb(),n=a.a===1?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:n.r*(1-t.a)+t.r*t.a,g:n.g*(1-t.a)+t.g*t.a,b:n.b*(1-t.a)+t.b*t.a};return Yo(i).toRgbString()};gi.interpolate=function(e,r,t){var a=Yo(e).toRgb(),n=Yo(r).toRgb(),i={r:t*a.r+(1-t)*n.r,g:t*a.g+(1-t)*n.g,b:t*a.b+(1-t)*n.b};return Yo(i).toRgbString()};gi.contrast=function(e,r,t){var a=Yo(e);a.getAlpha()!==1&&(a=Yo(gi.combine(e,S5)));var n=a.isDark()?r?a.lighten(r):S5:t?a.darken(t):mie;return n.toString()};gi.stroke=function(e,r){var t=Yo(r);e.style({stroke:gi.tinyRGB(t),"stroke-opacity":t.getAlpha()})};gi.fill=function(e,r){var t=Yo(r);e.style({fill:gi.tinyRGB(t),"fill-opacity":t.getAlpha()})};gi.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,a,n,i;for(t=0;t=0)))return e;if(i===3)a[i]>1&&(a[i]=1);else if(a[i]>=1)return e}var o=Math.round(a[0]*255)+", "+Math.round(a[1]*255)+", "+Math.round(a[2]*255);return n?"rgba("+o+", "+a[3]+")":"rgb("+o+")"}});var $h=P((AEe,iS)=>{"use strict";iS.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var Qh=P(oS=>{"use strict";oS.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 uS=P(Wo=>{"use strict";var E5=ya(),lS=Es(),sS=zn().extendFlat,yie=ks(),gie=h0(),bie=va(),xie=$h().DESELECTDIM,Kh=Fg(),fS=Qh().counter,_ie=Zh().modHalf,Af=Vo().isArrayOrTypedArray,Sc=Vo().isTypedArraySpec,Ec=Vo().decodeTypedArraySpec;Wo.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Af(e)?e:Sc(e)?Ec(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;aa.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}Sc(e)&&(e=Ec(e)),e%1||!E5(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Sc(e)&&(e=Ec(e)),lS(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function a(n){return lS(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(gie.get(e,t))}},angle:{coerceFunction:function(e,r,t){Sc(e)&&(e=Ec(e)),e==="auto"?r.set("auto"):E5(e)?r.set(_ie(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||fS(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:!!fS(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 cS={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:{}}},vS={};function hS(e,r){for(var t in e){var a=e[t];a.valType?r[t]=a.dflt:(r[t]||(r[t]={}),hS(a,r[t]))}}hS(cS,vS);dS.exports={configAttributes:cS,dfltConfig:vS}});var C5=P((EEe,pS)=>{"use strict";var k5=ha(),wie=ya(),z1=[];pS.exports=function(e,r){if(z1.indexOf(e)!==-1)return;z1.push(e);var t=1e3;wie(r)?t=r:r==="long"&&(t=3e3);var a=k5.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(z1);function i(o){o.duration(700).style("opacity",0).each("end",function(l){var s=z1.indexOf(l);s!==-1&&z1.splice(s,1),k5.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var l=k5.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(i)});for(var s=l.append("p"),f=o.split(//g),u=0;u{"use strict";var ed=p0().dfltConfig,L5=C5(),D5=mS.exports={};D5.log=function(){var e;if(ed.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};D5.warn=function(){var e;if(ed.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};D5.error=function(){var e;if(ed.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var zg=P((CEe,yS)=>{"use strict";yS.exports=function(){}});var F5=P((LEe,gS)=>{"use strict";gS.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{bS.exports=Aie;function Aie(){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 wS=P((FEe,_S)=>{_S.exports=Tie;function Tie(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 TS=P((REe,AS)=>{AS.exports=Mie;function Mie(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var R5=P((qEe,MS)=>{MS.exports=Sie;function Sie(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 ES=P((PEe,SS)=>{SS.exports=Eie;function Eie(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var CS=P((NEe,kS)=>{kS.exports=kie;function kie(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],f=r[7],u=r[8],c=r[9],v=r[10],d=r[11],p=r[12],g=r[13],m=r[14],b=r[15],A=t*l-a*o,_=t*s-n*o,x=t*f-i*o,T=a*s-n*l,E=a*f-i*l,S=n*f-i*s,k=u*g-c*p,F=u*m-v*p,O=u*b-d*p,I=c*m-v*g,R=c*b-d*g,H=v*b-d*m,X=A*H-_*R+x*I+T*O-E*F+S*k;return X?(X=1/X,e[0]=(l*H-s*R+f*I)*X,e[1]=(n*R-a*H-i*I)*X,e[2]=(g*S-m*E+b*T)*X,e[3]=(v*E-c*S-d*T)*X,e[4]=(s*O-o*H-f*F)*X,e[5]=(t*H-n*O+i*F)*X,e[6]=(m*x-p*S-b*_)*X,e[7]=(u*S-v*x+d*_)*X,e[8]=(o*R-l*O+f*k)*X,e[9]=(a*O-t*R-i*k)*X,e[10]=(p*E-g*x+b*A)*X,e[11]=(c*x-u*E-d*A)*X,e[12]=(l*F-o*I-s*k)*X,e[13]=(t*I-a*F+n*k)*X,e[14]=(g*_-p*T-m*A)*X,e[15]=(u*T-c*_+v*A)*X,e):null}});var DS=P((OEe,LS)=>{LS.exports=Cie;function Cie(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],f=r[7],u=r[8],c=r[9],v=r[10],d=r[11],p=r[12],g=r[13],m=r[14],b=r[15];return e[0]=l*(v*b-d*m)-c*(s*b-f*m)+g*(s*d-f*v),e[1]=-(a*(v*b-d*m)-c*(n*b-i*m)+g*(n*d-i*v)),e[2]=a*(s*b-f*m)-l*(n*b-i*m)+g*(n*f-i*s),e[3]=-(a*(s*d-f*v)-l*(n*d-i*v)+c*(n*f-i*s)),e[4]=-(o*(v*b-d*m)-u*(s*b-f*m)+p*(s*d-f*v)),e[5]=t*(v*b-d*m)-u*(n*b-i*m)+p*(n*d-i*v),e[6]=-(t*(s*b-f*m)-o*(n*b-i*m)+p*(n*f-i*s)),e[7]=t*(s*d-f*v)-o*(n*d-i*v)+u*(n*f-i*s),e[8]=o*(c*b-d*g)-u*(l*b-f*g)+p*(l*d-f*c),e[9]=-(t*(c*b-d*g)-u*(a*b-i*g)+p*(a*d-i*c)),e[10]=t*(l*b-f*g)-o*(a*b-i*g)+p*(a*f-i*l),e[11]=-(t*(l*d-f*c)-o*(a*d-i*c)+u*(a*f-i*l)),e[12]=-(o*(c*m-v*g)-u*(l*m-s*g)+p*(l*v-s*c)),e[13]=t*(c*m-v*g)-u*(a*m-n*g)+p*(a*v-n*c),e[14]=-(t*(l*m-s*g)-o*(a*m-n*g)+p*(a*s-n*l)),e[15]=t*(l*v-s*c)-o*(a*v-n*c)+u*(a*s-n*l),e}});var RS=P((IEe,FS)=>{FS.exports=Lie;function Lie(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],f=e[8],u=e[9],c=e[10],v=e[11],d=e[12],p=e[13],g=e[14],m=e[15],b=r*o-t*i,A=r*l-a*i,_=r*s-n*i,x=t*l-a*o,T=t*s-n*o,E=a*s-n*l,S=f*p-u*d,k=f*g-c*d,F=f*m-v*d,O=u*g-c*p,I=u*m-v*p,R=c*m-v*g;return b*R-A*I+_*O+x*F-T*k+E*S}});var PS=P((BEe,qS)=>{qS.exports=Die;function Die(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],f=r[6],u=r[7],c=r[8],v=r[9],d=r[10],p=r[11],g=r[12],m=r[13],b=r[14],A=r[15],_=t[0],x=t[1],T=t[2],E=t[3];return e[0]=_*a+x*l+T*c+E*g,e[1]=_*n+x*s+T*v+E*m,e[2]=_*i+x*f+T*d+E*b,e[3]=_*o+x*u+T*p+E*A,_=t[4],x=t[5],T=t[6],E=t[7],e[4]=_*a+x*l+T*c+E*g,e[5]=_*n+x*s+T*v+E*m,e[6]=_*i+x*f+T*d+E*b,e[7]=_*o+x*u+T*p+E*A,_=t[8],x=t[9],T=t[10],E=t[11],e[8]=_*a+x*l+T*c+E*g,e[9]=_*n+x*s+T*v+E*m,e[10]=_*i+x*f+T*d+E*b,e[11]=_*o+x*u+T*p+E*A,_=t[12],x=t[13],T=t[14],E=t[15],e[12]=_*a+x*l+T*c+E*g,e[13]=_*n+x*s+T*v+E*m,e[14]=_*i+x*f+T*d+E*b,e[15]=_*o+x*u+T*p+E*A,e}});var OS=P((zEe,NS)=>{NS.exports=Fie;function Fie(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,f,u,c,v,d,p,g,m,b;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],f=r[3],u=r[4],c=r[5],v=r[6],d=r[7],p=r[8],g=r[9],m=r[10],b=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=f,e[4]=u,e[5]=c,e[6]=v,e[7]=d,e[8]=p,e[9]=g,e[10]=m,e[11]=b,e[12]=o*a+u*n+p*i+r[12],e[13]=l*a+c*n+g*i+r[13],e[14]=s*a+v*n+m*i+r[14],e[15]=f*a+d*n+b*i+r[15]),e}});var BS=P((GEe,IS)=>{IS.exports=Rie;function Rie(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var GS=P((UEe,zS)=>{zS.exports=qie;function qie(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,f,u,c,v,d,p,g,m,b,A,_,x,T,E,S,k,F,O,I,R,H,X,le;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),f=Math.cos(t),u=1-f,c=r[0],v=r[1],d=r[2],p=r[3],g=r[4],m=r[5],b=r[6],A=r[7],_=r[8],x=r[9],T=r[10],E=r[11],S=n*n*u+f,k=i*n*u+o*s,F=o*n*u-i*s,O=n*i*u-o*s,I=i*i*u+f,R=o*i*u+n*s,H=n*o*u+i*s,X=i*o*u-n*s,le=o*o*u+f,e[0]=c*S+g*k+_*F,e[1]=v*S+m*k+x*F,e[2]=d*S+b*k+T*F,e[3]=p*S+A*k+E*F,e[4]=c*O+g*I+_*R,e[5]=v*O+m*I+x*R,e[6]=d*O+b*I+T*R,e[7]=p*O+A*I+E*R,e[8]=c*H+g*X+_*le,e[9]=v*H+m*X+x*le,e[10]=d*H+b*X+T*le,e[11]=p*H+A*X+E*le,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var HS=P((HEe,US)=>{US.exports=Pie;function Pie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],f=r[8],u=r[9],c=r[10],v=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+f*a,e[5]=o*n+u*a,e[6]=l*n+c*a,e[7]=s*n+v*a,e[8]=f*n-i*a,e[9]=u*n-o*a,e[10]=c*n-l*a,e[11]=v*n-s*a,e}});var YS=P((VEe,VS)=>{VS.exports=Nie;function Nie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],f=r[8],u=r[9],c=r[10],v=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-f*a,e[1]=o*n-u*a,e[2]=l*n-c*a,e[3]=s*n-v*a,e[8]=i*a+f*n,e[9]=o*a+u*n,e[10]=l*a+c*n,e[11]=s*a+v*n,e}});var jS=P((YEe,WS)=>{WS.exports=Oie;function Oie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],f=r[4],u=r[5],c=r[6],v=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+f*a,e[1]=o*n+u*a,e[2]=l*n+c*a,e[3]=s*n+v*a,e[4]=f*n-i*a,e[5]=u*n-o*a,e[6]=c*n-l*a,e[7]=v*n-s*a,e}});var ZS=P((WEe,XS)=>{XS.exports=Iie;function Iie(e,r,t){var a,n,i,o=t[0],l=t[1],s=t[2],f=Math.sqrt(o*o+l*l+s*s);return Math.abs(f)<1e-6?null:(f=1/f,o*=f,l*=f,s*=f,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+s*a,e[2]=s*o*i-l*a,e[3]=0,e[4]=o*l*i-s*a,e[5]=l*l*i+n,e[6]=s*l*i+o*a,e[7]=0,e[8]=o*s*i+l*a,e[9]=l*s*i-o*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var $S=P((jEe,JS)=>{JS.exports=Bie;function Bie(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,f=i+i,u=a*l,c=a*s,v=a*f,d=n*s,p=n*f,g=i*f,m=o*l,b=o*s,A=o*f;return e[0]=1-(d+g),e[1]=c+A,e[2]=v-b,e[3]=0,e[4]=c-A,e[5]=1-(u+g),e[6]=p+m,e[7]=0,e[8]=v+b,e[9]=p-m,e[10]=1-(u+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var KS=P((XEe,QS)=>{QS.exports=zie;function zie(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 rE=P((ZEe,eE)=>{eE.exports=Gie;function Gie(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 aE=P((JEe,tE)=>{tE.exports=Uie;function Uie(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 iE=P(($Ee,nE)=>{nE.exports=Hie;function Hie(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 lE=P((QEe,oE)=>{oE.exports=Vie;function Vie(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var q5=P((KEe,sE)=>{sE.exports=Yie;function Yie(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,f=t*o,u=a*o,c=a*l,v=n*o,d=n*l,p=n*s,g=i*o,m=i*l,b=i*s;return e[0]=1-c-p,e[1]=u+b,e[2]=v-m,e[3]=0,e[4]=u-b,e[5]=1-f-p,e[6]=d+g,e[7]=0,e[8]=v+m,e[9]=d-g,e[10]=1-f-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var uE=P((eke,fE)=>{fE.exports=Wie;function Wie(e,r,t,a,n,i,o){var l=1/(t-r),s=1/(n-a),f=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*s,e[10]=(o+i)*f,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*f,e[15]=0,e}});var vE=P((rke,cE)=>{cE.exports=jie;function jie(e,r,t,a,n){var i=1/Math.tan(r/2),o=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var dE=P((tke,hE)=>{hE.exports=Xie;function Xie(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),f=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=f,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(n-i)*f*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var mE=P((ake,pE)=>{pE.exports=Zie;function Zie(e,r,t,a,n,i,o){var l=1/(r-t),s=1/(a-n),f=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*f,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*s,e[14]=(o+i)*f,e[15]=1,e}});var gE=P((nke,yE)=>{var Jie=R5();yE.exports=$ie;function $ie(e,r,t,a){var n,i,o,l,s,f,u,c,v,d,p=r[0],g=r[1],m=r[2],b=a[0],A=a[1],_=a[2],x=t[0],T=t[1],E=t[2];return Math.abs(p-x)<1e-6&&Math.abs(g-T)<1e-6&&Math.abs(m-E)<1e-6?Jie(e):(u=p-x,c=g-T,v=m-E,d=1/Math.sqrt(u*u+c*c+v*v),u*=d,c*=d,v*=d,n=A*v-_*c,i=_*u-b*v,o=b*c-A*u,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-v*i,s=v*n-u*o,f=u*i-c*n,d=Math.sqrt(l*l+s*s+f*f),d?(d=1/d,l*=d,s*=d,f*=d):(l=0,s=0,f=0),e[0]=n,e[1]=l,e[2]=u,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=f,e[10]=v,e[11]=0,e[12]=-(n*p+i*g+o*m),e[13]=-(l*p+s*g+f*m),e[14]=-(u*p+c*g+v*m),e[15]=1,e)}});var xE=P((ike,bE)=>{bE.exports=Qie;function Qie(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var P5=P((oke,_E)=>{_E.exports={create:xS(),clone:wS(),copy:TS(),identity:R5(),transpose:ES(),invert:CS(),adjoint:DS(),determinant:RS(),multiply:PS(),translate:OS(),scale:BS(),rotate:GS(),rotateX:HS(),rotateY:YS(),rotateZ:jS(),fromRotation:ZS(),fromRotationTranslation:$S(),fromScaling:KS(),fromTranslation:rE(),fromXRotation:aE(),fromYRotation:iE(),fromZRotation:lE(),fromQuat:q5(),frustum:uE(),perspective:vE(),perspectiveFromFieldOfView:dE(),ortho:mE(),lookAt:gE(),str:xE()}});var Gg=P(Gn=>{"use strict";var Kie=P5();Gn.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var eoe=ha(),wE=m0(),roe=Gg(),toe=P5();function aoe(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 noe(e){var r=eoe.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function AE(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function ioe(e,r){TE("global",e,r)}function TE(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):wE.warn("addStyleRule failed"):wE.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function ooe(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&AE(t)}function loe(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(f){f.getAttribute(s)||(f.addEventListener("mouseenter",function(){var u=this.querySelector(t);u&&(u.style[o[0]]=o[1])}),f.addEventListener("mouseleave",function(){var u=this.querySelector(t);u&&(r&&this.matches(r)?u.style[o[0]]=o[1]:u.style[l[0]]=l[1])}),f.setAttribute(s,!0))})}function soe(e){var r=SE(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=ME(a);if(n){var i=roe.convertCssMatrix(n);t=toe.multiply(t,t,i)}}),t}function ME(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function SE(e){for(var r=[];foe(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function foe(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function uoe(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}EE.exports={getGraphDiv:aoe,isPlotDiv:noe,removeElement:AE,addStyleRule:ioe,addRelatedStyleRule:TE,deleteRelatedStyleRule:ooe,setStyleOnHover:loe,getFullTransformMatrix:soe,getElementTransformMatrix:ME,getElementAndAncestors:SE,equalDomRects:uoe}});var U1=P((fke,kE)=>{"use strict";kE.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Cs=P((uke,PE)=>{"use strict";var LE=zn().extendFlat,coe=Mc(),DE={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},FE={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},voe=DE.flags.slice().concat(["fullReplot"]),hoe=FE.flags.slice().concat("layoutReplot");PE.exports={traces:DE,layout:FE,traceFlags:function(){return CE(voe)},layoutFlags:function(){return CE(hoe)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";N5.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};N5.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var O5=P((vke,NE)=>{"use strict";NE.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var y0=P(H1=>{"use strict";var OE=O5(),doe=OE.FORMAT_LINK,poe=OE.DATE_FORMAT_LINK;function moe(e){var r=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(r?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,doe,"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}".`,poe,"for details on the date formatting syntax."].join(" ")}H1.templateFormatStringDescription=moe;function I5(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var a=[],n=0;n{"use strict";function Cc(e,r){return r?r.d2l(e):e}function IE(e,r){return r?r.l2d(e):e}function yoe(e){return e.x0}function goe(e){return e.x1}function boe(e){return e.y0}function xoe(e){return e.y1}function BE(e){return e.x0shift||0}function zE(e){return e.x1shift||0}function GE(e){return e.y0shift||0}function UE(e){return e.y1shift||0}function Ug(e,r){return Cc(e.x1,r)+zE(e)-Cc(e.x0,r)-BE(e)}function Hg(e,r,t){return Cc(e.y1,t)+UE(e)-Cc(e.y0,t)-GE(e)}function _oe(e,r){return Math.abs(Ug(e,r))}function woe(e,r,t){return Math.abs(Hg(e,r,t))}function Aoe(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Ug(e,r),2)+Math.pow(Hg(e,r,t),2))}function Toe(e,r){return IE((Cc(e.x1,r)+zE(e)+Cc(e.x0,r)+BE(e))/2,r)}function Moe(e,r,t){return IE((Cc(e.y1,t)+UE(e)+Cc(e.y0,t)+GE(e))/2,t)}function Soe(e,r,t){return e.type!=="line"?void 0:Hg(e,r,t)/Ug(e,r)}HE.exports={x0:yoe,x1:goe,y0:boe,y1:xoe,slope:Soe,dx:Ug,dy:Hg,width:_oe,height:woe,length:Aoe,xcenter:Toe,ycenter:Moe}});var WE=P((pke,YE)=>{"use strict";var Eoe=Cs().overrideAll,g0=ks(),VE=zi(),koe=kc().dash,Lc=zn().extendFlat,Coe=y0().shapeTexttemplateAttrs,Loe=Vg();YE.exports=Eoe({newshape:{visible:Lc({},g0.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Lc({},g0.legend,{}),legendgroup:Lc({},g0.legendgroup,{}),legendgrouptitle:{text:Lc({},g0.legendgrouptitle.text,{}),font:VE({})},legendrank:Lc({},g0.legendrank,{}),legendwidth:Lc({},g0.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Lc({},koe,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Lc({},g0.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:Coe({newshape:!0},{keys:Object.keys(Loe)}),font:VE({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var XE=P((mke,jE)=>{"use strict";var Doe=kc().dash,Foe=zn().extendFlat;jE.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:Foe({},Doe,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Yg=P((yke,ZE)=>{"use strict";ZE.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var rd=P((gke,KE)=>{"use strict";var B5=zi(),Roe=U1(),Wg=wf(),JE=WE(),$E=XE(),qoe=Yg(),QE=zn().extendFlat,jg=B5({editType:"calc"});jg.family.dflt='"Open Sans", verdana, arial, sans-serif';jg.size.dflt=12;jg.color.dflt=Wg.defaultLine;KE.exports={font:jg,title:{text:{valType:"string",editType:"layoutstyle"},font:B5({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:B5({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:QE(qoe({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Wg.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Wg.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Wg.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:JE.newshape,activeshape:JE.activeshape,newselection:$E.newselection,activeselection:$E.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:QE({},Roe.transition,{editType:"none"})}});var ek=Wh(()=>{});var Poe={};var rk=Wh(()=>{ek()});var Bt=P(oa=>{"use strict";var td=m0(),tk=zg(),ak=F5(),Noe=Mc(),Ooe=G1().addStyleRule,nk=zn(),Ioe=ks(),Boe=rd(),zoe=nk.extendFlat,z5=nk.extendDeepAll;oa.modules={};oa.allCategories={};oa.allTypes=[];oa.subplotsRegistry={};oa.componentsRegistry={};oa.layoutArrayContainers=[];oa.layoutArrayRegexes=[];oa.traceLayoutAttributes={};oa.localeRegistry={};oa.apiMethodRegistry={};oa.collectableSubplotTypes=null;oa.register=function(r){if(oa.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var Woe=jh().timeFormat,pk=ya(),G5=m0(),Fc=Zh().mod,id=Qn(),Bl=id.BADNUM,jo=id.ONEDAY,V1=id.ONEHOUR,Dc=id.ONEMIN,nd=id.ONESEC,Y1=id.EPOCHJD,wu=Bt(),fk=jh().utcFormat,joe=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Xoe=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,uk=new Date().getFullYear()-70;function Au(e){return e&&wu.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Un.dateTick0=function(e,r){var t=Zoe(e,!!r);if(r<2)return t;var a=Un.dateTime2ms(t,e);return a+=jo*(r-1),Un.ms2DateTime(a,0,e)};function Zoe(e,r){return Au(e)?r?wu.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:wu.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Un.dfltRange=function(e){return Au(e)?wu.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Un.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Zg,Jg;Un.dateTime2ms=function(e,r){if(Un.isJSDate(e)){var t=e.getTimezoneOffset()*Dc,a=(e.getUTCMinutes()-e.getMinutes())*Dc+(e.getUTCSeconds()-e.getSeconds())*nd+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Dc;t=t-n/2+Fc(a-t+n/2,n)}return e=Number(e)-t,e>=Zg&&e<=Jg?e:Bl}if(typeof e!="string"&&typeof e!="number")return Bl;e=String(e);var i=Au(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.substr(1),r="");var l=i&&r.substr(0,7)==="chinese",s=e.match(l?Xoe:joe);if(!s)return Bl;var f=s[1],u=s[3]||"1",c=Number(s[5]||1),v=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(f.length===2)return Bl;f=Number(f);var g;try{var m=wu.getComponentMethod("calendars","getCal")(r);if(l){var b=u.charAt(u.length-1)==="i";u=parseInt(u,10),g=m.newDate(f,m.toMonthIndex(f,u,b),c)}else g=m.newDate(f,Number(u),c)}catch(_){return Bl}return g?(g.toJD()-Y1)*jo+v*V1+d*Dc+p*nd:Bl}f.length===2?f=(Number(f)+2e3-uk)%100+uk:f=Number(f),u-=1;var A=new Date(Date.UTC(2e3,u,c,v,d));return A.setUTCFullYear(f),A.getUTCMonth()!==u||A.getUTCDate()!==c?Bl:A.getTime()+p*nd};Zg=Un.MIN_MS=Un.dateTime2ms("-9999");Jg=Un.MAX_MS=Un.dateTime2ms("9999-12-31 23:59:59.9999");Un.isDateTime=function(e,r){return Un.dateTime2ms(e,r)!==Bl};function ad(e,r){return String(e+Math.pow(10,r)).substr(1)}var Xg=90*jo,ck=3*V1,vk=5*Dc;Un.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Zg&&e<=Jg))return Bl;r||(r=0);var a=Math.floor(Fc(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,f,u;if(Au(t)){var c=Math.floor(n/jo)+Y1,v=Math.floor(Fc(e,jo));try{i=wu.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=fk("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=r=Zg+jo&&e<=Jg-jo))return Bl;var r=Math.floor(Fc(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=Woe("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return mk(a,n,i,o,l)};function mk(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+ad(r,2)+":"+ad(t,2),(a||n)&&(e+=":"+ad(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+ad(n,i)}return e}Un.cleanDate=function(e,r,t){if(e===Bl)return r;if(Un.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Au(t))return G5.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Un.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Un.isDateTime(e,t))return G5.error("unrecognized date",e),r;return e};var Joe=/%\d?f/g,$oe=/%h/g,Qoe={1:"1",2:"1",3:"2",4:"2"};function hk(e,r,t,a){e=e.replace(Joe,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return l});var n=new Date(Math.floor(r+.05));if(e=e.replace($oe,function(){return Qoe[t("%q")(n)]}),Au(a))try{e=wu.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var Koe=[59,59.9,59.99,59.999,59.9999];function ele(e,r){var t=Fc(e+.05,jo),a=ad(Math.floor(t/V1),2)+":"+ad(Fc(Math.floor(t/Dc),60),2);if(r!=="M"){pk(r)||(r=0);var n=Math.min(Fc(e/nd,60),Koe[r]),i=(100+n).toFixed(r).substr(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Un.formatDate=function(e,r,t,a,n,i){if(n=Au(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`+i.year;else return ele(e,t)+` +`+hk(i.dayMonthYear,e,a,n);return hk(r,e,a,n)};var dk=3*jo;Un.incrementMonth=function(e,r,t){t=Au(t)&&t;var a=Fc(e,jo);if(e=Math.round(e-a),t)try{var n=Math.round(e/jo)+Y1,i=wu.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-Y1)*jo+a}catch(s){G5.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+dk);return l.setUTCMonth(l.getUTCMonth()+r)+a-dk};Un.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=Au(r)&&wu.getComponentMethod("calendars","getCal")(r),f=0;f{"use strict";gk.exports=function(r){return r}});var H5=P(Tu=>{"use strict";var rle=ya(),tle=m0(),ale=$g(),nle=Qn().BADNUM,U5=1e-9;Tu.findBin=function(e,r,t){if(rle(r.start))return t?Math.ceil((e-r.start)/r.size-U5)-1:Math.floor((e-r.start)/r.size+U5);var a=0,n=r.length,i=0,o=n>1?(r[n-1]-r[0])/(n-1):1,l,s;for(o>=0?s=t?ile:ole:s=t?sle:lle,e+=o*U5*(t?-1:1)*(o>=0?1:-1);a90&&tle.log("Long binary search..."),a-1};function ile(e,r){return er}function sle(e,r){return e>=r}Tu.sorterAsc=function(e,r){return e-r};Tu.sorterDes=function(e,r){return r-e};Tu.distinctVals=function(e){var r=e.slice();r.sort(Tu.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===nle;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],f=s-o;o===void 0?(i.push(s),o=s):f>n&&(a=Math.min(a,f),i.push(s),o=s)}return{vals:i,minDiff:a}};Tu.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,o=0,l=t?0:1,s=t?1:0,f=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};Tu.findIndexOfMin=function(e,r){r=r||ale;for(var t=1/0,a,n=0;n{"use strict";bk.exports=function(r){return Object.keys(r).sort()}});var xk=P(Hn=>{"use strict";var W1=ya(),fle=Vo().isArrayOrTypedArray;Hn.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),W1(r)||(r=!1),fle(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var Mk=P((kke,Tk)=>{"use strict";var _k=Zh(),V5=_k.mod,ule=_k.modHalf,j1=Math.PI,Rc=2*j1;function cle(e){return e/180*j1}function vle(e){return e/j1*180}function Y5(e){return Math.abs(e[1]-e[0])>Rc-1e-14}function wk(e,r){return ule(r-e,Rc)}function hle(e,r){return Math.abs(wk(e,r))}function Ak(e,r){if(Y5(r))return!0;var t,a;r[0]a&&(a+=Rc);var n=V5(e,Rc),i=n+Rc;return n>=t&&n<=a||i>=t&&i<=a}function dle(e,r,t,a){if(!Ak(r,a))return!1;var n,i;return t[0]=n&&e<=i}function W5(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=Y5([t,a]),s,f,u,c,v;l?(s=0,f=j1,u=Rc):t{"use strict";b0.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};b0.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};b0.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};b0.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};b0.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};b0.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var Ck=P(x0=>{"use strict";var j5=Zh().mod;x0.segmentsIntersect=kk;function kk(e,r,t,a,n,i,o,l){var s=t-e,f=n-e,u=o-n,c=a-r,v=i-r,d=l-i,p=s*d-u*c;if(p===0)return null;var g=(f*d-u*v)/p,m=(f*c-s*v)/p;return m<0||m>1||g<0||g>1?null:{x:e+s*g,y:r+c*g}}x0.segmentDistance=function(r,t,a,n,i,o,l,s){if(kk(r,t,a,n,i,o,l,s))return 0;var f=a-r,u=n-t,c=l-i,v=s-o,d=f*f+u*u,p=c*c+v*v,g=Math.min(Kg(f,u,d,i-r,o-t),Kg(f,u,d,l-r,s-t),Kg(c,v,p,r-i,t-o),Kg(c,v,p,a-i,n-o));return Math.sqrt(g)};function Kg(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var o=a-e,l=n-r;return o*o+l*l}else{var s=a*r-n*e;return s*s/t}}var e2,X5,Ek;x0.getTextLocation=function(r,t,a,n){if((r!==X5||n!==Ek)&&(e2={},X5=r,Ek=n),e2[a])return e2[a];var i=r.getPointAtLength(j5(a-n/2,t)),o=r.getPointAtLength(j5(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(j5(a,t)),f=(s.x*4+i.x+o.x)/6,u=(s.y*4+i.y+o.y)/6,c={x:f,y:u,theta:l};return e2[a]=c,c};x0.clearLocationCache=function(){X5=null};x0.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,s=0,f=r.getTotalLength(),u=f,c,v;function d(g){var m=r.getPointAtLength(g);g===0?c=m:g===f&&(v=m);var b=m.xi?m.x-i:0,A=m.yl?m.y-l:0;return Math.sqrt(b*b+A*A)}for(var p=d(s);p;){if(s+=p+a,s>u)return;p=d(s)}for(p=d(u);p;){if(u-=p+a,s>u)return;p=d(u)}return{min:s,max:u,len:u-s,total:f,isClosed:s===0&&u===f&&Math.abs(c.x-v.x)<.1&&Math.abs(c.y-v.y)<.1}};x0.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),o=n.tolerance||.001,l=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,f=0,u=0,c=i,v,d,p;f0?c=v:u=v,f++}return d}});var r2=P(X1=>{"use strict";var Mu={};X1.throttle=function(r,t,a){var n=Mu[r],i=Date.now();if(!n){for(var o in Mu)Mu[o].tsn.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};X1.done=function(e){var r=Mu[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};X1.clear=function(e){if(e)Lk(Mu[e]),delete Mu[e];else for(var r in Mu)X1.clear(r)};function Lk(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Fk=P((Fke,Dk)=>{"use strict";Dk.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var Rk=P((Rke,t2)=>{"use strict";t2.exports=Z5;t2.exports.isMobile=Z5;t2.exports.default=Z5;var gle=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,ble=/CrOS/,xle=/android|ipad|playbook|silk/i;function Z5(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=gle.test(r)&&!ble.test(r)||!!e.tablet&&xle.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var Pk=P((qke,qk)=>{"use strict";var _le=ya(),wle=Rk();qk.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=Ale(),typeof t!="string")return!0;var a=wle({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;l--){var s=n[l];if(s.substr(0,8)==="Version/"){var f=s.substr(8).split(".")[0];if(_le(f)&&(f=+f),f>=13)return!0}}}return a};function Ale(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var Ok=P((Pke,Nk)=>{"use strict";var Tle=ha();Nk.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][i]=Tle.select(this)}),n}});var Bk=P((Nke,Ik)=>{"use strict";var Mle=Bt();Ik.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[a]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=Mle.localeRegistry}var f=a.split("-")[0];if(f===a)break;a=f}return t}});var Gk=P((Oke,zk)=>{"use strict";zk.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";Uk.exports=function(r){for(var t=kle(r)?Ele:Sle,a=[],n=0;n{"use strict";Vk.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var jk=P((zke,Wk)=>{"use strict";var Cle=ya(),Lle=Qn().BADNUM,Dle=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Wk.exports=function(r){return typeof r=="string"&&(r=r.replace(Dle,"")),Cle(r)?Number(r):Lle}});var Ur=P((Gke,oC)=>{"use strict";var Z1=ha(),Fle=jh().utcFormat,Rle=g5().format,Kk=ya(),eC=Qn(),rC=eC.FP_SAFE,qle=-rC,Xk=eC.BADNUM,We=oC.exports={};We.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var Zk={};We.warnBadFormat=function(e){var r=String(e);Zk[r]||(Zk[r]=1,We.warn('encountered bad format: "'+r+'"'))};We.noFormat=function(e){return String(e)};We.numberFormat=function(e){var r;try{r=Rle(We.adjustFormat(e))}catch(t){return We.warnBadFormat(e),We.noFormat}return r};We.nestedProperty=Fg();We.keyedContainer=BM();We.relativeAttr=GM();We.isPlainObject=Mc();We.toLogRange=qg();We.relinkPrivateKeys=YM();var qc=Vo();We.isArrayBuffer=qc.isArrayBuffer;We.isTypedArray=qc.isTypedArray;We.isArrayOrTypedArray=qc.isArrayOrTypedArray;We.isArray1D=qc.isArray1D;We.ensureArray=qc.ensureArray;We.concat=qc.concat;We.maxRowLength=qc.maxRowLength;We.minRowLength=qc.minRowLength;var tC=Zh();We.mod=tC.mod;We.modHalf=tC.modHalf;var Pc=uS();We.valObjectMeta=Pc.valObjectMeta;We.coerce=Pc.coerce;We.coerce2=Pc.coerce2;We.coerceFont=Pc.coerceFont;We.coercePattern=Pc.coercePattern;We.coerceHoverinfo=Pc.coerceHoverinfo;We.coerceSelectionMarkerOpacity=Pc.coerceSelectionMarkerOpacity;We.validate=Pc.validate;var yl=yk();We.dateTime2ms=yl.dateTime2ms;We.isDateTime=yl.isDateTime;We.ms2DateTime=yl.ms2DateTime;We.ms2DateTimeLocal=yl.ms2DateTimeLocal;We.cleanDate=yl.cleanDate;We.isJSDate=yl.isJSDate;We.formatDate=yl.formatDate;We.incrementMonth=yl.incrementMonth;We.dateTick0=yl.dateTick0;We.dfltRange=yl.dfltRange;We.findExactDates=yl.findExactDates;We.MIN_MS=yl.MIN_MS;We.MAX_MS=yl.MAX_MS;var _0=H5();We.findBin=_0.findBin;We.sorterAsc=_0.sorterAsc;We.sorterDes=_0.sorterDes;We.distinctVals=_0.distinctVals;We.roundUp=_0.roundUp;We.sort=_0.sort;We.findIndexOfMin=_0.findIndexOfMin;We.sortObjectKeys=Qg();var Su=xk();We.aggNums=Su.aggNums;We.len=Su.len;We.mean=Su.mean;We.geometricMean=Su.geometricMean;We.median=Su.median;We.midRange=Su.midRange;We.variance=Su.variance;We.stdev=Su.stdev;We.interp=Su.interp;var Ls=Gg();We.init2dArray=Ls.init2dArray;We.transposeRagged=Ls.transposeRagged;We.dot=Ls.dot;We.translationMatrix=Ls.translationMatrix;We.rotationMatrix=Ls.rotationMatrix;We.rotationXYMatrix=Ls.rotationXYMatrix;We.apply3DTransform=Ls.apply3DTransform;We.apply2DTransform=Ls.apply2DTransform;We.apply2DTransform2=Ls.apply2DTransform2;We.convertCssMatrix=Ls.convertCssMatrix;We.inverseTransformMatrix=Ls.inverseTransformMatrix;var Tf=Mk();We.deg2rad=Tf.deg2rad;We.rad2deg=Tf.rad2deg;We.angleDelta=Tf.angleDelta;We.angleDist=Tf.angleDist;We.isFullCircle=Tf.isFullCircle;We.isAngleInsideSector=Tf.isAngleInsideSector;We.isPtInsideSector=Tf.isPtInsideSector;We.pathArc=Tf.pathArc;We.pathSector=Tf.pathSector;We.pathAnnulus=Tf.pathAnnulus;var ld=Sk();We.isLeftAnchor=ld.isLeftAnchor;We.isCenterAnchor=ld.isCenterAnchor;We.isRightAnchor=ld.isRightAnchor;We.isTopAnchor=ld.isTopAnchor;We.isMiddleAnchor=ld.isMiddleAnchor;We.isBottomAnchor=ld.isBottomAnchor;var sd=Ck();We.segmentsIntersect=sd.segmentsIntersect;We.segmentDistance=sd.segmentDistance;We.getTextLocation=sd.getTextLocation;We.clearLocationCache=sd.clearLocationCache;We.getVisibleSegment=sd.getVisibleSegment;We.findPointOnPath=sd.findPointOnPath;var i2=zn();We.extendFlat=i2.extendFlat;We.extendDeep=i2.extendDeep;We.extendDeepAll=i2.extendDeepAll;We.extendDeepNoArrays=i2.extendDeepNoArrays;var J5=m0();We.log=J5.log;We.warn=J5.warn;We.error=J5.error;var Ple=Qh();We.counterRegex=Ple.counter;var $5=r2();We.throttle=$5.throttle;We.throttleDone=$5.done;We.clearThrottle=$5.clear;var Ds=G1();We.getGraphDiv=Ds.getGraphDiv;We.isPlotDiv=Ds.isPlotDiv;We.removeElement=Ds.removeElement;We.addStyleRule=Ds.addStyleRule;We.addRelatedStyleRule=Ds.addRelatedStyleRule;We.deleteRelatedStyleRule=Ds.deleteRelatedStyleRule;We.setStyleOnHover=Ds.setStyleOnHover;We.getFullTransformMatrix=Ds.getFullTransformMatrix;We.getElementTransformMatrix=Ds.getElementTransformMatrix;We.getElementAndAncestors=Ds.getElementAndAncestors;We.equalDomRects=Ds.equalDomRects;We.clearResponsive=Fk();We.preserveDrawingBuffer=Pk();We.makeTraceGroups=Ok();We._=Bk();We.notifier=C5();We.filterUnique=Gk();We.filterVisible=Hk();We.pushUnique=F5();We.increment=Yk();We.cleanNumber=jk();We.ensureNumber=function(r){return Kk(r)?(r=Number(r),r>rC||r=r?!1:Kk(e)&&e>=0&&e%1===0};We.noop=zg();We.identity=$g();We.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};We.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};We.simpleMap=function(e,r,t,a,n){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,t)?n>10?(We.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};We.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};We.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),o=new Array(t),l,s,f,u;for(l=0;l=a&&(f-=a*Math.floor(f/a)),f<0?f=-1-f:f>=t&&(f=a-1-f),u+=e[f]*i[s];o[l]=u}return o};We.syncOrAsync=function(e,r,t){var a,n;function i(){return We.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};We.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};We.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,o;for(i=0;i0?n:0})};We.fillArray=function(e,r,t,a){if(a=a||We.identity,We.isArrayOrTypedArray(e))for(var n=0;nIle.test(window.navigator.userAgent);var Ble=/Firefox\/(\d+)\.\d+/;We.getFirefoxVersion=function(){var e=Ble.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};We.isD3Selection=function(e){return e instanceof Z1.selection};We.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};We.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};We.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;a.test(l);)l=l.replace(a,"$1"+i+"$2");return l+s};We.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var iC=/^\w*$/;We.templateString=function(e,r){var t={};return e.replace(We.TEMPLATE_STRING_REGEX,function(a,n){var i;return iC.test(n)?i=r[n]:(t[n]=t[n]||We.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var Ule={max:10,count:0,name:"hovertemplate"};We.hovertemplateString=function(){return Q5.apply(Ule,arguments)};var Hle={max:10,count:0,name:"texttemplate"};We.texttemplateString=function(){return Q5.apply(Hle,arguments)};var Vle=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Yle(e){var r=e.match(Vle);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var Wle={max:10,count:0,name:"texttemplate",parseMultDiv:!0};We.texttemplateStringForShapes=function(){return Q5.apply(Wle,arguments)};var Jk=/^[:|\|]/;function Q5(e,r,t){var a=this,n=arguments;return r||(r={}),e.replace(We.TEMPLATE_STRING_REGEX,function(i,o,l){var s=o==="xother"||o==="yother",f=o==="_xother"||o==="_yother",u=o==="_xother_"||o==="_yother_",c=o==="xother_"||o==="yother_",v=s||f||c||u,d=o;(f||u)&&(d=d.substring(1)),(c||u)&&(d=d.substring(0,d.length-1));var p=null,g=null;if(a.parseMultDiv){var m=Yle(d);d=m.key,p=m.op,g=m.number}var b;if(v){if(b=r[d],b===void 0)return""}else{var A,_;for(_=3;_=n2&&o<=$k,f=l>=n2&&l<=$k;if(s&&(a=10*a+o-n2),f&&(n=10*n+l-n2),!s||!f){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var od=2e9;We.seedPseudoRandom=function(){od=2e9};We.pseudoRandom=function(){var e=od;return od=(69069*od+1)%4294967296,Math.abs(od-e)<429496729?We.pseudoRandom():od/4294967296};We.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=We.extractOption(e,r,"htx","hovertext");if(We.isValidTextValue(n))return a(n);var i=We.extractOption(e,r,"tx","text");if(We.isValidTextValue(i))return a(i)};We.isValidTextValue=function(e){return e||e===0};We.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(f=1):f=0,We.strTranslate(n-f*(t+o),i-f*(a+l))+We.strScale(f)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};We.setTransormAndDisplay=function(e,r){e.attr("transform",We.getTextTransform(r)),e.style("display",r.scale?null:"none")};We.ensureUniformFontSize=function(e,r){var t=We.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};We.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};We.bigFont=function(e){return Math.round(1.2*e)};var Qk=We.getFirefoxVersion(),jle=Qk!==null&&Qk<86;We.getPositionFromD3Event=function(){return jle?[Z1.event.layerX,Z1.event.layerY]:[Z1.event.offsetX,Z1.event.offsetY]}});var fC=P(()=>{"use strict";var Xle=Ur(),lC={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(K5 in lC)sC=K5.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Xle.addStyleRule(sC,lC[K5]);var sC,K5});var e4=P((Vke,uC)=>{uC.exports=!0});var t4=P((Yke,cC)=>{"use strict";var Zle=e4(),r4;typeof window.matchMedia=="function"?r4=!window.matchMedia("(hover: none)").matches:r4=Zle;cC.exports=r4});var s2=P((Wke,a4)=>{"use strict";var fd=typeof Reflect=="object"?Reflect:null,vC=fd&&typeof fd.apply=="function"?fd.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},o2;fd&&typeof fd.ownKeys=="function"?o2=fd.ownKeys:Object.getOwnPropertySymbols?o2=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:o2=function(r){return Object.getOwnPropertyNames(r)};function Jle(e){console&&console.warn&&console.warn(e)}var dC=Number.isNaN||function(r){return r!==r};function dn(){dn.init.call(this)}a4.exports=dn;a4.exports.once=ese;dn.EventEmitter=dn;dn.prototype._events=void 0;dn.prototype._eventsCount=0;dn.prototype._maxListeners=void 0;var hC=10;function l2(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(dn,"defaultMaxListeners",{enumerable:!0,get:function(){return hC},set:function(e){if(typeof e!="number"||e<0||dC(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");hC=e}});dn.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};dn.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||dC(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 pC(e){return e._maxListeners===void 0?dn.defaultMaxListeners:e._maxListeners}dn.prototype.getMaxListeners=function(){return pC(this)};dn.prototype.emit=function(r){for(var t=[],a=1;a0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")vC(s,this,t);else for(var f=s.length,u=xC(s,f),a=0;a0&&o.length>n&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,Jle(l)}return e}dn.prototype.addListener=function(r,t){return mC(this,r,t,!1)};dn.prototype.on=dn.prototype.addListener;dn.prototype.prependListener=function(r,t){return mC(this,r,t,!0)};function $le(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function yC(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=$le.bind(a);return n.listener=t,a.wrapFn=n,n}dn.prototype.once=function(r,t){return l2(t),this.on(r,yC(this,r,t)),this};dn.prototype.prependOnceListener=function(r,t){return l2(t),this.prependListener(r,yC(this,r,t)),this};dn.prototype.removeListener=function(r,t){var a,n,i,o,l;if(l2(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,o=a.length-1;o>=0;o--)if(a[o]===t||a[o].listener===t){l=a[o].listener,i=o;break}if(i<0)return this;i===0?a.shift():Qle(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};dn.prototype.off=dn.prototype.removeListener;dn.prototype.removeAllListeners=function(r){var t,a,n;if(a=this._events,a===void 0)return this;if(a.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):a[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),o;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function gC(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?Kle(n):xC(n,n.length)}dn.prototype.listeners=function(r){return gC(this,r,!0)};dn.prototype.rawListeners=function(r){return gC(this,r,!1)};dn.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):bC.call(e,r)};dn.prototype.listenerCount=bC;function bC(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}dn.prototype.eventNames=function(){return this._eventsCount>0?o2(this._events):[]};function xC(e,r){for(var t=new Array(r),a=0;a{"use strict";var n4=s2().EventEmitter,tse={init:function(e){if(e._ev instanceof n4)return e;var r=new n4,t=new n4;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function o(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l{"use strict";var AC=Ur(),ase=p0().dfltConfig;function nse(e,r){for(var t=[],a,n=0;nase.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Eu.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Eu.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Eu.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";SC.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var vd=P(fi=>{"use strict";var zl=Bt(),$1=Ur(),u2=ks(),o4=rd(),ise=i4(),ose=U1(),lse=p0().configAttributes,EC=Cs(),Fs=$1.extendDeepAll,ud=$1.isPlainObject,sse=$1.isArrayOrTypedArray,c2=$1.nestedProperty,fse=$1.valObjectMeta,l4="_isSubplotObj",v2="_isLinkedToArray",use="_arrayAttrRegexps",CC="_deprecated",s4=[l4,v2,use,CC];fi.IS_SUBPLOT_OBJ=l4;fi.IS_LINKED_TO_ARRAY=v2;fi.DEPRECATED=CC;fi.UNDERSCORE_ATTRS=s4;fi.get=function(){var e={};return zl.allTypes.forEach(function(r){e[r]=vse(r)}),{defs:{valObjects:fse,metaKeys:s4.concat(["description","role","editType","impliedEdits"]),editType:{traces:EC.traces,layout:EC.layout},impliedEdits:{}},traces:e,layout:hse(),frames:dse(),animation:cd(ose),config:cd(lse)}};fi.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(s4.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!fi.isValObject(o)&&ud(o)&&i!=="impliedEdits"&&fi.crawl(o,r,n+1,l)}})};fi.isValObject=function(e){return e&&e.valType!==void 0};fi.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function o(s,f,u,c){t=t.slice(0,c).concat([f]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var v=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(f==="ticktext"||f==="tickvals"));v&&l(n,0,"")}function l(s,f,u){var c=s[t[f]],v=u+t[f];if(f===t.length-1)sse(c)&&r.push(i+v);else if(a[f]){if(Array.isArray(c))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!f2(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function f2(e){return e===Math.round(e)&&e>=0}function vse(e){var r,t;r=zl.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Fs({},u2),i=Fs({},r.attributes);fi.crawl(i,function(s,f,u,c,v){c2(n,v).set(void 0),s===void 0&&c2(i,v).set(void 0)}),Fs(a,n),zl.traceIs(e,"noOpacity")&&delete a.opacity,zl.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),zl.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Fs(a,i),t.attributes&&Fs(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:cd(a)};if(r.layoutAttributes){var l={};Fs(l,r.layoutAttributes),o.layoutAttributes=cd(l)}return r.animatable||fi.crawl(o,function(s){fi.isValObject(s)&&"anim"in s&&delete s.anim}),o}function hse(){var e={},r,t;Fs(e,o4);for(r in zl.subplotsRegistry)if(t=zl.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var hd=Ur(),bse=ks(),Nc="templateitemname",f4={name:{valType:"string",editType:"none"}};f4[Nc]={valType:"string",editType:"calc"};w0.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=f4.name,r[Nc]=f4[Nc],r};w0.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=hd.coerce(i,{},bse,"type");var o={type:t,_template:null};if(t in r){a=e[t];var l=r[t]%a.length;r[t]++,o._template=a[l]}return o}return{newTrace:n}};w0.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);hd.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};w0.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[FC(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(f){var u={name:f.name,_input:f},c=u[Nc]=f[Nc];if(!DC(c))return u._template=n,u;for(var v=0;v=a&&(t._input||{})._templateitemname;i&&(n=a);var o=r+"["+n+"]",l;function s(){l={},i&&(l[o]={},l[o][Nc]=i)}s();function f(d,p){l[d]=p}function u(d,p){i?hd.nestedProperty(l[o],d).set(p):l[o+"."+d]=p}function c(){var d=l;return s(),d}function v(d,p){d&&u(d,p);var g=c();for(var m in g)hd.nestedProperty(e,m).set(g[m])}return{modifyBase:f,modifyItem:u,getUpdateObj:c,applyUpdate:v}}});var Ri=P((Qke,RC)=>{"use strict";var Q1=Qh().counter;RC.exports={idRegex:{x:Q1("x","( domain)?"),y:Q1("y","( domain)?")},attrRegex:Q1("[xy]axis"),xAxisMatch:Q1("xaxis"),yAxisMatch:Q1("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var Sn=P(Xo=>{"use strict";var xse=Bt(),u4=Ri();Xo.id2name=function(r){if(!(typeof r!="string"||!r.match(u4.AX_ID_PATTERN))){var t=r.split(" ")[0].substr(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Xo.name2id=function(r){if(r.match(u4.AX_NAME_PATTERN)){var t=r.substr(5);return t==="1"&&(t=""),r.charAt(0)+t}};Xo.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(u4.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].substr(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};Xo.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Xo.listIds(e,r),i=new Array(n.length),o;for(o=0;oa?1:-1:+(e.substr(1)||1)-+(r.substr(1)||1)};Xo.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function qC(e,r){if(r&&r.length){for(var t=0;t{"use strict";function _se(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function wse(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}PC.exports={clearOutlineControllers:_se,clearOutline:wse}});var h2=P((rCe,NC)=>{"use strict";NC.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var K1=P(p2=>{"use strict";var d2=Bt(),tCe=Ri().SUBPLOT_PATTERN;p2.getSubplotCalcData=function(e,r,t){var a=d2.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o{"use strict";var Ase=Bt(),dd=Ur();A0.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=A0.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(o)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(o){OC(e,o,n.cache),n.check=function(){if(i){var u=OC(e,o,n.cache);return u.changed&&a&&n.lookupTable[u.value]!==void 0&&(n.disable(),Promise.resolve(a({value:u.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[u.value]})).then(n.enable,n.enable)),u.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;dd.isPlainObject(i)?c4(i,r,o,a+1):r(o,n,i)}})}});var bi=P((iCe,eL)=>{"use strict";var jC=ha(),Mse=jh().timeFormatLocale,Sse=g5().formatLocale,em=ya(),Ese=b5(),Ea=Bt(),XC=vd(),kse=$a(),Mt=Ur(),ZC=va(),GC=Qn().BADNUM,Zo=Sn(),Cse=Oc().clearOutline,Lse=h2(),v4=U1(),Dse=i4(),Fse=K1().getModuleCalcData,UC=Mt.relinkPrivateKeys,T0=Mt._,mt=eL.exports={};Mt.extendFlat(mt,Ea);mt.attributes=ks();mt.attributes.type.values=mt.allTypes;mt.fontAttrs=zi();mt.layoutAttributes=rd();var y2=zC();mt.executeAPICommand=y2.executeAPICommand;mt.computeAPICommandBindings=y2.computeAPICommandBindings;mt.manageCommandObserver=y2.manageCommandObserver;mt.hasSimpleAPICommandBindings=y2.hasSimpleAPICommandBindings;mt.redrawText=function(e){return e=Mt.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Ea.getComponentMethod("annotations","draw")(e),Ea.getComponentMethod("legend","draw")(e),Ea.getComponentMethod("colorbar","draw")(e),r(mt.previousPromises(e)))},300)})};mt.resize=function(e){e=Mt.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||Mt.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Mt.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Ea.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};mt.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};mt.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=Mt.ensureSingle(r._paper,"text","js-plot-link-container",function(s){s.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:ZC.defaultLine,"pointer-events":"all"}).each(function(){var f=jC.select(this);f.append("tspan").classed("js-link-to-tool",!0),f.append("tspan").classed("js-link-spacer",!0),f.append("tspan").classed("js-sourcelinks",!0)})}),a=t.node(),n={y:r._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=r.width-20?(n["text-anchor"]="start",n.x=5):(n["text-anchor"]="end",n.x=r._paper.attr("width")-7),t.attr(n);var i=t.select(".js-link-to-tool"),o=t.select(".js-link-spacer"),l=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&Rse(e,i),o.text(i.text()&&l.text()?" - ":"")}};function Rse(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){mt.sendDataToCloud(e)});else{var a=window.location.pathname.split("/"),n=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+a[2].split(".")[0]+"/"+a[1]+n})}}mt.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=jC.select(e).append("div").attr("id","hiddenform").style("display","none"),a=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),n=a.append("input").attr({type:"text",name:"data"});return n.node().value=mt.graphJson(e,!1,"keepdata"),a.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var qse=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Pse=["year","month","dayMonth","dayMonthYear"];mt.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],f=e.calcdata||[],u=e._context||{},c;e._transitionData||mt.createTransitionData(e),n._dfltTitle={plot:T0(e,"Click to enter Plot title"),subtitle:T0(e,"Click to enter Plot subtitle"),x:T0(e,"Click to enter X axis title"),y:T0(e,"Click to enter Y axis title"),colorbar:T0(e,"Click to enter Colorscale title"),annotation:T0(e,"new text")},n._traceWord=T0(e,"trace");var v=HC(e,qse);if(n._mapboxAccessToken=u.mapboxAccessToken,a._initialAutoSizeIsDone){var d=a.width,p=a.height;mt.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),mt.sanitizeMargins(n)}else{mt.supplyLayoutGlobalDefaults(i,n,v);var g=!i.width||!i.height,m=n.autosize,b=u.autosizable,A=g&&(m||b);A?mt.plotAutoSize(e,i,n):g&&mt.sanitizeMargins(n),!m&&g&&(i.width=n.width,i.height=n.height)}n._d3locale=Ise(v,n.separators),n._extraFormat=HC(e,Pse),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=Ose(),x=n._splomAxes={x:{},y:{}},T=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=Nse(o,s),mt.supplyDataDefaults(s,l,i,n);var E=Object.keys(x.x),S=Object.keys(x.y);if(E.length>1&&S.length>1){for(Ea.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&S.length>15&&n.shapes.length===0&&n.images.length===0,mt.linkSubplots(l,n,o,a),mt.cleanPlot(l,n,o,a);var R=!!(a._has&&a._has("cartesian")),H=!!(n._has&&n._has("cartesian")),X=R,le=H;X&&!le?a._bgLayer.remove():le&&!X&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Cse({_fullLayout:a}),Bse(l,n),UC(n,a),Ea.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var ae=n._tracePreGUI,$={},Z;for(Z in ae)$[Z]="old";for(c=0;c0){var u=1-2*i;o=Math.round(u*o),l=Math.round(u*l)}}var c=mt.layoutAttributes.width.min,v=mt.layoutAttributes.height.min;o1,p=!t.height&&Math.abs(a.height-l)>1;(p||d)&&(d&&(a.width=o),p&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),mt.sanitizeMargins(a)};mt.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Ea.componentsRegistry,i=r._basePlotModules,o,l,s,f=Ea.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(f),r._has("cartesian")&&(Ea.getComponentMethod("grid","contentDefaults")(e,r),f.finalizeSubplots(e,r));for(var u in r._subplots)r._subplots[u].sort(Mt.subplotSort);for(l=0;l1&&(t.l/=m,t.r/=m)}if(v){var b=(t.t+t.b)/v;b>1&&(t.t/=b,t.b/=b)}var A=t.xl!==void 0?t.xl:t.x,_=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,T=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:A,size:t.l+g},r:{val:_,size:t.r+g},b:{val:T,size:t.b+g},t:{val:x,size:t.t+g}},p[r]=1}if(!a._replotting)return mt.doAutoMargin(e)}};function Gse(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Zo.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}mt.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),JC(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=Mt.extendFlat({},n),s=i.l,f=i.r,u=i.t,c=i.b,v=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,g=r.minreducedheight;if(i.autoexpand!==!1){for(var m in v)d[m]||delete v[m];var b=e._fullLayout._reservedMargin;for(var A in b)for(var _ in b[A]){var x=b[A][_];o[_]=Math.max(o[_],x)}v.base={l:{val:0,size:s},r:{val:1,size:f},t:{val:1,size:u},b:{val:0,size:c}};for(var T in o){var E=0;for(var S in v)S!=="base"&&em(v[S][T].size)&&(E=v[S][T].size>E?v[S][T].size:E);var k=Math.max(0,i[T]-E);o[T]=Math.max(0,o[T]-k)}for(var F in v){var O=v[F].l||{},I=v[F].b||{},R=O.val,H=O.size,X=I.val,le=I.size,ae=t-o.r-o.l,$=a-o.t-o.b;for(var Z in v){if(em(H)&&v[Z].r){var J=v[Z].r.val,oe=v[Z].r.size;if(J>R){var ce=(H*J+(oe-ae)*R)/(J-R),De=(oe*(1-R)+(H-ae)*(1-J))/(J-R);ce+De>s+f&&(s=ce,f=De)}}if(em(le)&&v[Z].t){var Oe=v[Z].t.val,Ee=v[Z].t.size;if(Oe>X){var Je=(le*Oe+(Ee-$)*X)/(Oe-X),Ae=(Ee*(1-X)+(le-$)*(1-Oe))/(Oe-X);Je+Ae>c+u&&(c=Je,u=Ae)}}}}}var or=Mt.constrain(t-i.l-i.r,$C,p),Ge=Mt.constrain(a-i.t-i.b,QC,g),He=Math.max(0,t-or),Ve=Math.max(0,a-Ge);if(He){var Qe=(s+f)/He;Qe>1&&(s/=Qe,f/=Qe)}if(Ve){var ee=(c+u)/Ve;ee>1&&(c/=ee,u/=ee)}if(n.l=Math.round(s)+o.l,n.r=Math.round(f)+o.r,n.t=Math.round(u)+o.t,n.b=Math.round(c)+o.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(mt.didMarginChange(l,n)||Gse(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var _e=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount<_e)return Ea.call("_doPlot",e);r._size=l,Mt.warn("Too many auto-margin redraws.")}Use(e)};function Use(e){var r=Zo.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(t){for(var a=0;a1)return!0}return!1};mt.graphJson=function(e,r,t,a,n,i){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&mt.supplyDefaults(e);var o=n?e._fullData:e.data,l=n?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function f(v,d){if(typeof v=="function")return d?"_function_":null;if(Mt.isPlainObject(v)){var p={},g;return Object.keys(v).sort().forEach(function(_){if(["_","["].indexOf(_.charAt(0))===-1){if(typeof v[_]=="function"){d&&(p[_]="_function");return}if(t==="keepdata"){if(_.substr(_.length-3)==="src")return}else if(t==="keepstream"){if(g=v[_+"src"],typeof g=="string"&&g.indexOf(":")>0&&!Mt.isPlainObject(v.stream))return}else if(t!=="keepall"&&(g=v[_+"src"],typeof g=="string"&&g.indexOf(":")>0))return;p[_]=f(v[_],d)}}),p}var m=Array.isArray(v),b=Mt.isTypedArray(v);if((m||b)&&v.dtype&&v.shape){var A=v.bdata;return f({dtype:v.dtype,shape:v.shape,bdata:Mt.isArrayBuffer(A)?Ese.encode(A):A},d)}return m?v.map(function(_){return f(_,d)}):b?Mt.simpleMap(v,Mt.identity):Mt.isJSDate(v)?Mt.ms2DateTimeLocal(+v):v}var u={data:(o||[]).map(function(v){var d=f(v);return r&&delete d.fit,d})};if(!r&&(u.layout=f(l),n)){var c=l._size;u.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return s&&(u.frames=f(s)),i&&(u.config=f(e._context,!0)),a==="object"?u:JSON.stringify(u)};mt.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Ea.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var v=0,d=0;function p(){return v++,function(){d++,!a&&d===v&&l(c)}}t.runFn(p),setTimeout(p())})}function l(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Ea.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var f=[mt.previousPromises,s,t.prepareFn,mt.rehover,mt.reselect,o],u=Mt.syncOrAsync(f,e);return(!u||!u.then)&&(u=Promise.resolve()),u.then(function(){return e})}mt.doCalcdata=function(e,r){var t=Zo.list(e),a=e._fullData,n=e._fullLayout,i,o,l,s,f=new Array(a.length),u=(e.calcdata||[]).slice();for(e.calcdata=f,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},l=0;l=0;s--)if(T[s].enabled){i._indexToPoints=T[s]._indexToPoints;break}o&&o.calc&&(x=o.calc(e,i))}(!Array.isArray(x)||!x[0])&&(x=[{x:GC,y:GC}]),x[0].t||(x[0].t={}),x[0].trace=i,f[A]=x}}for(YC(t,a,n),l=0;l{"use strict";M0.xmlns="http://www.w3.org/2000/xmlns/";M0.svg="http://www.w3.org/2000/svg";M0.xlink="http://www.w3.org/1999/xlink";M0.svgAttrs={xmlns:M0.svg,"xmlns:xlink":M0.xlink}});var ho=P((lCe,rL)=>{"use strict";rL.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var po=P(Gl=>{"use strict";var Kn=ha(),ku=Ur(),Yse=ku.strTranslate,h4=Ic(),Wse=ho().LINE_SPACING,jse=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Gl.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&a.match(jse),i=Kn.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=ofe(e.node(),a);s&&e.style("pointer-events","all"),Gl.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var f=parseInt(e.node().style.fontSize,10),u={fontSize:f};$se(n[2],u,function(c,v,d){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var p=c&&c.select("svg");if(!p||!p.node()){l(),s();return}var g=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});g.node().appendChild(p.node()),v&&v.node()&&p.node().insertBefore(v.node().cloneNode(!0),p.node().firstChild);var m=d.width,b=d.height;p.attr({class:o,height:b,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var A=e.node().style.fill||"black",_=p.select("g");_.attr({fill:A,stroke:A});var x=_.node().getBoundingClientRect(),T=x.width,E=x.height;(T>m||E>b)&&(p.style("overflow","hidden"),x=p.node().getBoundingClientRect(),T=x.width,E=x.height);var S=+e.attr("x"),k=+e.attr("y"),F=f||e.node().getBoundingClientRect().height,O=-F/4;if(o[0]==="y")g.attr({transform:"rotate("+[-90,S,k]+")"+Yse(-T/2,O-E/2)});else if(o[0]==="l")k=O-E/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)S=0,k=O;else{var I=e.attr("text-anchor");S=S-T*(I==="middle"?.5:I==="end"?1:0),k=k+O-E/2}p.attr({x:S,y:k}),t&&t.call(e,g),s(g)})})):l(),e};var Xse=/(<|<|<)/g,Zse=/(>|>|>)/g;function Jse(e){return e.replace(Xse,"\\lt ").replace(Zse,"\\gt ")}var tL=[["$","$"],["\\(","\\)"]];function $se(e,r,t){var a=parseInt((MathJax.version||"").split(".")[0]);if(a!==2&&a!==3){ku.warn("No MathJax version:",MathJax.version);return}var n,i,o,l,s=function(){return i=ku.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:tL},displayAlign:"left"})},f=function(){i=ku.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=tL},u=function(){if(n=MathJax.Hub.config.menuSettings.renderer,n!=="SVG")return MathJax.Hub.setRenderer("SVG")},c=function(){n=MathJax.config.startup.output,n!=="svg"&&(MathJax.config.startup.output="svg")},v=function(){var A="math-output-"+ku.randstr({},64);l=Kn.select("body").append("div").attr({id:A}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(Jse(e));var _=l.node();return a===2?MathJax.Hub.Typeset(_):MathJax.typeset([_])},d=function(){var A=l.select(a===2?".MathJax_SVG":".MathJax"),_=!A.empty()&&l.select("svg").node();if(!_)ku.log("There was an error in the tex syntax.",e),t();else{var x=_.getBoundingClientRect(),T;a===2?T=Kn.select("body").select("#MathJax_SVG_glyphs"):T=A.select("defs"),t(A,T,x)}l.remove()},p=function(){if(n!=="SVG")return MathJax.Hub.setRenderer(n)},g=function(){n!=="svg"&&(MathJax.config.startup.output=n)},m=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(i)},b=function(){MathJax.config=i};a===2?MathJax.Hub.Queue(s,u,v,d,p,m):a===3&&(f(),c(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){v(),d(),g(),b()}))}var oL={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},Qse={sub:"0.3em",sup:"-0.6em"},Kse={sub:"-0.21em",sup:"0.42em"},aL="\u200B",nL=["http:","https:","mailto:","",void 0,":"],lL=Gl.NEWLINES=/(\r\n?|\n)/g,p4=/(<[^<>]*>)/,m4=/<(\/?)([^ >]*)(\s+(.*))?>/i,efe=//i;Gl.BR_TAG_ALL=//gi;var sL=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,fL=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,uL=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,rfe=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function S0(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&g2(a)}var tfe=/(^|;)\s*color:/;Gl.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,o=e.split(p4),l=[],s="",f=0,u=0;ui?l.push(c.substr(0,g-i)+n):l.push(c.substr(0,g));break}s=""}}return l.join("")};var afe={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},nfe=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function g2(e){return e.replace(nfe,function(r,t){var a;return t.charAt(0)==="#"?a=ife(t.charAt(1)==="x"?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):a=afe[t],a||r})}Gl.convertEntities=g2;function ife(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function ofe(e,r){r=r.replace(lL," ");var t=!1,a=[],n,i=-1;function o(){i++;var E=document.createElementNS(h4.svg,"tspan");Kn.select(E).attr({class:"line",dy:i*Wse+"em"}),e.appendChild(E),n=E;var S=a;if(a=[{node:E}],S.length>1)for(var k=1;k.",r);return}var S=a.pop();E!==S.type&&ku.log("Start tag <"+S.type+"> doesnt match end tag <"+E+">. Pretending it did match.",r),n=a[a.length-1].node}var u=efe.test(r);u?o():(n=e,a=[{node:e}]);for(var c=r.split(p4),v=0;v{"use strict";var lfe=ha(),x2=Es(),tm=ya(),b2=Ur(),vL=va(),sfe=h0().isValid;function ffe(e,r,t){var a=r?b2.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(b2.isArrayOrTypedArray(n)){for(var o=0;o=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function gL(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),o=0;o{"use strict";var xL=O5(),cfe=xL.FORMAT_LINK,vfe=xL.DATE_FORMAT_LINK;function hfe(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?y4:_L)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function y4(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+cfe+"."].join(" ")}function _L(e,r){return y4(e,r)+[" And for dates see: "+vfe+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}wL.exports={axisHoverFormat:hfe,descriptionOnlyNumbers:y4,descriptionWithDates:_L}});var Ul=P((vCe,BL)=>{"use strict";var AL=zi(),pd=wf(),IL=kc().dash,b4=zn().extendFlat,TL=$a().templatedArray,cCe=y0().templateFormatStringDescription,ML=am().descriptionWithDates,dfe=Qn().ONEDAY,Mf=Ri(),pfe=Mf.HOUR_PATTERN,mfe=Mf.WEEKDAY_PATTERN,g4={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},yfe=b4({},g4,{values:g4.values.slice().concat(["sync"])});function SL(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var EL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},kL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},CL={valType:"data_array",editType:"ticks"},LL={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function DL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function FL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var RL={valType:"color",dflt:pd.defaultLine,editType:"ticks"},qL={valType:"color",dflt:pd.lightLine,editType:"ticks"};function PL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var NL=b4({},IL,{editType:"ticks"}),OL={valType:"boolean",editType:"ticks"};BL.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:pd.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:AL({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Mf.idRegex.x.toString(),Mf.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Mf.idRegex.x.toString(),Mf.idRegex.y.toString()],editType:"calc"},rangebreaks:TL("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[mfe,pfe,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:dfe},editType:"calc"}),tickmode:yfe,nticks:SL(),tick0:EL,dtick:kL,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:CL,ticktext:{valType:"data_array",editType:"ticks"},ticks:LL,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:DL(),tickwidth:FL(),tickcolor:RL,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:b4({},IL,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:AL({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:ML("tick label")},tickformatstops:TL("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:ML("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:pd.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:OL,gridcolor:qL,gridwidth:PL(),griddash:NL,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:pd.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:pd.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Mf.idRegex.x.toString(),Mf.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Mf.idRegex.x.toString(),Mf.idRegex.y.toString()],editType:"plot"},minor:{tickmode:g4,nticks:SL("minor"),tick0:EL,dtick:kL,tickvals:CL,ticks:LL,ticklen:DL("minor"),tickwidth:FL("minor"),tickcolor:RL,gridcolor:qL,gridwidth:PL("minor"),griddash:NL,showgrid:OL,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var _2=P((hCe,UL)=>{"use strict";var pn=Ul(),zL=zi(),GL=zn().extendFlat,gfe=Cs().overrideAll;UL.exports=gfe({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:pn.linecolor,outlinewidth:pn.linewidth,bordercolor:pn.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:pn.minor.tickmode,nticks:pn.nticks,tick0:pn.tick0,dtick:pn.dtick,tickvals:pn.tickvals,ticktext:pn.ticktext,ticks:GL({},pn.ticks,{dflt:""}),ticklabeloverflow:GL({},pn.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:pn.ticklen,tickwidth:pn.tickwidth,tickcolor:pn.tickcolor,ticklabelstep:pn.ticklabelstep,showticklabels:pn.showticklabels,labelalias:pn.labelalias,tickfont:zL({}),tickangle:pn.tickangle,tickformat:pn.tickformat,tickformatstops:pn.tickformatstops,tickprefix:pn.tickprefix,showtickprefix:pn.showtickprefix,ticksuffix:pn.ticksuffix,showticksuffix:pn.showticksuffix,separatethousands:pn.separatethousands,exponentformat:pn.exponentformat,minexponent:pn.minexponent,showexponent:pn.showexponent,title:{text:{valType:"string"},font:zL({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var E0=P((pCe,VL)=>{"use strict";var bfe=_2(),xfe=Qh().counter,_fe=Qg(),HL=h0().scales,dCe=_fe(HL);function w2(e){return"`"+e+"`"}VL.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:a==="z",l=typeof t.colorscaleDflt=="string"?HL[t.colorscaleDflt]:null,s=t.editTypeOverride||"",f=r?r+".":"",u,c;"colorAttr"in t?(u=t.colorAttr,c=t.colorAttr):(u={z:"z",c:"color"}[a],c="in "+w2(f+u));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",g=a+"max",m=a+"mid",b=w2(f+d),A=w2(f+p),_=w2(f+g),x=A+" and "+_,T={};T[p]=T[g]=void 0;var E={};E[d]=!1;var S={};return u==="color"&&(S.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(S.color.anim=!0)),S[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},S[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:E},S[g]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:E},S[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},S.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},S.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},S.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(S.showscale={valType:"boolean",dflt:o,editType:"calc"},S.colorbar=bfe),t.noColorAxis||(S.coloraxis={valType:"subplotid",regex:xfe("coloraxis"),dflt:null,editType:"calc"}),S}});var _4=P((mCe,YL)=>{"use strict";var wfe=zn().extendFlat,Afe=E0(),x4=h0().scales;YL.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:x4.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:x4.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:x4.RdBu,editType:"calc"}},coloraxis:wfe({_isSubplotObj:!0,editType:"calc"},Afe("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var w4=P((yCe,WL)=>{"use strict";var Tfe=Ur();WL.exports=function(r){return Tfe.isPlainObject(r.colorbar)}});var M4=P(T4=>{"use strict";var A4=ya(),jL=Ur(),XL=Qn(),Mfe=XL.ONEDAY,Sfe=XL.ONEWEEK;T4.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Mfe:1;if(!e)return i;if(A4(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var o=e.charAt(0),l=e.substr(1);return l=A4(l)?Number(l):0,l<=0||!(a&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};T4.tick0=function(e,r,t,a){if(r==="date")return jL.cleanDate(e,jL.dateTick0(t,a%Sfe===0?1:0));if(!(a==="D1"||a==="D2"))return A4(e)?Number(e):0}});var S4=P((bCe,JL)=>{"use strict";var ZL=M4(),Efe=Ur().isArrayOrTypedArray,kfe=Vo().isTypedArraySpec,Cfe=Vo().decodeTypedArraySpec;JL.exports=function(r,t,a,n,i){i||(i={});var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,f=o?"minor.":"";function u(A){var _=l[A];return kfe(_)&&(_=Cfe(_)),_!==void 0?_:(s._template||{})[A]}var c=u("tick0"),v=u("dtick"),d=u("tickvals"),p=Efe(d)?"array":v?"linear":"auto",g=a(f+"tickmode",p);if(g==="auto"||g==="sync")a(f+"nticks");else if(g==="linear"){var m=s.dtick=ZL.dtick(v,n);s.tick0=ZL.tick0(c,n,t.calendar,m)}else if(n!=="multicategory"){var b=a(f+"tickvals");b===void 0?s.tickmode="auto":o||a("ticktext")}}});var k4=P((xCe,QL)=>{"use strict";var E4=Ur(),$L=Ul();QL.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?$L.minor:$L,f=i?"minor.":"",u=E4.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=E4.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),v=E4.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=a(f+"ticks",!i&&n.outerTicks||u||c||v?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var C4=P((_Ce,KL)=>{"use strict";KL.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var gl=P((wCe,eD)=>{"use strict";var A2=Ur(),Lfe=$a();eD.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=A2.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],f=Lfe.arrayTemplater(t,n,i),u,c;for(u=0;u{"use strict";var L4=Ur(),Dfe=va().contrast,rD=Ul(),Ffe=C4(),Rfe=gl();tD.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");L4.isPlainObject(o)||delete t.labelalias;var l=Ffe(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var f=i.font||{},u=t.color,c=t.ticklabelposition||"",v=c.indexOf("inside")!==-1?Dfe(i.bgColor):u&&u!==rD.color.dflt?u:f.color;if(L4.coerceFont(a,"tickfont",f,{overrideDflt:{color:v}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");Rfe(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:qfe}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",l),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function qfe(e,r){function t(n,i){return L4.coerce(e,r,rD.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var F4=P((TCe,aD)=>{"use strict";var Pfe=C4();aD.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=Pfe(r),s=a("tickprefix");s&&a("showtickprefix",l);var f=a("ticksuffix",o);f&&a("showticksuffix",l)}});var R4=P((MCe,nD)=>{"use strict";var Bc=Ur(),Nfe=$a(),Ofe=S4(),Ife=k4(),Bfe=D4(),zfe=F4(),Gfe=_2();nD.exports=function(r,t,a){var n=Nfe.newContainer(t,"colorbar"),i=r.colorbar||{};function o(I,R){return Bc.coerce(i,n,Gfe,I,R)}var l=a.margin||{t:0,b:0,l:0,r:0},s=a.width-l.l-l.r,f=a.height-l.t-l.b,u=o("orientation"),c=u==="v",v=o("thicknessmode");o("thickness",v==="fraction"?30/(c?s:f):30);var d=o("lenmode");o("len",d==="fraction"?1:c?f:s);var p=o("yref"),g=o("xref"),m=p==="paper",b=g==="paper",A,_,x,T="left";c?(x="middle",T=b?"left":"right",A=b?1.02:1,_=.5):(x=m?"bottom":"top",T="center",A=.5,_=m?1.02:1),Bc.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:A}},"x"),Bc.coerce(i,n,{y:{valType:"number",min:m?-2:0,max:m?3:1,dflt:_}},"y"),o("xanchor",T),o("xpad"),o("yanchor",x),o("ypad"),Bc.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var E=Bc.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",E.indexOf("inside")!==-1?"hide past domain":"hide past div"),Ofe(i,n,o,"linear");var S=a.font,k={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:S};E.indexOf("inside")!==-1&&(k.bgColor="black"),zfe(i,n,o,"linear",k),Bfe(i,n,o,"linear",k),Ife(i,n,o,"linear",k),o("title.text",a._dfltTitle.colorbar);var F=n.showticklabels?n.tickfont:S,O=Bc.extendFlat({},S,{family:F.family,size:Bc.bigFont(F.size)});Bc.coerceFont(o,"title.font",O),o("title.side",c?"top":"right")}});var md=P((SCe,lD)=>{"use strict";var iD=ya(),P4=Ur(),Ufe=w4(),Hfe=R4(),oD=h0().isValid,Vfe=Bt().traceIs;function q4(e,r){var t=r.slice(0,r.length-1);return r?P4.nestedProperty(e,t).get()||{}:e}lD.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,f=q4(r,o),u=q4(t,o),c=q4(t._template||{},o)||{},v=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},p=n(o+"coloraxis");if(p){var g=Vfe(t,"contour")&&P4.nestedProperty(t,"contours.coloring").get()||"heatmap",m=d[p];m?(m[2].push(v),m[0]!==g&&(m[0]=!1,P4.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[g,t,[v]];return}}var b=f[l+"min"],A=f[l+"max"],_=iD(b)&&iD(A)&&b{"use strict";var sD=Ur(),Yfe=$a(),fD=_4(),Wfe=md();uD.exports=function(r,t){function a(c,v){return sD.coerce(r,t,fD,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return sD.coerce(i,o,fD.coloraxis,c,v)}for(var s in n){var f=n[s];if(f[0])i=r[s]||{},o=Yfe.newContainer(t,s,"coloraxis"),o._name=s,Wfe(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var u=0;u{"use strict";var jfe=Ur(),Xfe=Rs().hasColorscale,Zfe=Rs().extractOpts;vD.exports=function(r,t){function a(u,c){var v=u["_"+c];v!==void 0&&(u[c]=v)}function n(u,c){var v=c.container?jfe.nestedProperty(u,c.container).get():u;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=Zfe(v),p=d.auto;(p||d.min===void 0)&&a(v,c.min),(p||d.max===void 0)&&a(v,c.max),d.autocolorscale&&a(v,"colorscale")}}for(var i=0;i{"use strict";var dD=ya(),N4=Ur(),Jfe=Rs().extractOpts;pD.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?N4.nestedProperty(t,o).get():t,s=Jfe(l),f=s.auto!==!1,u=s.min,c=s.max,v=s.mid,d=function(){return N4.aggNums(Math.min,null,i)},p=function(){return N4.aggNums(Math.max,null,i)};if(u===void 0?u=d():f&&(l._colorAx&&dD(u)?u=Math.min(u,d()):u=d()),c===void 0?c=p():f&&(l._colorAx&&dD(c)?c=Math.max(c,p()):c=p()),f&&v!==void 0&&(c-v>v-u?u=v-(c-v):c-v=0?g=n.colorscale.sequential:g=n.colorscale.sequentialminus,s._sync("colorscale",g)}}});var gd=P((LCe,mD)=>{"use strict";var T2=h0(),yd=Rs();mD.exports={moduleType:"component",name:"colorscale",attributes:E0(),layoutAttributes:_4(),supplyLayoutDefaults:cD(),handleDefaults:md(),crossTraceDefaults:hD(),calc:O4(),scales:T2.scales,defaultScale:T2.defaultScale,getScale:T2.get,isValidScale:T2.isValid,hasColorscale:yd.hasColorscale,extractOpts:yd.extractOpts,extractScale:yd.extractScale,flipScale:yd.flipScale,makeColorScaleFunc:yd.makeColorScaleFunc,makeColorScaleFuncFromTrace:yd.makeColorScaleFuncFromTrace}});var qi=P((DCe,gD)=>{"use strict";var yD=Ur(),$fe=Vo().isTypedArraySpec;gD.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 yD.isPlainObject(r)&&(yD.isArrayOrTypedArray(r.size)||$fe(r.size))}}});var I4=P((FCe,bD)=>{"use strict";var Qfe=ya();bD.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,o=a.sizemode==="area"?function(l){return Math.sqrt(l/n)}:function(l){return l/n};return function(l){var s=o(l/t);return Qfe(s)&&s>0?Math.max(s,i):0}}});var Cu=P(to=>{"use strict";var xD=Ur();to.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};to.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{AD.exports=aue;var B4={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},tue=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function aue(e){var r=[];return e.replace(tue,function(t,a,n){var i=a.toLowerCase();for(n=iue(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==B4[i])return n.unshift(a),r.push(n);if(n.length{"use strict";var oue=nm(),it=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Xt="M0,0Z",TD=Math.sqrt(2),zc=Math.sqrt(3),z4=Math.PI,G4=Math.cos,U4=Math.sin;CD.exports={circle:{n:0,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Jt(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.3,2);return Jt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.4,2),n=it(e*1.2,2);return Jt(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.8/TD,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return Jt(r,t,"M0,"+a+n+i+o+i+o+l+o+l+n+l+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*2/zc,2),n=it(e/2,2),i=it(e,2);return Jt(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*2/zc,2),n=it(e/2,2),i=it(e,2);return Jt(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*2/zc,2),n=it(e/2,2),i=it(e,2);return Jt(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*2/zc,2),n=it(e/2,2),i=it(e,2);return Jt(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.6,2),n=it(e*1.2,2);return Jt(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.6,2),n=it(e*1.2,2);return Jt(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.6,2),n=it(e*1.2,2);return Jt(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.6,2),n=it(e*1.2,2);return Jt(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.951,2),n=it(e*.588,2),i=it(-e,2),o=it(e*-.309,2),l=it(e*.809,2);return Jt(r,t,"M"+a+","+o+"L"+n+","+l+"H-"+n+"L-"+a+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2),n=it(e/2,2),i=it(e*zc/2,2);return Jt(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2),n=it(e/2,2),i=it(e*zc/2,2);return Jt(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.924,2),n=it(e*.383,2);return Jt(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(Zt(r))return Xt;var a=e*1.4,n=it(a*.225,2),i=it(a*.951,2),o=it(a*.363,2),l=it(a*.588,2),s=it(-a,2),f=it(a*-.309,2),u=it(a*.118,2),c=it(a*.809,2),v=it(a*.382,2);return Jt(r,t,"M"+n+","+f+"H"+i+"L"+o+","+u+"L"+l+","+c+"L0,"+v+"L-"+l+","+c+"L-"+o+","+u+"L-"+i+","+f+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.66,2),n=it(e*.38,2),i=it(e*.76,2);return Jt(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*zc*.8,2),n=it(e*.8,2),i=it(e*1.6,2),o=it(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Jt(r,t,"M-"+a+","+n+l+a+","+n+l+"0,-"+i+l+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*zc*.8,2),n=it(e*.8,2),i=it(e*1.6,2),o=it(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Jt(r,t,"M"+a+",-"+n+l+"-"+a+",-"+n+l+"0,"+i+l+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.1,2),n=it(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Jt(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.4,2),n=it(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Jt(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*.7,2),n=it(e*1.4,2);return Jt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.4,2),n=it(e*.7,2);return Jt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2),n=it(e/TD,2);return Jt(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.3,2);return Jt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.3,2),n=it(e*.65,2);return Jt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.4,2);return Jt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.2,2),n=it(e*.85,2);return Jt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e/2,2),n=it(e,2);return Jt(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.2,2),n=it(e*1.6,2),i=it(e*.8,2);return Jt(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.2,2),n=it(e*1.6,2),i=it(e*.8,2);return Jt(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.2,2),n=it(e*1.6,2),i=it(e*.8,2);return Jt(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.2,2),n=it(e*1.6,2),i=it(e*.8,2);return Jt(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.4,2);return Jt(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*1.4,2);return Jt(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2);return Jt(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2),n=it(e*2,2);return Jt(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2),n=it(e*2,2);return Jt(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*2,2),n=it(e,2);return Jt(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*2,2),n=it(e,2);return Jt(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2),n=it(e*2,2);return Jt(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e,2),n=it(e*2,2);return Jt(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*2,2),n=it(e,2);return Jt(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Zt(r))return Xt;var a=it(e*2,2),n=it(e,2);return Jt(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Zt(r))return Xt;var a=z4/2.5,n=2*e*G4(a),i=2*e*U4(a);return Jt(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Zt(r))return Xt;var a=z4/4,n=2*e*G4(a),i=2*e*U4(a);return Jt(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Zt(e){return e===null}var MD,SD,ED,kD;function Jt(e,r,t){if((!e||e%360===0)&&!r)return t;if(ED===e&&kD===r&&MD===t)return SD;ED=e,kD=r,MD=t;function a(m,b){var A=G4(m),_=U4(m),x=b[0],T=b[1]+(r||0);return[x*A-T*_,x*_+T*A]}for(var n=e/180*z4,i=0,o=0,l=oue(t),s="",f=0;f{"use strict";var xi=ha(),Ha=Ur(),lue=Ha.numberFormat,D0=ya(),X4=Es(),S2=Bt(),Gi=va(),sue=gd(),om=Ha.strTranslate,E2=po(),fue=Ic(),uue=ho(),cue=uue.LINE_SPACING,zD=$h().DESELECTDIM,vue=qi(),hue=I4(),due=Cu().appendArrayPointValue,bt=JD.exports={};bt.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,f=r.lineposition,u=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Gi.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),u&&e.style("text-transform",H4(mue(u))),s&&e.style("text-shadow",s==="auto"?E2.makeTextShadow(Gi.contrast(i)):H4(s)),f&&e.style("text-decoration-line",H4(yue(f)))};function H4(e){return e==="none"?void 0:e}var pue={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function mue(e){return pue[e]}function yue(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}bt.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};bt.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};bt.setRect=function(e,r,t,a,n){e.call(bt.setPosition,r,t).call(bt.setSize,a,n)};bt.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(D0(n)&&D0(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",om(n,i));else return!1;return!0};bt.translatePoints=function(e,r,t){e.each(function(a){var n=xi.select(this);bt.translatePoint(a,n,r,t)})};bt.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};bt.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,o=i.xcalendar,l=i.ycalendar,s=S2.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(f){bt.hideOutsideRangePoint(f,xi.select(this),t,a,o,l)})})}};bt.crispRound=function(e,r,t){return!r||!D0(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};bt.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=n||i.dash||"";Gi.stroke(r,a||i.color),bt.dashLine(r,l,o)};bt.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";xi.select(this).call(Gi.stroke,t||i.color).call(bt.dashLine,l,o)})};bt.dashLine=function(e,r,t){t=+t||0,r=bt.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};bt.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function GD(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=bt.getPatternAttr,l=n&&(o(n.shape,0,"")||o(n.path,0,""));if(l){var s=o(n.bgcolor,0,null),f=o(n.fgcolor,0,null),u=n.fgopacity,c=o(n.size,0,8),v=o(n.solidity,0,.3),d=r.uid;bt.pattern(e,"point",t,d,l,c,v,void 0,n.fillmode,s,f,u)}else if(i&&i.type!=="none"){var p=i.type,g="scatterfill-"+r.uid;if(a&&(g="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var m,b;p==="horizontal"?(m={x:i.start,y:0},b={x:i.stop,y:0}):p==="vertical"&&(m={x:0,y:i.start},b={x:0,y:i.stop}),m.x=r._xA.c2p(m.x===void 0?r._extremes.x.min[0].val:m.x,!0),m.y=r._yA.c2p(m.y===void 0?r._extremes.y.min[0].val:m.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(VD,t,g,"linear",i.colorscale,"fill",m,b,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(bt.gradient,t,g,p,i.colorscale,"fill")}else r.fillcolor&&e.call(Gi.fill,r.fillcolor)}bt.singleFillStyle=function(e,r){var t=xi.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};GD(e,n,r,!1)};bt.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=xi.select(this);a[0].trace&&GD(n,a[0].trace,r,t)})};var DD=LD();bt.symbolNames=[];bt.symbolFuncs=[];bt.symbolBackOffs=[];bt.symbolNeedLines={};bt.symbolNoDot={};bt.symbolNoFill={};bt.symbolList=[];Object.keys(DD).forEach(function(e){var r=DD[e],t=r.n;bt.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),bt.symbolNames[t]=e,bt.symbolFuncs[t]=r.f,bt.symbolBackOffs[t]=r.backoff||0,r.needLine&&(bt.symbolNeedLines[t]=!0),r.noDot?bt.symbolNoDot[t]=!0:bt.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(bt.symbolNoFill[t]=!0)});var gue=bt.symbolNames.length,bue="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";bt.symbolNumber=function(e){if(D0(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=bt.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=gue||e>=400?0:Math.floor(Math.max(e,0))};function UD(e,r,t,a){var n=e%100;return bt.symbolFuncs[n](r,t,a)+(e>=200?bue:"")}var FD=lue("~f"),HD={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};bt.gradient=function(e,r,t,a,n,i){var o=HD[a];return VD(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function VD(e,r,t,a,n,i,o,l,s,f){var u=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:f}:a==="radial"&&(c={node:"radialGradient",reversed:f});for(var v=new Array(u),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var f=bt.symbolNumber(e.mx||o.symbol)||0;e.om=f%200>=100;var u=$4(e,t),c=J4(e,t);r.attr("d",UD(f,s,u,c))}var v=!1,d,p,g;if(e.so)g=l.outlierwidth,p=l.outliercolor,d=o.outliercolor;else{var m=(l||{}).width;g=(e.mlw+1||m+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):Ha.isArrayOrTypedArray(l.color)?p=Gi.defaultLine:p=l.color,Ha.isArrayOrTypedArray(o.color)&&(d=Gi.defaultLine,v=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}if(e.om)r.call(Gi.stroke,d).style({"stroke-width":(g||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:g)+"px");var b=o.gradient,A=e.mgt;A?v=!0:A=b&&b.type,Ha.isArrayOrTypedArray(A)&&(A=A[0],HD[A]||(A=0));var _=o.pattern,x=bt.getPatternAttr,T=_&&(x(_.shape,e.i,"")||x(_.path,e.i,""));if(A&&A!=="none"){var E=e.mgc;E?v=!0:E=b.color;var S=t.uid;v&&(S+="-"+e.i),bt.gradient(r,n,S,A,[[0,E],[1,d]],"fill")}else if(T){var k=!1,F=_.fgcolor;!F&&i&&i.color&&(F=i.color,k=!0);var O=x(F,e.i,i&&i.color||null),I=x(_.bgcolor,e.i,null),R=_.fgopacity,H=x(_.size,e.i,8),X=x(_.solidity,e.i,.3);k=k||e.mcc||Ha.isArrayOrTypedArray(_.shape)||Ha.isArrayOrTypedArray(_.path)||Ha.isArrayOrTypedArray(_.bgcolor)||Ha.isArrayOrTypedArray(_.fgcolor)||Ha.isArrayOrTypedArray(_.size)||Ha.isArrayOrTypedArray(_.solidity);var le=t.uid;k&&(le+="-"+e.i),bt.pattern(r,"point",n,le,T,H,X,e.mcc,_.fillmode,I,O,R)}else Ha.isArrayOrTypedArray(d)?Gi.fill(r,d[e.i]):Gi.fill(r,d);g&&Gi.stroke(r,p)}};bt.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=bt.tryColorscale(t,""),r.lineScale=bt.tryColorscale(t,"line"),S2.traceIs(e,"symbols")&&(r.ms2mrc=vue.isBubble(e)?hue(e):function(){return(t.size||6)/2}),e.selectedpoints&&Ha.extendFlat(r,bt.makeSelectedPointStyleFns(e)),r};bt.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},o=a.marker||{},l=n.opacity,s=i.opacity,f=o.opacity,u=s!==void 0,c=f!==void 0;(Ha.isArrayOrTypedArray(l)||u||c)&&(r.selectedOpacityFn=function(x){var T=x.mo===void 0?n.opacity:x.mo;return x.selected?u?s:T:c?f:zD*T});var v=n.color,d=i.color,p=o.color;(d||p)&&(r.selectedColorFn=function(x){var T=x.mcc||v;return x.selected?d||T:p||T});var g=n.size,m=i.size,b=o.size,A=m!==void 0,_=b!==void 0;return S2.traceIs(e,"symbols")&&(A||_)&&(r.selectedSizeFn=function(x){var T=x.mrc||g/2;return x.selected?A?m/2:T:_?b/2:T}),r};bt.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},o=a.textfont||{},l=n.color,s=i.color,f=o.color;return r.selectedTextColorFn=function(u){var c=u.tc||l;return u.selected?s||c:f||(s?c:Gi.addOpacity(c,zD))},r};bt.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=bt.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&n.push(function(i,o){Gi.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&n.push(function(i,o){var l=o.mx||a.symbol||0,s=t.selectedSizeFn(o);i.attr("d",UD(bt.symbolNumber(l),s,$4(o,r),J4(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=xi.select(this),l=0;l0?t:0}bt.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=bt.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=xi.select(this),f=i?Ha.extractOption(l,r,"txt","texttemplate"):Ha.extractOption(l,r,"tx","text");if(!f&&f!==0){s.remove();return}if(i){var u=r._module.formatLabels,c=u?u(l,r,o):{},v={};due(v,r,l.i);var d=r._meta||{};f=Ha.texttemplateString(f,c,o._d3locale,v,l,d)}var p=l.tp||r.textposition,g=WD(l,r),m=a?a(l):l.tc||r.textfont.color;s.call(bt.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:g,color:m}).text(f).call(E2.convertToTspans,t).call(YD,p,g,l.mrc)})}};bt.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=bt.makeSelectedTextStyleFns(r);e.each(function(a){var n=xi.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=WD(a,r);Gi.fill(n,i);var s=S2.traceIs(r,"bar-like");YD(n,o,l,a.mrc2||a.mrc,s)})}};var RD=.5;bt.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||x>=u&&x<=s)&&(T<=c&&T>=f||T>=c&&T<=f)&&(e=[x,T])}return e}bt.applyBackoff=ZD;bt.makeTester=function(){var e=Ha.ensureSingleById(xi.select("body"),"svg","js-plotly-tester",function(t){t.attr(fue.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=Ha.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});bt.tester=e,bt.testref=r};bt.savedBBoxes={};var Y4=0,wue=1e4;bt.bBox=function(e,r,t){t||(t=qD(e));var a;if(t){if(a=bt.savedBBoxes[t],a)return Ha.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=qD(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=bt.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,a=bt.savedBBoxes[t],a)return Ha.extendFlat({},a)}}var f,u;r?f=e:(u=bt.tester.node(),f=e.cloneNode(!0),u.appendChild(f)),xi.select(f).attr("transform",null).call(E2.positionText,0,0);var c=f.getBoundingClientRect(),v=bt.testref.node().getBoundingClientRect();r||u.removeChild(f);var d={height:c.height,width:c.width,left:c.left-v.left,top:c.top-v.top,right:c.right-v.left,bottom:c.bottom-v.top};return Y4>=wue&&(bt.savedBBoxes={},Y4=0),t&&(bt.savedBBoxes[t]=d),Y4++,Ha.extendFlat({},d)};function qD(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}bt.setClipUrl=function(e,r,t){e.attr("clip-path",Z4(r,t))};function Z4(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}bt.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};bt.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||0,t=t||0,o=o.replace(a,"").trim(),o+=om(r,t),o=o.trim(),e[i]("transform",o),o};bt.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};bt.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||1,t=t||1,o=o.replace(a,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var Aue=/\s*sc.*/;bt.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(Aue,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var Tue=/translate\([^)]*\)\s*$/;bt.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=xi.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(Tue);r===1&&t===1?a=[]:a=[om(o,l),"scale("+r+","+t+")",om(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function J4(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}bt.getMarkerStandoff=J4;var im=Math.atan2,k0=Math.cos,xd=Math.sin;function PD(e,r){var t=r[0],a=r[1];return[t*k0(e)-a*xd(e),t*xd(e)+a*k0(e)]}var ND,OD,ID,BD,W4,j4;function $4(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||Ha.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);a=o[0],n=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)a=l.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var f=e.lonlat[0],u=e.lonlat[1],c=r._geo.project([f,u+1e-5]),v=r._geo.project([f+1e-5,u]),d=im(v[1]-n,v[0]-a),p=im(c[1]-n,c[0]-a),g;if(i==="north")g=t/180*Math.PI;else if(i==="previous"){var m=f/180*Math.PI,b=u/180*Math.PI,A=ND/180*Math.PI,_=OD/180*Math.PI,x=A-m,T=k0(_)*xd(x),E=xd(_)*k0(b)-k0(_)*xd(b)*k0(x);g=-im(T,E)-Math.PI,ND=f,OD=u}var S=PD(d,[k0(g),0]),k=PD(p,[xd(g),0]);t=im(S[1]+k[1],S[0]+k[0])/Math.PI*180,i==="previous"&&!(j4===r.uid&&e.i===W4+1)&&(t=null)}if(i==="previous"&&!r._geo)if(j4===r.uid&&e.i===W4+1&&D0(a)&&D0(n)){var F=a-ID,O=n-BD,I=r.line&&r.line.shape||"",R=I.slice(I.length-1);R==="h"&&(O=0),R==="v"&&(F=0),t+=im(O,F)/Math.PI*180+90}else t=null}return ID=a,BD=n,W4=e.i,j4=r.uid,t}bt.getMarkerAngle=$4});var lm=P((OCe,eF)=>{"use strict";var _d=ha(),Mue=ya(),Sue=bi(),Q4=Bt(),F0=Ur(),$D=F0.strTranslate,k2=Wa(),C2=va(),wd=po(),QD=$h(),Eue=ho().OPPOSITE_SIDE,KD=/ [XY][0-9]* /,K4=1.6,ew=1.6;function kue(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},f=t.attributes,u=t.transform,c=t.containerGroup,v=1,d=n.title,p=(d&&d.text?d.text:"").trim(),g=!1,m=d&&d.font?d.font:{},b=m.family,A=m.size,_=m.color,x=m.weight,T=m.style,E=m.variant,S=m.textcase,k=m.lineposition,F=m.shadow,O=t.subtitlePropName,I=!!O,R=t.subtitlePlaceholder,H=(n.title||{}).subtitle||{text:"",font:{}},X=H.text.trim(),le=!1,ae=1,$=H.font,Z=$.family,J=$.size,oe=$.color,ce=$.weight,De=$.style,Oe=$.variant,Ee=$.textcase,Je=$.lineposition,Ae=$.shadow,or;i==="title.text"?or="titleText":i.indexOf("axis")!==-1?or="axisTitleText":i.indexOf("colorbar")!==-1&&(or="colorbarTitleText");var Ge=e._context.edits[or];function He(rt,Jr){return rt===void 0||Jr===void 0?!1:rt.replace(KD," % ")===Jr.replace(KD," % ")}p===""?v=0:He(p,o)&&(Ge||(p=""),v=.2,g=!0),I&&(X===""?ae=0:He(X,R)&&(Ge||(X=""),ae=.2,le=!0)),t._meta?p=F0.templateString(p,t._meta):a._meta&&(p=F0.templateString(p,a._meta));var Ve=p||X||Ge,Qe;c||(c=F0.ensureSingle(a._infolayer,"g","g-"+r),Qe=a._hColorbarMoveTitle);var ee=c.selectAll("text."+r).data(Ve?[0]:[]);ee.enter().append("text"),ee.text(p).attr("class",r),ee.exit().remove();var _e=null,re=r+"-subtitle",Ze=X||Ge;if(I&&Ze&&(_e=c.selectAll("text."+re).data(Ze?[0]:[]),_e.enter().append("text"),_e.text(X).attr("class",re),_e.exit().remove()),!Ve)return c;function vr(rt,Jr){F0.syncOrAsync([rr,Cr],{title:rt,subtitle:Jr})}function rr(rt){var Jr=rt.title,wr=rt.subtitle,Hr;!u&&Qe&&(u={}),u?(Hr="",u.rotate&&(Hr+="rotate("+[u.rotate,f.x,f.y]+")"),(u.offset||Qe)&&(Hr+=$D(0,(u.offset||0)-(Qe||0)))):Hr=null,Jr.attr("transform",Hr);function Vr(Fe){if(Fe){var hr=_d.select(Fe.node().parentNode).select("."+re);if(!hr.empty()){var Or=Fe.node().getBBox();if(Or.height){var at=Or.y+Or.height+K4*J;hr.attr("y",at)}}}}if(Jr.style("opacity",v*C2.opacity(_)).call(k2.font,{color:C2.rgb(_),size:_d.round(A,2),family:b,weight:x,style:T,variant:E,textcase:S,shadow:F,lineposition:k}).attr(f).call(wd.convertToTspans,e,Vr),wr){var Pe=c.select("."+r+"-math-group"),sr=Jr.node().getBBox(),lt=Pe.node()?Pe.node().getBBox():void 0,Et=lt?lt.y+lt.height+K4*J:sr.y+sr.height+ew*J,wt=F0.extendFlat({},f,{y:Et});wr.attr("transform",Hr),wr.style("opacity",ae*C2.opacity(oe)).call(k2.font,{color:C2.rgb(oe),size:_d.round(J,2),family:Z,weight:ce,style:De,variant:Oe,textcase:Ee,shadow:Ae,lineposition:Je}).attr(wt).call(wd.convertToTspans,e)}return Sue.previousPromises(e)}function Cr(rt){var Jr=rt.title,wr=_d.select(Jr.node().parentNode);if(s&&s.selection&&s.side&&p){wr.attr("transform",null);var Hr=Eue[s.side],Vr=s.side==="left"||s.side==="top"?-1:1,Pe=Mue(s.pad)?s.pad:2,sr=k2.bBox(wr.node()),lt={t:0,b:0,l:0,r:0},Et=e._fullLayout._reservedMargin;for(var wt in Et)for(var Fe in Et[wt]){var hr=Et[wt][Fe];lt[Fe]=Math.max(lt[Fe],hr)}var Or={left:lt.l,top:lt.t,right:a.width-lt.r,bottom:a.height-lt.b},at=s.maxShift||Vr*(Or[s.side]-sr[s.side]),Yr=0;if(at<0)Yr=at;else{var nt=s.offsetLeft||0,vt=s.offsetTop||0;sr.left-=nt,sr.right-=nt,sr.top-=vt,sr.bottom-=vt,s.selection.each(function(){var et=k2.bBox(this);F0.bBoxIntersect(sr,et,Pe)&&(Yr=Math.max(Yr,Vr*(et[s.side]-sr[Hr])+Pe))}),Yr=Math.min(at,Yr),n._titleScoot=Math.abs(Yr)}if(Yr>0||at<0){var ot={left:[-Yr,0],right:[Yr,0],top:[0,-Yr],bottom:[0,Yr]}[s.side];wr.attr("transform",$D(ot[0],ot[1]))}}}ee.call(vr,_e);function Lr(rt,Jr){rt.text(Jr).on("mouseover.opacity",function(){_d.select(this).transition().duration(QD.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){_d.select(this).transition().duration(QD.HIDE_PLACEHOLDER).style("opacity",0)})}if(Ge&&(p?ee.on(".opacity",null):(Lr(ee,o),g=!0),ee.call(wd.makeEditable,{gd:e}).on("edit",function(rt){l!==void 0?Q4.call("_guiRestyle",e,i,rt,l):Q4.call("_guiRelayout",e,i,rt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(vr)}).on("input",function(rt){this.text(rt||" ").call(wd.positionText,f.x,f.y)}),I)){if(I&&!p){var _r=ee.node().getBBox(),Pr=_r.y+_r.height+ew*J;_e.attr("y",Pr)}X?_e.on(".opacity",null):(Lr(_e,R),le=!0),_e.call(wd.makeEditable,{gd:e}).on("edit",function(rt){Q4.call("_guiRelayout",e,"title.subtitle.text",rt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(vr)}).on("input",function(rt){this.text(rt||" ").call(wd.positionText,_e.attr("x"),_e.attr("y"))})}return ee.classed("js-placeholder",g),_e&&_e.classed("js-placeholder",le),c}eF.exports={draw:kue,SUBTITLE_PADDING_EM:ew,SUBTITLE_PADDING_MATHJAX_EM:K4}});var O2=P((ICe,iF)=>{"use strict";var Cue=ha(),Lue=jh().utcFormat,Qa=Ur(),Due=Qa.numberFormat,Sf=ya(),Gc=Qa.cleanNumber,Fue=Qa.ms2DateTime,rF=Qa.dateTime2ms,Ef=Qa.ensureNumber,tF=Qa.isArrayOrTypedArray,Uc=Qn(),L2=Uc.FP_SAFE,qs=Uc.BADNUM,Rue=Uc.LOG_CLIP,que=Uc.ONEWEEK,D2=Uc.ONEDAY,F2=Uc.ONEHOUR,aF=Uc.ONEMIN,nF=Uc.ONESEC,R2=Sn(),N2=Ri(),q2=N2.HOUR_PATTERN,P2=N2.WEEKDAY_PATTERN;function sm(e){return Math.pow(10,e)}function rw(e){return e!=null}iF.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(x,T){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&T&&r.range&&r.range.length===2){var E=r.range[0],S=r.range[1];return .5*(E+S-2*Rue*Math.abs(E-S))}else return qs}function o(x,T,E,S){if((S||{}).msUTC&&Sf(x))return+x;var k=rF(x,E||r.calendar);if(k===qs)if(Sf(x)){x=+x;var F=Math.floor(Qa.mod(x+.05,1)*10),O=Math.round(x-F/10);k=rF(new Date(O))+F/10}else return qs;return k}function l(x,T,E){return Fue(x,T,E||r.calendar)}function s(x){return r._categories[Math.round(x)]}function f(x){if(rw(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var T=r._categories.length-1;return r._categoriesMap[x]=T,T}return qs}function u(x,T){for(var E=new Array(T),S=0;Sr.range[1]&&(E=!E);for(var S=E?-1:1,k=S*x,F=0,O=0;OR)F=O+1;else{F=k<(I+R)/2?O:O+1;break}}var H=r._B[F]||0;return isFinite(H)?p(x,r._m2,H):0},b=function(x){var T=r._rangebreaks.length;if(!T)return g(x,r._m,r._b);for(var E=0,S=0;Sr._rangebreaks[S].pmax&&(E=S+1);return g(x,r._m2,r._B[E])}}r.c2l=r.type==="log"?i:Ef,r.l2c=r.type==="log"?sm:Ef,r.l2p=m,r.p2l=b,r.c2p=r.type==="log"?function(x,T){return m(i(x,T))}:m,r.p2c=r.type==="log"?function(x){return sm(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Gc,r.c2d=r.c2r=r.l2d=r.l2r=Ef,r.d2p=r.r2p=function(x){return r.l2p(Gc(x))},r.p2d=r.p2r=b,r.cleanPos=Ef):r.type==="log"?(r.d2r=r.d2l=function(x,T){return i(Gc(x),T)},r.r2d=r.r2c=function(x){return sm(Gc(x))},r.d2c=r.r2l=Gc,r.c2d=r.l2r=Ef,r.c2r=i,r.l2d=sm,r.d2p=function(x,T){return r.l2p(r.d2r(x,T))},r.p2d=function(x){return sm(b(x))},r.r2p=function(x){return r.l2p(Gc(x))},r.p2r=b,r.cleanPos=Ef):r.type==="date"?(r.d2r=r.r2d=Qa.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(x,T,E){return r.l2p(o(x,0,E))},r.p2d=r.p2r=function(x,T,E){return l(b(x),T,E)},r.cleanPos=function(x){return Qa.cleanDate(x,qs,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=f,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var T=d(x);return T!==void 0?T:r.fraction2r(.5)},r.l2r=r.c2r=Ef,r.r2l=d,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:Ef(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var T=v(x);return T!==void 0?T:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Ef,r.r2l=v,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:Ef(x)},r.setupMultiCategory=function(x){var T=r._traceIndices,E,S,k=r._matchGroup;if(k&&r._categories.length===0){for(var F in k)if(F!==a){var O=t[R2.id2name(F)];T=T.concat(O._traceIndices)}}var I=[[0,{}],[0,{}]],R=[];for(E=0;EO[1]&&(S[F?0:1]=E),S[0]===S[1]){var I=r.l2r(T),R=r.l2r(E);if(T!==void 0){var H=I+1;E!==void 0&&(H=Math.min(H,R)),S[F?1:0]=H}if(E!==void 0){var X=R+1;T!==void 0&&(X=Math.max(X,I)),S[F?0:1]=X}}}},r.cleanRange=function(x,T){r._cleanRange(x,T),r.limitRange(x)},r._cleanRange=function(x,T){T||(T={}),x||(x="range");var E=Qa.nestedProperty(r,x).get(),S,k;if(r.type==="date"?k=Qa.dfltRange(r.calendar):n==="y"?k=N2.DFLTRANGEY:r._name==="realaxis"?k=[0,1]:k=T.dfltRange||N2.DFLTRANGEX,k=k.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(k[0]=0),!E||E.length!==2){Qa.nestedProperty(r,x).set(k);return}var F=E[0]===null,O=E[1]===null;for(r.type==="date"&&!r.autorange&&(E[0]=Qa.cleanDate(E[0],qs,r.calendar),E[1]=Qa.cleanDate(E[1],qs,r.calendar)),S=0;S<2;S++)if(r.type==="date"){if(!Qa.isDateTime(E[S],r.calendar)){r[x]=k;break}if(r.r2l(E[0])===r.r2l(E[1])){var I=Qa.constrain(r.r2l(E[0]),Qa.MIN_MS+1e3,Qa.MAX_MS-1e3);E[0]=r.l2r(I-1e3),E[1]=r.l2r(I+1e3);break}}else{if(!Sf(E[S]))if(!(F||O)&&Sf(E[1-S]))E[S]=E[1-S]*(S?10:.1);else{r[x]=k;break}if(E[S]<-L2?E[S]=-L2:E[S]>L2&&(E[S]=L2),E[0]===E[1]){var R=Math.max(1,Math.abs(E[0]*1e-6));E[0]-=R,E[1]+=R}}},r.setScale=function(x){var T=t._size;if(r.overlaying){var E=R2.getFromId({_fullLayout:t},r.overlaying);r.domain=E.domain}var S=x&&r._r?"_r":"range",k=r.calendar;r.cleanRange(S);var F=r.r2l(r[S][0],k),O=r.r2l(r[S][1],k),I=n==="y";if(I?(r._offset=T.t+(1-r.domain[1])*T.h,r._length=T.h*(r.domain[1]-r.domain[0]),r._m=r._length/(F-O),r._b=-r._m*O):(r._offset=T.l+r.domain[0]*T.w,r._length=T.w*(r.domain[1]-r.domain[0]),r._m=r._length/(O-F),r._b=-r._m*F),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var R,H;if(r._rangebreaks=r.locateBreaks(Math.min(F,O),Math.max(F,O)),r._rangebreaks.length){for(R=0;RO&&(X=!X),X&&r._rangebreaks.reverse();var le=X?-1:1;for(r._m2=le*r._length/(Math.abs(O-F)-r._lBreaks),r._B.push(-r._m2*(I?O:F)),R=0;Rk&&(k+=7,Fk&&(k+=24,F=S&&F=S&&x=Ae.min&&(DeAe.max&&(Ae.max=Oe),Ee=!1)}Ee&&O.push({min:De,max:Oe})}};for(E=0;E{"use strict";var oF=ya(),tw=Ur(),Pue=Qn().BADNUM,I2=tw.isArrayOrTypedArray,Nue=tw.isDateTime,Oue=tw.cleanNumber,lF=Math.round;fF.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(I2(n)&&!n.length)return"-";if(!i&&Uue(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;li*2}function sF(e){return Math.max(1,(e-1)/1e3)}function Gue(e,r){for(var t=e.length,a=sF(t),n=0,i=0,o={},l=0;ln*2}function Uue(e){return I2(e[0])&&I2(e[1])}});var Ad=P((zCe,yF)=>{"use strict";var Hue=ha(),hF=ya(),Hc=Ur(),B2=Qn().FP_SAFE,Vue=Bt(),Yue=Wa(),dF=Sn(),Wue=dF.getFromId,jue=dF.isLinked;yF.exports={applyAutorangeOptions:mF,getAutoRange:nw,makePadFn:iw,doAutoRange:Zue,findExtremes:Jue,concatExtremes:sw};function nw(e,r){var t,a,n=[],i=e._fullLayout,o=iw(i,r,0),l=iw(i,r,1),s=sw(e,r),f=s.min,u=s.max;if(f.length===0||u.length===0)return Hc.simpleMap(r.range,r.r2l);var c=f[0].val,v=u[0].val;for(t=1;t0&&(O=_-o(E)-l(S),O>x?I/O>T&&(k=E,F=S,T=I/O):I/_>T&&(k={val:E.val,nopad:1},F={val:S.val,nopad:1},T=I/_));function R($,Z){return Math.max($,l(Z))}if(c===v){var H=c-1,X=c+1;if(b)if(c===0)n=[0,1];else{var le=(c>0?u:f).reduce(R,0),ae=c/(1-Math.min(.5,le/_));n=c>0?[0,ae]:[ae,0]}else A?n=[Math.max(0,H),Math.max(1,X)]:n=[H,X]}else b?(k.val>=0&&(k={val:0,nopad:1}),F.val<=0&&(F={val:0,nopad:1})):A&&(k.val-T*o(k)<0&&(k={val:0,nopad:1}),F.val<=0&&(F={val:1,nopad:1})),T=(F.val-k.val-uF(r,E.val,S.val))/(_-o(k)-l(F)),n=[k.val-T*o(k),F.val+T*l(F)];return n=mF(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Hc.simpleMap(n,r.l2r||Number)}function uF(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),E=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),S=x(t.vpadplus||t.vpad),k=x(t.vpadminus||t.vpad);if(!f){if(A=1/0,_=-1/0,s)for(c=0;c0&&(A=v),v>_&&v-B2&&(A=v),v>_&&v=I;c--)O(c);return{min:a,max:n,opts:t}}function ow(e,r,t,a){pF(e,r,t,a,$ue)}function lw(e,r,t,a){pF(e,r,t,a,Que)}function pF(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,s=0;s=t&&(f.extrapad||!o)){l=!1;break}else n(r,f.val)&&f.pad<=t&&(o||!f.extrapad)&&(e.splice(s,1),s--)}if(l){var u=i&&r===0;e.push({val:r,pad:u?0:t,extrapad:u?!1:o})}}function vF(e){return hF(e)&&Math.abs(e)=r}function Kue(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&z2(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&z2(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function ece(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&z2(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&z2(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function z2(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,a=s)}}return t=Kue(t,r),a=ece(a,r),[t,a]}});var mn=P((GCe,BF)=>{"use strict";var Hl=ha(),ei=ya(),Td=bi(),um=Bt(),It=Ur(),Md=It.strTranslate,R0=po(),rce=lm(),cm=va(),bl=Wa(),tce=Ul(),gF=M4(),Ui=Qn(),ace=Ui.ONEMAXYEAR,H2=Ui.ONEAVGYEAR,V2=Ui.ONEMINYEAR,nce=Ui.ONEMAXQUARTER,vw=Ui.ONEAVGQUARTER,Y2=Ui.ONEMINQUARTER,ice=Ui.ONEMAXMONTH,Sd=Ui.ONEAVGMONTH,W2=Ui.ONEMINMONTH,xl=Ui.ONEWEEK,mo=Ui.ONEDAY,Vc=mo/2,Cf=Ui.ONEHOUR,vm=Ui.ONEMIN,j2=Ui.ONESEC,oce=Ui.ONEMILLI,lce=Ui.ONEMICROSEC,q0=Ui.MINUS_SIGN,J2=Ui.BADNUM,hw={K:"zeroline"},dw={K:"gridline",L:"path"},pw={K:"minor-gridline",L:"path"},CF={K:"tick",L:"path"},bF={K:"tick",L:"text"},xF={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},$2=ho(),fm=$2.MID_SHIFT,P0=$2.CAP_SHIFT,hm=$2.LINE_SPACING,sce=$2.OPPOSITE_SIDE,X2=3,Qr=BF.exports={};Qr.setConvert=O2();var fce=aw(),Lu=Sn(),uce=Lu.idSort,cce=Lu.isLinked;Qr.id2name=Lu.id2name;Qr.name2id=Lu.name2id;Qr.cleanId=Lu.cleanId;Qr.list=Lu.list;Qr.listIds=Lu.listIds;Qr.getFromId=Lu.getFromId;Qr.getFromTrace=Lu.getFromTrace;var LF=Ad();Qr.getAutoRange=LF.getAutoRange;Qr.findExtremes=LF.findExtremes;var vce=1e-4;function bw(e){var r=(e[1]-e[0])*vce;return[e[0]-r,e[1]+r]}Qr.coerceRef=function(e,r,t,a,n,i){var o=a.charAt(a.length-1),l=t._fullLayout._subplots[o+"axis"],s=a+"ref",f={};return n||(n=l[0]||(typeof i=="string"?i:i[0])),i||(i=n),l=l.concat(l.map(function(u){return u+" domain"})),f[s]={valType:"enumerated",values:l.concat(i?typeof i=="string"?[i]:i:[]),dflt:n},It.coerce(e,r,f,s)};Qr.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Qr.coercePosition=function(e,r,t,a,n,i){var o,l,s=Qr.getRefType(a);if(s!=="range")o=It.ensureNumber,l=t(n,i);else{var f=Qr.getFromId(r,a);i=f.fraction2r(i),l=t(n,i),o=f.cleanPos}e[n]=o(l)};Qr.cleanPosition=function(e,r,t){var a=t==="paper"||t==="pixel"?It.ensureNumber:Qr.getFromId(r,t).cleanPos;return a(e)};Qr.redrawComponents=function(e,r){r=r||Qr.listIds(e);var t=e._fullLayout;function a(n,i,o,l){for(var s=um.getComponentMethod(n,i),f={},u=0;u2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Qr.saveRangeInitial=function(e,r){for(var t=Qr.list(e,"",!0),a=!1,n=0;nc*.3||f(a)||f(n))){var v=t.dtick/2;e+=e+vo){var l=Number(t.substr(1));i.exactYears>o&&l%12===0?e=Qr.tickIncrement(e,"M6","reverse")+mo*1.5:i.exactMonths>o?e=Qr.tickIncrement(e,"M1","reverse")+mo*15.5:e-=Vc;var s=Qr.tickIncrement(e,t);if(s<=a)return s}return e}Qr.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var a=r.dtick&&ei(r._tmin),n;if(a){var i=Qr.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=It.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=It.simpleMap(n,r.l2r),e._isMinor=!0,Qr.prepTicks(e,t),a){var l=ei(r.dtick),s=ei(e.dtick),f=l?r.dtick:+r.dtick.substring(1),u=s?e.dtick:+e.dtick.substring(1);l&&s?fw(f,u)?f===2*xl&&u===2*mo&&(e.dtick=xl):f===2*xl&&u===3*mo?e.dtick=xl:f===xl&&!(r._input.minor||{}).nticks?e.dtick=mo:AF(f/u,2.5)?e.dtick=f/2:e.dtick=f:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":fw(f,u)?f>=12&&u===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?fw(f,u)||(e.dtick=AF(f/u,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function fw(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function AF(e,r){return Math.abs(e/r-1)<.001}Qr.prepTicks=function(e,r){var t=It.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?It.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=It.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Qr.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,o=a):(i=a,o=a);var l=e[i].value,s=e[o].value,f=Math.abs(s-l),u=t||f,c=0;u>=V2?f>=V2&&f<=ace?c=f:c=H2:t===vw&&u>=Y2?f>=Y2&&f<=nce?c=f:c=vw:u>=W2?f>=W2&&f<=ice?c=f:c=Sd:t===xl&&u>=xl?c=xl:u>=mo?c=mo:t===Vc&&u>=Vc?c=Vc:t===Cf&&u>=Cf&&(c=Cf);var v;c>=f&&(c=f,v=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,g=0,m=0;mxl&&(c=f)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}Qr.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||It.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],f=It.simpleMap(r.range,r.r2l,void 0,void 0,t),u=f[1]=(_?0:1);x--){var T=!x;x?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var E=x?r:It.extendFlat({},r,r.minor);if(T?Qr.prepMinorTicks(E,r,t):Qr.prepTicks(E,t),E.tickmode==="array"){x?(m=[],p=TF(r,!T)):(b=[],g=TF(r,!T));continue}if(E.tickmode==="sync"){m=[],p=gce(r);continue}var S=bw(f),k=S[0],F=S[1],O=ei(E.dtick),I=a==="log"&&!(O||E.dtick.charAt(0)==="L"),R=Qr.tickFirst(E,t);if(x){if(r._tmin=R,R=F:X<=F;X=Qr.tickIncrement(X,$,u,n)){if(x&&le++,E.rangebreaks&&!u){if(X=v)break}if(m.length>d||X===H)break;H=X;var Z={value:X};x?(I&&X!==(X|0)&&(Z.simpleLabel=!0),i>1&&le%i&&(Z.skipLabel=!0),m.push(Z)):(Z.minor=!0,b.push(Z))}}if(!b||b.length<2)s=!1;else{var J=(b[1].value-b[0].value)*(l?-1:1);Uce(J,r.tickformat)||(s=!1)}if(!s)A=m;else{var oe=m.concat(b);o&&m.length&&(oe=oe.slice(1)),oe=oe.sort(function(Pr,rt){return Pr.value-rt.value}).filter(function(Pr,rt,Jr){return rt===0||Pr.value!==Jr[rt-1].value});var ce=oe.map(function(Pr,rt){return Pr.minor===void 0&&!Pr.skipLabel?rt:null}).filter(function(Pr){return Pr!==null});ce.forEach(function(Pr){s.map(function(rt){var Jr=Pr+rt;Jr>=0&&Jr-1;Ve--){if(m[Ve].drop){m.splice(Ve,1);continue}m[Ve].value=cw(m[Ve].value,r);var re=r.c2p(m[Ve].value);(Qe?_e>re-ee:_ev||wrv&&(Jr.periodX=v),wrn&&vH2)r/=H2,a=n(10),e.dtick="M"+12*kf(r,a,G2);else if(i>Sd)r/=Sd,e.dtick="M"+kf(r,1,MF);else if(i>mo){if(e.dtick=kf(r,mo,e._hasDayOfWeekBreaks?[1,2,7,14]:bce),!t){var o=Qr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=It.dateTick0(e.calendar,2):e.tick0=It.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>Cf?e.dtick=kf(r,Cf,MF):i>vm?e.dtick=kf(r,vm,SF):i>j2?e.dtick=kf(r,j2,SF):(a=n(10),e.dtick=kf(r,a,G2))}else if(e.type==="log"){e.tick0=0;var s=It.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var f=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/f,a=n(10),e.dtick="L"+kf(r,a,G2)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):ww(e)?(e.tick0=0,a=1,e.dtick=kf(r,a,xce)):(e.tick0=0,a=n(10),e.dtick=kf(r,a,G2));if(e.dtick===0&&(e.dtick=1),!ei(e.dtick)&&typeof e.dtick!="string"){var u=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(u)}};function qF(e){var r=e.dtick;if(e._tickexponent=0,!ei(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.substr(5)!=="01-01"?e._tickround="d":e._tickround=+r.substr(1)%12===0?"y":"m";else if(r>=mo&&n<=10||r>=mo*15)e._tickround="d";else if(r>=vm&&n<=16||r>=Cf)e._tickround="M";else if(r>=j2&&n<=19||r>=vm)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(ei(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);ei(r)||(r=Number(r.substr(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),f=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>f&&(Z2(e.exponentformat)&&!xw(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Qr.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(ei(r))return It.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.substr(1));if(i==="M")return It.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?RF:FF,s=e+n*.01,f=It.roundUp(It.mod(s,1),l,t);return Math.floor(s)+Math.log(Hl.round(Math.pow(10,f),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Qr.tickFirst=function(e,r){var t=e.r2l||Number,a=It.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&b<=e._length?m:null};if(i&&It.isArrayOrTypedArray(e.ticktext)){var c=It.simpleMap(e.range,e.r2l),v=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(f=0;f"+l;else{var f=pm(e),u=e._trueSide||e.side;(!f&&u==="top"||f&&u==="bottom")&&(o+="
")}r.text=o}function wce(e,r,t,a,n){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=dm(Math.pow(10,o),e,n,a);else if(ei(i)||s==="D"&&(e.minorloglabels==="complete"||It.mod(o+.01,1)<.1)){var f;e.minorloglabels==="complete"&&!(It.mod(o+.01,1)<.1)&&(f=!0,r.fontSize*=.75);var u=Math.pow(10,o).toExponential(0),c=u.split("e"),v=+c[1],d=Math.abs(v),p=e.exponentformat;p==="power"||Z2(p)&&xw(v)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),v!==0&&v!==1&&(r.text+=""+(v>0?"":q0)+d+""),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(v>0?"+":q0)+d:(r.text=dm(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,It.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var g=String(r.text).charAt(0);(g==="0"||g==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function Ace(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Tce(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function Mce(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=dm(r.x,e,n,a)}function Sce(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=Ece(i);if(o[1]>=100)r.text=dm(It.deg2rad(r.x),e,n,a);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=q0+r.text)}}}else r.text=dm(r.x,e,n,a)}function Ece(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function a(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var n=a(e),i=e*n,o=Math.abs(t(i,n));return[Math.round(i/o),Math.round(n/o)]}var kce=["f","p","n","\u03BC","m","","k","M","G","T"];function Z2(e){return e==="SI"||e==="B"}function xw(e){return e>14||e<-15}function dm(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=Qr.getTickFormat(r),f=r.separatethousands;if(a){var u={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:ei(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};qF(u),i=(Number(u._tickround)||0)+4,l=u._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,q0);var c=Math.pow(10,-i)/2;if(o==="none"&&(l=0),e=Math.abs(e),e"+p+"":o==="B"&&l===9?e+="B":Z2(o)&&(e+=kce[l/3+5])}return n?q0+e:e}Qr.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Sd}function a(s,f){var u=["L","D"];if(typeof s==typeof f){if(typeof s=="number")return s-f;var c=u.indexOf(s.charAt(0)),v=u.indexOf(f.charAt(0));return c===v?Number(s.replace(/(L|D)/g,""))-Number(f.replace(/(L|D)/g,"")):c-v}else return typeof s=="number"?1:-1}function n(s,f,u){var c=u||function(p){return p},v=f[0],d=f[1];return(!v&&typeof v!="number"||c(v)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,f){var u=f[0]===null,c=f[1]===null,v=a(s,f[0])>=0,d=a(s,f[1])<=0;return(u||v)&&(c||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(u,1).shift())}});var l={false:{left:0,right:0}};return It.syncOrAsync(n.map(function(s){return function(){if(s){var f=Qr.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var u=Qr.drawOne(e,f,t);return f._shiftPusher&&gw(f,f._fullDepth||0,l,!0),f._r=f.range.slice(),f._rl=It.simpleMap(f._r,f.r2l),u}}}))};Qr.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,f=r._id,u=f.charAt(0),c=Qr.counterLetter(f),v=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!v)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),gw(r,p,a,!0),gw(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=Gce(r,a));var g=v[u+"axislayer"],m=r._mainLinePosition,b=m+=r._shift,A=r._mainMirrorPosition,_=r._vals=Qr.calcTicks(r),x=[r.mirror,b,A].join("_");for(i=0;i<_.length;i++)_[i].axInfo=x;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var T={};function E(_r){var Pr=f+(_r||"tick");return T[Pr]||(T[Pr]=Fce(r,Pr,b)),T[Pr]}if(r.visible){var S=Qr.makeTransTickFn(r),k=Qr.makeTransTickLabelFn(r),F,O,I=r.ticks==="inside",R=r.ticks==="outside";if(r.tickson==="boundaries"){var H=Cce(r,_);O=Qr.clipEnds(r,H),F=I?O:H}else O=Qr.clipEnds(r,_),F=I&&r.ticklabelmode!=="period"?O:_;var X=r._gridVals=O,le=Dce(r,_);if(!s._hasOnlyLargeSploms){var ae=r._subplotsWith,$={};for(i=0;i0?wr.bottom-rt:0,Jr))));var sr=0,lt=0;if(r._shiftPusher&&(sr=Math.max(Jr,wr.height>0?_r==="l"?rt-wr.left:wr.right-rt:0),r.title.text!==s._dfltTitle[u]&&(lt=(r._titleStandoff||0)+(r._titleScoot||0),_r==="l"&&(lt+=kF(r))),r._fullDepth=Math.max(sr,lt)),r.automargin){Hr={x:0,y:0,r:0,l:0,t:0,b:0};var Et=[0,1],wt=typeof r._shift=="number"?r._shift:0;if(u==="x"){if(_r==="b"?Hr[_r]=r._depth:(Hr[_r]=r._depth=Math.max(wr.width>0?rt-wr.top:0,Jr),Et.reverse()),wr.width>0){var Fe=wr.right-(r._offset+r._length);Fe>0&&(Hr.xr=1,Hr.r=Fe);var hr=r._offset-wr.left;hr>0&&(Hr.xl=0,Hr.l=hr)}}else if(_r==="l"?(r._depth=Math.max(wr.height>0?rt-wr.left:0,Jr),Hr[_r]=r._depth-wt):(r._depth=Math.max(wr.height>0?wr.right-rt:0,Jr),Hr[_r]=r._depth+wt,Et.reverse()),wr.height>0){var Or=wr.bottom-(r._offset+r._length);Or>0&&(Hr.yb=0,Hr.b=Or);var at=r._offset-wr.top;at>0&&(Hr.yt=1,Hr.t=at)}Hr[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[Et[0]],r.title.text!==s._dfltTitle[u]&&(Hr[_r]+=kF(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Vr={x:0,y:0,r:0,l:0,t:0,b:0},Vr[Pr]=r.linewidth,r.mirror&&r.mirror!==!0&&(Vr[Pr]+=Jr),r.mirror===!0||r.mirror==="ticks"?Vr[c]=r._anchorAxis.domain[Et[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Vr[c]=[r._counterDomainMin,r._counterDomainMax][Et[1]]))}Lr&&(Pe=um.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(EF(Hr,r.automargin),EF(Vr,r.automargin)),Td.autoMargin(e,_w(r),Hr),Td.autoMargin(e,OF(r),Vr),Td.autoMargin(e,IF(r),Pe)}),It.syncOrAsync(rr)}};function EF(e,r){if(e){var t=Object.keys(xF).reduce(function(a,n){return r.indexOf(n)!==-1&&xF[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function Cce(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(It.extendFlat({},i,{x:l}))};if(r.length){for(a=0;ae.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var f=o?-1:1;t=t*f}if(a){var u=e.side,c=l&&(u==="top"||u==="left")||s&&(u==="bottom"||u==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(v){return Md(n+e._offset+e.l2p(mw(v))+t,i+a)}:function(v){return Md(i+a,n+e._offset+e.l2p(mw(v))+t)}};function mw(e){return e.periodX!==void 0?e.periodX:e.x}function Rce(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),o=a("right"),l=a("bottom"),s=a("inside"),f=t!=="boundaries"&&(l||i||n||o);if(!f&&!s)return[0,0];var u=e.side,c=f?(e.tickwidth||0)/2:0,v=X2,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*P0,v+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,v+=X2),s&&u==="top"&&(v-=d*(1-P0)),(i||n)&&(c=-c),(u==="bottom"||u==="right")&&(v=-v),[f?c:0,s?v:0]}Qr.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};Qr.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(H){return a.indexOf(H)!==-1},o=i("top"),l=i("left"),s=i("right"),f=i("bottom"),u=n!=="boundaries"&&(f||l||o||s),c=i("inside"),v=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,g=v?e.ticklen:0;if(c?g*=-1:u&&(g=0),v&&(d+=g,t)){var m=It.deg2rad(t);d=g*Math.cos(m)+1,p=g*Math.sin(m)}e.showticklabels&&(v||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:d,labelShift:p},A,_,x,T,E=0,S=e.side,k=e._id.charAt(0),F=e.tickangle,O;if(k==="x")O=!c&&S==="bottom"||c&&S==="top",T=O?1:-1,c&&(T*=-1),A=p*T,_=r+d*T,x=O?1:-.2,Math.abs(F)===90&&(c?x+=fm:F===-90&&S==="bottom"?x=P0:F===90&&S==="top"?x=fm:x=.5,E=fm/2*(F/90)),b.xFn=function(H){return H.dx+A+E*H.fontSize},b.yFn=function(H){return H.dy+_+H.fontSize*x},b.anchorFn=function(H,X){if(u){if(l)return"end";if(s)return"start"}return!ei(X)||X===0||X===180?"middle":X*T<0!==c?"end":"start"},b.heightFn=function(H,X,le){return X<-60||X>60?-.5*le:e.side==="top"!==c?-le:0};else if(k==="y"){if(O=!c&&S==="left"||c&&S==="right",T=O?1:-1,c&&(T*=-1),A=d,_=p*T,x=0,!c&&Math.abs(F)===90&&(F===-90&&S==="left"||F===90&&S==="right"?x=P0:x=.5),c){var I=ei(F)?+F:0;if(I!==0){var R=It.deg2rad(I);E=Math.abs(Math.sin(R))*P0*T,x=0}}b.xFn=function(H){return H.dx+r-(A+H.fontSize*x)*T+E*H.fontSize},b.yFn=function(H){return H.dy+_+H.fontSize*fm},b.anchorFn=function(H,X){return ei(X)&&Math.abs(X)===90?"middle":O?"end":"start"},b.heightFn=function(H,X,le){return e.side==="right"&&(X*=-1),X<-30?-le:X<30?-.5*le:0}}return b};function Q2(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Qr.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,Q2);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return cm.stroke(Hl.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return bl.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),K2(r,[CF]),i.attr("transform",t.transFn)};Qr.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(b){return b.minor}):[],o=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],l=t.counterAxis;if(l&&Qr.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",f=0;f=0;p--){var g=p?v:d;if(g){var m=g.selectAll("path."+a).data(p?o:i,Q2);m.exit().remove(),m.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),m.attr("transform",t.transFn).attr("d",t.path).each(function(b){return cm.stroke(Hl.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return bl.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&m.attr("d",t.path)}}K2(r,[dw,pw])}};Qr.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Qr.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return uce(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(cm.stroke,r.zerolinecolor||cm.defaultLine).style("stroke-width",bl.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),K2(r,[hw])};Qr.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",o=t.cls||n+"tick",l=t.vals.filter(function(J){return J.text}),s=t.labelFns,f=t.secondary?0:r.tickangle,u=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],Q2),v=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(J){var oe=Hl.select(this),ce=e._promises.length;oe.call(R0.positionText,s.xFn(J),s.yFn(J)).call(bl.font,{family:J.font,size:J.fontSize,color:J.fontColor,weight:J.fontWeight,style:J.fontStyle,variant:J.fontVariant,textcase:J.fontTextcase,lineposition:J.fontLineposition,shadow:J.fontShadow}).text(J.text).call(R0.convertToTspans,e),e._promises[ce]?v.push(e._promises.pop().then(function(){d(oe,f)})):d(oe,f)}),K2(r,[bF]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(J){Hl.select(this).select("text").call(R0.positionText,s.xFn(J),s.yFn(J))});function d(J,oe){J.each(function(ce){var De=Hl.select(this),Oe=De.select(".text-math-group"),Ee=s.anchorFn(ce,oe),Je=t.transFn.call(De.node(),ce)+(ei(oe)&&+oe!=0?" rotate("+oe+","+s.xFn(ce)+","+(s.yFn(ce)-ce.fontSize/2)+")":""),Ae=R0.lineCount(De),or=hm*ce.fontSize,Ge=s.heightFn(ce,ei(oe)?+oe:0,(Ae-1)*or);if(Ge&&(Je+=Md(0,Ge)),Oe.empty()){var He=De.select("text");He.attr({transform:Je,"text-anchor":Ee}),He.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var Ve=bl.bBox(Oe.node()).width,Qe=Ve*{end:-.5,start:.5}[Ee];Oe.attr("transform",Je+Md(Qe,0))}})}r._adjustTickLabelsOverflow=function(){var J=r.ticklabeloverflow;if(!(!J||J==="allow")){var oe=J.indexOf("hide")!==-1,ce=r._id.charAt(0)==="x",De=0,Oe=ce?e._fullLayout.width:e._fullLayout.height;if(J.indexOf("domain")!==-1){var Ee=It.simpleMap(r.range,r.r2l);De=r.l2p(Ee[0])+r._offset,Oe=r.l2p(Ee[1])+r._offset}var Je=Math.min(De,Oe),Ae=Math.max(De,Oe),or=r.side,Ge=1/0,He=-1/0;c.each(function(_e){var re=Hl.select(this),Ze=re.select(".text-math-group");if(Ze.empty()){var vr=bl.bBox(re.node()),rr=0;ce?(vr.right>Ae||vr.leftAe||vr.top+(r.tickangle?0:_e.fontSize/4)r["_visibleLabelMin_"+Ee._id]?re.style("display","none"):Ae.K==="tick"&&!Je&&re.node().style.display!=="none"&&re.style("display",null)})})})})},d(c,u+1?u:f);function p(){return v.length&&Promise.all(v)}var g=null;function m(){if(d(c,f),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){g=r.autotickangles[0];var J=0,oe=[],ce,De=1;c.each(function(Hr){J=Math.max(J,Hr.fontSize);var Vr=r.l2p(Hr.x),Pe=yw(this),sr=bl.bBox(Pe.node());De=Math.max(De,R0.lineCount(Pe)),oe.push({top:0,bottom:10,height:10,left:Vr-sr.width/2,right:Vr+sr.width/2+2,width:sr.width+2})});var Oe=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,Ee=l.length,Je=Math.abs((l[Ee-1].x-l[0].x)*r._m)/(Ee-1),Ae=Oe?Je/2:Je,or=Oe?r.ticklen:J*1.25*De,Ge=Math.sqrt(Math.pow(Ae,2)+Math.pow(or,2)),He=Ae/Ge,Ve=r.autotickangles.map(function(Hr){return Hr*Math.PI/180}),Qe=Ve.find(function(Hr){return Math.abs(Math.cos(Hr))<=He});Qe===void 0&&(Qe=Ve.reduce(function(Hr,Vr){return Math.abs(Math.cos(Hr))ae*le&&(R=le,F[k]=O[k]=H[k])}var $=Math.abs(R-I);$-T>0?($-=T,T*=1+T/$):T=0,r._id.charAt(0)!=="y"&&(T=-T),F[S]=_.p2r(_.r2p(O[S])+E*T),_.autorange==="min"||_.autorange==="max reversed"?(F[0]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0):(_.autorange==="max"||_.autorange==="min reversed")&&(F[1]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[_._name+".range"]=F}var Z=It.syncOrAsync(b);return Z&&Z.then&&e._promises.push(Z),Z};function qce(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,Q2);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(cm.stroke,r.dividercolor).style("stroke-width",bl.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Qr.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function kF(e){var r=e.title.font.size,t=(e.title.text.match(R0.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(P0+t*hm):t?r*(t+1)*hm:r}function Pce(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(R0.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*P0:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(fm+l*hm));else{var s=pm(r);if(r.type==="multicategory")o=r._depth;else{var f=1.5*i;s&&(f=.5*i,r.ticks==="outside"&&(f+=r.ticklen)),o=10+f+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var u=Qr.getPxPosition(e,r),c,v,d;n==="x"?(v=r._offset+r._length/2,d=r.side==="top"?u-o:u+o):(d=r._offset+r._length/2,v=r.side==="right"?u+o:u-o,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var g=r._selections[r._id+"tick"];if(p={selection:g,side:r.side},g&&g.node()&&g.node().parentNode){var m=bl.getTranslate(g.node().parentNode);p.offsetLeft=m.x,p.offsetTop=m.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,rce.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:v,y:d,"text-anchor":"middle"}})}Qr.shouldShowZeroLine=function(e,r,t){var a=It.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===J2)&&(NF(r,0)||!Nce(e,r,t,a)||Oce(e,r))};Qr.clipEnds=function(e,r){return r.filter(function(t){return NF(e,t.x)})};function NF(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=lce:/%L/.test(r)?e>=oce:/%[SX]/.test(r)?e>=j2:/%M/.test(r)?e>=vm:/%[HI]/.test(r)?e>=Cf:/%p/.test(r)?e>=Vc:/%[Aadejuwx]/.test(r)?e>=mo:/%[UVW]/.test(r)?e>=xl:/%[Bbm]/.test(r)?e>=W2:/%[q]/.test(r)?e>=Y2:/%[Yy]/.test(r)?e>=V2:!0}});var GF=P((UCe,zF)=>{"use strict";zF.exports=function(r,t,a){var n,i;if(a){var o=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[o?1:0],i=a[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var Aw=P((HCe,UF)=>{"use strict";var Hce=GF();UF.exports=function(r,t,a,n){var i=t._template||{},o=t.type||i.type||"-";a("minallowed"),a("maxallowed");var l=a("range");if(!l){var s;!n.noInsiderange&&o!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=a("range",s)))}var f=t.getAutorangeDflt(l,n),u=a("autorange",f),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(u==="reversed"||u===!0)||l[0]!==null&&(u==="min"||u==="max reversed")||l[1]!==null&&(u==="max"||u==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(f=t.getAutorangeDflt(l,n),u=a("autorange",f)),u&&(Hce(a,u,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var VF=P((VCe,HF)=>{var Vce={left:0,top:0};HF.exports=Yce;function Yce(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=Wce(r);return t[0]=a-i.left,t[1]=n-i.top,t}function Wce(e){return e===window||e===document||e===document.body?Vce:e.getBoundingClientRect()}});var Tw=P((YCe,YF)=>{"use strict";var jce=e4();function Xce(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}YF.exports=jce&&Xce()});var jF=P((WCe,WF)=>{"use strict";WF.exports=function(r,t,a,n,i){var o=(r-a)/(n-a),l=o+t/(n-a),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var JF=P((jCe,ZF)=>{"use strict";var XF=Ur(),Zce=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];ZF.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=XF.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=XF.constrain(Math.floor(t*3),0,2),Zce[t][r]}});var QF=P((XCe,$F)=>{"use strict";var Jce=J1(),$ce=r2(),Qce=G1().getGraphDiv,Kce=O1(),Mw=$F.exports={};Mw.wrapped=function(e,r,t){e=Qce(e),e._fullLayout&&$ce.clear(e._fullLayout._uid+Kce.HOVERID),Mw.raw(e,r,t)};Mw.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&Jce.triggerHandler(r,"plotly_beforehover",t)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}))}});var Ps=P((ZCe,tR)=>{"use strict";var eve=VF(),Sw=t4(),rve=Tw(),tve=Ur().removeElement,ave=Ri(),N0=tR.exports={};N0.align=jF();N0.getCursor=JF();var eR=QF();N0.unhover=eR.wrapped;N0.unhoverRaw=eR.raw;N0.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,s,f,u,c,v,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=m,rve?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=m,i.addEventListener("touchstart",m,{passive:!1})):i.ontouchstart=m;function p(_,x,T){return Math.abs(_)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;c.target===v?x=c:(x={target:v,srcElement:v,toElement:v},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(T=>{var E=c[T];!x[T]&&typeof E!="function"&&(x[T]=E)})),r.clickFn&&r.clickFn(a,x),d||v.dispatchEvent(new MouseEvent("click",_))}t._dragging=!1,t._dragged=!1}};function rR(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}N0.coverSlip=rR;function KF(e){return eve(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Yc=P((JCe,aR)=>{"use strict";aR.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var oR=P(($Ce,iR)=>{"use strict";var Ew=Yc(),mm="data-savedcursor",nR="!!";iR.exports=function(r,t){var a=r.attr(mm);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var kw=zi(),nve=wf();lR.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:nve.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:kw({editType:"legend"}),grouptitlefont:kw({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:kw({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var r3=P(e3=>{"use strict";e3.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};e3.isVertical=function(r){return r.orientation!=="h"};e3.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1}});var Fw=P((eLe,sR)=>{"use strict";var Lw=Bt(),_l=Ur(),ive=$a(),ove=ks(),lve=Cw(),sve=rd(),Dw=r3();function fve(e,r,t,a){var n=r[e]||{},i=ive.newContainer(t,e);function o($,Z){return _l.coerce(n,i,lve,$,Z)}var l=_l.coerceFont(o,"font",t.font);o("bgcolor",t.paper_bgcolor),o("bordercolor");var s=o("visible");if(s){for(var f,u=function($,Z){var J=f._input,oe=f;return _l.coerce(J,oe,ove,$,Z)},c=t.font||{},v=_l.coerceFont(o,"grouptitlefont",c,{overrideDflt:{size:Math.round(c.size*1.1)}}),d=0,p=!1,g="normal",m=(t.shapes||[]).filter(function($){return $.showlegend}),b=a.concat(m).filter(function($){return e===($.legend||"legend")}),A=0;A(e==="legend"?1:0));if(x===!1&&(t[e]=void 0),!(x===!1&&!n.uirevision)&&(o("uirevision",t.uirevision),x!==!1)){o("borderwidth");var T=o("orientation"),E=o("yref"),S=o("xref"),k=T==="h",F=E==="paper",O=S==="paper",I,R,H,X="left";k?(I=0,Lw.getComponentMethod("rangeslider","isVisible")(r.xaxis)?F?(R=1.1,H="bottom"):(R=1,H="top"):F?(R=-.1,H="top"):(R=0,H="bottom")):(R=1,H="auto",O?I=1.02:(I=1,X="right")),_l.coerce(n,i,{x:{valType:"number",editType:"legend",min:O?-2:0,max:O?3:1,dflt:I}},"x"),_l.coerce(n,i,{y:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:R}},"y"),o("traceorder",g),Dw.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",X),o("yanchor",H),o("maxheight",k?.5:1),o("valign"),_l.noneOrAll(n,i,["x","y"]);var le=o("title.text");if(le){o("title.side",k?"left":"top");var ae=_l.extendFlat({},l,{size:_l.bigFont(l.size)});_l.coerceFont(o,"title.font",ae)}}}}sR.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n{"use strict";var Ed=Bt(),qw=Ur(),uve=qw.pushUnique,Rw=!0;fR.exports=function(r,t,a){var n=t._fullLayout;if(t._dragged||t._editing)return;var i=n.legend.itemclick,o=n.legend.itemdoubleclick,l=n.legend.groupclick;a===1&&i==="toggle"&&o==="toggleothers"&&Rw&&t.data&&t._context.showTips&&qw.notifier(qw._(t,"Double-click on legend to isolate one trace"),"long"),Rw=!1;var s;if(a===1?s=i:a===2&&(s=o),!s)return;var f=l==="togglegroup",u=n.hiddenlabels?n.hiddenlabels.slice():[],c=r.data()[0][0];if(c.groupTitle&&c.noClick)return;var v=t._fullData,d=(n.shapes||[]).filter(function(Pr){return Pr.showlegend}),p=v.concat(d),g=c.trace;g._isShape&&(g=g._fullInput);var m=g.legendgroup,b,A,_,x,T,E,S={},k=[],F=[],O=[];function I(Pr,rt){var Jr=k.indexOf(Pr),wr=S.visible;return wr||(wr=S.visible=[]),k.indexOf(Pr)===-1&&(k.push(Pr),Jr=k.length-1),wr[Jr]=rt,Jr}var R=(n.shapes||[]).map(function(Pr){return Pr._input}),H=!1;function X(Pr,rt){R[Pr].visible=rt,H=!0}function le(Pr,rt){if(!(c.groupTitle&&!f)){var Jr=Pr._fullInput||Pr,wr=Jr._isShape,Hr=Jr.index;Hr===void 0&&(Hr=Jr._index);var Vr=Jr.visible===!1?!1:rt;wr?X(Hr,Vr):I(Hr,Vr)}}var ae=g.legend,$=g._fullInput,Z=$&&$._isShape;if(!Z&&Ed.traceIs(g,"pie-like")){var J=c.label,oe=u.indexOf(J);if(s==="toggle")oe===-1?u.push(J):u.splice(oe,1);else if(s==="toggleothers"){var ce=oe!==-1,De=[];for(b=0;b{"use strict";cR.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var dR=P((aLe,hR)=>{"use strict";var vR=Bt(),Nw=r3();hR.exports=function(r,t,a){var n=t._inHover,i=Nw.isGrouped(t),o=Nw.isReversed(t),l={},s=[],f=!1,u={},c=0,v=0,d,p;function g($,Z,J){if(t.visible!==!1&&!(a&&$!==t._id))if(Z===""||!Nw.isGrouped(t)){var oe="~~i"+c;s.push(oe),l[oe]=[J],c++}else s.indexOf(Z)===-1?(s.push(Z),f=!0,l[Z]=[J]):l[Z].push(J)}for(d=0;dO&&(F=O)}S[d][0]._groupMinRank=F,S[d][0]._preGroupSort=d}var I=function($,Z){return $[0]._groupMinRank-Z[0]._groupMinRank||$[0]._preGroupSort-Z[0]._preGroupSort},R=function($,Z){return $.trace.legendrank-Z.trace.legendrank||$._preSort-Z._preSort};for(S.forEach(function($,Z){$[0]._preGroupSort=Z}),S.sort(I),d=0;d{"use strict";var t3=Ur();function pR(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}O0.formatPiePercent=function(r,t){var a=pR((r*100).toPrecision(3));return t3.numSeparate(a,t)+"%"};O0.formatPieValue=function(r,t){var a=pR(r.toPrecision(10));return t3.numSeparate(a,t)};O0.getFirstFilled=function(r,t){if(t3.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var cve=Wa(),vve=va();mR.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?cve.pointStyle(r,a,n,t):vve.fill(r,t.color)}});var _R=P((oLe,xR)=>{"use strict";var gR=va(),bR=Ow().castOption,hve=yR();xR.exports=function(r,t,a,n){var i=a.marker.line,o=bR(i.color,t.pts)||gR.defaultLine,l=bR(i.width,t.pts)||0;r.call(hve,t,a,n).style("stroke-width",l).call(gR.stroke,o)}});var Gw=P((lLe,ER)=>{"use strict";var yo=ha(),Iw=Bt(),ao=Ur(),wR=ao.strTranslate,wl=Wa(),Vl=va(),Bw=Rs().extractOpts,a3=qi(),dve=_R(),pve=Ow().castOption,mve=Pw(),AR=12,TR=5,I0=2,yve=10,kd=5;ER.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+mve.itemGap*2)/2,s=wR(l,0),f=function(S,k,F,O){var I;if(S+1)I=S;else if(k&&k.width>0)I=k.width;else return 0;return i?O:Math.min(I,F)};r.each(function(S){var k=yo.select(this),F=ao.ensureSingle(k,"g","layers");F.style("opacity",S[0].trace.opacity);var O=a.indentation,I=a.valign,R=S[0].lineHeight,H=S[0].height;if(I==="middle"&&O===0||!R||!H)F.attr("transform",null);else{var X={top:1,bottom:-1}[I],le=X*(.5*(R-H+3))||0,ae=a.indentation;F.attr("transform",wR(ae,le))}var $=F.selectAll("g.legendfill").data([S]);$.enter().append("g").classed("legendfill",!0);var Z=F.selectAll("g.legendlines").data([S]);Z.enter().append("g").classed("legendlines",!0);var J=F.selectAll("g.legendsymbols").data([S]);J.enter().append("g").classed("legendsymbols",!0),J.selectAll("g.legendpoints").data([S]).enter().append("g").classed("legendpoints",!0)}).each(E).each(v).each(p).each(d).each(m).each(x).each(_).each(u).each(c).each(b).each(A);function u(S){var k=MR(S),F=k.showFill,O=k.showLine,I=k.showGradientLine,R=k.showGradientFill,H=k.anyFill,X=k.anyLine,le=S[0],ae=le.trace,$,Z,J=Bw(ae),oe=J.colorscale,ce=J.reversescale,De=function(He){if(He.size())if(F)wl.fillGroupStyle(He,t,!0);else{var Ve="legendfill-"+ae.uid;wl.gradient(He,t,Ve,zw(ce),oe,"fill")}},Oe=function(He){if(He.size()){var Ve="legendline-"+ae.uid;wl.lineGroupStyle(He),wl.gradient(He,t,Ve,zw(ce),oe,"stroke")}},Ee=a3.hasMarkers(ae)||!H?"M5,0":X?"M5,-2":"M5,-3",Je=yo.select(this),Ae=Je.select(".legendfill").selectAll("path").data(F||R?[S]:[]);if(Ae.enter().append("path").classed("js-fill",!0),Ae.exit().remove(),Ae.attr("d",Ee+"h"+o+"v6h-"+o+"z").call(De),O||I){var or=f(void 0,ae.line,yve,TR);Z=ao.minExtend(ae,{line:{width:or}}),$=[ao.minExtend(le,{trace:Z})]}var Ge=Je.select(".legendlines").selectAll("path").data(O||I?[$]:[]);Ge.enter().append("path").classed("js-line",!0),Ge.exit().remove(),Ge.attr("d",Ee+(I?"l"+o+",0.0001":"h"+o)).call(O?wl.lineGroupStyle:Oe)}function c(S){var k=MR(S),F=k.anyFill,O=k.anyLine,I=k.showLine,R=k.showMarker,H=S[0],X=H.trace,le=!R&&!O&&!F&&a3.hasText(X),ae,$;function Z(Ae,or,Ge,He){var Ve=ao.nestedProperty(X,Ae).get(),Qe=ao.isArrayOrTypedArray(Ve)&&or?or(Ve):Ve;if(i&&Qe&&He!==void 0&&(Qe=He),Ge){if(QeGe[1])return Ge[1]}return Qe}function J(Ae){return H._distinct&&H.index&&Ae[H.index]?Ae[H.index]:Ae[0]}if(R||le||I){var oe={},ce={};if(R){oe.mc=Z("marker.color",J),oe.mx=Z("marker.symbol",J),oe.mo=Z("marker.opacity",ao.mean,[.2,1]),oe.mlc=Z("marker.line.color",J),oe.mlw=Z("marker.line.width",ao.mean,[0,5],I0),ce.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var De=Z("marker.size",ao.mean,[2,16],AR);oe.ms=De,ce.marker.size=De}I&&(ce.line={width:Z("line.width",J,[0,10],TR)}),le&&(oe.tx="Aa",oe.tp=Z("textposition",J),oe.ts=10,oe.tc=Z("textfont.color",J),oe.tf=Z("textfont.family",J),oe.tw=Z("textfont.weight",J),oe.ty=Z("textfont.style",J),oe.tv=Z("textfont.variant",J),oe.tC=Z("textfont.textcase",J),oe.tE=Z("textfont.lineposition",J),oe.tS=Z("textfont.shadow",J)),ae=[ao.minExtend(H,oe)],$=ao.minExtend(X,ce),$.selectedpoints=null,$.texttemplate=null}var Oe=yo.select(this).select("g.legendpoints"),Ee=Oe.selectAll("path.scatterpts").data(R?ae:[]);Ee.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),Ee.exit().remove(),Ee.call(wl.pointStyle,$,t),R&&(ae[0].mrc=3);var Je=Oe.selectAll("g.pointtext").data(le?ae:[]);Je.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Je.exit().remove(),Je.selectAll("text").call(wl.textPointStyle,$,t)}function v(S){var k=S[0].trace,F=k.type==="waterfall";if(S[0]._distinct&&F){var O=S[0].trace[S[0].dir].marker;return S[0].mc=O.color,S[0].mlw=O.line.width,S[0].mlc=O.line.color,g(S,this,"waterfall")}var I=[];k.visible&&F&&(I=S[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var R=yo.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(I);R.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(H){var X=yo.select(this),le=k[H[0]].marker,ae=f(void 0,le.line,kd,I0);X.attr("d",H[1]).style("stroke-width",ae+"px").call(Vl.fill,le.color),ae&&X.call(Vl.stroke,le.line.color)})}function d(S){g(S,this)}function p(S){g(S,this,"funnel")}function g(S,k,F){var O=S[0].trace,I=O.marker||{},R=I.line||{},H=I.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",X=F?O.visible&&O.type===F:Iw.traceIs(O,"bar"),le=yo.select(k).select("g.legendpoints").selectAll("path.legend"+F).data(X?[S]:[]);le.enter().append("path").classed("legend"+F,!0).attr("d",H).attr("transform",s),le.exit().remove(),le.each(function(ae){var $=yo.select(this),Z=ae[0],J=f(Z.mlw,I.line,kd,I0);$.style("stroke-width",J+"px");var oe=Z.mcc;if(!a._inHover&&"mc"in Z){var ce=Bw(I),De=ce.mid;De===void 0&&(De=(ce.max+ce.min)/2),oe=wl.tryColorscale(I,"")(De)}var Oe=oe||Z.mc||I.color,Ee=I.pattern,Je=wl.getPatternAttr,Ae=Ee&&(Je(Ee.shape,0,"")||Je(Ee.path,0,""));if(Ae){var or=Je(Ee.bgcolor,0,null),Ge=Je(Ee.fgcolor,0,null),He=Ee.fgopacity,Ve=SR(Ee.size,8,10),Qe=SR(Ee.solidity,.5,1),ee="legend-"+O.uid;$.call(wl.pattern,"legend",t,ee,Ae,Ve,Qe,oe,Ee.fillmode,or,Ge,He)}else $.call(Vl.fill,Oe);J&&Vl.stroke($,Z.mlc||R.color)})}function m(S){var k=S[0].trace,F=yo.select(this).select("g.legendpoints").selectAll("path.legendbox").data(k.visible&&Iw.traceIs(k,"box-violin")?[S]:[]);F.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),F.exit().remove(),F.each(function(){var O=yo.select(this);if((k.boxpoints==="all"||k.points==="all")&&Vl.opacity(k.fillcolor)===0&&Vl.opacity((k.line||{}).color)===0){var I=ao.minExtend(k,{marker:{size:i?AR:ao.constrain(k.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});F.call(wl.pointStyle,I,t)}else{var R=f(void 0,k.line,kd,I0);O.style("stroke-width",R+"px").call(Vl.fill,k.fillcolor),R&&Vl.stroke(O,k.line.color)}})}function b(S){var k=S[0].trace,F=yo.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(k.visible&&k.type==="candlestick"?[S,S]:[]);F.enter().append("path").classed("legendcandle",!0).attr("d",function(O,I){return I?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(O,I){var R=yo.select(this),H=k[I?"increasing":"decreasing"],X=f(void 0,H.line,kd,I0);R.style("stroke-width",X+"px").call(Vl.fill,H.fillcolor),X&&Vl.stroke(R,H.line.color)})}function A(S){var k=S[0].trace,F=yo.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(k.visible&&k.type==="ohlc"?[S,S]:[]);F.enter().append("path").classed("legendohlc",!0).attr("d",function(O,I){return I?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(O,I){var R=yo.select(this),H=k[I?"increasing":"decreasing"],X=f(void 0,H.line,kd,I0);R.style("fill","none").call(wl.dashLine,H.line.dash,X),X&&Vl.stroke(R,H.line.color)})}function _(S){T(S,this,"pie")}function x(S){T(S,this,"funnelarea")}function T(S,k,F){var O=S[0],I=O.trace,R=F?I.visible&&I.type===F:Iw.traceIs(I,F),H=yo.select(k).select("g.legendpoints").selectAll("path.legend"+F).data(R?[S]:[]);if(H.enter().append("path").classed("legend"+F,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),H.exit().remove(),H.size()){var X=I.marker||{},le=f(pve(X.line.width,O.pts),X.line,kd,I0),ae="pieLike",$=ao.minExtend(I,{marker:{line:{width:le}}},ae),Z=ao.minExtend(O,{trace:$},ae);dve(H,Z,$,t)}}function E(S){var k=S[0].trace,F,O=[];if(k.visible)switch(k.type){case"histogram2d":case"heatmap":O=[["M-15,-2V4H15V-2Z"]],F=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":O=[["M-6,-6V6H6V-6Z"]],F=!0;break;case"densitymapbox":case"densitymap":O=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],F="radial";break;case"cone":O=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],F=!1;break;case"streamtube":O=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],F=!1;break;case"surface":O=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],F=!0;break;case"mesh3d":O=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!1;break;case"volume":O=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!0;break;case"isosurface":O=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],F=!1;break}var I=yo.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(O);I.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),I.exit().remove(),I.each(function(R,H){var X=yo.select(this),le=Bw(k),ae=le.colorscale,$=le.reversescale,Z=function(De){if(De.size()){var Oe="legendfill-"+k.uid;wl.gradient(De,t,Oe,zw($,F==="radial"),ae,"fill")}},J;if(ae){if(!F){var ce=ae.length;J=H===0?ae[$?ce-1:0][1]:H===1?ae[$?0:ce-1][1]:ae[Math.floor((ce-1)/2)][1]}}else{var oe=k.vertexcolor||k.facecolor||k.color;J=ao.isArrayOrTypedArray(oe)?oe[H]||oe[0]:oe}X.attr("d",R[0]),J?X.call(Vl.fill,J):X.call(Z)})}};function zw(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function MR(e){var r=e[0].trace,t=r.contours,a=a3.hasLines(r),n=a3.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function SR(e,r,t){return e&&ao.isArrayOrTypedArray(e)?r:e>t?t:e}});var Yw=P((sLe,OR)=>{"use strict";var Jo=ha(),ri=Ur(),Hw=bi(),Dd=Bt(),kR=J1(),Uw=Ps(),ti=Wa(),i3=va(),B0=po(),CR=uR(),ui=Pw(),Vw=ho(),PR=Vw.LINE_SPACING,Ld=Vw.FROM_TL,LR=Vw.FROM_BR,DR=dR(),gve=Gw(),FR=r3(),Cd=1,bve=/^legend[0-9]*$/;OR.exports=function(r,t){if(t)RR(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var f=Jo.select(this),u=f.attr("class"),c=u.split(" ")[0];c.match(bve)&&n.indexOf(c)===-1&&f.remove()});for(var o=0;o1)}var p=a.hiddenlabels||[];if(!l&&(!a.showlegend||!s.length))return o.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),Hw.autoMargin(e,n);var g=ri.ensureSingle(o,"g",n,function(k){l||k.attr("pointer-events","all")}),m=ri.ensureSingleById(a._topdefs,"clipPath",i,function(k){k.append("rect")}),b=ri.ensureSingle(g,"rect","bg",function(k){k.attr("shape-rendering","crispEdges")});b.call(i3.stroke,t.bordercolor).call(i3.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var A=ri.ensureSingle(g,"g","scrollbox"),_=t.title;t._titleWidth=0,t._titleHeight=0;var x;_.text?(x=ri.ensureSingle(A,"text",n+"titletext"),x.attr("text-anchor","start").call(ti.font,_.font).text(_.text),o3(x,A,e,t,Cd)):A.selectAll("."+n+"titletext").remove();var T=ri.ensureSingle(g,"rect","scrollbar",function(k){k.attr(ui.scrollBarEnterAttrs).call(i3.fill,ui.scrollBarColor)}),E=A.selectAll("g.groups").data(s);E.enter().append("g").attr("class","groups"),E.exit().remove();var S=E.selectAll("g.traces").data(ri.identity);S.enter().append("g").attr("class","traces"),S.exit().remove(),S.style("opacity",function(k){var F=k[0].trace;return Dd.traceIs(F,"pie-like")?p.indexOf(k[0].label)!==-1?.5:1:F.visible==="legendonly"?.5:1}).each(function(){Jo.select(this).call(_ve,e,t)}).call(gve,e,t).each(function(){l||Jo.select(this).call(wve,e,n)}),ri.syncOrAsync([Hw.previousPromises,function(){return Mve(e,E,S,t)},function(){var k=a._size,F=t.borderwidth,O=t.xref==="paper",I=t.yref==="paper";if(_.text&&xve(x,t,F),!l){var R,H;O?R=k.l+k.w*t.x-Ld[l3(t)]*t._width:R=a.width*t.x-Ld[l3(t)]*t._width,I?H=k.t+k.h*(1-t.y)-Ld[s3(t)]*t._effHeight:H=a.height*(1-t.y)-Ld[s3(t)]*t._effHeight;var X=Sve(e,n,R,H);if(X)return;if(a.margin.autoexpand){var le=R,ae=H;R=O?ri.constrain(R,0,a.width-t._width):le,H=I?ri.constrain(H,0,a.height-t._effHeight):ae,R!==le&&ri.log("Constrain "+n+".x to make legend fit inside graph"),H!==ae&&ri.log("Constrain "+n+".y to make legend fit inside graph")}ti.setTranslate(g,R,H)}if(T.on(".drag",null),g.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var $=t._effHeight;l&&($=t._height),b.attr({width:t._width-F,height:$-F,x:F/2,y:F/2}),ti.setTranslate(A,0,0),m.select("rect").attr({width:t._width-2*F,height:$-2*F,x:F,y:F}),ti.setClipUrl(A,i,e),ti.setRect(T,0,0,0,0),delete t._scrollY}else{var Z=Math.max(ui.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),J=t._effHeight-Z-2*ui.scrollBarMargin,oe=t._height-t._effHeight,ce=J/oe,De=Math.min(t._scrollY||0,oe);b.attr({width:t._width-2*F+ui.scrollBarWidth+ui.scrollBarMargin,height:t._effHeight-F,x:F/2,y:F/2}),m.select("rect").attr({width:t._width-2*F+ui.scrollBarWidth+ui.scrollBarMargin,height:t._effHeight-2*F,x:F,y:F+De}),ti.setClipUrl(A,i,e),Ve(De,Z,ce),g.on("wheel",function(){De=ri.constrain(t._scrollY+Jo.event.deltaY/J*oe,0,oe),Ve(De,Z,ce),De!==0&&De!==oe&&Jo.event.preventDefault()});var Oe,Ee,Je,Ae=function(Ze,vr,rr){var Cr=(rr-vr)/ce+Ze;return ri.constrain(Cr,0,oe)},or=function(Ze,vr,rr){var Cr=(vr-rr)/ce+Ze;return ri.constrain(Cr,0,oe)},Ge=Jo.behavior.drag().on("dragstart",function(){var Ze=Jo.event.sourceEvent;Ze.type==="touchstart"?Oe=Ze.changedTouches[0].clientY:Oe=Ze.clientY,Je=De}).on("drag",function(){var Ze=Jo.event.sourceEvent;Ze.buttons===2||Ze.ctrlKey||(Ze.type==="touchmove"?Ee=Ze.changedTouches[0].clientY:Ee=Ze.clientY,De=Ae(Je,Oe,Ee),Ve(De,Z,ce))});T.call(Ge);var He=Jo.behavior.drag().on("dragstart",function(){var Ze=Jo.event.sourceEvent;Ze.type==="touchstart"&&(Oe=Ze.changedTouches[0].clientY,Je=De)}).on("drag",function(){var Ze=Jo.event.sourceEvent;Ze.type==="touchmove"&&(Ee=Ze.changedTouches[0].clientY,De=or(Je,Oe,Ee),Ve(De,Z,ce))});A.call(He)}function Ve(Ze,vr,rr){t._scrollY=e._fullLayout[n]._scrollY=Ze,ti.setTranslate(A,0,-Ze),ti.setRect(T,t._width,ui.scrollBarMargin+Ze*rr,ui.scrollBarWidth,vr),m.select("rect").attr("y",F+Ze)}if(e._context.edits.legendPosition){var Qe,ee,_e,re;g.classed("cursor-move",!0),Uw.init({element:g.node(),gd:e,prepFn:function(Ze){if(Ze.target!==T.node()){var vr=ti.getTranslate(g);_e=vr.x,re=vr.y}},moveFn:function(Ze,vr){if(_e!==void 0&&re!==void 0){var rr=_e+Ze,Cr=re+vr;ti.setTranslate(g,rr,Cr),Qe=Uw.align(rr,t._width,k.l,k.l+k.w,t.xanchor),ee=Uw.align(Cr+t._height,-t._height,k.t+k.h,k.t,t.yanchor)}},doneFn:function(){if(Qe!==void 0&&ee!==void 0){var Ze={};Ze[n+".x"]=Qe,Ze[n+".y"]=ee,Dd.call("_guiRelayout",e,Ze)}},clickFn:function(Ze,vr){var rr=o.selectAll("g.traces").filter(function(){var Cr=this.getBoundingClientRect();return vr.clientX>=Cr.left&&vr.clientX<=Cr.right&&vr.clientY>=Cr.top&&vr.clientY<=Cr.bottom});rr.size()>0&&NR(e,g,rr,Ze,vr)}})}}],e)}}function n3(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,o=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||n)}function NR(e,r,t,a,n){var i=t.data()[0][0].trace,o={event:n,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};i._group&&(o.group=i._group),Dd.traceIs(i,"pie-like")&&(o.label=t.datum()[0].label);var l=kR.triggerHandler(e,"plotly_legendclick",o);if(a===1){if(l===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&CR(t,e,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var s=kR.triggerHandler(e,"plotly_legenddoubleclick",o);s!==!1&&l!==!1&&CR(t,e,a)}}function _ve(e,r,t){var a=f3(t),n=e.data()[0][0],i=n.trace,o=Dd.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,f,u;n.groupTitle?(f=n.groupTitle.text,u=n.groupTitle.font):(u=t.font,t.entries?f=n.text:(f=o?n.label:i.name,i._meta&&(f=ri.templateString(f,i._meta))));var c=ri.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(ti.font,u).text(l?qR(f,s):f);var v=t.indentation+t.itemwidth+ui.itemGap*2;B0.positionText(c,v,0),l?c.call(B0.makeEditable,{gd:r,text:f}).call(o3,e,r,t).on("edit",function(d){this.text(qR(d,s)).call(o3,e,r,t);var p=n.trace._fullInput||{},g={};return g.name=d,p._isShape?Dd.call("_guiRelayout",r,"shapes["+i.index+"].name",g.name):Dd.call("_guiRestyle",r,g,i.index)}):o3(c,e,r,t)}function qR(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function wve(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=ri.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(i3.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),NR(r,l,e,i,Jo.event)}}))}function o3(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),B0.convertToTspans(e,t,function(){Ave(r,t,a,n)})}function Ave(e,r,t,a){var n=e.data()[0][0];if(!t._inHover&&n&&!n.trace.showlegend){e.remove();return}var i=e.select("g[class*=math-group]"),o=i.node(),l=f3(t);t||(t=r._fullLayout[l]);var s=t.borderwidth,f;a===Cd?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var u=f.size*PR,c,v;if(o){var d=ti.bBox(o);c=d.height,v=d.width,a===Cd?ti.setTranslate(i,s,s+c*.75):ti.setTranslate(i,0,c*.25)}else{var p="."+l+(a===Cd?"title":"")+"text",g=e.select(p),m=B0.lineCount(g),b=g.node();if(c=u*m,v=b?ti.bBox(b).width:0,a===Cd)t.title.side==="left"&&(v+=ui.itemGap*2),B0.positionText(g,s+ui.titlePad,s+u);else{var A=ui.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(A=ui.itemGap,v-=t.indentation+t.itemwidth),B0.positionText(g,A,-u*((m-1)/2-.3))}}a===Cd?(t._titleWidth=v,t._titleHeight=c):(n.lineHeight=u,n.height=Math.max(c,16)+3,n.width=v)}function Tve(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function Mve(e,r,t,a){var n=e._fullLayout,i=f3(a);a||(a=n[i]);var o=n._size,l=FR.isVertical(a),s=FR.isGrouped(a),f=a.entrywidthmode==="fraction",u=a.borderwidth,c=2*u,v=ui.itemGap,d=a.indentation+a.itemwidth+v*2,p=2*(u+v),g=s3(a),m=a.y<0||a.y===0&&g==="top",b=a.y>1||a.y===1&&g==="bottom",A=a.tracegroupgap,_={},{maxheight:x,orientation:T,yref:E}=a,S=T==="v"&&E==="paper"?o.h:n.height;a._maxHeight=Math.max(x>1?x:x*S,30);var k=0;a._width=0,a._height=0;var F=Tve(a);if(l)t.each(function(He){var Ve=He[0].height;ti.setTranslate(this,u+F[0],u+F[1]+a._height+Ve/2+v),a._height+=Ve,a._width=Math.max(a._width,He[0].width)}),k=d+a._width,a._width+=v+d+c,a._height+=p,s&&(r.each(function(He,Ve){ti.setTranslate(this,0,Ve*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var O=l3(a),I=a.x<0||a.x===0&&O==="right",R=a.x>1||a.x===1&&O==="left",H=b||m,X=n.width/2;a._maxWidth=Math.max(I?H&&O==="left"?o.l+o.w:X:R?H&&O==="right"?o.r+o.w:X:o.w,2*d);var le=0,ae=0;t.each(function(He){var Ve=n3(He,a,d);le=Math.max(le,Ve),ae+=Ve}),k=null;var $=0;if(s){var Z=0,J=0,oe=0;r.each(function(){var He=0,Ve=0;Jo.select(this).selectAll("g.traces").each(function(ee){var _e=n3(ee,a,d),re=ee[0].height;ti.setTranslate(this,F[0],F[1]+u+v+re/2+Ve),Ve+=re,He=Math.max(He,_e),_[ee[0].trace.legendgroup]=He});var Qe=He+v;J>0&&Qe+u+J>a._maxWidth?($=Math.max($,J),J=0,oe+=Z+A,Z=Ve):Z=Math.max(Z,Ve),ti.setTranslate(this,J,oe),J+=Qe}),a._width=Math.max($,J)+u,a._height=oe+Z+p}else{var ce=t.size(),De=ae+c+(ce-1)*v=a._maxWidth&&($=Math.max($,Ae),Ee=0,Je+=Oe,a._height+=Oe,Oe=0),ti.setTranslate(this,F[0]+u+Ee,F[1]+u+Je+Ve/2+v),Ae=Ee+Qe+v,Ee+=ee,Oe=Math.max(Oe,Ve)}),De?(a._width=Ee+c,a._height=Oe+p):(a._width=Math.max($,Ae)+c,a._height+=Oe+p)}}a._width=Math.ceil(Math.max(a._width+F[0],a._titleWidth+2*(u+ui.titlePad))),a._height=Math.ceil(Math.max(a._height+F[1],a._titleHeight+2*(u+ui.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var or=e._context.edits,Ge=or.legendText||or.legendPosition;t.each(function(He){var Ve=Jo.select(this).select("."+i+"toggle"),Qe=He[0].height,ee=He[0].trace.legendgroup,_e=n3(He,a,d);s&&ee!==""&&(_e=_[ee]);var re=Ge?d:k||_e;!l&&!f&&(re+=v/2),ti.setRect(Ve,0,-Qe/2,re,Qe)})}function Sve(e,r,t,a){var n=e._fullLayout,i=n[r],o=l3(i),l=s3(i),s=i.xref==="paper",f=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var u=i.y<.5?"b":"t",c=i.x<.5?"l":"r",v={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&f)return Hw.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*Ld[o],r:i._width*LR[o],b:i._effHeight*LR[l],t:i._effHeight*Ld[l]});s?e._fullLayout._reservedMargin[r][u]=v[u]:f||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=v[c]:e._fullLayout._reservedMargin[r][u]=v[u]}function l3(e){return ri.isRightAnchor(e)?"right":ri.isCenterAnchor(e)?"center":"left"}function s3(e){return ri.isBottomAnchor(e)?"bottom":ri.isMiddleAnchor(e)?"middle":"top"}function f3(e){return e._id||"legend"}});var Zw=P(Xw=>{"use strict";var z0=ha(),Du=ya(),IR=Es(),Dn=Ur(),Eve=Dn.pushUnique,Ww=Dn.strTranslate,kve=Dn.strRotate,Cve=J1(),Yl=po(),Lve=oR(),Lf=Wa(),_i=va(),u3=Ps(),Df=mn(),Dve=Ri().zindexSeparator,Rd=Bt(),Ns=Cu(),G0=O1(),Fve=Fw(),Rve=Yw(),WR=G0.YANGLE,jw=Math.PI*WR/180,qve=1/Math.sin(jw),Pve=Math.cos(jw),Nve=Math.sin(jw),yn=G0.HOVERARROWSIZE,fa=G0.HOVERTEXTPAD,BR={box:!0,ohlc:!0,violin:!0,candlestick:!0},Ove={scatter:!0,scattergl:!0,splom:!0};function zR(e,r){return e.distance-r.distance}Xw.hover=function(r,t,a,n){r=Dn.getGraphDiv(r);var i=t.target;Dn.throttle(r._fullLayout._uid+G0.HOVERID,G0.HOVERMINTIME,function(){Ive(r,t,a,n,i)})};Xw.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=$R(n),o=QR(n),l=r.map(function(m){var b=m._x0||m.x0||m.x||0,A=m._x1||m.x1||m.x||0,_=m._y0||m.y0||m.y||0,x=m._y1||m.y1||m.y||0,T=m.eventData;if(T){var E=Math.min(b,A),S=Math.max(b,A),k=Math.min(_,x),F=Math.max(_,x),O=m.trace;if(Rd.traceIs(O,"gl3d")){var I=n._fullLayout[O.scene]._scene.container,R=I.offsetLeft,H=I.offsetTop;E+=R,S+=R,k+=H,F+=H}T.bbox={x0:E+o,x1:S+o,y0:k+i,y1:F+i},t.inOut_bbox&&t.inOut_bbox.push(T.bbox)}else T=!1;return{color:m.color||_i.defaultLine,x0:m.x0||m.x||0,x1:m.x1||m.x||0,y0:m.y0||m.y||0,y1:m.y1||m.y||0,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:m.text,name:m.name,idealAlign:m.idealAlign,borderColor:m.borderColor,fontFamily:m.fontFamily,fontSize:m.fontSize,fontColor:m.fontColor,fontWeight:m.fontWeight,fontStyle:m.fontStyle,fontVariant:m.fontVariant,nameLength:m.nameLength,textAlign:m.textAlign,trace:m.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:m.hovertemplate||!1,hovertemplateLabels:m.hovertemplateLabels||!1,eventData:T}}),s=!1,f=XR(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||_i.background,container:z0.select(t.container),outerContainer:t.outerContainer||t.container}),u=f.hoverLabels,c=5,v=0,d=0;u.sort(function(m,b){return m.y0-b.y0}).each(function(m,b){var A=m.y0-m.by/2;A-cS[0]._length||re<0||re>k[0]._length)return u3.unhoverRaw(e,r)}if(r.pointerX=_e+S[0]._offset,r.pointerY=re+k[0]._offset,"xval"in r?ae=Ns.flat(i,r.xval):ae=Ns.p2c(S,_e),"yval"in r?$=Ns.flat(i,r.yval):$=Ns.p2c(k,re),!Du(ae[0])||!Du($[0]))return Dn.warn("Fx.hover failed",r,e),u3.unhoverRaw(e,r)}var rr=1/0;function Cr(Pt,Ca){for(J=0;JGe&&(X.splice(0,Ge),rr=X[0].distance),c&&H!==0&&X.length===0){or.distance=H,or.index=!1;var Ba=ce._module.hoverPoints(or,Je,Ae,"closest",{hoverLayer:l._hoverlayer});if(Ba&&(Ba=Ba.filter(function(Ra){return Ra.spikeDistance<=H})),Ba&&Ba.length){var Ga,tn=Ba.filter(function(Ra){return Ra.xa.showspikes&&Ra.xa.spikesnap!=="hovered data"});if(tn.length){var Wi=tn[0];Du(Wi.x0)&&Du(Wi.y0)&&(Ga=_r(Wi),(!He.vLinePoint||He.vLinePoint.spikeDistance>Ga.spikeDistance)&&(He.vLinePoint=Ga))}var ji=Ba.filter(function(Ra){return Ra.ya.showspikes&&Ra.ya.spikesnap!=="hovered data"});if(ji.length){var qn=ji[0];Du(qn.x0)&&Du(qn.y0)&&(Ga=_r(qn),(!He.hLinePoint||He.hLinePoint.spikeDistance>Ga.spikeDistance)&&(He.hLinePoint=Ga))}}}}}Cr();function Lr(Pt,Ca,ia){for(var Va=null,hn=1/0,La,Ba=0;Ba0&&Math.abs(Pt.distance)hr-1;et--)ot(X[et]);X=Yr,wr()}var pr=e._hoverdata,Se=[],Ie=$R(e),yr=QR(e);for(Z=0;Z1||X.length>1)||v==="closest"&&Ve&&X.length>1,jn=_i.combine(l.plot_bgcolor||_i.background,l.paper_bgcolor),vn=XR(X,{gd:e,hovermode:v,rotateLabels:cn,bgColor:jn,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),wn=vn.hoverLabels;if(Ns.isUnifiedHover(v)||(zve(wn,cn,l,vn.commonLabelBoundingBox),JR(wn,cn,l._invScaleX,l._invScaleY)),n&&n.tagName){var Mi=Rd.getComponentMethod("annotations","hasClickToShow")(e,Se);Lve(z0.select(n),Mi?"pointer":"")}!n||a||!Hve(e,r,pr)||(pr&&e.emit("plotly_unhover",{event:r,points:pr}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:S,yaxes:k,xvals:ae,yvals:$}))}function jR(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Bve=/([\s\S]*)<\/extra>/;function XR(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,f=r.commonLabelOpts||{};if(e.length===0)return[[]];var u=r.fontFamily||G0.HOVERFONT,c=r.fontSize||G0.HOVERFONTSIZE,v=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,p=r.fontVariant||a.font.variant,g=r.fontTextcase||a.font.textcase,m=r.fontLineposition||a.font.lineposition,b=r.fontShadow||a.font.shadow,A=e[0],_=A.xa,x=A.ya,T=n.charAt(0),E=T+"Label",S=A[E];if(S===void 0&&_.type==="multicategory")for(var k=0;ka.width-yr&&(cr=a.width-yr),hr.attr("d","M"+(pr-cr)+",0L"+(pr-cr+yn)+","+Ie+yn+"H"+yr+"v"+Ie+(fa*2+et.height)+"H"+-yr+"V"+Ie+yn+"H"+(pr-cr-yn)+"Z"),pr=cr,J.minX=pr-yr,J.maxX=pr+yr,_.side==="top"?(J.minY=Se-(fa*2+et.height),J.maxY=Se-fa):(J.minY=Se+fa,J.maxY=Se+(fa*2+et.height))}else{var xt,At,gt;x.side==="right"?(xt="start",At=1,gt="",pr=_._offset+_._length):(xt="end",At=-1,gt="-",pr=_._offset),Se=x._offset+(A.y0+A.y1)/2,Or.attr("text-anchor",xt),hr.attr("d","M0,0L"+gt+yn+","+yn+"V"+(fa+et.height/2)+"h"+gt+(fa*2+et.width)+"V-"+(fa+et.height/2)+"H"+gt+yn+"V-"+yn+"Z"),J.minY=Se-(fa+et.height/2),J.maxY=Se+(fa+et.height/2),x.side==="right"?(J.minX=pr+yn,J.maxX=pr+yn+(fa*2+et.width)):(J.minX=pr-yn-(fa*2+et.width),J.maxX=pr-yn);var Nt=et.height/2,ta=O-et.top-Nt,ka="clip"+a._uid+"commonlabel"+x._id,Ta;if(pr=0?lt=Hr:Vr+rr=0?lt=Vr:Pe+rr=0?Et=Jr:wr+Cr=0?Et=wr:sr+Cr=0,(Fe.idealAlign==="top"||!ja)&&cn?(gt-=ta/2,Fe.anchor="end"):ja?(gt+=ta/2,Fe.anchor="start"):Fe.anchor="middle",Fe.crossPos=gt;else{if(Fe.pos=gt,ja=At+Nt/2+bn<=I,cn=At-Nt/2-bn>=0,(Fe.idealAlign==="left"||!ja)&&cn)At-=Nt/2,Fe.anchor="end";else if(ja)At+=Nt/2,Fe.anchor="start";else{Fe.anchor="middle";var jn=bn/2,vn=At+jn-I,wn=At-jn;vn>0&&(At-=vn),wn<0&&(At+=-wn)}Fe.crossPos=At}Se.attr("text-anchor",Fe.anchor),yr&&Ie.attr("text-anchor",Fe.anchor),hr.attr("transform",Ww(At,gt)+(i?kve(WR):""))}),{hoverLabels:wt,commonLabelBoundingBox:J}}function GR(e,r,t,a,n,i){var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Dn.templateString(e.name,e.trace._meta)),o=VR(e.name,e.nameLength));var s=t.charAt(0),f=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?l=e[f+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o);var u=e.hovertemplate||!1;if(u){var c=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(c[s+"other"]=c[s+"Val"],c[s+"otherLabel"]=c[s+"Label"]),l=Dn.hovertemplateString(u,c,a._d3locale,e.eventData[0]||{},e.trace._meta),l=l.replace(Bve,function(v,d){return o=VR(d,e.nameLength),""})}return[l,o]}function zve(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),f=new Array(s),u=0,c=a.minX,v=a.maxX,d=a.minY,p=a.maxY,g=function(ae){return ae*t._invScaleX},m=function(ae){return ae*t._invScaleY};e.each(function(ae){var $=ae[n],Z=ae[i],J=$._id.charAt(0)==="x",oe=$.range;u===0&&oe&&oe[0]>oe[1]!==J&&(l=-1);var ce=0,De=J?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var Oe=ZR(ae,r),Ee=ae.anchor,Je=Ee==="end"?-1:1,Ae,or;if(Ee==="middle")Ae=ae.crossPos+(J?m(Oe.y-ae.by/2):g(ae.bx/2+ae.tx2width/2)),or=Ae+(J?m(ae.by):g(ae.bx));else if(J)Ae=ae.crossPos+m(yn+Oe.y)-m(ae.by/2-yn),or=Ae+m(ae.by);else{var Ge=g(Je*yn+Oe.x),He=Ge+g(Je*ae.bx);Ae=ae.crossPos+Math.min(Ge,He),or=ae.crossPos+Math.max(Ge,He)}J?d!==void 0&&p!==void 0&&Math.min(or,p)-Math.max(Ae,d)>1&&(Z.side==="left"?(ce=Z._mainLinePosition,De=t.width):De=Z._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(or,v)-Math.max(Ae,c)>1&&(Z.side==="top"?(ce=Z._mainLinePosition,De=t.height):De=Z._mainLinePosition)}f[u++]=[{datum:ae,traceIndex:ae.trace.index,dp:0,pos:ae.pos,posref:ae.posref,size:ae.by*(J?qve:1)/2,pmin:ce,pmax:De}]}),f.sort(function(ae,$){return ae[0].posref-$[0].posref||l*($[0].traceIndex-ae[0].traceIndex)});var b,A,_,x,T,E,S;function k(ae){var $=ae[0],Z=ae[ae.length-1];if(A=$.pmin-$.pos-$.dp+$.size,_=Z.pos+Z.dp+Z.size-$.pmax,A>.01){for(T=ae.length-1;T>=0;T--)ae[T].dp+=A;b=!1}if(!(_<.01)){if(A<-.01){for(T=ae.length-1;T>=0;T--)ae[T].dp-=_;b=!1}if(b){var J=0;for(x=0;x$.pmax&&J++;for(x=ae.length-1;x>=0&&!(J<=0);x--)E=ae[x],E.pos>$.pmax-1&&(E.del=!0,J--);for(x=0;x=0;T--)ae[T].dp-=_;for(x=ae.length-1;x>=0&&!(J<=0);x--)E=ae[x],E.pos+E.dp+E.size>$.pmax&&(E.del=!0,J--)}}}for(;!b&&o<=s;){for(o++,b=!0,x=0;x.01){for(T=O.length-1;T>=0;T--)O[T].dp+=A;for(F.push.apply(F,O),f.splice(x+1,1),S=0,T=F.length-1;T>=0;T--)S+=F[T].dp;for(_=S/F.length,T=F.length-1;T>=0;T--)F[T].dp-=_;b=!1}else x++}f.forEach(k)}for(x=f.length-1;x>=0;x--){var H=f[x];for(T=H.length-1;T>=0;T--){var X=H[T],le=X.datum;le.offset=X.dp,le.del=X.del}}}function ZR(e,r){var t=0,a=e.offset;return r&&(a*=-Nve,t=e.offset*Pve),{x:t,y:a}}function Gve(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(yn+fa),a=t+r*(e.txwidth+fa),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+fa),{alignShift:r,textShiftX:t,text2ShiftX:a}}function JR(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=z0.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),f=o.anchor,u=f==="end"?-1:1,c=Gve(o),v=ZR(o,r),d=v.x,p=v.y,g=f==="middle",m="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,b;g?b="M-"+n(o.bx/2+o.tx2width/2)+","+i(p-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":m?b="M0,0L"+n(u*yn+d)+","+i(yn+p)+"v"+i(o.by/2-yn)+"h"+n(u*o.bx)+"v-"+i(o.by)+"H"+n(u*yn+d)+"V"+i(p-yn)+"Z":b="M"+n(u*yn+d)+","+i(p-o.by/2)+"h"+n(u*o.bx)+"v"+i(o.by)+"h"+n(-u*o.bx)+"Z",l.select("path").attr("d",b);var A=d+c.textShiftX,_=p+o.ty0-o.by/2+fa,x=o.textAlign||"auto";x!=="auto"&&(x==="left"&&f!=="start"?(s.attr("text-anchor","start"),A=g?-o.bx/2-o.tx2width/2+fa:-o.bx-fa):x==="right"&&f!=="end"&&(s.attr("text-anchor","end"),A=g?o.bx/2-o.tx2width/2-fa:o.bx+fa)),s.call(Yl.positionText,n(A),i(_)),o.tx2width&&(l.select("text.name").call(Yl.positionText,n(c.text2ShiftX+c.alignShift*fa+d),i(p+o.ty0-o.by/2+fa)),l.select("rect").call(Lf.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),i(p-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function Uve(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||Du(v)&&v===0}var l=Array.isArray(t)?function(v,d){var p=Dn.castOption(n,t,v);return o(p)?p:Dn.extractOption({},a,"",d)}:function(v,d){return Dn.extractOption(i,a,v,d)};function s(v,d,p){var g=l(d,p);o(g)&&(e[v]=g)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Dn.constrain(e.x0,0,e.xa._length),e.x1=Dn.constrain(e.x1,0,e.xa._length),e.y0=Dn.constrain(e.y0,0,e.ya._length),e.y1=Dn.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Df.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Df.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var f=Df.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+f+" / -"+Df.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+f,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var u=Df.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+u+" / -"+Df.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+u,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function UR(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,f,u;if(a.selectAll(".spikeline").remove(),!!(s||l)){var c=_i.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var v=r.hLinePoint,d,p;f=v&&v.xa,u=v&&v.ya;var g=u.spikesnap;g==="cursor"?(d=o.pointerX,p=o.pointerY):(d=f._offset+v.x,p=u._offset+v.y);var m=IR.readability(v.color,c)<1.5?_i.contrast(c):v.color,b=u.spikemode,A=u.spikethickness,_=u.spikecolor||m,x=Df.getPxPosition(e,u),T,E;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(T=x,E=d),b.indexOf("across")!==-1){var S=u._counterDomainMin,k=u._counterDomainMax;u.anchor==="free"&&(S=Math.min(S,u.position),k=Math.max(k,u.position)),T=i.l+S*i.w,E=i.l+k*i.w}a.insert("line",":first-child").attr({x1:T,x2:E,y1:p,y2:p,"stroke-width":A,stroke:_,"stroke-dasharray":Lf.dashStyle(u.spikedash,A)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:T,x2:E,y1:p,y2:p,"stroke-width":A+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:x+(u.side!=="right"?A:-A),cy:p,r:A,fill:_}).classed("spikeline",!0)}if(s){var F=r.vLinePoint,O,I;f=F&&F.xa,u=F&&F.ya;var R=f.spikesnap;R==="cursor"?(O=o.pointerX,I=o.pointerY):(O=f._offset+F.x,I=u._offset+F.y);var H=IR.readability(F.color,c)<1.5?_i.contrast(c):F.color,X=f.spikemode,le=f.spikethickness,ae=f.spikecolor||H,$=Df.getPxPosition(e,f),Z,J;if(X.indexOf("toaxis")!==-1||X.indexOf("across")!==-1){if(X.indexOf("toaxis")!==-1&&(Z=$,J=I),X.indexOf("across")!==-1){var oe=f._counterDomainMin,ce=f._counterDomainMax;f.anchor==="free"&&(oe=Math.min(oe,f.position),ce=Math.max(ce,f.position)),Z=i.t+(1-ce)*i.h,J=i.t+(1-oe)*i.h}a.insert("line",":first-child").attr({x1:O,x2:O,y1:Z,y2:J,"stroke-width":le,stroke:ae,"stroke-dasharray":Lf.dashStyle(f.spikedash,le)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:O,x2:O,y1:Z,y2:J,"stroke-width":le+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}X.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:O,cy:$-(f.side!=="top"?le:-le),r:le,fill:ae}).classed("spikeline",!0)}}}function Hve(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers))return!0}return!1}function HR(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function VR(e,r){return Yl.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Vve(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;o{"use strict";var Yve=Ur(),Wve=va(),jve=Cu().isUnifiedHover;KR.exports=function(r,t,a,n){n=n||{};var i=t.legend;function o(l){n.font[l]||(n.font[l]=i?t.legend.font[l]:t.font[l])}t&&jve(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=Wve.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),Yve.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var rq=P((cLe,eq)=>{"use strict";var Xve=Ur(),Zve=c3(),Jve=Jh();eq.exports=function(r,t){function a(n,i){return Xve.coerce(r,t,Jve,n,i)}Zve(r,t,a)}});var nq=P((vLe,aq)=>{"use strict";var tq=Ur(),$ve=Ng(),Qve=c3();aq.exports=function(r,t,a,n){function i(l,s){return tq.coerce(r,t,$ve,l,s)}var o=tq.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),Qve(r,t,i,o)}});var Jw=P((hLe,iq)=>{"use strict";var Kve=Ur(),e0e=Jh();iq.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:Kve.coerce(r,t,e0e,n,i)}return a("clickmode"),a("hoversubplots"),a("hovermode")}});var sq=P((dLe,lq)=>{"use strict";var oq=Ur(),r0e=Jh(),t0e=Jw(),a0e=c3();lq.exports=function(r,t){function a(u,c){return oq.coerce(r,t,r0e,u,c)}var n=t0e(r,t);n&&(a("hoverdistance"),a("spikedistance"));var i=a("dragmode");i==="select"&&a("selectdirection");var o=t._has("mapbox"),l=t._has("map"),s=t._has("geo"),f=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l||s)&&f===1||(o||l)&&s&&f===2)&&(t.dragmode="pan"),a0e(r,t,a),oq.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var cq=P((pLe,uq)=>{"use strict";var $w=Ur(),fq=Bt();uq.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(f){return function(u){return $w.coerceHoverinfo({hoverinfo:u},{_module:f._module},a)}}for(var i=0;i{"use strict";var i0e=Bt(),o0e=Zw().hover;vq.exports=function(r,t,a){var n=i0e.getComponentMethod("annotations","onClick")(r,r._hoverdata);a!==void 0&&o0e(r,t,a,!0);function i(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(n&&n.then?n.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Wc=P((yLe,mq)=>{"use strict";var l0e=ha(),v3=Ur(),s0e=Ps(),ym=Cu(),dq=Jh(),pq=Zw();mq.exports={moduleType:"component",name:"fx",constants:O1(),schema:{layout:dq},attributes:Ng(),layoutAttributes:dq,supplyLayoutGlobalDefaults:rq(),supplyDefaults:nq(),supplyLayoutDefaults:sq(),calc:cq(),getDistanceFunction:ym.getDistanceFunction,getClosest:ym.getClosest,inbox:ym.inbox,quadrature:ym.quadrature,appendArrayPointValue:ym.appendArrayPointValue,castHoverOption:u0e,castHoverinfo:c0e,hover:pq.hover,unhover:s0e.unhover,loneHover:pq.loneHover,loneUnhover:f0e,click:hq()};function f0e(e){var r=v3.isD3Selection(e)?e:l0e.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function u0e(e,r,t){return v3.castOption(e,r,"hoverlabel."+t)}function c0e(e,r,t){function a(n){return v3.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return v3.castOption(e,t,"hoverinfo",a)}});var jc=P(Fu=>{"use strict";Fu.selectMode=function(e){return e==="lasso"||e==="select"};Fu.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Fu.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Fu.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Fu.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Fu.selectingOrDrawing=function(e){return Fu.freeMode(e)||Fu.rectMode(e)}});var h3=P((bLe,yq)=>{"use strict";yq.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var d3=P((xLe,gq)=>{"use strict";gq.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var m3=P((_Le,bq)=>{"use strict";var p3=32;bq.exports={CIRCLE_SIDES:p3,i000:0,i090:p3/4,i180:p3/2,i270:p3/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var y3=P((wLe,_q)=>{"use strict";var v0e=Ur().strTranslate;function xq(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function h0e(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function d0e(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return xq(e,t[r])}}function p0e(e){return v0e(e.xaxis._offset,e.yaxis._offset)}_q.exports={p2r:xq,r2p:h0e,axValue:d0e,getTransform:p0e}});var Xc=P(Ru=>{"use strict";var m0e=nm(),Tq=m3(),qd=Tq.CIRCLE_SIDES,Qw=Tq.SQRT2,Mq=y3(),wq=Mq.p2r,Aq=Mq.r2p,y0e=[0,3,4,5,6,1,2],g0e=[0,3,4,1,2];Ru.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var Sq=Sn(),Dq=jc(),b0e=Dq.drawMode,x0e=Dq.openMode,Pd=m3(),Eq=Pd.i000,kq=Pd.i090,Cq=Pd.i180,Lq=Pd.i270,_0e=Pd.cos45,w0e=Pd.sin45,Fq=y3(),b3=Fq.p2r,Zc=Fq.r2p,A0e=Oc(),T0e=A0e.clearOutline,x3=Xc(),M0e=x3.readPaths,S0e=x3.writePaths,E0e=x3.ellipseOver,k0e=x3.fixDatesForPaths;function C0e(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,o=(a.layout||{}).shapes||[];if(!b0e(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var L0e=jc(),D0e=L0e.selectMode,F0e=Oc(),R0e=F0e.clearOutline,Kw=Xc(),q0e=Kw.readPaths,P0e=Kw.writePaths,N0e=Kw.fixDatesForPaths;Pq.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,f=l.yaxis,u=t.isActiveSelection,c=t.dragmode,v=(i.layout||{}).selections||[];if(!D0e(c)&&u!==void 0){var d=i._fullLayout._activeSelectionIndex;if(d{"use strict";Nq.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var Jc=P(Pi=>{"use strict";var U0=bm(),Oq=Ur(),w3=mn();Pi.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Pi.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Pi.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Pi.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Pi.extractPathCoords=function(e,r,t){var a=[],n=e.match(U0.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.substr(1).match(U0.paramRE);if(!(!l||l.lengthd&&(g="X"),g});return f>d&&(p=p.replace(/[\s,]*X.*/,""),Oq.log("Ignoring extra params in segment "+s)),u+p})}function xm(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var tA=P((kLe,Gq)=>{"use strict";var I0e=Ur(),Nd=mn(),Iq=po(),Bq=Wa(),B0e=Xc().readPaths,rA=Jc(),z0e=rA.getPathString,zq=Vg(),G0e=ho().FROM_TL;Gq.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var o={};if(a.type!=="path"){var l=Nd.getFromId(r,a.xref),s=Nd.getFromId(r,a.yref);for(var f in zq){var u=zq[f](a,l,s);u!==void 0&&(o[f]=u)}}i=I0e.texttemplateStringForShapes(a.label.texttemplate,{},r._fullLayout._d3locale,o)}else i=a.label.text;var c={"data-index":t},v=a.label.font,d={"data-notex":1},p=n.append("g").attr(c).classed("shape-label",!0),g=p.append("text").attr(d).classed("shape-label-text",!0).text(i),m,b,A,_;if(a.path){var x=z0e(r,a),T=B0e(x,r);m=1/0,A=1/0,b=-1/0,_=-1/0;for(var E=0;E=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function H0e(e,r,t,a,n,i,o){var l=n.label.textposition,s=n.label.textangle,f=n.label.padding,u=n.type,c=Math.PI/180*i,v=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,g=n.label.yanchor,m,b,A,_;if(u==="line"){l==="start"?(m=e,b=r):l==="end"?(m=t,b=a):(m=(e+t)/2,b=(r+a)/2),p==="auto"&&(l==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var V0e=Ur(),Y0e=V0e.strTranslate,Uq=Ps(),Yq=jc(),W0e=Yq.drawMode,Wq=Yq.selectMode,jq=Bt(),Hq=va(),T3=m3(),j0e=T3.i000,X0e=T3.i090,Z0e=T3.i180,J0e=T3.i270,$0e=Oc(),Xq=$0e.clearOutlineControllers,nA=Xc(),A3=nA.pointsOnRectangle,aA=nA.pointsOnEllipse,Q0e=nA.writePaths,K0e=_3().newShapes,ehe=_3().createShapeObj,rhe=eA(),the=tA();Zq.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(aA(r[0])||a.hasText)&&l({redrawing:!0})}function l($){var Z={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,Z=K0e(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,Z=rhe(t,a),i._fullLayout._reselect=!0),Object.keys(Z).length&&jq.call(($||{}).redrawing?"relayout":"_guiRelayout",i,Z)}var s=i._fullLayout,f=s._zoomlayer,u=a.dragmode,c=W0e(u),v=Wq(u);(c||v)&&(i._fullLayout._outlining=!0),Xq(i),t.attr("d",Q0e(r));var d,p,g,m,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=ahe([],r);var A=f.append("g").attr("class","outline-controllers");O(A),ae()}if(c&&a.hasText){var _=f.select(".label-temp"),x=ehe(t,a,a.dragmode);the(i,"label-temp",x,_)}function T($){g=+$.srcElement.getAttribute("data-i"),m=+$.srcElement.getAttribute("data-j"),d[g][m].moveFn=E}function E($,Z){if(r.length){var J=b[g][m][1],oe=b[g][m][2],ce=r[g],De=ce.length;if(A3(ce)){var Oe=$,Ee=Z;if(a.isActiveSelection){var Je=Vq(ce,m);Je[1]===ce[m][1]?Ee=0:Oe=0}for(var Ae=0;Ae1&&!($.length===2&&$[1][0]==="Z")&&(m===0&&($[0][0]="M"),r[g]=$,o(),l())}}function F($,Z){if($===2){g=+Z.srcElement.getAttribute("data-i"),m=+Z.srcElement.getAttribute("data-j");var J=r[g];!A3(J)&&!aA(J)&&k()}}function O($){d=[];for(var Z=0;Z{"use strict";var ihe=ha(),rP=Bt(),Jq=Ur(),Od=mn(),ohe=Xc().readPaths,lhe=M3(),E3=tA(),tP=Oc().clearOutlineControllers,iA=va(),lA=Wa(),she=$a().arrayEditor,$q=Ps(),Qq=Yc(),H0=bm(),$o=Jc(),oA=$o.getPathString;iP.exports={draw:sA,drawOne:aP,eraseActiveShape:che,drawLabel:E3};function sA(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;no&&rt>l&&!Lr.shiftKey?$q.getCursor(Jr/Pr,1-wr/rt):"move";Qq(r,Hr),or=Hr.split("-")[0]}}function Qe(Lr){S3(e)||(s&&(b=ce(t.xanchor)),f&&(A=De(t.yanchor)),t.type==="path"?I=t.path:(d=s?t.x0:ce(t.x0),p=f?t.y0:De(t.y0),g=s?t.x1:ce(t.x1),m=f?t.y1:De(t.y1)),dm?(_=p,S="y0",x=m,k="y1"):(_=m,S="y1",x=p,k="y0"),Ve(Lr),vr(n,t),Cr(r,t,e),Ae.moveFn=or==="move"?re:Ze,Ae.altKey=Lr.altKey)}function ee(){S3(e)||(Qq(r),rr(n),nP(r,e,t),rP.call("_guiRelayout",e,i.getUpdateObj()))}function _e(){S3(e)||rr(n)}function re(Lr,_r){if(t.type==="path"){var Pr=function(wr){return wr},rt=Pr,Jr=Pr;s?v("xanchor",t.xanchor=Oe(b+Lr)):(rt=function(Hr){return Oe(ce(Hr)+Lr)},H&&H.type==="date"&&(rt=$o.encodeDate(rt))),f?v("yanchor",t.yanchor=Ee(A+_r)):(Jr=function(Hr){return Ee(De(Hr)+_r)},le&&le.type==="date"&&(Jr=$o.encodeDate(Jr))),v("path",t.path=Kq(I,rt,Jr))}else s?v("xanchor",t.xanchor=Oe(b+Lr)):(v("x0",t.x0=Oe(d+Lr)),v("x1",t.x1=Oe(g+Lr))),f?v("yanchor",t.yanchor=Ee(A+_r)):(v("y0",t.y0=Ee(p+_r)),v("y1",t.y1=Ee(m+_r)));r.attr("d",oA(e,t)),vr(n,t),E3(e,a,t,R)}function Ze(Lr,_r){if(c){var Pr=function(nt){return nt},rt=Pr,Jr=Pr;s?v("xanchor",t.xanchor=Oe(b+Lr)):(rt=function(vt){return Oe(ce(vt)+Lr)},H&&H.type==="date"&&(rt=$o.encodeDate(rt))),f?v("yanchor",t.yanchor=Ee(A+_r)):(Jr=function(vt){return Ee(De(vt)+_r)},le&&le.type==="date"&&(Jr=$o.encodeDate(Jr))),v("path",t.path=Kq(I,rt,Jr))}else if(u){if(or==="resize-over-start-point"){var wr=d+Lr,Hr=f?p-_r:p+_r;v("x0",t.x0=s?wr:Oe(wr)),v("y0",t.y0=f?Hr:Ee(Hr))}else if(or==="resize-over-end-point"){var Vr=g+Lr,Pe=f?m-_r:m+_r;v("x1",t.x1=s?Vr:Oe(Vr)),v("y1",t.y1=f?Pe:Ee(Pe))}}else{var sr=function(nt){return or.indexOf(nt)!==-1},lt=sr("n"),Et=sr("s"),wt=sr("w"),Fe=sr("e"),hr=lt?_+_r:_,Or=Et?x+_r:x,at=wt?T+Lr:T,Yr=Fe?E+Lr:E;f&&(lt&&(hr=_-_r),Et&&(Or=x-_r)),(!f&&Or-hr>l||f&&hr-Or>l)&&(v(S,t[S]=f?hr:Ee(hr)),v(k,t[k]=f?Or:Ee(Or))),Yr-at>o&&(v(F,t[F]=s?at:Oe(at)),v(O,t[O]=s?Yr:Oe(Yr)))}r.attr("d",oA(e,t)),vr(n,t),E3(e,a,t,R)}function vr(Lr,_r){(s||f)&&Pr();function Pr(){var rt=_r.type!=="path",Jr=Lr.selectAll(".visual-cue").data([0]),wr=1;Jr.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":wr}).classed("visual-cue",!0);var Hr=ce(s?_r.xanchor:Jq.midRange(rt?[_r.x0,_r.x1]:$o.extractPathCoords(_r.path,H0.paramIsX))),Vr=De(f?_r.yanchor:Jq.midRange(rt?[_r.y0,_r.y1]:$o.extractPathCoords(_r.path,H0.paramIsY)));if(Hr=$o.roundPositionForSharpStrokeRendering(Hr,wr),Vr=$o.roundPositionForSharpStrokeRendering(Vr,wr),s&&f){var Pe="M"+(Hr-1-wr)+","+(Vr-1-wr)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Jr.attr("d",Pe)}else if(s){var sr="M"+(Hr-1-wr)+","+(Vr-9-wr)+"v18 h2 v-18 Z";Jr.attr("d",sr)}else{var lt="M"+(Hr-9-wr)+","+(Vr-1-wr)+"h18 v2 h-18 Z";Jr.attr("d",lt)}}}function rr(Lr){Lr.selectAll(".visual-cue").remove()}function Cr(Lr,_r,Pr){var rt=_r.xref,Jr=_r.yref,wr=Od.getFromId(Pr,rt),Hr=Od.getFromId(Pr,Jr),Vr="";rt!=="paper"&&!wr.autorange&&(Vr+=rt),Jr!=="paper"&&!Hr.autorange&&(Vr+=Jr),lA.setClipUrl(Lr,Vr?"clip"+Pr._fullLayout._uid+Vr:null,Pr)}}function Kq(e,r,t){return e.replace(H0.segmentRE,function(a){var n=0,i=a.charAt(0),o=H0.paramIsX[i],l=H0.paramIsY[i],s=H0.numParams[i],f=a.substr(1).replace(H0.paramRE,function(u){return n>=s||(o[n]?u=r(u):l[n]&&(u=t(u)),n++),u});return i+f})}function uhe(e,r){if(k3(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){eP(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=eP,sA(e)}}}function eP(e){if(k3(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(tP(e),delete e._fullLayout._activeShapeIndex,sA(e))}}function che(e){if(k3(e)){tP(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Wl=Bt(),oP=bi(),lP=Sn(),ga=d3(),vhe=C3().eraseActiveShape,L3=Ur(),la=L3._,ba=dP.exports={};ba.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?la(e,"Download plot as a PNG"):la(e,"Download plot")},icon:ga.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};L3.notifier(la(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Wl.call("downloadImage",e,t).then(function(a){L3.notifier(la(e,"Snapshot succeeded")+" - "+a,"long")}).catch(function(){L3.notifier(la(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};ba.sendDataToCloud={name:"sendDataToCloud",title:function(e){return la(e,"Edit in Chart Studio")},icon:ga.disk,click:function(e){oP.sendDataToCloud(e)}};ba.editInChartStudio={name:"editInChartStudio",title:function(e){return la(e,"Edit in Chart Studio")},icon:ga.pencil,click:function(e){oP.sendDataToCloud(e)}};ba.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return la(e,"Zoom")},attr:"dragmode",val:"zoom",icon:ga.zoombox,click:go};ba.pan2d={name:"pan2d",_cat:"pan",title:function(e){return la(e,"Pan")},attr:"dragmode",val:"pan",icon:ga.pan,click:go};ba.select2d={name:"select2d",_cat:"select",title:function(e){return la(e,"Box Select")},attr:"dragmode",val:"select",icon:ga.selectbox,click:go};ba.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return la(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:ga.lasso,click:go};ba.drawclosedpath={name:"drawclosedpath",title:function(e){return la(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:ga.drawclosedpath,click:go};ba.drawopenpath={name:"drawopenpath",title:function(e){return la(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:ga.drawopenpath,click:go};ba.drawline={name:"drawline",title:function(e){return la(e,"Draw line")},attr:"dragmode",val:"drawline",icon:ga.drawline,click:go};ba.drawrect={name:"drawrect",title:function(e){return la(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:ga.drawrect,click:go};ba.drawcircle={name:"drawcircle",title:function(e){return la(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:ga.drawcircle,click:go};ba.eraseshape={name:"eraseshape",title:function(e){return la(e,"Erase active shape")},icon:ga.eraseshape,click:vhe};ba.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return la(e,"Zoom in")},attr:"zoom",val:"in",icon:ga.zoom_plus,click:go};ba.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return la(e,"Zoom out")},attr:"zoom",val:"out",icon:ga.zoom_minus,click:go};ba.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return la(e,"Autoscale")},attr:"zoom",val:"auto",icon:ga.autoscale,click:go};ba.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return la(e,"Reset axes")},attr:"zoom",val:"reset",icon:ga.home,click:go};ba.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return la(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:ga.tooltip_basic,gravity:"ne",click:go};ba.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return la(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:ga.tooltip_compare,gravity:"ne",click:go};function go(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=lP.list(e,null,!0),s=i._cartesianSpikesEnabled,f,u;if(a==="zoom"){var c=n==="in"?.5:2,v=(1+c)/2,d=(1-c)/2,p,g;for(u=0;u{"use strict";var pP=cA(),phe=Object.keys(pP),mP=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],yP=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(mP),Bd=[],mhe=function(e){if(yP.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();Bd.indexOf(r)===-1&&Bd.push(r),Bd.indexOf(t)===-1&&Bd.push(t)}};phe.forEach(function(e){mhe(pP[e])});Bd.sort();gP.exports={DRAW_MODES:mP,backButtons:yP,foreButtons:Bd}});var hA=P((qLe,bP)=>{"use strict";var RLe=vA();bP.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var _P=P((PLe,xP)=>{"use strict";var yhe=Ur(),_m=va(),ghe=$a(),bhe=hA();xP.exports=function(r,t){var a=r.modebar||{},n=ghe.newContainer(t,"modebar");function i(l,s){return yhe.coerce(a,n,bhe,l,s)}i("orientation"),i("bgcolor",_m.addOpacity(t.paper_bgcolor,.5));var o=_m.contrast(_m.rgb(t.modebar.bgcolor));i("color",_m.addOpacity(o,.3)),i("activecolor",_m.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var MP=P((NLe,TP)=>{"use strict";var dA=ha(),xhe=ya(),F3=Ur(),wP=d3(),_he=Tg().version,whe=new DOMParser;function AP(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Ff=AP.prototype;Ff.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,f=this.locale!==t.locale;if(this.locale=t.locale,(l||s||f)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var u=this.getLogo();t.watermark&&(u.className=u.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(u,this.element.childNodes[0]):this.element.appendChild(u),this.hasLogo=!0}this.updateActiveButton(),F3.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Ff.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(n);r.buttonElements.push(o),a.appendChild(o)}),r.element.appendChild(a)})};Ff.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Ff.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&dA.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||wP.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Ff.createIcon=function(e){var r=xhe(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=whe.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Ff.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),o=a.getAttribute("data-toggle")==="true",l=dA.select(a),s=function(c,v){var d=r.modebar,p=c.querySelector(".icon path");p&&(v||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(i===t){var f=!l.classed("active");l.classed("active",f),s(a,f)}}else{var u=i===null?i:F3.nestedProperty(r,i).get();l.classed("active",u===n),s(a,u===n)}})};Ff.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var Mhe=Sn(),SP=qi(),pA=Bt(),She=Cu().isUnifiedHover,Ehe=MP(),R3=cA(),khe=vA().DRAW_MODES,Che=Ur().extendDeep;EP.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,o;Array.isArray(i)&&i.length?o=Phe(i):!a.displayModeBar&&a.watermark?o=[]:o=Lhe(r),n?n.update(r,o):t._modeBar=Ehe(r,o)};function Lhe(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(Z,J){if(typeof J=="string"){if(J.toLowerCase()===Z.toLowerCase())return!0}else{var oe=J.name,ce=J._cat||J.name;if(oe===Z||ce===Z.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=a.modeBarButtonsToAdd.concat(i.filter(function(Z){for(var J=0;J1?(O=["toggleHover"],I=["resetViews"]):c?(F=["zoomInGeo","zoomOutGeo"],O=["hoverClosestGeo"],I=["resetGeo"]):u?(O=["hoverClosest3d"],I=["resetCameraDefault3d","resetCameraLastSave3d"]):g?(F=["zoomInMapbox","zoomOutMapbox"],O=["toggleHover"],I=["resetViewMapbox"]):m?(F=["zoomInMap","zoomOutMap"],O=["toggleHover"],I=["resetViewMap"]):v?O=["hoverClosestPie"]:_?(O=["hoverClosestCartesian","hoverCompareCartesian"],I=["resetViewSankey"]):O=["toggleHover"],f&&O.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Rhe(t)||T)&&(O=[]),f&&!x&&(F=["zoomIn2d","zoomOut2d","autoScale2d"],I[0]!=="resetViews"&&(I=["resetScale2d"])),u?R=["zoom3d","pan3d","orbitRotation","tableRotation"]:f&&!x||p?R=["zoom2d","pan2d"]:g||m||c?R=["pan2d"]:b&&(R=["zoom2d"]),Fhe(t)&&R.push("select2d","lasso2d");var H=[],X=function(Z){H.indexOf(Z)===-1&&O.indexOf(Z)!==-1&&H.push(Z)};if(Array.isArray(l)){for(var le=[],ae=0;ae{"use strict";CP.exports={moduleType:"component",name:"modebar",layoutAttributes:hA(),supplyLayoutDefaults:_P(),manage:kP()}});var yA=P((BLe,LP)=>{"use strict";var Nhe=ho().FROM_BL;LP.exports=function(r,t,a){a===void 0&&(a=Nhe[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var Am=P(wm=>{"use strict";var V0=Ur(),gA=Ad(),Os=Sn().id2name,Ohe=Ul(),DP=yA(),Ihe=O2(),Bhe=Qn().ALMOST_EQUAL,zhe=ho().FROM_BL;wm.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,f,u,c,v,d,p;for(l=0;li?t.substr(i):a.substr(n))+o}function Uhe(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;oBhe*p&&!A)){for(i=0;iR&&oeO&&(O=oe);var De=(O-F)/(2*I);c/=De,F=s.l2r(F),O=s.l2r(O),s.range=s._input.range=E{"use strict";var P3=ha(),bo=Bt(),Al=bi(),jl=Ur(),_A=po(),wA=h3(),Tm=va(),zd=Wa(),PP=lm(),zP=mA(),Mm=mn(),qu=ho(),GP=Am(),Hhe=GP.enforce,Vhe=GP.clean,NP=Ad().doAutoRange,UP="start",Yhe="middle",HP="end",Whe=Ri().zindexSeparator;wi.layoutStyles=function(e){return jl.syncOrAsync([Al.doAutoMargin,Xhe],e)};function jhe(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function Xhe(e){var r=e._fullLayout,t=r._size,a=t.p,n=Mm.list(e,"",!0),i,o,l,s,f,u;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(zd.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),wi.drawMainTitle(e),zP.manage(e),!r._has("cartesian"))return Al.previousPromises(e);function c(Qe,ee,_e){var re=Qe._lw/2;if(Qe._id.charAt(0)==="x"){if(ee){if(_e==="top")return ee._offset-a-re}else return t.t+t.h*(1-(Qe.position||0))+re%1;return ee._offset+ee._length+a+re}if(ee){if(_e==="right")return ee._offset+ee._length+a+re}else return t.l+t.w*(Qe.position||0)+re%1;return ee._offset-a-re}for(i=0;i0){Qhe(e,i,f,s),l.attr({x:o,y:i,"text-anchor":a,dy:BP(r.yanchor)}).call(_A.positionText,o,i);var u=(r.text.match(_A.BR_TAG_ALL)||[]).length;if(u){var c=qu.LINE_SPACING*u+qu.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var m=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",m)})}var v=P3.selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,g=p+PP.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y:g,"text-anchor":a,dy:BP(r.yanchor)}).call(_A.positionText,o,g)}}}};function Zhe(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=jl.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return jl.isTopAnchor(r)&&t==="t"||jl.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=Jhe(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function Qhe(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&Zhe(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),Al.allowAutoMargin(e,n),Al.autoMargin(e,n,l)}function Khe(e,r){var t=e.title,a=e._size,n=0;switch(r===UP?n=t.pad.l:r===HP&&(n=-t.pad.r),t.xref){case"paper":return a.l+a.w*t.x+n;case"container":default:return e.width*t.x+n}}function ede(e,r){var t=e.title,a=e._size,n=0;if(r==="0em"||!r?n=-t.pad.b:r===qu.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto")return a.t/2;switch(t.yref){case"paper":return a.t+a.h-a.h*t.y+n;case"container":default:return e.height-e.height*t.y+n}}function BP(e){return e==="top"?qu.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":qu.MID_SHIFT+"em"}function rde(e){var r=e.title,t=Yhe;return jl.isRightAnchor(r)?t=HP:jl.isLeftAnchor(r)&&(t=UP),t}function tde(e){var r=e.title,t="0em";return jl.isTopAnchor(r)?t=qu.CAP_SHIFT+"em":jl.isMiddleAnchor(r)&&(t=qu.MID_SHIFT+"em"),t}wi.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var ade=Xc().readPaths,nde=M3(),VP=Oc().clearOutlineControllers,AA=va(),YP=Wa(),ide=$a().arrayEditor,WP=Jc(),ode=WP.getPathString;XP.exports={draw:O3,drawOne:jP,activateLastSelection:fde};function O3(e){var r=e._fullLayout;VP(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;m--){var b=o.append("path").attr(s).style("opacity",m?.1:f).call(AA.stroke,c).call(AA.fill,u).call(YP.dashLine,m?"solid":d,m?4+v:v);if(lde(b,e,a),p){var A=ide(e.layout,"selections",a);b.style({cursor:"move"});var _={element:b.node(),plotinfo:n,gd:e,editHelpers:A,isActiveSelection:!0},x=ade(l,e);nde(x,b,_)}else b.style("pointer-events",m?"all":"none");g[m]=b}var T=g[0],E=g[1];E.node().addEventListener("click",function(){return sde(e,T)})}}function lde(e,r,t){var a=t.xref+t.yref;YP.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function sde(e,r){if(I3(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){TA(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=TA,O3(e)}}}function fde(e){if(I3(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=TA,O3(e)}}function TA(e){if(I3(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(VP(e),delete e._fullLayout._activeSelectionIndex,O3(e))}}});var JP=P((HLe,ZP)=>{function ude(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,o){return a("temp_status",{seg:n,above:i,below:o})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,o){return a("status",{seg:n,above:i,below:o})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}ZP.exports=ude});var QP=P((VLe,$P)=>{function cde(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],o=a[1],l=n[0],s=n[1],f=t[0],u=t[1];return(l-i)*(u-o)-(s-o)*(f-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],o=n[0]-a[0],l=t[0]-a[0],s=n[1]-a[1],f=l*o+i*s;if(f-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=l-i>e&&(o-u)*(i-c)/(l-c)+u-n>e&&(s=!s),o=u,l=c}return s}};return r}$P.exports=cde});var eN=P((YLe,KP)=>{var vde={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};KP.exports=vde});var tN=P((WLe,rN)=>{var Sm=eN();function hde(e,r,t){function a(p,g){return{id:t?t.segmentId():-1,start:p,end:g,myFill:{above:null,below:null},otherFill:null}}function n(p,g,m){return{id:t?t.segmentId():-1,start:p,end:g,myFill:{above:m.myFill.above,below:m.myFill.below},otherFill:null}}var i=Sm.create();function o(p,g,m,b,A,_){var x=r.pointsCompare(g,A);return x!==0?x:r.pointsSame(m,_)?0:p!==b?p?1:-1:r.pointAboveOrOnLine(m,b?A:_,b?_:A)?1:-1}function l(p,g){i.insertBefore(p,function(m){var b=o(p.isStart,p.pt,g,m.isStart,m.pt,m.other.pt);return b<0})}function s(p,g){var m=Sm.node({isStart:!0,pt:p.start,seg:p,primary:g,other:null,status:null});return l(m,p.end),m}function f(p,g,m){var b=Sm.node({isStart:!1,pt:g.end,seg:g,primary:m,other:p,status:null});p.other=b,l(b,p.pt)}function u(p,g){var m=s(p,g);return f(m,p,g),m}function c(p,g){t&&t.segmentChop(p.seg,g),p.other.remove(),p.seg.end=g,p.other.pt=g,l(p.other,p.pt)}function v(p,g){var m=n(g,p.seg.end,p.seg);return c(p,g),u(m,p.primary)}function d(p,g){var m=Sm.create();function b(le,ae){var $=le.seg.start,Z=le.seg.end,J=ae.seg.start,oe=ae.seg.end;return r.pointsCollinear($,J,oe)?r.pointsCollinear(Z,J,oe)||r.pointAboveOrOnLine(Z,J,oe)?1:-1:r.pointAboveOrOnLine($,J,oe)?1:-1}function A(le){return m.findTransition(function(ae){var $=b(le,ae.ev);return $>0})}function _(le,ae){var $=le.seg,Z=ae.seg,J=$.start,oe=$.end,ce=Z.start,De=Z.end;t&&t.checkIntersection($,Z);var Oe=r.linesIntersect(J,oe,ce,De);if(Oe===!1){if(!r.pointsCollinear(J,oe,ce)||r.pointsSame(J,De)||r.pointsSame(oe,ce))return!1;var Ee=r.pointsSame(J,ce),Je=r.pointsSame(oe,De);if(Ee&&Je)return ae;var Ae=!Ee&&r.pointBetween(J,ce,De),or=!Je&&r.pointBetween(oe,ce,De);if(Ee)return or?v(ae,oe):v(le,De),ae;Ae&&(Je||(or?v(ae,oe):v(le,De)),v(ae,J))}else Oe.alongA===0&&(Oe.alongB===-1?v(le,ce):Oe.alongB===0?v(le,Oe.pt):Oe.alongB===1&&v(le,De)),Oe.alongB===0&&(Oe.alongA===-1?v(ae,J):Oe.alongA===0?v(ae,Oe.pt):Oe.alongA===1&&v(ae,oe));return!1}for(var x=[];!i.isEmpty();){var T=i.getHead();if(t&&t.vert(T.pt[0]),T.isStart){let le=function(){if(S){var ae=_(T,S);if(ae)return ae}return k?_(T,k):!1};var X=le;t&&t.segmentNew(T.seg,T.primary);var E=A(T),S=E.before?E.before.ev:null,k=E.after?E.after.ev:null;t&&t.tempStatus(T.seg,S?S.seg:!1,k?k.seg:!1);var F=le();if(F){if(e){var O;T.seg.myFill.below===null?O=!0:O=T.seg.myFill.above!==T.seg.myFill.below,O&&(F.seg.myFill.above=!F.seg.myFill.above)}else F.seg.otherFill=T.seg.myFill;t&&t.segmentUpdate(F.seg),T.other.remove(),T.remove()}if(i.getHead()!==T){t&&t.rewind(T.seg);continue}if(e){var O;T.seg.myFill.below===null?O=!0:O=T.seg.myFill.above!==T.seg.myFill.below,k?T.seg.myFill.below=k.seg.myFill.above:T.seg.myFill.below=p,O?T.seg.myFill.above=!T.seg.myFill.below:T.seg.myFill.above=T.seg.myFill.below}else if(T.seg.otherFill===null){var I;k?T.primary===k.primary?I=k.seg.otherFill.above:I=k.seg.myFill.above:I=T.primary?g:p,T.seg.otherFill={above:I,below:I}}t&&t.status(T.seg,S?S.seg:!1,k?k.seg:!1),T.other.status=E.insert(Sm.node({ev:T}))}else{var R=T.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(m.exists(R.prev)&&m.exists(R.next)&&_(R.prev.ev,R.next.ev),t&&t.statusRemove(R.ev.seg),R.remove(),!T.primary){var H=T.seg.myFill;T.seg.myFill=T.seg.otherFill,T.seg.otherFill=H}x.push(T.seg)}i.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(p){for(var g,m=p[p.length-1],b=0;b{function dde(e,r,t){var a=[],n=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},f={index:0,matches_head:!1,matches_pt1:!1},u=s;function c(X,le,ae){return u.index=X,u.matches_head=le,u.matches_pt1=ae,u===s?(u=f,!1):(u=null,!0)}for(var v=0;v{function Em(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var pde={union:function(e,r){return Em(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Em(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Em(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Em(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Em(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};iN.exports=pde});var sN=P((ZLe,lN)=>{var mde={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(f){var u=f.slice(0,f.length-1);return e.segments({inverted:!1,regions:[u]})}for(var l=o(i[0]),s=1;s{var yde=JP(),gde=QP(),fN=tN(),bde=nN(),km=oN(),uN=sN(),Xl=!1,Cm=gde(),Qo;Qo={buildLog:function(e){return e===!0?Xl=yde():e===!1&&(Xl=!1),Xl===!1?!1:Xl.list},epsilon:function(e){return Cm.epsilon(e)},segments:function(e){var r=fN(!0,Cm,Xl);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=fN(!1,Cm,Xl);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:km.union(e.combined,Xl),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:km.intersect(e.combined,Xl),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:km.difference(e.combined,Xl),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:km.differenceRev(e.combined,Xl),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:km.xor(e.combined,Xl),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:bde(e.segments,Cm,Xl),inverted:e.inverted}},polygonFromGeoJSON:function(e){return uN.toPolygon(Qo,e)},polygonToGeoJSON:function(e){return uN.fromPolygon(Qo,Cm,e)},union:function(e,r){return Lm(e,r,Qo.selectUnion)},intersect:function(e,r){return Lm(e,r,Qo.selectIntersect)},difference:function(e,r){return Lm(e,r,Qo.selectDifference)},differenceRev:function(e,r){return Lm(e,r,Qo.selectDifferenceRev)},xor:function(e,r){return Lm(e,r,Qo.selectXor)}};function Lm(e,r,t){var a=Qo.segments(e),n=Qo.segments(r),i=Qo.combine(a,n),o=t(i);return Qo.polygon(o)}typeof window=="object"&&(window.PolyBool=Qo);cN.exports=Qo});var dN=P(($Le,hN)=>{hN.exports=function(r,t,a,n){var i=r[0],o=r[1],l=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,f=0,u=s-1;fo!=p>o&&i<(d-c)*(o-v)/(p-v)+c;g&&(l=!l)}return l}});var EA=P((QLe,pN)=>{"use strict";var SA=Gg().dot,B3=Qn().BADNUM,z3=pN.exports={};z3.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;ln||b===B3||bo||g&&f(p))}function c(p,g){var m=p[0],b=p[1];if(m===B3||mn||b===B3||bo)return!1;var A=t.length,_=t[0][0],x=t[0][1],T=0,E,S,k,F,O;for(E=1;EMath.max(S,_)||b>Math.max(k,x)))if(bl||Math.abs(SA(c,f))>n)return!0;return!1};z3.filter=function(r,t){var a=[r[0]],n=0,i=0;function o(s){r.push(s);var f=a.length,u=n;a.splice(i+1);for(var c=u+1;c1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:a}}});var yN=P((KLe,mN)=>{"use strict";mN.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var BN=P((eDe,IN)=>{"use strict";var gN=vN(),xde=dN(),Rm=Bt(),_de=Wa().dashStyle,Dm=va(),wde=Wc(),Ade=Cu().makeEventData,Im=jc(),Tde=Im.freeMode,Mde=Im.rectMode,qm=Im.drawMode,DA=Im.openMode,FA=Im.selectMode,bN=Jc(),xN=bm(),MN=M3(),SN=Oc().clearOutline,EN=Xc(),kA=EN.handleEllipse,Sde=EN.readPaths,Ede=_3().newShapes,kde=eA(),Cde=MA().activateLastSelection,U3=Ur(),Lde=U3.sorterAsc,kN=EA(),Fm=r2(),Zl=Sn().getFromId,Dde=h3(),Fde=N3().redrawReglTraces,H3=yN(),Rf=H3.MINSELECT,Rde=kN.filter,RA=kN.tester,qA=y3(),_N=qA.p2r,qde=qA.axValue,Pde=qA.getTransform;function PA(e){return e.subplot!==void 0}function Nde(e,r,t,a,n){var i=!PA(a),o=Tde(n),l=Mde(n),s=DA(n),f=qm(n),u=FA(n),c=n==="drawline",v=n==="drawcircle",d=c||v,p=a.gd,g=p._fullLayout,m=u&&g.newselection.mode==="immediate"&&i,b=g._zoomlayer,A=a.element.getBoundingClientRect(),_=a.plotinfo,x=Pde(_),T=r-A.left,E=t-A.top;g._calcInverseTransform(p);var S=U3.apply3DTransform(g._invTransform)(T,E);T=S[0],E=S[1];var k=g._invScaleX,F=g._invScaleY,O=T,I=E,R="M"+T+","+E,H=a.xaxes[0],X=a.yaxes[0],le=H._length,ae=X._length,$=e.altKey&&!(qm(n)&&s),Z,J,oe,ce,De,Oe,Ee;LN(e,p,a),o&&(Z=Rde([[T,E]],H3.BENDPX));var Je=b.selectAll("path.select-outline-"+_.id).data([1]),Ae=f?g.newshape:g.newselection;f&&(a.hasText=Ae.label.text||Ae.label.texttemplate);var or=f&&!s?Ae.fillcolor:"rgba(0,0,0,0)",Ge=Ae.line.color||(i?Dm.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");Je.enter().append("path").attr("class","select-outline select-outline-"+_.id).style({opacity:f?Ae.opacity/2:1,"stroke-dasharray":_de(Ae.line.dash,Ae.line.width),"stroke-width":Ae.line.width+"px","shape-rendering":"crispEdges"}).call(Dm.stroke,Ge).call(Dm.fill,or).attr("fill-rule","evenodd").classed("cursor-move",!!f).attr("transform",x).attr("d",R+"Z");var He=b.append("path").attr("class","zoombox-corners").style({fill:Dm.background,stroke:Dm.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(f&&a.hasText){var Ve=b.select(".label-temp");Ve.empty()&&(Ve=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Qe=g._uid+H3.SELECTID,ee=[],_e=V3(p,a.xaxes,a.yaxes,a.subplot);m&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var Ze=H._id,vr=X._id;PN(p,Ze,vr,_e);for(var rr=(p.layout||{}).selections||[],Cr=[],Lr=!1,_r=0;_r=0){p._fullLayout._deactivateShape(p);return}if(!f){var rr=g.clickmode;Fm.done(Qe).then(function(){if(Fm.clear(Qe),Ze===2){for(Je.remove(),De=0;De<_e.length;De++)Oe=_e[De],Oe._module.selectPoints(Oe,!1);if(Nm(p,_e),Pm(a),IA(p),_e.length){var Cr=_e[0].xaxis,Lr=_e[0].yaxis;if(Cr&&Lr){for(var _r=[],Pr=p._fullLayout.selections,rt=0;rt-1&&CN(vr,p,a.xaxes,a.yaxes,a.subplot,a,Je),rr==="event"&&Om(p,void 0);wde.click(p,vr,_.id)}).catch(U3.error)}},a.doneFn=function(){He.remove(),Fm.done(Qe).then(function(){Fm.clear(Qe),!m&&ce&&a.selectionDefs&&(ce.subtract=$,a.selectionDefs.push(ce),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,oe)),(m||f)&&Pm(a,m),a.doneFnCompleted&&a.doneFnCompleted(ee),u&&Om(p,Ee)}).catch(U3.error)}}function CN(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,f=s.clickmode,u=f.indexOf("event")>-1,c=[],v,d,p,g,m,b,A,_,x,T;if(Gde(l)){LN(e,r,i),v=V3(r,t,a,n);var E=Ude(l,v),S=E.pointNumbers.length>0;if(S?Hde(v,E):Vde(v)&&(A=AN(E))){for(o&&o.remove(),T=0;T=0}function zde(e){return e._fullLayout._activeSelectionIndex>=0}function Pm(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;Bde(n)&&n._fullLayout._deactivateShape(n),zde(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=qm(t),s=FA(t);if(l||s){var f=o.selectAll(".select-outline-"+a.id);if(f&&n._fullLayout._outlining){var u;l&&(u=Ede(f,e)),u&&Rm.call("_guiRelayout",n,{shapes:u});var c;s&&!PA(e)&&(c=kde(f,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,Rm.call("_guiRelayout",n,{selections:c}).then(function(){r&&Cde(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function wN(e){return e._id}function V3(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(wN),o=t.map(wN),l,s,f;for(f=0;f0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function Hde(e,r){var t=[],a,n,i,o;for(o=0;o0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(o=0;o1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function Nm(e,r,t){var a;for(a=0;a-1&&r;if(!o&&r){var Ze=TN(e,!0);if(Ze.length){var vr=Ze[0].xref,rr=Ze[0].yref;if(vr&&rr){var Cr=NN(Ze),Lr=ON([Zl(e,vr,"x"),Zl(e,rr,"y")]);Lr(ee,Cr)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:re&&Om(e,ee),v._reselect=!1}if(!o&&v._deselect){var _r=v._deselect;l=_r.xref,s=_r.yref,jde(l,s,u)||PN(e,l,s,a),re&&(ee.points.length?Om(e,ee):IA(e)),v._deselect=!1}return{eventData:ee,selectionTesters:t}}function Wde(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";zN.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Bm=P((tDe,GN)=>{"use strict";GN.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var Gd=P((nDe,VN)=>{"use strict";var UN=BA(),HN=zi(),Y3=Ri(),Qde=$a().templatedArray,aDe=Bm();VN.exports=Qde("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:HN({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:UN.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:UN.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Y3.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Y3.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Y3.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Y3.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:HN({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var zm=P((iDe,YN)=>{"use strict";YN.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var zA=P((oDe,WN)=>{"use strict";WN.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Qc=P((lDe,QN)=>{"use strict";var jN=am().axisHoverFormat,Kde=y0().texttemplateAttrs,epe=y0().hovertemplateAttrs,XN=E0(),rpe=zi(),tpe=kc().dash,ape=kc().pattern,npe=Wa(),ipe=zm(),W3=zn().extendFlat,ope=zA();function ZN(e){return{valType:"any",dflt:0,editType:"calc"}}function JN(e){return{valType:"any",editType:"calc"}}function $N(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}QN.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:ZN("x"),yperiod:ZN("y"),xperiod0:JN("x0"),yperiod0:JN("y0"),xperiodalignment:$N("x"),yperiodalignment:$N("y"),xhoverformat:jN("x"),yhoverformat:jN("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:Kde({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:epe({},{keys:ipe.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:W3({},tpe,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:ope(!0),fillgradient:W3({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:ape,marker:W3({symbol:{valType:"enumerated",values:npe.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:W3({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},XN("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},XN("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:rpe({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var GA=P((fDe,rO)=>{"use strict";var KN=Gd(),eO=Qc().line,lpe=kc().dash,j3=zn().extendFlat,spe=Cs().overrideAll,fpe=$a().templatedArray,sDe=Bm();rO.exports=spe(fpe("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:j3({},KN.xref,{}),yref:j3({},KN.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:eO.color,width:j3({},eO.width,{min:1,dflt:1}),dash:j3({},lpe,{dflt:"dot"})}}),"arraydraw","from-root")});var iO=P((uDe,nO)=>{"use strict";var tO=Ur(),X3=mn(),upe=gl(),cpe=GA(),aO=Jc();nO.exports=function(r,t){upe(r,t,{name:"selections",handleItemDefaults:vpe});for(var a=t.selections,n=0;n{"use strict";oO.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var Gm=P((vDe,uO)=>{"use strict";var hpe=Bt(),sO=Ur(),fO=Sn();uO.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=hpe.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,f=s.xaxis,u=s.yaxis,c=s.cartesian,v=n._has("cartesian"),d=0;d{"use strict";var cO=MA(),Um=BN();vO.exports={moduleType:"component",name:"selections",layoutAttributes:GA(),supplyLayoutDefaults:iO(),supplyDrawNewSelectionDefaults:lO(),includeBasePlot:Gm()("selections"),draw:cO.draw,drawOne:cO.drawOne,reselect:Um.reselect,prepSelect:Um.prepSelect,clearOutline:Um.clearOutline,clearSelectionsCache:Um.clearSelectionsCache,selectOnClick:Um.selectOnClick}});var RO=P((dDe,FO)=>{"use strict";var WA=ha(),Jl=Ur(),hO=Jl.numberFormat,dpe=Es(),ppe=Tw(),Z3=Bt(),wO=Jl.strTranslate,mpe=po(),dO=va(),Kc=Wa(),ype=Wc(),pO=mn(),gpe=Yc(),bpe=Ps(),AO=jc(),J3=AO.selectingOrDrawing,xpe=AO.freeMode,_pe=ho().FROM_TL,wpe=h3(),Ape=N3().redrawReglTraces,Tpe=bi(),HA=Sn().getFromId,Mpe=Ud().prepSelect,Spe=Ud().clearOutline,Epe=Ud().selectOnClick,UA=yA(),jA=Ri(),mO=jA.MINDRAG,Ro=jA.MINZOOM,yO=!0;function kpe(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,f=o+l==="nsew",u=(o+l).length===1,c,v,d,p,g,m,b,A,_,x,T,E,S,k,F,O,I,R,H,X,le,ae,$;t+=r.yaxis._shift;function Z(){if(c=r.xaxis,v=r.yaxis,_=c._length,x=v._length,b=c._offset,A=v._offset,d={},d[c._id]=c,p={},p[v._id]=v,o&&l)for(var Fe=r.overlays,hr=0;hr=0){Or._fullLayout._deactivateShape(Or);return}var at=Or._fullLayout.clickmode;if(YA(Or),Fe===2&&!u&&Vr(),f)at.indexOf("select")>-1&&Epe(hr,Or,g,m,r.id,ce),at.indexOf("event")>-1&&ype.click(Or,hr,r.id);else if(Fe===1&&u){var Yr=o?v:c,nt=o==="s"||l==="w"?0:1,vt=Yr._name+".range["+nt+"]",ot=Cpe(Yr,nt),et="left",pr="middle";if(Yr.fixedrange)return;o?(pr=o==="n"?"top":"bottom",Yr.side==="right"&&(et="right")):l==="e"&&(et="right"),Or._context.showAxisRangeEntryBoxes&&WA.select(oe).call(mpe.makeEditable,{gd:Or,immediate:!0,background:Or._fullLayout.paper_bgcolor,text:String(ot),fill:Yr.tickfont?Yr.tickfont.color:"#444",horizontalAlign:et,verticalAlign:pr}).on("edit",function(Se){var Ie=Yr.d2r(Se);Ie!==void 0&&Z3.call("_guiRelayout",Or,vt,Ie)})}}bpe.init(ce);var Ee,Je,Ae,or,Ge,He,Ve,Qe,ee,_e;function re(Fe,hr,Or){var at=oe.getBoundingClientRect();Ee=hr-at.left,Je=Or-at.top,e._fullLayout._calcInverseTransform(e);var Yr=Jl.apply3DTransform(e._fullLayout._invTransform)(Ee,Je);Ee=Yr[0],Je=Yr[1],Ae={l:Ee,r:Ee,w:0,t:Je,b:Je,h:0},or=e._hmpixcount?e._hmlumcount/e._hmpixcount:dpe(e._fullLayout.plot_bgcolor).getLuminance(),Ge="M0,0H"+_+"V"+x+"H0V0",He=!1,Ve="xy",_e=!1,Qe=SO(s,or,b,A,Ge),ee=EO(s,b,A)}function Ze(Fe,hr){if(e._transitioningWithDuration)return!1;var Or=Math.max(0,Math.min(_,ae*Fe+Ee)),at=Math.max(0,Math.min(x,$*hr+Je)),Yr=Math.abs(Or-Ee),nt=Math.abs(at-Je);Ae.l=Math.min(Ee,Or),Ae.r=Math.max(Ee,Or),Ae.t=Math.min(Je,at),Ae.b=Math.max(Je,at);function vt(){Ve="",Ae.r=Ae.l,Ae.t=Ae.b,ee.attr("d","M0,0Z")}if(T.isSubplotConstrained)Yr>Ro||nt>Ro?(Ve="xy",Yr/_>nt/x?(nt=Yr*x/_,Je>at?Ae.t=Je-nt:Ae.b=Je+nt):(Yr=nt*_/x,Ee>Or?Ae.l=Ee-Yr:Ae.r=Ee+Yr),ee.attr("d",$3(Ae))):vt();else if(E.isSubplotConstrained)if(Yr>Ro||nt>Ro){Ve="xy";var ot=Math.min(Ae.l/_,(x-Ae.b)/x),et=Math.max(Ae.r/_,(x-Ae.t)/x);Ae.l=ot*_,Ae.r=et*_,Ae.b=(1-ot)*x,Ae.t=(1-et)*x,ee.attr("d",$3(Ae))}else vt();else!k||nt0){var Se;if(E.isSubplotConstrained||!S&&k.length===1){for(Se=0;Se1&&(vt.maxallowed!==void 0&&O===(vt.range[0]1&&(ot.maxallowed!==void 0&&I===(ot.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Dpe(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function SO(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",wO(t,a)).attr("d",n+"Z")}function EO(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:dO.background,stroke:dO.defaultLine,"stroke-width":1,opacity:0}).attr("transform",wO(r,t)).attr("d","M0,0Z")}function kO(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),CO(e,r,n,i)}function CO(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function YA(e){WA.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function LO(e){yO&&e.data&&e._context.showTips&&(Jl.notifier(Jl._(e,"Double-click to zoom back out"),"long"),yO=!1)}function Fpe(e,r){return"M"+(e.l-.5)+","+(r-Ro-.5)+"h-3v"+(2*Ro+1)+"h3ZM"+(e.r+.5)+","+(r-Ro-.5)+"h3v"+(2*Ro+1)+"h-3Z"}function Rpe(e,r){return"M"+(r-Ro-.5)+","+(e.t-.5)+"v-3h"+(2*Ro+1)+"v3ZM"+(r-Ro-.5)+","+(e.b+.5)+"v3h"+(2*Ro+1)+"v-3Z"}function $3(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Ro)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function xO(e,r,t,a,n){for(var i=!1,o={},l={},s,f,u,c,v=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var qpe=ha(),Q3=Wc(),Ppe=Ps(),Npe=Yc(),Is=RO().makeDragBox,Ai=Ri().DRAGGERSIZE;K3.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){qpe.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var f=Is(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");f.onmousemove=function(v){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Q3.hover(r,v,i)},Q3.hover(r,v,i),r._fullLayout._lasthover=f,r._fullLayout._hoversubplot=i},f.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,Ppe.unhover(r,v))},r._context.showAxisDragHandles&&(Is(r,o,l._offset-Ai,s._offset-Ai,Ai,Ai,"n","w"),Is(r,o,l._offset+l._length,s._offset-Ai,Ai,Ai,"n","e"),Is(r,o,l._offset-Ai,s._offset+s._length,Ai,Ai,"s","w"),Is(r,o,l._offset+l._length,s._offset+s._length,Ai,Ai,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var u=l._mainLinePosition;l.side==="top"&&(u-=Ai),Is(r,o,l._offset+l._length*.1,u,l._length*.8,Ai,"","ew"),Is(r,o,l._offset,u,l._length*.1,Ai,"","w"),Is(r,o,l._offset+l._length*.9,u,l._length*.1,Ai,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=Ai),Is(r,o,c,s._offset+s._length*.1,Ai,s._length*.8,"ns",""),Is(r,o,c,s._offset+s._length*.9,Ai,s._length*.1,"s",""),Is(r,o,c,s._offset,Ai,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Q3.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Q3.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},K3.updateFx(r)}};K3.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";Npe(r._draggers,t)}});var NO=P((mDe,PO)=>{"use strict";var qO=Bt();PO.exports=function(r){for(var t=qO.layoutArrayContainers,a=qO.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var Ope=Mc(),ZA=zg(),Hm=m0(),Ipe=H5().sorterAsc,JA=Bt();Vm.containerArrayMatch=NO();var Bpe=Vm.isAddVal=function(r){return r==="add"||Ope(r)},OO=Vm.isRemoveVal=function(r){return r===null||r==="remove"};Vm.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=JA.getComponentMethod(o,"supplyLayoutDefaults"),s=JA.getComponentMethod(o,"draw"),f=JA.getComponentMethod(o,"drawOne"),u=n.replot||n.recalc||l===ZA||s===ZA,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Hm.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(OO(d))t.set(null);else if(Array.isArray(d))t.set(d);else return Hm.warn("Unrecognized full array edit value",o,d),!0;return u?!1:(l(c,v),s(r),!0)}var p=Object.keys(a).map(Number).sort(Ipe),g=t.get(),m=g||[],b=i(v,o).get(),A=[],_=-1,x=m.length,T,E,S,k,F,O,I,R;for(T=0;Tm.length-(I?0:1)){Hm.warn("index out of range",o,S);continue}if(O!==void 0)F.length>1&&Hm.warn("Insertion & removal are incompatible with edits to the same index.",o,S),OO(O)?A.push(S):I?(O==="add"&&(O={}),m.splice(S,0,O),b&&b.splice(S,0,{})):Hm.warn("Unrecognized full object edit value",o,S,O),_===-1&&(_=S);else for(E=0;E=0;T--)m.splice(A[T],1),b&&b.splice(A[T],1);if(m.length?g||t.set(m):t.set(null),u)return!1;if(l(c,v),f!==ZA){var H;if(_===-1)H=p;else{for(x=Math.max(m.length,x),H=[],T=0;T=_));T++)H.push(S);for(T=_;T{"use strict";var UO=ya(),gDe=q5(),HO=Bt(),Ko=Ur(),Ym=bi(),VO=Sn(),YO=va(),Wm=VO.cleanId,zpe=VO.getFromTrace,$A=HO.traceIs;Bs.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ko.log("Clearing previous rejected promises from queue."),e._promises=[]};Bs.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(Ym.subplotsRegistry.cartesian||{}).attrRegex,n=(Ym.subplotsRegistry.polar||{}).attrRegex,i=(Ym.subplotsRegistry.ternary||{}).attrRegex,o=(Ym.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(m.x=1.02,m.xanchor="left"):m.x<-2&&(m.x=-.02,m.xanchor="right"),m.y>3?(m.y=1.02,m.yanchor="bottom"):m.y<-2&&(m.y=-.02,m.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),YO.clean(e),e.template&&e.template.layout&&Bs.cleanLayout(e.template.layout),e};function Hd(e,r){var t=e[r],a=r.charAt(0);t&&t!=="paper"&&(e[r]=Wm(t,a,!0))}Bs.cleanData=function(e){for(var r=0;r0)return e.substr(0,r)}Bs.hasParent=function(e,r){for(var t=GO(r);t;){if(t in e)return!0;t=GO(t)}return!1};var Hpe=["x","y","z"];Bs.clearAxisTypes=function(e,r,t){for(var a=0;a{"use strict";var ab=ha(),Vpe=ya(),Ype=t4(),dt=Ur(),en=dt.nestedProperty,e6=J1(),qo=MC(),$l=Bt(),ub=vd(),zt=bi(),xo=mn(),Wpe=Aw(),jpe=Ul(),QA=Wa(),Xpe=va(),Zpe=XA().initInteractions,Jpe=Ic(),$pe=Ud().clearOutline,$O=p0().dfltConfig,rb=IO(),ai=WO(),za=N3(),ev=Cs(),Qpe=Ri().AX_NAME_PATTERN,KA=0,jO=5;function Kpe(e,r,t,a){var n;if(e=dt.getGraphDiv(e),e6.init(e),dt.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=e6.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!dt.isPlotDiv(e)&&dt.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return Aa.addFrames(e,n)}KO(e,a),t||(t={}),ab.select(e).classed("js-plotly-plot",!0),QA.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(ai.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=ai.cleanLayout(t)),zt.supplyDefaults(e);var f=e._fullLayout,u=f._has("cartesian");f._replotting=!0,(s||f._shouldCreateBgLayer)&&(w1e(e),f._shouldCreateBgLayer&&delete f._shouldCreateBgLayer),QA.initGradients(e),QA.initPatterns(e),s&&xo.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&zt.doCalcdata(e);for(var v=0;v=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function eI(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),ib(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&ib(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function n1e(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&u=0&&u0&&typeof k.parts[I]!="string";)I--;var R=k.parts[I],H=k.parts[I-1]+"."+R,X=k.parts.slice(0,I).join("."),le=en(e.layout,X).get(),ae=en(a,X).get(),$=k.get();if(F!==void 0){b[S]=F,A[S]=R==="reverse"?F:Pu($);var Z=ub.getLayoutValObject(a,k.parts);if(Z&&Z.impliedEdits&&F!==null)for(var J in Z.impliedEdits)_(dt.relativeAttr(S,J),Z.impliedEdits[J]);if(["width","height"].indexOf(S)!==-1)if(F){_("autosize",null);var oe=S==="height"?"width":"height";_(oe,a[oe])}else a[S]=e._initialAutoSize[S];else if(S==="autosize")_("width",F?null:a.width),_("height",F?null:a.height);else if(H.match(fI))E(H),en(a,X+"._inputRange").set(null);else if(H.match(uI)){E(H),en(a,X+"._inputRange").set(null);var ce=en(a,X).get();ce._inputDomain&&(ce._input.domain=ce._inputDomain.slice())}else H.match(s1e)&&en(a,X+"._inputDomain").set(null);if(R==="type"){T=le;var De=ae.type==="linear"&&F==="log",Oe=ae.type==="log"&&F==="linear";if(De||Oe){if(!T||!T.range)_(X+".autorange",!0);else if(ae.autorange)De&&(T.range=T.range[1]>T.range[0]?[1,2]:[2,1]);else{var Ee=T.range[0],Je=T.range[1];De?(Ee<=0&&Je<=0&&_(X+".autorange",!0),Ee<=0?Ee=Je/1e6:Je<=0&&(Je=Ee/1e6),_(X+".range[0]",Math.log(Ee)/Math.LN10),_(X+".range[1]",Math.log(Je)/Math.LN10)):(_(X+".range[0]",Math.pow(10,Ee)),_(X+".range[1]",Math.pow(10,Je)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[k.parts[0]]&&k.parts[1]==="radialaxis"&&delete a[k.parts[0]]._subplot.viewInitial["radialaxis.range"],$l.getComponentMethod("annotations","convertCoords")(e,ae,F,_),$l.getComponentMethod("images","convertCoords")(e,ae,F,_)}else _(X+".autorange",!0),_(X+".range",null);en(a,X+"._inputRange").set(null)}else if(R.match(Qpe)){var Ae=en(a,S).get(),or=(F||{}).type;(!or||or==="-")&&(or="linear"),$l.getComponentMethod("annotations","convertCoords")(e,Ae,or,_),$l.getComponentMethod("images","convertCoords")(e,Ae,or,_)}var Ge=rb.containerArrayMatch(S);if(Ge){u=Ge.array,c=Ge.index;var He=Ge.property,Ve=Z||{editType:"calc"};c!==""&&He===""&&(rb.isAddVal(F)?A[S]=null:rb.isRemoveVal(F)?A[S]=(en(t,u).get()||[])[c]:dt.warn("unrecognized full object value",r)),ev.update(m,Ve),f[u]||(f[u]={});var Qe=f[u][c];Qe||(Qe=f[u][c]={}),Qe[He]=F,delete r[S]}else R==="reverse"?(le.range?le.range.reverse():(_(X+".autorange",!0),le.range=[1,0]),ae.autorange?m.calc=!0:m.plot=!0):(S==="dragmode"&&(F===!1&&$!==!1||F!==!1&&$===!1)||a._has("scatter-like")&&a._has("regl")&&S==="dragmode"&&(F==="lasso"||F==="select")&&!($==="lasso"||$==="select")?m.plot=!0:Z?ev.update(m,Z):m.calc=!0,k.set(F))}}for(u in f){var ee=rb.applyContainerArrayChanges(e,i(t,u),f[u],m,i);ee||(m.plot=!0)}for(var _e in x){T=xo.getFromId(e,_e);var re=T&&T._constraintGroup;if(re){m.calc=!0;for(var Ze in re)x[Ze]||(xo.getFromId(e,Ze)._constraintShrinkable=!0)}}(vI(e)||r.height||r.width)&&(m.plot=!0);var vr=a.shapes;for(c=0;c1;)if(a.pop(),t=en(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function c1e(e,r){for(var t=0;t=n.length?n[0]:n[f]:n}function l(f){return Array.isArray(i)?f>=i.length?i[0]:i[f]:i}function s(f,u){var c=0;return function(){if(f&&++c===u)return f()}}return new Promise(function(f,u){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var R=a._frameQueue.pop();R.onInterrupt&&R.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function v(R){if(R.length!==0){for(var H=0;Ha._timeToNext&&p()};R()}var m=0;function b(R){return Array.isArray(n)?m>=n.length?R.transitionOpts=n[m]:R.transitionOpts=n[0]:R.transitionOpts=n,m++,R}var A,_,x=[],T=r==null,E=Array.isArray(r),S=!T&&!E&&dt.isPlainObject(r);if(S)x.push({type:"object",data:b(dt.extendFlat({},r))});else if(T||["string","number"].indexOf(typeof r)!==-1)for(A=0;A0&&OO)&&I.push(_);x=I}}x.length>0?v(x):(e.emit("plotly_animated"),f())})}function g1e(e,r,t){if(e=dt.getGraphDiv(e),r==null)return Promise.resolve();if(!dt.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var f=l.length+r.length*2,u=[],c={};for(a=r.length-1;a>=0;a--)if(dt.isPlainObject(r[a])){var v=r[a].name,d=(s[v]||c[v]||{}).name,p=r[a].name,g=s[d]||c[d];d&&p&&typeof p=="number"&&g&&KAk.index?-1:S.index=0;a--){if(n=u[a].frame,typeof n.name=="number"&&dt.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),o.unshift({type:"insert",index:a,value:n[a]});var l=zt.modifyFrames,s=zt.modifyFrames,f=[e,o],u=[e,i];return qo&&qo.add(e,l,f,s,u),zt.modifyFrames(e,i)}function x1e(e){e=dt.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return zt.cleanPlot([],{},t,r),zt.purge(e),e6.purge(e),r._container&&r._container.remove(),delete e._context,e}function _1e(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!dt.equalDomRects(t,r._lastBBox)){var a=r._invTransform=dt.inverseTransformMatrix(dt.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function w1e(e){var r=ab.select(e),t=e._fullLayout;if(t._calcInverseTransform=_1e,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};ab.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=dt.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(Jpe.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Aa.animate=y1e;Aa.addFrames=g1e;Aa.deleteFrames=b1e;Aa.addTraces=iI;Aa.deleteTraces=oI;Aa.extendTraces=aI;Aa.moveTraces=r6;Aa.prependTraces=nI;Aa.newPlot=a1e;Aa._doPlot=Kpe;Aa.purge=x1e;Aa.react=d1e;Aa.redraw=t1e;Aa.relayout=jm;Aa.restyle=ob;Aa.setPlotConfig=e1e;Aa.update=sb;Aa._guiRelayout=a6(jm);Aa._guiRestyle=a6(ob);Aa._guiUpdate=a6(sb);Aa._storeDirectGUIEdit=l1e});var Y0=P(qf=>{"use strict";var A1e=Bt();qf.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};qf.getRedrawFunc=function(e){return function(){A1e.getComponentMethod("colorbar","draw")(e)}};qf.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};qf.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var hI=window.URL||window.webkitURL;qf.createObjectURL=function(e){return hI.createObjectURL(e)};qf.revokeObjectURL=function(e){return hI.revokeObjectURL(e)};qf.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=T1e(window.atob(e));return new window.Blob([t],{type:"image/"+r})};qf.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function T1e(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var o6=ha(),wDe=Ur(),M1e=Wa(),S1e=va(),ADe=Ic(),i6=/"/g,Zm="TOBESTRIPPED",E1e=new RegExp('("'+Zm+")|("+Zm+'")',"g");function k1e(e){var r=o6.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(a){return a==="<"?"<":a==="&rt;"?">":a.indexOf("<")!==-1||a.indexOf(">")!==-1?"":r.html(a).text()});return r.remove(),t}function C1e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}dI.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,o=n._toppaper,l=n.width,s=n.height,f;i.insert("rect",":first-child").call(M1e.setRect,0,0,l,s).call(S1e.fill,n.paper_bgcolor);var u=n._basePlotModules||[];for(f=0;f{"use strict";var L1e=Ur(),D1e=s2().EventEmitter,Jm=Y0();function F1e(e){var r=e.emitter||new D1e,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,f=e.scale||1,u=e.width||300,c=e.height||150,v=f*u,d=f*c,p=s.getContext("2d",{willReadFrequently:!0}),g=new i,m,b;l==="svg"||L1e.isSafari()?b=Jm.encodeSVG(o):(m=Jm.createBlob(o,"svg"),b=Jm.createObjectURL(m)),s.width=v,s.height=d,g.onload=function(){var A;switch(m=null,Jm.revokeObjectURL(b),l!=="svg"&&p.drawImage(g,0,0,v,d),l){case"jpeg":A=s.toDataURL("image/jpeg");break;case"png":A=s.toDataURL("image/png");break;case"webp":A=s.toDataURL("image/webp");break;case"svg":A=b;break;default:var _="Image format is not jpeg, png, svg or webp.";if(n(new Error(_)),!e.promise)return r.emit("error",_)}a(A),e.promise||r.emit("success",A)},g.onerror=function(A){if(m=null,Jm.revokeObjectURL(b),n(A),!e.promise)return r.emit("error",A)},g.src=b});return e.promise?t:r}pI.exports=F1e});var s6=P((SDe,gI)=>{"use strict";var mI=ya(),yI=n6(),R1e=bi(),Pf=Ur(),$m=Y0(),q1e=vb(),P1e=hb(),N1e=Tg().version,l6={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function O1e(e,r){r=r||{};var t,a,n,i;Pf.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Pf.getGraphDiv(e),t=Pf.extendDeep([],e.data),a=Pf.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(E){return!(E in r)||Pf.validate(r[E],l6[E])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Pf.join2(l6.format.values,", "," or ")+".");var l={};function s(E,S){return Pf.coerce(r,l,l6,E,S)}var f=s("format"),u=s("width"),c=s("height"),v=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),g=document.createElement("div");g.style.position="absolute",g.style.left="-5000px",document.body.appendChild(g);var m=Pf.extendFlat({},a);u?m.width=u:r.width===null&&mI(i.width)&&(m.width=i.width),c?m.height=c:r.height===null&&mI(i.height)&&(m.height=i.height);var b=Pf.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),A=$m.getRedrawFunc(g);function _(){return new Promise(function(E){setTimeout(E,$m.getDelay(g._fullLayout))})}function x(){return new Promise(function(E,S){var k=q1e(g,f,v),F=g._fullLayout.width,O=g._fullLayout.height;function I(){yI.purge(g),document.body.removeChild(g)}if(f==="full-json"){var R=R1e.graphJson(g,!1,"keepdata","object",!0,!0);return R.version=N1e,R=JSON.stringify(R),I(),E(p?R:$m.encodeJSON(R))}if(I(),f==="svg")return E(p?k:$m.encodeSVG(k));var H=document.createElement("canvas");H.id=Pf.randstr(),P1e({format:f,width:F,height:O,scale:v,canvas:H,svg:k,promise:!0}).then(E).catch(S)})}function T(E){return p?E.replace($m.IMAGE_URL_PREFIX,""):E}return new Promise(function(E,S){yI.newPlot(g,t,m,b).then(A).then(_).then(x).then(function(k){E(T(k))}).catch(function(k){S(k)})})}gI.exports=O1e});var _I=P((EDe,xI)=>{"use strict";var Ql=Ur(),I1e=bi(),B1e=vd(),z1e=p0().dfltConfig,zs=Ql.isPlainObject,j0=Array.isArray,f6=Ql.isArrayOrTypedArray;xI.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=B1e.get(),n=[],i={_context:Ql.extendFlat({},z1e)},o,l;j0(r)?(i.data=Ql.extendDeep([],r),o=r):(i.data=[],o=[],n.push(Ti("array","data"))),zs(t)?(i.layout=Ql.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(Ti("object","layout"))),I1e.supplyDefaults(i);for(var s=i._fullData,f=o.length,u=0;uc.length&&a.push(Ti("unused",n,f.concat(c.length)));var b=c.length,A=Array.isArray(m);A&&(b=Math.min(b,m.length));var _,x,T,E,S;if(v.dimensions===2)for(x=0;xc[x].length&&a.push(Ti("unused",n,f.concat(x,c[x].length)));var k=c[x].length;for(_=0;_<(A?Math.min(k,m[x].length):k);_++)T=A?m[x][_]:m,E=u[x][_],S=c[x][_],Ql.validate(E,T)?S!==E&&S!==+E&&a.push(Ti("dynamic",n,f.concat(x,_),E,S)):a.push(Ti("value",n,f.concat(x,_),E))}else a.push(Ti("array",n,f.concat(x),u[x]));else for(x=0;x{"use strict";var j1e=Ur(),pb=Y0();function X1e(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var s,f;if(n)return s=pb.createBlob(e,t),f=pb.createObjectURL(s),a.href=f,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),pb.revokeObjectURL(f),s=null,o(r);if(j1e.isSafari()){var u=t==="svg"?",":";base64,";return pb.octetStream(u+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}wI.exports=X1e});var u6=P((LDe,MI)=>{"use strict";var TI=Ur(),Z1e=s6(),J1e=AI(),CDe=Y0();function $1e(e,r){var t;return TI.isPlainObject(e)||(t=TI.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var i=Z1e(e,r),o=r.filename||e.fn||"newplot";o+="."+r.format.replace("-","."),i.then(function(l){return t&&(t._snapshotInProgress=!1),J1e(l,o,r.format)}).then(function(l){a(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),n(l)})})}MI.exports=$1e});var LI=P(c6=>{"use strict";var el=Ur(),rl=el.isPlainObject,SI=vd(),EI=bi(),Q1e=ks(),kI=$a(),CI=p0().dfltConfig;c6.makeTemplate=function(e){e=el.isPlainObject(e)?e:el.getGraphDiv(e),e=el.extendDeep({_context:CI},{data:e.data,layout:e.layout}),EI.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var p={};Qm(d,p,eme.bind(null,d));var g=el.coerce(d,{},Q1e,"type"),m=a.data[g];m||(m=a.data[g]=[]),m.push(p)}),Qm(t,a.layout,K1e.bind(null,t)),delete a.layout.template;var n=t.template;if(rl(n)){var i=n.layout,o,l,s,f,u,c;rl(i)&&mb(i,a.layout);var v=n.data;if(rl(v)){for(l in a.data)if(s=v[l],Array.isArray(s)){for(u=a.data[l],c=u.length,f=s.length,o=0;ob?o.push({code:"unused",traceType:d,templateCount:m,dataCount:b}):b>m&&o.push({code:"reused",traceType:d,templateCount:m,dataCount:b})}}function A(_,x){for(var T in _)if(T.charAt(0)!=="_"){var E=_[T],S=Kl(_,T,x);rl(E)?(Array.isArray(_)&&E._template===!1&&E.templateitemname&&o.push({code:"missing",path:S,templateitemname:E.templateitemname}),A(E,S)):Array.isArray(E)&&rme(E)&&A(E,S)}}if(A({data:s,layout:l},""),o.length)return o.map(tme)};function rme(e){for(var r=0;r{"use strict";var ci=n6();gn._doPlot=ci._doPlot;gn.newPlot=ci.newPlot;gn.restyle=ci.restyle;gn.relayout=ci.relayout;gn.redraw=ci.redraw;gn.update=ci.update;gn._guiRestyle=ci._guiRestyle;gn._guiRelayout=ci._guiRelayout;gn._guiUpdate=ci._guiUpdate;gn._storeDirectGUIEdit=ci._storeDirectGUIEdit;gn.react=ci.react;gn.extendTraces=ci.extendTraces;gn.prependTraces=ci.prependTraces;gn.addTraces=ci.addTraces;gn.deleteTraces=ci.deleteTraces;gn.moveTraces=ci.moveTraces;gn.purge=ci.purge;gn.addFrames=ci.addFrames;gn.deleteFrames=ci.deleteFrames;gn.animate=ci.animate;gn.setPlotConfig=ci.setPlotConfig;var ame=G1().getGraphDiv,nme=C3().eraseActiveShape;gn.deleteActiveShape=function(e){return nme(ame(e))};gn.toImage=s6();gn.validate=_I();gn.downloadImage=u6();var DI=LI();gn.makeTemplate=DI.makeTemplate;gn.validateTemplate=DI.validateTemplate});var h6=P((RDe,RI)=>{"use strict";var v6=Ur(),ime=Bt();RI.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=ime.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var f=v6.minRowLength(i);o?l=Math.min(f,v6.minRowLength(o)):(l=f,n("y0"),n("dy"))}else{if(!o)return 0;l=v6.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var d6=P((qDe,NI)=>{"use strict";var qI=Ur().dateTick0,ome=Qn(),lme=ome.ONEWEEK;function PI(e,r){return e%lme===0?qI(r,1):qI(r,0)}NI.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",PI(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",PI(l,t.ycalendar)),n("yperiodalignment"))}}});var BI=P((PDe,II)=>{"use strict";var OI=["orientation","groupnorm","stackgaps"];II.exports=function(r,t,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var f=s[o],u=!1;f?f.traces.push(t):(f=s[o]={traceIndices:[],traces:[t]},u=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},v=0;v{"use strict";var zI=va(),GI=Rs().hasColorscale,UI=md(),sme=qi();HI.exports=function(r,t,a,n,i,o){var l=sme.isBubble(r),s=(r.line||{}).color,f;if(o=o||{},s&&(a=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",a),GI(r,"marker")&&UI(r,t,n,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?f=s:l?f=zI.background:f=zI.defaultLine,i("marker.line.color",f),GI(r,"marker.line")&&UI(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0)),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var u=i("marker.gradient.type");u!=="none"&&i("marker.gradient.color")}}});var p6=P((ODe,VI)=>{"use strict";var fme=Ur().isArrayOrTypedArray,ume=Rs().hasColorscale,cme=md();VI.exports=function(r,t,a,n,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",a),ume(r,"line"))cme(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(fme(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var WI=P((IDe,YI)=>{"use strict";YI.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var m6=P((BDe,jI)=>{"use strict";var vme=Ur();jI.exports=function(e,r,t,a,n){n=n||{},a("textposition"),vme.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var y6=P((zDe,ZI)=>{"use strict";var bb=va(),XI=Ur().isArrayOrTypedArray;function hme(e){for(var r=bb.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var JI=Ur(),dme=Bt(),pme=Qc(),mme=zm(),Vd=qi(),yme=h6(),gme=d6(),bme=BI(),xme=gb(),_me=p6(),$I=WI(),wme=m6(),Ame=y6(),Tme=Ur().coercePattern;QI.exports=function(r,t,a,n){function i(d,p){return JI.coerce(r,t,pme,d,p)}var o=yme(r,t,n,i);if(o||(t.visible=!1),!!t.visible){gme(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=bme(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var Mme=Am().getAxisGroup;eB.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=Mme(a,l)+o,f=a._alignmentOpts||{},u=n("alignmentgroup"),c=f[s];c||(c=f[s]={});var v=c[u];v?v.traces.push(t):v=c[u]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=v.offsetGroups,g=p[d];t._offsetIndex=0,(i!=="group"||d)&&(g||(g=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=g.offsetIndex)}});var g6=P((HDe,tB)=>{"use strict";var Sme=Ur(),Eme=rB(),kme=Qc();tB.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return Sme.coerce(n._input,n,kme,v)}if(t.scattermode==="group")for(i=0;i=0;u--){var c=r[u];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var nB=P((VDe,aB)=>{"use strict";var Cme=Ur(),Lme=h2();aB.exports=function(e,r){function t(n,i){return Cme.coerce(e,r,Lme,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var b6=P((YDe,oB)=>{"use strict";var Dme=ya(),iB=Ur(),Fme=iB.dateTime2ms,xb=iB.incrementMonth,Rme=Qn(),qme=Rme.ONEAVGMONTH;oB.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var o=r[a+"period"],l;if(Dme(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:n}}for(var f=t.calendar,u=i==="start",c=i==="end",v=r[a+"period0"],d=Fme(v,f)||0,p=[],g=[],m=[],b=n.length,A=0;A_;)E=xb(E,-l,f);for(;E<=_;)E=xb(E,l,f);T=xb(E,-l,f)}else{for(x=Math.round((_-d)/o),E=d+x*o;E>_;)E-=o;for(;E<=_;)E+=o;T=E-o}p[A]=u?T:c?E:(T+E)/2,g[A]=T,m[A]=E}return{vals:p,starts:g,ends:m}}});var Km=P((WDe,sB)=>{"use strict";var x6=Rs().hasColorscale,_6=O4(),lB=qi();sB.exports=function(r,t){lB.hasLines(t)&&x6(t,"line")&&_6(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),lB.hasMarkers(t)&&(x6(t,"marker")&&_6(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),x6(t,"marker.line")&&_6(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var w6=P((jDe,fB)=>{"use strict";var Nn=Ur();fB.exports=function(r,t){for(var a=0;a{"use strict";var uB=Ur();cB.exports=function(r,t){uB.isArrayOrTypedArray(t.selectedpoints)&&uB.tagSelected(r,t)}});var Yd=P((ZDe,bB)=>{"use strict";var hB=ya(),T6=Ur(),ey=mn(),dB=b6(),A6=Qn().BADNUM,M6=qi(),Pme=Km(),Nme=w6(),Ome=vB();function Ime(e,r){var t=e._fullLayout,a=r._xA=ey.getFromId(e,r.xaxis||"x","x"),n=r._yA=ey.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=dB(r,a,"x",i),s=dB(r,n,"y",o),f=l.vals,u=s.vals,c=r._length,v=new Array(c),d=r.ids,p=S6(r,t,a,n),g=!1,m,b,A,_,x,T;yB(t,r);var E="x",S="y",k;if(p)T6.pushUnique(p.traceIndices,r.index),m=p.orientation==="v",m?(S="s",k="x"):(E="s",k="y"),x=p.stackgaps==="interpolate";else{var F=mB(r,c);pB(e,r,a,n,f,u,F)}var O=!!r.xperiodalignment,I=!!r.yperiodalignment;for(b=0;bb&&v[_].gap;)_--;for(T=v[_].s,A=v.length-1;A>_;A--)v[A].s=T;for(;b<_;)if(b++,v[b].gap){for(A=b+1;v[A].gap;)A++;for(var le=v[b-1][k],ae=v[b-1].s,$=(v[A].s-ae)/(v[A][k]-le);b{"use strict";xB.exports=_b;var Bme=Ur().distinctVals;function _b(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i{"use strict";var es=ya(),rv=Ur().isArrayOrTypedArray,Wd=Qn().BADNUM,zme=Bt(),ry=mn(),Gme=Am().getAxisGroup,wb=_B();function Ume(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],f=0;fs+o||!es(l))}for(var u=0;u{"use strict";var EB=Yd(),kB=SB().setGroupPositions;function eye(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],f=0;fF[u]&&u{"use strict";var tye=Wa(),qB=Qn(),ty=qB.BADNUM,PB=qB.LOG_CLIP,DB=PB+.5,FB=PB-.5,Ab=Ur(),aye=Ab.segmentsIntersect,RB=Ab.constrain,F6=zm();NB.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",s=n._length,f=i._length,u=t.backoff,c=a.marker,v=t.connectGaps,d=t.baseTolerance,p=t.shape,g=p==="linear",m=a.fill&&a.fill!=="none",b=[],A=F6.minTolerance,_=r.length,x=new Array(_),T=0,E,S,k,F,O,I,R,H,X,le,ae,$,Z,J,oe,ce;function De(pr){var Se=r[pr];if(!Se)return!1;var Ie=t.linearized?n.l2p(Se.x):n.c2p(Se.x),yr=t.linearized?i.l2p(Se.y):i.c2p(Se.y);if(Ie===ty){if(o&&(Ie=n.c2p(Se.x,!0)),Ie===ty)return!1;l&&yr===ty&&(Ie*=Math.abs(n._m*f*(n._m>0?DB:FB)/(i._m*s*(i._m>0?DB:FB)))),Ie*=1e3}if(yr===ty){if(l&&(yr=i.c2p(Se.y,!0)),yr===ty)return!1;yr*=1e3}return[Ie,yr]}function Oe(pr,Se,Ie,yr){var cr=Ie-pr,xt=yr-Se,At=.5-pr,gt=.5-Se,Nt=cr*cr+xt*xt,ta=cr*At+xt*gt;if(ta>0&&ta1||Math.abs(At.y-Ie[0][1])>1)&&(At=[At.x,At.y],yr&&or(At,pr)Ve||pr[1]ee)return[RB(pr[0],He,Ve),RB(pr[1],Qe,ee)]}function rt(pr,Se){if(pr[0]===Se[0]&&(pr[0]===He||pr[0]===Ve)||pr[1]===Se[1]&&(pr[1]===Qe||pr[1]===ee))return!0}function Jr(pr,Se){var Ie=[],yr=Pr(pr),cr=Pr(Se);return yr&&cr&&rt(yr,cr)||(yr&&Ie.push(yr),cr&&Ie.push(cr)),Ie}function wr(pr,Se,Ie){return function(yr,cr){var xt=Pr(yr),At=Pr(cr),gt=[];if(xt&&At&&rt(xt,At))return gt;xt&>.push(xt),At&>.push(At);var Nt=2*Ab.constrain((yr[pr]+cr[pr])/2,Se,Ie)-((xt||yr)[pr]+(At||cr)[pr]);if(Nt){var ta;xt&&At?ta=Nt>0==xt[pr]>At[pr]?xt:At:ta=xt||At,ta[pr]+=Nt}return gt}}var Hr;p==="linear"||p==="spline"?Hr=_r:p==="hv"||p==="vh"?Hr=Jr:p==="hvh"?Hr=wr(0,He,Ve):p==="vhv"&&(Hr=wr(1,Qe,ee));function Vr(pr,Se){var Ie=Se[0]-pr[0],yr=(Se[1]-pr[1])/Ie,cr=(pr[1]*Se[0]-Se[1]*pr[0])/Ie;return cr>0?[yr>0?He:Ve,ee]:[yr>0?Ve:He,Qe]}function Pe(pr){var Se=pr[0],Ie=pr[1],yr=Se===x[T-1][0],cr=Ie===x[T-1][1];if(!(yr&&cr))if(T>1){var xt=Se===x[T-2][0],At=Ie===x[T-2][1];yr&&(Se===He||Se===Ve)&&xt?At?T--:x[T-1]=pr:cr&&(Ie===Qe||Ie===ee)&&At?xt?T--:x[T-1]=pr:x[T++]=pr}else x[T++]=pr}function sr(pr){x[T-1][0]!==pr[0]&&x[T-1][1]!==pr[1]&&Pe([vr,rr]),Pe(pr),Cr=null,vr=rr=0}var lt=Ab.isArrayOrTypedArray(c);function Et(pr){if(pr&&u&&(pr.i=E,pr.d=r,pr.trace=a,pr.marker=lt?c[pr.i]:c,pr.backoff=u),Ee=pr[0]/s,Je=pr[1]/f,re=pr[0]Ve?Ve:0,Ze=pr[1]ee?ee:0,re||Ze){if(!T)x[T++]=[re||pr[0],Ze||pr[1]];else if(Cr){var Se=Hr(Cr,pr);Se.length>1&&(sr(Se[0]),x[T++]=Se[1])}else Lr=Hr(x[T-1],pr)[0],x[T++]=Lr;var Ie=x[T-1];re&&Ze&&(Ie[0]!==re||Ie[1]!==Ze)?(Cr&&(vr!==re&&rr!==Ze?Pe(vr&&rr?Vr(Cr,pr):[vr||re,rr||Ze]):vr&&rr&&Pe([vr,rr])),Pe([re,Ze])):vr-re&&rr-Ze&&Pe([re||vr,Ze||rr]),Cr=pr,vr=re,rr=Ze}else Cr&&sr(Hr(Cr,pr)[0]),x[T++]=pr}for(E=0;E<_;E++)if(S=De(E),!!S){for(T=0,Cr=null,Et(S),E++;E<_;E++){if(F=De(E),!F){if(v)continue;break}if(!g||!t.simplify){Et(F);continue}var wt=De(E+1);if(le=or(F,S),!(!(m&&(T===0||T===_-1))&&leAe(I,wt))break;k=I,Z=X[0]*H[0]+X[1]*H[1],Z>ae?(ae=Z,F=I,R=!1):Z<$&&($=Z,O=I,R=!0)}if(R?(Et(F),k!==O&&Et(O)):(O!==S&&Et(O),k!==F&&Et(F)),Et(k),E>=r.length||!I)break;Et(I),S=I}}Cr&&Pe([vr||Cr[0],rr||Cr[1]]),b.push(x.slice(0,T))}var Fe=p.slice(p.length-1);if(u&&Fe!=="h"&&Fe!=="v"){for(var hr=!1,Or=-1,at=[],Yr=0;Yr{"use strict";var IB={tonextx:1,tonexty:1,tonext:1};BB.exports=function(r,t,a){var n,i,o,l,s,f={},u=!1,c=-1,v=0,d=-1;for(i=0;i=0?s=d:(s=d=v,v++),s{"use strict";var Gs=ha(),nye=Bt(),ay=Ur(),Xd=ay.ensureSingle,GB=ay.identity,On=Wa(),Zd=qi(),iye=OB(),oye=R6(),Tb=EA().tester;UB.exports=function(r,t,a,n,i,o){var l,s,f=!i,u=!!i&&i.duration>0,c=oye(r,t,a);if(l=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),lye(r,l,t),u){o&&(s=o());var v=Gs.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});v.each(function(){n.selectAll("g.trace").each(function(d,p){zB(r,p,t,d,c,this,i)})})}else l.each(function(d,p){zB(r,p,t,d,c,this,i)});f&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function lye(e,r,t){r.each(function(a){var n=Xd(Gs.select(this),"g","fills");On.setClipUrl(n,t.layerClipId,e);var i=a[0].trace,o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=n.selectAll("g").data(o,GB);l.enter().append("g"),l.exit().each(function(s){i[s]=null}).remove(),l.order().each(function(s){i[s]=Xd(Gs.select(this),"path","js-fill")})})}function zB(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;sye(e,r,t,a,n);var f=!!o&&o.duration>0;function u(wr){return f?wr.transition():wr}var c=t.xaxis,v=t.yaxis,d=a[0].trace,p=d.line,g=Gs.select(i),m=Xd(g,"g","errorbars"),b=Xd(g,"g","lines"),A=Xd(g,"g","points"),_=Xd(g,"g","text");if(nye.getComponentMethod("errorbars","plot")(e,m,t,o),d.visible!==!0)return;u(g).style("opacity",d.opacity);var x,T,E=d.fill.charAt(d.fill.length-1);E!=="x"&&E!=="y"&&(E="");var S,k;E==="y"?(S=1,k=v.c2p(0,!0)):E==="x"&&(S=0,k=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=g;var F="",O=[],I=d._prevtrace,R=null,H=null;I&&(F=I._prevRevpath||"",T=I._nextFill,O=I._ownPolygons,R=I._fillsegments,H=I._fillElement);var X,le,ae="",$="",Z,J,oe,ce,De,Oe,Ee=[];d._polygons=[];var Je=[],Ae=[],or=ay.noop;if(x=d._ownFill,Zd.hasLines(d)||d.fill!=="none"){T&&T.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(Z=On.steps(p.shape),J=On.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?Z=J=function(wr){var Hr=wr[wr.length-1];return wr.length>1&&wr[0][0]===Hr[0]&&wr[0][1]===Hr[1]?On.smoothclosed(wr.slice(1),p.smoothing):On.smoothopen(wr,p.smoothing)}:Z=J=function(wr){return"M"+wr.join("L")},oe=function(wr){return J(wr.reverse())},Ae=iye(a,{xaxis:c,yaxis:v,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),Je=new Array(Ae.length);var Ge=0;for(s=0;s=l[0]&&g.x<=l[1]&&g.y>=s[0]&&g.y<=s[1]}),v=Math.ceil(c.length/u),d=0;n.forEach(function(g,m){var b=g[0].trace;Zd.hasMarkers(b)&&b.marker.maxdisplayed>0&&m{"use strict";VB.exports={container:"marker",min:"cmin",max:"cmax"}});var q6=P((aFe,YB)=>{"use strict";var Sb=mn();YB.exports=function(r,t,a){var n={},i={_fullLayout:a},o=Sb.getFromTrace(i,t,"x"),l=Sb.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var f=r.orig_y;return f===void 0&&(f=r.y),n.xLabel=Sb.tickText(o,o.c2l(s),!0).text,n.yLabel=Sb.tickText(l,l.c2l(f),!0).text,n}});var I6=P((nFe,WB)=>{"use strict";var P6=ha(),Jd=Wa(),fye=Bt();function uye(e){var r=P6.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=P6.select(this),n=t.trace||t[0].trace;N6(a,n,e)}),r.selectAll("g.text").each(function(t){var a=P6.select(this),n=t.trace||t[0].trace;O6(a,n,e)}),r.selectAll("g.trace path.js-line").call(Jd.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Jd.fillGroupStyle,e,!1),fye.getComponentMethod("errorbars","style")(r)}function N6(e,r,t){Jd.pointStyle(e.selectAll("path.point"),r,t)}function O6(e,r,t){Jd.textPointStyle(e.selectAll("text"),r,t)}function cye(e,r,t){var a=r[0].trace;a.selectedpoints?(Jd.selectedPointStyle(t.selectAll("path.point"),a),Jd.selectedTextStyle(t.selectAll("text"),a)):(N6(t,a,e),O6(t,a,e))}WB.exports={style:uye,stylePoints:N6,styleText:O6,styleOnSelect:cye}});var B6=P((iFe,jB)=>{"use strict";var $d=va(),vye=qi();jB.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&$d.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&$d.opacity(i)?i:o&&$d.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?$d.opacity(n)<.3?$d.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&$d.opacity(a)&&vye.hasLines(r)&&r.line.width?a:r.fillcolor)}});var JB=P((oFe,ZB)=>{"use strict";var Eb=Ur(),XB=Wc(),hye=Bt(),dye=B6(),z6=va(),pye=Eb.fillText;ZB.exports=function(r,t,a,n){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,f=l.c2p(t),u=s.c2p(a),c=[f,u],v=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,g=!!o.yperiodalignment;if(v.indexOf("points")!==-1){var m=function($){if(p){var Z=l.c2p($.xStart),J=l.c2p($.xEnd);return f>=Math.min(Z,J)&&f<=Math.max(Z,J)?0:1/0}var oe=Math.max(3,$.mrc||0),ce=1-1/oe,De=Math.abs(l.c2p($.x)-f);return De=Math.min(Z,J)&&u<=Math.max(Z,J)?0:1/0}var oe=Math.max(3,$.mrc||0),ce=1-1/oe,De=Math.abs(s.c2p($.y)-u);return DeEe!=ee>=Ee&&(He=or[Ae-1][0],Ve=or[Ae][0],ee-Qe&&(Ge=He+(Ve-He)*(Ee-Qe)/(ee-Qe),oe=Math.min(oe,Ge),ce=Math.max(ce,Ge)));return oe=Math.max(oe,0),ce=Math.min(ce,l._length),{x0:oe,x1:ce,y0:Ee,y1:Ee}}if(v.indexOf("fills")!==-1&&o._fillElement){var X=R(o._fillElement)&&!R(o._fillExclusionElement);if(X){var le=H(o._polygons);le===null&&(le={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var ae=z6.defaultLine;return z6.opacity(o.fillcolor)?ae=o.fillcolor:z6.opacity((o.line||{}).color)&&(ae=o.line.color),Eb.extendFlat(r,{distance:r.maxHoverDistance,x0:le.x0,x1:le.x1,y0:le.y0,y1:le.y1,color:ae,hovertemplate:!1}),delete r.index,o.text&&!Eb.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var KB=P((lFe,QB)=>{"use strict";var $B=qi();QB.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,f,u,c,v=!$B.hasMarkers(l)&&!$B.hasText(l);if(v)return[];if(t===!1)for(s=0;s{"use strict";ez.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var iz=P((fFe,nz)=>{"use strict";var ny=Bt().traceIs,G6=aw();nz.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(mye(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function mye(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=yye(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=a+"calendar",l=i[o],s={noMultiCategory:!ny(i,"cartesian")||ny(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,az(i,a)){var f=tz(i),u=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(az(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function tz(e){return{v:"x",h:"y"}[e.orientation||"v"]}function az(e,r){var t=tz(e),a=ny(e,"box-violin"),n=ny(e._fullInput||{},"candlestick");return a&&!n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var lz=P((uFe,oz)=>{"use strict";var gye=Vo().isTypedArraySpec;function bye(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,o;if(r.axData)n=r.axData;else for(n=[],i=0;i0||gye(i),l;o&&(l="array");var s=a("categoryorder",l),f;s==="array"&&(f=a("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=f.slice():(f=bye(t,n).sort(),s==="category ascending"?t._initialCategories=f:s==="category descending"&&(t._initialCategories=f.reverse()))}}});var uz=P((cFe,fz)=>{"use strict";var sz=Es().mix,xye=wf(),_ye=Ur();fz.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(k,F){return _ye.coerce2(r,t,n.attributes,k,F)}var l=o("linecolor",i),s=o("linewidth"),f=a("showline",n.showLine||!!l||!!s);f||(delete t.linecolor,delete t.linewidth);var u=sz(i,n.bgColor,n.blend||xye.lightFraction).toRgbString(),c=o("gridcolor",u),v=o("gridwidth"),d=o("griddash"),p=a("showgrid",n.showGrid||!!c||!!v||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var g=sz(t.gridcolor,n.bgColor,67).toRgbString(),m=o("minor.gridcolor",g),b=o("minor.gridwidth",t.gridwidth||1),A=o("minor.griddash",t.griddash||"solid"),_=a("minor.showgrid",!!m||!!b||!!A);_||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var x=o("zerolinelayer"),T=o("zerolinecolor",i),E=o("zerolinewidth"),S=a("zeroline",n.showGrid||!!T||!!E);S||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var H6=P((vFe,mz)=>{"use strict";var cz=ya(),wye=Bt(),iy=Ur(),Aye=$a(),Tye=gl(),U6=Ul(),vz=S4(),hz=k4(),Mye=D4(),Sye=F4(),Eye=lz(),kye=uz(),Cye=Aw(),dz=O2(),kb=Ri().WEEKDAY_PATTERN,Lye=Ri().HOUR_PATTERN;mz.exports=function(r,t,a,n,i){var o=n.letter,l=n.font||{},s=n.splomStash||{},f=a("visible",!n.visibleDflt),u=t._template||{},c=t.type||u.type||"-",v;if(c==="date"){var d=wye.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(v=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=iy.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),dz(t,i),Cye(r,t,a,n),Eye(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var g=a("color"),m=g!==U6.color.dflt?g:l.color,b=s.label||i._dfltTitle[o];if(Sye(r,t,a,c,n),!f)return t;a("title.text",b),iy.coerceFont(a,"title.font",l,{overrideDflt:{size:iy.bigFont(l.size),color:m}}),vz(r,t,a,c);var A=n.hasMinor;if(A&&(Aye.newContainer(t,"minor"),vz(r,t,a,c,{isMinor:!0})),Mye(r,t,a,c,n),hz(r,t,a,n),A){var _=n.isMinor;n.isMinor=!0,hz(r,t,a,n),n.isMinor=_}kye(r,t,a,{dfltColor:g,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:A,attributes:U6}),A&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var x=c==="multicategory";if(!n.noTickson&&(c==="category"||x)&&(t.ticks||t.showgrid)&&(x?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),x){var T=a("showdividers");T&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(Tye(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Dye}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var E=0;E=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=pz(i[l]),s){o=kb;break}}var f=a("pattern",o);if(f===kb)for(l=0;l<2;l++)s=pz(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(f)for(l=0;l<2;l++)switch(s=i[l],f){case kb:if(!cz(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case Lye:if(!cz(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var u=t.range;if(u[0]u[1]){r.enabled=!1;return}}else if(i[0]>u[0]&&i[1]{"use strict";var Rye=ya(),Cb=Ur();yz.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,f=n.overlayingDomain,u,c,v,d,p,g;s&&(c=s._domains[l][s._axisMap[t._id]],u=s._anchors[t._id],c&&(v=s[l+"side"].split(" ")[0],d=s.domain[l][v==="right"||v==="top"?1:0])),c=c||[0,1],u=u||(Rye(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,g=!1;var m=Cb.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:u}},"anchor"),b=Cb.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:v}},"side");if(m==="free"){if(l==="y"){var A=a("autoshift");A&&(d=b==="left"?f[0]:f[1],g=t.automargin?t.automargin:!0,p=b==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",g);var _=!1;if(o.length&&(_=Cb.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!_){var x=a("domain",c);x[0]>x[1]-1/4096&&(t.domain=c),Cb.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var Sz=P((dFe,Mz)=>{"use strict";var X0=Ur(),gz=va(),qye=Cu().isUnifiedHover,Pye=Jw(),bz=$a(),Nye=rd(),xz=Ul(),Oye=iz(),_z=H6(),Iye=Am(),wz=V6(),W6=Sn(),Nf=W6.id2name,Az=W6.name2id,Bye=Ri().AX_ID_PATTERN,Tz=Bt(),Lb=Tz.traceIs,Y6=Tz.getComponentMethod;function Db(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}Mz.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},f={},u={},c={},v={},d={},p={},g,m;for(g=0;g{"use strict";var zye=ha(),Ez=Bt(),Fb=Ur(),Tl=Wa(),Rb=mn();kz.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){Rb.redrawComponents(r);return}function o(m){var b=m.xaxis,A=m.yaxis;i._defs.select("#"+m.clipId+"> rect").call(Tl.setTranslate,0,0).call(Tl.setScale,1,1),m.plot.call(Tl.setTranslate,b._offset,A._offset).call(Tl.setScale,1,1);var _=m.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call(Tl.setPointGroupScale,1,1),_.selectAll(".textpoint").call(Tl.setTextPointsScale,1,1),_.call(Tl.hideOutsideRangePoints,m)}function l(m,b){var A=m.plotinfo,_=A.xaxis,x=A.yaxis,T=_._length,E=x._length,S=!!m.xr1,k=!!m.yr1,F=[];if(S){var O=Fb.simpleMap(m.xr0,_.r2l),I=Fb.simpleMap(m.xr1,_.r2l),R=O[1]-O[0],H=I[1]-I[0];F[0]=(O[0]*(1-b)+b*I[0]-O[0])/(O[1]-O[0])*T,F[2]=T*(1-b+b*H/R),_.range[0]=_.l2r(O[0]*(1-b)+b*I[0]),_.range[1]=_.l2r(O[1]*(1-b)+b*I[1])}else F[0]=0,F[2]=T;if(k){var X=Fb.simpleMap(m.yr0,x.r2l),le=Fb.simpleMap(m.yr1,x.r2l),ae=X[1]-X[0],$=le[1]-le[0];F[1]=(X[1]*(1-b)+b*le[1]-X[1])/(X[0]-X[1])*E,F[3]=E*(1-b+b*$/ae),x.range[0]=_.l2r(X[0]*(1-b)+b*le[0]),x.range[1]=x.l2r(X[1]*(1-b)+b*le[1])}else F[1]=0,F[3]=E;Rb.drawOne(r,_,{skipTitle:!0}),Rb.drawOne(r,x,{skipTitle:!0}),Rb.redrawComponents(r,[_._id,x._id]);var Z=S?T/F[2]:1,J=k?E/F[3]:1,oe=S?F[0]:0,ce=k?F[1]:0,De=S?F[0]/F[2]*T:0,Oe=k?F[1]/F[3]*E:0,Ee=_._offset-De,Je=x._offset-Oe;A.clipRect.call(Tl.setTranslate,oe,ce).call(Tl.setScale,1/Z,1/J),A.plot.call(Tl.setTranslate,Ee,Je).call(Tl.setScale,Z,J),Tl.setPointGroupScale(A.zoomScalePts,1/Z,1/J),Tl.setTextPointsScale(A.zoomScaleTxt,1/Z,1/J)}var s;n&&(s=n());function f(){for(var m={},b=0;ba.duration?(f(),d=window.cancelAnimationFrame(g)):d=window.requestAnimationFrame(g)}return c=Date.now(),d=window.requestAnimationFrame(g),Promise.resolve()}});var oy=P(no=>{"use strict";var Pb=ha(),Lz=Bt(),Z0=Ur(),Gye=bi(),Uye=Wa(),Dz=K1().getModuleCalcData,tv=Sn(),Us=Ri(),Hye=Ic(),Fa=Z0.ensureSingle;function qb(e,r,t){return Z0.ensureSingle(e,r,t,function(a){a.datum(t)})}var J0=Us.zindexSeparator;no.name="cartesian";no.attr=["xaxis","yaxis"];no.idRoot=["x","y"];no.idRegex=Us.idRegex;no.attrRegex=Us.attrRegex;no.attributes=rz();no.layoutAttributes=Ul();no.supplyLayoutDefaults=Sz();no.transitionAxes=Cz();no.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,o=i,l={},s={},f,u,c;for(f=0;f0){var d=v.id;if(d.indexOf(J0)!==-1)continue;d+=J0+(f+1),v=Z0.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],g,m=0;m1&&(T+=J0+x),_.push(l+T),o=0;o1,c=r.mainplotinfo;if(!r.mainplot||u)if(f)r.xlines=Fa(a,"path","xlines-above"),r.ylines=Fa(a,"path","ylines-above"),r.xaxislayer=Fa(a,"g","xaxislayer-above"),r.yaxislayer=Fa(a,"g","yaxislayer-above");else{if(!o){var v=Fa(a,"g","layer-subplot");r.shapelayer=Fa(v,"g","shapelayer"),r.imagelayer=Fa(v,"g","imagelayer"),c&&u?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=Fa(a,"g","minor-gridlayer"),r.gridlayer=Fa(a,"g","gridlayer"),r.zerolinelayer=Fa(a,"g","zerolinelayer"));var d=Fa(a,"g","layer-between");r.shapelayerBetween=Fa(d,"g","shapelayer"),r.imagelayerBetween=Fa(d,"g","imagelayer"),Fa(a,"path","xlines-below"),Fa(a,"path","ylines-below"),r.overlinesBelow=Fa(a,"g","overlines-below"),Fa(a,"g","xaxislayer-below"),Fa(a,"g","yaxislayer-below"),r.overaxesBelow=Fa(a,"g","overaxes-below")}r.overplot=Fa(a,"g","overplot"),r.plot=Fa(r.overplot,"g",n),c&&u?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=Fa(a,"g","zerolinelayer-above"),o||(r.xlines=Fa(a,"path","xlines-above"),r.ylines=Fa(a,"path","ylines-above"),r.overlinesAbove=Fa(a,"g","overlines-above"),Fa(a,"g","xaxislayer-above"),Fa(a,"g","yaxislayer-above"),r.overaxesAbove=Fa(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,g=n+"-x",m=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,Fa(c.overlinesBelow,"path",g),Fa(c.overlinesBelow,"path",m),Fa(c.overaxesBelow,"g",g),Fa(c.overaxesBelow,"g",m),r.plot=Fa(c.overplot,"g",n),Fa(c.overlinesAbove,"path",g),Fa(c.overlinesAbove,"path",m),Fa(c.overaxesAbove,"g",g),Fa(c.overaxesAbove,"g",m),r.xlines=p.select(".overlines-"+l).select("."+g),r.ylines=p.select(".overlines-"+s).select("."+m),r.xaxislayer=p.select(".overaxes-"+l).select("."+g),r.yaxislayer=p.select(".overaxes-"+s).select("."+m)}o||(f||(qb(r.minorGridlayer,"g",r.xaxis._id),qb(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(tv.idSort),qb(r.gridlayer,"g",r.xaxis._id),qb(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(tv.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function qz(e,r){if(e){var t={};e.each(function(s){var f=s[0],u=Pb.select(this);u.remove(),Pz(f,r),t[f]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],o=0;o{"use strict";var Nb=qi();Nz.exports={hasLines:Nb.hasLines,hasMarkers:Nb.hasMarkers,hasText:Nb.hasText,isBubble:Nb.isBubble,attributes:Qc(),layoutAttributes:h2(),supplyDefaults:KI(),crossTraceDefaults:g6(),supplyLayoutDefaults:nB(),calc:Yd().calc,crossTraceCalc:LB(),arraysToCalcdata:w6(),plot:HB(),colorbar:Mb(),formatLabels:q6(),style:I6().style,styleOnSelect:I6().styleOnSelect,hoverPoints:JB(),selectPoints:KB(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:oy(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var zz=P((gFe,Bz)=>{"use strict";var Yye=ha(),Wye=va(),Iz=BA(),j6=Ur(),jye=j6.strScale,Xye=j6.strRotate,Zye=j6.strTranslate;Bz.exports=function(r,t,a){var n=r.node(),i=Iz[a.arrowhead||0],o=Iz[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),f=t.indexOf("start")>=0,u=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,v=o.backoff*s+a.startstandoff,d,p,g,m;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var b=d.x-p.x,A=d.y-p.y;if(g=Math.atan2(A,b),m=g+Math.PI,c&&v&&c+v>Math.sqrt(b*b+A*A)){X();return}if(c){if(c*c>b*b+A*A){X();return}var _=c*Math.cos(g),x=c*Math.sin(g);p.x+=_,p.y+=x,r.attr({x2:p.x,y2:p.y})}if(v){if(v*v>b*b+A*A){X();return}var T=v*Math.cos(g),E=v*Math.sin(g);d.x-=T,d.y-=E,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var S=n.getTotalLength(),k="";if(S{"use strict";var Gz=ha(),X6=Bt(),Jye=bi(),nv=Ur(),Z6=nv.strTranslate,sy=mn(),$0=va(),Nu=Wa(),Uz=Wc(),J6=po(),$6=Yc(),ly=Ps(),$ye=$a().arrayEditor,Qye=zz();Yz.exports={draw:Kye,drawOne:Hz,drawRaw:Vz};function Kye(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?cr="right":cr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[cr]}for(var Qe=!1,ee=["x","y"],_e=0;_e1)&&(vr===Ze?(wt=rr.r2fraction(r["a"+re]),(wt<0||wt>1)&&(Qe=!0)):Qe=!0),Hr=rr._offset+rr.r2p(r[re]),sr=.5}else{var Fe=Et==="domain";re==="x"?(Pe=r[re],Hr=Fe?rr._offset+rr._length*Pe:Hr=l.l+l.w*Pe):(Pe=1-r[re],Hr=Fe?rr._offset+rr._length*Pe:Hr=l.t+l.h*Pe),sr=r.showarrow?.5:Pe}if(r.showarrow){wr.head=Hr;var hr=r["a"+re];if(lt=Lr*Ve(.5,r.xanchor)-_r*Ve(.5,r.yanchor),vr===Ze){var Or=sy.getRefType(vr);Or==="domain"?(re==="y"&&(hr=1-hr),wr.tail=rr._offset+rr._length*hr):Or==="paper"?re==="y"?(hr=1-hr,wr.tail=l.t+l.h*hr):wr.tail=l.l+l.w*hr:wr.tail=rr._offset+rr.r2p(hr),Vr=lt}else wr.tail=Hr+hr,Vr=lt+hr;wr.text=wr.tail+lt;var at=o[re==="x"?"width":"height"];if(Ze==="paper"&&(wr.head=nv.constrain(wr.head,1,at-1)),vr==="pixel"){var Yr=-Math.max(wr.tail-3,wr.text),nt=Math.min(wr.tail+3,wr.text)-at;Yr>0?(wr.tail+=Yr,wr.text+=Yr):nt>0&&(wr.tail-=nt,wr.text-=nt)}wr.tail+=Jr,wr.head+=Jr}else lt=Pr*Ve(sr,rt),Vr=lt,wr.text=Hr+lt;wr.text+=Jr,lt+=Jr,Vr+=Jr,r["_"+re+"padplus"]=Pr/2+Vr,r["_"+re+"padminus"]=Pr/2-Vr,r["_"+re+"size"]=Pr,r["_"+re+"shift"]=lt}if(Qe){S.remove();return}var vt=0,ot=0;if(r.align!=="left"&&(vt=(Ae-Ee)*(r.align==="center"?.5:1)),r.valign!=="top"&&(ot=(or-Je)*(r.valign==="middle"?.5:1)),De)ce.select("svg").attr({x:O+vt-1,y:O+ot}).call(Nu.setClipUrl,R?g:null,e);else{var et=O+ot-Oe.top,pr=O+vt-Oe.left;ae.call(J6.positionText,pr,et).call(Nu.setClipUrl,R?g:null,e)}H.select("rect").call(Nu.setRect,O,O,Ae,or),I.call(Nu.setRect,k/2,k/2,Ge-k,He-k),S.call(Nu.setTranslate,Math.round(m.x.text-Ge/2),Math.round(m.y.text-He/2)),_.attr({transform:"rotate("+b+","+m.x.text+","+m.y.text+")"});var Se=function(yr,cr){A.selectAll(".annotation-arrow-g").remove();var xt=m.x.head,At=m.y.head,gt=m.x.tail+yr,Nt=m.y.tail+cr,ta=m.x.text+yr,ka=m.y.text+cr,Ta=nv.rotationXYMatrix(b,ta,ka),Rn=nv.apply2DTransform(Ta),bn=nv.apply2DTransform2(Ta),ja=+I.attr("width"),cn=+I.attr("height"),jn=ta-.5*ja,vn=jn+ja,wn=ka-.5*cn,Mi=wn+cn,Pt=[[jn,wn,jn,Mi],[jn,Mi,vn,Mi],[vn,Mi,vn,wn],[vn,wn,jn,wn]].map(bn);if(!Pt.reduce(function(Ra,Xn){return Ra^!!nv.segmentsIntersect(xt,At,xt+1e6,At+1e6,Xn[0],Xn[1],Xn[2],Xn[3])},!1)){Pt.forEach(function(Ra){var Xn=nv.segmentsIntersect(gt,Nt,xt,At,Ra[0],Ra[1],Ra[2],Ra[3]);Xn&&(gt=Xn.x,Nt=Xn.y)});var Ca=r.arrowwidth,ia=r.arrowcolor,Va=r.arrowside,hn=A.append("g").style({opacity:$0.opacity(ia)}).classed("annotation-arrow-g",!0),La=hn.append("path").attr("d","M"+gt+","+Nt+"L"+xt+","+At).style("stroke-width",Ca+"px").call($0.stroke,$0.rgb(ia));if(Qye(La,Va,r),s.annotationPosition&&La.node().parentNode&&!a){var Ba=xt,Ga=At;if(r.standoff){var tn=Math.sqrt(Math.pow(xt-gt,2)+Math.pow(At-Nt,2));Ba+=r.standoff*(gt-xt)/tn,Ga+=r.standoff*(Nt-At)/tn}var Wi=hn.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(gt-Ba)+","+(Nt-Ga),transform:Z6(Ba,Ga)}).style("stroke-width",Ca+6+"px").call($0.stroke,"rgba(0,0,0,0)").call($0.fill,"rgba(0,0,0,0)"),ji,qn;ly.init({element:Wi.node(),gd:e,prepFn:function(){var Ra=Nu.getTranslate(S);ji=Ra.x,qn=Ra.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(Ra,Xn){var ss=Rn(ji,qn),fs=ss[0]+Ra,kl=ss[1]+Xn;S.call(Nu.setTranslate,fs,kl),d("x",av(n,Ra,"x",l,r)),d("y",av(i,Xn,"y",l,r)),r.axref===r.xref&&d("ax",av(n,Ra,"ax",l,r)),r.ayref===r.yref&&d("ay",av(i,Xn,"ay",l,r)),hn.attr("transform",Z6(Ra,Xn)),_.attr({transform:"rotate("+b+","+fs+","+kl+")"})},doneFn:function(){X6.call("_guiRelayout",e,p());var Ra=document.querySelector(".js-notes-box-panel");Ra&&Ra.redraw(Ra.selectedObj)}})}}};if(r.showarrow&&Se(0,0),x){var Ie;ly.init({element:S.node(),gd:e,prepFn:function(){Ie=_.attr("transform")},moveFn:function(yr,cr){var xt="pointer";if(r.showarrow)r.axref===r.xref?d("ax",av(n,yr,"ax",l,r)):d("ax",r.ax+yr),r.ayref===r.yref?d("ay",av(i,cr,"ay",l.w,r)):d("ay",r.ay+cr),Se(yr,cr);else{if(a)return;var At,gt;if(n)At=av(n,yr,"x",l,r);else{var Nt=r._xsize/l.w,ta=r.x+(r._xshift-r.xshift)/l.w-Nt/2;At=ly.align(ta+yr/l.w,Nt,0,1,r.xanchor)}if(i)gt=av(i,cr,"y",l,r);else{var ka=r._ysize/l.h,Ta=r.y-(r._yshift+r.yshift)/l.h-ka/2;gt=ly.align(Ta-cr/l.h,ka,0,1,r.yanchor)}d("x",At),d("y",gt),(!n||!i)&&(xt=ly.getCursor(n?.5:At,i?.5:gt,r.xanchor,r.yanchor))}_.attr({transform:Z6(yr,cr)+Ie}),$6(S,xt)},clickFn:function(yr,cr){r.captureevents&&e.emit("plotly_clickannotation",E(cr))},doneFn:function(){$6(S),X6.call("_guiRelayout",e,p());var yr=document.querySelector(".js-notes-box-panel");yr&&yr.redraw(yr.selectedObj)}})}}s.annotationText?ae.call(J6.makeEditable,{delegate:S,gd:e}).call($).on("edit",function(J){r.text=J,this.call($),d("text",J),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),X6.call("_guiRelayout",e,p())}):ae.call($)}});var $z=P((xFe,Jz)=>{"use strict";var Wz=Ur(),ege=Bt(),jz=$a().arrayEditor;Jz.exports={hasClickToShow:rge,onClick:tge};function rge(e,r){var t=Zz(e,r);return t.on.length>0||t.explicitOff.length>0}function tge(e,r){var t=Zz(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(a.length||n.length){for(l=0;l{"use strict";var Q6=Ur(),Qd=va();Qz.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=Qd.opacity(o);n("borderpad");var s=n("borderwidth"),f=n("showarrow");n("text",f?" ":a._dfltTitle.annotation),n("textangle"),Q6.coerceFont(n,"font",a.font),n("width"),n("align");var u=n("height");if(u&&n("valign"),f){var c=n("arrowside"),v,d;c.indexOf("end")!==-1&&(v=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",v),n("startarrowsize",d)),n("arrowcolor",l?t.bordercolor:Qd.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),g=a.hoverlabel||{};if(p){var m=n("hoverlabel.bgcolor",g.bgcolor||(Qd.opacity(i)?Qd.rgb(i):Qd.defaultLine)),b=n("hoverlabel.bordercolor",g.bordercolor||Qd.contrast(m)),A=Q6.extendFlat({},g.font);A.color||(A.color=b),Q6.coerceFont(n,"hoverlabel.font",A)}n("captureevents",!!p)}});var eG=P((wFe,Kz)=>{"use strict";var eT=Ur(),Q0=mn(),age=gl(),nge=K6(),ige=Gd();Kz.exports=function(r,t){age(r,t,{name:"annotations",handleItemDefaults:oge})};function oge(e,r,t){function a(_,x){return eT.coerce(e,r,ige,_,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){nge(e,r,t,a);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],f={_fullLayout:t},u=0;u<2;u++){var c=l[u],v=Q0.coerceRef(e,r,f,c,"","paper");if(v!=="paper"){var d=Q0.getFromId(f,v);d._annIndices.push(r._index)}if(Q0.coercePosition(r,f,a,v,c,.5),o){var p="a"+c,g=Q0.coerceRef(e,r,f,p,"pixel",["pixel","paper"]);g!=="pixel"&&g!==v&&(g=r[p]="pixel");var m=g==="pixel"?s[u]:.4;Q0.coercePosition(r,f,a,g,p,m)}a(c+"anchor"),a(c+"shift")}if(eT.noneOrAll(e,r,["x","y"]),o&&eT.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),A=a("yclick");r._xclick=b===void 0?r.x:Q0.cleanPosition(b,f,r.xref),r._yclick=A===void 0?r.y:Q0.cleanPosition(A,f,r.yref)}}}});var aG=P((AFe,tG)=>{"use strict";var rT=Ur(),K0=mn(),lge=Ob().draw;tG.exports=function(r){var t=r._fullLayout,a=rT.filterVisible(t.annotations);if(a.length&&r._fullData.length)return rT.syncOrAsync([lge,sge],r)};function sge(e){var r=e._fullLayout;rT.filterVisible(r.annotations).forEach(function(t){var a=K0.getFromId(e,t.xref),n=K0.getFromId(e,t.yref),i=K0.getRefType(t.xref),o=K0.getRefType(t.yref);t._extremes={},i==="range"&&rG(t,a),o==="range"&&rG(t,n)})}function rG(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],l=e["a"+a+"ref"],s=e["_"+a+"padplus"],f=e["_"+a+"padminus"],u={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,v=c+u,d=c-u,p=3*e.startarrowsize*e.arrowwidth||0,g=p+u,m=p-u,b;if(l===o){var A=K0.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),_=K0.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,g),ppadminus:Math.max(f,m)});b={min:[A.min[0],_.min[0]],max:[A.max[0],_.max[0]]}}else g=i?g+i:g,m=i?m-i:m,b=K0.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,g),ppadminus:Math.max(f,d,m)});e._extremes[t]=b}});var iG=P((TFe,nG)=>{"use strict";var fge=ya(),uge=qg();nG.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),f,u;function c(d){var p=f[d],g=null;i?g=uge(p,t.range):g=Math.pow(10,p),fge(g)||(g=null),n(u+d,g)}for(var v=0;v{"use strict";var tT=Ob(),oG=$z();lG.exports={moduleType:"component",name:"annotations",layoutAttributes:Gd(),supplyLayoutDefaults:eG(),includeBasePlot:Gm()("annotations"),calcAutorange:aG(),draw:tT.draw,drawOne:tT.drawOne,drawRaw:tT.drawRaw,hasClickToShow:oG.hasClickToShow,onClick:oG.onClick,convertCoords:iG()}});var Ib=P((SFe,fG)=>{"use strict";var rn=Gd(),cge=Cs().overrideAll,vge=$a().templatedArray;fG.exports=cge(vge("annotation",{visible:rn.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:rn.xanchor,xshift:rn.xshift,yanchor:rn.yanchor,yshift:rn.yshift,text:rn.text,textangle:rn.textangle,font:rn.font,width:rn.width,height:rn.height,opacity:rn.opacity,align:rn.align,valign:rn.valign,bgcolor:rn.bgcolor,bordercolor:rn.bordercolor,borderpad:rn.borderpad,borderwidth:rn.borderwidth,showarrow:rn.showarrow,arrowcolor:rn.arrowcolor,arrowhead:rn.arrowhead,startarrowhead:rn.startarrowhead,arrowside:rn.arrowside,arrowsize:rn.arrowsize,startarrowsize:rn.startarrowsize,arrowwidth:rn.arrowwidth,standoff:rn.standoff,startstandoff:rn.startstandoff,hovertext:rn.hovertext,hoverlabel:rn.hoverlabel,captureevents:rn.captureevents}),"calc","from-root")});var cG=P((EFe,uG)=>{"use strict";var aT=Ur(),hge=mn(),dge=gl(),pge=K6(),mge=Ib();uG.exports=function(r,t,a){dge(r,t,{name:"annotations",handleItemDefaults:yge,fullLayout:a.fullLayout})};function yge(e,r,t,a){function n(l,s){return aT.coerce(e,r,mge,l,s)}function i(l){var s=l+"axis",f={_fullLayout:{}};return f._fullLayout[s]=t[s],hge.coercePosition(r,f,n,l,l,.5)}var o=n("visible");o&&(pge(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),aT.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),aT.noneOrAll(e,r,["ax","ay"])))}});var pG=P((kFe,dG)=>{"use strict";var vG=Ur(),hG=mn();dG.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function nT(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function bge(e,r){var t=nT(e.projection,nT(e.view,nT(e.model,[r[0],r[1],r[2],1])));return t}mG.exports=bge});var bG=P((LFe,gG)=>{"use strict";var xge=Ob().drawRaw,_ge=yG(),wge=["x","y","z"];gG.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=_ge(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),xge(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var wG=P((DFe,_G)=>{"use strict";var Age=Bt(),xG=Ur();_G.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Ib()}}},layoutAttributes:Ib(),handleDefaults:cG(),includeBasePlot:Tge,convert:pG(),draw:bG()};function Tge(e,r){var t=Age.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var AG=Gd(),TG=zi(),MG=Qc().line,Mge=kc().dash,Hs=zn().extendFlat,Sge=$a().templatedArray,FFe=Bm(),Kd=ks(),Ege=y0().shapeTexttemplateAttrs,kge=Vg();SG.exports=Sge("shape",{visible:Hs({},Kd.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Hs({},Kd.legend,{editType:"calc+arraydraw"}),legendgroup:Hs({},Kd.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Hs({},Kd.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:TG({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Hs({},Kd.legendrank,{editType:"calc+arraydraw"}),legendwidth:Hs({},Kd.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Hs({},AG.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Hs({},AG.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Hs({},MG.color,{editType:"arraydraw"}),width:Hs({},MG.width,{editType:"calc+arraydraw"}),dash:Hs({},Mge,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Ege({},{keys:Object.keys(kge)}),font:TG({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var CG=P((qFe,kG)=>{"use strict";var fy=Ur(),ep=mn(),Cge=gl(),Lge=iT(),EG=Jc();kG.exports=function(r,t){Cge(r,t,{name:"shapes",handleItemDefaults:Fge})};function Dge(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Fge(e,r,t){function a(J,oe){return fy.coerce(e,r,Lge,J,oe)}r._isShape=!0;var n=a("visible");if(n){var i=a("showlegend");i&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),fy.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var o=a("path"),l=o?"path":"rect",s=a("type",l),f=s!=="path";f&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var u=a("line.width");u&&(a("line.color"),a("line.dash"));for(var c=a("xsizemode"),v=a("ysizemode"),d=["x","y"],p=0;p<2;p++){var g=d[p],m=g+"anchor",b=g==="x"?c:v,A={_fullLayout:t},_,x,T,E=ep.coerceRef(e,r,A,g,void 0,"paper"),S=ep.getRefType(E);if(S==="range"?(_=ep.getFromId(A,E),_._shapeIndices.push(r._index),T=EG.rangeToShapePosition(_),x=EG.shapePositionToRange(_),(_.type==="category"||_.type==="multicategory")&&(a(g+"0shift"),a(g+"1shift"))):x=T=fy.identity,f){var k=.25,F=.75,O=g+"0",I=g+"1",R=e[O],H=e[I];e[O]=x(e[O],!0),e[I]=x(e[I],!0),b==="pixel"?(a(O,0),a(I,10)):(ep.coercePosition(r,A,a,E,O,k),ep.coercePosition(r,A,a,E,I,F)),r[O]=T(r[O]),r[I]=T(r[I]),e[O]=R,e[I]=H}if(b==="pixel"){var X=e[m];e[m]=x(e[m],!0),ep.coercePosition(r,A,a,E,m,.25),r[m]=T(r[m]),e[m]=X}}f&&fy.noneOrAll(e,r,["x0","x1","y0","y1"]);var le=s==="line",ae,$;if(f&&(ae=a("label.texttemplate")),ae||($=a("label.text")),$||ae){a("label.textangle");var Z=a("label.textposition",le?"middle":"middle center");a("label.xanchor"),a("label.yanchor",Dge(le,Z)),a("label.padding"),fy.coerceFont(a,"label.font",t.font)}}}});var FG=P((PFe,DG)=>{"use strict";var Rge=va(),LG=Ur();function qge(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}DG.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),LG.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",Rge.contrast(i)),a("newshape.line.dash")}var o=r.dragmode==="drawline",l=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(l||s){a("newshape.label.textangle");var f=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",qge(o,f)),a("newshape.label.padding"),LG.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var OG=P((NFe,NG)=>{"use strict";var oT=Ur(),rp=mn(),tp=bm(),qG=Jc();NG.exports=function(r){var t=r._fullLayout,a=oT.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n0?f+o:o;return{ppad:o,ppadplus:l?c:v,ppadminus:l?v:c}}else return{ppad:o}}function RG(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,f=n?e.r2c:e.d2c,u=r[a+"sizemode"]==="scaled";if(u?(i=r[a+"0"],o=r[a+"1"],n&&(l=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],o=r[a+"anchor"]),i!==void 0)return[f(i)+l,f(o)+s];if(r.path){var c=1/0,v=-1/0,d=r.path.match(tp.segmentRE),p,g,m,b,A;for(e.type==="date"&&(f=qG.decodeDate(f)),p=0;pv&&(v=A)));if(v>=c)return[c,v]}}});var zG=P((OFe,BG)=>{"use strict";var IG=C3();BG.exports={moduleType:"component",name:"shapes",layoutAttributes:iT(),supplyLayoutDefaults:CG(),supplyDrawNewShapeDefaults:FG(),includeBasePlot:Gm()("shapes"),calcAutorange:OG(),draw:IG.draw,drawOne:IG.drawOne}});var lT=P((BFe,UG)=>{"use strict";var GG=Ri(),Oge=$a().templatedArray,IFe=Bm();UG.exports=Oge("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",GG.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",GG.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var VG=P((zFe,HG)=>{"use strict";var Ige=Ur(),sT=mn(),Bge=gl(),zge=lT(),Gge="images";HG.exports=function(r,t){var a={name:Gge,handleItemDefaults:Uge};Bge(r,t,a)};function Uge(e,r,t){function a(v,d){return Ige.coerce(e,r,zge,v,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var f=l[s],u=sT.coerceRef(e,r,o,f,"paper",void 0);if(u!=="paper"){var c=sT.getFromId(o,u);c._imgIndices.push(r._index)}sT.coercePosition(r,o,a,u,f,0)}return r}});var XG=P((GFe,jG)=>{"use strict";var YG=ha(),Hge=Wa(),ap=mn(),WG=Sn(),Vge=Ic();jG.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var ZG=ya(),Yge=qg();JG.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),f,u,c=0;c{"use strict";QG.exports={moduleType:"component",name:"images",layoutAttributes:lT(),supplyLayoutDefaults:VG(),includeBasePlot:Gm()("images"),draw:XG(),convertCoords:$G()}});var Bb=P((VFe,eU)=>{"use strict";eU.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var fT=P((YFe,tU)=>{"use strict";var Wge=zi(),jge=wf(),Xge=zn().extendFlat,Zge=Cs().overrideAll,Jge=Yg(),rU=$a().templatedArray,$ge=rU("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});tU.exports=Zge(rU("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:$ge,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Xge(Jge({editType:"arraydraw"}),{}),font:Wge({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:jge.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var oU=P((WFe,iU)=>{"use strict";var zb=Ur(),aU=gl(),nU=fT(),Qge=Bb(),Kge=Qge.name,e2e=nU.buttons;iU.exports=function(r,t){var a={name:Kge,handleItemDefaults:r2e};aU(r,t,a)};function r2e(e,r,t){function a(o,l){return zb.coerce(e,r,nU,o,l)}var n=aU(e,r,{name:"buttons",handleItemDefaults:t2e}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),zb.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),zb.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function t2e(e,r){function t(n,i){return zb.coerce(e,r,e2e,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var fU=P((jFe,sU)=>{"use strict";sU.exports=En;var Vs=ha(),lU=va(),np=Wa(),Gb=Ur();function En(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}En.barWidth=2;En.barLength=20;En.barRadius=2;En.barPad=1;En.barColor="#808BA4";En.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,o=n.height;this.position=r;var l=this.position.l,s=this.position.w,f=this.position.t,u=this.position.h,c=this.position.direction,v=c==="down",d=c==="left",p=c==="right",g=c==="up",m=s,b=u,A,_,x,T;!v&&!d&&!p&&!g&&(this.position.direction="down",v=!0);var E=v||g;E?(A=l,_=A+m,v?(x=f,T=Math.min(x+b,o),b=T-x):(T=f+b,x=Math.max(T-b,0),b=T-x)):(x=f,T=x+b,d?(_=l+m,A=Math.max(_-m,0),m=_-A):(A=l,_=Math.min(A+m,i),m=_-A)),this._box={l:A,t:x,w:m,h:b};var S=s>m,k=En.barLength+2*En.barPad,F=En.barWidth+2*En.barPad,O=l,I=f+u;I+F>o&&(I=o-F);var R=this.container.selectAll("rect.scrollbar-horizontal").data(S?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(lU.fill,En.barColor),S?(this.hbar=R.attr({rx:En.barRadius,ry:En.barRadius,x:O,y:I,width:k,height:F}),this._hbarXMin=O+k/2,this._hbarTranslateMax=m-k):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var H=u>b,X=En.barWidth+2*En.barPad,le=En.barLength+2*En.barPad,ae=l+s,$=f;ae+X>i&&(ae=i-X);var Z=this.container.selectAll("rect.scrollbar-vertical").data(H?[0]:[]);Z.exit().on(".drag",null).remove(),Z.enter().append("rect").classed("scrollbar-vertical",!0).call(lU.fill,En.barColor),H?(this.vbar=Z.attr({rx:En.barRadius,ry:En.barRadius,x:ae,y:$,width:X,height:le}),this._vbarYMin=$+le/2,this._vbarTranslateMax=b-le):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var J=this.id,oe=A-.5,ce=H?_+X+.5:_+.5,De=x-.5,Oe=S?T+F+.5:T+.5,Ee=n._topdefs.selectAll("#"+J).data(S||H?[0]:[]);if(Ee.exit().remove(),Ee.enter().append("clipPath").attr("id",J).append("rect"),S||H?(this._clipRect=Ee.select("rect").attr({x:Math.floor(oe),y:Math.floor(De),width:Math.ceil(ce)-Math.floor(oe),height:Math.ceil(Oe)-Math.floor(De)}),this.container.call(np.setClipUrl,J,this.gd),this.bg.attr({x:l,y:f,width:s,height:u})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(np.setClipUrl,null),delete this._clipRect),S||H){var Je=Vs.behavior.drag().on("dragstart",function(){Vs.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Je);var Ae=Vs.behavior.drag().on("dragstart",function(){Vs.event.sourceEvent.preventDefault(),Vs.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));S&&this.hbar.on(".drag",null).call(Ae),H&&this.vbar.on(".drag",null).call(Ae)}this.setTranslate(t,a)};En.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(np.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};En.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=Vs.event.dx),this.vbar&&(t-=Vs.event.dy),this.setTranslate(r,t)};En.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Vs.event.deltaY),this.vbar&&(t+=Vs.event.deltaY),this.setTranslate(r,t)};En.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Gb.constrain(Vs.event.x,a,n),o=(i-a)/(n-a),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,f=s+this._vbarTranslateMax,u=Gb.constrain(Vs.event.y,s,f),c=(u-s)/(f-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};En.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Gb.constrain(r||0,0,a),t=Gb.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(np.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(np.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(np.setTranslate,r,t+o*this._vbarTranslateMax)}}});var bU=P((XFe,gU)=>{"use strict";var ip=ha(),uy=bi(),cy=va(),op=Wa(),Ml=Ur(),Ub=po(),a2e=$a().arrayEditor,cU=ho().LINE_SPACING,Gt=Bb(),n2e=fU();gU.exports=function(r){var t=r._fullLayout,a=Ml.filterVisible(t[Gt.name]);function n(v){uy.autoMargin(r,mU(v))}var i=t._menulayer.selectAll("g."+Gt.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(Gt.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){ip.select(this).selectAll("g."+Gt.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+Gt.headerGroupClassName).data(a,i2e);o.enter().append("g").classed(Gt.headerGroupClassName,!0);for(var l=Ml.ensureSingle(i,"g",Gt.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s{"use strict";var v2e=Bb();xU.exports={moduleType:"component",name:v2e.name,layoutAttributes:fT(),supplyLayoutDefaults:oU(),draw:bU()}});var hy=P((JFe,wU)=>{"use strict";wU.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var hT=P(($Fe,MU)=>{"use strict";var AU=zi(),h2e=Yg(),d2e=zn().extendDeepAll,p2e=Cs().overrideAll,m2e=U1(),TU=$a().templatedArray,eh=hy(),y2e=TU("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});MU.exports=p2e(TU("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:y2e,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:d2e(h2e({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:m2e.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:AU({})},font:AU({}),activebgcolor:{valType:"color",dflt:eh.gripBgActiveColor},bgcolor:{valType:"color",dflt:eh.railBgColor},bordercolor:{valType:"color",dflt:eh.railBorderColor},borderwidth:{valType:"number",min:0,dflt:eh.railBorderWidth},ticklen:{valType:"number",min:0,dflt:eh.tickLength},tickcolor:{valType:"color",dflt:eh.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:eh.minorTickLength}}),"arraydraw","from-root")});var CU=P((QFe,kU)=>{"use strict";var lp=Ur(),SU=gl(),EU=hT(),g2e=hy(),b2e=g2e.name,x2e=EU.steps;kU.exports=function(r,t){SU(r,t,{name:b2e,handleItemDefaults:_2e})};function _2e(e,r,t){function a(c,v){return lp.coerce(e,r,EU,c,v)}for(var n=SU(e,r,{name:"steps",handleItemDefaults:w2e}),i=0,o=0;o{"use strict";var Ys=ha(),Hb=bi(),iv=va(),Ws=Wa(),Sl=Ur(),A2e=Sl.strTranslate,dy=po(),T2e=$a().arrayEditor,ea=hy(),mT=ho(),FU=mT.LINE_SPACING,dT=mT.FROM_TL,pT=mT.FROM_BR;IU.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=M2e(a,r),i=a._infolayer.selectAll("g."+ea.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(ea.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(u){u._commandObserver&&(u._commandObserver.remove(),delete u._commandObserver),Hb.autoMargin(r,RU(u))}if(i.exit().each(function(){Ys.select(this).selectAll("g."+ea.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+ea.groupClassName).data(n,S2e);l.enter().append("g").classed(ea.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",A2e(o-ea.gripWidth*.5,r._dims.currentValueTotalHeight))}}function yT(e,r){var t=e._dims;return t.inputAreaStart+ea.stepInset+(t.inputAreaLength-2*ea.stepInset)*Math.min(1,Math.max(0,r))}function DU(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-ea.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*ea.stepInset-2*t.inputAreaStart)))}function R2e(e,r,t){var a=t._dims,n=Sl.ensureSingle(e,"rect",ea.railTouchRectClass,function(i){i.call(NU,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,ea.tickOffset+t.ticklen+a.labelHeight)}).call(iv.fill,t.bgcolor).attr("opacity",0),Ws.setTranslate(n,0,a.currentValueTotalHeight)}function q2e(e,r){var t=r._dims,a=t.inputAreaLength-ea.railInset*2,n=Sl.ensureSingle(e,"rect",ea.railRectClass);n.attr({width:a,height:ea.railWidth,rx:ea.railRadius,ry:ea.railRadius,"shape-rendering":"crispEdges"}).call(iv.stroke,r.bordercolor).call(iv.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Ws.setTranslate(n,ea.railInset,(t.inputAreaWidth-ea.railWidth)*.5+t.currentValueTotalHeight)}});var GU=P((eRe,zU)=>{"use strict";var P2e=hy();zU.exports={moduleType:"component",name:P2e.name,layoutAttributes:hT(),supplyLayoutDefaults:CU(),draw:BU()}});var Yb=P((rRe,HU)=>{"use strict";var UU=wf();HU.exports={bgcolor:{valType:"color",dflt:UU.background,editType:"plot"},bordercolor:{valType:"color",dflt:UU.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var gT=P((tRe,VU)=>{"use strict";VU.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Wb=P((aRe,YU)=>{"use strict";YU.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var XU=P(Xb=>{"use strict";var N2e=Sn(),O2e=po(),WU=Wb(),I2e=ho().LINE_SPACING,jb=WU.name;function jU(e){var r=e&&e[jb];return r&&r.visible}Xb.isVisible=jU;Xb.makeData=function(e){for(var r=N2e.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Zb=Ur(),ZU=$a(),JU=Sn(),B2e=Yb(),z2e=gT();$U.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Zb.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=ZU.newContainer(i,"rangeslider");function s(T,E){return Zb.coerce(o,l,B2e,T,E)}var f,u;function c(T,E){return Zb.coerce(f,u,z2e,T,E)}var v=s("visible");if(v){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var p=d.cartesian.filter(function(T){return T.substr(0,T.indexOf("y"))===JU.name2id(a)}).map(function(T){return T.substr(T.indexOf("y"),T.length)}),g=Zb.simpleMap(p,JU.id2name),m=0;m{"use strict";var G2e=Sn().list,U2e=Ad().getAutoRange,H2e=Wb();KU.exports=function(r){for(var t=G2e(r,"x",!0),a=0;a{"use strict";var Jb=ha(),V2e=Bt(),Y2e=bi(),In=Ur(),$b=In.strTranslate,tH=Wa(),ov=va(),W2e=lm(),j2e=oy(),bT=Sn(),X2e=Ps(),Z2e=Yc(),sa=Wb();aH.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=Z.max)ae=I[$+1];else if(le=Z.pmax)ae=I[$+1];else if(le0?e.touches[0].clientX:0}function J2e(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+sa.slideBoxClassName).node(),i=e.select("rect."+sa.grabAreaMinClassName).node(),o=e.select("rect."+sa.grabAreaMaxClassName).node();function l(){var s=Jb.event,f=s.target,u=rH(s),c=u-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=X2e.coverSlip();this.addEventListener("touchmove",g),this.addEventListener("touchend",m),p.addEventListener("mousemove",g),p.addEventListener("mouseup",m);function g(b){var A=rH(b),_=+A-u,x,T,E;switch(f){case n:if(E="ew-resize",v+_>t._length||d+_<0)return;x=v+_,T=d+_;break;case i:if(E="col-resize",v+_>t._length)return;x=v+_,T=d;break;case o:if(E="col-resize",d+_<0)return;x=v,T=d+_;break;default:E="ew-resize",x=c,T=c+_;break}if(T{"use strict";var o3e=Ur(),l3e=Yb(),s3e=gT(),xT=XU();iH.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:o3e.extendFlat({},l3e,{yaxis:s3e})}}},layoutAttributes:Yb(),handleDefaults:QU(),calcAutorange:eH(),draw:nH(),isVisible:xT.isVisible,makeData:xT.makeData,autoMarginOpts:xT.autoMarginOpts}});var Qb=P((fRe,sH)=>{"use strict";var f3e=zi(),lH=wf(),u3e=$a().templatedArray,c3e=u3e("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});sH.exports={visible:{valType:"boolean",editType:"plot"},buttons:c3e,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:f3e({editType:"plot"}),bgcolor:{valType:"color",dflt:lH.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:lH.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var _T=P((uRe,fH)=>{"use strict";fH.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var vH=P((cRe,cH)=>{"use strict";var Kb=Ur(),v3e=va(),h3e=$a(),d3e=gl(),uH=Qb(),wT=_T();cH.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=h3e.newContainer(t,"rangeselector");function s(d,p){return Kb.coerce(o,l,uH,d,p)}var f=d3e(o,l,{name:"buttons",handleItemDefaults:p3e,calendar:i}),u=s("visible",f.length>0);if(u){var c=m3e(t,a,n);s("x",c[0]),s("y",c[1]),Kb.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Kb.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",v3e.contrast(v,wT.lightAmount,wT.darkAmount)),s("bordercolor"),s("borderwidth")}};function p3e(e,r,t,a){var n=a.calendar;function i(s,f){return Kb.coerce(e,r,uH.buttons,s,f)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(n&&n!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function m3e(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i{"use strict";var y3e=y5(),g3e=Ur().titleCase;hH.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=b3e(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function b3e(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=y3e["utc"+g3e(n)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(a,-o));break;case"todate":var s=i.offset(a,-o);l=e.l2r(+i.ceil(s));break}var f=t[1];return[l,f]}});var wH=P((hRe,_H)=>{"use strict";var rx=ha(),x3e=Bt(),_3e=bi(),pH=va(),xH=Wa(),Ou=Ur(),mH=Ou.strTranslate,ex=po(),w3e=Sn(),MT=ho(),yH=MT.LINE_SPACING,gH=MT.FROM_TL,bH=MT.FROM_BR,TT=_T(),A3e=dH();_H.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(T3e(r),M3e);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=rx.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(Ou.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(f){var u=rx.select(this),c=A3e(o,f);f._isActive=S3e(o,f,c),u.call(AT,l,f),u.call(k3e,l,f,r),u.on("click",function(){r._dragged||x3e.call("_guiRelayout",r,c)}),u.on("mouseover",function(){f._isHovered=!0,u.call(AT,l,f)}),u.on("mouseout",function(){f._isHovered=!1,u.call(AT,l,f)})}),L3e(r,s,l,o._name,i)})};function T3e(e){for(var r=w3e.list(e,"x",!0),t=[],a=0;a{"use strict";AH.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Qb()}}},layoutAttributes:Qb(),handleDefaults:vH(),draw:wH()}});var tx=P(ST=>{"use strict";var MH=zn().extendFlat;ST.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace ":"subplot ",i=r.description?" "+r.description:"",o={x:MH({},t,{}),y:MH({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};ST.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l{"use strict";var D3e=Ur(),F3e=Qh().counter,R3e=tx().attributes,SH=Ri().idRegex,q3e=$a(),ET={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[F3e("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[SH.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[SH.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:R3e({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function ax(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function P3e(e,r){var t=e.grid||{},a=ax(r,t,"x"),n=ax(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(a),l=Array.isArray(n),s=o&&a!==t.xaxes&&l&&n!==t.yaxes,f,u;i?(f=t.subplots.length,u=t.subplots[0].length):(l&&(f=n.length),o&&(u=a.length));var c=q3e.newContainer(r,"grid");function v(E,S){return D3e.coerce(t,c,ET,E,S)}var d=v("rows",f),p=v("columns",u);if(!(d*p>1)){delete r.grid;return}if(!i&&!o&&!l){var g=v("pattern")==="independent";g&&(i=!0)}c._hasSubplotGrid=i;var m=v("roworder"),b=m==="top to bottom",A=i?.2:.1,_=i?.3:.1,x,T;s&&r._splomGridDflt&&(x=r._splomGridDflt.xside,T=r._splomGridDflt.yside),c._domains={x:EH("x",v,A,x,p),y:EH("y",v,_,T,d,b)}}function EH(e,r,t,a,n,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",a);for(var s=new Array(n),f=l[0],u=(l[1]-f)/(n-o),c=u*(1-o),v=0;v{"use strict";LH.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var RH=P((gRe,FH)=>{"use strict";var DH=ya(),O3e=Bt(),I3e=Ur(),B3e=$a(),z3e=CT();FH.exports=function(e,r,t,a){var n="error_"+a.axis,i=B3e.newContainer(r,n),o=e[n]||{};function l(p,g){return I3e.coerce(o,i,z3e,p,g)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",f=l("visible",s);if(f!==!1){var u=l("type","array"in o?"data":"percent"),c=!0;u!=="sqrt"&&(c=l("symmetric",!((u==="data"?"arrayminus":"valueminus")in o))),u==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(u==="percent"||u==="constant")&&(l("value"),c||l("valueminus"));var v="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(v,!(o.color||DH(o.thickness)||DH(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",O3e.traceIs(r,"gl3d")?0:4))}}});var LT=P((bRe,PH)=>{"use strict";PH.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(f,u){var c=+n[u];return[c,c]};var i=r.arrayminus||[];return function(f,u){var c=+n[u],v=+i[u];return!isNaN(c)||!isNaN(v)?[v||0,c||0]:[NaN,NaN]}}else{var o=qH(t,r.value),l=qH(t,r.valueminus);return a||r.valueminus===void 0?function(f){var u=o(f);return[u,u]}:function(f){return[l(f),o(f)]}}};function qH(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var IH=P((xRe,OH)=>{"use strict";var DT=ya(),G3e=Bt(),FT=mn(),U3e=Ur(),H3e=LT();OH.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var BH=ha(),lv=ya(),V3e=Wa(),Y3e=qi();zH.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,s=n&&n.duration>0,f=r._context.staticPlot;t.each(function(u){var c=u[0].trace,v=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(A){return A.id});var g=Y3e.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(u=[]);var m=BH.select(this).selectAll("g.errorbar").data(u,p);if(m.exit().remove(),!!u.length){v.visible||m.selectAll("path.xerror").remove(),d.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var b=m.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),V3e.setClipUrl(m,a.layerClipId,r),m.each(function(A){var _=BH.select(this),x=W3e(A,o,l);if(!(g&&!A.vis)){var T,E=_.select("path.yerror");if(d.visible&&lv(x.x)&&lv(x.yh)&&lv(x.ys)){var S=d.width;T="M"+(x.x-S)+","+x.yh+"h"+2*S+"m-"+S+",0V"+x.ys,x.noYS||(T+="m-"+S+",0h"+2*S),i=!E.size(),i?E=_.append("path").style("vector-effect",f?"none":"non-scaling-stroke").classed("yerror",!0):s&&(E=E.transition().duration(n.duration).ease(n.easing)),E.attr("d",T)}else E.remove();var k=_.select("path.xerror");if(v.visible&&lv(x.y)&&lv(x.xh)&&lv(x.xs)){var F=(v.copy_ystyle?d:v).width;T="M"+x.xh+","+(x.y-F)+"v"+2*F+"m0,-"+F+"H"+x.xs,x.noXS||(T+="m0,-"+F+"v"+2*F),i=!k.size(),i?k=_.append("path").style("vector-effect",f?"none":"non-scaling-stroke").classed("xerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",T)}else k.remove()}})}})};function W3e(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),lv(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),lv(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var VH=P((wRe,HH)=>{"use strict";var j3e=ha(),UH=va();HH.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=j3e.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(UH.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(UH.stroke,i.color)})}});var jH=P((ARe,WH)=>{"use strict";var py=Ur(),YH=Cs().overrideAll,my=CT(),rh={error_x:py.extendFlat({},my),error_y:py.extendFlat({},my)};delete rh.error_x.copy_zstyle;delete rh.error_y.copy_zstyle;delete rh.error_y.copy_ystyle;var yy={error_x:py.extendFlat({},my),error_y:py.extendFlat({},my),error_z:py.extendFlat({},my)};delete yy.error_x.copy_ystyle;delete yy.error_y.copy_ystyle;delete yy.error_z.copy_ystyle;delete yy.error_z.copy_zstyle;WH.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:rh,bar:rh,histogram:rh,scatter3d:YH(yy,"calc","nested"),scattergl:YH(rh,"calc","nested")}},supplyDefaults:RH(),calc:IH(),makeComputeError:LT(),plot:GH(),style:VH(),hoverInfo:X3e};function X3e(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var ZH=P((TRe,XH)=>{"use strict";XH.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var tV=P((MRe,rV)=>{"use strict";var sv=ha(),RT=Es(),ix=bi(),JH=Bt(),Iu=mn(),nx=Ps(),rs=Ur(),Xs=rs.strTranslate,eV=zn().extendFlat,qT=Yc(),js=Wa(),PT=va(),Z3e=lm(),J3e=po(),$3e=Rs().flipScale,Q3e=H6(),K3e=V6(),ebe=Ul(),NT=ho(),$H=NT.LINE_SPACING,QH=NT.FROM_TL,KH=NT.FROM_BR,_n=ZH().cn;function rbe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+_n.colorbar).data(tbe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(_n.colorbar,!0),t.each(function(a){var n=sv.select(this);rs.ensureSingle(n,"rect",_n.cbbg),rs.ensureSingle(n,"g",_n.cbfills),rs.ensureSingle(n,"g",_n.cblines),rs.ensureSingle(n,"g",_n.cbaxis,function(o){o.classed(_n.crisp,!0)}),rs.ensureSingle(n,"g",_n.cbtitleunshift,function(o){o.append("g").classed(_n.cbtitle,!0)}),rs.ensureSingle(n,"rect",_n.cboutline);var i=abe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&nbe(n,a,e)}),t.exit().each(function(a){ix.autoMargin(e,a._id)}).remove(),t.order()}function tbe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(_){return eV(_,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function f(){typeof l.calc=="function"?l.calc(e,o,n):(n._fillgradient=i.reversescale?$3e(i.colorscale):i.colorscale,n._zrange=[i[l.min],i[l.max]])}for(var u=0;u1){var _e=Math.pow(10,Math.floor(Math.log(ee)/Math.LN10));Ve*=_e*rs.roundUp(ee/_e,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(Ge.tick0=0)}Ge.dtick=Ve}Ge.domain=a?[Ae+p/x.h,Ae+J-p/x.h]:[Ae+d/x.w,Ae+J-d/x.w],Ge.setScale(),e.attr("transform",Xs(Math.round(x.l),Math.round(x.t)));var re=e.select("."+_n.cbtitleunshift).attr("transform",Xs(-Math.round(x.l),-Math.round(x.t))),Ze=Ge.ticklabelposition,vr=Ge.title.font.size,rr=e.select("."+_n.cbaxis),Cr,Lr=0,_r=0;function Pr(Vr,Pe){var sr={propContainer:Ge,propName:r._propPrefix+"title",traceIndex:r._traceIndex,_meta:r._meta,placeholder:_._dfltTitle.colorbar,containerGroup:e.select("."+_n.cbtitle)},lt=Vr.charAt(0)==="h"?Vr.substr(1):"h"+Vr;e.selectAll("."+lt+",."+lt+"-math-group").remove(),Z3e.draw(t,Vr,eV(sr,Pe||{}))}function rt(){if(a&&He||!a&&!He){var Vr,Pe;k==="top"&&(Vr=d+x.l+oe*g,Pe=p+x.t+ce*(1-Ae-J)+3+vr*.75),k==="bottom"&&(Vr=d+x.l+oe*g,Pe=p+x.t+ce*(1-Ae)-3-vr*.25),k==="right"&&(Pe=p+x.t+ce*m+3+vr*.75,Vr=d+x.l+oe*Ae),Pr(Ge._id+"title",{attributes:{x:Vr,y:Pe,"text-anchor":a?"start":"middle"}})}}function Jr(){if(a&&!He||!a&&He){var Vr=Ge.position||0,Pe=Ge._offset+Ge._length/2,sr,lt;if(k==="right")lt=Pe,sr=x.l+oe*Vr+10+vr*(Ge.showticklabels?1:.5);else if(sr=Pe,k==="bottom"&&(lt=x.t+ce*Vr+10+(Ze.indexOf("inside")===-1?Ge.tickfont.size:0)+(Ge.ticks!=="intside"&&r.ticklen||0)),k==="top"){var Et=S.text.split("
").length;lt=x.t+ce*Vr+10-ae-$H*vr*Et}Pr((a?"h":"v")+Ge._id+"title",{avoid:{selection:sv.select(t).selectAll("g."+Ge._id+"tick"),side:k,offsetTop:a?0:x.t,offsetLeft:a?x.l:0,maxShift:a?_.width:_.height},attributes:{x:sr,y:lt,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function wr(){if(!a&&!He||a&&He){var Vr=e.select("."+_n.cbtitle),Pe=Vr.select("text"),sr=[-s/2,s/2],lt=Vr.select(".h"+Ge._id+"title-math-group").node(),Et=15.6;Pe.node()&&(Et=parseInt(Pe.node().style.fontSize,10)*$H);var wt;if(lt?(wt=js.bBox(lt),_r=wt.width,Lr=wt.height,Lr>Et&&(sr[1]-=(Lr-Et)/2)):Pe.node()&&!Pe.classed(_n.jsPlaceholder)&&(wt=js.bBox(Pe.node()),_r=wt.width,Lr=wt.height),a){if(Lr){if(Lr+=5,k==="top")Ge.domain[1]-=Lr/x.h,sr[1]*=-1;else{Ge.domain[0]+=Lr/x.h;var Fe=J3e.lineCount(Pe);sr[1]+=(1-Fe)*Et}Vr.attr("transform",Xs(sr[0],sr[1])),Ge.setScale()}}else _r&&(k==="right"&&(Ge.domain[0]+=(_r+vr/2)/x.w),Vr.attr("transform",Xs(sr[0],sr[1])),Ge.setScale())}e.selectAll("."+_n.cbfills+",."+_n.cblines).attr("transform",a?Xs(0,Math.round(x.h*(1-Ge.domain[1]))):Xs(Math.round(x.w*Ge.domain[0]),0)),rr.attr("transform",a?Xs(0,Math.round(-x.t)):Xs(Math.round(-x.l),0));var hr=e.select("."+_n.cbfills).selectAll("rect."+_n.cbfill).attr("style","").data(X);hr.enter().append("rect").classed(_n.cbfill,!0).attr("style",""),hr.exit().remove();var Or=F.map(Ge.c2p).map(Math.round).sort(function(ot,et){return ot-et});hr.each(function(ot,et){var pr=[et===0?F[0]:(X[et]+X[et-1])/2,et===X.length-1?F[1]:(X[et]+X[et+1])/2].map(Ge.c2p).map(Math.round);a&&(pr[1]=rs.constrain(pr[1]+(pr[1]>pr[0])?1:-1,Or[0],Or[1]));var Se=sv.select(this).attr(a?"x":"y",De).attr(a?"y":"x",sv.min(pr)).attr(a?"width":"height",Math.max(ae,2)).attr(a?"height":"width",Math.max(sv.max(pr)-sv.min(pr),2));if(r._fillgradient)js.gradient(Se,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var Ie=I(ot).replace("e-","");Se.attr("fill",RT(Ie).toHexString())}});var at=e.select("."+_n.cblines).selectAll("path."+_n.cbline).data(E.color&&E.width?le:[]);at.enter().append("path").classed(_n.cbline,!0),at.exit().remove(),at.each(function(ot){var et=De,pr=Math.round(Ge.c2p(ot))+E.width/2%1;sv.select(this).attr("d","M"+(a?et+","+pr:pr+","+et)+(a?"h":"v")+ae).call(js.lineGroupStyle,E.width,O(ot),E.dash)}),rr.selectAll("g."+Ge._id+"tick,path").remove();var Yr=De+ae+(s||0)/2-(r.ticks==="outside"?1:0),nt=Iu.calcTicks(Ge),vt=Iu.getTickSigns(Ge)[2];return Iu.drawTicks(t,Ge,{vals:Ge.ticks==="inside"?Iu.clipEnds(Ge,nt):nt,layer:rr,path:Iu.makeTickPath(Ge,Yr,vt),transFn:Iu.makeTransTickFn(Ge)}),Iu.drawLabels(t,Ge,{vals:nt,layer:rr,transFn:Iu.makeTransTickLabelFn(Ge),labelFns:Iu.makeLabelFns(Ge,Yr)})}function Hr(){var Vr,Pe=ae+s/2;Ze.indexOf("inside")===-1&&(Vr=js.bBox(rr.node()),Pe+=a?Vr.width:Vr.height),Cr=re.select("text");var sr=0,lt=a&&k==="top",Et=!a&&k==="right",wt=0;if(Cr.node()&&!Cr.classed(_n.jsPlaceholder)){var Fe,hr=re.select(".h"+Ge._id+"title-math-group").node();hr&&(a&&He||!a&&!He)?(Vr=js.bBox(hr),sr=Vr.width,Fe=Vr.height):(Vr=js.bBox(re.node()),sr=Vr.right-x.l-(a?De:or),Fe=Vr.bottom-x.t-(a?or:De),!a&&k==="top"&&(Pe+=Vr.height,wt=Vr.height)),Et&&(Cr.attr("transform",Xs(sr/2+vr/2,0)),sr*=2),Pe=Math.max(Pe,a?sr:Fe)}var Or=(a?d:p)*2+Pe+f+s/2,at=0;!a&&S.text&&v==="bottom"&&m<=0&&(at=Or/2,Or+=at,wt+=at),_._hColorbarMoveTitle=at,_._hColorbarMoveCBTitle=wt;var Yr=f+s,nt=(a?De:or)-Yr/2-(a?d:0),vt=(a?or:De)-(a?Z:p+wt-at);e.select("."+_n.cbbg).attr("x",nt).attr("y",vt).attr(a?"width":"height",Math.max(Or-at,2)).attr(a?"height":"width",Math.max(Z+Yr,2)).call(PT.fill,u).call(PT.stroke,r.bordercolor).style("stroke-width",f);var ot=Et?Math.max(sr-10,0):0;e.selectAll("."+_n.cboutline).attr("x",(a?De:or+d)+ot).attr("y",(a?or+p-Z:De)+(lt?Lr:0)).attr(a?"width":"height",Math.max(ae,2)).attr(a?"height":"width",Math.max(Z-(a?2*p+Lr:2*d+ot),2)).call(PT.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var et=a?Oe*Or:0,pr=a?0:(1-Ee)*Or-wt;if(et=A?x.l-et:-et,pr=b?x.t-pr:-pr,e.attr("transform",Xs(et,pr)),!a&&(f||RT(u).getAlpha()&&!RT.equals(_.paper_bgcolor,u))){var Se=rr.selectAll("text"),Ie=Se[0].length,yr=e.select("."+_n.cbbg).node(),cr=js.bBox(yr),xt=js.getTranslate(e),At=2;Se.each(function(jn,vn){var wn=0,Mi=Ie-1;if(vn===wn||vn===Mi){var Pt=js.bBox(this),Ca=js.getTranslate(this),ia;if(vn===Mi){var Va=Pt.right+Ca.x,hn=cr.right+xt.x+or-f-At+g;ia=hn-Va,ia>0&&(ia=0)}else if(vn===wn){var La=Pt.left+Ca.x,Ba=cr.left+xt.x+or+f+At;ia=Ba-La,ia<0&&(ia=0)}ia&&(Ie<3?this.setAttribute("transform","translate("+ia+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var gt={},Nt=QH[c],ta=KH[c],ka=QH[v],Ta=KH[v],Rn=Or-ae;a?(i==="pixels"?(gt.y=m,gt.t=Z*ka,gt.b=Z*Ta):(gt.t=gt.b=0,gt.yt=m+n*ka,gt.yb=m-n*Ta),l==="pixels"?(gt.x=g,gt.l=Or*Nt,gt.r=Or*ta):(gt.l=Rn*Nt,gt.r=Rn*ta,gt.xl=g-o*Nt,gt.xr=g+o*ta)):(i==="pixels"?(gt.x=g,gt.l=Z*Nt,gt.r=Z*ta):(gt.l=gt.r=0,gt.xl=g+n*Nt,gt.xr=g-n*ta),l==="pixels"?(gt.y=1-m,gt.t=Or*ka,gt.b=Or*Ta):(gt.t=Rn*ka,gt.b=Rn*Ta,gt.yt=m-o*ka,gt.yb=m+o*Ta));var bn=r.y<.5?"b":"t",ja=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var cn={r:_.width-nt-et,l:nt+gt.r,b:_.height-vt-pr,t:vt+gt.b};A&&b?ix.autoMargin(t,r._id,gt):A?t._fullLayout._reservedMargin[r._id][bn]=cn[bn]:b||a?t._fullLayout._reservedMargin[r._id][ja]=cn[ja]:t._fullLayout._reservedMargin[r._id][bn]=cn[bn]}return rs.syncOrAsync([ix.previousPromises,rt,wr,Jr,ix.previousPromises,Hr],t)}function nbe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;nx.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),qT(e)},moveFn:function(f,u){e.attr("transform",o+Xs(f,u)),l=nx.align((a?r._uFrac:r._vFrac)+f/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=nx.align((a?r._vFrac:1-r._uFrac)-u/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=nx.getCursor(l,s,r.xanchor,r.yanchor);qT(e,c)},doneFn:function(){if(qT(e),l!==void 0&&s!==void 0){var f={};f[r._propPrefix+"x"]=l,f[r._propPrefix+"y"]=s,r._traceIndex!==void 0?JH.call("_guiRestyle",t,f,r._traceIndex):JH.call("_guiRelayout",t,f)}}})}function ibe(e,r,t){var a=r._levels,n=[],i=[],o,l,s=a.end+a.size/100,f=a.size,u=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=a.start+l*f,!(f>0?o>=s:o<=s));l++)o>u&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";aV.exports={moduleType:"component",name:"colorbar",attributes:_2(),supplyDefaults:R4(),draw:tV().draw,hasColorbar:w4()}});var oV=P((ERe,iV)=>{"use strict";iV.exports={moduleType:"component",name:"legend",layoutAttributes:Cw(),supplyLayoutDefaults:Fw(),draw:Yw(),style:Gw()}});var sV=P((kRe,lV)=>{"use strict";lV.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var uV=P((CRe,fV)=>{"use strict";fV.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var IT=P((LRe,dV)=>{"use strict";var lbe=Bt(),hV=Ur(),OT=hV.extendFlat,cV=hV.extendDeep;function vV(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function sbe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}dV.exports=function(r,t){var a,n=r.data,i=r.layout,o=cV([],n),l=cV({},i,vV(t.tileClass)),s=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var f=Object.keys(l);for(a=0;a{"use strict";var fbe=s2().EventEmitter,ube=Bt(),cbe=Ur(),pV=Y0(),vbe=IT(),hbe=vb(),dbe=hb();function pbe(e,r){var t=new fbe,a=vbe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=pV.getDelay(n._fullLayout);setTimeout(function(){var s=hbe(n),f=document.createElement("canvas");f.id=cbe.randstr(),t=dbe({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:f,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},l)}var o=pV.getRedrawFunc(n);return ube.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}mV.exports=pbe});var xV=P((FRe,bV)=>{"use strict";var gV=Y0(),mbe={getDelay:gV.getDelay,getRedrawFunc:gV.getRedrawFunc,clone:IT(),toSVG:vb(),svgToImg:hb(),toImage:yV(),downloadImage:u6()};bV.exports=mbe});var wV=P(Bu=>{"use strict";Bu.version=Tg().version;bM();fC();var ybe=Bt(),gy=Bu.register=ybe.register,zT=FI(),_V=Object.keys(zT);for(ox=0;ox<_V.length;ox++)sp=_V[ox],sp.charAt(0)!=="_"&&(Bu[sp]=zT[sp]),gy({moduleType:"apiMethod",name:sp,fn:zT[sp]});var sp,ox;gy(Oz());gy([sG(),wG(),Ud(),zG(),KG(),_U(),GU(),oH(),TH(),kT(),jH(),gd(),nV(),oV(),Wc(),mA()]);gy([sV(),uV()]);window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(gy(window.PlotlyLocales),delete window.PlotlyLocales);Bu.Icons=d3();var lx=Wc(),BT=bi();Bu.Plots={resize:BT.resize,graphJson:BT.graphJson,sendDataToCloud:BT.sendDataToCloud};Bu.Fx={hover:lx.hover,unhover:lx.unhover,loneHover:lx.loneHover,loneUnhover:lx.loneUnhover};Bu.Snapshot=xV();Bu.PlotSchema=vd()});var TV=P((qRe,AV)=>{"use strict";AV.exports=wV()});var GT=P((PRe,SV)=>{"use strict";var gbe=Bt(),El=Ur(),bbe=B6();function xbe(e,r,t,a){var n=e.cd,i=n[0].t,o=n[0].trace,l=e.xa,s=e.ya,f=i.x,u=i.y,c=l.c2p(r),v=s.c2p(t),d=e.distance,p;if(i.tree){var g=l.p2c(c-d),m=l.p2c(c+d),b=s.p2c(v-d),A=s.p2c(v+d);a==="x"?p=i.tree.range(Math.min(g,m),Math.min(s._rl[0],s._rl[1]),Math.max(g,m),Math.max(s._rl[0],s._rl[1])):p=i.tree.range(Math.min(g,m),Math.min(b,A),Math.max(g,m),Math.max(b,A))}else p=i.ids;var _,x,T,E,S,k,F,O,I,R=d;if(a==="x"){var H=!!o.xperiodalignment,X=!!o.yperiodalignment;for(S=0;S=Math.min(le,ae)&&c<=Math.max(le,ae)?0:1/0}if(k=Math.min($,Z)&&v<=Math.max($,Z)?0:1/0}I=Math.sqrt(k*k+F*F),x=p[S]}}}else for(S=p.length-1;S>-1;S--)_=p[S],T=f[_],E=u[_],k=l.c2p(T)-c,F=s.c2p(E)-v,O=Math.sqrt(k*k+F*F),O{"use strict";var EV=20;kV.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:EV,SYMBOL_STROKE:EV/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}});var sx=P((ORe,FV)=>{"use strict";var _be=ks(),wbe=zi(),Abe=zA(),Fn=Qc(),CV=am().axisHoverFormat,LV=E0(),Tbe=Qg(),UT=zn().extendFlat,Mbe=Cs().overrideAll,Sbe=fp().DASHES,DV=Fn.line,zu=Fn.marker,Ebe=zu.line,up=FV.exports=Mbe({x:Fn.x,x0:Fn.x0,dx:Fn.dx,y:Fn.y,y0:Fn.y0,dy:Fn.dy,xperiod:Fn.xperiod,yperiod:Fn.yperiod,xperiod0:Fn.xperiod0,yperiod0:Fn.yperiod0,xperiodalignment:Fn.xperiodalignment,yperiodalignment:Fn.yperiodalignment,xhoverformat:CV("x"),yhoverformat:CV("y"),text:Fn.text,hovertext:Fn.hovertext,textposition:Fn.textposition,textfont:wbe({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:DV.color,width:DV.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:Tbe(Sbe),dflt:"solid"}},marker:UT({},LV("marker"),{symbol:zu.symbol,angle:zu.angle,size:zu.size,sizeref:zu.sizeref,sizemin:zu.sizemin,sizemode:zu.sizemode,opacity:zu.opacity,colorbar:zu.colorbar,line:UT({},LV("marker.line"),{width:Ebe.width})}),connectgaps:Fn.connectgaps,fill:UT({},Fn.fill,{dflt:"none"}),fillcolor:Abe(),selected:{marker:Fn.selected.marker,textfont:Fn.selected.textfont},unselected:{marker:Fn.unselected.marker,textfont:Fn.unselected.textfont},opacity:_be.opacity},"calc","nested");up.x.editType=up.y.editType=up.x0.editType=up.y0.editType="calc+clearAxisTypes";up.hovertemplate=Fn.hovertemplate;up.texttemplate=Fn.texttemplate});var fx=P(HT=>{"use strict";var RV=fp();HT.isOpenSymbol=function(e){return typeof e=="string"?RV.OPEN_RE.test(e):e%200>100};HT.isDotSymbol=function(e){return typeof e=="string"?RV.DOT_RE.test(e):e>200}});var NV=P((BRe,PV)=>{"use strict";var qV=Ur(),kbe=Bt(),Cbe=fx(),Lbe=sx(),Dbe=zm(),ux=qi(),Fbe=h6(),Rbe=d6(),qbe=gb(),Pbe=p6(),Nbe=y6(),Obe=m6();PV.exports=function(r,t,a,n){function i(d,p){return qV.coerce(r,t,Lbe,d,p)}var o=r.marker?Cbe.isOpenSymbol(r.marker.symbol):!1,l=ux.isBubble(r),s=Fbe(r,t,n,i);if(!s){t.visible=!1;return}Rbe(r,t,n,i),i("xhoverformat"),i("yhoverformat");var f=s{"use strict";var Ibe=q6();OV.exports=function(r,t,a){var n=r.i;return"x"in r||(r.x=t._x[n]),"y"in r||(r.y=t._y[n]),Ibe(r,t,a)}});var zV=P((GRe,BV)=>{"use strict";function Bbe(e,r,t,a,n){for(var i=n+1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s>=0?(i=o,n=o-1):a=o+1}return i}function zbe(e,r,t,a,n){for(var i=n+1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s>0?(i=o,n=o-1):a=o+1}return i}function Gbe(e,r,t,a,n){for(var i=a-1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s<0?(i=o,a=o+1):n=o-1}return i}function Ube(e,r,t,a,n){for(var i=a-1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s<=0?(i=o,a=o+1):n=o-1}return i}function Hbe(e,r,t,a,n){for(;a<=n;){var i=a+n>>>1,o=e[i],l=t!==void 0?t(o,r):o-r;if(l===0)return i;l<=0?a=i+1:n=i-1}return-1}function by(e,r,t,a,n,i){return typeof t=="function"?i(e,r,t,a===void 0?0:a|0,n===void 0?e.length-1:n|0):i(e,r,void 0,t===void 0?0:t|0,a===void 0?e.length-1:a|0)}BV.exports={ge:function(e,r,t,a,n){return by(e,r,t,a,n,Bbe)},gt:function(e,r,t,a,n){return by(e,r,t,a,n,zbe)},lt:function(e,r,t,a,n){return by(e,r,t,a,n,Gbe)},le:function(e,r,t,a,n){return by(e,r,t,a,n,Ube)},eq:function(e,r,t,a,n){return by(e,r,t,a,n,Hbe)}}});var xy=P((URe,GV)=>{GV.exports=Vbe;function Vbe(e,r,t){return rt?t:e:er?r:e}});var Of=P((HRe,HV)=>{"use strict";HV.exports=function(r,t,a){var n={},i,o;if(typeof t=="string"&&(t=UV(t)),Array.isArray(t)){var l={};for(o=0;o{"use strict";var Ybe=Of();VV.exports=Wbe;function Wbe(e){var r;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?r={width:e[0],height:e[0],x:0,y:0}:e.length===2?r={width:e[0],height:e[1],x:0,y:0}:r={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=Ybe(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),r={x:e.left||0,y:e.top||0},e.width==null?e.right?r.width=e.right-r.x:r.width=0:r.width=e.width,e.height==null?e.bottom?r.height=e.bottom-r.y:r.height=0:r.height=e.height),r}});var th=P((YRe,YV)=>{"use strict";YV.exports=jbe;function jbe(e,r){if(!e||e.length==null)throw Error("Argument should be an array");r==null?r=1:r=Math.floor(r);for(var t=Array(r*2),a=0;an&&(n=e[o]),e[o]{WV.exports=function(){for(var e=0;e{XV.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var ah=P((XRe,JV)=>{var ZV=cx();JV.exports=Xbe;function Xbe(e,r,t){if(!e)throw new TypeError("must specify data as first parameter");if(t=+(t||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var a=e[0].length,n=e.length*a,i,o,l,s;(!r||typeof r=="string")&&(r=new(ZV(r||"float32"))(n+t));var f=r.length-t;if(n!==f)throw new Error("source length "+n+" ("+a+"x"+e.length+") does not match destination length "+f);for(i=0,l=t;i{"use strict";$V.exports=function(e){var r=typeof e;return e!==null&&(r==="object"||r==="function")}});var eY=P((JRe,KV)=>{"use strict";KV.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var lY=P(($Re,oY)=>{"use strict";var rY=zV(),tY=xy(),Zbe=cp(),Jbe=th(),aY=Of(),YT=jV(),$be=ah(),Qbe=QV(),Kbe=cx(),nY=eY(),exe=1073741824;oY.exports=function(r,t){t||(t={}),r=$be(r,"float64"),t=aY(t,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let a=YT(t.maxDepth,255),n=YT(t.bounds,Jbe(r,2));n[0]===n[2]&&n[2]++,n[1]===n[3]&&n[3]++;let i=iY(r,n),o=r.length>>>1,l;t.dtype||(t.dtype="array"),typeof t.dtype=="string"?l=new(Kbe(t.dtype))(o):t.dtype&&(l=t.dtype,Array.isArray(l)&&(l.length=o));for(let b=0;ba||E>exe){for(let Z=0;ZDe||F>Oe||O=R||oe===ce)return;let Ee=s[J];ce===void 0&&(ce=Ee.length);for(let _e=oe;_e=x&&Ze<=E&&vr>=T&&vr<=S&&H.push(re)}let Je=f[J],Ae=Je[oe*4+0],or=Je[oe*4+1],Ge=Je[oe*4+2],He=Je[oe*4+3],Ve=le(Je,oe+1),Qe=Z*.5,ee=J+1;X(ae,$,Qe,ee,Ae,or||Ge||He||Ve),X(ae,$+Qe,Qe,ee,or,Ge||He||Ve),X(ae+Qe,$,Qe,ee,Ge,He||Ve),X(ae+Qe,$+Qe,Qe,ee,He,Ve)}function le(ae,$){let Z=null,J=0;for(;Z===null;)if(Z=ae[$*4+J],J++,J>ae.length)return null;return Z}return H}function g(b,A,_,x,T){let E=[];for(let S=0;S{"use strict";sY.exports=lY()});var jT=P((KRe,fY)=>{fY.exports=rxe;function rxe(e){var r=0,t=0,a=0,n=0;return e.map(function(i){i=i.slice();var o=i[0],l=o.toUpperCase();if(o!=l)switch(i[0]=l,o){case"a":i[6]+=a,i[7]+=n;break;case"v":i[1]+=n;break;case"h":i[1]+=a;break;default:for(var s=1;s{"use strict";Object.defineProperty(vx,"__esModule",{value:!0});var txe=function(){function e(r,t){var a=[],n=!0,i=!1,o=void 0;try{for(var l=r[Symbol.iterator](),s;!(n=(s=l.next()).done)&&(a.push(s.value),!(t&&a.length===t));n=!0);}catch(f){i=!0,o=f}finally{try{!n&&l.return&&l.return()}finally{if(i)throw o}}return a}return function(r,t){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_y=Math.PI*2,XT=function(r,t,a,n,i,o,l){var s=r.x,f=r.y;s*=t,f*=a;var u=n*s-i*f,c=i*s+n*f;return{x:u+o,y:c+l}},axe=function(r,t){var a=t===1.5707963267948966?.551915024494:t===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(t/4),n=Math.cos(r),i=Math.sin(r),o=Math.cos(r+t),l=Math.sin(r+t);return[{x:n-i*a,y:i+n*a},{x:o+l*a,y:l-o*a},{x:o,y:l}]},uY=function(r,t,a,n){var i=r*n-t*a<0?-1:1,o=r*a+t*n;return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)},nxe=function(r,t,a,n,i,o,l,s,f,u,c,v){var d=Math.pow(i,2),p=Math.pow(o,2),g=Math.pow(c,2),m=Math.pow(v,2),b=d*p-d*m-p*g;b<0&&(b=0),b/=d*m+p*g,b=Math.sqrt(b)*(l===s?-1:1);var A=b*i/o*v,_=b*-o/i*c,x=u*A-f*_+(r+a)/2,T=f*A+u*_+(t+n)/2,E=(c-A)/i,S=(v-_)/o,k=(-c-A)/i,F=(-v-_)/o,O=uY(1,0,E,S),I=uY(E,S,k,F);return s===0&&I>0&&(I-=_y),s===1&&I<0&&(I+=_y),[x,T,O,I]},ixe=function(r){var t=r.px,a=r.py,n=r.cx,i=r.cy,o=r.rx,l=r.ry,s=r.xAxisRotation,f=s===void 0?0:s,u=r.largeArcFlag,c=u===void 0?0:u,v=r.sweepFlag,d=v===void 0?0:v,p=[];if(o===0||l===0)return[];var g=Math.sin(f*_y/360),m=Math.cos(f*_y/360),b=m*(t-n)/2+g*(a-i)/2,A=-g*(t-n)/2+m*(a-i)/2;if(b===0&&A===0)return[];o=Math.abs(o),l=Math.abs(l);var _=Math.pow(b,2)/Math.pow(o,2)+Math.pow(A,2)/Math.pow(l,2);_>1&&(o*=Math.sqrt(_),l*=Math.sqrt(_));var x=nxe(t,a,n,i,o,l,c,d,g,m,b,A),T=txe(x,4),E=T[0],S=T[1],k=T[2],F=T[3],O=Math.abs(F)/(_y/4);Math.abs(1-O)<1e-7&&(O=1);var I=Math.max(Math.ceil(O),1);F/=I;for(var R=0;R{"use strict";dY.exports=lxe;var oxe=vY();function lxe(e){for(var r,t=[],a=0,n=0,i=0,o=0,l=null,s=null,f=0,u=0,c=0,v=e.length;c4?(a=d[d.length-4],n=d[d.length-3]):(a=f,n=u),t.push(d)}return t}function hx(e,r,t,a){return["C",e,r,t,a,t,a]}function hY(e,r,t,a,n,i){return["C",e/3+2/3*t,r/3+2/3*a,n/3+2/3*t,i/3+2/3*a,n,i]}});var ZT=P((rqe,mY)=>{"use strict";mY.exports=function(r){return typeof r!="string"?!1:(r=r.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(r)&&/[\dz]$/i.test(r)&&r.length>4))}});var dx=P((tqe,yY)=>{"use strict";yY.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),a=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;r[t]=n;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var o=Object.getOwnPropertySymbols(r);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(r,t);if(l.value!==n||l.enumerable!==!0)return!1}return!0}});var wy=P((aqe,gY)=>{"use strict";var sxe=dx();gY.exports=function(){return sxe()&&!!Symbol.toStringTag}});var JT=P((nqe,bY)=>{"use strict";bY.exports=Object});var _Y=P((iqe,xY)=>{"use strict";xY.exports=Error});var AY=P((oqe,wY)=>{"use strict";wY.exports=EvalError});var MY=P((lqe,TY)=>{"use strict";TY.exports=RangeError});var EY=P((sqe,SY)=>{"use strict";SY.exports=ReferenceError});var $T=P((fqe,kY)=>{"use strict";kY.exports=SyntaxError});var vp=P((uqe,CY)=>{"use strict";CY.exports=TypeError});var DY=P((cqe,LY)=>{"use strict";LY.exports=URIError});var RY=P((vqe,FY)=>{"use strict";FY.exports=Math.abs});var PY=P((hqe,qY)=>{"use strict";qY.exports=Math.floor});var OY=P((dqe,NY)=>{"use strict";NY.exports=Math.max});var BY=P((pqe,IY)=>{"use strict";IY.exports=Math.min});var GY=P((mqe,zY)=>{"use strict";zY.exports=Math.pow});var HY=P((yqe,UY)=>{"use strict";UY.exports=Math.round});var YY=P((gqe,VY)=>{"use strict";VY.exports=Number.isNaN||function(r){return r!==r}});var jY=P((bqe,WY)=>{"use strict";var fxe=YY();WY.exports=function(r){return fxe(r)||r===0?r:r<0?-1:1}});var ZY=P((xqe,XY)=>{"use strict";XY.exports=Object.getOwnPropertyDescriptor});var nh=P((_qe,JY)=>{"use strict";var px=ZY();if(px)try{px([],"length")}catch(e){px=null}JY.exports=px});var Ay=P((wqe,$Y)=>{"use strict";var mx=Object.defineProperty||!1;if(mx)try{mx({},"a",{value:1})}catch(e){mx=!1}$Y.exports=mx});var eW=P((Aqe,KY)=>{"use strict";var QY=typeof Symbol!="undefined"&&Symbol,uxe=dx();KY.exports=function(){return typeof QY!="function"||typeof Symbol!="function"||typeof QY("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:uxe()}});var QT=P((Tqe,rW)=>{"use strict";rW.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var KT=P((Mqe,tW)=>{"use strict";var cxe=JT();tW.exports=cxe.getPrototypeOf||null});var iW=P((Sqe,nW)=>{"use strict";var vxe="Function.prototype.bind called on incompatible ",hxe=Object.prototype.toString,dxe=Math.max,pxe="[object Function]",aW=function(r,t){for(var a=[],n=0;n{"use strict";var gxe=iW();oW.exports=Function.prototype.bind||gxe});var yx=P((kqe,lW)=>{"use strict";lW.exports=Function.prototype.call});var e8=P((Cqe,sW)=>{"use strict";sW.exports=Function.prototype.apply});var uW=P((Lqe,fW)=>{"use strict";fW.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var vW=P((Dqe,cW)=>{"use strict";var bxe=hp(),xxe=e8(),_xe=yx(),wxe=uW();cW.exports=wxe||bxe.call(_xe,xxe)});var dW=P((Fqe,hW)=>{"use strict";var Axe=hp(),Txe=vp(),Mxe=yx(),Sxe=vW();hW.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new Txe("a function is required");return Sxe(Axe,Mxe,r)}});var xW=P((Rqe,bW)=>{"use strict";var Exe=dW(),pW=nh(),yW;try{yW=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var r8=!!yW&&pW&&pW(Object.prototype,"__proto__"),gW=Object,mW=gW.getPrototypeOf;bW.exports=r8&&typeof r8.get=="function"?Exe([r8.get]):typeof mW=="function"?function(r){return mW(r==null?r:gW(r))}:!1});var MW=P((qqe,TW)=>{"use strict";var _W=QT(),wW=KT(),AW=xW();TW.exports=_W?function(r){return _W(r)}:wW?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return wW(r)}:AW?function(r){return AW(r)}:null});var EW=P((Pqe,SW)=>{"use strict";var kxe=Function.prototype.call,Cxe=Object.prototype.hasOwnProperty,Lxe=hp();SW.exports=Lxe.call(kxe,Cxe)});var xx=P((Nqe,RW)=>{"use strict";var Pa,Dxe=JT(),Fxe=_Y(),Rxe=AY(),qxe=MY(),Pxe=EY(),yp=$T(),mp=vp(),Nxe=DY(),Oxe=RY(),Ixe=PY(),Bxe=OY(),zxe=BY(),Gxe=GY(),Uxe=HY(),Hxe=jY(),DW=Function,t8=function(e){try{return DW('"use strict"; return ('+e+").constructor;")()}catch(r){}},Ty=nh(),Vxe=Ay(),a8=function(){throw new mp},Yxe=Ty?function(){try{return arguments.callee,a8}catch(e){try{return Ty(arguments,"callee").get}catch(r){return a8}}}():a8,dp=eW()(),Hi=MW(),Wxe=KT(),jxe=QT(),FW=e8(),My=yx(),pp={},Xxe=typeof Uint8Array=="undefined"||!Hi?Pa:Hi(Uint8Array),ih={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Pa:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Pa:ArrayBuffer,"%ArrayIteratorPrototype%":dp&&Hi?Hi([][Symbol.iterator]()):Pa,"%AsyncFromSyncIteratorPrototype%":Pa,"%AsyncFunction%":pp,"%AsyncGenerator%":pp,"%AsyncGeneratorFunction%":pp,"%AsyncIteratorPrototype%":pp,"%Atomics%":typeof Atomics=="undefined"?Pa:Atomics,"%BigInt%":typeof BigInt=="undefined"?Pa:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Pa:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Pa:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Pa:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Fxe,"%eval%":eval,"%EvalError%":Rxe,"%Float16Array%":typeof Float16Array=="undefined"?Pa:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?Pa:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Pa:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Pa:FinalizationRegistry,"%Function%":DW,"%GeneratorFunction%":pp,"%Int8Array%":typeof Int8Array=="undefined"?Pa:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Pa:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Pa:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":dp&&Hi?Hi(Hi([][Symbol.iterator]())):Pa,"%JSON%":typeof JSON=="object"?JSON:Pa,"%Map%":typeof Map=="undefined"?Pa:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!dp||!Hi?Pa:Hi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Dxe,"%Object.getOwnPropertyDescriptor%":Ty,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Pa:Promise,"%Proxy%":typeof Proxy=="undefined"?Pa:Proxy,"%RangeError%":qxe,"%ReferenceError%":Pxe,"%Reflect%":typeof Reflect=="undefined"?Pa:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Pa:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!dp||!Hi?Pa:Hi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Pa:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":dp&&Hi?Hi(""[Symbol.iterator]()):Pa,"%Symbol%":dp?Symbol:Pa,"%SyntaxError%":yp,"%ThrowTypeError%":Yxe,"%TypedArray%":Xxe,"%TypeError%":mp,"%Uint8Array%":typeof Uint8Array=="undefined"?Pa:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Pa:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Pa:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Pa:Uint32Array,"%URIError%":Nxe,"%WeakMap%":typeof WeakMap=="undefined"?Pa:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Pa:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Pa:WeakSet,"%Function.prototype.call%":My,"%Function.prototype.apply%":FW,"%Object.defineProperty%":Vxe,"%Object.getPrototypeOf%":Wxe,"%Math.abs%":Oxe,"%Math.floor%":Ixe,"%Math.max%":Bxe,"%Math.min%":zxe,"%Math.pow%":Gxe,"%Math.round%":Uxe,"%Math.sign%":Hxe,"%Reflect.getPrototypeOf%":jxe};if(Hi)try{null.error}catch(e){kW=Hi(Hi(e)),ih["%Error.prototype%"]=kW}var kW,Zxe=function e(r){var t;if(r==="%AsyncFunction%")t=t8("async function () {}");else if(r==="%GeneratorFunction%")t=t8("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=t8("async function* () {}");else if(r==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(t=a.prototype)}else if(r==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Hi&&(t=Hi(n.prototype))}return ih[r]=t,t},CW={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Sy=hp(),gx=EW(),Jxe=Sy.call(My,Array.prototype.concat),$xe=Sy.call(FW,Array.prototype.splice),LW=Sy.call(My,String.prototype.replace),bx=Sy.call(My,String.prototype.slice),Qxe=Sy.call(My,RegExp.prototype.exec),Kxe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,e_e=/\\(\\)?/g,r_e=function(r){var t=bx(r,0,1),a=bx(r,-1);if(t==="%"&&a!=="%")throw new yp("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&t!=="%")throw new yp("invalid intrinsic syntax, expected opening `%`");var n=[];return LW(r,Kxe,function(i,o,l,s){n[n.length]=l?LW(s,e_e,"$1"):o||i}),n},t_e=function(r,t){var a=r,n;if(gx(CW,a)&&(n=CW[a],a="%"+n[0]+"%"),gx(ih,a)){var i=ih[a];if(i===pp&&(i=Zxe(a)),typeof i=="undefined"&&!t)throw new mp("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:i}}throw new yp("intrinsic "+r+" does not exist!")};RW.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new mp("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new mp('"allowMissing" argument must be a boolean');if(Qxe(/^%?[^%]*%?$/,r)===null)throw new yp("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=r_e(r),n=a.length>0?a[0]:"",i=t_e("%"+n+"%",t),o=i.name,l=i.value,s=!1,f=i.alias;f&&(n=f[0],$xe(a,Jxe([0,1],f)));for(var u=1,c=!0;u=a.length){var g=Ty(l,v);c=!!g,c&&"get"in g&&!("originalValue"in g.get)?l=g.get:l=l[v]}else c=gx(l,v),l=l[v];c&&!s&&(ih[o]=l)}}return l}});var OW=P((Oqe,NW)=>{"use strict";var qW=Ay(),a_e=$T(),gp=vp(),PW=nh();NW.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new gp("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new gp("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new gp("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new gp("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new gp("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new gp("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,s=!!PW&&PW(r,t);if(qW)qW(r,t,{configurable:o===null&&s?s.configurable:!o,enumerable:n===null&&s?s.enumerable:!n,value:a,writable:i===null&&s?s.writable:!i});else if(l||!n&&!i&&!o)r[t]=a;else throw new a_e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var i8=P((Iqe,BW)=>{"use strict";var n8=Ay(),IW=function(){return!!n8};IW.hasArrayLengthDefineBug=function(){if(!n8)return null;try{return n8([],"length",{value:1}).length!==1}catch(r){return!0}};BW.exports=IW});var VW=P((Bqe,HW)=>{"use strict";var n_e=xx(),zW=OW(),i_e=i8()(),GW=nh(),UW=vp(),o_e=n_e("%Math.floor%");HW.exports=function(r,t){if(typeof r!="function")throw new UW("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||o_e(t)!==t)throw new UW("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in r&&GW){var o=GW(r,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(i=!1)}return(n||i||!a)&&(i_e?zW(r,"length",t,!0,!0):zW(r,"length",t)),r}});var Ey=P((zqe,_x)=>{"use strict";var o8=hp(),wx=xx(),l_e=VW(),s_e=vp(),jW=wx("%Function.prototype.apply%"),XW=wx("%Function.prototype.call%"),ZW=wx("%Reflect.apply%",!0)||o8.call(XW,jW),YW=Ay(),f_e=wx("%Math.max%");_x.exports=function(r){if(typeof r!="function")throw new s_e("a function is required");var t=ZW(o8,XW,arguments);return l_e(t,1+f_e(0,r.length-(arguments.length-1)),!0)};var WW=function(){return ZW(o8,jW,arguments)};YW?YW(_x.exports,"apply",{value:WW}):_x.exports.apply=WW});var bp=P((Gqe,QW)=>{"use strict";var JW=xx(),$W=Ey(),u_e=$W(JW("String.prototype.indexOf"));QW.exports=function(r,t){var a=JW(r,!!t);return typeof a=="function"&&u_e(r,".prototype.")>-1?$W(a):a}});var rj=P((Uqe,ej)=>{"use strict";var c_e=wy()(),v_e=bp(),l8=v_e("Object.prototype.toString"),Ax=function(r){return c_e&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:l8(r)==="[object Arguments]"},KW=function(r){return Ax(r)?!0:r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&l8(r)!=="[object Array]"&&l8(r.callee)==="[object Function]"},h_e=function(){return Ax(arguments)}();Ax.isLegacyArguments=KW;ej.exports=h_e?Ax:KW});var nj=P((Hqe,aj)=>{"use strict";var d_e=Object.prototype.toString,p_e=Function.prototype.toString,m_e=/^\s*(?:function)?\*/,tj=wy()(),s8=Object.getPrototypeOf,y_e=function(){if(!tj)return!1;try{return Function("return function*() {}")()}catch(e){}},f8;aj.exports=function(r){if(typeof r!="function")return!1;if(m_e.test(p_e.call(r)))return!0;if(!tj){var t=d_e.call(r);return t==="[object GeneratorFunction]"}if(!s8)return!1;if(typeof f8=="undefined"){var a=y_e();f8=a?s8(a):!1}return s8(r)===f8}});var sj=P((Vqe,lj)=>{"use strict";var oj=Function.prototype.toString,xp=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,c8,Tx;if(typeof xp=="function"&&typeof Object.defineProperty=="function")try{c8=Object.defineProperty({},"length",{get:function(){throw Tx}}),Tx={},xp(function(){throw 42},null,c8)}catch(e){e!==Tx&&(xp=null)}else xp=null;var g_e=/^\s*class\b/,v8=function(r){try{var t=oj.call(r);return g_e.test(t)}catch(a){return!1}},u8=function(r){try{return v8(r)?!1:(oj.call(r),!0)}catch(t){return!1}},Mx=Object.prototype.toString,b_e="[object Object]",x_e="[object Function]",__e="[object GeneratorFunction]",w_e="[object HTMLAllCollection]",A_e="[object HTML document.all class]",T_e="[object HTMLCollection]",M_e=typeof Symbol=="function"&&!!Symbol.toStringTag,S_e=!(0 in[,]),h8=function(){return!1};typeof document=="object"&&(ij=document.all,Mx.call(ij)===Mx.call(document.all)&&(h8=function(r){if((S_e||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=Mx.call(r);return(t===w_e||t===A_e||t===T_e||t===b_e)&&r("")==null}catch(a){}return!1}));var ij;lj.exports=xp?function(r){if(h8(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{xp(r,null,c8)}catch(t){if(t!==Tx)return!1}return!v8(r)&&u8(r)}:function(r){if(h8(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(M_e)return u8(r);if(v8(r))return!1;var t=Mx.call(r);return t!==x_e&&t!==__e&&!/^\[object HTML/.test(t)?!1:u8(r)}});var d8=P((Yqe,uj)=>{"use strict";var E_e=sj(),k_e=Object.prototype.toString,fj=Object.prototype.hasOwnProperty,C_e=function(r,t,a){for(var n=0,i=r.length;n=3&&(n=a),k_e.call(r)==="[object Array]"?C_e(r,t,n):typeof r=="string"?L_e(r,t,n):D_e(r,t,n)};uj.exports=F_e});var m8=P((Wqe,cj)=>{"use strict";var p8=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],R_e=typeof globalThis=="undefined"?window:globalThis;cj.exports=function(){for(var r=[],t=0;t{"use strict";var Ex=d8(),q_e=m8(),vj=Ey(),b8=bp(),Sx=nh(),P_e=b8("Object.prototype.toString"),dj=wy()(),hj=typeof globalThis=="undefined"?window:globalThis,g8=q_e(),x8=b8("String.prototype.slice"),y8=Object.getPrototypeOf,N_e=b8("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1?t:t!=="Object"?!1:I_e(r)}return Sx?O_e(r):null}});var wj=P((Xqe,_j)=>{"use strict";var yj=d8(),B_e=m8(),w8=bp(),z_e=w8("Object.prototype.toString"),gj=wy()(),Cx=nh(),G_e=typeof globalThis=="undefined"?window:globalThis,bj=B_e(),U_e=w8("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1}return Cx?V_e(r):!1}});var Nj=P(Na=>{"use strict";var Y_e=rj(),W_e=nj(),Zs=mj(),Aj=wj();function _p(e){return e.call.bind(e)}var Tj=typeof BigInt!="undefined",Mj=typeof Symbol!="undefined",ts=_p(Object.prototype.toString),j_e=_p(Number.prototype.valueOf),X_e=_p(String.prototype.valueOf),Z_e=_p(Boolean.prototype.valueOf);Tj&&(Sj=_p(BigInt.prototype.valueOf));var Sj;Mj&&(Ej=_p(Symbol.prototype.valueOf));var Ej;function Cy(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch(t){return!1}}Na.isArgumentsObject=Y_e;Na.isGeneratorFunction=W_e;Na.isTypedArray=Aj;function J_e(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}Na.isPromise=J_e;function $_e(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):Aj(e)||Cj(e)}Na.isArrayBufferView=$_e;function Q_e(e){return Zs(e)==="Uint8Array"}Na.isUint8Array=Q_e;function K_e(e){return Zs(e)==="Uint8ClampedArray"}Na.isUint8ClampedArray=K_e;function e5e(e){return Zs(e)==="Uint16Array"}Na.isUint16Array=e5e;function r5e(e){return Zs(e)==="Uint32Array"}Na.isUint32Array=r5e;function t5e(e){return Zs(e)==="Int8Array"}Na.isInt8Array=t5e;function a5e(e){return Zs(e)==="Int16Array"}Na.isInt16Array=a5e;function n5e(e){return Zs(e)==="Int32Array"}Na.isInt32Array=n5e;function i5e(e){return Zs(e)==="Float32Array"}Na.isFloat32Array=i5e;function o5e(e){return Zs(e)==="Float64Array"}Na.isFloat64Array=o5e;function l5e(e){return Zs(e)==="BigInt64Array"}Na.isBigInt64Array=l5e;function s5e(e){return Zs(e)==="BigUint64Array"}Na.isBigUint64Array=s5e;function Lx(e){return ts(e)==="[object Map]"}Lx.working=typeof Map!="undefined"&&Lx(new Map);function f5e(e){return typeof Map=="undefined"?!1:Lx.working?Lx(e):e instanceof Map}Na.isMap=f5e;function Dx(e){return ts(e)==="[object Set]"}Dx.working=typeof Set!="undefined"&&Dx(new Set);function u5e(e){return typeof Set=="undefined"?!1:Dx.working?Dx(e):e instanceof Set}Na.isSet=u5e;function Fx(e){return ts(e)==="[object WeakMap]"}Fx.working=typeof WeakMap!="undefined"&&Fx(new WeakMap);function c5e(e){return typeof WeakMap=="undefined"?!1:Fx.working?Fx(e):e instanceof WeakMap}Na.isWeakMap=c5e;function T8(e){return ts(e)==="[object WeakSet]"}T8.working=typeof WeakSet!="undefined"&&T8(new WeakSet);function v5e(e){return T8(e)}Na.isWeakSet=v5e;function Rx(e){return ts(e)==="[object ArrayBuffer]"}Rx.working=typeof ArrayBuffer!="undefined"&&Rx(new ArrayBuffer);function kj(e){return typeof ArrayBuffer=="undefined"?!1:Rx.working?Rx(e):e instanceof ArrayBuffer}Na.isArrayBuffer=kj;function qx(e){return ts(e)==="[object DataView]"}qx.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&qx(new DataView(new ArrayBuffer(1),0,1));function Cj(e){return typeof DataView=="undefined"?!1:qx.working?qx(e):e instanceof DataView}Na.isDataView=Cj;var A8=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function ky(e){return ts(e)==="[object SharedArrayBuffer]"}function Lj(e){return typeof A8=="undefined"?!1:(typeof ky.working=="undefined"&&(ky.working=ky(new A8)),ky.working?ky(e):e instanceof A8)}Na.isSharedArrayBuffer=Lj;function h5e(e){return ts(e)==="[object AsyncFunction]"}Na.isAsyncFunction=h5e;function d5e(e){return ts(e)==="[object Map Iterator]"}Na.isMapIterator=d5e;function p5e(e){return ts(e)==="[object Set Iterator]"}Na.isSetIterator=p5e;function m5e(e){return ts(e)==="[object Generator]"}Na.isGeneratorObject=m5e;function y5e(e){return ts(e)==="[object WebAssembly.Module]"}Na.isWebAssemblyCompiledModule=y5e;function Dj(e){return Cy(e,j_e)}Na.isNumberObject=Dj;function Fj(e){return Cy(e,X_e)}Na.isStringObject=Fj;function Rj(e){return Cy(e,Z_e)}Na.isBooleanObject=Rj;function qj(e){return Tj&&Cy(e,Sj)}Na.isBigIntObject=qj;function Pj(e){return Mj&&Cy(e,Ej)}Na.isSymbolObject=Pj;function g5e(e){return Dj(e)||Fj(e)||Rj(e)||qj(e)||Pj(e)}Na.isBoxedPrimitive=g5e;function b5e(e){return typeof Uint8Array!="undefined"&&(kj(e)||Lj(e))}Na.isAnyArrayBuffer=b5e;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(Na,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var Ij=P((Jqe,Oj)=>{Oj.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var Bj=P(($qe,M8)=>{typeof Object.create=="function"?M8.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:M8.exports=function(r,t){if(t){r.super_=t;var a=function(){};a.prototype=t.prototype,r.prototype=new a,r.prototype.constructor=r}}});var Ap=P(Oa=>{var zj=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),C8(r)?t.showHidden=r:r&&Oa._extend(t,r),lh(t.showHidden)&&(t.showHidden=!1),lh(t.depth)&&(t.depth=2),lh(t.colors)&&(t.colors=!1),lh(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=_5e),Ix(t,e,t.depth)}Oa.inspect=fv;fv.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};fv.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function _5e(e,r){var t=fv.styles[r];return t?"\x1B["+fv.colors[t][0]+"m"+e+"\x1B["+fv.colors[t][1]+"m":e}function w5e(e,r){return e}function A5e(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function Ix(e,r,t){if(e.customInspect&&r&&Ox(r.inspect)&&r.inspect!==Oa.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return Gx(a)||(a=Ix(e,a,t)),a}var n=T5e(e,r);if(n)return n;var i=Object.keys(r),o=A5e(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),Dy(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return S8(r);if(i.length===0){if(Ox(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(Ly(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(Bx(r))return e.stylize(Date.prototype.toString.call(r),"date");if(Dy(r))return S8(r)}var s="",f=!1,u=["{","}"];if(Uj(r)&&(f=!0,u=["[","]"]),Ox(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(Ly(r)&&(s=" "+RegExp.prototype.toString.call(r)),Bx(r)&&(s=" "+Date.prototype.toUTCString.call(r)),Dy(r)&&(s=" "+S8(r)),i.length===0&&(!f||r.length==0))return u[0]+s+u[1];if(t<0)return Ly(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return f?v=M5e(e,r,t,o,i):v=i.map(function(d){return k8(e,r,t,o,d,f)}),e.seen.pop(),S5e(v,s,u)}function T5e(e,r){if(lh(r))return e.stylize("undefined","undefined");if(Gx(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(Hj(r))return e.stylize(""+r,"number");if(C8(r))return e.stylize(""+r,"boolean");if(zx(r))return e.stylize("null","null")}function S8(e){return"["+Error.prototype.toString.call(e)+"]"}function M5e(e,r,t,a,n){for(var i=[],o=0,l=r.length;o-1&&(i?l=l.split(` `).map(function(f){return" "+f}).join(` `).slice(2):l=` `+l.split(` `).map(function(f){return" "+f}).join(` -`))):l=e.stylize("[Circular]","special")),oh(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function _5e(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(` +`))):l=e.stylize("[Circular]","special")),lh(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function S5e(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(` `)>=0&&a++,i+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?t[0]+(r===""?"":r+` `)+" "+e.join(`, - `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}Oa.types=Pj();function Gj(e){return Array.isArray(e)}Oa.isArray=Gj;function C8(e){return typeof e=="boolean"}Oa.isBoolean=C8;function zx(e){return e===null}Oa.isNull=zx;function w5e(e){return e==null}Oa.isNullOrUndefined=w5e;function Uj(e){return typeof e=="number"}Oa.isNumber=Uj;function Gx(e){return typeof e=="string"}Oa.isString=Gx;function A5e(e){return typeof e=="symbol"}Oa.isSymbol=A5e;function oh(e){return e===void 0}Oa.isUndefined=oh;function Ey(e){return w1(e)&&L8(e)==="[object RegExp]"}Oa.isRegExp=Ey;Oa.types.isRegExp=Ey;function w1(e){return typeof e=="object"&&e!==null}Oa.isObject=w1;function Bx(e){return w1(e)&&L8(e)==="[object Date]"}Oa.isDate=Bx;Oa.types.isDate=Bx;function ky(e){return w1(e)&&(L8(e)==="[object Error]"||e instanceof Error)}Oa.isError=ky;Oa.types.isNativeError=ky;function Ox(e){return typeof e=="function"}Oa.isFunction=Ox;function T5e(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}Oa.isPrimitive=T5e;Oa.isBuffer=Oj();function L8(e){return Object.prototype.toString.call(e)}function E8(e){return e<10?"0"+e.toString(10):e.toString(10)}var M5e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S5e(){var e=new Date,r=[E8(e.getHours()),E8(e.getMinutes()),E8(e.getSeconds())].join(":");return[e.getDate(),M5e[e.getMonth()],r].join(" ")}Oa.log=function(){console.log("%s - %s",S5e(),Oa.format.apply(Oa,arguments))};Oa.inherits=Ij();Oa._extend=function(e,r){if(!r||!w1(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function Hj(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var ih=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;Oa.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(ih&&r[ih]){var t=r[ih];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,ih,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var a,n,i=new Promise(function(s,f){a=s,n=f}),o=[],l=0;l{"use strict";function uv(e){"@babel/helpers - typeof";return uv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},uv(e)}function Vj(e,r){for(var t=0;t2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function I5e(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function B5e(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function z5e(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}Cy("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);Cy("ERR_INVALID_ARG_TYPE",function(e,r,t){T1===void 0&&(T1=Hx()),T1(typeof e=="string","'name' must be a string");var a;typeof r=="string"&&I5e(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(B5e(e," argument"))n="The ".concat(e," ").concat(a," ").concat(Yj(r,"type"));else{var i=z5e(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(Yj(r,"type"))}return n+=". Received type ".concat(uv(t)),n},TypeError);Cy("ERR_INVALID_ARG_VALUE",function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";D8===void 0&&(D8=A1());var a=D8.inspect(r);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(t,". Received ").concat(a)},TypeError,RangeError);Cy("ERR_INVALID_RETURN_VALUE",function(e,r,t){var a;return t&&t.constructor&&t.constructor.name?a="instance of ".concat(t.constructor.name):a="type ".concat(uv(t)),"Expected ".concat(e,' to be returned from the "').concat(r,'"')+" function but got ".concat(a,".")},TypeError);Cy("ERR_MISSING_ARGS",function(){for(var e=arguments.length,r=new Array(e),t=0;t0,"At least one arg needs to be specified");var a="The ",n=r.length;switch(r=r.map(function(i){return'"'.concat(i,'"')}),n){case 1:a+="".concat(r[0]," argument");break;case 2:a+="".concat(r[0]," and ").concat(r[1]," arguments");break;default:a+=r.slice(0,n-1).join(", "),a+=", and ".concat(r[n-1]," arguments");break}return"".concat(a," must be specified")},TypeError);jj.exports.codes=Wj});var aX=P((Jqe,tX)=>{"use strict";function Xj(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function Zj(e){for(var r=1;re.length)&&(t=e.length),e.substring(t-r.length,t)===r}function $5e(e,r){if(r=Math.floor(r),e.length==0||r==0)return"";var t=e.length*r;for(r=Math.floor(Math.log(r)/Math.log(2));r;)e+=e,r--;return e+=e.substring(0,t-e.length),e}var Js="",Ly="",Dy="",no="",lh={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},Q5e=10;function Qj(e){var r=Object.keys(e),t=Object.create(Object.getPrototypeOf(e));return r.forEach(function(a){t[a]=e[a]}),Object.defineProperty(t,"message",{value:e.message}),t}function Fy(e){return N8(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function K5e(e,r,t){var a="",n="",i=0,o="",l=!1,s=Fy(e),f=s.split(` -`),u=Fy(r).split(` -`),c=0,v="";if(t==="strictEqual"&&tl(e)==="object"&&tl(r)==="object"&&e!==null&&r!==null&&(t="strictEqualObject"),f.length===1&&u.length===1&&f[0]!==u[0]){var d=f[0].length+u[0].length;if(d<=Q5e){if((tl(e)!=="object"||e===null)&&(tl(r)!=="object"||r===null)&&(e!==0||r!==0))return"".concat(lh[t],` + `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}Oa.types=Nj();function Uj(e){return Array.isArray(e)}Oa.isArray=Uj;function C8(e){return typeof e=="boolean"}Oa.isBoolean=C8;function zx(e){return e===null}Oa.isNull=zx;function E5e(e){return e==null}Oa.isNullOrUndefined=E5e;function Hj(e){return typeof e=="number"}Oa.isNumber=Hj;function Gx(e){return typeof e=="string"}Oa.isString=Gx;function k5e(e){return typeof e=="symbol"}Oa.isSymbol=k5e;function lh(e){return e===void 0}Oa.isUndefined=lh;function Ly(e){return wp(e)&&L8(e)==="[object RegExp]"}Oa.isRegExp=Ly;Oa.types.isRegExp=Ly;function wp(e){return typeof e=="object"&&e!==null}Oa.isObject=wp;function Bx(e){return wp(e)&&L8(e)==="[object Date]"}Oa.isDate=Bx;Oa.types.isDate=Bx;function Dy(e){return wp(e)&&(L8(e)==="[object Error]"||e instanceof Error)}Oa.isError=Dy;Oa.types.isNativeError=Dy;function Ox(e){return typeof e=="function"}Oa.isFunction=Ox;function C5e(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}Oa.isPrimitive=C5e;Oa.isBuffer=Ij();function L8(e){return Object.prototype.toString.call(e)}function E8(e){return e<10?"0"+e.toString(10):e.toString(10)}var L5e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function D5e(){var e=new Date,r=[E8(e.getHours()),E8(e.getMinutes()),E8(e.getSeconds())].join(":");return[e.getDate(),L5e[e.getMonth()],r].join(" ")}Oa.log=function(){console.log("%s - %s",D5e(),Oa.format.apply(Oa,arguments))};Oa.inherits=Bj();Oa._extend=function(e,r){if(!r||!wp(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function Vj(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var oh=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;Oa.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(oh&&r[oh]){var t=r[oh];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,oh,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var a,n,i=new Promise(function(s,f){a=s,n=f}),o=[],l=0;l{"use strict";function uv(e){"@babel/helpers - typeof";return uv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},uv(e)}function Yj(e,r){for(var t=0;t2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function H5e(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function V5e(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function Y5e(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}Fy("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);Fy("ERR_INVALID_ARG_TYPE",function(e,r,t){Tp===void 0&&(Tp=Hx()),Tp(typeof e=="string","'name' must be a string");var a;typeof r=="string"&&H5e(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(V5e(e," argument"))n="The ".concat(e," ").concat(a," ").concat(Wj(r,"type"));else{var i=Y5e(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(Wj(r,"type"))}return n+=". Received type ".concat(uv(t)),n},TypeError);Fy("ERR_INVALID_ARG_VALUE",function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";D8===void 0&&(D8=Ap());var a=D8.inspect(r);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(t,". Received ").concat(a)},TypeError,RangeError);Fy("ERR_INVALID_RETURN_VALUE",function(e,r,t){var a;return t&&t.constructor&&t.constructor.name?a="instance of ".concat(t.constructor.name):a="type ".concat(uv(t)),"Expected ".concat(e,' to be returned from the "').concat(r,'"')+" function but got ".concat(a,".")},TypeError);Fy("ERR_MISSING_ARGS",function(){for(var e=arguments.length,r=new Array(e),t=0;t0,"At least one arg needs to be specified");var a="The ",n=r.length;switch(r=r.map(function(i){return'"'.concat(i,'"')}),n){case 1:a+="".concat(r[0]," argument");break;case 2:a+="".concat(r[0]," and ").concat(r[1]," arguments");break;default:a+=r.slice(0,n-1).join(", "),a+=", and ".concat(r[n-1]," arguments");break}return"".concat(a," must be specified")},TypeError);Xj.exports.codes=jj});var nX=P((ePe,aX)=>{"use strict";function Zj(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function Jj(e){for(var r=1;re.length)&&(t=e.length),e.substring(t-r.length,t)===r}function t4e(e,r){if(r=Math.floor(r),e.length==0||r==0)return"";var t=e.length*r;for(r=Math.floor(Math.log(r)/Math.log(2));r;)e+=e,r--;return e+=e.substring(0,t-e.length),e}var Js="",Ry="",qy="",io="",sh={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},a4e=10;function Kj(e){var r=Object.keys(e),t=Object.create(Object.getPrototypeOf(e));return r.forEach(function(a){t[a]=e[a]}),Object.defineProperty(t,"message",{value:e.message}),t}function Py(e){return N8(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function n4e(e,r,t){var a="",n="",i=0,o="",l=!1,s=Py(e),f=s.split(` +`),u=Py(r).split(` +`),c=0,v="";if(t==="strictEqual"&&tl(e)==="object"&&tl(r)==="object"&&e!==null&&r!==null&&(t="strictEqualObject"),f.length===1&&u.length===1&&f[0]!==u[0]){var d=f[0].length+u[0].length;if(d<=a4e){if((tl(e)!=="object"||e===null)&&(tl(r)!=="object"||r===null)&&(e!==0||r!==0))return"".concat(sh[t],` `)+"".concat(f[0]," !== ").concat(u[0],` `)}else if(t!=="strictEqualObject"){var p=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(d2&&(v=` - `.concat($5e(" ",c),"^"),c=0)}}}for(var g=f[f.length-1],m=u[u.length-1];g===m&&(c++<2?o=` + `.concat(t4e(" ",c),"^"),c=0)}}}for(var g=f[f.length-1],m=u[u.length-1];g===m&&(c++<2?o=` `.concat(g).concat(o):a=g,f.pop(),u.pop(),!(f.length===0||u.length===0));)g=f[f.length-1],m=u[u.length-1];var b=Math.max(f.length,u.length);if(b===0){var A=s.split(` -`);if(A.length>30)for(A[26]="".concat(Js,"...").concat(no);A.length>27;)A.pop();return"".concat(lh.notIdentical,` +`);if(A.length>30)for(A[26]="".concat(Js,"...").concat(io);A.length>27;)A.pop();return"".concat(sh.notIdentical,` `).concat(A.join(` `),` `)}c>3&&(o=` -`.concat(Js,"...").concat(no).concat(o),l=!0),a!==""&&(o=` - `.concat(a).concat(o),a="");var _=0,x=lh[t]+` -`.concat(Ly,"+ actual").concat(no," ").concat(Dy,"- expected").concat(no),T=" ".concat(Js,"...").concat(no," Lines skipped");for(c=0;c1&&c>2&&(E>4?(n+=` -`.concat(Js,"...").concat(no),l=!0):E>3&&(n+=` +`.concat(Js,"...").concat(io).concat(o),l=!0),a!==""&&(o=` + `.concat(a).concat(o),a="");var _=0,x=sh[t]+` +`.concat(Ry,"+ actual").concat(io," ").concat(qy,"- expected").concat(io),T=" ".concat(Js,"...").concat(io," Lines skipped");for(c=0;c1&&c>2&&(E>4?(n+=` +`.concat(Js,"...").concat(io),l=!0):E>3&&(n+=` `.concat(u[c-2]),_++),n+=` `.concat(u[c-1]),_++),i=c,a+=` -`.concat(Dy,"-").concat(no," ").concat(u[c]),_++;else if(u.length1&&c>2&&(E>4?(n+=` -`.concat(Js,"...").concat(no),l=!0):E>3&&(n+=` +`.concat(qy,"-").concat(io," ").concat(u[c]),_++;else if(u.length1&&c>2&&(E>4?(n+=` +`.concat(Js,"...").concat(io),l=!0):E>3&&(n+=` `.concat(f[c-2]),_++),n+=` `.concat(f[c-1]),_++),i=c,n+=` -`.concat(Ly,"+").concat(no," ").concat(f[c]),_++;else{var S=u[c],k=f[c],F=k!==S&&(!$j(k,",")||k.slice(0,-1)!==S);F&&$j(S,",")&&S.slice(0,-1)===k&&(F=!1,k+=","),F?(E>1&&c>2&&(E>4?(n+=` -`.concat(Js,"...").concat(no),l=!0):E>3&&(n+=` +`.concat(Ry,"+").concat(io," ").concat(f[c]),_++;else{var S=u[c],k=f[c],F=k!==S&&(!Qj(k,",")||k.slice(0,-1)!==S);F&&Qj(S,",")&&S.slice(0,-1)===k&&(F=!1,k+=","),F?(E>1&&c>2&&(E>4?(n+=` +`.concat(Js,"...").concat(io),l=!0):E>3&&(n+=` `.concat(f[c-2]),_++),n+=` `.concat(f[c-1]),_++),i=c,n+=` -`.concat(Ly,"+").concat(no," ").concat(k),a+=` -`.concat(Dy,"-").concat(no," ").concat(S),_+=2):(n+=a,a="",(E===1||c===0)&&(n+=` +`.concat(Ry,"+").concat(io," ").concat(k),a+=` +`.concat(qy,"-").concat(io," ").concat(S),_+=2):(n+=a,a="",(E===1||c===0)&&(n+=` `.concat(k),_++))}if(_>20&&c30)for(d[26]="".concat(Js,"...").concat(no);d.length>27;)d.pop();d.length===1?i=t.call(this,"".concat(v," ").concat(d[0])):i=t.call(this,"".concat(v,` +`).concat(Js,"...").concat(io).concat(a,` +`)+"".concat(Js,"...").concat(io)}return"".concat(x).concat(l?T:"",` +`).concat(n).concat(a).concat(o).concat(v)}var i4e=function(e,r){J5e(a,e);var t=$5e(a);function a(n){var i;if(j5e(this,a),tl(n)!=="object"||n===null)throw new r4e("options","Object",n);var o=n.message,l=n.operator,s=n.stackStartFn,f=n.actual,u=n.expected,c=Error.stackTraceLimit;if(Error.stackTraceLimit=0,o!=null)i=t.call(this,String(o));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1?(Js="\x1B[34m",Ry="\x1B[32m",io="\x1B[39m",qy="\x1B[31m"):(Js="",Ry="",io="",qy="")),tl(f)==="object"&&f!==null&&tl(u)==="object"&&u!==null&&"stack"in f&&f instanceof Error&&"stack"in u&&u instanceof Error&&(f=Kj(f),u=Kj(u)),l==="deepStrictEqual"||l==="strictEqual")i=t.call(this,n4e(f,u,l));else if(l==="notDeepStrictEqual"||l==="notStrictEqual"){var v=sh[l],d=Py(f).split(` +`);if(l==="notStrictEqual"&&tl(f)==="object"&&f!==null&&(v=sh.notStrictEqualObject),d.length>30)for(d[26]="".concat(Js,"...").concat(io);d.length>27;)d.pop();d.length===1?i=t.call(this,"".concat(v," ").concat(d[0])):i=t.call(this,"".concat(v,` `).concat(d.join(` `),` -`))}else{var p=Fy(f),g="",m=lh[l];l==="notDeepEqual"||l==="notEqual"?(p="".concat(lh[l],` +`))}else{var p=Py(f),g="",m=sh[l];l==="notDeepEqual"||l==="notEqual"?(p="".concat(sh[l],` -`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(g="".concat(Fy(u)),p.length>512&&(p="".concat(p.slice(0,509),"...")),g.length>512&&(g="".concat(g.slice(0,509),"...")),l==="deepEqual"||l==="equal"?p="".concat(m,` +`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(g="".concat(Py(u)),p.length>512&&(p="".concat(p.slice(0,509),"...")),g.length>512&&(g="".concat(g.slice(0,509),"...")),l==="deepEqual"||l==="equal"?p="".concat(m,` `).concat(p,` should equal -`):g=" ".concat(l," ").concat(g)),i=t.call(this,"".concat(p).concat(g))}return Error.stackTraceLimit=c,i.generatedMessage=!o,Object.defineProperty(q8(i),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),i.code="ERR_ASSERTION",i.actual=f,i.expected=u,i.operator=l,Error.captureStackTrace&&Error.captureStackTrace(q8(i),s),i.stack,i.name="AssertionError",eX(i)}return H5e(a,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:r,value:function(i,o){return N8(this,Zj(Zj({},o),{},{customInspect:!1,depth:0}))}}]),a}(P8(Error),N8.custom);tX.exports=e4e});var O8=P(($qe,iX)=>{"use strict";var nX=Object.prototype.toString;iX.exports=function(r){var t=nX.call(r),a=t==="[object Arguments]";return a||(a=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&nX.call(r.callee)==="[object Function]"),a}});var dX=P((Qqe,hX)=>{"use strict";var vX;Object.keys||(Py=Object.prototype.hasOwnProperty,I8=Object.prototype.toString,oX=O8(),B8=Object.prototype.propertyIsEnumerable,lX=!B8.call({toString:null},"toString"),sX=B8.call(function(){},"prototype"),Ny=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Yx=function(e){var r=e.constructor;return r&&r.prototype===e},fX={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},uX=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!fX["$"+e]&&Py.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Yx(window[e])}catch(r){return!0}}catch(r){return!0}return!1}(),cX=function(e){if(typeof window=="undefined"||!uX)return Yx(e);try{return Yx(e)}catch(r){return!1}},vX=function(r){var t=r!==null&&typeof r=="object",a=I8.call(r)==="[object Function]",n=oX(r),i=t&&I8.call(r)==="[object String]",o=[];if(!t&&!a&&!n)throw new TypeError("Object.keys called on a non-object");var l=sX&&a;if(i&&r.length>0&&!Py.call(r,0))for(var s=0;s0)for(var f=0;f{"use strict";var r4e=Array.prototype.slice,t4e=O8(),pX=Object.keys,Wx=pX?function(r){return pX(r)}:dX(),mX=Object.keys;Wx.shim=function(){if(Object.keys){var r=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);r||(Object.keys=function(a){return t4e(a)?mX(r4e.call(a)):mX(a)})}else Object.keys=Wx;return Object.keys||Wx};yX.exports=Wx});var AX=P((ePe,wX)=>{"use strict";var a4e=z8(),xX=dx()(),_X=b1(),gX=Object,n4e=_X("Array.prototype.push"),bX=_X("Object.prototype.propertyIsEnumerable"),i4e=xX?Object.getOwnPropertySymbols:null;wX.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var a=gX(r);if(arguments.length===1)return a;for(var n=1;n{"use strict";var G8=AX(),o4e=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},a=0;a{"use strict";var SX=function(e){return e!==e};EX.exports=function(r,t){return r===0&&t===0?1/r===1/t:!!(r===t||SX(r)&&SX(t))}});var jx=P((aPe,kX)=>{"use strict";var s4e=U8();kX.exports=function(){return typeof Object.is=="function"?Object.is:s4e}});var Oy=P((nPe,FX)=>{"use strict";var f4e=z8(),u4e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",c4e=Object.prototype.toString,v4e=Array.prototype.concat,CX=Object.defineProperty,h4e=function(e){return typeof e=="function"&&c4e.call(e)==="[object Function]"},d4e=i8()(),LX=CX&&d4e,p4e=function(e,r,t,a){if(r in e){if(a===!0){if(e[r]===t)return}else if(!h4e(a)||!a())return}LX?CX(e,r,{configurable:!0,enumerable:!1,value:t,writable:!0}):e[r]=t},DX=function(e,r){var t=arguments.length>2?arguments[2]:{},a=f4e(r);u4e&&(a=v4e.call(a,Object.getOwnPropertySymbols(r)));for(var n=0;n{"use strict";var m4e=jx(),y4e=Oy();RX.exports=function(){var r=m4e();return y4e(Object,{is:r},{is:function(){return Object.is!==r}}),r}});var IX=P((oPe,OX)=>{"use strict";var g4e=Oy(),b4e=Ty(),x4e=U8(),PX=jx(),_4e=qX(),NX=b4e(PX(),Object);g4e(NX,{getPolyfill:PX,implementation:x4e,shim:_4e});OX.exports=NX});var H8=P((lPe,BX)=>{"use strict";BX.exports=function(r){return r!==r}});var V8=P((sPe,zX)=>{"use strict";var w4e=H8();zX.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:w4e}});var UX=P((fPe,GX)=>{"use strict";var A4e=Oy(),T4e=V8();GX.exports=function(){var r=T4e();return A4e(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r}});var WX=P((uPe,YX)=>{"use strict";var M4e=Ty(),S4e=Oy(),E4e=H8(),HX=V8(),k4e=UX(),VX=M4e(HX(),Number);S4e(VX,{getPolyfill:HX,implementation:E4e,shim:k4e});YX.exports=VX});var vZ=P((cPe,cZ)=>{"use strict";function jX(e,r){return F4e(e)||D4e(e,r)||L4e(e,r)||C4e()}function C4e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L4e(e,r){if(e){if(typeof e=="string")return XX(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return XX(e,r)}}function XX(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t10)return!0;for(var r=0;r57)return!0}return e.length===10&&e>=Math.pow(2,32)}function Jx(e){return Object.keys(e).filter(G4e).concat(Qx(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function lZ(e,r){if(e===r)return 0;for(var t=e.length,a=r.length,n=0,i=Math.min(t,a);n{"use strict";function $s(e){"@babel/helpers - typeof";return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},$s(e)}function hZ(e,r){for(var t=0;t1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n{"use strict";var iX=Object.prototype.toString;oX.exports=function(r){var t=iX.call(r),a=t==="[object Arguments]";return a||(a=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&iX.call(r.callee)==="[object Function]"),a}});var pX=P((tPe,dX)=>{"use strict";var hX;Object.keys||(Iy=Object.prototype.hasOwnProperty,I8=Object.prototype.toString,lX=O8(),B8=Object.prototype.propertyIsEnumerable,sX=!B8.call({toString:null},"toString"),fX=B8.call(function(){},"prototype"),By=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Yx=function(e){var r=e.constructor;return r&&r.prototype===e},uX={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},cX=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!uX["$"+e]&&Iy.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Yx(window[e])}catch(r){return!0}}catch(r){return!0}return!1}(),vX=function(e){if(typeof window=="undefined"||!cX)return Yx(e);try{return Yx(e)}catch(r){return!1}},hX=function(r){var t=r!==null&&typeof r=="object",a=I8.call(r)==="[object Function]",n=lX(r),i=t&&I8.call(r)==="[object String]",o=[];if(!t&&!a&&!n)throw new TypeError("Object.keys called on a non-object");var l=fX&&a;if(i&&r.length>0&&!Iy.call(r,0))for(var s=0;s0)for(var f=0;f{"use strict";var o4e=Array.prototype.slice,l4e=O8(),mX=Object.keys,Wx=mX?function(r){return mX(r)}:pX(),yX=Object.keys;Wx.shim=function(){if(Object.keys){var r=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);r||(Object.keys=function(a){return l4e(a)?yX(o4e.call(a)):yX(a)})}else Object.keys=Wx;return Object.keys||Wx};gX.exports=Wx});var TX=P((nPe,AX)=>{"use strict";var s4e=z8(),_X=dx()(),wX=bp(),bX=Object,f4e=wX("Array.prototype.push"),xX=wX("Object.prototype.propertyIsEnumerable"),u4e=_X?Object.getOwnPropertySymbols:null;AX.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var a=bX(r);if(arguments.length===1)return a;for(var n=1;n{"use strict";var G8=TX(),c4e=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},a=0;a{"use strict";var EX=function(e){return e!==e};kX.exports=function(r,t){return r===0&&t===0?1/r===1/t:!!(r===t||EX(r)&&EX(t))}});var jx=P((lPe,CX)=>{"use strict";var h4e=U8();CX.exports=function(){return typeof Object.is=="function"?Object.is:h4e}});var zy=P((sPe,RX)=>{"use strict";var d4e=z8(),p4e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",m4e=Object.prototype.toString,y4e=Array.prototype.concat,LX=Object.defineProperty,g4e=function(e){return typeof e=="function"&&m4e.call(e)==="[object Function]"},b4e=i8()(),DX=LX&&b4e,x4e=function(e,r,t,a){if(r in e){if(a===!0){if(e[r]===t)return}else if(!g4e(a)||!a())return}DX?LX(e,r,{configurable:!0,enumerable:!1,value:t,writable:!0}):e[r]=t},FX=function(e,r){var t=arguments.length>2?arguments[2]:{},a=d4e(r);p4e&&(a=y4e.call(a,Object.getOwnPropertySymbols(r)));for(var n=0;n{"use strict";var _4e=jx(),w4e=zy();qX.exports=function(){var r=_4e();return w4e(Object,{is:r},{is:function(){return Object.is!==r}}),r}});var BX=P((uPe,IX)=>{"use strict";var A4e=zy(),T4e=Ey(),M4e=U8(),NX=jx(),S4e=PX(),OX=T4e(NX(),Object);A4e(OX,{getPolyfill:NX,implementation:M4e,shim:S4e});IX.exports=OX});var H8=P((cPe,zX)=>{"use strict";zX.exports=function(r){return r!==r}});var V8=P((vPe,GX)=>{"use strict";var E4e=H8();GX.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:E4e}});var HX=P((hPe,UX)=>{"use strict";var k4e=zy(),C4e=V8();UX.exports=function(){var r=C4e();return k4e(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r}});var jX=P((dPe,WX)=>{"use strict";var L4e=Ey(),D4e=zy(),F4e=H8(),VX=V8(),R4e=HX(),YX=L4e(VX(),Number);D4e(YX,{getPolyfill:VX,implementation:F4e,shim:R4e});WX.exports=YX});var hZ=P((pPe,vZ)=>{"use strict";function XX(e,r){return O4e(e)||N4e(e,r)||P4e(e,r)||q4e()}function q4e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P4e(e,r){if(e){if(typeof e=="string")return ZX(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ZX(e,r)}}function ZX(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t10)return!0;for(var r=0;r57)return!0}return e.length===10&&e>=Math.pow(2,32)}function Jx(e){return Object.keys(e).filter(W4e).concat(Qx(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function sZ(e,r){if(e===r)return 0;for(var t=e.length,a=r.length,n=0,i=Math.min(t,a);n{"use strict";function $s(e){"@babel/helpers - typeof";return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},$s(e)}function dZ(e,r){for(var t=0;t1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n{"use strict";var hwe=rm(),dwe=jT(),pwe=dY(),mwe=ZT(),DZ=Hx();FZ.exports=ywe;function ywe(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(DZ(mwe(e),"String is not an SVG path."),e=hwe(e)),DZ(Array.isArray(e),"Argument should be a string or an array of path segments."),e=dwe(e),e=pwe(e),!e.length)return[0,0,0,0];for(var r=[1/0,1/0,-1/0,-1/0],t=0,a=e.length;tr[2]&&(r[2]=n[i+0]),n[i+1]>r[3]&&(r[3]=n[i+1]);return r}});var BZ=P((dPe,IZ)=>{var sh=Math.PI,qZ=OZ(120);IZ.exports=gwe;function gwe(e){for(var r,t=[],a=0,n=0,i=0,o=0,l=null,s=null,f=0,u=0,c=0,v=e.length;c7&&(t.push(d.splice(0,7)),d.unshift("C"));break;case"S":var g=f,m=u;(r=="C"||r=="S")&&(g+=g-a,m+=m-n),d=["C",g,m,d[1],d[2],d[3],d[4]];break;case"T":r=="Q"||r=="T"?(l=f*2-l,s=u*2-s):(l=f,s=u),d=PZ(f,u,l,s,d[1],d[2]);break;case"Q":l=d[1],s=d[2],d=PZ(f,u,d[1],d[2],d[3],d[4]);break;case"L":d=o_(f,u,d[1],d[2]);break;case"H":d=o_(f,u,d[1],u);break;case"V":d=o_(f,u,f,d[1]);break;case"Z":d=o_(f,u,i,o);break}r=p,f=d[d.length-2],u=d[d.length-1],d.length>4?(a=d[d.length-4],n=d[d.length-3]):(a=f,n=u),t.push(d)}return t}function o_(e,r,t,a){return["C",e,r,t,a,t,a]}function PZ(e,r,t,a,n,i){return["C",e/3+2/3*t,r/3+2/3*a,n/3+2/3*t,i/3+2/3*a,n,i]}function NZ(e,r,t,a,n,i,o,l,s,f){if(f)_=f[0],x=f[1],b=f[2],A=f[3];else{var u=J8(e,r,-n);e=u.x,r=u.y,u=J8(l,s,-n),l=u.x,s=u.y;var c=(e-l)/2,v=(r-s)/2,d=c*c/(t*t)+v*v/(a*a);d>1&&(d=Math.sqrt(d),t=d*t,a=d*a);var p=t*t,g=a*a,m=(i==o?-1:1)*Math.sqrt(Math.abs((p*g-p*v*v-g*c*c)/(p*v*v+g*c*c)));m==1/0&&(m=1);var b=m*t*v/a+(e+l)/2,A=m*-a*c/t+(r+s)/2,_=Math.asin(((r-A)/a).toFixed(9)),x=Math.asin(((s-A)/a).toFixed(9));_=ex&&(_=_-sh*2),!o&&x>_&&(x=x-sh*2)}if(Math.abs(x-_)>qZ){var T=x,E=l,S=s;x=_+qZ*(o&&x>_?1:-1),l=b+t*Math.cos(x),s=A+a*Math.sin(x);var k=NZ(l,s,t,a,n,0,o,E,S,[x,T,b,A])}var F=Math.tan((x-_)/4),O=4/3*t*F,I=4/3*a*F,R=[2*e-(e+O*Math.sin(_)),2*r-(r-I*Math.cos(_)),l+O*Math.sin(x),s-I*Math.cos(x),l,s];if(f)return R;k&&(R=R.concat(k));for(var H=0;H{var bwe=jT(),xwe=BZ(),_we={M:"moveTo",C:"bezierCurveTo"};zZ.exports=function(e,r){e.beginPath(),xwe(bwe(r)).forEach(function(t){var a=t[0],n=t.slice(1);e[_we[a]].apply(e,n)}),e.closePath()}});var YZ=P((mPe,VZ)=>{"use strict";var wwe=yy();VZ.exports=Awe;var Uy=1e20;function Awe(e,r){r||(r={});var t=r.cutoff==null?.25:r.cutoff,a=r.radius==null?8:r.radius,n=r.channel||0,i,o,l,s,f,u,c,v,d,p,g;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!r.width||!r.height)throw Error("For raw data width and height should be provided by options");i=r.width,o=r.height,s=e,r.stride?u=r.stride:u=Math.floor(e.length/i/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(v=e,c=v.getContext("2d"),i=v.width,o=v.height,d=c.getImageData(0,0,i,o),s=d.data,u=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(v=e.canvas,c=e,i=v.width,o=v.height,d=c.getImageData(0,0,i,o),s=d.data,u=4):window.ImageData&&e instanceof window.ImageData&&(d=e,i=e.width,o=e.height,s=d.data,u=4);if(l=Math.max(i,o),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(f=s,s=Array(i*o),p=0,g=f.length;p{"use strict";var Twe=RZ(),Mwe=rm(),Swe=GZ(),Ewe=ZT(),kwe=YZ(),$8=document.createElement("canvas"),No=$8.getContext("2d");WZ.exports=Cwe;function Cwe(e,r){if(!Ewe(e))throw Error("Argument should be valid svg path string");r||(r={});var t,a;r.shape?(t=r.shape[0],a=r.shape[1]):(t=$8.width=r.w||r.width||200,a=$8.height=r.h||r.height||200);var n=Math.min(t,a),i=r.stroke||0,o=r.viewbox||r.viewBox||Twe(e),l=[t/(o[2]-o[0]),a/(o[3]-o[1])],s=Math.min(l[0]||0,l[1]||0)/2;if(No.fillStyle="black",No.fillRect(0,0,t,a),No.fillStyle="white",i&&(typeof i!="number"&&(i=1),i>0?No.strokeStyle="white":No.strokeStyle="black",No.lineWidth=Math.abs(i)),No.translate(t*.5,a*.5),No.scale(s,s),Lwe()){var f=new Path2D(e);No.fill(f),i&&No.stroke(f)}else{var u=Mwe(e);Swe(No,u),No.fill(),i&&No.stroke()}No.setTransform(1,0,0,1,0,0);var c=kwe(No,{cutoff:r.cutoff!=null?r.cutoff:.5,radius:r.radius!=null?r.radius:n*.5});return c}var l_;function Lwe(){if(l_!=null)return l_;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return l_=!1;var r=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(r);var t=e.getImageData(0,0,1,1);return l_=t&&t.data&&t.data[3]===255}});var Q8=P((gPe,XZ)=>{"use strict";XZ.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var QZ=P((bPe,$Z)=>{"use strict";var ZZ=Q8();$Z.exports=Dwe;var JZ={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Dwe(e){var r,t=[],a=1,n;if(typeof e=="string")if(e=e.toLowerCase(),ZZ[e])t=ZZ[e].slice(),n="rgb";else if(e==="transparent")a=0,n="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var i=e.slice(1),o=i.length,l=o<=4;a=1,l?(t=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],o===4&&(a=parseInt(i[3]+i[3],16)/255)):(t=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],o===8&&(a=parseInt(i[6]+i[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),n="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=r[1],f=s==="rgb",i=s.replace(/a$/,"");n=i;var o=i==="cmyk"?4:i==="gray"?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(v,d){if(/%$/.test(v))return d===o?parseFloat(v)/100:i==="rgb"?parseFloat(v)*255/100:parseFloat(v);if(i[d]==="h"){if(/deg$/.test(v))return parseFloat(v);if(JZ[v]!==void 0)return JZ[v]}return parseFloat(v)}),s===i&&t.push(1),a=f||t[o]===void 0?1:t[o],t=t.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(t=e.match(/([0-9]+)/g).map(function(u){return parseFloat(u)}),n=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(t=[e[0],e[1],e[2]],n="rgb",a=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(n="rgb",t=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(n="hsl",t=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),a=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(a/=100)):(n="rgb",t=[e>>>16,(e&65280)>>>8,e&255]);return{space:n,values:t,alpha:a}}});var eJ=P((xPe,KZ)=>{"use strict";var Fwe=QZ();KZ.exports=function(r){Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var t,a,n,i=Fwe(r);if(!i.space)return[];var o=[0,0,0],l=i.space[0]==="h"?[360,100,100]:[255,255,255];return t=Array(3),t[0]=Math.min(Math.max(i.values[0],o[0]),l[0]),t[1]=Math.min(Math.max(i.values[1],o[1]),l[1]),t[2]=Math.min(Math.max(i.values[2],o[2]),l[2]),i.space[0]==="h"&&(t=Rwe(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t};function Rwe(e){var r=e[0]/360,t=e[1]/100,a=e[2]/100,n,i,o,l,s,f=0;if(t===0)return s=a*255,[s,s,s];for(i=a<.5?a*(1+t):a+t-a*t,n=2*a-i,l=[0,0,0];f<3;)o=r+1/3*-(f-1),o<0?o++:o>1&&o--,s=6*o<1?n+(i-n)*6*o:2*o<1?i:3*o<2?n+(i-n)*(2/3-o)*6:n,l[f++]=s*255;return l}});var fh=P((_Pe,rJ)=>{"use strict";var qwe=eJ(),s_=yy(),Pwe=cx();rJ.exports=function(r,t){(t==="float"||!t)&&(t="array"),t==="uint"&&(t="uint8"),t==="uint_clamped"&&(t="uint8_clamped");var a=Pwe(t),n=new a(4),i=t!=="uint8"&&t!=="uint8_clamped";return(!r.length||typeof r=="string")&&(r=qwe(r),r[0]/=255,r[1]/=255,r[2]/=255),Nwe(r)?(n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3]!=null?r[3]:255,i&&(n[0]/=255,n[1]/=255,n[2]/=255,n[3]/=255),n):(i?(n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3]!=null?r[3]:1):(n[0]=s_(Math.floor(r[0]*255),0,255),n[1]=s_(Math.floor(r[1]*255),0,255),n[2]=s_(Math.floor(r[2]*255),0,255),n[3]=r[3]==null?255:s_(Math.floor(r[3]*255),0,255)),n)};function Nwe(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var fJ=P((wPe,sJ)=>{"use strict";var oJ=ga(),Owe=Es(),f_=fh(),u_=gd(),Iwe=wf().defaultLine,tJ=Vo().isArrayOrTypedArray,K8=f_(Iwe),lJ=1;function aJ(e,r){var t=e;return t[3]*=r,t}function nJ(e){if(oJ(e))return K8;var r=f_(e);return r.length?r:K8}function iJ(e){return oJ(e)?e:lJ}function Bwe(e,r,t){var a=e.color;a&&a._inputArray&&(a=a._inputArray);var n=tJ(a),i=tJ(r),o=u_.extractOpts(e),l=[],s,f,u,c,v;if(o.colorscale!==void 0?s=u_.makeColorScaleFuncFromTrace(e):s=nJ,n?f=function(p,g){return p[g]===void 0?K8:f_(s(p[g]))}:f=nJ,i?u=function(p,g){return p[g]===void 0?lJ:iJ(p[g])}:u=iJ,n||i)for(var d=0;d{"use strict";var v_=ga(),Gwe=jZ(),c_=fh(),Uwe=It(),k1=Ur(),Hn=k1.isArrayOrTypedArray,S1=Wa(),uJ=En(),cJ=fJ().formatColor,E1=Ri(),Hwe=I4(),r7=fx(),Hy=f1(),Vwe=Jh().DESELECTDIM,vJ={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},Ywe=Cu().appendArrayPointValue;function Wwe(e,r){var t,a={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},n=e._context.plotGlPixelRatio;if(r.visible!==!0)return a;if(E1.hasText(r)&&(a.text=bJ(e,r),a.textSel=dJ(e,r,r.selected),a.textUnsel=dJ(e,r,r.unselected)),E1.hasMarkers(r)&&(a.marker=a7(e,r),a.markerSel=t7(e,r,r.selected),a.markerUnsel=t7(e,r,r.unselected),!r.unselected&&Hn(r.marker.opacity))){var i=r.marker.opacity;for(a.markerUnsel.opacity=new Array(i.length),t=0;t500?"bold":"normal":e}function a7(e,r){var t=r._length,a=r.marker,n={},i,o=Hn(a.symbol),l=Hn(a.angle),s=Hn(a.color),f=Hn(a.line.color),u=Hn(a.opacity),c=Hn(a.size),v=Hn(a.line.width),d;if(o||(d=r7.isOpenSymbol(a.symbol)),o||s||f||u||l){n.symbols=new Array(t),n.angles=new Array(t),n.colors=new Array(t),n.borderColors=new Array(t);var p=a.symbol,g=a.angle,m=cJ(a,a.opacity,t),b=cJ(a.line,a.opacity,t);if(!Hn(b[0])){var A=b;for(b=Array(t),i=0;iHy.TOO_MANY_POINTS||E1.hasMarkers(r)?"rect":"round";if(f&&r.connectgaps){var c=i[0],v=i[1];for(o=0;o1?s[o]:s[0]:s,d=Hn(f)?f.length>1?f[o]:f[0]:f,p=vJ[v],g=vJ[d],m=u?u/.8+1:0,b=-g*m-g*.5;i.offset[o]=[p*m/c,b/c]}}return i}xJ.exports={style:Wwe,markerStyle:a7,markerSelection:t7,linePositions:Xwe,errorBarPositions:Zwe,textPosition:Jwe}});var wJ=P((TPe,_J)=>{"use strict";var h_=Ur();_J.exports=function(r,t){var a=t._scene,n={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},i={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return t._scene||(a=t._scene={},a.init=function(){h_.extendFlat(a,i,n)},a.init(),a.update=function(l){var s=h_.repeat(l,a.count);if(a.fill2d&&a.fill2d.update(s),a.scatter2d&&a.scatter2d.update(s),a.line2d&&a.line2d.update(s),a.error2d&&a.error2d.update(s.concat(s)),a.select2d&&a.select2d.update(s),a.glText)for(var f=0;f{"use strict";var $we=WT(),C1=Ur(),AJ=En(),Qwe=Ad().findExtremes,TJ=b6(),n7=Yd(),Kwe=n7.calcMarkerSize,eAe=n7.calcAxisExpansion,rAe=n7.setFirstScatter,tAe=Jm(),L1=Vy(),aAe=wJ(),MJ=Jn().BADNUM,nAe=f1().TOO_MANY_POINTS;EJ.exports=function(r,t){var a=r._fullLayout,n=t._xA=AJ.getFromId(r,t.xaxis,"x"),i=t._yA=AJ.getFromId(r,t.yaxis,"y"),o=a._plots[t.xaxis+t.yaxis],l=t._length,s=l>=nAe,f=l*2,u={},c,v=n.makeCalcdata(t,"x"),d=i.makeCalcdata(t,"y"),p=TJ(t,n,"x",v),g=TJ(t,i,"y",d),m=p.vals,b=g.vals;t._x=m,t._y=b,t.xperiodalignment&&(t._origX=v,t._xStarts=p.starts,t._xEnds=p.ends),t.yperiodalignment&&(t._origY=d,t._yStarts=g.starts,t._yEnds=g.ends);var A=new Array(f),_=new Array(l);for(c=0;c1&&C1.extendFlat(o.line,L1.linePositions(e,t,a)),o.errorX||o.errorY){var l=L1.errorBarPositions(e,t,a,n,i);o.errorX&&C1.extendFlat(o.errorX,l.x),o.errorY&&C1.extendFlat(o.errorY,l.y)}return o.text&&(C1.extendFlat(o.text,{positions:a},L1.textPosition(e,t,o.text,o.marker)),C1.extendFlat(o.textSel,{positions:a},L1.textPosition(e,t,o.text,o.markerSel)),C1.extendFlat(o.textUnsel,{positions:a},L1.textPosition(e,t,o.text,o.markerUnsel))),o}});var i7=P((SPe,LJ)=>{"use strict";var CJ=Ur(),oAe=ha(),lAe=Jh().DESELECTDIM;function sAe(e){var r=e[0],t=r.trace,a=r.t,n=a._scene,i=a.index,o=n.selectBatch[i],l=n.unselectBatch[i],s=n.textOptions[i],f=n.textSelectedOptions[i]||{},u=n.textUnselectedOptions[i]||{},c=CJ.extendFlat({},s),v,d;if(o.length||l.length){var p=f.color,g=u.color,m=s.color,b=CJ.isArrayOrTypedArray(m);for(c.color=new Array(t._length),v=0;v{"use strict";var DJ=Ri(),fAe=i7().styleTextSelection;FJ.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s=a[0].t,f=l._length,u=s.x,c=s.y,v=s._scene,d=s.index;if(!v)return o;var p=DJ.hasText(l),g=DJ.hasMarkers(l),m=!g&&!p;if(l.visible!==!0||m)return o;var b=[],A=[];if(t!==!1&&!t.degenerate)for(var _=0;_{"use strict";var uAe=GT();qJ.exports={moduleType:"trace",name:"scattergl",basePlotModule:ay(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:sx(),supplyDefaults:PV(),crossTraceDefaults:g6(),colorbar:Mb(),formatLabels:OV(),calc:kJ(),hoverPoints:uAe.hoverPoints,selectPoints:RJ(),meta:{}}});var OJ=P((CPe,p_)=>{"use strict";var d_=yy();p_.exports=NJ;p_.exports.to=NJ;p_.exports.from=cAe;function NJ(e,r){r==null&&(r=!0);var t=e[0],a=e[1],n=e[2],i=e[3];i==null&&(i=r?1:255),r&&(t*=255,a*=255,n*=255,i*=255),t=d_(t,0,255)&255,a=d_(a,0,255)&255,n=d_(n,0,255)&255,i=d_(i,0,255)&255;var o=t*16777216+(a<<16)+(n<<8)+i;return o}function cAe(e,r){e=+e;var t=e>>>24,a=(e&16711680)>>>16,n=(e&65280)>>>8,i=e&255;return r===!1?[t,a,n,i]:[t/255,a/255,n/255,i/255]}});var ti=P((LPe,BJ)=>{"use strict";var IJ=Object.getOwnPropertySymbols,vAe=Object.prototype.hasOwnProperty,hAe=Object.prototype.propertyIsEnumerable;function dAe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function pAe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}BJ.exports=pAe()?Object.assign:function(e,r){for(var t,a=dAe(e),n,i=1;i{zJ.exports=function(e){typeof e=="string"&&(e=[e]);for(var r=[].slice.call(arguments,1),t=[],a=0;a{"use strict";UJ.exports=function(r,t,a){Array.isArray(a)||(a=[].slice.call(arguments,2));for(var n=0,i=a.length;n{"use strict";HJ.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var m_=P((qPe,D1)=>{"use strict";D1.exports=Yy;D1.exports.float32=D1.exports.float=Yy;D1.exports.fract32=D1.exports.fract=mAe;var YJ=new Float32Array(1);function mAe(e,r){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);r instanceof Float32Array||(r=Yy(e));for(var t=0,a=r.length;t{"use strict";function yAe(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var a,n,i,o,l=[],s=!0,f=!1;try{if(i=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;s=!1}else for(;!(s=(a=i.call(t)).done)&&(l.push(a.value),l.length!==r);s=!0);}catch(u){f=!0,n=u}finally{try{if(!s&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(f)throw n}}return l}}function gAe(e,r){return _Ae(e)||yAe(e,r)||jJ(e,r)||TAe()}function bAe(e){return xAe(e)||wAe(e)||jJ(e)||AAe()}function xAe(e){if(Array.isArray(e))return l7(e)}function _Ae(e){if(Array.isArray(e))return e}function wAe(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jJ(e,r){if(e){if(typeof e=="string")return l7(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l7(e,r)}}function l7(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t{"use strict";var gwe=nm(),bwe=jT(),xwe=pY(),_we=ZT(),FZ=Hx();RZ.exports=wwe;function wwe(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(FZ(_we(e),"String is not an SVG path."),e=gwe(e)),FZ(Array.isArray(e),"Argument should be a string or an array of path segments."),e=bwe(e),e=xwe(e),!e.length)return[0,0,0,0];for(var r=[1/0,1/0,-1/0,-1/0],t=0,a=e.length;tr[2]&&(r[2]=n[i+0]),n[i+1]>r[3]&&(r[3]=n[i+1]);return r}});var zZ=P((gPe,BZ)=>{var fh=Math.PI,PZ=IZ(120);BZ.exports=Awe;function Awe(e){for(var r,t=[],a=0,n=0,i=0,o=0,l=null,s=null,f=0,u=0,c=0,v=e.length;c7&&(t.push(d.splice(0,7)),d.unshift("C"));break;case"S":var g=f,m=u;(r=="C"||r=="S")&&(g+=g-a,m+=m-n),d=["C",g,m,d[1],d[2],d[3],d[4]];break;case"T":r=="Q"||r=="T"?(l=f*2-l,s=u*2-s):(l=f,s=u),d=NZ(f,u,l,s,d[1],d[2]);break;case"Q":l=d[1],s=d[2],d=NZ(f,u,d[1],d[2],d[3],d[4]);break;case"L":d=o_(f,u,d[1],d[2]);break;case"H":d=o_(f,u,d[1],u);break;case"V":d=o_(f,u,f,d[1]);break;case"Z":d=o_(f,u,i,o);break}r=p,f=d[d.length-2],u=d[d.length-1],d.length>4?(a=d[d.length-4],n=d[d.length-3]):(a=f,n=u),t.push(d)}return t}function o_(e,r,t,a){return["C",e,r,t,a,t,a]}function NZ(e,r,t,a,n,i){return["C",e/3+2/3*t,r/3+2/3*a,n/3+2/3*t,i/3+2/3*a,n,i]}function OZ(e,r,t,a,n,i,o,l,s,f){if(f)_=f[0],x=f[1],b=f[2],A=f[3];else{var u=J8(e,r,-n);e=u.x,r=u.y,u=J8(l,s,-n),l=u.x,s=u.y;var c=(e-l)/2,v=(r-s)/2,d=c*c/(t*t)+v*v/(a*a);d>1&&(d=Math.sqrt(d),t=d*t,a=d*a);var p=t*t,g=a*a,m=(i==o?-1:1)*Math.sqrt(Math.abs((p*g-p*v*v-g*c*c)/(p*v*v+g*c*c)));m==1/0&&(m=1);var b=m*t*v/a+(e+l)/2,A=m*-a*c/t+(r+s)/2,_=Math.asin(((r-A)/a).toFixed(9)),x=Math.asin(((s-A)/a).toFixed(9));_=ex&&(_=_-fh*2),!o&&x>_&&(x=x-fh*2)}if(Math.abs(x-_)>PZ){var T=x,E=l,S=s;x=_+PZ*(o&&x>_?1:-1),l=b+t*Math.cos(x),s=A+a*Math.sin(x);var k=OZ(l,s,t,a,n,0,o,E,S,[x,T,b,A])}var F=Math.tan((x-_)/4),O=4/3*t*F,I=4/3*a*F,R=[2*e-(e+O*Math.sin(_)),2*r-(r-I*Math.cos(_)),l+O*Math.sin(x),s-I*Math.cos(x),l,s];if(f)return R;k&&(R=R.concat(k));for(var H=0;H{var Twe=jT(),Mwe=zZ(),Swe={M:"moveTo",C:"bezierCurveTo"};GZ.exports=function(e,r){e.beginPath(),Mwe(Twe(r)).forEach(function(t){var a=t[0],n=t.slice(1);e[Swe[a]].apply(e,n)}),e.closePath()}});var WZ=P((xPe,YZ)=>{"use strict";var Ewe=xy();YZ.exports=kwe;var Yy=1e20;function kwe(e,r){r||(r={});var t=r.cutoff==null?.25:r.cutoff,a=r.radius==null?8:r.radius,n=r.channel||0,i,o,l,s,f,u,c,v,d,p,g;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!r.width||!r.height)throw Error("For raw data width and height should be provided by options");i=r.width,o=r.height,s=e,r.stride?u=r.stride:u=Math.floor(e.length/i/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(v=e,c=v.getContext("2d"),i=v.width,o=v.height,d=c.getImageData(0,0,i,o),s=d.data,u=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(v=e.canvas,c=e,i=v.width,o=v.height,d=c.getImageData(0,0,i,o),s=d.data,u=4):window.ImageData&&e instanceof window.ImageData&&(d=e,i=e.width,o=e.height,s=d.data,u=4);if(l=Math.max(i,o),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(f=s,s=Array(i*o),p=0,g=f.length;p{"use strict";var Cwe=qZ(),Lwe=nm(),Dwe=UZ(),Fwe=ZT(),Rwe=WZ(),$8=document.createElement("canvas"),No=$8.getContext("2d");jZ.exports=qwe;function qwe(e,r){if(!Fwe(e))throw Error("Argument should be valid svg path string");r||(r={});var t,a;r.shape?(t=r.shape[0],a=r.shape[1]):(t=$8.width=r.w||r.width||200,a=$8.height=r.h||r.height||200);var n=Math.min(t,a),i=r.stroke||0,o=r.viewbox||r.viewBox||Cwe(e),l=[t/(o[2]-o[0]),a/(o[3]-o[1])],s=Math.min(l[0]||0,l[1]||0)/2;if(No.fillStyle="black",No.fillRect(0,0,t,a),No.fillStyle="white",i&&(typeof i!="number"&&(i=1),i>0?No.strokeStyle="white":No.strokeStyle="black",No.lineWidth=Math.abs(i)),No.translate(t*.5,a*.5),No.scale(s,s),Pwe()){var f=new Path2D(e);No.fill(f),i&&No.stroke(f)}else{var u=Lwe(e);Dwe(No,u),No.fill(),i&&No.stroke()}No.setTransform(1,0,0,1,0,0);var c=Rwe(No,{cutoff:r.cutoff!=null?r.cutoff:.5,radius:r.radius!=null?r.radius:n*.5});return c}var l_;function Pwe(){if(l_!=null)return l_;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return l_=!1;var r=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(r);var t=e.getImageData(0,0,1,1);return l_=t&&t.data&&t.data[3]===255}});var Q8=P((wPe,ZZ)=>{"use strict";ZZ.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var KZ=P((APe,QZ)=>{"use strict";var JZ=Q8();QZ.exports=Nwe;var $Z={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Nwe(e){var r,t=[],a=1,n;if(typeof e=="string")if(e=e.toLowerCase(),JZ[e])t=JZ[e].slice(),n="rgb";else if(e==="transparent")a=0,n="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var i=e.slice(1),o=i.length,l=o<=4;a=1,l?(t=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],o===4&&(a=parseInt(i[3]+i[3],16)/255)):(t=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],o===8&&(a=parseInt(i[6]+i[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),n="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=r[1],f=s==="rgb",i=s.replace(/a$/,"");n=i;var o=i==="cmyk"?4:i==="gray"?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(v,d){if(/%$/.test(v))return d===o?parseFloat(v)/100:i==="rgb"?parseFloat(v)*255/100:parseFloat(v);if(i[d]==="h"){if(/deg$/.test(v))return parseFloat(v);if($Z[v]!==void 0)return $Z[v]}return parseFloat(v)}),s===i&&t.push(1),a=f||t[o]===void 0?1:t[o],t=t.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(t=e.match(/([0-9]+)/g).map(function(u){return parseFloat(u)}),n=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(t=[e[0],e[1],e[2]],n="rgb",a=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(n="rgb",t=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(n="hsl",t=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),a=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(a/=100)):(n="rgb",t=[e>>>16,(e&65280)>>>8,e&255]);return{space:n,values:t,alpha:a}}});var rJ=P((TPe,eJ)=>{"use strict";var Owe=KZ();eJ.exports=function(r){Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var t,a,n,i=Owe(r);if(!i.space)return[];var o=[0,0,0],l=i.space[0]==="h"?[360,100,100]:[255,255,255];return t=Array(3),t[0]=Math.min(Math.max(i.values[0],o[0]),l[0]),t[1]=Math.min(Math.max(i.values[1],o[1]),l[1]),t[2]=Math.min(Math.max(i.values[2],o[2]),l[2]),i.space[0]==="h"&&(t=Iwe(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t};function Iwe(e){var r=e[0]/360,t=e[1]/100,a=e[2]/100,n,i,o,l,s,f=0;if(t===0)return s=a*255,[s,s,s];for(i=a<.5?a*(1+t):a+t-a*t,n=2*a-i,l=[0,0,0];f<3;)o=r+1/3*-(f-1),o<0?o++:o>1&&o--,s=6*o<1?n+(i-n)*6*o:2*o<1?i:3*o<2?n+(i-n)*(2/3-o)*6:n,l[f++]=s*255;return l}});var uh=P((MPe,tJ)=>{"use strict";var Bwe=rJ(),s_=xy(),zwe=cx();tJ.exports=function(r,t){(t==="float"||!t)&&(t="array"),t==="uint"&&(t="uint8"),t==="uint_clamped"&&(t="uint8_clamped");var a=zwe(t),n=new a(4),i=t!=="uint8"&&t!=="uint8_clamped";return(!r.length||typeof r=="string")&&(r=Bwe(r),r[0]/=255,r[1]/=255,r[2]/=255),Gwe(r)?(n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3]!=null?r[3]:255,i&&(n[0]/=255,n[1]/=255,n[2]/=255,n[3]/=255),n):(i?(n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3]!=null?r[3]:1):(n[0]=s_(Math.floor(r[0]*255),0,255),n[1]=s_(Math.floor(r[1]*255),0,255),n[2]=s_(Math.floor(r[2]*255),0,255),n[3]=r[3]==null?255:s_(Math.floor(r[3]*255),0,255)),n)};function Gwe(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var uJ=P((SPe,fJ)=>{"use strict";var lJ=ya(),Uwe=Es(),f_=uh(),u_=gd(),Hwe=wf().defaultLine,aJ=Vo().isArrayOrTypedArray,K8=f_(Hwe),sJ=1;function nJ(e,r){var t=e;return t[3]*=r,t}function iJ(e){if(lJ(e))return K8;var r=f_(e);return r.length?r:K8}function oJ(e){return lJ(e)?e:sJ}function Vwe(e,r,t){var a=e.color;a&&a._inputArray&&(a=a._inputArray);var n=aJ(a),i=aJ(r),o=u_.extractOpts(e),l=[],s,f,u,c,v;if(o.colorscale!==void 0?s=u_.makeColorScaleFuncFromTrace(e):s=iJ,n?f=function(p,g){return p[g]===void 0?K8:f_(s(p[g]))}:f=iJ,i?u=function(p,g){return p[g]===void 0?sJ:oJ(p[g])}:u=oJ,n||i)for(var d=0;d{"use strict";var v_=ya(),Wwe=XZ(),c_=uh(),jwe=Bt(),kp=Ur(),Vn=kp.isArrayOrTypedArray,Sp=Wa(),cJ=Sn(),vJ=uJ().formatColor,Ep=qi(),Xwe=I4(),r7=fx(),Wy=fp(),Zwe=$h().DESELECTDIM,hJ={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},Jwe=Cu().appendArrayPointValue;function $we(e,r){var t,a={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},n=e._context.plotGlPixelRatio;if(r.visible!==!0)return a;if(Ep.hasText(r)&&(a.text=xJ(e,r),a.textSel=pJ(e,r,r.selected),a.textUnsel=pJ(e,r,r.unselected)),Ep.hasMarkers(r)&&(a.marker=a7(e,r),a.markerSel=t7(e,r,r.selected),a.markerUnsel=t7(e,r,r.unselected),!r.unselected&&Vn(r.marker.opacity))){var i=r.marker.opacity;for(a.markerUnsel.opacity=new Array(i.length),t=0;t500?"bold":"normal":e}function a7(e,r){var t=r._length,a=r.marker,n={},i,o=Vn(a.symbol),l=Vn(a.angle),s=Vn(a.color),f=Vn(a.line.color),u=Vn(a.opacity),c=Vn(a.size),v=Vn(a.line.width),d;if(o||(d=r7.isOpenSymbol(a.symbol)),o||s||f||u||l){n.symbols=new Array(t),n.angles=new Array(t),n.colors=new Array(t),n.borderColors=new Array(t);var p=a.symbol,g=a.angle,m=vJ(a,a.opacity,t),b=vJ(a.line,a.opacity,t);if(!Vn(b[0])){var A=b;for(b=Array(t),i=0;iWy.TOO_MANY_POINTS||Ep.hasMarkers(r)?"rect":"round";if(f&&r.connectgaps){var c=i[0],v=i[1];for(o=0;o1?s[o]:s[0]:s,d=Vn(f)?f.length>1?f[o]:f[0]:f,p=hJ[v],g=hJ[d],m=u?u/.8+1:0,b=-g*m-g*.5;i.offset[o]=[p*m/c,b/c]}}return i}_J.exports={style:$we,markerStyle:a7,markerSelection:t7,linePositions:Kwe,errorBarPositions:eAe,textPosition:rAe}});var AJ=P((kPe,wJ)=>{"use strict";var h_=Ur();wJ.exports=function(r,t){var a=t._scene,n={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},i={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return t._scene||(a=t._scene={},a.init=function(){h_.extendFlat(a,i,n)},a.init(),a.update=function(l){var s=h_.repeat(l,a.count);if(a.fill2d&&a.fill2d.update(s),a.scatter2d&&a.scatter2d.update(s),a.line2d&&a.line2d.update(s),a.error2d&&a.error2d.update(s.concat(s)),a.select2d&&a.select2d.update(s),a.glText)for(var f=0;f{"use strict";var tAe=WT(),Cp=Ur(),TJ=Sn(),aAe=Ad().findExtremes,MJ=b6(),n7=Yd(),nAe=n7.calcMarkerSize,iAe=n7.calcAxisExpansion,oAe=n7.setFirstScatter,lAe=Km(),Lp=jy(),sAe=AJ(),SJ=Qn().BADNUM,fAe=fp().TOO_MANY_POINTS;kJ.exports=function(r,t){var a=r._fullLayout,n=t._xA=TJ.getFromId(r,t.xaxis,"x"),i=t._yA=TJ.getFromId(r,t.yaxis,"y"),o=a._plots[t.xaxis+t.yaxis],l=t._length,s=l>=fAe,f=l*2,u={},c,v=n.makeCalcdata(t,"x"),d=i.makeCalcdata(t,"y"),p=MJ(t,n,"x",v),g=MJ(t,i,"y",d),m=p.vals,b=g.vals;t._x=m,t._y=b,t.xperiodalignment&&(t._origX=v,t._xStarts=p.starts,t._xEnds=p.ends),t.yperiodalignment&&(t._origY=d,t._yStarts=g.starts,t._yEnds=g.ends);var A=new Array(f),_=new Array(l);for(c=0;c1&&Cp.extendFlat(o.line,Lp.linePositions(e,t,a)),o.errorX||o.errorY){var l=Lp.errorBarPositions(e,t,a,n,i);o.errorX&&Cp.extendFlat(o.errorX,l.x),o.errorY&&Cp.extendFlat(o.errorY,l.y)}return o.text&&(Cp.extendFlat(o.text,{positions:a},Lp.textPosition(e,t,o.text,o.marker)),Cp.extendFlat(o.textSel,{positions:a},Lp.textPosition(e,t,o.text,o.markerSel)),Cp.extendFlat(o.textUnsel,{positions:a},Lp.textPosition(e,t,o.text,o.markerUnsel))),o}});var i7=P((LPe,DJ)=>{"use strict";var LJ=Ur(),cAe=va(),vAe=$h().DESELECTDIM;function hAe(e){var r=e[0],t=r.trace,a=r.t,n=a._scene,i=a.index,o=n.selectBatch[i],l=n.unselectBatch[i],s=n.textOptions[i],f=n.textSelectedOptions[i]||{},u=n.textUnselectedOptions[i]||{},c=LJ.extendFlat({},s),v,d;if(o.length||l.length){var p=f.color,g=u.color,m=s.color,b=LJ.isArrayOrTypedArray(m);for(c.color=new Array(t._length),v=0;v{"use strict";var FJ=qi(),dAe=i7().styleTextSelection;RJ.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s=a[0].t,f=l._length,u=s.x,c=s.y,v=s._scene,d=s.index;if(!v)return o;var p=FJ.hasText(l),g=FJ.hasMarkers(l),m=!g&&!p;if(l.visible!==!0||m)return o;var b=[],A=[];if(t!==!1&&!t.degenerate)for(var _=0;_{"use strict";var pAe=GT();PJ.exports={moduleType:"trace",name:"scattergl",basePlotModule:oy(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:sx(),supplyDefaults:NV(),crossTraceDefaults:g6(),colorbar:Mb(),formatLabels:IV(),calc:CJ(),hoverPoints:pAe.hoverPoints,selectPoints:qJ(),meta:{}}});var IJ=P((RPe,p_)=>{"use strict";var d_=xy();p_.exports=OJ;p_.exports.to=OJ;p_.exports.from=mAe;function OJ(e,r){r==null&&(r=!0);var t=e[0],a=e[1],n=e[2],i=e[3];i==null&&(i=r?1:255),r&&(t*=255,a*=255,n*=255,i*=255),t=d_(t,0,255)&255,a=d_(a,0,255)&255,n=d_(n,0,255)&255,i=d_(i,0,255)&255;var o=t*16777216+(a<<16)+(n<<8)+i;return o}function mAe(e,r){e=+e;var t=e>>>24,a=(e&16711680)>>>16,n=(e&65280)>>>8,i=e&255;return r===!1?[t,a,n,i]:[t/255,a/255,n/255,i/255]}});var ni=P((qPe,zJ)=>{"use strict";var BJ=Object.getOwnPropertySymbols,yAe=Object.prototype.hasOwnProperty,gAe=Object.prototype.propertyIsEnumerable;function bAe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function xAe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}zJ.exports=xAe()?Object.assign:function(e,r){for(var t,a=bAe(e),n,i=1;i{GJ.exports=function(e){typeof e=="string"&&(e=[e]);for(var r=[].slice.call(arguments,1),t=[],a=0;a{"use strict";HJ.exports=function(r,t,a){Array.isArray(a)||(a=[].slice.call(arguments,2));for(var n=0,i=a.length;n{"use strict";VJ.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var m_=P((IPe,Dp)=>{"use strict";Dp.exports=Xy;Dp.exports.float32=Dp.exports.float=Xy;Dp.exports.fract32=Dp.exports.fract=_Ae;var WJ=new Float32Array(1);function _Ae(e,r){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);r instanceof Float32Array||(r=Xy(e));for(var t=0,a=r.length;t{"use strict";function wAe(e,r){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var a,n,i,o,l=[],s=!0,f=!1;try{if(i=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;s=!1}else for(;!(s=(a=i.call(t)).done)&&(l.push(a.value),l.length!==r);s=!0);}catch(u){f=!0,n=u}finally{try{if(!s&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(f)throw n}}return l}}function AAe(e,r){return SAe(e)||wAe(e,r)||XJ(e,r)||CAe()}function TAe(e){return MAe(e)||EAe(e)||XJ(e)||kAe()}function MAe(e){if(Array.isArray(e))return l7(e)}function SAe(e){if(Array.isArray(e))return e}function EAe(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function XJ(e,r){if(e){if(typeof e=="string")return l7(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return l7(e,r)}}function l7(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);toe)?Z.tree=kAe(J,{bounds:Ye}):oe&&oe.length&&(Z.tree=oe),Z.tree){var we={primitive:"points",usage:"static",data:Z.tree,type:"uint32"};Z.elements?Z.elements(we):Z.elements=o.elements(we)}var Qe=g_.float32(J);ce({data:Qe,usage:"dynamic"});var ze=g_.fract32(J,Qe);return De({data:ze,usage:"dynamic"}),Ne({data:new Uint8Array(Ee),type:"uint8",usage:"stream"}),J}},{marker:function(J,Z,$){var oe=Z.activation;if(oe.forEach(function(ze){return ze&&ze.destroy&&ze.destroy()}),oe.length=0,!J||typeof J[0]=="number"){var ce=e.addMarker(J);oe[ce]=!0}else{for(var De=[],Ne=0,Ee=Math.min(J.length,Z.count);Ne=0)return n;var i;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)i=e;else{i=new Uint8Array(e.length);for(var o=0,l=e.length;oa*4&&(this.tooManyColors=!0),this.updatePalette(t),n.length===1?n[0]:n};Hi.prototype.updatePalette=function(e){if(!this.tooManyColors){var r=this.maxColors,t=this.paletteTexture,a=Math.ceil(e.length*.25/r);if(a>1){e=e.slice();for(var n=e.length*.25%r;n{"use strict";v7.exports=__;v7.exports.default=__;function __(e,r,t){t=t||2;var a=r&&r.length,n=a?r[0]*t:e.length,i=JJ(e,0,n,t,!0),o=[];if(!i||i.next===i.prev)return o;var l,s,f,u,c,v,d;if(a&&(i=zAe(e,r,i,t)),e.length>80*t){l=f=e[0],s=u=e[1];for(var p=t;pf&&(f=c),v>u&&(u=v);d=Math.max(f-l,u-s),d=d!==0?32767/d:0}return Wy(i,o,t,l,s,d,0),o}function JJ(e,r,t,a,n){var i,o;if(n===c7(e,r,t,a)>0)for(i=r;i=r;i-=a)o=ZJ(i,e[i],e[i+1],o);return o&&w_(o,o.next)&&(Xy(o),o=o.next),o}function vh(e,r){if(!e)return e;r||(r=e);var t=e,a;do if(a=!1,!t.steiner&&(w_(t,t.next)||Vn(t.prev,t,t.next)===0)){if(Xy(t),t=r=t.prev,t===t.next)break;a=!0}else t=t.next;while(a||t!==r);return r}function Wy(e,r,t,a,n,i,o){if(e){!o&&i&&YAe(e,a,n,i);for(var l=e,s,f;e.prev!==e.next;){if(s=e.prev,f=e.next,i?OAe(e,a,n,i):NAe(e)){r.push(s.i/t|0),r.push(e.i/t|0),r.push(f.i/t|0),Xy(e),e=f.next,l=f.next;continue}if(e=f,e===l){o?o===1?(e=IAe(vh(e),r,t),Wy(e,r,t,a,n,i,2)):o===2&&BAe(e,r,t,a,n,i):Wy(vh(e),r,t,a,n,i,1);break}}}}function NAe(e){var r=e.prev,t=e,a=e.next;if(Vn(r,t,a)>=0)return!1;for(var n=r.x,i=t.x,o=a.x,l=r.y,s=t.y,f=a.y,u=ni?n>o?n:o:i>o?i:o,d=l>s?l>f?l:f:s>f?s:f,p=a.next;p!==r;){if(p.x>=u&&p.x<=v&&p.y>=c&&p.y<=d&&F1(n,l,i,s,o,f,p.x,p.y)&&Vn(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function OAe(e,r,t,a){var n=e.prev,i=e,o=e.next;if(Vn(n,i,o)>=0)return!1;for(var l=n.x,s=i.x,f=o.x,u=n.y,c=i.y,v=o.y,d=ls?l>f?l:f:s>f?s:f,m=u>c?u>v?u:v:c>v?c:v,b=f7(d,p,r,t,a),A=f7(g,m,r,t,a),_=e.prevZ,x=e.nextZ;_&&_.z>=b&&x&&x.z<=A;){if(_.x>=d&&_.x<=g&&_.y>=p&&_.y<=m&&_!==n&&_!==o&&F1(l,u,s,c,f,v,_.x,_.y)&&Vn(_.prev,_,_.next)>=0||(_=_.prevZ,x.x>=d&&x.x<=g&&x.y>=p&&x.y<=m&&x!==n&&x!==o&&F1(l,u,s,c,f,v,x.x,x.y)&&Vn(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;_&&_.z>=b;){if(_.x>=d&&_.x<=g&&_.y>=p&&_.y<=m&&_!==n&&_!==o&&F1(l,u,s,c,f,v,_.x,_.y)&&Vn(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;x&&x.z<=A;){if(x.x>=d&&x.x<=g&&x.y>=p&&x.y<=m&&x!==n&&x!==o&&F1(l,u,s,c,f,v,x.x,x.y)&&Vn(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function IAe(e,r,t){var a=e;do{var n=a.prev,i=a.next.next;!w_(n,i)&&$J(n,a,a.next,i)&&jy(n,i)&&jy(i,n)&&(r.push(n.i/t|0),r.push(a.i/t|0),r.push(i.i/t|0),Xy(a),Xy(a.next),a=e=i),a=a.next}while(a!==e);return vh(a)}function BAe(e,r,t,a,n,i){var o=e;do{for(var l=o.next.next;l!==o.prev;){if(o.i!==l.i&&XAe(o,l)){var s=QJ(o,l);o=vh(o,o.next),s=vh(s,s.next),Wy(o,r,t,a,n,i,0),Wy(s,r,t,a,n,i,0);return}l=l.next}o=o.next}while(o!==e)}function zAe(e,r,t,a){var n=[],i,o,l,s,f;for(i=0,o=r.length;i=t.next.y&&t.next.y!==t.y){var l=t.x+(n-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(l<=a&&l>i&&(i=l,o=t.x=t.x&&t.x>=f&&a!==t.x&&F1(no.x||t.x===o.x&&VAe(o,t)))&&(o=t,c=v)),t=t.next;while(t!==s);return o}function VAe(e,r){return Vn(e.prev,e,r.prev)<0&&Vn(r.next,e,e.next)<0}function YAe(e,r,t,a){var n=e;do n.z===0&&(n.z=f7(n.x,n.y,r,t,a)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next;while(n!==e);n.prevZ.nextZ=null,n.prevZ=null,WAe(n)}function WAe(e){var r,t,a,n,i,o,l,s,f=1;do{for(t=e,e=null,i=null,o=0;t;){for(o++,a=t,l=0,r=0;r0||s>0&&a;)l!==0&&(s===0||!a||t.z<=a.z)?(n=t,t=t.nextZ,l--):(n=a,a=a.nextZ,s--),i?i.nextZ=n:e=n,n.prevZ=i,i=n;t=a}i.nextZ=null,f*=2}while(o>1);return e}function f7(e,r,t,a,n){return e=(e-t)*n|0,r=(r-a)*n|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,e|r<<1}function jAe(e){var r=e,t=e;do(r.x=(e-o)*(i-l)&&(e-o)*(a-l)>=(t-o)*(r-l)&&(t-o)*(i-l)>=(n-o)*(a-l)}function XAe(e,r){return e.next.i!==r.i&&e.prev.i!==r.i&&!ZAe(e,r)&&(jy(e,r)&&jy(r,e)&&JAe(e,r)&&(Vn(e.prev,e,r.prev)||Vn(e,r.prev,r))||w_(e,r)&&Vn(e.prev,e,e.next)>0&&Vn(r.prev,r,r.next)>0)}function Vn(e,r,t){return(r.y-e.y)*(t.x-r.x)-(r.x-e.x)*(t.y-r.y)}function w_(e,r){return e.x===r.x&&e.y===r.y}function $J(e,r,t,a){var n=x_(Vn(e,r,t)),i=x_(Vn(e,r,a)),o=x_(Vn(t,a,e)),l=x_(Vn(t,a,r));return!!(n!==i&&o!==l||n===0&&b_(e,t,r)||i===0&&b_(e,a,r)||o===0&&b_(t,e,a)||l===0&&b_(t,r,a))}function b_(e,r,t){return r.x<=Math.max(e.x,t.x)&&r.x>=Math.min(e.x,t.x)&&r.y<=Math.max(e.y,t.y)&&r.y>=Math.min(e.y,t.y)}function x_(e){return e>0?1:e<0?-1:0}function ZAe(e,r){var t=e;do{if(t.i!==e.i&&t.next.i!==e.i&&t.i!==r.i&&t.next.i!==r.i&&$J(t,t.next,e,r))return!0;t=t.next}while(t!==e);return!1}function jy(e,r){return Vn(e.prev,e,e.next)<0?Vn(e,r,e.next)>=0&&Vn(e,e.prev,r)>=0:Vn(e,r,e.prev)<0||Vn(e,e.next,r)<0}function JAe(e,r){var t=e,a=!1,n=(e.x+r.x)/2,i=(e.y+r.y)/2;do t.y>i!=t.next.y>i&&t.next.y!==t.y&&n<(t.next.x-t.x)*(i-t.y)/(t.next.y-t.y)+t.x&&(a=!a),t=t.next;while(t!==e);return a}function QJ(e,r){var t=new u7(e.i,e.x,e.y),a=new u7(r.i,r.x,r.y),n=e.next,i=r.prev;return e.next=r,r.prev=e,t.next=n,n.prev=t,a.next=t,t.prev=a,i.next=a,a.prev=i,a}function ZJ(e,r,t,a){var n=new u7(e,r,t);return a?(n.next=a.next,n.prev=a,a.next.prev=n,a.next=n):(n.prev=n,n.next=n),n}function Xy(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function u7(e,r,t){this.i=e,this.x=r,this.y=t,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}__.deviation=function(e,r,t,a){var n=r&&r.length,i=n?r[0]*t:e.length,o=Math.abs(c7(e,0,i,t));if(n)for(var l=0,s=r.length;l0&&(a+=e[n-1].length,t.holes.push(a))}return t}});var r$=P((OPe,e$)=>{"use strict";var $Ae=rh();e$.exports=QAe;function QAe(e,r,t){if(!e||e.length==null)throw Error("Argument should be an array");r==null&&(r=1),t==null&&(t=$Ae(e,r));for(var a=0;a{"use strict";t$.exports=function(){var e,r;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[r={},"one"],[{},"two"],[{},"three"]])}catch(t){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(r)!=="one")}});var i$=P((BPe,n$)=>{"use strict";n$.exports=function(){}});var dv=P((zPe,o$)=>{"use strict";var KAe=i$()();o$.exports=function(e){return e!==KAe&&e!==null}});var h7=P((GPe,s$)=>{"use strict";var e6e=Object.create,r6e=Object.getPrototypeOf,l$={};s$.exports=function(){var e=Object.setPrototypeOf,r=arguments[0]||e6e;return typeof e!="function"?!1:r6e(e(r(null),l$))===l$}});var d7=P((UPe,f$)=>{"use strict";var t6e=dv(),a6e={function:!0,object:!0};f$.exports=function(e){return t6e(e)&&a6e[typeof e]||!1}});var Gu=P((HPe,u$)=>{"use strict";var n6e=dv();u$.exports=function(e){if(!n6e(e))throw new TypeError("Cannot use null or undefined");return e}});var v$=P((VPe,c$)=>{"use strict";var p7=Object.create,A_;h7()()||(A_=m7());c$.exports=function(){var e,r,t;return!A_||A_.level!==1?p7:(e={},r={},t={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(a){if(a==="__proto__"){r[a]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}r[a]=t}),Object.defineProperties(e,r),Object.defineProperty(A_,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(a,n){return p7(a===null?e:a,n)})}()});var m7=P((YPe,h$)=>{"use strict";var i6e=d7(),o6e=Gu(),l6e=Object.prototype.isPrototypeOf,s6e=Object.defineProperty,f6e={configurable:!0,enumerable:!1,writable:!0,value:void 0},T_;T_=function(e,r){if(o6e(e),r===null||i6e(r))return e;throw new TypeError("Prototype must be null or an object")};h$.exports=function(e){var r,t;return e?(e.level===2?e.set?(t=e.set,r=function(a,n){return t.call(T_(a,n),n),a}):r=function(a,n){return T_(a,n).__proto__=n,a}:r=function a(n,i){var o;return T_(n,i),o=l6e.call(a.nullPolyfill,n),o&&delete a.nullPolyfill.__proto__,i===null&&(i=a.nullPolyfill),n.__proto__=i,o&&s6e(a.nullPolyfill,"__proto__",f6e),n},Object.defineProperty(r,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null}(function(){var e=Object.create(null),r={},t,a=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(a){try{t=a.set,t.call(e,r)}catch(n){}if(Object.getPrototypeOf(e)===r)return{set:t,level:2}}return e.__proto__=r,Object.getPrototypeOf(e)===r?{level:2}:(e={},e.__proto__=r,Object.getPrototypeOf(e)===r?{level:1}:!1)}());v$()});var M_=P((WPe,d$)=>{"use strict";d$.exports=h7()()?Object.setPrototypeOf:m7()});var m$=P((jPe,p$)=>{"use strict";var u6e=d7();p$.exports=function(e){if(!u6e(e))throw new TypeError(e+" is not an Object");return e}});var g$=P((XPe,y$)=>{"use strict";var c6e=Object.create(null),v6e=Math.random;y$.exports=function(){var e;do e=v6e().toString(36).slice(2);while(c6e[e]);return e}});var hh=P((ZPe,b$)=>{"use strict";var h6e=void 0;b$.exports=function(e){return e!==h6e&&e!==null}});var S_=P((JPe,x$)=>{"use strict";var d6e=hh(),p6e={object:!0,function:!0,undefined:!0};x$.exports=function(e){return d6e(e)?hasOwnProperty.call(p6e,typeof e):!1}});var w$=P(($Pe,_$)=>{"use strict";var m6e=S_();_$.exports=function(e){if(!m6e(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(r){return!1}}});var T$=P((QPe,A$)=>{"use strict";var y6e=w$();A$.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(r){return!1}return!y6e(e)}});var y7=P((KPe,M$)=>{"use strict";var g6e=T$(),b6e=/^\s*class[\s{/}]/,x6e=Function.prototype.toString;M$.exports=function(e){return!(!g6e(e)||b6e.test(x6e.call(e)))}});var E$=P((eNe,S$)=>{"use strict";S$.exports=function(){var e=Object.assign,r;return typeof e!="function"?!1:(r={foo:"raz"},e(r,{bar:"dwa"},{trzy:"trzy"}),r.foo+r.bar+r.trzy==="razdwatrzy")}});var C$=P((rNe,k$)=>{"use strict";k$.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var D$=P((tNe,L$)=>{"use strict";var _6e=dv(),w6e=Object.keys;L$.exports=function(e){return w6e(_6e(e)?Object(e):e)}});var R$=P((aNe,F$)=>{"use strict";F$.exports=C$()()?Object.keys:D$()});var P$=P((nNe,q$)=>{"use strict";var A6e=R$(),T6e=Gu(),M6e=Math.max;q$.exports=function(e,r){var t,a,n=M6e(arguments.length,2),i;for(e=Object(T6e(e)),i=function(o){try{e[o]=r[o]}catch(l){t||(t=l)}},a=1;a{"use strict";N$.exports=E$()()?Object.assign:P$()});var g7=P((oNe,O$)=>{"use strict";var S6e=dv(),E6e=Array.prototype.forEach,k6e=Object.create,C6e=function(e,r){var t;for(t in e)r[t]=e[t]};O$.exports=function(e){var r=k6e(null);return E6e.call(arguments,function(t){S6e(t)&&C6e(Object(t),r)}),r}});var B$=P((lNe,I$)=>{"use strict";var b7="razdwatrzy";I$.exports=function(){return typeof b7.contains!="function"?!1:b7.contains("dwa")===!0&&b7.contains("foo")===!1}});var G$=P((sNe,z$)=>{"use strict";var L6e=String.prototype.indexOf;z$.exports=function(e){return L6e.call(this,e,arguments[1])>-1}});var x7=P((fNe,U$)=>{"use strict";U$.exports=B$()()?String.prototype.contains:G$()});var Uu=P((uNe,W$)=>{"use strict";var k_=hh(),H$=y7(),V$=E_(),Y$=g7(),Zy=x7(),D6e=W$.exports=function(e,r){var t,a,n,i,o;return arguments.length<2||typeof e!="string"?(i=r,r=e,e=null):i=arguments[2],k_(e)?(t=Zy.call(e,"c"),a=Zy.call(e,"e"),n=Zy.call(e,"w")):(t=n=!0,a=!1),o={value:r,configurable:t,enumerable:a,writable:n},i?V$(Y$(i),o):o};D6e.gs=function(e,r,t){var a,n,i,o;return typeof e!="string"?(i=t,t=r,r=e,e=null):i=arguments[3],k_(r)?H$(r)?k_(t)?H$(t)||(i=t,t=void 0):t=void 0:(i=r,r=t=void 0):r=void 0,k_(e)?(a=Zy.call(e,"c"),n=Zy.call(e,"e")):(a=!0,n=!1),o={get:r,set:t,configurable:a,enumerable:n},i?V$(Y$(i),o):o}});var Jy=P((cNe,X$)=>{"use strict";var j$=Object.prototype.toString,F6e=j$.call(function(){return arguments}());X$.exports=function(e){return j$.call(e)===F6e}});var $y=P((vNe,J$)=>{"use strict";var Z$=Object.prototype.toString,R6e=Z$.call("");J$.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||Z$.call(e)===R6e)||!1}});var Q$=P((hNe,$$)=>{"use strict";$$.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var rQ=P((dNe,eQ)=>{var K$=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};eQ.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return K$()}try{return __global__||K$()}finally{delete Object.prototype.__global__}}()});var Qy=P((pNe,tQ)=>{"use strict";tQ.exports=Q$()()?globalThis:rQ()});var nQ=P((mNe,aQ)=>{"use strict";var q6e=Qy(),_7={object:!0,symbol:!0};aQ.exports=function(){var e=q6e.Symbol,r;if(typeof e!="function")return!1;r=e("test symbol");try{String(r)}catch(t){return!1}return!(!_7[typeof e.iterator]||!_7[typeof e.toPrimitive]||!_7[typeof e.toStringTag])}});var oQ=P((yNe,iQ)=>{"use strict";iQ.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var w7=P((gNe,lQ)=>{"use strict";var P6e=oQ();lQ.exports=function(e){if(!P6e(e))throw new TypeError(e+" is not a symbol");return e}});var vQ=P((bNe,cQ)=>{"use strict";var sQ=Uu(),N6e=Object.create,fQ=Object.defineProperty,O6e=Object.prototype,uQ=N6e(null);cQ.exports=function(e){for(var r=0,t,a;uQ[e+(r||"")];)++r;return e+=r||"",uQ[e]=!0,t="@@"+e,fQ(O6e,t,sQ.gs(null,function(n){a||(a=!0,fQ(this,t,sQ(n)),a=!1)})),t}});var dQ=P((xNe,hQ)=>{"use strict";var Ks=Uu(),ai=Qy().Symbol;hQ.exports=function(e){return Object.defineProperties(e,{hasInstance:Ks("",ai&&ai.hasInstance||e("hasInstance")),isConcatSpreadable:Ks("",ai&&ai.isConcatSpreadable||e("isConcatSpreadable")),iterator:Ks("",ai&&ai.iterator||e("iterator")),match:Ks("",ai&&ai.match||e("match")),replace:Ks("",ai&&ai.replace||e("replace")),search:Ks("",ai&&ai.search||e("search")),species:Ks("",ai&&ai.species||e("species")),split:Ks("",ai&&ai.split||e("split")),toPrimitive:Ks("",ai&&ai.toPrimitive||e("toPrimitive")),toStringTag:Ks("",ai&&ai.toStringTag||e("toStringTag")),unscopables:Ks("",ai&&ai.unscopables||e("unscopables"))})}});var yQ=P((_Ne,mQ)=>{"use strict";var pQ=Uu(),I6e=w7(),Ky=Object.create(null);mQ.exports=function(e){return Object.defineProperties(e,{for:pQ(function(r){return Ky[r]?Ky[r]:Ky[r]=e(String(r))}),keyFor:pQ(function(r){var t;I6e(r);for(t in Ky)if(Ky[t]===r)return t})})}});var xQ=P((wNe,bQ)=>{"use strict";var If=Uu(),A7=w7(),C_=Qy().Symbol,B6e=vQ(),z6e=dQ(),G6e=yQ(),U6e=Object.create,T7=Object.defineProperties,L_=Object.defineProperty,_o,R1,gQ;if(typeof C_=="function")try{String(C_()),gQ=!0}catch(e){}else C_=null;R1=function(r){if(this instanceof R1)throw new TypeError("Symbol is not a constructor");return _o(r)};bQ.exports=_o=function e(r){var t;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return gQ?C_(r):(t=U6e(R1.prototype),r=r===void 0?"":String(r),T7(t,{__description__:If("",r),__name__:If("",B6e(r))}))};z6e(_o);G6e(_o);T7(R1.prototype,{constructor:If(_o),toString:If("",function(){return this.__name__})});T7(_o.prototype,{toString:If(function(){return"Symbol ("+A7(this).__description__+")"}),valueOf:If(function(){return A7(this)})});L_(_o.prototype,_o.toPrimitive,If("",function(){var e=A7(this);return typeof e=="symbol"?e:e.toString()}));L_(_o.prototype,_o.toStringTag,If("c","Symbol"));L_(R1.prototype,_o.toStringTag,If("c",_o.prototype[_o.toStringTag]));L_(R1.prototype,_o.toPrimitive,If("c",_o.prototype[_o.toPrimitive]))});var pv=P((ANe,_Q)=>{"use strict";_Q.exports=nQ()()?Qy().Symbol:xQ()});var AQ=P((TNe,wQ)=>{"use strict";var H6e=Gu();wQ.exports=function(){return H6e(this).length=0,this}});var q1=P((MNe,TQ)=>{"use strict";TQ.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var SQ=P((SNe,MQ)=>{"use strict";var V6e=hh(),Y6e=S_(),W6e=Object.prototype.toString;MQ.exports=function(e){if(!V6e(e))return null;if(Y6e(e)){var r=e.toString;if(typeof r!="function"||r===W6e)return null}try{return""+e}catch(t){return null}}});var kQ=P((ENe,EQ)=>{"use strict";EQ.exports=function(e){try{return e.toString()}catch(r){try{return String(e)}catch(t){return null}}}});var LQ=P((kNe,CQ)=>{"use strict";var j6e=kQ(),X6e=/[\n\r\u2028\u2029]/g;CQ.exports=function(e){var r=j6e(e);return r===null?"":(r.length>100&&(r=r.slice(0,99)+"\u2026"),r=r.replace(X6e,function(t){switch(t){case` -`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),r)}});var M7=P((CNe,RQ)=>{"use strict";var DQ=hh(),Z6e=S_(),J6e=SQ(),$6e=LQ(),FQ=function(e,r){return e.replace("%v",$6e(r))};RQ.exports=function(e,r,t){if(!Z6e(t))throw new TypeError(FQ(r,e));if(!DQ(e)){if("default"in t)return t.default;if(t.isOptional)return null}var a=J6e(t.errorMessage);throw DQ(a)||(a=r),new TypeError(FQ(a,e))}});var PQ=P((LNe,qQ)=>{"use strict";var Q6e=M7(),K6e=hh();qQ.exports=function(e){return K6e(e)?e:Q6e(e,"Cannot use %v",arguments[1])}});var OQ=P((DNe,NQ)=>{"use strict";var eTe=M7(),rTe=y7();NQ.exports=function(e){return rTe(e)?e:eTe(e,"%v is not a plain function",arguments[1])}});var BQ=P((FNe,IQ)=>{"use strict";IQ.exports=function(){var e=Array.from,r,t;return typeof e!="function"?!1:(r=["raz","dwa"],t=e(r),!!(t&&t!==r&&t[1]==="dwa"))}});var GQ=P((RNe,zQ)=>{"use strict";var tTe=Object.prototype.toString,aTe=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);zQ.exports=function(e){return typeof e=="function"&&aTe(tTe.call(e))}});var HQ=P((qNe,UQ)=>{"use strict";UQ.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var YQ=P((PNe,VQ)=>{"use strict";VQ.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var jQ=P((NNe,WQ)=>{"use strict";WQ.exports=HQ()()?Math.sign:YQ()});var ZQ=P((ONe,XQ)=>{"use strict";var nTe=jQ(),iTe=Math.abs,oTe=Math.floor;XQ.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:nTe(e)*oTe(iTe(e)))}});var $Q=P((INe,JQ)=>{"use strict";var lTe=ZQ(),sTe=Math.max;JQ.exports=function(e){return sTe(0,lTe(e))}});var rK=P((BNe,eK)=>{"use strict";var fTe=pv().iterator,uTe=Jy(),cTe=GQ(),vTe=$Q(),QQ=q1(),hTe=Gu(),dTe=dv(),pTe=$y(),KQ=Array.isArray,S7=Function.prototype.call,dh={configurable:!0,enumerable:!0,writable:!0,value:null},E7=Object.defineProperty;eK.exports=function(e){var r=arguments[1],t=arguments[2],a,n,i,o,l,s,f,u,c,v;if(e=Object(hTe(e)),dTe(r)&&QQ(r),!this||this===Array||!cTe(this)){if(!r){if(uTe(e))return l=e.length,l!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(KQ(e)){for(o=new Array(l=e.length),n=0;n=55296&&s<=56319&&(v+=e[++n])),v=r?S7.call(r,t,v,i):v,a?(dh.value=v,E7(o,i,dh)):o[i]=v,++i;l=i}}if(l===void 0)for(l=vTe(e.length),a&&(o=new a(l)),n=0;n{"use strict";tK.exports=BQ()()?Array.from:rK()});var iK=P((GNe,nK)=>{"use strict";var mTe=aK(),yTe=E_(),gTe=Gu();nK.exports=function(e){var r=Object(gTe(e)),t=arguments[1],a=Object(arguments[2]);if(r!==e&&!t)return r;var n={};return t?mTe(t,function(i){(a.ensure||i in e)&&(n[i]=e[i])}):yTe(n,e),n}});var sK=P((UNe,lK)=>{"use strict";var bTe=q1(),xTe=Gu(),_Te=Function.prototype.bind,oK=Function.prototype.call,wTe=Object.keys,ATe=Object.prototype.propertyIsEnumerable;lK.exports=function(e,r){return function(t,a){var n,i=arguments[2],o=arguments[3];return t=Object(xTe(t)),bTe(a),n=wTe(t),o&&n.sort(typeof o=="function"?_Te.call(o,t):void 0),typeof e!="function"&&(e=n[e]),oK.call(e,n,function(l,s){return ATe.call(t,l)?oK.call(a,i,t[l],l,t,s):r})}}});var uK=P((HNe,fK)=>{"use strict";fK.exports=sK()("forEach")});var vK=P((VNe,cK)=>{"use strict";var TTe=q1(),MTe=uK(),STe=Function.prototype.call;cK.exports=function(e,r){var t={},a=arguments[2];return TTe(r),MTe(e,function(n,i,o,l){t[i]=STe.call(r,a,n,i,o,l)}),t}});var mK=P((YNe,pK)=>{"use strict";var ETe=hh(),kTe=PQ(),hK=OQ(),CTe=iK(),LTe=g7(),DTe=vK(),FTe=Function.prototype.bind,RTe=Object.defineProperty,qTe=Object.prototype.hasOwnProperty,dK;dK=function(e,r,t){var a=kTe(r)&&hK(r.value),n;return n=CTe(r),delete n.writable,delete n.value,n.get=function(){return!t.overwriteDefinition&&qTe.call(this,e)?a:(r.value=FTe.call(a,t.resolveContext?t.resolveContext(this):this),RTe(this,e,r),this[e])},n};pK.exports=function(e){var r=LTe(arguments[1]);return ETe(r.resolveContext)&&hK(r.resolveContext),DTe(e,function(t,a){return dK(a,t,r)})}});var k7=P((WNe,xK)=>{"use strict";var PTe=AQ(),NTe=E_(),OTe=q1(),ITe=Gu(),al=Uu(),BTe=mK(),yK=pv(),gK=Object.defineProperty,bK=Object.defineProperties,eg;xK.exports=eg=function(e,r){if(!(this instanceof eg))throw new TypeError("Constructor requires 'new'");bK(this,{__list__:al("w",ITe(e)),__context__:al("w",r),__nextIndex__:al("w",0)}),r&&(OTe(r.on),r.on("_add",this._onAdd),r.on("_delete",this._onDelete),r.on("_clear",this._onClear))};delete eg.prototype.constructor;bK(eg.prototype,NTe({_next:al(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){gK(this,"__redo__",al("c",[e]));return}this.__redo__.forEach(function(r,t){r>=e&&(this.__redo__[t]=++r)},this),this.__redo__.push(e)}}),_onDelete:al(function(e){var r;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(r=this.__redo__.indexOf(e),r!==-1&&this.__redo__.splice(r,1),this.__redo__.forEach(function(t,a){t>e&&(this.__redo__[a]=--t)},this)))}),_onClear:al(function(){this.__redo__&&PTe.call(this.__redo__),this.__nextIndex__=0})})));gK(eg.prototype,yK.iterator,al(function(){return this}))});var MK=P((jNe,TK)=>{"use strict";var _K=M_(),wK=x7(),C7=Uu(),zTe=pv(),L7=k7(),AK=Object.defineProperty,P1;P1=TK.exports=function(e,r){if(!(this instanceof P1))throw new TypeError("Constructor requires 'new'");L7.call(this,e),r?wK.call(r,"key+value")?r="key+value":wK.call(r,"key")?r="key":r="value":r="value",AK(this,"__kind__",C7("",r))};_K&&_K(P1,L7);delete P1.prototype.constructor;P1.prototype=Object.create(L7.prototype,{_resolve:C7(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});AK(P1.prototype,zTe.toStringTag,C7("c","Array Iterator"))});var CK=P((XNe,kK)=>{"use strict";var SK=M_(),D_=Uu(),GTe=pv(),D7=k7(),EK=Object.defineProperty,N1;N1=kK.exports=function(e){if(!(this instanceof N1))throw new TypeError("Constructor requires 'new'");e=String(e),D7.call(this,e),EK(this,"__length__",D_("",e.length))};SK&&SK(N1,D7);delete N1.prototype.constructor;N1.prototype=Object.create(D7.prototype,{_next:D_(function(){if(this.__list__){if(this.__nextIndex__=55296&&t<=56319?r+this.__list__[this.__nextIndex__++]:r)})});EK(N1.prototype,GTe.toStringTag,D_("c","String Iterator"))});var DK=P((ZNe,LK)=>{"use strict";var UTe=Jy(),HTe=dv(),VTe=$y(),YTe=pv().iterator,WTe=Array.isArray;LK.exports=function(e){return HTe(e)?WTe(e)||VTe(e)||UTe(e)?!0:typeof e[YTe]=="function":!1}});var RK=P((JNe,FK)=>{"use strict";var jTe=DK();FK.exports=function(e){if(!jTe(e))throw new TypeError(e+" is not iterable");return e}});var F7=P(($Ne,NK)=>{"use strict";var XTe=Jy(),ZTe=$y(),qK=MK(),JTe=CK(),$Te=RK(),PK=pv().iterator;NK.exports=function(e){return typeof $Te(e)[PK]=="function"?e[PK]():XTe(e)?new qK(e):ZTe(e)?new JTe(e):new qK(e)}});var IK=P((QNe,OK)=>{"use strict";var QTe=Jy(),KTe=q1(),e8e=$y(),r8e=F7(),t8e=Array.isArray,R7=Function.prototype.call,a8e=Array.prototype.some;OK.exports=function(e,r){var t,a=arguments[2],n,i,o,l,s,f,u;if(t8e(e)||QTe(e)?t="array":e8e(e)?t="string":e=r8e(e),KTe(r),i=function(){o=!0},t==="array"){a8e.call(e,function(c){return R7.call(r,a,c,i),o});return}if(t==="string"){for(s=e.length,l=0;l=55296&&u<=56319&&(f+=e[++l])),R7.call(r,a,f,i),!o);++l);return}for(n=e.next();!n.done;){if(R7.call(r,a,n.value,i),o)return;n=e.next()}}});var zK=P((KNe,BK)=>{"use strict";BK.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()});var HK=P((eOe,UK)=>{"use strict";var n8e=dv(),R_=M_(),F_=m$(),i8e=Gu(),o8e=g$(),Hu=Uu(),l8e=F7(),s8e=IK(),f8e=pv().toStringTag,GK=zK(),u8e=Array.isArray,P7=Object.defineProperty,q7=Object.prototype.hasOwnProperty,c8e=Object.getPrototypeOf,mv;UK.exports=mv=function(){var e=arguments[0],r;if(!(this instanceof mv))throw new TypeError("Constructor requires 'new'");return r=GK&&R_&&WeakMap!==mv?R_(new WeakMap,c8e(this)):this,n8e(e)&&(u8e(e)||(e=l8e(e))),P7(r,"__weakMapData__",Hu("c","$weakMap$"+o8e())),e&&s8e(e,function(t){i8e(t),r.set(t[0],t[1])}),r};GK&&(R_&&R_(mv,WeakMap),mv.prototype=Object.create(WeakMap.prototype,{constructor:Hu(mv)}));Object.defineProperties(mv.prototype,{delete:Hu(function(e){return q7.call(F_(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:Hu(function(e){if(q7.call(F_(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:Hu(function(e){return q7.call(F_(e),this.__weakMapData__)}),set:Hu(function(e,r){return P7(F_(e),this.__weakMapData__,Hu("c",r)),this}),toString:Hu(function(){return"[object WeakMap]"})});P7(mv.prototype,f8e,Hu("c","WeakMap"))});var N7=P((rOe,VK)=>{"use strict";VK.exports=a$()()?WeakMap:HK()});var WK=P((tOe,YK)=>{"use strict";YK.exports=function(e,r,t){if(typeof Array.prototype.findIndex=="function")return e.findIndex(r,t);if(typeof r!="function")throw new TypeError("predicate must be a function");var a=Object(e),n=a.length;if(n===0)return-1;for(var i=0;i{"use strict";var q_=fh(),v8e=rh(),I7=ti(),h8e=Of(),d8e=th(),jK=KJ(),p8e=r$(),{float32:m8e,fract32:O7}=m_(),y8e=N7(),XK=c1(),g8e=WK(),b8e=` +`]),jJ&&(p.frag=p.frag.replace("smoothstep","smoothStep"),d.frag=d.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(p)}Vi.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4};Vi.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};Vi.prototype.draw=function(){for(var e=this,r=arguments.length,t=new Array(r),a=0;aoe)?Z.tree=RAe($,{bounds:Je}):oe&&oe.length&&(Z.tree=oe),Z.tree){var Ae={primitive:"points",usage:"static",data:Z.tree,type:"uint32"};Z.elements?Z.elements(Ae):Z.elements=o.elements(Ae)}var or=g_.float32($);ce({data:or,usage:"dynamic"});var Ge=g_.fract32($,or);return De({data:Ge,usage:"dynamic"}),Oe({data:new Uint8Array(Ee),type:"uint8",usage:"stream"}),$}},{marker:function($,Z,J){var oe=Z.activation;if(oe.forEach(function(Ge){return Ge&&Ge.destroy&&Ge.destroy()}),oe.length=0,!$||typeof $[0]=="number"){var ce=e.addMarker($);oe[ce]=!0}else{for(var De=[],Oe=0,Ee=Math.min($.length,Z.count);Oe=0)return n;var i;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)i=e;else{i=new Uint8Array(e.length);for(var o=0,l=e.length;oa*4&&(this.tooManyColors=!0),this.updatePalette(t),n.length===1?n[0]:n};Vi.prototype.updatePalette=function(e){if(!this.tooManyColors){var r=this.maxColors,t=this.paletteTexture,a=Math.ceil(e.length*.25/r);if(a>1){e=e.slice();for(var n=e.length*.25%r;n{"use strict";v7.exports=__;v7.exports.default=__;function __(e,r,t){t=t||2;var a=r&&r.length,n=a?r[0]*t:e.length,i=$J(e,0,n,t,!0),o=[];if(!i||i.next===i.prev)return o;var l,s,f,u,c,v,d;if(a&&(i=YAe(e,r,i,t)),e.length>80*t){l=f=e[0],s=u=e[1];for(var p=t;pf&&(f=c),v>u&&(u=v);d=Math.max(f-l,u-s),d=d!==0?32767/d:0}return Zy(i,o,t,l,s,d,0),o}function $J(e,r,t,a,n){var i,o;if(n===c7(e,r,t,a)>0)for(i=r;i=r;i-=a)o=JJ(i,e[i],e[i+1],o);return o&&w_(o,o.next)&&($y(o),o=o.next),o}function hh(e,r){if(!e)return e;r||(r=e);var t=e,a;do if(a=!1,!t.steiner&&(w_(t,t.next)||Yn(t.prev,t,t.next)===0)){if($y(t),t=r=t.prev,t===t.next)break;a=!0}else t=t.next;while(a||t!==r);return r}function Zy(e,r,t,a,n,i,o){if(e){!o&&i&&JAe(e,a,n,i);for(var l=e,s,f;e.prev!==e.next;){if(s=e.prev,f=e.next,i?UAe(e,a,n,i):GAe(e)){r.push(s.i/t|0),r.push(e.i/t|0),r.push(f.i/t|0),$y(e),e=f.next,l=f.next;continue}if(e=f,e===l){o?o===1?(e=HAe(hh(e),r,t),Zy(e,r,t,a,n,i,2)):o===2&&VAe(e,r,t,a,n,i):Zy(hh(e),r,t,a,n,i,1);break}}}}function GAe(e){var r=e.prev,t=e,a=e.next;if(Yn(r,t,a)>=0)return!1;for(var n=r.x,i=t.x,o=a.x,l=r.y,s=t.y,f=a.y,u=ni?n>o?n:o:i>o?i:o,d=l>s?l>f?l:f:s>f?s:f,p=a.next;p!==r;){if(p.x>=u&&p.x<=v&&p.y>=c&&p.y<=d&&Fp(n,l,i,s,o,f,p.x,p.y)&&Yn(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function UAe(e,r,t,a){var n=e.prev,i=e,o=e.next;if(Yn(n,i,o)>=0)return!1;for(var l=n.x,s=i.x,f=o.x,u=n.y,c=i.y,v=o.y,d=ls?l>f?l:f:s>f?s:f,m=u>c?u>v?u:v:c>v?c:v,b=f7(d,p,r,t,a),A=f7(g,m,r,t,a),_=e.prevZ,x=e.nextZ;_&&_.z>=b&&x&&x.z<=A;){if(_.x>=d&&_.x<=g&&_.y>=p&&_.y<=m&&_!==n&&_!==o&&Fp(l,u,s,c,f,v,_.x,_.y)&&Yn(_.prev,_,_.next)>=0||(_=_.prevZ,x.x>=d&&x.x<=g&&x.y>=p&&x.y<=m&&x!==n&&x!==o&&Fp(l,u,s,c,f,v,x.x,x.y)&&Yn(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;_&&_.z>=b;){if(_.x>=d&&_.x<=g&&_.y>=p&&_.y<=m&&_!==n&&_!==o&&Fp(l,u,s,c,f,v,_.x,_.y)&&Yn(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;x&&x.z<=A;){if(x.x>=d&&x.x<=g&&x.y>=p&&x.y<=m&&x!==n&&x!==o&&Fp(l,u,s,c,f,v,x.x,x.y)&&Yn(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function HAe(e,r,t){var a=e;do{var n=a.prev,i=a.next.next;!w_(n,i)&&QJ(n,a,a.next,i)&&Jy(n,i)&&Jy(i,n)&&(r.push(n.i/t|0),r.push(a.i/t|0),r.push(i.i/t|0),$y(a),$y(a.next),a=e=i),a=a.next}while(a!==e);return hh(a)}function VAe(e,r,t,a,n,i){var o=e;do{for(var l=o.next.next;l!==o.prev;){if(o.i!==l.i&&KAe(o,l)){var s=KJ(o,l);o=hh(o,o.next),s=hh(s,s.next),Zy(o,r,t,a,n,i,0),Zy(s,r,t,a,n,i,0);return}l=l.next}o=o.next}while(o!==e)}function YAe(e,r,t,a){var n=[],i,o,l,s,f;for(i=0,o=r.length;i=t.next.y&&t.next.y!==t.y){var l=t.x+(n-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(l<=a&&l>i&&(i=l,o=t.x=t.x&&t.x>=f&&a!==t.x&&Fp(no.x||t.x===o.x&&ZAe(o,t)))&&(o=t,c=v)),t=t.next;while(t!==s);return o}function ZAe(e,r){return Yn(e.prev,e,r.prev)<0&&Yn(r.next,e,e.next)<0}function JAe(e,r,t,a){var n=e;do n.z===0&&(n.z=f7(n.x,n.y,r,t,a)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next;while(n!==e);n.prevZ.nextZ=null,n.prevZ=null,$Ae(n)}function $Ae(e){var r,t,a,n,i,o,l,s,f=1;do{for(t=e,e=null,i=null,o=0;t;){for(o++,a=t,l=0,r=0;r0||s>0&&a;)l!==0&&(s===0||!a||t.z<=a.z)?(n=t,t=t.nextZ,l--):(n=a,a=a.nextZ,s--),i?i.nextZ=n:e=n,n.prevZ=i,i=n;t=a}i.nextZ=null,f*=2}while(o>1);return e}function f7(e,r,t,a,n){return e=(e-t)*n|0,r=(r-a)*n|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,e|r<<1}function QAe(e){var r=e,t=e;do(r.x=(e-o)*(i-l)&&(e-o)*(a-l)>=(t-o)*(r-l)&&(t-o)*(i-l)>=(n-o)*(a-l)}function KAe(e,r){return e.next.i!==r.i&&e.prev.i!==r.i&&!e6e(e,r)&&(Jy(e,r)&&Jy(r,e)&&r6e(e,r)&&(Yn(e.prev,e,r.prev)||Yn(e,r.prev,r))||w_(e,r)&&Yn(e.prev,e,e.next)>0&&Yn(r.prev,r,r.next)>0)}function Yn(e,r,t){return(r.y-e.y)*(t.x-r.x)-(r.x-e.x)*(t.y-r.y)}function w_(e,r){return e.x===r.x&&e.y===r.y}function QJ(e,r,t,a){var n=x_(Yn(e,r,t)),i=x_(Yn(e,r,a)),o=x_(Yn(t,a,e)),l=x_(Yn(t,a,r));return!!(n!==i&&o!==l||n===0&&b_(e,t,r)||i===0&&b_(e,a,r)||o===0&&b_(t,e,a)||l===0&&b_(t,r,a))}function b_(e,r,t){return r.x<=Math.max(e.x,t.x)&&r.x>=Math.min(e.x,t.x)&&r.y<=Math.max(e.y,t.y)&&r.y>=Math.min(e.y,t.y)}function x_(e){return e>0?1:e<0?-1:0}function e6e(e,r){var t=e;do{if(t.i!==e.i&&t.next.i!==e.i&&t.i!==r.i&&t.next.i!==r.i&&QJ(t,t.next,e,r))return!0;t=t.next}while(t!==e);return!1}function Jy(e,r){return Yn(e.prev,e,e.next)<0?Yn(e,r,e.next)>=0&&Yn(e,e.prev,r)>=0:Yn(e,r,e.prev)<0||Yn(e,e.next,r)<0}function r6e(e,r){var t=e,a=!1,n=(e.x+r.x)/2,i=(e.y+r.y)/2;do t.y>i!=t.next.y>i&&t.next.y!==t.y&&n<(t.next.x-t.x)*(i-t.y)/(t.next.y-t.y)+t.x&&(a=!a),t=t.next;while(t!==e);return a}function KJ(e,r){var t=new u7(e.i,e.x,e.y),a=new u7(r.i,r.x,r.y),n=e.next,i=r.prev;return e.next=r,r.prev=e,t.next=n,n.prev=t,a.next=t,t.prev=a,i.next=a,a.prev=i,a}function JJ(e,r,t,a){var n=new u7(e,r,t);return a?(n.next=a.next,n.prev=a,a.next.prev=n,a.next=n):(n.prev=n,n.next=n),n}function $y(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function u7(e,r,t){this.i=e,this.x=r,this.y=t,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}__.deviation=function(e,r,t,a){var n=r&&r.length,i=n?r[0]*t:e.length,o=Math.abs(c7(e,0,i,t));if(n)for(var l=0,s=r.length;l0&&(a+=e[n-1].length,t.holes.push(a))}return t}});var t$=P((GPe,r$)=>{"use strict";var t6e=th();r$.exports=a6e;function a6e(e,r,t){if(!e||e.length==null)throw Error("Argument should be an array");r==null&&(r=1),t==null&&(t=t6e(e,r));for(var a=0;a{"use strict";a$.exports=function(){var e,r;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[r={},"one"],[{},"two"],[{},"three"]])}catch(t){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(r)!=="one")}});var o$=P((HPe,i$)=>{"use strict";i$.exports=function(){}});var dv=P((VPe,l$)=>{"use strict";var n6e=o$()();l$.exports=function(e){return e!==n6e&&e!==null}});var h7=P((YPe,f$)=>{"use strict";var i6e=Object.create,o6e=Object.getPrototypeOf,s$={};f$.exports=function(){var e=Object.setPrototypeOf,r=arguments[0]||i6e;return typeof e!="function"?!1:o6e(e(r(null),s$))===s$}});var d7=P((WPe,u$)=>{"use strict";var l6e=dv(),s6e={function:!0,object:!0};u$.exports=function(e){return l6e(e)&&s6e[typeof e]||!1}});var Gu=P((jPe,c$)=>{"use strict";var f6e=dv();c$.exports=function(e){if(!f6e(e))throw new TypeError("Cannot use null or undefined");return e}});var h$=P((XPe,v$)=>{"use strict";var p7=Object.create,A_;h7()()||(A_=m7());v$.exports=function(){var e,r,t;return!A_||A_.level!==1?p7:(e={},r={},t={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(a){if(a==="__proto__"){r[a]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}r[a]=t}),Object.defineProperties(e,r),Object.defineProperty(A_,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(a,n){return p7(a===null?e:a,n)})}()});var m7=P((ZPe,d$)=>{"use strict";var u6e=d7(),c6e=Gu(),v6e=Object.prototype.isPrototypeOf,h6e=Object.defineProperty,d6e={configurable:!0,enumerable:!1,writable:!0,value:void 0},T_;T_=function(e,r){if(c6e(e),r===null||u6e(r))return e;throw new TypeError("Prototype must be null or an object")};d$.exports=function(e){var r,t;return e?(e.level===2?e.set?(t=e.set,r=function(a,n){return t.call(T_(a,n),n),a}):r=function(a,n){return T_(a,n).__proto__=n,a}:r=function a(n,i){var o;return T_(n,i),o=v6e.call(a.nullPolyfill,n),o&&delete a.nullPolyfill.__proto__,i===null&&(i=a.nullPolyfill),n.__proto__=i,o&&h6e(a.nullPolyfill,"__proto__",d6e),n},Object.defineProperty(r,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null}(function(){var e=Object.create(null),r={},t,a=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(a){try{t=a.set,t.call(e,r)}catch(n){}if(Object.getPrototypeOf(e)===r)return{set:t,level:2}}return e.__proto__=r,Object.getPrototypeOf(e)===r?{level:2}:(e={},e.__proto__=r,Object.getPrototypeOf(e)===r?{level:1}:!1)}());h$()});var M_=P((JPe,p$)=>{"use strict";p$.exports=h7()()?Object.setPrototypeOf:m7()});var y$=P(($Pe,m$)=>{"use strict";var p6e=d7();m$.exports=function(e){if(!p6e(e))throw new TypeError(e+" is not an Object");return e}});var b$=P((QPe,g$)=>{"use strict";var m6e=Object.create(null),y6e=Math.random;g$.exports=function(){var e;do e=y6e().toString(36).slice(2);while(m6e[e]);return e}});var dh=P((KPe,x$)=>{"use strict";var g6e=void 0;x$.exports=function(e){return e!==g6e&&e!==null}});var S_=P((eNe,_$)=>{"use strict";var b6e=dh(),x6e={object:!0,function:!0,undefined:!0};_$.exports=function(e){return b6e(e)?hasOwnProperty.call(x6e,typeof e):!1}});var A$=P((rNe,w$)=>{"use strict";var _6e=S_();w$.exports=function(e){if(!_6e(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(r){return!1}}});var M$=P((tNe,T$)=>{"use strict";var w6e=A$();T$.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(r){return!1}return!w6e(e)}});var y7=P((aNe,S$)=>{"use strict";var A6e=M$(),T6e=/^\s*class[\s{/}]/,M6e=Function.prototype.toString;S$.exports=function(e){return!(!A6e(e)||T6e.test(M6e.call(e)))}});var k$=P((nNe,E$)=>{"use strict";E$.exports=function(){var e=Object.assign,r;return typeof e!="function"?!1:(r={foo:"raz"},e(r,{bar:"dwa"},{trzy:"trzy"}),r.foo+r.bar+r.trzy==="razdwatrzy")}});var L$=P((iNe,C$)=>{"use strict";C$.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var F$=P((oNe,D$)=>{"use strict";var S6e=dv(),E6e=Object.keys;D$.exports=function(e){return E6e(S6e(e)?Object(e):e)}});var q$=P((lNe,R$)=>{"use strict";R$.exports=L$()()?Object.keys:F$()});var N$=P((sNe,P$)=>{"use strict";var k6e=q$(),C6e=Gu(),L6e=Math.max;P$.exports=function(e,r){var t,a,n=L6e(arguments.length,2),i;for(e=Object(C6e(e)),i=function(o){try{e[o]=r[o]}catch(l){t||(t=l)}},a=1;a{"use strict";O$.exports=k$()()?Object.assign:N$()});var g7=P((uNe,I$)=>{"use strict";var D6e=dv(),F6e=Array.prototype.forEach,R6e=Object.create,q6e=function(e,r){var t;for(t in e)r[t]=e[t]};I$.exports=function(e){var r=R6e(null);return F6e.call(arguments,function(t){D6e(t)&&q6e(Object(t),r)}),r}});var z$=P((cNe,B$)=>{"use strict";var b7="razdwatrzy";B$.exports=function(){return typeof b7.contains!="function"?!1:b7.contains("dwa")===!0&&b7.contains("foo")===!1}});var U$=P((vNe,G$)=>{"use strict";var P6e=String.prototype.indexOf;G$.exports=function(e){return P6e.call(this,e,arguments[1])>-1}});var x7=P((hNe,H$)=>{"use strict";H$.exports=z$()()?String.prototype.contains:U$()});var Uu=P((dNe,j$)=>{"use strict";var k_=dh(),V$=y7(),Y$=E_(),W$=g7(),Qy=x7(),N6e=j$.exports=function(e,r){var t,a,n,i,o;return arguments.length<2||typeof e!="string"?(i=r,r=e,e=null):i=arguments[2],k_(e)?(t=Qy.call(e,"c"),a=Qy.call(e,"e"),n=Qy.call(e,"w")):(t=n=!0,a=!1),o={value:r,configurable:t,enumerable:a,writable:n},i?Y$(W$(i),o):o};N6e.gs=function(e,r,t){var a,n,i,o;return typeof e!="string"?(i=t,t=r,r=e,e=null):i=arguments[3],k_(r)?V$(r)?k_(t)?V$(t)||(i=t,t=void 0):t=void 0:(i=r,r=t=void 0):r=void 0,k_(e)?(a=Qy.call(e,"c"),n=Qy.call(e,"e")):(a=!0,n=!1),o={get:r,set:t,configurable:a,enumerable:n},i?Y$(W$(i),o):o}});var Ky=P((pNe,Z$)=>{"use strict";var X$=Object.prototype.toString,O6e=X$.call(function(){return arguments}());Z$.exports=function(e){return X$.call(e)===O6e}});var eg=P((mNe,$$)=>{"use strict";var J$=Object.prototype.toString,I6e=J$.call("");$$.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||J$.call(e)===I6e)||!1}});var K$=P((yNe,Q$)=>{"use strict";Q$.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var tQ=P((gNe,rQ)=>{var eQ=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};rQ.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return eQ()}try{return __global__||eQ()}finally{delete Object.prototype.__global__}}()});var rg=P((bNe,aQ)=>{"use strict";aQ.exports=K$()()?globalThis:tQ()});var iQ=P((xNe,nQ)=>{"use strict";var B6e=rg(),_7={object:!0,symbol:!0};nQ.exports=function(){var e=B6e.Symbol,r;if(typeof e!="function")return!1;r=e("test symbol");try{String(r)}catch(t){return!1}return!(!_7[typeof e.iterator]||!_7[typeof e.toPrimitive]||!_7[typeof e.toStringTag])}});var lQ=P((_Ne,oQ)=>{"use strict";oQ.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var w7=P((wNe,sQ)=>{"use strict";var z6e=lQ();sQ.exports=function(e){if(!z6e(e))throw new TypeError(e+" is not a symbol");return e}});var hQ=P((ANe,vQ)=>{"use strict";var fQ=Uu(),G6e=Object.create,uQ=Object.defineProperty,U6e=Object.prototype,cQ=G6e(null);vQ.exports=function(e){for(var r=0,t,a;cQ[e+(r||"")];)++r;return e+=r||"",cQ[e]=!0,t="@@"+e,uQ(U6e,t,fQ.gs(null,function(n){a||(a=!0,uQ(this,t,fQ(n)),a=!1)})),t}});var pQ=P((TNe,dQ)=>{"use strict";var Ks=Uu(),ii=rg().Symbol;dQ.exports=function(e){return Object.defineProperties(e,{hasInstance:Ks("",ii&&ii.hasInstance||e("hasInstance")),isConcatSpreadable:Ks("",ii&&ii.isConcatSpreadable||e("isConcatSpreadable")),iterator:Ks("",ii&&ii.iterator||e("iterator")),match:Ks("",ii&&ii.match||e("match")),replace:Ks("",ii&&ii.replace||e("replace")),search:Ks("",ii&&ii.search||e("search")),species:Ks("",ii&&ii.species||e("species")),split:Ks("",ii&&ii.split||e("split")),toPrimitive:Ks("",ii&&ii.toPrimitive||e("toPrimitive")),toStringTag:Ks("",ii&&ii.toStringTag||e("toStringTag")),unscopables:Ks("",ii&&ii.unscopables||e("unscopables"))})}});var gQ=P((MNe,yQ)=>{"use strict";var mQ=Uu(),H6e=w7(),tg=Object.create(null);yQ.exports=function(e){return Object.defineProperties(e,{for:mQ(function(r){return tg[r]?tg[r]:tg[r]=e(String(r))}),keyFor:mQ(function(r){var t;H6e(r);for(t in tg)if(tg[t]===r)return t})})}});var _Q=P((SNe,xQ)=>{"use strict";var If=Uu(),A7=w7(),C_=rg().Symbol,V6e=hQ(),Y6e=pQ(),W6e=gQ(),j6e=Object.create,T7=Object.defineProperties,L_=Object.defineProperty,_o,Rp,bQ;if(typeof C_=="function")try{String(C_()),bQ=!0}catch(e){}else C_=null;Rp=function(r){if(this instanceof Rp)throw new TypeError("Symbol is not a constructor");return _o(r)};xQ.exports=_o=function e(r){var t;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return bQ?C_(r):(t=j6e(Rp.prototype),r=r===void 0?"":String(r),T7(t,{__description__:If("",r),__name__:If("",V6e(r))}))};Y6e(_o);W6e(_o);T7(Rp.prototype,{constructor:If(_o),toString:If("",function(){return this.__name__})});T7(_o.prototype,{toString:If(function(){return"Symbol ("+A7(this).__description__+")"}),valueOf:If(function(){return A7(this)})});L_(_o.prototype,_o.toPrimitive,If("",function(){var e=A7(this);return typeof e=="symbol"?e:e.toString()}));L_(_o.prototype,_o.toStringTag,If("c","Symbol"));L_(Rp.prototype,_o.toStringTag,If("c",_o.prototype[_o.toStringTag]));L_(Rp.prototype,_o.toPrimitive,If("c",_o.prototype[_o.toPrimitive]))});var pv=P((ENe,wQ)=>{"use strict";wQ.exports=iQ()()?rg().Symbol:_Q()});var TQ=P((kNe,AQ)=>{"use strict";var X6e=Gu();AQ.exports=function(){return X6e(this).length=0,this}});var qp=P((CNe,MQ)=>{"use strict";MQ.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var EQ=P((LNe,SQ)=>{"use strict";var Z6e=dh(),J6e=S_(),$6e=Object.prototype.toString;SQ.exports=function(e){if(!Z6e(e))return null;if(J6e(e)){var r=e.toString;if(typeof r!="function"||r===$6e)return null}try{return""+e}catch(t){return null}}});var CQ=P((DNe,kQ)=>{"use strict";kQ.exports=function(e){try{return e.toString()}catch(r){try{return String(e)}catch(t){return null}}}});var DQ=P((FNe,LQ)=>{"use strict";var Q6e=CQ(),K6e=/[\n\r\u2028\u2029]/g;LQ.exports=function(e){var r=Q6e(e);return r===null?"":(r.length>100&&(r=r.slice(0,99)+"\u2026"),r=r.replace(K6e,function(t){switch(t){case` +`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),r)}});var M7=P((RNe,qQ)=>{"use strict";var FQ=dh(),eTe=S_(),rTe=EQ(),tTe=DQ(),RQ=function(e,r){return e.replace("%v",tTe(r))};qQ.exports=function(e,r,t){if(!eTe(t))throw new TypeError(RQ(r,e));if(!FQ(e)){if("default"in t)return t.default;if(t.isOptional)return null}var a=rTe(t.errorMessage);throw FQ(a)||(a=r),new TypeError(RQ(a,e))}});var NQ=P((qNe,PQ)=>{"use strict";var aTe=M7(),nTe=dh();PQ.exports=function(e){return nTe(e)?e:aTe(e,"Cannot use %v",arguments[1])}});var IQ=P((PNe,OQ)=>{"use strict";var iTe=M7(),oTe=y7();OQ.exports=function(e){return oTe(e)?e:iTe(e,"%v is not a plain function",arguments[1])}});var zQ=P((NNe,BQ)=>{"use strict";BQ.exports=function(){var e=Array.from,r,t;return typeof e!="function"?!1:(r=["raz","dwa"],t=e(r),!!(t&&t!==r&&t[1]==="dwa"))}});var UQ=P((ONe,GQ)=>{"use strict";var lTe=Object.prototype.toString,sTe=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);GQ.exports=function(e){return typeof e=="function"&&sTe(lTe.call(e))}});var VQ=P((INe,HQ)=>{"use strict";HQ.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var WQ=P((BNe,YQ)=>{"use strict";YQ.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var XQ=P((zNe,jQ)=>{"use strict";jQ.exports=VQ()()?Math.sign:WQ()});var JQ=P((GNe,ZQ)=>{"use strict";var fTe=XQ(),uTe=Math.abs,cTe=Math.floor;ZQ.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:fTe(e)*cTe(uTe(e)))}});var QQ=P((UNe,$Q)=>{"use strict";var vTe=JQ(),hTe=Math.max;$Q.exports=function(e){return hTe(0,vTe(e))}});var tK=P((HNe,rK)=>{"use strict";var dTe=pv().iterator,pTe=Ky(),mTe=UQ(),yTe=QQ(),KQ=qp(),gTe=Gu(),bTe=dv(),xTe=eg(),eK=Array.isArray,S7=Function.prototype.call,ph={configurable:!0,enumerable:!0,writable:!0,value:null},E7=Object.defineProperty;rK.exports=function(e){var r=arguments[1],t=arguments[2],a,n,i,o,l,s,f,u,c,v;if(e=Object(gTe(e)),bTe(r)&&KQ(r),!this||this===Array||!mTe(this)){if(!r){if(pTe(e))return l=e.length,l!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(eK(e)){for(o=new Array(l=e.length),n=0;n=55296&&s<=56319&&(v+=e[++n])),v=r?S7.call(r,t,v,i):v,a?(ph.value=v,E7(o,i,ph)):o[i]=v,++i;l=i}}if(l===void 0)for(l=yTe(e.length),a&&(o=new a(l)),n=0;n{"use strict";aK.exports=zQ()()?Array.from:tK()});var oK=P((YNe,iK)=>{"use strict";var _Te=nK(),wTe=E_(),ATe=Gu();iK.exports=function(e){var r=Object(ATe(e)),t=arguments[1],a=Object(arguments[2]);if(r!==e&&!t)return r;var n={};return t?_Te(t,function(i){(a.ensure||i in e)&&(n[i]=e[i])}):wTe(n,e),n}});var fK=P((WNe,sK)=>{"use strict";var TTe=qp(),MTe=Gu(),STe=Function.prototype.bind,lK=Function.prototype.call,ETe=Object.keys,kTe=Object.prototype.propertyIsEnumerable;sK.exports=function(e,r){return function(t,a){var n,i=arguments[2],o=arguments[3];return t=Object(MTe(t)),TTe(a),n=ETe(t),o&&n.sort(typeof o=="function"?STe.call(o,t):void 0),typeof e!="function"&&(e=n[e]),lK.call(e,n,function(l,s){return kTe.call(t,l)?lK.call(a,i,t[l],l,t,s):r})}}});var cK=P((jNe,uK)=>{"use strict";uK.exports=fK()("forEach")});var hK=P((XNe,vK)=>{"use strict";var CTe=qp(),LTe=cK(),DTe=Function.prototype.call;vK.exports=function(e,r){var t={},a=arguments[2];return CTe(r),LTe(e,function(n,i,o,l){t[i]=DTe.call(r,a,n,i,o,l)}),t}});var yK=P((ZNe,mK)=>{"use strict";var FTe=dh(),RTe=NQ(),dK=IQ(),qTe=oK(),PTe=g7(),NTe=hK(),OTe=Function.prototype.bind,ITe=Object.defineProperty,BTe=Object.prototype.hasOwnProperty,pK;pK=function(e,r,t){var a=RTe(r)&&dK(r.value),n;return n=qTe(r),delete n.writable,delete n.value,n.get=function(){return!t.overwriteDefinition&&BTe.call(this,e)?a:(r.value=OTe.call(a,t.resolveContext?t.resolveContext(this):this),ITe(this,e,r),this[e])},n};mK.exports=function(e){var r=PTe(arguments[1]);return FTe(r.resolveContext)&&dK(r.resolveContext),NTe(e,function(t,a){return pK(a,t,r)})}});var k7=P((JNe,_K)=>{"use strict";var zTe=TQ(),GTe=E_(),UTe=qp(),HTe=Gu(),al=Uu(),VTe=yK(),gK=pv(),bK=Object.defineProperty,xK=Object.defineProperties,ag;_K.exports=ag=function(e,r){if(!(this instanceof ag))throw new TypeError("Constructor requires 'new'");xK(this,{__list__:al("w",HTe(e)),__context__:al("w",r),__nextIndex__:al("w",0)}),r&&(UTe(r.on),r.on("_add",this._onAdd),r.on("_delete",this._onDelete),r.on("_clear",this._onClear))};delete ag.prototype.constructor;xK(ag.prototype,GTe({_next:al(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){bK(this,"__redo__",al("c",[e]));return}this.__redo__.forEach(function(r,t){r>=e&&(this.__redo__[t]=++r)},this),this.__redo__.push(e)}}),_onDelete:al(function(e){var r;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(r=this.__redo__.indexOf(e),r!==-1&&this.__redo__.splice(r,1),this.__redo__.forEach(function(t,a){t>e&&(this.__redo__[a]=--t)},this)))}),_onClear:al(function(){this.__redo__&&zTe.call(this.__redo__),this.__nextIndex__=0})})));bK(ag.prototype,gK.iterator,al(function(){return this}))});var SK=P(($Ne,MK)=>{"use strict";var wK=M_(),AK=x7(),C7=Uu(),YTe=pv(),L7=k7(),TK=Object.defineProperty,Pp;Pp=MK.exports=function(e,r){if(!(this instanceof Pp))throw new TypeError("Constructor requires 'new'");L7.call(this,e),r?AK.call(r,"key+value")?r="key+value":AK.call(r,"key")?r="key":r="value":r="value",TK(this,"__kind__",C7("",r))};wK&&wK(Pp,L7);delete Pp.prototype.constructor;Pp.prototype=Object.create(L7.prototype,{_resolve:C7(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});TK(Pp.prototype,YTe.toStringTag,C7("c","Array Iterator"))});var LK=P((QNe,CK)=>{"use strict";var EK=M_(),D_=Uu(),WTe=pv(),D7=k7(),kK=Object.defineProperty,Np;Np=CK.exports=function(e){if(!(this instanceof Np))throw new TypeError("Constructor requires 'new'");e=String(e),D7.call(this,e),kK(this,"__length__",D_("",e.length))};EK&&EK(Np,D7);delete Np.prototype.constructor;Np.prototype=Object.create(D7.prototype,{_next:D_(function(){if(this.__list__){if(this.__nextIndex__=55296&&t<=56319?r+this.__list__[this.__nextIndex__++]:r)})});kK(Np.prototype,WTe.toStringTag,D_("c","String Iterator"))});var FK=P((KNe,DK)=>{"use strict";var jTe=Ky(),XTe=dv(),ZTe=eg(),JTe=pv().iterator,$Te=Array.isArray;DK.exports=function(e){return XTe(e)?$Te(e)||ZTe(e)||jTe(e)?!0:typeof e[JTe]=="function":!1}});var qK=P((eOe,RK)=>{"use strict";var QTe=FK();RK.exports=function(e){if(!QTe(e))throw new TypeError(e+" is not iterable");return e}});var F7=P((rOe,OK)=>{"use strict";var KTe=Ky(),e8e=eg(),PK=SK(),r8e=LK(),t8e=qK(),NK=pv().iterator;OK.exports=function(e){return typeof t8e(e)[NK]=="function"?e[NK]():KTe(e)?new PK(e):e8e(e)?new r8e(e):new PK(e)}});var BK=P((tOe,IK)=>{"use strict";var a8e=Ky(),n8e=qp(),i8e=eg(),o8e=F7(),l8e=Array.isArray,R7=Function.prototype.call,s8e=Array.prototype.some;IK.exports=function(e,r){var t,a=arguments[2],n,i,o,l,s,f,u;if(l8e(e)||a8e(e)?t="array":i8e(e)?t="string":e=o8e(e),n8e(r),i=function(){o=!0},t==="array"){s8e.call(e,function(c){return R7.call(r,a,c,i),o});return}if(t==="string"){for(s=e.length,l=0;l=55296&&u<=56319&&(f+=e[++l])),R7.call(r,a,f,i),!o);++l);return}for(n=e.next();!n.done;){if(R7.call(r,a,n.value,i),o)return;n=e.next()}}});var GK=P((aOe,zK)=>{"use strict";zK.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()});var VK=P((nOe,HK)=>{"use strict";var f8e=dv(),R_=M_(),F_=y$(),u8e=Gu(),c8e=b$(),Hu=Uu(),v8e=F7(),h8e=BK(),d8e=pv().toStringTag,UK=GK(),p8e=Array.isArray,P7=Object.defineProperty,q7=Object.prototype.hasOwnProperty,m8e=Object.getPrototypeOf,mv;HK.exports=mv=function(){var e=arguments[0],r;if(!(this instanceof mv))throw new TypeError("Constructor requires 'new'");return r=UK&&R_&&WeakMap!==mv?R_(new WeakMap,m8e(this)):this,f8e(e)&&(p8e(e)||(e=v8e(e))),P7(r,"__weakMapData__",Hu("c","$weakMap$"+c8e())),e&&h8e(e,function(t){u8e(t),r.set(t[0],t[1])}),r};UK&&(R_&&R_(mv,WeakMap),mv.prototype=Object.create(WeakMap.prototype,{constructor:Hu(mv)}));Object.defineProperties(mv.prototype,{delete:Hu(function(e){return q7.call(F_(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:Hu(function(e){if(q7.call(F_(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:Hu(function(e){return q7.call(F_(e),this.__weakMapData__)}),set:Hu(function(e,r){return P7(F_(e),this.__weakMapData__,Hu("c",r)),this}),toString:Hu(function(){return"[object WeakMap]"})});P7(mv.prototype,d8e,Hu("c","WeakMap"))});var N7=P((iOe,YK)=>{"use strict";YK.exports=n$()()?WeakMap:VK()});var jK=P((oOe,WK)=>{"use strict";WK.exports=function(e,r,t){if(typeof Array.prototype.findIndex=="function")return e.findIndex(r,t);if(typeof r!="function")throw new TypeError("predicate must be a function");var a=Object(e),n=a.length;if(n===0)return-1;for(var i=0;i{"use strict";var q_=uh(),y8e=th(),I7=ni(),g8e=Of(),b8e=ah(),XK=e$(),x8e=t$(),{float32:_8e,fract32:O7}=m_(),w8e=N7(),ZK=cp(),A8e=jK(),T8e=` precision highp float; attribute vec2 aCoord, bCoord, aCoordFract, bCoordFract; @@ -325,7 +325,7 @@ void main() { fragColor = color / 255.; } -`,x8e=` +`,M8e=` precision highp float; uniform float dashLength, pixelRatio, thickness, opacity, id; @@ -343,7 +343,7 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= alpha * opacity * dash; } -`,_8e=` +`,S8e=` precision highp float; attribute vec2 position, positionFract; @@ -371,14 +371,14 @@ void main() { fragColor = color / 255.; fragColor.a *= opacity; } -`,w8e=` +`,E8e=` precision highp float; varying vec4 fragColor; void main() { gl_FragColor = fragColor; } -`,A8e=` +`,k8e=` precision highp float; attribute vec2 aCoord, bCoord, nextCoord, prevCoord; @@ -582,7 +582,7 @@ void main() { } } } -`,T8e=` +`,C8e=` precision highp float; uniform float dashLength, pixelRatio, thickness, opacity, id, miterMode; @@ -662,7 +662,7 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= alpha * opacity * dash; } -`;ZK.exports=fn;function fn(e,r){if(!(this instanceof fn))return new fn(e,r);if(typeof e=="function"?(r||(r={}),r.regl=e):r=e,r.length&&(r.positions=r),e=r.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=fn.shaders.has(e)?fn.shaders.get(e):fn.shaders.set(e,fn.createShaders(e)).get(e),this.update(r)}fn.dashMult=2;fn.maxPatternLength=256;fn.precisionThreshold=3e6;fn.maxPoints=1e4;fn.maxLines=2048;fn.shaders=new y8e;fn.createShaders=function(e){let r=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),t={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,l)=>l.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,l)=>!l.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},a=e(I7({vert:b8e,frag:x8e,attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},t)),n;try{n=e(I7({cull:{enable:!0,face:"back"},vert:A8e,frag:T8e,attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},t))}catch(o){n=a}return{fill:e({primitive:"triangle",elements:(o,l)=>l.triangles,offset:0,vert:_8e,frag:w8e,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:t.blend,depth:{enable:!1},scissor:t.scissor,stencil:t.stencil,viewport:t.viewport}),rect:a,miter:n}};fn.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};fn.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};fn.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((r,t)=>{if(r&&Array.isArray(r))return this.draw(...r);typeof r=="number"&&(r=this.passes[r]),r&&r.count>1&&r.opacity&&(this.regl._refresh(),r.fill&&r.triangles&&r.triangles.length>2&&this.shaders.fill(r),r.thickness&&(r.scale[0]*r.viewport.width>fn.precisionThreshold||r.scale[1]*r.viewport.height>fn.precisionThreshold?this.shaders.rect(r):r.join==="rect"||!r.join&&(r.thickness<=2||r.count>=fn.maxPoints)?this.shaders.rect(r):this.shaders.miter(r)))}),this};fn.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:r,gl:t}=this;if(e.forEach((n,i)=>{let o=this.passes[i];if(n!==void 0){if(n===null){this.passes[i]=null;return}if(typeof n[0]=="number"&&(n={positions:n}),n=h8e(n,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[i]=o={id:i,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:r.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:r.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:r.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:r.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},n=I7({},fn.defaults,n)),n.thickness!=null&&(o.thickness=parseFloat(n.thickness)),n.opacity!=null&&(o.opacity=parseFloat(n.opacity)),n.miterLimit!=null&&(o.miterLimit=parseFloat(n.miterLimit)),n.overlay!=null&&(o.overlay=!!n.overlay,iT-E),A=[],_=0,x=o.hole!=null?o.hole[0]:null;if(x!=null){let T=g8e(b,E=>E>=x);b=b.slice(0,T),b.push(x)}for(let T=0;TF-x+(b[T]-_)),k=jK(E,S);k=k.map(F=>F+_+(F+_{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var eee=P((nOe,KK)=>{"use strict";var M8e=rh(),S8e=fh(),E8e=o7(),k8e=Of(),JK=ti(),$K=th(),{float32:C8e,fract32:z7}=m_();KK.exports=L8e;var QK=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function L8e(e,r){if(typeof e=="function"?(r||(r={}),r.regl=e):r=e,r.length&&(r.positions=r),e=r.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let t=e._gl,a,n,i,o,l,s,f={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},u=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),n=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"static",type:"float",data:QK}),p(r),a=e({vert:` +`;JK.exports=un;function un(e,r){if(!(this instanceof un))return new un(e,r);if(typeof e=="function"?(r||(r={}),r.regl=e):r=e,r.length&&(r.positions=r),e=r.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=un.shaders.has(e)?un.shaders.get(e):un.shaders.set(e,un.createShaders(e)).get(e),this.update(r)}un.dashMult=2;un.maxPatternLength=256;un.precisionThreshold=3e6;un.maxPoints=1e4;un.maxLines=2048;un.shaders=new w8e;un.createShaders=function(e){let r=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),t={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,l)=>l.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,l)=>!l.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},a=e(I7({vert:T8e,frag:M8e,attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},t)),n;try{n=e(I7({cull:{enable:!0,face:"back"},vert:k8e,frag:C8e,attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},t))}catch(o){n=a}return{fill:e({primitive:"triangle",elements:(o,l)=>l.triangles,offset:0,vert:S8e,frag:E8e,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:t.blend,depth:{enable:!1},scissor:t.scissor,stencil:t.stencil,viewport:t.viewport}),rect:a,miter:n}};un.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};un.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};un.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((r,t)=>{if(r&&Array.isArray(r))return this.draw(...r);typeof r=="number"&&(r=this.passes[r]),r&&r.count>1&&r.opacity&&(this.regl._refresh(),r.fill&&r.triangles&&r.triangles.length>2&&this.shaders.fill(r),r.thickness&&(r.scale[0]*r.viewport.width>un.precisionThreshold||r.scale[1]*r.viewport.height>un.precisionThreshold?this.shaders.rect(r):r.join==="rect"||!r.join&&(r.thickness<=2||r.count>=un.maxPoints)?this.shaders.rect(r):this.shaders.miter(r)))}),this};un.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:r,gl:t}=this;if(e.forEach((n,i)=>{let o=this.passes[i];if(n!==void 0){if(n===null){this.passes[i]=null;return}if(typeof n[0]=="number"&&(n={positions:n}),n=g8e(n,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[i]=o={id:i,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:r.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:r.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:r.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:r.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},n=I7({},un.defaults,n)),n.thickness!=null&&(o.thickness=parseFloat(n.thickness)),n.opacity!=null&&(o.opacity=parseFloat(n.opacity)),n.miterLimit!=null&&(o.miterLimit=parseFloat(n.miterLimit)),n.overlay!=null&&(o.overlay=!!n.overlay,iT-E),A=[],_=0,x=o.hole!=null?o.hole[0]:null;if(x!=null){let T=A8e(b,E=>E>=x);b=b.slice(0,T),b.push(x)}for(let T=0;TF-x+(b[T]-_)),k=XK(E,S);k=k.map(F=>F+_+(F+_{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var ree=P((sOe,eee)=>{"use strict";var L8e=th(),D8e=uh(),F8e=o7(),R8e=Of(),$K=ni(),QK=ah(),{float32:q8e,fract32:z7}=m_();eee.exports=P8e;var KK=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function P8e(e,r){if(typeof e=="function"?(r||(r={}),r.regl=e):r=e,r.length&&(r.positions=r),e=r.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let t=e._gl,a,n,i,o,l,s,f={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},u=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),n=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"static",type:"float",data:KK}),p(r),a=e({vert:` precision highp float; attribute vec2 position, positionFract; @@ -706,10 +706,10 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= opacity; } - `,uniforms:{range:e.prop("range"),lineWidth:e.prop("lineWidth"),capSize:e.prop("capSize"),opacity:e.prop("opacity"),scale:e.prop("scale"),translate:e.prop("translate"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),viewport:(m,b)=>[b.viewport.x,b.viewport.y,m.viewportWidth,m.viewportHeight]},attributes:{color:{buffer:o,offset:(m,b)=>b.offset*4,divisor:1},position:{buffer:n,offset:(m,b)=>b.offset*8,divisor:1},positionFract:{buffer:i,offset:(m,b)=>b.offset*8,divisor:1},error:{buffer:l,offset:(m,b)=>b.offset*16,divisor:1},direction:{buffer:s,stride:24,offset:0},lineOffset:{buffer:s,stride:24,offset:8},capOffset:{buffer:s,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:QK.length}),JK(c,{update:p,draw:v,destroy:g,regl:e,gl:t,canvas:t.canvas,groups:u}),c;function c(m){m?p(m):m===null&&g(),v()}function v(m){if(typeof m=="number")return d(m);m&&!Array.isArray(m)&&(m=[m]),e._refresh(),u.forEach((b,A)=>{if(b){if(m&&(m[A]?b.draw=!0:b.draw=!1),!b.draw){b.draw=!0;return}d(A)}})}function d(m){typeof m=="number"&&(m=u[m]),m!=null&&m&&m.count&&m.color&&m.opacity&&m.positions&&m.positions.length>1&&(m.scaleRatio=[m.scale[0]*m.viewport.width,m.scale[1]*m.viewport.height],a(m),m.after&&m.after(m))}function p(m){if(!m)return;m.length!=null?typeof m[0]=="number"&&(m=[{positions:m}]):Array.isArray(m)||(m=[m]);let b=0,A=0;if(c.groups=u=m.map((T,E)=>{let S=u[E];if(T)typeof T=="function"?T={after:T}:typeof T[0]=="number"&&(T={positions:T});else return S;return T=k8e(T,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),S||(u[E]=S={id:E,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},T=JK({},f,T)),E8e(S,T,[{lineWidth:k=>+k*.5,capSize:k=>+k*.5,opacity:parseFloat,errors:k=>(k=$K(k),A+=k.length,k),positions:(k,F)=>(k=$K(k,"float64"),F.count=Math.floor(k.length/2),F.bounds=M8e(k,2),F.offset=b,b+=F.count,k)},{color:(k,F)=>{let O=F.count;if(k||(k="transparent"),!Array.isArray(k)||typeof k[0]=="number"){let R=k;k=Array(O);for(let H=0;H{let I=F.bounds;return k||(k=I),F.scale=[1/(k[2]-k[0]),1/(k[3]-k[1])],F.translate=[-k[0],-k[1]],F.scaleFract=z7(F.scale),F.translateFract=z7(F.translate),k},viewport:k=>{let F;return Array.isArray(k)?F={x:k[0],y:k[1],width:k[2]-k[0],height:k[3]-k[1]}:k?(F={x:k.x||k.left||0,y:k.y||k.top||0},k.right?F.width=k.right-F.x:F.width=k.w||k.width||0,k.bottom?F.height=k.bottom-F.y:F.height=k.h||k.height||0):F={x:0,y:0,width:t.drawingBufferWidth,height:t.drawingBufferHeight},F}}]),S}),b||A){let T=u.reduce((F,O,I)=>F+(O?O.count:0),0),E=new Float64Array(T*2),S=new Uint8Array(T*4),k=new Float32Array(T*4);u.forEach((F,O)=>{if(!F)return;let{positions:I,count:R,offset:H,color:X,errors:le}=F;R&&(S.set(X,H*4),k.set(le,H*4),E.set(I,H*2))});var _=C8e(E);n(_);var x=z7(E,_);i(x),o(S),l(k)}}function g(){n.destroy(),i.destroy(),o.destroy(),l.destroy(),s.destroy()}}});var aee=P((iOe,tee)=>{var ree=/[\'\"]/;tee.exports=function(r){return r?(ree.test(r.charAt(0))&&(r=r.substr(1)),ree.test(r.charAt(r.length-1))&&(r=r.substr(0,r.length-1)),r):""}});var G7=P(()=>{});var U7=P(()=>{});var H7=P(()=>{});var V7=P(()=>{});var Y7=P(()=>{});var lee=P((mOe,oee)=>{"use strict";function nee(e,r){if(typeof e!="string")return[e];var t=[e];typeof r=="string"||Array.isArray(r)?r={brackets:r}:r||(r={});var a=r.brackets?Array.isArray(r.brackets)?r.brackets:[r.brackets]:["{}","[]","()"],n=r.escape||"___",i=!!r.flat;a.forEach(function(s){var f=new RegExp(["\\",s[0],"[^\\",s[0],"\\",s[1],"]*\\",s[1]].join("")),u=[];function c(v,d,p){var g=t.push(v.slice(s[0].length,-s[1].length))-1;return u.push(g),n+g+n}t.forEach(function(v,d){for(var p,g=0;v!=p;)if(p=v,v=v.replace(f,c),g++>1e4)throw Error("References have circular dependency. Please, check them.");t[d]=v}),u=u.reverse(),t=t.map(function(v){return u.forEach(function(d){v=v.replace(new RegExp("(\\"+n+d+"\\"+n+")","g"),s[0]+"$1"+s[1])}),v})});var o=new RegExp("\\"+n+"([0-9]+)\\"+n);function l(s,f,u){for(var c=[],v,d=0;v=o.exec(s);){if(d++>1e4)throw Error("Circular references in parenthesis");c.push(s.slice(0,v.index)),c.push(l(f[v[1]],f)),s=s.slice(v.index+v[0].length)}return c.push(s),c}return i?t:l(t[0],t)}function iee(e,r){if(r&&r.flat){var t=r&&r.escape||"___",a=e[0],n;if(!a)return"";for(var i=new RegExp("\\"+t+"([0-9]+)\\"+t),o=0;a!=n;){if(o++>1e4)throw Error("Circular references in "+e);n=a,a=a.replace(i,l)}return a}return e.reduce(function s(f,u){return Array.isArray(u)&&(u=u.reduce(s,"")),f+u},"");function l(s,f){if(e[f]==null)throw Error("Reference "+f+"is undefined");return e[f]}}function W7(e,r){return Array.isArray(e)?iee(e,r):nee(e,r)}W7.parse=nee;W7.stringify=iee;oee.exports=W7});var uee=P((yOe,fee)=>{"use strict";var see=lee();fee.exports=function(r,t,a){if(r==null)throw Error("First argument should be a string");if(t==null)throw Error("Separator should be a string or a RegExp");a?(typeof a=="string"||Array.isArray(a))&&(a={ignore:a}):a={},a.escape==null&&(a.escape=!0),a.ignore==null?a.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof a.ignore=="string"&&(a.ignore=[a.ignore]),a.ignore=a.ignore.map(function(c){return c.length===1&&(c=c+c),c}));var n=see.parse(r,{flat:!0,brackets:a.ignore}),i=n[0],o=i.split(t);if(a.escape){for(var l=[],s=0;s{});var j7=P((xOe,vee)=>{"use strict";var D8e=cee();vee.exports={isSize:function(r){return/^[\d\.]/.test(r)||r.indexOf("/")!==-1||D8e.indexOf(r)!==-1}}});var mee=P((_Oe,pee)=>{"use strict";var F8e=aee(),R8e=G7(),q8e=U7(),P8e=H7(),N8e=V7(),O8e=Y7(),X7=uee(),I8e=j7().isSize;pee.exports=dee;var rg=dee.cache={};function dee(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(rg[e])return rg[e];if(e==="")throw new Error("Cannot parse an empty string.");if(q8e.indexOf(e)!==-1)return rg[e]={system:e};for(var r={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},t=X7(e,/\s+/),a;a=t.shift();){if(R8e.indexOf(a)!==-1)return["style","variant","weight","stretch"].forEach(function(i){r[i]=a}),rg[e]=r;if(N8e.indexOf(a)!==-1){r.style=a;continue}if(a==="normal"||a==="small-caps"){r.variant=a;continue}if(O8e.indexOf(a)!==-1){r.stretch=a;continue}if(P8e.indexOf(a)!==-1){r.weight=a;continue}if(I8e(a)){var n=X7(a,"/");if(r.size=n[0],n[1]!=null?r.lineHeight=hee(n[1]):t[0]==="/"&&(t.shift(),r.lineHeight=hee(t.shift())),!t.length)throw new Error("Missing required font-family.");return r.family=X7(t.join(" "),/\s*,\s*/).map(F8e),rg[e]=r}throw new Error("Unknown or unsupported font token: "+a)}throw new Error("Missing required font-size.")}function hee(e){var r=parseFloat(e);return r.toString()===e?r:e}});var J7=P((wOe,yee)=>{"use strict";var B8e=Of(),z8e=j7().isSize,G8e=ag(G7()),U8e=ag(U7()),H8e=ag(H7()),V8e=ag(V7()),Y8e=ag(Y7()),W8e={normal:1,"small-caps":1},j8e={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},Z7={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};yee.exports=function(r){if(r=B8e(r,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),r.system)return r.system&&tg(r.system,U8e),r.system;if(tg(r.style,V8e),tg(r.variant,W8e),tg(r.weight,H8e),tg(r.stretch,Y8e),r.size==null&&(r.size=Z7.size),typeof r.size=="number"&&(r.size+="px"),!z8e)throw Error("Bad size value `"+r.size+"`");r.family||(r.family=Z7.family),Array.isArray(r.family)&&(r.family.length||(r.family=[Z7.family]),r.family=r.family.map(function(a){return j8e[a]?a:'"'+a+'"'}).join(", "));var t=[];return t.push(r.style),r.variant!==r.style&&t.push(r.variant),r.weight!==r.variant&&r.weight!==r.style&&t.push(r.weight),r.stretch!==r.weight&&r.stretch!==r.variant&&r.stretch!==r.style&&t.push(r.stretch),t.push(r.size+(r.lineHeight==null||r.lineHeight==="normal"||r.lineHeight+""=="1"?"":"/"+r.lineHeight)),t.push(r.family),t.filter(Boolean).join(" ")};function tg(e,r){if(e&&!r[e]&&!G8e[e])throw Error("Unknown keyword `"+e+"`");return e}function ag(e){for(var r={},t=0;t{"use strict";gee.exports={parse:mee(),stringify:J7()}});var xee=P(($7,Q7)=>{(function(e,r){typeof $7=="object"&&typeof Q7!="undefined"?Q7.exports=r():e.createREGL=r()})($7,function(){"use strict";var e=function(M,B){for(var V=Object.keys(B),he=0;he1&&B===V&&(B==='"'||B==="'"))return['"'+o(M.substr(1,M.length-2))+'"'];var he=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(M);if(he)return l(M.substr(0,he.index)).concat(l(he[1])).concat(l(M.substr(he.index+he[0].length)));var be=M.split(".");if(be.length===1)return['"'+o(M)+'"'];for(var Ae=[],xe=0;xe65535)<<4,M>>>=B,V=(M>255)<<3,M>>>=V,B|=V,V=(M>15)<<2,M>>>=V,B|=V,V=(M>3)<<1,M>>>=V,B|=V,B|M>>1}function Z(){var M=k(8,function(){return[]});function B(Ae){var xe=ae(Ae),Ve=M[J(xe)>>2];return Ve.length>0?Ve.pop():new ArrayBuffer(xe)}function V(Ae){M[J(Ae.byteLength)>>2].push(Ae)}function he(Ae,xe){var Ve=null;switch(Ae){case F:Ve=new Int8Array(B(xe),0,xe);break;case O:Ve=new Uint8Array(B(xe),0,xe);break;case I:Ve=new Int16Array(B(2*xe),0,xe);break;case R:Ve=new Uint16Array(B(2*xe),0,xe);break;case H:Ve=new Int32Array(B(4*xe),0,xe);break;case X:Ve=new Uint32Array(B(4*xe),0,xe);break;case le:Ve=new Float32Array(B(4*xe),0,xe);break;default:return null}return Ve.length!==xe?Ve.subarray(0,xe):Ve}function be(Ae){V(Ae.buffer)}return{alloc:B,free:V,allocType:he,freeType:be}}var $=Z();$.zero=Z();var oe=3408,ce=3410,De=3411,Ne=3412,Ee=3413,Ye=3414,we=3415,Qe=33901,ze=33902,He=3379,$e=3386,Ue=34921,ee=36347,_e=36348,te=35661,Xe=35660,ur=34930,rr=36349,Pr=34076,Or=34024,wr=7936,Lr=7937,Xr=7938,Kr=35724,Mr=34047,jr=36063,Yr=34852,Fe=3553,lr=34067,vr=34069,Tt=33984,ht=6408,mr=5126,yr=5121,Vr=36160,at=36053,Wr=36064,Hr=16384,ot=function(M,B){var V=1;B.ext_texture_filter_anisotropic&&(V=M.getParameter(Mr));var he=1,be=1;B.webgl_draw_buffers&&(he=M.getParameter(Yr),be=M.getParameter(jr));var Ae=!!B.oes_texture_float;if(Ae){var xe=M.createTexture();M.bindTexture(Fe,xe),M.texImage2D(Fe,0,ht,1,1,0,ht,mr,null);var Ve=M.createFramebuffer();if(M.bindFramebuffer(Vr,Ve),M.framebufferTexture2D(Vr,Wr,Fe,xe,0),M.bindTexture(Fe,null),M.checkFramebufferStatus(Vr)!==at)Ae=!1;else{M.viewport(0,0,1,1),M.clearColor(1,0,0,1),M.clear(Hr);var ir=$.allocType(mr,4);M.readPixels(0,0,1,1,ht,mr,ir),M.getError()?Ae=!1:(M.deleteFramebuffer(Ve),M.deleteTexture(xe),Ae=ir[0]===1),$.freeType(ir)}}var nr=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),or=!0;if(!nr){var Qr=M.createTexture(),Fr=$.allocType(yr,36);M.activeTexture(Tt),M.bindTexture(lr,Qr),M.texImage2D(vr,0,ht,3,3,0,ht,yr,Fr),$.freeType(Fr),M.bindTexture(lr,null),M.deleteTexture(Qr),or=!M.getError()}return{colorBits:[M.getParameter(ce),M.getParameter(De),M.getParameter(Ne),M.getParameter(Ee)],depthBits:M.getParameter(Ye),stencilBits:M.getParameter(we),subpixelBits:M.getParameter(oe),extensions:Object.keys(B).filter(function(xr){return!!B[xr]}),maxAnisotropic:V,maxDrawbuffers:he,maxColorAttachments:be,pointSizeDims:M.getParameter(Qe),lineWidthDims:M.getParameter(ze),maxViewportDims:M.getParameter($e),maxCombinedTextureUnits:M.getParameter(te),maxCubeMapSize:M.getParameter(Pr),maxRenderbufferSize:M.getParameter(Or),maxTextureUnits:M.getParameter(ur),maxTextureSize:M.getParameter(He),maxAttributes:M.getParameter(Ue),maxVertexUniforms:M.getParameter(ee),maxVertexTextureUnits:M.getParameter(Xe),maxVaryingVectors:M.getParameter(_e),maxFragmentUniforms:M.getParameter(rr),glsl:M.getParameter(Kr),renderer:M.getParameter(Lr),vendor:M.getParameter(wr),version:M.getParameter(Xr),readFloat:Ae,npotTextureCube:or}},it=function(M){return M instanceof Uint8Array||M instanceof Uint16Array||M instanceof Uint32Array||M instanceof Int8Array||M instanceof Int16Array||M instanceof Int32Array||M instanceof Float32Array||M instanceof Float64Array||M instanceof Uint8ClampedArray};function st(M){return!!M&&typeof M=="object"&&Array.isArray(M.shape)&&Array.isArray(M.stride)&&typeof M.offset=="number"&&M.shape.length===M.stride.length&&(Array.isArray(M.data)||it(M.data))}var br=function(M){return Object.keys(M).map(function(B){return M[B]})},Se={shape:At,flatten:Et};function Ie(M,B,V){for(var he=0;he0){var Zr;if(Array.isArray(ke[0])){pr=na(ke);for(var Oe=1,qe=1;qe0){if(typeof Oe[0]=="number"){var sr=$.allocType(Be.dtype,Oe.length);Yi(sr,Oe),pr(sr,Sr),$.freeType(sr)}else if(Array.isArray(Oe[0])||it(Oe[0])){hr=na(Oe);var cr=Ca(Oe,hr,Be.dtype);pr(cr,Sr),$.freeType(cr)}}}else if(st(Oe)){hr=Oe.shape;var Er=Oe.stride,Jr=0,ct=0,gr=0,Cr=0;hr.length===1?(Jr=hr[0],ct=1,gr=Er[0],Cr=0):hr.length===2&&(Jr=hr[0],ct=hr[1],gr=Er[0],Cr=Er[1]);var ft=Array.isArray(Oe.data)?Be.dtype:rn(Oe.data),ut=$.allocType(ft,Jr*ct);Wi(ut,Oe.data,Jr,ct,gr,Cr,Oe.offset),pr(ut,Sr),$.freeType(ut)}return _r}return Ze||_r(fe),_r._reglType="buffer",_r._buffer=Be,_r.subdata=Zr,V.profile&&(_r.stats=Be.stats),_r.destroy=function(){Fr(Be)},_r}function Pe(){br(Ae).forEach(function(fe){fe.buffer=M.createBuffer(),M.bindBuffer(fe.type,fe.buffer),M.bufferData(fe.type,fe.persistentData||fe.byteLength,fe.usage)})}return V.profile&&(B.getTotalBufferSize=function(){var fe=0;return Object.keys(Ae).forEach(function(ke){fe+=Ae[ke].stats.size}),fe}),{create:xr,createStream:ir,destroyStream:nr,clear:function(){br(Ae).forEach(Fr),Ve.forEach(Fr)},getBuffer:function(fe){return fe&&fe._buffer instanceof xe?fe._buffer:null},restore:Pe,_initBuffer:Qr}}var Ra=0,Wn=0,ss=1,fs=1,kl=4,Zu=4,Oo={points:Ra,point:Wn,lines:ss,line:fs,triangles:kl,triangle:Zu,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Yf=0,Wf=1,ji=4,vi=5120,Oi=5121,Cl=5122,hi=5123,qt=5124,$t=5125,ca=34963,_t=35040,jn=35044;function Ua(M,B,V,he){var be={},Ae=0,xe={uint8:Oi,uint16:hi};B.oes_element_index_uint&&(xe.uint32=$t);function Ve(Pe){this.id=Ae++,be[this.id]=this,this.buffer=Pe,this.primType=ji,this.vertCount=0,this.type=0}Ve.prototype.bind=function(){this.buffer.bind()};var ir=[];function nr(Pe){var fe=ir.pop();return fe||(fe=new Ve(V.create(null,ca,!0,!1)._buffer)),Qr(fe,Pe,_t,-1,-1,0,0),fe}function or(Pe){ir.push(Pe)}function Qr(Pe,fe,ke,Ze,ar,Be,_r){Pe.buffer.bind();var pr;if(fe){var Zr=_r;!_r&&(!it(fe)||st(fe)&&!it(fe.data))&&(Zr=B.oes_element_index_uint?$t:hi),V._initBuffer(Pe.buffer,fe,ke,Zr,3)}else M.bufferData(ca,Be,ke),Pe.buffer.dtype=pr||Oi,Pe.buffer.usage=ke,Pe.buffer.dimension=3,Pe.buffer.byteLength=Be;if(pr=_r,!_r){switch(Pe.buffer.dtype){case Oi:case vi:pr=Oi;break;case hi:case Cl:pr=hi;break;case $t:case qt:pr=$t;break;default:}Pe.buffer.dtype=pr}Pe.type=pr;var Oe=ar;Oe<0&&(Oe=Pe.buffer.byteLength,pr===hi?Oe>>=1:pr===$t&&(Oe>>=2)),Pe.vertCount=Oe;var qe=Ze;if(Ze<0){qe=ji;var Sr=Pe.buffer.dimension;Sr===1&&(qe=Yf),Sr===2&&(qe=Wf),Sr===3&&(qe=ji)}Pe.primType=qe}function Fr(Pe){he.elementsCount--,delete be[Pe.id],Pe.buffer.destroy(),Pe.buffer=null}function xr(Pe,fe){var ke=V.create(null,ca,!0),Ze=new Ve(ke._buffer);he.elementsCount++;function ar(Be){if(!Be)ke(),Ze.primType=ji,Ze.vertCount=0,Ze.type=Oi;else if(typeof Be=="number")ke(Be),Ze.primType=ji,Ze.vertCount=Be|0,Ze.type=Oi;else{var _r=null,pr=jn,Zr=-1,Oe=-1,qe=0,Sr=0;Array.isArray(Be)||it(Be)||st(Be)?_r=Be:("data"in Be&&(_r=Be.data),"usage"in Be&&(pr=Pt[Be.usage]),"primitive"in Be&&(Zr=Oo[Be.primitive]),"count"in Be&&(Oe=Be.count|0),"type"in Be&&(Sr=xe[Be.type]),"length"in Be?qe=Be.length|0:(qe=Oe,Sr===hi||Sr===Cl?qe*=2:(Sr===$t||Sr===qt)&&(qe*=4))),Qr(Ze,_r,pr,Zr,Oe,qe,Sr)}return ar}return ar(Pe),ar._reglType="elements",ar._elements=Ze,ar.subdata=function(Be,_r){return ke.subdata(Be,_r),ar},ar.destroy=function(){Fr(Ze)},ar}return{create:xr,createStream:nr,destroyStream:or,getElements:function(Pe){return typeof Pe=="function"&&Pe._elements instanceof Ve?Pe._elements:null},clear:function(){br(be).forEach(Fr)}}}var Ln=new Float32Array(1),ra=new Uint32Array(Ln.buffer),wo=5123;function ol(M){for(var B=$.allocType(wo,M.length),V=0;V>>31<<15,Ae=(he<<1>>>24)-127,xe=he>>13&1023;if(Ae<-24)B[V]=be;else if(Ae<-14){var Ve=-14-Ae;B[V]=be+(xe+1024>>Ve)}else Ae>15?B[V]=be+31744:B[V]=be+(Ae+15<<10)+xe}return B}function Mi(M){return Array.isArray(M)||it(M)}var J1=34467,bn=3553,Ll=34067,Io=34069,di=6408,rf=6406,Bo=6407,Ao=6409,Dl=6410,Ju=32854,zo=32855,us=36194,Th=32819,$1=32820,$u=33635,Lv=34042,cs=6402,Fl=34041,Go=35904,To=35906,pi=36193,tf=33776,vs=33777,ll=33778,af=33779,Dv=35986,Qu=35987,jf=34798,Fv=35840,Rv=35841,Ku=35842,qv=35843,ec=36196,Mo=5121,nf=5123,Xf=5125,Ii=5126,of=10242,Q1=10243,K1=10497,Zf=33071,Mh=33648,Jf=10240,ep=10241,Rl=9728,rc=9729,hs=9984,lf=9985,ds=9986,sl=9987,Sh=33170,fl=4352,rp=4353,tc=4354,tp=34046,ap=3317,np=37440,Eh=37441,$f=37443,Pv=37444,So=33984,kh=[hs,ds,lf,sl],Si=[0,Ao,Dl,Bo,di],xn={};xn[Ao]=xn[rf]=xn[cs]=1,xn[Fl]=xn[Dl]=2,xn[Bo]=xn[Go]=3,xn[di]=xn[To]=4;function Xi(M){return"[object "+M+"]"}var Qf=Xi("HTMLCanvasElement"),ul=Xi("OffscreenCanvas"),sf=Xi("CanvasRenderingContext2D"),ac=Xi("ImageBitmap"),Nv=Xi("HTMLImageElement"),Ov=Xi("HTMLVideoElement"),ip=Object.keys(Nt).concat([Qf,ul,sf,ac,Nv,Ov]),so=[];so[Mo]=1,so[Ii]=4,so[pi]=2,so[nf]=2,so[Xf]=4;var Aa=[];Aa[Ju]=2,Aa[zo]=2,Aa[us]=2,Aa[Fl]=4,Aa[tf]=.5,Aa[vs]=.5,Aa[ll]=1,Aa[af]=1,Aa[Dv]=.5,Aa[Qu]=1,Aa[jf]=1,Aa[Fv]=.5,Aa[Rv]=.25,Aa[Ku]=.5,Aa[qv]=.25,Aa[ec]=.5;function Iv(M){return Array.isArray(M)&&(M.length===0||typeof M[0]=="number")}function Bv(M){if(!Array.isArray(M))return!1;var B=M.length;return!(B===0||!Mi(M[0]))}function Zi(M){return Object.prototype.toString.call(M)}function zv(M){return Zi(M)===Qf}function Gv(M){return Zi(M)===ul}function op(M){return Zi(M)===sf}function lp(M){return Zi(M)===ac}function sp(M){return Zi(M)===Nv}function fp(M){return Zi(M)===Ov}function Kf(M){if(!M)return!1;var B=Zi(M);return ip.indexOf(B)>=0?!0:Iv(M)||Bv(M)||st(M)}function Uv(M){return Nt[Object.prototype.toString.call(M)]|0}function up(M,B){var V=B.length;switch(M.type){case Mo:case nf:case Xf:case Ii:var he=$.allocType(M.type,V);he.set(B),M.data=he;break;case pi:M.data=ol(B);break;default:}}function Hv(M,B){return $.allocType(M.type===pi?Ii:M.type,B)}function nc(M,B){M.type===pi?(M.data=ol(B),$.freeType(B)):M.data=B}function Ch(M,B,V,he,be,Ae){for(var xe=M.width,Ve=M.height,ir=M.channels,nr=xe*Ve*ir,or=Hv(M,nr),Qr=0,Fr=0;Fr=1;)Ve+=xe*ir*ir,ir/=2;return Ve}else return xe*V*he}function Lh(M,B,V,he,be,Ae,xe){var Ve={"don't care":fl,"dont care":fl,nice:tc,fast:rp},ir={repeat:K1,clamp:Zf,mirror:Mh},nr={nearest:Rl,linear:rc},or=e({mipmap:sl,"nearest mipmap nearest":hs,"linear mipmap nearest":lf,"nearest mipmap linear":ds,"linear mipmap linear":sl},nr),Qr={none:0,browser:Pv},Fr={uint8:Mo,rgba4:Th,rgb565:$u,"rgb5 a1":$1},xr={alpha:rf,luminance:Ao,"luminance alpha":Dl,rgb:Bo,rgba:di,rgba4:Ju,"rgb5 a1":zo,rgb565:us},Pe={};B.ext_srgb&&(xr.srgb=Go,xr.srgba=To),B.oes_texture_float&&(Fr.float32=Fr.float=Ii),B.oes_texture_half_float&&(Fr.float16=Fr["half float"]=pi),B.webgl_depth_texture&&(e(xr,{depth:cs,"depth stencil":Fl}),e(Fr,{uint16:nf,uint32:Xf,"depth stencil":Lv})),B.webgl_compressed_texture_s3tc&&e(Pe,{"rgb s3tc dxt1":tf,"rgba s3tc dxt1":vs,"rgba s3tc dxt3":ll,"rgba s3tc dxt5":af}),B.webgl_compressed_texture_atc&&e(Pe,{"rgb atc":Dv,"rgba atc explicit alpha":Qu,"rgba atc interpolated alpha":jf}),B.webgl_compressed_texture_pvrtc&&e(Pe,{"rgb pvrtc 4bppv1":Fv,"rgb pvrtc 2bppv1":Rv,"rgba pvrtc 4bppv1":Ku,"rgba pvrtc 2bppv1":qv}),B.webgl_compressed_texture_etc1&&(Pe["rgb etc1"]=ec);var fe=Array.prototype.slice.call(M.getParameter(J1));Object.keys(Pe).forEach(function(z){var pe=Pe[z];fe.indexOf(pe)>=0&&(xr[z]=pe)});var ke=Object.keys(xr);V.textureFormats=ke;var Ze=[];Object.keys(xr).forEach(function(z){var pe=xr[z];Ze[pe]=z});var ar=[];Object.keys(Fr).forEach(function(z){var pe=Fr[z];ar[pe]=z});var Be=[];Object.keys(nr).forEach(function(z){var pe=nr[z];Be[pe]=z});var _r=[];Object.keys(or).forEach(function(z){var pe=or[z];_r[pe]=z});var pr=[];Object.keys(ir).forEach(function(z){var pe=ir[z];pr[pe]=z});var Zr=ke.reduce(function(z,pe){var ge=xr[pe];return ge===Ao||ge===rf||ge===Ao||ge===Dl||ge===cs||ge===Fl||B.ext_srgb&&(ge===Go||ge===To)?z[ge]=ge:ge===zo||pe.indexOf("rgba")>=0?z[ge]=di:z[ge]=Bo,z},{});function Oe(){this.internalformat=di,this.format=di,this.type=Mo,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Pv,this.width=0,this.height=0,this.channels=0}function qe(z,pe){z.internalformat=pe.internalformat,z.format=pe.format,z.type=pe.type,z.compressed=pe.compressed,z.premultiplyAlpha=pe.premultiplyAlpha,z.flipY=pe.flipY,z.unpackAlignment=pe.unpackAlignment,z.colorSpace=pe.colorSpace,z.width=pe.width,z.height=pe.height,z.channels=pe.channels}function Sr(z,pe){if(!(typeof pe!="object"||!pe)){if("premultiplyAlpha"in pe&&(z.premultiplyAlpha=pe.premultiplyAlpha),"flipY"in pe&&(z.flipY=pe.flipY),"alignment"in pe&&(z.unpackAlignment=pe.alignment),"colorSpace"in pe&&(z.colorSpace=Qr[pe.colorSpace]),"type"in pe){var ge=pe.type;z.type=Fr[ge]}var Nr=z.width,Dt=z.height,Ht=z.channels,Rr=!1;"shape"in pe?(Nr=pe.shape[0],Dt=pe.shape[1],pe.shape.length===3&&(Ht=pe.shape[2],Rr=!0)):("radius"in pe&&(Nr=Dt=pe.radius),"width"in pe&&(Nr=pe.width),"height"in pe&&(Dt=pe.height),"channels"in pe&&(Ht=pe.channels,Rr=!0)),z.width=Nr|0,z.height=Dt|0,z.channels=Ht|0;var N=!1;if("format"in pe){var U=pe.format,Q=z.internalformat=xr[U];z.format=Zr[Q],U in Fr&&("type"in pe||(z.type=Fr[U])),U in Pe&&(z.compressed=!0),N=!0}!Rr&&N?z.channels=xn[z.format]:Rr&&!N&&z.channels!==Si[z.format]&&(z.format=z.internalformat=Si[z.channels])}}function hr(z){M.pixelStorei(np,z.flipY),M.pixelStorei(Eh,z.premultiplyAlpha),M.pixelStorei($f,z.colorSpace),M.pixelStorei(ap,z.unpackAlignment)}function sr(){Oe.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function cr(z,pe){var ge=null;if(Kf(pe)?ge=pe:pe&&(Sr(z,pe),"x"in pe&&(z.xOffset=pe.x|0),"y"in pe&&(z.yOffset=pe.y|0),Kf(pe.data)&&(ge=pe.data)),pe.copy){var Nr=be.viewportWidth,Dt=be.viewportHeight;z.width=z.width||Nr-z.xOffset,z.height=z.height||Dt-z.yOffset,z.needsCopy=!0}else if(!ge)z.width=z.width||1,z.height=z.height||1,z.channels=z.channels||4;else if(it(ge))z.channels=z.channels||4,z.data=ge,!("type"in pe)&&z.type===Mo&&(z.type=Uv(ge));else if(Iv(ge))z.channels=z.channels||4,up(z,ge),z.alignment=1,z.needsFree=!0;else if(st(ge)){var Ht=ge.data;!Array.isArray(Ht)&&z.type===Mo&&(z.type=Uv(Ht));var Rr=ge.shape,N=ge.stride,U,Q,de,Te,ue,se;Rr.length===3?(de=Rr[2],se=N[2]):(de=1,se=1),U=Rr[0],Q=Rr[1],Te=N[0],ue=N[1],z.alignment=1,z.width=U,z.height=Q,z.channels=de,z.format=z.internalformat=Si[de],z.needsFree=!0,Ch(z,Ht,Te,ue,se,ge.offset)}else if(zv(ge)||Gv(ge)||op(ge))zv(ge)||Gv(ge)?z.element=ge:z.element=ge.canvas,z.width=z.element.width,z.height=z.element.height,z.channels=4;else if(lp(ge))z.element=ge,z.width=ge.width,z.height=ge.height,z.channels=4;else if(sp(ge))z.element=ge,z.width=ge.naturalWidth,z.height=ge.naturalHeight,z.channels=4;else if(fp(ge))z.element=ge,z.width=ge.videoWidth,z.height=ge.videoHeight,z.channels=4;else if(Bv(ge)){var re=z.width||ge[0].length,W=z.height||ge.length,K=z.channels;Mi(ge[0][0])?K=K||ge[0][0].length:K=K||1;for(var Y=Se.shape(ge),ve=1,Ce=0;Ce>=Dt,ge.height>>=Dt,cr(ge,Nr[Dt]),z.mipmask|=1<=0&&!("faces"in pe)&&(z.genMipmaps=!0)}if("mag"in pe){var Nr=pe.mag;z.magFilter=nr[Nr]}var Dt=z.wrapS,Ht=z.wrapT;if("wrap"in pe){var Rr=pe.wrap;typeof Rr=="string"?Dt=Ht=ir[Rr]:Array.isArray(Rr)&&(Dt=ir[Rr[0]],Ht=ir[Rr[1]])}else{if("wrapS"in pe){var N=pe.wrapS;Dt=ir[N]}if("wrapT"in pe){var U=pe.wrapT;Ht=ir[U]}}if(z.wrapS=Dt,z.wrapT=Ht,"anisotropic"in pe){var Q=pe.anisotropic;z.anisotropic=pe.anisotropic}if("mipmap"in pe){var de=!1;switch(typeof pe.mipmap){case"string":z.mipmapHint=Ve[pe.mipmap],z.genMipmaps=!0,de=!0;break;case"boolean":de=z.genMipmaps=pe.mipmap;break;case"object":z.genMipmaps=!1,de=!0;break;default:}de&&!("min"in pe)&&(z.minFilter=hs)}}function Xa(z,pe){M.texParameteri(pe,ep,z.minFilter),M.texParameteri(pe,Jf,z.magFilter),M.texParameteri(pe,of,z.wrapS),M.texParameteri(pe,Q1,z.wrapT),B.ext_texture_filter_anisotropic&&M.texParameteri(pe,tp,z.anisotropic),z.genMipmaps&&(M.hint(Sh,z.mipmapHint),M.generateMipmap(pe))}var nn=0,ma={},ya=V.maxTextureUnits,Ea=Array(ya).map(function(){return null});function wt(z){Oe.call(this),this.mipmask=0,this.internalformat=di,this.id=nn++,this.refCount=1,this.target=z,this.texture=M.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Ut,xe.profile&&(this.stats={size:0})}function qa(z){M.activeTexture(So),M.bindTexture(z.target,z.texture)}function Wt(){var z=Ea[0];z?M.bindTexture(z.target,z.texture):M.bindTexture(bn,null)}function Za(z){var pe=z.texture,ge=z.unit,Nr=z.target;ge>=0&&(M.activeTexture(So+ge),M.bindTexture(Nr,null),Ea[ge]=null),M.deleteTexture(pe),z.texture=null,z.params=null,z.pixels=null,z.refCount=0,delete ma[z.id],Ae.textureCount--}e(wt.prototype,{bind:function(){var z=this;z.bindCount+=1;var pe=z.unit;if(pe<0){for(var ge=0;ge0)continue;Nr.unit=-1}Ea[ge]=z,pe=ge;break}pe>=ya,xe.profile&&Ae.maxTextureUnits>ue)-de,se.height=se.height||(ge.height>>ue)-Te,qa(ge),Jr(se,bn,de,Te,ue),Wt(),Cr(se),Nr}function Ht(Rr,N){var U=Rr|0,Q=N|0||U;if(U===ge.width&&Q===ge.height)return Nr;Nr.width=ge.width=U,Nr.height=ge.height=Q,qa(ge);for(var de=0;ge.mipmask>>de;++de){var Te=U>>de,ue=Q>>de;if(!Te||!ue)break;M.texImage2D(bn,de,ge.format,Te,ue,0,ge.format,ge.type,null)}return Wt(),xe.profile&&(ge.stats.size=ql(ge.internalformat,ge.type,U,Q,!1,!1)),Nr}return Nr(z,pe),Nr.subimage=Dt,Nr.resize=Ht,Nr._reglType="texture2d",Nr._texture=ge,xe.profile&&(Nr.stats=ge.stats),Nr.destroy=function(){ge.decRef()},Nr}function ln(z,pe,ge,Nr,Dt,Ht){var Rr=new wt(Ll);ma[Rr.id]=Rr,Ae.cubeCount++;var N=new Array(6);function U(Te,ue,se,re,W,K){var Y,ve=Rr.texInfo;for(Ut.call(ve),Y=0;Y<6;++Y)N[Y]=Lt();if(typeof Te=="number"||!Te){var Ce=Te|0||1;for(Y=0;Y<6;++Y)ut(N[Y],Ce,Ce)}else if(typeof Te=="object")if(ue)St(N[0],Te),St(N[1],ue),St(N[2],se),St(N[3],re),St(N[4],W),St(N[5],K);else if(Ya(ve,Te),Sr(Rr,Te),"faces"in Te){var Je=Te.faces;for(Y=0;Y<6;++Y)qe(N[Y],Rr),St(N[Y],Je[Y])}else for(Y=0;Y<6;++Y)St(N[Y],Te);for(qe(Rr,N[0]),ve.genMipmaps?Rr.mipmask=(N[0].width<<1)-1:Rr.mipmask=N[0].mipmask,Rr.internalformat=N[0].internalformat,U.width=N[0].width,U.height=N[0].height,qa(Rr),Y=0;Y<6;++Y)ta(N[Y],Io+Y);for(Xa(ve,Ll),Wt(),xe.profile&&(Rr.stats.size=ql(Rr.internalformat,Rr.type,U.width,U.height,ve.genMipmaps,!0)),U.format=Ze[Rr.internalformat],U.type=ar[Rr.type],U.mag=Be[ve.magFilter],U.min=_r[ve.minFilter],U.wrapS=pr[ve.wrapS],U.wrapT=pr[ve.wrapT],Y=0;Y<6;++Y)an(N[Y]);return U}function Q(Te,ue,se,re,W){var K=se|0,Y=re|0,ve=W|0,Ce=gr();return qe(Ce,Rr),Ce.width=0,Ce.height=0,cr(Ce,ue),Ce.width=Ce.width||(Rr.width>>ve)-K,Ce.height=Ce.height||(Rr.height>>ve)-Y,qa(Rr),Jr(Ce,Io+Te,K,Y,ve),Wt(),Cr(Ce),U}function de(Te){var ue=Te|0;if(ue!==Rr.width){U.width=Rr.width=ue,U.height=Rr.height=ue,qa(Rr);for(var se=0;se<6;++se)for(var re=0;Rr.mipmask>>re;++re)M.texImage2D(Io+se,re,Rr.format,ue>>re,ue>>re,0,Rr.format,Rr.type,null);return Wt(),xe.profile&&(Rr.stats.size=ql(Rr.internalformat,Rr.type,U.width,U.height,!1,!0)),U}}return U(z,pe,ge,Nr,Dt,Ht),U.subimage=Q,U.resize=de,U._reglType="textureCube",U._texture=Rr,xe.profile&&(U.stats=Rr.stats),U.destroy=function(){Rr.decRef()},U}function mt(){for(var z=0;z>Nr,ge.height>>Nr,0,ge.internalformat,ge.type,null);else for(var Dt=0;Dt<6;++Dt)M.texImage2D(Io+Dt,Nr,ge.internalformat,ge.width>>Nr,ge.height>>Nr,0,ge.internalformat,ge.type,null);Xa(ge.texInfo,ge.target)})}function Qt(){for(var z=0;z=0?an=!0:ir.indexOf(Ut)>=0&&(an=!1))),("depthTexture"in wt||"depthStencilTexture"in wt)&&(Ea=!!(wt.depthTexture||wt.depthStencilTexture)),"depth"in wt&&(typeof wt.depth=="boolean"?ta=wt.depth:(nn=wt.depth,Sa=!1)),"stencil"in wt&&(typeof wt.stencil=="boolean"?Sa=wt.stencil:(ma=wt.stencil,ta=!1)),"depthStencil"in wt&&(typeof wt.depthStencil=="boolean"?ta=Sa=wt.depthStencil:(ya=wt.depthStencil,ta=!1,Sa=!1))}var Wt=null,Za=null,on=null,ln=null;if(Array.isArray(Lt))Wt=Lt.map(Pe);else if(Lt)Wt=[Pe(Lt)];else for(Wt=new Array(Xa),ft=0;ft0&&(Cr.depth=cr[0].depth,Cr.stencil=cr[0].stencil,Cr.depthStencil=cr[0].depthStencil),cr[gr]?cr[gr](Cr):cr[gr]=qe(Cr)}return e(Er,{width:ft,height:ft,color:Ut})}function Jr(ct){var gr,Cr=ct|0;if(Cr===Er.width)return Er;var ft=Er.color;for(gr=0;gr=ft.byteLength?ut.subdata(ft):(ut.destroy(),qe.buffers[ct]=null)),qe.buffers[ct]||(ut=qe.buffers[ct]=be.create(gr,r0,!1,!0)),Cr.buffer=be.getBuffer(ut),Cr.size=Cr.buffer.dimension|0,Cr.normalized=!1,Cr.type=Cr.buffer.dtype,Cr.offset=0,Cr.stride=0,Cr.divisor=0,Cr.state=1,Er[ct]=1}else be.getBuffer(gr)?(Cr.buffer=be.getBuffer(gr),Cr.size=Cr.buffer.dimension|0,Cr.normalized=!1,Cr.type=Cr.buffer.dtype,Cr.offset=0,Cr.stride=0,Cr.divisor=0,Cr.state=1):be.getBuffer(gr.buffer)?(Cr.buffer=be.getBuffer(gr.buffer),Cr.size=(+gr.size||Cr.buffer.dimension)|0,Cr.normalized=!!gr.normalized||!1,"type"in gr?Cr.type=Tn[gr.type]:Cr.type=Cr.buffer.dtype,Cr.offset=(gr.offset||0)|0,Cr.stride=(gr.stride||0)|0,Cr.divisor=(gr.divisor||0)|0,Cr.state=1):"x"in gr&&(Cr.x=+gr.x||0,Cr.y=+gr.y||0,Cr.z=+gr.z||0,Cr.w=+gr.w||0,Cr.state=2)}for(var St=0;St1)for(var hr=0;hrfe&&(fe=ke.stats.uniformsCount)}),fe},V.getMaxAttributesCount=function(){var fe=0;return or.forEach(function(ke){ke.stats.attributesCount>fe&&(fe=ke.stats.attributesCount)}),fe});function Pe(){be={},Ae={};for(var fe=0;fe16&&(V=cl(V,M.length*8));for(var he=Array(16),be=Array(16),Ae=0;Ae<16;Ae++)he[Ae]=V[Ae]^909522486,be[Ae]=V[Ae]^1549556828;var xe=cl(he.concat(au(B)),512+B.length*8);return i0(cl(be.concat(xe),768))}function Ph(M){for(var B=Rh?"0123456789ABCDEF":"0123456789abcdef",V="",he,be=0;be>>4&15)+B.charAt(he&15);return V}function Tp(M){for(var B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V="",he=M.length,be=0;beM.length*8?V+=wp:V+=B.charAt(Ae>>>6*(3-xe)&63);return V}function Mp(M,B){var V=B.length,he=Array(),be,Ae,xe,Ve,ir=Array(Math.ceil(M.length/2));for(be=0;be0;){for(Ve=Array(),xe=0,be=0;be0||Ae>0)&&(Ve[Ve.length]=Ae);he[he.length]=xe,ir=Ve}var nr="";for(be=he.length-1;be>=0;be--)nr+=B.charAt(he[be]);var or=Math.ceil(M.length*8/(Math.log(B.length)/Math.log(2)));for(be=nr.length;be>>6&31,128|he&63):he<=65535?B+=String.fromCharCode(224|he>>>12&15,128|he>>>6&63,128|he&63):he<=2097151&&(B+=String.fromCharCode(240|he>>>18&7,128|he>>>12&63,128|he>>>6&63,128|he&63));return B}function au(M){for(var B=Array(M.length>>2),V=0;V>5]|=(M.charCodeAt(V/8)&255)<<24-V%32;return B}function i0(M){for(var B="",V=0;V>5]>>>24-V%32&255);return B}function In(M,B){return M>>>B|M<<32-B}function o0(M,B){return M>>>B}function Nh(M,B,V){return M&B^~M&V}function Oh(M,B,V){return M&B^M&V^B&V}function l0(M){return In(M,2)^In(M,13)^In(M,22)}function Ih(M){return In(M,6)^In(M,11)^In(M,25)}function sc(M){return In(M,7)^In(M,18)^o0(M,3)}function fc(M){return In(M,17)^In(M,19)^o0(M,10)}var Ep=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function cl(M,B){var V=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),he=new Array(64),be,Ae,xe,Ve,ir,nr,or,Qr,Fr,xr,Pe,fe;for(M[B>>5]|=128<<24-B%32,M[(B+64>>9<<4)+15]=B,Fr=0;Fr>16)+(B>>16)+(V>>16);return he<<16|V&65535}function ko(M){return Array.prototype.slice.call(M)}function Co(M){return ko(M).join("")}function Bh(M){var B=M&&M.cache,V=0,he=[],be=[],Ae=[];function xe(Pe,fe){var ke=fe&&fe.stable;if(!ke){for(var Ze=0;Ze0&&(Pe.push(ar,"="),Pe.push.apply(Pe,ko(arguments)),Pe.push(";")),ar}return e(fe,{def:Ze,toString:function(){return Co([ke.length>0?"var "+ke.join(",")+";":"",Co(Pe)])}})}function ir(){var Pe=Ve(),fe=Ve(),ke=Pe.toString,Ze=fe.toString;function ar(Be,_r){fe(Be,_r,"=",Pe.def(Be,_r),";")}return e(function(){Pe.apply(Pe,ko(arguments))},{def:Pe.def,entry:Pe,exit:fe,save:ar,set:function(Be,_r,pr){ar(Be,_r),Pe(Be,_r,"=",pr,";")},toString:function(){return ke()+Ze()}})}function nr(){var Pe=Co(arguments),fe=ir(),ke=ir(),Ze=fe.toString,ar=ke.toString;return e(fe,{then:function(){return fe.apply(fe,ko(arguments)),this},else:function(){return ke.apply(ke,ko(arguments)),this},toString:function(){var Be=ar();return Be&&(Be="else{"+Be+"}"),Co(["if(",Pe,"){",Ze(),"}",Be])}})}var or=Ve(),Qr={};function Fr(Pe,fe){var ke=[];function Ze(){var Zr="a"+ke.length;return ke.push(Zr),Zr}fe=fe||0;for(var ar=0;ar[b.viewport.x,b.viewport.y,m.viewportWidth,m.viewportHeight]},attributes:{color:{buffer:o,offset:(m,b)=>b.offset*4,divisor:1},position:{buffer:n,offset:(m,b)=>b.offset*8,divisor:1},positionFract:{buffer:i,offset:(m,b)=>b.offset*8,divisor:1},error:{buffer:l,offset:(m,b)=>b.offset*16,divisor:1},direction:{buffer:s,stride:24,offset:0},lineOffset:{buffer:s,stride:24,offset:8},capOffset:{buffer:s,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:KK.length}),$K(c,{update:p,draw:v,destroy:g,regl:e,gl:t,canvas:t.canvas,groups:u}),c;function c(m){m?p(m):m===null&&g(),v()}function v(m){if(typeof m=="number")return d(m);m&&!Array.isArray(m)&&(m=[m]),e._refresh(),u.forEach((b,A)=>{if(b){if(m&&(m[A]?b.draw=!0:b.draw=!1),!b.draw){b.draw=!0;return}d(A)}})}function d(m){typeof m=="number"&&(m=u[m]),m!=null&&m&&m.count&&m.color&&m.opacity&&m.positions&&m.positions.length>1&&(m.scaleRatio=[m.scale[0]*m.viewport.width,m.scale[1]*m.viewport.height],a(m),m.after&&m.after(m))}function p(m){if(!m)return;m.length!=null?typeof m[0]=="number"&&(m=[{positions:m}]):Array.isArray(m)||(m=[m]);let b=0,A=0;if(c.groups=u=m.map((T,E)=>{let S=u[E];if(T)typeof T=="function"?T={after:T}:typeof T[0]=="number"&&(T={positions:T});else return S;return T=R8e(T,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),S||(u[E]=S={id:E,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},T=$K({},f,T)),F8e(S,T,[{lineWidth:k=>+k*.5,capSize:k=>+k*.5,opacity:parseFloat,errors:k=>(k=QK(k),A+=k.length,k),positions:(k,F)=>(k=QK(k,"float64"),F.count=Math.floor(k.length/2),F.bounds=L8e(k,2),F.offset=b,b+=F.count,k)},{color:(k,F)=>{let O=F.count;if(k||(k="transparent"),!Array.isArray(k)||typeof k[0]=="number"){let R=k;k=Array(O);for(let H=0;H{let I=F.bounds;return k||(k=I),F.scale=[1/(k[2]-k[0]),1/(k[3]-k[1])],F.translate=[-k[0],-k[1]],F.scaleFract=z7(F.scale),F.translateFract=z7(F.translate),k},viewport:k=>{let F;return Array.isArray(k)?F={x:k[0],y:k[1],width:k[2]-k[0],height:k[3]-k[1]}:k?(F={x:k.x||k.left||0,y:k.y||k.top||0},k.right?F.width=k.right-F.x:F.width=k.w||k.width||0,k.bottom?F.height=k.bottom-F.y:F.height=k.h||k.height||0):F={x:0,y:0,width:t.drawingBufferWidth,height:t.drawingBufferHeight},F}}]),S}),b||A){let T=u.reduce((F,O,I)=>F+(O?O.count:0),0),E=new Float64Array(T*2),S=new Uint8Array(T*4),k=new Float32Array(T*4);u.forEach((F,O)=>{if(!F)return;let{positions:I,count:R,offset:H,color:X,errors:le}=F;R&&(S.set(X,H*4),k.set(le,H*4),E.set(I,H*2))});var _=q8e(E);n(_);var x=z7(E,_);i(x),o(S),l(k)}}function g(){n.destroy(),i.destroy(),o.destroy(),l.destroy(),s.destroy()}}});var nee=P((fOe,aee)=>{var tee=/[\'\"]/;aee.exports=function(r){return r?(tee.test(r.charAt(0))&&(r=r.substr(1)),tee.test(r.charAt(r.length-1))&&(r=r.substr(0,r.length-1)),r):""}});var G7=P(()=>{});var U7=P(()=>{});var H7=P(()=>{});var V7=P(()=>{});var Y7=P(()=>{});var see=P((xOe,lee)=>{"use strict";function iee(e,r){if(typeof e!="string")return[e];var t=[e];typeof r=="string"||Array.isArray(r)?r={brackets:r}:r||(r={});var a=r.brackets?Array.isArray(r.brackets)?r.brackets:[r.brackets]:["{}","[]","()"],n=r.escape||"___",i=!!r.flat;a.forEach(function(s){var f=new RegExp(["\\",s[0],"[^\\",s[0],"\\",s[1],"]*\\",s[1]].join("")),u=[];function c(v,d,p){var g=t.push(v.slice(s[0].length,-s[1].length))-1;return u.push(g),n+g+n}t.forEach(function(v,d){for(var p,g=0;v!=p;)if(p=v,v=v.replace(f,c),g++>1e4)throw Error("References have circular dependency. Please, check them.");t[d]=v}),u=u.reverse(),t=t.map(function(v){return u.forEach(function(d){v=v.replace(new RegExp("(\\"+n+d+"\\"+n+")","g"),s[0]+"$1"+s[1])}),v})});var o=new RegExp("\\"+n+"([0-9]+)\\"+n);function l(s,f,u){for(var c=[],v,d=0;v=o.exec(s);){if(d++>1e4)throw Error("Circular references in parenthesis");c.push(s.slice(0,v.index)),c.push(l(f[v[1]],f)),s=s.slice(v.index+v[0].length)}return c.push(s),c}return i?t:l(t[0],t)}function oee(e,r){if(r&&r.flat){var t=r&&r.escape||"___",a=e[0],n;if(!a)return"";for(var i=new RegExp("\\"+t+"([0-9]+)\\"+t),o=0;a!=n;){if(o++>1e4)throw Error("Circular references in "+e);n=a,a=a.replace(i,l)}return a}return e.reduce(function s(f,u){return Array.isArray(u)&&(u=u.reduce(s,"")),f+u},"");function l(s,f){if(e[f]==null)throw Error("Reference "+f+"is undefined");return e[f]}}function W7(e,r){return Array.isArray(e)?oee(e,r):iee(e,r)}W7.parse=iee;W7.stringify=oee;lee.exports=W7});var cee=P((_Oe,uee)=>{"use strict";var fee=see();uee.exports=function(r,t,a){if(r==null)throw Error("First argument should be a string");if(t==null)throw Error("Separator should be a string or a RegExp");a?(typeof a=="string"||Array.isArray(a))&&(a={ignore:a}):a={},a.escape==null&&(a.escape=!0),a.ignore==null?a.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof a.ignore=="string"&&(a.ignore=[a.ignore]),a.ignore=a.ignore.map(function(c){return c.length===1&&(c=c+c),c}));var n=fee.parse(r,{flat:!0,brackets:a.ignore}),i=n[0],o=i.split(t);if(a.escape){for(var l=[],s=0;s{});var j7=P((TOe,hee)=>{"use strict";var N8e=vee();hee.exports={isSize:function(r){return/^[\d\.]/.test(r)||r.indexOf("/")!==-1||N8e.indexOf(r)!==-1}}});var yee=P((MOe,mee)=>{"use strict";var O8e=nee(),I8e=G7(),B8e=U7(),z8e=H7(),G8e=V7(),U8e=Y7(),X7=cee(),H8e=j7().isSize;mee.exports=pee;var ng=pee.cache={};function pee(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(ng[e])return ng[e];if(e==="")throw new Error("Cannot parse an empty string.");if(B8e.indexOf(e)!==-1)return ng[e]={system:e};for(var r={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},t=X7(e,/\s+/),a;a=t.shift();){if(I8e.indexOf(a)!==-1)return["style","variant","weight","stretch"].forEach(function(i){r[i]=a}),ng[e]=r;if(G8e.indexOf(a)!==-1){r.style=a;continue}if(a==="normal"||a==="small-caps"){r.variant=a;continue}if(U8e.indexOf(a)!==-1){r.stretch=a;continue}if(z8e.indexOf(a)!==-1){r.weight=a;continue}if(H8e(a)){var n=X7(a,"/");if(r.size=n[0],n[1]!=null?r.lineHeight=dee(n[1]):t[0]==="/"&&(t.shift(),r.lineHeight=dee(t.shift())),!t.length)throw new Error("Missing required font-family.");return r.family=X7(t.join(" "),/\s*,\s*/).map(O8e),ng[e]=r}throw new Error("Unknown or unsupported font token: "+a)}throw new Error("Missing required font-size.")}function dee(e){var r=parseFloat(e);return r.toString()===e?r:e}});var J7=P((SOe,gee)=>{"use strict";var V8e=Of(),Y8e=j7().isSize,W8e=og(G7()),j8e=og(U7()),X8e=og(H7()),Z8e=og(V7()),J8e=og(Y7()),$8e={normal:1,"small-caps":1},Q8e={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},Z7={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};gee.exports=function(r){if(r=V8e(r,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),r.system)return r.system&&ig(r.system,j8e),r.system;if(ig(r.style,Z8e),ig(r.variant,$8e),ig(r.weight,X8e),ig(r.stretch,J8e),r.size==null&&(r.size=Z7.size),typeof r.size=="number"&&(r.size+="px"),!Y8e)throw Error("Bad size value `"+r.size+"`");r.family||(r.family=Z7.family),Array.isArray(r.family)&&(r.family.length||(r.family=[Z7.family]),r.family=r.family.map(function(a){return Q8e[a]?a:'"'+a+'"'}).join(", "));var t=[];return t.push(r.style),r.variant!==r.style&&t.push(r.variant),r.weight!==r.variant&&r.weight!==r.style&&t.push(r.weight),r.stretch!==r.weight&&r.stretch!==r.variant&&r.stretch!==r.style&&t.push(r.stretch),t.push(r.size+(r.lineHeight==null||r.lineHeight==="normal"||r.lineHeight+""=="1"?"":"/"+r.lineHeight)),t.push(r.family),t.filter(Boolean).join(" ")};function ig(e,r){if(e&&!r[e]&&!W8e[e])throw Error("Unknown keyword `"+e+"`");return e}function og(e){for(var r={},t=0;t{"use strict";bee.exports={parse:yee(),stringify:J7()}});var _ee=P(($7,Q7)=>{(function(e,r){typeof $7=="object"&&typeof Q7!="undefined"?Q7.exports=r():e.createREGL=r()})($7,function(){"use strict";var e=function(M,B){for(var V=Object.keys(B),he=0;he1&&B===V&&(B==='"'||B==="'"))return['"'+o(M.substr(1,M.length-2))+'"'];var he=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(M);if(he)return l(M.substr(0,he.index)).concat(l(he[1])).concat(l(M.substr(he.index+he[0].length)));var be=M.split(".");if(be.length===1)return['"'+o(M)+'"'];for(var we=[],xe=0;xe65535)<<4,M>>>=B,V=(M>255)<<3,M>>>=V,B|=V,V=(M>15)<<2,M>>>=V,B|=V,V=(M>3)<<1,M>>>=V,B|=V,B|M>>1}function Z(){var M=k(8,function(){return[]});function B(we){var xe=ae(we),Ye=M[$(xe)>>2];return Ye.length>0?Ye.pop():new ArrayBuffer(xe)}function V(we){M[$(we.byteLength)>>2].push(we)}function he(we,xe){var Ye=null;switch(we){case F:Ye=new Int8Array(B(xe),0,xe);break;case O:Ye=new Uint8Array(B(xe),0,xe);break;case I:Ye=new Int16Array(B(2*xe),0,xe);break;case R:Ye=new Uint16Array(B(2*xe),0,xe);break;case H:Ye=new Int32Array(B(4*xe),0,xe);break;case X:Ye=new Uint32Array(B(4*xe),0,xe);break;case le:Ye=new Float32Array(B(4*xe),0,xe);break;default:return null}return Ye.length!==xe?Ye.subarray(0,xe):Ye}function be(we){V(we.buffer)}return{alloc:B,free:V,allocType:he,freeType:be}}var J=Z();J.zero=Z();var oe=3408,ce=3410,De=3411,Oe=3412,Ee=3413,Je=3414,Ae=3415,or=33901,Ge=33902,He=3379,Ve=3386,Qe=34921,ee=36347,_e=36348,re=35661,Ze=35660,vr=34930,rr=36349,Cr=34076,Lr=34024,_r=7936,Pr=7937,rt=7938,Jr=35724,wr=34047,Hr=36063,Vr=34852,Pe=3553,sr=34067,lt=34069,Et=33984,wt=6408,Fe=5126,hr=5121,Or=36160,at=36053,Yr=36064,nt=16384,vt=function(M,B){var V=1;B.ext_texture_filter_anisotropic&&(V=M.getParameter(wr));var he=1,be=1;B.webgl_draw_buffers&&(he=M.getParameter(Vr),be=M.getParameter(Hr));var we=!!B.oes_texture_float;if(we){var xe=M.createTexture();M.bindTexture(Pe,xe),M.texImage2D(Pe,0,wt,1,1,0,wt,Fe,null);var Ye=M.createFramebuffer();if(M.bindFramebuffer(Or,Ye),M.framebufferTexture2D(Or,Yr,Pe,xe,0),M.bindTexture(Pe,null),M.checkFramebufferStatus(Or)!==at)we=!1;else{M.viewport(0,0,1,1),M.clearColor(1,0,0,1),M.clear(nt);var ir=J.allocType(Fe,4);M.readPixels(0,0,1,1,wt,Fe,ir),M.getError()?we=!1:(M.deleteFramebuffer(Ye),M.deleteTexture(xe),we=ir[0]===1),J.freeType(ir)}}var nr=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),lr=!0;if(!nr){var Zr=M.createTexture(),Fr=J.allocType(hr,36);M.activeTexture(Et),M.bindTexture(sr,Zr),M.texImage2D(lt,0,wt,3,3,0,wt,hr,Fr),J.freeType(Fr),M.bindTexture(sr,null),M.deleteTexture(Zr),lr=!M.getError()}return{colorBits:[M.getParameter(ce),M.getParameter(De),M.getParameter(Oe),M.getParameter(Ee)],depthBits:M.getParameter(Je),stencilBits:M.getParameter(Ae),subpixelBits:M.getParameter(oe),extensions:Object.keys(B).filter(function(br){return!!B[br]}),maxAnisotropic:V,maxDrawbuffers:he,maxColorAttachments:be,pointSizeDims:M.getParameter(or),lineWidthDims:M.getParameter(Ge),maxViewportDims:M.getParameter(Ve),maxCombinedTextureUnits:M.getParameter(re),maxCubeMapSize:M.getParameter(Cr),maxRenderbufferSize:M.getParameter(Lr),maxTextureUnits:M.getParameter(vr),maxTextureSize:M.getParameter(He),maxAttributes:M.getParameter(Qe),maxVertexUniforms:M.getParameter(ee),maxVertexTextureUnits:M.getParameter(Ze),maxVaryingVectors:M.getParameter(_e),maxFragmentUniforms:M.getParameter(rr),glsl:M.getParameter(Jr),renderer:M.getParameter(Pr),vendor:M.getParameter(_r),version:M.getParameter(rt),readFloat:we,npotTextureCube:lr}},ot=function(M){return M instanceof Uint8Array||M instanceof Uint16Array||M instanceof Uint32Array||M instanceof Int8Array||M instanceof Int16Array||M instanceof Int32Array||M instanceof Float32Array||M instanceof Float64Array||M instanceof Uint8ClampedArray};function et(M){return!!M&&typeof M=="object"&&Array.isArray(M.shape)&&Array.isArray(M.stride)&&typeof M.offset=="number"&&M.shape.length===M.stride.length&&(Array.isArray(M.data)||ot(M.data))}var pr=function(M){return Object.keys(M).map(function(B){return M[B]})},Se={shape:gt,flatten:At};function Ie(M,B,V){for(var he=0;he0){var Wr;if(Array.isArray(ke[0])){mr=ia(ke);for(var Be=1,qe=1;qe0){if(typeof Be[0]=="number"){var fr=J.allocType(ze.dtype,Be.length);Wi(fr,Be),mr(fr,Mr),J.freeType(fr)}else if(Array.isArray(Be[0])||ot(Be[0])){dr=ia(Be);var ur=Ca(Be,dr,ze.dtype);mr(ur,Mr),J.freeType(ur)}}}else if(et(Be)){dr=Be.shape;var Sr=Be.stride,jr=0,ut=0,gr=0,kr=0;dr.length===1?(jr=dr[0],ut=1,gr=Sr[0],kr=0):dr.length===2&&(jr=dr[0],ut=dr[1],gr=Sr[0],kr=Sr[1]);var st=Array.isArray(Be.data)?ze.dtype:tn(Be.data),ft=J.allocType(st,jr*ut);ji(ft,Be.data,jr,ut,gr,kr,Be.offset),mr(ft,Mr),J.freeType(ft)}return xr}return Xe||xr(fe),xr._reglType="buffer",xr._buffer=ze,xr.subdata=Wr,V.profile&&(xr.stats=ze.stats),xr.destroy=function(){Fr(ze)},xr}function Ne(){pr(we).forEach(function(fe){fe.buffer=M.createBuffer(),M.bindBuffer(fe.type,fe.buffer),M.bufferData(fe.type,fe.persistentData||fe.byteLength,fe.usage)})}return V.profile&&(B.getTotalBufferSize=function(){var fe=0;return Object.keys(we).forEach(function(ke){fe+=we[ke].stats.size}),fe}),{create:br,createStream:ir,destroyStream:nr,clear:function(){pr(we).forEach(Fr),Ye.forEach(Fr)},getBuffer:function(fe){return fe&&fe._buffer instanceof xe?fe._buffer:null},restore:Ne,_initBuffer:Zr}}var Ra=0,Xn=0,ss=1,fs=1,kl=4,Zu=4,Oo={points:Ra,point:Xn,lines:ss,line:fs,triangles:kl,triangle:Zu,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Yf=0,Wf=1,Xi=4,hi=5120,Ii=5121,Cl=5122,di=5123,qt=5124,$t=5125,ua=34963,_t=35040,Zn=35044;function Ua(M,B,V,he){var be={},we=0,xe={uint8:Ii,uint16:di};B.oes_element_index_uint&&(xe.uint32=$t);function Ye(Ne){this.id=we++,be[this.id]=this,this.buffer=Ne,this.primType=Xi,this.vertCount=0,this.type=0}Ye.prototype.bind=function(){this.buffer.bind()};var ir=[];function nr(Ne){var fe=ir.pop();return fe||(fe=new Ye(V.create(null,ua,!0,!1)._buffer)),Zr(fe,Ne,_t,-1,-1,0,0),fe}function lr(Ne){ir.push(Ne)}function Zr(Ne,fe,ke,Xe,ar,ze,xr){Ne.buffer.bind();var mr;if(fe){var Wr=xr;!xr&&(!ot(fe)||et(fe)&&!ot(fe.data))&&(Wr=B.oes_element_index_uint?$t:di),V._initBuffer(Ne.buffer,fe,ke,Wr,3)}else M.bufferData(ua,ze,ke),Ne.buffer.dtype=mr||Ii,Ne.buffer.usage=ke,Ne.buffer.dimension=3,Ne.buffer.byteLength=ze;if(mr=xr,!xr){switch(Ne.buffer.dtype){case Ii:case hi:mr=Ii;break;case di:case Cl:mr=di;break;case $t:case qt:mr=$t;break;default:}Ne.buffer.dtype=mr}Ne.type=mr;var Be=ar;Be<0&&(Be=Ne.buffer.byteLength,mr===di?Be>>=1:mr===$t&&(Be>>=2)),Ne.vertCount=Be;var qe=Xe;if(Xe<0){qe=Xi;var Mr=Ne.buffer.dimension;Mr===1&&(qe=Yf),Mr===2&&(qe=Wf),Mr===3&&(qe=Xi)}Ne.primType=qe}function Fr(Ne){he.elementsCount--,delete be[Ne.id],Ne.buffer.destroy(),Ne.buffer=null}function br(Ne,fe){var ke=V.create(null,ua,!0),Xe=new Ye(ke._buffer);he.elementsCount++;function ar(ze){if(!ze)ke(),Xe.primType=Xi,Xe.vertCount=0,Xe.type=Ii;else if(typeof ze=="number")ke(ze),Xe.primType=Xi,Xe.vertCount=ze|0,Xe.type=Ii;else{var xr=null,mr=Zn,Wr=-1,Be=-1,qe=0,Mr=0;Array.isArray(ze)||ot(ze)||et(ze)?xr=ze:("data"in ze&&(xr=ze.data),"usage"in ze&&(mr=Pt[ze.usage]),"primitive"in ze&&(Wr=Oo[ze.primitive]),"count"in ze&&(Be=ze.count|0),"type"in ze&&(Mr=xe[ze.type]),"length"in ze?qe=ze.length|0:(qe=Be,Mr===di||Mr===Cl?qe*=2:(Mr===$t||Mr===qt)&&(qe*=4))),Zr(Xe,xr,mr,Wr,Be,qe,Mr)}return ar}return ar(Ne),ar._reglType="elements",ar._elements=Xe,ar.subdata=function(ze,xr){return ke.subdata(ze,xr),ar},ar.destroy=function(){Fr(Xe)},ar}return{create:br,createStream:nr,destroyStream:lr,getElements:function(Ne){return typeof Ne=="function"&&Ne._elements instanceof Ye?Ne._elements:null},clear:function(){pr(be).forEach(Fr)}}}var Pn=new Float32Array(1),ra=new Uint32Array(Pn.buffer),wo=5123;function ol(M){for(var B=J.allocType(wo,M.length),V=0;V>>31<<15,we=(he<<1>>>24)-127,xe=he>>13&1023;if(we<-24)B[V]=be;else if(we<-14){var Ye=-14-we;B[V]=be+(xe+1024>>Ye)}else we>15?B[V]=be+31744:B[V]=be+(we+15<<10)+xe}return B}function Si(M){return Array.isArray(M)||ot(M)}var Jp=34467,An=3553,Ll=34067,Io=34069,pi=6408,rf=6406,Bo=6407,Ao=6409,Dl=6410,Ju=32854,zo=32855,us=36194,Mh=32819,$p=32820,$u=33635,Lv=34042,cs=6402,Fl=34041,Go=35904,To=35906,mi=36193,tf=33776,vs=33777,ll=33778,af=33779,Dv=35986,Qu=35987,jf=34798,Fv=35840,Rv=35841,Ku=35842,qv=35843,ec=36196,Mo=5121,nf=5123,Xf=5125,Bi=5126,of=10242,Qp=10243,Kp=10497,Zf=33071,Sh=33648,Jf=10240,e1=10241,Rl=9728,rc=9729,hs=9984,lf=9985,ds=9986,sl=9987,Eh=33170,fl=4352,r1=4353,tc=4354,t1=34046,a1=3317,n1=37440,kh=37441,$f=37443,Pv=37444,So=33984,Ch=[hs,ds,lf,sl],Ei=[0,Ao,Dl,Bo,pi],Tn={};Tn[Ao]=Tn[rf]=Tn[cs]=1,Tn[Fl]=Tn[Dl]=2,Tn[Bo]=Tn[Go]=3,Tn[pi]=Tn[To]=4;function Zi(M){return"[object "+M+"]"}var Qf=Zi("HTMLCanvasElement"),ul=Zi("OffscreenCanvas"),sf=Zi("CanvasRenderingContext2D"),ac=Zi("ImageBitmap"),Nv=Zi("HTMLImageElement"),Ov=Zi("HTMLVideoElement"),i1=Object.keys(Nt).concat([Qf,ul,sf,ac,Nv,Ov]),so=[];so[Mo]=1,so[Bi]=4,so[mi]=2,so[nf]=2,so[Xf]=4;var _a=[];_a[Ju]=2,_a[zo]=2,_a[us]=2,_a[Fl]=4,_a[tf]=.5,_a[vs]=.5,_a[ll]=1,_a[af]=1,_a[Dv]=.5,_a[Qu]=1,_a[jf]=1,_a[Fv]=.5,_a[Rv]=.25,_a[Ku]=.5,_a[qv]=.25,_a[ec]=.5;function Iv(M){return Array.isArray(M)&&(M.length===0||typeof M[0]=="number")}function Bv(M){if(!Array.isArray(M))return!1;var B=M.length;return!(B===0||!Si(M[0]))}function Ji(M){return Object.prototype.toString.call(M)}function zv(M){return Ji(M)===Qf}function Gv(M){return Ji(M)===ul}function o1(M){return Ji(M)===sf}function l1(M){return Ji(M)===ac}function s1(M){return Ji(M)===Nv}function f1(M){return Ji(M)===Ov}function Kf(M){if(!M)return!1;var B=Ji(M);return i1.indexOf(B)>=0?!0:Iv(M)||Bv(M)||et(M)}function Uv(M){return Nt[Object.prototype.toString.call(M)]|0}function u1(M,B){var V=B.length;switch(M.type){case Mo:case nf:case Xf:case Bi:var he=J.allocType(M.type,V);he.set(B),M.data=he;break;case mi:M.data=ol(B);break;default:}}function Hv(M,B){return J.allocType(M.type===mi?Bi:M.type,B)}function nc(M,B){M.type===mi?(M.data=ol(B),J.freeType(B)):M.data=B}function Lh(M,B,V,he,be,we){for(var xe=M.width,Ye=M.height,ir=M.channels,nr=xe*Ye*ir,lr=Hv(M,nr),Zr=0,Fr=0;Fr=1;)Ye+=xe*ir*ir,ir/=2;return Ye}else return xe*V*he}function Dh(M,B,V,he,be,we,xe){var Ye={"don't care":fl,"dont care":fl,nice:tc,fast:r1},ir={repeat:Kp,clamp:Zf,mirror:Sh},nr={nearest:Rl,linear:rc},lr=e({mipmap:sl,"nearest mipmap nearest":hs,"linear mipmap nearest":lf,"nearest mipmap linear":ds,"linear mipmap linear":sl},nr),Zr={none:0,browser:Pv},Fr={uint8:Mo,rgba4:Mh,rgb565:$u,"rgb5 a1":$p},br={alpha:rf,luminance:Ao,"luminance alpha":Dl,rgb:Bo,rgba:pi,rgba4:Ju,"rgb5 a1":zo,rgb565:us},Ne={};B.ext_srgb&&(br.srgb=Go,br.srgba=To),B.oes_texture_float&&(Fr.float32=Fr.float=Bi),B.oes_texture_half_float&&(Fr.float16=Fr["half float"]=mi),B.webgl_depth_texture&&(e(br,{depth:cs,"depth stencil":Fl}),e(Fr,{uint16:nf,uint32:Xf,"depth stencil":Lv})),B.webgl_compressed_texture_s3tc&&e(Ne,{"rgb s3tc dxt1":tf,"rgba s3tc dxt1":vs,"rgba s3tc dxt3":ll,"rgba s3tc dxt5":af}),B.webgl_compressed_texture_atc&&e(Ne,{"rgb atc":Dv,"rgba atc explicit alpha":Qu,"rgba atc interpolated alpha":jf}),B.webgl_compressed_texture_pvrtc&&e(Ne,{"rgb pvrtc 4bppv1":Fv,"rgb pvrtc 2bppv1":Rv,"rgba pvrtc 4bppv1":Ku,"rgba pvrtc 2bppv1":qv}),B.webgl_compressed_texture_etc1&&(Ne["rgb etc1"]=ec);var fe=Array.prototype.slice.call(M.getParameter(Jp));Object.keys(Ne).forEach(function(z){var pe=Ne[z];fe.indexOf(pe)>=0&&(br[z]=pe)});var ke=Object.keys(br);V.textureFormats=ke;var Xe=[];Object.keys(br).forEach(function(z){var pe=br[z];Xe[pe]=z});var ar=[];Object.keys(Fr).forEach(function(z){var pe=Fr[z];ar[pe]=z});var ze=[];Object.keys(nr).forEach(function(z){var pe=nr[z];ze[pe]=z});var xr=[];Object.keys(lr).forEach(function(z){var pe=lr[z];xr[pe]=z});var mr=[];Object.keys(ir).forEach(function(z){var pe=ir[z];mr[pe]=z});var Wr=ke.reduce(function(z,pe){var ge=br[pe];return ge===Ao||ge===rf||ge===Ao||ge===Dl||ge===cs||ge===Fl||B.ext_srgb&&(ge===Go||ge===To)?z[ge]=ge:ge===zo||pe.indexOf("rgba")>=0?z[ge]=pi:z[ge]=Bo,z},{});function Be(){this.internalformat=pi,this.format=pi,this.type=Mo,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Pv,this.width=0,this.height=0,this.channels=0}function qe(z,pe){z.internalformat=pe.internalformat,z.format=pe.format,z.type=pe.type,z.compressed=pe.compressed,z.premultiplyAlpha=pe.premultiplyAlpha,z.flipY=pe.flipY,z.unpackAlignment=pe.unpackAlignment,z.colorSpace=pe.colorSpace,z.width=pe.width,z.height=pe.height,z.channels=pe.channels}function Mr(z,pe){if(!(typeof pe!="object"||!pe)){if("premultiplyAlpha"in pe&&(z.premultiplyAlpha=pe.premultiplyAlpha),"flipY"in pe&&(z.flipY=pe.flipY),"alignment"in pe&&(z.unpackAlignment=pe.alignment),"colorSpace"in pe&&(z.colorSpace=Zr[pe.colorSpace]),"type"in pe){var ge=pe.type;z.type=Fr[ge]}var Nr=z.width,Dt=z.height,Ht=z.channels,Rr=!1;"shape"in pe?(Nr=pe.shape[0],Dt=pe.shape[1],pe.shape.length===3&&(Ht=pe.shape[2],Rr=!0)):("radius"in pe&&(Nr=Dt=pe.radius),"width"in pe&&(Nr=pe.width),"height"in pe&&(Dt=pe.height),"channels"in pe&&(Ht=pe.channels,Rr=!0)),z.width=Nr|0,z.height=Dt|0,z.channels=Ht|0;var N=!1;if("format"in pe){var U=pe.format,Q=z.internalformat=br[U];z.format=Wr[Q],U in Fr&&("type"in pe||(z.type=Fr[U])),U in Ne&&(z.compressed=!0),N=!0}!Rr&&N?z.channels=Tn[z.format]:Rr&&!N&&z.channels!==Ei[z.format]&&(z.format=z.internalformat=Ei[z.channels])}}function dr(z){M.pixelStorei(n1,z.flipY),M.pixelStorei(kh,z.premultiplyAlpha),M.pixelStorei($f,z.colorSpace),M.pixelStorei(a1,z.unpackAlignment)}function fr(){Be.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function ur(z,pe){var ge=null;if(Kf(pe)?ge=pe:pe&&(Mr(z,pe),"x"in pe&&(z.xOffset=pe.x|0),"y"in pe&&(z.yOffset=pe.y|0),Kf(pe.data)&&(ge=pe.data)),pe.copy){var Nr=be.viewportWidth,Dt=be.viewportHeight;z.width=z.width||Nr-z.xOffset,z.height=z.height||Dt-z.yOffset,z.needsCopy=!0}else if(!ge)z.width=z.width||1,z.height=z.height||1,z.channels=z.channels||4;else if(ot(ge))z.channels=z.channels||4,z.data=ge,!("type"in pe)&&z.type===Mo&&(z.type=Uv(ge));else if(Iv(ge))z.channels=z.channels||4,u1(z,ge),z.alignment=1,z.needsFree=!0;else if(et(ge)){var Ht=ge.data;!Array.isArray(Ht)&&z.type===Mo&&(z.type=Uv(Ht));var Rr=ge.shape,N=ge.stride,U,Q,de,Te,ue,se;Rr.length===3?(de=Rr[2],se=N[2]):(de=1,se=1),U=Rr[0],Q=Rr[1],Te=N[0],ue=N[1],z.alignment=1,z.width=U,z.height=Q,z.channels=de,z.format=z.internalformat=Ei[de],z.needsFree=!0,Lh(z,Ht,Te,ue,se,ge.offset)}else if(zv(ge)||Gv(ge)||o1(ge))zv(ge)||Gv(ge)?z.element=ge:z.element=ge.canvas,z.width=z.element.width,z.height=z.element.height,z.channels=4;else if(l1(ge))z.element=ge,z.width=ge.width,z.height=ge.height,z.channels=4;else if(s1(ge))z.element=ge,z.width=ge.naturalWidth,z.height=ge.naturalHeight,z.channels=4;else if(f1(ge))z.element=ge,z.width=ge.videoWidth,z.height=ge.videoHeight,z.channels=4;else if(Bv(ge)){var te=z.width||ge[0].length,W=z.height||ge.length,K=z.channels;Si(ge[0][0])?K=K||ge[0][0].length:K=K||1;for(var Y=Se.shape(ge),ve=1,Ce=0;Ce>=Dt,ge.height>>=Dt,ur(ge,Nr[Dt]),z.mipmask|=1<=0&&!("faces"in pe)&&(z.genMipmaps=!0)}if("mag"in pe){var Nr=pe.mag;z.magFilter=nr[Nr]}var Dt=z.wrapS,Ht=z.wrapT;if("wrap"in pe){var Rr=pe.wrap;typeof Rr=="string"?Dt=Ht=ir[Rr]:Array.isArray(Rr)&&(Dt=ir[Rr[0]],Ht=ir[Rr[1]])}else{if("wrapS"in pe){var N=pe.wrapS;Dt=ir[N]}if("wrapT"in pe){var U=pe.wrapT;Ht=ir[U]}}if(z.wrapS=Dt,z.wrapT=Ht,"anisotropic"in pe){var Q=pe.anisotropic;z.anisotropic=pe.anisotropic}if("mipmap"in pe){var de=!1;switch(typeof pe.mipmap){case"string":z.mipmapHint=Ye[pe.mipmap],z.genMipmaps=!0,de=!0;break;case"boolean":de=z.genMipmaps=pe.mipmap;break;case"object":z.genMipmaps=!1,de=!0;break;default:}de&&!("min"in pe)&&(z.minFilter=hs)}}function Za(z,pe){M.texParameteri(pe,e1,z.minFilter),M.texParameteri(pe,Jf,z.magFilter),M.texParameteri(pe,of,z.wrapS),M.texParameteri(pe,Qp,z.wrapT),B.ext_texture_filter_anisotropic&&M.texParameteri(pe,t1,z.anisotropic),z.genMipmaps&&(M.hint(Eh,z.mipmapHint),M.generateMipmap(pe))}var on=0,pa={},ma=V.maxTextureUnits,Sa=Array(ma).map(function(){return null});function Tt(z){Be.call(this),this.mipmask=0,this.internalformat=pi,this.id=on++,this.refCount=1,this.target=z,this.texture=M.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Ut,xe.profile&&(this.stats={size:0})}function qa(z){M.activeTexture(So),M.bindTexture(z.target,z.texture)}function Wt(){var z=Sa[0];z?M.bindTexture(z.target,z.texture):M.bindTexture(An,null)}function Ja(z){var pe=z.texture,ge=z.unit,Nr=z.target;ge>=0&&(M.activeTexture(So+ge),M.bindTexture(Nr,null),Sa[ge]=null),M.deleteTexture(pe),z.texture=null,z.params=null,z.pixels=null,z.refCount=0,delete pa[z.id],we.textureCount--}e(Tt.prototype,{bind:function(){var z=this;z.bindCount+=1;var pe=z.unit;if(pe<0){for(var ge=0;ge0)continue;Nr.unit=-1}Sa[ge]=z,pe=ge;break}pe>=ma,xe.profile&&we.maxTextureUnits>ue)-de,se.height=se.height||(ge.height>>ue)-Te,qa(ge),jr(se,An,de,Te,ue),Wt(),kr(se),Nr}function Ht(Rr,N){var U=Rr|0,Q=N|0||U;if(U===ge.width&&Q===ge.height)return Nr;Nr.width=ge.width=U,Nr.height=ge.height=Q,qa(ge);for(var de=0;ge.mipmask>>de;++de){var Te=U>>de,ue=Q>>de;if(!Te||!ue)break;M.texImage2D(An,de,ge.format,Te,ue,0,ge.format,ge.type,null)}return Wt(),xe.profile&&(ge.stats.size=ql(ge.internalformat,ge.type,U,Q,!1,!1)),Nr}return Nr(z,pe),Nr.subimage=Dt,Nr.resize=Ht,Nr._reglType="texture2d",Nr._texture=ge,xe.profile&&(Nr.stats=ge.stats),Nr.destroy=function(){ge.decRef()},Nr}function sn(z,pe,ge,Nr,Dt,Ht){var Rr=new Tt(Ll);pa[Rr.id]=Rr,we.cubeCount++;var N=new Array(6);function U(Te,ue,se,te,W,K){var Y,ve=Rr.texInfo;for(Ut.call(ve),Y=0;Y<6;++Y)N[Y]=Lt();if(typeof Te=="number"||!Te){var Ce=Te|0||1;for(Y=0;Y<6;++Y)ft(N[Y],Ce,Ce)}else if(typeof Te=="object")if(ue)St(N[0],Te),St(N[1],ue),St(N[2],se),St(N[3],te),St(N[4],W),St(N[5],K);else if(Ya(ve,Te),Mr(Rr,Te),"faces"in Te){var $e=Te.faces;for(Y=0;Y<6;++Y)qe(N[Y],Rr),St(N[Y],$e[Y])}else for(Y=0;Y<6;++Y)St(N[Y],Te);for(qe(Rr,N[0]),ve.genMipmaps?Rr.mipmask=(N[0].width<<1)-1:Rr.mipmask=N[0].mipmask,Rr.internalformat=N[0].internalformat,U.width=N[0].width,U.height=N[0].height,qa(Rr),Y=0;Y<6;++Y)aa(N[Y],Io+Y);for(Za(ve,Ll),Wt(),xe.profile&&(Rr.stats.size=ql(Rr.internalformat,Rr.type,U.width,U.height,ve.genMipmaps,!0)),U.format=Xe[Rr.internalformat],U.type=ar[Rr.type],U.mag=ze[ve.magFilter],U.min=xr[ve.minFilter],U.wrapS=mr[ve.wrapS],U.wrapT=mr[ve.wrapT],Y=0;Y<6;++Y)nn(N[Y]);return U}function Q(Te,ue,se,te,W){var K=se|0,Y=te|0,ve=W|0,Ce=gr();return qe(Ce,Rr),Ce.width=0,Ce.height=0,ur(Ce,ue),Ce.width=Ce.width||(Rr.width>>ve)-K,Ce.height=Ce.height||(Rr.height>>ve)-Y,qa(Rr),jr(Ce,Io+Te,K,Y,ve),Wt(),kr(Ce),U}function de(Te){var ue=Te|0;if(ue!==Rr.width){U.width=Rr.width=ue,U.height=Rr.height=ue,qa(Rr);for(var se=0;se<6;++se)for(var te=0;Rr.mipmask>>te;++te)M.texImage2D(Io+se,te,Rr.format,ue>>te,ue>>te,0,Rr.format,Rr.type,null);return Wt(),xe.profile&&(Rr.stats.size=ql(Rr.internalformat,Rr.type,U.width,U.height,!1,!0)),U}}return U(z,pe,ge,Nr,Dt,Ht),U.subimage=Q,U.resize=de,U._reglType="textureCube",U._texture=Rr,xe.profile&&(U.stats=Rr.stats),U.destroy=function(){Rr.decRef()},U}function pt(){for(var z=0;z>Nr,ge.height>>Nr,0,ge.internalformat,ge.type,null);else for(var Dt=0;Dt<6;++Dt)M.texImage2D(Io+Dt,Nr,ge.internalformat,ge.width>>Nr,ge.height>>Nr,0,ge.internalformat,ge.type,null);Za(ge.texInfo,ge.target)})}function Qt(){for(var z=0;z=0?nn=!0:ir.indexOf(Ut)>=0&&(nn=!1))),("depthTexture"in Tt||"depthStencilTexture"in Tt)&&(Sa=!!(Tt.depthTexture||Tt.depthStencilTexture)),"depth"in Tt&&(typeof Tt.depth=="boolean"?aa=Tt.depth:(on=Tt.depth,Ma=!1)),"stencil"in Tt&&(typeof Tt.stencil=="boolean"?Ma=Tt.stencil:(pa=Tt.stencil,aa=!1)),"depthStencil"in Tt&&(typeof Tt.depthStencil=="boolean"?aa=Ma=Tt.depthStencil:(ma=Tt.depthStencil,aa=!1,Ma=!1))}var Wt=null,Ja=null,ln=null,sn=null;if(Array.isArray(Lt))Wt=Lt.map(Ne);else if(Lt)Wt=[Ne(Lt)];else for(Wt=new Array(Za),st=0;st0&&(kr.depth=ur[0].depth,kr.stencil=ur[0].stencil,kr.depthStencil=ur[0].depthStencil),ur[gr]?ur[gr](kr):ur[gr]=qe(kr)}return e(Sr,{width:st,height:st,color:Ut})}function jr(ut){var gr,kr=ut|0;if(kr===Sr.width)return Sr;var st=Sr.color;for(gr=0;gr=st.byteLength?ft.subdata(st):(ft.destroy(),qe.buffers[ut]=null)),qe.buffers[ut]||(ft=qe.buffers[ut]=be.create(gr,r0,!1,!0)),kr.buffer=be.getBuffer(ft),kr.size=kr.buffer.dimension|0,kr.normalized=!1,kr.type=kr.buffer.dtype,kr.offset=0,kr.stride=0,kr.divisor=0,kr.state=1,Sr[ut]=1}else be.getBuffer(gr)?(kr.buffer=be.getBuffer(gr),kr.size=kr.buffer.dimension|0,kr.normalized=!1,kr.type=kr.buffer.dtype,kr.offset=0,kr.stride=0,kr.divisor=0,kr.state=1):be.getBuffer(gr.buffer)?(kr.buffer=be.getBuffer(gr.buffer),kr.size=(+gr.size||kr.buffer.dimension)|0,kr.normalized=!!gr.normalized||!1,"type"in gr?kr.type=vn[gr.type]:kr.type=kr.buffer.dtype,kr.offset=(gr.offset||0)|0,kr.stride=(gr.stride||0)|0,kr.divisor=(gr.divisor||0)|0,kr.state=1):"x"in gr&&(kr.x=+gr.x||0,kr.y=+gr.y||0,kr.z=+gr.z||0,kr.w=+gr.w||0,kr.state=2)}for(var St=0;St1)for(var dr=0;drfe&&(fe=ke.stats.uniformsCount)}),fe},V.getMaxAttributesCount=function(){var fe=0;return lr.forEach(function(ke){ke.stats.attributesCount>fe&&(fe=ke.stats.attributesCount)}),fe});function Ne(){be={},we={};for(var fe=0;fe16&&(V=cl(V,M.length*8));for(var he=Array(16),be=Array(16),we=0;we<16;we++)he[we]=V[we]^909522486,be[we]=V[we]^1549556828;var xe=cl(he.concat(au(B)),512+B.length*8);return i0(cl(be.concat(xe),768))}function Nh(M){for(var B=qh?"0123456789ABCDEF":"0123456789abcdef",V="",he,be=0;be>>4&15)+B.charAt(he&15);return V}function T1(M){for(var B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V="",he=M.length,be=0;beM.length*8?V+=w1:V+=B.charAt(we>>>6*(3-xe)&63);return V}function M1(M,B){var V=B.length,he=Array(),be,we,xe,Ye,ir=Array(Math.ceil(M.length/2));for(be=0;be0;){for(Ye=Array(),xe=0,be=0;be0||we>0)&&(Ye[Ye.length]=we);he[he.length]=xe,ir=Ye}var nr="";for(be=he.length-1;be>=0;be--)nr+=B.charAt(he[be]);var lr=Math.ceil(M.length*8/(Math.log(B.length)/Math.log(2)));for(be=nr.length;be>>6&31,128|he&63):he<=65535?B+=String.fromCharCode(224|he>>>12&15,128|he>>>6&63,128|he&63):he<=2097151&&(B+=String.fromCharCode(240|he>>>18&7,128|he>>>12&63,128|he>>>6&63,128|he&63));return B}function au(M){for(var B=Array(M.length>>2),V=0;V>5]|=(M.charCodeAt(V/8)&255)<<24-V%32;return B}function i0(M){for(var B="",V=0;V>5]>>>24-V%32&255);return B}function Bn(M,B){return M>>>B|M<<32-B}function o0(M,B){return M>>>B}function Oh(M,B,V){return M&B^~M&V}function Ih(M,B,V){return M&B^M&V^B&V}function l0(M){return Bn(M,2)^Bn(M,13)^Bn(M,22)}function Bh(M){return Bn(M,6)^Bn(M,11)^Bn(M,25)}function sc(M){return Bn(M,7)^Bn(M,18)^o0(M,3)}function fc(M){return Bn(M,17)^Bn(M,19)^o0(M,10)}var E1=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function cl(M,B){var V=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),he=new Array(64),be,we,xe,Ye,ir,nr,lr,Zr,Fr,br,Ne,fe;for(M[B>>5]|=128<<24-B%32,M[(B+64>>9<<4)+15]=B,Fr=0;Fr>16)+(B>>16)+(V>>16);return he<<16|V&65535}function ko(M){return Array.prototype.slice.call(M)}function Co(M){return ko(M).join("")}function zh(M){var B=M&&M.cache,V=0,he=[],be=[],we=[];function xe(Ne,fe){var ke=fe&&fe.stable;if(!ke){for(var Xe=0;Xe0&&(Ne.push(ar,"="),Ne.push.apply(Ne,ko(arguments)),Ne.push(";")),ar}return e(fe,{def:Xe,toString:function(){return Co([ke.length>0?"var "+ke.join(",")+";":"",Co(Ne)])}})}function ir(){var Ne=Ye(),fe=Ye(),ke=Ne.toString,Xe=fe.toString;function ar(ze,xr){fe(ze,xr,"=",Ne.def(ze,xr),";")}return e(function(){Ne.apply(Ne,ko(arguments))},{def:Ne.def,entry:Ne,exit:fe,save:ar,set:function(ze,xr,mr){ar(ze,xr),Ne(ze,xr,"=",mr,";")},toString:function(){return ke()+Xe()}})}function nr(){var Ne=Co(arguments),fe=ir(),ke=ir(),Xe=fe.toString,ar=ke.toString;return e(fe,{then:function(){return fe.apply(fe,ko(arguments)),this},else:function(){return ke.apply(ke,ko(arguments)),this},toString:function(){var ze=ar();return ze&&(ze="else{"+ze+"}"),Co(["if(",Ne,"){",Xe(),"}",ze])}})}var lr=Ye(),Zr={};function Fr(Ne,fe){var ke=[];function Xe(){var Wr="a"+ke.length;return ke.push(Wr),Wr}fe=fe||0;for(var ar=0;ar":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Re={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ge={cw:w,ccw:C};function er(M){return Array.isArray(M)||it(M)||st(M)}function tr(M){return M.sort(function(B,V){return B===oi?-1:V===oi?1:B=1,he>=2,B)}else if(V===_s){var be=M.data;return new Le(be.thisDep,be.contextDep,be.propDep,B)}else{if(V===vc)return new Le(!1,!1,!1,B);if(V===vf){for(var Ae=!1,xe=!1,Ve=!1,ir=0;ir=1&&(xe=!0),or>=2&&(Ve=!0)}else nr.type===_s&&(Ae=Ae||nr.data.thisDep,xe=xe||nr.data.contextDep,Ve=Ve||nr.data.propDep)}return new Le(Ae,xe,Ve,B)}else return new Le(V===cf,V===cc,V===uf,B)}}var gt=new Le(!1,!1,!1,function(){});function kt(M,B,V,he,be,Ae,xe,Ve,ir,nr,or,Qr,Fr,xr,Pe,fe){var ke=nr.Record,Ze={add:32774,subtract:32778,"reverse subtract":32779};V.ext_blend_minmax&&(Ze.min=L,Ze.max=D);var ar=V.angle_instanced_arrays,Be=V.webgl_draw_buffers,_r=V.oes_vertex_array_object,pr={dirty:!0,profile:fe.profile},Zr={},Oe=[],qe={},Sr={};function hr(N){return N.replace(".","_")}function sr(N,U,Q){var de=hr(N);Oe.push(N),Zr[de]=pr[de]=!!Q,qe[de]=U}function cr(N,U,Q){var de=hr(N);Oe.push(N),Array.isArray(Q)?(pr[de]=Q.slice(),Zr[de]=Q.slice()):pr[de]=Zr[de]=Q,Sr[de]=U}function Er(N){return!!isNaN(N)}sr(hc,Dp),sr(s0,Lp),cr(f0,"blendColor",[0,0,0,0]),cr(iu,"blendEquationSeparate",[ie,ie]),cr(ou,"blendFuncSeparate",[ne,j,ne,j]),sr(dc,Uh,!0),cr(pc,"depthFunc",me),cr(mc,"depthRange",[0,1]),cr(yc,"depthMask",!0),cr(lu,lu,[!0,!0,!0,!0]),sr(hf,Gh),cr(u0,"cullFace",y),cr(su,su,C),cr(df,df,1),sr(gc,wc),cr(fu,"polygonOffset",[0,0]),sr(pf,Vh),sr(mf,Ac),cr(yf,"sampleCoverage",[1,!1]),sr(bc,Fp),cr(uu,"stencilMask",-1),cr(ki,"stencilFunc",[G,0,-1]),cr(gf,"stencilOpSeparate",[h,q,q,q]),cr(vl,"stencilOpSeparate",[y,q,q,q]),sr(cu,Hh),cr(hl,"scissor",[0,0,M.drawingBufferWidth,M.drawingBufferHeight]),cr(oi,oi,[0,0,M.drawingBufferWidth,M.drawingBufferHeight]);var Jr={gl:M,context:Fr,strings:B,next:Zr,current:pr,draw:Qr,elements:Ae,buffer:be,shader:or,attributes:nr.state,vao:nr,uniforms:ir,framebuffer:Ve,extensions:V,timer:xr,isBufferArgs:er},ct={primTypes:Oo,compareFuncs:Me,blendFuncs:Ke,blendEquations:Ze,stencilOps:Re,glTypes:Tn,orientationType:Ge};Be&&(ct.backBuffer=[y],ct.drawBuffer=k(he.maxDrawbuffers,function(N){return N===0?[0]:k(N,function(U){return We+U})}));var gr=0;function Cr(){var N=Bh({cache:Pe}),U=N.link,Q=N.global;N.id=gr++,N.batchId="0";var de=U(Jr),Te=N.shared={props:"a0"};Object.keys(Jr).forEach(function(K){Te[K]=Q.def(de,".",K)});var ue=N.next={},se=N.current={};Object.keys(Sr).forEach(function(K){Array.isArray(pr[K])&&(ue[K]=Q.def(Te.next,".",K),se[K]=Q.def(Te.current,".",K))});var re=N.constants={};Object.keys(ct).forEach(function(K){re[K]=Q.def(JSON.stringify(ct[K]))}),N.invoke=function(K,Y){switch(Y.type){case nu:var ve=["this",Te.context,Te.props,N.batchId];return K.def(U(Y.data),".call(",ve.slice(0,Math.max(Y.data.length+1,4)),")");case uf:return K.def(Te.props,Y.data);case cc:return K.def(Te.context,Y.data);case cf:return K.def("this",Y.data);case _s:return Y.data.append(N,K),Y.data.ref;case vc:return Y.data.toString();case vf:return Y.data.map(function(Ce){return N.invoke(K,Ce)})}},N.attribCache={};var W={};return N.scopeAttrib=function(K){var Y=B.id(K);if(Y in W)return W[Y];var ve=nr.scope[Y];ve||(ve=nr.scope[Y]=new ke);var Ce=W[Y]=U(ve);return Ce},N}function ft(N){var U=N.static,Q=N.dynamic,de;if(ws in U){var Te=!!U[ws];de=zr(function(se,re){return Te}),de.enable=Te}else if(ws in Q){var ue=Q[ws];de=nt(ue,function(se,re){return se.invoke(re,ue)})}return de}function ut(N,U){var Q=N.static,de=N.dynamic;if(Lo in Q){var Te=Q[Lo];return Te?(Te=Ve.getFramebuffer(Te),zr(function(se,re){var W=se.link(Te),K=se.shared;re.set(K.framebuffer,".next",W);var Y=K.context;return re.set(Y,"."+$i,W+".width"),re.set(Y,"."+Qi,W+".height"),W})):zr(function(se,re){var W=se.shared;re.set(W.framebuffer,".next","null");var K=W.context;return re.set(K,"."+$i,K+"."+xc),re.set(K,"."+Qi,K+"."+_c),"null"})}else if(Lo in de){var ue=de[Lo];return nt(ue,function(se,re){var W=se.invoke(re,ue),K=se.shared,Y=K.framebuffer,ve=re.def(Y,".getFramebuffer(",W,")");re.set(Y,".next",ve);var Ce=K.context;return re.set(Ce,"."+$i,ve+"?"+ve+".width:"+Ce+"."+xc),re.set(Ce,"."+Qi,ve+"?"+ve+".height:"+Ce+"."+_c),ve})}else return null}function St(N,U,Q){var de=N.static,Te=N.dynamic;function ue(W){if(W in de){var K=de[W],Y=!0,ve=K.x|0,Ce=K.y|0,Je,et;return"width"in K?Je=K.width|0:Y=!1,"height"in K?et=K.height|0:Y=!1,new Le(!Y&&U&&U.thisDep,!Y&&U&&U.contextDep,!Y&&U&&U.propDep,function($r,Gr){var Br=$r.shared.context,Tr=Je;"width"in K||(Tr=Gr.def(Br,".",$i,"-",ve));var qr=et;return"height"in K||(qr=Gr.def(Br,".",Qi,"-",Ce)),[ve,Ce,Tr,qr]})}else if(W in Te){var kr=Te[W],Ar=nt(kr,function($r,Gr){var Br=$r.invoke(Gr,kr),Tr=$r.shared.context,qr=Gr.def(Br,".x|0"),Ir=Gr.def(Br,".y|0"),vt=Gr.def('"width" in ',Br,"?",Br,".width|0:","(",Tr,".",$i,"-",qr,")"),Kt=Gr.def('"height" in ',Br,"?",Br,".height|0:","(",Tr,".",Qi,"-",Ir,")");return[qr,Ir,vt,Kt]});return U&&(Ar.thisDep=Ar.thisDep||U.thisDep,Ar.contextDep=Ar.contextDep||U.contextDep,Ar.propDep=Ar.propDep||U.propDep),Ar}else return U?new Le(U.thisDep,U.contextDep,U.propDep,function($r,Gr){var Br=$r.shared.context;return[0,0,Gr.def(Br,".",$i),Gr.def(Br,".",Qi)]}):null}var se=ue(oi);if(se){var re=se;se=new Le(se.thisDep,se.contextDep,se.propDep,function(W,K){var Y=re.append(W,K),ve=W.shared.context;return K.set(ve,"."+kp,Y[2]),K.set(ve,"."+Cp,Y[3]),Y})}return{viewport:se,scissor_box:ue(hl)}}function ta(N,U){var Q=N.static,de=typeof Q[dl]=="string"&&typeof Q[Ho]=="string";if(de){if(Object.keys(U.dynamic).length>0)return null;var Te=U.static,ue=Object.keys(Te);if(ue.length>0&&typeof Te[ue[0]]=="number"){for(var se=[],re=0;re"+qr+"?"+Y+".constant["+qr+"]:0;"}).join(""),"}}else{","if(",Je,"(",Y,".buffer)){",$r,"=",et,".createStream(",vo,",",Y,".buffer);","}else{",$r,"=",et,".getBuffer(",Y,".buffer);","}",Gr,'="type" in ',Y,"?",Ce.glTypes,"[",Y,".type]:",$r,".dtype;",kr.normalized,"=!!",Y,".normalized;");function Br(Tr){K(kr[Tr],"=",Y,".",Tr,"|0;")}return Br("size"),Br("offset"),Br("stride"),Br("divisor"),K("}}"),K.exit("if(",kr.isStream,"){",et,".destroyStream(",$r,");","}"),kr}Te[ue]=nt(se,re)}),Te}function Xa(N){var U=N.static,Q=N.dynamic,de={};return Object.keys(U).forEach(function(Te){var ue=U[Te];de[Te]=zr(function(se,re){return typeof ue=="number"||typeof ue=="boolean"?""+ue:se.link(ue)})}),Object.keys(Q).forEach(function(Te){var ue=Q[Te];de[Te]=nt(ue,function(se,re){return se.invoke(re,ue)})}),de}function nn(N,U,Q,de,Te){var ue=N.static,se=N.dynamic,re=ta(N,U),W=ut(N,Te),K=St(N,W,Te),Y=Lt(N,Te),ve=an(N,Te),Ce=Sa(N,Te,re);function Je(Br){var Tr=K[Br];Tr&&(ve[Br]=Tr)}Je(oi),Je(hr(hl));var et=Object.keys(ve).length>0,kr={framebuffer:W,draw:Y,shader:Ce,state:ve,dirty:et,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(kr.profile=ft(N,Te),kr.uniforms=Ut(Q,Te),kr.drawVAO=kr.scopeVAO=Y.vao,!kr.drawVAO&&Ce.program&&!re&&V.angle_instanced_arrays&&Y.static.elements){var Ar=!0,$r=Ce.program.attributes.map(function(Br){var Tr=U.static[Br];return Ar=Ar&&!!Tr,Tr});if(Ar&&$r.length>0){var Gr=nr.getVAO(nr.createVAO({attributes:$r,elements:Y.static.elements}));kr.drawVAO=new Le(null,null,null,function(Br,Tr){return Br.link(Gr)}),kr.useVAO=!0}}return re?kr.useVAO=!0:kr.attributes=Ya(U,Te),kr.context=Xa(de,Te),kr}function ma(N,U,Q){var de=N.shared,Te=de.context,ue=N.scope();Object.keys(Q).forEach(function(se){U.save(Te,"."+se);var re=Q[se],W=re.append(N,U);Array.isArray(W)?ue(Te,".",se,"=[",W.join(),"];"):ue(Te,".",se,"=",W,";")}),U(ue)}function ya(N,U,Q,de){var Te=N.shared,ue=Te.gl,se=Te.framebuffer,re;Be&&(re=U.def(Te.extensions,".webgl_draw_buffers"));var W=N.constants,K=W.drawBuffer,Y=W.backBuffer,ve;Q?ve=Q.append(N,U):ve=U.def(se,".next"),de||U("if(",ve,"!==",se,".cur){"),U("if(",ve,"){",ue,".bindFramebuffer(",ye,",",ve,".framebuffer);"),Be&&U(re,".drawBuffersWEBGL(",K,"[",ve,".colorAttachments.length]);"),U("}else{",ue,".bindFramebuffer(",ye,",null);"),Be&&U(re,".drawBuffersWEBGL(",Y,");"),U("}",se,".cur=",ve,";"),de||U("}")}function Ea(N,U,Q){var de=N.shared,Te=de.gl,ue=N.current,se=N.next,re=de.current,W=de.next,K=N.cond(re,".dirty");Oe.forEach(function(Y){var ve=hr(Y);if(!(ve in Q.state)){var Ce,Je;if(ve in se){Ce=se[ve],Je=ue[ve];var et=k(pr[ve].length,function(Ar){return K.def(Ce,"[",Ar,"]")});K(N.cond(et.map(function(Ar,$r){return Ar+"!=="+Je+"["+$r+"]"}).join("||")).then(Te,".",Sr[ve],"(",et,");",et.map(function(Ar,$r){return Je+"["+$r+"]="+Ar}).join(";"),";"))}else{Ce=K.def(W,".",ve);var kr=N.cond(Ce,"!==",re,".",ve);K(kr),ve in qe?kr(N.cond(Ce).then(Te,".enable(",qe[ve],");").else(Te,".disable(",qe[ve],");"),re,".",ve,"=",Ce,";"):kr(Te,".",Sr[ve],"(",Ce,");",re,".",ve,"=",Ce,";")}}}),Object.keys(Q.state).length===0&&K(re,".dirty=false;"),U(K)}function wt(N,U,Q,de){var Te=N.shared,ue=N.current,se=Te.current,re=Te.gl,W;tr(Object.keys(Q)).forEach(function(K){var Y=Q[K];if(!(de&&!de(Y))){var ve=Y.append(N,U);if(qe[K]){var Ce=qe[K];Dr(Y)?(W=N.link(ve,{stable:!0}),U(N.cond(W).then(re,".enable(",Ce,");").else(re,".disable(",Ce,");")),U(se,".",K,"=",W,";")):(U(N.cond(ve).then(re,".enable(",Ce,");").else(re,".disable(",Ce,");")),U(se,".",K,"=",ve,";"))}else if(Mi(ve)){var Je=ue[K];U(re,".",Sr[K],"(",ve,");",ve.map(function(et,kr){return Je+"["+kr+"]="+et}).join(";"),";")}else Dr(Y)?(W=N.link(ve,{stable:!0}),U(re,".",Sr[K],"(",W,");",se,".",K,"=",W,";")):U(re,".",Sr[K],"(",ve,");",se,".",K,"=",ve,";")}})}function qa(N,U){ar&&(N.instancing=U.def(N.shared.extensions,".angle_instanced_arrays"))}function Wt(N,U,Q,de,Te){var ue=N.shared,se=N.stats,re=ue.current,W=ue.timer,K=Q.profile;function Y(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var ve,Ce;function Je(Br){ve=U.def(),Br(ve,"=",Y(),";"),typeof Te=="string"?Br(se,".count+=",Te,";"):Br(se,".count++;"),xr&&(de?(Ce=U.def(),Br(Ce,"=",W,".getNumPendingQueries();")):Br(W,".beginQuery(",se,");"))}function et(Br){Br(se,".cpuTime+=",Y(),"-",ve,";"),xr&&(de?Br(W,".pushScopeStats(",Ce,",",W,".getNumPendingQueries(),",se,");"):Br(W,".endQuery();"))}function kr(Br){var Tr=U.def(re,".profile");U(re,".profile=",Br,";"),U.exit(re,".profile=",Tr,";")}var Ar;if(K){if(Dr(K)){K.enable?(Je(U),et(U.exit),kr("true")):kr("false");return}Ar=K.append(N,U),kr(Ar)}else Ar=U.def(re,".profile");var $r=N.block();Je($r),U("if(",Ar,"){",$r,"}");var Gr=N.block();et(Gr),U.exit("if(",Ar,"){",Gr,"}")}function Za(N,U,Q,de,Te){var ue=N.shared;function se(W){switch(W){case pl:case Ol:case Il:return 2;case tn:case As:case _f:return 3;case xf:case du:case mu:return 4;default:return 1}}function re(W,K,Y){var ve=ue.gl,Ce=U.def(W,".location"),Je=U.def(ue.attributes,"[",Ce,"]"),et=Y.state,kr=Y.buffer,Ar=[Y.x,Y.y,Y.z,Y.w],$r=["buffer","normalized","offset","stride"];function Gr(){U("if(!",Je,".buffer){",ve,".enableVertexAttribArray(",Ce,");}");var Tr=Y.type,qr;if(Y.size?qr=U.def(Y.size,"||",K):qr=K,U("if(",Je,".type!==",Tr,"||",Je,".size!==",qr,"||",$r.map(function(vt){return Je+"."+vt+"!=="+Y[vt]}).join("||"),"){",ve,".bindBuffer(",vo,",",kr,".buffer);",ve,".vertexAttribPointer(",[Ce,qr,Tr,Y.normalized,Y.stride,Y.offset],");",Je,".type=",Tr,";",Je,".size=",qr,";",$r.map(function(vt){return Je+"."+vt+"="+Y[vt]+";"}).join(""),"}"),ar){var Ir=Y.divisor;U("if(",Je,".divisor!==",Ir,"){",N.instancing,".vertexAttribDivisorANGLE(",[Ce,Ir],");",Je,".divisor=",Ir,";}")}}function Br(){U("if(",Je,".buffer){",ve,".disableVertexAttribArray(",Ce,");",Je,".buffer=null;","}if(",fo.map(function(Tr,qr){return Je+"."+Tr+"!=="+Ar[qr]}).join("||"),"){",ve,".vertexAttrib4f(",Ce,",",Ar,");",fo.map(function(Tr,qr){return Je+"."+Tr+"="+Ar[qr]+";"}).join(""),"}")}et===Ji?Gr():et===xs?Br():(U("if(",et,"===",Ji,"){"),Gr(),U("}else{"),Br(),U("}"))}de.forEach(function(W){var K=W.name,Y=Q.attributes[K],ve;if(Y){if(!Te(Y))return;ve=Y.append(N,U)}else{if(!Te(gt))return;var Ce=N.scopeAttrib(K);ve={},Object.keys(new ke).forEach(function(Je){ve[Je]=U.def(Ce,".",Je)})}re(N.link(W),se(W.info.type),ve)})}function on(N,U,Q,de,Te,ue){for(var se=N.shared,re=se.gl,W,K=0;K1){for(var sn=[],Li=[],Ki=0;Ki>1)",kr],");")}function Ir(){Q(Ar,".drawArraysInstancedANGLE(",[Ce,Je,et,kr],");")}Y&&Y!=="null"?Gr?qr():(Q("if(",Y,"){"),qr(),Q("}else{"),Ir(),Q("}")):Ir()}function Tr(){function qr(){Q(ue+".drawElements("+[Ce,et,$r,Je+"<<(("+$r+"-"+uc+")>>1)"]+");")}function Ir(){Q(ue+".drawArrays("+[Ce,Je,et]+");")}Y&&Y!=="null"?Gr?qr():(Q("if(",Y,"){"),qr(),Q("}else{"),Ir(),Q("}")):Ir()}ar&&(typeof kr!="number"||kr>=0)?typeof kr=="string"?(Q("if(",kr,">0){"),Br(),Q("}else if(",kr,"<0){"),Tr(),Q("}")):Br():Tr()}function mt(N,U,Q,de,Te){var ue=Cr(),se=ue.proc("body",Te);return ar&&(ue.instancing=se.def(ue.shared.extensions,".angle_instanced_arrays")),N(ue,se,Q,de),ue.compile().body}function Rt(N,U,Q,de){qa(N,U),Q.useVAO?Q.drawVAO?U(N.shared.vao,".setVAO(",Q.drawVAO.append(N,U),");"):U(N.shared.vao,".setVAO(",N.shared.vao,".targetVAO);"):(U(N.shared.vao,".setVAO(null);"),Za(N,U,Q,de.attributes,function(){return!0})),on(N,U,Q,de.uniforms,function(){return!0},!1),ln(N,U,U,Q)}function Qt(N,U){var Q=N.proc("draw",1);qa(N,Q),ma(N,Q,U.context),ya(N,Q,U.framebuffer),Ea(N,Q,U),wt(N,Q,U.state),Wt(N,Q,U,!1,!0);var de=U.shader.progVar.append(N,Q);if(Q(N.shared.gl,".useProgram(",de,".program);"),U.shader.program)Rt(N,Q,U,U.shader.program);else{Q(N.shared.vao,".setVAO(null);");var Te=N.global.def("{}"),ue=Q.def(de,".id"),se=Q.def(Te,"[",ue,"]");Q(N.cond(se).then(se,".call(this,a0);").else(se,"=",Te,"[",ue,"]=",N.link(function(re){return mt(Rt,N,U,re,1)}),"(",de,");",se,".call(this,a0);"))}Object.keys(U.state).length>0&&Q(N.shared.current,".dirty=true;"),N.shared.vao&&Q(N.shared.vao,".setVAO(null);")}function z(N,U,Q,de){N.batchId="a1",qa(N,U);function Te(){return!0}Za(N,U,Q,de.attributes,Te),on(N,U,Q,de.uniforms,Te,!1),ln(N,U,U,Q)}function pe(N,U,Q,de){qa(N,U);var Te=Q.contextDep,ue=U.def(),se="a0",re="a1",W=U.def();N.shared.props=W,N.batchId=ue;var K=N.scope(),Y=N.scope();U(K.entry,"for(",ue,"=0;",ue,"<",re,";++",ue,"){",W,"=",se,"[",ue,"];",Y,"}",K.exit);function ve($r){return $r.contextDep&&Te||$r.propDep}function Ce($r){return!ve($r)}if(Q.needsContext&&ma(N,Y,Q.context),Q.needsFramebuffer&&ya(N,Y,Q.framebuffer),wt(N,Y,Q.state,ve),Q.profile&&ve(Q.profile)&&Wt(N,Y,Q,!1,!0),de)Q.useVAO?Q.drawVAO?ve(Q.drawVAO)?Y(N.shared.vao,".setVAO(",Q.drawVAO.append(N,Y),");"):K(N.shared.vao,".setVAO(",Q.drawVAO.append(N,K),");"):K(N.shared.vao,".setVAO(",N.shared.vao,".targetVAO);"):(K(N.shared.vao,".setVAO(null);"),Za(N,K,Q,de.attributes,Ce),Za(N,Y,Q,de.attributes,ve)),on(N,K,Q,de.uniforms,Ce,!1),on(N,Y,Q,de.uniforms,ve,!0),ln(N,K,Y,Q);else{var Je=N.global.def("{}"),et=Q.shader.progVar.append(N,Y),kr=Y.def(et,".id"),Ar=Y.def(Je,"[",kr,"]");Y(N.shared.gl,".useProgram(",et,".program);","if(!",Ar,"){",Ar,"=",Je,"[",kr,"]=",N.link(function($r){return mt(z,N,Q,$r,2)}),"(",et,");}",Ar,".call(this,a0[",ue,"],",ue,");")}}function ge(N,U){var Q=N.proc("batch",2);N.batchId="0",qa(N,Q);var de=!1,Te=!0;Object.keys(U.context).forEach(function(Je){de=de||U.context[Je].propDep}),de||(ma(N,Q,U.context),Te=!1);var ue=U.framebuffer,se=!1;ue?(ue.propDep?de=se=!0:ue.contextDep&&de&&(se=!0),se||ya(N,Q,ue)):ya(N,Q,null),U.state.viewport&&U.state.viewport.propDep&&(de=!0);function re(Je){return Je.contextDep&&de||Je.propDep}Ea(N,Q,U),wt(N,Q,U.state,function(Je){return!re(Je)}),(!U.profile||!re(U.profile))&&Wt(N,Q,U,!1,"a1"),U.contextDep=de,U.needsContext=Te,U.needsFramebuffer=se;var W=U.shader.progVar;if(W.contextDep&&de||W.propDep)pe(N,Q,U,null);else{var K=W.append(N,Q);if(Q(N.shared.gl,".useProgram(",K,".program);"),U.shader.program)pe(N,Q,U,U.shader.program);else{Q(N.shared.vao,".setVAO(null);");var Y=N.global.def("{}"),ve=Q.def(K,".id"),Ce=Q.def(Y,"[",ve,"]");Q(N.cond(Ce).then(Ce,".call(this,a0,a1);").else(Ce,"=",Y,"[",ve,"]=",N.link(function(Je){return mt(pe,N,U,Je,2)}),"(",K,");",Ce,".call(this,a0,a1);"))}}Object.keys(U.state).length>0&&Q(N.shared.current,".dirty=true;"),N.shared.vao&&Q(N.shared.vao,".setVAO(null);")}function Nr(N,U){var Q=N.proc("scope",3);N.batchId="a2";var de=N.shared,Te=de.current;if(ma(N,Q,U.context),U.framebuffer&&U.framebuffer.append(N,Q),tr(Object.keys(U.state)).forEach(function(re){var W=U.state[re],K=W.append(N,Q);Mi(K)?K.forEach(function(Y,ve){Er(Y)?Q.set(N.next[re],"["+ve+"]",Y):Q.set(N.next[re],"["+ve+"]",N.link(Y,{stable:!0}))}):Dr(W)?Q.set(de.next,"."+re,N.link(K,{stable:!0})):Q.set(de.next,"."+re,K)}),Wt(N,Q,U,!0,!0),[uo,vu,Fo,mi,Do].forEach(function(re){var W=U.draw[re];if(W){var K=W.append(N,Q);Er(K)?Q.set(de.draw,"."+re,K):Q.set(de.draw,"."+re,N.link(K),{stable:!0})}}),Object.keys(U.uniforms).forEach(function(re){var W=U.uniforms[re].append(N,Q);Array.isArray(W)&&(W="["+W.map(function(K){return Er(K)?K:N.link(K,{stable:!0})})+"]"),Q.set(de.uniforms,"["+N.link(B.id(re),{stable:!0})+"]",W)}),Object.keys(U.attributes).forEach(function(re){var W=U.attributes[re].append(N,Q),K=N.scopeAttrib(re);Object.keys(new ke).forEach(function(Y){Q.set(K,"."+Y,W[Y])})}),U.scopeVAO){var ue=U.scopeVAO.append(N,Q);Er(ue)?Q.set(de.vao,".targetVAO",ue):Q.set(de.vao,".targetVAO",N.link(ue,{stable:!0}))}function se(re){var W=U.shader[re];if(W){var K=W.append(N,Q);Er(K)?Q.set(de.shader,"."+re,K):Q.set(de.shader,"."+re,N.link(K,{stable:!0}))}}se(Ho),se(dl),Object.keys(U.state).length>0&&(Q(Te,".dirty=true;"),Q.exit(Te,".dirty=true;")),Q("a1(",N.shared.context,",a0,",N.batchId,");")}function Dt(N){if(!(typeof N!="object"||Mi(N))){for(var U=Object.keys(N),Q=0;Q=0;--mt){var Rt=Jr[mt];Rt&&Rt(Pe,null,0)}V.flush(),or&&or.update()}function St(){!ft&&Jr.length>0&&(ft=d.next(ut))}function ta(){ft&&(d.cancel(ut),ft=null)}function Sa(mt){mt.preventDefault(),be=!0,ta(),ct.forEach(function(Rt){Rt()})}function Lt(mt){V.getError(),be=!1,Ae.restore(),Zr.restore(),ar.restore(),Oe.restore(),qe.restore(),Sr.restore(),_r.restore(),or&&or.restore(),hr.procs.refresh(),St(),gr.forEach(function(Rt){Rt()})}Er&&(Er.addEventListener(jt,Sa,!1),Er.addEventListener(va,Lt,!1));function an(){Jr.length=0,ta(),Er&&(Er.removeEventListener(jt,Sa),Er.removeEventListener(va,Lt)),Zr.clear(),Sr.clear(),qe.clear(),_r.clear(),Oe.clear(),Be.clear(),ar.clear(),or&&or.clear(),Cr.forEach(function(mt){mt()})}function Ut(mt){function Rt(ue){var se=e({},ue);delete se.uniforms,delete se.attributes,delete se.context,delete se.vao,"stencil"in se&&se.stencil.op&&(se.stencil.opBack=se.stencil.opFront=se.stencil.op,delete se.stencil.op);function re(W){if(W in se){var K=se[W];delete se[W],Object.keys(K).forEach(function(Y){se[W+"."+Y]=K[Y]})}}return re("blend"),re("depth"),re("cull"),re("stencil"),re("polygonOffset"),re("scissor"),re("sample"),"vao"in ue&&(se.vao=ue.vao),se}function Qt(ue,se){var re={},W={};return Object.keys(ue).forEach(function(K){var Y=ue[K];if(v.isDynamic(Y)){W[K]=v.unbox(Y,K);return}else if(se&&Array.isArray(Y)){for(var ve=0;ve0)return N.call(this,de(ue|0),ue|0)}else if(Array.isArray(ue)){if(ue.length)return N.call(this,ue,ue.length)}else return Rr.call(this,ue)}return e(Te,{stats:Dt,destroy:function(){Ht.destroy()}})}var Ya=Sr.setFBO=Ut({framebuffer:v.define.call(null,ja,"framebuffer")});function Xa(mt,Rt){var Qt=0;hr.procs.poll();var z=Rt.color;z&&(V.clearColor(+z[0]||0,+z[1]||0,+z[2]||0,+z[3]||0),Qt|=mn),"depth"in Rt&&(V.clearDepth(+Rt.depth),Qt|=Da),"stencil"in Rt&&(V.clearStencil(Rt.stencil|0),Qt|=dt),V.clear(Qt)}function nn(mt){if("framebuffer"in mt)if(mt.framebuffer&&mt.framebuffer_reglType==="framebufferCube")for(var Rt=0;Rt<6;++Rt)Ya(e({framebuffer:mt.framebuffer.faces[Rt]},mt),Xa);else Ya(mt,Xa);else Xa(null,mt)}function ma(mt){Jr.push(mt);function Rt(){var Qt=Zn(Jr,mt);function z(){var pe=Zn(Jr,z);Jr[pe]=Jr[Jr.length-1],Jr.length-=1,Jr.length<=0&&ta()}Jr[Qt]=z}return St(),{cancel:Rt}}function ya(){var mt=cr.viewport,Rt=cr.scissor_box;mt[0]=mt[1]=Rt[0]=Rt[1]=0,Pe.viewportWidth=Pe.framebufferWidth=Pe.drawingBufferWidth=mt[2]=Rt[2]=V.drawingBufferWidth,Pe.viewportHeight=Pe.framebufferHeight=Pe.drawingBufferHeight=mt[3]=Rt[3]=V.drawingBufferHeight}function Ea(){Pe.tick+=1,Pe.time=qa(),ya(),hr.procs.poll()}function wt(){Oe.refresh(),ya(),hr.procs.refresh(),or&&or.update()}function qa(){return(p()-Qr)/1e3}wt();function Wt(mt,Rt){var Qt;switch(mt){case"frame":return ma(Rt);case"lost":Qt=ct;break;case"restore":Qt=gr;break;case"destroy":Qt=Cr;break;default:}return Qt.push(Rt),{cancel:function(){for(var z=0;z=0},read:sr,destroy:an,_gl:V,_refresh:wt,poll:function(){Ea(),or&&or.update()},now:qa,stats:Ve,getCachedCode:Za,preloadCachedCode:on});return B.onDone(null,ln),ln}return Ci})});var Mee=P((TOe,Tee)=>{"use strict";var X8e=Of();Tee.exports=function(r){if(r?typeof r=="string"&&(r={container:r}):r={},wee(r)?r={container:r}:Z8e(r)?r={container:r}:J8e(r)?r={gl:r}:r=X8e(r,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),r.pixelRatio||(r.pixelRatio=window.pixelRatio||1),r.gl)return r.gl;if(r.canvas&&(r.container=r.canvas.parentNode),r.container){if(typeof r.container=="string"){var t=document.querySelector(r.container);if(!t)throw Error("Element "+r.container+" is not found");r.container=t}wee(r.container)?(r.canvas=r.container,r.container=r.canvas.parentNode):r.canvas||(r.canvas=Aee(),r.container.appendChild(r.canvas),_ee(r))}else if(!r.canvas)if(typeof document!="undefined")r.container=document.body||document.documentElement,r.canvas=Aee(),r.container.appendChild(r.canvas),_ee(r);else throw Error("Not DOM environment. Use headless-gl.");return r.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(a){try{r.gl=r.canvas.getContext(a,r.attrs)}catch(n){}return r.gl}),r.gl};function _ee(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var r=e.container.getBoundingClientRect();e.canvas.width=e.width||r.right-r.left,e.canvas.height=e.height||r.bottom-r.top}}function wee(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function Z8e(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function J8e(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function Aee(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var Eee=P((MOe,See)=>{"use strict";var $8e=J7(),Q8e=[32,126];See.exports=K8e;function K8e(e){e=e||{};var r=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],t=e.canvas||document.createElement("canvas"),a=e.font,n=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],i=e.chars||Q8e;if(a&&typeof a!="string"&&(a=$8e(a)),!Array.isArray(i))i=String(i).split("");else if(i.length===2&&typeof i[0]=="number"&&typeof i[1]=="number"){for(var o=[],l=i[0],s=0;l<=i[1];l++)o[s++]=String.fromCharCode(l);i=o}r=r.slice(),t.width=r[0],t.height=r[1];var f=t.getContext("2d");f.fillStyle="#000",f.fillRect(0,0,t.width,t.height),f.font=a,f.textAlign="center",f.textBaseline="middle",f.fillStyle="#fff";for(var u=n[0]/2,c=n[1]/2,l=0;lr[0]-n[0]/2&&(u=n[0]/2,c+=n[1]);return t}});var e9=P(ni=>{"use strict";"use restrict";var K7=32;ni.INT_BITS=K7;ni.INT_MAX=2147483647;ni.INT_MIN=-1<0)-(e<0)};ni.abs=function(e){var r=e>>K7-1;return(e^r)-r};ni.min=function(e,r){return r^(e^r)&-(e65535)<<4,e>>>=r,t=(e>255)<<3,e>>>=t,r|=t,t=(e>15)<<2,e>>>=t,r|=t,t=(e>3)<<1,e>>>=t,r|=t,r|e>>1};ni.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};ni.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function kee(e){var r=32;return e&=-e,e&&r--,e&65535&&(r-=16),e&16711935&&(r-=8),e&252645135&&(r-=4),e&858993459&&(r-=2),e&1431655765&&(r-=1),r}ni.countTrailingZeros=kee;ni.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};ni.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};ni.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var ng=new Array(256);(function(e){for(var r=0;r<256;++r){var t=r,a=r,n=7;for(t>>>=1;t;t>>>=1)a<<=1,a|=t&1,--n;e[r]=a<>>8&255]<<16|ng[e>>>16&255]<<8|ng[e>>>24&255]};ni.interleave2=function(e,r){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,r&=65535,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,e|r<<1};ni.deinterleave2=function(e,r){return e=e>>>r&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};ni.interleave3=function(e,r,t){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|=r<<1,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|t<<2};ni.deinterleave3=function(e,r){return e=e>>>r&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};ni.nextCombination=function(e){var r=e|e-1;return r+1|(~r&-~r)-1>>>kee(e)+1}});var Dee=P((EOe,Lee)=>{"use strict";function Cee(e,r,t){var a=e[t]|0;if(a<=0)return[];var n=new Array(a),i;if(t===e.length-1)for(i=0;i0)return e7e(e|0,r);break;case"object":if(typeof e.length=="number")return Cee(e,r,0);break}return[]}Lee.exports=r7e});var qee=P(P_=>{"use strict";P_.byteLength=a7e;P_.toByteArray=i7e;P_.fromByteArray=s7e;var Bf=[],is=[],t7e=typeof Uint8Array!="undefined"?Uint8Array:Array,r9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ph=0,Fee=r9.length;ph0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var a=t===r?0:4-t%4;return[t,a]}function a7e(e){var r=Ree(e),t=r[0],a=r[1];return(t+a)*3/4-a}function n7e(e,r,t){return(r+t)*3/4-t}function i7e(e){var r,t=Ree(e),a=t[0],n=t[1],i=new t7e(n7e(e,a,n)),o=0,l=n>0?a-4:a,s;for(s=0;s>16&255,i[o++]=r>>8&255,i[o++]=r&255;return n===2&&(r=is[e.charCodeAt(s)]<<2|is[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=is[e.charCodeAt(s)]<<10|is[e.charCodeAt(s+1)]<<4|is[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function o7e(e){return Bf[e>>18&63]+Bf[e>>12&63]+Bf[e>>6&63]+Bf[e&63]}function l7e(e,r,t){for(var a,n=[],i=r;il?l:o+i));return a===1?(r=e[t-1],n.push(Bf[r>>2]+Bf[r<<4&63]+"==")):a===2&&(r=(e[t-2]<<8)+e[t-1],n.push(Bf[r>>10]+Bf[r>>4&63]+Bf[r<<2&63]+"=")),n.join("")}});var Pee=P(t9=>{t9.read=function(e,r,t,a,n){var i,o,l=n*8-a-1,s=(1<>1,u=-7,c=t?n-1:0,v=t?-1:1,d=e[r+c];for(c+=v,i=d&(1<<-u)-1,d>>=-u,u+=l;u>0;i=i*256+e[r+c],c+=v,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=a;u>0;o=o*256+e[r+c],c+=v,u-=8);if(i===0)i=1-f;else{if(i===s)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,a),i=i-f}return(d?-1:1)*o*Math.pow(2,i-a)};t9.write=function(e,r,t,a,n,i){var o,l,s,f=i*8-n-1,u=(1<>1,v=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:i-1,p=a?1:-1,g=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,o=u):(o=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+c>=1?r+=v/s:r+=v*Math.pow(2,1-c),r*s>=2&&(o++,s/=2),o+c>=u?(l=0,o=u):o+c>=1?(l=(r*s-1)*Math.pow(2,n),o=o+c):(l=r*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[t+d]=l&255,d+=p,l/=256,n-=8);for(o=o<0;e[t+d]=o&255,d+=p,o/=256,f-=8);e[t+d-p]|=g*128}});var Qee=P(z1=>{"use strict";var a9=qee(),I1=Pee(),Nee=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;z1.Buffer=tt;z1.SlowBuffer=d7e;z1.INSPECT_MAX_BYTES=50;var N_=2147483647;z1.kMaxLength=N_;tt.TYPED_ARRAY_SUPPORT=f7e();!tt.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function f7e(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(e){return!1}}Object.defineProperty(tt.prototype,"parent",{enumerable:!0,get:function(){if(tt.isBuffer(this))return this.buffer}});Object.defineProperty(tt.prototype,"offset",{enumerable:!0,get:function(){if(tt.isBuffer(this))return this.byteOffset}});function Vu(e){if(e>N_)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,tt.prototype),r}function tt(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return l9(e)}return zee(e,r,t)}tt.poolSize=8192;function zee(e,r,t){if(typeof e=="string")return c7e(e,r);if(ArrayBuffer.isView(e))return v7e(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(zf(e,ArrayBuffer)||e&&zf(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(zf(e,SharedArrayBuffer)||e&&zf(e.buffer,SharedArrayBuffer)))return i9(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let a=e.valueOf&&e.valueOf();if(a!=null&&a!==e)return tt.from(a,r,t);let n=h7e(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return tt.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}tt.from=function(e,r,t){return zee(e,r,t)};Object.setPrototypeOf(tt.prototype,Uint8Array.prototype);Object.setPrototypeOf(tt,Uint8Array);function Gee(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u7e(e,r,t){return Gee(e),e<=0?Vu(e):r!==void 0?typeof t=="string"?Vu(e).fill(r,t):Vu(e).fill(r):Vu(e)}tt.alloc=function(e,r,t){return u7e(e,r,t)};function l9(e){return Gee(e),Vu(e<0?0:s9(e)|0)}tt.allocUnsafe=function(e){return l9(e)};tt.allocUnsafeSlow=function(e){return l9(e)};function c7e(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!tt.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=Uee(e,r)|0,a=Vu(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function n9(e){let r=e.length<0?0:s9(e.length)|0,t=Vu(r);for(let a=0;a=N_)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+N_.toString(16)+" bytes");return e|0}function d7e(e){return+e!=e&&(e=0),tt.alloc(+e)}tt.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==tt.prototype};tt.compare=function(r,t){if(zf(r,Uint8Array)&&(r=tt.from(r,r.offset,r.byteLength)),zf(t,Uint8Array)&&(t=tt.from(t,t.offset,t.byteLength)),!tt.isBuffer(r)||!tt.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let a=r.length,n=t.length;for(let i=0,o=Math.min(a,n);in.length?(tt.isBuffer(o)||(o=tt.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(tt.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function Uee(e,r){if(tt.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||zf(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,a=arguments.length>2&&arguments[2]===!0;if(!a&&t===0)return 0;let n=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return o9(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return $ee(e).length;default:if(n)return a?-1:o9(e).length;r=(""+r).toLowerCase(),n=!0}}tt.byteLength=Uee;function p7e(e,r,t){let a=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return M7e(this,r,t);case"utf8":case"utf-8":return Vee(this,r,t);case"ascii":return A7e(this,r,t);case"latin1":case"binary":return T7e(this,r,t);case"base64":return _7e(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S7e(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}tt.prototype._isBuffer=!0;function mh(e,r,t){let a=e[r];e[r]=e[t],e[t]=a}tt.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(r+=" ... "),""};Nee&&(tt.prototype[Nee]=tt.prototype.inspect);tt.prototype.compare=function(r,t,a,n,i){if(zf(r,Uint8Array)&&(r=tt.from(r,r.offset,r.byteLength)),!tt.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),a===void 0&&(a=r?r.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||a>r.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=a)return 0;if(n>=i)return-1;if(t>=a)return 1;if(t>>>=0,a>>>=0,n>>>=0,i>>>=0,this===r)return 0;let o=i-n,l=a-t,s=Math.min(o,l),f=this.slice(n,i),u=r.slice(t,a);for(let c=0;c2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,u9(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=tt.from(r,a)),tt.isBuffer(r))return r.length===0?-1:Oee(e,r,t,a,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):Oee(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function Oee(e,r,t,a,n){let i=1,o=e.length,l=r.length;if(a!==void 0&&(a=String(a).toLowerCase(),a==="ucs2"||a==="ucs-2"||a==="utf16le"||a==="utf-16le")){if(e.length<2||r.length<2)return-1;i=2,o/=2,l/=2,t/=2}function s(u,c){return i===1?u[c]:u.readUInt16BE(c*i)}let f;if(n){let u=-1;for(f=t;fo&&(t=o-l),f=t;f>=0;f--){let u=!0;for(let c=0;cn&&(a=n)):a=n;let i=r.length;a>i/2&&(a=i/2);let o;for(o=0;o>>0,isFinite(a)?(a=a>>>0,n===void 0&&(n="utf8")):(n=a,a=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((a===void 0||a>i)&&(a=i),r.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return m7e(this,r,t,a);case"utf8":case"utf-8":return y7e(this,r,t,a);case"ascii":case"latin1":case"binary":return g7e(this,r,t,a);case"base64":return b7e(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x7e(this,r,t,a);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};tt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function _7e(e,r,t){return r===0&&t===e.length?a9.fromByteArray(e):a9.fromByteArray(e.slice(r,t))}function Vee(e,r,t){t=Math.min(e.length,t);let a=[],n=r;for(;n239?4:i>223?3:i>191?2:1;if(n+l<=t){let s,f,u,c;switch(l){case 1:i<128&&(o=i);break;case 2:s=e[n+1],(s&192)===128&&(c=(i&31)<<6|s&63,c>127&&(o=c));break;case 3:s=e[n+1],f=e[n+2],(s&192)===128&&(f&192)===128&&(c=(i&15)<<12|(s&63)<<6|f&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:s=e[n+1],f=e[n+2],u=e[n+3],(s&192)===128&&(f&192)===128&&(u&192)===128&&(c=(i&15)<<18|(s&63)<<12|(f&63)<<6|u&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,a.push(o>>>10&1023|55296),o=56320|o&1023),a.push(o),n+=l}return w7e(a)}var Iee=4096;function w7e(e){let r=e.length;if(r<=Iee)return String.fromCharCode.apply(String,e);let t="",a=0;for(;aa)&&(t=a);let n="";for(let i=r;ia&&(r=a),t<0?(t+=a,t<0&&(t=0)):t>a&&(t=a),tt)throw new RangeError("Trying to access beyond buffer length")}tt.prototype.readUintLE=tt.prototype.readUIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||Vi(r,t,this.length);let n=this[r],i=1,o=0;for(;++o>>0,t=t>>>0,a||Vi(r,t,this.length);let n=this[r+--t],i=1;for(;t>0&&(i*=256);)n+=this[r+--t]*i;return n};tt.prototype.readUint8=tt.prototype.readUInt8=function(r,t){return r=r>>>0,t||Vi(r,1,this.length),this[r]};tt.prototype.readUint16LE=tt.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||Vi(r,2,this.length),this[r]|this[r+1]<<8};tt.prototype.readUint16BE=tt.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||Vi(r,2,this.length),this[r]<<8|this[r+1]};tt.prototype.readUint32LE=tt.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||Vi(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};tt.prototype.readUint32BE=tt.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||Vi(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};tt.prototype.readBigUInt64LE=yv(function(r){r=r>>>0,B1(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&ig(r,this.length-8);let n=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,i=this[++r]+this[++r]*2**8+this[++r]*2**16+a*2**24;return BigInt(n)+(BigInt(i)<>>0,B1(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&ig(r,this.length-8);let n=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],i=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a;return(BigInt(n)<>>0,t=t>>>0,a||Vi(r,t,this.length);let n=this[r],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};tt.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||Vi(r,t,this.length);let n=t,i=1,o=this[r+--n];for(;n>0&&(i*=256);)o+=this[r+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};tt.prototype.readInt8=function(r,t){return r=r>>>0,t||Vi(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};tt.prototype.readInt16LE=function(r,t){r=r>>>0,t||Vi(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};tt.prototype.readInt16BE=function(r,t){r=r>>>0,t||Vi(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};tt.prototype.readInt32LE=function(r,t){return r=r>>>0,t||Vi(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};tt.prototype.readInt32BE=function(r,t){return r=r>>>0,t||Vi(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};tt.prototype.readBigInt64LE=yv(function(r){r=r>>>0,B1(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&ig(r,this.length-8);let n=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(a<<24);return(BigInt(n)<>>0,B1(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&ig(r,this.length-8);let n=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(n)<>>0,t||Vi(r,4,this.length),I1.read(this,r,!0,23,4)};tt.prototype.readFloatBE=function(r,t){return r=r>>>0,t||Vi(r,4,this.length),I1.read(this,r,!1,23,4)};tt.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||Vi(r,8,this.length),I1.read(this,r,!0,52,8)};tt.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||Vi(r,8,this.length),I1.read(this,r,!1,52,8)};function nl(e,r,t,a,n,i){if(!tt.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.length)throw new RangeError("Index out of range")}tt.prototype.writeUintLE=tt.prototype.writeUIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;nl(this,r,t,a,l,0)}let i=1,o=0;for(this[t]=r&255;++o>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;nl(this,r,t,a,l,0)}let i=a-1,o=1;for(this[t+i]=r&255;--i>=0&&(o*=256);)this[t+i]=r/o&255;return t+a};tt.prototype.writeUint8=tt.prototype.writeUInt8=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,1,255,0),this[t]=r&255,t+1};tt.prototype.writeUint16LE=tt.prototype.writeUInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};tt.prototype.writeUint16BE=tt.prototype.writeUInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};tt.prototype.writeUint32LE=tt.prototype.writeUInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};tt.prototype.writeUint32BE=tt.prototype.writeUInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function Yee(e,r,t,a,n){Jee(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,t}function Wee(e,r,t,a,n){Jee(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t+7]=i,i=i>>8,e[t+6]=i,i=i>>8,e[t+5]=i,i=i>>8,e[t+4]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=o,o=o>>8,e[t+2]=o,o=o>>8,e[t+1]=o,o=o>>8,e[t]=o,t+8}tt.prototype.writeBigUInt64LE=yv(function(r,t=0){return Yee(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});tt.prototype.writeBigUInt64BE=yv(function(r,t=0){return Wee(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});tt.prototype.writeIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);nl(this,r,t,a,s-1,-s)}let i=0,o=1,l=0;for(this[t]=r&255;++i>0)-l&255;return t+a};tt.prototype.writeIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);nl(this,r,t,a,s-1,-s)}let i=a-1,o=1,l=0;for(this[t+i]=r&255;--i>=0&&(o*=256);)r<0&&l===0&&this[t+i+1]!==0&&(l=1),this[t+i]=(r/o>>0)-l&255;return t+a};tt.prototype.writeInt8=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};tt.prototype.writeInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};tt.prototype.writeInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};tt.prototype.writeInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};tt.prototype.writeInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};tt.prototype.writeBigInt64LE=yv(function(r,t=0){return Yee(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});tt.prototype.writeBigInt64BE=yv(function(r,t=0){return Wee(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function jee(e,r,t,a,n,i){if(t+a>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Xee(e,r,t,a,n){return r=+r,t=t>>>0,n||jee(e,r,t,4,34028234663852886e22,-34028234663852886e22),I1.write(e,r,t,a,23,4),t+4}tt.prototype.writeFloatLE=function(r,t,a){return Xee(this,r,t,!0,a)};tt.prototype.writeFloatBE=function(r,t,a){return Xee(this,r,t,!1,a)};function Zee(e,r,t,a,n){return r=+r,t=t>>>0,n||jee(e,r,t,8,17976931348623157e292,-17976931348623157e292),I1.write(e,r,t,a,52,8),t+8}tt.prototype.writeDoubleLE=function(r,t,a){return Zee(this,r,t,!0,a)};tt.prototype.writeDoubleBE=function(r,t,a){return Zee(this,r,t,!1,a)};tt.prototype.copy=function(r,t,a,n){if(!tt.isBuffer(r))throw new TypeError("argument should be a Buffer");if(a||(a=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t>>0,a=a===void 0?this.length:a>>>0,r||(r=0);let i;if(typeof r=="number")for(i=t;i2**32?n=Bee(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=Bee(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function Bee(e){let r="",t=e.length,a=e[0]==="-"?1:0;for(;t>=a+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return`${e.slice(0,t)}${r}`}function E7e(e,r,t){B1(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&ig(r,e.length-(t+1))}function Jee(e,r,t,a,n,i){if(e>t||e3?r===0||r===BigInt(0)?l=`>= 0${o} and < 2${o} ** ${(i+1)*8}${o}`:l=`>= -(2${o} ** ${(i+1)*8-1}${o}) and < 2 ** ${(i+1)*8-1}${o}`:l=`>= ${r}${o} and <= ${t}${o}`,new O1.ERR_OUT_OF_RANGE("value",l,e)}E7e(a,n,i)}function B1(e,r){if(typeof e!="number")throw new O1.ERR_INVALID_ARG_TYPE(r,"number",e)}function ig(e,r,t){throw Math.floor(e)!==e?(B1(e,t),new O1.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new O1.ERR_BUFFER_OUT_OF_BOUNDS:new O1.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var k7e=/[^+/0-9A-Za-z-_]/g;function C7e(e){if(e=e.split("=")[0],e=e.trim().replace(k7e,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function o9(e,r){r=r||1/0;let t,a=e.length,n=null,i=[];for(let o=0;o55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&i.push(239,191,189);continue}else if(o+1===a){(r-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&i.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;i.push(t)}else if(t<2048){if((r-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function L7e(e){let r=[];for(let t=0;t>8,n=t%256,i.push(n),i.push(a);return i}function $ee(e){return a9.toByteArray(C7e(e))}function O_(e,r,t,a){let n;for(n=0;n=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function zf(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function u9(e){return e!==e}var F7e=function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let a=t*16;for(let n=0;n<16;++n)r[a+n]=e[t]+e[n]}return r}();function yv(e){return typeof BigInt=="undefined"?R7e:e}function R7e(){throw new Error("BigInt not supported")}});var hre=P(Ia=>{"use strict";var gv=e9(),io=Dee(),Kee=Qee().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:io([32,0]),UINT16:io([32,0]),UINT32:io([32,0]),BIGUINT64:io([32,0]),INT8:io([32,0]),INT16:io([32,0]),INT32:io([32,0]),BIGINT64:io([32,0]),FLOAT:io([32,0]),DOUBLE:io([32,0]),DATA:io([32,0]),UINT8C:io([32,0]),BUFFER:io([32,0])});var q7e=typeof Uint8ClampedArray!="undefined",P7e=typeof BigUint64Array!="undefined",N7e=typeof BigInt64Array!="undefined",ui=window.__TYPEDARRAY_POOL;ui.UINT8C||(ui.UINT8C=io([32,0]));ui.BIGUINT64||(ui.BIGUINT64=io([32,0]));ui.BIGINT64||(ui.BIGINT64=io([32,0]));ui.BUFFER||(ui.BUFFER=io([32,0]));var I_=ui.DATA,B_=ui.BUFFER;Ia.free=function(r){if(Kee.isBuffer(r))B_[gv.log2(r.length)].push(r);else{if(Object.prototype.toString.call(r)!=="[object ArrayBuffer]"&&(r=r.buffer),!r)return;var t=r.length||r.byteLength,a=gv.log2(t)|0;I_[a].push(r)}};function ere(e){if(e){var r=e.length||e.byteLength,t=gv.log2(r);I_[t].push(e)}}function O7e(e){ere(e.buffer)}Ia.freeUint8=Ia.freeUint16=Ia.freeUint32=Ia.freeBigUint64=Ia.freeInt8=Ia.freeInt16=Ia.freeInt32=Ia.freeBigInt64=Ia.freeFloat32=Ia.freeFloat=Ia.freeFloat64=Ia.freeDouble=Ia.freeUint8Clamped=Ia.freeDataView=O7e;Ia.freeArrayBuffer=ere;Ia.freeBuffer=function(r){B_[gv.log2(r.length)].push(r)};Ia.malloc=function(r,t){if(t===void 0||t==="arraybuffer")return il(r);switch(t){case"uint8":return c9(r);case"uint16":return rre(r);case"uint32":return tre(r);case"int8":return are(r);case"int16":return nre(r);case"int32":return ire(r);case"float":case"float32":return ore(r);case"double":case"float64":return lre(r);case"uint8_clamped":return sre(r);case"bigint64":return ure(r);case"biguint64":return fre(r);case"buffer":return vre(r);case"data":case"dataview":return cre(r);default:return null}return null};function il(r){var r=gv.nextPow2(r),t=gv.log2(r),a=I_[t];return a.length>0?a.pop():new ArrayBuffer(r)}Ia.mallocArrayBuffer=il;function c9(e){return new Uint8Array(il(e),0,e)}Ia.mallocUint8=c9;function rre(e){return new Uint16Array(il(2*e),0,e)}Ia.mallocUint16=rre;function tre(e){return new Uint32Array(il(4*e),0,e)}Ia.mallocUint32=tre;function are(e){return new Int8Array(il(e),0,e)}Ia.mallocInt8=are;function nre(e){return new Int16Array(il(2*e),0,e)}Ia.mallocInt16=nre;function ire(e){return new Int32Array(il(4*e),0,e)}Ia.mallocInt32=ire;function ore(e){return new Float32Array(il(4*e),0,e)}Ia.mallocFloat32=Ia.mallocFloat=ore;function lre(e){return new Float64Array(il(8*e),0,e)}Ia.mallocFloat64=Ia.mallocDouble=lre;function sre(e){return q7e?new Uint8ClampedArray(il(e),0,e):c9(e)}Ia.mallocUint8Clamped=sre;function fre(e){return P7e?new BigUint64Array(il(8*e),0,e):null}Ia.mallocBigUint64=fre;function ure(e){return N7e?new BigInt64Array(il(8*e),0,e):null}Ia.mallocBigInt64=ure;function cre(e){return new DataView(il(e),0,e)}Ia.mallocDataView=cre;function vre(e){e=gv.nextPow2(e);var r=gv.log2(e),t=B_[r];return t.length>0?t.pop():new Kee(e)}Ia.mallocBuffer=vre;Ia.clearCache=function(){for(var r=0;r<32;++r)ui.UINT8[r].length=0,ui.UINT16[r].length=0,ui.UINT32[r].length=0,ui.INT8[r].length=0,ui.INT16[r].length=0,ui.INT32[r].length=0,ui.FLOAT[r].length=0,ui.DOUBLE[r].length=0,ui.BIGUINT64[r].length=0,ui.BIGINT64[r].length=0,ui.UINT8C[r].length=0,I_[r].length=0,B_[r].length=0}});var pre=P((ROe,dre)=>{"use strict";var I7e=Object.prototype.toString;dre.exports=function(e){var r;return I7e.call(e)==="[object Object]"&&(r=Object.getPrototypeOf(e),r===null||r===Object.getPrototypeOf({}))}});var v9=P((qOe,mre)=>{mre.exports=function(r,t){t||(t=[0,""]),r=String(r);var a=parseFloat(r,10);return t[0]=a,t[1]=r.match(/[\d.\-\+]*\s*(.*)/)[1]||"",t}});var bre=P((POe,gre)=>{"use strict";var B7e=v9();gre.exports=yre;var og=96;function h9(e,r){var t=B7e(getComputedStyle(e).getPropertyValue(r));return t[0]*yre(t[1],e)}function z7e(e,r){var t=document.createElement("div");t.style["font-size"]="128"+e,r.appendChild(t);var a=h9(t,"font-size")/128;return r.removeChild(t),a}function yre(e,r){switch(r=r||document.body,e=(e||"px").trim().toLowerCase(),(r===window||r===document)&&(r=document.body),e){case"%":return r.clientHeight/100;case"ch":case"ex":return z7e(e,r);case"em":return h9(r,"font-size");case"rem":return h9(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return og;case"cm":return og/2.54;case"mm":return og/25.4;case"pt":return og/72;case"pc":return og/6}return 1}});var wre=P((NOe,_re)=>{"use strict";_re.exports=U_;var G7e=U_.canvas=document.createElement("canvas"),z_=G7e.getContext("2d"),xre=G_([32,126]);U_.createPairs=G_;U_.ascii=xre;function U_(e,r){Array.isArray(e)&&(e=e.join(", "));var t={},a,n=16,i=.05;r&&(r.length===2&&typeof r[0]=="number"?a=G_(r):Array.isArray(r)?a=r:(r.o?a=G_(r.o):r.pairs&&(a=r.pairs),r.fontSize&&(n=r.fontSize),r.threshold!=null&&(i=r.threshold))),a||(a=xre),z_.font=n+"px "+e;for(var o=0;on*i){var u=(f-s)/n;t[l]=u*1e3}}return t}function G_(e){for(var r=[],t=e[0];t<=e[1];t++)for(var a=String.fromCharCode(t),n=e[0];n{"use strict";Mre.exports=bv;bv.canvas=document.createElement("canvas");bv.cache={};function bv(o,r){r||(r={}),(typeof o=="string"||Array.isArray(o))&&(r.family=o);var t=Array.isArray(r.family)?r.family.join(", "):r.family;if(!t)throw Error("`family` must be defined");var a=r.size||r.fontSize||r.em||48,n=r.weight||r.fontWeight||"",i=r.style||r.fontStyle||"",o=[i,n,a].join(" ")+"px "+t,l=r.origin||"top";if(bv.cache[t]&&a<=bv.cache[t].em)return Are(bv.cache[t],l);var s=r.canvas||bv.canvas,f=s.getContext("2d"),u={upper:r.upper!==void 0?r.upper:"H",lower:r.lower!==void 0?r.lower:"x",descent:r.descent!==void 0?r.descent:"p",ascent:r.ascent!==void 0?r.ascent:"h",tittle:r.tittle!==void 0?r.tittle:"i",overshoot:r.overshoot!==void 0?r.overshoot:"O"},c=Math.ceil(a*1.5);s.height=c,s.width=c*.5,f.font=o;var v="H",d={top:0};f.clearRect(0,0,c,c),f.textBaseline="top",f.fillStyle="black",f.fillText(v,0,0);var p=Gf(f.getImageData(0,0,c,c));f.clearRect(0,0,c,c),f.textBaseline="bottom",f.fillText(v,0,c);var g=Gf(f.getImageData(0,0,c,c));d.lineHeight=d.bottom=c-g+p,f.clearRect(0,0,c,c),f.textBaseline="alphabetic",f.fillText(v,0,c);var m=Gf(f.getImageData(0,0,c,c)),b=c-m-1+p;d.baseline=d.alphabetic=b,f.clearRect(0,0,c,c),f.textBaseline="middle",f.fillText(v,0,c*.5);var A=Gf(f.getImageData(0,0,c,c));d.median=d.middle=c-A-1+p-c*.5,f.clearRect(0,0,c,c),f.textBaseline="hanging",f.fillText(v,0,c*.5);var _=Gf(f.getImageData(0,0,c,c));d.hanging=c-_-1+p-c*.5,f.clearRect(0,0,c,c),f.textBaseline="ideographic",f.fillText(v,0,c);var x=Gf(f.getImageData(0,0,c,c));if(d.ideographic=c-x-1+p,u.upper&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.upper,0,0),d.upper=Gf(f.getImageData(0,0,c,c)),d.capHeight=d.baseline-d.upper),u.lower&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.lower,0,0),d.lower=Gf(f.getImageData(0,0,c,c)),d.xHeight=d.baseline-d.lower),u.tittle&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.tittle,0,0),d.tittle=Gf(f.getImageData(0,0,c,c))),u.ascent&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.ascent,0,0),d.ascent=Gf(f.getImageData(0,0,c,c))),u.descent&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.descent,0,0),d.descent=Tre(f.getImageData(0,0,c,c))),u.overshoot){f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.overshoot,0,0);var T=Tre(f.getImageData(0,0,c,c));d.overshoot=T-b}for(var E in d)d[E]/=a;return d.em=a,bv.cache[t]=d,Are(d,l)}function Are(e,r){var t={};typeof r=="string"&&(r=e[r]);for(var a in e)a!=="em"&&(t[a]=e[a]-r);return t}function Gf(e){for(var r=e.height,t=e.data,a=3;a0;a-=4)if(t[a]!==0)return Math.floor((a-3)*.25/r)}});var Lre=P((IOe,Cre)=>{"use strict";var G1=bee(),U7e=Of(),H7e=xee(),V7e=Mee(),Y7e=N7(),d9=fh(),W7e=Eee(),xv=hre(),j7e=c1(),X7e=pre(),Z7e=v9(),J7e=bre(),$7e=wre(),Q7e=ti(),K7e=Sre(),e9e=th(),r9e=e9(),Ere=r9e.nextPow2,kre=new Y7e,V_=!1;document.body&&(H_=document.body.appendChild(document.createElement("div")),H_.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(H_).fontStretch&&(V_=!0),document.body.removeChild(H_));var H_,Qa=function(r){t9e(r)?(r={regl:r},this.gl=r.regl._gl):this.gl=V7e(r),this.shader=kre.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=r.regl||H7e({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),kre.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(X7e(r)?r:{})};Qa.prototype.createShader=function(){var r=this.regl,t=r({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:r.prop("count"),offset:r.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:r.this("sizeBuffer")},width:{offset:0,stride:8,buffer:r.this("sizeBuffer")},char:r.this("charBuffer"),position:r.this("position")},uniforms:{atlasSize:function(n,i){return[i.atlas.width,i.atlas.height]},atlasDim:function(n,i){return[i.atlas.cols,i.atlas.rows]},atlas:function(n,i){return i.atlas.texture},charStep:function(n,i){return i.atlas.step},em:function(n,i){return i.atlas.em},color:r.prop("color"),opacity:r.prop("opacity"),viewport:r.this("viewportArray"),scale:r.this("scale"),align:r.prop("align"),baseline:r.prop("baseline"),translate:r.this("translate"),positionOffset:r.prop("positionOffset")},primitive:"points",viewport:r.this("viewport"),vert:` +`),ke;if(B&&(ke=A1(fe),B[ke]))return B[ke].apply(null,be);var Xe=Function.apply(null,he.concat(fe));return B&&(B[ke]=Xe),Xe.apply(null,be)}return{global:lr,link:xe,block:Ye,proc:Fr,scope:ir,cond:nr,compile:br}}var fo="xyzw".split(""),uc=5121,$i=1,xs=2,nu=0,uf=1,cc=2,cf=3,_s=4,vc=5,vf=6,hc="dither",s0="blend.enable",f0="blend.color",iu="blend.equation",ou="blend.func",dc="depth.enable",pc="depth.func",mc="depth.range",yc="depth.mask",lu="colorMask",hf="cull.enable",u0="cull.face",su="frontFace",df="lineWidth",gc="polygonOffset.enable",fu="polygonOffset.offset",pf="sample.alpha",mf="sample.enable",yf="sample.coverage",bc="stencil.enable",uu="stencil.mask",Ci="stencil.func",gf="stencil.opFront",vl="stencil.opBack",cu="scissor.enable",hl="scissor.box",si="viewport",ws="profile",Lo="framebuffer",Ho="vert",dl="frag",uo="elements",Do="primitive",Fo="count",vu="offset",yi="instances",Nl="vao",bf="Width",co="Height",Qi=Lo+bf,Ki=Lo+co,k1=si+bf,C1=si+co,c0="drawingBuffer",xc=c0+bf,_c=c0+co,Gh=[ou,iu,Ci,gf,vl,yf,si,hl,fu],vo=34962,hu=34963,Uh=2884,L1=3042,D1=3024,F1=2960,Hh=2929,Vh=3089,wc=32823,Yh=32926,Ac=32928,Tc=5126,pl=35664,an=35665,xf=35666,ml=5124,Ol=35667,As=35668,du=35669,pu=35670,Il=35671,_f=35672,mu=35673,yu=35674,gu=35675,bu=35676,Ts=35678,xu=35680,_u=4,h=1028,y=1029,w=2304,C=2305,L=32775,D=32776,G=519,q=7680,j=0,ne=1,ie=32774,me=513,ye=36160,je=36064,Ke={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Me={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Re={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ue={cw:w,ccw:C};function er(M){return Array.isArray(M)||ot(M)||et(M)}function tr(M){return M.sort(function(B,V){return B===si?-1:V===si?1:B=1,he>=2,B)}else if(V===_s){var be=M.data;return new Le(be.thisDep,be.contextDep,be.propDep,B)}else{if(V===vc)return new Le(!1,!1,!1,B);if(V===vf){for(var we=!1,xe=!1,Ye=!1,ir=0;ir=1&&(xe=!0),lr>=2&&(Ye=!0)}else nr.type===_s&&(we=we||nr.data.thisDep,xe=xe||nr.data.contextDep,Ye=Ye||nr.data.propDep)}return new Le(we,xe,Ye,B)}else return new Le(V===cf,V===cc,V===uf,B)}}var yt=new Le(!1,!1,!1,function(){});function kt(M,B,V,he,be,we,xe,Ye,ir,nr,lr,Zr,Fr,br,Ne,fe){var ke=nr.Record,Xe={add:32774,subtract:32778,"reverse subtract":32779};V.ext_blend_minmax&&(Xe.min=L,Xe.max=D);var ar=V.angle_instanced_arrays,ze=V.webgl_draw_buffers,xr=V.oes_vertex_array_object,mr={dirty:!0,profile:fe.profile},Wr={},Be=[],qe={},Mr={};function dr(N){return N.replace(".","_")}function fr(N,U,Q){var de=dr(N);Be.push(N),Wr[de]=mr[de]=!!Q,qe[de]=U}function ur(N,U,Q){var de=dr(N);Be.push(N),Array.isArray(Q)?(mr[de]=Q.slice(),Wr[de]=Q.slice()):mr[de]=Wr[de]=Q,Mr[de]=U}function Sr(N){return!!isNaN(N)}fr(hc,D1),fr(s0,L1),ur(f0,"blendColor",[0,0,0,0]),ur(iu,"blendEquationSeparate",[ie,ie]),ur(ou,"blendFuncSeparate",[ne,j,ne,j]),fr(dc,Hh,!0),ur(pc,"depthFunc",me),ur(mc,"depthRange",[0,1]),ur(yc,"depthMask",!0),ur(lu,lu,[!0,!0,!0,!0]),fr(hf,Uh),ur(u0,"cullFace",y),ur(su,su,C),ur(df,df,1),fr(gc,wc),ur(fu,"polygonOffset",[0,0]),fr(pf,Yh),fr(mf,Ac),ur(yf,"sampleCoverage",[1,!1]),fr(bc,F1),ur(uu,"stencilMask",-1),ur(Ci,"stencilFunc",[G,0,-1]),ur(gf,"stencilOpSeparate",[h,q,q,q]),ur(vl,"stencilOpSeparate",[y,q,q,q]),fr(cu,Vh),ur(hl,"scissor",[0,0,M.drawingBufferWidth,M.drawingBufferHeight]),ur(si,si,[0,0,M.drawingBufferWidth,M.drawingBufferHeight]);var jr={gl:M,context:Fr,strings:B,next:Wr,current:mr,draw:Zr,elements:we,buffer:be,shader:lr,attributes:nr.state,vao:nr,uniforms:ir,framebuffer:Ye,extensions:V,timer:br,isBufferArgs:er},ut={primTypes:Oo,compareFuncs:Me,blendFuncs:Ke,blendEquations:Xe,stencilOps:Re,glTypes:vn,orientationType:Ue};ze&&(ut.backBuffer=[y],ut.drawBuffer=k(he.maxDrawbuffers,function(N){return N===0?[0]:k(N,function(U){return je+U})}));var gr=0;function kr(){var N=zh({cache:Ne}),U=N.link,Q=N.global;N.id=gr++,N.batchId="0";var de=U(jr),Te=N.shared={props:"a0"};Object.keys(jr).forEach(function(K){Te[K]=Q.def(de,".",K)});var ue=N.next={},se=N.current={};Object.keys(Mr).forEach(function(K){Array.isArray(mr[K])&&(ue[K]=Q.def(Te.next,".",K),se[K]=Q.def(Te.current,".",K))});var te=N.constants={};Object.keys(ut).forEach(function(K){te[K]=Q.def(JSON.stringify(ut[K]))}),N.invoke=function(K,Y){switch(Y.type){case nu:var ve=["this",Te.context,Te.props,N.batchId];return K.def(U(Y.data),".call(",ve.slice(0,Math.max(Y.data.length+1,4)),")");case uf:return K.def(Te.props,Y.data);case cc:return K.def(Te.context,Y.data);case cf:return K.def("this",Y.data);case _s:return Y.data.append(N,K),Y.data.ref;case vc:return Y.data.toString();case vf:return Y.data.map(function(Ce){return N.invoke(K,Ce)})}},N.attribCache={};var W={};return N.scopeAttrib=function(K){var Y=B.id(K);if(Y in W)return W[Y];var ve=nr.scope[Y];ve||(ve=nr.scope[Y]=new ke);var Ce=W[Y]=U(ve);return Ce},N}function st(N){var U=N.static,Q=N.dynamic,de;if(ws in U){var Te=!!U[ws];de=zr(function(se,te){return Te}),de.enable=Te}else if(ws in Q){var ue=Q[ws];de=tt(ue,function(se,te){return se.invoke(te,ue)})}return de}function ft(N,U){var Q=N.static,de=N.dynamic;if(Lo in Q){var Te=Q[Lo];return Te?(Te=Ye.getFramebuffer(Te),zr(function(se,te){var W=se.link(Te),K=se.shared;te.set(K.framebuffer,".next",W);var Y=K.context;return te.set(Y,"."+Qi,W+".width"),te.set(Y,"."+Ki,W+".height"),W})):zr(function(se,te){var W=se.shared;te.set(W.framebuffer,".next","null");var K=W.context;return te.set(K,"."+Qi,K+"."+xc),te.set(K,"."+Ki,K+"."+_c),"null"})}else if(Lo in de){var ue=de[Lo];return tt(ue,function(se,te){var W=se.invoke(te,ue),K=se.shared,Y=K.framebuffer,ve=te.def(Y,".getFramebuffer(",W,")");te.set(Y,".next",ve);var Ce=K.context;return te.set(Ce,"."+Qi,ve+"?"+ve+".width:"+Ce+"."+xc),te.set(Ce,"."+Ki,ve+"?"+ve+".height:"+Ce+"."+_c),ve})}else return null}function St(N,U,Q){var de=N.static,Te=N.dynamic;function ue(W){if(W in de){var K=de[W],Y=!0,ve=K.x|0,Ce=K.y|0,$e,$r;return"width"in K?$e=K.width|0:Y=!1,"height"in K?$r=K.height|0:Y=!1,new Le(!Y&&U&&U.thisDep,!Y&&U&&U.contextDep,!Y&&U&&U.propDep,function(Xr,Gr){var Br=Xr.shared.context,Tr=$e;"width"in K||(Tr=Gr.def(Br,".",Qi,"-",ve));var qr=$r;return"height"in K||(qr=Gr.def(Br,".",Ki,"-",Ce)),[ve,Ce,Tr,qr]})}else if(W in Te){var Er=Te[W],Ar=tt(Er,function(Xr,Gr){var Br=Xr.invoke(Gr,Er),Tr=Xr.shared.context,qr=Gr.def(Br,".x|0"),Ir=Gr.def(Br,".y|0"),ct=Gr.def('"width" in ',Br,"?",Br,".width|0:","(",Tr,".",Qi,"-",qr,")"),Kt=Gr.def('"height" in ',Br,"?",Br,".height|0:","(",Tr,".",Ki,"-",Ir,")");return[qr,Ir,ct,Kt]});return U&&(Ar.thisDep=Ar.thisDep||U.thisDep,Ar.contextDep=Ar.contextDep||U.contextDep,Ar.propDep=Ar.propDep||U.propDep),Ar}else return U?new Le(U.thisDep,U.contextDep,U.propDep,function(Xr,Gr){var Br=Xr.shared.context;return[0,0,Gr.def(Br,".",Qi),Gr.def(Br,".",Ki)]}):null}var se=ue(si);if(se){var te=se;se=new Le(se.thisDep,se.contextDep,se.propDep,function(W,K){var Y=te.append(W,K),ve=W.shared.context;return K.set(ve,"."+k1,Y[2]),K.set(ve,"."+C1,Y[3]),Y})}return{viewport:se,scissor_box:ue(hl)}}function aa(N,U){var Q=N.static,de=typeof Q[dl]=="string"&&typeof Q[Ho]=="string";if(de){if(Object.keys(U.dynamic).length>0)return null;var Te=U.static,ue=Object.keys(Te);if(ue.length>0&&typeof Te[ue[0]]=="number"){for(var se=[],te=0;te"+qr+"?"+Y+".constant["+qr+"]:0;"}).join(""),"}}else{","if(",$e,"(",Y,".buffer)){",Xr,"=",$r,".createStream(",vo,",",Y,".buffer);","}else{",Xr,"=",$r,".getBuffer(",Y,".buffer);","}",Gr,'="type" in ',Y,"?",Ce.glTypes,"[",Y,".type]:",Xr,".dtype;",Er.normalized,"=!!",Y,".normalized;");function Br(Tr){K(Er[Tr],"=",Y,".",Tr,"|0;")}return Br("size"),Br("offset"),Br("stride"),Br("divisor"),K("}}"),K.exit("if(",Er.isStream,"){",$r,".destroyStream(",Xr,");","}"),Er}Te[ue]=tt(se,te)}),Te}function Za(N){var U=N.static,Q=N.dynamic,de={};return Object.keys(U).forEach(function(Te){var ue=U[Te];de[Te]=zr(function(se,te){return typeof ue=="number"||typeof ue=="boolean"?""+ue:se.link(ue)})}),Object.keys(Q).forEach(function(Te){var ue=Q[Te];de[Te]=tt(ue,function(se,te){return se.invoke(te,ue)})}),de}function on(N,U,Q,de,Te){var ue=N.static,se=N.dynamic,te=aa(N,U),W=ft(N,Te),K=St(N,W,Te),Y=Lt(N,Te),ve=nn(N,Te),Ce=Ma(N,Te,te);function $e(Br){var Tr=K[Br];Tr&&(ve[Br]=Tr)}$e(si),$e(dr(hl));var $r=Object.keys(ve).length>0,Er={framebuffer:W,draw:Y,shader:Ce,state:ve,dirty:$r,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Er.profile=st(N,Te),Er.uniforms=Ut(Q,Te),Er.drawVAO=Er.scopeVAO=Y.vao,!Er.drawVAO&&Ce.program&&!te&&V.angle_instanced_arrays&&Y.static.elements){var Ar=!0,Xr=Ce.program.attributes.map(function(Br){var Tr=U.static[Br];return Ar=Ar&&!!Tr,Tr});if(Ar&&Xr.length>0){var Gr=nr.getVAO(nr.createVAO({attributes:Xr,elements:Y.static.elements}));Er.drawVAO=new Le(null,null,null,function(Br,Tr){return Br.link(Gr)}),Er.useVAO=!0}}return te?Er.useVAO=!0:Er.attributes=Ya(U,Te),Er.context=Za(de,Te),Er}function pa(N,U,Q){var de=N.shared,Te=de.context,ue=N.scope();Object.keys(Q).forEach(function(se){U.save(Te,"."+se);var te=Q[se],W=te.append(N,U);Array.isArray(W)?ue(Te,".",se,"=[",W.join(),"];"):ue(Te,".",se,"=",W,";")}),U(ue)}function ma(N,U,Q,de){var Te=N.shared,ue=Te.gl,se=Te.framebuffer,te;ze&&(te=U.def(Te.extensions,".webgl_draw_buffers"));var W=N.constants,K=W.drawBuffer,Y=W.backBuffer,ve;Q?ve=Q.append(N,U):ve=U.def(se,".next"),de||U("if(",ve,"!==",se,".cur){"),U("if(",ve,"){",ue,".bindFramebuffer(",ye,",",ve,".framebuffer);"),ze&&U(te,".drawBuffersWEBGL(",K,"[",ve,".colorAttachments.length]);"),U("}else{",ue,".bindFramebuffer(",ye,",null);"),ze&&U(te,".drawBuffersWEBGL(",Y,");"),U("}",se,".cur=",ve,";"),de||U("}")}function Sa(N,U,Q){var de=N.shared,Te=de.gl,ue=N.current,se=N.next,te=de.current,W=de.next,K=N.cond(te,".dirty");Be.forEach(function(Y){var ve=dr(Y);if(!(ve in Q.state)){var Ce,$e;if(ve in se){Ce=se[ve],$e=ue[ve];var $r=k(mr[ve].length,function(Ar){return K.def(Ce,"[",Ar,"]")});K(N.cond($r.map(function(Ar,Xr){return Ar+"!=="+$e+"["+Xr+"]"}).join("||")).then(Te,".",Mr[ve],"(",$r,");",$r.map(function(Ar,Xr){return $e+"["+Xr+"]="+Ar}).join(";"),";"))}else{Ce=K.def(W,".",ve);var Er=N.cond(Ce,"!==",te,".",ve);K(Er),ve in qe?Er(N.cond(Ce).then(Te,".enable(",qe[ve],");").else(Te,".disable(",qe[ve],");"),te,".",ve,"=",Ce,";"):Er(Te,".",Mr[ve],"(",Ce,");",te,".",ve,"=",Ce,";")}}}),Object.keys(Q.state).length===0&&K(te,".dirty=false;"),U(K)}function Tt(N,U,Q,de){var Te=N.shared,ue=N.current,se=Te.current,te=Te.gl,W;tr(Object.keys(Q)).forEach(function(K){var Y=Q[K];if(!(de&&!de(Y))){var ve=Y.append(N,U);if(qe[K]){var Ce=qe[K];Dr(Y)?(W=N.link(ve,{stable:!0}),U(N.cond(W).then(te,".enable(",Ce,");").else(te,".disable(",Ce,");")),U(se,".",K,"=",W,";")):(U(N.cond(ve).then(te,".enable(",Ce,");").else(te,".disable(",Ce,");")),U(se,".",K,"=",ve,";"))}else if(Si(ve)){var $e=ue[K];U(te,".",Mr[K],"(",ve,");",ve.map(function($r,Er){return $e+"["+Er+"]="+$r}).join(";"),";")}else Dr(Y)?(W=N.link(ve,{stable:!0}),U(te,".",Mr[K],"(",W,");",se,".",K,"=",W,";")):U(te,".",Mr[K],"(",ve,");",se,".",K,"=",ve,";")}})}function qa(N,U){ar&&(N.instancing=U.def(N.shared.extensions,".angle_instanced_arrays"))}function Wt(N,U,Q,de,Te){var ue=N.shared,se=N.stats,te=ue.current,W=ue.timer,K=Q.profile;function Y(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var ve,Ce;function $e(Br){ve=U.def(),Br(ve,"=",Y(),";"),typeof Te=="string"?Br(se,".count+=",Te,";"):Br(se,".count++;"),br&&(de?(Ce=U.def(),Br(Ce,"=",W,".getNumPendingQueries();")):Br(W,".beginQuery(",se,");"))}function $r(Br){Br(se,".cpuTime+=",Y(),"-",ve,";"),br&&(de?Br(W,".pushScopeStats(",Ce,",",W,".getNumPendingQueries(),",se,");"):Br(W,".endQuery();"))}function Er(Br){var Tr=U.def(te,".profile");U(te,".profile=",Br,";"),U.exit(te,".profile=",Tr,";")}var Ar;if(K){if(Dr(K)){K.enable?($e(U),$r(U.exit),Er("true")):Er("false");return}Ar=K.append(N,U),Er(Ar)}else Ar=U.def(te,".profile");var Xr=N.block();$e(Xr),U("if(",Ar,"){",Xr,"}");var Gr=N.block();$r(Gr),U.exit("if(",Ar,"){",Gr,"}")}function Ja(N,U,Q,de,Te){var ue=N.shared;function se(W){switch(W){case pl:case Ol:case Il:return 2;case an:case As:case _f:return 3;case xf:case du:case mu:return 4;default:return 1}}function te(W,K,Y){var ve=ue.gl,Ce=U.def(W,".location"),$e=U.def(ue.attributes,"[",Ce,"]"),$r=Y.state,Er=Y.buffer,Ar=[Y.x,Y.y,Y.z,Y.w],Xr=["buffer","normalized","offset","stride"];function Gr(){U("if(!",$e,".buffer){",ve,".enableVertexAttribArray(",Ce,");}");var Tr=Y.type,qr;if(Y.size?qr=U.def(Y.size,"||",K):qr=K,U("if(",$e,".type!==",Tr,"||",$e,".size!==",qr,"||",Xr.map(function(ct){return $e+"."+ct+"!=="+Y[ct]}).join("||"),"){",ve,".bindBuffer(",vo,",",Er,".buffer);",ve,".vertexAttribPointer(",[Ce,qr,Tr,Y.normalized,Y.stride,Y.offset],");",$e,".type=",Tr,";",$e,".size=",qr,";",Xr.map(function(ct){return $e+"."+ct+"="+Y[ct]+";"}).join(""),"}"),ar){var Ir=Y.divisor;U("if(",$e,".divisor!==",Ir,"){",N.instancing,".vertexAttribDivisorANGLE(",[Ce,Ir],");",$e,".divisor=",Ir,";}")}}function Br(){U("if(",$e,".buffer){",ve,".disableVertexAttribArray(",Ce,");",$e,".buffer=null;","}if(",fo.map(function(Tr,qr){return $e+"."+Tr+"!=="+Ar[qr]}).join("||"),"){",ve,".vertexAttrib4f(",Ce,",",Ar,");",fo.map(function(Tr,qr){return $e+"."+Tr+"="+Ar[qr]+";"}).join(""),"}")}$r===$i?Gr():$r===xs?Br():(U("if(",$r,"===",$i,"){"),Gr(),U("}else{"),Br(),U("}"))}de.forEach(function(W){var K=W.name,Y=Q.attributes[K],ve;if(Y){if(!Te(Y))return;ve=Y.append(N,U)}else{if(!Te(yt))return;var Ce=N.scopeAttrib(K);ve={},Object.keys(new ke).forEach(function($e){ve[$e]=U.def(Ce,".",$e)})}te(N.link(W),se(W.info.type),ve)})}function ln(N,U,Q,de,Te,ue){for(var se=N.shared,te=se.gl,W,K=0;K1){for(var fn=[],Di=[],eo=0;eo>1)",Er],");")}function Ir(){Q(Ar,".drawArraysInstancedANGLE(",[Ce,$e,$r,Er],");")}Y&&Y!=="null"?Gr?qr():(Q("if(",Y,"){"),qr(),Q("}else{"),Ir(),Q("}")):Ir()}function Tr(){function qr(){Q(ue+".drawElements("+[Ce,$r,Xr,$e+"<<(("+Xr+"-"+uc+")>>1)"]+");")}function Ir(){Q(ue+".drawArrays("+[Ce,$e,$r]+");")}Y&&Y!=="null"?Gr?qr():(Q("if(",Y,"){"),qr(),Q("}else{"),Ir(),Q("}")):Ir()}ar&&(typeof Er!="number"||Er>=0)?typeof Er=="string"?(Q("if(",Er,">0){"),Br(),Q("}else if(",Er,"<0){"),Tr(),Q("}")):Br():Tr()}function pt(N,U,Q,de,Te){var ue=kr(),se=ue.proc("body",Te);return ar&&(ue.instancing=se.def(ue.shared.extensions,".angle_instanced_arrays")),N(ue,se,Q,de),ue.compile().body}function Rt(N,U,Q,de){qa(N,U),Q.useVAO?Q.drawVAO?U(N.shared.vao,".setVAO(",Q.drawVAO.append(N,U),");"):U(N.shared.vao,".setVAO(",N.shared.vao,".targetVAO);"):(U(N.shared.vao,".setVAO(null);"),Ja(N,U,Q,de.attributes,function(){return!0})),ln(N,U,Q,de.uniforms,function(){return!0},!1),sn(N,U,U,Q)}function Qt(N,U){var Q=N.proc("draw",1);qa(N,Q),pa(N,Q,U.context),ma(N,Q,U.framebuffer),Sa(N,Q,U),Tt(N,Q,U.state),Wt(N,Q,U,!1,!0);var de=U.shader.progVar.append(N,Q);if(Q(N.shared.gl,".useProgram(",de,".program);"),U.shader.program)Rt(N,Q,U,U.shader.program);else{Q(N.shared.vao,".setVAO(null);");var Te=N.global.def("{}"),ue=Q.def(de,".id"),se=Q.def(Te,"[",ue,"]");Q(N.cond(se).then(se,".call(this,a0);").else(se,"=",Te,"[",ue,"]=",N.link(function(te){return pt(Rt,N,U,te,1)}),"(",de,");",se,".call(this,a0);"))}Object.keys(U.state).length>0&&Q(N.shared.current,".dirty=true;"),N.shared.vao&&Q(N.shared.vao,".setVAO(null);")}function z(N,U,Q,de){N.batchId="a1",qa(N,U);function Te(){return!0}Ja(N,U,Q,de.attributes,Te),ln(N,U,Q,de.uniforms,Te,!1),sn(N,U,U,Q)}function pe(N,U,Q,de){qa(N,U);var Te=Q.contextDep,ue=U.def(),se="a0",te="a1",W=U.def();N.shared.props=W,N.batchId=ue;var K=N.scope(),Y=N.scope();U(K.entry,"for(",ue,"=0;",ue,"<",te,";++",ue,"){",W,"=",se,"[",ue,"];",Y,"}",K.exit);function ve(Xr){return Xr.contextDep&&Te||Xr.propDep}function Ce(Xr){return!ve(Xr)}if(Q.needsContext&&pa(N,Y,Q.context),Q.needsFramebuffer&&ma(N,Y,Q.framebuffer),Tt(N,Y,Q.state,ve),Q.profile&&ve(Q.profile)&&Wt(N,Y,Q,!1,!0),de)Q.useVAO?Q.drawVAO?ve(Q.drawVAO)?Y(N.shared.vao,".setVAO(",Q.drawVAO.append(N,Y),");"):K(N.shared.vao,".setVAO(",Q.drawVAO.append(N,K),");"):K(N.shared.vao,".setVAO(",N.shared.vao,".targetVAO);"):(K(N.shared.vao,".setVAO(null);"),Ja(N,K,Q,de.attributes,Ce),Ja(N,Y,Q,de.attributes,ve)),ln(N,K,Q,de.uniforms,Ce,!1),ln(N,Y,Q,de.uniforms,ve,!0),sn(N,K,Y,Q);else{var $e=N.global.def("{}"),$r=Q.shader.progVar.append(N,Y),Er=Y.def($r,".id"),Ar=Y.def($e,"[",Er,"]");Y(N.shared.gl,".useProgram(",$r,".program);","if(!",Ar,"){",Ar,"=",$e,"[",Er,"]=",N.link(function(Xr){return pt(z,N,Q,Xr,2)}),"(",$r,");}",Ar,".call(this,a0[",ue,"],",ue,");")}}function ge(N,U){var Q=N.proc("batch",2);N.batchId="0",qa(N,Q);var de=!1,Te=!0;Object.keys(U.context).forEach(function($e){de=de||U.context[$e].propDep}),de||(pa(N,Q,U.context),Te=!1);var ue=U.framebuffer,se=!1;ue?(ue.propDep?de=se=!0:ue.contextDep&&de&&(se=!0),se||ma(N,Q,ue)):ma(N,Q,null),U.state.viewport&&U.state.viewport.propDep&&(de=!0);function te($e){return $e.contextDep&&de||$e.propDep}Sa(N,Q,U),Tt(N,Q,U.state,function($e){return!te($e)}),(!U.profile||!te(U.profile))&&Wt(N,Q,U,!1,"a1"),U.contextDep=de,U.needsContext=Te,U.needsFramebuffer=se;var W=U.shader.progVar;if(W.contextDep&&de||W.propDep)pe(N,Q,U,null);else{var K=W.append(N,Q);if(Q(N.shared.gl,".useProgram(",K,".program);"),U.shader.program)pe(N,Q,U,U.shader.program);else{Q(N.shared.vao,".setVAO(null);");var Y=N.global.def("{}"),ve=Q.def(K,".id"),Ce=Q.def(Y,"[",ve,"]");Q(N.cond(Ce).then(Ce,".call(this,a0,a1);").else(Ce,"=",Y,"[",ve,"]=",N.link(function($e){return pt(pe,N,U,$e,2)}),"(",K,");",Ce,".call(this,a0,a1);"))}}Object.keys(U.state).length>0&&Q(N.shared.current,".dirty=true;"),N.shared.vao&&Q(N.shared.vao,".setVAO(null);")}function Nr(N,U){var Q=N.proc("scope",3);N.batchId="a2";var de=N.shared,Te=de.current;if(pa(N,Q,U.context),U.framebuffer&&U.framebuffer.append(N,Q),tr(Object.keys(U.state)).forEach(function(te){var W=U.state[te],K=W.append(N,Q);Si(K)?K.forEach(function(Y,ve){Sr(Y)?Q.set(N.next[te],"["+ve+"]",Y):Q.set(N.next[te],"["+ve+"]",N.link(Y,{stable:!0}))}):Dr(W)?Q.set(de.next,"."+te,N.link(K,{stable:!0})):Q.set(de.next,"."+te,K)}),Wt(N,Q,U,!0,!0),[uo,vu,Fo,yi,Do].forEach(function(te){var W=U.draw[te];if(W){var K=W.append(N,Q);Sr(K)?Q.set(de.draw,"."+te,K):Q.set(de.draw,"."+te,N.link(K),{stable:!0})}}),Object.keys(U.uniforms).forEach(function(te){var W=U.uniforms[te].append(N,Q);Array.isArray(W)&&(W="["+W.map(function(K){return Sr(K)?K:N.link(K,{stable:!0})})+"]"),Q.set(de.uniforms,"["+N.link(B.id(te),{stable:!0})+"]",W)}),Object.keys(U.attributes).forEach(function(te){var W=U.attributes[te].append(N,Q),K=N.scopeAttrib(te);Object.keys(new ke).forEach(function(Y){Q.set(K,"."+Y,W[Y])})}),U.scopeVAO){var ue=U.scopeVAO.append(N,Q);Sr(ue)?Q.set(de.vao,".targetVAO",ue):Q.set(de.vao,".targetVAO",N.link(ue,{stable:!0}))}function se(te){var W=U.shader[te];if(W){var K=W.append(N,Q);Sr(K)?Q.set(de.shader,"."+te,K):Q.set(de.shader,"."+te,N.link(K,{stable:!0}))}}se(Ho),se(dl),Object.keys(U.state).length>0&&(Q(Te,".dirty=true;"),Q.exit(Te,".dirty=true;")),Q("a1(",N.shared.context,",a0,",N.batchId,");")}function Dt(N){if(!(typeof N!="object"||Si(N))){for(var U=Object.keys(N),Q=0;Q=0;--pt){var Rt=jr[pt];Rt&&Rt(Ne,null,0)}V.flush(),lr&&lr.update()}function St(){!st&&jr.length>0&&(st=d.next(ft))}function aa(){st&&(d.cancel(ft),st=null)}function Ma(pt){pt.preventDefault(),be=!0,aa(),ut.forEach(function(Rt){Rt()})}function Lt(pt){V.getError(),be=!1,we.restore(),Wr.restore(),ar.restore(),Be.restore(),qe.restore(),Mr.restore(),xr.restore(),lr&&lr.restore(),dr.procs.refresh(),St(),gr.forEach(function(Rt){Rt()})}Sr&&(Sr.addEventListener(jt,Ma,!1),Sr.addEventListener(ca,Lt,!1));function nn(){jr.length=0,aa(),Sr&&(Sr.removeEventListener(jt,Ma),Sr.removeEventListener(ca,Lt)),Wr.clear(),Mr.clear(),qe.clear(),xr.clear(),Be.clear(),ze.clear(),ar.clear(),lr&&lr.clear(),kr.forEach(function(pt){pt()})}function Ut(pt){function Rt(ue){var se=e({},ue);delete se.uniforms,delete se.attributes,delete se.context,delete se.vao,"stencil"in se&&se.stencil.op&&(se.stencil.opBack=se.stencil.opFront=se.stencil.op,delete se.stencil.op);function te(W){if(W in se){var K=se[W];delete se[W],Object.keys(K).forEach(function(Y){se[W+"."+Y]=K[Y]})}}return te("blend"),te("depth"),te("cull"),te("stencil"),te("polygonOffset"),te("scissor"),te("sample"),"vao"in ue&&(se.vao=ue.vao),se}function Qt(ue,se){var te={},W={};return Object.keys(ue).forEach(function(K){var Y=ue[K];if(v.isDynamic(Y)){W[K]=v.unbox(Y,K);return}else if(se&&Array.isArray(Y)){for(var ve=0;ve0)return N.call(this,de(ue|0),ue|0)}else if(Array.isArray(ue)){if(ue.length)return N.call(this,ue,ue.length)}else return Rr.call(this,ue)}return e(Te,{stats:Dt,destroy:function(){Ht.destroy()}})}var Ya=Mr.setFBO=Ut({framebuffer:v.define.call(null,Xa,"framebuffer")});function Za(pt,Rt){var Qt=0;dr.procs.poll();var z=Rt.color;z&&(V.clearColor(+z[0]||0,+z[1]||0,+z[2]||0,+z[3]||0),Qt|=xn),"depth"in Rt&&(V.clearDepth(+Rt.depth),Qt|=Da),"stencil"in Rt&&(V.clearStencil(Rt.stencil|0),Qt|=ht),V.clear(Qt)}function on(pt){if("framebuffer"in pt)if(pt.framebuffer&&pt.framebuffer_reglType==="framebufferCube")for(var Rt=0;Rt<6;++Rt)Ya(e({framebuffer:pt.framebuffer.faces[Rt]},pt),Za);else Ya(pt,Za);else Za(null,pt)}function pa(pt){jr.push(pt);function Rt(){var Qt=$n(jr,pt);function z(){var pe=$n(jr,z);jr[pe]=jr[jr.length-1],jr.length-=1,jr.length<=0&&aa()}jr[Qt]=z}return St(),{cancel:Rt}}function ma(){var pt=ur.viewport,Rt=ur.scissor_box;pt[0]=pt[1]=Rt[0]=Rt[1]=0,Ne.viewportWidth=Ne.framebufferWidth=Ne.drawingBufferWidth=pt[2]=Rt[2]=V.drawingBufferWidth,Ne.viewportHeight=Ne.framebufferHeight=Ne.drawingBufferHeight=pt[3]=Rt[3]=V.drawingBufferHeight}function Sa(){Ne.tick+=1,Ne.time=qa(),ma(),dr.procs.poll()}function Tt(){Be.refresh(),ma(),dr.procs.refresh(),lr&&lr.update()}function qa(){return(p()-Zr)/1e3}Tt();function Wt(pt,Rt){var Qt;switch(pt){case"frame":return pa(Rt);case"lost":Qt=ut;break;case"restore":Qt=gr;break;case"destroy":Qt=kr;break;default:}return Qt.push(Rt),{cancel:function(){for(var z=0;z=0},read:fr,destroy:nn,_gl:V,_refresh:Tt,poll:function(){Sa(),lr&&lr.update()},now:qa,stats:Ye,getCachedCode:Ja,preloadCachedCode:ln});return B.onDone(null,sn),sn}return Li})});var See=P((kOe,Mee)=>{"use strict";var K8e=Of();Mee.exports=function(r){if(r?typeof r=="string"&&(r={container:r}):r={},Aee(r)?r={container:r}:e7e(r)?r={container:r}:r7e(r)?r={gl:r}:r=K8e(r,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),r.pixelRatio||(r.pixelRatio=window.pixelRatio||1),r.gl)return r.gl;if(r.canvas&&(r.container=r.canvas.parentNode),r.container){if(typeof r.container=="string"){var t=document.querySelector(r.container);if(!t)throw Error("Element "+r.container+" is not found");r.container=t}Aee(r.container)?(r.canvas=r.container,r.container=r.canvas.parentNode):r.canvas||(r.canvas=Tee(),r.container.appendChild(r.canvas),wee(r))}else if(!r.canvas)if(typeof document!="undefined")r.container=document.body||document.documentElement,r.canvas=Tee(),r.container.appendChild(r.canvas),wee(r);else throw Error("Not DOM environment. Use headless-gl.");return r.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(a){try{r.gl=r.canvas.getContext(a,r.attrs)}catch(n){}return r.gl}),r.gl};function wee(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var r=e.container.getBoundingClientRect();e.canvas.width=e.width||r.right-r.left,e.canvas.height=e.height||r.bottom-r.top}}function Aee(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function e7e(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function r7e(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function Tee(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var kee=P((COe,Eee)=>{"use strict";var t7e=J7(),a7e=[32,126];Eee.exports=n7e;function n7e(e){e=e||{};var r=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],t=e.canvas||document.createElement("canvas"),a=e.font,n=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],i=e.chars||a7e;if(a&&typeof a!="string"&&(a=t7e(a)),!Array.isArray(i))i=String(i).split("");else if(i.length===2&&typeof i[0]=="number"&&typeof i[1]=="number"){for(var o=[],l=i[0],s=0;l<=i[1];l++)o[s++]=String.fromCharCode(l);i=o}r=r.slice(),t.width=r[0],t.height=r[1];var f=t.getContext("2d");f.fillStyle="#000",f.fillRect(0,0,t.width,t.height),f.font=a,f.textAlign="center",f.textBaseline="middle",f.fillStyle="#fff";for(var u=n[0]/2,c=n[1]/2,l=0;lr[0]-n[0]/2&&(u=n[0]/2,c+=n[1]);return t}});var e9=P(oi=>{"use strict";"use restrict";var K7=32;oi.INT_BITS=K7;oi.INT_MAX=2147483647;oi.INT_MIN=-1<0)-(e<0)};oi.abs=function(e){var r=e>>K7-1;return(e^r)-r};oi.min=function(e,r){return r^(e^r)&-(e65535)<<4,e>>>=r,t=(e>255)<<3,e>>>=t,r|=t,t=(e>15)<<2,e>>>=t,r|=t,t=(e>3)<<1,e>>>=t,r|=t,r|e>>1};oi.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};oi.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function Cee(e){var r=32;return e&=-e,e&&r--,e&65535&&(r-=16),e&16711935&&(r-=8),e&252645135&&(r-=4),e&858993459&&(r-=2),e&1431655765&&(r-=1),r}oi.countTrailingZeros=Cee;oi.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};oi.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};oi.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var lg=new Array(256);(function(e){for(var r=0;r<256;++r){var t=r,a=r,n=7;for(t>>>=1;t;t>>>=1)a<<=1,a|=t&1,--n;e[r]=a<>>8&255]<<16|lg[e>>>16&255]<<8|lg[e>>>24&255]};oi.interleave2=function(e,r){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,r&=65535,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,e|r<<1};oi.deinterleave2=function(e,r){return e=e>>>r&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};oi.interleave3=function(e,r,t){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|=r<<1,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|t<<2};oi.deinterleave3=function(e,r){return e=e>>>r&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};oi.nextCombination=function(e){var r=e|e-1;return r+1|(~r&-~r)-1>>>Cee(e)+1}});var Fee=P((DOe,Dee)=>{"use strict";function Lee(e,r,t){var a=e[t]|0;if(a<=0)return[];var n=new Array(a),i;if(t===e.length-1)for(i=0;i0)return i7e(e|0,r);break;case"object":if(typeof e.length=="number")return Lee(e,r,0);break}return[]}Dee.exports=o7e});var Pee=P(P_=>{"use strict";P_.byteLength=s7e;P_.toByteArray=u7e;P_.fromByteArray=h7e;var Bf=[],is=[],l7e=typeof Uint8Array!="undefined"?Uint8Array:Array,r9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(mh=0,Ree=r9.length;mh0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var a=t===r?0:4-t%4;return[t,a]}function s7e(e){var r=qee(e),t=r[0],a=r[1];return(t+a)*3/4-a}function f7e(e,r,t){return(r+t)*3/4-t}function u7e(e){var r,t=qee(e),a=t[0],n=t[1],i=new l7e(f7e(e,a,n)),o=0,l=n>0?a-4:a,s;for(s=0;s>16&255,i[o++]=r>>8&255,i[o++]=r&255;return n===2&&(r=is[e.charCodeAt(s)]<<2|is[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=is[e.charCodeAt(s)]<<10|is[e.charCodeAt(s+1)]<<4|is[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function c7e(e){return Bf[e>>18&63]+Bf[e>>12&63]+Bf[e>>6&63]+Bf[e&63]}function v7e(e,r,t){for(var a,n=[],i=r;il?l:o+i));return a===1?(r=e[t-1],n.push(Bf[r>>2]+Bf[r<<4&63]+"==")):a===2&&(r=(e[t-2]<<8)+e[t-1],n.push(Bf[r>>10]+Bf[r>>4&63]+Bf[r<<2&63]+"=")),n.join("")}});var Nee=P(t9=>{t9.read=function(e,r,t,a,n){var i,o,l=n*8-a-1,s=(1<>1,u=-7,c=t?n-1:0,v=t?-1:1,d=e[r+c];for(c+=v,i=d&(1<<-u)-1,d>>=-u,u+=l;u>0;i=i*256+e[r+c],c+=v,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=a;u>0;o=o*256+e[r+c],c+=v,u-=8);if(i===0)i=1-f;else{if(i===s)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,a),i=i-f}return(d?-1:1)*o*Math.pow(2,i-a)};t9.write=function(e,r,t,a,n,i){var o,l,s,f=i*8-n-1,u=(1<>1,v=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:i-1,p=a?1:-1,g=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,o=u):(o=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+c>=1?r+=v/s:r+=v*Math.pow(2,1-c),r*s>=2&&(o++,s/=2),o+c>=u?(l=0,o=u):o+c>=1?(l=(r*s-1)*Math.pow(2,n),o=o+c):(l=r*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[t+d]=l&255,d+=p,l/=256,n-=8);for(o=o<0;e[t+d]=o&255,d+=p,o/=256,f-=8);e[t+d-p]|=g*128}});var Kee=P(zp=>{"use strict";var a9=Pee(),Ip=Nee(),Oee=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;zp.Buffer=Kr;zp.SlowBuffer=b7e;zp.INSPECT_MAX_BYTES=50;var N_=2147483647;zp.kMaxLength=N_;Kr.TYPED_ARRAY_SUPPORT=d7e();!Kr.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function d7e(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(e){return!1}}Object.defineProperty(Kr.prototype,"parent",{enumerable:!0,get:function(){if(Kr.isBuffer(this))return this.buffer}});Object.defineProperty(Kr.prototype,"offset",{enumerable:!0,get:function(){if(Kr.isBuffer(this))return this.byteOffset}});function Vu(e){if(e>N_)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,Kr.prototype),r}function Kr(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return l9(e)}return Gee(e,r,t)}Kr.poolSize=8192;function Gee(e,r,t){if(typeof e=="string")return m7e(e,r);if(ArrayBuffer.isView(e))return y7e(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(zf(e,ArrayBuffer)||e&&zf(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(zf(e,SharedArrayBuffer)||e&&zf(e.buffer,SharedArrayBuffer)))return i9(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let a=e.valueOf&&e.valueOf();if(a!=null&&a!==e)return Kr.from(a,r,t);let n=g7e(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Kr.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}Kr.from=function(e,r,t){return Gee(e,r,t)};Object.setPrototypeOf(Kr.prototype,Uint8Array.prototype);Object.setPrototypeOf(Kr,Uint8Array);function Uee(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p7e(e,r,t){return Uee(e),e<=0?Vu(e):r!==void 0?typeof t=="string"?Vu(e).fill(r,t):Vu(e).fill(r):Vu(e)}Kr.alloc=function(e,r,t){return p7e(e,r,t)};function l9(e){return Uee(e),Vu(e<0?0:s9(e)|0)}Kr.allocUnsafe=function(e){return l9(e)};Kr.allocUnsafeSlow=function(e){return l9(e)};function m7e(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!Kr.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=Hee(e,r)|0,a=Vu(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function n9(e){let r=e.length<0?0:s9(e.length)|0,t=Vu(r);for(let a=0;a=N_)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+N_.toString(16)+" bytes");return e|0}function b7e(e){return+e!=e&&(e=0),Kr.alloc(+e)}Kr.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==Kr.prototype};Kr.compare=function(r,t){if(zf(r,Uint8Array)&&(r=Kr.from(r,r.offset,r.byteLength)),zf(t,Uint8Array)&&(t=Kr.from(t,t.offset,t.byteLength)),!Kr.isBuffer(r)||!Kr.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let a=r.length,n=t.length;for(let i=0,o=Math.min(a,n);in.length?(Kr.isBuffer(o)||(o=Kr.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(Kr.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function Hee(e,r){if(Kr.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||zf(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,a=arguments.length>2&&arguments[2]===!0;if(!a&&t===0)return 0;let n=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return o9(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Qee(e).length;default:if(n)return a?-1:o9(e).length;r=(""+r).toLowerCase(),n=!0}}Kr.byteLength=Hee;function x7e(e,r,t){let a=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return L7e(this,r,t);case"utf8":case"utf-8":return Yee(this,r,t);case"ascii":return k7e(this,r,t);case"latin1":case"binary":return C7e(this,r,t);case"base64":return S7e(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D7e(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}Kr.prototype._isBuffer=!0;function yh(e,r,t){let a=e[r];e[r]=e[t],e[t]=a}Kr.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(r+=" ... "),""};Oee&&(Kr.prototype[Oee]=Kr.prototype.inspect);Kr.prototype.compare=function(r,t,a,n,i){if(zf(r,Uint8Array)&&(r=Kr.from(r,r.offset,r.byteLength)),!Kr.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),a===void 0&&(a=r?r.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||a>r.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=a)return 0;if(n>=i)return-1;if(t>=a)return 1;if(t>>>=0,a>>>=0,n>>>=0,i>>>=0,this===r)return 0;let o=i-n,l=a-t,s=Math.min(o,l),f=this.slice(n,i),u=r.slice(t,a);for(let c=0;c2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,u9(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=Kr.from(r,a)),Kr.isBuffer(r))return r.length===0?-1:Iee(e,r,t,a,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):Iee(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function Iee(e,r,t,a,n){let i=1,o=e.length,l=r.length;if(a!==void 0&&(a=String(a).toLowerCase(),a==="ucs2"||a==="ucs-2"||a==="utf16le"||a==="utf-16le")){if(e.length<2||r.length<2)return-1;i=2,o/=2,l/=2,t/=2}function s(u,c){return i===1?u[c]:u.readUInt16BE(c*i)}let f;if(n){let u=-1;for(f=t;fo&&(t=o-l),f=t;f>=0;f--){let u=!0;for(let c=0;cn&&(a=n)):a=n;let i=r.length;a>i/2&&(a=i/2);let o;for(o=0;o>>0,isFinite(a)?(a=a>>>0,n===void 0&&(n="utf8")):(n=a,a=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((a===void 0||a>i)&&(a=i),r.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return _7e(this,r,t,a);case"utf8":case"utf-8":return w7e(this,r,t,a);case"ascii":case"latin1":case"binary":return A7e(this,r,t,a);case"base64":return T7e(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M7e(this,r,t,a);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};Kr.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function S7e(e,r,t){return r===0&&t===e.length?a9.fromByteArray(e):a9.fromByteArray(e.slice(r,t))}function Yee(e,r,t){t=Math.min(e.length,t);let a=[],n=r;for(;n239?4:i>223?3:i>191?2:1;if(n+l<=t){let s,f,u,c;switch(l){case 1:i<128&&(o=i);break;case 2:s=e[n+1],(s&192)===128&&(c=(i&31)<<6|s&63,c>127&&(o=c));break;case 3:s=e[n+1],f=e[n+2],(s&192)===128&&(f&192)===128&&(c=(i&15)<<12|(s&63)<<6|f&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:s=e[n+1],f=e[n+2],u=e[n+3],(s&192)===128&&(f&192)===128&&(u&192)===128&&(c=(i&15)<<18|(s&63)<<12|(f&63)<<6|u&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,a.push(o>>>10&1023|55296),o=56320|o&1023),a.push(o),n+=l}return E7e(a)}var Bee=4096;function E7e(e){let r=e.length;if(r<=Bee)return String.fromCharCode.apply(String,e);let t="",a=0;for(;aa)&&(t=a);let n="";for(let i=r;ia&&(r=a),t<0?(t+=a,t<0&&(t=0)):t>a&&(t=a),tt)throw new RangeError("Trying to access beyond buffer length")}Kr.prototype.readUintLE=Kr.prototype.readUIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||Yi(r,t,this.length);let n=this[r],i=1,o=0;for(;++o>>0,t=t>>>0,a||Yi(r,t,this.length);let n=this[r+--t],i=1;for(;t>0&&(i*=256);)n+=this[r+--t]*i;return n};Kr.prototype.readUint8=Kr.prototype.readUInt8=function(r,t){return r=r>>>0,t||Yi(r,1,this.length),this[r]};Kr.prototype.readUint16LE=Kr.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||Yi(r,2,this.length),this[r]|this[r+1]<<8};Kr.prototype.readUint16BE=Kr.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||Yi(r,2,this.length),this[r]<<8|this[r+1]};Kr.prototype.readUint32LE=Kr.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||Yi(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};Kr.prototype.readUint32BE=Kr.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||Yi(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};Kr.prototype.readBigUInt64LE=yv(function(r){r=r>>>0,Bp(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&sg(r,this.length-8);let n=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,i=this[++r]+this[++r]*2**8+this[++r]*2**16+a*2**24;return BigInt(n)+(BigInt(i)<>>0,Bp(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&sg(r,this.length-8);let n=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],i=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a;return(BigInt(n)<>>0,t=t>>>0,a||Yi(r,t,this.length);let n=this[r],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};Kr.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||Yi(r,t,this.length);let n=t,i=1,o=this[r+--n];for(;n>0&&(i*=256);)o+=this[r+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};Kr.prototype.readInt8=function(r,t){return r=r>>>0,t||Yi(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};Kr.prototype.readInt16LE=function(r,t){r=r>>>0,t||Yi(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};Kr.prototype.readInt16BE=function(r,t){r=r>>>0,t||Yi(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};Kr.prototype.readInt32LE=function(r,t){return r=r>>>0,t||Yi(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};Kr.prototype.readInt32BE=function(r,t){return r=r>>>0,t||Yi(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};Kr.prototype.readBigInt64LE=yv(function(r){r=r>>>0,Bp(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&sg(r,this.length-8);let n=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(a<<24);return(BigInt(n)<>>0,Bp(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&sg(r,this.length-8);let n=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(n)<>>0,t||Yi(r,4,this.length),Ip.read(this,r,!0,23,4)};Kr.prototype.readFloatBE=function(r,t){return r=r>>>0,t||Yi(r,4,this.length),Ip.read(this,r,!1,23,4)};Kr.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||Yi(r,8,this.length),Ip.read(this,r,!0,52,8)};Kr.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||Yi(r,8,this.length),Ip.read(this,r,!1,52,8)};function nl(e,r,t,a,n,i){if(!Kr.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.length)throw new RangeError("Index out of range")}Kr.prototype.writeUintLE=Kr.prototype.writeUIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;nl(this,r,t,a,l,0)}let i=1,o=0;for(this[t]=r&255;++o>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;nl(this,r,t,a,l,0)}let i=a-1,o=1;for(this[t+i]=r&255;--i>=0&&(o*=256);)this[t+i]=r/o&255;return t+a};Kr.prototype.writeUint8=Kr.prototype.writeUInt8=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,1,255,0),this[t]=r&255,t+1};Kr.prototype.writeUint16LE=Kr.prototype.writeUInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};Kr.prototype.writeUint16BE=Kr.prototype.writeUInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};Kr.prototype.writeUint32LE=Kr.prototype.writeUInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};Kr.prototype.writeUint32BE=Kr.prototype.writeUInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function Wee(e,r,t,a,n){$ee(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,t}function jee(e,r,t,a,n){$ee(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t+7]=i,i=i>>8,e[t+6]=i,i=i>>8,e[t+5]=i,i=i>>8,e[t+4]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=o,o=o>>8,e[t+2]=o,o=o>>8,e[t+1]=o,o=o>>8,e[t]=o,t+8}Kr.prototype.writeBigUInt64LE=yv(function(r,t=0){return Wee(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});Kr.prototype.writeBigUInt64BE=yv(function(r,t=0){return jee(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});Kr.prototype.writeIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);nl(this,r,t,a,s-1,-s)}let i=0,o=1,l=0;for(this[t]=r&255;++i>0)-l&255;return t+a};Kr.prototype.writeIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);nl(this,r,t,a,s-1,-s)}let i=a-1,o=1,l=0;for(this[t+i]=r&255;--i>=0&&(o*=256);)r<0&&l===0&&this[t+i+1]!==0&&(l=1),this[t+i]=(r/o>>0)-l&255;return t+a};Kr.prototype.writeInt8=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};Kr.prototype.writeInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};Kr.prototype.writeInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};Kr.prototype.writeInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};Kr.prototype.writeInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||nl(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};Kr.prototype.writeBigInt64LE=yv(function(r,t=0){return Wee(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Kr.prototype.writeBigInt64BE=yv(function(r,t=0){return jee(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Xee(e,r,t,a,n,i){if(t+a>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Zee(e,r,t,a,n){return r=+r,t=t>>>0,n||Xee(e,r,t,4,34028234663852886e22,-34028234663852886e22),Ip.write(e,r,t,a,23,4),t+4}Kr.prototype.writeFloatLE=function(r,t,a){return Zee(this,r,t,!0,a)};Kr.prototype.writeFloatBE=function(r,t,a){return Zee(this,r,t,!1,a)};function Jee(e,r,t,a,n){return r=+r,t=t>>>0,n||Xee(e,r,t,8,17976931348623157e292,-17976931348623157e292),Ip.write(e,r,t,a,52,8),t+8}Kr.prototype.writeDoubleLE=function(r,t,a){return Jee(this,r,t,!0,a)};Kr.prototype.writeDoubleBE=function(r,t,a){return Jee(this,r,t,!1,a)};Kr.prototype.copy=function(r,t,a,n){if(!Kr.isBuffer(r))throw new TypeError("argument should be a Buffer");if(a||(a=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t>>0,a=a===void 0?this.length:a>>>0,r||(r=0);let i;if(typeof r=="number")for(i=t;i2**32?n=zee(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=zee(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function zee(e){let r="",t=e.length,a=e[0]==="-"?1:0;for(;t>=a+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return`${e.slice(0,t)}${r}`}function F7e(e,r,t){Bp(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&sg(r,e.length-(t+1))}function $ee(e,r,t,a,n,i){if(e>t||e3?r===0||r===BigInt(0)?l=`>= 0${o} and < 2${o} ** ${(i+1)*8}${o}`:l=`>= -(2${o} ** ${(i+1)*8-1}${o}) and < 2 ** ${(i+1)*8-1}${o}`:l=`>= ${r}${o} and <= ${t}${o}`,new Op.ERR_OUT_OF_RANGE("value",l,e)}F7e(a,n,i)}function Bp(e,r){if(typeof e!="number")throw new Op.ERR_INVALID_ARG_TYPE(r,"number",e)}function sg(e,r,t){throw Math.floor(e)!==e?(Bp(e,t),new Op.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new Op.ERR_BUFFER_OUT_OF_BOUNDS:new Op.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var R7e=/[^+/0-9A-Za-z-_]/g;function q7e(e){if(e=e.split("=")[0],e=e.trim().replace(R7e,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function o9(e,r){r=r||1/0;let t,a=e.length,n=null,i=[];for(let o=0;o55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&i.push(239,191,189);continue}else if(o+1===a){(r-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&i.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;i.push(t)}else if(t<2048){if((r-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function P7e(e){let r=[];for(let t=0;t>8,n=t%256,i.push(n),i.push(a);return i}function Qee(e){return a9.toByteArray(q7e(e))}function O_(e,r,t,a){let n;for(n=0;n=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function zf(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function u9(e){return e!==e}var O7e=function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let a=t*16;for(let n=0;n<16;++n)r[a+n]=e[t]+e[n]}return r}();function yv(e){return typeof BigInt=="undefined"?I7e:e}function I7e(){throw new Error("BigInt not supported")}});var dre=P(Ia=>{"use strict";var gv=e9(),oo=Fee(),ere=Kee().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:oo([32,0]),UINT16:oo([32,0]),UINT32:oo([32,0]),BIGUINT64:oo([32,0]),INT8:oo([32,0]),INT16:oo([32,0]),INT32:oo([32,0]),BIGINT64:oo([32,0]),FLOAT:oo([32,0]),DOUBLE:oo([32,0]),DATA:oo([32,0]),UINT8C:oo([32,0]),BUFFER:oo([32,0])});var B7e=typeof Uint8ClampedArray!="undefined",z7e=typeof BigUint64Array!="undefined",G7e=typeof BigInt64Array!="undefined",vi=window.__TYPEDARRAY_POOL;vi.UINT8C||(vi.UINT8C=oo([32,0]));vi.BIGUINT64||(vi.BIGUINT64=oo([32,0]));vi.BIGINT64||(vi.BIGINT64=oo([32,0]));vi.BUFFER||(vi.BUFFER=oo([32,0]));var I_=vi.DATA,B_=vi.BUFFER;Ia.free=function(r){if(ere.isBuffer(r))B_[gv.log2(r.length)].push(r);else{if(Object.prototype.toString.call(r)!=="[object ArrayBuffer]"&&(r=r.buffer),!r)return;var t=r.length||r.byteLength,a=gv.log2(t)|0;I_[a].push(r)}};function rre(e){if(e){var r=e.length||e.byteLength,t=gv.log2(r);I_[t].push(e)}}function U7e(e){rre(e.buffer)}Ia.freeUint8=Ia.freeUint16=Ia.freeUint32=Ia.freeBigUint64=Ia.freeInt8=Ia.freeInt16=Ia.freeInt32=Ia.freeBigInt64=Ia.freeFloat32=Ia.freeFloat=Ia.freeFloat64=Ia.freeDouble=Ia.freeUint8Clamped=Ia.freeDataView=U7e;Ia.freeArrayBuffer=rre;Ia.freeBuffer=function(r){B_[gv.log2(r.length)].push(r)};Ia.malloc=function(r,t){if(t===void 0||t==="arraybuffer")return il(r);switch(t){case"uint8":return c9(r);case"uint16":return tre(r);case"uint32":return are(r);case"int8":return nre(r);case"int16":return ire(r);case"int32":return ore(r);case"float":case"float32":return lre(r);case"double":case"float64":return sre(r);case"uint8_clamped":return fre(r);case"bigint64":return cre(r);case"biguint64":return ure(r);case"buffer":return hre(r);case"data":case"dataview":return vre(r);default:return null}return null};function il(r){var r=gv.nextPow2(r),t=gv.log2(r),a=I_[t];return a.length>0?a.pop():new ArrayBuffer(r)}Ia.mallocArrayBuffer=il;function c9(e){return new Uint8Array(il(e),0,e)}Ia.mallocUint8=c9;function tre(e){return new Uint16Array(il(2*e),0,e)}Ia.mallocUint16=tre;function are(e){return new Uint32Array(il(4*e),0,e)}Ia.mallocUint32=are;function nre(e){return new Int8Array(il(e),0,e)}Ia.mallocInt8=nre;function ire(e){return new Int16Array(il(2*e),0,e)}Ia.mallocInt16=ire;function ore(e){return new Int32Array(il(4*e),0,e)}Ia.mallocInt32=ore;function lre(e){return new Float32Array(il(4*e),0,e)}Ia.mallocFloat32=Ia.mallocFloat=lre;function sre(e){return new Float64Array(il(8*e),0,e)}Ia.mallocFloat64=Ia.mallocDouble=sre;function fre(e){return B7e?new Uint8ClampedArray(il(e),0,e):c9(e)}Ia.mallocUint8Clamped=fre;function ure(e){return z7e?new BigUint64Array(il(8*e),0,e):null}Ia.mallocBigUint64=ure;function cre(e){return G7e?new BigInt64Array(il(8*e),0,e):null}Ia.mallocBigInt64=cre;function vre(e){return new DataView(il(e),0,e)}Ia.mallocDataView=vre;function hre(e){e=gv.nextPow2(e);var r=gv.log2(e),t=B_[r];return t.length>0?t.pop():new ere(e)}Ia.mallocBuffer=hre;Ia.clearCache=function(){for(var r=0;r<32;++r)vi.UINT8[r].length=0,vi.UINT16[r].length=0,vi.UINT32[r].length=0,vi.INT8[r].length=0,vi.INT16[r].length=0,vi.INT32[r].length=0,vi.FLOAT[r].length=0,vi.DOUBLE[r].length=0,vi.BIGUINT64[r].length=0,vi.BIGINT64[r].length=0,vi.UINT8C[r].length=0,I_[r].length=0,B_[r].length=0}});var mre=P((OOe,pre)=>{"use strict";var H7e=Object.prototype.toString;pre.exports=function(e){var r;return H7e.call(e)==="[object Object]"&&(r=Object.getPrototypeOf(e),r===null||r===Object.getPrototypeOf({}))}});var v9=P((IOe,yre)=>{yre.exports=function(r,t){t||(t=[0,""]),r=String(r);var a=parseFloat(r,10);return t[0]=a,t[1]=r.match(/[\d.\-\+]*\s*(.*)/)[1]||"",t}});var xre=P((BOe,bre)=>{"use strict";var V7e=v9();bre.exports=gre;var fg=96;function h9(e,r){var t=V7e(getComputedStyle(e).getPropertyValue(r));return t[0]*gre(t[1],e)}function Y7e(e,r){var t=document.createElement("div");t.style["font-size"]="128"+e,r.appendChild(t);var a=h9(t,"font-size")/128;return r.removeChild(t),a}function gre(e,r){switch(r=r||document.body,e=(e||"px").trim().toLowerCase(),(r===window||r===document)&&(r=document.body),e){case"%":return r.clientHeight/100;case"ch":case"ex":return Y7e(e,r);case"em":return h9(r,"font-size");case"rem":return h9(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return fg;case"cm":return fg/2.54;case"mm":return fg/25.4;case"pt":return fg/72;case"pc":return fg/6}return 1}});var Are=P((zOe,wre)=>{"use strict";wre.exports=U_;var W7e=U_.canvas=document.createElement("canvas"),z_=W7e.getContext("2d"),_re=G_([32,126]);U_.createPairs=G_;U_.ascii=_re;function U_(e,r){Array.isArray(e)&&(e=e.join(", "));var t={},a,n=16,i=.05;r&&(r.length===2&&typeof r[0]=="number"?a=G_(r):Array.isArray(r)?a=r:(r.o?a=G_(r.o):r.pairs&&(a=r.pairs),r.fontSize&&(n=r.fontSize),r.threshold!=null&&(i=r.threshold))),a||(a=_re),z_.font=n+"px "+e;for(var o=0;on*i){var u=(f-s)/n;t[l]=u*1e3}}return t}function G_(e){for(var r=[],t=e[0];t<=e[1];t++)for(var a=String.fromCharCode(t),n=e[0];n{"use strict";Sre.exports=bv;bv.canvas=document.createElement("canvas");bv.cache={};function bv(o,r){r||(r={}),(typeof o=="string"||Array.isArray(o))&&(r.family=o);var t=Array.isArray(r.family)?r.family.join(", "):r.family;if(!t)throw Error("`family` must be defined");var a=r.size||r.fontSize||r.em||48,n=r.weight||r.fontWeight||"",i=r.style||r.fontStyle||"",o=[i,n,a].join(" ")+"px "+t,l=r.origin||"top";if(bv.cache[t]&&a<=bv.cache[t].em)return Tre(bv.cache[t],l);var s=r.canvas||bv.canvas,f=s.getContext("2d"),u={upper:r.upper!==void 0?r.upper:"H",lower:r.lower!==void 0?r.lower:"x",descent:r.descent!==void 0?r.descent:"p",ascent:r.ascent!==void 0?r.ascent:"h",tittle:r.tittle!==void 0?r.tittle:"i",overshoot:r.overshoot!==void 0?r.overshoot:"O"},c=Math.ceil(a*1.5);s.height=c,s.width=c*.5,f.font=o;var v="H",d={top:0};f.clearRect(0,0,c,c),f.textBaseline="top",f.fillStyle="black",f.fillText(v,0,0);var p=Gf(f.getImageData(0,0,c,c));f.clearRect(0,0,c,c),f.textBaseline="bottom",f.fillText(v,0,c);var g=Gf(f.getImageData(0,0,c,c));d.lineHeight=d.bottom=c-g+p,f.clearRect(0,0,c,c),f.textBaseline="alphabetic",f.fillText(v,0,c);var m=Gf(f.getImageData(0,0,c,c)),b=c-m-1+p;d.baseline=d.alphabetic=b,f.clearRect(0,0,c,c),f.textBaseline="middle",f.fillText(v,0,c*.5);var A=Gf(f.getImageData(0,0,c,c));d.median=d.middle=c-A-1+p-c*.5,f.clearRect(0,0,c,c),f.textBaseline="hanging",f.fillText(v,0,c*.5);var _=Gf(f.getImageData(0,0,c,c));d.hanging=c-_-1+p-c*.5,f.clearRect(0,0,c,c),f.textBaseline="ideographic",f.fillText(v,0,c);var x=Gf(f.getImageData(0,0,c,c));if(d.ideographic=c-x-1+p,u.upper&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.upper,0,0),d.upper=Gf(f.getImageData(0,0,c,c)),d.capHeight=d.baseline-d.upper),u.lower&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.lower,0,0),d.lower=Gf(f.getImageData(0,0,c,c)),d.xHeight=d.baseline-d.lower),u.tittle&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.tittle,0,0),d.tittle=Gf(f.getImageData(0,0,c,c))),u.ascent&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.ascent,0,0),d.ascent=Gf(f.getImageData(0,0,c,c))),u.descent&&(f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.descent,0,0),d.descent=Mre(f.getImageData(0,0,c,c))),u.overshoot){f.clearRect(0,0,c,c),f.textBaseline="top",f.fillText(u.overshoot,0,0);var T=Mre(f.getImageData(0,0,c,c));d.overshoot=T-b}for(var E in d)d[E]/=a;return d.em=a,bv.cache[t]=d,Tre(d,l)}function Tre(e,r){var t={};typeof r=="string"&&(r=e[r]);for(var a in e)a!=="em"&&(t[a]=e[a]-r);return t}function Gf(e){for(var r=e.height,t=e.data,a=3;a0;a-=4)if(t[a]!==0)return Math.floor((a-3)*.25/r)}});var Dre=P((UOe,Lre)=>{"use strict";var Gp=xee(),j7e=Of(),X7e=_ee(),Z7e=See(),J7e=N7(),d9=uh(),$7e=kee(),xv=dre(),Q7e=cp(),K7e=mre(),e9e=v9(),r9e=xre(),t9e=Are(),a9e=ni(),n9e=Ere(),i9e=ah(),o9e=e9(),kre=o9e.nextPow2,Cre=new J7e,V_=!1;document.body&&(H_=document.body.appendChild(document.createElement("div")),H_.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(H_).fontStretch&&(V_=!0),document.body.removeChild(H_));var H_,Ka=function(r){l9e(r)?(r={regl:r},this.gl=r.regl._gl):this.gl=Z7e(r),this.shader=Cre.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=r.regl||X7e({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),Cre.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(K7e(r)?r:{})};Ka.prototype.createShader=function(){var r=this.regl,t=r({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:r.prop("count"),offset:r.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:r.this("sizeBuffer")},width:{offset:0,stride:8,buffer:r.this("sizeBuffer")},char:r.this("charBuffer"),position:r.this("position")},uniforms:{atlasSize:function(n,i){return[i.atlas.width,i.atlas.height]},atlasDim:function(n,i){return[i.atlas.cols,i.atlas.rows]},atlas:function(n,i){return i.atlas.texture},charStep:function(n,i){return i.atlas.step},em:function(n,i){return i.atlas.em},color:r.prop("color"),opacity:r.prop("opacity"),viewport:r.this("viewportArray"),scale:r.this("scale"),align:r.prop("align"),baseline:r.prop("baseline"),translate:r.this("translate"),positionOffset:r.prop("positionOffset")},primitive:"points",viewport:r.this("viewport"),vert:` precision highp float; attribute float width, charOffset, char; attribute vec2 position; @@ -783,12 +783,12 @@ void main() { // color.rgb += (1. - color.rgb) * (1. - mask.rgb); gl_FragColor = color; - }`}),a={};return{regl:r,draw:t,atlas:a}};Qa.prototype.update=function(r){var t=this;if(typeof r=="string")r={text:r};else if(!r)return;r=U7e(r,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),r.opacity!=null&&(Array.isArray(r.opacity)?this.opacity=r.opacity.map(function(Ee){return parseFloat(Ee)}):this.opacity=parseFloat(r.opacity)),r.viewport!=null&&(this.viewport=j7e(r.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),r.kerning!=null&&(this.kerning=r.kerning),r.offset!=null&&(typeof r.offset=="number"&&(r.offset=[r.offset,0]),this.positionOffset=e9e(r.offset)),r.direction&&(this.direction=r.direction),r.range&&(this.range=r.range,this.scale=[1/(r.range[2]-r.range[0]),1/(r.range[3]-r.range[1])],this.translate=[-r.range[0],-r.range[1]]),r.scale&&(this.scale=r.scale),r.translate&&(this.translate=r.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!r.font&&(r.font=Qa.baseFontSize+"px sans-serif");var a=!1,n=!1;if(r.font&&(Array.isArray(r.font)?r.font:[r.font]).forEach(function(Ee,Ye){if(typeof Ee=="string")try{Ee=G1.parse(Ee)}catch(Xe){Ee=G1.parse(Qa.baseFontSize+"px "+Ee)}else{var we=Ee.style,Qe=Ee.weight,ze=Ee.stretch,He=Ee.variant;Ee=G1.parse(G1.stringify(Ee)),we&&(Ee.style=we),Qe&&(Ee.weight=Qe),ze&&(Ee.stretch=ze),He&&(Ee.variant=He)}var $e=G1.stringify({size:Qa.baseFontSize,family:Ee.family,stretch:V_?Ee.stretch:void 0,variant:Ee.variant,weight:Ee.weight,style:Ee.style}),Ue=Z7e(Ee.size),ee=Math.round(Ue[0]*J7e(Ue[1]));if(ee!==t.fontSize[Ye]&&(n=!0,t.fontSize[Ye]=ee),(!t.font[Ye]||$e!=t.font[Ye].baseString)&&(a=!0,t.font[Ye]=Qa.fonts[$e],!t.font[Ye])){var _e=Ee.family.join(", "),te=[Ee.style];Ee.style!=Ee.variant&&te.push(Ee.variant),Ee.variant!=Ee.weight&&te.push(Ee.weight),V_&&Ee.weight!=Ee.stretch&&te.push(Ee.stretch),t.font[Ye]={baseString:$e,family:_e,weight:Ee.weight,stretch:Ee.stretch,style:Ee.style,variant:Ee.variant,width:{},kerning:{},metrics:K7e(_e,{origin:"top",fontSize:Qa.baseFontSize,fontStyle:te.join(" ")})},Qa.fonts[$e]=t.font[Ye]}}),(a||n)&&this.font.forEach(function(Ee,Ye){var we=G1.stringify({size:t.fontSize[Ye],family:Ee.family,stretch:V_?Ee.stretch:void 0,variant:Ee.variant,weight:Ee.weight,style:Ee.style});if(t.fontAtlas[Ye]=t.shader.atlas[we],!t.fontAtlas[Ye]){var Qe=Ee.metrics;t.shader.atlas[we]=t.fontAtlas[Ye]={fontString:we,step:Math.ceil(t.fontSize[Ye]*Qe.bottom*.5)*2,em:t.fontSize[Ye],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:t.regl.texture()}}r.text==null&&(r.text=t.text)}),typeof r.text=="string"&&r.position&&r.position.length>2){for(var i=Array(r.position.length*.5),o=0;o2){for(var f=!r.position[0].length,u=xv.mallocFloat(this.count*2),c=0,v=0;c1?t.align[Ye]:t.align[0]:t.align;if(typeof we=="number")return we;switch(we){case"right":case"end":return-Ee;case"center":case"centre":case"middle":return-Ee*.5}return 0})),this.baseline==null&&r.baseline==null&&(r.baseline=0),r.baseline!=null&&(this.baseline=r.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(Ee,Ye){var we=(t.font[Ye]||t.font[0]).metrics,Qe=0;return Qe+=we.bottom*.5,typeof Ee=="number"?Qe+=Ee-we.baseline:Qe+=-we[Ee],Qe*=-1,Qe})),r.color!=null)if(r.color||(r.color="transparent"),typeof r.color=="string"||!isNaN(r.color))this.color=d9(r.color,"uint8");else{var le;if(typeof r.color[0]=="number"&&r.color.length>this.counts.length){var ae=r.color.length;le=xv.mallocUint8(ae);for(var J=(r.color.subarray||r.color.slice).bind(r.color),Z=0;Z4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(ce){var De=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(De);for(var Ne=0;Ne1?this.counts[Ne]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Ne]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Ne*4,Ne*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Ne]:this.opacity,baseline:this.baselineOffset[Ne]!=null?this.baselineOffset[Ne]:this.baselineOffset[0],align:this.align?this.alignOffset[Ne]!=null?this.alignOffset[Ne]:this.alignOffset[0]:0,atlas:this.fontAtlas[Ne]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Ne*2,Ne*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};Qa.prototype.destroy=function(){};Qa.prototype.kerning=!0;Qa.prototype.position={constant:new Float32Array(2)};Qa.prototype.translate=null;Qa.prototype.scale=null;Qa.prototype.font=null;Qa.prototype.text="";Qa.prototype.positionOffset=[0,0];Qa.prototype.opacity=1;Qa.prototype.color=new Uint8Array([0,0,0,255]);Qa.prototype.alignOffset=[0,0];Qa.maxAtlasSize=1024;Qa.atlasCanvas=document.createElement("canvas");Qa.atlasContext=Qa.atlasCanvas.getContext("2d",{alpha:!1});Qa.baseFontSize=64;Qa.fonts={};function t9e(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}Cre.exports=Qa});var Rre=P((BOe,Fre)=>{"use strict";var Dre=ha(),a9e=function(){};Fre.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=a9e);r.destroy=function(){r.container.parentNode.removeChild(r.container)};var a=document.createElement("div");a.className="no-webgl",a.style.cursor="pointer",a.style.fontSize="24px",a.style.color=Dre.defaults[0],a.style.position="absolute",a.style.left=a.style.top="0px",a.style.width=a.style.height="100%",a.style["background-color"]=Dre.lightLine,a.style["z-index"]=30;var n=document.createElement("p");return n.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",n.style.position="relative",n.style.top="50%",n.style.left="50%",n.style.height="30%",n.style.width="50%",n.style.margin="-15% 0 0 -25%",a.appendChild(n),r.container.appendChild(a),r.container.style.background="#FFFFFF",r.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var qre=P((p9,m9)=>{(function(e,r){typeof p9=="object"&&typeof m9!="undefined"?m9.exports=r():e.createREGL=r()})(p9,function(){"use strict";var e=function(M,B){for(var V=Object.keys(B),he=0;he1&&B===V&&(B==='"'||B==="'"))return['"'+o(M.substr(1,M.length-2))+'"'];var he=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(M);if(he)return l(M.substr(0,he.index)).concat(l(he[1])).concat(l(M.substr(he.index+he[0].length)));var be=M.split(".");if(be.length===1)return['"'+o(M)+'"'];for(var Ae=[],xe=0;xe65535)<<4,M>>>=B,V=(M>255)<<3,M>>>=V,B|=V,V=(M>15)<<2,M>>>=V,B|=V,V=(M>3)<<1,M>>>=V,B|=V,B|M>>1}function Z(){var M=k(8,function(){return[]});function B(Ae){var xe=ae(Ae),Ve=M[J(xe)>>2];return Ve.length>0?Ve.pop():new ArrayBuffer(xe)}function V(Ae){M[J(Ae.byteLength)>>2].push(Ae)}function he(Ae,xe){var Ve=null;switch(Ae){case F:Ve=new Int8Array(B(xe),0,xe);break;case O:Ve=new Uint8Array(B(xe),0,xe);break;case I:Ve=new Int16Array(B(2*xe),0,xe);break;case R:Ve=new Uint16Array(B(2*xe),0,xe);break;case H:Ve=new Int32Array(B(4*xe),0,xe);break;case X:Ve=new Uint32Array(B(4*xe),0,xe);break;case le:Ve=new Float32Array(B(4*xe),0,xe);break;default:return null}return Ve.length!==xe?Ve.subarray(0,xe):Ve}function be(Ae){V(Ae.buffer)}return{alloc:B,free:V,allocType:he,freeType:be}}var $=Z();$.zero=Z();var oe=3408,ce=3410,De=3411,Ne=3412,Ee=3413,Ye=3414,we=3415,Qe=33901,ze=33902,He=3379,$e=3386,Ue=34921,ee=36347,_e=36348,te=35661,Xe=35660,ur=34930,rr=36349,Pr=34076,Or=34024,wr=7936,Lr=7937,Xr=7938,Kr=35724,Mr=34047,jr=36063,Yr=34852,Fe=3553,lr=34067,vr=34069,Tt=33984,ht=6408,mr=5126,yr=5121,Vr=36160,at=36053,Wr=36064,Hr=16384,ot=function(M,B){var V=1;B.ext_texture_filter_anisotropic&&(V=M.getParameter(Mr));var he=1,be=1;B.webgl_draw_buffers&&(he=M.getParameter(Yr),be=M.getParameter(jr));var Ae=!!B.oes_texture_float;if(Ae){var xe=M.createTexture();M.bindTexture(Fe,xe),M.texImage2D(Fe,0,ht,1,1,0,ht,mr,null);var Ve=M.createFramebuffer();if(M.bindFramebuffer(Vr,Ve),M.framebufferTexture2D(Vr,Wr,Fe,xe,0),M.bindTexture(Fe,null),M.checkFramebufferStatus(Vr)!==at)Ae=!1;else{M.viewport(0,0,1,1),M.clearColor(1,0,0,1),M.clear(Hr);var ir=$.allocType(mr,4);M.readPixels(0,0,1,1,ht,mr,ir),M.getError()?Ae=!1:(M.deleteFramebuffer(Ve),M.deleteTexture(xe),Ae=ir[0]===1),$.freeType(ir)}}var nr=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),or=!0;if(!nr){var Qr=M.createTexture(),Fr=$.allocType(yr,36);M.activeTexture(Tt),M.bindTexture(lr,Qr),M.texImage2D(vr,0,ht,3,3,0,ht,yr,Fr),$.freeType(Fr),M.bindTexture(lr,null),M.deleteTexture(Qr),or=!M.getError()}return{colorBits:[M.getParameter(ce),M.getParameter(De),M.getParameter(Ne),M.getParameter(Ee)],depthBits:M.getParameter(Ye),stencilBits:M.getParameter(we),subpixelBits:M.getParameter(oe),extensions:Object.keys(B).filter(function(xr){return!!B[xr]}),maxAnisotropic:V,maxDrawbuffers:he,maxColorAttachments:be,pointSizeDims:M.getParameter(Qe),lineWidthDims:M.getParameter(ze),maxViewportDims:M.getParameter($e),maxCombinedTextureUnits:M.getParameter(te),maxCubeMapSize:M.getParameter(Pr),maxRenderbufferSize:M.getParameter(Or),maxTextureUnits:M.getParameter(ur),maxTextureSize:M.getParameter(He),maxAttributes:M.getParameter(Ue),maxVertexUniforms:M.getParameter(ee),maxVertexTextureUnits:M.getParameter(Xe),maxVaryingVectors:M.getParameter(_e),maxFragmentUniforms:M.getParameter(rr),glsl:M.getParameter(Kr),renderer:M.getParameter(Lr),vendor:M.getParameter(wr),version:M.getParameter(Xr),readFloat:Ae,npotTextureCube:or}},it=function(M){return M instanceof Uint8Array||M instanceof Uint16Array||M instanceof Uint32Array||M instanceof Int8Array||M instanceof Int16Array||M instanceof Int32Array||M instanceof Float32Array||M instanceof Float64Array||M instanceof Uint8ClampedArray};function st(M){return!!M&&typeof M=="object"&&Array.isArray(M.shape)&&Array.isArray(M.stride)&&typeof M.offset=="number"&&M.shape.length===M.stride.length&&(Array.isArray(M.data)||it(M.data))}var br=function(M){return Object.keys(M).map(function(B){return M[B]})},Se={shape:At,flatten:Et};function Ie(M,B,V){for(var he=0;he0){var Zr;if(Array.isArray(ke[0])){pr=na(ke);for(var Oe=1,qe=1;qe0){if(typeof Oe[0]=="number"){var sr=$.allocType(Be.dtype,Oe.length);Yi(sr,Oe),pr(sr,Sr),$.freeType(sr)}else if(Array.isArray(Oe[0])||it(Oe[0])){hr=na(Oe);var cr=Ca(Oe,hr,Be.dtype);pr(cr,Sr),$.freeType(cr)}}}else if(st(Oe)){hr=Oe.shape;var Er=Oe.stride,Jr=0,ct=0,gr=0,Cr=0;hr.length===1?(Jr=hr[0],ct=1,gr=Er[0],Cr=0):hr.length===2&&(Jr=hr[0],ct=hr[1],gr=Er[0],Cr=Er[1]);var ft=Array.isArray(Oe.data)?Be.dtype:rn(Oe.data),ut=$.allocType(ft,Jr*ct);Wi(ut,Oe.data,Jr,ct,gr,Cr,Oe.offset),pr(ut,Sr),$.freeType(ut)}return _r}return Ze||_r(fe),_r._reglType="buffer",_r._buffer=Be,_r.subdata=Zr,V.profile&&(_r.stats=Be.stats),_r.destroy=function(){Fr(Be)},_r}function Pe(){br(Ae).forEach(function(fe){fe.buffer=M.createBuffer(),M.bindBuffer(fe.type,fe.buffer),M.bufferData(fe.type,fe.persistentData||fe.byteLength,fe.usage)})}return V.profile&&(B.getTotalBufferSize=function(){var fe=0;return Object.keys(Ae).forEach(function(ke){fe+=Ae[ke].stats.size}),fe}),{create:xr,createStream:ir,destroyStream:nr,clear:function(){br(Ae).forEach(Fr),Ve.forEach(Fr)},getBuffer:function(fe){return fe&&fe._buffer instanceof xe?fe._buffer:null},restore:Pe,_initBuffer:Qr}}var Ra=0,Wn=0,ss=1,fs=1,kl=4,Zu=4,Oo={points:Ra,point:Wn,lines:ss,line:fs,triangles:kl,triangle:Zu,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Yf=0,Wf=1,ji=4,vi=5120,Oi=5121,Cl=5122,hi=5123,qt=5124,$t=5125,ca=34963,_t=35040,jn=35044;function Ua(M,B,V,he){var be={},Ae=0,xe={uint8:Oi,uint16:hi};B.oes_element_index_uint&&(xe.uint32=$t);function Ve(Pe){this.id=Ae++,be[this.id]=this,this.buffer=Pe,this.primType=ji,this.vertCount=0,this.type=0}Ve.prototype.bind=function(){this.buffer.bind()};var ir=[];function nr(Pe){var fe=ir.pop();return fe||(fe=new Ve(V.create(null,ca,!0,!1)._buffer)),Qr(fe,Pe,_t,-1,-1,0,0),fe}function or(Pe){ir.push(Pe)}function Qr(Pe,fe,ke,Ze,ar,Be,_r){Pe.buffer.bind();var pr;if(fe){var Zr=_r;!_r&&(!it(fe)||st(fe)&&!it(fe.data))&&(Zr=B.oes_element_index_uint?$t:hi),V._initBuffer(Pe.buffer,fe,ke,Zr,3)}else M.bufferData(ca,Be,ke),Pe.buffer.dtype=pr||Oi,Pe.buffer.usage=ke,Pe.buffer.dimension=3,Pe.buffer.byteLength=Be;if(pr=_r,!_r){switch(Pe.buffer.dtype){case Oi:case vi:pr=Oi;break;case hi:case Cl:pr=hi;break;case $t:case qt:pr=$t;break;default:}Pe.buffer.dtype=pr}Pe.type=pr;var Oe=ar;Oe<0&&(Oe=Pe.buffer.byteLength,pr===hi?Oe>>=1:pr===$t&&(Oe>>=2)),Pe.vertCount=Oe;var qe=Ze;if(Ze<0){qe=ji;var Sr=Pe.buffer.dimension;Sr===1&&(qe=Yf),Sr===2&&(qe=Wf),Sr===3&&(qe=ji)}Pe.primType=qe}function Fr(Pe){he.elementsCount--,delete be[Pe.id],Pe.buffer.destroy(),Pe.buffer=null}function xr(Pe,fe){var ke=V.create(null,ca,!0),Ze=new Ve(ke._buffer);he.elementsCount++;function ar(Be){if(!Be)ke(),Ze.primType=ji,Ze.vertCount=0,Ze.type=Oi;else if(typeof Be=="number")ke(Be),Ze.primType=ji,Ze.vertCount=Be|0,Ze.type=Oi;else{var _r=null,pr=jn,Zr=-1,Oe=-1,qe=0,Sr=0;Array.isArray(Be)||it(Be)||st(Be)?_r=Be:("data"in Be&&(_r=Be.data),"usage"in Be&&(pr=Pt[Be.usage]),"primitive"in Be&&(Zr=Oo[Be.primitive]),"count"in Be&&(Oe=Be.count|0),"type"in Be&&(Sr=xe[Be.type]),"length"in Be?qe=Be.length|0:(qe=Oe,Sr===hi||Sr===Cl?qe*=2:(Sr===$t||Sr===qt)&&(qe*=4))),Qr(Ze,_r,pr,Zr,Oe,qe,Sr)}return ar}return ar(Pe),ar._reglType="elements",ar._elements=Ze,ar.subdata=function(Be,_r){return ke.subdata(Be,_r),ar},ar.destroy=function(){Fr(Ze)},ar}return{create:xr,createStream:nr,destroyStream:or,getElements:function(Pe){return typeof Pe=="function"&&Pe._elements instanceof Ve?Pe._elements:null},clear:function(){br(be).forEach(Fr)}}}var Ln=new Float32Array(1),ra=new Uint32Array(Ln.buffer),wo=5123;function ol(M){for(var B=$.allocType(wo,M.length),V=0;V>>31<<15,Ae=(he<<1>>>24)-127,xe=he>>13&1023;if(Ae<-24)B[V]=be;else if(Ae<-14){var Ve=-14-Ae;B[V]=be+(xe+1024>>Ve)}else Ae>15?B[V]=be+31744:B[V]=be+(Ae+15<<10)+xe}return B}function Mi(M){return Array.isArray(M)||it(M)}var J1=34467,bn=3553,Ll=34067,Io=34069,di=6408,rf=6406,Bo=6407,Ao=6409,Dl=6410,Ju=32854,zo=32855,us=36194,Th=32819,$1=32820,$u=33635,Lv=34042,cs=6402,Fl=34041,Go=35904,To=35906,pi=36193,tf=33776,vs=33777,ll=33778,af=33779,Dv=35986,Qu=35987,jf=34798,Fv=35840,Rv=35841,Ku=35842,qv=35843,ec=36196,Mo=5121,nf=5123,Xf=5125,Ii=5126,of=10242,Q1=10243,K1=10497,Zf=33071,Mh=33648,Jf=10240,ep=10241,Rl=9728,rc=9729,hs=9984,lf=9985,ds=9986,sl=9987,Sh=33170,fl=4352,rp=4353,tc=4354,tp=34046,ap=3317,np=37440,Eh=37441,$f=37443,Pv=37444,So=33984,kh=[hs,ds,lf,sl],Si=[0,Ao,Dl,Bo,di],xn={};xn[Ao]=xn[rf]=xn[cs]=1,xn[Fl]=xn[Dl]=2,xn[Bo]=xn[Go]=3,xn[di]=xn[To]=4;function Xi(M){return"[object "+M+"]"}var Qf=Xi("HTMLCanvasElement"),ul=Xi("OffscreenCanvas"),sf=Xi("CanvasRenderingContext2D"),ac=Xi("ImageBitmap"),Nv=Xi("HTMLImageElement"),Ov=Xi("HTMLVideoElement"),ip=Object.keys(Nt).concat([Qf,ul,sf,ac,Nv,Ov]),so=[];so[Mo]=1,so[Ii]=4,so[pi]=2,so[nf]=2,so[Xf]=4;var Aa=[];Aa[Ju]=2,Aa[zo]=2,Aa[us]=2,Aa[Fl]=4,Aa[tf]=.5,Aa[vs]=.5,Aa[ll]=1,Aa[af]=1,Aa[Dv]=.5,Aa[Qu]=1,Aa[jf]=1,Aa[Fv]=.5,Aa[Rv]=.25,Aa[Ku]=.5,Aa[qv]=.25,Aa[ec]=.5;function Iv(M){return Array.isArray(M)&&(M.length===0||typeof M[0]=="number")}function Bv(M){if(!Array.isArray(M))return!1;var B=M.length;return!(B===0||!Mi(M[0]))}function Zi(M){return Object.prototype.toString.call(M)}function zv(M){return Zi(M)===Qf}function Gv(M){return Zi(M)===ul}function op(M){return Zi(M)===sf}function lp(M){return Zi(M)===ac}function sp(M){return Zi(M)===Nv}function fp(M){return Zi(M)===Ov}function Kf(M){if(!M)return!1;var B=Zi(M);return ip.indexOf(B)>=0?!0:Iv(M)||Bv(M)||st(M)}function Uv(M){return Nt[Object.prototype.toString.call(M)]|0}function up(M,B){var V=B.length;switch(M.type){case Mo:case nf:case Xf:case Ii:var he=$.allocType(M.type,V);he.set(B),M.data=he;break;case pi:M.data=ol(B);break;default:}}function Hv(M,B){return $.allocType(M.type===pi?Ii:M.type,B)}function nc(M,B){M.type===pi?(M.data=ol(B),$.freeType(B)):M.data=B}function Ch(M,B,V,he,be,Ae){for(var xe=M.width,Ve=M.height,ir=M.channels,nr=xe*Ve*ir,or=Hv(M,nr),Qr=0,Fr=0;Fr=1;)Ve+=xe*ir*ir,ir/=2;return Ve}else return xe*V*he}function Lh(M,B,V,he,be,Ae,xe){var Ve={"don't care":fl,"dont care":fl,nice:tc,fast:rp},ir={repeat:K1,clamp:Zf,mirror:Mh},nr={nearest:Rl,linear:rc},or=e({mipmap:sl,"nearest mipmap nearest":hs,"linear mipmap nearest":lf,"nearest mipmap linear":ds,"linear mipmap linear":sl},nr),Qr={none:0,browser:Pv},Fr={uint8:Mo,rgba4:Th,rgb565:$u,"rgb5 a1":$1},xr={alpha:rf,luminance:Ao,"luminance alpha":Dl,rgb:Bo,rgba:di,rgba4:Ju,"rgb5 a1":zo,rgb565:us},Pe={};B.ext_srgb&&(xr.srgb=Go,xr.srgba=To),B.oes_texture_float&&(Fr.float32=Fr.float=Ii),B.oes_texture_half_float&&(Fr.float16=Fr["half float"]=pi),B.webgl_depth_texture&&(e(xr,{depth:cs,"depth stencil":Fl}),e(Fr,{uint16:nf,uint32:Xf,"depth stencil":Lv})),B.webgl_compressed_texture_s3tc&&e(Pe,{"rgb s3tc dxt1":tf,"rgba s3tc dxt1":vs,"rgba s3tc dxt3":ll,"rgba s3tc dxt5":af}),B.webgl_compressed_texture_atc&&e(Pe,{"rgb atc":Dv,"rgba atc explicit alpha":Qu,"rgba atc interpolated alpha":jf}),B.webgl_compressed_texture_pvrtc&&e(Pe,{"rgb pvrtc 4bppv1":Fv,"rgb pvrtc 2bppv1":Rv,"rgba pvrtc 4bppv1":Ku,"rgba pvrtc 2bppv1":qv}),B.webgl_compressed_texture_etc1&&(Pe["rgb etc1"]=ec);var fe=Array.prototype.slice.call(M.getParameter(J1));Object.keys(Pe).forEach(function(z){var pe=Pe[z];fe.indexOf(pe)>=0&&(xr[z]=pe)});var ke=Object.keys(xr);V.textureFormats=ke;var Ze=[];Object.keys(xr).forEach(function(z){var pe=xr[z];Ze[pe]=z});var ar=[];Object.keys(Fr).forEach(function(z){var pe=Fr[z];ar[pe]=z});var Be=[];Object.keys(nr).forEach(function(z){var pe=nr[z];Be[pe]=z});var _r=[];Object.keys(or).forEach(function(z){var pe=or[z];_r[pe]=z});var pr=[];Object.keys(ir).forEach(function(z){var pe=ir[z];pr[pe]=z});var Zr=ke.reduce(function(z,pe){var ge=xr[pe];return ge===Ao||ge===rf||ge===Ao||ge===Dl||ge===cs||ge===Fl||B.ext_srgb&&(ge===Go||ge===To)?z[ge]=ge:ge===zo||pe.indexOf("rgba")>=0?z[ge]=di:z[ge]=Bo,z},{});function Oe(){this.internalformat=di,this.format=di,this.type=Mo,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Pv,this.width=0,this.height=0,this.channels=0}function qe(z,pe){z.internalformat=pe.internalformat,z.format=pe.format,z.type=pe.type,z.compressed=pe.compressed,z.premultiplyAlpha=pe.premultiplyAlpha,z.flipY=pe.flipY,z.unpackAlignment=pe.unpackAlignment,z.colorSpace=pe.colorSpace,z.width=pe.width,z.height=pe.height,z.channels=pe.channels}function Sr(z,pe){if(!(typeof pe!="object"||!pe)){if("premultiplyAlpha"in pe&&(z.premultiplyAlpha=pe.premultiplyAlpha),"flipY"in pe&&(z.flipY=pe.flipY),"alignment"in pe&&(z.unpackAlignment=pe.alignment),"colorSpace"in pe&&(z.colorSpace=Qr[pe.colorSpace]),"type"in pe){var ge=pe.type;z.type=Fr[ge]}var Nr=z.width,Dt=z.height,Ht=z.channels,Rr=!1;"shape"in pe?(Nr=pe.shape[0],Dt=pe.shape[1],pe.shape.length===3&&(Ht=pe.shape[2],Rr=!0)):("radius"in pe&&(Nr=Dt=pe.radius),"width"in pe&&(Nr=pe.width),"height"in pe&&(Dt=pe.height),"channels"in pe&&(Ht=pe.channels,Rr=!0)),z.width=Nr|0,z.height=Dt|0,z.channels=Ht|0;var N=!1;if("format"in pe){var U=pe.format,Q=z.internalformat=xr[U];z.format=Zr[Q],U in Fr&&("type"in pe||(z.type=Fr[U])),U in Pe&&(z.compressed=!0),N=!0}!Rr&&N?z.channels=xn[z.format]:Rr&&!N&&z.channels!==Si[z.format]&&(z.format=z.internalformat=Si[z.channels])}}function hr(z){M.pixelStorei(np,z.flipY),M.pixelStorei(Eh,z.premultiplyAlpha),M.pixelStorei($f,z.colorSpace),M.pixelStorei(ap,z.unpackAlignment)}function sr(){Oe.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function cr(z,pe){var ge=null;if(Kf(pe)?ge=pe:pe&&(Sr(z,pe),"x"in pe&&(z.xOffset=pe.x|0),"y"in pe&&(z.yOffset=pe.y|0),Kf(pe.data)&&(ge=pe.data)),pe.copy){var Nr=be.viewportWidth,Dt=be.viewportHeight;z.width=z.width||Nr-z.xOffset,z.height=z.height||Dt-z.yOffset,z.needsCopy=!0}else if(!ge)z.width=z.width||1,z.height=z.height||1,z.channels=z.channels||4;else if(it(ge))z.channels=z.channels||4,z.data=ge,!("type"in pe)&&z.type===Mo&&(z.type=Uv(ge));else if(Iv(ge))z.channels=z.channels||4,up(z,ge),z.alignment=1,z.needsFree=!0;else if(st(ge)){var Ht=ge.data;!Array.isArray(Ht)&&z.type===Mo&&(z.type=Uv(Ht));var Rr=ge.shape,N=ge.stride,U,Q,de,Te,ue,se;Rr.length===3?(de=Rr[2],se=N[2]):(de=1,se=1),U=Rr[0],Q=Rr[1],Te=N[0],ue=N[1],z.alignment=1,z.width=U,z.height=Q,z.channels=de,z.format=z.internalformat=Si[de],z.needsFree=!0,Ch(z,Ht,Te,ue,se,ge.offset)}else if(zv(ge)||Gv(ge)||op(ge))zv(ge)||Gv(ge)?z.element=ge:z.element=ge.canvas,z.width=z.element.width,z.height=z.element.height,z.channels=4;else if(lp(ge))z.element=ge,z.width=ge.width,z.height=ge.height,z.channels=4;else if(sp(ge))z.element=ge,z.width=ge.naturalWidth,z.height=ge.naturalHeight,z.channels=4;else if(fp(ge))z.element=ge,z.width=ge.videoWidth,z.height=ge.videoHeight,z.channels=4;else if(Bv(ge)){var re=z.width||ge[0].length,W=z.height||ge.length,K=z.channels;Mi(ge[0][0])?K=K||ge[0][0].length:K=K||1;for(var Y=Se.shape(ge),ve=1,Ce=0;Ce>=Dt,ge.height>>=Dt,cr(ge,Nr[Dt]),z.mipmask|=1<=0&&!("faces"in pe)&&(z.genMipmaps=!0)}if("mag"in pe){var Nr=pe.mag;z.magFilter=nr[Nr]}var Dt=z.wrapS,Ht=z.wrapT;if("wrap"in pe){var Rr=pe.wrap;typeof Rr=="string"?Dt=Ht=ir[Rr]:Array.isArray(Rr)&&(Dt=ir[Rr[0]],Ht=ir[Rr[1]])}else{if("wrapS"in pe){var N=pe.wrapS;Dt=ir[N]}if("wrapT"in pe){var U=pe.wrapT;Ht=ir[U]}}if(z.wrapS=Dt,z.wrapT=Ht,"anisotropic"in pe){var Q=pe.anisotropic;z.anisotropic=pe.anisotropic}if("mipmap"in pe){var de=!1;switch(typeof pe.mipmap){case"string":z.mipmapHint=Ve[pe.mipmap],z.genMipmaps=!0,de=!0;break;case"boolean":de=z.genMipmaps=pe.mipmap;break;case"object":z.genMipmaps=!1,de=!0;break;default:}de&&!("min"in pe)&&(z.minFilter=hs)}}function Xa(z,pe){M.texParameteri(pe,ep,z.minFilter),M.texParameteri(pe,Jf,z.magFilter),M.texParameteri(pe,of,z.wrapS),M.texParameteri(pe,Q1,z.wrapT),B.ext_texture_filter_anisotropic&&M.texParameteri(pe,tp,z.anisotropic),z.genMipmaps&&(M.hint(Sh,z.mipmapHint),M.generateMipmap(pe))}var nn=0,ma={},ya=V.maxTextureUnits,Ea=Array(ya).map(function(){return null});function wt(z){Oe.call(this),this.mipmask=0,this.internalformat=di,this.id=nn++,this.refCount=1,this.target=z,this.texture=M.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Ut,xe.profile&&(this.stats={size:0})}function qa(z){M.activeTexture(So),M.bindTexture(z.target,z.texture)}function Wt(){var z=Ea[0];z?M.bindTexture(z.target,z.texture):M.bindTexture(bn,null)}function Za(z){var pe=z.texture,ge=z.unit,Nr=z.target;ge>=0&&(M.activeTexture(So+ge),M.bindTexture(Nr,null),Ea[ge]=null),M.deleteTexture(pe),z.texture=null,z.params=null,z.pixels=null,z.refCount=0,delete ma[z.id],Ae.textureCount--}e(wt.prototype,{bind:function(){var z=this;z.bindCount+=1;var pe=z.unit;if(pe<0){for(var ge=0;ge0)continue;Nr.unit=-1}Ea[ge]=z,pe=ge;break}pe>=ya,xe.profile&&Ae.maxTextureUnits>ue)-de,se.height=se.height||(ge.height>>ue)-Te,qa(ge),Jr(se,bn,de,Te,ue),Wt(),Cr(se),Nr}function Ht(Rr,N){var U=Rr|0,Q=N|0||U;if(U===ge.width&&Q===ge.height)return Nr;Nr.width=ge.width=U,Nr.height=ge.height=Q,qa(ge);for(var de=0;ge.mipmask>>de;++de){var Te=U>>de,ue=Q>>de;if(!Te||!ue)break;M.texImage2D(bn,de,ge.format,Te,ue,0,ge.format,ge.type,null)}return Wt(),xe.profile&&(ge.stats.size=ql(ge.internalformat,ge.type,U,Q,!1,!1)),Nr}return Nr(z,pe),Nr.subimage=Dt,Nr.resize=Ht,Nr._reglType="texture2d",Nr._texture=ge,xe.profile&&(Nr.stats=ge.stats),Nr.destroy=function(){ge.decRef()},Nr}function ln(z,pe,ge,Nr,Dt,Ht){var Rr=new wt(Ll);ma[Rr.id]=Rr,Ae.cubeCount++;var N=new Array(6);function U(Te,ue,se,re,W,K){var Y,ve=Rr.texInfo;for(Ut.call(ve),Y=0;Y<6;++Y)N[Y]=Lt();if(typeof Te=="number"||!Te){var Ce=Te|0||1;for(Y=0;Y<6;++Y)ut(N[Y],Ce,Ce)}else if(typeof Te=="object")if(ue)St(N[0],Te),St(N[1],ue),St(N[2],se),St(N[3],re),St(N[4],W),St(N[5],K);else if(Ya(ve,Te),Sr(Rr,Te),"faces"in Te){var Je=Te.faces;for(Y=0;Y<6;++Y)qe(N[Y],Rr),St(N[Y],Je[Y])}else for(Y=0;Y<6;++Y)St(N[Y],Te);for(qe(Rr,N[0]),ve.genMipmaps?Rr.mipmask=(N[0].width<<1)-1:Rr.mipmask=N[0].mipmask,Rr.internalformat=N[0].internalformat,U.width=N[0].width,U.height=N[0].height,qa(Rr),Y=0;Y<6;++Y)ta(N[Y],Io+Y);for(Xa(ve,Ll),Wt(),xe.profile&&(Rr.stats.size=ql(Rr.internalformat,Rr.type,U.width,U.height,ve.genMipmaps,!0)),U.format=Ze[Rr.internalformat],U.type=ar[Rr.type],U.mag=Be[ve.magFilter],U.min=_r[ve.minFilter],U.wrapS=pr[ve.wrapS],U.wrapT=pr[ve.wrapT],Y=0;Y<6;++Y)an(N[Y]);return U}function Q(Te,ue,se,re,W){var K=se|0,Y=re|0,ve=W|0,Ce=gr();return qe(Ce,Rr),Ce.width=0,Ce.height=0,cr(Ce,ue),Ce.width=Ce.width||(Rr.width>>ve)-K,Ce.height=Ce.height||(Rr.height>>ve)-Y,qa(Rr),Jr(Ce,Io+Te,K,Y,ve),Wt(),Cr(Ce),U}function de(Te){var ue=Te|0;if(ue!==Rr.width){U.width=Rr.width=ue,U.height=Rr.height=ue,qa(Rr);for(var se=0;se<6;++se)for(var re=0;Rr.mipmask>>re;++re)M.texImage2D(Io+se,re,Rr.format,ue>>re,ue>>re,0,Rr.format,Rr.type,null);return Wt(),xe.profile&&(Rr.stats.size=ql(Rr.internalformat,Rr.type,U.width,U.height,!1,!0)),U}}return U(z,pe,ge,Nr,Dt,Ht),U.subimage=Q,U.resize=de,U._reglType="textureCube",U._texture=Rr,xe.profile&&(U.stats=Rr.stats),U.destroy=function(){Rr.decRef()},U}function mt(){for(var z=0;z>Nr,ge.height>>Nr,0,ge.internalformat,ge.type,null);else for(var Dt=0;Dt<6;++Dt)M.texImage2D(Io+Dt,Nr,ge.internalformat,ge.width>>Nr,ge.height>>Nr,0,ge.internalformat,ge.type,null);Xa(ge.texInfo,ge.target)})}function Qt(){for(var z=0;z=0?an=!0:ir.indexOf(Ut)>=0&&(an=!1))),("depthTexture"in wt||"depthStencilTexture"in wt)&&(Ea=!!(wt.depthTexture||wt.depthStencilTexture)),"depth"in wt&&(typeof wt.depth=="boolean"?ta=wt.depth:(nn=wt.depth,Sa=!1)),"stencil"in wt&&(typeof wt.stencil=="boolean"?Sa=wt.stencil:(ma=wt.stencil,ta=!1)),"depthStencil"in wt&&(typeof wt.depthStencil=="boolean"?ta=Sa=wt.depthStencil:(ya=wt.depthStencil,ta=!1,Sa=!1))}var Wt=null,Za=null,on=null,ln=null;if(Array.isArray(Lt))Wt=Lt.map(Pe);else if(Lt)Wt=[Pe(Lt)];else for(Wt=new Array(Xa),ft=0;ft0&&(Cr.depth=cr[0].depth,Cr.stencil=cr[0].stencil,Cr.depthStencil=cr[0].depthStencil),cr[gr]?cr[gr](Cr):cr[gr]=qe(Cr)}return e(Er,{width:ft,height:ft,color:Ut})}function Jr(ct){var gr,Cr=ct|0;if(Cr===Er.width)return Er;var ft=Er.color;for(gr=0;gr=ft.byteLength?ut.subdata(ft):(ut.destroy(),qe.buffers[ct]=null)),qe.buffers[ct]||(ut=qe.buffers[ct]=be.create(gr,r0,!1,!0)),Cr.buffer=be.getBuffer(ut),Cr.size=Cr.buffer.dimension|0,Cr.normalized=!1,Cr.type=Cr.buffer.dtype,Cr.offset=0,Cr.stride=0,Cr.divisor=0,Cr.state=1,Er[ct]=1}else be.getBuffer(gr)?(Cr.buffer=be.getBuffer(gr),Cr.size=Cr.buffer.dimension|0,Cr.normalized=!1,Cr.type=Cr.buffer.dtype,Cr.offset=0,Cr.stride=0,Cr.divisor=0,Cr.state=1):be.getBuffer(gr.buffer)?(Cr.buffer=be.getBuffer(gr.buffer),Cr.size=(+gr.size||Cr.buffer.dimension)|0,Cr.normalized=!!gr.normalized||!1,"type"in gr?Cr.type=Tn[gr.type]:Cr.type=Cr.buffer.dtype,Cr.offset=(gr.offset||0)|0,Cr.stride=(gr.stride||0)|0,Cr.divisor=(gr.divisor||0)|0,Cr.state=1):"x"in gr&&(Cr.x=+gr.x||0,Cr.y=+gr.y||0,Cr.z=+gr.z||0,Cr.w=+gr.w||0,Cr.state=2)}for(var St=0;St1)for(var hr=0;hrfe&&(fe=ke.stats.uniformsCount)}),fe},V.getMaxAttributesCount=function(){var fe=0;return or.forEach(function(ke){ke.stats.attributesCount>fe&&(fe=ke.stats.attributesCount)}),fe});function Pe(){be={},Ae={};for(var fe=0;fe16&&(V=cl(V,M.length*8));for(var he=Array(16),be=Array(16),Ae=0;Ae<16;Ae++)he[Ae]=V[Ae]^909522486,be[Ae]=V[Ae]^1549556828;var xe=cl(he.concat(au(B)),512+B.length*8);return i0(cl(be.concat(xe),768))}function Ph(M){for(var B=Rh?"0123456789ABCDEF":"0123456789abcdef",V="",he,be=0;be>>4&15)+B.charAt(he&15);return V}function Tp(M){for(var B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V="",he=M.length,be=0;beM.length*8?V+=wp:V+=B.charAt(Ae>>>6*(3-xe)&63);return V}function Mp(M,B){var V=B.length,he=Array(),be,Ae,xe,Ve,ir=Array(Math.ceil(M.length/2));for(be=0;be0;){for(Ve=Array(),xe=0,be=0;be0||Ae>0)&&(Ve[Ve.length]=Ae);he[he.length]=xe,ir=Ve}var nr="";for(be=he.length-1;be>=0;be--)nr+=B.charAt(he[be]);var or=Math.ceil(M.length*8/(Math.log(B.length)/Math.log(2)));for(be=nr.length;be>>6&31,128|he&63):he<=65535?B+=String.fromCharCode(224|he>>>12&15,128|he>>>6&63,128|he&63):he<=2097151&&(B+=String.fromCharCode(240|he>>>18&7,128|he>>>12&63,128|he>>>6&63,128|he&63));return B}function au(M){for(var B=Array(M.length>>2),V=0;V>5]|=(M.charCodeAt(V/8)&255)<<24-V%32;return B}function i0(M){for(var B="",V=0;V>5]>>>24-V%32&255);return B}function In(M,B){return M>>>B|M<<32-B}function o0(M,B){return M>>>B}function Nh(M,B,V){return M&B^~M&V}function Oh(M,B,V){return M&B^M&V^B&V}function l0(M){return In(M,2)^In(M,13)^In(M,22)}function Ih(M){return In(M,6)^In(M,11)^In(M,25)}function sc(M){return In(M,7)^In(M,18)^o0(M,3)}function fc(M){return In(M,17)^In(M,19)^o0(M,10)}var Ep=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function cl(M,B){var V=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),he=new Array(64),be,Ae,xe,Ve,ir,nr,or,Qr,Fr,xr,Pe,fe;for(M[B>>5]|=128<<24-B%32,M[(B+64>>9<<4)+15]=B,Fr=0;Fr>16)+(B>>16)+(V>>16);return he<<16|V&65535}function ko(M){return Array.prototype.slice.call(M)}function Co(M){return ko(M).join("")}function Bh(M){var B=M&&M.cache,V=0,he=[],be=[],Ae=[];function xe(Pe,fe){var ke=fe&&fe.stable;if(!ke){for(var Ze=0;Ze0&&(Pe.push(ar,"="),Pe.push.apply(Pe,ko(arguments)),Pe.push(";")),ar}return e(fe,{def:Ze,toString:function(){return Co([ke.length>0?"var "+ke.join(",")+";":"",Co(Pe)])}})}function ir(){var Pe=Ve(),fe=Ve(),ke=Pe.toString,Ze=fe.toString;function ar(Be,_r){fe(Be,_r,"=",Pe.def(Be,_r),";")}return e(function(){Pe.apply(Pe,ko(arguments))},{def:Pe.def,entry:Pe,exit:fe,save:ar,set:function(Be,_r,pr){ar(Be,_r),Pe(Be,_r,"=",pr,";")},toString:function(){return ke()+Ze()}})}function nr(){var Pe=Co(arguments),fe=ir(),ke=ir(),Ze=fe.toString,ar=ke.toString;return e(fe,{then:function(){return fe.apply(fe,ko(arguments)),this},else:function(){return ke.apply(ke,ko(arguments)),this},toString:function(){var Be=ar();return Be&&(Be="else{"+Be+"}"),Co(["if(",Pe,"){",Ze(),"}",Be])}})}var or=Ve(),Qr={};function Fr(Pe,fe){var ke=[];function Ze(){var Zr="a"+ke.length;return ke.push(Zr),Zr}fe=fe||0;for(var ar=0;ar2){for(var i=Array(r.position.length*.5),o=0;o2){for(var f=!r.position[0].length,u=xv.mallocFloat(this.count*2),c=0,v=0;c1?t.align[Je]:t.align[0]:t.align;if(typeof Ae=="number")return Ae;switch(Ae){case"right":case"end":return-Ee;case"center":case"centre":case"middle":return-Ee*.5}return 0})),this.baseline==null&&r.baseline==null&&(r.baseline=0),r.baseline!=null&&(this.baseline=r.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(Ee,Je){var Ae=(t.font[Je]||t.font[0]).metrics,or=0;return or+=Ae.bottom*.5,typeof Ee=="number"?or+=Ee-Ae.baseline:or+=-Ae[Ee],or*=-1,or})),r.color!=null)if(r.color||(r.color="transparent"),typeof r.color=="string"||!isNaN(r.color))this.color=d9(r.color,"uint8");else{var le;if(typeof r.color[0]=="number"&&r.color.length>this.counts.length){var ae=r.color.length;le=xv.mallocUint8(ae);for(var $=(r.color.subarray||r.color.slice).bind(r.color),Z=0;Z4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(ce){var De=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(De);for(var Oe=0;Oe1?this.counts[Oe]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Oe]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Oe*4,Oe*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Oe]:this.opacity,baseline:this.baselineOffset[Oe]!=null?this.baselineOffset[Oe]:this.baselineOffset[0],align:this.align?this.alignOffset[Oe]!=null?this.alignOffset[Oe]:this.alignOffset[0]:0,atlas:this.fontAtlas[Oe]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Oe*2,Oe*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};Ka.prototype.destroy=function(){};Ka.prototype.kerning=!0;Ka.prototype.position={constant:new Float32Array(2)};Ka.prototype.translate=null;Ka.prototype.scale=null;Ka.prototype.font=null;Ka.prototype.text="";Ka.prototype.positionOffset=[0,0];Ka.prototype.opacity=1;Ka.prototype.color=new Uint8Array([0,0,0,255]);Ka.prototype.alignOffset=[0,0];Ka.maxAtlasSize=1024;Ka.atlasCanvas=document.createElement("canvas");Ka.atlasContext=Ka.atlasCanvas.getContext("2d",{alpha:!1});Ka.baseFontSize=64;Ka.fonts={};function l9e(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}Lre.exports=Ka});var qre=P((HOe,Rre)=>{"use strict";var Fre=va(),s9e=function(){};Rre.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=s9e);r.destroy=function(){r.container.parentNode.removeChild(r.container)};var a=document.createElement("div");a.className="no-webgl",a.style.cursor="pointer",a.style.fontSize="24px",a.style.color=Fre.defaults[0],a.style.position="absolute",a.style.left=a.style.top="0px",a.style.width=a.style.height="100%",a.style["background-color"]=Fre.lightLine,a.style["z-index"]=30;var n=document.createElement("p");return n.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",n.style.position="relative",n.style.top="50%",n.style.left="50%",n.style.height="30%",n.style.width="50%",n.style.margin="-15% 0 0 -25%",a.appendChild(n),r.container.appendChild(a),r.container.style.background="#FFFFFF",r.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var Pre=P((p9,m9)=>{(function(e,r){typeof p9=="object"&&typeof m9!="undefined"?m9.exports=r():e.createREGL=r()})(p9,function(){"use strict";var e=function(M,B){for(var V=Object.keys(B),he=0;he1&&B===V&&(B==='"'||B==="'"))return['"'+o(M.substr(1,M.length-2))+'"'];var he=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(M);if(he)return l(M.substr(0,he.index)).concat(l(he[1])).concat(l(M.substr(he.index+he[0].length)));var be=M.split(".");if(be.length===1)return['"'+o(M)+'"'];for(var we=[],xe=0;xe65535)<<4,M>>>=B,V=(M>255)<<3,M>>>=V,B|=V,V=(M>15)<<2,M>>>=V,B|=V,V=(M>3)<<1,M>>>=V,B|=V,B|M>>1}function Z(){var M=k(8,function(){return[]});function B(we){var xe=ae(we),Ye=M[$(xe)>>2];return Ye.length>0?Ye.pop():new ArrayBuffer(xe)}function V(we){M[$(we.byteLength)>>2].push(we)}function he(we,xe){var Ye=null;switch(we){case F:Ye=new Int8Array(B(xe),0,xe);break;case O:Ye=new Uint8Array(B(xe),0,xe);break;case I:Ye=new Int16Array(B(2*xe),0,xe);break;case R:Ye=new Uint16Array(B(2*xe),0,xe);break;case H:Ye=new Int32Array(B(4*xe),0,xe);break;case X:Ye=new Uint32Array(B(4*xe),0,xe);break;case le:Ye=new Float32Array(B(4*xe),0,xe);break;default:return null}return Ye.length!==xe?Ye.subarray(0,xe):Ye}function be(we){V(we.buffer)}return{alloc:B,free:V,allocType:he,freeType:be}}var J=Z();J.zero=Z();var oe=3408,ce=3410,De=3411,Oe=3412,Ee=3413,Je=3414,Ae=3415,or=33901,Ge=33902,He=3379,Ve=3386,Qe=34921,ee=36347,_e=36348,re=35661,Ze=35660,vr=34930,rr=36349,Cr=34076,Lr=34024,_r=7936,Pr=7937,rt=7938,Jr=35724,wr=34047,Hr=36063,Vr=34852,Pe=3553,sr=34067,lt=34069,Et=33984,wt=6408,Fe=5126,hr=5121,Or=36160,at=36053,Yr=36064,nt=16384,vt=function(M,B){var V=1;B.ext_texture_filter_anisotropic&&(V=M.getParameter(wr));var he=1,be=1;B.webgl_draw_buffers&&(he=M.getParameter(Vr),be=M.getParameter(Hr));var we=!!B.oes_texture_float;if(we){var xe=M.createTexture();M.bindTexture(Pe,xe),M.texImage2D(Pe,0,wt,1,1,0,wt,Fe,null);var Ye=M.createFramebuffer();if(M.bindFramebuffer(Or,Ye),M.framebufferTexture2D(Or,Yr,Pe,xe,0),M.bindTexture(Pe,null),M.checkFramebufferStatus(Or)!==at)we=!1;else{M.viewport(0,0,1,1),M.clearColor(1,0,0,1),M.clear(nt);var ir=J.allocType(Fe,4);M.readPixels(0,0,1,1,wt,Fe,ir),M.getError()?we=!1:(M.deleteFramebuffer(Ye),M.deleteTexture(xe),we=ir[0]===1),J.freeType(ir)}}var nr=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),lr=!0;if(!nr){var Zr=M.createTexture(),Fr=J.allocType(hr,36);M.activeTexture(Et),M.bindTexture(sr,Zr),M.texImage2D(lt,0,wt,3,3,0,wt,hr,Fr),J.freeType(Fr),M.bindTexture(sr,null),M.deleteTexture(Zr),lr=!M.getError()}return{colorBits:[M.getParameter(ce),M.getParameter(De),M.getParameter(Oe),M.getParameter(Ee)],depthBits:M.getParameter(Je),stencilBits:M.getParameter(Ae),subpixelBits:M.getParameter(oe),extensions:Object.keys(B).filter(function(br){return!!B[br]}),maxAnisotropic:V,maxDrawbuffers:he,maxColorAttachments:be,pointSizeDims:M.getParameter(or),lineWidthDims:M.getParameter(Ge),maxViewportDims:M.getParameter(Ve),maxCombinedTextureUnits:M.getParameter(re),maxCubeMapSize:M.getParameter(Cr),maxRenderbufferSize:M.getParameter(Lr),maxTextureUnits:M.getParameter(vr),maxTextureSize:M.getParameter(He),maxAttributes:M.getParameter(Qe),maxVertexUniforms:M.getParameter(ee),maxVertexTextureUnits:M.getParameter(Ze),maxVaryingVectors:M.getParameter(_e),maxFragmentUniforms:M.getParameter(rr),glsl:M.getParameter(Jr),renderer:M.getParameter(Pr),vendor:M.getParameter(_r),version:M.getParameter(rt),readFloat:we,npotTextureCube:lr}},ot=function(M){return M instanceof Uint8Array||M instanceof Uint16Array||M instanceof Uint32Array||M instanceof Int8Array||M instanceof Int16Array||M instanceof Int32Array||M instanceof Float32Array||M instanceof Float64Array||M instanceof Uint8ClampedArray};function et(M){return!!M&&typeof M=="object"&&Array.isArray(M.shape)&&Array.isArray(M.stride)&&typeof M.offset=="number"&&M.shape.length===M.stride.length&&(Array.isArray(M.data)||ot(M.data))}var pr=function(M){return Object.keys(M).map(function(B){return M[B]})},Se={shape:gt,flatten:At};function Ie(M,B,V){for(var he=0;he0){var Wr;if(Array.isArray(ke[0])){mr=ia(ke);for(var Be=1,qe=1;qe0){if(typeof Be[0]=="number"){var fr=J.allocType(ze.dtype,Be.length);Wi(fr,Be),mr(fr,Mr),J.freeType(fr)}else if(Array.isArray(Be[0])||ot(Be[0])){dr=ia(Be);var ur=Ca(Be,dr,ze.dtype);mr(ur,Mr),J.freeType(ur)}}}else if(et(Be)){dr=Be.shape;var Sr=Be.stride,jr=0,ut=0,gr=0,kr=0;dr.length===1?(jr=dr[0],ut=1,gr=Sr[0],kr=0):dr.length===2&&(jr=dr[0],ut=dr[1],gr=Sr[0],kr=Sr[1]);var st=Array.isArray(Be.data)?ze.dtype:tn(Be.data),ft=J.allocType(st,jr*ut);ji(ft,Be.data,jr,ut,gr,kr,Be.offset),mr(ft,Mr),J.freeType(ft)}return xr}return Xe||xr(fe),xr._reglType="buffer",xr._buffer=ze,xr.subdata=Wr,V.profile&&(xr.stats=ze.stats),xr.destroy=function(){Fr(ze)},xr}function Ne(){pr(we).forEach(function(fe){fe.buffer=M.createBuffer(),M.bindBuffer(fe.type,fe.buffer),M.bufferData(fe.type,fe.persistentData||fe.byteLength,fe.usage)})}return V.profile&&(B.getTotalBufferSize=function(){var fe=0;return Object.keys(we).forEach(function(ke){fe+=we[ke].stats.size}),fe}),{create:br,createStream:ir,destroyStream:nr,clear:function(){pr(we).forEach(Fr),Ye.forEach(Fr)},getBuffer:function(fe){return fe&&fe._buffer instanceof xe?fe._buffer:null},restore:Ne,_initBuffer:Zr}}var Ra=0,Xn=0,ss=1,fs=1,kl=4,Zu=4,Oo={points:Ra,point:Xn,lines:ss,line:fs,triangles:kl,triangle:Zu,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Yf=0,Wf=1,Xi=4,hi=5120,Ii=5121,Cl=5122,di=5123,qt=5124,$t=5125,ua=34963,_t=35040,Zn=35044;function Ua(M,B,V,he){var be={},we=0,xe={uint8:Ii,uint16:di};B.oes_element_index_uint&&(xe.uint32=$t);function Ye(Ne){this.id=we++,be[this.id]=this,this.buffer=Ne,this.primType=Xi,this.vertCount=0,this.type=0}Ye.prototype.bind=function(){this.buffer.bind()};var ir=[];function nr(Ne){var fe=ir.pop();return fe||(fe=new Ye(V.create(null,ua,!0,!1)._buffer)),Zr(fe,Ne,_t,-1,-1,0,0),fe}function lr(Ne){ir.push(Ne)}function Zr(Ne,fe,ke,Xe,ar,ze,xr){Ne.buffer.bind();var mr;if(fe){var Wr=xr;!xr&&(!ot(fe)||et(fe)&&!ot(fe.data))&&(Wr=B.oes_element_index_uint?$t:di),V._initBuffer(Ne.buffer,fe,ke,Wr,3)}else M.bufferData(ua,ze,ke),Ne.buffer.dtype=mr||Ii,Ne.buffer.usage=ke,Ne.buffer.dimension=3,Ne.buffer.byteLength=ze;if(mr=xr,!xr){switch(Ne.buffer.dtype){case Ii:case hi:mr=Ii;break;case di:case Cl:mr=di;break;case $t:case qt:mr=$t;break;default:}Ne.buffer.dtype=mr}Ne.type=mr;var Be=ar;Be<0&&(Be=Ne.buffer.byteLength,mr===di?Be>>=1:mr===$t&&(Be>>=2)),Ne.vertCount=Be;var qe=Xe;if(Xe<0){qe=Xi;var Mr=Ne.buffer.dimension;Mr===1&&(qe=Yf),Mr===2&&(qe=Wf),Mr===3&&(qe=Xi)}Ne.primType=qe}function Fr(Ne){he.elementsCount--,delete be[Ne.id],Ne.buffer.destroy(),Ne.buffer=null}function br(Ne,fe){var ke=V.create(null,ua,!0),Xe=new Ye(ke._buffer);he.elementsCount++;function ar(ze){if(!ze)ke(),Xe.primType=Xi,Xe.vertCount=0,Xe.type=Ii;else if(typeof ze=="number")ke(ze),Xe.primType=Xi,Xe.vertCount=ze|0,Xe.type=Ii;else{var xr=null,mr=Zn,Wr=-1,Be=-1,qe=0,Mr=0;Array.isArray(ze)||ot(ze)||et(ze)?xr=ze:("data"in ze&&(xr=ze.data),"usage"in ze&&(mr=Pt[ze.usage]),"primitive"in ze&&(Wr=Oo[ze.primitive]),"count"in ze&&(Be=ze.count|0),"type"in ze&&(Mr=xe[ze.type]),"length"in ze?qe=ze.length|0:(qe=Be,Mr===di||Mr===Cl?qe*=2:(Mr===$t||Mr===qt)&&(qe*=4))),Zr(Xe,xr,mr,Wr,Be,qe,Mr)}return ar}return ar(Ne),ar._reglType="elements",ar._elements=Xe,ar.subdata=function(ze,xr){return ke.subdata(ze,xr),ar},ar.destroy=function(){Fr(Xe)},ar}return{create:br,createStream:nr,destroyStream:lr,getElements:function(Ne){return typeof Ne=="function"&&Ne._elements instanceof Ye?Ne._elements:null},clear:function(){pr(be).forEach(Fr)}}}var Pn=new Float32Array(1),ra=new Uint32Array(Pn.buffer),wo=5123;function ol(M){for(var B=J.allocType(wo,M.length),V=0;V>>31<<15,we=(he<<1>>>24)-127,xe=he>>13&1023;if(we<-24)B[V]=be;else if(we<-14){var Ye=-14-we;B[V]=be+(xe+1024>>Ye)}else we>15?B[V]=be+31744:B[V]=be+(we+15<<10)+xe}return B}function Si(M){return Array.isArray(M)||ot(M)}var Jp=34467,An=3553,Ll=34067,Io=34069,pi=6408,rf=6406,Bo=6407,Ao=6409,Dl=6410,Ju=32854,zo=32855,us=36194,Mh=32819,$p=32820,$u=33635,Lv=34042,cs=6402,Fl=34041,Go=35904,To=35906,mi=36193,tf=33776,vs=33777,ll=33778,af=33779,Dv=35986,Qu=35987,jf=34798,Fv=35840,Rv=35841,Ku=35842,qv=35843,ec=36196,Mo=5121,nf=5123,Xf=5125,Bi=5126,of=10242,Qp=10243,Kp=10497,Zf=33071,Sh=33648,Jf=10240,e1=10241,Rl=9728,rc=9729,hs=9984,lf=9985,ds=9986,sl=9987,Eh=33170,fl=4352,r1=4353,tc=4354,t1=34046,a1=3317,n1=37440,kh=37441,$f=37443,Pv=37444,So=33984,Ch=[hs,ds,lf,sl],Ei=[0,Ao,Dl,Bo,pi],Tn={};Tn[Ao]=Tn[rf]=Tn[cs]=1,Tn[Fl]=Tn[Dl]=2,Tn[Bo]=Tn[Go]=3,Tn[pi]=Tn[To]=4;function Zi(M){return"[object "+M+"]"}var Qf=Zi("HTMLCanvasElement"),ul=Zi("OffscreenCanvas"),sf=Zi("CanvasRenderingContext2D"),ac=Zi("ImageBitmap"),Nv=Zi("HTMLImageElement"),Ov=Zi("HTMLVideoElement"),i1=Object.keys(Nt).concat([Qf,ul,sf,ac,Nv,Ov]),so=[];so[Mo]=1,so[Bi]=4,so[mi]=2,so[nf]=2,so[Xf]=4;var _a=[];_a[Ju]=2,_a[zo]=2,_a[us]=2,_a[Fl]=4,_a[tf]=.5,_a[vs]=.5,_a[ll]=1,_a[af]=1,_a[Dv]=.5,_a[Qu]=1,_a[jf]=1,_a[Fv]=.5,_a[Rv]=.25,_a[Ku]=.5,_a[qv]=.25,_a[ec]=.5;function Iv(M){return Array.isArray(M)&&(M.length===0||typeof M[0]=="number")}function Bv(M){if(!Array.isArray(M))return!1;var B=M.length;return!(B===0||!Si(M[0]))}function Ji(M){return Object.prototype.toString.call(M)}function zv(M){return Ji(M)===Qf}function Gv(M){return Ji(M)===ul}function o1(M){return Ji(M)===sf}function l1(M){return Ji(M)===ac}function s1(M){return Ji(M)===Nv}function f1(M){return Ji(M)===Ov}function Kf(M){if(!M)return!1;var B=Ji(M);return i1.indexOf(B)>=0?!0:Iv(M)||Bv(M)||et(M)}function Uv(M){return Nt[Object.prototype.toString.call(M)]|0}function u1(M,B){var V=B.length;switch(M.type){case Mo:case nf:case Xf:case Bi:var he=J.allocType(M.type,V);he.set(B),M.data=he;break;case mi:M.data=ol(B);break;default:}}function Hv(M,B){return J.allocType(M.type===mi?Bi:M.type,B)}function nc(M,B){M.type===mi?(M.data=ol(B),J.freeType(B)):M.data=B}function Lh(M,B,V,he,be,we){for(var xe=M.width,Ye=M.height,ir=M.channels,nr=xe*Ye*ir,lr=Hv(M,nr),Zr=0,Fr=0;Fr=1;)Ye+=xe*ir*ir,ir/=2;return Ye}else return xe*V*he}function Dh(M,B,V,he,be,we,xe){var Ye={"don't care":fl,"dont care":fl,nice:tc,fast:r1},ir={repeat:Kp,clamp:Zf,mirror:Sh},nr={nearest:Rl,linear:rc},lr=e({mipmap:sl,"nearest mipmap nearest":hs,"linear mipmap nearest":lf,"nearest mipmap linear":ds,"linear mipmap linear":sl},nr),Zr={none:0,browser:Pv},Fr={uint8:Mo,rgba4:Mh,rgb565:$u,"rgb5 a1":$p},br={alpha:rf,luminance:Ao,"luminance alpha":Dl,rgb:Bo,rgba:pi,rgba4:Ju,"rgb5 a1":zo,rgb565:us},Ne={};B.ext_srgb&&(br.srgb=Go,br.srgba=To),B.oes_texture_float&&(Fr.float32=Fr.float=Bi),B.oes_texture_half_float&&(Fr.float16=Fr["half float"]=mi),B.webgl_depth_texture&&(e(br,{depth:cs,"depth stencil":Fl}),e(Fr,{uint16:nf,uint32:Xf,"depth stencil":Lv})),B.webgl_compressed_texture_s3tc&&e(Ne,{"rgb s3tc dxt1":tf,"rgba s3tc dxt1":vs,"rgba s3tc dxt3":ll,"rgba s3tc dxt5":af}),B.webgl_compressed_texture_atc&&e(Ne,{"rgb atc":Dv,"rgba atc explicit alpha":Qu,"rgba atc interpolated alpha":jf}),B.webgl_compressed_texture_pvrtc&&e(Ne,{"rgb pvrtc 4bppv1":Fv,"rgb pvrtc 2bppv1":Rv,"rgba pvrtc 4bppv1":Ku,"rgba pvrtc 2bppv1":qv}),B.webgl_compressed_texture_etc1&&(Ne["rgb etc1"]=ec);var fe=Array.prototype.slice.call(M.getParameter(Jp));Object.keys(Ne).forEach(function(z){var pe=Ne[z];fe.indexOf(pe)>=0&&(br[z]=pe)});var ke=Object.keys(br);V.textureFormats=ke;var Xe=[];Object.keys(br).forEach(function(z){var pe=br[z];Xe[pe]=z});var ar=[];Object.keys(Fr).forEach(function(z){var pe=Fr[z];ar[pe]=z});var ze=[];Object.keys(nr).forEach(function(z){var pe=nr[z];ze[pe]=z});var xr=[];Object.keys(lr).forEach(function(z){var pe=lr[z];xr[pe]=z});var mr=[];Object.keys(ir).forEach(function(z){var pe=ir[z];mr[pe]=z});var Wr=ke.reduce(function(z,pe){var ge=br[pe];return ge===Ao||ge===rf||ge===Ao||ge===Dl||ge===cs||ge===Fl||B.ext_srgb&&(ge===Go||ge===To)?z[ge]=ge:ge===zo||pe.indexOf("rgba")>=0?z[ge]=pi:z[ge]=Bo,z},{});function Be(){this.internalformat=pi,this.format=pi,this.type=Mo,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Pv,this.width=0,this.height=0,this.channels=0}function qe(z,pe){z.internalformat=pe.internalformat,z.format=pe.format,z.type=pe.type,z.compressed=pe.compressed,z.premultiplyAlpha=pe.premultiplyAlpha,z.flipY=pe.flipY,z.unpackAlignment=pe.unpackAlignment,z.colorSpace=pe.colorSpace,z.width=pe.width,z.height=pe.height,z.channels=pe.channels}function Mr(z,pe){if(!(typeof pe!="object"||!pe)){if("premultiplyAlpha"in pe&&(z.premultiplyAlpha=pe.premultiplyAlpha),"flipY"in pe&&(z.flipY=pe.flipY),"alignment"in pe&&(z.unpackAlignment=pe.alignment),"colorSpace"in pe&&(z.colorSpace=Zr[pe.colorSpace]),"type"in pe){var ge=pe.type;z.type=Fr[ge]}var Nr=z.width,Dt=z.height,Ht=z.channels,Rr=!1;"shape"in pe?(Nr=pe.shape[0],Dt=pe.shape[1],pe.shape.length===3&&(Ht=pe.shape[2],Rr=!0)):("radius"in pe&&(Nr=Dt=pe.radius),"width"in pe&&(Nr=pe.width),"height"in pe&&(Dt=pe.height),"channels"in pe&&(Ht=pe.channels,Rr=!0)),z.width=Nr|0,z.height=Dt|0,z.channels=Ht|0;var N=!1;if("format"in pe){var U=pe.format,Q=z.internalformat=br[U];z.format=Wr[Q],U in Fr&&("type"in pe||(z.type=Fr[U])),U in Ne&&(z.compressed=!0),N=!0}!Rr&&N?z.channels=Tn[z.format]:Rr&&!N&&z.channels!==Ei[z.format]&&(z.format=z.internalformat=Ei[z.channels])}}function dr(z){M.pixelStorei(n1,z.flipY),M.pixelStorei(kh,z.premultiplyAlpha),M.pixelStorei($f,z.colorSpace),M.pixelStorei(a1,z.unpackAlignment)}function fr(){Be.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function ur(z,pe){var ge=null;if(Kf(pe)?ge=pe:pe&&(Mr(z,pe),"x"in pe&&(z.xOffset=pe.x|0),"y"in pe&&(z.yOffset=pe.y|0),Kf(pe.data)&&(ge=pe.data)),pe.copy){var Nr=be.viewportWidth,Dt=be.viewportHeight;z.width=z.width||Nr-z.xOffset,z.height=z.height||Dt-z.yOffset,z.needsCopy=!0}else if(!ge)z.width=z.width||1,z.height=z.height||1,z.channels=z.channels||4;else if(ot(ge))z.channels=z.channels||4,z.data=ge,!("type"in pe)&&z.type===Mo&&(z.type=Uv(ge));else if(Iv(ge))z.channels=z.channels||4,u1(z,ge),z.alignment=1,z.needsFree=!0;else if(et(ge)){var Ht=ge.data;!Array.isArray(Ht)&&z.type===Mo&&(z.type=Uv(Ht));var Rr=ge.shape,N=ge.stride,U,Q,de,Te,ue,se;Rr.length===3?(de=Rr[2],se=N[2]):(de=1,se=1),U=Rr[0],Q=Rr[1],Te=N[0],ue=N[1],z.alignment=1,z.width=U,z.height=Q,z.channels=de,z.format=z.internalformat=Ei[de],z.needsFree=!0,Lh(z,Ht,Te,ue,se,ge.offset)}else if(zv(ge)||Gv(ge)||o1(ge))zv(ge)||Gv(ge)?z.element=ge:z.element=ge.canvas,z.width=z.element.width,z.height=z.element.height,z.channels=4;else if(l1(ge))z.element=ge,z.width=ge.width,z.height=ge.height,z.channels=4;else if(s1(ge))z.element=ge,z.width=ge.naturalWidth,z.height=ge.naturalHeight,z.channels=4;else if(f1(ge))z.element=ge,z.width=ge.videoWidth,z.height=ge.videoHeight,z.channels=4;else if(Bv(ge)){var te=z.width||ge[0].length,W=z.height||ge.length,K=z.channels;Si(ge[0][0])?K=K||ge[0][0].length:K=K||1;for(var Y=Se.shape(ge),ve=1,Ce=0;Ce>=Dt,ge.height>>=Dt,ur(ge,Nr[Dt]),z.mipmask|=1<=0&&!("faces"in pe)&&(z.genMipmaps=!0)}if("mag"in pe){var Nr=pe.mag;z.magFilter=nr[Nr]}var Dt=z.wrapS,Ht=z.wrapT;if("wrap"in pe){var Rr=pe.wrap;typeof Rr=="string"?Dt=Ht=ir[Rr]:Array.isArray(Rr)&&(Dt=ir[Rr[0]],Ht=ir[Rr[1]])}else{if("wrapS"in pe){var N=pe.wrapS;Dt=ir[N]}if("wrapT"in pe){var U=pe.wrapT;Ht=ir[U]}}if(z.wrapS=Dt,z.wrapT=Ht,"anisotropic"in pe){var Q=pe.anisotropic;z.anisotropic=pe.anisotropic}if("mipmap"in pe){var de=!1;switch(typeof pe.mipmap){case"string":z.mipmapHint=Ye[pe.mipmap],z.genMipmaps=!0,de=!0;break;case"boolean":de=z.genMipmaps=pe.mipmap;break;case"object":z.genMipmaps=!1,de=!0;break;default:}de&&!("min"in pe)&&(z.minFilter=hs)}}function Za(z,pe){M.texParameteri(pe,e1,z.minFilter),M.texParameteri(pe,Jf,z.magFilter),M.texParameteri(pe,of,z.wrapS),M.texParameteri(pe,Qp,z.wrapT),B.ext_texture_filter_anisotropic&&M.texParameteri(pe,t1,z.anisotropic),z.genMipmaps&&(M.hint(Eh,z.mipmapHint),M.generateMipmap(pe))}var on=0,pa={},ma=V.maxTextureUnits,Sa=Array(ma).map(function(){return null});function Tt(z){Be.call(this),this.mipmask=0,this.internalformat=pi,this.id=on++,this.refCount=1,this.target=z,this.texture=M.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Ut,xe.profile&&(this.stats={size:0})}function qa(z){M.activeTexture(So),M.bindTexture(z.target,z.texture)}function Wt(){var z=Sa[0];z?M.bindTexture(z.target,z.texture):M.bindTexture(An,null)}function Ja(z){var pe=z.texture,ge=z.unit,Nr=z.target;ge>=0&&(M.activeTexture(So+ge),M.bindTexture(Nr,null),Sa[ge]=null),M.deleteTexture(pe),z.texture=null,z.params=null,z.pixels=null,z.refCount=0,delete pa[z.id],we.textureCount--}e(Tt.prototype,{bind:function(){var z=this;z.bindCount+=1;var pe=z.unit;if(pe<0){for(var ge=0;ge0)continue;Nr.unit=-1}Sa[ge]=z,pe=ge;break}pe>=ma,xe.profile&&we.maxTextureUnits>ue)-de,se.height=se.height||(ge.height>>ue)-Te,qa(ge),jr(se,An,de,Te,ue),Wt(),kr(se),Nr}function Ht(Rr,N){var U=Rr|0,Q=N|0||U;if(U===ge.width&&Q===ge.height)return Nr;Nr.width=ge.width=U,Nr.height=ge.height=Q,qa(ge);for(var de=0;ge.mipmask>>de;++de){var Te=U>>de,ue=Q>>de;if(!Te||!ue)break;M.texImage2D(An,de,ge.format,Te,ue,0,ge.format,ge.type,null)}return Wt(),xe.profile&&(ge.stats.size=ql(ge.internalformat,ge.type,U,Q,!1,!1)),Nr}return Nr(z,pe),Nr.subimage=Dt,Nr.resize=Ht,Nr._reglType="texture2d",Nr._texture=ge,xe.profile&&(Nr.stats=ge.stats),Nr.destroy=function(){ge.decRef()},Nr}function sn(z,pe,ge,Nr,Dt,Ht){var Rr=new Tt(Ll);pa[Rr.id]=Rr,we.cubeCount++;var N=new Array(6);function U(Te,ue,se,te,W,K){var Y,ve=Rr.texInfo;for(Ut.call(ve),Y=0;Y<6;++Y)N[Y]=Lt();if(typeof Te=="number"||!Te){var Ce=Te|0||1;for(Y=0;Y<6;++Y)ft(N[Y],Ce,Ce)}else if(typeof Te=="object")if(ue)St(N[0],Te),St(N[1],ue),St(N[2],se),St(N[3],te),St(N[4],W),St(N[5],K);else if(Ya(ve,Te),Mr(Rr,Te),"faces"in Te){var $e=Te.faces;for(Y=0;Y<6;++Y)qe(N[Y],Rr),St(N[Y],$e[Y])}else for(Y=0;Y<6;++Y)St(N[Y],Te);for(qe(Rr,N[0]),ve.genMipmaps?Rr.mipmask=(N[0].width<<1)-1:Rr.mipmask=N[0].mipmask,Rr.internalformat=N[0].internalformat,U.width=N[0].width,U.height=N[0].height,qa(Rr),Y=0;Y<6;++Y)aa(N[Y],Io+Y);for(Za(ve,Ll),Wt(),xe.profile&&(Rr.stats.size=ql(Rr.internalformat,Rr.type,U.width,U.height,ve.genMipmaps,!0)),U.format=Xe[Rr.internalformat],U.type=ar[Rr.type],U.mag=ze[ve.magFilter],U.min=xr[ve.minFilter],U.wrapS=mr[ve.wrapS],U.wrapT=mr[ve.wrapT],Y=0;Y<6;++Y)nn(N[Y]);return U}function Q(Te,ue,se,te,W){var K=se|0,Y=te|0,ve=W|0,Ce=gr();return qe(Ce,Rr),Ce.width=0,Ce.height=0,ur(Ce,ue),Ce.width=Ce.width||(Rr.width>>ve)-K,Ce.height=Ce.height||(Rr.height>>ve)-Y,qa(Rr),jr(Ce,Io+Te,K,Y,ve),Wt(),kr(Ce),U}function de(Te){var ue=Te|0;if(ue!==Rr.width){U.width=Rr.width=ue,U.height=Rr.height=ue,qa(Rr);for(var se=0;se<6;++se)for(var te=0;Rr.mipmask>>te;++te)M.texImage2D(Io+se,te,Rr.format,ue>>te,ue>>te,0,Rr.format,Rr.type,null);return Wt(),xe.profile&&(Rr.stats.size=ql(Rr.internalformat,Rr.type,U.width,U.height,!1,!0)),U}}return U(z,pe,ge,Nr,Dt,Ht),U.subimage=Q,U.resize=de,U._reglType="textureCube",U._texture=Rr,xe.profile&&(U.stats=Rr.stats),U.destroy=function(){Rr.decRef()},U}function pt(){for(var z=0;z>Nr,ge.height>>Nr,0,ge.internalformat,ge.type,null);else for(var Dt=0;Dt<6;++Dt)M.texImage2D(Io+Dt,Nr,ge.internalformat,ge.width>>Nr,ge.height>>Nr,0,ge.internalformat,ge.type,null);Za(ge.texInfo,ge.target)})}function Qt(){for(var z=0;z=0?nn=!0:ir.indexOf(Ut)>=0&&(nn=!1))),("depthTexture"in Tt||"depthStencilTexture"in Tt)&&(Sa=!!(Tt.depthTexture||Tt.depthStencilTexture)),"depth"in Tt&&(typeof Tt.depth=="boolean"?aa=Tt.depth:(on=Tt.depth,Ma=!1)),"stencil"in Tt&&(typeof Tt.stencil=="boolean"?Ma=Tt.stencil:(pa=Tt.stencil,aa=!1)),"depthStencil"in Tt&&(typeof Tt.depthStencil=="boolean"?aa=Ma=Tt.depthStencil:(ma=Tt.depthStencil,aa=!1,Ma=!1))}var Wt=null,Ja=null,ln=null,sn=null;if(Array.isArray(Lt))Wt=Lt.map(Ne);else if(Lt)Wt=[Ne(Lt)];else for(Wt=new Array(Za),st=0;st0&&(kr.depth=ur[0].depth,kr.stencil=ur[0].stencil,kr.depthStencil=ur[0].depthStencil),ur[gr]?ur[gr](kr):ur[gr]=qe(kr)}return e(Sr,{width:st,height:st,color:Ut})}function jr(ut){var gr,kr=ut|0;if(kr===Sr.width)return Sr;var st=Sr.color;for(gr=0;gr=st.byteLength?ft.subdata(st):(ft.destroy(),qe.buffers[ut]=null)),qe.buffers[ut]||(ft=qe.buffers[ut]=be.create(gr,r0,!1,!0)),kr.buffer=be.getBuffer(ft),kr.size=kr.buffer.dimension|0,kr.normalized=!1,kr.type=kr.buffer.dtype,kr.offset=0,kr.stride=0,kr.divisor=0,kr.state=1,Sr[ut]=1}else be.getBuffer(gr)?(kr.buffer=be.getBuffer(gr),kr.size=kr.buffer.dimension|0,kr.normalized=!1,kr.type=kr.buffer.dtype,kr.offset=0,kr.stride=0,kr.divisor=0,kr.state=1):be.getBuffer(gr.buffer)?(kr.buffer=be.getBuffer(gr.buffer),kr.size=(+gr.size||kr.buffer.dimension)|0,kr.normalized=!!gr.normalized||!1,"type"in gr?kr.type=vn[gr.type]:kr.type=kr.buffer.dtype,kr.offset=(gr.offset||0)|0,kr.stride=(gr.stride||0)|0,kr.divisor=(gr.divisor||0)|0,kr.state=1):"x"in gr&&(kr.x=+gr.x||0,kr.y=+gr.y||0,kr.z=+gr.z||0,kr.w=+gr.w||0,kr.state=2)}for(var St=0;St1)for(var dr=0;drfe&&(fe=ke.stats.uniformsCount)}),fe},V.getMaxAttributesCount=function(){var fe=0;return lr.forEach(function(ke){ke.stats.attributesCount>fe&&(fe=ke.stats.attributesCount)}),fe});function Ne(){be={},we={};for(var fe=0;fe16&&(V=cl(V,M.length*8));for(var he=Array(16),be=Array(16),we=0;we<16;we++)he[we]=V[we]^909522486,be[we]=V[we]^1549556828;var xe=cl(he.concat(au(B)),512+B.length*8);return i0(cl(be.concat(xe),768))}function Nh(M){for(var B=qh?"0123456789ABCDEF":"0123456789abcdef",V="",he,be=0;be>>4&15)+B.charAt(he&15);return V}function T1(M){for(var B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V="",he=M.length,be=0;beM.length*8?V+=w1:V+=B.charAt(we>>>6*(3-xe)&63);return V}function M1(M,B){var V=B.length,he=Array(),be,we,xe,Ye,ir=Array(Math.ceil(M.length/2));for(be=0;be0;){for(Ye=Array(),xe=0,be=0;be0||we>0)&&(Ye[Ye.length]=we);he[he.length]=xe,ir=Ye}var nr="";for(be=he.length-1;be>=0;be--)nr+=B.charAt(he[be]);var lr=Math.ceil(M.length*8/(Math.log(B.length)/Math.log(2)));for(be=nr.length;be>>6&31,128|he&63):he<=65535?B+=String.fromCharCode(224|he>>>12&15,128|he>>>6&63,128|he&63):he<=2097151&&(B+=String.fromCharCode(240|he>>>18&7,128|he>>>12&63,128|he>>>6&63,128|he&63));return B}function au(M){for(var B=Array(M.length>>2),V=0;V>5]|=(M.charCodeAt(V/8)&255)<<24-V%32;return B}function i0(M){for(var B="",V=0;V>5]>>>24-V%32&255);return B}function Bn(M,B){return M>>>B|M<<32-B}function o0(M,B){return M>>>B}function Oh(M,B,V){return M&B^~M&V}function Ih(M,B,V){return M&B^M&V^B&V}function l0(M){return Bn(M,2)^Bn(M,13)^Bn(M,22)}function Bh(M){return Bn(M,6)^Bn(M,11)^Bn(M,25)}function sc(M){return Bn(M,7)^Bn(M,18)^o0(M,3)}function fc(M){return Bn(M,17)^Bn(M,19)^o0(M,10)}var E1=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function cl(M,B){var V=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),he=new Array(64),be,we,xe,Ye,ir,nr,lr,Zr,Fr,br,Ne,fe;for(M[B>>5]|=128<<24-B%32,M[(B+64>>9<<4)+15]=B,Fr=0;Fr>16)+(B>>16)+(V>>16);return he<<16|V&65535}function ko(M){return Array.prototype.slice.call(M)}function Co(M){return ko(M).join("")}function zh(M){var B=M&&M.cache,V=0,he=[],be=[],we=[];function xe(Ne,fe){var ke=fe&&fe.stable;if(!ke){for(var Xe=0;Xe0&&(Ne.push(ar,"="),Ne.push.apply(Ne,ko(arguments)),Ne.push(";")),ar}return e(fe,{def:Xe,toString:function(){return Co([ke.length>0?"var "+ke.join(",")+";":"",Co(Ne)])}})}function ir(){var Ne=Ye(),fe=Ye(),ke=Ne.toString,Xe=fe.toString;function ar(ze,xr){fe(ze,xr,"=",Ne.def(ze,xr),";")}return e(function(){Ne.apply(Ne,ko(arguments))},{def:Ne.def,entry:Ne,exit:fe,save:ar,set:function(ze,xr,mr){ar(ze,xr),Ne(ze,xr,"=",mr,";")},toString:function(){return ke()+Xe()}})}function nr(){var Ne=Co(arguments),fe=ir(),ke=ir(),Xe=fe.toString,ar=ke.toString;return e(fe,{then:function(){return fe.apply(fe,ko(arguments)),this},else:function(){return ke.apply(ke,ko(arguments)),this},toString:function(){var ze=ar();return ze&&(ze="else{"+ze+"}"),Co(["if(",Ne,"){",Xe(),"}",ze])}})}var lr=Ye(),Zr={};function Fr(Ne,fe){var ke=[];function Xe(){var Wr="a"+ke.length;return ke.push(Wr),Wr}fe=fe||0;for(var ar=0;ar":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Re={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ge={cw:w,ccw:C};function er(M){return Array.isArray(M)||it(M)||st(M)}function tr(M){return M.sort(function(B,V){return B===oi?-1:V===oi?1:B=1,he>=2,B)}else if(V===_s){var be=M.data;return new Le(be.thisDep,be.contextDep,be.propDep,B)}else{if(V===vc)return new Le(!1,!1,!1,B);if(V===vf){for(var Ae=!1,xe=!1,Ve=!1,ir=0;ir=1&&(xe=!0),or>=2&&(Ve=!0)}else nr.type===_s&&(Ae=Ae||nr.data.thisDep,xe=xe||nr.data.contextDep,Ve=Ve||nr.data.propDep)}return new Le(Ae,xe,Ve,B)}else return new Le(V===cf,V===cc,V===uf,B)}}var gt=new Le(!1,!1,!1,function(){});function kt(M,B,V,he,be,Ae,xe,Ve,ir,nr,or,Qr,Fr,xr,Pe,fe){var ke=nr.Record,Ze={add:32774,subtract:32778,"reverse subtract":32779};V.ext_blend_minmax&&(Ze.min=L,Ze.max=D);var ar=V.angle_instanced_arrays,Be=V.webgl_draw_buffers,_r=V.oes_vertex_array_object,pr={dirty:!0,profile:fe.profile},Zr={},Oe=[],qe={},Sr={};function hr(N){return N.replace(".","_")}function sr(N,U,Q){var de=hr(N);Oe.push(N),Zr[de]=pr[de]=!!Q,qe[de]=U}function cr(N,U,Q){var de=hr(N);Oe.push(N),Array.isArray(Q)?(pr[de]=Q.slice(),Zr[de]=Q.slice()):pr[de]=Zr[de]=Q,Sr[de]=U}function Er(N){return!!isNaN(N)}sr(hc,Dp),sr(s0,Lp),cr(f0,"blendColor",[0,0,0,0]),cr(iu,"blendEquationSeparate",[ie,ie]),cr(ou,"blendFuncSeparate",[ne,j,ne,j]),sr(dc,Uh,!0),cr(pc,"depthFunc",me),cr(mc,"depthRange",[0,1]),cr(yc,"depthMask",!0),cr(lu,lu,[!0,!0,!0,!0]),sr(hf,Gh),cr(u0,"cullFace",y),cr(su,su,C),cr(df,df,1),sr(gc,wc),cr(fu,"polygonOffset",[0,0]),sr(pf,Vh),sr(mf,Ac),cr(yf,"sampleCoverage",[1,!1]),sr(bc,Fp),cr(uu,"stencilMask",-1),cr(ki,"stencilFunc",[G,0,-1]),cr(gf,"stencilOpSeparate",[h,q,q,q]),cr(vl,"stencilOpSeparate",[y,q,q,q]),sr(cu,Hh),cr(hl,"scissor",[0,0,M.drawingBufferWidth,M.drawingBufferHeight]),cr(oi,oi,[0,0,M.drawingBufferWidth,M.drawingBufferHeight]);var Jr={gl:M,context:Fr,strings:B,next:Zr,current:pr,draw:Qr,elements:Ae,buffer:be,shader:or,attributes:nr.state,vao:nr,uniforms:ir,framebuffer:Ve,extensions:V,timer:xr,isBufferArgs:er},ct={primTypes:Oo,compareFuncs:Me,blendFuncs:Ke,blendEquations:Ze,stencilOps:Re,glTypes:Tn,orientationType:Ge};Be&&(ct.backBuffer=[y],ct.drawBuffer=k(he.maxDrawbuffers,function(N){return N===0?[0]:k(N,function(U){return We+U})}));var gr=0;function Cr(){var N=Bh({cache:Pe}),U=N.link,Q=N.global;N.id=gr++,N.batchId="0";var de=U(Jr),Te=N.shared={props:"a0"};Object.keys(Jr).forEach(function(K){Te[K]=Q.def(de,".",K)});var ue=N.next={},se=N.current={};Object.keys(Sr).forEach(function(K){Array.isArray(pr[K])&&(ue[K]=Q.def(Te.next,".",K),se[K]=Q.def(Te.current,".",K))});var re=N.constants={};Object.keys(ct).forEach(function(K){re[K]=Q.def(JSON.stringify(ct[K]))}),N.invoke=function(K,Y){switch(Y.type){case nu:var ve=["this",Te.context,Te.props,N.batchId];return K.def(U(Y.data),".call(",ve.slice(0,Math.max(Y.data.length+1,4)),")");case uf:return K.def(Te.props,Y.data);case cc:return K.def(Te.context,Y.data);case cf:return K.def("this",Y.data);case _s:return Y.data.append(N,K),Y.data.ref;case vc:return Y.data.toString();case vf:return Y.data.map(function(Ce){return N.invoke(K,Ce)})}},N.attribCache={};var W={};return N.scopeAttrib=function(K){var Y=B.id(K);if(Y in W)return W[Y];var ve=nr.scope[Y];ve||(ve=nr.scope[Y]=new ke);var Ce=W[Y]=U(ve);return Ce},N}function ft(N){var U=N.static,Q=N.dynamic,de;if(ws in U){var Te=!!U[ws];de=zr(function(se,re){return Te}),de.enable=Te}else if(ws in Q){var ue=Q[ws];de=nt(ue,function(se,re){return se.invoke(re,ue)})}return de}function ut(N,U){var Q=N.static,de=N.dynamic;if(Lo in Q){var Te=Q[Lo];return Te?(Te=Ve.getFramebuffer(Te),zr(function(se,re){var W=se.link(Te),K=se.shared;re.set(K.framebuffer,".next",W);var Y=K.context;return re.set(Y,"."+$i,W+".width"),re.set(Y,"."+Qi,W+".height"),W})):zr(function(se,re){var W=se.shared;re.set(W.framebuffer,".next","null");var K=W.context;return re.set(K,"."+$i,K+"."+xc),re.set(K,"."+Qi,K+"."+_c),"null"})}else if(Lo in de){var ue=de[Lo];return nt(ue,function(se,re){var W=se.invoke(re,ue),K=se.shared,Y=K.framebuffer,ve=re.def(Y,".getFramebuffer(",W,")");re.set(Y,".next",ve);var Ce=K.context;return re.set(Ce,"."+$i,ve+"?"+ve+".width:"+Ce+"."+xc),re.set(Ce,"."+Qi,ve+"?"+ve+".height:"+Ce+"."+_c),ve})}else return null}function St(N,U,Q){var de=N.static,Te=N.dynamic;function ue(W){if(W in de){var K=de[W],Y=!0,ve=K.x|0,Ce=K.y|0,Je,et;return"width"in K?Je=K.width|0:Y=!1,"height"in K?et=K.height|0:Y=!1,new Le(!Y&&U&&U.thisDep,!Y&&U&&U.contextDep,!Y&&U&&U.propDep,function($r,Gr){var Br=$r.shared.context,Tr=Je;"width"in K||(Tr=Gr.def(Br,".",$i,"-",ve));var qr=et;return"height"in K||(qr=Gr.def(Br,".",Qi,"-",Ce)),[ve,Ce,Tr,qr]})}else if(W in Te){var kr=Te[W],Ar=nt(kr,function($r,Gr){var Br=$r.invoke(Gr,kr),Tr=$r.shared.context,qr=Gr.def(Br,".x|0"),Ir=Gr.def(Br,".y|0"),vt=Gr.def('"width" in ',Br,"?",Br,".width|0:","(",Tr,".",$i,"-",qr,")"),Kt=Gr.def('"height" in ',Br,"?",Br,".height|0:","(",Tr,".",Qi,"-",Ir,")");return[qr,Ir,vt,Kt]});return U&&(Ar.thisDep=Ar.thisDep||U.thisDep,Ar.contextDep=Ar.contextDep||U.contextDep,Ar.propDep=Ar.propDep||U.propDep),Ar}else return U?new Le(U.thisDep,U.contextDep,U.propDep,function($r,Gr){var Br=$r.shared.context;return[0,0,Gr.def(Br,".",$i),Gr.def(Br,".",Qi)]}):null}var se=ue(oi);if(se){var re=se;se=new Le(se.thisDep,se.contextDep,se.propDep,function(W,K){var Y=re.append(W,K),ve=W.shared.context;return K.set(ve,"."+kp,Y[2]),K.set(ve,"."+Cp,Y[3]),Y})}return{viewport:se,scissor_box:ue(hl)}}function ta(N,U){var Q=N.static,de=typeof Q[dl]=="string"&&typeof Q[Ho]=="string";if(de){if(Object.keys(U.dynamic).length>0)return null;var Te=U.static,ue=Object.keys(Te);if(ue.length>0&&typeof Te[ue[0]]=="number"){for(var se=[],re=0;re"+qr+"?"+Y+".constant["+qr+"]:0;"}).join(""),"}}else{","if(",Je,"(",Y,".buffer)){",$r,"=",et,".createStream(",vo,",",Y,".buffer);","}else{",$r,"=",et,".getBuffer(",Y,".buffer);","}",Gr,'="type" in ',Y,"?",Ce.glTypes,"[",Y,".type]:",$r,".dtype;",kr.normalized,"=!!",Y,".normalized;");function Br(Tr){K(kr[Tr],"=",Y,".",Tr,"|0;")}return Br("size"),Br("offset"),Br("stride"),Br("divisor"),K("}}"),K.exit("if(",kr.isStream,"){",et,".destroyStream(",$r,");","}"),kr}Te[ue]=nt(se,re)}),Te}function Xa(N){var U=N.static,Q=N.dynamic,de={};return Object.keys(U).forEach(function(Te){var ue=U[Te];de[Te]=zr(function(se,re){return typeof ue=="number"||typeof ue=="boolean"?""+ue:se.link(ue)})}),Object.keys(Q).forEach(function(Te){var ue=Q[Te];de[Te]=nt(ue,function(se,re){return se.invoke(re,ue)})}),de}function nn(N,U,Q,de,Te){var ue=N.static,se=N.dynamic,re=ta(N,U),W=ut(N,Te),K=St(N,W,Te),Y=Lt(N,Te),ve=an(N,Te),Ce=Sa(N,Te,re);function Je(Br){var Tr=K[Br];Tr&&(ve[Br]=Tr)}Je(oi),Je(hr(hl));var et=Object.keys(ve).length>0,kr={framebuffer:W,draw:Y,shader:Ce,state:ve,dirty:et,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(kr.profile=ft(N,Te),kr.uniforms=Ut(Q,Te),kr.drawVAO=kr.scopeVAO=Y.vao,!kr.drawVAO&&Ce.program&&!re&&V.angle_instanced_arrays&&Y.static.elements){var Ar=!0,$r=Ce.program.attributes.map(function(Br){var Tr=U.static[Br];return Ar=Ar&&!!Tr,Tr});if(Ar&&$r.length>0){var Gr=nr.getVAO(nr.createVAO({attributes:$r,elements:Y.static.elements}));kr.drawVAO=new Le(null,null,null,function(Br,Tr){return Br.link(Gr)}),kr.useVAO=!0}}return re?kr.useVAO=!0:kr.attributes=Ya(U,Te),kr.context=Xa(de,Te),kr}function ma(N,U,Q){var de=N.shared,Te=de.context,ue=N.scope();Object.keys(Q).forEach(function(se){U.save(Te,"."+se);var re=Q[se],W=re.append(N,U);Array.isArray(W)?ue(Te,".",se,"=[",W.join(),"];"):ue(Te,".",se,"=",W,";")}),U(ue)}function ya(N,U,Q,de){var Te=N.shared,ue=Te.gl,se=Te.framebuffer,re;Be&&(re=U.def(Te.extensions,".webgl_draw_buffers"));var W=N.constants,K=W.drawBuffer,Y=W.backBuffer,ve;Q?ve=Q.append(N,U):ve=U.def(se,".next"),de||U("if(",ve,"!==",se,".cur){"),U("if(",ve,"){",ue,".bindFramebuffer(",ye,",",ve,".framebuffer);"),Be&&U(re,".drawBuffersWEBGL(",K,"[",ve,".colorAttachments.length]);"),U("}else{",ue,".bindFramebuffer(",ye,",null);"),Be&&U(re,".drawBuffersWEBGL(",Y,");"),U("}",se,".cur=",ve,";"),de||U("}")}function Ea(N,U,Q){var de=N.shared,Te=de.gl,ue=N.current,se=N.next,re=de.current,W=de.next,K=N.cond(re,".dirty");Oe.forEach(function(Y){var ve=hr(Y);if(!(ve in Q.state)){var Ce,Je;if(ve in se){Ce=se[ve],Je=ue[ve];var et=k(pr[ve].length,function(Ar){return K.def(Ce,"[",Ar,"]")});K(N.cond(et.map(function(Ar,$r){return Ar+"!=="+Je+"["+$r+"]"}).join("||")).then(Te,".",Sr[ve],"(",et,");",et.map(function(Ar,$r){return Je+"["+$r+"]="+Ar}).join(";"),";"))}else{Ce=K.def(W,".",ve);var kr=N.cond(Ce,"!==",re,".",ve);K(kr),ve in qe?kr(N.cond(Ce).then(Te,".enable(",qe[ve],");").else(Te,".disable(",qe[ve],");"),re,".",ve,"=",Ce,";"):kr(Te,".",Sr[ve],"(",Ce,");",re,".",ve,"=",Ce,";")}}}),Object.keys(Q.state).length===0&&K(re,".dirty=false;"),U(K)}function wt(N,U,Q,de){var Te=N.shared,ue=N.current,se=Te.current,re=Te.gl,W;tr(Object.keys(Q)).forEach(function(K){var Y=Q[K];if(!(de&&!de(Y))){var ve=Y.append(N,U);if(qe[K]){var Ce=qe[K];Dr(Y)?(W=N.link(ve,{stable:!0}),U(N.cond(W).then(re,".enable(",Ce,");").else(re,".disable(",Ce,");")),U(se,".",K,"=",W,";")):(U(N.cond(ve).then(re,".enable(",Ce,");").else(re,".disable(",Ce,");")),U(se,".",K,"=",ve,";"))}else if(Mi(ve)){var Je=ue[K];U(re,".",Sr[K],"(",ve,");",ve.map(function(et,kr){return Je+"["+kr+"]="+et}).join(";"),";")}else Dr(Y)?(W=N.link(ve,{stable:!0}),U(re,".",Sr[K],"(",W,");",se,".",K,"=",W,";")):U(re,".",Sr[K],"(",ve,");",se,".",K,"=",ve,";")}})}function qa(N,U){ar&&(N.instancing=U.def(N.shared.extensions,".angle_instanced_arrays"))}function Wt(N,U,Q,de,Te){var ue=N.shared,se=N.stats,re=ue.current,W=ue.timer,K=Q.profile;function Y(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var ve,Ce;function Je(Br){ve=U.def(),Br(ve,"=",Y(),";"),typeof Te=="string"?Br(se,".count+=",Te,";"):Br(se,".count++;"),xr&&(de?(Ce=U.def(),Br(Ce,"=",W,".getNumPendingQueries();")):Br(W,".beginQuery(",se,");"))}function et(Br){Br(se,".cpuTime+=",Y(),"-",ve,";"),xr&&(de?Br(W,".pushScopeStats(",Ce,",",W,".getNumPendingQueries(),",se,");"):Br(W,".endQuery();"))}function kr(Br){var Tr=U.def(re,".profile");U(re,".profile=",Br,";"),U.exit(re,".profile=",Tr,";")}var Ar;if(K){if(Dr(K)){K.enable?(Je(U),et(U.exit),kr("true")):kr("false");return}Ar=K.append(N,U),kr(Ar)}else Ar=U.def(re,".profile");var $r=N.block();Je($r),U("if(",Ar,"){",$r,"}");var Gr=N.block();et(Gr),U.exit("if(",Ar,"){",Gr,"}")}function Za(N,U,Q,de,Te){var ue=N.shared;function se(W){switch(W){case pl:case Ol:case Il:return 2;case tn:case As:case _f:return 3;case xf:case du:case mu:return 4;default:return 1}}function re(W,K,Y){var ve=ue.gl,Ce=U.def(W,".location"),Je=U.def(ue.attributes,"[",Ce,"]"),et=Y.state,kr=Y.buffer,Ar=[Y.x,Y.y,Y.z,Y.w],$r=["buffer","normalized","offset","stride"];function Gr(){U("if(!",Je,".buffer){",ve,".enableVertexAttribArray(",Ce,");}");var Tr=Y.type,qr;if(Y.size?qr=U.def(Y.size,"||",K):qr=K,U("if(",Je,".type!==",Tr,"||",Je,".size!==",qr,"||",$r.map(function(vt){return Je+"."+vt+"!=="+Y[vt]}).join("||"),"){",ve,".bindBuffer(",vo,",",kr,".buffer);",ve,".vertexAttribPointer(",[Ce,qr,Tr,Y.normalized,Y.stride,Y.offset],");",Je,".type=",Tr,";",Je,".size=",qr,";",$r.map(function(vt){return Je+"."+vt+"="+Y[vt]+";"}).join(""),"}"),ar){var Ir=Y.divisor;U("if(",Je,".divisor!==",Ir,"){",N.instancing,".vertexAttribDivisorANGLE(",[Ce,Ir],");",Je,".divisor=",Ir,";}")}}function Br(){U("if(",Je,".buffer){",ve,".disableVertexAttribArray(",Ce,");",Je,".buffer=null;","}if(",fo.map(function(Tr,qr){return Je+"."+Tr+"!=="+Ar[qr]}).join("||"),"){",ve,".vertexAttrib4f(",Ce,",",Ar,");",fo.map(function(Tr,qr){return Je+"."+Tr+"="+Ar[qr]+";"}).join(""),"}")}et===Ji?Gr():et===xs?Br():(U("if(",et,"===",Ji,"){"),Gr(),U("}else{"),Br(),U("}"))}de.forEach(function(W){var K=W.name,Y=Q.attributes[K],ve;if(Y){if(!Te(Y))return;ve=Y.append(N,U)}else{if(!Te(gt))return;var Ce=N.scopeAttrib(K);ve={},Object.keys(new ke).forEach(function(Je){ve[Je]=U.def(Ce,".",Je)})}re(N.link(W),se(W.info.type),ve)})}function on(N,U,Q,de,Te,ue){for(var se=N.shared,re=se.gl,W,K=0;K1){for(var sn=[],Li=[],Ki=0;Ki>1)",kr],");")}function Ir(){Q(Ar,".drawArraysInstancedANGLE(",[Ce,Je,et,kr],");")}Y&&Y!=="null"?Gr?qr():(Q("if(",Y,"){"),qr(),Q("}else{"),Ir(),Q("}")):Ir()}function Tr(){function qr(){Q(ue+".drawElements("+[Ce,et,$r,Je+"<<(("+$r+"-"+uc+")>>1)"]+");")}function Ir(){Q(ue+".drawArrays("+[Ce,Je,et]+");")}Y&&Y!=="null"?Gr?qr():(Q("if(",Y,"){"),qr(),Q("}else{"),Ir(),Q("}")):Ir()}ar&&(typeof kr!="number"||kr>=0)?typeof kr=="string"?(Q("if(",kr,">0){"),Br(),Q("}else if(",kr,"<0){"),Tr(),Q("}")):Br():Tr()}function mt(N,U,Q,de,Te){var ue=Cr(),se=ue.proc("body",Te);return ar&&(ue.instancing=se.def(ue.shared.extensions,".angle_instanced_arrays")),N(ue,se,Q,de),ue.compile().body}function Rt(N,U,Q,de){qa(N,U),Q.useVAO?Q.drawVAO?U(N.shared.vao,".setVAO(",Q.drawVAO.append(N,U),");"):U(N.shared.vao,".setVAO(",N.shared.vao,".targetVAO);"):(U(N.shared.vao,".setVAO(null);"),Za(N,U,Q,de.attributes,function(){return!0})),on(N,U,Q,de.uniforms,function(){return!0},!1),ln(N,U,U,Q)}function Qt(N,U){var Q=N.proc("draw",1);qa(N,Q),ma(N,Q,U.context),ya(N,Q,U.framebuffer),Ea(N,Q,U),wt(N,Q,U.state),Wt(N,Q,U,!1,!0);var de=U.shader.progVar.append(N,Q);if(Q(N.shared.gl,".useProgram(",de,".program);"),U.shader.program)Rt(N,Q,U,U.shader.program);else{Q(N.shared.vao,".setVAO(null);");var Te=N.global.def("{}"),ue=Q.def(de,".id"),se=Q.def(Te,"[",ue,"]");Q(N.cond(se).then(se,".call(this,a0);").else(se,"=",Te,"[",ue,"]=",N.link(function(re){return mt(Rt,N,U,re,1)}),"(",de,");",se,".call(this,a0);"))}Object.keys(U.state).length>0&&Q(N.shared.current,".dirty=true;"),N.shared.vao&&Q(N.shared.vao,".setVAO(null);")}function z(N,U,Q,de){N.batchId="a1",qa(N,U);function Te(){return!0}Za(N,U,Q,de.attributes,Te),on(N,U,Q,de.uniforms,Te,!1),ln(N,U,U,Q)}function pe(N,U,Q,de){qa(N,U);var Te=Q.contextDep,ue=U.def(),se="a0",re="a1",W=U.def();N.shared.props=W,N.batchId=ue;var K=N.scope(),Y=N.scope();U(K.entry,"for(",ue,"=0;",ue,"<",re,";++",ue,"){",W,"=",se,"[",ue,"];",Y,"}",K.exit);function ve($r){return $r.contextDep&&Te||$r.propDep}function Ce($r){return!ve($r)}if(Q.needsContext&&ma(N,Y,Q.context),Q.needsFramebuffer&&ya(N,Y,Q.framebuffer),wt(N,Y,Q.state,ve),Q.profile&&ve(Q.profile)&&Wt(N,Y,Q,!1,!0),de)Q.useVAO?Q.drawVAO?ve(Q.drawVAO)?Y(N.shared.vao,".setVAO(",Q.drawVAO.append(N,Y),");"):K(N.shared.vao,".setVAO(",Q.drawVAO.append(N,K),");"):K(N.shared.vao,".setVAO(",N.shared.vao,".targetVAO);"):(K(N.shared.vao,".setVAO(null);"),Za(N,K,Q,de.attributes,Ce),Za(N,Y,Q,de.attributes,ve)),on(N,K,Q,de.uniforms,Ce,!1),on(N,Y,Q,de.uniforms,ve,!0),ln(N,K,Y,Q);else{var Je=N.global.def("{}"),et=Q.shader.progVar.append(N,Y),kr=Y.def(et,".id"),Ar=Y.def(Je,"[",kr,"]");Y(N.shared.gl,".useProgram(",et,".program);","if(!",Ar,"){",Ar,"=",Je,"[",kr,"]=",N.link(function($r){return mt(z,N,Q,$r,2)}),"(",et,");}",Ar,".call(this,a0[",ue,"],",ue,");")}}function ge(N,U){var Q=N.proc("batch",2);N.batchId="0",qa(N,Q);var de=!1,Te=!0;Object.keys(U.context).forEach(function(Je){de=de||U.context[Je].propDep}),de||(ma(N,Q,U.context),Te=!1);var ue=U.framebuffer,se=!1;ue?(ue.propDep?de=se=!0:ue.contextDep&&de&&(se=!0),se||ya(N,Q,ue)):ya(N,Q,null),U.state.viewport&&U.state.viewport.propDep&&(de=!0);function re(Je){return Je.contextDep&&de||Je.propDep}Ea(N,Q,U),wt(N,Q,U.state,function(Je){return!re(Je)}),(!U.profile||!re(U.profile))&&Wt(N,Q,U,!1,"a1"),U.contextDep=de,U.needsContext=Te,U.needsFramebuffer=se;var W=U.shader.progVar;if(W.contextDep&&de||W.propDep)pe(N,Q,U,null);else{var K=W.append(N,Q);if(Q(N.shared.gl,".useProgram(",K,".program);"),U.shader.program)pe(N,Q,U,U.shader.program);else{Q(N.shared.vao,".setVAO(null);");var Y=N.global.def("{}"),ve=Q.def(K,".id"),Ce=Q.def(Y,"[",ve,"]");Q(N.cond(Ce).then(Ce,".call(this,a0,a1);").else(Ce,"=",Y,"[",ve,"]=",N.link(function(Je){return mt(pe,N,U,Je,2)}),"(",K,");",Ce,".call(this,a0,a1);"))}}Object.keys(U.state).length>0&&Q(N.shared.current,".dirty=true;"),N.shared.vao&&Q(N.shared.vao,".setVAO(null);")}function Nr(N,U){var Q=N.proc("scope",3);N.batchId="a2";var de=N.shared,Te=de.current;if(ma(N,Q,U.context),U.framebuffer&&U.framebuffer.append(N,Q),tr(Object.keys(U.state)).forEach(function(re){var W=U.state[re],K=W.append(N,Q);Mi(K)?K.forEach(function(Y,ve){Er(Y)?Q.set(N.next[re],"["+ve+"]",Y):Q.set(N.next[re],"["+ve+"]",N.link(Y,{stable:!0}))}):Dr(W)?Q.set(de.next,"."+re,N.link(K,{stable:!0})):Q.set(de.next,"."+re,K)}),Wt(N,Q,U,!0,!0),[uo,vu,Fo,mi,Do].forEach(function(re){var W=U.draw[re];if(W){var K=W.append(N,Q);Er(K)?Q.set(de.draw,"."+re,K):Q.set(de.draw,"."+re,N.link(K),{stable:!0})}}),Object.keys(U.uniforms).forEach(function(re){var W=U.uniforms[re].append(N,Q);Array.isArray(W)&&(W="["+W.map(function(K){return Er(K)?K:N.link(K,{stable:!0})})+"]"),Q.set(de.uniforms,"["+N.link(B.id(re),{stable:!0})+"]",W)}),Object.keys(U.attributes).forEach(function(re){var W=U.attributes[re].append(N,Q),K=N.scopeAttrib(re);Object.keys(new ke).forEach(function(Y){Q.set(K,"."+Y,W[Y])})}),U.scopeVAO){var ue=U.scopeVAO.append(N,Q);Er(ue)?Q.set(de.vao,".targetVAO",ue):Q.set(de.vao,".targetVAO",N.link(ue,{stable:!0}))}function se(re){var W=U.shader[re];if(W){var K=W.append(N,Q);Er(K)?Q.set(de.shader,"."+re,K):Q.set(de.shader,"."+re,N.link(K,{stable:!0}))}}se(Ho),se(dl),Object.keys(U.state).length>0&&(Q(Te,".dirty=true;"),Q.exit(Te,".dirty=true;")),Q("a1(",N.shared.context,",a0,",N.batchId,");")}function Dt(N){if(!(typeof N!="object"||Mi(N))){for(var U=Object.keys(N),Q=0;Q=0;--mt){var Rt=Jr[mt];Rt&&Rt(Pe,null,0)}V.flush(),or&&or.update()}function St(){!ft&&Jr.length>0&&(ft=d.next(ut))}function ta(){ft&&(d.cancel(ut),ft=null)}function Sa(mt){mt.preventDefault(),be=!0,ta(),ct.forEach(function(Rt){Rt()})}function Lt(mt){V.getError(),be=!1,Ae.restore(),Zr.restore(),ar.restore(),Oe.restore(),qe.restore(),Sr.restore(),_r.restore(),or&&or.restore(),hr.procs.refresh(),St(),gr.forEach(function(Rt){Rt()})}Er&&(Er.addEventListener(jt,Sa,!1),Er.addEventListener(va,Lt,!1));function an(){Jr.length=0,ta(),Er&&(Er.removeEventListener(jt,Sa),Er.removeEventListener(va,Lt)),Zr.clear(),Sr.clear(),qe.clear(),_r.clear(),Oe.clear(),Be.clear(),ar.clear(),or&&or.clear(),Cr.forEach(function(mt){mt()})}function Ut(mt){function Rt(ue){var se=e({},ue);delete se.uniforms,delete se.attributes,delete se.context,delete se.vao,"stencil"in se&&se.stencil.op&&(se.stencil.opBack=se.stencil.opFront=se.stencil.op,delete se.stencil.op);function re(W){if(W in se){var K=se[W];delete se[W],Object.keys(K).forEach(function(Y){se[W+"."+Y]=K[Y]})}}return re("blend"),re("depth"),re("cull"),re("stencil"),re("polygonOffset"),re("scissor"),re("sample"),"vao"in ue&&(se.vao=ue.vao),se}function Qt(ue,se){var re={},W={};return Object.keys(ue).forEach(function(K){var Y=ue[K];if(v.isDynamic(Y)){W[K]=v.unbox(Y,K);return}else if(se&&Array.isArray(Y)){for(var ve=0;ve0)return N.call(this,de(ue|0),ue|0)}else if(Array.isArray(ue)){if(ue.length)return N.call(this,ue,ue.length)}else return Rr.call(this,ue)}return e(Te,{stats:Dt,destroy:function(){Ht.destroy()}})}var Ya=Sr.setFBO=Ut({framebuffer:v.define.call(null,ja,"framebuffer")});function Xa(mt,Rt){var Qt=0;hr.procs.poll();var z=Rt.color;z&&(V.clearColor(+z[0]||0,+z[1]||0,+z[2]||0,+z[3]||0),Qt|=mn),"depth"in Rt&&(V.clearDepth(+Rt.depth),Qt|=Da),"stencil"in Rt&&(V.clearStencil(Rt.stencil|0),Qt|=dt),V.clear(Qt)}function nn(mt){if("framebuffer"in mt)if(mt.framebuffer&&mt.framebuffer_reglType==="framebufferCube")for(var Rt=0;Rt<6;++Rt)Ya(e({framebuffer:mt.framebuffer.faces[Rt]},mt),Xa);else Ya(mt,Xa);else Xa(null,mt)}function ma(mt){Jr.push(mt);function Rt(){var Qt=Zn(Jr,mt);function z(){var pe=Zn(Jr,z);Jr[pe]=Jr[Jr.length-1],Jr.length-=1,Jr.length<=0&&ta()}Jr[Qt]=z}return St(),{cancel:Rt}}function ya(){var mt=cr.viewport,Rt=cr.scissor_box;mt[0]=mt[1]=Rt[0]=Rt[1]=0,Pe.viewportWidth=Pe.framebufferWidth=Pe.drawingBufferWidth=mt[2]=Rt[2]=V.drawingBufferWidth,Pe.viewportHeight=Pe.framebufferHeight=Pe.drawingBufferHeight=mt[3]=Rt[3]=V.drawingBufferHeight}function Ea(){Pe.tick+=1,Pe.time=qa(),ya(),hr.procs.poll()}function wt(){Oe.refresh(),ya(),hr.procs.refresh(),or&&or.update()}function qa(){return(p()-Qr)/1e3}wt();function Wt(mt,Rt){var Qt;switch(mt){case"frame":return ma(Rt);case"lost":Qt=ct;break;case"restore":Qt=gr;break;case"destroy":Qt=Cr;break;default:}return Qt.push(Rt),{cancel:function(){for(var z=0;z=0},read:sr,destroy:an,_gl:V,_refresh:wt,poll:function(){Ea(),or&&or.update()},now:qa,stats:Ve,getCachedCode:Za,preloadCachedCode:on});return B.onDone(null,ln),ln}return Ci})});var Y_=P((zOe,Pre)=>{"use strict";var n9e=Rre(),i9e=qre();Pre.exports=function(r,t,a){var n=r._fullLayout,i=!0;return n._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(a);return}if(!(o.pick&&!n._has("parcoords"))){try{o.regl=i9e({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:r._context.plotGlPixelRatio||window.devicePixelRatio,extensions:t||[],cachedCode:a||{}})}catch(l){i=!1}o.regl||(i=!1),i&&this.addEventListener("webglcontextlost",function(l){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:l,layer:o.key})},!1)}}),i||n9e({container:n._glcontainer.node()}),i}});var Gre=P((g9,zre)=>{"use strict";var Nre=s7(),Ore=B7(),o9e=eee(),Ire=Lre(),y9=Ur(),l9e=jc().selectMode,s9e=Y_(),f9e=Ri(),u9e=R6(),c9e=i7().styleTextSelection,Bre={};function v9e(e,r,t,a){var n=e._size,i=e.width*a,o=e.height*a,l=n.l*a,s=n.b*a,f=n.r*a,u=n.t*a,c=n.w*a,v=n.h*a;return[l+r.domain[0]*c,s+t.domain[0]*v,i-f-(1-r.domain[1])*c,o-u-(1-t.domain[1])*v]}var g9=zre.exports=function(r,t,a){if(a.length){var n=r._fullLayout,i=t._scene,o=t.xaxis,l=t.yaxis,s,f;if(i){var u=s9e(r,["ANGLE_instanced_arrays","OES_element_index_uint"],Bre);if(!u){i.init();return}var c=i.count,v=n._glcanvas.data()[0].regl;if(u9e(r,t,a),i.dirty){if((i.line2d||i.error2d)&&!(i.scatter2d||i.fill2d||i.glText)&&v.clear({color:!0,depth:!0}),i.error2d===!0&&(i.error2d=o9e(v)),i.line2d===!0&&(i.line2d=Ore(v)),i.scatter2d===!0&&(i.scatter2d=Nre(v)),i.fill2d===!0&&(i.fill2d=Ore(v)),i.glText===!0)for(i.glText=new Array(c),s=0;si.glText.length){var d=c-i.glText.length;for(s=0;sce&&(isNaN(oe[De])||isNaN(oe[De+1]));)De-=2;$.positions=oe.slice(ce,De+2)}return $}),i.line2d.update(i.lineOptions)),i.error2d){var m=(i.errorXOptions||[]).concat(i.errorYOptions||[]);i.error2d.update(m)}i.scatter2d&&i.scatter2d.update(i.markerOptions),i.fillOrder=y9.repeat(null,c),i.fill2d&&(i.fillOptions=i.fillOptions.map(function($,oe){var ce=a[oe];if(!(!$||!ce||!ce[0]||!ce[0].trace)){var De=ce[0],Ne=De.trace,Ee=De.t,Ye=i.lineOptions[oe],we,Qe,ze=[];Ne._ownfill&&ze.push(oe),Ne._nexttrace&&ze.push(oe+1),ze.length&&(i.fillOrder[oe]=ze);var He=[],$e=Ye&&Ye.positions||Ee.positions,Ue,ee;if(Ne.fill==="tozeroy"){for(Ue=0;Ue<$e.length&&isNaN($e[Ue+1]);)Ue+=2;for(ee=$e.length-2;ee>Ue&&isNaN($e[ee+1]);)ee-=2;$e[Ue+1]!==0&&(He=[$e[Ue],0]),He=He.concat($e.slice(Ue,ee+2)),$e[ee+1]!==0&&(He=He.concat([$e[ee],0]))}else if(Ne.fill==="tozerox"){for(Ue=0;Ue<$e.length&&isNaN($e[Ue]);)Ue+=2;for(ee=$e.length-2;ee>Ue&&isNaN($e[ee]);)ee-=2;$e[Ue]!==0&&(He=[0,$e[Ue+1]]),He=He.concat($e.slice(Ue,ee+2)),$e[ee]!==0&&(He=He.concat([0,$e[ee+1]]))}else if(Ne.fill==="toself"||Ne.fill==="tonext"){for(He=[],we=0,$.splitNull=!0,Qe=0;Qe<$e.length;Qe+=2)(isNaN($e[Qe])||isNaN($e[Qe+1]))&&(He=He.concat($e.slice(we,Qe)),He.push($e[we],$e[we+1]),He.push(null,null),we=Qe+2);He=He.concat($e.slice(we)),we&&He.push($e[we],$e[we+1])}else{var _e=Ne._nexttrace;if(_e){var te=i.lineOptions[oe+1];if(te){var Xe=te.positions;if(Ne.fill==="tonexty"){for(He=$e.slice(),oe=Math.floor(Xe.length/2);oe--;){var ur=Xe[oe*2],rr=Xe[oe*2+1];isNaN(ur)||isNaN(rr)||He.push(ur,rr)}$.fill=_e.fillcolor}}}}if(Ne._prevtrace&&Ne._prevtrace.fill==="tonext"){var Pr=i.lineOptions[oe-1].positions,Or=He.length/2;we=Or;var wr=[we];for(Qe=0;Qe-1;for(s=0;s{"use strict";var Ure=PJ();Ure.plot=Gre();Hre.exports=Ure});var Wre=P((UOe,Yre)=>{"use strict";Yre.exports=Vre()});var b9=P((HOe,Jre)=>{"use strict";var h9e=Qc(),Zre=S0(),jre=em().axisHoverFormat,d9e=ed().hovertemplateAttrs,lg=sx(),p9e=Fi().idRegex,m9e=Ja().templatedArray,U1=Bn().extendFlat,Yu=h9e.marker,y9e=Yu.line,g9e=U1(Zre("marker.line",{editTypeOverride:"calc"}),{width:U1({},y9e.width,{editType:"calc"}),editType:"calc"}),W_=U1(Zre("marker"),{symbol:Yu.symbol,angle:Yu.angle,size:U1({},Yu.size,{editType:"markerSize"}),sizeref:Yu.sizeref,sizemin:Yu.sizemin,sizemode:Yu.sizemode,opacity:Yu.opacity,colorbar:Yu.colorbar,line:g9e,editType:"calc"});W_.color.editType=W_.cmin.editType=W_.cmax.editType="style";function Xre(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:p9e[e],editType:"plot"}}}Jre.exports={dimensions:m9e("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:U1({},lg.text,{}),hovertext:U1({},lg.hovertext,{}),hovertemplate:d9e(),xhoverformat:jre("x"),yhoverformat:jre("y"),marker:W_,xaxes:Xre("x"),yaxes:Xre("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:lg.selected.marker,editType:"calc"},unselected:{marker:lg.unselected.marker,editType:"calc"},opacity:lg.opacity}});var x9=P((VOe,$re)=>{"use strict";$re.exports=function(e,r,t,a){a||(a=1/0);var n,i;for(n=0;n{"use strict";var _9=Ur(),b9e=gl(),Qre=b9(),x9e=Ri(),_9e=gb(),w9e=x9(),A9e=fx().isOpenSymbol;Kre.exports=function(r,t,a,n){function i(d,p){return _9.coerce(r,t,Qre,d,p)}var o=b9e(r,t,{name:"dimensions",handleItemDefaults:T9e}),l=i("diagonal.visible"),s=i("showupperhalf"),f=i("showlowerhalf"),u=w9e(t,o,"values");if(!u||!l&&!s&&!f){t.visible=!1;return}i("text"),i("hovertext"),i("hovertemplate"),i("xhoverformat"),i("yhoverformat"),_9e(r,t,a,n,i,{noAngleRef:!0,noStandOff:!0});var c=A9e(t.marker.symbol),v=x9e.isBubble(t);i("marker.line.width",c||v?1:0),M9e(r,t,n,i),_9.coerceSelectionMarkerOpacity(t,i)};function T9e(e,r){function t(n,i){return _9.coerce(e,r,Qre.dimensions,n,i)}t("label");var a=t("values");a&&a.length?t("visible"):r.visible=!1,t("axis.type"),t("axis.matches")}function M9e(e,r,t,a){var n=r.dimensions,i=n.length,o=r.showupperhalf,l=r.showlowerhalf,s=r.diagonal.visible,f,u,c=new Array(i),v=new Array(i);for(f=0;fu&&o||f{"use strict";var rte=Ur();tte.exports=function(r,t){var a=r._fullLayout,n=t.uid,i=a._splomScenes;i||(i=a._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},l={matrix:!1,selectBatch:[],unselectBatch:[]},s=i[t.uid];return s||(s=i[n]=rte.extendFlat({},o,l),s.draw=function(){s.matrix&&s.matrix.draw&&(s.selectBatch.length||s.unselectBatch.length?s.matrix.draw(s.unselectBatch,s.selectBatch):s.matrix.draw()),s.dirty=!1},s.destroy=function(){s.matrix&&s.matrix.destroy&&s.matrix.destroy(),s.matrixOptions=null,s.selectBatch=null,s.unselectBatch=null,s=null}),s.dirty||rte.extendFlat(s,o),s}});var ote=P((jOe,ite)=>{"use strict";var w9=Ur(),j_=En(),S9e=Yd().calcMarkerSize,E9e=Yd().calcAxisExpansion,k9e=Jm(),nte=Vy().markerSelection,C9e=Vy().markerStyle,L9e=ate(),D9e=Jn().BADNUM,F9e=f1().TOO_MANY_POINTS;ite.exports=function(r,t){var a=t.dimensions,n=t._length,i={},o=i.cdata=[],l=i.data=[],s=t._visibleDims=[],f,u,c,v,d;function p(_,x){for(var T=_.makeCalcdata({v:x.values,vcalendar:t.calendar},"v"),E=0;EF9e,b;for(m?b=i.sizeAvg||Math.max(i.size,3):b=S9e(t,n),u=0;u{(function(){var e,r,t,a,n,i;typeof performance!="undefined"&&performance!==null&&performance.now?sg.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(sg.exports=function(){return(e()-n)/1e6},r=process.hrtime,e=function(){var o;return o=r(),o[0]*1e9+o[1]},a=e(),i=process.uptime()*1e9,n=a-i):Date.now?(sg.exports=function(){return Date.now()-t},t=Date.now()):(sg.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(lte)});var ute=P((XOe,J_)=>{var R9e=ste(),Wu=window,X_=["moz","webkit"],V1="AnimationFrame",Y1=Wu["request"+V1],fg=Wu["cancel"+V1]||Wu["cancelRequest"+V1];for(H1=0;!Y1&&H1{cte.exports=function(r,t){var a=typeof r=="number",n=typeof t=="number";a&&!n?(t=r,r=0):!a&&!n&&(r=0,t=0),r=r|0,t=t|0;var i=t-r;if(i<0)throw new Error("array length must be positive");for(var o=new Array(i),l=0,s=r;l{"use strict";var q9e=s7(),P9e=Of(),N9e=rh(),hte=ute(),O9e=vte(),T9=c1(),I9e=th();pte.exports=wv;function wv(e,r){if(!(this instanceof wv))return new wv(e,r);this.traces=[],this.passes={},this.regl=e,this.scatter=q9e(e),this.canvas=this.scatter.canvas}wv.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=hte(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,hte(()=>{this.dirty=!1})),this)};wv.prototype.update=function(...e){if(!e.length)return;for(let a=0;am||!n.lower&&g{r[i+l]=a})}this.scatter.draw(...r)}return this};wv.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function B9e(e,r,t){let a=e.id!=null?e.id:e,n=r,i=t;return a<<16|(n&255)<<8|i&255}function $_(e,r,t){let a,n,i,o,l,s,f,u,c=e[r],v=e[t];return c.length>2?(a=c[0],i=c[2],n=c[1],o=c[3]):c.length?(a=n=c[0],i=o=c[1]):(a=c.x,n=c.y,i=c.x+c.width,o=c.y+c.height),v.length>2?(l=v[0],f=v[2],s=v[1],u=v[3]):v.length?(l=s=v[0],f=u=v[1]):(l=v.x,s=v.y,f=v.x+v.width,u=v.y+v.height),[l,n,f,o]}function dte(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let r=T9(e);return[r.x,r.y,r.x+r.width,r.y+r.height]}}});var gte=P(($Oe,yte)=>{"use strict";var z9e=mte(),M9=Ur(),Q_=En(),G9e=jc().selectMode;yte.exports=function(r,t,a){if(a.length)for(var n=0;n-1,I=G9e(u)||!!n.selectedpoints||O,R=!0;if(I){var H=n._length;if(n.selectedpoints){o.selectBatch=n.selectedpoints;var X=n.selectedpoints,le={};for(d=0;d{"use strict";bte.getDimIndex=function(r,t){for(var a=t._id,n=a.charAt(0),i={x:0,y:1}[n],o=r._visibleDims,l=0;l{"use strict";var xte=S9(),H9e=GT().calcHover,_te=hn().getFromId,V9e=Bn().extendFlat;function Y9e(e,r,t,a,n){n||(n={});var i=(a||"").charAt(0)==="x",o=(a||"").charAt(0)==="y",l=wte(e,r,t);if((i||o)&&n.hoversubplots==="axis"&&l[0])for(var s=(i?e.xa:e.ya)._subplotsWith,f=n.gd,u=V9e({},e),c=0;c{"use strict";var kte=Ur(),Mte=kte.pushUnique,Ste=Ri(),Ete=S9();Cte.exports=function(r,t){var a=r.cd,n=a[0].trace,i=a[0].t,o=r.scene,l=o.matrixOptions.cdata,s=r.xaxis,f=r.yaxis,u=[];if(!o)return u;var c=!Ste.hasMarkers(n)&&!Ste.hasText(n);if(n.visible!==!0||c)return u;var v=Ete.getDimIndex(n,s),d=Ete.getDimIndex(n,f);if(v===!1||d===!1)return u;var p=i.xpx[v],g=i.ypx[d],m=l[v],b=l[d],A=(r.scene.selectBatch||[]).slice(),_=[];if(t!==!1&&!t.degenerate)for(var x=0;x{"use strict";var Dte=Ur(),W9e=Jm(),j9e=Vy().markerStyle;Fte.exports=function(r,t){var a=t.trace,n=r._fullLayout._splomScenes[a.uid];if(n){W9e(r,a),Dte.extendFlat(n.matrixOptions,j9e(r,a));var i=Dte.extendFlat({},n.matrixOptions,n.viewOpts);n.matrix.update(i,null)}}});var Pte=P((tIe,qte)=>{"use strict";var X9e=It(),Z9e=kT();qte.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:b9(),supplyDefaults:ete(),colorbar:Mb(),calc:ote(),plot:gte(),hoverPoints:Tte().hoverPoints,selectPoints:Lte(),editStyle:Rte(),meta:{}};X9e.register(Z9e)});var Gte=P((aIe,zte)=>{"use strict";var J9e=B7(),$9e=It(),Q9e=Y_(),K9e=Jp().getModuleCalcData,Av=ay(),Nte=En().getFromId,Ote=hn().shouldShowZeroLine,Ite="splom",Bte={};function eMe(e){var r=e._fullLayout,t=$9e.getModule(Ite),a=K9e(e.calcdata,t)[0],n=Q9e(e,["ANGLE_instanced_arrays","OES_element_index_uint"],Bte);n&&(r._hasOnlyLargeSploms&&E9(e),t.plot(e,{},a))}function rMe(e){var r=e.calcdata,t=e._fullLayout;t._hasOnlyLargeSploms&&E9(e);for(var a=0;a{"use strict";var Ute=Pte();Ute.basePlotModule=Gte(),Hte.exports=Ute});var Wte=P((iIe,Yte)=>{"use strict";Yte.exports=Vte()});var L9=P((oIe,jte)=>{"use strict";var iMe=S0(),k9=Ul(),C9=Bi(),oMe=tx().attributes,K_=Bn().extendFlat,lMe=Ja().templatedArray;jte.exports={domain:oMe({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:C9({editType:"plot"}),tickfont:C9({autoShadowDflt:!0,editType:"plot"}),rangefont:C9({editType:"plot"}),dimensions:lMe("dimension",{label:{valType:"string",editType:"plot"},tickvals:K_({},k9.tickvals,{editType:"plot"}),ticktext:K_({},k9.ticktext,{editType:"plot"}),tickformat:K_({},k9.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:K_({editType:"calc"},iMe("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}});var ug=P((lIe,Xte)=>{"use strict";Xte.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:["contextLineLayer","focusLineLayer","pickLineLayer"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},id:{filterBarPattern:"filter-bar-pattern"}}});var cg=P((sIe,Jte)=>{"use strict";var sMe=$g();function Zte(e){return[e]}Jte.exports={keyFun:function(e){return e.key},repeat:Zte,descend:sMe,wrap:Zte,unwrap:function(e){return e[0]}}});var R9=P((fIe,lae)=>{"use strict";var Yn=ug(),ef=da(),fMe=cg().keyFun,e5=cg().repeat,W1=Ur().sorterAsc,uMe=Ur().strTranslate,$te=Yn.bar.snapRatio;function Qte(e,r){return e*(1-$te)+r*$te}var Kte=Yn.bar.snapClose;function cMe(e,r){return e*(1-Kte)+r*Kte}function t5(e,r,t,a){if(vMe(t,a))return t;var n=e?-1:1,i=0,o=r.length-1;if(n<0){var l=i;i=o,o=l}for(var s=r[i],f=s,u=i;n*u=r[t][0]&&e<=r[t][1])return!0;return!1}function hMe(e){e.attr("x",-Yn.bar.captureWidth/2).attr("width",Yn.bar.captureWidth)}function dMe(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function pMe(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var r=eae(e.brush.filter.getConsolidated(),e.height),t=[0],a,n,i,o=r.length?r[0][0]:null,l=0;le[1]+t||r=.9*e[1]+.1*e[0]?"n":r<=.9*e[0]+.1*e[1]?"s":"ns"}function rae(){ef.select(document.body).style("cursor",null)}function F9(e){e.attr("stroke-dasharray",pMe)}function r5(e,r){var t=ef.select(e).selectAll(".highlight, .highlight-shadow"),a=r?t.transition().duration(Yn.bar.snapDuration).each("end",r):t;F9(a)}function tae(e,r){var t=e.brush,a=t.filterSpecified,n=NaN,i={},o;if(a){var l=e.height,s=t.filter.getConsolidated(),f=eae(s,l),u=NaN,c=NaN,v=NaN;for(o=0;o<=f.length;o++){var d=f[o];if(d&&d[0]<=r&&r<=d[1]){u=o;break}else if(c=o?o-1:NaN,d&&d[0]>r){v=o;break}}if(n=u,isNaN(n)&&(isNaN(c)||isNaN(v)?n=isNaN(c)?v:c:n=r-f[c][1]=A[0]&&b<=A[1]){i.clickableOrdinalRange=A;break}}}return i}function yMe(e,r){ef.event.sourceEvent.stopPropagation();var t=r.height-ef.mouse(e)[1]-2*Yn.verticalPadding,a=r.unitToPaddedPx.invert(t),n=r.brush,i=tae(r,t),o=i.interval,l=n.svgBrush;if(l.wasDragged=!1,l.grabbingBar=i.region==="ns",l.grabbingBar){var s=o.map(r.unitToPaddedPx);l.grabPoint=t-s[0]-Yn.verticalPadding,l.barLength=s[1]-s[0]}l.clickableOrdinalRange=i.clickableOrdinalRange,l.stayingIntervals=r.multiselect&&n.filterSpecified?n.filter.getConsolidated():[],o&&(l.stayingIntervals=l.stayingIntervals.filter(function(f){return f[0]!==o[0]&&f[1]!==o[1]})),l.startExtent=i.region?o[i.region==="s"?1:0]:a,r.parent.inBrushDrag=!0,l.brushStartCallback()}function aae(e,r){ef.event.sourceEvent.stopPropagation();var t=r.height-ef.mouse(e)[1]-2*Yn.verticalPadding,a=r.brush.svgBrush;a.wasDragged=!0,a._dragging=!0,a.grabbingBar?a.newExtent=[t-a.grabPoint,t+a.barLength-a.grabPoint].map(r.unitToPaddedPx.invert):a.newExtent=[a.startExtent,r.unitToPaddedPx.invert(t)].sort(W1),r.brush.filterSpecified=!0,a.extent=a.stayingIntervals.concat([a.newExtent]),a.brushCallback(r),r5(e.parentNode)}function gMe(e,r){var t=r.brush,a=t.filter,n=t.svgBrush;n._dragging||(nae(e,r),aae(e,r),r.brush.svgBrush.wasDragged=!1),n._dragging=!1;var i=ef.event;i.sourceEvent.stopPropagation();var o=n.grabbingBar;if(n.grabbingBar=!1,n.grabLocation=void 0,r.parent.inBrushDrag=!1,rae(),!n.wasDragged){n.wasDragged=void 0,n.clickableOrdinalRange?t.filterSpecified&&r.multiselect?n.extent.push(n.clickableOrdinalRange):(n.extent=[n.clickableOrdinalRange],t.filterSpecified=!0):o?(n.extent=n.stayingIntervals,n.extent.length===0&&D9(t)):D9(t),n.brushCallback(r),r5(e.parentNode),n.brushEndCallback(t.filterSpecified?a.getConsolidated():[]);return}var l=function(){a.set(a.getConsolidated())};if(r.ordinal){var s=r.unitTickvals;s[s.length-1]n.newExtent[0];n.extent=n.stayingIntervals.concat(f?[n.newExtent]:[]),n.extent.length||D9(t),n.brushCallback(r),f?r5(e.parentNode,l):(l(),r5(e.parentNode))}else l();n.brushEndCallback(t.filterSpecified?a.getConsolidated():[])}function nae(e,r){var t=r.height-ef.mouse(e)[1]-2*Yn.verticalPadding,a=tae(r,t),n="crosshair";a.clickableOrdinalRange?n="pointer":a.region&&(n=a.region+"-resize"),ef.select(document.body).style("cursor",n)}function bMe(e){e.on("mousemove",function(r){ef.event.preventDefault(),r.parent.inBrushDrag||nae(this,r)}).on("mouseleave",function(r){r.parent.inBrushDrag||rae()}).call(ef.behavior.drag().on("dragstart",function(r){yMe(this,r)}).on("drag",function(r){aae(this,r)}).on("dragend",function(r){gMe(this,r)}))}function iae(e,r){return e[0]-r[0]}function xMe(e,r,t){var a=t._context.staticPlot,n=e.selectAll(".background").data(e5);n.enter().append("rect").classed("background",!0).call(hMe).call(dMe).style("pointer-events",a?"none":"auto").attr("transform",uMe(0,Yn.verticalPadding)),n.call(bMe).attr("height",function(l){return l.height-Yn.verticalPadding});var i=e.selectAll(".highlight-shadow").data(e5);i.enter().append("line").classed("highlight-shadow",!0).attr("x",-Yn.bar.width/2).attr("stroke-width",Yn.bar.width+Yn.bar.strokeWidth).attr("stroke",r).attr("opacity",Yn.bar.strokeOpacity).attr("stroke-linecap","butt"),i.attr("y1",function(l){return l.height}).call(F9);var o=e.selectAll(".highlight").data(e5);o.enter().append("line").classed("highlight",!0).attr("x",-Yn.bar.width/2).attr("stroke-width",Yn.bar.width-Yn.bar.strokeWidth).attr("stroke",Yn.bar.fillColor).attr("opacity",Yn.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(l){return l.height}).call(F9)}function _Me(e,r,t){var a=e.selectAll("."+Yn.cn.axisBrush).data(e5,fMe);a.enter().append("g").classed(Yn.cn.axisBrush,!0),xMe(a,r,t)}function wMe(e){return e.svgBrush.extent.map(function(r){return r.slice()})}function D9(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function AMe(e){return function(t){var a=t.brush,n=wMe(a),i=n.slice();a.filter.set(i),e()}}function oae(e){for(var r=e.slice(),t=[],a,n=r.shift();n;){for(a=n.slice();(n=r.shift())&&n[0]<=a[1];)a[1]=Math.max(a[1],n[1]);t.push(a)}return t.length===1&&t[0][0]>t[0][1]&&(t=[]),t}function TMe(){var e=[],r,t;return{set:function(a){e=a.map(function(n){return n.slice().sort(W1)}).sort(iae),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),r=oae(e),t=e.reduce(function(n,i){return[Math.min(n[0],i[0]),Math.max(n[1],i[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return r},getBounds:function(){return t}}}function MMe(e,r,t,a,n,i){var o=TMe();return o.set(t),{filter:o,filterSpecified:r,svgBrush:{extent:[],brushStartCallback:a,brushCallback:AMe(n),brushEndCallback:i}}}function SMe(e,r){if(Array.isArray(e[0])?(e=e.map(function(a){return a.sort(W1)}),r.multiselect?e=oae(e.sort(iae)):e=[e[0]]):e=[e.sort(W1)],r.tickvals){var t=r.tickvals.slice().sort(W1);if(e=e.map(function(a){var n=[t5(0,t,a[0],[]),t5(1,t,a[1],[])];if(n[1]>n[0])return n}).filter(function(a){return a}),!e.length)return}return e.length>1?e:e[0]}lae.exports={makeBrush:MMe,ensureAxisBrush:_Me,cleanRanges:SMe}});var uae=P((uIe,fae)=>{"use strict";var Tv=Ur(),EMe=Rs().hasColorscale,kMe=md(),CMe=tx().defaults,LMe=gl(),DMe=hn(),sae=L9(),FMe=R9(),q9=ug().maxDimensionCount,RMe=x9();function qMe(e,r,t,a,n){var i=n("line.color",t);if(EMe(e,"line")&&Tv.isArrayOrTypedArray(i)){if(i.length)return n("line.colorscale"),kMe(e,r,a,n,{prefix:"line.",cLetter:"c"}),i.length;r.line.color=t}return 1/0}function PMe(e,r,t,a){function n(f,u){return Tv.coerce(e,r,sae.dimensions,f,u)}var i=n("values"),o=n("visible");if(i&&i.length||(o=r.visible=!1),o){n("label"),n("tickvals"),n("ticktext"),n("tickformat");var l=n("range");r._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:l},DMe.setConvert(r._ax,a.layout),n("multiselect");var s=n("constraintrange");s&&(r.constraintrange=FMe.cleanRanges(s,r))}}fae.exports=function(r,t,a,n){function i(u,c){return Tv.coerce(r,t,sae,u,c)}var o=r.dimensions;Array.isArray(o)&&o.length>q9&&(Tv.log("parcoords traces support up to "+q9+" dimensions at the moment"),o.splice(q9));var l=LMe(r,t,{name:"dimensions",layout:n,handleItemDefaults:PMe}),s=qMe(r,t,a,n,i);CMe(t,n,i),(!Array.isArray(l)||!l.length)&&(t.visible=!1),RMe(t,l,"values",s);var f=Tv.extendFlat({},n.font,{size:Math.round(n.font.size/1.2)});Tv.coerceFont(i,"labelfont",f),Tv.coerceFont(i,"tickfont",f,{autoShadowDflt:!0}),Tv.coerceFont(i,"rangefont",f),i("labelangle"),i("labelside"),i("unselected.line.color"),i("unselected.line.opacity")}});var vae=P((cIe,cae)=>{"use strict";var NMe=Ur().isArrayOrTypedArray,P9=gd(),OMe=cg().wrap;cae.exports=function(r,t){var a,n;return P9.hasColorscale(t,"line")&&NMe(t.line.color)?(a=t.line.color,n=P9.extractOpts(t.line).colorscale,P9.calc(r,t,{vals:a,containerStr:"line",cLetter:"c"})):(a=IMe(t._length),n=[[0,t.line.color],[1,t.line.color]]),OMe({lineColor:a,cscale:n})};function IMe(e){for(var r=new Array(e),t=0;t>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),N9.default[e])t=N9.default[e].slice(),n="rgb";else if(e==="transparent")a=0,n="rgb",t=[0,0,0];else if(e[0]==="#"){var i=e.slice(1),o=i.length,l=o<=4;a=1,l?(t=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],o===4&&(a=parseInt(i[3]+i[3],16)/255)):(t=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],o===8&&(a=parseInt(i[6]+i[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),n="rgb"}else if(r=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var s=r[1];n=s.replace(/a$/,"");var f=n==="cmyk"?4:n==="gray"?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/),n==="color"&&(n=t.shift()),t=t.map(function(v,d){if(v[v.length-1]==="%")return v=parseFloat(v)/100,d===3?v:n==="rgb"?v*255:n[0]==="h"||n[0]==="l"&&!d?v*100:n==="lab"?v*125:n==="lch"?d<2?v*150:v*360:n[0]==="o"&&!d?v:n==="oklab"?v*.4:n==="oklch"?d<2?v*.4:v*360:v;if(n[d]==="h"||d===2&&n[n.length-1]==="h"){if(hae[v]!==void 0)return hae[v];if(v.endsWith("deg"))return parseFloat(v);if(v.endsWith("turn"))return parseFloat(v)*360;if(v.endsWith("grad"))return parseFloat(v)*360/400;if(v.endsWith("rad"))return parseFloat(v)*180/Math.PI}return v==="none"?0:parseFloat(v)}),a=t.length>f?t.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(t=e.match(/([0-9]+)/g).map(function(v){return parseFloat(v)}),n=((c=(u=e.match(/([a-z])/ig))==null?void 0:u.join(""))==null?void 0:c.toLowerCase())||"rgb");return{space:n,values:t,alpha:a}}var N9,dae,hae,pae=Yh(()=>{N9=Gne(Q8(),1),dae=BMe,hae={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var vg,O9=Yh(()=>{vg={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var a5,mae=Yh(()=>{O9();a5={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var r=e[0]/360,t=e[1]/100,a=e[2]/100,n,i,o,l,s,f=0;if(t===0)return s=a*255,[s,s,s];for(i=a<.5?a*(1+t):a+t-a*t,n=2*a-i,l=[0,0,0];f<3;)o=r+1/3*-(f-1),o<0?o++:o>1&&o--,s=6*o<1?n+(i-n)*6*o:2*o<1?i:3*o<2?n+(i-n)*(2/3-o)*6:n,l[f++]=s*255;return l}};vg.hsl=function(e){var r=e[0]/255,t=e[1]/255,a=e[2]/255,n=Math.min(r,t,a),i=Math.max(r,t,a),o=i-n,l,s,f;return i===n?l=0:r===i?l=(t-a)/o:t===i?l=2+(a-r)/o:a===i&&(l=4+(r-t)/o),l=Math.min(l*60,360),l<0&&(l+=360),f=(n+i)/2,i===n?s=0:f<=.5?s=o/(i+n):s=o/(2-i-n),[l,s*100,f*100]}});var gae={};zne(gae,{default:()=>yae});function yae(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var r,t,a,n=dae(e);if(!n.space)return[];let i=n.space[0]==="h"?a5.min:vg.min,o=n.space[0]==="h"?a5.max:vg.max;return r=Array(3),r[0]=Math.min(Math.max(n.values[0],i[0]),o[0]),r[1]=Math.min(Math.max(n.values[1],i[1]),o[1]),r[2]=Math.min(Math.max(n.values[2],i[2]),o[2]),n.space[0]==="h"&&(r=a5.rgb(r)),r.push(Math.min(Math.max(n.alpha,0),1)),r}var bae=Yh(()=>{pae();O9();mae()});var I9=P(n5=>{"use strict";var zMe=Ur().isTypedArray;n5.convertTypedArray=function(e){return zMe(e)?Array.prototype.slice.call(e):e};n5.isOrdinal=function(e){return!!e.tickvals};n5.isVisible=function(e){return e.visible||!("visible"in e)}});var Cae=P((xIe,kae)=>{"use strict";var GMe=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` -`),UMe=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` -`),hg=ug().maxDimensionCount,Mae=Ur(),xae=1e-6,i5=2048,HMe=new Uint8Array(4),_ae=new Uint8Array(4),wae={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function VMe(e){e.read({x:0,y:0,width:1,height:1,data:HMe})}function Sae(e,r,t,a,n){var i=e._gl;i.enable(i.SCISSOR_TEST),i.scissor(r,t,a,n),e.clear({color:[0,0,0,0],depth:1})}function YMe(e,r,t,a,n,i){var o=i.key;function l(s){var f=Math.min(a,n-s*a);s===0&&(window.cancelAnimationFrame(t.currentRafs[o]),delete t.currentRafs[o],Sae(e,i.scissorX,i.scissorY,i.scissorWidth,i.viewBoxSize[1])),!t.clearOnly&&(i.count=2*f,i.offset=2*s*a,r(i),s*a+f>>8*r)%256/255}function XMe(e,r,t){for(var a=new Array(e*(hg+4)),n=0,i=0;iae&&(ae=k[R].dim1.canvasX,X=R);I===0&&Sae(n,0,0,f.canvasWidth,f.canvasHeight);var J=_(t);for(R=0;R{"use strict";var Pi=da(),ju=Ur(),z9=ju.isArrayOrTypedArray,Pae=ju.numberFormat,Nae=(bae(),mM(gae)).default,Oae=hn(),KMe=ju.strRotate,Uf=ju.strTranslate,eSe=po(),o5=Wa(),Lae=gd(),H9=cg(),os=H9.keyFun,Hf=H9.repeat,Iae=H9.unwrap,j1=I9(),_a=ug(),Bae=R9(),rSe=Cae();function Dae(e,r,t){return ju.aggNums(e,null,r,t)}function zae(e,r){return V9(Dae(Math.min,e,r),Dae(Math.max,e,r))}function l5(e){var r=e.range;return r?V9(r[0],r[1]):zae(e.values,e._length)}function V9(e,r){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(r)||!isFinite(r))&&(r=0),e===r&&(e===0?(e-=1,r+=1):(e*=.9,r*=1.1)),[e,r]}function tSe(e,r){return r?function(t,a){var n=r[a];return n==null?e(t):n}:e}function aSe(e,r,t,a,n){var i=l5(t);return a?Pi.scale.ordinal().domain(a.map(tSe(Pae(t.tickformat),n))).range(a.map(function(o){var l=(o-i[0])/(i[1]-i[0]);return e-r+l*(2*r-e)})):Pi.scale.linear().domain(i).range([e-r,r])}function nSe(e,r){return Pi.scale.linear().range([r,e-r])}function iSe(e,r){return Pi.scale.linear().domain(l5(e)).range([r,1-r])}function oSe(e){if(e.tickvals){var r=l5(e);return Pi.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(t){return(t-r[0])/(r[1]-r[0])}))}}function lSe(e){var r=e.map(function(i){return i[0]}),t=e.map(function(i){var o=Nae(i[1]);return Pi.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),a=function(i){return function(o){return o[i]}},n="rgb".split("").map(function(i){return Pi.scale.linear().clamp(!0).domain(r).range(t.map(a(i)))});return function(i){return n.map(function(o){return o(i)})}}function U9(e){return e.dimensions.some(function(r){return r.brush.filterSpecified})}function sSe(e,r,t){var a=Iae(r),n=a.trace,i=j1.convertTypedArray(a.lineColor),o=n.line,l={color:Nae(n.unselected.line.color),opacity:n.unselected.line.opacity},s=Lae.extractOpts(o),f=s.reversescale?Lae.flipScale(a.cscale):a.cscale,u=n.domain,c=n.dimensions,v=e.width,d=n.labelangle,p=n.labelside,g=n.labelfont,m=n.tickfont,b=n.rangefont,A=ju.extendDeepNoArrays({},o,{color:i.map(Pi.scale.linear().domain(l5({values:i,range:[s.min,s.max],_length:n._length}))),blockLineCount:_a.blockLineCount,canvasOverdrag:_a.overdrag*_a.canvasPixelRatio}),_=Math.floor(v*(u.x[1]-u.x[0])),x=Math.floor(e.height*(u.y[1]-u.y[0])),T=e.margin||{l:80,r:80,t:100,b:80},E=_,S=x;return{key:t,colCount:c.filter(j1.isVisible).length,dimensions:c,tickDistance:_a.tickDistance,unitToColor:lSe(f),lines:A,deselectedLines:l,labelAngle:d,labelSide:p,labelFont:g,tickFont:m,rangeFont:b,layoutWidth:v,layoutHeight:e.height,domain:u,translateX:u.x[0]*v,translateY:e.height-u.y[1]*e.height,pad:T,canvasWidth:E*_a.canvasPixelRatio+2*A.canvasOverdrag,canvasHeight:S*_a.canvasPixelRatio,width:E,height:S,canvasPixelRatio:_a.canvasPixelRatio}}function fSe(e,r,t){var a=t.width,n=t.height,i=t.dimensions,o=t.canvasPixelRatio,l=function(v){return a*v/Math.max(1,t.colCount-1)},s=_a.verticalPadding/n,f=nSe(n,_a.verticalPadding),u={key:t.key,xScale:l,model:t,inBrushDrag:!1},c={};return u.dimensions=i.filter(j1.isVisible).map(function(v,d){var p=iSe(v,s),g=c[v.label];c[v.label]=(g||0)+1;var m=v.label+(g?"__"+g:""),b=v.constraintrange,A=b&&b.length;A&&!z9(b[0])&&(b=[b]);var _=A?b.map(function(H){return H.map(p)}):[[-1/0,1/0]],x=function(){var H=u;H.focusLayer&&H.focusLayer.render(H.panels,!0);var X=U9(H);!e.contextShown()&&X?(H.contextLayer&&H.contextLayer.render(H.panels,!0),e.contextShown(!0)):e.contextShown()&&!X&&(H.contextLayer&&H.contextLayer.render(H.panels,!0,!0),e.contextShown(!1))},T=v.values;T.length>v._length&&(T=T.slice(0,v._length));var E=v.tickvals,S;function k(H,X){return{val:H,text:S[X]}}function F(H,X){return H.val-X.val}if(z9(E)&&E.length){ju.isTypedArray(E)&&(E=Array.from(E)),S=v.ticktext,!z9(S)||!S.length?S=E.map(Pae(v.tickformat)):S.length>E.length?S=S.slice(0,E.length):E.length>S.length&&(E=E.slice(0,S.length));for(var O=1;O=X||Z>=le)return;var $=R.lineLayer.readPixel(J,le-1-Z),oe=$[3]!==0,ce=oe?$[2]+256*($[1]+256*$[0]):null,De={x:J,y:Z,clientX:H.clientX,clientY:H.clientY,dataIndex:R.model.key,curveNumber:ce};ce!==p&&(oe?n.hover(De):n.unhover&&n.unhover(De),p=ce)}}),d.style("opacity",function(R){return R.pick?0:1}),l.style("background","rgba(255, 255, 255, 0)");var m=l.selectAll("."+_a.cn.parcoords).data(v,os);m.exit().remove(),m.enter().append("g").classed(_a.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),m.attr("transform",function(R){return Uf(R.model.translateX,R.model.translateY)});var b=m.selectAll("."+_a.cn.parcoordsControlView).data(Hf,os);b.enter().append("g").classed(_a.cn.parcoordsControlView,!0),b.attr("transform",function(R){return Uf(R.model.pad.l,R.model.pad.t)});var A=b.selectAll("."+_a.cn.yAxis).data(function(R){return R.dimensions},os);A.enter().append("g").classed(_a.cn.yAxis,!0),b.each(function(R){G9(A,R,f)}),d.each(function(R){if(R.viewModel){!R.lineLayer||n?R.lineLayer=rSe(this,R):R.lineLayer.update(R),(R.key||R.key===0)&&(R.viewModel[R.key]=R.lineLayer);var H=!R.context||n;R.lineLayer.render(R.viewModel.panels,H)}}),A.attr("transform",function(R){return Uf(R.xScale(R.xIndex),0)}),A.call(Pi.behavior.drag().origin(function(R){return R}).on("drag",function(R){var H=R.parent;c.linePickActive(!1),R.x=Math.max(-_a.overdrag,Math.min(R.model.width+_a.overdrag,Pi.event.x)),R.canvasX=R.x*R.model.canvasPixelRatio,A.sort(function(X,le){return X.x-le.x}).each(function(X,le){X.xIndex=le,X.x=R===X?X.x:X.xScale(X.xIndex),X.canvasX=X.x*X.model.canvasPixelRatio}),G9(A,H,f),A.filter(function(X){return Math.abs(R.xIndex-X.xIndex)!==0}).attr("transform",function(X){return Uf(X.xScale(X.xIndex),0)}),Pi.select(this).attr("transform",Uf(R.x,0)),A.each(function(X,le,ae){ae===R.parent.key&&(H.dimensions[le]=X)}),H.contextLayer&&H.contextLayer.render(H.panels,!1,!U9(H)),H.focusLayer.render&&H.focusLayer.render(H.panels)}).on("dragend",function(R){var H=R.parent;R.x=R.xScale(R.xIndex),R.canvasX=R.x*R.model.canvasPixelRatio,G9(A,H,f),Pi.select(this).attr("transform",function(X){return Uf(X.x,0)}),H.contextLayer&&H.contextLayer.render(H.panels,!1,!U9(H)),H.focusLayer&&H.focusLayer.render(H.panels),H.pickLayer&&H.pickLayer.render(H.panels,!0),c.linePickActive(!0),n&&n.axesMoved&&n.axesMoved(H.key,H.dimensions.map(function(X){return X.crossfilterDimensionIndex}))})),A.exit().remove();var _=A.selectAll("."+_a.cn.axisOverlays).data(Hf,os);_.enter().append("g").classed(_a.cn.axisOverlays,!0),_.selectAll("."+_a.cn.axis).remove();var x=_.selectAll("."+_a.cn.axis).data(Hf,os);x.enter().append("g").classed(_a.cn.axis,!0),x.each(function(R){var H=R.model.height/R.model.tickDistance,X=R.domainScale,le=X.domain();Pi.select(this).call(Pi.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(H,R.tickFormat).tickValues(R.ordinal?le:null).tickFormat(function(ae){return j1.isOrdinal(R)?ae:Gae(R.model.dimensions[R.visibleIndex],ae)}).scale(X)),o5.font(x.selectAll("text"),R.model.tickFont)}),x.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),x.selectAll("text").style("cursor","default");var T=_.selectAll("."+_a.cn.axisHeading).data(Hf,os);T.enter().append("g").classed(_a.cn.axisHeading,!0);var E=T.selectAll("."+_a.cn.axisTitle).data(Hf,os);E.enter().append("text").classed(_a.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",i?"none":"auto"),E.text(function(R){return R.label}).each(function(R){var H=Pi.select(this);o5.font(H,R.model.labelFont),eSe.convertToTspans(H,r)}).attr("transform",function(R){var H=Rae(R.model.labelAngle,R.model.labelSide),X=_a.axisTitleOffset;return(H.dir>0?"":Uf(0,2*X+R.model.height))+KMe(H.degrees)+Uf(-X*H.dx,-X*H.dy)}).attr("text-anchor",function(R){var H=Rae(R.model.labelAngle,R.model.labelSide),X=Math.abs(H.dx),le=Math.abs(H.dy);return 2*X>le?H.dir*H.dx<0?"start":"end":"middle"});var S=_.selectAll("."+_a.cn.axisExtent).data(Hf,os);S.enter().append("g").classed(_a.cn.axisExtent,!0);var k=S.selectAll("."+_a.cn.axisExtentTop).data(Hf,os);k.enter().append("g").classed(_a.cn.axisExtentTop,!0),k.attr("transform",Uf(0,-_a.axisExtentOffset));var F=k.selectAll("."+_a.cn.axisExtentTopText).data(Hf,os);F.enter().append("text").classed(_a.cn.axisExtentTopText,!0).call(Fae),F.text(function(R){return qae(R,!0)}).each(function(R){o5.font(Pi.select(this),R.model.rangeFont)});var O=S.selectAll("."+_a.cn.axisExtentBottom).data(Hf,os);O.enter().append("g").classed(_a.cn.axisExtentBottom,!0),O.attr("transform",function(R){return Uf(0,R.model.height+_a.axisExtentOffset)});var I=O.selectAll("."+_a.cn.axisExtentBottomText).data(Hf,os);I.enter().append("text").classed(_a.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(Fae),I.text(function(R){return qae(R,!1)}).each(function(R){o5.font(Pi.select(this),R.model.rangeFont)}),Bae.ensureAxisBrush(_,u,r)}});var W9=P((Y9,jae)=>{"use strict";var vSe=Hae(),hSe=Y_(),Vae=I9().isVisible,Wae={};function Yae(e,r,t){var a=r.indexOf(t),n=e.indexOf(a);return n===-1&&(n+=r.length),n}function dSe(e,r){return function(a,n){return Yae(e,r,a)-Yae(e,r,n)}}var Y9=jae.exports=function(r,t){var a=r._fullLayout,n=hSe(r,[],Wae);if(n){var i={},o={},l={},s={},f=a._size;t.forEach(function(p,g){var m=p[0].trace;l[g]=m.index;var b=s[g]=m.index;i[g]=r.data[b].dimensions,o[g]=r.data[b].dimensions.slice()});var u=function(p,g,m){var b=o[p][g],A=m.map(function(k){return k.slice()}),_="dimensions["+g+"].constraintrange",x=a._tracePreGUI[r._fullData[l[p]]._fullInput.uid];if(x[_]===void 0){var T=b.constraintrange;x[_]=T||null}var E=r._fullData[l[p]].dimensions[g];A.length?(A.length===1&&(A=A[0]),b.constraintrange=A,E.constraintrange=A.slice(),A=[A]):(delete b.constraintrange,delete E.constraintrange,A=null);var S={};S[_]=A,r.emit("plotly_restyle",[S,[s[p]]])},c=function(p){r.emit("plotly_hover",p)},v=function(p){r.emit("plotly_unhover",p)},d=function(p,g){var m=dSe(g,o[p].filter(Vae));i[p].sort(m),o[p].filter(function(b){return!Vae(b)}).sort(function(b){return o[p].indexOf(b)}).forEach(function(b){i[p].splice(i[p].indexOf(b),1),i[p].splice(o[p].indexOf(b),0,b)}),r.emit("plotly_restyle",[{dimensions:[i[p]]},[s[p]]])};vSe(r,t,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{filterChanged:u,hover:c,unhover:v,axesMoved:d})}};Y9.reglPrecompiled=Wae});var Zae=P(dg=>{"use strict";var Xae=da(),pSe=Jp().getModuleCalcData,mSe=W9(),ySe=Ic();dg.name="parcoords";dg.plot=function(e){var r=pSe(e.calcdata,"parcoords")[0];r.length&&mSe(e,r)};dg.clean=function(e,r,t,a){var n=a._has&&a._has("parcoords"),i=r._has&&r._has("parcoords");n&&!i&&(a._paperdiv.selectAll(".parcoords").remove(),a._glimages.selectAll("*").remove())};dg.toSVG=function(e){var r=e._fullLayout._glimages,t=Xae.select(e).selectAll(".svg-container"),a=t.filter(function(i,o){return o===t.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function n(){var i=this,o=i.toDataURL("image/png"),l=r.append("svg:image");l.attr({xmlns:ySe.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:i.style.width,height:i.style.height})}a.each(n),window.setTimeout(function(){Xae.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var $ae=P((AIe,Jae)=>{"use strict";Jae.exports={attributes:L9(),supplyDefaults:uae(),calc:vae(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:Zae(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var ene=P((TIe,Kae)=>{"use strict";var Qae=$ae();Qae.plot=W9();Kae.exports=Qae});var tne=P((MIe,rne)=>{"use strict";rne.exports=ene()});var oo=P((SIe,nne)=>{var f5=ti();function ane(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}f5(ane.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function j9(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(aa.local.invalidDate||aa.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function s5(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}f5(j9.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(aa.local.invalidDate||aa.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(aa.local.differentCalendars||aa.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+s5(Math.abs(this.year()),4)+"-"+s5(this.month(),2)+"-"+s5(this.day(),2)}});function X9(){this.shortYearCutoff="+10"}f5(X9.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,aa.local.invalidDate||aa.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new j9(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,aa.local.invalidYear||aa.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,aa.local.invalidYear||aa.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+s5(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,aa.local.invalidYear||aa.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,aa.local.invalidMonth||aa.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,aa.local.invalidMonth||aa.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,aa.local.invalidYear||aa.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,aa.local.invalidDate||aa.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,aa.local.invalidDate||aa.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,aa.local.invalidDate||aa.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,aa.local.invalidDate||aa.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),n=e.day(),l=function(u){for(;oc-1+u.minMonth;)i++,o-=c,c=u.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),n];return this._validateLevel--,s}catch(f){throw this._validateLevel--,f}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,aa.local.invalidDate||aa.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),f=n-(s>2.5?4716:4715);return f<=0&&f--,this.newDate(f,s,l)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,aa.local.invalidDate||aa.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var aa=nne.exports=new ane;aa.cdate=j9;aa.baseCalendar=X9;aa.calendars.gregorian=Z9});var ine=P(()=>{var J9=ti(),Ni=oo();J9(Ni.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Ni.local=Ni.regionalOptions[""];J9(Ni.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});J9(Ni.baseCalendar.prototype,{UNIX_EPOCH:Ni.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Ni.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Ni.local.invalidFormat||Ni.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,f=function(x,T){for(var E=1;_+E1},u=function(x,T,E,S){var k=""+T;if(f(x,S))for(;k.length1},A=function(R,H){var X=b(R,H),le=[2,3,X?4:2,X?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],ae=new RegExp("^-?\\d{1,"+le+"}"),J=r.substring(k).match(ae);if(!J)throw(Ni.local.missingNumberAt||Ni.regionalOptions[""].missingNumberAt).replace(/\{0\}/,k);return k+=J[0].length,parseInt(J[0],10)},_=this,x=function(){if(typeof l=="function"){b("m");var R=l.call(_,r.substring(k));return k+=R.length,R}return A("m")},T=function(R,H,X,le){for(var ae=b(R,le)?X:H,J=0;J-1){v=1,d=p;for(var I=this.daysInMonth(c,v);d>I;I=this.daysInMonth(c,v))v++,d-=I}return u>-1?this.fromJD(u):this.newDate(c,v,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,o=function(l){try{return i.parseDate(a,l,n)}catch(c){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),f=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,u=f.exec(l);u;)s.add(parseInt(u[1],10),u[2]||"d"),u=f.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var one=P(()=>{var Mv=oo(),gSe=ti(),$9=Mv.instance();function u5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}u5.prototype=new Mv.baseCalendar;gSe(u5.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(xSe);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(_Se);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(wSe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw Mv.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw Mv.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,Mv.local.invalidyear),n=Ev[a-Ev[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=$9.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var f=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(f/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Sv[e-Sv[0]],a=t>>13,n=a?12:11;if(r>n)throw Mv.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,Mv.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=TSe(e,i,t,n);return $9.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=$9.fromJD(e),t=ASe(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(bSe),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),o=this.toChineseMonth(a,n),l=Object.getPrototypeOf(u5.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),f=l.month(),u=this.isIntercalaryMonth(s,o),c=i&&u?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);c!==f&&l.month(c)}return l}});var bSe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,xSe=/^\d?\d[iI]?/m,_Se=/^闰?十?[一二三四五六七八九]?月/m,wSe=/^闰?十?[一二三四五六七八九]?/m;Mv.calendars.chinese=u5;var Sv=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Ev=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function ASe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var f=Ev[n.year-Ev[0]],u=n.year<<9|n.month<<5|n.day;i.year=u>=f?n.year:n.year-1,f=Ev[i.year-Ev[0]];var c=f>>9&4095,v=f>>5&15,d=f&31,p,g=new Date(c,v-1,d),m=new Date(n.year,n.month-1,n.day);p=Math.round((m-g)/(24*3600*1e3));var b=Sv[i.year-Sv[0]],A;for(A=0;A<13;A++){var _=b&1<<12-A?30:29;if(p<_)break;p-=_}var x=b>>13;return!x||A=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var f=typeof t=="number"&&t>=1&&t<=30;if(!f)throw new Error("Lunar day outside range 1 - 30");var u;typeof a=="object"?(u=!1,i=a):(u=!!a,i=n||{}),o={year:e,month:r,day:t,isIntercalary:u}}var c;c=o.day-1;var v=Sv[o.year-Sv[0]],d=v>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var g=0;g>9&4095,_=b>>5&15,x=b&31,T=new Date(A,_-1,x+c);return i.year=T.getFullYear(),i.month=1+T.getMonth(),i.day=T.getDate(),i}});var lne=P(()=>{var yh=oo(),MSe=ti();function Q9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Q9.prototype=new yh.baseCalendar;MSe(Q9.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,yh.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,yh.local.invalidYear||yh.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,yh.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,yh.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});yh.calendars.coptic=Q9});var sne=P(()=>{var Xu=oo(),SSe=ti();function K9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}K9.prototype=new Xu.baseCalendar;SSe(K9.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xu.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xu.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xu.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Xu.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Xu.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Xu.local.invalidDate);return{century:ESe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Xu.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var ESe={20:"Fruitbat",21:"Anchovy"};Xu.calendars.discworld=K9});var fne=P(()=>{var gh=oo(),kSe=ti();function eM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}eM.prototype=new gh.baseCalendar;kSe(eM.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,gh.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,gh.local.invalidYear||gh.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,gh.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,gh.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});gh.calendars.ethiopian=eM});var une=P(()=>{var kv=oo(),CSe=ti();function rM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}rM.prototype=new kv.baseCalendar;CSe(rM.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,kv.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,c5(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,kv.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,kv.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,kv.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&c5(this.daysInYear(e),10)===5?30:r===9&&c5(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,kv.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,kv.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function c5(e,r){return e-r*Math.floor(e/r)}kv.calendars.hebrew=rM});var cne=P(()=>{var pg=oo(),LSe=ti();function tM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}tM.prototype=new pg.baseCalendar;LSe(tM.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,pg.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,pg.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,pg.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});pg.calendars.islamic=tM});var vne=P(()=>{var mg=oo(),DSe=ti();function aM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}aM.prototype=new mg.baseCalendar;DSe(aM.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,mg.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,mg.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,mg.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),o=i-Math.floor(i<14?1:13),l=a-Math.floor(o>2?4716:4715),s=t-n-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});mg.calendars.julian=aM});var dne=P(()=>{var ls=oo(),FSe=ti();function iM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}iM.prototype=new ls.baseCalendar;FSe(iM.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,ls.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ls.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ls.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,ls.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ls.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,ls.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,ls.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,ls.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,ls.local.invalidDate),n=a.toJD(),i=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=nM(e+8+17*20,365);return[Math.floor(r/20)+1,nM(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[hne(e+20,20),hne(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,ls.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function nM(e,r){return e-r*Math.floor(e/r)}function hne(e,r){return nM(e-1,r)+1}ls.calendars.mayan=iM});var mne=P(()=>{var bh=oo(),RSe=ti();function oM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}oM.prototype=new bh.baseCalendar;var pne=bh.instance("gregorian");RSe(oM.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,bh.local.invalidYear||bh.regionalOptions[""].invalidYear);return pne.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,bh.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,bh.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});bh.calendars.nanakshahi=oM});var yne=P(()=>{var xh=oo(),qSe=ti();function lM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}lM.prototype=new xh.baseCalendar;qSe(lM.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,xh.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,xh.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,xh.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=xh.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=xh.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;n>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var f=this.NEPALI_CALENDAR_DATA[i][o]-(s-n);return this.newDate(i,o,f)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var X1=oo(),PSe=ti();function h5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function v5(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),o=n-Math.floor(n);return i>o}h5.prototype=new X1.baseCalendar;PSe(h5.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,X1.local.invalidYear);return v5(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,X1.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,X1.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,v5(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});X1.calendars.persian=h5;X1.calendars.jalali=h5});var bne=P(()=>{var _h=oo(),NSe=ti(),d5=_h.instance();function sM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}sM.prototype=new _h.baseCalendar;NSe(sM.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,_h.local.invalidYear),t=this._t2gYear(r.year());return d5.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,_h.local.invalidYear),n=this._t2gYear(a.year());return d5.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,_h.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,_h.local.invalidDate),n=this._t2gYear(a.year());return d5.toJD(n,a.month(),a.day())},fromJD:function(e){var r=d5.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});_h.calendars.taiwan=sM});var xne=P(()=>{var wh=oo(),OSe=ti(),p5=wh.instance();function fM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fM.prototype=new wh.baseCalendar;OSe(fM.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,wh.local.invalidYear),t=this._t2gYear(r.year());return p5.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,wh.local.invalidYear),n=this._t2gYear(a.year());return p5.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,wh.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,wh.local.invalidDate),n=this._t2gYear(a.year());return p5.toJD(n,a.month(),a.day())},fromJD:function(e){var r=p5.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});wh.calendars.thai=fM});var _ne=P(()=>{var Ah=oo(),ISe=ti();function uM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}uM.prototype=new Ah.baseCalendar;ISe(uM.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ah.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,Ah.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Cv[n]-Cv[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Ah.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Cv[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-Cv[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=Ah.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=Ah.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});Ah.calendars.ummalqura=uM;var Cv=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var Ane=P((aBe,wne)=>{"use strict";wne.exports=oo();ine();one();lne();sne();fne();une();cne();vne();dne();mne();yne();gne();bne();xne();_ne()});var Lne=P((nBe,Cne)=>{"use strict";var Mne=Ane(),yg=Ur(),Sne=Jn(),BSe=Sne.EPOCHJD,zSe=Sne.ONEDAY,hM={valType:"enumerated",values:yg.sortObjectKeys(Mne.calendars),editType:"calc",dflt:"gregorian"},Ene=function(e,r,t,a){var n={};return n[t]=hM,yg.coerce(e,r,n,t,a)},GSe=function(e,r,t,a){for(var n=0;n{"use strict";Dne.exports=Lne()});var jSe=P((oBe,qne)=>{var Rne=AV();Rne.register([Wre(),Wte(),tne(),Fne()]);qne.exports=Rne});return jSe();})(); +`),ke;if(B&&(ke=A1(fe),B[ke]))return B[ke].apply(null,be);var Xe=Function.apply(null,he.concat(fe));return B&&(B[ke]=Xe),Xe.apply(null,be)}return{global:lr,link:xe,block:Ye,proc:Fr,scope:ir,cond:nr,compile:br}}var fo="xyzw".split(""),uc=5121,$i=1,xs=2,nu=0,uf=1,cc=2,cf=3,_s=4,vc=5,vf=6,hc="dither",s0="blend.enable",f0="blend.color",iu="blend.equation",ou="blend.func",dc="depth.enable",pc="depth.func",mc="depth.range",yc="depth.mask",lu="colorMask",hf="cull.enable",u0="cull.face",su="frontFace",df="lineWidth",gc="polygonOffset.enable",fu="polygonOffset.offset",pf="sample.alpha",mf="sample.enable",yf="sample.coverage",bc="stencil.enable",uu="stencil.mask",Ci="stencil.func",gf="stencil.opFront",vl="stencil.opBack",cu="scissor.enable",hl="scissor.box",si="viewport",ws="profile",Lo="framebuffer",Ho="vert",dl="frag",uo="elements",Do="primitive",Fo="count",vu="offset",yi="instances",Nl="vao",bf="Width",co="Height",Qi=Lo+bf,Ki=Lo+co,k1=si+bf,C1=si+co,c0="drawingBuffer",xc=c0+bf,_c=c0+co,Gh=[ou,iu,Ci,gf,vl,yf,si,hl,fu],vo=34962,hu=34963,Uh=2884,L1=3042,D1=3024,F1=2960,Hh=2929,Vh=3089,wc=32823,Yh=32926,Ac=32928,Tc=5126,pl=35664,an=35665,xf=35666,ml=5124,Ol=35667,As=35668,du=35669,pu=35670,Il=35671,_f=35672,mu=35673,yu=35674,gu=35675,bu=35676,Ts=35678,xu=35680,_u=4,h=1028,y=1029,w=2304,C=2305,L=32775,D=32776,G=519,q=7680,j=0,ne=1,ie=32774,me=513,ye=36160,je=36064,Ke={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Me={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Re={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ue={cw:w,ccw:C};function er(M){return Array.isArray(M)||ot(M)||et(M)}function tr(M){return M.sort(function(B,V){return B===si?-1:V===si?1:B=1,he>=2,B)}else if(V===_s){var be=M.data;return new Le(be.thisDep,be.contextDep,be.propDep,B)}else{if(V===vc)return new Le(!1,!1,!1,B);if(V===vf){for(var we=!1,xe=!1,Ye=!1,ir=0;ir=1&&(xe=!0),lr>=2&&(Ye=!0)}else nr.type===_s&&(we=we||nr.data.thisDep,xe=xe||nr.data.contextDep,Ye=Ye||nr.data.propDep)}return new Le(we,xe,Ye,B)}else return new Le(V===cf,V===cc,V===uf,B)}}var yt=new Le(!1,!1,!1,function(){});function kt(M,B,V,he,be,we,xe,Ye,ir,nr,lr,Zr,Fr,br,Ne,fe){var ke=nr.Record,Xe={add:32774,subtract:32778,"reverse subtract":32779};V.ext_blend_minmax&&(Xe.min=L,Xe.max=D);var ar=V.angle_instanced_arrays,ze=V.webgl_draw_buffers,xr=V.oes_vertex_array_object,mr={dirty:!0,profile:fe.profile},Wr={},Be=[],qe={},Mr={};function dr(N){return N.replace(".","_")}function fr(N,U,Q){var de=dr(N);Be.push(N),Wr[de]=mr[de]=!!Q,qe[de]=U}function ur(N,U,Q){var de=dr(N);Be.push(N),Array.isArray(Q)?(mr[de]=Q.slice(),Wr[de]=Q.slice()):mr[de]=Wr[de]=Q,Mr[de]=U}function Sr(N){return!!isNaN(N)}fr(hc,D1),fr(s0,L1),ur(f0,"blendColor",[0,0,0,0]),ur(iu,"blendEquationSeparate",[ie,ie]),ur(ou,"blendFuncSeparate",[ne,j,ne,j]),fr(dc,Hh,!0),ur(pc,"depthFunc",me),ur(mc,"depthRange",[0,1]),ur(yc,"depthMask",!0),ur(lu,lu,[!0,!0,!0,!0]),fr(hf,Uh),ur(u0,"cullFace",y),ur(su,su,C),ur(df,df,1),fr(gc,wc),ur(fu,"polygonOffset",[0,0]),fr(pf,Yh),fr(mf,Ac),ur(yf,"sampleCoverage",[1,!1]),fr(bc,F1),ur(uu,"stencilMask",-1),ur(Ci,"stencilFunc",[G,0,-1]),ur(gf,"stencilOpSeparate",[h,q,q,q]),ur(vl,"stencilOpSeparate",[y,q,q,q]),fr(cu,Vh),ur(hl,"scissor",[0,0,M.drawingBufferWidth,M.drawingBufferHeight]),ur(si,si,[0,0,M.drawingBufferWidth,M.drawingBufferHeight]);var jr={gl:M,context:Fr,strings:B,next:Wr,current:mr,draw:Zr,elements:we,buffer:be,shader:lr,attributes:nr.state,vao:nr,uniforms:ir,framebuffer:Ye,extensions:V,timer:br,isBufferArgs:er},ut={primTypes:Oo,compareFuncs:Me,blendFuncs:Ke,blendEquations:Xe,stencilOps:Re,glTypes:vn,orientationType:Ue};ze&&(ut.backBuffer=[y],ut.drawBuffer=k(he.maxDrawbuffers,function(N){return N===0?[0]:k(N,function(U){return je+U})}));var gr=0;function kr(){var N=zh({cache:Ne}),U=N.link,Q=N.global;N.id=gr++,N.batchId="0";var de=U(jr),Te=N.shared={props:"a0"};Object.keys(jr).forEach(function(K){Te[K]=Q.def(de,".",K)});var ue=N.next={},se=N.current={};Object.keys(Mr).forEach(function(K){Array.isArray(mr[K])&&(ue[K]=Q.def(Te.next,".",K),se[K]=Q.def(Te.current,".",K))});var te=N.constants={};Object.keys(ut).forEach(function(K){te[K]=Q.def(JSON.stringify(ut[K]))}),N.invoke=function(K,Y){switch(Y.type){case nu:var ve=["this",Te.context,Te.props,N.batchId];return K.def(U(Y.data),".call(",ve.slice(0,Math.max(Y.data.length+1,4)),")");case uf:return K.def(Te.props,Y.data);case cc:return K.def(Te.context,Y.data);case cf:return K.def("this",Y.data);case _s:return Y.data.append(N,K),Y.data.ref;case vc:return Y.data.toString();case vf:return Y.data.map(function(Ce){return N.invoke(K,Ce)})}},N.attribCache={};var W={};return N.scopeAttrib=function(K){var Y=B.id(K);if(Y in W)return W[Y];var ve=nr.scope[Y];ve||(ve=nr.scope[Y]=new ke);var Ce=W[Y]=U(ve);return Ce},N}function st(N){var U=N.static,Q=N.dynamic,de;if(ws in U){var Te=!!U[ws];de=zr(function(se,te){return Te}),de.enable=Te}else if(ws in Q){var ue=Q[ws];de=tt(ue,function(se,te){return se.invoke(te,ue)})}return de}function ft(N,U){var Q=N.static,de=N.dynamic;if(Lo in Q){var Te=Q[Lo];return Te?(Te=Ye.getFramebuffer(Te),zr(function(se,te){var W=se.link(Te),K=se.shared;te.set(K.framebuffer,".next",W);var Y=K.context;return te.set(Y,"."+Qi,W+".width"),te.set(Y,"."+Ki,W+".height"),W})):zr(function(se,te){var W=se.shared;te.set(W.framebuffer,".next","null");var K=W.context;return te.set(K,"."+Qi,K+"."+xc),te.set(K,"."+Ki,K+"."+_c),"null"})}else if(Lo in de){var ue=de[Lo];return tt(ue,function(se,te){var W=se.invoke(te,ue),K=se.shared,Y=K.framebuffer,ve=te.def(Y,".getFramebuffer(",W,")");te.set(Y,".next",ve);var Ce=K.context;return te.set(Ce,"."+Qi,ve+"?"+ve+".width:"+Ce+"."+xc),te.set(Ce,"."+Ki,ve+"?"+ve+".height:"+Ce+"."+_c),ve})}else return null}function St(N,U,Q){var de=N.static,Te=N.dynamic;function ue(W){if(W in de){var K=de[W],Y=!0,ve=K.x|0,Ce=K.y|0,$e,$r;return"width"in K?$e=K.width|0:Y=!1,"height"in K?$r=K.height|0:Y=!1,new Le(!Y&&U&&U.thisDep,!Y&&U&&U.contextDep,!Y&&U&&U.propDep,function(Xr,Gr){var Br=Xr.shared.context,Tr=$e;"width"in K||(Tr=Gr.def(Br,".",Qi,"-",ve));var qr=$r;return"height"in K||(qr=Gr.def(Br,".",Ki,"-",Ce)),[ve,Ce,Tr,qr]})}else if(W in Te){var Er=Te[W],Ar=tt(Er,function(Xr,Gr){var Br=Xr.invoke(Gr,Er),Tr=Xr.shared.context,qr=Gr.def(Br,".x|0"),Ir=Gr.def(Br,".y|0"),ct=Gr.def('"width" in ',Br,"?",Br,".width|0:","(",Tr,".",Qi,"-",qr,")"),Kt=Gr.def('"height" in ',Br,"?",Br,".height|0:","(",Tr,".",Ki,"-",Ir,")");return[qr,Ir,ct,Kt]});return U&&(Ar.thisDep=Ar.thisDep||U.thisDep,Ar.contextDep=Ar.contextDep||U.contextDep,Ar.propDep=Ar.propDep||U.propDep),Ar}else return U?new Le(U.thisDep,U.contextDep,U.propDep,function(Xr,Gr){var Br=Xr.shared.context;return[0,0,Gr.def(Br,".",Qi),Gr.def(Br,".",Ki)]}):null}var se=ue(si);if(se){var te=se;se=new Le(se.thisDep,se.contextDep,se.propDep,function(W,K){var Y=te.append(W,K),ve=W.shared.context;return K.set(ve,"."+k1,Y[2]),K.set(ve,"."+C1,Y[3]),Y})}return{viewport:se,scissor_box:ue(hl)}}function aa(N,U){var Q=N.static,de=typeof Q[dl]=="string"&&typeof Q[Ho]=="string";if(de){if(Object.keys(U.dynamic).length>0)return null;var Te=U.static,ue=Object.keys(Te);if(ue.length>0&&typeof Te[ue[0]]=="number"){for(var se=[],te=0;te"+qr+"?"+Y+".constant["+qr+"]:0;"}).join(""),"}}else{","if(",$e,"(",Y,".buffer)){",Xr,"=",$r,".createStream(",vo,",",Y,".buffer);","}else{",Xr,"=",$r,".getBuffer(",Y,".buffer);","}",Gr,'="type" in ',Y,"?",Ce.glTypes,"[",Y,".type]:",Xr,".dtype;",Er.normalized,"=!!",Y,".normalized;");function Br(Tr){K(Er[Tr],"=",Y,".",Tr,"|0;")}return Br("size"),Br("offset"),Br("stride"),Br("divisor"),K("}}"),K.exit("if(",Er.isStream,"){",$r,".destroyStream(",Xr,");","}"),Er}Te[ue]=tt(se,te)}),Te}function Za(N){var U=N.static,Q=N.dynamic,de={};return Object.keys(U).forEach(function(Te){var ue=U[Te];de[Te]=zr(function(se,te){return typeof ue=="number"||typeof ue=="boolean"?""+ue:se.link(ue)})}),Object.keys(Q).forEach(function(Te){var ue=Q[Te];de[Te]=tt(ue,function(se,te){return se.invoke(te,ue)})}),de}function on(N,U,Q,de,Te){var ue=N.static,se=N.dynamic,te=aa(N,U),W=ft(N,Te),K=St(N,W,Te),Y=Lt(N,Te),ve=nn(N,Te),Ce=Ma(N,Te,te);function $e(Br){var Tr=K[Br];Tr&&(ve[Br]=Tr)}$e(si),$e(dr(hl));var $r=Object.keys(ve).length>0,Er={framebuffer:W,draw:Y,shader:Ce,state:ve,dirty:$r,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Er.profile=st(N,Te),Er.uniforms=Ut(Q,Te),Er.drawVAO=Er.scopeVAO=Y.vao,!Er.drawVAO&&Ce.program&&!te&&V.angle_instanced_arrays&&Y.static.elements){var Ar=!0,Xr=Ce.program.attributes.map(function(Br){var Tr=U.static[Br];return Ar=Ar&&!!Tr,Tr});if(Ar&&Xr.length>0){var Gr=nr.getVAO(nr.createVAO({attributes:Xr,elements:Y.static.elements}));Er.drawVAO=new Le(null,null,null,function(Br,Tr){return Br.link(Gr)}),Er.useVAO=!0}}return te?Er.useVAO=!0:Er.attributes=Ya(U,Te),Er.context=Za(de,Te),Er}function pa(N,U,Q){var de=N.shared,Te=de.context,ue=N.scope();Object.keys(Q).forEach(function(se){U.save(Te,"."+se);var te=Q[se],W=te.append(N,U);Array.isArray(W)?ue(Te,".",se,"=[",W.join(),"];"):ue(Te,".",se,"=",W,";")}),U(ue)}function ma(N,U,Q,de){var Te=N.shared,ue=Te.gl,se=Te.framebuffer,te;ze&&(te=U.def(Te.extensions,".webgl_draw_buffers"));var W=N.constants,K=W.drawBuffer,Y=W.backBuffer,ve;Q?ve=Q.append(N,U):ve=U.def(se,".next"),de||U("if(",ve,"!==",se,".cur){"),U("if(",ve,"){",ue,".bindFramebuffer(",ye,",",ve,".framebuffer);"),ze&&U(te,".drawBuffersWEBGL(",K,"[",ve,".colorAttachments.length]);"),U("}else{",ue,".bindFramebuffer(",ye,",null);"),ze&&U(te,".drawBuffersWEBGL(",Y,");"),U("}",se,".cur=",ve,";"),de||U("}")}function Sa(N,U,Q){var de=N.shared,Te=de.gl,ue=N.current,se=N.next,te=de.current,W=de.next,K=N.cond(te,".dirty");Be.forEach(function(Y){var ve=dr(Y);if(!(ve in Q.state)){var Ce,$e;if(ve in se){Ce=se[ve],$e=ue[ve];var $r=k(mr[ve].length,function(Ar){return K.def(Ce,"[",Ar,"]")});K(N.cond($r.map(function(Ar,Xr){return Ar+"!=="+$e+"["+Xr+"]"}).join("||")).then(Te,".",Mr[ve],"(",$r,");",$r.map(function(Ar,Xr){return $e+"["+Xr+"]="+Ar}).join(";"),";"))}else{Ce=K.def(W,".",ve);var Er=N.cond(Ce,"!==",te,".",ve);K(Er),ve in qe?Er(N.cond(Ce).then(Te,".enable(",qe[ve],");").else(Te,".disable(",qe[ve],");"),te,".",ve,"=",Ce,";"):Er(Te,".",Mr[ve],"(",Ce,");",te,".",ve,"=",Ce,";")}}}),Object.keys(Q.state).length===0&&K(te,".dirty=false;"),U(K)}function Tt(N,U,Q,de){var Te=N.shared,ue=N.current,se=Te.current,te=Te.gl,W;tr(Object.keys(Q)).forEach(function(K){var Y=Q[K];if(!(de&&!de(Y))){var ve=Y.append(N,U);if(qe[K]){var Ce=qe[K];Dr(Y)?(W=N.link(ve,{stable:!0}),U(N.cond(W).then(te,".enable(",Ce,");").else(te,".disable(",Ce,");")),U(se,".",K,"=",W,";")):(U(N.cond(ve).then(te,".enable(",Ce,");").else(te,".disable(",Ce,");")),U(se,".",K,"=",ve,";"))}else if(Si(ve)){var $e=ue[K];U(te,".",Mr[K],"(",ve,");",ve.map(function($r,Er){return $e+"["+Er+"]="+$r}).join(";"),";")}else Dr(Y)?(W=N.link(ve,{stable:!0}),U(te,".",Mr[K],"(",W,");",se,".",K,"=",W,";")):U(te,".",Mr[K],"(",ve,");",se,".",K,"=",ve,";")}})}function qa(N,U){ar&&(N.instancing=U.def(N.shared.extensions,".angle_instanced_arrays"))}function Wt(N,U,Q,de,Te){var ue=N.shared,se=N.stats,te=ue.current,W=ue.timer,K=Q.profile;function Y(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var ve,Ce;function $e(Br){ve=U.def(),Br(ve,"=",Y(),";"),typeof Te=="string"?Br(se,".count+=",Te,";"):Br(se,".count++;"),br&&(de?(Ce=U.def(),Br(Ce,"=",W,".getNumPendingQueries();")):Br(W,".beginQuery(",se,");"))}function $r(Br){Br(se,".cpuTime+=",Y(),"-",ve,";"),br&&(de?Br(W,".pushScopeStats(",Ce,",",W,".getNumPendingQueries(),",se,");"):Br(W,".endQuery();"))}function Er(Br){var Tr=U.def(te,".profile");U(te,".profile=",Br,";"),U.exit(te,".profile=",Tr,";")}var Ar;if(K){if(Dr(K)){K.enable?($e(U),$r(U.exit),Er("true")):Er("false");return}Ar=K.append(N,U),Er(Ar)}else Ar=U.def(te,".profile");var Xr=N.block();$e(Xr),U("if(",Ar,"){",Xr,"}");var Gr=N.block();$r(Gr),U.exit("if(",Ar,"){",Gr,"}")}function Ja(N,U,Q,de,Te){var ue=N.shared;function se(W){switch(W){case pl:case Ol:case Il:return 2;case an:case As:case _f:return 3;case xf:case du:case mu:return 4;default:return 1}}function te(W,K,Y){var ve=ue.gl,Ce=U.def(W,".location"),$e=U.def(ue.attributes,"[",Ce,"]"),$r=Y.state,Er=Y.buffer,Ar=[Y.x,Y.y,Y.z,Y.w],Xr=["buffer","normalized","offset","stride"];function Gr(){U("if(!",$e,".buffer){",ve,".enableVertexAttribArray(",Ce,");}");var Tr=Y.type,qr;if(Y.size?qr=U.def(Y.size,"||",K):qr=K,U("if(",$e,".type!==",Tr,"||",$e,".size!==",qr,"||",Xr.map(function(ct){return $e+"."+ct+"!=="+Y[ct]}).join("||"),"){",ve,".bindBuffer(",vo,",",Er,".buffer);",ve,".vertexAttribPointer(",[Ce,qr,Tr,Y.normalized,Y.stride,Y.offset],");",$e,".type=",Tr,";",$e,".size=",qr,";",Xr.map(function(ct){return $e+"."+ct+"="+Y[ct]+";"}).join(""),"}"),ar){var Ir=Y.divisor;U("if(",$e,".divisor!==",Ir,"){",N.instancing,".vertexAttribDivisorANGLE(",[Ce,Ir],");",$e,".divisor=",Ir,";}")}}function Br(){U("if(",$e,".buffer){",ve,".disableVertexAttribArray(",Ce,");",$e,".buffer=null;","}if(",fo.map(function(Tr,qr){return $e+"."+Tr+"!=="+Ar[qr]}).join("||"),"){",ve,".vertexAttrib4f(",Ce,",",Ar,");",fo.map(function(Tr,qr){return $e+"."+Tr+"="+Ar[qr]+";"}).join(""),"}")}$r===$i?Gr():$r===xs?Br():(U("if(",$r,"===",$i,"){"),Gr(),U("}else{"),Br(),U("}"))}de.forEach(function(W){var K=W.name,Y=Q.attributes[K],ve;if(Y){if(!Te(Y))return;ve=Y.append(N,U)}else{if(!Te(yt))return;var Ce=N.scopeAttrib(K);ve={},Object.keys(new ke).forEach(function($e){ve[$e]=U.def(Ce,".",$e)})}te(N.link(W),se(W.info.type),ve)})}function ln(N,U,Q,de,Te,ue){for(var se=N.shared,te=se.gl,W,K=0;K1){for(var fn=[],Di=[],eo=0;eo>1)",Er],");")}function Ir(){Q(Ar,".drawArraysInstancedANGLE(",[Ce,$e,$r,Er],");")}Y&&Y!=="null"?Gr?qr():(Q("if(",Y,"){"),qr(),Q("}else{"),Ir(),Q("}")):Ir()}function Tr(){function qr(){Q(ue+".drawElements("+[Ce,$r,Xr,$e+"<<(("+Xr+"-"+uc+")>>1)"]+");")}function Ir(){Q(ue+".drawArrays("+[Ce,$e,$r]+");")}Y&&Y!=="null"?Gr?qr():(Q("if(",Y,"){"),qr(),Q("}else{"),Ir(),Q("}")):Ir()}ar&&(typeof Er!="number"||Er>=0)?typeof Er=="string"?(Q("if(",Er,">0){"),Br(),Q("}else if(",Er,"<0){"),Tr(),Q("}")):Br():Tr()}function pt(N,U,Q,de,Te){var ue=kr(),se=ue.proc("body",Te);return ar&&(ue.instancing=se.def(ue.shared.extensions,".angle_instanced_arrays")),N(ue,se,Q,de),ue.compile().body}function Rt(N,U,Q,de){qa(N,U),Q.useVAO?Q.drawVAO?U(N.shared.vao,".setVAO(",Q.drawVAO.append(N,U),");"):U(N.shared.vao,".setVAO(",N.shared.vao,".targetVAO);"):(U(N.shared.vao,".setVAO(null);"),Ja(N,U,Q,de.attributes,function(){return!0})),ln(N,U,Q,de.uniforms,function(){return!0},!1),sn(N,U,U,Q)}function Qt(N,U){var Q=N.proc("draw",1);qa(N,Q),pa(N,Q,U.context),ma(N,Q,U.framebuffer),Sa(N,Q,U),Tt(N,Q,U.state),Wt(N,Q,U,!1,!0);var de=U.shader.progVar.append(N,Q);if(Q(N.shared.gl,".useProgram(",de,".program);"),U.shader.program)Rt(N,Q,U,U.shader.program);else{Q(N.shared.vao,".setVAO(null);");var Te=N.global.def("{}"),ue=Q.def(de,".id"),se=Q.def(Te,"[",ue,"]");Q(N.cond(se).then(se,".call(this,a0);").else(se,"=",Te,"[",ue,"]=",N.link(function(te){return pt(Rt,N,U,te,1)}),"(",de,");",se,".call(this,a0);"))}Object.keys(U.state).length>0&&Q(N.shared.current,".dirty=true;"),N.shared.vao&&Q(N.shared.vao,".setVAO(null);")}function z(N,U,Q,de){N.batchId="a1",qa(N,U);function Te(){return!0}Ja(N,U,Q,de.attributes,Te),ln(N,U,Q,de.uniforms,Te,!1),sn(N,U,U,Q)}function pe(N,U,Q,de){qa(N,U);var Te=Q.contextDep,ue=U.def(),se="a0",te="a1",W=U.def();N.shared.props=W,N.batchId=ue;var K=N.scope(),Y=N.scope();U(K.entry,"for(",ue,"=0;",ue,"<",te,";++",ue,"){",W,"=",se,"[",ue,"];",Y,"}",K.exit);function ve(Xr){return Xr.contextDep&&Te||Xr.propDep}function Ce(Xr){return!ve(Xr)}if(Q.needsContext&&pa(N,Y,Q.context),Q.needsFramebuffer&&ma(N,Y,Q.framebuffer),Tt(N,Y,Q.state,ve),Q.profile&&ve(Q.profile)&&Wt(N,Y,Q,!1,!0),de)Q.useVAO?Q.drawVAO?ve(Q.drawVAO)?Y(N.shared.vao,".setVAO(",Q.drawVAO.append(N,Y),");"):K(N.shared.vao,".setVAO(",Q.drawVAO.append(N,K),");"):K(N.shared.vao,".setVAO(",N.shared.vao,".targetVAO);"):(K(N.shared.vao,".setVAO(null);"),Ja(N,K,Q,de.attributes,Ce),Ja(N,Y,Q,de.attributes,ve)),ln(N,K,Q,de.uniforms,Ce,!1),ln(N,Y,Q,de.uniforms,ve,!0),sn(N,K,Y,Q);else{var $e=N.global.def("{}"),$r=Q.shader.progVar.append(N,Y),Er=Y.def($r,".id"),Ar=Y.def($e,"[",Er,"]");Y(N.shared.gl,".useProgram(",$r,".program);","if(!",Ar,"){",Ar,"=",$e,"[",Er,"]=",N.link(function(Xr){return pt(z,N,Q,Xr,2)}),"(",$r,");}",Ar,".call(this,a0[",ue,"],",ue,");")}}function ge(N,U){var Q=N.proc("batch",2);N.batchId="0",qa(N,Q);var de=!1,Te=!0;Object.keys(U.context).forEach(function($e){de=de||U.context[$e].propDep}),de||(pa(N,Q,U.context),Te=!1);var ue=U.framebuffer,se=!1;ue?(ue.propDep?de=se=!0:ue.contextDep&&de&&(se=!0),se||ma(N,Q,ue)):ma(N,Q,null),U.state.viewport&&U.state.viewport.propDep&&(de=!0);function te($e){return $e.contextDep&&de||$e.propDep}Sa(N,Q,U),Tt(N,Q,U.state,function($e){return!te($e)}),(!U.profile||!te(U.profile))&&Wt(N,Q,U,!1,"a1"),U.contextDep=de,U.needsContext=Te,U.needsFramebuffer=se;var W=U.shader.progVar;if(W.contextDep&&de||W.propDep)pe(N,Q,U,null);else{var K=W.append(N,Q);if(Q(N.shared.gl,".useProgram(",K,".program);"),U.shader.program)pe(N,Q,U,U.shader.program);else{Q(N.shared.vao,".setVAO(null);");var Y=N.global.def("{}"),ve=Q.def(K,".id"),Ce=Q.def(Y,"[",ve,"]");Q(N.cond(Ce).then(Ce,".call(this,a0,a1);").else(Ce,"=",Y,"[",ve,"]=",N.link(function($e){return pt(pe,N,U,$e,2)}),"(",K,");",Ce,".call(this,a0,a1);"))}}Object.keys(U.state).length>0&&Q(N.shared.current,".dirty=true;"),N.shared.vao&&Q(N.shared.vao,".setVAO(null);")}function Nr(N,U){var Q=N.proc("scope",3);N.batchId="a2";var de=N.shared,Te=de.current;if(pa(N,Q,U.context),U.framebuffer&&U.framebuffer.append(N,Q),tr(Object.keys(U.state)).forEach(function(te){var W=U.state[te],K=W.append(N,Q);Si(K)?K.forEach(function(Y,ve){Sr(Y)?Q.set(N.next[te],"["+ve+"]",Y):Q.set(N.next[te],"["+ve+"]",N.link(Y,{stable:!0}))}):Dr(W)?Q.set(de.next,"."+te,N.link(K,{stable:!0})):Q.set(de.next,"."+te,K)}),Wt(N,Q,U,!0,!0),[uo,vu,Fo,yi,Do].forEach(function(te){var W=U.draw[te];if(W){var K=W.append(N,Q);Sr(K)?Q.set(de.draw,"."+te,K):Q.set(de.draw,"."+te,N.link(K),{stable:!0})}}),Object.keys(U.uniforms).forEach(function(te){var W=U.uniforms[te].append(N,Q);Array.isArray(W)&&(W="["+W.map(function(K){return Sr(K)?K:N.link(K,{stable:!0})})+"]"),Q.set(de.uniforms,"["+N.link(B.id(te),{stable:!0})+"]",W)}),Object.keys(U.attributes).forEach(function(te){var W=U.attributes[te].append(N,Q),K=N.scopeAttrib(te);Object.keys(new ke).forEach(function(Y){Q.set(K,"."+Y,W[Y])})}),U.scopeVAO){var ue=U.scopeVAO.append(N,Q);Sr(ue)?Q.set(de.vao,".targetVAO",ue):Q.set(de.vao,".targetVAO",N.link(ue,{stable:!0}))}function se(te){var W=U.shader[te];if(W){var K=W.append(N,Q);Sr(K)?Q.set(de.shader,"."+te,K):Q.set(de.shader,"."+te,N.link(K,{stable:!0}))}}se(Ho),se(dl),Object.keys(U.state).length>0&&(Q(Te,".dirty=true;"),Q.exit(Te,".dirty=true;")),Q("a1(",N.shared.context,",a0,",N.batchId,");")}function Dt(N){if(!(typeof N!="object"||Si(N))){for(var U=Object.keys(N),Q=0;Q=0;--pt){var Rt=jr[pt];Rt&&Rt(Ne,null,0)}V.flush(),lr&&lr.update()}function St(){!st&&jr.length>0&&(st=d.next(ft))}function aa(){st&&(d.cancel(ft),st=null)}function Ma(pt){pt.preventDefault(),be=!0,aa(),ut.forEach(function(Rt){Rt()})}function Lt(pt){V.getError(),be=!1,we.restore(),Wr.restore(),ar.restore(),Be.restore(),qe.restore(),Mr.restore(),xr.restore(),lr&&lr.restore(),dr.procs.refresh(),St(),gr.forEach(function(Rt){Rt()})}Sr&&(Sr.addEventListener(jt,Ma,!1),Sr.addEventListener(ca,Lt,!1));function nn(){jr.length=0,aa(),Sr&&(Sr.removeEventListener(jt,Ma),Sr.removeEventListener(ca,Lt)),Wr.clear(),Mr.clear(),qe.clear(),xr.clear(),Be.clear(),ze.clear(),ar.clear(),lr&&lr.clear(),kr.forEach(function(pt){pt()})}function Ut(pt){function Rt(ue){var se=e({},ue);delete se.uniforms,delete se.attributes,delete se.context,delete se.vao,"stencil"in se&&se.stencil.op&&(se.stencil.opBack=se.stencil.opFront=se.stencil.op,delete se.stencil.op);function te(W){if(W in se){var K=se[W];delete se[W],Object.keys(K).forEach(function(Y){se[W+"."+Y]=K[Y]})}}return te("blend"),te("depth"),te("cull"),te("stencil"),te("polygonOffset"),te("scissor"),te("sample"),"vao"in ue&&(se.vao=ue.vao),se}function Qt(ue,se){var te={},W={};return Object.keys(ue).forEach(function(K){var Y=ue[K];if(v.isDynamic(Y)){W[K]=v.unbox(Y,K);return}else if(se&&Array.isArray(Y)){for(var ve=0;ve0)return N.call(this,de(ue|0),ue|0)}else if(Array.isArray(ue)){if(ue.length)return N.call(this,ue,ue.length)}else return Rr.call(this,ue)}return e(Te,{stats:Dt,destroy:function(){Ht.destroy()}})}var Ya=Mr.setFBO=Ut({framebuffer:v.define.call(null,Xa,"framebuffer")});function Za(pt,Rt){var Qt=0;dr.procs.poll();var z=Rt.color;z&&(V.clearColor(+z[0]||0,+z[1]||0,+z[2]||0,+z[3]||0),Qt|=xn),"depth"in Rt&&(V.clearDepth(+Rt.depth),Qt|=Da),"stencil"in Rt&&(V.clearStencil(Rt.stencil|0),Qt|=ht),V.clear(Qt)}function on(pt){if("framebuffer"in pt)if(pt.framebuffer&&pt.framebuffer_reglType==="framebufferCube")for(var Rt=0;Rt<6;++Rt)Ya(e({framebuffer:pt.framebuffer.faces[Rt]},pt),Za);else Ya(pt,Za);else Za(null,pt)}function pa(pt){jr.push(pt);function Rt(){var Qt=$n(jr,pt);function z(){var pe=$n(jr,z);jr[pe]=jr[jr.length-1],jr.length-=1,jr.length<=0&&aa()}jr[Qt]=z}return St(),{cancel:Rt}}function ma(){var pt=ur.viewport,Rt=ur.scissor_box;pt[0]=pt[1]=Rt[0]=Rt[1]=0,Ne.viewportWidth=Ne.framebufferWidth=Ne.drawingBufferWidth=pt[2]=Rt[2]=V.drawingBufferWidth,Ne.viewportHeight=Ne.framebufferHeight=Ne.drawingBufferHeight=pt[3]=Rt[3]=V.drawingBufferHeight}function Sa(){Ne.tick+=1,Ne.time=qa(),ma(),dr.procs.poll()}function Tt(){Be.refresh(),ma(),dr.procs.refresh(),lr&&lr.update()}function qa(){return(p()-Zr)/1e3}Tt();function Wt(pt,Rt){var Qt;switch(pt){case"frame":return pa(Rt);case"lost":Qt=ut;break;case"restore":Qt=gr;break;case"destroy":Qt=kr;break;default:}return Qt.push(Rt),{cancel:function(){for(var z=0;z=0},read:fr,destroy:nn,_gl:V,_refresh:Tt,poll:function(){Sa(),lr&&lr.update()},now:qa,stats:Ye,getCachedCode:Ja,preloadCachedCode:ln});return B.onDone(null,sn),sn}return Li})});var Y_=P((VOe,Nre)=>{"use strict";var f9e=qre(),u9e=Pre();Nre.exports=function(r,t,a){var n=r._fullLayout,i=!0;return n._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(a);return}if(!(o.pick&&!n._has("parcoords"))){try{o.regl=u9e({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:r._context.plotGlPixelRatio||window.devicePixelRatio,extensions:t||[],cachedCode:a||{}})}catch(l){i=!1}o.regl||(i=!1),i&&this.addEventListener("webglcontextlost",function(l){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:l,layer:o.key})},!1)}}),i||f9e({container:n._glcontainer.node()}),i}});var Ure=P((g9,Gre)=>{"use strict";var Ore=s7(),Ire=B7(),c9e=ree(),Bre=Dre(),y9=Ur(),v9e=jc().selectMode,h9e=Y_(),d9e=qi(),p9e=R6(),m9e=i7().styleTextSelection,zre={};function y9e(e,r,t,a){var n=e._size,i=e.width*a,o=e.height*a,l=n.l*a,s=n.b*a,f=n.r*a,u=n.t*a,c=n.w*a,v=n.h*a;return[l+r.domain[0]*c,s+t.domain[0]*v,i-f-(1-r.domain[1])*c,o-u-(1-t.domain[1])*v]}var g9=Gre.exports=function(r,t,a){if(a.length){var n=r._fullLayout,i=t._scene,o=t.xaxis,l=t.yaxis,s,f;if(i){var u=h9e(r,["ANGLE_instanced_arrays","OES_element_index_uint"],zre);if(!u){i.init();return}var c=i.count,v=n._glcanvas.data()[0].regl;if(p9e(r,t,a),i.dirty){if((i.line2d||i.error2d)&&!(i.scatter2d||i.fill2d||i.glText)&&v.clear({color:!0,depth:!0}),i.error2d===!0&&(i.error2d=c9e(v)),i.line2d===!0&&(i.line2d=Ire(v)),i.scatter2d===!0&&(i.scatter2d=Ore(v)),i.fill2d===!0&&(i.fill2d=Ire(v)),i.glText===!0)for(i.glText=new Array(c),s=0;si.glText.length){var d=c-i.glText.length;for(s=0;sce&&(isNaN(oe[De])||isNaN(oe[De+1]));)De-=2;J.positions=oe.slice(ce,De+2)}return J}),i.line2d.update(i.lineOptions)),i.error2d){var m=(i.errorXOptions||[]).concat(i.errorYOptions||[]);i.error2d.update(m)}i.scatter2d&&i.scatter2d.update(i.markerOptions),i.fillOrder=y9.repeat(null,c),i.fill2d&&(i.fillOptions=i.fillOptions.map(function(J,oe){var ce=a[oe];if(!(!J||!ce||!ce[0]||!ce[0].trace)){var De=ce[0],Oe=De.trace,Ee=De.t,Je=i.lineOptions[oe],Ae,or,Ge=[];Oe._ownfill&&Ge.push(oe),Oe._nexttrace&&Ge.push(oe+1),Ge.length&&(i.fillOrder[oe]=Ge);var He=[],Ve=Je&&Je.positions||Ee.positions,Qe,ee;if(Oe.fill==="tozeroy"){for(Qe=0;QeQe&&isNaN(Ve[ee+1]);)ee-=2;Ve[Qe+1]!==0&&(He=[Ve[Qe],0]),He=He.concat(Ve.slice(Qe,ee+2)),Ve[ee+1]!==0&&(He=He.concat([Ve[ee],0]))}else if(Oe.fill==="tozerox"){for(Qe=0;QeQe&&isNaN(Ve[ee]);)ee-=2;Ve[Qe]!==0&&(He=[0,Ve[Qe+1]]),He=He.concat(Ve.slice(Qe,ee+2)),Ve[ee]!==0&&(He=He.concat([0,Ve[ee+1]]))}else if(Oe.fill==="toself"||Oe.fill==="tonext"){for(He=[],Ae=0,J.splitNull=!0,or=0;or-1;for(s=0;s{"use strict";var Hre=NJ();Hre.plot=Ure();Vre.exports=Hre});var jre=P((WOe,Wre)=>{"use strict";Wre.exports=Yre()});var b9=P((jOe,$re)=>{"use strict";var g9e=Qc(),Jre=E0(),Xre=am().axisHoverFormat,b9e=y0().hovertemplateAttrs,ug=sx(),x9e=Ri().idRegex,_9e=$a().templatedArray,Up=zn().extendFlat,Yu=g9e.marker,w9e=Yu.line,A9e=Up(Jre("marker.line",{editTypeOverride:"calc"}),{width:Up({},w9e.width,{editType:"calc"}),editType:"calc"}),W_=Up(Jre("marker"),{symbol:Yu.symbol,angle:Yu.angle,size:Up({},Yu.size,{editType:"markerSize"}),sizeref:Yu.sizeref,sizemin:Yu.sizemin,sizemode:Yu.sizemode,opacity:Yu.opacity,colorbar:Yu.colorbar,line:A9e,editType:"calc"});W_.color.editType=W_.cmin.editType=W_.cmax.editType="style";function Zre(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:x9e[e],editType:"plot"}}}$re.exports={dimensions:_9e("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:Up({},ug.text,{}),hovertext:Up({},ug.hovertext,{}),hovertemplate:b9e(),xhoverformat:Xre("x"),yhoverformat:Xre("y"),marker:W_,xaxes:Zre("x"),yaxes:Zre("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:ug.selected.marker,editType:"calc"},unselected:{marker:ug.unselected.marker,editType:"calc"},opacity:ug.opacity}});var x9=P((XOe,Qre)=>{"use strict";Qre.exports=function(e,r,t,a){a||(a=1/0);var n,i;for(n=0;n{"use strict";var _9=Ur(),T9e=gl(),Kre=b9(),M9e=qi(),S9e=gb(),E9e=x9(),k9e=fx().isOpenSymbol;ete.exports=function(r,t,a,n){function i(d,p){return _9.coerce(r,t,Kre,d,p)}var o=T9e(r,t,{name:"dimensions",handleItemDefaults:C9e}),l=i("diagonal.visible"),s=i("showupperhalf"),f=i("showlowerhalf"),u=E9e(t,o,"values");if(!u||!l&&!s&&!f){t.visible=!1;return}i("text"),i("hovertext"),i("hovertemplate"),i("xhoverformat"),i("yhoverformat"),S9e(r,t,a,n,i,{noAngleRef:!0,noStandOff:!0});var c=k9e(t.marker.symbol),v=M9e.isBubble(t);i("marker.line.width",c||v?1:0),L9e(r,t,n,i),_9.coerceSelectionMarkerOpacity(t,i)};function C9e(e,r){function t(n,i){return _9.coerce(e,r,Kre.dimensions,n,i)}t("label");var a=t("values");a&&a.length?t("visible"):r.visible=!1,t("axis.type"),t("axis.matches")}function L9e(e,r,t,a){var n=r.dimensions,i=n.length,o=r.showupperhalf,l=r.showlowerhalf,s=r.diagonal.visible,f,u,c=new Array(i),v=new Array(i);for(f=0;fu&&o||f{"use strict";var tte=Ur();ate.exports=function(r,t){var a=r._fullLayout,n=t.uid,i=a._splomScenes;i||(i=a._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},l={matrix:!1,selectBatch:[],unselectBatch:[]},s=i[t.uid];return s||(s=i[n]=tte.extendFlat({},o,l),s.draw=function(){s.matrix&&s.matrix.draw&&(s.selectBatch.length||s.unselectBatch.length?s.matrix.draw(s.unselectBatch,s.selectBatch):s.matrix.draw()),s.dirty=!1},s.destroy=function(){s.matrix&&s.matrix.destroy&&s.matrix.destroy(),s.matrixOptions=null,s.selectBatch=null,s.unselectBatch=null,s=null}),s.dirty||tte.extendFlat(s,o),s}});var lte=P(($Oe,ote)=>{"use strict";var w9=Ur(),j_=Sn(),D9e=Yd().calcMarkerSize,F9e=Yd().calcAxisExpansion,R9e=Km(),ite=jy().markerSelection,q9e=jy().markerStyle,P9e=nte(),N9e=Qn().BADNUM,O9e=fp().TOO_MANY_POINTS;ote.exports=function(r,t){var a=t.dimensions,n=t._length,i={},o=i.cdata=[],l=i.data=[],s=t._visibleDims=[],f,u,c,v,d;function p(_,x){for(var T=_.makeCalcdata({v:x.values,vcalendar:t.calendar},"v"),E=0;EO9e,b;for(m?b=i.sizeAvg||Math.max(i.size,3):b=D9e(t,n),u=0;u{(function(){var e,r,t,a,n,i;typeof performance!="undefined"&&performance!==null&&performance.now?cg.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(cg.exports=function(){return(e()-n)/1e6},r=process.hrtime,e=function(){var o;return o=r(),o[0]*1e9+o[1]},a=e(),i=process.uptime()*1e9,n=a-i):Date.now?(cg.exports=function(){return Date.now()-t},t=Date.now()):(cg.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(ste)});var cte=P((QOe,J_)=>{var I9e=fte(),Wu=window,X_=["moz","webkit"],Vp="AnimationFrame",Yp=Wu["request"+Vp],vg=Wu["cancel"+Vp]||Wu["cancelRequest"+Vp];for(Hp=0;!Yp&&Hp{vte.exports=function(r,t){var a=typeof r=="number",n=typeof t=="number";a&&!n?(t=r,r=0):!a&&!n&&(r=0,t=0),r=r|0,t=t|0;var i=t-r;if(i<0)throw new Error("array length must be positive");for(var o=new Array(i),l=0,s=r;l{"use strict";var B9e=s7(),z9e=Of(),G9e=th(),dte=cte(),U9e=hte(),T9=cp(),H9e=ah();mte.exports=wv;function wv(e,r){if(!(this instanceof wv))return new wv(e,r);this.traces=[],this.passes={},this.regl=e,this.scatter=B9e(e),this.canvas=this.scatter.canvas}wv.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=dte(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,dte(()=>{this.dirty=!1})),this)};wv.prototype.update=function(...e){if(!e.length)return;for(let a=0;am||!n.lower&&g{r[i+l]=a})}this.scatter.draw(...r)}return this};wv.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function V9e(e,r,t){let a=e.id!=null?e.id:e,n=r,i=t;return a<<16|(n&255)<<8|i&255}function $_(e,r,t){let a,n,i,o,l,s,f,u,c=e[r],v=e[t];return c.length>2?(a=c[0],i=c[2],n=c[1],o=c[3]):c.length?(a=n=c[0],i=o=c[1]):(a=c.x,n=c.y,i=c.x+c.width,o=c.y+c.height),v.length>2?(l=v[0],f=v[2],s=v[1],u=v[3]):v.length?(l=s=v[0],f=u=v[1]):(l=v.x,s=v.y,f=v.x+v.width,u=v.y+v.height),[l,n,f,o]}function pte(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let r=T9(e);return[r.x,r.y,r.x+r.width,r.y+r.height]}}});var bte=P((rIe,gte)=>{"use strict";var Y9e=yte(),M9=Ur(),Q_=Sn(),W9e=jc().selectMode;gte.exports=function(r,t,a){if(a.length)for(var n=0;n-1,I=W9e(u)||!!n.selectedpoints||O,R=!0;if(I){var H=n._length;if(n.selectedpoints){o.selectBatch=n.selectedpoints;var X=n.selectedpoints,le={};for(d=0;d{"use strict";xte.getDimIndex=function(r,t){for(var a=t._id,n=a.charAt(0),i={x:0,y:1}[n],o=r._visibleDims,l=0;l{"use strict";var _te=S9(),X9e=GT().calcHover,wte=mn().getFromId,Z9e=zn().extendFlat;function J9e(e,r,t,a,n){n||(n={});var i=(a||"").charAt(0)==="x",o=(a||"").charAt(0)==="y",l=Ate(e,r,t);if((i||o)&&n.hoversubplots==="axis"&&l[0])for(var s=(i?e.xa:e.ya)._subplotsWith,f=n.gd,u=Z9e({},e),c=0;c{"use strict";var Cte=Ur(),Ste=Cte.pushUnique,Ete=qi(),kte=S9();Lte.exports=function(r,t){var a=r.cd,n=a[0].trace,i=a[0].t,o=r.scene,l=o.matrixOptions.cdata,s=r.xaxis,f=r.yaxis,u=[];if(!o)return u;var c=!Ete.hasMarkers(n)&&!Ete.hasText(n);if(n.visible!==!0||c)return u;var v=kte.getDimIndex(n,s),d=kte.getDimIndex(n,f);if(v===!1||d===!1)return u;var p=i.xpx[v],g=i.ypx[d],m=l[v],b=l[d],A=(r.scene.selectBatch||[]).slice(),_=[];if(t!==!1&&!t.degenerate)for(var x=0;x{"use strict";var Fte=Ur(),$9e=Km(),Q9e=jy().markerStyle;Rte.exports=function(r,t){var a=t.trace,n=r._fullLayout._splomScenes[a.uid];if(n){$9e(r,a),Fte.extendFlat(n.matrixOptions,Q9e(r,a));var i=Fte.extendFlat({},n.matrixOptions,n.viewOpts);n.matrix.update(i,null)}}});var Nte=P((oIe,Pte)=>{"use strict";var K9e=Bt(),eMe=kT();Pte.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:b9(),supplyDefaults:rte(),colorbar:Mb(),calc:lte(),plot:bte(),hoverPoints:Mte().hoverPoints,selectPoints:Dte(),editStyle:qte(),meta:{}};K9e.register(eMe)});var Ute=P((lIe,Gte)=>{"use strict";var rMe=B7(),tMe=Bt(),aMe=Y_(),nMe=K1().getModuleCalcData,Av=oy(),Ote=Sn().getFromId,Ite=mn().shouldShowZeroLine,Bte="splom",zte={};function iMe(e){var r=e._fullLayout,t=tMe.getModule(Bte),a=nMe(e.calcdata,t)[0],n=aMe(e,["ANGLE_instanced_arrays","OES_element_index_uint"],zte);n&&(r._hasOnlyLargeSploms&&E9(e),t.plot(e,{},a))}function oMe(e){var r=e.calcdata,t=e._fullLayout;t._hasOnlyLargeSploms&&E9(e);for(var a=0;a{"use strict";var Hte=Nte();Hte.basePlotModule=Ute(),Vte.exports=Hte});var jte=P((fIe,Wte)=>{"use strict";Wte.exports=Yte()});var L9=P((uIe,Xte)=>{"use strict";var uMe=E0(),k9=Ul(),C9=zi(),cMe=tx().attributes,K_=zn().extendFlat,vMe=$a().templatedArray;Xte.exports={domain:cMe({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:C9({editType:"plot"}),tickfont:C9({autoShadowDflt:!0,editType:"plot"}),rangefont:C9({editType:"plot"}),dimensions:vMe("dimension",{label:{valType:"string",editType:"plot"},tickvals:K_({},k9.tickvals,{editType:"plot"}),ticktext:K_({},k9.ticktext,{editType:"plot"}),tickformat:K_({},k9.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:K_({editType:"calc"},uMe("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}});var hg=P((cIe,Zte)=>{"use strict";Zte.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:["contextLineLayer","focusLineLayer","pickLineLayer"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},id:{filterBarPattern:"filter-bar-pattern"}}});var dg=P((vIe,$te)=>{"use strict";var hMe=$g();function Jte(e){return[e]}$te.exports={keyFun:function(e){return e.key},repeat:Jte,descend:hMe,wrap:Jte,unwrap:function(e){return e[0]}}});var R9=P((hIe,sae)=>{"use strict";var Wn=hg(),ef=ha(),dMe=dg().keyFun,e5=dg().repeat,Wp=Ur().sorterAsc,pMe=Ur().strTranslate,Qte=Wn.bar.snapRatio;function Kte(e,r){return e*(1-Qte)+r*Qte}var eae=Wn.bar.snapClose;function mMe(e,r){return e*(1-eae)+r*eae}function t5(e,r,t,a){if(yMe(t,a))return t;var n=e?-1:1,i=0,o=r.length-1;if(n<0){var l=i;i=o,o=l}for(var s=r[i],f=s,u=i;n*u=r[t][0]&&e<=r[t][1])return!0;return!1}function gMe(e){e.attr("x",-Wn.bar.captureWidth/2).attr("width",Wn.bar.captureWidth)}function bMe(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function xMe(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var r=rae(e.brush.filter.getConsolidated(),e.height),t=[0],a,n,i,o=r.length?r[0][0]:null,l=0;le[1]+t||r=.9*e[1]+.1*e[0]?"n":r<=.9*e[0]+.1*e[1]?"s":"ns"}function tae(){ef.select(document.body).style("cursor",null)}function F9(e){e.attr("stroke-dasharray",xMe)}function r5(e,r){var t=ef.select(e).selectAll(".highlight, .highlight-shadow"),a=r?t.transition().duration(Wn.bar.snapDuration).each("end",r):t;F9(a)}function aae(e,r){var t=e.brush,a=t.filterSpecified,n=NaN,i={},o;if(a){var l=e.height,s=t.filter.getConsolidated(),f=rae(s,l),u=NaN,c=NaN,v=NaN;for(o=0;o<=f.length;o++){var d=f[o];if(d&&d[0]<=r&&r<=d[1]){u=o;break}else if(c=o?o-1:NaN,d&&d[0]>r){v=o;break}}if(n=u,isNaN(n)&&(isNaN(c)||isNaN(v)?n=isNaN(c)?v:c:n=r-f[c][1]=A[0]&&b<=A[1]){i.clickableOrdinalRange=A;break}}}return i}function wMe(e,r){ef.event.sourceEvent.stopPropagation();var t=r.height-ef.mouse(e)[1]-2*Wn.verticalPadding,a=r.unitToPaddedPx.invert(t),n=r.brush,i=aae(r,t),o=i.interval,l=n.svgBrush;if(l.wasDragged=!1,l.grabbingBar=i.region==="ns",l.grabbingBar){var s=o.map(r.unitToPaddedPx);l.grabPoint=t-s[0]-Wn.verticalPadding,l.barLength=s[1]-s[0]}l.clickableOrdinalRange=i.clickableOrdinalRange,l.stayingIntervals=r.multiselect&&n.filterSpecified?n.filter.getConsolidated():[],o&&(l.stayingIntervals=l.stayingIntervals.filter(function(f){return f[0]!==o[0]&&f[1]!==o[1]})),l.startExtent=i.region?o[i.region==="s"?1:0]:a,r.parent.inBrushDrag=!0,l.brushStartCallback()}function nae(e,r){ef.event.sourceEvent.stopPropagation();var t=r.height-ef.mouse(e)[1]-2*Wn.verticalPadding,a=r.brush.svgBrush;a.wasDragged=!0,a._dragging=!0,a.grabbingBar?a.newExtent=[t-a.grabPoint,t+a.barLength-a.grabPoint].map(r.unitToPaddedPx.invert):a.newExtent=[a.startExtent,r.unitToPaddedPx.invert(t)].sort(Wp),r.brush.filterSpecified=!0,a.extent=a.stayingIntervals.concat([a.newExtent]),a.brushCallback(r),r5(e.parentNode)}function AMe(e,r){var t=r.brush,a=t.filter,n=t.svgBrush;n._dragging||(iae(e,r),nae(e,r),r.brush.svgBrush.wasDragged=!1),n._dragging=!1;var i=ef.event;i.sourceEvent.stopPropagation();var o=n.grabbingBar;if(n.grabbingBar=!1,n.grabLocation=void 0,r.parent.inBrushDrag=!1,tae(),!n.wasDragged){n.wasDragged=void 0,n.clickableOrdinalRange?t.filterSpecified&&r.multiselect?n.extent.push(n.clickableOrdinalRange):(n.extent=[n.clickableOrdinalRange],t.filterSpecified=!0):o?(n.extent=n.stayingIntervals,n.extent.length===0&&D9(t)):D9(t),n.brushCallback(r),r5(e.parentNode),n.brushEndCallback(t.filterSpecified?a.getConsolidated():[]);return}var l=function(){a.set(a.getConsolidated())};if(r.ordinal){var s=r.unitTickvals;s[s.length-1]n.newExtent[0];n.extent=n.stayingIntervals.concat(f?[n.newExtent]:[]),n.extent.length||D9(t),n.brushCallback(r),f?r5(e.parentNode,l):(l(),r5(e.parentNode))}else l();n.brushEndCallback(t.filterSpecified?a.getConsolidated():[])}function iae(e,r){var t=r.height-ef.mouse(e)[1]-2*Wn.verticalPadding,a=aae(r,t),n="crosshair";a.clickableOrdinalRange?n="pointer":a.region&&(n=a.region+"-resize"),ef.select(document.body).style("cursor",n)}function TMe(e){e.on("mousemove",function(r){ef.event.preventDefault(),r.parent.inBrushDrag||iae(this,r)}).on("mouseleave",function(r){r.parent.inBrushDrag||tae()}).call(ef.behavior.drag().on("dragstart",function(r){wMe(this,r)}).on("drag",function(r){nae(this,r)}).on("dragend",function(r){AMe(this,r)}))}function oae(e,r){return e[0]-r[0]}function MMe(e,r,t){var a=t._context.staticPlot,n=e.selectAll(".background").data(e5);n.enter().append("rect").classed("background",!0).call(gMe).call(bMe).style("pointer-events",a?"none":"auto").attr("transform",pMe(0,Wn.verticalPadding)),n.call(TMe).attr("height",function(l){return l.height-Wn.verticalPadding});var i=e.selectAll(".highlight-shadow").data(e5);i.enter().append("line").classed("highlight-shadow",!0).attr("x",-Wn.bar.width/2).attr("stroke-width",Wn.bar.width+Wn.bar.strokeWidth).attr("stroke",r).attr("opacity",Wn.bar.strokeOpacity).attr("stroke-linecap","butt"),i.attr("y1",function(l){return l.height}).call(F9);var o=e.selectAll(".highlight").data(e5);o.enter().append("line").classed("highlight",!0).attr("x",-Wn.bar.width/2).attr("stroke-width",Wn.bar.width-Wn.bar.strokeWidth).attr("stroke",Wn.bar.fillColor).attr("opacity",Wn.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(l){return l.height}).call(F9)}function SMe(e,r,t){var a=e.selectAll("."+Wn.cn.axisBrush).data(e5,dMe);a.enter().append("g").classed(Wn.cn.axisBrush,!0),MMe(a,r,t)}function EMe(e){return e.svgBrush.extent.map(function(r){return r.slice()})}function D9(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function kMe(e){return function(t){var a=t.brush,n=EMe(a),i=n.slice();a.filter.set(i),e()}}function lae(e){for(var r=e.slice(),t=[],a,n=r.shift();n;){for(a=n.slice();(n=r.shift())&&n[0]<=a[1];)a[1]=Math.max(a[1],n[1]);t.push(a)}return t.length===1&&t[0][0]>t[0][1]&&(t=[]),t}function CMe(){var e=[],r,t;return{set:function(a){e=a.map(function(n){return n.slice().sort(Wp)}).sort(oae),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),r=lae(e),t=e.reduce(function(n,i){return[Math.min(n[0],i[0]),Math.max(n[1],i[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return r},getBounds:function(){return t}}}function LMe(e,r,t,a,n,i){var o=CMe();return o.set(t),{filter:o,filterSpecified:r,svgBrush:{extent:[],brushStartCallback:a,brushCallback:kMe(n),brushEndCallback:i}}}function DMe(e,r){if(Array.isArray(e[0])?(e=e.map(function(a){return a.sort(Wp)}),r.multiselect?e=lae(e.sort(oae)):e=[e[0]]):e=[e.sort(Wp)],r.tickvals){var t=r.tickvals.slice().sort(Wp);if(e=e.map(function(a){var n=[t5(0,t,a[0],[]),t5(1,t,a[1],[])];if(n[1]>n[0])return n}).filter(function(a){return a}),!e.length)return}return e.length>1?e:e[0]}sae.exports={makeBrush:LMe,ensureAxisBrush:SMe,cleanRanges:DMe}});var cae=P((dIe,uae)=>{"use strict";var Tv=Ur(),FMe=Rs().hasColorscale,RMe=md(),qMe=tx().defaults,PMe=gl(),NMe=mn(),fae=L9(),OMe=R9(),q9=hg().maxDimensionCount,IMe=x9();function BMe(e,r,t,a,n){var i=n("line.color",t);if(FMe(e,"line")&&Tv.isArrayOrTypedArray(i)){if(i.length)return n("line.colorscale"),RMe(e,r,a,n,{prefix:"line.",cLetter:"c"}),i.length;r.line.color=t}return 1/0}function zMe(e,r,t,a){function n(f,u){return Tv.coerce(e,r,fae.dimensions,f,u)}var i=n("values"),o=n("visible");if(i&&i.length||(o=r.visible=!1),o){n("label"),n("tickvals"),n("ticktext"),n("tickformat");var l=n("range");r._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:l},NMe.setConvert(r._ax,a.layout),n("multiselect");var s=n("constraintrange");s&&(r.constraintrange=OMe.cleanRanges(s,r))}}uae.exports=function(r,t,a,n){function i(u,c){return Tv.coerce(r,t,fae,u,c)}var o=r.dimensions;Array.isArray(o)&&o.length>q9&&(Tv.log("parcoords traces support up to "+q9+" dimensions at the moment"),o.splice(q9));var l=PMe(r,t,{name:"dimensions",layout:n,handleItemDefaults:zMe}),s=BMe(r,t,a,n,i);qMe(t,n,i),(!Array.isArray(l)||!l.length)&&(t.visible=!1),IMe(t,l,"values",s);var f=Tv.extendFlat({},n.font,{size:Math.round(n.font.size/1.2)});Tv.coerceFont(i,"labelfont",f),Tv.coerceFont(i,"tickfont",f,{autoShadowDflt:!0}),Tv.coerceFont(i,"rangefont",f),i("labelangle"),i("labelside"),i("unselected.line.color"),i("unselected.line.opacity")}});var hae=P((pIe,vae)=>{"use strict";var GMe=Ur().isArrayOrTypedArray,P9=gd(),UMe=dg().wrap;vae.exports=function(r,t){var a,n;return P9.hasColorscale(t,"line")&&GMe(t.line.color)?(a=t.line.color,n=P9.extractOpts(t.line).colorscale,P9.calc(r,t,{vals:a,containerStr:"line",cLetter:"c"})):(a=HMe(t._length),n=[[0,t.line.color],[1,t.line.color]]),UMe({lineColor:a,cscale:n})};function HMe(e){for(var r=new Array(e),t=0;t>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),N9.default[e])t=N9.default[e].slice(),n="rgb";else if(e==="transparent")a=0,n="rgb",t=[0,0,0];else if(e[0]==="#"){var i=e.slice(1),o=i.length,l=o<=4;a=1,l?(t=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],o===4&&(a=parseInt(i[3]+i[3],16)/255)):(t=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],o===8&&(a=parseInt(i[6]+i[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),n="rgb"}else if(r=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var s=r[1];n=s.replace(/a$/,"");var f=n==="cmyk"?4:n==="gray"?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/),n==="color"&&(n=t.shift()),t=t.map(function(v,d){if(v[v.length-1]==="%")return v=parseFloat(v)/100,d===3?v:n==="rgb"?v*255:n[0]==="h"||n[0]==="l"&&!d?v*100:n==="lab"?v*125:n==="lch"?d<2?v*150:v*360:n[0]==="o"&&!d?v:n==="oklab"?v*.4:n==="oklch"?d<2?v*.4:v*360:v;if(n[d]==="h"||d===2&&n[n.length-1]==="h"){if(dae[v]!==void 0)return dae[v];if(v.endsWith("deg"))return parseFloat(v);if(v.endsWith("turn"))return parseFloat(v)*360;if(v.endsWith("grad"))return parseFloat(v)*360/400;if(v.endsWith("rad"))return parseFloat(v)*180/Math.PI}return v==="none"?0:parseFloat(v)}),a=t.length>f?t.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(t=e.match(/([0-9]+)/g).map(function(v){return parseFloat(v)}),n=((c=(u=e.match(/([a-z])/ig))==null?void 0:u.join(""))==null?void 0:c.toLowerCase())||"rgb");return{space:n,values:t,alpha:a}}var N9,pae,dae,mae=Wh(()=>{N9=Une(Q8(),1),pae=VMe,dae={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var pg,O9=Wh(()=>{pg={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var a5,yae=Wh(()=>{O9();a5={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var r=e[0]/360,t=e[1]/100,a=e[2]/100,n,i,o,l,s,f=0;if(t===0)return s=a*255,[s,s,s];for(i=a<.5?a*(1+t):a+t-a*t,n=2*a-i,l=[0,0,0];f<3;)o=r+1/3*-(f-1),o<0?o++:o>1&&o--,s=6*o<1?n+(i-n)*6*o:2*o<1?i:3*o<2?n+(i-n)*(2/3-o)*6:n,l[f++]=s*255;return l}};pg.hsl=function(e){var r=e[0]/255,t=e[1]/255,a=e[2]/255,n=Math.min(r,t,a),i=Math.max(r,t,a),o=i-n,l,s,f;return i===n?l=0:r===i?l=(t-a)/o:t===i?l=2+(a-r)/o:a===i&&(l=4+(r-t)/o),l=Math.min(l*60,360),l<0&&(l+=360),f=(n+i)/2,i===n?s=0:f<=.5?s=o/(i+n):s=o/(2-i-n),[l,s*100,f*100]}});var bae={};Gne(bae,{default:()=>gae});function gae(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var r,t,a,n=pae(e);if(!n.space)return[];let i=n.space[0]==="h"?a5.min:pg.min,o=n.space[0]==="h"?a5.max:pg.max;return r=Array(3),r[0]=Math.min(Math.max(n.values[0],i[0]),o[0]),r[1]=Math.min(Math.max(n.values[1],i[1]),o[1]),r[2]=Math.min(Math.max(n.values[2],i[2]),o[2]),n.space[0]==="h"&&(r=a5.rgb(r)),r.push(Math.min(Math.max(n.alpha,0),1)),r}var xae=Wh(()=>{mae();O9();yae()});var I9=P(n5=>{"use strict";var YMe=Ur().isTypedArray;n5.convertTypedArray=function(e){return YMe(e)?Array.prototype.slice.call(e):e};n5.isOrdinal=function(e){return!!e.tickvals};n5.isVisible=function(e){return e.visible||!("visible"in e)}});var Lae=P((TIe,Cae)=>{"use strict";var WMe=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` +`),jMe=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` +`),mg=hg().maxDimensionCount,Sae=Ur(),_ae=1e-6,i5=2048,XMe=new Uint8Array(4),wae=new Uint8Array(4),Aae={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function ZMe(e){e.read({x:0,y:0,width:1,height:1,data:XMe})}function Eae(e,r,t,a,n){var i=e._gl;i.enable(i.SCISSOR_TEST),i.scissor(r,t,a,n),e.clear({color:[0,0,0,0],depth:1})}function JMe(e,r,t,a,n,i){var o=i.key;function l(s){var f=Math.min(a,n-s*a);s===0&&(window.cancelAnimationFrame(t.currentRafs[o]),delete t.currentRafs[o],Eae(e,i.scissorX,i.scissorY,i.scissorWidth,i.viewBoxSize[1])),!t.clearOnly&&(i.count=2*f,i.offset=2*s*a,r(i),s*a+f>>8*r)%256/255}function KMe(e,r,t){for(var a=new Array(e*(mg+4)),n=0,i=0;iae&&(ae=k[R].dim1.canvasX,X=R);I===0&&Eae(n,0,0,f.canvasWidth,f.canvasHeight);var $=_(t);for(R=0;R{"use strict";var Ni=ha(),ju=Ur(),z9=ju.isArrayOrTypedArray,Nae=ju.numberFormat,Oae=(xae(),mM(bae)).default,Iae=mn(),nSe=ju.strRotate,Uf=ju.strTranslate,iSe=po(),o5=Wa(),Dae=gd(),H9=dg(),os=H9.keyFun,Hf=H9.repeat,Bae=H9.unwrap,jp=I9(),xa=hg(),zae=R9(),oSe=Lae();function Fae(e,r,t){return ju.aggNums(e,null,r,t)}function Gae(e,r){return V9(Fae(Math.min,e,r),Fae(Math.max,e,r))}function l5(e){var r=e.range;return r?V9(r[0],r[1]):Gae(e.values,e._length)}function V9(e,r){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(r)||!isFinite(r))&&(r=0),e===r&&(e===0?(e-=1,r+=1):(e*=.9,r*=1.1)),[e,r]}function lSe(e,r){return r?function(t,a){var n=r[a];return n==null?e(t):n}:e}function sSe(e,r,t,a,n){var i=l5(t);return a?Ni.scale.ordinal().domain(a.map(lSe(Nae(t.tickformat),n))).range(a.map(function(o){var l=(o-i[0])/(i[1]-i[0]);return e-r+l*(2*r-e)})):Ni.scale.linear().domain(i).range([e-r,r])}function fSe(e,r){return Ni.scale.linear().range([r,e-r])}function uSe(e,r){return Ni.scale.linear().domain(l5(e)).range([r,1-r])}function cSe(e){if(e.tickvals){var r=l5(e);return Ni.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(t){return(t-r[0])/(r[1]-r[0])}))}}function vSe(e){var r=e.map(function(i){return i[0]}),t=e.map(function(i){var o=Oae(i[1]);return Ni.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),a=function(i){return function(o){return o[i]}},n="rgb".split("").map(function(i){return Ni.scale.linear().clamp(!0).domain(r).range(t.map(a(i)))});return function(i){return n.map(function(o){return o(i)})}}function U9(e){return e.dimensions.some(function(r){return r.brush.filterSpecified})}function hSe(e,r,t){var a=Bae(r),n=a.trace,i=jp.convertTypedArray(a.lineColor),o=n.line,l={color:Oae(n.unselected.line.color),opacity:n.unselected.line.opacity},s=Dae.extractOpts(o),f=s.reversescale?Dae.flipScale(a.cscale):a.cscale,u=n.domain,c=n.dimensions,v=e.width,d=n.labelangle,p=n.labelside,g=n.labelfont,m=n.tickfont,b=n.rangefont,A=ju.extendDeepNoArrays({},o,{color:i.map(Ni.scale.linear().domain(l5({values:i,range:[s.min,s.max],_length:n._length}))),blockLineCount:xa.blockLineCount,canvasOverdrag:xa.overdrag*xa.canvasPixelRatio}),_=Math.floor(v*(u.x[1]-u.x[0])),x=Math.floor(e.height*(u.y[1]-u.y[0])),T=e.margin||{l:80,r:80,t:100,b:80},E=_,S=x;return{key:t,colCount:c.filter(jp.isVisible).length,dimensions:c,tickDistance:xa.tickDistance,unitToColor:vSe(f),lines:A,deselectedLines:l,labelAngle:d,labelSide:p,labelFont:g,tickFont:m,rangeFont:b,layoutWidth:v,layoutHeight:e.height,domain:u,translateX:u.x[0]*v,translateY:e.height-u.y[1]*e.height,pad:T,canvasWidth:E*xa.canvasPixelRatio+2*A.canvasOverdrag,canvasHeight:S*xa.canvasPixelRatio,width:E,height:S,canvasPixelRatio:xa.canvasPixelRatio}}function dSe(e,r,t){var a=t.width,n=t.height,i=t.dimensions,o=t.canvasPixelRatio,l=function(v){return a*v/Math.max(1,t.colCount-1)},s=xa.verticalPadding/n,f=fSe(n,xa.verticalPadding),u={key:t.key,xScale:l,model:t,inBrushDrag:!1},c={};return u.dimensions=i.filter(jp.isVisible).map(function(v,d){var p=uSe(v,s),g=c[v.label];c[v.label]=(g||0)+1;var m=v.label+(g?"__"+g:""),b=v.constraintrange,A=b&&b.length;A&&!z9(b[0])&&(b=[b]);var _=A?b.map(function(H){return H.map(p)}):[[-1/0,1/0]],x=function(){var H=u;H.focusLayer&&H.focusLayer.render(H.panels,!0);var X=U9(H);!e.contextShown()&&X?(H.contextLayer&&H.contextLayer.render(H.panels,!0),e.contextShown(!0)):e.contextShown()&&!X&&(H.contextLayer&&H.contextLayer.render(H.panels,!0,!0),e.contextShown(!1))},T=v.values;T.length>v._length&&(T=T.slice(0,v._length));var E=v.tickvals,S;function k(H,X){return{val:H,text:S[X]}}function F(H,X){return H.val-X.val}if(z9(E)&&E.length){ju.isTypedArray(E)&&(E=Array.from(E)),S=v.ticktext,!z9(S)||!S.length?S=E.map(Nae(v.tickformat)):S.length>E.length?S=S.slice(0,E.length):E.length>S.length&&(E=E.slice(0,S.length));for(var O=1;O=X||Z>=le)return;var J=R.lineLayer.readPixel($,le-1-Z),oe=J[3]!==0,ce=oe?J[2]+256*(J[1]+256*J[0]):null,De={x:$,y:Z,clientX:H.clientX,clientY:H.clientY,dataIndex:R.model.key,curveNumber:ce};ce!==p&&(oe?n.hover(De):n.unhover&&n.unhover(De),p=ce)}}),d.style("opacity",function(R){return R.pick?0:1}),l.style("background","rgba(255, 255, 255, 0)");var m=l.selectAll("."+xa.cn.parcoords).data(v,os);m.exit().remove(),m.enter().append("g").classed(xa.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),m.attr("transform",function(R){return Uf(R.model.translateX,R.model.translateY)});var b=m.selectAll("."+xa.cn.parcoordsControlView).data(Hf,os);b.enter().append("g").classed(xa.cn.parcoordsControlView,!0),b.attr("transform",function(R){return Uf(R.model.pad.l,R.model.pad.t)});var A=b.selectAll("."+xa.cn.yAxis).data(function(R){return R.dimensions},os);A.enter().append("g").classed(xa.cn.yAxis,!0),b.each(function(R){G9(A,R,f)}),d.each(function(R){if(R.viewModel){!R.lineLayer||n?R.lineLayer=oSe(this,R):R.lineLayer.update(R),(R.key||R.key===0)&&(R.viewModel[R.key]=R.lineLayer);var H=!R.context||n;R.lineLayer.render(R.viewModel.panels,H)}}),A.attr("transform",function(R){return Uf(R.xScale(R.xIndex),0)}),A.call(Ni.behavior.drag().origin(function(R){return R}).on("drag",function(R){var H=R.parent;c.linePickActive(!1),R.x=Math.max(-xa.overdrag,Math.min(R.model.width+xa.overdrag,Ni.event.x)),R.canvasX=R.x*R.model.canvasPixelRatio,A.sort(function(X,le){return X.x-le.x}).each(function(X,le){X.xIndex=le,X.x=R===X?X.x:X.xScale(X.xIndex),X.canvasX=X.x*X.model.canvasPixelRatio}),G9(A,H,f),A.filter(function(X){return Math.abs(R.xIndex-X.xIndex)!==0}).attr("transform",function(X){return Uf(X.xScale(X.xIndex),0)}),Ni.select(this).attr("transform",Uf(R.x,0)),A.each(function(X,le,ae){ae===R.parent.key&&(H.dimensions[le]=X)}),H.contextLayer&&H.contextLayer.render(H.panels,!1,!U9(H)),H.focusLayer.render&&H.focusLayer.render(H.panels)}).on("dragend",function(R){var H=R.parent;R.x=R.xScale(R.xIndex),R.canvasX=R.x*R.model.canvasPixelRatio,G9(A,H,f),Ni.select(this).attr("transform",function(X){return Uf(X.x,0)}),H.contextLayer&&H.contextLayer.render(H.panels,!1,!U9(H)),H.focusLayer&&H.focusLayer.render(H.panels),H.pickLayer&&H.pickLayer.render(H.panels,!0),c.linePickActive(!0),n&&n.axesMoved&&n.axesMoved(H.key,H.dimensions.map(function(X){return X.crossfilterDimensionIndex}))})),A.exit().remove();var _=A.selectAll("."+xa.cn.axisOverlays).data(Hf,os);_.enter().append("g").classed(xa.cn.axisOverlays,!0),_.selectAll("."+xa.cn.axis).remove();var x=_.selectAll("."+xa.cn.axis).data(Hf,os);x.enter().append("g").classed(xa.cn.axis,!0),x.each(function(R){var H=R.model.height/R.model.tickDistance,X=R.domainScale,le=X.domain();Ni.select(this).call(Ni.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(H,R.tickFormat).tickValues(R.ordinal?le:null).tickFormat(function(ae){return jp.isOrdinal(R)?ae:Uae(R.model.dimensions[R.visibleIndex],ae)}).scale(X)),o5.font(x.selectAll("text"),R.model.tickFont)}),x.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),x.selectAll("text").style("cursor","default");var T=_.selectAll("."+xa.cn.axisHeading).data(Hf,os);T.enter().append("g").classed(xa.cn.axisHeading,!0);var E=T.selectAll("."+xa.cn.axisTitle).data(Hf,os);E.enter().append("text").classed(xa.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",i?"none":"auto"),E.text(function(R){return R.label}).each(function(R){var H=Ni.select(this);o5.font(H,R.model.labelFont),iSe.convertToTspans(H,r)}).attr("transform",function(R){var H=qae(R.model.labelAngle,R.model.labelSide),X=xa.axisTitleOffset;return(H.dir>0?"":Uf(0,2*X+R.model.height))+nSe(H.degrees)+Uf(-X*H.dx,-X*H.dy)}).attr("text-anchor",function(R){var H=qae(R.model.labelAngle,R.model.labelSide),X=Math.abs(H.dx),le=Math.abs(H.dy);return 2*X>le?H.dir*H.dx<0?"start":"end":"middle"});var S=_.selectAll("."+xa.cn.axisExtent).data(Hf,os);S.enter().append("g").classed(xa.cn.axisExtent,!0);var k=S.selectAll("."+xa.cn.axisExtentTop).data(Hf,os);k.enter().append("g").classed(xa.cn.axisExtentTop,!0),k.attr("transform",Uf(0,-xa.axisExtentOffset));var F=k.selectAll("."+xa.cn.axisExtentTopText).data(Hf,os);F.enter().append("text").classed(xa.cn.axisExtentTopText,!0).call(Rae),F.text(function(R){return Pae(R,!0)}).each(function(R){o5.font(Ni.select(this),R.model.rangeFont)});var O=S.selectAll("."+xa.cn.axisExtentBottom).data(Hf,os);O.enter().append("g").classed(xa.cn.axisExtentBottom,!0),O.attr("transform",function(R){return Uf(0,R.model.height+xa.axisExtentOffset)});var I=O.selectAll("."+xa.cn.axisExtentBottomText).data(Hf,os);I.enter().append("text").classed(xa.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(Rae),I.text(function(R){return Pae(R,!1)}).each(function(R){o5.font(Ni.select(this),R.model.rangeFont)}),zae.ensureAxisBrush(_,u,r)}});var W9=P((Y9,Xae)=>{"use strict";var ySe=Vae(),gSe=Y_(),Yae=I9().isVisible,jae={};function Wae(e,r,t){var a=r.indexOf(t),n=e.indexOf(a);return n===-1&&(n+=r.length),n}function bSe(e,r){return function(a,n){return Wae(e,r,a)-Wae(e,r,n)}}var Y9=Xae.exports=function(r,t){var a=r._fullLayout,n=gSe(r,[],jae);if(n){var i={},o={},l={},s={},f=a._size;t.forEach(function(p,g){var m=p[0].trace;l[g]=m.index;var b=s[g]=m.index;i[g]=r.data[b].dimensions,o[g]=r.data[b].dimensions.slice()});var u=function(p,g,m){var b=o[p][g],A=m.map(function(k){return k.slice()}),_="dimensions["+g+"].constraintrange",x=a._tracePreGUI[r._fullData[l[p]]._fullInput.uid];if(x[_]===void 0){var T=b.constraintrange;x[_]=T||null}var E=r._fullData[l[p]].dimensions[g];A.length?(A.length===1&&(A=A[0]),b.constraintrange=A,E.constraintrange=A.slice(),A=[A]):(delete b.constraintrange,delete E.constraintrange,A=null);var S={};S[_]=A,r.emit("plotly_restyle",[S,[s[p]]])},c=function(p){r.emit("plotly_hover",p)},v=function(p){r.emit("plotly_unhover",p)},d=function(p,g){var m=bSe(g,o[p].filter(Yae));i[p].sort(m),o[p].filter(function(b){return!Yae(b)}).sort(function(b){return o[p].indexOf(b)}).forEach(function(b){i[p].splice(i[p].indexOf(b),1),i[p].splice(o[p].indexOf(b),0,b)}),r.emit("plotly_restyle",[{dimensions:[i[p]]},[s[p]]])};ySe(r,t,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{filterChanged:u,hover:c,unhover:v,axesMoved:d})}};Y9.reglPrecompiled=jae});var Jae=P(yg=>{"use strict";var Zae=ha(),xSe=K1().getModuleCalcData,_Se=W9(),wSe=Ic();yg.name="parcoords";yg.plot=function(e){var r=xSe(e.calcdata,"parcoords")[0];r.length&&_Se(e,r)};yg.clean=function(e,r,t,a){var n=a._has&&a._has("parcoords"),i=r._has&&r._has("parcoords");n&&!i&&(a._paperdiv.selectAll(".parcoords").remove(),a._glimages.selectAll("*").remove())};yg.toSVG=function(e){var r=e._fullLayout._glimages,t=Zae.select(e).selectAll(".svg-container"),a=t.filter(function(i,o){return o===t.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function n(){var i=this,o=i.toDataURL("image/png"),l=r.append("svg:image");l.attr({xmlns:wSe.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:i.style.width,height:i.style.height})}a.each(n),window.setTimeout(function(){Zae.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var Qae=P((EIe,$ae)=>{"use strict";$ae.exports={attributes:L9(),supplyDefaults:cae(),calc:hae(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:Jae(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var rne=P((kIe,ene)=>{"use strict";var Kae=Qae();Kae.plot=W9();ene.exports=Kae});var ane=P((CIe,tne)=>{"use strict";tne.exports=rne()});var lo=P((LIe,ine)=>{var f5=ni();function nne(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}f5(nne.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function j9(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(na.local.invalidDate||na.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function s5(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}f5(j9.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(na.local.invalidDate||na.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(na.local.differentCalendars||na.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+s5(Math.abs(this.year()),4)+"-"+s5(this.month(),2)+"-"+s5(this.day(),2)}});function X9(){this.shortYearCutoff="+10"}f5(X9.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new j9(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,na.local.invalidYear||na.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,na.local.invalidYear||na.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+s5(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,na.local.invalidYear||na.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,na.local.invalidMonth||na.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,na.local.invalidMonth||na.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,na.local.invalidYear||na.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,na.local.invalidDate||na.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),n=e.day(),l=function(u){for(;oc-1+u.minMonth;)i++,o-=c,c=u.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),n];return this._validateLevel--,s}catch(f){throw this._validateLevel--,f}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,na.local.invalidDate||na.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),f=n-(s>2.5?4716:4715);return f<=0&&f--,this.newDate(f,s,l)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,na.local.invalidDate||na.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var na=ine.exports=new nne;na.cdate=j9;na.baseCalendar=X9;na.calendars.gregorian=Z9});var one=P(()=>{var J9=ni(),Oi=lo();J9(Oi.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Oi.local=Oi.regionalOptions[""];J9(Oi.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});J9(Oi.baseCalendar.prototype,{UNIX_EPOCH:Oi.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Oi.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Oi.local.invalidFormat||Oi.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,f=function(x,T){for(var E=1;_+E1},u=function(x,T,E,S){var k=""+T;if(f(x,S))for(;k.length1},A=function(R,H){var X=b(R,H),le=[2,3,X?4:2,X?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],ae=new RegExp("^-?\\d{1,"+le+"}"),$=r.substring(k).match(ae);if(!$)throw(Oi.local.missingNumberAt||Oi.regionalOptions[""].missingNumberAt).replace(/\{0\}/,k);return k+=$[0].length,parseInt($[0],10)},_=this,x=function(){if(typeof l=="function"){b("m");var R=l.call(_,r.substring(k));return k+=R.length,R}return A("m")},T=function(R,H,X,le){for(var ae=b(R,le)?X:H,$=0;$-1){v=1,d=p;for(var I=this.daysInMonth(c,v);d>I;I=this.daysInMonth(c,v))v++,d-=I}return u>-1?this.fromJD(u):this.newDate(c,v,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,o=function(l){try{return i.parseDate(a,l,n)}catch(c){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),f=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,u=f.exec(l);u;)s.add(parseInt(u[1],10),u[2]||"d"),u=f.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var lne=P(()=>{var Mv=lo(),ASe=ni(),$9=Mv.instance();function u5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}u5.prototype=new Mv.baseCalendar;ASe(u5.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(MSe);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(SSe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(ESe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw Mv.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw Mv.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,Mv.local.invalidyear),n=Ev[a-Ev[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=$9.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var f=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(f/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Sv[e-Sv[0]],a=t>>13,n=a?12:11;if(r>n)throw Mv.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,Mv.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=CSe(e,i,t,n);return $9.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=$9.fromJD(e),t=kSe(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(TSe),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),o=this.toChineseMonth(a,n),l=Object.getPrototypeOf(u5.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),f=l.month(),u=this.isIntercalaryMonth(s,o),c=i&&u?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);c!==f&&l.month(c)}return l}});var TSe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,MSe=/^\d?\d[iI]?/m,SSe=/^闰?十?[一二三四五六七八九]?月/m,ESe=/^闰?十?[一二三四五六七八九]?/m;Mv.calendars.chinese=u5;var Sv=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Ev=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function kSe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var f=Ev[n.year-Ev[0]],u=n.year<<9|n.month<<5|n.day;i.year=u>=f?n.year:n.year-1,f=Ev[i.year-Ev[0]];var c=f>>9&4095,v=f>>5&15,d=f&31,p,g=new Date(c,v-1,d),m=new Date(n.year,n.month-1,n.day);p=Math.round((m-g)/(24*3600*1e3));var b=Sv[i.year-Sv[0]],A;for(A=0;A<13;A++){var _=b&1<<12-A?30:29;if(p<_)break;p-=_}var x=b>>13;return!x||A=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var f=typeof t=="number"&&t>=1&&t<=30;if(!f)throw new Error("Lunar day outside range 1 - 30");var u;typeof a=="object"?(u=!1,i=a):(u=!!a,i=n||{}),o={year:e,month:r,day:t,isIntercalary:u}}var c;c=o.day-1;var v=Sv[o.year-Sv[0]],d=v>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var g=0;g>9&4095,_=b>>5&15,x=b&31,T=new Date(A,_-1,x+c);return i.year=T.getFullYear(),i.month=1+T.getMonth(),i.day=T.getDate(),i}});var sne=P(()=>{var gh=lo(),LSe=ni();function Q9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Q9.prototype=new gh.baseCalendar;LSe(Q9.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,gh.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,gh.local.invalidYear||gh.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,gh.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,gh.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});gh.calendars.coptic=Q9});var fne=P(()=>{var Xu=lo(),DSe=ni();function K9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}K9.prototype=new Xu.baseCalendar;DSe(K9.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xu.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xu.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xu.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Xu.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Xu.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Xu.local.invalidDate);return{century:FSe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Xu.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var FSe={20:"Fruitbat",21:"Anchovy"};Xu.calendars.discworld=K9});var une=P(()=>{var bh=lo(),RSe=ni();function eM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}eM.prototype=new bh.baseCalendar;RSe(eM.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,bh.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,bh.local.invalidYear||bh.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,bh.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,bh.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});bh.calendars.ethiopian=eM});var cne=P(()=>{var kv=lo(),qSe=ni();function rM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}rM.prototype=new kv.baseCalendar;qSe(rM.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,kv.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,c5(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,kv.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,kv.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,kv.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&c5(this.daysInYear(e),10)===5?30:r===9&&c5(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,kv.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,kv.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function c5(e,r){return e-r*Math.floor(e/r)}kv.calendars.hebrew=rM});var vne=P(()=>{var gg=lo(),PSe=ni();function tM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}tM.prototype=new gg.baseCalendar;PSe(tM.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,gg.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,gg.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,gg.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});gg.calendars.islamic=tM});var hne=P(()=>{var bg=lo(),NSe=ni();function aM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}aM.prototype=new bg.baseCalendar;NSe(aM.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,bg.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,bg.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,bg.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),o=i-Math.floor(i<14?1:13),l=a-Math.floor(o>2?4716:4715),s=t-n-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});bg.calendars.julian=aM});var pne=P(()=>{var ls=lo(),OSe=ni();function iM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}iM.prototype=new ls.baseCalendar;OSe(iM.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,ls.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ls.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ls.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,ls.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ls.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,ls.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,ls.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,ls.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,ls.local.invalidDate),n=a.toJD(),i=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=nM(e+8+17*20,365);return[Math.floor(r/20)+1,nM(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[dne(e+20,20),dne(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,ls.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function nM(e,r){return e-r*Math.floor(e/r)}function dne(e,r){return nM(e-1,r)+1}ls.calendars.mayan=iM});var yne=P(()=>{var xh=lo(),ISe=ni();function oM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}oM.prototype=new xh.baseCalendar;var mne=xh.instance("gregorian");ISe(oM.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,xh.local.invalidYear||xh.regionalOptions[""].invalidYear);return mne.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,xh.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,xh.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});xh.calendars.nanakshahi=oM});var gne=P(()=>{var _h=lo(),BSe=ni();function lM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}lM.prototype=new _h.baseCalendar;BSe(lM.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,_h.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,_h.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,_h.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=_h.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=_h.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;n>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var f=this.NEPALI_CALENDAR_DATA[i][o]-(s-n);return this.newDate(i,o,f)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Xp=lo(),zSe=ni();function h5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function v5(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),o=n-Math.floor(n);return i>o}h5.prototype=new Xp.baseCalendar;zSe(h5.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Xp.local.invalidYear);return v5(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Xp.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Xp.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,v5(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});Xp.calendars.persian=h5;Xp.calendars.jalali=h5});var xne=P(()=>{var wh=lo(),GSe=ni(),d5=wh.instance();function sM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}sM.prototype=new wh.baseCalendar;GSe(sM.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,wh.local.invalidYear),t=this._t2gYear(r.year());return d5.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,wh.local.invalidYear),n=this._t2gYear(a.year());return d5.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,wh.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,wh.local.invalidDate),n=this._t2gYear(a.year());return d5.toJD(n,a.month(),a.day())},fromJD:function(e){var r=d5.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});wh.calendars.taiwan=sM});var _ne=P(()=>{var Ah=lo(),USe=ni(),p5=Ah.instance();function fM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fM.prototype=new Ah.baseCalendar;USe(fM.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,Ah.local.invalidYear),t=this._t2gYear(r.year());return p5.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Ah.local.invalidYear),n=this._t2gYear(a.year());return p5.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ah.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Ah.local.invalidDate),n=this._t2gYear(a.year());return p5.toJD(n,a.month(),a.day())},fromJD:function(e){var r=p5.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Ah.calendars.thai=fM});var wne=P(()=>{var Th=lo(),HSe=ni();function uM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}uM.prototype=new Th.baseCalendar;HSe(uM.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Th.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,Th.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Cv[n]-Cv[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Th.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Cv[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-Cv[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=Th.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=Th.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});Th.calendars.ummalqura=uM;var Cv=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var Tne=P((lBe,Ane)=>{"use strict";Ane.exports=lo();one();lne();sne();fne();une();cne();vne();hne();pne();yne();gne();bne();xne();_ne();wne()});var Dne=P((sBe,Lne)=>{"use strict";var Sne=Tne(),xg=Ur(),Ene=Qn(),VSe=Ene.EPOCHJD,YSe=Ene.ONEDAY,hM={valType:"enumerated",values:xg.sortObjectKeys(Sne.calendars),editType:"calc",dflt:"gregorian"},kne=function(e,r,t,a){var n={};return n[t]=hM,xg.coerce(e,r,n,t,a)},WSe=function(e,r,t,a){for(var n=0;n{"use strict";Fne.exports=Dne()});var QSe=P((uBe,Pne)=>{var qne=TV();qne.register([jre(),jte(),ane(),Rne()]);Pne.exports=qne});return QSe();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-gl3d.js b/dist/plotly-gl3d.js index c19df1217b8..35670afcc6d 100644 --- a/dist/plotly-gl3d.js +++ b/dist/plotly-gl3d.js @@ -1,5 +1,5 @@ /** -* plotly.js (gl3d) v3.1.0-rc.0 +* plotly.js (gl3d) 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), @@ -95747,6 +95858,7 @@ var Plotly = (() => { data: options.data, showGrid: true, noAutotickangles: true, + noMinorloglabels: true, noTicklabelindex: true, noTickson: true, noTicklabelmode: true, @@ -95756,6 +95868,7 @@ var Plotly = (() => { noTicklabelposition: true, noTicklabeloverflow: true, noInsiderange: true, + noUnifiedhovertitle: true, bgColor: options.bgColor, calendar: options.calendar }, diff --git a/dist/plotly-gl3d.min.js b/dist/plotly-gl3d.min.js index f66ac883746..3f334381176 100644 --- a/dist/plotly-gl3d.min.js +++ b/dist/plotly-gl3d.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (gl3d - minified) v3.1.0-rc.0 +* plotly.js (gl3d - minified) v3.1.0-rc.1 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,14 +12,14 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var ib=Object.defineProperty;var AB=Object.getOwnPropertyDescriptor;var kB=Object.getOwnPropertyNames;var SB=Object.prototype.hasOwnProperty;var ob=(e,r)=>()=>(e&&(r=e(e=0)),r);var pe=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var CB=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of kB(r))!SB.call(e,a)&&a!==t&&ib(e,a,{get:()=>r[a],enumerable:!(n=AB(r,a))||n.enumerable});return e};var EB=e=>CB(ib({},"__esModule",{value:!0}),e);var pc=pe(lb=>{"use strict";lb.version="3.1.0-rc.0"});var ub=pe((sb,gc)=>{(function(r,t,n){t[r]=t[r]||n(),typeof gc!="undefined"&&gc.exports&&(gc.exports=t[r])})("Promise",typeof window!="undefined"?window:sb,function(){"use strict";var r,t,n,a=Object.prototype.toString,o=typeof setImmediate!="undefined"?function(k){return setImmediate(k)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(k,S,x,T){return Object.defineProperty(k,S,{value:x,writable:!0,configurable:T!==!1})}}catch(y){r=function(S,x,T){return S[x]=T,S}}n=function(){var k,S,x;function T(d,_){this.fn=d,this.self=_,this.next=void 0}return{add:function(_,g){x=new T(_,g),S?S.next=x:k=x,S=x,x=void 0},drain:function(){var _=k;for(k=S=t=void 0;_;)_.fn.call(_.self),_=_.next}}}();function i(y,k){n.add(y,k),t||(t=o(n.drain))}function l(y){var k,S=typeof y;return y!=null&&(S=="object"||S=="function")&&(k=y.then),typeof k=="function"?k:!1}function u(){for(var y=0;y0&&i(u,S))}catch(x){v.call(new b(S),x)}}}function v(y){var k=this;k.triggered||(k.triggered=!0,k.def&&(k=k.def),k.msg=y,k.state=2,k.chain.length>0&&i(u,k))}function p(y,k,S,x){for(var T=0;T{(function(){var e={version:"3.8.2"},r=[].slice,t=function(C){return r.call(C)},n=self.document;function a(C){return C&&(C.ownerDocument||C.document||C).documentElement}function o(C){return C&&(C.ownerDocument&&C.ownerDocument.defaultView||C.document&&C||C.defaultView)}if(n)try{t(n.documentElement.childNodes)[0].nodeType}catch(C){t=function(z){for(var B=z.length,G=new Array(B);B--;)G[B]=z[B];return G}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(C){var i=this.Element.prototype,l=i.setAttribute,u=i.setAttributeNS,s=this.CSSStyleDeclaration.prototype,f=s.setProperty;i.setAttribute=function(z,B){l.call(this,z,B+"")},i.setAttributeNS=function(z,B,G){u.call(this,z,B,G+"")},s.setProperty=function(z,B,G){f.call(this,z,B+"",G)}}e.ascending=v;function v(C,z){return Cz?1:C>=z?0:NaN}e.descending=function(C,z){return zC?1:z>=C?0:NaN},e.min=function(C,z){var B=-1,G=C.length,W,Z;if(arguments.length===1){for(;++B=Z){W=Z;break}for(;++BZ&&(W=Z)}else{for(;++B=Z){W=Z;break}for(;++BZ&&(W=Z)}return W},e.max=function(C,z){var B=-1,G=C.length,W,Z;if(arguments.length===1){for(;++B=Z){W=Z;break}for(;++BW&&(W=Z)}else{for(;++B=Z){W=Z;break}for(;++BW&&(W=Z)}return W},e.extent=function(C,z){var B=-1,G=C.length,W,Z,le;if(arguments.length===1){for(;++B=Z){W=le=Z;break}for(;++BZ&&(W=Z),le=Z){W=le=Z;break}for(;++BZ&&(W=Z),le1)return le/(fe-1)},e.deviation=function(){var C=e.variance.apply(this,arguments);return C&&Math.sqrt(C)};function m(C){return{left:function(z,B,G,W){for(arguments.length<3&&(G=0),arguments.length<4&&(W=z.length);G>>1;C(z[Z],B)<0?G=Z+1:W=Z}return G},right:function(z,B,G,W){for(arguments.length<3&&(G=0),arguments.length<4&&(W=z.length);G>>1;C(z[Z],B)>0?W=Z:G=Z+1}return G}}}var w=m(v);e.bisectLeft=w.left,e.bisect=e.bisectRight=w.right,e.bisector=function(C){return m(C.length===1?function(z,B){return v(C(z),B)}:C)},e.shuffle=function(C,z,B){(G=arguments.length)<3&&(B=C.length,G<2&&(z=0));for(var G=B-z,W,Z;G;)Z=Math.random()*G--|0,W=C[G+z],C[G+z]=C[Z+z],C[Z+z]=W;return C},e.permute=function(C,z){for(var B=z.length,G=new Array(B);B--;)G[B]=C[z[B]];return G},e.pairs=function(C){for(var z=0,B=C.length-1,G,W=C[0],Z=new Array(B<0?0:B);z=0;)for(le=C[z],B=le.length;--B>=0;)Z[--W]=le[B];return Z};var y=Math.abs;e.range=function(C,z,B){if(arguments.length<3&&(B=1,arguments.length<2&&(z=C,C=0)),(z-C)/B===1/0)throw new Error("infinite range");var G=[],W=k(y(B)),Z=-1,le;if(C*=W,z*=W,B*=W,B<0)for(;(le=C+B*++Z)>z;)G.push(le/W);else for(;(le=C+B*++Z)=z.length)return W?W.call(C,fe):G?fe.sort(G):fe;for(var _e=-1,Ie=fe.length,Ne=z[xe++],$e,rr,Oe,He=new x,Xe;++_e=z.length)return ie;var xe=[],_e=B[fe++];return ie.forEach(function(Ie,Ne){xe.push({key:Ie,values:le(Ne,fe)})}),_e?xe.sort(function(Ie,Ne){return _e(Ie.key,Ne.key)}):xe}return C.map=function(ie,fe){return Z(fe,ie,0)},C.entries=function(ie){return le(Z(e.map,ie,0),0)},C.key=function(ie){return z.push(ie),C},C.sortKeys=function(ie){return B[z.length-1]=ie,C},C.sortValues=function(ie){return G=ie,C},C.rollup=function(ie){return W=ie,C},C},e.set=function(C){var z=new D;if(C)for(var B=0,G=C.length;B=0&&(G=C.slice(B+1),C=C.slice(0,B)),C)return arguments.length<2?this[C].on(G):this[C].on(G,z);if(arguments.length===2){if(z==null)for(C in this)this.hasOwnProperty(C)&&this[C].on(G,null);return this}};function U(C){var z=[],B=new x;function G(){for(var W=z,Z=-1,le=W.length,ie;++Z=0&&(B=C.slice(0,z))!=="xmlns"&&(C=C.slice(z+1)),te.hasOwnProperty(B)?{space:te[B],local:C}:C}},ee.attr=function(C,z){if(arguments.length<2){if(typeof C=="string"){var B=this.node();return C=e.ns.qualify(C),C.local?B.getAttributeNS(C.space,C.local):B.getAttribute(C)}for(z in C)this.each(ue(z,C[z]));return this}return this.each(ue(C,z))};function ue(C,z){C=e.ns.qualify(C);function B(){this.removeAttribute(C)}function G(){this.removeAttributeNS(C.space,C.local)}function W(){this.setAttribute(C,z)}function Z(){this.setAttributeNS(C.space,C.local,z)}function le(){var fe=z.apply(this,arguments);fe==null?this.removeAttribute(C):this.setAttribute(C,fe)}function ie(){var fe=z.apply(this,arguments);fe==null?this.removeAttributeNS(C.space,C.local):this.setAttributeNS(C.space,C.local,fe)}return z==null?C.local?G:B:typeof z=="function"?C.local?ie:le:C.local?Z:W}function he(C){return C.trim().replace(/\s+/g," ")}ee.classed=function(C,z){if(arguments.length<2){if(typeof C=="string"){var B=this.node(),G=(C=Se(C)).length,W=-1;if(z=B.classList){for(;++W=0;)(Z=B[G])&&(W&&W!==Z.nextSibling&&W.parentNode.insertBefore(Z,W),W=Z);return this},ee.sort=function(C){C=Me.apply(this,arguments);for(var z=-1,B=this.length;++z=z&&(z=W+1);!(fe=le[z])&&++z0&&(C=C.slice(0,W));var le=be.get(C);le&&(C=le,Z=qe);function ie(){var _e=this[G];_e&&(this.removeEventListener(C,_e,_e.$),delete this[G])}function fe(){var _e=Z(z,t(arguments));ie.call(this),this.addEventListener(C,this[G]=_e,_e.$=B),_e._=z}function xe(){var _e=new RegExp("^__on([^.]+)"+e.requote(C)+"$"),Ie;for(var Ne in this)if(Ie=Ne.match(_e)){var $e=this[Ne];this.removeEventListener(Ie[1],$e,$e.$),delete this[Ne]}}return W?z?fe:ie:z?P:xe}var be=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&be.forEach(function(C){"on"+C in n&&be.remove(C)});function Ae(C,z){return function(B){var G=e.event;e.event=B,z[0]=this.__data__;try{C.apply(this,z)}finally{e.event=G}}}function qe(C,z){var B=Ae(C,z);return function(G){var W=this,Z=G.relatedTarget;(!Z||Z!==W&&!(Z.compareDocumentPosition(W)&8))&&B.call(W,G)}}var Pe,Ze=0;function Ye(C){var z=".dragsuppress-"+ ++Ze,B="click"+z,G=e.select(o(C)).on("touchmove"+z,X).on("dragstart"+z,X).on("selectstart"+z,X);if(Pe==null&&(Pe="onselectstart"in C?!1:F(C.style,"userSelect")),Pe){var W=a(C).style,Z=W[Pe];W[Pe]="none"}return function(le){if(G.on(z,null),Pe&&(W[Pe]=Z),le){var ie=function(){G.on(B,null)};G.on(B,function(){X(),ie()},!0),setTimeout(ie,0)}}}e.mouse=function(C){return We(C,$())};var Ge=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function We(C,z){z.changedTouches&&(z=z.changedTouches[0]);var B=C.ownerSVGElement||C;if(B.createSVGPoint){var G=B.createSVGPoint();if(Ge<0){var W=o(C);if(W.scrollX||W.scrollY){B=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Z=B[0][0].getScreenCTM();Ge=!(Z.f||Z.e),B.remove()}}return Ge?(G.x=z.pageX,G.y=z.pageY):(G.x=z.clientX,G.y=z.clientY),G=G.matrixTransform(C.getScreenCTM().inverse()),[G.x,G.y]}var le=C.getBoundingClientRect();return[z.clientX-le.left-C.clientLeft,z.clientY-le.top-C.clientTop]}e.touch=function(C,z,B){if(arguments.length<3&&(B=z,z=$().changedTouches),z){for(var G=0,W=z.length,Z;G0?1:C<0?-1:0}function je(C,z,B){return(z[0]-C[0])*(B[1]-C[1])-(z[1]-C[1])*(B[0]-C[0])}function nr(C){return C>1?0:C<-1?Ve:Math.acos(C)}function hr(C){return C>1?K:C<-1?-K:Math.asin(C)}function wr(C){return((C=Math.exp(C))-1/C)/2}function Cr(C){return((C=Math.exp(C))+1/C)/2}function Tr(C){return((C=Math.exp(2*C))-1)/(C+1)}function Ar(C){return(C=Math.sin(C/2))*C}var ft=Math.SQRT2,Yr=2,mr=4;e.interpolateZoom=function(C,z){var B=C[0],G=C[1],W=C[2],Z=z[0],le=z[1],ie=z[2],fe=Z-B,xe=le-G,_e=fe*fe+xe*xe,Ie,Ne;if(_e0&&(cr=cr.transition().duration(le)),cr.call(tr.event)}function br(){He&&He.domain(Oe.range().map(function(cr){return(cr-C.x)/C.k}).map(Oe.invert)),er&&er.domain(Xe.range().map(function(cr){return(cr-C.y)/C.k}).map(Xe.invert))}function _r(cr){ie++||cr({type:"zoomstart"})}function qr(cr){br(),cr({type:"zoom",scale:C.k,translate:[C.x,C.y]})}function Mr(cr){--ie||(cr({type:"zoomend"}),B=null)}function Pr(){var cr=this,Or=rr.of(cr,arguments),Vr=0,ut=e.select(o(cr)).on(xe,bn).on(_e,In),Pt=Ke(e.mouse(cr)),$t=Ye(cr);cc.call(cr),_r(Or);function bn(){Vr=1,yr(e.mouse(cr),Pt),qr(Or)}function In(){ut.on(xe,null).on(_e,null),$t(Vr),Mr(Or)}}function st(){var cr=this,Or=rr.of(cr,arguments),Vr={},ut=0,Pt,$t=".zoom-"+e.event.changedTouches[0].identifier,bn="touchmove"+$t,In="touchend"+$t,Gn=[],Nn=e.select(cr),Qn=Ye(cr);$n(),_r(Or),Nn.on(fe,null).on(Ne,$n);function An(){var Za=e.touches(cr);return Pt=C.k,Za.forEach(function(_n){_n.identifier in Vr&&(Vr[_n.identifier]=Ke(_n))}),Za}function $n(){var Za=e.event.target;e.select(Za).on(bn,ml).on(In,TB),Gn.push(Za);for(var _n=e.event.changedTouches,Ta=0,Mi=_n.length;Ta1){var xl=Aa[0],_o=Aa[1],dc=xl[0]-_o[0],ab=xl[1]-_o[1];ut=dc*dc+ab*ab}}function ml(){var Za=e.touches(cr),_n,Ta,Mi,Aa;cc.call(cr);for(var As=0,xl=Za.length;As1?1:z,B=B<0?0:B>1?1:B,W=B<=.5?B*(1+z):B+z-B*z,G=2*B-W;function Z(ie){return ie>360?ie-=360:ie<0&&(ie+=360),ie<60?G+(W-G)*ie/60:ie<180?W:ie<240?G+(W-G)*(240-ie)/60:G}function le(ie){return Math.round(Z(ie)*255)}return new tn(le(C+120),le(C),le(C-120))}e.hcl=Lt;function Lt(C,z,B){return this instanceof Lt?(this.h=+C,this.c=+z,void(this.l=+B)):arguments.length<2?C instanceof Lt?new Lt(C.h,C.c,C.l):C instanceof Rt?xi(C.l,C.a,C.b):xi((C=gr((C=e.rgb(C)).r,C.g,C.b)).l,C.a,C.b):new Lt(C,z,B)}var yn=Lt.prototype=new xt;yn.brighter=function(C){return new Lt(this.h,this.c,Math.min(100,this.l+nt*(arguments.length?C:1)))},yn.darker=function(C){return new Lt(this.h,this.c,Math.max(0,this.l-nt*(arguments.length?C:1)))},yn.rgb=function(){return Gt(this.h,this.c,this.l).rgb()};function Gt(C,z,B){return isNaN(C)&&(C=0),isNaN(z)&&(z=0),new Rt(B,Math.cos(C*=ne)*z,Math.sin(C)*z)}e.lab=Rt;function Rt(C,z,B){return this instanceof Rt?(this.l=+C,this.a=+z,void(this.b=+B)):arguments.length<2?C instanceof Rt?new Rt(C.l,C.a,C.b):C instanceof Lt?Gt(C.h,C.c,C.l):gr((C=tn(C)).r,C.g,C.b):new Rt(C,z,B)}var nt=18,Ft=.95047,va=1,Kn=1.08883,Fn=Rt.prototype=new xt;Fn.brighter=function(C){return new Rt(Math.min(100,this.l+nt*(arguments.length?C:1)),this.a,this.b)},Fn.darker=function(C){return new Rt(Math.max(0,this.l-nt*(arguments.length?C:1)),this.a,this.b)},Fn.rgb=function(){return wa(this.l,this.a,this.b)};function wa(C,z,B){var G=(C+16)/116,W=G+z/500,Z=G-B/200;return W=Gi(W)*Ft,G=Gi(G)*va,Z=Gi(Z)*Kn,new tn(Wi(3.2404542*W-1.5371385*G-.4985314*Z),Wi(-.969266*W+1.8760108*G+.041556*Z),Wi(.0556434*W-.2040259*G+1.0572252*Z))}function xi(C,z,B){return C>0?new Lt(Math.atan2(B,z)*Re,Math.sqrt(z*z+B*B),C):new Lt(NaN,NaN,C)}function Gi(C){return C>.206893034?C*C*C:(C-4/29)/7.787037}function Yi(C){return C>.008856?Math.pow(C,1/3):7.787037*C+4/29}function Wi(C){return Math.round(255*(C<=.00304?12.92*C:1.055*Math.pow(C,1/2.4)-.055))}e.rgb=tn;function tn(C,z,B){return this instanceof tn?(this.r=~~C,this.g=~~z,void(this.b=~~B)):arguments.length<2?C instanceof tn?new tn(C.r,C.g,C.b):at(""+C,tn,Ot):new tn(C,z,B)}function xo(C){return new tn(C>>16,C>>8&255,C&255)}function bi(C){return xo(C)+""}var _i=tn.prototype=new xt;_i.brighter=function(C){C=Math.pow(.7,arguments.length?C:1);var z=this.r,B=this.g,G=this.b,W=30;return!z&&!B&&!G?new tn(W,W,W):(z&&z>4,G=G>>4|G,W=fe&240,W=W>>4|W,Z=fe&15,Z=Z<<4|Z):C.length===7&&(G=(fe&16711680)>>16,W=(fe&65280)>>8,Z=fe&255)),z(G,W,Z))}function vt(C,z,B){var G=Math.min(C/=255,z/=255,B/=255),W=Math.max(C,z,B),Z=W-G,le,ie,fe=(W+G)/2;return Z?(ie=fe<.5?Z/(W+G):Z/(2-W-G),C==W?le=(z-B)/Z+(z0&&fe<1?0:le),new zr(le,ie,fe)}function gr(C,z,B){C=mn(C),z=mn(z),B=mn(B);var G=Yi((.4124564*C+.3575761*z+.1804375*B)/Ft),W=Yi((.2126729*C+.7151522*z+.072175*B)/va),Z=Yi((.0193339*C+.119192*z+.9503041*B)/Kn);return Rt(116*W-16,500*(G-W),200*(W-Z))}function mn(C){return(C/=255)<=.04045?C/12.92:Math.pow((C+.055)/1.055,2.4)}function bt(C){var z=parseFloat(C);return C.charAt(C.length-1)==="%"?Math.round(z*2.55):z}var xn=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});xn.forEach(function(C,z){xn.set(C,xo(z))});function Xr(C){return typeof C=="function"?C:function(){return C}}e.functor=Xr,e.xhr=Wa(N);function Wa(C){return function(z,B,G){return arguments.length===2&&typeof B=="function"&&(G=B,B=null),hl(z,B,C,G)}}function hl(C,z,B,G){var W={},Z=e.dispatch("beforesend","progress","load","error"),le={},ie=new XMLHttpRequest,fe=null;self.XDomainRequest&&!("withCredentials"in ie)&&/^(http(s)?:)?\/\//.test(C)&&(ie=new XDomainRequest),"onload"in ie?ie.onload=ie.onerror=xe:ie.onreadystatechange=function(){ie.readyState>3&&xe()};function xe(){var _e=ie.status,Ie;if(!_e&&kq(ie)||_e>=200&&_e<300||_e===304){try{Ie=B.call(W,ie)}catch(Ne){Z.error.call(W,Ne);return}Z.load.call(W,Ie)}else Z.error.call(W,ie)}return ie.onprogress=function(_e){var Ie=e.event;e.event=_e;try{Z.progress.call(W,ie)}finally{e.event=Ie}},W.header=function(_e,Ie){return _e=(_e+"").toLowerCase(),arguments.length<2?le[_e]:(Ie==null?delete le[_e]:le[_e]=Ie+"",W)},W.mimeType=function(_e){return arguments.length?(z=_e==null?null:_e+"",W):z},W.responseType=function(_e){return arguments.length?(fe=_e,W):fe},W.response=function(_e){return B=_e,W},["get","post"].forEach(function(_e){W[_e]=function(){return W.send.apply(W,[_e].concat(t(arguments)))}}),W.send=function(_e,Ie,Ne){if(arguments.length===2&&typeof Ie=="function"&&(Ne=Ie,Ie=null),ie.open(_e,C,!0),z!=null&&!("accept"in le)&&(le.accept=z+",*/*"),ie.setRequestHeader)for(var $e in le)ie.setRequestHeader($e,le[$e]);return z!=null&&ie.overrideMimeType&&ie.overrideMimeType(z),fe!=null&&(ie.responseType=fe),Ne!=null&&W.on("error",Ne).on("load",function(rr){Ne(null,rr)}),Z.beforesend.call(W,ie),ie.send(Ie==null?null:Ie),W},W.abort=function(){return ie.abort(),W},e.rebind(W,Z,"on"),G==null?W:W.get(Aq(G))}function Aq(C){return C.length===1?function(z,B){C(z==null?B:null)}:C}function kq(C){var z=C.responseType;return z&&z!=="text"?C.response:C.responseText}e.dsv=function(C,z){var B=new RegExp('["'+C+` -]`),G=C.charCodeAt(0);function W(xe,_e,Ie){arguments.length<3&&(Ie=_e,_e=null);var Ne=hl(xe,z,_e==null?Z:le(_e),Ie);return Ne.row=function($e){return arguments.length?Ne.response((_e=$e)==null?Z:le($e)):_e},Ne}function Z(xe){return W.parse(xe.responseText)}function le(xe){return function(_e){return W.parse(_e.responseText,xe)}}W.parse=function(xe,_e){var Ie;return W.parseRows(xe,function(Ne,$e){if(Ie)return Ie(Ne,$e-1);var rr=function(Oe){for(var He={},Xe=Ne.length,er=0;er=rr)return Ne;if(er)return er=!1,Ie;var or=Oe;if(xe.charCodeAt(or)===34){for(var dr=or;dr++24?(isFinite(z)&&(clearTimeout(J0),J0=setTimeout(Rd,z)),Z0=0):(Z0=1,G5(Rd))}e.timer.flush=function(){Y5(),W5()};function Y5(){for(var C=Date.now(),z=W0;z;)C>=z.t&&z.c(C-z.t)&&(z.c=null),z=z.n;return C}function W5(){for(var C,z=W0,B=1/0;z;)z.c?(z.t=0;--ie)Oe.push(W[xe[Ie[ie]][2]]);for(ie=+$e;ie1&&je(C[B[G-2]],C[B[G-1]],C[W])<=0;)--G;B[G++]=W}return B.slice(0,G)}function Sq(C,z){return C[0]-z[0]||C[1]-z[1]}e.geom.polygon=function(C){return q(C,Q0),C};var Q0=e.geom.polygon.prototype=[];Q0.area=function(){for(var C=-1,z=this.length,B,G=this[z-1],W=0;++CDe)ie=ie.L;else if(le=z-Rq(ie,B),le>De){if(!ie.R){G=ie;break}ie=ie.R}else{Z>-De?(G=ie.P,W=ie):le>-De?(G=ie,W=ie.N):G=W=ie;break}var fe=Q5(C);if(_s.insert(G,fe),!(!G&&!W)){if(G===W){Ms(G),W=Q5(G.site),_s.insert(fe,W),fe.edge=W.edge=Ku(G.site,fe.site),ws(G),ws(W);return}if(!W){fe.edge=Ku(G.site,fe.site);return}Ms(G),Ms(W);var xe=G.site,_e=xe.x,Ie=xe.y,Ne=C.x-_e,$e=C.y-Ie,rr=W.site,Oe=rr.x-_e,He=rr.y-Ie,Xe=2*(Ne*He-$e*Oe),er=Ne*Ne+$e*$e,tr=Oe*Oe+He*He,Ke={x:(He*er-$e*tr)/Xe+_e,y:(Ne*tr-Oe*er)/Xe+Ie};$0(W.edge,xe,rr,Ke),fe.edge=Ku(xe,C,null,Ke),W.edge=Ku(C,rr,null,Ke),ws(G),ws(W)}}function $5(C,z){var B=C.site,G=B.x,W=B.y,Z=W-z;if(!Z)return G;var le=C.P;if(!le)return-1/0;B=le.site;var ie=B.x,fe=B.y,xe=fe-z;if(!xe)return ie;var _e=ie-G,Ie=1/Z-1/xe,Ne=_e/xe;return Ie?(-Ne+Math.sqrt(Ne*Ne-2*Ie*(_e*_e/(-2*xe)-fe+xe/2+W-Z/2)))/Ie+G:(G+ie)/2}function Rq(C,z){var B=C.N;if(B)return $5(B,z);var G=C.site;return G.y===z?G.x:1/0}function j5(C){this.site=C,this.edges=[]}j5.prototype.prepare=function(){for(var C=this.edges,z=C.length,B;z--;)B=C[z].edge,(!B.b||!B.a)&&C.splice(z,1);return C.sort(ex),C.length};function Dq(C){for(var z=C[0][0],B=C[1][0],G=C[0][1],W=C[1][1],Z,le,ie,fe,xe=dl,_e=xe.length,Ie,Ne,$e,rr,Oe,He;_e--;)if(Ie=xe[_e],!(!Ie||!Ie.prepare()))for($e=Ie.edges,rr=$e.length,Ne=0;NeDe||y(fe-le)>De)&&($e.splice(Ne,0,new j0(zq(Ie.site,He,y(ie-z)De?{x:z,y:y(Z-z)De?{x:y(le-W)De?{x:B,y:y(Z-B)De?{x:y(le-G)=-Qe)){var Ne=fe*fe+xe*xe,$e=_e*_e+He*He,rr=(He*Ne-xe*$e)/Ie,Oe=(fe*$e-_e*Ne)/Ie,He=Oe+ie,Xe=K5.pop()||new Pq;Xe.arc=C,Xe.site=W,Xe.x=rr+le,Xe.y=He+Math.sqrt(rr*rr+Oe*Oe),Xe.cy=He,C.circle=Xe;for(var er=null,tr=Ju._;tr;)if(Xe.y0)){if(Oe/=$e,$e<0){if(Oe0){if(Oe>Ne)return;Oe>Ie&&(Ie=Oe)}if(Oe=B-ie,!(!$e&&Oe<0)){if(Oe/=$e,$e<0){if(Oe>Ne)return;Oe>Ie&&(Ie=Oe)}else if($e>0){if(Oe0)){if(Oe/=rr,rr<0){if(Oe0){if(Oe>Ne)return;Oe>Ie&&(Ie=Oe)}if(Oe=G-fe,!(!rr&&Oe<0)){if(Oe/=rr,rr<0){if(Oe>Ne)return;Oe>Ie&&(Ie=Oe)}else if(rr>0){if(Oe0&&(W.a={x:ie+Ie*$e,y:fe+Ie*rr}),Ne<1&&(W.b={x:ie+Ne*$e,y:fe+Ne*rr}),W}}}}}}function Iq(C){for(var z=bs,B=Fq(C[0][0],C[0][1],C[1][0],C[1][1]),G=z.length,W;G--;)W=z[G],(!Nq(W,C)||!B(W)||y(W.a.x-W.b.x)=Z)return;if(_e>Ne){if(!G)G={x:rr,y:le};else if(G.y>=ie)return;B={x:rr,y:ie}}else{if(!G)G={x:rr,y:ie};else if(G.y1)if(_e>Ne){if(!G)G={x:(le-Xe)/He,y:le};else if(G.y>=ie)return;B={x:(ie-Xe)/He,y:ie}}else{if(!G)G={x:(ie-Xe)/He,y:ie};else if(G.y=Z)return;B={x:Z,y:He*Z+Xe}}else{if(!G)G={x:Z,y:He*Z+Xe};else if(G.x=_e&&Xe.x<=Ne&&Xe.y>=Ie&&Xe.y<=$e?[[_e,$e],[Ne,$e],[Ne,Ie],[_e,Ie]]:[];er.point=fe[Oe]}),xe}function ie(fe){return fe.map(function(xe,_e){return{x:Math.round(G(xe,_e)/De)*De,y:Math.round(W(xe,_e)/De)*De,i:_e}})}return le.links=function(fe){return zd(ie(fe)).edges.filter(function(xe){return xe.l&&xe.r}).map(function(xe){return{source:fe[xe.l.i],target:fe[xe.r.i]}})},le.triangles=function(fe){var xe=[];return zd(ie(fe)).cells.forEach(function(_e,Ie){for(var Ne=_e.site,$e=_e.edges.sort(ex),rr=-1,Oe=$e.length,He,Xe,er=$e[Oe-1].edge,tr=er.l===Ne?er.r:er.l;++rrtr&&(tr=_e.x),_e.y>Ke&&(Ke=_e.y),$e.push(_e.x),rr.push(_e.y);else for(Oe=0;Oetr&&(tr=or),dr>Ke&&(Ke=dr),$e.push(or),rr.push(dr)}var yr=tr-Xe,pr=Ke-er;yr>pr?Ke=er+yr:tr=Xe+pr;function br(Mr,Pr,st,Bt,dt,cr,Or,Vr){if(!(isNaN(st)||isNaN(Bt)))if(Mr.leaf){var ut=Mr.x,Pt=Mr.y;if(ut!=null)if(y(ut-st)+y(Pt-Bt)<.01)_r(Mr,Pr,st,Bt,dt,cr,Or,Vr);else{var $t=Mr.point;Mr.x=Mr.y=Mr.point=null,_r(Mr,$t,ut,Pt,dt,cr,Or,Vr),_r(Mr,Pr,st,Bt,dt,cr,Or,Vr)}else Mr.x=st,Mr.y=Bt,Mr.point=Pr}else _r(Mr,Pr,st,Bt,dt,cr,Or,Vr)}function _r(Mr,Pr,st,Bt,dt,cr,Or,Vr){var ut=(dt+Or)*.5,Pt=(cr+Vr)*.5,$t=st>=ut,bn=Bt>=Pt,In=bn<<1|$t;Mr.leaf=!1,Mr=Mr.nodes[In]||(Mr.nodes[In]=nx()),$t?dt=ut:Or=ut,bn?cr=Pt:Vr=Pt,br(Mr,Pr,st,Bt,dt,cr,Or,Vr)}var qr=nx();if(qr.add=function(Mr){br(qr,Mr,+Ie(Mr,++Oe),+Ne(Mr,Oe),Xe,er,tr,Ke)},qr.visit=function(Mr){ju(Mr,qr,Xe,er,tr,Ke)},qr.find=function(Mr){return Hq(qr,Mr[0],Mr[1],Xe,er,tr,Ke)},Oe=-1,z==null){for(;++OeZ||Ne>le||$e=or,pr=B>=dr,br=pr<<1|yr,_r=br+4;br<_r;++br)if(_e=Ke[br&3])switch(br&3){case 0:xe(_e,Ie,Ne,or,dr);break;case 1:xe(_e,or,Ne,$e,dr);break;case 2:xe(_e,Ie,dr,or,rr);break;case 3:xe(_e,or,dr,$e,rr);break}}}(C,G,W,Z,le),fe}e.interpolateRgb=qd;function qd(C,z){C=e.rgb(C),z=e.rgb(z);var B=C.r,G=C.g,W=C.b,Z=z.r-B,le=z.g-G,ie=z.b-W;return function(fe){return"#"+kr(Math.round(B+Z*fe))+kr(Math.round(G+le*fe))+kr(Math.round(W+ie*fe))}}e.interpolateObject=ax;function ax(C,z){var B={},G={},W;for(W in C)W in z?B[W]=pl(C[W],z[W]):G[W]=C[W];for(W in z)W in C||(G[W]=z[W]);return function(Z){for(W in B)G[W]=B[W](Z);return G}}e.interpolateNumber=Xi;function Xi(C,z){return C=+C,z=+z,function(B){return C*(1-B)+z*B}}e.interpolateString=ix;function ix(C,z){var B=Od.lastIndex=Bd.lastIndex=0,G,W,Z,le=-1,ie=[],fe=[];for(C=C+"",z=z+"";(G=Od.exec(C))&&(W=Bd.exec(z));)(Z=W.index)>B&&(Z=z.slice(B,Z),ie[le]?ie[le]+=Z:ie[++le]=Z),(G=G[0])===(W=W[0])?ie[le]?ie[le]+=W:ie[++le]=W:(ie[++le]=null,fe.push({i:le,x:Xi(G,W)})),B=Bd.lastIndex;return B=0&&!(G=e.interpolators[B](C,z)););return G}e.interpolators=[function(C,z){var B=typeof z;return(B==="string"?xn.has(z.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(z)?qd:ix:z instanceof xt?qd:Array.isArray(z)?tc:B==="object"&&isNaN(z)?ax:Xi)(C,z)}],e.interpolateArray=tc;function tc(C,z){var B=[],G=[],W=C.length,Z=z.length,le=Math.min(C.length,z.length),ie;for(ie=0;ie=0?C.slice(0,z):C,G=z>=0?C.slice(z+1):"in";return B=Vq.get(B)||ox,G=Gq.get(G)||N,Yq(G(B.apply(null,r.call(arguments,1))))};function Yq(C){return function(z){return z<=0?0:z>=1?1:C(z)}}function lx(C){return function(z){return 1-C(1-z)}}function sx(C){return function(z){return .5*(z<.5?C(2*z):2-C(2-2*z))}}function Wq(C){return C*C}function Xq(C){return C*C*C}function Zq(C){if(C<=0)return 0;if(C>=1)return 1;var z=C*C,B=z*C;return 4*(C<.5?B:3*(C-z)+B-.75)}function Jq(C){return function(z){return Math.pow(z,C)}}function Kq(C){return 1-Math.cos(C*K)}function Qq(C){return Math.pow(2,10*(C-1))}function $q(C){return 1-Math.sqrt(1-C*C)}function jq(C,z){var B;return arguments.length<2&&(z=.45),arguments.length?B=z/ar*Math.asin(1/C):(C=1,B=z/4),function(G){return 1+C*Math.pow(2,-10*G)*Math.sin((G-B)*ar/z)}}function eO(C){return C||(C=1.70158),function(z){return z*z*((C+1)*z-C)}}function rO(C){return C<1/2.75?7.5625*C*C:C<2/2.75?7.5625*(C-=1.5/2.75)*C+.75:C<2.5/2.75?7.5625*(C-=2.25/2.75)*C+.9375:7.5625*(C-=2.625/2.75)*C+.984375}e.interpolateHcl=tO;function tO(C,z){C=e.hcl(C),z=e.hcl(z);var B=C.h,G=C.c,W=C.l,Z=z.h-B,le=z.c-G,ie=z.l-W;return isNaN(le)&&(le=0,G=isNaN(G)?z.c:G),isNaN(Z)?(Z=0,B=isNaN(B)?z.h:B):Z>180?Z-=360:Z<-180&&(Z+=360),function(fe){return Gt(B+Z*fe,G+le*fe,W+ie*fe)+""}}e.interpolateHsl=nO;function nO(C,z){C=e.hsl(C),z=e.hsl(z);var B=C.h,G=C.s,W=C.l,Z=z.h-B,le=z.s-G,ie=z.l-W;return isNaN(le)&&(le=0,G=isNaN(G)?z.s:G),isNaN(Z)?(Z=0,B=isNaN(B)?z.h:B):Z>180?Z-=360:Z<-180&&(Z+=360),function(fe){return Ot(B+Z*fe,G+le*fe,W+ie*fe)+""}}e.interpolateLab=aO;function aO(C,z){C=e.lab(C),z=e.lab(z);var B=C.l,G=C.a,W=C.b,Z=z.l-B,le=z.a-G,ie=z.b-W;return function(fe){return wa(B+Z*fe,G+le*fe,W+ie*fe)+""}}e.interpolateRound=ux;function ux(C,z){return z-=C,function(B){return Math.round(C+z*B)}}e.transform=function(C){var z=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(B){if(B!=null){z.setAttribute("transform",B);var G=z.transform.baseVal.consolidate()}return new fx(G?G.matrix:oO)})(C)};function fx(C){var z=[C.a,C.b],B=[C.c,C.d],G=vx(z),W=cx(z,B),Z=vx(iO(B,z,-W))||0;z[0]*B[1]180?z+=360:z-C>180&&(C+=360),G.push({i:B.push(Ts(B)+"rotate(",null,")")-2,x:Xi(C,z)})):z&&B.push(Ts(B)+"rotate("+z+")")}function uO(C,z,B,G){C!==z?G.push({i:B.push(Ts(B)+"skewX(",null,")")-2,x:Xi(C,z)}):z&&B.push(Ts(B)+"skewX("+z+")")}function fO(C,z,B,G){if(C[0]!==z[0]||C[1]!==z[1]){var W=B.push(Ts(B)+"scale(",null,",",null,")");G.push({i:W-4,x:Xi(C[0],z[0])},{i:W-2,x:Xi(C[1],z[1])})}else(z[0]!==1||z[1]!==1)&&B.push(Ts(B)+"scale("+z+")")}function hx(C,z){var B=[],G=[];return C=e.transform(C),z=e.transform(z),lO(C.translate,z.translate,B,G),sO(C.rotate,z.rotate,B,G),uO(C.skew,z.skew,B,G),fO(C.scale,z.scale,B,G),C=z=null,function(W){for(var Z=-1,le=G.length,ie;++Z0?Z=Ke:(B.c=null,B.t=NaN,B=null,z.end({type:"end",alpha:Z=0})):Ke>0&&(z.start({type:"start",alpha:Z=Ke}),B=K0(C.tick)),C):Z},C.start=function(){var Ke,or=$e.length,dr=rr.length,yr=G[0],pr=G[1],br,_r;for(Ke=0;Ke=0;)Z.push(_e=xe[fe]),_e.parent=ie,_e.depth=ie.depth+1;B&&(ie.value=0),ie.children=xe}else B&&(ie.value=+B.call(G,ie,ie.depth)||0),delete ie.children;return wi(W,function(Ie){var Ne,$e;C&&(Ne=Ie.children)&&Ne.sort(C),B&&($e=Ie.parent)&&($e.value+=Ie.value)}),le}return G.sort=function(W){return arguments.length?(C=W,G):C},G.children=function(W){return arguments.length?(z=W,G):z},G.value=function(W){return arguments.length?(B=W,G):B},G.revalue=function(W){return B&&(rf(W,function(Z){Z.children&&(Z.value=0)}),wi(W,function(Z){var le;Z.children||(Z.value=+B.call(G,Z,Z.depth)||0),(le=Z.parent)&&(le.value+=Z.value)})),W},G};function ef(C,z){return e.rebind(C,z,"sort","children","value"),C.nodes=C,C.links=AO,C}function rf(C,z){for(var B=[C];(C=B.pop())!=null;)if(z(C),(W=C.children)&&(G=W.length))for(var G,W;--G>=0;)B.push(W[G])}function wi(C,z){for(var B=[C],G=[];(C=B.pop())!=null;)if(G.push(C),(le=C.children)&&(Z=le.length))for(var W=-1,Z,le;++WW&&(W=ie),G.push(ie)}for(le=0;leG&&(B=z,G=W);return B}function DO(C){return C.reduce(PO,0)}function PO(C,z){return C+z[1]}e.layout.histogram=function(){var C=!0,z=Number,B=IO,G=FO;function W(Z,Ne){for(var ie=[],fe=Z.map(z,this),xe=B.call(this,fe,Ne),_e=G.call(this,xe,fe,Ne),Ie,Ne=-1,$e=fe.length,rr=_e.length-1,Oe=C?1:1/$e,He;++Ne0)for(Ne=-1;++Ne<$e;)He=fe[Ne],He>=xe[0]&&He<=xe[1]&&(Ie=ie[e.bisect(_e,He,1,rr)-1],Ie.y+=Oe,Ie.push(Z[Ne]));return ie}return W.value=function(Z){return arguments.length?(z=Z,W):z},W.range=function(Z){return arguments.length?(B=Xr(Z),W):B},W.bins=function(Z){return arguments.length?(G=typeof Z=="number"?function(le){return yx(le,Z)}:Xr(Z),W):G},W.frequency=function(Z){return arguments.length?(C=!!Z,W):C},W};function FO(C,z){return yx(C,Math.ceil(Math.log(z.length)/Math.LN2+1))}function yx(C,z){for(var B=-1,G=+C[0],W=(C[1]-G)/z,Z=[];++B<=z;)Z[B]=W*B+G;return Z}function IO(C){return[e.min(C),e.max(C)]}e.layout.pack=function(){var C=e.layout.hierarchy().sort(NO),z=0,B=[1,1],G;function W(Z,le){var ie=C.call(this,Z,le),fe=ie[0],xe=B[0],_e=B[1],Ie=G==null?Math.sqrt:typeof G=="function"?G:function(){return G};if(fe.x=fe.y=0,wi(fe,function($e){$e.r=+Ie($e.value)}),wi(fe,bx),z){var Ne=z*(G?1:Math.max(2*fe.r/xe,2*fe.r/_e))/2;wi(fe,function($e){$e.r+=Ne}),wi(fe,bx),wi(fe,function($e){$e.r-=Ne})}return _x(fe,xe/2,_e/2,G?1:1/Math.max(2*fe.r/xe,2*fe.r/_e)),ie}return W.size=function(Z){return arguments.length?(B=Z,W):B},W.radius=function(Z){return arguments.length?(G=Z==null||typeof Z=="function"?Z:+Z,W):G},W.padding=function(Z){return arguments.length?(z=+Z,W):z},ef(W,C)};function NO(C,z){return C.value-z.value}function Vd(C,z){var B=C._pack_next;C._pack_next=z,z._pack_prev=C,z._pack_next=B,B._pack_prev=z}function mx(C,z){C._pack_next=z,z._pack_prev=C}function xx(C,z){var B=z.x-C.x,G=z.y-C.y,W=C.r+z.r;return .999*W*W>B*B+G*G}function bx(C){if(!(z=C.children)||!(Ne=z.length))return;var z,B=1/0,G=-1/0,W=1/0,Z=-1/0,le,ie,fe,xe,_e,Ie,Ne;function $e(Ke){B=Math.min(Ke.x-Ke.r,B),G=Math.max(Ke.x+Ke.r,G),W=Math.min(Ke.y-Ke.r,W),Z=Math.max(Ke.y+Ke.r,Z)}if(z.forEach(zO),le=z[0],le.x=-le.r,le.y=0,$e(le),Ne>1&&(ie=z[1],ie.x=ie.r,ie.y=0,$e(ie),Ne>2))for(fe=z[2],wx(le,ie,fe),$e(fe),Vd(le,fe),le._pack_prev=fe,Vd(fe,ie),ie=le._pack_next,xe=3;xeHe.x&&(He=or),or.depth>Xe.depth&&(Xe=or)});var er=z(Oe,He)/2-Oe.x,tr=B[0]/(He.x+z(He,Oe)/2+er),Ke=B[1]/(Xe.depth||1);rf($e,function(or){or.x=(or.x+er)*tr,or.y=or.depth*Ke})}return Ne}function Z(_e){for(var Ie={A:null,children:[_e]},Ne=[Ie],$e;($e=Ne.pop())!=null;)for(var rr=$e.children,Oe,He=0,Xe=rr.length;He0&&(OO(UO(Oe,_e,Ne),_e,or),Xe+=or,er+=or),tr+=Oe.m,Xe+=$e.m,Ke+=He.m,er+=rr.m;Oe&&!Yd(rr)&&(rr.t=Oe,rr.m+=tr-er),$e&&!Gd(He)&&(He.t=$e,He.m+=Xe-Ke,Ne=_e)}return Ne}function xe(_e){_e.x*=B[0],_e.y=_e.depth*B[1]}return W.separation=function(_e){return arguments.length?(z=_e,W):z},W.size=function(_e){return arguments.length?(G=(B=_e)==null?xe:null,W):G?null:B},W.nodeSize=function(_e){return arguments.length?(G=(B=_e)==null?null:xe,W):G?B:null},ef(W,C)};function Mx(C,z){return C.parent==z.parent?1:2}function Gd(C){var z=C.children;return z.length?z[0]:C.t}function Yd(C){var z=C.children,B;return(B=z.length)?z[B-1]:C.t}function OO(C,z,B){var G=B/(z.i-C.i);z.c-=G,z.s+=B,C.c+=G,z.z+=B,z.m+=B}function BO(C){for(var z=0,B=0,G=C.children,W=G.length,Z;--W>=0;)Z=G[W],Z.z+=z,Z.m+=z,z+=Z.s+(B+=Z.c)}function UO(C,z,B){return C.a.parent===z.parent?C.a:B}e.layout.cluster=function(){var C=e.layout.hierarchy().sort(null).value(null),z=Mx,B=[1,1],G=!1;function W(Z,le){var ie=C.call(this,Z,le),fe=ie[0],xe,_e=0;wi(fe,function(Oe){var He=Oe.children;He&&He.length?(Oe.x=VO(He),Oe.y=HO(He)):(Oe.x=xe?_e+=z(Oe,xe):0,Oe.y=0,xe=Oe)});var Ie=Tx(fe),Ne=Ax(fe),$e=Ie.x-z(Ie,Ne)/2,rr=Ne.x+z(Ne,Ie)/2;return wi(fe,G?function(Oe){Oe.x=(Oe.x-fe.x)*B[0],Oe.y=(fe.y-Oe.y)*B[1]}:function(Oe){Oe.x=(Oe.x-$e)/(rr-$e)*B[0],Oe.y=(1-(fe.y?Oe.y/fe.y:1))*B[1]}),ie}return W.separation=function(Z){return arguments.length?(z=Z,W):z},W.size=function(Z){return arguments.length?(G=(B=Z)==null,W):G?null:B},W.nodeSize=function(Z){return arguments.length?(G=(B=Z)!=null,W):G?B:null},ef(W,C)};function HO(C){return 1+e.max(C,function(z){return z.y})}function VO(C){return C.reduce(function(z,B){return z+B.x},0)/C.length}function Tx(C){var z=C.children;return z&&z.length?Tx(z[0]):C}function Ax(C){var z=C.children,B;return z&&(B=z.length)?Ax(z[B-1]):C}e.layout.treemap=function(){var C=e.layout.hierarchy(),z=Math.round,B=[1,1],G=null,W=Wd,Z=!1,le,ie="squarify",fe=.5*(1+Math.sqrt(5));function xe(Oe,He){for(var Xe=-1,er=Oe.length,tr,Ke;++Xe0;)er.push(Ke=tr[pr-1]),er.area+=Ke.area,ie!=="squarify"||(dr=Ne(er,yr))<=or?(tr.pop(),or=dr):(er.area-=er.pop().area,$e(er,yr,Xe,!1),yr=Math.min(Xe.dx,Xe.dy),er.length=er.area=0,or=1/0);er.length&&($e(er,yr,Xe,!0),er.length=er.area=0),He.forEach(_e)}}function Ie(Oe){var He=Oe.children;if(He&&He.length){var Xe=W(Oe),er=He.slice(),tr,Ke=[];for(xe(er,Xe.dx*Xe.dy/Oe.value),Ke.area=0;tr=er.pop();)Ke.push(tr),Ke.area+=tr.area,tr.z!=null&&($e(Ke,tr.z?Xe.dx:Xe.dy,Xe,!er.length),Ke.length=Ke.area=0);He.forEach(Ie)}}function Ne(Oe,He){for(var Xe=Oe.area,er,tr=0,Ke=1/0,or=-1,dr=Oe.length;++ortr&&(tr=er));return Xe*=Xe,He*=He,Xe?Math.max(He*tr*fe/Xe,Xe/(He*Ke*fe)):1/0}function $e(Oe,He,Xe,er){var tr=-1,Ke=Oe.length,or=Xe.x,dr=Xe.y,yr=He?z(Oe.area/He):0,pr;if(He==Xe.dx){for((er||yr>Xe.dy)&&(yr=Xe.dy);++trXe.dx)&&(yr=Xe.dx);++tr1);return C+z*G*Math.sqrt(-2*Math.log(Z)/Z)}},logNormal:function(){var C=e.random.normal.apply(e,arguments);return function(){return Math.exp(C())}},bates:function(C){var z=e.random.irwinHall(C);return function(){return z()/C}},irwinHall:function(C){return function(){for(var z=0,B=0;B2?WO:GO,xe=G?vO:cO;return W=fe(C,z,xe,B),Z=fe(z,C,xe,pl),ie}function ie(fe){return W(fe)}return ie.invert=function(fe){return Z(fe)},ie.domain=function(fe){return arguments.length?(C=fe.map(Number),le()):C},ie.range=function(fe){return arguments.length?(z=fe,le()):z},ie.rangeRound=function(fe){return ie.range(fe).interpolate(ux)},ie.clamp=function(fe){return arguments.length?(G=fe,le()):G},ie.interpolate=function(fe){return arguments.length?(B=fe,le()):B},ie.ticks=function(fe){return Jd(C,fe)},ie.tickFormat=function(fe,xe){return d3_scale_linearTickFormat(C,fe,xe)},ie.nice=function(fe){return Lx(C,fe),le()},ie.copy=function(){return Cx(C,z,B,G)},le()}function Ex(C,z){return e.rebind(C,z,"range","rangeRound","interpolate","clamp")}function Lx(C,z){return Xd(C,Sx(Zd(C,z)[2])),Xd(C,Sx(Zd(C,z)[2])),C}function Zd(C,z){z==null&&(z=10);var B=nc(C),G=B[1]-B[0],W=Math.pow(10,Math.floor(Math.log(G/z)/Math.LN10)),Z=z/G*W;return Z<=.15?W*=10:Z<=.35?W*=5:Z<=.75&&(W*=2),B[0]=Math.ceil(B[0]/W)*W,B[1]=Math.floor(B[1]/W)*W+W*.5,B[2]=W,B}function Jd(C,z){return e.range.apply(e,Zd(C,z))}var XO={s:1,g:1,p:1,r:1,e:1};function Rx(C){return-Math.floor(Math.log(C)/Math.LN10+.01)}function Pue(C,z){var B=Rx(z[2]);return C in XO?Math.abs(B-Rx(Math.max(y(z[0]),y(z[1]))))+ +(C!=="e"):B-(C==="%")*2}e.scale.log=function(){return Dx(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Dx(C,z,B,G){function W(ie){return(B?Math.log(ie<0?0:ie):-Math.log(ie>0?0:-ie))/Math.log(z)}function Z(ie){return B?Math.pow(z,ie):-Math.pow(z,-ie)}function le(ie){return C(W(ie))}return le.invert=function(ie){return Z(C.invert(ie))},le.domain=function(ie){return arguments.length?(B=ie[0]>=0,C.domain((G=ie.map(Number)).map(W)),le):G},le.base=function(ie){return arguments.length?(z=+ie,C.domain(G.map(W)),le):z},le.nice=function(){var ie=Xd(G.map(W),B?Math:ZO);return C.domain(ie),G=ie.map(Z),le},le.ticks=function(){var ie=nc(G),fe=[],xe=ie[0],_e=ie[1],Ie=Math.floor(W(xe)),Ne=Math.ceil(W(_e)),$e=z%1?2:z;if(isFinite(Ne-Ie)){if(B){for(;Ie0;rr--)fe.push(Z(Ie)*rr);for(Ie=0;fe[Ie]_e;Ne--);fe=fe.slice(Ie,Ne)}return fe},le.copy=function(){return Dx(C.copy(),z,B,G)},Ex(le,C)}var ZO={floor:function(C){return-Math.ceil(-C)},ceil:function(C){return-Math.floor(-C)}};e.scale.pow=function(){return Px(e.scale.linear(),1,[0,1])};function Px(C,z,B){var G=ic(z),W=ic(1/z);function Z(le){return C(G(le))}return Z.invert=function(le){return W(C.invert(le))},Z.domain=function(le){return arguments.length?(C.domain((B=le.map(Number)).map(G)),Z):B},Z.ticks=function(le){return Jd(B,le)},Z.tickFormat=function(le,ie){return d3_scale_linearTickFormat(B,le,ie)},Z.nice=function(le){return Z.domain(Lx(B,le))},Z.exponent=function(le){return arguments.length?(G=ic(z=le),W=ic(1/z),C.domain(B.map(G)),Z):z},Z.copy=function(){return Px(C.copy(),z,B)},Ex(Z,C)}function ic(C){return function(z){return z<0?-Math.pow(-z,C):Math.pow(z,C)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Fx([],{t:"range",a:[[]]})};function Fx(C,z){var B,G,W;function Z(ie){return G[((B.get(ie)||(z.t==="range"?B.set(ie,C.push(ie)):NaN))-1)%G.length]}function le(ie,fe){return e.range(C.length).map(function(xe){return ie+fe*xe})}return Z.domain=function(ie){if(!arguments.length)return C;C=[],B=new x;for(var fe=-1,xe=ie.length,_e;++fe0?B[Z-1]:C[0],ZNe?0:1;if(_e=se)return fe(_e,rr)+(xe?fe(xe,1-rr):"")+"Z";var Oe,He,Xe,er,tr=0,Ke=0,or,dr,yr,pr,br,_r,qr,Mr,Pr=[];if((er=(+le.apply(this,arguments)||0)/2)&&(Xe=G===oc?Math.sqrt(xe*xe+_e*_e):+G.apply(this,arguments),rr||(Ke*=-1),_e&&(Ke=hr(Xe/_e*Math.sin(er))),xe&&(tr=hr(Xe/xe*Math.sin(er)))),_e){or=_e*Math.cos(Ie+Ke),dr=_e*Math.sin(Ie+Ke),yr=_e*Math.cos(Ne-Ke),pr=_e*Math.sin(Ne-Ke);var st=Math.abs(Ne-Ie-2*Ke)<=Ve?0:1;if(Ke&&lc(or,dr,yr,pr)===rr^st){var Bt=(Ie+Ne)/2;or=_e*Math.cos(Bt),dr=_e*Math.sin(Bt),yr=pr=null}}else or=dr=0;if(xe){br=xe*Math.cos(Ne-tr),_r=xe*Math.sin(Ne-tr),qr=xe*Math.cos(Ie+tr),Mr=xe*Math.sin(Ie+tr);var dt=Math.abs(Ie-Ne+2*tr)<=Ve?0:1;if(tr&&lc(br,_r,qr,Mr)===1-rr^dt){var cr=(Ie+Ne)/2;br=xe*Math.cos(cr),_r=xe*Math.sin(cr),qr=Mr=null}}else br=_r=0;if($e>De&&(Oe=Math.min(Math.abs(_e-xe)/2,+B.apply(this,arguments)))>.001){He=xe<_e^rr?0:1;var Or=Oe,Vr=Oe;if($e0?0:1}function sc(C,z,B,G,W){var Z=C[0]-z[0],le=C[1]-z[1],ie=(W?G:-G)/Math.sqrt(Z*Z+le*le),fe=ie*le,xe=-ie*Z,_e=C[0]+fe,Ie=C[1]+xe,Ne=z[0]+fe,$e=z[1]+xe,rr=(_e+Ne)/2,Oe=(Ie+$e)/2,He=Ne-_e,Xe=$e-Ie,er=He*He+Xe*Xe,tr=B-G,Ke=_e*$e-Ne*Ie,or=(Xe<0?-1:1)*Math.sqrt(Math.max(0,tr*tr*er-Ke*Ke)),dr=(Ke*Xe-He*or)/er,yr=(-Ke*He-Xe*or)/er,pr=(Ke*Xe+He*or)/er,br=(-Ke*He+Xe*or)/er,_r=dr-rr,qr=yr-Oe,Mr=pr-rr,Pr=br-Oe;return _r*_r+qr*qr>Mr*Mr+Pr*Pr&&(dr=pr,yr=br),[[dr-fe,yr-xe],[dr*B/tr,yr*B/tr]]}function Ux(){return!0}function Hx(C){var z=xs,B=Zu,G=Ux,W=Xa,Z=W.key,le=.7;function ie(fe){var xe=[],_e=[],Ie=-1,Ne=fe.length,$e,rr=Xr(z),Oe=Xr(B);function He(){xe.push("M",W(C(_e),le))}for(;++Ie1?C.join("L"):C+"Z"}function Vx(C){return C.join("L")+"Z"}function nB(C){for(var z=0,B=C.length,G=C[0],W=[G[0],",",G[1]];++z1&&W.push("H",G[0]),W.join("")}function Qd(C){for(var z=0,B=C.length,G=C[0],W=[G[0],",",G[1]];++z1){ie=z[1],Z=C[fe],fe++,G+="C"+(W[0]+le[0])+","+(W[1]+le[1])+","+(Z[0]-ie[0])+","+(Z[1]-ie[1])+","+Z[0]+","+Z[1];for(var xe=2;xe9&&(Z=B*3/Math.sqrt(Z),le[ie]=Z*G,le[ie+1]=Z*W));for(ie=-1;++ie<=fe;)Z=(C[Math.min(fe,ie+1)][0]-C[Math.max(0,ie-1)][0])/(6*(1+le[ie]*le[ie])),z.push([Z||0,le[ie]*Z||0]);return z}function vB(C){return C.length<3?Xa(C):C[0]+uc(C,cB(C))}e.svg.line.radial=function(){var C=Hx(Xx);return C.radius=C.x,delete C.x,C.angle=C.y,delete C.y,C};function Xx(C){for(var z,B=-1,G=C.length,W,Z;++BVe)+",1 "+Ie}function xe(_e,Ie,Ne,$e){return"Q 0,0 "+$e}return Z.radius=function(_e){return arguments.length?(B=Xr(_e),Z):B},Z.source=function(_e){return arguments.length?(C=Xr(_e),Z):C},Z.target=function(_e){return arguments.length?(z=Xr(_e),Z):z},Z.startAngle=function(_e){return arguments.length?(G=Xr(_e),Z):G},Z.endAngle=function(_e){return arguments.length?(W=Xr(_e),Z):W},Z};function hB(C){return C.radius}e.svg.diagonal=function(){var C=Jx,z=Kx,B=Qx;function G(W,Z){var le=C.call(this,W,Z),ie=z.call(this,W,Z),fe=(le.y+ie.y)/2,xe=[le,{x:le.x,y:fe},{x:ie.x,y:fe},ie];return xe=xe.map(B),"M"+xe[0]+"C"+xe[1]+" "+xe[2]+" "+xe[3]}return G.source=function(W){return arguments.length?(C=Xr(W),G):C},G.target=function(W){return arguments.length?(z=Xr(W),G):z},G.projection=function(W){return arguments.length?(B=W,G):B},G};function Qx(C){return[C.x,C.y]}e.svg.diagonal.radial=function(){var C=e.svg.diagonal(),z=Qx,B=C.projection;return C.projection=function(G){return arguments.length?B(dB(z=G)):z},C};function dB(C){return function(){var z=C.apply(this,arguments),B=z[0],G=z[1]-K;return[B*Math.cos(G),B*Math.sin(G)]}}e.svg.symbol=function(){var C=gB,z=pB;function B(G,W){return(jx.get(C.call(this,G,W))||$x)(z.call(this,G,W))}return B.type=function(G){return arguments.length?(C=Xr(G),B):C},B.size=function(G){return arguments.length?(z=Xr(G),B):z},B};function pB(){return 64}function gB(){return"circle"}function $x(C){var z=Math.sqrt(C/Ve);return"M0,"+z+"A"+z+","+z+" 0 1,1 0,"+-z+"A"+z+","+z+" 0 1,1 0,"+z+"Z"}var jx=e.map({circle:$x,cross:function(C){var z=Math.sqrt(C/5)/2;return"M"+-3*z+","+-z+"H"+-z+"V"+-3*z+"H"+z+"V"+-z+"H"+3*z+"V"+z+"H"+z+"V"+3*z+"H"+-z+"V"+z+"H"+-3*z+"Z"},diamond:function(C){var z=Math.sqrt(C/(2*eb)),B=z*eb;return"M0,"+-z+"L"+B+",0 0,"+z+" "+-B+",0Z"},square:function(C){var z=Math.sqrt(C)/2;return"M"+-z+","+-z+"L"+z+","+-z+" "+z+","+z+" "+-z+","+z+"Z"},"triangle-down":function(C){var z=Math.sqrt(C/fc),B=z*fc/2;return"M0,"+B+"L"+z+","+-B+" "+-z+","+-B+"Z"},"triangle-up":function(C){var z=Math.sqrt(C/fc),B=z*fc/2;return"M0,"+-B+"L"+z+","+B+" "+-z+","+B+"Z"}});e.svg.symbolTypes=jx.keys();var fc=Math.sqrt(3),eb=Math.tan(30*ne);ee.transition=function(C){for(var z=yl||++tb,B=np(C),G=[],W,Z,le=vc||{time:Date.now(),ease:Zq,delay:0,duration:250},ie=-1,fe=this.length;++ie0;)Ie[--er].call(C,Xe);if(He>=1)return le.event&&le.event.end.call(C,C.__data__,z),--Z.count?delete Z[G]:delete C[B],1}le||(ie=W.time,fe=K0(Ne,0,ie),le=Z[G]={tween:new x,time:ie,timer:fe,delay:W.delay,duration:W.duration,ease:W.ease,index:z},W=null,++Z.count)}e.svg.axis=function(){var C=e.scale.linear(),z=nb,B=6,G=6,W=3,Z=[10],le=null,ie;function fe(xe){xe.each(function(){var _e=e.select(this),Ie=this.__chart__||C,Ne=this.__chart__=C.copy(),$e=le==null?Ne.ticks?Ne.ticks.apply(Ne,Z):Ne.domain():le,rr=ie==null?Ne.tickFormat?Ne.tickFormat.apply(Ne,Z):N:ie,Oe=_e.selectAll(".tick").data($e,Ne),He=Oe.enter().insert("g",".domain").attr("class","tick").style("opacity",De),Xe=e.transition(Oe.exit()).style("opacity",De).remove(),er=e.transition(Oe.order()).style("opacity",1),tr=Math.max(B,0)+W,Ke,or=ac(Ne),dr=_e.selectAll(".domain").data([0]),yr=(dr.enter().append("path").attr("class","domain"),e.transition(dr));He.append("line"),He.append("text");var pr=He.select("line"),br=er.select("line"),_r=Oe.select("text").text(rr),qr=He.select("text"),Mr=er.select("text"),Pr=z==="top"||z==="left"?-1:1,st,Bt,dt,cr;if(z==="bottom"||z==="top"?(Ke=xB,st="x",dt="y",Bt="x2",cr="y2",_r.attr("dy",Pr<0?"0em":".71em").style("text-anchor","middle"),yr.attr("d","M"+or[0]+","+Pr*G+"V0H"+or[1]+"V"+Pr*G)):(Ke=bB,st="y",dt="x",Bt="y2",cr="x2",_r.attr("dy",".32em").style("text-anchor",Pr<0?"end":"start"),yr.attr("d","M"+Pr*G+","+or[0]+"H0V"+or[1]+"H"+Pr*G)),pr.attr(cr,Pr*B),qr.attr(dt,Pr*tr),br.attr(Bt,0).attr(cr,Pr*B),Mr.attr(st,0).attr(dt,Pr*tr),Ne.rangeBand){var Or=Ne,Vr=Or.rangeBand()/2;Ie=Ne=function(ut){return Or(ut)+Vr}}else Ie.rangeBand?Ie=Ne:Xe.call(Ke,Ne,Ie);He.call(Ke,Ie,Ne),er.call(Ke,Ne,Ne)})}return fe.scale=function(xe){return arguments.length?(C=xe,fe):C},fe.orient=function(xe){return arguments.length?(z=xe in mB?xe+"":nb,fe):z},fe.ticks=function(){return arguments.length?(Z=t(arguments),fe):Z},fe.tickValues=function(xe){return arguments.length?(le=xe,fe):le},fe.tickFormat=function(xe){return arguments.length?(ie=xe,fe):ie},fe.tickSize=function(xe){var _e=arguments.length;return _e?(B=+xe,G=+arguments[_e-1],fe):B},fe.innerTickSize=function(xe){return arguments.length?(B=+xe,fe):B},fe.outerTickSize=function(xe){return arguments.length?(G=+xe,fe):G},fe.tickPadding=function(xe){return arguments.length?(W=+xe,fe):W},fe.tickSubdivide=function(){return arguments.length&&fe},fe};var nb="bottom",mB={top:1,right:1,bottom:1,left:1};function xB(C,z,B){C.attr("transform",function(G){var W=z(G);return"translate("+(isFinite(W)?W:B(G))+",0)"})}function bB(C,z,B){C.attr("transform",function(G){var W=z(G);return"translate(0,"+(isFinite(W)?W:B(G))+")"})}e.svg.brush=function(){var C=j(_e,"brushstart","brush","brushend"),z=null,B=null,G=[0,0],W=[0,0],Z,le,ie=!0,fe=!0,xe=ap[0];function _e(Oe){Oe.each(function(){var He=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",rr).on("touchstart.brush",rr),Xe=He.selectAll(".background").data([0]);Xe.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),He.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var er=He.selectAll(".resize").data(xe,N);er.exit().remove(),er.enter().append("g").attr("class",function(dr){return"resize "+dr}).style("cursor",function(dr){return _B[dr]}).append("rect").attr("x",function(dr){return/[ew]$/.test(dr)?-3:null}).attr("y",function(dr){return/^[ns]/.test(dr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),er.style("display",_e.empty()?"none":null);var tr=e.transition(He),Ke=e.transition(Xe),or;z&&(or=ac(z),Ke.attr("x",or[0]).attr("width",or[1]-or[0]),Ne(tr)),B&&(or=ac(B),Ke.attr("y",or[0]).attr("height",or[1]-or[0]),$e(tr)),Ie(tr)})}_e.event=function(Oe){Oe.each(function(){var He=C.of(this,arguments),Xe={x:G,y:W,i:Z,j:le},er=this.__chart__||Xe;this.__chart__=Xe,yl?e.select(this).transition().each("start.brush",function(){Z=er.i,le=er.j,G=er.x,W=er.y,He({type:"brushstart"})}).tween("brush:brush",function(){var tr=tc(G,Xe.x),Ke=tc(W,Xe.y);return Z=le=null,function(or){G=Xe.x=tr(or),W=Xe.y=Ke(or),He({type:"brush",mode:"resize"})}}).each("end.brush",function(){Z=Xe.i,le=Xe.j,He({type:"brush",mode:"resize"}),He({type:"brushend"})}):(He({type:"brushstart"}),He({type:"brush",mode:"resize"}),He({type:"brushend"}))})};function Ie(Oe){Oe.selectAll(".resize").attr("transform",function(He){return"translate("+G[+/e$/.test(He)]+","+W[+/^s/.test(He)]+")"})}function Ne(Oe){Oe.select(".extent").attr("x",G[0]),Oe.selectAll(".extent,.n>rect,.s>rect").attr("width",G[1]-G[0])}function $e(Oe){Oe.select(".extent").attr("y",W[0]),Oe.selectAll(".extent,.e>rect,.w>rect").attr("height",W[1]-W[0])}function rr(){var Oe=this,He=e.select(e.event.target),Xe=C.of(Oe,arguments),er=e.select(Oe),tr=He.datum(),Ke=!/^(n|s)$/.test(tr)&&z,or=!/^(e|w)$/.test(tr)&&B,dr=He.classed("extent"),yr=Ye(Oe),pr,br=e.mouse(Oe),_r,qr=e.select(o(Oe)).on("keydown.brush",st).on("keyup.brush",Bt);if(e.event.changedTouches?qr.on("touchmove.brush",dt).on("touchend.brush",Or):qr.on("mousemove.brush",dt).on("mouseup.brush",Or),er.interrupt().selectAll("*").interrupt(),dr)br[0]=G[0]-br[0],br[1]=W[0]-br[1];else if(tr){var Mr=+/w$/.test(tr),Pr=+/^n/.test(tr);_r=[G[1-Mr]-br[0],W[1-Pr]-br[1]],br[0]=G[Mr],br[1]=W[Pr]}else e.event.altKey&&(pr=br.slice());er.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",He.style("cursor")),Xe({type:"brushstart"}),dt();function st(){e.event.keyCode==32&&(dr||(pr=null,br[0]-=G[1],br[1]-=W[1],dr=2),X())}function Bt(){e.event.keyCode==32&&dr==2&&(br[0]+=G[1],br[1]+=W[1],dr=0,X())}function dt(){var Vr=e.mouse(Oe),ut=!1;_r&&(Vr[0]+=_r[0],Vr[1]+=_r[1]),dr||(e.event.altKey?(pr||(pr=[(G[0]+G[1])/2,(W[0]+W[1])/2]),br[0]=G[+(Vr[0]{(function(e,r){typeof mc=="object"&&typeof fb!="undefined"?r(mc):(e=e||self,r(e.d3=e.d3||{}))})(mc,function(e){"use strict";var r=new Date,t=new Date;function n(ge,Me,ce,ye){function Le(me){return ge(me=arguments.length===0?new Date:new Date(+me)),me}return Le.floor=function(me){return ge(me=new Date(+me)),me},Le.ceil=function(me){return ge(me=new Date(me-1)),Me(me,1),ge(me),me},Le.round=function(me){var de=Le(me),be=Le.ceil(me);return me-de0))return Ae;do Ae.push(qe=new Date(+me)),Me(me,be),ge(me);while(qe=de)for(;ge(de),!me(de);)de.setTime(de-1)},function(de,be){if(de>=de)if(be<0)for(;++be<=0;)for(;Me(de,-1),!me(de););else for(;--be>=0;)for(;Me(de,1),!me(de););})},ce&&(Le.count=function(me,de){return r.setTime(+me),t.setTime(+de),ge(r),ge(t),Math.floor(ce(r,t))},Le.every=function(me){return me=Math.floor(me),!isFinite(me)||!(me>0)?null:me>1?Le.filter(ye?function(de){return ye(de)%me===0}:function(de){return Le.count(0,de)%me===0}):Le}),Le}var a=n(function(){},function(ge,Me){ge.setTime(+ge+Me)},function(ge,Me){return Me-ge});a.every=function(ge){return ge=Math.floor(ge),!isFinite(ge)||!(ge>0)?null:ge>1?n(function(Me){Me.setTime(Math.floor(Me/ge)*ge)},function(Me,ce){Me.setTime(+Me+ce*ge)},function(Me,ce){return(ce-Me)/ge}):a};var o=a.range,i=1e3,l=6e4,u=36e5,s=864e5,f=6048e5,v=n(function(ge){ge.setTime(ge-ge.getMilliseconds())},function(ge,Me){ge.setTime(+ge+Me*i)},function(ge,Me){return(Me-ge)/i},function(ge){return ge.getUTCSeconds()}),p=v.range,b=n(function(ge){ge.setTime(ge-ge.getMilliseconds()-ge.getSeconds()*i)},function(ge,Me){ge.setTime(+ge+Me*l)},function(ge,Me){return(Me-ge)/l},function(ge){return ge.getMinutes()}),m=b.range,w=n(function(ge){ge.setTime(ge-ge.getMilliseconds()-ge.getSeconds()*i-ge.getMinutes()*l)},function(ge,Me){ge.setTime(+ge+Me*u)},function(ge,Me){return(Me-ge)/u},function(ge){return ge.getHours()}),M=w.range,y=n(function(ge){ge.setHours(0,0,0,0)},function(ge,Me){ge.setDate(ge.getDate()+Me)},function(ge,Me){return(Me-ge-(Me.getTimezoneOffset()-ge.getTimezoneOffset())*l)/s},function(ge){return ge.getDate()-1}),k=y.range;function S(ge){return n(function(Me){Me.setDate(Me.getDate()-(Me.getDay()+7-ge)%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())*l)/f})}var x=S(0),T=S(1),d=S(2),_=S(3),g=S(4),c=S(5),A=S(6),h=x.range,R=T.range,E=d.range,D=_.range,N=g.range,I=c.range,F=A.range,L=n(function(ge){ge.setDate(1),ge.setHours(0,0,0,0)},function(ge,Me){ge.setMonth(ge.getMonth()+Me)},function(ge,Me){return Me.getMonth()-ge.getMonth()+(Me.getFullYear()-ge.getFullYear())*12},function(ge){return ge.getMonth()}),P=L.range,O=n(function(ge){ge.setMonth(0,1),ge.setHours(0,0,0,0)},function(ge,Me){ge.setFullYear(ge.getFullYear()+Me)},function(ge,Me){return Me.getFullYear()-ge.getFullYear()},function(ge){return ge.getFullYear()});O.every=function(ge){return!isFinite(ge=Math.floor(ge))||!(ge>0)?null:n(function(Me){Me.setFullYear(Math.floor(Me.getFullYear()/ge)*ge),Me.setMonth(0,1),Me.setHours(0,0,0,0)},function(Me,ce){Me.setFullYear(Me.getFullYear()+ce*ge)})};var U=O.range,X=n(function(ge){ge.setUTCSeconds(0,0)},function(ge,Me){ge.setTime(+ge+Me*l)},function(ge,Me){return(Me-ge)/l},function(ge){return ge.getUTCMinutes()}),$=X.range,j=n(function(ge){ge.setUTCMinutes(0,0,0)},function(ge,Me){ge.setTime(+ge+Me*u)},function(ge,Me){return(Me-ge)/u},function(ge){return ge.getUTCHours()}),Y=j.range,q=n(function(ge){ge.setUTCHours(0,0,0,0)},function(ge,Me){ge.setUTCDate(ge.getUTCDate()+Me)},function(ge,Me){return(Me-ge)/s},function(ge){return ge.getUTCDate()-1}),J=q.range;function ae(ge){return n(function(Me){Me.setUTCDate(Me.getUTCDate()-(Me.getUTCDay()+7-ge)%7),Me.setUTCHours(0,0,0,0)},function(Me,ce){Me.setUTCDate(Me.getUTCDate()+ce*7)},function(Me,ce){return(ce-Me)/f})}var Q=ae(0),oe=ae(1),ee=ae(2),V=ae(3),re=ae(4),H=ae(5),te=ae(6),ue=Q.range,he=oe.range,Ce=ee.range,Se=V.range,ve=re.range,Te=H.range,ke=te.range,Fe=n(function(ge){ge.setUTCDate(1),ge.setUTCHours(0,0,0,0)},function(ge,Me){ge.setUTCMonth(ge.getUTCMonth()+Me)},function(ge,Me){return Me.getUTCMonth()-ge.getUTCMonth()+(Me.getUTCFullYear()-ge.getUTCFullYear())*12},function(ge){return ge.getUTCMonth()}),Ee=Fe.range,ze=n(function(ge){ge.setUTCMonth(0,1),ge.setUTCHours(0,0,0,0)},function(ge,Me){ge.setUTCFullYear(ge.getUTCFullYear()+Me)},function(ge,Me){return Me.getUTCFullYear()-ge.getUTCFullYear()},function(ge){return ge.getUTCFullYear()});ze.every=function(ge){return!isFinite(ge=Math.floor(ge))||!(ge>0)?null:n(function(Me){Me.setUTCFullYear(Math.floor(Me.getUTCFullYear()/ge)*ge),Me.setUTCMonth(0,1),Me.setUTCHours(0,0,0,0)},function(Me,ce){Me.setUTCFullYear(Me.getUTCFullYear()+ce*ge)})};var Be=ze.range;e.timeDay=y,e.timeDays=k,e.timeFriday=c,e.timeFridays=I,e.timeHour=w,e.timeHours=M,e.timeInterval=n,e.timeMillisecond=a,e.timeMilliseconds=o,e.timeMinute=b,e.timeMinutes=m,e.timeMonday=T,e.timeMondays=R,e.timeMonth=L,e.timeMonths=P,e.timeSaturday=A,e.timeSaturdays=F,e.timeSecond=v,e.timeSeconds=p,e.timeSunday=x,e.timeSundays=h,e.timeThursday=g,e.timeThursdays=N,e.timeTuesday=d,e.timeTuesdays=E,e.timeWednesday=_,e.timeWednesdays=D,e.timeWeek=x,e.timeWeeks=h,e.timeYear=O,e.timeYears=U,e.utcDay=q,e.utcDays=J,e.utcFriday=H,e.utcFridays=Te,e.utcHour=j,e.utcHours=Y,e.utcMillisecond=a,e.utcMilliseconds=o,e.utcMinute=X,e.utcMinutes=$,e.utcMonday=oe,e.utcMondays=he,e.utcMonth=Fe,e.utcMonths=Ee,e.utcSaturday=te,e.utcSaturdays=ke,e.utcSecond=v,e.utcSeconds=p,e.utcSunday=Q,e.utcSundays=ue,e.utcThursday=re,e.utcThursdays=ve,e.utcTuesday=ee,e.utcTuesdays=Ce,e.utcWednesday=V,e.utcWednesdays=Se,e.utcWeek=Q,e.utcWeeks=ue,e.utcYear=ze,e.utcYears=Be,Object.defineProperty(e,"__esModule",{value:!0})})});var ks=pe((xc,cb)=>{(function(e,r){typeof xc=="object"&&typeof cb!="undefined"?r(xc,ip()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(xc,function(e,r){"use strict";function t(we){if(0<=we.y&&we.y<100){var De=new Date(-1,we.m,we.d,we.H,we.M,we.S,we.L);return De.setFullYear(we.y),De}return new Date(we.y,we.m,we.d,we.H,we.M,we.S,we.L)}function n(we){if(0<=we.y&&we.y<100){var De=new Date(Date.UTC(-1,we.m,we.d,we.H,we.M,we.S,we.L));return De.setUTCFullYear(we.y),De}return new Date(Date.UTC(we.y,we.m,we.d,we.H,we.M,we.S,we.L))}function a(we,De,Qe){return{y:we,m:De,d:Qe,H:0,M:0,S:0,L:0}}function o(we){var De=we.dateTime,Qe=we.date,Ve=we.time,ar=we.periods,se=we.days,K=we.shortDays,ne=we.months,Re=we.shortMonths,Ue=p(ar),je=b(ar),nr=p(se),hr=b(se),wr=p(K),Cr=b(K),Tr=p(ne),Ar=b(ne),ft=p(Re),Yr=b(Re),mr={a:va,A:Kn,b:Fn,B:wa,c:null,d:L,e:L,f:$,H:P,I:O,j:U,L:X,m:j,M:Y,p:xi,q:Gi,Q:de,s:be,S:q,u:J,U:ae,V:Q,w:oe,W:ee,x:null,X:null,y:V,Y:re,Z:H,"%":me},ct={a:Yi,A:Wi,b:tn,B:xo,c:null,d:te,e:te,f:ve,H:ue,I:he,j:Ce,L:Se,m:Te,M:ke,p:bi,q:_i,Q:de,s:be,S:Fe,u:Ee,U:ze,V:Be,w:ge,W:Me,x:null,X:null,y:ce,Y:ye,Z:Le,"%":me},Sr={a:Ot,A:Lt,b:yn,B:Gt,c:Rt,d:g,e:g,f:D,H:A,I:A,j:c,L:E,m:_,M:h,p:Hr,q:d,Q:I,s:F,S:R,u:w,U:M,V:y,w:m,W:k,x:nt,X:Ft,y:x,Y:S,Z:T,"%":N};mr.x=Ur(Qe,mr),mr.X=Ur(Ve,mr),mr.c=Ur(De,mr),ct.x=Ur(Qe,ct),ct.X=Ur(Ve,ct),ct.c=Ur(De,ct);function Ur(kr,at){return function(vt){var gr=[],mn=-1,bt=0,xn=kr.length,Xr,Wa,hl;for(vt instanceof Date||(vt=new Date(+vt));++mn53)return null;"w"in gr||(gr.w=1),"Z"in gr?(bt=n(a(gr.y,0,1)),xn=bt.getUTCDay(),bt=xn>4||xn===0?r.utcMonday.ceil(bt):r.utcMonday(bt),bt=r.utcDay.offset(bt,(gr.V-1)*7),gr.y=bt.getUTCFullYear(),gr.m=bt.getUTCMonth(),gr.d=bt.getUTCDate()+(gr.w+6)%7):(bt=t(a(gr.y,0,1)),xn=bt.getDay(),bt=xn>4||xn===0?r.timeMonday.ceil(bt):r.timeMonday(bt),bt=r.timeDay.offset(bt,(gr.V-1)*7),gr.y=bt.getFullYear(),gr.m=bt.getMonth(),gr.d=bt.getDate()+(gr.w+6)%7)}else("W"in gr||"U"in gr)&&("w"in gr||(gr.w="u"in gr?gr.u%7:"W"in gr?1:0),xn="Z"in gr?n(a(gr.y,0,1)).getUTCDay():t(a(gr.y,0,1)).getDay(),gr.m=0,gr.d="W"in gr?(gr.w+6)%7+gr.W*7-(xn+5)%7:gr.w+gr.U*7-(xn+6)%7);return"Z"in gr?(gr.H+=gr.Z/100|0,gr.M+=gr.Z%100,n(gr)):t(gr)}}function zr(kr,at,vt,gr){for(var mn=0,bt=at.length,xn=vt.length,Xr,Wa;mn=xn)return-1;if(Xr=at.charCodeAt(mn++),Xr===37){if(Xr=at.charAt(mn++),Wa=Sr[Xr in i?at.charAt(mn++):Xr],!Wa||(gr=Wa(kr,vt,gr))<0)return-1}else if(Xr!=vt.charCodeAt(gr++))return-1}return gr}function Hr(kr,at,vt){var gr=Ue.exec(at.slice(vt));return gr?(kr.p=je[gr[0].toLowerCase()],vt+gr[0].length):-1}function Ot(kr,at,vt){var gr=wr.exec(at.slice(vt));return gr?(kr.w=Cr[gr[0].toLowerCase()],vt+gr[0].length):-1}function Lt(kr,at,vt){var gr=nr.exec(at.slice(vt));return gr?(kr.w=hr[gr[0].toLowerCase()],vt+gr[0].length):-1}function yn(kr,at,vt){var gr=ft.exec(at.slice(vt));return gr?(kr.m=Yr[gr[0].toLowerCase()],vt+gr[0].length):-1}function Gt(kr,at,vt){var gr=Tr.exec(at.slice(vt));return gr?(kr.m=Ar[gr[0].toLowerCase()],vt+gr[0].length):-1}function Rt(kr,at,vt){return zr(kr,De,at,vt)}function nt(kr,at,vt){return zr(kr,Qe,at,vt)}function Ft(kr,at,vt){return zr(kr,Ve,at,vt)}function va(kr){return K[kr.getDay()]}function Kn(kr){return se[kr.getDay()]}function Fn(kr){return Re[kr.getMonth()]}function wa(kr){return ne[kr.getMonth()]}function xi(kr){return ar[+(kr.getHours()>=12)]}function Gi(kr){return 1+~~(kr.getMonth()/3)}function Yi(kr){return K[kr.getUTCDay()]}function Wi(kr){return se[kr.getUTCDay()]}function tn(kr){return Re[kr.getUTCMonth()]}function xo(kr){return ne[kr.getUTCMonth()]}function bi(kr){return ar[+(kr.getUTCHours()>=12)]}function _i(kr){return 1+~~(kr.getUTCMonth()/3)}return{format:function(kr){var at=Ur(kr+="",mr);return at.toString=function(){return kr},at},parse:function(kr){var at=xt(kr+="",!1);return at.toString=function(){return kr},at},utcFormat:function(kr){var at=Ur(kr+="",ct);return at.toString=function(){return kr},at},utcParse:function(kr){var at=xt(kr+="",!0);return at.toString=function(){return kr},at}}}var i={"-":"",_:" ",0:"0"},l=/^\s*\d+/,u=/^%/,s=/[\\^$*+?|[\]().{}]/g;function f(we,De,Qe){var Ve=we<0?"-":"",ar=(Ve?-we:we)+"",se=ar.length;return Ve+(se68?1900:2e3),Qe+Ve[0].length):-1}function T(we,De,Qe){var Ve=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(De.slice(Qe,Qe+6));return Ve?(we.Z=Ve[1]?0:-(Ve[2]+(Ve[3]||"00")),Qe+Ve[0].length):-1}function d(we,De,Qe){var Ve=l.exec(De.slice(Qe,Qe+1));return Ve?(we.q=Ve[0]*3-3,Qe+Ve[0].length):-1}function _(we,De,Qe){var Ve=l.exec(De.slice(Qe,Qe+2));return Ve?(we.m=Ve[0]-1,Qe+Ve[0].length):-1}function g(we,De,Qe){var Ve=l.exec(De.slice(Qe,Qe+2));return Ve?(we.d=+Ve[0],Qe+Ve[0].length):-1}function c(we,De,Qe){var Ve=l.exec(De.slice(Qe,Qe+3));return Ve?(we.m=0,we.d=+Ve[0],Qe+Ve[0].length):-1}function A(we,De,Qe){var Ve=l.exec(De.slice(Qe,Qe+2));return Ve?(we.H=+Ve[0],Qe+Ve[0].length):-1}function h(we,De,Qe){var Ve=l.exec(De.slice(Qe,Qe+2));return Ve?(we.M=+Ve[0],Qe+Ve[0].length):-1}function R(we,De,Qe){var Ve=l.exec(De.slice(Qe,Qe+2));return Ve?(we.S=+Ve[0],Qe+Ve[0].length):-1}function E(we,De,Qe){var Ve=l.exec(De.slice(Qe,Qe+3));return Ve?(we.L=+Ve[0],Qe+Ve[0].length):-1}function D(we,De,Qe){var Ve=l.exec(De.slice(Qe,Qe+6));return Ve?(we.L=Math.floor(Ve[0]/1e3),Qe+Ve[0].length):-1}function N(we,De,Qe){var Ve=u.exec(De.slice(Qe,Qe+1));return Ve?Qe+Ve[0].length:-1}function I(we,De,Qe){var Ve=l.exec(De.slice(Qe));return Ve?(we.Q=+Ve[0],Qe+Ve[0].length):-1}function F(we,De,Qe){var Ve=l.exec(De.slice(Qe));return Ve?(we.s=+Ve[0],Qe+Ve[0].length):-1}function L(we,De){return f(we.getDate(),De,2)}function P(we,De){return f(we.getHours(),De,2)}function O(we,De){return f(we.getHours()%12||12,De,2)}function U(we,De){return f(1+r.timeDay.count(r.timeYear(we),we),De,3)}function X(we,De){return f(we.getMilliseconds(),De,3)}function $(we,De){return X(we,De)+"000"}function j(we,De){return f(we.getMonth()+1,De,2)}function Y(we,De){return f(we.getMinutes(),De,2)}function q(we,De){return f(we.getSeconds(),De,2)}function J(we){var De=we.getDay();return De===0?7:De}function ae(we,De){return f(r.timeSunday.count(r.timeYear(we)-1,we),De,2)}function Q(we,De){var Qe=we.getDay();return we=Qe>=4||Qe===0?r.timeThursday(we):r.timeThursday.ceil(we),f(r.timeThursday.count(r.timeYear(we),we)+(r.timeYear(we).getDay()===4),De,2)}function oe(we){return we.getDay()}function ee(we,De){return f(r.timeMonday.count(r.timeYear(we)-1,we),De,2)}function V(we,De){return f(we.getFullYear()%100,De,2)}function re(we,De){return f(we.getFullYear()%1e4,De,4)}function H(we){var De=we.getTimezoneOffset();return(De>0?"-":(De*=-1,"+"))+f(De/60|0,"0",2)+f(De%60,"0",2)}function te(we,De){return f(we.getUTCDate(),De,2)}function ue(we,De){return f(we.getUTCHours(),De,2)}function he(we,De){return f(we.getUTCHours()%12||12,De,2)}function Ce(we,De){return f(1+r.utcDay.count(r.utcYear(we),we),De,3)}function Se(we,De){return f(we.getUTCMilliseconds(),De,3)}function ve(we,De){return Se(we,De)+"000"}function Te(we,De){return f(we.getUTCMonth()+1,De,2)}function ke(we,De){return f(we.getUTCMinutes(),De,2)}function Fe(we,De){return f(we.getUTCSeconds(),De,2)}function Ee(we){var De=we.getUTCDay();return De===0?7:De}function ze(we,De){return f(r.utcSunday.count(r.utcYear(we)-1,we),De,2)}function Be(we,De){var Qe=we.getUTCDay();return we=Qe>=4||Qe===0?r.utcThursday(we):r.utcThursday.ceil(we),f(r.utcThursday.count(r.utcYear(we),we)+(r.utcYear(we).getUTCDay()===4),De,2)}function ge(we){return we.getUTCDay()}function Me(we,De){return f(r.utcMonday.count(r.utcYear(we)-1,we),De,2)}function ce(we,De){return f(we.getUTCFullYear()%100,De,2)}function ye(we,De){return f(we.getUTCFullYear()%1e4,De,4)}function Le(){return"+0000"}function me(){return"%"}function de(we){return+we}function be(we){return Math.floor(+we/1e3)}var Ae;qe({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 qe(we){return Ae=o(we),e.timeFormat=Ae.format,e.timeParse=Ae.parse,e.utcFormat=Ae.utcFormat,e.utcParse=Ae.utcParse,Ae}var Pe="%Y-%m-%dT%H:%M:%S.%LZ";function Ze(we){return we.toISOString()}var Ye=Date.prototype.toISOString?Ze:e.utcFormat(Pe);function Ge(we){var De=new Date(we);return isNaN(De)?null:De}var We=+new Date("2000-01-01T00:00:00.000Z")?Ge:e.utcParse(Pe);e.isoFormat=Ye,e.isoParse=We,e.timeFormatDefaultLocale=qe,e.timeFormatLocale=o,Object.defineProperty(e,"__esModule",{value:!0})})});var op=pe((bc,vb)=>{(function(e,r){typeof bc=="object"&&typeof vb!="undefined"?r(bc):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(bc,function(e){"use strict";function r(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)}function t(_,g){if((c=(_=g?_.toExponential(g-1):_.toExponential()).indexOf("e"))<0)return null;var c,A=_.slice(0,c);return[A.length>1?A[0]+A.slice(2):A,+_.slice(c+1)]}function n(_){return _=t(Math.abs(_)),_?_[1]:NaN}function a(_,g){return function(c,A){for(var h=c.length,R=[],E=0,D=_[0],N=0;h>0&&D>0&&(N+D+1>A&&(D=Math.max(1,A-N)),R.push(c.substring(h-=D,h+D)),!((N+=D+1)>A));)D=_[E=(E+1)%_.length];return R.reverse().join(g)}}function o(_){return function(g){return g.replace(/[0-9]/g,function(c){return _[+c]})}}var i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(_){if(!(g=i.exec(_)))throw new Error("invalid format: "+_);var g;return new u({fill:g[1],align:g[2],sign:g[3],symbol:g[4],zero:g[5],width:g[6],comma:g[7],precision:g[8]&&g[8].slice(1),trim:g[9],type:g[10]})}l.prototype=u.prototype;function u(_){this.fill=_.fill===void 0?" ":_.fill+"",this.align=_.align===void 0?">":_.align+"",this.sign=_.sign===void 0?"-":_.sign+"",this.symbol=_.symbol===void 0?"":_.symbol+"",this.zero=!!_.zero,this.width=_.width===void 0?void 0:+_.width,this.comma=!!_.comma,this.precision=_.precision===void 0?void 0:+_.precision,this.trim=!!_.trim,this.type=_.type===void 0?"":_.type+""}u.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function s(_){e:for(var g=_.length,c=1,A=-1,h;c0&&(A=0);break}return A>0?_.slice(0,A)+_.slice(h+1):_}var f;function v(_,g){var c=t(_,g);if(!c)return _+"";var A=c[0],h=c[1],R=h-(f=Math.max(-8,Math.min(8,Math.floor(h/3)))*3)+1,E=A.length;return R===E?A:R>E?A+new Array(R-E+1).join("0"):R>0?A.slice(0,R)+"."+A.slice(R):"0."+new Array(1-R).join("0")+t(_,Math.max(0,g+R-1))[0]}function p(_,g){var c=t(_,g);if(!c)return _+"";var A=c[0],h=c[1];return h<0?"0."+new Array(-h).join("0")+A:A.length>h+1?A.slice(0,h+1)+"."+A.slice(h+1):A+new Array(h-A.length+2).join("0")}var b={"%":function(_,g){return(_*100).toFixed(g)},b:function(_){return Math.round(_).toString(2)},c:function(_){return _+""},d:r,e:function(_,g){return _.toExponential(g)},f:function(_,g){return _.toFixed(g)},g:function(_,g){return _.toPrecision(g)},o:function(_){return Math.round(_).toString(8)},p:function(_,g){return p(_*100,g)},r:p,s:v,X:function(_){return Math.round(_).toString(16).toUpperCase()},x:function(_){return Math.round(_).toString(16)}};function m(_){return _}var w=Array.prototype.map,M=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function y(_){var g=_.grouping===void 0||_.thousands===void 0?m:a(w.call(_.grouping,Number),_.thousands+""),c=_.currency===void 0?"":_.currency[0]+"",A=_.currency===void 0?"":_.currency[1]+"",h=_.decimal===void 0?".":_.decimal+"",R=_.numerals===void 0?m:o(w.call(_.numerals,String)),E=_.percent===void 0?"%":_.percent+"",D=_.minus===void 0?"-":_.minus+"",N=_.nan===void 0?"NaN":_.nan+"";function I(L){L=l(L);var P=L.fill,O=L.align,U=L.sign,X=L.symbol,$=L.zero,j=L.width,Y=L.comma,q=L.precision,J=L.trim,ae=L.type;ae==="n"?(Y=!0,ae="g"):b[ae]||(q===void 0&&(q=12),J=!0,ae="g"),($||P==="0"&&O==="=")&&($=!0,P="0",O="=");var Q=X==="$"?c:X==="#"&&/[boxX]/.test(ae)?"0"+ae.toLowerCase():"",oe=X==="$"?A:/[%p]/.test(ae)?E:"",ee=b[ae],V=/[defgprs%]/.test(ae);q=q===void 0?6:/[gprs]/.test(ae)?Math.max(1,Math.min(21,q)):Math.max(0,Math.min(20,q));function re(H){var te=Q,ue=oe,he,Ce,Se;if(ae==="c")ue=ee(H)+ue,H="";else{H=+H;var ve=H<0||1/H<0;if(H=isNaN(H)?N:ee(Math.abs(H),q),J&&(H=s(H)),ve&&+H==0&&U!=="+"&&(ve=!1),te=(ve?U==="("?U:D:U==="-"||U==="("?"":U)+te,ue=(ae==="s"?M[8+f/3]:"")+ue+(ve&&U==="("?")":""),V){for(he=-1,Ce=H.length;++heSe||Se>57){ue=(Se===46?h+H.slice(he+1):H.slice(he))+ue,H=H.slice(0,he);break}}}Y&&!$&&(H=g(H,1/0));var Te=te.length+H.length+ue.length,ke=Te>1)+te+H+ue+ke.slice(Te);break;default:H=ke+te+H+ue;break}return R(H)}return re.toString=function(){return L+""},re}function F(L,P){var O=I((L=l(L),L.type="f",L)),U=Math.max(-8,Math.min(8,Math.floor(n(P)/3)))*3,X=Math.pow(10,-U),$=M[8+U/3];return function(j){return O(X*j)+$}}return{format:I,formatPrefix:F}}var k;S({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function S(_){return k=y(_),e.format=k.format,e.formatPrefix=k.formatPrefix,k}function x(_){return Math.max(0,-n(Math.abs(_)))}function T(_,g){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(g)/3)))*3-n(Math.abs(_)))}function d(_,g){return _=Math.abs(_),g=Math.abs(g)-_,Math.max(0,n(g)-n(_))+1}e.FormatSpecifier=u,e.formatDefaultLocale=S,e.formatLocale=y,e.formatSpecifier=l,e.precisionFixed=x,e.precisionPrefix=T,e.precisionRound=d,Object.defineProperty(e,"__esModule",{value:!0})})});var db=pe((zue,hb)=>{"use strict";hb.exports=function(e){for(var r=e.length,t,n=0;n13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var rt=pe((que,pb)=>{"use strict";var LB=db();pb.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&LB(t))return!1}else if(r!=="number")return!1;return e-e<1}});var nn=pe((Oue,gb)=>{"use strict";gb.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var lp=pe((_c,yb)=>{(function(e,r){typeof _c=="object"&&typeof yb!="undefined"?r(_c):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(_c,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],f+=r[(l[u]&3)<<4|l[u+1]>>4],f+=r[(l[u+1]&15)<<2|l[u+2]>>6],f+=r[l[u+2]&63];return s%3===2?f=f.substring(0,f.length-1)+"=":s%3===1&&(f=f.substring(0,f.length-2)+"=="),f},o=function(i){var l=i.length*.75,u=i.length,s,f=0,v,p,b,m;i[i.length-1]==="="&&(l--,i[i.length-2]==="="&&l--);var w=new ArrayBuffer(l),M=new Uint8Array(w);for(s=0;s>4,M[f++]=(p&15)<<4|b>>2,M[f++]=(b&3)<<6|m&63;return w};e.decode=o,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})})});var wo=pe((Bue,mb)=>{"use strict";mb.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var jn=pe(Ja=>{"use strict";var RB=lp().decode,DB=wo(),sp=Array.isArray,PB=ArrayBuffer,FB=DataView;function xb(e){return PB.isView(e)&&!(e instanceof FB)}Ja.isTypedArray=xb;function wc(e){return sp(e)||xb(e)}Ja.isArrayOrTypedArray=wc;function IB(e){return!wc(e[0])}Ja.isArray1D=IB;Ja.ensureArray=function(e,r){return sp(e)||(e=[]),e.length=r,e};var hn={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};hn.uint8c=hn.u1c;hn.uint8=hn.u1;hn.int8=hn.i1;hn.uint16=hn.u2;hn.int16=hn.i2;hn.uint32=hn.u4;hn.int32=hn.i4;hn.float32=hn.f4;hn.float64=hn.f8;function up(e){return e.constructor===ArrayBuffer}Ja.isArrayBuffer=up;Ja.decodeTypedArraySpec=function(e){var r=[],t=NB(e),n=t.dtype,a=hn[n];if(!a)throw new Error('Error in dtype: "'+n+'"');var o=a.BYTES_PER_ELEMENT,i=t.bdata;up(i)||(i=RB(i));var l=t.shape===void 0?[i.byteLength/o]:(""+t.shape).split(",");l.reverse();var u=l.length,s,f,v=+l[0],p=o*v,b=0;if(u===1)r=new a(i);else if(u===2)for(s=+l[1],f=0;f{"use strict";var _b=rt(),cp=jn().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 n=t.split("."),a,o,i,l;for(l=0;l{"use strict";var Ss=Mc(),UB=/^\w*$/,HB=0,kb=1,Tc=2,Sb=3,bl=4;Cb.exports=function(r,t,n,a){n=n||"name",a=a||"value";var o,i,l,u={};t&&t.length?(l=Ss(r,t),i=l.get()):i=r,t=t||"";var s={};if(i)for(o=0;o2)return u[b]=u[b]|Tc,v.set(p,null);if(f){for(o=b;o{"use strict";var VB=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,GB=/^[^\.\[\]]+$/;Lb.exports=function(e,r){for(;r;){var t=e.match(VB);if(t)e=t[1];else if(e.match(GB))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 Ac=pe((Yue,Db)=>{"use strict";var YB=rt();Db.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return YB(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}});var Ib=pe((Wue,Fb)=>{"use strict";var Pb=jn().isArrayOrTypedArray,nf=wo();Fb.exports=function e(r,t){for(var n in t){var a=t[n],o=r[n];if(o!==a)if(n.charAt(0)==="_"||typeof a=="function"){if(n in r)continue;r[n]=a}else if(Pb(a)&&Pb(o)&&nf(a[0])){if(n==="customdata"||n==="ids")continue;for(var i=Math.min(a.length,o.length),l=0;l{"use strict";function WB(e,r){var t=e%r;return t<0?t+r:t}function XB(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}Nb.exports={mod:WB,modHalf:XB}});var ka=pe((Zue,kc)=>{(function(e){var r=/^\s+/,t=/\s+$/,n=0,a=e.round,o=e.min,i=e.max,l=e.random;function u(V,re){if(V=V||"",re=re||{},V instanceof u)return V;if(!(this instanceof u))return new u(V,re);var H=s(V);this._originalInput=V,this._r=H.r,this._g=H.g,this._b=H.b,this._a=H.a,this._roundA=a(100*this._a)/100,this._format=re.format||H.format,this._gradientType=re.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=H.ok,this._tc_id=n++}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var V=this.toRgb();return(V.r*299+V.g*587+V.b*114)/1e3},getLuminance:function(){var V=this.toRgb(),re,H,te,ue,he,Ce;return re=V.r/255,H=V.g/255,te=V.b/255,re<=.03928?ue=re/12.92:ue=e.pow((re+.055)/1.055,2.4),H<=.03928?he=H/12.92:he=e.pow((H+.055)/1.055,2.4),te<=.03928?Ce=te/12.92:Ce=e.pow((te+.055)/1.055,2.4),.2126*ue+.7152*he+.0722*Ce},setAlpha:function(V){return this._a=L(V),this._roundA=a(100*this._a)/100,this},toHsv:function(){var V=b(this._r,this._g,this._b);return{h:V.h*360,s:V.s,v:V.v,a:this._a}},toHsvString:function(){var V=b(this._r,this._g,this._b),re=a(V.h*360),H=a(V.s*100),te=a(V.v*100);return this._a==1?"hsv("+re+", "+H+"%, "+te+"%)":"hsva("+re+", "+H+"%, "+te+"%, "+this._roundA+")"},toHsl:function(){var V=v(this._r,this._g,this._b);return{h:V.h*360,s:V.s,l:V.l,a:this._a}},toHslString:function(){var V=v(this._r,this._g,this._b),re=a(V.h*360),H=a(V.s*100),te=a(V.l*100);return this._a==1?"hsl("+re+", "+H+"%, "+te+"%)":"hsla("+re+", "+H+"%, "+te+"%, "+this._roundA+")"},toHex:function(V){return w(this._r,this._g,this._b,V)},toHexString:function(V){return"#"+this.toHex(V)},toHex8:function(V){return M(this._r,this._g,this._b,this._a,V)},toHex8String:function(V){return"#"+this.toHex8(V)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(P(this._r,255)*100)+"%",g:a(P(this._g,255)*100)+"%",b:a(P(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(P(this._r,255)*100)+"%, "+a(P(this._g,255)*100)+"%, "+a(P(this._b,255)*100)+"%)":"rgba("+a(P(this._r,255)*100)+"%, "+a(P(this._g,255)*100)+"%, "+a(P(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:I[w(this._r,this._g,this._b,!0)]||!1},toFilter:function(V){var re="#"+y(this._r,this._g,this._b,this._a),H=re,te=this._gradientType?"GradientType = 1, ":"";if(V){var ue=u(V);H="#"+y(ue._r,ue._g,ue._b,ue._a)}return"progid:DXImageTransform.Microsoft.gradient("+te+"startColorstr="+re+",endColorstr="+H+")"},toString:function(V){var re=!!V;V=V||this._format;var H=!1,te=this._a<1&&this._a>=0,ue=!re&&te&&(V==="hex"||V==="hex6"||V==="hex3"||V==="hex4"||V==="hex8"||V==="name");return ue?V==="name"&&this._a===0?this.toName():this.toRgbString():(V==="rgb"&&(H=this.toRgbString()),V==="prgb"&&(H=this.toPercentageRgbString()),(V==="hex"||V==="hex6")&&(H=this.toHexString()),V==="hex3"&&(H=this.toHexString(!0)),V==="hex4"&&(H=this.toHex8String(!0)),V==="hex8"&&(H=this.toHex8String()),V==="name"&&(H=this.toName()),V==="hsl"&&(H=this.toHslString()),V==="hsv"&&(H=this.toHsvString()),H||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(V,re){var H=V.apply(null,[this].concat([].slice.call(re)));return this._r=H._r,this._g=H._g,this._b=H._b,this.setAlpha(H._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(d,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(k,arguments)},saturate:function(){return this._applyModification(S,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(g,arguments)},_applyCombination:function(V,re){return V.apply(null,[this].concat([].slice.call(re)))},analogous:function(){return this._applyCombination(E,arguments)},complement:function(){return this._applyCombination(c,arguments)},monochromatic:function(){return this._applyCombination(D,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(A,arguments)},tetrad:function(){return this._applyCombination(h,arguments)}},u.fromRatio=function(V,re){if(typeof V=="object"){var H={};for(var te in V)V.hasOwnProperty(te)&&(te==="a"?H[te]=V[te]:H[te]=Y(V[te]));V=H}return u(V,re)};function s(V){var re={r:0,g:0,b:0},H=1,te=null,ue=null,he=null,Ce=!1,Se=!1;return typeof V=="string"&&(V=oe(V)),typeof V=="object"&&(Q(V.r)&&Q(V.g)&&Q(V.b)?(re=f(V.r,V.g,V.b),Ce=!0,Se=String(V.r).substr(-1)==="%"?"prgb":"rgb"):Q(V.h)&&Q(V.s)&&Q(V.v)?(te=Y(V.s),ue=Y(V.v),re=m(V.h,te,ue),Ce=!0,Se="hsv"):Q(V.h)&&Q(V.s)&&Q(V.l)&&(te=Y(V.s),he=Y(V.l),re=p(V.h,te,he),Ce=!0,Se="hsl"),V.hasOwnProperty("a")&&(H=V.a)),H=L(H),{ok:Ce,format:V.format||Se,r:o(255,i(re.r,0)),g:o(255,i(re.g,0)),b:o(255,i(re.b,0)),a:H}}function f(V,re,H){return{r:P(V,255)*255,g:P(re,255)*255,b:P(H,255)*255}}function v(V,re,H){V=P(V,255),re=P(re,255),H=P(H,255);var te=i(V,re,H),ue=o(V,re,H),he,Ce,Se=(te+ue)/2;if(te==ue)he=Ce=0;else{var ve=te-ue;switch(Ce=Se>.5?ve/(2-te-ue):ve/(te+ue),te){case V:he=(re-H)/ve+(re1&&(Fe-=1),Fe<1/6?Te+(ke-Te)*6*Fe:Fe<1/2?ke:Fe<2/3?Te+(ke-Te)*(2/3-Fe)*6:Te}if(re===0)te=ue=he=H;else{var Se=H<.5?H*(1+re):H+re-H*re,ve=2*H-Se;te=Ce(ve,Se,V+1/3),ue=Ce(ve,Se,V),he=Ce(ve,Se,V-1/3)}return{r:te*255,g:ue*255,b:he*255}}function b(V,re,H){V=P(V,255),re=P(re,255),H=P(H,255);var te=i(V,re,H),ue=o(V,re,H),he,Ce,Se=te,ve=te-ue;if(Ce=te===0?0:ve/te,te==ue)he=0;else{switch(te){case V:he=(re-H)/ve+(re>1)+720)%360;--re;)te.h=(te.h+ue)%360,he.push(u(te));return he}function D(V,re){re=re||6;for(var H=u(V).toHsv(),te=H.h,ue=H.s,he=H.v,Ce=[],Se=1/re;re--;)Ce.push(u({h:te,s:ue,v:he})),he=(he+Se)%1;return Ce}u.mix=function(V,re,H){H=H===0?0:H||50;var te=u(V).toRgb(),ue=u(re).toRgb(),he=H/100,Ce={r:(ue.r-te.r)*he+te.r,g:(ue.g-te.g)*he+te.g,b:(ue.b-te.b)*he+te.b,a:(ue.a-te.a)*he+te.a};return u(Ce)},u.readability=function(V,re){var H=u(V),te=u(re);return(e.max(H.getLuminance(),te.getLuminance())+.05)/(e.min(H.getLuminance(),te.getLuminance())+.05)},u.isReadable=function(V,re,H){var te=u.readability(V,re),ue,he;switch(he=!1,ue=ee(H),ue.level+ue.size){case"AAsmall":case"AAAlarge":he=te>=4.5;break;case"AAlarge":he=te>=3;break;case"AAAsmall":he=te>=7;break}return he},u.mostReadable=function(V,re,H){var te=null,ue=0,he,Ce,Se,ve;H=H||{},Ce=H.includeFallbackColors,Se=H.level,ve=H.size;for(var Te=0;Teue&&(ue=he,te=u(re[Te]));return u.isReadable(V,te,{level:Se,size:ve})||!Ce?te:(H.includeFallbackColors=!1,u.mostReadable(V,["#fff","#000"],H))};var N=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},I=u.hexNames=F(N);function F(V){var re={};for(var H in V)V.hasOwnProperty(H)&&(re[V[H]]=H);return re}function L(V){return V=parseFloat(V),(isNaN(V)||V<0||V>1)&&(V=1),V}function P(V,re){X(V)&&(V="100%");var H=$(V);return V=o(re,i(0,parseFloat(V))),H&&(V=parseInt(V*re,10)/100),e.abs(V-re)<1e-6?1:V%re/parseFloat(re)}function O(V){return o(1,i(0,V))}function U(V){return parseInt(V,16)}function X(V){return typeof V=="string"&&V.indexOf(".")!=-1&&parseFloat(V)===1}function $(V){return typeof V=="string"&&V.indexOf("%")!=-1}function j(V){return V.length==1?"0"+V:""+V}function Y(V){return V<=1&&(V=V*100+"%"),V}function q(V){return e.round(parseFloat(V)*255).toString(16)}function J(V){return U(V)/255}var ae=function(){var V="[-\\+]?\\d+%?",re="[-\\+]?\\d*\\.\\d+%?",H="(?:"+re+")|(?:"+V+")",te="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",ue="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?";return{CSS_UNIT:new RegExp(H),rgb:new RegExp("rgb"+te),rgba:new RegExp("rgba"+ue),hsl:new RegExp("hsl"+te),hsla:new RegExp("hsla"+ue),hsv:new RegExp("hsv"+te),hsva:new RegExp("hsva"+ue),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Q(V){return!!ae.CSS_UNIT.exec(V)}function oe(V){V=V.replace(r,"").replace(t,"").toLowerCase();var re=!1;if(N[V])V=N[V],re=!0;else if(V=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var H;return(H=ae.rgb.exec(V))?{r:H[1],g:H[2],b:H[3]}:(H=ae.rgba.exec(V))?{r:H[1],g:H[2],b:H[3],a:H[4]}:(H=ae.hsl.exec(V))?{h:H[1],s:H[2],l:H[3]}:(H=ae.hsla.exec(V))?{h:H[1],s:H[2],l:H[3],a:H[4]}:(H=ae.hsv.exec(V))?{h:H[1],s:H[2],v:H[3]}:(H=ae.hsva.exec(V))?{h:H[1],s:H[2],v:H[3],a:H[4]}:(H=ae.hex8.exec(V))?{r:U(H[1]),g:U(H[2]),b:U(H[3]),a:J(H[4]),format:re?"name":"hex8"}:(H=ae.hex6.exec(V))?{r:U(H[1]),g:U(H[2]),b:U(H[3]),format:re?"name":"hex"}:(H=ae.hex4.exec(V))?{r:U(H[1]+""+H[1]),g:U(H[2]+""+H[2]),b:U(H[3]+""+H[3]),a:J(H[4]+""+H[4]),format:re?"name":"hex8"}:(H=ae.hex3.exec(V))?{r:U(H[1]+""+H[1]),g:U(H[2]+""+H[2]),b:U(H[3]+""+H[3]),format:re?"name":"hex"}:!1}function ee(V){var re,H;return V=V||{level:"AA",size:"small"},re=(V.level||"AA").toUpperCase(),H=(V.size||"small").toLowerCase(),re!=="AA"&&re!=="AAA"&&(re="AA"),H!=="small"&&H!=="large"&&(H="small"),{level:re,size:H}}typeof kc!="undefined"&&kc.exports?kc.exports=u:window.tinycolor=u})(Math)});var Mt=pe(lf=>{"use strict";var zb=wo(),af=Array.isArray;function ZB(e,r){var t,n;for(t=0;t{"use strict";qb.exports=function(e){var r=e.variantValues,t=e.editType,n=e.colorEditType;n===void 0&&(n=t);var a={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var o={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:n},weight:a,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(o.size.dflt="auto"),e.autoColor&&(o.color.dflt="auto"),e.arrayOk&&(o.family.arrayOk=!0,o.weight.arrayOk=!0,o.style.arrayOk=!0,e.noFontVariant||(o.variant.arrayOk=!0),e.noFontTextcase||(o.textcase.arrayOk=!0),e.noFontLineposition||(o.lineposition.arrayOk=!0),e.noFontShadow||(o.shadow.arrayOk=!0),o.size.arrayOk=!0,o.color.arrayOk=!0),o}});var sf=pe((Que,Ob)=>{"use strict";Ob.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var _l=pe(($ue,Hb)=>{"use strict";var Bb=sf(),Ub=kn(),vp=Ub({editType:"none"});vp.family.dflt=Bb.HOVERFONT;vp.size.dflt=Bb.HOVERFONTSIZE;Hb.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:vp,grouptitlefont:Ub({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 Ec=pe((jue,Vb)=>{"use strict";var JB=kn(),Sc=_l().hoverlabel,Cc=Mt().extendFlat;Vb.exports={hoverlabel:{bgcolor:Cc({},Sc.bgcolor,{arrayOk:!0}),bordercolor:Cc({},Sc.bordercolor,{arrayOk:!0}),font:JB({arrayOk:!0,editType:"none"}),align:Cc({},Sc.align,{arrayOk:!0}),namelength:Cc({},Sc.namelength,{arrayOk:!0}),editType:"none"}}});var Sn=pe((efe,Gb)=>{"use strict";var KB=kn(),QB=Ec();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:KB({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:QB.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var wl=pe((rfe,Xb)=>{"use strict";var $B=ka(),Lc={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)"]]},Yb=Lc.RdBu;function jB(e,r){if(r||(r=Yb),!e)return r;function t(){try{e=Lc[e]||JSON.parse(e)}catch(n){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";Ml.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Ml.defaultLine="#444";Ml.lightLine="#eee";Ml.background="#fff";Ml.borderLine="#BEC8D9";Ml.lightFraction=100*10/11});var Zr=pe((nfe,Zb)=>{"use strict";var ea=ka(),rU=rt(),tU=jn().isTypedArray,an=Zb.exports={},Rc=Ti();an.defaults=Rc.defaults;var nU=an.defaultLine=Rc.defaultLine;an.lightLine=Rc.lightLine;var dp=an.background=Rc.background;an.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};an.rgb=function(e){return an.tinyRGB(ea(e))};an.opacity=function(e){return e?ea(e).getAlpha():0};an.addOpacity=function(e,r){var t=ea(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};an.combine=function(e,r){var t=ea(e).toRgb();if(t.a===1)return ea(e).toRgbString();var n=ea(r||dp).toRgb(),a=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},o={r:a.r*(1-t.a)+t.r*t.a,g:a.g*(1-t.a)+t.g*t.a,b:a.b*(1-t.a)+t.b*t.a};return ea(o).toRgbString()};an.interpolate=function(e,r,t){var n=ea(e).toRgb(),a=ea(r).toRgb(),o={r:t*n.r+(1-t)*a.r,g:t*n.g+(1-t)*a.g,b:t*n.b+(1-t)*a.b};return ea(o).toRgbString()};an.contrast=function(e,r,t){var n=ea(e);n.getAlpha()!==1&&(n=ea(an.combine(e,dp)));var a=n.isDark()?r?n.lighten(r):dp:t?n.darken(t):nU;return a.toString()};an.stroke=function(e,r){var t=ea(r);e.style({stroke:an.tinyRGB(t),"stroke-opacity":t.getAlpha()})};an.fill=function(e,r){var t=ea(r);e.style({fill:an.tinyRGB(t),"fill-opacity":t.getAlpha()})};an.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,n,a,o;for(t=0;t=0)))return e;if(o===3)n[o]>1&&(n[o]=1);else if(n[o]>=1)return e}var i=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return a?"rgba("+i+", "+n[3]+")":"rgb("+i+")"}});var Dc=pe((afe,Jb)=>{"use strict";Jb.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var Es=pe(Kb=>{"use strict";Kb.counter=function(e,r,t,n){var a=(r||"")+(t?"":"$"),o=n===!1?"":"^";return e==="xy"?new RegExp(o+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(o+e+"([2-9]|[1-9][0-9]+)?"+a)}});var e4=pe(ra=>{"use strict";var pp=rt(),Qb=ka(),$b=Mt().extendFlat,aU=Sn(),iU=wl(),oU=Zr(),lU=Dc().DESELECTDIM,Ls=Mc(),jb=Es().counter,sU=Cs().modHalf,Ai=jn().isArrayOrTypedArray,Mo=jn().isTypedArraySpec,To=jn().decodeTypedArraySpec;ra.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Ai(e)?e:Mo(e)?To(e):t)}},enumerated:{coerceFunction:function(e,r,t,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,n=0;nn.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}Mo(e)&&(e=To(e)),e%1||!pp(e)||n.min!==void 0&&en.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,n){if(typeof e!="string"){var a=typeof e=="number";n.strict===!0||!a?r.set(t):r.set(String(e))}else n.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Mo(e)&&(e=To(e)),Qb(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function n(a){return Qb(a).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(n)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(iU.get(e,t))}},angle:{coerceFunction:function(e,r,t){Mo(e)&&(e=To(e)),e==="auto"?r.set("auto"):pp(e)?r.set(sU(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,n){var a=n.regex||jb(t);if(typeof e=="string"&&a.test(e)){r.set(e);return}r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!jb(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var a=e.split("+"),o=0;o{"use strict";var r4={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:{}}},t4={};function n4(e,r){for(var t in e){var n=e[t];n.valType?r[t]=n.dflt:(r[t]||(r[t]={}),n4(n,r[t]))}}n4(r4,t4);a4.exports={configAttributes:r4,dfltConfig:t4}});var yp=pe((sfe,i4)=>{"use strict";var gp=it(),uU=rt(),uf=[];i4.exports=function(e,r){if(uf.indexOf(e)!==-1)return;uf.push(e);var t=1e3;uU(r)?t=r:r==="long"&&(t=3e3);var n=gp.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var a=n.selectAll(".notifier-note").data(uf);function o(i){i.duration(700).style("opacity",0).each("end",function(l){var u=uf.indexOf(l);u!==-1&&uf.splice(u,1),gp.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(i){var l=gp.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(o)});for(var u=l.append("p"),s=i.split(//g),f=0;f{"use strict";var Rs=Tl().dfltConfig,mp=yp(),xp=o4.exports={};xp.log=function(){var e;if(Rs.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};xp.warn=function(){var e;if(Rs.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};xp.error=function(){var e;if(Rs.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Fc=pe((ffe,l4)=>{"use strict";l4.exports=function(){}});var bp=pe((cfe,s4)=>{"use strict";s4.exports=function(r,t){if(t instanceof RegExp){for(var n=t.toString(),a=0;a{u4.exports=fU;function fU(){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 v4=pe((hfe,c4)=>{c4.exports=cU;function cU(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 d4=pe((dfe,h4)=>{h4.exports=vU;function vU(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var _p=pe((pfe,p4)=>{p4.exports=hU;function hU(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 y4=pe((gfe,g4)=>{g4.exports=dU;function dU(e,r){if(e===r){var t=r[1],n=r[2],a=r[3],o=r[6],i=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=n,e[9]=o,e[11]=r[14],e[12]=a,e[13]=i,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var x4=pe((yfe,m4)=>{m4.exports=pU;function pU(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=r[4],l=r[5],u=r[6],s=r[7],f=r[8],v=r[9],p=r[10],b=r[11],m=r[12],w=r[13],M=r[14],y=r[15],k=t*l-n*i,S=t*u-a*i,x=t*s-o*i,T=n*u-a*l,d=n*s-o*l,_=a*s-o*u,g=f*w-v*m,c=f*M-p*m,A=f*y-b*m,h=v*M-p*w,R=v*y-b*w,E=p*y-b*M,D=k*E-S*R+x*h+T*A-d*c+_*g;return D?(D=1/D,e[0]=(l*E-u*R+s*h)*D,e[1]=(a*R-n*E-o*h)*D,e[2]=(w*_-M*d+y*T)*D,e[3]=(p*d-v*_-b*T)*D,e[4]=(u*A-i*E-s*c)*D,e[5]=(t*E-a*A+o*c)*D,e[6]=(M*x-m*_-y*S)*D,e[7]=(f*_-p*x+b*S)*D,e[8]=(i*R-l*A+s*g)*D,e[9]=(n*A-t*R-o*g)*D,e[10]=(m*d-w*x+y*k)*D,e[11]=(v*x-f*d-b*k)*D,e[12]=(l*c-i*h-u*g)*D,e[13]=(t*h-n*c+a*g)*D,e[14]=(w*S-m*T-M*k)*D,e[15]=(f*T-v*S+p*k)*D,e):null}});var _4=pe((mfe,b4)=>{b4.exports=gU;function gU(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=r[4],l=r[5],u=r[6],s=r[7],f=r[8],v=r[9],p=r[10],b=r[11],m=r[12],w=r[13],M=r[14],y=r[15];return e[0]=l*(p*y-b*M)-v*(u*y-s*M)+w*(u*b-s*p),e[1]=-(n*(p*y-b*M)-v*(a*y-o*M)+w*(a*b-o*p)),e[2]=n*(u*y-s*M)-l*(a*y-o*M)+w*(a*s-o*u),e[3]=-(n*(u*b-s*p)-l*(a*b-o*p)+v*(a*s-o*u)),e[4]=-(i*(p*y-b*M)-f*(u*y-s*M)+m*(u*b-s*p)),e[5]=t*(p*y-b*M)-f*(a*y-o*M)+m*(a*b-o*p),e[6]=-(t*(u*y-s*M)-i*(a*y-o*M)+m*(a*s-o*u)),e[7]=t*(u*b-s*p)-i*(a*b-o*p)+f*(a*s-o*u),e[8]=i*(v*y-b*w)-f*(l*y-s*w)+m*(l*b-s*v),e[9]=-(t*(v*y-b*w)-f*(n*y-o*w)+m*(n*b-o*v)),e[10]=t*(l*y-s*w)-i*(n*y-o*w)+m*(n*s-o*l),e[11]=-(t*(l*b-s*v)-i*(n*b-o*v)+f*(n*s-o*l)),e[12]=-(i*(v*M-p*w)-f*(l*M-u*w)+m*(l*p-u*v)),e[13]=t*(v*M-p*w)-f*(n*M-a*w)+m*(n*p-a*v),e[14]=-(t*(l*M-u*w)-i*(n*M-a*w)+m*(n*u-a*l)),e[15]=t*(l*p-u*v)-i*(n*p-a*v)+f*(n*u-a*l),e}});var M4=pe((xfe,w4)=>{w4.exports=yU;function yU(e){var r=e[0],t=e[1],n=e[2],a=e[3],o=e[4],i=e[5],l=e[6],u=e[7],s=e[8],f=e[9],v=e[10],p=e[11],b=e[12],m=e[13],w=e[14],M=e[15],y=r*i-t*o,k=r*l-n*o,S=r*u-a*o,x=t*l-n*i,T=t*u-a*i,d=n*u-a*l,_=s*m-f*b,g=s*w-v*b,c=s*M-p*b,A=f*w-v*m,h=f*M-p*m,R=v*M-p*w;return y*R-k*h+S*A+x*c-T*g+d*_}});var A4=pe((bfe,T4)=>{T4.exports=mU;function mU(e,r,t){var n=r[0],a=r[1],o=r[2],i=r[3],l=r[4],u=r[5],s=r[6],f=r[7],v=r[8],p=r[9],b=r[10],m=r[11],w=r[12],M=r[13],y=r[14],k=r[15],S=t[0],x=t[1],T=t[2],d=t[3];return e[0]=S*n+x*l+T*v+d*w,e[1]=S*a+x*u+T*p+d*M,e[2]=S*o+x*s+T*b+d*y,e[3]=S*i+x*f+T*m+d*k,S=t[4],x=t[5],T=t[6],d=t[7],e[4]=S*n+x*l+T*v+d*w,e[5]=S*a+x*u+T*p+d*M,e[6]=S*o+x*s+T*b+d*y,e[7]=S*i+x*f+T*m+d*k,S=t[8],x=t[9],T=t[10],d=t[11],e[8]=S*n+x*l+T*v+d*w,e[9]=S*a+x*u+T*p+d*M,e[10]=S*o+x*s+T*b+d*y,e[11]=S*i+x*f+T*m+d*k,S=t[12],x=t[13],T=t[14],d=t[15],e[12]=S*n+x*l+T*v+d*w,e[13]=S*a+x*u+T*p+d*M,e[14]=S*o+x*s+T*b+d*y,e[15]=S*i+x*f+T*m+d*k,e}});var S4=pe((_fe,k4)=>{k4.exports=xU;function xU(e,r,t){var n=t[0],a=t[1],o=t[2],i,l,u,s,f,v,p,b,m,w,M,y;return r===e?(e[12]=r[0]*n+r[4]*a+r[8]*o+r[12],e[13]=r[1]*n+r[5]*a+r[9]*o+r[13],e[14]=r[2]*n+r[6]*a+r[10]*o+r[14],e[15]=r[3]*n+r[7]*a+r[11]*o+r[15]):(i=r[0],l=r[1],u=r[2],s=r[3],f=r[4],v=r[5],p=r[6],b=r[7],m=r[8],w=r[9],M=r[10],y=r[11],e[0]=i,e[1]=l,e[2]=u,e[3]=s,e[4]=f,e[5]=v,e[6]=p,e[7]=b,e[8]=m,e[9]=w,e[10]=M,e[11]=y,e[12]=i*n+f*a+m*o+r[12],e[13]=l*n+v*a+w*o+r[13],e[14]=u*n+p*a+M*o+r[14],e[15]=s*n+b*a+y*o+r[15]),e}});var E4=pe((wfe,C4)=>{C4.exports=bU;function bU(e,r,t){var n=t[0],a=t[1],o=t[2];return e[0]=r[0]*n,e[1]=r[1]*n,e[2]=r[2]*n,e[3]=r[3]*n,e[4]=r[4]*a,e[5]=r[5]*a,e[6]=r[6]*a,e[7]=r[7]*a,e[8]=r[8]*o,e[9]=r[9]*o,e[10]=r[10]*o,e[11]=r[11]*o,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var R4=pe((Mfe,L4)=>{L4.exports=_U;function _U(e,r,t,n){var a=n[0],o=n[1],i=n[2],l=Math.sqrt(a*a+o*o+i*i),u,s,f,v,p,b,m,w,M,y,k,S,x,T,d,_,g,c,A,h,R,E,D,N;return Math.abs(l)<1e-6?null:(l=1/l,a*=l,o*=l,i*=l,u=Math.sin(t),s=Math.cos(t),f=1-s,v=r[0],p=r[1],b=r[2],m=r[3],w=r[4],M=r[5],y=r[6],k=r[7],S=r[8],x=r[9],T=r[10],d=r[11],_=a*a*f+s,g=o*a*f+i*u,c=i*a*f-o*u,A=a*o*f-i*u,h=o*o*f+s,R=i*o*f+a*u,E=a*i*f+o*u,D=o*i*f-a*u,N=i*i*f+s,e[0]=v*_+w*g+S*c,e[1]=p*_+M*g+x*c,e[2]=b*_+y*g+T*c,e[3]=m*_+k*g+d*c,e[4]=v*A+w*h+S*R,e[5]=p*A+M*h+x*R,e[6]=b*A+y*h+T*R,e[7]=m*A+k*h+d*R,e[8]=v*E+w*D+S*N,e[9]=p*E+M*D+x*N,e[10]=b*E+y*D+T*N,e[11]=m*E+k*D+d*N,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var P4=pe((Tfe,D4)=>{D4.exports=wU;function wU(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[4],i=r[5],l=r[6],u=r[7],s=r[8],f=r[9],v=r[10],p=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=o*a+s*n,e[5]=i*a+f*n,e[6]=l*a+v*n,e[7]=u*a+p*n,e[8]=s*a-o*n,e[9]=f*a-i*n,e[10]=v*a-l*n,e[11]=p*a-u*n,e}});var I4=pe((Afe,F4)=>{F4.exports=MU;function MU(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[0],i=r[1],l=r[2],u=r[3],s=r[8],f=r[9],v=r[10],p=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=o*a-s*n,e[1]=i*a-f*n,e[2]=l*a-v*n,e[3]=u*a-p*n,e[8]=o*n+s*a,e[9]=i*n+f*a,e[10]=l*n+v*a,e[11]=u*n+p*a,e}});var z4=pe((kfe,N4)=>{N4.exports=TU;function TU(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[0],i=r[1],l=r[2],u=r[3],s=r[4],f=r[5],v=r[6],p=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=o*a+s*n,e[1]=i*a+f*n,e[2]=l*a+v*n,e[3]=u*a+p*n,e[4]=s*a-o*n,e[5]=f*a-i*n,e[6]=v*a-l*n,e[7]=p*a-u*n,e}});var O4=pe((Sfe,q4)=>{q4.exports=AU;function AU(e,r,t){var n,a,o,i=t[0],l=t[1],u=t[2],s=Math.sqrt(i*i+l*l+u*u);return Math.abs(s)<1e-6?null:(s=1/s,i*=s,l*=s,u*=s,n=Math.sin(r),a=Math.cos(r),o=1-a,e[0]=i*i*o+a,e[1]=l*i*o+u*n,e[2]=u*i*o-l*n,e[3]=0,e[4]=i*l*o-u*n,e[5]=l*l*o+a,e[6]=u*l*o+i*n,e[7]=0,e[8]=i*u*o+l*n,e[9]=l*u*o-i*n,e[10]=u*u*o+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var U4=pe((Cfe,B4)=>{B4.exports=kU;function kU(e,r,t){var n=r[0],a=r[1],o=r[2],i=r[3],l=n+n,u=a+a,s=o+o,f=n*l,v=n*u,p=n*s,b=a*u,m=a*s,w=o*s,M=i*l,y=i*u,k=i*s;return e[0]=1-(b+w),e[1]=v+k,e[2]=p-y,e[3]=0,e[4]=v-k,e[5]=1-(f+w),e[6]=m+M,e[7]=0,e[8]=p+y,e[9]=m-M,e[10]=1-(f+b),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var V4=pe((Efe,H4)=>{H4.exports=SU;function SU(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 Y4=pe((Lfe,G4)=>{G4.exports=CU;function CU(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 X4=pe((Rfe,W4)=>{W4.exports=EU;function EU(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var J4=pe((Dfe,Z4)=>{Z4.exports=LU;function LU(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Q4=pe((Pfe,K4)=>{K4.exports=RU;function RU(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var wp=pe((Ffe,$4)=>{$4.exports=DU;function DU(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=t+t,l=n+n,u=a+a,s=t*i,f=n*i,v=n*l,p=a*i,b=a*l,m=a*u,w=o*i,M=o*l,y=o*u;return e[0]=1-v-m,e[1]=f+y,e[2]=p-M,e[3]=0,e[4]=f-y,e[5]=1-s-m,e[6]=b+w,e[7]=0,e[8]=p+M,e[9]=b-w,e[10]=1-s-v,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var e_=pe((Ife,j4)=>{j4.exports=PU;function PU(e,r,t,n,a,o,i){var l=1/(t-r),u=1/(a-n),s=1/(o-i);return e[0]=o*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o*2*u,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(a+n)*u,e[10]=(i+o)*s,e[11]=-1,e[12]=0,e[13]=0,e[14]=i*o*2*s,e[15]=0,e}});var t_=pe((Nfe,r_)=>{r_.exports=FU;function FU(e,r,t,n,a){var o=1/Math.tan(r/2),i=1/(n-a);return e[0]=o/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+n)*i,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*n*i,e[15]=0,e}});var a_=pe((zfe,n_)=>{n_.exports=IU;function IU(e,r,t,n){var a=Math.tan(r.upDegrees*Math.PI/180),o=Math.tan(r.downDegrees*Math.PI/180),i=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),u=2/(i+l),s=2/(a+o);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=-((i-l)*u*.5),e[9]=(a-o)*s*.5,e[10]=n/(t-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*t/(t-n),e[15]=0,e}});var o_=pe((qfe,i_)=>{i_.exports=NU;function NU(e,r,t,n,a,o,i){var l=1/(r-t),u=1/(n-a),s=1/(o-i);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*s,e[11]=0,e[12]=(r+t)*l,e[13]=(a+n)*u,e[14]=(i+o)*s,e[15]=1,e}});var s_=pe((Ofe,l_)=>{var zU=_p();l_.exports=qU;function qU(e,r,t,n){var a,o,i,l,u,s,f,v,p,b,m=r[0],w=r[1],M=r[2],y=n[0],k=n[1],S=n[2],x=t[0],T=t[1],d=t[2];return Math.abs(m-x)<1e-6&&Math.abs(w-T)<1e-6&&Math.abs(M-d)<1e-6?zU(e):(f=m-x,v=w-T,p=M-d,b=1/Math.sqrt(f*f+v*v+p*p),f*=b,v*=b,p*=b,a=k*p-S*v,o=S*f-y*p,i=y*v-k*f,b=Math.sqrt(a*a+o*o+i*i),b?(b=1/b,a*=b,o*=b,i*=b):(a=0,o=0,i=0),l=v*i-p*o,u=p*a-f*i,s=f*o-v*a,b=Math.sqrt(l*l+u*u+s*s),b?(b=1/b,l*=b,u*=b,s*=b):(l=0,u=0,s=0),e[0]=a,e[1]=l,e[2]=f,e[3]=0,e[4]=o,e[5]=u,e[6]=v,e[7]=0,e[8]=i,e[9]=s,e[10]=p,e[11]=0,e[12]=-(a*m+o*w+i*M),e[13]=-(l*m+u*w+s*M),e[14]=-(f*m+v*w+p*M),e[15]=1,e)}});var f_=pe((Bfe,u_)=>{u_.exports=OU;function OU(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var Mp=pe((Ufe,c_)=>{c_.exports={create:f4(),clone:v4(),copy:d4(),identity:_p(),transpose:y4(),invert:x4(),adjoint:_4(),determinant:M4(),multiply:A4(),translate:S4(),scale:E4(),rotate:R4(),rotateX:P4(),rotateY:I4(),rotateZ:z4(),fromRotation:O4(),fromRotationTranslation:U4(),fromScaling:V4(),fromTranslation:Y4(),fromXRotation:X4(),fromYRotation:J4(),fromZRotation:Q4(),fromQuat:wp(),frustum:e_(),perspective:t_(),perspectiveFromFieldOfView:a_(),ortho:o_(),lookAt:s_(),str:f_()}});var Ic=pe(Ut=>{"use strict";var BU=Mp();Ut.init2dArray=function(e,r){for(var t=new Array(e),n=0;n{"use strict";var UU=it(),v_=Al(),HU=Ic(),VU=Mp();function GU(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 YU(e){var r=UU.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 WU(e,r){d_("global",e,r)}function d_(e,r,t){var n="plotly.js-style-"+e,a=document.getElementById(n);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",n),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var o=a.sheet;o?o.insertRule?o.insertRule(r+"{"+t+"}",0):o.addRule?o.addRule(r,t,0):v_.warn("addStyleRule failed"):v_.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function XU(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&h_(t)}function ZU(e,r,t,n,a,o){var i=n.split(":"),l=a.split(":"),u="data-btn-style-event-added";o||(o=document),o.querySelectorAll(e).forEach(function(s){s.getAttribute(u)||(s.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[i[0]]=i[1])}),s.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[i[0]]=i[1]:f.style[l[0]]=l[1])}),s.setAttribute(u,!0))})}function JU(e){var r=g_(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(n){var a=p_(n);if(a){var o=HU.convertCssMatrix(a);t=VU.multiply(t,t,o)}}),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(n){return+n})}function g_(e){for(var r=[];KU(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function KU(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function QU(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}y_.exports={getGraphDiv:GU,isPlotDiv:YU,removeElement:h_,addStyleRule:WU,addRelatedStyleRule:d_,deleteRelatedStyleRule:XU,setStyleOnHover:ZU,getFullTransformMatrix:JU,getElementTransformMatrix:p_,getElementAndAncestors:g_,equalDomRects:QU}});var cf=pe((Gfe,m_)=>{"use strict";m_.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var zn=pe((Yfe,A_)=>{"use strict";var b_=Mt().extendFlat,$U=wo(),__={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"]},jU=__.flags.slice().concat(["fullReplot"]),eH=w_.flags.slice().concat("layoutReplot");A_.exports={traces:__,layout:w_,traceFlags:function(){return x_(jU)},layoutFlags:function(){return x_(eH)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var n=t.split("+"),a=0;a{"use strict";Tp.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};Tp.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var Ap=pe((Xfe,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 Sa=pe(Nc=>{"use strict";var S_=Ap(),Zfe=S_.FORMAT_LINK,Jfe=S_.DATE_FORMAT_LINK;function kp(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var n=[],a=0;a{"use strict";function ko(e,r){return r?r.d2l(e):e}function C_(e,r){return r?r.l2d(e):e}function rH(e){return e.x0}function tH(e){return e.x1}function nH(e){return e.y0}function aH(e){return e.y1}function E_(e){return e.x0shift||0}function L_(e){return e.x1shift||0}function R_(e){return e.y0shift||0}function D_(e){return e.y1shift||0}function zc(e,r){return ko(e.x1,r)+L_(e)-ko(e.x0,r)-E_(e)}function qc(e,r,t){return ko(e.y1,t)+D_(e)-ko(e.y0,t)-R_(e)}function iH(e,r){return Math.abs(zc(e,r))}function oH(e,r,t){return Math.abs(qc(e,r,t))}function lH(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(zc(e,r),2)+Math.pow(qc(e,r,t),2))}function sH(e,r){return C_((ko(e.x1,r)+L_(e)+ko(e.x0,r)+E_(e))/2,r)}function uH(e,r,t){return C_((ko(e.y1,t)+D_(e)+ko(e.y0,t)+R_(e))/2,t)}function fH(e,r,t){return e.type!=="line"?void 0:qc(e,r,t)/zc(e,r)}P_.exports={x0:rH,x1:tH,y0:nH,y1:aH,slope:fH,dx:zc,dy:qc,width:iH,height:oH,length:lH,xcenter:sH,ycenter:uH}});var N_=pe(($fe,I_)=>{"use strict";var cH=zn().overrideAll,kl=Sn(),F_=kn(),vH=Ao().dash,So=Mt().extendFlat,hH=Sa().shapeTexttemplateAttrs,dH=Oc();I_.exports=cH({newshape:{visible:So({},kl.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:So({},kl.legend,{}),legendgroup:So({},kl.legendgroup,{}),legendgrouptitle:{text:So({},kl.legendgrouptitle.text,{}),font:F_({})},legendrank:So({},kl.legendrank,{}),legendwidth:So({},kl.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:So({},vH,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:So({},kl.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:hH({newshape:!0},{keys:Object.keys(dH)}),font:F_({}),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 q_=pe((jfe,z_)=>{"use strict";var pH=Ao().dash,gH=Mt().extendFlat;z_.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:gH({},pH,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Bc=pe((e0e,O_)=>{"use strict";O_.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var Ds=pe((r0e,V_)=>{"use strict";var Sp=kn(),yH=cf(),Uc=Ti(),B_=N_(),U_=q_(),mH=Bc(),H_=Mt().extendFlat,Hc=Sp({editType:"calc"});Hc.family.dflt='"Open Sans", verdana, arial, sans-serif';Hc.size.dflt=12;Hc.color.dflt=Uc.defaultLine;V_.exports={font:Hc,title:{text:{valType:"string",editType:"layoutstyle"},font:Sp({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Sp({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:H_(mH({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Uc.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Uc.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Uc.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:B_.newshape,activeshape:B_.activeshape,newselection:U_.newselection,activeselection:U_.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:H_({},yH.transition,{editType:"none"})}});var G_=ob(()=>{});var xH={};var Y_=ob(()=>{G_()});var Er=pe(Jr=>{"use strict";var Ps=Al(),W_=Fc(),X_=bp(),bH=wo(),_H=ff().addStyleRule,Z_=Mt(),wH=Sn(),MH=Ds(),TH=Z_.extendFlat,Cp=Z_.extendDeepAll;Jr.modules={};Jr.allCategories={};Jr.allTypes=[];Jr.subplotsRegistry={};Jr.componentsRegistry={};Jr.layoutArrayContainers=[];Jr.layoutArrayRegexes=[];Jr.traceLayoutAttributes={};Jr.localeRegistry={};Jr.apiMethodRegistry={};Jr.collectableSubplotTypes=null;Jr.register=function(r){if(Jr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var LH=ks().timeFormat,i6=rt(),Ep=Al(),Eo=Cs().mod,Ns=nn(),Ca=Ns.BADNUM,ta=Ns.ONEDAY,vf=Ns.ONEHOUR,Co=Ns.ONEMIN,Is=Ns.ONESEC,hf=Ns.EPOCHJD,Zi=Er(),j_=ks().utcFormat,RH=/^\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,DH=/^\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,e6=new Date().getFullYear()-70;function Ji(e){return e&&Zi.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Ht.dateTick0=function(e,r){var t=PH(e,!!r);if(r<2)return t;var n=Ht.dateTime2ms(t,e);return n+=ta*(r-1),Ht.ms2DateTime(n,0,e)};function PH(e,r){return Ji(e)?r?Zi.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Zi.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Ht.dfltRange=function(e){return Ji(e)?Zi.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Ht.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Gc,Yc;Ht.dateTime2ms=function(e,r){if(Ht.isJSDate(e)){var t=e.getTimezoneOffset()*Co,n=(e.getUTCMinutes()-e.getMinutes())*Co+(e.getUTCSeconds()-e.getSeconds())*Is+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var a=3*Co;t=t-a/2+Eo(n-t+a/2,a)}return e=Number(e)-t,e>=Gc&&e<=Yc?e:Ca}if(typeof e!="string"&&typeof e!="number")return Ca;e=String(e);var o=Ji(r),i=e.charAt(0);o&&(i==="G"||i==="g")&&(e=e.substr(1),r="");var l=o&&r.substr(0,7)==="chinese",u=e.match(l?DH:RH);if(!u)return Ca;var s=u[1],f=u[3]||"1",v=Number(u[5]||1),p=Number(u[7]||0),b=Number(u[9]||0),m=Number(u[11]||0);if(o){if(s.length===2)return Ca;s=Number(s);var w;try{var M=Zi.getComponentMethod("calendars","getCal")(r);if(l){var y=f.charAt(f.length-1)==="i";f=parseInt(f,10),w=M.newDate(s,M.toMonthIndex(s,f,y),v)}else w=M.newDate(s,Number(f),v)}catch(S){return Ca}return w?(w.toJD()-hf)*ta+p*vf+b*Co+m*Is:Ca}s.length===2?s=(Number(s)+2e3-e6)%100+e6:s=Number(s),f-=1;var k=new Date(Date.UTC(2e3,f,v,p,b));return k.setUTCFullYear(s),k.getUTCMonth()!==f||k.getUTCDate()!==v?Ca:k.getTime()+m*Is};Gc=Ht.MIN_MS=Ht.dateTime2ms("-9999");Yc=Ht.MAX_MS=Ht.dateTime2ms("9999-12-31 23:59:59.9999");Ht.isDateTime=function(e,r){return Ht.dateTime2ms(e,r)!==Ca};function Fs(e,r){return String(e+Math.pow(10,r)).substr(1)}var Vc=90*ta,r6=3*vf,t6=5*Co;Ht.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Gc&&e<=Yc))return Ca;r||(r=0);var n=Math.floor(Eo(e+.05,1)*10),a=Math.round(e-n/10),o,i,l,u,s,f;if(Ji(t)){var v=Math.floor(a/ta)+hf,p=Math.floor(Eo(e,ta));try{o=Zi.getComponentMethod("calendars","getCal")(t).fromJD(v).formatDate("yyyy-mm-dd")}catch(b){o=j_("G%Y-%m-%d")(new Date(a))}if(o.charAt(0)==="-")for(;o.length<11;)o="-0"+o.substr(1);else for(;o.length<10;)o="0"+o;i=r=Gc+ta&&e<=Yc-ta))return Ca;var r=Math.floor(Eo(e+.05,1)*10),t=new Date(Math.round(e-r/10)),n=LH("%Y-%m-%d")(t),a=t.getHours(),o=t.getMinutes(),i=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return o6(n,a,o,i,l)};function o6(e,r,t,n,a){if((r||t||n||a)&&(e+=" "+Fs(r,2)+":"+Fs(t,2),(n||a)&&(e+=":"+Fs(n,2),a))){for(var o=4;a%10===0;)o-=1,a/=10;e+="."+Fs(a,o)}return e}Ht.cleanDate=function(e,r,t){if(e===Ca)return r;if(Ht.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Ji(t))return Ep.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Ht.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Ht.isDateTime(e,t))return Ep.error("unrecognized date",e),r;return e};var FH=/%\d?f/g,IH=/%h/g,NH={1:"1",2:"1",3:"2",4:"2"};function n6(e,r,t,n){e=e.replace(FH,function(o){var i=Math.min(+o.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(i).substr(2).replace(/0+$/,"")||"0";return l});var a=new Date(Math.floor(r+.05));if(e=e.replace(IH,function(){return NH[t("%q")(a)]}),Ji(n))try{e=Zi.getComponentMethod("calendars","worldCalFmt")(e,r,n)}catch(o){return"Invalid"}return t(e)(a)}var zH=[59,59.9,59.99,59.999,59.9999];function qH(e,r){var t=Eo(e+.05,ta),n=Fs(Math.floor(t/vf),2)+":"+Fs(Eo(Math.floor(t/Co),60),2);if(r!=="M"){i6(r)||(r=0);var a=Math.min(Eo(e/Is,60),zH[r]),o=(100+a).toFixed(r).substr(1);r>0&&(o=o.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+o}return n}Ht.formatDate=function(e,r,t,n,a,o){if(a=Ji(a)&&a,!r)if(t==="y")r=o.year;else if(t==="m")r=o.month;else if(t==="d")r=o.dayMonth+` -`+o.year;else return qH(e,t)+` -`+n6(o.dayMonthYear,e,n,a);return n6(r,e,n,a)};var a6=3*ta;Ht.incrementMonth=function(e,r,t){t=Ji(t)&&t;var n=Eo(e,ta);if(e=Math.round(e-n),t)try{var a=Math.round(e/ta)+hf,o=Zi.getComponentMethod("calendars","getCal")(t),i=o.fromJD(a);return r%12?o.add(i,r,"m"):o.add(i,r/12,"y"),(i.toJD()-hf)*ta+n}catch(u){Ep.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+a6);return l.setUTCMonth(l.getUTCMonth()+r)+n-a6};Ht.findExactDates=function(e,r){for(var t=0,n=0,a=0,o=0,i,l,u=Ji(r)&&Zi.getComponentMethod("calendars","getCal")(r),s=0;s{"use strict";s6.exports=function(r){return r}});var Dp=pe(Ki=>{"use strict";var OH=rt(),BH=Al(),UH=Lp(),HH=nn().BADNUM,Rp=1e-9;Ki.findBin=function(e,r,t){if(OH(r.start))return t?Math.ceil((e-r.start)/r.size-Rp)-1:Math.floor((e-r.start)/r.size+Rp);var n=0,a=r.length,o=0,i=a>1?(r[a-1]-r[0])/(a-1):1,l,u;for(i>=0?u=t?VH:GH:u=t?WH:YH,e+=i*Rp*(t?-1:1)*(i>=0?1:-1);n90&&BH.log("Long binary search..."),n-1};function VH(e,r){return er}function WH(e,r){return e>=r}Ki.sorterAsc=function(e,r){return e-r};Ki.sorterDes=function(e,r){return r-e};Ki.distinctVals=function(e){var r=e.slice();r.sort(Ki.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===HH;t--);for(var n=r[t]-r[0]||1,a=n/(t||1)/1e4,o=[],i,l=0;l<=t;l++){var u=r[l],s=u-i;i===void 0?(o.push(u),i=u):s>a&&(n=Math.min(n,s),o.push(u),i=u)}return{vals:o,minDiff:n}};Ki.roundUp=function(e,r,t){for(var n=0,a=r.length-1,o,i=0,l=t?0:1,u=t?1:0,s=t?Math.ceil:Math.floor;n0&&(n=1),t&&n)return e.sort(r)}return n?e:e.reverse()};Ki.findIndexOfMin=function(e,r){r=r||UH;for(var t=1/0,n,a=0;a{"use strict";u6.exports=function(r){return Object.keys(r).sort()}});var f6=pe(Vt=>{"use strict";var df=rt(),XH=jn().isArrayOrTypedArray;Vt.aggNums=function(e,r,t,n){var a,o;if((!n||n>t.length)&&(n=t.length),df(r)||(r=!1),XH(t[0])){for(o=new Array(n),a=0;ae.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var p6=pe((c0e,d6)=>{"use strict";var c6=Cs(),Pp=c6.mod,ZH=c6.modHalf,pf=Math.PI,Lo=2*pf;function JH(e){return e/180*pf}function KH(e){return e/pf*180}function Fp(e){return Math.abs(e[1]-e[0])>Lo-1e-14}function v6(e,r){return ZH(r-e,Lo)}function QH(e,r){return Math.abs(v6(e,r))}function h6(e,r){if(Fp(r))return!0;var t,n;r[0]n&&(n+=Lo);var a=Pp(e,Lo),o=a+Lo;return a>=t&&a<=n||o>=t&&o<=n}function $H(e,r,t,n){if(!h6(r,n))return!1;var a,o;return t[0]=a&&e<=o}function Ip(e,r,t,n,a,o,i){a=a||0,o=o||0;var l=Fp([t,n]),u,s,f,v,p;l?(u=0,s=pf,f=Lo):t{"use strict";Sl.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Sl.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Sl.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Sl.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Sl.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Sl.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var x6=pe(Cl=>{"use strict";var Np=Cs().mod;Cl.segmentsIntersect=m6;function m6(e,r,t,n,a,o,i,l){var u=t-e,s=a-e,f=i-a,v=n-r,p=o-r,b=l-o,m=u*b-f*v;if(m===0)return null;var w=(s*b-f*p)/m,M=(s*v-u*p)/m;return M<0||M>1||w<0||w>1?null:{x:e+u*w,y:r+v*w}}Cl.segmentDistance=function(r,t,n,a,o,i,l,u){if(m6(r,t,n,a,o,i,l,u))return 0;var s=n-r,f=a-t,v=l-o,p=u-i,b=s*s+f*f,m=v*v+p*p,w=Math.min(Xc(s,f,b,o-r,i-t),Xc(s,f,b,l-r,u-t),Xc(v,p,m,r-o,t-i),Xc(v,p,m,n-o,a-i));return Math.sqrt(w)};function Xc(e,r,t,n,a){var o=n*e+a*r;if(o<0)return n*n+a*a;if(o>t){var i=n-e,l=a-r;return i*i+l*l}else{var u=n*r-a*e;return u*u/t}}var Zc,zp,y6;Cl.getTextLocation=function(r,t,n,a){if((r!==zp||a!==y6)&&(Zc={},zp=r,y6=a),Zc[n])return Zc[n];var o=r.getPointAtLength(Np(n-a/2,t)),i=r.getPointAtLength(Np(n+a/2,t)),l=Math.atan((i.y-o.y)/(i.x-o.x)),u=r.getPointAtLength(Np(n,t)),s=(u.x*4+o.x+i.x)/6,f=(u.y*4+o.y+i.y)/6,v={x:s,y:f,theta:l};return Zc[n]=v,v};Cl.clearLocationCache=function(){zp=null};Cl.getVisibleSegment=function(r,t,n){var a=t.left,o=t.right,i=t.top,l=t.bottom,u=0,s=r.getTotalLength(),f=s,v,p;function b(w){var M=r.getPointAtLength(w);w===0?v=M:w===s&&(p=M);var y=M.xo?M.x-o:0,k=M.yl?M.y-l:0;return Math.sqrt(y*y+k*k)}for(var m=b(u);m;){if(u+=m+n,u>f)return;m=b(u)}for(m=b(f);m;){if(f-=m+n,u>f)return;m=b(f)}return{min:u,max:f,len:f-u,total:s,isClosed:u===0&&f===s&&Math.abs(v.x-p.x)<.1&&Math.abs(v.y-p.y)<.1}};Cl.findPointOnPath=function(r,t,n,a){a=a||{};for(var o=a.pathLength||r.getTotalLength(),i=a.tolerance||.001,l=a.iterationLimit||30,u=r.getPointAtLength(0)[n]>r.getPointAtLength(o)[n]?-1:1,s=0,f=0,v=o,p,b,m;s0?v=p:f=p,s++}return b}});var Jc=pe(gf=>{"use strict";var Qi={};gf.throttle=function(r,t,n){var a=Qi[r],o=Date.now();if(!a){for(var i in Qi)Qi[i].tsa.ts+t){l();return}a.timer=setTimeout(function(){l(),a.timer=null},t)};gf.done=function(e){var r=Qi[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var n=r.onDone;r.onDone=function(){n&&n(),t(),r.onDone=null}})};gf.clear=function(e){if(e)b6(Qi[e]),delete Qi[e];else for(var r in Qi)gf.clear(r)};function b6(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var w6=pe((p0e,_6)=>{"use strict";_6.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var M6=pe((g0e,Kc)=>{"use strict";Kc.exports=qp;Kc.exports.isMobile=qp;Kc.exports.default=qp;var tV=/(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,nV=/CrOS/,aV=/android|ipad|playbook|silk/i;function qp(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=tV.test(r)&&!nV.test(r)||!!e.tablet&&aV.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var A6=pe((y0e,T6)=>{"use strict";var iV=rt(),oV=M6();T6.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=lV(),typeof t!="string")return!0;var n=oV({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!n)for(var a=t.split(" "),o=1;o-1;l--){var u=a[l];if(u.substr(0,8)==="Version/"){var s=u.substr(8).split(".")[0];if(iV(s)&&(s=+s),s>=13)return!0}}}return n};function lV(){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 S6=pe((m0e,k6)=>{"use strict";var sV=it();k6.exports=function(r,t,n){var a=r.selectAll("g."+n.replace(/\s/g,".")).data(t,function(i){return i[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",n),a.order();var o=r.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(i){i[0][o]=sV.select(this)}),a}});var E6=pe((x0e,C6)=>{"use strict";var uV=Er();C6.exports=function(r,t){for(var n=r._context.locale,a=0;a<2;a++){for(var o=r._context.locales,i=0;i<2;i++){var l=(o[n]||{}).dictionary;if(l){var u=l[t];if(u)return u}o=uV.localeRegistry}var s=n.split("-")[0];if(s===n)break;n=s}return t}});var R6=pe((b0e,L6)=>{"use strict";L6.exports=function(r){for(var t={},n=[],a=0,o=0;o{"use strict";D6.exports=function(r){for(var t=vV(r)?cV:fV,n=[],a=0;a{"use strict";F6.exports=function(r,t){if(!t)return r;var n=1/Math.abs(t),a=n>1?(n*r+n*t)/n:r+t,o=String(a).length;if(o>16){var i=String(t).length,l=String(r).length;if(o>=l+i){var u=parseFloat(a).toPrecision(12);u.indexOf("e+")===-1&&(a=+u)}}return a}});var z6=pe((M0e,N6)=>{"use strict";var hV=rt(),dV=nn().BADNUM,pV=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;N6.exports=function(r){return typeof r=="string"&&(r=r.replace(pV,"")),hV(r)?Number(r):dV}});var ir=pe((T0e,K6)=>{"use strict";var yf=it(),gV=ks().utcFormat,yV=op().format,V6=rt(),G6=nn(),Y6=G6.FP_SAFE,mV=-Y6,q6=G6.BADNUM,Je=K6.exports={};Je.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var O6={};Je.warnBadFormat=function(e){var r=String(e);O6[r]||(O6[r]=1,Je.warn('encountered bad format: "'+r+'"'))};Je.noFormat=function(e){return String(e)};Je.numberFormat=function(e){var r;try{r=yV(Je.adjustFormat(e))}catch(t){return Je.warnBadFormat(e),Je.noFormat}return r};Je.nestedProperty=Mc();Je.keyedContainer=Eb();Je.relativeAttr=Rb();Je.isPlainObject=wo();Je.toLogRange=Ac();Je.relinkPrivateKeys=Ib();var Ro=jn();Je.isArrayBuffer=Ro.isArrayBuffer;Je.isTypedArray=Ro.isTypedArray;Je.isArrayOrTypedArray=Ro.isArrayOrTypedArray;Je.isArray1D=Ro.isArray1D;Je.ensureArray=Ro.ensureArray;Je.concat=Ro.concat;Je.maxRowLength=Ro.maxRowLength;Je.minRowLength=Ro.minRowLength;var W6=Cs();Je.mod=W6.mod;Je.modHalf=W6.modHalf;var Do=e4();Je.valObjectMeta=Do.valObjectMeta;Je.coerce=Do.coerce;Je.coerce2=Do.coerce2;Je.coerceFont=Do.coerceFont;Je.coercePattern=Do.coercePattern;Je.coerceHoverinfo=Do.coerceHoverinfo;Je.coerceSelectionMarkerOpacity=Do.coerceSelectionMarkerOpacity;Je.validate=Do.validate;var ha=l6();Je.dateTime2ms=ha.dateTime2ms;Je.isDateTime=ha.isDateTime;Je.ms2DateTime=ha.ms2DateTime;Je.ms2DateTimeLocal=ha.ms2DateTimeLocal;Je.cleanDate=ha.cleanDate;Je.isJSDate=ha.isJSDate;Je.formatDate=ha.formatDate;Je.incrementMonth=ha.incrementMonth;Je.dateTick0=ha.dateTick0;Je.dfltRange=ha.dfltRange;Je.findExactDates=ha.findExactDates;Je.MIN_MS=ha.MIN_MS;Je.MAX_MS=ha.MAX_MS;var El=Dp();Je.findBin=El.findBin;Je.sorterAsc=El.sorterAsc;Je.sorterDes=El.sorterDes;Je.distinctVals=El.distinctVals;Je.roundUp=El.roundUp;Je.sort=El.sort;Je.findIndexOfMin=El.findIndexOfMin;Je.sortObjectKeys=Wc();var $i=f6();Je.aggNums=$i.aggNums;Je.len=$i.len;Je.mean=$i.mean;Je.geometricMean=$i.geometricMean;Je.median=$i.median;Je.midRange=$i.midRange;Je.variance=$i.variance;Je.stdev=$i.stdev;Je.interp=$i.interp;var Ka=Ic();Je.init2dArray=Ka.init2dArray;Je.transposeRagged=Ka.transposeRagged;Je.dot=Ka.dot;Je.translationMatrix=Ka.translationMatrix;Je.rotationMatrix=Ka.rotationMatrix;Je.rotationXYMatrix=Ka.rotationXYMatrix;Je.apply3DTransform=Ka.apply3DTransform;Je.apply2DTransform=Ka.apply2DTransform;Je.apply2DTransform2=Ka.apply2DTransform2;Je.convertCssMatrix=Ka.convertCssMatrix;Je.inverseTransformMatrix=Ka.inverseTransformMatrix;var ki=p6();Je.deg2rad=ki.deg2rad;Je.rad2deg=ki.rad2deg;Je.angleDelta=ki.angleDelta;Je.angleDist=ki.angleDist;Je.isFullCircle=ki.isFullCircle;Je.isAngleInsideSector=ki.isAngleInsideSector;Je.isPtInsideSector=ki.isPtInsideSector;Je.pathArc=ki.pathArc;Je.pathSector=ki.pathSector;Je.pathAnnulus=ki.pathAnnulus;var qs=g6();Je.isLeftAnchor=qs.isLeftAnchor;Je.isCenterAnchor=qs.isCenterAnchor;Je.isRightAnchor=qs.isRightAnchor;Je.isTopAnchor=qs.isTopAnchor;Je.isMiddleAnchor=qs.isMiddleAnchor;Je.isBottomAnchor=qs.isBottomAnchor;var Os=x6();Je.segmentsIntersect=Os.segmentsIntersect;Je.segmentDistance=Os.segmentDistance;Je.getTextLocation=Os.getTextLocation;Je.clearLocationCache=Os.clearLocationCache;Je.getVisibleSegment=Os.getVisibleSegment;Je.findPointOnPath=Os.findPointOnPath;var jc=Mt();Je.extendFlat=jc.extendFlat;Je.extendDeep=jc.extendDeep;Je.extendDeepAll=jc.extendDeepAll;Je.extendDeepNoArrays=jc.extendDeepNoArrays;var Op=Al();Je.log=Op.log;Je.warn=Op.warn;Je.error=Op.error;var xV=Es();Je.counterRegex=xV.counter;var Bp=Jc();Je.throttle=Bp.throttle;Je.throttleDone=Bp.done;Je.clearThrottle=Bp.clear;var Qa=ff();Je.getGraphDiv=Qa.getGraphDiv;Je.isPlotDiv=Qa.isPlotDiv;Je.removeElement=Qa.removeElement;Je.addStyleRule=Qa.addStyleRule;Je.addRelatedStyleRule=Qa.addRelatedStyleRule;Je.deleteRelatedStyleRule=Qa.deleteRelatedStyleRule;Je.setStyleOnHover=Qa.setStyleOnHover;Je.getFullTransformMatrix=Qa.getFullTransformMatrix;Je.getElementTransformMatrix=Qa.getElementTransformMatrix;Je.getElementAndAncestors=Qa.getElementAndAncestors;Je.equalDomRects=Qa.equalDomRects;Je.clearResponsive=w6();Je.preserveDrawingBuffer=A6();Je.makeTraceGroups=S6();Je._=E6();Je.notifier=yp();Je.filterUnique=R6();Je.filterVisible=P6();Je.pushUnique=bp();Je.increment=I6();Je.cleanNumber=z6();Je.ensureNumber=function(r){return V6(r)?(r=Number(r),r>Y6||r=r?!1:V6(e)&&e>=0&&e%1===0};Je.noop=Fc();Je.identity=Lp();Je.repeat=function(e,r){for(var t=new Array(r),n=0;nt?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};Je.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};Je.simpleMap=function(e,r,t,n,a){for(var o=e.length,i=new Array(o),l=0;l=Math.pow(2,t)?a>10?(Je.warn("randstr failed uniqueness"),i):e(r,t,n,(a||0)+1):i};Je.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(n){n[r]=e,t[n.name]=n,t.optionList.push(n)},t["_"+r]=e,t};Je.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,n=2*t,a=2*r-1,o=new Array(a),i=new Array(t),l,u,s,f;for(l=0;l=n&&(s-=n*Math.floor(s/n)),s<0?s=-1-s:s>=t&&(s=n-1-s),f+=e[s]*o[u];i[l]=f}return i};Je.syncOrAsync=function(e,r,t){var n,a;function o(){return Je.syncOrAsync(e,r,t)}for(;e.length;)if(a=e.splice(0,1)[0],n=a(r),n&&n.then)return n.then(o);return t&&t(r)};Je.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};Je.noneOrAll=function(e,r,t){if(e){var n=!1,a=!0,o,i;for(o=0;o0?a:0})};Je.fillArray=function(e,r,t,n){if(n=n||Je.identity,Je.isArrayOrTypedArray(e))for(var a=0;a1?a+i[1]:"";if(o&&(i.length>1||l.length>4||t))for(;n.test(l);)l=l.replace(n,"$1"+o+"$2");return l+u};Je.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var J6=/^\w*$/;Je.templateString=function(e,r){var t={};return e.replace(Je.TEMPLATE_STRING_REGEX,function(n,a){var o;return J6.test(a)?o=r[a]:(t[a]=t[a]||Je.nestedProperty(r,a).get,o=t[a](!0)),o!==void 0?o:""})};var AV={max:10,count:0,name:"hovertemplate"};Je.hovertemplateString=function(){return Up.apply(AV,arguments)};var kV={max:10,count:0,name:"texttemplate"};Je.texttemplateString=function(){return Up.apply(kV,arguments)};var SV=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function CV(e){var r=e.match(SV);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var EV={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Je.texttemplateStringForShapes=function(){return Up.apply(EV,arguments)};var B6=/^[:|\|]/;function Up(e,r,t){var n=this,a=arguments;return r||(r={}),e.replace(Je.TEMPLATE_STRING_REGEX,function(o,i,l){var u=i==="xother"||i==="yother",s=i==="_xother"||i==="_yother",f=i==="_xother_"||i==="_yother_",v=i==="xother_"||i==="yother_",p=u||s||v||f,b=i;(s||f)&&(b=b.substring(1)),(v||f)&&(b=b.substring(0,b.length-1));var m=null,w=null;if(n.parseMultDiv){var M=CV(b);b=M.key,m=M.op,w=M.number}var y;if(p){if(y=r[b],y===void 0)return""}else{var k,S;for(S=3;S=$c&&i<=U6,s=l>=$c&&l<=U6;if(u&&(n=10*n+i-$c),s&&(a=10*a+l-$c),!u||!s){if(n!==a)return n-a;if(i!==l)return i-l}}return a-n};var zs=2e9;Je.seedPseudoRandom=function(){zs=2e9};Je.pseudoRandom=function(){var e=zs;return zs=(69069*zs+1)%4294967296,Math.abs(zs-e)<429496729?Je.pseudoRandom():zs/4294967296};Je.fillText=function(e,r,t){var n=Array.isArray(t)?function(i){t.push(i)}:function(i){t.text=i},a=Je.extractOption(e,r,"htx","hovertext");if(Je.isValidTextValue(a))return n(a);var o=Je.extractOption(e,r,"tx","text");if(Je.isValidTextValue(o))return n(o)};Je.isValidTextValue=function(e){return e||e===0};Je.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",n=0;n1&&(s=1):s=0,Je.strTranslate(a-s*(t+i),o-s*(n+l))+Je.strScale(s)+(u?"rotate("+u+(r?"":" "+t+" "+n)+")":"")};Je.setTransormAndDisplay=function(e,r){e.attr("transform",Je.getTextTransform(r)),e.style("display",r.scale?null:"none")};Je.ensureUniformFontSize=function(e,r){var t=Je.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};Je.join2=function(e,r,t){var n=e.length;return n>1?e.slice(0,-1).join(r)+t+e[n-1]:e.join(r)};Je.bigFont=function(e){return Math.round(1.2*e)};var H6=Je.getFirefoxVersion(),LV=H6!==null&&H6<86;Je.getPositionFromD3Event=function(){return LV?[yf.event.layerX,yf.event.layerY]:[yf.event.offsetX,yf.event.offsetY]}});var j6=pe(()=>{"use strict";var RV=ir(),Q6={"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(Hp in Q6)$6=Hp.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),RV.addStyleRule($6,Q6[Hp]);var $6,Hp});var Vp=pe((S0e,ew)=>{ew.exports=!0});var Yp=pe((C0e,rw)=>{"use strict";var DV=Vp(),Gp;typeof window.matchMedia=="function"?Gp=!window.matchMedia("(hover: none)").matches:Gp=DV;rw.exports=Gp});var tv=pe((E0e,Wp)=>{"use strict";var Bs=typeof Reflect=="object"?Reflect:null,tw=Bs&&typeof Bs.apply=="function"?Bs.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},ev;Bs&&typeof Bs.ownKeys=="function"?ev=Bs.ownKeys:Object.getOwnPropertySymbols?ev=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:ev=function(r){return Object.getOwnPropertyNames(r)};function PV(e){console&&console.warn&&console.warn(e)}var aw=Number.isNaN||function(r){return r!==r};function Tt(){Tt.init.call(this)}Wp.exports=Tt;Wp.exports.once=zV;Tt.EventEmitter=Tt;Tt.prototype._events=void 0;Tt.prototype._eventsCount=0;Tt.prototype._maxListeners=void 0;var nw=10;function rv(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Tt,"defaultMaxListeners",{enumerable:!0,get:function(){return nw},set:function(e){if(typeof e!="number"||e<0||aw(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");nw=e}});Tt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Tt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||aw(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function iw(e){return e._maxListeners===void 0?Tt.defaultMaxListeners:e._maxListeners}Tt.prototype.getMaxListeners=function(){return iw(this)};Tt.prototype.emit=function(r){for(var t=[],n=1;n0&&(i=t[0]),i instanceof Error)throw i;var l=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw l.context=i,l}var u=o[r];if(u===void 0)return!1;if(typeof u=="function")tw(u,this,t);else for(var s=u.length,f=fw(u,s),n=0;n0&&i.length>a&&!i.warned){i.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=i.length,PV(l)}return e}Tt.prototype.addListener=function(r,t){return ow(this,r,t,!1)};Tt.prototype.on=Tt.prototype.addListener;Tt.prototype.prependListener=function(r,t){return ow(this,r,t,!0)};function FV(){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 lw(e,r,t){var n={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},a=FV.bind(n);return a.listener=t,n.wrapFn=a,a}Tt.prototype.once=function(r,t){return rv(t),this.on(r,lw(this,r,t)),this};Tt.prototype.prependOnceListener=function(r,t){return rv(t),this.prependListener(r,lw(this,r,t)),this};Tt.prototype.removeListener=function(r,t){var n,a,o,i,l;if(rv(t),a=this._events,a===void 0)return this;if(n=a[r],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete a[r],a.removeListener&&this.emit("removeListener",r,n.listener||t));else if(typeof n!="function"){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){l=n[i].listener,o=i;break}if(o<0)return this;o===0?n.shift():IV(n,o),n.length===1&&(a[r]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};Tt.prototype.off=Tt.prototype.removeListener;Tt.prototype.removeAllListeners=function(r){var t,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[r]),this;if(arguments.length===0){var o=Object.keys(n),i;for(a=0;a=0;a--)this.removeListener(r,t[a]);return this};function sw(e,r,t){var n=e._events;if(n===void 0)return[];var a=n[r];return a===void 0?[]:typeof a=="function"?t?[a.listener||a]:[a]:t?NV(a):fw(a,a.length)}Tt.prototype.listeners=function(r){return sw(this,r,!0)};Tt.prototype.rawListeners=function(r){return sw(this,r,!1)};Tt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):uw.call(e,r)};Tt.prototype.listenerCount=uw;function uw(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}Tt.prototype.eventNames=function(){return this._eventsCount>0?ev(this._events):[]};function fw(e,r){for(var t=new Array(r),n=0;n{"use strict";var Xp=tv().EventEmitter,OV={init:function(e){if(e._ev instanceof Xp)return e;var r=new Xp,t=new Xp;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(n,a){r.emit(n,a),t.emit(n,a)},e},triggerHandler:function(e,r,t){var n,a=e._ev;if(!a)return;var o=a._events[r];if(!o)return;function i(u){if(u.listener){if(a.removeListener(r,u.listener),!u.fired)return u.fired=!0,u.listener.apply(a,[t])}else return u.apply(a,[t])}o=Array.isArray(o)?o:[o];var l;for(l=0;l{"use strict";var hw=ir(),BV=Tl().dfltConfig;function UV(e,r){for(var t=[],n,a=0;aBV.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};ji.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};ji.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};ji.undo=function(r){var t,n;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n{"use strict";gw.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Vs=pe(jt=>{"use strict";var Ea=Er(),xf=ir(),av=Sn(),Jp=Ds(),HV=Zp(),VV=cf(),GV=Tl().configAttributes,yw=zn(),$a=xf.extendDeepAll,Us=xf.isPlainObject,YV=xf.isArrayOrTypedArray,iv=xf.nestedProperty,WV=xf.valObjectMeta,Kp="_isSubplotObj",ov="_isLinkedToArray",XV="_arrayAttrRegexps",xw="_deprecated",Qp=[Kp,ov,XV,xw];jt.IS_SUBPLOT_OBJ=Kp;jt.IS_LINKED_TO_ARRAY=ov;jt.DEPRECATED=xw;jt.UNDERSCORE_ATTRS=Qp;jt.get=function(){var e={};return Ea.allTypes.forEach(function(r){e[r]=JV(r)}),{defs:{valObjects:WV,metaKeys:Qp.concat(["description","role","editType","impliedEdits"]),editType:{traces:yw.traces,layout:yw.layout},impliedEdits:{}},traces:e,layout:KV(),frames:QV(),animation:Hs(VV),config:Hs(GV)}};jt.crawl=function(e,r,t,n){var a=t||0;n=n||"",Object.keys(e).forEach(function(o){var i=e[o];if(Qp.indexOf(o)===-1){var l=(n?n+".":"")+o;r(i,o,e,a,l),!jt.isValObject(i)&&Us(i)&&o!=="impliedEdits"&&jt.crawl(i,r,a+1,l)}})};jt.isValObject=function(e){return e&&e.valType!==void 0};jt.findArrayAttributes=function(e){var r=[],t=[],n=[],a,o;function i(u,s,f,v){t=t.slice(0,v).concat([s]),n=n.slice(0,v).concat([u&&u._isLinkedToArray]);var p=u&&(u.valType==="data_array"||u.arrayOk===!0)&&!(t[v-1]==="colorbar"&&(s==="ticktext"||s==="tickvals"));p&&l(a,0,"")}function l(u,s,f){var v=u[t[s]],p=f+t[s];if(s===t.length-1)YV(v)&&r.push(o+p);else if(n[s]){if(Array.isArray(v))for(var b=0;b=o.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var i=r[t];if(!nv(i))return!1;e=o[a][i]}else e=o[a]}else e=o}}return e}function nv(e){return e===Math.round(e)&&e>=0}function JV(e){var r,t;r=Ea.modules[e]._module,t=r.basePlotModule;var n={};n.type=null;var a=$a({},av),o=$a({},r.attributes);jt.crawl(o,function(u,s,f,v,p){iv(a,p).set(void 0),u===void 0&&iv(o,p).set(void 0)}),$a(n,a),Ea.traceIs(e,"noOpacity")&&delete n.opacity,Ea.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),Ea.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),r.selectPoints||delete n.selectedpoints,$a(n,o),t.attributes&&$a(n,t.attributes),n.type=e;var i={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Hs(n)};if(r.layoutAttributes){var l={};$a(l,r.layoutAttributes),i.layoutAttributes=Hs(l)}return r.animatable||jt.crawl(i,function(u){jt.isValObject(u)&&"anim"in u&&delete u.anim}),i}function KV(){var e={},r,t;$a(e,Jp);for(r in Ea.subplotsRegistry)if(t=Ea.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var n=0;n{"use strict";var Gs=ir(),tG=Sn(),Po="templateitemname",$p={name:{valType:"string",editType:"none"}};$p[Po]={valType:"string",editType:"calc"};Ll.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=$p.name,r[Po]=$p[Po],r};Ll.traceTemplater=function(e){var r={},t,n;for(t in e)n=e[t],Array.isArray(n)&&n.length&&(r[t]=0);function a(o){t=Gs.coerce(o,{},tG,"type");var i={type:t,_template:null};if(t in r){n=e[t];var l=r[t]%n.length;r[t]++,i._template=n[l]}return i}return{newTrace:a}};Ll.newContainer=function(e,r,t){var n=e._template,a=n&&(n[r]||t&&n[t]);Gs.isPlainObject(a)||(a=null);var o=e[r]={_template:a};return o};Ll.arrayTemplater=function(e,r,t){var n=e._template,a=n&&n[ww(r)],o=n&&n[r];(!Array.isArray(o)||!o.length)&&(o=[]);var i={};function l(s){var f={name:s.name,_input:s},v=f[Po]=s[Po];if(!_w(v))return f._template=a,f;for(var p=0;p=n&&(t._input||{})._templateitemname;o&&(a=n);var i=r+"["+a+"]",l;function u(){l={},o&&(l[i]={},l[i][Po]=o)}u();function s(b,m){l[b]=m}function f(b,m){o?Gs.nestedProperty(l[i],b).set(m):l[i+"."+b]=m}function v(){var b=l;return u(),b}function p(b,m){b&&f(b,m);var w=v();for(var M in w)Gs.nestedProperty(e,M).set(w[M])}return{modifyBase:s,modifyItem:f,getUpdateObj:v,applyUpdate:p}}});var wn=pe((I0e,Mw)=>{"use strict";var bf=Es().counter;Mw.exports={idRegex:{x:bf("x","( domain)?"),y:bf("y","( domain)?")},attrRegex:bf("[xy]axis"),xAxisMatch:bf("xaxis"),yAxisMatch:bf("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 on=pe(na=>{"use strict";var nG=Er(),jp=wn();na.id2name=function(r){if(!(typeof r!="string"||!r.match(jp.AX_ID_PATTERN))){var t=r.split(" ")[0].substr(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};na.name2id=function(r){if(r.match(jp.AX_NAME_PATTERN)){var t=r.substr(5);return t==="1"&&(t=""),r.charAt(0)+t}};na.cleanId=function(r,t,n){var a=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(jp.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(a&&!n)){var o=r.split(" ")[0].substr(1).replace(/^0+/,"");return o==="1"&&(o=""),r.charAt(0)+o+(a&&n?" domain":"")}};na.list=function(e,r,t){var n=e._fullLayout;if(!n)return[];var a=na.listIds(e,r),o=new Array(a.length),i;for(i=0;in?1:-1:+(e.substr(1)||1)-+(r.substr(1)||1)};na.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Tw(e,r){if(r&&r.length){for(var t=0;t{"use strict";function aG(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function iG(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Aw.exports={clearOutlineControllers:aG,clearOutline:iG}});var lv=pe((q0e,kw)=>{"use strict";kw.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var _f=pe(uv=>{"use strict";var sv=Er(),O0e=wn().SUBPLOT_PATTERN;uv.getSubplotCalcData=function(e,r,t){var n=sv.subplotsRegistry[r];if(!n)return[];for(var a=n.attr,o=[],i=0;i{"use strict";var oG=Er(),Ys=ir();Rl.manageCommandObserver=function(e,r,t,n){var a={},o=!0;r&&r._commandObserver&&(a=r._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var i=Rl.hasSimpleAPICommandBindings(e,t,a.lookupTable);if(r&&r._commandObserver){if(i)return a;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,a}if(i){Sw(e,i,a.cache),a.check=function(){if(o){var f=Sw(e,i,a.cache);return f.changed&&n&&a.lookupTable[f.value]!==void 0&&(a.disable(),Promise.resolve(n({value:f.value,type:i.type,prop:i.prop,traces:i.traces,index:a.lookupTable[f.value]})).then(a.enable,a.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],u=0;u0?".":"")+a;Ys.isPlainObject(o)?eg(o,r,i,n+1):r(i,a,o)}})}});var ln=pe((H0e,Gw)=>{"use strict";var zw=it(),sG=ks().timeFormatLocale,uG=op().formatLocale,wf=rt(),fG=lp(),ot=Er(),qw=Vs(),cG=gt(),xr=ir(),Ow=Zr(),Rw=nn().BADNUM,aa=on(),vG=Fo().clearOutline,hG=lv(),rg=cf(),dG=Zp(),pG=_f().getModuleCalcData,Dw=xr.relinkPrivateKeys,Dl=xr._,fr=Gw.exports={};xr.extendFlat(fr,ot);fr.attributes=Sn();fr.attributes.type.values=fr.allTypes;fr.fontAttrs=kn();fr.layoutAttributes=Ds();var cv=Lw();fr.executeAPICommand=cv.executeAPICommand;fr.computeAPICommandBindings=cv.computeAPICommandBindings;fr.manageCommandObserver=cv.manageCommandObserver;fr.hasSimpleAPICommandBindings=cv.hasSimpleAPICommandBindings;fr.redrawText=function(e){return e=xr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(ot.getComponentMethod("annotations","draw")(e),ot.getComponentMethod("legend","draw")(e),ot.getComponentMethod("colorbar","draw")(e),r(fr.previousPromises(e)))},300)})};fr.resize=function(e){e=xr.getGraphDiv(e);var r,t=new Promise(function(n,a){(!e||xr.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||xr.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var o=e.changed;e.autoplay=!0,ot.call("relayout",e,{autosize:!0}).then(function(){e.changed=o,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return r&&r(t),t};fr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};fr.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=xr.ensureSingle(r._paper,"text","js-plot-link-container",function(u){u.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Ow.defaultLine,"pointer-events":"all"}).each(function(){var s=zw.select(this);s.append("tspan").classed("js-link-to-tool",!0),s.append("tspan").classed("js-link-spacer",!0),s.append("tspan").classed("js-sourcelinks",!0)})}),n=t.node(),a={y:r._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=r.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=r._paper.attr("width")-7),t.attr(a);var o=t.select(".js-link-to-tool"),i=t.select(".js-link-spacer"),l=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&gG(e,o),i.text(o.text()&&l.text()?" - ":"")}};function gG(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){fr.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),a=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+a})}}fr.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=zw.select(e).append("div").attr("id","hiddenform").style("display","none"),n=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),a=n.append("input").attr({type:"text",name:"data"});return a.node().value=fr.graphJson(e,!1,"keepdata"),n.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var yG=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],mG=["year","month","dayMonth","dayMonthYear"];fr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var a=e._fullLayout={},o=e.layout||{},i=e._fullData||[],l=e._fullData=[],u=e.data||[],s=e.calcdata||[],f=e._context||{},v;e._transitionData||fr.createTransitionData(e),a._dfltTitle={plot:Dl(e,"Click to enter Plot title"),subtitle:Dl(e,"Click to enter Plot subtitle"),x:Dl(e,"Click to enter X axis title"),y:Dl(e,"Click to enter Y axis title"),colorbar:Dl(e,"Click to enter Colorscale title"),annotation:Dl(e,"new text")},a._traceWord=Dl(e,"trace");var p=Pw(e,yG);if(a._mapboxAccessToken=f.mapboxAccessToken,n._initialAutoSizeIsDone){var b=n.width,m=n.height;fr.supplyLayoutGlobalDefaults(o,a,p),o.width||(a.width=b),o.height||(a.height=m),fr.sanitizeMargins(a)}else{fr.supplyLayoutGlobalDefaults(o,a,p);var w=!o.width||!o.height,M=a.autosize,y=f.autosizable,k=w&&(M||y);k?fr.plotAutoSize(e,o,a):w&&fr.sanitizeMargins(a),!M&&w&&(o.width=a.width,o.height=a.height)}a._d3locale=_G(p,a.separators),a._extraFormat=Pw(e,mG),a._initialAutoSizeIsDone=!0,a._dataLength=u.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var S=a._subplots=bG(),x=a._splomAxes={x:{},y:{}},T=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=xG(i,u),fr.supplyDataDefaults(u,l,o,a);var d=Object.keys(x.x),_=Object.keys(x.y);if(d.length>1&&_.length>1){for(ot.getComponentMethod("grid","sizeDefaults")(o,a),v=0;v15&&_.length>15&&a.shapes.length===0&&a.images.length===0,fr.linkSubplots(l,a,i,n),fr.cleanPlot(l,a,i,n);var R=!!(n._has&&n._has("cartesian")),E=!!(a._has&&a._has("cartesian")),D=R,N=E;D&&!N?n._bgLayer.remove():N&&!D&&(a._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&vG({_fullLayout:n}),wG(l,a),Dw(a,n),ot.getComponentMethod("colorscale","crossTraceDefaults")(l,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var I=a._tracePreGUI,F={},L;for(L in I)F[L]="old";for(v=0;v0){var f=1-2*o;i=Math.round(f*i),l=Math.round(f*l)}}var v=fr.layoutAttributes.width.min,p=fr.layoutAttributes.height.min;i1,m=!t.height&&Math.abs(n.height-l)>1;(m||b)&&(b&&(n.width=i),m&&(n.height=l)),r._initialAutoSize||(r._initialAutoSize={width:i,height:l}),fr.sanitizeMargins(n)};fr.supplyLayoutModuleDefaults=function(e,r,t,n){var a=ot.componentsRegistry,o=r._basePlotModules,i,l,u,s=ot.subplotsRegistry.cartesian;for(i in a)u=a[i],u.includeBasePlot&&u.includeBasePlot(e,r);o.length||o.push(s),r._has("cartesian")&&(ot.getComponentMethod("grid","contentDefaults")(e,r),s.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(xr.subplotSort);for(l=0;l1&&(t.l/=M,t.r/=M)}if(p){var y=(t.t+t.b)/p;y>1&&(t.t/=y,t.b/=y)}var k=t.xl!==void 0?t.xl:t.x,S=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,T=t.yb!==void 0?t.yb:t.y;b[r]={l:{val:k,size:t.l+w},r:{val:S,size:t.r+w},b:{val:T,size:t.b+w},t:{val:x,size:t.t+w}},m[r]=1}if(!n._replotting)return fr.doAutoMargin(e)}};function TG(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=aa.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}fr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,n=r.height;r._size||(r._size={}),Bw(r);var a=r._size,o=r.margin,i={t:0,b:0,l:0,r:0},l=xr.extendFlat({},a),u=o.l,s=o.r,f=o.t,v=o.b,p=r._pushmargin,b=r._pushmarginIds,m=r.minreducedwidth,w=r.minreducedheight;if(o.autoexpand!==!1){for(var M in p)b[M]||delete p[M];var y=e._fullLayout._reservedMargin;for(var k in y)for(var S in y[k]){var x=y[k][S];i[S]=Math.max(i[S],x)}p.base={l:{val:0,size:u},r:{val:1,size:s},t:{val:1,size:f},b:{val:0,size:v}};for(var T in i){var d=0;for(var _ in p)_!=="base"&&wf(p[_][T].size)&&(d=p[_][T].size>d?p[_][T].size:d);var g=Math.max(0,o[T]-d);i[T]=Math.max(0,i[T]-g)}for(var c in p){var A=p[c].l||{},h=p[c].b||{},R=A.val,E=A.size,D=h.val,N=h.size,I=t-i.r-i.l,F=n-i.t-i.b;for(var L in p){if(wf(E)&&p[L].r){var P=p[L].r.val,O=p[L].r.size;if(P>R){var U=(E*P+(O-I)*R)/(P-R),X=(O*(1-R)+(E-I)*(1-P))/(P-R);U+X>u+s&&(u=U,s=X)}}if(wf(N)&&p[L].t){var $=p[L].t.val,j=p[L].t.size;if($>D){var Y=(N*$+(j-F)*D)/($-D),q=(j*(1-D)+(N-F)*(1-$))/($-D);Y+q>v+f&&(v=Y,f=q)}}}}}var J=xr.constrain(t-o.l-o.r,Uw,m),ae=xr.constrain(n-o.t-o.b,Hw,w),Q=Math.max(0,t-J),oe=Math.max(0,n-ae);if(Q){var ee=(u+s)/Q;ee>1&&(u/=ee,s/=ee)}if(oe){var V=(v+f)/oe;V>1&&(v/=V,f/=V)}if(a.l=Math.round(u)+i.l,a.r=Math.round(s)+i.r,a.t=Math.round(f)+i.t,a.b=Math.round(v)+i.b,a.p=Math.round(o.pad),a.w=Math.round(t)-a.l-a.r,a.h=Math.round(n)-a.t-a.b,!r._replotting&&(fr.didMarginChange(l,a)||TG(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var re=3*(1+Object.keys(b).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};fr.graphJson=function(e,r,t,n,a,o){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&fr.supplyDefaults(e);var i=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,u=(e._transitionData||{})._frames;function s(p,b){if(typeof p=="function")return b?"_function_":null;if(xr.isPlainObject(p)){var m={},w;return Object.keys(p).sort().forEach(function(S){if(["_","["].indexOf(S.charAt(0))===-1){if(typeof p[S]=="function"){b&&(m[S]="_function");return}if(t==="keepdata"){if(S.substr(S.length-3)==="src")return}else if(t==="keepstream"){if(w=p[S+"src"],typeof w=="string"&&w.indexOf(":")>0&&!xr.isPlainObject(p.stream))return}else if(t!=="keepall"&&(w=p[S+"src"],typeof w=="string"&&w.indexOf(":")>0))return;m[S]=s(p[S],b)}}),m}var M=Array.isArray(p),y=xr.isTypedArray(p);if((M||y)&&p.dtype&&p.shape){var k=p.bdata;return s({dtype:p.dtype,shape:p.shape,bdata:xr.isArrayBuffer(k)?fG.encode(k):k},b)}return M?p.map(function(S){return s(S,b)}):y?xr.simpleMap(p,xr.identity):xr.isJSDate(p)?xr.ms2DateTimeLocal(+p):p}var f={data:(i||[]).map(function(p){var b=s(p);return r&&delete b.fit,b})};if(!r&&(f.layout=s(l),a)){var v=l._size;f.layout.computed={margin:{b:v.b,l:v.l,r:v.r,t:v.t}}}return u&&(f.frames=s(u)),o&&(f.config=s(e._context,!0)),n==="object"?f:JSON.stringify(f)};fr.modifyFrames=function(e,r){var t,n,a,o=e._transitionData._frames,i=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return ot.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var p=0,b=0;function m(){return p++,function(){b++,!n&&b===p&&l(v)}}t.runFn(m),setTimeout(m())})}function l(v){if(e._transitionData)return o(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return ot.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(v)}function u(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var s=[fr.previousPromises,u,t.prepareFn,fr.rehover,fr.reselect,i],f=xr.syncOrAsync(s,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}fr.doCalcdata=function(e,r){var t=aa.list(e),n=e._fullData,a=e._fullLayout,o,i,l,u,s=new Array(n.length),f=(e.calcdata||[]).slice();for(e.calcdata=s,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},l=0;l=0;u--)if(T[u].enabled){o._indexToPoints=T[u]._indexToPoints;break}i&&i.calc&&(x=i.calc(e,o))}(!Array.isArray(x)||!x[0])&&(x=[{x:Rw,y:Rw}]),x[0].t||(x[0].t={}),x[0].trace=o,s[k]=x}}for(Iw(t,n,a),l=0;l{"use strict";Pl.xmlns="http://www.w3.org/2000/xmlns/";Pl.svg="http://www.w3.org/2000/svg";Pl.xlink="http://www.w3.org/1999/xlink";Pl.svgAttrs={xmlns:Pl.svg,"xmlns:xlink":Pl.xlink}});var qn=pe((G0e,Yw)=>{"use strict";Yw.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var Yn=pe(La=>{"use strict";var Yt=it(),eo=ir(),CG=eo.strTranslate,tg=Io(),EG=qn().LINE_SPACING,LG=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;La.convertToTspans=function(e,r,t){var n=e.text(),a=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&n.match(LG),o=Yt.select(e.node().parentNode);if(o.empty())return;var i=e.attr("class")?e.attr("class").split(" ")[0]:"text";i+="-math",o.selectAll("svg."+i).remove(),o.selectAll("g."+i+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function l(){o.empty()||(i=e.attr("class")+"-math",o.select("svg."+i).remove()),e.text("").style("white-space","pre");var u=VG(e.node(),n);u&&e.style("pointer-events","all"),La.positionText(e),t&&t.call(e)}return a?(r&&r._promises||[]).push(new Promise(function(u){e.style("display","none");var s=parseInt(e.node().style.fontSize,10),f={fontSize:s};FG(a[2],f,function(v,p,b){o.selectAll("svg."+i).remove(),o.selectAll("g."+i+"-group").remove();var m=v&&v.select("svg");if(!m||!m.node()){l(),u();return}var w=o.append("g").classed(i+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});w.node().appendChild(m.node()),p&&p.node()&&m.node().insertBefore(p.node().cloneNode(!0),m.node().firstChild);var M=b.width,y=b.height;m.attr({class:i,height:y,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var k=e.node().style.fill||"black",S=m.select("g");S.attr({fill:k,stroke:k});var x=S.node().getBoundingClientRect(),T=x.width,d=x.height;(T>M||d>y)&&(m.style("overflow","hidden"),x=m.node().getBoundingClientRect(),T=x.width,d=x.height);var _=+e.attr("x"),g=+e.attr("y"),c=s||e.node().getBoundingClientRect().height,A=-c/4;if(i[0]==="y")w.attr({transform:"rotate("+[-90,_,g]+")"+CG(-T/2,A-d/2)});else if(i[0]==="l")g=A-d/2;else if(i[0]==="a"&&i.indexOf("atitle")!==0)_=0,g=A;else{var h=e.attr("text-anchor");_=_-T*(h==="middle"?.5:h==="end"?1:0),g=g+A-d/2}m.attr({x:_,y:g}),t&&t.call(e,w),u(w)})})):l(),e};var RG=/(<|<|<)/g,DG=/(>|>|>)/g;function PG(e){return e.replace(RG,"\\lt ").replace(DG,"\\gt ")}var Ww=[["$","$"],["\\(","\\)"]];function FG(e,r,t){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){eo.warn("No MathJax version:",MathJax.version);return}var a,o,i,l,u=function(){return o=eo.extendDeepAll({},MathJax.Hub.config),i=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:Ww},displayAlign:"left"})},s=function(){o=eo.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=Ww},f=function(){if(a=MathJax.Hub.config.menuSettings.renderer,a!=="SVG")return MathJax.Hub.setRenderer("SVG")},v=function(){a=MathJax.config.startup.output,a!=="svg"&&(MathJax.config.startup.output="svg")},p=function(){var k="math-output-"+eo.randstr({},64);l=Yt.select("body").append("div").attr({id:k}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(PG(e));var S=l.node();return n===2?MathJax.Hub.Typeset(S):MathJax.typeset([S])},b=function(){var k=l.select(n===2?".MathJax_SVG":".MathJax"),S=!k.empty()&&l.select("svg").node();if(!S)eo.log("There was an error in the tex syntax.",e),t();else{var x=S.getBoundingClientRect(),T;n===2?T=Yt.select("body").select("#MathJax_SVG_glyphs"):T=k.select("defs"),t(k,T,x)}l.remove()},m=function(){if(a!=="SVG")return MathJax.Hub.setRenderer(a)},w=function(){a!=="svg"&&(MathJax.config.startup.output=a)},M=function(){return i!==void 0&&(MathJax.Hub.processSectionDelay=i),MathJax.Hub.Config(o)},y=function(){MathJax.config=o};n===2?MathJax.Hub.Queue(u,f,p,b,m,M):n===3&&(s(),v(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){p(),b(),w(),y()}))}var Kw={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"},IG={sub:"0.3em",sup:"-0.6em"},NG={sub:"-0.21em",sup:"0.42em"},Xw="\u200B",Zw=["http:","https:","mailto:","",void 0,":"],Qw=La.NEWLINES=/(\r\n?|\n)/g,ag=/(<[^<>]*>)/,ig=/<(\/?)([^ >]*)(\s+(.*))?>/i,zG=//i;La.BR_TAG_ALL=//gi;var $w=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,jw=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,e7=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,qG=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Fl(e,r){if(!e)return null;var t=e.match(r),n=t&&(t[3]||t[4]);return n&&vv(n)}var OG=/(^|;)\s*color:/;La.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,n=r.allowedTags!==void 0?r.allowedTags:["br"],a="...",o=a.length,i=e.split(ag),l=[],u="",s=0,f=0;fo?l.push(v.substr(0,w-o)+a):l.push(v.substr(0,w));break}u=""}}return l.join("")};var BG={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},UG=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function vv(e){return e.replace(UG,function(r,t){var n;return t.charAt(0)==="#"?n=HG(t.charAt(1)==="x"?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):n=BG[t],n||r})}La.convertEntities=vv;function HG(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 VG(e,r){r=r.replace(Qw," ");var t=!1,n=[],a,o=-1;function i(){o++;var d=document.createElementNS(tg.svg,"tspan");Yt.select(d).attr({class:"line",dy:o*EG+"em"}),e.appendChild(d),a=d;var _=n;if(n=[{node:d}],_.length>1)for(var g=1;g<_.length;g++)l(_[g])}function l(d){var _=d.type,g={},c;if(_==="a"){c="a";var A=d.target,h=d.href,R=d.popup;h&&(g={"xlink:xlink:show":A==="_blank"||A.charAt(0)!=="_"?"new":"replace",target:A,"xlink:xlink:href":h},R&&(g.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+R+'");return false;'))}else c="tspan";d.style&&(g.style=d.style);var E=document.createElementNS(tg.svg,c);if(_==="sup"||_==="sub"){u(a,Xw),a.appendChild(E);var D=document.createElementNS(tg.svg,"tspan");u(D,Xw),Yt.select(D).attr("dy",NG[_]),g.dy=IG[_],a.appendChild(E),a.appendChild(D)}else a.appendChild(E);Yt.select(E).attr(g),a=d.node=E,n.push(d)}function u(d,_){d.appendChild(document.createTextNode(_))}function s(d){if(n.length===1){eo.log("Ignoring unexpected end tag .",r);return}var _=n.pop();d!==_.type&&eo.log("Start tag <"+_.type+"> doesnt match end tag <"+d+">. Pretending it did match.",r),a=n[n.length-1].node}var f=zG.test(r);f?i():(a=e,n=[{node:e}]);for(var v=r.split(ag),p=0;p{"use strict";var GG=it(),dv=ka(),Tf=rt(),hv=ir(),t7=Zr(),YG=wl().isValid;function WG(e,r,t){var n=r?hv.nestedProperty(e,r).get()||{}:e,a=n[t||"color"];a&&a._inputArray&&(a=a._inputArray);var o=!1;if(hv.isArrayOrTypedArray(a)){for(var i=0;i=0;n--,a++){var o=e[n];t[a]=[1-o[0],o[1]]}return t}function s7(e,r){r=r||{};for(var t=e.domain,n=e.range,a=n.length,o=new Array(a),i=0;i{"use strict";var f7=Ap(),ZG=f7.FORMAT_LINK,JG=f7.DATE_FORMAT_LINK;function KG(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?og:c7)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function og(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+ZG+"."].join(" ")}function c7(e,r){return og(e,r)+[" And for dates see: "+JG+".","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:KG,descriptionOnlyNumbers:og,descriptionWithDates:c7}});var Ra=pe((Z0e,E7)=>{"use strict";var h7=kn(),Ws=Ti(),C7=Ao().dash,sg=Mt().extendFlat,d7=gt().templatedArray,p7=ro().descriptionWithDates,QG=nn().ONEDAY,Ci=wn(),$G=Ci.HOUR_PATTERN,jG=Ci.WEEKDAY_PATTERN,lg={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},eY=sg({},lg,{values:lg.values.slice().concat(["sync"])});function g7(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var y7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},m7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},x7={valType:"data_array",editType:"ticks"},b7={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 M7={valType:"color",dflt:Ws.defaultLine,editType:"ticks"},T7={valType:"color",dflt:Ws.lightLine,editType:"ticks"};function A7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var k7=sg({},C7,{editType:"ticks"}),S7={valType:"boolean",editType:"ticks"};E7.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Ws.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:[Ci.idRegex.x.toString(),Ci.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Ci.idRegex.x.toString(),Ci.idRegex.y.toString()],editType:"calc"},rangebreaks: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:[jG,$G,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:QG},editType:"calc"}),tickmode:eY,nticks:g7(),tick0:y7,dtick:m7,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:x7,ticktext:{valType:"data_array",editType:"ticks"},ticks:b7,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:M7,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:sg({},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:Ws.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:S7,gridcolor:T7,gridwidth:A7(),griddash:k7,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Ws.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Ws.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Ci.idRegex.x.toString(),Ci.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Ci.idRegex.x.toString(),Ci.idRegex.y.toString()],editType:"plot"},minor:{tickmode:lg,nticks:g7("minor"),tick0:y7,dtick:m7,tickvals:x7,ticks:b7,ticklen:_7("minor"),tickwidth:w7("minor"),tickcolor:M7,gridcolor:T7,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 pv=pe((J0e,D7)=>{"use strict";var At=Ra(),L7=kn(),R7=Mt().extendFlat,rY=zn().overrideAll;D7.exports=rY({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:At.linecolor,outlinewidth:At.linewidth,bordercolor:At.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:At.minor.tickmode,nticks:At.nticks,tick0:At.tick0,dtick:At.dtick,tickvals:At.tickvals,ticktext:At.ticktext,ticks:R7({},At.ticks,{dflt:""}),ticklabeloverflow:R7({},At.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:At.ticklen,tickwidth:At.tickwidth,tickcolor:At.tickcolor,ticklabelstep:At.ticklabelstep,showticklabels:At.showticklabels,labelalias:At.labelalias,tickfont:L7({}),tickangle:At.tickangle,tickformat:At.tickformat,tickformatstops:At.tickformatstops,tickprefix:At.tickprefix,showtickprefix:At.showtickprefix,ticksuffix:At.ticksuffix,showticksuffix:At.showticksuffix,separatethousands:At.separatethousands,exponentformat:At.exponentformat,minexponent:At.minexponent,showexponent:At.showexponent,title:{text:{valType:"string"},font:L7({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var ja=pe((Q0e,F7)=>{"use strict";var tY=pv(),nY=Es().counter,aY=Wc(),P7=wl().scales,K0e=aY(P7);function gv(e){return"`"+e+"`"}F7.exports=function(r,t){r=r||"",t=t||{};var n=t.cLetter||"c",a="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,o="noScale"in t?t.noScale:r==="marker.line",i="showScaleDflt"in t?t.showScaleDflt:n==="z",l=typeof t.colorscaleDflt=="string"?P7[t.colorscaleDflt]:null,u=t.editTypeOverride||"",s=r?r+".":"",f,v;"colorAttr"in t?(f=t.colorAttr,v=t.colorAttr):(f={z:"z",c:"color"}[n],v="in "+gv(s+f));var p=a?" Has an effect only if "+v+" is set to a numerical array.":"",b=n+"auto",m=n+"min",w=n+"max",M=n+"mid",y=gv(s+b),k=gv(s+m),S=gv(s+w),x=k+" and "+S,T={};T[m]=T[w]=void 0;var d={};d[b]=!1;var _={};return f==="color"&&(_.color={valType:"color",arrayOk:!0,editType:u||"style"},t.anim&&(_.color.anim=!0)),_[b]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},_[m]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:d},_[w]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:d},_[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},_.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},_.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},_.reversescale={valType:"boolean",dflt:!1,editType:"plot"},o||(_.showscale={valType:"boolean",dflt:i,editType:"calc"},_.colorbar=tY),t.noColorAxis||(_.coloraxis={valType:"subplotid",regex:nY("coloraxis"),dflt:null,editType:"calc"}),_}});var fg=pe(($0e,I7)=>{"use strict";var iY=Mt().extendFlat,oY=ja(),ug=wl().scales;I7.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:ug.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:ug.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:ug.RdBu,editType:"calc"}},coloraxis:iY({_isSubplotObj:!0,editType:"calc"},oY("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var cg=pe((j0e,N7)=>{"use strict";var lY=ir();N7.exports=function(r){return lY.isPlainObject(r.colorbar)}});var dg=pe(hg=>{"use strict";var vg=rt(),z7=ir(),q7=nn(),sY=q7.ONEDAY,uY=q7.ONEWEEK;hg.dtick=function(e,r){var t=r==="log",n=r==="date",a=r==="category",o=n?sY:1;if(!e)return o;if(vg(e))return e=Number(e),e<=0?o:a?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||t))return o;var i=e.charAt(0),l=e.substr(1);return l=vg(l)?Number(l):0,l<=0||!(n&&i==="M"&&l===Math.round(l)||t&&i==="L"||t&&i==="D"&&(l===1||l===2))?o:e};hg.tick0=function(e,r,t,n){if(r==="date")return z7.cleanDate(e,z7.dateTick0(t,n%uY===0?1:0));if(!(n==="D1"||n==="D2"))return vg(e)?Number(e):0}});var pg=pe((rce,B7)=>{"use strict";var O7=dg(),fY=ir().isArrayOrTypedArray,cY=jn().isTypedArraySpec,vY=jn().decodeTypedArraySpec;B7.exports=function(r,t,n,a,o){o||(o={});var i=o.isMinor,l=i?r.minor||{}:r,u=i?t.minor:t,s=i?"minor.":"";function f(k){var S=l[k];return cY(S)&&(S=vY(S)),S!==void 0?S:(u._template||{})[k]}var v=f("tick0"),p=f("dtick"),b=f("tickvals"),m=fY(b)?"array":p?"linear":"auto",w=n(s+"tickmode",m);if(w==="auto"||w==="sync")n(s+"nticks");else if(w==="linear"){var M=u.dtick=O7.dtick(p,a);u.tick0=O7.tick0(v,a,t.calendar,M)}else if(a!=="multicategory"){var y=n(s+"tickvals");y===void 0?u.tickmode="auto":i||n("ticktext")}}});var yg=pe((tce,H7)=>{"use strict";var gg=ir(),U7=Ra();H7.exports=function(r,t,n,a){var o=a.isMinor,i=o?r.minor||{}:r,l=o?t.minor:t,u=o?U7.minor:U7,s=o?"minor.":"",f=gg.coerce2(i,l,u,"ticklen",o?(t.ticklen||5)*.6:void 0),v=gg.coerce2(i,l,u,"tickwidth",o?t.tickwidth||1:void 0),p=gg.coerce2(i,l,u,"tickcolor",(o?t.tickcolor:void 0)||l.color),b=n(s+"ticks",!o&&a.outerTicks||f||v||p?"outside":"");b||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var mg=pe((nce,V7)=>{"use strict";V7.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],n=t.filter(function(o){return r[o]!==void 0}),a=function(o){return r[o]===r[n[0]]};if(n.every(a)||n.length===1)return r[n[0]]}});var ei=pe((ace,G7)=>{"use strict";var yv=ir(),hY=gt();G7.exports=function(r,t,n){var a=n.name,o=n.inclusionAttr||"visible",i=t[a],l=yv.isArrayOrTypedArray(r[a])?r[a]:[],u=t[a]=[],s=hY.arrayTemplater(t,a,o),f,v;for(f=0;f{"use strict";var xg=ir(),dY=Zr().contrast,Y7=Ra(),pY=mg(),gY=ei();W7.exports=function(r,t,n,a,o){o||(o={});var i=n("labelalias");xg.isPlainObject(i)||delete t.labelalias;var l=pY(r),u=n("showticklabels");if(u){o.noTicklabelshift||n("ticklabelshift"),o.noTicklabelstandoff||n("ticklabelstandoff");var s=o.font||{},f=t.color,v=t.ticklabelposition||"",p=v.indexOf("inside")!==-1?dY(o.bgColor):f&&f!==Y7.color.dflt?f:s.color;if(xg.coerceFont(n,"tickfont",s,{overrideDflt:{color:p}}),!o.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&n("ticklabelstep"),!o.noAng){var b=n("tickangle");!o.noAutotickangles&&b==="auto"&&n("autotickangles")}if(a!=="category"){var m=n("tickformat");gY(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:yY}),t.tickformatstops.length||delete t.tickformatstops,!o.noExp&&!m&&a!=="date"&&(n("showexponent",l),n("exponentformat"),n("minexponent"),n("separatethousands"))}}};function yY(e,r){function t(a,o){return xg.coerce(e,r,Y7.tickformatstops,a,o)}var n=t("enabled");n&&(t("dtickrange"),t("value"))}});var _g=pe((oce,X7)=>{"use strict";var mY=mg();X7.exports=function(r,t,n,a,o){o||(o={});var i=o.tickSuffixDflt,l=mY(r),u=n("tickprefix");u&&n("showtickprefix",l);var s=n("ticksuffix",i);s&&n("showticksuffix",l)}});var wg=pe((lce,Z7)=>{"use strict";var No=ir(),xY=gt(),bY=pg(),_Y=yg(),wY=bg(),MY=_g(),TY=pv();Z7.exports=function(r,t,n){var a=xY.newContainer(t,"colorbar"),o=r.colorbar||{};function i(h,R){return No.coerce(o,a,TY,h,R)}var l=n.margin||{t:0,b:0,l:0,r:0},u=n.width-l.l-l.r,s=n.height-l.t-l.b,f=i("orientation"),v=f==="v",p=i("thicknessmode");i("thickness",p==="fraction"?30/(v?u:s):30);var b=i("lenmode");i("len",b==="fraction"?1:v?s:u);var m=i("yref"),w=i("xref"),M=m==="paper",y=w==="paper",k,S,x,T="left";v?(x="middle",T=y?"left":"right",k=y?1.02:1,S=.5):(x=M?"bottom":"top",T="center",k=.5,S=M?1.02:1),No.coerce(o,a,{x:{valType:"number",min:y?-2:0,max:y?3:1,dflt:k}},"x"),No.coerce(o,a,{y:{valType:"number",min:M?-2:0,max:M?3:1,dflt:S}},"y"),i("xanchor",T),i("xpad"),i("yanchor",x),i("ypad"),No.noneOrAll(o,a,["x","y"]),i("outlinecolor"),i("outlinewidth"),i("bordercolor"),i("borderwidth"),i("bgcolor");var d=No.coerce(o,a,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");i("ticklabeloverflow",d.indexOf("inside")!==-1?"hide past domain":"hide past div"),bY(o,a,i,"linear");var _=n.font,g={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:_};d.indexOf("inside")!==-1&&(g.bgColor="black"),MY(o,a,i,"linear",g),wY(o,a,i,"linear",g),_Y(o,a,i,"linear",g),i("title.text",n._dfltTitle.colorbar);var c=a.showticklabels?a.tickfont:_,A=No.extendFlat({},_,{family:c.family,size:No.bigFont(c.size)});No.coerceFont(i,"title.font",A),i("title.side",v?"top":"right")}});var Ei=pe((sce,Q7)=>{"use strict";var J7=rt(),Tg=ir(),AY=cg(),kY=wg(),K7=wl().isValid,SY=Er().traceIs;function Mg(e,r){var t=r.slice(0,r.length-1);return r?Tg.nestedProperty(e,t).get()||{}:e}Q7.exports=function e(r,t,n,a,o){var i=o.prefix,l=o.cLetter,u="_module"in t,s=Mg(r,i),f=Mg(t,i),v=Mg(t._template||{},i)||{},p=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,n,a,o)};if(u){var b=n._colorAxes||{},m=a(i+"coloraxis");if(m){var w=SY(t,"contour")&&Tg.nestedProperty(t,"contours.coloring").get()||"heatmap",M=b[m];M?(M[2].push(p),M[0]!==w&&(M[0]=!1,Tg.warn(["Ignoring coloraxis:",m,"setting","as it is linked to incompatible colorscales."].join(" ")))):b[m]=[w,t,[p]];return}}var y=s[l+"min"],k=s[l+"max"],S=J7(y)&&J7(k)&&y{"use strict";var $7=ir(),CY=gt(),j7=fg(),EY=Ei();e8.exports=function(r,t){function n(v,p){return $7.coerce(r,t,j7,v,p)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var a=t._colorAxes,o,i;function l(v,p){return $7.coerce(o,i,j7.coloraxis,v,p)}for(var u in a){var s=a[u];if(s[0])o=r[u]||{},i=CY.newContainer(t,u,"coloraxis"),i._name=u,EY(o,i,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var LY=ir(),RY=Si().hasColorscale,DY=Si().extractOpts;t8.exports=function(r,t){function n(f,v){var p=f["_"+v];p!==void 0&&(f[v]=p)}function a(f,v){var p=v.container?LY.nestedProperty(f,v.container).get():f;if(p)if(p.coloraxis)p._colorAx=t[p.coloraxis];else{var b=DY(p),m=b.auto;(m||b.min===void 0)&&n(p,v.min),(m||b.max===void 0)&&n(p,v.max),b.autocolorscale&&n(p,"colorscale")}}for(var o=0;o{"use strict";var a8=rt(),Ag=ir(),PY=Si().extractOpts;i8.exports=function(r,t,n){var a=r._fullLayout,o=n.vals,i=n.containerStr,l=i?Ag.nestedProperty(t,i).get():t,u=PY(l),s=u.auto!==!1,f=u.min,v=u.max,p=u.mid,b=function(){return Ag.aggNums(Math.min,null,o)},m=function(){return Ag.aggNums(Math.max,null,o)};if(f===void 0?f=b():s&&(l._colorAx&&a8(f)?f=Math.min(f,b()):f=b()),v===void 0?v=m():s&&(l._colorAx&&a8(v)?v=Math.max(v,m()):v=m()),s&&p!==void 0&&(v-p>p-f?f=p-(v-p):v-p=0?w=a.colorscale.sequential:w=a.colorscale.sequentialminus,u._sync("colorscale",w)}}});var Li=pe((vce,o8)=>{"use strict";var mv=wl(),Xs=Si();o8.exports={moduleType:"component",name:"colorscale",attributes:ja(),layoutAttributes:fg(),supplyLayoutDefaults:r8(),handleDefaults:Ei(),crossTraceDefaults:n8(),calc:zo(),scales:mv.scales,defaultScale:mv.defaultScale,getScale:mv.get,isValidScale:mv.isValid,hasColorscale:Xs.hasColorscale,extractOpts:Xs.extractOpts,extractScale:Xs.extractScale,flipScale:Xs.flipScale,makeColorScaleFunc:Xs.makeColorScaleFunc,makeColorScaleFuncFromTrace:Xs.makeColorScaleFuncFromTrace}});var ia=pe((hce,s8)=>{"use strict";var l8=ir(),FY=jn().isTypedArraySpec;s8.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 l8.isPlainObject(r)&&(l8.isArrayOrTypedArray(r.size)||FY(r.size))}}});var kg=pe((dce,u8)=>{"use strict";var IY=rt();u8.exports=function(r,t){t||(t=2);var n=r.marker,a=n.sizeref||1,o=n.sizemin||0,i=n.sizemode==="area"?function(l){return Math.sqrt(l/a)}:function(l){return l/a};return function(l){var u=i(l/t);return IY(u)&&u>0?Math.max(u,o):0}}});var to=pe(Cn=>{"use strict";var f8=ir();Cn.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Cn.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],n=e.yaxes||[],a=0;a=0&&t.index{h8.exports=BY;var Sg={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},OY=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function BY(e){var r=[];return e.replace(OY,function(t,n,a){var o=n.toLowerCase();for(a=HY(a),o=="m"&&a.length>2&&(r.push([n].concat(a.splice(0,2))),o="l",n=n=="m"?"l":"L");;){if(a.length==Sg[o])return a.unshift(n),r.push(a);if(a.length{"use strict";var VY=Cg(),sr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Fr="M0,0Z",d8=Math.sqrt(2),qo=Math.sqrt(3),Eg=Math.PI,Lg=Math.cos,Rg=Math.sin;x8.exports={circle:{n:0,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2),a="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return t?Nr(r,t,a):a}},square:{n:1,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.3,2);return Nr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.4,2),a=sr(e*1.2,2);return Nr(r,t,"M"+a+","+n+"H"+n+"V"+a+"H-"+n+"V"+n+"H-"+a+"V-"+n+"H-"+n+"V-"+a+"H"+n+"V-"+n+"H"+a+"Z")}},x:{n:4,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.8/d8,2),a="l"+n+","+n,o="l"+n+",-"+n,i="l-"+n+",-"+n,l="l-"+n+","+n;return Nr(r,t,"M0,"+n+a+o+i+o+i+l+i+l+a+l+a+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*2/qo,2),a=sr(e/2,2),o=sr(e,2);return Nr(r,t,"M-"+n+","+a+"H"+n+"L0,-"+o+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*2/qo,2),a=sr(e/2,2),o=sr(e,2);return Nr(r,t,"M-"+n+",-"+a+"H"+n+"L0,"+o+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*2/qo,2),a=sr(e/2,2),o=sr(e,2);return Nr(r,t,"M"+a+",-"+n+"V"+n+"L-"+o+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*2/qo,2),a=sr(e/2,2),o=sr(e,2);return Nr(r,t,"M-"+a+",-"+n+"V"+n+"L"+o+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.6,2),a=sr(e*1.2,2);return Nr(r,t,"M-"+a+",-"+n+"H"+n+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.6,2),a=sr(e*1.2,2);return Nr(r,t,"M"+n+",-"+a+"V"+n+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.6,2),a=sr(e*1.2,2);return Nr(r,t,"M"+a+","+n+"H-"+n+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.6,2),a=sr(e*1.2,2);return Nr(r,t,"M-"+n+","+a+"V-"+n+"H"+a+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.951,2),a=sr(e*.588,2),o=sr(-e,2),i=sr(e*-.309,2),l=sr(e*.809,2);return Nr(r,t,"M"+n+","+i+"L"+a+","+l+"H-"+a+"L-"+n+","+i+"L0,"+o+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2),a=sr(e/2,2),o=sr(e*qo/2,2);return Nr(r,t,"M"+o+",-"+a+"V"+a+"L0,"+n+"L-"+o+","+a+"V-"+a+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2),a=sr(e/2,2),o=sr(e*qo/2,2);return Nr(r,t,"M-"+a+","+o+"H"+a+"L"+n+",0L"+a+",-"+o+"H-"+a+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.924,2),a=sr(e*.383,2);return Nr(r,t,"M-"+a+",-"+n+"H"+a+"L"+n+",-"+a+"V"+a+"L"+a+","+n+"H-"+a+"L-"+n+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,r,t){if(Ir(r))return Fr;var n=e*1.4,a=sr(n*.225,2),o=sr(n*.951,2),i=sr(n*.363,2),l=sr(n*.588,2),u=sr(-n,2),s=sr(n*-.309,2),f=sr(n*.118,2),v=sr(n*.809,2),p=sr(n*.382,2);return Nr(r,t,"M"+a+","+s+"H"+o+"L"+i+","+f+"L"+l+","+v+"L0,"+p+"L-"+l+","+v+"L-"+i+","+f+"L-"+o+","+s+"H-"+a+"L0,"+u+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.66,2),a=sr(e*.38,2),o=sr(e*.76,2);return Nr(r,t,"M-"+o+",0l-"+a+",-"+n+"h"+o+"l"+a+",-"+n+"l"+a+","+n+"h"+o+"l-"+a+","+n+"l"+a+","+n+"h-"+o+"l-"+a+","+n+"l-"+a+",-"+n+"h-"+o+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*qo*.8,2),a=sr(e*.8,2),o=sr(e*1.6,2),i=sr(e*4,2),l="A "+i+","+i+" 0 0 1 ";return Nr(r,t,"M-"+n+","+a+l+n+","+a+l+"0,-"+o+l+"-"+n+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*qo*.8,2),a=sr(e*.8,2),o=sr(e*1.6,2),i=sr(e*4,2),l="A "+i+","+i+" 0 0 1 ";return Nr(r,t,"M"+n+",-"+a+l+"-"+n+",-"+a+l+"0,"+o+l+n+",-"+a+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.1,2),a=sr(e*2,2),o="A "+a+","+a+" 0 0 1 ";return Nr(r,t,"M-"+n+",-"+n+o+"-"+n+","+n+o+n+","+n+o+n+",-"+n+o+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.4,2),a=sr(e*1.9,2),o="A "+a+","+a+" 0 0 1 ";return Nr(r,t,"M-"+n+",0"+o+"0,"+n+o+n+",0"+o+"0,-"+n+o+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.7,2),a=sr(e*1.4,2);return Nr(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.4,2),a=sr(e*.7,2);return Nr(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2),a=sr(e/d8,2);return Nr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.3,2);return Nr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.3,2),a=sr(e*.65,2);return Nr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.4,2);return Nr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.2,2),a=sr(e*.85,2);return Nr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e/2,2),a=sr(e,2);return Nr(r,t,"M"+n+","+a+"V-"+a+"M"+(n-a)+",-"+a+"V"+a+"M"+a+","+n+"H-"+a+"M-"+a+","+(n-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.2,2),a=sr(e*1.6,2),o=sr(e*.8,2);return Nr(r,t,"M-"+n+","+o+"L0,0M"+n+","+o+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.2,2),a=sr(e*1.6,2),o=sr(e*.8,2);return Nr(r,t,"M-"+n+",-"+o+"L0,0M"+n+",-"+o+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.2,2),a=sr(e*1.6,2),o=sr(e*.8,2);return Nr(r,t,"M"+o+","+n+"L0,0M"+o+",-"+n+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.2,2),a=sr(e*1.6,2),o=sr(e*.8,2);return Nr(r,t,"M-"+o+","+n+"L0,0M-"+o+",-"+n+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.4,2);return Nr(r,t,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.4,2);return Nr(r,t,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2),a=sr(e*2,2);return Nr(r,t,"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2),a=sr(e*2,2);return Nr(r,t,"M0,0L-"+n+",-"+a+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*2,2),a=sr(e,2);return Nr(r,t,"M0,0L"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*2,2),a=sr(e,2);return Nr(r,t,"M0,0L-"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2),a=sr(e*2,2);return Nr(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2),a=sr(e*2,2);return Nr(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+a+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*2,2),a=sr(e,2);return Nr(r,t,"M0,-"+a+"V"+a+"M0,0L"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*2,2),a=sr(e,2);return Nr(r,t,"M0,-"+a+"V"+a+"M0,0L-"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Ir(r))return Fr;var n=Eg/2.5,a=2*e*Lg(n),o=2*e*Rg(n);return Nr(r,t,"M0,0L"+-a+","+o+"L"+a+","+o+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Ir(r))return Fr;var n=Eg/4,a=2*e*Lg(n),o=2*e*Rg(n);return Nr(r,t,"M0,0L"+-a+","+o+"A "+2*e+","+2*e+" 0 0 1 "+a+","+o+"Z")},backoff:.4,noDot:!0}};function Ir(e){return e===null}var p8,g8,y8,m8;function Nr(e,r,t){if((!e||e%360===0)&&!r)return t;if(y8===e&&m8===r&&p8===t)return g8;y8=e,m8=r,p8=t;function n(M,y){var k=Lg(M),S=Rg(M),x=y[0],T=y[1]+(r||0);return[x*k-T*S,x*S+T*k]}for(var a=e/180*Eg,o=0,i=0,l=VY(t),u="",s=0;s{"use strict";var sn=it(),pt=ir(),GY=pt.numberFormat,ql=rt(),zg=ka(),bv=Er(),Mn=Zr(),YY=Li(),kf=pt.strTranslate,_v=Yn(),WY=Io(),XY=qn(),ZY=XY.LINE_SPACING,L8=Dc().DESELECTDIM,JY=ia(),KY=kg(),QY=to().appendArrayPointValue,vr=B8.exports={};vr.font=function(e,r){var t=r.variant,n=r.style,a=r.weight,o=r.color,i=r.size,l=r.family,u=r.shadow,s=r.lineposition,f=r.textcase;l&&e.style("font-family",l),i+1&&e.style("font-size",i+"px"),o&&e.call(Mn.fill,o),a&&e.style("font-weight",a),n&&e.style("font-style",n),t&&e.style("font-variant",t),f&&e.style("text-transform",Dg(jY(f))),u&&e.style("text-shadow",u==="auto"?_v.makeTextShadow(Mn.contrast(o)):Dg(u)),s&&e.style("text-decoration-line",Dg(eW(s)))};function Dg(e){return e==="none"?void 0:e}var $Y={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function jY(e){return $Y[e]}function eW(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}vr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};vr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};vr.setRect=function(e,r,t,n,a){e.call(vr.setPosition,r,t).call(vr.setSize,n,a)};vr.translatePoint=function(e,r,t,n){var a=t.c2p(e.x),o=n.c2p(e.y);if(ql(a)&&ql(o)&&r.node())r.node().nodeName==="text"?r.attr("x",a).attr("y",o):r.attr("transform",kf(a,o));else return!1;return!0};vr.translatePoints=function(e,r,t){e.each(function(n){var a=sn.select(this);vr.translatePoint(n,a,r,t)})};vr.hideOutsideRangePoint=function(e,r,t,n,a,o){r.attr("display",t.isPtWithinRange(e,a)&&n.isPtWithinRange(e,o)?null:"none")};vr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,n=r.yaxis;e.each(function(a){var o=a[0].trace,i=o.xcalendar,l=o.ycalendar,u=bv.traceIs(o,"bar-like")?".bartext":".point,.textpoint";e.selectAll(u).each(function(s){vr.hideOutsideRangePoint(s,sn.select(this),t,n,i,l)})})}};vr.crispRound=function(e,r,t){return!r||!ql(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};vr.singleLineStyle=function(e,r,t,n,a){r.style("fill","none");var o=(((e||[])[0]||{}).trace||{}).line||{},i=t||o.width||0,l=a||o.dash||"";Mn.stroke(r,n||o.color),vr.dashLine(r,l,i)};vr.lineGroupStyle=function(e,r,t,n){e.style("fill","none").each(function(a){var o=(((a||[])[0]||{}).trace||{}).line||{},i=r||o.width||0,l=n||o.dash||"";sn.select(this).call(Mn.stroke,t||o.color).call(vr.dashLine,l,i)})};vr.dashLine=function(e,r,t){t=+t||0,r=vr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};vr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function R8(e,r,t,n){var a=r.fillpattern,o=r.fillgradient,i=vr.getPatternAttr,l=a&&(i(a.shape,0,"")||i(a.path,0,""));if(l){var u=i(a.bgcolor,0,null),s=i(a.fgcolor,0,null),f=a.fgopacity,v=i(a.size,0,8),p=i(a.solidity,0,.3),b=r.uid;vr.pattern(e,"point",t,b,l,v,p,void 0,a.fillmode,u,s,f)}else if(o&&o.type!=="none"){var m=o.type,w="scatterfill-"+r.uid;if(n&&(w="legendfill-"+r.uid),!n&&(o.start!==void 0||o.stop!==void 0)){var M,y;m==="horizontal"?(M={x:o.start,y:0},y={x:o.stop,y:0}):m==="vertical"&&(M={x:0,y:o.start},y={x:0,y:o.stop}),M.x=r._xA.c2p(M.x===void 0?r._extremes.x.min[0].val:M.x,!0),M.y=r._yA.c2p(M.y===void 0?r._extremes.y.min[0].val:M.y,!0),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.max[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.max[0].val:y.y,!0),e.call(F8,t,w,"linear",o.colorscale,"fill",M,y,!0,!1)}else m==="horizontal"&&(m=m+"reversed"),e.call(vr.gradient,t,w,m,o.colorscale,"fill")}else r.fillcolor&&e.call(Mn.fill,r.fillcolor)}vr.singleFillStyle=function(e,r){var t=sn.select(e.node()),n=t.data(),a=((n[0]||[])[0]||{}).trace||{};R8(e,a,r,!1)};vr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(n){var a=sn.select(this);n[0].trace&&R8(a,n[0].trace,r,t)})};var _8=b8();vr.symbolNames=[];vr.symbolFuncs=[];vr.symbolBackOffs=[];vr.symbolNeedLines={};vr.symbolNoDot={};vr.symbolNoFill={};vr.symbolList=[];Object.keys(_8).forEach(function(e){var r=_8[e],t=r.n;vr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),vr.symbolNames[t]=e,vr.symbolFuncs[t]=r.f,vr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(vr.symbolNeedLines[t]=!0),r.noDot?vr.symbolNoDot[t]=!0:vr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(vr.symbolNoFill[t]=!0)});var rW=vr.symbolNames.length,tW="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";vr.symbolNumber=function(e){if(ql(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=vr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=rW||e>=400?0:Math.floor(Math.max(e,0))};function D8(e,r,t,n){var a=e%100;return vr.symbolFuncs[a](r,t,n)+(e>=200?tW:"")}var w8=GY("~f"),P8={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};vr.gradient=function(e,r,t,n,a,o){var i=P8[n];return F8(e,r,t,i.type,a,o,i.start,i.stop,!1,i.reversed)};function F8(e,r,t,n,a,o,i,l,u,s){var f=a.length,v;n==="linear"?v={node:"linearGradient",attrs:{x1:i.x,y1:i.y,x2:l.x,y2:l.y,gradientUnits:u?"userSpaceOnUse":"objectBoundingBox"},reversed:s}:n==="radial"&&(v={node:"radialGradient",reversed:s});for(var p=new Array(f),b=0;b=0&&e.i===void 0&&(e.i=o.i),r.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?i.opacity:e.mo),n.ms2mrc){var u;e.ms==="various"||i.size==="various"?u=3:u=n.ms2mrc(e.ms),e.mrc=u,n.selectedSizeFn&&(u=e.mrc=n.selectedSizeFn(e));var s=vr.symbolNumber(e.mx||i.symbol)||0;e.om=s%200>=100;var f=Bg(e,t),v=Og(e,t);r.attr("d",D8(s,u,f,v))}var p=!1,b,m,w;if(e.so)w=l.outlierwidth,m=l.outliercolor,b=i.outliercolor;else{var M=(l||{}).width;w=(e.mlw+1||M+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?m=e.mlcc=n.lineScale(e.mlc):pt.isArrayOrTypedArray(l.color)?m=Mn.defaultLine:m=l.color,pt.isArrayOrTypedArray(i.color)&&(b=Mn.defaultLine,p=!0),"mc"in e?b=e.mcc=n.markerScale(e.mc):b=i.color||i.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(b=n.selectedColorFn(e))}if(e.om)r.call(Mn.stroke,b).style({"stroke-width":(w||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:w)+"px");var y=i.gradient,k=e.mgt;k?p=!0:k=y&&y.type,pt.isArrayOrTypedArray(k)&&(k=k[0],P8[k]||(k=0));var S=i.pattern,x=vr.getPatternAttr,T=S&&(x(S.shape,e.i,"")||x(S.path,e.i,""));if(k&&k!=="none"){var d=e.mgc;d?p=!0:d=y.color;var _=t.uid;p&&(_+="-"+e.i),vr.gradient(r,a,_,k,[[0,d],[1,b]],"fill")}else if(T){var g=!1,c=S.fgcolor;!c&&o&&o.color&&(c=o.color,g=!0);var A=x(c,e.i,o&&o.color||null),h=x(S.bgcolor,e.i,null),R=S.fgopacity,E=x(S.size,e.i,8),D=x(S.solidity,e.i,.3);g=g||e.mcc||pt.isArrayOrTypedArray(S.shape)||pt.isArrayOrTypedArray(S.path)||pt.isArrayOrTypedArray(S.bgcolor)||pt.isArrayOrTypedArray(S.fgcolor)||pt.isArrayOrTypedArray(S.size)||pt.isArrayOrTypedArray(S.solidity);var N=t.uid;g&&(N+="-"+e.i),vr.pattern(r,"point",a,N,T,E,D,e.mcc,S.fillmode,h,A,R)}else pt.isArrayOrTypedArray(b)?Mn.fill(r,b[e.i]):Mn.fill(r,b);w&&Mn.stroke(r,m)}};vr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=vr.tryColorscale(t,""),r.lineScale=vr.tryColorscale(t,"line"),bv.traceIs(e,"symbols")&&(r.ms2mrc=JY.isBubble(e)?KY(e):function(){return(t.size||6)/2}),e.selectedpoints&&pt.extendFlat(r,vr.makeSelectedPointStyleFns(e)),r};vr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.marker||{},o=t.marker||{},i=n.marker||{},l=a.opacity,u=o.opacity,s=i.opacity,f=u!==void 0,v=s!==void 0;(pt.isArrayOrTypedArray(l)||f||v)&&(r.selectedOpacityFn=function(x){var T=x.mo===void 0?a.opacity:x.mo;return x.selected?f?u:T:v?s:L8*T});var p=a.color,b=o.color,m=i.color;(b||m)&&(r.selectedColorFn=function(x){var T=x.mcc||p;return x.selected?b||T:m||T});var w=a.size,M=o.size,y=i.size,k=M!==void 0,S=y!==void 0;return bv.traceIs(e,"symbols")&&(k||S)&&(r.selectedSizeFn=function(x){var T=x.mrc||w/2;return x.selected?k?M/2:T:S?y/2:T}),r};vr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.textfont||{},o=t.textfont||{},i=n.textfont||{},l=a.color,u=o.color,s=i.color;return r.selectedTextColorFn=function(f){var v=f.tc||l;return f.selected?u||v:s||(u?v:Mn.addOpacity(v,L8))},r};vr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=vr.makeSelectedPointStyleFns(r),n=r.marker||{},a=[];t.selectedOpacityFn&&a.push(function(o,i){o.style("opacity",t.selectedOpacityFn(i))}),t.selectedColorFn&&a.push(function(o,i){Mn.fill(o,t.selectedColorFn(i))}),t.selectedSizeFn&&a.push(function(o,i){var l=i.mx||n.symbol||0,u=t.selectedSizeFn(i);o.attr("d",D8(vr.symbolNumber(l),u,Bg(i,r),Og(i,r))),i.mrc2=u}),a.length&&e.each(function(o){for(var i=sn.select(this),l=0;l0?t:0}vr.textPointStyle=function(e,r,t){if(e.size()){var n;if(r.selectedpoints){var a=vr.makeSelectedTextStyleFns(r);n=a.selectedTextColorFn}var o=r.texttemplate,i=t._fullLayout;e.each(function(l){var u=sn.select(this),s=o?pt.extractOption(l,r,"txt","texttemplate"):pt.extractOption(l,r,"tx","text");if(!s&&s!==0){u.remove();return}if(o){var f=r._module.formatLabels,v=f?f(l,r,i):{},p={};QY(p,r,l.i);var b=r._meta||{};s=pt.texttemplateString(s,v,i._d3locale,p,l,b)}var m=l.tp||r.textposition,w=N8(l,r),M=n?n(l):l.tc||r.textfont.color;u.call(vr.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:w,color:M}).text(s).call(_v.convertToTspans,t).call(I8,m,w,l.mrc)})}};vr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=vr.makeSelectedTextStyleFns(r);e.each(function(n){var a=sn.select(this),o=t.selectedTextColorFn(n),i=n.tp||r.textposition,l=N8(n,r);Mn.fill(a,o);var u=bv.traceIs(r,"bar-like");I8(a,i,l,n.mrc2||n.mrc,u)})}};var M8=.5;vr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],n=[],a;for(a=1;a=u||x>=f&&x<=u)&&(T<=v&&T>=s||T>=v&&T<=s)&&(e=[x,T])}return e}vr.applyBackoff=O8;vr.makeTester=function(){var e=pt.ensureSingleById(sn.select("body"),"svg","js-plotly-tester",function(t){t.attr(WY.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=pt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});vr.tester=e,vr.testref=r};vr.savedBBoxes={};var Fg=0,iW=1e4;vr.bBox=function(e,r,t){t||(t=T8(e));var n;if(t){if(n=vr.savedBBoxes[t],n)return pt.extendFlat({},n)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(t=T8(a),t){var o=+a.getAttribute("x")||0,i=+a.getAttribute("y")||0,l=a.getAttribute("transform");if(!l){var u=vr.bBox(a,!1,t);return o&&(u.left+=o,u.right+=o),i&&(u.top+=i,u.bottom+=i),u}if(t+="~"+o+"~"+i+"~"+l,n=vr.savedBBoxes[t],n)return pt.extendFlat({},n)}}var s,f;r?s=e:(f=vr.tester.node(),s=e.cloneNode(!0),f.appendChild(s)),sn.select(s).attr("transform",null).call(_v.positionText,0,0);var v=s.getBoundingClientRect(),p=vr.testref.node().getBoundingClientRect();r||f.removeChild(s);var b={height:v.height,width:v.width,left:v.left-p.left,top:v.top-p.top,right:v.right-p.left,bottom:v.bottom-p.top};return Fg>=iW&&(vr.savedBBoxes={},Fg=0),t&&(vr.savedBBoxes[t]=b),Fg++,pt.extendFlat({},b)};function T8(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}vr.setClipUrl=function(e,r,t){e.attr("clip-path",qg(r,t))};function qg(e,r){if(!e)return null;var t=r._context,n=t._exportedPlot?"":t._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}vr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(o,i,l){return[i,l].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}};vr.setTranslate=function(e,r,t){var n=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return r=r||0,t=t||0,i=i.replace(n,"").trim(),i+=kf(r,t),i=i.trim(),e[o]("transform",i),i};vr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(o,i,l){return[i,l].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}};vr.setScale=function(e,r,t){var n=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return r=r||1,t=t||1,i=i.replace(n,"").trim(),i+="scale("+r+","+t+")",i=i.trim(),e[o]("transform",i),i};var oW=/\s*sc.*/;vr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var n=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(oW,"");a+=n,a=a.trim(),this.setAttribute("transform",a)})}};var lW=/translate\([^)]*\)\s*$/;vr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var n,a=sn.select(this),o=a.select("text");if(o.node()){var i=parseFloat(o.attr("x")||0),l=parseFloat(o.attr("y")||0),u=(a.attr("transform")||"").match(lW);r===1&&t===1?n=[]:n=[kf(i,l),"scale("+r+","+t+")",kf(-i,-l)],u&&n.push(u),a.attr("transform",n.join(""))}})};function Og(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}vr.getMarkerStandoff=Og;var Af=Math.atan2,Il=Math.cos,Js=Math.sin;function A8(e,r){var t=r[0],n=r[1];return[t*Il(e)-n*Js(e),t*Js(e)+n*Il(e)]}var k8,S8,C8,E8,Ig,Ng;function Bg(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||pt.isArrayOrTypedArray(t))&&(t=0));var n,a,o=r.marker.angleref;if(o==="previous"||o==="north"){if(r._geo){var i=r._geo.project(e.lonlat);n=i[0],a=i[1]}else{var l=r._xA,u=r._yA;if(l&&u)n=l.c2p(e.x),a=u.c2p(e.y);else return 90}if(r._geo){var s=e.lonlat[0],f=e.lonlat[1],v=r._geo.project([s,f+1e-5]),p=r._geo.project([s+1e-5,f]),b=Af(p[1]-a,p[0]-n),m=Af(v[1]-a,v[0]-n),w;if(o==="north")w=t/180*Math.PI;else if(o==="previous"){var M=s/180*Math.PI,y=f/180*Math.PI,k=k8/180*Math.PI,S=S8/180*Math.PI,x=k-M,T=Il(S)*Js(x),d=Js(S)*Il(y)-Il(S)*Js(y)*Il(x);w=-Af(T,d)-Math.PI,k8=s,S8=f}var _=A8(b,[Il(w),0]),g=A8(m,[Js(w),0]);t=Af(_[1]+g[1],_[0]+g[0])/Math.PI*180,o==="previous"&&!(Ng===r.uid&&e.i===Ig+1)&&(t=null)}if(o==="previous"&&!r._geo)if(Ng===r.uid&&e.i===Ig+1&&ql(n)&&ql(a)){var c=n-C8,A=a-E8,h=r.line&&r.line.shape||"",R=h.slice(h.length-1);R==="h"&&(A=0),R==="v"&&(c=0),t+=Af(A,c)/Math.PI*180+90}else t=null}return C8=n,E8=a,Ig=e.i,Ng=r.uid,t}vr.getMarkerAngle=Bg});var Sf=pe((xce,G8)=>{"use strict";var Ks=it(),sW=rt(),uW=ln(),Ug=Er(),Ol=ir(),U8=Ol.strTranslate,wv=yt(),Mv=Zr(),Qs=Yn(),H8=Dc(),fW=qn().OPPOSITE_SIDE,V8=/ [XY][0-9]* /,Hg=1.6,Vg=1.6;function cW(e,r,t){var n=e._fullLayout,a=t.propContainer,o=t.propName,i=t.placeholder,l=t.traceIndex,u=t.avoid||{},s=t.attributes,f=t.transform,v=t.containerGroup,p=1,b=a.title,m=(b&&b.text?b.text:"").trim(),w=!1,M=b&&b.font?b.font:{},y=M.family,k=M.size,S=M.color,x=M.weight,T=M.style,d=M.variant,_=M.textcase,g=M.lineposition,c=M.shadow,A=t.subtitlePropName,h=!!A,R=t.subtitlePlaceholder,E=(a.title||{}).subtitle||{text:"",font:{}},D=E.text.trim(),N=!1,I=1,F=E.font,L=F.family,P=F.size,O=F.color,U=F.weight,X=F.style,$=F.variant,j=F.textcase,Y=F.lineposition,q=F.shadow,J;o==="title.text"?J="titleText":o.indexOf("axis")!==-1?J="axisTitleText":o.indexOf(!0)&&(J="colorbarTitleText");var ae=e._context.edits[J];function Q(ke,Fe){return ke===void 0||Fe===void 0?!1:ke.replace(V8," % ")===Fe.replace(V8," % ")}m===""?p=0:Q(m,i)&&(ae||(m=""),p=.2,w=!0),h&&(D===""?I=0:Q(D,R)&&(ae||(D=""),I=.2,N=!0)),t._meta?m=Ol.templateString(m,t._meta):n._meta&&(m=Ol.templateString(m,n._meta));var oe=m||D||ae,ee;v||(v=Ol.ensureSingle(n._infolayer,"g","g-"+r),ee=n._hColorbarMoveTitle);var V=v.selectAll("text."+r).data(oe?[0]:[]);V.enter().append("text"),V.text(m).attr("class",r),V.exit().remove();var re=null,H=r+"-subtitle",te=D||ae;if(h&&te&&(re=v.selectAll("text."+H).data(te?[0]:[]),re.enter().append("text"),re.text(D).attr("class",H),re.exit().remove()),!oe)return v;function ue(ke,Fe){Ol.syncOrAsync([he,Ce],{title:ke,subtitle:Fe})}function he(ke){var Fe=ke.title,Ee=ke.subtitle,ze;!f&&ee&&(f={}),f?(ze="",f.rotate&&(ze+="rotate("+[f.rotate,s.x,s.y]+")"),(f.offset||ee)&&(ze+=U8(0,(f.offset||0)-(ee||0)))):ze=null,Fe.attr("transform",ze);function Be(me){if(me){var de=Ks.select(me.node().parentNode).select("."+H);if(!de.empty()){var be=me.node().getBBox();if(be.height){var Ae=be.y+be.height+Hg*P;de.attr("y",Ae)}}}}if(Fe.style("opacity",p*Mv.opacity(S)).call(wv.font,{color:Mv.rgb(S),size:Ks.round(k,2),family:y,weight:x,style:T,variant:d,textcase:_,shadow:c,lineposition:g}).attr(s).call(Qs.convertToTspans,e,Be),Ee){var ge=v.select("."+r+"-math-group"),Me=Fe.node().getBBox(),ce=ge.node()?ge.node().getBBox():void 0,ye=ce?ce.y+ce.height+Hg*P:Me.y+Me.height+Vg*P,Le=Ol.extendFlat({},s,{y:ye});Ee.attr("transform",ze),Ee.style("opacity",I*Mv.opacity(O)).call(wv.font,{color:Mv.rgb(O),size:Ks.round(P,2),family:L,weight:U,style:X,variant:$,textcase:j,shadow:q,lineposition:Y}).attr(Le).call(Qs.convertToTspans,e)}return uW.previousPromises(e)}function Ce(ke){var Fe=ke.title,Ee=Ks.select(Fe.node().parentNode);if(u&&u.selection&&u.side&&m){Ee.attr("transform",null);var ze=fW[u.side],Be=u.side==="left"||u.side==="top"?-1:1,ge=sW(u.pad)?u.pad:2,Me=wv.bBox(Ee.node()),ce={t:0,b:0,l:0,r:0},ye=e._fullLayout._reservedMargin;for(var Le in ye)for(var me in ye[Le]){var de=ye[Le][me];ce[me]=Math.max(ce[me],de)}var be={left:ce.l,top:ce.t,right:n.width-ce.r,bottom:n.height-ce.b},Ae=u.maxShift||Be*(be[u.side]-Me[u.side]),qe=0;if(Ae<0)qe=Ae;else{var Pe=u.offsetLeft||0,Ze=u.offsetTop||0;Me.left-=Pe,Me.right-=Pe,Me.top-=Ze,Me.bottom-=Ze,u.selection.each(function(){var Ge=wv.bBox(this);Ol.bBoxIntersect(Me,Ge,ge)&&(qe=Math.max(qe,Be*(Ge[u.side]-Me[ze])+ge))}),qe=Math.min(Ae,qe),a._titleScoot=Math.abs(qe)}if(qe>0||Ae<0){var Ye={left:[-qe,0],right:[qe,0],top:[0,-qe],bottom:[0,qe]}[u.side];Ee.attr("transform",U8(Ye[0],Ye[1]))}}}V.call(ue,re);function Se(ke,Fe){ke.text(Fe).on("mouseover.opacity",function(){Ks.select(this).transition().duration(H8.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Ks.select(this).transition().duration(H8.HIDE_PLACEHOLDER).style("opacity",0)})}if(ae&&(m?V.on(".opacity",null):(Se(V,i),w=!0),V.call(Qs.makeEditable,{gd:e}).on("edit",function(ke){l!==void 0?Ug.call("_guiRestyle",e,o,ke,l):Ug.call("_guiRelayout",e,o,ke)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ue)}).on("input",function(ke){this.text(ke||" ").call(Qs.positionText,s.x,s.y)}),h)){if(h&&!m){var ve=V.node().getBBox(),Te=ve.y+ve.height+Vg*P;re.attr("y",Te)}D?re.on(".opacity",null):(Se(re,R),N=!0),re.call(Qs.makeEditable,{gd:e}).on("edit",function(ke){Ug.call("_guiRelayout",e,"title.subtitle.text",ke)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ue)}).on("input",function(ke){this.text(ke||" ").call(Qs.positionText,re.attr("x"),re.attr("y"))})}return V.classed("js-placeholder",w),re&&re.classed("js-placeholder",N),v}G8.exports={draw:cW,SUBTITLE_PADDING_EM:Vg,SUBTITLE_PADDING_MATHJAX_EM:Hg}});var Rv=pe((bce,J8)=>{"use strict";var vW=it(),hW=ks().utcFormat,mt=ir(),dW=mt.numberFormat,Ri=rt(),Oo=mt.cleanNumber,pW=mt.ms2DateTime,Y8=mt.dateTime2ms,Di=mt.ensureNumber,W8=mt.isArrayOrTypedArray,Bo=nn(),Tv=Bo.FP_SAFE,ri=Bo.BADNUM,gW=Bo.LOG_CLIP,yW=Bo.ONEWEEK,Av=Bo.ONEDAY,kv=Bo.ONEHOUR,X8=Bo.ONEMIN,Z8=Bo.ONESEC,Sv=on(),Lv=wn(),Cv=Lv.HOUR_PATTERN,Ev=Lv.WEEKDAY_PATTERN;function Cf(e){return Math.pow(10,e)}function Gg(e){return e!=null}J8.exports=function(r,t){t=t||{};var n=r._id||"x",a=n.charAt(0);function o(x,T){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&T&&r.range&&r.range.length===2){var d=r.range[0],_=r.range[1];return .5*(d+_-2*gW*Math.abs(d-_))}else return ri}function i(x,T,d,_){if((_||{}).msUTC&&Ri(x))return+x;var g=Y8(x,d||r.calendar);if(g===ri)if(Ri(x)){x=+x;var c=Math.floor(mt.mod(x+.05,1)*10),A=Math.round(x-c/10);g=Y8(new Date(A))+c/10}else return ri;return g}function l(x,T,d){return pW(x,T,d||r.calendar)}function u(x){return r._categories[Math.round(x)]}function s(x){if(Gg(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var T=r._categories.length-1;return r._categoriesMap[x]=T,T}return ri}function f(x,T){for(var d=new Array(T),_=0;_r.range[1]&&(d=!d);for(var _=d?-1:1,g=_*x,c=0,A=0;AR)c=A+1;else{c=g<(h+R)/2?A:A+1;break}}var E=r._B[c]||0;return isFinite(E)?m(x,r._m2,E):0},y=function(x){var T=r._rangebreaks.length;if(!T)return w(x,r._m,r._b);for(var d=0,_=0;_r._rangebreaks[_].pmax&&(d=_+1);return w(x,r._m2,r._B[d])}}r.c2l=r.type==="log"?o:Di,r.l2c=r.type==="log"?Cf:Di,r.l2p=M,r.p2l=y,r.c2p=r.type==="log"?function(x,T){return M(o(x,T))}:M,r.p2c=r.type==="log"?function(x){return Cf(y(x))}:y,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Oo,r.c2d=r.c2r=r.l2d=r.l2r=Di,r.d2p=r.r2p=function(x){return r.l2p(Oo(x))},r.p2d=r.p2r=y,r.cleanPos=Di):r.type==="log"?(r.d2r=r.d2l=function(x,T){return o(Oo(x),T)},r.r2d=r.r2c=function(x){return Cf(Oo(x))},r.d2c=r.r2l=Oo,r.c2d=r.l2r=Di,r.c2r=o,r.l2d=Cf,r.d2p=function(x,T){return r.l2p(r.d2r(x,T))},r.p2d=function(x){return Cf(y(x))},r.r2p=function(x){return r.l2p(Oo(x))},r.p2r=y,r.cleanPos=Di):r.type==="date"?(r.d2r=r.r2d=mt.identity,r.d2c=r.r2c=r.d2l=r.r2l=i,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(x,T,d){return r.l2p(i(x,0,d))},r.p2d=r.p2r=function(x,T,d){return l(y(x),T,d)},r.cleanPos=function(x){return mt.cleanDate(x,ri,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=s,r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=p,r.r2c=function(x){var T=b(x);return T!==void 0?T:r.fraction2r(.5)},r.l2r=r.c2r=Di,r.r2l=b,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return u(y(x))},r.r2p=r.d2p,r.p2r=y,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:Di(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=p,r.r2c=function(x){var T=p(x);return T!==void 0?T:r.fraction2r(.5)},r.r2c_just_indices=v,r.l2r=r.c2r=Di,r.r2l=p,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return u(y(x))},r.r2p=r.d2p,r.p2r=y,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:Di(x)},r.setupMultiCategory=function(x){var T=r._traceIndices,d,_,g=r._matchGroup;if(g&&r._categories.length===0){for(var c in g)if(c!==n){var A=t[Sv.id2name(c)];T=T.concat(A._traceIndices)}}var h=[[0,{}],[0,{}]],R=[];for(d=0;dA[1]&&(_[c?0:1]=d),_[0]===_[1]){var h=r.l2r(T),R=r.l2r(d);if(T!==void 0){var E=h+1;d!==void 0&&(E=Math.min(E,R)),_[c?1:0]=E}if(d!==void 0){var D=R+1;T!==void 0&&(D=Math.max(D,h)),_[c?0:1]=D}}}},r.cleanRange=function(x,T){r._cleanRange(x,T),r.limitRange(x)},r._cleanRange=function(x,T){T||(T={}),x||(x="range");var d=mt.nestedProperty(r,x).get(),_,g;if(r.type==="date"?g=mt.dfltRange(r.calendar):a==="y"?g=Lv.DFLTRANGEY:r._name==="realaxis"?g=[0,1]:g=T.dfltRange||Lv.DFLTRANGEX,g=g.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(g[0]=0),!d||d.length!==2){mt.nestedProperty(r,x).set(g);return}var c=d[0]===null,A=d[1]===null;for(r.type==="date"&&!r.autorange&&(d[0]=mt.cleanDate(d[0],ri,r.calendar),d[1]=mt.cleanDate(d[1],ri,r.calendar)),_=0;_<2;_++)if(r.type==="date"){if(!mt.isDateTime(d[_],r.calendar)){r[x]=g;break}if(r.r2l(d[0])===r.r2l(d[1])){var h=mt.constrain(r.r2l(d[0]),mt.MIN_MS+1e3,mt.MAX_MS-1e3);d[0]=r.l2r(h-1e3),d[1]=r.l2r(h+1e3);break}}else{if(!Ri(d[_]))if(!(c||A)&&Ri(d[1-_]))d[_]=d[1-_]*(_?10:.1);else{r[x]=g;break}if(d[_]<-Tv?d[_]=-Tv:d[_]>Tv&&(d[_]=Tv),d[0]===d[1]){var R=Math.max(1,Math.abs(d[0]*1e-6));d[0]-=R,d[1]+=R}}},r.setScale=function(x){var T=t._size;if(r.overlaying){var d=Sv.getFromId({_fullLayout:t},r.overlaying);r.domain=d.domain}var _=x&&r._r?"_r":"range",g=r.calendar;r.cleanRange(_);var c=r.r2l(r[_][0],g),A=r.r2l(r[_][1],g),h=a==="y";if(h?(r._offset=T.t+(1-r.domain[1])*T.h,r._length=T.h*(r.domain[1]-r.domain[0]),r._m=r._length/(c-A),r._b=-r._m*A):(r._offset=T.l+r.domain[0]*T.w,r._length=T.w*(r.domain[1]-r.domain[0]),r._m=r._length/(A-c),r._b=-r._m*c),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var R,E;if(r._rangebreaks=r.locateBreaks(Math.min(c,A),Math.max(c,A)),r._rangebreaks.length){for(R=0;RA&&(D=!D),D&&r._rangebreaks.reverse();var N=D?-1:1;for(r._m2=N*r._length/(Math.abs(A-c)-r._lBreaks),r._B.push(-r._m2*(h?A:c)),R=0;Rg&&(g+=7,c<_&&(c+=7));break;case Cv:A=new Date(x);var D=A.getUTCHours(),N=A.getUTCMinutes(),I=A.getUTCSeconds(),F=A.getUTCMilliseconds();c=D+(N/60+I/3600+F/36e5),_>g&&(g+=24,c<_&&(c+=24));break;case"":c=x;break}if(c>=_&&c=_&&x=q.min&&(Xq.max&&(q.max=$),j=!1)}j&&A.push({min:X,max:$})}};for(d=0;d{"use strict";var K8=rt(),Yg=ir(),mW=nn().BADNUM,Dv=Yg.isArrayOrTypedArray,xW=Yg.isDateTime,bW=Yg.cleanNumber,Q8=Math.round;j8.exports=function(r,t,n){var a=r,o=n.noMultiCategory;if(Dv(a)&&!a.length)return"-";if(!o&&AW(a))return"multicategory";if(o&&Array.isArray(a[0])){for(var i=[],l=0;lo*2}function $8(e){return Math.max(1,(e-1)/1e3)}function TW(e,r){for(var t=e.length,n=$8(t),a=0,o=0,i={},l=0;la*2}function AW(e){return Dv(e[0])&&Dv(e[1])}});var $s=pe((wce,lM)=>{"use strict";var kW=it(),nM=rt(),Uo=ir(),Pv=nn().FP_SAFE,SW=Er(),CW=yt(),aM=on(),EW=aM.getFromId,LW=aM.isLinked;lM.exports={applyAutorangeOptions:oM,getAutoRange:Xg,makePadFn:Zg,doAutoRange:DW,findExtremes:PW,concatExtremes:Qg};function Xg(e,r){var t,n,a=[],o=e._fullLayout,i=Zg(o,r,0),l=Zg(o,r,1),u=Qg(e,r),s=u.min,f=u.max;if(s.length===0||f.length===0)return Uo.simpleMap(r.range,r.r2l);var v=s[0].val,p=f[0].val;for(t=1;t0&&(A=S-i(d)-l(_),A>x?h/A>T&&(g=d,c=_,T=h/A):h/S>T&&(g={val:d.val,nopad:1},c={val:_.val,nopad:1},T=h/S));function R(F,L){return Math.max(F,l(L))}if(v===p){var E=v-1,D=v+1;if(y)if(v===0)a=[0,1];else{var N=(v>0?f:s).reduce(R,0),I=v/(1-Math.min(.5,N/S));a=v>0?[0,I]:[I,0]}else k?a=[Math.max(0,E),Math.max(1,D)]:a=[E,D]}else y?(g.val>=0&&(g={val:0,nopad:1}),c.val<=0&&(c={val:0,nopad:1})):k&&(g.val-T*i(g)<0&&(g={val:0,nopad:1}),c.val<=0&&(c={val:1,nopad:1})),T=(c.val-g.val-eM(r,d.val,_.val))/(S-i(g)-l(c)),a=[g.val-T*i(g),c.val+T*l(c)];return a=oM(a,r),r.limitRange&&r.limitRange(),m&&a.reverse(),Uo.simpleMap(a,r.l2r||Number)}function eM(e,r,t){var n=0;if(e.rangebreaks)for(var a=e.locateBreaks(r,t),o=0;o0?t.ppadplus:t.ppadminus)||t.ppad||0),d=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),_=x(t.vpadplus||t.vpad),g=x(t.vpadminus||t.vpad);if(!s){if(k=1/0,S=-1/0,u)for(v=0;v0&&(k=p),p>S&&p-Pv&&(k=p),p>S&&p=h;v--)A(v);return{min:n,max:a,opts:t}}function Jg(e,r,t,n){iM(e,r,t,n,FW)}function Kg(e,r,t,n){iM(e,r,t,n,IW)}function iM(e,r,t,n,a){for(var o=n.tozero,i=n.extrapad,l=!0,u=0;u=t&&(s.extrapad||!i)){l=!1;break}else a(r,s.val)&&s.pad<=t&&(i||!s.extrapad)&&(e.splice(u,1),u--)}if(l){var f=o&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:i})}}function tM(e){return nM(e)&&Math.abs(e)=r}function NW(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&Fv(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&Fv(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function zW(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&Fv(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&Fv(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function Fv(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=u&&(o=u,t=u),i<=u&&(i=u,n=u)}}return t=NW(t,r),n=zW(n,r),[t,n]}});var St=pe((Mce,EM)=>{"use strict";var Da=it(),Wt=rt(),js=ln(),Lf=Er(),Lr=ir(),eu=Lr.strTranslate,Bl=Yn(),qW=Sf(),Rf=Zr(),da=yt(),OW=Ra(),sM=dg(),Tn=nn(),BW=Tn.ONEMAXYEAR,zv=Tn.ONEAVGYEAR,qv=Tn.ONEMINYEAR,UW=Tn.ONEMAXQUARTER,r2=Tn.ONEAVGQUARTER,Ov=Tn.ONEMINQUARTER,HW=Tn.ONEMAXMONTH,ru=Tn.ONEAVGMONTH,Bv=Tn.ONEMINMONTH,pa=Tn.ONEWEEK,On=Tn.ONEDAY,Ho=On/2,Fi=Tn.ONEHOUR,Df=Tn.ONEMIN,Uv=Tn.ONESEC,VW=Tn.ONEMILLI,GW=Tn.ONEMICROSEC,Ul=Tn.MINUS_SIGN,Gv=Tn.BADNUM,t2={K:"zeroline"},n2={K:"gridline",L:"path"},a2={K:"minor-gridline",L:"path"},xM={K:"tick",L:"path"},uM={K:"tick",L:"text"},fM={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Yv=qn(),Ef=Yv.MID_SHIFT,Hl=Yv.CAP_SHIFT,Pf=Yv.LINE_SPACING,YW=Yv.OPPOSITE_SIDE,Hv=3,lr=EM.exports={};lr.setConvert=Rv();var WW=Wg(),no=on(),XW=no.idSort,ZW=no.isLinked;lr.id2name=no.id2name;lr.name2id=no.name2id;lr.cleanId=no.cleanId;lr.list=no.list;lr.listIds=no.listIds;lr.getFromId=no.getFromId;lr.getFromTrace=no.getFromTrace;var bM=$s();lr.getAutoRange=bM.getAutoRange;lr.findExtremes=bM.findExtremes;var JW=1e-4;function s2(e){var r=(e[1]-e[0])*JW;return[e[0]-r,e[1]+r]}lr.coerceRef=function(e,r,t,n,a,o){var i=n.charAt(n.length-1),l=t._fullLayout._subplots[i+"axis"],u=n+"ref",s={};return a||(a=l[0]||(typeof o=="string"?o:o[0])),o||(o=a),l=l.concat(l.map(function(f){return f+" domain"})),s[u]={valType:"enumerated",values:l.concat(o?typeof o=="string"?[o]:o:[]),dflt:a},Lr.coerce(e,r,s,u)};lr.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};lr.coercePosition=function(e,r,t,n,a,o){var i,l,u=lr.getRefType(n);if(u!=="range")i=Lr.ensureNumber,l=t(a,o);else{var s=lr.getFromId(r,n);o=s.fraction2r(o),l=t(a,o),i=s.cleanPos}e[a]=i(l)};lr.cleanPosition=function(e,r,t){var n=t==="paper"||t==="pixel"?Lr.ensureNumber:lr.getFromId(r,t).cleanPos;return n(e)};lr.redrawComponents=function(e,r){r=r||lr.listIds(e);var t=e._fullLayout;function n(a,o,i,l){for(var u=Lf.getComponentMethod(a,o),s={},f=0;f2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};lr.saveRangeInitial=function(e,r){for(var t=lr.list(e,"",!0),n=!1,a=0;av*.3||s(n)||s(a))){var p=t.dtick/2;e+=e+pi){var l=Number(t.substr(1));o.exactYears>i&&l%12===0?e=lr.tickIncrement(e,"M6","reverse")+On*1.5:o.exactMonths>i?e=lr.tickIncrement(e,"M1","reverse")+On*15.5:e-=Ho;var u=lr.tickIncrement(e,t);if(u<=n)return u}return e}lr.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var n=r.dtick&&Wt(r._tmin),a;if(n){var o=lr.tickIncrement(r._tmin,r.dtick,!0);a=[r._tmin,o*.99+r._tmin*.01]}else{var i=Lr.simpleMap(r.range,r.r2l);a=[i[0],.8*i[0]+.2*i[1]]}if(e.range=Lr.simpleMap(a,r.l2r),e._isMinor=!0,lr.prepTicks(e,t),n){var l=Wt(r.dtick),u=Wt(e.dtick),s=l?r.dtick:+r.dtick.substring(1),f=u?e.dtick:+e.dtick.substring(1);l&&u?$g(s,f)?s===2*pa&&f===2*On&&(e.dtick=pa):s===2*pa&&f===3*On?e.dtick=pa:s===pa&&!(r._input.minor||{}).nticks?e.dtick=On:hM(s/f,2.5)?e.dtick=s/2:e.dtick=s:String(r.dtick).charAt(0)==="M"?u?e.dtick="M1":$g(s,f)?s>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?$g(s,f)||(e.dtick=hM(s/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function $g(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function hM(e,r){return Math.abs(e/r-1)<.001}lr.prepTicks=function(e,r){var t=Lr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,a;n||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?Lr.bigFont(e.tickfont.size||12):15,n=e._length/a):(a=e._id.charAt(0)==="y"?40:80,n=Lr.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(t[1]-t[0])/n,lr.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(o=n-1,i=n):(o=n,i=n);var l=e[o].value,u=e[i].value,s=Math.abs(u-l),f=t||s,v=0;f>=qv?s>=qv&&s<=BW?v=s:v=zv:t===r2&&f>=Ov?s>=Ov&&s<=UW?v=s:v=r2:f>=Bv?s>=Bv&&s<=HW?v=s:v=ru:t===pa&&f>=pa?v=pa:f>=On?v=On:t===Ho&&f>=Ho?v=Ho:t===Fi&&f>=Fi&&(v=Fi);var p;v>=s&&(v=s,p=!0);var b=a+v;if(r.rangebreaks&&v>0){for(var m=84,w=0,M=0;Mpa&&(v=s)}(v>0||n===0)&&(e[n].periodX=a+v/2)}}lr.calcTicks=function(r,t){for(var n=r.type,a=r.calendar,o=r.ticklabelstep,i=r.ticklabelmode==="period",l=r.range[0]>r.range[1],u=!r.ticklabelindex||Lr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],s=Lr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=s[1]=(S?0:1);x--){var T=!x;x?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var d=x?r:Lr.extendFlat({},r,r.minor);if(T?lr.prepMinorTicks(d,r,t):lr.prepTicks(d,t),d.tickmode==="array"){x?(M=[],m=dM(r,!T)):(y=[],w=dM(r,!T));continue}if(d.tickmode==="sync"){M=[],m=rX(r);continue}var _=s2(s),g=_[0],c=_[1],A=Wt(d.dtick),h=n==="log"&&!(A||d.dtick.charAt(0)==="L"),R=lr.tickFirst(d,t);if(x){if(r._tmin=R,R=c:D<=c;D=lr.tickIncrement(D,F,f,a)){if(x&&N++,d.rangebreaks&&!f){if(D=p)break}if(M.length>b||D===E)break;E=D;var L={value:D};x?(h&&D!==(D|0)&&(L.simpleLabel=!0),o>1&&N%o&&(L.skipLabel=!0),M.push(L)):(L.minor=!0,y.push(L))}}if(!y||y.length<2)u=!1;else{var P=(y[1].value-y[0].value)*(l?-1:1);AX(P,r.tickformat)||(u=!1)}if(!u)k=M;else{var O=M.concat(y);i&&M.length&&(O=O.slice(1)),O=O.sort(function(Te,ke){return Te.value-ke.value}).filter(function(Te,ke,Fe){return ke===0||Te.value!==Fe[ke-1].value});var U=O.map(function(Te,ke){return Te.minor===void 0&&!Te.skipLabel?ke:null}).filter(function(Te){return Te!==null});U.forEach(function(Te){u.map(function(ke){var Fe=Te+ke;Fe>=0&&Fe-1;oe--){if(M[oe].drop){M.splice(oe,1);continue}M[oe].value=e2(M[oe].value,r);var H=r.c2p(M[oe].value);(ee?re>H-V:rep||Eep&&(Fe.periodX=p),Eea&&pzv)r/=zv,n=a(10),e.dtick="M"+12*Pi(r,n,Iv);else if(o>ru)r/=ru,e.dtick="M"+Pi(r,1,pM);else if(o>On){if(e.dtick=Pi(r,On,e._hasDayOfWeekBreaks?[1,2,7,14]:tX),!t){var i=lr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(i)?e.tick0=Lr.dateTick0(e.calendar,2):e.tick0=Lr.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else o>Fi?e.dtick=Pi(r,Fi,pM):o>Df?e.dtick=Pi(r,Df,gM):o>Uv?e.dtick=Pi(r,Uv,gM):(n=a(10),e.dtick=Pi(r,n,Iv))}else if(e.type==="log"){e.tick0=0;var u=Lr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(u[1]-u[0])<1){var s=1.5*Math.abs((u[1]-u[0])/r);r=Math.abs(Math.pow(10,u[1])-Math.pow(10,u[0]))/s,n=a(10),e.dtick="L"+Pi(r,n,Iv)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):c2(e)?(e.tick0=0,n=1,e.dtick=Pi(r,n,nX)):(e.tick0=0,n=a(10),e.dtick=Pi(r,n,Iv));if(e.dtick===0&&(e.dtick=1),!Wt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function TM(e){var r=e.dtick;if(e._tickexponent=0,!Wt(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),n=e.l2r(t).replace(/(^-|i)/g,""),a=n.length;if(String(r).charAt(0)==="M")a>10||n.substr(5)!=="01-01"?e._tickround="d":e._tickround=+r.substr(1)%12===0?"y":"m";else if(r>=On&&a<=10||r>=On*15)e._tickround="d";else if(r>=Df&&a<=16||r>=Fi)e._tickround="M";else if(r>=Uv&&a<=19||r>=Df)e._tickround="S";else{var o=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(a,o)-20,e._tickround<0&&(e._tickround=4)}}else if(Wt(r)||r.charAt(0)==="L"){var i=e.range.map(e.r2d||Number);Wt(r)||(r=Number(r.substr(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(i[0]),Math.abs(i[1])),u=Math.floor(Math.log(l)/Math.LN10+.01),s=e.minexponent===void 0?3:e.minexponent;Math.abs(u)>s&&(Vv(e.exponentformat)&&!u2(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}lr.tickIncrement=function(e,r,t,n){var a=t?-1:1;if(Wt(r))return Lr.increment(e,a*r);var o=r.charAt(0),i=a*Number(r.substr(1));if(o==="M")return Lr.incrementMonth(e,i,n);if(o==="L")return Math.log(Math.pow(10,e)+i)/Math.LN10;if(o==="D"){var l=r==="D2"?MM:wM,u=e+a*.01,s=Lr.roundUp(Lr.mod(u,1),l,t);return Math.floor(u)+Math.log(Da.round(Math.pow(10,s),1))/Math.LN10}throw"unrecognized dtick "+String(r)};lr.tickFirst=function(e,r){var t=e.r2l||Number,n=Lr.simpleMap(e.range,t,void 0,void 0,r),a=n[1]=0&&y<=e._length?M:null};if(o&&Lr.isArrayOrTypedArray(e.ticktext)){var v=Lr.simpleMap(e.range,e.r2l),p=(Math.abs(v[1]-v[0])-(e._lBreaks||0))/1e4;for(s=0;s"+l;else{var s=If(e),f=e._trueSide||e.side;(!s&&f==="top"||s&&f==="bottom")&&(i+="
")}r.text=i}function iX(e,r,t,n,a){var o=e.dtick,i=r.x,l=e.tickformat,u=typeof o=="string"&&o.charAt(0);if(a==="never"&&(a=""),n&&u!=="L"&&(o="L3",u="L"),l||u==="L")r.text=Ff(Math.pow(10,i),e,a,n);else if(Wt(o)||u==="D"&&Lr.mod(i+.01,1)<.1){var s=Math.round(i),f=Math.abs(s),v=e.exponentformat;v==="power"||Vv(v)&&u2(s)?(s===0?r.text=1:s===1?r.text="10":r.text="10"+(s>1?"":Ul)+f+"",r.fontSize*=1.25):(v==="e"||v==="E")&&f>2?r.text="1"+v+(s>0?"+":Ul)+f:(r.text=Ff(Math.pow(10,i),e,"","fakehover"),o==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(u==="D")r.text=String(Math.round(Math.pow(10,Lr.mod(i,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(o);if(e.dtick==="D1"){var p=String(r.text).charAt(0);(p==="0"||p==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(i<0?.5:.25)))}}function oX(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function lX(e,r,t){var n=Math.round(r.x),a=e._categories[n]||[],o=a[1]===void 0?"":String(a[1]),i=a[0]===void 0?"":String(a[0]);t?r.text=i+" - "+o:(r.text=o,r.text2=i)}function sX(e,r,t,n,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(a="hide"),r.text=Ff(r.x,e,a,n)}function uX(e,r,t,n,a){if(e.thetaunit==="radians"&&!t){var o=r.x/180;if(o===0)r.text="0";else{var i=fX(o);if(i[1]>=100)r.text=Ff(Lr.deg2rad(r.x),e,a,n);else{var l=r.x<0;i[1]===1?i[0]===1?r.text="\u03C0":r.text=i[0]+"\u03C0":r.text=["",i[0],"","\u2044","",i[1],"","\u03C0"].join(""),l&&(r.text=Ul+r.text)}}}else r.text=Ff(r.x,e,a,n)}function fX(e){function r(l,u){return Math.abs(l-u)<=1e-6}function t(l,u){return r(u,0)?l:t(u,l%u)}function n(l){for(var u=1;!r(Math.round(l*u)/u,l);)u*=10;return u}var a=n(e),o=e*a,i=Math.abs(t(o,a));return[Math.round(o/i),Math.round(a/i)]}var cX=["f","p","n","\u03BC","m","","k","M","G","T"];function Vv(e){return e==="SI"||e==="B"}function u2(e){return e>14||e<-15}function Ff(e,r,t,n){var a=e<0,o=r._tickround,i=t||r.exponentformat||"B",l=r._tickexponent,u=lr.getTickFormat(r),s=r.separatethousands;if(n){var f={exponentformat:i,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Wt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};TM(f),o=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(u=r.hoverformat)}if(u)return r._numFormat(u)(e).replace(/-/g,Ul);var v=Math.pow(10,-o)/2;if(i==="none"&&(l=0),e=Math.abs(e),e"+m+"":i==="B"&&l===9?e+="B":Vv(i)&&(e+=cX[l/3+5])}return a?Ul+e:e}lr.getTickFormat=function(e){var r;function t(u){return typeof u!="string"?u:Number(u.replace("M",""))*ru}function n(u,s){var f=["L","D"];if(typeof u==typeof s){if(typeof u=="number")return u-s;var v=f.indexOf(u.charAt(0)),p=f.indexOf(s.charAt(0));return v===p?Number(u.replace(/(L|D)/g,""))-Number(s.replace(/(L|D)/g,"")):v-p}else return typeof u=="number"?1:-1}function a(u,s,f){var v=f||function(m){return m},p=s[0],b=s[1];return(!p&&typeof p!="number"||v(p)<=v(u))&&(!b&&typeof b!="number"||v(b)>=v(u))}function o(u,s){var f=s[0]===null,v=s[1]===null,p=n(u,s[0])>=0,b=n(u,s[1])<=0;return(f||p)&&(v||b)}var i,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&a.unshift(a.splice(f,1).shift())}});var l={false:{left:0,right:0}};return Lr.syncOrAsync(a.map(function(u){return function(){if(u){var s=lr.getFromId(e,u);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=i;var f=lr.drawOne(e,s,t);return s._shiftPusher&&l2(s,s._fullDepth||0,l,!0),s._r=s.range.slice(),s._rl=Lr.simpleMap(s._r,s.r2l),f}}}))};lr.drawOne=function(e,r,t){t=t||{};var n=t.axShifts||{},a=t.overlayingShiftedAx||[],o,i,l;r.setScale();var u=e._fullLayout,s=r._id,f=s.charAt(0),v=lr.counterLetter(s),p=u._plots[r._mainSubplot],b=r.zerolinelayer==="above traces";if(!p)return;if(r._shiftPusher=r.autoshift||a.indexOf(r._id)!==-1||a.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var m=r.linewidth/2||0;r.ticks==="inside"&&(m+=r.ticklen),l2(r,m,n,!0),l2(r,r.shift||0,n,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=TX(r,n));var w=p[f+"axislayer"],M=r._mainLinePosition,y=M+=r._shift,k=r._mainMirrorPosition,S=r._vals=lr.calcTicks(r),x=[r.mirror,y,k].join("_");for(o=0;o0?Ee.bottom-ke:0,Fe))));var Me=0,ce=0;if(r._shiftPusher&&(Me=Math.max(Fe,Ee.height>0?ve==="l"?ke-Ee.left:Ee.right-ke:0),r.title.text!==u._dfltTitle[f]&&(ce=(r._titleStandoff||0)+(r._titleScoot||0),ve==="l"&&(ce+=mM(r))),r._fullDepth=Math.max(Me,ce)),r.automargin){ze={x:0,y:0,r:0,l:0,t:0,b:0};var ye=[0,1],Le=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(ve==="b"?ze[ve]=r._depth:(ze[ve]=r._depth=Math.max(Ee.width>0?ke-Ee.top:0,Fe),ye.reverse()),Ee.width>0){var me=Ee.right-(r._offset+r._length);me>0&&(ze.xr=1,ze.r=me);var de=r._offset-Ee.left;de>0&&(ze.xl=0,ze.l=de)}}else if(ve==="l"?(r._depth=Math.max(Ee.height>0?ke-Ee.left:0,Fe),ze[ve]=r._depth-Le):(r._depth=Math.max(Ee.height>0?Ee.right-ke:0,Fe),ze[ve]=r._depth+Le,ye.reverse()),Ee.height>0){var be=Ee.bottom-(r._offset+r._length);be>0&&(ze.yb=0,ze.b=be);var Ae=r._offset-Ee.top;Ae>0&&(ze.yt=1,ze.t=Ae)}ze[v]=r.anchor==="free"?r.position:r._anchorAxis.domain[ye[0]],r.title.text!==u._dfltTitle[f]&&(ze[ve]+=mM(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Be={x:0,y:0,r:0,l:0,t:0,b:0},Be[Te]=r.linewidth,r.mirror&&r.mirror!==!0&&(Be[Te]+=Fe),r.mirror===!0||r.mirror==="ticks"?Be[v]=r._anchorAxis.domain[ye[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Be[v]=[r._counterDomainMin,r._counterDomainMax][ye[1]]))}Se&&(ge=Lf.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(yM(ze,r.automargin),yM(Be,r.automargin)),js.autoMargin(e,f2(r),ze),js.autoMargin(e,SM(r),Be),js.autoMargin(e,CM(r),ge)}),Lr.syncOrAsync(he)}};function yM(e,r){if(e){var t=Object.keys(fM).reduce(function(n,a){return r.indexOf(a)!==-1&&fM[a].forEach(function(o){n[o]=1}),n},{});Object.keys(e).forEach(function(n){t[n]||(n.length===1?e[n]=0:delete e[n])})}}function vX(e,r){var t=[],n,a=function(o,i){var l=o.xbnd[i];l!==null&&t.push(Lr.extendFlat({},o,{x:l}))};if(r.length){for(n=0;ne.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,u=!l;if(t){var s=i?-1:1;t=t*s}if(n){var f=e.side,v=l&&(f==="top"||f==="left")||u&&(f==="bottom"||f==="right")?1:-1;n=n*v}return e._id.charAt(0)==="x"?function(p){return eu(a+e._offset+e.l2p(i2(p))+t,o+n)}:function(p){return eu(o+n,a+e._offset+e.l2p(i2(p))+t)}};function i2(e){return e.periodX!==void 0?e.periodX:e.x}function gX(e){var r=e.ticklabelposition||"",t=e.tickson||"",n=function(m){return r.indexOf(m)!==-1},a=n("top"),o=n("left"),i=n("right"),l=n("bottom"),u=n("inside"),s=t!=="boundaries"&&(l||o||a||i);if(!s&&!u)return[0,0];var f=e.side,v=s?(e.tickwidth||0)/2:0,p=Hv,b=e.tickfont?e.tickfont.size:12;return(l||a)&&(v+=b*Hl,p+=(e.linewidth||0)/2),(o||i)&&(v+=(e.linewidth||0)/2,p+=Hv),u&&f==="top"&&(p-=b*(1-Hl)),(o||a)&&(v=-v),(f==="bottom"||f==="right")&&(p=-p),[s?v:0,u?p:0]}lr.makeTickPath=function(e,r,t,n){n||(n={});var a=n.minor;if(a&&!e.minor)return"";var o=n.len!==void 0?n.len:a?e.minor.ticklen:e.ticklen,i=e._id.charAt(0),l=(e.linewidth||1)/2;return i==="x"?"M0,"+(r+l*t)+"v"+o*t:"M"+(r+l*t)+",0h"+o*t};lr.makeLabelFns=function(e,r,t){var n=e.ticklabelposition||"",a=e.tickson||"",o=function(E){return n.indexOf(E)!==-1},i=o("top"),l=o("left"),u=o("right"),s=o("bottom"),f=a!=="boundaries"&&(s||l||i||u),v=o("inside"),p=n==="inside"&&e.ticks==="inside"||!v&&e.ticks==="outside"&&a!=="boundaries",b=0,m=0,w=p?e.ticklen:0;if(v?w*=-1:f&&(w=0),p&&(b+=w,t)){var M=Lr.deg2rad(t);b=w*Math.cos(M)+1,m=w*Math.sin(M)}e.showticklabels&&(p||e.showline)&&(b+=.2*e.tickfont.size),b+=(e.linewidth||1)/2*(v?-1:1);var y={labelStandoff:b,labelShift:m},k,S,x,T,d=0,_=e.side,g=e._id.charAt(0),c=e.tickangle,A;if(g==="x")A=!v&&_==="bottom"||v&&_==="top",T=A?1:-1,v&&(T*=-1),k=m*T,S=r+b*T,x=A?1:-.2,Math.abs(c)===90&&(v?x+=Ef:c===-90&&_==="bottom"?x=Hl:c===90&&_==="top"?x=Ef:x=.5,d=Ef/2*(c/90)),y.xFn=function(E){return E.dx+k+d*E.fontSize},y.yFn=function(E){return E.dy+S+E.fontSize*x},y.anchorFn=function(E,D){if(f){if(l)return"end";if(u)return"start"}return!Wt(D)||D===0||D===180?"middle":D*T<0!==v?"end":"start"},y.heightFn=function(E,D,N){return D<-60||D>60?-.5*N:e.side==="top"!==v?-N:0};else if(g==="y"){if(A=!v&&_==="left"||v&&_==="right",T=A?1:-1,v&&(T*=-1),k=b,S=m*T,x=0,!v&&Math.abs(c)===90&&(c===-90&&_==="left"||c===90&&_==="right"?x=Hl:x=.5),v){var h=Wt(c)?+c:0;if(h!==0){var R=Lr.deg2rad(h);d=Math.abs(Math.sin(R))*Hl*T,x=0}}y.xFn=function(E){return E.dx+r-(k+E.fontSize*x)*T+d*E.fontSize},y.yFn=function(E){return E.dy+S+E.fontSize*Ef},y.anchorFn=function(E,D){return Wt(D)&&Math.abs(D)===90?"middle":A?"end":"start"},y.heightFn=function(E,D,N){return e.side==="right"&&(D*=-1),D<-30?-N:D<30?-.5*N:0}}return y};function Wv(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}lr.drawTicks=function(e,r,t){t=t||{};var n=r._id+"tick",a=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(i){return i.minor&&!i.noTick}):[]).concat(r.ticks?t.vals.filter(function(i){return!i.minor&&!i.noTick}):[]),o=t.layer.selectAll("path."+n).data(a,Wv);o.exit().remove(),o.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(i){return Rf.stroke(Da.select(this),i.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(i){return da.crispRound(e,i.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Xv(r,[xM]),o.attr("transform",t.transFn)};lr.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var n=r._id+"grid",a=r.minor&&r.minor.showgrid,o=a?t.vals.filter(function(y){return y.minor}):[],i=r.showgrid?t.vals.filter(function(y){return!y.minor}):[],l=t.counterAxis;if(l&&lr.shouldShowZeroLine(e,r,l))for(var u=r.tickmode==="array",s=0;s=0;m--){var w=m?p:b;if(w){var M=w.selectAll("path."+n).data(m?i:o,Wv);M.exit().remove(),M.enter().append("path").classed(n,1).classed("crisp",t.crisp!==!1),M.attr("transform",t.transFn).attr("d",t.path).each(function(y){return Rf.stroke(Da.select(this),y.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(y){return da.dashStyle(y.minor?r.minor.griddash:r.griddash,y.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(y){return(y.minor?v:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&M.attr("d",t.path)}}Xv(r,[n2,a2])}};lr.drawZeroLine=function(e,r,t){t=t||t;var n=r._id+"zl",a=lr.shouldShowZeroLine(e,r,t.counterAxis),o=t.layer.selectAll("path."+n).data(a?[{x:0,id:r._id}]:[]);o.exit().remove(),o.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(i,l){return XW(i.id,l.id)})}),o.attr("transform",t.transFn).attr("d",t.path).call(Rf.stroke,r.zerolinecolor||Rf.defaultLine).style("stroke-width",da.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Xv(r,[t2])};lr.drawLabels=function(e,r,t){t=t||{};var n=e._fullLayout,a=r._id,o=r.zerolinelayer==="above traces",i=t.cls||a+"tick",l=t.vals.filter(function(P){return P.text}),u=t.labelFns,s=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[i],v=t.layer.selectAll("g."+i).data(r.showticklabels?l:[],Wv),p=[];v.enter().append("g").classed(i,1).append("text").attr("text-anchor","middle").each(function(P){var O=Da.select(this),U=e._promises.length;O.call(Bl.positionText,u.xFn(P),u.yFn(P)).call(da.font,{family:P.font,size:P.fontSize,color:P.fontColor,weight:P.fontWeight,style:P.fontStyle,variant:P.fontVariant,textcase:P.fontTextcase,lineposition:P.fontLineposition,shadow:P.fontShadow}).text(P.text).call(Bl.convertToTspans,e),e._promises[U]?p.push(e._promises.pop().then(function(){b(O,s)})):b(O,s)}),Xv(r,[uM]),v.exit().remove(),t.repositionOnUpdate&&v.each(function(P){Da.select(this).select("text").call(Bl.positionText,u.xFn(P),u.yFn(P))});function b(P,O){P.each(function(U){var X=Da.select(this),$=X.select(".text-math-group"),j=u.anchorFn(U,O),Y=t.transFn.call(X.node(),U)+(Wt(O)&&+O!=0?" rotate("+O+","+u.xFn(U)+","+(u.yFn(U)-U.fontSize/2)+")":""),q=Bl.lineCount(X),J=Pf*U.fontSize,ae=u.heightFn(U,Wt(O)?+O:0,(q-1)*J);if(ae&&(Y+=eu(0,ae)),$.empty()){var Q=X.select("text");Q.attr({transform:Y,"text-anchor":j}),Q.style("opacity",1),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var oe=da.bBox($.node()).width,ee=oe*{end:-.5,start:.5}[j];$.attr("transform",Y+eu(ee,0))}})}r._adjustTickLabelsOverflow=function(){var P=r.ticklabeloverflow;if(!(!P||P==="allow")){var O=P.indexOf("hide")!==-1,U=r._id.charAt(0)==="x",X=0,$=U?e._fullLayout.width:e._fullLayout.height;if(P.indexOf("domain")!==-1){var j=Lr.simpleMap(r.range,r.r2l);X=r.l2p(j[0])+r._offset,$=r.l2p(j[1])+r._offset}var Y=Math.min(X,$),q=Math.max(X,$),J=r.side,ae=1/0,Q=-1/0;v.each(function(re){var H=Da.select(this),te=H.select(".text-math-group");if(te.empty()){var ue=da.bBox(H.node()),he=0;U?(ue.right>q||ue.leftq||ue.top+(r.tickangle?0:re.fontSize/4)r["_visibleLabelMin_"+j._id]?H.style("display","none"):q.K==="tick"&&!Y&&H.style("display",null)})})})})},b(v,f+1?f:s);function m(){return p.length&&Promise.all(p)}var w=null;function M(){if(b(v,s),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){w=r.autotickangles[0];var P=0,O=[],U,X=1;v.each(function(ze){P=Math.max(P,ze.fontSize);var Be=r.l2p(ze.x),ge=o2(this),Me=da.bBox(ge.node());X=Math.max(X,Bl.lineCount(ge)),O.push({top:0,bottom:10,height:10,left:Be-Me.width/2,right:Be+Me.width/2+2,width:Me.width+2})});var $=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,j=l.length,Y=Math.abs((l[j-1].x-l[0].x)*r._m)/(j-1),q=$?Y/2:Y,J=$?r.ticklen:P*1.25*X,ae=Math.sqrt(Math.pow(q,2)+Math.pow(J,2)),Q=q/ae,oe=r.autotickangles.map(function(ze){return ze*Math.PI/180}),ee=oe.find(function(ze){return Math.abs(Math.cos(ze))<=Q});ee===void 0&&(ee=oe.reduce(function(ze,Be){return Math.abs(Math.cos(ze))I*N&&(R=N,c[g]=A[g]=E[g])}var F=Math.abs(R-h);F-T>0?(F-=T,T*=1+T/F):T=0,r._id.charAt(0)!=="y"&&(T=-T),c[_]=S.p2r(S.r2p(A[_])+d*T),S.autorange==="min"||S.autorange==="max reversed"?(c[0]=null,S._rangeInitial0=void 0,S._rangeInitial1=void 0):(S.autorange==="max"||S.autorange==="min reversed")&&(c[1]=null,S._rangeInitial0=void 0,S._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[S._name+".range"]=c}var L=Lr.syncOrAsync(y);return L&&L.then&&e._promises.push(L),L};function yX(e,r,t){var n=r._id+"divider",a=t.vals,o=t.layer.selectAll("path."+n).data(a,Wv);o.exit().remove(),o.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(Rf.stroke,r.dividercolor).style("stroke-width",da.crispRound(e,r.dividerwidth,1)+"px"),o.attr("transform",t.transFn).attr("d",t.path)}lr.getPxPosition=function(e,r){var t=e._fullLayout._size,n=r._id.charAt(0),a=r.side,o;if(r.anchor!=="free"?o=r._anchorAxis:n==="x"?o={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:n==="y"&&(o={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),a==="top"||a==="left")return o._offset;if(a==="bottom"||a==="right")return o._offset+o._length};function mM(e){var r=e.title.font.size,t=(e.title.text.match(Bl.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(Hl+t*Pf):t?r*(t+1)*Pf:r}function mX(e,r){var t=e._fullLayout,n=r._id,a=n.charAt(0),o=r.title.font.size,i,l=(r.title.text.match(Bl.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?i=r._depth+r.title.standoff+o*Hl:(r.side==="top"||r.side==="left")&&(i=r._depth+r.title.standoff+o*(Ef+l*Pf));else{var u=If(r);if(r.type==="multicategory")i=r._depth;else{var s=1.5*o;u&&(s=.5*o,r.ticks==="outside"&&(s+=r.ticklen)),i=10+s+(r.linewidth?r.linewidth-1:0)}u||(a==="x"?i+=r.side==="top"?o*(r.showticklabels?1:0):o*(r.showticklabels?1.5:.5):i+=r.side==="right"?o*(r.showticklabels?1:.5):o*(r.showticklabels?.5:0))}var f=lr.getPxPosition(e,r),v,p,b;a==="x"?(p=r._offset+r._length/2,b=r.side==="top"?f-i:f+i):(b=r._offset+r._length/2,p=r.side==="right"?f+i:f-i,v={rotate:"-90",offset:0});var m;if(r.type!=="multicategory"){var w=r._selections[r._id+"tick"];if(m={selection:w,side:r.side},w&&w.node()&&w.node().parentNode){var M=da.getTranslate(w.node().parentNode);m.offsetLeft=M.x,m.offsetTop=M.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=i,qW.draw(e,n+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[a],avoid:m,transform:v,attributes:{x:p,y:b,"text-anchor":"middle"}})}lr.shouldShowZeroLine=function(e,r,t){var n=Lr.simpleMap(r.range,r.r2l);return n[0]*n[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Gv)&&(kM(r,0)||!xX(e,r,t,n)||bX(e,r))};lr.clipEnds=function(e,r){return r.filter(function(t){return kM(e,t.x)})};function kM(e,r){var t=e.l2p(r);return t>1&&t1)for(a=1;a=a.min&&e=GW:/%L/.test(r)?e>=VW:/%[SX]/.test(r)?e>=Uv:/%M/.test(r)?e>=Df:/%[HI]/.test(r)?e>=Fi:/%p/.test(r)?e>=Ho:/%[Aadejuwx]/.test(r)?e>=On:/%[UVW]/.test(r)?e>=pa:/%[Bbm]/.test(r)?e>=Bv:/%[q]/.test(r)?e>=Ov:/%[Yy]/.test(r)?e>=qv:!0}});var RM=pe((Tce,LM)=>{"use strict";LM.exports=function(r,t,n){var a,o;if(n){var i=t==="reversed"||t==="min reversed"||t==="max reversed";a=n[i?1:0],o=n[i?0:1]}var l=r("autorangeoptions.minallowed",o===null?a:void 0),u=r("autorangeoptions.maxallowed",a===null?o:void 0);l===void 0&&r("autorangeoptions.clipmin"),u===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var v2=pe((Ace,DM)=>{"use strict";var kX=RM();DM.exports=function(r,t,n,a){var o=t._template||{},i=t.type||o.type||"-";n("minallowed"),n("maxallowed");var l=n("range");if(!l){var u;!a.noInsiderange&&i!=="log"&&(u=n("insiderange"),u&&(u[0]===null||u[1]===null)&&(t.insiderange=!1,u=void 0),u&&(l=n("range",u)))}var s=t.getAutorangeDflt(l,a),f=n("autorange",s),v;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,v=!0),v||(s=t.getAutorangeDflt(l,a),f=n("autorange",s)),f&&(kX(n,f,l),(i==="linear"||i==="-")&&n("rangemode")),t.cleanRange()}});var FM=pe((kce,PM)=>{var SX={left:0,top:0};PM.exports=CX;function CX(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var n=e.clientX||0,a=e.clientY||0,o=EX(r);return t[0]=n-o.left,t[1]=a-o.top,t}function EX(e){return e===window||e===document||e===document.body?SX:e.getBoundingClientRect()}});var Zv=pe((Sce,IM)=>{"use strict";var LX=Vp();function RX(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}IM.exports=LX&&RX()});var zM=pe((Cce,NM)=>{"use strict";NM.exports=function(r,t,n,a,o){var i=(r-n)/(a-n),l=i+t/(a-n),u=(i+l)/2;return o==="left"||o==="bottom"?i:o==="center"||o==="middle"?u:o==="right"||o==="top"?l:i<2/3-u?i:l>4/3-u?l:u}});var BM=pe((Ece,OM)=>{"use strict";var qM=ir(),DX=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];OM.exports=function(r,t,n,a){return n==="left"?r=0:n==="center"?r=1:n==="right"?r=2:r=qM.constrain(Math.floor(r*3),0,2),a==="bottom"?t=0:a==="middle"?t=1:a==="top"?t=2:t=qM.constrain(Math.floor(t*3),0,2),DX[t][r]}});var HM=pe((Lce,UM)=>{"use strict";var PX=mf(),FX=Jc(),IX=ff().getGraphDiv,NX=sf(),h2=UM.exports={};h2.wrapped=function(e,r,t){e=IX(e),e._fullLayout&&FX.clear(e._fullLayout._uid+NX.HOVERID),h2.raw(e,r,t)};h2.raw=function(r,t){var n=r._fullLayout,a=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&PX.triggerHandler(r,"plotly_beforehover",t)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&a&&r.emit("plotly_unhover",{event:t,points:a}))}});var ti=pe((Rce,WM)=>{"use strict";var zX=FM(),d2=Yp(),qX=Zv(),OX=ir().removeElement,BX=wn(),Vl=WM.exports={};Vl.align=zM();Vl.getCursor=BM();var GM=HM();Vl.unhover=GM.wrapped;Vl.unhoverRaw=GM.raw;Vl.init=function(r){var t=r.gd,n=1,a=t._context.doubleClickDelay,o=r.element,i,l,u,s,f,v,p,b;t._mouseDownTime||(t._mouseDownTime=0),o.style.pointerEvents="all",o.onmousedown=M,qX?(o._ontouchstart&&o.removeEventListener("touchstart",o._ontouchstart),o._ontouchstart=M,o.addEventListener("touchstart",M,{passive:!1})):o.ontouchstart=M;function m(S,x,T){return Math.abs(S)a&&(n=Math.max(n-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;v.target===p?x=v:(x={target:p,srcElement:p,toElement:p},Object.keys(v).concat(Object.keys(v.__proto__)).forEach(T=>{var d=v[T];!x[T]&&typeof d!="function"&&(x[T]=d)})),r.clickFn&&r.clickFn(n,x),b||p.dispatchEvent(new MouseEvent("click",S))}t._dragging=!1,t._dragged=!1}};function YM(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}Vl.coverSlip=YM;function VM(e){return zX(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Vo=pe((Dce,XM)=>{"use strict";XM.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&r.classed(n,!1)}),t&&r.classed("cursor-"+t,!0)}});var KM=pe((Pce,JM)=>{"use strict";var p2=Vo(),Nf="data-savedcursor",ZM="!!";JM.exports=function(r,t){var n=r.attr(Nf);if(t){if(!n){for(var a=(r.attr("class")||"").split(" "),o=0;o{"use strict";var g2=kn(),UX=Ti();QM.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:UX.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:g2({editType:"legend"}),grouptitlefont:g2({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:g2({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Kv=pe(Jv=>{"use strict";Jv.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Jv.isVertical=function(r){return r.orientation!=="h"};Jv.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1}});var b2=pe((Nce,$M)=>{"use strict";var m2=Er(),ga=ir(),HX=gt(),VX=Sn(),GX=y2(),YX=Ds(),x2=Kv();function WX(e,r,t,n){var a=r[e]||{},o=HX.newContainer(t,e);function i(F,L){return ga.coerce(a,o,GX,F,L)}var l=ga.coerceFont(i,"font",t.font);i("bgcolor",t.paper_bgcolor),i("bordercolor");var u=i("visible");if(u){for(var s,f=function(F,L){var P=s._input,O=s;return ga.coerce(P,O,VX,F,L)},v=t.font||{},p=ga.coerceFont(i,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),b=0,m=!1,w="normal",M=(t.shapes||[]).filter(function(F){return F.showlegend}),y=n.concat(M).filter(function(F){return e===(F.legend||"legend")}),k=0;k(e==="legend"?1:0));if(x===!1&&(t[e]=void 0),!(x===!1&&!a.uirevision)&&(i("uirevision",t.uirevision),x!==!1)){i("borderwidth");var T=i("orientation"),d=i("yref"),_=i("xref"),g=T==="h",c=d==="paper",A=_==="paper",h,R,E,D="left";g?(h=0,m2.getComponentMethod("rangeslider","isVisible")(r.xaxis)?c?(R=1.1,E="bottom"):(R=1,E="top"):c?(R=-.1,E="top"):(R=0,E="bottom")):(R=1,E="auto",A?h=1.02:(h=1,D="right")),ga.coerce(a,o,{x:{valType:"number",editType:"legend",min:A?-2:0,max:A?3:1,dflt:h}},"x"),ga.coerce(a,o,{y:{valType:"number",editType:"legend",min:c?-2:0,max:c?3:1,dflt:R}},"y"),i("traceorder",w),x2.isGrouped(t[e])&&i("tracegroupgap"),i("entrywidth"),i("entrywidthmode"),i("indentation"),i("itemsizing"),i("itemwidth"),i("itemclick"),i("itemdoubleclick"),i("groupclick"),i("xanchor",D),i("yanchor",E),i("maxheight",g?.5:1),i("valign"),ga.noneOrAll(a,o,["x","y"]);var N=i("title.text");if(N){i("title.side",g?"left":"top");var I=ga.extendFlat({},l,{size:ga.bigFont(l.size)});ga.coerceFont(i,"title.font",I)}}}}$M.exports=function(r,t,n){var a,o=n.slice(),i=t.shapes;if(i)for(a=0;a{"use strict";var tu=Er(),w2=ir(),XX=w2.pushUnique,_2=!0;jM.exports=function(r,t,n){var a=t._fullLayout;if(t._dragged||t._editing)return;var o=a.legend.itemclick,i=a.legend.itemdoubleclick,l=a.legend.groupclick;n===1&&o==="toggle"&&i==="toggleothers"&&_2&&t.data&&t._context.showTips&&w2.notifier(w2._(t,"Double-click on legend to isolate one trace"),"long"),_2=!1;var u;if(n===1?u=o:n===2&&(u=i),!u)return;var s=l==="togglegroup",f=a.hiddenlabels?a.hiddenlabels.slice():[],v=r.data()[0][0];if(v.groupTitle&&v.noClick)return;var p=t._fullData,b=(a.shapes||[]).filter(function(Te){return Te.showlegend}),m=p.concat(b),w=v.trace;w._isShape&&(w=w._fullInput);var M=w.legendgroup,y,k,S,x,T,d,_={},g=[],c=[],A=[];function h(Te,ke){var Fe=g.indexOf(Te),Ee=_.visible;return Ee||(Ee=_.visible=[]),g.indexOf(Te)===-1&&(g.push(Te),Fe=g.length-1),Ee[Fe]=ke,Fe}var R=(a.shapes||[]).map(function(Te){return Te._input}),E=!1;function D(Te,ke){R[Te].visible=ke,E=!0}function N(Te,ke){if(!(v.groupTitle&&!s)){var Fe=Te._fullInput||Te,Ee=Fe._isShape,ze=Fe.index;ze===void 0&&(ze=Fe._index);var Be=Fe.visible===!1?!1:ke;Ee?D(ze,Be):h(ze,Be)}}var I=w.legend,F=w._fullInput,L=F&&F._isShape;if(!L&&tu.traceIs(w,"pie-like")){var P=v.label,O=f.indexOf(P);if(u==="toggle")O===-1?f.push(P):f.splice(O,1);else if(u==="toggleothers"){var U=O!==-1,X=[];for(y=0;y{"use strict";rT.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var aT=pe((Oce,nT)=>{"use strict";var tT=Er(),T2=Kv();nT.exports=function(r,t,n){var a=t._inHover,o=T2.isGrouped(t),i=T2.isReversed(t),l={},u=[],s=!1,f={},v=0,p=0,b,m;function w(F,L,P){if(t.visible!==!1&&!(n&&F!==t._id))if(L===""||!T2.isGrouped(t)){var O="~~i"+v;u.push(O),l[O]=[P],v++}else u.indexOf(L)===-1?(u.push(L),s=!0,l[L]=[P]):l[L].push(P)}for(b=0;bA&&(c=A)}_[b][0]._groupMinRank=c,_[b][0]._preGroupSort=b}var h=function(F,L){return F[0]._groupMinRank-L[0]._groupMinRank||F[0]._preGroupSort-L[0]._preGroupSort},R=function(F,L){return F.trace.legendrank-L.trace.legendrank||F._preSort-L._preSort};for(_.forEach(function(F,L){F[0]._preGroupSort=L}),_.sort(h),b=0;b<_.length;b++){_[b].forEach(function(F,L){F._preSort=L}),_[b].sort(R);var E=_[b][0].trace,D=null;for(m=0;m<_[b].length;m++){var N=_[b][m].trace.legendgrouptitle;if(N&&N.text){D=N,a&&(N.font=t._groupTitleFont);break}}if(i&&_[b].reverse(),D){var I=!1;for(m=0;m<_[b].length;m++)if(tT.traceIs(_[b][m].trace,"pie-like")){I=!0;break}_[b].unshift({i:-1,groupTitle:D,noClick:I,trace:{showlegend:E.showlegend,legendgroup:E.legendgroup,visible:t.groupclick==="toggleitem"?!0:E.visible}})}for(m=0;m<_[b].length;m++)_[b][m]=[_[b][m]]}return t._lgroupsLength=_.length,t._maxNameLength=p,_}});var A2=pe(Gl=>{"use strict";var Qv=ir();function iT(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Gl.formatPiePercent=function(r,t){var n=iT((r*100).toPrecision(3));return Qv.numSeparate(n,t)+"%"};Gl.formatPieValue=function(r,t){var n=iT(r.toPrecision(10));return Qv.numSeparate(n,t)};Gl.getFirstFilled=function(r,t){if(Qv.isArrayOrTypedArray(r))for(var n=0;n{"use strict";var ZX=yt(),JX=Zr();oT.exports=function(r,t,n,a){var o=n.marker.pattern;o&&o.shape?ZX.pointStyle(r,n,a,t):JX.fill(r,t.color)}});var cT=pe((Hce,fT)=>{"use strict";var sT=Zr(),uT=A2().castOption,KX=lT();fT.exports=function(r,t,n,a){var o=n.marker.line,i=uT(o.color,t.pts)||sT.defaultLine,l=uT(o.width,t.pts)||0;r.call(KX,t,n,a).style("stroke-width",l).call(sT.stroke,i)}});var E2=pe((Vce,yT)=>{"use strict";var Bn=it(),k2=Er(),En=ir(),vT=En.strTranslate,ya=yt(),Pa=Zr(),S2=Si().extractOpts,$v=ia(),QX=cT(),$X=A2().castOption,jX=M2(),hT=12,dT=5,Yl=2,eZ=10,nu=5;yT.exports=function(r,t,n){var a=t._fullLayout;n||(n=a.legend);var o=n.itemsizing==="constant",i=n.itemwidth,l=(i+jX.itemGap*2)/2,u=vT(l,0),s=function(_,g,c,A){var h;if(_+1)h=_;else if(g&&g.width>0)h=g.width;else return 0;return o?A:Math.min(h,c)};r.each(function(_){var g=Bn.select(this),c=En.ensureSingle(g,"g","layers");c.style("opacity",_[0].trace.opacity);var A=n.indentation,h=n.valign,R=_[0].lineHeight,E=_[0].height;if(h==="middle"&&A===0||!R||!E)c.attr("transform",null);else{var D={top:1,bottom:-1}[h],N=D*(.5*(R-E+3))||0,I=n.indentation;c.attr("transform",vT(I,N))}var F=c.selectAll("g.legendfill").data([_]);F.enter().append("g").classed("legendfill",!0);var L=c.selectAll("g.legendlines").data([_]);L.enter().append("g").classed("legendlines",!0);var P=c.selectAll("g.legendsymbols").data([_]);P.enter().append("g").classed("legendsymbols",!0),P.selectAll("g.legendpoints").data([_]).enter().append("g").classed("legendpoints",!0)}).each(d).each(p).each(m).each(b).each(M).each(x).each(S).each(f).each(v).each(y).each(k);function f(_){var g=pT(_),c=g.showFill,A=g.showLine,h=g.showGradientLine,R=g.showGradientFill,E=g.anyFill,D=g.anyLine,N=_[0],I=N.trace,F,L,P=S2(I),O=P.colorscale,U=P.reversescale,X=function(Q){if(Q.size())if(c)ya.fillGroupStyle(Q,t,!0);else{var oe="legendfill-"+I.uid;ya.gradient(Q,t,oe,C2(U),O,"fill")}},$=function(Q){if(Q.size()){var oe="legendline-"+I.uid;ya.lineGroupStyle(Q),ya.gradient(Q,t,oe,C2(U),O,"stroke")}},j=$v.hasMarkers(I)||!E?"M5,0":D?"M5,-2":"M5,-3",Y=Bn.select(this),q=Y.select(".legendfill").selectAll("path").data(c||R?[_]:[]);if(q.enter().append("path").classed("js-fill",!0),q.exit().remove(),q.attr("d",j+"h"+i+"v6h-"+i+"z").call(X),A||h){var J=s(void 0,I.line,eZ,dT);L=En.minExtend(I,{line:{width:J}}),F=[En.minExtend(N,{trace:L})]}var ae=Y.select(".legendlines").selectAll("path").data(A||h?[F]:[]);ae.enter().append("path").classed("js-line",!0),ae.exit().remove(),ae.attr("d",j+(h?"l"+i+",0.0001":"h"+i)).call(A?ya.lineGroupStyle:$)}function v(_){var g=pT(_),c=g.anyFill,A=g.anyLine,h=g.showLine,R=g.showMarker,E=_[0],D=E.trace,N=!R&&!A&&!c&&$v.hasText(D),I,F;function L(q,J,ae,Q){var oe=En.nestedProperty(D,q).get(),ee=En.isArrayOrTypedArray(oe)&&J?J(oe):oe;if(o&&ee&&Q!==void 0&&(ee=Q),ae){if(eeae[1])return ae[1]}return ee}function P(q){return E._distinct&&E.index&&q[E.index]?q[E.index]:q[0]}if(R||N||h){var O={},U={};if(R){O.mc=L("marker.color",P),O.mx=L("marker.symbol",P),O.mo=L("marker.opacity",En.mean,[.2,1]),O.mlc=L("marker.line.color",P),O.mlw=L("marker.line.width",En.mean,[0,5],Yl),U.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var X=L("marker.size",En.mean,[2,16],hT);O.ms=X,U.marker.size=X}h&&(U.line={width:L("line.width",P,[0,10],dT)}),N&&(O.tx="Aa",O.tp=L("textposition",P),O.ts=10,O.tc=L("textfont.color",P),O.tf=L("textfont.family",P),O.tw=L("textfont.weight",P),O.ty=L("textfont.style",P),O.tv=L("textfont.variant",P),O.tC=L("textfont.textcase",P),O.tE=L("textfont.lineposition",P),O.tS=L("textfont.shadow",P)),I=[En.minExtend(E,O)],F=En.minExtend(D,U),F.selectedpoints=null,F.texttemplate=null}var $=Bn.select(this).select("g.legendpoints"),j=$.selectAll("path.scatterpts").data(R?I:[]);j.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),j.exit().remove(),j.call(ya.pointStyle,F,t),R&&(I[0].mrc=3);var Y=$.selectAll("g.pointtext").data(N?I:[]);Y.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),Y.exit().remove(),Y.selectAll("text").call(ya.textPointStyle,F,t)}function p(_){var g=_[0].trace,c=g.type==="waterfall";if(_[0]._distinct&&c){var A=_[0].trace[_[0].dir].marker;return _[0].mc=A.color,_[0].mlw=A.line.width,_[0].mlc=A.line.color,w(_,this,"waterfall")}var h=[];g.visible&&c&&(h=_[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var R=Bn.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(h);R.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(E){var D=Bn.select(this),N=g[E[0]].marker,I=s(void 0,N.line,nu,Yl);D.attr("d",E[1]).style("stroke-width",I+"px").call(Pa.fill,N.color),I&&D.call(Pa.stroke,N.line.color)})}function b(_){w(_,this)}function m(_){w(_,this,"funnel")}function w(_,g,c){var A=_[0].trace,h=A.marker||{},R=h.line||{},E=h.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",D=c?A.visible&&A.type===c:k2.traceIs(A,"bar"),N=Bn.select(g).select("g.legendpoints").selectAll("path.legend"+c).data(D?[_]:[]);N.enter().append("path").classed("legend"+c,!0).attr("d",E).attr("transform",u),N.exit().remove(),N.each(function(I){var F=Bn.select(this),L=I[0],P=s(L.mlw,h.line,nu,Yl);F.style("stroke-width",P+"px");var O=L.mcc;if(!n._inHover&&"mc"in L){var U=S2(h),X=U.mid;X===void 0&&(X=(U.max+U.min)/2),O=ya.tryColorscale(h,"")(X)}var $=O||L.mc||h.color,j=h.pattern,Y=ya.getPatternAttr,q=j&&(Y(j.shape,0,"")||Y(j.path,0,""));if(q){var J=Y(j.bgcolor,0,null),ae=Y(j.fgcolor,0,null),Q=j.fgopacity,oe=gT(j.size,8,10),ee=gT(j.solidity,.5,1),V="legend-"+A.uid;F.call(ya.pattern,"legend",t,V,q,oe,ee,O,j.fillmode,J,ae,Q)}else F.call(Pa.fill,$);P&&Pa.stroke(F,L.mlc||R.color)})}function M(_){var g=_[0].trace,c=Bn.select(this).select("g.legendpoints").selectAll("path.legendbox").data(g.visible&&k2.traceIs(g,"box-violin")?[_]:[]);c.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),c.exit().remove(),c.each(function(){var A=Bn.select(this);if((g.boxpoints==="all"||g.points==="all")&&Pa.opacity(g.fillcolor)===0&&Pa.opacity((g.line||{}).color)===0){var h=En.minExtend(g,{marker:{size:o?hT:En.constrain(g.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});c.call(ya.pointStyle,h,t)}else{var R=s(void 0,g.line,nu,Yl);A.style("stroke-width",R+"px").call(Pa.fill,g.fillcolor),R&&Pa.stroke(A,g.line.color)}})}function y(_){var g=_[0].trace,c=Bn.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(g.visible&&g.type==="candlestick"?[_,_]:[]);c.enter().append("path").classed("legendcandle",!0).attr("d",function(A,h){return h?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),c.exit().remove(),c.each(function(A,h){var R=Bn.select(this),E=g[h?"increasing":"decreasing"],D=s(void 0,E.line,nu,Yl);R.style("stroke-width",D+"px").call(Pa.fill,E.fillcolor),D&&Pa.stroke(R,E.line.color)})}function k(_){var g=_[0].trace,c=Bn.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(g.visible&&g.type==="ohlc"?[_,_]:[]);c.enter().append("path").classed("legendohlc",!0).attr("d",function(A,h){return h?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),c.exit().remove(),c.each(function(A,h){var R=Bn.select(this),E=g[h?"increasing":"decreasing"],D=s(void 0,E.line,nu,Yl);R.style("fill","none").call(ya.dashLine,E.line.dash,D),D&&Pa.stroke(R,E.line.color)})}function S(_){T(_,this,"pie")}function x(_){T(_,this,"funnelarea")}function T(_,g,c){var A=_[0],h=A.trace,R=c?h.visible&&h.type===c:k2.traceIs(h,c),E=Bn.select(g).select("g.legendpoints").selectAll("path.legend"+c).data(R?[_]:[]);if(E.enter().append("path").classed("legend"+c,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),E.exit().remove(),E.size()){var D=h.marker||{},N=s($X(D.line.width,A.pts),D.line,nu,Yl),I="pieLike",F=En.minExtend(h,{marker:{line:{width:N}}},I),L=En.minExtend(A,{trace:F},I);QX(E,L,F,t)}}function d(_){var g=_[0].trace,c,A=[];if(g.visible)switch(g.type){case"histogram2d":case"heatmap":A=[["M-15,-2V4H15V-2Z"]],c=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":A=[["M-6,-6V6H6V-6Z"]],c=!0;break;case"densitymapbox":case"densitymap":A=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],c="radial";break;case"cone":A=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],c=!1;break;case"streamtube":A=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],c=!1;break;case"surface":A=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],c=!0;break;case"mesh3d":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],c=!1;break;case"volume":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],c=!0;break;case"isosurface":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],c=!1;break}var h=Bn.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(A);h.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),h.exit().remove(),h.each(function(R,E){var D=Bn.select(this),N=S2(g),I=N.colorscale,F=N.reversescale,L=function(X){if(X.size()){var $="legendfill-"+g.uid;ya.gradient(X,t,$,C2(F,c==="radial"),I,"fill")}},P;if(I){if(!c){var U=I.length;P=E===0?I[F?U-1:0][1]:E===1?I[F?0:U-1][1]:I[Math.floor((U-1)/2)][1]}}else{var O=g.vertexcolor||g.facecolor||g.color;P=En.isArrayOrTypedArray(O)?O[E]||O[0]:O}D.attr("d",R[0]),P?D.call(Pa.fill,P):D.call(L)})}};function C2(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function pT(e){var r=e[0].trace,t=r.contours,n=$v.hasLines(r),a=$v.hasMarkers(r),o=r.visible&&r.fill&&r.fill!=="none",i=!1,l=!1;if(t){var u=t.coloring;u==="lines"?i=!0:n=u==="none"||u==="heatmap"||t.showlines,t.type==="constraint"?o=t._operation!=="=":(u==="fill"||u==="heatmap")&&(l=!0)}return{showMarker:a,showLine:n,showFill:o,showGradientLine:i,showGradientFill:l,anyLine:n||i,anyFill:o||l}}function gT(e,r,t){return e&&En.isArrayOrTypedArray(e)?r:e>t?t:e}});var P2=pe((Gce,ST)=>{"use strict";var oa=it(),Xt=ir(),R2=ln(),ou=Er(),mT=mf(),L2=ti(),Zt=yt(),eh=Zr(),Wl=Yn(),xT=eT(),en=M2(),D2=qn(),AT=D2.LINE_SPACING,iu=D2.FROM_TL,bT=D2.FROM_BR,_T=aT(),rZ=E2(),wT=Kv(),au=1,tZ=/^legend[0-9]*$/;ST.exports=function(r,t){if(t)MT(r,t);else{var n=r._fullLayout,a=n._legends,o=n._infolayer.selectAll('[class^="legend"]');o.each(function(){var s=oa.select(this),f=s.attr("class"),v=f.split(" ")[0];v.match(tZ)&&a.indexOf(v)===-1&&s.remove()});for(var i=0;i1)}var m=n.hiddenlabels||[];if(!l&&(!n.showlegend||!u.length))return i.selectAll("."+a).remove(),n._topdefs.select("#"+o).remove(),R2.autoMargin(e,a);var w=Xt.ensureSingle(i,"g",a,function(g){l||g.attr("pointer-events","all")}),M=Xt.ensureSingleById(n._topdefs,"clipPath",o,function(g){g.append("rect")}),y=Xt.ensureSingle(w,"rect","bg",function(g){g.attr("shape-rendering","crispEdges")});y.call(eh.stroke,t.bordercolor).call(eh.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var k=Xt.ensureSingle(w,"g","scrollbox"),S=t.title;t._titleWidth=0,t._titleHeight=0;var x;S.text?(x=Xt.ensureSingle(k,"text",a+"titletext"),x.attr("text-anchor","start").call(Zt.font,S.font).text(S.text),rh(x,k,e,t,au)):k.selectAll("."+a+"titletext").remove();var T=Xt.ensureSingle(w,"rect","scrollbar",function(g){g.attr(en.scrollBarEnterAttrs).call(eh.fill,en.scrollBarColor)}),d=k.selectAll("g.groups").data(u);d.enter().append("g").attr("class","groups"),d.exit().remove();var _=d.selectAll("g.traces").data(Xt.identity);_.enter().append("g").attr("class","traces"),_.exit().remove(),_.style("opacity",function(g){var c=g[0].trace;return ou.traceIs(c,"pie-like")?m.indexOf(g[0].label)!==-1?.5:1:c.visible==="legendonly"?.5:1}).each(function(){oa.select(this).call(aZ,e,t)}).call(rZ,e,t).each(function(){l||oa.select(this).call(iZ,e,a)}),Xt.syncOrAsync([R2.previousPromises,function(){return sZ(e,d,_,t)},function(){var g=n._size,c=t.borderwidth,A=t.xref==="paper",h=t.yref==="paper";if(S.text&&nZ(x,t,c),!l){var R,E;A?R=g.l+g.w*t.x-iu[th(t)]*t._width:R=n.width*t.x-iu[th(t)]*t._width,h?E=g.t+g.h*(1-t.y)-iu[nh(t)]*t._effHeight:E=n.height*(1-t.y)-iu[nh(t)]*t._effHeight;var D=uZ(e,a,R,E);if(D)return;if(n.margin.autoexpand){var N=R,I=E;R=A?Xt.constrain(R,0,n.width-t._width):N,E=h?Xt.constrain(E,0,n.height-t._effHeight):I,R!==N&&Xt.log("Constrain "+a+".x to make legend fit inside graph"),E!==I&&Xt.log("Constrain "+a+".y to make legend fit inside graph")}Zt.setTranslate(w,R,E)}if(T.on(".drag",null),w.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var F=t._effHeight;l&&(F=t._height),y.attr({width:t._width-c,height:F-c,x:c/2,y:c/2}),Zt.setTranslate(k,0,0),M.select("rect").attr({width:t._width-2*c,height:F-2*c,x:c,y:c}),Zt.setClipUrl(k,o,e),Zt.setRect(T,0,0,0,0),delete t._scrollY}else{var L=Math.max(en.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),P=t._effHeight-L-2*en.scrollBarMargin,O=t._height-t._effHeight,U=P/O,X=Math.min(t._scrollY||0,O);y.attr({width:t._width-2*c+en.scrollBarWidth+en.scrollBarMargin,height:t._effHeight-c,x:c/2,y:c/2}),M.select("rect").attr({width:t._width-2*c+en.scrollBarWidth+en.scrollBarMargin,height:t._effHeight-2*c,x:c,y:c+X}),Zt.setClipUrl(k,o,e),oe(X,L,U),w.on("wheel",function(){X=Xt.constrain(t._scrollY+oa.event.deltaY/P*O,0,O),oe(X,L,U),X!==0&&X!==O&&oa.event.preventDefault()});var $,j,Y,q=function(te,ue,he){var Ce=(he-ue)/U+te;return Xt.constrain(Ce,0,O)},J=function(te,ue,he){var Ce=(ue-he)/U+te;return Xt.constrain(Ce,0,O)},ae=oa.behavior.drag().on("dragstart",function(){var te=oa.event.sourceEvent;te.type==="touchstart"?$=te.changedTouches[0].clientY:$=te.clientY,Y=X}).on("drag",function(){var te=oa.event.sourceEvent;te.buttons===2||te.ctrlKey||(te.type==="touchmove"?j=te.changedTouches[0].clientY:j=te.clientY,X=q(Y,$,j),oe(X,L,U))});T.call(ae);var Q=oa.behavior.drag().on("dragstart",function(){var te=oa.event.sourceEvent;te.type==="touchstart"&&($=te.changedTouches[0].clientY,Y=X)}).on("drag",function(){var te=oa.event.sourceEvent;te.type==="touchmove"&&(j=te.changedTouches[0].clientY,X=J(Y,$,j),oe(X,L,U))});k.call(Q)}function oe(te,ue,he){t._scrollY=e._fullLayout[a]._scrollY=te,Zt.setTranslate(k,0,-te),Zt.setRect(T,t._width,en.scrollBarMargin+te*he,en.scrollBarWidth,ue),M.select("rect").attr("y",c+te)}if(e._context.edits.legendPosition){var ee,V,re,H;w.classed("cursor-move",!0),L2.init({element:w.node(),gd:e,prepFn:function(te){if(te.target!==T.node()){var ue=Zt.getTranslate(w);re=ue.x,H=ue.y}},moveFn:function(te,ue){if(re!==void 0&&H!==void 0){var he=re+te,Ce=H+ue;Zt.setTranslate(w,he,Ce),ee=L2.align(he,t._width,g.l,g.l+g.w,t.xanchor),V=L2.align(Ce+t._height,-t._height,g.t+g.h,g.t,t.yanchor)}},doneFn:function(){if(ee!==void 0&&V!==void 0){var te={};te[a+".x"]=ee,te[a+".y"]=V,ou.call("_guiRelayout",e,te)}},clickFn:function(te,ue){var he=i.selectAll("g.traces").filter(function(){var Ce=this.getBoundingClientRect();return ue.clientX>=Ce.left&&ue.clientX<=Ce.right&&ue.clientY>=Ce.top&&ue.clientY<=Ce.bottom});he.size()>0&&kT(e,w,he,te,ue)}})}}],e)}}function jv(e,r,t){var n=e[0],a=n.width,o=r.entrywidthmode,i=n.trace.legendwidth||r.entrywidth;return o==="fraction"?r._maxWidth*i:t+(i||a)}function kT(e,r,t,n,a){var o=t.data()[0][0].trace,i={event:a,node:t.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};o._group&&(i.group=o._group),ou.traceIs(o,"pie-like")&&(i.label=t.datum()[0].label);var l=mT.triggerHandler(e,"plotly_legendclick",i);if(n===1){if(l===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&xT(t,e,n)},e._context.doubleClickDelay)}else if(n===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var u=mT.triggerHandler(e,"plotly_legenddoubleclick",i);u!==!1&&l!==!1&&xT(t,e,n)}}function aZ(e,r,t){var n=ah(t),a=e.data()[0][0],o=a.trace,i=ou.traceIs(o,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!i,u=t._maxNameLength,s,f;a.groupTitle?(s=a.groupTitle.text,f=a.groupTitle.font):(f=t.font,t.entries?s=a.text:(s=i?a.label:o.name,o._meta&&(s=Xt.templateString(s,o._meta))));var v=Xt.ensureSingle(e,"text",n+"text");v.attr("text-anchor","start").call(Zt.font,f).text(l?TT(s,u):s);var p=t.indentation+t.itemwidth+en.itemGap*2;Wl.positionText(v,p,0),l?v.call(Wl.makeEditable,{gd:r,text:s}).call(rh,e,r,t).on("edit",function(b){this.text(TT(b,u)).call(rh,e,r,t);var m=a.trace._fullInput||{},w={};return w.name=b,m._isShape?ou.call("_guiRelayout",r,"shapes["+o.index+"].name",w.name):ou.call("_guiRestyle",r,w,o.index)}):rh(v,e,r,t)}function TT(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var n=t-e.length;n>0;n--)e+=" ";return e}function iZ(e,r,t){var n=r._context.doubleClickDelay,a,o=1,i=Xt.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(eh.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(i.on("mousedown",function(){a=new Date().getTime(),a-r._legendMouseDownTimen&&(o=Math.max(o-1,1)),kT(r,l,e,o,oa.event)}}))}function rh(e,r,t,n,a){n._inHover&&e.attr("data-notex",!0),Wl.convertToTspans(e,t,function(){oZ(r,t,n,a)})}function oZ(e,r,t,n){var a=e.data()[0][0];if(!t._inHover&&a&&!a.trace.showlegend){e.remove();return}var o=e.select("g[class*=math-group]"),i=o.node(),l=ah(t);t||(t=r._fullLayout[l]);var u=t.borderwidth,s;n===au?s=t.title.font:a.groupTitle?s=a.groupTitle.font:s=t.font;var f=s.size*AT,v,p;if(i){var b=Zt.bBox(i);v=b.height,p=b.width,n===au?Zt.setTranslate(o,u,u+v*.75):Zt.setTranslate(o,0,v*.25)}else{var m="."+l+(n===au?"title":"")+"text",w=e.select(m),M=Wl.lineCount(w),y=w.node();if(v=f*M,p=y?Zt.bBox(y).width:0,n===au)t.title.side==="left"&&(p+=en.itemGap*2),Wl.positionText(w,u+en.titlePad,u+f);else{var k=en.itemGap*2+t.indentation+t.itemwidth;a.groupTitle&&(k=en.itemGap,p-=t.indentation+t.itemwidth),Wl.positionText(w,k,-f*((M-1)/2-.3))}}n===au?(t._titleWidth=p,t._titleHeight=v):(a.lineHeight=f,a.height=Math.max(v,16)+3,a.width=p)}function lZ(e){var r=0,t=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(r=e._titleWidth),n.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function sZ(e,r,t,n){var a=e._fullLayout,o=ah(n);n||(n=a[o]);var i=a._size,l=wT.isVertical(n),u=wT.isGrouped(n),s=n.entrywidthmode==="fraction",f=n.borderwidth,v=2*f,p=en.itemGap,b=n.indentation+n.itemwidth+p*2,m=2*(f+p),w=nh(n),M=n.y<0||n.y===0&&w==="top",y=n.y>1||n.y===1&&w==="bottom",k=n.tracegroupgap,S={},{maxheight:x,orientation:T,yref:d}=n,_=T==="v"&&d==="paper"?i.h:a.height;n._maxHeight=Math.max(x>1?x:x*_,30);var g=0;n._width=0,n._height=0;var c=lZ(n);if(l)t.each(function(Q){var oe=Q[0].height;Zt.setTranslate(this,f+c[0],f+c[1]+n._height+oe/2+p),n._height+=oe,n._width=Math.max(n._width,Q[0].width)}),g=b+n._width,n._width+=p+b+v,n._height+=m,u&&(r.each(function(Q,oe){Zt.setTranslate(this,0,oe*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var A=th(n),h=n.x<0||n.x===0&&A==="right",R=n.x>1||n.x===1&&A==="left",E=y||M,D=a.width/2;n._maxWidth=Math.max(h?E&&A==="left"?i.l+i.w:D:R?E&&A==="right"?i.r+i.w:D:i.w,2*b);var N=0,I=0;t.each(function(Q){var oe=jv(Q,n,b);N=Math.max(N,oe),I+=oe}),g=null;var F=0;if(u){var L=0,P=0,O=0;r.each(function(){var Q=0,oe=0;oa.select(this).selectAll("g.traces").each(function(V){var re=jv(V,n,b),H=V[0].height;Zt.setTranslate(this,c[0],c[1]+f+p+H/2+oe),oe+=H,Q=Math.max(Q,re),S[V[0].trace.legendgroup]=Q});var ee=Q+p;P>0&&ee+f+P>n._maxWidth?(F=Math.max(F,P),P=0,O+=L+k,L=oe):L=Math.max(L,oe),Zt.setTranslate(this,P,O),P+=ee}),n._width=Math.max(F,P)+f,n._height=O+L+m}else{var U=t.size(),X=I+v+(U-1)*p=n._maxWidth&&(F=Math.max(F,q),j=0,Y+=$,n._height+=$,$=0),Zt.setTranslate(this,c[0]+f+j,c[1]+f+Y+oe/2+p),q=j+ee+p,j+=V,$=Math.max($,oe)}),X?(n._width=j+v,n._height=$+m):(n._width=Math.max(F,q)+v,n._height+=$+m)}}n._width=Math.ceil(Math.max(n._width+c[0],n._titleWidth+2*(f+en.titlePad))),n._height=Math.ceil(Math.max(n._height+c[1],n._titleHeight+2*(f+en.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var J=e._context.edits,ae=J.legendText||J.legendPosition;t.each(function(Q){var oe=oa.select(this).select("."+o+"toggle"),ee=Q[0].height,V=Q[0].trace.legendgroup,re=jv(Q,n,b);u&&V!==""&&(re=S[V]);var H=ae?b:g||re;!l&&!s&&(H+=p/2),Zt.setRect(oe,0,-ee/2,H,ee)})}function uZ(e,r,t,n){var a=e._fullLayout,o=a[r],i=th(o),l=nh(o),u=o.xref==="paper",s=o.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=o.y<.5?"b":"t",v=o.x<.5?"l":"r",p={r:a.width-t,l:t+o._width,b:a.height-n,t:n+o._effHeight};if(u&&s)return R2.autoMargin(e,r,{x:o.x,y:o.y,l:o._width*iu[i],r:o._width*bT[i],b:o._effHeight*bT[l],t:o._effHeight*iu[l]});u?e._fullLayout._reservedMargin[r][f]=p[f]:s||o.orientation==="v"?e._fullLayout._reservedMargin[r][v]=p[v]:e._fullLayout._reservedMargin[r][f]=p[f]}function th(e){return Xt.isRightAnchor(e)?"right":Xt.isCenterAnchor(e)?"center":"left"}function nh(e){return Xt.isBottomAnchor(e)?"bottom":Xt.isMiddleAnchor(e)?"middle":"top"}function ah(e){return e._id||"legend"}});var z2=pe(N2=>{"use strict";var Xl=it(),ao=rt(),CT=ka(),It=ir(),fZ=It.pushUnique,F2=It.strTranslate,cZ=It.strRotate,vZ=mf(),Fa=Yn(),hZ=KM(),Ii=yt(),un=Zr(),ih=ti(),Ni=St(),dZ=wn().zindexSeparator,su=Er(),ni=to(),Zl=sf(),pZ=b2(),gZ=P2(),NT=Zl.YANGLE,I2=Math.PI*NT/180,yZ=1/Math.sin(I2),mZ=Math.cos(I2),xZ=Math.sin(I2),Ct=Zl.HOVERARROWSIZE,$r=Zl.HOVERTEXTPAD,ET={box:!0,ohlc:!0,violin:!0,candlestick:!0},bZ={scatter:!0,scattergl:!0,splom:!0};function LT(e,r){return e.distance-r.distance}N2.hover=function(r,t,n,a){r=It.getGraphDiv(r);var o=t.target;It.throttle(r._fullLayout._uid+Zl.HOVERID,Zl.HOVERMINTIME,function(){_Z(r,t,n,a,o)})};N2.loneHover=function(r,t){var n=!0;Array.isArray(r)||(n=!1,r=[r]);var a=t.gd,o=UT(a),i=HT(a),l=r.map(function(M){var y=M._x0||M.x0||M.x||0,k=M._x1||M.x1||M.x||0,S=M._y0||M.y0||M.y||0,x=M._y1||M.y1||M.y||0,T=M.eventData;if(T){var d=Math.min(y,k),_=Math.max(y,k),g=Math.min(S,x),c=Math.max(S,x),A=M.trace;if(su.traceIs(A,"gl3d")){var h=a._fullLayout[A.scene]._scene.container,R=h.offsetLeft,E=h.offsetTop;d+=R,_+=R,g+=E,c+=E}T.bbox={x0:d+i,x1:_+i,y0:g+o,y1:c+o},t.inOut_bbox&&t.inOut_bbox.push(T.bbox)}else T=!1;return{color:M.color||un.defaultLine,x0:M.x0||M.x||0,x1:M.x1||M.x||0,y0:M.y0||M.y||0,y1:M.y1||M.y||0,xLabel:M.xLabel,yLabel:M.yLabel,zLabel:M.zLabel,text:M.text,name:M.name,idealAlign:M.idealAlign,borderColor:M.borderColor,fontFamily:M.fontFamily,fontSize:M.fontSize,fontColor:M.fontColor,fontWeight:M.fontWeight,fontStyle:M.fontStyle,fontVariant:M.fontVariant,nameLength:M.nameLength,textAlign:M.textAlign,trace:M.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:M.hovertemplate||!1,hovertemplateLabels:M.hovertemplateLabels||!1,eventData:T}}),u=!1,s=qT(l,{gd:a,hovermode:"closest",rotateLabels:u,bgColor:t.bgColor||un.background,container:Xl.select(t.container),outerContainer:t.outerContainer||t.container}),f=s.hoverLabels,v=5,p=0,b=0;f.sort(function(M,y){return M.y0-y.y0}).each(function(M,y){var k=M.y0-M.by/2;k-v_[0]._length||H<0||H>g[0]._length)return ih.unhoverRaw(e,r)}if(r.pointerX=re+_[0]._offset,r.pointerY=H+g[0]._offset,"xval"in r?I=ni.flat(o,r.xval):I=ni.p2c(_,re),"yval"in r?F=ni.flat(o,r.yval):F=ni.p2c(g,H),!ao(I[0])||!ao(F[0]))return It.warn("Fx.hover failed",r,e),ih.unhoverRaw(e,r)}var he=1/0;function Ce(mr,ct){for(P=0;Pae&&(D.splice(0,ae),he=D[0].distance),v&&E!==0&&D.length===0){J.distance=E,J.index=!1;var Hr=U._module.hoverPoints(J,Y,q,"closest",{hoverLayer:l._hoverlayer});if(Hr&&(Hr=Hr.filter(function(nt){return nt.spikeDistance<=E})),Hr&&Hr.length){var Ot,Lt=Hr.filter(function(nt){return nt.xa.showspikes&&nt.xa.spikesnap!=="hovered data"});if(Lt.length){var yn=Lt[0];ao(yn.x0)&&ao(yn.y0)&&(Ot=ve(yn),(!Q.vLinePoint||Q.vLinePoint.spikeDistance>Ot.spikeDistance)&&(Q.vLinePoint=Ot))}var Gt=Hr.filter(function(nt){return nt.ya.showspikes&&nt.ya.spikesnap!=="hovered data"});if(Gt.length){var Rt=Gt[0];ao(Rt.x0)&&ao(Rt.y0)&&(Ot=ve(Rt),(!Q.hLinePoint||Q.hLinePoint.spikeDistance>Ot.spikeDistance)&&(Q.hLinePoint=Ot))}}}}}Ce();function Se(mr,ct,Sr){for(var Ur=null,xt=1/0,zr,Hr=0;Hr0&&Math.abs(mr.distance)de-1;Ge--)Ye(D[Ge]);D=qe,Ee()}var We=e._hoverdata,we=[],De=UT(e),Qe=HT(e);for(L=0;L1||D.length>1)||p==="closest"&&oe&&D.length>1,Tr=un.combine(l.plot_bgcolor||un.background,l.paper_bgcolor),Ar=qT(D,{gd:e,hovermode:p,rotateLabels:Cr,bgColor:Tr,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),ft=Ar.hoverLabels;if(ni.isUnifiedHover(p)||(MZ(ft,Cr,l,Ar.commonLabelBoundingBox),BT(ft,Cr,l._invScaleX,l._invScaleY)),a&&a.tagName){var Yr=su.getComponentMethod("annotations","hasClickToShow")(e,we);hZ(Xl.select(a),Yr?"pointer":"")}!a||n||!kZ(e,r,We)||(We&&e.emit("plotly_unhover",{event:r,points:We}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:_,yaxes:g,xvals:I,yvals:F}))}function zT(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var wZ=/([\s\S]*)<\/extra>/;function qT(e,r){var t=r.gd,n=t._fullLayout,a=r.hovermode,o=r.rotateLabels,i=r.bgColor,l=r.container,u=r.outerContainer,s=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||Zl.HOVERFONT,v=r.fontSize||Zl.HOVERFONTSIZE,p=r.fontWeight||n.font.weight,b=r.fontStyle||n.font.style,m=r.fontVariant||n.font.variant,w=r.fontTextcase||n.font.textcase,M=r.fontLineposition||n.font.lineposition,y=r.fontShadow||n.font.shadow,k=e[0],S=k.xa,x=k.ya,T=a.charAt(0),d=T+"Label",_=k[d];if(_===void 0&&S.type==="multicategory")for(var g=0;gn.width-We&&(we=n.width-We),ye.attr("d","M"+(Ze-we)+",0L"+(Ze-we+Ct)+","+Ge+Ct+"H"+We+"v"+Ge+($r*2+Pe.height)+"H"+-We+"V"+Ge+Ct+"H"+(Ze-we-Ct)+"Z"),Ze=we,P.minX=Ze-We,P.maxX=Ze+We,S.side==="top"?(P.minY=Ye-($r*2+Pe.height),P.maxY=Ye-$r):(P.minY=Ye+$r,P.maxY=Ye+($r*2+Pe.height))}else{var De,Qe,Ve;x.side==="right"?(De="start",Qe=1,Ve="",Ze=S._offset+S._length):(De="end",Qe=-1,Ve="-",Ze=S._offset),Ye=x._offset+(k.y0+k.y1)/2,Le.attr("text-anchor",De),ye.attr("d","M0,0L"+Ve+Ct+","+Ct+"V"+($r+Pe.height/2)+"h"+Ve+($r*2+Pe.width)+"V-"+($r+Pe.height/2)+"H"+Ve+Ct+"V-"+Ct+"Z"),P.minY=Ye-($r+Pe.height/2),P.maxY=Ye+($r+Pe.height/2),x.side==="right"?(P.minX=Ze+Ct,P.maxX=Ze+Ct+($r*2+Pe.width)):(P.minX=Ze-Ct-($r*2+Pe.width),P.maxX=Ze-Ct);var ar=Pe.height/2,se=A-Pe.top-ar,K="clip"+n._uid+"commonlabel"+x._id,ne;if(Ze=0?Be=ke:Fe+H=0?Be=Fe:Ee+H=0?ge=ve:Te+te=0?ge=Te:ze+te=0,(ce.idealAlign==="top"||!je)&&nr?(Ve-=se/2,ce.anchor="end"):je?(Ve+=se/2,ce.anchor="start"):ce.anchor="middle",ce.crossPos=Ve;else{if(ce.pos=Ve,je=Qe+ar/2+Ue<=h,nr=Qe-ar/2-Ue>=0,(ce.idealAlign==="left"||!je)&&nr)Qe-=ar/2,ce.anchor="end";else if(je)Qe+=ar/2,ce.anchor="start";else{ce.anchor="middle";var hr=Ue/2,wr=Qe+hr-h,Cr=Qe-hr;wr>0&&(Qe-=wr),Cr<0&&(Qe+=-Cr)}ce.crossPos=Qe}Ye.attr("text-anchor",ce.anchor),We&&Ge.attr("text-anchor",ce.anchor),ye.attr("transform",F2(Qe,Ve)+(o?cZ(NT):""))}),{hoverLabels:Me,commonLabelBoundingBox:P}}function RT(e,r,t,n,a,o){var i="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=It.templateString(e.name,e.trace._meta)),i=FT(e.name,e.nameLength));var u=t.charAt(0),s=u==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[u+"Label"]===a?l=e[s+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),o&&l===""&&!e.hovertemplate&&(i===""&&o.remove(),l=i);var f=e.hovertemplate||!1;if(f){var v=e.hovertemplateLabels||e;e[u+"Label"]!==a&&(v[u+"other"]=v[u+"Val"],v[u+"otherLabel"]=v[u+"Label"]),l=It.hovertemplateString(f,v,n._d3locale,e.eventData[0]||{},e.trace._meta),l=l.replace(wZ,function(p,b){return i=FT(b,e.nameLength),""})}return[l,i]}function MZ(e,r,t,n){var a=r?"xa":"ya",o=r?"ya":"xa",i=0,l=1,u=e.size(),s=new Array(u),f=0,v=n.minX,p=n.maxX,b=n.minY,m=n.maxY,w=function(I){return I*t._invScaleX},M=function(I){return I*t._invScaleY};e.each(function(I){var F=I[a],L=I[o],P=F._id.charAt(0)==="x",O=F.range;f===0&&O&&O[0]>O[1]!==P&&(l=-1);var U=0,X=P?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var $=OT(I,r),j=I.anchor,Y=j==="end"?-1:1,q,J;if(j==="middle")q=I.crossPos+(P?M($.y-I.by/2):w(I.bx/2+I.tx2width/2)),J=q+(P?M(I.by):w(I.bx));else if(P)q=I.crossPos+M(Ct+$.y)-M(I.by/2-Ct),J=q+M(I.by);else{var ae=w(Y*Ct+$.x),Q=ae+w(Y*I.bx);q=I.crossPos+Math.min(ae,Q),J=I.crossPos+Math.max(ae,Q)}P?b!==void 0&&m!==void 0&&Math.min(J,m)-Math.max(q,b)>1&&(L.side==="left"?(U=L._mainLinePosition,X=t.width):X=L._mainLinePosition):v!==void 0&&p!==void 0&&Math.min(J,p)-Math.max(q,v)>1&&(L.side==="top"?(U=L._mainLinePosition,X=t.height):X=L._mainLinePosition)}s[f++]=[{datum:I,traceIndex:I.trace.index,dp:0,pos:I.pos,posref:I.posref,size:I.by*(P?yZ:1)/2,pmin:U,pmax:X}]}),s.sort(function(I,F){return I[0].posref-F[0].posref||l*(F[0].traceIndex-I[0].traceIndex)});var y,k,S,x,T,d,_;function g(I){var F=I[0],L=I[I.length-1];if(k=F.pmin-F.pos-F.dp+F.size,S=L.pos+L.dp+L.size-F.pmax,k>.01){for(T=I.length-1;T>=0;T--)I[T].dp+=k;y=!1}if(!(S<.01)){if(k<-.01){for(T=I.length-1;T>=0;T--)I[T].dp-=S;y=!1}if(y){var P=0;for(x=0;xF.pmax&&P++;for(x=I.length-1;x>=0&&!(P<=0);x--)d=I[x],d.pos>F.pmax-1&&(d.del=!0,P--);for(x=0;x=0;T--)I[T].dp-=S;for(x=I.length-1;x>=0&&!(P<=0);x--)d=I[x],d.pos+d.dp+d.size>F.pmax&&(d.del=!0,P--)}}}for(;!y&&i<=u;){for(i++,y=!0,x=0;x.01){for(T=A.length-1;T>=0;T--)A[T].dp+=k;for(c.push.apply(c,A),s.splice(x+1,1),_=0,T=c.length-1;T>=0;T--)_+=c[T].dp;for(S=_/c.length,T=c.length-1;T>=0;T--)c[T].dp-=S;y=!1}else x++}s.forEach(g)}for(x=s.length-1;x>=0;x--){var E=s[x];for(T=E.length-1;T>=0;T--){var D=E[T],N=D.datum;N.offset=D.dp,N.del=D.del}}}function OT(e,r){var t=0,n=e.offset;return r&&(n*=-xZ,t=e.offset*mZ),{x:t,y:n}}function TZ(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Ct+$r),n=t+r*(e.txwidth+$r),a=e.anchor==="middle";return a&&(t-=e.tx2width/2,n+=e.txwidth/2+$r),{alignShift:r,textShiftX:t,text2ShiftX:n}}function BT(e,r,t,n){var a=function(i){return i*t},o=function(i){return i*n};e.each(function(i){var l=Xl.select(this);if(i.del)return l.remove();var u=l.select("text.nums"),s=i.anchor,f=s==="end"?-1:1,v=TZ(i),p=OT(i,r),b=p.x,m=p.y,w=s==="middle";l.select("path").attr("d",w?"M-"+a(i.bx/2+i.tx2width/2)+","+o(m-i.by/2)+"h"+a(i.bx)+"v"+o(i.by)+"h-"+a(i.bx)+"Z":"M0,0L"+a(f*Ct+b)+","+o(Ct+m)+"v"+o(i.by/2-Ct)+"h"+a(f*i.bx)+"v-"+o(i.by)+"H"+a(f*Ct+b)+"V"+o(m-Ct)+"Z");var M=b+v.textShiftX,y=m+i.ty0-i.by/2+$r,k=i.textAlign||"auto";k!=="auto"&&(k==="left"&&s!=="start"?(u.attr("text-anchor","start"),M=w?-i.bx/2-i.tx2width/2+$r:-i.bx-$r):k==="right"&&s!=="end"&&(u.attr("text-anchor","end"),M=w?i.bx/2-i.tx2width/2-$r:i.bx+$r)),u.call(Fa.positionText,a(M),o(y)),i.tx2width&&(l.select("text.name").call(Fa.positionText,a(v.text2ShiftX+v.alignShift*$r+b),o(m+i.ty0-i.by/2+$r)),l.select("rect").call(Ii.setRect,a(v.text2ShiftX+(v.alignShift-1)*i.tx2width/2+b),o(m-i.by/2-1),a(i.tx2width),o(i.by+2)))})}function AZ(e,r){var t=e.index,n=e.trace||{},a=e.cd[0],o=e.cd[t]||{};function i(p){return p||ao(p)&&p===0}var l=Array.isArray(t)?function(p,b){var m=It.castOption(a,t,p);return i(m)?m:It.extractOption({},n,"",b)}:function(p,b){return It.extractOption(o,n,p,b)};function u(p,b,m){var w=l(b,m);i(w)&&(e[p]=w)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("fontWeight","htw","hoverlabel.font.weight"),u("fontStyle","hty","hoverlabel.font.style"),u("fontVariant","htv","hoverlabel.font.variant"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=It.constrain(e.x0,0,e.xa._length),e.x1=It.constrain(e.x1,0,e.xa._length),e.y0=It.constrain(e.y0,0,e.ya._length),e.y1=It.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Ni.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Ni.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var s=Ni.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+s+" / -"+Ni.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+s,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Ni.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Ni.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var v=e.hoverinfo||e.trace.hoverinfo;return v&&v!=="all"&&(v=Array.isArray(v)?v:v.split("+"),v.indexOf("x")===-1&&(e.xLabel=void 0),v.indexOf("y")===-1&&(e.yLabel=void 0),v.indexOf("z")===-1&&(e.zLabel=void 0),v.indexOf("text")===-1&&(e.text=void 0),v.indexOf("name")===-1&&(e.name=void 0)),e}function DT(e,r,t){var n=t.container,a=t.fullLayout,o=a._size,i=t.event,l=!!r.hLinePoint,u=!!r.vLinePoint,s,f;if(n.selectAll(".spikeline").remove(),!!(u||l)){var v=un.combine(a.plot_bgcolor,a.paper_bgcolor);if(l){var p=r.hLinePoint,b,m;s=p&&p.xa,f=p&&p.ya;var w=f.spikesnap;w==="cursor"?(b=i.pointerX,m=i.pointerY):(b=s._offset+p.x,m=f._offset+p.y);var M=CT.readability(p.color,v)<1.5?un.contrast(v):p.color,y=f.spikemode,k=f.spikethickness,S=f.spikecolor||M,x=Ni.getPxPosition(e,f),T,d;if(y.indexOf("toaxis")!==-1||y.indexOf("across")!==-1){if(y.indexOf("toaxis")!==-1&&(T=x,d=b),y.indexOf("across")!==-1){var _=f._counterDomainMin,g=f._counterDomainMax;f.anchor==="free"&&(_=Math.min(_,f.position),g=Math.max(g,f.position)),T=o.l+_*o.w,d=o.l+g*o.w}n.insert("line",":first-child").attr({x1:T,x2:d,y1:m,y2:m,"stroke-width":k,stroke:S,"stroke-dasharray":Ii.dashStyle(f.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:T,x2:d,y1:m,y2:m,"stroke-width":k+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}y.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:x+(f.side!=="right"?k:-k),cy:m,r:k,fill:S}).classed("spikeline",!0)}if(u){var c=r.vLinePoint,A,h;s=c&&c.xa,f=c&&c.ya;var R=s.spikesnap;R==="cursor"?(A=i.pointerX,h=i.pointerY):(A=s._offset+c.x,h=f._offset+c.y);var E=CT.readability(c.color,v)<1.5?un.contrast(v):c.color,D=s.spikemode,N=s.spikethickness,I=s.spikecolor||E,F=Ni.getPxPosition(e,s),L,P;if(D.indexOf("toaxis")!==-1||D.indexOf("across")!==-1){if(D.indexOf("toaxis")!==-1&&(L=F,P=h),D.indexOf("across")!==-1){var O=s._counterDomainMin,U=s._counterDomainMax;s.anchor==="free"&&(O=Math.min(O,s.position),U=Math.max(U,s.position)),L=o.t+(1-U)*o.h,P=o.t+(1-O)*o.h}n.insert("line",":first-child").attr({x1:A,x2:A,y1:L,y2:P,"stroke-width":N,stroke:I,"stroke-dasharray":Ii.dashStyle(s.spikedash,N)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:A,x2:A,y1:L,y2:P,"stroke-width":N+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}D.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:A,cy:F-(s.side!=="top"?N:-N),r:N,fill:I}).classed("spikeline",!0)}}}function kZ(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var n=t.length-1;n>=0;n--){var a=t[n],o=e._hoverdata[n];if(a.curveNumber!==o.curveNumber||String(a.pointNumber)!==String(o.pointNumber)||String(a.pointNumbers)!==String(o.pointNumbers))return!0}return!1}function PT(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function FT(e,r){return Fa.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function SZ(e,r){for(var t=r.charAt(0),n=[],a=[],o=[],i=0;i{"use strict";var CZ=ir(),EZ=Zr(),LZ=to().isUnifiedHover;VT.exports=function(r,t,n,a){a=a||{};var o=t.legend;function i(l){a.font[l]||(a.font[l]=o?t.legend.font[l]:t.font[l])}t&&LZ(t.hovermode)&&(a.font||(a.font={}),i("size"),i("family"),i("color"),i("weight"),i("style"),i("variant"),o?(a.bgcolor||(a.bgcolor=EZ.combine(t.legend.bgcolor,t.paper_bgcolor)),a.bordercolor||(a.bordercolor=t.legend.bordercolor)):a.bgcolor||(a.bgcolor=t.paper_bgcolor)),n("hoverlabel.bgcolor",a.bgcolor),n("hoverlabel.bordercolor",a.bordercolor),n("hoverlabel.namelength",a.namelength),CZ.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}});var YT=pe((Xce,GT)=>{"use strict";var RZ=ir(),DZ=oh(),PZ=_l();GT.exports=function(r,t){function n(a,o){return RZ.coerce(r,t,PZ,a,o)}DZ(r,t,n)}});var ZT=pe((Zce,XT)=>{"use strict";var WT=ir(),FZ=Ec(),IZ=oh();XT.exports=function(r,t,n,a){function o(l,u){return WT.coerce(r,t,FZ,l,u)}var i=WT.extendFlat({},a.hoverlabel);t.hovertemplate&&(i.namelength=-1),IZ(r,t,o,i)}});var q2=pe((Jce,JT)=>{"use strict";var NZ=ir(),zZ=_l();JT.exports=function(r,t){function n(a,o){return t[a]!==void 0?t[a]:NZ.coerce(r,t,zZ,a,o)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var $T=pe((Kce,QT)=>{"use strict";var KT=ir(),qZ=_l(),OZ=q2(),BZ=oh();QT.exports=function(r,t){function n(f,v){return KT.coerce(r,t,qZ,f,v)}var a=OZ(r,t);a&&(n("hoverdistance"),n("spikedistance"));var o=n("dragmode");o==="select"&&n("selectdirection");var i=t._has("mapbox"),l=t._has("map"),u=t._has("geo"),s=t._basePlotModules.length;t.dragmode==="zoom"&&((i||l||u)&&s===1||(i||l)&&u&&s===2)&&(t.dragmode="pan"),BZ(r,t,n),KT.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var r9=pe((Qce,e9)=>{"use strict";var O2=ir(),jT=Er();e9.exports=function(r){var t=r.calcdata,n=r._fullLayout;function a(s){return function(f){return O2.coerceHoverinfo({hoverinfo:f},{_module:s._module},n)}}for(var o=0;o{"use strict";var HZ=Er(),VZ=z2().hover;t9.exports=function(r,t,n){var a=HZ.getComponentMethod("annotations","onClick")(r,r._hoverdata);n!==void 0&&VZ(r,t,n,!0);function o(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(a&&a.then?a.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var io=pe((jce,o9)=>{"use strict";var GZ=it(),lh=ir(),YZ=ti(),zf=to(),a9=_l(),i9=z2();o9.exports={moduleType:"component",name:"fx",constants:sf(),schema:{layout:a9},attributes:Ec(),layoutAttributes:a9,supplyLayoutGlobalDefaults:YT(),supplyDefaults:ZT(),supplyLayoutDefaults:$T(),calc:r9(),getDistanceFunction:zf.getDistanceFunction,getClosest:zf.getClosest,inbox:zf.inbox,quadrature:zf.quadrature,appendArrayPointValue:zf.appendArrayPointValue,castHoverOption:XZ,castHoverinfo:ZZ,hover:i9.hover,unhover:YZ.unhover,loneHover:i9.loneHover,loneUnhover:WZ,click:n9()};function WZ(e){var r=lh.isD3Selection(e)?e:GZ.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function XZ(e,r,t){return lh.castOption(e,r,"hoverlabel."+t)}function ZZ(e,r,t){function n(a){return lh.coerceHoverinfo({hoverinfo:a},{_module:e._module},r)}return lh.castOption(e,t,"hoverinfo",n)}});var uu=pe(oo=>{"use strict";oo.selectMode=function(e){return e==="lasso"||e==="select"};oo.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};oo.openMode=function(e){return e==="drawline"||e==="drawopenpath"};oo.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};oo.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};oo.selectingOrDrawing=function(e){return oo.freeMode(e)||oo.rectMode(e)}});var sh=pe((rve,l9)=>{"use strict";l9.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var uh=pe((tve,s9)=>{"use strict";s9.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var ch=pe((nve,u9)=>{"use strict";var fh=32;u9.exports={CIRCLE_SIDES:fh,i000:0,i090:fh/4,i180:fh/2,i270:fh/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var vh=pe((ave,c9)=>{"use strict";var JZ=ir().strTranslate;function f9(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function KZ(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function QZ(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return f9(e,t[r])}}function $Z(e){return JZ(e.xaxis._offset,e.yaxis._offset)}c9.exports={p2r:f9,r2p:KZ,axValue:QZ,getTransform:$Z}});var Go=pe(lo=>{"use strict";var jZ=Cg(),d9=ch(),fu=d9.CIRCLE_SIDES,B2=d9.SQRT2,p9=vh(),v9=p9.p2r,h9=p9.r2p,eJ=[0,3,4,5,6,1,2],rJ=[0,3,4,1,2];lo.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",n=0;n0&&u{"use strict";var b9=uu(),tJ=b9.drawMode,nJ=b9.openMode,cu=ch(),g9=cu.i000,y9=cu.i090,m9=cu.i180,x9=cu.i270,aJ=cu.cos45,iJ=cu.sin45,_9=vh(),dh=_9.p2r,Yo=_9.r2p,oJ=Fo(),lJ=oJ.clearOutline,ph=Go(),sJ=ph.readPaths,uJ=ph.writePaths,fJ=ph.ellipseOver,cJ=ph.fixDatesForPaths;function vJ(e,r){if(e.length){var t=e[0][0];if(t){var n=r.gd,a=r.isActiveShape,o=r.dragmode,i=(n.layout||{}).shapes||[];if(!tJ(o)&&a!==void 0){var l=n._fullLayout._activeShapeIndex;if(l{"use strict";var hJ=uu(),dJ=hJ.selectMode,pJ=Fo(),gJ=pJ.clearOutline,U2=Go(),yJ=U2.readPaths,mJ=U2.writePaths,xJ=U2.fixDatesForPaths;T9.exports=function(r,t){if(r.length){var n=r[0][0];if(n){var a=n.getAttribute("d"),o=t.gd,i=o._fullLayout.newselection,l=t.plotinfo,u=l.xaxis,s=l.yaxis,f=t.isActiveSelection,v=t.dragmode,p=(o.layout||{}).selections||[];if(!dJ(v)&&f!==void 0){var b=o._fullLayout._activeSelectionIndex;if(b{"use strict";A9.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var Wo=pe(dn=>{"use strict";var Jl=Of(),k9=ir(),yh=St();dn.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};dn.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};dn.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};dn.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};dn.extractPathCoords=function(e,r,t){var n=[],a=e.match(Jl.segmentRE);return a.forEach(function(o){var i=r[o.charAt(0)].drawn;if(i!==void 0){var l=o.substr(1).match(Jl.paramRE);if(!(!l||l.lengthb&&(w="X"),w});return s>b&&(m=m.replace(/[\s,]*X.*/,""),k9.log("Ignoring extra params in segment "+u)),f+m})}function Bf(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var G2=pe((fve,L9)=>{"use strict";var _J=ir(),vu=St(),S9=Yn(),C9=yt(),wJ=Go().readPaths,V2=Wo(),MJ=V2.getPathString,E9=Oc(),TJ=qn().FROM_TL;L9.exports=function(r,t,n,a){if(a.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var o;if(n.label.texttemplate){var i={};if(n.type!=="path"){var l=vu.getFromId(r,n.xref),u=vu.getFromId(r,n.yref);for(var s in E9){var f=E9[s](n,l,u);f!==void 0&&(i[s]=f)}}o=_J.texttemplateStringForShapes(n.label.texttemplate,{},r._fullLayout._d3locale,i)}else o=n.label.text;var v={"data-index":t},p=n.label.font,b={"data-notex":1},m=a.append("g").attr(v).classed("shape-label",!0),w=m.append("text").attr(b).classed("shape-label-text",!0).text(o),M,y,k,S;if(n.path){var x=MJ(r,n),T=wJ(x,r);M=1/0,k=1/0,y=-1/0,S=-1/0;for(var d=0;d=e?a=r-n:a=n-r,-180/Math.PI*Math.atan2(a,o)}function kJ(e,r,t,n,a,o,i){var l=a.label.textposition,u=a.label.textangle,s=a.label.padding,f=a.type,v=Math.PI/180*o,p=Math.sin(v),b=Math.cos(v),m=a.label.xanchor,w=a.label.yanchor,M,y,k,S;if(f==="line"){l==="start"?(M=e,y=r):l==="end"?(M=t,y=n):(M=(e+t)/2,y=(r+n)/2),m==="auto"&&(l==="start"?u==="auto"?t>e?m="left":te?m="right":te?m="right":te?m="left":t{"use strict";var SJ=ir(),CJ=SJ.strTranslate,R9=ti(),F9=uu(),EJ=F9.drawMode,I9=F9.selectMode,N9=Er(),D9=Zr(),xh=ch(),LJ=xh.i000,RJ=xh.i090,DJ=xh.i180,PJ=xh.i270,FJ=Fo(),z9=FJ.clearOutlineControllers,W2=Go(),mh=W2.pointsOnRectangle,Y2=W2.pointsOnEllipse,IJ=W2.writePaths,NJ=gh().newShapes,zJ=gh().createShapeObj,qJ=H2(),OJ=G2();q9.exports=function e(r,t,n,a){a||(a=0);var o=n.gd;function i(){e(r,t,n,a++),(Y2(r[0])||n.hasText)&&l({redrawing:!0})}function l(F){var L={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,L=NJ(t,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,L=qJ(t,n),o._fullLayout._reselect=!0),Object.keys(L).length&&N9.call((F||{}).redrawing?"relayout":"_guiRelayout",o,L)}var u=o._fullLayout,s=u._zoomlayer,f=n.dragmode,v=EJ(f),p=I9(f);(v||p)&&(o._fullLayout._outlining=!0),z9(o),t.attr("d",IJ(r));var b,m,w,M,y;if(!a&&(n.isActiveShape||n.isActiveSelection)){y=BJ([],r);var k=s.append("g").attr("class","outline-controllers");A(k),I()}if(v&&n.hasText){var S=s.select(".label-temp"),x=zJ(t,n,n.dragmode);OJ(o,"label-temp",x,S)}function T(F){w=+F.srcElement.getAttribute("data-i"),M=+F.srcElement.getAttribute("data-j"),b[w][M].moveFn=d}function d(F,L){if(r.length){var P=y[w][M][1],O=y[w][M][2],U=r[w],X=U.length;if(mh(U)){var $=F,j=L;if(n.isActiveSelection){var Y=P9(U,M);Y[1]===U[M][1]?j=0:$=0}for(var q=0;q1&&!(F.length===2&&F[1][0]==="Z")&&(M===0&&(F[0][0]="M"),r[w]=F,i(),l())}}function c(F,L){if(F===2){w=+L.srcElement.getAttribute("data-i"),M=+L.srcElement.getAttribute("data-j");var P=r[w];!mh(P)&&!Y2(P)&&g()}}function A(F){b=[];for(var L=0;L{"use strict";var HJ=it(),G9=Er(),O9=ir(),hu=St(),VJ=Go().readPaths,GJ=bh(),wh=G2(),Y9=Fo().clearOutlineControllers,X2=Zr(),J2=yt(),YJ=gt().arrayEditor,B9=ti(),U9=Vo(),Kl=Of(),la=Wo(),Z2=la.getPathString;Z9.exports={draw:K2,drawOne:W9,eraseActiveShape:ZJ,drawLabel:wh};function K2(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var n=r._plots[t].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var a=0;ai&&ke>l&&!Se.shiftKey?B9.getCursor(Fe/Te,1-Ee/ke):"move";U9(r,ze),J=ze.split("-")[0]}}function ee(Se){_h(e)||(u&&(y=U(t.xanchor)),s&&(k=X(t.yanchor)),t.type==="path"?h=t.path:(b=u?t.x0:U(t.x0),m=s?t.y0:X(t.y0),w=u?t.x1:U(t.x1),M=s?t.y1:X(t.y1)),bM?(S=m,_="y0",x=M,g="y1"):(S=M,_="y1",x=m,g="y0"),oe(Se),ue(a,t),Ce(r,t,e),q.moveFn=J==="move"?H:te,q.altKey=Se.altKey)}function V(){_h(e)||(U9(r),he(a),X9(r,e,t),G9.call("_guiRelayout",e,o.getUpdateObj()))}function re(){_h(e)||he(a)}function H(Se,ve){if(t.type==="path"){var Te=function(Ee){return Ee},ke=Te,Fe=Te;u?p("xanchor",t.xanchor=$(y+Se)):(ke=function(ze){return $(U(ze)+Se)},E&&E.type==="date"&&(ke=la.encodeDate(ke))),s?p("yanchor",t.yanchor=j(k+ve)):(Fe=function(ze){return j(X(ze)+ve)},N&&N.type==="date"&&(Fe=la.encodeDate(Fe))),p("path",t.path=H9(h,ke,Fe))}else u?p("xanchor",t.xanchor=$(y+Se)):(p("x0",t.x0=$(b+Se)),p("x1",t.x1=$(w+Se))),s?p("yanchor",t.yanchor=j(k+ve)):(p("y0",t.y0=j(m+ve)),p("y1",t.y1=j(M+ve)));r.attr("d",Z2(e,t)),ue(a,t),wh(e,n,t,R)}function te(Se,ve){if(v){var Te=function(Pe){return Pe},ke=Te,Fe=Te;u?p("xanchor",t.xanchor=$(y+Se)):(ke=function(Ze){return $(U(Ze)+Se)},E&&E.type==="date"&&(ke=la.encodeDate(ke))),s?p("yanchor",t.yanchor=j(k+ve)):(Fe=function(Ze){return j(X(Ze)+ve)},N&&N.type==="date"&&(Fe=la.encodeDate(Fe))),p("path",t.path=H9(h,ke,Fe))}else if(f){if(J==="resize-over-start-point"){var Ee=b+Se,ze=s?m-ve:m+ve;p("x0",t.x0=u?Ee:$(Ee)),p("y0",t.y0=s?ze:j(ze))}else if(J==="resize-over-end-point"){var Be=w+Se,ge=s?M-ve:M+ve;p("x1",t.x1=u?Be:$(Be)),p("y1",t.y1=s?ge:j(ge))}}else{var Me=function(Pe){return J.indexOf(Pe)!==-1},ce=Me("n"),ye=Me("s"),Le=Me("w"),me=Me("e"),de=ce?S+ve:S,be=ye?x+ve:x,Ae=Le?T+Se:T,qe=me?d+Se:d;s&&(ce&&(de=S-ve),ye&&(be=x-ve)),(!s&&be-de>l||s&&de-be>l)&&(p(_,t[_]=s?de:j(de)),p(g,t[g]=s?be:j(be))),qe-Ae>i&&(p(c,t[c]=u?Ae:$(Ae)),p(A,t[A]=u?qe:$(qe)))}r.attr("d",Z2(e,t)),ue(a,t),wh(e,n,t,R)}function ue(Se,ve){(u||s)&&Te();function Te(){var ke=ve.type!=="path",Fe=Se.selectAll(".visual-cue").data([0]),Ee=1;Fe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Ee}).classed("visual-cue",!0);var ze=U(u?ve.xanchor:O9.midRange(ke?[ve.x0,ve.x1]:la.extractPathCoords(ve.path,Kl.paramIsX))),Be=X(s?ve.yanchor:O9.midRange(ke?[ve.y0,ve.y1]:la.extractPathCoords(ve.path,Kl.paramIsY)));if(ze=la.roundPositionForSharpStrokeRendering(ze,Ee),Be=la.roundPositionForSharpStrokeRendering(Be,Ee),u&&s){var ge="M"+(ze-1-Ee)+","+(Be-1-Ee)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Fe.attr("d",ge)}else if(u){var Me="M"+(ze-1-Ee)+","+(Be-9-Ee)+"v18 h2 v-18 Z";Fe.attr("d",Me)}else{var ce="M"+(ze-9-Ee)+","+(Be-1-Ee)+"h18 v2 h-18 Z";Fe.attr("d",ce)}}}function he(Se){Se.selectAll(".visual-cue").remove()}function Ce(Se,ve,Te){var ke=ve.xref,Fe=ve.yref,Ee=hu.getFromId(Te,ke),ze=hu.getFromId(Te,Fe),Be="";ke!=="paper"&&!Ee.autorange&&(Be+=ke),Fe!=="paper"&&!ze.autorange&&(Be+=Fe),J2.setClipUrl(Se,Be?"clip"+Te._fullLayout._uid+Be:null,Te)}}function H9(e,r,t){return e.replace(Kl.segmentRE,function(n){var a=0,o=n.charAt(0),i=Kl.paramIsX[o],l=Kl.paramIsY[o],u=Kl.numParams[o],s=n.substr(1).replace(Kl.paramRE,function(f){return a>=u||(i[a]?f=r(f):l[a]&&(f=t(f)),a++),f});return o+s})}function XJ(e,r){if(Mh(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){V9(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=V9,K2(e)}}}function V9(e){if(Mh(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(Y9(e),delete e._fullLayout._activeShapeIndex,K2(e))}}function ZJ(e){if(Mh(e)){Y9(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Ia=Er(),J9=ln(),K9=on(),jr=uh(),JJ=Th().eraseActiveShape,Ah=ir(),Kr=Ah._,et=nA.exports={};et.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Kr(e,"Download plot as a PNG"):Kr(e,"Download plot")},icon:jr.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};Ah.notifier(Kr(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in r&&(t[n]=r[n])}),Ia.call("downloadImage",e,t).then(function(n){Ah.notifier(Kr(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){Ah.notifier(Kr(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};et.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Kr(e,"Edit in Chart Studio")},icon:jr.disk,click:function(e){J9.sendDataToCloud(e)}};et.editInChartStudio={name:"editInChartStudio",title:function(e){return Kr(e,"Edit in Chart Studio")},icon:jr.pencil,click:function(e){J9.sendDataToCloud(e)}};et.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Kr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:jr.zoombox,click:Un};et.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Kr(e,"Pan")},attr:"dragmode",val:"pan",icon:jr.pan,click:Un};et.select2d={name:"select2d",_cat:"select",title:function(e){return Kr(e,"Box Select")},attr:"dragmode",val:"select",icon:jr.selectbox,click:Un};et.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Kr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:jr.lasso,click:Un};et.drawclosedpath={name:"drawclosedpath",title:function(e){return Kr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:jr.drawclosedpath,click:Un};et.drawopenpath={name:"drawopenpath",title:function(e){return Kr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:jr.drawopenpath,click:Un};et.drawline={name:"drawline",title:function(e){return Kr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:jr.drawline,click:Un};et.drawrect={name:"drawrect",title:function(e){return Kr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:jr.drawrect,click:Un};et.drawcircle={name:"drawcircle",title:function(e){return Kr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:jr.drawcircle,click:Un};et.eraseshape={name:"eraseshape",title:function(e){return Kr(e,"Erase active shape")},icon:jr.eraseshape,click:JJ};et.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Kr(e,"Zoom in")},attr:"zoom",val:"in",icon:jr.zoom_plus,click:Un};et.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Kr(e,"Zoom out")},attr:"zoom",val:"out",icon:jr.zoom_minus,click:Un};et.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Kr(e,"Autoscale")},attr:"zoom",val:"auto",icon:jr.autoscale,click:Un};et.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Kr(e,"Reset axes")},attr:"zoom",val:"reset",icon:jr.home,click:Un};et.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Kr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:jr.tooltip_basic,gravity:"ne",click:Un};et.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Kr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:jr.tooltip_compare,gravity:"ne",click:Un};function Un(e,r){var t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,o=e._fullLayout,i={},l=K9.list(e,null,!0),u=o._cartesianSpikesEnabled,s,f;if(n==="zoom"){var v=a==="in"?.5:2,p=(1+v)/2,b=(1-v)/2,m;for(f=0;f{"use strict";var aA=j2(),$J=Object.keys(aA),iA=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],oA=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(iA),pu=[],jJ=function(e){if(oA.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();pu.indexOf(r)===-1&&pu.push(r),pu.indexOf(t)===-1&&pu.push(t)}};$J.forEach(function(e){jJ(aA[e])});pu.sort();lA.exports={DRAW_MODES:iA,backButtons:oA,foreButtons:pu}});var ry=pe((gve,sA)=>{"use strict";var pve=ey();sA.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var fA=pe((yve,uA)=>{"use strict";var eK=ir(),Uf=Zr(),rK=gt(),tK=ry();uA.exports=function(r,t){var n=r.modebar||{},a=rK.newContainer(t,"modebar");function o(l,u){return eK.coerce(n,a,tK,l,u)}o("orientation"),o("bgcolor",Uf.addOpacity(t.paper_bgcolor,.5));var i=Uf.contrast(Uf.rgb(t.modebar.bgcolor));o("color",Uf.addOpacity(i,.3)),o("activecolor",Uf.addOpacity(i,.7)),o("uirevision",t.uirevision),o("add"),o("remove")}});var dA=pe((mve,hA)=>{"use strict";var ty=it(),nK=rt(),Sh=ir(),cA=uh(),aK=pc().version,iK=new DOMParser;function vA(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var zi=vA.prototype;zi.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,n=this.graphInfo._fullLayout,a="modebar-"+n._uid;this.element.setAttribute("id",a),this._uid=a,this.element.className="modebar",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var o=n.modebar,i="#"+a+" .modebar-group";document.querySelectorAll(i).forEach(function(v){v.style.backgroundColor=o.bgcolor});var l=!this.hasButtons(r),u=this.hasLogo!==t.displaylogo,s=this.locale!==t.locale;if(this.locale=t.locale,(l||u||s)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),Sh.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+o.activecolor,"fill: "+o.color,this.element)};zi.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var n=r.createGroup();t.forEach(function(a){var o=a.name;if(!o)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(o)!==-1)throw new Error("button name '"+o+"' is taken");r.buttonsNames.push(o);var i=r.createButton(a);r.buttonElements.push(i),n.appendChild(i)}),r.element.appendChild(n)})};zi.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};zi.createButton=function(e){var r=this,t=document.createElement("a");t.setAttribute("rel","tooltip"),t.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&t.setAttribute("data-title",n),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),t.setAttribute("data-val",a));var o=e.click;if(typeof o!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&ty.select(t).classed("active",!0);var i=e.icon;return typeof i=="function"?t.appendChild(i()):t.appendChild(this.createIcon(i||cA.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};zi.createIcon=function(e){var r=nK(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(t,"svg"),n.setAttribute("viewBox",[0,0,e.width,r].join(" ")),n.setAttribute("class","icon");var a=document.createElementNS(t,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(a)}if(e.svg){var o=iK.parseFromString(e.svg,"application/xml");n=o.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};zi.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var a=n.getAttribute("data-val")||!0,o=n.getAttribute("data-attr"),i=n.getAttribute("data-toggle")==="true",l=ty.select(n),u=function(v,p){var b=r.modebar,m=v.querySelector(".icon path");m&&(p||v.matches(":hover")?m.style.fill=b.activecolor:m.style.fill=b.color)};if(i){if(o===t){var s=!l.classed("active");l.classed("active",s),u(n,s)}}else{var f=o===null?o:Sh.nestedProperty(r,o).get();l.classed("active",f===a),u(n,f===a)}})};zi.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var sK=on(),pA=ia(),ny=Er(),uK=to().isUnifiedHover,fK=dA(),Ch=j2(),cK=ey().DRAW_MODES,vK=ir().extendDeep;gA.exports=function(r){var t=r._fullLayout,n=r._context,a=t._modeBar;if(!n.displayModeBar&&!n.watermark){a&&(a.destroy(),delete t._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var o=n.modeBarButtons,i;Array.isArray(o)&&o.length?i=mK(o):!n.displayModeBar&&n.watermark?i=[]:i=hK(r),a?a.update(r,i):t._modeBar=fK(r,i)};function hK(e){var r=e._fullLayout,t=e._fullData,n=e._context;function a(L,P){if(typeof P=="string"){if(P.toLowerCase()===L.toLowerCase())return!0}else{var O=P.name,U=P._cat||P.name;if(O===L||U===L.toLowerCase())return!0}return!1}var o=r.modebar.add;typeof o=="string"&&(o=[o]);var i=r.modebar.remove;typeof i=="string"&&(i=[i]);var l=n.modeBarButtonsToAdd.concat(o.filter(function(L){for(var P=0;P1?(A=["toggleHover"],h=["resetViews"]):v?(c=["zoomInGeo","zoomOutGeo"],A=["hoverClosestGeo"],h=["resetGeo"]):f?(A=["hoverClosest3d"],h=["resetCameraDefault3d","resetCameraLastSave3d"]):w?(c=["zoomInMapbox","zoomOutMapbox"],A=["toggleHover"],h=["resetViewMapbox"]):M?(c=["zoomInMap","zoomOutMap"],A=["toggleHover"],h=["resetViewMap"]):p?A=["hoverClosestPie"]:S?(A=["hoverClosestCartesian","hoverCompareCartesian"],h=["resetViewSankey"]):A=["toggleHover"],s&&A.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(gK(t)||T)&&(A=[]),s&&!x&&(c=["zoomIn2d","zoomOut2d","autoScale2d"],h[0]!=="resetViews"&&(h=["resetScale2d"])),f?R=["zoom3d","pan3d","orbitRotation","tableRotation"]:s&&!x||m?R=["zoom2d","pan2d"]:w||M||v?R=["pan2d"]:y&&(R=["zoom2d"]),pK(t)&&R.push("select2d","lasso2d");var E=[],D=function(L){E.indexOf(L)===-1&&A.indexOf(L)!==-1&&E.push(L)};if(Array.isArray(l)){for(var N=[],I=0;I{"use strict";mA.exports={moduleType:"component",name:"modebar",layoutAttributes:ry(),supplyLayoutDefaults:fA(),manage:yA()}});var iy=pe((_ve,xA)=>{"use strict";var xK=qn().FROM_BL;xA.exports=function(r,t,n){n===void 0&&(n=xK[r.constraintoward||"center"]);var a=[r.r2l(r.range[0]),r.r2l(r.range[1])],o=a[0]+(a[1]-a[0])*n;r.range=r._input.range=[r.l2r(o+(a[0]-o)*t),r.l2r(o+(a[1]-o)*t)],r.setScale()}});var Vf=pe(Hf=>{"use strict";var Ql=ir(),oy=$s(),ai=on().id2name,bK=Ra(),bA=iy(),_K=Rv(),wK=nn().ALMOST_EQUAL,MK=qn().FROM_BL;Hf.handleDefaults=function(e,r,t){var n=t.axIds,a=t.axHasImage,o=r._axisConstraintGroups=[],i=r._axisMatchGroups=[],l,u,s,f,v,p,b,m;for(l=0;lo?t.substr(o):n.substr(a))+i}function AK(e,r){for(var t=r._size,n=t.h/t.w,a={},o=Object.keys(e),i=0;iwK*m&&!k)){for(o=0;oR&&OA&&(A=O);var X=(A-c)/(2*h);v/=X,c=u.l2r(c),A=u.l2r(A),u.range=u._input.range=d<_?[c,A]:[A,c]}wA(u,v)}}}};Hf.getAxisGroup=function(r,t){for(var n=r._axisMatchGroups,a=0;a{"use strict";var Lh=it(),Hn=Er(),ma=ln(),Na=ir(),uy=Yn(),fy=sh(),Gf=Zr(),gu=yt(),TA=Sf(),EA=ay(),Yf=St(),so=qn(),LA=Vf(),kK=LA.enforce,SK=LA.clean,AA=$s().doAutoRange,RA="start",CK="middle",DA="end",EK=wn().zindexSeparator;fn.layoutStyles=function(e){return Na.syncOrAsync([ma.doAutoMargin,RK],e)};function LK(e,r,t){for(var n=0;n=e[1]||a[1]<=e[0])&&o[0]r[0])return!0}return!1}function RK(e){var r=e._fullLayout,t=r._size,n=t.p,a=Yf.list(e,"",!0),o,i,l,u,s,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(gu.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),fn.drawMainTitle(e),EA.manage(e),!r._has("cartesian"))return ma.previousPromises(e);function v(ee,V,re){var H=ee._lw/2;if(ee._id.charAt(0)==="x"){if(V){if(re==="top")return V._offset-n-H}else return t.t+t.h*(1-(ee.position||0))+H%1;return V._offset+V._length+n+H}if(V){if(re==="right")return V._offset+V._length+n+H}else return t.l+t.w*(ee.position||0)+H%1;return V._offset-n-H}for(o=0;o0){IK(e,o,s,u),l.attr({x:i,y:o,"text-anchor":n,dy:CA(r.yanchor)}).call(uy.positionText,i,o);var f=(r.text.match(uy.BR_TAG_ALL)||[]).length;if(f){var v=so.LINE_SPACING*f+so.MID_SHIFT;r.y===0&&(v=-v),l.selectAll(".line").each(function(){var M=+this.getAttribute("dy").slice(0,-2)-v+"em";this.setAttribute("dy",M)})}var p=Lh.selectAll(".gtitle-subtitle");if(p.node()){var b=l.node().getBBox(),m=b.y+b.height,w=m+TA.SUBTITLE_PADDING_EM*r.subtitle.font.size;p.attr({x:i,y:w,"text-anchor":n,dy:CA(r.yanchor)}).call(uy.positionText,i,w)}}}};function DK(e,r,t,n,a){var o=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,i=Na.isTopAnchor(r)?n:n-a,l=t==="b"?o-i:i;return Na.isTopAnchor(r)&&t==="t"||Na.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",i=e._fullLayout.margin[o],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=PK(o,n,a,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>i?l:0}function IK(e,r,t,n){var a="title.automargin",o=e._fullLayout.title,i=o.y>.5?"t":"b",l={x:o.x,y:o.y,t:0,b:0},u={};o.yref==="paper"&&DK(e,o,i,r,n)?l[i]=t:o.yref==="container"&&(u[i]=t,e._fullLayout._reservedMargin[a]=u),ma.allowAutoMargin(e,a),ma.autoMargin(e,a,l)}function NK(e,r){var t=e.title,n=e._size,a=0;switch(r===RA?a=t.pad.l:r===DA&&(a=-t.pad.r),t.xref){case"paper":return n.l+n.w*t.x+a;case"container":default:return e.width*t.x+a}}function zK(e,r){var t=e.title,n=e._size,a=0;if(r==="0em"||!r?a=-t.pad.b:r===so.CAP_SHIFT+"em"&&(a=t.pad.t),t.y==="auto")return n.t/2;switch(t.yref){case"paper":return n.t+n.h-n.h*t.y+a;case"container":default:return e.height-e.height*t.y+a}}function CA(e){return e==="top"?so.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":so.MID_SHIFT+"em"}function qK(e){var r=e.title,t=CK;return Na.isRightAnchor(r)?t=DA:Na.isLeftAnchor(r)&&(t=RA),t}function OK(e){var r=e.title,t="0em";return Na.isTopAnchor(r)?t=so.CAP_SHIFT+"em":Na.isMiddleAnchor(r)&&(t=so.MID_SHIFT+"em"),t}fn.doTraceStyle=function(e){var r=e.calcdata,t=[],n;for(n=0;n{"use strict";var BK=Go().readPaths,UK=bh(),PA=Fo().clearOutlineControllers,cy=Zr(),FA=yt(),HK=gt().arrayEditor,IA=Wo(),VK=IA.getPathString;zA.exports={draw:Dh,drawOne:NA,activateLastSelection:WK};function Dh(e){var r=e._fullLayout;PA(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var n=r._plots[t].selectionLayer;n&&n.selectAll("path").remove()}for(var a=0;a=0;M--){var y=i.append("path").attr(u).style("opacity",M?.1:s).call(cy.stroke,v).call(cy.fill,f).call(FA.dashLine,M?"solid":b,M?4+p:p);if(GK(y,e,n),m){var k=HK(e.layout,"selections",n);y.style({cursor:"move"});var S={element:y.node(),plotinfo:a,gd:e,editHelpers:k,isActiveSelection:!0},x=BK(l,e);UK(x,y,S)}else y.style("pointer-events",M?"all":"none");w[M]=y}var T=w[0],d=w[1];d.node().addEventListener("click",function(){return YK(e,T)})}}function GK(e,r,t){var n=t.xref+t.yref;FA.setClipUrl(e,"clip"+r._fullLayout._uid+n,r)}function YK(e,r){if(Ph(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){vy(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=vy,Dh(e)}}}function WK(e){if(Ph(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=vy,Dh(e)}}function vy(e){if(Ph(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(PA(e),delete e._fullLayout._activeSelectionIndex,Dh(e))}}});var OA=pe((Ave,qA)=>{function XK(){var e,r=0,t=!1;function n(a,o){return e.list.push({type:a,data:o?JSON.parse(JSON.stringify(o)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(a,o){return n("check",{seg1:a,seg2:o})},segmentChop:function(a,o){return n("div_seg",{seg:a,pt:o}),n("chop",{seg:a,pt:o})},statusRemove:function(a){return n("pop_seg",{seg:a})},segmentUpdate:function(a){return n("seg_update",{seg:a})},segmentNew:function(a,o){return n("new_seg",{seg:a,primary:o})},segmentRemove:function(a){return n("rem_seg",{seg:a})},tempStatus:function(a,o,i){return n("temp_status",{seg:a,above:o,below:i})},rewind:function(a){return n("rewind",{seg:a})},status:function(a,o,i){return n("status",{seg:a,above:o,below:i})},vert:function(a){return a===t?e:(t=a,n("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),n("log",{txt:a})},reset:function(){return n("reset")},selected:function(a){return n("selected",{segs:a})},chainStart:function(a){return n("chain_start",{seg:a})},chainRemoveHead:function(a,o){return n("chain_rem_head",{index:a,pt:o})},chainRemoveTail:function(a,o){return n("chain_rem_tail",{index:a,pt:o})},chainNew:function(a,o){return n("chain_new",{pt1:a,pt2:o})},chainMatch:function(a){return n("chain_match",{index:a})},chainClose:function(a){return n("chain_close",{index:a})},chainAddHead:function(a,o){return n("chain_add_head",{index:a,pt:o})},chainAddTail:function(a,o){return n("chain_add_tail",{index:a,pt:o})},chainConnect:function(a,o){return n("chain_con",{index1:a,index2:o})},chainReverse:function(a){return n("chain_rev",{index:a})},chainJoin:function(a,o){return n("chain_join",{index1:a,index2:o})},done:function(){return n("done")}},e}qA.exports=XK});var UA=pe((kve,BA)=>{function ZK(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,n,a){var o=n[0],i=n[1],l=a[0],u=a[1],s=t[0],f=t[1];return(l-o)*(f-i)-(u-i)*(s-o)>=-e},pointBetween:function(t,n,a){var o=t[1]-n[1],i=a[0]-n[0],l=t[0]-n[0],u=a[1]-n[1],s=l*i+o*u;if(s-e)},pointsSameX:function(t,n){return Math.abs(t[0]-n[0])e!=l-o>e&&(i-f)*(o-v)/(l-v)+f-a>e&&(u=!u),i=f,l=v}return u}};return r}BA.exports=ZK});var VA=pe((Sve,HA)=>{var JK={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var n=e.root,a=e.root.next;a!==null;){if(t(a)){r.prev=a.prev,r.next=a,a.prev.next=r,a.prev=r;return}n=a,a=a.next}n.next=r,r.prev=n,r.next=null},findTransition:function(r){for(var t=e.root,n=e.root.next;n!==null&&!r(n);)t=n,n=n.next;return{before:t===e.root?null:t,after:n,insert:function(a){return a.prev=t,a.next=n,t.next=a,n!==null&&(n.prev=a),a}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};HA.exports=JK});var YA=pe((Cve,GA)=>{var Wf=VA();function KK(e,r,t){function n(m,w){return{id:t?t.segmentId():-1,start:m,end:w,myFill:{above:null,below:null},otherFill:null}}function a(m,w,M){return{id:t?t.segmentId():-1,start:m,end:w,myFill:{above:M.myFill.above,below:M.myFill.below},otherFill:null}}var o=Wf.create();function i(m,w,M,y,k,S){var x=r.pointsCompare(w,k);return x!==0?x:r.pointsSame(M,S)?0:m!==y?m?1:-1:r.pointAboveOrOnLine(M,y?k:S,y?S:k)?1:-1}function l(m,w){o.insertBefore(m,function(M){var y=i(m.isStart,m.pt,w,M.isStart,M.pt,M.other.pt);return y<0})}function u(m,w){var M=Wf.node({isStart:!0,pt:m.start,seg:m,primary:w,other:null,status:null});return l(M,m.end),M}function s(m,w,M){var y=Wf.node({isStart:!1,pt:w.end,seg:w,primary:M,other:m,status:null});m.other=y,l(y,m.pt)}function f(m,w){var M=u(m,w);return s(M,m,w),M}function v(m,w){t&&t.segmentChop(m.seg,w),m.other.remove(),m.seg.end=w,m.other.pt=w,l(m.other,m.pt)}function p(m,w){var M=a(w,m.seg.end,m.seg);return v(m,w),f(M,m.primary)}function b(m,w){var M=Wf.create();function y(N,I){var F=N.seg.start,L=N.seg.end,P=I.seg.start,O=I.seg.end;return r.pointsCollinear(F,P,O)?r.pointsCollinear(L,P,O)||r.pointAboveOrOnLine(L,P,O)?1:-1:r.pointAboveOrOnLine(F,P,O)?1:-1}function k(N){return M.findTransition(function(I){var F=y(N,I.ev);return F>0})}function S(N,I){var F=N.seg,L=I.seg,P=F.start,O=F.end,U=L.start,X=L.end;t&&t.checkIntersection(F,L);var $=r.linesIntersect(P,O,U,X);if($===!1){if(!r.pointsCollinear(P,O,U)||r.pointsSame(P,X)||r.pointsSame(O,U))return!1;var j=r.pointsSame(P,U),Y=r.pointsSame(O,X);if(j&&Y)return I;var q=!j&&r.pointBetween(P,U,X),J=!Y&&r.pointBetween(O,U,X);if(j)return J?p(I,O):p(N,X),I;q&&(Y||(J?p(I,O):p(N,X)),p(I,P))}else $.alongA===0&&($.alongB===-1?p(N,U):$.alongB===0?p(N,$.pt):$.alongB===1&&p(N,X)),$.alongB===0&&($.alongA===-1?p(I,P):$.alongA===0?p(I,$.pt):$.alongA===1&&p(I,O));return!1}for(var x=[];!o.isEmpty();){var T=o.getHead();if(t&&t.vert(T.pt[0]),T.isStart){let N=function(){if(_){var I=S(T,_);if(I)return I}return g?S(T,g):!1};var D=N;t&&t.segmentNew(T.seg,T.primary);var d=k(T),_=d.before?d.before.ev:null,g=d.after?d.after.ev:null;t&&t.tempStatus(T.seg,_?_.seg:!1,g?g.seg:!1);var c=N();if(c){if(e){var A;T.seg.myFill.below===null?A=!0:A=T.seg.myFill.above!==T.seg.myFill.below,A&&(c.seg.myFill.above=!c.seg.myFill.above)}else c.seg.otherFill=T.seg.myFill;t&&t.segmentUpdate(c.seg),T.other.remove(),T.remove()}if(o.getHead()!==T){t&&t.rewind(T.seg);continue}if(e){var A;T.seg.myFill.below===null?A=!0:A=T.seg.myFill.above!==T.seg.myFill.below,g?T.seg.myFill.below=g.seg.myFill.above:T.seg.myFill.below=m,A?T.seg.myFill.above=!T.seg.myFill.below:T.seg.myFill.above=T.seg.myFill.below}else if(T.seg.otherFill===null){var h;g?T.primary===g.primary?h=g.seg.otherFill.above:h=g.seg.myFill.above:h=T.primary?w:m,T.seg.otherFill={above:h,below:h}}t&&t.status(T.seg,_?_.seg:!1,g?g.seg:!1),T.other.status=d.insert(Wf.node({ev:T}))}else{var R=T.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(M.exists(R.prev)&&M.exists(R.next)&&S(R.prev.ev,R.next.ev),t&&t.statusRemove(R.ev.seg),R.remove(),!T.primary){var E=T.seg.myFill;T.seg.myFill=T.seg.otherFill,T.seg.otherFill=E}x.push(T.seg)}o.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(m){for(var w,M=m[m.length-1],y=0;y{function QK(e,r,t){var n=[],a=[];return e.forEach(function(o){var i=o.start,l=o.end;if(r.pointsSame(i,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(o);var u={index:0,matches_head:!1,matches_pt1:!1},s={index:0,matches_head:!1,matches_pt1:!1},f=u;function v(D,N,I){return f.index=D,f.matches_head=N,f.matches_pt1=I,f===u?(f=s,!1):(f=null,!0)}for(var p=0;p{function Xf(e,r,t){var n=[];return e.forEach(function(a){var o=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);r[o]!==0&&n.push({id:t?t.segmentId():-1,start:a.start,end:a.end,myFill:{above:r[o]===1,below:r[o]===2},otherFill:null})}),t&&t.selected(n),n}var $K={union:function(e,r){return Xf(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Xf(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Xf(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Xf(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Xf(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};ZA.exports=$K});var QA=pe((Rve,KA)=>{var jK={toPolygon:function(e,r){function t(o){if(o.length<=0)return e.segments({inverted:!1,regions:[]});function i(s){var f=s.slice(0,s.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=i(o[0]),u=1;u{var eQ=OA(),rQ=UA(),$A=YA(),tQ=XA(),Zf=JA(),jA=QA(),za=!1,Jf=rQ(),sa;sa={buildLog:function(e){return e===!0?za=eQ():e===!1&&(za=!1),za===!1?!1:za.list},epsilon:function(e){return Jf.epsilon(e)},segments:function(e){var r=$A(!0,Jf,za);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=$A(!1,Jf,za);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Zf.union(e.combined,za),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Zf.intersect(e.combined,za),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Zf.difference(e.combined,za),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Zf.differenceRev(e.combined,za),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Zf.xor(e.combined,za),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:tQ(e.segments,Jf,za),inverted:e.inverted}},polygonFromGeoJSON:function(e){return jA.toPolygon(sa,e)},polygonToGeoJSON:function(e){return jA.fromPolygon(sa,Jf,e)},union:function(e,r){return Kf(e,r,sa.selectUnion)},intersect:function(e,r){return Kf(e,r,sa.selectIntersect)},difference:function(e,r){return Kf(e,r,sa.selectDifference)},differenceRev:function(e,r){return Kf(e,r,sa.selectDifferenceRev)},xor:function(e,r){return Kf(e,r,sa.selectXor)}};function Kf(e,r,t){var n=sa.segments(e),a=sa.segments(r),o=sa.combine(n,a),i=t(o);return sa.polygon(i)}typeof window=="object"&&(window.PolyBool=sa);ek.exports=sa});var nk=pe((Pve,tk)=>{tk.exports=function(r,t,n,a){var o=r[0],i=r[1],l=!1;n===void 0&&(n=0),a===void 0&&(a=t.length);for(var u=a-n,s=0,f=u-1;si!=m>i&&o<(b-v)*(i-p)/(m-p)+v;w&&(l=!l)}return l}});var py=pe((Fve,ak)=>{"use strict";var dy=Ic().dot,Fh=nn().BADNUM,Ih=ak.exports={};Ih.tester=function(r){var t=r.slice(),n=t[0][0],a=n,o=t[0][1],i=o,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;la||y===Fh||yi||w&&s(m))}function v(m,w){var M=m[0],y=m[1];if(M===Fh||Ma||y===Fh||yi)return!1;var k=t.length,S=t[0][0],x=t[0][1],T=0,d,_,g,c,A;for(d=1;dMath.max(_,S)||y>Math.max(g,x)))if(yl||Math.abs(dy(v,s))>a)return!0;return!1};Ih.filter=function(r,t){var n=[r[0]],a=0,o=0;function i(u){r.push(u);var s=n.length,f=a;n.splice(o+1);for(var v=f+1;v1){var l=r.pop();i(l)}return{addPt:i,raw:r,filtered:n}}});var ok=pe((Ive,ik)=>{"use strict";ik.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Ck=pe((Nve,Sk)=>{"use strict";var lk=rk(),nQ=nk(),jf=Er(),aQ=yt().dashStyle,Qf=Zr(),iQ=io(),oQ=to().makeEventData,a0=uu(),lQ=a0.freeMode,sQ=a0.rectMode,e0=a0.drawMode,xy=a0.openMode,by=a0.selectMode,sk=Wo(),uk=Of(),dk=bh(),pk=Fo().clearOutline,gk=Go(),gy=gk.handleEllipse,uQ=gk.readPaths,fQ=gh().newShapes,cQ=H2(),vQ=hy().activateLastSelection,zh=ir(),hQ=zh.sorterAsc,yk=py(),$f=Jc(),qa=on().getFromId,dQ=sh(),pQ=Rh().redrawReglTraces,qh=ok(),qi=qh.MINSELECT,gQ=yk.filter,_y=yk.tester,wy=vh(),fk=wy.p2r,yQ=wy.axValue,mQ=wy.getTransform;function My(e){return e.subplot!==void 0}function xQ(e,r,t,n,a){var o=!My(n),i=lQ(a),l=sQ(a),u=xy(a),s=e0(a),f=by(a),v=a==="drawline",p=a==="drawcircle",b=v||p,m=n.gd,w=m._fullLayout,M=f&&w.newselection.mode==="immediate"&&o,y=w._zoomlayer,k=n.element.getBoundingClientRect(),S=n.plotinfo,x=mQ(S),T=r-k.left,d=t-k.top;w._calcInverseTransform(m);var _=zh.apply3DTransform(w._invTransform)(T,d);T=_[0],d=_[1];var g=w._invScaleX,c=w._invScaleY,A=T,h=d,R="M"+T+","+d,E=n.xaxes[0],D=n.yaxes[0],N=E._length,I=D._length,F=e.altKey&&!(e0(a)&&u),L,P,O,U,X,$,j;xk(e,m,n),i&&(L=gQ([[T,d]],qh.BENDPX));var Y=y.selectAll("path.select-outline-"+S.id).data([1]),q=s?w.newshape:w.newselection;s&&(n.hasText=q.label.text||q.label.texttemplate);var J=s&&!u?q.fillcolor:"rgba(0,0,0,0)",ae=q.line.color||(o?Qf.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");Y.enter().append("path").attr("class","select-outline select-outline-"+S.id).style({opacity:s?q.opacity/2:1,"stroke-dasharray":aQ(q.line.dash,q.line.width),"stroke-width":q.line.width+"px","shape-rendering":"crispEdges"}).call(Qf.stroke,ae).call(Qf.fill,J).attr("fill-rule","evenodd").classed("cursor-move",!!s).attr("transform",x).attr("d",R+"Z");var Q=y.append("path").attr("class","zoombox-corners").style({fill:Qf.background,stroke:Qf.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(s&&n.hasText){var oe=y.select(".label-temp");oe.empty()&&(oe=y.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ee=w._uid+qh.SELECTID,V=[],re=Oh(m,n.xaxes,n.yaxes,n.subplot);M&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(o){var te=E._id,ue=D._id;Tk(m,te,ue,re);for(var he=(m.layout||{}).selections||[],Ce=[],Se=!1,ve=0;ve=0){m._fullLayout._deactivateShape(m);return}if(!s){var he=w.clickmode;$f.done(ee).then(function(){if($f.clear(ee),te===2){for(Y.remove(),X=0;X-1&&mk(ue,m,n.xaxes,n.yaxes,n.subplot,n,Y),he==="event"&&n0(m,void 0);iQ.click(m,ue,S.id)}).catch(zh.error)}},n.doneFn=function(){Q.remove(),$f.done(ee).then(function(){$f.clear(ee),!M&&U&&n.selectionDefs&&(U.subtract=F,n.selectionDefs.push(U),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,O)),(M||s)&&r0(n,M),n.doneFnCompleted&&n.doneFnCompleted(V),f&&n0(m,j)}).catch(zh.error)}}function mk(e,r,t,n,a,o,i){var l=r._hoverdata,u=r._fullLayout,s=u.clickmode,f=s.indexOf("event")>-1,v=[],p,b,m,w,M,y,k,S,x,T;if(TQ(l)){xk(e,r,o),p=Oh(r,t,n,a);var d=AQ(l,p),_=d.pointNumbers.length>0;if(_?kQ(p,d):SQ(p)&&(k=vk(d))){for(i&&i.remove(),T=0;T=0}function MQ(e){return e._fullLayout._activeSelectionIndex>=0}function r0(e,r){var t=e.dragmode,n=e.plotinfo,a=e.gd;wQ(a)&&a._fullLayout._deactivateShape(a),MQ(a)&&a._fullLayout._deactivateSelection(a);var o=a._fullLayout,i=o._zoomlayer,l=e0(t),u=by(t);if(l||u){var s=i.selectAll(".select-outline-"+n.id);if(s&&a._fullLayout._outlining){var f;l&&(f=fQ(s,e)),f&&jf.call("_guiRelayout",a,{shapes:f});var v;u&&!My(e)&&(v=cQ(s,e)),v&&(a._fullLayout._noEmitSelectedAtStart=!0,jf.call("_guiRelayout",a,{selections:v}).then(function(){r&&vQ(a)})),a._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function ck(e){return e._id}function Oh(e,r,t,n){if(!e.calcdata)return[];var a=[],o=r.map(ck),i=t.map(ck),l,u,s;for(s=0;s0,o=a?n[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(o)>-1:!1}function kQ(e,r){var t=[],n,a,o,i;for(i=0;i0&&t.push(n);if(t.length===1&&(o=t[0]===r.searchInfo,o&&(a=r.searchInfo.cd[0].trace,a.selectedpoints.length===r.pointNumbers.length))){for(i=0;i1||(r+=n.selectedpoints.length,r>1)))return!1;return r===1}function t0(e,r,t){var n;for(n=0;n-1&&r;if(!i&&r){var te=hk(e,!0);if(te.length){var ue=te[0].xref,he=te[0].yref;if(ue&&he){var Ce=Ak(te),Se=kk([qa(e,ue,"x"),qa(e,he,"y")]);Se(V,Ce)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:H&&n0(e,V),p._reselect=!1}if(!i&&p._deselect){var ve=p._deselect;l=ve.xref,u=ve.yref,LQ(l,u,f)||Tk(e,l,u,n),H&&(V.points.length?n0(e,V):ky(e)),p._deselect=!1}return{eventData:V,selectionTesters:t}}function EQ(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";Ek.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var i0=pe((qve,Lk)=>{"use strict";Lk.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var yu=pe((Bve,Pk)=>{"use strict";var Rk=Sy(),Dk=kn(),Bh=wn(),IQ=gt().templatedArray,Ove=i0();Pk.exports=IQ("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Dk({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:Rk.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Rk.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Bh.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Bh.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Bh.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Bh.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:Dk({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Uh=pe((Uve,Fk)=>{"use strict";Fk.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Nk=pe((Hve,Ik)=>{"use strict";Ik.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var $l=pe((Vve,Hk)=>{"use strict";var zk=ro().axisHoverFormat,NQ=Sa().texttemplateAttrs,zQ=Sa().hovertemplateAttrs,qk=ja(),qQ=kn(),OQ=Ao().dash,BQ=Ao().pattern,UQ=yt(),HQ=Uh(),Hh=Mt().extendFlat,VQ=Nk();function Ok(e){return{valType:"any",dflt:0,editType:"calc"}}function Bk(e){return{valType:"any",editType:"calc"}}function Uk(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}Hk.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:Ok("x"),yperiod:Ok("y"),xperiod0:Bk("x0"),yperiod0:Bk("y0"),xperiodalignment:Uk("x"),yperiodalignment:Uk("y"),xhoverformat:zk("x"),yhoverformat:zk("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:NQ({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:zQ({},{keys:HQ.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Hh({},OQ,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:VQ(!0),fillgradient:Hh({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:BQ,marker:Hh({symbol:{valType:"enumerated",values:UQ.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Hh({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},qk("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},qk("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:qQ({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var Cy=pe((Yve,Yk)=>{"use strict";var Vk=yu(),Gk=$l().line,GQ=Ao().dash,Vh=Mt().extendFlat,YQ=zn().overrideAll,WQ=gt().templatedArray,Gve=i0();Yk.exports=YQ(WQ("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Vh({},Vk.xref,{}),yref:Vh({},Vk.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:Gk.color,width:Vh({},Gk.width,{min:1,dflt:1}),dash:Vh({},GQ,{dflt:"dot"})}}),"arraydraw","from-root")});var Jk=pe((Wve,Zk)=>{"use strict";var Wk=ir(),Gh=St(),XQ=ei(),ZQ=Cy(),Xk=Wo();Zk.exports=function(r,t){XQ(r,t,{name:"selections",handleItemDefaults:JQ});for(var n=t.selections,a=0;a{"use strict";Kk.exports=function(r,t,n){n("newselection.mode");var a=n("newselection.line.width");a&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var o0=pe((Zve,eS)=>{"use strict";var KQ=Er(),$k=ir(),jk=on();eS.exports=function(r){return function(n,a){var o=n[r];if(Array.isArray(o))for(var i=KQ.subplotsRegistry.cartesian,l=i.idRegex,u=a._subplots,s=u.xaxis,f=u.yaxis,v=u.cartesian,p=a._has("cartesian"),b=0;b{"use strict";var rS=hy(),l0=Ck();tS.exports={moduleType:"component",name:"selections",layoutAttributes:Cy(),supplyLayoutDefaults:Jk(),supplyDrawNewSelectionDefaults:Qk(),includeBasePlot:o0()("selections"),draw:rS.draw,drawOne:rS.drawOne,reselect:l0.reselect,prepSelect:l0.prepSelect,clearOutline:l0.clearOutline,clearSelectionsCache:l0.clearSelectionsCache,selectOnClick:l0.selectOnClick}});var MS=pe((Kve,wS)=>{"use strict";var Py=it(),Oa=ir(),nS=Oa.numberFormat,QQ=ka(),$Q=Zv(),Yh=Er(),vS=Oa.strTranslate,jQ=Yn(),aS=Zr(),Zo=yt(),e$=io(),iS=St(),r$=Vo(),t$=ti(),hS=uu(),Wh=hS.selectingOrDrawing,n$=hS.freeMode,a$=qn().FROM_TL,i$=sh(),o$=Rh().redrawReglTraces,l$=ln(),Ly=on().getFromId,s$=mu().prepSelect,u$=mu().clearOutline,f$=mu().selectOnClick,Ey=iy(),Fy=wn(),oS=Fy.MINDRAG,Wn=Fy.MINZOOM,lS=!0;function c$(e,r,t,n,a,o,i,l){var u=e._fullLayout._zoomlayer,s=i+l==="nsew",f=(i+l).length===1,v,p,b,m,w,M,y,k,S,x,T,d,_,g,c,A,h,R,E,D,N,I,F;t+=r.yaxis._shift;function L(){if(v=r.xaxis,p=r.yaxis,S=v._length,x=p._length,y=v._offset,k=p._offset,b={},b[v._id]=v,m={},m[p._id]=p,i&&l)for(var me=r.overlays,de=0;de=0){be._fullLayout._deactivateShape(be);return}var Ae=be._fullLayout.clickmode;if(Dy(be),me===2&&!f&&Be(),s)Ae.indexOf("select")>-1&&f$(de,be,w,M,r.id,U),Ae.indexOf("event")>-1&&e$.click(be,de,r.id);else if(me===1&&f){var qe=i?p:v,Pe=i==="s"||l==="w"?0:1,Ze=qe._name+".range["+Pe+"]",Ye=v$(qe,Pe),Ge="left",We="middle";if(qe.fixedrange)return;i?(We=i==="n"?"top":"bottom",qe.side==="right"&&(Ge="right")):l==="e"&&(Ge="right"),be._context.showAxisRangeEntryBoxes&&Py.select(O).call(jQ.makeEditable,{gd:be,immediate:!0,background:be._fullLayout.paper_bgcolor,text:String(Ye),fill:qe.tickfont?qe.tickfont.color:"#444",horizontalAlign:Ge,verticalAlign:We}).on("edit",function(we){var De=qe.d2r(we);De!==void 0&&Yh.call("_guiRelayout",be,Ze,De)})}}t$.init(U);var j,Y,q,J,ae,Q,oe,ee,V,re;function H(me,de,be){var Ae=O.getBoundingClientRect();j=de-Ae.left,Y=be-Ae.top,e._fullLayout._calcInverseTransform(e);var qe=Oa.apply3DTransform(e._fullLayout._invTransform)(j,Y);j=qe[0],Y=qe[1],q={l:j,r:j,w:0,t:Y,b:Y,h:0},J=e._hmpixcount?e._hmlumcount/e._hmpixcount:QQ(e._fullLayout.plot_bgcolor).getLuminance(),ae="M0,0H"+S+"V"+x+"H0V0",Q=!1,oe="xy",re=!1,ee=gS(u,J,y,k,ae),V=yS(u,y,k)}function te(me,de){if(e._transitioningWithDuration)return!1;var be=Math.max(0,Math.min(S,I*me+j)),Ae=Math.max(0,Math.min(x,F*de+Y)),qe=Math.abs(be-j),Pe=Math.abs(Ae-Y);q.l=Math.min(j,be),q.r=Math.max(j,be),q.t=Math.min(Y,Ae),q.b=Math.max(Y,Ae);function Ze(){oe="",q.r=q.l,q.t=q.b,V.attr("d","M0,0Z")}if(T.isSubplotConstrained)qe>Wn||Pe>Wn?(oe="xy",qe/S>Pe/x?(Pe=qe*x/S,Y>Ae?q.t=Y-Pe:q.b=Y+Pe):(qe=Pe*S/x,j>be?q.l=j-qe:q.r=j+qe),V.attr("d",Xh(q))):Ze();else if(d.isSubplotConstrained)if(qe>Wn||Pe>Wn){oe="xy";var Ye=Math.min(q.l/S,(x-q.b)/x),Ge=Math.max(q.r/S,(x-q.t)/x);q.l=Ye*S,q.r=Ge*S,q.b=(1-Ye)*x,q.t=(1-Ge)*x,V.attr("d",Xh(q))}else Ze();else!g||Pe0){var we;if(d.isSubplotConstrained||!_&&g.length===1){for(we=0;we1&&(Ze.maxallowed!==void 0&&A===(Ze.range[0]1&&(Ye.maxallowed!==void 0&&h===(Ye.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function d$(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function gS(e,r,t,n,a){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",vS(t,n)).attr("d",a+"Z")}function yS(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:aS.background,stroke:aS.defaultLine,"stroke-width":1,opacity:0}).attr("transform",vS(r,t)).attr("d","M0,0Z")}function mS(e,r,t,n,a,o){e.attr("d",n+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),xS(e,r,a,o)}function xS(e,r,t,n){t||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function Dy(e){Py.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function bS(e){lS&&e.data&&e._context.showTips&&(Oa.notifier(Oa._(e,"Double-click to zoom back out"),"long"),lS=!1)}function p$(e,r){return"M"+(e.l-.5)+","+(r-Wn-.5)+"h-3v"+(2*Wn+1)+"h3ZM"+(e.r+.5)+","+(r-Wn-.5)+"h3v"+(2*Wn+1)+"h-3Z"}function g$(e,r){return"M"+(r-Wn-.5)+","+(e.t-.5)+"v-3h"+(2*Wn+1)+"v3ZM"+(r-Wn-.5)+","+(e.b+.5)+"v3h"+(2*Wn+1)+"v-3Z"}function Xh(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Wn)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function fS(e,r,t,n,a){for(var o=!1,i={},l={},u,s,f,v,p=(a||{}).xaHash,b=(a||{}).yaHash,m=0;m{"use strict";var y$=it(),Zh=io(),m$=ti(),x$=Vo(),ii=MS().makeDragBox,cn=wn().DRAGGERSIZE;Jh.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){y$.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var n=Object.keys(t._plots||{}).sort(function(o,i){if((t._plots[o].mainplot&&!0)===(t._plots[i].mainplot&&!0)){var l=o.split("y"),u=i.split("y");return l[0]===u[0]?Number(l[1]||1)-Number(u[1]||1):Number(l[0]||1)-Number(u[0]||1)}return t._plots[o].mainplot?1:-1});n.forEach(function(o){var i=t._plots[o],l=i.xaxis,u=i.yaxis;if(!i.mainplot){var s=ii(r,i,l._offset,u._offset,l._length,u._length,"ns","ew");s.onmousemove=function(p){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===o&&r._fullLayout._plots[o]&&Zh.hover(r,p,o)},Zh.hover(r,p,o),r._fullLayout._lasthover=s,r._fullLayout._hoversubplot=o},s.onmouseout=function(p){r._dragging||(r._fullLayout._hoversubplot=null,m$.unhover(r,p))},r._context.showAxisDragHandles&&(ii(r,i,l._offset-cn,u._offset-cn,cn,cn,"n","w"),ii(r,i,l._offset+l._length,u._offset-cn,cn,cn,"n","e"),ii(r,i,l._offset-cn,u._offset+u._length,cn,cn,"s","w"),ii(r,i,l._offset+l._length,u._offset+u._length,cn,cn,"s","e"))}if(r._context.showAxisDragHandles){if(o===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=cn),ii(r,i,l._offset+l._length*.1,f,l._length*.8,cn,"","ew"),ii(r,i,l._offset,f,l._length*.1,cn,"","w"),ii(r,i,l._offset+l._length*.9,f,l._length*.1,cn,"","e")}if(o===u._mainSubplot){var v=u._mainLinePosition;u.side!=="right"&&(v-=cn),ii(r,i,v,u._offset+u._length*.1,cn,u._length*.8,"ns",""),ii(r,i,v,u._offset+u._length*.9,cn,u._length*.1,"s",""),ii(r,i,v,u._offset,cn,u._length*.1,"n","")}}});var a=t._hoverlayer.node();a.onmousemove=function(o){o.target=r._fullLayout._lasthover,Zh.hover(r,o,t._hoversubplot)},a.onclick=function(o){o.target=r._fullLayout._lasthover,Zh.click(r,o)},a.onmousedown=function(o){r._fullLayout._lasthover.onmousedown(o)},Jh.updateFx(r)}};Jh.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";x$(r._draggers,t)}});var kS=pe(($ve,AS)=>{"use strict";var TS=Er();AS.exports=function(r){for(var t=TS.layoutArrayContainers,n=TS.layoutArrayRegexes,a=r.split("[")[0],o,i,l=0;l{"use strict";var b$=wo(),Ny=Fc(),s0=Al(),_$=Dp().sorterAsc,zy=Er();u0.containerArrayMatch=kS();var w$=u0.isAddVal=function(r){return r==="add"||b$(r)},SS=u0.isRemoveVal=function(r){return r===null||r==="remove"};u0.applyContainerArrayChanges=function(r,t,n,a,o){var i=t.astr,l=zy.getComponentMethod(i,"supplyLayoutDefaults"),u=zy.getComponentMethod(i,"draw"),s=zy.getComponentMethod(i,"drawOne"),f=a.replot||a.recalc||l===Ny||u===Ny,v=r.layout,p=r._fullLayout;if(n[""]){Object.keys(n).length>1&&s0.warn("Full array edits are incompatible with other edits",i);var b=n[""][""];if(SS(b))t.set(null);else if(Array.isArray(b))t.set(b);else return s0.warn("Unrecognized full array edit value",i,b),!0;return f?!1:(l(v,p),u(r),!0)}var m=Object.keys(n).map(Number).sort(_$),w=t.get(),M=w||[],y=o(p,i).get(),k=[],S=-1,x=M.length,T,d,_,g,c,A,h,R;for(T=0;TM.length-(h?0:1)){s0.warn("index out of range",i,_);continue}if(A!==void 0)c.length>1&&s0.warn("Insertion & removal are incompatible with edits to the same index.",i,_),SS(A)?k.push(_):h?(A==="add"&&(A={}),M.splice(_,0,A),y&&y.splice(_,0,{})):s0.warn("Unrecognized full object edit value",i,_,A),S===-1&&(S=_);else for(d=0;d=0;T--)M.splice(k[T],1),y&&y.splice(k[T],1);if(M.length?w||t.set(M):t.set(null),f)return!1;if(l(v,p),s!==Ny){var E;if(S===-1)E=m;else{for(x=Math.max(M.length,x),E=[],T=0;T=S));T++)E.push(_);for(T=S;T{"use strict";var DS=rt(),ehe=wp(),PS=Er(),ua=ir(),f0=ln(),FS=on(),IS=Zr(),c0=FS.cleanId,M$=FS.getFromTrace,qy=PS.traceIs;oi.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&ua.log("Clearing previous rejected promises from queue."),e._promises=[]};oi.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(f0.subplotsRegistry.cartesian||{}).attrRegex,a=(f0.subplotsRegistry.polar||{}).attrRegex,o=(f0.subplotsRegistry.ternary||{}).attrRegex,i=(f0.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(M.x=1.02,M.xanchor="left"):M.x<-2&&(M.x=-.02,M.xanchor="right"),M.y>3?(M.y=1.02,M.yanchor="bottom"):M.y<-2&&(M.y=-.02,M.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),IS.clean(e),e.template&&e.template.layout&&oi.cleanLayout(e.template.layout),e};function xu(e,r){var t=e[r],n=r.charAt(0);t&&t!=="paper"&&(e[r]=c0(t,n,!0))}oi.cleanData=function(e){for(var r=0;r0)return e.substr(0,r)}oi.hasParent=function(e,r){for(var t=RS(r);t;){if(t in e)return!0;t=RS(t)}return!1};var k$=["x","y","z"];oi.clearAxisTypes=function(e,r,t){for(var n=0;n{"use strict";var jh=it(),S$=rt(),C$=Yp(),ur=ir(),_t=ur.nestedProperty,Uy=mf(),Xn=pw(),Ba=Er(),o1=Vs(),Rr=ln(),Vn=St(),E$=v2(),L$=Ra(),Oy=yt(),R$=Zr(),D$=Iy().initInteractions,P$=Io(),F$=mu().clearOutline,US=Tl().dfltConfig,Qh=CS(),Jt=NS(),ht=Rh(),Jo=zn(),I$=wn().AX_NAME_PATTERN,By=0,zS=5;function N$(e,r,t,n){var a;if(e=ur.getGraphDiv(e),Uy.init(e),ur.isPlainObject(r)){var o=r;r=o.data,t=o.layout,n=o.config,a=o.frames}var i=Uy.triggerHandler(e,"plotly_beforeplot",[r,t,n]);if(i===!1)return Promise.reject();!r&&!t&&!ur.isPlotDiv(e)&&ur.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(a)return tt.addFrames(e,a)}VS(e,n),t||(t={}),jh.select(e).classed("js-plotly-plot",!0),Oy.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var u=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Jt.cleanData(r),u?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||u)&&(e.layout=Jt.cleanLayout(t)),Rr.supplyDefaults(e);var s=e._fullLayout,f=s._has("cartesian");s._replotting=!0,(u||s._shouldCreateBgLayer)&&(ij(e),s._shouldCreateBgLayer&&delete s._shouldCreateBgLayer),Oy.initGradients(e),Oy.initPatterns(e),u&&Vn.saveShowSpikeInitial(e);var v=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;v&&Rr.doCalcdata(e);for(var p=0;p=e.data.length||a<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(a,n+1)>-1||a>=0&&r.indexOf(-e.data.length+a)>-1||a<0&&r.indexOf(e.data.length+a)>-1)throw new Error("each index in "+t+" must be unique.")}}function GS(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),r1(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&r1(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function U$(e,r,t){var n,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),n=0;n=0&&f=0&&f0&&typeof g.parts[h]!="string";)h--;var R=g.parts[h],E=g.parts[h-1]+"."+R,D=g.parts.slice(0,h).join("."),N=_t(e.layout,D).get(),I=_t(n,D).get(),F=g.get();if(c!==void 0){y[_]=c,k[_]=R==="reverse"?c:uo(F);var L=o1.getLayoutValObject(n,g.parts);if(L&&L.impliedEdits&&c!==null)for(var P in L.impliedEdits)S(ur.relativeAttr(_,P),L.impliedEdits[P]);if(["width","height"].indexOf(_)!==-1)if(c){S("autosize",null);var O=_==="height"?"width":"height";S(O,n[O])}else n[_]=e._initialAutoSize[_];else if(_==="autosize")S("width",c?null:n.width),S("height",c?null:n.height);else if(E.match(jS))d(E),_t(n,D+"._inputRange").set(null);else if(E.match(eC)){d(E),_t(n,D+"._inputRange").set(null);var U=_t(n,D).get();U._inputDomain&&(U._input.domain=U._inputDomain.slice())}else E.match(Y$)&&_t(n,D+"._inputDomain").set(null);if(R==="type"){T=N;var X=I.type==="linear"&&c==="log",$=I.type==="log"&&c==="linear";if(X||$){if(!T||!T.range)S(D+".autorange",!0);else if(I.autorange)X&&(T.range=T.range[1]>T.range[0]?[1,2]:[2,1]);else{var j=T.range[0],Y=T.range[1];X?(j<=0&&Y<=0&&S(D+".autorange",!0),j<=0?j=Y/1e6:Y<=0&&(Y=j/1e6),S(D+".range[0]",Math.log(j)/Math.LN10),S(D+".range[1]",Math.log(Y)/Math.LN10)):(S(D+".range[0]",Math.pow(10,j)),S(D+".range[1]",Math.pow(10,Y)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[g.parts[0]]&&g.parts[1]==="radialaxis"&&delete n[g.parts[0]]._subplot.viewInitial["radialaxis.range"],Ba.getComponentMethod("annotations","convertCoords")(e,I,c,S),Ba.getComponentMethod("images","convertCoords")(e,I,c,S)}else S(D+".autorange",!0),S(D+".range",null);_t(n,D+"._inputRange").set(null)}else if(R.match(I$)){var q=_t(n,_).get(),J=(c||{}).type;(!J||J==="-")&&(J="linear"),Ba.getComponentMethod("annotations","convertCoords")(e,q,J,S),Ba.getComponentMethod("images","convertCoords")(e,q,J,S)}var ae=Qh.containerArrayMatch(_);if(ae){f=ae.array,v=ae.index;var Q=ae.property,oe=L||{editType:"calc"};v!==""&&Q===""&&(Qh.isAddVal(c)?k[_]=null:Qh.isRemoveVal(c)?k[_]=(_t(t,f).get()||[])[v]:ur.warn("unrecognized full object value",r)),Jo.update(M,oe),s[f]||(s[f]={});var ee=s[f][v];ee||(ee=s[f][v]={}),ee[Q]=c,delete r[_]}else R==="reverse"?(N.range?N.range.reverse():(S(D+".autorange",!0),N.range=[1,0]),I.autorange?M.calc=!0:M.plot=!0):(_==="dragmode"&&(c===!1&&F!==!1||c!==!1&&F===!1)||n._has("scatter-like")&&n._has("regl")&&_==="dragmode"&&(c==="lasso"||c==="select")&&!(F==="lasso"||F==="select")?M.plot=!0:L?Jo.update(M,L):M.calc=!0,g.set(c))}}for(f in s){var V=Qh.applyContainerArrayChanges(e,o(t,f),s[f],M,o);V||(M.plot=!0)}for(var re in x){T=Vn.getFromId(e,re);var H=T&&T._constraintGroup;if(H){M.calc=!0;for(var te in H)x[te]||(Vn.getFromId(e,te)._constraintShrinkable=!0)}}(tC(e)||r.height||r.width)&&(M.plot=!0);var ue=n.shapes;for(v=0;v1;)if(n.pop(),t=_t(r,n.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function Z$(e,r){for(var t=0;t=a.length?a[0]:a[s]:a}function l(s){return Array.isArray(o)?s>=o.length?o[0]:o[s]:o}function u(s,f){var v=0;return function(){if(s&&++v===f)return s()}}return new Promise(function(s,f){function v(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var R=n._frameQueue.pop();R.onInterrupt&&R.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function p(R){if(R.length!==0){for(var E=0;En._timeToNext&&m()};R()}var M=0;function y(R){return Array.isArray(a)?M>=a.length?R.transitionOpts=a[M]:R.transitionOpts=a[0]:R.transitionOpts=a,M++,R}var k,S,x=[],T=r==null,d=Array.isArray(r),_=!T&&!d&&ur.isPlainObject(r);if(_)x.push({type:"object",data:y(ur.extendFlat({},r))});else if(T||["string","number"].indexOf(typeof r)!==-1)for(k=0;k0&&AA)&&h.push(S);x=h}}x.length>0?p(x):(e.emit("plotly_animated"),s())})}function rj(e,r,t){if(e=ur.getGraphDiv(e),r==null)return Promise.resolve();if(!ur.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,a,o,i,l=e._transitionData._frames,u=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var s=l.length+r.length*2,f=[],v={};for(n=r.length-1;n>=0;n--)if(ur.isPlainObject(r[n])){var p=r[n].name,b=(u[p]||v[p]||{}).name,m=r[n].name,w=u[b]||v[b];b&&m&&typeof m=="number"&&w&&Byg.index?-1:_.index=0;n--){if(a=f[n].frame,typeof a.name=="number"&&ur.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;u[a.name="frame "+e._transitionData._counter++];);if(u[a.name]){for(o=0;o=0;t--)n=r[t],o.push({type:"delete",index:n}),i.unshift({type:"insert",index:n,value:a[n]});var l=Rr.modifyFrames,u=Rr.modifyFrames,s=[e,i],f=[e,o];return Xn&&Xn.add(e,l,s,u,f),Rr.modifyFrames(e,o)}function nj(e){e=ur.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return Rr.cleanPlot([],{},t,r),Rr.purge(e),Uy.purge(e),r._container&&r._container.remove(),delete e._context,e}function aj(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!ur.equalDomRects(t,r._lastBBox)){var n=r._invTransform=ur.inverseTransformMatrix(ur.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),r._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),r._lastBBox=t}}function ij(e){var r=jh.select(e),t=e._fullLayout;if(t._calcInverseTransform=aj,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var n={};jh.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),t._uid=ur.randstr(n)}t._paperdiv.selectAll(".main-svg").attr(P$.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var a=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=a.append("g").classed("imagelayer",!0),t._shapeLowerLayer=a.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var o=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=o.append("g").classed("imagelayer",!0),t._shapeUpperLayer=o.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}tt.animate=ej;tt.addFrames=rj;tt.deleteFrames=tj;tt.addTraces=JS;tt.deleteTraces=KS;tt.extendTraces=XS;tt.moveTraces=Hy;tt.prependTraces=ZS;tt.newPlot=B$;tt._doPlot=N$;tt.purge=nj;tt.react=Q$;tt.redraw=O$;tt.relayout=v0;tt.restyle=t1;tt.setPlotConfig=z$;tt.update=a1;tt._guiRelayout=Gy(v0);tt._guiRestyle=Gy(t1);tt._guiUpdate=Gy(a1);tt._storeDirectGUIEdit=G$});var jl=pe(Oi=>{"use strict";var oj=Er();Oi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Oi.getRedrawFunc=function(e){return function(){oj.getComponentMethod("colorbar","draw")(e)}};Oi.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Oi.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var nC=window.URL||window.webkitURL;Oi.createObjectURL=function(e){return nC.createObjectURL(e)};Oi.revokeObjectURL=function(e){return nC.revokeObjectURL(e)};Oi.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=lj(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Oi.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function lj(e){for(var r=e.length,t=new ArrayBuffer(r),n=new Uint8Array(t),a=0;a{"use strict";var Xy=it(),ahe=ir(),sj=yt(),uj=Zr(),ihe=Io(),Wy=/"/g,d0="TOBESTRIPPED",fj=new RegExp('("'+d0+")|("+d0+'")',"g");function cj(e){var r=Xy.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(n){return n==="<"?"<":n==="&rt;"?">":n.indexOf("<")!==-1||n.indexOf(">")!==-1?"":r.html(n).text()});return r.remove(),t}function vj(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}aC.exports=function(r,t,n){var a=r._fullLayout,o=a._paper,i=a._toppaper,l=a.width,u=a.height,s;o.insert("rect",":first-child").call(sj.setRect,0,0,l,u).call(uj.fill,a.paper_bgcolor);var f=a._basePlotModules||[];for(s=0;s{"use strict";var hj=ir(),dj=tv().EventEmitter,p0=jl();function pj(e){var r=e.emitter||new dj,t=new Promise(function(n,a){var o=window.Image,i=e.svg,l=e.format||"png",u=e.canvas,s=e.scale||1,f=e.width||300,v=e.height||150,p=s*f,b=s*v,m=u.getContext("2d",{willReadFrequently:!0}),w=new o,M,y;l==="svg"||hj.isSafari()?y=p0.encodeSVG(i):(M=p0.createBlob(i,"svg"),y=p0.createObjectURL(M)),u.width=p,u.height=b,w.onload=function(){var k;switch(M=null,p0.revokeObjectURL(y),l!=="svg"&&m.drawImage(w,0,0,p,b),l){case"jpeg":k=u.toDataURL("image/jpeg");break;case"png":k=u.toDataURL("image/png");break;case"webp":k=u.toDataURL("image/webp");break;case"svg":k=y;break;default:var S="Image format is not jpeg, png, svg or webp.";if(a(new Error(S)),!e.promise)return r.emit("error",S)}n(k),e.promise||r.emit("success",k)},w.onerror=function(k){if(M=null,p0.revokeObjectURL(y),a(k),!e.promise)return r.emit("error",k)},w.src=y});return e.promise?t:r}iC.exports=pj});var Jy=pe((she,sC)=>{"use strict";var oC=rt(),lC=Yy(),gj=ln(),Bi=ir(),g0=jl(),yj=s1(),mj=u1(),xj=pc().version,Zy={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function bj(e,r){r=r||{};var t,n,a,o;Bi.isPlainObject(e)?(t=e.data||[],n=e.layout||{},a=e.config||{},o={}):(e=Bi.getGraphDiv(e),t=Bi.extendDeep([],e.data),n=Bi.extendDeep({},e.layout),a=e._context,o=e._fullLayout||{});function i(d){return!(d in r)||Bi.validate(r[d],Zy[d])}if(!i("width")&&r.width!==null||!i("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!i("format"))throw new Error("Export format is not "+Bi.join2(Zy.format.values,", "," or ")+".");var l={};function u(d,_){return Bi.coerce(r,l,Zy,d,_)}var s=u("format"),f=u("width"),v=u("height"),p=u("scale"),b=u("setBackground"),m=u("imageDataOnly"),w=document.createElement("div");w.style.position="absolute",w.style.left="-5000px",document.body.appendChild(w);var M=Bi.extendFlat({},n);f?M.width=f:r.width===null&&oC(o.width)&&(M.width=o.width),v?M.height=v:r.height===null&&oC(o.height)&&(M.height=o.height);var y=Bi.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:b}),k=g0.getRedrawFunc(w);function S(){return new Promise(function(d){setTimeout(d,g0.getDelay(w._fullLayout))})}function x(){return new Promise(function(d,_){var g=yj(w,s,p),c=w._fullLayout.width,A=w._fullLayout.height;function h(){lC.purge(w),document.body.removeChild(w)}if(s==="full-json"){var R=gj.graphJson(w,!1,"keepdata","object",!0,!0);return R.version=xj,R=JSON.stringify(R),h(),d(m?R:g0.encodeJSON(R))}if(h(),s==="svg")return d(m?g:g0.encodeSVG(g));var E=document.createElement("canvas");E.id=Bi.randstr(),mj({format:s,width:c,height:A,scale:p,canvas:E,svg:g,promise:!0}).then(d).catch(_)})}function T(d){return m?d.replace(g0.IMAGE_URL_PREFIX,""):d}return new Promise(function(d,_){lC.newPlot(w,t,M,y).then(k).then(S).then(x).then(function(g){d(T(g))}).catch(function(g){_(g)})})}sC.exports=bj});var cC=pe((uhe,fC)=>{"use strict";var Ua=ir(),_j=ln(),wj=Vs(),Mj=Tl().dfltConfig,li=Ua.isPlainObject,rs=Array.isArray,Ky=Ua.isArrayOrTypedArray;fC.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var n=wj.get(),a=[],o={_context:Ua.extendFlat({},Mj)},i,l;rs(r)?(o.data=Ua.extendDeep([],r),i=r):(o.data=[],i=[],a.push(vn("array","data"))),li(t)?(o.layout=Ua.extendDeep({},t),l=t):(o.layout={},l={},arguments.length>1&&a.push(vn("object","layout"))),_j.supplyDefaults(o);for(var u=o._fullData,s=i.length,f=0;fv.length&&n.push(vn("unused",a,s.concat(v.length)));var y=v.length,k=Array.isArray(M);k&&(y=Math.min(y,M.length));var S,x,T,d,_;if(p.dimensions===2)for(x=0;xv[x].length&&n.push(vn("unused",a,s.concat(x,v[x].length)));var g=v[x].length;for(S=0;S<(k?Math.min(g,M[x].length):g);S++)T=k?M[x][S]:M,d=f[x][S],_=v[x][S],Ua.validate(d,T)?_!==d&&_!==+d&&n.push(vn("dynamic",a,s.concat(x,S),d,_)):n.push(vn("value",a,s.concat(x,S),d))}else n.push(vn("array",a,s.concat(x),f[x]));else for(x=0;x{"use strict";var Lj=ir(),c1=jl();function Rj(e,r,t){var n=document.createElement("a"),a="download"in n,o=new Promise(function(i,l){var u,s;if(a)return u=c1.createBlob(e,t),s=c1.createObjectURL(u),n.href=s,n.download=r,document.body.appendChild(n),n.click(),document.body.removeChild(n),c1.revokeObjectURL(s),u=null,i(r);if(Lj.isSafari()){var f=t==="svg"?",":";base64,";return c1.octetStream(f+encodeURIComponent(e)),i(r)}l(new Error("download error"))});return o}vC.exports=Rj});var Qy=pe((vhe,pC)=>{"use strict";var dC=ir(),Dj=Jy(),Pj=hC(),che=jl();function Fj(e,r){var t;return dC.isPlainObject(e)||(t=dC.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(n,a){t&&t._snapshotInProgress&&a(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var o=Dj(e,r),i=r.filename||e.fn||"newplot";i+="."+r.format.replace("-","."),o.then(function(l){return t&&(t._snapshotInProgress=!1),Pj(l,i,r.format)}).then(function(l){n(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),a(l)})})}pC.exports=Fj});var bC=pe($y=>{"use strict";var fa=ir(),ca=fa.isPlainObject,gC=Vs(),yC=ln(),Ij=Sn(),mC=gt(),xC=Tl().dfltConfig;$y.makeTemplate=function(e){e=fa.isPlainObject(e)?e:fa.getGraphDiv(e),e=fa.extendDeep({_context:xC},{data:e.data,layout:e.layout}),yC.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var n={data:{},layout:{}};r.forEach(function(b){var m={};y0(b,m,zj.bind(null,b));var w=fa.coerce(b,{},Ij,"type"),M=n.data[w];M||(M=n.data[w]=[]),M.push(m)}),y0(t,n.layout,Nj.bind(null,t)),delete n.layout.template;var a=t.template;if(ca(a)){var o=a.layout,i,l,u,s,f,v;ca(o)&&v1(o,n.layout);var p=a.data;if(ca(p)){for(l in n.data)if(u=p[l],Array.isArray(u)){for(f=n.data[l],v=f.length,s=u.length,i=0;iy?i.push({code:"unused",traceType:b,templateCount:M,dataCount:y}):y>M&&i.push({code:"reused",traceType:b,templateCount:M,dataCount:y})}}function k(S,x){for(var T in S)if(T.charAt(0)!=="_"){var d=S[T],_=Ha(S,T,x);ca(d)?(Array.isArray(S)&&d._template===!1&&d.templateitemname&&i.push({code:"missing",path:_,templateitemname:d.templateitemname}),k(d,_)):Array.isArray(d)&&qj(d)&&k(d,_)}}if(k({data:u,layout:l},""),i.length)return i.map(Oj)};function qj(e){for(var r=0;r{"use strict";var rn=Yy();kt._doPlot=rn._doPlot;kt.newPlot=rn.newPlot;kt.restyle=rn.restyle;kt.relayout=rn.relayout;kt.redraw=rn.redraw;kt.update=rn.update;kt._guiRestyle=rn._guiRestyle;kt._guiRelayout=rn._guiRelayout;kt._guiUpdate=rn._guiUpdate;kt._storeDirectGUIEdit=rn._storeDirectGUIEdit;kt.react=rn.react;kt.extendTraces=rn.extendTraces;kt.prependTraces=rn.prependTraces;kt.addTraces=rn.addTraces;kt.deleteTraces=rn.deleteTraces;kt.moveTraces=rn.moveTraces;kt.purge=rn.purge;kt.addFrames=rn.addFrames;kt.deleteFrames=rn.deleteFrames;kt.animate=rn.animate;kt.setPlotConfig=rn.setPlotConfig;var Bj=ff().getGraphDiv,Uj=Th().eraseActiveShape;kt.deleteActiveShape=function(e){return Uj(Bj(e))};kt.toImage=Jy();kt.validate=cC();kt.downloadImage=Qy();var _C=bC();kt.makeTemplate=_C.makeTemplate;kt.validateTemplate=_C.validateTemplate});var TC=pe((phe,MC)=>{"use strict";var jy=ir(),Hj=Er();MC.exports=function(r,t,n,a){var o=a("x"),i=a("y"),l,u=Hj.getComponentMethod("calendars","handleTraceDefaults");if(u(r,t,["x","y"],n),o){var s=jy.minRowLength(o);i?l=Math.min(s,jy.minRowLength(i)):(l=s,a("y0"),a("dy"))}else{if(!i)return 0;l=jy.minRowLength(i),a("x0"),a("dx")}return t._length=l,l}});var CC=pe((ghe,SC)=>{"use strict";var AC=ir().dateTick0,Vj=nn(),Gj=Vj.ONEWEEK;function kC(e,r){return e%Gj===0?AC(r,1):AC(r,0)}SC.exports=function(r,t,n,a,o){if(o||(o={x:!0,y:!0}),o.x){var i=a("xperiod");i&&(a("xperiod0",kC(i,t.xcalendar)),a("xperiodalignment"))}if(o.y){var l=a("yperiod");l&&(a("yperiod0",kC(l,t.ycalendar)),a("yperiodalignment"))}}});var RC=pe((yhe,LC)=>{"use strict";var EC=["orientation","groupnorm","stackgaps"];LC.exports=function(r,t,n,a){var o=n._scatterStackOpts,i=a("stackgroup");if(i){var l=t.xaxis+t.yaxis,u=o[l];u||(u=o[l]={});var s=u[i],f=!1;s?s.traces.push(t):(s=u[i]={traceIndices:[],traces:[t]},f=!0);for(var v={orientation:t.x&&!t.y?"h":"v"},p=0;p{"use strict";var DC=Zr(),PC=Si().hasColorscale,FC=Ei(),Yj=ia();IC.exports=function(r,t,n,a,o,i){var l=Yj.isBubble(r),u=(r.line||{}).color,s;if(i=i||{},u&&(n=u),o("marker.symbol"),o("marker.opacity",l?.7:1),o("marker.size"),i.noAngle||(o("marker.angle"),i.noAngleRef||o("marker.angleref"),i.noStandOff||o("marker.standoff")),o("marker.color",n),PC(r,"marker")&&FC(r,t,a,o,{prefix:"marker.",cLetter:"c"}),i.noSelect||(o("selected.marker.color"),o("unselected.marker.color"),o("selected.marker.size"),o("unselected.marker.size")),i.noLine||(u&&!Array.isArray(u)&&t.marker.color!==u?s=u:l?s=DC.background:s=DC.defaultLine,o("marker.line.color",s),PC(r,"marker.line")&&FC(r,t,a,o,{prefix:"marker.line.",cLetter:"c"}),o("marker.line.width",l?1:0)),l&&(o("marker.sizeref"),o("marker.sizemin"),o("marker.sizemode")),i.gradient){var f=o("marker.gradient.type");f!=="none"&&o("marker.gradient.color")}}});var rm=pe((xhe,NC)=>{"use strict";var Wj=ir().isArrayOrTypedArray,Xj=Si().hasColorscale,Zj=Ei();NC.exports=function(r,t,n,a,o,i){i||(i={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),o("line.color",n),Xj(r,"line"))Zj(r,t,a,o,{prefix:"line.",cLetter:"c"});else{var u=(Wj(l)?!1:l)||n;o("line.color",u)}o("line.width"),i.noDash||o("line.dash"),i.backoff&&o("line.backoff")}});var qC=pe((bhe,zC)=>{"use strict";zC.exports=function(r,t,n){var a=n("line.shape");a==="spline"&&n("line.smoothing")}});var tm=pe((_he,OC)=>{"use strict";var Jj=ir();OC.exports=function(e,r,t,n,a){a=a||{},n("textposition"),Jj.coerceFont(n,"textfont",a.font||t.font,a),a.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var HC=pe((whe,UC)=>{"use strict";var d1=Zr(),BC=ir().isArrayOrTypedArray;function Kj(e){for(var r=d1.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var VC=ir(),Qj=Er(),$j=$l(),jj=Uh(),bu=ia(),eee=TC(),ree=CC(),tee=RC(),nee=em(),aee=rm(),GC=qC(),iee=tm(),oee=HC(),lee=ir().coercePattern;YC.exports=function(r,t,n,a){function o(b,m){return VC.coerce(r,t,$j,b,m)}var i=eee(r,t,a,o);if(i||(t.visible=!1),!!t.visible){ree(r,t,a,o),o("xhoverformat"),o("yhoverformat"),o("zorder");var l=tee(r,t,a,o);a.scattermode==="group"&&t.orientation===void 0&&o("orientation","v");var u=!l&&i{"use strict";var see=Vf().getAxisGroup;XC.exports=function(r,t,n,a,o){var i=t.orientation,l=t[{v:"x",h:"y"}[i]+"axis"],u=see(n,l)+i,s=n._alignmentOpts||{},f=a("alignmentgroup"),v=s[u];v||(v=s[u]={});var p=v[f];p?p.traces.push(t):p=v[f]={traces:[t],alignmentIndex:Object.keys(v).length,offsetGroups:{}};var b=a("offsetgroup")||"",m=p.offsetGroups,w=m[b];t._offsetIndex=0,(o!=="group"||b)&&(w||(w=m[b]={offsetIndex:Object.keys(m).length}),t._offsetIndex=w.offsetIndex)}});var KC=pe((Ahe,JC)=>{"use strict";var uee=ir(),fee=ZC(),cee=$l();JC.exports=function(r,t){var n,a,o,i=t.scattermode;function l(p){return uee.coerce(a._input,a,cee,p)}if(t.scattermode==="group")for(o=0;o=0;f--){var v=r[f];if(v.type==="scatter"&&v.xaxis===u.xaxis&&v.yaxis===u.yaxis){v.opacity=void 0;break}}}}}});var $C=pe((khe,QC)=>{"use strict";var vee=ir(),hee=lv();QC.exports=function(e,r){function t(a,o){return vee.coerce(e,r,hee,a,o)}var n=r.barmode==="group";r.scattermode==="group"&&t("scattergap",n?r.bargap:.2)}});var rE=pe((She,eE)=>{"use strict";var dee=rt(),jC=ir(),pee=jC.dateTime2ms,p1=jC.incrementMonth,gee=nn(),yee=gee.ONEAVGMONTH;eE.exports=function(r,t,n,a){if(t.type!=="date")return{vals:a};var o=r[n+"periodalignment"];if(!o)return{vals:a};var i=r[n+"period"],l;if(dee(i)){if(i=+i,i<=0)return{vals:a}}else if(typeof i=="string"&&i.charAt(0)==="M"){var u=+i.substring(1);if(u>0&&Math.round(u)===u)l=u;else return{vals:a}}for(var s=t.calendar,f=o==="start",v=o==="end",p=r[n+"period0"],b=pee(p,s)||0,m=[],w=[],M=[],y=a.length,k=0;kS;)d=p1(d,-l,s);for(;d<=S;)d=p1(d,l,s);T=p1(d,-l,s)}else{for(x=Math.round((S-b)/i),d=b+x*i;d>S;)d-=i;for(;d<=S;)d+=i;T=d-i}m[k]=f?T:v?d:(T+d)/2,w[k]=T,M[k]=d}return{vals:m,starts:w,ends:M}}});var im=pe((Che,nE)=>{"use strict";var nm=Si().hasColorscale,am=zo(),tE=ia();nE.exports=function(r,t){tE.hasLines(t)&&nm(t,"line")&&am(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),tE.hasMarkers(t)&&(nm(t,"marker")&&am(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),nm(t,"marker.line")&&am(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var g1=pe((Ehe,aE)=>{"use strict";var Nt=ir();aE.exports=function(r,t){for(var n=0;n{"use strict";var iE=ir();oE.exports=function(r,t){iE.isArrayOrTypedArray(t.selectedpoints)&&iE.tagSelected(r,t)}});var fm=pe((Rhe,dE)=>{"use strict";var sE=rt(),lm=ir(),m0=St(),uE=rE(),om=nn().BADNUM,sm=ia(),mee=im(),xee=g1(),bee=lE();function _ee(e,r){var t=e._fullLayout,n=r._xA=m0.getFromId(e,r.xaxis||"x","x"),a=r._yA=m0.getFromId(e,r.yaxis||"y","y"),o=n.makeCalcdata(r,"x"),i=a.makeCalcdata(r,"y"),l=uE(r,n,"x",o),u=uE(r,a,"y",i),s=l.vals,f=u.vals,v=r._length,p=new Array(v),b=r.ids,m=um(r,t,n,a),w=!1,M,y,k,S,x,T;vE(t,r);var d="x",_="y",g;if(m)lm.pushUnique(m.traceIndices,r.index),M=m.orientation==="v",M?(_="s",g="x"):(d="s",g="y"),x=m.stackgaps==="interpolate";else{var c=cE(r,v);fE(e,r,n,a,s,f,c)}var A=!!r.xperiodalignment,h=!!r.yperiodalignment;for(y=0;yy&&p[S].gap;)S--;for(T=p[S].s,k=p.length-1;k>S;k--)p[k].s=T;for(;y{"use strict";pE.exports=y1;var wee=ir().distinctVals;function y1(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,n=r.posAxis._id.charAt(0),a=[],o=0;o{"use strict";var Va=rt(),Ko=ir().isArrayOrTypedArray,_u=nn().BADNUM,Mee=Er(),x0=St(),Tee=Vf().getAxisGroup,m1=gE();function Aee(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,o=e._fullData,i=e.calcdata,l=[],u=[],s=0;su+i||!Va(l))}for(var f=0;f{"use strict";var wE=fm(),ME=_E().setGroupPositions;function zee(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,o=e._fullData,i=e.calcdata,l=[],u=[],s=0;sc[f]&&f{"use strict";var Oee=yt(),EE=nn(),b0=EE.BADNUM,LE=EE.LOG_CLIP,kE=LE+.5,SE=LE-.5,x1=ir(),Bee=x1.segmentsIntersect,CE=x1.constrain,gm=Uh();RE.exports=function(r,t){var n=t.trace||{},a=t.xaxis,o=t.yaxis,i=a.type==="log",l=o.type==="log",u=a._length,s=o._length,f=t.backoff,v=n.marker,p=t.connectGaps,b=t.baseTolerance,m=t.shape,w=m==="linear",M=n.fill&&n.fill!=="none",y=[],k=gm.minTolerance,S=r.length,x=new Array(S),T=0,d,_,g,c,A,h,R,E,D,N,I,F,L,P,O,U;function X(We){var we=r[We];if(!we)return!1;var De=t.linearized?a.l2p(we.x):a.c2p(we.x),Qe=t.linearized?o.l2p(we.y):o.c2p(we.y);if(De===b0){if(i&&(De=a.c2p(we.x,!0)),De===b0)return!1;l&&Qe===b0&&(De*=Math.abs(a._m*s*(a._m>0?kE:SE)/(o._m*u*(o._m>0?kE:SE)))),De*=1e3}if(Qe===b0){if(l&&(Qe=o.c2p(we.y,!0)),Qe===b0)return!1;Qe*=1e3}return[De,Qe]}function $(We,we,De,Qe){var Ve=De-We,ar=Qe-we,se=.5-We,K=.5-we,ne=Ve*Ve+ar*ar,Re=Ve*se+ar*K;if(Re>0&&Re1||Math.abs(se.y-De[0][1])>1)&&(se=[se.x,se.y],Qe&&J(se,We)oe||We[1]V)return[CE(We[0],Q,oe),CE(We[1],ee,V)]}function ke(We,we){if(We[0]===we[0]&&(We[0]===Q||We[0]===oe)||We[1]===we[1]&&(We[1]===ee||We[1]===V))return!0}function Fe(We,we){var De=[],Qe=Te(We),Ve=Te(we);return Qe&&Ve&&ke(Qe,Ve)||(Qe&&De.push(Qe),Ve&&De.push(Ve)),De}function Ee(We,we,De){return function(Qe,Ve){var ar=Te(Qe),se=Te(Ve),K=[];if(ar&&se&&ke(ar,se))return K;ar&&K.push(ar),se&&K.push(se);var ne=2*x1.constrain((Qe[We]+Ve[We])/2,we,De)-((ar||Qe)[We]+(se||Ve)[We]);if(ne){var Re;ar&&se?Re=ne>0==ar[We]>se[We]?ar:se:Re=ar||se,Re[We]+=ne}return K}}var ze;m==="linear"||m==="spline"?ze=ve:m==="hv"||m==="vh"?ze=Fe:m==="hvh"?ze=Ee(0,Q,oe):m==="vhv"&&(ze=Ee(1,ee,V));function Be(We,we){var De=we[0]-We[0],Qe=(we[1]-We[1])/De,Ve=(We[1]*we[0]-we[1]*We[0])/De;return Ve>0?[Qe>0?Q:oe,V]:[Qe>0?oe:Q,ee]}function ge(We){var we=We[0],De=We[1],Qe=we===x[T-1][0],Ve=De===x[T-1][1];if(!(Qe&&Ve))if(T>1){var ar=we===x[T-2][0],se=De===x[T-2][1];Qe&&(we===Q||we===oe)&&ar?se?T--:x[T-1]=We:Ve&&(De===ee||De===V)&&se?ar?T--:x[T-1]=We:x[T++]=We}else x[T++]=We}function Me(We){x[T-1][0]!==We[0]&&x[T-1][1]!==We[1]&&ge([ue,he]),ge(We),Ce=null,ue=he=0}var ce=x1.isArrayOrTypedArray(v);function ye(We){if(We&&f&&(We.i=d,We.d=r,We.trace=n,We.marker=ce?v[We.i]:v,We.backoff=f),j=We[0]/u,Y=We[1]/s,H=We[0]oe?oe:0,te=We[1]V?V:0,H||te){if(!T)x[T++]=[H||We[0],te||We[1]];else if(Ce){var we=ze(Ce,We);we.length>1&&(Me(we[0]),x[T++]=we[1])}else Se=ze(x[T-1],We)[0],x[T++]=Se;var De=x[T-1];H&&te&&(De[0]!==H||De[1]!==te)?(Ce&&(ue!==H&&he!==te?ge(ue&&he?Be(Ce,We):[ue||H,he||te]):ue&&he&&ge([ue,he])),ge([H,te])):ue-H&&he-te&&ge([H||ue,te||he]),Ce=We,ue=H,he=te}else Ce&&Me(ze(Ce,We)[0]),x[T++]=We}for(d=0;dq(h,Le))break;g=h,L=D[0]*E[0]+D[1]*E[1],L>I?(I=L,c=h,R=!1):L=r.length||!h)break;ye(h),_=h}}Ce&&ge([ue||Ce[0],he||Ce[1]]),y.push(x.slice(0,T))}var me=m.slice(m.length-1);if(f&&me!=="h"&&me!=="v"){for(var de=!1,be=-1,Ae=[],qe=0;qe{"use strict";var PE={tonextx:1,tonexty:1,tonext:1};FE.exports=function(r,t,n){var a,o,i,l,u,s={},f=!1,v=-1,p=0,b=-1;for(o=0;o=0?u=b:(u=b=p,p++),u{"use strict";var si=it(),Uee=Er(),_0=ir(),Mu=_0.ensureSingle,zE=_0.identity,zt=yt(),Tu=ia(),Hee=DE(),Vee=IE(),b1=py().tester;qE.exports=function(r,t,n,a,o,i){var l,u,s=!o,f=!!o&&o.duration>0,v=Vee(r,t,n);if(l=a.selectAll("g.trace").data(v,function(b){return b[0].trace.uid}),l.enter().append("g").attr("class",function(b){return"trace scatter trace"+b[0].trace.uid}).style("stroke-miterlimit",2),l.order(),Gee(r,l,t),f){i&&(u=i());var p=si.transition().duration(o.duration).ease(o.easing).each("end",function(){u&&u()}).each("interrupt",function(){u&&u()});p.each(function(){a.selectAll("g.trace").each(function(b,m){NE(r,m,t,b,v,this,o)})})}else l.each(function(b,m){NE(r,m,t,b,v,this,o)});s&&l.exit().remove(),a.selectAll("path:not([d])").remove()};function Gee(e,r,t){r.each(function(n){var a=Mu(si.select(this),"g","fills");zt.setClipUrl(a,t.layerClipId,e);var o=n[0].trace,i=[];o._ownfill&&i.push("_ownFill"),o._nexttrace&&i.push("_nextFill");var l=a.selectAll("g").data(i,zE);l.enter().append("g"),l.exit().each(function(u){o[u]=null}).remove(),l.order().each(function(u){o[u]=Mu(si.select(this),"path","js-fill")})})}function NE(e,r,t,n,a,o,i){var l=e._context.staticPlot,u;Yee(e,r,t,n,a);var s=!!i&&i.duration>0;function f(Ee){return s?Ee.transition():Ee}var v=t.xaxis,p=t.yaxis,b=n[0].trace,m=b.line,w=si.select(o),M=Mu(w,"g","errorbars"),y=Mu(w,"g","lines"),k=Mu(w,"g","points"),S=Mu(w,"g","text");if(Uee.getComponentMethod("errorbars","plot")(e,M,t,i),b.visible!==!0)return;f(w).style("opacity",b.opacity);var x,T,d=b.fill.charAt(b.fill.length-1);d!=="x"&&d!=="y"&&(d="");var _,g;d==="y"?(_=1,g=p.c2p(0,!0)):d==="x"&&(_=0,g=v.c2p(0,!0)),n[0][t.isRangePlot?"nodeRangePlot3":"node3"]=w;var c="",A=[],h=b._prevtrace,R=null,E=null;h&&(c=h._prevRevpath||"",T=h._nextFill,A=h._ownPolygons,R=h._fillsegments,E=h._fillElement);var D,N,I="",F="",L,P,O,U,X,$,j=[];b._polygons=[];var Y=[],q=[],J=_0.noop;if(x=b._ownFill,Tu.hasLines(b)||b.fill!=="none"){T&&T.datum(n),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(L=zt.steps(m.shape),P=zt.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?L=P=function(Ee){var ze=Ee[Ee.length-1];return Ee.length>1&&Ee[0][0]===ze[0]&&Ee[0][1]===ze[1]?zt.smoothclosed(Ee.slice(1),m.smoothing):zt.smoothopen(Ee,m.smoothing)}:L=P=function(Ee){return"M"+Ee.join("L")},O=function(Ee){return P(Ee.reverse())},q=Hee(n,{xaxis:v,yaxis:p,trace:b,connectGaps:b.connectgaps,baseTolerance:Math.max(m.width||1,3)/4,shape:m.shape,backoff:m.backoff,simplify:m.simplify,fill:b.fill}),Y=new Array(q.length);var ae=0;for(u=0;u=l[0]&&w.x<=l[1]&&w.y>=u[0]&&w.y<=u[1]}),p=Math.ceil(v.length/f),b=0;a.forEach(function(w,M){var y=w[0].trace;Tu.hasMarkers(y)&&y.marker.maxdisplayed>0&&M{"use strict";BE.exports={container:"marker",min:"cmin",max:"cmax"}});var VE=pe((Ohe,HE)=>{"use strict";var _1=St();HE.exports=function(r,t,n){var a={},o={_fullLayout:n},i=_1.getFromTrace(o,t,"x"),l=_1.getFromTrace(o,t,"y"),u=r.orig_x;u===void 0&&(u=r.x);var s=r.orig_y;return s===void 0&&(s=r.y),a.xLabel=_1.tickText(i,i.c2l(u),!0).text,a.yLabel=_1.tickText(l,l.c2l(s),!0).text,a}});var bm=pe((Bhe,GE)=>{"use strict";var ym=it(),Au=yt(),Wee=Er();function Xee(e){var r=ym.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var n=ym.select(this),a=t.trace||t[0].trace;mm(n,a,e)}),r.selectAll("g.text").each(function(t){var n=ym.select(this),a=t.trace||t[0].trace;xm(n,a,e)}),r.selectAll("g.trace path.js-line").call(Au.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Au.fillGroupStyle,e,!1),Wee.getComponentMethod("errorbars","style")(r)}function mm(e,r,t){Au.pointStyle(e.selectAll("path.point"),r,t)}function xm(e,r,t){Au.textPointStyle(e.selectAll("text"),r,t)}function Zee(e,r,t){var n=r[0].trace;n.selectedpoints?(Au.selectedPointStyle(t.selectAll("path.point"),n),Au.selectedTextStyle(t.selectAll("text"),n)):(mm(t,n,e),xm(t,n,e))}GE.exports={style:Xee,stylePoints:mm,styleText:xm,styleOnSelect:Zee}});var WE=pe((Uhe,YE)=>{"use strict";var ku=Zr(),Jee=ia();YE.exports=function(r,t){var n,a;if(r.mode==="lines")return n=r.line.color,n&&ku.opacity(n)?n:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var o=t.mcc||(r.marker||{}).color,i=t.mlcc||((r.marker||{}).line||{}).color;return a=o&&ku.opacity(o)?o:i&&ku.opacity(i)&&(t.mlw||((r.marker||{}).line||{}).width)?i:"",a?ku.opacity(a)<.3?ku.addOpacity(a,.3):a:(n=(r.line||{}).color,n&&ku.opacity(n)&&Jee.hasLines(r)&&r.line.width?n:r.fillcolor)}});var JE=pe((Hhe,ZE)=>{"use strict";var w1=ir(),XE=io(),Kee=Er(),Qee=WE(),_m=Zr(),$ee=w1.fillText;ZE.exports=function(r,t,n,a){var o=r.cd,i=o[0].trace,l=r.xa,u=r.ya,s=l.c2p(t),f=u.c2p(n),v=[s,f],p=i.hoveron||"",b=i.mode.indexOf("markers")!==-1?3:.5,m=!!i.xperiodalignment,w=!!i.yperiodalignment;if(p.indexOf("points")!==-1){var M=function(F){if(m){var L=l.c2p(F.xStart),P=l.c2p(F.xEnd);return s>=Math.min(L,P)&&s<=Math.max(L,P)?0:1/0}var O=Math.max(3,F.mrc||0),U=1-1/O,X=Math.abs(l.c2p(F.x)-s);return X=Math.min(L,P)&&f<=Math.max(L,P)?0:1/0}var O=Math.max(3,F.mrc||0),U=1-1/O,X=Math.abs(u.c2p(F.y)-f);return Xj!=V>=j&&(Q=J[q-1][0],oe=J[q][0],V-ee&&(ae=Q+(oe-Q)*(j-ee)/(V-ee),O=Math.min(O,ae),U=Math.max(U,ae)));return O=Math.max(O,0),U=Math.min(U,l._length),{x0:O,x1:U,y0:j,y1:j}}if(p.indexOf("fills")!==-1&&i._fillElement){var D=R(i._fillElement)&&!R(i._fillExclusionElement);if(D){var N=E(i._polygons);N===null&&(N={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var I=_m.defaultLine;return _m.opacity(i.fillcolor)?I=i.fillcolor:_m.opacity((i.line||{}).color)&&(I=i.line.color),w1.extendFlat(r,{distance:r.maxHoverDistance,x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1,color:I,hovertemplate:!1}),delete r.index,i.text&&!w1.isArrayOrTypedArray(i.text)?r.text=String(i.text):r.text=i.name,[r]}}}});var $E=pe((Vhe,QE)=>{"use strict";var KE=ia();QE.exports=function(r,t){var n=r.cd,a=r.xaxis,o=r.yaxis,i=[],l=n[0].trace,u,s,f,v,p=!KE.hasMarkers(l)&&!KE.hasText(l);if(p)return[];if(t===!1)for(u=0;u{"use strict";jE.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var Mm=pe((Yhe,nL)=>{"use strict";var w0=Er().traceIs,wm=Wg();nL.exports=function(r,t,n,a){n("autotypenumbers",a.autotypenumbersDflt);var o=n("type",(a.splomStash||{}).type);o==="-"&&(jee(t,a.data),t.type==="-"?t.type="linear":r.type=t.type)};function jee(e,r){if(e.type==="-"){var t=e._id,n=t.charAt(0),a;t.indexOf("scene")!==-1&&(t=n);var o=ere(r,t,n);if(o){if(o.type==="histogram"&&n==={v:"y",h:"x"}[o.orientation||"v"]){e.type="linear";return}var i=n+"calendar",l=o[i],u={noMultiCategory:!w0(o,"cartesian")||w0(o,"noMultiCategory")};if(o.type==="box"&&o._hasPreCompStats&&n==={h:"x",v:"y"}[o.orientation||"v"]&&(u.noMultiCategory=!0),u.autotypenumbers=e.autotypenumbers,tL(o,n)){var s=rL(o),f=[];for(a=0;a0&&(a["_"+t+"axes"]||{})[r])return a;if((a[t+"axis"]||t)===r){if(tL(a,t))return a;if((a[t]||[]).length||a[t+"0"])return a}}}function rL(e){return{v:"x",h:"y"}[e.orientation||"v"]}function tL(e,r){var t=rL(e),n=w0(e,"box-violin"),a=w0(e._fullInput||{},"candlestick");return n&&!a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var iL=pe((Whe,aL)=>{"use strict";var rre=jn().isTypedArraySpec;function tre(e,r){var t=r.dataAttr||e._id.charAt(0),n={},a,o,i;if(r.axData)a=r.axData;else for(a=[],o=0;o0||rre(o),l;i&&(l="array");var u=n("categoryorder",l),s;u==="array"&&(s=n("categoryarray")),!i&&u==="array"&&(u=t.categoryorder="trace"),u==="trace"?t._initialCategories=[]:u==="array"?t._initialCategories=s.slice():(s=tre(t,a).sort(),u==="category ascending"?t._initialCategories=s:u==="category descending"&&(t._initialCategories=s.reverse()))}}});var sL=pe((Xhe,lL)=>{"use strict";var oL=ka().mix,nre=Ti(),are=ir();lL.exports=function(r,t,n,a){a=a||{};var o=a.dfltColor;function i(g,c){return are.coerce2(r,t,a.attributes,g,c)}var l=i("linecolor",o),u=i("linewidth"),s=n("showline",a.showLine||!!l||!!u);s||(delete t.linecolor,delete t.linewidth);var f=oL(o,a.bgColor,a.blend||nre.lightFraction).toRgbString(),v=i("gridcolor",f),p=i("gridwidth"),b=i("griddash"),m=n("showgrid",a.showGrid||!!v||!!p||!!b);if(m||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),a.hasMinor){var w=oL(t.gridcolor,a.bgColor,67).toRgbString(),M=i("minor.gridcolor",w),y=i("minor.gridwidth",t.gridwidth||1),k=i("minor.griddash",t.griddash||"solid"),S=n("minor.showgrid",!!M||!!y||!!k);S||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!a.noZeroLine){var x=i("zerolinelayer"),T=i("zerolinecolor",o),d=i("zerolinewidth"),_=n("zeroline",a.showGrid||!!T||!!d);_||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var T1=pe((Zhe,dL)=>{"use strict";var uL=rt(),ire=Er(),M0=ir(),ore=gt(),lre=ei(),Tm=Ra(),fL=pg(),cL=yg(),sre=bg(),ure=_g(),fre=iL(),cre=sL(),vre=v2(),vL=Rv(),M1=wn().WEEKDAY_PATTERN,hre=wn().HOUR_PATTERN;dL.exports=function(r,t,n,a,o){var i=a.letter,l=a.font||{},u=a.splomStash||{},s=n("visible",!a.visibleDflt),f=t._template||{},v=t.type||f.type||"-",p;if(v==="date"){var b=ire.getComponentMethod("calendars","handleDefaults");b(r,t,"calendar",a.calendar),a.noTicklabelmode||(p=n("ticklabelmode"))}!a.noTicklabelindex&&(v==="date"||v==="linear")&&n("ticklabelindex");var m="";(!a.noTicklabelposition||v==="multicategory")&&(m=M0.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:p==="period"?["outside","inside"]:i==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||n("ticklabeloverflow",m.indexOf("inside")!==-1?"hide past domain":v==="category"||v==="multicategory"?"allow":"hide past div"),vL(t,o),vre(r,t,n,a),fre(r,t,n,a),v!=="category"&&!a.noHover&&n("hoverformat");var w=n("color"),M=w!==Tm.color.dflt?w:l.color,y=u.label||o._dfltTitle[i];if(ure(r,t,n,v,a),!s)return t;n("title.text",y),M0.coerceFont(n,"title.font",l,{overrideDflt:{size:M0.bigFont(l.size),color:M}}),fL(r,t,n,v);var k=a.hasMinor;if(k&&(ore.newContainer(t,"minor"),fL(r,t,n,v,{isMinor:!0})),sre(r,t,n,v,a),cL(r,t,n,a),k){var S=a.isMinor;a.isMinor=!0,cL(r,t,n,a),a.isMinor=S}cre(r,t,n,{dfltColor:w,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:k,attributes:Tm}),k&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&n("mirror");var x=v==="multicategory";if(!a.noTickson&&(v==="category"||x)&&(t.ticks||t.showgrid)&&(x?(n("tickson","boundaries"),delete t.ticklabelposition):n("tickson")),x){var T=n("showdividers");T&&(n("dividercolor"),n("dividerwidth"))}if(v==="date")if(lre(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:dre}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var d=0;d=2){var i="",l,u;if(o.length===2){for(l=0;l<2;l++)if(u=hL(o[l]),u){i=M1;break}}var s=n("pattern",i);if(s===M1)for(l=0;l<2;l++)u=hL(o[l]),u&&(r.bounds[l]=o[l]=u-1);if(s)for(l=0;l<2;l++)switch(u=o[l],s){case M1:if(!uL(u)){r.enabled=!1;return}if(u=+u,u!==Math.floor(u)||u<0||u>=7){r.enabled=!1;return}r.bounds[l]=o[l]=u;break;case hre:if(!uL(u)){r.enabled=!1;return}if(u=+u,u<0||u>24){r.enabled=!1;return}r.bounds[l]=o[l]=u;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(o[0]>f[0]&&o[1]{"use strict";var gre=rt(),A1=ir();pL.exports=function(r,t,n,a){var o=a.counterAxes||[],i=a.overlayableAxes||[],l=a.letter,u=a.grid,s=a.overlayingDomain,f,v,p,b,m,w;u&&(v=u._domains[l][u._axisMap[t._id]],f=u._anchors[t._id],v&&(p=u[l+"side"].split(" ")[0],b=u.domain[l][p==="right"||p==="top"?1:0])),v=v||[0,1],f=f||(gre(r.position)?"free":o[0]||"free"),p=p||(l==="x"?"bottom":"left"),b=b||0,m=0,w=!1;var M=A1.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(o),dflt:f}},"anchor"),y=A1.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:p}},"side");if(M==="free"){if(l==="y"){var k=n("autoshift");k&&(b=y==="left"?s[0]:s[1],w=t.automargin?t.automargin:!0,m=y==="left"?-3:3),n("shift",m)}n("position",b)}n("automargin",w);var S=!1;if(i.length&&(S=A1.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(i),dflt:!1}},"overlaying")),!S){var x=n("domain",v);x[0]>x[1]-1/4096&&(t.domain=v),A1.noneOrAll(r.domain,t.domain,v),t.tickmode==="sync"&&(t.tickmode="auto")}return n("layer"),t}});var TL=pe((Khe,ML)=>{"use strict";var ts=ir(),gL=Zr(),yre=to().isUnifiedHover,mre=q2(),yL=gt(),xre=Ds(),mL=Ra(),bre=Mm(),xL=T1(),_re=Vf(),bL=Am(),Sm=on(),Ui=Sm.id2name,_L=Sm.name2id,wre=wn().AX_ID_PATTERN,wL=Er(),k1=wL.traceIs,km=wL.getComponentMethod;function S1(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}ML.exports=function(r,t,n){var a=t.autotypenumbers,o={},i={},l={},u={},s={},f={},v={},p={},b={},m={},w,M;for(w=0;w{"use strict";var Mre=it(),AL=Er(),C1=ir(),xa=yt(),E1=St();kL.exports=function(r,t,n,a){var o=r._fullLayout;if(t.length===0){E1.redrawComponents(r);return}function i(M){var y=M.xaxis,k=M.yaxis;o._defs.select("#"+M.clipId+"> rect").call(xa.setTranslate,0,0).call(xa.setScale,1,1),M.plot.call(xa.setTranslate,y._offset,k._offset).call(xa.setScale,1,1);var S=M.plot.selectAll(".scatterlayer .trace");S.selectAll(".point").call(xa.setPointGroupScale,1,1),S.selectAll(".textpoint").call(xa.setTextPointsScale,1,1),S.call(xa.hideOutsideRangePoints,M)}function l(M,y){var k=M.plotinfo,S=k.xaxis,x=k.yaxis,T=S._length,d=x._length,_=!!M.xr1,g=!!M.yr1,c=[];if(_){var A=C1.simpleMap(M.xr0,S.r2l),h=C1.simpleMap(M.xr1,S.r2l),R=A[1]-A[0],E=h[1]-h[0];c[0]=(A[0]*(1-y)+y*h[0]-A[0])/(A[1]-A[0])*T,c[2]=T*(1-y+y*E/R),S.range[0]=S.l2r(A[0]*(1-y)+y*h[0]),S.range[1]=S.l2r(A[1]*(1-y)+y*h[1])}else c[0]=0,c[2]=T;if(g){var D=C1.simpleMap(M.yr0,x.r2l),N=C1.simpleMap(M.yr1,x.r2l),I=D[1]-D[0],F=N[1]-N[0];c[1]=(D[1]*(1-y)+y*N[1]-D[1])/(D[0]-D[1])*d,c[3]=d*(1-y+y*F/I),x.range[0]=S.l2r(D[0]*(1-y)+y*N[0]),x.range[1]=x.l2r(D[1]*(1-y)+y*N[1])}else c[1]=0,c[3]=d;E1.drawOne(r,S,{skipTitle:!0}),E1.drawOne(r,x,{skipTitle:!0}),E1.redrawComponents(r,[S._id,x._id]);var L=_?T/c[2]:1,P=g?d/c[3]:1,O=_?c[0]:0,U=g?c[1]:0,X=_?c[0]/c[2]*T:0,$=g?c[1]/c[3]*d:0,j=S._offset-X,Y=x._offset-$;k.clipRect.call(xa.setTranslate,O,U).call(xa.setScale,1/L,1/P),k.plot.call(xa.setTranslate,j,Y).call(xa.setScale,L,P),xa.setPointGroupScale(k.zoomScalePts,1/L,1/P),xa.setTextPointsScale(k.zoomScaleTxt,1/L,1/P)}var u;a&&(u=a());function s(){for(var M={},y=0;yn.duration?(s(),b=window.cancelAnimationFrame(w)):b=window.requestAnimationFrame(w)}return v=Date.now(),b=window.requestAnimationFrame(w),Promise.resolve()}});var Cm=pe(Ln=>{"use strict";var R1=it(),CL=Er(),ns=ir(),Tre=ln(),Are=yt(),EL=_f().getModuleCalcData,Qo=on(),ui=wn(),kre=Io(),lt=ns.ensureSingle;function L1(e,r,t){return ns.ensureSingle(e,r,t,function(n){n.datum(t)})}var as=ui.zindexSeparator;Ln.name="cartesian";Ln.attr=["xaxis","yaxis"];Ln.idRoot=["x","y"];Ln.idRegex=ui.idRegex;Ln.attrRegex=ui.attrRegex;Ln.attributes=eL();Ln.layoutAttributes=Ra();Ln.supplyLayoutDefaults=TL();Ln.transitionAxes=SL();Ln.finalizeSubplots=function(e,r){var t=r._subplots,n=t.xaxis,a=t.yaxis,o=t.cartesian,i=o,l={},u={},s,f,v;for(s=0;s0){var b=p.id;if(b.indexOf(as)!==-1)continue;b+=as+(s+1),p=ns.extendFlat({},p,{id:b,plot:a._cartesianlayer.selectAll(".subplot").select("."+b)})}for(var m=[],w,M=0;M1&&(T+=as+x),S.push(l+T),i=0;i1,v=r.mainplotinfo;if(!r.mainplot||f)if(s)r.xlines=lt(n,"path","xlines-above"),r.ylines=lt(n,"path","ylines-above"),r.xaxislayer=lt(n,"g","xaxislayer-above"),r.yaxislayer=lt(n,"g","yaxislayer-above");else{if(!i){var p=lt(n,"g","layer-subplot");r.shapelayer=lt(p,"g","shapelayer"),r.imagelayer=lt(p,"g","imagelayer"),v&&f?(r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer):(r.minorGridlayer=lt(n,"g","minor-gridlayer"),r.gridlayer=lt(n,"g","gridlayer"),r.zerolinelayer=lt(n,"g","zerolinelayer"));var b=lt(n,"g","layer-between");r.shapelayerBetween=lt(b,"g","shapelayer"),r.imagelayerBetween=lt(b,"g","imagelayer"),lt(n,"path","xlines-below"),lt(n,"path","ylines-below"),r.overlinesBelow=lt(n,"g","overlines-below"),lt(n,"g","xaxislayer-below"),lt(n,"g","yaxislayer-below"),r.overaxesBelow=lt(n,"g","overaxes-below")}r.overplot=lt(n,"g","overplot"),r.plot=lt(r.overplot,"g",a),v&&f?r.zerolinelayerAbove=v.zerolinelayerAbove:r.zerolinelayerAbove=lt(n,"g","zerolinelayer-above"),i||(r.xlines=lt(n,"path","xlines-above"),r.ylines=lt(n,"path","ylines-above"),r.overlinesAbove=lt(n,"g","overlines-above"),lt(n,"g","xaxislayer-above"),lt(n,"g","yaxislayer-above"),r.overaxesAbove=lt(n,"g","overaxes-above"),r.xlines=n.select(".xlines-"+l),r.ylines=n.select(".ylines-"+u),r.xaxislayer=n.select(".xaxislayer-"+l),r.yaxislayer=n.select(".yaxislayer-"+u))}else{var m=v.plotgroup,w=a+"-x",M=a+"-y";r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer,r.zerolinelayerAbove=v.zerolinelayerAbove,lt(v.overlinesBelow,"path",w),lt(v.overlinesBelow,"path",M),lt(v.overaxesBelow,"g",w),lt(v.overaxesBelow,"g",M),r.plot=lt(v.overplot,"g",a),lt(v.overlinesAbove,"path",w),lt(v.overlinesAbove,"path",M),lt(v.overaxesAbove,"g",w),lt(v.overaxesAbove,"g",M),r.xlines=m.select(".overlines-"+l).select("."+w),r.ylines=m.select(".overlines-"+u).select("."+M),r.xaxislayer=m.select(".overaxes-"+l).select("."+w),r.yaxislayer=m.select(".overaxes-"+u).select("."+M)}i||(s||(L1(r.minorGridlayer,"g",r.xaxis._id),L1(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(y){return y[0]}).sort(Qo.idSort),L1(r.gridlayer,"g",r.xaxis._id),L1(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(y){return y[0]}).sort(Qo.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function DL(e,r){if(e){var t={};e.each(function(u){var s=u[0],f=R1.select(this);f.remove(),PL(s,r),t[s]=!0});for(var n in r._plots)for(var a=r._plots[n],o=a.overlays||[],i=0;i{"use strict";var D1=ia();FL.exports={hasLines:D1.hasLines,hasMarkers:D1.hasMarkers,hasText:D1.hasText,isBubble:D1.isBubble,attributes:$l(),layoutAttributes:lv(),supplyDefaults:WC(),crossTraceDefaults:KC(),supplyLayoutDefaults:$C(),calc:fm().calc,crossTraceCalc:AE(),arraysToCalcdata:g1(),plot:OE(),colorbar:UE(),formatLabels:VE(),style:bm().style,styleOnSelect:bm().styleOnSelect,hoverPoints:JE(),selectPoints:$E(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Cm(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var qL=pe((e1e,zL)=>{"use strict";var Cre=it(),Ere=Zr(),NL=Sy(),Em=ir(),Lre=Em.strScale,Rre=Em.strRotate,Dre=Em.strTranslate;zL.exports=function(r,t,n){var a=r.node(),o=NL[n.arrowhead||0],i=NL[n.startarrowhead||0],l=(n.arrowwidth||1)*(n.arrowsize||1),u=(n.arrowwidth||1)*(n.startarrowsize||1),s=t.indexOf("start")>=0,f=t.indexOf("end")>=0,v=o.backoff*l+n.standoff,p=i.backoff*u+n.startstandoff,b,m,w,M;if(a.nodeName==="line"){b={x:+r.attr("x1"),y:+r.attr("y1")},m={x:+r.attr("x2"),y:+r.attr("y2")};var y=b.x-m.x,k=b.y-m.y;if(w=Math.atan2(k,y),M=w+Math.PI,v&&p&&v+p>Math.sqrt(y*y+k*k)){D();return}if(v){if(v*v>y*y+k*k){D();return}var S=v*Math.cos(w),x=v*Math.sin(w);m.x+=S,m.y+=x,r.attr({x2:m.x,y2:m.y})}if(p){if(p*p>y*y+k*k){D();return}var T=p*Math.cos(w),d=p*Math.sin(w);b.x-=T,b.y-=d,r.attr({x1:b.x,y1:b.y})}}else if(a.nodeName==="path"){var _=a.getTotalLength(),g="";if(_{"use strict";var OL=it(),Lm=Er(),Pre=ln(),jo=ir(),Rm=jo.strTranslate,A0=St(),is=Zr(),fo=yt(),BL=io(),Dm=Yn(),Pm=Vo(),T0=ti(),Fre=gt().arrayEditor,Ire=qL();VL.exports={draw:Nre,drawOne:UL,drawRaw:HL};function Nre(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Ve="right":Ve="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ve]}for(var ee=!1,V=["x","y"],re=0;re1)&&(ue===te?(Le=he.r2fraction(r["a"+H]),(Le<0||Le>1)&&(ee=!0)):ee=!0),ze=he._offset+he.r2p(r[H]),Me=.5}else{var me=ye==="domain";H==="x"?(ge=r[H],ze=me?he._offset+he._length*ge:ze=l.l+l.w*ge):(ge=1-r[H],ze=me?he._offset+he._length*ge:ze=l.t+l.h*ge),Me=r.showarrow?.5:ge}if(r.showarrow){Ee.head=ze;var de=r["a"+H];if(ce=Se*oe(.5,r.xanchor)-ve*oe(.5,r.yanchor),ue===te){var be=A0.getRefType(ue);be==="domain"?(H==="y"&&(de=1-de),Ee.tail=he._offset+he._length*de):be==="paper"?H==="y"?(de=1-de,Ee.tail=l.t+l.h*de):Ee.tail=l.l+l.w*de:Ee.tail=he._offset+he.r2p(de),Be=ce}else Ee.tail=ze+de,Be=ce+de;Ee.text=Ee.tail+ce;var Ae=i[H==="x"?"width":"height"];if(te==="paper"&&(Ee.head=jo.constrain(Ee.head,1,Ae-1)),ue==="pixel"){var qe=-Math.max(Ee.tail-3,Ee.text),Pe=Math.min(Ee.tail+3,Ee.text)-Ae;qe>0?(Ee.tail+=qe,Ee.text+=qe):Pe>0&&(Ee.tail-=Pe,Ee.text-=Pe)}Ee.tail+=Fe,Ee.head+=Fe}else ce=Te*oe(Me,ke),Be=ce,Ee.text=ze+ce;Ee.text+=Fe,ce+=Fe,Be+=Fe,r["_"+H+"padplus"]=Te/2+Be,r["_"+H+"padminus"]=Te/2-Be,r["_"+H+"size"]=Te,r["_"+H+"shift"]=ce}if(ee){_.remove();return}var Ze=0,Ye=0;if(r.align!=="left"&&(Ze=(q-j)*(r.align==="center"?.5:1)),r.valign!=="top"&&(Ye=(J-Y)*(r.valign==="middle"?.5:1)),X)U.select("svg").attr({x:A+Ze-1,y:A+Ye}).call(fo.setClipUrl,R?w:null,e);else{var Ge=A+Ye-$.top,We=A+Ze-$.left;I.call(Dm.positionText,We,Ge).call(fo.setClipUrl,R?w:null,e)}E.select("rect").call(fo.setRect,A,A,q,J),h.call(fo.setRect,g/2,g/2,ae-g,Q-g),_.call(fo.setTranslate,Math.round(M.x.text-ae/2),Math.round(M.y.text-Q/2)),S.attr({transform:"rotate("+y+","+M.x.text+","+M.y.text+")"});var we=function(Qe,Ve){k.selectAll(".annotation-arrow-g").remove();var ar=M.x.head,se=M.y.head,K=M.x.tail+Qe,ne=M.y.tail+Ve,Re=M.x.text+Qe,Ue=M.y.text+Ve,je=jo.rotationXYMatrix(y,Re,Ue),nr=jo.apply2DTransform(je),hr=jo.apply2DTransform2(je),wr=+h.attr("width"),Cr=+h.attr("height"),Tr=Re-.5*wr,Ar=Tr+wr,ft=Ue-.5*Cr,Yr=ft+Cr,mr=[[Tr,ft,Tr,Yr],[Tr,Yr,Ar,Yr],[Ar,Yr,Ar,ft],[Ar,ft,Tr,ft]].map(hr);if(!mr.reduce(function(nt,Ft){return nt^!!jo.segmentsIntersect(ar,se,ar+1e6,se+1e6,Ft[0],Ft[1],Ft[2],Ft[3])},!1)){mr.forEach(function(nt){var Ft=jo.segmentsIntersect(K,ne,ar,se,nt[0],nt[1],nt[2],nt[3]);Ft&&(K=Ft.x,ne=Ft.y)});var ct=r.arrowwidth,Sr=r.arrowcolor,Ur=r.arrowside,xt=k.append("g").style({opacity:is.opacity(Sr)}).classed("annotation-arrow-g",!0),zr=xt.append("path").attr("d","M"+K+","+ne+"L"+ar+","+se).style("stroke-width",ct+"px").call(is.stroke,is.rgb(Sr));if(Ire(zr,Ur,r),u.annotationPosition&&zr.node().parentNode&&!n){var Hr=ar,Ot=se;if(r.standoff){var Lt=Math.sqrt(Math.pow(ar-K,2)+Math.pow(se-ne,2));Hr+=r.standoff*(K-ar)/Lt,Ot+=r.standoff*(ne-se)/Lt}var yn=xt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(K-Hr)+","+(ne-Ot),transform:Rm(Hr,Ot)}).style("stroke-width",ct+6+"px").call(is.stroke,"rgba(0,0,0,0)").call(is.fill,"rgba(0,0,0,0)"),Gt,Rt;T0.init({element:yn.node(),gd:e,prepFn:function(){var nt=fo.getTranslate(_);Gt=nt.x,Rt=nt.y,a&&a.autorange&&p(a._name+".autorange",!0),o&&o.autorange&&p(o._name+".autorange",!0)},moveFn:function(nt,Ft){var va=nr(Gt,Rt),Kn=va[0]+nt,Fn=va[1]+Ft;_.call(fo.setTranslate,Kn,Fn),b("x",$o(a,nt,"x",l,r)),b("y",$o(o,Ft,"y",l,r)),r.axref===r.xref&&b("ax",$o(a,nt,"ax",l,r)),r.ayref===r.yref&&b("ay",$o(o,Ft,"ay",l,r)),xt.attr("transform",Rm(nt,Ft)),S.attr({transform:"rotate("+y+","+Kn+","+Fn+")"})},doneFn:function(){Lm.call("_guiRelayout",e,m());var nt=document.querySelector(".js-notes-box-panel");nt&&nt.redraw(nt.selectedObj)}})}}};if(r.showarrow&&we(0,0),x){var De;T0.init({element:_.node(),gd:e,prepFn:function(){De=S.attr("transform")},moveFn:function(Qe,Ve){var ar="pointer";if(r.showarrow)r.axref===r.xref?b("ax",$o(a,Qe,"ax",l,r)):b("ax",r.ax+Qe),r.ayref===r.yref?b("ay",$o(o,Ve,"ay",l.w,r)):b("ay",r.ay+Ve),we(Qe,Ve);else{if(n)return;var se,K;if(a)se=$o(a,Qe,"x",l,r);else{var ne=r._xsize/l.w,Re=r.x+(r._xshift-r.xshift)/l.w-ne/2;se=T0.align(Re+Qe/l.w,ne,0,1,r.xanchor)}if(o)K=$o(o,Ve,"y",l,r);else{var Ue=r._ysize/l.h,je=r.y-(r._yshift+r.yshift)/l.h-Ue/2;K=T0.align(je-Ve/l.h,Ue,0,1,r.yanchor)}b("x",se),b("y",K),(!a||!o)&&(ar=T0.getCursor(a?.5:se,o?.5:K,r.xanchor,r.yanchor))}S.attr({transform:Rm(Qe,Ve)+De}),Pm(_,ar)},clickFn:function(Qe,Ve){r.captureevents&&e.emit("plotly_clickannotation",d(Ve))},doneFn:function(){Pm(_),Lm.call("_guiRelayout",e,m());var Qe=document.querySelector(".js-notes-box-panel");Qe&&Qe.redraw(Qe.selectedObj)}})}}u.annotationText?I.call(Dm.makeEditable,{delegate:_,gd:e}).call(F).on("edit",function(P){r.text=P,this.call(F),b("text",P),a&&a.autorange&&p(a._name+".autorange",!0),o&&o.autorange&&p(o._name+".autorange",!0),Lm.call("_guiRelayout",e,m())}):I.call(F)}});var JL=pe((t1e,ZL)=>{"use strict";var GL=ir(),zre=Er(),YL=gt().arrayEditor;ZL.exports={hasClickToShow:qre,onClick:Ore};function qre(e,r){var t=XL(e,r);return t.on.length>0||t.explicitOff.length>0}function Ore(e,r){var t=XL(e,r),n=t.on,a=t.off.concat(t.explicitOff),o={},i=e._fullLayout.annotations,l,u;if(n.length||a.length){for(l=0;l{"use strict";var Fm=ir(),Su=Zr();KL.exports=function(r,t,n,a){a("opacity");var o=a("bgcolor"),i=a("bordercolor"),l=Su.opacity(i);a("borderpad");var u=a("borderwidth"),s=a("showarrow");a("text",s?" ":n._dfltTitle.annotation),a("textangle"),Fm.coerceFont(a,"font",n.font),a("width"),a("align");var f=a("height");if(f&&a("valign"),s){var v=a("arrowside"),p,b;v.indexOf("end")!==-1&&(p=a("arrowhead"),b=a("arrowsize")),v.indexOf("start")!==-1&&(a("startarrowhead",p),a("startarrowsize",b)),a("arrowcolor",l?t.bordercolor:Su.defaultLine),a("arrowwidth",(l&&u||1)*2),a("standoff"),a("startstandoff")}var m=a("hovertext"),w=n.hoverlabel||{};if(m){var M=a("hoverlabel.bgcolor",w.bgcolor||(Su.opacity(o)?Su.rgb(o):Su.defaultLine)),y=a("hoverlabel.bordercolor",w.bordercolor||Su.contrast(M)),k=Fm.extendFlat({},w.font);k.color||(k.color=y),Fm.coerceFont(a,"hoverlabel.font",k)}a("captureevents",!!m)}});var $L=pe((a1e,QL)=>{"use strict";var Nm=ir(),os=St(),Bre=ei(),Ure=Im(),Hre=yu();QL.exports=function(r,t){Bre(r,t,{name:"annotations",handleItemDefaults:Vre})};function Vre(e,r,t){function n(S,x){return Nm.coerce(e,r,Hre,S,x)}var a=n("visible"),o=n("clicktoshow");if(a||o){Ure(e,r,t,n);for(var i=r.showarrow,l=["x","y"],u=[-10,-30],s={_fullLayout:t},f=0;f<2;f++){var v=l[f],p=os.coerceRef(e,r,s,v,"","paper");if(p!=="paper"){var b=os.getFromId(s,p);b._annIndices.push(r._index)}if(os.coercePosition(r,s,n,p,v,.5),i){var m="a"+v,w=os.coerceRef(e,r,s,m,"pixel",["pixel","paper"]);w!=="pixel"&&w!==p&&(w=r[m]="pixel");var M=w==="pixel"?u[f]:.4;os.coercePosition(r,s,n,w,m,M)}n(v+"anchor"),n(v+"shift")}if(Nm.noneOrAll(e,r,["x","y"]),i&&Nm.noneOrAll(e,r,["ax","ay"]),o){var y=n("xclick"),k=n("yclick");r._xclick=y===void 0?r.x:os.cleanPosition(y,s,r.xref),r._yclick=k===void 0?r.y:os.cleanPosition(k,s,r.yref)}}}});var rR=pe((i1e,eR)=>{"use strict";var zm=ir(),ls=St(),Gre=P1().draw;eR.exports=function(r){var t=r._fullLayout,n=zm.filterVisible(t.annotations);if(n.length&&r._fullData.length)return zm.syncOrAsync([Gre,Yre],r)};function Yre(e){var r=e._fullLayout;zm.filterVisible(r.annotations).forEach(function(t){var n=ls.getFromId(e,t.xref),a=ls.getFromId(e,t.yref),o=ls.getRefType(t.xref),i=ls.getRefType(t.yref);t._extremes={},o==="range"&&jL(t,n),i==="range"&&jL(t,a)})}function jL(e,r){var t=r._id,n=t.charAt(0),a=e[n],o=e["a"+n],i=e[n+"ref"],l=e["a"+n+"ref"],u=e["_"+n+"padplus"],s=e["_"+n+"padminus"],f={x:1,y:-1}[n]*e[n+"shift"],v=3*e.arrowsize*e.arrowwidth||0,p=v+f,b=v-f,m=3*e.startarrowsize*e.arrowwidth||0,w=m+f,M=m-f,y;if(l===i){var k=ls.findExtremes(r,[r.r2c(a)],{ppadplus:p,ppadminus:b}),S=ls.findExtremes(r,[r.r2c(o)],{ppadplus:Math.max(u,w),ppadminus:Math.max(s,M)});y={min:[k.min[0],S.min[0]],max:[k.max[0],S.max[0]]}}else w=o?w+o:w,M=o?M-o:M,y=ls.findExtremes(r,[r.r2c(a)],{ppadplus:Math.max(u,p,w),ppadminus:Math.max(s,b,M)});e._extremes[t]=y}});var nR=pe((o1e,tR)=>{"use strict";var Wre=rt(),Xre=Ac();tR.exports=function(r,t,n,a){t=t||{};var o=n==="log"&&t.type==="linear",i=n==="linear"&&t.type==="log";if(!(o||i))return;var l=r._fullLayout.annotations,u=t._id.charAt(0),s,f;function v(b){var m=s[b],w=null;o?w=Xre(m,t.range):w=Math.pow(10,m),Wre(w)||(w=null),a(f+b,w)}for(var p=0;p{"use strict";var qm=P1(),aR=JL();iR.exports={moduleType:"component",name:"annotations",layoutAttributes:yu(),supplyLayoutDefaults:$L(),includeBasePlot:o0()("annotations"),calcAutorange:rR(),draw:qm.draw,drawOne:qm.drawOne,drawRaw:qm.drawRaw,hasClickToShow:aR.hasClickToShow,onClick:aR.onClick,convertCoords:nR()}});var F1=pe((s1e,lR)=>{"use strict";var wt=yu(),Zre=zn().overrideAll,Jre=gt().templatedArray;lR.exports=Zre(Jre("annotation",{visible:wt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:wt.xanchor,xshift:wt.xshift,yanchor:wt.yanchor,yshift:wt.yshift,text:wt.text,textangle:wt.textangle,font:wt.font,width:wt.width,height:wt.height,opacity:wt.opacity,align:wt.align,valign:wt.valign,bgcolor:wt.bgcolor,bordercolor:wt.bordercolor,borderpad:wt.borderpad,borderwidth:wt.borderwidth,showarrow:wt.showarrow,arrowcolor:wt.arrowcolor,arrowhead:wt.arrowhead,startarrowhead:wt.startarrowhead,arrowside:wt.arrowside,arrowsize:wt.arrowsize,startarrowsize:wt.startarrowsize,arrowwidth:wt.arrowwidth,standoff:wt.standoff,startstandoff:wt.startstandoff,hovertext:wt.hovertext,hoverlabel:wt.hoverlabel,captureevents:wt.captureevents}),"calc","from-root")});var uR=pe((u1e,sR)=>{"use strict";var Om=ir(),Kre=St(),Qre=ei(),$re=Im(),jre=F1();sR.exports=function(r,t,n){Qre(r,t,{name:"annotations",handleItemDefaults:ete,fullLayout:n.fullLayout})};function ete(e,r,t,n){function a(l,u){return Om.coerce(e,r,jre,l,u)}function o(l){var u=l+"axis",s={_fullLayout:{}};return s._fullLayout[u]=t[u],Kre.coercePosition(r,s,a,l,l,.5)}var i=a("visible");i&&($re(e,r,n.fullLayout,a),o("x"),o("y"),o("z"),Om.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",a("ax",-10),a("ay",-30),Om.noneOrAll(e,r,["ax","ay"])))}});var hR=pe((f1e,vR)=>{"use strict";var fR=ir(),cR=St();vR.exports=function(r){for(var t=r.fullSceneLayout,n=t.annotations,a=0;a{"use strict";function Bm(e,r){var t=[0,0,0,0],n,a;for(n=0;n<4;++n)for(a=0;a<4;++a)t[a]+=e[4*n+a]*r[n];return t}function tte(e,r){var t=Bm(e.projection,Bm(e.view,Bm(e.model,[r[0],r[1],r[2],1])));return t}dR.exports=tte});var gR=pe((v1e,pR)=>{"use strict";var nte=P1().drawRaw,ate=Um(),ite=["x","y","z"];pR.exports=function(r){for(var t=r.fullSceneLayout,n=r.dataScale,a=t.annotations,o=0;o1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+o+'"]').remove():(i._pdata=ate(r.glplot.cameraParams,[t.xaxis.r2l(i.x)*n[0],t.yaxis.r2l(i.y)*n[1],t.zaxis.r2l(i.z)*n[2]]),nte(r.graphDiv,i,o,r.id,i._xa,i._ya))}}});var xR=pe((h1e,mR)=>{"use strict";var ote=Er(),yR=ir();mR.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:F1()}}},layoutAttributes:F1(),handleDefaults:uR(),includeBasePlot:lte,convert:hR(),draw:gR()};function lte(e,r){var t=ote.subplotsRegistry.gl3d;if(t)for(var n=t.attrRegex,a=Object.keys(e),o=0;o{"use strict";var bR=yu(),_R=kn(),wR=$l().line,ste=Ao().dash,fi=Mt().extendFlat,ute=gt().templatedArray,d1e=i0(),Cu=Sn(),fte=Sa().shapeTexttemplateAttrs,cte=Oc();MR.exports=ute("shape",{visible:fi({},Cu.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:fi({},Cu.legend,{editType:"calc+arraydraw"}),legendgroup:fi({},Cu.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:fi({},Cu.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:_R({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:fi({},Cu.legendrank,{editType:"calc+arraydraw"}),legendwidth:fi({},Cu.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:fi({},bR.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:fi({},bR.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:fi({},wR.color,{editType:"arraydraw"}),width:fi({},wR.width,{editType:"calc+arraydraw"}),dash:fi({},ste,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:fte({},{keys:Object.keys(cte)}),font:_R({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var kR=pe((g1e,AR)=>{"use strict";var k0=ir(),Eu=St(),vte=ei(),hte=Hm(),TR=Wo();AR.exports=function(r,t){vte(r,t,{name:"shapes",handleItemDefaults:pte})};function dte(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function pte(e,r,t){function n(P,O){return k0.coerce(e,r,hte,P,O)}r._isShape=!0;var a=n("visible");if(a){var o=n("showlegend");o&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),k0.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var i=n("path"),l=i?"path":"rect",u=n("type",l),s=u!=="path";s&&delete r.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var f=n("line.width");f&&(n("line.color"),n("line.dash"));for(var v=n("xsizemode"),p=n("ysizemode"),b=["x","y"],m=0;m<2;m++){var w=b[m],M=w+"anchor",y=w==="x"?v:p,k={_fullLayout:t},S,x,T,d=Eu.coerceRef(e,r,k,w,void 0,"paper"),_=Eu.getRefType(d);if(_==="range"?(S=Eu.getFromId(k,d),S._shapeIndices.push(r._index),T=TR.rangeToShapePosition(S),x=TR.shapePositionToRange(S),(S.type==="category"||S.type==="multicategory")&&(n(w+"0shift"),n(w+"1shift"))):x=T=k0.identity,s){var g=.25,c=.75,A=w+"0",h=w+"1",R=e[A],E=e[h];e[A]=x(e[A],!0),e[h]=x(e[h],!0),y==="pixel"?(n(A,0),n(h,10)):(Eu.coercePosition(r,k,n,d,A,g),Eu.coercePosition(r,k,n,d,h,c)),r[A]=T(r[A]),r[h]=T(r[h]),e[A]=R,e[h]=E}if(y==="pixel"){var D=e[M];e[M]=x(e[M],!0),Eu.coercePosition(r,k,n,d,M,.25),r[M]=T(r[M]),e[M]=D}}s&&k0.noneOrAll(e,r,["x0","x1","y0","y1"]);var N=u==="line",I,F;if(s&&(I=n("label.texttemplate")),I||(F=n("label.text")),F||I){n("label.textangle");var L=n("label.textposition",N?"middle":"middle center");n("label.xanchor"),n("label.yanchor",dte(N,L)),n("label.padding"),k0.coerceFont(n,"label.font",t.font)}}}});var ER=pe((y1e,CR)=>{"use strict";var gte=Zr(),SR=ir();function yte(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}CR.exports=function(r,t,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),SR.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var a=n("newshape.line.width");if(a){var o=(r||{}).plot_bgcolor||"#FFF";n("newshape.line.color",gte.contrast(o)),n("newshape.line.dash")}var i=r.dragmode==="drawline",l=n("newshape.label.text"),u=n("newshape.label.texttemplate");if(l||u){n("newshape.label.textangle");var s=n("newshape.label.textposition",i?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",yte(i,s)),n("newshape.label.padding"),SR.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var FR=pe((m1e,PR)=>{"use strict";var Vm=ir(),Lu=St(),Ru=Of(),RR=Wo();PR.exports=function(r){var t=r._fullLayout,n=Vm.filterVisible(t.shapes);if(!(!n.length||!r._fullData.length))for(var a=0;a0?s+i:i;return{ppad:i,ppadplus:l?v:p,ppadminus:l?p:v}}else return{ppad:i}}function LR(e,r,t){var n=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",o,i,l=0,u=0,s=a?e.r2c:e.d2c,f=r[n+"sizemode"]==="scaled";if(f?(o=r[n+"0"],i=r[n+"1"],a&&(l=r[n+"0shift"],u=r[n+"1shift"])):(o=r[n+"anchor"],i=r[n+"anchor"]),o!==void 0)return[s(o)+l,s(i)+u];if(r.path){var v=1/0,p=-1/0,b=r.path.match(Ru.segmentRE),m,w,M,y,k;for(e.type==="date"&&(s=RR.decodeDate(s)),m=0;mp&&(p=k)));if(p>=v)return[v,p]}}});var zR=pe((x1e,NR)=>{"use strict";var IR=Th();NR.exports={moduleType:"component",name:"shapes",layoutAttributes:Hm(),supplyLayoutDefaults:kR(),supplyDrawNewShapeDefaults:ER(),includeBasePlot:o0()("shapes"),calcAutorange:FR(),draw:IR.draw,drawOne:IR.drawOne}});var Gm=pe((_1e,OR)=>{"use strict";var qR=wn(),bte=gt().templatedArray,b1e=i0();OR.exports=bte("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",qR.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",qR.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var UR=pe((w1e,BR)=>{"use strict";var _te=ir(),Ym=St(),wte=ei(),Mte=Gm(),Tte="images";BR.exports=function(r,t){var n={name:Tte,handleItemDefaults:Ate};wte(r,t,n)};function Ate(e,r,t){function n(p,b){return _te.coerce(e,r,Mte,p,b)}var a=n("source"),o=n("visible",!!a);if(!o)return r;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var i={_fullLayout:t},l=["x","y"],u=0;u<2;u++){var s=l[u],f=Ym.coerceRef(e,r,i,s,"paper",void 0);if(f!=="paper"){var v=Ym.getFromId(i,f);v._imgIndices.push(r._index)}Ym.coercePosition(r,i,n,f,s,0)}return r}});var YR=pe((M1e,GR)=>{"use strict";var HR=it(),kte=yt(),Du=St(),VR=on(),Ste=Io();GR.exports=function(r){var t=r._fullLayout,n=[],a={},o=[],i,l;for(l=0;l{"use strict";var WR=rt(),Cte=Ac();XR.exports=function(r,t,n,a){t=t||{};var o=n==="log"&&t.type==="linear",i=n==="linear"&&t.type==="log";if(o||i){for(var l=r._fullLayout.images,u=t._id.charAt(0),s,f,v=0;v{"use strict";JR.exports={moduleType:"component",name:"images",layoutAttributes:Gm(),supplyLayoutDefaults:UR(),includeBasePlot:o0()("images"),draw:YR(),convertCoords:ZR()}});var I1=pe((k1e,QR)=>{"use strict";QR.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var Wm=pe((S1e,jR)=>{"use strict";var Ete=kn(),Lte=Ti(),Rte=Mt().extendFlat,Dte=zn().overrideAll,Pte=Bc(),$R=gt().templatedArray,Fte=$R("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});jR.exports=Dte($R("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Fte,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Rte(Pte({editType:"arraydraw"}),{}),font:Ete({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Lte.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var nD=pe((C1e,tD)=>{"use strict";var N1=ir(),eD=ei(),rD=Wm(),Ite=I1(),Nte=Ite.name,zte=rD.buttons;tD.exports=function(r,t){var n={name:Nte,handleItemDefaults:qte};eD(r,t,n)};function qte(e,r,t){function n(i,l){return N1.coerce(e,r,rD,i,l)}var a=eD(e,r,{name:"buttons",handleItemDefaults:Ote}),o=n("visible",a.length>0);o&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),N1.noneOrAll(e,r,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),N1.coerceFont(n,"font",t.font),n("bgcolor",t.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function Ote(e,r){function t(a,o){return N1.coerce(e,r,zte,a,o)}var n=t("visible",e.method==="skip"||Array.isArray(e.args));n&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var oD=pe((E1e,iD)=>{"use strict";iD.exports=Dt;var ci=it(),aD=Zr(),Pu=yt(),z1=ir();function Dt(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Dt.barWidth=2;Dt.barLength=20;Dt.barRadius=2;Dt.barPad=1;Dt.barColor="#808BA4";Dt.prototype.enable=function(r,t,n){var a=this.gd._fullLayout,o=a.width,i=a.height;this.position=r;var l=this.position.l,u=this.position.w,s=this.position.t,f=this.position.h,v=this.position.direction,p=v==="down",b=v==="left",m=v==="right",w=v==="up",M=u,y=f,k,S,x,T;!p&&!b&&!m&&!w&&(this.position.direction="down",p=!0);var d=p||w;d?(k=l,S=k+M,p?(x=s,T=Math.min(x+y,i),y=T-x):(T=s+y,x=Math.max(T-y,0),y=T-x)):(x=s,T=x+y,b?(S=l+M,k=Math.max(S-M,0),M=S-k):(k=l,S=Math.min(k+M,o),M=S-k)),this._box={l:k,t:x,w:M,h:y};var _=u>M,g=Dt.barLength+2*Dt.barPad,c=Dt.barWidth+2*Dt.barPad,A=l,h=s+f;h+c>i&&(h=i-c);var R=this.container.selectAll("rect.scrollbar-horizontal").data(_?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(aD.fill,Dt.barColor),_?(this.hbar=R.attr({rx:Dt.barRadius,ry:Dt.barRadius,x:A,y:h,width:g,height:c}),this._hbarXMin=A+g/2,this._hbarTranslateMax=M-g):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=f>y,D=Dt.barWidth+2*Dt.barPad,N=Dt.barLength+2*Dt.barPad,I=l+u,F=s;I+D>o&&(I=o-D);var L=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);L.exit().on(".drag",null).remove(),L.enter().append("rect").classed("scrollbar-vertical",!0).call(aD.fill,Dt.barColor),E?(this.vbar=L.attr({rx:Dt.barRadius,ry:Dt.barRadius,x:I,y:F,width:D,height:N}),this._vbarYMin=F+N/2,this._vbarTranslateMax=y-N):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var P=this.id,O=k-.5,U=E?S+D+.5:S+.5,X=x-.5,$=_?T+c+.5:T+.5,j=a._topdefs.selectAll("#"+P).data(_||E?[0]:[]);if(j.exit().remove(),j.enter().append("clipPath").attr("id",P).append("rect"),_||E?(this._clipRect=j.select("rect").attr({x:Math.floor(O),y:Math.floor(X),width:Math.ceil(U)-Math.floor(O),height:Math.ceil($)-Math.floor(X)}),this.container.call(Pu.setClipUrl,P,this.gd),this.bg.attr({x:l,y:s,width:u,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Pu.setClipUrl,null),delete this._clipRect),_||E){var Y=ci.behavior.drag().on("dragstart",function(){ci.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Y);var q=ci.behavior.drag().on("dragstart",function(){ci.event.sourceEvent.preventDefault(),ci.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));_&&this.hbar.on(".drag",null).call(q),E&&this.vbar.on(".drag",null).call(q)}this.setTranslate(t,n)};Dt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Pu.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Dt.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=ci.event.dx),this.vbar&&(t-=ci.event.dy),this.setTranslate(r,t)};Dt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=ci.event.deltaY),this.vbar&&(t+=ci.event.deltaY),this.setTranslate(r,t)};Dt.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var n=r+this._hbarXMin,a=n+this._hbarTranslateMax,o=z1.constrain(ci.event.x,n,a),i=(o-n)/(a-n),l=this.position.w-this._box.w;r=i*l}if(this.vbar){var u=t+this._vbarYMin,s=u+this._vbarTranslateMax,f=z1.constrain(ci.event.y,u,s),v=(f-u)/(s-u),p=this.position.h-this._box.h;t=v*p}this.setTranslate(r,t)};Dt.prototype.setTranslate=function(r,t){var n=this.position.w-this._box.w,a=this.position.h-this._box.h;if(r=z1.constrain(r||0,0,n),t=z1.constrain(t||0,0,a),this.translateX=r,this.translateY=t,this.container.call(Pu.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var o=r/n;this.hbar.call(Pu.setTranslate,r+o*this._hbarTranslateMax,t)}if(this.vbar){var i=t/a;this.vbar.call(Pu.setTranslate,r,t+i*this._vbarTranslateMax)}}});var gD=pe((L1e,pD)=>{"use strict";var Fu=it(),S0=ln(),C0=Zr(),Iu=yt(),ba=ir(),q1=Yn(),Bte=gt().arrayEditor,sD=qn().LINE_SPACING,Dr=I1(),Ute=oD();pD.exports=function(r){var t=r._fullLayout,n=ba.filterVisible(t[Dr.name]);function a(p){S0.autoMargin(r,hD(p))}var o=t._menulayer.selectAll("g."+Dr.containerClassName).data(n.length>0?[0]:[]);if(o.enter().append("g").classed(Dr.containerClassName,!0).style("cursor","pointer"),o.exit().each(function(){Fu.select(this).selectAll("g."+Dr.headerGroupClassName).each(a)}).remove(),n.length!==0){var i=o.selectAll("g."+Dr.headerGroupClassName).data(n,Hte);i.enter().append("g").classed(Dr.headerGroupClassName,!0);for(var l=ba.ensureSingle(o,"g",Dr.dropdownButtonGroupClassName,function(p){p.style("pointer-events","all")}),u=0;u{"use strict";var Jte=I1();yD.exports={moduleType:"component",name:Jte.name,layoutAttributes:Wm(),supplyLayoutDefaults:nD(),draw:gD()}});var L0=pe((D1e,xD)=>{"use strict";xD.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var Km=pe((P1e,wD)=>{"use strict";var bD=kn(),Kte=Bc(),Qte=Mt().extendDeepAll,$te=zn().overrideAll,jte=cf(),_D=gt().templatedArray,ss=L0(),ene=_D("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});wD.exports=$te(_D("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:ene,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:Qte(Kte({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:jte.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:bD({})},font:bD({}),activebgcolor:{valType:"color",dflt:ss.gripBgActiveColor},bgcolor:{valType:"color",dflt:ss.railBgColor},bordercolor:{valType:"color",dflt:ss.railBorderColor},borderwidth:{valType:"number",min:0,dflt:ss.railBorderWidth},ticklen:{valType:"number",min:0,dflt:ss.tickLength},tickcolor:{valType:"color",dflt:ss.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:ss.minorTickLength}}),"arraydraw","from-root")});var kD=pe((F1e,AD)=>{"use strict";var Nu=ir(),MD=ei(),TD=Km(),rne=L0(),tne=rne.name,nne=TD.steps;AD.exports=function(r,t){MD(r,t,{name:tne,handleItemDefaults:ane})};function ane(e,r,t){function n(v,p){return Nu.coerce(e,r,TD,v,p)}for(var a=MD(e,r,{name:"steps",handleItemDefaults:ine}),o=0,i=0;i{"use strict";var vi=it(),O1=ln(),el=Zr(),hi=yt(),_a=ir(),one=_a.strTranslate,R0=Yn(),lne=gt().arrayEditor,Gr=L0(),jm=qn(),ED=jm.LINE_SPACING,Qm=jm.FROM_TL,$m=jm.FROM_BR;ID.exports=function(r){var t=r._context.staticPlot,n=r._fullLayout,a=sne(n,r),o=n._infolayer.selectAll("g."+Gr.containerClassName).data(a.length>0?[0]:[]);o.enter().append("g").classed(Gr.containerClassName,!0).style("cursor",t?null:"ew-resize");function i(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),O1.autoMargin(r,LD(f))}if(o.exit().each(function(){vi.select(this).selectAll("g."+Gr.groupClassName).each(i)}).remove(),a.length!==0){var l=o.selectAll("g."+Gr.groupClassName).data(a,une);l.enter().append("g").classed(Gr.groupClassName,!0),l.exit().each(i).remove();for(var u=0;u0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",one(i-Gr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function e3(e,r){var t=e._dims;return t.inputAreaStart+Gr.stepInset+(t.inputAreaLength-2*Gr.stepInset)*Math.min(1,Math.max(0,r))}function CD(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Gr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Gr.stepInset-2*t.inputAreaStart)))}function gne(e,r,t){var n=t._dims,a=_a.ensureSingle(e,"rect",Gr.railTouchRectClass,function(o){o.call(PD,r,e,t).style("pointer-events","all")});a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Gr.tickOffset+t.ticklen+n.labelHeight)}).call(el.fill,t.bgcolor).attr("opacity",0),hi.setTranslate(a,0,n.currentValueTotalHeight)}function yne(e,r){var t=r._dims,n=t.inputAreaLength-Gr.railInset*2,a=_a.ensureSingle(e,"rect",Gr.railRectClass);a.attr({width:n,height:Gr.railWidth,rx:Gr.railRadius,ry:Gr.railRadius,"shape-rendering":"crispEdges"}).call(el.stroke,r.bordercolor).call(el.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),hi.setTranslate(a,Gr.railInset,(t.inputAreaWidth-Gr.railWidth)*.5+t.currentValueTotalHeight)}});var qD=pe((N1e,zD)=>{"use strict";var mne=L0();zD.exports={moduleType:"component",name:mne.name,layoutAttributes:Km(),supplyLayoutDefaults:kD(),draw:ND()}});var U1=pe((z1e,BD)=>{"use strict";var OD=Ti();BD.exports={bgcolor:{valType:"color",dflt:OD.background,editType:"plot"},bordercolor:{valType:"color",dflt:OD.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var r3=pe((q1e,UD)=>{"use strict";UD.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var H1=pe((O1e,HD)=>{"use strict";HD.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var YD=pe(G1=>{"use strict";var xne=on(),bne=Yn(),VD=H1(),_ne=qn().LINE_SPACING,V1=VD.name;function GD(e){var r=e&&e[V1];return r&&r.visible}G1.isVisible=GD;G1.makeData=function(e){for(var r=xne.list({_fullLayout:e},"x",!0),t=e.margin,n=[],a=0;a{"use strict";var Y1=ir(),WD=gt(),XD=on(),wne=U1(),Mne=r3();ZD.exports=function(r,t,n){var a=r[n],o=t[n];if(!(a.rangeslider||t._requestRangeslider[o._id]))return;Y1.isPlainObject(a.rangeslider)||(a.rangeslider={});var i=a.rangeslider,l=WD.newContainer(o,"rangeslider");function u(T,d){return Y1.coerce(i,l,wne,T,d)}var s,f;function v(T,d){return Y1.coerce(s,f,Mne,T,d)}var p=u("visible");if(p){u("bgcolor",t.plot_bgcolor),u("bordercolor"),u("borderwidth"),u("thickness"),u("autorange",!o.isValidRange(i.range)),u("range");var b=t._subplots;if(b)for(var m=b.cartesian.filter(function(T){return T.substr(0,T.indexOf("y"))===XD.name2id(n)}).map(function(T){return T.substr(T.indexOf("y"),T.length)}),w=Y1.simpleMap(m,XD.id2name),M=0;M{"use strict";var Tne=on().list,Ane=$s().getAutoRange,kne=H1();KD.exports=function(r){for(var t=Tne(r,"x",!0),n=0;n{"use strict";var W1=it(),Sne=Er(),Cne=ln(),qt=ir(),X1=qt.strTranslate,jD=yt(),rl=Zr(),Ene=Sf(),Lne=Cm(),t3=on(),Rne=ti(),Dne=Vo(),Qr=H1();eP.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,n=0;n=L.max)I=h[F+1];else if(N=L.pmax)I=h[F+1];else if(N0?e.touches[0].clientX:0}function Pne(e,r,t,n){if(r._context.staticPlot)return;var a=e.select("rect."+Qr.slideBoxClassName).node(),o=e.select("rect."+Qr.grabAreaMinClassName).node(),i=e.select("rect."+Qr.grabAreaMaxClassName).node();function l(){var u=W1.event,s=u.target,f=$D(u),v=f-e.node().getBoundingClientRect().left,p=n.d2p(t._rl[0]),b=n.d2p(t._rl[1]),m=Rne.coverSlip();this.addEventListener("touchmove",w),this.addEventListener("touchend",M),m.addEventListener("mousemove",w),m.addEventListener("mouseup",M);function w(y){var k=$D(y),S=+k-f,x,T,d;switch(s){case a:if(d="ew-resize",p+S>t._length||b+S<0)return;x=p+S,T=b+S;break;case o:if(d="col-resize",p+S>t._length)return;x=p+S,T=b;break;case i:if(d="col-resize",b+S<0)return;x=p,T=b+S;break;default:d="ew-resize",x=v,T=v+S;break}if(T{"use strict";var Vne=ir(),Gne=U1(),Yne=r3(),n3=YD();tP.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Vne.extendFlat({},Gne,{yaxis:Yne})}}},layoutAttributes:U1(),handleDefaults:JD(),calcAutorange:QD(),draw:rP(),isVisible:n3.isVisible,makeData:n3.makeData,autoMarginOpts:n3.autoMarginOpts}});var Z1=pe((Y1e,iP)=>{"use strict";var Wne=kn(),aP=Ti(),Xne=gt().templatedArray,Zne=Xne("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});iP.exports={visible:{valType:"boolean",editType:"plot"},buttons:Zne,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:Wne({editType:"plot"}),bgcolor:{valType:"color",dflt:aP.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:aP.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var a3=pe((W1e,oP)=>{"use strict";oP.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var uP=pe((X1e,sP)=>{"use strict";var J1=ir(),Jne=Zr(),Kne=gt(),Qne=ei(),lP=Z1(),i3=a3();sP.exports=function(r,t,n,a,o){var i=r.rangeselector||{},l=Kne.newContainer(t,"rangeselector");function u(b,m){return J1.coerce(i,l,lP,b,m)}var s=Qne(i,l,{name:"buttons",handleItemDefaults:$ne,calendar:o}),f=u("visible",s.length>0);if(f){var v=jne(t,n,a);u("x",v[0]),u("y",v[1]),J1.noneOrAll(r,t,["x","y"]),u("xanchor"),u("yanchor"),J1.coerceFont(u,"font",n.font);var p=u("bgcolor");u("activecolor",Jne.contrast(p,i3.lightAmount,i3.darkAmount)),u("bordercolor"),u("borderwidth")}};function $ne(e,r,t,n){var a=n.calendar;function o(u,s){return J1.coerce(e,r,lP.buttons,u,s)}var i=o("visible");if(i){var l=o("step");l!=="all"&&(a&&a!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":o("stepmode"),o("count")),o("label")}}function jne(e,r,t){for(var n=t.filter(function(l){return r[l].anchor===e._id}),a=0,o=0;o{"use strict";var eae=ip(),rae=ir().titleCase;fP.exports=function(r,t){var n=r._name,a={};if(t.step==="all")a[n+".autorange"]=!0;else{var o=tae(r,t);a[n+".range[0]"]=o[0],a[n+".range[1]"]=o[1]}return a};function tae(e,r){var t=e.range,n=new Date(e.r2l(t[1])),a=r.step,o=eae["utc"+rae(a)],i=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+o.offset(n,-i));break;case"todate":var u=o.offset(n,-i);l=e.l2r(+o.ceil(u));break}var s=t[1];return[l,s]}});var xP=pe((J1e,mP)=>{"use strict";var Q1=it(),nae=Er(),aae=ln(),vP=Zr(),yP=yt(),co=ir(),hP=co.strTranslate,K1=Yn(),iae=on(),s3=qn(),dP=s3.LINE_SPACING,pP=s3.FROM_TL,gP=s3.FROM_BR,l3=a3(),oae=cP();mP.exports=function(r){var t=r._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(lae(r),sae);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(a){var o=Q1.select(this),i=a,l=i.rangeselector,u=o.selectAll("g.button").data(co.filterVisible(l.buttons));u.enter().append("g").classed("button",!0),u.exit().remove(),u.each(function(s){var f=Q1.select(this),v=oae(i,s);s._isActive=uae(i,s,v),f.call(o3,l,s),f.call(cae,l,s,r),f.on("click",function(){r._dragged||nae.call("_guiRelayout",r,v)}),f.on("mouseover",function(){s._isHovered=!0,f.call(o3,l,s)}),f.on("mouseout",function(){s._isHovered=!1,f.call(o3,l,s)})}),hae(r,u,l,i._name,o)})};function lae(e){for(var r=iae.list(e,"x",!0),t=[],n=0;n{"use strict";bP.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Z1()}}},layoutAttributes:Z1(),handleDefaults:uP(),draw:xP()}});var $1=pe(u3=>{"use strict";var wP=Mt().extendFlat;u3.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",a=e.trace?"trace ":"subplot ",o=r.description?" "+r.description:"",i={x:wP({},t,{}),y:wP({},t,{}),editType:e.editType};return e.noGridCell||(i.row={valType:"integer",min:0,dflt:0,editType:e.editType},i.column={valType:"integer",min:0,dflt:0,editType:e.editType}),i};u3.defaults=function(e,r,t,n){var a=n&&n.x||[0,1],o=n&&n.y||[0,1],i=r.grid;if(i){var l=t("domain.column");l!==void 0&&(l{"use strict";var dae=ir(),pae=Es().counter,gae=$1().attributes,MP=wn().idRegex,yae=gt(),f3={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[pae("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[MP.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[MP.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:gae({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function j1(e,r,t){var n=r[t+"axes"],a=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(n))return n;if(a.length)return a}function mae(e,r){var t=e.grid||{},n=j1(r,t,"x"),a=j1(r,t,"y");if(!e.grid&&!n&&!a)return;var o=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),i=Array.isArray(n),l=Array.isArray(a),u=i&&n!==t.xaxes&&l&&a!==t.yaxes,s,f;o?(s=t.subplots.length,f=t.subplots[0].length):(l&&(s=a.length),i&&(f=n.length));var v=yae.newContainer(r,"grid");function p(d,_){return dae.coerce(t,v,f3,d,_)}var b=p("rows",s),m=p("columns",f);if(!(b*m>1)){delete r.grid;return}if(!o&&!i&&!l){var w=p("pattern")==="independent";w&&(o=!0)}v._hasSubplotGrid=o;var M=p("roworder"),y=M==="top to bottom",k=o?.2:.1,S=o?.3:.1,x,T;u&&r._splomGridDflt&&(x=r._splomGridDflt.xside,T=r._splomGridDflt.yside),v._domains={x:TP("x",p,k,x,m),y:TP("y",p,S,T,b,y)}}function TP(e,r,t,n,a,o){var i=r(e+"gap",t),l=r("domain."+e);r(e+"side",n);for(var u=new Array(a),s=l[0],f=(l[1]-s)/(a-i),v=f*(1-i),p=0;p{"use strict";CP.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var RP=pe((ede,LP)=>{"use strict";var EP=rt(),bae=Er(),_ae=ir(),wae=gt(),Mae=c3();LP.exports=function(e,r,t,n){var a="error_"+n.axis,o=wae.newContainer(r,a),i=e[a]||{};function l(m,w){return _ae.coerce(i,o,Mae,m,w)}var u=i.array!==void 0||i.value!==void 0||i.type==="sqrt",s=l("visible",u);if(s!==!1){var f=l("type","array"in i?"data":"percent"),v=!0;f!=="sqrt"&&(v=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in i))),f==="data"?(l("array"),l("traceref"),v||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),v||l("valueminus"));var p="copy_"+n.inherit+"style";if(n.inherit){var b=r["error_"+n.inherit];(b||{}).visible&&l(p,!(i.color||EP(i.thickness)||EP(i.width)))}(!n.inherit||!o[p])&&(l("color",t),l("thickness"),l("width",bae.traceIs(r,"gl3d")?0:4))}}});var v3=pe((rde,PP)=>{"use strict";PP.exports=function(r){var t=r.type,n=r.symmetric;if(t==="data"){var a=r.array||[];if(n)return function(s,f){var v=+a[f];return[v,v]};var o=r.arrayminus||[];return function(s,f){var v=+a[f],p=+o[f];return!isNaN(v)||!isNaN(p)?[p||0,v||0]:[NaN,NaN]}}else{var i=DP(t,r.value),l=DP(t,r.valueminus);return n||r.valueminus===void 0?function(s){var f=i(s);return[f,f]}:function(s){return[l(s),i(s)]}}};function DP(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var NP=pe((tde,IP)=>{"use strict";var h3=rt(),Tae=Er(),d3=St(),Aae=ir(),kae=v3();IP.exports=function(r){for(var t=r.calcdata,n=0;n{"use strict";var zP=it(),tl=rt(),Sae=yt(),Cae=ia();qP.exports=function(r,t,n,a){var o,i=n.xaxis,l=n.yaxis,u=a&&a.duration>0,s=r._context.staticPlot;t.each(function(f){var v=f[0].trace,p=v.error_x||{},b=v.error_y||{},m;v.ids&&(m=function(k){return k.id});var w=Cae.hasMarkers(v)&&v.marker.maxdisplayed>0;!b.visible&&!p.visible&&(f=[]);var M=zP.select(this).selectAll("g.errorbar").data(f,m);if(M.exit().remove(),!!f.length){p.visible||M.selectAll("path.xerror").remove(),b.visible||M.selectAll("path.yerror").remove(),M.style("opacity",1);var y=M.enter().append("g").classed("errorbar",!0);u&&y.style("opacity",0).transition().duration(a.duration).style("opacity",1),Sae.setClipUrl(M,n.layerClipId,r),M.each(function(k){var S=zP.select(this),x=Eae(k,i,l);if(!(w&&!k.vis)){var T,d=S.select("path.yerror");if(b.visible&&tl(x.x)&&tl(x.yh)&&tl(x.ys)){var _=b.width;T="M"+(x.x-_)+","+x.yh+"h"+2*_+"m-"+_+",0V"+x.ys,x.noYS||(T+="m-"+_+",0h"+2*_),o=!d.size(),o?d=S.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("yerror",!0):u&&(d=d.transition().duration(a.duration).ease(a.easing)),d.attr("d",T)}else d.remove();var g=S.select("path.xerror");if(p.visible&&tl(x.y)&&tl(x.xh)&&tl(x.xs)){var c=(p.copy_ystyle?b:p).width;T="M"+x.xh+","+(x.y-c)+"v"+2*c+"m0,-"+c+"H"+x.xs,x.noXS||(T+="m0,-"+c+"v"+2*c),o=!g.size(),o?g=S.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("xerror",!0):u&&(g=g.transition().duration(a.duration).ease(a.easing)),g.attr("d",T)}else g.remove()}})}})};function Eae(e,r,t){var n={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(n.yh=t.c2p(e.yh),n.ys=t.c2p(e.ys),tl(n.ys)||(n.noYS=!0,n.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=r.c2p(e.xh),n.xs=r.c2p(e.xs),tl(n.xs)||(n.noXS=!0,n.xs=r.c2p(e.xs,!0))),n}});var HP=pe((ade,UP)=>{"use strict";var Lae=it(),BP=Zr();UP.exports=function(r){r.each(function(t){var n=t[0].trace,a=n.error_y||{},o=n.error_x||{},i=Lae.select(this);i.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(BP.stroke,a.color),o.copy_ystyle&&(o=a),i.selectAll("path.xerror").style("stroke-width",o.thickness+"px").call(BP.stroke,o.color)})}});var YP=pe((ide,GP)=>{"use strict";var D0=ir(),VP=zn().overrideAll,P0=c3(),us={error_x:D0.extendFlat({},P0),error_y:D0.extendFlat({},P0)};delete us.error_x.copy_zstyle;delete us.error_y.copy_zstyle;delete us.error_y.copy_ystyle;var F0={error_x:D0.extendFlat({},P0),error_y:D0.extendFlat({},P0),error_z:D0.extendFlat({},P0)};delete F0.error_x.copy_ystyle;delete F0.error_y.copy_ystyle;delete F0.error_z.copy_ystyle;delete F0.error_z.copy_zstyle;GP.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:us,bar:us,histogram:us,scatter3d:VP(F0,"calc","nested"),scattergl:VP(us,"calc","nested")}},supplyDefaults:RP(),calc:NP(),makeComputeError:v3(),plot:OP(),style:HP(),hoverInfo:Rae};function Rae(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var XP=pe((ode,WP)=>{"use strict";WP.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var eF=pe((lde,jP)=>{"use strict";var nl=it(),p3=ka(),rd=ln(),ZP=Er(),vo=St(),ed=ti(),Ga=ir(),pi=Ga.strTranslate,$P=Mt().extendFlat,g3=Vo(),di=yt(),y3=Zr(),Dae=Sf(),Pae=Yn(),Fae=Si().flipScale,Iae=T1(),Nae=Am(),zae=Ra(),m3=qn(),JP=m3.LINE_SPACING,KP=m3.FROM_TL,QP=m3.FROM_BR,Et=XP().cn;function qae(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Et.colorbar).data(Oae(e),function(n){return n._id});t.enter().append("g").attr("class",function(n){return n._id}).classed(Et.colorbar,!0),t.each(function(n){var a=nl.select(this);Ga.ensureSingle(a,"rect",Et.cbbg),Ga.ensureSingle(a,"g",Et.cbfills),Ga.ensureSingle(a,"g",Et.cblines),Ga.ensureSingle(a,"g",Et.cbaxis,function(i){i.classed(Et.crisp,!0)}),Ga.ensureSingle(a,"g",Et.cbtitleunshift,function(i){i.append("g").classed(Et.cbtitle,!0)}),Ga.ensureSingle(a,"rect",Et.cboutline);var o=Bae(a,n,e);o&&o.then&&(e._promises||[]).push(o),e._context.edits.colorbarPosition&&Uae(a,n,e)}),t.exit().each(function(n){rd.autoMargin(e,n._id)}).remove(),t.order()}function Oae(e){var r=e._fullLayout,t=e.calcdata,n=[],a,o,i,l;function u(S){return $P(S,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function s(){typeof l.calc=="function"?l.calc(e,i,a):(a._fillgradient=o.reversescale?Fae(o.colorscale):o.colorscale,a._zrange=[o[l.min],o[l.max]])}for(var f=0;f1){var re=Math.pow(10,Math.floor(Math.log(V)/Math.LN10));oe*=re*Ga.roundUp(V/re,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(ae.tick0=0)}ae.dtick=oe}ae.domain=n?[q+m/x.h,q+P-m/x.h]:[q+b/x.w,q+P-b/x.w],ae.setScale(),e.attr("transform",pi(Math.round(x.l),Math.round(x.t)));var H=e.select("."+Et.cbtitleunshift).attr("transform",pi(-Math.round(x.l),-Math.round(x.t))),te=ae.ticklabelposition,ue=ae.title.font.size,he=e.select("."+Et.cbaxis),Ce,Se=0,ve=0;function Te(Be,ge){var Me={propContainer:ae,propName:r._propPrefix+"title",traceIndex:r._traceIndex,_meta:r._meta,placeholder:S._dfltTitle.colorbar,containerGroup:e.select("."+Et.cbtitle)},ce=Be.charAt(0)==="h"?Be.substr(1):"h"+Be;e.selectAll("."+ce+",."+ce+"-math-group").remove(),Dae.draw(t,Be,$P(Me,ge||{}))}function ke(){if(n&&Q||!n&&!Q){var Be,ge;g==="top"&&(Be=b+x.l+O*w,ge=m+x.t+U*(1-q-P)+3+ue*.75),g==="bottom"&&(Be=b+x.l+O*w,ge=m+x.t+U*(1-q)-3-ue*.25),g==="right"&&(ge=m+x.t+U*M+3+ue*.75,Be=b+x.l+O*q),Te(ae._id+"title",{attributes:{x:Be,y:ge,"text-anchor":n?"start":"middle"}})}}function Fe(){if(n&&!Q||!n&&Q){var Be=ae.position||0,ge=ae._offset+ae._length/2,Me,ce;if(g==="right")ce=ge,Me=x.l+O*Be+10+ue*(ae.showticklabels?1:.5);else if(Me=ge,g==="bottom"&&(ce=x.t+U*Be+10+(te.indexOf("inside")===-1?ae.tickfont.size:0)+(ae.ticks!=="intside"&&r.ticklen||0)),g==="top"){var ye=_.text.split("
").length;ce=x.t+U*Be+10-I-JP*ue*ye}Te((n?"h":"v")+ae._id+"title",{avoid:{selection:nl.select(t).selectAll("g."+ae._id+"tick"),side:g,offsetTop:n?0:x.t,offsetLeft:n?x.l:0,maxShift:n?S.width:S.height},attributes:{x:Me,y:ce,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function Ee(){if(!n&&!Q||n&&Q){var Be=e.select("."+Et.cbtitle),ge=Be.select("text"),Me=[-u/2,u/2],ce=Be.select(".h"+ae._id+"title-math-group").node(),ye=15.6;ge.node()&&(ye=parseInt(ge.node().style.fontSize,10)*JP);var Le;if(ce?(Le=di.bBox(ce),ve=Le.width,Se=Le.height,Se>ye&&(Me[1]-=(Se-ye)/2)):ge.node()&&!ge.classed(Et.jsPlaceholder)&&(Le=di.bBox(ge.node()),ve=Le.width,Se=Le.height),n){if(Se){if(Se+=5,g==="top")ae.domain[1]-=Se/x.h,Me[1]*=-1;else{ae.domain[0]+=Se/x.h;var me=Pae.lineCount(ge);Me[1]+=(1-me)*ye}Be.attr("transform",pi(Me[0],Me[1])),ae.setScale()}}else ve&&(g==="right"&&(ae.domain[0]+=(ve+ue/2)/x.w),Be.attr("transform",pi(Me[0],Me[1])),ae.setScale())}e.selectAll("."+Et.cbfills+",."+Et.cblines).attr("transform",n?pi(0,Math.round(x.h*(1-ae.domain[1]))):pi(Math.round(x.w*ae.domain[0]),0)),he.attr("transform",n?pi(0,Math.round(-x.t)):pi(Math.round(-x.l),0));var de=e.select("."+Et.cbfills).selectAll("rect."+Et.cbfill).attr("style","").data(D);de.enter().append("rect").classed(Et.cbfill,!0).attr("style",""),de.exit().remove();var be=c.map(ae.c2p).map(Math.round).sort(function(Ye,Ge){return Ye-Ge});de.each(function(Ye,Ge){var We=[Ge===0?c[0]:(D[Ge]+D[Ge-1])/2,Ge===D.length-1?c[1]:(D[Ge]+D[Ge+1])/2].map(ae.c2p).map(Math.round);n&&(We[1]=Ga.constrain(We[1]+(We[1]>We[0])?1:-1,be[0],be[1]));var we=nl.select(this).attr(n?"x":"y",X).attr(n?"y":"x",nl.min(We)).attr(n?"width":"height",Math.max(I,2)).attr(n?"height":"width",Math.max(nl.max(We)-nl.min(We),2));if(r._fillgradient)di.gradient(we,t,r._id,n?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var De=h(Ye).replace("e-","");we.attr("fill",p3(De).toHexString())}});var Ae=e.select("."+Et.cblines).selectAll("path."+Et.cbline).data(d.color&&d.width?N:[]);Ae.enter().append("path").classed(Et.cbline,!0),Ae.exit().remove(),Ae.each(function(Ye){var Ge=X,We=Math.round(ae.c2p(Ye))+d.width/2%1;nl.select(this).attr("d","M"+(n?Ge+","+We:We+","+Ge)+(n?"h":"v")+I).call(di.lineGroupStyle,d.width,A(Ye),d.dash)}),he.selectAll("g."+ae._id+"tick,path").remove();var qe=X+I+(u||0)/2-(r.ticks==="outside"?1:0),Pe=vo.calcTicks(ae),Ze=vo.getTickSigns(ae)[2];return vo.drawTicks(t,ae,{vals:ae.ticks==="inside"?vo.clipEnds(ae,Pe):Pe,layer:he,path:vo.makeTickPath(ae,qe,Ze),transFn:vo.makeTransTickFn(ae)}),vo.drawLabels(t,ae,{vals:Pe,layer:he,transFn:vo.makeTransTickLabelFn(ae),labelFns:vo.makeLabelFns(ae,qe)})}function ze(){var Be,ge=I+u/2;te.indexOf("inside")===-1&&(Be=di.bBox(he.node()),ge+=n?Be.width:Be.height),Ce=H.select("text");var Me=0,ce=n&&g==="top",ye=!n&&g==="right",Le=0;if(Ce.node()&&!Ce.classed(Et.jsPlaceholder)){var me,de=H.select(".h"+ae._id+"title-math-group").node();de&&(n&&Q||!n&&!Q)?(Be=di.bBox(de),Me=Be.width,me=Be.height):(Be=di.bBox(H.node()),Me=Be.right-x.l-(n?X:J),me=Be.bottom-x.t-(n?J:X),!n&&g==="top"&&(ge+=Be.height,Le=Be.height)),ye&&(Ce.attr("transform",pi(Me/2+ue/2,0)),Me*=2),ge=Math.max(ge,n?Me:me)}var be=(n?b:m)*2+ge+s+u/2,Ae=0;!n&&_.text&&p==="bottom"&&M<=0&&(Ae=be/2,be+=Ae,Le+=Ae),S._hColorbarMoveTitle=Ae,S._hColorbarMoveCBTitle=Le;var qe=s+u,Pe=(n?X:J)-qe/2-(n?b:0),Ze=(n?J:X)-(n?L:m+Le-Ae);e.select("."+Et.cbbg).attr("x",Pe).attr("y",Ze).attr(n?"width":"height",Math.max(be-Ae,2)).attr(n?"height":"width",Math.max(L+qe,2)).call(y3.fill,f).call(y3.stroke,r.bordercolor).style("stroke-width",s);var Ye=ye?Math.max(Me-10,0):0;e.selectAll("."+Et.cboutline).attr("x",(n?X:J+b)+Ye).attr("y",(n?J+m-L:X)+(ce?Se:0)).attr(n?"width":"height",Math.max(I,2)).attr(n?"height":"width",Math.max(L-(n?2*m+Se:2*b+Ye),2)).call(y3.stroke,r.outlinecolor).style({fill:"none","stroke-width":u});var Ge=n?$*be:0,We=n?0:(1-j)*be-Le;if(Ge=k?x.l-Ge:-Ge,We=y?x.t-We:-We,e.attr("transform",pi(Ge,We)),!n&&(s||p3(f).getAlpha()&&!p3.equals(S.paper_bgcolor,f))){var we=he.selectAll("text"),De=we[0].length,Qe=e.select("."+Et.cbbg).node(),Ve=di.bBox(Qe),ar=di.getTranslate(e),se=2;we.each(function(Tr,Ar){var ft=0,Yr=De-1;if(Ar===ft||Ar===Yr){var mr=di.bBox(this),ct=di.getTranslate(this),Sr;if(Ar===Yr){var Ur=mr.right+ct.x,xt=Ve.right+ar.x+J-s-se+w;Sr=xt-Ur,Sr>0&&(Sr=0)}else if(Ar===ft){var zr=mr.left+ct.x,Hr=Ve.left+ar.x+J+s+se;Sr=Hr-zr,Sr<0&&(Sr=0)}Sr&&(De<3?this.setAttribute("transform","translate("+Sr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var K={},ne=KP[v],Re=QP[v],Ue=KP[p],je=QP[p],nr=be-I;n?(o==="pixels"?(K.y=M,K.t=L*Ue,K.b=L*je):(K.t=K.b=0,K.yt=M+a*Ue,K.yb=M-a*je),l==="pixels"?(K.x=w,K.l=be*ne,K.r=be*Re):(K.l=nr*ne,K.r=nr*Re,K.xl=w-i*ne,K.xr=w+i*Re)):(o==="pixels"?(K.x=w,K.l=L*ne,K.r=L*Re):(K.l=K.r=0,K.xl=w+a*ne,K.xr=w-a*Re),l==="pixels"?(K.y=1-M,K.t=be*Ue,K.b=be*je):(K.t=nr*Ue,K.b=nr*je,K.yt=M-i*Ue,K.yb=M+i*je));var hr=r.y<.5?"b":"t",wr=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Cr={r:S.width-Pe-Ge,l:Pe+K.r,b:S.height-Ze-We,t:Ze+K.b};k&&y?rd.autoMargin(t,r._id,K):k?t._fullLayout._reservedMargin[r._id][hr]=Cr[hr]:y||n?t._fullLayout._reservedMargin[r._id][wr]=Cr[wr]:t._fullLayout._reservedMargin[r._id][hr]=Cr[hr]}return Ga.syncOrAsync([rd.previousPromises,ke,Ee,Fe,rd.previousPromises,ze],t)}function Uae(e,r,t){var n=r.orientation==="v",a=t._fullLayout,o=a._size,i,l,u;ed.init({element:e.node(),gd:t,prepFn:function(){i=e.attr("transform"),g3(e)},moveFn:function(s,f){e.attr("transform",i+pi(s,f)),l=ed.align((n?r._uFrac:r._vFrac)+s/o.w,n?r._thickFrac:r._lenFrac,0,1,r.xanchor),u=ed.align((n?r._vFrac:1-r._uFrac)-f/o.h,n?r._lenFrac:r._thickFrac,0,1,r.yanchor);var v=ed.getCursor(l,u,r.xanchor,r.yanchor);g3(e,v)},doneFn:function(){if(g3(e),l!==void 0&&u!==void 0){var s={};s[r._propPrefix+"x"]=l,s[r._propPrefix+"y"]=u,r._traceIndex!==void 0?ZP.call("_guiRestyle",t,s,r._traceIndex):ZP.call("_guiRelayout",t,s)}}})}function Hae(e,r,t){var n=r._levels,a=[],o=[],i,l,u=n.end+n.size/100,s=n.size,f=1.001*t[0]-.001*t[1],v=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(i=n.start+l*s,!(s>0?i>=u:i<=u));l++)i>f&&i0?i>=u:i<=u));l++)i>t[0]&&i{"use strict";rF.exports={moduleType:"component",name:"colorbar",attributes:pv(),supplyDefaults:wg(),draw:eF().draw,hasColorbar:cg()}});var aF=pe((ude,nF)=>{"use strict";nF.exports={moduleType:"component",name:"legend",layoutAttributes:y2(),supplyLayoutDefaults:b2(),draw:P2(),style:E2()}});var oF=pe((fde,iF)=>{"use strict";iF.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var sF=pe((cde,lF)=>{"use strict";lF.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var b3=pe((vde,vF)=>{"use strict";var Gae=Er(),cF=ir(),x3=cF.extendFlat,uF=cF.extendDeep;function fF(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function Yae(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}vF.exports=function(r,t){var n,a=r.data,o=r.layout,i=uF([],a),l=uF({},o,fF(t.tileClass)),u=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var s=Object.keys(l);for(n=0;n{"use strict";var Wae=tv().EventEmitter,Xae=Er(),Zae=ir(),hF=jl(),Jae=b3(),Kae=s1(),Qae=u1();function $ae(e,r){var t=new Wae,n=Jae(e,{format:"png"}),a=n.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function o(){var l=hF.getDelay(a._fullLayout);setTimeout(function(){var u=Kae(a),s=document.createElement("canvas");s.id=Zae.randstr(),t=Qae({format:r.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:s,emitter:t,svg:u}),t.clean=function(){a&&document.body.removeChild(a)}},l)}var i=hF.getRedrawFunc(a);return Xae.call("_doPlot",a,n.data,n.layout,n.config).then(i).then(o).catch(function(l){t.emit("error",l)}),t}dF.exports=$ae});var mF=pe((dde,yF)=>{"use strict";var gF=jl(),jae={getDelay:gF.getDelay,getRedrawFunc:gF.getRedrawFunc,clone:b3(),toSVG:s1(),svgToImg:u1(),toImage:pF(),downloadImage:Qy()};yF.exports=jae});var bF=pe(ho=>{"use strict";ho.version=pc().version;ub();j6();var eie=Er(),I0=ho.register=eie.register,w3=wC(),xF=Object.keys(w3);for(td=0;td{"use strict";_F.exports=bF()});var pn=pe((yde,MF)=>{(function(){var e={1964:function(a,o,i){a.exports={alpha_shape:i(3502),convex_hull:i(7352),delaunay_triangulate:i(7642),gl_cone3d:i(6405),gl_error3d:i(9165),gl_line3d:i(5714),gl_mesh3d:i(7201),gl_plot3d:i(4100),gl_scatter3d:i(8418),gl_streamtube3d:i(7815),gl_surface3d:i(9499),ndarray:i(9618),ndarray_linear_interpolate:i(4317)}},4793:function(a,o,i){"use strict";var l;function u(se,K){if(!(se instanceof K))throw new TypeError("Cannot call a class as a function")}function s(se,K){for(var ne=0;neg)throw new RangeError('The value "'+se+'" is invalid for option "size"');var K=new Uint8Array(se);return Object.setPrototypeOf(K,h.prototype),K}function h(se,K,ne){if(typeof se=="number"){if(typeof K=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return N(se)}return R(se,K,ne)}h.poolSize=8192;function R(se,K,ne){if(typeof se=="string")return I(se,K);if(ArrayBuffer.isView(se))return L(se);if(se==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+x(se));if(we(se,ArrayBuffer)||se&&we(se.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(we(se,SharedArrayBuffer)||se&&we(se.buffer,SharedArrayBuffer)))return P(se,K,ne);if(typeof se=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Re=se.valueOf&&se.valueOf();if(Re!=null&&Re!==se)return h.from(Re,K,ne);var Ue=O(se);if(Ue)return Ue;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof se[Symbol.toPrimitive]=="function")return h.from(se[Symbol.toPrimitive]("string"),K,ne);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+x(se))}h.from=function(se,K,ne){return R(se,K,ne)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array);function E(se){if(typeof se!="number")throw new TypeError('"size" argument must be of type number');if(se<0)throw new RangeError('The value "'+se+'" is invalid for option "size"')}function D(se,K,ne){return E(se),se<=0?A(se):K!==void 0?typeof ne=="string"?A(se).fill(K,ne):A(se).fill(K):A(se)}h.alloc=function(se,K,ne){return D(se,K,ne)};function N(se){return E(se),A(se<0?0:U(se)|0)}h.allocUnsafe=function(se){return N(se)},h.allocUnsafeSlow=function(se){return N(se)};function I(se,K){if((typeof K!="string"||K==="")&&(K="utf8"),!h.isEncoding(K))throw new TypeError("Unknown encoding: "+K);var ne=$(se,K)|0,Re=A(ne),Ue=Re.write(se,K);return Ue!==ne&&(Re=Re.slice(0,Ue)),Re}function F(se){for(var K=se.length<0?0:U(se.length)|0,ne=A(K),Re=0;Re=g)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g.toString(16)+" bytes");return se|0}function X(se){return+se!=se&&(se=0),h.alloc(+se)}h.isBuffer=function(K){return K!=null&&K._isBuffer===!0&&K!==h.prototype},h.compare=function(K,ne){if(we(K,Uint8Array)&&(K=h.from(K,K.offset,K.byteLength)),we(ne,Uint8Array)&&(ne=h.from(ne,ne.offset,ne.byteLength)),!h.isBuffer(K)||!h.isBuffer(ne))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(K===ne)return 0;for(var Re=K.length,Ue=ne.length,je=0,nr=Math.min(Re,Ue);jeUe.length?(h.isBuffer(nr)||(nr=h.from(nr)),nr.copy(Ue,je)):Uint8Array.prototype.set.call(Ue,nr,je);else if(h.isBuffer(nr))nr.copy(Ue,je);else throw new TypeError('"list" argument must be an Array of Buffers');je+=nr.length}return Ue};function $(se,K){if(h.isBuffer(se))return se.length;if(ArrayBuffer.isView(se)||we(se,ArrayBuffer))return se.byteLength;if(typeof se!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+x(se));var ne=se.length,Re=arguments.length>2&&arguments[2]===!0;if(!Re&&ne===0)return 0;for(var Ue=!1;;)switch(K){case"ascii":case"latin1":case"binary":return ne;case"utf8":case"utf-8":return Pe(se).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ne*2;case"hex":return ne>>>1;case"base64":return Ge(se).length;default:if(Ue)return Re?-1:Pe(se).length;K=(""+K).toLowerCase(),Ue=!0}}h.byteLength=$;function j(se,K,ne){var Re=!1;if((K===void 0||K<0)&&(K=0),K>this.length||((ne===void 0||ne>this.length)&&(ne=this.length),ne<=0)||(ne>>>=0,K>>>=0,ne<=K))return"";for(se||(se="utf8");;)switch(se){case"hex":return Se(this,K,ne);case"utf8":case"utf-8":return H(this,K,ne);case"ascii":return he(this,K,ne);case"latin1":case"binary":return Ce(this,K,ne);case"base64":return re(this,K,ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ve(this,K,ne);default:if(Re)throw new TypeError("Unknown encoding: "+se);se=(se+"").toLowerCase(),Re=!0}}h.prototype._isBuffer=!0;function Y(se,K,ne){var Re=se[K];se[K]=se[ne],se[ne]=Re}h.prototype.swap16=function(){var K=this.length;if(K%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ne=0;nene&&(K+=" ... "),""},_&&(h.prototype[_]=h.prototype.inspect),h.prototype.compare=function(K,ne,Re,Ue,je){if(we(K,Uint8Array)&&(K=h.from(K,K.offset,K.byteLength)),!h.isBuffer(K))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+x(K));if(ne===void 0&&(ne=0),Re===void 0&&(Re=K?K.length:0),Ue===void 0&&(Ue=0),je===void 0&&(je=this.length),ne<0||Re>K.length||Ue<0||je>this.length)throw new RangeError("out of range index");if(Ue>=je&&ne>=Re)return 0;if(Ue>=je)return-1;if(ne>=Re)return 1;if(ne>>>=0,Re>>>=0,Ue>>>=0,je>>>=0,this===K)return 0;for(var nr=je-Ue,hr=Re-ne,wr=Math.min(nr,hr),Cr=this.slice(Ue,je),Tr=K.slice(ne,Re),Ar=0;Ar2147483647?ne=2147483647:ne<-2147483648&&(ne=-2147483648),ne=+ne,De(ne)&&(ne=Ue?0:se.length-1),ne<0&&(ne=se.length+ne),ne>=se.length){if(Ue)return-1;ne=se.length-1}else if(ne<0)if(Ue)ne=0;else return-1;if(typeof K=="string"&&(K=h.from(K,Re)),h.isBuffer(K))return K.length===0?-1:J(se,K,ne,Re,Ue);if(typeof K=="number")return K=K&255,typeof Uint8Array.prototype.indexOf=="function"?Ue?Uint8Array.prototype.indexOf.call(se,K,ne):Uint8Array.prototype.lastIndexOf.call(se,K,ne):J(se,[K],ne,Re,Ue);throw new TypeError("val must be string, number or Buffer")}function J(se,K,ne,Re,Ue){var je=1,nr=se.length,hr=K.length;if(Re!==void 0&&(Re=String(Re).toLowerCase(),Re==="ucs2"||Re==="ucs-2"||Re==="utf16le"||Re==="utf-16le")){if(se.length<2||K.length<2)return-1;je=2,nr/=2,hr/=2,ne/=2}function wr(Yr,mr){return je===1?Yr[mr]:Yr.readUInt16BE(mr*je)}var Cr;if(Ue){var Tr=-1;for(Cr=ne;Crnr&&(ne=nr-hr),Cr=ne;Cr>=0;Cr--){for(var Ar=!0,ft=0;ftUe&&(Re=Ue)):Re=Ue;var je=K.length;Re>je/2&&(Re=je/2);var nr;for(nr=0;nr>>0,isFinite(Re)?(Re=Re>>>0,Ue===void 0&&(Ue="utf8")):(Ue=Re,Re=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var je=this.length-ne;if((Re===void 0||Re>je)&&(Re=je),K.length>0&&(Re<0||ne<0)||ne>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ue||(Ue="utf8");for(var nr=!1;;)switch(Ue){case"hex":return ae(this,K,ne,Re);case"utf8":case"utf-8":return Q(this,K,ne,Re);case"ascii":case"latin1":case"binary":return oe(this,K,ne,Re);case"base64":return ee(this,K,ne,Re);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,K,ne,Re);default:if(nr)throw new TypeError("Unknown encoding: "+Ue);Ue=(""+Ue).toLowerCase(),nr=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function re(se,K,ne){return K===0&&ne===se.length?T.fromByteArray(se):T.fromByteArray(se.slice(K,ne))}function H(se,K,ne){ne=Math.min(se.length,ne);for(var Re=[],Ue=K;Ue239?4:je>223?3:je>191?2:1;if(Ue+hr<=ne){var wr=void 0,Cr=void 0,Tr=void 0,Ar=void 0;switch(hr){case 1:je<128&&(nr=je);break;case 2:wr=se[Ue+1],(wr&192)===128&&(Ar=(je&31)<<6|wr&63,Ar>127&&(nr=Ar));break;case 3:wr=se[Ue+1],Cr=se[Ue+2],(wr&192)===128&&(Cr&192)===128&&(Ar=(je&15)<<12|(wr&63)<<6|Cr&63,Ar>2047&&(Ar<55296||Ar>57343)&&(nr=Ar));break;case 4:wr=se[Ue+1],Cr=se[Ue+2],Tr=se[Ue+3],(wr&192)===128&&(Cr&192)===128&&(Tr&192)===128&&(Ar=(je&15)<<18|(wr&63)<<12|(Cr&63)<<6|Tr&63,Ar>65535&&Ar<1114112&&(nr=Ar))}}nr===null?(nr=65533,hr=1):nr>65535&&(nr-=65536,Re.push(nr>>>10&1023|55296),nr=56320|nr&1023),Re.push(nr),Ue+=hr}return ue(Re)}var te=4096;function ue(se){var K=se.length;if(K<=te)return String.fromCharCode.apply(String,se);for(var ne="",Re=0;ReRe)&&(ne=Re);for(var Ue="",je=K;jeRe&&(K=Re),ne<0?(ne+=Re,ne<0&&(ne=0)):ne>Re&&(ne=Re),nene)throw new RangeError("Trying to access beyond buffer length")}h.prototype.readUintLE=h.prototype.readUIntLE=function(K,ne,Re){K=K>>>0,ne=ne>>>0,Re||Te(K,ne,this.length);for(var Ue=this[K],je=1,nr=0;++nr>>0,ne=ne>>>0,Re||Te(K,ne,this.length);for(var Ue=this[K+--ne],je=1;ne>0&&(je*=256);)Ue+=this[K+--ne]*je;return Ue},h.prototype.readUint8=h.prototype.readUInt8=function(K,ne){return K=K>>>0,ne||Te(K,1,this.length),this[K]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(K,ne){return K=K>>>0,ne||Te(K,2,this.length),this[K]|this[K+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(K,ne){return K=K>>>0,ne||Te(K,2,this.length),this[K]<<8|this[K+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(K,ne){return K=K>>>0,ne||Te(K,4,this.length),(this[K]|this[K+1]<<8|this[K+2]<<16)+this[K+3]*16777216},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(K,ne){return K=K>>>0,ne||Te(K,4,this.length),this[K]*16777216+(this[K+1]<<16|this[K+2]<<8|this[K+3])},h.prototype.readBigUInt64LE=Ve(function(K){K=K>>>0,de(K,"offset");var ne=this[K],Re=this[K+7];(ne===void 0||Re===void 0)&&be(K,this.length-8);var Ue=ne+this[++K]*Math.pow(2,8)+this[++K]*Math.pow(2,16)+this[++K]*Math.pow(2,24),je=this[++K]+this[++K]*Math.pow(2,8)+this[++K]*Math.pow(2,16)+Re*Math.pow(2,24);return BigInt(Ue)+(BigInt(je)<>>0,de(K,"offset");var ne=this[K],Re=this[K+7];(ne===void 0||Re===void 0)&&be(K,this.length-8);var Ue=ne*Math.pow(2,24)+this[++K]*Math.pow(2,16)+this[++K]*Math.pow(2,8)+this[++K],je=this[++K]*Math.pow(2,24)+this[++K]*Math.pow(2,16)+this[++K]*Math.pow(2,8)+Re;return(BigInt(Ue)<>>0,ne=ne>>>0,Re||Te(K,ne,this.length);for(var Ue=this[K],je=1,nr=0;++nr=je&&(Ue-=Math.pow(2,8*ne)),Ue},h.prototype.readIntBE=function(K,ne,Re){K=K>>>0,ne=ne>>>0,Re||Te(K,ne,this.length);for(var Ue=ne,je=1,nr=this[K+--Ue];Ue>0&&(je*=256);)nr+=this[K+--Ue]*je;return je*=128,nr>=je&&(nr-=Math.pow(2,8*ne)),nr},h.prototype.readInt8=function(K,ne){return K=K>>>0,ne||Te(K,1,this.length),this[K]&128?(255-this[K]+1)*-1:this[K]},h.prototype.readInt16LE=function(K,ne){K=K>>>0,ne||Te(K,2,this.length);var Re=this[K]|this[K+1]<<8;return Re&32768?Re|4294901760:Re},h.prototype.readInt16BE=function(K,ne){K=K>>>0,ne||Te(K,2,this.length);var Re=this[K+1]|this[K]<<8;return Re&32768?Re|4294901760:Re},h.prototype.readInt32LE=function(K,ne){return K=K>>>0,ne||Te(K,4,this.length),this[K]|this[K+1]<<8|this[K+2]<<16|this[K+3]<<24},h.prototype.readInt32BE=function(K,ne){return K=K>>>0,ne||Te(K,4,this.length),this[K]<<24|this[K+1]<<16|this[K+2]<<8|this[K+3]},h.prototype.readBigInt64LE=Ve(function(K){K=K>>>0,de(K,"offset");var ne=this[K],Re=this[K+7];(ne===void 0||Re===void 0)&&be(K,this.length-8);var Ue=this[K+4]+this[K+5]*Math.pow(2,8)+this[K+6]*Math.pow(2,16)+(Re<<24);return(BigInt(Ue)<>>0,de(K,"offset");var ne=this[K],Re=this[K+7];(ne===void 0||Re===void 0)&&be(K,this.length-8);var Ue=(ne<<24)+this[++K]*Math.pow(2,16)+this[++K]*Math.pow(2,8)+this[++K];return(BigInt(Ue)<>>0,ne||Te(K,4,this.length),d.read(this,K,!0,23,4)},h.prototype.readFloatBE=function(K,ne){return K=K>>>0,ne||Te(K,4,this.length),d.read(this,K,!1,23,4)},h.prototype.readDoubleLE=function(K,ne){return K=K>>>0,ne||Te(K,8,this.length),d.read(this,K,!0,52,8)},h.prototype.readDoubleBE=function(K,ne){return K=K>>>0,ne||Te(K,8,this.length),d.read(this,K,!1,52,8)};function ke(se,K,ne,Re,Ue,je){if(!h.isBuffer(se))throw new TypeError('"buffer" argument must be a Buffer instance');if(K>Ue||Kse.length)throw new RangeError("Index out of range")}h.prototype.writeUintLE=h.prototype.writeUIntLE=function(K,ne,Re,Ue){if(K=+K,ne=ne>>>0,Re=Re>>>0,!Ue){var je=Math.pow(2,8*Re)-1;ke(this,K,ne,Re,je,0)}var nr=1,hr=0;for(this[ne]=K&255;++hr>>0,Re=Re>>>0,!Ue){var je=Math.pow(2,8*Re)-1;ke(this,K,ne,Re,je,0)}var nr=Re-1,hr=1;for(this[ne+nr]=K&255;--nr>=0&&(hr*=256);)this[ne+nr]=K/hr&255;return ne+Re},h.prototype.writeUint8=h.prototype.writeUInt8=function(K,ne,Re){return K=+K,ne=ne>>>0,Re||ke(this,K,ne,1,255,0),this[ne]=K&255,ne+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(K,ne,Re){return K=+K,ne=ne>>>0,Re||ke(this,K,ne,2,65535,0),this[ne]=K&255,this[ne+1]=K>>>8,ne+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(K,ne,Re){return K=+K,ne=ne>>>0,Re||ke(this,K,ne,2,65535,0),this[ne]=K>>>8,this[ne+1]=K&255,ne+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(K,ne,Re){return K=+K,ne=ne>>>0,Re||ke(this,K,ne,4,4294967295,0),this[ne+3]=K>>>24,this[ne+2]=K>>>16,this[ne+1]=K>>>8,this[ne]=K&255,ne+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(K,ne,Re){return K=+K,ne=ne>>>0,Re||ke(this,K,ne,4,4294967295,0),this[ne]=K>>>24,this[ne+1]=K>>>16,this[ne+2]=K>>>8,this[ne+3]=K&255,ne+4};function Fe(se,K,ne,Re,Ue){me(K,Re,Ue,se,ne,7);var je=Number(K&BigInt(4294967295));se[ne++]=je,je=je>>8,se[ne++]=je,je=je>>8,se[ne++]=je,je=je>>8,se[ne++]=je;var nr=Number(K>>BigInt(32)&BigInt(4294967295));return se[ne++]=nr,nr=nr>>8,se[ne++]=nr,nr=nr>>8,se[ne++]=nr,nr=nr>>8,se[ne++]=nr,ne}function Ee(se,K,ne,Re,Ue){me(K,Re,Ue,se,ne,7);var je=Number(K&BigInt(4294967295));se[ne+7]=je,je=je>>8,se[ne+6]=je,je=je>>8,se[ne+5]=je,je=je>>8,se[ne+4]=je;var nr=Number(K>>BigInt(32)&BigInt(4294967295));return se[ne+3]=nr,nr=nr>>8,se[ne+2]=nr,nr=nr>>8,se[ne+1]=nr,nr=nr>>8,se[ne]=nr,ne+8}h.prototype.writeBigUInt64LE=Ve(function(K){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Fe(this,K,ne,BigInt(0),BigInt("0xffffffffffffffff"))}),h.prototype.writeBigUInt64BE=Ve(function(K){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Ee(this,K,ne,BigInt(0),BigInt("0xffffffffffffffff"))}),h.prototype.writeIntLE=function(K,ne,Re,Ue){if(K=+K,ne=ne>>>0,!Ue){var je=Math.pow(2,8*Re-1);ke(this,K,ne,Re,je-1,-je)}var nr=0,hr=1,wr=0;for(this[ne]=K&255;++nr>0)-wr&255;return ne+Re},h.prototype.writeIntBE=function(K,ne,Re,Ue){if(K=+K,ne=ne>>>0,!Ue){var je=Math.pow(2,8*Re-1);ke(this,K,ne,Re,je-1,-je)}var nr=Re-1,hr=1,wr=0;for(this[ne+nr]=K&255;--nr>=0&&(hr*=256);)K<0&&wr===0&&this[ne+nr+1]!==0&&(wr=1),this[ne+nr]=(K/hr>>0)-wr&255;return ne+Re},h.prototype.writeInt8=function(K,ne,Re){return K=+K,ne=ne>>>0,Re||ke(this,K,ne,1,127,-128),K<0&&(K=255+K+1),this[ne]=K&255,ne+1},h.prototype.writeInt16LE=function(K,ne,Re){return K=+K,ne=ne>>>0,Re||ke(this,K,ne,2,32767,-32768),this[ne]=K&255,this[ne+1]=K>>>8,ne+2},h.prototype.writeInt16BE=function(K,ne,Re){return K=+K,ne=ne>>>0,Re||ke(this,K,ne,2,32767,-32768),this[ne]=K>>>8,this[ne+1]=K&255,ne+2},h.prototype.writeInt32LE=function(K,ne,Re){return K=+K,ne=ne>>>0,Re||ke(this,K,ne,4,2147483647,-2147483648),this[ne]=K&255,this[ne+1]=K>>>8,this[ne+2]=K>>>16,this[ne+3]=K>>>24,ne+4},h.prototype.writeInt32BE=function(K,ne,Re){return K=+K,ne=ne>>>0,Re||ke(this,K,ne,4,2147483647,-2147483648),K<0&&(K=4294967295+K+1),this[ne]=K>>>24,this[ne+1]=K>>>16,this[ne+2]=K>>>8,this[ne+3]=K&255,ne+4},h.prototype.writeBigInt64LE=Ve(function(K){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Fe(this,K,ne,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),h.prototype.writeBigInt64BE=Ve(function(K){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Ee(this,K,ne,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ze(se,K,ne,Re,Ue,je){if(ne+Re>se.length)throw new RangeError("Index out of range");if(ne<0)throw new RangeError("Index out of range")}function Be(se,K,ne,Re,Ue){return K=+K,ne=ne>>>0,Ue||ze(se,K,ne,4,34028234663852886e22,-34028234663852886e22),d.write(se,K,ne,Re,23,4),ne+4}h.prototype.writeFloatLE=function(K,ne,Re){return Be(this,K,ne,!0,Re)},h.prototype.writeFloatBE=function(K,ne,Re){return Be(this,K,ne,!1,Re)};function ge(se,K,ne,Re,Ue){return K=+K,ne=ne>>>0,Ue||ze(se,K,ne,8,17976931348623157e292,-17976931348623157e292),d.write(se,K,ne,Re,52,8),ne+8}h.prototype.writeDoubleLE=function(K,ne,Re){return ge(this,K,ne,!0,Re)},h.prototype.writeDoubleBE=function(K,ne,Re){return ge(this,K,ne,!1,Re)},h.prototype.copy=function(K,ne,Re,Ue){if(!h.isBuffer(K))throw new TypeError("argument should be a Buffer");if(Re||(Re=0),!Ue&&Ue!==0&&(Ue=this.length),ne>=K.length&&(ne=K.length),ne||(ne=0),Ue>0&&Ue=this.length)throw new RangeError("Index out of range");if(Ue<0)throw new RangeError("sourceEnd out of bounds");Ue>this.length&&(Ue=this.length),K.length-ne>>0,Re=Re===void 0?this.length:Re>>>0,K||(K=0);var nr;if(typeof K=="number")for(nr=ne;nrMath.pow(2,32)?Ue=ye(String(ne)):typeof ne=="bigint"&&(Ue=String(ne),(ne>Math.pow(BigInt(2),BigInt(32))||ne<-Math.pow(BigInt(2),BigInt(32)))&&(Ue=ye(Ue)),Ue+="n"),Re+=" It must be ".concat(K,". Received ").concat(Ue),Re},RangeError);function ye(se){for(var K="",ne=se.length,Re=se[0]==="-"?1:0;ne>=Re+4;ne-=3)K="_".concat(se.slice(ne-3,ne)).concat(K);return"".concat(se.slice(0,ne)).concat(K)}function Le(se,K,ne){de(K,"offset"),(se[K]===void 0||se[K+ne]===void 0)&&be(K,se.length-(ne+1))}function me(se,K,ne,Re,Ue,je){if(se>ne||se3?K===0||K===BigInt(0)?hr=">= 0".concat(nr," and < 2").concat(nr," ** ").concat((je+1)*8).concat(nr):hr=">= -(2".concat(nr," ** ").concat((je+1)*8-1).concat(nr,") and < 2 ** ")+"".concat((je+1)*8-1).concat(nr):hr=">= ".concat(K).concat(nr," and <= ").concat(ne).concat(nr),new Me.ERR_OUT_OF_RANGE("value",hr,se)}Le(Re,Ue,je)}function de(se,K){if(typeof se!="number")throw new Me.ERR_INVALID_ARG_TYPE(K,"number",se)}function be(se,K,ne){throw Math.floor(se)!==se?(de(se,ne),new Me.ERR_OUT_OF_RANGE(ne||"offset","an integer",se)):K<0?new Me.ERR_BUFFER_OUT_OF_BOUNDS:new Me.ERR_OUT_OF_RANGE(ne||"offset",">= ".concat(ne?1:0," and <= ").concat(K),se)}var Ae=/[^+/0-9A-Za-z-_]/g;function qe(se){if(se=se.split("=")[0],se=se.trim().replace(Ae,""),se.length<2)return"";for(;se.length%4!==0;)se=se+"=";return se}function Pe(se,K){K=K||1/0;for(var ne,Re=se.length,Ue=null,je=[],nr=0;nr55295&&ne<57344){if(!Ue){if(ne>56319){(K-=3)>-1&&je.push(239,191,189);continue}else if(nr+1===Re){(K-=3)>-1&&je.push(239,191,189);continue}Ue=ne;continue}if(ne<56320){(K-=3)>-1&&je.push(239,191,189),Ue=ne;continue}ne=(Ue-55296<<10|ne-56320)+65536}else Ue&&(K-=3)>-1&&je.push(239,191,189);if(Ue=null,ne<128){if((K-=1)<0)break;je.push(ne)}else if(ne<2048){if((K-=2)<0)break;je.push(ne>>6|192,ne&63|128)}else if(ne<65536){if((K-=3)<0)break;je.push(ne>>12|224,ne>>6&63|128,ne&63|128)}else if(ne<1114112){if((K-=4)<0)break;je.push(ne>>18|240,ne>>12&63|128,ne>>6&63|128,ne&63|128)}else throw new Error("Invalid code point")}return je}function Ze(se){for(var K=[],ne=0;ne>8,Ue=ne%256,je.push(Ue),je.push(Re);return je}function Ge(se){return T.toByteArray(qe(se))}function We(se,K,ne,Re){var Ue;for(Ue=0;Ue=K.length||Ue>=se.length);++Ue)K[Ue+ne]=se[Ue];return Ue}function we(se,K){return se instanceof K||se!=null&&se.constructor!=null&&se.constructor.name!=null&&se.constructor.name===K.name}function De(se){return se!==se}var Qe=function(){for(var se="0123456789abcdef",K=new Array(256),ne=0;ne<16;++ne)for(var Re=ne*16,Ue=0;Ue<16;++Ue)K[Re+Ue]=se[ne]+se[Ue];return K}();function Ve(se){return typeof BigInt=="undefined"?ar:se}function ar(){throw new Error("BigInt not supported")}},9216:function(a){"use strict";a.exports=u,a.exports.isMobile=u,a.exports.default=u;var o=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/CrOS/,l=/android|ipad|playbook|silk/i;function u(s){s||(s={});var f=s.ua;if(!f&&typeof navigator!="undefined"&&(f=navigator.userAgent),f&&f.headers&&typeof f.headers["user-agent"]=="string"&&(f=f.headers["user-agent"]),typeof f!="string")return!1;var v=o.test(f)&&!i.test(f)||!!s.tablet&&l.test(f);return!v&&s.tablet&&s.featureDetect&&navigator&&navigator.maxTouchPoints>1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(v=!0),v}},6296:function(a,o,i){"use strict";a.exports=p;var l=i(7261),u=i(9977),s=i(1811);function f(b,m){this._controllerNames=Object.keys(b),this._controllerList=this._controllerNames.map(function(w){return b[w]}),this._mode=m,this._active=b[m],this._active||(this._mode="turntable",this._active=b.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var v=f.prototype;v.flush=function(b){for(var m=this._controllerList,w=0;w0)throw new Error("Invalid string. Length must be a multiple of 4");var T=S.indexOf("=");T===-1&&(T=x);var d=T===x?0:4-T%4;return[T,d]}function b(S){var x=p(S),T=x[0],d=x[1];return(T+d)*3/4-d}function m(S,x,T){return(x+T)*3/4-T}function w(S){var x,T=p(S),d=T[0],_=T[1],g=new u(m(S,d,_)),c=0,A=_>0?d-4:d,h;for(h=0;h>16&255,g[c++]=x>>8&255,g[c++]=x&255;return _===2&&(x=l[S.charCodeAt(h)]<<2|l[S.charCodeAt(h+1)]>>4,g[c++]=x&255),_===1&&(x=l[S.charCodeAt(h)]<<10|l[S.charCodeAt(h+1)]<<4|l[S.charCodeAt(h+2)]>>2,g[c++]=x>>8&255,g[c++]=x&255),g}function M(S){return i[S>>18&63]+i[S>>12&63]+i[S>>6&63]+i[S&63]}function y(S,x,T){for(var d,_=[],g=x;gA?A:c+g));return d===1?(x=S[T-1],_.push(i[x>>2]+i[x<<4&63]+"==")):d===2&&(x=(S[T-2]<<8)+S[T-1],_.push(i[x>>10]+i[x>>4&63]+i[x<<2&63]+"=")),_.join("")}},3865:function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]).add(f[0].mul(s[1])),s[1].mul(f[1]))}},1318:function(a){"use strict";a.exports=o;function o(i,l){return i[0].mul(l[1]).cmp(l[0].mul(i[1]))}},8697:function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]),s[1].mul(f[0]))}},7842:function(a,o,i){"use strict";var l=i(6330),u=i(1533),s=i(2651),f=i(6768),v=i(869),p=i(8697);a.exports=b;function b(m,w){if(l(m))return w?p(m,b(w)):[m[0].clone(),m[1].clone()];var M=0,y,k;if(u(m))y=m.clone();else if(typeof m=="string")y=f(m);else{if(m===0)return[s(0),s(1)];if(m===Math.floor(m))y=s(m);else{for(;m!==Math.floor(m);)m=m*Math.pow(2,256),M-=256;y=s(m)}}if(l(w))y.mul(w[1]),k=w[0].clone();else if(u(w))k=w.clone();else if(typeof w=="string")k=f(w);else if(!w)k=s(1);else if(w===Math.floor(w))k=s(w);else{for(;w!==Math.floor(w);)w=w*Math.pow(2,256),M+=256;k=s(w)}return M>0?y=y.ushln(M):M<0&&(k=k.ushln(-M)),v(y,k)}},6330:function(a,o,i){"use strict";var l=i(1533);a.exports=u;function u(s){return Array.isArray(s)&&s.length===2&&l(s[0])&&l(s[1])}},5716:function(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return s.cmp(new l(0))}},1369:function(a,o,i){"use strict";var l=i(5716);a.exports=u;function u(s){var f=s.length,v=s.words,p=0;if(f===1)p=v[0];else if(f===2)p=v[0]+v[1]*67108864;else for(var b=0;b20?52:p+32}},1533:function(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return s&&typeof s=="object"&&!!s.words}},2651:function(a,o,i){"use strict";var l=i(6859),u=i(2361);a.exports=s;function s(f){var v=u.exponent(f);return v<52?new l(f):new l(f*Math.pow(2,52-v)).ushln(v-52)}},869:function(a,o,i){"use strict";var l=i(2651),u=i(5716);a.exports=s;function s(f,v){var p=u(f),b=u(v);if(p===0)return[l(0),l(1)];if(b===0)return[l(0),l(0)];b<0&&(f=f.neg(),v=v.neg());var m=f.gcd(v);return m.cmpn(1)?[f.div(m),v.div(m)]:[f,v]}},6768:function(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return new l(s)}},6504:function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[0]),s[1].mul(f[1]))}},7721:function(a,o,i){"use strict";var l=i(5716);a.exports=u;function u(s){return l(s[0])*l(s[1])}},5572:function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]).sub(s[1].mul(f[0])),s[1].mul(f[1]))}},946:function(a,o,i){"use strict";var l=i(1369),u=i(4025);a.exports=s;function s(f){var v=f[0],p=f[1];if(v.cmpn(0)===0)return 0;var b=v.abs().divmod(p.abs()),m=b.div,w=l(m),M=b.mod,y=v.negative!==p.negative?-1:1;if(M.cmpn(0)===0)return y*w;if(w){var k=u(w)+4,S=l(M.ushln(k).divRound(p));return y*(w+S*Math.pow(2,-k))}else{var x=p.bitLength()-M.bitLength()+53,S=l(M.ushln(x).divRound(p));return x<1023?y*S*Math.pow(2,-x):(S*=Math.pow(2,-1023),y*S*Math.pow(2,1023-x))}}},2478:function(a){"use strict";function o(v,p,b,m,w){for(var M=w+1;m<=w;){var y=m+w>>>1,k=v[y],S=b!==void 0?b(k,p):k-p;S>=0?(M=y,w=y-1):m=y+1}return M}function i(v,p,b,m,w){for(var M=w+1;m<=w;){var y=m+w>>>1,k=v[y],S=b!==void 0?b(k,p):k-p;S>0?(M=y,w=y-1):m=y+1}return M}function l(v,p,b,m,w){for(var M=m-1;m<=w;){var y=m+w>>>1,k=v[y],S=b!==void 0?b(k,p):k-p;S<0?(M=y,m=y+1):w=y-1}return M}function u(v,p,b,m,w){for(var M=m-1;m<=w;){var y=m+w>>>1,k=v[y],S=b!==void 0?b(k,p):k-p;S<=0?(M=y,m=y+1):w=y-1}return M}function s(v,p,b,m,w){for(;m<=w;){var M=m+w>>>1,y=v[M],k=b!==void 0?b(y,p):y-p;if(k===0)return M;k<=0?m=M+1:w=M-1}return-1}function f(v,p,b,m,w,M){return typeof b=="function"?M(v,p,b,m===void 0?0:m|0,w===void 0?v.length-1:w|0):M(v,p,void 0,b===void 0?0:b|0,m===void 0?v.length-1:m|0)}a.exports={ge:function(v,p,b,m,w){return f(v,p,b,m,w,o)},gt:function(v,p,b,m,w){return f(v,p,b,m,w,i)},lt:function(v,p,b,m,w){return f(v,p,b,m,w,l)},le:function(v,p,b,m,w){return f(v,p,b,m,w,u)},eq:function(v,p,b,m,w){return f(v,p,b,m,w,s)}}},8828:function(a,o){"use strict";"use restrict";var i=32;o.INT_BITS=i,o.INT_MAX=2147483647,o.INT_MIN=-1<0)-(s<0)},o.abs=function(s){var f=s>>i-1;return(s^f)-f},o.min=function(s,f){return f^(s^f)&-(s65535)<<4,s>>>=f,v=(s>255)<<3,s>>>=v,f|=v,v=(s>15)<<2,s>>>=v,f|=v,v=(s>3)<<1,s>>>=v,f|=v,f|s>>1},o.log10=function(s){return s>=1e9?9:s>=1e8?8:s>=1e7?7:s>=1e6?6:s>=1e5?5:s>=1e4?4:s>=1e3?3:s>=100?2:s>=10?1:0},o.popCount=function(s){return s=s-(s>>>1&1431655765),s=(s&858993459)+(s>>>2&858993459),(s+(s>>>4)&252645135)*16843009>>>24};function l(s){var f=32;return s&=-s,s&&f--,s&65535&&(f-=16),s&16711935&&(f-=8),s&252645135&&(f-=4),s&858993459&&(f-=2),s&1431655765&&(f-=1),f}o.countTrailingZeros=l,o.nextPow2=function(s){return s+=s===0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1},o.prevPow2=function(s){return s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s-(s>>>1)},o.parity=function(s){return s^=s>>>16,s^=s>>>8,s^=s>>>4,s&=15,27030>>>s&1};var u=new Array(256);(function(s){for(var f=0;f<256;++f){var v=f,p=f,b=7;for(v>>>=1;v;v>>>=1)p<<=1,p|=v&1,--b;s[f]=p<>>8&255]<<16|u[s>>>16&255]<<8|u[s>>>24&255]},o.interleave2=function(s,f){return s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,s|f<<1},o.deinterleave2=function(s,f){return s=s>>>f&1431655765,s=(s|s>>>1)&858993459,s=(s|s>>>2)&252645135,s=(s|s>>>4)&16711935,s=(s|s>>>16)&65535,s<<16>>16},o.interleave3=function(s,f,v){return s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,s|=f<<1,v&=1023,v=(v|v<<16)&4278190335,v=(v|v<<8)&251719695,v=(v|v<<4)&3272356035,v=(v|v<<2)&1227133513,s|v<<2},o.deinterleave3=function(s,f){return s=s>>>f&1227133513,s=(s|s>>>2)&3272356035,s=(s|s>>>4)&251719695,s=(s|s>>>8)&4278190335,s=(s|s>>>16)&1023,s<<22>>22},o.nextCombination=function(s){var f=s|s-1;return f+1|(~f&-~f)-1>>>l(s)+1}},6859:function(a,o,i){a=i.nmd(a),function(l,u){"use strict";function s(F,L){if(!F)throw new Error(L||"Assertion failed")}function f(F,L){F.super_=L;var P=function(){};P.prototype=L.prototype,F.prototype=new P,F.prototype.constructor=F}function v(F,L,P){if(v.isBN(F))return F;this.negative=0,this.words=null,this.length=0,this.red=null,F!==null&&((L==="le"||L==="be")&&(P=L,L=10),this._init(F||0,L||10,P||"be"))}typeof l=="object"?l.exports=v:u.BN=v,v.BN=v,v.wordSize=26;var p;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?p=window.Buffer:p=i(7790).Buffer}catch(F){}v.isBN=function(L){return L instanceof v?!0:L!==null&&typeof L=="object"&&L.constructor.wordSize===v.wordSize&&Array.isArray(L.words)},v.max=function(L,P){return L.cmp(P)>0?L:P},v.min=function(L,P){return L.cmp(P)<0?L:P},v.prototype._init=function(L,P,O){if(typeof L=="number")return this._initNumber(L,P,O);if(typeof L=="object")return this._initArray(L,P,O);P==="hex"&&(P=16),s(P===(P|0)&&P>=2&&P<=36),L=L.toString().replace(/\s+/g,"");var U=0;L[0]==="-"&&(U++,this.negative=1),U=0;U-=3)$=L[U]|L[U-1]<<8|L[U-2]<<16,this.words[X]|=$<>>26-j&67108863,j+=24,j>=26&&(j-=26,X++);else if(O==="le")for(U=0,X=0;U>>26-j&67108863,j+=24,j>=26&&(j-=26,X++);return this.strip()};function b(F,L){var P=F.charCodeAt(L);return P>=65&&P<=70?P-55:P>=97&&P<=102?P-87:P-48&15}function m(F,L,P){var O=b(F,P);return P-1>=L&&(O|=b(F,P-1)<<4),O}v.prototype._parseHex=function(L,P,O){this.length=Math.ceil((L.length-P)/6),this.words=new Array(this.length);for(var U=0;U=P;U-=2)j=m(L,P,U)<=18?(X-=18,$+=1,this.words[$]|=j>>>26):X+=8;else{var Y=L.length-P;for(U=Y%2===0?P+1:P;U=18?(X-=18,$+=1,this.words[$]|=j>>>26):X+=8}this.strip()};function w(F,L,P,O){for(var U=0,X=Math.min(F.length,P),$=L;$=49?U+=j-49+10:j>=17?U+=j-17+10:U+=j}return U}v.prototype._parseBase=function(L,P,O){this.words=[0],this.length=1;for(var U=0,X=1;X<=67108863;X*=P)U++;U--,X=X/P|0;for(var $=L.length-O,j=$%U,Y=Math.min($,$-j)+O,q=0,J=O;J1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},v.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},v.prototype.inspect=function(){return(this.red?""};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],y=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];v.prototype.toString=function(L,P){L=L||10,P=P|0||1;var O;if(L===16||L==="hex"){O="";for(var U=0,X=0,$=0;$>>24-U&16777215,X!==0||$!==this.length-1?O=M[6-Y.length]+Y+O:O=Y+O,U+=2,U>=26&&(U-=26,$--)}for(X!==0&&(O=X.toString(16)+O);O.length%P!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}if(L===(L|0)&&L>=2&&L<=36){var q=y[L],J=k[L];O="";var ae=this.clone();for(ae.negative=0;!ae.isZero();){var Q=ae.modn(J).toString(L);ae=ae.idivn(J),ae.isZero()?O=Q+O:O=M[q-Q.length]+Q+O}for(this.isZero()&&(O="0"+O);O.length%P!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}s(!1,"Base should be between 2 and 36")},v.prototype.toNumber=function(){var L=this.words[0];return this.length===2?L+=this.words[1]*67108864:this.length===3&&this.words[2]===1?L+=4503599627370496+this.words[1]*67108864:this.length>2&&s(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-L:L},v.prototype.toJSON=function(){return this.toString(16)},v.prototype.toBuffer=function(L,P){return s(typeof p!="undefined"),this.toArrayLike(p,L,P)},v.prototype.toArray=function(L,P){return this.toArrayLike(Array,L,P)},v.prototype.toArrayLike=function(L,P,O){var U=this.byteLength(),X=O||Math.max(1,U);s(U<=X,"byte array longer than desired length"),s(X>0,"Requested array length <= 0"),this.strip();var $=P==="le",j=new L(X),Y,q,J=this.clone();if($){for(q=0;!J.isZero();q++)Y=J.andln(255),J.iushrn(8),j[q]=Y;for(;q=4096&&(O+=13,P>>>=13),P>=64&&(O+=7,P>>>=7),P>=8&&(O+=4,P>>>=4),P>=2&&(O+=2,P>>>=2),O+P},v.prototype._zeroBits=function(L){if(L===0)return 26;var P=L,O=0;return(P&8191)===0&&(O+=13,P>>>=13),(P&127)===0&&(O+=7,P>>>=7),(P&15)===0&&(O+=4,P>>>=4),(P&3)===0&&(O+=2,P>>>=2),(P&1)===0&&O++,O},v.prototype.bitLength=function(){var L=this.words[this.length-1],P=this._countBits(L);return(this.length-1)*26+P};function S(F){for(var L=new Array(F.bitLength()),P=0;P>>U}return L}v.prototype.zeroBits=function(){if(this.isZero())return 0;for(var L=0,P=0;PL.length?this.clone().ior(L):L.clone().ior(this)},v.prototype.uor=function(L){return this.length>L.length?this.clone().iuor(L):L.clone().iuor(this)},v.prototype.iuand=function(L){var P;this.length>L.length?P=L:P=this;for(var O=0;OL.length?this.clone().iand(L):L.clone().iand(this)},v.prototype.uand=function(L){return this.length>L.length?this.clone().iuand(L):L.clone().iuand(this)},v.prototype.iuxor=function(L){var P,O;this.length>L.length?(P=this,O=L):(P=L,O=this);for(var U=0;UL.length?this.clone().ixor(L):L.clone().ixor(this)},v.prototype.uxor=function(L){return this.length>L.length?this.clone().iuxor(L):L.clone().iuxor(this)},v.prototype.inotn=function(L){s(typeof L=="number"&&L>=0);var P=Math.ceil(L/26)|0,O=L%26;this._expand(P),O>0&&P--;for(var U=0;U0&&(this.words[U]=~this.words[U]&67108863>>26-O),this.strip()},v.prototype.notn=function(L){return this.clone().inotn(L)},v.prototype.setn=function(L,P){s(typeof L=="number"&&L>=0);var O=L/26|0,U=L%26;return this._expand(O+1),P?this.words[O]=this.words[O]|1<L.length?(O=this,U=L):(O=L,U=this);for(var X=0,$=0;$>>26;for(;X!==0&&$>>26;if(this.length=O.length,X!==0)this.words[this.length]=X,this.length++;else if(O!==this)for(;$L.length?this.clone().iadd(L):L.clone().iadd(this)},v.prototype.isub=function(L){if(L.negative!==0){L.negative=0;var P=this.iadd(L);return L.negative=1,P._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(L),this.negative=1,this._normSign();var O=this.cmp(L);if(O===0)return this.negative=0,this.length=1,this.words[0]=0,this;var U,X;O>0?(U=this,X=L):(U=L,X=this);for(var $=0,j=0;j>26,this.words[j]=P&67108863;for(;$!==0&&j>26,this.words[j]=P&67108863;if($===0&&j>>26,ae=Y&67108863,Q=Math.min(q,L.length-1),oe=Math.max(0,q-F.length+1);oe<=Q;oe++){var ee=q-oe|0;U=F.words[ee]|0,X=L.words[oe]|0,$=U*X+ae,J+=$/67108864|0,ae=$&67108863}P.words[q]=ae|0,Y=J|0}return Y!==0?P.words[q]=Y|0:P.length--,P.strip()}var T=function(L,P,O){var U=L.words,X=P.words,$=O.words,j=0,Y,q,J,ae=U[0]|0,Q=ae&8191,oe=ae>>>13,ee=U[1]|0,V=ee&8191,re=ee>>>13,H=U[2]|0,te=H&8191,ue=H>>>13,he=U[3]|0,Ce=he&8191,Se=he>>>13,ve=U[4]|0,Te=ve&8191,ke=ve>>>13,Fe=U[5]|0,Ee=Fe&8191,ze=Fe>>>13,Be=U[6]|0,ge=Be&8191,Me=Be>>>13,ce=U[7]|0,ye=ce&8191,Le=ce>>>13,me=U[8]|0,de=me&8191,be=me>>>13,Ae=U[9]|0,qe=Ae&8191,Pe=Ae>>>13,Ze=X[0]|0,Ye=Ze&8191,Ge=Ze>>>13,We=X[1]|0,we=We&8191,De=We>>>13,Qe=X[2]|0,Ve=Qe&8191,ar=Qe>>>13,se=X[3]|0,K=se&8191,ne=se>>>13,Re=X[4]|0,Ue=Re&8191,je=Re>>>13,nr=X[5]|0,hr=nr&8191,wr=nr>>>13,Cr=X[6]|0,Tr=Cr&8191,Ar=Cr>>>13,ft=X[7]|0,Yr=ft&8191,mr=ft>>>13,ct=X[8]|0,Sr=ct&8191,Ur=ct>>>13,xt=X[9]|0,zr=xt&8191,Hr=xt>>>13;O.negative=L.negative^P.negative,O.length=19,Y=Math.imul(Q,Ye),q=Math.imul(Q,Ge),q=q+Math.imul(oe,Ye)|0,J=Math.imul(oe,Ge);var Ot=(j+Y|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,Y=Math.imul(V,Ye),q=Math.imul(V,Ge),q=q+Math.imul(re,Ye)|0,J=Math.imul(re,Ge),Y=Y+Math.imul(Q,we)|0,q=q+Math.imul(Q,De)|0,q=q+Math.imul(oe,we)|0,J=J+Math.imul(oe,De)|0;var Lt=(j+Y|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,Y=Math.imul(te,Ye),q=Math.imul(te,Ge),q=q+Math.imul(ue,Ye)|0,J=Math.imul(ue,Ge),Y=Y+Math.imul(V,we)|0,q=q+Math.imul(V,De)|0,q=q+Math.imul(re,we)|0,J=J+Math.imul(re,De)|0,Y=Y+Math.imul(Q,Ve)|0,q=q+Math.imul(Q,ar)|0,q=q+Math.imul(oe,Ve)|0,J=J+Math.imul(oe,ar)|0;var yn=(j+Y|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(yn>>>26)|0,yn&=67108863,Y=Math.imul(Ce,Ye),q=Math.imul(Ce,Ge),q=q+Math.imul(Se,Ye)|0,J=Math.imul(Se,Ge),Y=Y+Math.imul(te,we)|0,q=q+Math.imul(te,De)|0,q=q+Math.imul(ue,we)|0,J=J+Math.imul(ue,De)|0,Y=Y+Math.imul(V,Ve)|0,q=q+Math.imul(V,ar)|0,q=q+Math.imul(re,Ve)|0,J=J+Math.imul(re,ar)|0,Y=Y+Math.imul(Q,K)|0,q=q+Math.imul(Q,ne)|0,q=q+Math.imul(oe,K)|0,J=J+Math.imul(oe,ne)|0;var Gt=(j+Y|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,Y=Math.imul(Te,Ye),q=Math.imul(Te,Ge),q=q+Math.imul(ke,Ye)|0,J=Math.imul(ke,Ge),Y=Y+Math.imul(Ce,we)|0,q=q+Math.imul(Ce,De)|0,q=q+Math.imul(Se,we)|0,J=J+Math.imul(Se,De)|0,Y=Y+Math.imul(te,Ve)|0,q=q+Math.imul(te,ar)|0,q=q+Math.imul(ue,Ve)|0,J=J+Math.imul(ue,ar)|0,Y=Y+Math.imul(V,K)|0,q=q+Math.imul(V,ne)|0,q=q+Math.imul(re,K)|0,J=J+Math.imul(re,ne)|0,Y=Y+Math.imul(Q,Ue)|0,q=q+Math.imul(Q,je)|0,q=q+Math.imul(oe,Ue)|0,J=J+Math.imul(oe,je)|0;var Rt=(j+Y|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,Y=Math.imul(Ee,Ye),q=Math.imul(Ee,Ge),q=q+Math.imul(ze,Ye)|0,J=Math.imul(ze,Ge),Y=Y+Math.imul(Te,we)|0,q=q+Math.imul(Te,De)|0,q=q+Math.imul(ke,we)|0,J=J+Math.imul(ke,De)|0,Y=Y+Math.imul(Ce,Ve)|0,q=q+Math.imul(Ce,ar)|0,q=q+Math.imul(Se,Ve)|0,J=J+Math.imul(Se,ar)|0,Y=Y+Math.imul(te,K)|0,q=q+Math.imul(te,ne)|0,q=q+Math.imul(ue,K)|0,J=J+Math.imul(ue,ne)|0,Y=Y+Math.imul(V,Ue)|0,q=q+Math.imul(V,je)|0,q=q+Math.imul(re,Ue)|0,J=J+Math.imul(re,je)|0,Y=Y+Math.imul(Q,hr)|0,q=q+Math.imul(Q,wr)|0,q=q+Math.imul(oe,hr)|0,J=J+Math.imul(oe,wr)|0;var nt=(j+Y|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(nt>>>26)|0,nt&=67108863,Y=Math.imul(ge,Ye),q=Math.imul(ge,Ge),q=q+Math.imul(Me,Ye)|0,J=Math.imul(Me,Ge),Y=Y+Math.imul(Ee,we)|0,q=q+Math.imul(Ee,De)|0,q=q+Math.imul(ze,we)|0,J=J+Math.imul(ze,De)|0,Y=Y+Math.imul(Te,Ve)|0,q=q+Math.imul(Te,ar)|0,q=q+Math.imul(ke,Ve)|0,J=J+Math.imul(ke,ar)|0,Y=Y+Math.imul(Ce,K)|0,q=q+Math.imul(Ce,ne)|0,q=q+Math.imul(Se,K)|0,J=J+Math.imul(Se,ne)|0,Y=Y+Math.imul(te,Ue)|0,q=q+Math.imul(te,je)|0,q=q+Math.imul(ue,Ue)|0,J=J+Math.imul(ue,je)|0,Y=Y+Math.imul(V,hr)|0,q=q+Math.imul(V,wr)|0,q=q+Math.imul(re,hr)|0,J=J+Math.imul(re,wr)|0,Y=Y+Math.imul(Q,Tr)|0,q=q+Math.imul(Q,Ar)|0,q=q+Math.imul(oe,Tr)|0,J=J+Math.imul(oe,Ar)|0;var Ft=(j+Y|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,Y=Math.imul(ye,Ye),q=Math.imul(ye,Ge),q=q+Math.imul(Le,Ye)|0,J=Math.imul(Le,Ge),Y=Y+Math.imul(ge,we)|0,q=q+Math.imul(ge,De)|0,q=q+Math.imul(Me,we)|0,J=J+Math.imul(Me,De)|0,Y=Y+Math.imul(Ee,Ve)|0,q=q+Math.imul(Ee,ar)|0,q=q+Math.imul(ze,Ve)|0,J=J+Math.imul(ze,ar)|0,Y=Y+Math.imul(Te,K)|0,q=q+Math.imul(Te,ne)|0,q=q+Math.imul(ke,K)|0,J=J+Math.imul(ke,ne)|0,Y=Y+Math.imul(Ce,Ue)|0,q=q+Math.imul(Ce,je)|0,q=q+Math.imul(Se,Ue)|0,J=J+Math.imul(Se,je)|0,Y=Y+Math.imul(te,hr)|0,q=q+Math.imul(te,wr)|0,q=q+Math.imul(ue,hr)|0,J=J+Math.imul(ue,wr)|0,Y=Y+Math.imul(V,Tr)|0,q=q+Math.imul(V,Ar)|0,q=q+Math.imul(re,Tr)|0,J=J+Math.imul(re,Ar)|0,Y=Y+Math.imul(Q,Yr)|0,q=q+Math.imul(Q,mr)|0,q=q+Math.imul(oe,Yr)|0,J=J+Math.imul(oe,mr)|0;var va=(j+Y|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(va>>>26)|0,va&=67108863,Y=Math.imul(de,Ye),q=Math.imul(de,Ge),q=q+Math.imul(be,Ye)|0,J=Math.imul(be,Ge),Y=Y+Math.imul(ye,we)|0,q=q+Math.imul(ye,De)|0,q=q+Math.imul(Le,we)|0,J=J+Math.imul(Le,De)|0,Y=Y+Math.imul(ge,Ve)|0,q=q+Math.imul(ge,ar)|0,q=q+Math.imul(Me,Ve)|0,J=J+Math.imul(Me,ar)|0,Y=Y+Math.imul(Ee,K)|0,q=q+Math.imul(Ee,ne)|0,q=q+Math.imul(ze,K)|0,J=J+Math.imul(ze,ne)|0,Y=Y+Math.imul(Te,Ue)|0,q=q+Math.imul(Te,je)|0,q=q+Math.imul(ke,Ue)|0,J=J+Math.imul(ke,je)|0,Y=Y+Math.imul(Ce,hr)|0,q=q+Math.imul(Ce,wr)|0,q=q+Math.imul(Se,hr)|0,J=J+Math.imul(Se,wr)|0,Y=Y+Math.imul(te,Tr)|0,q=q+Math.imul(te,Ar)|0,q=q+Math.imul(ue,Tr)|0,J=J+Math.imul(ue,Ar)|0,Y=Y+Math.imul(V,Yr)|0,q=q+Math.imul(V,mr)|0,q=q+Math.imul(re,Yr)|0,J=J+Math.imul(re,mr)|0,Y=Y+Math.imul(Q,Sr)|0,q=q+Math.imul(Q,Ur)|0,q=q+Math.imul(oe,Sr)|0,J=J+Math.imul(oe,Ur)|0;var Kn=(j+Y|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Kn>>>26)|0,Kn&=67108863,Y=Math.imul(qe,Ye),q=Math.imul(qe,Ge),q=q+Math.imul(Pe,Ye)|0,J=Math.imul(Pe,Ge),Y=Y+Math.imul(de,we)|0,q=q+Math.imul(de,De)|0,q=q+Math.imul(be,we)|0,J=J+Math.imul(be,De)|0,Y=Y+Math.imul(ye,Ve)|0,q=q+Math.imul(ye,ar)|0,q=q+Math.imul(Le,Ve)|0,J=J+Math.imul(Le,ar)|0,Y=Y+Math.imul(ge,K)|0,q=q+Math.imul(ge,ne)|0,q=q+Math.imul(Me,K)|0,J=J+Math.imul(Me,ne)|0,Y=Y+Math.imul(Ee,Ue)|0,q=q+Math.imul(Ee,je)|0,q=q+Math.imul(ze,Ue)|0,J=J+Math.imul(ze,je)|0,Y=Y+Math.imul(Te,hr)|0,q=q+Math.imul(Te,wr)|0,q=q+Math.imul(ke,hr)|0,J=J+Math.imul(ke,wr)|0,Y=Y+Math.imul(Ce,Tr)|0,q=q+Math.imul(Ce,Ar)|0,q=q+Math.imul(Se,Tr)|0,J=J+Math.imul(Se,Ar)|0,Y=Y+Math.imul(te,Yr)|0,q=q+Math.imul(te,mr)|0,q=q+Math.imul(ue,Yr)|0,J=J+Math.imul(ue,mr)|0,Y=Y+Math.imul(V,Sr)|0,q=q+Math.imul(V,Ur)|0,q=q+Math.imul(re,Sr)|0,J=J+Math.imul(re,Ur)|0,Y=Y+Math.imul(Q,zr)|0,q=q+Math.imul(Q,Hr)|0,q=q+Math.imul(oe,zr)|0,J=J+Math.imul(oe,Hr)|0;var Fn=(j+Y|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,Y=Math.imul(qe,we),q=Math.imul(qe,De),q=q+Math.imul(Pe,we)|0,J=Math.imul(Pe,De),Y=Y+Math.imul(de,Ve)|0,q=q+Math.imul(de,ar)|0,q=q+Math.imul(be,Ve)|0,J=J+Math.imul(be,ar)|0,Y=Y+Math.imul(ye,K)|0,q=q+Math.imul(ye,ne)|0,q=q+Math.imul(Le,K)|0,J=J+Math.imul(Le,ne)|0,Y=Y+Math.imul(ge,Ue)|0,q=q+Math.imul(ge,je)|0,q=q+Math.imul(Me,Ue)|0,J=J+Math.imul(Me,je)|0,Y=Y+Math.imul(Ee,hr)|0,q=q+Math.imul(Ee,wr)|0,q=q+Math.imul(ze,hr)|0,J=J+Math.imul(ze,wr)|0,Y=Y+Math.imul(Te,Tr)|0,q=q+Math.imul(Te,Ar)|0,q=q+Math.imul(ke,Tr)|0,J=J+Math.imul(ke,Ar)|0,Y=Y+Math.imul(Ce,Yr)|0,q=q+Math.imul(Ce,mr)|0,q=q+Math.imul(Se,Yr)|0,J=J+Math.imul(Se,mr)|0,Y=Y+Math.imul(te,Sr)|0,q=q+Math.imul(te,Ur)|0,q=q+Math.imul(ue,Sr)|0,J=J+Math.imul(ue,Ur)|0,Y=Y+Math.imul(V,zr)|0,q=q+Math.imul(V,Hr)|0,q=q+Math.imul(re,zr)|0,J=J+Math.imul(re,Hr)|0;var wa=(j+Y|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(wa>>>26)|0,wa&=67108863,Y=Math.imul(qe,Ve),q=Math.imul(qe,ar),q=q+Math.imul(Pe,Ve)|0,J=Math.imul(Pe,ar),Y=Y+Math.imul(de,K)|0,q=q+Math.imul(de,ne)|0,q=q+Math.imul(be,K)|0,J=J+Math.imul(be,ne)|0,Y=Y+Math.imul(ye,Ue)|0,q=q+Math.imul(ye,je)|0,q=q+Math.imul(Le,Ue)|0,J=J+Math.imul(Le,je)|0,Y=Y+Math.imul(ge,hr)|0,q=q+Math.imul(ge,wr)|0,q=q+Math.imul(Me,hr)|0,J=J+Math.imul(Me,wr)|0,Y=Y+Math.imul(Ee,Tr)|0,q=q+Math.imul(Ee,Ar)|0,q=q+Math.imul(ze,Tr)|0,J=J+Math.imul(ze,Ar)|0,Y=Y+Math.imul(Te,Yr)|0,q=q+Math.imul(Te,mr)|0,q=q+Math.imul(ke,Yr)|0,J=J+Math.imul(ke,mr)|0,Y=Y+Math.imul(Ce,Sr)|0,q=q+Math.imul(Ce,Ur)|0,q=q+Math.imul(Se,Sr)|0,J=J+Math.imul(Se,Ur)|0,Y=Y+Math.imul(te,zr)|0,q=q+Math.imul(te,Hr)|0,q=q+Math.imul(ue,zr)|0,J=J+Math.imul(ue,Hr)|0;var xi=(j+Y|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(xi>>>26)|0,xi&=67108863,Y=Math.imul(qe,K),q=Math.imul(qe,ne),q=q+Math.imul(Pe,K)|0,J=Math.imul(Pe,ne),Y=Y+Math.imul(de,Ue)|0,q=q+Math.imul(de,je)|0,q=q+Math.imul(be,Ue)|0,J=J+Math.imul(be,je)|0,Y=Y+Math.imul(ye,hr)|0,q=q+Math.imul(ye,wr)|0,q=q+Math.imul(Le,hr)|0,J=J+Math.imul(Le,wr)|0,Y=Y+Math.imul(ge,Tr)|0,q=q+Math.imul(ge,Ar)|0,q=q+Math.imul(Me,Tr)|0,J=J+Math.imul(Me,Ar)|0,Y=Y+Math.imul(Ee,Yr)|0,q=q+Math.imul(Ee,mr)|0,q=q+Math.imul(ze,Yr)|0,J=J+Math.imul(ze,mr)|0,Y=Y+Math.imul(Te,Sr)|0,q=q+Math.imul(Te,Ur)|0,q=q+Math.imul(ke,Sr)|0,J=J+Math.imul(ke,Ur)|0,Y=Y+Math.imul(Ce,zr)|0,q=q+Math.imul(Ce,Hr)|0,q=q+Math.imul(Se,zr)|0,J=J+Math.imul(Se,Hr)|0;var Gi=(j+Y|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,Y=Math.imul(qe,Ue),q=Math.imul(qe,je),q=q+Math.imul(Pe,Ue)|0,J=Math.imul(Pe,je),Y=Y+Math.imul(de,hr)|0,q=q+Math.imul(de,wr)|0,q=q+Math.imul(be,hr)|0,J=J+Math.imul(be,wr)|0,Y=Y+Math.imul(ye,Tr)|0,q=q+Math.imul(ye,Ar)|0,q=q+Math.imul(Le,Tr)|0,J=J+Math.imul(Le,Ar)|0,Y=Y+Math.imul(ge,Yr)|0,q=q+Math.imul(ge,mr)|0,q=q+Math.imul(Me,Yr)|0,J=J+Math.imul(Me,mr)|0,Y=Y+Math.imul(Ee,Sr)|0,q=q+Math.imul(Ee,Ur)|0,q=q+Math.imul(ze,Sr)|0,J=J+Math.imul(ze,Ur)|0,Y=Y+Math.imul(Te,zr)|0,q=q+Math.imul(Te,Hr)|0,q=q+Math.imul(ke,zr)|0,J=J+Math.imul(ke,Hr)|0;var Yi=(j+Y|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,Y=Math.imul(qe,hr),q=Math.imul(qe,wr),q=q+Math.imul(Pe,hr)|0,J=Math.imul(Pe,wr),Y=Y+Math.imul(de,Tr)|0,q=q+Math.imul(de,Ar)|0,q=q+Math.imul(be,Tr)|0,J=J+Math.imul(be,Ar)|0,Y=Y+Math.imul(ye,Yr)|0,q=q+Math.imul(ye,mr)|0,q=q+Math.imul(Le,Yr)|0,J=J+Math.imul(Le,mr)|0,Y=Y+Math.imul(ge,Sr)|0,q=q+Math.imul(ge,Ur)|0,q=q+Math.imul(Me,Sr)|0,J=J+Math.imul(Me,Ur)|0,Y=Y+Math.imul(Ee,zr)|0,q=q+Math.imul(Ee,Hr)|0,q=q+Math.imul(ze,zr)|0,J=J+Math.imul(ze,Hr)|0;var Wi=(j+Y|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,Y=Math.imul(qe,Tr),q=Math.imul(qe,Ar),q=q+Math.imul(Pe,Tr)|0,J=Math.imul(Pe,Ar),Y=Y+Math.imul(de,Yr)|0,q=q+Math.imul(de,mr)|0,q=q+Math.imul(be,Yr)|0,J=J+Math.imul(be,mr)|0,Y=Y+Math.imul(ye,Sr)|0,q=q+Math.imul(ye,Ur)|0,q=q+Math.imul(Le,Sr)|0,J=J+Math.imul(Le,Ur)|0,Y=Y+Math.imul(ge,zr)|0,q=q+Math.imul(ge,Hr)|0,q=q+Math.imul(Me,zr)|0,J=J+Math.imul(Me,Hr)|0;var tn=(j+Y|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(tn>>>26)|0,tn&=67108863,Y=Math.imul(qe,Yr),q=Math.imul(qe,mr),q=q+Math.imul(Pe,Yr)|0,J=Math.imul(Pe,mr),Y=Y+Math.imul(de,Sr)|0,q=q+Math.imul(de,Ur)|0,q=q+Math.imul(be,Sr)|0,J=J+Math.imul(be,Ur)|0,Y=Y+Math.imul(ye,zr)|0,q=q+Math.imul(ye,Hr)|0,q=q+Math.imul(Le,zr)|0,J=J+Math.imul(Le,Hr)|0;var xo=(j+Y|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(xo>>>26)|0,xo&=67108863,Y=Math.imul(qe,Sr),q=Math.imul(qe,Ur),q=q+Math.imul(Pe,Sr)|0,J=Math.imul(Pe,Ur),Y=Y+Math.imul(de,zr)|0,q=q+Math.imul(de,Hr)|0,q=q+Math.imul(be,zr)|0,J=J+Math.imul(be,Hr)|0;var bi=(j+Y|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(bi>>>26)|0,bi&=67108863,Y=Math.imul(qe,zr),q=Math.imul(qe,Hr),q=q+Math.imul(Pe,zr)|0,J=Math.imul(Pe,Hr);var _i=(j+Y|0)+((q&8191)<<13)|0;return j=(J+(q>>>13)|0)+(_i>>>26)|0,_i&=67108863,$[0]=Ot,$[1]=Lt,$[2]=yn,$[3]=Gt,$[4]=Rt,$[5]=nt,$[6]=Ft,$[7]=va,$[8]=Kn,$[9]=Fn,$[10]=wa,$[11]=xi,$[12]=Gi,$[13]=Yi,$[14]=Wi,$[15]=tn,$[16]=xo,$[17]=bi,$[18]=_i,j!==0&&($[19]=j,O.length++),O};Math.imul||(T=x);function d(F,L,P){P.negative=L.negative^F.negative,P.length=F.length+L.length;for(var O=0,U=0,X=0;X>>26)|0,U+=$>>>26,$&=67108863}P.words[X]=j,O=$,$=U}return O!==0?P.words[X]=O:P.length--,P.strip()}function _(F,L,P){var O=new g;return O.mulp(F,L,P)}v.prototype.mulTo=function(L,P){var O,U=this.length+L.length;return this.length===10&&L.length===10?O=T(this,L,P):U<63?O=x(this,L,P):U<1024?O=d(this,L,P):O=_(this,L,P),O};function g(F,L){this.x=F,this.y=L}g.prototype.makeRBT=function(L){for(var P=new Array(L),O=v.prototype._countBits(L)-1,U=0;U>=1;return U},g.prototype.permute=function(L,P,O,U,X,$){for(var j=0;j<$;j++)U[j]=P[L[j]],X[j]=O[L[j]]},g.prototype.transform=function(L,P,O,U,X,$){this.permute($,L,P,O,U,X);for(var j=1;j>>1)X++;return 1<>>13,O[2*$+1]=X&8191,X=X>>>13;for($=2*P;$>=26,P+=U/67108864|0,P+=X>>>26,this.words[O]=X&67108863}return P!==0&&(this.words[O]=P,this.length++),this},v.prototype.muln=function(L){return this.clone().imuln(L)},v.prototype.sqr=function(){return this.mul(this)},v.prototype.isqr=function(){return this.imul(this.clone())},v.prototype.pow=function(L){var P=S(L);if(P.length===0)return new v(1);for(var O=this,U=0;U=0);var P=L%26,O=(L-P)/26,U=67108863>>>26-P<<26-P,X;if(P!==0){var $=0;for(X=0;X>>26-P}$&&(this.words[X]=$,this.length++)}if(O!==0){for(X=this.length-1;X>=0;X--)this.words[X+O]=this.words[X];for(X=0;X=0);var U;P?U=(P-P%26)/26:U=0;var X=L%26,$=Math.min((L-X)/26,this.length),j=67108863^67108863>>>X<$)for(this.length-=$,q=0;q=0&&(J!==0||q>=U);q--){var ae=this.words[q]|0;this.words[q]=J<<26-X|ae>>>X,J=ae&j}return Y&&J!==0&&(Y.words[Y.length++]=J),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},v.prototype.ishrn=function(L,P,O){return s(this.negative===0),this.iushrn(L,P,O)},v.prototype.shln=function(L){return this.clone().ishln(L)},v.prototype.ushln=function(L){return this.clone().iushln(L)},v.prototype.shrn=function(L){return this.clone().ishrn(L)},v.prototype.ushrn=function(L){return this.clone().iushrn(L)},v.prototype.testn=function(L){s(typeof L=="number"&&L>=0);var P=L%26,O=(L-P)/26,U=1<=0);var P=L%26,O=(L-P)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=O)return this;if(P!==0&&O++,this.length=Math.min(O,this.length),P!==0){var U=67108863^67108863>>>P<=67108864;P++)this.words[P]-=67108864,P===this.length-1?this.words[P+1]=1:this.words[P+1]++;return this.length=Math.max(this.length,P+1),this},v.prototype.isubn=function(L){if(s(typeof L=="number"),s(L<67108864),L<0)return this.iaddn(-L);if(this.negative!==0)return this.negative=0,this.iaddn(L),this.negative=1,this;if(this.words[0]-=L,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var P=0;P>26)-(Y/67108864|0),this.words[X+O]=$&67108863}for(;X>26,this.words[X+O]=$&67108863;if(j===0)return this.strip();for(s(j===-1),j=0,X=0;X>26,this.words[X]=$&67108863;return this.negative=1,this.strip()},v.prototype._wordDiv=function(L,P){var O=this.length-L.length,U=this.clone(),X=L,$=X.words[X.length-1]|0,j=this._countBits($);O=26-j,O!==0&&(X=X.ushln(O),U.iushln(O),$=X.words[X.length-1]|0);var Y=U.length-X.length,q;if(P!=="mod"){q=new v(null),q.length=Y+1,q.words=new Array(q.length);for(var J=0;J=0;Q--){var oe=(U.words[X.length+Q]|0)*67108864+(U.words[X.length+Q-1]|0);for(oe=Math.min(oe/$|0,67108863),U._ishlnsubmul(X,oe,Q);U.negative!==0;)oe--,U.negative=0,U._ishlnsubmul(X,1,Q),U.isZero()||(U.negative^=1);q&&(q.words[Q]=oe)}return q&&q.strip(),U.strip(),P!=="div"&&O!==0&&U.iushrn(O),{div:q||null,mod:U}},v.prototype.divmod=function(L,P,O){if(s(!L.isZero()),this.isZero())return{div:new v(0),mod:new v(0)};var U,X,$;return this.negative!==0&&L.negative===0?($=this.neg().divmod(L,P),P!=="mod"&&(U=$.div.neg()),P!=="div"&&(X=$.mod.neg(),O&&X.negative!==0&&X.iadd(L)),{div:U,mod:X}):this.negative===0&&L.negative!==0?($=this.divmod(L.neg(),P),P!=="mod"&&(U=$.div.neg()),{div:U,mod:$.mod}):(this.negative&L.negative)!==0?($=this.neg().divmod(L.neg(),P),P!=="div"&&(X=$.mod.neg(),O&&X.negative!==0&&X.isub(L)),{div:$.div,mod:X}):L.length>this.length||this.cmp(L)<0?{div:new v(0),mod:this}:L.length===1?P==="div"?{div:this.divn(L.words[0]),mod:null}:P==="mod"?{div:null,mod:new v(this.modn(L.words[0]))}:{div:this.divn(L.words[0]),mod:new v(this.modn(L.words[0]))}:this._wordDiv(L,P)},v.prototype.div=function(L){return this.divmod(L,"div",!1).div},v.prototype.mod=function(L){return this.divmod(L,"mod",!1).mod},v.prototype.umod=function(L){return this.divmod(L,"mod",!0).mod},v.prototype.divRound=function(L){var P=this.divmod(L);if(P.mod.isZero())return P.div;var O=P.div.negative!==0?P.mod.isub(L):P.mod,U=L.ushrn(1),X=L.andln(1),$=O.cmp(U);return $<0||X===1&&$===0?P.div:P.div.negative!==0?P.div.isubn(1):P.div.iaddn(1)},v.prototype.modn=function(L){s(L<=67108863);for(var P=(1<<26)%L,O=0,U=this.length-1;U>=0;U--)O=(P*O+(this.words[U]|0))%L;return O},v.prototype.idivn=function(L){s(L<=67108863);for(var P=0,O=this.length-1;O>=0;O--){var U=(this.words[O]|0)+P*67108864;this.words[O]=U/L|0,P=U%L}return this.strip()},v.prototype.divn=function(L){return this.clone().idivn(L)},v.prototype.egcd=function(L){s(L.negative===0),s(!L.isZero());var P=this,O=L.clone();P.negative!==0?P=P.umod(L):P=P.clone();for(var U=new v(1),X=new v(0),$=new v(0),j=new v(1),Y=0;P.isEven()&&O.isEven();)P.iushrn(1),O.iushrn(1),++Y;for(var q=O.clone(),J=P.clone();!P.isZero();){for(var ae=0,Q=1;(P.words[0]&Q)===0&&ae<26;++ae,Q<<=1);if(ae>0)for(P.iushrn(ae);ae-- >0;)(U.isOdd()||X.isOdd())&&(U.iadd(q),X.isub(J)),U.iushrn(1),X.iushrn(1);for(var oe=0,ee=1;(O.words[0]&ee)===0&&oe<26;++oe,ee<<=1);if(oe>0)for(O.iushrn(oe);oe-- >0;)($.isOdd()||j.isOdd())&&($.iadd(q),j.isub(J)),$.iushrn(1),j.iushrn(1);P.cmp(O)>=0?(P.isub(O),U.isub($),X.isub(j)):(O.isub(P),$.isub(U),j.isub(X))}return{a:$,b:j,gcd:O.iushln(Y)}},v.prototype._invmp=function(L){s(L.negative===0),s(!L.isZero());var P=this,O=L.clone();P.negative!==0?P=P.umod(L):P=P.clone();for(var U=new v(1),X=new v(0),$=O.clone();P.cmpn(1)>0&&O.cmpn(1)>0;){for(var j=0,Y=1;(P.words[0]&Y)===0&&j<26;++j,Y<<=1);if(j>0)for(P.iushrn(j);j-- >0;)U.isOdd()&&U.iadd($),U.iushrn(1);for(var q=0,J=1;(O.words[0]&J)===0&&q<26;++q,J<<=1);if(q>0)for(O.iushrn(q);q-- >0;)X.isOdd()&&X.iadd($),X.iushrn(1);P.cmp(O)>=0?(P.isub(O),U.isub(X)):(O.isub(P),X.isub(U))}var ae;return P.cmpn(1)===0?ae=U:ae=X,ae.cmpn(0)<0&&ae.iadd(L),ae},v.prototype.gcd=function(L){if(this.isZero())return L.abs();if(L.isZero())return this.abs();var P=this.clone(),O=L.clone();P.negative=0,O.negative=0;for(var U=0;P.isEven()&&O.isEven();U++)P.iushrn(1),O.iushrn(1);do{for(;P.isEven();)P.iushrn(1);for(;O.isEven();)O.iushrn(1);var X=P.cmp(O);if(X<0){var $=P;P=O,O=$}else if(X===0||O.cmpn(1)===0)break;P.isub(O)}while(!0);return O.iushln(U)},v.prototype.invm=function(L){return this.egcd(L).a.umod(L)},v.prototype.isEven=function(){return(this.words[0]&1)===0},v.prototype.isOdd=function(){return(this.words[0]&1)===1},v.prototype.andln=function(L){return this.words[0]&L},v.prototype.bincn=function(L){s(typeof L=="number");var P=L%26,O=(L-P)/26,U=1<>>26,j&=67108863,this.words[$]=j}return X!==0&&(this.words[$]=X,this.length++),this},v.prototype.isZero=function(){return this.length===1&&this.words[0]===0},v.prototype.cmpn=function(L){var P=L<0;if(this.negative!==0&&!P)return-1;if(this.negative===0&&P)return 1;this.strip();var O;if(this.length>1)O=1;else{P&&(L=-L),s(L<=67108863,"Number is too big");var U=this.words[0]|0;O=U===L?0:UL.length)return 1;if(this.length=0;O--){var U=this.words[O]|0,X=L.words[O]|0;if(U!==X){UX&&(P=1);break}}return P},v.prototype.gtn=function(L){return this.cmpn(L)===1},v.prototype.gt=function(L){return this.cmp(L)===1},v.prototype.gten=function(L){return this.cmpn(L)>=0},v.prototype.gte=function(L){return this.cmp(L)>=0},v.prototype.ltn=function(L){return this.cmpn(L)===-1},v.prototype.lt=function(L){return this.cmp(L)===-1},v.prototype.lten=function(L){return this.cmpn(L)<=0},v.prototype.lte=function(L){return this.cmp(L)<=0},v.prototype.eqn=function(L){return this.cmpn(L)===0},v.prototype.eq=function(L){return this.cmp(L)===0},v.red=function(L){return new N(L)},v.prototype.toRed=function(L){return s(!this.red,"Already a number in reduction context"),s(this.negative===0,"red works only with positives"),L.convertTo(this)._forceRed(L)},v.prototype.fromRed=function(){return s(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},v.prototype._forceRed=function(L){return this.red=L,this},v.prototype.forceRed=function(L){return s(!this.red,"Already a number in reduction context"),this._forceRed(L)},v.prototype.redAdd=function(L){return s(this.red,"redAdd works only with red numbers"),this.red.add(this,L)},v.prototype.redIAdd=function(L){return s(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,L)},v.prototype.redSub=function(L){return s(this.red,"redSub works only with red numbers"),this.red.sub(this,L)},v.prototype.redISub=function(L){return s(this.red,"redISub works only with red numbers"),this.red.isub(this,L)},v.prototype.redShl=function(L){return s(this.red,"redShl works only with red numbers"),this.red.shl(this,L)},v.prototype.redMul=function(L){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.mul(this,L)},v.prototype.redIMul=function(L){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.imul(this,L)},v.prototype.redSqr=function(){return s(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},v.prototype.redISqr=function(){return s(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},v.prototype.redSqrt=function(){return s(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},v.prototype.redInvm=function(){return s(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},v.prototype.redNeg=function(){return s(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},v.prototype.redPow=function(L){return s(this.red&&!L.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,L)};var c={k256:null,p224:null,p192:null,p25519:null};function A(F,L){this.name=F,this.p=new v(L,16),this.n=this.p.bitLength(),this.k=new v(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}A.prototype._tmp=function(){var L=new v(null);return L.words=new Array(Math.ceil(this.n/13)),L},A.prototype.ireduce=function(L){var P=L,O;do this.split(P,this.tmp),P=this.imulK(P),P=P.iadd(this.tmp),O=P.bitLength();while(O>this.n);var U=O0?P.isub(this.p):P.strip!==void 0?P.strip():P._strip(),P},A.prototype.split=function(L,P){L.iushrn(this.n,0,P)},A.prototype.imulK=function(L){return L.imul(this.k)};function h(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(h,A),h.prototype.split=function(L,P){for(var O=4194303,U=Math.min(L.length,9),X=0;X>>22,$=j}$>>>=22,L.words[X-10]=$,$===0&&L.length>10?L.length-=10:L.length-=9},h.prototype.imulK=function(L){L.words[L.length]=0,L.words[L.length+1]=0,L.length+=2;for(var P=0,O=0;O>>=26,L.words[O]=X,P=U}return P!==0&&(L.words[L.length++]=P),L},v._prime=function(L){if(c[L])return c[L];var P;if(L==="k256")P=new h;else if(L==="p224")P=new R;else if(L==="p192")P=new E;else if(L==="p25519")P=new D;else throw new Error("Unknown prime "+L);return c[L]=P,P};function N(F){if(typeof F=="string"){var L=v._prime(F);this.m=L.p,this.prime=L}else s(F.gtn(1),"modulus must be greater than 1"),this.m=F,this.prime=null}N.prototype._verify1=function(L){s(L.negative===0,"red works only with positives"),s(L.red,"red works only with red numbers")},N.prototype._verify2=function(L,P){s((L.negative|P.negative)===0,"red works only with positives"),s(L.red&&L.red===P.red,"red works only with red numbers")},N.prototype.imod=function(L){return this.prime?this.prime.ireduce(L)._forceRed(this):L.umod(this.m)._forceRed(this)},N.prototype.neg=function(L){return L.isZero()?L.clone():this.m.sub(L)._forceRed(this)},N.prototype.add=function(L,P){this._verify2(L,P);var O=L.add(P);return O.cmp(this.m)>=0&&O.isub(this.m),O._forceRed(this)},N.prototype.iadd=function(L,P){this._verify2(L,P);var O=L.iadd(P);return O.cmp(this.m)>=0&&O.isub(this.m),O},N.prototype.sub=function(L,P){this._verify2(L,P);var O=L.sub(P);return O.cmpn(0)<0&&O.iadd(this.m),O._forceRed(this)},N.prototype.isub=function(L,P){this._verify2(L,P);var O=L.isub(P);return O.cmpn(0)<0&&O.iadd(this.m),O},N.prototype.shl=function(L,P){return this._verify1(L),this.imod(L.ushln(P))},N.prototype.imul=function(L,P){return this._verify2(L,P),this.imod(L.imul(P))},N.prototype.mul=function(L,P){return this._verify2(L,P),this.imod(L.mul(P))},N.prototype.isqr=function(L){return this.imul(L,L.clone())},N.prototype.sqr=function(L){return this.mul(L,L)},N.prototype.sqrt=function(L){if(L.isZero())return L.clone();var P=this.m.andln(3);if(s(P%2===1),P===3){var O=this.m.add(new v(1)).iushrn(2);return this.pow(L,O)}for(var U=this.m.subn(1),X=0;!U.isZero()&&U.andln(1)===0;)X++,U.iushrn(1);s(!U.isZero());var $=new v(1).toRed(this),j=$.redNeg(),Y=this.m.subn(1).iushrn(1),q=this.m.bitLength();for(q=new v(2*q*q).toRed(this);this.pow(q,Y).cmp(j)!==0;)q.redIAdd(j);for(var J=this.pow(q,U),ae=this.pow(L,U.addn(1).iushrn(1)),Q=this.pow(L,U),oe=X;Q.cmp($)!==0;){for(var ee=Q,V=0;ee.cmp($)!==0;V++)ee=ee.redSqr();s(V=0;X--){for(var J=P.words[X],ae=q-1;ae>=0;ae--){var Q=J>>ae&1;if($!==U[0]&&($=this.sqr($)),Q===0&&j===0){Y=0;continue}j<<=1,j|=Q,Y++,!(Y!==O&&(X!==0||ae!==0))&&($=this.mul($,U[j]),Y=0,j=0)}q=26}return $},N.prototype.convertTo=function(L){var P=L.umod(this.m);return P===L?P.clone():P},N.prototype.convertFrom=function(L){var P=L.clone();return P.red=null,P},v.mont=function(L){return new I(L)};function I(F){N.call(this,F),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new v(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}f(I,N),I.prototype.convertTo=function(L){return this.imod(L.ushln(this.shift))},I.prototype.convertFrom=function(L){var P=this.imod(L.mul(this.rinv));return P.red=null,P},I.prototype.imul=function(L,P){if(L.isZero()||P.isZero())return L.words[0]=0,L.length=1,L;var O=L.imul(P),U=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),X=O.isub(U).iushrn(this.shift),$=X;return X.cmp(this.m)>=0?$=X.isub(this.m):X.cmpn(0)<0&&($=X.iadd(this.m)),$._forceRed(this)},I.prototype.mul=function(L,P){if(L.isZero()||P.isZero())return new v(0)._forceRed(this);var O=L.mul(P),U=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),X=O.isub(U).iushrn(this.shift),$=X;return X.cmp(this.m)>=0?$=X.isub(this.m):X.cmpn(0)<0&&($=X.iadd(this.m)),$._forceRed(this)},I.prototype.invm=function(L){var P=this.imod(L._invmp(this.m).mul(this.r2));return P._forceRed(this)}}(a,this)},6204:function(a){"use strict";a.exports=o;function o(i){var l,u,s,f=i.length,v=0;for(l=0;l>>1;if(!(g<=0)){var c,A=l.mallocDouble(2*g*d),h=l.mallocInt32(d);if(d=v(k,g,A,h),d>0){if(g===1&&T)u.init(d),c=u.sweepComplete(g,x,0,d,A,h,0,d,A,h);else{var R=l.mallocDouble(2*g*_),E=l.mallocInt32(_);_=v(S,g,R,E),_>0&&(u.init(d+_),g===1?c=u.sweepBipartite(g,x,0,d,A,h,0,_,R,E):c=s(g,x,T,d,A,h,_,R,E),l.free(R),l.free(E))}l.free(A),l.free(h)}return c}}}var b;function m(k,S){b.push([k,S])}function w(k){return b=[],p(k,k,m,!0),b}function M(k,S){return b=[],p(k,S,m,!1),b}function y(k,S,x){switch(arguments.length){case 1:return w(k);case 2:return typeof S=="function"?p(k,k,S,!0):M(k,S);case 3:return p(k,S,x,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455:function(a,o){"use strict";function i(){function s(p,b,m,w,M,y,k,S,x,T,d){for(var _=2*p,g=w,c=_*w;gx-S?s(p,b,m,w,M,y,k,S,x,T,d):f(p,b,m,w,M,y,k,S,x,T,d)}return v}function l(){function s(m,w,M,y,k,S,x,T,d,_,g){for(var c=2*m,A=y,h=c*y;A_-d?y?s(m,w,M,k,S,x,T,d,_,g,c):f(m,w,M,k,S,x,T,d,_,g,c):y?v(m,w,M,k,S,x,T,d,_,g,c):p(m,w,M,k,S,x,T,d,_,g,c)}return b}function u(s){return s?i():l()}o.partial=u(!1),o.full=u(!0)},7150:function(a,o,i){"use strict";a.exports=F;var l=i(1888),u=i(8828),s=i(2455),f=s.partial,v=s.full,p=i(855),b=i(3545),m=i(8105),w=128,M=1<<22,y=1<<22,k=m("!(lo>=p0)&&!(p1>=hi)"),S=m("lo===p0"),x=m("lo0;){J-=1;var oe=J*g,ee=h[oe],V=h[oe+1],re=h[oe+2],H=h[oe+3],te=h[oe+4],ue=h[oe+5],he=J*c,Ce=R[he],Se=R[he+1],ve=ue&1,Te=!!(ue&16),ke=X,Fe=$,Ee=Y,ze=q;if(ve&&(ke=Y,Fe=q,Ee=X,ze=$),!(ue&2&&(re=x(L,ee,V,re,ke,Fe,Se),V>=re))&&!(ue&4&&(V=T(L,ee,V,re,ke,Fe,Ce),V>=re))){var Be=re-V,ge=te-H;if(Te){if(L*Be*(Be+ge)m&&M[_+b]>T;--d,_-=k){for(var g=_,c=_+k,A=0;A>>1,T=2*p,d=x,_=M[T*x+b];k=R?(d=h,_=R):A>=D?(d=c,_=A):(d=E,_=D):R>=D?(d=h,_=R):D>=A?(d=c,_=A):(d=E,_=D);for(var F=T*(S-1),L=T*d,N=0;N=p0)&&!(p1>=hi)":b};function i(m){return o[m]}function l(m,w,M,y,k,S,x){for(var T=2*m,d=T*M,_=d,g=M,c=w,A=m+w,h=M;y>h;++h,d+=T){var R=k[d+c];if(R===x)if(g===h)g+=1,_+=T;else{for(var E=0;T>E;++E){var D=k[d+E];k[d+E]=k[_],k[_++]=D}var N=S[h];S[h]=S[g],S[g++]=N}}return g}function u(m,w,M,y,k,S,x){for(var T=2*m,d=T*M,_=d,g=M,c=w,A=m+w,h=M;y>h;++h,d+=T){var R=k[d+c];if(RE;++E){var D=k[d+E];k[d+E]=k[_],k[_++]=D}var N=S[h];S[h]=S[g],S[g++]=N}}return g}function s(m,w,M,y,k,S,x){for(var T=2*m,d=T*M,_=d,g=M,c=w,A=m+w,h=M;y>h;++h,d+=T){var R=k[d+A];if(R<=x)if(g===h)g+=1,_+=T;else{for(var E=0;T>E;++E){var D=k[d+E];k[d+E]=k[_],k[_++]=D}var N=S[h];S[h]=S[g],S[g++]=N}}return g}function f(m,w,M,y,k,S,x){for(var T=2*m,d=T*M,_=d,g=M,c=w,A=m+w,h=M;y>h;++h,d+=T){var R=k[d+A];if(R<=x)if(g===h)g+=1,_+=T;else{for(var E=0;T>E;++E){var D=k[d+E];k[d+E]=k[_],k[_++]=D}var N=S[h];S[h]=S[g],S[g++]=N}}return g}function v(m,w,M,y,k,S,x){for(var T=2*m,d=T*M,_=d,g=M,c=w,A=m+w,h=M;y>h;++h,d+=T){var R=k[d+c],E=k[d+A];if(R<=x&&x<=E)if(g===h)g+=1,_+=T;else{for(var D=0;T>D;++D){var N=k[d+D];k[d+D]=k[_],k[_++]=N}var I=S[h];S[h]=S[g],S[g++]=I}}return g}function p(m,w,M,y,k,S,x){for(var T=2*m,d=T*M,_=d,g=M,c=w,A=m+w,h=M;y>h;++h,d+=T){var R=k[d+c],E=k[d+A];if(RD;++D){var N=k[d+D];k[d+D]=k[_],k[_++]=N}var I=S[h];S[h]=S[g],S[g++]=I}}return g}function b(m,w,M,y,k,S,x,T){for(var d=2*m,_=d*M,g=_,c=M,A=w,h=m+w,R=M;y>R;++R,_+=d){var E=k[_+A],D=k[_+h];if(!(E>=x)&&!(T>=D))if(c===R)c+=1,g+=d;else{for(var N=0;d>N;++N){var I=k[_+N];k[_+N]=k[g],k[g++]=I}var F=S[R];S[R]=S[c],S[c++]=F}}return c}},4192:function(a){"use strict";a.exports=i;var o=32;function i(w,M){M<=4*o?l(0,M-1,w):m(0,M-1,w)}function l(w,M,y){for(var k=2*(w+1),S=w+1;S<=M;++S){for(var x=y[k++],T=y[k++],d=S,_=k-2;d-- >w;){var g=y[_-2],c=y[_-1];if(gy[M+1]:!0}function b(w,M,y,k){w*=2;var S=k[w];return S>1,d=T-k,_=T+k,g=S,c=d,A=T,h=_,R=x,E=w+1,D=M-1,N=0;p(g,c,y)&&(N=g,g=c,c=N),p(h,R,y)&&(N=h,h=R,R=N),p(g,A,y)&&(N=g,g=A,A=N),p(c,A,y)&&(N=c,c=A,A=N),p(g,h,y)&&(N=g,g=h,h=N),p(A,h,y)&&(N=A,A=h,h=N),p(c,R,y)&&(N=c,c=R,R=N),p(c,A,y)&&(N=c,c=A,A=N),p(h,R,y)&&(N=h,h=R,R=N);for(var I=y[2*c],F=y[2*c+1],L=y[2*h],P=y[2*h+1],O=2*g,U=2*A,X=2*R,$=2*S,j=2*T,Y=2*x,q=0;q<2;++q){var J=y[O+q],ae=y[U+q],Q=y[X+q];y[$+q]=J,y[j+q]=ae,y[Y+q]=Q}s(d,w,y),s(_,M,y);for(var oe=E;oe<=D;++oe)if(b(oe,I,F,y))oe!==E&&u(oe,E,y),++E;else if(!b(oe,L,P,y))for(;;)if(b(D,L,P,y)){b(D,I,F,y)?(f(oe,E,D,y),++E,--D):(u(oe,D,y),--D);break}else{if(--D>>1;s(k,ae);for(var Q=0,oe=0,j=0;j=f)ee=ee-f|0,x(m,w,oe--,ee);else if(ee>=0)x(p,b,Q--,ee);else if(ee<=-f){ee=-ee-f|0;for(var V=0;V>>1;s(k,ae);for(var Q=0,oe=0,ee=0,j=0;j>1===k[2*j+3]>>1&&(re=2,j+=1),V<0){for(var H=-(V>>1)-1,te=0;te>1)-1;re===0?x(p,b,Q--,H):re===1?x(m,w,oe--,H):re===2&&x(M,y,ee--,H)}}}function g(A,h,R,E,D,N,I,F,L,P,O,U){var X=0,$=2*A,j=h,Y=h+A,q=1,J=1;E?J=f:q=f;for(var ae=D;ae>>1;s(k,V);for(var re=0,ae=0;ae=f?(te=!E,Q-=f):(te=!!E,Q-=1),te)T(p,b,re++,Q);else{var ue=U[Q],he=$*Q,Ce=O[he+h+1],Se=O[he+h+1+A];e:for(var ve=0;ve>>1;s(k,Q);for(var oe=0,Y=0;Y=f)p[oe++]=q-f;else{q-=1;var V=O[q],re=X*q,H=P[re+h+1],te=P[re+h+1+A];e:for(var ue=0;ue=0;--ue)if(p[ue]===q){for(var ve=ue+1;ve0;){for(var S=b.pop(),M=b.pop(),x=-1,T=-1,y=w[M],_=1;_=0||(p.flip(M,S),s(v,p,b,x,M,T),s(v,p,b,M,T,x),s(v,p,b,T,S,x),s(v,p,b,S,x,T))}}},5023:function(a,o,i){"use strict";var l=i(2478);a.exports=b;function u(m,w,M,y,k,S,x){this.cells=m,this.neighbor=w,this.flags=y,this.constraint=M,this.active=k,this.next=S,this.boundary=x}var s=u.prototype;function f(m,w){return m[0]-w[0]||m[1]-w[1]||m[2]-w[2]}s.locate=function(){var m=[0,0,0];return function(w,M,y){var k=w,S=M,x=y;return M0||x.length>0;){for(;S.length>0;){var c=S.pop();if(T[c]!==-k){T[c]=k;for(var A=d[c],h=0;h<3;++h){var R=g[3*c+h];R>=0&&T[R]===0&&(_[3*c+h]?x.push(R):(S.push(R),T[R]=k))}}}var E=x;x=S,S=E,x.length=0,k=-k}var D=p(d,T,w);return M?D.concat(y.boundary):D}},8902:function(a,o,i){"use strict";var l=i(2478),u=i(3250)[3],s=0,f=1,v=2;a.exports=x;function p(T,d,_,g,c){this.a=T,this.b=d,this.idx=_,this.lowerIds=g,this.upperIds=c}function b(T,d,_,g){this.a=T,this.b=d,this.type=_,this.idx=g}function m(T,d){var _=T.a[0]-d.a[0]||T.a[1]-d.a[1]||T.type-d.type;return _||T.type!==s&&(_=u(T.a,T.b,d.b),_)?_:T.idx-d.idx}function w(T,d){return u(T.a,T.b,d)}function M(T,d,_,g,c){for(var A=l.lt(d,g,w),h=l.gt(d,g,w),R=A;R1&&u(_[D[I-2]],_[D[I-1]],g)>0;)T.push([D[I-1],D[I-2],c]),I-=1;D.length=I,D.push(c);for(var N=E.upperIds,I=N.length;I>1&&u(_[N[I-2]],_[N[I-1]],g)<0;)T.push([N[I-2],N[I-1],c]),I-=1;N.length=I,N.push(c)}}function y(T,d){var _;return T.a[0]E[0]&&c.push(new b(E,R,v,A),new b(R,E,f,A))}c.sort(m);for(var D=c[0].a[0]-(1+Math.abs(c[0].a[0]))*Math.pow(2,-52),N=[new p([D,1],[D,0],-1,[],[],[],[])],I=[],A=0,F=c.length;A=0}}(),s.removeTriangle=function(p,b,m){var w=this.stars;f(w[p],b,m),f(w[b],m,p),f(w[m],p,b)},s.addTriangle=function(p,b,m){var w=this.stars;w[p].push(b,m),w[b].push(m,p),w[m].push(p,b)},s.opposite=function(p,b){for(var m=this.stars[b],w=1,M=m.length;w=0;--L){var J=I[L];P=J[0];var ae=D[P],Q=ae[0],oe=ae[1],ee=E[Q],V=E[oe];if((ee[0]-V[0]||ee[1]-V[1])<0){var re=Q;Q=oe,oe=re}ae[0]=Q;var H=ae[1]=J[1],te;for(F&&(te=ae[2]);L>0&&I[L-1][0]===P;){var J=I[--L],ue=J[1];F?D.push([H,ue,te]):D.push([H,ue]),H=ue}F?D.push([H,oe,te]):D.push([H,oe])}return O}function d(E,D,N){for(var I=D.length,F=new l(I),L=[],P=0;PD[2]?1:0)}function c(E,D,N){if(E.length!==0){if(D)for(var I=0;I0||P.length>0}function R(E,D,N){var I;if(N){I=D;for(var F=new Array(D.length),L=0;LT+1)throw new Error(S+" map requires nshades to be at least size "+k.length);Array.isArray(b.alpha)?b.alpha.length!==2?d=[1,1]:d=b.alpha.slice():typeof b.alpha=="number"?d=[b.alpha,b.alpha]:d=[1,1],m=k.map(function(R){return Math.round(R.index*T)}),d[0]=Math.min(Math.max(d[0],0),1),d[1]=Math.min(Math.max(d[1],0),1);var g=k.map(function(R,E){var D=k[E].index,N=k[E].rgb.slice();return N.length===4&&N[3]>=0&&N[3]<=1||(N[3]=d[0]+(d[1]-d[0])*D),N}),c=[];for(_=0;_=0}function b(m,w,M,y){var k=l(w,M,y);if(k===0){var S=u(l(m,w,M)),x=u(l(m,w,y));if(S===x){if(S===0){var T=p(m,w,M),d=p(m,w,y);return T===d?0:T?1:-1}return 0}else{if(x===0)return S>0||p(m,w,y)?-1:1;if(S===0)return x>0||p(m,w,M)?1:-1}return u(x-S)}var _=l(m,w,M);if(_>0)return k>0&&l(m,w,y)>0?1:-1;if(_<0)return k>0||l(m,w,y)>0?1:-1;var g=l(m,w,y);return g>0||p(m,w,M)?1:-1}},8572:function(a){"use strict";a.exports=function(i){return i<0?-1:i>0?1:0}},8507:function(a){a.exports=l;var o=Math.min;function i(u,s){return u-s}function l(u,s){var f=u.length,v=u.length-s.length;if(v)return v;switch(f){case 0:return 0;case 1:return u[0]-s[0];case 2:return u[0]+u[1]-s[0]-s[1]||o(u[0],u[1])-o(s[0],s[1]);case 3:var p=u[0]+u[1],b=s[0]+s[1];if(v=p+u[2]-(b+s[2]),v)return v;var m=o(u[0],u[1]),w=o(s[0],s[1]);return o(m,u[2])-o(w,s[2])||o(m+u[2],p)-o(w+s[2],b);case 4:var M=u[0],y=u[1],k=u[2],S=u[3],x=s[0],T=s[1],d=s[2],_=s[3];return M+y+k+S-(x+T+d+_)||o(M,y,k,S)-o(x,T,d,_,x)||o(M+y,M+k,M+S,y+k,y+S,k+S)-o(x+T,x+d,x+_,T+d,T+_,d+_)||o(M+y+k,M+y+S,M+k+S,y+k+S)-o(x+T+d,x+T+_,x+d+_,T+d+_);default:for(var g=u.slice().sort(i),c=s.slice().sort(i),A=0;Ai[u][0]&&(u=s);return lu?[[u],[l]]:[[l]]}},4750:function(a,o,i){"use strict";a.exports=u;var l=i(3090);function u(s){var f=l(s),v=f.length;if(v<=2)return[];for(var p=new Array(v),b=f[v-1],m=0;m=b[x]&&(S+=1);y[k]=S}}return p}function v(p,b){try{return l(p,!0)}catch(y){var m=u(p);if(m.length<=b)return[];var w=s(p,m),M=l(w,!0);return f(M,m)}}},4769:function(a){"use strict";function o(l,u,s,f,v,p){var b=6*v*v-6*v,m=3*v*v-4*v+1,w=-6*v*v+6*v,M=3*v*v-2*v;if(l.length){p||(p=new Array(l.length));for(var y=l.length-1;y>=0;--y)p[y]=b*l[y]+m*u[y]+w*s[y]+M*f[y];return p}return b*l+m*u+w*s[y]+M*f}function i(l,u,s,f,v,p){var b=v-1,m=v*v,w=b*b,M=(1+2*v)*w,y=v*w,k=m*(3-2*v),S=m*b;if(l.length){p||(p=new Array(l.length));for(var x=l.length-1;x>=0;--x)p[x]=M*l[x]+y*u[x]+k*s[x]+S*f[x];return p}return M*l+y*u+k*s+S*f}a.exports=i,a.exports.derivative=o},7642:function(a,o,i){"use strict";var l=i(8954),u=i(1682);a.exports=p;function s(b,m){this.point=b,this.index=m}function f(b,m){for(var w=b.point,M=m.point,y=w.length,k=0;k=2)return!1;N[F]=L}return!0}):D=D.filter(function(N){for(var I=0;I<=M;++I){var F=A[N[I]];if(F<0)return!1;N[I]=F}return!0}),M&1)for(var S=0;S>>31},a.exports.exponent=function(k){var S=a.exports.hi(k);return(S<<1>>>21)-1023},a.exports.fraction=function(k){var S=a.exports.lo(k),x=a.exports.hi(k),T=x&(1<<20)-1;return x&2146435072&&(T+=1048576),[S,T]},a.exports.denormalized=function(k){var S=a.exports.hi(k);return!(S&2146435072)}},1338:function(a){"use strict";function o(u,s,f){var v=u[f]|0;if(v<=0)return[];var p=new Array(v),b;if(f===u.length-1)for(b=0;b0)return i(u|0,s);break;case"object":if(typeof u.length=="number")return o(u,s,0);break}return[]}a.exports=l},3134:function(a,o,i){"use strict";a.exports=u;var l=i(1682);function u(s,f){var v=s.length;if(typeof f!="number"){f=0;for(var p=0;p=M-1)for(var _=S.length-1,c=m-w[M-1],g=0;g=M-1)for(var d=S.length-1,_=m-w[M-1],g=0;g=0;--M)if(m[--w])return!1;return!0},v.jump=function(m){var w=this.lastT(),M=this.dimension;if(!(m0;--g)y.push(s(T[g-1],d[g-1],arguments[g])),k.push(0)}},v.push=function(m){var w=this.lastT(),M=this.dimension;if(!(m1e-6?1/x:0;this._time.push(m);for(var c=M;c>0;--c){var A=s(d[c-1],_[c-1],arguments[c]);y.push(A),k.push((A-y[S++])*g)}}},v.set=function(m){var w=this.dimension;if(!(m0;--T)M.push(s(S[T-1],x[T-1],arguments[T])),y.push(0)}},v.move=function(m){var w=this.lastT(),M=this.dimension;if(!(m<=w||arguments.length!==M+1)){var y=this._state,k=this._velocity,S=y.length-this.dimension,x=this.bounds,T=x[0],d=x[1],_=m-w,g=_>1e-6?1/_:0;this._time.push(m);for(var c=M;c>0;--c){var A=arguments[c];y.push(s(T[c-1],d[c-1],y[S++]+A)),k.push(A*g)}}},v.idle=function(m){var w=this.lastT();if(!(m=0;--g)y.push(s(T[g],d[g],y[S]+_*k[S])),k.push(0),S+=1}};function p(m){for(var w=new Array(m),M=0;M=0;--E){var c=A[E];h[E]<=0?A[E]=new l(c._color,c.key,c.value,A[E+1],c.right,c._count+1):A[E]=new l(c._color,c.key,c.value,c.left,A[E+1],c._count+1)}for(var E=A.length-1;E>1;--E){var D=A[E-1],c=A[E];if(D._color===i||c._color===i)break;var N=A[E-2];if(N.left===D)if(D.left===c){var I=N.right;if(I&&I._color===o)D._color=i,N.right=s(i,I),N._color=o,E-=1;else{if(N._color=o,N.left=D.right,D._color=i,D.right=N,A[E-2]=D,A[E-1]=c,f(N),f(D),E>=3){var F=A[E-3];F.left===N?F.left=D:F.right=D}break}}else{var I=N.right;if(I&&I._color===o)D._color=i,N.right=s(i,I),N._color=o,E-=1;else{if(D.right=c.left,N._color=o,N.left=c.right,c._color=i,c.left=D,c.right=N,A[E-2]=c,A[E-1]=D,f(N),f(D),f(c),E>=3){var F=A[E-3];F.left===N?F.left=c:F.right=c}break}}else if(D.right===c){var I=N.left;if(I&&I._color===o)D._color=i,N.left=s(i,I),N._color=o,E-=1;else{if(N._color=o,N.right=D.left,D._color=i,D.left=N,A[E-2]=D,A[E-1]=c,f(N),f(D),E>=3){var F=A[E-3];F.right===N?F.right=D:F.left=D}break}}else{var I=N.left;if(I&&I._color===o)D._color=i,N.left=s(i,I),N._color=o,E-=1;else{if(D.left=c.right,N._color=o,N.right=c.left,c._color=i,c.right=D,c.left=N,A[E-2]=c,A[E-1]=D,f(N),f(D),f(c),E>=3){var F=A[E-3];F.right===N?F.right=c:F.left=c}break}}}return A[0]._color=i,new v(g,A[0])};function b(d,_){if(_.left){var g=b(d,_.left);if(g)return g}var g=d(_.key,_.value);if(g)return g;if(_.right)return b(d,_.right)}function m(d,_,g,c){var A=_(d,c.key);if(A<=0){if(c.left){var h=m(d,_,g,c.left);if(h)return h}var h=g(c.key,c.value);if(h)return h}if(c.right)return m(d,_,g,c.right)}function w(d,_,g,c,A){var h=g(d,A.key),R=g(_,A.key),E;if(h<=0&&(A.left&&(E=w(d,_,g,c,A.left),E)||R>0&&(E=c(A.key,A.value),E)))return E;if(R>0&&A.right)return w(d,_,g,c,A.right)}p.forEach=function(_,g,c){if(this.root)switch(arguments.length){case 1:return b(_,this.root);case 2:return m(g,this._compare,_,this.root);case 3:return this._compare(g,c)>=0?void 0:w(g,c,this._compare,_,this.root)}},Object.defineProperty(p,"begin",{get:function(){for(var d=[],_=this.root;_;)d.push(_),_=_.left;return new M(this,d)}}),Object.defineProperty(p,"end",{get:function(){for(var d=[],_=this.root;_;)d.push(_),_=_.right;return new M(this,d)}}),p.at=function(d){if(d<0)return new M(this,[]);for(var _=this.root,g=[];;){if(g.push(_),_.left){if(d<_.left._count){_=_.left;continue}d-=_.left._count}if(!d)return new M(this,g);if(d-=1,_.right){if(d>=_.right._count)break;_=_.right}else break}return new M(this,[])},p.ge=function(d){for(var _=this._compare,g=this.root,c=[],A=0;g;){var h=_(d,g.key);c.push(g),h<=0&&(A=c.length),h<=0?g=g.left:g=g.right}return c.length=A,new M(this,c)},p.gt=function(d){for(var _=this._compare,g=this.root,c=[],A=0;g;){var h=_(d,g.key);c.push(g),h<0&&(A=c.length),h<0?g=g.left:g=g.right}return c.length=A,new M(this,c)},p.lt=function(d){for(var _=this._compare,g=this.root,c=[],A=0;g;){var h=_(d,g.key);c.push(g),h>0&&(A=c.length),h<=0?g=g.left:g=g.right}return c.length=A,new M(this,c)},p.le=function(d){for(var _=this._compare,g=this.root,c=[],A=0;g;){var h=_(d,g.key);c.push(g),h>=0&&(A=c.length),h<0?g=g.left:g=g.right}return c.length=A,new M(this,c)},p.find=function(d){for(var _=this._compare,g=this.root,c=[];g;){var A=_(d,g.key);if(c.push(g),A===0)return new M(this,c);A<=0?g=g.left:g=g.right}return new M(this,[])},p.remove=function(d){var _=this.find(d);return _?_.remove():this},p.get=function(d){for(var _=this._compare,g=this.root;g;){var c=_(d,g.key);if(c===0)return g.value;c<=0?g=g.left:g=g.right}};function M(d,_){this.tree=d,this._stack=_}var y=M.prototype;Object.defineProperty(y,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(y,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),y.clone=function(){return new M(this.tree,this._stack.slice())};function k(d,_){d.key=_.key,d.value=_.value,d.left=_.left,d.right=_.right,d._color=_._color,d._count=_._count}function S(d){for(var _,g,c,A,h=d.length-1;h>=0;--h){if(_=d[h],h===0){_._color=i;return}if(g=d[h-1],g.left===_){if(c=g.right,c.right&&c.right._color===o){if(c=g.right=u(c),A=c.right=u(c.right),g.right=c.left,c.left=g,c.right=A,c._color=g._color,_._color=i,g._color=i,A._color=i,f(g),f(c),h>1){var R=d[h-2];R.left===g?R.left=c:R.right=c}d[h-1]=c;return}else if(c.left&&c.left._color===o){if(c=g.right=u(c),A=c.left=u(c.left),g.right=A.left,c.left=A.right,A.left=g,A.right=c,A._color=g._color,g._color=i,c._color=i,_._color=i,f(g),f(c),f(A),h>1){var R=d[h-2];R.left===g?R.left=A:R.right=A}d[h-1]=A;return}if(c._color===i)if(g._color===o){g._color=i,g.right=s(o,c);return}else{g.right=s(o,c);continue}else{if(c=u(c),g.right=c.left,c.left=g,c._color=g._color,g._color=o,f(g),f(c),h>1){var R=d[h-2];R.left===g?R.left=c:R.right=c}d[h-1]=c,d[h]=g,h+11){var R=d[h-2];R.right===g?R.right=c:R.left=c}d[h-1]=c;return}else if(c.right&&c.right._color===o){if(c=g.left=u(c),A=c.right=u(c.right),g.left=A.right,c.right=A.left,A.right=g,A.left=c,A._color=g._color,g._color=i,c._color=i,_._color=i,f(g),f(c),f(A),h>1){var R=d[h-2];R.right===g?R.right=A:R.left=A}d[h-1]=A;return}if(c._color===i)if(g._color===o){g._color=i,g.left=s(o,c);return}else{g.left=s(o,c);continue}else{if(c=u(c),g.left=c.right,c.right=g,c._color=g._color,g._color=o,f(g),f(c),h>1){var R=d[h-2];R.right===g?R.right=c:R.left=c}d[h-1]=c,d[h]=g,h+1=0;--c){var g=d[c];g.left===d[c+1]?_[c]=new l(g._color,g.key,g.value,_[c+1],g.right,g._count):_[c]=new l(g._color,g.key,g.value,g.left,_[c+1],g._count)}if(g=_[_.length-1],g.left&&g.right){var A=_.length;for(g=g.left;g.right;)_.push(g),g=g.right;var h=_[A-1];_.push(new l(g._color,h.key,h.value,g.left,g.right,g._count)),_[A-1].key=g.key,_[A-1].value=g.value;for(var c=_.length-2;c>=A;--c)g=_[c],_[c]=new l(g._color,g.key,g.value,g.left,_[c+1],g._count);_[A-1].left=_[A]}if(g=_[_.length-1],g._color===o){var R=_[_.length-2];R.left===g?R.left=null:R.right===g&&(R.right=null),_.pop();for(var c=0;c<_.length;++c)_[c]._count--;return new v(this.tree._compare,_[0])}else if(g.left||g.right){g.left?k(g,g.left):g.right&&k(g,g.right),g._color=i;for(var c=0;c<_.length-1;++c)_[c]._count--;return new v(this.tree._compare,_[0])}else{if(_.length===1)return new v(this.tree._compare,null);for(var c=0;c<_.length;++c)_[c]._count--;var E=_[_.length-2];S(_),E.left===g?E.left=null:E.right=null}return new v(this.tree._compare,_[0])},Object.defineProperty(y,"key",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(y,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(y,"index",{get:function(){var d=0,_=this._stack;if(_.length===0){var g=this.tree.root;return g?g._count:0}else _[_.length-1].left&&(d=_[_.length-1].left._count);for(var c=_.length-2;c>=0;--c)_[c+1]===_[c].right&&(++d,_[c].left&&(d+=_[c].left._count));return d},enumerable:!0}),y.next=function(){var d=this._stack;if(d.length!==0){var _=d[d.length-1];if(_.right)for(_=_.right;_;)d.push(_),_=_.left;else for(d.pop();d.length>0&&d[d.length-1].right===_;)_=d[d.length-1],d.pop()}},Object.defineProperty(y,"hasNext",{get:function(){var d=this._stack;if(d.length===0)return!1;if(d[d.length-1].right)return!0;for(var _=d.length-1;_>0;--_)if(d[_-1].left===d[_])return!0;return!1}}),y.update=function(d){var _=this._stack;if(_.length===0)throw new Error("Can't update empty node!");var g=new Array(_.length),c=_[_.length-1];g[g.length-1]=new l(c._color,c.key,d,c.left,c.right,c._count);for(var A=_.length-2;A>=0;--A)c=_[A],c.left===_[A+1]?g[A]=new l(c._color,c.key,c.value,g[A+1],c.right,c._count):g[A]=new l(c._color,c.key,c.value,c.left,g[A+1],c._count);return new v(this.tree._compare,g[0])},y.prev=function(){var d=this._stack;if(d.length!==0){var _=d[d.length-1];if(_.left)for(_=_.left;_;)d.push(_),_=_.right;else for(d.pop();d.length>0&&d[d.length-1].left===_;)_=d[d.length-1],d.pop()}},Object.defineProperty(y,"hasPrev",{get:function(){var d=this._stack;if(d.length===0)return!1;if(d[d.length-1].left)return!0;for(var _=d.length-1;_>0;--_)if(d[_-1].right===d[_])return!0;return!1}});function x(d,_){return d<_?-1:d>_?1:0}function T(d){return new v(d||x,null)}},3837:function(a,o,i){"use strict";a.exports=E;var l=i(4935),u=i(501),s=i(5304),f=i(6429),v=i(6444),p=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),b=ArrayBuffer,m=DataView;function w(D){return b.isView(D)&&!(D instanceof m)}function M(D){return Array.isArray(D)||w(D)}function y(D,N){return D[0]=N[0],D[1]=N[1],D[2]=N[2],D}function k(D){this.gl=D,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=s(D)}var S=k.prototype;S.update=function(D){D=D||{};function N(Q,oe,ee){if(ee in D){var V=D[ee],re=this[ee],H;(Q?M(V)&&M(V[0]):M(V))?this[ee]=H=[oe(V[0]),oe(V[1]),oe(V[2])]:this[ee]=H=[oe(V),oe(V),oe(V)];for(var te=0;te<3;++te)if(H[te]!==re[te])return!0}return!1}var I=N.bind(this,!1,Number),F=N.bind(this,!1,Boolean),L=N.bind(this,!1,String),P=N.bind(this,!0,function(Q){if(M(Q)){if(Q.length===3)return[+Q[0],+Q[1],+Q[2],1];if(Q.length===4)return[+Q[0],+Q[1],+Q[2],+Q[3]]}return[0,0,0,1]}),O,U=!1,X=!1;if("bounds"in D)for(var $=D.bounds,j=0;j<2;++j)for(var Y=0;Y<3;++Y)$[j][Y]!==this.bounds[j][Y]&&(X=!0),this.bounds[j][Y]=$[j][Y];if("ticks"in D){O=D.ticks,U=!0,this.autoTicks=!1;for(var j=0;j<3;++j)this.tickSpacing[j]=0}else I("tickSpacing")&&(this.autoTicks=!0,X=!0);if(this._firstInit&&("ticks"in D||"tickSpacing"in D||(this.autoTicks=!0),X=!0,U=!0,this._firstInit=!1),X&&this.autoTicks&&(O=v.create(this.bounds,this.tickSpacing),U=!0),U){for(var j=0;j<3;++j)O[j].sort(function(oe,ee){return oe.x-ee.x});v.equal(O,this.ticks)?U=!1:this.ticks=O}F("tickEnable"),L("tickFont")&&(U=!0),L("tickFontStyle")&&(U=!0),L("tickFontWeight")&&(U=!0),L("tickFontVariant")&&(U=!0),I("tickSize"),I("tickAngle"),I("tickPad"),P("tickColor");var q=L("labels");L("labelFont")&&(q=!0),L("labelFontStyle")&&(q=!0),L("labelFontWeight")&&(q=!0),L("labelFontVariant")&&(q=!0),F("labelEnable"),I("labelSize"),I("labelPad"),P("labelColor"),F("lineEnable"),F("lineMirror"),I("lineWidth"),P("lineColor"),F("lineTickEnable"),F("lineTickMirror"),I("lineTickLength"),I("lineTickWidth"),P("lineTickColor"),F("gridEnable"),I("gridWidth"),P("gridColor"),F("zeroEnable"),P("zeroLineColor"),I("zeroLineWidth"),F("backgroundEnable"),P("backgroundColor");var J=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],ae=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(q||U)&&this._text.update(this.bounds,this.labels,J,this.ticks,ae):this._text=l(this.gl,this.bounds,this.labels,J,this.ticks,ae),this._lines&&U&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=u(this.gl,this.bounds,this.ticks))};function x(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var T=[new x,new x,new x];function d(D,N,I,F,L){for(var P=D.primalOffset,O=D.primalMinor,U=D.mirrorOffset,X=D.mirrorMinor,$=F[N],j=0;j<3;++j)if(N!==j){var Y=P,q=U,J=O,ae=X;$&1<0?(J[j]=-1,ae[j]=0):(J[j]=0,ae[j]=1)}}var _=[0,0,0],g={model:p,view:p,projection:p,_ortho:!1};S.isOpaque=function(){return!0},S.isTransparent=function(){return!1},S.drawTransparent=function(D){};var c=0,A=[0,0,0],h=[0,0,0],R=[0,0,0];S.draw=function(D){D=D||g;for(var ee=this.gl,N=D.model||p,I=D.view||p,F=D.projection||p,L=this.bounds,P=D._ortho||!1,O=f(N,I,F,L,P),U=O.cubeEdges,X=O.axis,$=I[12],j=I[13],Y=I[14],q=I[15],J=P?2:1,ae=J*this.pixelRatio*(F[3]*$+F[7]*j+F[11]*Y+F[15]*q)/ee.drawingBufferHeight,Q=0;Q<3;++Q)this.lastCubeProps.cubeEdges[Q]=U[Q],this.lastCubeProps.axis[Q]=X[Q];for(var oe=T,Q=0;Q<3;++Q)d(T[Q],Q,this.bounds,U,X);for(var ee=this.gl,V=_,Q=0;Q<3;++Q)this.backgroundEnable[Q]?V[Q]=X[Q]:V[Q]=0;this._background.draw(N,I,F,L,V,this.backgroundColor),this._lines.bind(N,I,F,this);for(var Q=0;Q<3;++Q){var re=[0,0,0];X[Q]>0?re[Q]=L[1][Q]:re[Q]=L[0][Q];for(var H=0;H<2;++H){var te=(Q+1+H)%3,ue=(Q+1+(H^1))%3;this.gridEnable[te]&&this._lines.drawGrid(te,ue,this.bounds,re,this.gridColor[te],this.gridWidth[te]*this.pixelRatio)}for(var H=0;H<2;++H){var te=(Q+1+H)%3,ue=(Q+1+(H^1))%3;this.zeroEnable[ue]&&Math.min(L[0][ue],L[1][ue])<=0&&Math.max(L[0][ue],L[1][ue])>=0&&this._lines.drawZero(te,ue,this.bounds,re,this.zeroLineColor[ue],this.zeroLineWidth[ue]*this.pixelRatio)}}for(var Q=0;Q<3;++Q){this.lineEnable[Q]&&this._lines.drawAxisLine(Q,this.bounds,oe[Q].primalOffset,this.lineColor[Q],this.lineWidth[Q]*this.pixelRatio),this.lineMirror[Q]&&this._lines.drawAxisLine(Q,this.bounds,oe[Q].mirrorOffset,this.lineColor[Q],this.lineWidth[Q]*this.pixelRatio);for(var he=y(A,oe[Q].primalMinor),Ce=y(h,oe[Q].mirrorMinor),Se=this.lineTickLength,H=0;H<3;++H){var ve=ae/N[5*H];he[H]*=Se[H]*ve,Ce[H]*=Se[H]*ve}this.lineTickEnable[Q]&&this._lines.drawAxisTicks(Q,oe[Q].primalOffset,he,this.lineTickColor[Q],this.lineTickWidth[Q]*this.pixelRatio),this.lineTickMirror[Q]&&this._lines.drawAxisTicks(Q,oe[Q].mirrorOffset,Ce,this.lineTickColor[Q],this.lineTickWidth[Q]*this.pixelRatio)}this._lines.unbind(),this._text.bind(N,I,F,this.pixelRatio);var Te,ke=.5,Fe,Ee;function ze(Le){Ee=[0,0,0],Ee[Le]=1}function Be(Le,me,de){var be=(Le+1)%3,Ae=(Le+2)%3,qe=me[be],Pe=me[Ae],Ze=de[be],Ye=de[Ae];if(qe>0&&Ye>0){ze(be);return}else if(qe>0&&Ye<0){ze(be);return}else if(qe<0&&Ye>0){ze(be);return}else if(qe<0&&Ye<0){ze(be);return}else if(Pe>0&&Ze>0){ze(Ae);return}else if(Pe>0&&Ze<0){ze(Ae);return}else if(Pe<0&&Ze>0){ze(Ae);return}else if(Pe<0&&Ze<0){ze(Ae);return}}for(var Q=0;Q<3;++Q){for(var ge=oe[Q].primalMinor,Me=oe[Q].mirrorMinor,ce=y(R,oe[Q].primalOffset),H=0;H<3;++H)this.lineTickEnable[Q]&&(ce[H]+=ae*ge[H]*Math.max(this.lineTickLength[H],0)/N[5*H]);var ye=[0,0,0];if(ye[Q]=1,this.tickEnable[Q]){this.tickAngle[Q]===-3600?(this.tickAngle[Q]=0,this.tickAlign[Q]="auto"):this.tickAlign[Q]=-1,Fe=1,Te=[this.tickAlign[Q],ke,Fe],Te[0]==="auto"?Te[0]=c:Te[0]=parseInt(""+Te[0]),Ee=[0,0,0],Be(Q,ge,Me);for(var H=0;H<3;++H)ce[H]+=ae*ge[H]*this.tickPad[H]/N[5*H];this._text.drawTicks(Q,this.tickSize[Q],this.tickAngle[Q],ce,this.tickColor[Q],ye,Ee,Te)}if(this.labelEnable[Q]){Fe=0,Ee=[0,0,0],this.labels[Q].length>4&&(ze(Q),Fe=1),Te=[this.labelAlign[Q],ke,Fe],Te[0]==="auto"?Te[0]=c:Te[0]=parseInt(""+Te[0]);for(var H=0;H<3;++H)ce[H]+=ae*ge[H]*this.labelPad[H]/N[5*H];ce[Q]+=.5*(L[0][Q]+L[1][Q]),this._text.drawLabel(Q,this.labelSize[Q],this.labelAngle[Q],ce,this.labelColor[Q],[0,0,0],Ee,Te)}}this._text.unbind()},S.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function E(D,N){var I=new k(D);return I.update(N),I}},5304:function(a,o,i){"use strict";a.exports=p;var l=i(2762),u=i(8116),s=i(1879).bg;function f(b,m,w,M){this.gl=b,this.buffer=m,this.vao=w,this.shader=M}var v=f.prototype;v.draw=function(b,m,w,M,y,k){for(var S=!1,x=0;x<3;++x)S=S||y[x];if(S){var T=this.gl;T.enable(T.POLYGON_OFFSET_FILL),T.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:b,view:m,projection:w,bounds:M,enable:y,colors:k},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),T.disable(T.POLYGON_OFFSET_FILL)}},v.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function p(b){for(var m=[],w=[],M=0,y=0;y<3;++y)for(var k=(y+1)%3,S=(y+2)%3,x=[0,0,0],T=[0,0,0],d=-1;d<=1;d+=2){w.push(M,M+2,M+1,M+1,M+2,M+3),x[y]=d,T[y]=d;for(var _=-1;_<=1;_+=2){x[k]=_;for(var g=-1;g<=1;g+=2)x[S]=g,m.push(x[0],x[1],x[2],T[0],T[1],T[2]),M+=1}var c=k;k=S,S=c}var A=l(b,new Float32Array(m)),h=l(b,new Uint16Array(w),b.ELEMENT_ARRAY_BUFFER),R=u(b,[{buffer:A,type:b.FLOAT,size:3,offset:0,stride:24},{buffer:A,type:b.FLOAT,size:3,offset:12,stride:24}],h),E=s(b);return E.attributes.position.location=0,E.attributes.normal.location=1,new f(b,A,R,E)}},6429:function(a,o,i){"use strict";a.exports=d;var l=i(8828),u=i(6760),s=i(5202),f=i(3250),v=new Array(16),p=new Array(8),b=new Array(8),m=new Array(3),w=[0,0,0];(function(){for(var _=0;_<8;++_)p[_]=[1,1,1,1],b[_]=[1,1,1]})();function M(_,g,c){for(var A=0;A<4;++A){_[A]=c[12+A];for(var h=0;h<3;++h)_[A]+=g[h]*c[4*h+A]}}var y=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function k(_){for(var g=0;gX&&(I|=1<X){I|=1<b[E][1])&&(oe=E);for(var ee=-1,E=0;E<3;++E){var V=oe^1<b[re][0]&&(re=V)}}var H=S;H[0]=H[1]=H[2]=0,H[l.log2(ee^oe)]=oe&ee,H[l.log2(oe^re)]=oe&re;var te=re^7;te===I||te===Q?(te=ee^7,H[l.log2(re^te)]=te&re):H[l.log2(ee^te)]=teⅇfor(var ue=x,he=I,P=0;P<3;++P)he&1<{var ib=Object.defineProperty;var kB=Object.getOwnPropertyDescriptor;var SB=Object.getOwnPropertyNames;var CB=Object.prototype.hasOwnProperty;var ob=(e,r)=>()=>(e&&(r=e(e=0)),r);var pe=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var EB=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of SB(r))!CB.call(e,a)&&a!==t&&ib(e,a,{get:()=>r[a],enumerable:!(n=kB(r,a))||n.enumerable});return e};var LB=e=>EB(ib({},"__esModule",{value:!0}),e);var mc=pe(lb=>{"use strict";lb.version="3.1.0-rc.1"});var ub=pe((sb,xc)=>{(function(r,t,n){t[r]=t[r]||n(),typeof xc!="undefined"&&xc.exports&&(xc.exports=t[r])})("Promise",typeof window!="undefined"?window:sb,function(){"use strict";var r,t,n,a=Object.prototype.toString,o=typeof setImmediate!="undefined"?function(k){return setImmediate(k)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(k,S,x,T){return Object.defineProperty(k,S,{value:x,writable:!0,configurable:T!==!1})}}catch(y){r=function(S,x,T){return S[x]=T,S}}n=function(){var k,S,x;function T(d,_){this.fn=d,this.self=_,this.next=void 0}return{add:function(_,g){x=new T(_,g),S?S.next=x:k=x,S=x,x=void 0},drain:function(){var _=k;for(k=S=t=void 0;_;)_.fn.call(_.self),_=_.next}}}();function i(y,k){n.add(y,k),t||(t=o(n.drain))}function l(y){var k,S=typeof y;return y!=null&&(S=="object"||S=="function")&&(k=y.then),typeof k=="function"?k:!1}function u(){for(var y=0;y0&&i(u,S))}catch(x){v.call(new b(S),x)}}}function v(y){var k=this;k.triggered||(k.triggered=!0,k.def&&(k=k.def),k.msg=y,k.state=2,k.chain.length>0&&i(u,k))}function p(y,k,S,x){for(var T=0;T{(function(){var e={version:"3.8.2"},r=[].slice,t=function(C){return r.call(C)},n=self.document;function a(C){return C&&(C.ownerDocument||C.document||C).documentElement}function o(C){return C&&(C.ownerDocument&&C.ownerDocument.defaultView||C.document&&C||C.defaultView)}if(n)try{t(n.documentElement.childNodes)[0].nodeType}catch(C){t=function(z){for(var B=z.length,G=new Array(B);B--;)G[B]=z[B];return G}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(C){var i=this.Element.prototype,l=i.setAttribute,u=i.setAttributeNS,s=this.CSSStyleDeclaration.prototype,f=s.setProperty;i.setAttribute=function(z,B){l.call(this,z,B+"")},i.setAttributeNS=function(z,B,G){u.call(this,z,B,G+"")},s.setProperty=function(z,B,G){f.call(this,z,B+"",G)}}e.ascending=v;function v(C,z){return Cz?1:C>=z?0:NaN}e.descending=function(C,z){return zC?1:z>=C?0:NaN},e.min=function(C,z){var B=-1,G=C.length,W,Z;if(arguments.length===1){for(;++B=Z){W=Z;break}for(;++BZ&&(W=Z)}else{for(;++B=Z){W=Z;break}for(;++BZ&&(W=Z)}return W},e.max=function(C,z){var B=-1,G=C.length,W,Z;if(arguments.length===1){for(;++B=Z){W=Z;break}for(;++BW&&(W=Z)}else{for(;++B=Z){W=Z;break}for(;++BW&&(W=Z)}return W},e.extent=function(C,z){var B=-1,G=C.length,W,Z,le;if(arguments.length===1){for(;++B=Z){W=le=Z;break}for(;++BZ&&(W=Z),le=Z){W=le=Z;break}for(;++BZ&&(W=Z),le1)return le/(fe-1)},e.deviation=function(){var C=e.variance.apply(this,arguments);return C&&Math.sqrt(C)};function m(C){return{left:function(z,B,G,W){for(arguments.length<3&&(G=0),arguments.length<4&&(W=z.length);G>>1;C(z[Z],B)<0?G=Z+1:W=Z}return G},right:function(z,B,G,W){for(arguments.length<3&&(G=0),arguments.length<4&&(W=z.length);G>>1;C(z[Z],B)>0?W=Z:G=Z+1}return G}}}var w=m(v);e.bisectLeft=w.left,e.bisect=e.bisectRight=w.right,e.bisector=function(C){return m(C.length===1?function(z,B){return v(C(z),B)}:C)},e.shuffle=function(C,z,B){(G=arguments.length)<3&&(B=C.length,G<2&&(z=0));for(var G=B-z,W,Z;G;)Z=Math.random()*G--|0,W=C[G+z],C[G+z]=C[Z+z],C[Z+z]=W;return C},e.permute=function(C,z){for(var B=z.length,G=new Array(B);B--;)G[B]=C[z[B]];return G},e.pairs=function(C){for(var z=0,B=C.length-1,G,W=C[0],Z=new Array(B<0?0:B);z=0;)for(le=C[z],B=le.length;--B>=0;)Z[--W]=le[B];return Z};var y=Math.abs;e.range=function(C,z,B){if(arguments.length<3&&(B=1,arguments.length<2&&(z=C,C=0)),(z-C)/B===1/0)throw new Error("infinite range");var G=[],W=k(y(B)),Z=-1,le;if(C*=W,z*=W,B*=W,B<0)for(;(le=C+B*++Z)>z;)G.push(le/W);else for(;(le=C+B*++Z)=z.length)return W?W.call(C,fe):G?fe.sort(G):fe;for(var be=-1,Fe=fe.length,Ie=z[xe++],Qe,rr,Oe,Ve=new x,Xe;++be=z.length)return oe;var xe=[],be=B[fe++];return oe.forEach(function(Fe,Ie){xe.push({key:Fe,values:le(Ie,fe)})}),be?xe.sort(function(Fe,Ie){return be(Fe.key,Ie.key)}):xe}return C.map=function(oe,fe){return Z(fe,oe,0)},C.entries=function(oe){return le(Z(e.map,oe,0),0)},C.key=function(oe){return z.push(oe),C},C.sortKeys=function(oe){return B[z.length-1]=oe,C},C.sortValues=function(oe){return G=oe,C},C.rollup=function(oe){return W=oe,C},C},e.set=function(C){var z=new D;if(C)for(var B=0,G=C.length;B=0&&(G=C.slice(B+1),C=C.slice(0,B)),C)return arguments.length<2?this[C].on(G):this[C].on(G,z);if(arguments.length===2){if(z==null)for(C in this)this.hasOwnProperty(C)&&this[C].on(G,null);return this}};function U(C){var z=[],B=new x;function G(){for(var W=z,Z=-1,le=W.length,oe;++Z=0&&(B=C.slice(0,z))!=="xmlns"&&(C=C.slice(z+1)),te.hasOwnProperty(B)?{space:te[B],local:C}:C}},ee.attr=function(C,z){if(arguments.length<2){if(typeof C=="string"){var B=this.node();return C=e.ns.qualify(C),C.local?B.getAttributeNS(C.space,C.local):B.getAttribute(C)}for(z in C)this.each(ue(z,C[z]));return this}return this.each(ue(C,z))};function ue(C,z){C=e.ns.qualify(C);function B(){this.removeAttribute(C)}function G(){this.removeAttributeNS(C.space,C.local)}function W(){this.setAttribute(C,z)}function Z(){this.setAttributeNS(C.space,C.local,z)}function le(){var fe=z.apply(this,arguments);fe==null?this.removeAttribute(C):this.setAttribute(C,fe)}function oe(){var fe=z.apply(this,arguments);fe==null?this.removeAttributeNS(C.space,C.local):this.setAttributeNS(C.space,C.local,fe)}return z==null?C.local?G:B:typeof z=="function"?C.local?oe:le:C.local?Z:W}function de(C){return C.trim().replace(/\s+/g," ")}ee.classed=function(C,z){if(arguments.length<2){if(typeof C=="string"){var B=this.node(),G=(C=Ae(C)).length,W=-1;if(z=B.classList){for(;++W=0;)(Z=B[G])&&(W&&W!==Z.nextSibling&&W.parentNode.insertBefore(Z,W),W=Z);return this},ee.sort=function(C){C=we.apply(this,arguments);for(var z=-1,B=this.length;++z=z&&(z=W+1);!(fe=le[z])&&++z0&&(C=C.slice(0,W));var le=ye.get(C);le&&(C=le,Z=ze);function oe(){var be=this[G];be&&(this.removeEventListener(C,be,be.$),delete this[G])}function fe(){var be=Z(z,t(arguments));oe.call(this),this.addEventListener(C,this[G]=be,be.$=B),be._=z}function xe(){var be=new RegExp("^__on([^.]+)"+e.requote(C)+"$"),Fe;for(var Ie in this)if(Fe=Ie.match(be)){var Qe=this[Ie];this.removeEventListener(Fe[1],Qe,Qe.$),delete this[Ie]}}return W?z?fe:oe:z?P:xe}var ye=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&ye.forEach(function(C){"on"+C in n&&ye.remove(C)});function Ce(C,z){return function(B){var G=e.event;e.event=B,z[0]=this.__data__;try{C.apply(this,z)}finally{e.event=G}}}function ze(C,z){var B=Ce(C,z);return function(G){var W=this,Z=G.relatedTarget;(!Z||Z!==W&&!(Z.compareDocumentPosition(W)&8))&&B.call(W,G)}}var qe,$e=0;function We(C){var z=".dragsuppress-"+ ++$e,B="click"+z,G=e.select(o(C)).on("touchmove"+z,X).on("dragstart"+z,X).on("selectstart"+z,X);if(qe==null&&(qe="onselectstart"in C?!1:F(C.style,"userSelect")),qe){var W=a(C).style,Z=W[qe];W[qe]="none"}return function(le){if(G.on(z,null),qe&&(W[qe]=Z),le){var oe=function(){G.on(B,null)};G.on(B,function(){X(),oe()},!0),setTimeout(oe,0)}}}e.mouse=function(C){return Ge(C,$())};var Ue=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ge(C,z){z.changedTouches&&(z=z.changedTouches[0]);var B=C.ownerSVGElement||C;if(B.createSVGPoint){var G=B.createSVGPoint();if(Ue<0){var W=o(C);if(W.scrollX||W.scrollY){B=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Z=B[0][0].getScreenCTM();Ue=!(Z.f||Z.e),B.remove()}}return Ue?(G.x=z.pageX,G.y=z.pageY):(G.x=z.clientX,G.y=z.clientY),G=G.matrixTransform(C.getScreenCTM().inverse()),[G.x,G.y]}var le=C.getBoundingClientRect();return[z.clientX-le.left-C.clientLeft,z.clientY-le.top-C.clientTop]}e.touch=function(C,z,B){if(arguments.length<3&&(B=z,z=$().changedTouches),z){for(var G=0,W=z.length,Z;G0?1:C<0?-1:0}function je(C,z,B){return(z[0]-C[0])*(B[1]-C[1])-(z[1]-C[1])*(B[0]-C[0])}function nr(C){return C>1?0:C<-1?Ye:Math.acos(C)}function fr(C){return C>1?J:C<-1?-J:Math.asin(C)}function br(C){return((C=Math.exp(C))-1/C)/2}function Sr(C){return((C=Math.exp(C))+1/C)/2}function Mr(C){return((C=Math.exp(2*C))-1)/(C+1)}function Ar(C){return(C=Math.sin(C/2))*C}var nt=Math.SQRT2,Yr=2,mr=4;e.interpolateZoom=function(C,z){var B=C[0],G=C[1],W=C[2],Z=z[0],le=z[1],oe=z[2],fe=Z-B,xe=le-G,be=fe*fe+xe*xe,Fe,Ie;if(be0&&(vr=vr.transition().duration(le)),vr.call(tr.event)}function _r(){Ve&&Ve.domain(Oe.range().map(function(vr){return(vr-C.x)/C.k}).map(Oe.invert)),er&&er.domain(Xe.range().map(function(vr){return(vr-C.y)/C.k}).map(Xe.invert))}function wr(vr){oe++||vr({type:"zoomstart"})}function qr(vr){_r(),vr({type:"zoom",scale:C.k,translate:[C.x,C.y]})}function Tr(vr){--oe||(vr({type:"zoomend"}),B=null)}function Pr(){var vr=this,Or=rr.of(vr,arguments),Vr=0,ft=e.select(o(vr)).on(xe,bn).on(be,In),Pt=Je(e.mouse(vr)),$t=We(vr);dc.call(vr),wr(Or);function bn(){Vr=1,yr(e.mouse(vr),Pt),qr(Or)}function In(){ft.on(xe,null).on(be,null),$t(Vr),Tr(Or)}}function ut(){var vr=this,Or=rr.of(vr,arguments),Vr={},ft=0,Pt,$t=".zoom-"+e.event.changedTouches[0].identifier,bn="touchmove"+$t,In="touchend"+$t,Gn=[],Nn=e.select(vr),Qn=We(vr);$n(),wr(Or),Nn.on(fe,null).on(Ie,$n);function An(){var Za=e.touches(vr);return Pt=C.k,Za.forEach(function(_n){_n.identifier in Vr&&(Vr[_n.identifier]=Je(_n))}),Za}function $n(){var Za=e.event.target;e.select(Za).on(bn,ml).on(In,AB),Gn.push(Za);for(var _n=e.event.changedTouches,Aa=0,Mi=_n.length;Aa1){var xl=ka[0],_o=ka[1],yc=xl[0]-_o[0],ab=xl[1]-_o[1];ft=yc*yc+ab*ab}}function ml(){var Za=e.touches(vr),_n,Aa,Mi,ka;dc.call(vr);for(var As=0,xl=Za.length;As1?1:z,B=B<0?0:B>1?1:B,W=B<=.5?B*(1+z):B+z-B*z,G=2*B-W;function Z(oe){return oe>360?oe-=360:oe<0&&(oe+=360),oe<60?G+(W-G)*oe/60:oe<180?W:oe<240?G+(W-G)*(240-oe)/60:G}function le(oe){return Math.round(Z(oe)*255)}return new nn(le(C+120),le(C),le(C-120))}e.hcl=Lt;function Lt(C,z,B){return this instanceof Lt?(this.h=+C,this.c=+z,void(this.l=+B)):arguments.length<2?C instanceof Lt?new Lt(C.h,C.c,C.l):C instanceof Rt?xi(C.l,C.a,C.b):xi((C=gr((C=e.rgb(C)).r,C.g,C.b)).l,C.a,C.b):new Lt(C,z,B)}var yn=Lt.prototype=new xt;yn.brighter=function(C){return new Lt(this.h,this.c,Math.min(100,this.l+at*(arguments.length?C:1)))},yn.darker=function(C){return new Lt(this.h,this.c,Math.max(0,this.l-at*(arguments.length?C:1)))},yn.rgb=function(){return Gt(this.h,this.c,this.l).rgb()};function Gt(C,z,B){return isNaN(C)&&(C=0),isNaN(z)&&(z=0),new Rt(B,Math.cos(C*=ae)*z,Math.sin(C)*z)}e.lab=Rt;function Rt(C,z,B){return this instanceof Rt?(this.l=+C,this.a=+z,void(this.b=+B)):arguments.length<2?C instanceof Rt?new Rt(C.l,C.a,C.b):C instanceof Lt?Gt(C.h,C.c,C.l):gr((C=nn(C)).r,C.g,C.b):new Rt(C,z,B)}var at=18,It=.95047,va=1,Kn=1.08883,Fn=Rt.prototype=new xt;Fn.brighter=function(C){return new Rt(Math.min(100,this.l+at*(arguments.length?C:1)),this.a,this.b)},Fn.darker=function(C){return new Rt(Math.max(0,this.l-at*(arguments.length?C:1)),this.a,this.b)},Fn.rgb=function(){return Ma(this.l,this.a,this.b)};function Ma(C,z,B){var G=(C+16)/116,W=G+z/500,Z=G-B/200;return W=Gi(W)*It,G=Gi(G)*va,Z=Gi(Z)*Kn,new nn(Wi(3.2404542*W-1.5371385*G-.4985314*Z),Wi(-.969266*W+1.8760108*G+.041556*Z),Wi(.0556434*W-.2040259*G+1.0572252*Z))}function xi(C,z,B){return C>0?new Lt(Math.atan2(B,z)*Le,Math.sqrt(z*z+B*B),C):new Lt(NaN,NaN,C)}function Gi(C){return C>.206893034?C*C*C:(C-4/29)/7.787037}function Yi(C){return C>.008856?Math.pow(C,1/3):7.787037*C+4/29}function Wi(C){return Math.round(255*(C<=.00304?12.92*C:1.055*Math.pow(C,1/2.4)-.055))}e.rgb=nn;function nn(C,z,B){return this instanceof nn?(this.r=~~C,this.g=~~z,void(this.b=~~B)):arguments.length<2?C instanceof nn?new nn(C.r,C.g,C.b):it(""+C,nn,Ot):new nn(C,z,B)}function xo(C){return new nn(C>>16,C>>8&255,C&255)}function bi(C){return xo(C)+""}var _i=nn.prototype=new xt;_i.brighter=function(C){C=Math.pow(.7,arguments.length?C:1);var z=this.r,B=this.g,G=this.b,W=30;return!z&&!B&&!G?new nn(W,W,W):(z&&z>4,G=G>>4|G,W=fe&240,W=W>>4|W,Z=fe&15,Z=Z<<4|Z):C.length===7&&(G=(fe&16711680)>>16,W=(fe&65280)>>8,Z=fe&255)),z(G,W,Z))}function vt(C,z,B){var G=Math.min(C/=255,z/=255,B/=255),W=Math.max(C,z,B),Z=W-G,le,oe,fe=(W+G)/2;return Z?(oe=fe<.5?Z/(W+G):Z/(2-W-G),C==W?le=(z-B)/Z+(z0&&fe<1?0:le),new zr(le,oe,fe)}function gr(C,z,B){C=mn(C),z=mn(z),B=mn(B);var G=Yi((.4124564*C+.3575761*z+.1804375*B)/It),W=Yi((.2126729*C+.7151522*z+.072175*B)/va),Z=Yi((.0193339*C+.119192*z+.9503041*B)/Kn);return Rt(116*W-16,500*(G-W),200*(W-Z))}function mn(C){return(C/=255)<=.04045?C/12.92:Math.pow((C+.055)/1.055,2.4)}function bt(C){var z=parseFloat(C);return C.charAt(C.length-1)==="%"?Math.round(z*2.55):z}var xn=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});xn.forEach(function(C,z){xn.set(C,xo(z))});function Xr(C){return typeof C=="function"?C:function(){return C}}e.functor=Xr,e.xhr=Wa(N);function Wa(C){return function(z,B,G){return arguments.length===2&&typeof B=="function"&&(G=B,B=null),hl(z,B,C,G)}}function hl(C,z,B,G){var W={},Z=e.dispatch("beforesend","progress","load","error"),le={},oe=new XMLHttpRequest,fe=null;self.XDomainRequest&&!("withCredentials"in oe)&&/^(http(s)?:)?\/\//.test(C)&&(oe=new XDomainRequest),"onload"in oe?oe.onload=oe.onerror=xe:oe.onreadystatechange=function(){oe.readyState>3&&xe()};function xe(){var be=oe.status,Fe;if(!be&&Sq(oe)||be>=200&&be<300||be===304){try{Fe=B.call(W,oe)}catch(Ie){Z.error.call(W,Ie);return}Z.load.call(W,Fe)}else Z.error.call(W,oe)}return oe.onprogress=function(be){var Fe=e.event;e.event=be;try{Z.progress.call(W,oe)}finally{e.event=Fe}},W.header=function(be,Fe){return be=(be+"").toLowerCase(),arguments.length<2?le[be]:(Fe==null?delete le[be]:le[be]=Fe+"",W)},W.mimeType=function(be){return arguments.length?(z=be==null?null:be+"",W):z},W.responseType=function(be){return arguments.length?(fe=be,W):fe},W.response=function(be){return B=be,W},["get","post"].forEach(function(be){W[be]=function(){return W.send.apply(W,[be].concat(t(arguments)))}}),W.send=function(be,Fe,Ie){if(arguments.length===2&&typeof Fe=="function"&&(Ie=Fe,Fe=null),oe.open(be,C,!0),z!=null&&!("accept"in le)&&(le.accept=z+",*/*"),oe.setRequestHeader)for(var Qe in le)oe.setRequestHeader(Qe,le[Qe]);return z!=null&&oe.overrideMimeType&&oe.overrideMimeType(z),fe!=null&&(oe.responseType=fe),Ie!=null&&W.on("error",Ie).on("load",function(rr){Ie(null,rr)}),Z.beforesend.call(W,oe),oe.send(Fe==null?null:Fe),W},W.abort=function(){return oe.abort(),W},e.rebind(W,Z,"on"),G==null?W:W.get(kq(G))}function kq(C){return C.length===1?function(z,B){C(z==null?B:null)}:C}function Sq(C){var z=C.responseType;return z&&z!=="text"?C.response:C.responseText}e.dsv=function(C,z){var B=new RegExp('["'+C+` +]`),G=C.charCodeAt(0);function W(xe,be,Fe){arguments.length<3&&(Fe=be,be=null);var Ie=hl(xe,z,be==null?Z:le(be),Fe);return Ie.row=function(Qe){return arguments.length?Ie.response((be=Qe)==null?Z:le(Qe)):be},Ie}function Z(xe){return W.parse(xe.responseText)}function le(xe){return function(be){return W.parse(be.responseText,xe)}}W.parse=function(xe,be){var Fe;return W.parseRows(xe,function(Ie,Qe){if(Fe)return Fe(Ie,Qe-1);var rr=function(Oe){for(var Ve={},Xe=Ie.length,er=0;er=rr)return Ie;if(er)return er=!1,Fe;var or=Oe;if(xe.charCodeAt(or)===34){for(var dr=or;dr++24?(isFinite(z)&&(clearTimeout($0),$0=setTimeout(Rd,z)),Q0=0):(Q0=1,G5(Rd))}e.timer.flush=function(){Y5(),W5()};function Y5(){for(var C=Date.now(),z=J0;z;)C>=z.t&&z.c(C-z.t)&&(z.c=null),z=z.n;return C}function W5(){for(var C,z=J0,B=1/0;z;)z.c?(z.t=0;--oe)Oe.push(W[xe[Fe[oe]][2]]);for(oe=+Qe;oe1&&je(C[B[G-2]],C[B[G-1]],C[W])<=0;)--G;B[G++]=W}return B.slice(0,G)}function Cq(C,z){return C[0]-z[0]||C[1]-z[1]}e.geom.polygon=function(C){return q(C,ec),C};var ec=e.geom.polygon.prototype=[];ec.area=function(){for(var C=-1,z=this.length,B,G=this[z-1],W=0;++CDe)oe=oe.L;else if(le=z-Dq(oe,B),le>De){if(!oe.R){G=oe;break}oe=oe.R}else{Z>-De?(G=oe.P,W=oe):le>-De?(G=oe,W=oe.N):G=W=oe;break}var fe=Q5(C);if(_s.insert(G,fe),!(!G&&!W)){if(G===W){Ms(G),W=Q5(G.site),_s.insert(fe,W),fe.edge=W.edge=Ku(G.site,fe.site),ws(G),ws(W);return}if(!W){fe.edge=Ku(G.site,fe.site);return}Ms(G),Ms(W);var xe=G.site,be=xe.x,Fe=xe.y,Ie=C.x-be,Qe=C.y-Fe,rr=W.site,Oe=rr.x-be,Ve=rr.y-Fe,Xe=2*(Ie*Ve-Qe*Oe),er=Ie*Ie+Qe*Qe,tr=Oe*Oe+Ve*Ve,Je={x:(Ve*er-Qe*tr)/Xe+be,y:(Ie*tr-Oe*er)/Xe+Fe};rc(W.edge,xe,rr,Je),fe.edge=Ku(xe,C,null,Je),W.edge=Ku(C,rr,null,Je),ws(G),ws(W)}}function $5(C,z){var B=C.site,G=B.x,W=B.y,Z=W-z;if(!Z)return G;var le=C.P;if(!le)return-1/0;B=le.site;var oe=B.x,fe=B.y,xe=fe-z;if(!xe)return oe;var be=oe-G,Fe=1/Z-1/xe,Ie=be/xe;return Fe?(-Ie+Math.sqrt(Ie*Ie-2*Fe*(be*be/(-2*xe)-fe+xe/2+W-Z/2)))/Fe+G:(G+oe)/2}function Dq(C,z){var B=C.N;if(B)return $5(B,z);var G=C.site;return G.y===z?G.x:1/0}function j5(C){this.site=C,this.edges=[]}j5.prototype.prepare=function(){for(var C=this.edges,z=C.length,B;z--;)B=C[z].edge,(!B.b||!B.a)&&C.splice(z,1);return C.sort(ex),C.length};function Pq(C){for(var z=C[0][0],B=C[1][0],G=C[0][1],W=C[1][1],Z,le,oe,fe,xe=dl,be=xe.length,Fe,Ie,Qe,rr,Oe,Ve;be--;)if(Fe=xe[be],!(!Fe||!Fe.prepare()))for(Qe=Fe.edges,rr=Qe.length,Ie=0;IeDe||y(fe-le)>De)&&(Qe.splice(Ie,0,new tc(qq(Fe.site,Ve,y(oe-z)De?{x:z,y:y(Z-z)De?{x:y(le-W)De?{x:B,y:y(Z-B)De?{x:y(le-G)=-Ke)){var Ie=fe*fe+xe*xe,Qe=be*be+Ve*Ve,rr=(Ve*Ie-xe*Qe)/Fe,Oe=(fe*Qe-be*Ie)/Fe,Ve=Oe+oe,Xe=K5.pop()||new Fq;Xe.arc=C,Xe.site=W,Xe.x=rr+le,Xe.y=Ve+Math.sqrt(rr*rr+Oe*Oe),Xe.cy=Ve,C.circle=Xe;for(var er=null,tr=Ju._;tr;)if(Xe.y0)){if(Oe/=Qe,Qe<0){if(Oe0){if(Oe>Ie)return;Oe>Fe&&(Fe=Oe)}if(Oe=B-oe,!(!Qe&&Oe<0)){if(Oe/=Qe,Qe<0){if(Oe>Ie)return;Oe>Fe&&(Fe=Oe)}else if(Qe>0){if(Oe0)){if(Oe/=rr,rr<0){if(Oe0){if(Oe>Ie)return;Oe>Fe&&(Fe=Oe)}if(Oe=G-fe,!(!rr&&Oe<0)){if(Oe/=rr,rr<0){if(Oe>Ie)return;Oe>Fe&&(Fe=Oe)}else if(rr>0){if(Oe0&&(W.a={x:oe+Fe*Qe,y:fe+Fe*rr}),Ie<1&&(W.b={x:oe+Ie*Qe,y:fe+Ie*rr}),W}}}}}}function Nq(C){for(var z=bs,B=Iq(C[0][0],C[0][1],C[1][0],C[1][1]),G=z.length,W;G--;)W=z[G],(!zq(W,C)||!B(W)||y(W.a.x-W.b.x)=Z)return;if(be>Ie){if(!G)G={x:rr,y:le};else if(G.y>=oe)return;B={x:rr,y:oe}}else{if(!G)G={x:rr,y:oe};else if(G.y1)if(be>Ie){if(!G)G={x:(le-Xe)/Ve,y:le};else if(G.y>=oe)return;B={x:(oe-Xe)/Ve,y:oe}}else{if(!G)G={x:(oe-Xe)/Ve,y:oe};else if(G.y=Z)return;B={x:Z,y:Ve*Z+Xe}}else{if(!G)G={x:Z,y:Ve*Z+Xe};else if(G.x=be&&Xe.x<=Ie&&Xe.y>=Fe&&Xe.y<=Qe?[[be,Qe],[Ie,Qe],[Ie,Fe],[be,Fe]]:[];er.point=fe[Oe]}),xe}function oe(fe){return fe.map(function(xe,be){return{x:Math.round(G(xe,be)/De)*De,y:Math.round(W(xe,be)/De)*De,i:be}})}return le.links=function(fe){return zd(oe(fe)).edges.filter(function(xe){return xe.l&&xe.r}).map(function(xe){return{source:fe[xe.l.i],target:fe[xe.r.i]}})},le.triangles=function(fe){var xe=[];return zd(oe(fe)).cells.forEach(function(be,Fe){for(var Ie=be.site,Qe=be.edges.sort(ex),rr=-1,Oe=Qe.length,Ve,Xe,er=Qe[Oe-1].edge,tr=er.l===Ie?er.r:er.l;++rrtr&&(tr=be.x),be.y>Je&&(Je=be.y),Qe.push(be.x),rr.push(be.y);else for(Oe=0;Oetr&&(tr=or),dr>Je&&(Je=dr),Qe.push(or),rr.push(dr)}var yr=tr-Xe,pr=Je-er;yr>pr?Je=er+yr:tr=Xe+pr;function _r(Tr,Pr,ut,Bt,dt,vr,Or,Vr){if(!(isNaN(ut)||isNaN(Bt)))if(Tr.leaf){var ft=Tr.x,Pt=Tr.y;if(ft!=null)if(y(ft-ut)+y(Pt-Bt)<.01)wr(Tr,Pr,ut,Bt,dt,vr,Or,Vr);else{var $t=Tr.point;Tr.x=Tr.y=Tr.point=null,wr(Tr,$t,ft,Pt,dt,vr,Or,Vr),wr(Tr,Pr,ut,Bt,dt,vr,Or,Vr)}else Tr.x=ut,Tr.y=Bt,Tr.point=Pr}else wr(Tr,Pr,ut,Bt,dt,vr,Or,Vr)}function wr(Tr,Pr,ut,Bt,dt,vr,Or,Vr){var ft=(dt+Or)*.5,Pt=(vr+Vr)*.5,$t=ut>=ft,bn=Bt>=Pt,In=bn<<1|$t;Tr.leaf=!1,Tr=Tr.nodes[In]||(Tr.nodes[In]=nx()),$t?dt=ft:Or=ft,bn?vr=Pt:Vr=Pt,_r(Tr,Pr,ut,Bt,dt,vr,Or,Vr)}var qr=nx();if(qr.add=function(Tr){_r(qr,Tr,+Fe(Tr,++Oe),+Ie(Tr,Oe),Xe,er,tr,Je)},qr.visit=function(Tr){ju(Tr,qr,Xe,er,tr,Je)},qr.find=function(Tr){return Vq(qr,Tr[0],Tr[1],Xe,er,tr,Je)},Oe=-1,z==null){for(;++OeZ||Ie>le||Qe=or,pr=B>=dr,_r=pr<<1|yr,wr=_r+4;_rB&&(Z=z.slice(B,Z),oe[le]?oe[le]+=Z:oe[++le]=Z),(G=G[0])===(W=W[0])?oe[le]?oe[le]+=W:oe[++le]=W:(oe[++le]=null,fe.push({i:le,x:Xi(G,W)})),B=Bd.lastIndex;return B=0&&!(G=e.interpolators[B](C,z)););return G}e.interpolators=[function(C,z){var B=typeof z;return(B==="string"?xn.has(z.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(z)?qd:ix:z instanceof xt?qd:Array.isArray(z)?ic:B==="object"&&isNaN(z)?ax:Xi)(C,z)}],e.interpolateArray=ic;function ic(C,z){var B=[],G=[],W=C.length,Z=z.length,le=Math.min(C.length,z.length),oe;for(oe=0;oe=0?C.slice(0,z):C,G=z>=0?C.slice(z+1):"in";return B=Gq.get(B)||ox,G=Yq.get(G)||N,Wq(G(B.apply(null,r.call(arguments,1))))};function Wq(C){return function(z){return z<=0?0:z>=1?1:C(z)}}function lx(C){return function(z){return 1-C(1-z)}}function sx(C){return function(z){return .5*(z<.5?C(2*z):2-C(2-2*z))}}function Xq(C){return C*C}function Zq(C){return C*C*C}function Jq(C){if(C<=0)return 0;if(C>=1)return 1;var z=C*C,B=z*C;return 4*(C<.5?B:3*(C-z)+B-.75)}function Kq(C){return function(z){return Math.pow(z,C)}}function Qq(C){return 1-Math.cos(C*J)}function $q(C){return Math.pow(2,10*(C-1))}function jq(C){return 1-Math.sqrt(1-C*C)}function eO(C,z){var B;return arguments.length<2&&(z=.45),arguments.length?B=z/ar*Math.asin(1/C):(C=1,B=z/4),function(G){return 1+C*Math.pow(2,-10*G)*Math.sin((G-B)*ar/z)}}function rO(C){return C||(C=1.70158),function(z){return z*z*((C+1)*z-C)}}function tO(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=nO;function nO(C,z){C=e.hcl(C),z=e.hcl(z);var B=C.h,G=C.c,W=C.l,Z=z.h-B,le=z.c-G,oe=z.l-W;return isNaN(le)&&(le=0,G=isNaN(G)?z.c:G),isNaN(Z)?(Z=0,B=isNaN(B)?z.h:B):Z>180?Z-=360:Z<-180&&(Z+=360),function(fe){return Gt(B+Z*fe,G+le*fe,W+oe*fe)+""}}e.interpolateHsl=aO;function aO(C,z){C=e.hsl(C),z=e.hsl(z);var B=C.h,G=C.s,W=C.l,Z=z.h-B,le=z.s-G,oe=z.l-W;return isNaN(le)&&(le=0,G=isNaN(G)?z.s:G),isNaN(Z)?(Z=0,B=isNaN(B)?z.h:B):Z>180?Z-=360:Z<-180&&(Z+=360),function(fe){return Ot(B+Z*fe,G+le*fe,W+oe*fe)+""}}e.interpolateLab=iO;function iO(C,z){C=e.lab(C),z=e.lab(z);var B=C.l,G=C.a,W=C.b,Z=z.l-B,le=z.a-G,oe=z.b-W;return function(fe){return Ma(B+Z*fe,G+le*fe,W+oe*fe)+""}}e.interpolateRound=ux;function ux(C,z){return z-=C,function(B){return Math.round(C+z*B)}}e.transform=function(C){var z=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(B){if(B!=null){z.setAttribute("transform",B);var G=z.transform.baseVal.consolidate()}return new fx(G?G.matrix:lO)})(C)};function fx(C){var z=[C.a,C.b],B=[C.c,C.d],G=vx(z),W=cx(z,B),Z=vx(oO(B,z,-W))||0;z[0]*B[1]180?z+=360:z-C>180&&(C+=360),G.push({i:B.push(Ts(B)+"rotate(",null,")")-2,x:Xi(C,z)})):z&&B.push(Ts(B)+"rotate("+z+")")}function fO(C,z,B,G){C!==z?G.push({i:B.push(Ts(B)+"skewX(",null,")")-2,x:Xi(C,z)}):z&&B.push(Ts(B)+"skewX("+z+")")}function cO(C,z,B,G){if(C[0]!==z[0]||C[1]!==z[1]){var W=B.push(Ts(B)+"scale(",null,",",null,")");G.push({i:W-4,x:Xi(C[0],z[0])},{i:W-2,x:Xi(C[1],z[1])})}else(z[0]!==1||z[1]!==1)&&B.push(Ts(B)+"scale("+z+")")}function hx(C,z){var B=[],G=[];return C=e.transform(C),z=e.transform(z),sO(C.translate,z.translate,B,G),uO(C.rotate,z.rotate,B,G),fO(C.skew,z.skew,B,G),cO(C.scale,z.scale,B,G),C=z=null,function(W){for(var Z=-1,le=G.length,oe;++Z0?Z=Je:(B.c=null,B.t=NaN,B=null,z.end({type:"end",alpha:Z=0})):Je>0&&(z.start({type:"start",alpha:Z=Je}),B=j0(C.tick)),C):Z},C.start=function(){var Je,or=Qe.length,dr=rr.length,yr=G[0],pr=G[1],_r,wr;for(Je=0;Je=0;)Z.push(be=xe[fe]),be.parent=oe,be.depth=oe.depth+1;B&&(oe.value=0),oe.children=xe}else B&&(oe.value=+B.call(G,oe,oe.depth)||0),delete oe.children;return wi(W,function(Fe){var Ie,Qe;C&&(Ie=Fe.children)&&Ie.sort(C),B&&(Qe=Fe.parent)&&(Qe.value+=Fe.value)}),le}return G.sort=function(W){return arguments.length?(C=W,G):C},G.children=function(W){return arguments.length?(z=W,G):z},G.value=function(W){return arguments.length?(B=W,G):B},G.revalue=function(W){return B&&(rf(W,function(Z){Z.children&&(Z.value=0)}),wi(W,function(Z){var le;Z.children||(Z.value=+B.call(G,Z,Z.depth)||0),(le=Z.parent)&&(le.value+=Z.value)})),W},G};function ef(C,z){return e.rebind(C,z,"sort","children","value"),C.nodes=C,C.links=kO,C}function rf(C,z){for(var B=[C];(C=B.pop())!=null;)if(z(C),(W=C.children)&&(G=W.length))for(var G,W;--G>=0;)B.push(W[G])}function wi(C,z){for(var B=[C],G=[];(C=B.pop())!=null;)if(G.push(C),(le=C.children)&&(Z=le.length))for(var W=-1,Z,le;++WW&&(W=oe),G.push(oe)}for(le=0;leG&&(B=z,G=W);return B}function PO(C){return C.reduce(FO,0)}function FO(C,z){return C+z[1]}e.layout.histogram=function(){var C=!0,z=Number,B=NO,G=IO;function W(Z,Ie){for(var oe=[],fe=Z.map(z,this),xe=B.call(this,fe,Ie),be=G.call(this,xe,fe,Ie),Fe,Ie=-1,Qe=fe.length,rr=be.length-1,Oe=C?1:1/Qe,Ve;++Ie0)for(Ie=-1;++Ie=xe[0]&&Ve<=xe[1]&&(Fe=oe[e.bisect(be,Ve,1,rr)-1],Fe.y+=Oe,Fe.push(Z[Ie]));return oe}return W.value=function(Z){return arguments.length?(z=Z,W):z},W.range=function(Z){return arguments.length?(B=Xr(Z),W):B},W.bins=function(Z){return arguments.length?(G=typeof Z=="number"?function(le){return yx(le,Z)}:Xr(Z),W):G},W.frequency=function(Z){return arguments.length?(C=!!Z,W):C},W};function IO(C,z){return yx(C,Math.ceil(Math.log(z.length)/Math.LN2+1))}function yx(C,z){for(var B=-1,G=+C[0],W=(C[1]-G)/z,Z=[];++B<=z;)Z[B]=W*B+G;return Z}function NO(C){return[e.min(C),e.max(C)]}e.layout.pack=function(){var C=e.layout.hierarchy().sort(zO),z=0,B=[1,1],G;function W(Z,le){var oe=C.call(this,Z,le),fe=oe[0],xe=B[0],be=B[1],Fe=G==null?Math.sqrt:typeof G=="function"?G:function(){return G};if(fe.x=fe.y=0,wi(fe,function(Qe){Qe.r=+Fe(Qe.value)}),wi(fe,bx),z){var Ie=z*(G?1:Math.max(2*fe.r/xe,2*fe.r/be))/2;wi(fe,function(Qe){Qe.r+=Ie}),wi(fe,bx),wi(fe,function(Qe){Qe.r-=Ie})}return _x(fe,xe/2,be/2,G?1:1/Math.max(2*fe.r/xe,2*fe.r/be)),oe}return W.size=function(Z){return arguments.length?(B=Z,W):B},W.radius=function(Z){return arguments.length?(G=Z==null||typeof Z=="function"?Z:+Z,W):G},W.padding=function(Z){return arguments.length?(z=+Z,W):z},ef(W,C)};function zO(C,z){return C.value-z.value}function Vd(C,z){var B=C._pack_next;C._pack_next=z,z._pack_prev=C,z._pack_next=B,B._pack_prev=z}function mx(C,z){C._pack_next=z,z._pack_prev=C}function xx(C,z){var B=z.x-C.x,G=z.y-C.y,W=C.r+z.r;return .999*W*W>B*B+G*G}function bx(C){if(!(z=C.children)||!(Ie=z.length))return;var z,B=1/0,G=-1/0,W=1/0,Z=-1/0,le,oe,fe,xe,be,Fe,Ie;function Qe(Je){B=Math.min(Je.x-Je.r,B),G=Math.max(Je.x+Je.r,G),W=Math.min(Je.y-Je.r,W),Z=Math.max(Je.y+Je.r,Z)}if(z.forEach(qO),le=z[0],le.x=-le.r,le.y=0,Qe(le),Ie>1&&(oe=z[1],oe.x=oe.r,oe.y=0,Qe(oe),Ie>2))for(fe=z[2],wx(le,oe,fe),Qe(fe),Vd(le,fe),le._pack_prev=fe,Vd(fe,oe),oe=le._pack_next,xe=3;xeVe.x&&(Ve=or),or.depth>Xe.depth&&(Xe=or)});var er=z(Oe,Ve)/2-Oe.x,tr=B[0]/(Ve.x+z(Ve,Oe)/2+er),Je=B[1]/(Xe.depth||1);rf(Qe,function(or){or.x=(or.x+er)*tr,or.y=or.depth*Je})}return Ie}function Z(be){for(var Fe={A:null,children:[be]},Ie=[Fe],Qe;(Qe=Ie.pop())!=null;)for(var rr=Qe.children,Oe,Ve=0,Xe=rr.length;Ve0&&(BO(HO(Oe,be,Ie),be,or),Xe+=or,er+=or),tr+=Oe.m,Xe+=Qe.m,Je+=Ve.m,er+=rr.m;Oe&&!Yd(rr)&&(rr.t=Oe,rr.m+=tr-er),Qe&&!Gd(Ve)&&(Ve.t=Qe,Ve.m+=Xe-Je,Ie=be)}return Ie}function xe(be){be.x*=B[0],be.y=be.depth*B[1]}return W.separation=function(be){return arguments.length?(z=be,W):z},W.size=function(be){return arguments.length?(G=(B=be)==null?xe:null,W):G?null:B},W.nodeSize=function(be){return arguments.length?(G=(B=be)==null?null:xe,W):G?B:null},ef(W,C)};function Mx(C,z){return C.parent==z.parent?1:2}function Gd(C){var z=C.children;return z.length?z[0]:C.t}function Yd(C){var z=C.children,B;return(B=z.length)?z[B-1]:C.t}function BO(C,z,B){var G=B/(z.i-C.i);z.c-=G,z.s+=B,C.c+=G,z.z+=B,z.m+=B}function UO(C){for(var z=0,B=0,G=C.children,W=G.length,Z;--W>=0;)Z=G[W],Z.z+=z,Z.m+=z,z+=Z.s+(B+=Z.c)}function HO(C,z,B){return C.a.parent===z.parent?C.a:B}e.layout.cluster=function(){var C=e.layout.hierarchy().sort(null).value(null),z=Mx,B=[1,1],G=!1;function W(Z,le){var oe=C.call(this,Z,le),fe=oe[0],xe,be=0;wi(fe,function(Oe){var Ve=Oe.children;Ve&&Ve.length?(Oe.x=GO(Ve),Oe.y=VO(Ve)):(Oe.x=xe?be+=z(Oe,xe):0,Oe.y=0,xe=Oe)});var Fe=Tx(fe),Ie=Ax(fe),Qe=Fe.x-z(Fe,Ie)/2,rr=Ie.x+z(Ie,Fe)/2;return wi(fe,G?function(Oe){Oe.x=(Oe.x-fe.x)*B[0],Oe.y=(fe.y-Oe.y)*B[1]}:function(Oe){Oe.x=(Oe.x-Qe)/(rr-Qe)*B[0],Oe.y=(1-(fe.y?Oe.y/fe.y:1))*B[1]}),oe}return W.separation=function(Z){return arguments.length?(z=Z,W):z},W.size=function(Z){return arguments.length?(G=(B=Z)==null,W):G?null:B},W.nodeSize=function(Z){return arguments.length?(G=(B=Z)!=null,W):G?B:null},ef(W,C)};function VO(C){return 1+e.max(C,function(z){return z.y})}function GO(C){return C.reduce(function(z,B){return z+B.x},0)/C.length}function Tx(C){var z=C.children;return z&&z.length?Tx(z[0]):C}function Ax(C){var z=C.children,B;return z&&(B=z.length)?Ax(z[B-1]):C}e.layout.treemap=function(){var C=e.layout.hierarchy(),z=Math.round,B=[1,1],G=null,W=Wd,Z=!1,le,oe="squarify",fe=.5*(1+Math.sqrt(5));function xe(Oe,Ve){for(var Xe=-1,er=Oe.length,tr,Je;++Xe0;)er.push(Je=tr[pr-1]),er.area+=Je.area,oe!=="squarify"||(dr=Ie(er,yr))<=or?(tr.pop(),or=dr):(er.area-=er.pop().area,Qe(er,yr,Xe,!1),yr=Math.min(Xe.dx,Xe.dy),er.length=er.area=0,or=1/0);er.length&&(Qe(er,yr,Xe,!0),er.length=er.area=0),Ve.forEach(be)}}function Fe(Oe){var Ve=Oe.children;if(Ve&&Ve.length){var Xe=W(Oe),er=Ve.slice(),tr,Je=[];for(xe(er,Xe.dx*Xe.dy/Oe.value),Je.area=0;tr=er.pop();)Je.push(tr),Je.area+=tr.area,tr.z!=null&&(Qe(Je,tr.z?Xe.dx:Xe.dy,Xe,!er.length),Je.length=Je.area=0);Ve.forEach(Fe)}}function Ie(Oe,Ve){for(var Xe=Oe.area,er,tr=0,Je=1/0,or=-1,dr=Oe.length;++ortr&&(tr=er));return Xe*=Xe,Ve*=Ve,Xe?Math.max(Ve*tr*fe/Xe,Xe/(Ve*Je*fe)):1/0}function Qe(Oe,Ve,Xe,er){var tr=-1,Je=Oe.length,or=Xe.x,dr=Xe.y,yr=Ve?z(Oe.area/Ve):0,pr;if(Ve==Xe.dx){for((er||yr>Xe.dy)&&(yr=Xe.dy);++trXe.dx)&&(yr=Xe.dx);++tr1);return C+z*G*Math.sqrt(-2*Math.log(Z)/Z)}},logNormal:function(){var C=e.random.normal.apply(e,arguments);return function(){return Math.exp(C())}},bates:function(C){var z=e.random.irwinHall(C);return function(){return z()/C}},irwinHall:function(C){return function(){for(var z=0,B=0;B2?XO:YO,xe=G?hO:vO;return W=fe(C,z,xe,B),Z=fe(z,C,xe,pl),oe}function oe(fe){return W(fe)}return oe.invert=function(fe){return Z(fe)},oe.domain=function(fe){return arguments.length?(C=fe.map(Number),le()):C},oe.range=function(fe){return arguments.length?(z=fe,le()):z},oe.rangeRound=function(fe){return oe.range(fe).interpolate(ux)},oe.clamp=function(fe){return arguments.length?(G=fe,le()):G},oe.interpolate=function(fe){return arguments.length?(B=fe,le()):B},oe.ticks=function(fe){return Jd(C,fe)},oe.tickFormat=function(fe,xe){return d3_scale_linearTickFormat(C,fe,xe)},oe.nice=function(fe){return Lx(C,fe),le()},oe.copy=function(){return Cx(C,z,B,G)},le()}function Ex(C,z){return e.rebind(C,z,"range","rangeRound","interpolate","clamp")}function Lx(C,z){return Xd(C,Sx(Zd(C,z)[2])),Xd(C,Sx(Zd(C,z)[2])),C}function Zd(C,z){z==null&&(z=10);var B=oc(C),G=B[1]-B[0],W=Math.pow(10,Math.floor(Math.log(G/z)/Math.LN10)),Z=z/G*W;return Z<=.15?W*=10:Z<=.35?W*=5:Z<=.75&&(W*=2),B[0]=Math.ceil(B[0]/W)*W,B[1]=Math.floor(B[1]/W)*W+W*.5,B[2]=W,B}function Jd(C,z){return e.range.apply(e,Zd(C,z))}var ZO={s:1,g:1,p:1,r:1,e:1};function Rx(C){return-Math.floor(Math.log(C)/Math.LN10+.01)}function que(C,z){var B=Rx(z[2]);return C in ZO?Math.abs(B-Rx(Math.max(y(z[0]),y(z[1]))))+ +(C!=="e"):B-(C==="%")*2}e.scale.log=function(){return Dx(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Dx(C,z,B,G){function W(oe){return(B?Math.log(oe<0?0:oe):-Math.log(oe>0?0:-oe))/Math.log(z)}function Z(oe){return B?Math.pow(z,oe):-Math.pow(z,-oe)}function le(oe){return C(W(oe))}return le.invert=function(oe){return Z(C.invert(oe))},le.domain=function(oe){return arguments.length?(B=oe[0]>=0,C.domain((G=oe.map(Number)).map(W)),le):G},le.base=function(oe){return arguments.length?(z=+oe,C.domain(G.map(W)),le):z},le.nice=function(){var oe=Xd(G.map(W),B?Math:JO);return C.domain(oe),G=oe.map(Z),le},le.ticks=function(){var oe=oc(G),fe=[],xe=oe[0],be=oe[1],Fe=Math.floor(W(xe)),Ie=Math.ceil(W(be)),Qe=z%1?2:z;if(isFinite(Ie-Fe)){if(B){for(;Fe0;rr--)fe.push(Z(Fe)*rr);for(Fe=0;fe[Fe]be;Ie--);fe=fe.slice(Fe,Ie)}return fe},le.copy=function(){return Dx(C.copy(),z,B,G)},Ex(le,C)}var JO={floor:function(C){return-Math.ceil(-C)},ceil:function(C){return-Math.floor(-C)}};e.scale.pow=function(){return Px(e.scale.linear(),1,[0,1])};function Px(C,z,B){var G=sc(z),W=sc(1/z);function Z(le){return C(G(le))}return Z.invert=function(le){return W(C.invert(le))},Z.domain=function(le){return arguments.length?(C.domain((B=le.map(Number)).map(G)),Z):B},Z.ticks=function(le){return Jd(B,le)},Z.tickFormat=function(le,oe){return d3_scale_linearTickFormat(B,le,oe)},Z.nice=function(le){return Z.domain(Lx(B,le))},Z.exponent=function(le){return arguments.length?(G=sc(z=le),W=sc(1/z),C.domain(B.map(G)),Z):z},Z.copy=function(){return Px(C.copy(),z,B)},Ex(Z,C)}function sc(C){return function(z){return z<0?-Math.pow(-z,C):Math.pow(z,C)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Fx([],{t:"range",a:[[]]})};function Fx(C,z){var B,G,W;function Z(oe){return G[((B.get(oe)||(z.t==="range"?B.set(oe,C.push(oe)):NaN))-1)%G.length]}function le(oe,fe){return e.range(C.length).map(function(xe){return oe+fe*xe})}return Z.domain=function(oe){if(!arguments.length)return C;C=[],B=new x;for(var fe=-1,xe=oe.length,be;++fe0?B[Z-1]:C[0],ZIe?0:1;if(be=se)return fe(be,rr)+(xe?fe(xe,1-rr):"")+"Z";var Oe,Ve,Xe,er,tr=0,Je=0,or,dr,yr,pr,_r,wr,qr,Tr,Pr=[];if((er=(+le.apply(this,arguments)||0)/2)&&(Xe=G===uc?Math.sqrt(xe*xe+be*be):+G.apply(this,arguments),rr||(Je*=-1),be&&(Je=fr(Xe/be*Math.sin(er))),xe&&(tr=fr(Xe/xe*Math.sin(er)))),be){or=be*Math.cos(Fe+Je),dr=be*Math.sin(Fe+Je),yr=be*Math.cos(Ie-Je),pr=be*Math.sin(Ie-Je);var ut=Math.abs(Ie-Fe-2*Je)<=Ye?0:1;if(Je&&fc(or,dr,yr,pr)===rr^ut){var Bt=(Fe+Ie)/2;or=be*Math.cos(Bt),dr=be*Math.sin(Bt),yr=pr=null}}else or=dr=0;if(xe){_r=xe*Math.cos(Ie-tr),wr=xe*Math.sin(Ie-tr),qr=xe*Math.cos(Fe+tr),Tr=xe*Math.sin(Fe+tr);var dt=Math.abs(Fe-Ie+2*tr)<=Ye?0:1;if(tr&&fc(_r,wr,qr,Tr)===1-rr^dt){var vr=(Fe+Ie)/2;_r=xe*Math.cos(vr),wr=xe*Math.sin(vr),qr=Tr=null}}else _r=wr=0;if(Qe>De&&(Oe=Math.min(Math.abs(be-xe)/2,+B.apply(this,arguments)))>.001){Ve=xe0?0:1}function cc(C,z,B,G,W){var Z=C[0]-z[0],le=C[1]-z[1],oe=(W?G:-G)/Math.sqrt(Z*Z+le*le),fe=oe*le,xe=-oe*Z,be=C[0]+fe,Fe=C[1]+xe,Ie=z[0]+fe,Qe=z[1]+xe,rr=(be+Ie)/2,Oe=(Fe+Qe)/2,Ve=Ie-be,Xe=Qe-Fe,er=Ve*Ve+Xe*Xe,tr=B-G,Je=be*Qe-Ie*Fe,or=(Xe<0?-1:1)*Math.sqrt(Math.max(0,tr*tr*er-Je*Je)),dr=(Je*Xe-Ve*or)/er,yr=(-Je*Ve-Xe*or)/er,pr=(Je*Xe+Ve*or)/er,_r=(-Je*Ve+Xe*or)/er,wr=dr-rr,qr=yr-Oe,Tr=pr-rr,Pr=_r-Oe;return wr*wr+qr*qr>Tr*Tr+Pr*Pr&&(dr=pr,yr=_r),[[dr-fe,yr-xe],[dr*B/tr,yr*B/tr]]}function Ux(){return!0}function Hx(C){var z=xs,B=Zu,G=Ux,W=Xa,Z=W.key,le=.7;function oe(fe){var xe=[],be=[],Fe=-1,Ie=fe.length,Qe,rr=Xr(z),Oe=Xr(B);function Ve(){xe.push("M",W(C(be),le))}for(;++Fe1?C.join("L"):C+"Z"}function Vx(C){return C.join("L")+"Z"}function aB(C){for(var z=0,B=C.length,G=C[0],W=[G[0],",",G[1]];++z1&&W.push("H",G[0]),W.join("")}function Qd(C){for(var z=0,B=C.length,G=C[0],W=[G[0],",",G[1]];++z1){oe=z[1],Z=C[fe],fe++,G+="C"+(W[0]+le[0])+","+(W[1]+le[1])+","+(Z[0]-oe[0])+","+(Z[1]-oe[1])+","+Z[0]+","+Z[1];for(var xe=2;xe9&&(Z=B*3/Math.sqrt(Z),le[oe]=Z*G,le[oe+1]=Z*W));for(oe=-1;++oe<=fe;)Z=(C[Math.min(fe,oe+1)][0]-C[Math.max(0,oe-1)][0])/(6*(1+le[oe]*le[oe])),z.push([Z||0,le[oe]*Z||0]);return z}function hB(C){return C.length<3?Xa(C):C[0]+vc(C,vB(C))}e.svg.line.radial=function(){var C=Hx(Xx);return C.radius=C.x,delete C.x,C.angle=C.y,delete C.y,C};function Xx(C){for(var z,B=-1,G=C.length,W,Z;++BYe)+",1 "+Fe}function xe(be,Fe,Ie,Qe){return"Q 0,0 "+Qe}return Z.radius=function(be){return arguments.length?(B=Xr(be),Z):B},Z.source=function(be){return arguments.length?(C=Xr(be),Z):C},Z.target=function(be){return arguments.length?(z=Xr(be),Z):z},Z.startAngle=function(be){return arguments.length?(G=Xr(be),Z):G},Z.endAngle=function(be){return arguments.length?(W=Xr(be),Z):W},Z};function dB(C){return C.radius}e.svg.diagonal=function(){var C=Jx,z=Kx,B=Qx;function G(W,Z){var le=C.call(this,W,Z),oe=z.call(this,W,Z),fe=(le.y+oe.y)/2,xe=[le,{x:le.x,y:fe},{x:oe.x,y:fe},oe];return xe=xe.map(B),"M"+xe[0]+"C"+xe[1]+" "+xe[2]+" "+xe[3]}return G.source=function(W){return arguments.length?(C=Xr(W),G):C},G.target=function(W){return arguments.length?(z=Xr(W),G):z},G.projection=function(W){return arguments.length?(B=W,G):B},G};function Qx(C){return[C.x,C.y]}e.svg.diagonal.radial=function(){var C=e.svg.diagonal(),z=Qx,B=C.projection;return C.projection=function(G){return arguments.length?B(pB(z=G)):z},C};function pB(C){return function(){var z=C.apply(this,arguments),B=z[0],G=z[1]-J;return[B*Math.cos(G),B*Math.sin(G)]}}e.svg.symbol=function(){var C=yB,z=gB;function B(G,W){return(jx.get(C.call(this,G,W))||$x)(z.call(this,G,W))}return B.type=function(G){return arguments.length?(C=Xr(G),B):C},B.size=function(G){return arguments.length?(z=Xr(G),B):z},B};function gB(){return 64}function yB(){return"circle"}function $x(C){var z=Math.sqrt(C/Ye);return"M0,"+z+"A"+z+","+z+" 0 1,1 0,"+-z+"A"+z+","+z+" 0 1,1 0,"+z+"Z"}var jx=e.map({circle:$x,cross:function(C){var z=Math.sqrt(C/5)/2;return"M"+-3*z+","+-z+"H"+-z+"V"+-3*z+"H"+z+"V"+-z+"H"+3*z+"V"+z+"H"+z+"V"+3*z+"H"+-z+"V"+z+"H"+-3*z+"Z"},diamond:function(C){var z=Math.sqrt(C/(2*eb)),B=z*eb;return"M0,"+-z+"L"+B+",0 0,"+z+" "+-B+",0Z"},square:function(C){var z=Math.sqrt(C)/2;return"M"+-z+","+-z+"L"+z+","+-z+" "+z+","+z+" "+-z+","+z+"Z"},"triangle-down":function(C){var z=Math.sqrt(C/hc),B=z*hc/2;return"M0,"+B+"L"+z+","+-B+" "+-z+","+-B+"Z"},"triangle-up":function(C){var z=Math.sqrt(C/hc),B=z*hc/2;return"M0,"+-B+"L"+z+","+B+" "+-z+","+B+"Z"}});e.svg.symbolTypes=jx.keys();var hc=Math.sqrt(3),eb=Math.tan(30*ae);ee.transition=function(C){for(var z=yl||++tb,B=np(C),G=[],W,Z,le=pc||{time:Date.now(),ease:Jq,delay:0,duration:250},oe=-1,fe=this.length;++oe0;)Fe[--er].call(C,Xe);if(Ve>=1)return le.event&&le.event.end.call(C,C.__data__,z),--Z.count?delete Z[G]:delete C[B],1}le||(oe=W.time,fe=j0(Ie,0,oe),le=Z[G]={tween:new x,time:oe,timer:fe,delay:W.delay,duration:W.duration,ease:W.ease,index:z},W=null,++Z.count)}e.svg.axis=function(){var C=e.scale.linear(),z=nb,B=6,G=6,W=3,Z=[10],le=null,oe;function fe(xe){xe.each(function(){var be=e.select(this),Fe=this.__chart__||C,Ie=this.__chart__=C.copy(),Qe=le==null?Ie.ticks?Ie.ticks.apply(Ie,Z):Ie.domain():le,rr=oe==null?Ie.tickFormat?Ie.tickFormat.apply(Ie,Z):N:oe,Oe=be.selectAll(".tick").data(Qe,Ie),Ve=Oe.enter().insert("g",".domain").attr("class","tick").style("opacity",De),Xe=e.transition(Oe.exit()).style("opacity",De).remove(),er=e.transition(Oe.order()).style("opacity",1),tr=Math.max(B,0)+W,Je,or=lc(Ie),dr=be.selectAll(".domain").data([0]),yr=(dr.enter().append("path").attr("class","domain"),e.transition(dr));Ve.append("line"),Ve.append("text");var pr=Ve.select("line"),_r=er.select("line"),wr=Oe.select("text").text(rr),qr=Ve.select("text"),Tr=er.select("text"),Pr=z==="top"||z==="left"?-1:1,ut,Bt,dt,vr;if(z==="bottom"||z==="top"?(Je=bB,ut="x",dt="y",Bt="x2",vr="y2",wr.attr("dy",Pr<0?"0em":".71em").style("text-anchor","middle"),yr.attr("d","M"+or[0]+","+Pr*G+"V0H"+or[1]+"V"+Pr*G)):(Je=_B,ut="y",dt="x",Bt="y2",vr="x2",wr.attr("dy",".32em").style("text-anchor",Pr<0?"end":"start"),yr.attr("d","M"+Pr*G+","+or[0]+"H0V"+or[1]+"H"+Pr*G)),pr.attr(vr,Pr*B),qr.attr(dt,Pr*tr),_r.attr(Bt,0).attr(vr,Pr*B),Tr.attr(ut,0).attr(dt,Pr*tr),Ie.rangeBand){var Or=Ie,Vr=Or.rangeBand()/2;Fe=Ie=function(ft){return Or(ft)+Vr}}else Fe.rangeBand?Fe=Ie:Xe.call(Je,Ie,Fe);Ve.call(Je,Fe,Ie),er.call(Je,Ie,Ie)})}return fe.scale=function(xe){return arguments.length?(C=xe,fe):C},fe.orient=function(xe){return arguments.length?(z=xe in xB?xe+"":nb,fe):z},fe.ticks=function(){return arguments.length?(Z=t(arguments),fe):Z},fe.tickValues=function(xe){return arguments.length?(le=xe,fe):le},fe.tickFormat=function(xe){return arguments.length?(oe=xe,fe):oe},fe.tickSize=function(xe){var be=arguments.length;return be?(B=+xe,G=+arguments[be-1],fe):B},fe.innerTickSize=function(xe){return arguments.length?(B=+xe,fe):B},fe.outerTickSize=function(xe){return arguments.length?(G=+xe,fe):G},fe.tickPadding=function(xe){return arguments.length?(W=+xe,fe):W},fe.tickSubdivide=function(){return arguments.length&&fe},fe};var nb="bottom",xB={top:1,right:1,bottom:1,left:1};function bB(C,z,B){C.attr("transform",function(G){var W=z(G);return"translate("+(isFinite(W)?W:B(G))+",0)"})}function _B(C,z,B){C.attr("transform",function(G){var W=z(G);return"translate(0,"+(isFinite(W)?W:B(G))+")"})}e.svg.brush=function(){var C=j(be,"brushstart","brush","brushend"),z=null,B=null,G=[0,0],W=[0,0],Z,le,oe=!0,fe=!0,xe=ap[0];function be(Oe){Oe.each(function(){var Ve=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",rr).on("touchstart.brush",rr),Xe=Ve.selectAll(".background").data([0]);Xe.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Ve.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var er=Ve.selectAll(".resize").data(xe,N);er.exit().remove(),er.enter().append("g").attr("class",function(dr){return"resize "+dr}).style("cursor",function(dr){return wB[dr]}).append("rect").attr("x",function(dr){return/[ew]$/.test(dr)?-3:null}).attr("y",function(dr){return/^[ns]/.test(dr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),er.style("display",be.empty()?"none":null);var tr=e.transition(Ve),Je=e.transition(Xe),or;z&&(or=lc(z),Je.attr("x",or[0]).attr("width",or[1]-or[0]),Ie(tr)),B&&(or=lc(B),Je.attr("y",or[0]).attr("height",or[1]-or[0]),Qe(tr)),Fe(tr)})}be.event=function(Oe){Oe.each(function(){var Ve=C.of(this,arguments),Xe={x:G,y:W,i:Z,j:le},er=this.__chart__||Xe;this.__chart__=Xe,yl?e.select(this).transition().each("start.brush",function(){Z=er.i,le=er.j,G=er.x,W=er.y,Ve({type:"brushstart"})}).tween("brush:brush",function(){var tr=ic(G,Xe.x),Je=ic(W,Xe.y);return Z=le=null,function(or){G=Xe.x=tr(or),W=Xe.y=Je(or),Ve({type:"brush",mode:"resize"})}}).each("end.brush",function(){Z=Xe.i,le=Xe.j,Ve({type:"brush",mode:"resize"}),Ve({type:"brushend"})}):(Ve({type:"brushstart"}),Ve({type:"brush",mode:"resize"}),Ve({type:"brushend"}))})};function Fe(Oe){Oe.selectAll(".resize").attr("transform",function(Ve){return"translate("+G[+/e$/.test(Ve)]+","+W[+/^s/.test(Ve)]+")"})}function Ie(Oe){Oe.select(".extent").attr("x",G[0]),Oe.selectAll(".extent,.n>rect,.s>rect").attr("width",G[1]-G[0])}function Qe(Oe){Oe.select(".extent").attr("y",W[0]),Oe.selectAll(".extent,.e>rect,.w>rect").attr("height",W[1]-W[0])}function rr(){var Oe=this,Ve=e.select(e.event.target),Xe=C.of(Oe,arguments),er=e.select(Oe),tr=Ve.datum(),Je=!/^(n|s)$/.test(tr)&&z,or=!/^(e|w)$/.test(tr)&&B,dr=Ve.classed("extent"),yr=We(Oe),pr,_r=e.mouse(Oe),wr,qr=e.select(o(Oe)).on("keydown.brush",ut).on("keyup.brush",Bt);if(e.event.changedTouches?qr.on("touchmove.brush",dt).on("touchend.brush",Or):qr.on("mousemove.brush",dt).on("mouseup.brush",Or),er.interrupt().selectAll("*").interrupt(),dr)_r[0]=G[0]-_r[0],_r[1]=W[0]-_r[1];else if(tr){var Tr=+/w$/.test(tr),Pr=+/^n/.test(tr);wr=[G[1-Tr]-_r[0],W[1-Pr]-_r[1]],_r[0]=G[Tr],_r[1]=W[Pr]}else e.event.altKey&&(pr=_r.slice());er.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Ve.style("cursor")),Xe({type:"brushstart"}),dt();function ut(){e.event.keyCode==32&&(dr||(pr=null,_r[0]-=G[1],_r[1]-=W[1],dr=2),X())}function Bt(){e.event.keyCode==32&&dr==2&&(_r[0]+=G[1],_r[1]+=W[1],dr=0,X())}function dt(){var Vr=e.mouse(Oe),ft=!1;wr&&(Vr[0]+=wr[0],Vr[1]+=wr[1]),dr||(e.event.altKey?(pr||(pr=[(G[0]+G[1])/2,(W[0]+W[1])/2]),_r[0]=G[+(Vr[0]{(function(e,r){typeof _c=="object"&&typeof fb!="undefined"?r(_c):(e=e||self,r(e.d3=e.d3||{}))})(_c,function(e){"use strict";var r=new Date,t=new Date;function n(ge,we,Me,me){function Re(ce){return ge(ce=arguments.length===0?new Date:new Date(+ce)),ce}return Re.floor=function(ce){return ge(ce=new Date(+ce)),ce},Re.ceil=function(ce){return ge(ce=new Date(ce-1)),we(ce,1),ge(ce),ce},Re.round=function(ce){var he=Re(ce),ye=Re.ceil(ce);return ce-he0))return Ce;do Ce.push(ze=new Date(+ce)),we(ce,ye),ge(ce);while(ze=he)for(;ge(he),!ce(he);)he.setTime(he-1)},function(he,ye){if(he>=he)if(ye<0)for(;++ye<=0;)for(;we(he,-1),!ce(he););else for(;--ye>=0;)for(;we(he,1),!ce(he););})},Me&&(Re.count=function(ce,he){return r.setTime(+ce),t.setTime(+he),ge(r),ge(t),Math.floor(Me(r,t))},Re.every=function(ce){return ce=Math.floor(ce),!isFinite(ce)||!(ce>0)?null:ce>1?Re.filter(me?function(he){return me(he)%ce===0}:function(he){return Re.count(0,he)%ce===0}):Re}),Re}var a=n(function(){},function(ge,we){ge.setTime(+ge+we)},function(ge,we){return we-ge});a.every=function(ge){return ge=Math.floor(ge),!isFinite(ge)||!(ge>0)?null:ge>1?n(function(we){we.setTime(Math.floor(we/ge)*ge)},function(we,Me){we.setTime(+we+Me*ge)},function(we,Me){return(Me-we)/ge}):a};var o=a.range,i=1e3,l=6e4,u=36e5,s=864e5,f=6048e5,v=n(function(ge){ge.setTime(ge-ge.getMilliseconds())},function(ge,we){ge.setTime(+ge+we*i)},function(ge,we){return(we-ge)/i},function(ge){return ge.getUTCSeconds()}),p=v.range,b=n(function(ge){ge.setTime(ge-ge.getMilliseconds()-ge.getSeconds()*i)},function(ge,we){ge.setTime(+ge+we*l)},function(ge,we){return(we-ge)/l},function(ge){return ge.getMinutes()}),m=b.range,w=n(function(ge){ge.setTime(ge-ge.getMilliseconds()-ge.getSeconds()*i-ge.getMinutes()*l)},function(ge,we){ge.setTime(+ge+we*u)},function(ge,we){return(we-ge)/u},function(ge){return ge.getHours()}),M=w.range,y=n(function(ge){ge.setHours(0,0,0,0)},function(ge,we){ge.setDate(ge.getDate()+we)},function(ge,we){return(we-ge-(we.getTimezoneOffset()-ge.getTimezoneOffset())*l)/s},function(ge){return ge.getDate()-1}),k=y.range;function S(ge){return n(function(we){we.setDate(we.getDate()-(we.getDay()+7-ge)%7),we.setHours(0,0,0,0)},function(we,Me){we.setDate(we.getDate()+Me*7)},function(we,Me){return(Me-we-(Me.getTimezoneOffset()-we.getTimezoneOffset())*l)/f})}var x=S(0),T=S(1),d=S(2),_=S(3),g=S(4),c=S(5),A=S(6),h=x.range,R=T.range,E=d.range,D=_.range,N=g.range,I=c.range,F=A.range,L=n(function(ge){ge.setDate(1),ge.setHours(0,0,0,0)},function(ge,we){ge.setMonth(ge.getMonth()+we)},function(ge,we){return we.getMonth()-ge.getMonth()+(we.getFullYear()-ge.getFullYear())*12},function(ge){return ge.getMonth()}),P=L.range,O=n(function(ge){ge.setMonth(0,1),ge.setHours(0,0,0,0)},function(ge,we){ge.setFullYear(ge.getFullYear()+we)},function(ge,we){return we.getFullYear()-ge.getFullYear()},function(ge){return ge.getFullYear()});O.every=function(ge){return!isFinite(ge=Math.floor(ge))||!(ge>0)?null:n(function(we){we.setFullYear(Math.floor(we.getFullYear()/ge)*ge),we.setMonth(0,1),we.setHours(0,0,0,0)},function(we,Me){we.setFullYear(we.getFullYear()+Me*ge)})};var U=O.range,X=n(function(ge){ge.setUTCSeconds(0,0)},function(ge,we){ge.setTime(+ge+we*l)},function(ge,we){return(we-ge)/l},function(ge){return ge.getUTCMinutes()}),$=X.range,j=n(function(ge){ge.setUTCMinutes(0,0,0)},function(ge,we){ge.setTime(+ge+we*u)},function(ge,we){return(we-ge)/u},function(ge){return ge.getUTCHours()}),Y=j.range,q=n(function(ge){ge.setUTCHours(0,0,0,0)},function(ge,we){ge.setUTCDate(ge.getUTCDate()+we)},function(ge,we){return(we-ge)/s},function(ge){return ge.getUTCDate()-1}),Q=q.range;function ne(ge){return n(function(we){we.setUTCDate(we.getUTCDate()-(we.getUTCDay()+7-ge)%7),we.setUTCHours(0,0,0,0)},function(we,Me){we.setUTCDate(we.getUTCDate()+Me*7)},function(we,Me){return(Me-we)/f})}var K=ne(0),ie=ne(1),ee=ne(2),V=ne(3),re=ne(4),H=ne(5),te=ne(6),ue=K.range,de=ie.range,ke=ee.range,Ae=V.range,ve=re.range,Te=H.range,Ee=te.range,Pe=n(function(ge){ge.setUTCDate(1),ge.setUTCHours(0,0,0,0)},function(ge,we){ge.setUTCMonth(ge.getUTCMonth()+we)},function(ge,we){return we.getUTCMonth()-ge.getUTCMonth()+(we.getUTCFullYear()-ge.getUTCFullYear())*12},function(ge){return ge.getUTCMonth()}),Se=Pe.range,Ne=n(function(ge){ge.setUTCMonth(0,1),ge.setUTCHours(0,0,0,0)},function(ge,we){ge.setUTCFullYear(ge.getUTCFullYear()+we)},function(ge,we){return we.getUTCFullYear()-ge.getUTCFullYear()},function(ge){return ge.getUTCFullYear()});Ne.every=function(ge){return!isFinite(ge=Math.floor(ge))||!(ge>0)?null:n(function(we){we.setUTCFullYear(Math.floor(we.getUTCFullYear()/ge)*ge),we.setUTCMonth(0,1),we.setUTCHours(0,0,0,0)},function(we,Me){we.setUTCFullYear(we.getUTCFullYear()+Me*ge)})};var Be=Ne.range;e.timeDay=y,e.timeDays=k,e.timeFriday=c,e.timeFridays=I,e.timeHour=w,e.timeHours=M,e.timeInterval=n,e.timeMillisecond=a,e.timeMilliseconds=o,e.timeMinute=b,e.timeMinutes=m,e.timeMonday=T,e.timeMondays=R,e.timeMonth=L,e.timeMonths=P,e.timeSaturday=A,e.timeSaturdays=F,e.timeSecond=v,e.timeSeconds=p,e.timeSunday=x,e.timeSundays=h,e.timeThursday=g,e.timeThursdays=N,e.timeTuesday=d,e.timeTuesdays=E,e.timeWednesday=_,e.timeWednesdays=D,e.timeWeek=x,e.timeWeeks=h,e.timeYear=O,e.timeYears=U,e.utcDay=q,e.utcDays=Q,e.utcFriday=H,e.utcFridays=Te,e.utcHour=j,e.utcHours=Y,e.utcMillisecond=a,e.utcMilliseconds=o,e.utcMinute=X,e.utcMinutes=$,e.utcMonday=ie,e.utcMondays=de,e.utcMonth=Pe,e.utcMonths=Se,e.utcSaturday=te,e.utcSaturdays=Ee,e.utcSecond=v,e.utcSeconds=p,e.utcSunday=K,e.utcSundays=ue,e.utcThursday=re,e.utcThursdays=ve,e.utcTuesday=ee,e.utcTuesdays=ke,e.utcWednesday=V,e.utcWednesdays=Ae,e.utcWeek=K,e.utcWeeks=ue,e.utcYear=Ne,e.utcYears=Be,Object.defineProperty(e,"__esModule",{value:!0})})});var ks=pe((wc,cb)=>{(function(e,r){typeof wc=="object"&&typeof cb!="undefined"?r(wc,ip()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(wc,function(e,r){"use strict";function t(_e){if(0<=_e.y&&_e.y<100){var De=new Date(-1,_e.m,_e.d,_e.H,_e.M,_e.S,_e.L);return De.setFullYear(_e.y),De}return new Date(_e.y,_e.m,_e.d,_e.H,_e.M,_e.S,_e.L)}function n(_e){if(0<=_e.y&&_e.y<100){var De=new Date(Date.UTC(-1,_e.m,_e.d,_e.H,_e.M,_e.S,_e.L));return De.setUTCFullYear(_e.y),De}return new Date(Date.UTC(_e.y,_e.m,_e.d,_e.H,_e.M,_e.S,_e.L))}function a(_e,De,Ke){return{y:_e,m:De,d:Ke,H:0,M:0,S:0,L:0}}function o(_e){var De=_e.dateTime,Ke=_e.date,Ye=_e.time,ar=_e.periods,se=_e.days,J=_e.shortDays,ae=_e.months,Le=_e.shortMonths,He=p(ar),je=b(ar),nr=p(se),fr=b(se),br=p(J),Sr=b(J),Mr=p(ae),Ar=b(ae),nt=p(Le),Yr=b(Le),mr={a:va,A:Kn,b:Fn,B:Ma,c:null,d:L,e:L,f:$,H:P,I:O,j:U,L:X,m:j,M:Y,p:xi,q:Gi,Q:he,s:ye,S:q,u:Q,U:ne,V:K,w:ie,W:ee,x:null,X:null,y:V,Y:re,Z:H,"%":ce},ct={a:Yi,A:Wi,b:nn,B:xo,c:null,d:te,e:te,f:ve,H:ue,I:de,j:ke,L:Ae,m:Te,M:Ee,p:bi,q:_i,Q:he,s:ye,S:Pe,u:Se,U:Ne,V:Be,w:ge,W:we,x:null,X:null,y:Me,Y:me,Z:Re,"%":ce},Cr={a:Ot,A:Lt,b:yn,B:Gt,c:Rt,d:g,e:g,f:D,H:A,I:A,j:c,L:E,m:_,M:h,p:Hr,q:d,Q:I,s:F,S:R,u:w,U:M,V:y,w:m,W:k,x:at,X:It,y:x,Y:S,Z:T,"%":N};mr.x=Ur(Ke,mr),mr.X=Ur(Ye,mr),mr.c=Ur(De,mr),ct.x=Ur(Ke,ct),ct.X=Ur(Ye,ct),ct.c=Ur(De,ct);function Ur(kr,it){return function(vt){var gr=[],mn=-1,bt=0,xn=kr.length,Xr,Wa,hl;for(vt instanceof Date||(vt=new Date(+vt));++mn53)return null;"w"in gr||(gr.w=1),"Z"in gr?(bt=n(a(gr.y,0,1)),xn=bt.getUTCDay(),bt=xn>4||xn===0?r.utcMonday.ceil(bt):r.utcMonday(bt),bt=r.utcDay.offset(bt,(gr.V-1)*7),gr.y=bt.getUTCFullYear(),gr.m=bt.getUTCMonth(),gr.d=bt.getUTCDate()+(gr.w+6)%7):(bt=t(a(gr.y,0,1)),xn=bt.getDay(),bt=xn>4||xn===0?r.timeMonday.ceil(bt):r.timeMonday(bt),bt=r.timeDay.offset(bt,(gr.V-1)*7),gr.y=bt.getFullYear(),gr.m=bt.getMonth(),gr.d=bt.getDate()+(gr.w+6)%7)}else("W"in gr||"U"in gr)&&("w"in gr||(gr.w="u"in gr?gr.u%7:"W"in gr?1:0),xn="Z"in gr?n(a(gr.y,0,1)).getUTCDay():t(a(gr.y,0,1)).getDay(),gr.m=0,gr.d="W"in gr?(gr.w+6)%7+gr.W*7-(xn+5)%7:gr.w+gr.U*7-(xn+6)%7);return"Z"in gr?(gr.H+=gr.Z/100|0,gr.M+=gr.Z%100,n(gr)):t(gr)}}function zr(kr,it,vt,gr){for(var mn=0,bt=it.length,xn=vt.length,Xr,Wa;mn=xn)return-1;if(Xr=it.charCodeAt(mn++),Xr===37){if(Xr=it.charAt(mn++),Wa=Cr[Xr in i?it.charAt(mn++):Xr],!Wa||(gr=Wa(kr,vt,gr))<0)return-1}else if(Xr!=vt.charCodeAt(gr++))return-1}return gr}function Hr(kr,it,vt){var gr=He.exec(it.slice(vt));return gr?(kr.p=je[gr[0].toLowerCase()],vt+gr[0].length):-1}function Ot(kr,it,vt){var gr=br.exec(it.slice(vt));return gr?(kr.w=Sr[gr[0].toLowerCase()],vt+gr[0].length):-1}function Lt(kr,it,vt){var gr=nr.exec(it.slice(vt));return gr?(kr.w=fr[gr[0].toLowerCase()],vt+gr[0].length):-1}function yn(kr,it,vt){var gr=nt.exec(it.slice(vt));return gr?(kr.m=Yr[gr[0].toLowerCase()],vt+gr[0].length):-1}function Gt(kr,it,vt){var gr=Mr.exec(it.slice(vt));return gr?(kr.m=Ar[gr[0].toLowerCase()],vt+gr[0].length):-1}function Rt(kr,it,vt){return zr(kr,De,it,vt)}function at(kr,it,vt){return zr(kr,Ke,it,vt)}function It(kr,it,vt){return zr(kr,Ye,it,vt)}function va(kr){return J[kr.getDay()]}function Kn(kr){return se[kr.getDay()]}function Fn(kr){return Le[kr.getMonth()]}function Ma(kr){return ae[kr.getMonth()]}function xi(kr){return ar[+(kr.getHours()>=12)]}function Gi(kr){return 1+~~(kr.getMonth()/3)}function Yi(kr){return J[kr.getUTCDay()]}function Wi(kr){return se[kr.getUTCDay()]}function nn(kr){return Le[kr.getUTCMonth()]}function xo(kr){return ae[kr.getUTCMonth()]}function bi(kr){return ar[+(kr.getUTCHours()>=12)]}function _i(kr){return 1+~~(kr.getUTCMonth()/3)}return{format:function(kr){var it=Ur(kr+="",mr);return it.toString=function(){return kr},it},parse:function(kr){var it=xt(kr+="",!1);return it.toString=function(){return kr},it},utcFormat:function(kr){var it=Ur(kr+="",ct);return it.toString=function(){return kr},it},utcParse:function(kr){var it=xt(kr+="",!0);return it.toString=function(){return kr},it}}}var i={"-":"",_:" ",0:"0"},l=/^\s*\d+/,u=/^%/,s=/[\\^$*+?|[\]().{}]/g;function f(_e,De,Ke){var Ye=_e<0?"-":"",ar=(Ye?-_e:_e)+"",se=ar.length;return Ye+(se68?1900:2e3),Ke+Ye[0].length):-1}function T(_e,De,Ke){var Ye=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(De.slice(Ke,Ke+6));return Ye?(_e.Z=Ye[1]?0:-(Ye[2]+(Ye[3]||"00")),Ke+Ye[0].length):-1}function d(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+1));return Ye?(_e.q=Ye[0]*3-3,Ke+Ye[0].length):-1}function _(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+2));return Ye?(_e.m=Ye[0]-1,Ke+Ye[0].length):-1}function g(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+2));return Ye?(_e.d=+Ye[0],Ke+Ye[0].length):-1}function c(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+3));return Ye?(_e.m=0,_e.d=+Ye[0],Ke+Ye[0].length):-1}function A(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+2));return Ye?(_e.H=+Ye[0],Ke+Ye[0].length):-1}function h(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+2));return Ye?(_e.M=+Ye[0],Ke+Ye[0].length):-1}function R(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+2));return Ye?(_e.S=+Ye[0],Ke+Ye[0].length):-1}function E(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+3));return Ye?(_e.L=+Ye[0],Ke+Ye[0].length):-1}function D(_e,De,Ke){var Ye=l.exec(De.slice(Ke,Ke+6));return Ye?(_e.L=Math.floor(Ye[0]/1e3),Ke+Ye[0].length):-1}function N(_e,De,Ke){var Ye=u.exec(De.slice(Ke,Ke+1));return Ye?Ke+Ye[0].length:-1}function I(_e,De,Ke){var Ye=l.exec(De.slice(Ke));return Ye?(_e.Q=+Ye[0],Ke+Ye[0].length):-1}function F(_e,De,Ke){var Ye=l.exec(De.slice(Ke));return Ye?(_e.s=+Ye[0],Ke+Ye[0].length):-1}function L(_e,De){return f(_e.getDate(),De,2)}function P(_e,De){return f(_e.getHours(),De,2)}function O(_e,De){return f(_e.getHours()%12||12,De,2)}function U(_e,De){return f(1+r.timeDay.count(r.timeYear(_e),_e),De,3)}function X(_e,De){return f(_e.getMilliseconds(),De,3)}function $(_e,De){return X(_e,De)+"000"}function j(_e,De){return f(_e.getMonth()+1,De,2)}function Y(_e,De){return f(_e.getMinutes(),De,2)}function q(_e,De){return f(_e.getSeconds(),De,2)}function Q(_e){var De=_e.getDay();return De===0?7:De}function ne(_e,De){return f(r.timeSunday.count(r.timeYear(_e)-1,_e),De,2)}function K(_e,De){var Ke=_e.getDay();return _e=Ke>=4||Ke===0?r.timeThursday(_e):r.timeThursday.ceil(_e),f(r.timeThursday.count(r.timeYear(_e),_e)+(r.timeYear(_e).getDay()===4),De,2)}function ie(_e){return _e.getDay()}function ee(_e,De){return f(r.timeMonday.count(r.timeYear(_e)-1,_e),De,2)}function V(_e,De){return f(_e.getFullYear()%100,De,2)}function re(_e,De){return f(_e.getFullYear()%1e4,De,4)}function H(_e){var De=_e.getTimezoneOffset();return(De>0?"-":(De*=-1,"+"))+f(De/60|0,"0",2)+f(De%60,"0",2)}function te(_e,De){return f(_e.getUTCDate(),De,2)}function ue(_e,De){return f(_e.getUTCHours(),De,2)}function de(_e,De){return f(_e.getUTCHours()%12||12,De,2)}function ke(_e,De){return f(1+r.utcDay.count(r.utcYear(_e),_e),De,3)}function Ae(_e,De){return f(_e.getUTCMilliseconds(),De,3)}function ve(_e,De){return Ae(_e,De)+"000"}function Te(_e,De){return f(_e.getUTCMonth()+1,De,2)}function Ee(_e,De){return f(_e.getUTCMinutes(),De,2)}function Pe(_e,De){return f(_e.getUTCSeconds(),De,2)}function Se(_e){var De=_e.getUTCDay();return De===0?7:De}function Ne(_e,De){return f(r.utcSunday.count(r.utcYear(_e)-1,_e),De,2)}function Be(_e,De){var Ke=_e.getUTCDay();return _e=Ke>=4||Ke===0?r.utcThursday(_e):r.utcThursday.ceil(_e),f(r.utcThursday.count(r.utcYear(_e),_e)+(r.utcYear(_e).getUTCDay()===4),De,2)}function ge(_e){return _e.getUTCDay()}function we(_e,De){return f(r.utcMonday.count(r.utcYear(_e)-1,_e),De,2)}function Me(_e,De){return f(_e.getUTCFullYear()%100,De,2)}function me(_e,De){return f(_e.getUTCFullYear()%1e4,De,4)}function Re(){return"+0000"}function ce(){return"%"}function he(_e){return+_e}function ye(_e){return Math.floor(+_e/1e3)}var Ce;ze({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function ze(_e){return Ce=o(_e),e.timeFormat=Ce.format,e.timeParse=Ce.parse,e.utcFormat=Ce.utcFormat,e.utcParse=Ce.utcParse,Ce}var qe="%Y-%m-%dT%H:%M:%S.%LZ";function $e(_e){return _e.toISOString()}var We=Date.prototype.toISOString?$e:e.utcFormat(qe);function Ue(_e){var De=new Date(_e);return isNaN(De)?null:De}var Ge=+new Date("2000-01-01T00:00:00.000Z")?Ue:e.utcParse(qe);e.isoFormat=We,e.isoParse=Ge,e.timeFormatDefaultLocale=ze,e.timeFormatLocale=o,Object.defineProperty(e,"__esModule",{value:!0})})});var op=pe((Mc,vb)=>{(function(e,r){typeof Mc=="object"&&typeof vb!="undefined"?r(Mc):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Mc,function(e){"use strict";function r(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)}function t(_,g){if((c=(_=g?_.toExponential(g-1):_.toExponential()).indexOf("e"))<0)return null;var c,A=_.slice(0,c);return[A.length>1?A[0]+A.slice(2):A,+_.slice(c+1)]}function n(_){return _=t(Math.abs(_)),_?_[1]:NaN}function a(_,g){return function(c,A){for(var h=c.length,R=[],E=0,D=_[0],N=0;h>0&&D>0&&(N+D+1>A&&(D=Math.max(1,A-N)),R.push(c.substring(h-=D,h+D)),!((N+=D+1)>A));)D=_[E=(E+1)%_.length];return R.reverse().join(g)}}function o(_){return function(g){return g.replace(/[0-9]/g,function(c){return _[+c]})}}var i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(_){if(!(g=i.exec(_)))throw new Error("invalid format: "+_);var g;return new u({fill:g[1],align:g[2],sign:g[3],symbol:g[4],zero:g[5],width:g[6],comma:g[7],precision:g[8]&&g[8].slice(1),trim:g[9],type:g[10]})}l.prototype=u.prototype;function u(_){this.fill=_.fill===void 0?" ":_.fill+"",this.align=_.align===void 0?">":_.align+"",this.sign=_.sign===void 0?"-":_.sign+"",this.symbol=_.symbol===void 0?"":_.symbol+"",this.zero=!!_.zero,this.width=_.width===void 0?void 0:+_.width,this.comma=!!_.comma,this.precision=_.precision===void 0?void 0:+_.precision,this.trim=!!_.trim,this.type=_.type===void 0?"":_.type+""}u.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function s(_){e:for(var g=_.length,c=1,A=-1,h;c0&&(A=0);break}return A>0?_.slice(0,A)+_.slice(h+1):_}var f;function v(_,g){var c=t(_,g);if(!c)return _+"";var A=c[0],h=c[1],R=h-(f=Math.max(-8,Math.min(8,Math.floor(h/3)))*3)+1,E=A.length;return R===E?A:R>E?A+new Array(R-E+1).join("0"):R>0?A.slice(0,R)+"."+A.slice(R):"0."+new Array(1-R).join("0")+t(_,Math.max(0,g+R-1))[0]}function p(_,g){var c=t(_,g);if(!c)return _+"";var A=c[0],h=c[1];return h<0?"0."+new Array(-h).join("0")+A:A.length>h+1?A.slice(0,h+1)+"."+A.slice(h+1):A+new Array(h-A.length+2).join("0")}var b={"%":function(_,g){return(_*100).toFixed(g)},b:function(_){return Math.round(_).toString(2)},c:function(_){return _+""},d:r,e:function(_,g){return _.toExponential(g)},f:function(_,g){return _.toFixed(g)},g:function(_,g){return _.toPrecision(g)},o:function(_){return Math.round(_).toString(8)},p:function(_,g){return p(_*100,g)},r:p,s:v,X:function(_){return Math.round(_).toString(16).toUpperCase()},x:function(_){return Math.round(_).toString(16)}};function m(_){return _}var w=Array.prototype.map,M=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function y(_){var g=_.grouping===void 0||_.thousands===void 0?m:a(w.call(_.grouping,Number),_.thousands+""),c=_.currency===void 0?"":_.currency[0]+"",A=_.currency===void 0?"":_.currency[1]+"",h=_.decimal===void 0?".":_.decimal+"",R=_.numerals===void 0?m:o(w.call(_.numerals,String)),E=_.percent===void 0?"%":_.percent+"",D=_.minus===void 0?"-":_.minus+"",N=_.nan===void 0?"NaN":_.nan+"";function I(L){L=l(L);var P=L.fill,O=L.align,U=L.sign,X=L.symbol,$=L.zero,j=L.width,Y=L.comma,q=L.precision,Q=L.trim,ne=L.type;ne==="n"?(Y=!0,ne="g"):b[ne]||(q===void 0&&(q=12),Q=!0,ne="g"),($||P==="0"&&O==="=")&&($=!0,P="0",O="=");var K=X==="$"?c:X==="#"&&/[boxX]/.test(ne)?"0"+ne.toLowerCase():"",ie=X==="$"?A:/[%p]/.test(ne)?E:"",ee=b[ne],V=/[defgprs%]/.test(ne);q=q===void 0?6:/[gprs]/.test(ne)?Math.max(1,Math.min(21,q)):Math.max(0,Math.min(20,q));function re(H){var te=K,ue=ie,de,ke,Ae;if(ne==="c")ue=ee(H)+ue,H="";else{H=+H;var ve=H<0||1/H<0;if(H=isNaN(H)?N:ee(Math.abs(H),q),Q&&(H=s(H)),ve&&+H==0&&U!=="+"&&(ve=!1),te=(ve?U==="("?U:D:U==="-"||U==="("?"":U)+te,ue=(ne==="s"?M[8+f/3]:"")+ue+(ve&&U==="("?")":""),V){for(de=-1,ke=H.length;++deAe||Ae>57){ue=(Ae===46?h+H.slice(de+1):H.slice(de))+ue,H=H.slice(0,de);break}}}Y&&!$&&(H=g(H,1/0));var Te=te.length+H.length+ue.length,Ee=Te>1)+te+H+ue+Ee.slice(Te);break;default:H=Ee+te+H+ue;break}return R(H)}return re.toString=function(){return L+""},re}function F(L,P){var O=I((L=l(L),L.type="f",L)),U=Math.max(-8,Math.min(8,Math.floor(n(P)/3)))*3,X=Math.pow(10,-U),$=M[8+U/3];return function(j){return O(X*j)+$}}return{format:I,formatPrefix:F}}var k;S({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function S(_){return k=y(_),e.format=k.format,e.formatPrefix=k.formatPrefix,k}function x(_){return Math.max(0,-n(Math.abs(_)))}function T(_,g){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(g)/3)))*3-n(Math.abs(_)))}function d(_,g){return _=Math.abs(_),g=Math.abs(g)-_,Math.max(0,n(g)-n(_))+1}e.FormatSpecifier=u,e.formatDefaultLocale=S,e.formatLocale=y,e.formatSpecifier=l,e.precisionFixed=x,e.precisionPrefix=T,e.precisionRound=d,Object.defineProperty(e,"__esModule",{value:!0})})});var db=pe((Hue,hb)=>{"use strict";hb.exports=function(e){for(var r=e.length,t,n=0;n13)&&t!==32&&t!==133&&t!==160&&t!==5760&&t!==6158&&(t<8192||t>8205)&&t!==8232&&t!==8233&&t!==8239&&t!==8287&&t!==8288&&t!==12288&&t!==65279)return!1;return!0}});var rt=pe((Vue,pb)=>{"use strict";var RB=db();pb.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&RB(t))return!1}else if(r!=="number")return!1;return e-e<1}});var an=pe((Gue,gb)=>{"use strict";gb.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var lp=pe((Tc,yb)=>{(function(e,r){typeof Tc=="object"&&typeof yb!="undefined"?r(Tc):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Tc,function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],f+=r[(l[u]&3)<<4|l[u+1]>>4],f+=r[(l[u+1]&15)<<2|l[u+2]>>6],f+=r[l[u+2]&63];return s%3===2?f=f.substring(0,f.length-1)+"=":s%3===1&&(f=f.substring(0,f.length-2)+"=="),f},o=function(i){var l=i.length*.75,u=i.length,s,f=0,v,p,b,m;i[i.length-1]==="="&&(l--,i[i.length-2]==="="&&l--);var w=new ArrayBuffer(l),M=new Uint8Array(w);for(s=0;s>4,M[f++]=(p&15)<<4|b>>2,M[f++]=(b&3)<<6|m&63;return w};e.decode=o,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})})});var wo=pe((Yue,mb)=>{"use strict";mb.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var jn=pe(Ja=>{"use strict";var DB=lp().decode,PB=wo(),sp=Array.isArray,FB=ArrayBuffer,IB=DataView;function xb(e){return FB.isView(e)&&!(e instanceof IB)}Ja.isTypedArray=xb;function Ac(e){return sp(e)||xb(e)}Ja.isArrayOrTypedArray=Ac;function NB(e){return!Ac(e[0])}Ja.isArray1D=NB;Ja.ensureArray=function(e,r){return sp(e)||(e=[]),e.length=r,e};var hn={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};hn.uint8c=hn.u1c;hn.uint8=hn.u1;hn.int8=hn.i1;hn.uint16=hn.u2;hn.int16=hn.i2;hn.uint32=hn.u4;hn.int32=hn.i4;hn.float32=hn.f4;hn.float64=hn.f8;function up(e){return e.constructor===ArrayBuffer}Ja.isArrayBuffer=up;Ja.decodeTypedArraySpec=function(e){var r=[],t=zB(e),n=t.dtype,a=hn[n];if(!a)throw new Error('Error in dtype: "'+n+'"');var o=a.BYTES_PER_ELEMENT,i=t.bdata;up(i)||(i=DB(i));var l=t.shape===void 0?[i.byteLength/o]:(""+t.shape).split(",");l.reverse();var u=l.length,s,f,v=+l[0],p=o*v,b=0;if(u===1)r=new a(i);else if(u===2)for(s=+l[1],f=0;f{"use strict";var _b=rt(),cp=jn().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 n=t.split("."),a,o,i,l;for(l=0;l{"use strict";var Ss=kc(),HB=/^\w*$/,VB=0,kb=1,Sc=2,Sb=3,bl=4;Cb.exports=function(r,t,n,a){n=n||"name",a=a||"value";var o,i,l,u={};t&&t.length?(l=Ss(r,t),i=l.get()):i=r,t=t||"";var s={};if(i)for(o=0;o2)return u[b]=u[b]|Sc,v.set(p,null);if(f){for(o=b;o{"use strict";var GB=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,YB=/^[^\.\[\]]+$/;Lb.exports=function(e,r){for(;r;){var t=e.match(GB);if(t)e=t[1];else if(e.match(YB))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var Cc=pe((Kue,Db)=>{"use strict";var WB=rt();Db.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return WB(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}});var Ib=pe((Que,Fb)=>{"use strict";var Pb=jn().isArrayOrTypedArray,nf=wo();Fb.exports=function e(r,t){for(var n in t){var a=t[n],o=r[n];if(o!==a)if(n.charAt(0)==="_"||typeof a=="function"){if(n in r)continue;r[n]=a}else if(Pb(a)&&Pb(o)&&nf(a[0])){if(n==="customdata"||n==="ids")continue;for(var i=Math.min(a.length,o.length),l=0;l{"use strict";function XB(e,r){var t=e%r;return t<0?t+r:t}function ZB(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}Nb.exports={mod:XB,modHalf:ZB}});var Sa=pe((jue,Ec)=>{(function(e){var r=/^\s+/,t=/\s+$/,n=0,a=e.round,o=e.min,i=e.max,l=e.random;function u(V,re){if(V=V||"",re=re||{},V instanceof u)return V;if(!(this instanceof u))return new u(V,re);var H=s(V);this._originalInput=V,this._r=H.r,this._g=H.g,this._b=H.b,this._a=H.a,this._roundA=a(100*this._a)/100,this._format=re.format||H.format,this._gradientType=re.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=H.ok,this._tc_id=n++}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var V=this.toRgb();return(V.r*299+V.g*587+V.b*114)/1e3},getLuminance:function(){var V=this.toRgb(),re,H,te,ue,de,ke;return re=V.r/255,H=V.g/255,te=V.b/255,re<=.03928?ue=re/12.92:ue=e.pow((re+.055)/1.055,2.4),H<=.03928?de=H/12.92:de=e.pow((H+.055)/1.055,2.4),te<=.03928?ke=te/12.92:ke=e.pow((te+.055)/1.055,2.4),.2126*ue+.7152*de+.0722*ke},setAlpha:function(V){return this._a=L(V),this._roundA=a(100*this._a)/100,this},toHsv:function(){var V=b(this._r,this._g,this._b);return{h:V.h*360,s:V.s,v:V.v,a:this._a}},toHsvString:function(){var V=b(this._r,this._g,this._b),re=a(V.h*360),H=a(V.s*100),te=a(V.v*100);return this._a==1?"hsv("+re+", "+H+"%, "+te+"%)":"hsva("+re+", "+H+"%, "+te+"%, "+this._roundA+")"},toHsl:function(){var V=v(this._r,this._g,this._b);return{h:V.h*360,s:V.s,l:V.l,a:this._a}},toHslString:function(){var V=v(this._r,this._g,this._b),re=a(V.h*360),H=a(V.s*100),te=a(V.l*100);return this._a==1?"hsl("+re+", "+H+"%, "+te+"%)":"hsla("+re+", "+H+"%, "+te+"%, "+this._roundA+")"},toHex:function(V){return w(this._r,this._g,this._b,V)},toHexString:function(V){return"#"+this.toHex(V)},toHex8:function(V){return M(this._r,this._g,this._b,this._a,V)},toHex8String:function(V){return"#"+this.toHex8(V)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(P(this._r,255)*100)+"%",g:a(P(this._g,255)*100)+"%",b:a(P(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(P(this._r,255)*100)+"%, "+a(P(this._g,255)*100)+"%, "+a(P(this._b,255)*100)+"%)":"rgba("+a(P(this._r,255)*100)+"%, "+a(P(this._g,255)*100)+"%, "+a(P(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:I[w(this._r,this._g,this._b,!0)]||!1},toFilter:function(V){var re="#"+y(this._r,this._g,this._b,this._a),H=re,te=this._gradientType?"GradientType = 1, ":"";if(V){var ue=u(V);H="#"+y(ue._r,ue._g,ue._b,ue._a)}return"progid:DXImageTransform.Microsoft.gradient("+te+"startColorstr="+re+",endColorstr="+H+")"},toString:function(V){var re=!!V;V=V||this._format;var H=!1,te=this._a<1&&this._a>=0,ue=!re&&te&&(V==="hex"||V==="hex6"||V==="hex3"||V==="hex4"||V==="hex8"||V==="name");return ue?V==="name"&&this._a===0?this.toName():this.toRgbString():(V==="rgb"&&(H=this.toRgbString()),V==="prgb"&&(H=this.toPercentageRgbString()),(V==="hex"||V==="hex6")&&(H=this.toHexString()),V==="hex3"&&(H=this.toHexString(!0)),V==="hex4"&&(H=this.toHex8String(!0)),V==="hex8"&&(H=this.toHex8String()),V==="name"&&(H=this.toName()),V==="hsl"&&(H=this.toHslString()),V==="hsv"&&(H=this.toHsvString()),H||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(V,re){var H=V.apply(null,[this].concat([].slice.call(re)));return this._r=H._r,this._g=H._g,this._b=H._b,this.setAlpha(H._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(d,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(k,arguments)},saturate:function(){return this._applyModification(S,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(g,arguments)},_applyCombination:function(V,re){return V.apply(null,[this].concat([].slice.call(re)))},analogous:function(){return this._applyCombination(E,arguments)},complement:function(){return this._applyCombination(c,arguments)},monochromatic:function(){return this._applyCombination(D,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(A,arguments)},tetrad:function(){return this._applyCombination(h,arguments)}},u.fromRatio=function(V,re){if(typeof V=="object"){var H={};for(var te in V)V.hasOwnProperty(te)&&(te==="a"?H[te]=V[te]:H[te]=Y(V[te]));V=H}return u(V,re)};function s(V){var re={r:0,g:0,b:0},H=1,te=null,ue=null,de=null,ke=!1,Ae=!1;return typeof V=="string"&&(V=ie(V)),typeof V=="object"&&(K(V.r)&&K(V.g)&&K(V.b)?(re=f(V.r,V.g,V.b),ke=!0,Ae=String(V.r).substr(-1)==="%"?"prgb":"rgb"):K(V.h)&&K(V.s)&&K(V.v)?(te=Y(V.s),ue=Y(V.v),re=m(V.h,te,ue),ke=!0,Ae="hsv"):K(V.h)&&K(V.s)&&K(V.l)&&(te=Y(V.s),de=Y(V.l),re=p(V.h,te,de),ke=!0,Ae="hsl"),V.hasOwnProperty("a")&&(H=V.a)),H=L(H),{ok:ke,format:V.format||Ae,r:o(255,i(re.r,0)),g:o(255,i(re.g,0)),b:o(255,i(re.b,0)),a:H}}function f(V,re,H){return{r:P(V,255)*255,g:P(re,255)*255,b:P(H,255)*255}}function v(V,re,H){V=P(V,255),re=P(re,255),H=P(H,255);var te=i(V,re,H),ue=o(V,re,H),de,ke,Ae=(te+ue)/2;if(te==ue)de=ke=0;else{var ve=te-ue;switch(ke=Ae>.5?ve/(2-te-ue):ve/(te+ue),te){case V:de=(re-H)/ve+(re1&&(Pe-=1),Pe<1/6?Te+(Ee-Te)*6*Pe:Pe<1/2?Ee:Pe<2/3?Te+(Ee-Te)*(2/3-Pe)*6:Te}if(re===0)te=ue=de=H;else{var Ae=H<.5?H*(1+re):H+re-H*re,ve=2*H-Ae;te=ke(ve,Ae,V+1/3),ue=ke(ve,Ae,V),de=ke(ve,Ae,V-1/3)}return{r:te*255,g:ue*255,b:de*255}}function b(V,re,H){V=P(V,255),re=P(re,255),H=P(H,255);var te=i(V,re,H),ue=o(V,re,H),de,ke,Ae=te,ve=te-ue;if(ke=te===0?0:ve/te,te==ue)de=0;else{switch(te){case V:de=(re-H)/ve+(re>1)+720)%360;--re;)te.h=(te.h+ue)%360,de.push(u(te));return de}function D(V,re){re=re||6;for(var H=u(V).toHsv(),te=H.h,ue=H.s,de=H.v,ke=[],Ae=1/re;re--;)ke.push(u({h:te,s:ue,v:de})),de=(de+Ae)%1;return ke}u.mix=function(V,re,H){H=H===0?0:H||50;var te=u(V).toRgb(),ue=u(re).toRgb(),de=H/100,ke={r:(ue.r-te.r)*de+te.r,g:(ue.g-te.g)*de+te.g,b:(ue.b-te.b)*de+te.b,a:(ue.a-te.a)*de+te.a};return u(ke)},u.readability=function(V,re){var H=u(V),te=u(re);return(e.max(H.getLuminance(),te.getLuminance())+.05)/(e.min(H.getLuminance(),te.getLuminance())+.05)},u.isReadable=function(V,re,H){var te=u.readability(V,re),ue,de;switch(de=!1,ue=ee(H),ue.level+ue.size){case"AAsmall":case"AAAlarge":de=te>=4.5;break;case"AAlarge":de=te>=3;break;case"AAAsmall":de=te>=7;break}return de},u.mostReadable=function(V,re,H){var te=null,ue=0,de,ke,Ae,ve;H=H||{},ke=H.includeFallbackColors,Ae=H.level,ve=H.size;for(var Te=0;Teue&&(ue=de,te=u(re[Te]));return u.isReadable(V,te,{level:Ae,size:ve})||!ke?te:(H.includeFallbackColors=!1,u.mostReadable(V,["#fff","#000"],H))};var N=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},I=u.hexNames=F(N);function F(V){var re={};for(var H in V)V.hasOwnProperty(H)&&(re[V[H]]=H);return re}function L(V){return V=parseFloat(V),(isNaN(V)||V<0||V>1)&&(V=1),V}function P(V,re){X(V)&&(V="100%");var H=$(V);return V=o(re,i(0,parseFloat(V))),H&&(V=parseInt(V*re,10)/100),e.abs(V-re)<1e-6?1:V%re/parseFloat(re)}function O(V){return o(1,i(0,V))}function U(V){return parseInt(V,16)}function X(V){return typeof V=="string"&&V.indexOf(".")!=-1&&parseFloat(V)===1}function $(V){return typeof V=="string"&&V.indexOf("%")!=-1}function j(V){return V.length==1?"0"+V:""+V}function Y(V){return V<=1&&(V=V*100+"%"),V}function q(V){return e.round(parseFloat(V)*255).toString(16)}function Q(V){return U(V)/255}var ne=function(){var V="[-\\+]?\\d+%?",re="[-\\+]?\\d*\\.\\d+%?",H="(?:"+re+")|(?:"+V+")",te="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?",ue="[\\s|\\(]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")[,|\\s]+("+H+")\\s*\\)?";return{CSS_UNIT:new RegExp(H),rgb:new RegExp("rgb"+te),rgba:new RegExp("rgba"+ue),hsl:new RegExp("hsl"+te),hsla:new RegExp("hsla"+ue),hsv:new RegExp("hsv"+te),hsva:new RegExp("hsva"+ue),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function K(V){return!!ne.CSS_UNIT.exec(V)}function ie(V){V=V.replace(r,"").replace(t,"").toLowerCase();var re=!1;if(N[V])V=N[V],re=!0;else if(V=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var H;return(H=ne.rgb.exec(V))?{r:H[1],g:H[2],b:H[3]}:(H=ne.rgba.exec(V))?{r:H[1],g:H[2],b:H[3],a:H[4]}:(H=ne.hsl.exec(V))?{h:H[1],s:H[2],l:H[3]}:(H=ne.hsla.exec(V))?{h:H[1],s:H[2],l:H[3],a:H[4]}:(H=ne.hsv.exec(V))?{h:H[1],s:H[2],v:H[3]}:(H=ne.hsva.exec(V))?{h:H[1],s:H[2],v:H[3],a:H[4]}:(H=ne.hex8.exec(V))?{r:U(H[1]),g:U(H[2]),b:U(H[3]),a:Q(H[4]),format:re?"name":"hex8"}:(H=ne.hex6.exec(V))?{r:U(H[1]),g:U(H[2]),b:U(H[3]),format:re?"name":"hex"}:(H=ne.hex4.exec(V))?{r:U(H[1]+""+H[1]),g:U(H[2]+""+H[2]),b:U(H[3]+""+H[3]),a:Q(H[4]+""+H[4]),format:re?"name":"hex8"}:(H=ne.hex3.exec(V))?{r:U(H[1]+""+H[1]),g:U(H[2]+""+H[2]),b:U(H[3]+""+H[3]),format:re?"name":"hex"}:!1}function ee(V){var re,H;return V=V||{level:"AA",size:"small"},re=(V.level||"AA").toUpperCase(),H=(V.size||"small").toLowerCase(),re!=="AA"&&re!=="AAA"&&(re="AA"),H!=="small"&&H!=="large"&&(H="small"),{level:re,size:H}}typeof Ec!="undefined"&&Ec.exports?Ec.exports=u:window.tinycolor=u})(Math)});var Mt=pe(lf=>{"use strict";var zb=wo(),af=Array.isArray;function JB(e,r){var t,n;for(t=0;t{"use strict";qb.exports=function(e){var r=e.variantValues,t=e.editType,n=e.colorEditType;n===void 0&&(n=t);var a={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var o={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:n},weight:a,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(o.size.dflt="auto"),e.autoColor&&(o.color.dflt="auto"),e.arrayOk&&(o.family.arrayOk=!0,o.weight.arrayOk=!0,o.style.arrayOk=!0,e.noFontVariant||(o.variant.arrayOk=!0),e.noFontTextcase||(o.textcase.arrayOk=!0),e.noFontLineposition||(o.lineposition.arrayOk=!0),e.noFontShadow||(o.shadow.arrayOk=!0),o.size.arrayOk=!0,o.color.arrayOk=!0),o}});var sf=pe((tfe,Ob)=>{"use strict";Ob.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var _l=pe((nfe,Hb)=>{"use strict";var Bb=sf(),Ub=kn(),vp=Ub({editType:"none"});vp.family.dflt=Bb.HOVERFONT;vp.size.dflt=Bb.HOVERFONTSIZE;Hb.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:vp,grouptitlefont:Ub({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Lc=pe((afe,Vb)=>{"use strict";var KB=kn(),uf=_l().hoverlabel,ff=Mt().extendFlat;Vb.exports={hoverlabel:{bgcolor:ff({},uf.bgcolor,{arrayOk:!0}),bordercolor:ff({},uf.bordercolor,{arrayOk:!0}),font:KB({arrayOk:!0,editType:"none"}),align:ff({},uf.align,{arrayOk:!0}),namelength:ff({},uf.namelength,{arrayOk:!0}),showarrow:ff({},uf.showarrow),editType:"none"}}});var Sn=pe((ife,Gb)=>{"use strict";var QB=kn(),$B=Lc();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:QB({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:$B.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var wl=pe((ofe,Xb)=>{"use strict";var jB=Sa(),Rc={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},Yb=Rc.RdBu;function eU(e,r){if(r||(r=Yb),!e)return r;function t(){try{e=Rc[e]||JSON.parse(e)}catch(n){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),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";Ml.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Ml.defaultLine="#444";Ml.lightLine="#eee";Ml.background="#fff";Ml.borderLine="#BEC8D9";Ml.lightFraction=100*10/11});var Zr=pe((sfe,Zb)=>{"use strict";var ea=Sa(),tU=rt(),nU=jn().isTypedArray,on=Zb.exports={},Dc=Ti();on.defaults=Dc.defaults;var aU=on.defaultLine=Dc.defaultLine;on.lightLine=Dc.lightLine;var dp=on.background=Dc.background;on.tinyRGB=function(e){var r=e.toRgb();return"rgb("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+")"};on.rgb=function(e){return on.tinyRGB(ea(e))};on.opacity=function(e){return e?ea(e).getAlpha():0};on.addOpacity=function(e,r){var t=ea(e).toRgb();return"rgba("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+", "+r+")"};on.combine=function(e,r){var t=ea(e).toRgb();if(t.a===1)return ea(e).toRgbString();var n=ea(r||dp).toRgb(),a=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},o={r:a.r*(1-t.a)+t.r*t.a,g:a.g*(1-t.a)+t.g*t.a,b:a.b*(1-t.a)+t.b*t.a};return ea(o).toRgbString()};on.interpolate=function(e,r,t){var n=ea(e).toRgb(),a=ea(r).toRgb(),o={r:t*n.r+(1-t)*a.r,g:t*n.g+(1-t)*a.g,b:t*n.b+(1-t)*a.b};return ea(o).toRgbString()};on.contrast=function(e,r,t){var n=ea(e);n.getAlpha()!==1&&(n=ea(on.combine(e,dp)));var a=n.isDark()?r?n.lighten(r):dp:t?n.darken(t):aU;return a.toString()};on.stroke=function(e,r){var t=ea(r);e.style({stroke:on.tinyRGB(t),"stroke-opacity":t.getAlpha()})};on.fill=function(e,r){var t=ea(r);e.style({fill:on.tinyRGB(t),"fill-opacity":t.getAlpha()})};on.clean=function(e){if(!(!e||typeof e!="object")){var r=Object.keys(e),t,n,a,o;for(t=0;t=0)))return e;if(o===3)n[o]>1&&(n[o]=1);else if(n[o]>=1)return e}var i=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return a?"rgba("+i+", "+n[3]+")":"rgb("+i+")"}});var Pc=pe((ufe,Jb)=>{"use strict";Jb.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var Es=pe(Kb=>{"use strict";Kb.counter=function(e,r,t,n){var a=(r||"")+(t?"":"$"),o=n===!1?"":"^";return e==="xy"?new RegExp(o+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(o+e+"([2-9]|[1-9][0-9]+)?"+a)}});var e4=pe(ra=>{"use strict";var pp=rt(),Qb=Sa(),$b=Mt().extendFlat,iU=Sn(),oU=wl(),lU=Zr(),sU=Pc().DESELECTDIM,Ls=kc(),jb=Es().counter,uU=Cs().modHalf,Ai=jn().isArrayOrTypedArray,Mo=jn().isTypedArraySpec,To=jn().decodeTypedArraySpec;ra.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Ai(e)?e:Mo(e)?To(e):t)}},enumerated:{coerceFunction:function(e,r,t,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,n=0;nn.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}Mo(e)&&(e=To(e)),e%1||!pp(e)||n.min!==void 0&&en.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,n){if(typeof e!="string"){var a=typeof e=="number";n.strict===!0||!a?r.set(t):r.set(String(e))}else n.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Mo(e)&&(e=To(e)),Qb(e).isValid()?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){function n(a){return Qb(a).isValid()}!Array.isArray(e)||!e.length?r.set(t):e.every(n)?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(oU.get(e,t))}},angle:{coerceFunction:function(e,r,t){Mo(e)&&(e=To(e)),e==="auto"?r.set("auto"):pp(e)?r.set(uU(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,n){var a=n.regex||jb(t);if(typeof e=="string"&&a.test(e)){r.set(e);return}r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!jb(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var a=e.split("+"),o=0;o{"use strict";var r4={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:{}}},t4={};function n4(e,r){for(var t in e){var n=e[t];n.valType?r[t]=n.dflt:(r[t]||(r[t]={}),n4(n,r[t]))}}n4(r4,t4);a4.exports={configAttributes:r4,dfltConfig:t4}});var yp=pe((hfe,i4)=>{"use strict";var gp=ot(),fU=rt(),cf=[];i4.exports=function(e,r){if(cf.indexOf(e)!==-1)return;cf.push(e);var t=1e3;fU(r)?t=r:r==="long"&&(t=3e3);var n=gp.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var a=n.selectAll(".notifier-note").data(cf);function o(i){i.duration(700).style("opacity",0).each("end",function(l){var u=cf.indexOf(l);u!==-1&&cf.splice(u,1),gp.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(i){var l=gp.select(this);l.append("button").classed("notifier-close",!0).html("×").on("click",function(){l.transition().call(o)});for(var u=l.append("p"),s=i.split(//g),f=0;f{"use strict";var Rs=Tl().dfltConfig,mp=yp(),xp=o4.exports={};xp.log=function(){var e;if(Rs.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};xp.warn=function(){var e;if(Rs.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};xp.error=function(){var e;if(Rs.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Ic=pe((pfe,l4)=>{"use strict";l4.exports=function(){}});var bp=pe((gfe,s4)=>{"use strict";s4.exports=function(r,t){if(t instanceof RegExp){for(var n=t.toString(),a=0;a{u4.exports=cU;function cU(){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 v4=pe((mfe,c4)=>{c4.exports=vU;function vU(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 d4=pe((xfe,h4)=>{h4.exports=hU;function hU(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var _p=pe((bfe,p4)=>{p4.exports=dU;function dU(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 y4=pe((_fe,g4)=>{g4.exports=pU;function pU(e,r){if(e===r){var t=r[1],n=r[2],a=r[3],o=r[6],i=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=n,e[9]=o,e[11]=r[14],e[12]=a,e[13]=i,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var x4=pe((wfe,m4)=>{m4.exports=gU;function gU(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=r[4],l=r[5],u=r[6],s=r[7],f=r[8],v=r[9],p=r[10],b=r[11],m=r[12],w=r[13],M=r[14],y=r[15],k=t*l-n*i,S=t*u-a*i,x=t*s-o*i,T=n*u-a*l,d=n*s-o*l,_=a*s-o*u,g=f*w-v*m,c=f*M-p*m,A=f*y-b*m,h=v*M-p*w,R=v*y-b*w,E=p*y-b*M,D=k*E-S*R+x*h+T*A-d*c+_*g;return D?(D=1/D,e[0]=(l*E-u*R+s*h)*D,e[1]=(a*R-n*E-o*h)*D,e[2]=(w*_-M*d+y*T)*D,e[3]=(p*d-v*_-b*T)*D,e[4]=(u*A-i*E-s*c)*D,e[5]=(t*E-a*A+o*c)*D,e[6]=(M*x-m*_-y*S)*D,e[7]=(f*_-p*x+b*S)*D,e[8]=(i*R-l*A+s*g)*D,e[9]=(n*A-t*R-o*g)*D,e[10]=(m*d-w*x+y*k)*D,e[11]=(v*x-f*d-b*k)*D,e[12]=(l*c-i*h-u*g)*D,e[13]=(t*h-n*c+a*g)*D,e[14]=(w*S-m*T-M*k)*D,e[15]=(f*T-v*S+p*k)*D,e):null}});var _4=pe((Mfe,b4)=>{b4.exports=yU;function yU(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=r[4],l=r[5],u=r[6],s=r[7],f=r[8],v=r[9],p=r[10],b=r[11],m=r[12],w=r[13],M=r[14],y=r[15];return e[0]=l*(p*y-b*M)-v*(u*y-s*M)+w*(u*b-s*p),e[1]=-(n*(p*y-b*M)-v*(a*y-o*M)+w*(a*b-o*p)),e[2]=n*(u*y-s*M)-l*(a*y-o*M)+w*(a*s-o*u),e[3]=-(n*(u*b-s*p)-l*(a*b-o*p)+v*(a*s-o*u)),e[4]=-(i*(p*y-b*M)-f*(u*y-s*M)+m*(u*b-s*p)),e[5]=t*(p*y-b*M)-f*(a*y-o*M)+m*(a*b-o*p),e[6]=-(t*(u*y-s*M)-i*(a*y-o*M)+m*(a*s-o*u)),e[7]=t*(u*b-s*p)-i*(a*b-o*p)+f*(a*s-o*u),e[8]=i*(v*y-b*w)-f*(l*y-s*w)+m*(l*b-s*v),e[9]=-(t*(v*y-b*w)-f*(n*y-o*w)+m*(n*b-o*v)),e[10]=t*(l*y-s*w)-i*(n*y-o*w)+m*(n*s-o*l),e[11]=-(t*(l*b-s*v)-i*(n*b-o*v)+f*(n*s-o*l)),e[12]=-(i*(v*M-p*w)-f*(l*M-u*w)+m*(l*p-u*v)),e[13]=t*(v*M-p*w)-f*(n*M-a*w)+m*(n*p-a*v),e[14]=-(t*(l*M-u*w)-i*(n*M-a*w)+m*(n*u-a*l)),e[15]=t*(l*p-u*v)-i*(n*p-a*v)+f*(n*u-a*l),e}});var M4=pe((Tfe,w4)=>{w4.exports=mU;function mU(e){var r=e[0],t=e[1],n=e[2],a=e[3],o=e[4],i=e[5],l=e[6],u=e[7],s=e[8],f=e[9],v=e[10],p=e[11],b=e[12],m=e[13],w=e[14],M=e[15],y=r*i-t*o,k=r*l-n*o,S=r*u-a*o,x=t*l-n*i,T=t*u-a*i,d=n*u-a*l,_=s*m-f*b,g=s*w-v*b,c=s*M-p*b,A=f*w-v*m,h=f*M-p*m,R=v*M-p*w;return y*R-k*h+S*A+x*c-T*g+d*_}});var A4=pe((Afe,T4)=>{T4.exports=xU;function xU(e,r,t){var n=r[0],a=r[1],o=r[2],i=r[3],l=r[4],u=r[5],s=r[6],f=r[7],v=r[8],p=r[9],b=r[10],m=r[11],w=r[12],M=r[13],y=r[14],k=r[15],S=t[0],x=t[1],T=t[2],d=t[3];return e[0]=S*n+x*l+T*v+d*w,e[1]=S*a+x*u+T*p+d*M,e[2]=S*o+x*s+T*b+d*y,e[3]=S*i+x*f+T*m+d*k,S=t[4],x=t[5],T=t[6],d=t[7],e[4]=S*n+x*l+T*v+d*w,e[5]=S*a+x*u+T*p+d*M,e[6]=S*o+x*s+T*b+d*y,e[7]=S*i+x*f+T*m+d*k,S=t[8],x=t[9],T=t[10],d=t[11],e[8]=S*n+x*l+T*v+d*w,e[9]=S*a+x*u+T*p+d*M,e[10]=S*o+x*s+T*b+d*y,e[11]=S*i+x*f+T*m+d*k,S=t[12],x=t[13],T=t[14],d=t[15],e[12]=S*n+x*l+T*v+d*w,e[13]=S*a+x*u+T*p+d*M,e[14]=S*o+x*s+T*b+d*y,e[15]=S*i+x*f+T*m+d*k,e}});var S4=pe((kfe,k4)=>{k4.exports=bU;function bU(e,r,t){var n=t[0],a=t[1],o=t[2],i,l,u,s,f,v,p,b,m,w,M,y;return r===e?(e[12]=r[0]*n+r[4]*a+r[8]*o+r[12],e[13]=r[1]*n+r[5]*a+r[9]*o+r[13],e[14]=r[2]*n+r[6]*a+r[10]*o+r[14],e[15]=r[3]*n+r[7]*a+r[11]*o+r[15]):(i=r[0],l=r[1],u=r[2],s=r[3],f=r[4],v=r[5],p=r[6],b=r[7],m=r[8],w=r[9],M=r[10],y=r[11],e[0]=i,e[1]=l,e[2]=u,e[3]=s,e[4]=f,e[5]=v,e[6]=p,e[7]=b,e[8]=m,e[9]=w,e[10]=M,e[11]=y,e[12]=i*n+f*a+m*o+r[12],e[13]=l*n+v*a+w*o+r[13],e[14]=u*n+p*a+M*o+r[14],e[15]=s*n+b*a+y*o+r[15]),e}});var E4=pe((Sfe,C4)=>{C4.exports=_U;function _U(e,r,t){var n=t[0],a=t[1],o=t[2];return e[0]=r[0]*n,e[1]=r[1]*n,e[2]=r[2]*n,e[3]=r[3]*n,e[4]=r[4]*a,e[5]=r[5]*a,e[6]=r[6]*a,e[7]=r[7]*a,e[8]=r[8]*o,e[9]=r[9]*o,e[10]=r[10]*o,e[11]=r[11]*o,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var R4=pe((Cfe,L4)=>{L4.exports=wU;function wU(e,r,t,n){var a=n[0],o=n[1],i=n[2],l=Math.sqrt(a*a+o*o+i*i),u,s,f,v,p,b,m,w,M,y,k,S,x,T,d,_,g,c,A,h,R,E,D,N;return Math.abs(l)<1e-6?null:(l=1/l,a*=l,o*=l,i*=l,u=Math.sin(t),s=Math.cos(t),f=1-s,v=r[0],p=r[1],b=r[2],m=r[3],w=r[4],M=r[5],y=r[6],k=r[7],S=r[8],x=r[9],T=r[10],d=r[11],_=a*a*f+s,g=o*a*f+i*u,c=i*a*f-o*u,A=a*o*f-i*u,h=o*o*f+s,R=i*o*f+a*u,E=a*i*f+o*u,D=o*i*f-a*u,N=i*i*f+s,e[0]=v*_+w*g+S*c,e[1]=p*_+M*g+x*c,e[2]=b*_+y*g+T*c,e[3]=m*_+k*g+d*c,e[4]=v*A+w*h+S*R,e[5]=p*A+M*h+x*R,e[6]=b*A+y*h+T*R,e[7]=m*A+k*h+d*R,e[8]=v*E+w*D+S*N,e[9]=p*E+M*D+x*N,e[10]=b*E+y*D+T*N,e[11]=m*E+k*D+d*N,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var P4=pe((Efe,D4)=>{D4.exports=MU;function MU(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[4],i=r[5],l=r[6],u=r[7],s=r[8],f=r[9],v=r[10],p=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=o*a+s*n,e[5]=i*a+f*n,e[6]=l*a+v*n,e[7]=u*a+p*n,e[8]=s*a-o*n,e[9]=f*a-i*n,e[10]=v*a-l*n,e[11]=p*a-u*n,e}});var I4=pe((Lfe,F4)=>{F4.exports=TU;function TU(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[0],i=r[1],l=r[2],u=r[3],s=r[8],f=r[9],v=r[10],p=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=o*a-s*n,e[1]=i*a-f*n,e[2]=l*a-v*n,e[3]=u*a-p*n,e[8]=o*n+s*a,e[9]=i*n+f*a,e[10]=l*n+v*a,e[11]=u*n+p*a,e}});var z4=pe((Rfe,N4)=>{N4.exports=AU;function AU(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[0],i=r[1],l=r[2],u=r[3],s=r[4],f=r[5],v=r[6],p=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=o*a+s*n,e[1]=i*a+f*n,e[2]=l*a+v*n,e[3]=u*a+p*n,e[4]=s*a-o*n,e[5]=f*a-i*n,e[6]=v*a-l*n,e[7]=p*a-u*n,e}});var O4=pe((Dfe,q4)=>{q4.exports=kU;function kU(e,r,t){var n,a,o,i=t[0],l=t[1],u=t[2],s=Math.sqrt(i*i+l*l+u*u);return Math.abs(s)<1e-6?null:(s=1/s,i*=s,l*=s,u*=s,n=Math.sin(r),a=Math.cos(r),o=1-a,e[0]=i*i*o+a,e[1]=l*i*o+u*n,e[2]=u*i*o-l*n,e[3]=0,e[4]=i*l*o-u*n,e[5]=l*l*o+a,e[6]=u*l*o+i*n,e[7]=0,e[8]=i*u*o+l*n,e[9]=l*u*o-i*n,e[10]=u*u*o+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var U4=pe((Pfe,B4)=>{B4.exports=SU;function SU(e,r,t){var n=r[0],a=r[1],o=r[2],i=r[3],l=n+n,u=a+a,s=o+o,f=n*l,v=n*u,p=n*s,b=a*u,m=a*s,w=o*s,M=i*l,y=i*u,k=i*s;return e[0]=1-(b+w),e[1]=v+k,e[2]=p-y,e[3]=0,e[4]=v-k,e[5]=1-(f+w),e[6]=m+M,e[7]=0,e[8]=p+y,e[9]=m-M,e[10]=1-(f+b),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var V4=pe((Ffe,H4)=>{H4.exports=CU;function CU(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 Y4=pe((Ife,G4)=>{G4.exports=EU;function EU(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 X4=pe((Nfe,W4)=>{W4.exports=LU;function LU(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var J4=pe((zfe,Z4)=>{Z4.exports=RU;function RU(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Q4=pe((qfe,K4)=>{K4.exports=DU;function DU(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var wp=pe((Ofe,$4)=>{$4.exports=PU;function PU(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=t+t,l=n+n,u=a+a,s=t*i,f=n*i,v=n*l,p=a*i,b=a*l,m=a*u,w=o*i,M=o*l,y=o*u;return e[0]=1-v-m,e[1]=f+y,e[2]=p-M,e[3]=0,e[4]=f-y,e[5]=1-s-m,e[6]=b+w,e[7]=0,e[8]=p+M,e[9]=b-w,e[10]=1-s-v,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var e_=pe((Bfe,j4)=>{j4.exports=FU;function FU(e,r,t,n,a,o,i){var l=1/(t-r),u=1/(a-n),s=1/(o-i);return e[0]=o*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o*2*u,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(a+n)*u,e[10]=(i+o)*s,e[11]=-1,e[12]=0,e[13]=0,e[14]=i*o*2*s,e[15]=0,e}});var t_=pe((Ufe,r_)=>{r_.exports=IU;function IU(e,r,t,n,a){var o=1/Math.tan(r/2),i=1/(n-a);return e[0]=o/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+n)*i,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*n*i,e[15]=0,e}});var a_=pe((Hfe,n_)=>{n_.exports=NU;function NU(e,r,t,n){var a=Math.tan(r.upDegrees*Math.PI/180),o=Math.tan(r.downDegrees*Math.PI/180),i=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),u=2/(i+l),s=2/(a+o);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=-((i-l)*u*.5),e[9]=(a-o)*s*.5,e[10]=n/(t-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*t/(t-n),e[15]=0,e}});var o_=pe((Vfe,i_)=>{i_.exports=zU;function zU(e,r,t,n,a,o,i){var l=1/(r-t),u=1/(n-a),s=1/(o-i);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*s,e[11]=0,e[12]=(r+t)*l,e[13]=(a+n)*u,e[14]=(i+o)*s,e[15]=1,e}});var s_=pe((Gfe,l_)=>{var qU=_p();l_.exports=OU;function OU(e,r,t,n){var a,o,i,l,u,s,f,v,p,b,m=r[0],w=r[1],M=r[2],y=n[0],k=n[1],S=n[2],x=t[0],T=t[1],d=t[2];return Math.abs(m-x)<1e-6&&Math.abs(w-T)<1e-6&&Math.abs(M-d)<1e-6?qU(e):(f=m-x,v=w-T,p=M-d,b=1/Math.sqrt(f*f+v*v+p*p),f*=b,v*=b,p*=b,a=k*p-S*v,o=S*f-y*p,i=y*v-k*f,b=Math.sqrt(a*a+o*o+i*i),b?(b=1/b,a*=b,o*=b,i*=b):(a=0,o=0,i=0),l=v*i-p*o,u=p*a-f*i,s=f*o-v*a,b=Math.sqrt(l*l+u*u+s*s),b?(b=1/b,l*=b,u*=b,s*=b):(l=0,u=0,s=0),e[0]=a,e[1]=l,e[2]=f,e[3]=0,e[4]=o,e[5]=u,e[6]=v,e[7]=0,e[8]=i,e[9]=s,e[10]=p,e[11]=0,e[12]=-(a*m+o*w+i*M),e[13]=-(l*m+u*w+s*M),e[14]=-(f*m+v*w+p*M),e[15]=1,e)}});var f_=pe((Yfe,u_)=>{u_.exports=BU;function BU(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var Mp=pe((Wfe,c_)=>{c_.exports={create:f4(),clone:v4(),copy:d4(),identity:_p(),transpose:y4(),invert:x4(),adjoint:_4(),determinant:M4(),multiply:A4(),translate:S4(),scale:E4(),rotate:R4(),rotateX:P4(),rotateY:I4(),rotateZ:z4(),fromRotation:O4(),fromRotationTranslation:U4(),fromScaling:V4(),fromTranslation:Y4(),fromXRotation:X4(),fromYRotation:J4(),fromZRotation:Q4(),fromQuat:wp(),frustum:e_(),perspective:t_(),perspectiveFromFieldOfView:a_(),ortho:o_(),lookAt:s_(),str:f_()}});var Nc=pe(Ut=>{"use strict";var UU=Mp();Ut.init2dArray=function(e,r){for(var t=new Array(e),n=0;n{"use strict";var HU=ot(),v_=Al(),VU=Nc(),GU=Mp();function YU(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 WU(e){var r=HU.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 XU(e,r){d_("global",e,r)}function d_(e,r,t){var n="plotly.js-style-"+e,a=document.getElementById(n);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",n),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var o=a.sheet;o?o.insertRule?o.insertRule(r+"{"+t+"}",0):o.addRule?o.addRule(r,t,0):v_.warn("addStyleRule failed"):v_.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function ZU(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&h_(t)}function JU(e,r,t,n,a,o){var i=n.split(":"),l=a.split(":"),u="data-btn-style-event-added";o||(o=document),o.querySelectorAll(e).forEach(function(s){s.getAttribute(u)||(s.addEventListener("mouseenter",function(){var f=this.querySelector(t);f&&(f.style[i[0]]=i[1])}),s.addEventListener("mouseleave",function(){var f=this.querySelector(t);f&&(r&&this.matches(r)?f.style[i[0]]=i[1]:f.style[l[0]]=l[1])}),s.setAttribute(u,!0))})}function KU(e){var r=g_(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(n){var a=p_(n);if(a){var o=VU.convertCssMatrix(a);t=GU.multiply(t,t,o)}}),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(n){return+n})}function g_(e){for(var r=[];QU(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function QU(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function $U(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}y_.exports={getGraphDiv:YU,isPlotDiv:WU,removeElement:h_,addStyleRule:XU,addRelatedStyleRule:d_,deleteRelatedStyleRule:ZU,setStyleOnHover:JU,getFullTransformMatrix:KU,getElementTransformMatrix:p_,getElementAndAncestors:g_,equalDomRects:$U}});var hf=pe((Jfe,m_)=>{"use strict";m_.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var zn=pe((Kfe,A_)=>{"use strict";var b_=Mt().extendFlat,jU=wo(),__={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"]},eH=__.flags.slice().concat(["fullReplot"]),rH=w_.flags.slice().concat("layoutReplot");A_.exports={traces:__,layout:w_,traceFlags:function(){return x_(eH)},layoutFlags:function(){return x_(rH)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var n=t.split("+"),a=0;a{"use strict";Tp.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};Tp.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var Ap=pe(($fe,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 ha=pe(df=>{"use strict";var S_=Ap(),tH=S_.FORMAT_LINK,nH=S_.DATE_FORMAT_LINK;function aH(e){var r=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(r?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,tH,"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}".`,nH,"for details on the date formatting syntax."].join(" ")}df.templateFormatStringDescription=aH;function kp(e){var r=e.description?" "+e.description:"",t=e.keys||[];if(t.length>0){for(var n=[],a=0;a{"use strict";function ko(e,r){return r?r.d2l(e):e}function C_(e,r){return r?r.l2d(e):e}function iH(e){return e.x0}function oH(e){return e.x1}function lH(e){return e.y0}function sH(e){return e.y1}function E_(e){return e.x0shift||0}function L_(e){return e.x1shift||0}function R_(e){return e.y0shift||0}function D_(e){return e.y1shift||0}function zc(e,r){return ko(e.x1,r)+L_(e)-ko(e.x0,r)-E_(e)}function qc(e,r,t){return ko(e.y1,t)+D_(e)-ko(e.y0,t)-R_(e)}function uH(e,r){return Math.abs(zc(e,r))}function fH(e,r,t){return Math.abs(qc(e,r,t))}function cH(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(zc(e,r),2)+Math.pow(qc(e,r,t),2))}function vH(e,r){return C_((ko(e.x1,r)+L_(e)+ko(e.x0,r)+E_(e))/2,r)}function hH(e,r,t){return C_((ko(e.y1,t)+D_(e)+ko(e.y0,t)+R_(e))/2,t)}function dH(e,r,t){return e.type!=="line"?void 0:qc(e,r,t)/zc(e,r)}P_.exports={x0:iH,x1:oH,y0:lH,y1:sH,slope:dH,dx:zc,dy:qc,width:uH,height:fH,length:cH,xcenter:vH,ycenter:hH}});var N_=pe((r0e,I_)=>{"use strict";var pH=zn().overrideAll,kl=Sn(),F_=kn(),gH=Ao().dash,So=Mt().extendFlat,yH=ha().shapeTexttemplateAttrs,mH=Oc();I_.exports=pH({newshape:{visible:So({},kl.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:So({},kl.legend,{}),legendgroup:So({},kl.legendgroup,{}),legendgrouptitle:{text:So({},kl.legendgrouptitle.text,{}),font:F_({})},legendrank:So({},kl.legendrank,{}),legendwidth:So({},kl.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:So({},gH,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:So({},kl.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:yH({newshape:!0},{keys:Object.keys(mH)}),font:F_({}),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 q_=pe((t0e,z_)=>{"use strict";var xH=Ao().dash,bH=Mt().extendFlat;z_.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:bH({},xH,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var Bc=pe((n0e,O_)=>{"use strict";O_.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var Ds=pe((a0e,V_)=>{"use strict";var Sp=kn(),_H=hf(),Uc=Ti(),B_=N_(),U_=q_(),wH=Bc(),H_=Mt().extendFlat,Hc=Sp({editType:"calc"});Hc.family.dflt='"Open Sans", verdana, arial, sans-serif';Hc.size.dflt=12;Hc.color.dflt=Uc.defaultLine;V_.exports={font:Hc,title:{text:{valType:"string",editType:"layoutstyle"},font:Sp({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Sp({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:H_(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:Uc.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Uc.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Uc.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:B_.newshape,activeshape:B_.activeshape,newselection:U_.newselection,activeselection:U_.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:H_({},_H.transition,{editType:"none"})}});var G_=ob(()=>{});var MH={};var Y_=ob(()=>{G_()});var Er=pe(Jr=>{"use strict";var Ps=Al(),W_=Ic(),X_=bp(),TH=wo(),AH=vf().addStyleRule,Z_=Mt(),kH=Sn(),SH=Ds(),CH=Z_.extendFlat,Cp=Z_.extendDeepAll;Jr.modules={};Jr.allCategories={};Jr.allTypes=[];Jr.subplotsRegistry={};Jr.componentsRegistry={};Jr.layoutArrayContainers=[];Jr.layoutArrayRegexes=[];Jr.traceLayoutAttributes={};Jr.localeRegistry={};Jr.apiMethodRegistry={};Jr.collectableSubplotTypes=null;Jr.register=function(r){if(Jr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var FH=ks().timeFormat,i6=rt(),Ep=Al(),Eo=Cs().mod,Ns=an(),Ca=Ns.BADNUM,ta=Ns.ONEDAY,pf=Ns.ONEHOUR,Co=Ns.ONEMIN,Is=Ns.ONESEC,gf=Ns.EPOCHJD,Zi=Er(),j_=ks().utcFormat,IH=/^\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,NH=/^\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,e6=new Date().getFullYear()-70;function Ji(e){return e&&Zi.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Ht.dateTick0=function(e,r){var t=zH(e,!!r);if(r<2)return t;var n=Ht.dateTime2ms(t,e);return n+=ta*(r-1),Ht.ms2DateTime(n,0,e)};function zH(e,r){return Ji(e)?r?Zi.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Zi.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Ht.dfltRange=function(e){return Ji(e)?Zi.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Ht.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Gc,Yc;Ht.dateTime2ms=function(e,r){if(Ht.isJSDate(e)){var t=e.getTimezoneOffset()*Co,n=(e.getUTCMinutes()-e.getMinutes())*Co+(e.getUTCSeconds()-e.getSeconds())*Is+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var a=3*Co;t=t-a/2+Eo(n-t+a/2,a)}return e=Number(e)-t,e>=Gc&&e<=Yc?e:Ca}if(typeof e!="string"&&typeof e!="number")return Ca;e=String(e);var o=Ji(r),i=e.charAt(0);o&&(i==="G"||i==="g")&&(e=e.substr(1),r="");var l=o&&r.substr(0,7)==="chinese",u=e.match(l?NH:IH);if(!u)return Ca;var s=u[1],f=u[3]||"1",v=Number(u[5]||1),p=Number(u[7]||0),b=Number(u[9]||0),m=Number(u[11]||0);if(o){if(s.length===2)return Ca;s=Number(s);var w;try{var M=Zi.getComponentMethod("calendars","getCal")(r);if(l){var y=f.charAt(f.length-1)==="i";f=parseInt(f,10),w=M.newDate(s,M.toMonthIndex(s,f,y),v)}else w=M.newDate(s,Number(f),v)}catch(S){return Ca}return w?(w.toJD()-gf)*ta+p*pf+b*Co+m*Is:Ca}s.length===2?s=(Number(s)+2e3-e6)%100+e6:s=Number(s),f-=1;var k=new Date(Date.UTC(2e3,f,v,p,b));return k.setUTCFullYear(s),k.getUTCMonth()!==f||k.getUTCDate()!==v?Ca:k.getTime()+m*Is};Gc=Ht.MIN_MS=Ht.dateTime2ms("-9999");Yc=Ht.MAX_MS=Ht.dateTime2ms("9999-12-31 23:59:59.9999");Ht.isDateTime=function(e,r){return Ht.dateTime2ms(e,r)!==Ca};function Fs(e,r){return String(e+Math.pow(10,r)).substr(1)}var Vc=90*ta,r6=3*pf,t6=5*Co;Ht.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Gc&&e<=Yc))return Ca;r||(r=0);var n=Math.floor(Eo(e+.05,1)*10),a=Math.round(e-n/10),o,i,l,u,s,f;if(Ji(t)){var v=Math.floor(a/ta)+gf,p=Math.floor(Eo(e,ta));try{o=Zi.getComponentMethod("calendars","getCal")(t).fromJD(v).formatDate("yyyy-mm-dd")}catch(b){o=j_("G%Y-%m-%d")(new Date(a))}if(o.charAt(0)==="-")for(;o.length<11;)o="-0"+o.substr(1);else for(;o.length<10;)o="0"+o;i=r=Gc+ta&&e<=Yc-ta))return Ca;var r=Math.floor(Eo(e+.05,1)*10),t=new Date(Math.round(e-r/10)),n=FH("%Y-%m-%d")(t),a=t.getHours(),o=t.getMinutes(),i=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return o6(n,a,o,i,l)};function o6(e,r,t,n,a){if((r||t||n||a)&&(e+=" "+Fs(r,2)+":"+Fs(t,2),(n||a)&&(e+=":"+Fs(n,2),a))){for(var o=4;a%10===0;)o-=1,a/=10;e+="."+Fs(a,o)}return e}Ht.cleanDate=function(e,r,t){if(e===Ca)return r;if(Ht.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Ji(t))return Ep.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Ht.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Ht.isDateTime(e,t))return Ep.error("unrecognized date",e),r;return e};var qH=/%\d?f/g,OH=/%h/g,BH={1:"1",2:"1",3:"2",4:"2"};function n6(e,r,t,n){e=e.replace(qH,function(o){var i=Math.min(+o.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(i).substr(2).replace(/0+$/,"")||"0";return l});var a=new Date(Math.floor(r+.05));if(e=e.replace(OH,function(){return BH[t("%q")(a)]}),Ji(n))try{e=Zi.getComponentMethod("calendars","worldCalFmt")(e,r,n)}catch(o){return"Invalid"}return t(e)(a)}var UH=[59,59.9,59.99,59.999,59.9999];function HH(e,r){var t=Eo(e+.05,ta),n=Fs(Math.floor(t/pf),2)+":"+Fs(Eo(Math.floor(t/Co),60),2);if(r!=="M"){i6(r)||(r=0);var a=Math.min(Eo(e/Is,60),UH[r]),o=(100+a).toFixed(r).substr(1);r>0&&(o=o.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+o}return n}Ht.formatDate=function(e,r,t,n,a,o){if(a=Ji(a)&&a,!r)if(t==="y")r=o.year;else if(t==="m")r=o.month;else if(t==="d")r=o.dayMonth+` +`+o.year;else return HH(e,t)+` +`+n6(o.dayMonthYear,e,n,a);return n6(r,e,n,a)};var a6=3*ta;Ht.incrementMonth=function(e,r,t){t=Ji(t)&&t;var n=Eo(e,ta);if(e=Math.round(e-n),t)try{var a=Math.round(e/ta)+gf,o=Zi.getComponentMethod("calendars","getCal")(t),i=o.fromJD(a);return r%12?o.add(i,r,"m"):o.add(i,r/12,"y"),(i.toJD()-gf)*ta+n}catch(u){Ep.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+a6);return l.setUTCMonth(l.getUTCMonth()+r)+n-a6};Ht.findExactDates=function(e,r){for(var t=0,n=0,a=0,o=0,i,l,u=Ji(r)&&Zi.getComponentMethod("calendars","getCal")(r),s=0;s{"use strict";s6.exports=function(r){return r}});var Dp=pe(Ki=>{"use strict";var VH=rt(),GH=Al(),YH=Lp(),WH=an().BADNUM,Rp=1e-9;Ki.findBin=function(e,r,t){if(VH(r.start))return t?Math.ceil((e-r.start)/r.size-Rp)-1:Math.floor((e-r.start)/r.size+Rp);var n=0,a=r.length,o=0,i=a>1?(r[a-1]-r[0])/(a-1):1,l,u;for(i>=0?u=t?XH:ZH:u=t?KH:JH,e+=i*Rp*(t?-1:1)*(i>=0?1:-1);n90&&GH.log("Long binary search..."),n-1};function XH(e,r){return er}function KH(e,r){return e>=r}Ki.sorterAsc=function(e,r){return e-r};Ki.sorterDes=function(e,r){return r-e};Ki.distinctVals=function(e){var r=e.slice();r.sort(Ki.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===WH;t--);for(var n=r[t]-r[0]||1,a=n/(t||1)/1e4,o=[],i,l=0;l<=t;l++){var u=r[l],s=u-i;i===void 0?(o.push(u),i=u):s>a&&(n=Math.min(n,s),o.push(u),i=u)}return{vals:o,minDiff:n}};Ki.roundUp=function(e,r,t){for(var n=0,a=r.length-1,o,i=0,l=t?0:1,u=t?1:0,s=t?Math.ceil:Math.floor;n0&&(n=1),t&&n)return e.sort(r)}return n?e:e.reverse()};Ki.findIndexOfMin=function(e,r){r=r||YH;for(var t=1/0,n,a=0;a{"use strict";u6.exports=function(r){return Object.keys(r).sort()}});var f6=pe(Vt=>{"use strict";var yf=rt(),QH=jn().isArrayOrTypedArray;Vt.aggNums=function(e,r,t,n){var a,o;if((!n||n>t.length)&&(n=t.length),yf(r)||(r=!1),QH(t[0])){for(o=new Array(n),a=0;ae.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var p6=pe((d0e,d6)=>{"use strict";var c6=Cs(),Pp=c6.mod,$H=c6.modHalf,mf=Math.PI,Lo=2*mf;function jH(e){return e/180*mf}function eV(e){return e/mf*180}function Fp(e){return Math.abs(e[1]-e[0])>Lo-1e-14}function v6(e,r){return $H(r-e,Lo)}function rV(e,r){return Math.abs(v6(e,r))}function h6(e,r){if(Fp(r))return!0;var t,n;r[0]n&&(n+=Lo);var a=Pp(e,Lo),o=a+Lo;return a>=t&&a<=n||o>=t&&o<=n}function tV(e,r,t,n){if(!h6(r,n))return!1;var a,o;return t[0]=a&&e<=o}function Ip(e,r,t,n,a,o,i){a=a||0,o=o||0;var l=Fp([t,n]),u,s,f,v,p;l?(u=0,s=mf,f=Lo):t{"use strict";Sl.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Sl.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Sl.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Sl.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Sl.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Sl.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var x6=pe(Cl=>{"use strict";var Np=Cs().mod;Cl.segmentsIntersect=m6;function m6(e,r,t,n,a,o,i,l){var u=t-e,s=a-e,f=i-a,v=n-r,p=o-r,b=l-o,m=u*b-f*v;if(m===0)return null;var w=(s*b-f*p)/m,M=(s*v-u*p)/m;return M<0||M>1||w<0||w>1?null:{x:e+u*w,y:r+v*w}}Cl.segmentDistance=function(r,t,n,a,o,i,l,u){if(m6(r,t,n,a,o,i,l,u))return 0;var s=n-r,f=a-t,v=l-o,p=u-i,b=s*s+f*f,m=v*v+p*p,w=Math.min(Xc(s,f,b,o-r,i-t),Xc(s,f,b,l-r,u-t),Xc(v,p,m,r-o,t-i),Xc(v,p,m,n-o,a-i));return Math.sqrt(w)};function Xc(e,r,t,n,a){var o=n*e+a*r;if(o<0)return n*n+a*a;if(o>t){var i=n-e,l=a-r;return i*i+l*l}else{var u=n*r-a*e;return u*u/t}}var Zc,zp,y6;Cl.getTextLocation=function(r,t,n,a){if((r!==zp||a!==y6)&&(Zc={},zp=r,y6=a),Zc[n])return Zc[n];var o=r.getPointAtLength(Np(n-a/2,t)),i=r.getPointAtLength(Np(n+a/2,t)),l=Math.atan((i.y-o.y)/(i.x-o.x)),u=r.getPointAtLength(Np(n,t)),s=(u.x*4+o.x+i.x)/6,f=(u.y*4+o.y+i.y)/6,v={x:s,y:f,theta:l};return Zc[n]=v,v};Cl.clearLocationCache=function(){zp=null};Cl.getVisibleSegment=function(r,t,n){var a=t.left,o=t.right,i=t.top,l=t.bottom,u=0,s=r.getTotalLength(),f=s,v,p;function b(w){var M=r.getPointAtLength(w);w===0?v=M:w===s&&(p=M);var y=M.xo?M.x-o:0,k=M.yl?M.y-l:0;return Math.sqrt(y*y+k*k)}for(var m=b(u);m;){if(u+=m+n,u>f)return;m=b(u)}for(m=b(f);m;){if(f-=m+n,u>f)return;m=b(f)}return{min:u,max:f,len:f-u,total:s,isClosed:u===0&&f===s&&Math.abs(v.x-p.x)<.1&&Math.abs(v.y-p.y)<.1}};Cl.findPointOnPath=function(r,t,n,a){a=a||{};for(var o=a.pathLength||r.getTotalLength(),i=a.tolerance||.001,l=a.iterationLimit||30,u=r.getPointAtLength(0)[n]>r.getPointAtLength(o)[n]?-1:1,s=0,f=0,v=o,p,b,m;s0?v=p:f=p,s++}return b}});var Jc=pe(xf=>{"use strict";var Qi={};xf.throttle=function(r,t,n){var a=Qi[r],o=Date.now();if(!a){for(var i in Qi)Qi[i].tsa.ts+t){l();return}a.timer=setTimeout(function(){l(),a.timer=null},t)};xf.done=function(e){var r=Qi[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var n=r.onDone;r.onDone=function(){n&&n(),t(),r.onDone=null}})};xf.clear=function(e){if(e)b6(Qi[e]),delete Qi[e];else for(var r in Qi)xf.clear(r)};function b6(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var w6=pe((m0e,_6)=>{"use strict";_6.exports=function(r){r._responsiveChartHandler&&(window.removeEventListener("resize",r._responsiveChartHandler),delete r._responsiveChartHandler)}});var M6=pe((x0e,Kc)=>{"use strict";Kc.exports=qp;Kc.exports.isMobile=qp;Kc.exports.default=qp;var oV=/(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,lV=/CrOS/,sV=/android|ipad|playbook|silk/i;function qp(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=oV.test(r)&&!lV.test(r)||!!e.tablet&&sV.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var A6=pe((b0e,T6)=>{"use strict";var uV=rt(),fV=M6();T6.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=cV(),typeof t!="string")return!0;var n=fV({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!n)for(var a=t.split(" "),o=1;o-1;l--){var u=a[l];if(u.substr(0,8)==="Version/"){var s=u.substr(8).split(".")[0];if(uV(s)&&(s=+s),s>=13)return!0}}}return n};function cV(){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 S6=pe((_0e,k6)=>{"use strict";var vV=ot();k6.exports=function(r,t,n){var a=r.selectAll("g."+n.replace(/\s/g,".")).data(t,function(i){return i[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",n),a.order();var o=r.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(i){i[0][o]=vV.select(this)}),a}});var E6=pe((w0e,C6)=>{"use strict";var hV=Er();C6.exports=function(r,t){for(var n=r._context.locale,a=0;a<2;a++){for(var o=r._context.locales,i=0;i<2;i++){var l=(o[n]||{}).dictionary;if(l){var u=l[t];if(u)return u}o=hV.localeRegistry}var s=n.split("-")[0];if(s===n)break;n=s}return t}});var R6=pe((M0e,L6)=>{"use strict";L6.exports=function(r){for(var t={},n=[],a=0,o=0;o{"use strict";D6.exports=function(r){for(var t=gV(r)?pV:dV,n=[],a=0;a{"use strict";F6.exports=function(r,t){if(!t)return r;var n=1/Math.abs(t),a=n>1?(n*r+n*t)/n:r+t,o=String(a).length;if(o>16){var i=String(t).length,l=String(r).length;if(o>=l+i){var u=parseFloat(a).toPrecision(12);u.indexOf("e+")===-1&&(a=+u)}}return a}});var z6=pe((k0e,N6)=>{"use strict";var yV=rt(),mV=an().BADNUM,xV=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;N6.exports=function(r){return typeof r=="string"&&(r=r.replace(xV,"")),yV(r)?Number(r):mV}});var ir=pe((S0e,K6)=>{"use strict";var bf=ot(),bV=ks().utcFormat,_V=op().format,V6=rt(),G6=an(),Y6=G6.FP_SAFE,wV=-Y6,q6=G6.BADNUM,Ze=K6.exports={};Ze.adjustFormat=function(r){return!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r)?r:r==="0.f"?"~f":/^\d%/.test(r)?"~%":/^\ds/.test(r)?"~s":!/^[~,.0$]/.test(r)&&/[&fps]/.test(r)?"~"+r:r};var O6={};Ze.warnBadFormat=function(e){var r=String(e);O6[r]||(O6[r]=1,Ze.warn('encountered bad format: "'+r+'"'))};Ze.noFormat=function(e){return String(e)};Ze.numberFormat=function(e){var r;try{r=_V(Ze.adjustFormat(e))}catch(t){return Ze.warnBadFormat(e),Ze.noFormat}return r};Ze.nestedProperty=kc();Ze.keyedContainer=Eb();Ze.relativeAttr=Rb();Ze.isPlainObject=wo();Ze.toLogRange=Cc();Ze.relinkPrivateKeys=Ib();var Ro=jn();Ze.isArrayBuffer=Ro.isArrayBuffer;Ze.isTypedArray=Ro.isTypedArray;Ze.isArrayOrTypedArray=Ro.isArrayOrTypedArray;Ze.isArray1D=Ro.isArray1D;Ze.ensureArray=Ro.ensureArray;Ze.concat=Ro.concat;Ze.maxRowLength=Ro.maxRowLength;Ze.minRowLength=Ro.minRowLength;var W6=Cs();Ze.mod=W6.mod;Ze.modHalf=W6.modHalf;var Do=e4();Ze.valObjectMeta=Do.valObjectMeta;Ze.coerce=Do.coerce;Ze.coerce2=Do.coerce2;Ze.coerceFont=Do.coerceFont;Ze.coercePattern=Do.coercePattern;Ze.coerceHoverinfo=Do.coerceHoverinfo;Ze.coerceSelectionMarkerOpacity=Do.coerceSelectionMarkerOpacity;Ze.validate=Do.validate;var da=l6();Ze.dateTime2ms=da.dateTime2ms;Ze.isDateTime=da.isDateTime;Ze.ms2DateTime=da.ms2DateTime;Ze.ms2DateTimeLocal=da.ms2DateTimeLocal;Ze.cleanDate=da.cleanDate;Ze.isJSDate=da.isJSDate;Ze.formatDate=da.formatDate;Ze.incrementMonth=da.incrementMonth;Ze.dateTick0=da.dateTick0;Ze.dfltRange=da.dfltRange;Ze.findExactDates=da.findExactDates;Ze.MIN_MS=da.MIN_MS;Ze.MAX_MS=da.MAX_MS;var El=Dp();Ze.findBin=El.findBin;Ze.sorterAsc=El.sorterAsc;Ze.sorterDes=El.sorterDes;Ze.distinctVals=El.distinctVals;Ze.roundUp=El.roundUp;Ze.sort=El.sort;Ze.findIndexOfMin=El.findIndexOfMin;Ze.sortObjectKeys=Wc();var $i=f6();Ze.aggNums=$i.aggNums;Ze.len=$i.len;Ze.mean=$i.mean;Ze.geometricMean=$i.geometricMean;Ze.median=$i.median;Ze.midRange=$i.midRange;Ze.variance=$i.variance;Ze.stdev=$i.stdev;Ze.interp=$i.interp;var Ka=Nc();Ze.init2dArray=Ka.init2dArray;Ze.transposeRagged=Ka.transposeRagged;Ze.dot=Ka.dot;Ze.translationMatrix=Ka.translationMatrix;Ze.rotationMatrix=Ka.rotationMatrix;Ze.rotationXYMatrix=Ka.rotationXYMatrix;Ze.apply3DTransform=Ka.apply3DTransform;Ze.apply2DTransform=Ka.apply2DTransform;Ze.apply2DTransform2=Ka.apply2DTransform2;Ze.convertCssMatrix=Ka.convertCssMatrix;Ze.inverseTransformMatrix=Ka.inverseTransformMatrix;var ki=p6();Ze.deg2rad=ki.deg2rad;Ze.rad2deg=ki.rad2deg;Ze.angleDelta=ki.angleDelta;Ze.angleDist=ki.angleDist;Ze.isFullCircle=ki.isFullCircle;Ze.isAngleInsideSector=ki.isAngleInsideSector;Ze.isPtInsideSector=ki.isPtInsideSector;Ze.pathArc=ki.pathArc;Ze.pathSector=ki.pathSector;Ze.pathAnnulus=ki.pathAnnulus;var qs=g6();Ze.isLeftAnchor=qs.isLeftAnchor;Ze.isCenterAnchor=qs.isCenterAnchor;Ze.isRightAnchor=qs.isRightAnchor;Ze.isTopAnchor=qs.isTopAnchor;Ze.isMiddleAnchor=qs.isMiddleAnchor;Ze.isBottomAnchor=qs.isBottomAnchor;var Os=x6();Ze.segmentsIntersect=Os.segmentsIntersect;Ze.segmentDistance=Os.segmentDistance;Ze.getTextLocation=Os.getTextLocation;Ze.clearLocationCache=Os.clearLocationCache;Ze.getVisibleSegment=Os.getVisibleSegment;Ze.findPointOnPath=Os.findPointOnPath;var jc=Mt();Ze.extendFlat=jc.extendFlat;Ze.extendDeep=jc.extendDeep;Ze.extendDeepAll=jc.extendDeepAll;Ze.extendDeepNoArrays=jc.extendDeepNoArrays;var Op=Al();Ze.log=Op.log;Ze.warn=Op.warn;Ze.error=Op.error;var MV=Es();Ze.counterRegex=MV.counter;var Bp=Jc();Ze.throttle=Bp.throttle;Ze.throttleDone=Bp.done;Ze.clearThrottle=Bp.clear;var Qa=vf();Ze.getGraphDiv=Qa.getGraphDiv;Ze.isPlotDiv=Qa.isPlotDiv;Ze.removeElement=Qa.removeElement;Ze.addStyleRule=Qa.addStyleRule;Ze.addRelatedStyleRule=Qa.addRelatedStyleRule;Ze.deleteRelatedStyleRule=Qa.deleteRelatedStyleRule;Ze.setStyleOnHover=Qa.setStyleOnHover;Ze.getFullTransformMatrix=Qa.getFullTransformMatrix;Ze.getElementTransformMatrix=Qa.getElementTransformMatrix;Ze.getElementAndAncestors=Qa.getElementAndAncestors;Ze.equalDomRects=Qa.equalDomRects;Ze.clearResponsive=w6();Ze.preserveDrawingBuffer=A6();Ze.makeTraceGroups=S6();Ze._=E6();Ze.notifier=yp();Ze.filterUnique=R6();Ze.filterVisible=P6();Ze.pushUnique=bp();Ze.increment=I6();Ze.cleanNumber=z6();Ze.ensureNumber=function(r){return V6(r)?(r=Number(r),r>Y6||r=r?!1:V6(e)&&e>=0&&e%1===0};Ze.noop=Ic();Ze.identity=Lp();Ze.repeat=function(e,r){for(var t=new Array(r),n=0;nt?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};Ze.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};Ze.simpleMap=function(e,r,t,n,a){for(var o=e.length,i=new Array(o),l=0;l=Math.pow(2,t)?a>10?(Ze.warn("randstr failed uniqueness"),i):e(r,t,n,(a||0)+1):i};Ze.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(n){n[r]=e,t[n.name]=n,t.optionList.push(n)},t["_"+r]=e,t};Ze.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,n=2*t,a=2*r-1,o=new Array(a),i=new Array(t),l,u,s,f;for(l=0;l=n&&(s-=n*Math.floor(s/n)),s<0?s=-1-s:s>=t&&(s=n-1-s),f+=e[s]*o[u];i[l]=f}return i};Ze.syncOrAsync=function(e,r,t){var n,a;function o(){return Ze.syncOrAsync(e,r,t)}for(;e.length;)if(a=e.splice(0,1)[0],n=a(r),n&&n.then)return n.then(o);return t&&t(r)};Ze.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};Ze.noneOrAll=function(e,r,t){if(e){var n=!1,a=!0,o,i;for(o=0;o0?a:0})};Ze.fillArray=function(e,r,t,n){if(n=n||Ze.identity,Ze.isArrayOrTypedArray(e))for(var a=0;akV.test(window.navigator.userAgent);var SV=/Firefox\/(\d+)\.\d+/;Ze.getFirefoxVersion=function(){var e=SV.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};Ze.isD3Selection=function(e){return e instanceof bf.selection};Ze.ensureSingle=function(e,r,t,n){var a=e.select(r+(t?"."+t:""));if(a.size())return a;var o=e.append(r);return t&&o.classed(t,!0),n&&o.call(n),o};Ze.ensureSingleById=function(e,r,t,n){var a=e.select(r+"#"+t);if(a.size())return a;var o=e.append(r).attr("id",t);return n&&o.call(n),o};Ze.objectFromPath=function(e,r){for(var t=e.split("."),n,a=n={},o=0;o1?a+i[1]:"";if(o&&(i.length>1||l.length>4||t))for(;n.test(l);)l=l.replace(n,"$1"+o+"$2");return l+u};Ze.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var J6=/^\w*$/;Ze.templateString=function(e,r){var t={};return e.replace(Ze.TEMPLATE_STRING_REGEX,function(n,a){var o;return J6.test(a)?o=r[a]:(t[a]=t[a]||Ze.nestedProperty(r,a).get,o=t[a](!0)),o!==void 0?o:""})};var LV={max:10,count:0,name:"hovertemplate"};Ze.hovertemplateString=function(){return Up.apply(LV,arguments)};var RV={max:10,count:0,name:"texttemplate"};Ze.texttemplateString=function(){return Up.apply(RV,arguments)};var DV=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function PV(e){var r=e.match(DV);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var FV={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Ze.texttemplateStringForShapes=function(){return Up.apply(FV,arguments)};var B6=/^[:|\|]/;function Up(e,r,t){var n=this,a=arguments;return r||(r={}),e.replace(Ze.TEMPLATE_STRING_REGEX,function(o,i,l){var u=i==="xother"||i==="yother",s=i==="_xother"||i==="_yother",f=i==="_xother_"||i==="_yother_",v=i==="xother_"||i==="yother_",p=u||s||v||f,b=i;(s||f)&&(b=b.substring(1)),(v||f)&&(b=b.substring(0,b.length-1));var m=null,w=null;if(n.parseMultDiv){var M=PV(b);b=M.key,m=M.op,w=M.number}var y;if(p){if(y=r[b],y===void 0)return""}else{var k,S;for(S=3;S=$c&&i<=U6,s=l>=$c&&l<=U6;if(u&&(n=10*n+i-$c),s&&(a=10*a+l-$c),!u||!s){if(n!==a)return n-a;if(i!==l)return i-l}}return a-n};var zs=2e9;Ze.seedPseudoRandom=function(){zs=2e9};Ze.pseudoRandom=function(){var e=zs;return zs=(69069*zs+1)%4294967296,Math.abs(zs-e)<429496729?Ze.pseudoRandom():zs/4294967296};Ze.fillText=function(e,r,t){var n=Array.isArray(t)?function(i){t.push(i)}:function(i){t.text=i},a=Ze.extractOption(e,r,"htx","hovertext");if(Ze.isValidTextValue(a))return n(a);var o=Ze.extractOption(e,r,"tx","text");if(Ze.isValidTextValue(o))return n(o)};Ze.isValidTextValue=function(e){return e||e===0};Ze.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",n=0;n1&&(s=1):s=0,Ze.strTranslate(a-s*(t+i),o-s*(n+l))+Ze.strScale(s)+(u?"rotate("+u+(r?"":" "+t+" "+n)+")":"")};Ze.setTransormAndDisplay=function(e,r){e.attr("transform",Ze.getTextTransform(r)),e.style("display",r.scale?null:"none")};Ze.ensureUniformFontSize=function(e,r){var t=Ze.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};Ze.join2=function(e,r,t){var n=e.length;return n>1?e.slice(0,-1).join(r)+t+e[n-1]:e.join(r)};Ze.bigFont=function(e){return Math.round(1.2*e)};var H6=Ze.getFirefoxVersion(),IV=H6!==null&&H6<86;Ze.getPositionFromD3Event=function(){return IV?[bf.event.layerX,bf.event.layerY]:[bf.event.offsetX,bf.event.offsetY]}});var j6=pe(()=>{"use strict";var NV=ir(),Q6={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(Hp in Q6)$6=Hp.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),NV.addStyleRule($6,Q6[Hp]);var $6,Hp});var Vp=pe((L0e,ew)=>{ew.exports=!0});var Yp=pe((R0e,rw)=>{"use strict";var zV=Vp(),Gp;typeof window.matchMedia=="function"?Gp=!window.matchMedia("(hover: none)").matches:Gp=zV;rw.exports=Gp});var tv=pe((D0e,Wp)=>{"use strict";var Bs=typeof Reflect=="object"?Reflect:null,tw=Bs&&typeof Bs.apply=="function"?Bs.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},ev;Bs&&typeof Bs.ownKeys=="function"?ev=Bs.ownKeys:Object.getOwnPropertySymbols?ev=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:ev=function(r){return Object.getOwnPropertyNames(r)};function qV(e){console&&console.warn&&console.warn(e)}var aw=Number.isNaN||function(r){return r!==r};function Tt(){Tt.init.call(this)}Wp.exports=Tt;Wp.exports.once=HV;Tt.EventEmitter=Tt;Tt.prototype._events=void 0;Tt.prototype._eventsCount=0;Tt.prototype._maxListeners=void 0;var nw=10;function rv(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Tt,"defaultMaxListeners",{enumerable:!0,get:function(){return nw},set:function(e){if(typeof e!="number"||e<0||aw(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");nw=e}});Tt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Tt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||aw(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function iw(e){return e._maxListeners===void 0?Tt.defaultMaxListeners:e._maxListeners}Tt.prototype.getMaxListeners=function(){return iw(this)};Tt.prototype.emit=function(r){for(var t=[],n=1;n0&&(i=t[0]),i instanceof Error)throw i;var l=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw l.context=i,l}var u=o[r];if(u===void 0)return!1;if(typeof u=="function")tw(u,this,t);else for(var s=u.length,f=fw(u,s),n=0;n0&&i.length>a&&!i.warned){i.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=i.length,qV(l)}return e}Tt.prototype.addListener=function(r,t){return ow(this,r,t,!1)};Tt.prototype.on=Tt.prototype.addListener;Tt.prototype.prependListener=function(r,t){return ow(this,r,t,!0)};function OV(){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 lw(e,r,t){var n={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},a=OV.bind(n);return a.listener=t,n.wrapFn=a,a}Tt.prototype.once=function(r,t){return rv(t),this.on(r,lw(this,r,t)),this};Tt.prototype.prependOnceListener=function(r,t){return rv(t),this.prependListener(r,lw(this,r,t)),this};Tt.prototype.removeListener=function(r,t){var n,a,o,i,l;if(rv(t),a=this._events,a===void 0)return this;if(n=a[r],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete a[r],a.removeListener&&this.emit("removeListener",r,n.listener||t));else if(typeof n!="function"){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){l=n[i].listener,o=i;break}if(o<0)return this;o===0?n.shift():BV(n,o),n.length===1&&(a[r]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};Tt.prototype.off=Tt.prototype.removeListener;Tt.prototype.removeAllListeners=function(r){var t,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[r]),this;if(arguments.length===0){var o=Object.keys(n),i;for(a=0;a=0;a--)this.removeListener(r,t[a]);return this};function sw(e,r,t){var n=e._events;if(n===void 0)return[];var a=n[r];return a===void 0?[]:typeof a=="function"?t?[a.listener||a]:[a]:t?UV(a):fw(a,a.length)}Tt.prototype.listeners=function(r){return sw(this,r,!0)};Tt.prototype.rawListeners=function(r){return sw(this,r,!1)};Tt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):uw.call(e,r)};Tt.prototype.listenerCount=uw;function uw(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}Tt.prototype.eventNames=function(){return this._eventsCount>0?ev(this._events):[]};function fw(e,r){for(var t=new Array(r),n=0;n{"use strict";var Xp=tv().EventEmitter,GV={init:function(e){if(e._ev instanceof Xp)return e;var r=new Xp,t=new Xp;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(n,a){r.emit(n,a),t.emit(n,a)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{}),e},triggerHandler:function(e,r,t){var n,a=e._ev;if(!a)return;var o=a._events[r];if(!o)return;function i(u){if(u.listener){if(a.removeListener(r,u.listener),!u.fired)return u.fired=!0,u.listener.apply(a,[t])}else return u.apply(a,[t])}o=Array.isArray(o)?o:[o];var l;for(l=0;l{"use strict";var hw=ir(),YV=Tl().dfltConfig;function WV(e,r){for(var t=[],n,a=0;aYV.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};ji.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};ji.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};ji.undo=function(r){var t,n;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n{"use strict";gw.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Vs=pe(jt=>{"use strict";var Ea=Er(),wf=ir(),av=Sn(),Jp=Ds(),XV=Zp(),ZV=hf(),JV=Tl().configAttributes,yw=zn(),$a=wf.extendDeepAll,Us=wf.isPlainObject,KV=wf.isArrayOrTypedArray,iv=wf.nestedProperty,QV=wf.valObjectMeta,Kp="_isSubplotObj",ov="_isLinkedToArray",$V="_arrayAttrRegexps",xw="_deprecated",Qp=[Kp,ov,$V,xw];jt.IS_SUBPLOT_OBJ=Kp;jt.IS_LINKED_TO_ARRAY=ov;jt.DEPRECATED=xw;jt.UNDERSCORE_ATTRS=Qp;jt.get=function(){var e={};return Ea.allTypes.forEach(function(r){e[r]=eG(r)}),{defs:{valObjects:QV,metaKeys:Qp.concat(["description","role","editType","impliedEdits"]),editType:{traces:yw.traces,layout:yw.layout},impliedEdits:{}},traces:e,layout:rG(),frames:tG(),animation:Hs(ZV),config:Hs(JV)}};jt.crawl=function(e,r,t,n){var a=t||0;n=n||"",Object.keys(e).forEach(function(o){var i=e[o];if(Qp.indexOf(o)===-1){var l=(n?n+".":"")+o;r(i,o,e,a,l),!jt.isValObject(i)&&Us(i)&&o!=="impliedEdits"&&jt.crawl(i,r,a+1,l)}})};jt.isValObject=function(e){return e&&e.valType!==void 0};jt.findArrayAttributes=function(e){var r=[],t=[],n=[],a,o;function i(u,s,f,v){t=t.slice(0,v).concat([s]),n=n.slice(0,v).concat([u&&u._isLinkedToArray]);var p=u&&(u.valType==="data_array"||u.arrayOk===!0)&&!(t[v-1]==="colorbar"&&(s==="ticktext"||s==="tickvals"));p&&l(a,0,"")}function l(u,s,f){var v=u[t[s]],p=f+t[s];if(s===t.length-1)KV(v)&&r.push(o+p);else if(n[s]){if(Array.isArray(v))for(var b=0;b=o.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var i=r[t];if(!nv(i))return!1;e=o[a][i]}else e=o[a]}else e=o}}return e}function nv(e){return e===Math.round(e)&&e>=0}function eG(e){var r,t;r=Ea.modules[e]._module,t=r.basePlotModule;var n={};n.type=null;var a=$a({},av),o=$a({},r.attributes);jt.crawl(o,function(u,s,f,v,p){iv(a,p).set(void 0),u===void 0&&iv(o,p).set(void 0)}),$a(n,a),Ea.traceIs(e,"noOpacity")&&delete n.opacity,Ea.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),Ea.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),r.selectPoints||delete n.selectedpoints,$a(n,o),t.attributes&&$a(n,t.attributes),n.type=e;var i={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Hs(n)};if(r.layoutAttributes){var l={};$a(l,r.layoutAttributes),i.layoutAttributes=Hs(l)}return r.animatable||jt.crawl(i,function(u){jt.isValObject(u)&&"anim"in u&&delete u.anim}),i}function rG(){var e={},r,t;$a(e,Jp);for(r in Ea.subplotsRegistry)if(t=Ea.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var n=0;n{"use strict";var Gs=ir(),lG=Sn(),Po="templateitemname",$p={name:{valType:"string",editType:"none"}};$p[Po]={valType:"string",editType:"calc"};Ll.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=$p.name,r[Po]=$p[Po],r};Ll.traceTemplater=function(e){var r={},t,n;for(t in e)n=e[t],Array.isArray(n)&&n.length&&(r[t]=0);function a(o){t=Gs.coerce(o,{},lG,"type");var i={type:t,_template:null};if(t in r){n=e[t];var l=r[t]%n.length;r[t]++,i._template=n[l]}return i}return{newTrace:a}};Ll.newContainer=function(e,r,t){var n=e._template,a=n&&(n[r]||t&&n[t]);Gs.isPlainObject(a)||(a=null);var o=e[r]={_template:a};return o};Ll.arrayTemplater=function(e,r,t){var n=e._template,a=n&&n[ww(r)],o=n&&n[r];(!Array.isArray(o)||!o.length)&&(o=[]);var i={};function l(s){var f={name:s.name,_input:s},v=f[Po]=s[Po];if(!_w(v))return f._template=a,f;for(var p=0;p=n&&(t._input||{})._templateitemname;o&&(a=n);var i=r+"["+a+"]",l;function u(){l={},o&&(l[i]={},l[i][Po]=o)}u();function s(b,m){l[b]=m}function f(b,m){o?Gs.nestedProperty(l[i],b).set(m):l[i+"."+b]=m}function v(){var b=l;return u(),b}function p(b,m){b&&f(b,m);var w=v();for(var M in w)Gs.nestedProperty(e,M).set(w[M])}return{modifyBase:s,modifyItem:f,getUpdateObj:v,applyUpdate:p}}});var wn=pe((q0e,Mw)=>{"use strict";var Mf=Es().counter;Mw.exports={idRegex:{x:Mf("x","( domain)?"),y:Mf("y","( domain)?")},attrRegex:Mf("[xy]axis"),xAxisMatch:Mf("xaxis"),yAxisMatch:Mf("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var en=pe(na=>{"use strict";var sG=Er(),jp=wn();na.id2name=function(r){if(!(typeof r!="string"||!r.match(jp.AX_ID_PATTERN))){var t=r.split(" ")[0].substr(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};na.name2id=function(r){if(r.match(jp.AX_NAME_PATTERN)){var t=r.substr(5);return t==="1"&&(t=""),r.charAt(0)+t}};na.cleanId=function(r,t,n){var a=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(jp.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(a&&!n)){var o=r.split(" ")[0].substr(1).replace(/^0+/,"");return o==="1"&&(o=""),r.charAt(0)+o+(a&&n?" domain":"")}};na.list=function(e,r,t){var n=e._fullLayout;if(!n)return[];var a=na.listIds(e,r),o=new Array(a.length),i;for(i=0;in?1:-1:+(e.substr(1)||1)-+(r.substr(1)||1)};na.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Tw(e,r){if(r&&r.length){for(var t=0;t{"use strict";function uG(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function fG(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Aw.exports={clearOutlineControllers:uG,clearOutline:fG}});var lv=pe((U0e,kw)=>{"use strict";kw.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Tf=pe(uv=>{"use strict";var sv=Er(),H0e=wn().SUBPLOT_PATTERN;uv.getSubplotCalcData=function(e,r,t){var n=sv.subplotsRegistry[r];if(!n)return[];for(var a=n.attr,o=[],i=0;i{"use strict";var cG=Er(),Ys=ir();Rl.manageCommandObserver=function(e,r,t,n){var a={},o=!0;r&&r._commandObserver&&(a=r._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var i=Rl.hasSimpleAPICommandBindings(e,t,a.lookupTable);if(r&&r._commandObserver){if(i)return a;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,a}if(i){Sw(e,i,a.cache),a.check=function(){if(o){var f=Sw(e,i,a.cache);return f.changed&&n&&a.lookupTable[f.value]!==void 0&&(a.disable(),Promise.resolve(n({value:f.value,type:i.type,prop:i.prop,traces:i.traces,index:a.lookupTable[f.value]})).then(a.enable,a.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],u=0;u0?".":"")+a;Ys.isPlainObject(o)?eg(o,r,i,n+1):r(i,a,o)}})}});var ln=pe((Y0e,Gw)=>{"use strict";var zw=ot(),hG=ks().timeFormatLocale,dG=op().formatLocale,Af=rt(),pG=lp(),lt=Er(),qw=Vs(),gG=gt(),xr=ir(),Ow=Zr(),Rw=an().BADNUM,aa=en(),yG=Fo().clearOutline,mG=lv(),rg=hf(),xG=Zp(),bG=Tf().getModuleCalcData,Dw=xr.relinkPrivateKeys,Dl=xr._,cr=Gw.exports={};xr.extendFlat(cr,lt);cr.attributes=Sn();cr.attributes.type.values=cr.allTypes;cr.fontAttrs=kn();cr.layoutAttributes=Ds();var cv=Lw();cr.executeAPICommand=cv.executeAPICommand;cr.computeAPICommandBindings=cv.computeAPICommandBindings;cr.manageCommandObserver=cv.manageCommandObserver;cr.hasSimpleAPICommandBindings=cv.hasSimpleAPICommandBindings;cr.redrawText=function(e){return e=xr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(lt.getComponentMethod("annotations","draw")(e),lt.getComponentMethod("legend","draw")(e),lt.getComponentMethod("colorbar","draw")(e),r(cr.previousPromises(e)))},300)})};cr.resize=function(e){e=xr.getGraphDiv(e);var r,t=new Promise(function(n,a){(!e||xr.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||xr.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var o=e.changed;e.autoplay=!0,lt.call("relayout",e,{autosize:!0}).then(function(){e.changed=o,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return r&&r(t),t};cr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};cr.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var r=e._fullLayout,t=xr.ensureSingle(r._paper,"text","js-plot-link-container",function(u){u.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Ow.defaultLine,"pointer-events":"all"}).each(function(){var s=zw.select(this);s.append("tspan").classed("js-link-to-tool",!0),s.append("tspan").classed("js-link-spacer",!0),s.append("tspan").classed("js-sourcelinks",!0)})}),n=t.node(),a={y:r._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=r.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=r._paper.attr("width")-7),t.attr(a);var o=t.select(".js-link-to-tool"),i=t.select(".js-link-spacer"),l=t.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&_G(e,o),i.text(o.text()&&l.text()?" - ":"")}};function _G(e,r){r.text("");var t=r.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)t.on("click",function(){cr.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),a=window.location.search;t.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+a})}}cr.sendDataToCloud=function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(r){e.emit("plotly_beforeexport");var t=zw.select(e).append("div").attr("id","hiddenform").style("display","none"),n=t.append("form").attr({action:r+"/external",method:"post",target:"_blank"}),a=n.append("input").attr({type:"text",name:"data"});return a.node().value=cr.graphJson(e,!1,"keepdata"),n.node().submit(),t.remove(),e.emit("plotly_afterexport"),!1}};var wG=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],MG=["year","month","dayMonth","dayMonthYear"];cr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var a=e._fullLayout={},o=e.layout||{},i=e._fullData||[],l=e._fullData=[],u=e.data||[],s=e.calcdata||[],f=e._context||{},v;e._transitionData||cr.createTransitionData(e),a._dfltTitle={plot:Dl(e,"Click to enter Plot title"),subtitle:Dl(e,"Click to enter Plot subtitle"),x:Dl(e,"Click to enter X axis title"),y:Dl(e,"Click to enter Y axis title"),colorbar:Dl(e,"Click to enter Colorscale title"),annotation:Dl(e,"new text")},a._traceWord=Dl(e,"trace");var p=Pw(e,wG);if(a._mapboxAccessToken=f.mapboxAccessToken,n._initialAutoSizeIsDone){var b=n.width,m=n.height;cr.supplyLayoutGlobalDefaults(o,a,p),o.width||(a.width=b),o.height||(a.height=m),cr.sanitizeMargins(a)}else{cr.supplyLayoutGlobalDefaults(o,a,p);var w=!o.width||!o.height,M=a.autosize,y=f.autosizable,k=w&&(M||y);k?cr.plotAutoSize(e,o,a):w&&cr.sanitizeMargins(a),!M&&w&&(o.width=a.width,o.height=a.height)}a._d3locale=kG(p,a.separators),a._extraFormat=Pw(e,MG),a._initialAutoSizeIsDone=!0,a._dataLength=u.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var S=a._subplots=AG(),x=a._splomAxes={x:{},y:{}},T=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=TG(i,u),cr.supplyDataDefaults(u,l,o,a);var d=Object.keys(x.x),_=Object.keys(x.y);if(d.length>1&&_.length>1){for(lt.getComponentMethod("grid","sizeDefaults")(o,a),v=0;v15&&_.length>15&&a.shapes.length===0&&a.images.length===0,cr.linkSubplots(l,a,i,n),cr.cleanPlot(l,a,i,n);var R=!!(n._has&&n._has("cartesian")),E=!!(a._has&&a._has("cartesian")),D=R,N=E;D&&!N?n._bgLayer.remove():N&&!D&&(a._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&yG({_fullLayout:n}),SG(l,a),Dw(a,n),lt.getComponentMethod("colorscale","crossTraceDefaults")(l,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var I=a._tracePreGUI,F={},L;for(L in I)F[L]="old";for(v=0;v0){var f=1-2*o;i=Math.round(f*i),l=Math.round(f*l)}}var v=cr.layoutAttributes.width.min,p=cr.layoutAttributes.height.min;i1,m=!t.height&&Math.abs(n.height-l)>1;(m||b)&&(b&&(n.width=i),m&&(n.height=l)),r._initialAutoSize||(r._initialAutoSize={width:i,height:l}),cr.sanitizeMargins(n)};cr.supplyLayoutModuleDefaults=function(e,r,t,n){var a=lt.componentsRegistry,o=r._basePlotModules,i,l,u,s=lt.subplotsRegistry.cartesian;for(i in a)u=a[i],u.includeBasePlot&&u.includeBasePlot(e,r);o.length||o.push(s),r._has("cartesian")&&(lt.getComponentMethod("grid","contentDefaults")(e,r),s.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(xr.subplotSort);for(l=0;l1&&(t.l/=M,t.r/=M)}if(p){var y=(t.t+t.b)/p;y>1&&(t.t/=y,t.b/=y)}var k=t.xl!==void 0?t.xl:t.x,S=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,T=t.yb!==void 0?t.yb:t.y;b[r]={l:{val:k,size:t.l+w},r:{val:S,size:t.r+w},b:{val:T,size:t.b+w},t:{val:x,size:t.t+w}},m[r]=1}if(!n._replotting)return cr.doAutoMargin(e)}};function EG(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=aa.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}cr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,n=r.height;r._size||(r._size={}),Bw(r);var a=r._size,o=r.margin,i={t:0,b:0,l:0,r:0},l=xr.extendFlat({},a),u=o.l,s=o.r,f=o.t,v=o.b,p=r._pushmargin,b=r._pushmarginIds,m=r.minreducedwidth,w=r.minreducedheight;if(o.autoexpand!==!1){for(var M in p)b[M]||delete p[M];var y=e._fullLayout._reservedMargin;for(var k in y)for(var S in y[k]){var x=y[k][S];i[S]=Math.max(i[S],x)}p.base={l:{val:0,size:u},r:{val:1,size:s},t:{val:1,size:f},b:{val:0,size:v}};for(var T in i){var d=0;for(var _ in p)_!=="base"&&Af(p[_][T].size)&&(d=p[_][T].size>d?p[_][T].size:d);var g=Math.max(0,o[T]-d);i[T]=Math.max(0,i[T]-g)}for(var c in p){var A=p[c].l||{},h=p[c].b||{},R=A.val,E=A.size,D=h.val,N=h.size,I=t-i.r-i.l,F=n-i.t-i.b;for(var L in p){if(Af(E)&&p[L].r){var P=p[L].r.val,O=p[L].r.size;if(P>R){var U=(E*P+(O-I)*R)/(P-R),X=(O*(1-R)+(E-I)*(1-P))/(P-R);U+X>u+s&&(u=U,s=X)}}if(Af(N)&&p[L].t){var $=p[L].t.val,j=p[L].t.size;if($>D){var Y=(N*$+(j-F)*D)/($-D),q=(j*(1-D)+(N-F)*(1-$))/($-D);Y+q>v+f&&(v=Y,f=q)}}}}}var Q=xr.constrain(t-o.l-o.r,Uw,m),ne=xr.constrain(n-o.t-o.b,Hw,w),K=Math.max(0,t-Q),ie=Math.max(0,n-ne);if(K){var ee=(u+s)/K;ee>1&&(u/=ee,s/=ee)}if(ie){var V=(v+f)/ie;V>1&&(v/=V,f/=V)}if(a.l=Math.round(u)+i.l,a.r=Math.round(s)+i.r,a.t=Math.round(f)+i.t,a.b=Math.round(v)+i.b,a.p=Math.round(o.pad),a.w=Math.round(t)-a.l-a.r,a.h=Math.round(n)-a.t-a.b,!r._replotting&&(cr.didMarginChange(l,a)||EG(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var re=3*(1+Object.keys(b).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};cr.graphJson=function(e,r,t,n,a,o){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&cr.supplyDefaults(e);var i=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,u=(e._transitionData||{})._frames;function s(p,b){if(typeof p=="function")return b?"_function_":null;if(xr.isPlainObject(p)){var m={},w;return Object.keys(p).sort().forEach(function(S){if(["_","["].indexOf(S.charAt(0))===-1){if(typeof p[S]=="function"){b&&(m[S]="_function");return}if(t==="keepdata"){if(S.substr(S.length-3)==="src")return}else if(t==="keepstream"){if(w=p[S+"src"],typeof w=="string"&&w.indexOf(":")>0&&!xr.isPlainObject(p.stream))return}else if(t!=="keepall"&&(w=p[S+"src"],typeof w=="string"&&w.indexOf(":")>0))return;m[S]=s(p[S],b)}}),m}var M=Array.isArray(p),y=xr.isTypedArray(p);if((M||y)&&p.dtype&&p.shape){var k=p.bdata;return s({dtype:p.dtype,shape:p.shape,bdata:xr.isArrayBuffer(k)?pG.encode(k):k},b)}return M?p.map(function(S){return s(S,b)}):y?xr.simpleMap(p,xr.identity):xr.isJSDate(p)?xr.ms2DateTimeLocal(+p):p}var f={data:(i||[]).map(function(p){var b=s(p);return r&&delete b.fit,b})};if(!r&&(f.layout=s(l),a)){var v=l._size;f.layout.computed={margin:{b:v.b,l:v.l,r:v.r,t:v.t}}}return u&&(f.frames=s(u)),o&&(f.config=s(e._context,!0)),n==="object"?f:JSON.stringify(f)};cr.modifyFrames=function(e,r){var t,n,a,o=e._transitionData._frames,i=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return lt.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var p=0,b=0;function m(){return p++,function(){b++,!n&&b===p&&l(v)}}t.runFn(m),setTimeout(m())})}function l(v){if(e._transitionData)return o(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return lt.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(v)}function u(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var s=[cr.previousPromises,u,t.prepareFn,cr.rehover,cr.reselect,i],f=xr.syncOrAsync(s,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}cr.doCalcdata=function(e,r){var t=aa.list(e),n=e._fullData,a=e._fullLayout,o,i,l,u,s=new Array(n.length),f=(e.calcdata||[]).slice();for(e.calcdata=s,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},l=0;l=0;u--)if(T[u].enabled){o._indexToPoints=T[u]._indexToPoints;break}i&&i.calc&&(x=i.calc(e,o))}(!Array.isArray(x)||!x[0])&&(x=[{x:Rw,y:Rw}]),x[0].t||(x[0].t={}),x[0].trace=o,s[k]=x}}for(Iw(t,n,a),l=0;l{"use strict";Pl.xmlns="http://www.w3.org/2000/xmlns/";Pl.svg="http://www.w3.org/2000/svg";Pl.xlink="http://www.w3.org/1999/xlink";Pl.svgAttrs={xmlns:Pl.svg,"xmlns:xlink":Pl.xlink}});var qn=pe((X0e,Yw)=>{"use strict";Yw.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var Yn=pe(La=>{"use strict";var Yt=ot(),eo=ir(),PG=eo.strTranslate,tg=Io(),FG=qn().LINE_SPACING,IG=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;La.convertToTspans=function(e,r,t){var n=e.text(),a=!e.attr("data-notex")&&r&&r._context.typesetMath&&typeof MathJax!="undefined"&&n.match(IG),o=Yt.select(e.node().parentNode);if(o.empty())return;var i=e.attr("class")?e.attr("class").split(" ")[0]:"text";i+="-math",o.selectAll("svg."+i).remove(),o.selectAll("g."+i+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function l(){o.empty()||(i=e.attr("class")+"-math",o.select("svg."+i).remove()),e.text("").style("white-space","pre");var u=ZG(e.node(),n);u&&e.style("pointer-events","all"),La.positionText(e),t&&t.call(e)}return a?(r&&r._promises||[]).push(new Promise(function(u){e.style("display","none");var s=parseInt(e.node().style.fontSize,10),f={fontSize:s};OG(a[2],f,function(v,p,b){o.selectAll("svg."+i).remove(),o.selectAll("g."+i+"-group").remove();var m=v&&v.select("svg");if(!m||!m.node()){l(),u();return}var w=o.append("g").classed(i+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});w.node().appendChild(m.node()),p&&p.node()&&m.node().insertBefore(p.node().cloneNode(!0),m.node().firstChild);var M=b.width,y=b.height;m.attr({class:i,height:y,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var k=e.node().style.fill||"black",S=m.select("g");S.attr({fill:k,stroke:k});var x=S.node().getBoundingClientRect(),T=x.width,d=x.height;(T>M||d>y)&&(m.style("overflow","hidden"),x=m.node().getBoundingClientRect(),T=x.width,d=x.height);var _=+e.attr("x"),g=+e.attr("y"),c=s||e.node().getBoundingClientRect().height,A=-c/4;if(i[0]==="y")w.attr({transform:"rotate("+[-90,_,g]+")"+PG(-T/2,A-d/2)});else if(i[0]==="l")g=A-d/2;else if(i[0]==="a"&&i.indexOf("atitle")!==0)_=0,g=A;else{var h=e.attr("text-anchor");_=_-T*(h==="middle"?.5:h==="end"?1:0),g=g+A-d/2}m.attr({x:_,y:g}),t&&t.call(e,w),u(w)})})):l(),e};var NG=/(<|<|<)/g,zG=/(>|>|>)/g;function qG(e){return e.replace(NG,"\\lt ").replace(zG,"\\gt ")}var Ww=[["$","$"],["\\(","\\)"]];function OG(e,r,t){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){eo.warn("No MathJax version:",MathJax.version);return}var a,o,i,l,u=function(){return o=eo.extendDeepAll({},MathJax.Hub.config),i=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:Ww},displayAlign:"left"})},s=function(){o=eo.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=Ww},f=function(){if(a=MathJax.Hub.config.menuSettings.renderer,a!=="SVG")return MathJax.Hub.setRenderer("SVG")},v=function(){a=MathJax.config.startup.output,a!=="svg"&&(MathJax.config.startup.output="svg")},p=function(){var k="math-output-"+eo.randstr({},64);l=Yt.select("body").append("div").attr({id:k}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"}).text(qG(e));var S=l.node();return n===2?MathJax.Hub.Typeset(S):MathJax.typeset([S])},b=function(){var k=l.select(n===2?".MathJax_SVG":".MathJax"),S=!k.empty()&&l.select("svg").node();if(!S)eo.log("There was an error in the tex syntax.",e),t();else{var x=S.getBoundingClientRect(),T;n===2?T=Yt.select("body").select("#MathJax_SVG_glyphs"):T=k.select("defs"),t(k,T,x)}l.remove()},m=function(){if(a!=="SVG")return MathJax.Hub.setRenderer(a)},w=function(){a!=="svg"&&(MathJax.config.startup.output=a)},M=function(){return i!==void 0&&(MathJax.Hub.processSectionDelay=i),MathJax.Hub.Config(o)},y=function(){MathJax.config=o};n===2?MathJax.Hub.Queue(u,f,p,b,m,M):n===3&&(s(),v(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){p(),b(),w(),y()}))}var Kw={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"},BG={sub:"0.3em",sup:"-0.6em"},UG={sub:"-0.21em",sup:"0.42em"},Xw="\u200B",Zw=["http:","https:","mailto:","",void 0,":"],Qw=La.NEWLINES=/(\r\n?|\n)/g,ag=/(<[^<>]*>)/,ig=/<(\/?)([^ >]*)(\s+(.*))?>/i,HG=//i;La.BR_TAG_ALL=//gi;var $w=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,jw=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,e7=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,VG=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Fl(e,r){if(!e)return null;var t=e.match(r),n=t&&(t[3]||t[4]);return n&&vv(n)}var GG=/(^|;)\s*color:/;La.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,n=r.allowedTags!==void 0?r.allowedTags:["br"],a="...",o=a.length,i=e.split(ag),l=[],u="",s=0,f=0;fo?l.push(v.substr(0,w-o)+a):l.push(v.substr(0,w));break}u=""}}return l.join("")};var YG={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},WG=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function vv(e){return e.replace(WG,function(r,t){var n;return t.charAt(0)==="#"?n=XG(t.charAt(1)==="x"?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):n=YG[t],n||r})}La.convertEntities=vv;function XG(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 ZG(e,r){r=r.replace(Qw," ");var t=!1,n=[],a,o=-1;function i(){o++;var d=document.createElementNS(tg.svg,"tspan");Yt.select(d).attr({class:"line",dy:o*FG+"em"}),e.appendChild(d),a=d;var _=n;if(n=[{node:d}],_.length>1)for(var g=1;g<_.length;g++)l(_[g])}function l(d){var _=d.type,g={},c;if(_==="a"){c="a";var A=d.target,h=d.href,R=d.popup;h&&(g={"xlink:xlink:show":A==="_blank"||A.charAt(0)!=="_"?"new":"replace",target:A,"xlink:xlink:href":h},R&&(g.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+R+'");return false;'))}else c="tspan";d.style&&(g.style=d.style);var E=document.createElementNS(tg.svg,c);if(_==="sup"||_==="sub"){u(a,Xw),a.appendChild(E);var D=document.createElementNS(tg.svg,"tspan");u(D,Xw),Yt.select(D).attr("dy",UG[_]),g.dy=BG[_],a.appendChild(E),a.appendChild(D)}else a.appendChild(E);Yt.select(E).attr(g),a=d.node=E,n.push(d)}function u(d,_){d.appendChild(document.createTextNode(_))}function s(d){if(n.length===1){eo.log("Ignoring unexpected end tag .",r);return}var _=n.pop();d!==_.type&&eo.log("Start tag <"+_.type+"> doesnt match end tag <"+d+">. Pretending it did match.",r),a=n[n.length-1].node}var f=HG.test(r);f?i():(a=e,n=[{node:e}]);for(var v=r.split(ag),p=0;p{"use strict";var JG=ot(),dv=Sa(),Sf=rt(),hv=ir(),t7=Zr(),KG=wl().isValid;function QG(e,r,t){var n=r?hv.nestedProperty(e,r).get()||{}:e,a=n[t||"color"];a&&a._inputArray&&(a=a._inputArray);var o=!1;if(hv.isArrayOrTypedArray(a)){for(var i=0;i=0;n--,a++){var o=e[n];t[a]=[1-o[0],o[1]]}return t}function s7(e,r){r=r||{};for(var t=e.domain,n=e.range,a=n.length,o=new Array(a),i=0;i{"use strict";var f7=Ap(),jG=f7.FORMAT_LINK,eY=f7.DATE_FORMAT_LINK;function rY(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?og:c7)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function og(e,r){return["Sets the "+e+" formatting rule"+(r?"for `"+r+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+jG+"."].join(" ")}function c7(e,r){return og(e,r)+[" And for dates see: "+eY+".","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:rY,descriptionOnlyNumbers:og,descriptionWithDates:c7}});var Ra=pe(($0e,E7)=>{"use strict";var h7=kn(),Ws=Ti(),C7=Ao().dash,sg=Mt().extendFlat,d7=gt().templatedArray,Q0e=ha().templateFormatStringDescription,p7=ro().descriptionWithDates,tY=an().ONEDAY,Ci=wn(),nY=Ci.HOUR_PATTERN,aY=Ci.WEEKDAY_PATTERN,lg={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},iY=sg({},lg,{values:lg.values.slice().concat(["sync"])});function g7(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var y7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},m7={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},x7={valType:"data_array",editType:"ticks"},b7={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 M7={valType:"color",dflt:Ws.defaultLine,editType:"ticks"},T7={valType:"color",dflt:Ws.lightLine,editType:"ticks"};function A7(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var k7=sg({},C7,{editType:"ticks"}),S7={valType:"boolean",editType:"ticks"};E7.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Ws.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"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Ci.idRegex.x.toString(),Ci.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Ci.idRegex.x.toString(),Ci.idRegex.y.toString()],editType:"calc"},rangebreaks: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:[aY,nY,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:tY},editType:"calc"}),tickmode:iY,nticks:g7(),tick0:y7,dtick:m7,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:x7,ticktext:{valType:"data_array",editType:"ticks"},ticks:b7,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:M7,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:sg({},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")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Ws.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:S7,gridcolor:T7,gridwidth:A7(),griddash:k7,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Ws.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Ws.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Ci.idRegex.x.toString(),Ci.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Ci.idRegex.x.toString(),Ci.idRegex.y.toString()],editType:"plot"},minor:{tickmode:lg,nticks:g7("minor"),tick0:y7,dtick:m7,tickvals:x7,ticks:b7,ticklen:_7("minor"),tickwidth:w7("minor"),tickcolor:M7,gridcolor:T7,gridwidth:A7("minor"),griddash:k7,showgrid:S7,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var pv=pe((j0e,D7)=>{"use strict";var At=Ra(),L7=kn(),R7=Mt().extendFlat,oY=zn().overrideAll;D7.exports=oY({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:At.linecolor,outlinewidth:At.linewidth,bordercolor:At.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:At.minor.tickmode,nticks:At.nticks,tick0:At.tick0,dtick:At.dtick,tickvals:At.tickvals,ticktext:At.ticktext,ticks:R7({},At.ticks,{dflt:""}),ticklabeloverflow:R7({},At.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:At.ticklen,tickwidth:At.tickwidth,tickcolor:At.tickcolor,ticklabelstep:At.ticklabelstep,showticklabels:At.showticklabels,labelalias:At.labelalias,tickfont:L7({}),tickangle:At.tickangle,tickformat:At.tickformat,tickformatstops:At.tickformatstops,tickprefix:At.tickprefix,showtickprefix:At.showtickprefix,ticksuffix:At.ticksuffix,showticksuffix:At.showticksuffix,separatethousands:At.separatethousands,exponentformat:At.exponentformat,minexponent:At.minexponent,showexponent:At.showexponent,title:{text:{valType:"string"},font:L7({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var ja=pe((rce,F7)=>{"use strict";var lY=pv(),sY=Es().counter,uY=Wc(),P7=wl().scales,ece=uY(P7);function gv(e){return"`"+e+"`"}F7.exports=function(r,t){r=r||"",t=t||{};var n=t.cLetter||"c",a="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,o="noScale"in t?t.noScale:r==="marker.line",i="showScaleDflt"in t?t.showScaleDflt:n==="z",l=typeof t.colorscaleDflt=="string"?P7[t.colorscaleDflt]:null,u=t.editTypeOverride||"",s=r?r+".":"",f,v;"colorAttr"in t?(f=t.colorAttr,v=t.colorAttr):(f={z:"z",c:"color"}[n],v="in "+gv(s+f));var p=a?" Has an effect only if "+v+" is set to a numerical array.":"",b=n+"auto",m=n+"min",w=n+"max",M=n+"mid",y=gv(s+b),k=gv(s+m),S=gv(s+w),x=k+" and "+S,T={};T[m]=T[w]=void 0;var d={};d[b]=!1;var _={};return f==="color"&&(_.color={valType:"color",arrayOk:!0,editType:u||"style"},t.anim&&(_.color.anim=!0)),_[b]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},_[m]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:d},_[w]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:d},_[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},_.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},_.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},_.reversescale={valType:"boolean",dflt:!1,editType:"plot"},o||(_.showscale={valType:"boolean",dflt:i,editType:"calc"},_.colorbar=lY),t.noColorAxis||(_.coloraxis={valType:"subplotid",regex:sY("coloraxis"),dflt:null,editType:"calc"}),_}});var fg=pe((tce,I7)=>{"use strict";var fY=Mt().extendFlat,cY=ja(),ug=wl().scales;I7.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:ug.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:ug.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:ug.RdBu,editType:"calc"}},coloraxis:fY({_isSubplotObj:!0,editType:"calc"},cY("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var cg=pe((nce,N7)=>{"use strict";var vY=ir();N7.exports=function(r){return vY.isPlainObject(r.colorbar)}});var dg=pe(hg=>{"use strict";var vg=rt(),z7=ir(),q7=an(),hY=q7.ONEDAY,dY=q7.ONEWEEK;hg.dtick=function(e,r){var t=r==="log",n=r==="date",a=r==="category",o=n?hY:1;if(!e)return o;if(vg(e))return e=Number(e),e<=0?o:a?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||t))return o;var i=e.charAt(0),l=e.substr(1);return l=vg(l)?Number(l):0,l<=0||!(n&&i==="M"&&l===Math.round(l)||t&&i==="L"||t&&i==="D"&&(l===1||l===2))?o:e};hg.tick0=function(e,r,t,n){if(r==="date")return z7.cleanDate(e,z7.dateTick0(t,n%dY===0?1:0));if(!(n==="D1"||n==="D2"))return vg(e)?Number(e):0}});var pg=pe((ice,B7)=>{"use strict";var O7=dg(),pY=ir().isArrayOrTypedArray,gY=jn().isTypedArraySpec,yY=jn().decodeTypedArraySpec;B7.exports=function(r,t,n,a,o){o||(o={});var i=o.isMinor,l=i?r.minor||{}:r,u=i?t.minor:t,s=i?"minor.":"";function f(k){var S=l[k];return gY(S)&&(S=yY(S)),S!==void 0?S:(u._template||{})[k]}var v=f("tick0"),p=f("dtick"),b=f("tickvals"),m=pY(b)?"array":p?"linear":"auto",w=n(s+"tickmode",m);if(w==="auto"||w==="sync")n(s+"nticks");else if(w==="linear"){var M=u.dtick=O7.dtick(p,a);u.tick0=O7.tick0(v,a,t.calendar,M)}else if(a!=="multicategory"){var y=n(s+"tickvals");y===void 0?u.tickmode="auto":i||n("ticktext")}}});var yg=pe((oce,H7)=>{"use strict";var gg=ir(),U7=Ra();H7.exports=function(r,t,n,a){var o=a.isMinor,i=o?r.minor||{}:r,l=o?t.minor:t,u=o?U7.minor:U7,s=o?"minor.":"",f=gg.coerce2(i,l,u,"ticklen",o?(t.ticklen||5)*.6:void 0),v=gg.coerce2(i,l,u,"tickwidth",o?t.tickwidth||1:void 0),p=gg.coerce2(i,l,u,"tickcolor",(o?t.tickcolor:void 0)||l.color),b=n(s+"ticks",!o&&a.outerTicks||f||v||p?"outside":"");b||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var mg=pe((lce,V7)=>{"use strict";V7.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],n=t.filter(function(o){return r[o]!==void 0}),a=function(o){return r[o]===r[n[0]]};if(n.every(a)||n.length===1)return r[n[0]]}});var ei=pe((sce,G7)=>{"use strict";var yv=ir(),mY=gt();G7.exports=function(r,t,n){var a=n.name,o=n.inclusionAttr||"visible",i=t[a],l=yv.isArrayOrTypedArray(r[a])?r[a]:[],u=t[a]=[],s=mY.arrayTemplater(t,a,o),f,v;for(f=0;f{"use strict";var xg=ir(),xY=Zr().contrast,Y7=Ra(),bY=mg(),_Y=ei();W7.exports=function(r,t,n,a,o){o||(o={});var i=n("labelalias");xg.isPlainObject(i)||delete t.labelalias;var l=bY(r),u=n("showticklabels");if(u){o.noTicklabelshift||n("ticklabelshift"),o.noTicklabelstandoff||n("ticklabelstandoff");var s=o.font||{},f=t.color,v=t.ticklabelposition||"",p=v.indexOf("inside")!==-1?xY(o.bgColor):f&&f!==Y7.color.dflt?f:s.color;if(xg.coerceFont(n,"tickfont",s,{overrideDflt:{color:p}}),!o.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&n("ticklabelstep"),!o.noAng){var b=n("tickangle");!o.noAutotickangles&&b==="auto"&&n("autotickangles")}if(a!=="category"){var m=n("tickformat");_Y(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:wY}),t.tickformatstops.length||delete t.tickformatstops,!o.noExp&&!m&&a!=="date"&&(n("showexponent",l),n("exponentformat"),n("minexponent"),n("separatethousands"))}!o.noMinorloglabels&&a==="log"&&n("minorloglabels")}};function wY(e,r){function t(a,o){return xg.coerce(e,r,Y7.tickformatstops,a,o)}var n=t("enabled");n&&(t("dtickrange"),t("value"))}});var _g=pe((fce,X7)=>{"use strict";var MY=mg();X7.exports=function(r,t,n,a,o){o||(o={});var i=o.tickSuffixDflt,l=MY(r),u=n("tickprefix");u&&n("showtickprefix",l);var s=n("ticksuffix",i);s&&n("showticksuffix",l)}});var wg=pe((cce,Z7)=>{"use strict";var No=ir(),TY=gt(),AY=pg(),kY=yg(),SY=bg(),CY=_g(),EY=pv();Z7.exports=function(r,t,n){var a=TY.newContainer(t,"colorbar"),o=r.colorbar||{};function i(h,R){return No.coerce(o,a,EY,h,R)}var l=n.margin||{t:0,b:0,l:0,r:0},u=n.width-l.l-l.r,s=n.height-l.t-l.b,f=i("orientation"),v=f==="v",p=i("thicknessmode");i("thickness",p==="fraction"?30/(v?u:s):30);var b=i("lenmode");i("len",b==="fraction"?1:v?s:u);var m=i("yref"),w=i("xref"),M=m==="paper",y=w==="paper",k,S,x,T="left";v?(x="middle",T=y?"left":"right",k=y?1.02:1,S=.5):(x=M?"bottom":"top",T="center",k=.5,S=M?1.02:1),No.coerce(o,a,{x:{valType:"number",min:y?-2:0,max:y?3:1,dflt:k}},"x"),No.coerce(o,a,{y:{valType:"number",min:M?-2:0,max:M?3:1,dflt:S}},"y"),i("xanchor",T),i("xpad"),i("yanchor",x),i("ypad"),No.noneOrAll(o,a,["x","y"]),i("outlinecolor"),i("outlinewidth"),i("bordercolor"),i("borderwidth"),i("bgcolor");var d=No.coerce(o,a,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");i("ticklabeloverflow",d.indexOf("inside")!==-1?"hide past domain":"hide past div"),AY(o,a,i,"linear");var _=n.font,g={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:_};d.indexOf("inside")!==-1&&(g.bgColor="black"),CY(o,a,i,"linear",g),SY(o,a,i,"linear",g),kY(o,a,i,"linear",g),i("title.text",n._dfltTitle.colorbar);var c=a.showticklabels?a.tickfont:_,A=No.extendFlat({},_,{family:c.family,size:No.bigFont(c.size)});No.coerceFont(i,"title.font",A),i("title.side",v?"top":"right")}});var Ei=pe((vce,Q7)=>{"use strict";var J7=rt(),Tg=ir(),LY=cg(),RY=wg(),K7=wl().isValid,DY=Er().traceIs;function Mg(e,r){var t=r.slice(0,r.length-1);return r?Tg.nestedProperty(e,t).get()||{}:e}Q7.exports=function e(r,t,n,a,o){var i=o.prefix,l=o.cLetter,u="_module"in t,s=Mg(r,i),f=Mg(t,i),v=Mg(t._template||{},i)||{},p=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,n,a,o)};if(u){var b=n._colorAxes||{},m=a(i+"coloraxis");if(m){var w=DY(t,"contour")&&Tg.nestedProperty(t,"contours.coloring").get()||"heatmap",M=b[m];M?(M[2].push(p),M[0]!==w&&(M[0]=!1,Tg.warn(["Ignoring coloraxis:",m,"setting","as it is linked to incompatible colorscales."].join(" ")))):b[m]=[w,t,[p]];return}}var y=s[l+"min"],k=s[l+"max"],S=J7(y)&&J7(k)&&y{"use strict";var $7=ir(),PY=gt(),j7=fg(),FY=Ei();e8.exports=function(r,t){function n(v,p){return $7.coerce(r,t,j7,v,p)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var a=t._colorAxes,o,i;function l(v,p){return $7.coerce(o,i,j7.coloraxis,v,p)}for(var u in a){var s=a[u];if(s[0])o=r[u]||{},i=PY.newContainer(t,u,"coloraxis"),i._name=u,FY(o,i,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var IY=ir(),NY=Si().hasColorscale,zY=Si().extractOpts;t8.exports=function(r,t){function n(f,v){var p=f["_"+v];p!==void 0&&(f[v]=p)}function a(f,v){var p=v.container?IY.nestedProperty(f,v.container).get():f;if(p)if(p.coloraxis)p._colorAx=t[p.coloraxis];else{var b=zY(p),m=b.auto;(m||b.min===void 0)&&n(p,v.min),(m||b.max===void 0)&&n(p,v.max),b.autocolorscale&&n(p,"colorscale")}}for(var o=0;o{"use strict";var a8=rt(),Ag=ir(),qY=Si().extractOpts;i8.exports=function(r,t,n){var a=r._fullLayout,o=n.vals,i=n.containerStr,l=i?Ag.nestedProperty(t,i).get():t,u=qY(l),s=u.auto!==!1,f=u.min,v=u.max,p=u.mid,b=function(){return Ag.aggNums(Math.min,null,o)},m=function(){return Ag.aggNums(Math.max,null,o)};if(f===void 0?f=b():s&&(l._colorAx&&a8(f)?f=Math.min(f,b()):f=b()),v===void 0?v=m():s&&(l._colorAx&&a8(v)?v=Math.max(v,m()):v=m()),s&&p!==void 0&&(v-p>p-f?f=p-(v-p):v-p=0?w=a.colorscale.sequential:w=a.colorscale.sequentialminus,u._sync("colorscale",w)}}});var Li=pe((gce,o8)=>{"use strict";var mv=wl(),Xs=Si();o8.exports={moduleType:"component",name:"colorscale",attributes:ja(),layoutAttributes:fg(),supplyLayoutDefaults:r8(),handleDefaults:Ei(),crossTraceDefaults:n8(),calc:zo(),scales:mv.scales,defaultScale:mv.defaultScale,getScale:mv.get,isValidScale:mv.isValid,hasColorscale:Xs.hasColorscale,extractOpts:Xs.extractOpts,extractScale:Xs.extractScale,flipScale:Xs.flipScale,makeColorScaleFunc:Xs.makeColorScaleFunc,makeColorScaleFuncFromTrace:Xs.makeColorScaleFuncFromTrace}});var ia=pe((yce,s8)=>{"use strict";var l8=ir(),OY=jn().isTypedArraySpec;s8.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 l8.isPlainObject(r)&&(l8.isArrayOrTypedArray(r.size)||OY(r.size))}}});var kg=pe((mce,u8)=>{"use strict";var BY=rt();u8.exports=function(r,t){t||(t=2);var n=r.marker,a=n.sizeref||1,o=n.sizemin||0,i=n.sizemode==="area"?function(l){return Math.sqrt(l/a)}:function(l){return l/a};return function(l){var u=i(l/t);return BY(u)&&u>0?Math.max(u,o):0}}});var to=pe(Cn=>{"use strict";var f8=ir();Cn.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Cn.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],n=e.yaxes||[],a=0;a=0&&t.index{h8.exports=YY;var Sg={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},GY=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function YY(e){var r=[];return e.replace(GY,function(t,n,a){var o=n.toLowerCase();for(a=XY(a),o=="m"&&a.length>2&&(r.push([n].concat(a.splice(0,2))),o="l",n=n=="m"?"l":"L");;){if(a.length==Sg[o])return a.unshift(n),r.push(a);if(a.length{"use strict";var ZY=Cg(),sr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Fr="M0,0Z",d8=Math.sqrt(2),qo=Math.sqrt(3),Eg=Math.PI,Lg=Math.cos,Rg=Math.sin;x8.exports={circle:{n:0,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2),a="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return t?Nr(r,t,a):a}},square:{n:1,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.3,2);return Nr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.4,2),a=sr(e*1.2,2);return Nr(r,t,"M"+a+","+n+"H"+n+"V"+a+"H-"+n+"V"+n+"H-"+a+"V-"+n+"H-"+n+"V-"+a+"H"+n+"V-"+n+"H"+a+"Z")}},x:{n:4,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.8/d8,2),a="l"+n+","+n,o="l"+n+",-"+n,i="l-"+n+",-"+n,l="l-"+n+","+n;return Nr(r,t,"M0,"+n+a+o+i+o+i+l+i+l+a+l+a+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*2/qo,2),a=sr(e/2,2),o=sr(e,2);return Nr(r,t,"M-"+n+","+a+"H"+n+"L0,-"+o+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*2/qo,2),a=sr(e/2,2),o=sr(e,2);return Nr(r,t,"M-"+n+",-"+a+"H"+n+"L0,"+o+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*2/qo,2),a=sr(e/2,2),o=sr(e,2);return Nr(r,t,"M"+a+",-"+n+"V"+n+"L-"+o+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*2/qo,2),a=sr(e/2,2),o=sr(e,2);return Nr(r,t,"M-"+a+",-"+n+"V"+n+"L"+o+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.6,2),a=sr(e*1.2,2);return Nr(r,t,"M-"+a+",-"+n+"H"+n+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.6,2),a=sr(e*1.2,2);return Nr(r,t,"M"+n+",-"+a+"V"+n+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.6,2),a=sr(e*1.2,2);return Nr(r,t,"M"+a+","+n+"H-"+n+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.6,2),a=sr(e*1.2,2);return Nr(r,t,"M-"+n+","+a+"V-"+n+"H"+a+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.951,2),a=sr(e*.588,2),o=sr(-e,2),i=sr(e*-.309,2),l=sr(e*.809,2);return Nr(r,t,"M"+n+","+i+"L"+a+","+l+"H-"+a+"L-"+n+","+i+"L0,"+o+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2),a=sr(e/2,2),o=sr(e*qo/2,2);return Nr(r,t,"M"+o+",-"+a+"V"+a+"L0,"+n+"L-"+o+","+a+"V-"+a+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2),a=sr(e/2,2),o=sr(e*qo/2,2);return Nr(r,t,"M-"+a+","+o+"H"+a+"L"+n+",0L"+a+",-"+o+"H-"+a+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.924,2),a=sr(e*.383,2);return Nr(r,t,"M-"+a+",-"+n+"H"+a+"L"+n+",-"+a+"V"+a+"L"+a+","+n+"H-"+a+"L-"+n+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,r,t){if(Ir(r))return Fr;var n=e*1.4,a=sr(n*.225,2),o=sr(n*.951,2),i=sr(n*.363,2),l=sr(n*.588,2),u=sr(-n,2),s=sr(n*-.309,2),f=sr(n*.118,2),v=sr(n*.809,2),p=sr(n*.382,2);return Nr(r,t,"M"+a+","+s+"H"+o+"L"+i+","+f+"L"+l+","+v+"L0,"+p+"L-"+l+","+v+"L-"+i+","+f+"L-"+o+","+s+"H-"+a+"L0,"+u+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.66,2),a=sr(e*.38,2),o=sr(e*.76,2);return Nr(r,t,"M-"+o+",0l-"+a+",-"+n+"h"+o+"l"+a+",-"+n+"l"+a+","+n+"h"+o+"l-"+a+","+n+"l"+a+","+n+"h-"+o+"l-"+a+","+n+"l-"+a+",-"+n+"h-"+o+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*qo*.8,2),a=sr(e*.8,2),o=sr(e*1.6,2),i=sr(e*4,2),l="A "+i+","+i+" 0 0 1 ";return Nr(r,t,"M-"+n+","+a+l+n+","+a+l+"0,-"+o+l+"-"+n+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*qo*.8,2),a=sr(e*.8,2),o=sr(e*1.6,2),i=sr(e*4,2),l="A "+i+","+i+" 0 0 1 ";return Nr(r,t,"M"+n+",-"+a+l+"-"+n+",-"+a+l+"0,"+o+l+n+",-"+a+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.1,2),a=sr(e*2,2),o="A "+a+","+a+" 0 0 1 ";return Nr(r,t,"M-"+n+",-"+n+o+"-"+n+","+n+o+n+","+n+o+n+",-"+n+o+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.4,2),a=sr(e*1.9,2),o="A "+a+","+a+" 0 0 1 ";return Nr(r,t,"M-"+n+",0"+o+"0,"+n+o+n+",0"+o+"0,-"+n+o+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*.7,2),a=sr(e*1.4,2);return Nr(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.4,2),a=sr(e*.7,2);return Nr(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2),a=sr(e/d8,2);return Nr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.3,2);return Nr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.3,2),a=sr(e*.65,2);return Nr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.4,2);return Nr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.2,2),a=sr(e*.85,2);return Nr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e/2,2),a=sr(e,2);return Nr(r,t,"M"+n+","+a+"V-"+a+"M"+(n-a)+",-"+a+"V"+a+"M"+a+","+n+"H-"+a+"M-"+a+","+(n-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.2,2),a=sr(e*1.6,2),o=sr(e*.8,2);return Nr(r,t,"M-"+n+","+o+"L0,0M"+n+","+o+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.2,2),a=sr(e*1.6,2),o=sr(e*.8,2);return Nr(r,t,"M-"+n+",-"+o+"L0,0M"+n+",-"+o+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.2,2),a=sr(e*1.6,2),o=sr(e*.8,2);return Nr(r,t,"M"+o+","+n+"L0,0M"+o+",-"+n+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.2,2),a=sr(e*1.6,2),o=sr(e*.8,2);return Nr(r,t,"M-"+o+","+n+"L0,0M-"+o+",-"+n+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.4,2);return Nr(r,t,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*1.4,2);return Nr(r,t,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2);return Nr(r,t,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2),a=sr(e*2,2);return Nr(r,t,"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2),a=sr(e*2,2);return Nr(r,t,"M0,0L-"+n+",-"+a+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*2,2),a=sr(e,2);return Nr(r,t,"M0,0L"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*2,2),a=sr(e,2);return Nr(r,t,"M0,0L-"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2),a=sr(e*2,2);return Nr(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e,2),a=sr(e*2,2);return Nr(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+a+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*2,2),a=sr(e,2);return Nr(r,t,"M0,-"+a+"V"+a+"M0,0L"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Ir(r))return Fr;var n=sr(e*2,2),a=sr(e,2);return Nr(r,t,"M0,-"+a+"V"+a+"M0,0L-"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Ir(r))return Fr;var n=Eg/2.5,a=2*e*Lg(n),o=2*e*Rg(n);return Nr(r,t,"M0,0L"+-a+","+o+"L"+a+","+o+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Ir(r))return Fr;var n=Eg/4,a=2*e*Lg(n),o=2*e*Rg(n);return Nr(r,t,"M0,0L"+-a+","+o+"A "+2*e+","+2*e+" 0 0 1 "+a+","+o+"Z")},backoff:.4,noDot:!0}};function Ir(e){return e===null}var p8,g8,y8,m8;function Nr(e,r,t){if((!e||e%360===0)&&!r)return t;if(y8===e&&m8===r&&p8===t)return g8;y8=e,m8=r,p8=t;function n(M,y){var k=Lg(M),S=Rg(M),x=y[0],T=y[1]+(r||0);return[x*k-T*S,x*S+T*k]}for(var a=e/180*Eg,o=0,i=0,l=ZY(t),u="",s=0;s{"use strict";var sn=ot(),pt=ir(),JY=pt.numberFormat,ql=rt(),zg=Sa(),bv=Er(),Mn=Zr(),KY=Li(),Ef=pt.strTranslate,_v=Yn(),QY=Io(),$Y=qn(),jY=$Y.LINE_SPACING,L8=Pc().DESELECTDIM,eW=ia(),rW=kg(),tW=to().appendArrayPointValue,hr=B8.exports={};hr.font=function(e,r){var t=r.variant,n=r.style,a=r.weight,o=r.color,i=r.size,l=r.family,u=r.shadow,s=r.lineposition,f=r.textcase;l&&e.style("font-family",l),i+1&&e.style("font-size",i+"px"),o&&e.call(Mn.fill,o),a&&e.style("font-weight",a),n&&e.style("font-style",n),t&&e.style("font-variant",t),f&&e.style("text-transform",Dg(aW(f))),u&&e.style("text-shadow",u==="auto"?_v.makeTextShadow(Mn.contrast(o)):Dg(u)),s&&e.style("text-decoration-line",Dg(iW(s)))};function Dg(e){return e==="none"?void 0:e}var nW={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function aW(e){return nW[e]}function iW(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}hr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};hr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};hr.setRect=function(e,r,t,n,a){e.call(hr.setPosition,r,t).call(hr.setSize,n,a)};hr.translatePoint=function(e,r,t,n){var a=t.c2p(e.x),o=n.c2p(e.y);if(ql(a)&&ql(o)&&r.node())r.node().nodeName==="text"?r.attr("x",a).attr("y",o):r.attr("transform",Ef(a,o));else return!1;return!0};hr.translatePoints=function(e,r,t){e.each(function(n){var a=sn.select(this);hr.translatePoint(n,a,r,t)})};hr.hideOutsideRangePoint=function(e,r,t,n,a,o){r.attr("display",t.isPtWithinRange(e,a)&&n.isPtWithinRange(e,o)?null:"none")};hr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,n=r.yaxis;e.each(function(a){var o=a[0].trace,i=o.xcalendar,l=o.ycalendar,u=bv.traceIs(o,"bar-like")?".bartext":".point,.textpoint";e.selectAll(u).each(function(s){hr.hideOutsideRangePoint(s,sn.select(this),t,n,i,l)})})}};hr.crispRound=function(e,r,t){return!r||!ql(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};hr.singleLineStyle=function(e,r,t,n,a){r.style("fill","none");var o=(((e||[])[0]||{}).trace||{}).line||{},i=t||o.width||0,l=a||o.dash||"";Mn.stroke(r,n||o.color),hr.dashLine(r,l,i)};hr.lineGroupStyle=function(e,r,t,n){e.style("fill","none").each(function(a){var o=(((a||[])[0]||{}).trace||{}).line||{},i=r||o.width||0,l=n||o.dash||"";sn.select(this).call(Mn.stroke,t||o.color).call(hr.dashLine,l,i)})};hr.dashLine=function(e,r,t){t=+t||0,r=hr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};hr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function R8(e,r,t,n){var a=r.fillpattern,o=r.fillgradient,i=hr.getPatternAttr,l=a&&(i(a.shape,0,"")||i(a.path,0,""));if(l){var u=i(a.bgcolor,0,null),s=i(a.fgcolor,0,null),f=a.fgopacity,v=i(a.size,0,8),p=i(a.solidity,0,.3),b=r.uid;hr.pattern(e,"point",t,b,l,v,p,void 0,a.fillmode,u,s,f)}else if(o&&o.type!=="none"){var m=o.type,w="scatterfill-"+r.uid;if(n&&(w="legendfill-"+r.uid),!n&&(o.start!==void 0||o.stop!==void 0)){var M,y;m==="horizontal"?(M={x:o.start,y:0},y={x:o.stop,y:0}):m==="vertical"&&(M={x:0,y:o.start},y={x:0,y:o.stop}),M.x=r._xA.c2p(M.x===void 0?r._extremes.x.min[0].val:M.x,!0),M.y=r._yA.c2p(M.y===void 0?r._extremes.y.min[0].val:M.y,!0),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.max[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.max[0].val:y.y,!0),e.call(F8,t,w,"linear",o.colorscale,"fill",M,y,!0,!1)}else m==="horizontal"&&(m=m+"reversed"),e.call(hr.gradient,t,w,m,o.colorscale,"fill")}else r.fillcolor&&e.call(Mn.fill,r.fillcolor)}hr.singleFillStyle=function(e,r){var t=sn.select(e.node()),n=t.data(),a=((n[0]||[])[0]||{}).trace||{};R8(e,a,r,!1)};hr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(n){var a=sn.select(this);n[0].trace&&R8(a,n[0].trace,r,t)})};var _8=b8();hr.symbolNames=[];hr.symbolFuncs=[];hr.symbolBackOffs=[];hr.symbolNeedLines={};hr.symbolNoDot={};hr.symbolNoFill={};hr.symbolList=[];Object.keys(_8).forEach(function(e){var r=_8[e],t=r.n;hr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),hr.symbolNames[t]=e,hr.symbolFuncs[t]=r.f,hr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(hr.symbolNeedLines[t]=!0),r.noDot?hr.symbolNoDot[t]=!0:hr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(hr.symbolNoFill[t]=!0)});var oW=hr.symbolNames.length,lW="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";hr.symbolNumber=function(e){if(ql(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=hr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=oW||e>=400?0:Math.floor(Math.max(e,0))};function D8(e,r,t,n){var a=e%100;return hr.symbolFuncs[a](r,t,n)+(e>=200?lW:"")}var w8=JY("~f"),P8={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};hr.gradient=function(e,r,t,n,a,o){var i=P8[n];return F8(e,r,t,i.type,a,o,i.start,i.stop,!1,i.reversed)};function F8(e,r,t,n,a,o,i,l,u,s){var f=a.length,v;n==="linear"?v={node:"linearGradient",attrs:{x1:i.x,y1:i.y,x2:l.x,y2:l.y,gradientUnits:u?"userSpaceOnUse":"objectBoundingBox"},reversed:s}:n==="radial"&&(v={node:"radialGradient",reversed:s});for(var p=new Array(f),b=0;b=0&&e.i===void 0&&(e.i=o.i),r.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?i.opacity:e.mo),n.ms2mrc){var u;e.ms==="various"||i.size==="various"?u=3:u=n.ms2mrc(e.ms),e.mrc=u,n.selectedSizeFn&&(u=e.mrc=n.selectedSizeFn(e));var s=hr.symbolNumber(e.mx||i.symbol)||0;e.om=s%200>=100;var f=Bg(e,t),v=Og(e,t);r.attr("d",D8(s,u,f,v))}var p=!1,b,m,w;if(e.so)w=l.outlierwidth,m=l.outliercolor,b=i.outliercolor;else{var M=(l||{}).width;w=(e.mlw+1||M+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?m=e.mlcc=n.lineScale(e.mlc):pt.isArrayOrTypedArray(l.color)?m=Mn.defaultLine:m=l.color,pt.isArrayOrTypedArray(i.color)&&(b=Mn.defaultLine,p=!0),"mc"in e?b=e.mcc=n.markerScale(e.mc):b=i.color||i.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(b=n.selectedColorFn(e))}if(e.om)r.call(Mn.stroke,b).style({"stroke-width":(w||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:w)+"px");var y=i.gradient,k=e.mgt;k?p=!0:k=y&&y.type,pt.isArrayOrTypedArray(k)&&(k=k[0],P8[k]||(k=0));var S=i.pattern,x=hr.getPatternAttr,T=S&&(x(S.shape,e.i,"")||x(S.path,e.i,""));if(k&&k!=="none"){var d=e.mgc;d?p=!0:d=y.color;var _=t.uid;p&&(_+="-"+e.i),hr.gradient(r,a,_,k,[[0,d],[1,b]],"fill")}else if(T){var g=!1,c=S.fgcolor;!c&&o&&o.color&&(c=o.color,g=!0);var A=x(c,e.i,o&&o.color||null),h=x(S.bgcolor,e.i,null),R=S.fgopacity,E=x(S.size,e.i,8),D=x(S.solidity,e.i,.3);g=g||e.mcc||pt.isArrayOrTypedArray(S.shape)||pt.isArrayOrTypedArray(S.path)||pt.isArrayOrTypedArray(S.bgcolor)||pt.isArrayOrTypedArray(S.fgcolor)||pt.isArrayOrTypedArray(S.size)||pt.isArrayOrTypedArray(S.solidity);var N=t.uid;g&&(N+="-"+e.i),hr.pattern(r,"point",a,N,T,E,D,e.mcc,S.fillmode,h,A,R)}else pt.isArrayOrTypedArray(b)?Mn.fill(r,b[e.i]):Mn.fill(r,b);w&&Mn.stroke(r,m)}};hr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=hr.tryColorscale(t,""),r.lineScale=hr.tryColorscale(t,"line"),bv.traceIs(e,"symbols")&&(r.ms2mrc=eW.isBubble(e)?rW(e):function(){return(t.size||6)/2}),e.selectedpoints&&pt.extendFlat(r,hr.makeSelectedPointStyleFns(e)),r};hr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.marker||{},o=t.marker||{},i=n.marker||{},l=a.opacity,u=o.opacity,s=i.opacity,f=u!==void 0,v=s!==void 0;(pt.isArrayOrTypedArray(l)||f||v)&&(r.selectedOpacityFn=function(x){var T=x.mo===void 0?a.opacity:x.mo;return x.selected?f?u:T:v?s:L8*T});var p=a.color,b=o.color,m=i.color;(b||m)&&(r.selectedColorFn=function(x){var T=x.mcc||p;return x.selected?b||T:m||T});var w=a.size,M=o.size,y=i.size,k=M!==void 0,S=y!==void 0;return bv.traceIs(e,"symbols")&&(k||S)&&(r.selectedSizeFn=function(x){var T=x.mrc||w/2;return x.selected?k?M/2:T:S?y/2:T}),r};hr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.textfont||{},o=t.textfont||{},i=n.textfont||{},l=a.color,u=o.color,s=i.color;return r.selectedTextColorFn=function(f){var v=f.tc||l;return f.selected?u||v:s||(u?v:Mn.addOpacity(v,L8))},r};hr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=hr.makeSelectedPointStyleFns(r),n=r.marker||{},a=[];t.selectedOpacityFn&&a.push(function(o,i){o.style("opacity",t.selectedOpacityFn(i))}),t.selectedColorFn&&a.push(function(o,i){Mn.fill(o,t.selectedColorFn(i))}),t.selectedSizeFn&&a.push(function(o,i){var l=i.mx||n.symbol||0,u=t.selectedSizeFn(i);o.attr("d",D8(hr.symbolNumber(l),u,Bg(i,r),Og(i,r))),i.mrc2=u}),a.length&&e.each(function(o){for(var i=sn.select(this),l=0;l0?t:0}hr.textPointStyle=function(e,r,t){if(e.size()){var n;if(r.selectedpoints){var a=hr.makeSelectedTextStyleFns(r);n=a.selectedTextColorFn}var o=r.texttemplate,i=t._fullLayout;e.each(function(l){var u=sn.select(this),s=o?pt.extractOption(l,r,"txt","texttemplate"):pt.extractOption(l,r,"tx","text");if(!s&&s!==0){u.remove();return}if(o){var f=r._module.formatLabels,v=f?f(l,r,i):{},p={};tW(p,r,l.i);var b=r._meta||{};s=pt.texttemplateString(s,v,i._d3locale,p,l,b)}var m=l.tp||r.textposition,w=N8(l,r),M=n?n(l):l.tc||r.textfont.color;u.call(hr.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:w,color:M}).text(s).call(_v.convertToTspans,t).call(I8,m,w,l.mrc)})}};hr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=hr.makeSelectedTextStyleFns(r);e.each(function(n){var a=sn.select(this),o=t.selectedTextColorFn(n),i=n.tp||r.textposition,l=N8(n,r);Mn.fill(a,o);var u=bv.traceIs(r,"bar-like");I8(a,i,l,n.mrc2||n.mrc,u)})}};var M8=.5;hr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],n=[],a;for(a=1;a=u||x>=f&&x<=u)&&(T<=v&&T>=s||T>=v&&T<=s)&&(e=[x,T])}return e}hr.applyBackoff=O8;hr.makeTester=function(){var e=pt.ensureSingleById(sn.select("body"),"svg","js-plotly-tester",function(t){t.attr(QY.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=pt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});hr.tester=e,hr.testref=r};hr.savedBBoxes={};var Fg=0,fW=1e4;hr.bBox=function(e,r,t){t||(t=T8(e));var n;if(t){if(n=hr.savedBBoxes[t],n)return pt.extendFlat({},n)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(t=T8(a),t){var o=+a.getAttribute("x")||0,i=+a.getAttribute("y")||0,l=a.getAttribute("transform");if(!l){var u=hr.bBox(a,!1,t);return o&&(u.left+=o,u.right+=o),i&&(u.top+=i,u.bottom+=i),u}if(t+="~"+o+"~"+i+"~"+l,n=hr.savedBBoxes[t],n)return pt.extendFlat({},n)}}var s,f;r?s=e:(f=hr.tester.node(),s=e.cloneNode(!0),f.appendChild(s)),sn.select(s).attr("transform",null).call(_v.positionText,0,0);var v=s.getBoundingClientRect(),p=hr.testref.node().getBoundingClientRect();r||f.removeChild(s);var b={height:v.height,width:v.width,left:v.left-p.left,top:v.top-p.top,right:v.right-p.left,bottom:v.bottom-p.top};return Fg>=fW&&(hr.savedBBoxes={},Fg=0),t&&(hr.savedBBoxes[t]=b),Fg++,pt.extendFlat({},b)};function T8(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}hr.setClipUrl=function(e,r,t){e.attr("clip-path",qg(r,t))};function qg(e,r){if(!e)return null;var t=r._context,n=t._exportedPlot?"":t._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}hr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(o,i,l){return[i,l].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}};hr.setTranslate=function(e,r,t){var n=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return r=r||0,t=t||0,i=i.replace(n,"").trim(),i+=Ef(r,t),i=i.trim(),e[o]("transform",i),i};hr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(o,i,l){return[i,l].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}};hr.setScale=function(e,r,t){var n=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return r=r||1,t=t||1,i=i.replace(n,"").trim(),i+="scale("+r+","+t+")",i=i.trim(),e[o]("transform",i),i};var cW=/\s*sc.*/;hr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var n=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(cW,"");a+=n,a=a.trim(),this.setAttribute("transform",a)})}};var vW=/translate\([^)]*\)\s*$/;hr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var n,a=sn.select(this),o=a.select("text");if(o.node()){var i=parseFloat(o.attr("x")||0),l=parseFloat(o.attr("y")||0),u=(a.attr("transform")||"").match(vW);r===1&&t===1?n=[]:n=[Ef(i,l),"scale("+r+","+t+")",Ef(-i,-l)],u&&n.push(u),a.attr("transform",n.join(""))}})};function Og(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}hr.getMarkerStandoff=Og;var Cf=Math.atan2,Il=Math.cos,Js=Math.sin;function A8(e,r){var t=r[0],n=r[1];return[t*Il(e)-n*Js(e),t*Js(e)+n*Il(e)]}var k8,S8,C8,E8,Ig,Ng;function Bg(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!t||pt.isArrayOrTypedArray(t))&&(t=0));var n,a,o=r.marker.angleref;if(o==="previous"||o==="north"){if(r._geo){var i=r._geo.project(e.lonlat);n=i[0],a=i[1]}else{var l=r._xA,u=r._yA;if(l&&u)n=l.c2p(e.x),a=u.c2p(e.y);else return 90}if(r._geo){var s=e.lonlat[0],f=e.lonlat[1],v=r._geo.project([s,f+1e-5]),p=r._geo.project([s+1e-5,f]),b=Cf(p[1]-a,p[0]-n),m=Cf(v[1]-a,v[0]-n),w;if(o==="north")w=t/180*Math.PI;else if(o==="previous"){var M=s/180*Math.PI,y=f/180*Math.PI,k=k8/180*Math.PI,S=S8/180*Math.PI,x=k-M,T=Il(S)*Js(x),d=Js(S)*Il(y)-Il(S)*Js(y)*Il(x);w=-Cf(T,d)-Math.PI,k8=s,S8=f}var _=A8(b,[Il(w),0]),g=A8(m,[Js(w),0]);t=Cf(_[1]+g[1],_[0]+g[0])/Math.PI*180,o==="previous"&&!(Ng===r.uid&&e.i===Ig+1)&&(t=null)}if(o==="previous"&&!r._geo)if(Ng===r.uid&&e.i===Ig+1&&ql(n)&&ql(a)){var c=n-C8,A=a-E8,h=r.line&&r.line.shape||"",R=h.slice(h.length-1);R==="h"&&(A=0),R==="v"&&(c=0),t+=Cf(A,c)/Math.PI*180+90}else t=null}return C8=n,E8=a,Ig=e.i,Ng=r.uid,t}hr.getMarkerAngle=Bg});var Lf=pe((Mce,G8)=>{"use strict";var Ks=ot(),hW=rt(),dW=ln(),Ug=Er(),Ol=ir(),U8=Ol.strTranslate,wv=yt(),Mv=Zr(),Qs=Yn(),H8=Pc(),pW=qn().OPPOSITE_SIDE,V8=/ [XY][0-9]* /,Hg=1.6,Vg=1.6;function gW(e,r,t){var n=e._fullLayout,a=t.propContainer,o=t.propName,i=t.placeholder,l=t.traceIndex,u=t.avoid||{},s=t.attributes,f=t.transform,v=t.containerGroup,p=1,b=a.title,m=(b&&b.text?b.text:"").trim(),w=!1,M=b&&b.font?b.font:{},y=M.family,k=M.size,S=M.color,x=M.weight,T=M.style,d=M.variant,_=M.textcase,g=M.lineposition,c=M.shadow,A=t.subtitlePropName,h=!!A,R=t.subtitlePlaceholder,E=(a.title||{}).subtitle||{text:"",font:{}},D=E.text.trim(),N=!1,I=1,F=E.font,L=F.family,P=F.size,O=F.color,U=F.weight,X=F.style,$=F.variant,j=F.textcase,Y=F.lineposition,q=F.shadow,Q;o==="title.text"?Q="titleText":o.indexOf("axis")!==-1?Q="axisTitleText":o.indexOf("colorbar")!==-1&&(Q="colorbarTitleText");var ne=e._context.edits[Q];function K(Ee,Pe){return Ee===void 0||Pe===void 0?!1:Ee.replace(V8," % ")===Pe.replace(V8," % ")}m===""?p=0:K(m,i)&&(ne||(m=""),p=.2,w=!0),h&&(D===""?I=0:K(D,R)&&(ne||(D=""),I=.2,N=!0)),t._meta?m=Ol.templateString(m,t._meta):n._meta&&(m=Ol.templateString(m,n._meta));var ie=m||D||ne,ee;v||(v=Ol.ensureSingle(n._infolayer,"g","g-"+r),ee=n._hColorbarMoveTitle);var V=v.selectAll("text."+r).data(ie?[0]:[]);V.enter().append("text"),V.text(m).attr("class",r),V.exit().remove();var re=null,H=r+"-subtitle",te=D||ne;if(h&&te&&(re=v.selectAll("text."+H).data(te?[0]:[]),re.enter().append("text"),re.text(D).attr("class",H),re.exit().remove()),!ie)return v;function ue(Ee,Pe){Ol.syncOrAsync([de,ke],{title:Ee,subtitle:Pe})}function de(Ee){var Pe=Ee.title,Se=Ee.subtitle,Ne;!f&&ee&&(f={}),f?(Ne="",f.rotate&&(Ne+="rotate("+[f.rotate,s.x,s.y]+")"),(f.offset||ee)&&(Ne+=U8(0,(f.offset||0)-(ee||0)))):Ne=null,Pe.attr("transform",Ne);function Be(ce){if(ce){var he=Ks.select(ce.node().parentNode).select("."+H);if(!he.empty()){var ye=ce.node().getBBox();if(ye.height){var Ce=ye.y+ye.height+Hg*P;he.attr("y",Ce)}}}}if(Pe.style("opacity",p*Mv.opacity(S)).call(wv.font,{color:Mv.rgb(S),size:Ks.round(k,2),family:y,weight:x,style:T,variant:d,textcase:_,shadow:c,lineposition:g}).attr(s).call(Qs.convertToTspans,e,Be),Se){var ge=v.select("."+r+"-math-group"),we=Pe.node().getBBox(),Me=ge.node()?ge.node().getBBox():void 0,me=Me?Me.y+Me.height+Hg*P:we.y+we.height+Vg*P,Re=Ol.extendFlat({},s,{y:me});Se.attr("transform",Ne),Se.style("opacity",I*Mv.opacity(O)).call(wv.font,{color:Mv.rgb(O),size:Ks.round(P,2),family:L,weight:U,style:X,variant:$,textcase:j,shadow:q,lineposition:Y}).attr(Re).call(Qs.convertToTspans,e)}return dW.previousPromises(e)}function ke(Ee){var Pe=Ee.title,Se=Ks.select(Pe.node().parentNode);if(u&&u.selection&&u.side&&m){Se.attr("transform",null);var Ne=pW[u.side],Be=u.side==="left"||u.side==="top"?-1:1,ge=hW(u.pad)?u.pad:2,we=wv.bBox(Se.node()),Me={t:0,b:0,l:0,r:0},me=e._fullLayout._reservedMargin;for(var Re in me)for(var ce in me[Re]){var he=me[Re][ce];Me[ce]=Math.max(Me[ce],he)}var ye={left:Me.l,top:Me.t,right:n.width-Me.r,bottom:n.height-Me.b},Ce=u.maxShift||Be*(ye[u.side]-we[u.side]),ze=0;if(Ce<0)ze=Ce;else{var qe=u.offsetLeft||0,$e=u.offsetTop||0;we.left-=qe,we.right-=qe,we.top-=$e,we.bottom-=$e,u.selection.each(function(){var Ue=wv.bBox(this);Ol.bBoxIntersect(we,Ue,ge)&&(ze=Math.max(ze,Be*(Ue[u.side]-we[Ne])+ge))}),ze=Math.min(Ce,ze),a._titleScoot=Math.abs(ze)}if(ze>0||Ce<0){var We={left:[-ze,0],right:[ze,0],top:[0,-ze],bottom:[0,ze]}[u.side];Se.attr("transform",U8(We[0],We[1]))}}}V.call(ue,re);function Ae(Ee,Pe){Ee.text(Pe).on("mouseover.opacity",function(){Ks.select(this).transition().duration(H8.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Ks.select(this).transition().duration(H8.HIDE_PLACEHOLDER).style("opacity",0)})}if(ne&&(m?V.on(".opacity",null):(Ae(V,i),w=!0),V.call(Qs.makeEditable,{gd:e}).on("edit",function(Ee){l!==void 0?Ug.call("_guiRestyle",e,o,Ee,l):Ug.call("_guiRelayout",e,o,Ee)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ue)}).on("input",function(Ee){this.text(Ee||" ").call(Qs.positionText,s.x,s.y)}),h)){if(h&&!m){var ve=V.node().getBBox(),Te=ve.y+ve.height+Vg*P;re.attr("y",Te)}D?re.on(".opacity",null):(Ae(re,R),N=!0),re.call(Qs.makeEditable,{gd:e}).on("edit",function(Ee){Ug.call("_guiRelayout",e,"title.subtitle.text",Ee)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ue)}).on("input",function(Ee){this.text(Ee||" ").call(Qs.positionText,re.attr("x"),re.attr("y"))})}return V.classed("js-placeholder",w),re&&re.classed("js-placeholder",N),v}G8.exports={draw:gW,SUBTITLE_PADDING_EM:Vg,SUBTITLE_PADDING_MATHJAX_EM:Hg}});var Rv=pe((Tce,J8)=>{"use strict";var yW=ot(),mW=ks().utcFormat,mt=ir(),xW=mt.numberFormat,Ri=rt(),Oo=mt.cleanNumber,bW=mt.ms2DateTime,Y8=mt.dateTime2ms,Di=mt.ensureNumber,W8=mt.isArrayOrTypedArray,Bo=an(),Tv=Bo.FP_SAFE,ri=Bo.BADNUM,_W=Bo.LOG_CLIP,wW=Bo.ONEWEEK,Av=Bo.ONEDAY,kv=Bo.ONEHOUR,X8=Bo.ONEMIN,Z8=Bo.ONESEC,Sv=en(),Lv=wn(),Cv=Lv.HOUR_PATTERN,Ev=Lv.WEEKDAY_PATTERN;function Rf(e){return Math.pow(10,e)}function Gg(e){return e!=null}J8.exports=function(r,t){t=t||{};var n=r._id||"x",a=n.charAt(0);function o(x,T){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&T&&r.range&&r.range.length===2){var d=r.range[0],_=r.range[1];return .5*(d+_-2*_W*Math.abs(d-_))}else return ri}function i(x,T,d,_){if((_||{}).msUTC&&Ri(x))return+x;var g=Y8(x,d||r.calendar);if(g===ri)if(Ri(x)){x=+x;var c=Math.floor(mt.mod(x+.05,1)*10),A=Math.round(x-c/10);g=Y8(new Date(A))+c/10}else return ri;return g}function l(x,T,d){return bW(x,T,d||r.calendar)}function u(x){return r._categories[Math.round(x)]}function s(x){if(Gg(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var T=r._categories.length-1;return r._categoriesMap[x]=T,T}return ri}function f(x,T){for(var d=new Array(T),_=0;_r.range[1]&&(d=!d);for(var _=d?-1:1,g=_*x,c=0,A=0;AR)c=A+1;else{c=g<(h+R)/2?A:A+1;break}}var E=r._B[c]||0;return isFinite(E)?m(x,r._m2,E):0},y=function(x){var T=r._rangebreaks.length;if(!T)return w(x,r._m,r._b);for(var d=0,_=0;_r._rangebreaks[_].pmax&&(d=_+1);return w(x,r._m2,r._B[d])}}r.c2l=r.type==="log"?o:Di,r.l2c=r.type==="log"?Rf:Di,r.l2p=M,r.p2l=y,r.c2p=r.type==="log"?function(x,T){return M(o(x,T))}:M,r.p2c=r.type==="log"?function(x){return Rf(y(x))}:y,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Oo,r.c2d=r.c2r=r.l2d=r.l2r=Di,r.d2p=r.r2p=function(x){return r.l2p(Oo(x))},r.p2d=r.p2r=y,r.cleanPos=Di):r.type==="log"?(r.d2r=r.d2l=function(x,T){return o(Oo(x),T)},r.r2d=r.r2c=function(x){return Rf(Oo(x))},r.d2c=r.r2l=Oo,r.c2d=r.l2r=Di,r.c2r=o,r.l2d=Rf,r.d2p=function(x,T){return r.l2p(r.d2r(x,T))},r.p2d=function(x){return Rf(y(x))},r.r2p=function(x){return r.l2p(Oo(x))},r.p2r=y,r.cleanPos=Di):r.type==="date"?(r.d2r=r.r2d=mt.identity,r.d2c=r.r2c=r.d2l=r.r2l=i,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(x,T,d){return r.l2p(i(x,0,d))},r.p2d=r.p2r=function(x,T,d){return l(y(x),T,d)},r.cleanPos=function(x){return mt.cleanDate(x,ri,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=s,r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=p,r.r2c=function(x){var T=b(x);return T!==void 0?T:r.fraction2r(.5)},r.l2r=r.c2r=Di,r.r2l=b,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return u(y(x))},r.r2p=r.d2p,r.p2r=y,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:Di(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=p,r.r2c=function(x){var T=p(x);return T!==void 0?T:r.fraction2r(.5)},r.r2c_just_indices=v,r.l2r=r.c2r=Di,r.r2l=p,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return u(y(x))},r.r2p=r.d2p,r.p2r=y,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:Di(x)},r.setupMultiCategory=function(x){var T=r._traceIndices,d,_,g=r._matchGroup;if(g&&r._categories.length===0){for(var c in g)if(c!==n){var A=t[Sv.id2name(c)];T=T.concat(A._traceIndices)}}var h=[[0,{}],[0,{}]],R=[];for(d=0;dA[1]&&(_[c?0:1]=d),_[0]===_[1]){var h=r.l2r(T),R=r.l2r(d);if(T!==void 0){var E=h+1;d!==void 0&&(E=Math.min(E,R)),_[c?1:0]=E}if(d!==void 0){var D=R+1;T!==void 0&&(D=Math.max(D,h)),_[c?0:1]=D}}}},r.cleanRange=function(x,T){r._cleanRange(x,T),r.limitRange(x)},r._cleanRange=function(x,T){T||(T={}),x||(x="range");var d=mt.nestedProperty(r,x).get(),_,g;if(r.type==="date"?g=mt.dfltRange(r.calendar):a==="y"?g=Lv.DFLTRANGEY:r._name==="realaxis"?g=[0,1]:g=T.dfltRange||Lv.DFLTRANGEX,g=g.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(g[0]=0),!d||d.length!==2){mt.nestedProperty(r,x).set(g);return}var c=d[0]===null,A=d[1]===null;for(r.type==="date"&&!r.autorange&&(d[0]=mt.cleanDate(d[0],ri,r.calendar),d[1]=mt.cleanDate(d[1],ri,r.calendar)),_=0;_<2;_++)if(r.type==="date"){if(!mt.isDateTime(d[_],r.calendar)){r[x]=g;break}if(r.r2l(d[0])===r.r2l(d[1])){var h=mt.constrain(r.r2l(d[0]),mt.MIN_MS+1e3,mt.MAX_MS-1e3);d[0]=r.l2r(h-1e3),d[1]=r.l2r(h+1e3);break}}else{if(!Ri(d[_]))if(!(c||A)&&Ri(d[1-_]))d[_]=d[1-_]*(_?10:.1);else{r[x]=g;break}if(d[_]<-Tv?d[_]=-Tv:d[_]>Tv&&(d[_]=Tv),d[0]===d[1]){var R=Math.max(1,Math.abs(d[0]*1e-6));d[0]-=R,d[1]+=R}}},r.setScale=function(x){var T=t._size;if(r.overlaying){var d=Sv.getFromId({_fullLayout:t},r.overlaying);r.domain=d.domain}var _=x&&r._r?"_r":"range",g=r.calendar;r.cleanRange(_);var c=r.r2l(r[_][0],g),A=r.r2l(r[_][1],g),h=a==="y";if(h?(r._offset=T.t+(1-r.domain[1])*T.h,r._length=T.h*(r.domain[1]-r.domain[0]),r._m=r._length/(c-A),r._b=-r._m*A):(r._offset=T.l+r.domain[0]*T.w,r._length=T.w*(r.domain[1]-r.domain[0]),r._m=r._length/(A-c),r._b=-r._m*c),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var R,E;if(r._rangebreaks=r.locateBreaks(Math.min(c,A),Math.max(c,A)),r._rangebreaks.length){for(R=0;RA&&(D=!D),D&&r._rangebreaks.reverse();var N=D?-1:1;for(r._m2=N*r._length/(Math.abs(A-c)-r._lBreaks),r._B.push(-r._m2*(h?A:c)),R=0;Rg&&(g+=7,c<_&&(c+=7));break;case Cv:A=new Date(x);var D=A.getUTCHours(),N=A.getUTCMinutes(),I=A.getUTCSeconds(),F=A.getUTCMilliseconds();c=D+(N/60+I/3600+F/36e5),_>g&&(g+=24,c<_&&(c+=24));break;case"":c=x;break}if(c>=_&&c=_&&x=q.min&&(Xq.max&&(q.max=$),j=!1)}j&&A.push({min:X,max:$})}};for(d=0;d{"use strict";var K8=rt(),Yg=ir(),MW=an().BADNUM,Dv=Yg.isArrayOrTypedArray,TW=Yg.isDateTime,AW=Yg.cleanNumber,Q8=Math.round;j8.exports=function(r,t,n){var a=r,o=n.noMultiCategory;if(Dv(a)&&!a.length)return"-";if(!o&&LW(a))return"multicategory";if(o&&Array.isArray(a[0])){for(var i=[],l=0;lo*2}function $8(e){return Math.max(1,(e-1)/1e3)}function EW(e,r){for(var t=e.length,n=$8(t),a=0,o=0,i={},l=0;la*2}function LW(e){return Dv(e[0])&&Dv(e[1])}});var $s=pe((kce,lM)=>{"use strict";var RW=ot(),nM=rt(),Uo=ir(),Pv=an().FP_SAFE,DW=Er(),PW=yt(),aM=en(),FW=aM.getFromId,IW=aM.isLinked;lM.exports={applyAutorangeOptions:oM,getAutoRange:Xg,makePadFn:Zg,doAutoRange:zW,findExtremes:qW,concatExtremes:Qg};function Xg(e,r){var t,n,a=[],o=e._fullLayout,i=Zg(o,r,0),l=Zg(o,r,1),u=Qg(e,r),s=u.min,f=u.max;if(s.length===0||f.length===0)return Uo.simpleMap(r.range,r.r2l);var v=s[0].val,p=f[0].val;for(t=1;t0&&(A=S-i(d)-l(_),A>x?h/A>T&&(g=d,c=_,T=h/A):h/S>T&&(g={val:d.val,nopad:1},c={val:_.val,nopad:1},T=h/S));function R(F,L){return Math.max(F,l(L))}if(v===p){var E=v-1,D=v+1;if(y)if(v===0)a=[0,1];else{var N=(v>0?f:s).reduce(R,0),I=v/(1-Math.min(.5,N/S));a=v>0?[0,I]:[I,0]}else k?a=[Math.max(0,E),Math.max(1,D)]:a=[E,D]}else y?(g.val>=0&&(g={val:0,nopad:1}),c.val<=0&&(c={val:0,nopad:1})):k&&(g.val-T*i(g)<0&&(g={val:0,nopad:1}),c.val<=0&&(c={val:1,nopad:1})),T=(c.val-g.val-eM(r,d.val,_.val))/(S-i(g)-l(c)),a=[g.val-T*i(g),c.val+T*l(c)];return a=oM(a,r),r.limitRange&&r.limitRange(),m&&a.reverse(),Uo.simpleMap(a,r.l2r||Number)}function eM(e,r,t){var n=0;if(e.rangebreaks)for(var a=e.locateBreaks(r,t),o=0;o0?t.ppadplus:t.ppadminus)||t.ppad||0),d=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),_=x(t.vpadplus||t.vpad),g=x(t.vpadminus||t.vpad);if(!s){if(k=1/0,S=-1/0,u)for(v=0;v0&&(k=p),p>S&&p-Pv&&(k=p),p>S&&p=h;v--)A(v);return{min:n,max:a,opts:t}}function Jg(e,r,t,n){iM(e,r,t,n,OW)}function Kg(e,r,t,n){iM(e,r,t,n,BW)}function iM(e,r,t,n,a){for(var o=n.tozero,i=n.extrapad,l=!0,u=0;u=t&&(s.extrapad||!i)){l=!1;break}else a(r,s.val)&&s.pad<=t&&(i||!s.extrapad)&&(e.splice(u,1),u--)}if(l){var f=o&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:i})}}function tM(e){return nM(e)&&Math.abs(e)=r}function UW(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&Fv(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&Fv(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function HW(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&Fv(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&Fv(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function Fv(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=u&&(o=u,t=u),i<=u&&(i=u,n=u)}}return t=UW(t,r),n=HW(n,r),[t,n]}});var Ct=pe((Sce,EM)=>{"use strict";var Da=ot(),Wt=rt(),js=ln(),Pf=Er(),Lr=ir(),eu=Lr.strTranslate,Bl=Yn(),VW=Lf(),Ff=Zr(),pa=yt(),GW=Ra(),sM=dg(),Tn=an(),YW=Tn.ONEMAXYEAR,zv=Tn.ONEAVGYEAR,qv=Tn.ONEMINYEAR,WW=Tn.ONEMAXQUARTER,r2=Tn.ONEAVGQUARTER,Ov=Tn.ONEMINQUARTER,XW=Tn.ONEMAXMONTH,ru=Tn.ONEAVGMONTH,Bv=Tn.ONEMINMONTH,ga=Tn.ONEWEEK,On=Tn.ONEDAY,Ho=On/2,Fi=Tn.ONEHOUR,If=Tn.ONEMIN,Uv=Tn.ONESEC,ZW=Tn.ONEMILLI,JW=Tn.ONEMICROSEC,Ul=Tn.MINUS_SIGN,Gv=Tn.BADNUM,t2={K:"zeroline"},n2={K:"gridline",L:"path"},a2={K:"minor-gridline",L:"path"},xM={K:"tick",L:"path"},uM={K:"tick",L:"text"},fM={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Yv=qn(),Df=Yv.MID_SHIFT,Hl=Yv.CAP_SHIFT,Nf=Yv.LINE_SPACING,KW=Yv.OPPOSITE_SIDE,Hv=3,lr=EM.exports={};lr.setConvert=Rv();var QW=Wg(),no=en(),$W=no.idSort,jW=no.isLinked;lr.id2name=no.id2name;lr.name2id=no.name2id;lr.cleanId=no.cleanId;lr.list=no.list;lr.listIds=no.listIds;lr.getFromId=no.getFromId;lr.getFromTrace=no.getFromTrace;var bM=$s();lr.getAutoRange=bM.getAutoRange;lr.findExtremes=bM.findExtremes;var eX=1e-4;function s2(e){var r=(e[1]-e[0])*eX;return[e[0]-r,e[1]+r]}lr.coerceRef=function(e,r,t,n,a,o){var i=n.charAt(n.length-1),l=t._fullLayout._subplots[i+"axis"],u=n+"ref",s={};return a||(a=l[0]||(typeof o=="string"?o:o[0])),o||(o=a),l=l.concat(l.map(function(f){return f+" domain"})),s[u]={valType:"enumerated",values:l.concat(o?typeof o=="string"?[o]:o:[]),dflt:a},Lr.coerce(e,r,s,u)};lr.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};lr.coercePosition=function(e,r,t,n,a,o){var i,l,u=lr.getRefType(n);if(u!=="range")i=Lr.ensureNumber,l=t(a,o);else{var s=lr.getFromId(r,n);o=s.fraction2r(o),l=t(a,o),i=s.cleanPos}e[a]=i(l)};lr.cleanPosition=function(e,r,t){var n=t==="paper"||t==="pixel"?Lr.ensureNumber:lr.getFromId(r,t).cleanPos;return n(e)};lr.redrawComponents=function(e,r){r=r||lr.listIds(e);var t=e._fullLayout;function n(a,o,i,l){for(var u=Pf.getComponentMethod(a,o),s={},f=0;f2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};lr.saveRangeInitial=function(e,r){for(var t=lr.list(e,"",!0),n=!1,a=0;av*.3||s(n)||s(a))){var p=t.dtick/2;e+=e+pi){var l=Number(t.substr(1));o.exactYears>i&&l%12===0?e=lr.tickIncrement(e,"M6","reverse")+On*1.5:o.exactMonths>i?e=lr.tickIncrement(e,"M1","reverse")+On*15.5:e-=Ho;var u=lr.tickIncrement(e,t);if(u<=n)return u}return e}lr.prepMinorTicks=function(e,r,t){if(!r.minor.dtick){delete e.dtick;var n=r.dtick&&Wt(r._tmin),a;if(n){var o=lr.tickIncrement(r._tmin,r.dtick,!0);a=[r._tmin,o*.99+r._tmin*.01]}else{var i=Lr.simpleMap(r.range,r.r2l);a=[i[0],.8*i[0]+.2*i[1]]}if(e.range=Lr.simpleMap(a,r.l2r),e._isMinor=!0,lr.prepTicks(e,t),n){var l=Wt(r.dtick),u=Wt(e.dtick),s=l?r.dtick:+r.dtick.substring(1),f=u?e.dtick:+e.dtick.substring(1);l&&u?$g(s,f)?s===2*ga&&f===2*On&&(e.dtick=ga):s===2*ga&&f===3*On?e.dtick=ga:s===ga&&!(r._input.minor||{}).nticks?e.dtick=On:hM(s/f,2.5)?e.dtick=s/2:e.dtick=s:String(r.dtick).charAt(0)==="M"?u?e.dtick="M1":$g(s,f)?s>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?$g(s,f)||(e.dtick=hM(s/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}r.minor._tick0Init===void 0&&(e.tick0=r.tick0)};function $g(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function hM(e,r){return Math.abs(e/r-1)<.001}lr.prepTicks=function(e,r){var t=Lr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,a;n||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?Lr.bigFont(e.tickfont.size||12):15,n=e._length/a):(a=e._id.charAt(0)==="y"?40:80,n=Lr.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(t[1]-t[0])/n,lr.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(o=n-1,i=n):(o=n,i=n);var l=e[o].value,u=e[i].value,s=Math.abs(u-l),f=t||s,v=0;f>=qv?s>=qv&&s<=YW?v=s:v=zv:t===r2&&f>=Ov?s>=Ov&&s<=WW?v=s:v=r2:f>=Bv?s>=Bv&&s<=XW?v=s:v=ru:t===ga&&f>=ga?v=ga:f>=On?v=On:t===Ho&&f>=Ho?v=Ho:t===Fi&&f>=Fi&&(v=Fi);var p;v>=s&&(v=s,p=!0);var b=a+v;if(r.rangebreaks&&v>0){for(var m=84,w=0,M=0;Mga&&(v=s)}(v>0||n===0)&&(e[n].periodX=a+v/2)}}lr.calcTicks=function(r,t){for(var n=r.type,a=r.calendar,o=r.ticklabelstep,i=r.ticklabelmode==="period",l=r.range[0]>r.range[1],u=!r.ticklabelindex||Lr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],s=Lr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=s[1]=(S?0:1);x--){var T=!x;x?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var d=x?r:Lr.extendFlat({},r,r.minor);if(T?lr.prepMinorTicks(d,r,t):lr.prepTicks(d,t),d.tickmode==="array"){x?(M=[],m=dM(r,!T)):(y=[],w=dM(r,!T));continue}if(d.tickmode==="sync"){M=[],m=oX(r);continue}var _=s2(s),g=_[0],c=_[1],A=Wt(d.dtick),h=n==="log"&&!(A||d.dtick.charAt(0)==="L"),R=lr.tickFirst(d,t);if(x){if(r._tmin=R,R=c:D<=c;D=lr.tickIncrement(D,F,f,a)){if(x&&N++,d.rangebreaks&&!f){if(D=p)break}if(M.length>b||D===E)break;E=D;var L={value:D};x?(h&&D!==(D|0)&&(L.simpleLabel=!0),o>1&&N%o&&(L.skipLabel=!0),M.push(L)):(L.minor=!0,y.push(L))}}if(!y||y.length<2)u=!1;else{var P=(y[1].value-y[0].value)*(l?-1:1);LX(P,r.tickformat)||(u=!1)}if(!u)k=M;else{var O=M.concat(y);i&&M.length&&(O=O.slice(1)),O=O.sort(function(Te,Ee){return Te.value-Ee.value}).filter(function(Te,Ee,Pe){return Ee===0||Te.value!==Pe[Ee-1].value});var U=O.map(function(Te,Ee){return Te.minor===void 0&&!Te.skipLabel?Ee:null}).filter(function(Te){return Te!==null});U.forEach(function(Te){u.map(function(Ee){var Pe=Te+Ee;Pe>=0&&Pe-1;ie--){if(M[ie].drop){M.splice(ie,1);continue}M[ie].value=e2(M[ie].value,r);var H=r.c2p(M[ie].value);(ee?re>H-V:rep||Sep&&(Pe.periodX=p),Sea&&pzv)r/=zv,n=a(10),e.dtick="M"+12*Pi(r,n,Iv);else if(o>ru)r/=ru,e.dtick="M"+Pi(r,1,pM);else if(o>On){if(e.dtick=Pi(r,On,e._hasDayOfWeekBreaks?[1,2,7,14]:lX),!t){var i=lr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(i)?e.tick0=Lr.dateTick0(e.calendar,2):e.tick0=Lr.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else o>Fi?e.dtick=Pi(r,Fi,pM):o>If?e.dtick=Pi(r,If,gM):o>Uv?e.dtick=Pi(r,Uv,gM):(n=a(10),e.dtick=Pi(r,n,Iv))}else if(e.type==="log"){e.tick0=0;var u=Lr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(u[1]-u[0])<1){var s=1.5*Math.abs((u[1]-u[0])/r);r=Math.abs(Math.pow(10,u[1])-Math.pow(10,u[0]))/s,n=a(10),e.dtick="L"+Pi(r,n,Iv)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):c2(e)?(e.tick0=0,n=1,e.dtick=Pi(r,n,sX)):(e.tick0=0,n=a(10),e.dtick=Pi(r,n,Iv));if(e.dtick===0&&(e.dtick=1),!Wt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function TM(e){var r=e.dtick;if(e._tickexponent=0,!Wt(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),n=e.l2r(t).replace(/(^-|i)/g,""),a=n.length;if(String(r).charAt(0)==="M")a>10||n.substr(5)!=="01-01"?e._tickround="d":e._tickround=+r.substr(1)%12===0?"y":"m";else if(r>=On&&a<=10||r>=On*15)e._tickround="d";else if(r>=If&&a<=16||r>=Fi)e._tickround="M";else if(r>=Uv&&a<=19||r>=If)e._tickround="S";else{var o=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(a,o)-20,e._tickround<0&&(e._tickround=4)}}else if(Wt(r)||r.charAt(0)==="L"){var i=e.range.map(e.r2d||Number);Wt(r)||(r=Number(r.substr(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(i[0]),Math.abs(i[1])),u=Math.floor(Math.log(l)/Math.LN10+.01),s=e.minexponent===void 0?3:e.minexponent;Math.abs(u)>s&&(Vv(e.exponentformat)&&!u2(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}lr.tickIncrement=function(e,r,t,n){var a=t?-1:1;if(Wt(r))return Lr.increment(e,a*r);var o=r.charAt(0),i=a*Number(r.substr(1));if(o==="M")return Lr.incrementMonth(e,i,n);if(o==="L")return Math.log(Math.pow(10,e)+i)/Math.LN10;if(o==="D"){var l=r==="D2"?MM:wM,u=e+a*.01,s=Lr.roundUp(Lr.mod(u,1),l,t);return Math.floor(u)+Math.log(Da.round(Math.pow(10,s),1))/Math.LN10}throw"unrecognized dtick "+String(r)};lr.tickFirst=function(e,r){var t=e.r2l||Number,n=Lr.simpleMap(e.range,t,void 0,void 0,r),a=n[1]=0&&y<=e._length?M:null};if(o&&Lr.isArrayOrTypedArray(e.ticktext)){var v=Lr.simpleMap(e.range,e.r2l),p=(Math.abs(v[1]-v[0])-(e._lBreaks||0))/1e4;for(s=0;s"+l;else{var s=qf(e),f=e._trueSide||e.side;(!s&&f==="top"||s&&f==="bottom")&&(i+="
")}r.text=i}function fX(e,r,t,n,a){var o=e.dtick,i=r.x,l=e.tickformat,u=typeof o=="string"&&o.charAt(0);if(a==="never"&&(a=""),n&&u!=="L"&&(o="L3",u="L"),l||u==="L")r.text=zf(Math.pow(10,i),e,a,n);else if(Wt(o)||u==="D"&&(e.minorloglabels==="complete"||Lr.mod(i+.01,1)<.1)){var s;e.minorloglabels==="complete"&&!(Lr.mod(i+.01,1)<.1)&&(s=!0,r.fontSize*=.75);var f=Math.pow(10,i).toExponential(0),v=f.split("e"),p=+v[1],b=Math.abs(p),m=e.exponentformat;m==="power"||Vv(m)&&u2(p)?(r.text=v[0],b>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),p!==0&&p!==1&&(r.text+=""+(p>0?"":Ul)+b+""),r.fontSize*=1.25):(m==="e"||m==="E")&&b>2?r.text=v[0]+m+(p>0?"+":Ul)+b:(r.text=zf(Math.pow(10,i),e,"","fakehover"),o==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(u==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Lr.mod(i,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(o);if(e.dtick==="D1"){var w=String(r.text).charAt(0);(w==="0"||w==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(i<0?.5:.25)))}}function cX(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function vX(e,r,t){var n=Math.round(r.x),a=e._categories[n]||[],o=a[1]===void 0?"":String(a[1]),i=a[0]===void 0?"":String(a[0]);t?r.text=i+" - "+o:(r.text=o,r.text2=i)}function hX(e,r,t,n,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(a="hide"),r.text=zf(r.x,e,a,n)}function dX(e,r,t,n,a){if(e.thetaunit==="radians"&&!t){var o=r.x/180;if(o===0)r.text="0";else{var i=pX(o);if(i[1]>=100)r.text=zf(Lr.deg2rad(r.x),e,a,n);else{var l=r.x<0;i[1]===1?i[0]===1?r.text="\u03C0":r.text=i[0]+"\u03C0":r.text=["",i[0],"","\u2044","",i[1],"","\u03C0"].join(""),l&&(r.text=Ul+r.text)}}}else r.text=zf(r.x,e,a,n)}function pX(e){function r(l,u){return Math.abs(l-u)<=1e-6}function t(l,u){return r(u,0)?l:t(u,l%u)}function n(l){for(var u=1;!r(Math.round(l*u)/u,l);)u*=10;return u}var a=n(e),o=e*a,i=Math.abs(t(o,a));return[Math.round(o/i),Math.round(a/i)]}var gX=["f","p","n","\u03BC","m","","k","M","G","T"];function Vv(e){return e==="SI"||e==="B"}function u2(e){return e>14||e<-15}function zf(e,r,t,n){var a=e<0,o=r._tickround,i=t||r.exponentformat||"B",l=r._tickexponent,u=lr.getTickFormat(r),s=r.separatethousands;if(n){var f={exponentformat:i,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Wt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};TM(f),o=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(u=r.hoverformat)}if(u)return r._numFormat(u)(e).replace(/-/g,Ul);var v=Math.pow(10,-o)/2;if(i==="none"&&(l=0),e=Math.abs(e),e"+m+"":i==="B"&&l===9?e+="B":Vv(i)&&(e+=gX[l/3+5])}return a?Ul+e:e}lr.getTickFormat=function(e){var r;function t(u){return typeof u!="string"?u:Number(u.replace("M",""))*ru}function n(u,s){var f=["L","D"];if(typeof u==typeof s){if(typeof u=="number")return u-s;var v=f.indexOf(u.charAt(0)),p=f.indexOf(s.charAt(0));return v===p?Number(u.replace(/(L|D)/g,""))-Number(s.replace(/(L|D)/g,"")):v-p}else return typeof u=="number"?1:-1}function a(u,s,f){var v=f||function(m){return m},p=s[0],b=s[1];return(!p&&typeof p!="number"||v(p)<=v(u))&&(!b&&typeof b!="number"||v(b)>=v(u))}function o(u,s){var f=s[0]===null,v=s[1]===null,p=n(u,s[0])>=0,b=n(u,s[1])<=0;return(f||p)&&(v||b)}var i,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&a.unshift(a.splice(f,1).shift())}});var l={false:{left:0,right:0}};return Lr.syncOrAsync(a.map(function(u){return function(){if(u){var s=lr.getFromId(e,u);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=i;var f=lr.drawOne(e,s,t);return s._shiftPusher&&l2(s,s._fullDepth||0,l,!0),s._r=s.range.slice(),s._rl=Lr.simpleMap(s._r,s.r2l),f}}}))};lr.drawOne=function(e,r,t){t=t||{};var n=t.axShifts||{},a=t.overlayingShiftedAx||[],o,i,l;r.setScale();var u=e._fullLayout,s=r._id,f=s.charAt(0),v=lr.counterLetter(s),p=u._plots[r._mainSubplot],b=r.zerolinelayer==="above traces";if(!p)return;if(r._shiftPusher=r.autoshift||a.indexOf(r._id)!==-1||a.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var m=r.linewidth/2||0;r.ticks==="inside"&&(m+=r.ticklen),l2(r,m,n,!0),l2(r,r.shift||0,n,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=EX(r,n));var w=p[f+"axislayer"],M=r._mainLinePosition,y=M+=r._shift,k=r._mainMirrorPosition,S=r._vals=lr.calcTicks(r),x=[r.mirror,y,k].join("_");for(o=0;o0?Se.bottom-Ee:0,Pe))));var we=0,Me=0;if(r._shiftPusher&&(we=Math.max(Pe,Se.height>0?ve==="l"?Ee-Se.left:Se.right-Ee:0),r.title.text!==u._dfltTitle[f]&&(Me=(r._titleStandoff||0)+(r._titleScoot||0),ve==="l"&&(Me+=mM(r))),r._fullDepth=Math.max(we,Me)),r.automargin){Ne={x:0,y:0,r:0,l:0,t:0,b:0};var me=[0,1],Re=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(ve==="b"?Ne[ve]=r._depth:(Ne[ve]=r._depth=Math.max(Se.width>0?Ee-Se.top:0,Pe),me.reverse()),Se.width>0){var ce=Se.right-(r._offset+r._length);ce>0&&(Ne.xr=1,Ne.r=ce);var he=r._offset-Se.left;he>0&&(Ne.xl=0,Ne.l=he)}}else if(ve==="l"?(r._depth=Math.max(Se.height>0?Ee-Se.left:0,Pe),Ne[ve]=r._depth-Re):(r._depth=Math.max(Se.height>0?Se.right-Ee:0,Pe),Ne[ve]=r._depth+Re,me.reverse()),Se.height>0){var ye=Se.bottom-(r._offset+r._length);ye>0&&(Ne.yb=0,Ne.b=ye);var Ce=r._offset-Se.top;Ce>0&&(Ne.yt=1,Ne.t=Ce)}Ne[v]=r.anchor==="free"?r.position:r._anchorAxis.domain[me[0]],r.title.text!==u._dfltTitle[f]&&(Ne[ve]+=mM(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Be={x:0,y:0,r:0,l:0,t:0,b:0},Be[Te]=r.linewidth,r.mirror&&r.mirror!==!0&&(Be[Te]+=Pe),r.mirror===!0||r.mirror==="ticks"?Be[v]=r._anchorAxis.domain[me[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Be[v]=[r._counterDomainMin,r._counterDomainMax][me[1]]))}Ae&&(ge=Pf.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(yM(Ne,r.automargin),yM(Be,r.automargin)),js.autoMargin(e,f2(r),Ne),js.autoMargin(e,SM(r),Be),js.autoMargin(e,CM(r),ge)}),Lr.syncOrAsync(de)}};function yM(e,r){if(e){var t=Object.keys(fM).reduce(function(n,a){return r.indexOf(a)!==-1&&fM[a].forEach(function(o){n[o]=1}),n},{});Object.keys(e).forEach(function(n){t[n]||(n.length===1?e[n]=0:delete e[n])})}}function yX(e,r){var t=[],n,a=function(o,i){var l=o.xbnd[i];l!==null&&t.push(Lr.extendFlat({},o,{x:l}))};if(r.length){for(n=0;ne.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,u=!l;if(t){var s=i?-1:1;t=t*s}if(n){var f=e.side,v=l&&(f==="top"||f==="left")||u&&(f==="bottom"||f==="right")?1:-1;n=n*v}return e._id.charAt(0)==="x"?function(p){return eu(a+e._offset+e.l2p(i2(p))+t,o+n)}:function(p){return eu(o+n,a+e._offset+e.l2p(i2(p))+t)}};function i2(e){return e.periodX!==void 0?e.periodX:e.x}function _X(e){var r=e.ticklabelposition||"",t=e.tickson||"",n=function(m){return r.indexOf(m)!==-1},a=n("top"),o=n("left"),i=n("right"),l=n("bottom"),u=n("inside"),s=t!=="boundaries"&&(l||o||a||i);if(!s&&!u)return[0,0];var f=e.side,v=s?(e.tickwidth||0)/2:0,p=Hv,b=e.tickfont?e.tickfont.size:12;return(l||a)&&(v+=b*Hl,p+=(e.linewidth||0)/2),(o||i)&&(v+=(e.linewidth||0)/2,p+=Hv),u&&f==="top"&&(p-=b*(1-Hl)),(o||a)&&(v=-v),(f==="bottom"||f==="right")&&(p=-p),[s?v:0,u?p:0]}lr.makeTickPath=function(e,r,t,n){n||(n={});var a=n.minor;if(a&&!e.minor)return"";var o=n.len!==void 0?n.len:a?e.minor.ticklen:e.ticklen,i=e._id.charAt(0),l=(e.linewidth||1)/2;return i==="x"?"M0,"+(r+l*t)+"v"+o*t:"M"+(r+l*t)+",0h"+o*t};lr.makeLabelFns=function(e,r,t){var n=e.ticklabelposition||"",a=e.tickson||"",o=function(E){return n.indexOf(E)!==-1},i=o("top"),l=o("left"),u=o("right"),s=o("bottom"),f=a!=="boundaries"&&(s||l||i||u),v=o("inside"),p=n==="inside"&&e.ticks==="inside"||!v&&e.ticks==="outside"&&a!=="boundaries",b=0,m=0,w=p?e.ticklen:0;if(v?w*=-1:f&&(w=0),p&&(b+=w,t)){var M=Lr.deg2rad(t);b=w*Math.cos(M)+1,m=w*Math.sin(M)}e.showticklabels&&(p||e.showline)&&(b+=.2*e.tickfont.size),b+=(e.linewidth||1)/2*(v?-1:1);var y={labelStandoff:b,labelShift:m},k,S,x,T,d=0,_=e.side,g=e._id.charAt(0),c=e.tickangle,A;if(g==="x")A=!v&&_==="bottom"||v&&_==="top",T=A?1:-1,v&&(T*=-1),k=m*T,S=r+b*T,x=A?1:-.2,Math.abs(c)===90&&(v?x+=Df:c===-90&&_==="bottom"?x=Hl:c===90&&_==="top"?x=Df:x=.5,d=Df/2*(c/90)),y.xFn=function(E){return E.dx+k+d*E.fontSize},y.yFn=function(E){return E.dy+S+E.fontSize*x},y.anchorFn=function(E,D){if(f){if(l)return"end";if(u)return"start"}return!Wt(D)||D===0||D===180?"middle":D*T<0!==v?"end":"start"},y.heightFn=function(E,D,N){return D<-60||D>60?-.5*N:e.side==="top"!==v?-N:0};else if(g==="y"){if(A=!v&&_==="left"||v&&_==="right",T=A?1:-1,v&&(T*=-1),k=b,S=m*T,x=0,!v&&Math.abs(c)===90&&(c===-90&&_==="left"||c===90&&_==="right"?x=Hl:x=.5),v){var h=Wt(c)?+c:0;if(h!==0){var R=Lr.deg2rad(h);d=Math.abs(Math.sin(R))*Hl*T,x=0}}y.xFn=function(E){return E.dx+r-(k+E.fontSize*x)*T+d*E.fontSize},y.yFn=function(E){return E.dy+S+E.fontSize*Df},y.anchorFn=function(E,D){return Wt(D)&&Math.abs(D)===90?"middle":A?"end":"start"},y.heightFn=function(E,D,N){return e.side==="right"&&(D*=-1),D<-30?-N:D<30?-.5*N:0}}return y};function Wv(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}lr.drawTicks=function(e,r,t){t=t||{};var n=r._id+"tick",a=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(i){return i.minor&&!i.noTick}):[]).concat(r.ticks?t.vals.filter(function(i){return!i.minor&&!i.noTick}):[]),o=t.layer.selectAll("path."+n).data(a,Wv);o.exit().remove(),o.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(i){return Ff.stroke(Da.select(this),i.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(i){return pa.crispRound(e,i.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Xv(r,[xM]),o.attr("transform",t.transFn)};lr.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var n=r._id+"grid",a=r.minor&&r.minor.showgrid,o=a?t.vals.filter(function(y){return y.minor}):[],i=r.showgrid?t.vals.filter(function(y){return!y.minor}):[],l=t.counterAxis;if(l&&lr.shouldShowZeroLine(e,r,l))for(var u=r.tickmode==="array",s=0;s=0;m--){var w=m?p:b;if(w){var M=w.selectAll("path."+n).data(m?i:o,Wv);M.exit().remove(),M.enter().append("path").classed(n,1).classed("crisp",t.crisp!==!1),M.attr("transform",t.transFn).attr("d",t.path).each(function(y){return Ff.stroke(Da.select(this),y.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(y){return pa.dashStyle(y.minor?r.minor.griddash:r.griddash,y.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(y){return(y.minor?v:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&M.attr("d",t.path)}}Xv(r,[n2,a2])}};lr.drawZeroLine=function(e,r,t){t=t||t;var n=r._id+"zl",a=lr.shouldShowZeroLine(e,r,t.counterAxis),o=t.layer.selectAll("path."+n).data(a?[{x:0,id:r._id}]:[]);o.exit().remove(),o.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(i,l){return $W(i.id,l.id)})}),o.attr("transform",t.transFn).attr("d",t.path).call(Ff.stroke,r.zerolinecolor||Ff.defaultLine).style("stroke-width",pa.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Xv(r,[t2])};lr.drawLabels=function(e,r,t){t=t||{};var n=e._fullLayout,a=r._id,o=r.zerolinelayer==="above traces",i=t.cls||a+"tick",l=t.vals.filter(function(P){return P.text}),u=t.labelFns,s=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[i],v=t.layer.selectAll("g."+i).data(r.showticklabels?l:[],Wv),p=[];v.enter().append("g").classed(i,1).append("text").attr("text-anchor","middle").each(function(P){var O=Da.select(this),U=e._promises.length;O.call(Bl.positionText,u.xFn(P),u.yFn(P)).call(pa.font,{family:P.font,size:P.fontSize,color:P.fontColor,weight:P.fontWeight,style:P.fontStyle,variant:P.fontVariant,textcase:P.fontTextcase,lineposition:P.fontLineposition,shadow:P.fontShadow}).text(P.text).call(Bl.convertToTspans,e),e._promises[U]?p.push(e._promises.pop().then(function(){b(O,s)})):b(O,s)}),Xv(r,[uM]),v.exit().remove(),t.repositionOnUpdate&&v.each(function(P){Da.select(this).select("text").call(Bl.positionText,u.xFn(P),u.yFn(P))});function b(P,O){P.each(function(U){var X=Da.select(this),$=X.select(".text-math-group"),j=u.anchorFn(U,O),Y=t.transFn.call(X.node(),U)+(Wt(O)&&+O!=0?" rotate("+O+","+u.xFn(U)+","+(u.yFn(U)-U.fontSize/2)+")":""),q=Bl.lineCount(X),Q=Nf*U.fontSize,ne=u.heightFn(U,Wt(O)?+O:0,(q-1)*Q);if(ne&&(Y+=eu(0,ne)),$.empty()){var K=X.select("text");K.attr({transform:Y,"text-anchor":j}),K.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ie=pa.bBox($.node()).width,ee=ie*{end:-.5,start:.5}[j];$.attr("transform",Y+eu(ee,0))}})}r._adjustTickLabelsOverflow=function(){var P=r.ticklabeloverflow;if(!(!P||P==="allow")){var O=P.indexOf("hide")!==-1,U=r._id.charAt(0)==="x",X=0,$=U?e._fullLayout.width:e._fullLayout.height;if(P.indexOf("domain")!==-1){var j=Lr.simpleMap(r.range,r.r2l);X=r.l2p(j[0])+r._offset,$=r.l2p(j[1])+r._offset}var Y=Math.min(X,$),q=Math.max(X,$),Q=r.side,ne=1/0,K=-1/0;v.each(function(re){var H=Da.select(this),te=H.select(".text-math-group");if(te.empty()){var ue=pa.bBox(H.node()),de=0;U?(ue.right>q||ue.leftq||ue.top+(r.tickangle?0:re.fontSize/4)r["_visibleLabelMin_"+j._id]?H.style("display","none"):q.K==="tick"&&!Y&&H.node().style.display!=="none"&&H.style("display",null)})})})})},b(v,f+1?f:s);function m(){return p.length&&Promise.all(p)}var w=null;function M(){if(b(v,s),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){w=r.autotickangles[0];var P=0,O=[],U,X=1;v.each(function(Ne){P=Math.max(P,Ne.fontSize);var Be=r.l2p(Ne.x),ge=o2(this),we=pa.bBox(ge.node());X=Math.max(X,Bl.lineCount(ge)),O.push({top:0,bottom:10,height:10,left:Be-we.width/2,right:Be+we.width/2+2,width:we.width+2})});var $=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,j=l.length,Y=Math.abs((l[j-1].x-l[0].x)*r._m)/(j-1),q=$?Y/2:Y,Q=$?r.ticklen:P*1.25*X,ne=Math.sqrt(Math.pow(q,2)+Math.pow(Q,2)),K=q/ne,ie=r.autotickangles.map(function(Ne){return Ne*Math.PI/180}),ee=ie.find(function(Ne){return Math.abs(Math.cos(Ne))<=K});ee===void 0&&(ee=ie.reduce(function(Ne,Be){return Math.abs(Math.cos(Ne))I*N&&(R=N,c[g]=A[g]=E[g])}var F=Math.abs(R-h);F-T>0?(F-=T,T*=1+T/F):T=0,r._id.charAt(0)!=="y"&&(T=-T),c[_]=S.p2r(S.r2p(A[_])+d*T),S.autorange==="min"||S.autorange==="max reversed"?(c[0]=null,S._rangeInitial0=void 0,S._rangeInitial1=void 0):(S.autorange==="max"||S.autorange==="min reversed")&&(c[1]=null,S._rangeInitial0=void 0,S._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[S._name+".range"]=c}var L=Lr.syncOrAsync(y);return L&&L.then&&e._promises.push(L),L};function wX(e,r,t){var n=r._id+"divider",a=t.vals,o=t.layer.selectAll("path."+n).data(a,Wv);o.exit().remove(),o.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(Ff.stroke,r.dividercolor).style("stroke-width",pa.crispRound(e,r.dividerwidth,1)+"px"),o.attr("transform",t.transFn).attr("d",t.path)}lr.getPxPosition=function(e,r){var t=e._fullLayout._size,n=r._id.charAt(0),a=r.side,o;if(r.anchor!=="free"?o=r._anchorAxis:n==="x"?o={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:n==="y"&&(o={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),a==="top"||a==="left")return o._offset;if(a==="bottom"||a==="right")return o._offset+o._length};function mM(e){var r=e.title.font.size,t=(e.title.text.match(Bl.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(Hl+t*Nf):t?r*(t+1)*Nf:r}function MX(e,r){var t=e._fullLayout,n=r._id,a=n.charAt(0),o=r.title.font.size,i,l=(r.title.text.match(Bl.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?i=r._depth+r.title.standoff+o*Hl:(r.side==="top"||r.side==="left")&&(i=r._depth+r.title.standoff+o*(Df+l*Nf));else{var u=qf(r);if(r.type==="multicategory")i=r._depth;else{var s=1.5*o;u&&(s=.5*o,r.ticks==="outside"&&(s+=r.ticklen)),i=10+s+(r.linewidth?r.linewidth-1:0)}u||(a==="x"?i+=r.side==="top"?o*(r.showticklabels?1:0):o*(r.showticklabels?1.5:.5):i+=r.side==="right"?o*(r.showticklabels?1:.5):o*(r.showticklabels?.5:0))}var f=lr.getPxPosition(e,r),v,p,b;a==="x"?(p=r._offset+r._length/2,b=r.side==="top"?f-i:f+i):(b=r._offset+r._length/2,p=r.side==="right"?f+i:f-i,v={rotate:"-90",offset:0});var m;if(r.type!=="multicategory"){var w=r._selections[r._id+"tick"];if(m={selection:w,side:r.side},w&&w.node()&&w.node().parentNode){var M=pa.getTranslate(w.node().parentNode);m.offsetLeft=M.x,m.offsetTop=M.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=i,VW.draw(e,n+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[a],avoid:m,transform:v,attributes:{x:p,y:b,"text-anchor":"middle"}})}lr.shouldShowZeroLine=function(e,r,t){var n=Lr.simpleMap(r.range,r.r2l);return n[0]*n[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Gv)&&(kM(r,0)||!TX(e,r,t,n)||AX(e,r))};lr.clipEnds=function(e,r){return r.filter(function(t){return kM(e,t.x)})};function kM(e,r){var t=e.l2p(r);return t>1&&t1)for(a=1;a=a.min&&e=JW:/%L/.test(r)?e>=ZW:/%[SX]/.test(r)?e>=Uv:/%M/.test(r)?e>=If:/%[HI]/.test(r)?e>=Fi:/%p/.test(r)?e>=Ho:/%[Aadejuwx]/.test(r)?e>=On:/%[UVW]/.test(r)?e>=ga:/%[Bbm]/.test(r)?e>=Bv:/%[q]/.test(r)?e>=Ov:/%[Yy]/.test(r)?e>=qv:!0}});var RM=pe((Cce,LM)=>{"use strict";LM.exports=function(r,t,n){var a,o;if(n){var i=t==="reversed"||t==="min reversed"||t==="max reversed";a=n[i?1:0],o=n[i?0:1]}var l=r("autorangeoptions.minallowed",o===null?a:void 0),u=r("autorangeoptions.maxallowed",a===null?o:void 0);l===void 0&&r("autorangeoptions.clipmin"),u===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var v2=pe((Ece,DM)=>{"use strict";var RX=RM();DM.exports=function(r,t,n,a){var o=t._template||{},i=t.type||o.type||"-";n("minallowed"),n("maxallowed");var l=n("range");if(!l){var u;!a.noInsiderange&&i!=="log"&&(u=n("insiderange"),u&&(u[0]===null||u[1]===null)&&(t.insiderange=!1,u=void 0),u&&(l=n("range",u)))}var s=t.getAutorangeDflt(l,a),f=n("autorange",s),v;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,v=!0),v||(s=t.getAutorangeDflt(l,a),f=n("autorange",s)),f&&(RX(n,f,l),(i==="linear"||i==="-")&&n("rangemode")),t.cleanRange()}});var FM=pe((Lce,PM)=>{var DX={left:0,top:0};PM.exports=PX;function PX(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var n=e.clientX||0,a=e.clientY||0,o=FX(r);return t[0]=n-o.left,t[1]=a-o.top,t}function FX(e){return e===window||e===document||e===document.body?DX:e.getBoundingClientRect()}});var Zv=pe((Rce,IM)=>{"use strict";var IX=Vp();function NX(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}IM.exports=IX&&NX()});var zM=pe((Dce,NM)=>{"use strict";NM.exports=function(r,t,n,a,o){var i=(r-n)/(a-n),l=i+t/(a-n),u=(i+l)/2;return o==="left"||o==="bottom"?i:o==="center"||o==="middle"?u:o==="right"||o==="top"?l:i<2/3-u?i:l>4/3-u?l:u}});var BM=pe((Pce,OM)=>{"use strict";var qM=ir(),zX=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];OM.exports=function(r,t,n,a){return n==="left"?r=0:n==="center"?r=1:n==="right"?r=2:r=qM.constrain(Math.floor(r*3),0,2),a==="bottom"?t=0:a==="middle"?t=1:a==="top"?t=2:t=qM.constrain(Math.floor(t*3),0,2),zX[t][r]}});var HM=pe((Fce,UM)=>{"use strict";var qX=_f(),OX=Jc(),BX=vf().getGraphDiv,UX=sf(),h2=UM.exports={};h2.wrapped=function(e,r,t){e=BX(e),e._fullLayout&&OX.clear(e._fullLayout._uid+UX.HOVERID),h2.raw(e,r,t)};h2.raw=function(r,t){var n=r._fullLayout,a=r._hoverdata;t||(t={}),!(t.target&&!r._dragged&&qX.triggerHandler(r,"plotly_beforehover",t)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&a&&r.emit("plotly_unhover",{event:t,points:a}))}});var ti=pe((Ice,WM)=>{"use strict";var HX=FM(),d2=Yp(),VX=Zv(),GX=ir().removeElement,YX=wn(),Vl=WM.exports={};Vl.align=zM();Vl.getCursor=BM();var GM=HM();Vl.unhover=GM.wrapped;Vl.unhoverRaw=GM.raw;Vl.init=function(r){var t=r.gd,n=1,a=t._context.doubleClickDelay,o=r.element,i,l,u,s,f,v,p,b;t._mouseDownTime||(t._mouseDownTime=0),o.style.pointerEvents="all",o.onmousedown=M,VX?(o._ontouchstart&&o.removeEventListener("touchstart",o._ontouchstart),o._ontouchstart=M,o.addEventListener("touchstart",M,{passive:!1})):o.ontouchstart=M;function m(S,x,T){return Math.abs(S)a&&(n=Math.max(n-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;v.target===p?x=v:(x={target:p,srcElement:p,toElement:p},Object.keys(v).concat(Object.keys(v.__proto__)).forEach(T=>{var d=v[T];!x[T]&&typeof d!="function"&&(x[T]=d)})),r.clickFn&&r.clickFn(n,x),b||p.dispatchEvent(new MouseEvent("click",S))}t._dragging=!1,t._dragged=!1}};function YM(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}Vl.coverSlip=YM;function VM(e){return HX(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Vo=pe((Nce,XM)=>{"use strict";XM.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&r.classed(n,!1)}),t&&r.classed("cursor-"+t,!0)}});var KM=pe((zce,JM)=>{"use strict";var p2=Vo(),Of="data-savedcursor",ZM="!!";JM.exports=function(r,t){var n=r.attr(Of);if(t){if(!n){for(var a=(r.attr("class")||"").split(" "),o=0;o{"use strict";var g2=kn(),WX=Ti();QM.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:WX.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:g2({editType:"legend"}),grouptitlefont:g2({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:g2({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Kv=pe(Jv=>{"use strict";Jv.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Jv.isVertical=function(r){return r.orientation!=="h"};Jv.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1}});var b2=pe((Bce,$M)=>{"use strict";var m2=Er(),ya=ir(),XX=gt(),ZX=Sn(),JX=y2(),KX=Ds(),x2=Kv();function QX(e,r,t,n){var a=r[e]||{},o=XX.newContainer(t,e);function i(F,L){return ya.coerce(a,o,JX,F,L)}var l=ya.coerceFont(i,"font",t.font);i("bgcolor",t.paper_bgcolor),i("bordercolor");var u=i("visible");if(u){for(var s,f=function(F,L){var P=s._input,O=s;return ya.coerce(P,O,ZX,F,L)},v=t.font||{},p=ya.coerceFont(i,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),b=0,m=!1,w="normal",M=(t.shapes||[]).filter(function(F){return F.showlegend}),y=n.concat(M).filter(function(F){return e===(F.legend||"legend")}),k=0;k(e==="legend"?1:0));if(x===!1&&(t[e]=void 0),!(x===!1&&!a.uirevision)&&(i("uirevision",t.uirevision),x!==!1)){i("borderwidth");var T=i("orientation"),d=i("yref"),_=i("xref"),g=T==="h",c=d==="paper",A=_==="paper",h,R,E,D="left";g?(h=0,m2.getComponentMethod("rangeslider","isVisible")(r.xaxis)?c?(R=1.1,E="bottom"):(R=1,E="top"):c?(R=-.1,E="top"):(R=0,E="bottom")):(R=1,E="auto",A?h=1.02:(h=1,D="right")),ya.coerce(a,o,{x:{valType:"number",editType:"legend",min:A?-2:0,max:A?3:1,dflt:h}},"x"),ya.coerce(a,o,{y:{valType:"number",editType:"legend",min:c?-2:0,max:c?3:1,dflt:R}},"y"),i("traceorder",w),x2.isGrouped(t[e])&&i("tracegroupgap"),i("entrywidth"),i("entrywidthmode"),i("indentation"),i("itemsizing"),i("itemwidth"),i("itemclick"),i("itemdoubleclick"),i("groupclick"),i("xanchor",D),i("yanchor",E),i("maxheight",g?.5:1),i("valign"),ya.noneOrAll(a,o,["x","y"]);var N=i("title.text");if(N){i("title.side",g?"left":"top");var I=ya.extendFlat({},l,{size:ya.bigFont(l.size)});ya.coerceFont(i,"title.font",I)}}}}$M.exports=function(r,t,n){var a,o=n.slice(),i=t.shapes;if(i)for(a=0;a{"use strict";var tu=Er(),w2=ir(),$X=w2.pushUnique,_2=!0;jM.exports=function(r,t,n){var a=t._fullLayout;if(t._dragged||t._editing)return;var o=a.legend.itemclick,i=a.legend.itemdoubleclick,l=a.legend.groupclick;n===1&&o==="toggle"&&i==="toggleothers"&&_2&&t.data&&t._context.showTips&&w2.notifier(w2._(t,"Double-click on legend to isolate one trace"),"long"),_2=!1;var u;if(n===1?u=o:n===2&&(u=i),!u)return;var s=l==="togglegroup",f=a.hiddenlabels?a.hiddenlabels.slice():[],v=r.data()[0][0];if(v.groupTitle&&v.noClick)return;var p=t._fullData,b=(a.shapes||[]).filter(function(Te){return Te.showlegend}),m=p.concat(b),w=v.trace;w._isShape&&(w=w._fullInput);var M=w.legendgroup,y,k,S,x,T,d,_={},g=[],c=[],A=[];function h(Te,Ee){var Pe=g.indexOf(Te),Se=_.visible;return Se||(Se=_.visible=[]),g.indexOf(Te)===-1&&(g.push(Te),Pe=g.length-1),Se[Pe]=Ee,Pe}var R=(a.shapes||[]).map(function(Te){return Te._input}),E=!1;function D(Te,Ee){R[Te].visible=Ee,E=!0}function N(Te,Ee){if(!(v.groupTitle&&!s)){var Pe=Te._fullInput||Te,Se=Pe._isShape,Ne=Pe.index;Ne===void 0&&(Ne=Pe._index);var Be=Pe.visible===!1?!1:Ee;Se?D(Ne,Be):h(Ne,Be)}}var I=w.legend,F=w._fullInput,L=F&&F._isShape;if(!L&&tu.traceIs(w,"pie-like")){var P=v.label,O=f.indexOf(P);if(u==="toggle")O===-1?f.push(P):f.splice(O,1);else if(u==="toggleothers"){var U=O!==-1,X=[];for(y=0;y{"use strict";rT.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var aT=pe((Vce,nT)=>{"use strict";var tT=Er(),T2=Kv();nT.exports=function(r,t,n){var a=t._inHover,o=T2.isGrouped(t),i=T2.isReversed(t),l={},u=[],s=!1,f={},v=0,p=0,b,m;function w(F,L,P){if(t.visible!==!1&&!(n&&F!==t._id))if(L===""||!T2.isGrouped(t)){var O="~~i"+v;u.push(O),l[O]=[P],v++}else u.indexOf(L)===-1?(u.push(L),s=!0,l[L]=[P]):l[L].push(P)}for(b=0;bA&&(c=A)}_[b][0]._groupMinRank=c,_[b][0]._preGroupSort=b}var h=function(F,L){return F[0]._groupMinRank-L[0]._groupMinRank||F[0]._preGroupSort-L[0]._preGroupSort},R=function(F,L){return F.trace.legendrank-L.trace.legendrank||F._preSort-L._preSort};for(_.forEach(function(F,L){F[0]._preGroupSort=L}),_.sort(h),b=0;b<_.length;b++){_[b].forEach(function(F,L){F._preSort=L}),_[b].sort(R);var E=_[b][0].trace,D=null;for(m=0;m<_[b].length;m++){var N=_[b][m].trace.legendgrouptitle;if(N&&N.text){D=N,a&&(N.font=t._groupTitleFont);break}}if(i&&_[b].reverse(),D){var I=!1;for(m=0;m<_[b].length;m++)if(tT.traceIs(_[b][m].trace,"pie-like")){I=!0;break}_[b].unshift({i:-1,groupTitle:D,noClick:I,trace:{showlegend:E.showlegend,legendgroup:E.legendgroup,visible:t.groupclick==="toggleitem"?!0:E.visible}})}for(m=0;m<_[b].length;m++)_[b][m]=[_[b][m]]}return t._lgroupsLength=_.length,t._maxNameLength=p,_}});var A2=pe(Gl=>{"use strict";var Qv=ir();function iT(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Gl.formatPiePercent=function(r,t){var n=iT((r*100).toPrecision(3));return Qv.numSeparate(n,t)+"%"};Gl.formatPieValue=function(r,t){var n=iT(r.toPrecision(10));return Qv.numSeparate(n,t)};Gl.getFirstFilled=function(r,t){if(Qv.isArrayOrTypedArray(r))for(var n=0;n{"use strict";var jX=yt(),eZ=Zr();oT.exports=function(r,t,n,a){var o=n.marker.pattern;o&&o.shape?jX.pointStyle(r,n,a,t):eZ.fill(r,t.color)}});var cT=pe((Wce,fT)=>{"use strict";var sT=Zr(),uT=A2().castOption,rZ=lT();fT.exports=function(r,t,n,a){var o=n.marker.line,i=uT(o.color,t.pts)||sT.defaultLine,l=uT(o.width,t.pts)||0;r.call(rZ,t,n,a).style("stroke-width",l).call(sT.stroke,i)}});var E2=pe((Xce,yT)=>{"use strict";var Bn=ot(),k2=Er(),En=ir(),vT=En.strTranslate,ma=yt(),Pa=Zr(),S2=Si().extractOpts,$v=ia(),tZ=cT(),nZ=A2().castOption,aZ=M2(),hT=12,dT=5,Yl=2,iZ=10,nu=5;yT.exports=function(r,t,n){var a=t._fullLayout;n||(n=a.legend);var o=n.itemsizing==="constant",i=n.itemwidth,l=(i+aZ.itemGap*2)/2,u=vT(l,0),s=function(_,g,c,A){var h;if(_+1)h=_;else if(g&&g.width>0)h=g.width;else return 0;return o?A:Math.min(h,c)};r.each(function(_){var g=Bn.select(this),c=En.ensureSingle(g,"g","layers");c.style("opacity",_[0].trace.opacity);var A=n.indentation,h=n.valign,R=_[0].lineHeight,E=_[0].height;if(h==="middle"&&A===0||!R||!E)c.attr("transform",null);else{var D={top:1,bottom:-1}[h],N=D*(.5*(R-E+3))||0,I=n.indentation;c.attr("transform",vT(I,N))}var F=c.selectAll("g.legendfill").data([_]);F.enter().append("g").classed("legendfill",!0);var L=c.selectAll("g.legendlines").data([_]);L.enter().append("g").classed("legendlines",!0);var P=c.selectAll("g.legendsymbols").data([_]);P.enter().append("g").classed("legendsymbols",!0),P.selectAll("g.legendpoints").data([_]).enter().append("g").classed("legendpoints",!0)}).each(d).each(p).each(m).each(b).each(M).each(x).each(S).each(f).each(v).each(y).each(k);function f(_){var g=pT(_),c=g.showFill,A=g.showLine,h=g.showGradientLine,R=g.showGradientFill,E=g.anyFill,D=g.anyLine,N=_[0],I=N.trace,F,L,P=S2(I),O=P.colorscale,U=P.reversescale,X=function(K){if(K.size())if(c)ma.fillGroupStyle(K,t,!0);else{var ie="legendfill-"+I.uid;ma.gradient(K,t,ie,C2(U),O,"fill")}},$=function(K){if(K.size()){var ie="legendline-"+I.uid;ma.lineGroupStyle(K),ma.gradient(K,t,ie,C2(U),O,"stroke")}},j=$v.hasMarkers(I)||!E?"M5,0":D?"M5,-2":"M5,-3",Y=Bn.select(this),q=Y.select(".legendfill").selectAll("path").data(c||R?[_]:[]);if(q.enter().append("path").classed("js-fill",!0),q.exit().remove(),q.attr("d",j+"h"+i+"v6h-"+i+"z").call(X),A||h){var Q=s(void 0,I.line,iZ,dT);L=En.minExtend(I,{line:{width:Q}}),F=[En.minExtend(N,{trace:L})]}var ne=Y.select(".legendlines").selectAll("path").data(A||h?[F]:[]);ne.enter().append("path").classed("js-line",!0),ne.exit().remove(),ne.attr("d",j+(h?"l"+i+",0.0001":"h"+i)).call(A?ma.lineGroupStyle:$)}function v(_){var g=pT(_),c=g.anyFill,A=g.anyLine,h=g.showLine,R=g.showMarker,E=_[0],D=E.trace,N=!R&&!A&&!c&&$v.hasText(D),I,F;function L(q,Q,ne,K){var ie=En.nestedProperty(D,q).get(),ee=En.isArrayOrTypedArray(ie)&&Q?Q(ie):ie;if(o&&ee&&K!==void 0&&(ee=K),ne){if(eene[1])return ne[1]}return ee}function P(q){return E._distinct&&E.index&&q[E.index]?q[E.index]:q[0]}if(R||N||h){var O={},U={};if(R){O.mc=L("marker.color",P),O.mx=L("marker.symbol",P),O.mo=L("marker.opacity",En.mean,[.2,1]),O.mlc=L("marker.line.color",P),O.mlw=L("marker.line.width",En.mean,[0,5],Yl),U.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var X=L("marker.size",En.mean,[2,16],hT);O.ms=X,U.marker.size=X}h&&(U.line={width:L("line.width",P,[0,10],dT)}),N&&(O.tx="Aa",O.tp=L("textposition",P),O.ts=10,O.tc=L("textfont.color",P),O.tf=L("textfont.family",P),O.tw=L("textfont.weight",P),O.ty=L("textfont.style",P),O.tv=L("textfont.variant",P),O.tC=L("textfont.textcase",P),O.tE=L("textfont.lineposition",P),O.tS=L("textfont.shadow",P)),I=[En.minExtend(E,O)],F=En.minExtend(D,U),F.selectedpoints=null,F.texttemplate=null}var $=Bn.select(this).select("g.legendpoints"),j=$.selectAll("path.scatterpts").data(R?I:[]);j.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),j.exit().remove(),j.call(ma.pointStyle,F,t),R&&(I[0].mrc=3);var Y=$.selectAll("g.pointtext").data(N?I:[]);Y.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),Y.exit().remove(),Y.selectAll("text").call(ma.textPointStyle,F,t)}function p(_){var g=_[0].trace,c=g.type==="waterfall";if(_[0]._distinct&&c){var A=_[0].trace[_[0].dir].marker;return _[0].mc=A.color,_[0].mlw=A.line.width,_[0].mlc=A.line.color,w(_,this,"waterfall")}var h=[];g.visible&&c&&(h=_[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var R=Bn.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(h);R.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(E){var D=Bn.select(this),N=g[E[0]].marker,I=s(void 0,N.line,nu,Yl);D.attr("d",E[1]).style("stroke-width",I+"px").call(Pa.fill,N.color),I&&D.call(Pa.stroke,N.line.color)})}function b(_){w(_,this)}function m(_){w(_,this,"funnel")}function w(_,g,c){var A=_[0].trace,h=A.marker||{},R=h.line||{},E=h.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",D=c?A.visible&&A.type===c:k2.traceIs(A,"bar"),N=Bn.select(g).select("g.legendpoints").selectAll("path.legend"+c).data(D?[_]:[]);N.enter().append("path").classed("legend"+c,!0).attr("d",E).attr("transform",u),N.exit().remove(),N.each(function(I){var F=Bn.select(this),L=I[0],P=s(L.mlw,h.line,nu,Yl);F.style("stroke-width",P+"px");var O=L.mcc;if(!n._inHover&&"mc"in L){var U=S2(h),X=U.mid;X===void 0&&(X=(U.max+U.min)/2),O=ma.tryColorscale(h,"")(X)}var $=O||L.mc||h.color,j=h.pattern,Y=ma.getPatternAttr,q=j&&(Y(j.shape,0,"")||Y(j.path,0,""));if(q){var Q=Y(j.bgcolor,0,null),ne=Y(j.fgcolor,0,null),K=j.fgopacity,ie=gT(j.size,8,10),ee=gT(j.solidity,.5,1),V="legend-"+A.uid;F.call(ma.pattern,"legend",t,V,q,ie,ee,O,j.fillmode,Q,ne,K)}else F.call(Pa.fill,$);P&&Pa.stroke(F,L.mlc||R.color)})}function M(_){var g=_[0].trace,c=Bn.select(this).select("g.legendpoints").selectAll("path.legendbox").data(g.visible&&k2.traceIs(g,"box-violin")?[_]:[]);c.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),c.exit().remove(),c.each(function(){var A=Bn.select(this);if((g.boxpoints==="all"||g.points==="all")&&Pa.opacity(g.fillcolor)===0&&Pa.opacity((g.line||{}).color)===0){var h=En.minExtend(g,{marker:{size:o?hT:En.constrain(g.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});c.call(ma.pointStyle,h,t)}else{var R=s(void 0,g.line,nu,Yl);A.style("stroke-width",R+"px").call(Pa.fill,g.fillcolor),R&&Pa.stroke(A,g.line.color)}})}function y(_){var g=_[0].trace,c=Bn.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(g.visible&&g.type==="candlestick"?[_,_]:[]);c.enter().append("path").classed("legendcandle",!0).attr("d",function(A,h){return h?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),c.exit().remove(),c.each(function(A,h){var R=Bn.select(this),E=g[h?"increasing":"decreasing"],D=s(void 0,E.line,nu,Yl);R.style("stroke-width",D+"px").call(Pa.fill,E.fillcolor),D&&Pa.stroke(R,E.line.color)})}function k(_){var g=_[0].trace,c=Bn.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(g.visible&&g.type==="ohlc"?[_,_]:[]);c.enter().append("path").classed("legendohlc",!0).attr("d",function(A,h){return h?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),c.exit().remove(),c.each(function(A,h){var R=Bn.select(this),E=g[h?"increasing":"decreasing"],D=s(void 0,E.line,nu,Yl);R.style("fill","none").call(ma.dashLine,E.line.dash,D),D&&Pa.stroke(R,E.line.color)})}function S(_){T(_,this,"pie")}function x(_){T(_,this,"funnelarea")}function T(_,g,c){var A=_[0],h=A.trace,R=c?h.visible&&h.type===c:k2.traceIs(h,c),E=Bn.select(g).select("g.legendpoints").selectAll("path.legend"+c).data(R?[_]:[]);if(E.enter().append("path").classed("legend"+c,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),E.exit().remove(),E.size()){var D=h.marker||{},N=s(nZ(D.line.width,A.pts),D.line,nu,Yl),I="pieLike",F=En.minExtend(h,{marker:{line:{width:N}}},I),L=En.minExtend(A,{trace:F},I);tZ(E,L,F,t)}}function d(_){var g=_[0].trace,c,A=[];if(g.visible)switch(g.type){case"histogram2d":case"heatmap":A=[["M-15,-2V4H15V-2Z"]],c=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":A=[["M-6,-6V6H6V-6Z"]],c=!0;break;case"densitymapbox":case"densitymap":A=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],c="radial";break;case"cone":A=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],c=!1;break;case"streamtube":A=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],c=!1;break;case"surface":A=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],c=!0;break;case"mesh3d":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],c=!1;break;case"volume":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],c=!0;break;case"isosurface":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],c=!1;break}var h=Bn.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(A);h.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),h.exit().remove(),h.each(function(R,E){var D=Bn.select(this),N=S2(g),I=N.colorscale,F=N.reversescale,L=function(X){if(X.size()){var $="legendfill-"+g.uid;ma.gradient(X,t,$,C2(F,c==="radial"),I,"fill")}},P;if(I){if(!c){var U=I.length;P=E===0?I[F?U-1:0][1]:E===1?I[F?0:U-1][1]:I[Math.floor((U-1)/2)][1]}}else{var O=g.vertexcolor||g.facecolor||g.color;P=En.isArrayOrTypedArray(O)?O[E]||O[0]:O}D.attr("d",R[0]),P?D.call(Pa.fill,P):D.call(L)})}};function C2(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function pT(e){var r=e[0].trace,t=r.contours,n=$v.hasLines(r),a=$v.hasMarkers(r),o=r.visible&&r.fill&&r.fill!=="none",i=!1,l=!1;if(t){var u=t.coloring;u==="lines"?i=!0:n=u==="none"||u==="heatmap"||t.showlines,t.type==="constraint"?o=t._operation!=="=":(u==="fill"||u==="heatmap")&&(l=!0)}return{showMarker:a,showLine:n,showFill:o,showGradientLine:i,showGradientFill:l,anyLine:n||i,anyFill:o||l}}function gT(e,r,t){return e&&En.isArrayOrTypedArray(e)?r:e>t?t:e}});var P2=pe((Zce,ST)=>{"use strict";var oa=ot(),Xt=ir(),R2=ln(),ou=Er(),mT=_f(),L2=ti(),Zt=yt(),eh=Zr(),Wl=Yn(),xT=eT(),rn=M2(),D2=qn(),AT=D2.LINE_SPACING,iu=D2.FROM_TL,bT=D2.FROM_BR,_T=aT(),oZ=E2(),wT=Kv(),au=1,lZ=/^legend[0-9]*$/;ST.exports=function(r,t){if(t)MT(r,t);else{var n=r._fullLayout,a=n._legends,o=n._infolayer.selectAll('[class^="legend"]');o.each(function(){var s=oa.select(this),f=s.attr("class"),v=f.split(" ")[0];v.match(lZ)&&a.indexOf(v)===-1&&s.remove()});for(var i=0;i1)}var m=n.hiddenlabels||[];if(!l&&(!n.showlegend||!u.length))return i.selectAll("."+a).remove(),n._topdefs.select("#"+o).remove(),R2.autoMargin(e,a);var w=Xt.ensureSingle(i,"g",a,function(g){l||g.attr("pointer-events","all")}),M=Xt.ensureSingleById(n._topdefs,"clipPath",o,function(g){g.append("rect")}),y=Xt.ensureSingle(w,"rect","bg",function(g){g.attr("shape-rendering","crispEdges")});y.call(eh.stroke,t.bordercolor).call(eh.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var k=Xt.ensureSingle(w,"g","scrollbox"),S=t.title;t._titleWidth=0,t._titleHeight=0;var x;S.text?(x=Xt.ensureSingle(k,"text",a+"titletext"),x.attr("text-anchor","start").call(Zt.font,S.font).text(S.text),rh(x,k,e,t,au)):k.selectAll("."+a+"titletext").remove();var T=Xt.ensureSingle(w,"rect","scrollbar",function(g){g.attr(rn.scrollBarEnterAttrs).call(eh.fill,rn.scrollBarColor)}),d=k.selectAll("g.groups").data(u);d.enter().append("g").attr("class","groups"),d.exit().remove();var _=d.selectAll("g.traces").data(Xt.identity);_.enter().append("g").attr("class","traces"),_.exit().remove(),_.style("opacity",function(g){var c=g[0].trace;return ou.traceIs(c,"pie-like")?m.indexOf(g[0].label)!==-1?.5:1:c.visible==="legendonly"?.5:1}).each(function(){oa.select(this).call(uZ,e,t)}).call(oZ,e,t).each(function(){l||oa.select(this).call(fZ,e,a)}),Xt.syncOrAsync([R2.previousPromises,function(){return hZ(e,d,_,t)},function(){var g=n._size,c=t.borderwidth,A=t.xref==="paper",h=t.yref==="paper";if(S.text&&sZ(x,t,c),!l){var R,E;A?R=g.l+g.w*t.x-iu[th(t)]*t._width:R=n.width*t.x-iu[th(t)]*t._width,h?E=g.t+g.h*(1-t.y)-iu[nh(t)]*t._effHeight:E=n.height*(1-t.y)-iu[nh(t)]*t._effHeight;var D=dZ(e,a,R,E);if(D)return;if(n.margin.autoexpand){var N=R,I=E;R=A?Xt.constrain(R,0,n.width-t._width):N,E=h?Xt.constrain(E,0,n.height-t._effHeight):I,R!==N&&Xt.log("Constrain "+a+".x to make legend fit inside graph"),E!==I&&Xt.log("Constrain "+a+".y to make legend fit inside graph")}Zt.setTranslate(w,R,E)}if(T.on(".drag",null),w.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var F=t._effHeight;l&&(F=t._height),y.attr({width:t._width-c,height:F-c,x:c/2,y:c/2}),Zt.setTranslate(k,0,0),M.select("rect").attr({width:t._width-2*c,height:F-2*c,x:c,y:c}),Zt.setClipUrl(k,o,e),Zt.setRect(T,0,0,0,0),delete t._scrollY}else{var L=Math.max(rn.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),P=t._effHeight-L-2*rn.scrollBarMargin,O=t._height-t._effHeight,U=P/O,X=Math.min(t._scrollY||0,O);y.attr({width:t._width-2*c+rn.scrollBarWidth+rn.scrollBarMargin,height:t._effHeight-c,x:c/2,y:c/2}),M.select("rect").attr({width:t._width-2*c+rn.scrollBarWidth+rn.scrollBarMargin,height:t._effHeight-2*c,x:c,y:c+X}),Zt.setClipUrl(k,o,e),ie(X,L,U),w.on("wheel",function(){X=Xt.constrain(t._scrollY+oa.event.deltaY/P*O,0,O),ie(X,L,U),X!==0&&X!==O&&oa.event.preventDefault()});var $,j,Y,q=function(te,ue,de){var ke=(de-ue)/U+te;return Xt.constrain(ke,0,O)},Q=function(te,ue,de){var ke=(ue-de)/U+te;return Xt.constrain(ke,0,O)},ne=oa.behavior.drag().on("dragstart",function(){var te=oa.event.sourceEvent;te.type==="touchstart"?$=te.changedTouches[0].clientY:$=te.clientY,Y=X}).on("drag",function(){var te=oa.event.sourceEvent;te.buttons===2||te.ctrlKey||(te.type==="touchmove"?j=te.changedTouches[0].clientY:j=te.clientY,X=q(Y,$,j),ie(X,L,U))});T.call(ne);var K=oa.behavior.drag().on("dragstart",function(){var te=oa.event.sourceEvent;te.type==="touchstart"&&($=te.changedTouches[0].clientY,Y=X)}).on("drag",function(){var te=oa.event.sourceEvent;te.type==="touchmove"&&(j=te.changedTouches[0].clientY,X=Q(Y,$,j),ie(X,L,U))});k.call(K)}function ie(te,ue,de){t._scrollY=e._fullLayout[a]._scrollY=te,Zt.setTranslate(k,0,-te),Zt.setRect(T,t._width,rn.scrollBarMargin+te*de,rn.scrollBarWidth,ue),M.select("rect").attr("y",c+te)}if(e._context.edits.legendPosition){var ee,V,re,H;w.classed("cursor-move",!0),L2.init({element:w.node(),gd:e,prepFn:function(te){if(te.target!==T.node()){var ue=Zt.getTranslate(w);re=ue.x,H=ue.y}},moveFn:function(te,ue){if(re!==void 0&&H!==void 0){var de=re+te,ke=H+ue;Zt.setTranslate(w,de,ke),ee=L2.align(de,t._width,g.l,g.l+g.w,t.xanchor),V=L2.align(ke+t._height,-t._height,g.t+g.h,g.t,t.yanchor)}},doneFn:function(){if(ee!==void 0&&V!==void 0){var te={};te[a+".x"]=ee,te[a+".y"]=V,ou.call("_guiRelayout",e,te)}},clickFn:function(te,ue){var de=i.selectAll("g.traces").filter(function(){var ke=this.getBoundingClientRect();return ue.clientX>=ke.left&&ue.clientX<=ke.right&&ue.clientY>=ke.top&&ue.clientY<=ke.bottom});de.size()>0&&kT(e,w,de,te,ue)}})}}],e)}}function jv(e,r,t){var n=e[0],a=n.width,o=r.entrywidthmode,i=n.trace.legendwidth||r.entrywidth;return o==="fraction"?r._maxWidth*i:t+(i||a)}function kT(e,r,t,n,a){var o=t.data()[0][0].trace,i={event:a,node:t.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};o._group&&(i.group=o._group),ou.traceIs(o,"pie-like")&&(i.label=t.datum()[0].label);var l=mT.triggerHandler(e,"plotly_legendclick",i);if(n===1){if(l===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&xT(t,e,n)},e._context.doubleClickDelay)}else if(n===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var u=mT.triggerHandler(e,"plotly_legenddoubleclick",i);u!==!1&&l!==!1&&xT(t,e,n)}}function uZ(e,r,t){var n=ah(t),a=e.data()[0][0],o=a.trace,i=ou.traceIs(o,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!i,u=t._maxNameLength,s,f;a.groupTitle?(s=a.groupTitle.text,f=a.groupTitle.font):(f=t.font,t.entries?s=a.text:(s=i?a.label:o.name,o._meta&&(s=Xt.templateString(s,o._meta))));var v=Xt.ensureSingle(e,"text",n+"text");v.attr("text-anchor","start").call(Zt.font,f).text(l?TT(s,u):s);var p=t.indentation+t.itemwidth+rn.itemGap*2;Wl.positionText(v,p,0),l?v.call(Wl.makeEditable,{gd:r,text:s}).call(rh,e,r,t).on("edit",function(b){this.text(TT(b,u)).call(rh,e,r,t);var m=a.trace._fullInput||{},w={};return w.name=b,m._isShape?ou.call("_guiRelayout",r,"shapes["+o.index+"].name",w.name):ou.call("_guiRestyle",r,w,o.index)}):rh(v,e,r,t)}function TT(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var n=t-e.length;n>0;n--)e+=" ";return e}function fZ(e,r,t){var n=r._context.doubleClickDelay,a,o=1,i=Xt.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(eh.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(i.on("mousedown",function(){a=new Date().getTime(),a-r._legendMouseDownTimen&&(o=Math.max(o-1,1)),kT(r,l,e,o,oa.event)}}))}function rh(e,r,t,n,a){n._inHover&&e.attr("data-notex",!0),Wl.convertToTspans(e,t,function(){cZ(r,t,n,a)})}function cZ(e,r,t,n){var a=e.data()[0][0];if(!t._inHover&&a&&!a.trace.showlegend){e.remove();return}var o=e.select("g[class*=math-group]"),i=o.node(),l=ah(t);t||(t=r._fullLayout[l]);var u=t.borderwidth,s;n===au?s=t.title.font:a.groupTitle?s=a.groupTitle.font:s=t.font;var f=s.size*AT,v,p;if(i){var b=Zt.bBox(i);v=b.height,p=b.width,n===au?Zt.setTranslate(o,u,u+v*.75):Zt.setTranslate(o,0,v*.25)}else{var m="."+l+(n===au?"title":"")+"text",w=e.select(m),M=Wl.lineCount(w),y=w.node();if(v=f*M,p=y?Zt.bBox(y).width:0,n===au)t.title.side==="left"&&(p+=rn.itemGap*2),Wl.positionText(w,u+rn.titlePad,u+f);else{var k=rn.itemGap*2+t.indentation+t.itemwidth;a.groupTitle&&(k=rn.itemGap,p-=t.indentation+t.itemwidth),Wl.positionText(w,k,-f*((M-1)/2-.3))}}n===au?(t._titleWidth=p,t._titleHeight=v):(a.lineHeight=f,a.height=Math.max(v,16)+3,a.width=p)}function vZ(e){var r=0,t=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(r=e._titleWidth),n.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function hZ(e,r,t,n){var a=e._fullLayout,o=ah(n);n||(n=a[o]);var i=a._size,l=wT.isVertical(n),u=wT.isGrouped(n),s=n.entrywidthmode==="fraction",f=n.borderwidth,v=2*f,p=rn.itemGap,b=n.indentation+n.itemwidth+p*2,m=2*(f+p),w=nh(n),M=n.y<0||n.y===0&&w==="top",y=n.y>1||n.y===1&&w==="bottom",k=n.tracegroupgap,S={},{maxheight:x,orientation:T,yref:d}=n,_=T==="v"&&d==="paper"?i.h:a.height;n._maxHeight=Math.max(x>1?x:x*_,30);var g=0;n._width=0,n._height=0;var c=vZ(n);if(l)t.each(function(K){var ie=K[0].height;Zt.setTranslate(this,f+c[0],f+c[1]+n._height+ie/2+p),n._height+=ie,n._width=Math.max(n._width,K[0].width)}),g=b+n._width,n._width+=p+b+v,n._height+=m,u&&(r.each(function(K,ie){Zt.setTranslate(this,0,ie*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var A=th(n),h=n.x<0||n.x===0&&A==="right",R=n.x>1||n.x===1&&A==="left",E=y||M,D=a.width/2;n._maxWidth=Math.max(h?E&&A==="left"?i.l+i.w:D:R?E&&A==="right"?i.r+i.w:D:i.w,2*b);var N=0,I=0;t.each(function(K){var ie=jv(K,n,b);N=Math.max(N,ie),I+=ie}),g=null;var F=0;if(u){var L=0,P=0,O=0;r.each(function(){var K=0,ie=0;oa.select(this).selectAll("g.traces").each(function(V){var re=jv(V,n,b),H=V[0].height;Zt.setTranslate(this,c[0],c[1]+f+p+H/2+ie),ie+=H,K=Math.max(K,re),S[V[0].trace.legendgroup]=K});var ee=K+p;P>0&&ee+f+P>n._maxWidth?(F=Math.max(F,P),P=0,O+=L+k,L=ie):L=Math.max(L,ie),Zt.setTranslate(this,P,O),P+=ee}),n._width=Math.max(F,P)+f,n._height=O+L+m}else{var U=t.size(),X=I+v+(U-1)*p=n._maxWidth&&(F=Math.max(F,q),j=0,Y+=$,n._height+=$,$=0),Zt.setTranslate(this,c[0]+f+j,c[1]+f+Y+ie/2+p),q=j+ee+p,j+=V,$=Math.max($,ie)}),X?(n._width=j+v,n._height=$+m):(n._width=Math.max(F,q)+v,n._height+=$+m)}}n._width=Math.ceil(Math.max(n._width+c[0],n._titleWidth+2*(f+rn.titlePad))),n._height=Math.ceil(Math.max(n._height+c[1],n._titleHeight+2*(f+rn.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var Q=e._context.edits,ne=Q.legendText||Q.legendPosition;t.each(function(K){var ie=oa.select(this).select("."+o+"toggle"),ee=K[0].height,V=K[0].trace.legendgroup,re=jv(K,n,b);u&&V!==""&&(re=S[V]);var H=ne?b:g||re;!l&&!s&&(H+=p/2),Zt.setRect(ie,0,-ee/2,H,ee)})}function dZ(e,r,t,n){var a=e._fullLayout,o=a[r],i=th(o),l=nh(o),u=o.xref==="paper",s=o.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=o.y<.5?"b":"t",v=o.x<.5?"l":"r",p={r:a.width-t,l:t+o._width,b:a.height-n,t:n+o._effHeight};if(u&&s)return R2.autoMargin(e,r,{x:o.x,y:o.y,l:o._width*iu[i],r:o._width*bT[i],b:o._effHeight*bT[l],t:o._effHeight*iu[l]});u?e._fullLayout._reservedMargin[r][f]=p[f]:s||o.orientation==="v"?e._fullLayout._reservedMargin[r][v]=p[v]:e._fullLayout._reservedMargin[r][f]=p[f]}function th(e){return Xt.isRightAnchor(e)?"right":Xt.isCenterAnchor(e)?"center":"left"}function nh(e){return Xt.isBottomAnchor(e)?"bottom":Xt.isMiddleAnchor(e)?"middle":"top"}function ah(e){return e._id||"legend"}});var z2=pe(N2=>{"use strict";var Xl=ot(),ao=rt(),CT=Sa(),Ft=ir(),pZ=Ft.pushUnique,F2=Ft.strTranslate,gZ=Ft.strRotate,yZ=_f(),Fa=Yn(),mZ=KM(),Ii=yt(),un=Zr(),ih=ti(),Ni=Ct(),xZ=wn().zindexSeparator,su=Er(),ni=to(),Zl=sf(),bZ=b2(),_Z=P2(),NT=Zl.YANGLE,I2=Math.PI*NT/180,wZ=1/Math.sin(I2),MZ=Math.cos(I2),TZ=Math.sin(I2),kt=Zl.HOVERARROWSIZE,$r=Zl.HOVERTEXTPAD,ET={box:!0,ohlc:!0,violin:!0,candlestick:!0},AZ={scatter:!0,scattergl:!0,splom:!0};function LT(e,r){return e.distance-r.distance}N2.hover=function(r,t,n,a){r=Ft.getGraphDiv(r);var o=t.target;Ft.throttle(r._fullLayout._uid+Zl.HOVERID,Zl.HOVERMINTIME,function(){kZ(r,t,n,a,o)})};N2.loneHover=function(r,t){var n=!0;Array.isArray(r)||(n=!1,r=[r]);var a=t.gd,o=UT(a),i=HT(a),l=r.map(function(M){var y=M._x0||M.x0||M.x||0,k=M._x1||M.x1||M.x||0,S=M._y0||M.y0||M.y||0,x=M._y1||M.y1||M.y||0,T=M.eventData;if(T){var d=Math.min(y,k),_=Math.max(y,k),g=Math.min(S,x),c=Math.max(S,x),A=M.trace;if(su.traceIs(A,"gl3d")){var h=a._fullLayout[A.scene]._scene.container,R=h.offsetLeft,E=h.offsetTop;d+=R,_+=R,g+=E,c+=E}T.bbox={x0:d+i,x1:_+i,y0:g+o,y1:c+o},t.inOut_bbox&&t.inOut_bbox.push(T.bbox)}else T=!1;return{color:M.color||un.defaultLine,x0:M.x0||M.x||0,x1:M.x1||M.x||0,y0:M.y0||M.y||0,y1:M.y1||M.y||0,xLabel:M.xLabel,yLabel:M.yLabel,zLabel:M.zLabel,text:M.text,name:M.name,idealAlign:M.idealAlign,borderColor:M.borderColor,fontFamily:M.fontFamily,fontSize:M.fontSize,fontColor:M.fontColor,fontWeight:M.fontWeight,fontStyle:M.fontStyle,fontVariant:M.fontVariant,nameLength:M.nameLength,textAlign:M.textAlign,trace:M.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:M.hovertemplate||!1,hovertemplateLabels:M.hovertemplateLabels||!1,eventData:T}}),u=!1,s=qT(l,{gd:a,hovermode:"closest",rotateLabels:u,bgColor:t.bgColor||un.background,container:Xl.select(t.container),outerContainer:t.outerContainer||t.container}),f=s.hoverLabels,v=5,p=0,b=0;f.sort(function(M,y){return M.y0-y.y0}).each(function(M,y){var k=M.y0-M.by/2;k-v_[0]._length||H<0||H>g[0]._length)return ih.unhoverRaw(e,r)}if(r.pointerX=re+_[0]._offset,r.pointerY=H+g[0]._offset,"xval"in r?I=ni.flat(o,r.xval):I=ni.p2c(_,re),"yval"in r?F=ni.flat(o,r.yval):F=ni.p2c(g,H),!ao(I[0])||!ao(F[0]))return Ft.warn("Fx.hover failed",r,e),ih.unhoverRaw(e,r)}var de=1/0;function ke(mr,ct){for(P=0;Pne&&(D.splice(0,ne),de=D[0].distance),v&&E!==0&&D.length===0){Q.distance=E,Q.index=!1;var Hr=U._module.hoverPoints(Q,Y,q,"closest",{hoverLayer:l._hoverlayer});if(Hr&&(Hr=Hr.filter(function(at){return at.spikeDistance<=E})),Hr&&Hr.length){var Ot,Lt=Hr.filter(function(at){return at.xa.showspikes&&at.xa.spikesnap!=="hovered data"});if(Lt.length){var yn=Lt[0];ao(yn.x0)&&ao(yn.y0)&&(Ot=ve(yn),(!K.vLinePoint||K.vLinePoint.spikeDistance>Ot.spikeDistance)&&(K.vLinePoint=Ot))}var Gt=Hr.filter(function(at){return at.ya.showspikes&&at.ya.spikesnap!=="hovered data"});if(Gt.length){var Rt=Gt[0];ao(Rt.x0)&&ao(Rt.y0)&&(Ot=ve(Rt),(!K.hLinePoint||K.hLinePoint.spikeDistance>Ot.spikeDistance)&&(K.hLinePoint=Ot))}}}}}ke();function Ae(mr,ct,Cr){for(var Ur=null,xt=1/0,zr,Hr=0;Hr0&&Math.abs(mr.distance)he-1;Ue--)We(D[Ue]);D=ze,Se()}var Ge=e._hoverdata,_e=[],De=UT(e),Ke=HT(e);for(L=0;L1||D.length>1)||p==="closest"&&ie&&D.length>1,Mr=un.combine(l.plot_bgcolor||un.background,l.paper_bgcolor),Ar=qT(D,{gd:e,hovermode:p,rotateLabels:Sr,bgColor:Mr,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),nt=Ar.hoverLabels;if(ni.isUnifiedHover(p)||(CZ(nt,Sr,l,Ar.commonLabelBoundingBox),BT(nt,Sr,l._invScaleX,l._invScaleY)),a&&a.tagName){var Yr=su.getComponentMethod("annotations","hasClickToShow")(e,_e);mZ(Xl.select(a),Yr?"pointer":"")}!a||n||!RZ(e,r,Ge)||(Ge&&e.emit("plotly_unhover",{event:r,points:Ge}),e.emit("plotly_hover",{event:r,points:e._hoverdata,xaxes:_,yaxes:g,xvals:I,yvals:F}))}function zT(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var SZ=/([\s\S]*)<\/extra>/;function qT(e,r){var t=r.gd,n=t._fullLayout,a=r.hovermode,o=r.rotateLabels,i=r.bgColor,l=r.container,u=r.outerContainer,s=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||Zl.HOVERFONT,v=r.fontSize||Zl.HOVERFONTSIZE,p=r.fontWeight||n.font.weight,b=r.fontStyle||n.font.style,m=r.fontVariant||n.font.variant,w=r.fontTextcase||n.font.textcase,M=r.fontLineposition||n.font.lineposition,y=r.fontShadow||n.font.shadow,k=e[0],S=k.xa,x=k.ya,T=a.charAt(0),d=T+"Label",_=k[d];if(_===void 0&&S.type==="multicategory")for(var g=0;gn.width-Ke&&(Ye=n.width-Ke),he.attr("d","M"+(Ge-Ye)+",0L"+(Ge-Ye+kt)+","+De+kt+"H"+Ke+"v"+De+($r*2+Ue.height)+"H"+-Ke+"V"+De+kt+"H"+(Ge-Ye-kt)+"Z"),Ge=Ye,P.minX=Ge-Ke,P.maxX=Ge+Ke,S.side==="top"?(P.minY=_e-($r*2+Ue.height),P.maxY=_e-$r):(P.minY=_e+$r,P.maxY=_e+($r*2+Ue.height))}else{var ar,se,J;x.side==="right"?(ar="start",se=1,J="",Ge=S._offset+S._length):(ar="end",se=-1,J="-",Ge=S._offset),_e=x._offset+(k.y0+k.y1)/2,ye.attr("text-anchor",ar),he.attr("d","M0,0L"+J+kt+","+kt+"V"+($r+Ue.height/2)+"h"+J+($r*2+Ue.width)+"V-"+($r+Ue.height/2)+"H"+J+kt+"V-"+kt+"Z"),P.minY=_e-($r+Ue.height/2),P.maxY=_e+($r+Ue.height/2),x.side==="right"?(P.minX=Ge+kt,P.maxX=Ge+kt+($r*2+Ue.width)):(P.minX=Ge-kt-($r*2+Ue.width),P.maxX=Ge-kt);var ae=Ue.height/2,Le=A-Ue.top-ae,He="clip"+n._uid+"commonlabel"+x._id,je;if(Ge=0?Me=Ne:Be+de=0?Me=Be:ge+de=0?me=Pe:Se+ke=0?me=Se:we+ke=0,(ce.idealAlign==="top"||!br)&&Sr?(J-=Le/2,ce.anchor="end"):br?(J+=Le/2,ce.anchor="start"):ce.anchor="middle",ce.crossPos=J;else{if(ce.pos=J,br=se+ae/2+fr<=h,Sr=se-ae/2-fr>=0,(ce.idealAlign==="left"||!br)&&Sr)se-=ae/2,ce.anchor="end";else if(br)se+=ae/2,ce.anchor="start";else{ce.anchor="middle";var Mr=fr/2,Ar=se+Mr-h,nt=se-Mr;Ar>0&&(se-=Ar),nt<0&&(se+=-nt)}ce.crossPos=se}_e.attr("text-anchor",ce.anchor),Ke&&De.attr("text-anchor",ce.anchor),he.attr("transform",F2(se,J)+(o?gZ(NT):""))}),{hoverLabels:Re,commonLabelBoundingBox:P}}function RT(e,r,t,n,a,o){var i="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Ft.templateString(e.name,e.trace._meta)),i=FT(e.name,e.nameLength));var u=t.charAt(0),s=u==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[u+"Label"]===a?l=e[s+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),o&&l===""&&!e.hovertemplate&&(i===""&&o.remove(),l=i);var f=e.hovertemplate||!1;if(f){var v=e.hovertemplateLabels||e;e[u+"Label"]!==a&&(v[u+"other"]=v[u+"Val"],v[u+"otherLabel"]=v[u+"Label"]),l=Ft.hovertemplateString(f,v,n._d3locale,e.eventData[0]||{},e.trace._meta),l=l.replace(SZ,function(p,b){return i=FT(b,e.nameLength),""})}return[l,i]}function CZ(e,r,t,n){var a=r?"xa":"ya",o=r?"ya":"xa",i=0,l=1,u=e.size(),s=new Array(u),f=0,v=n.minX,p=n.maxX,b=n.minY,m=n.maxY,w=function(I){return I*t._invScaleX},M=function(I){return I*t._invScaleY};e.each(function(I){var F=I[a],L=I[o],P=F._id.charAt(0)==="x",O=F.range;f===0&&O&&O[0]>O[1]!==P&&(l=-1);var U=0,X=P?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var $=OT(I,r),j=I.anchor,Y=j==="end"?-1:1,q,Q;if(j==="middle")q=I.crossPos+(P?M($.y-I.by/2):w(I.bx/2+I.tx2width/2)),Q=q+(P?M(I.by):w(I.bx));else if(P)q=I.crossPos+M(kt+$.y)-M(I.by/2-kt),Q=q+M(I.by);else{var ne=w(Y*kt+$.x),K=ne+w(Y*I.bx);q=I.crossPos+Math.min(ne,K),Q=I.crossPos+Math.max(ne,K)}P?b!==void 0&&m!==void 0&&Math.min(Q,m)-Math.max(q,b)>1&&(L.side==="left"?(U=L._mainLinePosition,X=t.width):X=L._mainLinePosition):v!==void 0&&p!==void 0&&Math.min(Q,p)-Math.max(q,v)>1&&(L.side==="top"?(U=L._mainLinePosition,X=t.height):X=L._mainLinePosition)}s[f++]=[{datum:I,traceIndex:I.trace.index,dp:0,pos:I.pos,posref:I.posref,size:I.by*(P?wZ:1)/2,pmin:U,pmax:X}]}),s.sort(function(I,F){return I[0].posref-F[0].posref||l*(F[0].traceIndex-I[0].traceIndex)});var y,k,S,x,T,d,_;function g(I){var F=I[0],L=I[I.length-1];if(k=F.pmin-F.pos-F.dp+F.size,S=L.pos+L.dp+L.size-F.pmax,k>.01){for(T=I.length-1;T>=0;T--)I[T].dp+=k;y=!1}if(!(S<.01)){if(k<-.01){for(T=I.length-1;T>=0;T--)I[T].dp-=S;y=!1}if(y){var P=0;for(x=0;xF.pmax&&P++;for(x=I.length-1;x>=0&&!(P<=0);x--)d=I[x],d.pos>F.pmax-1&&(d.del=!0,P--);for(x=0;x=0;T--)I[T].dp-=S;for(x=I.length-1;x>=0&&!(P<=0);x--)d=I[x],d.pos+d.dp+d.size>F.pmax&&(d.del=!0,P--)}}}for(;!y&&i<=u;){for(i++,y=!0,x=0;x.01){for(T=A.length-1;T>=0;T--)A[T].dp+=k;for(c.push.apply(c,A),s.splice(x+1,1),_=0,T=c.length-1;T>=0;T--)_+=c[T].dp;for(S=_/c.length,T=c.length-1;T>=0;T--)c[T].dp-=S;y=!1}else x++}s.forEach(g)}for(x=s.length-1;x>=0;x--){var E=s[x];for(T=E.length-1;T>=0;T--){var D=E[T],N=D.datum;N.offset=D.dp,N.del=D.del}}}function OT(e,r){var t=0,n=e.offset;return r&&(n*=-TZ,t=e.offset*MZ),{x:t,y:n}}function EZ(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(kt+$r),n=t+r*(e.txwidth+$r),a=e.anchor==="middle";return a&&(t-=e.tx2width/2,n+=e.txwidth/2+$r),{alignShift:r,textShiftX:t,text2ShiftX:n}}function BT(e,r,t,n){var a=function(i){return i*t},o=function(i){return i*n};e.each(function(i){var l=Xl.select(this);if(i.del)return l.remove();var u=l.select("text.nums"),s=i.anchor,f=s==="end"?-1:1,v=EZ(i),p=OT(i,r),b=p.x,m=p.y,w=s==="middle",M="hoverlabel"in i.trace?i.trace.hoverlabel.showarrow:!0,y;w?y="M-"+a(i.bx/2+i.tx2width/2)+","+o(m-i.by/2)+"h"+a(i.bx)+"v"+o(i.by)+"h-"+a(i.bx)+"Z":M?y="M0,0L"+a(f*kt+b)+","+o(kt+m)+"v"+o(i.by/2-kt)+"h"+a(f*i.bx)+"v-"+o(i.by)+"H"+a(f*kt+b)+"V"+o(m-kt)+"Z":y="M"+a(f*kt+b)+","+o(m-i.by/2)+"h"+a(f*i.bx)+"v"+o(i.by)+"h"+a(-f*i.bx)+"Z",l.select("path").attr("d",y);var k=b+v.textShiftX,S=m+i.ty0-i.by/2+$r,x=i.textAlign||"auto";x!=="auto"&&(x==="left"&&s!=="start"?(u.attr("text-anchor","start"),k=w?-i.bx/2-i.tx2width/2+$r:-i.bx-$r):x==="right"&&s!=="end"&&(u.attr("text-anchor","end"),k=w?i.bx/2-i.tx2width/2-$r:i.bx+$r)),u.call(Fa.positionText,a(k),o(S)),i.tx2width&&(l.select("text.name").call(Fa.positionText,a(v.text2ShiftX+v.alignShift*$r+b),o(m+i.ty0-i.by/2+$r)),l.select("rect").call(Ii.setRect,a(v.text2ShiftX+(v.alignShift-1)*i.tx2width/2+b),o(m-i.by/2-1),a(i.tx2width),o(i.by+2)))})}function LZ(e,r){var t=e.index,n=e.trace||{},a=e.cd[0],o=e.cd[t]||{};function i(p){return p||ao(p)&&p===0}var l=Array.isArray(t)?function(p,b){var m=Ft.castOption(a,t,p);return i(m)?m:Ft.extractOption({},n,"",b)}:function(p,b){return Ft.extractOption(o,n,p,b)};function u(p,b,m){var w=l(b,m);i(w)&&(e[p]=w)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("fontWeight","htw","hoverlabel.font.weight"),u("fontStyle","hty","hoverlabel.font.style"),u("fontVariant","htv","hoverlabel.font.variant"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Ft.constrain(e.x0,0,e.xa._length),e.x1=Ft.constrain(e.x1,0,e.xa._length),e.y0=Ft.constrain(e.y0,0,e.ya._length),e.y1=Ft.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Ni.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Ni.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var s=Ni.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+s+" / -"+Ni.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+s,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Ni.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Ni.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var v=e.hoverinfo||e.trace.hoverinfo;return v&&v!=="all"&&(v=Array.isArray(v)?v:v.split("+"),v.indexOf("x")===-1&&(e.xLabel=void 0),v.indexOf("y")===-1&&(e.yLabel=void 0),v.indexOf("z")===-1&&(e.zLabel=void 0),v.indexOf("text")===-1&&(e.text=void 0),v.indexOf("name")===-1&&(e.name=void 0)),e}function DT(e,r,t){var n=t.container,a=t.fullLayout,o=a._size,i=t.event,l=!!r.hLinePoint,u=!!r.vLinePoint,s,f;if(n.selectAll(".spikeline").remove(),!!(u||l)){var v=un.combine(a.plot_bgcolor,a.paper_bgcolor);if(l){var p=r.hLinePoint,b,m;s=p&&p.xa,f=p&&p.ya;var w=f.spikesnap;w==="cursor"?(b=i.pointerX,m=i.pointerY):(b=s._offset+p.x,m=f._offset+p.y);var M=CT.readability(p.color,v)<1.5?un.contrast(v):p.color,y=f.spikemode,k=f.spikethickness,S=f.spikecolor||M,x=Ni.getPxPosition(e,f),T,d;if(y.indexOf("toaxis")!==-1||y.indexOf("across")!==-1){if(y.indexOf("toaxis")!==-1&&(T=x,d=b),y.indexOf("across")!==-1){var _=f._counterDomainMin,g=f._counterDomainMax;f.anchor==="free"&&(_=Math.min(_,f.position),g=Math.max(g,f.position)),T=o.l+_*o.w,d=o.l+g*o.w}n.insert("line",":first-child").attr({x1:T,x2:d,y1:m,y2:m,"stroke-width":k,stroke:S,"stroke-dasharray":Ii.dashStyle(f.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:T,x2:d,y1:m,y2:m,"stroke-width":k+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}y.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:x+(f.side!=="right"?k:-k),cy:m,r:k,fill:S}).classed("spikeline",!0)}if(u){var c=r.vLinePoint,A,h;s=c&&c.xa,f=c&&c.ya;var R=s.spikesnap;R==="cursor"?(A=i.pointerX,h=i.pointerY):(A=s._offset+c.x,h=f._offset+c.y);var E=CT.readability(c.color,v)<1.5?un.contrast(v):c.color,D=s.spikemode,N=s.spikethickness,I=s.spikecolor||E,F=Ni.getPxPosition(e,s),L,P;if(D.indexOf("toaxis")!==-1||D.indexOf("across")!==-1){if(D.indexOf("toaxis")!==-1&&(L=F,P=h),D.indexOf("across")!==-1){var O=s._counterDomainMin,U=s._counterDomainMax;s.anchor==="free"&&(O=Math.min(O,s.position),U=Math.max(U,s.position)),L=o.t+(1-U)*o.h,P=o.t+(1-O)*o.h}n.insert("line",":first-child").attr({x1:A,x2:A,y1:L,y2:P,"stroke-width":N,stroke:I,"stroke-dasharray":Ii.dashStyle(s.spikedash,N)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:A,x2:A,y1:L,y2:P,"stroke-width":N+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}D.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:A,cy:F-(s.side!=="top"?N:-N),r:N,fill:I}).classed("spikeline",!0)}}}function RZ(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var n=t.length-1;n>=0;n--){var a=t[n],o=e._hoverdata[n];if(a.curveNumber!==o.curveNumber||String(a.pointNumber)!==String(o.pointNumber)||String(a.pointNumbers)!==String(o.pointNumbers))return!0}return!1}function PT(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function FT(e,r){return Fa.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function DZ(e,r){for(var t=r.charAt(0),n=[],a=[],o=[],i=0;i{"use strict";var PZ=ir(),FZ=Zr(),IZ=to().isUnifiedHover;VT.exports=function(r,t,n,a){a=a||{};var o=t.legend;function i(l){a.font[l]||(a.font[l]=o?t.legend.font[l]:t.font[l])}t&&IZ(t.hovermode)&&(a.font||(a.font={}),i("size"),i("family"),i("color"),i("weight"),i("style"),i("variant"),o?(a.bgcolor||(a.bgcolor=FZ.combine(t.legend.bgcolor,t.paper_bgcolor)),a.bordercolor||(a.bordercolor=t.legend.bordercolor)):a.bgcolor||(a.bgcolor=t.paper_bgcolor)),n("hoverlabel.bgcolor",a.bgcolor),n("hoverlabel.bordercolor",a.bordercolor),n("hoverlabel.namelength",a.namelength),n("hoverlabel.showarrow",a.showarrow),PZ.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}});var YT=pe((Qce,GT)=>{"use strict";var NZ=ir(),zZ=oh(),qZ=_l();GT.exports=function(r,t){function n(a,o){return NZ.coerce(r,t,qZ,a,o)}zZ(r,t,n)}});var ZT=pe(($ce,XT)=>{"use strict";var WT=ir(),OZ=Lc(),BZ=oh();XT.exports=function(r,t,n,a){function o(l,u){return WT.coerce(r,t,OZ,l,u)}var i=WT.extendFlat({},a.hoverlabel);t.hovertemplate&&(i.namelength=-1),BZ(r,t,o,i)}});var q2=pe((jce,JT)=>{"use strict";var UZ=ir(),HZ=_l();JT.exports=function(r,t){function n(a,o){return t[a]!==void 0?t[a]:UZ.coerce(r,t,HZ,a,o)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var $T=pe((eve,QT)=>{"use strict";var KT=ir(),VZ=_l(),GZ=q2(),YZ=oh();QT.exports=function(r,t){function n(f,v){return KT.coerce(r,t,VZ,f,v)}var a=GZ(r,t);a&&(n("hoverdistance"),n("spikedistance"));var o=n("dragmode");o==="select"&&n("selectdirection");var i=t._has("mapbox"),l=t._has("map"),u=t._has("geo"),s=t._basePlotModules.length;t.dragmode==="zoom"&&((i||l||u)&&s===1||(i||l)&&u&&s===2)&&(t.dragmode="pan"),YZ(r,t,n),KT.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var r9=pe((rve,e9)=>{"use strict";var O2=ir(),jT=Er();e9.exports=function(r){var t=r.calcdata,n=r._fullLayout;function a(s){return function(f){return O2.coerceHoverinfo({hoverinfo:f},{_module:s._module},n)}}for(var o=0;o{"use strict";var XZ=Er(),ZZ=z2().hover;t9.exports=function(r,t,n){var a=XZ.getComponentMethod("annotations","onClick")(r,r._hoverdata);n!==void 0&&ZZ(r,t,n,!0);function o(){r.emit("plotly_click",{points:r._hoverdata,event:t})}r._hoverdata&&t&&t.target&&(a&&a.then?a.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var io=pe((nve,o9)=>{"use strict";var JZ=ot(),lh=ir(),KZ=ti(),Bf=to(),a9=_l(),i9=z2();o9.exports={moduleType:"component",name:"fx",constants:sf(),schema:{layout:a9},attributes:Lc(),layoutAttributes:a9,supplyLayoutGlobalDefaults:YT(),supplyDefaults:ZT(),supplyLayoutDefaults:$T(),calc:r9(),getDistanceFunction:Bf.getDistanceFunction,getClosest:Bf.getClosest,inbox:Bf.inbox,quadrature:Bf.quadrature,appendArrayPointValue:Bf.appendArrayPointValue,castHoverOption:$Z,castHoverinfo:jZ,hover:i9.hover,unhover:KZ.unhover,loneHover:i9.loneHover,loneUnhover:QZ,click:n9()};function QZ(e){var r=lh.isD3Selection(e)?e:JZ.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function $Z(e,r,t){return lh.castOption(e,r,"hoverlabel."+t)}function jZ(e,r,t){function n(a){return lh.coerceHoverinfo({hoverinfo:a},{_module:e._module},r)}return lh.castOption(e,t,"hoverinfo",n)}});var uu=pe(oo=>{"use strict";oo.selectMode=function(e){return e==="lasso"||e==="select"};oo.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};oo.openMode=function(e){return e==="drawline"||e==="drawopenpath"};oo.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};oo.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};oo.selectingOrDrawing=function(e){return oo.freeMode(e)||oo.rectMode(e)}});var sh=pe((ive,l9)=>{"use strict";l9.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var uh=pe((ove,s9)=>{"use strict";s9.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var ch=pe((lve,u9)=>{"use strict";var fh=32;u9.exports={CIRCLE_SIDES:fh,i000:0,i090:fh/4,i180:fh/2,i270:fh/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var vh=pe((sve,c9)=>{"use strict";var eJ=ir().strTranslate;function f9(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function rJ(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function tJ(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return f9(e,t[r])}}function nJ(e){return eJ(e.xaxis._offset,e.yaxis._offset)}c9.exports={p2r:f9,r2p:rJ,axValue:tJ,getTransform:nJ}});var Go=pe(lo=>{"use strict";var aJ=Cg(),d9=ch(),fu=d9.CIRCLE_SIDES,B2=d9.SQRT2,p9=vh(),v9=p9.p2r,h9=p9.r2p,iJ=[0,3,4,5,6,1,2],oJ=[0,3,4,1,2];lo.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",n=0;n0&&u{"use strict";var g9=en(),_9=uu(),lJ=_9.drawMode,sJ=_9.openMode,cu=ch(),y9=cu.i000,m9=cu.i090,x9=cu.i180,b9=cu.i270,uJ=cu.cos45,fJ=cu.sin45,w9=vh(),dh=w9.p2r,Yo=w9.r2p,cJ=Fo(),vJ=cJ.clearOutline,ph=Go(),hJ=ph.readPaths,dJ=ph.writePaths,pJ=ph.ellipseOver,gJ=ph.fixDatesForPaths;function yJ(e,r){if(e.length){var t=e[0][0];if(t){var n=r.gd,a=r.isActiveShape,o=r.dragmode,i=(n.layout||{}).shapes||[];if(!lJ(o)&&a!==void 0){var l=n._fullLayout._activeShapeIndex;if(l{"use strict";var mJ=uu(),xJ=mJ.selectMode,bJ=Fo(),_J=bJ.clearOutline,U2=Go(),wJ=U2.readPaths,MJ=U2.writePaths,TJ=U2.fixDatesForPaths;A9.exports=function(r,t){if(r.length){var n=r[0][0];if(n){var a=n.getAttribute("d"),o=t.gd,i=o._fullLayout.newselection,l=t.plotinfo,u=l.xaxis,s=l.yaxis,f=t.isActiveSelection,v=t.dragmode,p=(o.layout||{}).selections||[];if(!xJ(v)&&f!==void 0){var b=o._fullLayout._activeSelectionIndex;if(b{"use strict";k9.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var Wo=pe(dn=>{"use strict";var Jl=Hf(),S9=ir(),yh=Ct();dn.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};dn.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};dn.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};dn.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};dn.extractPathCoords=function(e,r,t){var n=[],a=e.match(Jl.segmentRE);return a.forEach(function(o){var i=r[o.charAt(0)].drawn;if(i!==void 0){var l=o.substr(1).match(Jl.paramRE);if(!(!l||l.lengthb&&(w="X"),w});return s>b&&(m=m.replace(/[\s,]*X.*/,""),S9.log("Ignoring extra params in segment "+u)),f+m})}function Vf(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var G2=pe((dve,R9)=>{"use strict";var kJ=ir(),vu=Ct(),C9=Yn(),E9=yt(),SJ=Go().readPaths,V2=Wo(),CJ=V2.getPathString,L9=Oc(),EJ=qn().FROM_TL;R9.exports=function(r,t,n,a){if(a.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var o;if(n.label.texttemplate){var i={};if(n.type!=="path"){var l=vu.getFromId(r,n.xref),u=vu.getFromId(r,n.yref);for(var s in L9){var f=L9[s](n,l,u);f!==void 0&&(i[s]=f)}}o=kJ.texttemplateStringForShapes(n.label.texttemplate,{},r._fullLayout._d3locale,i)}else o=n.label.text;var v={"data-index":t},p=n.label.font,b={"data-notex":1},m=a.append("g").attr(v).classed("shape-label",!0),w=m.append("text").attr(b).classed("shape-label-text",!0).text(o),M,y,k,S;if(n.path){var x=CJ(r,n),T=SJ(x,r);M=1/0,k=1/0,y=-1/0,S=-1/0;for(var d=0;d=e?a=r-n:a=n-r,-180/Math.PI*Math.atan2(a,o)}function RJ(e,r,t,n,a,o,i){var l=a.label.textposition,u=a.label.textangle,s=a.label.padding,f=a.type,v=Math.PI/180*o,p=Math.sin(v),b=Math.cos(v),m=a.label.xanchor,w=a.label.yanchor,M,y,k,S;if(f==="line"){l==="start"?(M=e,y=r):l==="end"?(M=t,y=n):(M=(e+t)/2,y=(r+n)/2),m==="auto"&&(l==="start"?u==="auto"?t>e?m="left":te?m="right":te?m="right":te?m="left":t{"use strict";var DJ=ir(),PJ=DJ.strTranslate,D9=ti(),I9=uu(),FJ=I9.drawMode,N9=I9.selectMode,z9=Er(),P9=Zr(),xh=ch(),IJ=xh.i000,NJ=xh.i090,zJ=xh.i180,qJ=xh.i270,OJ=Fo(),q9=OJ.clearOutlineControllers,W2=Go(),mh=W2.pointsOnRectangle,Y2=W2.pointsOnEllipse,BJ=W2.writePaths,UJ=gh().newShapes,HJ=gh().createShapeObj,VJ=H2(),GJ=G2();O9.exports=function e(r,t,n,a){a||(a=0);var o=n.gd;function i(){e(r,t,n,a++),(Y2(r[0])||n.hasText)&&l({redrawing:!0})}function l(F){var L={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,L=UJ(t,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,L=VJ(t,n),o._fullLayout._reselect=!0),Object.keys(L).length&&z9.call((F||{}).redrawing?"relayout":"_guiRelayout",o,L)}var u=o._fullLayout,s=u._zoomlayer,f=n.dragmode,v=FJ(f),p=N9(f);(v||p)&&(o._fullLayout._outlining=!0),q9(o),t.attr("d",BJ(r));var b,m,w,M,y;if(!a&&(n.isActiveShape||n.isActiveSelection)){y=YJ([],r);var k=s.append("g").attr("class","outline-controllers");A(k),I()}if(v&&n.hasText){var S=s.select(".label-temp"),x=HJ(t,n,n.dragmode);GJ(o,"label-temp",x,S)}function T(F){w=+F.srcElement.getAttribute("data-i"),M=+F.srcElement.getAttribute("data-j"),b[w][M].moveFn=d}function d(F,L){if(r.length){var P=y[w][M][1],O=y[w][M][2],U=r[w],X=U.length;if(mh(U)){var $=F,j=L;if(n.isActiveSelection){var Y=F9(U,M);Y[1]===U[M][1]?j=0:$=0}for(var q=0;q1&&!(F.length===2&&F[1][0]==="Z")&&(M===0&&(F[0][0]="M"),r[w]=F,i(),l())}}function c(F,L){if(F===2){w=+L.srcElement.getAttribute("data-i"),M=+L.srcElement.getAttribute("data-j");var P=r[w];!mh(P)&&!Y2(P)&&g()}}function A(F){b=[];for(var L=0;L{"use strict";var XJ=ot(),Y9=Er(),B9=ir(),hu=Ct(),ZJ=Go().readPaths,JJ=bh(),wh=G2(),W9=Fo().clearOutlineControllers,X2=Zr(),J2=yt(),KJ=gt().arrayEditor,U9=ti(),H9=Vo(),Kl=Hf(),la=Wo(),Z2=la.getPathString;J9.exports={draw:K2,drawOne:X9,eraseActiveShape:jJ,drawLabel:wh};function K2(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var n=r._plots[t].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var a=0;ai&&Ee>l&&!Ae.shiftKey?U9.getCursor(Pe/Te,1-Se/Ee):"move";H9(r,Ne),Q=Ne.split("-")[0]}}function ee(Ae){_h(e)||(u&&(y=U(t.xanchor)),s&&(k=X(t.yanchor)),t.type==="path"?h=t.path:(b=u?t.x0:U(t.x0),m=s?t.y0:X(t.y0),w=u?t.x1:U(t.x1),M=s?t.y1:X(t.y1)),bM?(S=m,_="y0",x=M,g="y1"):(S=M,_="y1",x=m,g="y0"),ie(Ae),ue(a,t),ke(r,t,e),q.moveFn=Q==="move"?H:te,q.altKey=Ae.altKey)}function V(){_h(e)||(H9(r),de(a),Z9(r,e,t),Y9.call("_guiRelayout",e,o.getUpdateObj()))}function re(){_h(e)||de(a)}function H(Ae,ve){if(t.type==="path"){var Te=function(Se){return Se},Ee=Te,Pe=Te;u?p("xanchor",t.xanchor=$(y+Ae)):(Ee=function(Ne){return $(U(Ne)+Ae)},E&&E.type==="date"&&(Ee=la.encodeDate(Ee))),s?p("yanchor",t.yanchor=j(k+ve)):(Pe=function(Ne){return j(X(Ne)+ve)},N&&N.type==="date"&&(Pe=la.encodeDate(Pe))),p("path",t.path=V9(h,Ee,Pe))}else u?p("xanchor",t.xanchor=$(y+Ae)):(p("x0",t.x0=$(b+Ae)),p("x1",t.x1=$(w+Ae))),s?p("yanchor",t.yanchor=j(k+ve)):(p("y0",t.y0=j(m+ve)),p("y1",t.y1=j(M+ve)));r.attr("d",Z2(e,t)),ue(a,t),wh(e,n,t,R)}function te(Ae,ve){if(v){var Te=function(qe){return qe},Ee=Te,Pe=Te;u?p("xanchor",t.xanchor=$(y+Ae)):(Ee=function($e){return $(U($e)+Ae)},E&&E.type==="date"&&(Ee=la.encodeDate(Ee))),s?p("yanchor",t.yanchor=j(k+ve)):(Pe=function($e){return j(X($e)+ve)},N&&N.type==="date"&&(Pe=la.encodeDate(Pe))),p("path",t.path=V9(h,Ee,Pe))}else if(f){if(Q==="resize-over-start-point"){var Se=b+Ae,Ne=s?m-ve:m+ve;p("x0",t.x0=u?Se:$(Se)),p("y0",t.y0=s?Ne:j(Ne))}else if(Q==="resize-over-end-point"){var Be=w+Ae,ge=s?M-ve:M+ve;p("x1",t.x1=u?Be:$(Be)),p("y1",t.y1=s?ge:j(ge))}}else{var we=function(qe){return Q.indexOf(qe)!==-1},Me=we("n"),me=we("s"),Re=we("w"),ce=we("e"),he=Me?S+ve:S,ye=me?x+ve:x,Ce=Re?T+Ae:T,ze=ce?d+Ae:d;s&&(Me&&(he=S-ve),me&&(ye=x-ve)),(!s&&ye-he>l||s&&he-ye>l)&&(p(_,t[_]=s?he:j(he)),p(g,t[g]=s?ye:j(ye))),ze-Ce>i&&(p(c,t[c]=u?Ce:$(Ce)),p(A,t[A]=u?ze:$(ze)))}r.attr("d",Z2(e,t)),ue(a,t),wh(e,n,t,R)}function ue(Ae,ve){(u||s)&&Te();function Te(){var Ee=ve.type!=="path",Pe=Ae.selectAll(".visual-cue").data([0]),Se=1;Pe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Se}).classed("visual-cue",!0);var Ne=U(u?ve.xanchor:B9.midRange(Ee?[ve.x0,ve.x1]:la.extractPathCoords(ve.path,Kl.paramIsX))),Be=X(s?ve.yanchor:B9.midRange(Ee?[ve.y0,ve.y1]:la.extractPathCoords(ve.path,Kl.paramIsY)));if(Ne=la.roundPositionForSharpStrokeRendering(Ne,Se),Be=la.roundPositionForSharpStrokeRendering(Be,Se),u&&s){var ge="M"+(Ne-1-Se)+","+(Be-1-Se)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Pe.attr("d",ge)}else if(u){var we="M"+(Ne-1-Se)+","+(Be-9-Se)+"v18 h2 v-18 Z";Pe.attr("d",we)}else{var Me="M"+(Ne-9-Se)+","+(Be-1-Se)+"h18 v2 h-18 Z";Pe.attr("d",Me)}}}function de(Ae){Ae.selectAll(".visual-cue").remove()}function ke(Ae,ve,Te){var Ee=ve.xref,Pe=ve.yref,Se=hu.getFromId(Te,Ee),Ne=hu.getFromId(Te,Pe),Be="";Ee!=="paper"&&!Se.autorange&&(Be+=Ee),Pe!=="paper"&&!Ne.autorange&&(Be+=Pe),J2.setClipUrl(Ae,Be?"clip"+Te._fullLayout._uid+Be:null,Te)}}function V9(e,r,t){return e.replace(Kl.segmentRE,function(n){var a=0,o=n.charAt(0),i=Kl.paramIsX[o],l=Kl.paramIsY[o],u=Kl.numParams[o],s=n.substr(1).replace(Kl.paramRE,function(f){return a>=u||(i[a]?f=r(f):l[a]&&(f=t(f)),a++),f});return o+s})}function $J(e,r){if(Mh(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){G9(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=G9,K2(e)}}}function G9(e){if(Mh(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(W9(e),delete e._fullLayout._activeShapeIndex,K2(e))}}function jJ(e){if(Mh(e)){W9(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Ia=Er(),K9=ln(),Q9=en(),jr=uh(),eK=Th().eraseActiveShape,Ah=ir(),Kr=Ah._,et=aA.exports={};et.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Kr(e,"Download plot as a PNG"):Kr(e,"Download plot")},icon:jr.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};Ah.notifier(Kr(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in r&&(t[n]=r[n])}),Ia.call("downloadImage",e,t).then(function(n){Ah.notifier(Kr(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){Ah.notifier(Kr(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};et.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Kr(e,"Edit in Chart Studio")},icon:jr.disk,click:function(e){K9.sendDataToCloud(e)}};et.editInChartStudio={name:"editInChartStudio",title:function(e){return Kr(e,"Edit in Chart Studio")},icon:jr.pencil,click:function(e){K9.sendDataToCloud(e)}};et.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Kr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:jr.zoombox,click:Un};et.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Kr(e,"Pan")},attr:"dragmode",val:"pan",icon:jr.pan,click:Un};et.select2d={name:"select2d",_cat:"select",title:function(e){return Kr(e,"Box Select")},attr:"dragmode",val:"select",icon:jr.selectbox,click:Un};et.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Kr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:jr.lasso,click:Un};et.drawclosedpath={name:"drawclosedpath",title:function(e){return Kr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:jr.drawclosedpath,click:Un};et.drawopenpath={name:"drawopenpath",title:function(e){return Kr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:jr.drawopenpath,click:Un};et.drawline={name:"drawline",title:function(e){return Kr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:jr.drawline,click:Un};et.drawrect={name:"drawrect",title:function(e){return Kr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:jr.drawrect,click:Un};et.drawcircle={name:"drawcircle",title:function(e){return Kr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:jr.drawcircle,click:Un};et.eraseshape={name:"eraseshape",title:function(e){return Kr(e,"Erase active shape")},icon:jr.eraseshape,click:eK};et.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Kr(e,"Zoom in")},attr:"zoom",val:"in",icon:jr.zoom_plus,click:Un};et.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Kr(e,"Zoom out")},attr:"zoom",val:"out",icon:jr.zoom_minus,click:Un};et.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Kr(e,"Autoscale")},attr:"zoom",val:"auto",icon:jr.autoscale,click:Un};et.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Kr(e,"Reset axes")},attr:"zoom",val:"reset",icon:jr.home,click:Un};et.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Kr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:jr.tooltip_basic,gravity:"ne",click:Un};et.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Kr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:jr.tooltip_compare,gravity:"ne",click:Un};function Un(e,r){var t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,o=e._fullLayout,i={},l=Q9.list(e,null,!0),u=o._cartesianSpikesEnabled,s,f;if(n==="zoom"){var v=a==="in"?.5:2,p=(1+v)/2,b=(1-v)/2,m,w;for(f=0;f{"use strict";var iA=j2(),nK=Object.keys(iA),oA=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],lA=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(oA),pu=[],aK=function(e){if(lA.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();pu.indexOf(r)===-1&&pu.push(r),pu.indexOf(t)===-1&&pu.push(t)}};nK.forEach(function(e){aK(iA[e])});pu.sort();sA.exports={DRAW_MODES:oA,backButtons:lA,foreButtons:pu}});var ry=pe((bve,uA)=>{"use strict";var xve=ey();uA.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var cA=pe((_ve,fA)=>{"use strict";var iK=ir(),Gf=Zr(),oK=gt(),lK=ry();fA.exports=function(r,t){var n=r.modebar||{},a=oK.newContainer(t,"modebar");function o(l,u){return iK.coerce(n,a,lK,l,u)}o("orientation"),o("bgcolor",Gf.addOpacity(t.paper_bgcolor,.5));var i=Gf.contrast(Gf.rgb(t.modebar.bgcolor));o("color",Gf.addOpacity(i,.3)),o("activecolor",Gf.addOpacity(i,.7)),o("uirevision",t.uirevision),o("add"),o("remove")}});var pA=pe((wve,dA)=>{"use strict";var ty=ot(),sK=rt(),Sh=ir(),vA=uh(),uK=mc().version,fK=new DOMParser;function hA(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var zi=hA.prototype;zi.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,n=this.graphInfo._fullLayout,a="modebar-"+n._uid;this.element.setAttribute("id",a),this.element.setAttribute("role","toolbar"),this._uid=a,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var o=n.modebar,i="#"+a+" .modebar-group";document.querySelectorAll(i).forEach(function(v){v.style.backgroundColor=o.bgcolor});var l=!this.hasButtons(r),u=this.hasLogo!==t.displaylogo,s=this.locale!==t.locale;if(this.locale=t.locale,(l||u||s)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),Sh.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+o.activecolor,"fill: "+o.color,this.element)};zi.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var n=r.createGroup();t.forEach(function(a){var o=a.name;if(!o)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(o)!==-1)throw new Error("button name '"+o+"' is taken");r.buttonsNames.push(o);var i=r.createButton(a);r.buttonElements.push(i),n.appendChild(i)}),r.element.appendChild(n)})};zi.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};zi.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(t.setAttribute("data-title",n),t.setAttribute("aria-label",n)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),t.setAttribute("data-val",a));var o=e.click;if(typeof o!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&ty.select(t).classed("active",!0);var i=e.icon;return typeof i=="function"?t.appendChild(i()):t.appendChild(this.createIcon(i||vA.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};zi.createIcon=function(e){var r=sK(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(t,"svg"),n.setAttribute("viewBox",[0,0,e.width,r].join(" ")),n.setAttribute("class","icon");var a=document.createElementNS(t,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(a)}if(e.svg){var o=fK.parseFromString(e.svg,"application/xml");n=o.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};zi.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var a=n.getAttribute("data-val")||!0,o=n.getAttribute("data-attr"),i=n.getAttribute("data-toggle")==="true",l=ty.select(n),u=function(v,p){var b=r.modebar,m=v.querySelector(".icon path");m&&(p||v.matches(":hover")?m.style.fill=b.activecolor:m.style.fill=b.color)};if(i){if(o===t){var s=!l.classed("active");l.classed("active",s),u(n,s)}}else{var f=o===null?o:Sh.nestedProperty(r,o).get();l.classed("active",f===a),u(n,f===a)}})};zi.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var hK=en(),gA=ia(),ny=Er(),dK=to().isUnifiedHover,pK=pA(),Ch=j2(),gK=ey().DRAW_MODES,yK=ir().extendDeep;yA.exports=function(r){var t=r._fullLayout,n=r._context,a=t._modeBar;if(!n.displayModeBar&&!n.watermark){a&&(a.destroy(),delete t._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var o=n.modeBarButtons,i;Array.isArray(o)&&o.length?i=MK(o):!n.displayModeBar&&n.watermark?i=[]:i=mK(r),a?a.update(r,i):t._modeBar=pK(r,i)};function mK(e){var r=e._fullLayout,t=e._fullData,n=e._context;function a(L,P){if(typeof P=="string"){if(P.toLowerCase()===L.toLowerCase())return!0}else{var O=P.name,U=P._cat||P.name;if(O===L||U===L.toLowerCase())return!0}return!1}var o=r.modebar.add;typeof o=="string"&&(o=[o]);var i=r.modebar.remove;typeof i=="string"&&(i=[i]);var l=n.modeBarButtonsToAdd.concat(o.filter(function(L){for(var P=0;P1?(A=["toggleHover"],h=["resetViews"]):v?(c=["zoomInGeo","zoomOutGeo"],A=["hoverClosestGeo"],h=["resetGeo"]):f?(A=["hoverClosest3d"],h=["resetCameraDefault3d","resetCameraLastSave3d"]):w?(c=["zoomInMapbox","zoomOutMapbox"],A=["toggleHover"],h=["resetViewMapbox"]):M?(c=["zoomInMap","zoomOutMap"],A=["toggleHover"],h=["resetViewMap"]):p?A=["hoverClosestPie"]:S?(A=["hoverClosestCartesian","hoverCompareCartesian"],h=["resetViewSankey"]):A=["toggleHover"],s&&A.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(_K(t)||T)&&(A=[]),s&&!x&&(c=["zoomIn2d","zoomOut2d","autoScale2d"],h[0]!=="resetViews"&&(h=["resetScale2d"])),f?R=["zoom3d","pan3d","orbitRotation","tableRotation"]:s&&!x||m?R=["zoom2d","pan2d"]:w||M||v?R=["pan2d"]:y&&(R=["zoom2d"]),bK(t)&&R.push("select2d","lasso2d");var E=[],D=function(L){E.indexOf(L)===-1&&A.indexOf(L)!==-1&&E.push(L)};if(Array.isArray(l)){for(var N=[],I=0;I{"use strict";xA.exports={moduleType:"component",name:"modebar",layoutAttributes:ry(),supplyLayoutDefaults:cA(),manage:mA()}});var iy=pe((Ave,bA)=>{"use strict";var TK=qn().FROM_BL;bA.exports=function(r,t,n){n===void 0&&(n=TK[r.constraintoward||"center"]);var a=[r.r2l(r.range[0]),r.r2l(r.range[1])],o=a[0]+(a[1]-a[0])*n;r.range=r._input.range=[r.l2r(o+(a[0]-o)*t),r.l2r(o+(a[1]-o)*t)],r.setScale()}});var Wf=pe(Yf=>{"use strict";var Ql=ir(),oy=$s(),ai=en().id2name,AK=Ra(),_A=iy(),kK=Rv(),SK=an().ALMOST_EQUAL,CK=qn().FROM_BL;Yf.handleDefaults=function(e,r,t){var n=t.axIds,a=t.axHasImage,o=r._axisConstraintGroups=[],i=r._axisMatchGroups=[],l,u,s,f,v,p,b,m;for(l=0;lo?t.substr(o):n.substr(a))+i}function LK(e,r){for(var t=r._size,n=t.h/t.w,a={},o=Object.keys(e),i=0;iSK*m&&!k)){for(o=0;oR&&OA&&(A=O);var X=(A-c)/(2*h);v/=X,c=u.l2r(c),A=u.l2r(A),u.range=u._input.range=d<_?[c,A]:[A,c]}MA(u,v)}}}};Yf.getAxisGroup=function(r,t){for(var n=r._axisMatchGroups,a=0;a{"use strict";var Lh=ot(),Hn=Er(),xa=ln(),Na=ir(),uy=Yn(),fy=sh(),Xf=Zr(),gu=yt(),AA=Lf(),LA=ay(),Zf=Ct(),so=qn(),RA=Wf(),RK=RA.enforce,DK=RA.clean,kA=$s().doAutoRange,DA="start",PK="middle",PA="end",FK=wn().zindexSeparator;fn.layoutStyles=function(e){return Na.syncOrAsync([xa.doAutoMargin,NK],e)};function IK(e,r,t){for(var n=0;n=e[1]||a[1]<=e[0])&&o[0]r[0])return!0}return!1}function NK(e){var r=e._fullLayout,t=r._size,n=t.p,a=Zf.list(e,"",!0),o,i,l,u,s,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(gu.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),fn.drawMainTitle(e),LA.manage(e),!r._has("cartesian"))return xa.previousPromises(e);function v(ee,V,re){var H=ee._lw/2;if(ee._id.charAt(0)==="x"){if(V){if(re==="top")return V._offset-n-H}else return t.t+t.h*(1-(ee.position||0))+H%1;return V._offset+V._length+n+H}if(V){if(re==="right")return V._offset+V._length+n+H}else return t.l+t.w*(ee.position||0)+H%1;return V._offset-n-H}for(o=0;o0){BK(e,o,s,u),l.attr({x:i,y:o,"text-anchor":n,dy:EA(r.yanchor)}).call(uy.positionText,i,o);var f=(r.text.match(uy.BR_TAG_ALL)||[]).length;if(f){var v=so.LINE_SPACING*f+so.MID_SHIFT;r.y===0&&(v=-v),l.selectAll(".line").each(function(){var M=+this.getAttribute("dy").slice(0,-2)-v+"em";this.setAttribute("dy",M)})}var p=Lh.selectAll(".gtitle-subtitle");if(p.node()){var b=l.node().getBBox(),m=b.y+b.height,w=m+AA.SUBTITLE_PADDING_EM*r.subtitle.font.size;p.attr({x:i,y:w,"text-anchor":n,dy:EA(r.yanchor)}).call(uy.positionText,i,w)}}}};function zK(e,r,t,n,a){var o=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,i=Na.isTopAnchor(r)?n:n-a,l=t==="b"?o-i:i;return Na.isTopAnchor(r)&&t==="t"||Na.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",i=e._fullLayout.margin[o],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=qK(o,n,a,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>i?l:0}function BK(e,r,t,n){var a="title.automargin",o=e._fullLayout.title,i=o.y>.5?"t":"b",l={x:o.x,y:o.y,t:0,b:0},u={};o.yref==="paper"&&zK(e,o,i,r,n)?l[i]=t:o.yref==="container"&&(u[i]=t,e._fullLayout._reservedMargin[a]=u),xa.allowAutoMargin(e,a),xa.autoMargin(e,a,l)}function UK(e,r){var t=e.title,n=e._size,a=0;switch(r===DA?a=t.pad.l:r===PA&&(a=-t.pad.r),t.xref){case"paper":return n.l+n.w*t.x+a;case"container":default:return e.width*t.x+a}}function HK(e,r){var t=e.title,n=e._size,a=0;if(r==="0em"||!r?a=-t.pad.b:r===so.CAP_SHIFT+"em"&&(a=t.pad.t),t.y==="auto")return n.t/2;switch(t.yref){case"paper":return n.t+n.h-n.h*t.y+a;case"container":default:return e.height-e.height*t.y+a}}function EA(e){return e==="top"?so.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":so.MID_SHIFT+"em"}function VK(e){var r=e.title,t=PK;return Na.isRightAnchor(r)?t=PA:Na.isLeftAnchor(r)&&(t=DA),t}function GK(e){var r=e.title,t="0em";return Na.isTopAnchor(r)?t=so.CAP_SHIFT+"em":Na.isMiddleAnchor(r)&&(t=so.MID_SHIFT+"em"),t}fn.doTraceStyle=function(e){var r=e.calcdata,t=[],n;for(n=0;n{"use strict";var YK=Go().readPaths,WK=bh(),FA=Fo().clearOutlineControllers,cy=Zr(),IA=yt(),XK=gt().arrayEditor,NA=Wo(),ZK=NA.getPathString;qA.exports={draw:Dh,drawOne:zA,activateLastSelection:QK};function Dh(e){var r=e._fullLayout;FA(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var n=r._plots[t].selectionLayer;n&&n.selectAll("path").remove()}for(var a=0;a=0;M--){var y=i.append("path").attr(u).style("opacity",M?.1:s).call(cy.stroke,v).call(cy.fill,f).call(IA.dashLine,M?"solid":b,M?4+p:p);if(JK(y,e,n),m){var k=XK(e.layout,"selections",n);y.style({cursor:"move"});var S={element:y.node(),plotinfo:a,gd:e,editHelpers:k,isActiveSelection:!0},x=YK(l,e);WK(x,y,S)}else y.style("pointer-events",M?"all":"none");w[M]=y}var T=w[0],d=w[1];d.node().addEventListener("click",function(){return KK(e,T)})}}function JK(e,r,t){var n=t.xref+t.yref;IA.setClipUrl(e,"clip"+r._fullLayout._uid+n,r)}function KK(e,r){if(Ph(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){vy(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=vy,Dh(e)}}}function QK(e){if(Ph(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=vy,Dh(e)}}function vy(e){if(Ph(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(FA(e),delete e._fullLayout._activeSelectionIndex,Dh(e))}}});var BA=pe((Eve,OA)=>{function $K(){var e,r=0,t=!1;function n(a,o){return e.list.push({type:a,data:o?JSON.parse(JSON.stringify(o)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(a,o){return n("check",{seg1:a,seg2:o})},segmentChop:function(a,o){return n("div_seg",{seg:a,pt:o}),n("chop",{seg:a,pt:o})},statusRemove:function(a){return n("pop_seg",{seg:a})},segmentUpdate:function(a){return n("seg_update",{seg:a})},segmentNew:function(a,o){return n("new_seg",{seg:a,primary:o})},segmentRemove:function(a){return n("rem_seg",{seg:a})},tempStatus:function(a,o,i){return n("temp_status",{seg:a,above:o,below:i})},rewind:function(a){return n("rewind",{seg:a})},status:function(a,o,i){return n("status",{seg:a,above:o,below:i})},vert:function(a){return a===t?e:(t=a,n("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),n("log",{txt:a})},reset:function(){return n("reset")},selected:function(a){return n("selected",{segs:a})},chainStart:function(a){return n("chain_start",{seg:a})},chainRemoveHead:function(a,o){return n("chain_rem_head",{index:a,pt:o})},chainRemoveTail:function(a,o){return n("chain_rem_tail",{index:a,pt:o})},chainNew:function(a,o){return n("chain_new",{pt1:a,pt2:o})},chainMatch:function(a){return n("chain_match",{index:a})},chainClose:function(a){return n("chain_close",{index:a})},chainAddHead:function(a,o){return n("chain_add_head",{index:a,pt:o})},chainAddTail:function(a,o){return n("chain_add_tail",{index:a,pt:o})},chainConnect:function(a,o){return n("chain_con",{index1:a,index2:o})},chainReverse:function(a){return n("chain_rev",{index:a})},chainJoin:function(a,o){return n("chain_join",{index1:a,index2:o})},done:function(){return n("done")}},e}OA.exports=$K});var HA=pe((Lve,UA)=>{function jK(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,n,a){var o=n[0],i=n[1],l=a[0],u=a[1],s=t[0],f=t[1];return(l-o)*(f-i)-(u-i)*(s-o)>=-e},pointBetween:function(t,n,a){var o=t[1]-n[1],i=a[0]-n[0],l=t[0]-n[0],u=a[1]-n[1],s=l*i+o*u;if(s-e)},pointsSameX:function(t,n){return Math.abs(t[0]-n[0])e!=l-o>e&&(i-f)*(o-v)/(l-v)+f-a>e&&(u=!u),i=f,l=v}return u}};return r}UA.exports=jK});var GA=pe((Rve,VA)=>{var eQ={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var n=e.root,a=e.root.next;a!==null;){if(t(a)){r.prev=a.prev,r.next=a,a.prev.next=r,a.prev=r;return}n=a,a=a.next}n.next=r,r.prev=n,r.next=null},findTransition:function(r){for(var t=e.root,n=e.root.next;n!==null&&!r(n);)t=n,n=n.next;return{before:t===e.root?null:t,after:n,insert:function(a){return a.prev=t,a.next=n,t.next=a,n!==null&&(n.prev=a),a}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};VA.exports=eQ});var WA=pe((Dve,YA)=>{var Jf=GA();function rQ(e,r,t){function n(m,w){return{id:t?t.segmentId():-1,start:m,end:w,myFill:{above:null,below:null},otherFill:null}}function a(m,w,M){return{id:t?t.segmentId():-1,start:m,end:w,myFill:{above:M.myFill.above,below:M.myFill.below},otherFill:null}}var o=Jf.create();function i(m,w,M,y,k,S){var x=r.pointsCompare(w,k);return x!==0?x:r.pointsSame(M,S)?0:m!==y?m?1:-1:r.pointAboveOrOnLine(M,y?k:S,y?S:k)?1:-1}function l(m,w){o.insertBefore(m,function(M){var y=i(m.isStart,m.pt,w,M.isStart,M.pt,M.other.pt);return y<0})}function u(m,w){var M=Jf.node({isStart:!0,pt:m.start,seg:m,primary:w,other:null,status:null});return l(M,m.end),M}function s(m,w,M){var y=Jf.node({isStart:!1,pt:w.end,seg:w,primary:M,other:m,status:null});m.other=y,l(y,m.pt)}function f(m,w){var M=u(m,w);return s(M,m,w),M}function v(m,w){t&&t.segmentChop(m.seg,w),m.other.remove(),m.seg.end=w,m.other.pt=w,l(m.other,m.pt)}function p(m,w){var M=a(w,m.seg.end,m.seg);return v(m,w),f(M,m.primary)}function b(m,w){var M=Jf.create();function y(N,I){var F=N.seg.start,L=N.seg.end,P=I.seg.start,O=I.seg.end;return r.pointsCollinear(F,P,O)?r.pointsCollinear(L,P,O)||r.pointAboveOrOnLine(L,P,O)?1:-1:r.pointAboveOrOnLine(F,P,O)?1:-1}function k(N){return M.findTransition(function(I){var F=y(N,I.ev);return F>0})}function S(N,I){var F=N.seg,L=I.seg,P=F.start,O=F.end,U=L.start,X=L.end;t&&t.checkIntersection(F,L);var $=r.linesIntersect(P,O,U,X);if($===!1){if(!r.pointsCollinear(P,O,U)||r.pointsSame(P,X)||r.pointsSame(O,U))return!1;var j=r.pointsSame(P,U),Y=r.pointsSame(O,X);if(j&&Y)return I;var q=!j&&r.pointBetween(P,U,X),Q=!Y&&r.pointBetween(O,U,X);if(j)return Q?p(I,O):p(N,X),I;q&&(Y||(Q?p(I,O):p(N,X)),p(I,P))}else $.alongA===0&&($.alongB===-1?p(N,U):$.alongB===0?p(N,$.pt):$.alongB===1&&p(N,X)),$.alongB===0&&($.alongA===-1?p(I,P):$.alongA===0?p(I,$.pt):$.alongA===1&&p(I,O));return!1}for(var x=[];!o.isEmpty();){var T=o.getHead();if(t&&t.vert(T.pt[0]),T.isStart){let N=function(){if(_){var I=S(T,_);if(I)return I}return g?S(T,g):!1};var D=N;t&&t.segmentNew(T.seg,T.primary);var d=k(T),_=d.before?d.before.ev:null,g=d.after?d.after.ev:null;t&&t.tempStatus(T.seg,_?_.seg:!1,g?g.seg:!1);var c=N();if(c){if(e){var A;T.seg.myFill.below===null?A=!0:A=T.seg.myFill.above!==T.seg.myFill.below,A&&(c.seg.myFill.above=!c.seg.myFill.above)}else c.seg.otherFill=T.seg.myFill;t&&t.segmentUpdate(c.seg),T.other.remove(),T.remove()}if(o.getHead()!==T){t&&t.rewind(T.seg);continue}if(e){var A;T.seg.myFill.below===null?A=!0:A=T.seg.myFill.above!==T.seg.myFill.below,g?T.seg.myFill.below=g.seg.myFill.above:T.seg.myFill.below=m,A?T.seg.myFill.above=!T.seg.myFill.below:T.seg.myFill.above=T.seg.myFill.below}else if(T.seg.otherFill===null){var h;g?T.primary===g.primary?h=g.seg.otherFill.above:h=g.seg.myFill.above:h=T.primary?w:m,T.seg.otherFill={above:h,below:h}}t&&t.status(T.seg,_?_.seg:!1,g?g.seg:!1),T.other.status=d.insert(Jf.node({ev:T}))}else{var R=T.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(M.exists(R.prev)&&M.exists(R.next)&&S(R.prev.ev,R.next.ev),t&&t.statusRemove(R.ev.seg),R.remove(),!T.primary){var E=T.seg.myFill;T.seg.myFill=T.seg.otherFill,T.seg.otherFill=E}x.push(T.seg)}o.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(m){for(var w,M=m[m.length-1],y=0;y{function tQ(e,r,t){var n=[],a=[];return e.forEach(function(o){var i=o.start,l=o.end;if(r.pointsSame(i,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(o);var u={index:0,matches_head:!1,matches_pt1:!1},s={index:0,matches_head:!1,matches_pt1:!1},f=u;function v(D,N,I){return f.index=D,f.matches_head=N,f.matches_pt1=I,f===u?(f=s,!1):(f=null,!0)}for(var p=0;p{function Kf(e,r,t){var n=[];return e.forEach(function(a){var o=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);r[o]!==0&&n.push({id:t?t.segmentId():-1,start:a.start,end:a.end,myFill:{above:r[o]===1,below:r[o]===2},otherFill:null})}),t&&t.selected(n),n}var nQ={union:function(e,r){return Kf(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Kf(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Kf(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Kf(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Kf(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};JA.exports=nQ});var $A=pe((Ive,QA)=>{var aQ={toPolygon:function(e,r){function t(o){if(o.length<=0)return e.segments({inverted:!1,regions:[]});function i(s){var f=s.slice(0,s.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=i(o[0]),u=1;u{var iQ=BA(),oQ=HA(),jA=WA(),lQ=ZA(),Qf=KA(),ek=$A(),za=!1,$f=oQ(),sa;sa={buildLog:function(e){return e===!0?za=iQ():e===!1&&(za=!1),za===!1?!1:za.list},epsilon:function(e){return $f.epsilon(e)},segments:function(e){var r=jA(!0,$f,za);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=jA(!1,$f,za);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Qf.union(e.combined,za),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Qf.intersect(e.combined,za),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Qf.difference(e.combined,za),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Qf.differenceRev(e.combined,za),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Qf.xor(e.combined,za),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:lQ(e.segments,$f,za),inverted:e.inverted}},polygonFromGeoJSON:function(e){return ek.toPolygon(sa,e)},polygonToGeoJSON:function(e){return ek.fromPolygon(sa,$f,e)},union:function(e,r){return jf(e,r,sa.selectUnion)},intersect:function(e,r){return jf(e,r,sa.selectIntersect)},difference:function(e,r){return jf(e,r,sa.selectDifference)},differenceRev:function(e,r){return jf(e,r,sa.selectDifferenceRev)},xor:function(e,r){return jf(e,r,sa.selectXor)}};function jf(e,r,t){var n=sa.segments(e),a=sa.segments(r),o=sa.combine(n,a),i=t(o);return sa.polygon(i)}typeof window=="object"&&(window.PolyBool=sa);rk.exports=sa});var ak=pe((zve,nk)=>{nk.exports=function(r,t,n,a){var o=r[0],i=r[1],l=!1;n===void 0&&(n=0),a===void 0&&(a=t.length);for(var u=a-n,s=0,f=u-1;si!=m>i&&o<(b-v)*(i-p)/(m-p)+v;w&&(l=!l)}return l}});var py=pe((qve,ik)=>{"use strict";var dy=Nc().dot,Fh=an().BADNUM,Ih=ik.exports={};Ih.tester=function(r){var t=r.slice(),n=t[0][0],a=n,o=t[0][1],i=o,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;la||y===Fh||yi||w&&s(m))}function v(m,w){var M=m[0],y=m[1];if(M===Fh||Ma||y===Fh||yi)return!1;var k=t.length,S=t[0][0],x=t[0][1],T=0,d,_,g,c,A;for(d=1;dMath.max(_,S)||y>Math.max(g,x)))if(yl||Math.abs(dy(v,s))>a)return!0;return!1};Ih.filter=function(r,t){var n=[r[0]],a=0,o=0;function i(u){r.push(u);var s=n.length,f=a;n.splice(o+1);for(var v=f+1;v1){var l=r.pop();i(l)}return{addPt:i,raw:r,filtered:n}}});var lk=pe((Ove,ok)=>{"use strict";ok.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Ek=pe((Bve,Ck)=>{"use strict";var sk=tk(),sQ=ak(),t0=Er(),uQ=yt().dashStyle,e0=Zr(),fQ=io(),cQ=to().makeEventData,l0=uu(),vQ=l0.freeMode,hQ=l0.rectMode,n0=l0.drawMode,xy=l0.openMode,by=l0.selectMode,uk=Wo(),fk=Hf(),pk=bh(),gk=Fo().clearOutline,yk=Go(),gy=yk.handleEllipse,dQ=yk.readPaths,pQ=gh().newShapes,gQ=H2(),yQ=hy().activateLastSelection,zh=ir(),mQ=zh.sorterAsc,mk=py(),r0=Jc(),qa=en().getFromId,xQ=sh(),bQ=Rh().redrawReglTraces,qh=lk(),qi=qh.MINSELECT,_Q=mk.filter,_y=mk.tester,wy=vh(),ck=wy.p2r,wQ=wy.axValue,MQ=wy.getTransform;function My(e){return e.subplot!==void 0}function TQ(e,r,t,n,a){var o=!My(n),i=vQ(a),l=hQ(a),u=xy(a),s=n0(a),f=by(a),v=a==="drawline",p=a==="drawcircle",b=v||p,m=n.gd,w=m._fullLayout,M=f&&w.newselection.mode==="immediate"&&o,y=w._zoomlayer,k=n.element.getBoundingClientRect(),S=n.plotinfo,x=MQ(S),T=r-k.left,d=t-k.top;w._calcInverseTransform(m);var _=zh.apply3DTransform(w._invTransform)(T,d);T=_[0],d=_[1];var g=w._invScaleX,c=w._invScaleY,A=T,h=d,R="M"+T+","+d,E=n.xaxes[0],D=n.yaxes[0],N=E._length,I=D._length,F=e.altKey&&!(n0(a)&&u),L,P,O,U,X,$,j;bk(e,m,n),i&&(L=_Q([[T,d]],qh.BENDPX));var Y=y.selectAll("path.select-outline-"+S.id).data([1]),q=s?w.newshape:w.newselection;s&&(n.hasText=q.label.text||q.label.texttemplate);var Q=s&&!u?q.fillcolor:"rgba(0,0,0,0)",ne=q.line.color||(o?e0.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");Y.enter().append("path").attr("class","select-outline select-outline-"+S.id).style({opacity:s?q.opacity/2:1,"stroke-dasharray":uQ(q.line.dash,q.line.width),"stroke-width":q.line.width+"px","shape-rendering":"crispEdges"}).call(e0.stroke,ne).call(e0.fill,Q).attr("fill-rule","evenodd").classed("cursor-move",!!s).attr("transform",x).attr("d",R+"Z");var K=y.append("path").attr("class","zoombox-corners").style({fill:e0.background,stroke:e0.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(s&&n.hasText){var ie=y.select(".label-temp");ie.empty()&&(ie=y.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ee=w._uid+qh.SELECTID,V=[],re=Oh(m,n.xaxes,n.yaxes,n.subplot);M&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(o){var te=E._id,ue=D._id;Ak(m,te,ue,re);for(var de=(m.layout||{}).selections||[],ke=[],Ae=!1,ve=0;ve=0){m._fullLayout._deactivateShape(m);return}if(!s){var de=w.clickmode;r0.done(ee).then(function(){if(r0.clear(ee),te===2){for(Y.remove(),X=0;X-1&&xk(ue,m,n.xaxes,n.yaxes,n.subplot,n,Y),de==="event"&&o0(m,void 0);fQ.click(m,ue,S.id)}).catch(zh.error)}},n.doneFn=function(){K.remove(),r0.done(ee).then(function(){r0.clear(ee),!M&&U&&n.selectionDefs&&(U.subtract=F,n.selectionDefs.push(U),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,O)),(M||s)&&a0(n,M),n.doneFnCompleted&&n.doneFnCompleted(V),f&&o0(m,j)}).catch(zh.error)}}function xk(e,r,t,n,a,o,i){var l=r._hoverdata,u=r._fullLayout,s=u.clickmode,f=s.indexOf("event")>-1,v=[],p,b,m,w,M,y,k,S,x,T;if(EQ(l)){bk(e,r,o),p=Oh(r,t,n,a);var d=LQ(l,p),_=d.pointNumbers.length>0;if(_?RQ(p,d):DQ(p)&&(k=hk(d))){for(i&&i.remove(),T=0;T=0}function CQ(e){return e._fullLayout._activeSelectionIndex>=0}function a0(e,r){var t=e.dragmode,n=e.plotinfo,a=e.gd;SQ(a)&&a._fullLayout._deactivateShape(a),CQ(a)&&a._fullLayout._deactivateSelection(a);var o=a._fullLayout,i=o._zoomlayer,l=n0(t),u=by(t);if(l||u){var s=i.selectAll(".select-outline-"+n.id);if(s&&a._fullLayout._outlining){var f;l&&(f=pQ(s,e)),f&&t0.call("_guiRelayout",a,{shapes:f});var v;u&&!My(e)&&(v=gQ(s,e)),v&&(a._fullLayout._noEmitSelectedAtStart=!0,t0.call("_guiRelayout",a,{selections:v}).then(function(){r&&yQ(a)})),a._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function vk(e){return e._id}function Oh(e,r,t,n){if(!e.calcdata)return[];var a=[],o=r.map(vk),i=t.map(vk),l,u,s;for(s=0;s0,o=a?n[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(o)>-1:!1}function RQ(e,r){var t=[],n,a,o,i;for(i=0;i0&&t.push(n);if(t.length===1&&(o=t[0]===r.searchInfo,o&&(a=r.searchInfo.cd[0].trace,a.selectedpoints.length===r.pointNumbers.length))){for(i=0;i1||(r+=n.selectedpoints.length,r>1)))return!1;return r===1}function i0(e,r,t){var n;for(n=0;n-1&&r;if(!i&&r){var te=dk(e,!0);if(te.length){var ue=te[0].xref,de=te[0].yref;if(ue&&de){var ke=kk(te),Ae=Sk([qa(e,ue,"x"),qa(e,de,"y")]);Ae(V,ke)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:H&&o0(e,V),p._reselect=!1}if(!i&&p._deselect){var ve=p._deselect;l=ve.xref,u=ve.yref,IQ(l,u,f)||Ak(e,l,u,n),H&&(V.points.length?o0(e,V):ky(e)),p._deselect=!1}return{eventData:V,selectionTesters:t}}function FQ(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";Lk.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var s0=pe((Hve,Rk)=>{"use strict";Rk.exports={axisRefDescription:function(e,r,t){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",r,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",r,"("+t+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",r,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",r,"and the",t,"of the domain of the","second",e,"axis."].join(" ")}}});var yu=pe((Gve,Fk)=>{"use strict";var Dk=Sy(),Pk=kn(),Bh=wn(),BQ=gt().templatedArray,Vve=s0();Fk.exports=BQ("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Pk({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:Dk.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Dk.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",Bh.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Bh.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Bh.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",Bh.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:Pk({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Uh=pe((Yve,Ik)=>{"use strict";Ik.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var zk=pe((Wve,Nk)=>{"use strict";Nk.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var $l=pe((Xve,Vk)=>{"use strict";var qk=ro().axisHoverFormat,UQ=ha().texttemplateAttrs,HQ=ha().hovertemplateAttrs,Ok=ja(),VQ=kn(),GQ=Ao().dash,YQ=Ao().pattern,WQ=yt(),XQ=Uh(),Hh=Mt().extendFlat,ZQ=zk();function Bk(e){return{valType:"any",dflt:0,editType:"calc"}}function Uk(e){return{valType:"any",editType:"calc"}}function Hk(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}Vk.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:Bk("x"),yperiod:Bk("y"),xperiod0:Uk("x0"),yperiod0:Uk("y0"),xperiodalignment:Hk("x"),yperiodalignment:Hk("y"),xhoverformat:qk("x"),yhoverformat:qk("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:UQ({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:HQ({},{keys:XQ.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Hh({},GQ,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:ZQ(!0),fillgradient:Hh({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:YQ,marker:Hh({symbol:{valType:"enumerated",values:WQ.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Hh({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},Ok("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},Ok("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:VQ({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var Cy=pe((Jve,Wk)=>{"use strict";var Gk=yu(),Yk=$l().line,JQ=Ao().dash,Vh=Mt().extendFlat,KQ=zn().overrideAll,QQ=gt().templatedArray,Zve=s0();Wk.exports=KQ(QQ("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Vh({},Gk.xref,{}),yref:Vh({},Gk.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:Yk.color,width:Vh({},Yk.width,{min:1,dflt:1}),dash:Vh({},JQ,{dflt:"dot"})}}),"arraydraw","from-root")});var Kk=pe((Kve,Jk)=>{"use strict";var Xk=ir(),Gh=Ct(),$Q=ei(),jQ=Cy(),Zk=Wo();Jk.exports=function(r,t){$Q(r,t,{name:"selections",handleItemDefaults:e$});for(var n=t.selections,a=0;a{"use strict";Qk.exports=function(r,t,n){n("newselection.mode");var a=n("newselection.line.width");a&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var u0=pe(($ve,rS)=>{"use strict";var r$=Er(),jk=ir(),eS=en();rS.exports=function(r){return function(n,a){var o=n[r];if(Array.isArray(o))for(var i=r$.subplotsRegistry.cartesian,l=i.idRegex,u=a._subplots,s=u.xaxis,f=u.yaxis,v=u.cartesian,p=a._has("cartesian"),b=0;b{"use strict";var tS=hy(),f0=Ek();nS.exports={moduleType:"component",name:"selections",layoutAttributes:Cy(),supplyLayoutDefaults:Kk(),supplyDrawNewSelectionDefaults:$k(),includeBasePlot:u0()("selections"),draw:tS.draw,drawOne:tS.drawOne,reselect:f0.reselect,prepSelect:f0.prepSelect,clearOutline:f0.clearOutline,clearSelectionsCache:f0.clearSelectionsCache,selectOnClick:f0.selectOnClick}});var TS=pe((ehe,MS)=>{"use strict";var Py=ot(),Oa=ir(),aS=Oa.numberFormat,t$=Sa(),n$=Zv(),Yh=Er(),hS=Oa.strTranslate,a$=Yn(),iS=Zr(),Zo=yt(),i$=io(),oS=Ct(),o$=Vo(),l$=ti(),dS=uu(),Wh=dS.selectingOrDrawing,s$=dS.freeMode,u$=qn().FROM_TL,f$=sh(),c$=Rh().redrawReglTraces,v$=ln(),Ly=en().getFromId,h$=mu().prepSelect,d$=mu().clearOutline,p$=mu().selectOnClick,Ey=iy(),Fy=wn(),lS=Fy.MINDRAG,Wn=Fy.MINZOOM,sS=!0;function g$(e,r,t,n,a,o,i,l){var u=e._fullLayout._zoomlayer,s=i+l==="nsew",f=(i+l).length===1,v,p,b,m,w,M,y,k,S,x,T,d,_,g,c,A,h,R,E,D,N,I,F;t+=r.yaxis._shift;function L(){if(v=r.xaxis,p=r.yaxis,S=v._length,x=p._length,y=v._offset,k=p._offset,b={},b[v._id]=v,m={},m[p._id]=p,i&&l)for(var ce=r.overlays,he=0;he=0){ye._fullLayout._deactivateShape(ye);return}var Ce=ye._fullLayout.clickmode;if(Dy(ye),ce===2&&!f&&Be(),s)Ce.indexOf("select")>-1&&p$(he,ye,w,M,r.id,U),Ce.indexOf("event")>-1&&i$.click(ye,he,r.id);else if(ce===1&&f){var ze=i?p:v,qe=i==="s"||l==="w"?0:1,$e=ze._name+".range["+qe+"]",We=y$(ze,qe),Ue="left",Ge="middle";if(ze.fixedrange)return;i?(Ge=i==="n"?"top":"bottom",ze.side==="right"&&(Ue="right")):l==="e"&&(Ue="right"),ye._context.showAxisRangeEntryBoxes&&Py.select(O).call(a$.makeEditable,{gd:ye,immediate:!0,background:ye._fullLayout.paper_bgcolor,text:String(We),fill:ze.tickfont?ze.tickfont.color:"#444",horizontalAlign:Ue,verticalAlign:Ge}).on("edit",function(_e){var De=ze.d2r(_e);De!==void 0&&Yh.call("_guiRelayout",ye,$e,De)})}}l$.init(U);var j,Y,q,Q,ne,K,ie,ee,V,re;function H(ce,he,ye){var Ce=O.getBoundingClientRect();j=he-Ce.left,Y=ye-Ce.top,e._fullLayout._calcInverseTransform(e);var ze=Oa.apply3DTransform(e._fullLayout._invTransform)(j,Y);j=ze[0],Y=ze[1],q={l:j,r:j,w:0,t:Y,b:Y,h:0},Q=e._hmpixcount?e._hmlumcount/e._hmpixcount:t$(e._fullLayout.plot_bgcolor).getLuminance(),ne="M0,0H"+S+"V"+x+"H0V0",K=!1,ie="xy",re=!1,ee=yS(u,Q,y,k,ne),V=mS(u,y,k)}function te(ce,he){if(e._transitioningWithDuration)return!1;var ye=Math.max(0,Math.min(S,I*ce+j)),Ce=Math.max(0,Math.min(x,F*he+Y)),ze=Math.abs(ye-j),qe=Math.abs(Ce-Y);q.l=Math.min(j,ye),q.r=Math.max(j,ye),q.t=Math.min(Y,Ce),q.b=Math.max(Y,Ce);function $e(){ie="",q.r=q.l,q.t=q.b,V.attr("d","M0,0Z")}if(T.isSubplotConstrained)ze>Wn||qe>Wn?(ie="xy",ze/S>qe/x?(qe=ze*x/S,Y>Ce?q.t=Y-qe:q.b=Y+qe):(ze=qe*S/x,j>ye?q.l=j-ze:q.r=j+ze),V.attr("d",Xh(q))):$e();else if(d.isSubplotConstrained)if(ze>Wn||qe>Wn){ie="xy";var We=Math.min(q.l/S,(x-q.b)/x),Ue=Math.max(q.r/S,(x-q.t)/x);q.l=We*S,q.r=Ue*S,q.b=(1-We)*x,q.t=(1-Ue)*x,V.attr("d",Xh(q))}else $e();else!g||qe0){var _e;if(d.isSubplotConstrained||!_&&g.length===1){for(_e=0;_e1&&($e.maxallowed!==void 0&&A===($e.range[0]<$e.range[1]?"e":"w")||$e.minallowed!==void 0&&A===($e.range[0]<$e.range[1]?"w":"e"))&&(ar=1,J=0),Ye?(se=De,ae=i||d.isSubplotConstrained?ce[1]:Re(We,se)):d.yaHash[We._id]?(se=De,ae=ce[1]*We._length/p._length):d.xaHash[We._id]?(se=_e,ae=_==="ew"?-ce[0]*We._length/v._length:Re(We,se,{e:"right",w:"left"}[_])):(se=Me(We,_e,De),ae=me(We,se)),se>1&&(We.maxallowed!==void 0&&h===(We.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function x$(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function yS(e,r,t,n,a){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",hS(t,n)).attr("d",a+"Z")}function mS(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:iS.background,stroke:iS.defaultLine,"stroke-width":1,opacity:0}).attr("transform",hS(r,t)).attr("d","M0,0Z")}function xS(e,r,t,n,a,o){e.attr("d",n+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),bS(e,r,a,o)}function bS(e,r,t,n){t||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function Dy(e){Py.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function _S(e){sS&&e.data&&e._context.showTips&&(Oa.notifier(Oa._(e,"Double-click to zoom back out"),"long"),sS=!1)}function b$(e,r){return"M"+(e.l-.5)+","+(r-Wn-.5)+"h-3v"+(2*Wn+1)+"h3ZM"+(e.r+.5)+","+(r-Wn-.5)+"h3v"+(2*Wn+1)+"h-3Z"}function _$(e,r){return"M"+(r-Wn-.5)+","+(e.t-.5)+"v-3h"+(2*Wn+1)+"v3ZM"+(r-Wn-.5)+","+(e.b+.5)+"v3h"+(2*Wn+1)+"v-3Z"}function Xh(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Wn)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function cS(e,r,t,n,a){for(var o=!1,i={},l={},u,s,f,v,p=(a||{}).xaHash,b=(a||{}).yaHash,m=0;m{"use strict";var w$=ot(),Zh=io(),M$=ti(),T$=Vo(),ii=TS().makeDragBox,cn=wn().DRAGGERSIZE;Jh.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){w$.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var n=Object.keys(t._plots||{}).sort(function(o,i){if((t._plots[o].mainplot&&!0)===(t._plots[i].mainplot&&!0)){var l=o.split("y"),u=i.split("y");return l[0]===u[0]?Number(l[1]||1)-Number(u[1]||1):Number(l[0]||1)-Number(u[0]||1)}return t._plots[o].mainplot?1:-1});n.forEach(function(o){var i=t._plots[o],l=i.xaxis,u=i.yaxis;if(!i.mainplot){var s=ii(r,i,l._offset,u._offset,l._length,u._length,"ns","ew");s.onmousemove=function(p){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===o&&r._fullLayout._plots[o]&&Zh.hover(r,p,o)},Zh.hover(r,p,o),r._fullLayout._lasthover=s,r._fullLayout._hoversubplot=o},s.onmouseout=function(p){r._dragging||(r._fullLayout._hoversubplot=null,M$.unhover(r,p))},r._context.showAxisDragHandles&&(ii(r,i,l._offset-cn,u._offset-cn,cn,cn,"n","w"),ii(r,i,l._offset+l._length,u._offset-cn,cn,cn,"n","e"),ii(r,i,l._offset-cn,u._offset+u._length,cn,cn,"s","w"),ii(r,i,l._offset+l._length,u._offset+u._length,cn,cn,"s","e"))}if(r._context.showAxisDragHandles){if(o===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=cn),ii(r,i,l._offset+l._length*.1,f,l._length*.8,cn,"","ew"),ii(r,i,l._offset,f,l._length*.1,cn,"","w"),ii(r,i,l._offset+l._length*.9,f,l._length*.1,cn,"","e")}if(o===u._mainSubplot){var v=u._mainLinePosition;u.side!=="right"&&(v-=cn),ii(r,i,v,u._offset+u._length*.1,cn,u._length*.8,"ns",""),ii(r,i,v,u._offset+u._length*.9,cn,u._length*.1,"s",""),ii(r,i,v,u._offset,cn,u._length*.1,"n","")}}});var a=t._hoverlayer.node();a.onmousemove=function(o){o.target=r._fullLayout._lasthover,Zh.hover(r,o,t._hoversubplot)},a.onclick=function(o){o.target=r._fullLayout._lasthover,Zh.click(r,o)},a.onmousedown=function(o){r._fullLayout._lasthover.onmousedown(o)},Jh.updateFx(r)}};Jh.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";T$(r._draggers,t)}});var SS=pe((the,kS)=>{"use strict";var AS=Er();kS.exports=function(r){for(var t=AS.layoutArrayContainers,n=AS.layoutArrayRegexes,a=r.split("[")[0],o,i,l=0;l{"use strict";var A$=wo(),Ny=Ic(),c0=Al(),k$=Dp().sorterAsc,zy=Er();v0.containerArrayMatch=SS();var S$=v0.isAddVal=function(r){return r==="add"||A$(r)},CS=v0.isRemoveVal=function(r){return r===null||r==="remove"};v0.applyContainerArrayChanges=function(r,t,n,a,o){var i=t.astr,l=zy.getComponentMethod(i,"supplyLayoutDefaults"),u=zy.getComponentMethod(i,"draw"),s=zy.getComponentMethod(i,"drawOne"),f=a.replot||a.recalc||l===Ny||u===Ny,v=r.layout,p=r._fullLayout;if(n[""]){Object.keys(n).length>1&&c0.warn("Full array edits are incompatible with other edits",i);var b=n[""][""];if(CS(b))t.set(null);else if(Array.isArray(b))t.set(b);else return c0.warn("Unrecognized full array edit value",i,b),!0;return f?!1:(l(v,p),u(r),!0)}var m=Object.keys(n).map(Number).sort(k$),w=t.get(),M=w||[],y=o(p,i).get(),k=[],S=-1,x=M.length,T,d,_,g,c,A,h,R;for(T=0;TM.length-(h?0:1)){c0.warn("index out of range",i,_);continue}if(A!==void 0)c.length>1&&c0.warn("Insertion & removal are incompatible with edits to the same index.",i,_),CS(A)?k.push(_):h?(A==="add"&&(A={}),M.splice(_,0,A),y&&y.splice(_,0,{})):c0.warn("Unrecognized full object edit value",i,_,A),S===-1&&(S=_);else for(d=0;d=0;T--)M.splice(k[T],1),y&&y.splice(k[T],1);if(M.length?w||t.set(M):t.set(null),f)return!1;if(l(v,p),s!==Ny){var E;if(S===-1)E=m;else{for(x=Math.max(M.length,x),E=[],T=0;T=S));T++)E.push(_);for(T=S;T{"use strict";var PS=rt(),ahe=wp(),FS=Er(),ua=ir(),h0=ln(),IS=en(),NS=Zr(),d0=IS.cleanId,C$=IS.getFromTrace,qy=FS.traceIs;oi.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&ua.log("Clearing previous rejected promises from queue."),e._promises=[]};oi.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(h0.subplotsRegistry.cartesian||{}).attrRegex,a=(h0.subplotsRegistry.polar||{}).attrRegex,o=(h0.subplotsRegistry.ternary||{}).attrRegex,i=(h0.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(M.x=1.02,M.xanchor="left"):M.x<-2&&(M.x=-.02,M.xanchor="right"),M.y>3?(M.y=1.02,M.yanchor="bottom"):M.y<-2&&(M.y=-.02,M.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),NS.clean(e),e.template&&e.template.layout&&oi.cleanLayout(e.template.layout),e};function xu(e,r){var t=e[r],n=r.charAt(0);t&&t!=="paper"&&(e[r]=d0(t,n,!0))}oi.cleanData=function(e){for(var r=0;r0)return e.substr(0,r)}oi.hasParent=function(e,r){for(var t=DS(r);t;){if(t in e)return!0;t=DS(t)}return!1};var R$=["x","y","z"];oi.clearAxisTypes=function(e,r,t){for(var n=0;n{"use strict";var jh=ot(),D$=rt(),P$=Yp(),ur=ir(),_t=ur.nestedProperty,Uy=_f(),Xn=pw(),Ba=Er(),o1=Vs(),Rr=ln(),Vn=Ct(),F$=v2(),I$=Ra(),Oy=yt(),N$=Zr(),z$=Iy().initInteractions,q$=Io(),O$=mu().clearOutline,HS=Tl().dfltConfig,Qh=ES(),Jt=zS(),ht=Rh(),Jo=zn(),B$=wn().AX_NAME_PATTERN,By=0,qS=5;function U$(e,r,t,n){var a;if(e=ur.getGraphDiv(e),Uy.init(e),ur.isPlainObject(r)){var o=r;r=o.data,t=o.layout,n=o.config,a=o.frames}var i=Uy.triggerHandler(e,"plotly_beforeplot",[r,t,n]);if(i===!1)return Promise.reject();!r&&!t&&!ur.isPlotDiv(e)&&ur.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(a)return tt.addFrames(e,a)}GS(e,n),t||(t={}),jh.select(e).classed("js-plotly-plot",!0),Oy.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var u=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Jt.cleanData(r),u?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||u)&&(e.layout=Jt.cleanLayout(t)),Rr.supplyDefaults(e);var s=e._fullLayout,f=s._has("cartesian");s._replotting=!0,(u||s._shouldCreateBgLayer)&&(fj(e),s._shouldCreateBgLayer&&delete s._shouldCreateBgLayer),Oy.initGradients(e),Oy.initPatterns(e),u&&Vn.saveShowSpikeInitial(e);var v=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;v&&Rr.doCalcdata(e);for(var p=0;p=e.data.length||a<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(a,n+1)>-1||a>=0&&r.indexOf(-e.data.length+a)>-1||a<0&&r.indexOf(e.data.length+a)>-1)throw new Error("each index in "+t+" must be unique.")}}function YS(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),r1(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&r1(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function W$(e,r,t){var n,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),n=0;n=0&&f=0&&f0&&typeof g.parts[h]!="string";)h--;var R=g.parts[h],E=g.parts[h-1]+"."+R,D=g.parts.slice(0,h).join("."),N=_t(e.layout,D).get(),I=_t(n,D).get(),F=g.get();if(c!==void 0){y[_]=c,k[_]=R==="reverse"?c:uo(F);var L=o1.getLayoutValObject(n,g.parts);if(L&&L.impliedEdits&&c!==null)for(var P in L.impliedEdits)S(ur.relativeAttr(_,P),L.impliedEdits[P]);if(["width","height"].indexOf(_)!==-1)if(c){S("autosize",null);var O=_==="height"?"width":"height";S(O,n[O])}else n[_]=e._initialAutoSize[_];else if(_==="autosize")S("width",c?null:n.width),S("height",c?null:n.height);else if(E.match(eC))d(E),_t(n,D+"._inputRange").set(null);else if(E.match(rC)){d(E),_t(n,D+"._inputRange").set(null);var U=_t(n,D).get();U._inputDomain&&(U._input.domain=U._inputDomain.slice())}else E.match(K$)&&_t(n,D+"._inputDomain").set(null);if(R==="type"){T=N;var X=I.type==="linear"&&c==="log",$=I.type==="log"&&c==="linear";if(X||$){if(!T||!T.range)S(D+".autorange",!0);else if(I.autorange)X&&(T.range=T.range[1]>T.range[0]?[1,2]:[2,1]);else{var j=T.range[0],Y=T.range[1];X?(j<=0&&Y<=0&&S(D+".autorange",!0),j<=0?j=Y/1e6:Y<=0&&(Y=j/1e6),S(D+".range[0]",Math.log(j)/Math.LN10),S(D+".range[1]",Math.log(Y)/Math.LN10)):(S(D+".range[0]",Math.pow(10,j)),S(D+".range[1]",Math.pow(10,Y)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[g.parts[0]]&&g.parts[1]==="radialaxis"&&delete n[g.parts[0]]._subplot.viewInitial["radialaxis.range"],Ba.getComponentMethod("annotations","convertCoords")(e,I,c,S),Ba.getComponentMethod("images","convertCoords")(e,I,c,S)}else S(D+".autorange",!0),S(D+".range",null);_t(n,D+"._inputRange").set(null)}else if(R.match(B$)){var q=_t(n,_).get(),Q=(c||{}).type;(!Q||Q==="-")&&(Q="linear"),Ba.getComponentMethod("annotations","convertCoords")(e,q,Q,S),Ba.getComponentMethod("images","convertCoords")(e,q,Q,S)}var ne=Qh.containerArrayMatch(_);if(ne){f=ne.array,v=ne.index;var K=ne.property,ie=L||{editType:"calc"};v!==""&&K===""&&(Qh.isAddVal(c)?k[_]=null:Qh.isRemoveVal(c)?k[_]=(_t(t,f).get()||[])[v]:ur.warn("unrecognized full object value",r)),Jo.update(M,ie),s[f]||(s[f]={});var ee=s[f][v];ee||(ee=s[f][v]={}),ee[K]=c,delete r[_]}else R==="reverse"?(N.range?N.range.reverse():(S(D+".autorange",!0),N.range=[1,0]),I.autorange?M.calc=!0:M.plot=!0):(_==="dragmode"&&(c===!1&&F!==!1||c!==!1&&F===!1)||n._has("scatter-like")&&n._has("regl")&&_==="dragmode"&&(c==="lasso"||c==="select")&&!(F==="lasso"||F==="select")?M.plot=!0:L?Jo.update(M,L):M.calc=!0,g.set(c))}}for(f in s){var V=Qh.applyContainerArrayChanges(e,o(t,f),s[f],M,o);V||(M.plot=!0)}for(var re in x){T=Vn.getFromId(e,re);var H=T&&T._constraintGroup;if(H){M.calc=!0;for(var te in H)x[te]||(Vn.getFromId(e,te)._constraintShrinkable=!0)}}(nC(e)||r.height||r.width)&&(M.plot=!0);var ue=n.shapes;for(v=0;v1;)if(n.pop(),t=_t(r,n.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function j$(e,r){for(var t=0;t=a.length?a[0]:a[s]:a}function l(s){return Array.isArray(o)?s>=o.length?o[0]:o[s]:o}function u(s,f){var v=0;return function(){if(s&&++v===f)return s()}}return new Promise(function(s,f){function v(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var R=n._frameQueue.pop();R.onInterrupt&&R.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function p(R){if(R.length!==0){for(var E=0;En._timeToNext&&m()};R()}var M=0;function y(R){return Array.isArray(a)?M>=a.length?R.transitionOpts=a[M]:R.transitionOpts=a[0]:R.transitionOpts=a,M++,R}var k,S,x=[],T=r==null,d=Array.isArray(r),_=!T&&!d&&ur.isPlainObject(r);if(_)x.push({type:"object",data:y(ur.extendFlat({},r))});else if(T||["string","number"].indexOf(typeof r)!==-1)for(k=0;k0&&AA)&&h.push(S);x=h}}x.length>0?p(x):(e.emit("plotly_animated"),s())})}function oj(e,r,t){if(e=ur.getGraphDiv(e),r==null)return Promise.resolve();if(!ur.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,a,o,i,l=e._transitionData._frames,u=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var s=l.length+r.length*2,f=[],v={};for(n=r.length-1;n>=0;n--)if(ur.isPlainObject(r[n])){var p=r[n].name,b=(u[p]||v[p]||{}).name,m=r[n].name,w=u[b]||v[b];b&&m&&typeof m=="number"&&w&&Byg.index?-1:_.index=0;n--){if(a=f[n].frame,typeof a.name=="number"&&ur.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;u[a.name="frame "+e._transitionData._counter++];);if(u[a.name]){for(o=0;o=0;t--)n=r[t],o.push({type:"delete",index:n}),i.unshift({type:"insert",index:n,value:a[n]});var l=Rr.modifyFrames,u=Rr.modifyFrames,s=[e,i],f=[e,o];return Xn&&Xn.add(e,l,s,u,f),Rr.modifyFrames(e,o)}function sj(e){e=ur.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return Rr.cleanPlot([],{},t,r),Rr.purge(e),Uy.purge(e),r._container&&r._container.remove(),delete e._context,e}function uj(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!ur.equalDomRects(t,r._lastBBox)){var n=r._invTransform=ur.inverseTransformMatrix(ur.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),r._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),r._lastBBox=t}}function fj(e){var r=jh.select(e),t=e._fullLayout;if(t._calcInverseTransform=uj,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var n={};jh.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),t._uid=ur.randstr(n)}t._paperdiv.selectAll(".main-svg").attr(q$.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var a=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=a.append("g").classed("imagelayer",!0),t._shapeLowerLayer=a.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var o=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=o.append("g").classed("imagelayer",!0),t._shapeUpperLayer=o.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}tt.animate=ij;tt.addFrames=oj;tt.deleteFrames=lj;tt.addTraces=KS;tt.deleteTraces=QS;tt.extendTraces=ZS;tt.moveTraces=Hy;tt.prependTraces=JS;tt.newPlot=Y$;tt._doPlot=U$;tt.purge=sj;tt.react=tj;tt.redraw=G$;tt.relayout=p0;tt.restyle=t1;tt.setPlotConfig=H$;tt.update=a1;tt._guiRelayout=Gy(p0);tt._guiRestyle=Gy(t1);tt._guiUpdate=Gy(a1);tt._storeDirectGUIEdit=J$});var jl=pe(Oi=>{"use strict";var cj=Er();Oi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Oi.getRedrawFunc=function(e){return function(){cj.getComponentMethod("colorbar","draw")(e)}};Oi.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Oi.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var aC=window.URL||window.webkitURL;Oi.createObjectURL=function(e){return aC.createObjectURL(e)};Oi.revokeObjectURL=function(e){return aC.revokeObjectURL(e)};Oi.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=vj(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Oi.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function vj(e){for(var r=e.length,t=new ArrayBuffer(r),n=new Uint8Array(t),a=0;a{"use strict";var Xy=ot(),she=ir(),hj=yt(),dj=Zr(),uhe=Io(),Wy=/"/g,y0="TOBESTRIPPED",pj=new RegExp('("'+y0+")|("+y0+'")',"g");function gj(e){var r=Xy.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,function(n){return n==="<"?"<":n==="&rt;"?">":n.indexOf("<")!==-1||n.indexOf(">")!==-1?"":r.html(n).text()});return r.remove(),t}function yj(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}iC.exports=function(r,t,n){var a=r._fullLayout,o=a._paper,i=a._toppaper,l=a.width,u=a.height,s;o.insert("rect",":first-child").call(hj.setRect,0,0,l,u).call(dj.fill,a.paper_bgcolor);var f=a._basePlotModules||[];for(s=0;s{"use strict";var mj=ir(),xj=tv().EventEmitter,m0=jl();function bj(e){var r=e.emitter||new xj,t=new Promise(function(n,a){var o=window.Image,i=e.svg,l=e.format||"png",u=e.canvas,s=e.scale||1,f=e.width||300,v=e.height||150,p=s*f,b=s*v,m=u.getContext("2d",{willReadFrequently:!0}),w=new o,M,y;l==="svg"||mj.isSafari()?y=m0.encodeSVG(i):(M=m0.createBlob(i,"svg"),y=m0.createObjectURL(M)),u.width=p,u.height=b,w.onload=function(){var k;switch(M=null,m0.revokeObjectURL(y),l!=="svg"&&m.drawImage(w,0,0,p,b),l){case"jpeg":k=u.toDataURL("image/jpeg");break;case"png":k=u.toDataURL("image/png");break;case"webp":k=u.toDataURL("image/webp");break;case"svg":k=y;break;default:var S="Image format is not jpeg, png, svg or webp.";if(a(new Error(S)),!e.promise)return r.emit("error",S)}n(k),e.promise||r.emit("success",k)},w.onerror=function(k){if(M=null,m0.revokeObjectURL(y),a(k),!e.promise)return r.emit("error",k)},w.src=y});return e.promise?t:r}oC.exports=bj});var Jy=pe((vhe,uC)=>{"use strict";var lC=rt(),sC=Yy(),_j=ln(),Bi=ir(),x0=jl(),wj=s1(),Mj=u1(),Tj=mc().version,Zy={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Aj(e,r){r=r||{};var t,n,a,o;Bi.isPlainObject(e)?(t=e.data||[],n=e.layout||{},a=e.config||{},o={}):(e=Bi.getGraphDiv(e),t=Bi.extendDeep([],e.data),n=Bi.extendDeep({},e.layout),a=e._context,o=e._fullLayout||{});function i(d){return!(d in r)||Bi.validate(r[d],Zy[d])}if(!i("width")&&r.width!==null||!i("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!i("format"))throw new Error("Export format is not "+Bi.join2(Zy.format.values,", "," or ")+".");var l={};function u(d,_){return Bi.coerce(r,l,Zy,d,_)}var s=u("format"),f=u("width"),v=u("height"),p=u("scale"),b=u("setBackground"),m=u("imageDataOnly"),w=document.createElement("div");w.style.position="absolute",w.style.left="-5000px",document.body.appendChild(w);var M=Bi.extendFlat({},n);f?M.width=f:r.width===null&&lC(o.width)&&(M.width=o.width),v?M.height=v:r.height===null&&lC(o.height)&&(M.height=o.height);var y=Bi.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:b}),k=x0.getRedrawFunc(w);function S(){return new Promise(function(d){setTimeout(d,x0.getDelay(w._fullLayout))})}function x(){return new Promise(function(d,_){var g=wj(w,s,p),c=w._fullLayout.width,A=w._fullLayout.height;function h(){sC.purge(w),document.body.removeChild(w)}if(s==="full-json"){var R=_j.graphJson(w,!1,"keepdata","object",!0,!0);return R.version=Tj,R=JSON.stringify(R),h(),d(m?R:x0.encodeJSON(R))}if(h(),s==="svg")return d(m?g:x0.encodeSVG(g));var E=document.createElement("canvas");E.id=Bi.randstr(),Mj({format:s,width:c,height:A,scale:p,canvas:E,svg:g,promise:!0}).then(d).catch(_)})}function T(d){return m?d.replace(x0.IMAGE_URL_PREFIX,""):d}return new Promise(function(d,_){sC.newPlot(w,t,M,y).then(k).then(S).then(x).then(function(g){d(T(g))}).catch(function(g){_(g)})})}uC.exports=Aj});var vC=pe((hhe,cC)=>{"use strict";var Ua=ir(),kj=ln(),Sj=Vs(),Cj=Tl().dfltConfig,li=Ua.isPlainObject,rs=Array.isArray,Ky=Ua.isArrayOrTypedArray;cC.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var n=Sj.get(),a=[],o={_context:Ua.extendFlat({},Cj)},i,l;rs(r)?(o.data=Ua.extendDeep([],r),i=r):(o.data=[],i=[],a.push(vn("array","data"))),li(t)?(o.layout=Ua.extendDeep({},t),l=t):(o.layout={},l={},arguments.length>1&&a.push(vn("object","layout"))),kj.supplyDefaults(o);for(var u=o._fullData,s=i.length,f=0;fv.length&&n.push(vn("unused",a,s.concat(v.length)));var y=v.length,k=Array.isArray(M);k&&(y=Math.min(y,M.length));var S,x,T,d,_;if(p.dimensions===2)for(x=0;xv[x].length&&n.push(vn("unused",a,s.concat(x,v[x].length)));var g=v[x].length;for(S=0;S<(k?Math.min(g,M[x].length):g);S++)T=k?M[x][S]:M,d=f[x][S],_=v[x][S],Ua.validate(d,T)?_!==d&&_!==+d&&n.push(vn("dynamic",a,s.concat(x,S),d,_)):n.push(vn("value",a,s.concat(x,S),d))}else n.push(vn("array",a,s.concat(x),f[x]));else for(x=0;x{"use strict";var Ij=ir(),c1=jl();function Nj(e,r,t){var n=document.createElement("a"),a="download"in n,o=new Promise(function(i,l){var u,s;if(a)return u=c1.createBlob(e,t),s=c1.createObjectURL(u),n.href=s,n.download=r,document.body.appendChild(n),n.click(),document.body.removeChild(n),c1.revokeObjectURL(s),u=null,i(r);if(Ij.isSafari()){var f=t==="svg"?",":";base64,";return c1.octetStream(f+encodeURIComponent(e)),i(r)}l(new Error("download error"))});return o}hC.exports=Nj});var Qy=pe((ghe,gC)=>{"use strict";var pC=ir(),zj=Jy(),qj=dC(),phe=jl();function Oj(e,r){var t;return pC.isPlainObject(e)||(t=pC.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(n,a){t&&t._snapshotInProgress&&a(new Error("Snapshotting already in progress.")),t&&(t._snapshotInProgress=!0);var o=zj(e,r),i=r.filename||e.fn||"newplot";i+="."+r.format.replace("-","."),o.then(function(l){return t&&(t._snapshotInProgress=!1),qj(l,i,r.format)}).then(function(l){n(l)}).catch(function(l){t&&(t._snapshotInProgress=!1),a(l)})})}gC.exports=Oj});var _C=pe($y=>{"use strict";var fa=ir(),ca=fa.isPlainObject,yC=Vs(),mC=ln(),Bj=Sn(),xC=gt(),bC=Tl().dfltConfig;$y.makeTemplate=function(e){e=fa.isPlainObject(e)?e:fa.getGraphDiv(e),e=fa.extendDeep({_context:bC},{data:e.data,layout:e.layout}),mC.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var n={data:{},layout:{}};r.forEach(function(b){var m={};b0(b,m,Hj.bind(null,b));var w=fa.coerce(b,{},Bj,"type"),M=n.data[w];M||(M=n.data[w]=[]),M.push(m)}),b0(t,n.layout,Uj.bind(null,t)),delete n.layout.template;var a=t.template;if(ca(a)){var o=a.layout,i,l,u,s,f,v;ca(o)&&v1(o,n.layout);var p=a.data;if(ca(p)){for(l in n.data)if(u=p[l],Array.isArray(u)){for(f=n.data[l],v=f.length,s=u.length,i=0;iy?i.push({code:"unused",traceType:b,templateCount:M,dataCount:y}):y>M&&i.push({code:"reused",traceType:b,templateCount:M,dataCount:y})}}function k(S,x){for(var T in S)if(T.charAt(0)!=="_"){var d=S[T],_=Ha(S,T,x);ca(d)?(Array.isArray(S)&&d._template===!1&&d.templateitemname&&i.push({code:"missing",path:_,templateitemname:d.templateitemname}),k(d,_)):Array.isArray(d)&&Vj(d)&&k(d,_)}}if(k({data:u,layout:l},""),i.length)return i.map(Gj)};function Vj(e){for(var r=0;r{"use strict";var tn=Yy();St._doPlot=tn._doPlot;St.newPlot=tn.newPlot;St.restyle=tn.restyle;St.relayout=tn.relayout;St.redraw=tn.redraw;St.update=tn.update;St._guiRestyle=tn._guiRestyle;St._guiRelayout=tn._guiRelayout;St._guiUpdate=tn._guiUpdate;St._storeDirectGUIEdit=tn._storeDirectGUIEdit;St.react=tn.react;St.extendTraces=tn.extendTraces;St.prependTraces=tn.prependTraces;St.addTraces=tn.addTraces;St.deleteTraces=tn.deleteTraces;St.moveTraces=tn.moveTraces;St.purge=tn.purge;St.addFrames=tn.addFrames;St.deleteFrames=tn.deleteFrames;St.animate=tn.animate;St.setPlotConfig=tn.setPlotConfig;var Yj=vf().getGraphDiv,Wj=Th().eraseActiveShape;St.deleteActiveShape=function(e){return Wj(Yj(e))};St.toImage=Jy();St.validate=vC();St.downloadImage=Qy();var wC=_C();St.makeTemplate=wC.makeTemplate;St.validateTemplate=wC.validateTemplate});var AC=pe((xhe,TC)=>{"use strict";var jy=ir(),Xj=Er();TC.exports=function(r,t,n,a){var o=a("x"),i=a("y"),l,u=Xj.getComponentMethod("calendars","handleTraceDefaults");if(u(r,t,["x","y"],n),o){var s=jy.minRowLength(o);i?l=Math.min(s,jy.minRowLength(i)):(l=s,a("y0"),a("dy"))}else{if(!i)return 0;l=jy.minRowLength(i),a("x0"),a("dx")}return t._length=l,l}});var EC=pe((bhe,CC)=>{"use strict";var kC=ir().dateTick0,Zj=an(),Jj=Zj.ONEWEEK;function SC(e,r){return e%Jj===0?kC(r,1):kC(r,0)}CC.exports=function(r,t,n,a,o){if(o||(o={x:!0,y:!0}),o.x){var i=a("xperiod");i&&(a("xperiod0",SC(i,t.xcalendar)),a("xperiodalignment"))}if(o.y){var l=a("yperiod");l&&(a("yperiod0",SC(l,t.ycalendar)),a("yperiodalignment"))}}});var DC=pe((_he,RC)=>{"use strict";var LC=["orientation","groupnorm","stackgaps"];RC.exports=function(r,t,n,a){var o=n._scatterStackOpts,i=a("stackgroup");if(i){var l=t.xaxis+t.yaxis,u=o[l];u||(u=o[l]={});var s=u[i],f=!1;s?s.traces.push(t):(s=u[i]={traceIndices:[],traces:[t]},f=!0);for(var v={orientation:t.x&&!t.y?"h":"v"},p=0;p{"use strict";var PC=Zr(),FC=Si().hasColorscale,IC=Ei(),Kj=ia();NC.exports=function(r,t,n,a,o,i){var l=Kj.isBubble(r),u=(r.line||{}).color,s;if(i=i||{},u&&(n=u),o("marker.symbol"),o("marker.opacity",l?.7:1),o("marker.size"),i.noAngle||(o("marker.angle"),i.noAngleRef||o("marker.angleref"),i.noStandOff||o("marker.standoff")),o("marker.color",n),FC(r,"marker")&&IC(r,t,a,o,{prefix:"marker.",cLetter:"c"}),i.noSelect||(o("selected.marker.color"),o("unselected.marker.color"),o("selected.marker.size"),o("unselected.marker.size")),i.noLine||(u&&!Array.isArray(u)&&t.marker.color!==u?s=u:l?s=PC.background:s=PC.defaultLine,o("marker.line.color",s),FC(r,"marker.line")&&IC(r,t,a,o,{prefix:"marker.line.",cLetter:"c"}),o("marker.line.width",l?1:0)),l&&(o("marker.sizeref"),o("marker.sizemin"),o("marker.sizemode")),i.gradient){var f=o("marker.gradient.type");f!=="none"&&o("marker.gradient.color")}}});var rm=pe((Mhe,zC)=>{"use strict";var Qj=ir().isArrayOrTypedArray,$j=Si().hasColorscale,jj=Ei();zC.exports=function(r,t,n,a,o,i){i||(i={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),o("line.color",n),$j(r,"line"))jj(r,t,a,o,{prefix:"line.",cLetter:"c"});else{var u=(Qj(l)?!1:l)||n;o("line.color",u)}o("line.width"),i.noDash||o("line.dash"),i.backoff&&o("line.backoff")}});var OC=pe((The,qC)=>{"use strict";qC.exports=function(r,t,n){var a=n("line.shape");a==="spline"&&n("line.smoothing")}});var tm=pe((Ahe,BC)=>{"use strict";var eee=ir();BC.exports=function(e,r,t,n,a){a=a||{},n("textposition"),eee.coerceFont(n,"textfont",a.font||t.font,a),a.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var VC=pe((khe,HC)=>{"use strict";var d1=Zr(),UC=ir().isArrayOrTypedArray;function ree(e){for(var r=d1.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var GC=ir(),tee=Er(),nee=$l(),aee=Uh(),bu=ia(),iee=AC(),oee=EC(),lee=DC(),see=em(),uee=rm(),YC=OC(),fee=tm(),cee=VC(),vee=ir().coercePattern;WC.exports=function(r,t,n,a){function o(b,m){return GC.coerce(r,t,nee,b,m)}var i=iee(r,t,a,o);if(i||(t.visible=!1),!!t.visible){oee(r,t,a,o),o("xhoverformat"),o("yhoverformat"),o("zorder");var l=lee(r,t,a,o);a.scattermode==="group"&&t.orientation===void 0&&o("orientation","v");var u=!l&&i{"use strict";var hee=Wf().getAxisGroup;ZC.exports=function(r,t,n,a,o){var i=t.orientation,l=t[{v:"x",h:"y"}[i]+"axis"],u=hee(n,l)+i,s=n._alignmentOpts||{},f=a("alignmentgroup"),v=s[u];v||(v=s[u]={});var p=v[f];p?p.traces.push(t):p=v[f]={traces:[t],alignmentIndex:Object.keys(v).length,offsetGroups:{}};var b=a("offsetgroup")||"",m=p.offsetGroups,w=m[b];t._offsetIndex=0,(o!=="group"||b)&&(w||(w=m[b]={offsetIndex:Object.keys(m).length}),t._offsetIndex=w.offsetIndex)}});var QC=pe((Ehe,KC)=>{"use strict";var dee=ir(),pee=JC(),gee=$l();KC.exports=function(r,t){var n,a,o,i=t.scattermode;function l(p){return dee.coerce(a._input,a,gee,p)}if(t.scattermode==="group")for(o=0;o=0;f--){var v=r[f];if(v.type==="scatter"&&v.xaxis===u.xaxis&&v.yaxis===u.yaxis){v.opacity=void 0;break}}}}}});var jC=pe((Lhe,$C)=>{"use strict";var yee=ir(),mee=lv();$C.exports=function(e,r){function t(a,o){return yee.coerce(e,r,mee,a,o)}var n=r.barmode==="group";r.scattermode==="group"&&t("scattergap",n?r.bargap:.2)}});var tE=pe((Rhe,rE)=>{"use strict";var xee=rt(),eE=ir(),bee=eE.dateTime2ms,p1=eE.incrementMonth,_ee=an(),wee=_ee.ONEAVGMONTH;rE.exports=function(r,t,n,a){if(t.type!=="date")return{vals:a};var o=r[n+"periodalignment"];if(!o)return{vals:a};var i=r[n+"period"],l;if(xee(i)){if(i=+i,i<=0)return{vals:a}}else if(typeof i=="string"&&i.charAt(0)==="M"){var u=+i.substring(1);if(u>0&&Math.round(u)===u)l=u;else return{vals:a}}for(var s=t.calendar,f=o==="start",v=o==="end",p=r[n+"period0"],b=bee(p,s)||0,m=[],w=[],M=[],y=a.length,k=0;kS;)d=p1(d,-l,s);for(;d<=S;)d=p1(d,l,s);T=p1(d,-l,s)}else{for(x=Math.round((S-b)/i),d=b+x*i;d>S;)d-=i;for(;d<=S;)d+=i;T=d-i}m[k]=f?T:v?d:(T+d)/2,w[k]=T,M[k]=d}return{vals:m,starts:w,ends:M}}});var im=pe((Dhe,aE)=>{"use strict";var nm=Si().hasColorscale,am=zo(),nE=ia();aE.exports=function(r,t){nE.hasLines(t)&&nm(t,"line")&&am(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),nE.hasMarkers(t)&&(nm(t,"marker")&&am(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),nm(t,"marker.line")&&am(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var g1=pe((Phe,iE)=>{"use strict";var Nt=ir();iE.exports=function(r,t){for(var n=0;n{"use strict";var oE=ir();lE.exports=function(r,t){oE.isArrayOrTypedArray(t.selectedpoints)&&oE.tagSelected(r,t)}});var fm=pe((Ihe,pE)=>{"use strict";var uE=rt(),lm=ir(),_0=Ct(),fE=tE(),om=an().BADNUM,sm=ia(),Mee=im(),Tee=g1(),Aee=sE();function kee(e,r){var t=e._fullLayout,n=r._xA=_0.getFromId(e,r.xaxis||"x","x"),a=r._yA=_0.getFromId(e,r.yaxis||"y","y"),o=n.makeCalcdata(r,"x"),i=a.makeCalcdata(r,"y"),l=fE(r,n,"x",o),u=fE(r,a,"y",i),s=l.vals,f=u.vals,v=r._length,p=new Array(v),b=r.ids,m=um(r,t,n,a),w=!1,M,y,k,S,x,T;hE(t,r);var d="x",_="y",g;if(m)lm.pushUnique(m.traceIndices,r.index),M=m.orientation==="v",M?(_="s",g="x"):(d="s",g="y"),x=m.stackgaps==="interpolate";else{var c=vE(r,v);cE(e,r,n,a,s,f,c)}var A=!!r.xperiodalignment,h=!!r.yperiodalignment;for(y=0;yy&&p[S].gap;)S--;for(T=p[S].s,k=p.length-1;k>S;k--)p[k].s=T;for(;y{"use strict";gE.exports=y1;var See=ir().distinctVals;function y1(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,n=r.posAxis._id.charAt(0),a=[],o=0;o{"use strict";var Va=rt(),Ko=ir().isArrayOrTypedArray,_u=an().BADNUM,Cee=Er(),w0=Ct(),Eee=Wf().getAxisGroup,m1=yE();function Lee(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,o=e._fullData,i=e.calcdata,l=[],u=[],s=0;su+i||!Va(l))}for(var f=0;f{"use strict";var ME=fm(),TE=wE().setGroupPositions;function Hee(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,o=e._fullData,i=e.calcdata,l=[],u=[],s=0;sc[f]&&f{"use strict";var Gee=yt(),LE=an(),M0=LE.BADNUM,RE=LE.LOG_CLIP,SE=RE+.5,CE=RE-.5,x1=ir(),Yee=x1.segmentsIntersect,EE=x1.constrain,gm=Uh();DE.exports=function(r,t){var n=t.trace||{},a=t.xaxis,o=t.yaxis,i=a.type==="log",l=o.type==="log",u=a._length,s=o._length,f=t.backoff,v=n.marker,p=t.connectGaps,b=t.baseTolerance,m=t.shape,w=m==="linear",M=n.fill&&n.fill!=="none",y=[],k=gm.minTolerance,S=r.length,x=new Array(S),T=0,d,_,g,c,A,h,R,E,D,N,I,F,L,P,O,U;function X(Ge){var _e=r[Ge];if(!_e)return!1;var De=t.linearized?a.l2p(_e.x):a.c2p(_e.x),Ke=t.linearized?o.l2p(_e.y):o.c2p(_e.y);if(De===M0){if(i&&(De=a.c2p(_e.x,!0)),De===M0)return!1;l&&Ke===M0&&(De*=Math.abs(a._m*s*(a._m>0?SE:CE)/(o._m*u*(o._m>0?SE:CE)))),De*=1e3}if(Ke===M0){if(l&&(Ke=o.c2p(_e.y,!0)),Ke===M0)return!1;Ke*=1e3}return[De,Ke]}function $(Ge,_e,De,Ke){var Ye=De-Ge,ar=Ke-_e,se=.5-Ge,J=.5-_e,ae=Ye*Ye+ar*ar,Le=Ye*se+ar*J;if(Le>0&&Le1||Math.abs(se.y-De[0][1])>1)&&(se=[se.x,se.y],Ke&&Q(se,Ge)ie||Ge[1]V)return[EE(Ge[0],K,ie),EE(Ge[1],ee,V)]}function Ee(Ge,_e){if(Ge[0]===_e[0]&&(Ge[0]===K||Ge[0]===ie)||Ge[1]===_e[1]&&(Ge[1]===ee||Ge[1]===V))return!0}function Pe(Ge,_e){var De=[],Ke=Te(Ge),Ye=Te(_e);return Ke&&Ye&&Ee(Ke,Ye)||(Ke&&De.push(Ke),Ye&&De.push(Ye)),De}function Se(Ge,_e,De){return function(Ke,Ye){var ar=Te(Ke),se=Te(Ye),J=[];if(ar&&se&&Ee(ar,se))return J;ar&&J.push(ar),se&&J.push(se);var ae=2*x1.constrain((Ke[Ge]+Ye[Ge])/2,_e,De)-((ar||Ke)[Ge]+(se||Ye)[Ge]);if(ae){var Le;ar&&se?Le=ae>0==ar[Ge]>se[Ge]?ar:se:Le=ar||se,Le[Ge]+=ae}return J}}var Ne;m==="linear"||m==="spline"?Ne=ve:m==="hv"||m==="vh"?Ne=Pe:m==="hvh"?Ne=Se(0,K,ie):m==="vhv"&&(Ne=Se(1,ee,V));function Be(Ge,_e){var De=_e[0]-Ge[0],Ke=(_e[1]-Ge[1])/De,Ye=(Ge[1]*_e[0]-_e[1]*Ge[0])/De;return Ye>0?[Ke>0?K:ie,V]:[Ke>0?ie:K,ee]}function ge(Ge){var _e=Ge[0],De=Ge[1],Ke=_e===x[T-1][0],Ye=De===x[T-1][1];if(!(Ke&&Ye))if(T>1){var ar=_e===x[T-2][0],se=De===x[T-2][1];Ke&&(_e===K||_e===ie)&&ar?se?T--:x[T-1]=Ge:Ye&&(De===ee||De===V)&&se?ar?T--:x[T-1]=Ge:x[T++]=Ge}else x[T++]=Ge}function we(Ge){x[T-1][0]!==Ge[0]&&x[T-1][1]!==Ge[1]&&ge([ue,de]),ge(Ge),ke=null,ue=de=0}var Me=x1.isArrayOrTypedArray(v);function me(Ge){if(Ge&&f&&(Ge.i=d,Ge.d=r,Ge.trace=n,Ge.marker=Me?v[Ge.i]:v,Ge.backoff=f),j=Ge[0]/u,Y=Ge[1]/s,H=Ge[0]ie?ie:0,te=Ge[1]V?V:0,H||te){if(!T)x[T++]=[H||Ge[0],te||Ge[1]];else if(ke){var _e=Ne(ke,Ge);_e.length>1&&(we(_e[0]),x[T++]=_e[1])}else Ae=Ne(x[T-1],Ge)[0],x[T++]=Ae;var De=x[T-1];H&&te&&(De[0]!==H||De[1]!==te)?(ke&&(ue!==H&&de!==te?ge(ue&&de?Be(ke,Ge):[ue||H,de||te]):ue&&de&&ge([ue,de])),ge([H,te])):ue-H&&de-te&&ge([H||ue,te||de]),ke=Ge,ue=H,de=te}else ke&&we(Ne(ke,Ge)[0]),x[T++]=Ge}for(d=0;dq(h,Re))break;g=h,L=D[0]*E[0]+D[1]*E[1],L>I?(I=L,c=h,R=!1):L=r.length||!h)break;me(h),_=h}}ke&&ge([ue||ke[0],de||ke[1]]),y.push(x.slice(0,T))}var ce=m.slice(m.length-1);if(f&&ce!=="h"&&ce!=="v"){for(var he=!1,ye=-1,Ce=[],ze=0;ze{"use strict";var FE={tonextx:1,tonexty:1,tonext:1};IE.exports=function(r,t,n){var a,o,i,l,u,s={},f=!1,v=-1,p=0,b=-1;for(o=0;o=0?u=b:(u=b=p,p++),u{"use strict";var si=ot(),Wee=Er(),T0=ir(),Mu=T0.ensureSingle,qE=T0.identity,zt=yt(),Tu=ia(),Xee=PE(),Zee=NE(),b1=py().tester;OE.exports=function(r,t,n,a,o,i){var l,u,s=!o,f=!!o&&o.duration>0,v=Zee(r,t,n);if(l=a.selectAll("g.trace").data(v,function(b){return b[0].trace.uid}),l.enter().append("g").attr("class",function(b){return"trace scatter trace"+b[0].trace.uid}).style("stroke-miterlimit",2),l.order(),Jee(r,l,t),f){i&&(u=i());var p=si.transition().duration(o.duration).ease(o.easing).each("end",function(){u&&u()}).each("interrupt",function(){u&&u()});p.each(function(){a.selectAll("g.trace").each(function(b,m){zE(r,m,t,b,v,this,o)})})}else l.each(function(b,m){zE(r,m,t,b,v,this,o)});s&&l.exit().remove(),a.selectAll("path:not([d])").remove()};function Jee(e,r,t){r.each(function(n){var a=Mu(si.select(this),"g","fills");zt.setClipUrl(a,t.layerClipId,e);var o=n[0].trace,i=[];o._ownfill&&i.push("_ownFill"),o._nexttrace&&i.push("_nextFill");var l=a.selectAll("g").data(i,qE);l.enter().append("g"),l.exit().each(function(u){o[u]=null}).remove(),l.order().each(function(u){o[u]=Mu(si.select(this),"path","js-fill")})})}function zE(e,r,t,n,a,o,i){var l=e._context.staticPlot,u;Kee(e,r,t,n,a);var s=!!i&&i.duration>0;function f(Se){return s?Se.transition():Se}var v=t.xaxis,p=t.yaxis,b=n[0].trace,m=b.line,w=si.select(o),M=Mu(w,"g","errorbars"),y=Mu(w,"g","lines"),k=Mu(w,"g","points"),S=Mu(w,"g","text");if(Wee.getComponentMethod("errorbars","plot")(e,M,t,i),b.visible!==!0)return;f(w).style("opacity",b.opacity);var x,T,d=b.fill.charAt(b.fill.length-1);d!=="x"&&d!=="y"&&(d="");var _,g;d==="y"?(_=1,g=p.c2p(0,!0)):d==="x"&&(_=0,g=v.c2p(0,!0)),n[0][t.isRangePlot?"nodeRangePlot3":"node3"]=w;var c="",A=[],h=b._prevtrace,R=null,E=null;h&&(c=h._prevRevpath||"",T=h._nextFill,A=h._ownPolygons,R=h._fillsegments,E=h._fillElement);var D,N,I="",F="",L,P,O,U,X,$,j=[];b._polygons=[];var Y=[],q=[],Q=T0.noop;if(x=b._ownFill,Tu.hasLines(b)||b.fill!=="none"){T&&T.datum(n),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(L=zt.steps(m.shape),P=zt.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?L=P=function(Se){var Ne=Se[Se.length-1];return Se.length>1&&Se[0][0]===Ne[0]&&Se[0][1]===Ne[1]?zt.smoothclosed(Se.slice(1),m.smoothing):zt.smoothopen(Se,m.smoothing)}:L=P=function(Se){return"M"+Se.join("L")},O=function(Se){return P(Se.reverse())},q=Xee(n,{xaxis:v,yaxis:p,trace:b,connectGaps:b.connectgaps,baseTolerance:Math.max(m.width||1,3)/4,shape:m.shape,backoff:m.backoff,simplify:m.simplify,fill:b.fill}),Y=new Array(q.length);var ne=0;for(u=0;u=l[0]&&w.x<=l[1]&&w.y>=u[0]&&w.y<=u[1]}),p=Math.ceil(v.length/f),b=0;a.forEach(function(w,M){var y=w[0].trace;Tu.hasMarkers(y)&&y.marker.maxdisplayed>0&&M{"use strict";UE.exports={container:"marker",min:"cmin",max:"cmax"}});var GE=pe((Vhe,VE)=>{"use strict";var _1=Ct();VE.exports=function(r,t,n){var a={},o={_fullLayout:n},i=_1.getFromTrace(o,t,"x"),l=_1.getFromTrace(o,t,"y"),u=r.orig_x;u===void 0&&(u=r.x);var s=r.orig_y;return s===void 0&&(s=r.y),a.xLabel=_1.tickText(i,i.c2l(u),!0).text,a.yLabel=_1.tickText(l,l.c2l(s),!0).text,a}});var bm=pe((Ghe,YE)=>{"use strict";var ym=ot(),Au=yt(),Qee=Er();function $ee(e){var r=ym.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var n=ym.select(this),a=t.trace||t[0].trace;mm(n,a,e)}),r.selectAll("g.text").each(function(t){var n=ym.select(this),a=t.trace||t[0].trace;xm(n,a,e)}),r.selectAll("g.trace path.js-line").call(Au.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Au.fillGroupStyle,e,!1),Qee.getComponentMethod("errorbars","style")(r)}function mm(e,r,t){Au.pointStyle(e.selectAll("path.point"),r,t)}function xm(e,r,t){Au.textPointStyle(e.selectAll("text"),r,t)}function jee(e,r,t){var n=r[0].trace;n.selectedpoints?(Au.selectedPointStyle(t.selectAll("path.point"),n),Au.selectedTextStyle(t.selectAll("text"),n)):(mm(t,n,e),xm(t,n,e))}YE.exports={style:$ee,stylePoints:mm,styleText:xm,styleOnSelect:jee}});var XE=pe((Yhe,WE)=>{"use strict";var ku=Zr(),ere=ia();WE.exports=function(r,t){var n,a;if(r.mode==="lines")return n=r.line.color,n&&ku.opacity(n)?n:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var o=t.mcc||(r.marker||{}).color,i=t.mlcc||((r.marker||{}).line||{}).color;return a=o&&ku.opacity(o)?o:i&&ku.opacity(i)&&(t.mlw||((r.marker||{}).line||{}).width)?i:"",a?ku.opacity(a)<.3?ku.addOpacity(a,.3):a:(n=(r.line||{}).color,n&&ku.opacity(n)&&ere.hasLines(r)&&r.line.width?n:r.fillcolor)}});var KE=pe((Whe,JE)=>{"use strict";var w1=ir(),ZE=io(),rre=Er(),tre=XE(),_m=Zr(),nre=w1.fillText;JE.exports=function(r,t,n,a){var o=r.cd,i=o[0].trace,l=r.xa,u=r.ya,s=l.c2p(t),f=u.c2p(n),v=[s,f],p=i.hoveron||"",b=i.mode.indexOf("markers")!==-1?3:.5,m=!!i.xperiodalignment,w=!!i.yperiodalignment;if(p.indexOf("points")!==-1){var M=function(F){if(m){var L=l.c2p(F.xStart),P=l.c2p(F.xEnd);return s>=Math.min(L,P)&&s<=Math.max(L,P)?0:1/0}var O=Math.max(3,F.mrc||0),U=1-1/O,X=Math.abs(l.c2p(F.x)-s);return X=Math.min(L,P)&&f<=Math.max(L,P)?0:1/0}var O=Math.max(3,F.mrc||0),U=1-1/O,X=Math.abs(u.c2p(F.y)-f);return Xj!=V>=j&&(K=Q[q-1][0],ie=Q[q][0],V-ee&&(ne=K+(ie-K)*(j-ee)/(V-ee),O=Math.min(O,ne),U=Math.max(U,ne)));return O=Math.max(O,0),U=Math.min(U,l._length),{x0:O,x1:U,y0:j,y1:j}}if(p.indexOf("fills")!==-1&&i._fillElement){var D=R(i._fillElement)&&!R(i._fillExclusionElement);if(D){var N=E(i._polygons);N===null&&(N={x0:v[0],x1:v[0],y0:v[1],y1:v[1]});var I=_m.defaultLine;return _m.opacity(i.fillcolor)?I=i.fillcolor:_m.opacity((i.line||{}).color)&&(I=i.line.color),w1.extendFlat(r,{distance:r.maxHoverDistance,x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1,color:I,hovertemplate:!1}),delete r.index,i.text&&!w1.isArrayOrTypedArray(i.text)?r.text=String(i.text):r.text=i.name,[r]}}}});var jE=pe((Xhe,$E)=>{"use strict";var QE=ia();$E.exports=function(r,t){var n=r.cd,a=r.xaxis,o=r.yaxis,i=[],l=n[0].trace,u,s,f,v,p=!QE.hasMarkers(l)&&!QE.hasText(l);if(p)return[];if(t===!1)for(u=0;u{"use strict";eL.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var Mm=pe((Jhe,aL)=>{"use strict";var A0=Er().traceIs,wm=Wg();aL.exports=function(r,t,n,a){n("autotypenumbers",a.autotypenumbersDflt);var o=n("type",(a.splomStash||{}).type);o==="-"&&(are(t,a.data),t.type==="-"?t.type="linear":r.type=t.type)};function are(e,r){if(e.type==="-"){var t=e._id,n=t.charAt(0),a;t.indexOf("scene")!==-1&&(t=n);var o=ire(r,t,n);if(o){if(o.type==="histogram"&&n==={v:"y",h:"x"}[o.orientation||"v"]){e.type="linear";return}var i=n+"calendar",l=o[i],u={noMultiCategory:!A0(o,"cartesian")||A0(o,"noMultiCategory")};if(o.type==="box"&&o._hasPreCompStats&&n==={h:"x",v:"y"}[o.orientation||"v"]&&(u.noMultiCategory=!0),u.autotypenumbers=e.autotypenumbers,nL(o,n)){var s=tL(o),f=[];for(a=0;a0&&(a["_"+t+"axes"]||{})[r])return a;if((a[t+"axis"]||t)===r){if(nL(a,t))return a;if((a[t]||[]).length||a[t+"0"])return a}}}function tL(e){return{v:"x",h:"y"}[e.orientation||"v"]}function nL(e,r){var t=tL(e),n=A0(e,"box-violin"),a=A0(e._fullInput||{},"candlestick");return n&&!a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var oL=pe((Khe,iL)=>{"use strict";var ore=jn().isTypedArraySpec;function lre(e,r){var t=r.dataAttr||e._id.charAt(0),n={},a,o,i;if(r.axData)a=r.axData;else for(a=[],o=0;o0||ore(o),l;i&&(l="array");var u=n("categoryorder",l),s;u==="array"&&(s=n("categoryarray")),!i&&u==="array"&&(u=t.categoryorder="trace"),u==="trace"?t._initialCategories=[]:u==="array"?t._initialCategories=s.slice():(s=lre(t,a).sort(),u==="category ascending"?t._initialCategories=s:u==="category descending"&&(t._initialCategories=s.reverse()))}}});var uL=pe((Qhe,sL)=>{"use strict";var lL=Sa().mix,sre=Ti(),ure=ir();sL.exports=function(r,t,n,a){a=a||{};var o=a.dfltColor;function i(g,c){return ure.coerce2(r,t,a.attributes,g,c)}var l=i("linecolor",o),u=i("linewidth"),s=n("showline",a.showLine||!!l||!!u);s||(delete t.linecolor,delete t.linewidth);var f=lL(o,a.bgColor,a.blend||sre.lightFraction).toRgbString(),v=i("gridcolor",f),p=i("gridwidth"),b=i("griddash"),m=n("showgrid",a.showGrid||!!v||!!p||!!b);if(m||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),a.hasMinor){var w=lL(t.gridcolor,a.bgColor,67).toRgbString(),M=i("minor.gridcolor",w),y=i("minor.gridwidth",t.gridwidth||1),k=i("minor.griddash",t.griddash||"solid"),S=n("minor.showgrid",!!M||!!y||!!k);S||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!a.noZeroLine){var x=i("zerolinelayer"),T=i("zerolinecolor",o),d=i("zerolinewidth"),_=n("zeroline",a.showGrid||!!T||!!d);_||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var T1=pe(($he,pL)=>{"use strict";var fL=rt(),fre=Er(),k0=ir(),cre=gt(),vre=ei(),Tm=Ra(),cL=pg(),vL=yg(),hre=bg(),dre=_g(),pre=oL(),gre=uL(),yre=v2(),hL=Rv(),M1=wn().WEEKDAY_PATTERN,mre=wn().HOUR_PATTERN;pL.exports=function(r,t,n,a,o){var i=a.letter,l=a.font||{},u=a.splomStash||{},s=n("visible",!a.visibleDflt),f=t._template||{},v=t.type||f.type||"-",p;if(v==="date"){var b=fre.getComponentMethod("calendars","handleDefaults");b(r,t,"calendar",a.calendar),a.noTicklabelmode||(p=n("ticklabelmode"))}!a.noTicklabelindex&&(v==="date"||v==="linear")&&n("ticklabelindex");var m="";(!a.noTicklabelposition||v==="multicategory")&&(m=k0.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:p==="period"?["outside","inside"]:i==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||n("ticklabeloverflow",m.indexOf("inside")!==-1?"hide past domain":v==="category"||v==="multicategory"?"allow":"hide past div"),hL(t,o),yre(r,t,n,a),pre(r,t,n,a),a.noHover||(v!=="category"&&n("hoverformat"),a.noUnifiedhovertitle||n("unifiedhovertitle.text"));var w=n("color"),M=w!==Tm.color.dflt?w:l.color,y=u.label||o._dfltTitle[i];if(dre(r,t,n,v,a),!s)return t;n("title.text",y),k0.coerceFont(n,"title.font",l,{overrideDflt:{size:k0.bigFont(l.size),color:M}}),cL(r,t,n,v);var k=a.hasMinor;if(k&&(cre.newContainer(t,"minor"),cL(r,t,n,v,{isMinor:!0})),hre(r,t,n,v,a),vL(r,t,n,a),k){var S=a.isMinor;a.isMinor=!0,vL(r,t,n,a),a.isMinor=S}gre(r,t,n,{dfltColor:w,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:k,attributes:Tm}),k&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&n("mirror");var x=v==="multicategory";if(!a.noTickson&&(v==="category"||x)&&(t.ticks||t.showgrid)&&(x?(n("tickson","boundaries"),delete t.ticklabelposition):n("tickson")),x){var T=n("showdividers");T&&(n("dividercolor"),n("dividerwidth"))}if(v==="date")if(vre(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:xre}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var d=0;d=2){var i="",l,u;if(o.length===2){for(l=0;l<2;l++)if(u=dL(o[l]),u){i=M1;break}}var s=n("pattern",i);if(s===M1)for(l=0;l<2;l++)u=dL(o[l]),u&&(r.bounds[l]=o[l]=u-1);if(s)for(l=0;l<2;l++)switch(u=o[l],s){case M1:if(!fL(u)){r.enabled=!1;return}if(u=+u,u!==Math.floor(u)||u<0||u>=7){r.enabled=!1;return}r.bounds[l]=o[l]=u;break;case mre:if(!fL(u)){r.enabled=!1;return}if(u=+u,u<0||u>24){r.enabled=!1;return}r.bounds[l]=o[l]=u;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(o[0]>f[0]&&o[1]{"use strict";var _re=rt(),A1=ir();gL.exports=function(r,t,n,a){var o=a.counterAxes||[],i=a.overlayableAxes||[],l=a.letter,u=a.grid,s=a.overlayingDomain,f,v,p,b,m,w;u&&(v=u._domains[l][u._axisMap[t._id]],f=u._anchors[t._id],v&&(p=u[l+"side"].split(" ")[0],b=u.domain[l][p==="right"||p==="top"?1:0])),v=v||[0,1],f=f||(_re(r.position)?"free":o[0]||"free"),p=p||(l==="x"?"bottom":"left"),b=b||0,m=0,w=!1;var M=A1.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(o),dflt:f}},"anchor"),y=A1.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:p}},"side");if(M==="free"){if(l==="y"){var k=n("autoshift");k&&(b=y==="left"?s[0]:s[1],w=t.automargin?t.automargin:!0,m=y==="left"?-3:3),n("shift",m)}n("position",b)}n("automargin",w);var S=!1;if(i.length&&(S=A1.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(i),dflt:!1}},"overlaying")),!S){var x=n("domain",v);x[0]>x[1]-1/4096&&(t.domain=v),A1.noneOrAll(r.domain,t.domain,v),t.tickmode==="sync"&&(t.tickmode="auto")}return n("layer"),t}});var AL=pe((e1e,TL)=>{"use strict";var ts=ir(),yL=Zr(),wre=to().isUnifiedHover,Mre=q2(),mL=gt(),Tre=Ds(),xL=Ra(),Are=Mm(),bL=T1(),kre=Wf(),_L=Am(),Sm=en(),Ui=Sm.id2name,wL=Sm.name2id,Sre=wn().AX_ID_PATTERN,ML=Er(),k1=ML.traceIs,km=ML.getComponentMethod;function S1(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}TL.exports=function(r,t,n){var a=t.autotypenumbers,o={},i={},l={},u={},s={},f={},v={},p={},b={},m={},w,M;for(w=0;w{"use strict";var Cre=ot(),kL=Er(),C1=ir(),ba=yt(),E1=Ct();SL.exports=function(r,t,n,a){var o=r._fullLayout;if(t.length===0){E1.redrawComponents(r);return}function i(M){var y=M.xaxis,k=M.yaxis;o._defs.select("#"+M.clipId+"> rect").call(ba.setTranslate,0,0).call(ba.setScale,1,1),M.plot.call(ba.setTranslate,y._offset,k._offset).call(ba.setScale,1,1);var S=M.plot.selectAll(".scatterlayer .trace");S.selectAll(".point").call(ba.setPointGroupScale,1,1),S.selectAll(".textpoint").call(ba.setTextPointsScale,1,1),S.call(ba.hideOutsideRangePoints,M)}function l(M,y){var k=M.plotinfo,S=k.xaxis,x=k.yaxis,T=S._length,d=x._length,_=!!M.xr1,g=!!M.yr1,c=[];if(_){var A=C1.simpleMap(M.xr0,S.r2l),h=C1.simpleMap(M.xr1,S.r2l),R=A[1]-A[0],E=h[1]-h[0];c[0]=(A[0]*(1-y)+y*h[0]-A[0])/(A[1]-A[0])*T,c[2]=T*(1-y+y*E/R),S.range[0]=S.l2r(A[0]*(1-y)+y*h[0]),S.range[1]=S.l2r(A[1]*(1-y)+y*h[1])}else c[0]=0,c[2]=T;if(g){var D=C1.simpleMap(M.yr0,x.r2l),N=C1.simpleMap(M.yr1,x.r2l),I=D[1]-D[0],F=N[1]-N[0];c[1]=(D[1]*(1-y)+y*N[1]-D[1])/(D[0]-D[1])*d,c[3]=d*(1-y+y*F/I),x.range[0]=S.l2r(D[0]*(1-y)+y*N[0]),x.range[1]=x.l2r(D[1]*(1-y)+y*N[1])}else c[1]=0,c[3]=d;E1.drawOne(r,S,{skipTitle:!0}),E1.drawOne(r,x,{skipTitle:!0}),E1.redrawComponents(r,[S._id,x._id]);var L=_?T/c[2]:1,P=g?d/c[3]:1,O=_?c[0]:0,U=g?c[1]:0,X=_?c[0]/c[2]*T:0,$=g?c[1]/c[3]*d:0,j=S._offset-X,Y=x._offset-$;k.clipRect.call(ba.setTranslate,O,U).call(ba.setScale,1/L,1/P),k.plot.call(ba.setTranslate,j,Y).call(ba.setScale,L,P),ba.setPointGroupScale(k.zoomScalePts,1/L,1/P),ba.setTextPointsScale(k.zoomScaleTxt,1/L,1/P)}var u;a&&(u=a());function s(){for(var M={},y=0;yn.duration?(s(),b=window.cancelAnimationFrame(w)):b=window.requestAnimationFrame(w)}return v=Date.now(),b=window.requestAnimationFrame(w),Promise.resolve()}});var Cm=pe(Ln=>{"use strict";var R1=ot(),EL=Er(),ns=ir(),Ere=ln(),Lre=yt(),LL=Tf().getModuleCalcData,Qo=en(),ui=wn(),Rre=Io(),st=ns.ensureSingle;function L1(e,r,t){return ns.ensureSingle(e,r,t,function(n){n.datum(t)})}var as=ui.zindexSeparator;Ln.name="cartesian";Ln.attr=["xaxis","yaxis"];Ln.idRoot=["x","y"];Ln.idRegex=ui.idRegex;Ln.attrRegex=ui.attrRegex;Ln.attributes=rL();Ln.layoutAttributes=Ra();Ln.supplyLayoutDefaults=AL();Ln.transitionAxes=CL();Ln.finalizeSubplots=function(e,r){var t=r._subplots,n=t.xaxis,a=t.yaxis,o=t.cartesian,i=o,l={},u={},s,f,v;for(s=0;s0){var b=p.id;if(b.indexOf(as)!==-1)continue;b+=as+(s+1),p=ns.extendFlat({},p,{id:b,plot:a._cartesianlayer.selectAll(".subplot").select("."+b)})}for(var m=[],w,M=0;M1&&(T+=as+x),S.push(l+T),i=0;i1,v=r.mainplotinfo;if(!r.mainplot||f)if(s)r.xlines=st(n,"path","xlines-above"),r.ylines=st(n,"path","ylines-above"),r.xaxislayer=st(n,"g","xaxislayer-above"),r.yaxislayer=st(n,"g","yaxislayer-above");else{if(!i){var p=st(n,"g","layer-subplot");r.shapelayer=st(p,"g","shapelayer"),r.imagelayer=st(p,"g","imagelayer"),v&&f?(r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer):(r.minorGridlayer=st(n,"g","minor-gridlayer"),r.gridlayer=st(n,"g","gridlayer"),r.zerolinelayer=st(n,"g","zerolinelayer"));var b=st(n,"g","layer-between");r.shapelayerBetween=st(b,"g","shapelayer"),r.imagelayerBetween=st(b,"g","imagelayer"),st(n,"path","xlines-below"),st(n,"path","ylines-below"),r.overlinesBelow=st(n,"g","overlines-below"),st(n,"g","xaxislayer-below"),st(n,"g","yaxislayer-below"),r.overaxesBelow=st(n,"g","overaxes-below")}r.overplot=st(n,"g","overplot"),r.plot=st(r.overplot,"g",a),v&&f?r.zerolinelayerAbove=v.zerolinelayerAbove:r.zerolinelayerAbove=st(n,"g","zerolinelayer-above"),i||(r.xlines=st(n,"path","xlines-above"),r.ylines=st(n,"path","ylines-above"),r.overlinesAbove=st(n,"g","overlines-above"),st(n,"g","xaxislayer-above"),st(n,"g","yaxislayer-above"),r.overaxesAbove=st(n,"g","overaxes-above"),r.xlines=n.select(".xlines-"+l),r.ylines=n.select(".ylines-"+u),r.xaxislayer=n.select(".xaxislayer-"+l),r.yaxislayer=n.select(".yaxislayer-"+u))}else{var m=v.plotgroup,w=a+"-x",M=a+"-y";r.minorGridlayer=v.minorGridlayer,r.gridlayer=v.gridlayer,r.zerolinelayer=v.zerolinelayer,r.zerolinelayerAbove=v.zerolinelayerAbove,st(v.overlinesBelow,"path",w),st(v.overlinesBelow,"path",M),st(v.overaxesBelow,"g",w),st(v.overaxesBelow,"g",M),r.plot=st(v.overplot,"g",a),st(v.overlinesAbove,"path",w),st(v.overlinesAbove,"path",M),st(v.overaxesAbove,"g",w),st(v.overaxesAbove,"g",M),r.xlines=m.select(".overlines-"+l).select("."+w),r.ylines=m.select(".overlines-"+u).select("."+M),r.xaxislayer=m.select(".overaxes-"+l).select("."+w),r.yaxislayer=m.select(".overaxes-"+u).select("."+M)}i||(s||(L1(r.minorGridlayer,"g",r.xaxis._id),L1(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(y){return y[0]}).sort(Qo.idSort),L1(r.gridlayer,"g",r.xaxis._id),L1(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(y){return y[0]}).sort(Qo.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function PL(e,r){if(e){var t={};e.each(function(u){var s=u[0],f=R1.select(this);f.remove(),FL(s,r),t[s]=!0});for(var n in r._plots)for(var a=r._plots[n],o=a.overlays||[],i=0;i{"use strict";var D1=ia();IL.exports={hasLines:D1.hasLines,hasMarkers:D1.hasMarkers,hasText:D1.hasText,isBubble:D1.isBubble,attributes:$l(),layoutAttributes:lv(),supplyDefaults:XC(),crossTraceDefaults:QC(),supplyLayoutDefaults:jC(),calc:fm().calc,crossTraceCalc:kE(),arraysToCalcdata:g1(),plot:BE(),colorbar:HE(),formatLabels:GE(),style:bm().style,styleOnSelect:bm().styleOnSelect,hoverPoints:KE(),selectPoints:jE(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Cm(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var OL=pe((a1e,qL)=>{"use strict";var Pre=ot(),Fre=Zr(),zL=Sy(),Em=ir(),Ire=Em.strScale,Nre=Em.strRotate,zre=Em.strTranslate;qL.exports=function(r,t,n){var a=r.node(),o=zL[n.arrowhead||0],i=zL[n.startarrowhead||0],l=(n.arrowwidth||1)*(n.arrowsize||1),u=(n.arrowwidth||1)*(n.startarrowsize||1),s=t.indexOf("start")>=0,f=t.indexOf("end")>=0,v=o.backoff*l+n.standoff,p=i.backoff*u+n.startstandoff,b,m,w,M;if(a.nodeName==="line"){b={x:+r.attr("x1"),y:+r.attr("y1")},m={x:+r.attr("x2"),y:+r.attr("y2")};var y=b.x-m.x,k=b.y-m.y;if(w=Math.atan2(k,y),M=w+Math.PI,v&&p&&v+p>Math.sqrt(y*y+k*k)){D();return}if(v){if(v*v>y*y+k*k){D();return}var S=v*Math.cos(w),x=v*Math.sin(w);m.x+=S,m.y+=x,r.attr({x2:m.x,y2:m.y})}if(p){if(p*p>y*y+k*k){D();return}var T=p*Math.cos(w),d=p*Math.sin(w);b.x-=T,b.y-=d,r.attr({x1:b.x,y1:b.y})}}else if(a.nodeName==="path"){var _=a.getTotalLength(),g="";if(_{"use strict";var BL=ot(),Lm=Er(),qre=ln(),jo=ir(),Rm=jo.strTranslate,C0=Ct(),is=Zr(),fo=yt(),UL=io(),Dm=Yn(),Pm=Vo(),S0=ti(),Ore=gt().arrayEditor,Bre=OL();GL.exports={draw:Ure,drawOne:HL,drawRaw:VL};function Ure(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Ye="right":Ye="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ye]}for(var ee=!1,V=["x","y"],re=0;re1)&&(ue===te?(Re=de.r2fraction(r["a"+H]),(Re<0||Re>1)&&(ee=!0)):ee=!0),Ne=de._offset+de.r2p(r[H]),we=.5}else{var ce=me==="domain";H==="x"?(ge=r[H],Ne=ce?de._offset+de._length*ge:Ne=l.l+l.w*ge):(ge=1-r[H],Ne=ce?de._offset+de._length*ge:Ne=l.t+l.h*ge),we=r.showarrow?.5:ge}if(r.showarrow){Se.head=Ne;var he=r["a"+H];if(Me=Ae*ie(.5,r.xanchor)-ve*ie(.5,r.yanchor),ue===te){var ye=C0.getRefType(ue);ye==="domain"?(H==="y"&&(he=1-he),Se.tail=de._offset+de._length*he):ye==="paper"?H==="y"?(he=1-he,Se.tail=l.t+l.h*he):Se.tail=l.l+l.w*he:Se.tail=de._offset+de.r2p(he),Be=Me}else Se.tail=Ne+he,Be=Me+he;Se.text=Se.tail+Me;var Ce=i[H==="x"?"width":"height"];if(te==="paper"&&(Se.head=jo.constrain(Se.head,1,Ce-1)),ue==="pixel"){var ze=-Math.max(Se.tail-3,Se.text),qe=Math.min(Se.tail+3,Se.text)-Ce;ze>0?(Se.tail+=ze,Se.text+=ze):qe>0&&(Se.tail-=qe,Se.text-=qe)}Se.tail+=Pe,Se.head+=Pe}else Me=Te*ie(we,Ee),Be=Me,Se.text=Ne+Me;Se.text+=Pe,Me+=Pe,Be+=Pe,r["_"+H+"padplus"]=Te/2+Be,r["_"+H+"padminus"]=Te/2-Be,r["_"+H+"size"]=Te,r["_"+H+"shift"]=Me}if(ee){_.remove();return}var $e=0,We=0;if(r.align!=="left"&&($e=(q-j)*(r.align==="center"?.5:1)),r.valign!=="top"&&(We=(Q-Y)*(r.valign==="middle"?.5:1)),X)U.select("svg").attr({x:A+$e-1,y:A+We}).call(fo.setClipUrl,R?w:null,e);else{var Ue=A+We-$.top,Ge=A+$e-$.left;I.call(Dm.positionText,Ge,Ue).call(fo.setClipUrl,R?w:null,e)}E.select("rect").call(fo.setRect,A,A,q,Q),h.call(fo.setRect,g/2,g/2,ne-g,K-g),_.call(fo.setTranslate,Math.round(M.x.text-ne/2),Math.round(M.y.text-K/2)),S.attr({transform:"rotate("+y+","+M.x.text+","+M.y.text+")"});var _e=function(Ke,Ye){k.selectAll(".annotation-arrow-g").remove();var ar=M.x.head,se=M.y.head,J=M.x.tail+Ke,ae=M.y.tail+Ye,Le=M.x.text+Ke,He=M.y.text+Ye,je=jo.rotationXYMatrix(y,Le,He),nr=jo.apply2DTransform(je),fr=jo.apply2DTransform2(je),br=+h.attr("width"),Sr=+h.attr("height"),Mr=Le-.5*br,Ar=Mr+br,nt=He-.5*Sr,Yr=nt+Sr,mr=[[Mr,nt,Mr,Yr],[Mr,Yr,Ar,Yr],[Ar,Yr,Ar,nt],[Ar,nt,Mr,nt]].map(fr);if(!mr.reduce(function(at,It){return at^!!jo.segmentsIntersect(ar,se,ar+1e6,se+1e6,It[0],It[1],It[2],It[3])},!1)){mr.forEach(function(at){var It=jo.segmentsIntersect(J,ae,ar,se,at[0],at[1],at[2],at[3]);It&&(J=It.x,ae=It.y)});var ct=r.arrowwidth,Cr=r.arrowcolor,Ur=r.arrowside,xt=k.append("g").style({opacity:is.opacity(Cr)}).classed("annotation-arrow-g",!0),zr=xt.append("path").attr("d","M"+J+","+ae+"L"+ar+","+se).style("stroke-width",ct+"px").call(is.stroke,is.rgb(Cr));if(Bre(zr,Ur,r),u.annotationPosition&&zr.node().parentNode&&!n){var Hr=ar,Ot=se;if(r.standoff){var Lt=Math.sqrt(Math.pow(ar-J,2)+Math.pow(se-ae,2));Hr+=r.standoff*(J-ar)/Lt,Ot+=r.standoff*(ae-se)/Lt}var yn=xt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(J-Hr)+","+(ae-Ot),transform:Rm(Hr,Ot)}).style("stroke-width",ct+6+"px").call(is.stroke,"rgba(0,0,0,0)").call(is.fill,"rgba(0,0,0,0)"),Gt,Rt;S0.init({element:yn.node(),gd:e,prepFn:function(){var at=fo.getTranslate(_);Gt=at.x,Rt=at.y,a&&a.autorange&&p(a._name+".autorange",!0),o&&o.autorange&&p(o._name+".autorange",!0)},moveFn:function(at,It){var va=nr(Gt,Rt),Kn=va[0]+at,Fn=va[1]+It;_.call(fo.setTranslate,Kn,Fn),b("x",$o(a,at,"x",l,r)),b("y",$o(o,It,"y",l,r)),r.axref===r.xref&&b("ax",$o(a,at,"ax",l,r)),r.ayref===r.yref&&b("ay",$o(o,It,"ay",l,r)),xt.attr("transform",Rm(at,It)),S.attr({transform:"rotate("+y+","+Kn+","+Fn+")"})},doneFn:function(){Lm.call("_guiRelayout",e,m());var at=document.querySelector(".js-notes-box-panel");at&&at.redraw(at.selectedObj)}})}}};if(r.showarrow&&_e(0,0),x){var De;S0.init({element:_.node(),gd:e,prepFn:function(){De=S.attr("transform")},moveFn:function(Ke,Ye){var ar="pointer";if(r.showarrow)r.axref===r.xref?b("ax",$o(a,Ke,"ax",l,r)):b("ax",r.ax+Ke),r.ayref===r.yref?b("ay",$o(o,Ye,"ay",l.w,r)):b("ay",r.ay+Ye),_e(Ke,Ye);else{if(n)return;var se,J;if(a)se=$o(a,Ke,"x",l,r);else{var ae=r._xsize/l.w,Le=r.x+(r._xshift-r.xshift)/l.w-ae/2;se=S0.align(Le+Ke/l.w,ae,0,1,r.xanchor)}if(o)J=$o(o,Ye,"y",l,r);else{var He=r._ysize/l.h,je=r.y-(r._yshift+r.yshift)/l.h-He/2;J=S0.align(je-Ye/l.h,He,0,1,r.yanchor)}b("x",se),b("y",J),(!a||!o)&&(ar=S0.getCursor(a?.5:se,o?.5:J,r.xanchor,r.yanchor))}S.attr({transform:Rm(Ke,Ye)+De}),Pm(_,ar)},clickFn:function(Ke,Ye){r.captureevents&&e.emit("plotly_clickannotation",d(Ye))},doneFn:function(){Pm(_),Lm.call("_guiRelayout",e,m());var Ke=document.querySelector(".js-notes-box-panel");Ke&&Ke.redraw(Ke.selectedObj)}})}}u.annotationText?I.call(Dm.makeEditable,{delegate:_,gd:e}).call(F).on("edit",function(P){r.text=P,this.call(F),b("text",P),a&&a.autorange&&p(a._name+".autorange",!0),o&&o.autorange&&p(o._name+".autorange",!0),Lm.call("_guiRelayout",e,m())}):I.call(F)}});var KL=pe((o1e,JL)=>{"use strict";var YL=ir(),Hre=Er(),WL=gt().arrayEditor;JL.exports={hasClickToShow:Vre,onClick:Gre};function Vre(e,r){var t=ZL(e,r);return t.on.length>0||t.explicitOff.length>0}function Gre(e,r){var t=ZL(e,r),n=t.on,a=t.off.concat(t.explicitOff),o={},i=e._fullLayout.annotations,l,u;if(n.length||a.length){for(l=0;l{"use strict";var Fm=ir(),Su=Zr();QL.exports=function(r,t,n,a){a("opacity");var o=a("bgcolor"),i=a("bordercolor"),l=Su.opacity(i);a("borderpad");var u=a("borderwidth"),s=a("showarrow");a("text",s?" ":n._dfltTitle.annotation),a("textangle"),Fm.coerceFont(a,"font",n.font),a("width"),a("align");var f=a("height");if(f&&a("valign"),s){var v=a("arrowside"),p,b;v.indexOf("end")!==-1&&(p=a("arrowhead"),b=a("arrowsize")),v.indexOf("start")!==-1&&(a("startarrowhead",p),a("startarrowsize",b)),a("arrowcolor",l?t.bordercolor:Su.defaultLine),a("arrowwidth",(l&&u||1)*2),a("standoff"),a("startstandoff")}var m=a("hovertext"),w=n.hoverlabel||{};if(m){var M=a("hoverlabel.bgcolor",w.bgcolor||(Su.opacity(o)?Su.rgb(o):Su.defaultLine)),y=a("hoverlabel.bordercolor",w.bordercolor||Su.contrast(M)),k=Fm.extendFlat({},w.font);k.color||(k.color=y),Fm.coerceFont(a,"hoverlabel.font",k)}a("captureevents",!!m)}});var jL=pe((s1e,$L)=>{"use strict";var Nm=ir(),os=Ct(),Yre=ei(),Wre=Im(),Xre=yu();$L.exports=function(r,t){Yre(r,t,{name:"annotations",handleItemDefaults:Zre})};function Zre(e,r,t){function n(S,x){return Nm.coerce(e,r,Xre,S,x)}var a=n("visible"),o=n("clicktoshow");if(a||o){Wre(e,r,t,n);for(var i=r.showarrow,l=["x","y"],u=[-10,-30],s={_fullLayout:t},f=0;f<2;f++){var v=l[f],p=os.coerceRef(e,r,s,v,"","paper");if(p!=="paper"){var b=os.getFromId(s,p);b._annIndices.push(r._index)}if(os.coercePosition(r,s,n,p,v,.5),i){var m="a"+v,w=os.coerceRef(e,r,s,m,"pixel",["pixel","paper"]);w!=="pixel"&&w!==p&&(w=r[m]="pixel");var M=w==="pixel"?u[f]:.4;os.coercePosition(r,s,n,w,m,M)}n(v+"anchor"),n(v+"shift")}if(Nm.noneOrAll(e,r,["x","y"]),i&&Nm.noneOrAll(e,r,["ax","ay"]),o){var y=n("xclick"),k=n("yclick");r._xclick=y===void 0?r.x:os.cleanPosition(y,s,r.xref),r._yclick=k===void 0?r.y:os.cleanPosition(k,s,r.yref)}}}});var tR=pe((u1e,rR)=>{"use strict";var zm=ir(),ls=Ct(),Jre=P1().draw;rR.exports=function(r){var t=r._fullLayout,n=zm.filterVisible(t.annotations);if(n.length&&r._fullData.length)return zm.syncOrAsync([Jre,Kre],r)};function Kre(e){var r=e._fullLayout;zm.filterVisible(r.annotations).forEach(function(t){var n=ls.getFromId(e,t.xref),a=ls.getFromId(e,t.yref),o=ls.getRefType(t.xref),i=ls.getRefType(t.yref);t._extremes={},o==="range"&&eR(t,n),i==="range"&&eR(t,a)})}function eR(e,r){var t=r._id,n=t.charAt(0),a=e[n],o=e["a"+n],i=e[n+"ref"],l=e["a"+n+"ref"],u=e["_"+n+"padplus"],s=e["_"+n+"padminus"],f={x:1,y:-1}[n]*e[n+"shift"],v=3*e.arrowsize*e.arrowwidth||0,p=v+f,b=v-f,m=3*e.startarrowsize*e.arrowwidth||0,w=m+f,M=m-f,y;if(l===i){var k=ls.findExtremes(r,[r.r2c(a)],{ppadplus:p,ppadminus:b}),S=ls.findExtremes(r,[r.r2c(o)],{ppadplus:Math.max(u,w),ppadminus:Math.max(s,M)});y={min:[k.min[0],S.min[0]],max:[k.max[0],S.max[0]]}}else w=o?w+o:w,M=o?M-o:M,y=ls.findExtremes(r,[r.r2c(a)],{ppadplus:Math.max(u,p,w),ppadminus:Math.max(s,b,M)});e._extremes[t]=y}});var aR=pe((f1e,nR)=>{"use strict";var Qre=rt(),$re=Cc();nR.exports=function(r,t,n,a){t=t||{};var o=n==="log"&&t.type==="linear",i=n==="linear"&&t.type==="log";if(!(o||i))return;var l=r._fullLayout.annotations,u=t._id.charAt(0),s,f;function v(b){var m=s[b],w=null;o?w=$re(m,t.range):w=Math.pow(10,m),Qre(w)||(w=null),a(f+b,w)}for(var p=0;p{"use strict";var qm=P1(),iR=KL();oR.exports={moduleType:"component",name:"annotations",layoutAttributes:yu(),supplyLayoutDefaults:jL(),includeBasePlot:u0()("annotations"),calcAutorange:tR(),draw:qm.draw,drawOne:qm.drawOne,drawRaw:qm.drawRaw,hasClickToShow:iR.hasClickToShow,onClick:iR.onClick,convertCoords:aR()}});var F1=pe((v1e,sR)=>{"use strict";var wt=yu(),jre=zn().overrideAll,ete=gt().templatedArray;sR.exports=jre(ete("annotation",{visible:wt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:wt.xanchor,xshift:wt.xshift,yanchor:wt.yanchor,yshift:wt.yshift,text:wt.text,textangle:wt.textangle,font:wt.font,width:wt.width,height:wt.height,opacity:wt.opacity,align:wt.align,valign:wt.valign,bgcolor:wt.bgcolor,bordercolor:wt.bordercolor,borderpad:wt.borderpad,borderwidth:wt.borderwidth,showarrow:wt.showarrow,arrowcolor:wt.arrowcolor,arrowhead:wt.arrowhead,startarrowhead:wt.startarrowhead,arrowside:wt.arrowside,arrowsize:wt.arrowsize,startarrowsize:wt.startarrowsize,arrowwidth:wt.arrowwidth,standoff:wt.standoff,startstandoff:wt.startstandoff,hovertext:wt.hovertext,hoverlabel:wt.hoverlabel,captureevents:wt.captureevents}),"calc","from-root")});var fR=pe((h1e,uR)=>{"use strict";var Om=ir(),rte=Ct(),tte=ei(),nte=Im(),ate=F1();uR.exports=function(r,t,n){tte(r,t,{name:"annotations",handleItemDefaults:ite,fullLayout:n.fullLayout})};function ite(e,r,t,n){function a(l,u){return Om.coerce(e,r,ate,l,u)}function o(l){var u=l+"axis",s={_fullLayout:{}};return s._fullLayout[u]=t[u],rte.coercePosition(r,s,a,l,l,.5)}var i=a("visible");i&&(nte(e,r,n.fullLayout,a),o("x"),o("y"),o("z"),Om.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",a("ax",-10),a("ay",-30),Om.noneOrAll(e,r,["ax","ay"])))}});var dR=pe((d1e,hR)=>{"use strict";var cR=ir(),vR=Ct();hR.exports=function(r){for(var t=r.fullSceneLayout,n=t.annotations,a=0;a{"use strict";function Bm(e,r){var t=[0,0,0,0],n,a;for(n=0;n<4;++n)for(a=0;a<4;++a)t[a]+=e[4*n+a]*r[n];return t}function lte(e,r){var t=Bm(e.projection,Bm(e.view,Bm(e.model,[r[0],r[1],r[2],1])));return t}pR.exports=lte});var yR=pe((g1e,gR)=>{"use strict";var ste=P1().drawRaw,ute=Um(),fte=["x","y","z"];gR.exports=function(r){for(var t=r.fullSceneLayout,n=r.dataScale,a=t.annotations,o=0;o1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+o+'"]').remove():(i._pdata=ute(r.glplot.cameraParams,[t.xaxis.r2l(i.x)*n[0],t.yaxis.r2l(i.y)*n[1],t.zaxis.r2l(i.z)*n[2]]),ste(r.graphDiv,i,o,r.id,i._xa,i._ya))}}});var bR=pe((y1e,xR)=>{"use strict";var cte=Er(),mR=ir();xR.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:F1()}}},layoutAttributes:F1(),handleDefaults:fR(),includeBasePlot:vte,convert:dR(),draw:yR()};function vte(e,r){var t=cte.subplotsRegistry.gl3d;if(t)for(var n=t.attrRegex,a=Object.keys(e),o=0;o{"use strict";var _R=yu(),wR=kn(),MR=$l().line,hte=Ao().dash,fi=Mt().extendFlat,dte=gt().templatedArray,m1e=s0(),Cu=Sn(),pte=ha().shapeTexttemplateAttrs,gte=Oc();TR.exports=dte("shape",{visible:fi({},Cu.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:fi({},Cu.legend,{editType:"calc+arraydraw"}),legendgroup:fi({},Cu.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:fi({},Cu.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:wR({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:fi({},Cu.legendrank,{editType:"calc+arraydraw"}),legendwidth:fi({},Cu.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:fi({},_R.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:fi({},_R.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:fi({},MR.color,{editType:"arraydraw"}),width:fi({},MR.width,{editType:"calc+arraydraw"}),dash:fi({},hte,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:pte({},{keys:Object.keys(gte)}),font:wR({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var SR=pe((b1e,kR)=>{"use strict";var E0=ir(),Eu=Ct(),yte=ei(),mte=Hm(),AR=Wo();kR.exports=function(r,t){yte(r,t,{name:"shapes",handleItemDefaults:bte})};function xte(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function bte(e,r,t){function n(P,O){return E0.coerce(e,r,mte,P,O)}r._isShape=!0;var a=n("visible");if(a){var o=n("showlegend");o&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),E0.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var i=n("path"),l=i?"path":"rect",u=n("type",l),s=u!=="path";s&&delete r.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var f=n("line.width");f&&(n("line.color"),n("line.dash"));for(var v=n("xsizemode"),p=n("ysizemode"),b=["x","y"],m=0;m<2;m++){var w=b[m],M=w+"anchor",y=w==="x"?v:p,k={_fullLayout:t},S,x,T,d=Eu.coerceRef(e,r,k,w,void 0,"paper"),_=Eu.getRefType(d);if(_==="range"?(S=Eu.getFromId(k,d),S._shapeIndices.push(r._index),T=AR.rangeToShapePosition(S),x=AR.shapePositionToRange(S),(S.type==="category"||S.type==="multicategory")&&(n(w+"0shift"),n(w+"1shift"))):x=T=E0.identity,s){var g=.25,c=.75,A=w+"0",h=w+"1",R=e[A],E=e[h];e[A]=x(e[A],!0),e[h]=x(e[h],!0),y==="pixel"?(n(A,0),n(h,10)):(Eu.coercePosition(r,k,n,d,A,g),Eu.coercePosition(r,k,n,d,h,c)),r[A]=T(r[A]),r[h]=T(r[h]),e[A]=R,e[h]=E}if(y==="pixel"){var D=e[M];e[M]=x(e[M],!0),Eu.coercePosition(r,k,n,d,M,.25),r[M]=T(r[M]),e[M]=D}}s&&E0.noneOrAll(e,r,["x0","x1","y0","y1"]);var N=u==="line",I,F;if(s&&(I=n("label.texttemplate")),I||(F=n("label.text")),F||I){n("label.textangle");var L=n("label.textposition",N?"middle":"middle center");n("label.xanchor"),n("label.yanchor",xte(N,L)),n("label.padding"),E0.coerceFont(n,"label.font",t.font)}}}});var LR=pe((_1e,ER)=>{"use strict";var _te=Zr(),CR=ir();function wte(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}ER.exports=function(r,t,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),CR.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var a=n("newshape.line.width");if(a){var o=(r||{}).plot_bgcolor||"#FFF";n("newshape.line.color",_te.contrast(o)),n("newshape.line.dash")}var i=r.dragmode==="drawline",l=n("newshape.label.text"),u=n("newshape.label.texttemplate");if(l||u){n("newshape.label.textangle");var s=n("newshape.label.textposition",i?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",wte(i,s)),n("newshape.label.padding"),CR.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var IR=pe((w1e,FR)=>{"use strict";var Vm=ir(),Lu=Ct(),Ru=Hf(),DR=Wo();FR.exports=function(r){var t=r._fullLayout,n=Vm.filterVisible(t.shapes);if(!(!n.length||!r._fullData.length))for(var a=0;a0?s+i:i;return{ppad:i,ppadplus:l?v:p,ppadminus:l?p:v}}else return{ppad:i}}function RR(e,r,t){var n=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",o,i,l=0,u=0,s=a?e.r2c:e.d2c,f=r[n+"sizemode"]==="scaled";if(f?(o=r[n+"0"],i=r[n+"1"],a&&(l=r[n+"0shift"],u=r[n+"1shift"])):(o=r[n+"anchor"],i=r[n+"anchor"]),o!==void 0)return[s(o)+l,s(i)+u];if(r.path){var v=1/0,p=-1/0,b=r.path.match(Ru.segmentRE),m,w,M,y,k;for(e.type==="date"&&(s=DR.decodeDate(s)),m=0;mp&&(p=k)));if(p>=v)return[v,p]}}});var qR=pe((M1e,zR)=>{"use strict";var NR=Th();zR.exports={moduleType:"component",name:"shapes",layoutAttributes:Hm(),supplyLayoutDefaults:SR(),supplyDrawNewShapeDefaults:LR(),includeBasePlot:u0()("shapes"),calcAutorange:IR(),draw:NR.draw,drawOne:NR.drawOne}});var Gm=pe((A1e,BR)=>{"use strict";var OR=wn(),Ate=gt().templatedArray,T1e=s0();BR.exports=Ate("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",OR.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",OR.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var HR=pe((k1e,UR)=>{"use strict";var kte=ir(),Ym=Ct(),Ste=ei(),Cte=Gm(),Ete="images";UR.exports=function(r,t){var n={name:Ete,handleItemDefaults:Lte};Ste(r,t,n)};function Lte(e,r,t){function n(p,b){return kte.coerce(e,r,Cte,p,b)}var a=n("source"),o=n("visible",!!a);if(!o)return r;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var i={_fullLayout:t},l=["x","y"],u=0;u<2;u++){var s=l[u],f=Ym.coerceRef(e,r,i,s,"paper",void 0);if(f!=="paper"){var v=Ym.getFromId(i,f);v._imgIndices.push(r._index)}Ym.coercePosition(r,i,n,f,s,0)}return r}});var WR=pe((S1e,YR)=>{"use strict";var VR=ot(),Rte=yt(),Du=Ct(),GR=en(),Dte=Io();YR.exports=function(r){var t=r._fullLayout,n=[],a={},o=[],i,l;for(l=0;l{"use strict";var XR=rt(),Pte=Cc();ZR.exports=function(r,t,n,a){t=t||{};var o=n==="log"&&t.type==="linear",i=n==="linear"&&t.type==="log";if(o||i){for(var l=r._fullLayout.images,u=t._id.charAt(0),s,f,v=0;v{"use strict";KR.exports={moduleType:"component",name:"images",layoutAttributes:Gm(),supplyLayoutDefaults:HR(),includeBasePlot:u0()("images"),draw:WR(),convertCoords:JR()}});var I1=pe((L1e,$R)=>{"use strict";$R.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var Wm=pe((R1e,eD)=>{"use strict";var Fte=kn(),Ite=Ti(),Nte=Mt().extendFlat,zte=zn().overrideAll,qte=Bc(),jR=gt().templatedArray,Ote=jR("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});eD.exports=zte(jR("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Ote,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Nte(qte({editType:"arraydraw"}),{}),font:Fte({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Ite.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var aD=pe((D1e,nD)=>{"use strict";var N1=ir(),rD=ei(),tD=Wm(),Bte=I1(),Ute=Bte.name,Hte=tD.buttons;nD.exports=function(r,t){var n={name:Ute,handleItemDefaults:Vte};rD(r,t,n)};function Vte(e,r,t){function n(i,l){return N1.coerce(e,r,tD,i,l)}var a=rD(e,r,{name:"buttons",handleItemDefaults:Gte}),o=n("visible",a.length>0);o&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),N1.noneOrAll(e,r,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),N1.coerceFont(n,"font",t.font),n("bgcolor",t.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function Gte(e,r){function t(a,o){return N1.coerce(e,r,Hte,a,o)}var n=t("visible",e.method==="skip"||Array.isArray(e.args));n&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var lD=pe((P1e,oD)=>{"use strict";oD.exports=Dt;var ci=ot(),iD=Zr(),Pu=yt(),z1=ir();function Dt(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Dt.barWidth=2;Dt.barLength=20;Dt.barRadius=2;Dt.barPad=1;Dt.barColor="#808BA4";Dt.prototype.enable=function(r,t,n){var a=this.gd._fullLayout,o=a.width,i=a.height;this.position=r;var l=this.position.l,u=this.position.w,s=this.position.t,f=this.position.h,v=this.position.direction,p=v==="down",b=v==="left",m=v==="right",w=v==="up",M=u,y=f,k,S,x,T;!p&&!b&&!m&&!w&&(this.position.direction="down",p=!0);var d=p||w;d?(k=l,S=k+M,p?(x=s,T=Math.min(x+y,i),y=T-x):(T=s+y,x=Math.max(T-y,0),y=T-x)):(x=s,T=x+y,b?(S=l+M,k=Math.max(S-M,0),M=S-k):(k=l,S=Math.min(k+M,o),M=S-k)),this._box={l:k,t:x,w:M,h:y};var _=u>M,g=Dt.barLength+2*Dt.barPad,c=Dt.barWidth+2*Dt.barPad,A=l,h=s+f;h+c>i&&(h=i-c);var R=this.container.selectAll("rect.scrollbar-horizontal").data(_?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(iD.fill,Dt.barColor),_?(this.hbar=R.attr({rx:Dt.barRadius,ry:Dt.barRadius,x:A,y:h,width:g,height:c}),this._hbarXMin=A+g/2,this._hbarTranslateMax=M-g):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=f>y,D=Dt.barWidth+2*Dt.barPad,N=Dt.barLength+2*Dt.barPad,I=l+u,F=s;I+D>o&&(I=o-D);var L=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);L.exit().on(".drag",null).remove(),L.enter().append("rect").classed("scrollbar-vertical",!0).call(iD.fill,Dt.barColor),E?(this.vbar=L.attr({rx:Dt.barRadius,ry:Dt.barRadius,x:I,y:F,width:D,height:N}),this._vbarYMin=F+N/2,this._vbarTranslateMax=y-N):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var P=this.id,O=k-.5,U=E?S+D+.5:S+.5,X=x-.5,$=_?T+c+.5:T+.5,j=a._topdefs.selectAll("#"+P).data(_||E?[0]:[]);if(j.exit().remove(),j.enter().append("clipPath").attr("id",P).append("rect"),_||E?(this._clipRect=j.select("rect").attr({x:Math.floor(O),y:Math.floor(X),width:Math.ceil(U)-Math.floor(O),height:Math.ceil($)-Math.floor(X)}),this.container.call(Pu.setClipUrl,P,this.gd),this.bg.attr({x:l,y:s,width:u,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Pu.setClipUrl,null),delete this._clipRect),_||E){var Y=ci.behavior.drag().on("dragstart",function(){ci.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Y);var q=ci.behavior.drag().on("dragstart",function(){ci.event.sourceEvent.preventDefault(),ci.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));_&&this.hbar.on(".drag",null).call(q),E&&this.vbar.on(".drag",null).call(q)}this.setTranslate(t,n)};Dt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Pu.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Dt.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=ci.event.dx),this.vbar&&(t-=ci.event.dy),this.setTranslate(r,t)};Dt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=ci.event.deltaY),this.vbar&&(t+=ci.event.deltaY),this.setTranslate(r,t)};Dt.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var n=r+this._hbarXMin,a=n+this._hbarTranslateMax,o=z1.constrain(ci.event.x,n,a),i=(o-n)/(a-n),l=this.position.w-this._box.w;r=i*l}if(this.vbar){var u=t+this._vbarYMin,s=u+this._vbarTranslateMax,f=z1.constrain(ci.event.y,u,s),v=(f-u)/(s-u),p=this.position.h-this._box.h;t=v*p}this.setTranslate(r,t)};Dt.prototype.setTranslate=function(r,t){var n=this.position.w-this._box.w,a=this.position.h-this._box.h;if(r=z1.constrain(r||0,0,n),t=z1.constrain(t||0,0,a),this.translateX=r,this.translateY=t,this.container.call(Pu.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var o=r/n;this.hbar.call(Pu.setTranslate,r+o*this._hbarTranslateMax,t)}if(this.vbar){var i=t/a;this.vbar.call(Pu.setTranslate,r,t+i*this._vbarTranslateMax)}}});var yD=pe((F1e,gD)=>{"use strict";var Fu=ot(),L0=ln(),R0=Zr(),Iu=yt(),_a=ir(),q1=Yn(),Yte=gt().arrayEditor,uD=qn().LINE_SPACING,Dr=I1(),Wte=lD();gD.exports=function(r){var t=r._fullLayout,n=_a.filterVisible(t[Dr.name]);function a(p){L0.autoMargin(r,dD(p))}var o=t._menulayer.selectAll("g."+Dr.containerClassName).data(n.length>0?[0]:[]);if(o.enter().append("g").classed(Dr.containerClassName,!0).style("cursor","pointer"),o.exit().each(function(){Fu.select(this).selectAll("g."+Dr.headerGroupClassName).each(a)}).remove(),n.length!==0){var i=o.selectAll("g."+Dr.headerGroupClassName).data(n,Xte);i.enter().append("g").classed(Dr.headerGroupClassName,!0);for(var l=_a.ensureSingle(o,"g",Dr.dropdownButtonGroupClassName,function(p){p.style("pointer-events","all")}),u=0;u{"use strict";var ene=I1();mD.exports={moduleType:"component",name:ene.name,layoutAttributes:Wm(),supplyLayoutDefaults:aD(),draw:yD()}});var P0=pe((N1e,bD)=>{"use strict";bD.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var Km=pe((z1e,MD)=>{"use strict";var _D=kn(),rne=Bc(),tne=Mt().extendDeepAll,nne=zn().overrideAll,ane=hf(),wD=gt().templatedArray,ss=P0(),ine=wD("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});MD.exports=nne(wD("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:ine,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:tne(rne({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:ane.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:_D({})},font:_D({}),activebgcolor:{valType:"color",dflt:ss.gripBgActiveColor},bgcolor:{valType:"color",dflt:ss.railBgColor},bordercolor:{valType:"color",dflt:ss.railBorderColor},borderwidth:{valType:"number",min:0,dflt:ss.railBorderWidth},ticklen:{valType:"number",min:0,dflt:ss.tickLength},tickcolor:{valType:"color",dflt:ss.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:ss.minorTickLength}}),"arraydraw","from-root")});var SD=pe((q1e,kD)=>{"use strict";var Nu=ir(),TD=ei(),AD=Km(),one=P0(),lne=one.name,sne=AD.steps;kD.exports=function(r,t){TD(r,t,{name:lne,handleItemDefaults:une})};function une(e,r,t){function n(v,p){return Nu.coerce(e,r,AD,v,p)}for(var a=TD(e,r,{name:"steps",handleItemDefaults:fne}),o=0,i=0;i{"use strict";var vi=ot(),O1=ln(),el=Zr(),hi=yt(),wa=ir(),cne=wa.strTranslate,F0=Yn(),vne=gt().arrayEditor,Gr=P0(),jm=qn(),LD=jm.LINE_SPACING,Qm=jm.FROM_TL,$m=jm.FROM_BR;ND.exports=function(r){var t=r._context.staticPlot,n=r._fullLayout,a=hne(n,r),o=n._infolayer.selectAll("g."+Gr.containerClassName).data(a.length>0?[0]:[]);o.enter().append("g").classed(Gr.containerClassName,!0).style("cursor",t?null:"ew-resize");function i(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),O1.autoMargin(r,RD(f))}if(o.exit().each(function(){vi.select(this).selectAll("g."+Gr.groupClassName).each(i)}).remove(),a.length!==0){var l=o.selectAll("g."+Gr.groupClassName).data(a,dne);l.enter().append("g").classed(Gr.groupClassName,!0),l.exit().each(i).remove();for(var u=0;u0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",cne(i-Gr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function e3(e,r){var t=e._dims;return t.inputAreaStart+Gr.stepInset+(t.inputAreaLength-2*Gr.stepInset)*Math.min(1,Math.max(0,r))}function ED(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Gr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Gr.stepInset-2*t.inputAreaStart)))}function _ne(e,r,t){var n=t._dims,a=wa.ensureSingle(e,"rect",Gr.railTouchRectClass,function(o){o.call(FD,r,e,t).style("pointer-events","all")});a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Gr.tickOffset+t.ticklen+n.labelHeight)}).call(el.fill,t.bgcolor).attr("opacity",0),hi.setTranslate(a,0,n.currentValueTotalHeight)}function wne(e,r){var t=r._dims,n=t.inputAreaLength-Gr.railInset*2,a=wa.ensureSingle(e,"rect",Gr.railRectClass);a.attr({width:n,height:Gr.railWidth,rx:Gr.railRadius,ry:Gr.railRadius,"shape-rendering":"crispEdges"}).call(el.stroke,r.bordercolor).call(el.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),hi.setTranslate(a,Gr.railInset,(t.inputAreaWidth-Gr.railWidth)*.5+t.currentValueTotalHeight)}});var OD=pe((B1e,qD)=>{"use strict";var Mne=P0();qD.exports={moduleType:"component",name:Mne.name,layoutAttributes:Km(),supplyLayoutDefaults:SD(),draw:zD()}});var U1=pe((U1e,UD)=>{"use strict";var BD=Ti();UD.exports={bgcolor:{valType:"color",dflt:BD.background,editType:"plot"},bordercolor:{valType:"color",dflt:BD.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var r3=pe((H1e,HD)=>{"use strict";HD.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var H1=pe((V1e,VD)=>{"use strict";VD.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var WD=pe(G1=>{"use strict";var Tne=en(),Ane=Yn(),GD=H1(),kne=qn().LINE_SPACING,V1=GD.name;function YD(e){var r=e&&e[V1];return r&&r.visible}G1.isVisible=YD;G1.makeData=function(e){for(var r=Tne.list({_fullLayout:e},"x",!0),t=e.margin,n=[],a=0;a{"use strict";var Y1=ir(),XD=gt(),ZD=en(),Sne=U1(),Cne=r3();JD.exports=function(r,t,n){var a=r[n],o=t[n];if(!(a.rangeslider||t._requestRangeslider[o._id]))return;Y1.isPlainObject(a.rangeslider)||(a.rangeslider={});var i=a.rangeslider,l=XD.newContainer(o,"rangeslider");function u(T,d){return Y1.coerce(i,l,Sne,T,d)}var s,f;function v(T,d){return Y1.coerce(s,f,Cne,T,d)}var p=u("visible");if(p){u("bgcolor",t.plot_bgcolor),u("bordercolor"),u("borderwidth"),u("thickness"),u("autorange",!o.isValidRange(i.range)),u("range");var b=t._subplots;if(b)for(var m=b.cartesian.filter(function(T){return T.substr(0,T.indexOf("y"))===ZD.name2id(n)}).map(function(T){return T.substr(T.indexOf("y"),T.length)}),w=Y1.simpleMap(m,ZD.id2name),M=0;M{"use strict";var Ene=en().list,Lne=$s().getAutoRange,Rne=H1();QD.exports=function(r){for(var t=Ene(r,"x",!0),n=0;n{"use strict";var W1=ot(),Dne=Er(),Pne=ln(),qt=ir(),X1=qt.strTranslate,eP=yt(),rl=Zr(),Fne=Lf(),Ine=Cm(),t3=en(),Nne=ti(),zne=Vo(),Qr=H1();rP.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,n=0;n=L.max)I=h[F+1];else if(N=L.pmax)I=h[F+1];else if(N0?e.touches[0].clientX:0}function qne(e,r,t,n){if(r._context.staticPlot)return;var a=e.select("rect."+Qr.slideBoxClassName).node(),o=e.select("rect."+Qr.grabAreaMinClassName).node(),i=e.select("rect."+Qr.grabAreaMaxClassName).node();function l(){var u=W1.event,s=u.target,f=jD(u),v=f-e.node().getBoundingClientRect().left,p=n.d2p(t._rl[0]),b=n.d2p(t._rl[1]),m=Nne.coverSlip();this.addEventListener("touchmove",w),this.addEventListener("touchend",M),m.addEventListener("mousemove",w),m.addEventListener("mouseup",M);function w(y){var k=jD(y),S=+k-f,x,T,d;switch(s){case a:if(d="ew-resize",p+S>t._length||b+S<0)return;x=p+S,T=b+S;break;case o:if(d="col-resize",p+S>t._length)return;x=p+S,T=b;break;case i:if(d="col-resize",b+S<0)return;x=p,T=b+S;break;default:d="ew-resize",x=v,T=v+S;break}if(T{"use strict";var Zne=ir(),Jne=U1(),Kne=r3(),n3=WD();nP.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Zne.extendFlat({},Jne,{yaxis:Kne})}}},layoutAttributes:U1(),handleDefaults:KD(),calcAutorange:$D(),draw:tP(),isVisible:n3.isVisible,makeData:n3.makeData,autoMarginOpts:n3.autoMarginOpts}});var Z1=pe((J1e,oP)=>{"use strict";var Qne=kn(),iP=Ti(),$ne=gt().templatedArray,jne=$ne("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});oP.exports={visible:{valType:"boolean",editType:"plot"},buttons:jne,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:Qne({editType:"plot"}),bgcolor:{valType:"color",dflt:iP.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:iP.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var a3=pe((K1e,lP)=>{"use strict";lP.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var fP=pe((Q1e,uP)=>{"use strict";var J1=ir(),eae=Zr(),rae=gt(),tae=ei(),sP=Z1(),i3=a3();uP.exports=function(r,t,n,a,o){var i=r.rangeselector||{},l=rae.newContainer(t,"rangeselector");function u(b,m){return J1.coerce(i,l,sP,b,m)}var s=tae(i,l,{name:"buttons",handleItemDefaults:nae,calendar:o}),f=u("visible",s.length>0);if(f){var v=aae(t,n,a);u("x",v[0]),u("y",v[1]),J1.noneOrAll(r,t,["x","y"]),u("xanchor"),u("yanchor"),J1.coerceFont(u,"font",n.font);var p=u("bgcolor");u("activecolor",eae.contrast(p,i3.lightAmount,i3.darkAmount)),u("bordercolor"),u("borderwidth")}};function nae(e,r,t,n){var a=n.calendar;function o(u,s){return J1.coerce(e,r,sP.buttons,u,s)}var i=o("visible");if(i){var l=o("step");l!=="all"&&(a&&a!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":o("stepmode"),o("count")),o("label")}}function aae(e,r,t){for(var n=t.filter(function(l){return r[l].anchor===e._id}),a=0,o=0;o{"use strict";var iae=ip(),oae=ir().titleCase;cP.exports=function(r,t){var n=r._name,a={};if(t.step==="all")a[n+".autorange"]=!0;else{var o=lae(r,t);a[n+".range[0]"]=o[0],a[n+".range[1]"]=o[1]}return a};function lae(e,r){var t=e.range,n=new Date(e.r2l(t[1])),a=r.step,o=iae["utc"+oae(a)],i=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+o.offset(n,-i));break;case"todate":var u=o.offset(n,-i);l=e.l2r(+o.ceil(u));break}var s=t[1];return[l,s]}});var bP=pe((j1e,xP)=>{"use strict";var Q1=ot(),sae=Er(),uae=ln(),hP=Zr(),mP=yt(),co=ir(),dP=co.strTranslate,K1=Yn(),fae=en(),s3=qn(),pP=s3.LINE_SPACING,gP=s3.FROM_TL,yP=s3.FROM_BR,l3=a3(),cae=vP();xP.exports=function(r){var t=r._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(vae(r),hae);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(a){var o=Q1.select(this),i=a,l=i.rangeselector,u=o.selectAll("g.button").data(co.filterVisible(l.buttons));u.enter().append("g").classed("button",!0),u.exit().remove(),u.each(function(s){var f=Q1.select(this),v=cae(i,s);s._isActive=dae(i,s,v),f.call(o3,l,s),f.call(gae,l,s,r),f.on("click",function(){r._dragged||sae.call("_guiRelayout",r,v)}),f.on("mouseover",function(){s._isHovered=!0,f.call(o3,l,s)}),f.on("mouseout",function(){s._isHovered=!1,f.call(o3,l,s)})}),mae(r,u,l,i._name,o)})};function vae(e){for(var r=fae.list(e,"x",!0),t=[],n=0;n{"use strict";_P.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Z1()}}},layoutAttributes:Z1(),handleDefaults:fP(),draw:bP()}});var $1=pe(u3=>{"use strict";var MP=Mt().extendFlat;u3.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",a=e.trace?"trace ":"subplot ",o=r.description?" "+r.description:"",i={x:MP({},t,{}),y:MP({},t,{}),editType:e.editType};return e.noGridCell||(i.row={valType:"integer",min:0,dflt:0,editType:e.editType},i.column={valType:"integer",min:0,dflt:0,editType:e.editType}),i};u3.defaults=function(e,r,t,n){var a=n&&n.x||[0,1],o=n&&n.y||[0,1],i=r.grid;if(i){var l=t("domain.column");l!==void 0&&(l{"use strict";var xae=ir(),bae=Es().counter,_ae=$1().attributes,TP=wn().idRegex,wae=gt(),f3={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[bae("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[TP.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[TP.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:_ae({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function j1(e,r,t){var n=r[t+"axes"],a=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(n))return n;if(a.length)return a}function Mae(e,r){var t=e.grid||{},n=j1(r,t,"x"),a=j1(r,t,"y");if(!e.grid&&!n&&!a)return;var o=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),i=Array.isArray(n),l=Array.isArray(a),u=i&&n!==t.xaxes&&l&&a!==t.yaxes,s,f;o?(s=t.subplots.length,f=t.subplots[0].length):(l&&(s=a.length),i&&(f=n.length));var v=wae.newContainer(r,"grid");function p(d,_){return xae.coerce(t,v,f3,d,_)}var b=p("rows",s),m=p("columns",f);if(!(b*m>1)){delete r.grid;return}if(!o&&!i&&!l){var w=p("pattern")==="independent";w&&(o=!0)}v._hasSubplotGrid=o;var M=p("roworder"),y=M==="top to bottom",k=o?.2:.1,S=o?.3:.1,x,T;u&&r._splomGridDflt&&(x=r._splomGridDflt.xside,T=r._splomGridDflt.yside),v._domains={x:AP("x",p,k,x,m),y:AP("y",p,S,T,b,y)}}function AP(e,r,t,n,a,o){var i=r(e+"gap",t),l=r("domain."+e);r(e+"side",n);for(var u=new Array(a),s=l[0],f=(l[1]-s)/(a-i),v=f*(1-i),p=0;p{"use strict";EP.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var DP=pe((ade,RP)=>{"use strict";var LP=rt(),Aae=Er(),kae=ir(),Sae=gt(),Cae=c3();RP.exports=function(e,r,t,n){var a="error_"+n.axis,o=Sae.newContainer(r,a),i=e[a]||{};function l(m,w){return kae.coerce(i,o,Cae,m,w)}var u=i.array!==void 0||i.value!==void 0||i.type==="sqrt",s=l("visible",u);if(s!==!1){var f=l("type","array"in i?"data":"percent"),v=!0;f!=="sqrt"&&(v=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in i))),f==="data"?(l("array"),l("traceref"),v||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),v||l("valueminus"));var p="copy_"+n.inherit+"style";if(n.inherit){var b=r["error_"+n.inherit];(b||{}).visible&&l(p,!(i.color||LP(i.thickness)||LP(i.width)))}(!n.inherit||!o[p])&&(l("color",t),l("thickness"),l("width",Aae.traceIs(r,"gl3d")?0:4))}}});var v3=pe((ide,FP)=>{"use strict";FP.exports=function(r){var t=r.type,n=r.symmetric;if(t==="data"){var a=r.array||[];if(n)return function(s,f){var v=+a[f];return[v,v]};var o=r.arrayminus||[];return function(s,f){var v=+a[f],p=+o[f];return!isNaN(v)||!isNaN(p)?[p||0,v||0]:[NaN,NaN]}}else{var i=PP(t,r.value),l=PP(t,r.valueminus);return n||r.valueminus===void 0?function(s){var f=i(s);return[f,f]}:function(s){return[l(s),i(s)]}}};function PP(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var zP=pe((ode,NP)=>{"use strict";var h3=rt(),Eae=Er(),d3=Ct(),Lae=ir(),Rae=v3();NP.exports=function(r){for(var t=r.calcdata,n=0;n{"use strict";var qP=ot(),tl=rt(),Dae=yt(),Pae=ia();OP.exports=function(r,t,n,a){var o,i=n.xaxis,l=n.yaxis,u=a&&a.duration>0,s=r._context.staticPlot;t.each(function(f){var v=f[0].trace,p=v.error_x||{},b=v.error_y||{},m;v.ids&&(m=function(k){return k.id});var w=Pae.hasMarkers(v)&&v.marker.maxdisplayed>0;!b.visible&&!p.visible&&(f=[]);var M=qP.select(this).selectAll("g.errorbar").data(f,m);if(M.exit().remove(),!!f.length){p.visible||M.selectAll("path.xerror").remove(),b.visible||M.selectAll("path.yerror").remove(),M.style("opacity",1);var y=M.enter().append("g").classed("errorbar",!0);u&&y.style("opacity",0).transition().duration(a.duration).style("opacity",1),Dae.setClipUrl(M,n.layerClipId,r),M.each(function(k){var S=qP.select(this),x=Fae(k,i,l);if(!(w&&!k.vis)){var T,d=S.select("path.yerror");if(b.visible&&tl(x.x)&&tl(x.yh)&&tl(x.ys)){var _=b.width;T="M"+(x.x-_)+","+x.yh+"h"+2*_+"m-"+_+",0V"+x.ys,x.noYS||(T+="m-"+_+",0h"+2*_),o=!d.size(),o?d=S.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("yerror",!0):u&&(d=d.transition().duration(a.duration).ease(a.easing)),d.attr("d",T)}else d.remove();var g=S.select("path.xerror");if(p.visible&&tl(x.y)&&tl(x.xh)&&tl(x.xs)){var c=(p.copy_ystyle?b:p).width;T="M"+x.xh+","+(x.y-c)+"v"+2*c+"m0,-"+c+"H"+x.xs,x.noXS||(T+="m0,-"+c+"v"+2*c),o=!g.size(),o?g=S.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("xerror",!0):u&&(g=g.transition().duration(a.duration).ease(a.easing)),g.attr("d",T)}else g.remove()}})}})};function Fae(e,r,t){var n={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(n.yh=t.c2p(e.yh),n.ys=t.c2p(e.ys),tl(n.ys)||(n.noYS=!0,n.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=r.c2p(e.xh),n.xs=r.c2p(e.xs),tl(n.xs)||(n.noXS=!0,n.xs=r.c2p(e.xs,!0))),n}});var VP=pe((sde,HP)=>{"use strict";var Iae=ot(),UP=Zr();HP.exports=function(r){r.each(function(t){var n=t[0].trace,a=n.error_y||{},o=n.error_x||{},i=Iae.select(this);i.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(UP.stroke,a.color),o.copy_ystyle&&(o=a),i.selectAll("path.xerror").style("stroke-width",o.thickness+"px").call(UP.stroke,o.color)})}});var WP=pe((ude,YP)=>{"use strict";var I0=ir(),GP=zn().overrideAll,N0=c3(),us={error_x:I0.extendFlat({},N0),error_y:I0.extendFlat({},N0)};delete us.error_x.copy_zstyle;delete us.error_y.copy_zstyle;delete us.error_y.copy_ystyle;var z0={error_x:I0.extendFlat({},N0),error_y:I0.extendFlat({},N0),error_z:I0.extendFlat({},N0)};delete z0.error_x.copy_ystyle;delete z0.error_y.copy_ystyle;delete z0.error_z.copy_ystyle;delete z0.error_z.copy_zstyle;YP.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:us,bar:us,histogram:us,scatter3d:GP(z0,"calc","nested"),scattergl:GP(us,"calc","nested")}},supplyDefaults:DP(),calc:zP(),makeComputeError:v3(),plot:BP(),style:VP(),hoverInfo:Nae};function Nae(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var ZP=pe((fde,XP)=>{"use strict";XP.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var rF=pe((cde,eF)=>{"use strict";var nl=ot(),p3=Sa(),rd=ln(),JP=Er(),vo=Ct(),ed=ti(),Ga=ir(),pi=Ga.strTranslate,jP=Mt().extendFlat,g3=Vo(),di=yt(),y3=Zr(),zae=Lf(),qae=Yn(),Oae=Si().flipScale,Bae=T1(),Uae=Am(),Hae=Ra(),m3=qn(),KP=m3.LINE_SPACING,QP=m3.FROM_TL,$P=m3.FROM_BR,Et=ZP().cn;function Vae(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Et.colorbar).data(Gae(e),function(n){return n._id});t.enter().append("g").attr("class",function(n){return n._id}).classed(Et.colorbar,!0),t.each(function(n){var a=nl.select(this);Ga.ensureSingle(a,"rect",Et.cbbg),Ga.ensureSingle(a,"g",Et.cbfills),Ga.ensureSingle(a,"g",Et.cblines),Ga.ensureSingle(a,"g",Et.cbaxis,function(i){i.classed(Et.crisp,!0)}),Ga.ensureSingle(a,"g",Et.cbtitleunshift,function(i){i.append("g").classed(Et.cbtitle,!0)}),Ga.ensureSingle(a,"rect",Et.cboutline);var o=Yae(a,n,e);o&&o.then&&(e._promises||[]).push(o),e._context.edits.colorbarPosition&&Wae(a,n,e)}),t.exit().each(function(n){rd.autoMargin(e,n._id)}).remove(),t.order()}function Gae(e){var r=e._fullLayout,t=e.calcdata,n=[],a,o,i,l;function u(S){return jP(S,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function s(){typeof l.calc=="function"?l.calc(e,i,a):(a._fillgradient=o.reversescale?Oae(o.colorscale):o.colorscale,a._zrange=[o[l.min],o[l.max]])}for(var f=0;f1){var re=Math.pow(10,Math.floor(Math.log(V)/Math.LN10));ie*=re*Ga.roundUp(V/re,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(ne.tick0=0)}ne.dtick=ie}ne.domain=n?[q+m/x.h,q+P-m/x.h]:[q+b/x.w,q+P-b/x.w],ne.setScale(),e.attr("transform",pi(Math.round(x.l),Math.round(x.t)));var H=e.select("."+Et.cbtitleunshift).attr("transform",pi(-Math.round(x.l),-Math.round(x.t))),te=ne.ticklabelposition,ue=ne.title.font.size,de=e.select("."+Et.cbaxis),ke,Ae=0,ve=0;function Te(Be,ge){var we={propContainer:ne,propName:r._propPrefix+"title",traceIndex:r._traceIndex,_meta:r._meta,placeholder:S._dfltTitle.colorbar,containerGroup:e.select("."+Et.cbtitle)},Me=Be.charAt(0)==="h"?Be.substr(1):"h"+Be;e.selectAll("."+Me+",."+Me+"-math-group").remove(),zae.draw(t,Be,jP(we,ge||{}))}function Ee(){if(n&&K||!n&&!K){var Be,ge;g==="top"&&(Be=b+x.l+O*w,ge=m+x.t+U*(1-q-P)+3+ue*.75),g==="bottom"&&(Be=b+x.l+O*w,ge=m+x.t+U*(1-q)-3-ue*.25),g==="right"&&(ge=m+x.t+U*M+3+ue*.75,Be=b+x.l+O*q),Te(ne._id+"title",{attributes:{x:Be,y:ge,"text-anchor":n?"start":"middle"}})}}function Pe(){if(n&&!K||!n&&K){var Be=ne.position||0,ge=ne._offset+ne._length/2,we,Me;if(g==="right")Me=ge,we=x.l+O*Be+10+ue*(ne.showticklabels?1:.5);else if(we=ge,g==="bottom"&&(Me=x.t+U*Be+10+(te.indexOf("inside")===-1?ne.tickfont.size:0)+(ne.ticks!=="intside"&&r.ticklen||0)),g==="top"){var me=_.text.split("
").length;Me=x.t+U*Be+10-I-KP*ue*me}Te((n?"h":"v")+ne._id+"title",{avoid:{selection:nl.select(t).selectAll("g."+ne._id+"tick"),side:g,offsetTop:n?0:x.t,offsetLeft:n?x.l:0,maxShift:n?S.width:S.height},attributes:{x:we,y:Me,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function Se(){if(!n&&!K||n&&K){var Be=e.select("."+Et.cbtitle),ge=Be.select("text"),we=[-u/2,u/2],Me=Be.select(".h"+ne._id+"title-math-group").node(),me=15.6;ge.node()&&(me=parseInt(ge.node().style.fontSize,10)*KP);var Re;if(Me?(Re=di.bBox(Me),ve=Re.width,Ae=Re.height,Ae>me&&(we[1]-=(Ae-me)/2)):ge.node()&&!ge.classed(Et.jsPlaceholder)&&(Re=di.bBox(ge.node()),ve=Re.width,Ae=Re.height),n){if(Ae){if(Ae+=5,g==="top")ne.domain[1]-=Ae/x.h,we[1]*=-1;else{ne.domain[0]+=Ae/x.h;var ce=qae.lineCount(ge);we[1]+=(1-ce)*me}Be.attr("transform",pi(we[0],we[1])),ne.setScale()}}else ve&&(g==="right"&&(ne.domain[0]+=(ve+ue/2)/x.w),Be.attr("transform",pi(we[0],we[1])),ne.setScale())}e.selectAll("."+Et.cbfills+",."+Et.cblines).attr("transform",n?pi(0,Math.round(x.h*(1-ne.domain[1]))):pi(Math.round(x.w*ne.domain[0]),0)),de.attr("transform",n?pi(0,Math.round(-x.t)):pi(Math.round(-x.l),0));var he=e.select("."+Et.cbfills).selectAll("rect."+Et.cbfill).attr("style","").data(D);he.enter().append("rect").classed(Et.cbfill,!0).attr("style",""),he.exit().remove();var ye=c.map(ne.c2p).map(Math.round).sort(function(We,Ue){return We-Ue});he.each(function(We,Ue){var Ge=[Ue===0?c[0]:(D[Ue]+D[Ue-1])/2,Ue===D.length-1?c[1]:(D[Ue]+D[Ue+1])/2].map(ne.c2p).map(Math.round);n&&(Ge[1]=Ga.constrain(Ge[1]+(Ge[1]>Ge[0])?1:-1,ye[0],ye[1]));var _e=nl.select(this).attr(n?"x":"y",X).attr(n?"y":"x",nl.min(Ge)).attr(n?"width":"height",Math.max(I,2)).attr(n?"height":"width",Math.max(nl.max(Ge)-nl.min(Ge),2));if(r._fillgradient)di.gradient(_e,t,r._id,n?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var De=h(We).replace("e-","");_e.attr("fill",p3(De).toHexString())}});var Ce=e.select("."+Et.cblines).selectAll("path."+Et.cbline).data(d.color&&d.width?N:[]);Ce.enter().append("path").classed(Et.cbline,!0),Ce.exit().remove(),Ce.each(function(We){var Ue=X,Ge=Math.round(ne.c2p(We))+d.width/2%1;nl.select(this).attr("d","M"+(n?Ue+","+Ge:Ge+","+Ue)+(n?"h":"v")+I).call(di.lineGroupStyle,d.width,A(We),d.dash)}),de.selectAll("g."+ne._id+"tick,path").remove();var ze=X+I+(u||0)/2-(r.ticks==="outside"?1:0),qe=vo.calcTicks(ne),$e=vo.getTickSigns(ne)[2];return vo.drawTicks(t,ne,{vals:ne.ticks==="inside"?vo.clipEnds(ne,qe):qe,layer:de,path:vo.makeTickPath(ne,ze,$e),transFn:vo.makeTransTickFn(ne)}),vo.drawLabels(t,ne,{vals:qe,layer:de,transFn:vo.makeTransTickLabelFn(ne),labelFns:vo.makeLabelFns(ne,ze)})}function Ne(){var Be,ge=I+u/2;te.indexOf("inside")===-1&&(Be=di.bBox(de.node()),ge+=n?Be.width:Be.height),ke=H.select("text");var we=0,Me=n&&g==="top",me=!n&&g==="right",Re=0;if(ke.node()&&!ke.classed(Et.jsPlaceholder)){var ce,he=H.select(".h"+ne._id+"title-math-group").node();he&&(n&&K||!n&&!K)?(Be=di.bBox(he),we=Be.width,ce=Be.height):(Be=di.bBox(H.node()),we=Be.right-x.l-(n?X:Q),ce=Be.bottom-x.t-(n?Q:X),!n&&g==="top"&&(ge+=Be.height,Re=Be.height)),me&&(ke.attr("transform",pi(we/2+ue/2,0)),we*=2),ge=Math.max(ge,n?we:ce)}var ye=(n?b:m)*2+ge+s+u/2,Ce=0;!n&&_.text&&p==="bottom"&&M<=0&&(Ce=ye/2,ye+=Ce,Re+=Ce),S._hColorbarMoveTitle=Ce,S._hColorbarMoveCBTitle=Re;var ze=s+u,qe=(n?X:Q)-ze/2-(n?b:0),$e=(n?Q:X)-(n?L:m+Re-Ce);e.select("."+Et.cbbg).attr("x",qe).attr("y",$e).attr(n?"width":"height",Math.max(ye-Ce,2)).attr(n?"height":"width",Math.max(L+ze,2)).call(y3.fill,f).call(y3.stroke,r.bordercolor).style("stroke-width",s);var We=me?Math.max(we-10,0):0;e.selectAll("."+Et.cboutline).attr("x",(n?X:Q+b)+We).attr("y",(n?Q+m-L:X)+(Me?Ae:0)).attr(n?"width":"height",Math.max(I,2)).attr(n?"height":"width",Math.max(L-(n?2*m+Ae:2*b+We),2)).call(y3.stroke,r.outlinecolor).style({fill:"none","stroke-width":u});var Ue=n?$*ye:0,Ge=n?0:(1-j)*ye-Re;if(Ue=k?x.l-Ue:-Ue,Ge=y?x.t-Ge:-Ge,e.attr("transform",pi(Ue,Ge)),!n&&(s||p3(f).getAlpha()&&!p3.equals(S.paper_bgcolor,f))){var _e=de.selectAll("text"),De=_e[0].length,Ke=e.select("."+Et.cbbg).node(),Ye=di.bBox(Ke),ar=di.getTranslate(e),se=2;_e.each(function(Mr,Ar){var nt=0,Yr=De-1;if(Ar===nt||Ar===Yr){var mr=di.bBox(this),ct=di.getTranslate(this),Cr;if(Ar===Yr){var Ur=mr.right+ct.x,xt=Ye.right+ar.x+Q-s-se+w;Cr=xt-Ur,Cr>0&&(Cr=0)}else if(Ar===nt){var zr=mr.left+ct.x,Hr=Ye.left+ar.x+Q+s+se;Cr=Hr-zr,Cr<0&&(Cr=0)}Cr&&(De<3?this.setAttribute("transform","translate("+Cr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var J={},ae=QP[v],Le=$P[v],He=QP[p],je=$P[p],nr=ye-I;n?(o==="pixels"?(J.y=M,J.t=L*He,J.b=L*je):(J.t=J.b=0,J.yt=M+a*He,J.yb=M-a*je),l==="pixels"?(J.x=w,J.l=ye*ae,J.r=ye*Le):(J.l=nr*ae,J.r=nr*Le,J.xl=w-i*ae,J.xr=w+i*Le)):(o==="pixels"?(J.x=w,J.l=L*ae,J.r=L*Le):(J.l=J.r=0,J.xl=w+a*ae,J.xr=w-a*Le),l==="pixels"?(J.y=1-M,J.t=ye*He,J.b=ye*je):(J.t=nr*He,J.b=nr*je,J.yt=M-i*He,J.yb=M+i*je));var fr=r.y<.5?"b":"t",br=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Sr={r:S.width-qe-Ue,l:qe+J.r,b:S.height-$e-Ge,t:$e+J.b};k&&y?rd.autoMargin(t,r._id,J):k?t._fullLayout._reservedMargin[r._id][fr]=Sr[fr]:y||n?t._fullLayout._reservedMargin[r._id][br]=Sr[br]:t._fullLayout._reservedMargin[r._id][fr]=Sr[fr]}return Ga.syncOrAsync([rd.previousPromises,Ee,Se,Pe,rd.previousPromises,Ne],t)}function Wae(e,r,t){var n=r.orientation==="v",a=t._fullLayout,o=a._size,i,l,u;ed.init({element:e.node(),gd:t,prepFn:function(){i=e.attr("transform"),g3(e)},moveFn:function(s,f){e.attr("transform",i+pi(s,f)),l=ed.align((n?r._uFrac:r._vFrac)+s/o.w,n?r._thickFrac:r._lenFrac,0,1,r.xanchor),u=ed.align((n?r._vFrac:1-r._uFrac)-f/o.h,n?r._lenFrac:r._thickFrac,0,1,r.yanchor);var v=ed.getCursor(l,u,r.xanchor,r.yanchor);g3(e,v)},doneFn:function(){if(g3(e),l!==void 0&&u!==void 0){var s={};s[r._propPrefix+"x"]=l,s[r._propPrefix+"y"]=u,r._traceIndex!==void 0?JP.call("_guiRestyle",t,s,r._traceIndex):JP.call("_guiRelayout",t,s)}}})}function Xae(e,r,t){var n=r._levels,a=[],o=[],i,l,u=n.end+n.size/100,s=n.size,f=1.001*t[0]-.001*t[1],v=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(i=n.start+l*s,!(s>0?i>=u:i<=u));l++)i>f&&i0?i>=u:i<=u));l++)i>t[0]&&i{"use strict";tF.exports={moduleType:"component",name:"colorbar",attributes:pv(),supplyDefaults:wg(),draw:rF().draw,hasColorbar:cg()}});var iF=pe((hde,aF)=>{"use strict";aF.exports={moduleType:"component",name:"legend",layoutAttributes:y2(),supplyLayoutDefaults:b2(),draw:P2(),style:E2()}});var lF=pe((dde,oF)=>{"use strict";oF.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var uF=pe((pde,sF)=>{"use strict";sF.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var b3=pe((gde,hF)=>{"use strict";var Jae=Er(),vF=ir(),x3=vF.extendFlat,fF=vF.extendDeep;function cF(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function Kae(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}hF.exports=function(r,t){var n,a=r.data,o=r.layout,i=fF([],a),l=fF({},o,cF(t.tileClass)),u=r._context||{};if(t.width&&(l.width=t.width),t.height&&(l.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){l.annotations=[];var s=Object.keys(l);for(n=0;n{"use strict";var Qae=tv().EventEmitter,$ae=Er(),jae=ir(),dF=jl(),eie=b3(),rie=s1(),tie=u1();function nie(e,r){var t=new Qae,n=eie(e,{format:"png"}),a=n.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function o(){var l=dF.getDelay(a._fullLayout);setTimeout(function(){var u=rie(a),s=document.createElement("canvas");s.id=jae.randstr(),t=tie({format:r.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:s,emitter:t,svg:u}),t.clean=function(){a&&document.body.removeChild(a)}},l)}var i=dF.getRedrawFunc(a);return $ae.call("_doPlot",a,n.data,n.layout,n.config).then(i).then(o).catch(function(l){t.emit("error",l)}),t}pF.exports=nie});var xF=pe((mde,mF)=>{"use strict";var yF=jl(),aie={getDelay:yF.getDelay,getRedrawFunc:yF.getRedrawFunc,clone:b3(),toSVG:s1(),svgToImg:u1(),toImage:gF(),downloadImage:Qy()};mF.exports=aie});var _F=pe(ho=>{"use strict";ho.version=mc().version;ub();j6();var iie=Er(),q0=ho.register=iie.register,w3=MC(),bF=Object.keys(w3);for(td=0;td{"use strict";wF.exports=_F()});var pn=pe((_de,TF)=>{(function(){var e={1964:function(a,o,i){a.exports={alpha_shape:i(3502),convex_hull:i(7352),delaunay_triangulate:i(7642),gl_cone3d:i(6405),gl_error3d:i(9165),gl_line3d:i(5714),gl_mesh3d:i(7201),gl_plot3d:i(4100),gl_scatter3d:i(8418),gl_streamtube3d:i(7815),gl_surface3d:i(9499),ndarray:i(9618),ndarray_linear_interpolate:i(4317)}},4793:function(a,o,i){"use strict";var l;function u(se,J){if(!(se instanceof J))throw new TypeError("Cannot call a class as a function")}function s(se,J){for(var ae=0;aeg)throw new RangeError('The value "'+se+'" is invalid for option "size"');var J=new Uint8Array(se);return Object.setPrototypeOf(J,h.prototype),J}function h(se,J,ae){if(typeof se=="number"){if(typeof J=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return N(se)}return R(se,J,ae)}h.poolSize=8192;function R(se,J,ae){if(typeof se=="string")return I(se,J);if(ArrayBuffer.isView(se))return L(se);if(se==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+x(se));if(_e(se,ArrayBuffer)||se&&_e(se.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(_e(se,SharedArrayBuffer)||se&&_e(se.buffer,SharedArrayBuffer)))return P(se,J,ae);if(typeof se=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Le=se.valueOf&&se.valueOf();if(Le!=null&&Le!==se)return h.from(Le,J,ae);var He=O(se);if(He)return He;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof se[Symbol.toPrimitive]=="function")return h.from(se[Symbol.toPrimitive]("string"),J,ae);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+x(se))}h.from=function(se,J,ae){return R(se,J,ae)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array);function E(se){if(typeof se!="number")throw new TypeError('"size" argument must be of type number');if(se<0)throw new RangeError('The value "'+se+'" is invalid for option "size"')}function D(se,J,ae){return E(se),se<=0?A(se):J!==void 0?typeof ae=="string"?A(se).fill(J,ae):A(se).fill(J):A(se)}h.alloc=function(se,J,ae){return D(se,J,ae)};function N(se){return E(se),A(se<0?0:U(se)|0)}h.allocUnsafe=function(se){return N(se)},h.allocUnsafeSlow=function(se){return N(se)};function I(se,J){if((typeof J!="string"||J==="")&&(J="utf8"),!h.isEncoding(J))throw new TypeError("Unknown encoding: "+J);var ae=$(se,J)|0,Le=A(ae),He=Le.write(se,J);return He!==ae&&(Le=Le.slice(0,He)),Le}function F(se){for(var J=se.length<0?0:U(se.length)|0,ae=A(J),Le=0;Le=g)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g.toString(16)+" bytes");return se|0}function X(se){return+se!=se&&(se=0),h.alloc(+se)}h.isBuffer=function(J){return J!=null&&J._isBuffer===!0&&J!==h.prototype},h.compare=function(J,ae){if(_e(J,Uint8Array)&&(J=h.from(J,J.offset,J.byteLength)),_e(ae,Uint8Array)&&(ae=h.from(ae,ae.offset,ae.byteLength)),!h.isBuffer(J)||!h.isBuffer(ae))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(J===ae)return 0;for(var Le=J.length,He=ae.length,je=0,nr=Math.min(Le,He);jeHe.length?(h.isBuffer(nr)||(nr=h.from(nr)),nr.copy(He,je)):Uint8Array.prototype.set.call(He,nr,je);else if(h.isBuffer(nr))nr.copy(He,je);else throw new TypeError('"list" argument must be an Array of Buffers');je+=nr.length}return He};function $(se,J){if(h.isBuffer(se))return se.length;if(ArrayBuffer.isView(se)||_e(se,ArrayBuffer))return se.byteLength;if(typeof se!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+x(se));var ae=se.length,Le=arguments.length>2&&arguments[2]===!0;if(!Le&&ae===0)return 0;for(var He=!1;;)switch(J){case"ascii":case"latin1":case"binary":return ae;case"utf8":case"utf-8":return qe(se).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae*2;case"hex":return ae>>>1;case"base64":return Ue(se).length;default:if(He)return Le?-1:qe(se).length;J=(""+J).toLowerCase(),He=!0}}h.byteLength=$;function j(se,J,ae){var Le=!1;if((J===void 0||J<0)&&(J=0),J>this.length||((ae===void 0||ae>this.length)&&(ae=this.length),ae<=0)||(ae>>>=0,J>>>=0,ae<=J))return"";for(se||(se="utf8");;)switch(se){case"hex":return Ae(this,J,ae);case"utf8":case"utf-8":return H(this,J,ae);case"ascii":return de(this,J,ae);case"latin1":case"binary":return ke(this,J,ae);case"base64":return re(this,J,ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ve(this,J,ae);default:if(Le)throw new TypeError("Unknown encoding: "+se);se=(se+"").toLowerCase(),Le=!0}}h.prototype._isBuffer=!0;function Y(se,J,ae){var Le=se[J];se[J]=se[ae],se[ae]=Le}h.prototype.swap16=function(){var J=this.length;if(J%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ae=0;aeae&&(J+=" ... "),""},_&&(h.prototype[_]=h.prototype.inspect),h.prototype.compare=function(J,ae,Le,He,je){if(_e(J,Uint8Array)&&(J=h.from(J,J.offset,J.byteLength)),!h.isBuffer(J))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+x(J));if(ae===void 0&&(ae=0),Le===void 0&&(Le=J?J.length:0),He===void 0&&(He=0),je===void 0&&(je=this.length),ae<0||Le>J.length||He<0||je>this.length)throw new RangeError("out of range index");if(He>=je&&ae>=Le)return 0;if(He>=je)return-1;if(ae>=Le)return 1;if(ae>>>=0,Le>>>=0,He>>>=0,je>>>=0,this===J)return 0;for(var nr=je-He,fr=Le-ae,br=Math.min(nr,fr),Sr=this.slice(He,je),Mr=J.slice(ae,Le),Ar=0;Ar2147483647?ae=2147483647:ae<-2147483648&&(ae=-2147483648),ae=+ae,De(ae)&&(ae=He?0:se.length-1),ae<0&&(ae=se.length+ae),ae>=se.length){if(He)return-1;ae=se.length-1}else if(ae<0)if(He)ae=0;else return-1;if(typeof J=="string"&&(J=h.from(J,Le)),h.isBuffer(J))return J.length===0?-1:Q(se,J,ae,Le,He);if(typeof J=="number")return J=J&255,typeof Uint8Array.prototype.indexOf=="function"?He?Uint8Array.prototype.indexOf.call(se,J,ae):Uint8Array.prototype.lastIndexOf.call(se,J,ae):Q(se,[J],ae,Le,He);throw new TypeError("val must be string, number or Buffer")}function Q(se,J,ae,Le,He){var je=1,nr=se.length,fr=J.length;if(Le!==void 0&&(Le=String(Le).toLowerCase(),Le==="ucs2"||Le==="ucs-2"||Le==="utf16le"||Le==="utf-16le")){if(se.length<2||J.length<2)return-1;je=2,nr/=2,fr/=2,ae/=2}function br(Yr,mr){return je===1?Yr[mr]:Yr.readUInt16BE(mr*je)}var Sr;if(He){var Mr=-1;for(Sr=ae;Srnr&&(ae=nr-fr),Sr=ae;Sr>=0;Sr--){for(var Ar=!0,nt=0;ntHe&&(Le=He)):Le=He;var je=J.length;Le>je/2&&(Le=je/2);var nr;for(nr=0;nr>>0,isFinite(Le)?(Le=Le>>>0,He===void 0&&(He="utf8")):(He=Le,Le=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var je=this.length-ae;if((Le===void 0||Le>je)&&(Le=je),J.length>0&&(Le<0||ae<0)||ae>this.length)throw new RangeError("Attempt to write outside buffer bounds");He||(He="utf8");for(var nr=!1;;)switch(He){case"hex":return ne(this,J,ae,Le);case"utf8":case"utf-8":return K(this,J,ae,Le);case"ascii":case"latin1":case"binary":return ie(this,J,ae,Le);case"base64":return ee(this,J,ae,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,J,ae,Le);default:if(nr)throw new TypeError("Unknown encoding: "+He);He=(""+He).toLowerCase(),nr=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function re(se,J,ae){return J===0&&ae===se.length?T.fromByteArray(se):T.fromByteArray(se.slice(J,ae))}function H(se,J,ae){ae=Math.min(se.length,ae);for(var Le=[],He=J;He239?4:je>223?3:je>191?2:1;if(He+fr<=ae){var br=void 0,Sr=void 0,Mr=void 0,Ar=void 0;switch(fr){case 1:je<128&&(nr=je);break;case 2:br=se[He+1],(br&192)===128&&(Ar=(je&31)<<6|br&63,Ar>127&&(nr=Ar));break;case 3:br=se[He+1],Sr=se[He+2],(br&192)===128&&(Sr&192)===128&&(Ar=(je&15)<<12|(br&63)<<6|Sr&63,Ar>2047&&(Ar<55296||Ar>57343)&&(nr=Ar));break;case 4:br=se[He+1],Sr=se[He+2],Mr=se[He+3],(br&192)===128&&(Sr&192)===128&&(Mr&192)===128&&(Ar=(je&15)<<18|(br&63)<<12|(Sr&63)<<6|Mr&63,Ar>65535&&Ar<1114112&&(nr=Ar))}}nr===null?(nr=65533,fr=1):nr>65535&&(nr-=65536,Le.push(nr>>>10&1023|55296),nr=56320|nr&1023),Le.push(nr),He+=fr}return ue(Le)}var te=4096;function ue(se){var J=se.length;if(J<=te)return String.fromCharCode.apply(String,se);for(var ae="",Le=0;LeLe)&&(ae=Le);for(var He="",je=J;jeLe&&(J=Le),ae<0?(ae+=Le,ae<0&&(ae=0)):ae>Le&&(ae=Le),aeae)throw new RangeError("Trying to access beyond buffer length")}h.prototype.readUintLE=h.prototype.readUIntLE=function(J,ae,Le){J=J>>>0,ae=ae>>>0,Le||Te(J,ae,this.length);for(var He=this[J],je=1,nr=0;++nr>>0,ae=ae>>>0,Le||Te(J,ae,this.length);for(var He=this[J+--ae],je=1;ae>0&&(je*=256);)He+=this[J+--ae]*je;return He},h.prototype.readUint8=h.prototype.readUInt8=function(J,ae){return J=J>>>0,ae||Te(J,1,this.length),this[J]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(J,ae){return J=J>>>0,ae||Te(J,2,this.length),this[J]|this[J+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(J,ae){return J=J>>>0,ae||Te(J,2,this.length),this[J]<<8|this[J+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(J,ae){return J=J>>>0,ae||Te(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+this[J+3]*16777216},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(J,ae){return J=J>>>0,ae||Te(J,4,this.length),this[J]*16777216+(this[J+1]<<16|this[J+2]<<8|this[J+3])},h.prototype.readBigUInt64LE=Ye(function(J){J=J>>>0,he(J,"offset");var ae=this[J],Le=this[J+7];(ae===void 0||Le===void 0)&&ye(J,this.length-8);var He=ae+this[++J]*Math.pow(2,8)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,24),je=this[++J]+this[++J]*Math.pow(2,8)+this[++J]*Math.pow(2,16)+Le*Math.pow(2,24);return BigInt(He)+(BigInt(je)<>>0,he(J,"offset");var ae=this[J],Le=this[J+7];(ae===void 0||Le===void 0)&&ye(J,this.length-8);var He=ae*Math.pow(2,24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+this[++J],je=this[++J]*Math.pow(2,24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+Le;return(BigInt(He)<>>0,ae=ae>>>0,Le||Te(J,ae,this.length);for(var He=this[J],je=1,nr=0;++nr=je&&(He-=Math.pow(2,8*ae)),He},h.prototype.readIntBE=function(J,ae,Le){J=J>>>0,ae=ae>>>0,Le||Te(J,ae,this.length);for(var He=ae,je=1,nr=this[J+--He];He>0&&(je*=256);)nr+=this[J+--He]*je;return je*=128,nr>=je&&(nr-=Math.pow(2,8*ae)),nr},h.prototype.readInt8=function(J,ae){return J=J>>>0,ae||Te(J,1,this.length),this[J]&128?(255-this[J]+1)*-1:this[J]},h.prototype.readInt16LE=function(J,ae){J=J>>>0,ae||Te(J,2,this.length);var Le=this[J]|this[J+1]<<8;return Le&32768?Le|4294901760:Le},h.prototype.readInt16BE=function(J,ae){J=J>>>0,ae||Te(J,2,this.length);var Le=this[J+1]|this[J]<<8;return Le&32768?Le|4294901760:Le},h.prototype.readInt32LE=function(J,ae){return J=J>>>0,ae||Te(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},h.prototype.readInt32BE=function(J,ae){return J=J>>>0,ae||Te(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},h.prototype.readBigInt64LE=Ye(function(J){J=J>>>0,he(J,"offset");var ae=this[J],Le=this[J+7];(ae===void 0||Le===void 0)&&ye(J,this.length-8);var He=this[J+4]+this[J+5]*Math.pow(2,8)+this[J+6]*Math.pow(2,16)+(Le<<24);return(BigInt(He)<>>0,he(J,"offset");var ae=this[J],Le=this[J+7];(ae===void 0||Le===void 0)&&ye(J,this.length-8);var He=(ae<<24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+this[++J];return(BigInt(He)<>>0,ae||Te(J,4,this.length),d.read(this,J,!0,23,4)},h.prototype.readFloatBE=function(J,ae){return J=J>>>0,ae||Te(J,4,this.length),d.read(this,J,!1,23,4)},h.prototype.readDoubleLE=function(J,ae){return J=J>>>0,ae||Te(J,8,this.length),d.read(this,J,!0,52,8)},h.prototype.readDoubleBE=function(J,ae){return J=J>>>0,ae||Te(J,8,this.length),d.read(this,J,!1,52,8)};function Ee(se,J,ae,Le,He,je){if(!h.isBuffer(se))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>He||Jse.length)throw new RangeError("Index out of range")}h.prototype.writeUintLE=h.prototype.writeUIntLE=function(J,ae,Le,He){if(J=+J,ae=ae>>>0,Le=Le>>>0,!He){var je=Math.pow(2,8*Le)-1;Ee(this,J,ae,Le,je,0)}var nr=1,fr=0;for(this[ae]=J&255;++fr>>0,Le=Le>>>0,!He){var je=Math.pow(2,8*Le)-1;Ee(this,J,ae,Le,je,0)}var nr=Le-1,fr=1;for(this[ae+nr]=J&255;--nr>=0&&(fr*=256);)this[ae+nr]=J/fr&255;return ae+Le},h.prototype.writeUint8=h.prototype.writeUInt8=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,1,255,0),this[ae]=J&255,ae+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,2,65535,0),this[ae]=J&255,this[ae+1]=J>>>8,ae+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,2,65535,0),this[ae]=J>>>8,this[ae+1]=J&255,ae+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,4,4294967295,0),this[ae+3]=J>>>24,this[ae+2]=J>>>16,this[ae+1]=J>>>8,this[ae]=J&255,ae+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,4,4294967295,0),this[ae]=J>>>24,this[ae+1]=J>>>16,this[ae+2]=J>>>8,this[ae+3]=J&255,ae+4};function Pe(se,J,ae,Le,He){ce(J,Le,He,se,ae,7);var je=Number(J&BigInt(4294967295));se[ae++]=je,je=je>>8,se[ae++]=je,je=je>>8,se[ae++]=je,je=je>>8,se[ae++]=je;var nr=Number(J>>BigInt(32)&BigInt(4294967295));return se[ae++]=nr,nr=nr>>8,se[ae++]=nr,nr=nr>>8,se[ae++]=nr,nr=nr>>8,se[ae++]=nr,ae}function Se(se,J,ae,Le,He){ce(J,Le,He,se,ae,7);var je=Number(J&BigInt(4294967295));se[ae+7]=je,je=je>>8,se[ae+6]=je,je=je>>8,se[ae+5]=je,je=je>>8,se[ae+4]=je;var nr=Number(J>>BigInt(32)&BigInt(4294967295));return se[ae+3]=nr,nr=nr>>8,se[ae+2]=nr,nr=nr>>8,se[ae+1]=nr,nr=nr>>8,se[ae]=nr,ae+8}h.prototype.writeBigUInt64LE=Ye(function(J){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Pe(this,J,ae,BigInt(0),BigInt("0xffffffffffffffff"))}),h.prototype.writeBigUInt64BE=Ye(function(J){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Se(this,J,ae,BigInt(0),BigInt("0xffffffffffffffff"))}),h.prototype.writeIntLE=function(J,ae,Le,He){if(J=+J,ae=ae>>>0,!He){var je=Math.pow(2,8*Le-1);Ee(this,J,ae,Le,je-1,-je)}var nr=0,fr=1,br=0;for(this[ae]=J&255;++nr>0)-br&255;return ae+Le},h.prototype.writeIntBE=function(J,ae,Le,He){if(J=+J,ae=ae>>>0,!He){var je=Math.pow(2,8*Le-1);Ee(this,J,ae,Le,je-1,-je)}var nr=Le-1,fr=1,br=0;for(this[ae+nr]=J&255;--nr>=0&&(fr*=256);)J<0&&br===0&&this[ae+nr+1]!==0&&(br=1),this[ae+nr]=(J/fr>>0)-br&255;return ae+Le},h.prototype.writeInt8=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,1,127,-128),J<0&&(J=255+J+1),this[ae]=J&255,ae+1},h.prototype.writeInt16LE=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,2,32767,-32768),this[ae]=J&255,this[ae+1]=J>>>8,ae+2},h.prototype.writeInt16BE=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,2,32767,-32768),this[ae]=J>>>8,this[ae+1]=J&255,ae+2},h.prototype.writeInt32LE=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,4,2147483647,-2147483648),this[ae]=J&255,this[ae+1]=J>>>8,this[ae+2]=J>>>16,this[ae+3]=J>>>24,ae+4},h.prototype.writeInt32BE=function(J,ae,Le){return J=+J,ae=ae>>>0,Le||Ee(this,J,ae,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),this[ae]=J>>>24,this[ae+1]=J>>>16,this[ae+2]=J>>>8,this[ae+3]=J&255,ae+4},h.prototype.writeBigInt64LE=Ye(function(J){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Pe(this,J,ae,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),h.prototype.writeBigInt64BE=Ye(function(J){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Se(this,J,ae,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ne(se,J,ae,Le,He,je){if(ae+Le>se.length)throw new RangeError("Index out of range");if(ae<0)throw new RangeError("Index out of range")}function Be(se,J,ae,Le,He){return J=+J,ae=ae>>>0,He||Ne(se,J,ae,4,34028234663852886e22,-34028234663852886e22),d.write(se,J,ae,Le,23,4),ae+4}h.prototype.writeFloatLE=function(J,ae,Le){return Be(this,J,ae,!0,Le)},h.prototype.writeFloatBE=function(J,ae,Le){return Be(this,J,ae,!1,Le)};function ge(se,J,ae,Le,He){return J=+J,ae=ae>>>0,He||Ne(se,J,ae,8,17976931348623157e292,-17976931348623157e292),d.write(se,J,ae,Le,52,8),ae+8}h.prototype.writeDoubleLE=function(J,ae,Le){return ge(this,J,ae,!0,Le)},h.prototype.writeDoubleBE=function(J,ae,Le){return ge(this,J,ae,!1,Le)},h.prototype.copy=function(J,ae,Le,He){if(!h.isBuffer(J))throw new TypeError("argument should be a Buffer");if(Le||(Le=0),!He&&He!==0&&(He=this.length),ae>=J.length&&(ae=J.length),ae||(ae=0),He>0&&He=this.length)throw new RangeError("Index out of range");if(He<0)throw new RangeError("sourceEnd out of bounds");He>this.length&&(He=this.length),J.length-ae>>0,Le=Le===void 0?this.length:Le>>>0,J||(J=0);var nr;if(typeof J=="number")for(nr=ae;nrMath.pow(2,32)?He=me(String(ae)):typeof ae=="bigint"&&(He=String(ae),(ae>Math.pow(BigInt(2),BigInt(32))||ae<-Math.pow(BigInt(2),BigInt(32)))&&(He=me(He)),He+="n"),Le+=" It must be ".concat(J,". Received ").concat(He),Le},RangeError);function me(se){for(var J="",ae=se.length,Le=se[0]==="-"?1:0;ae>=Le+4;ae-=3)J="_".concat(se.slice(ae-3,ae)).concat(J);return"".concat(se.slice(0,ae)).concat(J)}function Re(se,J,ae){he(J,"offset"),(se[J]===void 0||se[J+ae]===void 0)&&ye(J,se.length-(ae+1))}function ce(se,J,ae,Le,He,je){if(se>ae||se3?J===0||J===BigInt(0)?fr=">= 0".concat(nr," and < 2").concat(nr," ** ").concat((je+1)*8).concat(nr):fr=">= -(2".concat(nr," ** ").concat((je+1)*8-1).concat(nr,") and < 2 ** ")+"".concat((je+1)*8-1).concat(nr):fr=">= ".concat(J).concat(nr," and <= ").concat(ae).concat(nr),new we.ERR_OUT_OF_RANGE("value",fr,se)}Re(Le,He,je)}function he(se,J){if(typeof se!="number")throw new we.ERR_INVALID_ARG_TYPE(J,"number",se)}function ye(se,J,ae){throw Math.floor(se)!==se?(he(se,ae),new we.ERR_OUT_OF_RANGE(ae||"offset","an integer",se)):J<0?new we.ERR_BUFFER_OUT_OF_BOUNDS:new we.ERR_OUT_OF_RANGE(ae||"offset",">= ".concat(ae?1:0," and <= ").concat(J),se)}var Ce=/[^+/0-9A-Za-z-_]/g;function ze(se){if(se=se.split("=")[0],se=se.trim().replace(Ce,""),se.length<2)return"";for(;se.length%4!==0;)se=se+"=";return se}function qe(se,J){J=J||1/0;for(var ae,Le=se.length,He=null,je=[],nr=0;nr55295&&ae<57344){if(!He){if(ae>56319){(J-=3)>-1&&je.push(239,191,189);continue}else if(nr+1===Le){(J-=3)>-1&&je.push(239,191,189);continue}He=ae;continue}if(ae<56320){(J-=3)>-1&&je.push(239,191,189),He=ae;continue}ae=(He-55296<<10|ae-56320)+65536}else He&&(J-=3)>-1&&je.push(239,191,189);if(He=null,ae<128){if((J-=1)<0)break;je.push(ae)}else if(ae<2048){if((J-=2)<0)break;je.push(ae>>6|192,ae&63|128)}else if(ae<65536){if((J-=3)<0)break;je.push(ae>>12|224,ae>>6&63|128,ae&63|128)}else if(ae<1114112){if((J-=4)<0)break;je.push(ae>>18|240,ae>>12&63|128,ae>>6&63|128,ae&63|128)}else throw new Error("Invalid code point")}return je}function $e(se){for(var J=[],ae=0;ae>8,He=ae%256,je.push(He),je.push(Le);return je}function Ue(se){return T.toByteArray(ze(se))}function Ge(se,J,ae,Le){var He;for(He=0;He=J.length||He>=se.length);++He)J[He+ae]=se[He];return He}function _e(se,J){return se instanceof J||se!=null&&se.constructor!=null&&se.constructor.name!=null&&se.constructor.name===J.name}function De(se){return se!==se}var Ke=function(){for(var se="0123456789abcdef",J=new Array(256),ae=0;ae<16;++ae)for(var Le=ae*16,He=0;He<16;++He)J[Le+He]=se[ae]+se[He];return J}();function Ye(se){return typeof BigInt=="undefined"?ar:se}function ar(){throw new Error("BigInt not supported")}},9216:function(a){"use strict";a.exports=u,a.exports.isMobile=u,a.exports.default=u;var o=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/CrOS/,l=/android|ipad|playbook|silk/i;function u(s){s||(s={});var f=s.ua;if(!f&&typeof navigator!="undefined"&&(f=navigator.userAgent),f&&f.headers&&typeof f.headers["user-agent"]=="string"&&(f=f.headers["user-agent"]),typeof f!="string")return!1;var v=o.test(f)&&!i.test(f)||!!s.tablet&&l.test(f);return!v&&s.tablet&&s.featureDetect&&navigator&&navigator.maxTouchPoints>1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(v=!0),v}},6296:function(a,o,i){"use strict";a.exports=p;var l=i(7261),u=i(9977),s=i(1811);function f(b,m){this._controllerNames=Object.keys(b),this._controllerList=this._controllerNames.map(function(w){return b[w]}),this._mode=m,this._active=b[m],this._active||(this._mode="turntable",this._active=b.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var v=f.prototype;v.flush=function(b){for(var m=this._controllerList,w=0;w0)throw new Error("Invalid string. Length must be a multiple of 4");var T=S.indexOf("=");T===-1&&(T=x);var d=T===x?0:4-T%4;return[T,d]}function b(S){var x=p(S),T=x[0],d=x[1];return(T+d)*3/4-d}function m(S,x,T){return(x+T)*3/4-T}function w(S){var x,T=p(S),d=T[0],_=T[1],g=new u(m(S,d,_)),c=0,A=_>0?d-4:d,h;for(h=0;h>16&255,g[c++]=x>>8&255,g[c++]=x&255;return _===2&&(x=l[S.charCodeAt(h)]<<2|l[S.charCodeAt(h+1)]>>4,g[c++]=x&255),_===1&&(x=l[S.charCodeAt(h)]<<10|l[S.charCodeAt(h+1)]<<4|l[S.charCodeAt(h+2)]>>2,g[c++]=x>>8&255,g[c++]=x&255),g}function M(S){return i[S>>18&63]+i[S>>12&63]+i[S>>6&63]+i[S&63]}function y(S,x,T){for(var d,_=[],g=x;gA?A:c+g));return d===1?(x=S[T-1],_.push(i[x>>2]+i[x<<4&63]+"==")):d===2&&(x=(S[T-2]<<8)+S[T-1],_.push(i[x>>10]+i[x>>4&63]+i[x<<2&63]+"=")),_.join("")}},3865:function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]).add(f[0].mul(s[1])),s[1].mul(f[1]))}},1318:function(a){"use strict";a.exports=o;function o(i,l){return i[0].mul(l[1]).cmp(l[0].mul(i[1]))}},8697:function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]),s[1].mul(f[0]))}},7842:function(a,o,i){"use strict";var l=i(6330),u=i(1533),s=i(2651),f=i(6768),v=i(869),p=i(8697);a.exports=b;function b(m,w){if(l(m))return w?p(m,b(w)):[m[0].clone(),m[1].clone()];var M=0,y,k;if(u(m))y=m.clone();else if(typeof m=="string")y=f(m);else{if(m===0)return[s(0),s(1)];if(m===Math.floor(m))y=s(m);else{for(;m!==Math.floor(m);)m=m*Math.pow(2,256),M-=256;y=s(m)}}if(l(w))y.mul(w[1]),k=w[0].clone();else if(u(w))k=w.clone();else if(typeof w=="string")k=f(w);else if(!w)k=s(1);else if(w===Math.floor(w))k=s(w);else{for(;w!==Math.floor(w);)w=w*Math.pow(2,256),M+=256;k=s(w)}return M>0?y=y.ushln(M):M<0&&(k=k.ushln(-M)),v(y,k)}},6330:function(a,o,i){"use strict";var l=i(1533);a.exports=u;function u(s){return Array.isArray(s)&&s.length===2&&l(s[0])&&l(s[1])}},5716:function(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return s.cmp(new l(0))}},1369:function(a,o,i){"use strict";var l=i(5716);a.exports=u;function u(s){var f=s.length,v=s.words,p=0;if(f===1)p=v[0];else if(f===2)p=v[0]+v[1]*67108864;else for(var b=0;b20?52:p+32}},1533:function(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return s&&typeof s=="object"&&!!s.words}},2651:function(a,o,i){"use strict";var l=i(6859),u=i(2361);a.exports=s;function s(f){var v=u.exponent(f);return v<52?new l(f):new l(f*Math.pow(2,52-v)).ushln(v-52)}},869:function(a,o,i){"use strict";var l=i(2651),u=i(5716);a.exports=s;function s(f,v){var p=u(f),b=u(v);if(p===0)return[l(0),l(1)];if(b===0)return[l(0),l(0)];b<0&&(f=f.neg(),v=v.neg());var m=f.gcd(v);return m.cmpn(1)?[f.div(m),v.div(m)]:[f,v]}},6768:function(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return new l(s)}},6504:function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[0]),s[1].mul(f[1]))}},7721:function(a,o,i){"use strict";var l=i(5716);a.exports=u;function u(s){return l(s[0])*l(s[1])}},5572:function(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]).sub(s[1].mul(f[0])),s[1].mul(f[1]))}},946:function(a,o,i){"use strict";var l=i(1369),u=i(4025);a.exports=s;function s(f){var v=f[0],p=f[1];if(v.cmpn(0)===0)return 0;var b=v.abs().divmod(p.abs()),m=b.div,w=l(m),M=b.mod,y=v.negative!==p.negative?-1:1;if(M.cmpn(0)===0)return y*w;if(w){var k=u(w)+4,S=l(M.ushln(k).divRound(p));return y*(w+S*Math.pow(2,-k))}else{var x=p.bitLength()-M.bitLength()+53,S=l(M.ushln(x).divRound(p));return x<1023?y*S*Math.pow(2,-x):(S*=Math.pow(2,-1023),y*S*Math.pow(2,1023-x))}}},2478:function(a){"use strict";function o(v,p,b,m,w){for(var M=w+1;m<=w;){var y=m+w>>>1,k=v[y],S=b!==void 0?b(k,p):k-p;S>=0?(M=y,w=y-1):m=y+1}return M}function i(v,p,b,m,w){for(var M=w+1;m<=w;){var y=m+w>>>1,k=v[y],S=b!==void 0?b(k,p):k-p;S>0?(M=y,w=y-1):m=y+1}return M}function l(v,p,b,m,w){for(var M=m-1;m<=w;){var y=m+w>>>1,k=v[y],S=b!==void 0?b(k,p):k-p;S<0?(M=y,m=y+1):w=y-1}return M}function u(v,p,b,m,w){for(var M=m-1;m<=w;){var y=m+w>>>1,k=v[y],S=b!==void 0?b(k,p):k-p;S<=0?(M=y,m=y+1):w=y-1}return M}function s(v,p,b,m,w){for(;m<=w;){var M=m+w>>>1,y=v[M],k=b!==void 0?b(y,p):y-p;if(k===0)return M;k<=0?m=M+1:w=M-1}return-1}function f(v,p,b,m,w,M){return typeof b=="function"?M(v,p,b,m===void 0?0:m|0,w===void 0?v.length-1:w|0):M(v,p,void 0,b===void 0?0:b|0,m===void 0?v.length-1:m|0)}a.exports={ge:function(v,p,b,m,w){return f(v,p,b,m,w,o)},gt:function(v,p,b,m,w){return f(v,p,b,m,w,i)},lt:function(v,p,b,m,w){return f(v,p,b,m,w,l)},le:function(v,p,b,m,w){return f(v,p,b,m,w,u)},eq:function(v,p,b,m,w){return f(v,p,b,m,w,s)}}},8828:function(a,o){"use strict";"use restrict";var i=32;o.INT_BITS=i,o.INT_MAX=2147483647,o.INT_MIN=-1<0)-(s<0)},o.abs=function(s){var f=s>>i-1;return(s^f)-f},o.min=function(s,f){return f^(s^f)&-(s65535)<<4,s>>>=f,v=(s>255)<<3,s>>>=v,f|=v,v=(s>15)<<2,s>>>=v,f|=v,v=(s>3)<<1,s>>>=v,f|=v,f|s>>1},o.log10=function(s){return s>=1e9?9:s>=1e8?8:s>=1e7?7:s>=1e6?6:s>=1e5?5:s>=1e4?4:s>=1e3?3:s>=100?2:s>=10?1:0},o.popCount=function(s){return s=s-(s>>>1&1431655765),s=(s&858993459)+(s>>>2&858993459),(s+(s>>>4)&252645135)*16843009>>>24};function l(s){var f=32;return s&=-s,s&&f--,s&65535&&(f-=16),s&16711935&&(f-=8),s&252645135&&(f-=4),s&858993459&&(f-=2),s&1431655765&&(f-=1),f}o.countTrailingZeros=l,o.nextPow2=function(s){return s+=s===0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1},o.prevPow2=function(s){return s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s-(s>>>1)},o.parity=function(s){return s^=s>>>16,s^=s>>>8,s^=s>>>4,s&=15,27030>>>s&1};var u=new Array(256);(function(s){for(var f=0;f<256;++f){var v=f,p=f,b=7;for(v>>>=1;v;v>>>=1)p<<=1,p|=v&1,--b;s[f]=p<>>8&255]<<16|u[s>>>16&255]<<8|u[s>>>24&255]},o.interleave2=function(s,f){return s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,s|f<<1},o.deinterleave2=function(s,f){return s=s>>>f&1431655765,s=(s|s>>>1)&858993459,s=(s|s>>>2)&252645135,s=(s|s>>>4)&16711935,s=(s|s>>>16)&65535,s<<16>>16},o.interleave3=function(s,f,v){return s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,s|=f<<1,v&=1023,v=(v|v<<16)&4278190335,v=(v|v<<8)&251719695,v=(v|v<<4)&3272356035,v=(v|v<<2)&1227133513,s|v<<2},o.deinterleave3=function(s,f){return s=s>>>f&1227133513,s=(s|s>>>2)&3272356035,s=(s|s>>>4)&251719695,s=(s|s>>>8)&4278190335,s=(s|s>>>16)&1023,s<<22>>22},o.nextCombination=function(s){var f=s|s-1;return f+1|(~f&-~f)-1>>>l(s)+1}},6859:function(a,o,i){a=i.nmd(a),function(l,u){"use strict";function s(F,L){if(!F)throw new Error(L||"Assertion failed")}function f(F,L){F.super_=L;var P=function(){};P.prototype=L.prototype,F.prototype=new P,F.prototype.constructor=F}function v(F,L,P){if(v.isBN(F))return F;this.negative=0,this.words=null,this.length=0,this.red=null,F!==null&&((L==="le"||L==="be")&&(P=L,L=10),this._init(F||0,L||10,P||"be"))}typeof l=="object"?l.exports=v:u.BN=v,v.BN=v,v.wordSize=26;var p;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?p=window.Buffer:p=i(7790).Buffer}catch(F){}v.isBN=function(L){return L instanceof v?!0:L!==null&&typeof L=="object"&&L.constructor.wordSize===v.wordSize&&Array.isArray(L.words)},v.max=function(L,P){return L.cmp(P)>0?L:P},v.min=function(L,P){return L.cmp(P)<0?L:P},v.prototype._init=function(L,P,O){if(typeof L=="number")return this._initNumber(L,P,O);if(typeof L=="object")return this._initArray(L,P,O);P==="hex"&&(P=16),s(P===(P|0)&&P>=2&&P<=36),L=L.toString().replace(/\s+/g,"");var U=0;L[0]==="-"&&(U++,this.negative=1),U=0;U-=3)$=L[U]|L[U-1]<<8|L[U-2]<<16,this.words[X]|=$<>>26-j&67108863,j+=24,j>=26&&(j-=26,X++);else if(O==="le")for(U=0,X=0;U>>26-j&67108863,j+=24,j>=26&&(j-=26,X++);return this.strip()};function b(F,L){var P=F.charCodeAt(L);return P>=65&&P<=70?P-55:P>=97&&P<=102?P-87:P-48&15}function m(F,L,P){var O=b(F,P);return P-1>=L&&(O|=b(F,P-1)<<4),O}v.prototype._parseHex=function(L,P,O){this.length=Math.ceil((L.length-P)/6),this.words=new Array(this.length);for(var U=0;U=P;U-=2)j=m(L,P,U)<=18?(X-=18,$+=1,this.words[$]|=j>>>26):X+=8;else{var Y=L.length-P;for(U=Y%2===0?P+1:P;U=18?(X-=18,$+=1,this.words[$]|=j>>>26):X+=8}this.strip()};function w(F,L,P,O){for(var U=0,X=Math.min(F.length,P),$=L;$=49?U+=j-49+10:j>=17?U+=j-17+10:U+=j}return U}v.prototype._parseBase=function(L,P,O){this.words=[0],this.length=1;for(var U=0,X=1;X<=67108863;X*=P)U++;U--,X=X/P|0;for(var $=L.length-O,j=$%U,Y=Math.min($,$-j)+O,q=0,Q=O;Q1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},v.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},v.prototype.inspect=function(){return(this.red?""};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],y=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];v.prototype.toString=function(L,P){L=L||10,P=P|0||1;var O;if(L===16||L==="hex"){O="";for(var U=0,X=0,$=0;$>>24-U&16777215,X!==0||$!==this.length-1?O=M[6-Y.length]+Y+O:O=Y+O,U+=2,U>=26&&(U-=26,$--)}for(X!==0&&(O=X.toString(16)+O);O.length%P!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}if(L===(L|0)&&L>=2&&L<=36){var q=y[L],Q=k[L];O="";var ne=this.clone();for(ne.negative=0;!ne.isZero();){var K=ne.modn(Q).toString(L);ne=ne.idivn(Q),ne.isZero()?O=K+O:O=M[q-K.length]+K+O}for(this.isZero()&&(O="0"+O);O.length%P!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}s(!1,"Base should be between 2 and 36")},v.prototype.toNumber=function(){var L=this.words[0];return this.length===2?L+=this.words[1]*67108864:this.length===3&&this.words[2]===1?L+=4503599627370496+this.words[1]*67108864:this.length>2&&s(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-L:L},v.prototype.toJSON=function(){return this.toString(16)},v.prototype.toBuffer=function(L,P){return s(typeof p!="undefined"),this.toArrayLike(p,L,P)},v.prototype.toArray=function(L,P){return this.toArrayLike(Array,L,P)},v.prototype.toArrayLike=function(L,P,O){var U=this.byteLength(),X=O||Math.max(1,U);s(U<=X,"byte array longer than desired length"),s(X>0,"Requested array length <= 0"),this.strip();var $=P==="le",j=new L(X),Y,q,Q=this.clone();if($){for(q=0;!Q.isZero();q++)Y=Q.andln(255),Q.iushrn(8),j[q]=Y;for(;q=4096&&(O+=13,P>>>=13),P>=64&&(O+=7,P>>>=7),P>=8&&(O+=4,P>>>=4),P>=2&&(O+=2,P>>>=2),O+P},v.prototype._zeroBits=function(L){if(L===0)return 26;var P=L,O=0;return(P&8191)===0&&(O+=13,P>>>=13),(P&127)===0&&(O+=7,P>>>=7),(P&15)===0&&(O+=4,P>>>=4),(P&3)===0&&(O+=2,P>>>=2),(P&1)===0&&O++,O},v.prototype.bitLength=function(){var L=this.words[this.length-1],P=this._countBits(L);return(this.length-1)*26+P};function S(F){for(var L=new Array(F.bitLength()),P=0;P>>U}return L}v.prototype.zeroBits=function(){if(this.isZero())return 0;for(var L=0,P=0;PL.length?this.clone().ior(L):L.clone().ior(this)},v.prototype.uor=function(L){return this.length>L.length?this.clone().iuor(L):L.clone().iuor(this)},v.prototype.iuand=function(L){var P;this.length>L.length?P=L:P=this;for(var O=0;OL.length?this.clone().iand(L):L.clone().iand(this)},v.prototype.uand=function(L){return this.length>L.length?this.clone().iuand(L):L.clone().iuand(this)},v.prototype.iuxor=function(L){var P,O;this.length>L.length?(P=this,O=L):(P=L,O=this);for(var U=0;UL.length?this.clone().ixor(L):L.clone().ixor(this)},v.prototype.uxor=function(L){return this.length>L.length?this.clone().iuxor(L):L.clone().iuxor(this)},v.prototype.inotn=function(L){s(typeof L=="number"&&L>=0);var P=Math.ceil(L/26)|0,O=L%26;this._expand(P),O>0&&P--;for(var U=0;U0&&(this.words[U]=~this.words[U]&67108863>>26-O),this.strip()},v.prototype.notn=function(L){return this.clone().inotn(L)},v.prototype.setn=function(L,P){s(typeof L=="number"&&L>=0);var O=L/26|0,U=L%26;return this._expand(O+1),P?this.words[O]=this.words[O]|1<L.length?(O=this,U=L):(O=L,U=this);for(var X=0,$=0;$>>26;for(;X!==0&&$>>26;if(this.length=O.length,X!==0)this.words[this.length]=X,this.length++;else if(O!==this)for(;$L.length?this.clone().iadd(L):L.clone().iadd(this)},v.prototype.isub=function(L){if(L.negative!==0){L.negative=0;var P=this.iadd(L);return L.negative=1,P._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(L),this.negative=1,this._normSign();var O=this.cmp(L);if(O===0)return this.negative=0,this.length=1,this.words[0]=0,this;var U,X;O>0?(U=this,X=L):(U=L,X=this);for(var $=0,j=0;j>26,this.words[j]=P&67108863;for(;$!==0&&j>26,this.words[j]=P&67108863;if($===0&&j>>26,ne=Y&67108863,K=Math.min(q,L.length-1),ie=Math.max(0,q-F.length+1);ie<=K;ie++){var ee=q-ie|0;U=F.words[ee]|0,X=L.words[ie]|0,$=U*X+ne,Q+=$/67108864|0,ne=$&67108863}P.words[q]=ne|0,Y=Q|0}return Y!==0?P.words[q]=Y|0:P.length--,P.strip()}var T=function(L,P,O){var U=L.words,X=P.words,$=O.words,j=0,Y,q,Q,ne=U[0]|0,K=ne&8191,ie=ne>>>13,ee=U[1]|0,V=ee&8191,re=ee>>>13,H=U[2]|0,te=H&8191,ue=H>>>13,de=U[3]|0,ke=de&8191,Ae=de>>>13,ve=U[4]|0,Te=ve&8191,Ee=ve>>>13,Pe=U[5]|0,Se=Pe&8191,Ne=Pe>>>13,Be=U[6]|0,ge=Be&8191,we=Be>>>13,Me=U[7]|0,me=Me&8191,Re=Me>>>13,ce=U[8]|0,he=ce&8191,ye=ce>>>13,Ce=U[9]|0,ze=Ce&8191,qe=Ce>>>13,$e=X[0]|0,We=$e&8191,Ue=$e>>>13,Ge=X[1]|0,_e=Ge&8191,De=Ge>>>13,Ke=X[2]|0,Ye=Ke&8191,ar=Ke>>>13,se=X[3]|0,J=se&8191,ae=se>>>13,Le=X[4]|0,He=Le&8191,je=Le>>>13,nr=X[5]|0,fr=nr&8191,br=nr>>>13,Sr=X[6]|0,Mr=Sr&8191,Ar=Sr>>>13,nt=X[7]|0,Yr=nt&8191,mr=nt>>>13,ct=X[8]|0,Cr=ct&8191,Ur=ct>>>13,xt=X[9]|0,zr=xt&8191,Hr=xt>>>13;O.negative=L.negative^P.negative,O.length=19,Y=Math.imul(K,We),q=Math.imul(K,Ue),q=q+Math.imul(ie,We)|0,Q=Math.imul(ie,Ue);var Ot=(j+Y|0)+((q&8191)<<13)|0;j=(Q+(q>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,Y=Math.imul(V,We),q=Math.imul(V,Ue),q=q+Math.imul(re,We)|0,Q=Math.imul(re,Ue),Y=Y+Math.imul(K,_e)|0,q=q+Math.imul(K,De)|0,q=q+Math.imul(ie,_e)|0,Q=Q+Math.imul(ie,De)|0;var Lt=(j+Y|0)+((q&8191)<<13)|0;j=(Q+(q>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,Y=Math.imul(te,We),q=Math.imul(te,Ue),q=q+Math.imul(ue,We)|0,Q=Math.imul(ue,Ue),Y=Y+Math.imul(V,_e)|0,q=q+Math.imul(V,De)|0,q=q+Math.imul(re,_e)|0,Q=Q+Math.imul(re,De)|0,Y=Y+Math.imul(K,Ye)|0,q=q+Math.imul(K,ar)|0,q=q+Math.imul(ie,Ye)|0,Q=Q+Math.imul(ie,ar)|0;var yn=(j+Y|0)+((q&8191)<<13)|0;j=(Q+(q>>>13)|0)+(yn>>>26)|0,yn&=67108863,Y=Math.imul(ke,We),q=Math.imul(ke,Ue),q=q+Math.imul(Ae,We)|0,Q=Math.imul(Ae,Ue),Y=Y+Math.imul(te,_e)|0,q=q+Math.imul(te,De)|0,q=q+Math.imul(ue,_e)|0,Q=Q+Math.imul(ue,De)|0,Y=Y+Math.imul(V,Ye)|0,q=q+Math.imul(V,ar)|0,q=q+Math.imul(re,Ye)|0,Q=Q+Math.imul(re,ar)|0,Y=Y+Math.imul(K,J)|0,q=q+Math.imul(K,ae)|0,q=q+Math.imul(ie,J)|0,Q=Q+Math.imul(ie,ae)|0;var Gt=(j+Y|0)+((q&8191)<<13)|0;j=(Q+(q>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,Y=Math.imul(Te,We),q=Math.imul(Te,Ue),q=q+Math.imul(Ee,We)|0,Q=Math.imul(Ee,Ue),Y=Y+Math.imul(ke,_e)|0,q=q+Math.imul(ke,De)|0,q=q+Math.imul(Ae,_e)|0,Q=Q+Math.imul(Ae,De)|0,Y=Y+Math.imul(te,Ye)|0,q=q+Math.imul(te,ar)|0,q=q+Math.imul(ue,Ye)|0,Q=Q+Math.imul(ue,ar)|0,Y=Y+Math.imul(V,J)|0,q=q+Math.imul(V,ae)|0,q=q+Math.imul(re,J)|0,Q=Q+Math.imul(re,ae)|0,Y=Y+Math.imul(K,He)|0,q=q+Math.imul(K,je)|0,q=q+Math.imul(ie,He)|0,Q=Q+Math.imul(ie,je)|0;var Rt=(j+Y|0)+((q&8191)<<13)|0;j=(Q+(q>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,Y=Math.imul(Se,We),q=Math.imul(Se,Ue),q=q+Math.imul(Ne,We)|0,Q=Math.imul(Ne,Ue),Y=Y+Math.imul(Te,_e)|0,q=q+Math.imul(Te,De)|0,q=q+Math.imul(Ee,_e)|0,Q=Q+Math.imul(Ee,De)|0,Y=Y+Math.imul(ke,Ye)|0,q=q+Math.imul(ke,ar)|0,q=q+Math.imul(Ae,Ye)|0,Q=Q+Math.imul(Ae,ar)|0,Y=Y+Math.imul(te,J)|0,q=q+Math.imul(te,ae)|0,q=q+Math.imul(ue,J)|0,Q=Q+Math.imul(ue,ae)|0,Y=Y+Math.imul(V,He)|0,q=q+Math.imul(V,je)|0,q=q+Math.imul(re,He)|0,Q=Q+Math.imul(re,je)|0,Y=Y+Math.imul(K,fr)|0,q=q+Math.imul(K,br)|0,q=q+Math.imul(ie,fr)|0,Q=Q+Math.imul(ie,br)|0;var at=(j+Y|0)+((q&8191)<<13)|0;j=(Q+(q>>>13)|0)+(at>>>26)|0,at&=67108863,Y=Math.imul(ge,We),q=Math.imul(ge,Ue),q=q+Math.imul(we,We)|0,Q=Math.imul(we,Ue),Y=Y+Math.imul(Se,_e)|0,q=q+Math.imul(Se,De)|0,q=q+Math.imul(Ne,_e)|0,Q=Q+Math.imul(Ne,De)|0,Y=Y+Math.imul(Te,Ye)|0,q=q+Math.imul(Te,ar)|0,q=q+Math.imul(Ee,Ye)|0,Q=Q+Math.imul(Ee,ar)|0,Y=Y+Math.imul(ke,J)|0,q=q+Math.imul(ke,ae)|0,q=q+Math.imul(Ae,J)|0,Q=Q+Math.imul(Ae,ae)|0,Y=Y+Math.imul(te,He)|0,q=q+Math.imul(te,je)|0,q=q+Math.imul(ue,He)|0,Q=Q+Math.imul(ue,je)|0,Y=Y+Math.imul(V,fr)|0,q=q+Math.imul(V,br)|0,q=q+Math.imul(re,fr)|0,Q=Q+Math.imul(re,br)|0,Y=Y+Math.imul(K,Mr)|0,q=q+Math.imul(K,Ar)|0,q=q+Math.imul(ie,Mr)|0,Q=Q+Math.imul(ie,Ar)|0;var It=(j+Y|0)+((q&8191)<<13)|0;j=(Q+(q>>>13)|0)+(It>>>26)|0,It&=67108863,Y=Math.imul(me,We),q=Math.imul(me,Ue),q=q+Math.imul(Re,We)|0,Q=Math.imul(Re,Ue),Y=Y+Math.imul(ge,_e)|0,q=q+Math.imul(ge,De)|0,q=q+Math.imul(we,_e)|0,Q=Q+Math.imul(we,De)|0,Y=Y+Math.imul(Se,Ye)|0,q=q+Math.imul(Se,ar)|0,q=q+Math.imul(Ne,Ye)|0,Q=Q+Math.imul(Ne,ar)|0,Y=Y+Math.imul(Te,J)|0,q=q+Math.imul(Te,ae)|0,q=q+Math.imul(Ee,J)|0,Q=Q+Math.imul(Ee,ae)|0,Y=Y+Math.imul(ke,He)|0,q=q+Math.imul(ke,je)|0,q=q+Math.imul(Ae,He)|0,Q=Q+Math.imul(Ae,je)|0,Y=Y+Math.imul(te,fr)|0,q=q+Math.imul(te,br)|0,q=q+Math.imul(ue,fr)|0,Q=Q+Math.imul(ue,br)|0,Y=Y+Math.imul(V,Mr)|0,q=q+Math.imul(V,Ar)|0,q=q+Math.imul(re,Mr)|0,Q=Q+Math.imul(re,Ar)|0,Y=Y+Math.imul(K,Yr)|0,q=q+Math.imul(K,mr)|0,q=q+Math.imul(ie,Yr)|0,Q=Q+Math.imul(ie,mr)|0;var va=(j+Y|0)+((q&8191)<<13)|0;j=(Q+(q>>>13)|0)+(va>>>26)|0,va&=67108863,Y=Math.imul(he,We),q=Math.imul(he,Ue),q=q+Math.imul(ye,We)|0,Q=Math.imul(ye,Ue),Y=Y+Math.imul(me,_e)|0,q=q+Math.imul(me,De)|0,q=q+Math.imul(Re,_e)|0,Q=Q+Math.imul(Re,De)|0,Y=Y+Math.imul(ge,Ye)|0,q=q+Math.imul(ge,ar)|0,q=q+Math.imul(we,Ye)|0,Q=Q+Math.imul(we,ar)|0,Y=Y+Math.imul(Se,J)|0,q=q+Math.imul(Se,ae)|0,q=q+Math.imul(Ne,J)|0,Q=Q+Math.imul(Ne,ae)|0,Y=Y+Math.imul(Te,He)|0,q=q+Math.imul(Te,je)|0,q=q+Math.imul(Ee,He)|0,Q=Q+Math.imul(Ee,je)|0,Y=Y+Math.imul(ke,fr)|0,q=q+Math.imul(ke,br)|0,q=q+Math.imul(Ae,fr)|0,Q=Q+Math.imul(Ae,br)|0,Y=Y+Math.imul(te,Mr)|0,q=q+Math.imul(te,Ar)|0,q=q+Math.imul(ue,Mr)|0,Q=Q+Math.imul(ue,Ar)|0,Y=Y+Math.imul(V,Yr)|0,q=q+Math.imul(V,mr)|0,q=q+Math.imul(re,Yr)|0,Q=Q+Math.imul(re,mr)|0,Y=Y+Math.imul(K,Cr)|0,q=q+Math.imul(K,Ur)|0,q=q+Math.imul(ie,Cr)|0,Q=Q+Math.imul(ie,Ur)|0;var Kn=(j+Y|0)+((q&8191)<<13)|0;j=(Q+(q>>>13)|0)+(Kn>>>26)|0,Kn&=67108863,Y=Math.imul(ze,We),q=Math.imul(ze,Ue),q=q+Math.imul(qe,We)|0,Q=Math.imul(qe,Ue),Y=Y+Math.imul(he,_e)|0,q=q+Math.imul(he,De)|0,q=q+Math.imul(ye,_e)|0,Q=Q+Math.imul(ye,De)|0,Y=Y+Math.imul(me,Ye)|0,q=q+Math.imul(me,ar)|0,q=q+Math.imul(Re,Ye)|0,Q=Q+Math.imul(Re,ar)|0,Y=Y+Math.imul(ge,J)|0,q=q+Math.imul(ge,ae)|0,q=q+Math.imul(we,J)|0,Q=Q+Math.imul(we,ae)|0,Y=Y+Math.imul(Se,He)|0,q=q+Math.imul(Se,je)|0,q=q+Math.imul(Ne,He)|0,Q=Q+Math.imul(Ne,je)|0,Y=Y+Math.imul(Te,fr)|0,q=q+Math.imul(Te,br)|0,q=q+Math.imul(Ee,fr)|0,Q=Q+Math.imul(Ee,br)|0,Y=Y+Math.imul(ke,Mr)|0,q=q+Math.imul(ke,Ar)|0,q=q+Math.imul(Ae,Mr)|0,Q=Q+Math.imul(Ae,Ar)|0,Y=Y+Math.imul(te,Yr)|0,q=q+Math.imul(te,mr)|0,q=q+Math.imul(ue,Yr)|0,Q=Q+Math.imul(ue,mr)|0,Y=Y+Math.imul(V,Cr)|0,q=q+Math.imul(V,Ur)|0,q=q+Math.imul(re,Cr)|0,Q=Q+Math.imul(re,Ur)|0,Y=Y+Math.imul(K,zr)|0,q=q+Math.imul(K,Hr)|0,q=q+Math.imul(ie,zr)|0,Q=Q+Math.imul(ie,Hr)|0;var Fn=(j+Y|0)+((q&8191)<<13)|0;j=(Q+(q>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,Y=Math.imul(ze,_e),q=Math.imul(ze,De),q=q+Math.imul(qe,_e)|0,Q=Math.imul(qe,De),Y=Y+Math.imul(he,Ye)|0,q=q+Math.imul(he,ar)|0,q=q+Math.imul(ye,Ye)|0,Q=Q+Math.imul(ye,ar)|0,Y=Y+Math.imul(me,J)|0,q=q+Math.imul(me,ae)|0,q=q+Math.imul(Re,J)|0,Q=Q+Math.imul(Re,ae)|0,Y=Y+Math.imul(ge,He)|0,q=q+Math.imul(ge,je)|0,q=q+Math.imul(we,He)|0,Q=Q+Math.imul(we,je)|0,Y=Y+Math.imul(Se,fr)|0,q=q+Math.imul(Se,br)|0,q=q+Math.imul(Ne,fr)|0,Q=Q+Math.imul(Ne,br)|0,Y=Y+Math.imul(Te,Mr)|0,q=q+Math.imul(Te,Ar)|0,q=q+Math.imul(Ee,Mr)|0,Q=Q+Math.imul(Ee,Ar)|0,Y=Y+Math.imul(ke,Yr)|0,q=q+Math.imul(ke,mr)|0,q=q+Math.imul(Ae,Yr)|0,Q=Q+Math.imul(Ae,mr)|0,Y=Y+Math.imul(te,Cr)|0,q=q+Math.imul(te,Ur)|0,q=q+Math.imul(ue,Cr)|0,Q=Q+Math.imul(ue,Ur)|0,Y=Y+Math.imul(V,zr)|0,q=q+Math.imul(V,Hr)|0,q=q+Math.imul(re,zr)|0,Q=Q+Math.imul(re,Hr)|0;var Ma=(j+Y|0)+((q&8191)<<13)|0;j=(Q+(q>>>13)|0)+(Ma>>>26)|0,Ma&=67108863,Y=Math.imul(ze,Ye),q=Math.imul(ze,ar),q=q+Math.imul(qe,Ye)|0,Q=Math.imul(qe,ar),Y=Y+Math.imul(he,J)|0,q=q+Math.imul(he,ae)|0,q=q+Math.imul(ye,J)|0,Q=Q+Math.imul(ye,ae)|0,Y=Y+Math.imul(me,He)|0,q=q+Math.imul(me,je)|0,q=q+Math.imul(Re,He)|0,Q=Q+Math.imul(Re,je)|0,Y=Y+Math.imul(ge,fr)|0,q=q+Math.imul(ge,br)|0,q=q+Math.imul(we,fr)|0,Q=Q+Math.imul(we,br)|0,Y=Y+Math.imul(Se,Mr)|0,q=q+Math.imul(Se,Ar)|0,q=q+Math.imul(Ne,Mr)|0,Q=Q+Math.imul(Ne,Ar)|0,Y=Y+Math.imul(Te,Yr)|0,q=q+Math.imul(Te,mr)|0,q=q+Math.imul(Ee,Yr)|0,Q=Q+Math.imul(Ee,mr)|0,Y=Y+Math.imul(ke,Cr)|0,q=q+Math.imul(ke,Ur)|0,q=q+Math.imul(Ae,Cr)|0,Q=Q+Math.imul(Ae,Ur)|0,Y=Y+Math.imul(te,zr)|0,q=q+Math.imul(te,Hr)|0,q=q+Math.imul(ue,zr)|0,Q=Q+Math.imul(ue,Hr)|0;var xi=(j+Y|0)+((q&8191)<<13)|0;j=(Q+(q>>>13)|0)+(xi>>>26)|0,xi&=67108863,Y=Math.imul(ze,J),q=Math.imul(ze,ae),q=q+Math.imul(qe,J)|0,Q=Math.imul(qe,ae),Y=Y+Math.imul(he,He)|0,q=q+Math.imul(he,je)|0,q=q+Math.imul(ye,He)|0,Q=Q+Math.imul(ye,je)|0,Y=Y+Math.imul(me,fr)|0,q=q+Math.imul(me,br)|0,q=q+Math.imul(Re,fr)|0,Q=Q+Math.imul(Re,br)|0,Y=Y+Math.imul(ge,Mr)|0,q=q+Math.imul(ge,Ar)|0,q=q+Math.imul(we,Mr)|0,Q=Q+Math.imul(we,Ar)|0,Y=Y+Math.imul(Se,Yr)|0,q=q+Math.imul(Se,mr)|0,q=q+Math.imul(Ne,Yr)|0,Q=Q+Math.imul(Ne,mr)|0,Y=Y+Math.imul(Te,Cr)|0,q=q+Math.imul(Te,Ur)|0,q=q+Math.imul(Ee,Cr)|0,Q=Q+Math.imul(Ee,Ur)|0,Y=Y+Math.imul(ke,zr)|0,q=q+Math.imul(ke,Hr)|0,q=q+Math.imul(Ae,zr)|0,Q=Q+Math.imul(Ae,Hr)|0;var Gi=(j+Y|0)+((q&8191)<<13)|0;j=(Q+(q>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,Y=Math.imul(ze,He),q=Math.imul(ze,je),q=q+Math.imul(qe,He)|0,Q=Math.imul(qe,je),Y=Y+Math.imul(he,fr)|0,q=q+Math.imul(he,br)|0,q=q+Math.imul(ye,fr)|0,Q=Q+Math.imul(ye,br)|0,Y=Y+Math.imul(me,Mr)|0,q=q+Math.imul(me,Ar)|0,q=q+Math.imul(Re,Mr)|0,Q=Q+Math.imul(Re,Ar)|0,Y=Y+Math.imul(ge,Yr)|0,q=q+Math.imul(ge,mr)|0,q=q+Math.imul(we,Yr)|0,Q=Q+Math.imul(we,mr)|0,Y=Y+Math.imul(Se,Cr)|0,q=q+Math.imul(Se,Ur)|0,q=q+Math.imul(Ne,Cr)|0,Q=Q+Math.imul(Ne,Ur)|0,Y=Y+Math.imul(Te,zr)|0,q=q+Math.imul(Te,Hr)|0,q=q+Math.imul(Ee,zr)|0,Q=Q+Math.imul(Ee,Hr)|0;var Yi=(j+Y|0)+((q&8191)<<13)|0;j=(Q+(q>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,Y=Math.imul(ze,fr),q=Math.imul(ze,br),q=q+Math.imul(qe,fr)|0,Q=Math.imul(qe,br),Y=Y+Math.imul(he,Mr)|0,q=q+Math.imul(he,Ar)|0,q=q+Math.imul(ye,Mr)|0,Q=Q+Math.imul(ye,Ar)|0,Y=Y+Math.imul(me,Yr)|0,q=q+Math.imul(me,mr)|0,q=q+Math.imul(Re,Yr)|0,Q=Q+Math.imul(Re,mr)|0,Y=Y+Math.imul(ge,Cr)|0,q=q+Math.imul(ge,Ur)|0,q=q+Math.imul(we,Cr)|0,Q=Q+Math.imul(we,Ur)|0,Y=Y+Math.imul(Se,zr)|0,q=q+Math.imul(Se,Hr)|0,q=q+Math.imul(Ne,zr)|0,Q=Q+Math.imul(Ne,Hr)|0;var Wi=(j+Y|0)+((q&8191)<<13)|0;j=(Q+(q>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,Y=Math.imul(ze,Mr),q=Math.imul(ze,Ar),q=q+Math.imul(qe,Mr)|0,Q=Math.imul(qe,Ar),Y=Y+Math.imul(he,Yr)|0,q=q+Math.imul(he,mr)|0,q=q+Math.imul(ye,Yr)|0,Q=Q+Math.imul(ye,mr)|0,Y=Y+Math.imul(me,Cr)|0,q=q+Math.imul(me,Ur)|0,q=q+Math.imul(Re,Cr)|0,Q=Q+Math.imul(Re,Ur)|0,Y=Y+Math.imul(ge,zr)|0,q=q+Math.imul(ge,Hr)|0,q=q+Math.imul(we,zr)|0,Q=Q+Math.imul(we,Hr)|0;var nn=(j+Y|0)+((q&8191)<<13)|0;j=(Q+(q>>>13)|0)+(nn>>>26)|0,nn&=67108863,Y=Math.imul(ze,Yr),q=Math.imul(ze,mr),q=q+Math.imul(qe,Yr)|0,Q=Math.imul(qe,mr),Y=Y+Math.imul(he,Cr)|0,q=q+Math.imul(he,Ur)|0,q=q+Math.imul(ye,Cr)|0,Q=Q+Math.imul(ye,Ur)|0,Y=Y+Math.imul(me,zr)|0,q=q+Math.imul(me,Hr)|0,q=q+Math.imul(Re,zr)|0,Q=Q+Math.imul(Re,Hr)|0;var xo=(j+Y|0)+((q&8191)<<13)|0;j=(Q+(q>>>13)|0)+(xo>>>26)|0,xo&=67108863,Y=Math.imul(ze,Cr),q=Math.imul(ze,Ur),q=q+Math.imul(qe,Cr)|0,Q=Math.imul(qe,Ur),Y=Y+Math.imul(he,zr)|0,q=q+Math.imul(he,Hr)|0,q=q+Math.imul(ye,zr)|0,Q=Q+Math.imul(ye,Hr)|0;var bi=(j+Y|0)+((q&8191)<<13)|0;j=(Q+(q>>>13)|0)+(bi>>>26)|0,bi&=67108863,Y=Math.imul(ze,zr),q=Math.imul(ze,Hr),q=q+Math.imul(qe,zr)|0,Q=Math.imul(qe,Hr);var _i=(j+Y|0)+((q&8191)<<13)|0;return j=(Q+(q>>>13)|0)+(_i>>>26)|0,_i&=67108863,$[0]=Ot,$[1]=Lt,$[2]=yn,$[3]=Gt,$[4]=Rt,$[5]=at,$[6]=It,$[7]=va,$[8]=Kn,$[9]=Fn,$[10]=Ma,$[11]=xi,$[12]=Gi,$[13]=Yi,$[14]=Wi,$[15]=nn,$[16]=xo,$[17]=bi,$[18]=_i,j!==0&&($[19]=j,O.length++),O};Math.imul||(T=x);function d(F,L,P){P.negative=L.negative^F.negative,P.length=F.length+L.length;for(var O=0,U=0,X=0;X>>26)|0,U+=$>>>26,$&=67108863}P.words[X]=j,O=$,$=U}return O!==0?P.words[X]=O:P.length--,P.strip()}function _(F,L,P){var O=new g;return O.mulp(F,L,P)}v.prototype.mulTo=function(L,P){var O,U=this.length+L.length;return this.length===10&&L.length===10?O=T(this,L,P):U<63?O=x(this,L,P):U<1024?O=d(this,L,P):O=_(this,L,P),O};function g(F,L){this.x=F,this.y=L}g.prototype.makeRBT=function(L){for(var P=new Array(L),O=v.prototype._countBits(L)-1,U=0;U>=1;return U},g.prototype.permute=function(L,P,O,U,X,$){for(var j=0;j<$;j++)U[j]=P[L[j]],X[j]=O[L[j]]},g.prototype.transform=function(L,P,O,U,X,$){this.permute($,L,P,O,U,X);for(var j=1;j>>1)X++;return 1<>>13,O[2*$+1]=X&8191,X=X>>>13;for($=2*P;$>=26,P+=U/67108864|0,P+=X>>>26,this.words[O]=X&67108863}return P!==0&&(this.words[O]=P,this.length++),this},v.prototype.muln=function(L){return this.clone().imuln(L)},v.prototype.sqr=function(){return this.mul(this)},v.prototype.isqr=function(){return this.imul(this.clone())},v.prototype.pow=function(L){var P=S(L);if(P.length===0)return new v(1);for(var O=this,U=0;U=0);var P=L%26,O=(L-P)/26,U=67108863>>>26-P<<26-P,X;if(P!==0){var $=0;for(X=0;X>>26-P}$&&(this.words[X]=$,this.length++)}if(O!==0){for(X=this.length-1;X>=0;X--)this.words[X+O]=this.words[X];for(X=0;X=0);var U;P?U=(P-P%26)/26:U=0;var X=L%26,$=Math.min((L-X)/26,this.length),j=67108863^67108863>>>X<$)for(this.length-=$,q=0;q=0&&(Q!==0||q>=U);q--){var ne=this.words[q]|0;this.words[q]=Q<<26-X|ne>>>X,Q=ne&j}return Y&&Q!==0&&(Y.words[Y.length++]=Q),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},v.prototype.ishrn=function(L,P,O){return s(this.negative===0),this.iushrn(L,P,O)},v.prototype.shln=function(L){return this.clone().ishln(L)},v.prototype.ushln=function(L){return this.clone().iushln(L)},v.prototype.shrn=function(L){return this.clone().ishrn(L)},v.prototype.ushrn=function(L){return this.clone().iushrn(L)},v.prototype.testn=function(L){s(typeof L=="number"&&L>=0);var P=L%26,O=(L-P)/26,U=1<=0);var P=L%26,O=(L-P)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=O)return this;if(P!==0&&O++,this.length=Math.min(O,this.length),P!==0){var U=67108863^67108863>>>P<=67108864;P++)this.words[P]-=67108864,P===this.length-1?this.words[P+1]=1:this.words[P+1]++;return this.length=Math.max(this.length,P+1),this},v.prototype.isubn=function(L){if(s(typeof L=="number"),s(L<67108864),L<0)return this.iaddn(-L);if(this.negative!==0)return this.negative=0,this.iaddn(L),this.negative=1,this;if(this.words[0]-=L,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var P=0;P>26)-(Y/67108864|0),this.words[X+O]=$&67108863}for(;X>26,this.words[X+O]=$&67108863;if(j===0)return this.strip();for(s(j===-1),j=0,X=0;X>26,this.words[X]=$&67108863;return this.negative=1,this.strip()},v.prototype._wordDiv=function(L,P){var O=this.length-L.length,U=this.clone(),X=L,$=X.words[X.length-1]|0,j=this._countBits($);O=26-j,O!==0&&(X=X.ushln(O),U.iushln(O),$=X.words[X.length-1]|0);var Y=U.length-X.length,q;if(P!=="mod"){q=new v(null),q.length=Y+1,q.words=new Array(q.length);for(var Q=0;Q=0;K--){var ie=(U.words[X.length+K]|0)*67108864+(U.words[X.length+K-1]|0);for(ie=Math.min(ie/$|0,67108863),U._ishlnsubmul(X,ie,K);U.negative!==0;)ie--,U.negative=0,U._ishlnsubmul(X,1,K),U.isZero()||(U.negative^=1);q&&(q.words[K]=ie)}return q&&q.strip(),U.strip(),P!=="div"&&O!==0&&U.iushrn(O),{div:q||null,mod:U}},v.prototype.divmod=function(L,P,O){if(s(!L.isZero()),this.isZero())return{div:new v(0),mod:new v(0)};var U,X,$;return this.negative!==0&&L.negative===0?($=this.neg().divmod(L,P),P!=="mod"&&(U=$.div.neg()),P!=="div"&&(X=$.mod.neg(),O&&X.negative!==0&&X.iadd(L)),{div:U,mod:X}):this.negative===0&&L.negative!==0?($=this.divmod(L.neg(),P),P!=="mod"&&(U=$.div.neg()),{div:U,mod:$.mod}):(this.negative&L.negative)!==0?($=this.neg().divmod(L.neg(),P),P!=="div"&&(X=$.mod.neg(),O&&X.negative!==0&&X.isub(L)),{div:$.div,mod:X}):L.length>this.length||this.cmp(L)<0?{div:new v(0),mod:this}:L.length===1?P==="div"?{div:this.divn(L.words[0]),mod:null}:P==="mod"?{div:null,mod:new v(this.modn(L.words[0]))}:{div:this.divn(L.words[0]),mod:new v(this.modn(L.words[0]))}:this._wordDiv(L,P)},v.prototype.div=function(L){return this.divmod(L,"div",!1).div},v.prototype.mod=function(L){return this.divmod(L,"mod",!1).mod},v.prototype.umod=function(L){return this.divmod(L,"mod",!0).mod},v.prototype.divRound=function(L){var P=this.divmod(L);if(P.mod.isZero())return P.div;var O=P.div.negative!==0?P.mod.isub(L):P.mod,U=L.ushrn(1),X=L.andln(1),$=O.cmp(U);return $<0||X===1&&$===0?P.div:P.div.negative!==0?P.div.isubn(1):P.div.iaddn(1)},v.prototype.modn=function(L){s(L<=67108863);for(var P=(1<<26)%L,O=0,U=this.length-1;U>=0;U--)O=(P*O+(this.words[U]|0))%L;return O},v.prototype.idivn=function(L){s(L<=67108863);for(var P=0,O=this.length-1;O>=0;O--){var U=(this.words[O]|0)+P*67108864;this.words[O]=U/L|0,P=U%L}return this.strip()},v.prototype.divn=function(L){return this.clone().idivn(L)},v.prototype.egcd=function(L){s(L.negative===0),s(!L.isZero());var P=this,O=L.clone();P.negative!==0?P=P.umod(L):P=P.clone();for(var U=new v(1),X=new v(0),$=new v(0),j=new v(1),Y=0;P.isEven()&&O.isEven();)P.iushrn(1),O.iushrn(1),++Y;for(var q=O.clone(),Q=P.clone();!P.isZero();){for(var ne=0,K=1;(P.words[0]&K)===0&&ne<26;++ne,K<<=1);if(ne>0)for(P.iushrn(ne);ne-- >0;)(U.isOdd()||X.isOdd())&&(U.iadd(q),X.isub(Q)),U.iushrn(1),X.iushrn(1);for(var ie=0,ee=1;(O.words[0]&ee)===0&&ie<26;++ie,ee<<=1);if(ie>0)for(O.iushrn(ie);ie-- >0;)($.isOdd()||j.isOdd())&&($.iadd(q),j.isub(Q)),$.iushrn(1),j.iushrn(1);P.cmp(O)>=0?(P.isub(O),U.isub($),X.isub(j)):(O.isub(P),$.isub(U),j.isub(X))}return{a:$,b:j,gcd:O.iushln(Y)}},v.prototype._invmp=function(L){s(L.negative===0),s(!L.isZero());var P=this,O=L.clone();P.negative!==0?P=P.umod(L):P=P.clone();for(var U=new v(1),X=new v(0),$=O.clone();P.cmpn(1)>0&&O.cmpn(1)>0;){for(var j=0,Y=1;(P.words[0]&Y)===0&&j<26;++j,Y<<=1);if(j>0)for(P.iushrn(j);j-- >0;)U.isOdd()&&U.iadd($),U.iushrn(1);for(var q=0,Q=1;(O.words[0]&Q)===0&&q<26;++q,Q<<=1);if(q>0)for(O.iushrn(q);q-- >0;)X.isOdd()&&X.iadd($),X.iushrn(1);P.cmp(O)>=0?(P.isub(O),U.isub(X)):(O.isub(P),X.isub(U))}var ne;return P.cmpn(1)===0?ne=U:ne=X,ne.cmpn(0)<0&&ne.iadd(L),ne},v.prototype.gcd=function(L){if(this.isZero())return L.abs();if(L.isZero())return this.abs();var P=this.clone(),O=L.clone();P.negative=0,O.negative=0;for(var U=0;P.isEven()&&O.isEven();U++)P.iushrn(1),O.iushrn(1);do{for(;P.isEven();)P.iushrn(1);for(;O.isEven();)O.iushrn(1);var X=P.cmp(O);if(X<0){var $=P;P=O,O=$}else if(X===0||O.cmpn(1)===0)break;P.isub(O)}while(!0);return O.iushln(U)},v.prototype.invm=function(L){return this.egcd(L).a.umod(L)},v.prototype.isEven=function(){return(this.words[0]&1)===0},v.prototype.isOdd=function(){return(this.words[0]&1)===1},v.prototype.andln=function(L){return this.words[0]&L},v.prototype.bincn=function(L){s(typeof L=="number");var P=L%26,O=(L-P)/26,U=1<>>26,j&=67108863,this.words[$]=j}return X!==0&&(this.words[$]=X,this.length++),this},v.prototype.isZero=function(){return this.length===1&&this.words[0]===0},v.prototype.cmpn=function(L){var P=L<0;if(this.negative!==0&&!P)return-1;if(this.negative===0&&P)return 1;this.strip();var O;if(this.length>1)O=1;else{P&&(L=-L),s(L<=67108863,"Number is too big");var U=this.words[0]|0;O=U===L?0:UL.length)return 1;if(this.length=0;O--){var U=this.words[O]|0,X=L.words[O]|0;if(U!==X){UX&&(P=1);break}}return P},v.prototype.gtn=function(L){return this.cmpn(L)===1},v.prototype.gt=function(L){return this.cmp(L)===1},v.prototype.gten=function(L){return this.cmpn(L)>=0},v.prototype.gte=function(L){return this.cmp(L)>=0},v.prototype.ltn=function(L){return this.cmpn(L)===-1},v.prototype.lt=function(L){return this.cmp(L)===-1},v.prototype.lten=function(L){return this.cmpn(L)<=0},v.prototype.lte=function(L){return this.cmp(L)<=0},v.prototype.eqn=function(L){return this.cmpn(L)===0},v.prototype.eq=function(L){return this.cmp(L)===0},v.red=function(L){return new N(L)},v.prototype.toRed=function(L){return s(!this.red,"Already a number in reduction context"),s(this.negative===0,"red works only with positives"),L.convertTo(this)._forceRed(L)},v.prototype.fromRed=function(){return s(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},v.prototype._forceRed=function(L){return this.red=L,this},v.prototype.forceRed=function(L){return s(!this.red,"Already a number in reduction context"),this._forceRed(L)},v.prototype.redAdd=function(L){return s(this.red,"redAdd works only with red numbers"),this.red.add(this,L)},v.prototype.redIAdd=function(L){return s(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,L)},v.prototype.redSub=function(L){return s(this.red,"redSub works only with red numbers"),this.red.sub(this,L)},v.prototype.redISub=function(L){return s(this.red,"redISub works only with red numbers"),this.red.isub(this,L)},v.prototype.redShl=function(L){return s(this.red,"redShl works only with red numbers"),this.red.shl(this,L)},v.prototype.redMul=function(L){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.mul(this,L)},v.prototype.redIMul=function(L){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.imul(this,L)},v.prototype.redSqr=function(){return s(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},v.prototype.redISqr=function(){return s(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},v.prototype.redSqrt=function(){return s(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},v.prototype.redInvm=function(){return s(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},v.prototype.redNeg=function(){return s(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},v.prototype.redPow=function(L){return s(this.red&&!L.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,L)};var c={k256:null,p224:null,p192:null,p25519:null};function A(F,L){this.name=F,this.p=new v(L,16),this.n=this.p.bitLength(),this.k=new v(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}A.prototype._tmp=function(){var L=new v(null);return L.words=new Array(Math.ceil(this.n/13)),L},A.prototype.ireduce=function(L){var P=L,O;do this.split(P,this.tmp),P=this.imulK(P),P=P.iadd(this.tmp),O=P.bitLength();while(O>this.n);var U=O0?P.isub(this.p):P.strip!==void 0?P.strip():P._strip(),P},A.prototype.split=function(L,P){L.iushrn(this.n,0,P)},A.prototype.imulK=function(L){return L.imul(this.k)};function h(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(h,A),h.prototype.split=function(L,P){for(var O=4194303,U=Math.min(L.length,9),X=0;X>>22,$=j}$>>>=22,L.words[X-10]=$,$===0&&L.length>10?L.length-=10:L.length-=9},h.prototype.imulK=function(L){L.words[L.length]=0,L.words[L.length+1]=0,L.length+=2;for(var P=0,O=0;O>>=26,L.words[O]=X,P=U}return P!==0&&(L.words[L.length++]=P),L},v._prime=function(L){if(c[L])return c[L];var P;if(L==="k256")P=new h;else if(L==="p224")P=new R;else if(L==="p192")P=new E;else if(L==="p25519")P=new D;else throw new Error("Unknown prime "+L);return c[L]=P,P};function N(F){if(typeof F=="string"){var L=v._prime(F);this.m=L.p,this.prime=L}else s(F.gtn(1),"modulus must be greater than 1"),this.m=F,this.prime=null}N.prototype._verify1=function(L){s(L.negative===0,"red works only with positives"),s(L.red,"red works only with red numbers")},N.prototype._verify2=function(L,P){s((L.negative|P.negative)===0,"red works only with positives"),s(L.red&&L.red===P.red,"red works only with red numbers")},N.prototype.imod=function(L){return this.prime?this.prime.ireduce(L)._forceRed(this):L.umod(this.m)._forceRed(this)},N.prototype.neg=function(L){return L.isZero()?L.clone():this.m.sub(L)._forceRed(this)},N.prototype.add=function(L,P){this._verify2(L,P);var O=L.add(P);return O.cmp(this.m)>=0&&O.isub(this.m),O._forceRed(this)},N.prototype.iadd=function(L,P){this._verify2(L,P);var O=L.iadd(P);return O.cmp(this.m)>=0&&O.isub(this.m),O},N.prototype.sub=function(L,P){this._verify2(L,P);var O=L.sub(P);return O.cmpn(0)<0&&O.iadd(this.m),O._forceRed(this)},N.prototype.isub=function(L,P){this._verify2(L,P);var O=L.isub(P);return O.cmpn(0)<0&&O.iadd(this.m),O},N.prototype.shl=function(L,P){return this._verify1(L),this.imod(L.ushln(P))},N.prototype.imul=function(L,P){return this._verify2(L,P),this.imod(L.imul(P))},N.prototype.mul=function(L,P){return this._verify2(L,P),this.imod(L.mul(P))},N.prototype.isqr=function(L){return this.imul(L,L.clone())},N.prototype.sqr=function(L){return this.mul(L,L)},N.prototype.sqrt=function(L){if(L.isZero())return L.clone();var P=this.m.andln(3);if(s(P%2===1),P===3){var O=this.m.add(new v(1)).iushrn(2);return this.pow(L,O)}for(var U=this.m.subn(1),X=0;!U.isZero()&&U.andln(1)===0;)X++,U.iushrn(1);s(!U.isZero());var $=new v(1).toRed(this),j=$.redNeg(),Y=this.m.subn(1).iushrn(1),q=this.m.bitLength();for(q=new v(2*q*q).toRed(this);this.pow(q,Y).cmp(j)!==0;)q.redIAdd(j);for(var Q=this.pow(q,U),ne=this.pow(L,U.addn(1).iushrn(1)),K=this.pow(L,U),ie=X;K.cmp($)!==0;){for(var ee=K,V=0;ee.cmp($)!==0;V++)ee=ee.redSqr();s(V=0;X--){for(var Q=P.words[X],ne=q-1;ne>=0;ne--){var K=Q>>ne&1;if($!==U[0]&&($=this.sqr($)),K===0&&j===0){Y=0;continue}j<<=1,j|=K,Y++,!(Y!==O&&(X!==0||ne!==0))&&($=this.mul($,U[j]),Y=0,j=0)}q=26}return $},N.prototype.convertTo=function(L){var P=L.umod(this.m);return P===L?P.clone():P},N.prototype.convertFrom=function(L){var P=L.clone();return P.red=null,P},v.mont=function(L){return new I(L)};function I(F){N.call(this,F),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new v(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}f(I,N),I.prototype.convertTo=function(L){return this.imod(L.ushln(this.shift))},I.prototype.convertFrom=function(L){var P=this.imod(L.mul(this.rinv));return P.red=null,P},I.prototype.imul=function(L,P){if(L.isZero()||P.isZero())return L.words[0]=0,L.length=1,L;var O=L.imul(P),U=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),X=O.isub(U).iushrn(this.shift),$=X;return X.cmp(this.m)>=0?$=X.isub(this.m):X.cmpn(0)<0&&($=X.iadd(this.m)),$._forceRed(this)},I.prototype.mul=function(L,P){if(L.isZero()||P.isZero())return new v(0)._forceRed(this);var O=L.mul(P),U=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),X=O.isub(U).iushrn(this.shift),$=X;return X.cmp(this.m)>=0?$=X.isub(this.m):X.cmpn(0)<0&&($=X.iadd(this.m)),$._forceRed(this)},I.prototype.invm=function(L){var P=this.imod(L._invmp(this.m).mul(this.r2));return P._forceRed(this)}}(a,this)},6204:function(a){"use strict";a.exports=o;function o(i){var l,u,s,f=i.length,v=0;for(l=0;l>>1;if(!(g<=0)){var c,A=l.mallocDouble(2*g*d),h=l.mallocInt32(d);if(d=v(k,g,A,h),d>0){if(g===1&&T)u.init(d),c=u.sweepComplete(g,x,0,d,A,h,0,d,A,h);else{var R=l.mallocDouble(2*g*_),E=l.mallocInt32(_);_=v(S,g,R,E),_>0&&(u.init(d+_),g===1?c=u.sweepBipartite(g,x,0,d,A,h,0,_,R,E):c=s(g,x,T,d,A,h,_,R,E),l.free(R),l.free(E))}l.free(A),l.free(h)}return c}}}var b;function m(k,S){b.push([k,S])}function w(k){return b=[],p(k,k,m,!0),b}function M(k,S){return b=[],p(k,S,m,!1),b}function y(k,S,x){switch(arguments.length){case 1:return w(k);case 2:return typeof S=="function"?p(k,k,S,!0):M(k,S);case 3:return p(k,S,x,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455:function(a,o){"use strict";function i(){function s(p,b,m,w,M,y,k,S,x,T,d){for(var _=2*p,g=w,c=_*w;gx-S?s(p,b,m,w,M,y,k,S,x,T,d):f(p,b,m,w,M,y,k,S,x,T,d)}return v}function l(){function s(m,w,M,y,k,S,x,T,d,_,g){for(var c=2*m,A=y,h=c*y;A_-d?y?s(m,w,M,k,S,x,T,d,_,g,c):f(m,w,M,k,S,x,T,d,_,g,c):y?v(m,w,M,k,S,x,T,d,_,g,c):p(m,w,M,k,S,x,T,d,_,g,c)}return b}function u(s){return s?i():l()}o.partial=u(!1),o.full=u(!0)},7150:function(a,o,i){"use strict";a.exports=F;var l=i(1888),u=i(8828),s=i(2455),f=s.partial,v=s.full,p=i(855),b=i(3545),m=i(8105),w=128,M=1<<22,y=1<<22,k=m("!(lo>=p0)&&!(p1>=hi)"),S=m("lo===p0"),x=m("lo0;){Q-=1;var ie=Q*g,ee=h[ie],V=h[ie+1],re=h[ie+2],H=h[ie+3],te=h[ie+4],ue=h[ie+5],de=Q*c,ke=R[de],Ae=R[de+1],ve=ue&1,Te=!!(ue&16),Ee=X,Pe=$,Se=Y,Ne=q;if(ve&&(Ee=Y,Pe=q,Se=X,Ne=$),!(ue&2&&(re=x(L,ee,V,re,Ee,Pe,Ae),V>=re))&&!(ue&4&&(V=T(L,ee,V,re,Ee,Pe,ke),V>=re))){var Be=re-V,ge=te-H;if(Te){if(L*Be*(Be+ge)m&&M[_+b]>T;--d,_-=k){for(var g=_,c=_+k,A=0;A>>1,T=2*p,d=x,_=M[T*x+b];k=R?(d=h,_=R):A>=D?(d=c,_=A):(d=E,_=D):R>=D?(d=h,_=R):D>=A?(d=c,_=A):(d=E,_=D);for(var F=T*(S-1),L=T*d,N=0;N=p0)&&!(p1>=hi)":b};function i(m){return o[m]}function l(m,w,M,y,k,S,x){for(var T=2*m,d=T*M,_=d,g=M,c=w,A=m+w,h=M;y>h;++h,d+=T){var R=k[d+c];if(R===x)if(g===h)g+=1,_+=T;else{for(var E=0;T>E;++E){var D=k[d+E];k[d+E]=k[_],k[_++]=D}var N=S[h];S[h]=S[g],S[g++]=N}}return g}function u(m,w,M,y,k,S,x){for(var T=2*m,d=T*M,_=d,g=M,c=w,A=m+w,h=M;y>h;++h,d+=T){var R=k[d+c];if(RE;++E){var D=k[d+E];k[d+E]=k[_],k[_++]=D}var N=S[h];S[h]=S[g],S[g++]=N}}return g}function s(m,w,M,y,k,S,x){for(var T=2*m,d=T*M,_=d,g=M,c=w,A=m+w,h=M;y>h;++h,d+=T){var R=k[d+A];if(R<=x)if(g===h)g+=1,_+=T;else{for(var E=0;T>E;++E){var D=k[d+E];k[d+E]=k[_],k[_++]=D}var N=S[h];S[h]=S[g],S[g++]=N}}return g}function f(m,w,M,y,k,S,x){for(var T=2*m,d=T*M,_=d,g=M,c=w,A=m+w,h=M;y>h;++h,d+=T){var R=k[d+A];if(R<=x)if(g===h)g+=1,_+=T;else{for(var E=0;T>E;++E){var D=k[d+E];k[d+E]=k[_],k[_++]=D}var N=S[h];S[h]=S[g],S[g++]=N}}return g}function v(m,w,M,y,k,S,x){for(var T=2*m,d=T*M,_=d,g=M,c=w,A=m+w,h=M;y>h;++h,d+=T){var R=k[d+c],E=k[d+A];if(R<=x&&x<=E)if(g===h)g+=1,_+=T;else{for(var D=0;T>D;++D){var N=k[d+D];k[d+D]=k[_],k[_++]=N}var I=S[h];S[h]=S[g],S[g++]=I}}return g}function p(m,w,M,y,k,S,x){for(var T=2*m,d=T*M,_=d,g=M,c=w,A=m+w,h=M;y>h;++h,d+=T){var R=k[d+c],E=k[d+A];if(RD;++D){var N=k[d+D];k[d+D]=k[_],k[_++]=N}var I=S[h];S[h]=S[g],S[g++]=I}}return g}function b(m,w,M,y,k,S,x,T){for(var d=2*m,_=d*M,g=_,c=M,A=w,h=m+w,R=M;y>R;++R,_+=d){var E=k[_+A],D=k[_+h];if(!(E>=x)&&!(T>=D))if(c===R)c+=1,g+=d;else{for(var N=0;d>N;++N){var I=k[_+N];k[_+N]=k[g],k[g++]=I}var F=S[R];S[R]=S[c],S[c++]=F}}return c}},4192:function(a){"use strict";a.exports=i;var o=32;function i(w,M){M<=4*o?l(0,M-1,w):m(0,M-1,w)}function l(w,M,y){for(var k=2*(w+1),S=w+1;S<=M;++S){for(var x=y[k++],T=y[k++],d=S,_=k-2;d-- >w;){var g=y[_-2],c=y[_-1];if(gy[M+1]:!0}function b(w,M,y,k){w*=2;var S=k[w];return S>1,d=T-k,_=T+k,g=S,c=d,A=T,h=_,R=x,E=w+1,D=M-1,N=0;p(g,c,y)&&(N=g,g=c,c=N),p(h,R,y)&&(N=h,h=R,R=N),p(g,A,y)&&(N=g,g=A,A=N),p(c,A,y)&&(N=c,c=A,A=N),p(g,h,y)&&(N=g,g=h,h=N),p(A,h,y)&&(N=A,A=h,h=N),p(c,R,y)&&(N=c,c=R,R=N),p(c,A,y)&&(N=c,c=A,A=N),p(h,R,y)&&(N=h,h=R,R=N);for(var I=y[2*c],F=y[2*c+1],L=y[2*h],P=y[2*h+1],O=2*g,U=2*A,X=2*R,$=2*S,j=2*T,Y=2*x,q=0;q<2;++q){var Q=y[O+q],ne=y[U+q],K=y[X+q];y[$+q]=Q,y[j+q]=ne,y[Y+q]=K}s(d,w,y),s(_,M,y);for(var ie=E;ie<=D;++ie)if(b(ie,I,F,y))ie!==E&&u(ie,E,y),++E;else if(!b(ie,L,P,y))for(;;)if(b(D,L,P,y)){b(D,I,F,y)?(f(ie,E,D,y),++E,--D):(u(ie,D,y),--D);break}else{if(--D>>1;s(k,ne);for(var K=0,ie=0,j=0;j=f)ee=ee-f|0,x(m,w,ie--,ee);else if(ee>=0)x(p,b,K--,ee);else if(ee<=-f){ee=-ee-f|0;for(var V=0;V>>1;s(k,ne);for(var K=0,ie=0,ee=0,j=0;j>1===k[2*j+3]>>1&&(re=2,j+=1),V<0){for(var H=-(V>>1)-1,te=0;te>1)-1;re===0?x(p,b,K--,H):re===1?x(m,w,ie--,H):re===2&&x(M,y,ee--,H)}}}function g(A,h,R,E,D,N,I,F,L,P,O,U){var X=0,$=2*A,j=h,Y=h+A,q=1,Q=1;E?Q=f:q=f;for(var ne=D;ne>>1;s(k,V);for(var re=0,ne=0;ne=f?(te=!E,K-=f):(te=!!E,K-=1),te)T(p,b,re++,K);else{var ue=U[K],de=$*K,ke=O[de+h+1],Ae=O[de+h+1+A];e:for(var ve=0;ve>>1;s(k,K);for(var ie=0,Y=0;Y=f)p[ie++]=q-f;else{q-=1;var V=O[q],re=X*q,H=P[re+h+1],te=P[re+h+1+A];e:for(var ue=0;ue=0;--ue)if(p[ue]===q){for(var ve=ue+1;ve0;){for(var S=b.pop(),M=b.pop(),x=-1,T=-1,y=w[M],_=1;_=0||(p.flip(M,S),s(v,p,b,x,M,T),s(v,p,b,M,T,x),s(v,p,b,T,S,x),s(v,p,b,S,x,T))}}},5023:function(a,o,i){"use strict";var l=i(2478);a.exports=b;function u(m,w,M,y,k,S,x){this.cells=m,this.neighbor=w,this.flags=y,this.constraint=M,this.active=k,this.next=S,this.boundary=x}var s=u.prototype;function f(m,w){return m[0]-w[0]||m[1]-w[1]||m[2]-w[2]}s.locate=function(){var m=[0,0,0];return function(w,M,y){var k=w,S=M,x=y;return M0||x.length>0;){for(;S.length>0;){var c=S.pop();if(T[c]!==-k){T[c]=k;for(var A=d[c],h=0;h<3;++h){var R=g[3*c+h];R>=0&&T[R]===0&&(_[3*c+h]?x.push(R):(S.push(R),T[R]=k))}}}var E=x;x=S,S=E,x.length=0,k=-k}var D=p(d,T,w);return M?D.concat(y.boundary):D}},8902:function(a,o,i){"use strict";var l=i(2478),u=i(3250)[3],s=0,f=1,v=2;a.exports=x;function p(T,d,_,g,c){this.a=T,this.b=d,this.idx=_,this.lowerIds=g,this.upperIds=c}function b(T,d,_,g){this.a=T,this.b=d,this.type=_,this.idx=g}function m(T,d){var _=T.a[0]-d.a[0]||T.a[1]-d.a[1]||T.type-d.type;return _||T.type!==s&&(_=u(T.a,T.b,d.b),_)?_:T.idx-d.idx}function w(T,d){return u(T.a,T.b,d)}function M(T,d,_,g,c){for(var A=l.lt(d,g,w),h=l.gt(d,g,w),R=A;R1&&u(_[D[I-2]],_[D[I-1]],g)>0;)T.push([D[I-1],D[I-2],c]),I-=1;D.length=I,D.push(c);for(var N=E.upperIds,I=N.length;I>1&&u(_[N[I-2]],_[N[I-1]],g)<0;)T.push([N[I-2],N[I-1],c]),I-=1;N.length=I,N.push(c)}}function y(T,d){var _;return T.a[0]E[0]&&c.push(new b(E,R,v,A),new b(R,E,f,A))}c.sort(m);for(var D=c[0].a[0]-(1+Math.abs(c[0].a[0]))*Math.pow(2,-52),N=[new p([D,1],[D,0],-1,[],[],[],[])],I=[],A=0,F=c.length;A=0}}(),s.removeTriangle=function(p,b,m){var w=this.stars;f(w[p],b,m),f(w[b],m,p),f(w[m],p,b)},s.addTriangle=function(p,b,m){var w=this.stars;w[p].push(b,m),w[b].push(m,p),w[m].push(p,b)},s.opposite=function(p,b){for(var m=this.stars[b],w=1,M=m.length;w=0;--L){var Q=I[L];P=Q[0];var ne=D[P],K=ne[0],ie=ne[1],ee=E[K],V=E[ie];if((ee[0]-V[0]||ee[1]-V[1])<0){var re=K;K=ie,ie=re}ne[0]=K;var H=ne[1]=Q[1],te;for(F&&(te=ne[2]);L>0&&I[L-1][0]===P;){var Q=I[--L],ue=Q[1];F?D.push([H,ue,te]):D.push([H,ue]),H=ue}F?D.push([H,ie,te]):D.push([H,ie])}return O}function d(E,D,N){for(var I=D.length,F=new l(I),L=[],P=0;PD[2]?1:0)}function c(E,D,N){if(E.length!==0){if(D)for(var I=0;I0||P.length>0}function R(E,D,N){var I;if(N){I=D;for(var F=new Array(D.length),L=0;LT+1)throw new Error(S+" map requires nshades to be at least size "+k.length);Array.isArray(b.alpha)?b.alpha.length!==2?d=[1,1]:d=b.alpha.slice():typeof b.alpha=="number"?d=[b.alpha,b.alpha]:d=[1,1],m=k.map(function(R){return Math.round(R.index*T)}),d[0]=Math.min(Math.max(d[0],0),1),d[1]=Math.min(Math.max(d[1],0),1);var g=k.map(function(R,E){var D=k[E].index,N=k[E].rgb.slice();return N.length===4&&N[3]>=0&&N[3]<=1||(N[3]=d[0]+(d[1]-d[0])*D),N}),c=[];for(_=0;_=0}function b(m,w,M,y){var k=l(w,M,y);if(k===0){var S=u(l(m,w,M)),x=u(l(m,w,y));if(S===x){if(S===0){var T=p(m,w,M),d=p(m,w,y);return T===d?0:T?1:-1}return 0}else{if(x===0)return S>0||p(m,w,y)?-1:1;if(S===0)return x>0||p(m,w,M)?1:-1}return u(x-S)}var _=l(m,w,M);if(_>0)return k>0&&l(m,w,y)>0?1:-1;if(_<0)return k>0||l(m,w,y)>0?1:-1;var g=l(m,w,y);return g>0||p(m,w,M)?1:-1}},8572:function(a){"use strict";a.exports=function(i){return i<0?-1:i>0?1:0}},8507:function(a){a.exports=l;var o=Math.min;function i(u,s){return u-s}function l(u,s){var f=u.length,v=u.length-s.length;if(v)return v;switch(f){case 0:return 0;case 1:return u[0]-s[0];case 2:return u[0]+u[1]-s[0]-s[1]||o(u[0],u[1])-o(s[0],s[1]);case 3:var p=u[0]+u[1],b=s[0]+s[1];if(v=p+u[2]-(b+s[2]),v)return v;var m=o(u[0],u[1]),w=o(s[0],s[1]);return o(m,u[2])-o(w,s[2])||o(m+u[2],p)-o(w+s[2],b);case 4:var M=u[0],y=u[1],k=u[2],S=u[3],x=s[0],T=s[1],d=s[2],_=s[3];return M+y+k+S-(x+T+d+_)||o(M,y,k,S)-o(x,T,d,_,x)||o(M+y,M+k,M+S,y+k,y+S,k+S)-o(x+T,x+d,x+_,T+d,T+_,d+_)||o(M+y+k,M+y+S,M+k+S,y+k+S)-o(x+T+d,x+T+_,x+d+_,T+d+_);default:for(var g=u.slice().sort(i),c=s.slice().sort(i),A=0;Ai[u][0]&&(u=s);return lu?[[u],[l]]:[[l]]}},4750:function(a,o,i){"use strict";a.exports=u;var l=i(3090);function u(s){var f=l(s),v=f.length;if(v<=2)return[];for(var p=new Array(v),b=f[v-1],m=0;m=b[x]&&(S+=1);y[k]=S}}return p}function v(p,b){try{return l(p,!0)}catch(y){var m=u(p);if(m.length<=b)return[];var w=s(p,m),M=l(w,!0);return f(M,m)}}},4769:function(a){"use strict";function o(l,u,s,f,v,p){var b=6*v*v-6*v,m=3*v*v-4*v+1,w=-6*v*v+6*v,M=3*v*v-2*v;if(l.length){p||(p=new Array(l.length));for(var y=l.length-1;y>=0;--y)p[y]=b*l[y]+m*u[y]+w*s[y]+M*f[y];return p}return b*l+m*u+w*s[y]+M*f}function i(l,u,s,f,v,p){var b=v-1,m=v*v,w=b*b,M=(1+2*v)*w,y=v*w,k=m*(3-2*v),S=m*b;if(l.length){p||(p=new Array(l.length));for(var x=l.length-1;x>=0;--x)p[x]=M*l[x]+y*u[x]+k*s[x]+S*f[x];return p}return M*l+y*u+k*s+S*f}a.exports=i,a.exports.derivative=o},7642:function(a,o,i){"use strict";var l=i(8954),u=i(1682);a.exports=p;function s(b,m){this.point=b,this.index=m}function f(b,m){for(var w=b.point,M=m.point,y=w.length,k=0;k=2)return!1;N[F]=L}return!0}):D=D.filter(function(N){for(var I=0;I<=M;++I){var F=A[N[I]];if(F<0)return!1;N[I]=F}return!0}),M&1)for(var S=0;S>>31},a.exports.exponent=function(k){var S=a.exports.hi(k);return(S<<1>>>21)-1023},a.exports.fraction=function(k){var S=a.exports.lo(k),x=a.exports.hi(k),T=x&(1<<20)-1;return x&2146435072&&(T+=1048576),[S,T]},a.exports.denormalized=function(k){var S=a.exports.hi(k);return!(S&2146435072)}},1338:function(a){"use strict";function o(u,s,f){var v=u[f]|0;if(v<=0)return[];var p=new Array(v),b;if(f===u.length-1)for(b=0;b0)return i(u|0,s);break;case"object":if(typeof u.length=="number")return o(u,s,0);break}return[]}a.exports=l},3134:function(a,o,i){"use strict";a.exports=u;var l=i(1682);function u(s,f){var v=s.length;if(typeof f!="number"){f=0;for(var p=0;p=M-1)for(var _=S.length-1,c=m-w[M-1],g=0;g=M-1)for(var d=S.length-1,_=m-w[M-1],g=0;g=0;--M)if(m[--w])return!1;return!0},v.jump=function(m){var w=this.lastT(),M=this.dimension;if(!(m0;--g)y.push(s(T[g-1],d[g-1],arguments[g])),k.push(0)}},v.push=function(m){var w=this.lastT(),M=this.dimension;if(!(m1e-6?1/x:0;this._time.push(m);for(var c=M;c>0;--c){var A=s(d[c-1],_[c-1],arguments[c]);y.push(A),k.push((A-y[S++])*g)}}},v.set=function(m){var w=this.dimension;if(!(m0;--T)M.push(s(S[T-1],x[T-1],arguments[T])),y.push(0)}},v.move=function(m){var w=this.lastT(),M=this.dimension;if(!(m<=w||arguments.length!==M+1)){var y=this._state,k=this._velocity,S=y.length-this.dimension,x=this.bounds,T=x[0],d=x[1],_=m-w,g=_>1e-6?1/_:0;this._time.push(m);for(var c=M;c>0;--c){var A=arguments[c];y.push(s(T[c-1],d[c-1],y[S++]+A)),k.push(A*g)}}},v.idle=function(m){var w=this.lastT();if(!(m=0;--g)y.push(s(T[g],d[g],y[S]+_*k[S])),k.push(0),S+=1}};function p(m){for(var w=new Array(m),M=0;M=0;--E){var c=A[E];h[E]<=0?A[E]=new l(c._color,c.key,c.value,A[E+1],c.right,c._count+1):A[E]=new l(c._color,c.key,c.value,c.left,A[E+1],c._count+1)}for(var E=A.length-1;E>1;--E){var D=A[E-1],c=A[E];if(D._color===i||c._color===i)break;var N=A[E-2];if(N.left===D)if(D.left===c){var I=N.right;if(I&&I._color===o)D._color=i,N.right=s(i,I),N._color=o,E-=1;else{if(N._color=o,N.left=D.right,D._color=i,D.right=N,A[E-2]=D,A[E-1]=c,f(N),f(D),E>=3){var F=A[E-3];F.left===N?F.left=D:F.right=D}break}}else{var I=N.right;if(I&&I._color===o)D._color=i,N.right=s(i,I),N._color=o,E-=1;else{if(D.right=c.left,N._color=o,N.left=c.right,c._color=i,c.left=D,c.right=N,A[E-2]=c,A[E-1]=D,f(N),f(D),f(c),E>=3){var F=A[E-3];F.left===N?F.left=c:F.right=c}break}}else if(D.right===c){var I=N.left;if(I&&I._color===o)D._color=i,N.left=s(i,I),N._color=o,E-=1;else{if(N._color=o,N.right=D.left,D._color=i,D.left=N,A[E-2]=D,A[E-1]=c,f(N),f(D),E>=3){var F=A[E-3];F.right===N?F.right=D:F.left=D}break}}else{var I=N.left;if(I&&I._color===o)D._color=i,N.left=s(i,I),N._color=o,E-=1;else{if(D.left=c.right,N._color=o,N.right=c.left,c._color=i,c.right=D,c.left=N,A[E-2]=c,A[E-1]=D,f(N),f(D),f(c),E>=3){var F=A[E-3];F.right===N?F.right=c:F.left=c}break}}}return A[0]._color=i,new v(g,A[0])};function b(d,_){if(_.left){var g=b(d,_.left);if(g)return g}var g=d(_.key,_.value);if(g)return g;if(_.right)return b(d,_.right)}function m(d,_,g,c){var A=_(d,c.key);if(A<=0){if(c.left){var h=m(d,_,g,c.left);if(h)return h}var h=g(c.key,c.value);if(h)return h}if(c.right)return m(d,_,g,c.right)}function w(d,_,g,c,A){var h=g(d,A.key),R=g(_,A.key),E;if(h<=0&&(A.left&&(E=w(d,_,g,c,A.left),E)||R>0&&(E=c(A.key,A.value),E)))return E;if(R>0&&A.right)return w(d,_,g,c,A.right)}p.forEach=function(_,g,c){if(this.root)switch(arguments.length){case 1:return b(_,this.root);case 2:return m(g,this._compare,_,this.root);case 3:return this._compare(g,c)>=0?void 0:w(g,c,this._compare,_,this.root)}},Object.defineProperty(p,"begin",{get:function(){for(var d=[],_=this.root;_;)d.push(_),_=_.left;return new M(this,d)}}),Object.defineProperty(p,"end",{get:function(){for(var d=[],_=this.root;_;)d.push(_),_=_.right;return new M(this,d)}}),p.at=function(d){if(d<0)return new M(this,[]);for(var _=this.root,g=[];;){if(g.push(_),_.left){if(d<_.left._count){_=_.left;continue}d-=_.left._count}if(!d)return new M(this,g);if(d-=1,_.right){if(d>=_.right._count)break;_=_.right}else break}return new M(this,[])},p.ge=function(d){for(var _=this._compare,g=this.root,c=[],A=0;g;){var h=_(d,g.key);c.push(g),h<=0&&(A=c.length),h<=0?g=g.left:g=g.right}return c.length=A,new M(this,c)},p.gt=function(d){for(var _=this._compare,g=this.root,c=[],A=0;g;){var h=_(d,g.key);c.push(g),h<0&&(A=c.length),h<0?g=g.left:g=g.right}return c.length=A,new M(this,c)},p.lt=function(d){for(var _=this._compare,g=this.root,c=[],A=0;g;){var h=_(d,g.key);c.push(g),h>0&&(A=c.length),h<=0?g=g.left:g=g.right}return c.length=A,new M(this,c)},p.le=function(d){for(var _=this._compare,g=this.root,c=[],A=0;g;){var h=_(d,g.key);c.push(g),h>=0&&(A=c.length),h<0?g=g.left:g=g.right}return c.length=A,new M(this,c)},p.find=function(d){for(var _=this._compare,g=this.root,c=[];g;){var A=_(d,g.key);if(c.push(g),A===0)return new M(this,c);A<=0?g=g.left:g=g.right}return new M(this,[])},p.remove=function(d){var _=this.find(d);return _?_.remove():this},p.get=function(d){for(var _=this._compare,g=this.root;g;){var c=_(d,g.key);if(c===0)return g.value;c<=0?g=g.left:g=g.right}};function M(d,_){this.tree=d,this._stack=_}var y=M.prototype;Object.defineProperty(y,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(y,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),y.clone=function(){return new M(this.tree,this._stack.slice())};function k(d,_){d.key=_.key,d.value=_.value,d.left=_.left,d.right=_.right,d._color=_._color,d._count=_._count}function S(d){for(var _,g,c,A,h=d.length-1;h>=0;--h){if(_=d[h],h===0){_._color=i;return}if(g=d[h-1],g.left===_){if(c=g.right,c.right&&c.right._color===o){if(c=g.right=u(c),A=c.right=u(c.right),g.right=c.left,c.left=g,c.right=A,c._color=g._color,_._color=i,g._color=i,A._color=i,f(g),f(c),h>1){var R=d[h-2];R.left===g?R.left=c:R.right=c}d[h-1]=c;return}else if(c.left&&c.left._color===o){if(c=g.right=u(c),A=c.left=u(c.left),g.right=A.left,c.left=A.right,A.left=g,A.right=c,A._color=g._color,g._color=i,c._color=i,_._color=i,f(g),f(c),f(A),h>1){var R=d[h-2];R.left===g?R.left=A:R.right=A}d[h-1]=A;return}if(c._color===i)if(g._color===o){g._color=i,g.right=s(o,c);return}else{g.right=s(o,c);continue}else{if(c=u(c),g.right=c.left,c.left=g,c._color=g._color,g._color=o,f(g),f(c),h>1){var R=d[h-2];R.left===g?R.left=c:R.right=c}d[h-1]=c,d[h]=g,h+11){var R=d[h-2];R.right===g?R.right=c:R.left=c}d[h-1]=c;return}else if(c.right&&c.right._color===o){if(c=g.left=u(c),A=c.right=u(c.right),g.left=A.right,c.right=A.left,A.right=g,A.left=c,A._color=g._color,g._color=i,c._color=i,_._color=i,f(g),f(c),f(A),h>1){var R=d[h-2];R.right===g?R.right=A:R.left=A}d[h-1]=A;return}if(c._color===i)if(g._color===o){g._color=i,g.left=s(o,c);return}else{g.left=s(o,c);continue}else{if(c=u(c),g.left=c.right,c.right=g,c._color=g._color,g._color=o,f(g),f(c),h>1){var R=d[h-2];R.right===g?R.right=c:R.left=c}d[h-1]=c,d[h]=g,h+1=0;--c){var g=d[c];g.left===d[c+1]?_[c]=new l(g._color,g.key,g.value,_[c+1],g.right,g._count):_[c]=new l(g._color,g.key,g.value,g.left,_[c+1],g._count)}if(g=_[_.length-1],g.left&&g.right){var A=_.length;for(g=g.left;g.right;)_.push(g),g=g.right;var h=_[A-1];_.push(new l(g._color,h.key,h.value,g.left,g.right,g._count)),_[A-1].key=g.key,_[A-1].value=g.value;for(var c=_.length-2;c>=A;--c)g=_[c],_[c]=new l(g._color,g.key,g.value,g.left,_[c+1],g._count);_[A-1].left=_[A]}if(g=_[_.length-1],g._color===o){var R=_[_.length-2];R.left===g?R.left=null:R.right===g&&(R.right=null),_.pop();for(var c=0;c<_.length;++c)_[c]._count--;return new v(this.tree._compare,_[0])}else if(g.left||g.right){g.left?k(g,g.left):g.right&&k(g,g.right),g._color=i;for(var c=0;c<_.length-1;++c)_[c]._count--;return new v(this.tree._compare,_[0])}else{if(_.length===1)return new v(this.tree._compare,null);for(var c=0;c<_.length;++c)_[c]._count--;var E=_[_.length-2];S(_),E.left===g?E.left=null:E.right=null}return new v(this.tree._compare,_[0])},Object.defineProperty(y,"key",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(y,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(y,"index",{get:function(){var d=0,_=this._stack;if(_.length===0){var g=this.tree.root;return g?g._count:0}else _[_.length-1].left&&(d=_[_.length-1].left._count);for(var c=_.length-2;c>=0;--c)_[c+1]===_[c].right&&(++d,_[c].left&&(d+=_[c].left._count));return d},enumerable:!0}),y.next=function(){var d=this._stack;if(d.length!==0){var _=d[d.length-1];if(_.right)for(_=_.right;_;)d.push(_),_=_.left;else for(d.pop();d.length>0&&d[d.length-1].right===_;)_=d[d.length-1],d.pop()}},Object.defineProperty(y,"hasNext",{get:function(){var d=this._stack;if(d.length===0)return!1;if(d[d.length-1].right)return!0;for(var _=d.length-1;_>0;--_)if(d[_-1].left===d[_])return!0;return!1}}),y.update=function(d){var _=this._stack;if(_.length===0)throw new Error("Can't update empty node!");var g=new Array(_.length),c=_[_.length-1];g[g.length-1]=new l(c._color,c.key,d,c.left,c.right,c._count);for(var A=_.length-2;A>=0;--A)c=_[A],c.left===_[A+1]?g[A]=new l(c._color,c.key,c.value,g[A+1],c.right,c._count):g[A]=new l(c._color,c.key,c.value,c.left,g[A+1],c._count);return new v(this.tree._compare,g[0])},y.prev=function(){var d=this._stack;if(d.length!==0){var _=d[d.length-1];if(_.left)for(_=_.left;_;)d.push(_),_=_.right;else for(d.pop();d.length>0&&d[d.length-1].left===_;)_=d[d.length-1],d.pop()}},Object.defineProperty(y,"hasPrev",{get:function(){var d=this._stack;if(d.length===0)return!1;if(d[d.length-1].left)return!0;for(var _=d.length-1;_>0;--_)if(d[_-1].right===d[_])return!0;return!1}});function x(d,_){return d<_?-1:d>_?1:0}function T(d){return new v(d||x,null)}},3837:function(a,o,i){"use strict";a.exports=E;var l=i(4935),u=i(501),s=i(5304),f=i(6429),v=i(6444),p=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),b=ArrayBuffer,m=DataView;function w(D){return b.isView(D)&&!(D instanceof m)}function M(D){return Array.isArray(D)||w(D)}function y(D,N){return D[0]=N[0],D[1]=N[1],D[2]=N[2],D}function k(D){this.gl=D,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=s(D)}var S=k.prototype;S.update=function(D){D=D||{};function N(K,ie,ee){if(ee in D){var V=D[ee],re=this[ee],H;(K?M(V)&&M(V[0]):M(V))?this[ee]=H=[ie(V[0]),ie(V[1]),ie(V[2])]:this[ee]=H=[ie(V),ie(V),ie(V)];for(var te=0;te<3;++te)if(H[te]!==re[te])return!0}return!1}var I=N.bind(this,!1,Number),F=N.bind(this,!1,Boolean),L=N.bind(this,!1,String),P=N.bind(this,!0,function(K){if(M(K)){if(K.length===3)return[+K[0],+K[1],+K[2],1];if(K.length===4)return[+K[0],+K[1],+K[2],+K[3]]}return[0,0,0,1]}),O,U=!1,X=!1;if("bounds"in D)for(var $=D.bounds,j=0;j<2;++j)for(var Y=0;Y<3;++Y)$[j][Y]!==this.bounds[j][Y]&&(X=!0),this.bounds[j][Y]=$[j][Y];if("ticks"in D){O=D.ticks,U=!0,this.autoTicks=!1;for(var j=0;j<3;++j)this.tickSpacing[j]=0}else I("tickSpacing")&&(this.autoTicks=!0,X=!0);if(this._firstInit&&("ticks"in D||"tickSpacing"in D||(this.autoTicks=!0),X=!0,U=!0,this._firstInit=!1),X&&this.autoTicks&&(O=v.create(this.bounds,this.tickSpacing),U=!0),U){for(var j=0;j<3;++j)O[j].sort(function(ie,ee){return ie.x-ee.x});v.equal(O,this.ticks)?U=!1:this.ticks=O}F("tickEnable"),L("tickFont")&&(U=!0),L("tickFontStyle")&&(U=!0),L("tickFontWeight")&&(U=!0),L("tickFontVariant")&&(U=!0),I("tickSize"),I("tickAngle"),I("tickPad"),P("tickColor");var q=L("labels");L("labelFont")&&(q=!0),L("labelFontStyle")&&(q=!0),L("labelFontWeight")&&(q=!0),L("labelFontVariant")&&(q=!0),F("labelEnable"),I("labelSize"),I("labelPad"),P("labelColor"),F("lineEnable"),F("lineMirror"),I("lineWidth"),P("lineColor"),F("lineTickEnable"),F("lineTickMirror"),I("lineTickLength"),I("lineTickWidth"),P("lineTickColor"),F("gridEnable"),I("gridWidth"),P("gridColor"),F("zeroEnable"),P("zeroLineColor"),I("zeroLineWidth"),F("backgroundEnable"),P("backgroundColor");var Q=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],ne=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(q||U)&&this._text.update(this.bounds,this.labels,Q,this.ticks,ne):this._text=l(this.gl,this.bounds,this.labels,Q,this.ticks,ne),this._lines&&U&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=u(this.gl,this.bounds,this.ticks))};function x(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var T=[new x,new x,new x];function d(D,N,I,F,L){for(var P=D.primalOffset,O=D.primalMinor,U=D.mirrorOffset,X=D.mirrorMinor,$=F[N],j=0;j<3;++j)if(N!==j){var Y=P,q=U,Q=O,ne=X;$&1<0?(Q[j]=-1,ne[j]=0):(Q[j]=0,ne[j]=1)}}var _=[0,0,0],g={model:p,view:p,projection:p,_ortho:!1};S.isOpaque=function(){return!0},S.isTransparent=function(){return!1},S.drawTransparent=function(D){};var c=0,A=[0,0,0],h=[0,0,0],R=[0,0,0];S.draw=function(D){D=D||g;for(var ee=this.gl,N=D.model||p,I=D.view||p,F=D.projection||p,L=this.bounds,P=D._ortho||!1,O=f(N,I,F,L,P),U=O.cubeEdges,X=O.axis,$=I[12],j=I[13],Y=I[14],q=I[15],Q=P?2:1,ne=Q*this.pixelRatio*(F[3]*$+F[7]*j+F[11]*Y+F[15]*q)/ee.drawingBufferHeight,K=0;K<3;++K)this.lastCubeProps.cubeEdges[K]=U[K],this.lastCubeProps.axis[K]=X[K];for(var ie=T,K=0;K<3;++K)d(T[K],K,this.bounds,U,X);for(var ee=this.gl,V=_,K=0;K<3;++K)this.backgroundEnable[K]?V[K]=X[K]:V[K]=0;this._background.draw(N,I,F,L,V,this.backgroundColor),this._lines.bind(N,I,F,this);for(var K=0;K<3;++K){var re=[0,0,0];X[K]>0?re[K]=L[1][K]:re[K]=L[0][K];for(var H=0;H<2;++H){var te=(K+1+H)%3,ue=(K+1+(H^1))%3;this.gridEnable[te]&&this._lines.drawGrid(te,ue,this.bounds,re,this.gridColor[te],this.gridWidth[te]*this.pixelRatio)}for(var H=0;H<2;++H){var te=(K+1+H)%3,ue=(K+1+(H^1))%3;this.zeroEnable[ue]&&Math.min(L[0][ue],L[1][ue])<=0&&Math.max(L[0][ue],L[1][ue])>=0&&this._lines.drawZero(te,ue,this.bounds,re,this.zeroLineColor[ue],this.zeroLineWidth[ue]*this.pixelRatio)}}for(var K=0;K<3;++K){this.lineEnable[K]&&this._lines.drawAxisLine(K,this.bounds,ie[K].primalOffset,this.lineColor[K],this.lineWidth[K]*this.pixelRatio),this.lineMirror[K]&&this._lines.drawAxisLine(K,this.bounds,ie[K].mirrorOffset,this.lineColor[K],this.lineWidth[K]*this.pixelRatio);for(var de=y(A,ie[K].primalMinor),ke=y(h,ie[K].mirrorMinor),Ae=this.lineTickLength,H=0;H<3;++H){var ve=ne/N[5*H];de[H]*=Ae[H]*ve,ke[H]*=Ae[H]*ve}this.lineTickEnable[K]&&this._lines.drawAxisTicks(K,ie[K].primalOffset,de,this.lineTickColor[K],this.lineTickWidth[K]*this.pixelRatio),this.lineTickMirror[K]&&this._lines.drawAxisTicks(K,ie[K].mirrorOffset,ke,this.lineTickColor[K],this.lineTickWidth[K]*this.pixelRatio)}this._lines.unbind(),this._text.bind(N,I,F,this.pixelRatio);var Te,Ee=.5,Pe,Se;function Ne(Re){Se=[0,0,0],Se[Re]=1}function Be(Re,ce,he){var ye=(Re+1)%3,Ce=(Re+2)%3,ze=ce[ye],qe=ce[Ce],$e=he[ye],We=he[Ce];if(ze>0&&We>0){Ne(ye);return}else if(ze>0&&We<0){Ne(ye);return}else if(ze<0&&We>0){Ne(ye);return}else if(ze<0&&We<0){Ne(ye);return}else if(qe>0&&$e>0){Ne(Ce);return}else if(qe>0&&$e<0){Ne(Ce);return}else if(qe<0&&$e>0){Ne(Ce);return}else if(qe<0&&$e<0){Ne(Ce);return}}for(var K=0;K<3;++K){for(var ge=ie[K].primalMinor,we=ie[K].mirrorMinor,Me=y(R,ie[K].primalOffset),H=0;H<3;++H)this.lineTickEnable[K]&&(Me[H]+=ne*ge[H]*Math.max(this.lineTickLength[H],0)/N[5*H]);var me=[0,0,0];if(me[K]=1,this.tickEnable[K]){this.tickAngle[K]===-3600?(this.tickAngle[K]=0,this.tickAlign[K]="auto"):this.tickAlign[K]=-1,Pe=1,Te=[this.tickAlign[K],Ee,Pe],Te[0]==="auto"?Te[0]=c:Te[0]=parseInt(""+Te[0]),Se=[0,0,0],Be(K,ge,we);for(var H=0;H<3;++H)Me[H]+=ne*ge[H]*this.tickPad[H]/N[5*H];this._text.drawTicks(K,this.tickSize[K],this.tickAngle[K],Me,this.tickColor[K],me,Se,Te)}if(this.labelEnable[K]){Pe=0,Se=[0,0,0],this.labels[K].length>4&&(Ne(K),Pe=1),Te=[this.labelAlign[K],Ee,Pe],Te[0]==="auto"?Te[0]=c:Te[0]=parseInt(""+Te[0]);for(var H=0;H<3;++H)Me[H]+=ne*ge[H]*this.labelPad[H]/N[5*H];Me[K]+=.5*(L[0][K]+L[1][K]),this._text.drawLabel(K,this.labelSize[K],this.labelAngle[K],Me,this.labelColor[K],[0,0,0],Se,Te)}}this._text.unbind()},S.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function E(D,N){var I=new k(D);return I.update(N),I}},5304:function(a,o,i){"use strict";a.exports=p;var l=i(2762),u=i(8116),s=i(1879).bg;function f(b,m,w,M){this.gl=b,this.buffer=m,this.vao=w,this.shader=M}var v=f.prototype;v.draw=function(b,m,w,M,y,k){for(var S=!1,x=0;x<3;++x)S=S||y[x];if(S){var T=this.gl;T.enable(T.POLYGON_OFFSET_FILL),T.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:b,view:m,projection:w,bounds:M,enable:y,colors:k},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),T.disable(T.POLYGON_OFFSET_FILL)}},v.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function p(b){for(var m=[],w=[],M=0,y=0;y<3;++y)for(var k=(y+1)%3,S=(y+2)%3,x=[0,0,0],T=[0,0,0],d=-1;d<=1;d+=2){w.push(M,M+2,M+1,M+1,M+2,M+3),x[y]=d,T[y]=d;for(var _=-1;_<=1;_+=2){x[k]=_;for(var g=-1;g<=1;g+=2)x[S]=g,m.push(x[0],x[1],x[2],T[0],T[1],T[2]),M+=1}var c=k;k=S,S=c}var A=l(b,new Float32Array(m)),h=l(b,new Uint16Array(w),b.ELEMENT_ARRAY_BUFFER),R=u(b,[{buffer:A,type:b.FLOAT,size:3,offset:0,stride:24},{buffer:A,type:b.FLOAT,size:3,offset:12,stride:24}],h),E=s(b);return E.attributes.position.location=0,E.attributes.normal.location=1,new f(b,A,R,E)}},6429:function(a,o,i){"use strict";a.exports=d;var l=i(8828),u=i(6760),s=i(5202),f=i(3250),v=new Array(16),p=new Array(8),b=new Array(8),m=new Array(3),w=[0,0,0];(function(){for(var _=0;_<8;++_)p[_]=[1,1,1,1],b[_]=[1,1,1]})();function M(_,g,c){for(var A=0;A<4;++A){_[A]=c[12+A];for(var h=0;h<3;++h)_[A]+=g[h]*c[4*h+A]}}var y=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function k(_){for(var g=0;gX&&(I|=1<X){I|=1<b[E][1])&&(ie=E);for(var ee=-1,E=0;E<3;++E){var V=ie^1<b[re][0]&&(re=V)}}var H=S;H[0]=H[1]=H[2]=0,H[l.log2(ee^ie)]=ie&ee,H[l.log2(ie^re)]=ie&re;var te=re^7;te===I||te===K?(te=ee^7,H[l.log2(re^te)]=te&re):H[l.log2(ee^te)]=teⅇfor(var ue=x,de=I,P=0;P<3;++P)de&1<=0;--H){var te=Q[re[H]];g.push(ae*te[0],-ae*te[1],P)}}for(var A=[0,0,0],h=[0,0,0],R=[0,0,0],E=[0,0,0],D=1.25,N={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},I=0;I<3;++I){R[I]=g.length/b|0,c(.5*(S[0][I]+S[1][I]),x[I],T[I],12,D,N),E[I]=(g.length/b|0)-R[I],A[I]=g.length/b|0;for(var F=0;F=0&&(b=v.length-p-1);var m=Math.pow(10,b),w=Math.round(s*f*m),M=w+"";if(M.indexOf("e")>=0)return M;var y=w/m,k=w%m;w<0?(y=-Math.ceil(y)|0,k=-k|0):(y=Math.floor(y)|0,k=k|0);var S=""+y;if(w<0&&(S="-"+S),b){for(var x=""+k;x.length=s[0][p];--w)b.push({x:w*f[p],text:i(f[p],w)});v.push(b)}return v}function u(s,f){for(var v=0;v<3;++v){if(s[v].length!==f[v].length)return!1;for(var p=0;pS)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return y.bufferSubData(k,d,T),S}function m(y,k){for(var S=l.malloc(y.length,k),x=y.length,T=0;T=0;--x){if(k[x]!==S)return!1;S*=y[x]}return!0}p.update=function(y,k){if(typeof k!="number"&&(k=-1),this.bind(),typeof y=="object"&&typeof y.shape!="undefined"){var S=y.dtype;if(f.indexOf(S)<0&&(S="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var x=gl.getExtension("OES_element_index_uint");x&&S!=="uint16"?S="uint32":S="uint16"}if(S===y.dtype&&w(y.shape,y.stride))y.offset===0&&y.data.length===y.shape[0]?this.length=b(this.gl,this.type,this.length,this.usage,y.data,k):this.length=b(this.gl,this.type,this.length,this.usage,y.data.subarray(y.offset,y.shape[0]),k);else{var T=l.malloc(y.size,S),d=s(T,y.shape);u.assign(d,y),k<0?this.length=b(this.gl,this.type,this.length,this.usage,T,k):this.length=b(this.gl,this.type,this.length,this.usage,T.subarray(0,y.size),k),l.free(T)}}else if(Array.isArray(y)){var _;this.type===this.gl.ELEMENT_ARRAY_BUFFER?_=m(y,"uint16"):_=m(y,"float32"),k<0?this.length=b(this.gl,this.type,this.length,this.usage,_,k):this.length=b(this.gl,this.type,this.length,this.usage,_.subarray(0,y.length),k),l.free(_)}else if(typeof y=="object"&&typeof y.length=="number")this.length=b(this.gl,this.type,this.length,this.usage,y,k);else if(typeof y=="number"||y===void 0){if(k>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");y=y|0,y<=0&&(y=1),this.gl.bufferData(this.type,y|0,this.usage),this.length=y}else throw new Error("gl-buffer: Invalid data type")};function M(y,k,S,x){if(S=S||y.ARRAY_BUFFER,x=x||y.DYNAMIC_DRAW,S!==y.ARRAY_BUFFER&&S!==y.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(x!==y.DYNAMIC_DRAW&&x!==y.STATIC_DRAW&&x!==y.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var T=y.createBuffer(),d=new v(y,S,T,0,x);return d.update(k),d}a.exports=M},6405:function(a,o,i){"use strict";var l=i(2931);a.exports=function(s,f){var v=s.positions,p=s.vectors,b={positions:[],vertexIntensity:[],vertexIntensityBounds:s.vertexIntensityBounds,vectors:[],cells:[],coneOffset:s.coneOffset,colormap:s.colormap};if(s.positions.length===0)return f&&(f[0]=[0,0,0],f[1]=[0,0,0]),b;for(var m=0,w=1/0,M=-1/0,y=1/0,k=-1/0,S=1/0,x=-1/0,T=null,d=null,_=[],g=1/0,c=!1,A=s.coneSizemode==="raw",h=0;hm&&(m=l.length(E)),h&&!A){var D=2*l.distance(T,R)/(l.length(d)+l.length(E));D?(g=Math.min(g,D),c=!1):c=!0}c||(T=R,d=E),_.push(E)}var N=[w,y,S],I=[M,k,x];f&&(f[0]=N,f[1]=I),m===0&&(m=1);var F=1/m;isFinite(g)||(g=1),b.vectorScale=g;var L=s.coneSize||(A?1:.5);s.absoluteConeSize&&(L=s.absoluteConeSize*F),b.coneScale=L;for(var h=0,P=0;h=1},y.isTransparent=function(){return this.opacity<1},y.pickSlots=1,y.setPickBase=function(_){this.pickId=_};function k(_){for(var g=m({colormap:_,nshades:256,format:"rgba"}),c=new Uint8Array(256*4),A=0;A<256;++A){for(var h=g[A],R=0;R<3;++R)c[4*A+R]=h[R];c[4*A+3]=h[3]*255}return b(c,[256,256,4],[4,0,1])}function S(_){for(var g=_.length,c=new Array(g),A=0;A0){var P=this.triShader;P.bind(),P.uniforms=D,this.triangleVAO.bind(),g.drawArrays(g.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},y.drawPick=function(_){_=_||{};for(var g=this.gl,c=_.model||w,A=_.view||w,h=_.projection||w,R=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],E=0;E<3;++E)R[0][E]=Math.max(R[0][E],this.clipBounds[0][E]),R[1][E]=Math.min(R[1][E],this.clipBounds[1][E]);this._model=[].slice.call(c),this._view=[].slice.call(A),this._projection=[].slice.call(h),this._resolution=[g.drawingBufferWidth,g.drawingBufferHeight];var D={model:c,view:A,projection:h,clipBounds:R,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},N=this.pickShader;N.bind(),N.uniforms=D,this.triangleCount>0&&(this.triangleVAO.bind(),g.drawArrays(g.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},y.pick=function(_){if(!_||_.id!==this.pickId)return null;var g=_.value[0]+256*_.value[1]+65536*_.value[2],c=this.cells[g],A=this.positions[c[1]].slice(0,3),h={position:A,dataCoordinate:A,index:Math.floor(c[1]/48)};return this.traceType==="cone"?h.index=Math.floor(c[1]/48):this.traceType==="streamtube"&&(h.intensity=this.intensity[c[1]],h.velocity=this.vectors[c[1]].slice(0,3),h.divergence=this.vectors[c[1]][3],h.index=g),h},y.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function x(_,g){var c=l(_,g.meshShader.vertex,g.meshShader.fragment,null,g.meshShader.attributes);return c.attributes.position.location=0,c.attributes.color.location=2,c.attributes.uv.location=3,c.attributes.vector.location=4,c}function T(_,g){var c=l(_,g.pickShader.vertex,g.pickShader.fragment,null,g.pickShader.attributes);return c.attributes.position.location=0,c.attributes.id.location=1,c.attributes.vector.location=4,c}function d(_,g,c){var A=c.shaders;arguments.length===1&&(g=_,_=g.gl);var h=x(_,A),R=T(_,A),E=f(_,b(new Uint8Array([255,255,255,255]),[1,1,4]));E.generateMipmap(),E.minFilter=_.LINEAR_MIPMAP_LINEAR,E.magFilter=_.LINEAR;var D=u(_),N=u(_),I=u(_),F=u(_),L=u(_),P=s(_,[{buffer:D,type:_.FLOAT,size:4},{buffer:L,type:_.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:I,type:_.FLOAT,size:4},{buffer:F,type:_.FLOAT,size:2},{buffer:N,type:_.FLOAT,size:4}]),O=new M(_,E,h,R,D,N,L,I,F,P,c.traceType||"cone");return O.update(g),O}a.exports=d},614:function(a,o,i){var l=i(3236),u=l([`precision highp float; +}`]);o.bg=function(w){return u(w,b,m,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},4935:function(a,o,i){"use strict";a.exports=k;var l=i(2762),u=i(8116),s=i(4359),f=i(1879).Q,v=window||process.global||{},p=v.__TEXT_CACHE||{};v.__TEXT_CACHE={};var b=3;function m(S,x,T,d){this.gl=S,this.shader=x,this.buffer=T,this.vao=d,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var w=m.prototype,M=[0,0];w.bind=function(S,x,T,d){this.vao.bind(),this.shader.bind();var _=this.shader.uniforms;_.model=S,_.view=x,_.projection=T,_.pixelScale=d,M[0]=this.gl.drawingBufferWidth,M[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=M},w.unbind=function(){this.vao.unbind()},w.update=function(S,x,T,d,_){var g=[];function c(P,O,U,X,$,j){var Y=[U.style,U.weight,U.variant,U.family].join("_"),q=p[Y];q||(q=p[Y]={});var Q=q[O];Q||(Q=q[O]=y(O,{triangles:!0,font:U.family,fontStyle:U.style,fontWeight:U.weight,fontVariant:U.variant,textAlign:"center",textBaseline:"middle",lineSpacing:$,styletags:j}));for(var ne=(X||12)/12,K=Q.positions,ie=Q.cells,ee=0,V=ie.length;ee=0;--H){var te=K[re[H]];g.push(ne*te[0],-ne*te[1],P)}}for(var A=[0,0,0],h=[0,0,0],R=[0,0,0],E=[0,0,0],D=1.25,N={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},I=0;I<3;++I){R[I]=g.length/b|0,c(.5*(S[0][I]+S[1][I]),x[I],T[I],12,D,N),E[I]=(g.length/b|0)-R[I],A[I]=g.length/b|0;for(var F=0;F=0&&(b=v.length-p-1);var m=Math.pow(10,b),w=Math.round(s*f*m),M=w+"";if(M.indexOf("e")>=0)return M;var y=w/m,k=w%m;w<0?(y=-Math.ceil(y)|0,k=-k|0):(y=Math.floor(y)|0,k=k|0);var S=""+y;if(w<0&&(S="-"+S),b){for(var x=""+k;x.length=s[0][p];--w)b.push({x:w*f[p],text:i(f[p],w)});v.push(b)}return v}function u(s,f){for(var v=0;v<3;++v){if(s[v].length!==f[v].length)return!1;for(var p=0;pS)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return y.bufferSubData(k,d,T),S}function m(y,k){for(var S=l.malloc(y.length,k),x=y.length,T=0;T=0;--x){if(k[x]!==S)return!1;S*=y[x]}return!0}p.update=function(y,k){if(typeof k!="number"&&(k=-1),this.bind(),typeof y=="object"&&typeof y.shape!="undefined"){var S=y.dtype;if(f.indexOf(S)<0&&(S="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var x=gl.getExtension("OES_element_index_uint");x&&S!=="uint16"?S="uint32":S="uint16"}if(S===y.dtype&&w(y.shape,y.stride))y.offset===0&&y.data.length===y.shape[0]?this.length=b(this.gl,this.type,this.length,this.usage,y.data,k):this.length=b(this.gl,this.type,this.length,this.usage,y.data.subarray(y.offset,y.shape[0]),k);else{var T=l.malloc(y.size,S),d=s(T,y.shape);u.assign(d,y),k<0?this.length=b(this.gl,this.type,this.length,this.usage,T,k):this.length=b(this.gl,this.type,this.length,this.usage,T.subarray(0,y.size),k),l.free(T)}}else if(Array.isArray(y)){var _;this.type===this.gl.ELEMENT_ARRAY_BUFFER?_=m(y,"uint16"):_=m(y,"float32"),k<0?this.length=b(this.gl,this.type,this.length,this.usage,_,k):this.length=b(this.gl,this.type,this.length,this.usage,_.subarray(0,y.length),k),l.free(_)}else if(typeof y=="object"&&typeof y.length=="number")this.length=b(this.gl,this.type,this.length,this.usage,y,k);else if(typeof y=="number"||y===void 0){if(k>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");y=y|0,y<=0&&(y=1),this.gl.bufferData(this.type,y|0,this.usage),this.length=y}else throw new Error("gl-buffer: Invalid data type")};function M(y,k,S,x){if(S=S||y.ARRAY_BUFFER,x=x||y.DYNAMIC_DRAW,S!==y.ARRAY_BUFFER&&S!==y.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(x!==y.DYNAMIC_DRAW&&x!==y.STATIC_DRAW&&x!==y.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var T=y.createBuffer(),d=new v(y,S,T,0,x);return d.update(k),d}a.exports=M},6405:function(a,o,i){"use strict";var l=i(2931);a.exports=function(s,f){var v=s.positions,p=s.vectors,b={positions:[],vertexIntensity:[],vertexIntensityBounds:s.vertexIntensityBounds,vectors:[],cells:[],coneOffset:s.coneOffset,colormap:s.colormap};if(s.positions.length===0)return f&&(f[0]=[0,0,0],f[1]=[0,0,0]),b;for(var m=0,w=1/0,M=-1/0,y=1/0,k=-1/0,S=1/0,x=-1/0,T=null,d=null,_=[],g=1/0,c=!1,A=s.coneSizemode==="raw",h=0;hm&&(m=l.length(E)),h&&!A){var D=2*l.distance(T,R)/(l.length(d)+l.length(E));D?(g=Math.min(g,D),c=!1):c=!0}c||(T=R,d=E),_.push(E)}var N=[w,y,S],I=[M,k,x];f&&(f[0]=N,f[1]=I),m===0&&(m=1);var F=1/m;isFinite(g)||(g=1),b.vectorScale=g;var L=s.coneSize||(A?1:.5);s.absoluteConeSize&&(L=s.absoluteConeSize*F),b.coneScale=L;for(var h=0,P=0;h=1},y.isTransparent=function(){return this.opacity<1},y.pickSlots=1,y.setPickBase=function(_){this.pickId=_};function k(_){for(var g=m({colormap:_,nshades:256,format:"rgba"}),c=new Uint8Array(256*4),A=0;A<256;++A){for(var h=g[A],R=0;R<3;++R)c[4*A+R]=h[R];c[4*A+3]=h[3]*255}return b(c,[256,256,4],[4,0,1])}function S(_){for(var g=_.length,c=new Array(g),A=0;A0){var P=this.triShader;P.bind(),P.uniforms=D,this.triangleVAO.bind(),g.drawArrays(g.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},y.drawPick=function(_){_=_||{};for(var g=this.gl,c=_.model||w,A=_.view||w,h=_.projection||w,R=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],E=0;E<3;++E)R[0][E]=Math.max(R[0][E],this.clipBounds[0][E]),R[1][E]=Math.min(R[1][E],this.clipBounds[1][E]);this._model=[].slice.call(c),this._view=[].slice.call(A),this._projection=[].slice.call(h),this._resolution=[g.drawingBufferWidth,g.drawingBufferHeight];var D={model:c,view:A,projection:h,clipBounds:R,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},N=this.pickShader;N.bind(),N.uniforms=D,this.triangleCount>0&&(this.triangleVAO.bind(),g.drawArrays(g.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},y.pick=function(_){if(!_||_.id!==this.pickId)return null;var g=_.value[0]+256*_.value[1]+65536*_.value[2],c=this.cells[g],A=this.positions[c[1]].slice(0,3),h={position:A,dataCoordinate:A,index:Math.floor(c[1]/48)};return this.traceType==="cone"?h.index=Math.floor(c[1]/48):this.traceType==="streamtube"&&(h.intensity=this.intensity[c[1]],h.velocity=this.vectors[c[1]].slice(0,3),h.divergence=this.vectors[c[1]][3],h.index=g),h},y.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function x(_,g){var c=l(_,g.meshShader.vertex,g.meshShader.fragment,null,g.meshShader.attributes);return c.attributes.position.location=0,c.attributes.color.location=2,c.attributes.uv.location=3,c.attributes.vector.location=4,c}function T(_,g){var c=l(_,g.pickShader.vertex,g.pickShader.fragment,null,g.pickShader.attributes);return c.attributes.position.location=0,c.attributes.id.location=1,c.attributes.vector.location=4,c}function d(_,g,c){var A=c.shaders;arguments.length===1&&(g=_,_=g.gl);var h=x(_,A),R=T(_,A),E=f(_,b(new Uint8Array([255,255,255,255]),[1,1,4]));E.generateMipmap(),E.minFilter=_.LINEAR_MIPMAP_LINEAR,E.magFilter=_.LINEAR;var D=u(_),N=u(_),I=u(_),F=u(_),L=u(_),P=s(_,[{buffer:D,type:_.FLOAT,size:4},{buffer:L,type:_.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:I,type:_.FLOAT,size:4},{buffer:F,type:_.FLOAT,size:2},{buffer:N,type:_.FLOAT,size:4}]),O=new M(_,E,h,R,D,N,L,I,F,P,c.traceType||"cone");return O.update(g),O}a.exports=d},614:function(a,o,i){var l=i(3236),u=l([`precision highp float; precision highp float; #define GLSLIFY 1 @@ -793,7 +793,7 @@ void main() { if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard; gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz); -}`]),p=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];o.createShader=function(b){return u(b,s,f,null,p)},o.createPickShader=function(b){return u(b,s,v,null,p)}},5714:function(a,o,i){"use strict";a.exports=g;var l=i(2762),u=i(8116),s=i(7766),f=new Uint8Array(4),v=new Float32Array(f.buffer);function p(c,A,h,R){return f[0]=R,f[1]=h,f[2]=A,f[3]=c,v[0]}var b=i(2478),m=i(9618),w=i(7319),M=w.createShader,y=w.createPickShader,k=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function S(c,A){for(var h=0,R=0;R<3;++R){var E=c[R]-A[R];h+=E*E}return Math.sqrt(h)}function x(c){for(var A=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],h=0;h<3;++h)A[0][h]=Math.max(c[0][h],A[0][h]),A[1][h]=Math.min(c[1][h],A[1][h]);return A}function T(c,A,h,R){this.arcLength=c,this.position=A,this.index=h,this.dataCoordinate=R}function d(c,A,h,R,E,D){this.gl=c,this.shader=A,this.pickShader=h,this.buffer=R,this.vao=E,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=D,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var _=d.prototype;_.isTransparent=function(){return this.hasAlpha},_.isOpaque=function(){return!this.hasAlpha},_.pickSlots=1,_.setPickBase=function(c){this.pickId=c},_.drawTransparent=_.draw=function(c){if(this.vertexCount){var A=this.gl,h=this.shader,R=this.vao;h.bind(),h.uniforms={model:c.model||k,view:c.view||k,projection:c.projection||k,clipBounds:x(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[A.drawingBufferWidth,A.drawingBufferHeight],pixelRatio:this.pixelRatio},R.bind(),R.draw(A.TRIANGLE_STRIP,this.vertexCount),R.unbind()}},_.drawPick=function(c){if(this.vertexCount){var A=this.gl,h=this.pickShader,R=this.vao;h.bind(),h.uniforms={model:c.model||k,view:c.view||k,projection:c.projection||k,pickId:this.pickId,clipBounds:x(this.clipBounds),screenShape:[A.drawingBufferWidth,A.drawingBufferHeight],pixelRatio:this.pixelRatio},R.bind(),R.draw(A.TRIANGLE_STRIP,this.vertexCount),R.unbind()}},_.update=function(c){var A,h;this.dirty=!0;var R=!!c.connectGaps;"dashScale"in c&&(this.dashScale=c.dashScale),this.hasAlpha=!1,"opacity"in c&&(this.opacity=+c.opacity,this.opacity<1&&(this.hasAlpha=!0));var E=[],D=[],N=[],I=0,F=0,L=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],P=c.position||c.positions;if(P){var O=c.color||c.colors||[0,0,0,1],U=c.lineWidth||1,X=!1;e:for(A=1;A0){for(var Y=0;Y<24;++Y)E.push(E[E.length-12]);F+=2,X=!0}continue e}L[0][h]=Math.min(L[0][h],$[h],j[h]),L[1][h]=Math.max(L[1][h],$[h],j[h])}var q,J;Array.isArray(O[0])?(q=O.length>A-1?O[A-1]:O.length>0?O[O.length-1]:[0,0,0,1],J=O.length>A?O[A]:O.length>0?O[O.length-1]:[0,0,0,1]):q=J=O,q.length===3&&(q=[q[0],q[1],q[2],1]),J.length===3&&(J=[J[0],J[1],J[2],1]),!this.hasAlpha&&q[3]<1&&(this.hasAlpha=!0);var ae;Array.isArray(U)?ae=U.length>A-1?U[A-1]:U.length>0?U[U.length-1]:[0,0,0,1]:ae=U;var Q=I;if(I+=S($,j),X){for(h=0;h<2;++h)E.push($[0],$[1],$[2],j[0],j[1],j[2],Q,ae,q[0],q[1],q[2],q[3]);F+=2,X=!1}E.push($[0],$[1],$[2],j[0],j[1],j[2],Q,ae,q[0],q[1],q[2],q[3],$[0],$[1],$[2],j[0],j[1],j[2],Q,-ae,q[0],q[1],q[2],q[3],j[0],j[1],j[2],$[0],$[1],$[2],I,-ae,J[0],J[1],J[2],J[3],j[0],j[1],j[2],$[0],$[1],$[2],I,ae,J[0],J[1],J[2],J[3]),F+=4}}if(this.buffer.update(E),D.push(I),N.push(P[P.length-1].slice()),this.bounds=L,this.vertexCount=F,this.points=N,this.arcLength=D,"dashes"in c){var oe=c.dashes,ee=oe.slice();for(ee.unshift(0),A=1;A1.0001)return null;h+=A[T]}return Math.abs(h-1)>.001?null:[d,p(m,A),A]}},840:function(a,o,i){var l=i(3236),u=l([`precision highp float; +}`]),p=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];o.createShader=function(b){return u(b,s,f,null,p)},o.createPickShader=function(b){return u(b,s,v,null,p)}},5714:function(a,o,i){"use strict";a.exports=g;var l=i(2762),u=i(8116),s=i(7766),f=new Uint8Array(4),v=new Float32Array(f.buffer);function p(c,A,h,R){return f[0]=R,f[1]=h,f[2]=A,f[3]=c,v[0]}var b=i(2478),m=i(9618),w=i(7319),M=w.createShader,y=w.createPickShader,k=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function S(c,A){for(var h=0,R=0;R<3;++R){var E=c[R]-A[R];h+=E*E}return Math.sqrt(h)}function x(c){for(var A=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],h=0;h<3;++h)A[0][h]=Math.max(c[0][h],A[0][h]),A[1][h]=Math.min(c[1][h],A[1][h]);return A}function T(c,A,h,R){this.arcLength=c,this.position=A,this.index=h,this.dataCoordinate=R}function d(c,A,h,R,E,D){this.gl=c,this.shader=A,this.pickShader=h,this.buffer=R,this.vao=E,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=D,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var _=d.prototype;_.isTransparent=function(){return this.hasAlpha},_.isOpaque=function(){return!this.hasAlpha},_.pickSlots=1,_.setPickBase=function(c){this.pickId=c},_.drawTransparent=_.draw=function(c){if(this.vertexCount){var A=this.gl,h=this.shader,R=this.vao;h.bind(),h.uniforms={model:c.model||k,view:c.view||k,projection:c.projection||k,clipBounds:x(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[A.drawingBufferWidth,A.drawingBufferHeight],pixelRatio:this.pixelRatio},R.bind(),R.draw(A.TRIANGLE_STRIP,this.vertexCount),R.unbind()}},_.drawPick=function(c){if(this.vertexCount){var A=this.gl,h=this.pickShader,R=this.vao;h.bind(),h.uniforms={model:c.model||k,view:c.view||k,projection:c.projection||k,pickId:this.pickId,clipBounds:x(this.clipBounds),screenShape:[A.drawingBufferWidth,A.drawingBufferHeight],pixelRatio:this.pixelRatio},R.bind(),R.draw(A.TRIANGLE_STRIP,this.vertexCount),R.unbind()}},_.update=function(c){var A,h;this.dirty=!0;var R=!!c.connectGaps;"dashScale"in c&&(this.dashScale=c.dashScale),this.hasAlpha=!1,"opacity"in c&&(this.opacity=+c.opacity,this.opacity<1&&(this.hasAlpha=!0));var E=[],D=[],N=[],I=0,F=0,L=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],P=c.position||c.positions;if(P){var O=c.color||c.colors||[0,0,0,1],U=c.lineWidth||1,X=!1;e:for(A=1;A0){for(var Y=0;Y<24;++Y)E.push(E[E.length-12]);F+=2,X=!0}continue e}L[0][h]=Math.min(L[0][h],$[h],j[h]),L[1][h]=Math.max(L[1][h],$[h],j[h])}var q,Q;Array.isArray(O[0])?(q=O.length>A-1?O[A-1]:O.length>0?O[O.length-1]:[0,0,0,1],Q=O.length>A?O[A]:O.length>0?O[O.length-1]:[0,0,0,1]):q=Q=O,q.length===3&&(q=[q[0],q[1],q[2],1]),Q.length===3&&(Q=[Q[0],Q[1],Q[2],1]),!this.hasAlpha&&q[3]<1&&(this.hasAlpha=!0);var ne;Array.isArray(U)?ne=U.length>A-1?U[A-1]:U.length>0?U[U.length-1]:[0,0,0,1]:ne=U;var K=I;if(I+=S($,j),X){for(h=0;h<2;++h)E.push($[0],$[1],$[2],j[0],j[1],j[2],K,ne,q[0],q[1],q[2],q[3]);F+=2,X=!1}E.push($[0],$[1],$[2],j[0],j[1],j[2],K,ne,q[0],q[1],q[2],q[3],$[0],$[1],$[2],j[0],j[1],j[2],K,-ne,q[0],q[1],q[2],q[3],j[0],j[1],j[2],$[0],$[1],$[2],I,-ne,Q[0],Q[1],Q[2],Q[3],j[0],j[1],j[2],$[0],$[1],$[2],I,ne,Q[0],Q[1],Q[2],Q[3]),F+=4}}if(this.buffer.update(E),D.push(I),N.push(P[P.length-1].slice()),this.bounds=L,this.vertexCount=F,this.points=N,this.arcLength=D,"dashes"in c){var ie=c.dashes,ee=ie.slice();for(ee.unshift(0),A=1;A1.0001)return null;h+=A[T]}return Math.abs(h-1)>.001?null:[d,p(m,A),A]}},840:function(a,o,i){var l=i(3236),u=l([`precision highp float; #define GLSLIFY 1 attribute vec3 position, normal; @@ -1157,7 +1157,7 @@ uniform vec3 contourColor; void main() { gl_FragColor = vec4(contourColor, 1.0); } -`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},o.wireShader={vertex:f,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},o.pointShader={vertex:p,fragment:b,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},o.pickShader={vertex:m,fragment:w,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},o.pointPickShader={vertex:M,fragment:w,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},o.contourShader={vertex:y,fragment:k,attributes:[{name:"position",type:"vec3"}]}},7201:function(a,o,i){"use strict";var l=1e-6,u=1e-6,s=i(9405),f=i(2762),v=i(8116),p=i(7766),b=i(8406),m=i(6760),w=i(7608),M=i(9618),y=i(6729),k=i(7765),S=i(1888),x=i(840),T=i(7626),d=x.meshShader,_=x.wireShader,g=x.pointShader,c=x.pickShader,A=x.pointPickShader,h=x.contourShader,R=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function E(Y,q,J,ae,Q,oe,ee,V,re,H,te,ue,he,Ce,Se,ve,Te,ke,Fe,Ee,ze,Be,ge,Me,ce,ye,Le){this.gl=Y,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=q,this.dirty=!0,this.triShader=J,this.lineShader=ae,this.pointShader=Q,this.pickShader=oe,this.pointPickShader=ee,this.contourShader=V,this.trianglePositions=re,this.triangleColors=te,this.triangleNormals=he,this.triangleUVs=ue,this.triangleIds=H,this.triangleVAO=Ce,this.triangleCount=0,this.lineWidth=1,this.edgePositions=Se,this.edgeColors=Te,this.edgeUVs=ke,this.edgeIds=ve,this.edgeVAO=Fe,this.edgeCount=0,this.pointPositions=Ee,this.pointColors=Be,this.pointUVs=ge,this.pointSizes=Me,this.pointIds=ze,this.pointVAO=ce,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=ye,this.contourVAO=Le,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=R,this._view=R,this._projection=R,this._resolution=[1,1]}var D=E.prototype;D.isOpaque=function(){return!this.hasAlpha},D.isTransparent=function(){return this.hasAlpha},D.pickSlots=1,D.setPickBase=function(Y){this.pickId=Y};function N(Y,q){if(!q||!q.length)return 1;for(var J=0;JY&&J>0){var ae=(q[J][0]-Y)/(q[J][0]-q[J-1][0]);return q[J][1]*(1-ae)+ae*q[J-1][1]}}return 1}function I(Y,q){for(var J=y({colormap:Y,nshades:256,format:"rgba"}),ae=new Uint8Array(256*4),Q=0;Q<256;++Q){for(var oe=J[Q],ee=0;ee<3;++ee)ae[4*Q+ee]=oe[ee];q?ae[4*Q+3]=255*N(Q/255,q):ae[4*Q+3]=255*oe[3]}return M(ae,[256,256,4],[4,0,1])}function F(Y){for(var q=Y.length,J=new Array(q),ae=0;ae0){var he=this.triShader;he.bind(),he.uniforms=V,this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var he=this.lineShader;he.bind(),he.uniforms=V,this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var he=this.pointShader;he.bind(),he.uniforms=V,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var he=this.contourShader;he.bind(),he.uniforms=V,this.contourVAO.bind(),q.drawArrays(q.LINES,0,this.contourCount),this.contourVAO.unbind()}},D.drawPick=function(Y){Y=Y||{};for(var q=this.gl,J=Y.model||R,ae=Y.view||R,Q=Y.projection||R,oe=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],ee=0;ee<3;++ee)oe[0][ee]=Math.max(oe[0][ee],this.clipBounds[0][ee]),oe[1][ee]=Math.min(oe[1][ee],this.clipBounds[1][ee]);this._model=[].slice.call(J),this._view=[].slice.call(ae),this._projection=[].slice.call(Q),this._resolution=[q.drawingBufferWidth,q.drawingBufferHeight];var V={model:J,view:ae,projection:Q,clipBounds:oe,pickId:this.pickId/255},re=this.pickShader;if(re.bind(),re.uniforms=V,this.triangleCount>0&&(this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var re=this.pointPickShader;re.bind(),re.uniforms=V,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}},D.pick=function(Y){if(!Y||Y.id!==this.pickId)return null;for(var q=Y.value[0]+256*Y.value[1]+65536*Y.value[2],J=this.cells[q],ae=this.positions,Q=new Array(J.length),oe=0;oeMath.abs(c))y.rotate(R,0,0,-g*A*Math.PI*d.rotateSpeed/window.innerWidth);else if(!d._ortho){var E=-d.zoomSpeed*h*c/window.innerHeight*(R-y.lastT())/20;y.pan(R,0,0,S*(Math.exp(E)-1))}}},!0)},d.enableMouseListeners(),d}},799:function(a,o,i){var l=i(3236),u=i(9405),s=l([`precision mediump float; +`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},o.wireShader={vertex:f,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},o.pointShader={vertex:p,fragment:b,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},o.pickShader={vertex:m,fragment:w,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},o.pointPickShader={vertex:M,fragment:w,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},o.contourShader={vertex:y,fragment:k,attributes:[{name:"position",type:"vec3"}]}},7201:function(a,o,i){"use strict";var l=1e-6,u=1e-6,s=i(9405),f=i(2762),v=i(8116),p=i(7766),b=i(8406),m=i(6760),w=i(7608),M=i(9618),y=i(6729),k=i(7765),S=i(1888),x=i(840),T=i(7626),d=x.meshShader,_=x.wireShader,g=x.pointShader,c=x.pickShader,A=x.pointPickShader,h=x.contourShader,R=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function E(Y,q,Q,ne,K,ie,ee,V,re,H,te,ue,de,ke,Ae,ve,Te,Ee,Pe,Se,Ne,Be,ge,we,Me,me,Re){this.gl=Y,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=q,this.dirty=!0,this.triShader=Q,this.lineShader=ne,this.pointShader=K,this.pickShader=ie,this.pointPickShader=ee,this.contourShader=V,this.trianglePositions=re,this.triangleColors=te,this.triangleNormals=de,this.triangleUVs=ue,this.triangleIds=H,this.triangleVAO=ke,this.triangleCount=0,this.lineWidth=1,this.edgePositions=Ae,this.edgeColors=Te,this.edgeUVs=Ee,this.edgeIds=ve,this.edgeVAO=Pe,this.edgeCount=0,this.pointPositions=Se,this.pointColors=Be,this.pointUVs=ge,this.pointSizes=we,this.pointIds=Ne,this.pointVAO=Me,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=me,this.contourVAO=Re,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=R,this._view=R,this._projection=R,this._resolution=[1,1]}var D=E.prototype;D.isOpaque=function(){return!this.hasAlpha},D.isTransparent=function(){return this.hasAlpha},D.pickSlots=1,D.setPickBase=function(Y){this.pickId=Y};function N(Y,q){if(!q||!q.length)return 1;for(var Q=0;QY&&Q>0){var ne=(q[Q][0]-Y)/(q[Q][0]-q[Q-1][0]);return q[Q][1]*(1-ne)+ne*q[Q-1][1]}}return 1}function I(Y,q){for(var Q=y({colormap:Y,nshades:256,format:"rgba"}),ne=new Uint8Array(256*4),K=0;K<256;++K){for(var ie=Q[K],ee=0;ee<3;++ee)ne[4*K+ee]=ie[ee];q?ne[4*K+3]=255*N(K/255,q):ne[4*K+3]=255*ie[3]}return M(ne,[256,256,4],[4,0,1])}function F(Y){for(var q=Y.length,Q=new Array(q),ne=0;ne0){var de=this.triShader;de.bind(),de.uniforms=V,this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var de=this.lineShader;de.bind(),de.uniforms=V,this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var de=this.pointShader;de.bind(),de.uniforms=V,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var de=this.contourShader;de.bind(),de.uniforms=V,this.contourVAO.bind(),q.drawArrays(q.LINES,0,this.contourCount),this.contourVAO.unbind()}},D.drawPick=function(Y){Y=Y||{};for(var q=this.gl,Q=Y.model||R,ne=Y.view||R,K=Y.projection||R,ie=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],ee=0;ee<3;++ee)ie[0][ee]=Math.max(ie[0][ee],this.clipBounds[0][ee]),ie[1][ee]=Math.min(ie[1][ee],this.clipBounds[1][ee]);this._model=[].slice.call(Q),this._view=[].slice.call(ne),this._projection=[].slice.call(K),this._resolution=[q.drawingBufferWidth,q.drawingBufferHeight];var V={model:Q,view:ne,projection:K,clipBounds:ie,pickId:this.pickId/255},re=this.pickShader;if(re.bind(),re.uniforms=V,this.triangleCount>0&&(this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var re=this.pointPickShader;re.bind(),re.uniforms=V,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}},D.pick=function(Y){if(!Y||Y.id!==this.pickId)return null;for(var q=Y.value[0]+256*Y.value[1]+65536*Y.value[2],Q=this.cells[q],ne=this.positions,K=new Array(Q.length),ie=0;ieMath.abs(c))y.rotate(R,0,0,-g*A*Math.PI*d.rotateSpeed/window.innerWidth);else if(!d._ortho){var E=-d.zoomSpeed*h*c/window.innerHeight*(R-y.lastT())/20;y.pan(R,0,0,S*(Math.exp(E)-1))}}},!0)},d.enableMouseListeners(),d}},799:function(a,o,i){var l=i(3236),u=i(9405),s=l([`precision mediump float; #define GLSLIFY 1 attribute vec2 position; varying vec2 uv; @@ -1173,7 +1173,7 @@ varying vec2 uv; void main() { vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0)); gl_FragColor = min(vec4(1,1,1,1), accum); -}`]);a.exports=function(v){return u(v,s,f,null,[{name:"position",type:"vec2"}])}},4100:function(a,o,i){"use strict";var l=i(4437),u=i(3837),s=i(5445),f=i(4449),v=i(3589),p=i(2260),b=i(7169),m=i(351),w=i(4772),M=i(4040),y=i(799),k=i(9216)({tablet:!0,featureDetect:!0});a.exports={createScene:_,createCamera:l};function S(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function x(c,A){var h=null;try{h=c.getContext("webgl",A),h||(h=c.getContext("experimental-webgl",A))}catch(R){return null}return h}function T(c){var A=Math.round(Math.log(Math.abs(c))/Math.log(10));if(A<0){var h=Math.round(Math.pow(10,-A));return Math.ceil(c*h)/h}else if(A>0){var h=Math.round(Math.pow(10,A));return Math.ceil(c/h)*h}return Math.ceil(c)}function d(c){return typeof c=="boolean"?c:!0}function _(c){c=c||{},c.camera=c.camera||{};var A=c.canvas;if(!A)if(A=document.createElement("canvas"),c.container){var h=c.container;h.appendChild(A)}else document.body.appendChild(A);var R=c.gl;if(R||(c.glOptions&&(k=!!c.glOptions.preserveDrawingBuffer),R=x(A,c.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:k})),!R)throw new Error("webgl not supported");var E=c.bounds||[[-10,-10,-10],[10,10,10]],D=new S,N=p(R,R.drawingBufferWidth,R.drawingBufferHeight,{preferFloat:!k}),I=y(R),F=c.cameraObject&&c.cameraObject._ortho===!0||c.camera.projection&&c.camera.projection.type==="orthographic"||!1,L={eye:c.camera.eye||[2,0,0],center:c.camera.center||[0,0,0],up:c.camera.up||[0,1,0],zoomMin:c.camera.zoomMax||.1,zoomMax:c.camera.zoomMin||100,mode:c.camera.mode||"turntable",_ortho:F},P=c.axes||{},O=u(R,P);O.enable=!P.disable;var U=c.spikes||{},X=f(R,U),$=[],j=[],Y=[],q=[],J=!0,ee=!0,ae=new Array(16),Q=new Array(16),oe={view:null,projection:ae,model:Q,_ortho:!1},ee=!0,V=[R.drawingBufferWidth,R.drawingBufferHeight],re=c.cameraObject||l(A,L),H={gl:R,contextLost:!1,pixelRatio:c.pixelRatio||1,canvas:A,selection:D,camera:re,axes:O,axesPixels:null,spikes:X,bounds:E,objects:$,shape:V,aspect:c.aspectRatio||[1,1,1],pickRadius:c.pickRadius||10,zNear:c.zNear||.01,zFar:c.zFar||1e3,fovy:c.fovy||Math.PI/4,clearColor:c.clearColor||[0,0,0,0],autoResize:d(c.autoResize),autoBounds:d(c.autoBounds),autoScale:!!c.autoScale,autoCenter:d(c.autoCenter),clipToBounds:d(c.clipToBounds),snapToData:!!c.snapToData,onselect:c.onselect||null,onrender:c.onrender||null,onclick:c.onclick||null,cameraParams:oe,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(Ee){this.aspect[0]=Ee.x,this.aspect[1]=Ee.y,this.aspect[2]=Ee.z,ee=!0},setBounds:function(Ee,ze){this.bounds[0][Ee]=ze.min,this.bounds[1][Ee]=ze.max},setClearColor:function(Ee){this.clearColor=Ee},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},te=[R.drawingBufferWidth/H.pixelRatio|0,R.drawingBufferHeight/H.pixelRatio|0];function ue(){if(!H._stopped&&H.autoResize){var Ee=A.parentNode,ze=1,Be=1;Ee&&Ee!==document.body?(ze=Ee.clientWidth,Be=Ee.clientHeight):(ze=window.innerWidth,Be=window.innerHeight);var ge=Math.ceil(ze*H.pixelRatio)|0,Me=Math.ceil(Be*H.pixelRatio)|0;if(ge!==A.width||Me!==A.height){A.width=ge,A.height=Me;var ce=A.style;ce.position=ce.position||"absolute",ce.left="0px",ce.top="0px",ce.width=ze+"px",ce.height=Be+"px",J=!0}}}H.autoResize&&ue(),window.addEventListener("resize",ue);function he(){for(var Ee=$.length,ze=q.length,Be=0;Be0&&Y[ze-1]===0;)Y.pop(),q.pop().dispose()}H.update=function(Ee){H._stopped||(Ee=Ee||{},J=!0,ee=!0)},H.add=function(Ee){H._stopped||(Ee.axes=O,$.push(Ee),j.push(-1),J=!0,ee=!0,he())},H.remove=function(Ee){if(!H._stopped){var ze=$.indexOf(Ee);ze<0||($.splice(ze,1),j.pop(),J=!0,ee=!0,he())}},H.dispose=function(){if(!H._stopped&&(H._stopped=!0,window.removeEventListener("resize",ue),A.removeEventListener("webglcontextlost",Ce),H.mouseListener.enabled=!1,!H.contextLost)){O.dispose(),X.dispose();for(var Ee=0;Ee<$.length;++Ee)$[Ee].dispose();N.dispose();for(var Ee=0;EeD.distance)continue;for(var de=0;de1e-6?(k=Math.acos(S),x=Math.sin(k),T=Math.sin((1-s)*k)/x,d=Math.sin(s*k)/x):(T=1-s,d=s),i[0]=T*f+d*m,i[1]=T*v+d*w,i[2]=T*p+d*M,i[3]=T*b+d*y,i}},5964:function(a){"use strict";a.exports=function(o){return!o&&o!==0?"":o.toString()}},9366:function(a,o,i){"use strict";var l=i(4359);a.exports=s;var u={};function s(f,v,p){var b=[v.style,v.weight,v.variant,v.family].join("_"),m=u[b];if(m||(m=u[b]={}),f in m)return m[f];var w={textAlign:"center",textBaseline:"middle",lineHeight:1,font:v.family,fontStyle:v.style,fontWeight:v.weight,fontVariant:v.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};w.triangles=!0;var M=l(f,w);w.triangles=!1;var y=l(f,w),k,S;if(p&&p!==1){for(k=0;k0){var h=Math.round(Math.pow(10,A));return Math.ceil(c/h)*h}return Math.ceil(c)}function d(c){return typeof c=="boolean"?c:!0}function _(c){c=c||{},c.camera=c.camera||{};var A=c.canvas;if(!A)if(A=document.createElement("canvas"),c.container){var h=c.container;h.appendChild(A)}else document.body.appendChild(A);var R=c.gl;if(R||(c.glOptions&&(k=!!c.glOptions.preserveDrawingBuffer),R=x(A,c.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:k})),!R)throw new Error("webgl not supported");var E=c.bounds||[[-10,-10,-10],[10,10,10]],D=new S,N=p(R,R.drawingBufferWidth,R.drawingBufferHeight,{preferFloat:!k}),I=y(R),F=c.cameraObject&&c.cameraObject._ortho===!0||c.camera.projection&&c.camera.projection.type==="orthographic"||!1,L={eye:c.camera.eye||[2,0,0],center:c.camera.center||[0,0,0],up:c.camera.up||[0,1,0],zoomMin:c.camera.zoomMax||.1,zoomMax:c.camera.zoomMin||100,mode:c.camera.mode||"turntable",_ortho:F},P=c.axes||{},O=u(R,P);O.enable=!P.disable;var U=c.spikes||{},X=f(R,U),$=[],j=[],Y=[],q=[],Q=!0,ee=!0,ne=new Array(16),K=new Array(16),ie={view:null,projection:ne,model:K,_ortho:!1},ee=!0,V=[R.drawingBufferWidth,R.drawingBufferHeight],re=c.cameraObject||l(A,L),H={gl:R,contextLost:!1,pixelRatio:c.pixelRatio||1,canvas:A,selection:D,camera:re,axes:O,axesPixels:null,spikes:X,bounds:E,objects:$,shape:V,aspect:c.aspectRatio||[1,1,1],pickRadius:c.pickRadius||10,zNear:c.zNear||.01,zFar:c.zFar||1e3,fovy:c.fovy||Math.PI/4,clearColor:c.clearColor||[0,0,0,0],autoResize:d(c.autoResize),autoBounds:d(c.autoBounds),autoScale:!!c.autoScale,autoCenter:d(c.autoCenter),clipToBounds:d(c.clipToBounds),snapToData:!!c.snapToData,onselect:c.onselect||null,onrender:c.onrender||null,onclick:c.onclick||null,cameraParams:ie,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(Se){this.aspect[0]=Se.x,this.aspect[1]=Se.y,this.aspect[2]=Se.z,ee=!0},setBounds:function(Se,Ne){this.bounds[0][Se]=Ne.min,this.bounds[1][Se]=Ne.max},setClearColor:function(Se){this.clearColor=Se},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},te=[R.drawingBufferWidth/H.pixelRatio|0,R.drawingBufferHeight/H.pixelRatio|0];function ue(){if(!H._stopped&&H.autoResize){var Se=A.parentNode,Ne=1,Be=1;Se&&Se!==document.body?(Ne=Se.clientWidth,Be=Se.clientHeight):(Ne=window.innerWidth,Be=window.innerHeight);var ge=Math.ceil(Ne*H.pixelRatio)|0,we=Math.ceil(Be*H.pixelRatio)|0;if(ge!==A.width||we!==A.height){A.width=ge,A.height=we;var Me=A.style;Me.position=Me.position||"absolute",Me.left="0px",Me.top="0px",Me.width=Ne+"px",Me.height=Be+"px",Q=!0}}}H.autoResize&&ue(),window.addEventListener("resize",ue);function de(){for(var Se=$.length,Ne=q.length,Be=0;Be0&&Y[Ne-1]===0;)Y.pop(),q.pop().dispose()}H.update=function(Se){H._stopped||(Se=Se||{},Q=!0,ee=!0)},H.add=function(Se){H._stopped||(Se.axes=O,$.push(Se),j.push(-1),Q=!0,ee=!0,de())},H.remove=function(Se){if(!H._stopped){var Ne=$.indexOf(Se);Ne<0||($.splice(Ne,1),j.pop(),Q=!0,ee=!0,de())}},H.dispose=function(){if(!H._stopped&&(H._stopped=!0,window.removeEventListener("resize",ue),A.removeEventListener("webglcontextlost",ke),H.mouseListener.enabled=!1,!H.contextLost)){O.dispose(),X.dispose();for(var Se=0;Se<$.length;++Se)$[Se].dispose();N.dispose();for(var Se=0;SeD.distance)continue;for(var he=0;he1e-6?(k=Math.acos(S),x=Math.sin(k),T=Math.sin((1-s)*k)/x,d=Math.sin(s*k)/x):(T=1-s,d=s),i[0]=T*f+d*m,i[1]=T*v+d*w,i[2]=T*p+d*M,i[3]=T*b+d*y,i}},5964:function(a){"use strict";a.exports=function(o){return!o&&o!==0?"":o.toString()}},9366:function(a,o,i){"use strict";var l=i(4359);a.exports=s;var u={};function s(f,v,p){var b=[v.style,v.weight,v.variant,v.family].join("_"),m=u[b];if(m||(m=u[b]={}),f in m)return m[f];var w={textAlign:"center",textBaseline:"middle",lineHeight:1,font:v.family,fontStyle:v.style,fontWeight:v.weight,fontVariant:v.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};w.triangles=!0;var M=l(f,w);w.triangles=!1;var y=l(f,w),k,S;if(p&&p!==1){for(k=0;k1?1:Q}function g(Q,oe,ee,V,re,H,te,ue,he,Ce,Se,ve){this.gl=Q,this.pixelRatio=1,this.shader=oe,this.orthoShader=ee,this.projectShader=V,this.pointBuffer=re,this.colorBuffer=H,this.glyphBuffer=te,this.idBuffer=ue,this.vao=he,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=Ce,this.pickOrthoShader=Se,this.pickProjectShader=ve,this.points=[],this._selectResult=new d(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var c=g.prototype;c.pickSlots=1,c.setPickBase=function(Q){this.pickId=Q},c.isTransparent=function(){if(this.hasAlpha)return!0;for(var Q=0;Q<3;++Q)if(this.axesProject[Q]&&this.projectHasAlpha)return!0;return!1},c.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Q=0;Q<3;++Q)if(this.axesProject[Q]&&!this.projectHasAlpha)return!0;return!1};var A=[0,0],h=[0,0,0],R=[0,0,0],E=[0,0,0,1],D=[0,0,0,1],N=w.slice(),I=[0,0,0],F=[[0,0,0],[0,0,0]];function L(Q){return Q[0]=Q[1]=Q[2]=0,Q}function P(Q,oe){return Q[0]=oe[0],Q[1]=oe[1],Q[2]=oe[2],Q[3]=1,Q}function O(Q,oe,ee,V){return Q[0]=oe[0],Q[1]=oe[1],Q[2]=oe[2],Q[ee]=V,Q}function U(Q){for(var oe=F,ee=0;ee<2;++ee)for(var V=0;V<3;++V)oe[ee][V]=Math.max(Math.min(Q[ee][V],1e8),-1e8);return oe}function X(Q,oe,ee,V){var re=oe.axesProject,H=oe.gl,te=Q.uniforms,ue=ee.model||w,he=ee.view||w,Ce=ee.projection||w,Se=oe.axesBounds,ve=U(oe.clipBounds),Te;oe.axes&&oe.axes.lastCubeProps?Te=oe.axes.lastCubeProps.axis:Te=[1,1,1],A[0]=2/H.drawingBufferWidth,A[1]=2/H.drawingBufferHeight,Q.bind(),te.view=he,te.projection=Ce,te.screenSize=A,te.highlightId=oe.highlightId,te.highlightScale=oe.highlightScale,te.clipBounds=ve,te.pickGroup=oe.pickId/255,te.pixelRatio=V;for(var ke=0;ke<3;++ke)if(re[ke]){te.scale=oe.projectScale[ke],te.opacity=oe.projectOpacity[ke];for(var Fe=N,Ee=0;Ee<16;++Ee)Fe[Ee]=0;for(var Ee=0;Ee<4;++Ee)Fe[5*Ee]=1;Fe[5*ke]=0,Te[ke]<0?Fe[12+ke]=Se[0][ke]:Fe[12+ke]=Se[1][ke],v(Fe,ue,Fe),te.model=Fe;var ze=(ke+1)%3,Be=(ke+2)%3,ge=L(h),Me=L(R);ge[ze]=1,Me[Be]=1;var ce=T(Ce,he,ue,P(E,ge)),ye=T(Ce,he,ue,P(D,Me));if(Math.abs(ce[1])>Math.abs(ye[1])){var Le=ce;ce=ye,ye=Le,Le=ge,ge=Me,Me=Le;var me=ze;ze=Be,Be=me}ce[0]<0&&(ge[ze]=-1),ye[1]>0&&(Me[Be]=-1);for(var de=0,be=0,Ee=0;Ee<4;++Ee)de+=Math.pow(ue[4*ze+Ee],2),be+=Math.pow(ue[4*Be+Ee],2);ge[ze]/=Math.sqrt(de),Me[Be]/=Math.sqrt(be),te.axes[0]=ge,te.axes[1]=Me,te.fragClipBounds[0]=O(I,ve[0],ke,-1e8),te.fragClipBounds[1]=O(I,ve[1],ke,1e8),oe.vao.bind(),oe.vao.draw(H.TRIANGLES,oe.vertexCount),oe.lineWidth>0&&(H.lineWidth(oe.lineWidth*V),oe.vao.draw(H.LINES,oe.lineVertexCount,oe.vertexCount)),oe.vao.unbind()}}var $=[-1e8,-1e8,-1e8],j=[1e8,1e8,1e8],Y=[$,j];function q(Q,oe,ee,V,re,H,te){var ue=ee.gl;if((H===ee.projectHasAlpha||te)&&X(oe,ee,V,re),H===ee.hasAlpha||te){Q.bind();var he=Q.uniforms;he.model=V.model||w,he.view=V.view||w,he.projection=V.projection||w,A[0]=2/ue.drawingBufferWidth,A[1]=2/ue.drawingBufferHeight,he.screenSize=A,he.highlightId=ee.highlightId,he.highlightScale=ee.highlightScale,he.fragClipBounds=Y,he.clipBounds=ee.axes.bounds,he.opacity=ee.opacity,he.pickGroup=ee.pickId/255,he.pixelRatio=re,ee.vao.bind(),ee.vao.draw(ue.TRIANGLES,ee.vertexCount),ee.lineWidth>0&&(ue.lineWidth(ee.lineWidth*re),ee.vao.draw(ue.LINES,ee.lineVertexCount,ee.vertexCount)),ee.vao.unbind()}}c.draw=function(Q){var oe=this.useOrtho?this.orthoShader:this.shader;q(oe,this.projectShader,this,Q,this.pixelRatio,!1,!1)},c.drawTransparent=function(Q){var oe=this.useOrtho?this.orthoShader:this.shader;q(oe,this.projectShader,this,Q,this.pixelRatio,!0,!1)},c.drawPick=function(Q){var oe=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;q(oe,this.pickProjectShader,this,Q,1,!0,!0)},c.pick=function(Q){if(!Q||Q.id!==this.pickId)return null;var oe=Q.value[2]+(Q.value[1]<<8)+(Q.value[0]<<16);if(oe>=this.pointCount||oe<0)return null;var ee=this.points[oe],V=this._selectResult;V.index=oe;for(var re=0;re<3;++re)V.position[re]=V.dataCoordinate[re]=ee[re];return V},c.highlight=function(Q){if(!Q)this.highlightId=[1,1,1,1];else{var oe=Q.index,ee=oe&255,V=oe>>8&255,re=oe>>16&255;this.highlightId=[ee/255,V/255,re/255,0]}};function J(Q,oe,ee,V){var re;S(Q)?oe0){var Ge=0,We=Be,we=[0,0,0,1],De=[0,0,0,1],Qe=S(Te)&&S(Te[0]),Ve=S(Ee)&&S(Ee[0]);e:for(var V=0;V0?1-be[0][0]:je<0?1+be[1][0]:1,nr*=nr>0?1-be[0][1]:nr<0?1+be[1][1]:1;for(var hr=[je,nr],ft=me.cells||[],Yr=me.positions||[],ye=0;yethis.buffer.length){u.free(this.buffer);for(var S=this.buffer=u.mallocUint8(f(k*y*4)),x=0;xS)for(y=S;yk)for(y=k;y=0){for(var F=I.type.charAt(I.type.length-1)|0,L=new Array(F),P=0;P=0;)O+=1;D[N]=O}var U=new Array(S.length);function X(){d.program=f.program(_,d._vref,d._fref,E,D);for(var $=0;$1?1:K}function g(K,ie,ee,V,re,H,te,ue,de,ke,Ae,ve){this.gl=K,this.pixelRatio=1,this.shader=ie,this.orthoShader=ee,this.projectShader=V,this.pointBuffer=re,this.colorBuffer=H,this.glyphBuffer=te,this.idBuffer=ue,this.vao=de,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=ke,this.pickOrthoShader=Ae,this.pickProjectShader=ve,this.points=[],this._selectResult=new d(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var c=g.prototype;c.pickSlots=1,c.setPickBase=function(K){this.pickId=K},c.isTransparent=function(){if(this.hasAlpha)return!0;for(var K=0;K<3;++K)if(this.axesProject[K]&&this.projectHasAlpha)return!0;return!1},c.isOpaque=function(){if(!this.hasAlpha)return!0;for(var K=0;K<3;++K)if(this.axesProject[K]&&!this.projectHasAlpha)return!0;return!1};var A=[0,0],h=[0,0,0],R=[0,0,0],E=[0,0,0,1],D=[0,0,0,1],N=w.slice(),I=[0,0,0],F=[[0,0,0],[0,0,0]];function L(K){return K[0]=K[1]=K[2]=0,K}function P(K,ie){return K[0]=ie[0],K[1]=ie[1],K[2]=ie[2],K[3]=1,K}function O(K,ie,ee,V){return K[0]=ie[0],K[1]=ie[1],K[2]=ie[2],K[ee]=V,K}function U(K){for(var ie=F,ee=0;ee<2;++ee)for(var V=0;V<3;++V)ie[ee][V]=Math.max(Math.min(K[ee][V],1e8),-1e8);return ie}function X(K,ie,ee,V){var re=ie.axesProject,H=ie.gl,te=K.uniforms,ue=ee.model||w,de=ee.view||w,ke=ee.projection||w,Ae=ie.axesBounds,ve=U(ie.clipBounds),Te;ie.axes&&ie.axes.lastCubeProps?Te=ie.axes.lastCubeProps.axis:Te=[1,1,1],A[0]=2/H.drawingBufferWidth,A[1]=2/H.drawingBufferHeight,K.bind(),te.view=de,te.projection=ke,te.screenSize=A,te.highlightId=ie.highlightId,te.highlightScale=ie.highlightScale,te.clipBounds=ve,te.pickGroup=ie.pickId/255,te.pixelRatio=V;for(var Ee=0;Ee<3;++Ee)if(re[Ee]){te.scale=ie.projectScale[Ee],te.opacity=ie.projectOpacity[Ee];for(var Pe=N,Se=0;Se<16;++Se)Pe[Se]=0;for(var Se=0;Se<4;++Se)Pe[5*Se]=1;Pe[5*Ee]=0,Te[Ee]<0?Pe[12+Ee]=Ae[0][Ee]:Pe[12+Ee]=Ae[1][Ee],v(Pe,ue,Pe),te.model=Pe;var Ne=(Ee+1)%3,Be=(Ee+2)%3,ge=L(h),we=L(R);ge[Ne]=1,we[Be]=1;var Me=T(ke,de,ue,P(E,ge)),me=T(ke,de,ue,P(D,we));if(Math.abs(Me[1])>Math.abs(me[1])){var Re=Me;Me=me,me=Re,Re=ge,ge=we,we=Re;var ce=Ne;Ne=Be,Be=ce}Me[0]<0&&(ge[Ne]=-1),me[1]>0&&(we[Be]=-1);for(var he=0,ye=0,Se=0;Se<4;++Se)he+=Math.pow(ue[4*Ne+Se],2),ye+=Math.pow(ue[4*Be+Se],2);ge[Ne]/=Math.sqrt(he),we[Be]/=Math.sqrt(ye),te.axes[0]=ge,te.axes[1]=we,te.fragClipBounds[0]=O(I,ve[0],Ee,-1e8),te.fragClipBounds[1]=O(I,ve[1],Ee,1e8),ie.vao.bind(),ie.vao.draw(H.TRIANGLES,ie.vertexCount),ie.lineWidth>0&&(H.lineWidth(ie.lineWidth*V),ie.vao.draw(H.LINES,ie.lineVertexCount,ie.vertexCount)),ie.vao.unbind()}}var $=[-1e8,-1e8,-1e8],j=[1e8,1e8,1e8],Y=[$,j];function q(K,ie,ee,V,re,H,te){var ue=ee.gl;if((H===ee.projectHasAlpha||te)&&X(ie,ee,V,re),H===ee.hasAlpha||te){K.bind();var de=K.uniforms;de.model=V.model||w,de.view=V.view||w,de.projection=V.projection||w,A[0]=2/ue.drawingBufferWidth,A[1]=2/ue.drawingBufferHeight,de.screenSize=A,de.highlightId=ee.highlightId,de.highlightScale=ee.highlightScale,de.fragClipBounds=Y,de.clipBounds=ee.axes.bounds,de.opacity=ee.opacity,de.pickGroup=ee.pickId/255,de.pixelRatio=re,ee.vao.bind(),ee.vao.draw(ue.TRIANGLES,ee.vertexCount),ee.lineWidth>0&&(ue.lineWidth(ee.lineWidth*re),ee.vao.draw(ue.LINES,ee.lineVertexCount,ee.vertexCount)),ee.vao.unbind()}}c.draw=function(K){var ie=this.useOrtho?this.orthoShader:this.shader;q(ie,this.projectShader,this,K,this.pixelRatio,!1,!1)},c.drawTransparent=function(K){var ie=this.useOrtho?this.orthoShader:this.shader;q(ie,this.projectShader,this,K,this.pixelRatio,!0,!1)},c.drawPick=function(K){var ie=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;q(ie,this.pickProjectShader,this,K,1,!0,!0)},c.pick=function(K){if(!K||K.id!==this.pickId)return null;var ie=K.value[2]+(K.value[1]<<8)+(K.value[0]<<16);if(ie>=this.pointCount||ie<0)return null;var ee=this.points[ie],V=this._selectResult;V.index=ie;for(var re=0;re<3;++re)V.position[re]=V.dataCoordinate[re]=ee[re];return V},c.highlight=function(K){if(!K)this.highlightId=[1,1,1,1];else{var ie=K.index,ee=ie&255,V=ie>>8&255,re=ie>>16&255;this.highlightId=[ee/255,V/255,re/255,0]}};function Q(K,ie,ee,V){var re;S(K)?ie0){var Ue=0,Ge=Be,_e=[0,0,0,1],De=[0,0,0,1],Ke=S(Te)&&S(Te[0]),Ye=S(Se)&&S(Se[0]);e:for(var V=0;V0?1-ye[0][0]:je<0?1+ye[1][0]:1,nr*=nr>0?1-ye[0][1]:nr<0?1+ye[1][1]:1;for(var fr=[je,nr],nt=ce.cells||[],Yr=ce.positions||[],me=0;methis.buffer.length){u.free(this.buffer);for(var S=this.buffer=u.mallocUint8(f(k*y*4)),x=0;xS)for(y=S;yk)for(y=k;y=0){for(var F=I.type.charAt(I.type.length-1)|0,L=new Array(F),P=0;P=0;)O+=1;D[N]=O}var U=new Array(S.length);function X(){d.program=f.program(_,d._vref,d._fref,E,D);for(var $=0;$=0){var c=_.charCodeAt(_.length-1)-48;if(c<2||c>4)throw new l("","Invalid data type for attribute "+d+": "+_);v(m,w,g[0],y,c,k,d)}else if(_.indexOf("mat")>=0){var c=_.charCodeAt(_.length-1)-48;if(c<2||c>4)throw new l("","Invalid data type for attribute "+d+": "+_);p(m,w,g,y,c,k,d)}else throw new l("","Unknown data type for attribute "+d+": "+_);break}}return k}},3327:function(a,o,i){"use strict";var l=i(216),u=i(8866);a.exports=v;function s(p){return function(){return p}}function f(p,b){for(var m=new Array(p),w=0;w4)throw new u("","Invalid data type");switch(O.charAt(0)){case"b":case"i":p["uniform"+U+"iv"](w[D],N);break;case"v":p["uniform"+U+"fv"](w[D],N);break;default:throw new u("","Unrecognized data type for vector "+name+": "+O)}}else if(O.indexOf("mat")===0&&O.length===4){if(U=O.charCodeAt(O.length-1)-48,U<2||U>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+O);p["uniformMatrix"+U+"fv"](w[D],!1,N);break}else throw new u("","Unknown uniform data type for "+name+": "+O)}}}}}function k(_,g){if(typeof g!="object")return[[_,g]];var c=[];for(var A in g){var h=g[A],R=_;parseInt(A)+""===A?R+="["+A+"]":R+="."+A,typeof h=="object"?c.push.apply(c,k(R,h)):c.push([R,h])}return c}function S(_){switch(_){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var g=_.indexOf("vec");if(0<=g&&g<=1&&_.length===4+g){var c=_.charCodeAt(_.length-1)-48;if(c<2||c>4)throw new u("","Invalid data type");return _.charAt(0)==="b"?f(c,!1):f(c,0)}else if(_.indexOf("mat")===0&&_.length===4){var c=_.charCodeAt(_.length-1)-48;if(c<2||c>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+_);return f(c*c,0)}else throw new u("","Unknown uniform data type for "+name+": "+_)}}function x(_,g,c){if(typeof c=="object"){var A=T(c);Object.defineProperty(_,g,{get:s(A),set:y(c),enumerable:!0,configurable:!1})}else w[c]?Object.defineProperty(_,g,{get:M(c),set:y(c),enumerable:!0,configurable:!1}):_[g]=S(m[c].type)}function T(_){var g;if(Array.isArray(_)){g=new Array(_.length);for(var c=0;c<_.length;++c)x(g,c,_[c])}else{g={};for(var A in _)x(g,A,_[A])}return g}var d=l(m,!0);return{get:s(T(d)),set:y(d),enumerable:!0,configurable:!0}}},216:function(a){"use strict";a.exports=o;function o(i,l){for(var u={},s=0;s1){m[0]in p||(p[m[0]]=[]),p=p[m[0]];for(var w=1;w1)for(var k=0;k0)for(var q=0;qT)return _-1}return _},b=function(x,T,d){return xd?d:x},m=function(x,T,d){var _=T.vectors,g=T.meshgrid,c=x[0],A=x[1],h=x[2],R=g[0].length,E=g[1].length,D=g[2].length,N=p(g[0],c),I=p(g[1],A),F=p(g[2],h),L=N+1,P=I+1,O=F+1;if(N=b(N,0,R-1),L=b(L,0,R-1),I=b(I,0,E-1),P=b(P,0,E-1),F=b(F,0,D-1),O=b(O,0,D-1),N<0||I<0||F<0||L>R-1||P>E-1||O>D-1)return l.create();var U=g[0][N],X=g[0][L],$=g[1][I],j=g[1][P],Y=g[2][F],q=g[2][O],J=(c-U)/(X-U),ae=(A-$)/(j-$),Q=(h-Y)/(q-Y);isFinite(J)||(J=.5),isFinite(ae)||(ae=.5),isFinite(Q)||(Q=.5);var oe,ee,V,re,H,te;switch(d.reversedX&&(N=R-1-N,L=R-1-L),d.reversedY&&(I=E-1-I,P=E-1-P),d.reversedZ&&(F=D-1-F,O=D-1-O),d.filled){case 5:H=F,te=O,V=I*D,re=P*D,oe=N*D*E,ee=L*D*E;break;case 4:H=F,te=O,oe=N*D,ee=L*D,V=I*D*R,re=P*D*R;break;case 3:V=I,re=P,H=F*E,te=O*E,oe=N*E*D,ee=L*E*D;break;case 2:V=I,re=P,oe=N*E,ee=L*E,H=F*E*R,te=O*E*R;break;case 1:oe=N,ee=L,H=F*R,te=O*R,V=I*R*D,re=P*R*D;break;default:oe=N,ee=L,V=I*R,re=P*R,H=F*R*E,te=O*R*E;break}var ue=_[oe+V+H],he=_[oe+V+te],Ce=_[oe+re+H],Se=_[oe+re+te],ve=_[ee+V+H],Te=_[ee+V+te],ke=_[ee+re+H],Fe=_[ee+re+te],Ee=l.create(),ze=l.create(),Be=l.create(),ge=l.create();l.lerp(Ee,ue,ve,J),l.lerp(ze,he,Te,J),l.lerp(Be,Ce,ke,J),l.lerp(ge,Se,Fe,J);var Me=l.create(),ce=l.create();l.lerp(Me,Ee,Be,ae),l.lerp(ce,ze,ge,ae);var ye=l.create();return l.lerp(ye,Me,ce,Q),ye},w=function(x,T){var d=T[0],_=T[1],g=T[2];return x[0]=d<0?-d:d,x[1]=_<0?-_:_,x[2]=g<0?-g:g,x},M=function(x){var T=1/0;x.sort(function(c,A){return c-A});for(var d=x.length,_=1;_L||FeP||EeO)},X=l.distance(T[0],T[1]),$=10*X/_,j=$*$,Y=1,q=0,J=d.length;J>1&&(Y=y(d));for(var ae=0;aeq&&(q=ue),H.push(ue),D.push({points:oe,velocities:ee,divergences:H});for(var he=0;he<_*100&&oe.length<_&&U(Q);){he++;var Ce=l.clone(V),Se=l.squaredLength(Ce);if(Se===0)break;if(Se>j&&l.scale(Ce,Ce,$/Math.sqrt(Se)),l.add(Ce,Ce,Q),V=R(Ce),l.squaredDistance(re,Ce)-j>-1e-4*j){oe.push(Ce),re=Ce,ee.push(V);var te=E(Ce,V),ue=l.length(te);isFinite(ue)&&ue>q&&(q=ue),H.push(ue)}Q=Ce}}var ve=v(D,x.colormap,q,Y);return c?ve.tubeScale=c:(q===0&&(q=1),ve.tubeScale=g*.5*Y/q),ve};var k=i(6740),S=i(6405).createMesh;a.exports.createTubeMesh=function(x,T){return S(x,T,{shaders:k,traceType:"streamtube"})}},990:function(a,o,i){var l=i(9405),u=i(3236),s=u([`precision highp float; +}`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},o.pickShader={vertex:f,fragment:v,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},7815:function(a,o,i){"use strict";var l=i(2931),u=i(9970),s=["xyz","xzy","yxz","yzx","zxy","zyx"],f=function(x,T,d,_){for(var g=x.points,c=x.velocities,A=x.divergences,h=[],R=[],E=[],D=[],N=[],I=[],F=0,L=0,P=u.create(),O=u.create(),U=8,X=0;X0)for(var q=0;qT)return _-1}return _},b=function(x,T,d){return xd?d:x},m=function(x,T,d){var _=T.vectors,g=T.meshgrid,c=x[0],A=x[1],h=x[2],R=g[0].length,E=g[1].length,D=g[2].length,N=p(g[0],c),I=p(g[1],A),F=p(g[2],h),L=N+1,P=I+1,O=F+1;if(N=b(N,0,R-1),L=b(L,0,R-1),I=b(I,0,E-1),P=b(P,0,E-1),F=b(F,0,D-1),O=b(O,0,D-1),N<0||I<0||F<0||L>R-1||P>E-1||O>D-1)return l.create();var U=g[0][N],X=g[0][L],$=g[1][I],j=g[1][P],Y=g[2][F],q=g[2][O],Q=(c-U)/(X-U),ne=(A-$)/(j-$),K=(h-Y)/(q-Y);isFinite(Q)||(Q=.5),isFinite(ne)||(ne=.5),isFinite(K)||(K=.5);var ie,ee,V,re,H,te;switch(d.reversedX&&(N=R-1-N,L=R-1-L),d.reversedY&&(I=E-1-I,P=E-1-P),d.reversedZ&&(F=D-1-F,O=D-1-O),d.filled){case 5:H=F,te=O,V=I*D,re=P*D,ie=N*D*E,ee=L*D*E;break;case 4:H=F,te=O,ie=N*D,ee=L*D,V=I*D*R,re=P*D*R;break;case 3:V=I,re=P,H=F*E,te=O*E,ie=N*E*D,ee=L*E*D;break;case 2:V=I,re=P,ie=N*E,ee=L*E,H=F*E*R,te=O*E*R;break;case 1:ie=N,ee=L,H=F*R,te=O*R,V=I*R*D,re=P*R*D;break;default:ie=N,ee=L,V=I*R,re=P*R,H=F*R*E,te=O*R*E;break}var ue=_[ie+V+H],de=_[ie+V+te],ke=_[ie+re+H],Ae=_[ie+re+te],ve=_[ee+V+H],Te=_[ee+V+te],Ee=_[ee+re+H],Pe=_[ee+re+te],Se=l.create(),Ne=l.create(),Be=l.create(),ge=l.create();l.lerp(Se,ue,ve,Q),l.lerp(Ne,de,Te,Q),l.lerp(Be,ke,Ee,Q),l.lerp(ge,Ae,Pe,Q);var we=l.create(),Me=l.create();l.lerp(we,Se,Be,ne),l.lerp(Me,Ne,ge,ne);var me=l.create();return l.lerp(me,we,Me,K),me},w=function(x,T){var d=T[0],_=T[1],g=T[2];return x[0]=d<0?-d:d,x[1]=_<0?-_:_,x[2]=g<0?-g:g,x},M=function(x){var T=1/0;x.sort(function(c,A){return c-A});for(var d=x.length,_=1;_L||PeP||SeO)},X=l.distance(T[0],T[1]),$=10*X/_,j=$*$,Y=1,q=0,Q=d.length;Q>1&&(Y=y(d));for(var ne=0;neq&&(q=ue),H.push(ue),D.push({points:ie,velocities:ee,divergences:H});for(var de=0;de<_*100&&ie.length<_&&U(K);){de++;var ke=l.clone(V),Ae=l.squaredLength(ke);if(Ae===0)break;if(Ae>j&&l.scale(ke,ke,$/Math.sqrt(Ae)),l.add(ke,ke,K),V=R(ke),l.squaredDistance(re,ke)-j>-1e-4*j){ie.push(ke),re=ke,ee.push(V);var te=E(ke,V),ue=l.length(te);isFinite(ue)&&ue>q&&(q=ue),H.push(ue)}K=ke}}var ve=v(D,x.colormap,q,Y);return c?ve.tubeScale=c:(q===0&&(q=1),ve.tubeScale=g*.5*Y/q),ve};var k=i(6740),S=i(6405).createMesh;a.exports.createTubeMesh=function(x,T){return S(x,T,{shaders:k,traceType:"streamtube"})}},990:function(a,o,i){var l=i(9405),u=i(3236),s=u([`precision highp float; #define GLSLIFY 1 attribute vec4 uv; @@ -1920,13 +1920,13 @@ void main() { vec2 uy = splitFloat(planeCoordinate.y / shape.y); gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0)); } -`]);o.createShader=function(b){var m=l(b,s,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return m.attributes.uv.location=0,m.attributes.f.location=1,m.attributes.normal.location=2,m},o.createPickShader=function(b){var m=l(b,s,p,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return m.attributes.uv.location=0,m.attributes.f.location=1,m.attributes.normal.location=2,m},o.createContourShader=function(b){var m=l(b,v,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return m.attributes.uv.location=0,m.attributes.f.location=1,m},o.createPickContourShader=function(b){var m=l(b,v,p,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return m.attributes.uv.location=0,m.attributes.f.location=1,m}},9499:function(a,o,i){"use strict";a.exports=oe;var l=i(8828),u=i(2762),s=i(8116),f=i(7766),v=i(1888),p=i(6729),b=i(5298),m=i(9994),w=i(9618),M=i(3711),y=i(6760),k=i(7608),S=i(2478),x=i(6199),T=i(990),d=T.createShader,_=T.createContourShader,g=T.createPickShader,c=T.createPickContourShader,A=4*10,h=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],R=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],E=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];(function(){for(var ee=0;ee<3;++ee){var V=E[ee],re=(ee+1)%3,H=(ee+2)%3;V[re+0]=1,V[H+3]=1,V[ee+6]=1}})();function D(ee,V,re,H,te){this.position=ee,this.index=V,this.uv=re,this.level=H,this.dataCoordinate=te}var N=256;function I(ee,V,re,H,te,ue,he,Ce,Se,ve,Te,ke,Fe,Ee,ze){this.gl=ee,this.shape=V,this.bounds=re,this.objectOffset=ze,this.intensityBounds=[],this._shader=H,this._pickShader=te,this._coordinateBuffer=ue,this._vao=he,this._colorMap=Ce,this._contourShader=Se,this._contourPickShader=ve,this._contourBuffer=Te,this._contourVAO=ke,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new D([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=Fe,this._dynamicVAO=Ee,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[w(v.mallocFloat(1024),[0,0]),w(v.mallocFloat(1024),[0,0]),w(v.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var F=I.prototype;F.genColormap=function(ee,V){var re=!1,H=m([p({colormap:ee,nshades:N,format:"rgba"}).map(function(te,ue){var he=V?L(ue/255,V):te[3];return he<1&&(re=!0),[te[0],te[1],te[2],255*he]})]);return b.divseq(H,255),this.hasAlphaScale=re,H},F.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},F.isOpaque=function(){return!this.isTransparent()},F.pickSlots=1,F.setPickBase=function(ee){this.pickId=ee};function L(ee,V){if(!V||!V.length)return 1;for(var re=0;reee&&re>0){var H=(V[re][0]-ee)/(V[re][0]-V[re-1][0]);return V[re][1]*(1-H)+H*V[re-1][1]}}return 1}var P=[0,0,0],O={showSurface:!1,showContour:!1,projections:[h.slice(),h.slice(),h.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function U(ee,V){var re,H,te,ue=V.axes&&V.axes.lastCubeProps.axis||P,he=V.showSurface,Ce=V.showContour;for(re=0;re<3;++re)for(he=he||V.surfaceProject[re],H=0;H<3;++H)Ce=Ce||V.contourProject[re][H];for(re=0;re<3;++re){var Se=O.projections[re];for(H=0;H<16;++H)Se[H]=0;for(H=0;H<4;++H)Se[5*H]=1;Se[5*re]=0,Se[12+re]=V.axesBounds[+(ue[re]>0)][re],y(Se,ee.model,Se);var ve=O.clipBounds[re];for(te=0;te<2;++te)for(H=0;H<3;++H)ve[te][H]=ee.clipBounds[te][H];ve[0][re]=-1e8,ve[1][re]=1e8}return O.showSurface=he,O.showContour=Ce,O}var X={model:h,view:h,projection:h,inverseModel:h.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},$=h.slice(),j=[1,0,0,0,1,0,0,0,1];function Y(ee,V){ee=ee||{};var re=this.gl;re.disable(re.CULL_FACE),this._colorMap.bind(0);var H=X;H.model=ee.model||h,H.view=ee.view||h,H.projection=ee.projection||h,H.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],H.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],H.objectOffset=this.objectOffset,H.contourColor=this.contourColor[0],H.inverseModel=k(H.inverseModel,H.model);for(var te=0;te<2;++te)for(var ue=H.clipBounds[te],he=0;he<3;++he)ue[he]=Math.min(Math.max(this.clipBounds[te][he],-1e8),1e8);H.kambient=this.ambientLight,H.kdiffuse=this.diffuseLight,H.kspecular=this.specularLight,H.roughness=this.roughness,H.fresnel=this.fresnel,H.opacity=this.opacity,H.height=0,H.permutation=j,H.vertexColor=this.vertexColor;var Ce=$;for(y(Ce,H.view,H.model),y(Ce,H.projection,Ce),k(Ce,Ce),te=0;te<3;++te)H.eyePosition[te]=Ce[12+te]/Ce[15];var Se=Ce[15];for(te=0;te<3;++te)Se+=this.lightPosition[te]*Ce[4*te+3];for(te=0;te<3;++te){var ve=Ce[12+te];for(he=0;he<3;++he)ve+=Ce[4*he+te]*this.lightPosition[he];H.lightPosition[te]=ve/Se}var Te=U(H,this);if(Te.showSurface){for(this._shader.bind(),this._shader.uniforms=H,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(re.TRIANGLES,this._vertexCount),te=0;te<3;++te)!this.surfaceProject[te]||!this.vertexCount||(this._shader.uniforms.model=Te.projections[te],this._shader.uniforms.clipBounds=Te.clipBounds[te],this._vao.draw(re.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Te.showContour){var ke=this._contourShader;H.kambient=1,H.kdiffuse=0,H.kspecular=0,H.opacity=1,ke.bind(),ke.uniforms=H;var Fe=this._contourVAO;for(Fe.bind(),te=0;te<3;++te)for(ke.uniforms.permutation=E[te],re.lineWidth(this.contourWidth[te]*this.pixelRatio),he=0;he>4)/16)/255,te=Math.floor(H),ue=H-te,he=V[1]*(ee.value[1]+(ee.value[2]&15)/16)/255,Ce=Math.floor(he),Se=he-Ce;te+=1,Ce+=1;var ve=re.position;ve[0]=ve[1]=ve[2]=0;for(var Te=0;Te<2;++Te)for(var ke=Te?ue:1-ue,Fe=0;Fe<2;++Fe)for(var Ee=Fe?Se:1-Se,ze=te+Te,Be=Ce+Fe,ge=ke*Ee,Me=0;Me<3;++Me)ve[Me]+=this._field[Me].get(ze,Be)*ge;for(var ce=this._pickResult.level,ye=0;ye<3;++ye)if(ce[ye]=S.le(this.contourLevels[ye],ve[ye]),ce[ye]<0)this.contourLevels[ye].length>0&&(ce[ye]=0);else if(ce[ye]Math.abs(me-ve[ye])&&(ce[ye]+=1)}for(re.index[0]=ue<.5?te:te+1,re.index[1]=Se<.5?Ce:Ce+1,re.uv[0]=H/V[0],re.uv[1]=he/V[1],Me=0;Me<3;++Me)re.dataCoordinate[Me]=this._field[Me].get(re.index[0],re.index[1]);return re},F.padField=function(ee,V){var re=V.shape.slice(),H=ee.shape.slice();b.assign(ee.lo(1,1).hi(re[0],re[1]),V),b.assign(ee.lo(1).hi(re[0],1),V.hi(re[0],1)),b.assign(ee.lo(1,H[1]-1).hi(re[0],1),V.lo(0,re[1]-1).hi(re[0],1)),b.assign(ee.lo(0,1).hi(1,re[1]),V.hi(1)),b.assign(ee.lo(H[0]-1,1).hi(1,re[1]),V.lo(re[0]-1)),ee.set(0,0,V.get(0,0)),ee.set(0,H[1]-1,V.get(0,re[1]-1)),ee.set(H[0]-1,0,V.get(re[0]-1,0)),ee.set(H[0]-1,H[1]-1,V.get(re[0]-1,re[1]-1))};function J(ee,V){return Array.isArray(ee)?[V(ee[0]),V(ee[1]),V(ee[2])]:[V(ee),V(ee),V(ee)]}function ae(ee){return Array.isArray(ee)?ee.length===3?[ee[0],ee[1],ee[2],1]:[ee[0],ee[1],ee[2],ee[3]]:[0,0,0,1]}function Q(ee){if(Array.isArray(ee)){if(Array.isArray(ee))return[ae(ee[0]),ae(ee[1]),ae(ee[2])];var V=ae(ee);return[V.slice(),V.slice(),V.slice()]}}F.update=function(ee){ee=ee||{},this.objectOffset=ee.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in ee&&(this.contourWidth=J(ee.contourWidth,Number)),"showContour"in ee&&(this.showContour=J(ee.showContour,Boolean)),"showSurface"in ee&&(this.showSurface=!!ee.showSurface),"contourTint"in ee&&(this.contourTint=J(ee.contourTint,Boolean)),"contourColor"in ee&&(this.contourColor=Q(ee.contourColor)),"contourProject"in ee&&(this.contourProject=J(ee.contourProject,function(wa){return J(wa,Boolean)})),"surfaceProject"in ee&&(this.surfaceProject=ee.surfaceProject),"dynamicColor"in ee&&(this.dynamicColor=Q(ee.dynamicColor)),"dynamicTint"in ee&&(this.dynamicTint=J(ee.dynamicTint,Number)),"dynamicWidth"in ee&&(this.dynamicWidth=J(ee.dynamicWidth,Number)),"opacity"in ee&&(this.opacity=ee.opacity),"opacityscale"in ee&&(this.opacityscale=ee.opacityscale),"colorBounds"in ee&&(this.colorBounds=ee.colorBounds),"vertexColor"in ee&&(this.vertexColor=ee.vertexColor?1:0),"colormap"in ee&&this._colorMap.setPixels(this.genColormap(ee.colormap,this.opacityscale));var V=ee.field||ee.coords&&ee.coords[2]||null,re=!1;if(V||(this._field[2].shape[0]||this._field[2].shape[2]?V=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):V=this._field[2].hi(0,0)),"field"in ee||"coords"in ee){var H=(V.shape[0]+2)*(V.shape[1]+2);H>this._field[2].data.length&&(v.freeFloat(this._field[2].data),this._field[2].data=v.mallocFloat(l.nextPow2(H))),this._field[2]=w(this._field[2].data,[V.shape[0]+2,V.shape[1]+2]),this.padField(this._field[2],V),this.shape=V.shape.slice();for(var te=this.shape,ue=0;ue<2;++ue)this._field[2].size>this._field[ue].data.length&&(v.freeFloat(this._field[ue].data),this._field[ue].data=v.mallocFloat(this._field[2].size)),this._field[ue]=w(this._field[ue].data,[te[0]+2,te[1]+2]);if(ee.coords){var he=ee.coords;if(!Array.isArray(he)||he.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(ue=0;ue<2;++ue){var Ce=he[ue];for(Fe=0;Fe<2;++Fe)if(Ce.shape[Fe]!==te[Fe])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[ue],Ce)}}else if(ee.ticks){var Se=ee.ticks;if(!Array.isArray(Se)||Se.length!==2)throw new Error("gl-surface: invalid ticks");for(ue=0;ue<2;++ue){var ve=Se[ue];if((Array.isArray(ve)||ve.length)&&(ve=w(ve)),ve.shape[0]!==te[ue])throw new Error("gl-surface: invalid tick length");var Te=w(ve.data,te);Te.stride[ue]=ve.stride[0],Te.stride[ue^1]=0,this.padField(this._field[ue],Te)}}else{for(ue=0;ue<2;++ue){var ke=[0,0];ke[ue]=1,this._field[ue]=w(this._field[ue].data,[te[0]+2,te[1]+2],ke,0)}this._field[0].set(0,0,0);for(var Fe=0;Fe0){for(var Kn=0;Kn<5;++Kn)wr.pop();Qe-=1}continue e}}}ft.push(Qe)}this._contourOffsets[Cr]=Ar,this._contourCounts[Cr]=ft}var Fn=v.mallocFloat(wr.length);for(ue=0;ueD||R<0||R>D)throw new Error("gl-texture2d: Invalid texture size");return A._shape=[h,R],A.bind(),E.texImage2D(E.TEXTURE_2D,0,A.format,h,R,0,A.format,A.type,null),A._mipLevels=[0],A}function y(A,h,R,E,D,N){this.gl=A,this.handle=h,this.format=D,this.type=N,this._shape=[R,E],this._mipLevels=[0],this._magFilter=A.NEAREST,this._minFilter=A.NEAREST,this._wrapS=A.CLAMP_TO_EDGE,this._wrapT=A.CLAMP_TO_EDGE,this._anisoSamples=1;var I=this,F=[this._wrapS,this._wrapT];Object.defineProperties(F,[{get:function(){return I._wrapS},set:function(P){return I.wrapS=P}},{get:function(){return I._wrapT},set:function(P){return I.wrapT=P}}]),this._wrapVector=F;var L=[this._shape[0],this._shape[1]];Object.defineProperties(L,[{get:function(){return I._shape[0]},set:function(P){return I.width=P}},{get:function(){return I._shape[1]},set:function(P){return I.height=P}}]),this._shapeVector=L}var k=y.prototype;Object.defineProperties(k,{minFilter:{get:function(){return this._minFilter},set:function(A){this.bind();var h=this.gl;if(this.type===h.FLOAT&&f.indexOf(A)>=0&&(h.getExtension("OES_texture_float_linear")||(A=h.NEAREST)),v.indexOf(A)<0)throw new Error("gl-texture2d: Unknown filter mode "+A);return h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,A),this._minFilter=A}},magFilter:{get:function(){return this._magFilter},set:function(A){this.bind();var h=this.gl;if(this.type===h.FLOAT&&f.indexOf(A)>=0&&(h.getExtension("OES_texture_float_linear")||(A=h.NEAREST)),v.indexOf(A)<0)throw new Error("gl-texture2d: Unknown filter mode "+A);return h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,A),this._magFilter=A}},mipSamples:{get:function(){return this._anisoSamples},set:function(A){var h=this._anisoSamples;if(this._anisoSamples=Math.max(A,1)|0,h!==this._anisoSamples){var R=this.gl.getExtension("EXT_texture_filter_anisotropic");R&&this.gl.texParameterf(this.gl.TEXTURE_2D,R.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(A){if(this.bind(),p.indexOf(A)<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,A),this._wrapS=A}},wrapT:{get:function(){return this._wrapT},set:function(A){if(this.bind(),p.indexOf(A)<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,A),this._wrapT=A}},wrap:{get:function(){return this._wrapVector},set:function(A){if(Array.isArray(A)||(A=[A,A]),A.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var h=0;h<2;++h)if(p.indexOf(A[h])<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);this._wrapS=A[0],this._wrapT=A[1];var R=this.gl;return this.bind(),R.texParameteri(R.TEXTURE_2D,R.TEXTURE_WRAP_S,this._wrapS),R.texParameteri(R.TEXTURE_2D,R.TEXTURE_WRAP_T,this._wrapT),A}},shape:{get:function(){return this._shapeVector},set:function(A){if(!Array.isArray(A))A=[A|0,A|0];else if(A.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return M(this,A[0]|0,A[1]|0),[A[0]|0,A[1]|0]}},width:{get:function(){return this._shape[0]},set:function(A){return A=A|0,M(this,A,this._shape[1]),A}},height:{get:function(){return this._shape[1]},set:function(A){return A=A|0,M(this,this._shape[0],A),A}}}),k.bind=function(A){var h=this.gl;return A!==void 0&&h.activeTexture(h.TEXTURE0+(A|0)),h.bindTexture(h.TEXTURE_2D,this.handle),A!==void 0?A|0:h.getParameter(h.ACTIVE_TEXTURE)-h.TEXTURE0},k.dispose=function(){this.gl.deleteTexture(this.handle)},k.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var A=Math.min(this._shape[0],this._shape[1]),h=0;A>0;++h,A>>>=1)this._mipLevels.indexOf(h)<0&&this._mipLevels.push(h)},k.setPixels=function(A,h,R,E){var D=this.gl;this.bind(),Array.isArray(h)?(E=R,R=h[1]|0,h=h[0]|0):(h=h||0,R=R||0),E=E||0;var N=m(A)?A:A.raw;if(N){var I=this._mipLevels.indexOf(E)<0;I?(D.texImage2D(D.TEXTURE_2D,0,this.format,this.format,this.type,N),this._mipLevels.push(E)):D.texSubImage2D(D.TEXTURE_2D,E,h,R,this.format,this.type,N)}else if(A.shape&&A.stride&&A.data){if(A.shape.length<2||h+A.shape[1]>this._shape[1]>>>E||R+A.shape[0]>this._shape[0]>>>E||h<0||R<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");x(D,h,R,E,this.format,this.type,this._mipLevels,A)}else throw new Error("gl-texture2d: Unsupported data type")};function S(A,h){return A.length===3?h[2]===1&&h[1]===A[0]*A[2]&&h[0]===A[2]:h[0]===1&&h[1]===A[0]}function x(A,h,R,E,D,N,I,F){var L=F.dtype,P=F.shape.slice();if(P.length<2||P.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var O=0,U=0,X=S(P,F.stride.slice());L==="float32"?O=A.FLOAT:L==="float64"?(O=A.FLOAT,X=!1,L="float32"):L==="uint8"?O=A.UNSIGNED_BYTE:(O=A.UNSIGNED_BYTE,X=!1,L="uint8");var $=1;if(P.length===2)U=A.LUMINANCE,P=[P[0],P[1],1],F=l(F.data,P,[F.stride[0],F.stride[1],1],F.offset);else if(P.length===3){if(P[2]===1)U=A.ALPHA;else if(P[2]===2)U=A.LUMINANCE_ALPHA;else if(P[2]===3)U=A.RGB;else if(P[2]===4)U=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");$=P[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((U===A.LUMINANCE||U===A.ALPHA)&&(D===A.LUMINANCE||D===A.ALPHA)&&(U=D),U!==D)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var j=F.size,Y=I.indexOf(E)<0;if(Y&&I.push(E),O===N&&X)F.offset===0&&F.data.length===j?Y?A.texImage2D(A.TEXTURE_2D,E,D,P[0],P[1],0,D,N,F.data):A.texSubImage2D(A.TEXTURE_2D,E,h,R,P[0],P[1],D,N,F.data):Y?A.texImage2D(A.TEXTURE_2D,E,D,P[0],P[1],0,D,N,F.data.subarray(F.offset,F.offset+j)):A.texSubImage2D(A.TEXTURE_2D,E,h,R,P[0],P[1],D,N,F.data.subarray(F.offset,F.offset+j));else{var q;N===A.FLOAT?q=s.mallocFloat32(j):q=s.mallocUint8(j);var J=l(q,P,[P[2],P[2]*P[0],1]);O===A.FLOAT&&N===A.UNSIGNED_BYTE?w(J,F):u.assign(J,F),Y?A.texImage2D(A.TEXTURE_2D,E,D,P[0],P[1],0,D,N,q.subarray(0,j)):A.texSubImage2D(A.TEXTURE_2D,E,h,R,P[0],P[1],D,N,q.subarray(0,j)),N===A.FLOAT?s.freeFloat32(q):s.freeUint8(q)}}function T(A){var h=A.createTexture();return A.bindTexture(A.TEXTURE_2D,h),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MIN_FILTER,A.NEAREST),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MAG_FILTER,A.NEAREST),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_S,A.CLAMP_TO_EDGE),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_T,A.CLAMP_TO_EDGE),h}function d(A,h,R,E,D){var N=A.getParameter(A.MAX_TEXTURE_SIZE);if(h<0||h>N||R<0||R>N)throw new Error("gl-texture2d: Invalid texture shape");if(D===A.FLOAT&&!A.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var I=T(A);return A.texImage2D(A.TEXTURE_2D,0,E,h,R,0,E,D,null),new y(A,I,h,R,E,D)}function _(A,h,R,E,D,N){var I=T(A);return A.texImage2D(A.TEXTURE_2D,0,D,D,N,h),new y(A,I,R,E,D,N)}function g(A,h){var R=h.dtype,E=h.shape.slice(),D=A.getParameter(A.MAX_TEXTURE_SIZE);if(E[0]<0||E[0]>D||E[1]<0||E[1]>D)throw new Error("gl-texture2d: Invalid texture size");var N=S(E,h.stride.slice()),I=0;R==="float32"?I=A.FLOAT:R==="float64"?(I=A.FLOAT,N=!1,R="float32"):R==="uint8"?I=A.UNSIGNED_BYTE:(I=A.UNSIGNED_BYTE,N=!1,R="uint8");var F=0;if(E.length===2)F=A.LUMINANCE,E=[E[0],E[1],1],h=l(h.data,E,[h.stride[0],h.stride[1],1],h.offset);else if(E.length===3)if(E[2]===1)F=A.ALPHA;else if(E[2]===2)F=A.LUMINANCE_ALPHA;else if(E[2]===3)F=A.RGB;else if(E[2]===4)F=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");I===A.FLOAT&&!A.getExtension("OES_texture_float")&&(I=A.UNSIGNED_BYTE,N=!1);var L,P,O=h.size;if(N)h.offset===0&&h.data.length===O?L=h.data:L=h.data.subarray(h.offset,h.offset+O);else{var U=[E[2],E[2]*E[0],1];P=s.malloc(O,R);var X=l(P,E,U,0);(R==="float32"||R==="float64")&&I===A.UNSIGNED_BYTE?w(X,h):u.assign(X,h),L=P.subarray(0,O)}var $=T(A);return A.texImage2D(A.TEXTURE_2D,0,F,E[0],E[1],0,F,I,L),N||s.free(P),new y(A,$,E[0],E[1],F,I)}function c(A){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(f||b(A),typeof arguments[1]=="number")return d(A,arguments[1],arguments[2],arguments[3]||A.RGBA,arguments[4]||A.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return d(A,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var h=arguments[1],R=m(h)?h:h.raw;if(R)return _(A,R,h.width|0,h.height|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(h.shape&&h.data&&h.stride)return g(A,h)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433:function(a){"use strict";function o(i,l,u){l?l.bind():i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,null);var s=i.getParameter(i.MAX_VERTEX_ATTRIBS)|0;if(u){if(u.length>s)throw new Error("gl-vao: Too many vertex attributes");for(var f=0;f1?0:Math.acos(w)}},9226:function(a){a.exports=o;function o(i,l){return i[0]=Math.ceil(l[0]),i[1]=Math.ceil(l[1]),i[2]=Math.ceil(l[2]),i}},3126:function(a){a.exports=o;function o(i){var l=new Float32Array(3);return l[0]=i[0],l[1]=i[1],l[2]=i[2],l}},3990:function(a){a.exports=o;function o(i,l){return i[0]=l[0],i[1]=l[1],i[2]=l[2],i}},1091:function(a){a.exports=o;function o(){var i=new Float32Array(3);return i[0]=0,i[1]=0,i[2]=0,i}},5911:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],v=l[2],p=u[0],b=u[1],m=u[2];return i[0]=f*m-v*b,i[1]=v*p-s*m,i[2]=s*b-f*p,i}},5455:function(a,o,i){a.exports=i(7056)},7056:function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2];return Math.sqrt(u*u+s*s+f*f)}},4008:function(a,o,i){a.exports=i(6690)},6690:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]/u[0],i[1]=l[1]/u[1],i[2]=l[2]/u[2],i}},244:function(a){a.exports=o;function o(i,l){return i[0]*l[0]+i[1]*l[1]+i[2]*l[2]}},2613:function(a){a.exports=1e-6},9922:function(a,o,i){a.exports=u;var l=i(2613);function u(s,f){var v=s[0],p=s[1],b=s[2],m=f[0],w=f[1],M=f[2];return Math.abs(v-m)<=l*Math.max(1,Math.abs(v),Math.abs(m))&&Math.abs(p-w)<=l*Math.max(1,Math.abs(p),Math.abs(w))&&Math.abs(b-M)<=l*Math.max(1,Math.abs(b),Math.abs(M))}},9265:function(a){a.exports=o;function o(i,l){return i[0]===l[0]&&i[1]===l[1]&&i[2]===l[2]}},2681:function(a){a.exports=o;function o(i,l){return i[0]=Math.floor(l[0]),i[1]=Math.floor(l[1]),i[2]=Math.floor(l[2]),i}},5137:function(a,o,i){a.exports=u;var l=i(1091)();function u(s,f,v,p,b,m){var w,M;for(f||(f=3),v||(v=0),p?M=Math.min(p*f+v,s.length):M=s.length,w=v;w0&&(v=1/Math.sqrt(v),i[0]=l[0]*v,i[1]=l[1]*v,i[2]=l[2]*v),i}},7636:function(a){a.exports=o;function o(i,l){l=l||1;var u=Math.random()*2*Math.PI,s=Math.random()*2-1,f=Math.sqrt(1-s*s)*l;return i[0]=Math.cos(u)*f,i[1]=Math.sin(u)*f,i[2]=s*l,i}},6894:function(a){a.exports=o;function o(i,l,u,s){var f=u[1],v=u[2],p=l[1]-f,b=l[2]-v,m=Math.sin(s),w=Math.cos(s);return i[0]=l[0],i[1]=f+p*w-b*m,i[2]=v+p*m+b*w,i}},109:function(a){a.exports=o;function o(i,l,u,s){var f=u[0],v=u[2],p=l[0]-f,b=l[2]-v,m=Math.sin(s),w=Math.cos(s);return i[0]=f+b*m+p*w,i[1]=l[1],i[2]=v+b*w-p*m,i}},8692:function(a){a.exports=o;function o(i,l,u,s){var f=u[0],v=u[1],p=l[0]-f,b=l[1]-v,m=Math.sin(s),w=Math.cos(s);return i[0]=f+p*w-b*m,i[1]=v+p*m+b*w,i[2]=l[2],i}},2447:function(a){a.exports=o;function o(i,l){return i[0]=Math.round(l[0]),i[1]=Math.round(l[1]),i[2]=Math.round(l[2]),i}},6621:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u,i[1]=l[1]*u,i[2]=l[2]*u,i}},8489:function(a){a.exports=o;function o(i,l,u,s){return i[0]=l[0]+u[0]*s,i[1]=l[1]+u[1]*s,i[2]=l[2]+u[2]*s,i}},1463:function(a){a.exports=o;function o(i,l,u,s){return i[0]=l,i[1]=u,i[2]=s,i}},6141:function(a,o,i){a.exports=i(2953)},5486:function(a,o,i){a.exports=i(3066)},2953:function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2];return u*u+s*s+f*f}},3066:function(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2];return l*l+u*u+s*s}},2229:function(a,o,i){a.exports=i(6843)},6843:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]-u[0],i[1]=l[1]-u[1],i[2]=l[2]-u[2],i}},492:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],v=l[2];return i[0]=s*u[0]+f*u[3]+v*u[6],i[1]=s*u[1]+f*u[4]+v*u[7],i[2]=s*u[2]+f*u[5]+v*u[8],i}},5673:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],v=l[2],p=u[3]*s+u[7]*f+u[11]*v+u[15];return p=p||1,i[0]=(u[0]*s+u[4]*f+u[8]*v+u[12])/p,i[1]=(u[1]*s+u[5]*f+u[9]*v+u[13])/p,i[2]=(u[2]*s+u[6]*f+u[10]*v+u[14])/p,i}},264:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],v=l[2],p=u[0],b=u[1],m=u[2],w=u[3],M=w*s+b*v-m*f,y=w*f+m*s-p*v,k=w*v+p*f-b*s,S=-p*s-b*f-m*v;return i[0]=M*w+S*-p+y*-m-k*-b,i[1]=y*w+S*-b+k*-p-M*-m,i[2]=k*w+S*-m+M*-b-y*-p,i}},4361:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]+u[0],i[1]=l[1]+u[1],i[2]=l[2]+u[2],i[3]=l[3]+u[3],i}},2335:function(a){a.exports=o;function o(i){var l=new Float32Array(4);return l[0]=i[0],l[1]=i[1],l[2]=i[2],l[3]=i[3],l}},2933:function(a){a.exports=o;function o(i,l){return i[0]=l[0],i[1]=l[1],i[2]=l[2],i[3]=l[3],i}},7536:function(a){a.exports=o;function o(){var i=new Float32Array(4);return i[0]=0,i[1]=0,i[2]=0,i[3]=0,i}},4691:function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2],v=l[3]-i[3];return Math.sqrt(u*u+s*s+f*f+v*v)}},1373:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]/u[0],i[1]=l[1]/u[1],i[2]=l[2]/u[2],i[3]=l[3]/u[3],i}},3750:function(a){a.exports=o;function o(i,l){return i[0]*l[0]+i[1]*l[1]+i[2]*l[2]+i[3]*l[3]}},3390:function(a){a.exports=o;function o(i,l,u,s){var f=new Float32Array(4);return f[0]=i,f[1]=l,f[2]=u,f[3]=s,f}},9970:function(a,o,i){a.exports={create:i(7536),clone:i(2335),fromValues:i(3390),copy:i(2933),set:i(4578),add:i(4361),subtract:i(6860),multiply:i(3576),divide:i(1373),min:i(2334),max:i(160),scale:i(9288),scaleAndAdd:i(4844),distance:i(4691),squaredDistance:i(7960),length:i(6808),squaredLength:i(483),negate:i(1498),inverse:i(4494),normalize:i(5177),dot:i(3750),lerp:i(2573),random:i(9131),transformMat4:i(5352),transformQuat:i(4041)}},4494:function(a){a.exports=o;function o(i,l){return i[0]=1/l[0],i[1]=1/l[1],i[2]=1/l[2],i[3]=1/l[3],i}},6808:function(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2],f=i[3];return Math.sqrt(l*l+u*u+s*s+f*f)}},2573:function(a){a.exports=o;function o(i,l,u,s){var f=l[0],v=l[1],p=l[2],b=l[3];return i[0]=f+s*(u[0]-f),i[1]=v+s*(u[1]-v),i[2]=p+s*(u[2]-p),i[3]=b+s*(u[3]-b),i}},160:function(a){a.exports=o;function o(i,l,u){return i[0]=Math.max(l[0],u[0]),i[1]=Math.max(l[1],u[1]),i[2]=Math.max(l[2],u[2]),i[3]=Math.max(l[3],u[3]),i}},2334:function(a){a.exports=o;function o(i,l,u){return i[0]=Math.min(l[0],u[0]),i[1]=Math.min(l[1],u[1]),i[2]=Math.min(l[2],u[2]),i[3]=Math.min(l[3],u[3]),i}},3576:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u[0],i[1]=l[1]*u[1],i[2]=l[2]*u[2],i[3]=l[3]*u[3],i}},1498:function(a){a.exports=o;function o(i,l){return i[0]=-l[0],i[1]=-l[1],i[2]=-l[2],i[3]=-l[3],i}},5177:function(a){a.exports=o;function o(i,l){var u=l[0],s=l[1],f=l[2],v=l[3],p=u*u+s*s+f*f+v*v;return p>0&&(p=1/Math.sqrt(p),i[0]=u*p,i[1]=s*p,i[2]=f*p,i[3]=v*p),i}},9131:function(a,o,i){var l=i(5177),u=i(9288);a.exports=s;function s(f,v){return v=v||1,f[0]=Math.random(),f[1]=Math.random(),f[2]=Math.random(),f[3]=Math.random(),l(f,f),u(f,f,v),f}},9288:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u,i[1]=l[1]*u,i[2]=l[2]*u,i[3]=l[3]*u,i}},4844:function(a){a.exports=o;function o(i,l,u,s){return i[0]=l[0]+u[0]*s,i[1]=l[1]+u[1]*s,i[2]=l[2]+u[2]*s,i[3]=l[3]+u[3]*s,i}},4578:function(a){a.exports=o;function o(i,l,u,s,f){return i[0]=l,i[1]=u,i[2]=s,i[3]=f,i}},7960:function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2],v=l[3]-i[3];return u*u+s*s+f*f+v*v}},483:function(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2],f=i[3];return l*l+u*u+s*s+f*f}},6860:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]-u[0],i[1]=l[1]-u[1],i[2]=l[2]-u[2],i[3]=l[3]-u[3],i}},5352:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],v=l[2],p=l[3];return i[0]=u[0]*s+u[4]*f+u[8]*v+u[12]*p,i[1]=u[1]*s+u[5]*f+u[9]*v+u[13]*p,i[2]=u[2]*s+u[6]*f+u[10]*v+u[14]*p,i[3]=u[3]*s+u[7]*f+u[11]*v+u[15]*p,i}},4041:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],v=l[2],p=u[0],b=u[1],m=u[2],w=u[3],M=w*s+b*v-m*f,y=w*f+m*s-p*v,k=w*v+p*f-b*s,S=-p*s-b*f-m*v;return i[0]=M*w+S*-p+y*-m-k*-b,i[1]=y*w+S*-b+k*-p-M*-m,i[2]=k*w+S*-m+M*-b-y*-p,i[3]=l[3],i}},1848:function(a,o,i){var l=i(4905),u=i(6468);a.exports=s;function s(f){for(var v=Array.isArray(f)?f:l(f),p=0;p0)continue;ye=ge.slice(0,1).join("")}return re(ye),j+=ye.length,L=L.slice(ye.length),L.length}while(!0)}function Fe(){return/[^a-fA-F0-9]/.test(I)?(re(L.join("")),N=p,E):(L.push(I),F=I,E+1)}function Ee(){return I==="."||/[eE]/.test(I)?(L.push(I),N=S,F=I,E+1):I==="x"&&L.length===1&&L[0]==="0"?(N=c,L.push(I),F=I,E+1):/[^\d]/.test(I)?(re(L.join("")),N=p,E):(L.push(I),F=I,E+1)}function ze(){return I==="f"&&(L.push(I),F=I,E+=1),/[eE]/.test(I)||(I==="-"||I==="+")&&/[eE]/.test(F)?(L.push(I),F=I,E+1):/[^\d]/.test(I)?(re(L.join("")),N=p,E):(L.push(I),F=I,E+1)}function Be(){if(/[^\d\w_]/.test(I)){var ge=L.join("");return V[ge]?N=d:ee[ge]?N=T:N=x,re(L.join("")),N=p,E}return L.push(I),F=I,E+1}}},3508:function(a,o,i){var l=i(6852);l=l.slice().filter(function(u){return!/^(gl\_|texture)/.test(u)}),a.exports=l.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},6852:function(a){a.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},7932:function(a,o,i){var l=i(620);a.exports=l.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},620:function(a){a.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},7827:function(a){a.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905:function(a,o,i){var l=i(5874);a.exports=u;function u(s,f){var v=l(f),p=[];return p=p.concat(v(s)),p=p.concat(v(null)),p}},3236:function(a){a.exports=function(o){typeof o=="string"&&(o=[o]);for(var i=[].slice.call(arguments,1),l=[],u=0;u>1,M=-7,y=u?f-1:0,k=u?-1:1,S=i[l+y];for(y+=k,v=S&(1<<-M)-1,S>>=-M,M+=b;M>0;v=v*256+i[l+y],y+=k,M-=8);for(p=v&(1<<-M)-1,v>>=-M,M+=s;M>0;p=p*256+i[l+y],y+=k,M-=8);if(v===0)v=1-w;else{if(v===m)return p?NaN:(S?-1:1)*(1/0);p=p+Math.pow(2,s),v=v-w}return(S?-1:1)*p*Math.pow(2,v-s)},o.write=function(i,l,u,s,f,v){var p,b,m,w=v*8-f-1,M=(1<>1,k=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=s?0:v-1,x=s?1:-1,T=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(b=isNaN(l)?1:0,p=M):(p=Math.floor(Math.log(l)/Math.LN2),l*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+y>=1?l+=k/m:l+=k*Math.pow(2,1-y),l*m>=2&&(p++,m/=2),p+y>=M?(b=0,p=M):p+y>=1?(b=(l*m-1)*Math.pow(2,f),p=p+y):(b=l*Math.pow(2,y-1)*Math.pow(2,f),p=0));f>=8;i[u+S]=b&255,S+=x,b/=256,f-=8);for(p=p<0;i[u+S]=p&255,S+=x,p/=256,w-=8);i[u+S-x]|=T*128}},8954:function(a,o,i){"use strict";a.exports=y;var l=i(3250),u=i(6803).Fw;function s(k,S,x){this.vertices=k,this.adjacent=S,this.boundary=x,this.lastVisited=-1}s.prototype.flip=function(){var k=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=k;var S=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=S};function f(k,S,x){this.vertices=k,this.cell=S,this.index=x}function v(k,S){return u(k.vertices,S.vertices)}function p(k){return function(){var S=this.tuple;return k.apply(this,S)}}function b(k){var S=l[k+1];return S||(S=l),p(S)}var m=[];function w(k,S,x){this.dimension=k,this.vertices=S,this.simplices=x,this.interior=x.filter(function(_){return!_.boundary}),this.tuple=new Array(k+1);for(var T=0;T<=k;++T)this.tuple[T]=this.vertices[T];var d=m[k];d||(d=m[k]=b(k)),this.orient=d}var M=w.prototype;M.handleBoundaryDegeneracy=function(k,S){var x=this.dimension,T=this.vertices.length-1,d=this.tuple,_=this.vertices,g=[k];for(k.lastVisited=-T;g.length>0;){k=g.pop();for(var c=k.adjacent,A=0;A<=x;++A){var h=c[A];if(!(!h.boundary||h.lastVisited<=-T)){for(var R=h.vertices,E=0;E<=x;++E){var D=R[E];D<0?d[E]=S:d[E]=_[D]}var N=this.orient();if(N>0)return h;h.lastVisited=-T,N===0&&g.push(h)}}}return null},M.walk=function(k,S){var x=this.vertices.length-1,T=this.dimension,d=this.vertices,_=this.tuple,g=S?this.interior.length*Math.random()|0:this.interior.length-1,c=this.interior[g];e:for(;!c.boundary;){for(var A=c.vertices,h=c.adjacent,R=0;R<=T;++R)_[R]=d[A[R]];c.lastVisited=x;for(var R=0;R<=T;++R){var E=h[R];if(!(E.lastVisited>=x)){var D=_[R];_[R]=k;var N=this.orient();if(_[R]=D,N<0){c=E;continue e}else E.boundary?E.lastVisited=-x:E.lastVisited=x}}return}return c},M.addPeaks=function(k,S){var x=this.vertices.length-1,T=this.dimension,d=this.vertices,_=this.tuple,g=this.interior,c=this.simplices,A=[S];S.lastVisited=x,S.vertices[S.vertices.indexOf(-1)]=x,S.boundary=!1,g.push(S);for(var h=[];A.length>0;){var S=A.pop(),R=S.vertices,E=S.adjacent,D=R.indexOf(x);if(!(D<0)){for(var N=0;N<=T;++N)if(N!==D){var I=E[N];if(!(!I.boundary||I.lastVisited>=x)){var F=I.vertices;if(I.lastVisited!==-x){for(var L=0,P=0;P<=T;++P)F[P]<0?(L=P,_[P]=k):_[P]=d[F[P]];var O=this.orient();if(O>0){F[L]=x,I.boundary=!1,g.push(I),A.push(I),I.lastVisited=x;continue}else I.lastVisited=-x}var U=I.adjacent,X=R.slice(),$=E.slice(),j=new s(X,$,!0);c.push(j);var Y=U.indexOf(S);if(!(Y<0)){U[Y]=j,$[D]=I,X[N]=-1,$[N]=S,E[N]=j,j.flip();for(var P=0;P<=T;++P){var q=X[P];if(!(q<0||q===x)){for(var J=new Array(T-1),ae=0,Q=0;Q<=T;++Q){var oe=X[Q];oe<0||Q===P||(J[ae++]=oe)}h.push(new f(J,j,P))}}}}}}}h.sort(v);for(var N=0;N+1=0?g[A++]=c[R]:h=R&1;if(h===(k&1)){var E=g[0];g[0]=g[1],g[1]=E}S.push(g)}}return S};function y(k,S){var x=k.length;if(x===0)throw new Error("Must have at least d+1 points");var T=k[0].length;if(x<=T)throw new Error("Must input at least d+1 points");var d=k.slice(0,T+1),_=l.apply(void 0,d);if(_===0)throw new Error("Input not in general position");for(var g=new Array(T+1),c=0;c<=T;++c)g[c]=c;_<0&&(g[0]=1,g[1]=0);for(var A=new s(g,new Array(T+1),!1),h=A.adjacent,R=new Array(T+2),c=0;c<=T;++c){for(var E=g.slice(),D=0;D<=T;++D)D===c&&(E[D]=-1);var N=E[0];E[0]=E[1],E[1]=N;var I=new s(E,new Array(T+1),!0);h[c]=I,R[c]=I}R[T+1]=A;for(var c=0;c<=T;++c)for(var E=h[c].vertices,F=h[c].adjacent,D=0;D<=T;++D){var L=E[D];if(L<0){F[D]=A;continue}for(var P=0;P<=T;++P)h[P].vertices.indexOf(L)<0&&(F[D]=h[P])}for(var O=new w(T,d,R),U=!!S,c=T+1;c3*(R+1)?w(this,h):this.left.insert(h):this.left=_([h]);else if(h[0]>this.mid)this.right?4*(this.right.count+1)>3*(R+1)?w(this,h):this.right.insert(h):this.right=_([h]);else{var E=l.ge(this.leftPoints,h,T),D=l.ge(this.rightPoints,h,d);this.leftPoints.splice(E,0,h),this.rightPoints.splice(D,0,h)}},p.remove=function(h){var R=this.count-this.leftPoints;if(h[1]3*(R-1))return M(this,h);var D=this.left.remove(h);return D===f?(this.left=null,this.count-=1,s):(D===s&&(this.count-=1),D)}else if(h[0]>this.mid){if(!this.right)return u;var N=this.left?this.left.count:0;if(4*N>3*(R-1))return M(this,h);var D=this.right.remove(h);return D===f?(this.right=null,this.count-=1,s):(D===s&&(this.count-=1),D)}else{if(this.count===1)return this.leftPoints[0]===h?f:u;if(this.leftPoints.length===1&&this.leftPoints[0]===h){if(this.left&&this.right){for(var I=this,F=this.left;F.right;)I=F,F=F.right;if(I===this)F.right=this.right;else{var L=this.left,D=this.right;I.count-=F.count,I.right=F.left,F.left=L,F.right=D}b(this,F),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?b(this,this.left):b(this,this.right);return s}for(var L=l.ge(this.leftPoints,h,T);L=0&&h[D][1]>=R;--D){var N=E(h[D]);if(N)return N}}function S(h,R){for(var E=0;Ethis.mid){if(this.right){var E=this.right.queryPoint(h,R);if(E)return E}return k(this.rightPoints,h,R)}else return S(this.leftPoints,R)},p.queryInterval=function(h,R,E){if(hthis.mid&&this.right){var D=this.right.queryInterval(h,R,E);if(D)return D}return Rthis.mid?k(this.rightPoints,h,E):S(this.leftPoints,E)};function x(h,R){return h-R}function T(h,R){var E=h[0]-R[0];return E||h[1]-R[1]}function d(h,R){var E=h[1]-R[1];return E||h[0]-R[0]}function _(h){if(h.length===0)return null;for(var R=[],E=0;E>1],N=[],I=[],F=[],E=0;E13)&&l!==32&&l!==133&&l!==160&&l!==5760&&l!==6158&&(l<8192||l>8205)&&l!==8232&&l!==8233&&l!==8239&&l!==8287&&l!==8288&&l!==12288&&l!==65279)return!1;return!0}},395:function(a){function o(i,l,u){return i*(1-u)+l*u}a.exports=o},2652:function(a,o,i){var l=i(4335),u=i(6864),s=i(1903),f=i(9921),v=i(7608),p=i(5665),b={length:i(1387),normalize:i(3536),dot:i(244),cross:i(5911)},m=u(),w=u(),M=[0,0,0,0],y=[[0,0,0],[0,0,0],[0,0,0]],k=[0,0,0];a.exports=function(_,g,c,A,h,R){if(g||(g=[0,0,0]),c||(c=[0,0,0]),A||(A=[0,0,0]),h||(h=[0,0,0,1]),R||(R=[0,0,0,1]),!l(m,_)||(s(w,m),w[3]=0,w[7]=0,w[11]=0,w[15]=1,Math.abs(f(w)<1e-8)))return!1;var E=m[3],D=m[7],N=m[11],I=m[12],F=m[13],L=m[14],P=m[15];if(E!==0||D!==0||N!==0){M[0]=E,M[1]=D,M[2]=N,M[3]=P;var O=v(w,w);if(!O)return!1;p(w,w),S(h,M,w)}else h[0]=h[1]=h[2]=0,h[3]=1;if(g[0]=I,g[1]=F,g[2]=L,x(y,m),c[0]=b.length(y[0]),b.normalize(y[0],y[0]),A[0]=b.dot(y[0],y[1]),T(y[1],y[1],y[0],1,-A[0]),c[1]=b.length(y[1]),b.normalize(y[1],y[1]),A[0]/=c[1],A[1]=b.dot(y[0],y[2]),T(y[2],y[2],y[0],1,-A[1]),A[2]=b.dot(y[1],y[2]),T(y[2],y[2],y[1],1,-A[2]),c[2]=b.length(y[2]),b.normalize(y[2],y[2]),A[1]/=c[2],A[2]/=c[2],b.cross(k,y[1],y[2]),b.dot(y[0],k)<0)for(var U=0;U<3;U++)c[U]*=-1,y[U][0]*=-1,y[U][1]*=-1,y[U][2]*=-1;return R[0]=.5*Math.sqrt(Math.max(1+y[0][0]-y[1][1]-y[2][2],0)),R[1]=.5*Math.sqrt(Math.max(1-y[0][0]+y[1][1]-y[2][2],0)),R[2]=.5*Math.sqrt(Math.max(1-y[0][0]-y[1][1]+y[2][2],0)),R[3]=.5*Math.sqrt(Math.max(1+y[0][0]+y[1][1]+y[2][2],0)),y[2][1]>y[1][2]&&(R[0]=-R[0]),y[0][2]>y[2][0]&&(R[1]=-R[1]),y[1][0]>y[0][1]&&(R[2]=-R[2]),!0};function S(d,_,g){var c=_[0],A=_[1],h=_[2],R=_[3];return d[0]=g[0]*c+g[4]*A+g[8]*h+g[12]*R,d[1]=g[1]*c+g[5]*A+g[9]*h+g[13]*R,d[2]=g[2]*c+g[6]*A+g[10]*h+g[14]*R,d[3]=g[3]*c+g[7]*A+g[11]*h+g[15]*R,d}function x(d,_){d[0][0]=_[0],d[0][1]=_[1],d[0][2]=_[2],d[1][0]=_[4],d[1][1]=_[5],d[1][2]=_[6],d[2][0]=_[8],d[2][1]=_[9],d[2][2]=_[10]}function T(d,_,g,c,A){d[0]=_[0]*c+g[0]*A,d[1]=_[1]*c+g[1]*A,d[2]=_[2]*c+g[2]*A}},4335:function(a){a.exports=function(i,l){var u=l[15];if(u===0)return!1;for(var s=1/u,f=0;f<16;f++)i[f]=l[f]*s;return!0}},7442:function(a,o,i){var l=i(6658),u=i(7182),s=i(2652),f=i(9921),v=i(8648),p=M(),b=M(),m=M();a.exports=w;function w(S,x,T,d){if(f(x)===0||f(T)===0)return!1;var _=s(x,p.translate,p.scale,p.skew,p.perspective,p.quaternion),g=s(T,b.translate,b.scale,b.skew,b.perspective,b.quaternion);return!_||!g?!1:(l(m.translate,p.translate,b.translate,d),l(m.skew,p.skew,b.skew,d),l(m.scale,p.scale,b.scale,d),l(m.perspective,p.perspective,b.perspective,d),v(m.quaternion,p.quaternion,b.quaternion,d),u(S,m.translate,m.scale,m.skew,m.perspective,m.quaternion),!0)}function M(){return{translate:y(),scale:y(1),skew:y(),perspective:k(),quaternion:k()}}function y(S){return[S||0,S||0,S||0]}function k(){return[0,0,0,1]}},7182:function(a,o,i){var l={identity:i(7894),translate:i(7656),multiply:i(6760),create:i(6864),scale:i(2504),fromRotationTranslation:i(6743)},u=l.create(),s=l.create();a.exports=function(v,p,b,m,w,M){return l.identity(v),l.fromRotationTranslation(v,M,p),v[3]=w[0],v[7]=w[1],v[11]=w[2],v[15]=w[3],l.identity(s),m[2]!==0&&(s[9]=m[2],l.multiply(v,v,s)),m[1]!==0&&(s[9]=0,s[8]=m[1],l.multiply(v,v,s)),m[0]!==0&&(s[8]=0,s[4]=m[0],l.multiply(v,v,s)),l.scale(v,v,b),v}},1811:function(a,o,i){"use strict";var l=i(2478),u=i(7442),s=i(7608),f=i(5567),v=i(2408),p=i(7089),b=i(6582),m=i(7656),w=i(2504),M=i(3536),y=[0,0,0];a.exports=T;function k(d){this._components=d.slice(),this._time=[0],this.prevMatrix=d.slice(),this.nextMatrix=d.slice(),this.computedMatrix=d.slice(),this.computedInverse=d.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var S=k.prototype;S.recalcMatrix=function(d){var _=this._time,g=l.le(_,d),c=this.computedMatrix;if(!(g<0)){var A=this._components;if(g===_.length-1)for(var h=16*g,R=0;R<16;++R)c[R]=A[h++];else{for(var E=_[g+1]-_[g],h=16*g,D=this.prevMatrix,N=!0,R=0;R<16;++R)D[R]=A[h++];for(var I=this.nextMatrix,R=0;R<16;++R)I[R]=A[h++],N=N&&D[R]===I[R];if(E<1e-6||N)for(var R=0;R<16;++R)c[R]=D[R];else u(c,D,I,(d-_[g])/E)}var F=this.computedUp;F[0]=c[1],F[1]=c[5],F[2]=c[9],M(F,F);var L=this.computedInverse;s(L,c);var P=this.computedEye,O=L[15];P[0]=L[12]/O,P[1]=L[13]/O,P[2]=L[14]/O;for(var U=this.computedCenter,X=Math.exp(this.computedRadius[0]),R=0;R<3;++R)U[R]=P[R]-c[2+4*R]*X}},S.idle=function(d){if(!(d1&&l(s[b[y-2]],s[b[y-1]],M)<=0;)y-=1,b.pop();for(b.push(w),y=m.length;y>1&&l(s[m[y-2]],s[m[y-1]],M)>=0;)y-=1,m.pop();m.push(w)}for(var k=new Array(m.length+b.length-2),S=0,v=0,x=b.length;v0;--T)k[S++]=m[T];return k}},351:function(a,o,i){"use strict";a.exports=u;var l=i(4687);function u(s,f){f||(f=s,s=window);var v=0,p=0,b=0,m={shift:!1,alt:!1,control:!1,meta:!1},w=!1;function M(h){var R=!1;return"altKey"in h&&(R=R||h.altKey!==m.alt,m.alt=!!h.altKey),"shiftKey"in h&&(R=R||h.shiftKey!==m.shift,m.shift=!!h.shiftKey),"ctrlKey"in h&&(R=R||h.ctrlKey!==m.control,m.control=!!h.ctrlKey),"metaKey"in h&&(R=R||h.metaKey!==m.meta,m.meta=!!h.metaKey),R}function y(h,R){var E=l.x(R),D=l.y(R);"buttons"in R&&(h=R.buttons|0),(h!==v||E!==p||D!==b||M(R))&&(v=h|0,p=E||0,b=D||0,f&&f(v,p,b,m))}function k(h){y(0,h)}function S(){(v||p||b||m.shift||m.alt||m.meta||m.control)&&(p=b=0,v=0,m.shift=m.alt=m.control=m.meta=!1,f&&f(0,0,0,m))}function x(h){M(h)&&f&&f(v,p,b,m)}function T(h){l.buttons(h)===0?y(0,h):y(v,h)}function d(h){y(v|l.buttons(h),h)}function _(h){y(v&~l.buttons(h),h)}function g(){w||(w=!0,s.addEventListener("mousemove",T),s.addEventListener("mousedown",d),s.addEventListener("mouseup",_),s.addEventListener("mouseleave",k),s.addEventListener("mouseenter",k),s.addEventListener("mouseout",k),s.addEventListener("mouseover",k),s.addEventListener("blur",S),s.addEventListener("keyup",x),s.addEventListener("keydown",x),s.addEventListener("keypress",x),s!==window&&(window.addEventListener("blur",S),window.addEventListener("keyup",x),window.addEventListener("keydown",x),window.addEventListener("keypress",x)))}function c(){w&&(w=!1,s.removeEventListener("mousemove",T),s.removeEventListener("mousedown",d),s.removeEventListener("mouseup",_),s.removeEventListener("mouseleave",k),s.removeEventListener("mouseenter",k),s.removeEventListener("mouseout",k),s.removeEventListener("mouseover",k),s.removeEventListener("blur",S),s.removeEventListener("keyup",x),s.removeEventListener("keydown",x),s.removeEventListener("keypress",x),s!==window&&(window.removeEventListener("blur",S),window.removeEventListener("keyup",x),window.removeEventListener("keydown",x),window.removeEventListener("keypress",x)))}g();var A={element:s};return Object.defineProperties(A,{enabled:{get:function(){return w},set:function(h){h?g():c()},enumerable:!0},buttons:{get:function(){return v},enumerable:!0},x:{get:function(){return p},enumerable:!0},y:{get:function(){return b},enumerable:!0},mods:{get:function(){return m},enumerable:!0}}),A}},24:function(a){var o={left:0,top:0};a.exports=i;function i(u,s,f){s=s||u.currentTarget||u.srcElement,Array.isArray(f)||(f=[0,0]);var v=u.clientX||0,p=u.clientY||0,b=l(s);return f[0]=v-b.left,f[1]=p-b.top,f}function l(u){return u===window||u===document||u===document.body?o:u.getBoundingClientRect()}},4687:function(a,o){"use strict";function i(f){if(typeof f=="object"){if("buttons"in f)return f.buttons;if("which"in f){var v=f.which;if(v===2)return 4;if(v===3)return 2;if(v>0)return 1<=0)return 1<0){if($=1,q[ae++]=m(g[R],S,x,T),R+=O,d>0)for(X=1,E=g[R],Q=q[ae]=m(E,S,x,T),V=q[ae+oe],te=q[ae+re],Ce=q[ae+ue],(Q!==V||Q!==te||Q!==Ce)&&(N=g[R+D],F=g[R+I],P=g[R+L],p(X,$,E,N,F,P,Q,V,te,Ce,S,x,T),Se=J[ae]=j++),ae+=1,R+=O,X=2;X0)for(X=1,E=g[R],Q=q[ae]=m(E,S,x,T),V=q[ae+oe],te=q[ae+re],Ce=q[ae+ue],(Q!==V||Q!==te||Q!==Ce)&&(N=g[R+D],F=g[R+I],P=g[R+L],p(X,$,E,N,F,P,Q,V,te,Ce,S,x,T),Se=J[ae]=j++,Ce!==te&&b(J[ae+re],Se,F,P,te,Ce,S,x,T)),ae+=1,R+=O,X=2;X0){if(X=1,q[ae++]=m(g[R],S,x,T),R+=O,_>0)for($=1,E=g[R],Q=q[ae]=m(E,S,x,T),te=q[ae+re],V=q[ae+oe],Ce=q[ae+ue],(Q!==te||Q!==V||Q!==Ce)&&(N=g[R+D],F=g[R+I],P=g[R+L],p(X,$,E,N,F,P,Q,te,V,Ce,S,x,T),Se=J[ae]=j++),ae+=1,R+=O,$=2;$<_;++$)E=g[R],Q=q[ae]=m(E,S,x,T),te=q[ae+re],V=q[ae+oe],Ce=q[ae+ue],(Q!==te||Q!==V||Q!==Ce)&&(N=g[R+D],F=g[R+I],P=g[R+L],p(X,$,E,N,F,P,Q,te,V,Ce,S,x,T),Se=J[ae]=j++,Ce!==V&&b(J[ae+oe],Se,F,P,V,Ce,S,x,T)),ae+=1,R+=O;for(R+=U,ae=0,ve=re,re=H,H=ve,ve=oe,oe=ee,ee=ve,ve=ue,ue=he,he=ve,X=2;X0)for($=1,E=g[R],Q=q[ae]=m(E,S,x,T),te=q[ae+re],V=q[ae+oe],Ce=q[ae+ue],(Q!==te||Q!==V||Q!==Ce)&&(N=g[R+D],F=g[R+I],P=g[R+L],p(X,$,E,N,F,P,Q,te,V,Ce,S,x,T),Se=J[ae]=j++,Ce!==te&&b(J[ae+re],Se,P,N,Ce,te,S,x,T)),ae+=1,R+=O,$=2;$<_;++$)E=g[R],Q=q[ae]=m(E,S,x,T),te=q[ae+re],V=q[ae+oe],Ce=q[ae+ue],(Q!==te||Q!==V||Q!==Ce)&&(N=g[R+D],F=g[R+I],P=g[R+L],p(X,$,E,N,F,P,Q,te,V,Ce,S,x,T),Se=J[ae]=j++,Ce!==V&&b(J[ae+oe],Se,F,P,V,Ce,S,x,T),Ce!==te&&b(J[ae+re],Se,P,N,Ce,te,S,x,T)),ae+=1,R+=O;X&1&&(ae=0),ve=re,re=H,H=ve,ve=oe,oe=ee,ee=ve,ve=ue,ue=he,he=ve,R+=U}}M(J),M(q)}}};function s(v,p,b,m,w,M){var y=[M,w].join(","),k=u[y];return k(v,p,b,l.mallocUint32,l.freeUint32)}function f(v){function p(S){throw new Error("ndarray-extract-contour: "+S)}typeof v!="object"&&p("Must specify arguments");var b=v.order;Array.isArray(b)||p("Must specify order");var m=v.arrayArguments||1;m<1&&p("Must have at least one array argument");var w=v.scalarArguments||0;w<0&&p("Scalar arg count must be > 0"),typeof v.vertex!="function"&&p("Must specify vertex creation function"),typeof v.cell!="function"&&p("Must specify cell creation function"),typeof v.phase!="function"&&p("Must specify phase function");for(var M=v.getters||[],y=new Array(m),k=0;k=0?y[k]=!0:y[k]=!1;return s(v.vertex,v.cell,v.phase,w,b,y)}},6199:function(a,o,i){"use strict";var l=i(1338),u={zero:function(T,d,_,g){var c=T[0],A=_[0];g|=0;var h=0,R=A;for(h=0;h2&&h[1]>2&&g(A.pick(-1,-1).lo(1,1).hi(h[0]-2,h[1]-2),c.pick(-1,-1,0).lo(1,1).hi(h[0]-2,h[1]-2),c.pick(-1,-1,1).lo(1,1).hi(h[0]-2,h[1]-2)),h[1]>2&&(_(A.pick(0,-1).lo(1).hi(h[1]-2),c.pick(0,-1,1).lo(1).hi(h[1]-2)),d(c.pick(0,-1,0).lo(1).hi(h[1]-2))),h[1]>2&&(_(A.pick(h[0]-1,-1).lo(1).hi(h[1]-2),c.pick(h[0]-1,-1,1).lo(1).hi(h[1]-2)),d(c.pick(h[0]-1,-1,0).lo(1).hi(h[1]-2))),h[0]>2&&(_(A.pick(-1,0).lo(1).hi(h[0]-2),c.pick(-1,0,0).lo(1).hi(h[0]-2)),d(c.pick(-1,0,1).lo(1).hi(h[0]-2))),h[0]>2&&(_(A.pick(-1,h[1]-1).lo(1).hi(h[0]-2),c.pick(-1,h[1]-1,0).lo(1).hi(h[0]-2)),d(c.pick(-1,h[1]-1,1).lo(1).hi(h[0]-2))),c.set(0,0,0,0),c.set(0,0,1,0),c.set(h[0]-1,0,0,0),c.set(h[0]-1,0,1,0),c.set(0,h[1]-1,0,0),c.set(0,h[1]-1,1,0),c.set(h[0]-1,h[1]-1,0,0),c.set(h[0]-1,h[1]-1,1,0),c}}function x(T){var d=T.join(),h=m[d];if(h)return h;for(var _=T.length,g=[M,y],c=1;c<=_;++c)g.push(k(c));var A=S,h=A.apply(void 0,g);return m[d]=h,h}a.exports=function(d,_,g){if(Array.isArray(g)||(typeof g=="string"?g=l(_.dimension,g):g=l(_.dimension,"clamp")),_.size===0)return d;if(_.dimension===0)return d.set(0),d;var c=x(g);return c(d,_)}},4317:function(a){"use strict";function o(f,v){var p=Math.floor(v),b=v-p,m=0<=p&&p0;){F<64?(d=F,F=0):(d=64,F-=64);for(var L=m[1]|0;L>0;){L<64?(_=L,L=0):(_=64,L-=64),y=N+F*c+L*A,x=I+F*R+L*E;var P=0,O=0,U=0,X=h,$=c-g*h,j=A-d*c,Y=D,q=R-g*D,J=E-d*R;for(U=0;U<_;++U){for(O=0;O0;){E<64?(d=E,E=0):(d=64,E-=64);for(var D=m[0]|0;D>0;){D<64?(T=D,D=0):(T=64,D-=64),y=h+E*g+D*_,x=R+E*A+D*c;var N=0,I=0,F=g,L=_-d*g,P=A,O=c-d*A;for(I=0;I0;){I<64?(_=I,I=0):(_=64,I-=64);for(var F=m[0]|0;F>0;){F<64?(T=F,F=0):(T=64,F-=64);for(var L=m[1]|0;L>0;){L<64?(d=L,L=0):(d=64,L-=64),y=D+I*A+F*g+L*c,x=N+I*E+F*h+L*R;var P=0,O=0,U=0,X=A,$=g-_*A,j=c-T*g,Y=E,q=h-_*E,J=R-T*h;for(U=0;Uk;){P=0,O=N-d;r:for(F=0;FX)break r;O+=h,P+=R}for(P=N,O=N-d,F=0;F>1,L=F-D,P=F+D,O=N,U=L,X=F,$=P,j=I,Y=S+1,q=x-1,J=!0,ae,Q,oe,ee,V,re,H,te,ue,he=0,Ce=0,Se=0,ve,Te,ke,Fe,Ee,ze,Be,ge,Me,ce,ye,Le,me,de,be,Ae,qe=A,Pe=M(qe),Ze=M(qe);Te=_*O,ke=_*U,Ae=d;e:for(ve=0;ve0){Q=O,O=U,U=Q;break e}if(Se<0)break e;Ae+=R}Te=_*$,ke=_*j,Ae=d;e:for(ve=0;ve0){Q=$,$=j,j=Q;break e}if(Se<0)break e;Ae+=R}Te=_*O,ke=_*X,Ae=d;e:for(ve=0;ve0){Q=O,O=X,X=Q;break e}if(Se<0)break e;Ae+=R}Te=_*U,ke=_*X,Ae=d;e:for(ve=0;ve0){Q=U,U=X,X=Q;break e}if(Se<0)break e;Ae+=R}Te=_*O,ke=_*$,Ae=d;e:for(ve=0;ve0){Q=O,O=$,$=Q;break e}if(Se<0)break e;Ae+=R}Te=_*X,ke=_*$,Ae=d;e:for(ve=0;ve0){Q=X,X=$,$=Q;break e}if(Se<0)break e;Ae+=R}Te=_*U,ke=_*j,Ae=d;e:for(ve=0;ve0){Q=U,U=j,j=Q;break e}if(Se<0)break e;Ae+=R}Te=_*U,ke=_*X,Ae=d;e:for(ve=0;ve0){Q=U,U=X,X=Q;break e}if(Se<0)break e;Ae+=R}Te=_*$,ke=_*j,Ae=d;e:for(ve=0;ve0){Q=$,$=j,j=Q;break e}if(Se<0)break e;Ae+=R}for(Te=_*O,ke=_*U,Fe=_*X,Ee=_*$,ze=_*j,Be=_*N,ge=_*F,Me=_*I,be=0,Ae=d,ve=0;ve0)q--;else if(Se<0){for(Te=_*re,ke=_*Y,Fe=_*q,Ae=d,ve=0;ve0)for(;;){H=d+q*_,be=0;e:for(ve=0;ve0){if(--qI){e:for(;;){for(H=d+Y*_,be=0,Ae=d,ve=0;ve1&&k?x(y,k[0],k[1]):x(y)}var b={"uint32,1,0":function(w,M){return function(y){var k=y.data,S=y.offset|0,x=y.shape,T=y.stride,d=T[0]|0,_=x[0]|0,g=T[1]|0,c=x[1]|0,A=g,h=g,R=1;_<=32?w(0,_-1,k,S,d,g,_,c,A,h,R):M(0,_-1,k,S,d,g,_,c,A,h,R)}}};function m(w,M){var y=[M,w].join(","),k=b[y],S=f(w,M),x=p(w,M,S);return k(S,x)}a.exports=m},446:function(a,o,i){"use strict";var l=i(7640),u={};function s(f){var v=f.order,p=f.dtype,b=[v,p],m=b.join(":"),w=u[m];return w||(u[m]=w=l(v,p)),w(f),f}a.exports=s},9618:function(a,o,i){var l=i(7163),u=typeof Float64Array!="undefined";function s(M,y){return M[0]-y[0]}function f(){var M=this.stride,y=new Array(M.length),k;for(k=0;k=0&&(g=d|0,_+=A*g,c-=g),new S(this.data,c,A,_)},x.step=function(d){var _=this.shape[0],g=this.stride[0],c=this.offset,A=0,h=Math.ceil;return typeof d=="number"&&(A=d|0,A<0?(c+=g*(_-1),_=h(-_/A)):_=h(_/A),g*=A),new S(this.data,_,g,c)},x.transpose=function(d){d=d===void 0?0:d|0;var _=this.shape,g=this.stride;return new S(this.data,_[d],g[d],this.offset)},x.pick=function(d){var _=[],g=[],c=this.offset;typeof d=="number"&&d>=0?c=c+this.stride[0]*d|0:(_.push(this.shape[0]),g.push(this.stride[0]));var A=y[_.length+1];return A(this.data,_,g,c)},function(d,_,g,c){return new S(d,_[0],g[0],c)}},2:function(M,y,k){function S(T,d,_,g,c,A){this.data=T,this.shape=[d,_],this.stride=[g,c],this.offset=A|0}var x=S.prototype;return x.dtype=M,x.dimension=2,Object.defineProperty(x,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(x,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),x.set=function(d,_,g){return M==="generic"?this.data.set(this.offset+this.stride[0]*d+this.stride[1]*_,g):this.data[this.offset+this.stride[0]*d+this.stride[1]*_]=g},x.get=function(d,_){return M==="generic"?this.data.get(this.offset+this.stride[0]*d+this.stride[1]*_):this.data[this.offset+this.stride[0]*d+this.stride[1]*_]},x.index=function(d,_){return this.offset+this.stride[0]*d+this.stride[1]*_},x.hi=function(d,_){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,typeof _!="number"||_<0?this.shape[1]:_|0,this.stride[0],this.stride[1],this.offset)},x.lo=function(d,_){var g=this.offset,c=0,A=this.shape[0],h=this.shape[1],R=this.stride[0],E=this.stride[1];return typeof d=="number"&&d>=0&&(c=d|0,g+=R*c,A-=c),typeof _=="number"&&_>=0&&(c=_|0,g+=E*c,h-=c),new S(this.data,A,h,R,E,g)},x.step=function(d,_){var g=this.shape[0],c=this.shape[1],A=this.stride[0],h=this.stride[1],R=this.offset,E=0,D=Math.ceil;return typeof d=="number"&&(E=d|0,E<0?(R+=A*(g-1),g=D(-g/E)):g=D(g/E),A*=E),typeof _=="number"&&(E=_|0,E<0?(R+=h*(c-1),c=D(-c/E)):c=D(c/E),h*=E),new S(this.data,g,c,A,h,R)},x.transpose=function(d,_){d=d===void 0?0:d|0,_=_===void 0?1:_|0;var g=this.shape,c=this.stride;return new S(this.data,g[d],g[_],c[d],c[_],this.offset)},x.pick=function(d,_){var g=[],c=[],A=this.offset;typeof d=="number"&&d>=0?A=A+this.stride[0]*d|0:(g.push(this.shape[0]),c.push(this.stride[0])),typeof _=="number"&&_>=0?A=A+this.stride[1]*_|0:(g.push(this.shape[1]),c.push(this.stride[1]));var h=y[g.length+1];return h(this.data,g,c,A)},function(d,_,g,c){return new S(d,_[0],_[1],g[0],g[1],c)}},3:function(M,y,k){function S(T,d,_,g,c,A,h,R){this.data=T,this.shape=[d,_,g],this.stride=[c,A,h],this.offset=R|0}var x=S.prototype;return x.dtype=M,x.dimension=3,Object.defineProperty(x,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(x,"order",{get:function(){var d=Math.abs(this.stride[0]),_=Math.abs(this.stride[1]),g=Math.abs(this.stride[2]);return d>_?_>g?[2,1,0]:d>g?[1,2,0]:[1,0,2]:d>g?[2,0,1]:g>_?[0,1,2]:[0,2,1]}}),x.set=function(d,_,g,c){return M==="generic"?this.data.set(this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g,c):this.data[this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g]=c},x.get=function(d,_,g){return M==="generic"?this.data.get(this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g):this.data[this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g]},x.index=function(d,_,g){return this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g},x.hi=function(d,_,g){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,typeof _!="number"||_<0?this.shape[1]:_|0,typeof g!="number"||g<0?this.shape[2]:g|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},x.lo=function(d,_,g){var c=this.offset,A=0,h=this.shape[0],R=this.shape[1],E=this.shape[2],D=this.stride[0],N=this.stride[1],I=this.stride[2];return typeof d=="number"&&d>=0&&(A=d|0,c+=D*A,h-=A),typeof _=="number"&&_>=0&&(A=_|0,c+=N*A,R-=A),typeof g=="number"&&g>=0&&(A=g|0,c+=I*A,E-=A),new S(this.data,h,R,E,D,N,I,c)},x.step=function(d,_,g){var c=this.shape[0],A=this.shape[1],h=this.shape[2],R=this.stride[0],E=this.stride[1],D=this.stride[2],N=this.offset,I=0,F=Math.ceil;return typeof d=="number"&&(I=d|0,I<0?(N+=R*(c-1),c=F(-c/I)):c=F(c/I),R*=I),typeof _=="number"&&(I=_|0,I<0?(N+=E*(A-1),A=F(-A/I)):A=F(A/I),E*=I),typeof g=="number"&&(I=g|0,I<0?(N+=D*(h-1),h=F(-h/I)):h=F(h/I),D*=I),new S(this.data,c,A,h,R,E,D,N)},x.transpose=function(d,_,g){d=d===void 0?0:d|0,_=_===void 0?1:_|0,g=g===void 0?2:g|0;var c=this.shape,A=this.stride;return new S(this.data,c[d],c[_],c[g],A[d],A[_],A[g],this.offset)},x.pick=function(d,_,g){var c=[],A=[],h=this.offset;typeof d=="number"&&d>=0?h=h+this.stride[0]*d|0:(c.push(this.shape[0]),A.push(this.stride[0])),typeof _=="number"&&_>=0?h=h+this.stride[1]*_|0:(c.push(this.shape[1]),A.push(this.stride[1])),typeof g=="number"&&g>=0?h=h+this.stride[2]*g|0:(c.push(this.shape[2]),A.push(this.stride[2]));var R=y[c.length+1];return R(this.data,c,A,h)},function(d,_,g,c){return new S(d,_[0],_[1],_[2],g[0],g[1],g[2],c)}},4:function(M,y,k){function S(T,d,_,g,c,A,h,R,E,D){this.data=T,this.shape=[d,_,g,c],this.stride=[A,h,R,E],this.offset=D|0}var x=S.prototype;return x.dtype=M,x.dimension=4,Object.defineProperty(x,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(x,"order",{get:k}),x.set=function(d,_,g,c,A){return M==="generic"?this.data.set(this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c,A):this.data[this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c]=A},x.get=function(d,_,g,c){return M==="generic"?this.data.get(this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c):this.data[this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c]},x.index=function(d,_,g,c){return this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c},x.hi=function(d,_,g,c){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,typeof _!="number"||_<0?this.shape[1]:_|0,typeof g!="number"||g<0?this.shape[2]:g|0,typeof c!="number"||c<0?this.shape[3]:c|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},x.lo=function(d,_,g,c){var A=this.offset,h=0,R=this.shape[0],E=this.shape[1],D=this.shape[2],N=this.shape[3],I=this.stride[0],F=this.stride[1],L=this.stride[2],P=this.stride[3];return typeof d=="number"&&d>=0&&(h=d|0,A+=I*h,R-=h),typeof _=="number"&&_>=0&&(h=_|0,A+=F*h,E-=h),typeof g=="number"&&g>=0&&(h=g|0,A+=L*h,D-=h),typeof c=="number"&&c>=0&&(h=c|0,A+=P*h,N-=h),new S(this.data,R,E,D,N,I,F,L,P,A)},x.step=function(d,_,g,c){var A=this.shape[0],h=this.shape[1],R=this.shape[2],E=this.shape[3],D=this.stride[0],N=this.stride[1],I=this.stride[2],F=this.stride[3],L=this.offset,P=0,O=Math.ceil;return typeof d=="number"&&(P=d|0,P<0?(L+=D*(A-1),A=O(-A/P)):A=O(A/P),D*=P),typeof _=="number"&&(P=_|0,P<0?(L+=N*(h-1),h=O(-h/P)):h=O(h/P),N*=P),typeof g=="number"&&(P=g|0,P<0?(L+=I*(R-1),R=O(-R/P)):R=O(R/P),I*=P),typeof c=="number"&&(P=c|0,P<0?(L+=F*(E-1),E=O(-E/P)):E=O(E/P),F*=P),new S(this.data,A,h,R,E,D,N,I,F,L)},x.transpose=function(d,_,g,c){d=d===void 0?0:d|0,_=_===void 0?1:_|0,g=g===void 0?2:g|0,c=c===void 0?3:c|0;var A=this.shape,h=this.stride;return new S(this.data,A[d],A[_],A[g],A[c],h[d],h[_],h[g],h[c],this.offset)},x.pick=function(d,_,g,c){var A=[],h=[],R=this.offset;typeof d=="number"&&d>=0?R=R+this.stride[0]*d|0:(A.push(this.shape[0]),h.push(this.stride[0])),typeof _=="number"&&_>=0?R=R+this.stride[1]*_|0:(A.push(this.shape[1]),h.push(this.stride[1])),typeof g=="number"&&g>=0?R=R+this.stride[2]*g|0:(A.push(this.shape[2]),h.push(this.stride[2])),typeof c=="number"&&c>=0?R=R+this.stride[3]*c|0:(A.push(this.shape[3]),h.push(this.stride[3]));var E=y[A.length+1];return E(this.data,A,h,R)},function(d,_,g,c){return new S(d,_[0],_[1],_[2],_[3],g[0],g[1],g[2],g[3],c)}},5:function(y,k,S){function x(d,_,g,c,A,h,R,E,D,N,I,F){this.data=d,this.shape=[_,g,c,A,h],this.stride=[R,E,D,N,I],this.offset=F|0}var T=x.prototype;return T.dtype=y,T.dimension=5,Object.defineProperty(T,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(T,"order",{get:S}),T.set=function(_,g,c,A,h,R){return y==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*h,R):this.data[this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*h]=R},T.get=function(_,g,c,A,h){return y==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*h):this.data[this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*h]},T.index=function(_,g,c,A,h){return this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*h},T.hi=function(_,g,c,A,h){return new x(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof g!="number"||g<0?this.shape[1]:g|0,typeof c!="number"||c<0?this.shape[2]:c|0,typeof A!="number"||A<0?this.shape[3]:A|0,typeof h!="number"||h<0?this.shape[4]:h|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},T.lo=function(_,g,c,A,h){var R=this.offset,E=0,D=this.shape[0],N=this.shape[1],I=this.shape[2],F=this.shape[3],L=this.shape[4],P=this.stride[0],O=this.stride[1],U=this.stride[2],X=this.stride[3],$=this.stride[4];return typeof _=="number"&&_>=0&&(E=_|0,R+=P*E,D-=E),typeof g=="number"&&g>=0&&(E=g|0,R+=O*E,N-=E),typeof c=="number"&&c>=0&&(E=c|0,R+=U*E,I-=E),typeof A=="number"&&A>=0&&(E=A|0,R+=X*E,F-=E),typeof h=="number"&&h>=0&&(E=h|0,R+=$*E,L-=E),new x(this.data,D,N,I,F,L,P,O,U,X,$,R)},T.step=function(_,g,c,A,h){var R=this.shape[0],E=this.shape[1],D=this.shape[2],N=this.shape[3],I=this.shape[4],F=this.stride[0],L=this.stride[1],P=this.stride[2],O=this.stride[3],U=this.stride[4],X=this.offset,$=0,j=Math.ceil;return typeof _=="number"&&($=_|0,$<0?(X+=F*(R-1),R=j(-R/$)):R=j(R/$),F*=$),typeof g=="number"&&($=g|0,$<0?(X+=L*(E-1),E=j(-E/$)):E=j(E/$),L*=$),typeof c=="number"&&($=c|0,$<0?(X+=P*(D-1),D=j(-D/$)):D=j(D/$),P*=$),typeof A=="number"&&($=A|0,$<0?(X+=O*(N-1),N=j(-N/$)):N=j(N/$),O*=$),typeof h=="number"&&($=h|0,$<0?(X+=U*(I-1),I=j(-I/$)):I=j(I/$),U*=$),new x(this.data,R,E,D,N,I,F,L,P,O,U,X)},T.transpose=function(_,g,c,A,h){_=_===void 0?0:_|0,g=g===void 0?1:g|0,c=c===void 0?2:c|0,A=A===void 0?3:A|0,h=h===void 0?4:h|0;var R=this.shape,E=this.stride;return new x(this.data,R[_],R[g],R[c],R[A],R[h],E[_],E[g],E[c],E[A],E[h],this.offset)},T.pick=function(_,g,c,A,h){var R=[],E=[],D=this.offset;typeof _=="number"&&_>=0?D=D+this.stride[0]*_|0:(R.push(this.shape[0]),E.push(this.stride[0])),typeof g=="number"&&g>=0?D=D+this.stride[1]*g|0:(R.push(this.shape[1]),E.push(this.stride[1])),typeof c=="number"&&c>=0?D=D+this.stride[2]*c|0:(R.push(this.shape[2]),E.push(this.stride[2])),typeof A=="number"&&A>=0?D=D+this.stride[3]*A|0:(R.push(this.shape[3]),E.push(this.stride[3])),typeof h=="number"&&h>=0?D=D+this.stride[4]*h|0:(R.push(this.shape[4]),E.push(this.stride[4]));var N=k[R.length+1];return N(this.data,R,E,D)},function(_,g,c,A){return new x(_,g[0],g[1],g[2],g[3],g[4],c[0],c[1],c[2],c[3],c[4],A)}}};function p(M,y){var k=y===-1?"T":String(y),S=v[k];return y===-1?S(M):y===0?S(M,m[M][0]):S(M,m[M],f)}function b(M){if(l(M))return"buffer";if(u)switch(Object.prototype.toString.call(M)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(M)?"array":"generic"}var m={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function w(M,y,k,S){if(M===void 0){var c=m.array[0];return c([])}else typeof M=="number"&&(M=[M]);y===void 0&&(y=[M.length]);var x=y.length;if(k===void 0){k=new Array(x);for(var T=x-1,d=1;T>=0;--T)k[T]=d,d*=y[T]}if(S===void 0){S=0;for(var T=0;T>>0;a.exports=f;function f(v,p){if(isNaN(v)||isNaN(p))return NaN;if(v===p)return v;if(v===0)return p<0?-u:u;var b=l.hi(v),m=l.lo(v);return p>v==v>0?m===s?(b+=1,m=0):m+=1:m===0?(m=s,b-=1):m-=1,l.pack(m,b)}},8406:function(a,o){var i=1e-6,l=1e-6;o.vertexNormals=function(u,s,f){for(var v=s.length,p=new Array(v),b=f===void 0?i:f,m=0;mb)for(var R=p[y],E=1/Math.sqrt(g*A),h=0;h<3;++h){var D=(h+1)%3,N=(h+2)%3;R[h]+=E*(c[D]*_[N]-c[N]*_[D])}}for(var m=0;mb)for(var E=1/Math.sqrt(I),h=0;h<3;++h)R[h]*=E;else for(var h=0;h<3;++h)R[h]=0}return p},o.faceNormals=function(u,s,f){for(var v=u.length,p=new Array(v),b=f===void 0?l:f,m=0;mb?T=1/Math.sqrt(T):T=0;for(var y=0;y<3;++y)x[y]*=T;p[m]=x}return p}},4081:function(a){"use strict";a.exports=o;function o(i,l,u,s,f,v,p,b,m,w){var M=l+v+w;if(y>0){var y=Math.sqrt(M+1);i[0]=.5*(p-m)/y,i[1]=.5*(b-s)/y,i[2]=.5*(u-v)/y,i[3]=.5*y}else{var k=Math.max(l,v,w),y=Math.sqrt(2*k-M+1);l>=k?(i[0]=.5*y,i[1]=.5*(f+u)/y,i[2]=.5*(b+s)/y,i[3]=.5*(p-m)/y):v>=k?(i[0]=.5*(u+f)/y,i[1]=.5*y,i[2]=.5*(m+p)/y,i[3]=.5*(b-s)/y):(i[0]=.5*(s+b)/y,i[1]=.5*(p+m)/y,i[2]=.5*y,i[3]=.5*(u-f)/y)}return i}},9977:function(a,o,i){"use strict";a.exports=y;var l=i(9215),u=i(6582),s=i(7399),f=i(7608),v=i(4081);function p(k,S,x){return Math.sqrt(Math.pow(k,2)+Math.pow(S,2)+Math.pow(x,2))}function b(k,S,x,T){return Math.sqrt(Math.pow(k,2)+Math.pow(S,2)+Math.pow(x,2)+Math.pow(T,2))}function m(k,S){var x=S[0],T=S[1],d=S[2],_=S[3],g=b(x,T,d,_);g>1e-6?(k[0]=x/g,k[1]=T/g,k[2]=d/g,k[3]=_/g):(k[0]=k[1]=k[2]=0,k[3]=1)}function w(k,S,x){this.radius=l([x]),this.center=l(S),this.rotation=l(k),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var M=w.prototype;M.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},M.recalcMatrix=function(k){this.radius.curve(k),this.center.curve(k),this.rotation.curve(k);var S=this.computedRotation;m(S,S);var x=this.computedMatrix;s(x,S);var T=this.computedCenter,d=this.computedEye,_=this.computedUp,g=Math.exp(this.computedRadius[0]);d[0]=T[0]+g*x[2],d[1]=T[1]+g*x[6],d[2]=T[2]+g*x[10],_[0]=x[1],_[1]=x[5],_[2]=x[9];for(var c=0;c<3;++c){for(var A=0,h=0;h<3;++h)A+=x[c+4*h]*d[h];x[12+c]=-A}},M.getMatrix=function(k,S){this.recalcMatrix(k);var x=this.computedMatrix;if(S){for(var T=0;T<16;++T)S[T]=x[T];return S}return x},M.idle=function(k){this.center.idle(k),this.radius.idle(k),this.rotation.idle(k)},M.flush=function(k){this.center.flush(k),this.radius.flush(k),this.rotation.flush(k)},M.pan=function(k,S,x,T){S=S||0,x=x||0,T=T||0,this.recalcMatrix(k);var d=this.computedMatrix,_=d[1],g=d[5],c=d[9],A=p(_,g,c);_/=A,g/=A,c/=A;var h=d[0],R=d[4],E=d[8],D=h*_+R*g+E*c;h-=_*D,R-=g*D,E-=c*D;var N=p(h,R,E);h/=N,R/=N,E/=N;var I=d[2],F=d[6],L=d[10],P=I*_+F*g+L*c,O=I*h+F*R+L*E;I-=P*_+O*h,F-=P*g+O*R,L-=P*c+O*E;var U=p(I,F,L);I/=U,F/=U,L/=U;var X=h*S+_*x,$=R*S+g*x,j=E*S+c*x;this.center.move(k,X,$,j);var Y=Math.exp(this.computedRadius[0]);Y=Math.max(1e-4,Y+T),this.radius.set(k,Math.log(Y))},M.rotate=function(k,S,x,T){this.recalcMatrix(k),S=S||0,x=x||0;var d=this.computedMatrix,_=d[0],g=d[4],c=d[8],A=d[1],h=d[5],R=d[9],E=d[2],D=d[6],N=d[10],I=S*_+x*A,F=S*g+x*h,L=S*c+x*R,P=-(D*L-N*F),O=-(N*I-E*L),U=-(E*F-D*I),X=Math.sqrt(Math.max(0,1-Math.pow(P,2)-Math.pow(O,2)-Math.pow(U,2))),$=b(P,O,U,X);$>1e-6?(P/=$,O/=$,U/=$,X/=$):(P=O=U=0,X=1);var j=this.computedRotation,Y=j[0],q=j[1],J=j[2],ae=j[3],Q=Y*X+ae*P+q*U-J*O,oe=q*X+ae*O+J*P-Y*U,ee=J*X+ae*U+Y*O-q*P,V=ae*X-Y*P-q*O-J*U;if(T){P=E,O=D,U=N;var re=Math.sin(T)/p(P,O,U);P*=re,O*=re,U*=re,X=Math.cos(S),Q=Q*X+V*P+oe*U-ee*O,oe=oe*X+V*O+ee*P-Q*U,ee=ee*X+V*U+Q*O-oe*P,V=V*X-Q*P-oe*O-ee*U}var H=b(Q,oe,ee,V);H>1e-6?(Q/=H,oe/=H,ee/=H,V/=H):(Q=oe=ee=0,V=1),this.rotation.set(k,Q,oe,ee,V)},M.lookAt=function(k,S,x,T){this.recalcMatrix(k),x=x||this.computedCenter,S=S||this.computedEye,T=T||this.computedUp;var d=this.computedMatrix;u(d,S,x,T);var _=this.computedRotation;v(_,d[0],d[1],d[2],d[4],d[5],d[6],d[8],d[9],d[10]),m(_,_),this.rotation.set(k,_[0],_[1],_[2],_[3]);for(var g=0,c=0;c<3;++c)g+=Math.pow(x[c]-S[c],2);this.radius.set(k,.5*Math.log(Math.max(g,1e-6))),this.center.set(k,x[0],x[1],x[2])},M.translate=function(k,S,x,T){this.center.move(k,S||0,x||0,T||0)},M.setMatrix=function(k,S){var x=this.computedRotation;v(x,S[0],S[1],S[2],S[4],S[5],S[6],S[8],S[9],S[10]),m(x,x),this.rotation.set(k,x[0],x[1],x[2],x[3]);var T=this.computedMatrix;f(T,S);var d=T[15];if(Math.abs(d)>1e-6){var _=T[12]/d,g=T[13]/d,c=T[14]/d;this.recalcMatrix(k);var A=Math.exp(this.computedRadius[0]);this.center.set(k,_-T[2]*A,g-T[6]*A,c-T[10]*A),this.radius.idle(k)}else this.center.idle(k),this.radius.idle(k)},M.setDistance=function(k,S){S>0&&this.radius.set(k,Math.log(S))},M.setDistanceLimits=function(k,S){k>0?k=Math.log(k):k=-1/0,S>0?S=Math.log(S):S=1/0,S=Math.max(S,k),this.radius.bounds[0][0]=k,this.radius.bounds[1][0]=S},M.getDistanceLimits=function(k){var S=this.radius.bounds;return k?(k[0]=Math.exp(S[0][0]),k[1]=Math.exp(S[1][0]),k):[Math.exp(S[0][0]),Math.exp(S[1][0])]},M.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},M.fromJSON=function(k){var S=this.lastT(),x=k.center;x&&this.center.set(S,x[0],x[1],x[2]);var T=k.rotation;T&&this.rotation.set(S,T[0],T[1],T[2],T[3]);var d=k.distance;d&&d>0&&this.radius.set(S,Math.log(d)),this.setDistanceLimits(k.zoomMin,k.zoomMax)};function y(k){k=k||{};var S=k.center||[0,0,0],x=k.rotation||[0,0,0,1],T=k.radius||1;S=[].slice.call(S,0,3),x=[].slice.call(x,0,4),m(x,x);var d=new w(x,S,Math.log(T));return d.setDistanceLimits(k.zoomMin,k.zoomMax),("eye"in k||"up"in k)&&d.lookAt(0,k.eye,k.center,k.up),d}},1371:function(a,o,i){"use strict";var l=i(3233);a.exports=function(s,f,v){return v=typeof v!="undefined"?v+"":" ",l(v,f)+s}},3202:function(a){a.exports=function(i,l){l||(l=[0,""]),i=String(i);var u=parseFloat(i,10);return l[0]=u,l[1]=i.match(/[\d.\-\+]*\s*(.*)/)[1]||"",l}},3088:function(a,o,i){"use strict";a.exports=u;var l=i(3140);function u(s,f){for(var v=f.length|0,p=s.length,b=[new Array(v),new Array(v)],m=0;m0){R=b[N][A][0],D=N;break}E=R[D^1];for(var I=0;I<2;++I)for(var F=b[I][A],L=0;L0&&(R=P,E=O,D=I)}return h||R&&y(R,D),E}function S(c,A){var h=b[A][c][0],R=[c];y(h,A);for(var E=h[A^1],D=A;;){for(;E!==c;)R.push(E),E=k(R[R.length-2],E,!1);if(b[0][c].length+b[1][c].length===0)break;var N=R[R.length-1],I=c,F=R[1],L=k(N,I,!0);if(l(f[N],f[I],f[F],f[L])<0)break;R.push(c),E=k(N,I)}return R}function x(c,A){return A[1]===A[A.length-1]}for(var m=0;m0;){var _=b[0][m].length,g=S(m,T);x(d,g)?d.push.apply(d,g):(d.length>0&&M.push(d),d=g)}d.length>0&&M.push(d)}return M}},5609:function(a,o,i){"use strict";a.exports=u;var l=i(3134);function u(s,f){for(var v=l(s,f.length),p=new Array(f.length),b=new Array(f.length),m=[],w=0;w0;){var y=m.pop();p[y]=!1;for(var k=v[y],w=0;w0}_=_.filter(g);for(var c=_.length,A=new Array(c),h=new Array(c),d=0;d0;){var H=ee.pop(),te=$[H];p(te,function(ve,Te){return ve-Te});var ue=te.length,he=V[H],Ce;if(he===0){var F=_[H];Ce=[F]}for(var d=0;d=0)&&(V[Se]=he^1,ee.push(Se),he===0)){var F=_[Se];oe(F)||(F.reverse(),Ce.push(F))}}he===0&&re.push(Ce)}return re}},5085:function(a,o,i){a.exports=k;var l=i(3250)[3],u=i(4209),s=i(3352),f=i(2478);function v(){return!0}function p(S){return function(x,T){var d=S[x];return d?!!d.queryPoint(T,v):!1}}function b(S){for(var x={},T=0;T0&&x[d]===T[0])_=S[d-1];else return 1;for(var g=1;_;){var c=_.key,A=l(T,c[0],c[1]);if(c[0][0]0)g=-1,_=_.right;else return 0;else if(A>0)_=_.left;else if(A<0)g=1,_=_.right;else return 0}return g}}function w(S){return 1}function M(S){return function(T){return S(T[0],T[1])?0:1}}function y(S,x){return function(d){return S(d[0],d[1])?0:x(d)}}function k(S){for(var x=S.length,T=[],d=[],_=0,g=0;g=w?(c=1,h=w+2*k+x):(c=-k/w,h=k*c+x)):(c=0,S>=0?(A=0,h=x):-S>=y?(A=1,h=y+2*S+x):(A=-S/y,h=S*A+x));else if(A<0)A=0,k>=0?(c=0,h=x):-k>=w?(c=1,h=w+2*k+x):(c=-k/w,h=k*c+x);else{var R=1/g;c*=R,A*=R,h=c*(w*c+M*A+2*k)+A*(M*c+y*A+2*S)+x}else{var E,D,N,I;c<0?(E=M+k,D=y+S,D>E?(N=D-E,I=w-2*M+y,N>=I?(c=1,A=0,h=w+2*k+x):(c=N/I,A=1-c,h=c*(w*c+M*A+2*k)+A*(M*c+y*A+2*S)+x)):(c=0,D<=0?(A=1,h=y+2*S+x):S>=0?(A=0,h=x):(A=-S/y,h=S*A+x))):A<0?(E=M+S,D=w+k,D>E?(N=D-E,I=w-2*M+y,N>=I?(A=1,c=0,h=y+2*S+x):(A=N/I,c=1-A,h=c*(w*c+M*A+2*k)+A*(M*c+y*A+2*S)+x)):(A=0,D<=0?(c=1,h=w+2*k+x):k>=0?(c=0,h=x):(c=-k/w,h=k*c+x))):(N=y+S-M-k,N<=0?(c=0,A=1,h=y+2*S+x):(I=w-2*M+y,N>=I?(c=1,A=0,h=w+2*k+x):(c=N/I,A=1-c,h=c*(w*c+M*A+2*k)+A*(M*c+y*A+2*S)+x)))}for(var F=1-c-A,m=0;m0){var y=v[b-1];if(l(w,y)===0&&s(y)!==M){b-=1;continue}}v[b++]=w}}return v.length=b,v}},3233:function(a){"use strict";var o="",i;a.exports=l;function l(u,s){if(typeof u!="string")throw new TypeError("expected a string");if(s===1)return u;if(s===2)return u+u;var f=u.length*s;if(i!==u||typeof i=="undefined")i=u,o="";else if(o.length>=f)return o.substr(0,f);for(;f>o.length&&s>1;)s&1&&(o+=u),s>>=1,u+=u;return o+=u,o=o.substr(0,f),o}},3025:function(a,o,i){a.exports=i.g.performance&&i.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004:function(a){"use strict";a.exports=o;function o(i){for(var l=i.length,u=i[i.length-1],s=l,f=l-2;f>=0;--f){var v=u,p=i[f];u=v+p;var b=u-v,m=p-b;m&&(i[--s]=u,u=m)}for(var w=0,f=s;f0){if(D<=0)return N;I=E+D}else if(E<0){if(D>=0)return N;I=-(E+D)}else return N;var F=b*I;return N>=F||N<=-F?N:S(A,h,R)},function(A,h,R,E){var D=A[0]-E[0],N=h[0]-E[0],I=R[0]-E[0],F=A[1]-E[1],L=h[1]-E[1],P=R[1]-E[1],O=A[2]-E[2],U=h[2]-E[2],X=R[2]-E[2],$=N*P,j=I*L,Y=I*F,q=D*P,J=D*L,ae=N*F,Q=O*($-j)+U*(Y-q)+X*(J-ae),oe=(Math.abs($)+Math.abs(j))*Math.abs(O)+(Math.abs(Y)+Math.abs(q))*Math.abs(U)+(Math.abs(J)+Math.abs(ae))*Math.abs(X),ee=m*oe;return Q>ee||-Q>ee?Q:x(A,h,R,E)}];function d(c){var A=T[c.length];return A||(A=T[c.length]=k(c.length)),A.apply(void 0,c)}function _(c,A,h,R,E,D,N){return function(F,L,P,O,U){switch(arguments.length){case 0:case 1:return 0;case 2:return R(F,L);case 3:return E(F,L,P);case 4:return D(F,L,P,O);case 5:return N(F,L,P,O,U)}for(var X=new Array(arguments.length),$=0;$0&&w>0||m<0&&w<0)return!1;var M=l(p,f,v),y=l(b,f,v);return M>0&&y>0||M<0&&y<0?!1:m===0&&w===0&&M===0&&y===0?u(f,v,p,b):!0}},8545:function(a){"use strict";a.exports=i;function o(l,u){var s=l+u,f=s-l,v=s-f,p=u-f,b=l-v,m=b+p;return m?[m,s]:[s]}function i(l,u){var s=l.length|0,f=u.length|0;if(s===1&&f===1)return o(l[0],-u[0]);var v=s+f,p=new Array(v),b=0,m=0,w=0,M=Math.abs,y=l[m],k=M(y),S=-u[w],x=M(S),T,d;k=f?(T=y,m+=1,m=f?(T=y,m+=1,m>1,S=v[2*k+1];if(S===w)return k;w>1,S=v[2*k+1];if(S===w)return k;w>1,S=v[2*k+1];if(S===w)return k;w>1,S=v[2*k+1];if(S===w)return k;w>1,I=b(A[N],h);I<=0?(I===0&&(D=N),R=N+1):I>0&&(E=N-1)}return D}l=y;function k(A,h){for(var R=new Array(A.length),E=0,D=R.length;E=A.length||b(A[$],N)!==0););}return R}l=k;function S(A,h){if(!h)return k(M(T(A,0)),A,0);for(var R=new Array(h),E=0;E>>P&1&&L.push(D[P]);h.push(L)}return w(h)}l=x;function T(A,h){if(h<0)return[];for(var R=[],E=(1<0)-(s<0)},o.abs=function(s){var f=s>>i-1;return(s^f)-f},o.min=function(s,f){return f^(s^f)&-(s65535)<<4,s>>>=f,v=(s>255)<<3,s>>>=v,f|=v,v=(s>15)<<2,s>>>=v,f|=v,v=(s>3)<<1,s>>>=v,f|=v,f|s>>1},o.log10=function(s){return s>=1e9?9:s>=1e8?8:s>=1e7?7:s>=1e6?6:s>=1e5?5:s>=1e4?4:s>=1e3?3:s>=100?2:s>=10?1:0},o.popCount=function(s){return s=s-(s>>>1&1431655765),s=(s&858993459)+(s>>>2&858993459),(s+(s>>>4)&252645135)*16843009>>>24};function l(s){var f=32;return s&=-s,s&&f--,s&65535&&(f-=16),s&16711935&&(f-=8),s&252645135&&(f-=4),s&858993459&&(f-=2),s&1431655765&&(f-=1),f}o.countTrailingZeros=l,o.nextPow2=function(s){return s+=s===0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1},o.prevPow2=function(s){return s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s-(s>>>1)},o.parity=function(s){return s^=s>>>16,s^=s>>>8,s^=s>>>4,s&=15,27030>>>s&1};var u=new Array(256);(function(s){for(var f=0;f<256;++f){var v=f,p=f,b=7;for(v>>>=1;v;v>>>=1)p<<=1,p|=v&1,--b;s[f]=p<>>8&255]<<16|u[s>>>16&255]<<8|u[s>>>24&255]},o.interleave2=function(s,f){return s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,s|f<<1},o.deinterleave2=function(s,f){return s=s>>>f&1431655765,s=(s|s>>>1)&858993459,s=(s|s>>>2)&252645135,s=(s|s>>>4)&16711935,s=(s|s>>>16)&65535,s<<16>>16},o.interleave3=function(s,f,v){return s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,s|=f<<1,v&=1023,v=(v|v<<16)&4278190335,v=(v|v<<8)&251719695,v=(v|v<<4)&3272356035,v=(v|v<<2)&1227133513,s|v<<2},o.deinterleave3=function(s,f){return s=s>>>f&1227133513,s=(s|s>>>2)&3272356035,s=(s|s>>>4)&251719695,s=(s|s>>>8)&4278190335,s=(s|s>>>16)&1023,s<<22>>22},o.nextCombination=function(s){var f=s|s-1;return f+1|(~f&-~f)-1>>>l(s)+1}},2014:function(a,o,i){"use strict";"use restrict";var l=i(3105),u=i(4623);function s(c){for(var A=0,h=Math.max,R=0,E=c.length;R>1,N=p(c[D],A);N<=0?(N===0&&(E=D),h=D+1):N>0&&(R=D-1)}return E}o.findCell=M;function y(c,A){for(var h=new Array(c.length),R=0,E=h.length;R=c.length||p(c[X],D)!==0););}return h}o.incidence=y;function k(c,A){if(!A)return y(w(x(c,0)),c,0);for(var h=new Array(A),R=0;R>>L&1&&F.push(E[L]);A.push(F)}return m(A)}o.explode=S;function x(c,A){if(A<0)return[];for(var h=[],R=(1<>1:(q>>1)-1}function R(q){for(var J=A(q);;){var ae=J,Q=2*q+1,oe=2*(q+1),ee=q;if(Q0;){var ae=h(q);if(ae>=0){var Q=A(ae);if(J0){var q=F[0];return c(0,O-1),O-=1,R(0),q}return-1}function N(q,J){var ae=F[q];return k[ae]===J?q:(k[ae]=-1/0,E(q),D(),k[ae]=J,O+=1,E(O-1))}function I(q){if(!S[q]){S[q]=!0;var J=M[q],ae=y[q];M[ae]>=0&&(M[ae]=J),y[J]>=0&&(y[J]=ae),L[J]>=0&&N(L[J],g(J)),L[ae]>=0&&N(L[ae],g(ae))}}for(var F=[],L=new Array(m),x=0;x>1;x>=0;--x)R(x);for(;;){var U=D();if(U<0||k[U]>b)break;I(U)}for(var X=[],x=0;x=0&&ae>=0&&J!==ae){var Q=L[J],oe=L[ae];Q!==oe&&Y.push([Q,oe])}}),u.unique(u.normalize(Y)),{positions:X,edges:Y}}},1303:function(a,o,i){"use strict";a.exports=s;var l=i(3250);function u(f,v){var p,b;if(v[0][0]v[1][0])p=v[1],b=v[0];else{var m=Math.min(f[0][1],f[1][1]),w=Math.max(f[0][1],f[1][1]),M=Math.min(v[0][1],v[1][1]),y=Math.max(v[0][1],v[1][1]);return wy?m-y:w-y}var k,S;f[0][1]v[1][0])p=v[1],b=v[0];else return u(v,f);var m,w;if(f[0][0]f[1][0])m=f[1],w=f[0];else return-u(f,v);var M=l(p,b,w),y=l(p,b,m);if(M<0){if(y<=0)return M}else if(M>0){if(y>=0)return M}else if(y)return y;if(M=l(w,m,b),y=l(w,m,p),M<0){if(y<=0)return M}else if(M>0){if(y>=0)return M}else if(y)return y;return b[0]-w[0]}},4209:function(a,o,i){"use strict";a.exports=y;var l=i(2478),u=i(3840),s=i(3250),f=i(1303);function v(k,S,x){this.slabs=k,this.coordinates=S,this.horizontal=x}var p=v.prototype;function b(k,S){return k.y-S}function m(k,S){for(var x=null;k;){var T=k.key,d,_;T[0][0]0)if(S[0]!==T[1][0])x=k,k=k.right;else{var c=m(k.right,S);if(c)return c;k=k.left}else{if(S[0]!==T[1][0])return k;var c=m(k.right,S);if(c)return c;k=k.left}}return x}p.castUp=function(k){var S=l.le(this.coordinates,k[0]);if(S<0)return-1;var x=this.slabs[S],T=m(this.slabs[S],k),d=-1;if(T&&(d=T.value),this.coordinates[S]===k[0]){var _=null;if(T&&(_=T.key),S>0){var g=m(this.slabs[S-1],k);g&&(_?f(g.key,_)>0&&(_=g.key,d=g.value):(d=g.value,_=g.key))}var c=this.horizontal[S];if(c.length>0){var A=l.ge(c,k[1],b);if(A=c.length)return d;h=c[A]}}if(h.start)if(_){var R=s(_[0],_[1],[k[0],h.y]);_[0][0]>_[1][0]&&(R=-R),R>0&&(d=h.index)}else d=h.index;else h.y!==k[1]&&(d=h.index)}}}return d};function w(k,S,x,T){this.y=k,this.index=S,this.start=x,this.closed=T}function M(k,S,x,T){this.x=k,this.segment=S,this.create=x,this.index=T}function y(k){for(var S=k.length,x=2*S,T=new Array(x),d=0;d1&&(S=1);for(var x=1-S,T=m.length,d=new Array(T),_=0;_0||k>0&&d<0){var _=f(S,d,x,k);M.push(_),y.push(_.slice())}d<0?y.push(x.slice()):d>0?M.push(x.slice()):(M.push(x.slice()),y.push(x.slice())),k=d}return{positive:M,negative:y}}function p(m,w){for(var M=[],y=s(m[m.length-1],w),k=m[m.length-1],S=m[0],x=0;x0||y>0&&T<0)&&M.push(f(k,T,S,y)),T>=0&&M.push(S.slice()),y=T}return M}function b(m,w){for(var M=[],y=s(m[m.length-1],w),k=m[m.length-1],S=m[0],x=0;x0||y>0&&T<0)&&M.push(f(k,T,S,y)),T<=0&&M.push(S.slice()),y=T}return M}},3387:function(a,o,i){var l;(function(){"use strict";var u={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function s(m){return v(b(m),arguments)}function f(m,w){return s.apply(null,[m].concat(w||[]))}function v(m,w){var M=1,y=m.length,k,S="",x,T,d,_,g,c,A,h;for(x=0;x=0),d.type){case"b":k=parseInt(k,10).toString(2);break;case"c":k=String.fromCharCode(parseInt(k,10));break;case"d":case"i":k=parseInt(k,10);break;case"j":k=JSON.stringify(k,null,d.width?parseInt(d.width):0);break;case"e":k=d.precision?parseFloat(k).toExponential(d.precision):parseFloat(k).toExponential();break;case"f":k=d.precision?parseFloat(k).toFixed(d.precision):parseFloat(k);break;case"g":k=d.precision?String(Number(k.toPrecision(d.precision))):parseFloat(k);break;case"o":k=(parseInt(k,10)>>>0).toString(8);break;case"s":k=String(k),k=d.precision?k.substring(0,d.precision):k;break;case"t":k=String(!!k),k=d.precision?k.substring(0,d.precision):k;break;case"T":k=Object.prototype.toString.call(k).slice(8,-1).toLowerCase(),k=d.precision?k.substring(0,d.precision):k;break;case"u":k=parseInt(k,10)>>>0;break;case"v":k=k.valueOf(),k=d.precision?k.substring(0,d.precision):k;break;case"x":k=(parseInt(k,10)>>>0).toString(16);break;case"X":k=(parseInt(k,10)>>>0).toString(16).toUpperCase();break}u.json.test(d.type)?S+=k:(u.number.test(d.type)&&(!A||d.sign)?(h=A?"+":"-",k=k.toString().replace(u.sign,"")):h="",g=d.pad_char?d.pad_char==="0"?"0":d.pad_char.charAt(1):" ",c=d.width-(h+k).length,_=d.width&&c>0?g.repeat(c):"",S+=d.align?h+k+_:g==="0"?h+_+k:_+h+k)}return S}var p=Object.create(null);function b(m){if(p[m])return p[m];for(var w=m,M,y=[],k=0;w;){if((M=u.text.exec(w))!==null)y.push(M[0]);else if((M=u.modulo.exec(w))!==null)y.push("%");else if((M=u.placeholder.exec(w))!==null){if(M[2]){k|=1;var S=[],x=M[2],T=[];if((T=u.key.exec(x))!==null)for(S.push(T[1]);(x=x.substring(T[0].length))!=="";)if((T=u.key_access.exec(x))!==null)S.push(T[1]);else if((T=u.index_access.exec(x))!==null)S.push(T[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");M[2]=S}else k|=2;if(k===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");y.push({placeholder:M[0],param_no:M[1],keys:M[2],sign:M[3],pad_char:M[4],align:M[5],width:M[6],precision:M[7],type:M[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");w=w.substring(M[0].length)}return p[m]=y}o.sprintf=s,o.vsprintf=f,typeof window!="undefined"&&(window.sprintf=s,window.vsprintf=f,l=function(){return{sprintf:s,vsprintf:f}}.call(o,i,o,a),l!==void 0&&(a.exports=l))})()},3711:function(a,o,i){"use strict";a.exports=b;var l=i(2640),u=i(781),s={"2d":function(m,w,M){var y=m({order:w,scalarArguments:3,getters:M==="generic"?[0]:void 0,phase:function(S,x,T,d){return S>d|0},vertex:function(S,x,T,d,_,g,c,A,h,R,E,D,N){var I=(c<<0)+(A<<1)+(h<<2)+(R<<3)|0;if(!(I===0||I===15))switch(I){case 0:E.push([S-.5,x-.5]);break;case 1:E.push([S-.25-.25*(d+T-2*N)/(T-d),x-.25-.25*(_+T-2*N)/(T-_)]);break;case 2:E.push([S-.75-.25*(-d-T+2*N)/(d-T),x-.25-.25*(g+d-2*N)/(d-g)]);break;case 3:E.push([S-.5,x-.5-.5*(_+T+g+d-4*N)/(T-_+d-g)]);break;case 4:E.push([S-.25-.25*(g+_-2*N)/(_-g),x-.75-.25*(-_-T+2*N)/(_-T)]);break;case 5:E.push([S-.5-.5*(d+T+g+_-4*N)/(T-d+_-g),x-.5]);break;case 6:E.push([S-.5-.25*(-d-T+g+_)/(d-T+_-g),x-.5-.25*(-_-T+g+d)/(_-T+d-g)]);break;case 7:E.push([S-.75-.25*(g+_-2*N)/(_-g),x-.75-.25*(g+d-2*N)/(d-g)]);break;case 8:E.push([S-.75-.25*(-g-_+2*N)/(g-_),x-.75-.25*(-g-d+2*N)/(g-d)]);break;case 9:E.push([S-.5-.25*(d+T+-g-_)/(T-d+g-_),x-.5-.25*(_+T+-g-d)/(T-_+g-d)]);break;case 10:E.push([S-.5-.5*(-d-T+-g-_+4*N)/(d-T+g-_),x-.5]);break;case 11:E.push([S-.25-.25*(-g-_+2*N)/(g-_),x-.75-.25*(_+T-2*N)/(T-_)]);break;case 12:E.push([S-.5,x-.5-.5*(-_-T+-g-d+4*N)/(_-T+g-d)]);break;case 13:E.push([S-.75-.25*(d+T-2*N)/(T-d),x-.25-.25*(-g-d+2*N)/(g-d)]);break;case 14:E.push([S-.25-.25*(-d-T+2*N)/(d-T),x-.25-.25*(-_-T+2*N)/(_-T)]);break;case 15:E.push([S-.5,x-.5]);break}},cell:function(S,x,T,d,_,g,c,A,h){_?A.push([S,x]):A.push([x,S])}});return function(k,S){var x=[],T=[];return y(k,x,T,S),{positions:x,cells:T}}}};function f(m,w){var M=m.length+"d",y=s[M];if(y)return y(l,m,w)}function v(m,w){for(var M=u(m,w),y=M.length,k=new Array(y),S=new Array(y),x=0;xMath.max(d,_)?g[2]=1:d>Math.max(T,_)?g[0]=1:g[1]=1;for(var c=0,A=0,h=0;h<3;++h)c+=x[h]*x[h],A+=g[h]*x[h];for(var h=0;h<3;++h)g[h]-=A/c*x[h];return v(g,g),g}function M(x,T,d,_,g,c,A,h){this.center=l(d),this.up=l(_),this.right=l(g),this.radius=l([c]),this.angle=l([A,h]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(x,T),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var R=0;R<16;++R)this.computedMatrix[R]=.5;this.recalcMatrix(0)}var y=M.prototype;y.setDistanceLimits=function(x,T){x>0?x=Math.log(x):x=-1/0,T>0?T=Math.log(T):T=1/0,T=Math.max(T,x),this.radius.bounds[0][0]=x,this.radius.bounds[1][0]=T},y.getDistanceLimits=function(x){var T=this.radius.bounds[0];return x?(x[0]=Math.exp(T[0][0]),x[1]=Math.exp(T[1][0]),x):[Math.exp(T[0][0]),Math.exp(T[1][0])]},y.recalcMatrix=function(x){this.center.curve(x),this.up.curve(x),this.right.curve(x),this.radius.curve(x),this.angle.curve(x);for(var T=this.computedUp,d=this.computedRight,_=0,g=0,c=0;c<3;++c)g+=T[c]*d[c],_+=T[c]*T[c];for(var A=Math.sqrt(_),h=0,c=0;c<3;++c)d[c]-=T[c]*g/_,h+=d[c]*d[c],T[c]/=A;for(var R=Math.sqrt(h),c=0;c<3;++c)d[c]/=R;var E=this.computedToward;f(E,T,d),v(E,E);for(var D=Math.exp(this.computedRadius[0]),N=this.computedAngle[0],I=this.computedAngle[1],F=Math.cos(N),L=Math.sin(N),P=Math.cos(I),O=Math.sin(I),U=this.computedCenter,X=F*P,$=L*P,j=O,Y=-F*O,q=-L*O,J=P,ae=this.computedEye,Q=this.computedMatrix,c=0;c<3;++c){var oe=X*d[c]+$*E[c]+j*T[c];Q[4*c+1]=Y*d[c]+q*E[c]+J*T[c],Q[4*c+2]=oe,Q[4*c+3]=0}var ee=Q[1],V=Q[5],re=Q[9],H=Q[2],te=Q[6],ue=Q[10],he=V*ue-re*te,Ce=re*H-ee*ue,Se=ee*te-V*H,ve=b(he,Ce,Se);he/=ve,Ce/=ve,Se/=ve,Q[0]=he,Q[4]=Ce,Q[8]=Se;for(var c=0;c<3;++c)ae[c]=U[c]+Q[2+4*c]*D;for(var c=0;c<3;++c){for(var h=0,Te=0;Te<3;++Te)h+=Q[c+4*Te]*ae[Te];Q[12+c]=-h}Q[15]=1},y.getMatrix=function(x,T){this.recalcMatrix(x);var d=this.computedMatrix;if(T){for(var _=0;_<16;++_)T[_]=d[_];return T}return d};var k=[0,0,0];y.rotate=function(x,T,d,_){if(this.angle.move(x,T,d),_){this.recalcMatrix(x);var g=this.computedMatrix;k[0]=g[2],k[1]=g[6],k[2]=g[10];for(var c=this.computedUp,A=this.computedRight,h=this.computedToward,R=0;R<3;++R)g[4*R]=c[R],g[4*R+1]=A[R],g[4*R+2]=h[R];s(g,g,_,k);for(var R=0;R<3;++R)c[R]=g[4*R],A[R]=g[4*R+1];this.up.set(x,c[0],c[1],c[2]),this.right.set(x,A[0],A[1],A[2])}},y.pan=function(x,T,d,_){T=T||0,d=d||0,_=_||0,this.recalcMatrix(x);var g=this.computedMatrix,c=Math.exp(this.computedRadius[0]),A=g[1],h=g[5],R=g[9],E=b(A,h,R);A/=E,h/=E,R/=E;var D=g[0],N=g[4],I=g[8],F=D*A+N*h+I*R;D-=A*F,N-=h*F,I-=R*F;var L=b(D,N,I);D/=L,N/=L,I/=L;var P=D*T+A*d,O=N*T+h*d,U=I*T+R*d;this.center.move(x,P,O,U);var X=Math.exp(this.computedRadius[0]);X=Math.max(1e-4,X+_),this.radius.set(x,Math.log(X))},y.translate=function(x,T,d,_){this.center.move(x,T||0,d||0,_||0)},y.setMatrix=function(x,T,d,_){var g=1;typeof d=="number"&&(g=d|0),(g<0||g>3)&&(g=1);var c=(g+2)%3,A=(g+1)%3;T||(this.recalcMatrix(x),T=this.computedMatrix);var h=T[g],R=T[g+4],E=T[g+8];if(_){var N=Math.abs(h),I=Math.abs(R),F=Math.abs(E),L=Math.max(N,I,F);N===L?(h=h<0?-1:1,R=E=0):F===L?(E=E<0?-1:1,h=R=0):(R=R<0?-1:1,h=E=0)}else{var D=b(h,R,E);h/=D,R/=D,E/=D}var P=T[c],O=T[c+4],U=T[c+8],X=P*h+O*R+U*E;P-=h*X,O-=R*X,U-=E*X;var $=b(P,O,U);P/=$,O/=$,U/=$;var j=R*U-E*O,Y=E*P-h*U,q=h*O-R*P,J=b(j,Y,q);j/=J,Y/=J,q/=J,this.center.jump(x,Be,ge,Me),this.radius.idle(x),this.up.jump(x,h,R,E),this.right.jump(x,P,O,U);var ae,Q;if(g===2){var oe=T[1],ee=T[5],V=T[9],re=oe*P+ee*O+V*U,H=oe*j+ee*Y+V*q;Ce<0?ae=-Math.PI/2:ae=Math.PI/2,Q=Math.atan2(H,re)}else{var te=T[2],ue=T[6],he=T[10],Ce=te*h+ue*R+he*E,Se=te*P+ue*O+he*U,ve=te*j+ue*Y+he*q;ae=Math.asin(m(Ce)),Q=Math.atan2(ve,Se)}this.angle.jump(x,Q,ae),this.recalcMatrix(x);var Te=T[2],ke=T[6],Fe=T[10],Ee=this.computedMatrix;u(Ee,T);var ze=Ee[15],Be=Ee[12]/ze,ge=Ee[13]/ze,Me=Ee[14]/ze,ce=Math.exp(this.computedRadius[0]);this.center.jump(x,Be-Te*ce,ge-ke*ce,Me-Fe*ce)},y.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},y.idle=function(x){this.center.idle(x),this.up.idle(x),this.right.idle(x),this.radius.idle(x),this.angle.idle(x)},y.flush=function(x){this.center.flush(x),this.up.flush(x),this.right.flush(x),this.radius.flush(x),this.angle.flush(x)},y.setDistance=function(x,T){T>0&&this.radius.set(x,Math.log(T))},y.lookAt=function(x,T,d,_){this.recalcMatrix(x),T=T||this.computedEye,d=d||this.computedCenter,_=_||this.computedUp;var g=_[0],c=_[1],A=_[2],h=b(g,c,A);if(!(h<1e-6)){g/=h,c/=h,A/=h;var R=T[0]-d[0],E=T[1]-d[1],D=T[2]-d[2],N=b(R,E,D);if(!(N<1e-6)){R/=N,E/=N,D/=N;var I=this.computedRight,F=I[0],L=I[1],P=I[2],O=g*F+c*L+A*P;F-=O*g,L-=O*c,P-=O*A;var U=b(F,L,P);if(!(U<.01&&(F=c*D-A*E,L=A*R-g*D,P=g*E-c*R,U=b(F,L,P),U<1e-6))){F/=U,L/=U,P/=U,this.up.set(x,g,c,A),this.right.set(x,F,L,P),this.center.set(x,d[0],d[1],d[2]),this.radius.set(x,Math.log(N));var X=c*P-A*L,$=A*F-g*P,j=g*L-c*F,Y=b(X,$,j);X/=Y,$/=Y,j/=Y;var q=g*R+c*E+A*D,J=F*R+L*E+P*D,ae=X*R+$*E+j*D,Q=Math.asin(m(q)),oe=Math.atan2(ae,J),ee=this.angle._state,V=ee[ee.length-1],re=ee[ee.length-2];V=V%(2*Math.PI);var H=Math.abs(V+2*Math.PI-oe),te=Math.abs(V-oe),ue=Math.abs(V-2*Math.PI-oe);H0?P.pop():new ArrayBuffer(F)}o.mallocArrayBuffer=k;function S(I){return new Uint8Array(k(I),0,I)}o.mallocUint8=S;function x(I){return new Uint16Array(k(2*I),0,I)}o.mallocUint16=x;function T(I){return new Uint32Array(k(4*I),0,I)}o.mallocUint32=T;function d(I){return new Int8Array(k(I),0,I)}o.mallocInt8=d;function _(I){return new Int16Array(k(2*I),0,I)}o.mallocInt16=_;function g(I){return new Int32Array(k(4*I),0,I)}o.mallocInt32=g;function c(I){return new Float32Array(k(4*I),0,I)}o.mallocFloat32=o.mallocFloat=c;function A(I){return new Float64Array(k(8*I),0,I)}o.mallocFloat64=o.mallocDouble=A;function h(I){return f?new Uint8ClampedArray(k(I),0,I):S(I)}o.mallocUint8Clamped=h;function R(I){return v?new BigUint64Array(k(8*I),0,I):null}o.mallocBigUint64=R;function E(I){return p?new BigInt64Array(k(8*I),0,I):null}o.mallocBigInt64=E;function D(I){return new DataView(k(I),0,I)}o.mallocDataView=D;function N(I){I=l.nextPow2(I);var F=l.log2(I),L=w[F];return L.length>0?L.pop():new s(I)}o.mallocBuffer=N,o.clearCache=function(){for(var F=0;F<32;++F)b.UINT8[F].length=0,b.UINT16[F].length=0,b.UINT32[F].length=0,b.INT8[F].length=0,b.INT16[F].length=0,b.INT32[F].length=0,b.FLOAT[F].length=0,b.DOUBLE[F].length=0,b.BIGUINT64[F].length=0,b.BIGINT64[F].length=0,b.UINT8C[F].length=0,m[F].length=0,w[F].length=0}},1755:function(a){"use strict";"use restrict";a.exports=o;function o(l){this.roots=new Array(l),this.ranks=new Array(l);for(var u=0;u",P="",O=L.length,U=P.length,X=N[0]===k||N[0]===T,$=0,j=-U;$>-1&&($=I.indexOf(L,$),!($===-1||(j=I.indexOf(P,$+O),j===-1)||j<=$));){for(var Y=$;Y=j)F[Y]=null,I=I.substr(0,Y)+" "+I.substr(Y+1);else if(F[Y]!==null){var q=F[Y].indexOf(N[0]);q===-1?F[Y]+=N:X&&(F[Y]=F[Y].substr(0,q+1)+(1+parseInt(F[Y][q+1]))+F[Y].substr(q+2))}var J=$+O,ae=I.substr(J,j-J),Q=ae.indexOf(L);Q!==-1?$=Q:$=j+U}return F}function g(D,N,I){for(var F=N.textAlign||"start",L=N.textBaseline||"alphabetic",P=[1<<30,1<<30],O=[0,0],U=D.length,X=0;X/g,` +`]);o.createShader=function(b){var m=l(b,s,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return m.attributes.uv.location=0,m.attributes.f.location=1,m.attributes.normal.location=2,m},o.createPickShader=function(b){var m=l(b,s,p,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return m.attributes.uv.location=0,m.attributes.f.location=1,m.attributes.normal.location=2,m},o.createContourShader=function(b){var m=l(b,v,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return m.attributes.uv.location=0,m.attributes.f.location=1,m},o.createPickContourShader=function(b){var m=l(b,v,p,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return m.attributes.uv.location=0,m.attributes.f.location=1,m}},9499:function(a,o,i){"use strict";a.exports=ie;var l=i(8828),u=i(2762),s=i(8116),f=i(7766),v=i(1888),p=i(6729),b=i(5298),m=i(9994),w=i(9618),M=i(3711),y=i(6760),k=i(7608),S=i(2478),x=i(6199),T=i(990),d=T.createShader,_=T.createContourShader,g=T.createPickShader,c=T.createPickContourShader,A=4*10,h=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],R=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],E=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];(function(){for(var ee=0;ee<3;++ee){var V=E[ee],re=(ee+1)%3,H=(ee+2)%3;V[re+0]=1,V[H+3]=1,V[ee+6]=1}})();function D(ee,V,re,H,te){this.position=ee,this.index=V,this.uv=re,this.level=H,this.dataCoordinate=te}var N=256;function I(ee,V,re,H,te,ue,de,ke,Ae,ve,Te,Ee,Pe,Se,Ne){this.gl=ee,this.shape=V,this.bounds=re,this.objectOffset=Ne,this.intensityBounds=[],this._shader=H,this._pickShader=te,this._coordinateBuffer=ue,this._vao=de,this._colorMap=ke,this._contourShader=Ae,this._contourPickShader=ve,this._contourBuffer=Te,this._contourVAO=Ee,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new D([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=Pe,this._dynamicVAO=Se,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[w(v.mallocFloat(1024),[0,0]),w(v.mallocFloat(1024),[0,0]),w(v.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var F=I.prototype;F.genColormap=function(ee,V){var re=!1,H=m([p({colormap:ee,nshades:N,format:"rgba"}).map(function(te,ue){var de=V?L(ue/255,V):te[3];return de<1&&(re=!0),[te[0],te[1],te[2],255*de]})]);return b.divseq(H,255),this.hasAlphaScale=re,H},F.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},F.isOpaque=function(){return!this.isTransparent()},F.pickSlots=1,F.setPickBase=function(ee){this.pickId=ee};function L(ee,V){if(!V||!V.length)return 1;for(var re=0;reee&&re>0){var H=(V[re][0]-ee)/(V[re][0]-V[re-1][0]);return V[re][1]*(1-H)+H*V[re-1][1]}}return 1}var P=[0,0,0],O={showSurface:!1,showContour:!1,projections:[h.slice(),h.slice(),h.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function U(ee,V){var re,H,te,ue=V.axes&&V.axes.lastCubeProps.axis||P,de=V.showSurface,ke=V.showContour;for(re=0;re<3;++re)for(de=de||V.surfaceProject[re],H=0;H<3;++H)ke=ke||V.contourProject[re][H];for(re=0;re<3;++re){var Ae=O.projections[re];for(H=0;H<16;++H)Ae[H]=0;for(H=0;H<4;++H)Ae[5*H]=1;Ae[5*re]=0,Ae[12+re]=V.axesBounds[+(ue[re]>0)][re],y(Ae,ee.model,Ae);var ve=O.clipBounds[re];for(te=0;te<2;++te)for(H=0;H<3;++H)ve[te][H]=ee.clipBounds[te][H];ve[0][re]=-1e8,ve[1][re]=1e8}return O.showSurface=de,O.showContour=ke,O}var X={model:h,view:h,projection:h,inverseModel:h.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},$=h.slice(),j=[1,0,0,0,1,0,0,0,1];function Y(ee,V){ee=ee||{};var re=this.gl;re.disable(re.CULL_FACE),this._colorMap.bind(0);var H=X;H.model=ee.model||h,H.view=ee.view||h,H.projection=ee.projection||h,H.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],H.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],H.objectOffset=this.objectOffset,H.contourColor=this.contourColor[0],H.inverseModel=k(H.inverseModel,H.model);for(var te=0;te<2;++te)for(var ue=H.clipBounds[te],de=0;de<3;++de)ue[de]=Math.min(Math.max(this.clipBounds[te][de],-1e8),1e8);H.kambient=this.ambientLight,H.kdiffuse=this.diffuseLight,H.kspecular=this.specularLight,H.roughness=this.roughness,H.fresnel=this.fresnel,H.opacity=this.opacity,H.height=0,H.permutation=j,H.vertexColor=this.vertexColor;var ke=$;for(y(ke,H.view,H.model),y(ke,H.projection,ke),k(ke,ke),te=0;te<3;++te)H.eyePosition[te]=ke[12+te]/ke[15];var Ae=ke[15];for(te=0;te<3;++te)Ae+=this.lightPosition[te]*ke[4*te+3];for(te=0;te<3;++te){var ve=ke[12+te];for(de=0;de<3;++de)ve+=ke[4*de+te]*this.lightPosition[de];H.lightPosition[te]=ve/Ae}var Te=U(H,this);if(Te.showSurface){for(this._shader.bind(),this._shader.uniforms=H,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(re.TRIANGLES,this._vertexCount),te=0;te<3;++te)!this.surfaceProject[te]||!this.vertexCount||(this._shader.uniforms.model=Te.projections[te],this._shader.uniforms.clipBounds=Te.clipBounds[te],this._vao.draw(re.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Te.showContour){var Ee=this._contourShader;H.kambient=1,H.kdiffuse=0,H.kspecular=0,H.opacity=1,Ee.bind(),Ee.uniforms=H;var Pe=this._contourVAO;for(Pe.bind(),te=0;te<3;++te)for(Ee.uniforms.permutation=E[te],re.lineWidth(this.contourWidth[te]*this.pixelRatio),de=0;de>4)/16)/255,te=Math.floor(H),ue=H-te,de=V[1]*(ee.value[1]+(ee.value[2]&15)/16)/255,ke=Math.floor(de),Ae=de-ke;te+=1,ke+=1;var ve=re.position;ve[0]=ve[1]=ve[2]=0;for(var Te=0;Te<2;++Te)for(var Ee=Te?ue:1-ue,Pe=0;Pe<2;++Pe)for(var Se=Pe?Ae:1-Ae,Ne=te+Te,Be=ke+Pe,ge=Ee*Se,we=0;we<3;++we)ve[we]+=this._field[we].get(Ne,Be)*ge;for(var Me=this._pickResult.level,me=0;me<3;++me)if(Me[me]=S.le(this.contourLevels[me],ve[me]),Me[me]<0)this.contourLevels[me].length>0&&(Me[me]=0);else if(Me[me]Math.abs(ce-ve[me])&&(Me[me]+=1)}for(re.index[0]=ue<.5?te:te+1,re.index[1]=Ae<.5?ke:ke+1,re.uv[0]=H/V[0],re.uv[1]=de/V[1],we=0;we<3;++we)re.dataCoordinate[we]=this._field[we].get(re.index[0],re.index[1]);return re},F.padField=function(ee,V){var re=V.shape.slice(),H=ee.shape.slice();b.assign(ee.lo(1,1).hi(re[0],re[1]),V),b.assign(ee.lo(1).hi(re[0],1),V.hi(re[0],1)),b.assign(ee.lo(1,H[1]-1).hi(re[0],1),V.lo(0,re[1]-1).hi(re[0],1)),b.assign(ee.lo(0,1).hi(1,re[1]),V.hi(1)),b.assign(ee.lo(H[0]-1,1).hi(1,re[1]),V.lo(re[0]-1)),ee.set(0,0,V.get(0,0)),ee.set(0,H[1]-1,V.get(0,re[1]-1)),ee.set(H[0]-1,0,V.get(re[0]-1,0)),ee.set(H[0]-1,H[1]-1,V.get(re[0]-1,re[1]-1))};function Q(ee,V){return Array.isArray(ee)?[V(ee[0]),V(ee[1]),V(ee[2])]:[V(ee),V(ee),V(ee)]}function ne(ee){return Array.isArray(ee)?ee.length===3?[ee[0],ee[1],ee[2],1]:[ee[0],ee[1],ee[2],ee[3]]:[0,0,0,1]}function K(ee){if(Array.isArray(ee)){if(Array.isArray(ee))return[ne(ee[0]),ne(ee[1]),ne(ee[2])];var V=ne(ee);return[V.slice(),V.slice(),V.slice()]}}F.update=function(ee){ee=ee||{},this.objectOffset=ee.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in ee&&(this.contourWidth=Q(ee.contourWidth,Number)),"showContour"in ee&&(this.showContour=Q(ee.showContour,Boolean)),"showSurface"in ee&&(this.showSurface=!!ee.showSurface),"contourTint"in ee&&(this.contourTint=Q(ee.contourTint,Boolean)),"contourColor"in ee&&(this.contourColor=K(ee.contourColor)),"contourProject"in ee&&(this.contourProject=Q(ee.contourProject,function(Ma){return Q(Ma,Boolean)})),"surfaceProject"in ee&&(this.surfaceProject=ee.surfaceProject),"dynamicColor"in ee&&(this.dynamicColor=K(ee.dynamicColor)),"dynamicTint"in ee&&(this.dynamicTint=Q(ee.dynamicTint,Number)),"dynamicWidth"in ee&&(this.dynamicWidth=Q(ee.dynamicWidth,Number)),"opacity"in ee&&(this.opacity=ee.opacity),"opacityscale"in ee&&(this.opacityscale=ee.opacityscale),"colorBounds"in ee&&(this.colorBounds=ee.colorBounds),"vertexColor"in ee&&(this.vertexColor=ee.vertexColor?1:0),"colormap"in ee&&this._colorMap.setPixels(this.genColormap(ee.colormap,this.opacityscale));var V=ee.field||ee.coords&&ee.coords[2]||null,re=!1;if(V||(this._field[2].shape[0]||this._field[2].shape[2]?V=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):V=this._field[2].hi(0,0)),"field"in ee||"coords"in ee){var H=(V.shape[0]+2)*(V.shape[1]+2);H>this._field[2].data.length&&(v.freeFloat(this._field[2].data),this._field[2].data=v.mallocFloat(l.nextPow2(H))),this._field[2]=w(this._field[2].data,[V.shape[0]+2,V.shape[1]+2]),this.padField(this._field[2],V),this.shape=V.shape.slice();for(var te=this.shape,ue=0;ue<2;++ue)this._field[2].size>this._field[ue].data.length&&(v.freeFloat(this._field[ue].data),this._field[ue].data=v.mallocFloat(this._field[2].size)),this._field[ue]=w(this._field[ue].data,[te[0]+2,te[1]+2]);if(ee.coords){var de=ee.coords;if(!Array.isArray(de)||de.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(ue=0;ue<2;++ue){var ke=de[ue];for(Pe=0;Pe<2;++Pe)if(ke.shape[Pe]!==te[Pe])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[ue],ke)}}else if(ee.ticks){var Ae=ee.ticks;if(!Array.isArray(Ae)||Ae.length!==2)throw new Error("gl-surface: invalid ticks");for(ue=0;ue<2;++ue){var ve=Ae[ue];if((Array.isArray(ve)||ve.length)&&(ve=w(ve)),ve.shape[0]!==te[ue])throw new Error("gl-surface: invalid tick length");var Te=w(ve.data,te);Te.stride[ue]=ve.stride[0],Te.stride[ue^1]=0,this.padField(this._field[ue],Te)}}else{for(ue=0;ue<2;++ue){var Ee=[0,0];Ee[ue]=1,this._field[ue]=w(this._field[ue].data,[te[0]+2,te[1]+2],Ee,0)}this._field[0].set(0,0,0);for(var Pe=0;Pe0){for(var Kn=0;Kn<5;++Kn)br.pop();Ke-=1}continue e}}}nt.push(Ke)}this._contourOffsets[Sr]=Ar,this._contourCounts[Sr]=nt}var Fn=v.mallocFloat(br.length);for(ue=0;ueD||R<0||R>D)throw new Error("gl-texture2d: Invalid texture size");return A._shape=[h,R],A.bind(),E.texImage2D(E.TEXTURE_2D,0,A.format,h,R,0,A.format,A.type,null),A._mipLevels=[0],A}function y(A,h,R,E,D,N){this.gl=A,this.handle=h,this.format=D,this.type=N,this._shape=[R,E],this._mipLevels=[0],this._magFilter=A.NEAREST,this._minFilter=A.NEAREST,this._wrapS=A.CLAMP_TO_EDGE,this._wrapT=A.CLAMP_TO_EDGE,this._anisoSamples=1;var I=this,F=[this._wrapS,this._wrapT];Object.defineProperties(F,[{get:function(){return I._wrapS},set:function(P){return I.wrapS=P}},{get:function(){return I._wrapT},set:function(P){return I.wrapT=P}}]),this._wrapVector=F;var L=[this._shape[0],this._shape[1]];Object.defineProperties(L,[{get:function(){return I._shape[0]},set:function(P){return I.width=P}},{get:function(){return I._shape[1]},set:function(P){return I.height=P}}]),this._shapeVector=L}var k=y.prototype;Object.defineProperties(k,{minFilter:{get:function(){return this._minFilter},set:function(A){this.bind();var h=this.gl;if(this.type===h.FLOAT&&f.indexOf(A)>=0&&(h.getExtension("OES_texture_float_linear")||(A=h.NEAREST)),v.indexOf(A)<0)throw new Error("gl-texture2d: Unknown filter mode "+A);return h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,A),this._minFilter=A}},magFilter:{get:function(){return this._magFilter},set:function(A){this.bind();var h=this.gl;if(this.type===h.FLOAT&&f.indexOf(A)>=0&&(h.getExtension("OES_texture_float_linear")||(A=h.NEAREST)),v.indexOf(A)<0)throw new Error("gl-texture2d: Unknown filter mode "+A);return h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,A),this._magFilter=A}},mipSamples:{get:function(){return this._anisoSamples},set:function(A){var h=this._anisoSamples;if(this._anisoSamples=Math.max(A,1)|0,h!==this._anisoSamples){var R=this.gl.getExtension("EXT_texture_filter_anisotropic");R&&this.gl.texParameterf(this.gl.TEXTURE_2D,R.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(A){if(this.bind(),p.indexOf(A)<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,A),this._wrapS=A}},wrapT:{get:function(){return this._wrapT},set:function(A){if(this.bind(),p.indexOf(A)<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,A),this._wrapT=A}},wrap:{get:function(){return this._wrapVector},set:function(A){if(Array.isArray(A)||(A=[A,A]),A.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var h=0;h<2;++h)if(p.indexOf(A[h])<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);this._wrapS=A[0],this._wrapT=A[1];var R=this.gl;return this.bind(),R.texParameteri(R.TEXTURE_2D,R.TEXTURE_WRAP_S,this._wrapS),R.texParameteri(R.TEXTURE_2D,R.TEXTURE_WRAP_T,this._wrapT),A}},shape:{get:function(){return this._shapeVector},set:function(A){if(!Array.isArray(A))A=[A|0,A|0];else if(A.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return M(this,A[0]|0,A[1]|0),[A[0]|0,A[1]|0]}},width:{get:function(){return this._shape[0]},set:function(A){return A=A|0,M(this,A,this._shape[1]),A}},height:{get:function(){return this._shape[1]},set:function(A){return A=A|0,M(this,this._shape[0],A),A}}}),k.bind=function(A){var h=this.gl;return A!==void 0&&h.activeTexture(h.TEXTURE0+(A|0)),h.bindTexture(h.TEXTURE_2D,this.handle),A!==void 0?A|0:h.getParameter(h.ACTIVE_TEXTURE)-h.TEXTURE0},k.dispose=function(){this.gl.deleteTexture(this.handle)},k.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var A=Math.min(this._shape[0],this._shape[1]),h=0;A>0;++h,A>>>=1)this._mipLevels.indexOf(h)<0&&this._mipLevels.push(h)},k.setPixels=function(A,h,R,E){var D=this.gl;this.bind(),Array.isArray(h)?(E=R,R=h[1]|0,h=h[0]|0):(h=h||0,R=R||0),E=E||0;var N=m(A)?A:A.raw;if(N){var I=this._mipLevels.indexOf(E)<0;I?(D.texImage2D(D.TEXTURE_2D,0,this.format,this.format,this.type,N),this._mipLevels.push(E)):D.texSubImage2D(D.TEXTURE_2D,E,h,R,this.format,this.type,N)}else if(A.shape&&A.stride&&A.data){if(A.shape.length<2||h+A.shape[1]>this._shape[1]>>>E||R+A.shape[0]>this._shape[0]>>>E||h<0||R<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");x(D,h,R,E,this.format,this.type,this._mipLevels,A)}else throw new Error("gl-texture2d: Unsupported data type")};function S(A,h){return A.length===3?h[2]===1&&h[1]===A[0]*A[2]&&h[0]===A[2]:h[0]===1&&h[1]===A[0]}function x(A,h,R,E,D,N,I,F){var L=F.dtype,P=F.shape.slice();if(P.length<2||P.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var O=0,U=0,X=S(P,F.stride.slice());L==="float32"?O=A.FLOAT:L==="float64"?(O=A.FLOAT,X=!1,L="float32"):L==="uint8"?O=A.UNSIGNED_BYTE:(O=A.UNSIGNED_BYTE,X=!1,L="uint8");var $=1;if(P.length===2)U=A.LUMINANCE,P=[P[0],P[1],1],F=l(F.data,P,[F.stride[0],F.stride[1],1],F.offset);else if(P.length===3){if(P[2]===1)U=A.ALPHA;else if(P[2]===2)U=A.LUMINANCE_ALPHA;else if(P[2]===3)U=A.RGB;else if(P[2]===4)U=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");$=P[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((U===A.LUMINANCE||U===A.ALPHA)&&(D===A.LUMINANCE||D===A.ALPHA)&&(U=D),U!==D)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var j=F.size,Y=I.indexOf(E)<0;if(Y&&I.push(E),O===N&&X)F.offset===0&&F.data.length===j?Y?A.texImage2D(A.TEXTURE_2D,E,D,P[0],P[1],0,D,N,F.data):A.texSubImage2D(A.TEXTURE_2D,E,h,R,P[0],P[1],D,N,F.data):Y?A.texImage2D(A.TEXTURE_2D,E,D,P[0],P[1],0,D,N,F.data.subarray(F.offset,F.offset+j)):A.texSubImage2D(A.TEXTURE_2D,E,h,R,P[0],P[1],D,N,F.data.subarray(F.offset,F.offset+j));else{var q;N===A.FLOAT?q=s.mallocFloat32(j):q=s.mallocUint8(j);var Q=l(q,P,[P[2],P[2]*P[0],1]);O===A.FLOAT&&N===A.UNSIGNED_BYTE?w(Q,F):u.assign(Q,F),Y?A.texImage2D(A.TEXTURE_2D,E,D,P[0],P[1],0,D,N,q.subarray(0,j)):A.texSubImage2D(A.TEXTURE_2D,E,h,R,P[0],P[1],D,N,q.subarray(0,j)),N===A.FLOAT?s.freeFloat32(q):s.freeUint8(q)}}function T(A){var h=A.createTexture();return A.bindTexture(A.TEXTURE_2D,h),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MIN_FILTER,A.NEAREST),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MAG_FILTER,A.NEAREST),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_S,A.CLAMP_TO_EDGE),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_T,A.CLAMP_TO_EDGE),h}function d(A,h,R,E,D){var N=A.getParameter(A.MAX_TEXTURE_SIZE);if(h<0||h>N||R<0||R>N)throw new Error("gl-texture2d: Invalid texture shape");if(D===A.FLOAT&&!A.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var I=T(A);return A.texImage2D(A.TEXTURE_2D,0,E,h,R,0,E,D,null),new y(A,I,h,R,E,D)}function _(A,h,R,E,D,N){var I=T(A);return A.texImage2D(A.TEXTURE_2D,0,D,D,N,h),new y(A,I,R,E,D,N)}function g(A,h){var R=h.dtype,E=h.shape.slice(),D=A.getParameter(A.MAX_TEXTURE_SIZE);if(E[0]<0||E[0]>D||E[1]<0||E[1]>D)throw new Error("gl-texture2d: Invalid texture size");var N=S(E,h.stride.slice()),I=0;R==="float32"?I=A.FLOAT:R==="float64"?(I=A.FLOAT,N=!1,R="float32"):R==="uint8"?I=A.UNSIGNED_BYTE:(I=A.UNSIGNED_BYTE,N=!1,R="uint8");var F=0;if(E.length===2)F=A.LUMINANCE,E=[E[0],E[1],1],h=l(h.data,E,[h.stride[0],h.stride[1],1],h.offset);else if(E.length===3)if(E[2]===1)F=A.ALPHA;else if(E[2]===2)F=A.LUMINANCE_ALPHA;else if(E[2]===3)F=A.RGB;else if(E[2]===4)F=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");I===A.FLOAT&&!A.getExtension("OES_texture_float")&&(I=A.UNSIGNED_BYTE,N=!1);var L,P,O=h.size;if(N)h.offset===0&&h.data.length===O?L=h.data:L=h.data.subarray(h.offset,h.offset+O);else{var U=[E[2],E[2]*E[0],1];P=s.malloc(O,R);var X=l(P,E,U,0);(R==="float32"||R==="float64")&&I===A.UNSIGNED_BYTE?w(X,h):u.assign(X,h),L=P.subarray(0,O)}var $=T(A);return A.texImage2D(A.TEXTURE_2D,0,F,E[0],E[1],0,F,I,L),N||s.free(P),new y(A,$,E[0],E[1],F,I)}function c(A){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(f||b(A),typeof arguments[1]=="number")return d(A,arguments[1],arguments[2],arguments[3]||A.RGBA,arguments[4]||A.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return d(A,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var h=arguments[1],R=m(h)?h:h.raw;if(R)return _(A,R,h.width|0,h.height|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(h.shape&&h.data&&h.stride)return g(A,h)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433:function(a){"use strict";function o(i,l,u){l?l.bind():i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,null);var s=i.getParameter(i.MAX_VERTEX_ATTRIBS)|0;if(u){if(u.length>s)throw new Error("gl-vao: Too many vertex attributes");for(var f=0;f1?0:Math.acos(w)}},9226:function(a){a.exports=o;function o(i,l){return i[0]=Math.ceil(l[0]),i[1]=Math.ceil(l[1]),i[2]=Math.ceil(l[2]),i}},3126:function(a){a.exports=o;function o(i){var l=new Float32Array(3);return l[0]=i[0],l[1]=i[1],l[2]=i[2],l}},3990:function(a){a.exports=o;function o(i,l){return i[0]=l[0],i[1]=l[1],i[2]=l[2],i}},1091:function(a){a.exports=o;function o(){var i=new Float32Array(3);return i[0]=0,i[1]=0,i[2]=0,i}},5911:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],v=l[2],p=u[0],b=u[1],m=u[2];return i[0]=f*m-v*b,i[1]=v*p-s*m,i[2]=s*b-f*p,i}},5455:function(a,o,i){a.exports=i(7056)},7056:function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2];return Math.sqrt(u*u+s*s+f*f)}},4008:function(a,o,i){a.exports=i(6690)},6690:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]/u[0],i[1]=l[1]/u[1],i[2]=l[2]/u[2],i}},244:function(a){a.exports=o;function o(i,l){return i[0]*l[0]+i[1]*l[1]+i[2]*l[2]}},2613:function(a){a.exports=1e-6},9922:function(a,o,i){a.exports=u;var l=i(2613);function u(s,f){var v=s[0],p=s[1],b=s[2],m=f[0],w=f[1],M=f[2];return Math.abs(v-m)<=l*Math.max(1,Math.abs(v),Math.abs(m))&&Math.abs(p-w)<=l*Math.max(1,Math.abs(p),Math.abs(w))&&Math.abs(b-M)<=l*Math.max(1,Math.abs(b),Math.abs(M))}},9265:function(a){a.exports=o;function o(i,l){return i[0]===l[0]&&i[1]===l[1]&&i[2]===l[2]}},2681:function(a){a.exports=o;function o(i,l){return i[0]=Math.floor(l[0]),i[1]=Math.floor(l[1]),i[2]=Math.floor(l[2]),i}},5137:function(a,o,i){a.exports=u;var l=i(1091)();function u(s,f,v,p,b,m){var w,M;for(f||(f=3),v||(v=0),p?M=Math.min(p*f+v,s.length):M=s.length,w=v;w0&&(v=1/Math.sqrt(v),i[0]=l[0]*v,i[1]=l[1]*v,i[2]=l[2]*v),i}},7636:function(a){a.exports=o;function o(i,l){l=l||1;var u=Math.random()*2*Math.PI,s=Math.random()*2-1,f=Math.sqrt(1-s*s)*l;return i[0]=Math.cos(u)*f,i[1]=Math.sin(u)*f,i[2]=s*l,i}},6894:function(a){a.exports=o;function o(i,l,u,s){var f=u[1],v=u[2],p=l[1]-f,b=l[2]-v,m=Math.sin(s),w=Math.cos(s);return i[0]=l[0],i[1]=f+p*w-b*m,i[2]=v+p*m+b*w,i}},109:function(a){a.exports=o;function o(i,l,u,s){var f=u[0],v=u[2],p=l[0]-f,b=l[2]-v,m=Math.sin(s),w=Math.cos(s);return i[0]=f+b*m+p*w,i[1]=l[1],i[2]=v+b*w-p*m,i}},8692:function(a){a.exports=o;function o(i,l,u,s){var f=u[0],v=u[1],p=l[0]-f,b=l[1]-v,m=Math.sin(s),w=Math.cos(s);return i[0]=f+p*w-b*m,i[1]=v+p*m+b*w,i[2]=l[2],i}},2447:function(a){a.exports=o;function o(i,l){return i[0]=Math.round(l[0]),i[1]=Math.round(l[1]),i[2]=Math.round(l[2]),i}},6621:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u,i[1]=l[1]*u,i[2]=l[2]*u,i}},8489:function(a){a.exports=o;function o(i,l,u,s){return i[0]=l[0]+u[0]*s,i[1]=l[1]+u[1]*s,i[2]=l[2]+u[2]*s,i}},1463:function(a){a.exports=o;function o(i,l,u,s){return i[0]=l,i[1]=u,i[2]=s,i}},6141:function(a,o,i){a.exports=i(2953)},5486:function(a,o,i){a.exports=i(3066)},2953:function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2];return u*u+s*s+f*f}},3066:function(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2];return l*l+u*u+s*s}},2229:function(a,o,i){a.exports=i(6843)},6843:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]-u[0],i[1]=l[1]-u[1],i[2]=l[2]-u[2],i}},492:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],v=l[2];return i[0]=s*u[0]+f*u[3]+v*u[6],i[1]=s*u[1]+f*u[4]+v*u[7],i[2]=s*u[2]+f*u[5]+v*u[8],i}},5673:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],v=l[2],p=u[3]*s+u[7]*f+u[11]*v+u[15];return p=p||1,i[0]=(u[0]*s+u[4]*f+u[8]*v+u[12])/p,i[1]=(u[1]*s+u[5]*f+u[9]*v+u[13])/p,i[2]=(u[2]*s+u[6]*f+u[10]*v+u[14])/p,i}},264:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],v=l[2],p=u[0],b=u[1],m=u[2],w=u[3],M=w*s+b*v-m*f,y=w*f+m*s-p*v,k=w*v+p*f-b*s,S=-p*s-b*f-m*v;return i[0]=M*w+S*-p+y*-m-k*-b,i[1]=y*w+S*-b+k*-p-M*-m,i[2]=k*w+S*-m+M*-b-y*-p,i}},4361:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]+u[0],i[1]=l[1]+u[1],i[2]=l[2]+u[2],i[3]=l[3]+u[3],i}},2335:function(a){a.exports=o;function o(i){var l=new Float32Array(4);return l[0]=i[0],l[1]=i[1],l[2]=i[2],l[3]=i[3],l}},2933:function(a){a.exports=o;function o(i,l){return i[0]=l[0],i[1]=l[1],i[2]=l[2],i[3]=l[3],i}},7536:function(a){a.exports=o;function o(){var i=new Float32Array(4);return i[0]=0,i[1]=0,i[2]=0,i[3]=0,i}},4691:function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2],v=l[3]-i[3];return Math.sqrt(u*u+s*s+f*f+v*v)}},1373:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]/u[0],i[1]=l[1]/u[1],i[2]=l[2]/u[2],i[3]=l[3]/u[3],i}},3750:function(a){a.exports=o;function o(i,l){return i[0]*l[0]+i[1]*l[1]+i[2]*l[2]+i[3]*l[3]}},3390:function(a){a.exports=o;function o(i,l,u,s){var f=new Float32Array(4);return f[0]=i,f[1]=l,f[2]=u,f[3]=s,f}},9970:function(a,o,i){a.exports={create:i(7536),clone:i(2335),fromValues:i(3390),copy:i(2933),set:i(4578),add:i(4361),subtract:i(6860),multiply:i(3576),divide:i(1373),min:i(2334),max:i(160),scale:i(9288),scaleAndAdd:i(4844),distance:i(4691),squaredDistance:i(7960),length:i(6808),squaredLength:i(483),negate:i(1498),inverse:i(4494),normalize:i(5177),dot:i(3750),lerp:i(2573),random:i(9131),transformMat4:i(5352),transformQuat:i(4041)}},4494:function(a){a.exports=o;function o(i,l){return i[0]=1/l[0],i[1]=1/l[1],i[2]=1/l[2],i[3]=1/l[3],i}},6808:function(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2],f=i[3];return Math.sqrt(l*l+u*u+s*s+f*f)}},2573:function(a){a.exports=o;function o(i,l,u,s){var f=l[0],v=l[1],p=l[2],b=l[3];return i[0]=f+s*(u[0]-f),i[1]=v+s*(u[1]-v),i[2]=p+s*(u[2]-p),i[3]=b+s*(u[3]-b),i}},160:function(a){a.exports=o;function o(i,l,u){return i[0]=Math.max(l[0],u[0]),i[1]=Math.max(l[1],u[1]),i[2]=Math.max(l[2],u[2]),i[3]=Math.max(l[3],u[3]),i}},2334:function(a){a.exports=o;function o(i,l,u){return i[0]=Math.min(l[0],u[0]),i[1]=Math.min(l[1],u[1]),i[2]=Math.min(l[2],u[2]),i[3]=Math.min(l[3],u[3]),i}},3576:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u[0],i[1]=l[1]*u[1],i[2]=l[2]*u[2],i[3]=l[3]*u[3],i}},1498:function(a){a.exports=o;function o(i,l){return i[0]=-l[0],i[1]=-l[1],i[2]=-l[2],i[3]=-l[3],i}},5177:function(a){a.exports=o;function o(i,l){var u=l[0],s=l[1],f=l[2],v=l[3],p=u*u+s*s+f*f+v*v;return p>0&&(p=1/Math.sqrt(p),i[0]=u*p,i[1]=s*p,i[2]=f*p,i[3]=v*p),i}},9131:function(a,o,i){var l=i(5177),u=i(9288);a.exports=s;function s(f,v){return v=v||1,f[0]=Math.random(),f[1]=Math.random(),f[2]=Math.random(),f[3]=Math.random(),l(f,f),u(f,f,v),f}},9288:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u,i[1]=l[1]*u,i[2]=l[2]*u,i[3]=l[3]*u,i}},4844:function(a){a.exports=o;function o(i,l,u,s){return i[0]=l[0]+u[0]*s,i[1]=l[1]+u[1]*s,i[2]=l[2]+u[2]*s,i[3]=l[3]+u[3]*s,i}},4578:function(a){a.exports=o;function o(i,l,u,s,f){return i[0]=l,i[1]=u,i[2]=s,i[3]=f,i}},7960:function(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2],v=l[3]-i[3];return u*u+s*s+f*f+v*v}},483:function(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2],f=i[3];return l*l+u*u+s*s+f*f}},6860:function(a){a.exports=o;function o(i,l,u){return i[0]=l[0]-u[0],i[1]=l[1]-u[1],i[2]=l[2]-u[2],i[3]=l[3]-u[3],i}},5352:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],v=l[2],p=l[3];return i[0]=u[0]*s+u[4]*f+u[8]*v+u[12]*p,i[1]=u[1]*s+u[5]*f+u[9]*v+u[13]*p,i[2]=u[2]*s+u[6]*f+u[10]*v+u[14]*p,i[3]=u[3]*s+u[7]*f+u[11]*v+u[15]*p,i}},4041:function(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],v=l[2],p=u[0],b=u[1],m=u[2],w=u[3],M=w*s+b*v-m*f,y=w*f+m*s-p*v,k=w*v+p*f-b*s,S=-p*s-b*f-m*v;return i[0]=M*w+S*-p+y*-m-k*-b,i[1]=y*w+S*-b+k*-p-M*-m,i[2]=k*w+S*-m+M*-b-y*-p,i[3]=l[3],i}},1848:function(a,o,i){var l=i(4905),u=i(6468);a.exports=s;function s(f){for(var v=Array.isArray(f)?f:l(f),p=0;p0)continue;me=ge.slice(0,1).join("")}return re(me),j+=me.length,L=L.slice(me.length),L.length}while(!0)}function Pe(){return/[^a-fA-F0-9]/.test(I)?(re(L.join("")),N=p,E):(L.push(I),F=I,E+1)}function Se(){return I==="."||/[eE]/.test(I)?(L.push(I),N=S,F=I,E+1):I==="x"&&L.length===1&&L[0]==="0"?(N=c,L.push(I),F=I,E+1):/[^\d]/.test(I)?(re(L.join("")),N=p,E):(L.push(I),F=I,E+1)}function Ne(){return I==="f"&&(L.push(I),F=I,E+=1),/[eE]/.test(I)||(I==="-"||I==="+")&&/[eE]/.test(F)?(L.push(I),F=I,E+1):/[^\d]/.test(I)?(re(L.join("")),N=p,E):(L.push(I),F=I,E+1)}function Be(){if(/[^\d\w_]/.test(I)){var ge=L.join("");return V[ge]?N=d:ee[ge]?N=T:N=x,re(L.join("")),N=p,E}return L.push(I),F=I,E+1}}},3508:function(a,o,i){var l=i(6852);l=l.slice().filter(function(u){return!/^(gl\_|texture)/.test(u)}),a.exports=l.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},6852:function(a){a.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},7932:function(a,o,i){var l=i(620);a.exports=l.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},620:function(a){a.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},7827:function(a){a.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905:function(a,o,i){var l=i(5874);a.exports=u;function u(s,f){var v=l(f),p=[];return p=p.concat(v(s)),p=p.concat(v(null)),p}},3236:function(a){a.exports=function(o){typeof o=="string"&&(o=[o]);for(var i=[].slice.call(arguments,1),l=[],u=0;u>1,M=-7,y=u?f-1:0,k=u?-1:1,S=i[l+y];for(y+=k,v=S&(1<<-M)-1,S>>=-M,M+=b;M>0;v=v*256+i[l+y],y+=k,M-=8);for(p=v&(1<<-M)-1,v>>=-M,M+=s;M>0;p=p*256+i[l+y],y+=k,M-=8);if(v===0)v=1-w;else{if(v===m)return p?NaN:(S?-1:1)*(1/0);p=p+Math.pow(2,s),v=v-w}return(S?-1:1)*p*Math.pow(2,v-s)},o.write=function(i,l,u,s,f,v){var p,b,m,w=v*8-f-1,M=(1<>1,k=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=s?0:v-1,x=s?1:-1,T=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(b=isNaN(l)?1:0,p=M):(p=Math.floor(Math.log(l)/Math.LN2),l*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+y>=1?l+=k/m:l+=k*Math.pow(2,1-y),l*m>=2&&(p++,m/=2),p+y>=M?(b=0,p=M):p+y>=1?(b=(l*m-1)*Math.pow(2,f),p=p+y):(b=l*Math.pow(2,y-1)*Math.pow(2,f),p=0));f>=8;i[u+S]=b&255,S+=x,b/=256,f-=8);for(p=p<0;i[u+S]=p&255,S+=x,p/=256,w-=8);i[u+S-x]|=T*128}},8954:function(a,o,i){"use strict";a.exports=y;var l=i(3250),u=i(6803).Fw;function s(k,S,x){this.vertices=k,this.adjacent=S,this.boundary=x,this.lastVisited=-1}s.prototype.flip=function(){var k=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=k;var S=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=S};function f(k,S,x){this.vertices=k,this.cell=S,this.index=x}function v(k,S){return u(k.vertices,S.vertices)}function p(k){return function(){var S=this.tuple;return k.apply(this,S)}}function b(k){var S=l[k+1];return S||(S=l),p(S)}var m=[];function w(k,S,x){this.dimension=k,this.vertices=S,this.simplices=x,this.interior=x.filter(function(_){return!_.boundary}),this.tuple=new Array(k+1);for(var T=0;T<=k;++T)this.tuple[T]=this.vertices[T];var d=m[k];d||(d=m[k]=b(k)),this.orient=d}var M=w.prototype;M.handleBoundaryDegeneracy=function(k,S){var x=this.dimension,T=this.vertices.length-1,d=this.tuple,_=this.vertices,g=[k];for(k.lastVisited=-T;g.length>0;){k=g.pop();for(var c=k.adjacent,A=0;A<=x;++A){var h=c[A];if(!(!h.boundary||h.lastVisited<=-T)){for(var R=h.vertices,E=0;E<=x;++E){var D=R[E];D<0?d[E]=S:d[E]=_[D]}var N=this.orient();if(N>0)return h;h.lastVisited=-T,N===0&&g.push(h)}}}return null},M.walk=function(k,S){var x=this.vertices.length-1,T=this.dimension,d=this.vertices,_=this.tuple,g=S?this.interior.length*Math.random()|0:this.interior.length-1,c=this.interior[g];e:for(;!c.boundary;){for(var A=c.vertices,h=c.adjacent,R=0;R<=T;++R)_[R]=d[A[R]];c.lastVisited=x;for(var R=0;R<=T;++R){var E=h[R];if(!(E.lastVisited>=x)){var D=_[R];_[R]=k;var N=this.orient();if(_[R]=D,N<0){c=E;continue e}else E.boundary?E.lastVisited=-x:E.lastVisited=x}}return}return c},M.addPeaks=function(k,S){var x=this.vertices.length-1,T=this.dimension,d=this.vertices,_=this.tuple,g=this.interior,c=this.simplices,A=[S];S.lastVisited=x,S.vertices[S.vertices.indexOf(-1)]=x,S.boundary=!1,g.push(S);for(var h=[];A.length>0;){var S=A.pop(),R=S.vertices,E=S.adjacent,D=R.indexOf(x);if(!(D<0)){for(var N=0;N<=T;++N)if(N!==D){var I=E[N];if(!(!I.boundary||I.lastVisited>=x)){var F=I.vertices;if(I.lastVisited!==-x){for(var L=0,P=0;P<=T;++P)F[P]<0?(L=P,_[P]=k):_[P]=d[F[P]];var O=this.orient();if(O>0){F[L]=x,I.boundary=!1,g.push(I),A.push(I),I.lastVisited=x;continue}else I.lastVisited=-x}var U=I.adjacent,X=R.slice(),$=E.slice(),j=new s(X,$,!0);c.push(j);var Y=U.indexOf(S);if(!(Y<0)){U[Y]=j,$[D]=I,X[N]=-1,$[N]=S,E[N]=j,j.flip();for(var P=0;P<=T;++P){var q=X[P];if(!(q<0||q===x)){for(var Q=new Array(T-1),ne=0,K=0;K<=T;++K){var ie=X[K];ie<0||K===P||(Q[ne++]=ie)}h.push(new f(Q,j,P))}}}}}}}h.sort(v);for(var N=0;N+1=0?g[A++]=c[R]:h=R&1;if(h===(k&1)){var E=g[0];g[0]=g[1],g[1]=E}S.push(g)}}return S};function y(k,S){var x=k.length;if(x===0)throw new Error("Must have at least d+1 points");var T=k[0].length;if(x<=T)throw new Error("Must input at least d+1 points");var d=k.slice(0,T+1),_=l.apply(void 0,d);if(_===0)throw new Error("Input not in general position");for(var g=new Array(T+1),c=0;c<=T;++c)g[c]=c;_<0&&(g[0]=1,g[1]=0);for(var A=new s(g,new Array(T+1),!1),h=A.adjacent,R=new Array(T+2),c=0;c<=T;++c){for(var E=g.slice(),D=0;D<=T;++D)D===c&&(E[D]=-1);var N=E[0];E[0]=E[1],E[1]=N;var I=new s(E,new Array(T+1),!0);h[c]=I,R[c]=I}R[T+1]=A;for(var c=0;c<=T;++c)for(var E=h[c].vertices,F=h[c].adjacent,D=0;D<=T;++D){var L=E[D];if(L<0){F[D]=A;continue}for(var P=0;P<=T;++P)h[P].vertices.indexOf(L)<0&&(F[D]=h[P])}for(var O=new w(T,d,R),U=!!S,c=T+1;c3*(R+1)?w(this,h):this.left.insert(h):this.left=_([h]);else if(h[0]>this.mid)this.right?4*(this.right.count+1)>3*(R+1)?w(this,h):this.right.insert(h):this.right=_([h]);else{var E=l.ge(this.leftPoints,h,T),D=l.ge(this.rightPoints,h,d);this.leftPoints.splice(E,0,h),this.rightPoints.splice(D,0,h)}},p.remove=function(h){var R=this.count-this.leftPoints;if(h[1]3*(R-1))return M(this,h);var D=this.left.remove(h);return D===f?(this.left=null,this.count-=1,s):(D===s&&(this.count-=1),D)}else if(h[0]>this.mid){if(!this.right)return u;var N=this.left?this.left.count:0;if(4*N>3*(R-1))return M(this,h);var D=this.right.remove(h);return D===f?(this.right=null,this.count-=1,s):(D===s&&(this.count-=1),D)}else{if(this.count===1)return this.leftPoints[0]===h?f:u;if(this.leftPoints.length===1&&this.leftPoints[0]===h){if(this.left&&this.right){for(var I=this,F=this.left;F.right;)I=F,F=F.right;if(I===this)F.right=this.right;else{var L=this.left,D=this.right;I.count-=F.count,I.right=F.left,F.left=L,F.right=D}b(this,F),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?b(this,this.left):b(this,this.right);return s}for(var L=l.ge(this.leftPoints,h,T);L=0&&h[D][1]>=R;--D){var N=E(h[D]);if(N)return N}}function S(h,R){for(var E=0;Ethis.mid){if(this.right){var E=this.right.queryPoint(h,R);if(E)return E}return k(this.rightPoints,h,R)}else return S(this.leftPoints,R)},p.queryInterval=function(h,R,E){if(hthis.mid&&this.right){var D=this.right.queryInterval(h,R,E);if(D)return D}return Rthis.mid?k(this.rightPoints,h,E):S(this.leftPoints,E)};function x(h,R){return h-R}function T(h,R){var E=h[0]-R[0];return E||h[1]-R[1]}function d(h,R){var E=h[1]-R[1];return E||h[0]-R[0]}function _(h){if(h.length===0)return null;for(var R=[],E=0;E>1],N=[],I=[],F=[],E=0;E13)&&l!==32&&l!==133&&l!==160&&l!==5760&&l!==6158&&(l<8192||l>8205)&&l!==8232&&l!==8233&&l!==8239&&l!==8287&&l!==8288&&l!==12288&&l!==65279)return!1;return!0}},395:function(a){function o(i,l,u){return i*(1-u)+l*u}a.exports=o},2652:function(a,o,i){var l=i(4335),u=i(6864),s=i(1903),f=i(9921),v=i(7608),p=i(5665),b={length:i(1387),normalize:i(3536),dot:i(244),cross:i(5911)},m=u(),w=u(),M=[0,0,0,0],y=[[0,0,0],[0,0,0],[0,0,0]],k=[0,0,0];a.exports=function(_,g,c,A,h,R){if(g||(g=[0,0,0]),c||(c=[0,0,0]),A||(A=[0,0,0]),h||(h=[0,0,0,1]),R||(R=[0,0,0,1]),!l(m,_)||(s(w,m),w[3]=0,w[7]=0,w[11]=0,w[15]=1,Math.abs(f(w)<1e-8)))return!1;var E=m[3],D=m[7],N=m[11],I=m[12],F=m[13],L=m[14],P=m[15];if(E!==0||D!==0||N!==0){M[0]=E,M[1]=D,M[2]=N,M[3]=P;var O=v(w,w);if(!O)return!1;p(w,w),S(h,M,w)}else h[0]=h[1]=h[2]=0,h[3]=1;if(g[0]=I,g[1]=F,g[2]=L,x(y,m),c[0]=b.length(y[0]),b.normalize(y[0],y[0]),A[0]=b.dot(y[0],y[1]),T(y[1],y[1],y[0],1,-A[0]),c[1]=b.length(y[1]),b.normalize(y[1],y[1]),A[0]/=c[1],A[1]=b.dot(y[0],y[2]),T(y[2],y[2],y[0],1,-A[1]),A[2]=b.dot(y[1],y[2]),T(y[2],y[2],y[1],1,-A[2]),c[2]=b.length(y[2]),b.normalize(y[2],y[2]),A[1]/=c[2],A[2]/=c[2],b.cross(k,y[1],y[2]),b.dot(y[0],k)<0)for(var U=0;U<3;U++)c[U]*=-1,y[U][0]*=-1,y[U][1]*=-1,y[U][2]*=-1;return R[0]=.5*Math.sqrt(Math.max(1+y[0][0]-y[1][1]-y[2][2],0)),R[1]=.5*Math.sqrt(Math.max(1-y[0][0]+y[1][1]-y[2][2],0)),R[2]=.5*Math.sqrt(Math.max(1-y[0][0]-y[1][1]+y[2][2],0)),R[3]=.5*Math.sqrt(Math.max(1+y[0][0]+y[1][1]+y[2][2],0)),y[2][1]>y[1][2]&&(R[0]=-R[0]),y[0][2]>y[2][0]&&(R[1]=-R[1]),y[1][0]>y[0][1]&&(R[2]=-R[2]),!0};function S(d,_,g){var c=_[0],A=_[1],h=_[2],R=_[3];return d[0]=g[0]*c+g[4]*A+g[8]*h+g[12]*R,d[1]=g[1]*c+g[5]*A+g[9]*h+g[13]*R,d[2]=g[2]*c+g[6]*A+g[10]*h+g[14]*R,d[3]=g[3]*c+g[7]*A+g[11]*h+g[15]*R,d}function x(d,_){d[0][0]=_[0],d[0][1]=_[1],d[0][2]=_[2],d[1][0]=_[4],d[1][1]=_[5],d[1][2]=_[6],d[2][0]=_[8],d[2][1]=_[9],d[2][2]=_[10]}function T(d,_,g,c,A){d[0]=_[0]*c+g[0]*A,d[1]=_[1]*c+g[1]*A,d[2]=_[2]*c+g[2]*A}},4335:function(a){a.exports=function(i,l){var u=l[15];if(u===0)return!1;for(var s=1/u,f=0;f<16;f++)i[f]=l[f]*s;return!0}},7442:function(a,o,i){var l=i(6658),u=i(7182),s=i(2652),f=i(9921),v=i(8648),p=M(),b=M(),m=M();a.exports=w;function w(S,x,T,d){if(f(x)===0||f(T)===0)return!1;var _=s(x,p.translate,p.scale,p.skew,p.perspective,p.quaternion),g=s(T,b.translate,b.scale,b.skew,b.perspective,b.quaternion);return!_||!g?!1:(l(m.translate,p.translate,b.translate,d),l(m.skew,p.skew,b.skew,d),l(m.scale,p.scale,b.scale,d),l(m.perspective,p.perspective,b.perspective,d),v(m.quaternion,p.quaternion,b.quaternion,d),u(S,m.translate,m.scale,m.skew,m.perspective,m.quaternion),!0)}function M(){return{translate:y(),scale:y(1),skew:y(),perspective:k(),quaternion:k()}}function y(S){return[S||0,S||0,S||0]}function k(){return[0,0,0,1]}},7182:function(a,o,i){var l={identity:i(7894),translate:i(7656),multiply:i(6760),create:i(6864),scale:i(2504),fromRotationTranslation:i(6743)},u=l.create(),s=l.create();a.exports=function(v,p,b,m,w,M){return l.identity(v),l.fromRotationTranslation(v,M,p),v[3]=w[0],v[7]=w[1],v[11]=w[2],v[15]=w[3],l.identity(s),m[2]!==0&&(s[9]=m[2],l.multiply(v,v,s)),m[1]!==0&&(s[9]=0,s[8]=m[1],l.multiply(v,v,s)),m[0]!==0&&(s[8]=0,s[4]=m[0],l.multiply(v,v,s)),l.scale(v,v,b),v}},1811:function(a,o,i){"use strict";var l=i(2478),u=i(7442),s=i(7608),f=i(5567),v=i(2408),p=i(7089),b=i(6582),m=i(7656),w=i(2504),M=i(3536),y=[0,0,0];a.exports=T;function k(d){this._components=d.slice(),this._time=[0],this.prevMatrix=d.slice(),this.nextMatrix=d.slice(),this.computedMatrix=d.slice(),this.computedInverse=d.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var S=k.prototype;S.recalcMatrix=function(d){var _=this._time,g=l.le(_,d),c=this.computedMatrix;if(!(g<0)){var A=this._components;if(g===_.length-1)for(var h=16*g,R=0;R<16;++R)c[R]=A[h++];else{for(var E=_[g+1]-_[g],h=16*g,D=this.prevMatrix,N=!0,R=0;R<16;++R)D[R]=A[h++];for(var I=this.nextMatrix,R=0;R<16;++R)I[R]=A[h++],N=N&&D[R]===I[R];if(E<1e-6||N)for(var R=0;R<16;++R)c[R]=D[R];else u(c,D,I,(d-_[g])/E)}var F=this.computedUp;F[0]=c[1],F[1]=c[5],F[2]=c[9],M(F,F);var L=this.computedInverse;s(L,c);var P=this.computedEye,O=L[15];P[0]=L[12]/O,P[1]=L[13]/O,P[2]=L[14]/O;for(var U=this.computedCenter,X=Math.exp(this.computedRadius[0]),R=0;R<3;++R)U[R]=P[R]-c[2+4*R]*X}},S.idle=function(d){if(!(d1&&l(s[b[y-2]],s[b[y-1]],M)<=0;)y-=1,b.pop();for(b.push(w),y=m.length;y>1&&l(s[m[y-2]],s[m[y-1]],M)>=0;)y-=1,m.pop();m.push(w)}for(var k=new Array(m.length+b.length-2),S=0,v=0,x=b.length;v0;--T)k[S++]=m[T];return k}},351:function(a,o,i){"use strict";a.exports=u;var l=i(4687);function u(s,f){f||(f=s,s=window);var v=0,p=0,b=0,m={shift:!1,alt:!1,control:!1,meta:!1},w=!1;function M(h){var R=!1;return"altKey"in h&&(R=R||h.altKey!==m.alt,m.alt=!!h.altKey),"shiftKey"in h&&(R=R||h.shiftKey!==m.shift,m.shift=!!h.shiftKey),"ctrlKey"in h&&(R=R||h.ctrlKey!==m.control,m.control=!!h.ctrlKey),"metaKey"in h&&(R=R||h.metaKey!==m.meta,m.meta=!!h.metaKey),R}function y(h,R){var E=l.x(R),D=l.y(R);"buttons"in R&&(h=R.buttons|0),(h!==v||E!==p||D!==b||M(R))&&(v=h|0,p=E||0,b=D||0,f&&f(v,p,b,m))}function k(h){y(0,h)}function S(){(v||p||b||m.shift||m.alt||m.meta||m.control)&&(p=b=0,v=0,m.shift=m.alt=m.control=m.meta=!1,f&&f(0,0,0,m))}function x(h){M(h)&&f&&f(v,p,b,m)}function T(h){l.buttons(h)===0?y(0,h):y(v,h)}function d(h){y(v|l.buttons(h),h)}function _(h){y(v&~l.buttons(h),h)}function g(){w||(w=!0,s.addEventListener("mousemove",T),s.addEventListener("mousedown",d),s.addEventListener("mouseup",_),s.addEventListener("mouseleave",k),s.addEventListener("mouseenter",k),s.addEventListener("mouseout",k),s.addEventListener("mouseover",k),s.addEventListener("blur",S),s.addEventListener("keyup",x),s.addEventListener("keydown",x),s.addEventListener("keypress",x),s!==window&&(window.addEventListener("blur",S),window.addEventListener("keyup",x),window.addEventListener("keydown",x),window.addEventListener("keypress",x)))}function c(){w&&(w=!1,s.removeEventListener("mousemove",T),s.removeEventListener("mousedown",d),s.removeEventListener("mouseup",_),s.removeEventListener("mouseleave",k),s.removeEventListener("mouseenter",k),s.removeEventListener("mouseout",k),s.removeEventListener("mouseover",k),s.removeEventListener("blur",S),s.removeEventListener("keyup",x),s.removeEventListener("keydown",x),s.removeEventListener("keypress",x),s!==window&&(window.removeEventListener("blur",S),window.removeEventListener("keyup",x),window.removeEventListener("keydown",x),window.removeEventListener("keypress",x)))}g();var A={element:s};return Object.defineProperties(A,{enabled:{get:function(){return w},set:function(h){h?g():c()},enumerable:!0},buttons:{get:function(){return v},enumerable:!0},x:{get:function(){return p},enumerable:!0},y:{get:function(){return b},enumerable:!0},mods:{get:function(){return m},enumerable:!0}}),A}},24:function(a){var o={left:0,top:0};a.exports=i;function i(u,s,f){s=s||u.currentTarget||u.srcElement,Array.isArray(f)||(f=[0,0]);var v=u.clientX||0,p=u.clientY||0,b=l(s);return f[0]=v-b.left,f[1]=p-b.top,f}function l(u){return u===window||u===document||u===document.body?o:u.getBoundingClientRect()}},4687:function(a,o){"use strict";function i(f){if(typeof f=="object"){if("buttons"in f)return f.buttons;if("which"in f){var v=f.which;if(v===2)return 4;if(v===3)return 2;if(v>0)return 1<=0)return 1<0){if($=1,q[ne++]=m(g[R],S,x,T),R+=O,d>0)for(X=1,E=g[R],K=q[ne]=m(E,S,x,T),V=q[ne+ie],te=q[ne+re],ke=q[ne+ue],(K!==V||K!==te||K!==ke)&&(N=g[R+D],F=g[R+I],P=g[R+L],p(X,$,E,N,F,P,K,V,te,ke,S,x,T),Ae=Q[ne]=j++),ne+=1,R+=O,X=2;X0)for(X=1,E=g[R],K=q[ne]=m(E,S,x,T),V=q[ne+ie],te=q[ne+re],ke=q[ne+ue],(K!==V||K!==te||K!==ke)&&(N=g[R+D],F=g[R+I],P=g[R+L],p(X,$,E,N,F,P,K,V,te,ke,S,x,T),Ae=Q[ne]=j++,ke!==te&&b(Q[ne+re],Ae,F,P,te,ke,S,x,T)),ne+=1,R+=O,X=2;X0){if(X=1,q[ne++]=m(g[R],S,x,T),R+=O,_>0)for($=1,E=g[R],K=q[ne]=m(E,S,x,T),te=q[ne+re],V=q[ne+ie],ke=q[ne+ue],(K!==te||K!==V||K!==ke)&&(N=g[R+D],F=g[R+I],P=g[R+L],p(X,$,E,N,F,P,K,te,V,ke,S,x,T),Ae=Q[ne]=j++),ne+=1,R+=O,$=2;$<_;++$)E=g[R],K=q[ne]=m(E,S,x,T),te=q[ne+re],V=q[ne+ie],ke=q[ne+ue],(K!==te||K!==V||K!==ke)&&(N=g[R+D],F=g[R+I],P=g[R+L],p(X,$,E,N,F,P,K,te,V,ke,S,x,T),Ae=Q[ne]=j++,ke!==V&&b(Q[ne+ie],Ae,F,P,V,ke,S,x,T)),ne+=1,R+=O;for(R+=U,ne=0,ve=re,re=H,H=ve,ve=ie,ie=ee,ee=ve,ve=ue,ue=de,de=ve,X=2;X0)for($=1,E=g[R],K=q[ne]=m(E,S,x,T),te=q[ne+re],V=q[ne+ie],ke=q[ne+ue],(K!==te||K!==V||K!==ke)&&(N=g[R+D],F=g[R+I],P=g[R+L],p(X,$,E,N,F,P,K,te,V,ke,S,x,T),Ae=Q[ne]=j++,ke!==te&&b(Q[ne+re],Ae,P,N,ke,te,S,x,T)),ne+=1,R+=O,$=2;$<_;++$)E=g[R],K=q[ne]=m(E,S,x,T),te=q[ne+re],V=q[ne+ie],ke=q[ne+ue],(K!==te||K!==V||K!==ke)&&(N=g[R+D],F=g[R+I],P=g[R+L],p(X,$,E,N,F,P,K,te,V,ke,S,x,T),Ae=Q[ne]=j++,ke!==V&&b(Q[ne+ie],Ae,F,P,V,ke,S,x,T),ke!==te&&b(Q[ne+re],Ae,P,N,ke,te,S,x,T)),ne+=1,R+=O;X&1&&(ne=0),ve=re,re=H,H=ve,ve=ie,ie=ee,ee=ve,ve=ue,ue=de,de=ve,R+=U}}M(Q),M(q)}}};function s(v,p,b,m,w,M){var y=[M,w].join(","),k=u[y];return k(v,p,b,l.mallocUint32,l.freeUint32)}function f(v){function p(S){throw new Error("ndarray-extract-contour: "+S)}typeof v!="object"&&p("Must specify arguments");var b=v.order;Array.isArray(b)||p("Must specify order");var m=v.arrayArguments||1;m<1&&p("Must have at least one array argument");var w=v.scalarArguments||0;w<0&&p("Scalar arg count must be > 0"),typeof v.vertex!="function"&&p("Must specify vertex creation function"),typeof v.cell!="function"&&p("Must specify cell creation function"),typeof v.phase!="function"&&p("Must specify phase function");for(var M=v.getters||[],y=new Array(m),k=0;k=0?y[k]=!0:y[k]=!1;return s(v.vertex,v.cell,v.phase,w,b,y)}},6199:function(a,o,i){"use strict";var l=i(1338),u={zero:function(T,d,_,g){var c=T[0],A=_[0];g|=0;var h=0,R=A;for(h=0;h2&&h[1]>2&&g(A.pick(-1,-1).lo(1,1).hi(h[0]-2,h[1]-2),c.pick(-1,-1,0).lo(1,1).hi(h[0]-2,h[1]-2),c.pick(-1,-1,1).lo(1,1).hi(h[0]-2,h[1]-2)),h[1]>2&&(_(A.pick(0,-1).lo(1).hi(h[1]-2),c.pick(0,-1,1).lo(1).hi(h[1]-2)),d(c.pick(0,-1,0).lo(1).hi(h[1]-2))),h[1]>2&&(_(A.pick(h[0]-1,-1).lo(1).hi(h[1]-2),c.pick(h[0]-1,-1,1).lo(1).hi(h[1]-2)),d(c.pick(h[0]-1,-1,0).lo(1).hi(h[1]-2))),h[0]>2&&(_(A.pick(-1,0).lo(1).hi(h[0]-2),c.pick(-1,0,0).lo(1).hi(h[0]-2)),d(c.pick(-1,0,1).lo(1).hi(h[0]-2))),h[0]>2&&(_(A.pick(-1,h[1]-1).lo(1).hi(h[0]-2),c.pick(-1,h[1]-1,0).lo(1).hi(h[0]-2)),d(c.pick(-1,h[1]-1,1).lo(1).hi(h[0]-2))),c.set(0,0,0,0),c.set(0,0,1,0),c.set(h[0]-1,0,0,0),c.set(h[0]-1,0,1,0),c.set(0,h[1]-1,0,0),c.set(0,h[1]-1,1,0),c.set(h[0]-1,h[1]-1,0,0),c.set(h[0]-1,h[1]-1,1,0),c}}function x(T){var d=T.join(),h=m[d];if(h)return h;for(var _=T.length,g=[M,y],c=1;c<=_;++c)g.push(k(c));var A=S,h=A.apply(void 0,g);return m[d]=h,h}a.exports=function(d,_,g){if(Array.isArray(g)||(typeof g=="string"?g=l(_.dimension,g):g=l(_.dimension,"clamp")),_.size===0)return d;if(_.dimension===0)return d.set(0),d;var c=x(g);return c(d,_)}},4317:function(a){"use strict";function o(f,v){var p=Math.floor(v),b=v-p,m=0<=p&&p0;){F<64?(d=F,F=0):(d=64,F-=64);for(var L=m[1]|0;L>0;){L<64?(_=L,L=0):(_=64,L-=64),y=N+F*c+L*A,x=I+F*R+L*E;var P=0,O=0,U=0,X=h,$=c-g*h,j=A-d*c,Y=D,q=R-g*D,Q=E-d*R;for(U=0;U<_;++U){for(O=0;O0;){E<64?(d=E,E=0):(d=64,E-=64);for(var D=m[0]|0;D>0;){D<64?(T=D,D=0):(T=64,D-=64),y=h+E*g+D*_,x=R+E*A+D*c;var N=0,I=0,F=g,L=_-d*g,P=A,O=c-d*A;for(I=0;I0;){I<64?(_=I,I=0):(_=64,I-=64);for(var F=m[0]|0;F>0;){F<64?(T=F,F=0):(T=64,F-=64);for(var L=m[1]|0;L>0;){L<64?(d=L,L=0):(d=64,L-=64),y=D+I*A+F*g+L*c,x=N+I*E+F*h+L*R;var P=0,O=0,U=0,X=A,$=g-_*A,j=c-T*g,Y=E,q=h-_*E,Q=R-T*h;for(U=0;Uk;){P=0,O=N-d;r:for(F=0;FX)break r;O+=h,P+=R}for(P=N,O=N-d,F=0;F>1,L=F-D,P=F+D,O=N,U=L,X=F,$=P,j=I,Y=S+1,q=x-1,Q=!0,ne,K,ie,ee,V,re,H,te,ue,de=0,ke=0,Ae=0,ve,Te,Ee,Pe,Se,Ne,Be,ge,we,Me,me,Re,ce,he,ye,Ce,ze=A,qe=M(ze),$e=M(ze);Te=_*O,Ee=_*U,Ce=d;e:for(ve=0;ve0){K=O,O=U,U=K;break e}if(Ae<0)break e;Ce+=R}Te=_*$,Ee=_*j,Ce=d;e:for(ve=0;ve0){K=$,$=j,j=K;break e}if(Ae<0)break e;Ce+=R}Te=_*O,Ee=_*X,Ce=d;e:for(ve=0;ve0){K=O,O=X,X=K;break e}if(Ae<0)break e;Ce+=R}Te=_*U,Ee=_*X,Ce=d;e:for(ve=0;ve0){K=U,U=X,X=K;break e}if(Ae<0)break e;Ce+=R}Te=_*O,Ee=_*$,Ce=d;e:for(ve=0;ve0){K=O,O=$,$=K;break e}if(Ae<0)break e;Ce+=R}Te=_*X,Ee=_*$,Ce=d;e:for(ve=0;ve0){K=X,X=$,$=K;break e}if(Ae<0)break e;Ce+=R}Te=_*U,Ee=_*j,Ce=d;e:for(ve=0;ve0){K=U,U=j,j=K;break e}if(Ae<0)break e;Ce+=R}Te=_*U,Ee=_*X,Ce=d;e:for(ve=0;ve0){K=U,U=X,X=K;break e}if(Ae<0)break e;Ce+=R}Te=_*$,Ee=_*j,Ce=d;e:for(ve=0;ve0){K=$,$=j,j=K;break e}if(Ae<0)break e;Ce+=R}for(Te=_*O,Ee=_*U,Pe=_*X,Se=_*$,Ne=_*j,Be=_*N,ge=_*F,we=_*I,ye=0,Ce=d,ve=0;ve0)q--;else if(Ae<0){for(Te=_*re,Ee=_*Y,Pe=_*q,Ce=d,ve=0;ve0)for(;;){H=d+q*_,ye=0;e:for(ve=0;ve0){if(--qI){e:for(;;){for(H=d+Y*_,ye=0,Ce=d,ve=0;ve1&&k?x(y,k[0],k[1]):x(y)}var b={"uint32,1,0":function(w,M){return function(y){var k=y.data,S=y.offset|0,x=y.shape,T=y.stride,d=T[0]|0,_=x[0]|0,g=T[1]|0,c=x[1]|0,A=g,h=g,R=1;_<=32?w(0,_-1,k,S,d,g,_,c,A,h,R):M(0,_-1,k,S,d,g,_,c,A,h,R)}}};function m(w,M){var y=[M,w].join(","),k=b[y],S=f(w,M),x=p(w,M,S);return k(S,x)}a.exports=m},446:function(a,o,i){"use strict";var l=i(7640),u={};function s(f){var v=f.order,p=f.dtype,b=[v,p],m=b.join(":"),w=u[m];return w||(u[m]=w=l(v,p)),w(f),f}a.exports=s},9618:function(a,o,i){var l=i(7163),u=typeof Float64Array!="undefined";function s(M,y){return M[0]-y[0]}function f(){var M=this.stride,y=new Array(M.length),k;for(k=0;k=0&&(g=d|0,_+=A*g,c-=g),new S(this.data,c,A,_)},x.step=function(d){var _=this.shape[0],g=this.stride[0],c=this.offset,A=0,h=Math.ceil;return typeof d=="number"&&(A=d|0,A<0?(c+=g*(_-1),_=h(-_/A)):_=h(_/A),g*=A),new S(this.data,_,g,c)},x.transpose=function(d){d=d===void 0?0:d|0;var _=this.shape,g=this.stride;return new S(this.data,_[d],g[d],this.offset)},x.pick=function(d){var _=[],g=[],c=this.offset;typeof d=="number"&&d>=0?c=c+this.stride[0]*d|0:(_.push(this.shape[0]),g.push(this.stride[0]));var A=y[_.length+1];return A(this.data,_,g,c)},function(d,_,g,c){return new S(d,_[0],g[0],c)}},2:function(M,y,k){function S(T,d,_,g,c,A){this.data=T,this.shape=[d,_],this.stride=[g,c],this.offset=A|0}var x=S.prototype;return x.dtype=M,x.dimension=2,Object.defineProperty(x,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(x,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),x.set=function(d,_,g){return M==="generic"?this.data.set(this.offset+this.stride[0]*d+this.stride[1]*_,g):this.data[this.offset+this.stride[0]*d+this.stride[1]*_]=g},x.get=function(d,_){return M==="generic"?this.data.get(this.offset+this.stride[0]*d+this.stride[1]*_):this.data[this.offset+this.stride[0]*d+this.stride[1]*_]},x.index=function(d,_){return this.offset+this.stride[0]*d+this.stride[1]*_},x.hi=function(d,_){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,typeof _!="number"||_<0?this.shape[1]:_|0,this.stride[0],this.stride[1],this.offset)},x.lo=function(d,_){var g=this.offset,c=0,A=this.shape[0],h=this.shape[1],R=this.stride[0],E=this.stride[1];return typeof d=="number"&&d>=0&&(c=d|0,g+=R*c,A-=c),typeof _=="number"&&_>=0&&(c=_|0,g+=E*c,h-=c),new S(this.data,A,h,R,E,g)},x.step=function(d,_){var g=this.shape[0],c=this.shape[1],A=this.stride[0],h=this.stride[1],R=this.offset,E=0,D=Math.ceil;return typeof d=="number"&&(E=d|0,E<0?(R+=A*(g-1),g=D(-g/E)):g=D(g/E),A*=E),typeof _=="number"&&(E=_|0,E<0?(R+=h*(c-1),c=D(-c/E)):c=D(c/E),h*=E),new S(this.data,g,c,A,h,R)},x.transpose=function(d,_){d=d===void 0?0:d|0,_=_===void 0?1:_|0;var g=this.shape,c=this.stride;return new S(this.data,g[d],g[_],c[d],c[_],this.offset)},x.pick=function(d,_){var g=[],c=[],A=this.offset;typeof d=="number"&&d>=0?A=A+this.stride[0]*d|0:(g.push(this.shape[0]),c.push(this.stride[0])),typeof _=="number"&&_>=0?A=A+this.stride[1]*_|0:(g.push(this.shape[1]),c.push(this.stride[1]));var h=y[g.length+1];return h(this.data,g,c,A)},function(d,_,g,c){return new S(d,_[0],_[1],g[0],g[1],c)}},3:function(M,y,k){function S(T,d,_,g,c,A,h,R){this.data=T,this.shape=[d,_,g],this.stride=[c,A,h],this.offset=R|0}var x=S.prototype;return x.dtype=M,x.dimension=3,Object.defineProperty(x,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(x,"order",{get:function(){var d=Math.abs(this.stride[0]),_=Math.abs(this.stride[1]),g=Math.abs(this.stride[2]);return d>_?_>g?[2,1,0]:d>g?[1,2,0]:[1,0,2]:d>g?[2,0,1]:g>_?[0,1,2]:[0,2,1]}}),x.set=function(d,_,g,c){return M==="generic"?this.data.set(this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g,c):this.data[this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g]=c},x.get=function(d,_,g){return M==="generic"?this.data.get(this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g):this.data[this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g]},x.index=function(d,_,g){return this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g},x.hi=function(d,_,g){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,typeof _!="number"||_<0?this.shape[1]:_|0,typeof g!="number"||g<0?this.shape[2]:g|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},x.lo=function(d,_,g){var c=this.offset,A=0,h=this.shape[0],R=this.shape[1],E=this.shape[2],D=this.stride[0],N=this.stride[1],I=this.stride[2];return typeof d=="number"&&d>=0&&(A=d|0,c+=D*A,h-=A),typeof _=="number"&&_>=0&&(A=_|0,c+=N*A,R-=A),typeof g=="number"&&g>=0&&(A=g|0,c+=I*A,E-=A),new S(this.data,h,R,E,D,N,I,c)},x.step=function(d,_,g){var c=this.shape[0],A=this.shape[1],h=this.shape[2],R=this.stride[0],E=this.stride[1],D=this.stride[2],N=this.offset,I=0,F=Math.ceil;return typeof d=="number"&&(I=d|0,I<0?(N+=R*(c-1),c=F(-c/I)):c=F(c/I),R*=I),typeof _=="number"&&(I=_|0,I<0?(N+=E*(A-1),A=F(-A/I)):A=F(A/I),E*=I),typeof g=="number"&&(I=g|0,I<0?(N+=D*(h-1),h=F(-h/I)):h=F(h/I),D*=I),new S(this.data,c,A,h,R,E,D,N)},x.transpose=function(d,_,g){d=d===void 0?0:d|0,_=_===void 0?1:_|0,g=g===void 0?2:g|0;var c=this.shape,A=this.stride;return new S(this.data,c[d],c[_],c[g],A[d],A[_],A[g],this.offset)},x.pick=function(d,_,g){var c=[],A=[],h=this.offset;typeof d=="number"&&d>=0?h=h+this.stride[0]*d|0:(c.push(this.shape[0]),A.push(this.stride[0])),typeof _=="number"&&_>=0?h=h+this.stride[1]*_|0:(c.push(this.shape[1]),A.push(this.stride[1])),typeof g=="number"&&g>=0?h=h+this.stride[2]*g|0:(c.push(this.shape[2]),A.push(this.stride[2]));var R=y[c.length+1];return R(this.data,c,A,h)},function(d,_,g,c){return new S(d,_[0],_[1],_[2],g[0],g[1],g[2],c)}},4:function(M,y,k){function S(T,d,_,g,c,A,h,R,E,D){this.data=T,this.shape=[d,_,g,c],this.stride=[A,h,R,E],this.offset=D|0}var x=S.prototype;return x.dtype=M,x.dimension=4,Object.defineProperty(x,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(x,"order",{get:k}),x.set=function(d,_,g,c,A){return M==="generic"?this.data.set(this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c,A):this.data[this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c]=A},x.get=function(d,_,g,c){return M==="generic"?this.data.get(this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c):this.data[this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c]},x.index=function(d,_,g,c){return this.offset+this.stride[0]*d+this.stride[1]*_+this.stride[2]*g+this.stride[3]*c},x.hi=function(d,_,g,c){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,typeof _!="number"||_<0?this.shape[1]:_|0,typeof g!="number"||g<0?this.shape[2]:g|0,typeof c!="number"||c<0?this.shape[3]:c|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},x.lo=function(d,_,g,c){var A=this.offset,h=0,R=this.shape[0],E=this.shape[1],D=this.shape[2],N=this.shape[3],I=this.stride[0],F=this.stride[1],L=this.stride[2],P=this.stride[3];return typeof d=="number"&&d>=0&&(h=d|0,A+=I*h,R-=h),typeof _=="number"&&_>=0&&(h=_|0,A+=F*h,E-=h),typeof g=="number"&&g>=0&&(h=g|0,A+=L*h,D-=h),typeof c=="number"&&c>=0&&(h=c|0,A+=P*h,N-=h),new S(this.data,R,E,D,N,I,F,L,P,A)},x.step=function(d,_,g,c){var A=this.shape[0],h=this.shape[1],R=this.shape[2],E=this.shape[3],D=this.stride[0],N=this.stride[1],I=this.stride[2],F=this.stride[3],L=this.offset,P=0,O=Math.ceil;return typeof d=="number"&&(P=d|0,P<0?(L+=D*(A-1),A=O(-A/P)):A=O(A/P),D*=P),typeof _=="number"&&(P=_|0,P<0?(L+=N*(h-1),h=O(-h/P)):h=O(h/P),N*=P),typeof g=="number"&&(P=g|0,P<0?(L+=I*(R-1),R=O(-R/P)):R=O(R/P),I*=P),typeof c=="number"&&(P=c|0,P<0?(L+=F*(E-1),E=O(-E/P)):E=O(E/P),F*=P),new S(this.data,A,h,R,E,D,N,I,F,L)},x.transpose=function(d,_,g,c){d=d===void 0?0:d|0,_=_===void 0?1:_|0,g=g===void 0?2:g|0,c=c===void 0?3:c|0;var A=this.shape,h=this.stride;return new S(this.data,A[d],A[_],A[g],A[c],h[d],h[_],h[g],h[c],this.offset)},x.pick=function(d,_,g,c){var A=[],h=[],R=this.offset;typeof d=="number"&&d>=0?R=R+this.stride[0]*d|0:(A.push(this.shape[0]),h.push(this.stride[0])),typeof _=="number"&&_>=0?R=R+this.stride[1]*_|0:(A.push(this.shape[1]),h.push(this.stride[1])),typeof g=="number"&&g>=0?R=R+this.stride[2]*g|0:(A.push(this.shape[2]),h.push(this.stride[2])),typeof c=="number"&&c>=0?R=R+this.stride[3]*c|0:(A.push(this.shape[3]),h.push(this.stride[3]));var E=y[A.length+1];return E(this.data,A,h,R)},function(d,_,g,c){return new S(d,_[0],_[1],_[2],_[3],g[0],g[1],g[2],g[3],c)}},5:function(y,k,S){function x(d,_,g,c,A,h,R,E,D,N,I,F){this.data=d,this.shape=[_,g,c,A,h],this.stride=[R,E,D,N,I],this.offset=F|0}var T=x.prototype;return T.dtype=y,T.dimension=5,Object.defineProperty(T,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(T,"order",{get:S}),T.set=function(_,g,c,A,h,R){return y==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*h,R):this.data[this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*h]=R},T.get=function(_,g,c,A,h){return y==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*h):this.data[this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*h]},T.index=function(_,g,c,A,h){return this.offset+this.stride[0]*_+this.stride[1]*g+this.stride[2]*c+this.stride[3]*A+this.stride[4]*h},T.hi=function(_,g,c,A,h){return new x(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof g!="number"||g<0?this.shape[1]:g|0,typeof c!="number"||c<0?this.shape[2]:c|0,typeof A!="number"||A<0?this.shape[3]:A|0,typeof h!="number"||h<0?this.shape[4]:h|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},T.lo=function(_,g,c,A,h){var R=this.offset,E=0,D=this.shape[0],N=this.shape[1],I=this.shape[2],F=this.shape[3],L=this.shape[4],P=this.stride[0],O=this.stride[1],U=this.stride[2],X=this.stride[3],$=this.stride[4];return typeof _=="number"&&_>=0&&(E=_|0,R+=P*E,D-=E),typeof g=="number"&&g>=0&&(E=g|0,R+=O*E,N-=E),typeof c=="number"&&c>=0&&(E=c|0,R+=U*E,I-=E),typeof A=="number"&&A>=0&&(E=A|0,R+=X*E,F-=E),typeof h=="number"&&h>=0&&(E=h|0,R+=$*E,L-=E),new x(this.data,D,N,I,F,L,P,O,U,X,$,R)},T.step=function(_,g,c,A,h){var R=this.shape[0],E=this.shape[1],D=this.shape[2],N=this.shape[3],I=this.shape[4],F=this.stride[0],L=this.stride[1],P=this.stride[2],O=this.stride[3],U=this.stride[4],X=this.offset,$=0,j=Math.ceil;return typeof _=="number"&&($=_|0,$<0?(X+=F*(R-1),R=j(-R/$)):R=j(R/$),F*=$),typeof g=="number"&&($=g|0,$<0?(X+=L*(E-1),E=j(-E/$)):E=j(E/$),L*=$),typeof c=="number"&&($=c|0,$<0?(X+=P*(D-1),D=j(-D/$)):D=j(D/$),P*=$),typeof A=="number"&&($=A|0,$<0?(X+=O*(N-1),N=j(-N/$)):N=j(N/$),O*=$),typeof h=="number"&&($=h|0,$<0?(X+=U*(I-1),I=j(-I/$)):I=j(I/$),U*=$),new x(this.data,R,E,D,N,I,F,L,P,O,U,X)},T.transpose=function(_,g,c,A,h){_=_===void 0?0:_|0,g=g===void 0?1:g|0,c=c===void 0?2:c|0,A=A===void 0?3:A|0,h=h===void 0?4:h|0;var R=this.shape,E=this.stride;return new x(this.data,R[_],R[g],R[c],R[A],R[h],E[_],E[g],E[c],E[A],E[h],this.offset)},T.pick=function(_,g,c,A,h){var R=[],E=[],D=this.offset;typeof _=="number"&&_>=0?D=D+this.stride[0]*_|0:(R.push(this.shape[0]),E.push(this.stride[0])),typeof g=="number"&&g>=0?D=D+this.stride[1]*g|0:(R.push(this.shape[1]),E.push(this.stride[1])),typeof c=="number"&&c>=0?D=D+this.stride[2]*c|0:(R.push(this.shape[2]),E.push(this.stride[2])),typeof A=="number"&&A>=0?D=D+this.stride[3]*A|0:(R.push(this.shape[3]),E.push(this.stride[3])),typeof h=="number"&&h>=0?D=D+this.stride[4]*h|0:(R.push(this.shape[4]),E.push(this.stride[4]));var N=k[R.length+1];return N(this.data,R,E,D)},function(_,g,c,A){return new x(_,g[0],g[1],g[2],g[3],g[4],c[0],c[1],c[2],c[3],c[4],A)}}};function p(M,y){var k=y===-1?"T":String(y),S=v[k];return y===-1?S(M):y===0?S(M,m[M][0]):S(M,m[M],f)}function b(M){if(l(M))return"buffer";if(u)switch(Object.prototype.toString.call(M)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(M)?"array":"generic"}var m={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function w(M,y,k,S){if(M===void 0){var c=m.array[0];return c([])}else typeof M=="number"&&(M=[M]);y===void 0&&(y=[M.length]);var x=y.length;if(k===void 0){k=new Array(x);for(var T=x-1,d=1;T>=0;--T)k[T]=d,d*=y[T]}if(S===void 0){S=0;for(var T=0;T>>0;a.exports=f;function f(v,p){if(isNaN(v)||isNaN(p))return NaN;if(v===p)return v;if(v===0)return p<0?-u:u;var b=l.hi(v),m=l.lo(v);return p>v==v>0?m===s?(b+=1,m=0):m+=1:m===0?(m=s,b-=1):m-=1,l.pack(m,b)}},8406:function(a,o){var i=1e-6,l=1e-6;o.vertexNormals=function(u,s,f){for(var v=s.length,p=new Array(v),b=f===void 0?i:f,m=0;mb)for(var R=p[y],E=1/Math.sqrt(g*A),h=0;h<3;++h){var D=(h+1)%3,N=(h+2)%3;R[h]+=E*(c[D]*_[N]-c[N]*_[D])}}for(var m=0;mb)for(var E=1/Math.sqrt(I),h=0;h<3;++h)R[h]*=E;else for(var h=0;h<3;++h)R[h]=0}return p},o.faceNormals=function(u,s,f){for(var v=u.length,p=new Array(v),b=f===void 0?l:f,m=0;mb?T=1/Math.sqrt(T):T=0;for(var y=0;y<3;++y)x[y]*=T;p[m]=x}return p}},4081:function(a){"use strict";a.exports=o;function o(i,l,u,s,f,v,p,b,m,w){var M=l+v+w;if(y>0){var y=Math.sqrt(M+1);i[0]=.5*(p-m)/y,i[1]=.5*(b-s)/y,i[2]=.5*(u-v)/y,i[3]=.5*y}else{var k=Math.max(l,v,w),y=Math.sqrt(2*k-M+1);l>=k?(i[0]=.5*y,i[1]=.5*(f+u)/y,i[2]=.5*(b+s)/y,i[3]=.5*(p-m)/y):v>=k?(i[0]=.5*(u+f)/y,i[1]=.5*y,i[2]=.5*(m+p)/y,i[3]=.5*(b-s)/y):(i[0]=.5*(s+b)/y,i[1]=.5*(p+m)/y,i[2]=.5*y,i[3]=.5*(u-f)/y)}return i}},9977:function(a,o,i){"use strict";a.exports=y;var l=i(9215),u=i(6582),s=i(7399),f=i(7608),v=i(4081);function p(k,S,x){return Math.sqrt(Math.pow(k,2)+Math.pow(S,2)+Math.pow(x,2))}function b(k,S,x,T){return Math.sqrt(Math.pow(k,2)+Math.pow(S,2)+Math.pow(x,2)+Math.pow(T,2))}function m(k,S){var x=S[0],T=S[1],d=S[2],_=S[3],g=b(x,T,d,_);g>1e-6?(k[0]=x/g,k[1]=T/g,k[2]=d/g,k[3]=_/g):(k[0]=k[1]=k[2]=0,k[3]=1)}function w(k,S,x){this.radius=l([x]),this.center=l(S),this.rotation=l(k),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var M=w.prototype;M.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},M.recalcMatrix=function(k){this.radius.curve(k),this.center.curve(k),this.rotation.curve(k);var S=this.computedRotation;m(S,S);var x=this.computedMatrix;s(x,S);var T=this.computedCenter,d=this.computedEye,_=this.computedUp,g=Math.exp(this.computedRadius[0]);d[0]=T[0]+g*x[2],d[1]=T[1]+g*x[6],d[2]=T[2]+g*x[10],_[0]=x[1],_[1]=x[5],_[2]=x[9];for(var c=0;c<3;++c){for(var A=0,h=0;h<3;++h)A+=x[c+4*h]*d[h];x[12+c]=-A}},M.getMatrix=function(k,S){this.recalcMatrix(k);var x=this.computedMatrix;if(S){for(var T=0;T<16;++T)S[T]=x[T];return S}return x},M.idle=function(k){this.center.idle(k),this.radius.idle(k),this.rotation.idle(k)},M.flush=function(k){this.center.flush(k),this.radius.flush(k),this.rotation.flush(k)},M.pan=function(k,S,x,T){S=S||0,x=x||0,T=T||0,this.recalcMatrix(k);var d=this.computedMatrix,_=d[1],g=d[5],c=d[9],A=p(_,g,c);_/=A,g/=A,c/=A;var h=d[0],R=d[4],E=d[8],D=h*_+R*g+E*c;h-=_*D,R-=g*D,E-=c*D;var N=p(h,R,E);h/=N,R/=N,E/=N;var I=d[2],F=d[6],L=d[10],P=I*_+F*g+L*c,O=I*h+F*R+L*E;I-=P*_+O*h,F-=P*g+O*R,L-=P*c+O*E;var U=p(I,F,L);I/=U,F/=U,L/=U;var X=h*S+_*x,$=R*S+g*x,j=E*S+c*x;this.center.move(k,X,$,j);var Y=Math.exp(this.computedRadius[0]);Y=Math.max(1e-4,Y+T),this.radius.set(k,Math.log(Y))},M.rotate=function(k,S,x,T){this.recalcMatrix(k),S=S||0,x=x||0;var d=this.computedMatrix,_=d[0],g=d[4],c=d[8],A=d[1],h=d[5],R=d[9],E=d[2],D=d[6],N=d[10],I=S*_+x*A,F=S*g+x*h,L=S*c+x*R,P=-(D*L-N*F),O=-(N*I-E*L),U=-(E*F-D*I),X=Math.sqrt(Math.max(0,1-Math.pow(P,2)-Math.pow(O,2)-Math.pow(U,2))),$=b(P,O,U,X);$>1e-6?(P/=$,O/=$,U/=$,X/=$):(P=O=U=0,X=1);var j=this.computedRotation,Y=j[0],q=j[1],Q=j[2],ne=j[3],K=Y*X+ne*P+q*U-Q*O,ie=q*X+ne*O+Q*P-Y*U,ee=Q*X+ne*U+Y*O-q*P,V=ne*X-Y*P-q*O-Q*U;if(T){P=E,O=D,U=N;var re=Math.sin(T)/p(P,O,U);P*=re,O*=re,U*=re,X=Math.cos(S),K=K*X+V*P+ie*U-ee*O,ie=ie*X+V*O+ee*P-K*U,ee=ee*X+V*U+K*O-ie*P,V=V*X-K*P-ie*O-ee*U}var H=b(K,ie,ee,V);H>1e-6?(K/=H,ie/=H,ee/=H,V/=H):(K=ie=ee=0,V=1),this.rotation.set(k,K,ie,ee,V)},M.lookAt=function(k,S,x,T){this.recalcMatrix(k),x=x||this.computedCenter,S=S||this.computedEye,T=T||this.computedUp;var d=this.computedMatrix;u(d,S,x,T);var _=this.computedRotation;v(_,d[0],d[1],d[2],d[4],d[5],d[6],d[8],d[9],d[10]),m(_,_),this.rotation.set(k,_[0],_[1],_[2],_[3]);for(var g=0,c=0;c<3;++c)g+=Math.pow(x[c]-S[c],2);this.radius.set(k,.5*Math.log(Math.max(g,1e-6))),this.center.set(k,x[0],x[1],x[2])},M.translate=function(k,S,x,T){this.center.move(k,S||0,x||0,T||0)},M.setMatrix=function(k,S){var x=this.computedRotation;v(x,S[0],S[1],S[2],S[4],S[5],S[6],S[8],S[9],S[10]),m(x,x),this.rotation.set(k,x[0],x[1],x[2],x[3]);var T=this.computedMatrix;f(T,S);var d=T[15];if(Math.abs(d)>1e-6){var _=T[12]/d,g=T[13]/d,c=T[14]/d;this.recalcMatrix(k);var A=Math.exp(this.computedRadius[0]);this.center.set(k,_-T[2]*A,g-T[6]*A,c-T[10]*A),this.radius.idle(k)}else this.center.idle(k),this.radius.idle(k)},M.setDistance=function(k,S){S>0&&this.radius.set(k,Math.log(S))},M.setDistanceLimits=function(k,S){k>0?k=Math.log(k):k=-1/0,S>0?S=Math.log(S):S=1/0,S=Math.max(S,k),this.radius.bounds[0][0]=k,this.radius.bounds[1][0]=S},M.getDistanceLimits=function(k){var S=this.radius.bounds;return k?(k[0]=Math.exp(S[0][0]),k[1]=Math.exp(S[1][0]),k):[Math.exp(S[0][0]),Math.exp(S[1][0])]},M.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},M.fromJSON=function(k){var S=this.lastT(),x=k.center;x&&this.center.set(S,x[0],x[1],x[2]);var T=k.rotation;T&&this.rotation.set(S,T[0],T[1],T[2],T[3]);var d=k.distance;d&&d>0&&this.radius.set(S,Math.log(d)),this.setDistanceLimits(k.zoomMin,k.zoomMax)};function y(k){k=k||{};var S=k.center||[0,0,0],x=k.rotation||[0,0,0,1],T=k.radius||1;S=[].slice.call(S,0,3),x=[].slice.call(x,0,4),m(x,x);var d=new w(x,S,Math.log(T));return d.setDistanceLimits(k.zoomMin,k.zoomMax),("eye"in k||"up"in k)&&d.lookAt(0,k.eye,k.center,k.up),d}},1371:function(a,o,i){"use strict";var l=i(3233);a.exports=function(s,f,v){return v=typeof v!="undefined"?v+"":" ",l(v,f)+s}},3202:function(a){a.exports=function(i,l){l||(l=[0,""]),i=String(i);var u=parseFloat(i,10);return l[0]=u,l[1]=i.match(/[\d.\-\+]*\s*(.*)/)[1]||"",l}},3088:function(a,o,i){"use strict";a.exports=u;var l=i(3140);function u(s,f){for(var v=f.length|0,p=s.length,b=[new Array(v),new Array(v)],m=0;m0){R=b[N][A][0],D=N;break}E=R[D^1];for(var I=0;I<2;++I)for(var F=b[I][A],L=0;L0&&(R=P,E=O,D=I)}return h||R&&y(R,D),E}function S(c,A){var h=b[A][c][0],R=[c];y(h,A);for(var E=h[A^1],D=A;;){for(;E!==c;)R.push(E),E=k(R[R.length-2],E,!1);if(b[0][c].length+b[1][c].length===0)break;var N=R[R.length-1],I=c,F=R[1],L=k(N,I,!0);if(l(f[N],f[I],f[F],f[L])<0)break;R.push(c),E=k(N,I)}return R}function x(c,A){return A[1]===A[A.length-1]}for(var m=0;m0;){var _=b[0][m].length,g=S(m,T);x(d,g)?d.push.apply(d,g):(d.length>0&&M.push(d),d=g)}d.length>0&&M.push(d)}return M}},5609:function(a,o,i){"use strict";a.exports=u;var l=i(3134);function u(s,f){for(var v=l(s,f.length),p=new Array(f.length),b=new Array(f.length),m=[],w=0;w0;){var y=m.pop();p[y]=!1;for(var k=v[y],w=0;w0}_=_.filter(g);for(var c=_.length,A=new Array(c),h=new Array(c),d=0;d0;){var H=ee.pop(),te=$[H];p(te,function(ve,Te){return ve-Te});var ue=te.length,de=V[H],ke;if(de===0){var F=_[H];ke=[F]}for(var d=0;d=0)&&(V[Ae]=de^1,ee.push(Ae),de===0)){var F=_[Ae];ie(F)||(F.reverse(),ke.push(F))}}de===0&&re.push(ke)}return re}},5085:function(a,o,i){a.exports=k;var l=i(3250)[3],u=i(4209),s=i(3352),f=i(2478);function v(){return!0}function p(S){return function(x,T){var d=S[x];return d?!!d.queryPoint(T,v):!1}}function b(S){for(var x={},T=0;T0&&x[d]===T[0])_=S[d-1];else return 1;for(var g=1;_;){var c=_.key,A=l(T,c[0],c[1]);if(c[0][0]0)g=-1,_=_.right;else return 0;else if(A>0)_=_.left;else if(A<0)g=1,_=_.right;else return 0}return g}}function w(S){return 1}function M(S){return function(T){return S(T[0],T[1])?0:1}}function y(S,x){return function(d){return S(d[0],d[1])?0:x(d)}}function k(S){for(var x=S.length,T=[],d=[],_=0,g=0;g=w?(c=1,h=w+2*k+x):(c=-k/w,h=k*c+x)):(c=0,S>=0?(A=0,h=x):-S>=y?(A=1,h=y+2*S+x):(A=-S/y,h=S*A+x));else if(A<0)A=0,k>=0?(c=0,h=x):-k>=w?(c=1,h=w+2*k+x):(c=-k/w,h=k*c+x);else{var R=1/g;c*=R,A*=R,h=c*(w*c+M*A+2*k)+A*(M*c+y*A+2*S)+x}else{var E,D,N,I;c<0?(E=M+k,D=y+S,D>E?(N=D-E,I=w-2*M+y,N>=I?(c=1,A=0,h=w+2*k+x):(c=N/I,A=1-c,h=c*(w*c+M*A+2*k)+A*(M*c+y*A+2*S)+x)):(c=0,D<=0?(A=1,h=y+2*S+x):S>=0?(A=0,h=x):(A=-S/y,h=S*A+x))):A<0?(E=M+S,D=w+k,D>E?(N=D-E,I=w-2*M+y,N>=I?(A=1,c=0,h=y+2*S+x):(A=N/I,c=1-A,h=c*(w*c+M*A+2*k)+A*(M*c+y*A+2*S)+x)):(A=0,D<=0?(c=1,h=w+2*k+x):k>=0?(c=0,h=x):(c=-k/w,h=k*c+x))):(N=y+S-M-k,N<=0?(c=0,A=1,h=y+2*S+x):(I=w-2*M+y,N>=I?(c=1,A=0,h=w+2*k+x):(c=N/I,A=1-c,h=c*(w*c+M*A+2*k)+A*(M*c+y*A+2*S)+x)))}for(var F=1-c-A,m=0;m0){var y=v[b-1];if(l(w,y)===0&&s(y)!==M){b-=1;continue}}v[b++]=w}}return v.length=b,v}},3233:function(a){"use strict";var o="",i;a.exports=l;function l(u,s){if(typeof u!="string")throw new TypeError("expected a string");if(s===1)return u;if(s===2)return u+u;var f=u.length*s;if(i!==u||typeof i=="undefined")i=u,o="";else if(o.length>=f)return o.substr(0,f);for(;f>o.length&&s>1;)s&1&&(o+=u),s>>=1,u+=u;return o+=u,o=o.substr(0,f),o}},3025:function(a,o,i){a.exports=i.g.performance&&i.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004:function(a){"use strict";a.exports=o;function o(i){for(var l=i.length,u=i[i.length-1],s=l,f=l-2;f>=0;--f){var v=u,p=i[f];u=v+p;var b=u-v,m=p-b;m&&(i[--s]=u,u=m)}for(var w=0,f=s;f0){if(D<=0)return N;I=E+D}else if(E<0){if(D>=0)return N;I=-(E+D)}else return N;var F=b*I;return N>=F||N<=-F?N:S(A,h,R)},function(A,h,R,E){var D=A[0]-E[0],N=h[0]-E[0],I=R[0]-E[0],F=A[1]-E[1],L=h[1]-E[1],P=R[1]-E[1],O=A[2]-E[2],U=h[2]-E[2],X=R[2]-E[2],$=N*P,j=I*L,Y=I*F,q=D*P,Q=D*L,ne=N*F,K=O*($-j)+U*(Y-q)+X*(Q-ne),ie=(Math.abs($)+Math.abs(j))*Math.abs(O)+(Math.abs(Y)+Math.abs(q))*Math.abs(U)+(Math.abs(Q)+Math.abs(ne))*Math.abs(X),ee=m*ie;return K>ee||-K>ee?K:x(A,h,R,E)}];function d(c){var A=T[c.length];return A||(A=T[c.length]=k(c.length)),A.apply(void 0,c)}function _(c,A,h,R,E,D,N){return function(F,L,P,O,U){switch(arguments.length){case 0:case 1:return 0;case 2:return R(F,L);case 3:return E(F,L,P);case 4:return D(F,L,P,O);case 5:return N(F,L,P,O,U)}for(var X=new Array(arguments.length),$=0;$0&&w>0||m<0&&w<0)return!1;var M=l(p,f,v),y=l(b,f,v);return M>0&&y>0||M<0&&y<0?!1:m===0&&w===0&&M===0&&y===0?u(f,v,p,b):!0}},8545:function(a){"use strict";a.exports=i;function o(l,u){var s=l+u,f=s-l,v=s-f,p=u-f,b=l-v,m=b+p;return m?[m,s]:[s]}function i(l,u){var s=l.length|0,f=u.length|0;if(s===1&&f===1)return o(l[0],-u[0]);var v=s+f,p=new Array(v),b=0,m=0,w=0,M=Math.abs,y=l[m],k=M(y),S=-u[w],x=M(S),T,d;k=f?(T=y,m+=1,m=f?(T=y,m+=1,m>1,S=v[2*k+1];if(S===w)return k;w>1,S=v[2*k+1];if(S===w)return k;w>1,S=v[2*k+1];if(S===w)return k;w>1,S=v[2*k+1];if(S===w)return k;w>1,I=b(A[N],h);I<=0?(I===0&&(D=N),R=N+1):I>0&&(E=N-1)}return D}l=y;function k(A,h){for(var R=new Array(A.length),E=0,D=R.length;E=A.length||b(A[$],N)!==0););}return R}l=k;function S(A,h){if(!h)return k(M(T(A,0)),A,0);for(var R=new Array(h),E=0;E>>P&1&&L.push(D[P]);h.push(L)}return w(h)}l=x;function T(A,h){if(h<0)return[];for(var R=[],E=(1<0)-(s<0)},o.abs=function(s){var f=s>>i-1;return(s^f)-f},o.min=function(s,f){return f^(s^f)&-(s65535)<<4,s>>>=f,v=(s>255)<<3,s>>>=v,f|=v,v=(s>15)<<2,s>>>=v,f|=v,v=(s>3)<<1,s>>>=v,f|=v,f|s>>1},o.log10=function(s){return s>=1e9?9:s>=1e8?8:s>=1e7?7:s>=1e6?6:s>=1e5?5:s>=1e4?4:s>=1e3?3:s>=100?2:s>=10?1:0},o.popCount=function(s){return s=s-(s>>>1&1431655765),s=(s&858993459)+(s>>>2&858993459),(s+(s>>>4)&252645135)*16843009>>>24};function l(s){var f=32;return s&=-s,s&&f--,s&65535&&(f-=16),s&16711935&&(f-=8),s&252645135&&(f-=4),s&858993459&&(f-=2),s&1431655765&&(f-=1),f}o.countTrailingZeros=l,o.nextPow2=function(s){return s+=s===0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1},o.prevPow2=function(s){return s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s-(s>>>1)},o.parity=function(s){return s^=s>>>16,s^=s>>>8,s^=s>>>4,s&=15,27030>>>s&1};var u=new Array(256);(function(s){for(var f=0;f<256;++f){var v=f,p=f,b=7;for(v>>>=1;v;v>>>=1)p<<=1,p|=v&1,--b;s[f]=p<>>8&255]<<16|u[s>>>16&255]<<8|u[s>>>24&255]},o.interleave2=function(s,f){return s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,s|f<<1},o.deinterleave2=function(s,f){return s=s>>>f&1431655765,s=(s|s>>>1)&858993459,s=(s|s>>>2)&252645135,s=(s|s>>>4)&16711935,s=(s|s>>>16)&65535,s<<16>>16},o.interleave3=function(s,f,v){return s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,s|=f<<1,v&=1023,v=(v|v<<16)&4278190335,v=(v|v<<8)&251719695,v=(v|v<<4)&3272356035,v=(v|v<<2)&1227133513,s|v<<2},o.deinterleave3=function(s,f){return s=s>>>f&1227133513,s=(s|s>>>2)&3272356035,s=(s|s>>>4)&251719695,s=(s|s>>>8)&4278190335,s=(s|s>>>16)&1023,s<<22>>22},o.nextCombination=function(s){var f=s|s-1;return f+1|(~f&-~f)-1>>>l(s)+1}},2014:function(a,o,i){"use strict";"use restrict";var l=i(3105),u=i(4623);function s(c){for(var A=0,h=Math.max,R=0,E=c.length;R>1,N=p(c[D],A);N<=0?(N===0&&(E=D),h=D+1):N>0&&(R=D-1)}return E}o.findCell=M;function y(c,A){for(var h=new Array(c.length),R=0,E=h.length;R=c.length||p(c[X],D)!==0););}return h}o.incidence=y;function k(c,A){if(!A)return y(w(x(c,0)),c,0);for(var h=new Array(A),R=0;R>>L&1&&F.push(E[L]);A.push(F)}return m(A)}o.explode=S;function x(c,A){if(A<0)return[];for(var h=[],R=(1<>1:(q>>1)-1}function R(q){for(var Q=A(q);;){var ne=Q,K=2*q+1,ie=2*(q+1),ee=q;if(K0;){var ne=h(q);if(ne>=0){var K=A(ne);if(Q0){var q=F[0];return c(0,O-1),O-=1,R(0),q}return-1}function N(q,Q){var ne=F[q];return k[ne]===Q?q:(k[ne]=-1/0,E(q),D(),k[ne]=Q,O+=1,E(O-1))}function I(q){if(!S[q]){S[q]=!0;var Q=M[q],ne=y[q];M[ne]>=0&&(M[ne]=Q),y[Q]>=0&&(y[Q]=ne),L[Q]>=0&&N(L[Q],g(Q)),L[ne]>=0&&N(L[ne],g(ne))}}for(var F=[],L=new Array(m),x=0;x>1;x>=0;--x)R(x);for(;;){var U=D();if(U<0||k[U]>b)break;I(U)}for(var X=[],x=0;x=0&&ne>=0&&Q!==ne){var K=L[Q],ie=L[ne];K!==ie&&Y.push([K,ie])}}),u.unique(u.normalize(Y)),{positions:X,edges:Y}}},1303:function(a,o,i){"use strict";a.exports=s;var l=i(3250);function u(f,v){var p,b;if(v[0][0]v[1][0])p=v[1],b=v[0];else{var m=Math.min(f[0][1],f[1][1]),w=Math.max(f[0][1],f[1][1]),M=Math.min(v[0][1],v[1][1]),y=Math.max(v[0][1],v[1][1]);return wy?m-y:w-y}var k,S;f[0][1]v[1][0])p=v[1],b=v[0];else return u(v,f);var m,w;if(f[0][0]f[1][0])m=f[1],w=f[0];else return-u(f,v);var M=l(p,b,w),y=l(p,b,m);if(M<0){if(y<=0)return M}else if(M>0){if(y>=0)return M}else if(y)return y;if(M=l(w,m,b),y=l(w,m,p),M<0){if(y<=0)return M}else if(M>0){if(y>=0)return M}else if(y)return y;return b[0]-w[0]}},4209:function(a,o,i){"use strict";a.exports=y;var l=i(2478),u=i(3840),s=i(3250),f=i(1303);function v(k,S,x){this.slabs=k,this.coordinates=S,this.horizontal=x}var p=v.prototype;function b(k,S){return k.y-S}function m(k,S){for(var x=null;k;){var T=k.key,d,_;T[0][0]0)if(S[0]!==T[1][0])x=k,k=k.right;else{var c=m(k.right,S);if(c)return c;k=k.left}else{if(S[0]!==T[1][0])return k;var c=m(k.right,S);if(c)return c;k=k.left}}return x}p.castUp=function(k){var S=l.le(this.coordinates,k[0]);if(S<0)return-1;var x=this.slabs[S],T=m(this.slabs[S],k),d=-1;if(T&&(d=T.value),this.coordinates[S]===k[0]){var _=null;if(T&&(_=T.key),S>0){var g=m(this.slabs[S-1],k);g&&(_?f(g.key,_)>0&&(_=g.key,d=g.value):(d=g.value,_=g.key))}var c=this.horizontal[S];if(c.length>0){var A=l.ge(c,k[1],b);if(A=c.length)return d;h=c[A]}}if(h.start)if(_){var R=s(_[0],_[1],[k[0],h.y]);_[0][0]>_[1][0]&&(R=-R),R>0&&(d=h.index)}else d=h.index;else h.y!==k[1]&&(d=h.index)}}}return d};function w(k,S,x,T){this.y=k,this.index=S,this.start=x,this.closed=T}function M(k,S,x,T){this.x=k,this.segment=S,this.create=x,this.index=T}function y(k){for(var S=k.length,x=2*S,T=new Array(x),d=0;d1&&(S=1);for(var x=1-S,T=m.length,d=new Array(T),_=0;_0||k>0&&d<0){var _=f(S,d,x,k);M.push(_),y.push(_.slice())}d<0?y.push(x.slice()):d>0?M.push(x.slice()):(M.push(x.slice()),y.push(x.slice())),k=d}return{positive:M,negative:y}}function p(m,w){for(var M=[],y=s(m[m.length-1],w),k=m[m.length-1],S=m[0],x=0;x0||y>0&&T<0)&&M.push(f(k,T,S,y)),T>=0&&M.push(S.slice()),y=T}return M}function b(m,w){for(var M=[],y=s(m[m.length-1],w),k=m[m.length-1],S=m[0],x=0;x0||y>0&&T<0)&&M.push(f(k,T,S,y)),T<=0&&M.push(S.slice()),y=T}return M}},3387:function(a,o,i){var l;(function(){"use strict";var u={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function s(m){return v(b(m),arguments)}function f(m,w){return s.apply(null,[m].concat(w||[]))}function v(m,w){var M=1,y=m.length,k,S="",x,T,d,_,g,c,A,h;for(x=0;x=0),d.type){case"b":k=parseInt(k,10).toString(2);break;case"c":k=String.fromCharCode(parseInt(k,10));break;case"d":case"i":k=parseInt(k,10);break;case"j":k=JSON.stringify(k,null,d.width?parseInt(d.width):0);break;case"e":k=d.precision?parseFloat(k).toExponential(d.precision):parseFloat(k).toExponential();break;case"f":k=d.precision?parseFloat(k).toFixed(d.precision):parseFloat(k);break;case"g":k=d.precision?String(Number(k.toPrecision(d.precision))):parseFloat(k);break;case"o":k=(parseInt(k,10)>>>0).toString(8);break;case"s":k=String(k),k=d.precision?k.substring(0,d.precision):k;break;case"t":k=String(!!k),k=d.precision?k.substring(0,d.precision):k;break;case"T":k=Object.prototype.toString.call(k).slice(8,-1).toLowerCase(),k=d.precision?k.substring(0,d.precision):k;break;case"u":k=parseInt(k,10)>>>0;break;case"v":k=k.valueOf(),k=d.precision?k.substring(0,d.precision):k;break;case"x":k=(parseInt(k,10)>>>0).toString(16);break;case"X":k=(parseInt(k,10)>>>0).toString(16).toUpperCase();break}u.json.test(d.type)?S+=k:(u.number.test(d.type)&&(!A||d.sign)?(h=A?"+":"-",k=k.toString().replace(u.sign,"")):h="",g=d.pad_char?d.pad_char==="0"?"0":d.pad_char.charAt(1):" ",c=d.width-(h+k).length,_=d.width&&c>0?g.repeat(c):"",S+=d.align?h+k+_:g==="0"?h+_+k:_+h+k)}return S}var p=Object.create(null);function b(m){if(p[m])return p[m];for(var w=m,M,y=[],k=0;w;){if((M=u.text.exec(w))!==null)y.push(M[0]);else if((M=u.modulo.exec(w))!==null)y.push("%");else if((M=u.placeholder.exec(w))!==null){if(M[2]){k|=1;var S=[],x=M[2],T=[];if((T=u.key.exec(x))!==null)for(S.push(T[1]);(x=x.substring(T[0].length))!=="";)if((T=u.key_access.exec(x))!==null)S.push(T[1]);else if((T=u.index_access.exec(x))!==null)S.push(T[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");M[2]=S}else k|=2;if(k===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");y.push({placeholder:M[0],param_no:M[1],keys:M[2],sign:M[3],pad_char:M[4],align:M[5],width:M[6],precision:M[7],type:M[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");w=w.substring(M[0].length)}return p[m]=y}o.sprintf=s,o.vsprintf=f,typeof window!="undefined"&&(window.sprintf=s,window.vsprintf=f,l=function(){return{sprintf:s,vsprintf:f}}.call(o,i,o,a),l!==void 0&&(a.exports=l))})()},3711:function(a,o,i){"use strict";a.exports=b;var l=i(2640),u=i(781),s={"2d":function(m,w,M){var y=m({order:w,scalarArguments:3,getters:M==="generic"?[0]:void 0,phase:function(S,x,T,d){return S>d|0},vertex:function(S,x,T,d,_,g,c,A,h,R,E,D,N){var I=(c<<0)+(A<<1)+(h<<2)+(R<<3)|0;if(!(I===0||I===15))switch(I){case 0:E.push([S-.5,x-.5]);break;case 1:E.push([S-.25-.25*(d+T-2*N)/(T-d),x-.25-.25*(_+T-2*N)/(T-_)]);break;case 2:E.push([S-.75-.25*(-d-T+2*N)/(d-T),x-.25-.25*(g+d-2*N)/(d-g)]);break;case 3:E.push([S-.5,x-.5-.5*(_+T+g+d-4*N)/(T-_+d-g)]);break;case 4:E.push([S-.25-.25*(g+_-2*N)/(_-g),x-.75-.25*(-_-T+2*N)/(_-T)]);break;case 5:E.push([S-.5-.5*(d+T+g+_-4*N)/(T-d+_-g),x-.5]);break;case 6:E.push([S-.5-.25*(-d-T+g+_)/(d-T+_-g),x-.5-.25*(-_-T+g+d)/(_-T+d-g)]);break;case 7:E.push([S-.75-.25*(g+_-2*N)/(_-g),x-.75-.25*(g+d-2*N)/(d-g)]);break;case 8:E.push([S-.75-.25*(-g-_+2*N)/(g-_),x-.75-.25*(-g-d+2*N)/(g-d)]);break;case 9:E.push([S-.5-.25*(d+T+-g-_)/(T-d+g-_),x-.5-.25*(_+T+-g-d)/(T-_+g-d)]);break;case 10:E.push([S-.5-.5*(-d-T+-g-_+4*N)/(d-T+g-_),x-.5]);break;case 11:E.push([S-.25-.25*(-g-_+2*N)/(g-_),x-.75-.25*(_+T-2*N)/(T-_)]);break;case 12:E.push([S-.5,x-.5-.5*(-_-T+-g-d+4*N)/(_-T+g-d)]);break;case 13:E.push([S-.75-.25*(d+T-2*N)/(T-d),x-.25-.25*(-g-d+2*N)/(g-d)]);break;case 14:E.push([S-.25-.25*(-d-T+2*N)/(d-T),x-.25-.25*(-_-T+2*N)/(_-T)]);break;case 15:E.push([S-.5,x-.5]);break}},cell:function(S,x,T,d,_,g,c,A,h){_?A.push([S,x]):A.push([x,S])}});return function(k,S){var x=[],T=[];return y(k,x,T,S),{positions:x,cells:T}}}};function f(m,w){var M=m.length+"d",y=s[M];if(y)return y(l,m,w)}function v(m,w){for(var M=u(m,w),y=M.length,k=new Array(y),S=new Array(y),x=0;xMath.max(d,_)?g[2]=1:d>Math.max(T,_)?g[0]=1:g[1]=1;for(var c=0,A=0,h=0;h<3;++h)c+=x[h]*x[h],A+=g[h]*x[h];for(var h=0;h<3;++h)g[h]-=A/c*x[h];return v(g,g),g}function M(x,T,d,_,g,c,A,h){this.center=l(d),this.up=l(_),this.right=l(g),this.radius=l([c]),this.angle=l([A,h]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(x,T),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var R=0;R<16;++R)this.computedMatrix[R]=.5;this.recalcMatrix(0)}var y=M.prototype;y.setDistanceLimits=function(x,T){x>0?x=Math.log(x):x=-1/0,T>0?T=Math.log(T):T=1/0,T=Math.max(T,x),this.radius.bounds[0][0]=x,this.radius.bounds[1][0]=T},y.getDistanceLimits=function(x){var T=this.radius.bounds[0];return x?(x[0]=Math.exp(T[0][0]),x[1]=Math.exp(T[1][0]),x):[Math.exp(T[0][0]),Math.exp(T[1][0])]},y.recalcMatrix=function(x){this.center.curve(x),this.up.curve(x),this.right.curve(x),this.radius.curve(x),this.angle.curve(x);for(var T=this.computedUp,d=this.computedRight,_=0,g=0,c=0;c<3;++c)g+=T[c]*d[c],_+=T[c]*T[c];for(var A=Math.sqrt(_),h=0,c=0;c<3;++c)d[c]-=T[c]*g/_,h+=d[c]*d[c],T[c]/=A;for(var R=Math.sqrt(h),c=0;c<3;++c)d[c]/=R;var E=this.computedToward;f(E,T,d),v(E,E);for(var D=Math.exp(this.computedRadius[0]),N=this.computedAngle[0],I=this.computedAngle[1],F=Math.cos(N),L=Math.sin(N),P=Math.cos(I),O=Math.sin(I),U=this.computedCenter,X=F*P,$=L*P,j=O,Y=-F*O,q=-L*O,Q=P,ne=this.computedEye,K=this.computedMatrix,c=0;c<3;++c){var ie=X*d[c]+$*E[c]+j*T[c];K[4*c+1]=Y*d[c]+q*E[c]+Q*T[c],K[4*c+2]=ie,K[4*c+3]=0}var ee=K[1],V=K[5],re=K[9],H=K[2],te=K[6],ue=K[10],de=V*ue-re*te,ke=re*H-ee*ue,Ae=ee*te-V*H,ve=b(de,ke,Ae);de/=ve,ke/=ve,Ae/=ve,K[0]=de,K[4]=ke,K[8]=Ae;for(var c=0;c<3;++c)ne[c]=U[c]+K[2+4*c]*D;for(var c=0;c<3;++c){for(var h=0,Te=0;Te<3;++Te)h+=K[c+4*Te]*ne[Te];K[12+c]=-h}K[15]=1},y.getMatrix=function(x,T){this.recalcMatrix(x);var d=this.computedMatrix;if(T){for(var _=0;_<16;++_)T[_]=d[_];return T}return d};var k=[0,0,0];y.rotate=function(x,T,d,_){if(this.angle.move(x,T,d),_){this.recalcMatrix(x);var g=this.computedMatrix;k[0]=g[2],k[1]=g[6],k[2]=g[10];for(var c=this.computedUp,A=this.computedRight,h=this.computedToward,R=0;R<3;++R)g[4*R]=c[R],g[4*R+1]=A[R],g[4*R+2]=h[R];s(g,g,_,k);for(var R=0;R<3;++R)c[R]=g[4*R],A[R]=g[4*R+1];this.up.set(x,c[0],c[1],c[2]),this.right.set(x,A[0],A[1],A[2])}},y.pan=function(x,T,d,_){T=T||0,d=d||0,_=_||0,this.recalcMatrix(x);var g=this.computedMatrix,c=Math.exp(this.computedRadius[0]),A=g[1],h=g[5],R=g[9],E=b(A,h,R);A/=E,h/=E,R/=E;var D=g[0],N=g[4],I=g[8],F=D*A+N*h+I*R;D-=A*F,N-=h*F,I-=R*F;var L=b(D,N,I);D/=L,N/=L,I/=L;var P=D*T+A*d,O=N*T+h*d,U=I*T+R*d;this.center.move(x,P,O,U);var X=Math.exp(this.computedRadius[0]);X=Math.max(1e-4,X+_),this.radius.set(x,Math.log(X))},y.translate=function(x,T,d,_){this.center.move(x,T||0,d||0,_||0)},y.setMatrix=function(x,T,d,_){var g=1;typeof d=="number"&&(g=d|0),(g<0||g>3)&&(g=1);var c=(g+2)%3,A=(g+1)%3;T||(this.recalcMatrix(x),T=this.computedMatrix);var h=T[g],R=T[g+4],E=T[g+8];if(_){var N=Math.abs(h),I=Math.abs(R),F=Math.abs(E),L=Math.max(N,I,F);N===L?(h=h<0?-1:1,R=E=0):F===L?(E=E<0?-1:1,h=R=0):(R=R<0?-1:1,h=E=0)}else{var D=b(h,R,E);h/=D,R/=D,E/=D}var P=T[c],O=T[c+4],U=T[c+8],X=P*h+O*R+U*E;P-=h*X,O-=R*X,U-=E*X;var $=b(P,O,U);P/=$,O/=$,U/=$;var j=R*U-E*O,Y=E*P-h*U,q=h*O-R*P,Q=b(j,Y,q);j/=Q,Y/=Q,q/=Q,this.center.jump(x,Be,ge,we),this.radius.idle(x),this.up.jump(x,h,R,E),this.right.jump(x,P,O,U);var ne,K;if(g===2){var ie=T[1],ee=T[5],V=T[9],re=ie*P+ee*O+V*U,H=ie*j+ee*Y+V*q;ke<0?ne=-Math.PI/2:ne=Math.PI/2,K=Math.atan2(H,re)}else{var te=T[2],ue=T[6],de=T[10],ke=te*h+ue*R+de*E,Ae=te*P+ue*O+de*U,ve=te*j+ue*Y+de*q;ne=Math.asin(m(ke)),K=Math.atan2(ve,Ae)}this.angle.jump(x,K,ne),this.recalcMatrix(x);var Te=T[2],Ee=T[6],Pe=T[10],Se=this.computedMatrix;u(Se,T);var Ne=Se[15],Be=Se[12]/Ne,ge=Se[13]/Ne,we=Se[14]/Ne,Me=Math.exp(this.computedRadius[0]);this.center.jump(x,Be-Te*Me,ge-Ee*Me,we-Pe*Me)},y.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},y.idle=function(x){this.center.idle(x),this.up.idle(x),this.right.idle(x),this.radius.idle(x),this.angle.idle(x)},y.flush=function(x){this.center.flush(x),this.up.flush(x),this.right.flush(x),this.radius.flush(x),this.angle.flush(x)},y.setDistance=function(x,T){T>0&&this.radius.set(x,Math.log(T))},y.lookAt=function(x,T,d,_){this.recalcMatrix(x),T=T||this.computedEye,d=d||this.computedCenter,_=_||this.computedUp;var g=_[0],c=_[1],A=_[2],h=b(g,c,A);if(!(h<1e-6)){g/=h,c/=h,A/=h;var R=T[0]-d[0],E=T[1]-d[1],D=T[2]-d[2],N=b(R,E,D);if(!(N<1e-6)){R/=N,E/=N,D/=N;var I=this.computedRight,F=I[0],L=I[1],P=I[2],O=g*F+c*L+A*P;F-=O*g,L-=O*c,P-=O*A;var U=b(F,L,P);if(!(U<.01&&(F=c*D-A*E,L=A*R-g*D,P=g*E-c*R,U=b(F,L,P),U<1e-6))){F/=U,L/=U,P/=U,this.up.set(x,g,c,A),this.right.set(x,F,L,P),this.center.set(x,d[0],d[1],d[2]),this.radius.set(x,Math.log(N));var X=c*P-A*L,$=A*F-g*P,j=g*L-c*F,Y=b(X,$,j);X/=Y,$/=Y,j/=Y;var q=g*R+c*E+A*D,Q=F*R+L*E+P*D,ne=X*R+$*E+j*D,K=Math.asin(m(q)),ie=Math.atan2(ne,Q),ee=this.angle._state,V=ee[ee.length-1],re=ee[ee.length-2];V=V%(2*Math.PI);var H=Math.abs(V+2*Math.PI-ie),te=Math.abs(V-ie),ue=Math.abs(V-2*Math.PI-ie);H0?P.pop():new ArrayBuffer(F)}o.mallocArrayBuffer=k;function S(I){return new Uint8Array(k(I),0,I)}o.mallocUint8=S;function x(I){return new Uint16Array(k(2*I),0,I)}o.mallocUint16=x;function T(I){return new Uint32Array(k(4*I),0,I)}o.mallocUint32=T;function d(I){return new Int8Array(k(I),0,I)}o.mallocInt8=d;function _(I){return new Int16Array(k(2*I),0,I)}o.mallocInt16=_;function g(I){return new Int32Array(k(4*I),0,I)}o.mallocInt32=g;function c(I){return new Float32Array(k(4*I),0,I)}o.mallocFloat32=o.mallocFloat=c;function A(I){return new Float64Array(k(8*I),0,I)}o.mallocFloat64=o.mallocDouble=A;function h(I){return f?new Uint8ClampedArray(k(I),0,I):S(I)}o.mallocUint8Clamped=h;function R(I){return v?new BigUint64Array(k(8*I),0,I):null}o.mallocBigUint64=R;function E(I){return p?new BigInt64Array(k(8*I),0,I):null}o.mallocBigInt64=E;function D(I){return new DataView(k(I),0,I)}o.mallocDataView=D;function N(I){I=l.nextPow2(I);var F=l.log2(I),L=w[F];return L.length>0?L.pop():new s(I)}o.mallocBuffer=N,o.clearCache=function(){for(var F=0;F<32;++F)b.UINT8[F].length=0,b.UINT16[F].length=0,b.UINT32[F].length=0,b.INT8[F].length=0,b.INT16[F].length=0,b.INT32[F].length=0,b.FLOAT[F].length=0,b.DOUBLE[F].length=0,b.BIGUINT64[F].length=0,b.BIGINT64[F].length=0,b.UINT8C[F].length=0,m[F].length=0,w[F].length=0}},1755:function(a){"use strict";"use restrict";a.exports=o;function o(l){this.roots=new Array(l),this.ranks=new Array(l);for(var u=0;u",P="",O=L.length,U=P.length,X=N[0]===k||N[0]===T,$=0,j=-U;$>-1&&($=I.indexOf(L,$),!($===-1||(j=I.indexOf(P,$+O),j===-1)||j<=$));){for(var Y=$;Y=j)F[Y]=null,I=I.substr(0,Y)+" "+I.substr(Y+1);else if(F[Y]!==null){var q=F[Y].indexOf(N[0]);q===-1?F[Y]+=N:X&&(F[Y]=F[Y].substr(0,q+1)+(1+parseInt(F[Y][q+1]))+F[Y].substr(q+2))}var Q=$+O,ne=I.substr(Q,j-Q),K=ne.indexOf(L);K!==-1?$=K:$=j+U}return F}function g(D,N,I){for(var F=N.textAlign||"start",L=N.textBaseline||"alphabetic",P=[1<<30,1<<30],O=[0,0],U=D.length,X=0;X/g,` `):I=I.replace(/\/g," ");var O="",U=[];for(V=0;V-1?parseInt(ge[1+ye]):0,de=Le>-1?parseInt(Me[1+Le]):0;me!==de&&(ce=ce.replace(Se(),"?px "),te*=Math.pow(.75,de-me),ce=ce.replace("?px ",Se())),H+=.25*q*(de-me)}if(P.superscripts===!0){var be=ge.indexOf(k),Ae=Me.indexOf(k),qe=be>-1?parseInt(ge[1+be]):0,Pe=Ae>-1?parseInt(Me[1+Ae]):0;qe!==Pe&&(ce=ce.replace(Se(),"?px "),te*=Math.pow(.75,Pe-qe),ce=ce.replace("?px ",Se())),H-=.25*q*(Pe-qe)}if(P.bolds===!0){var Ze=ge.indexOf(m)>-1,Ye=Me.indexOf(m)>-1;!Ze&&Ye&&(Ge?ce=ce.replace("italic ","italic bold "):ce="bold "+ce),Ze&&!Ye&&(ce=ce.replace("bold ",""))}if(P.italics===!0){var Ge=ge.indexOf(M)>-1,We=Me.indexOf(M)>-1;!Ge&&We&&(ce="italic "+ce),Ge&&!We&&(ce=ce.replace("italic ",""))}N.font=ce}for(ee=0;ee0&&(L=F.size),F.lineSpacing&&F.lineSpacing>0&&(P=F.lineSpacing),F.styletags&&F.styletags.breaklines&&(O.breaklines=!!F.styletags.breaklines),F.styletags&&F.styletags.bolds&&(O.bolds=!!F.styletags.bolds),F.styletags&&F.styletags.italics&&(O.italics=!!F.styletags.italics),F.styletags&&F.styletags.subscripts&&(O.subscripts=!!F.styletags.subscripts),F.styletags&&F.styletags.superscripts&&(O.superscripts=!!F.styletags.superscripts)),I.font=[F.fontStyle,F.fontVariant,F.fontWeight,L+"px",F.font].filter(function(X){return X}).join(" "),I.textAlign="start",I.textBaseline="alphabetic",I.direction="ltr";var U=c(N,I,D,L,P,O);return R(U,F,L)}},1538:function(a){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function i(h){h.permitHostObjects___&&h.permitHostObjects___(i)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=i);var l=!1;if(typeof WeakMap=="function"){var u=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var s=new u,f=Object.freeze({});if(s.set(f,1),s.get(f)!==1)l=!0;else{a.exports=WeakMap;return}}}var v=Object.prototype.hasOwnProperty,p=Object.getOwnPropertyNames,b=Object.defineProperty,m=Object.isExtensible,w="weakmap:",M=w+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var y=new ArrayBuffer(25),k=new Uint8Array(y);crypto.getRandomValues(k),M=w+"rand:"+Array.prototype.map.call(k,function(h){return(h%36).toString(36)}).join("")+"___"}function S(h){return!(h.substr(0,w.length)==w&&h.substr(h.length-3)==="___")}if(b(Object,"getOwnPropertyNames",{value:function(R){return p(R).filter(S)}}),"getPropertyNames"in Object){var x=Object.getPropertyNames;b(Object,"getPropertyNames",{value:function(R){return x(R).filter(S)}})}function T(h){if(h!==Object(h))throw new TypeError("Not an object: "+h);var R=h[M];if(R&&R.key===h)return R;if(m(h)){R={key:h};try{return b(h,M,{value:R,writable:!1,enumerable:!1,configurable:!1}),R}catch(E){return}}}(function(){var h=Object.freeze;b(Object,"freeze",{value:function(N){return T(N),h(N)}});var R=Object.seal;b(Object,"seal",{value:function(N){return T(N),R(N)}});var E=Object.preventExtensions;b(Object,"preventExtensions",{value:function(N){return T(N),E(N)}})})();function d(h){return h.prototype=null,Object.freeze(h)}var _=!1;function g(){!_&&typeof console!="undefined"&&(_=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var c=0,A=function(){this instanceof A||g();var h=[],R=[],E=c++;function D(L,P){var O,U=T(L);return U?E in U?U[E]:P:(O=h.indexOf(L),O>=0?R[O]:P)}function N(L){var P=T(L);return P?E in P:h.indexOf(L)>=0}function I(L,P){var O,U=T(L);return U?U[E]=P:(O=h.indexOf(L),O>=0?R[O]=P:(O=h.length,R[O]=P,h[O]=L)),this}function F(L){var P=T(L),O,U;return P?E in P&&delete P[E]:(O=h.indexOf(L),O<0?!1:(U=h.length-1,h[O]=void 0,R[O]=R[U],h[O]=h[U],h.length=U,R.length=U,!0))}return Object.create(A.prototype,{get___:{value:d(D)},has___:{value:d(N)},set___:{value:d(I)},delete___:{value:d(F)}})};A.prototype=Object.create(Object.prototype,{get:{value:function(R,E){return this.get___(R,E)},writable:!0,configurable:!0},has:{value:function(R){return this.has___(R)},writable:!0,configurable:!0},set:{value:function(R,E){return this.set___(R,E)},writable:!0,configurable:!0},delete:{value:function(R){return this.delete___(R)},writable:!0,configurable:!0}}),typeof u=="function"?function(){l&&typeof Proxy!="undefined"&&(Proxy=void 0);function h(){this instanceof A||g();var R=new u,E=void 0,D=!1;function N(P,O){return E?R.has(P)?R.get(P):E.get___(P,O):R.get(P,O)}function I(P){return R.has(P)||(E?E.has___(P):!1)}var F;l?F=function(P,O){return R.set(P,O),R.has(P)||(E||(E=new A),E.set(P,O)),this}:F=function(P,O){if(D)try{R.set(P,O)}catch(U){E||(E=new A),E.set___(P,O)}else R.set(P,O);return this};function L(P){var O=!!R.delete(P);return E&&E.delete___(P)||O}return Object.create(A.prototype,{get___:{value:d(N)},has___:{value:d(I)},set___:{value:d(F)},delete___:{value:d(L)},permitHostObjects___:{value:d(function(P){if(P===i)D=!0;else throw new Error("bogus call to permitHostObjects___")})}})}h.prototype=A.prototype,a.exports=h,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy!="undefined"&&(Proxy=void 0),a.exports=A)})()},236:function(a,o,i){var l=i(8284);a.exports=u;function u(){var s={};return function(f){if((typeof f!="object"||f===null)&&typeof f!="function")throw new Error("Weakmap-shim: Key must be object");var v=f.valueOf(s);return v&&v.identity===s?v:l(f,s)}}},8284:function(a){a.exports=o;function o(i,l){var u={identity:l},s=i.valueOf;return Object.defineProperty(i,"valueOf",{value:function(f){return f!==l?s.apply(this,arguments):u},writable:!0}),u}},606:function(a,o,i){var l=i(236);a.exports=u;function u(){var s=l();return{get:function(f,v){var p=s(f);return p.hasOwnProperty("value")?p.value:v},set:function(f,v){return s(f).value=v,this},has:function(f){return"value"in s(f)},delete:function(f){return delete s(f).value}}}},3349:function(a){"use strict";function o(){return function(v,p,b,m,w,M){var y=v[0],k=b[0],S=[0],x=k;m|=0;var T=0,d=k;for(T=0;T=0!=g>=0&&w.push(S[0]+.5+.5*(_+g)/(_-g))}m+=d,++S[0]}}}function i(){return o()}var l=i;function u(v){var p={};return function(m,w,M){var y=m.dtype,k=m.order,S=[y,k.join()].join(),x=p[S];return x||(p[S]=x=v([y,k])),x(m.shape.slice(0),m.data,m.stride,m.offset|0,w,M)}}function s(v){return u(l.bind(void 0,v))}function f(v){return s({funcName:v.funcName})}a.exports=f({funcName:"zeroCrossings"})},781:function(a,o,i){"use strict";a.exports=u;var l=i(3349);function u(s,f){var v=[];return f=+f||0,l(s.hi(s.shape[0]-1),v,f),v}},7790:function(){}},r={};function t(a){var o=r[a];if(o!==void 0)return o.exports;var i=r[a]={id:a,loaded:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}(function(){t.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(a){if(typeof window=="object")return window}}()})(),function(){t.nmd=function(a){return a.paths=[],a.children||(a.children=[]),a}}();var n=t(1964);MF.exports=n})()});var AF=pe((mde,TF)=>{"use strict";TF.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var EF=pe((xde,CF)=>{"use strict";var kF=AF();CF.exports=rie;var SF={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function rie(e){var r,t=[],n=1,a;if(typeof e=="string")if(e=e.toLowerCase(),kF[e])t=kF[e].slice(),a="rgb";else if(e==="transparent")n=0,a="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var o=e.slice(1),i=o.length,l=i<=4;n=1,l?(t=[parseInt(o[0]+o[0],16),parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16)],i===4&&(n=parseInt(o[3]+o[3],16)/255)):(t=[parseInt(o[0]+o[1],16),parseInt(o[2]+o[3],16),parseInt(o[4]+o[5],16)],i===8&&(n=parseInt(o[6]+o[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),a="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var u=r[1],s=u==="rgb",o=u.replace(/a$/,"");a=o;var i=o==="cmyk"?4:o==="gray"?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(p,b){if(/%$/.test(p))return b===i?parseFloat(p)/100:o==="rgb"?parseFloat(p)*255/100:parseFloat(p);if(o[b]==="h"){if(/deg$/.test(p))return parseFloat(p);if(SF[p]!==void 0)return SF[p]}return parseFloat(p)}),u===o&&t.push(1),n=s||t[i]===void 0?1:t[i],t=t.slice(0,i)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(t=e.match(/([0-9]+)/g).map(function(f){return parseFloat(f)}),a=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(t=[e[0],e[1],e[2]],a="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(a="rgb",t=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(a="hsl",t=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(a="rgb",t=[e>>>16,(e&65280)>>>8,e&255]);return{space:a,values:t,alpha:n}}});var RF=pe((bde,LF)=>{"use strict";var tie=EF();LF.exports=function(r){Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var t,n,a,o=tie(r);if(!o.space)return[];var i=[0,0,0],l=o.space[0]==="h"?[360,100,100]:[255,255,255];return t=Array(3),t[0]=Math.min(Math.max(o.values[0],i[0]),l[0]),t[1]=Math.min(Math.max(o.values[1],i[1]),l[1]),t[2]=Math.min(Math.max(o.values[2],i[2]),l[2]),o.space[0]==="h"&&(t=nie(t)),t.push(Math.min(Math.max(o.alpha,0),1)),t};function nie(e){var r=e[0]/360,t=e[1]/100,n=e[2]/100,a,o,i,l,u,s=0;if(t===0)return u=n*255,[u,u,u];for(o=n<.5?n*(1+t):n+t-n*t,a=2*n-o,l=[0,0,0];s<3;)i=r+1/3*-(s-1),i<0?i++:i>1&&i--,u=6*i<1?a+(o-a)*6*i:2*i<1?o:3*i<2?a+(o-a)*(2/3-i)*6:a,l[s++]=u*255;return l}});var PF=pe((_de,DF)=>{DF.exports=aie;function aie(e,r,t){return rt?t:e:er?r:e}});var IF=pe((wde,FF)=>{FF.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var M3=pe((Mde,NF)=>{"use strict";var iie=RF(),ad=PF(),oie=IF();NF.exports=function(r,t){(t==="float"||!t)&&(t="array"),t==="uint"&&(t="uint8"),t==="uint_clamped"&&(t="uint8_clamped");var n=oie(t),a=new n(4),o=t!=="uint8"&&t!=="uint8_clamped";return(!r.length||typeof r=="string")&&(r=iie(r),r[0]/=255,r[1]/=255,r[2]/=255),lie(r)?(a[0]=r[0],a[1]=r[1],a[2]=r[2],a[3]=r[3]!=null?r[3]:255,o&&(a[0]/=255,a[1]/=255,a[2]/=255,a[3]/=255),a):(o?(a[0]=r[0],a[1]=r[1],a[2]=r[2],a[3]=r[3]!=null?r[3]:1):(a[0]=ad(Math.floor(r[0]*255),0,255),a[1]=ad(Math.floor(r[1]*255),0,255),a[2]=ad(Math.floor(r[2]*255),0,255),a[3]=r[3]==null?255:ad(Math.floor(r[3]*255),0,255)),a)};function lie(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var po=pe((Tde,zF)=>{"use strict";var sie=M3();function uie(e){return e?sie(e):[0,0,0,1]}zF.exports=uie});var al=pe((Ade,GF)=>{"use strict";var HF=rt(),fie=ka(),id=M3(),od=Li(),cie=Ti().defaultLine,qF=jn().isArrayOrTypedArray,T3=id(cie),VF=1;function OF(e,r){var t=e;return t[3]*=r,t}function BF(e){if(HF(e))return T3;var r=id(e);return r.length?r:T3}function UF(e){return HF(e)?e:VF}function vie(e,r,t){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var a=qF(n),o=qF(r),i=od.extractOpts(e),l=[],u,s,f,v,p;if(i.colorscale!==void 0?u=od.makeColorScaleFuncFromTrace(e):u=BF,a?s=function(m,w){return m[w]===void 0?T3:id(u(m[w]))}:s=BF,o?f=function(m,w){return m[w]===void 0?VF:UF(m[w])}:f=UF,a||o)for(var b=0;b{"use strict";YF.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}});var ld=pe((Sde,WF)=>{"use strict";WF.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var ZF=pe((Cde,XF)=>{"use strict";var die=Er();function k3(e,r,t,n){if(!r||!r.visible)return null;for(var a=die.getComponentMethod("errorbars","makeComputeError")(r),o=new Array(e.length),i=0;i0){var v=n.c2l(s);n._lowerLogErrorBound||(n._lowerLogErrorBound=v),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,v)}}else o[i]=[-l[0]*t,l[1]*t]}return o}function pie(e){for(var r=0;r{"use strict";var yie=pn().gl_line3d,JF=pn().gl_scatter3d,mie=pn().gl_error3d,xie=pn().gl_mesh3d,bie=pn().delaunay_triangulate,go=ir(),eI=po(),sd=al().formatColor,_ie=kg(),S3=A3(),wie=ld(),Mie=St(),Tie=to().appendArrayPointValue,Aie=ZF();function rI(e,r){this.scene=e,this.uid=r,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var E3=rI.prototype;E3.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var r=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(go.isArrayOrTypedArray(this.textLabels)?(this.textLabels[r]||this.textLabels[r]===0)&&(e.textLabel=this.textLabels[r]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[r],this.data.y[r],this.data.z[r]],!0}};function kie(e,r,t){var n=(t+1)%3,a=(t+2)%3,o=[],i=[],l;for(l=0;l-1?-1:e.indexOf("right")>-1?1:0}function QF(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function Cie(e){var r=0,t=0,n=[r,t];if(Array.isArray(e))for(var a=0;a=0){var s=kie(l.position,l.delaunayColor,l.delaunayAxis);s.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(s):(s.gl=r,this.delaunayMesh=xie(s),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)};E3.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function Die(e,r){var t=new rI(e,r.uid);return t.update(r),t}tI.exports=Die});var F3=pe((Lde,oI)=>{"use strict";var yo=$l(),Pie=kn(),P3=ja(),L3=ro().axisHoverFormat,Fie=Sa().hovertemplateAttrs,Iie=Sa().texttemplateAttrs,aI=Sn(),Nie=A3(),zie=ld(),gi=Mt().extendFlat,qie=zn().overrideAll,iI=Wc(),Oie=yo.line,fs=yo.marker,Bie=fs.line,Uie=gi({width:Oie.width,dash:{valType:"enumerated",values:iI(Nie),dflt:"solid"}},P3("line"));function R3(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var D3=oI.exports=qie({x:yo.x,y:yo.y,z:{valType:"data_array"},text:gi({},yo.text,{}),texttemplate:Iie({},{}),hovertext:gi({},yo.hovertext,{}),hovertemplate:Fie(),xhoverformat:L3("x"),yhoverformat:L3("y"),zhoverformat:L3("z"),mode:gi({},yo.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:R3("x"),y:R3("y"),z:R3("z")},connectgaps:yo.connectgaps,line:Uie,marker:gi({symbol:{valType:"enumerated",values:iI(zie),dflt:"circle",arrayOk:!0},size:gi({},fs.size,{dflt:8}),sizeref:fs.sizeref,sizemin:fs.sizemin,sizemode:fs.sizemode,opacity:gi({},fs.opacity,{arrayOk:!1}),colorbar:fs.colorbar,line:gi({width:gi({},Bie.width,{arrayOk:!1})},P3("marker.line"))},P3("marker")),textposition:gi({},yo.textposition,{dflt:"top center"}),textfont:Pie({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:aI.opacity,hoverinfo:gi({},aI.hoverinfo)},"calc","nested");D3.x.editType=D3.y.editType=D3.z.editType="calc+clearAxisTypes"});var uI=pe((Rde,sI)=>{"use strict";var lI=Er(),Hie=ir(),I3=ia(),Vie=em(),Gie=rm(),Yie=tm(),Wie=F3();sI.exports=function(r,t,n,a){function o(b,m){return Hie.coerce(r,t,Wie,b,m)}var i=Xie(r,t,o,a);if(!i){t.visible=!1;return}o("text"),o("hovertext"),o("hovertemplate"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),o("mode"),I3.hasMarkers(t)&&Vie(r,t,n,a,o,{noSelect:!0,noAngle:!0}),I3.hasLines(t)&&(o("connectgaps"),Gie(r,t,n,a,o)),I3.hasText(t)&&(o("texttemplate"),Yie(r,t,a,o,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var l=(t.line||{}).color,u=(t.marker||{}).color;o("surfaceaxis")>=0&&o("surfacecolor",l||u);for(var s=["x","y","z"],f=0;f<3;++f){var v="projection."+s[f];o(v+".show")&&(o(v+".opacity"),o(v+".scale"))}var p=lI.getComponentMethod("errorbars","supplyDefaults");p(r,t,l||u||n,{axis:"z"}),p(r,t,l||u||n,{axis:"y",inherit:"z"}),p(r,t,l||u||n,{axis:"x",inherit:"z"})};function Xie(e,r,t,n){var a=0,o=t("x"),i=t("y"),l=t("z"),u=lI.getComponentMethod("calendars","handleTraceDefaults");return u(e,r,["x","y","z"],n),o&&i&&l&&(a=Math.min(o.length,i.length,l.length),r._length=r._xlength=r._ylength=r._zlength=a),a}});var cI=pe((Dde,fI)=>{"use strict";var Zie=g1(),Jie=im();fI.exports=function(r,t){var n=[{x:!1,y:!1,trace:t,t:{}}];return Zie(n,t),Jie(r,t),n}});var hI=pe((Pde,vI)=>{vI.exports=Kie;function Kie(e,r){if(typeof e!="string")throw new TypeError("must specify type string");if(r=r||{},typeof document=="undefined"&&!r.canvas)return null;var t=r.canvas||document.createElement("canvas");typeof r.width=="number"&&(t.width=r.width),typeof r.height=="number"&&(t.height=r.height);var n=r,a;try{var o=[e];e.indexOf("webgl")===0&&o.push("experimental-"+e);for(var i=0;i{var Qie=hI();dI.exports=function(r){return Qie("webgl",r)}});var mI=pe((Ide,yI)=>{"use strict";var gI=Zr(),$ie=function(){};yI.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=$ie);r.destroy=function(){r.container.parentNode.removeChild(r.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=gI.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=gI.lightLine,n.style["z-index"]=30;var a=document.createElement("p");return a.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",a.style.position="relative",a.style.top="50%",a.style.left="50%",a.style.height="30%",a.style.width="50%",a.style.margin="-15% 0 0 -25%",n.appendChild(a),r.container.appendChild(n),r.container.style.background="#FFFFFF",r.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var _I=pe((Nde,bI)=>{"use strict";var cs=po(),jie=ir(),eoe=["xaxis","yaxis","zaxis"];function xI(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var roe=xI.prototype;roe.merge=function(e,r){for(var t=this,n=0;n<3;++n){var a=r[eoe[n]];if(!a.visible){t.tickEnable[n]=!1,t.labelEnable[n]=!1,t.lineEnable[n]=!1,t.lineTickEnable[n]=!1,t.gridEnable[n]=!1,t.zeroEnable[n]=!1,t.backgroundEnable[n]=!1;continue}t.labels[n]=e._meta?jie.templateString(a.title.text,e._meta):a.title.text,"font"in a.title&&(a.title.font.color&&(t.labelColor[n]=cs(a.title.font.color)),a.title.font.family&&(t.labelFont[n]=a.title.font.family),a.title.font.size&&(t.labelSize[n]=a.title.font.size),a.title.font.weight&&(t.labelFontWeight[n]=a.title.font.weight),a.title.font.style&&(t.labelFontStyle[n]=a.title.font.style),a.title.font.variant&&(t.labelFontVariant[n]=a.title.font.variant)),"showline"in a&&(t.lineEnable[n]=a.showline),"linecolor"in a&&(t.lineColor[n]=cs(a.linecolor)),"linewidth"in a&&(t.lineWidth[n]=a.linewidth),"showgrid"in a&&(t.gridEnable[n]=a.showgrid),"gridcolor"in a&&(t.gridColor[n]=cs(a.gridcolor)),"gridwidth"in a&&(t.gridWidth[n]=a.gridwidth),a.type==="log"?t.zeroEnable[n]=!1:"zeroline"in a&&(t.zeroEnable[n]=a.zeroline),"zerolinecolor"in a&&(t.zeroLineColor[n]=cs(a.zerolinecolor)),"zerolinewidth"in a&&(t.zeroLineWidth[n]=a.zerolinewidth),"ticks"in a&&a.ticks?t.lineTickEnable[n]=!0:t.lineTickEnable[n]=!1,"ticklen"in a&&(t.lineTickLength[n]=t._defaultLineTickLength[n]=a.ticklen),"tickcolor"in a&&(t.lineTickColor[n]=cs(a.tickcolor)),"tickwidth"in a&&(t.lineTickWidth[n]=a.tickwidth),"tickangle"in a&&(t.tickAngle[n]=a.tickangle==="auto"?-3600:Math.PI*-a.tickangle/180),"showticklabels"in a&&(t.tickEnable[n]=a.showticklabels),"tickfont"in a&&(a.tickfont.color&&(t.tickColor[n]=cs(a.tickfont.color)),a.tickfont.family&&(t.tickFont[n]=a.tickfont.family),a.tickfont.size&&(t.tickSize[n]=a.tickfont.size),a.tickfont.weight&&(t.tickFontWeight[n]=a.tickfont.weight),a.tickfont.style&&(t.tickFontStyle[n]=a.tickfont.style),a.tickfont.variant&&(t.tickFontVariant[n]=a.tickfont.variant)),"mirror"in a?["ticks","all","allticks"].indexOf(a.mirror)!==-1?(t.lineTickMirror[n]=!0,t.lineMirror[n]=!0):a.mirror===!0?(t.lineTickMirror[n]=!1,t.lineMirror[n]=!0):(t.lineTickMirror[n]=!1,t.lineMirror[n]=!1):t.lineMirror[n]=!1,"showbackground"in a&&a.showbackground!==!1?(t.backgroundEnable[n]=!0,t.backgroundColor[n]=cs(a.backgroundcolor)):t.backgroundEnable[n]=!1}};function toe(e,r){var t=new xI;return t.merge(e,r),t}bI.exports=toe});var TI=pe((zde,MI)=>{"use strict";var noe=po(),aoe=["xaxis","yaxis","zaxis"];function wI(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var ioe=wI.prototype;ioe.merge=function(e){for(var r=0;r<3;++r){var t=e[aoe[r]];if(!t.visible){this.enabled[r]=!1,this.drawSides[r]=!1;continue}this.enabled[r]=t.showspikes,this.colors[r]=noe(t.spikecolor),this.drawSides[r]=t.spikesides,this.lineWidth[r]=t.spikethickness}};function ooe(e){var r=new wI;return r.merge(e),r}MI.exports=ooe});var SI=pe((qde,kI)=>{"use strict";kI.exports=coe;var AI=St(),loe=ir(),soe=["xaxis","yaxis","zaxis"],uoe=[0,0,0];function foe(e){for(var r=new Array(3),t=0;t<3;++t){for(var n=e[t],a=new Array(n.length),o=0;o/g," "));a[o]=s,i.tickmode=l}}r.ticks=a;for(var o=0;o<3;++o){uoe[o]=.5*(e.glplot.bounds[0][o]+e.glplot.bounds[1][o]);for(var f=0;f<2;++f)r.bounds[f][o]=e.glplot.bounds[f][o]}e.contourLevels=foe(a)}});var FI=pe((Ode,PI)=>{"use strict";var LI=pn().gl_plot3d,voe=LI.createCamera,CI=LI.createScene,hoe=pI(),doe=Zv(),cd=Er(),Zn=ir(),fd=Zn.preserveDrawingBuffer(),vd=St(),yi=io(),poe=po(),goe=mI(),yoe=Um(),moe=_I(),xoe=TI(),boe=SI(),_oe=$s().applyAutorangeOptions,N0,ud,RI=!1;function DI(e,r){var t=document.createElement("div"),n=e.container;this.graphDiv=e.graphDiv;var a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.style.position="absolute",a.style.top=a.style.left="0px",a.style.width=a.style.height="100%",a.style["z-index"]=20,a.style["pointer-events"]="none",t.appendChild(a),this.svgContainer=a,t.id=e.id,t.style.position="absolute",t.style.top=t.style.left="0px",t.style.width=t.style.height="100%",n.appendChild(t),this.fullLayout=r,this.id=e.id||"scene",this.fullSceneLayout=r[this.id],this.plotArgs=[[],{},{}],this.axesOptions=moe(r,r[this.id]),this.spikeOptions=xoe(r[this.id]),this.container=t,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=cd.getComponentMethod("annotations3d","convert"),this.drawAnnotations=cd.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Rn=DI.prototype;Rn.prepareOptions=function(){var e=this,r={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:fd,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!ud&&(N0=document.createElement("canvas"),ud=hoe({canvas:N0,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!ud))throw new Error("error creating static canvas/context for image server");r.gl=ud,r.canvas=N0}return r};var EI=!0;Rn.tryCreatePlot=function(){var e=this,r=e.prepareOptions(),t=!0;try{e.glplot=CI(r)}catch(n){if(e.staticMode||!EI||fd)t=!1;else{Zn.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{fd=r.glOptions.preserveDrawingBuffer=!0,e.glplot=CI(r)}catch(a){fd=r.glOptions.preserveDrawingBuffer=!1,t=!1}}}return EI=!1,t};Rn.initializeGLCamera=function(){var e=this,r=e.fullSceneLayout.camera,t=r.projection.type==="orthographic";e.camera=voe(e.container,{center:[r.center.x,r.center.y,r.center.z],eye:[r.eye.x,r.eye.y,r.eye.z],up:[r.up.x,r.up.y,r.up.z],_ortho:t,zoomMin:.01,zoomMax:100,mode:"orbit"})};Rn.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var r=e.tryCreatePlot();if(!r)return goe(e);e.traces={},e.make4thDimension();var t=e.graphDiv,n=t.layout,a=function(){var i={};return e.isCameraChanged(n)&&(i[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(i[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=i[e.id+".aspectmode"]="manual")),i},o=function(i){if(i.fullSceneLayout.dragmode!==!1){var l=a();i.saveLayout(n),i.graphDiv.emit("plotly_relayout",l)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){o(e)}),e.glplot.canvas.addEventListener("touchstart",function(){RI=!0}),e.glplot.canvas.addEventListener("wheel",function(i){if(t._context._scrollZoom.gl3d){if(e.camera._ortho){var l=i.deltaX>i.deltaY?1.1:.9090909090909091,u=e.glplot.getAspectratio();e.glplot.setAspectratio({x:l*u.x,y:l*u.y,z:l*u.z})}o(e)}},doe?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var i=a();e.graphDiv.emit("plotly_relayouting",i)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(i){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:i,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};Rn.render=function(){var e=this,r=e.graphDiv,t,n=e.svgContainer,a=e.container.getBoundingClientRect();r._fullLayout._calcInverseTransform(r);var o=r._fullLayout._invScaleX,i=r._fullLayout._invScaleY,l=a.width*o,u=a.height*i;n.setAttributeNS(null,"viewBox","0 0 "+l+" "+u),n.setAttributeNS(null,"width",l),n.setAttributeNS(null,"height",u),boe(e),e.glplot.axes.update(e.axesOptions);for(var s=Object.keys(e.traces),f=null,v=e.glplot.selection,p=0;p")):t.type==="isosurface"||t.type==="volume"?(y.valueLabel=vd.hoverLabelText(e._mockAxis,e._mockAxis.d2l(v.traceCoordinate[3]),t.valuehoverformat),d.push("value: "+y.valueLabel),v.textLabel&&d.push(v.textLabel),T=d.join("
")):T=v.textLabel;var _={x:v.traceCoordinate[0],y:v.traceCoordinate[1],z:v.traceCoordinate[2],data:w._input,fullData:w,curveNumber:w.index,pointNumber:M};yi.appendArrayPointValue(_,w,M),t._module.eventData&&(_=w._module.eventData(_,v,w,{},M));var g={points:[_]};if(e.fullSceneLayout.hovermode){var c=[];yi.loneHover({trace:w,x:(.5+.5*m[0]/m[3])*l,y:(.5-.5*m[1]/m[3])*u,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:T,name:f.name,color:yi.castHoverOption(w,M,"bgcolor")||f.color,borderColor:yi.castHoverOption(w,M,"bordercolor"),fontFamily:yi.castHoverOption(w,M,"font.family"),fontSize:yi.castHoverOption(w,M,"font.size"),fontColor:yi.castHoverOption(w,M,"font.color"),nameLength:yi.castHoverOption(w,M,"namelength"),textAlign:yi.castHoverOption(w,M,"align"),hovertemplate:Zn.castOption(w,M,"hovertemplate"),hovertemplateLabels:Zn.extendFlat({},_,y),eventData:[_]},{container:n,gd:r,inOut_bbox:c}),_.bbox=c[0]}v.distance<5&&(v.buttons||RI)?r.emit("plotly_click",g):r.emit("plotly_hover",g),this.oldEventData=g}else yi.loneUnhover(n),this.oldEventData&&r.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};Rn.recoverContext=function(){var e=this;e.glplot.dispose();var r=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(r);return}if(!e.initializeGLPlot()){Zn.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(r)};var z0=["xaxis","yaxis","zaxis"];function woe(e,r,t){for(var n=e.fullSceneLayout,a=0;a<3;a++){var o=z0[a],i=o.charAt(0),l=n[o],u=r[i],s=r[i+"calendar"],f=r["_"+i+"length"];if(!Zn.isArrayOrTypedArray(u))t[0][a]=Math.min(t[0][a],0),t[1][a]=Math.max(t[1][a],f-1);else for(var v,p=0;p<(f||u.length);p++)if(Zn.isArrayOrTypedArray(u[p]))for(var b=0;bw[1][i])w[0][i]=-1,w[1][i]=1;else{var h=w[1][i]-w[0][i];w[0][i]-=h/32,w[1][i]+=h/32}if(k=[w[0][i],w[1][i]],k=_oe(k,u),w[0][i]=k[0],w[1][i]=k[1],u.isReversed()){var R=w[0][i];w[0][i]=w[1][i],w[1][i]=R}}else k=u.range,w[0][i]=u.r2l(k[0]),w[1][i]=u.r2l(k[1]);w[0][i]===w[1][i]&&(w[0][i]-=1,w[1][i]+=1),M[i]=w[1][i]-w[0][i],u.range=[w[0][i],w[1][i]],u.limitRange(),n.glplot.setBounds(i,{min:u.range[0]*b[i],max:u.range[1]*b[i]})}var E,D=f.aspectmode;if(D==="cube")E=[1,1,1];else if(D==="manual"){var N=f.aspectratio;E=[N.x,N.y,N.z]}else if(D==="auto"||D==="data"){var I=[1,1,1];for(i=0;i<3;++i){u=f[z0[i]],s=u.type;var F=y[s];I[i]=Math.pow(F.acc,1/F.count)/b[i]}D==="data"||Math.max.apply(null,I)/Math.min.apply(null,I)<=4?E=I:E=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");f.aspectratio.x=v.aspectratio.x=E[0],f.aspectratio.y=v.aspectratio.y=E[1],f.aspectratio.z=v.aspectratio.z=E[2],n.glplot.setAspectratio(f.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:f.aspectratio.x,y:f.aspectratio.y,z:f.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=f.aspectmode);var L=f.domain||null,P=r._size||null;if(L&&P){var O=n.container.style;O.position="absolute",O.left=P.l+L.x[0]*P.w+"px",O.top=P.t+(1-L.y[1])*P.h+"px",O.width=P.w*(L.x[1]-L.x[0])+"px",O.height=P.h*(L.y[1]-L.y[0])+"px"}n.glplot.redraw()}};Rn.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function Toe(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function Aoe(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}Rn.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),Aoe(e.camera)};Rn.setViewport=function(e){var r=this,t=e.camera;r.camera.lookAt.apply(this,Toe(t)),r.glplot.setAspectratio(e.aspectratio);var n=t.projection.type==="orthographic",a=r.camera._ortho;n!==a&&(r.glplot.redraw(),r.glplot.clearRGBA(),r.glplot.dispose(),r.initializeGLPlot())};Rn.isCameraChanged=function(e){var r=this,t=r.getCamera(),n=Zn.nestedProperty(e,r.id+".camera"),a=n.get();function o(s,f,v,p){var b=["up","center","eye"],m=["x","y","z"];return f[b[v]]&&s[b[v]][m[p]]===f[b[v]][m[p]]}var i=!1;if(a===void 0)i=!0;else{for(var l=0;l<3;l++)for(var u=0;u<3;u++)if(!o(t,a,l,u)){i=!0;break}(!a.projection||t.projection&&t.projection.type!==a.projection.type)&&(i=!0)}return i};Rn.isAspectChanged=function(e){var r=this,t=r.glplot.getAspectratio(),n=Zn.nestedProperty(e,r.id+".aspectratio"),a=n.get();return a===void 0||a.x!==t.x||a.y!==t.y||a.z!==t.z};Rn.saveLayout=function(e){var r=this,t=r.fullLayout,n,a,o,i,l,u,s=r.isCameraChanged(e),f=r.isAspectChanged(e),v=s||f;if(v){var p={};if(s&&(n=r.getCamera(),a=Zn.nestedProperty(e,r.id+".camera"),o=a.get(),p[r.id+".camera"]=o),f&&(i=r.glplot.getAspectratio(),l=Zn.nestedProperty(e,r.id+".aspectratio"),u=l.get(),p[r.id+".aspectratio"]=u),cd.call("_storeDirectGUIEdit",e,t._preGUI,p),s){a.set(n);var b=Zn.nestedProperty(t,r.id+".camera");b.set(n)}if(f){l.set(i);var m=Zn.nestedProperty(t,r.id+".aspectratio");m.set(i),r.glplot.redraw()}}return v};Rn.updateFx=function(e,r){var t=this,n=t.camera;if(n)if(e==="orbit")n.mode="orbit",n.keyBindingMode="rotate";else if(e==="turntable"){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var a=t.graphDiv,o=a._fullLayout,i=t.fullSceneLayout.camera,l=i.up.x,u=i.up.y,s=i.up.z;if(s/Math.sqrt(l*l+u*u+s*s)<.999){var f=t.id+".camera.up",v={x:0,y:0,z:1},p={};p[f]=v;var b=a.layout;cd.call("_storeDirectGUIEdit",b,o._preGUI,p),i.up=v,Zn.nestedProperty(b,f).set(v)}}else n.keyBindingMode=e;t.fullSceneLayout.hovermode=r};function koe(e,r,t){for(var n=0,a=t-1;n0)for(var l=255/i,u=0;u<3;++u)e[o+u]=Math.min(l*e[o+u],255)}}Rn.toImage=function(e){var r=this;e||(e="png"),r.staticMode&&r.container.appendChild(N0),r.glplot.redraw();var t=r.glplot.gl,n=t.drawingBufferWidth,a=t.drawingBufferHeight;t.bindFramebuffer(t.FRAMEBUFFER,null);var o=new Uint8Array(n*a*4);t.readPixels(0,0,n,a,t.RGBA,t.UNSIGNED_BYTE,o),koe(o,n,a),Soe(o,n,a);var i=document.createElement("canvas");i.width=n,i.height=a;var l=i.getContext("2d",{willReadFrequently:!0}),u=l.createImageData(n,a);u.data.set(o),l.putImageData(u,0,0);var s;switch(e){case"jpeg":s=i.toDataURL("image/jpeg");break;case"webp":s=i.toDataURL("image/webp");break;default:s=i.toDataURL("image/png")}return r.staticMode&&r.container.removeChild(N0),s};Rn.setConvert=function(){for(var e=this,r=0;r<3;r++){var t=e.fullSceneLayout[z0[r]];vd.setConvert(t,e.fullLayout),t.setScale=Zn.noop}};Rn.make4thDimension=function(){var e=this,r=e.graphDiv,t=r._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},vd.setConvert(e._mockAxis,t)};PI.exports=DI});var NI=pe((Bde,II)=>{"use strict";II.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var z3=pe((Ude,zI)=>{"use strict";var Coe=Zr(),Br=Ra(),N3=Mt().extendFlat,Eoe=zn().overrideAll;zI.exports=Eoe({visible:Br.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:Coe.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:Br.color,categoryorder:Br.categoryorder,categoryarray:Br.categoryarray,title:{text:Br.title.text,font:Br.title.font},type:N3({},Br.type,{values:["-","linear","log","date","category"]}),autotypenumbers:Br.autotypenumbers,autorange:Br.autorange,autorangeoptions:{minallowed:Br.autorangeoptions.minallowed,maxallowed:Br.autorangeoptions.maxallowed,clipmin:Br.autorangeoptions.clipmin,clipmax:Br.autorangeoptions.clipmax,include:Br.autorangeoptions.include,editType:"plot"},rangemode:Br.rangemode,minallowed:Br.minallowed,maxallowed:Br.maxallowed,range:N3({},Br.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:Br.minor.tickmode,nticks:Br.nticks,tick0:Br.tick0,dtick:Br.dtick,tickvals:Br.tickvals,ticktext:Br.ticktext,ticks:Br.ticks,mirror:Br.mirror,ticklen:Br.ticklen,tickwidth:Br.tickwidth,tickcolor:Br.tickcolor,showticklabels:Br.showticklabels,labelalias:Br.labelalias,tickfont:Br.tickfont,tickangle:Br.tickangle,tickprefix:Br.tickprefix,showtickprefix:Br.showtickprefix,ticksuffix:Br.ticksuffix,showticksuffix:Br.showticksuffix,showexponent:Br.showexponent,exponentformat:Br.exponentformat,minexponent:Br.minexponent,separatethousands:Br.separatethousands,tickformat:Br.tickformat,tickformatstops:Br.tickformatstops,hoverformat:Br.hoverformat,showline:Br.showline,linecolor:Br.linecolor,linewidth:Br.linewidth,showgrid:Br.showgrid,gridcolor:N3({},Br.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:Br.gridwidth,zeroline:Br.zeroline,zerolinecolor:Br.zerolinecolor,zerolinewidth:Br.zerolinewidth},"plot","from-root")});var U3=pe((Hde,qI)=>{"use strict";var q3=z3(),Loe=$1().attributes,O3=Mt().extendFlat,Roe=ir().counterRegex;function B3(e,r,t){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:r,editType:"camera"},z:{valType:"number",dflt:t,editType:"camera"},editType:"camera"}}qI.exports={_arrayAttrRegexps:[Roe("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:O3(B3(0,0,1),{}),center:O3(B3(0,0,0),{}),eye:O3(B3(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:Loe({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:q3,yaxis:q3,zaxis:q3,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot"}});var BI=pe((Vde,OI)=>{"use strict";var Doe=ir(),Poe=gt(),Foe=$1().defaults;OI.exports=function(r,t,n,a){var o=a.type,i=a.attributes,l=a.handleDefaults,u=a.partition||"x",s=t._subplots[o],f=s.length,v=f&&s[0].replace(/\d+$/,""),p,b;function m(k,S){return Doe.coerce(p,b,i,k,S)}for(var w=0;w{"use strict";var Ioe=ka().mix,UI=ir(),Noe=gt(),zoe=z3(),qoe=Mm(),Ooe=T1(),HI=["xaxis","yaxis","zaxis"],Boe=100*136/187;VI.exports=function(r,t,n){var a,o;function i(s,f){return UI.coerce(a,o,zoe,s,f)}for(var l=0;l{"use strict";var Uoe=ir(),Hoe=Zr(),Voe=Er(),Goe=BI(),Yoe=GI(),YI=U3(),Woe=_f().getSubplotData,WI="gl3d";XI.exports=function(r,t,n){var a=t._basePlotModules.length>1;function o(i){if(!a){var l=Uoe.validate(r[i],YI[i]);if(l)return r[i]}}Goe(r,t,n,{type:WI,attributes:YI,handleDefaults:Xoe,fullLayout:t,font:t.font,fullData:n,getDfltFromLayout:o,autotypenumbersDflt:t.autotypenumbers,paper_bgcolor:t.paper_bgcolor,calendar:t.calendar})};function Xoe(e,r,t,n){for(var a=t("bgcolor"),o=Hoe.combine(a,n.paper_bgcolor),i=["up","center","eye"],l=0;l.999)&&(p="turntable")}else p="turntable";t("dragmode",p),t("hovermode",n.getDfltFromLayout("hovermode"))}});var il=pe(Jn=>{"use strict";var Zoe=zn().overrideAll,Joe=_l(),Koe=FI(),Qoe=_f().getSubplotData,$oe=ir(),joe=Io(),qu="gl3d",H3="scene";Jn.name=qu;Jn.attr=H3;Jn.idRoot=H3;Jn.idRegex=Jn.attrRegex=$oe.counterRegex("scene");Jn.attributes=NI();Jn.layoutAttributes=U3();Jn.baseLayoutAttrOverrides=Zoe({hoverlabel:Joe.hoverlabel},"plot","nested");Jn.supplyLayoutDefaults=ZI();Jn.plot=function(r){for(var t=r._fullLayout,n=r._fullData,a=t._subplots[qu],o=0;o{"use strict";JI.exports={plot:nI(),attributes:F3(),markerSymbols:ld(),supplyDefaults:uI(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:cI(),moduleType:"trace",name:"scatter3d",basePlotModule:il(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var $I=pe((Zde,QI)=>{"use strict";QI.exports=KI()});var q0=pe((Jde,rN)=>{"use strict";var jI=Zr(),ele=ja(),V3=ro().axisHoverFormat,rle=Sa().hovertemplateAttrs,eN=Sn(),G3=Mt().extendFlat,tle=zn().overrideAll;function Y3(e){return{valType:"boolean",dflt:!1}}function W3(e){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:Y3("x"),y:Y3("y"),z:Y3("z")},color:{valType:"color",dflt:jI.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:jI.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var X3=rN.exports=tle(G3({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:rle(),xhoverformat:V3("x"),yhoverformat:V3("y"),zhoverformat:V3("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},ele("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:W3("x"),y:W3("y"),z:W3("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:G3({},eN.hoverinfo),showlegend:G3({},eN.showlegend,{dflt:!1})}),"calc","nested");X3.x.editType=X3.y.editType=X3.z.editType="calc+clearAxisTypes"});var J3=pe((Kde,aN)=>{"use strict";var nle=Er(),tN=ir(),ale=Ei(),ile=q0(),Z3=.1;function ole(e,r){for(var t=[],n=32,a=0;a{"use strict";var iN=zo();oN.exports=function(r,t){t.surfacecolor?iN(r,t,{vals:t.surfacecolor,containerStr:"",cLetter:"c"}):iN(r,t,{vals:t.z,containerStr:"",cLetter:"c"})}});var cN=pe(($de,fN)=>{"use strict";var ule=ir(),sN=.01,fle=[[-1,0],[1,0],[0,-1],[0,1]];function cle(e){return .5-.25*Math.min(1,e*.5)}fN.exports=function(r,t){var n=1,a;for(uN(r,t),a=0;asN;a++)n=uN(r,t,cle(n));return n>sN&&ule.log("interp2d didn't converge quickly",n),r};function uN(e,r,t){var n=0,a,o,i,l,u,s,f,v,p,b,m,w,M;for(l=0;lw&&(n=Math.max(n,Math.abs(e[o][i]-m)/(M-w))))}return n}});var hN=pe((jde,vN)=>{"use strict";var vle=ir().maxRowLength;vN.exports=function(r){var t=[],n={},a=[],o=r[0],i=[],l=[0,0,0],u=vle(r),s,f,v,p,b,m,w,M;for(f=0;f=0;b--)p=a[b],f=p[0],v=p[1],m=((n[[f-1,v]]||l)[2]+(n[[f+1,v]]||l)[2]+(n[[f,v-1]]||l)[2]+(n[[f,v+1]]||l)[2])/20,m&&(w[p]=[f,v,m],a.splice(b,1),M=!0);if(!M)throw"findEmpties iterated with no new neighbors";for(p in w)n[p]=w[p],t.push(w[p])}return t.sort(function(y,k){return k[2]-y[2]})}});var xN=pe((epe,mN)=>{"use strict";var hle=pn().gl_surface3d,Ou=pn().ndarray,dle=pn().ndarray_linear_interpolate.d2,ple=cN(),gle=hN(),O0=ir().isArrayOrTypedArray,yle=al().parseColorScale,dN=po(),mle=Li().extractOpts;function gN(e,r,t){this.scene=e,this.uid=t,this.surface=r,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var mi=gN.prototype;mi.getXat=function(e,r,t,n){var a=O0(this.data.x)?O0(this.data.x[0])?this.data.x[r][e]:this.data.x[e]:e;return t===void 0?a:n.d2l(a,0,t)};mi.getYat=function(e,r,t,n){var a=O0(this.data.y)?O0(this.data.y[0])?this.data.y[r][e]:this.data.y[r]:r;return t===void 0?a:n.d2l(a,0,t)};mi.getZat=function(e,r,t,n){var a=this.data.z[r][e];return a===null&&this.data.connectgaps&&this.data._interpolatedZ&&(a=this.data._interpolatedZ[r][e]),t===void 0?a:n.d2l(a,0,t)};mi.handlePick=function(e){if(e.object===this.surface){var r=(e.data.index[0]-1)/this.dataScaleX-1,t=(e.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(r),this.data.z[0].length-1),0),a=Math.max(Math.min(Math.round(t),this.data._ylength-1),0);e.index=[n,a],e.traceCoordinate=[this.getXat(n,a),this.getYat(n,a),this.getZat(n,a)],e.dataCoordinate=[this.getXat(n,a,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,a,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,a,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var o=0;o<3;o++){var i=e.dataCoordinate[o];i!=null&&(e.dataCoordinate[o]*=this.scene.dataScale[o])}var l=this.data.hovertext||this.data.text;return O0(l)&&l[a]&&l[a][n]!==void 0?e.textLabel=l[a][n]:l?e.textLabel=l:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function xle(e){var r=e[0].rgb,t=e[e.length-1].rgb;return r[0]===t[0]&&r[1]===t[1]&&r[2]===t[2]&&r[3]===t[3]}var Bu=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function ble(e,r){if(e0){t=Bu[n];break}return t}function wle(e,r){if(!(e<1||r<1)){for(var t=K3(e),n=K3(r),a=1,o=0;ohd;)n--,n/=_le(n),n++,n1?a:1};function Tle(e,r,t){var n=t[8]+t[2]*r[0]+t[5]*r[1];return e[0]=(t[6]+t[0]*r[0]+t[3]*r[1])/n,e[1]=(t[7]+t[1]*r[0]+t[4]*r[1])/n,e}function Ale(e,r,t){return kle(e,r,Tle,t),e}function kle(e,r,t,n){for(var a=[0,0],o=e.shape[0],i=e.shape[1],l=0;l0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(r[n]=!0,a=this.contourStart[n];ap&&(this.minValues[s]=p),this.maxValues[s]{"use strict";bN.exports={attributes:q0(),supplyDefaults:J3().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:lN(),plot:xN(),moduleType:"trace",name:"surface",basePlotModule:il(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var MN=pe((tpe,wN)=>{"use strict";wN.exports=_N()});var Uu=pe((npe,AN)=>{"use strict";var Ele=ja(),Q3=ro().axisHoverFormat,Lle=Sa().hovertemplateAttrs,ol=q0(),TN=Sn(),ll=Mt().extendFlat;AN.exports=ll({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:Lle({editType:"calc"}),xhoverformat:Q3("x"),yhoverformat:Q3("y"),zhoverformat:Q3("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"}},Ele("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:ol.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:ll({},ol.contours.x.show,{}),color:ol.contours.x.color,width:ol.contours.x.width,editType:"calc"},lightposition:{x:ll({},ol.lightposition.x,{dflt:1e5}),y:ll({},ol.lightposition.y,{dflt:1e5}),z:ll({},ol.lightposition.z,{dflt:0}),editType:"calc"},lighting:ll({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},ol.lighting),hoverinfo:ll({},TN.hoverinfo,{editType:"calc"}),showlegend:ll({},TN.showlegend,{dflt:!1})})});var pd=pe((ape,SN)=>{"use strict";var Rle=ja(),dd=ro().axisHoverFormat,Dle=Sa().hovertemplateAttrs,B0=Uu(),kN=Sn(),$3=Mt().extendFlat,Ple=zn().overrideAll;function j3(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function e5(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var Hu=SN.exports=Ple($3({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:j3("x"),y:j3("y"),z:j3("z")},caps:{x:e5("x"),y:e5("y"),z:e5("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:Dle(),xhoverformat:dd("x"),yhoverformat:dd("y"),zhoverformat:dd("z"),valuehoverformat:dd("value",1),showlegend:$3({},kN.showlegend,{dflt:!1})},Rle("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:B0.opacity,lightposition:B0.lightposition,lighting:B0.lighting,flatshading:B0.flatshading,contour:B0.contour,hoverinfo:$3({},kN.hoverinfo)}),"calc","nested");Hu.flatshading.dflt=!0;Hu.lighting.facenormalsepsilon.dflt=0;Hu.x.editType=Hu.y.editType=Hu.z.editType=Hu.value.editType="calc+clearAxisTypes"});var r5=pe((ipe,EN)=>{"use strict";var Fle=ir(),Ile=Er(),Nle=pd(),zle=Ei();function qle(e,r,t,n){function a(o,i){return Fle.coerce(e,r,Nle,o,i)}CN(e,r,t,n,a)}function CN(e,r,t,n,a){var o=a("isomin"),i=a("isomax");i!=null&&o!==void 0&&o!==null&&o>i&&(r.isomin=null,r.isomax=null);var l=a("x"),u=a("y"),s=a("z"),f=a("value");if(!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length){r.visible=!1;return}var v=Ile.getComponentMethod("calendars","handleTraceDefaults");v(e,r,["x","y","z"],n),a("valuehoverformat"),["x","y","z"].forEach(function(w){a(w+"hoverformat");var M="caps."+w,y=a(M+".show");y&&a(M+".fill");var k="slices."+w,S=a(k+".show");S&&(a(k+".fill"),a(k+".locations"))});var p=a("spaceframe.show");p&&a("spaceframe.fill");var b=a("surface.show");b&&(a("surface.count"),a("surface.fill"),a("surface.pattern"));var m=a("contour.show");m&&(a("contour.color"),a("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(w){a(w)}),zle(e,r,n,a,{prefix:"",cLetter:"c"}),r._length=null}EN.exports={supplyDefaults:qle,supplyIsoDefaults:CN}});var gd=pe((ope,RN)=>{"use strict";var n5=ir(),Ole=zo();function Ble(e,r){r._len=Math.min(r.u.length,r.v.length,r.w.length,r.x.length,r.y.length,r.z.length),r._u=Hi(r.u,r._len),r._v=Hi(r.v,r._len),r._w=Hi(r.w,r._len),r._x=Hi(r.x,r._len),r._y=Hi(r.y,r._len),r._z=Hi(r.z,r._len);var t=LN(r);r._gridFill=t.fill,r._Xs=t.Xs,r._Ys=t.Ys,r._Zs=t.Zs,r._len=t.len;var n=0,a,o,i;r.starts&&(a=Hi(r.starts.x||[]),o=Hi(r.starts.y||[]),i=Hi(r.starts.z||[]),n=Math.min(a.length,o.length,i.length)),r._startsX=a||[],r._startsY=o||[],r._startsZ=i||[];var l=0,u=1/0,s;for(s=0;s1&&(S=r[a-1],T=t[a-1],_=n[a-1]),o=0;oS?"-":"+")+"x"),m=m.replace("y",(x>T?"-":"+")+"y"),m=m.replace("z",(d>_?"-":"+")+"z");var h=function(){a=0,g=[],c=[],A=[]};(!a||a{"use strict";var Ule=zo(),Hle=gd().processGrid,yd=gd().filter;DN.exports=function(r,t){t._len=Math.min(t.x.length,t.y.length,t.z.length,t.value.length),t._x=yd(t.x,t._len),t._y=yd(t.y,t._len),t._z=yd(t.z,t._len),t._value=yd(t.value,t._len);var n=Hle(t);t._gridFill=n.fill,t._Xs=n.Xs,t._Ys=n.Ys,t._Zs=n.Zs,t._len=n.len;for(var a=1/0,o=-1/0,i=0;i{"use strict";PN.exports=function(r,t,n,a){a=a||r.length;for(var o=new Array(a),i=0;i{"use strict";var Vle=pn().gl_mesh3d,Gle=al().parseColorScale,Yle=ir().isArrayOrTypedArray,Wle=po(),Xle=Li().extractOpts,FN=Vu(),U0=function(e,r){for(var t=r.length-1;t>0;t--){var n=Math.min(r[t],r[t-1]),a=Math.max(r[t],r[t-1]);if(a>n&&n-1}function U(ce,ye){return ce===null?ye:ce}function X(ce,ye,Le){h();var me=[ye],de=[Le];if(F>=1)me=[ye],de=[Le];else if(F>0){var be=P(ye,Le);me=be.xyzv,de=be.abc}for(var Ae=0;Ae-1?Le[Pe]:A(Ze,Ye,Ge);we>-1?qe[Pe]=we:qe[Pe]=E(Ze,Ye,Ge,U(ce,We))}D(qe[0],qe[1],qe[2])}}function $(ce,ye,Le){var me=function(de,be,Ae){X(ce,[ye[de],ye[be],ye[Ae]],[Le[de],Le[be],Le[Ae]])};me(0,1,2),me(2,3,0)}function j(ce,ye,Le){var me=function(de,be,Ae){X(ce,[ye[de],ye[be],ye[Ae]],[Le[de],Le[be],Le[Ae]])};me(0,1,2),me(3,0,1),me(2,3,0),me(1,2,3)}function Y(ce,ye,Le,me){var de=ce[3];deme&&(de=me);for(var be=(ce[3]-de)/(ce[3]-ye[3]+1e-9),Ae=[],qe=0;qe<4;qe++)Ae[qe]=(1-be)*ce[qe]+be*ye[qe];return Ae}function q(ce,ye,Le){return ce>=ye&&ce<=Le}function J(ce){var ye=.001*(T-x);return ce>=x-ye&&ce<=T+ye}function ae(ce){for(var ye=[],Le=0;Le<4;Le++){var me=ce[Le];ye.push([e._x[me],e._y[me],e._z[me],e._value[me]])}return ye}var Q=3;function oe(ce,ye,Le,me,de,be){be||(be=1),Le=[-1,-1,-1];var Ae=!1,qe=[q(ye[0][3],me,de),q(ye[1][3],me,de),q(ye[2][3],me,de)];if(!qe[0]&&!qe[1]&&!qe[2])return!1;var Pe=function(Ye,Ge,We){return J(Ge[0][3])&&J(Ge[1][3])&&J(Ge[2][3])?(X(Ye,Ge,We),!0):beqe?[k,be]:[be,S];ke(ye,Pe[0],Pe[1])}}var Ze=[[Math.min(x,S),Math.max(x,S)],[Math.min(k,T),Math.max(k,T)]];["x","y","z"].forEach(function(Ye){for(var Ge=[],We=0;We0&&(se.push(Re.id),Ye==="x"?K.push([Re.distRatio,0,0]):Ye==="y"?K.push([0,Re.distRatio,0]):K.push([0,0,Re.distRatio]))}else Ye==="x"?ar=Be(1,b-1):Ye==="y"?ar=Be(1,m-1):ar=Be(1,w-1);se.length>0&&(Ye==="x"?Ge[we]=Fe(ce,se,De,Qe,K,Ge[we]):Ye==="y"?Ge[we]=Ee(ce,se,De,Qe,K,Ge[we]):Ge[we]=ze(ce,se,De,Qe,K,Ge[we]),we++),ar.length>0&&(Ye==="x"?Ge[we]=he(ce,ar,De,Qe,Ge[we]):Ye==="y"?Ge[we]=Ce(ce,ar,De,Qe,Ge[we]):Ge[we]=Se(ce,ar,De,Qe,Ge[we]),we++)}var Ue=e.caps[Ye];Ue.show&&Ue.fill&&(L(Ue.fill),Ye==="x"?Ge[we]=he(ce,[0,b-1],De,Qe,Ge[we]):Ye==="y"?Ge[we]=Ce(ce,[0,m-1],De,Qe,Ge[we]):Ge[we]=Se(ce,[0,w-1],De,Qe,Ge[we]),we++)}}),l===0&&R(),e._meshX=d,e._meshY=_,e._meshZ=g,e._meshIntensity=c,e._Xs=f,e._Ys=v,e._Zs=p}return Me(),e}function Jle(e,r){var t=e.glplot.gl,n=Vle({gl:t}),a=new IN(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}zN.exports={findNearestOnAxis:U0,generateIsoMeshes:NN,createIsosurfaceTrace:Jle}});var ON=pe((fpe,qN)=>{"use strict";qN.exports={attributes:pd(),supplyDefaults:r5().supplyDefaults,calc:a5(),colorbar:{min:"cmin",max:"cmax"},plot:md().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:il(),categories:["gl3d","showLegend"],meta:{}}});var UN=pe((cpe,BN)=>{"use strict";BN.exports=ON()});var l5=pe((vpe,VN)=>{"use strict";var Kle=ja(),Kt=pd(),Qle=q0(),HN=Sn(),o5=Mt().extendFlat,$le=zn().overrideAll,xd=VN.exports=$le(o5({x:Kt.x,y:Kt.y,z:Kt.z,value:Kt.value,isomin:Kt.isomin,isomax:Kt.isomax,surface:Kt.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:Kt.slices,caps:Kt.caps,text:Kt.text,hovertext:Kt.hovertext,xhoverformat:Kt.xhoverformat,yhoverformat:Kt.yhoverformat,zhoverformat:Kt.zhoverformat,valuehoverformat:Kt.valuehoverformat,hovertemplate:Kt.hovertemplate},Kle("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Kt.colorbar,opacity:Kt.opacity,opacityscale:Qle.opacityscale,lightposition:Kt.lightposition,lighting:Kt.lighting,flatshading:Kt.flatshading,contour:Kt.contour,hoverinfo:o5({},HN.hoverinfo),showlegend:o5({},HN.showlegend,{dflt:!1})}),"calc","nested");xd.x.editType=xd.y.editType=xd.z.editType=xd.value.editType="calc+clearAxisTypes"});var YN=pe((hpe,GN)=>{"use strict";var jle=ir(),ese=l5(),rse=r5().supplyIsoDefaults,tse=J3().opacityscaleDefaults;GN.exports=function(r,t,n,a){function o(i,l){return jle.coerce(r,t,ese,i,l)}rse(r,t,n,a,o),tse(r,t,a,o)}});var JN=pe((dpe,ZN)=>{"use strict";var nse=pn().gl_mesh3d,ase=al().parseColorScale,ise=ir().isArrayOrTypedArray,ose=po(),lse=Li().extractOpts,WN=Vu(),s5=md().findNearestOnAxis,sse=md().generateIsoMeshes;function XN(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.data=null,this.showContour=!1}var u5=XN.prototype;u5.handlePick=function(e){if(e.object===this.mesh){var r=e.data.index,t=this.data._meshX[r],n=this.data._meshY[r],a=this.data._meshZ[r],o=this.data._Ys.length,i=this.data._Zs.length,l=s5(t,this.data._Xs).id,u=s5(n,this.data._Ys).id,s=s5(a,this.data._Zs).id,f=e.index=s+i*u+i*o*l;e.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var v=this.data.hovertext||this.data.text;return ise(v)&&v[f]!==void 0?e.textLabel=v[f]:v&&(e.textLabel=v),!0}};u5.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=sse(e);function n(u,s,f,v){return s.map(function(p){return u.d2l(p,0,v)*f})}var a=WN(n(t.xaxis,e._meshX,r.dataScale[0],e.xcalendar),n(t.yaxis,e._meshY,r.dataScale[1],e.ycalendar),n(t.zaxis,e._meshZ,r.dataScale[2],e.zcalendar)),o=WN(e._meshI,e._meshJ,e._meshK),i={positions:a,cells:o,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:ose(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},l=lse(e);i.vertexIntensity=e._meshIntensity,i.vertexIntensityBounds=[l.min,l.max],i.colormap=ase(e),this.mesh.update(i)};u5.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function use(e,r){var t=e.glplot.gl,n=nse({gl:t}),a=new XN(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}ZN.exports=use});var QN=pe((ppe,KN)=>{"use strict";KN.exports={attributes:l5(),supplyDefaults:YN(),calc:a5(),colorbar:{min:"cmin",max:"cmax"},plot:JN(),moduleType:"trace",name:"volume",basePlotModule:il(),categories:["gl3d","showLegend"],meta:{}}});var jN=pe((gpe,$N)=>{"use strict";$N.exports=QN()});var tz=pe((ype,rz)=>{"use strict";var fse=Er(),ez=ir(),cse=Ei(),vse=Uu();rz.exports=function(r,t,n,a){function o(f,v){return ez.coerce(r,t,vse,f,v)}function i(f){var v=f.map(function(p){var b=o(p);return b&&ez.isArrayOrTypedArray(b)?b:null});return v.every(function(p){return p&&p.length===v[0].length})&&v}var l=i(["x","y","z"]);if(!l){t.visible=!1;return}if(i(["i","j","k"]),t.i&&(!t.j||!t.k)||t.j&&(!t.k||!t.i)||t.k&&(!t.i||!t.j)){t.visible=!1;return}var u=fse.getComponentMethod("calendars","handleTraceDefaults");u(r,t,["x","y","z"],a),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(f){o(f)});var s=o("contour.show");s&&(o("contour.color"),o("contour.width")),"intensity"in r?(o("intensity"),o("intensitymode"),cse(r,t,a,o,{prefix:"",cLetter:"c"})):(t.showscale=!1,"facecolor"in r?o("facecolor"):"vertexcolor"in r?o("vertexcolor"):o("color",n)),o("text"),o("hovertext"),o("hovertemplate"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var az=pe((mpe,nz)=>{"use strict";var hse=zo();nz.exports=function(r,t){t.intensity&&hse(r,t,{vals:t.intensity,containerStr:"",cLetter:"c"})}});var uz=pe((xpe,sz)=>{"use strict";var dse=pn().gl_mesh3d,pse=pn().delaunay_triangulate,gse=pn().alpha_shape,yse=pn().convex_hull,mse=al().parseColorScale,xse=ir().isArrayOrTypedArray,h5=po(),bse=Li().extractOpts,iz=Vu();function lz(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var d5=lz.prototype;d5.handlePick=function(e){if(e.object===this.mesh){var r=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[r],this.data.y[r],this.data.z[r]];var t=this.data.hovertext||this.data.text;return xse(t)&&t[r]!==void 0?e.textLabel=t[r]:t&&(e.textLabel=t),!0}};function oz(e){for(var r=[],t=e.length,n=0;n=r-.5)return!1;return!0}d5.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=e;var n=e.x.length,a=iz(f5(t.xaxis,e.x,r.dataScale[0],e.xcalendar),f5(t.yaxis,e.y,r.dataScale[1],e.ycalendar),f5(t.zaxis,e.z,r.dataScale[2],e.zcalendar)),o;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!v5(e.i,n)||!v5(e.j,n)||!v5(e.k,n))return;o=iz(c5(e.i),c5(e.j),c5(e.k))}else e.alphahull===0?o=yse(a):e.alphahull>0?o=gse(e.alphahull,a):o=_se(e.delaunayaxis,a);var i={positions:a,cells:o,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:h5(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var l=bse(e);this.color="#fff";var u=e.intensitymode;i[u+"Intensity"]=e.intensity,i[u+"IntensityBounds"]=[l.min,l.max],i.colormap=mse(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],i.vertexColors=oz(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],i.cellColors=oz(e.facecolor)):(this.color=e.color,i.meshColor=h5(e.color));this.mesh.update(i)};d5.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function wse(e,r){var t=e.glplot.gl,n=dse({gl:t}),a=new lz(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}sz.exports=wse});var cz=pe((bpe,fz)=>{"use strict";fz.exports={attributes:Uu(),supplyDefaults:tz(),calc:az(),colorbar:{min:"cmin",max:"cmax"},plot:uz(),moduleType:"trace",name:"mesh3d",basePlotModule:il(),categories:["gl3d","showLegend"],meta:{}}});var hz=pe((_pe,vz)=>{"use strict";vz.exports=cz()});var g5=pe((wpe,pz)=>{"use strict";var Mse=ja(),Gu=ro().axisHoverFormat,Tse=Sa().hovertemplateAttrs,Ase=Uu(),dz=Sn(),p5=Mt().extendFlat,bd={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:Tse({editType:"calc"},{keys:["norm"]}),uhoverformat:Gu("u",1),vhoverformat:Gu("v",1),whoverformat:Gu("w",1),xhoverformat:Gu("x"),yhoverformat:Gu("y"),zhoverformat:Gu("z"),showlegend:p5({},dz.showlegend,{dflt:!1})};p5(bd,Mse("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var kse=["opacity","lightposition","lighting"];kse.forEach(function(e){bd[e]=Ase[e]});bd.hoverinfo=p5({},dz.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});pz.exports=bd});var yz=pe((Mpe,gz)=>{"use strict";var Sse=ir(),Cse=Ei(),Ese=g5();gz.exports=function(r,t,n,a){function o(b,m){return Sse.coerce(r,t,Ese,b,m)}var i=o("u"),l=o("v"),u=o("w"),s=o("x"),f=o("y"),v=o("z");if(!i||!i.length||!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length||!v||!v.length){t.visible=!1;return}var p=o("sizemode");o("sizeref",p==="raw"?1:.5),o("anchor"),o("lighting.ambient"),o("lighting.diffuse"),o("lighting.specular"),o("lighting.roughness"),o("lighting.fresnel"),o("lightposition.x"),o("lightposition.y"),o("lightposition.z"),Cse(r,t,a,o,{prefix:"",cLetter:"c"}),o("text"),o("hovertext"),o("hovertemplate"),o("uhoverformat"),o("vhoverformat"),o("whoverformat"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var xz=pe((Tpe,mz)=>{"use strict";var Lse=zo();mz.exports=function(r,t){for(var n=t.u,a=t.v,o=t.w,i=Math.min(t.x.length,t.y.length,t.z.length,n.length,a.length,o.length),l=-1/0,u=1/0,s=0;s{"use strict";var Rse=pn().gl_cone3d,Dse=pn().gl_cone3d.createConeMesh,Pse=ir().simpleMap,Fse=al().parseColorScale,Ise=Li().extractOpts,Nse=ir().isArrayOrTypedArray,bz=Vu();function _z(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var y5=_z.prototype;y5.handlePick=function(e){if(e.object===this.mesh){var r=e.index=e.data.index,t=this.data.x[r],n=this.data.y[r],a=this.data.z[r],o=this.data.u[r],i=this.data.v[r],l=this.data.w[r];e.traceCoordinate=[t,n,a,o,i,l,Math.sqrt(o*o+i*i+l*l)];var u=this.data.hovertext||this.data.text;return Nse(u)&&u[r]!==void 0?e.textLabel=u[r]:u&&(e.textLabel=u),!0}};var zse={xaxis:0,yaxis:1,zaxis:2},qse={tip:1,tail:0,cm:.25,center:.5},Ose={tip:1,tail:1,cm:.75,center:.5};function wz(e,r){var t=e.fullSceneLayout,n=e.dataScale,a={};function o(f,v){var p=t[v],b=n[zse[v]];return Pse(f,function(m){return p.d2l(m)*b})}a.vectors=bz(o(r.u,"xaxis"),o(r.v,"yaxis"),o(r.w,"zaxis"),r._len),a.positions=bz(o(r.x,"xaxis"),o(r.y,"yaxis"),o(r.z,"zaxis"),r._len);var i=Ise(r);a.colormap=Fse(r),a.vertexIntensityBounds=[i.min/r._normMax,i.max/r._normMax],a.coneOffset=qse[r.anchor];var l=r.sizemode;l==="scaled"?a.coneSize=r.sizeref||.5:l==="absolute"?a.coneSize=r.sizeref&&r._normMax?r.sizeref/r._normMax:.5:l==="raw"&&(a.coneSize=r.sizeref),a.coneSizemode=l;var u=Rse(a),s=r.lightposition;return u.lightPosition=[s.x,s.y,s.z],u.ambient=r.lighting.ambient,u.diffuse=r.lighting.diffuse,u.specular=r.lighting.specular,u.roughness=r.lighting.roughness,u.fresnel=r.lighting.fresnel,u.opacity=r.opacity,r._pad=Ose[r.anchor]*u.vectorScale*u.coneScale*r._normMax,u}y5.update=function(e){this.data=e;var r=wz(this.scene,e);this.mesh.update(r)};y5.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function Bse(e,r){var t=e.glplot.gl,n=wz(e,r),a=Dse(t,n),o=new _z(e,r.uid);return o.mesh=a,o.data=r,a._trace=o,e.glplot.add(a),o}Mz.exports=Bse});var kz=pe((kpe,Az)=>{"use strict";Az.exports={moduleType:"trace",name:"cone",basePlotModule:il(),categories:["gl3d","showLegend"],attributes:g5(),supplyDefaults:yz(),colorbar:{min:"cmin",max:"cmax"},calc:xz(),plot:Tz(),eventData:function(e,r){return e.norm=r.traceCoordinate[6],e},meta:{}}});var Cz=pe((Spe,Sz)=>{"use strict";Sz.exports=kz()});var x5=pe((Cpe,Lz)=>{"use strict";var Use=ja(),Yu=ro().axisHoverFormat,Hse=Sa().hovertemplateAttrs,Vse=Uu(),Ez=Sn(),m5=Mt().extendFlat,_d={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:Hse({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),uhoverformat:Yu("u",1),vhoverformat:Yu("v",1),whoverformat:Yu("w",1),xhoverformat:Yu("x"),yhoverformat:Yu("y"),zhoverformat:Yu("z"),showlegend:m5({},Ez.showlegend,{dflt:!1})};m5(_d,Use("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var Gse=["opacity","lightposition","lighting"];Gse.forEach(function(e){_d[e]=Vse[e]});_d.hoverinfo=m5({},Ez.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});Lz.exports=_d});var Dz=pe((Epe,Rz)=>{"use strict";var Yse=ir(),Wse=Ei(),Xse=x5();Rz.exports=function(r,t,n,a){function o(p,b){return Yse.coerce(r,t,Xse,p,b)}var i=o("u"),l=o("v"),u=o("w"),s=o("x"),f=o("y"),v=o("z");if(!i||!i.length||!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length||!v||!v.length){t.visible=!1;return}o("starts.x"),o("starts.y"),o("starts.z"),o("maxdisplayed"),o("sizeref"),o("lighting.ambient"),o("lighting.diffuse"),o("lighting.specular"),o("lighting.roughness"),o("lighting.fresnel"),o("lightposition.x"),o("lightposition.y"),o("lightposition.z"),Wse(r,t,a,o,{prefix:"",cLetter:"c"}),o("text"),o("hovertext"),o("hovertemplate"),o("uhoverformat"),o("vhoverformat"),o("whoverformat"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var Bz=pe((Lpe,Oz)=>{"use strict";var Iz=pn().gl_streamtube3d,Zse=Iz.createTubeMesh,Jse=ir(),Kse=al().parseColorScale,Qse=Li().extractOpts,Pz=Vu(),Nz={xaxis:0,yaxis:1,zaxis:2};function zz(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var _5=zz.prototype;_5.handlePick=function(e){var r=this.scene.fullSceneLayout,t=this.scene.dataScale;function n(i,l){var u=r[l],s=t[Nz[l]];return u.l2c(i)/s}if(e.object===this.mesh){var a=e.data.position,o=e.data.velocity;return e.traceCoordinate=[n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),n(o[0],"xaxis"),n(o[1],"yaxis"),n(o[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function Fz(e){var r=e.length,t;return r>2?t=e.slice(1,r-1):r===2?t=[(e[0]+e[1])/2]:t=e,t}function b5(e){var r=e.length;return r===1?[.5,.5]:[e[1]-e[0],e[r-1]-e[r-2]]}function qz(e,r){var t=e.fullSceneLayout,n=e.dataScale,a=r._len,o={};function i(R,E){var D=t[E],N=n[Nz[E]];return Jse.simpleMap(R,function(I){return D.d2l(I)*N})}if(o.vectors=Pz(i(r._u,"xaxis"),i(r._v,"yaxis"),i(r._w,"zaxis"),a),!a)return{positions:[],cells:[]};var l=i(r._Xs,"xaxis"),u=i(r._Ys,"yaxis"),s=i(r._Zs,"zaxis");o.meshgrid=[l,u,s],o.gridFill=r._gridFill;var f=r._slen;if(f)o.startingPositions=Pz(i(r._startsX,"xaxis"),i(r._startsY,"yaxis"),i(r._startsZ,"zaxis"));else{for(var v=u[0],p=Fz(l),b=Fz(s),m=new Array(p.length*b.length),w=0,M=0;M{"use strict";Uz.exports={moduleType:"trace",name:"streamtube",basePlotModule:il(),categories:["gl3d","showLegend"],attributes:x5(),supplyDefaults:Dz(),colorbar:{min:"cmin",max:"cmax"},calc:gd().calc,plot:Bz(),eventData:function(e,r){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=r.traceCoordinate[3],e.tubev=r.traceCoordinate[4],e.tubew=r.traceCoordinate[5],e.norm=r.traceCoordinate[6],e.divergence=r.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var Gz=pe((Dpe,Vz)=>{"use strict";Vz.exports=Hz()});var Dn=pe((Ppe,Wz)=>{"use strict";var Yz=Object.getOwnPropertySymbols,jse=Object.prototype.hasOwnProperty,eue=Object.prototype.propertyIsEnumerable;function rue(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function tue(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var n=Object.getOwnPropertyNames(r).map(function(o){return r[o]});if(n.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(o){a[o]=o}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(o){return!1}}Wz.exports=tue()?Object.assign:function(e,r){for(var t,n=rue(e),a,o=1;o{var Md=Dn();function Xz(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}Md(Xz.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,n,a){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,a):n)||this.instance(),n.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var n="",a=0;t>0;){var o=t%10;n=(o===0?"":e[o]+r[a])+n,a++,t=Math.floor(t/10)}return n.indexOf(e[1]+r[1])===0&&(n=n.substr(1)),n||e[0]}}});function w5(e,r,t,n){if(this._calendar=e,this._year=r,this._month=t,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function wd(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}Md(w5.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Wr.local.differentCalendars||Wr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+wd(Math.abs(this.year()),4)+"-"+wd(this.month(),2)+"-"+wd(this.day(),2)}});function M5(){this.shortYearCutoff="+10"}Md(M5.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new w5(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Wr.local.invalidYear||Wr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Wr.local.invalidYear||Wr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+wd(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Wr.local.invalidYear||Wr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Wr.local.invalidMonth||Wr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Wr.local.invalidMonth||Wr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Wr.local.invalidYear||Wr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var n=this._validate(e,r,t,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var n=e.toJD()+r*(t==="w"?this.daysInWeek():1),a=e.calendar().fromJD(n);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var o=e.year()+(t==="y"?r:0),i=e.monthOfYear()+(t==="m"?r:0),a=e.day(),l=function(f){for(;iv-1+f.minMonth;)o++,i-=v,v=f.monthsInYear(o)};t==="y"?(e.month()!==this.fromMonthOfYear(o,i)&&(i=this.newDate(o,e.month(),this.minDay).monthOfYear()),i=Math.min(i,this.monthsInYear(o)),a=Math.min(a,this.daysInMonth(o,this.fromMonthOfYear(o,i)))):t==="m"&&(l(this),a=Math.min(a,this.daysInMonth(o,this.fromMonthOfYear(o,i))));var u=[o,this.fromMonthOfYear(o,i),a];return this._validateLevel--,u}catch(s){throw this._validateLevel--,s}},_correctAdd:function(e,r,t,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],o=t<0?-1:1;r=this._add(e,t*a[0]+o*a[1],a[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate);var n=t==="y"?r:e.year(),a=t==="m"?r:e.month(),o=t==="d"?r:e.day();return(t==="y"||t==="m")&&(o=Math.min(o,this.daysInMonth(n,a))),e.date(n,a,o)},isValid:function(e,r,t){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var a=this.newDate(e,r,this.minDay);n=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),s=a-(u>2.5?4716:4715);return s<=0&&s--,this.newDate(s,u,l)},toJSDate:function(e,r,t){var n=this._validate(e,r,t,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate),a=new Date(n.year(),n.month()-1,n.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Wr=Zz.exports=new Xz;Wr.cdate=w5;Wr.baseCalendar=M5;Wr.calendars.gregorian=T5});var Jz=pe(()=>{var A5=Dn(),gn=Pn();A5(gn.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});gn.local=gn.regionalOptions[""];A5(gn.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});A5(gn.baseCalendar.prototype,{UNIX_EPOCH:gn.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:gn.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw gn.local.invalidFormat||gn.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var n=t.dayNamesShort||this.local.dayNamesShort,a=t.dayNames||this.local.dayNames,o=t.monthNumbers||this.local.monthNumbers,i=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,u=t.calculateWeek||this.local.calculateWeek,s=function(x,T){for(var d=1;S+d1},f=function(x,T,d,_){var g=""+T;if(s(x,_))for(;g.length1},k=function(R,E){var D=y(R,E),N=[2,3,D?4:2,D?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],I=new RegExp("^-?\\d{1,"+N+"}"),F=r.substring(g).match(I);if(!F)throw(gn.local.missingNumberAt||gn.regionalOptions[""].missingNumberAt).replace(/\{0\}/,g);return g+=F[0].length,parseInt(F[0],10)},S=this,x=function(){if(typeof l=="function"){y("m");var R=l.call(S,r.substring(g));return g+=R.length,R}return k("m")},T=function(R,E,D,N){for(var I=y(R,N)?D:E,F=0;F-1){p=1,b=m;for(var h=this.daysInMonth(v,p);b>h;h=this.daysInMonth(v,p))p++,b-=h}return f>-1?this.fromJD(f):this.newDate(v,p,b)},determineDate:function(e,r,t,n,a){t&&typeof t!="object"&&(a=n,n=t,t=null),typeof n!="string"&&(a=n,n="");var o=this,i=function(l){try{return o.parseDate(n,l,a)}catch(v){}l=l.toLowerCase();for(var u=(l.match(/^c/)&&t?t.newDate():null)||o.today(),s=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=s.exec(l);f;)u.add(parseInt(f[1],10),f[2]||"d"),f=s.exec(l);return u};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?i(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:o.today().add(e,"d"):o.newDate(e),e}})});var Kz=pe(()=>{var sl=Pn(),nue=Dn(),k5=sl.instance();function Td(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Td.prototype=new sl.baseCalendar;nue(Td.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(iue);return t?t[0]:""}var n=this._validateYear(e),a=e.month(),o=""+this.toChineseMonth(n,a);return r&&o.length<2&&(o="0"+o),this.isIntercalaryMonth(n,a)&&(o+="i"),o},monthNames:function(e){if(typeof e=="string"){var r=e.match(oue);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),o=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][a-1];return this.isIntercalaryMonth(t,n)&&(o="\u95F0"+o),o},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(lue);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),o=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][a-1];return this.isIntercalaryMonth(t,n)&&(o="\u95F0"+o),o},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),n;if(isNaN(t))r[0]==="\u95F0"&&(n=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var a=r[r.length-1];n=a==="i"||a==="I"}var o=this.toMonthIndex(e,t,n);return o},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var n=this.intercalaryMonth(e),a=t&&r!==n;if(a||r<1||r>12)throw sl.local.invalidMonth.replace(/\{0\}/,this.local.name);var o;return n?!t&&r<=n?o=r-1:o=r:o=r-1,o},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),n=t?12:11;if(r<0||r>n)throw sl.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var n=this._validateYear(e,sl.local.invalidyear),a=fl[n-fl[0]],o=a>>9&4095,i=a>>5&15,l=a&31,u;u=k5.newDate(o,i,l),u.add(4-(u.dayOfWeek()||7),"d");var s=this.toJD(e,r,t)-u.toJD();return 1+Math.floor(s/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=ul[e-ul[0]],n=t>>13,a=n?12:11;if(r>a)throw sl.local.invalidMonth.replace(/\{0\}/,this.local.name);var o=t&1<<12-r?30:29;return o},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,o,t,sl.local.invalidDate);e=this._validateYear(n.year()),r=n.month(),t=n.day();var a=this.isIntercalaryMonth(e,r),o=this.toChineseMonth(e,r),i=uue(e,o,t,a);return k5.toJD(i.year,i.month,i.day)},fromJD:function(e){var r=k5.fromJD(e),t=sue(r.year(),r.month(),r.day()),n=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,n,t.day)},fromString:function(e){var r=e.match(aue),t=this._validateYear(+r[1]),n=+r[2],a=!!r[3],o=this.toMonthIndex(t,n,a),i=+r[4];return this.newDate(t,o,i)},add:function(e,r,t){var n=e.year(),a=e.month(),o=this.isIntercalaryMonth(n,a),i=this.toChineseMonth(n,a),l=Object.getPrototypeOf(Td.prototype).add.call(this,e,r,t);if(t==="y"){var u=l.year(),s=l.month(),f=this.isIntercalaryMonth(u,i),v=o&&f?this.toMonthIndex(u,i,!0):this.toMonthIndex(u,i,!1);v!==s&&l.month(v)}return l}});var aue=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,iue=/^\d?\d[iI]?/m,oue=/^闰?十?[一二三四五六七八九]?月/m,lue=/^闰?十?[一二三四五六七八九]?/m;sl.calendars.chinese=Td;var ul=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],fl=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function sue(e,r,t,n){var a,o;if(typeof e=="object")a=e,o=r||{};else{var i=typeof e=="number"&&e>=1888&&e<=2111;if(!i)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=31;if(!u)throw new Error("Solar day outside range 1 - 31");a={year:e,month:r,day:t},o=n||{}}var s=fl[a.year-fl[0]],f=a.year<<9|a.month<<5|a.day;o.year=f>=s?a.year:a.year-1,s=fl[o.year-fl[0]];var v=s>>9&4095,p=s>>5&15,b=s&31,m,w=new Date(v,p-1,b),M=new Date(a.year,a.month-1,a.day);m=Math.round((M-w)/(24*3600*1e3));var y=ul[o.year-ul[0]],k;for(k=0;k<13;k++){var S=y&1<<12-k?30:29;if(m>13;return!x||k=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var u=typeof r=="number"&&r>=1&&r<=12;if(!u)throw new Error("Lunar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=30;if(!s)throw new Error("Lunar day outside range 1 - 30");var f;typeof n=="object"?(f=!1,o=n):(f=!!n,o=a||{}),i={year:e,month:r,day:t,isIntercalary:f}}var v;v=i.day-1;var p=ul[i.year-ul[0]],b=p>>13,m;b&&(i.month>b||i.isIntercalary)?m=i.month:m=i.month-1;for(var w=0;w>9&4095,S=y>>5&15,x=y&31,T=new Date(k,S-1,x+v);return o.year=T.getFullYear(),o.month=1+T.getMonth(),o.day=T.getDate(),o}});var Qz=pe(()=>{var vs=Pn(),fue=Dn();function S5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}S5.prototype=new vs.baseCalendar;fue(S5.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,vs.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,vs.local.invalidYear||vs.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,vs.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,vs.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});vs.calendars.coptic=S5});var $z=pe(()=>{var mo=Pn(),cue=Dn();function C5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C5.prototype=new mo.baseCalendar;cue(C5.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,mo.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,mo.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,mo.local.invalidYear),400},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,mo.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,mo.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,r,t){var n=this.dayOfWeek(e,r,t);return n>=2&&n<=6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,mo.local.invalidDate);return{century:vue[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,r,t){var n=this._validate(e,r,t,mo.local.invalidDate);return e=n.year()+(n.year()<0?1:0),r=n.month(),t=n.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,n=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,n)}});var vue={20:"Fruitbat",21:"Anchovy"};mo.calendars.discworld=C5});var jz=pe(()=>{var hs=Pn(),hue=Dn();function E5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}E5.prototype=new hs.baseCalendar;hue(E5.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,hs.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,hs.local.invalidYear||hs.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,hs.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,hs.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});hs.calendars.ethiopian=E5});var eq=pe(()=>{var cl=Pn(),due=Dn();function L5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}L5.prototype=new cl.baseCalendar;due(L5.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,cl.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Ad(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cl.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,cl.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,cl.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Ad(this.daysInYear(e),10)===5?30:r===9&&Ad(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,cl.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,r,t){var n=this._validate(e,r,t,cl.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=e<=0?e+1:e,o=this.jdEpoch+this._delay1(a)+this._delay2(a)+t+1;if(r<7){for(var i=7;i<=this.monthsInYear(e);i++)o+=this.daysInMonth(e,i);for(var i=1;i=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});function Ad(e,r){return e-r*Math.floor(e/r)}cl.calendars.hebrew=L5});var rq=pe(()=>{var H0=Pn(),pue=Dn();function R5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}R5.prototype=new H0.baseCalendar;pue(R5.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,H0.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,H0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,H0.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});H0.calendars.islamic=R5});var tq=pe(()=>{var V0=Pn(),gue=Dn();function D5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}D5.prototype=new V0.baseCalendar;gue(D5.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,V0.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,V0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,V0.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,n=Math.floor((t-122.1)/365.25),a=Math.floor(365.25*n),o=Math.floor((t-a)/30.6001),i=o-Math.floor(o<14?1:13),l=n-Math.floor(i>2?4716:4715),u=t-a-Math.floor(30.6001*o);return l<=0&&l--,this.newDate(l,i,u)}});V0.calendars.julian=D5});var aq=pe(()=>{var Ya=Pn(),yue=Dn();function F5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}F5.prototype=new Ya.baseCalendar;yue(F5.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ya.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ya.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return t+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&n<0)throw"Invalid Mayan year";r=r*20+n}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ya.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Ya.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ya.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Ya.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Ya.local.invalidDate);return n.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Ya.local.invalidDate),!0},extraInfo:function(e,r,t){var n=this._validate(e,r,t,Ya.local.invalidDate),a=n.toJD(),o=this._toHaab(a),i=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[o[0]-1],haabMonth:o[0],haabDay:o[1],tzolkinDayName:this.local.tzolkinMonths[i[0]-1],tzolkinDay:i[0],tzolkinTrecena:i[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=P5(e+8+17*20,365);return[Math.floor(r/20)+1,P5(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[nq(e+20,20),nq(e+4,13)]},toJD:function(e,r,t){var n=this._validate(e,r,t,Ya.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),n=e%20;return this.newDate(r,t,n)}});function P5(e,r){return e-r*Math.floor(e/r)}function nq(e,r){return P5(e-1,r)+1}Ya.calendars.mayan=F5});var oq=pe(()=>{var ds=Pn(),mue=Dn();function I5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}I5.prototype=new ds.baseCalendar;var iq=ds.instance("gregorian");mue(I5.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ds.local.invalidYear||ds.regionalOptions[""].invalidYear);return iq.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ds.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,ds.local.invalidMonth),a=n.year();a<0&&a++;for(var o=n.day(),i=1;i=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,n=1;t>this.daysInMonth(r,n);)t-=this.daysInMonth(r,n),n++;return this.newDate(r,n,t)}});ds.calendars.nanakshahi=I5});var lq=pe(()=>{var ps=Pn(),xue=Dn();function N5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}N5.prototype=new ps.baseCalendar;xue(N5.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ps.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,n=this.minMonth;n<=12;n++)t+=this.NEPALI_CALENDAR_DATA[e][n];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,ps.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var n=this._validate(e,r,t,ps.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=ps.instance(),o=0,i=r,l=e;this._createMissingCalendarData(e);var u=e-(i>9||i===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(o=t,i--);i!==9;)i<=0&&(i=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][i],i--;return r===9?(o+=t-this.NEPALI_CALENDAR_DATA[l][0],o<0&&(o+=a.daysInYear(u))):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(u,1,1).add(o,"d").toJD()},fromJD:function(e){var r=ps.instance(),t=r.fromJD(e),n=t.year(),a=t.dayOfYear(),o=n+56;this._createMissingCalendarData(o);for(var i=9,l=this.NEPALI_CALENDAR_DATA[o][0],u=this.NEPALI_CALENDAR_DATA[o][i]-l+1;a>u;)i++,i>12&&(i=1,o++),u+=this.NEPALI_CALENDAR_DATA[o][i];var s=this.NEPALI_CALENDAR_DATA[o][i]-(u-a);return this.newDate(o,i,s)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Wu=Pn(),bue=Dn();function Sd(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function kd(e){var r=e-475;e<0&&r++;var t=.242197,n=t*r,a=t*(r+1),o=n-Math.floor(n),i=a-Math.floor(a);return o>i}Sd.prototype=new Wu.baseCalendar;bue(Sd.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Wu.local.invalidYear);return kd(r.year())},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Wu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,Wu.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=0;if(e>0)for(var o=1;o0?e-1:e)*365+a+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,kd(t)?30:29)&&(t++,t===0&&t++);var n=e-this.toJD(t,1,1)+1,a=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),o=e-this.toJD(t,a,1)+1;return this.newDate(t,a,o)}});Wu.calendars.persian=Sd;Wu.calendars.jalali=Sd});var uq=pe(()=>{var gs=Pn(),_ue=Dn(),Cd=gs.instance();function z5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}z5.prototype=new gs.baseCalendar;_ue(z5.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,gs.local.invalidYear),t=this._t2gYear(r.year());return Cd.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,gs.local.invalidYear),a=this._t2gYear(n.year());return Cd.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,gs.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,gs.local.invalidDate),a=this._t2gYear(n.year());return Cd.toJD(a,n.month(),n.day())},fromJD:function(e){var r=Cd.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});gs.calendars.taiwan=z5});var fq=pe(()=>{var ys=Pn(),wue=Dn(),Ed=ys.instance();function q5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}q5.prototype=new ys.baseCalendar;wue(q5.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,ys.local.invalidYear),t=this._t2gYear(r.year());return Ed.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,ys.local.invalidYear),a=this._t2gYear(n.year());return Ed.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ys.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,ys.local.invalidDate),a=this._t2gYear(n.year());return Ed.toJD(a,n.month(),n.day())},fromJD:function(e){var r=Ed.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});ys.calendars.thai=q5});var cq=pe(()=>{var ms=Pn(),Mue=Dn();function O5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}O5.prototype=new ms.baseCalendar;Mue(O5.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ms.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,ms.local.invalidMonth),n=t.toJD()-24e5+.5,a=0,o=0;on)return vl[a]-vl[a-1];a++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,ms.local.invalidDate),a=12*(n.year()-1)+n.month()-15292,o=n.day()+vl[a-1]-1;return o+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,n=0;nr);n++)t++;var a=t+15292,o=Math.floor((a-1)/12),i=o+1,l=a-12*o,u=r-vl[t-1]+1;return this.newDate(i,l,u)},isValid:function(e,r,t){var n=ms.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,r,t,n){var a=ms.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw n.replace(/\{0\}/,this.local.name);return a}});ms.calendars.ummalqura=O5;var vl=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var hq=pe((cge,vq)=>{"use strict";vq.exports=Pn();Jz();Kz();Qz();$z();jz();eq();rq();tq();aq();oq();lq();sq();uq();fq();cq()});var bq=pe((vge,xq)=>{"use strict";var pq=hq(),G0=ir(),gq=nn(),Tue=gq.EPOCHJD,Aue=gq.ONEDAY,H5={valType:"enumerated",values:G0.sortObjectKeys(pq.calendars),editType:"calc",dflt:"gregorian"},yq=function(e,r,t,n){var a={};return a[t]=H5,G0.coerce(e,r,a,t,n)},kue=function(e,r,t,n){for(var a=0;a{"use strict";_q.exports=bq()});var Due=pe((dge,Tq)=>{var Mq=wF();Mq.register([$I(),MN(),UN(),jN(),hz(),Cz(),Gz(),wq()]);Tq.exports=Mq});return Due();})(); +`),Y=j.length,q=Math.round(L*F),Q=F,ne=F*2,K=0,ie=Y*q+ne;D.height-1?parseInt(ge[1+me]):0,he=Re>-1?parseInt(we[1+Re]):0;ce!==he&&(Me=Me.replace(Ae(),"?px "),te*=Math.pow(.75,he-ce),Me=Me.replace("?px ",Ae())),H+=.25*q*(he-ce)}if(P.superscripts===!0){var ye=ge.indexOf(k),Ce=we.indexOf(k),ze=ye>-1?parseInt(ge[1+ye]):0,qe=Ce>-1?parseInt(we[1+Ce]):0;ze!==qe&&(Me=Me.replace(Ae(),"?px "),te*=Math.pow(.75,qe-ze),Me=Me.replace("?px ",Ae())),H-=.25*q*(qe-ze)}if(P.bolds===!0){var $e=ge.indexOf(m)>-1,We=we.indexOf(m)>-1;!$e&&We&&(Ue?Me=Me.replace("italic ","italic bold "):Me="bold "+Me),$e&&!We&&(Me=Me.replace("bold ",""))}if(P.italics===!0){var Ue=ge.indexOf(M)>-1,Ge=we.indexOf(M)>-1;!Ue&&Ge&&(Me="italic "+Me),Ue&&!Ge&&(Me=Me.replace("italic ",""))}N.font=Me}for(ee=0;ee0&&(L=F.size),F.lineSpacing&&F.lineSpacing>0&&(P=F.lineSpacing),F.styletags&&F.styletags.breaklines&&(O.breaklines=!!F.styletags.breaklines),F.styletags&&F.styletags.bolds&&(O.bolds=!!F.styletags.bolds),F.styletags&&F.styletags.italics&&(O.italics=!!F.styletags.italics),F.styletags&&F.styletags.subscripts&&(O.subscripts=!!F.styletags.subscripts),F.styletags&&F.styletags.superscripts&&(O.superscripts=!!F.styletags.superscripts)),I.font=[F.fontStyle,F.fontVariant,F.fontWeight,L+"px",F.font].filter(function(X){return X}).join(" "),I.textAlign="start",I.textBaseline="alphabetic",I.direction="ltr";var U=c(N,I,D,L,P,O);return R(U,F,L)}},1538:function(a){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function i(h){h.permitHostObjects___&&h.permitHostObjects___(i)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=i);var l=!1;if(typeof WeakMap=="function"){var u=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var s=new u,f=Object.freeze({});if(s.set(f,1),s.get(f)!==1)l=!0;else{a.exports=WeakMap;return}}}var v=Object.prototype.hasOwnProperty,p=Object.getOwnPropertyNames,b=Object.defineProperty,m=Object.isExtensible,w="weakmap:",M=w+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var y=new ArrayBuffer(25),k=new Uint8Array(y);crypto.getRandomValues(k),M=w+"rand:"+Array.prototype.map.call(k,function(h){return(h%36).toString(36)}).join("")+"___"}function S(h){return!(h.substr(0,w.length)==w&&h.substr(h.length-3)==="___")}if(b(Object,"getOwnPropertyNames",{value:function(R){return p(R).filter(S)}}),"getPropertyNames"in Object){var x=Object.getPropertyNames;b(Object,"getPropertyNames",{value:function(R){return x(R).filter(S)}})}function T(h){if(h!==Object(h))throw new TypeError("Not an object: "+h);var R=h[M];if(R&&R.key===h)return R;if(m(h)){R={key:h};try{return b(h,M,{value:R,writable:!1,enumerable:!1,configurable:!1}),R}catch(E){return}}}(function(){var h=Object.freeze;b(Object,"freeze",{value:function(N){return T(N),h(N)}});var R=Object.seal;b(Object,"seal",{value:function(N){return T(N),R(N)}});var E=Object.preventExtensions;b(Object,"preventExtensions",{value:function(N){return T(N),E(N)}})})();function d(h){return h.prototype=null,Object.freeze(h)}var _=!1;function g(){!_&&typeof console!="undefined"&&(_=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var c=0,A=function(){this instanceof A||g();var h=[],R=[],E=c++;function D(L,P){var O,U=T(L);return U?E in U?U[E]:P:(O=h.indexOf(L),O>=0?R[O]:P)}function N(L){var P=T(L);return P?E in P:h.indexOf(L)>=0}function I(L,P){var O,U=T(L);return U?U[E]=P:(O=h.indexOf(L),O>=0?R[O]=P:(O=h.length,R[O]=P,h[O]=L)),this}function F(L){var P=T(L),O,U;return P?E in P&&delete P[E]:(O=h.indexOf(L),O<0?!1:(U=h.length-1,h[O]=void 0,R[O]=R[U],h[O]=h[U],h.length=U,R.length=U,!0))}return Object.create(A.prototype,{get___:{value:d(D)},has___:{value:d(N)},set___:{value:d(I)},delete___:{value:d(F)}})};A.prototype=Object.create(Object.prototype,{get:{value:function(R,E){return this.get___(R,E)},writable:!0,configurable:!0},has:{value:function(R){return this.has___(R)},writable:!0,configurable:!0},set:{value:function(R,E){return this.set___(R,E)},writable:!0,configurable:!0},delete:{value:function(R){return this.delete___(R)},writable:!0,configurable:!0}}),typeof u=="function"?function(){l&&typeof Proxy!="undefined"&&(Proxy=void 0);function h(){this instanceof A||g();var R=new u,E=void 0,D=!1;function N(P,O){return E?R.has(P)?R.get(P):E.get___(P,O):R.get(P,O)}function I(P){return R.has(P)||(E?E.has___(P):!1)}var F;l?F=function(P,O){return R.set(P,O),R.has(P)||(E||(E=new A),E.set(P,O)),this}:F=function(P,O){if(D)try{R.set(P,O)}catch(U){E||(E=new A),E.set___(P,O)}else R.set(P,O);return this};function L(P){var O=!!R.delete(P);return E&&E.delete___(P)||O}return Object.create(A.prototype,{get___:{value:d(N)},has___:{value:d(I)},set___:{value:d(F)},delete___:{value:d(L)},permitHostObjects___:{value:d(function(P){if(P===i)D=!0;else throw new Error("bogus call to permitHostObjects___")})}})}h.prototype=A.prototype,a.exports=h,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy!="undefined"&&(Proxy=void 0),a.exports=A)})()},236:function(a,o,i){var l=i(8284);a.exports=u;function u(){var s={};return function(f){if((typeof f!="object"||f===null)&&typeof f!="function")throw new Error("Weakmap-shim: Key must be object");var v=f.valueOf(s);return v&&v.identity===s?v:l(f,s)}}},8284:function(a){a.exports=o;function o(i,l){var u={identity:l},s=i.valueOf;return Object.defineProperty(i,"valueOf",{value:function(f){return f!==l?s.apply(this,arguments):u},writable:!0}),u}},606:function(a,o,i){var l=i(236);a.exports=u;function u(){var s=l();return{get:function(f,v){var p=s(f);return p.hasOwnProperty("value")?p.value:v},set:function(f,v){return s(f).value=v,this},has:function(f){return"value"in s(f)},delete:function(f){return delete s(f).value}}}},3349:function(a){"use strict";function o(){return function(v,p,b,m,w,M){var y=v[0],k=b[0],S=[0],x=k;m|=0;var T=0,d=k;for(T=0;T=0!=g>=0&&w.push(S[0]+.5+.5*(_+g)/(_-g))}m+=d,++S[0]}}}function i(){return o()}var l=i;function u(v){var p={};return function(m,w,M){var y=m.dtype,k=m.order,S=[y,k.join()].join(),x=p[S];return x||(p[S]=x=v([y,k])),x(m.shape.slice(0),m.data,m.stride,m.offset|0,w,M)}}function s(v){return u(l.bind(void 0,v))}function f(v){return s({funcName:v.funcName})}a.exports=f({funcName:"zeroCrossings"})},781:function(a,o,i){"use strict";a.exports=u;var l=i(3349);function u(s,f){var v=[];return f=+f||0,l(s.hi(s.shape[0]-1),v,f),v}},7790:function(){}},r={};function t(a){var o=r[a];if(o!==void 0)return o.exports;var i=r[a]={id:a,loaded:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}(function(){t.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(a){if(typeof window=="object")return window}}()})(),function(){t.nmd=function(a){return a.paths=[],a.children||(a.children=[]),a}}();var n=t(1964);TF.exports=n})()});var kF=pe((wde,AF)=>{"use strict";AF.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var LF=pe((Mde,EF)=>{"use strict";var SF=kF();EF.exports=oie;var CF={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function oie(e){var r,t=[],n=1,a;if(typeof e=="string")if(e=e.toLowerCase(),SF[e])t=SF[e].slice(),a="rgb";else if(e==="transparent")n=0,a="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var o=e.slice(1),i=o.length,l=i<=4;n=1,l?(t=[parseInt(o[0]+o[0],16),parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16)],i===4&&(n=parseInt(o[3]+o[3],16)/255)):(t=[parseInt(o[0]+o[1],16),parseInt(o[2]+o[3],16),parseInt(o[4]+o[5],16)],i===8&&(n=parseInt(o[6]+o[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),a="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var u=r[1],s=u==="rgb",o=u.replace(/a$/,"");a=o;var i=o==="cmyk"?4:o==="gray"?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(p,b){if(/%$/.test(p))return b===i?parseFloat(p)/100:o==="rgb"?parseFloat(p)*255/100:parseFloat(p);if(o[b]==="h"){if(/deg$/.test(p))return parseFloat(p);if(CF[p]!==void 0)return CF[p]}return parseFloat(p)}),u===o&&t.push(1),n=s||t[i]===void 0?1:t[i],t=t.slice(0,i)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(t=e.match(/([0-9]+)/g).map(function(f){return parseFloat(f)}),a=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(t=[e[0],e[1],e[2]],a="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(a="rgb",t=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(a="hsl",t=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(a="rgb",t=[e>>>16,(e&65280)>>>8,e&255]);return{space:a,values:t,alpha:n}}});var DF=pe((Tde,RF)=>{"use strict";var lie=LF();RF.exports=function(r){Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var t,n,a,o=lie(r);if(!o.space)return[];var i=[0,0,0],l=o.space[0]==="h"?[360,100,100]:[255,255,255];return t=Array(3),t[0]=Math.min(Math.max(o.values[0],i[0]),l[0]),t[1]=Math.min(Math.max(o.values[1],i[1]),l[1]),t[2]=Math.min(Math.max(o.values[2],i[2]),l[2]),o.space[0]==="h"&&(t=sie(t)),t.push(Math.min(Math.max(o.alpha,0),1)),t};function sie(e){var r=e[0]/360,t=e[1]/100,n=e[2]/100,a,o,i,l,u,s=0;if(t===0)return u=n*255,[u,u,u];for(o=n<.5?n*(1+t):n+t-n*t,a=2*n-o,l=[0,0,0];s<3;)i=r+1/3*-(s-1),i<0?i++:i>1&&i--,u=6*i<1?a+(o-a)*6*i:2*i<1?o:3*i<2?a+(o-a)*(2/3-i)*6:a,l[s++]=u*255;return l}});var FF=pe((Ade,PF)=>{PF.exports=uie;function uie(e,r,t){return rt?t:e:er?r:e}});var NF=pe((kde,IF)=>{IF.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var M3=pe((Sde,zF)=>{"use strict";var fie=DF(),ad=FF(),cie=NF();zF.exports=function(r,t){(t==="float"||!t)&&(t="array"),t==="uint"&&(t="uint8"),t==="uint_clamped"&&(t="uint8_clamped");var n=cie(t),a=new n(4),o=t!=="uint8"&&t!=="uint8_clamped";return(!r.length||typeof r=="string")&&(r=fie(r),r[0]/=255,r[1]/=255,r[2]/=255),vie(r)?(a[0]=r[0],a[1]=r[1],a[2]=r[2],a[3]=r[3]!=null?r[3]:255,o&&(a[0]/=255,a[1]/=255,a[2]/=255,a[3]/=255),a):(o?(a[0]=r[0],a[1]=r[1],a[2]=r[2],a[3]=r[3]!=null?r[3]:1):(a[0]=ad(Math.floor(r[0]*255),0,255),a[1]=ad(Math.floor(r[1]*255),0,255),a[2]=ad(Math.floor(r[2]*255),0,255),a[3]=r[3]==null?255:ad(Math.floor(r[3]*255),0,255)),a)};function vie(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var po=pe((Cde,qF)=>{"use strict";var hie=M3();function die(e){return e?hie(e):[0,0,0,1]}qF.exports=die});var al=pe((Ede,YF)=>{"use strict";var VF=rt(),pie=Sa(),id=M3(),od=Li(),gie=Ti().defaultLine,OF=jn().isArrayOrTypedArray,T3=id(gie),GF=1;function BF(e,r){var t=e;return t[3]*=r,t}function UF(e){if(VF(e))return T3;var r=id(e);return r.length?r:T3}function HF(e){return VF(e)?e:GF}function yie(e,r,t){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var a=OF(n),o=OF(r),i=od.extractOpts(e),l=[],u,s,f,v,p;if(i.colorscale!==void 0?u=od.makeColorScaleFuncFromTrace(e):u=UF,a?s=function(m,w){return m[w]===void 0?T3:id(u(m[w]))}:s=UF,o?f=function(m,w){return m[w]===void 0?GF:HF(m[w])}:f=HF,a||o)for(var b=0;b{"use strict";WF.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}});var ld=pe((Rde,XF)=>{"use strict";XF.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var JF=pe((Dde,ZF)=>{"use strict";var xie=Er();function k3(e,r,t,n){if(!r||!r.visible)return null;for(var a=xie.getComponentMethod("errorbars","makeComputeError")(r),o=new Array(e.length),i=0;i0){var v=n.c2l(s);n._lowerLogErrorBound||(n._lowerLogErrorBound=v),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,v)}}else o[i]=[-l[0]*t,l[1]*t]}return o}function bie(e){for(var r=0;r{"use strict";var wie=pn().gl_line3d,KF=pn().gl_scatter3d,Mie=pn().gl_error3d,Tie=pn().gl_mesh3d,Aie=pn().delaunay_triangulate,go=ir(),rI=po(),sd=al().formatColor,kie=kg(),S3=A3(),Sie=ld(),Cie=Ct(),Eie=to().appendArrayPointValue,Lie=JF();function tI(e,r){this.scene=e,this.uid=r,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var E3=tI.prototype;E3.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var r=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(go.isArrayOrTypedArray(this.textLabels)?(this.textLabels[r]||this.textLabels[r]===0)&&(e.textLabel=this.textLabels[r]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[r],this.data.y[r],this.data.z[r]],!0}};function Rie(e,r,t){var n=(t+1)%3,a=(t+2)%3,o=[],i=[],l;for(l=0;l-1?-1:e.indexOf("right")>-1?1:0}function $F(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function Pie(e){var r=0,t=0,n=[r,t];if(Array.isArray(e))for(var a=0;a=0){var s=Rie(l.position,l.delaunayColor,l.delaunayAxis);s.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(s):(s.gl=r,this.delaunayMesh=Tie(s),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)};E3.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function zie(e,r){var t=new tI(e,r.uid);return t.update(r),t}nI.exports=zie});var F3=pe((Fde,lI)=>{"use strict";var yo=$l(),qie=kn(),P3=ja(),L3=ro().axisHoverFormat,Oie=ha().hovertemplateAttrs,Bie=ha().texttemplateAttrs,iI=Sn(),Uie=A3(),Hie=ld(),gi=Mt().extendFlat,Vie=zn().overrideAll,oI=Wc(),Gie=yo.line,fs=yo.marker,Yie=fs.line,Wie=gi({width:Gie.width,dash:{valType:"enumerated",values:oI(Uie),dflt:"solid"}},P3("line"));function R3(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var D3=lI.exports=Vie({x:yo.x,y:yo.y,z:{valType:"data_array"},text:gi({},yo.text,{}),texttemplate:Bie({},{}),hovertext:gi({},yo.hovertext,{}),hovertemplate:Oie(),xhoverformat:L3("x"),yhoverformat:L3("y"),zhoverformat:L3("z"),mode:gi({},yo.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:R3("x"),y:R3("y"),z:R3("z")},connectgaps:yo.connectgaps,line:Wie,marker:gi({symbol:{valType:"enumerated",values:oI(Hie),dflt:"circle",arrayOk:!0},size:gi({},fs.size,{dflt:8}),sizeref:fs.sizeref,sizemin:fs.sizemin,sizemode:fs.sizemode,opacity:gi({},fs.opacity,{arrayOk:!1}),colorbar:fs.colorbar,line:gi({width:gi({},Yie.width,{arrayOk:!1})},P3("marker.line"))},P3("marker")),textposition:gi({},yo.textposition,{dflt:"top center"}),textfont:qie({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:iI.opacity,hoverinfo:gi({},iI.hoverinfo)},"calc","nested");D3.x.editType=D3.y.editType=D3.z.editType="calc+clearAxisTypes"});var fI=pe((Ide,uI)=>{"use strict";var sI=Er(),Xie=ir(),I3=ia(),Zie=em(),Jie=rm(),Kie=tm(),Qie=F3();uI.exports=function(r,t,n,a){function o(b,m){return Xie.coerce(r,t,Qie,b,m)}var i=$ie(r,t,o,a);if(!i){t.visible=!1;return}o("text"),o("hovertext"),o("hovertemplate"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),o("mode"),I3.hasMarkers(t)&&Zie(r,t,n,a,o,{noSelect:!0,noAngle:!0}),I3.hasLines(t)&&(o("connectgaps"),Jie(r,t,n,a,o)),I3.hasText(t)&&(o("texttemplate"),Kie(r,t,a,o,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var l=(t.line||{}).color,u=(t.marker||{}).color;o("surfaceaxis")>=0&&o("surfacecolor",l||u);for(var s=["x","y","z"],f=0;f<3;++f){var v="projection."+s[f];o(v+".show")&&(o(v+".opacity"),o(v+".scale"))}var p=sI.getComponentMethod("errorbars","supplyDefaults");p(r,t,l||u||n,{axis:"z"}),p(r,t,l||u||n,{axis:"y",inherit:"z"}),p(r,t,l||u||n,{axis:"x",inherit:"z"})};function $ie(e,r,t,n){var a=0,o=t("x"),i=t("y"),l=t("z"),u=sI.getComponentMethod("calendars","handleTraceDefaults");return u(e,r,["x","y","z"],n),o&&i&&l&&(a=Math.min(o.length,i.length,l.length),r._length=r._xlength=r._ylength=r._zlength=a),a}});var vI=pe((Nde,cI)=>{"use strict";var jie=g1(),eoe=im();cI.exports=function(r,t){var n=[{x:!1,y:!1,trace:t,t:{}}];return jie(n,t),eoe(r,t),n}});var dI=pe((zde,hI)=>{hI.exports=roe;function roe(e,r){if(typeof e!="string")throw new TypeError("must specify type string");if(r=r||{},typeof document=="undefined"&&!r.canvas)return null;var t=r.canvas||document.createElement("canvas");typeof r.width=="number"&&(t.width=r.width),typeof r.height=="number"&&(t.height=r.height);var n=r,a;try{var o=[e];e.indexOf("webgl")===0&&o.push("experimental-"+e);for(var i=0;i{var toe=dI();pI.exports=function(r){return toe("webgl",r)}});var xI=pe((Ode,mI)=>{"use strict";var yI=Zr(),noe=function(){};mI.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=noe);r.destroy=function(){r.container.parentNode.removeChild(r.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=yI.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=yI.lightLine,n.style["z-index"]=30;var a=document.createElement("p");return a.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",a.style.position="relative",a.style.top="50%",a.style.left="50%",a.style.height="30%",a.style.width="50%",a.style.margin="-15% 0 0 -25%",n.appendChild(a),r.container.appendChild(n),r.container.style.background="#FFFFFF",r.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var wI=pe((Bde,_I)=>{"use strict";var cs=po(),aoe=ir(),ioe=["xaxis","yaxis","zaxis"];function bI(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var ooe=bI.prototype;ooe.merge=function(e,r){for(var t=this,n=0;n<3;++n){var a=r[ioe[n]];if(!a.visible){t.tickEnable[n]=!1,t.labelEnable[n]=!1,t.lineEnable[n]=!1,t.lineTickEnable[n]=!1,t.gridEnable[n]=!1,t.zeroEnable[n]=!1,t.backgroundEnable[n]=!1;continue}t.labels[n]=e._meta?aoe.templateString(a.title.text,e._meta):a.title.text,"font"in a.title&&(a.title.font.color&&(t.labelColor[n]=cs(a.title.font.color)),a.title.font.family&&(t.labelFont[n]=a.title.font.family),a.title.font.size&&(t.labelSize[n]=a.title.font.size),a.title.font.weight&&(t.labelFontWeight[n]=a.title.font.weight),a.title.font.style&&(t.labelFontStyle[n]=a.title.font.style),a.title.font.variant&&(t.labelFontVariant[n]=a.title.font.variant)),"showline"in a&&(t.lineEnable[n]=a.showline),"linecolor"in a&&(t.lineColor[n]=cs(a.linecolor)),"linewidth"in a&&(t.lineWidth[n]=a.linewidth),"showgrid"in a&&(t.gridEnable[n]=a.showgrid),"gridcolor"in a&&(t.gridColor[n]=cs(a.gridcolor)),"gridwidth"in a&&(t.gridWidth[n]=a.gridwidth),a.type==="log"?t.zeroEnable[n]=!1:"zeroline"in a&&(t.zeroEnable[n]=a.zeroline),"zerolinecolor"in a&&(t.zeroLineColor[n]=cs(a.zerolinecolor)),"zerolinewidth"in a&&(t.zeroLineWidth[n]=a.zerolinewidth),"ticks"in a&&a.ticks?t.lineTickEnable[n]=!0:t.lineTickEnable[n]=!1,"ticklen"in a&&(t.lineTickLength[n]=t._defaultLineTickLength[n]=a.ticklen),"tickcolor"in a&&(t.lineTickColor[n]=cs(a.tickcolor)),"tickwidth"in a&&(t.lineTickWidth[n]=a.tickwidth),"tickangle"in a&&(t.tickAngle[n]=a.tickangle==="auto"?-3600:Math.PI*-a.tickangle/180),"showticklabels"in a&&(t.tickEnable[n]=a.showticklabels),"tickfont"in a&&(a.tickfont.color&&(t.tickColor[n]=cs(a.tickfont.color)),a.tickfont.family&&(t.tickFont[n]=a.tickfont.family),a.tickfont.size&&(t.tickSize[n]=a.tickfont.size),a.tickfont.weight&&(t.tickFontWeight[n]=a.tickfont.weight),a.tickfont.style&&(t.tickFontStyle[n]=a.tickfont.style),a.tickfont.variant&&(t.tickFontVariant[n]=a.tickfont.variant)),"mirror"in a?["ticks","all","allticks"].indexOf(a.mirror)!==-1?(t.lineTickMirror[n]=!0,t.lineMirror[n]=!0):a.mirror===!0?(t.lineTickMirror[n]=!1,t.lineMirror[n]=!0):(t.lineTickMirror[n]=!1,t.lineMirror[n]=!1):t.lineMirror[n]=!1,"showbackground"in a&&a.showbackground!==!1?(t.backgroundEnable[n]=!0,t.backgroundColor[n]=cs(a.backgroundcolor)):t.backgroundEnable[n]=!1}};function loe(e,r){var t=new bI;return t.merge(e,r),t}_I.exports=loe});var AI=pe((Ude,TI)=>{"use strict";var soe=po(),uoe=["xaxis","yaxis","zaxis"];function MI(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var foe=MI.prototype;foe.merge=function(e){for(var r=0;r<3;++r){var t=e[uoe[r]];if(!t.visible){this.enabled[r]=!1,this.drawSides[r]=!1;continue}this.enabled[r]=t.showspikes,this.colors[r]=soe(t.spikecolor),this.drawSides[r]=t.spikesides,this.lineWidth[r]=t.spikethickness}};function coe(e){var r=new MI;return r.merge(e),r}TI.exports=coe});var CI=pe((Hde,SI)=>{"use strict";SI.exports=goe;var kI=Ct(),voe=ir(),hoe=["xaxis","yaxis","zaxis"],doe=[0,0,0];function poe(e){for(var r=new Array(3),t=0;t<3;++t){for(var n=e[t],a=new Array(n.length),o=0;o/g," "));a[o]=s,i.tickmode=l}}r.ticks=a;for(var o=0;o<3;++o){doe[o]=.5*(e.glplot.bounds[0][o]+e.glplot.bounds[1][o]);for(var f=0;f<2;++f)r.bounds[f][o]=e.glplot.bounds[f][o]}e.contourLevels=poe(a)}});var II=pe((Vde,FI)=>{"use strict";var RI=pn().gl_plot3d,yoe=RI.createCamera,EI=RI.createScene,moe=gI(),xoe=Zv(),cd=Er(),Zn=ir(),fd=Zn.preserveDrawingBuffer(),vd=Ct(),yi=io(),boe=po(),_oe=xI(),woe=Um(),Moe=wI(),Toe=AI(),Aoe=CI(),koe=$s().applyAutorangeOptions,O0,ud,DI=!1;function PI(e,r){var t=document.createElement("div"),n=e.container;this.graphDiv=e.graphDiv;var a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.style.position="absolute",a.style.top=a.style.left="0px",a.style.width=a.style.height="100%",a.style["z-index"]=20,a.style["pointer-events"]="none",t.appendChild(a),this.svgContainer=a,t.id=e.id,t.style.position="absolute",t.style.top=t.style.left="0px",t.style.width=t.style.height="100%",n.appendChild(t),this.fullLayout=r,this.id=e.id||"scene",this.fullSceneLayout=r[this.id],this.plotArgs=[[],{},{}],this.axesOptions=Moe(r,r[this.id]),this.spikeOptions=Toe(r[this.id]),this.container=t,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=cd.getComponentMethod("annotations3d","convert"),this.drawAnnotations=cd.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Rn=PI.prototype;Rn.prepareOptions=function(){var e=this,r={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:fd,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!ud&&(O0=document.createElement("canvas"),ud=moe({canvas:O0,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!ud))throw new Error("error creating static canvas/context for image server");r.gl=ud,r.canvas=O0}return r};var LI=!0;Rn.tryCreatePlot=function(){var e=this,r=e.prepareOptions(),t=!0;try{e.glplot=EI(r)}catch(n){if(e.staticMode||!LI||fd)t=!1;else{Zn.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{fd=r.glOptions.preserveDrawingBuffer=!0,e.glplot=EI(r)}catch(a){fd=r.glOptions.preserveDrawingBuffer=!1,t=!1}}}return LI=!1,t};Rn.initializeGLCamera=function(){var e=this,r=e.fullSceneLayout.camera,t=r.projection.type==="orthographic";e.camera=yoe(e.container,{center:[r.center.x,r.center.y,r.center.z],eye:[r.eye.x,r.eye.y,r.eye.z],up:[r.up.x,r.up.y,r.up.z],_ortho:t,zoomMin:.01,zoomMax:100,mode:"orbit"})};Rn.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var r=e.tryCreatePlot();if(!r)return _oe(e);e.traces={},e.make4thDimension();var t=e.graphDiv,n=t.layout,a=function(){var i={};return e.isCameraChanged(n)&&(i[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(i[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=i[e.id+".aspectmode"]="manual")),i},o=function(i){if(i.fullSceneLayout.dragmode!==!1){var l=a();i.saveLayout(n),i.graphDiv.emit("plotly_relayout",l)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){o(e)}),e.glplot.canvas.addEventListener("touchstart",function(){DI=!0}),e.glplot.canvas.addEventListener("wheel",function(i){if(t._context._scrollZoom.gl3d){if(e.camera._ortho){var l=i.deltaX>i.deltaY?1.1:.9090909090909091,u=e.glplot.getAspectratio();e.glplot.setAspectratio({x:l*u.x,y:l*u.y,z:l*u.z})}o(e)}},xoe?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var i=a();e.graphDiv.emit("plotly_relayouting",i)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(i){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:i,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};Rn.render=function(){var e=this,r=e.graphDiv,t,n=e.svgContainer,a=e.container.getBoundingClientRect();r._fullLayout._calcInverseTransform(r);var o=r._fullLayout._invScaleX,i=r._fullLayout._invScaleY,l=a.width*o,u=a.height*i;n.setAttributeNS(null,"viewBox","0 0 "+l+" "+u),n.setAttributeNS(null,"width",l),n.setAttributeNS(null,"height",u),Aoe(e),e.glplot.axes.update(e.axesOptions);for(var s=Object.keys(e.traces),f=null,v=e.glplot.selection,p=0;p")):t.type==="isosurface"||t.type==="volume"?(y.valueLabel=vd.hoverLabelText(e._mockAxis,e._mockAxis.d2l(v.traceCoordinate[3]),t.valuehoverformat),d.push("value: "+y.valueLabel),v.textLabel&&d.push(v.textLabel),T=d.join("
")):T=v.textLabel;var _={x:v.traceCoordinate[0],y:v.traceCoordinate[1],z:v.traceCoordinate[2],data:w._input,fullData:w,curveNumber:w.index,pointNumber:M};yi.appendArrayPointValue(_,w,M),t._module.eventData&&(_=w._module.eventData(_,v,w,{},M));var g={points:[_]};if(e.fullSceneLayout.hovermode){var c=[];yi.loneHover({trace:w,x:(.5+.5*m[0]/m[3])*l,y:(.5-.5*m[1]/m[3])*u,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:T,name:f.name,color:yi.castHoverOption(w,M,"bgcolor")||f.color,borderColor:yi.castHoverOption(w,M,"bordercolor"),fontFamily:yi.castHoverOption(w,M,"font.family"),fontSize:yi.castHoverOption(w,M,"font.size"),fontColor:yi.castHoverOption(w,M,"font.color"),nameLength:yi.castHoverOption(w,M,"namelength"),textAlign:yi.castHoverOption(w,M,"align"),hovertemplate:Zn.castOption(w,M,"hovertemplate"),hovertemplateLabels:Zn.extendFlat({},_,y),eventData:[_]},{container:n,gd:r,inOut_bbox:c}),_.bbox=c[0]}v.distance<5&&(v.buttons||DI)?r.emit("plotly_click",g):r.emit("plotly_hover",g),this.oldEventData=g}else yi.loneUnhover(n),this.oldEventData&&r.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};Rn.recoverContext=function(){var e=this;e.glplot.dispose();var r=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(r);return}if(!e.initializeGLPlot()){Zn.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(r)};var B0=["xaxis","yaxis","zaxis"];function Soe(e,r,t){for(var n=e.fullSceneLayout,a=0;a<3;a++){var o=B0[a],i=o.charAt(0),l=n[o],u=r[i],s=r[i+"calendar"],f=r["_"+i+"length"];if(!Zn.isArrayOrTypedArray(u))t[0][a]=Math.min(t[0][a],0),t[1][a]=Math.max(t[1][a],f-1);else for(var v,p=0;p<(f||u.length);p++)if(Zn.isArrayOrTypedArray(u[p]))for(var b=0;bw[1][i])w[0][i]=-1,w[1][i]=1;else{var h=w[1][i]-w[0][i];w[0][i]-=h/32,w[1][i]+=h/32}if(k=[w[0][i],w[1][i]],k=koe(k,u),w[0][i]=k[0],w[1][i]=k[1],u.isReversed()){var R=w[0][i];w[0][i]=w[1][i],w[1][i]=R}}else k=u.range,w[0][i]=u.r2l(k[0]),w[1][i]=u.r2l(k[1]);w[0][i]===w[1][i]&&(w[0][i]-=1,w[1][i]+=1),M[i]=w[1][i]-w[0][i],u.range=[w[0][i],w[1][i]],u.limitRange(),n.glplot.setBounds(i,{min:u.range[0]*b[i],max:u.range[1]*b[i]})}var E,D=f.aspectmode;if(D==="cube")E=[1,1,1];else if(D==="manual"){var N=f.aspectratio;E=[N.x,N.y,N.z]}else if(D==="auto"||D==="data"){var I=[1,1,1];for(i=0;i<3;++i){u=f[B0[i]],s=u.type;var F=y[s];I[i]=Math.pow(F.acc,1/F.count)/b[i]}D==="data"||Math.max.apply(null,I)/Math.min.apply(null,I)<=4?E=I:E=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");f.aspectratio.x=v.aspectratio.x=E[0],f.aspectratio.y=v.aspectratio.y=E[1],f.aspectratio.z=v.aspectratio.z=E[2],n.glplot.setAspectratio(f.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:f.aspectratio.x,y:f.aspectratio.y,z:f.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=f.aspectmode);var L=f.domain||null,P=r._size||null;if(L&&P){var O=n.container.style;O.position="absolute",O.left=P.l+L.x[0]*P.w+"px",O.top=P.t+(1-L.y[1])*P.h+"px",O.width=P.w*(L.x[1]-L.x[0])+"px",O.height=P.h*(L.y[1]-L.y[0])+"px"}n.glplot.redraw()}};Rn.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function Eoe(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function Loe(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}Rn.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),Loe(e.camera)};Rn.setViewport=function(e){var r=this,t=e.camera;r.camera.lookAt.apply(this,Eoe(t)),r.glplot.setAspectratio(e.aspectratio);var n=t.projection.type==="orthographic",a=r.camera._ortho;n!==a&&(r.glplot.redraw(),r.glplot.clearRGBA(),r.glplot.dispose(),r.initializeGLPlot())};Rn.isCameraChanged=function(e){var r=this,t=r.getCamera(),n=Zn.nestedProperty(e,r.id+".camera"),a=n.get();function o(s,f,v,p){var b=["up","center","eye"],m=["x","y","z"];return f[b[v]]&&s[b[v]][m[p]]===f[b[v]][m[p]]}var i=!1;if(a===void 0)i=!0;else{for(var l=0;l<3;l++)for(var u=0;u<3;u++)if(!o(t,a,l,u)){i=!0;break}(!a.projection||t.projection&&t.projection.type!==a.projection.type)&&(i=!0)}return i};Rn.isAspectChanged=function(e){var r=this,t=r.glplot.getAspectratio(),n=Zn.nestedProperty(e,r.id+".aspectratio"),a=n.get();return a===void 0||a.x!==t.x||a.y!==t.y||a.z!==t.z};Rn.saveLayout=function(e){var r=this,t=r.fullLayout,n,a,o,i,l,u,s=r.isCameraChanged(e),f=r.isAspectChanged(e),v=s||f;if(v){var p={};if(s&&(n=r.getCamera(),a=Zn.nestedProperty(e,r.id+".camera"),o=a.get(),p[r.id+".camera"]=o),f&&(i=r.glplot.getAspectratio(),l=Zn.nestedProperty(e,r.id+".aspectratio"),u=l.get(),p[r.id+".aspectratio"]=u),cd.call("_storeDirectGUIEdit",e,t._preGUI,p),s){a.set(n);var b=Zn.nestedProperty(t,r.id+".camera");b.set(n)}if(f){l.set(i);var m=Zn.nestedProperty(t,r.id+".aspectratio");m.set(i),r.glplot.redraw()}}return v};Rn.updateFx=function(e,r){var t=this,n=t.camera;if(n)if(e==="orbit")n.mode="orbit",n.keyBindingMode="rotate";else if(e==="turntable"){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var a=t.graphDiv,o=a._fullLayout,i=t.fullSceneLayout.camera,l=i.up.x,u=i.up.y,s=i.up.z;if(s/Math.sqrt(l*l+u*u+s*s)<.999){var f=t.id+".camera.up",v={x:0,y:0,z:1},p={};p[f]=v;var b=a.layout;cd.call("_storeDirectGUIEdit",b,o._preGUI,p),i.up=v,Zn.nestedProperty(b,f).set(v)}}else n.keyBindingMode=e;t.fullSceneLayout.hovermode=r};function Roe(e,r,t){for(var n=0,a=t-1;n0)for(var l=255/i,u=0;u<3;++u)e[o+u]=Math.min(l*e[o+u],255)}}Rn.toImage=function(e){var r=this;e||(e="png"),r.staticMode&&r.container.appendChild(O0),r.glplot.redraw();var t=r.glplot.gl,n=t.drawingBufferWidth,a=t.drawingBufferHeight;t.bindFramebuffer(t.FRAMEBUFFER,null);var o=new Uint8Array(n*a*4);t.readPixels(0,0,n,a,t.RGBA,t.UNSIGNED_BYTE,o),Roe(o,n,a),Doe(o,n,a);var i=document.createElement("canvas");i.width=n,i.height=a;var l=i.getContext("2d",{willReadFrequently:!0}),u=l.createImageData(n,a);u.data.set(o),l.putImageData(u,0,0);var s;switch(e){case"jpeg":s=i.toDataURL("image/jpeg");break;case"webp":s=i.toDataURL("image/webp");break;default:s=i.toDataURL("image/png")}return r.staticMode&&r.container.removeChild(O0),s};Rn.setConvert=function(){for(var e=this,r=0;r<3;r++){var t=e.fullSceneLayout[B0[r]];vd.setConvert(t,e.fullLayout),t.setScale=Zn.noop}};Rn.make4thDimension=function(){var e=this,r=e.graphDiv,t=r._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},vd.setConvert(e._mockAxis,t)};FI.exports=PI});var zI=pe((Gde,NI)=>{"use strict";NI.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var z3=pe((Yde,qI)=>{"use strict";var Poe=Zr(),Br=Ra(),N3=Mt().extendFlat,Foe=zn().overrideAll;qI.exports=Foe({visible:Br.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:Poe.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:Br.color,categoryorder:Br.categoryorder,categoryarray:Br.categoryarray,title:{text:Br.title.text,font:Br.title.font},type:N3({},Br.type,{values:["-","linear","log","date","category"]}),autotypenumbers:Br.autotypenumbers,autorange:Br.autorange,autorangeoptions:{minallowed:Br.autorangeoptions.minallowed,maxallowed:Br.autorangeoptions.maxallowed,clipmin:Br.autorangeoptions.clipmin,clipmax:Br.autorangeoptions.clipmax,include:Br.autorangeoptions.include,editType:"plot"},rangemode:Br.rangemode,minallowed:Br.minallowed,maxallowed:Br.maxallowed,range:N3({},Br.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:Br.minor.tickmode,nticks:Br.nticks,tick0:Br.tick0,dtick:Br.dtick,tickvals:Br.tickvals,ticktext:Br.ticktext,ticks:Br.ticks,mirror:Br.mirror,ticklen:Br.ticklen,tickwidth:Br.tickwidth,tickcolor:Br.tickcolor,showticklabels:Br.showticklabels,labelalias:Br.labelalias,tickfont:Br.tickfont,tickangle:Br.tickangle,tickprefix:Br.tickprefix,showtickprefix:Br.showtickprefix,ticksuffix:Br.ticksuffix,showticksuffix:Br.showticksuffix,showexponent:Br.showexponent,exponentformat:Br.exponentformat,minexponent:Br.minexponent,separatethousands:Br.separatethousands,tickformat:Br.tickformat,tickformatstops:Br.tickformatstops,hoverformat:Br.hoverformat,showline:Br.showline,linecolor:Br.linecolor,linewidth:Br.linewidth,showgrid:Br.showgrid,gridcolor:N3({},Br.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:Br.gridwidth,zeroline:Br.zeroline,zerolinecolor:Br.zerolinecolor,zerolinewidth:Br.zerolinewidth},"plot","from-root")});var U3=pe((Wde,OI)=>{"use strict";var q3=z3(),Ioe=$1().attributes,O3=Mt().extendFlat,Noe=ir().counterRegex;function B3(e,r,t){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:r,editType:"camera"},z:{valType:"number",dflt:t,editType:"camera"},editType:"camera"}}OI.exports={_arrayAttrRegexps:[Noe("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:O3(B3(0,0,1),{}),center:O3(B3(0,0,0),{}),eye:O3(B3(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:Ioe({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:q3,yaxis:q3,zaxis:q3,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot"}});var UI=pe((Xde,BI)=>{"use strict";var zoe=ir(),qoe=gt(),Ooe=$1().defaults;BI.exports=function(r,t,n,a){var o=a.type,i=a.attributes,l=a.handleDefaults,u=a.partition||"x",s=t._subplots[o],f=s.length,v=f&&s[0].replace(/\d+$/,""),p,b;function m(k,S){return zoe.coerce(p,b,i,k,S)}for(var w=0;w{"use strict";var Boe=Sa().mix,HI=ir(),Uoe=gt(),Hoe=z3(),Voe=Mm(),Goe=T1(),VI=["xaxis","yaxis","zaxis"],Yoe=100*136/187;GI.exports=function(r,t,n){var a,o;function i(s,f){return HI.coerce(a,o,Hoe,s,f)}for(var l=0;l{"use strict";var Woe=ir(),Xoe=Zr(),Zoe=Er(),Joe=UI(),Koe=YI(),WI=U3(),Qoe=Tf().getSubplotData,XI="gl3d";ZI.exports=function(r,t,n){var a=t._basePlotModules.length>1;function o(i){if(!a){var l=Woe.validate(r[i],WI[i]);if(l)return r[i]}}Joe(r,t,n,{type:XI,attributes:WI,handleDefaults:$oe,fullLayout:t,font:t.font,fullData:n,getDfltFromLayout:o,autotypenumbersDflt:t.autotypenumbers,paper_bgcolor:t.paper_bgcolor,calendar:t.calendar})};function $oe(e,r,t,n){for(var a=t("bgcolor"),o=Xoe.combine(a,n.paper_bgcolor),i=["up","center","eye"],l=0;l.999)&&(p="turntable")}else p="turntable";t("dragmode",p),t("hovermode",n.getDfltFromLayout("hovermode"))}});var il=pe(Jn=>{"use strict";var joe=zn().overrideAll,ele=_l(),rle=II(),tle=Tf().getSubplotData,nle=ir(),ale=Io(),qu="gl3d",H3="scene";Jn.name=qu;Jn.attr=H3;Jn.idRoot=H3;Jn.idRegex=Jn.attrRegex=nle.counterRegex("scene");Jn.attributes=zI();Jn.layoutAttributes=U3();Jn.baseLayoutAttrOverrides=joe({hoverlabel:ele.hoverlabel},"plot","nested");Jn.supplyLayoutDefaults=JI();Jn.plot=function(r){for(var t=r._fullLayout,n=r._fullData,a=t._subplots[qu],o=0;o{"use strict";KI.exports={plot:aI(),attributes:F3(),markerSymbols:ld(),supplyDefaults:fI(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:vI(),moduleType:"trace",name:"scatter3d",basePlotModule:il(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var jI=pe(($de,$I)=>{"use strict";$I.exports=QI()});var U0=pe((jde,tN)=>{"use strict";var eN=Zr(),ile=ja(),V3=ro().axisHoverFormat,ole=ha().hovertemplateAttrs,rN=Sn(),G3=Mt().extendFlat,lle=zn().overrideAll;function Y3(e){return{valType:"boolean",dflt:!1}}function W3(e){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:Y3("x"),y:Y3("y"),z:Y3("z")},color:{valType:"color",dflt:eN.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:eN.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var X3=tN.exports=lle(G3({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:ole(),xhoverformat:V3("x"),yhoverformat:V3("y"),zhoverformat:V3("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},ile("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:W3("x"),y:W3("y"),z:W3("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:G3({},rN.hoverinfo),showlegend:G3({},rN.showlegend,{dflt:!1})}),"calc","nested");X3.x.editType=X3.y.editType=X3.z.editType="calc+clearAxisTypes"});var J3=pe((epe,iN)=>{"use strict";var sle=Er(),nN=ir(),ule=Ei(),fle=U0(),Z3=.1;function cle(e,r){for(var t=[],n=32,a=0;a{"use strict";var oN=zo();lN.exports=function(r,t){t.surfacecolor?oN(r,t,{vals:t.surfacecolor,containerStr:"",cLetter:"c"}):oN(r,t,{vals:t.z,containerStr:"",cLetter:"c"})}});var vN=pe((tpe,cN)=>{"use strict";var dle=ir(),uN=.01,ple=[[-1,0],[1,0],[0,-1],[0,1]];function gle(e){return .5-.25*Math.min(1,e*.5)}cN.exports=function(r,t){var n=1,a;for(fN(r,t),a=0;auN;a++)n=fN(r,t,gle(n));return n>uN&&dle.log("interp2d didn't converge quickly",n),r};function fN(e,r,t){var n=0,a,o,i,l,u,s,f,v,p,b,m,w,M;for(l=0;lw&&(n=Math.max(n,Math.abs(e[o][i]-m)/(M-w))))}return n}});var dN=pe((npe,hN)=>{"use strict";var yle=ir().maxRowLength;hN.exports=function(r){var t=[],n={},a=[],o=r[0],i=[],l=[0,0,0],u=yle(r),s,f,v,p,b,m,w,M;for(f=0;f=0;b--)p=a[b],f=p[0],v=p[1],m=((n[[f-1,v]]||l)[2]+(n[[f+1,v]]||l)[2]+(n[[f,v-1]]||l)[2]+(n[[f,v+1]]||l)[2])/20,m&&(w[p]=[f,v,m],a.splice(b,1),M=!0);if(!M)throw"findEmpties iterated with no new neighbors";for(p in w)n[p]=w[p],t.push(w[p])}return t.sort(function(y,k){return k[2]-y[2]})}});var bN=pe((ape,xN)=>{"use strict";var mle=pn().gl_surface3d,Ou=pn().ndarray,xle=pn().ndarray_linear_interpolate.d2,ble=vN(),_le=dN(),H0=ir().isArrayOrTypedArray,wle=al().parseColorScale,pN=po(),Mle=Li().extractOpts;function yN(e,r,t){this.scene=e,this.uid=t,this.surface=r,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var mi=yN.prototype;mi.getXat=function(e,r,t,n){var a=H0(this.data.x)?H0(this.data.x[0])?this.data.x[r][e]:this.data.x[e]:e;return t===void 0?a:n.d2l(a,0,t)};mi.getYat=function(e,r,t,n){var a=H0(this.data.y)?H0(this.data.y[0])?this.data.y[r][e]:this.data.y[r]:r;return t===void 0?a:n.d2l(a,0,t)};mi.getZat=function(e,r,t,n){var a=this.data.z[r][e];return a===null&&this.data.connectgaps&&this.data._interpolatedZ&&(a=this.data._interpolatedZ[r][e]),t===void 0?a:n.d2l(a,0,t)};mi.handlePick=function(e){if(e.object===this.surface){var r=(e.data.index[0]-1)/this.dataScaleX-1,t=(e.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(r),this.data.z[0].length-1),0),a=Math.max(Math.min(Math.round(t),this.data._ylength-1),0);e.index=[n,a],e.traceCoordinate=[this.getXat(n,a),this.getYat(n,a),this.getZat(n,a)],e.dataCoordinate=[this.getXat(n,a,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,a,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,a,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var o=0;o<3;o++){var i=e.dataCoordinate[o];i!=null&&(e.dataCoordinate[o]*=this.scene.dataScale[o])}var l=this.data.hovertext||this.data.text;return H0(l)&&l[a]&&l[a][n]!==void 0?e.textLabel=l[a][n]:l?e.textLabel=l:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function Tle(e){var r=e[0].rgb,t=e[e.length-1].rgb;return r[0]===t[0]&&r[1]===t[1]&&r[2]===t[2]&&r[3]===t[3]}var Bu=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function Ale(e,r){if(e0){t=Bu[n];break}return t}function Sle(e,r){if(!(e<1||r<1)){for(var t=K3(e),n=K3(r),a=1,o=0;ohd;)n--,n/=kle(n),n++,n1?a:1};function Ele(e,r,t){var n=t[8]+t[2]*r[0]+t[5]*r[1];return e[0]=(t[6]+t[0]*r[0]+t[3]*r[1])/n,e[1]=(t[7]+t[1]*r[0]+t[4]*r[1])/n,e}function Lle(e,r,t){return Rle(e,r,Ele,t),e}function Rle(e,r,t,n){for(var a=[0,0],o=e.shape[0],i=e.shape[1],l=0;l0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(r[n]=!0,a=this.contourStart[n];ap&&(this.minValues[s]=p),this.maxValues[s]{"use strict";_N.exports={attributes:U0(),supplyDefaults:J3().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:sN(),plot:bN(),moduleType:"trace",name:"surface",basePlotModule:il(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var TN=pe((ope,MN)=>{"use strict";MN.exports=wN()});var Uu=pe((lpe,kN)=>{"use strict";var Fle=ja(),Q3=ro().axisHoverFormat,Ile=ha().hovertemplateAttrs,ol=U0(),AN=Sn(),ll=Mt().extendFlat;kN.exports=ll({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:Ile({editType:"calc"}),xhoverformat:Q3("x"),yhoverformat:Q3("y"),zhoverformat:Q3("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"}},Fle("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:ol.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:ll({},ol.contours.x.show,{}),color:ol.contours.x.color,width:ol.contours.x.width,editType:"calc"},lightposition:{x:ll({},ol.lightposition.x,{dflt:1e5}),y:ll({},ol.lightposition.y,{dflt:1e5}),z:ll({},ol.lightposition.z,{dflt:0}),editType:"calc"},lighting:ll({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},ol.lighting),hoverinfo:ll({},AN.hoverinfo,{editType:"calc"}),showlegend:ll({},AN.showlegend,{dflt:!1})})});var pd=pe((spe,CN)=>{"use strict";var Nle=ja(),dd=ro().axisHoverFormat,zle=ha().hovertemplateAttrs,V0=Uu(),SN=Sn(),$3=Mt().extendFlat,qle=zn().overrideAll;function j3(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function e5(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var Hu=CN.exports=qle($3({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:j3("x"),y:j3("y"),z:j3("z")},caps:{x:e5("x"),y:e5("y"),z:e5("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:zle(),xhoverformat:dd("x"),yhoverformat:dd("y"),zhoverformat:dd("z"),valuehoverformat:dd("value",1),showlegend:$3({},SN.showlegend,{dflt:!1})},Nle("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:V0.opacity,lightposition:V0.lightposition,lighting:V0.lighting,flatshading:V0.flatshading,contour:V0.contour,hoverinfo:$3({},SN.hoverinfo)}),"calc","nested");Hu.flatshading.dflt=!0;Hu.lighting.facenormalsepsilon.dflt=0;Hu.x.editType=Hu.y.editType=Hu.z.editType=Hu.value.editType="calc+clearAxisTypes"});var r5=pe((upe,LN)=>{"use strict";var Ole=ir(),Ble=Er(),Ule=pd(),Hle=Ei();function Vle(e,r,t,n){function a(o,i){return Ole.coerce(e,r,Ule,o,i)}EN(e,r,t,n,a)}function EN(e,r,t,n,a){var o=a("isomin"),i=a("isomax");i!=null&&o!==void 0&&o!==null&&o>i&&(r.isomin=null,r.isomax=null);var l=a("x"),u=a("y"),s=a("z"),f=a("value");if(!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length){r.visible=!1;return}var v=Ble.getComponentMethod("calendars","handleTraceDefaults");v(e,r,["x","y","z"],n),a("valuehoverformat"),["x","y","z"].forEach(function(w){a(w+"hoverformat");var M="caps."+w,y=a(M+".show");y&&a(M+".fill");var k="slices."+w,S=a(k+".show");S&&(a(k+".fill"),a(k+".locations"))});var p=a("spaceframe.show");p&&a("spaceframe.fill");var b=a("surface.show");b&&(a("surface.count"),a("surface.fill"),a("surface.pattern"));var m=a("contour.show");m&&(a("contour.color"),a("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(w){a(w)}),Hle(e,r,n,a,{prefix:"",cLetter:"c"}),r._length=null}LN.exports={supplyDefaults:Vle,supplyIsoDefaults:EN}});var gd=pe((fpe,DN)=>{"use strict";var n5=ir(),Gle=zo();function Yle(e,r){r._len=Math.min(r.u.length,r.v.length,r.w.length,r.x.length,r.y.length,r.z.length),r._u=Hi(r.u,r._len),r._v=Hi(r.v,r._len),r._w=Hi(r.w,r._len),r._x=Hi(r.x,r._len),r._y=Hi(r.y,r._len),r._z=Hi(r.z,r._len);var t=RN(r);r._gridFill=t.fill,r._Xs=t.Xs,r._Ys=t.Ys,r._Zs=t.Zs,r._len=t.len;var n=0,a,o,i;r.starts&&(a=Hi(r.starts.x||[]),o=Hi(r.starts.y||[]),i=Hi(r.starts.z||[]),n=Math.min(a.length,o.length,i.length)),r._startsX=a||[],r._startsY=o||[],r._startsZ=i||[];var l=0,u=1/0,s;for(s=0;s1&&(S=r[a-1],T=t[a-1],_=n[a-1]),o=0;oS?"-":"+")+"x"),m=m.replace("y",(x>T?"-":"+")+"y"),m=m.replace("z",(d>_?"-":"+")+"z");var h=function(){a=0,g=[],c=[],A=[]};(!a||a{"use strict";var Wle=zo(),Xle=gd().processGrid,yd=gd().filter;PN.exports=function(r,t){t._len=Math.min(t.x.length,t.y.length,t.z.length,t.value.length),t._x=yd(t.x,t._len),t._y=yd(t.y,t._len),t._z=yd(t.z,t._len),t._value=yd(t.value,t._len);var n=Xle(t);t._gridFill=n.fill,t._Xs=n.Xs,t._Ys=n.Ys,t._Zs=n.Zs,t._len=n.len;for(var a=1/0,o=-1/0,i=0;i{"use strict";FN.exports=function(r,t,n,a){a=a||r.length;for(var o=new Array(a),i=0;i{"use strict";var Zle=pn().gl_mesh3d,Jle=al().parseColorScale,Kle=ir().isArrayOrTypedArray,Qle=po(),$le=Li().extractOpts,IN=Vu(),G0=function(e,r){for(var t=r.length-1;t>0;t--){var n=Math.min(r[t],r[t-1]),a=Math.max(r[t],r[t-1]);if(a>n&&n-1}function U(Me,me){return Me===null?me:Me}function X(Me,me,Re){h();var ce=[me],he=[Re];if(F>=1)ce=[me],he=[Re];else if(F>0){var ye=P(me,Re);ce=ye.xyzv,he=ye.abc}for(var Ce=0;Ce-1?Re[qe]:A($e,We,Ue);_e>-1?ze[qe]=_e:ze[qe]=E($e,We,Ue,U(Me,Ge))}D(ze[0],ze[1],ze[2])}}function $(Me,me,Re){var ce=function(he,ye,Ce){X(Me,[me[he],me[ye],me[Ce]],[Re[he],Re[ye],Re[Ce]])};ce(0,1,2),ce(2,3,0)}function j(Me,me,Re){var ce=function(he,ye,Ce){X(Me,[me[he],me[ye],me[Ce]],[Re[he],Re[ye],Re[Ce]])};ce(0,1,2),ce(3,0,1),ce(2,3,0),ce(1,2,3)}function Y(Me,me,Re,ce){var he=Me[3];hece&&(he=ce);for(var ye=(Me[3]-he)/(Me[3]-me[3]+1e-9),Ce=[],ze=0;ze<4;ze++)Ce[ze]=(1-ye)*Me[ze]+ye*me[ze];return Ce}function q(Me,me,Re){return Me>=me&&Me<=Re}function Q(Me){var me=.001*(T-x);return Me>=x-me&&Me<=T+me}function ne(Me){for(var me=[],Re=0;Re<4;Re++){var ce=Me[Re];me.push([e._x[ce],e._y[ce],e._z[ce],e._value[ce]])}return me}var K=3;function ie(Me,me,Re,ce,he,ye){ye||(ye=1),Re=[-1,-1,-1];var Ce=!1,ze=[q(me[0][3],ce,he),q(me[1][3],ce,he),q(me[2][3],ce,he)];if(!ze[0]&&!ze[1]&&!ze[2])return!1;var qe=function(We,Ue,Ge){return Q(Ue[0][3])&&Q(Ue[1][3])&&Q(Ue[2][3])?(X(We,Ue,Ge),!0):yeze?[k,ye]:[ye,S];Ee(me,qe[0],qe[1])}}var $e=[[Math.min(x,S),Math.max(x,S)],[Math.min(k,T),Math.max(k,T)]];["x","y","z"].forEach(function(We){for(var Ue=[],Ge=0;Ge<$e.length;Ge++){var _e=0,De=$e[Ge][0],Ke=$e[Ge][1],Ye=e.slices[We];if(Ye.show&&Ye.fill){L(Ye.fill);var ar=[],se=[],J=[];if(Ye.locations.length)for(var ae=0;ae0&&(se.push(Le.id),We==="x"?J.push([Le.distRatio,0,0]):We==="y"?J.push([0,Le.distRatio,0]):J.push([0,0,Le.distRatio]))}else We==="x"?ar=Be(1,b-1):We==="y"?ar=Be(1,m-1):ar=Be(1,w-1);se.length>0&&(We==="x"?Ue[_e]=Pe(Me,se,De,Ke,J,Ue[_e]):We==="y"?Ue[_e]=Se(Me,se,De,Ke,J,Ue[_e]):Ue[_e]=Ne(Me,se,De,Ke,J,Ue[_e]),_e++),ar.length>0&&(We==="x"?Ue[_e]=de(Me,ar,De,Ke,Ue[_e]):We==="y"?Ue[_e]=ke(Me,ar,De,Ke,Ue[_e]):Ue[_e]=Ae(Me,ar,De,Ke,Ue[_e]),_e++)}var He=e.caps[We];He.show&&He.fill&&(L(He.fill),We==="x"?Ue[_e]=de(Me,[0,b-1],De,Ke,Ue[_e]):We==="y"?Ue[_e]=ke(Me,[0,m-1],De,Ke,Ue[_e]):Ue[_e]=Ae(Me,[0,w-1],De,Ke,Ue[_e]),_e++)}}),l===0&&R(),e._meshX=d,e._meshY=_,e._meshZ=g,e._meshIntensity=c,e._Xs=f,e._Ys=v,e._Zs=p}return we(),e}function ese(e,r){var t=e.glplot.gl,n=Zle({gl:t}),a=new NN(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}qN.exports={findNearestOnAxis:G0,generateIsoMeshes:zN,createIsosurfaceTrace:ese}});var BN=pe((dpe,ON)=>{"use strict";ON.exports={attributes:pd(),supplyDefaults:r5().supplyDefaults,calc:a5(),colorbar:{min:"cmin",max:"cmax"},plot:md().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:il(),categories:["gl3d","showLegend"],meta:{}}});var HN=pe((ppe,UN)=>{"use strict";UN.exports=BN()});var l5=pe((gpe,GN)=>{"use strict";var rse=ja(),Kt=pd(),tse=U0(),VN=Sn(),o5=Mt().extendFlat,nse=zn().overrideAll,xd=GN.exports=nse(o5({x:Kt.x,y:Kt.y,z:Kt.z,value:Kt.value,isomin:Kt.isomin,isomax:Kt.isomax,surface:Kt.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:Kt.slices,caps:Kt.caps,text:Kt.text,hovertext:Kt.hovertext,xhoverformat:Kt.xhoverformat,yhoverformat:Kt.yhoverformat,zhoverformat:Kt.zhoverformat,valuehoverformat:Kt.valuehoverformat,hovertemplate:Kt.hovertemplate},rse("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Kt.colorbar,opacity:Kt.opacity,opacityscale:tse.opacityscale,lightposition:Kt.lightposition,lighting:Kt.lighting,flatshading:Kt.flatshading,contour:Kt.contour,hoverinfo:o5({},VN.hoverinfo),showlegend:o5({},VN.showlegend,{dflt:!1})}),"calc","nested");xd.x.editType=xd.y.editType=xd.z.editType=xd.value.editType="calc+clearAxisTypes"});var WN=pe((ype,YN)=>{"use strict";var ase=ir(),ise=l5(),ose=r5().supplyIsoDefaults,lse=J3().opacityscaleDefaults;YN.exports=function(r,t,n,a){function o(i,l){return ase.coerce(r,t,ise,i,l)}ose(r,t,n,a,o),lse(r,t,a,o)}});var KN=pe((mpe,JN)=>{"use strict";var sse=pn().gl_mesh3d,use=al().parseColorScale,fse=ir().isArrayOrTypedArray,cse=po(),vse=Li().extractOpts,XN=Vu(),s5=md().findNearestOnAxis,hse=md().generateIsoMeshes;function ZN(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.data=null,this.showContour=!1}var u5=ZN.prototype;u5.handlePick=function(e){if(e.object===this.mesh){var r=e.data.index,t=this.data._meshX[r],n=this.data._meshY[r],a=this.data._meshZ[r],o=this.data._Ys.length,i=this.data._Zs.length,l=s5(t,this.data._Xs).id,u=s5(n,this.data._Ys).id,s=s5(a,this.data._Zs).id,f=e.index=s+i*u+i*o*l;e.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var v=this.data.hovertext||this.data.text;return fse(v)&&v[f]!==void 0?e.textLabel=v[f]:v&&(e.textLabel=v),!0}};u5.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=hse(e);function n(u,s,f,v){return s.map(function(p){return u.d2l(p,0,v)*f})}var a=XN(n(t.xaxis,e._meshX,r.dataScale[0],e.xcalendar),n(t.yaxis,e._meshY,r.dataScale[1],e.ycalendar),n(t.zaxis,e._meshZ,r.dataScale[2],e.zcalendar)),o=XN(e._meshI,e._meshJ,e._meshK),i={positions:a,cells:o,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:cse(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},l=vse(e);i.vertexIntensity=e._meshIntensity,i.vertexIntensityBounds=[l.min,l.max],i.colormap=use(e),this.mesh.update(i)};u5.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function dse(e,r){var t=e.glplot.gl,n=sse({gl:t}),a=new ZN(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}JN.exports=dse});var $N=pe((xpe,QN)=>{"use strict";QN.exports={attributes:l5(),supplyDefaults:WN(),calc:a5(),colorbar:{min:"cmin",max:"cmax"},plot:KN(),moduleType:"trace",name:"volume",basePlotModule:il(),categories:["gl3d","showLegend"],meta:{}}});var ez=pe((bpe,jN)=>{"use strict";jN.exports=$N()});var nz=pe((_pe,tz)=>{"use strict";var pse=Er(),rz=ir(),gse=Ei(),yse=Uu();tz.exports=function(r,t,n,a){function o(f,v){return rz.coerce(r,t,yse,f,v)}function i(f){var v=f.map(function(p){var b=o(p);return b&&rz.isArrayOrTypedArray(b)?b:null});return v.every(function(p){return p&&p.length===v[0].length})&&v}var l=i(["x","y","z"]);if(!l){t.visible=!1;return}if(i(["i","j","k"]),t.i&&(!t.j||!t.k)||t.j&&(!t.k||!t.i)||t.k&&(!t.i||!t.j)){t.visible=!1;return}var u=pse.getComponentMethod("calendars","handleTraceDefaults");u(r,t,["x","y","z"],a),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(f){o(f)});var s=o("contour.show");s&&(o("contour.color"),o("contour.width")),"intensity"in r?(o("intensity"),o("intensitymode"),gse(r,t,a,o,{prefix:"",cLetter:"c"})):(t.showscale=!1,"facecolor"in r?o("facecolor"):"vertexcolor"in r?o("vertexcolor"):o("color",n)),o("text"),o("hovertext"),o("hovertemplate"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var iz=pe((wpe,az)=>{"use strict";var mse=zo();az.exports=function(r,t){t.intensity&&mse(r,t,{vals:t.intensity,containerStr:"",cLetter:"c"})}});var fz=pe((Mpe,uz)=>{"use strict";var xse=pn().gl_mesh3d,bse=pn().delaunay_triangulate,_se=pn().alpha_shape,wse=pn().convex_hull,Mse=al().parseColorScale,Tse=ir().isArrayOrTypedArray,h5=po(),Ase=Li().extractOpts,oz=Vu();function sz(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var d5=sz.prototype;d5.handlePick=function(e){if(e.object===this.mesh){var r=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[r],this.data.y[r],this.data.z[r]];var t=this.data.hovertext||this.data.text;return Tse(t)&&t[r]!==void 0?e.textLabel=t[r]:t&&(e.textLabel=t),!0}};function lz(e){for(var r=[],t=e.length,n=0;n=r-.5)return!1;return!0}d5.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=e;var n=e.x.length,a=oz(f5(t.xaxis,e.x,r.dataScale[0],e.xcalendar),f5(t.yaxis,e.y,r.dataScale[1],e.ycalendar),f5(t.zaxis,e.z,r.dataScale[2],e.zcalendar)),o;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!v5(e.i,n)||!v5(e.j,n)||!v5(e.k,n))return;o=oz(c5(e.i),c5(e.j),c5(e.k))}else e.alphahull===0?o=wse(a):e.alphahull>0?o=_se(e.alphahull,a):o=kse(e.delaunayaxis,a);var i={positions:a,cells:o,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:h5(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var l=Ase(e);this.color="#fff";var u=e.intensitymode;i[u+"Intensity"]=e.intensity,i[u+"IntensityBounds"]=[l.min,l.max],i.colormap=Mse(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],i.vertexColors=lz(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],i.cellColors=lz(e.facecolor)):(this.color=e.color,i.meshColor=h5(e.color));this.mesh.update(i)};d5.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function Sse(e,r){var t=e.glplot.gl,n=xse({gl:t}),a=new sz(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}uz.exports=Sse});var vz=pe((Tpe,cz)=>{"use strict";cz.exports={attributes:Uu(),supplyDefaults:nz(),calc:iz(),colorbar:{min:"cmin",max:"cmax"},plot:fz(),moduleType:"trace",name:"mesh3d",basePlotModule:il(),categories:["gl3d","showLegend"],meta:{}}});var dz=pe((Ape,hz)=>{"use strict";hz.exports=vz()});var g5=pe((kpe,gz)=>{"use strict";var Cse=ja(),Gu=ro().axisHoverFormat,Ese=ha().hovertemplateAttrs,Lse=Uu(),pz=Sn(),p5=Mt().extendFlat,bd={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:Ese({editType:"calc"},{keys:["norm"]}),uhoverformat:Gu("u",1),vhoverformat:Gu("v",1),whoverformat:Gu("w",1),xhoverformat:Gu("x"),yhoverformat:Gu("y"),zhoverformat:Gu("z"),showlegend:p5({},pz.showlegend,{dflt:!1})};p5(bd,Cse("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var Rse=["opacity","lightposition","lighting"];Rse.forEach(function(e){bd[e]=Lse[e]});bd.hoverinfo=p5({},pz.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});gz.exports=bd});var mz=pe((Spe,yz)=>{"use strict";var Dse=ir(),Pse=Ei(),Fse=g5();yz.exports=function(r,t,n,a){function o(b,m){return Dse.coerce(r,t,Fse,b,m)}var i=o("u"),l=o("v"),u=o("w"),s=o("x"),f=o("y"),v=o("z");if(!i||!i.length||!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length||!v||!v.length){t.visible=!1;return}var p=o("sizemode");o("sizeref",p==="raw"?1:.5),o("anchor"),o("lighting.ambient"),o("lighting.diffuse"),o("lighting.specular"),o("lighting.roughness"),o("lighting.fresnel"),o("lightposition.x"),o("lightposition.y"),o("lightposition.z"),Pse(r,t,a,o,{prefix:"",cLetter:"c"}),o("text"),o("hovertext"),o("hovertemplate"),o("uhoverformat"),o("vhoverformat"),o("whoverformat"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var bz=pe((Cpe,xz)=>{"use strict";var Ise=zo();xz.exports=function(r,t){for(var n=t.u,a=t.v,o=t.w,i=Math.min(t.x.length,t.y.length,t.z.length,n.length,a.length,o.length),l=-1/0,u=1/0,s=0;s{"use strict";var Nse=pn().gl_cone3d,zse=pn().gl_cone3d.createConeMesh,qse=ir().simpleMap,Ose=al().parseColorScale,Bse=Li().extractOpts,Use=ir().isArrayOrTypedArray,_z=Vu();function wz(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var y5=wz.prototype;y5.handlePick=function(e){if(e.object===this.mesh){var r=e.index=e.data.index,t=this.data.x[r],n=this.data.y[r],a=this.data.z[r],o=this.data.u[r],i=this.data.v[r],l=this.data.w[r];e.traceCoordinate=[t,n,a,o,i,l,Math.sqrt(o*o+i*i+l*l)];var u=this.data.hovertext||this.data.text;return Use(u)&&u[r]!==void 0?e.textLabel=u[r]:u&&(e.textLabel=u),!0}};var Hse={xaxis:0,yaxis:1,zaxis:2},Vse={tip:1,tail:0,cm:.25,center:.5},Gse={tip:1,tail:1,cm:.75,center:.5};function Mz(e,r){var t=e.fullSceneLayout,n=e.dataScale,a={};function o(f,v){var p=t[v],b=n[Hse[v]];return qse(f,function(m){return p.d2l(m)*b})}a.vectors=_z(o(r.u,"xaxis"),o(r.v,"yaxis"),o(r.w,"zaxis"),r._len),a.positions=_z(o(r.x,"xaxis"),o(r.y,"yaxis"),o(r.z,"zaxis"),r._len);var i=Bse(r);a.colormap=Ose(r),a.vertexIntensityBounds=[i.min/r._normMax,i.max/r._normMax],a.coneOffset=Vse[r.anchor];var l=r.sizemode;l==="scaled"?a.coneSize=r.sizeref||.5:l==="absolute"?a.coneSize=r.sizeref&&r._normMax?r.sizeref/r._normMax:.5:l==="raw"&&(a.coneSize=r.sizeref),a.coneSizemode=l;var u=Nse(a),s=r.lightposition;return u.lightPosition=[s.x,s.y,s.z],u.ambient=r.lighting.ambient,u.diffuse=r.lighting.diffuse,u.specular=r.lighting.specular,u.roughness=r.lighting.roughness,u.fresnel=r.lighting.fresnel,u.opacity=r.opacity,r._pad=Gse[r.anchor]*u.vectorScale*u.coneScale*r._normMax,u}y5.update=function(e){this.data=e;var r=Mz(this.scene,e);this.mesh.update(r)};y5.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function Yse(e,r){var t=e.glplot.gl,n=Mz(e,r),a=zse(t,n),o=new wz(e,r.uid);return o.mesh=a,o.data=r,a._trace=o,e.glplot.add(a),o}Tz.exports=Yse});var Sz=pe((Lpe,kz)=>{"use strict";kz.exports={moduleType:"trace",name:"cone",basePlotModule:il(),categories:["gl3d","showLegend"],attributes:g5(),supplyDefaults:mz(),colorbar:{min:"cmin",max:"cmax"},calc:bz(),plot:Az(),eventData:function(e,r){return e.norm=r.traceCoordinate[6],e},meta:{}}});var Ez=pe((Rpe,Cz)=>{"use strict";Cz.exports=Sz()});var x5=pe((Dpe,Rz)=>{"use strict";var Wse=ja(),Yu=ro().axisHoverFormat,Xse=ha().hovertemplateAttrs,Zse=Uu(),Lz=Sn(),m5=Mt().extendFlat,_d={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:Xse({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),uhoverformat:Yu("u",1),vhoverformat:Yu("v",1),whoverformat:Yu("w",1),xhoverformat:Yu("x"),yhoverformat:Yu("y"),zhoverformat:Yu("z"),showlegend:m5({},Lz.showlegend,{dflt:!1})};m5(_d,Wse("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var Jse=["opacity","lightposition","lighting"];Jse.forEach(function(e){_d[e]=Zse[e]});_d.hoverinfo=m5({},Lz.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});Rz.exports=_d});var Pz=pe((Ppe,Dz)=>{"use strict";var Kse=ir(),Qse=Ei(),$se=x5();Dz.exports=function(r,t,n,a){function o(p,b){return Kse.coerce(r,t,$se,p,b)}var i=o("u"),l=o("v"),u=o("w"),s=o("x"),f=o("y"),v=o("z");if(!i||!i.length||!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length||!v||!v.length){t.visible=!1;return}o("starts.x"),o("starts.y"),o("starts.z"),o("maxdisplayed"),o("sizeref"),o("lighting.ambient"),o("lighting.diffuse"),o("lighting.specular"),o("lighting.roughness"),o("lighting.fresnel"),o("lightposition.x"),o("lightposition.y"),o("lightposition.z"),Qse(r,t,a,o,{prefix:"",cLetter:"c"}),o("text"),o("hovertext"),o("hovertemplate"),o("uhoverformat"),o("vhoverformat"),o("whoverformat"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var Uz=pe((Fpe,Bz)=>{"use strict";var Nz=pn().gl_streamtube3d,jse=Nz.createTubeMesh,eue=ir(),rue=al().parseColorScale,tue=Li().extractOpts,Fz=Vu(),zz={xaxis:0,yaxis:1,zaxis:2};function qz(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var _5=qz.prototype;_5.handlePick=function(e){var r=this.scene.fullSceneLayout,t=this.scene.dataScale;function n(i,l){var u=r[l],s=t[zz[l]];return u.l2c(i)/s}if(e.object===this.mesh){var a=e.data.position,o=e.data.velocity;return e.traceCoordinate=[n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),n(o[0],"xaxis"),n(o[1],"yaxis"),n(o[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function Iz(e){var r=e.length,t;return r>2?t=e.slice(1,r-1):r===2?t=[(e[0]+e[1])/2]:t=e,t}function b5(e){var r=e.length;return r===1?[.5,.5]:[e[1]-e[0],e[r-1]-e[r-2]]}function Oz(e,r){var t=e.fullSceneLayout,n=e.dataScale,a=r._len,o={};function i(R,E){var D=t[E],N=n[zz[E]];return eue.simpleMap(R,function(I){return D.d2l(I)*N})}if(o.vectors=Fz(i(r._u,"xaxis"),i(r._v,"yaxis"),i(r._w,"zaxis"),a),!a)return{positions:[],cells:[]};var l=i(r._Xs,"xaxis"),u=i(r._Ys,"yaxis"),s=i(r._Zs,"zaxis");o.meshgrid=[l,u,s],o.gridFill=r._gridFill;var f=r._slen;if(f)o.startingPositions=Fz(i(r._startsX,"xaxis"),i(r._startsY,"yaxis"),i(r._startsZ,"zaxis"));else{for(var v=u[0],p=Iz(l),b=Iz(s),m=new Array(p.length*b.length),w=0,M=0;M{"use strict";Hz.exports={moduleType:"trace",name:"streamtube",basePlotModule:il(),categories:["gl3d","showLegend"],attributes:x5(),supplyDefaults:Pz(),colorbar:{min:"cmin",max:"cmax"},calc:gd().calc,plot:Uz(),eventData:function(e,r){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=r.traceCoordinate[3],e.tubev=r.traceCoordinate[4],e.tubew=r.traceCoordinate[5],e.norm=r.traceCoordinate[6],e.divergence=r.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var Yz=pe((Npe,Gz)=>{"use strict";Gz.exports=Vz()});var Dn=pe((zpe,Xz)=>{"use strict";var Wz=Object.getOwnPropertySymbols,aue=Object.prototype.hasOwnProperty,iue=Object.prototype.propertyIsEnumerable;function oue(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function lue(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var n=Object.getOwnPropertyNames(r).map(function(o){return r[o]});if(n.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(o){a[o]=o}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(o){return!1}}Xz.exports=lue()?Object.assign:function(e,r){for(var t,n=oue(e),a,o=1;o{var Md=Dn();function Zz(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}Md(Zz.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,n,a){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,a):n)||this.instance(),n.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var n="",a=0;t>0;){var o=t%10;n=(o===0?"":e[o]+r[a])+n,a++,t=Math.floor(t/10)}return n.indexOf(e[1]+r[1])===0&&(n=n.substr(1)),n||e[0]}}});function w5(e,r,t,n){if(this._calendar=e,this._year=r,this._month=t,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function wd(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}Md(w5.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Wr.local.differentCalendars||Wr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+wd(Math.abs(this.year()),4)+"-"+wd(this.month(),2)+"-"+wd(this.day(),2)}});function M5(){this.shortYearCutoff="+10"}Md(M5.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new w5(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Wr.local.invalidYear||Wr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Wr.local.invalidYear||Wr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+wd(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Wr.local.invalidYear||Wr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Wr.local.invalidMonth||Wr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Wr.local.invalidMonth||Wr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Wr.local.invalidYear||Wr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var n=this._validate(e,r,t,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var n=e.toJD()+r*(t==="w"?this.daysInWeek():1),a=e.calendar().fromJD(n);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var o=e.year()+(t==="y"?r:0),i=e.monthOfYear()+(t==="m"?r:0),a=e.day(),l=function(f){for(;iv-1+f.minMonth;)o++,i-=v,v=f.monthsInYear(o)};t==="y"?(e.month()!==this.fromMonthOfYear(o,i)&&(i=this.newDate(o,e.month(),this.minDay).monthOfYear()),i=Math.min(i,this.monthsInYear(o)),a=Math.min(a,this.daysInMonth(o,this.fromMonthOfYear(o,i)))):t==="m"&&(l(this),a=Math.min(a,this.daysInMonth(o,this.fromMonthOfYear(o,i))));var u=[o,this.fromMonthOfYear(o,i),a];return this._validateLevel--,u}catch(s){throw this._validateLevel--,s}},_correctAdd:function(e,r,t,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],o=t<0?-1:1;r=this._add(e,t*a[0]+o*a[1],a[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate);var n=t==="y"?r:e.year(),a=t==="m"?r:e.month(),o=t==="d"?r:e.day();return(t==="y"||t==="m")&&(o=Math.min(o,this.daysInMonth(n,a))),e.date(n,a,o)},isValid:function(e,r,t){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var a=this.newDate(e,r,this.minDay);n=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),s=a-(u>2.5?4716:4715);return s<=0&&s--,this.newDate(s,u,l)},toJSDate:function(e,r,t){var n=this._validate(e,r,t,Wr.local.invalidDate||Wr.regionalOptions[""].invalidDate),a=new Date(n.year(),n.month()-1,n.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Wr=Jz.exports=new Zz;Wr.cdate=w5;Wr.baseCalendar=M5;Wr.calendars.gregorian=T5});var Kz=pe(()=>{var A5=Dn(),gn=Pn();A5(gn.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});gn.local=gn.regionalOptions[""];A5(gn.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});A5(gn.baseCalendar.prototype,{UNIX_EPOCH:gn.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:gn.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw gn.local.invalidFormat||gn.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var n=t.dayNamesShort||this.local.dayNamesShort,a=t.dayNames||this.local.dayNames,o=t.monthNumbers||this.local.monthNumbers,i=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,u=t.calculateWeek||this.local.calculateWeek,s=function(x,T){for(var d=1;S+d1},f=function(x,T,d,_){var g=""+T;if(s(x,_))for(;g.length1},k=function(R,E){var D=y(R,E),N=[2,3,D?4:2,D?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],I=new RegExp("^-?\\d{1,"+N+"}"),F=r.substring(g).match(I);if(!F)throw(gn.local.missingNumberAt||gn.regionalOptions[""].missingNumberAt).replace(/\{0\}/,g);return g+=F[0].length,parseInt(F[0],10)},S=this,x=function(){if(typeof l=="function"){y("m");var R=l.call(S,r.substring(g));return g+=R.length,R}return k("m")},T=function(R,E,D,N){for(var I=y(R,N)?D:E,F=0;F-1){p=1,b=m;for(var h=this.daysInMonth(v,p);b>h;h=this.daysInMonth(v,p))p++,b-=h}return f>-1?this.fromJD(f):this.newDate(v,p,b)},determineDate:function(e,r,t,n,a){t&&typeof t!="object"&&(a=n,n=t,t=null),typeof n!="string"&&(a=n,n="");var o=this,i=function(l){try{return o.parseDate(n,l,a)}catch(v){}l=l.toLowerCase();for(var u=(l.match(/^c/)&&t?t.newDate():null)||o.today(),s=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=s.exec(l);f;)u.add(parseInt(f[1],10),f[2]||"d"),f=s.exec(l);return u};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?i(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:o.today().add(e,"d"):o.newDate(e),e}})});var Qz=pe(()=>{var sl=Pn(),sue=Dn(),k5=sl.instance();function Td(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Td.prototype=new sl.baseCalendar;sue(Td.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(fue);return t?t[0]:""}var n=this._validateYear(e),a=e.month(),o=""+this.toChineseMonth(n,a);return r&&o.length<2&&(o="0"+o),this.isIntercalaryMonth(n,a)&&(o+="i"),o},monthNames:function(e){if(typeof e=="string"){var r=e.match(cue);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),o=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][a-1];return this.isIntercalaryMonth(t,n)&&(o="\u95F0"+o),o},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(vue);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),o=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][a-1];return this.isIntercalaryMonth(t,n)&&(o="\u95F0"+o),o},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),n;if(isNaN(t))r[0]==="\u95F0"&&(n=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var a=r[r.length-1];n=a==="i"||a==="I"}var o=this.toMonthIndex(e,t,n);return o},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var n=this.intercalaryMonth(e),a=t&&r!==n;if(a||r<1||r>12)throw sl.local.invalidMonth.replace(/\{0\}/,this.local.name);var o;return n?!t&&r<=n?o=r-1:o=r:o=r-1,o},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),n=t?12:11;if(r<0||r>n)throw sl.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var n=this._validateYear(e,sl.local.invalidyear),a=fl[n-fl[0]],o=a>>9&4095,i=a>>5&15,l=a&31,u;u=k5.newDate(o,i,l),u.add(4-(u.dayOfWeek()||7),"d");var s=this.toJD(e,r,t)-u.toJD();return 1+Math.floor(s/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=ul[e-ul[0]],n=t>>13,a=n?12:11;if(r>a)throw sl.local.invalidMonth.replace(/\{0\}/,this.local.name);var o=t&1<<12-r?30:29;return o},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,o,t,sl.local.invalidDate);e=this._validateYear(n.year()),r=n.month(),t=n.day();var a=this.isIntercalaryMonth(e,r),o=this.toChineseMonth(e,r),i=due(e,o,t,a);return k5.toJD(i.year,i.month,i.day)},fromJD:function(e){var r=k5.fromJD(e),t=hue(r.year(),r.month(),r.day()),n=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,n,t.day)},fromString:function(e){var r=e.match(uue),t=this._validateYear(+r[1]),n=+r[2],a=!!r[3],o=this.toMonthIndex(t,n,a),i=+r[4];return this.newDate(t,o,i)},add:function(e,r,t){var n=e.year(),a=e.month(),o=this.isIntercalaryMonth(n,a),i=this.toChineseMonth(n,a),l=Object.getPrototypeOf(Td.prototype).add.call(this,e,r,t);if(t==="y"){var u=l.year(),s=l.month(),f=this.isIntercalaryMonth(u,i),v=o&&f?this.toMonthIndex(u,i,!0):this.toMonthIndex(u,i,!1);v!==s&&l.month(v)}return l}});var uue=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,fue=/^\d?\d[iI]?/m,cue=/^闰?十?[一二三四五六七八九]?月/m,vue=/^闰?十?[一二三四五六七八九]?/m;sl.calendars.chinese=Td;var ul=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],fl=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function hue(e,r,t,n){var a,o;if(typeof e=="object")a=e,o=r||{};else{var i=typeof e=="number"&&e>=1888&&e<=2111;if(!i)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=31;if(!u)throw new Error("Solar day outside range 1 - 31");a={year:e,month:r,day:t},o=n||{}}var s=fl[a.year-fl[0]],f=a.year<<9|a.month<<5|a.day;o.year=f>=s?a.year:a.year-1,s=fl[o.year-fl[0]];var v=s>>9&4095,p=s>>5&15,b=s&31,m,w=new Date(v,p-1,b),M=new Date(a.year,a.month-1,a.day);m=Math.round((M-w)/(24*3600*1e3));var y=ul[o.year-ul[0]],k;for(k=0;k<13;k++){var S=y&1<<12-k?30:29;if(m>13;return!x||k=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var u=typeof r=="number"&&r>=1&&r<=12;if(!u)throw new Error("Lunar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=30;if(!s)throw new Error("Lunar day outside range 1 - 30");var f;typeof n=="object"?(f=!1,o=n):(f=!!n,o=a||{}),i={year:e,month:r,day:t,isIntercalary:f}}var v;v=i.day-1;var p=ul[i.year-ul[0]],b=p>>13,m;b&&(i.month>b||i.isIntercalary)?m=i.month:m=i.month-1;for(var w=0;w>9&4095,S=y>>5&15,x=y&31,T=new Date(k,S-1,x+v);return o.year=T.getFullYear(),o.month=1+T.getMonth(),o.day=T.getDate(),o}});var $z=pe(()=>{var vs=Pn(),pue=Dn();function S5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}S5.prototype=new vs.baseCalendar;pue(S5.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,vs.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,vs.local.invalidYear||vs.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,vs.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,vs.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});vs.calendars.coptic=S5});var jz=pe(()=>{var mo=Pn(),gue=Dn();function C5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C5.prototype=new mo.baseCalendar;gue(C5.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,mo.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,mo.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,mo.local.invalidYear),400},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,mo.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,mo.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,r,t){var n=this.dayOfWeek(e,r,t);return n>=2&&n<=6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,mo.local.invalidDate);return{century:yue[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,r,t){var n=this._validate(e,r,t,mo.local.invalidDate);return e=n.year()+(n.year()<0?1:0),r=n.month(),t=n.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,n=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,n)}});var yue={20:"Fruitbat",21:"Anchovy"};mo.calendars.discworld=C5});var eq=pe(()=>{var hs=Pn(),mue=Dn();function E5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}E5.prototype=new hs.baseCalendar;mue(E5.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,hs.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,hs.local.invalidYear||hs.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,hs.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,hs.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});hs.calendars.ethiopian=E5});var rq=pe(()=>{var cl=Pn(),xue=Dn();function L5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}L5.prototype=new cl.baseCalendar;xue(L5.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,cl.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Ad(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cl.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,cl.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,cl.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Ad(this.daysInYear(e),10)===5?30:r===9&&Ad(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,cl.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,r,t){var n=this._validate(e,r,t,cl.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=e<=0?e+1:e,o=this.jdEpoch+this._delay1(a)+this._delay2(a)+t+1;if(r<7){for(var i=7;i<=this.monthsInYear(e);i++)o+=this.daysInMonth(e,i);for(var i=1;i=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});function Ad(e,r){return e-r*Math.floor(e/r)}cl.calendars.hebrew=L5});var tq=pe(()=>{var Y0=Pn(),bue=Dn();function R5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}R5.prototype=new Y0.baseCalendar;bue(R5.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Y0.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Y0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,Y0.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});Y0.calendars.islamic=R5});var nq=pe(()=>{var W0=Pn(),_ue=Dn();function D5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}D5.prototype=new W0.baseCalendar;_ue(D5.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,W0.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,W0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,W0.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,n=Math.floor((t-122.1)/365.25),a=Math.floor(365.25*n),o=Math.floor((t-a)/30.6001),i=o-Math.floor(o<14?1:13),l=n-Math.floor(i>2?4716:4715),u=t-a-Math.floor(30.6001*o);return l<=0&&l--,this.newDate(l,i,u)}});W0.calendars.julian=D5});var iq=pe(()=>{var Ya=Pn(),wue=Dn();function F5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}F5.prototype=new Ya.baseCalendar;wue(F5.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ya.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ya.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return t+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&n<0)throw"Invalid Mayan year";r=r*20+n}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ya.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Ya.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ya.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Ya.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Ya.local.invalidDate);return n.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Ya.local.invalidDate),!0},extraInfo:function(e,r,t){var n=this._validate(e,r,t,Ya.local.invalidDate),a=n.toJD(),o=this._toHaab(a),i=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[o[0]-1],haabMonth:o[0],haabDay:o[1],tzolkinDayName:this.local.tzolkinMonths[i[0]-1],tzolkinDay:i[0],tzolkinTrecena:i[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=P5(e+8+17*20,365);return[Math.floor(r/20)+1,P5(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[aq(e+20,20),aq(e+4,13)]},toJD:function(e,r,t){var n=this._validate(e,r,t,Ya.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),n=e%20;return this.newDate(r,t,n)}});function P5(e,r){return e-r*Math.floor(e/r)}function aq(e,r){return P5(e-1,r)+1}Ya.calendars.mayan=F5});var lq=pe(()=>{var ds=Pn(),Mue=Dn();function I5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}I5.prototype=new ds.baseCalendar;var oq=ds.instance("gregorian");Mue(I5.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ds.local.invalidYear||ds.regionalOptions[""].invalidYear);return oq.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ds.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,ds.local.invalidMonth),a=n.year();a<0&&a++;for(var o=n.day(),i=1;i=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,n=1;t>this.daysInMonth(r,n);)t-=this.daysInMonth(r,n),n++;return this.newDate(r,n,t)}});ds.calendars.nanakshahi=I5});var sq=pe(()=>{var ps=Pn(),Tue=Dn();function N5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}N5.prototype=new ps.baseCalendar;Tue(N5.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ps.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,n=this.minMonth;n<=12;n++)t+=this.NEPALI_CALENDAR_DATA[e][n];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,ps.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var n=this._validate(e,r,t,ps.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=ps.instance(),o=0,i=r,l=e;this._createMissingCalendarData(e);var u=e-(i>9||i===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(o=t,i--);i!==9;)i<=0&&(i=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][i],i--;return r===9?(o+=t-this.NEPALI_CALENDAR_DATA[l][0],o<0&&(o+=a.daysInYear(u))):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(u,1,1).add(o,"d").toJD()},fromJD:function(e){var r=ps.instance(),t=r.fromJD(e),n=t.year(),a=t.dayOfYear(),o=n+56;this._createMissingCalendarData(o);for(var i=9,l=this.NEPALI_CALENDAR_DATA[o][0],u=this.NEPALI_CALENDAR_DATA[o][i]-l+1;a>u;)i++,i>12&&(i=1,o++),u+=this.NEPALI_CALENDAR_DATA[o][i];var s=this.NEPALI_CALENDAR_DATA[o][i]-(u-a);return this.newDate(o,i,s)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Wu=Pn(),Aue=Dn();function Sd(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function kd(e){var r=e-475;e<0&&r++;var t=.242197,n=t*r,a=t*(r+1),o=n-Math.floor(n),i=a-Math.floor(a);return o>i}Sd.prototype=new Wu.baseCalendar;Aue(Sd.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Wu.local.invalidYear);return kd(r.year())},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Wu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,Wu.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=0;if(e>0)for(var o=1;o0?e-1:e)*365+a+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,kd(t)?30:29)&&(t++,t===0&&t++);var n=e-this.toJD(t,1,1)+1,a=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),o=e-this.toJD(t,a,1)+1;return this.newDate(t,a,o)}});Wu.calendars.persian=Sd;Wu.calendars.jalali=Sd});var fq=pe(()=>{var gs=Pn(),kue=Dn(),Cd=gs.instance();function z5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}z5.prototype=new gs.baseCalendar;kue(z5.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,gs.local.invalidYear),t=this._t2gYear(r.year());return Cd.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,gs.local.invalidYear),a=this._t2gYear(n.year());return Cd.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,gs.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,gs.local.invalidDate),a=this._t2gYear(n.year());return Cd.toJD(a,n.month(),n.day())},fromJD:function(e){var r=Cd.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});gs.calendars.taiwan=z5});var cq=pe(()=>{var ys=Pn(),Sue=Dn(),Ed=ys.instance();function q5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}q5.prototype=new ys.baseCalendar;Sue(q5.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(t){var r=this._validate(t,this.minMonth,this.minDay,ys.local.invalidYear),t=this._t2gYear(r.year());return Ed.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,ys.local.invalidYear),a=this._t2gYear(n.year());return Ed.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ys.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,ys.local.invalidDate),a=this._t2gYear(n.year());return Ed.toJD(a,n.month(),n.day())},fromJD:function(e){var r=Ed.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});ys.calendars.thai=q5});var vq=pe(()=>{var ms=Pn(),Cue=Dn();function O5(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}O5.prototype=new ms.baseCalendar;Cue(O5.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ms.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,ms.local.invalidMonth),n=t.toJD()-24e5+.5,a=0,o=0;on)return vl[a]-vl[a-1];a++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,ms.local.invalidDate),a=12*(n.year()-1)+n.month()-15292,o=n.day()+vl[a-1]-1;return o+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,n=0;nr);n++)t++;var a=t+15292,o=Math.floor((a-1)/12),i=o+1,l=a-12*o,u=r-vl[t-1]+1;return this.newDate(i,l,u)},isValid:function(e,r,t){var n=ms.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,r,t,n){var a=ms.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw n.replace(/\{0\}/,this.local.name);return a}});ms.calendars.ummalqura=O5;var vl=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var dq=pe((pge,hq)=>{"use strict";hq.exports=Pn();Kz();Qz();$z();jz();eq();rq();tq();nq();iq();lq();sq();uq();fq();cq();vq()});var _q=pe((gge,bq)=>{"use strict";var gq=dq(),X0=ir(),yq=an(),Eue=yq.EPOCHJD,Lue=yq.ONEDAY,H5={valType:"enumerated",values:X0.sortObjectKeys(gq.calendars),editType:"calc",dflt:"gregorian"},mq=function(e,r,t,n){var a={};return a[t]=H5,X0.coerce(e,r,a,t,n)},Rue=function(e,r,t,n){for(var a=0;a{"use strict";wq.exports=_q()});var zue=pe((mge,Aq)=>{var Tq=MF();Tq.register([jI(),TN(),HN(),ez(),dz(),Ez(),Yz(),Mq()]);Aq.exports=Tq});return zue();})(); /*! * The buffer module from node.js, for the browser. * diff --git a/dist/plotly-mapbox.js b/dist/plotly-mapbox.js index c40b9e174ad..4792c591b6d 100644 --- a/dist/plotly-mapbox.js +++ b/dist/plotly-mapbox.js @@ -1,5 +1,5 @@ /** -* plotly.js (mapbox) v3.1.0-rc.0 +* plotly.js (mapbox) 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-mapbox.min.js b/dist/plotly-mapbox.min.js index 17488f012ad..d76e748018a 100644 --- a/dist/plotly-mapbox.min.js +++ b/dist/plotly-mapbox.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (mapbox - minified) v3.1.0-rc.0 +* plotly.js (mapbox - minified) v3.1.0-rc.1 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,18 +12,18 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var p7=Object.defineProperty;var KX=Object.getOwnPropertyDescriptor;var QX=Object.getOwnPropertyNames;var $X=Object.prototype.hasOwnProperty;var m7=(e,t)=>()=>(e&&(t=e(e=0)),t);var pe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ej=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of QX(t))!$X.call(e,a)&&a!==r&&p7(e,a,{get:()=>t[a],enumerable:!(i=KX(t,a))||i.enumerable});return e};var tj=e=>ej(p7({},"__esModule",{value:!0}),e);var U1=pe(y7=>{"use strict";y7.version="3.1.0-rc.0"});var _7=pe((g7,V1)=>{(function(t,r,i){r[t]=r[t]||i(),typeof V1!="undefined"&&V1.exports&&(V1.exports=r[t])})("Promise",typeof window!="undefined"?window:g7,function(){"use strict";var t,r,i,a=Object.prototype.toString,s=typeof setImmediate!="undefined"?function(B){return setImmediate(B)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(B,q,z,O){return Object.defineProperty(B,q,{value:z,writable:!0,configurable:O!==!1})}}catch(I){t=function(q,z,O){return q[z]=O,q}}i=function(){var B,q,z;function O(H,V){this.fn=H,this.self=V,this.next=void 0}return{add:function(V,W){z=new O(V,W),q?q.next=z:B=z,q=z,z=void 0},drain:function(){var V=B;for(B=q=r=void 0;V;)V.fn.call(V.self),V=V.next}}}();function l(I,B){i.add(I,B),r||(r=s(i.drain))}function f(I){var B,q=typeof I;return I!=null&&(q=="object"||q=="function")&&(B=I.then),typeof B=="function"?B:!1}function h(){for(var I=0;I0&&l(h,q))}catch(z){_.call(new S(q),z)}}}function _(I){var B=this;B.triggered||(B.triggered=!0,B.def&&(B=B.def),B.msg=I,B.state=2,B.chain.length>0&&l(h,B))}function T(I,B,q,z){for(var O=0;O{(function(){var e={version:"3.8.2"},t=[].slice,r=function(y){return t.call(y)},i=self.document;function a(y){return y&&(y.ownerDocument||y.document||y).documentElement}function s(y){return y&&(y.ownerDocument&&y.ownerDocument.defaultView||y.document&&y||y.defaultView)}if(i)try{r(i.documentElement.childNodes)[0].nodeType}catch(y){r=function(M){for(var P=M.length,N=new Array(P);P--;)N[P]=M[P];return N}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch(y){var l=this.Element.prototype,f=l.setAttribute,h=l.setAttributeNS,v=this.CSSStyleDeclaration.prototype,m=v.setProperty;l.setAttribute=function(M,P){f.call(this,M,P+"")},l.setAttributeNS=function(M,P,N){h.call(this,M,P,N+"")},v.setProperty=function(M,P,N){m.call(this,M,P+"",N)}}e.ascending=_;function _(y,M){return yM?1:y>=M?0:NaN}e.descending=function(y,M){return My?1:M>=y?0:NaN},e.min=function(y,M){var P=-1,N=y.length,U,Z;if(arguments.length===1){for(;++P=Z){U=Z;break}for(;++PZ&&(U=Z)}else{for(;++P=Z){U=Z;break}for(;++PZ&&(U=Z)}return U},e.max=function(y,M){var P=-1,N=y.length,U,Z;if(arguments.length===1){for(;++P=Z){U=Z;break}for(;++PU&&(U=Z)}else{for(;++P=Z){U=Z;break}for(;++PU&&(U=Z)}return U},e.extent=function(y,M){var P=-1,N=y.length,U,Z,$;if(arguments.length===1){for(;++P=Z){U=$=Z;break}for(;++PZ&&(U=Z),$=Z){U=$=Z;break}for(;++PZ&&(U=Z),$1)return $/(ae-1)},e.deviation=function(){var y=e.variance.apply(this,arguments);return y&&Math.sqrt(y)};function C(y){return{left:function(M,P,N,U){for(arguments.length<3&&(N=0),arguments.length<4&&(U=M.length);N>>1;y(M[Z],P)<0?N=Z+1:U=Z}return N},right:function(M,P,N,U){for(arguments.length<3&&(N=0),arguments.length<4&&(U=M.length);N>>1;y(M[Z],P)>0?U=Z:N=Z+1}return N}}}var D=C(_);e.bisectLeft=D.left,e.bisect=e.bisectRight=D.right,e.bisector=function(y){return C(y.length===1?function(M,P){return _(y(M),P)}:y)},e.shuffle=function(y,M,P){(N=arguments.length)<3&&(P=y.length,N<2&&(M=0));for(var N=P-M,U,Z;N;)Z=Math.random()*N--|0,U=y[N+M],y[N+M]=y[Z+M],y[Z+M]=U;return y},e.permute=function(y,M){for(var P=M.length,N=new Array(P);P--;)N[P]=y[M[P]];return N},e.pairs=function(y){for(var M=0,P=y.length-1,N,U=y[0],Z=new Array(P<0?0:P);M=0;)for($=y[M],P=$.length;--P>=0;)Z[--U]=$[P];return Z};var I=Math.abs;e.range=function(y,M,P){if(arguments.length<3&&(P=1,arguments.length<2&&(M=y,y=0)),(M-y)/P===1/0)throw new Error("infinite range");var N=[],U=B(I(P)),Z=-1,$;if(y*=U,M*=U,P*=U,P<0)for(;($=y+P*++Z)>M;)N.push($/U);else for(;($=y+P*++Z)=M.length)return U?U.call(y,ae):N?ae.sort(N):ae;for(var _e=-1,Pe=ae.length,De=M[ye++],Ke,ot,ze,Ue=new z,Je;++_e=M.length)return X;var ye=[],_e=P[ae++];return X.forEach(function(Pe,De){ye.push({key:Pe,values:$(De,ae)})}),_e?ye.sort(function(Pe,De){return _e(Pe.key,De.key)}):ye}return y.map=function(X,ae){return Z(ae,X,0)},y.entries=function(X){return $(Z(e.map,X,0),0)},y.key=function(X){return M.push(X),y},y.sortKeys=function(X){return P[M.length-1]=X,y},y.sortValues=function(X){return N=X,y},y.rollup=function(X){return U=X,y},y},e.set=function(y){var M=new de;if(y)for(var P=0,N=y.length;P=0&&(N=y.slice(P+1),y=y.slice(0,P)),y)return arguments.length<2?this[y].on(N):this[y].on(N,M);if(arguments.length===2){if(M==null)for(y in this)this.hasOwnProperty(y)&&this[y].on(N,null);return this}};function Le(y){var M=[],P=new z;function N(){for(var U=M,Z=-1,$=U.length,X;++Z<$;)(X=U[Z].on)&&X.apply(this,arguments);return y}return N.on=function(U,Z){var $=P.get(U),X;return arguments.length<2?$&&$.on:($&&($.on=null,M=M.slice(0,X=M.indexOf($)).concat(M.slice(X+1)),P.remove(U)),Z&&M.push(P.set(U,{on:Z})),y)},N}e.event=null;function Qe(){e.event.preventDefault()}function st(){for(var y=e.event,M;M=y.sourceEvent;)y=M;return y}function at(y){for(var M=new Ce,P=0,N=arguments.length;++P=0&&(P=y.slice(0,M))!=="xmlns"&&(y=y.slice(M+1)),rt.hasOwnProperty(P)?{space:rt[P],local:y}:y}},ct.attr=function(y,M){if(arguments.length<2){if(typeof y=="string"){var P=this.node();return y=e.ns.qualify(y),y.local?P.getAttributeNS(y.space,y.local):P.getAttribute(y)}for(M in y)this.each(pt(M,y[M]));return this}return this.each(pt(y,M))};function pt(y,M){y=e.ns.qualify(y);function P(){this.removeAttribute(y)}function N(){this.removeAttributeNS(y.space,y.local)}function U(){this.setAttribute(y,M)}function Z(){this.setAttributeNS(y.space,y.local,M)}function $(){var ae=M.apply(this,arguments);ae==null?this.removeAttribute(y):this.setAttribute(y,ae)}function X(){var ae=M.apply(this,arguments);ae==null?this.removeAttributeNS(y.space,y.local):this.setAttributeNS(y.space,y.local,ae)}return M==null?y.local?N:P:typeof M=="function"?y.local?X:$:y.local?Z:U}function je(y){return y.trim().replace(/\s+/g," ")}ct.classed=function(y,M){if(arguments.length<2){if(typeof y=="string"){var P=this.node(),N=(y=It(y)).length,U=-1;if(M=P.classList){for(;++U=0;)(Z=P[N])&&(U&&U!==Z.nextSibling&&U.parentNode.insertBefore(Z,U),U=Z);return this},ct.sort=function(y){y=ut.apply(this,arguments);for(var M=-1,P=this.length;++M=M&&(M=U+1);!(ae=$[M])&&++M0&&(y=y.slice(0,U));var $=Ht.get(y);$&&(y=$,Z=Gt);function X(){var _e=this[N];_e&&(this.removeEventListener(y,_e,_e.$),delete this[N])}function ae(){var _e=Z(M,r(arguments));X.call(this),this.addEventListener(y,this[N]=_e,_e.$=P),_e._=M}function ye(){var _e=new RegExp("^__on([^.]+)"+e.requote(y)+"$"),Pe;for(var De in this)if(Pe=De.match(_e)){var Ke=this[De];this.removeEventListener(Pe[1],Ke,Ke.$),delete this[De]}}return U?M?ae:X:M?Ae:ye}var Ht=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&Ht.forEach(function(y){"on"+y in i&&Ht.remove(y)});function Xt(y,M){return function(P){var N=e.event;e.event=P,M[0]=this.__data__;try{y.apply(this,M)}finally{e.event=N}}}function Gt(y,M){var P=Xt(y,M);return function(N){var U=this,Z=N.relatedTarget;(!Z||Z!==U&&!(Z.compareDocumentPosition(U)&8))&&P.call(U,N)}}var Ot,tr=0;function Mr(y){var M=".dragsuppress-"+ ++tr,P="click"+M,N=e.select(s(y)).on("touchmove"+M,Qe).on("dragstart"+M,Qe).on("selectstart"+M,Qe);if(Ot==null&&(Ot="onselectstart"in y?!1:Te(y.style,"userSelect")),Ot){var U=a(y).style,Z=U[Ot];U[Ot]="none"}return function($){if(N.on(M,null),Ot&&(U[Ot]=Z),$){var X=function(){N.on(P,null)};N.on(P,function(){Qe(),X()},!0),setTimeout(X,0)}}}e.mouse=function(y){return Lt(y,st())};var br=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Lt(y,M){M.changedTouches&&(M=M.changedTouches[0]);var P=y.ownerSVGElement||y;if(P.createSVGPoint){var N=P.createSVGPoint();if(br<0){var U=s(y);if(U.scrollX||U.scrollY){P=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Z=P[0][0].getScreenCTM();br=!(Z.f||Z.e),P.remove()}}return br?(N.x=M.pageX,N.y=M.pageY):(N.x=M.clientX,N.y=M.clientY),N=N.matrixTransform(y.getScreenCTM().inverse()),[N.x,N.y]}var $=y.getBoundingClientRect();return[M.clientX-$.left-y.clientLeft,M.clientY-$.top-y.clientTop]}e.touch=function(y,M,P){if(arguments.length<3&&(P=M,M=st().changedTouches),M){for(var N=0,U=M.length,Z;N0?1:y<0?-1:0}function Ea(y,M,P){return(M[0]-y[0])*(P[1]-y[1])-(M[1]-y[1])*(P[0]-y[0])}function Ii(y){return y>1?0:y<-1?vt:Math.acos(y)}function Ki(y){return y>1?Ar:y<-1?-Ar:Math.asin(y)}function yn(y){return((y=Math.exp(y))-1/y)/2}function Xi(y){return((y=Math.exp(y))+1/y)/2}function jn(y){return((y=Math.exp(2*y))-1)/(y+1)}function En(y){return(y=Math.sin(y/2))*y}var Vi=Math.SQRT2,pa=2,Gr=4;e.interpolateZoom=function(y,M){var P=y[0],N=y[1],U=y[2],Z=M[0],$=M[1],X=M[2],ae=Z-P,ye=$-N,_e=ae*ae+ye*ye,Pe,De;if(_e0&&(Kt=Kt.transition().duration($)),Kt.call(nt.event)}function Pr(){Ue&&Ue.domain(ze.range().map(function(Kt){return(Kt-y.x)/y.k}).map(ze.invert)),ft&&ft.domain(Je.range().map(function(Kt){return(Kt-y.y)/y.k}).map(Je.invert))}function Ir(Kt){X++||Kt({type:"zoomstart"})}function ea(Kt){Pr(),Kt({type:"zoom",scale:y.k,translate:[y.x,y.y]})}function Ur(Kt){--X||(Kt({type:"zoomend"}),P=null)}function Kr(){var Kt=this,Jr=ot.of(Kt,arguments),oa=0,sa=e.select(s(Kt)).on(ye,$i).on(_e,bi),Ei=We(e.mouse(Kt)),Oi=Mr(Kt);ah.call(Kt),Ir(Jr);function $i(){oa=1,fr(e.mouse(Kt),Ei),ea(Jr)}function bi(){sa.on(ye,null).on(_e,null),Oi(oa),Ur(Jr)}}function Ba(){var Kt=this,Jr=ot.of(Kt,arguments),oa={},sa=0,Ei,Oi=".zoom-"+e.event.changedTouches[0].identifier,$i="touchmove"+Oi,bi="touchend"+Oi,xn=[],wr=e.select(Kt),Vr=Mr(Kt);Ti(),Ir(Jr),wr.on(ae,null).on(De,Ti);function Fi(){var cn=e.touches(Kt);return Ei=y.k,cn.forEach(function(pi){pi.identifier in oa&&(oa[pi.identifier]=We(pi))}),cn}function Ti(){var cn=e.event.target;e.select(cn).on($i,lo).on(bi,zn),xn.push(cn);for(var pi=e.event.changedTouches,jo=0,uo=pi.length;jo1){var Aa=ci[0],ui=ci[1],Nl=Aa[0]-ui[0],Hv=Aa[1]-ui[1];sa=Nl*Nl+Hv*Hv}}function lo(){var cn=e.touches(Kt),pi,jo,uo,ci;ah.call(Kt);for(var gf=0,Aa=cn.length;gf1?1:M,P=P<0?0:P>1?1:P,U=P<=.5?P*(1+M):P+M-P*M,N=2*P-U;function Z(X){return X>360?X-=360:X<0&&(X+=360),X<60?N+(U-N)*X/60:X<180?U:X<240?N+(U-N)*(240-X)/60:N}function $(X){return Math.round(Z(X)*255)}return new ua($(y+120),$(y),$(y-120))}e.hcl=ce;function ce(y,M,P){return this instanceof ce?(this.h=+y,this.c=+M,void(this.l=+P)):arguments.length<2?y instanceof ce?new ce(y.h,y.c,y.l):y instanceof et?Tr(y.l,y.a,y.b):Tr((y=nr((y=e.rgb(y)).r,y.g,y.b)).l,y.a,y.b):new ce(y,M,P)}var Ee=ce.prototype=new ya;Ee.brighter=function(y){return new ce(this.h,this.c,Math.min(100,this.l+Ve*(arguments.length?y:1)))},Ee.darker=function(y){return new ce(this.h,this.c,Math.max(0,this.l-Ve*(arguments.length?y:1)))},Ee.rgb=function(){return Be(this.h,this.c,this.l).rgb()};function Be(y,M,P){return isNaN(y)&&(y=0),isNaN(M)&&(M=0),new et(P,Math.cos(y*=Hr)*M,Math.sin(y)*M)}e.lab=et;function et(y,M,P){return this instanceof et?(this.l=+y,this.a=+M,void(this.b=+P)):arguments.length<2?y instanceof et?new et(y.l,y.a,y.b):y instanceof ce?Be(y.h,y.c,y.l):nr((y=ua(y)).r,y.g,y.b):new et(y,M,P)}var Ve=18,yt=.95047,Dt=1,Ft=1.08883,rr=et.prototype=new ya;rr.brighter=function(y){return new et(Math.min(100,this.l+Ve*(arguments.length?y:1)),this.a,this.b)},rr.darker=function(y){return new et(Math.max(0,this.l-Ve*(arguments.length?y:1)),this.a,this.b)},rr.rgb=function(){return jt(this.l,this.a,this.b)};function jt(y,M,P){var N=(y+16)/116,U=N+M/500,Z=N-P/200;return U=Yr(U)*yt,N=Yr(N)*Dt,Z=Yr(Z)*Ft,new ua(ca(3.2404542*U-1.5371385*N-.4985314*Z),ca(-.969266*U+1.8760108*N+.041556*Z),ca(.0556434*U-.2040259*N+1.0572252*Z))}function Tr(y,M,P){return y>0?new ce(Math.atan2(P,M)*_a,Math.sqrt(M*M+P*P),y):new ce(NaN,NaN,y)}function Yr(y){return y>.206893034?y*y*y:(y-4/29)/7.787037}function Br(y){return y>.008856?Math.pow(y,1/3):7.787037*y+4/29}function ca(y){return Math.round(255*(y<=.00304?12.92*y:1.055*Math.pow(y,1/2.4)-.055))}e.rgb=ua;function ua(y,M,P){return this instanceof ua?(this.r=~~y,this.g=~~M,void(this.b=~~P)):arguments.length<2?y instanceof ua?new ua(y.r,y.g,y.b):$r(""+y,ua,se):new ua(y,M,P)}function Na(y){return new ua(y>>16,y>>8&255,y&255)}function ii(y){return Na(y)+""}var Wr=ua.prototype=new ya;Wr.brighter=function(y){y=Math.pow(.7,arguments.length?y:1);var M=this.r,P=this.g,N=this.b,U=30;return!M&&!P&&!N?new ua(U,U,U):(M&&M>4,N=N>>4|N,U=ae&240,U=U>>4|U,Z=ae&15,Z=Z<<4|Z):y.length===7&&(N=(ae&16711680)>>16,U=(ae&65280)>>8,Z=ae&255)),M(N,U,Z))}function ga(y,M,P){var N=Math.min(y/=255,M/=255,P/=255),U=Math.max(y,M,P),Z=U-N,$,X,ae=(U+N)/2;return Z?(X=ae<.5?Z/(U+N):Z/(2-U-N),y==U?$=(M-P)/Z+(M0&&ae<1?0:$),new le($,X,ae)}function nr(y,M,P){y=wi(y),M=wi(M),P=wi(P);var N=Br((.4124564*y+.3575761*M+.1804375*P)/yt),U=Br((.2126729*y+.7151522*M+.072175*P)/Dt),Z=Br((.0193339*y+.119192*M+.9503041*P)/Ft);return et(116*U-16,500*(N-U),200*(U-Z))}function wi(y){return(y/=255)<=.04045?y/12.92:Math.pow((y+.055)/1.055,2.4)}function La(y){var M=parseFloat(y);return y.charAt(y.length-1)==="%"?Math.round(M*2.55):M}var si=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});si.forEach(function(y,M){si.set(y,Na(M))});function fa(y){return typeof y=="function"?y:function(){return y}}e.functor=fa,e.xhr=Ln(Me);function Ln(y){return function(M,P,N){return arguments.length===2&&typeof P=="function"&&(N=P,P=null),Co(M,P,y,N)}}function Co(y,M,P,N){var U={},Z=e.dispatch("beforesend","progress","load","error"),$={},X=new XMLHttpRequest,ae=null;self.XDomainRequest&&!("withCredentials"in X)&&/^(http(s)?:)?\/\//.test(y)&&(X=new XDomainRequest),"onload"in X?X.onload=X.onerror=ye:X.onreadystatechange=function(){X.readyState>3&&ye()};function ye(){var _e=X.status,Pe;if(!_e&&Ga(X)||_e>=200&&_e<300||_e===304){try{Pe=P.call(U,X)}catch(De){Z.error.call(U,De);return}Z.load.call(U,Pe)}else Z.error.call(U,X)}return X.onprogress=function(_e){var Pe=e.event;e.event=_e;try{Z.progress.call(U,X)}finally{e.event=Pe}},U.header=function(_e,Pe){return _e=(_e+"").toLowerCase(),arguments.length<2?$[_e]:(Pe==null?delete $[_e]:$[_e]=Pe+"",U)},U.mimeType=function(_e){return arguments.length?(M=_e==null?null:_e+"",U):M},U.responseType=function(_e){return arguments.length?(ae=_e,U):ae},U.response=function(_e){return P=_e,U},["get","post"].forEach(function(_e){U[_e]=function(){return U.send.apply(U,[_e].concat(r(arguments)))}}),U.send=function(_e,Pe,De){if(arguments.length===2&&typeof Pe=="function"&&(De=Pe,Pe=null),X.open(_e,y,!0),M!=null&&!("accept"in $)&&($.accept=M+",*/*"),X.setRequestHeader)for(var Ke in $)X.setRequestHeader(Ke,$[Ke]);return M!=null&&X.overrideMimeType&&X.overrideMimeType(M),ae!=null&&(X.responseType=ae),De!=null&&U.on("error",De).on("load",function(ot){De(null,ot)}),Z.beforesend.call(U,X),X.send(Pe==null?null:Pe),U},U.abort=function(){return X.abort(),U},e.rebind(U,Z,"on"),N==null?U:U.get(_s(N))}function _s(y){return y.length===1?function(M,P){y(M==null?P:null)}:y}function Ga(y){var M=y.responseType;return M&&M!=="text"?y.response:y.responseText}e.dsv=function(y,M){var P=new RegExp('["'+y+` -]`),N=y.charCodeAt(0);function U(ye,_e,Pe){arguments.length<3&&(Pe=_e,_e=null);var De=Co(ye,M,_e==null?Z:$(_e),Pe);return De.row=function(Ke){return arguments.length?De.response((_e=Ke)==null?Z:$(Ke)):_e},De}function Z(ye){return U.parse(ye.responseText)}function $(ye){return function(_e){return U.parse(_e.responseText,ye)}}U.parse=function(ye,_e){var Pe;return U.parseRows(ye,function(De,Ke){if(Pe)return Pe(De,Ke-1);var ot=function(ze){for(var Ue={},Je=De.length,ft=0;ft=ot)return De;if(ft)return ft=!1,Pe;var Zt=ze;if(ye.charCodeAt(Zt)===34){for(var or=Zt;or++{var p7=Object.defineProperty;var QX=Object.getOwnPropertyDescriptor;var $X=Object.getOwnPropertyNames;var ej=Object.prototype.hasOwnProperty;var m7=(e,t)=>()=>(e&&(t=e(e=0)),t);var me=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var tj=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of $X(t))!ej.call(e,a)&&a!==r&&p7(e,a,{get:()=>t[a],enumerable:!(i=QX(t,a))||i.enumerable});return e};var rj=e=>tj(p7({},"__esModule",{value:!0}),e);var G1=me(y7=>{"use strict";y7.version="3.1.0-rc.1"});var _7=me((g7,Z1)=>{(function(t,r,i){r[t]=r[t]||i(),typeof Z1!="undefined"&&Z1.exports&&(Z1.exports=r[t])})("Promise",typeof window!="undefined"?window:g7,function(){"use strict";var t,r,i,a=Object.prototype.toString,s=typeof setImmediate!="undefined"?function(B){return setImmediate(B)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(B,q,z,O){return Object.defineProperty(B,q,{value:z,writable:!0,configurable:O!==!1})}}catch(I){t=function(q,z,O){return q[z]=O,q}}i=function(){var B,q,z;function O(H,V){this.fn=H,this.self=V,this.next=void 0}return{add:function(V,W){z=new O(V,W),q?q.next=z:B=z,q=z,z=void 0},drain:function(){var V=B;for(B=q=r=void 0;V;)V.fn.call(V.self),V=V.next}}}();function l(I,B){i.add(I,B),r||(r=s(i.drain))}function f(I){var B,q=typeof I;return I!=null&&(q=="object"||q=="function")&&(B=I.then),typeof B=="function"?B:!1}function h(){for(var I=0;I0&&l(h,q))}catch(z){_.call(new S(q),z)}}}function _(I){var B=this;B.triggered||(B.triggered=!0,B.def&&(B=B.def),B.msg=I,B.state=2,B.chain.length>0&&l(h,B))}function T(I,B,q,z){for(var O=0;O{(function(){var e={version:"3.8.2"},t=[].slice,r=function(y){return t.call(y)},i=self.document;function a(y){return y&&(y.ownerDocument||y.document||y).documentElement}function s(y){return y&&(y.ownerDocument&&y.ownerDocument.defaultView||y.document&&y||y.defaultView)}if(i)try{r(i.documentElement.childNodes)[0].nodeType}catch(y){r=function(M){for(var P=M.length,N=new Array(P);P--;)N[P]=M[P];return N}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch(y){var l=this.Element.prototype,f=l.setAttribute,h=l.setAttributeNS,v=this.CSSStyleDeclaration.prototype,m=v.setProperty;l.setAttribute=function(M,P){f.call(this,M,P+"")},l.setAttributeNS=function(M,P,N){h.call(this,M,P,N+"")},v.setProperty=function(M,P,N){m.call(this,M,P+"",N)}}e.ascending=_;function _(y,M){return yM?1:y>=M?0:NaN}e.descending=function(y,M){return My?1:M>=y?0:NaN},e.min=function(y,M){var P=-1,N=y.length,U,Z;if(arguments.length===1){for(;++P=Z){U=Z;break}for(;++PZ&&(U=Z)}else{for(;++P=Z){U=Z;break}for(;++PZ&&(U=Z)}return U},e.max=function(y,M){var P=-1,N=y.length,U,Z;if(arguments.length===1){for(;++P=Z){U=Z;break}for(;++PU&&(U=Z)}else{for(;++P=Z){U=Z;break}for(;++PU&&(U=Z)}return U},e.extent=function(y,M){var P=-1,N=y.length,U,Z,$;if(arguments.length===1){for(;++P=Z){U=$=Z;break}for(;++PZ&&(U=Z),$=Z){U=$=Z;break}for(;++PZ&&(U=Z),$1)return $/(ae-1)},e.deviation=function(){var y=e.variance.apply(this,arguments);return y&&Math.sqrt(y)};function C(y){return{left:function(M,P,N,U){for(arguments.length<3&&(N=0),arguments.length<4&&(U=M.length);N>>1;y(M[Z],P)<0?N=Z+1:U=Z}return N},right:function(M,P,N,U){for(arguments.length<3&&(N=0),arguments.length<4&&(U=M.length);N>>1;y(M[Z],P)>0?U=Z:N=Z+1}return N}}}var D=C(_);e.bisectLeft=D.left,e.bisect=e.bisectRight=D.right,e.bisector=function(y){return C(y.length===1?function(M,P){return _(y(M),P)}:y)},e.shuffle=function(y,M,P){(N=arguments.length)<3&&(P=y.length,N<2&&(M=0));for(var N=P-M,U,Z;N;)Z=Math.random()*N--|0,U=y[N+M],y[N+M]=y[Z+M],y[Z+M]=U;return y},e.permute=function(y,M){for(var P=M.length,N=new Array(P);P--;)N[P]=y[M[P]];return N},e.pairs=function(y){for(var M=0,P=y.length-1,N,U=y[0],Z=new Array(P<0?0:P);M=0;)for($=y[M],P=$.length;--P>=0;)Z[--U]=$[P];return Z};var I=Math.abs;e.range=function(y,M,P){if(arguments.length<3&&(P=1,arguments.length<2&&(M=y,y=0)),(M-y)/P===1/0)throw new Error("infinite range");var N=[],U=B(I(P)),Z=-1,$;if(y*=U,M*=U,P*=U,P<0)for(;($=y+P*++Z)>M;)N.push($/U);else for(;($=y+P*++Z)=M.length)return U?U.call(y,ae):N?ae.sort(N):ae;for(var _e=-1,Pe=ae.length,De=M[ye++],Qe,lt,Ie,Ve=new z,Ke;++_e=M.length)return X;var ye=[],_e=P[ae++];return X.forEach(function(Pe,De){ye.push({key:Pe,values:$(De,ae)})}),_e?ye.sort(function(Pe,De){return _e(Pe.key,De.key)}):ye}return y.map=function(X,ae){return Z(ae,X,0)},y.entries=function(X){return $(Z(e.map,X,0),0)},y.key=function(X){return M.push(X),y},y.sortKeys=function(X){return P[M.length-1]=X,y},y.sortValues=function(X){return N=X,y},y.rollup=function(X){return U=X,y},y},e.set=function(y){var M=new de;if(y)for(var P=0,N=y.length;P=0&&(N=y.slice(P+1),y=y.slice(0,P)),y)return arguments.length<2?this[y].on(N):this[y].on(N,M);if(arguments.length===2){if(M==null)for(y in this)this.hasOwnProperty(y)&&this[y].on(N,null);return this}};function Le(y){var M=[],P=new z;function N(){for(var U=M,Z=-1,$=U.length,X;++Z<$;)(X=U[Z].on)&&X.apply(this,arguments);return y}return N.on=function(U,Z){var $=P.get(U),X;return arguments.length<2?$&&$.on:($&&($.on=null,M=M.slice(0,X=M.indexOf($)).concat(M.slice(X+1)),P.remove(U)),Z&&M.push(P.set(U,{on:Z})),y)},N}e.event=null;function $e(){e.event.preventDefault()}function ot(){for(var y=e.event,M;M=y.sourceEvent;)y=M;return y}function it(y){for(var M=new Ce,P=0,N=arguments.length;++P=0&&(P=y.slice(0,M))!=="xmlns"&&(y=y.slice(M+1)),at.hasOwnProperty(P)?{space:at[P],local:y}:y}},pt.attr=function(y,M){if(arguments.length<2){if(typeof y=="string"){var P=this.node();return y=e.ns.qualify(y),y.local?P.getAttributeNS(y.space,y.local):P.getAttribute(y)}for(M in y)this.each(yt(M,y[M]));return this}return this.each(yt(y,M))};function yt(y,M){y=e.ns.qualify(y);function P(){this.removeAttribute(y)}function N(){this.removeAttributeNS(y.space,y.local)}function U(){this.setAttribute(y,M)}function Z(){this.setAttributeNS(y.space,y.local,M)}function $(){var ae=M.apply(this,arguments);ae==null?this.removeAttribute(y):this.setAttribute(y,ae)}function X(){var ae=M.apply(this,arguments);ae==null?this.removeAttributeNS(y.space,y.local):this.setAttributeNS(y.space,y.local,ae)}return M==null?y.local?N:P:typeof M=="function"?y.local?X:$:y.local?Z:U}function Xe(y){return y.trim().replace(/\s+/g," ")}pt.classed=function(y,M){if(arguments.length<2){if(typeof y=="string"){var P=this.node(),N=(y=Lt(y)).length,U=-1;if(M=P.classList){for(;++U=0;)(Z=P[N])&&(U&&U!==Z.nextSibling&&U.parentNode.insertBefore(Z,U),U=Z);return this},pt.sort=function(y){y=ft.apply(this,arguments);for(var M=-1,P=this.length;++M=M&&(M=U+1);!(ae=$[M])&&++M0&&(y=y.slice(0,U));var $=qt.get(y);$&&(y=$,Z=Vt);function X(){var _e=this[N];_e&&(this.removeEventListener(y,_e,_e.$),delete this[N])}function ae(){var _e=Z(M,r(arguments));X.call(this),this.addEventListener(y,this[N]=_e,_e.$=P),_e._=M}function ye(){var _e=new RegExp("^__on([^.]+)"+e.requote(y)+"$"),Pe;for(var De in this)if(Pe=De.match(_e)){var Qe=this[De];this.removeEventListener(Pe[1],Qe,Qe.$),delete this[De]}}return U?M?ae:X:M?Te:ye}var qt=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&qt.forEach(function(y){"on"+y in i&&qt.remove(y)});function Qt(y,M){return function(P){var N=e.event;e.event=P,M[0]=this.__data__;try{y.apply(this,M)}finally{e.event=N}}}function Vt(y,M){var P=Qt(y,M);return function(N){var U=this,Z=N.relatedTarget;(!Z||Z!==U&&!(Z.compareDocumentPosition(U)&8))&&P.call(U,N)}}var tr,ar=0;function zr(y){var M=".dragsuppress-"+ ++ar,P="click"+M,N=e.select(s(y)).on("touchmove"+M,$e).on("dragstart"+M,$e).on("selectstart"+M,$e);if(tr==null&&(tr="onselectstart"in y?!1:Ae(y.style,"userSelect")),tr){var U=a(y).style,Z=U[tr];U[tr]="none"}return function($){if(N.on(M,null),tr&&(U[tr]=Z),$){var X=function(){N.on(P,null)};N.on(P,function(){$e(),X()},!0),setTimeout(X,0)}}}e.mouse=function(y){return At(y,ot())};var lr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function At(y,M){M.changedTouches&&(M=M.changedTouches[0]);var P=y.ownerSVGElement||y;if(P.createSVGPoint){var N=P.createSVGPoint();if(lr<0){var U=s(y);if(U.scrollX||U.scrollY){P=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Z=P[0][0].getScreenCTM();lr=!(Z.f||Z.e),P.remove()}}return lr?(N.x=M.pageX,N.y=M.pageY):(N.x=M.clientX,N.y=M.clientY),N=N.matrixTransform(y.getScreenCTM().inverse()),[N.x,N.y]}var $=y.getBoundingClientRect();return[M.clientX-$.left-y.clientLeft,M.clientY-$.top-y.clientTop]}e.touch=function(y,M,P){if(arguments.length<3&&(P=M,M=ot().changedTouches),M){for(var N=0,U=M.length,Z;N0?1:y<0?-1:0}function Ua(y,M,P){return(M[0]-y[0])*(P[1]-y[1])-(M[1]-y[1])*(P[0]-y[0])}function Ki(y){return y>1?0:y<-1?dt:Math.acos(y)}function qi(y){return y>1?mr:y<-1?-mr:Math.asin(y)}function vi(y){return((y=Math.exp(y))-1/y)/2}function Ti(y){return((y=Math.exp(y))+1/y)/2}function $i(y){return((y=Math.exp(2*y))-1)/(y+1)}function on(y){return(y=Math.sin(y/2))*y}var Ei=Math.SQRT2,ma=2,Gr=4;e.interpolateZoom=function(y,M){var P=y[0],N=y[1],U=y[2],Z=M[0],$=M[1],X=M[2],ae=Z-P,ye=$-N,_e=ae*ae+ye*ye,Pe,De;if(_e0&&(Xt=Xt.transition().duration($)),Xt.call(st.event)}function Dr(){Ve&&Ve.domain(Ie.range().map(function(Xt){return(Xt-y.x)/y.k}).map(Ie.invert)),ct&&ct.domain(Ke.range().map(function(Xt){return(Xt-y.y)/y.k}).map(Ke.invert))}function Ir(Xt){X++||Xt({type:"zoomstart"})}function ta(Xt){Dr(),Xt({type:"zoom",scale:y.k,translate:[y.x,y.y]})}function Ur(Xt){--X||(Xt({type:"zoomend"}),P=null)}function Kr(){var Xt=this,Jr=lt.of(Xt,arguments),oa=0,sa=e.select(s(Xt)).on(ye,tn).on(_e,wi),Pi=je(e.mouse(Xt)),Hi=zr(Xt);ah.call(Xt),Ir(Jr);function tn(){oa=1,cr(e.mouse(Xt),Pi),ta(Jr)}function wi(){sa.on(ye,null).on(_e,null),Hi(oa),Ur(Jr)}}function Na(){var Xt=this,Jr=lt.of(Xt,arguments),oa={},sa=0,Pi,Hi=".zoom-"+e.event.changedTouches[0].identifier,tn="touchmove"+Hi,wi="touchend"+Hi,wn=[],wr=e.select(Xt),Vr=zr(Xt);Mi(),Ir(Jr),wr.on(ae,null).on(De,Mi);function Bi(){var pn=e.touches(Xt);return Pi=y.k,pn.forEach(function(mi){mi.identifier in oa&&(oa[mi.identifier]=je(mi))}),pn}function Mi(){var pn=e.event.target;e.select(pn).on(tn,lo).on(wi,In),wn.push(pn);for(var mi=e.event.changedTouches,jo=0,uo=mi.length;jo1){var Aa=ci[0],ui=ci[1],Bl=Aa[0]-ui[0],Hv=Aa[1]-ui[1];sa=Bl*Bl+Hv*Hv}}function lo(){var pn=e.touches(Xt),mi,jo,uo,ci;ah.call(Xt);for(var gf=0,Aa=pn.length;gf1?1:M,P=P<0?0:P>1?1:P,U=P<=.5?P*(1+M):P+M-P*M,N=2*P-U;function Z(X){return X>360?X-=360:X<0&&(X+=360),X<60?N+(U-N)*X/60:X<180?U:X<240?N+(U-N)*(240-X)/60:N}function $(X){return Math.round(Z(X)*255)}return new ua($(y+120),$(y),$(y-120))}e.hcl=ce;function ce(y,M,P){return this instanceof ce?(this.h=+y,this.c=+M,void(this.l=+P)):arguments.length<2?y instanceof ce?new ce(y.h,y.c,y.l):y instanceof rt?Tr(y.l,y.a,y.b):Tr((y=ir((y=e.rgb(y)).r,y.g,y.b)).l,y.a,y.b):new ce(y,M,P)}var Ee=ce.prototype=new ga;Ee.brighter=function(y){return new ce(this.h,this.c,Math.min(100,this.l+He*(arguments.length?y:1)))},Ee.darker=function(y){return new ce(this.h,this.c,Math.max(0,this.l-He*(arguments.length?y:1)))},Ee.rgb=function(){return Ne(this.h,this.c,this.l).rgb()};function Ne(y,M,P){return isNaN(y)&&(y=0),isNaN(M)&&(M=0),new rt(P,Math.cos(y*=Hr)*M,Math.sin(y)*M)}e.lab=rt;function rt(y,M,P){return this instanceof rt?(this.l=+y,this.a=+M,void(this.b=+P)):arguments.length<2?y instanceof rt?new rt(y.l,y.a,y.b):y instanceof ce?Ne(y.h,y.c,y.l):ir((y=ua(y)).r,y.g,y.b):new rt(y,M,P)}var He=18,mt=.95047,Dt=1,Rt=1.08883,$t=rt.prototype=new ga;$t.brighter=function(y){return new rt(Math.min(100,this.l+He*(arguments.length?y:1)),this.a,this.b)},$t.darker=function(y){return new rt(Math.max(0,this.l-He*(arguments.length?y:1)),this.a,this.b)},$t.rgb=function(){return Yt(this.l,this.a,this.b)};function Yt(y,M,P){var N=(y+16)/116,U=N+M/500,Z=N-P/200;return U=Yr(U)*mt,N=Yr(N)*Dt,Z=Yr(Z)*Rt,new ua(ca(3.2404542*U-1.5371385*N-.4985314*Z),ca(-.969266*U+1.8760108*N+.041556*Z),ca(.0556434*U-.2040259*N+1.0572252*Z))}function Tr(y,M,P){return y>0?new ce(Math.atan2(P,M)*pa,Math.sqrt(M*M+P*P),y):new ce(NaN,NaN,y)}function Yr(y){return y>.206893034?y*y*y:(y-4/29)/7.787037}function Br(y){return y>.008856?Math.pow(y,1/3):7.787037*y+4/29}function ca(y){return Math.round(255*(y<=.00304?12.92*y:1.055*Math.pow(y,1/2.4)-.055))}e.rgb=ua;function ua(y,M,P){return this instanceof ua?(this.r=~~y,this.g=~~M,void(this.b=~~P)):arguments.length<2?y instanceof ua?new ua(y.r,y.g,y.b):ea(""+y,ua,se):new ua(y,M,P)}function qa(y){return new ua(y>>16,y>>8&255,y&255)}function ii(y){return qa(y)+""}var Wr=ua.prototype=new ga;Wr.brighter=function(y){y=Math.pow(.7,arguments.length?y:1);var M=this.r,P=this.g,N=this.b,U=30;return!M&&!P&&!N?new ua(U,U,U):(M&&M>4,N=N>>4|N,U=ae&240,U=U>>4|U,Z=ae&15,Z=Z<<4|Z):y.length===7&&(N=(ae&16711680)>>16,U=(ae&65280)>>8,Z=ae&255)),M(N,U,Z))}function _a(y,M,P){var N=Math.min(y/=255,M/=255,P/=255),U=Math.max(y,M,P),Z=U-N,$,X,ae=(U+N)/2;return Z?(X=ae<.5?Z/(U+N):Z/(2-U-N),y==U?$=(M-P)/Z+(M0&&ae<1?0:$),new le($,X,ae)}function ir(y,M,P){y=Ai(y),M=Ai(M),P=Ai(P);var N=Br((.4124564*y+.3575761*M+.1804375*P)/mt),U=Br((.2126729*y+.7151522*M+.072175*P)/Dt),Z=Br((.0193339*y+.119192*M+.9503041*P)/Rt);return rt(116*U-16,500*(N-U),200*(U-Z))}function Ai(y){return(y/=255)<=.04045?y/12.92:Math.pow((y+.055)/1.055,2.4)}function Ca(y){var M=parseFloat(y);return y.charAt(y.length-1)==="%"?Math.round(M*2.55):M}var si=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});si.forEach(function(y,M){si.set(y,qa(M))});function fa(y){return typeof y=="function"?y:function(){return y}}e.functor=fa,e.xhr=Dn(Me);function Dn(y){return function(M,P,N){return arguments.length===2&&typeof P=="function"&&(N=P,P=null),Co(M,P,y,N)}}function Co(y,M,P,N){var U={},Z=e.dispatch("beforesend","progress","load","error"),$={},X=new XMLHttpRequest,ae=null;self.XDomainRequest&&!("withCredentials"in X)&&/^(http(s)?:)?\/\//.test(y)&&(X=new XDomainRequest),"onload"in X?X.onload=X.onerror=ye:X.onreadystatechange=function(){X.readyState>3&&ye()};function ye(){var _e=X.status,Pe;if(!_e&&Ga(X)||_e>=200&&_e<300||_e===304){try{Pe=P.call(U,X)}catch(De){Z.error.call(U,De);return}Z.load.call(U,Pe)}else Z.error.call(U,X)}return X.onprogress=function(_e){var Pe=e.event;e.event=_e;try{Z.progress.call(U,X)}finally{e.event=Pe}},U.header=function(_e,Pe){return _e=(_e+"").toLowerCase(),arguments.length<2?$[_e]:(Pe==null?delete $[_e]:$[_e]=Pe+"",U)},U.mimeType=function(_e){return arguments.length?(M=_e==null?null:_e+"",U):M},U.responseType=function(_e){return arguments.length?(ae=_e,U):ae},U.response=function(_e){return P=_e,U},["get","post"].forEach(function(_e){U[_e]=function(){return U.send.apply(U,[_e].concat(r(arguments)))}}),U.send=function(_e,Pe,De){if(arguments.length===2&&typeof Pe=="function"&&(De=Pe,Pe=null),X.open(_e,y,!0),M!=null&&!("accept"in $)&&($.accept=M+",*/*"),X.setRequestHeader)for(var Qe in $)X.setRequestHeader(Qe,$[Qe]);return M!=null&&X.overrideMimeType&&X.overrideMimeType(M),ae!=null&&(X.responseType=ae),De!=null&&U.on("error",De).on("load",function(lt){De(null,lt)}),Z.beforesend.call(U,X),X.send(Pe==null?null:Pe),U},U.abort=function(){return X.abort(),U},e.rebind(U,Z,"on"),N==null?U:U.get(_s(N))}function _s(y){return y.length===1?function(M,P){y(M==null?P:null)}:y}function Ga(y){var M=y.responseType;return M&&M!=="text"?y.response:y.responseText}e.dsv=function(y,M){var P=new RegExp('["'+y+` +]`),N=y.charCodeAt(0);function U(ye,_e,Pe){arguments.length<3&&(Pe=_e,_e=null);var De=Co(ye,M,_e==null?Z:$(_e),Pe);return De.row=function(Qe){return arguments.length?De.response((_e=Qe)==null?Z:$(Qe)):_e},De}function Z(ye){return U.parse(ye.responseText)}function $(ye){return function(_e){return U.parse(_e.responseText,ye)}}U.parse=function(ye,_e){var Pe;return U.parseRows(ye,function(De,Qe){if(Pe)return Pe(De,Qe-1);var lt=function(Ie){for(var Ve={},Ke=De.length,ct=0;ct=lt)return De;if(ct)return ct=!1,Pe;var Ht=Ie;if(ye.charCodeAt(Ht)===34){for(var nr=Ht;nr++24?(isFinite(M)&&(clearTimeout(dl),dl=setTimeout(Nc,M)),Bi=0):(Bi=1,Qd(Nc))}e.timer.flush=function(){hv(),vv()};function hv(){for(var y=Date.now(),M=Jn;M;)y>=M.t&&M.c(y-M.t)&&(M.c=null),M=M.n;return y}function vv(){for(var y,M=Jn,P=1/0;M;)M.c?(M.t=0;--X)ze.push(U[ye[Pe[X]][2]]);for(X=+Ke;X1&&Ea(y[P[N-2]],y[P[N-1]],y[U])<=0;)--N;P[N++]=U}return P.slice(0,N)}function Ku(y,M){return y[0]-M[0]||y[1]-M[1]}e.geom.polygon=function(y){return Ye(y,Zf),y};var Zf=e.geom.polygon.prototype=[];Zf.area=function(){for(var y=-1,M=this.length,P,N=this[M-1],U=0;++yHe)X=X.L;else if($=M-an(X,P),$>He){if(!X.R){N=X;break}X=X.R}else{Z>-He?(N=X.P,U=X):$>-He?(N=X,U=X.N):N=U=X;break}var ae=oo(y);if(du.insert(N,ae),!(!N&&!U)){if(N===U){wa(N),U=oo(N.site),du.insert(ae,U),ae.edge=U.edge=Ws(N.site,ae.site),Cr(N),Cr(U);return}if(!U){ae.edge=Ws(N.site,ae.site);return}wa(N),wa(U);var ye=N.site,_e=ye.x,Pe=ye.y,De=y.x-_e,Ke=y.y-Pe,ot=U.site,ze=ot.x-_e,Ue=ot.y-Pe,Je=2*(De*Ue-Ke*ze),ft=De*De+Ke*Ke,nt=ze*ze+Ue*Ue,We={x:(Ue*ft-Ke*nt)/Je+_e,y:(De*nt-ze*ft)/Je+Pe};us(U.edge,ye,ot,We),ae.edge=Ws(ye,y,null,We),U.edge=Ws(y,ot,null,We),Cr(N),Cr(U)}}function pu(y,M){var P=y.site,N=P.x,U=P.y,Z=U-M;if(!Z)return N;var $=y.P;if(!$)return-1/0;P=$.site;var X=P.x,ae=P.y,ye=ae-M;if(!ye)return X;var _e=X-N,Pe=1/Z-1/ye,De=_e/ye;return Pe?(-De+Math.sqrt(De*De-2*Pe*(_e*_e/(-2*ye)-ae+ye/2+U-Z/2)))/Pe+N:(N+X)/2}function an(y,M){var P=y.N;if(P)return pu(P,M);var N=y.site;return N.y===M?N.x:1/0}function yl(y){this.site=y,this.edges=[]}yl.prototype.prepare=function(){for(var y=this.edges,M=y.length,P;M--;)P=y[M].edge,(!P.b||!P.a)&&y.splice(M,1);return y.sort($u),y.length};function xs(y){for(var M=y[0][0],P=y[1][0],N=y[0][1],U=y[1][1],Z,$,X,ae,ye=Go,_e=ye.length,Pe,De,Ke,ot,ze,Ue;_e--;)if(Pe=ye[_e],!(!Pe||!Pe.prepare()))for(Ke=Pe.edges,ot=Ke.length,De=0;DeHe||I(ae-$)>He)&&(Ke.splice(De,0,new _l(mu(Pe.site,Ue,I(X-M)He?{x:M,y:I(Z-M)He?{x:I($-U)He?{x:P,y:I(Z-P)He?{x:I($-N)=-xt)){var De=ae*ae+ye*ye,Ke=_e*_e+Ue*Ue,ot=(Ue*De-ye*Ke)/Pe,ze=(ae*Ke-_e*De)/Pe,Ue=ze+X,Je=pv.pop()||new ef;Je.arc=y,Je.site=U,Je.x=ot+$,Je.y=Ue+Math.sqrt(ot*ot+ze*ze),Je.cy=Ue,y.circle=Je;for(var ft=null,nt=Qu._;nt;)if(Je.y0)){if(ze/=Ke,Ke<0){if(ze0){if(ze>De)return;ze>Pe&&(Pe=ze)}if(ze=P-X,!(!Ke&&ze<0)){if(ze/=Ke,Ke<0){if(ze>De)return;ze>Pe&&(Pe=ze)}else if(Ke>0){if(ze0)){if(ze/=ot,ot<0){if(ze0){if(ze>De)return;ze>Pe&&(Pe=ze)}if(ze=N-ae,!(!ot&&ze<0)){if(ze/=ot,ot<0){if(ze>De)return;ze>Pe&&(Pe=ze)}else if(ot>0){if(ze0&&(U.a={x:X+Pe*Ke,y:ae+Pe*ot}),De<1&&(U.b={x:X+De*Ke,y:ae+De*ot}),U}}}}}}function bs(y){for(var M=ml,P=Ta(y[0][0],y[0][1],y[1][0],y[1][1]),N=M.length,U;N--;)U=M[N],(!gl(U,y)||!P(U)||I(U.a.x-U.b.x)=Z)return;if(_e>De){if(!N)N={x:ot,y:$};else if(N.y>=X)return;P={x:ot,y:X}}else{if(!N)N={x:ot,y:X};else if(N.y<$)return;P={x:ot,y:$}}}else if(Ue=(_e-De)/(Ke-Pe),Je=ze-Ue*ot,Ue<-1||Ue>1)if(_e>De){if(!N)N={x:($-Je)/Ue,y:$};else if(N.y>=X)return;P={x:(X-Je)/Ue,y:X}}else{if(!N)N={x:(X-Je)/Ue,y:X};else if(N.y<$)return;P={x:($-Je)/Ue,y:$}}else if(Pe=Z)return;P={x:Z,y:Ue*Z+Je}}else{if(!N)N={x:Z,y:Ue*Z+Je};else if(N.x=_e&&Je.x<=De&&Je.y>=Pe&&Je.y<=Ke?[[_e,Ke],[De,Ke],[De,Pe],[_e,Pe]]:[];ft.point=ae[ze]}),ye}function X(ae){return ae.map(function(ye,_e){return{x:Math.round(N(ye,_e)/He)*He,y:Math.round(U(ye,_e)/He)*He,i:_e}})}return $.links=function(ae){return yu(X(ae)).edges.filter(function(ye){return ye.l&&ye.r}).map(function(ye){return{source:ae[ye.l.i],target:ae[ye.r.i]}})},$.triangles=function(ae){var ye=[];return yu(X(ae)).cells.forEach(function(_e,Pe){for(var De=_e.site,Ke=_e.edges.sort($u),ot=-1,ze=Ke.length,Ue,Je,ft=Ke[ze-1].edge,nt=ft.l===De?ft.r:ft.l;++otnt&&(nt=_e.x),_e.y>We&&(We=_e.y),Ke.push(_e.x),ot.push(_e.y);else for(ze=0;zent&&(nt=Zt),or>We&&(We=or),Ke.push(Zt),ot.push(or)}var fr=nt-Je,lr=We-ft;fr>lr?We=ft+fr:nt=Je+lr;function Pr(Ur,Kr,Ba,ri,$a,Kt,Jr,oa){if(!(isNaN(Ba)||isNaN(ri)))if(Ur.leaf){var sa=Ur.x,Ei=Ur.y;if(sa!=null)if(I(sa-Ba)+I(Ei-ri)<.01)Ir(Ur,Kr,Ba,ri,$a,Kt,Jr,oa);else{var Oi=Ur.point;Ur.x=Ur.y=Ur.point=null,Ir(Ur,Oi,sa,Ei,$a,Kt,Jr,oa),Ir(Ur,Kr,Ba,ri,$a,Kt,Jr,oa)}else Ur.x=Ba,Ur.y=ri,Ur.point=Kr}else Ir(Ur,Kr,Ba,ri,$a,Kt,Jr,oa)}function Ir(Ur,Kr,Ba,ri,$a,Kt,Jr,oa){var sa=($a+Jr)*.5,Ei=(Kt+oa)*.5,Oi=Ba>=sa,$i=ri>=Ei,bi=$i<<1|Oi;Ur.leaf=!1,Ur=Ur.nodes[bi]||(Ur.nodes[bi]=gn()),Oi?$a=sa:Jr=sa,$i?Kt=Ei:oa=Ei,Pr(Ur,Kr,Ba,ri,$a,Kt,Jr,oa)}var ea=gn();if(ea.add=function(Ur){Pr(ea,Ur,+Pe(Ur,++ze),+De(Ur,ze),Je,ft,nt,We)},ea.visit=function(Ur){Dn(Ur,ea,Je,ft,nt,We)},ea.find=function(Ur){return rp(ea,Ur[0],Ur[1],Je,ft,nt,We)},ze=-1,M==null){for(;++zeZ||De>$||Ke=Zt,lr=P>=or,Pr=lr<<1|fr,Ir=Pr+4;PrP&&(Z=M.slice(P,Z),X[$]?X[$]+=Z:X[++$]=Z),(N=N[0])===(U=U[0])?X[$]?X[$]+=U:X[++$]=U:(X[++$]=null,ae.push({i:$,x:Eo(N,U)})),P=Xf.lastIndex;return P=0&&!(N=e.interpolators[P](y,M)););return N}e.interpolators=[function(y,M){var P=typeof M;return(P==="string"?si.has(M.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(M)?tf:Zo:M instanceof ya?tf:Array.isArray(M)?Yo:P==="object"&&isNaN(M)?nn:Eo)(y,M)}],e.interpolateArray=Yo;function Yo(y,M){var P=[],N=[],U=y.length,Z=M.length,$=Math.min(y.length,M.length),X;for(X=0;X<$;++X)P.push(on(y[X],M[X]));for(;X=0?y.slice(0,M):y,N=M>=0?y.slice(M+1):"in";return P=Sm.get(P)||Xs,N=Wo.get(N)||Me,km(N(P.apply(null,t.call(arguments,1))))};function km(y){return function(M){return M<=0?0:M>=1?1:y(M)}}function js(y){return function(M){return 1-y(1-M)}}function Pn(y){return function(M){return .5*(M<.5?y(2*M):2-y(2-2*M))}}function Cm(y){return y*y}function xl(y){return y*y*y}function bl(y){if(y<=0)return 0;if(y>=1)return 1;var M=y*y,P=M*y;return 4*(y<.5?P:3*(y-M)+P-.75)}function gv(y){return function(M){return Math.pow(M,y)}}function Em(y){return 1-Math.cos(y*Ar)}function Lm(y){return Math.pow(2,10*(y-1))}function Oc(y){return 1-Math.sqrt(1-y*y)}function Dm(y,M){var P;return arguments.length<2&&(M=.45),arguments.length?P=M/yr*Math.asin(1/y):(y=1,P=M/4),function(N){return 1+y*Math.pow(2,-10*N)*Math.sin((N-P)*yr/M)}}function Pm(y){return y||(y=1.70158),function(M){return M*M*((y+1)*M-y)}}function zm(y){return y<1/2.75?7.5625*y*y:y<2/2.75?7.5625*(y-=1.5/2.75)*y+.75:y<2.5/2.75?7.5625*(y-=2.25/2.75)*y+.9375:7.5625*(y-=2.625/2.75)*y+.984375}e.interpolateHcl=_v;function _v(y,M){y=e.hcl(y),M=e.hcl(M);var P=y.h,N=y.c,U=y.l,Z=M.h-P,$=M.c-N,X=M.l-U;return isNaN($)&&($=0,N=isNaN(N)?M.c:N),isNaN(Z)?(Z=0,P=isNaN(P)?M.h:P):Z>180?Z-=360:Z<-180&&(Z+=360),function(ae){return Be(P+Z*ae,N+$*ae,U+X*ae)+""}}e.interpolateHsl=Im;function Im(y,M){y=e.hsl(y),M=e.hsl(M);var P=y.h,N=y.s,U=y.l,Z=M.h-P,$=M.s-N,X=M.l-U;return isNaN($)&&($=0,N=isNaN(N)?M.s:N),isNaN(Z)?(Z=0,P=isNaN(P)?M.h:P):Z>180?Z-=360:Z<-180&&(Z+=360),function(ae){return se(P+Z*ae,N+$*ae,U+X*ae)+""}}e.interpolateLab=Rm;function Rm(y,M){y=e.lab(y),M=e.lab(M);var P=y.l,N=y.a,U=y.b,Z=M.l-P,$=M.a-N,X=M.b-U;return function(ae){return jt(P+Z*ae,N+$*ae,U+X*ae)+""}}e.interpolateRound=xv;function xv(y,M){return M-=y,function(P){return Math.round(y+M*P)}}e.transform=function(y){var M=i.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(P){if(P!=null){M.setAttribute("transform",P);var N=M.transform.baseVal.consolidate()}return new ap(N?N.matrix:wv)})(y)};function ap(y){var M=[y.a,y.b],P=[y.c,y.d],N=bv(M),U=ip(M,P),Z=bv(Fm(P,M,-U))||0;M[0]*P[1]180?M+=360:M-y>180&&(y+=360),N.push({i:P.push(gu(P)+"rotate(",null,")")-2,x:Eo(y,M)})):M&&P.push(gu(P)+"rotate("+M+")")}function op(y,M,P,N){y!==M?N.push({i:P.push(gu(P)+"skewX(",null,")")-2,x:Eo(y,M)}):M&&P.push(gu(P)+"skewX("+M+")")}function sp(y,M,P,N){if(y[0]!==M[0]||y[1]!==M[1]){var U=P.push(gu(P)+"scale(",null,",",null,")");N.push({i:U-4,x:Eo(y[0],M[0])},{i:U-2,x:Eo(y[1],M[1])})}else(M[0]!==1||M[1]!==1)&&P.push(gu(P)+"scale("+M+")")}function lp(y,M){var P=[],N=[];return y=e.transform(y),M=e.transform(M),np(y.translate,M.translate,P,N),qm(y.rotate,M.rotate,P,N),op(y.skew,M.skew,P,N),sp(y.scale,M.scale,P,N),y=M=null,function(U){for(var Z=-1,$=N.length,X;++Z<$;)P[(X=N[Z]).i]=X.x(U);return P.join("")}}function Nm(y,M){return M=(M-=y=+y)||1/M,function(P){return(P-y)/M}}function cs(y,M){return M=(M-=y=+y)||1/M,function(P){return Math.max(0,Math.min(1,(P-y)/M))}}e.layout={},e.layout.bundle=function(){return function(y){for(var M=[],P=-1,N=y.length;++P0?Z=We:(P.c=null,P.t=NaN,P=null,M.end({type:"end",alpha:Z=0})):We>0&&(M.start({type:"start",alpha:Z=We}),P=qc(y.tick)),y):Z},y.start=function(){var We,Zt=Ke.length,or=ot.length,fr=N[0],lr=N[1],Pr,Ir;for(We=0;We=0;)Z.push(_e=ye[ae]),_e.parent=X,_e.depth=X.depth+1;P&&(X.value=0),X.children=ye}else P&&(X.value=+P.call(N,X,X.depth)||0),delete X.children;return hs(U,function(Pe){var De,Ke;y&&(De=Pe.children)&&De.sort(y),P&&(Ke=Pe.parent)&&(Ke.value+=Pe.value)}),$}return N.sort=function(U){return arguments.length?(y=U,N):y},N.children=function(U){return arguments.length?(M=U,N):M},N.value=function(U){return arguments.length?(P=U,N):P},N.revalue=function(U){return P&&(rf(U,function(Z){Z.children&&(Z.value=0)}),hs(U,function(Z){var $;Z.children||(Z.value=+P.call(N,Z,Z.depth)||0),($=Z.parent)&&($.value+=Z.value)})),U},N};function Ml(y,M){return e.rebind(y,M,"sort","children","value"),y.nodes=y,y.links=cp,y}function rf(y,M){for(var P=[y];(y=P.pop())!=null;)if(M(y),(U=y.children)&&(N=U.length))for(var N,U;--N>=0;)P.push(U[N])}function hs(y,M){for(var P=[y],N=[];(y=P.pop())!=null;)if(N.push(y),($=y.children)&&(Z=$.length))for(var U=-1,Z,$;++UU&&(U=X),N.push(X)}for($=0;$N&&(P=M,N=U);return P}function Ri(y){return y.reduce(Hm,0)}function Hm(y,M){return y+M[1]}e.layout.histogram=function(){var y=!0,M=Number,P=dp,N=Zc;function U(Z,De){for(var X=[],ae=Z.map(M,this),ye=P.call(this,ae,De),_e=N.call(this,ye,ae,De),Pe,De=-1,Ke=ae.length,ot=_e.length-1,ze=y?1:1/Ke,Ue;++De0)for(De=-1;++De=ye[0]&&Ue<=ye[1]&&(Pe=X[e.bisect(_e,Ue,1,ot)-1],Pe.y+=ze,Pe.push(Z[De]));return X}return U.value=function(Z){return arguments.length?(M=Z,U):M},U.range=function(Z){return arguments.length?(P=fa(Z),U):P},U.bins=function(Z){return arguments.length?(N=typeof Z=="number"?function($){return kv($,Z)}:fa(Z),U):N},U.frequency=function(Z){return arguments.length?(y=!!Z,U):y},U};function Zc(y,M){return kv(y,Math.ceil(Math.log(M.length)/Math.LN2+1))}function kv(y,M){for(var P=-1,N=+y[0],U=(y[1]-N)/M,Z=[];++P<=M;)Z[P]=U*P+N;return Z}function dp(y){return[e.min(y),e.max(y)]}e.layout.pack=function(){var y=e.layout.hierarchy().sort(nf),M=0,P=[1,1],N;function U(Z,$){var X=y.call(this,Z,$),ae=X[0],ye=P[0],_e=P[1],Pe=N==null?Math.sqrt:typeof N=="function"?N:function(){return N};if(ae.x=ae.y=0,hs(ae,function(Ke){Ke.r=+Pe(Ke.value)}),hs(ae,Jf),M){var De=M*(N?1:Math.max(2*ae.r/ye,2*ae.r/_e))/2;hs(ae,function(Ke){Ke.r+=De}),hs(ae,Jf),hs(ae,function(Ke){Ke.r-=De})}return kl(ae,ye/2,_e/2,N?1:1/Math.max(2*ae.r/ye,2*ae.r/_e)),X}return U.size=function(Z){return arguments.length?(P=Z,U):P},U.radius=function(Z){return arguments.length?(N=Z==null||typeof Z=="function"?Z:+Z,U):N},U.padding=function(Z){return arguments.length?(M=+Z,U):M},Ml(U,y)};function nf(y,M){return y.value-M.value}function _u(y,M){var P=y._pack_next;y._pack_next=M,M._pack_prev=y,M._pack_next=P,P._pack_prev=M}function Cv(y,M){y._pack_next=M,M._pack_prev=y}function _n(y,M){var P=M.x-y.x,N=M.y-y.y,U=y.r+M.r;return .999*U*U>P*P+N*N}function Jf(y){if(!(M=y.children)||!(De=M.length))return;var M,P=1/0,N=-1/0,U=1/0,Z=-1/0,$,X,ae,ye,_e,Pe,De;function Ke(We){P=Math.min(We.x-We.r,P),N=Math.max(We.x+We.r,N),U=Math.min(We.y-We.r,U),Z=Math.max(We.y+We.r,Z)}if(M.forEach(Js),$=M[0],$.x=-$.r,$.y=0,Ke($),De>1&&(X=M[1],X.x=X.r,X.y=0,Ke(X),De>2))for(ae=M[2],Cl($,X,ae),Ke(ae),_u($,ae),$._pack_prev=ae,_u(ae,X),X=$._pack_next,ye=3;yeUe.x&&(Ue=Zt),Zt.depth>Je.depth&&(Je=Zt)});var ft=M(ze,Ue)/2-ze.x,nt=P[0]/(Ue.x+M(Ue,ze)/2+ft),We=P[1]/(Je.depth||1);rf(Ke,function(Zt){Zt.x=(Zt.x+ft)*nt,Zt.y=Zt.depth*We})}return De}function Z(_e){for(var Pe={A:null,children:[_e]},De=[Pe],Ke;(Ke=De.pop())!=null;)for(var ot=Ke.children,ze,Ue=0,Je=ot.length;Ue0&&(El(Gm(ze,_e,De),_e,Zt),Je+=Zt,ft+=Zt),nt+=ze.m,Je+=Ke.m,We+=Ue.m,ft+=ot.m;ze&&!Ms(ot)&&(ot.t=ze,ot.m+=nt-ft),Ke&&!As(Ue)&&(Ue.t=Ke,Ue.m+=Je-We,De=_e)}return De}function ye(_e){_e.x*=P[0],_e.y=_e.depth*P[1]}return U.separation=function(_e){return arguments.length?(M=_e,U):M},U.size=function(_e){return arguments.length?(N=(P=_e)==null?ye:null,U):N?null:P},U.nodeSize=function(_e){return arguments.length?(N=(P=_e)==null?null:ye,U):N?P:null},Ml(U,y)};function Ks(y,M){return y.parent==M.parent?1:2}function As(y){var M=y.children;return M.length?M[0]:y.t}function Ms(y){var M=y.children,P;return(P=M.length)?M[P-1]:y.t}function El(y,M,P){var N=P/(M.i-y.i);M.c-=N,M.s+=P,y.c+=N,M.z+=P,M.m+=P}function pp(y){for(var M=0,P=0,N=y.children,U=N.length,Z;--U>=0;)Z=N[U],Z.z+=M,Z.m+=M,M+=Z.s+(P+=Z.c)}function Gm(y,M,P){return y.a.parent===M.parent?y.a:P}e.layout.cluster=function(){var y=e.layout.hierarchy().sort(null).value(null),M=Ks,P=[1,1],N=!1;function U(Z,$){var X=y.call(this,Z,$),ae=X[0],ye,_e=0;hs(ae,function(ze){var Ue=ze.children;Ue&&Ue.length?(ze.x=Ym(Ue),ze.y=Zm(Ue)):(ze.x=ye?_e+=M(ze,ye):0,ze.y=0,ye=ze)});var Pe=mp(ae),De=yp(ae),Ke=Pe.x-M(Pe,De)/2,ot=De.x+M(De,Pe)/2;return hs(ae,N?function(ze){ze.x=(ze.x-ae.x)*P[0],ze.y=(ae.y-ze.y)*P[1]}:function(ze){ze.x=(ze.x-Ke)/(ot-Ke)*P[0],ze.y=(1-(ae.y?ze.y/ae.y:1))*P[1]}),X}return U.separation=function(Z){return arguments.length?(M=Z,U):M},U.size=function(Z){return arguments.length?(N=(P=Z)==null,U):N?null:P},U.nodeSize=function(Z){return arguments.length?(N=(P=Z)!=null,U):N?P:null},Ml(U,y)};function Zm(y){return 1+e.max(y,function(M){return M.y})}function Ym(y){return y.reduce(function(M,P){return M+P.x},0)/y.length}function mp(y){var M=y.children;return M&&M.length?mp(M[0]):y}function yp(y){var M=y.children,P;return M&&(P=M.length)?yp(M[P-1]):y}e.layout.treemap=function(){var y=e.layout.hierarchy(),M=Math.round,P=[1,1],N=null,U=Ev,Z=!1,$,X="squarify",ae=.5*(1+Math.sqrt(5));function ye(ze,Ue){for(var Je=-1,ft=ze.length,nt,We;++Je0;)ft.push(We=nt[lr-1]),ft.area+=We.area,X!=="squarify"||(or=De(ft,fr))<=Zt?(nt.pop(),Zt=or):(ft.area-=ft.pop().area,Ke(ft,fr,Je,!1),fr=Math.min(Je.dx,Je.dy),ft.length=ft.area=0,Zt=1/0);ft.length&&(Ke(ft,fr,Je,!0),ft.length=ft.area=0),Ue.forEach(_e)}}function Pe(ze){var Ue=ze.children;if(Ue&&Ue.length){var Je=U(ze),ft=Ue.slice(),nt,We=[];for(ye(ft,Je.dx*Je.dy/ze.value),We.area=0;nt=ft.pop();)We.push(nt),We.area+=nt.area,nt.z!=null&&(Ke(We,nt.z?Je.dx:Je.dy,Je,!ft.length),We.length=We.area=0);Ue.forEach(Pe)}}function De(ze,Ue){for(var Je=ze.area,ft,nt=0,We=1/0,Zt=-1,or=ze.length;++Ztnt&&(nt=ft));return Je*=Je,Ue*=Ue,Je?Math.max(Ue*nt*ae/Je,Je/(Ue*We*ae)):1/0}function Ke(ze,Ue,Je,ft){var nt=-1,We=ze.length,Zt=Je.x,or=Je.y,fr=Ue?M(ze.area/Ue):0,lr;if(Ue==Je.dx){for((ft||fr>Je.dy)&&(fr=Je.dy);++ntJe.dx)&&(fr=Je.dx);++nt1);return y+M*N*Math.sqrt(-2*Math.log(Z)/Z)}},logNormal:function(){var y=e.random.normal.apply(e,arguments);return function(){return Math.exp(y())}},bates:function(y){var M=e.random.irwinHall(y);return function(){return M()/y}},irwinHall:function(y){return function(){for(var M=0,P=0;P2?Wm:gp,ye=N?cs:Nm;return U=ae(y,M,ye,P),Z=ae(M,y,ye,on),X}function X(ae){return U(ae)}return X.invert=function(ae){return Z(ae)},X.domain=function(ae){return arguments.length?(y=ae.map(Number),$()):y},X.range=function(ae){return arguments.length?(M=ae,$()):M},X.rangeRound=function(ae){return X.range(ae).interpolate(xv)},X.clamp=function(ae){return arguments.length?(N=ae,$()):N},X.interpolate=function(ae){return arguments.length?(P=ae,$()):P},X.ticks=function(ae){return zv(y,ae)},X.tickFormat=function(ae,ye){return d3_scale_linearTickFormat(y,ae,ye)},X.nice=function(ae){return wp(y,ae),$()},X.copy=function(){return xp(y,M,P,N)},$()}function bp(y,M){return e.rebind(y,M,"range","rangeRound","interpolate","clamp")}function wp(y,M){return Dv(y,_p(Pv(y,M)[2])),Dv(y,_p(Pv(y,M)[2])),y}function Pv(y,M){M==null&&(M=10);var P=Kf(y),N=P[1]-P[0],U=Math.pow(10,Math.floor(Math.log(N/M)/Math.LN10)),Z=M/N*U;return Z<=.15?U*=10:Z<=.35?U*=5:Z<=.75&&(U*=2),P[0]=Math.ceil(P[0]/U)*U,P[1]=Math.floor(P[1]/U)*U+U*.5,P[2]=U,P}function zv(y,M){return e.range.apply(e,Pv(y,M))}var xu={s:1,g:1,p:1,r:1,e:1};function Ll(y){return-Math.floor(Math.log(y)/Math.LN10+.01)}function Qf(y,M){var P=Ll(M[2]);return y in xu?Math.abs(P-Ll(Math.max(I(M[0]),I(M[1]))))+ +(y!=="e"):P-(y==="%")*2}e.scale.log=function(){return Iv(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Iv(y,M,P,N){function U(X){return(P?Math.log(X<0?0:X):-Math.log(X>0?0:-X))/Math.log(M)}function Z(X){return P?Math.pow(M,X):-Math.pow(M,-X)}function $(X){return y(U(X))}return $.invert=function(X){return Z(y.invert(X))},$.domain=function(X){return arguments.length?(P=X[0]>=0,y.domain((N=X.map(Number)).map(U)),$):N},$.base=function(X){return arguments.length?(M=+X,y.domain(N.map(U)),$):M},$.nice=function(){var X=Dv(N.map(U),P?Math:Wc);return y.domain(X),N=X.map(Z),$},$.ticks=function(){var X=Kf(N),ae=[],ye=X[0],_e=X[1],Pe=Math.floor(U(ye)),De=Math.ceil(U(_e)),Ke=M%1?2:M;if(isFinite(De-Pe)){if(P){for(;Pe0;ot--)ae.push(Z(Pe)*ot);for(Pe=0;ae[Pe]_e;De--);ae=ae.slice(Pe,De)}return ae},$.copy=function(){return Iv(y.copy(),M,P,N)},bp($,y)}var Wc={floor:function(y){return-Math.ceil(-y)},ceil:function(y){return-Math.floor(-y)}};e.scale.pow=function(){return Xc(e.scale.linear(),1,[0,1])};function Xc(y,M,P){var N=jc(M),U=jc(1/M);function Z($){return y(N($))}return Z.invert=function($){return U(y.invert($))},Z.domain=function($){return arguments.length?(y.domain((P=$.map(Number)).map(N)),Z):P},Z.ticks=function($){return zv(P,$)},Z.tickFormat=function($,X){return d3_scale_linearTickFormat(P,$,X)},Z.nice=function($){return Z.domain(wp(P,$))},Z.exponent=function($){return arguments.length?(N=jc(M=$),U=jc(1/M),y.domain(P.map(N)),Z):M},Z.copy=function(){return Xc(y.copy(),M,P)},bp(Z,y)}function jc(y){return function(M){return M<0?-Math.pow(-M,y):Math.pow(M,y)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Dl([],{t:"range",a:[[]]})};function Dl(y,M){var P,N,U;function Z(X){return N[((P.get(X)||(M.t==="range"?P.set(X,y.push(X)):NaN))-1)%N.length]}function $(X,ae){return e.range(y.length).map(function(ye){return X+ae*ye})}return Z.domain=function(X){if(!arguments.length)return y;y=[],P=new z;for(var ae=-1,ye=X.length,_e;++ae0?P[Z-1]:y[0],ZDe?0:1;if(_e=Er)return ae(_e,ot)+(ye?ae(ye,1-ot):"")+"Z";var ze,Ue,Je,ft,nt=0,We=0,Zt,or,fr,lr,Pr,Ir,ea,Ur,Kr=[];if((ft=(+$.apply(this,arguments)||0)/2)&&(Je=N===Pl?Math.sqrt(ye*ye+_e*_e):+N.apply(this,arguments),ot||(We*=-1),_e&&(We=Ki(Je/_e*Math.sin(ft))),ye&&(nt=Ki(Je/ye*Math.sin(ft)))),_e){Zt=_e*Math.cos(Pe+We),or=_e*Math.sin(Pe+We),fr=_e*Math.cos(De-We),lr=_e*Math.sin(De-We);var Ba=Math.abs(De-Pe-2*We)<=vt?0:1;if(We&&zl(Zt,or,fr,lr)===ot^Ba){var ri=(Pe+De)/2;Zt=_e*Math.cos(ri),or=_e*Math.sin(ri),fr=lr=null}}else Zt=or=0;if(ye){Pr=ye*Math.cos(De-nt),Ir=ye*Math.sin(De-nt),ea=ye*Math.cos(Pe+nt),Ur=ye*Math.sin(Pe+nt);var $a=Math.abs(Pe-De+2*nt)<=vt?0:1;if(nt&&zl(Pr,Ir,ea,Ur)===1-ot^$a){var Kt=(Pe+De)/2;Pr=ye*Math.cos(Kt),Ir=ye*Math.sin(Kt),ea=Ur=null}}else Pr=Ir=0;if(Ke>He&&(ze=Math.min(Math.abs(_e-ye)/2,+P.apply(this,arguments)))>.001){Ue=ye<_e^ot?0:1;var Jr=ze,oa=ze;if(Ke0?0:1}function wu(y,M,P,N,U){var Z=y[0]-M[0],$=y[1]-M[1],X=(U?N:-N)/Math.sqrt(Z*Z+$*$),ae=X*$,ye=-X*Z,_e=y[0]+ae,Pe=y[1]+ye,De=M[0]+ae,Ke=M[1]+ye,ot=(_e+De)/2,ze=(Pe+Ke)/2,Ue=De-_e,Je=Ke-Pe,ft=Ue*Ue+Je*Je,nt=P-N,We=_e*Ke-De*Pe,Zt=(Je<0?-1:1)*Math.sqrt(Math.max(0,nt*nt*ft-We*We)),or=(We*Je-Ue*Zt)/ft,fr=(-We*Ue-Je*Zt)/ft,lr=(We*Je+Ue*Zt)/ft,Pr=(-We*Ue+Je*Zt)/ft,Ir=or-ot,ea=fr-ze,Ur=lr-ot,Kr=Pr-ze;return Ir*Ir+ea*ea>Ur*Ur+Kr*Kr&&(or=lr,fr=Pr),[[or-ae,fr-ye],[or*P/nt,fr*P/nt]]}function ec(){return!0}function Ss(y){var M=vu,P=pl,N=ec,U=Xo,Z=U.key,$=.7;function X(ae){var ye=[],_e=[],Pe=-1,De=ae.length,Ke,ot=fa(M),ze=fa(P);function Ue(){ye.push("M",U(y(_e),$))}for(;++Pe1?y.join("L"):y+"Z"}function lf(y){return y.join("L")+"Z"}function jm(y){for(var M=0,P=y.length,N=y[0],U=[N[0],",",N[1]];++M1&&U.push("H",N[0]),U.join("")}function uf(y){for(var M=0,P=y.length,N=y[0],U=[N[0],",",N[1]];++M1){X=M[1],Z=y[ae],ae++,N+="C"+(U[0]+$[0])+","+(U[1]+$[1])+","+(Z[0]-X[0])+","+(Z[1]-X[1])+","+Z[0]+","+Z[1];for(var ye=2;ye9&&(Z=P*3/Math.sqrt(Z),$[X]=Z*N,$[X+1]=Z*U));for(X=-1;++X<=ae;)Z=(y[Math.min(ae,X+1)][0]-y[Math.max(0,X-1)][0])/(6*(1+$[X]*$[X])),M.push([Z||0,$[X]*Z||0]);return M}function Lp(y){return y.length<3?Xo(y):y[0]+ff(y,$m(y))}e.svg.line.radial=function(){var y=Ss(Bv);return y.radius=y.x,delete y.x,y.angle=y.y,delete y.y,y};function Bv(y){for(var M,P=-1,N=y.length,U,Z;++Pvt)+",1 "+Pe}function ye(_e,Pe,De,Ke){return"Q 0,0 "+Ke}return Z.radius=function(_e){return arguments.length?(P=fa(_e),Z):P},Z.source=function(_e){return arguments.length?(y=fa(_e),Z):y},Z.target=function(_e){return arguments.length?(M=fa(_e),Z):M},Z.startAngle=function(_e){return arguments.length?(N=fa(_e),Z):N},Z.endAngle=function(_e){return arguments.length?(U=fa(_e),Z):U},Z};function Dp(y){return y.radius}e.svg.diagonal=function(){var y=eh,M=Ov,P=Uv;function N(U,Z){var $=y.call(this,U,Z),X=M.call(this,U,Z),ae=($.y+X.y)/2,ye=[$,{x:$.x,y:ae},{x:X.x,y:ae},X];return ye=ye.map(P),"M"+ye[0]+"C"+ye[1]+" "+ye[2]+" "+ye[3]}return N.source=function(U){return arguments.length?(y=fa(U),N):y},N.target=function(U){return arguments.length?(M=fa(U),N):M},N.projection=function(U){return arguments.length?(P=U,N):P},N};function Uv(y){return[y.x,y.y]}e.svg.diagonal.radial=function(){var y=e.svg.diagonal(),M=Uv,P=y.projection;return y.projection=function(N){return arguments.length?P(Pp(M=N)):M},y};function Pp(y){return function(){var M=y.apply(this,arguments),P=M[0],N=M[1]-Ar;return[P*Math.cos(N),P*Math.sin(N)]}}e.svg.symbol=function(){var y=df,M=zp;function P(N,U){return(rh.get(y.call(this,N,U))||th)(M.call(this,N,U))}return P.type=function(N){return arguments.length?(y=fa(N),P):y},P.size=function(N){return arguments.length?(M=fa(N),P):M},P};function zp(){return 64}function df(){return"circle"}function th(y){var M=Math.sqrt(y/vt);return"M0,"+M+"A"+M+","+M+" 0 1,1 0,"+-M+"A"+M+","+M+" 0 1,1 0,"+M+"Z"}var rh=e.map({circle:th,cross:function(y){var M=Math.sqrt(y/5)/2;return"M"+-3*M+","+-M+"H"+-M+"V"+-3*M+"H"+M+"V"+-M+"H"+3*M+"V"+M+"H"+M+"V"+3*M+"H"+-M+"V"+M+"H"+-3*M+"Z"},diamond:function(y){var M=Math.sqrt(y/(2*Vv)),P=M*Vv;return"M0,"+-M+"L"+P+",0 0,"+M+" "+-P+",0Z"},square:function(y){var M=Math.sqrt(y)/2;return"M"+-M+","+-M+"L"+M+","+-M+" "+M+","+M+" "+-M+","+M+"Z"},"triangle-down":function(y){var M=Math.sqrt(y/Au),P=M*Au/2;return"M0,"+P+"L"+M+","+-P+" "+-M+","+-P+"Z"},"triangle-up":function(y){var M=Math.sqrt(y/Au),P=M*Au/2;return"M0,"+-P+"L"+M+","+P+" "+-M+","+P+"Z"}});e.svg.symbolTypes=rh.keys();var Au=Math.sqrt(3),Vv=Math.tan(30*Hr);ct.transition=function(y){for(var M=so||++Ci,P=fi(y),N=[],U,Z,$=Cs||{time:Date.now(),ease:bl,delay:0,duration:250},X=-1,ae=this.length;++X0;)Pe[--ft].call(y,Je);if(Ue>=1)return $.event&&$.event.end.call(y,y.__data__,M),--Z.count?delete Z[N]:delete y[P],1}$||(X=U.time,ae=qc(De,0,X),$=Z[N]={tween:new z,time:X,timer:ae,delay:U.delay,duration:U.duration,ease:U.ease,index:M},U=null,++Z.count)}e.svg.axis=function(){var y=e.scale.linear(),M=Rl,P=6,N=6,U=3,Z=[10],$=null,X;function ae(ye){ye.each(function(){var _e=e.select(this),Pe=this.__chart__||y,De=this.__chart__=y.copy(),Ke=$==null?De.ticks?De.ticks.apply(De,Z):De.domain():$,ot=X==null?De.tickFormat?De.tickFormat.apply(De,Z):Me:X,ze=_e.selectAll(".tick").data(Ke,De),Ue=ze.enter().insert("g",".domain").attr("class","tick").style("opacity",He),Je=e.transition(ze.exit()).style("opacity",He).remove(),ft=e.transition(ze.order()).style("opacity",1),nt=Math.max(P,0)+U,We,Zt=Yc(De),or=_e.selectAll(".domain").data([0]),fr=(or.enter().append("path").attr("class","domain"),e.transition(or));Ue.append("line"),Ue.append("text");var lr=Ue.select("line"),Pr=ft.select("line"),Ir=ze.select("text").text(ot),ea=Ue.select("text"),Ur=ft.select("text"),Kr=M==="top"||M==="left"?-1:1,Ba,ri,$a,Kt;if(M==="bottom"||M==="top"?(We=mf,Ba="x",$a="y",ri="x2",Kt="y2",Ir.attr("dy",Kr<0?"0em":".71em").style("text-anchor","middle"),fr.attr("d","M"+Zt[0]+","+Kr*N+"V0H"+Zt[1]+"V"+Kr*N)):(We=Fl,Ba="y",$a="x",ri="y2",Kt="x2",Ir.attr("dy",".32em").style("text-anchor",Kr<0?"end":"start"),fr.attr("d","M"+Kr*N+","+Zt[0]+"H0V"+Zt[1]+"H"+Kr*N)),lr.attr(Kt,Kr*P),ea.attr($a,Kr*nt),Pr.attr(ri,0).attr(Kt,Kr*P),Ur.attr(Ba,0).attr($a,Kr*nt),De.rangeBand){var Jr=De,oa=Jr.rangeBand()/2;Pe=De=function(sa){return Jr(sa)+oa}}else Pe.rangeBand?Pe=De:Je.call(We,De,Pe);Ue.call(We,Pe,De),ft.call(We,De,De)})}return ae.scale=function(ye){return arguments.length?(y=ye,ae):y},ae.orient=function(ye){return arguments.length?(M=ye in rc?ye+"":Rl,ae):M},ae.ticks=function(){return arguments.length?(Z=r(arguments),ae):Z},ae.tickValues=function(ye){return arguments.length?($=ye,ae):$},ae.tickFormat=function(ye){return arguments.length?(X=ye,ae):X},ae.tickSize=function(ye){var _e=arguments.length;return _e?(P=+ye,N=+arguments[_e-1],ae):P},ae.innerTickSize=function(ye){return arguments.length?(P=+ye,ae):P},ae.outerTickSize=function(ye){return arguments.length?(N=+ye,ae):N},ae.tickPadding=function(ye){return arguments.length?(U=+ye,ae):U},ae.tickSubdivide=function(){return arguments.length&&ae},ae};var Rl="bottom",rc={top:1,right:1,bottom:1,left:1};function mf(y,M,P){y.attr("transform",function(N){var U=M(N);return"translate("+(isFinite(U)?U:P(N))+",0)"})}function Fl(y,M,P){y.attr("transform",function(N){var U=M(N);return"translate(0,"+(isFinite(U)?U:P(N))+")"})}e.svg.brush=function(){var y=at(_e,"brushstart","brush","brushend"),M=null,P=null,N=[0,0],U=[0,0],Z,$,X=!0,ae=!0,ye=nh[0];function _e(ze){ze.each(function(){var Ue=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",ot).on("touchstart.brush",ot),Je=Ue.selectAll(".background").data([0]);Je.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Ue.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var ft=Ue.selectAll(".resize").data(ye,Me);ft.exit().remove(),ft.enter().append("g").attr("class",function(or){return"resize "+or}).style("cursor",function(or){return Es[or]}).append("rect").attr("x",function(or){return/[ew]$/.test(or)?-3:null}).attr("y",function(or){return/^[ns]/.test(or)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),ft.style("display",_e.empty()?"none":null);var nt=e.transition(Ue),We=e.transition(Je),Zt;M&&(Zt=Yc(M),We.attr("x",Zt[0]).attr("width",Zt[1]-Zt[0]),De(nt)),P&&(Zt=Yc(P),We.attr("y",Zt[0]).attr("height",Zt[1]-Zt[0]),Ke(nt)),Pe(nt)})}_e.event=function(ze){ze.each(function(){var Ue=y.of(this,arguments),Je={x:N,y:U,i:Z,j:$},ft=this.__chart__||Je;this.__chart__=Je,so?e.select(this).transition().each("start.brush",function(){Z=ft.i,$=ft.j,N=ft.x,U=ft.y,Ue({type:"brushstart"})}).tween("brush:brush",function(){var nt=Yo(N,Je.x),We=Yo(U,Je.y);return Z=$=null,function(Zt){N=Je.x=nt(Zt),U=Je.y=We(Zt),Ue({type:"brush",mode:"resize"})}}).each("end.brush",function(){Z=Je.i,$=Je.j,Ue({type:"brush",mode:"resize"}),Ue({type:"brushend"})}):(Ue({type:"brushstart"}),Ue({type:"brush",mode:"resize"}),Ue({type:"brushend"}))})};function Pe(ze){ze.selectAll(".resize").attr("transform",function(Ue){return"translate("+N[+/e$/.test(Ue)]+","+U[+/^s/.test(Ue)]+")"})}function De(ze){ze.select(".extent").attr("x",N[0]),ze.selectAll(".extent,.n>rect,.s>rect").attr("width",N[1]-N[0])}function Ke(ze){ze.select(".extent").attr("y",U[0]),ze.selectAll(".extent,.e>rect,.w>rect").attr("height",U[1]-U[0])}function ot(){var ze=this,Ue=e.select(e.event.target),Je=y.of(ze,arguments),ft=e.select(ze),nt=Ue.datum(),We=!/^(n|s)$/.test(nt)&&M,Zt=!/^(e|w)$/.test(nt)&&P,or=Ue.classed("extent"),fr=Mr(ze),lr,Pr=e.mouse(ze),Ir,ea=e.select(s(ze)).on("keydown.brush",Ba).on("keyup.brush",ri);if(e.event.changedTouches?ea.on("touchmove.brush",$a).on("touchend.brush",Jr):ea.on("mousemove.brush",$a).on("mouseup.brush",Jr),ft.interrupt().selectAll("*").interrupt(),or)Pr[0]=N[0]-Pr[0],Pr[1]=U[0]-Pr[1];else if(nt){var Ur=+/w$/.test(nt),Kr=+/^n/.test(nt);Ir=[N[1-Ur]-Pr[0],U[1-Kr]-Pr[1]],Pr[0]=N[Ur],Pr[1]=U[Kr]}else e.event.altKey&&(lr=Pr.slice());ft.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Ue.style("cursor")),Je({type:"brushstart"}),$a();function Ba(){e.event.keyCode==32&&(or||(lr=null,Pr[0]-=N[1],Pr[1]-=U[1],or=2),Qe())}function ri(){e.event.keyCode==32&&or==2&&(Pr[0]+=N[1],Pr[1]+=U[1],or=0,Qe())}function $a(){var oa=e.mouse(ze),sa=!1;Ir&&(oa[0]+=Ir[0],oa[1]+=Ir[1]),or||(e.event.altKey?(lr||(lr=[(N[0]+N[1])/2,(U[0]+U[1])/2]),Pr[0]=N[+(oa[0]{(function(e,t){typeof G1=="object"&&typeof x7!="undefined"?t(G1):(e=e||self,t(e.d3=e.d3||{}))})(G1,function(e){"use strict";var t=new Date,r=new Date;function i(Ne,ut,gt,xr){function vr(wt){return Ne(wt=arguments.length===0?new Date:new Date(+wt)),wt}return vr.floor=function(wt){return Ne(wt=new Date(+wt)),wt},vr.ceil=function(wt){return Ne(wt=new Date(wt-1)),ut(wt,1),Ne(wt),wt},vr.round=function(wt){var bt=vr(wt),Ht=vr.ceil(wt);return wt-bt0))return Xt;do Xt.push(Gt=new Date(+wt)),ut(wt,Ht),Ne(wt);while(Gt=bt)for(;Ne(bt),!wt(bt);)bt.setTime(bt-1)},function(bt,Ht){if(bt>=bt)if(Ht<0)for(;++Ht<=0;)for(;ut(bt,-1),!wt(bt););else for(;--Ht>=0;)for(;ut(bt,1),!wt(bt););})},gt&&(vr.count=function(wt,bt){return t.setTime(+wt),r.setTime(+bt),Ne(t),Ne(r),Math.floor(gt(t,r))},vr.every=function(wt){return wt=Math.floor(wt),!isFinite(wt)||!(wt>0)?null:wt>1?vr.filter(xr?function(bt){return xr(bt)%wt===0}:function(bt){return vr.count(0,bt)%wt===0}):vr}),vr}var a=i(function(){},function(Ne,ut){Ne.setTime(+Ne+ut)},function(Ne,ut){return ut-Ne});a.every=function(Ne){return Ne=Math.floor(Ne),!isFinite(Ne)||!(Ne>0)?null:Ne>1?i(function(ut){ut.setTime(Math.floor(ut/Ne)*Ne)},function(ut,gt){ut.setTime(+ut+gt*Ne)},function(ut,gt){return(gt-ut)/Ne}):a};var s=a.range,l=1e3,f=6e4,h=36e5,v=864e5,m=6048e5,_=i(function(Ne){Ne.setTime(Ne-Ne.getMilliseconds())},function(Ne,ut){Ne.setTime(+Ne+ut*l)},function(Ne,ut){return(ut-Ne)/l},function(Ne){return Ne.getUTCSeconds()}),T=_.range,S=i(function(Ne){Ne.setTime(Ne-Ne.getMilliseconds()-Ne.getSeconds()*l)},function(Ne,ut){Ne.setTime(+Ne+ut*f)},function(Ne,ut){return(ut-Ne)/f},function(Ne){return Ne.getMinutes()}),C=S.range,D=i(function(Ne){Ne.setTime(Ne-Ne.getMilliseconds()-Ne.getSeconds()*l-Ne.getMinutes()*f)},function(Ne,ut){Ne.setTime(+Ne+ut*h)},function(Ne,ut){return(ut-Ne)/h},function(Ne){return Ne.getHours()}),E=D.range,I=i(function(Ne){Ne.setHours(0,0,0,0)},function(Ne,ut){Ne.setDate(Ne.getDate()+ut)},function(Ne,ut){return(ut-Ne-(ut.getTimezoneOffset()-Ne.getTimezoneOffset())*f)/v},function(Ne){return Ne.getDate()-1}),B=I.range;function q(Ne){return i(function(ut){ut.setDate(ut.getDate()-(ut.getDay()+7-Ne)%7),ut.setHours(0,0,0,0)},function(ut,gt){ut.setDate(ut.getDate()+gt*7)},function(ut,gt){return(gt-ut-(gt.getTimezoneOffset()-ut.getTimezoneOffset())*f)/m})}var z=q(0),O=q(1),H=q(2),V=q(3),W=q(4),J=q(5),te=q(6),ne=z.range,oe=O.range,fe=H.range,de=V.range,Me=W.range,Se=J.range,Te=te.range,we=i(function(Ne){Ne.setDate(1),Ne.setHours(0,0,0,0)},function(Ne,ut){Ne.setMonth(Ne.getMonth()+ut)},function(Ne,ut){return ut.getMonth()-Ne.getMonth()+(ut.getFullYear()-Ne.getFullYear())*12},function(Ne){return Ne.getMonth()}),Ae=we.range,Ce=i(function(Ne){Ne.setMonth(0,1),Ne.setHours(0,0,0,0)},function(Ne,ut){Ne.setFullYear(Ne.getFullYear()+ut)},function(Ne,ut){return ut.getFullYear()-Ne.getFullYear()},function(Ne){return Ne.getFullYear()});Ce.every=function(Ne){return!isFinite(Ne=Math.floor(Ne))||!(Ne>0)?null:i(function(ut){ut.setFullYear(Math.floor(ut.getFullYear()/Ne)*Ne),ut.setMonth(0,1),ut.setHours(0,0,0,0)},function(ut,gt){ut.setFullYear(ut.getFullYear()+gt*Ne)})};var Le=Ce.range,Qe=i(function(Ne){Ne.setUTCSeconds(0,0)},function(Ne,ut){Ne.setTime(+Ne+ut*f)},function(Ne,ut){return(ut-Ne)/f},function(Ne){return Ne.getUTCMinutes()}),st=Qe.range,at=i(function(Ne){Ne.setUTCMinutes(0,0,0)},function(Ne,ut){Ne.setTime(+Ne+ut*h)},function(Ne,ut){return(ut-Ne)/h},function(Ne){return Ne.getUTCHours()}),mt=at.range,Ye=i(function(Ne){Ne.setUTCHours(0,0,0,0)},function(Ne,ut){Ne.setUTCDate(Ne.getUTCDate()+ut)},function(Ne,ut){return(ut-Ne)/v},function(Ne){return Ne.getUTCDate()-1}),At=Ye.range;function it(Ne){return i(function(ut){ut.setUTCDate(ut.getUTCDate()-(ut.getUTCDay()+7-Ne)%7),ut.setUTCHours(0,0,0,0)},function(ut,gt){ut.setUTCDate(ut.getUTCDate()+gt*7)},function(ut,gt){return(gt-ut)/m})}var dt=it(0),Mt=it(1),ct=it(2),ve=it(3),Ie=it(4),me=it(5),rt=it(6),pt=dt.range,je=Mt.range,qt=ct.range,It=ve.range,Tt=Ie.range,zt=me.range,Ut=rt.range,Et=i(function(Ne){Ne.setUTCDate(1),Ne.setUTCHours(0,0,0,0)},function(Ne,ut){Ne.setUTCMonth(Ne.getUTCMonth()+ut)},function(Ne,ut){return ut.getUTCMonth()-Ne.getUTCMonth()+(ut.getUTCFullYear()-Ne.getUTCFullYear())*12},function(Ne){return Ne.getUTCMonth()}),Ct=Et.range,Yt=i(function(Ne){Ne.setUTCMonth(0,1),Ne.setUTCHours(0,0,0,0)},function(Ne,ut){Ne.setUTCFullYear(Ne.getUTCFullYear()+ut)},function(Ne,ut){return ut.getUTCFullYear()-Ne.getUTCFullYear()},function(Ne){return Ne.getUTCFullYear()});Yt.every=function(Ne){return!isFinite(Ne=Math.floor(Ne))||!(Ne>0)?null:i(function(ut){ut.setUTCFullYear(Math.floor(ut.getUTCFullYear()/Ne)*Ne),ut.setUTCMonth(0,1),ut.setUTCHours(0,0,0,0)},function(ut,gt){ut.setUTCFullYear(ut.getUTCFullYear()+gt*Ne)})};var Vt=Yt.range;e.timeDay=I,e.timeDays=B,e.timeFriday=J,e.timeFridays=Se,e.timeHour=D,e.timeHours=E,e.timeInterval=i,e.timeMillisecond=a,e.timeMilliseconds=s,e.timeMinute=S,e.timeMinutes=C,e.timeMonday=O,e.timeMondays=oe,e.timeMonth=we,e.timeMonths=Ae,e.timeSaturday=te,e.timeSaturdays=Te,e.timeSecond=_,e.timeSeconds=T,e.timeSunday=z,e.timeSundays=ne,e.timeThursday=W,e.timeThursdays=Me,e.timeTuesday=H,e.timeTuesdays=fe,e.timeWednesday=V,e.timeWednesdays=de,e.timeWeek=z,e.timeWeeks=ne,e.timeYear=Ce,e.timeYears=Le,e.utcDay=Ye,e.utcDays=At,e.utcFriday=me,e.utcFridays=zt,e.utcHour=at,e.utcHours=mt,e.utcMillisecond=a,e.utcMilliseconds=s,e.utcMinute=Qe,e.utcMinutes=st,e.utcMonday=Mt,e.utcMondays=je,e.utcMonth=Et,e.utcMonths=Ct,e.utcSaturday=rt,e.utcSaturdays=Ut,e.utcSecond=_,e.utcSeconds=T,e.utcSunday=dt,e.utcSundays=pt,e.utcThursday=Ie,e.utcThursdays=Tt,e.utcTuesday=ct,e.utcTuesdays=qt,e.utcWednesday=ve,e.utcWednesdays=It,e.utcWeek=dt,e.utcWeeks=pt,e.utcYear=Yt,e.utcYears=Vt,Object.defineProperty(e,"__esModule",{value:!0})})});var s0=pe((Z1,b7)=>{(function(e,t){typeof Z1=="object"&&typeof b7!="undefined"?t(Z1,q3()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(Z1,function(e,t){"use strict";function r(Fe){if(0<=Fe.y&&Fe.y<100){var He=new Date(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L);return He.setFullYear(Fe.y),He}return new Date(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L)}function i(Fe){if(0<=Fe.y&&Fe.y<100){var He=new Date(Date.UTC(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L));return He.setUTCFullYear(Fe.y),He}return new Date(Date.UTC(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L))}function a(Fe,He,xt){return{y:Fe,m:He,d:xt,H:0,M:0,S:0,L:0}}function s(Fe){var He=Fe.dateTime,xt=Fe.date,vt=Fe.time,yr=Fe.periods,Er=Fe.days,Ar=Fe.shortDays,Hr=Fe.months,_a=Fe.shortMonths,ka=T(yr),Ea=S(yr),Ii=T(Er),Ki=S(Er),yn=T(Ar),Xi=S(Ar),jn=T(Hr),En=S(Hr),Vi=T(_a),pa=S(_a),Gr={a:Dt,A:Ft,b:rr,B:jt,c:null,d:we,e:we,f:st,H:Ae,I:Ce,j:Le,L:Qe,m:at,M:mt,p:Tr,q:Yr,Q:bt,s:Ht,S:Ye,u:At,U:it,V:dt,w:Mt,W:ct,x:null,X:null,y:ve,Y:Ie,Z:me,"%":wt},Qa={a:Br,A:ca,b:ua,B:Na,c:null,d:rt,e:rt,f:Tt,H:pt,I:je,j:qt,L:It,m:zt,M:Ut,p:ii,q:Wr,Q:bt,s:Ht,S:Et,u:Ct,U:Yt,V:Vt,w:Ne,W:ut,x:null,X:null,y:gt,Y:xr,Z:vr,"%":wt},Zr={a:se,A:ce,b:Ee,B:Be,c:et,d:W,e:W,f:de,H:te,I:te,j:J,L:fe,m:V,M:ne,p:ee,q:H,Q:Se,s:Te,S:oe,u:D,U:E,V:I,w:C,W:B,x:Ve,X:yt,y:z,Y:q,Z:O,"%":Me};Gr.x=vi(xt,Gr),Gr.X=vi(vt,Gr),Gr.c=vi(He,Gr),Qa.x=vi(xt,Qa),Qa.X=vi(vt,Qa),Qa.c=vi(He,Qa);function vi(dr,$r){return function(ga){var nr=[],wi=-1,La=0,si=dr.length,fa,Ln,Co;for(ga instanceof Date||(ga=new Date(+ga));++wi53)return null;"w"in nr||(nr.w=1),"Z"in nr?(La=i(a(nr.y,0,1)),si=La.getUTCDay(),La=si>4||si===0?t.utcMonday.ceil(La):t.utcMonday(La),La=t.utcDay.offset(La,(nr.V-1)*7),nr.y=La.getUTCFullYear(),nr.m=La.getUTCMonth(),nr.d=La.getUTCDate()+(nr.w+6)%7):(La=r(a(nr.y,0,1)),si=La.getDay(),La=si>4||si===0?t.timeMonday.ceil(La):t.timeMonday(La),La=t.timeDay.offset(La,(nr.V-1)*7),nr.y=La.getFullYear(),nr.m=La.getMonth(),nr.d=La.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),si="Z"in nr?i(a(nr.y,0,1)).getUTCDay():r(a(nr.y,0,1)).getDay(),nr.m=0,nr.d="W"in nr?(nr.w+6)%7+nr.W*7-(si+5)%7:nr.w+nr.U*7-(si+6)%7);return"Z"in nr?(nr.H+=nr.Z/100|0,nr.M+=nr.Z%100,i(nr)):r(nr)}}function le(dr,$r,ga,nr){for(var wi=0,La=$r.length,si=ga.length,fa,Ln;wi=si)return-1;if(fa=$r.charCodeAt(wi++),fa===37){if(fa=$r.charAt(wi++),Ln=Zr[fa in l?$r.charAt(wi++):fa],!Ln||(nr=Ln(dr,ga,nr))<0)return-1}else if(fa!=ga.charCodeAt(nr++))return-1}return nr}function ee(dr,$r,ga){var nr=ka.exec($r.slice(ga));return nr?(dr.p=Ea[nr[0].toLowerCase()],ga+nr[0].length):-1}function se(dr,$r,ga){var nr=yn.exec($r.slice(ga));return nr?(dr.w=Xi[nr[0].toLowerCase()],ga+nr[0].length):-1}function ce(dr,$r,ga){var nr=Ii.exec($r.slice(ga));return nr?(dr.w=Ki[nr[0].toLowerCase()],ga+nr[0].length):-1}function Ee(dr,$r,ga){var nr=Vi.exec($r.slice(ga));return nr?(dr.m=pa[nr[0].toLowerCase()],ga+nr[0].length):-1}function Be(dr,$r,ga){var nr=jn.exec($r.slice(ga));return nr?(dr.m=En[nr[0].toLowerCase()],ga+nr[0].length):-1}function et(dr,$r,ga){return le(dr,He,$r,ga)}function Ve(dr,$r,ga){return le(dr,xt,$r,ga)}function yt(dr,$r,ga){return le(dr,vt,$r,ga)}function Dt(dr){return Ar[dr.getDay()]}function Ft(dr){return Er[dr.getDay()]}function rr(dr){return _a[dr.getMonth()]}function jt(dr){return Hr[dr.getMonth()]}function Tr(dr){return yr[+(dr.getHours()>=12)]}function Yr(dr){return 1+~~(dr.getMonth()/3)}function Br(dr){return Ar[dr.getUTCDay()]}function ca(dr){return Er[dr.getUTCDay()]}function ua(dr){return _a[dr.getUTCMonth()]}function Na(dr){return Hr[dr.getUTCMonth()]}function ii(dr){return yr[+(dr.getUTCHours()>=12)]}function Wr(dr){return 1+~~(dr.getUTCMonth()/3)}return{format:function(dr){var $r=vi(dr+="",Gr);return $r.toString=function(){return dr},$r},parse:function(dr){var $r=ya(dr+="",!1);return $r.toString=function(){return dr},$r},utcFormat:function(dr){var $r=vi(dr+="",Qa);return $r.toString=function(){return dr},$r},utcParse:function(dr){var $r=ya(dr+="",!0);return $r.toString=function(){return dr},$r}}}var l={"-":"",_:" ",0:"0"},f=/^\s*\d+/,h=/^%/,v=/[\\^$*+?|[\]().{}]/g;function m(Fe,He,xt){var vt=Fe<0?"-":"",yr=(vt?-Fe:Fe)+"",Er=yr.length;return vt+(Er68?1900:2e3),xt+vt[0].length):-1}function O(Fe,He,xt){var vt=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(He.slice(xt,xt+6));return vt?(Fe.Z=vt[1]?0:-(vt[2]+(vt[3]||"00")),xt+vt[0].length):-1}function H(Fe,He,xt){var vt=f.exec(He.slice(xt,xt+1));return vt?(Fe.q=vt[0]*3-3,xt+vt[0].length):-1}function V(Fe,He,xt){var vt=f.exec(He.slice(xt,xt+2));return vt?(Fe.m=vt[0]-1,xt+vt[0].length):-1}function W(Fe,He,xt){var vt=f.exec(He.slice(xt,xt+2));return vt?(Fe.d=+vt[0],xt+vt[0].length):-1}function J(Fe,He,xt){var vt=f.exec(He.slice(xt,xt+3));return vt?(Fe.m=0,Fe.d=+vt[0],xt+vt[0].length):-1}function te(Fe,He,xt){var vt=f.exec(He.slice(xt,xt+2));return vt?(Fe.H=+vt[0],xt+vt[0].length):-1}function ne(Fe,He,xt){var vt=f.exec(He.slice(xt,xt+2));return vt?(Fe.M=+vt[0],xt+vt[0].length):-1}function oe(Fe,He,xt){var vt=f.exec(He.slice(xt,xt+2));return vt?(Fe.S=+vt[0],xt+vt[0].length):-1}function fe(Fe,He,xt){var vt=f.exec(He.slice(xt,xt+3));return vt?(Fe.L=+vt[0],xt+vt[0].length):-1}function de(Fe,He,xt){var vt=f.exec(He.slice(xt,xt+6));return vt?(Fe.L=Math.floor(vt[0]/1e3),xt+vt[0].length):-1}function Me(Fe,He,xt){var vt=h.exec(He.slice(xt,xt+1));return vt?xt+vt[0].length:-1}function Se(Fe,He,xt){var vt=f.exec(He.slice(xt));return vt?(Fe.Q=+vt[0],xt+vt[0].length):-1}function Te(Fe,He,xt){var vt=f.exec(He.slice(xt));return vt?(Fe.s=+vt[0],xt+vt[0].length):-1}function we(Fe,He){return m(Fe.getDate(),He,2)}function Ae(Fe,He){return m(Fe.getHours(),He,2)}function Ce(Fe,He){return m(Fe.getHours()%12||12,He,2)}function Le(Fe,He){return m(1+t.timeDay.count(t.timeYear(Fe),Fe),He,3)}function Qe(Fe,He){return m(Fe.getMilliseconds(),He,3)}function st(Fe,He){return Qe(Fe,He)+"000"}function at(Fe,He){return m(Fe.getMonth()+1,He,2)}function mt(Fe,He){return m(Fe.getMinutes(),He,2)}function Ye(Fe,He){return m(Fe.getSeconds(),He,2)}function At(Fe){var He=Fe.getDay();return He===0?7:He}function it(Fe,He){return m(t.timeSunday.count(t.timeYear(Fe)-1,Fe),He,2)}function dt(Fe,He){var xt=Fe.getDay();return Fe=xt>=4||xt===0?t.timeThursday(Fe):t.timeThursday.ceil(Fe),m(t.timeThursday.count(t.timeYear(Fe),Fe)+(t.timeYear(Fe).getDay()===4),He,2)}function Mt(Fe){return Fe.getDay()}function ct(Fe,He){return m(t.timeMonday.count(t.timeYear(Fe)-1,Fe),He,2)}function ve(Fe,He){return m(Fe.getFullYear()%100,He,2)}function Ie(Fe,He){return m(Fe.getFullYear()%1e4,He,4)}function me(Fe){var He=Fe.getTimezoneOffset();return(He>0?"-":(He*=-1,"+"))+m(He/60|0,"0",2)+m(He%60,"0",2)}function rt(Fe,He){return m(Fe.getUTCDate(),He,2)}function pt(Fe,He){return m(Fe.getUTCHours(),He,2)}function je(Fe,He){return m(Fe.getUTCHours()%12||12,He,2)}function qt(Fe,He){return m(1+t.utcDay.count(t.utcYear(Fe),Fe),He,3)}function It(Fe,He){return m(Fe.getUTCMilliseconds(),He,3)}function Tt(Fe,He){return It(Fe,He)+"000"}function zt(Fe,He){return m(Fe.getUTCMonth()+1,He,2)}function Ut(Fe,He){return m(Fe.getUTCMinutes(),He,2)}function Et(Fe,He){return m(Fe.getUTCSeconds(),He,2)}function Ct(Fe){var He=Fe.getUTCDay();return He===0?7:He}function Yt(Fe,He){return m(t.utcSunday.count(t.utcYear(Fe)-1,Fe),He,2)}function Vt(Fe,He){var xt=Fe.getUTCDay();return Fe=xt>=4||xt===0?t.utcThursday(Fe):t.utcThursday.ceil(Fe),m(t.utcThursday.count(t.utcYear(Fe),Fe)+(t.utcYear(Fe).getUTCDay()===4),He,2)}function Ne(Fe){return Fe.getUTCDay()}function ut(Fe,He){return m(t.utcMonday.count(t.utcYear(Fe)-1,Fe),He,2)}function gt(Fe,He){return m(Fe.getUTCFullYear()%100,He,2)}function xr(Fe,He){return m(Fe.getUTCFullYear()%1e4,He,4)}function vr(){return"+0000"}function wt(){return"%"}function bt(Fe){return+Fe}function Ht(Fe){return Math.floor(+Fe/1e3)}var Xt;Gt({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 Gt(Fe){return Xt=s(Fe),e.timeFormat=Xt.format,e.timeParse=Xt.parse,e.utcFormat=Xt.utcFormat,e.utcParse=Xt.utcParse,Xt}var Ot="%Y-%m-%dT%H:%M:%S.%LZ";function tr(Fe){return Fe.toISOString()}var Mr=Date.prototype.toISOString?tr:e.utcFormat(Ot);function br(Fe){var He=new Date(Fe);return isNaN(He)?null:He}var Lt=+new Date("2000-01-01T00:00:00.000Z")?br:e.utcParse(Ot);e.isoFormat=Mr,e.isoParse=Lt,e.timeFormatDefaultLocale=Gt,e.timeFormatLocale=s,Object.defineProperty(e,"__esModule",{value:!0})})});var N3=pe((Y1,w7)=>{(function(e,t){typeof Y1=="object"&&typeof w7!="undefined"?t(Y1):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(Y1,function(e){"use strict";function t(V){return Math.abs(V=Math.round(V))>=1e21?V.toLocaleString("en").replace(/,/g,""):V.toString(10)}function r(V,W){if((J=(V=W?V.toExponential(W-1):V.toExponential()).indexOf("e"))<0)return null;var J,te=V.slice(0,J);return[te.length>1?te[0]+te.slice(2):te,+V.slice(J+1)]}function i(V){return V=r(Math.abs(V)),V?V[1]:NaN}function a(V,W){return function(J,te){for(var ne=J.length,oe=[],fe=0,de=V[0],Me=0;ne>0&&de>0&&(Me+de+1>te&&(de=Math.max(1,te-Me)),oe.push(J.substring(ne-=de,ne+de)),!((Me+=de+1)>te));)de=V[fe=(fe+1)%V.length];return oe.reverse().join(W)}}function s(V){return function(W){return W.replace(/[0-9]/g,function(J){return V[+J]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function f(V){if(!(W=l.exec(V)))throw new Error("invalid format: "+V);var W;return new h({fill:W[1],align:W[2],sign:W[3],symbol:W[4],zero:W[5],width:W[6],comma:W[7],precision:W[8]&&W[8].slice(1),trim:W[9],type:W[10]})}f.prototype=h.prototype;function h(V){this.fill=V.fill===void 0?" ":V.fill+"",this.align=V.align===void 0?">":V.align+"",this.sign=V.sign===void 0?"-":V.sign+"",this.symbol=V.symbol===void 0?"":V.symbol+"",this.zero=!!V.zero,this.width=V.width===void 0?void 0:+V.width,this.comma=!!V.comma,this.precision=V.precision===void 0?void 0:+V.precision,this.trim=!!V.trim,this.type=V.type===void 0?"":V.type+""}h.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function v(V){e:for(var W=V.length,J=1,te=-1,ne;J0&&(te=0);break}return te>0?V.slice(0,te)+V.slice(ne+1):V}var m;function _(V,W){var J=r(V,W);if(!J)return V+"";var te=J[0],ne=J[1],oe=ne-(m=Math.max(-8,Math.min(8,Math.floor(ne/3)))*3)+1,fe=te.length;return oe===fe?te:oe>fe?te+new Array(oe-fe+1).join("0"):oe>0?te.slice(0,oe)+"."+te.slice(oe):"0."+new Array(1-oe).join("0")+r(V,Math.max(0,W+oe-1))[0]}function T(V,W){var J=r(V,W);if(!J)return V+"";var te=J[0],ne=J[1];return ne<0?"0."+new Array(-ne).join("0")+te:te.length>ne+1?te.slice(0,ne+1)+"."+te.slice(ne+1):te+new Array(ne-te.length+2).join("0")}var S={"%":function(V,W){return(V*100).toFixed(W)},b:function(V){return Math.round(V).toString(2)},c:function(V){return V+""},d:t,e:function(V,W){return V.toExponential(W)},f:function(V,W){return V.toFixed(W)},g:function(V,W){return V.toPrecision(W)},o:function(V){return Math.round(V).toString(8)},p:function(V,W){return T(V*100,W)},r:T,s:_,X:function(V){return Math.round(V).toString(16).toUpperCase()},x:function(V){return Math.round(V).toString(16)}};function C(V){return V}var D=Array.prototype.map,E=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function I(V){var W=V.grouping===void 0||V.thousands===void 0?C:a(D.call(V.grouping,Number),V.thousands+""),J=V.currency===void 0?"":V.currency[0]+"",te=V.currency===void 0?"":V.currency[1]+"",ne=V.decimal===void 0?".":V.decimal+"",oe=V.numerals===void 0?C:s(D.call(V.numerals,String)),fe=V.percent===void 0?"%":V.percent+"",de=V.minus===void 0?"-":V.minus+"",Me=V.nan===void 0?"NaN":V.nan+"";function Se(we){we=f(we);var Ae=we.fill,Ce=we.align,Le=we.sign,Qe=we.symbol,st=we.zero,at=we.width,mt=we.comma,Ye=we.precision,At=we.trim,it=we.type;it==="n"?(mt=!0,it="g"):S[it]||(Ye===void 0&&(Ye=12),At=!0,it="g"),(st||Ae==="0"&&Ce==="=")&&(st=!0,Ae="0",Ce="=");var dt=Qe==="$"?J:Qe==="#"&&/[boxX]/.test(it)?"0"+it.toLowerCase():"",Mt=Qe==="$"?te:/[%p]/.test(it)?fe:"",ct=S[it],ve=/[defgprs%]/.test(it);Ye=Ye===void 0?6:/[gprs]/.test(it)?Math.max(1,Math.min(21,Ye)):Math.max(0,Math.min(20,Ye));function Ie(me){var rt=dt,pt=Mt,je,qt,It;if(it==="c")pt=ct(me)+pt,me="";else{me=+me;var Tt=me<0||1/me<0;if(me=isNaN(me)?Me:ct(Math.abs(me),Ye),At&&(me=v(me)),Tt&&+me==0&&Le!=="+"&&(Tt=!1),rt=(Tt?Le==="("?Le:de:Le==="-"||Le==="("?"":Le)+rt,pt=(it==="s"?E[8+m/3]:"")+pt+(Tt&&Le==="("?")":""),ve){for(je=-1,qt=me.length;++jeIt||It>57){pt=(It===46?ne+me.slice(je+1):me.slice(je))+pt,me=me.slice(0,je);break}}}mt&&!st&&(me=W(me,1/0));var zt=rt.length+me.length+pt.length,Ut=zt>1)+rt+me+pt+Ut.slice(zt);break;default:me=Ut+rt+me+pt;break}return oe(me)}return Ie.toString=function(){return we+""},Ie}function Te(we,Ae){var Ce=Se((we=f(we),we.type="f",we)),Le=Math.max(-8,Math.min(8,Math.floor(i(Ae)/3)))*3,Qe=Math.pow(10,-Le),st=E[8+Le/3];return function(at){return Ce(Qe*at)+st}}return{format:Se,formatPrefix:Te}}var B;q({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function q(V){return B=I(V),e.format=B.format,e.formatPrefix=B.formatPrefix,B}function z(V){return Math.max(0,-i(Math.abs(V)))}function O(V,W){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(i(W)/3)))*3-i(Math.abs(V)))}function H(V,W){return V=Math.abs(V),W=Math.abs(W)-V,Math.max(0,i(W)-i(V))+1}e.FormatSpecifier=h,e.formatDefaultLocale=q,e.formatLocale=I,e.formatSpecifier=f,e.precisionFixed=z,e.precisionPrefix=O,e.precisionRound=H,Object.defineProperty(e,"__esModule",{value:!0})})});var A7=pe((wme,T7)=>{"use strict";T7.exports=function(e){for(var t=e.length,r,i=0;i13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var Pa=pe((Tme,M7)=>{"use strict";var rj=A7();M7.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&rj(r))return!1}else if(t!=="number")return!1;return e-e<1}});var Hi=pe((Ame,S7)=>{"use strict";S7.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var B3=pe((W1,k7)=>{(function(e,t){typeof W1=="object"&&typeof k7!="undefined"?t(W1):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(W1,function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),i=0;i>2],m+=t[(f[h]&3)<<4|f[h+1]>>4],m+=t[(f[h+1]&15)<<2|f[h+2]>>6],m+=t[f[h+2]&63];return v%3===2?m=m.substring(0,m.length-1)+"=":v%3===1&&(m=m.substring(0,m.length-2)+"=="),m},s=function(l){var f=l.length*.75,h=l.length,v,m=0,_,T,S,C;l[l.length-1]==="="&&(f--,l[l.length-2]==="="&&f--);var D=new ArrayBuffer(f),E=new Uint8Array(D);for(v=0;v>4,E[m++]=(T&15)<<4|S>>2,E[m++]=(S&3)<<6|C&63;return D};e.decode=s,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})})});var cc=pe((Mme,C7)=>{"use strict";C7.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var al=pe(Du=>{"use strict";var aj=B3().decode,ij=cc(),O3=Array.isArray,nj=ArrayBuffer,oj=DataView;function E7(e){return nj.isView(e)&&!(e instanceof oj)}Du.isTypedArray=E7;function X1(e){return O3(e)||E7(e)}Du.isArrayOrTypedArray=X1;function sj(e){return!X1(e[0])}Du.isArray1D=sj;Du.ensureArray=function(e,t){return O3(e)||(e=[]),e.length=t,e};var fo={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};fo.uint8c=fo.u1c;fo.uint8=fo.u1;fo.int8=fo.i1;fo.uint16=fo.u2;fo.int16=fo.i2;fo.uint32=fo.u4;fo.int32=fo.i4;fo.float32=fo.f4;fo.float64=fo.f8;function U3(e){return e.constructor===ArrayBuffer}Du.isArrayBuffer=U3;Du.decodeTypedArraySpec=function(e){var t=[],r=lj(e),i=r.dtype,a=fo[i];if(!a)throw new Error('Error in dtype: "'+i+'"');var s=a.BYTES_PER_ELEMENT,l=r.bdata;U3(l)||(l=aj(l));var f=r.shape===void 0?[l.byteLength/s]:(""+r.shape).split(",");f.reverse();var h=f.length,v,m,_=+f[0],T=s*_,S=0;if(h===1)t=new a(l);else if(h===2)for(v=+f[1],m=0;m{"use strict";var D7=Pa(),H3=al().isArrayOrTypedArray;R7.exports=function(t,r){if(D7(r))r=String(r);else if(typeof r!="string"||r.substr(r.length-4)==="[-1]")throw"bad property string";var i=r.split("."),a,s,l,f;for(f=0;f{"use strict";var l0=wy(),vj=/^\w*$/,dj=0,F7=1,j1=2,q7=3,$v=4;N7.exports=function(t,r,i,a){i=i||"name",a=a||"value";var s,l,f,h={};r&&r.length?(f=l0(t,r),l=f.get()):l=t,r=r||"";var v={};if(l)for(s=0;s2)return h[S]=h[S]|j1,_.set(T,null);if(m){for(s=S;s{"use strict";var pj=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,mj=/^[^\.\[\]]+$/;O7.exports=function(e,t){for(;t;){var r=e.match(pj);if(r)e=r[1];else if(e.match(mj))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var J1=pe((Lme,V7)=>{"use strict";var yj=Pa();V7.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var i=Math.log(Math.min(r[0],r[1]))/Math.LN10;return yj(i)||(i=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),i}});var Z7=pe((Dme,G7)=>{"use strict";var H7=al().isArrayOrTypedArray,Ty=cc();G7.exports=function e(t,r){for(var i in r){var a=r[i],s=t[i];if(s!==a)if(i.charAt(0)==="_"||typeof a=="function"){if(i in t)continue;t[i]=a}else if(H7(a)&&H7(s)&&Ty(a[0])){if(i==="customdata"||i==="ids")continue;for(var l=Math.min(a.length,s.length),f=0;f{"use strict";function gj(e,t){var r=e%t;return r<0?r+t:r}function _j(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}Y7.exports={mod:gj,modHalf:_j}});var Tf=pe((zme,K1)=>{(function(e){var t=/^\s+/,r=/\s+$/,i=0,a=e.round,s=e.min,l=e.max,f=e.random;function h(ve,Ie){if(ve=ve||"",Ie=Ie||{},ve instanceof h)return ve;if(!(this instanceof h))return new h(ve,Ie);var me=v(ve);this._originalInput=ve,this._r=me.r,this._g=me.g,this._b=me.b,this._a=me.a,this._roundA=a(100*this._a)/100,this._format=Ie.format||me.format,this._gradientType=Ie.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=me.ok,this._tc_id=i++}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ve=this.toRgb();return(ve.r*299+ve.g*587+ve.b*114)/1e3},getLuminance:function(){var ve=this.toRgb(),Ie,me,rt,pt,je,qt;return Ie=ve.r/255,me=ve.g/255,rt=ve.b/255,Ie<=.03928?pt=Ie/12.92:pt=e.pow((Ie+.055)/1.055,2.4),me<=.03928?je=me/12.92:je=e.pow((me+.055)/1.055,2.4),rt<=.03928?qt=rt/12.92:qt=e.pow((rt+.055)/1.055,2.4),.2126*pt+.7152*je+.0722*qt},setAlpha:function(ve){return this._a=we(ve),this._roundA=a(100*this._a)/100,this},toHsv:function(){var ve=S(this._r,this._g,this._b);return{h:ve.h*360,s:ve.s,v:ve.v,a:this._a}},toHsvString:function(){var ve=S(this._r,this._g,this._b),Ie=a(ve.h*360),me=a(ve.s*100),rt=a(ve.v*100);return this._a==1?"hsv("+Ie+", "+me+"%, "+rt+"%)":"hsva("+Ie+", "+me+"%, "+rt+"%, "+this._roundA+")"},toHsl:function(){var ve=_(this._r,this._g,this._b);return{h:ve.h*360,s:ve.s,l:ve.l,a:this._a}},toHslString:function(){var ve=_(this._r,this._g,this._b),Ie=a(ve.h*360),me=a(ve.s*100),rt=a(ve.l*100);return this._a==1?"hsl("+Ie+", "+me+"%, "+rt+"%)":"hsla("+Ie+", "+me+"%, "+rt+"%, "+this._roundA+")"},toHex:function(ve){return D(this._r,this._g,this._b,ve)},toHexString:function(ve){return"#"+this.toHex(ve)},toHex8:function(ve){return E(this._r,this._g,this._b,this._a,ve)},toHex8String:function(ve){return"#"+this.toHex8(ve)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(Ae(this._r,255)*100)+"%",g:a(Ae(this._g,255)*100)+"%",b:a(Ae(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(Ae(this._r,255)*100)+"%, "+a(Ae(this._g,255)*100)+"%, "+a(Ae(this._b,255)*100)+"%)":"rgba("+a(Ae(this._r,255)*100)+"%, "+a(Ae(this._g,255)*100)+"%, "+a(Ae(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Se[D(this._r,this._g,this._b,!0)]||!1},toFilter:function(ve){var Ie="#"+I(this._r,this._g,this._b,this._a),me=Ie,rt=this._gradientType?"GradientType = 1, ":"";if(ve){var pt=h(ve);me="#"+I(pt._r,pt._g,pt._b,pt._a)}return"progid:DXImageTransform.Microsoft.gradient("+rt+"startColorstr="+Ie+",endColorstr="+me+")"},toString:function(ve){var Ie=!!ve;ve=ve||this._format;var me=!1,rt=this._a<1&&this._a>=0,pt=!Ie&&rt&&(ve==="hex"||ve==="hex6"||ve==="hex3"||ve==="hex4"||ve==="hex8"||ve==="name");return pt?ve==="name"&&this._a===0?this.toName():this.toRgbString():(ve==="rgb"&&(me=this.toRgbString()),ve==="prgb"&&(me=this.toPercentageRgbString()),(ve==="hex"||ve==="hex6")&&(me=this.toHexString()),ve==="hex3"&&(me=this.toHexString(!0)),ve==="hex4"&&(me=this.toHex8String(!0)),ve==="hex8"&&(me=this.toHex8String()),ve==="name"&&(me=this.toName()),ve==="hsl"&&(me=this.toHslString()),ve==="hsv"&&(me=this.toHsvString()),me||this.toHexString())},clone:function(){return h(this.toString())},_applyModification:function(ve,Ie){var me=ve.apply(null,[this].concat([].slice.call(Ie)));return this._r=me._r,this._g=me._g,this._b=me._b,this.setAlpha(me._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(H,arguments)},darken:function(){return this._applyModification(V,arguments)},desaturate:function(){return this._applyModification(B,arguments)},saturate:function(){return this._applyModification(q,arguments)},greyscale:function(){return this._applyModification(z,arguments)},spin:function(){return this._applyModification(W,arguments)},_applyCombination:function(ve,Ie){return ve.apply(null,[this].concat([].slice.call(Ie)))},analogous:function(){return this._applyCombination(fe,arguments)},complement:function(){return this._applyCombination(J,arguments)},monochromatic:function(){return this._applyCombination(de,arguments)},splitcomplement:function(){return this._applyCombination(oe,arguments)},triad:function(){return this._applyCombination(te,arguments)},tetrad:function(){return this._applyCombination(ne,arguments)}},h.fromRatio=function(ve,Ie){if(typeof ve=="object"){var me={};for(var rt in ve)ve.hasOwnProperty(rt)&&(rt==="a"?me[rt]=ve[rt]:me[rt]=mt(ve[rt]));ve=me}return h(ve,Ie)};function v(ve){var Ie={r:0,g:0,b:0},me=1,rt=null,pt=null,je=null,qt=!1,It=!1;return typeof ve=="string"&&(ve=Mt(ve)),typeof ve=="object"&&(dt(ve.r)&&dt(ve.g)&&dt(ve.b)?(Ie=m(ve.r,ve.g,ve.b),qt=!0,It=String(ve.r).substr(-1)==="%"?"prgb":"rgb"):dt(ve.h)&&dt(ve.s)&&dt(ve.v)?(rt=mt(ve.s),pt=mt(ve.v),Ie=C(ve.h,rt,pt),qt=!0,It="hsv"):dt(ve.h)&&dt(ve.s)&&dt(ve.l)&&(rt=mt(ve.s),je=mt(ve.l),Ie=T(ve.h,rt,je),qt=!0,It="hsl"),ve.hasOwnProperty("a")&&(me=ve.a)),me=we(me),{ok:qt,format:ve.format||It,r:s(255,l(Ie.r,0)),g:s(255,l(Ie.g,0)),b:s(255,l(Ie.b,0)),a:me}}function m(ve,Ie,me){return{r:Ae(ve,255)*255,g:Ae(Ie,255)*255,b:Ae(me,255)*255}}function _(ve,Ie,me){ve=Ae(ve,255),Ie=Ae(Ie,255),me=Ae(me,255);var rt=l(ve,Ie,me),pt=s(ve,Ie,me),je,qt,It=(rt+pt)/2;if(rt==pt)je=qt=0;else{var Tt=rt-pt;switch(qt=It>.5?Tt/(2-rt-pt):Tt/(rt+pt),rt){case ve:je=(Ie-me)/Tt+(Ie1&&(Et-=1),Et<1/6?zt+(Ut-zt)*6*Et:Et<1/2?Ut:Et<2/3?zt+(Ut-zt)*(2/3-Et)*6:zt}if(Ie===0)rt=pt=je=me;else{var It=me<.5?me*(1+Ie):me+Ie-me*Ie,Tt=2*me-It;rt=qt(Tt,It,ve+1/3),pt=qt(Tt,It,ve),je=qt(Tt,It,ve-1/3)}return{r:rt*255,g:pt*255,b:je*255}}function S(ve,Ie,me){ve=Ae(ve,255),Ie=Ae(Ie,255),me=Ae(me,255);var rt=l(ve,Ie,me),pt=s(ve,Ie,me),je,qt,It=rt,Tt=rt-pt;if(qt=rt===0?0:Tt/rt,rt==pt)je=0;else{switch(rt){case ve:je=(Ie-me)/Tt+(Ie>1)+720)%360;--Ie;)rt.h=(rt.h+pt)%360,je.push(h(rt));return je}function de(ve,Ie){Ie=Ie||6;for(var me=h(ve).toHsv(),rt=me.h,pt=me.s,je=me.v,qt=[],It=1/Ie;Ie--;)qt.push(h({h:rt,s:pt,v:je})),je=(je+It)%1;return qt}h.mix=function(ve,Ie,me){me=me===0?0:me||50;var rt=h(ve).toRgb(),pt=h(Ie).toRgb(),je=me/100,qt={r:(pt.r-rt.r)*je+rt.r,g:(pt.g-rt.g)*je+rt.g,b:(pt.b-rt.b)*je+rt.b,a:(pt.a-rt.a)*je+rt.a};return h(qt)},h.readability=function(ve,Ie){var me=h(ve),rt=h(Ie);return(e.max(me.getLuminance(),rt.getLuminance())+.05)/(e.min(me.getLuminance(),rt.getLuminance())+.05)},h.isReadable=function(ve,Ie,me){var rt=h.readability(ve,Ie),pt,je;switch(je=!1,pt=ct(me),pt.level+pt.size){case"AAsmall":case"AAAlarge":je=rt>=4.5;break;case"AAlarge":je=rt>=3;break;case"AAAsmall":je=rt>=7;break}return je},h.mostReadable=function(ve,Ie,me){var rt=null,pt=0,je,qt,It,Tt;me=me||{},qt=me.includeFallbackColors,It=me.level,Tt=me.size;for(var zt=0;ztpt&&(pt=je,rt=h(Ie[zt]));return h.isReadable(ve,rt,{level:It,size:Tt})||!qt?rt:(me.includeFallbackColors=!1,h.mostReadable(ve,["#fff","#000"],me))};var Me=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Se=h.hexNames=Te(Me);function Te(ve){var Ie={};for(var me in ve)ve.hasOwnProperty(me)&&(Ie[ve[me]]=me);return Ie}function we(ve){return ve=parseFloat(ve),(isNaN(ve)||ve<0||ve>1)&&(ve=1),ve}function Ae(ve,Ie){Qe(ve)&&(ve="100%");var me=st(ve);return ve=s(Ie,l(0,parseFloat(ve))),me&&(ve=parseInt(ve*Ie,10)/100),e.abs(ve-Ie)<1e-6?1:ve%Ie/parseFloat(Ie)}function Ce(ve){return s(1,l(0,ve))}function Le(ve){return parseInt(ve,16)}function Qe(ve){return typeof ve=="string"&&ve.indexOf(".")!=-1&&parseFloat(ve)===1}function st(ve){return typeof ve=="string"&&ve.indexOf("%")!=-1}function at(ve){return ve.length==1?"0"+ve:""+ve}function mt(ve){return ve<=1&&(ve=ve*100+"%"),ve}function Ye(ve){return e.round(parseFloat(ve)*255).toString(16)}function At(ve){return Le(ve)/255}var it=function(){var ve="[-\\+]?\\d+%?",Ie="[-\\+]?\\d*\\.\\d+%?",me="(?:"+Ie+")|(?:"+ve+")",rt="[\\s|\\(]+("+me+")[,|\\s]+("+me+")[,|\\s]+("+me+")\\s*\\)?",pt="[\\s|\\(]+("+me+")[,|\\s]+("+me+")[,|\\s]+("+me+")[,|\\s]+("+me+")\\s*\\)?";return{CSS_UNIT:new RegExp(me),rgb:new RegExp("rgb"+rt),rgba:new RegExp("rgba"+pt),hsl:new RegExp("hsl"+rt),hsla:new RegExp("hsla"+pt),hsv:new RegExp("hsv"+rt),hsva:new RegExp("hsva"+pt),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 dt(ve){return!!it.CSS_UNIT.exec(ve)}function Mt(ve){ve=ve.replace(t,"").replace(r,"").toLowerCase();var Ie=!1;if(Me[ve])ve=Me[ve],Ie=!0;else if(ve=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var me;return(me=it.rgb.exec(ve))?{r:me[1],g:me[2],b:me[3]}:(me=it.rgba.exec(ve))?{r:me[1],g:me[2],b:me[3],a:me[4]}:(me=it.hsl.exec(ve))?{h:me[1],s:me[2],l:me[3]}:(me=it.hsla.exec(ve))?{h:me[1],s:me[2],l:me[3],a:me[4]}:(me=it.hsv.exec(ve))?{h:me[1],s:me[2],v:me[3]}:(me=it.hsva.exec(ve))?{h:me[1],s:me[2],v:me[3],a:me[4]}:(me=it.hex8.exec(ve))?{r:Le(me[1]),g:Le(me[2]),b:Le(me[3]),a:At(me[4]),format:Ie?"name":"hex8"}:(me=it.hex6.exec(ve))?{r:Le(me[1]),g:Le(me[2]),b:Le(me[3]),format:Ie?"name":"hex"}:(me=it.hex4.exec(ve))?{r:Le(me[1]+""+me[1]),g:Le(me[2]+""+me[2]),b:Le(me[3]+""+me[3]),a:At(me[4]+""+me[4]),format:Ie?"name":"hex8"}:(me=it.hex3.exec(ve))?{r:Le(me[1]+""+me[1]),g:Le(me[2]+""+me[2]),b:Le(me[3]+""+me[3]),format:Ie?"name":"hex"}:!1}function ct(ve){var Ie,me;return ve=ve||{level:"AA",size:"small"},Ie=(ve.level||"AA").toUpperCase(),me=(ve.size||"small").toLowerCase(),Ie!=="AA"&&Ie!=="AAA"&&(Ie="AA"),me!=="small"&&me!=="large"&&(me="small"),{level:Ie,size:me}}typeof K1!="undefined"&&K1.exports?K1.exports=h:window.tinycolor=h})(Math)});var hn=pe(Sy=>{"use strict";var W7=cc(),Ay=Array.isArray;function xj(e,t){var r,i;for(r=0;r{"use strict";X7.exports=function(e){var t=e.variantValues,r=e.editType,i=e.colorEditType;i===void 0&&(i=r);var a={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var s={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:i},weight:a,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(s.size.dflt="auto"),e.autoColor&&(s.color.dflt="auto"),e.arrayOk&&(s.family.arrayOk=!0,s.weight.arrayOk=!0,s.style.arrayOk=!0,e.noFontVariant||(s.variant.arrayOk=!0),e.noFontTextcase||(s.textcase.arrayOk=!0),e.noFontLineposition||(s.lineposition.arrayOk=!0),e.noFontShadow||(s.shadow.arrayOk=!0),s.size.arrayOk=!0,s.color.arrayOk=!0),s}});var ky=pe((Fme,j7)=>{"use strict";j7.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var f0=pe((qme,Q7)=>{"use strict";var J7=ky(),K7=qo(),G3=K7({editType:"none"});G3.family.dflt=J7.HOVERFONT;G3.size.dflt=J7.HOVERFONTSIZE;Q7.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:G3,grouptitlefont:K7({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 e_=pe((Nme,$7)=>{"use strict";var bj=qo(),Q1=f0().hoverlabel,$1=hn().extendFlat;$7.exports={hoverlabel:{bgcolor:$1({},Q1.bgcolor,{arrayOk:!0}),bordercolor:$1({},Q1.bordercolor,{arrayOk:!0}),font:bj({arrayOk:!0,editType:"none"}),align:$1({},Q1.align,{arrayOk:!0}),namelength:$1({},Q1.namelength,{arrayOk:!0}),editType:"none"}}});var ms=pe((Bme,e8)=>{"use strict";var wj=qo(),Tj=e_();e8.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:wj({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:Tj.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var ed=pe((Ome,a8)=>{"use strict";var Aj=Tf(),t_={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)"]]},t8=t_.RdBu;function Mj(e,t){if(t||(t=t8),!e)return t;function r(){try{e=t_[e]||JSON.parse(e)}catch(i){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),r8(e)?e:t}function r8(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;r{"use strict";td.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];td.defaultLine="#444";td.lightLine="#eee";td.background="#fff";td.borderLine="#BEC8D9";td.lightFraction=100*10/11});var Ua=pe((Vme,i8)=>{"use strict";var Is=Tf(),kj=Pa(),Cj=al().isTypedArray,Qn=i8.exports={},r_=Af();Qn.defaults=r_.defaults;var Ej=Qn.defaultLine=r_.defaultLine;Qn.lightLine=r_.lightLine;var Y3=Qn.background=r_.background;Qn.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"};Qn.rgb=function(e){return Qn.tinyRGB(Is(e))};Qn.opacity=function(e){return e?Is(e).getAlpha():0};Qn.addOpacity=function(e,t){var r=Is(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"};Qn.combine=function(e,t){var r=Is(e).toRgb();if(r.a===1)return Is(e).toRgbString();var i=Is(t||Y3).toRgb(),a=i.a===1?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},s={r:a.r*(1-r.a)+r.r*r.a,g:a.g*(1-r.a)+r.g*r.a,b:a.b*(1-r.a)+r.b*r.a};return Is(s).toRgbString()};Qn.interpolate=function(e,t,r){var i=Is(e).toRgb(),a=Is(t).toRgb(),s={r:r*i.r+(1-r)*a.r,g:r*i.g+(1-r)*a.g,b:r*i.b+(1-r)*a.b};return Is(s).toRgbString()};Qn.contrast=function(e,t,r){var i=Is(e);i.getAlpha()!==1&&(i=Is(Qn.combine(e,Y3)));var a=i.isDark()?t?i.lighten(t):Y3:r?i.darken(r):Ej;return a.toString()};Qn.stroke=function(e,t){var r=Is(t);e.style({stroke:Qn.tinyRGB(r),"stroke-opacity":r.getAlpha()})};Qn.fill=function(e,t){var r=Is(t);e.style({fill:Qn.tinyRGB(r),"fill-opacity":r.getAlpha()})};Qn.clean=function(e){if(!(!e||typeof e!="object")){var t=Object.keys(e),r,i,a,s;for(r=0;r=0)))return e;if(s===3)i[s]>1&&(i[s]=1);else if(i[s]>=1)return e}var l=Math.round(i[0]*255)+", "+Math.round(i[1]*255)+", "+Math.round(i[2]*255);return a?"rgba("+l+", "+i[3]+")":"rgb("+l+")"}});var a_=pe((Hme,n8)=>{"use strict";n8.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var c0=pe(o8=>{"use strict";o8.counter=function(e,t,r,i){var a=(t||"")+(r?"":"$"),s=i===!1?"":"^";return e==="xy"?new RegExp(s+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(s+e+"([2-9]|[1-9][0-9]+)?"+a)}});var f8=pe(Rs=>{"use strict";var W3=Pa(),s8=Tf(),l8=hn().extendFlat,Lj=ms(),Dj=ed(),Pj=Ua(),zj=a_().DESELECTDIM,h0=wy(),u8=c0().counter,Ij=u0().modHalf,Mf=al().isArrayOrTypedArray,bh=al().isTypedArraySpec,wh=al().decodeTypedArraySpec;Rs.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(Mf(e)?e:bh(e)?wh(e):r)}},enumerated:{coerceFunction:function(e,t,r,i){i.coerceNumber&&(e=+e),i.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,i=0;ii.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,i){if((i.extras||[]).indexOf(e)!==-1){t.set(e);return}bh(e)&&(e=wh(e)),e%1||!W3(e)||i.min!==void 0&&ei.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,i){if(typeof e!="string"){var a=typeof e=="number";i.strict===!0||!a?t.set(r):t.set(String(e))}else i.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){bh(e)&&(e=wh(e)),s8(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function i(a){return s8(a).isValid()}!Array.isArray(e)||!e.length?t.set(r):e.every(i)?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(Dj.get(e,r))}},angle:{coerceFunction:function(e,t,r){bh(e)&&(e=wh(e)),e==="auto"?t.set("auto"):W3(e)?t.set(Ij(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,i){var a=i.regex||u8(r);if(typeof e=="string"&&a.test(e)){t.set(e);return}t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!u8(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,i){if((i.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var a=e.split("+"),s=0;s{"use strict";var c8={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:{}}},h8={};function v8(e,t){for(var r in e){var i=e[r];i.valType?t[r]=i.dflt:(t[r]||(t[r]={}),v8(i,t[r]))}}v8(c8,h8);d8.exports={configAttributes:c8,dfltConfig:h8}});var j3=pe((Wme,p8)=>{"use strict";var X3=ja(),Rj=Pa(),Cy=[];p8.exports=function(e,t){if(Cy.indexOf(e)!==-1)return;Cy.push(e);var r=1e3;Rj(t)?r=t:t==="long"&&(r=3e3);var i=X3.select("body").selectAll(".plotly-notifier").data([0]);i.enter().append("div").classed("plotly-notifier",!0);var a=i.selectAll(".notifier-note").data(Cy);function s(l){l.duration(700).style("opacity",0).each("end",function(f){var h=Cy.indexOf(f);h!==-1&&Cy.splice(h,1),X3.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var f=X3.select(this);f.append("button").classed("notifier-close",!0).html("×").on("click",function(){f.transition().call(s)});for(var h=f.append("p"),v=l.split(//g),m=0;m{"use strict";var v0=rd().dfltConfig,J3=j3(),K3=m8.exports={};K3.log=function(){var e;if(v0.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};K3.warn=function(){var e;if(v0.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};K3.error=function(){var e;if(v0.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var n_=pe((jme,y8)=>{"use strict";y8.exports=function(){}});var Q3=pe((Jme,g8)=>{"use strict";g8.exports=function(t,r){if(r instanceof RegExp){for(var i=r.toString(),a=0;a{_8.exports=Fj;function Fj(){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 w8=pe((Qme,b8)=>{b8.exports=qj;function qj(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var A8=pe(($me,T8)=>{T8.exports=Nj;function Nj(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var $3=pe((eye,M8)=>{M8.exports=Bj;function Bj(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 k8=pe((tye,S8)=>{S8.exports=Oj;function Oj(e,t){if(e===t){var r=t[1],i=t[2],a=t[3],s=t[6],l=t[7],f=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=s,e[11]=t[14],e[12]=a,e[13]=l,e[14]=f}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var E8=pe((rye,C8)=>{C8.exports=Uj;function Uj(e,t){var r=t[0],i=t[1],a=t[2],s=t[3],l=t[4],f=t[5],h=t[6],v=t[7],m=t[8],_=t[9],T=t[10],S=t[11],C=t[12],D=t[13],E=t[14],I=t[15],B=r*f-i*l,q=r*h-a*l,z=r*v-s*l,O=i*h-a*f,H=i*v-s*f,V=a*v-s*h,W=m*D-_*C,J=m*E-T*C,te=m*I-S*C,ne=_*E-T*D,oe=_*I-S*D,fe=T*I-S*E,de=B*fe-q*oe+z*ne+O*te-H*J+V*W;return de?(de=1/de,e[0]=(f*fe-h*oe+v*ne)*de,e[1]=(a*oe-i*fe-s*ne)*de,e[2]=(D*V-E*H+I*O)*de,e[3]=(T*H-_*V-S*O)*de,e[4]=(h*te-l*fe-v*J)*de,e[5]=(r*fe-a*te+s*J)*de,e[6]=(E*z-C*V-I*q)*de,e[7]=(m*V-T*z+S*q)*de,e[8]=(l*oe-f*te+v*W)*de,e[9]=(i*te-r*oe-s*W)*de,e[10]=(C*H-D*z+I*B)*de,e[11]=(_*z-m*H-S*B)*de,e[12]=(f*J-l*ne-h*W)*de,e[13]=(r*ne-i*J+a*W)*de,e[14]=(D*q-C*O-E*B)*de,e[15]=(m*O-_*q+T*B)*de,e):null}});var D8=pe((aye,L8)=>{L8.exports=Vj;function Vj(e,t){var r=t[0],i=t[1],a=t[2],s=t[3],l=t[4],f=t[5],h=t[6],v=t[7],m=t[8],_=t[9],T=t[10],S=t[11],C=t[12],D=t[13],E=t[14],I=t[15];return e[0]=f*(T*I-S*E)-_*(h*I-v*E)+D*(h*S-v*T),e[1]=-(i*(T*I-S*E)-_*(a*I-s*E)+D*(a*S-s*T)),e[2]=i*(h*I-v*E)-f*(a*I-s*E)+D*(a*v-s*h),e[3]=-(i*(h*S-v*T)-f*(a*S-s*T)+_*(a*v-s*h)),e[4]=-(l*(T*I-S*E)-m*(h*I-v*E)+C*(h*S-v*T)),e[5]=r*(T*I-S*E)-m*(a*I-s*E)+C*(a*S-s*T),e[6]=-(r*(h*I-v*E)-l*(a*I-s*E)+C*(a*v-s*h)),e[7]=r*(h*S-v*T)-l*(a*S-s*T)+m*(a*v-s*h),e[8]=l*(_*I-S*D)-m*(f*I-v*D)+C*(f*S-v*_),e[9]=-(r*(_*I-S*D)-m*(i*I-s*D)+C*(i*S-s*_)),e[10]=r*(f*I-v*D)-l*(i*I-s*D)+C*(i*v-s*f),e[11]=-(r*(f*S-v*_)-l*(i*S-s*_)+m*(i*v-s*f)),e[12]=-(l*(_*E-T*D)-m*(f*E-h*D)+C*(f*T-h*_)),e[13]=r*(_*E-T*D)-m*(i*E-a*D)+C*(i*T-a*_),e[14]=-(r*(f*E-h*D)-l*(i*E-a*D)+C*(i*h-a*f)),e[15]=r*(f*T-h*_)-l*(i*T-a*_)+m*(i*h-a*f),e}});var z8=pe((iye,P8)=>{P8.exports=Hj;function Hj(e){var t=e[0],r=e[1],i=e[2],a=e[3],s=e[4],l=e[5],f=e[6],h=e[7],v=e[8],m=e[9],_=e[10],T=e[11],S=e[12],C=e[13],D=e[14],E=e[15],I=t*l-r*s,B=t*f-i*s,q=t*h-a*s,z=r*f-i*l,O=r*h-a*l,H=i*h-a*f,V=v*C-m*S,W=v*D-_*S,J=v*E-T*S,te=m*D-_*C,ne=m*E-T*C,oe=_*E-T*D;return I*oe-B*ne+q*te+z*J-O*W+H*V}});var R8=pe((nye,I8)=>{I8.exports=Gj;function Gj(e,t,r){var i=t[0],a=t[1],s=t[2],l=t[3],f=t[4],h=t[5],v=t[6],m=t[7],_=t[8],T=t[9],S=t[10],C=t[11],D=t[12],E=t[13],I=t[14],B=t[15],q=r[0],z=r[1],O=r[2],H=r[3];return e[0]=q*i+z*f+O*_+H*D,e[1]=q*a+z*h+O*T+H*E,e[2]=q*s+z*v+O*S+H*I,e[3]=q*l+z*m+O*C+H*B,q=r[4],z=r[5],O=r[6],H=r[7],e[4]=q*i+z*f+O*_+H*D,e[5]=q*a+z*h+O*T+H*E,e[6]=q*s+z*v+O*S+H*I,e[7]=q*l+z*m+O*C+H*B,q=r[8],z=r[9],O=r[10],H=r[11],e[8]=q*i+z*f+O*_+H*D,e[9]=q*a+z*h+O*T+H*E,e[10]=q*s+z*v+O*S+H*I,e[11]=q*l+z*m+O*C+H*B,q=r[12],z=r[13],O=r[14],H=r[15],e[12]=q*i+z*f+O*_+H*D,e[13]=q*a+z*h+O*T+H*E,e[14]=q*s+z*v+O*S+H*I,e[15]=q*l+z*m+O*C+H*B,e}});var q8=pe((oye,F8)=>{F8.exports=Zj;function Zj(e,t,r){var i=r[0],a=r[1],s=r[2],l,f,h,v,m,_,T,S,C,D,E,I;return t===e?(e[12]=t[0]*i+t[4]*a+t[8]*s+t[12],e[13]=t[1]*i+t[5]*a+t[9]*s+t[13],e[14]=t[2]*i+t[6]*a+t[10]*s+t[14],e[15]=t[3]*i+t[7]*a+t[11]*s+t[15]):(l=t[0],f=t[1],h=t[2],v=t[3],m=t[4],_=t[5],T=t[6],S=t[7],C=t[8],D=t[9],E=t[10],I=t[11],e[0]=l,e[1]=f,e[2]=h,e[3]=v,e[4]=m,e[5]=_,e[6]=T,e[7]=S,e[8]=C,e[9]=D,e[10]=E,e[11]=I,e[12]=l*i+m*a+C*s+t[12],e[13]=f*i+_*a+D*s+t[13],e[14]=h*i+T*a+E*s+t[14],e[15]=v*i+S*a+I*s+t[15]),e}});var B8=pe((sye,N8)=>{N8.exports=Yj;function Yj(e,t,r){var i=r[0],a=r[1],s=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*s,e[9]=t[9]*s,e[10]=t[10]*s,e[11]=t[11]*s,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var U8=pe((lye,O8)=>{O8.exports=Wj;function Wj(e,t,r,i){var a=i[0],s=i[1],l=i[2],f=Math.sqrt(a*a+s*s+l*l),h,v,m,_,T,S,C,D,E,I,B,q,z,O,H,V,W,J,te,ne,oe,fe,de,Me;return Math.abs(f)<1e-6?null:(f=1/f,a*=f,s*=f,l*=f,h=Math.sin(r),v=Math.cos(r),m=1-v,_=t[0],T=t[1],S=t[2],C=t[3],D=t[4],E=t[5],I=t[6],B=t[7],q=t[8],z=t[9],O=t[10],H=t[11],V=a*a*m+v,W=s*a*m+l*h,J=l*a*m-s*h,te=a*s*m-l*h,ne=s*s*m+v,oe=l*s*m+a*h,fe=a*l*m+s*h,de=s*l*m-a*h,Me=l*l*m+v,e[0]=_*V+D*W+q*J,e[1]=T*V+E*W+z*J,e[2]=S*V+I*W+O*J,e[3]=C*V+B*W+H*J,e[4]=_*te+D*ne+q*oe,e[5]=T*te+E*ne+z*oe,e[6]=S*te+I*ne+O*oe,e[7]=C*te+B*ne+H*oe,e[8]=_*fe+D*de+q*Me,e[9]=T*fe+E*de+z*Me,e[10]=S*fe+I*de+O*Me,e[11]=C*fe+B*de+H*Me,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var H8=pe((uye,V8)=>{V8.exports=Xj;function Xj(e,t,r){var i=Math.sin(r),a=Math.cos(r),s=t[4],l=t[5],f=t[6],h=t[7],v=t[8],m=t[9],_=t[10],T=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=s*a+v*i,e[5]=l*a+m*i,e[6]=f*a+_*i,e[7]=h*a+T*i,e[8]=v*a-s*i,e[9]=m*a-l*i,e[10]=_*a-f*i,e[11]=T*a-h*i,e}});var Z8=pe((fye,G8)=>{G8.exports=jj;function jj(e,t,r){var i=Math.sin(r),a=Math.cos(r),s=t[0],l=t[1],f=t[2],h=t[3],v=t[8],m=t[9],_=t[10],T=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*a-v*i,e[1]=l*a-m*i,e[2]=f*a-_*i,e[3]=h*a-T*i,e[8]=s*i+v*a,e[9]=l*i+m*a,e[10]=f*i+_*a,e[11]=h*i+T*a,e}});var W8=pe((cye,Y8)=>{Y8.exports=Jj;function Jj(e,t,r){var i=Math.sin(r),a=Math.cos(r),s=t[0],l=t[1],f=t[2],h=t[3],v=t[4],m=t[5],_=t[6],T=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*a+v*i,e[1]=l*a+m*i,e[2]=f*a+_*i,e[3]=h*a+T*i,e[4]=v*a-s*i,e[5]=m*a-l*i,e[6]=_*a-f*i,e[7]=T*a-h*i,e}});var j8=pe((hye,X8)=>{X8.exports=Kj;function Kj(e,t,r){var i,a,s,l=r[0],f=r[1],h=r[2],v=Math.sqrt(l*l+f*f+h*h);return Math.abs(v)<1e-6?null:(v=1/v,l*=v,f*=v,h*=v,i=Math.sin(t),a=Math.cos(t),s=1-a,e[0]=l*l*s+a,e[1]=f*l*s+h*i,e[2]=h*l*s-f*i,e[3]=0,e[4]=l*f*s-h*i,e[5]=f*f*s+a,e[6]=h*f*s+l*i,e[7]=0,e[8]=l*h*s+f*i,e[9]=f*h*s-l*i,e[10]=h*h*s+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var K8=pe((vye,J8)=>{J8.exports=Qj;function Qj(e,t,r){var i=t[0],a=t[1],s=t[2],l=t[3],f=i+i,h=a+a,v=s+s,m=i*f,_=i*h,T=i*v,S=a*h,C=a*v,D=s*v,E=l*f,I=l*h,B=l*v;return e[0]=1-(S+D),e[1]=_+B,e[2]=T-I,e[3]=0,e[4]=_-B,e[5]=1-(m+D),e[6]=C+E,e[7]=0,e[8]=T+I,e[9]=C-E,e[10]=1-(m+S),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var $8=pe((dye,Q8)=>{Q8.exports=$j;function $j(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var tS=pe((pye,eS)=>{eS.exports=eJ;function eJ(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var aS=pe((mye,rS)=>{rS.exports=tJ;function tJ(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var nS=pe((yye,iS)=>{iS.exports=rJ;function rJ(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var sS=pe((gye,oS)=>{oS.exports=aJ;function aJ(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var ew=pe((_ye,lS)=>{lS.exports=iJ;function iJ(e,t){var r=t[0],i=t[1],a=t[2],s=t[3],l=r+r,f=i+i,h=a+a,v=r*l,m=i*l,_=i*f,T=a*l,S=a*f,C=a*h,D=s*l,E=s*f,I=s*h;return e[0]=1-_-C,e[1]=m+I,e[2]=T-E,e[3]=0,e[4]=m-I,e[5]=1-v-C,e[6]=S+D,e[7]=0,e[8]=T+E,e[9]=S-D,e[10]=1-v-_,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var fS=pe((xye,uS)=>{uS.exports=nJ;function nJ(e,t,r,i,a,s,l){var f=1/(r-t),h=1/(a-i),v=1/(s-l);return e[0]=s*2*f,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s*2*h,e[6]=0,e[7]=0,e[8]=(r+t)*f,e[9]=(a+i)*h,e[10]=(l+s)*v,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*s*2*v,e[15]=0,e}});var hS=pe((bye,cS)=>{cS.exports=oJ;function oJ(e,t,r,i,a){var s=1/Math.tan(t/2),l=1/(i-a);return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+i)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*i*l,e[15]=0,e}});var dS=pe((wye,vS)=>{vS.exports=sJ;function sJ(e,t,r,i){var a=Math.tan(t.upDegrees*Math.PI/180),s=Math.tan(t.downDegrees*Math.PI/180),l=Math.tan(t.leftDegrees*Math.PI/180),f=Math.tan(t.rightDegrees*Math.PI/180),h=2/(l+f),v=2/(a+s);return e[0]=h,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=v,e[6]=0,e[7]=0,e[8]=-((l-f)*h*.5),e[9]=(a-s)*v*.5,e[10]=i/(r-i),e[11]=-1,e[12]=0,e[13]=0,e[14]=i*r/(r-i),e[15]=0,e}});var mS=pe((Tye,pS)=>{pS.exports=lJ;function lJ(e,t,r,i,a,s,l){var f=1/(t-r),h=1/(i-a),v=1/(s-l);return e[0]=-2*f,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*h,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*v,e[11]=0,e[12]=(t+r)*f,e[13]=(a+i)*h,e[14]=(l+s)*v,e[15]=1,e}});var gS=pe((Aye,yS)=>{var uJ=$3();yS.exports=fJ;function fJ(e,t,r,i){var a,s,l,f,h,v,m,_,T,S,C=t[0],D=t[1],E=t[2],I=i[0],B=i[1],q=i[2],z=r[0],O=r[1],H=r[2];return Math.abs(C-z)<1e-6&&Math.abs(D-O)<1e-6&&Math.abs(E-H)<1e-6?uJ(e):(m=C-z,_=D-O,T=E-H,S=1/Math.sqrt(m*m+_*_+T*T),m*=S,_*=S,T*=S,a=B*T-q*_,s=q*m-I*T,l=I*_-B*m,S=Math.sqrt(a*a+s*s+l*l),S?(S=1/S,a*=S,s*=S,l*=S):(a=0,s=0,l=0),f=_*l-T*s,h=T*a-m*l,v=m*s-_*a,S=Math.sqrt(f*f+h*h+v*v),S?(S=1/S,f*=S,h*=S,v*=S):(f=0,h=0,v=0),e[0]=a,e[1]=f,e[2]=m,e[3]=0,e[4]=s,e[5]=h,e[6]=_,e[7]=0,e[8]=l,e[9]=v,e[10]=T,e[11]=0,e[12]=-(a*C+s*D+l*E),e[13]=-(f*C+h*D+v*E),e[14]=-(m*C+_*D+T*E),e[15]=1,e)}});var xS=pe((Mye,_S)=>{_S.exports=cJ;function cJ(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var tw=pe((Sye,bS)=>{bS.exports={create:x8(),clone:w8(),copy:A8(),identity:$3(),transpose:k8(),invert:E8(),adjoint:D8(),determinant:z8(),multiply:R8(),translate:q8(),scale:B8(),rotate:U8(),rotateX:H8(),rotateY:Z8(),rotateZ:W8(),fromRotation:j8(),fromRotationTranslation:K8(),fromScaling:$8(),fromTranslation:tS(),fromXRotation:aS(),fromYRotation:nS(),fromZRotation:sS(),fromQuat:ew(),frustum:fS(),perspective:hS(),perspectiveFromFieldOfView:dS(),ortho:mS(),lookAt:gS(),str:xS()}});var o_=pe(Sn=>{"use strict";var hJ=tw();Sn.init2dArray=function(e,t){for(var r=new Array(e),i=0;i{"use strict";var vJ=ja(),wS=Th(),dJ=o_(),pJ=tw();function mJ(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function yJ(e){var t=vJ.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function TS(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function gJ(e,t){AS("global",e,t)}function AS(e,t,r){var i="plotly.js-style-"+e,a=document.getElementById(i);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",i),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var s=a.sheet;s?s.insertRule?s.insertRule(t+"{"+r+"}",0):s.addRule?s.addRule(t,r,0):wS.warn("addStyleRule failed"):wS.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function _J(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&TS(r)}function xJ(e,t,r,i,a,s){var l=i.split(":"),f=a.split(":"),h="data-btn-style-event-added";s||(s=document),s.querySelectorAll(e).forEach(function(v){v.getAttribute(h)||(v.addEventListener("mouseenter",function(){var m=this.querySelector(r);m&&(m.style[l[0]]=l[1])}),v.addEventListener("mouseleave",function(){var m=this.querySelector(r);m&&(t&&this.matches(t)?m.style[l[0]]=l[1]:m.style[f[0]]=f[1])}),v.setAttribute(h,!0))})}function bJ(e){var t=SS(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(i){var a=MS(i);if(a){var s=dJ.convertCssMatrix(a);r=pJ.multiply(r,r,s)}}),r}function MS(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(i){return+i})}function SS(e){for(var t=[];wJ(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function wJ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function TJ(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}kS.exports={getGraphDiv:mJ,isPlotDiv:yJ,removeElement:TS,addStyleRule:gJ,addRelatedStyleRule:AS,deleteRelatedStyleRule:_J,setStyleOnHover:xJ,getFullTransformMatrix:bJ,getElementTransformMatrix:MS,getElementAndAncestors:SS,equalDomRects:TJ}});var Ly=pe((Eye,CS)=>{"use strict";CS.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var il=pe((Lye,RS)=>{"use strict";var LS=hn().extendFlat,AJ=cc(),DS={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},PS={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},MJ=DS.flags.slice().concat(["fullReplot"]),SJ=PS.flags.slice().concat("layoutReplot");RS.exports={traces:DS,layout:PS,traceFlags:function(){return ES(MJ)},layoutFlags:function(){return ES(SJ)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var i=r.split("+"),a=0;a{"use strict";rw.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};rw.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var aw=pe((Pye,FS)=>{"use strict";FS.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 Hl=pe(s_=>{"use strict";var qS=aw(),zye=qS.FORMAT_LINK,Iye=qS.DATE_FORMAT_LINK;function iw(e){var t=e.description?" "+e.description:"",r=e.keys||[];if(r.length>0){for(var i=[],a=0;a{"use strict";function Ah(e,t){return t?t.d2l(e):e}function NS(e,t){return t?t.l2d(e):e}function kJ(e){return e.x0}function CJ(e){return e.x1}function EJ(e){return e.y0}function LJ(e){return e.y1}function BS(e){return e.x0shift||0}function OS(e){return e.x1shift||0}function US(e){return e.y0shift||0}function VS(e){return e.y1shift||0}function l_(e,t){return Ah(e.x1,t)+OS(e)-Ah(e.x0,t)-BS(e)}function u_(e,t,r){return Ah(e.y1,r)+VS(e)-Ah(e.y0,r)-US(e)}function DJ(e,t){return Math.abs(l_(e,t))}function PJ(e,t,r){return Math.abs(u_(e,t,r))}function zJ(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(l_(e,t),2)+Math.pow(u_(e,t,r),2))}function IJ(e,t){return NS((Ah(e.x1,t)+OS(e)+Ah(e.x0,t)+BS(e))/2,t)}function RJ(e,t,r){return NS((Ah(e.y1,r)+VS(e)+Ah(e.y0,r)+US(e))/2,r)}function FJ(e,t,r){return e.type!=="line"?void 0:u_(e,t,r)/l_(e,t)}HS.exports={x0:kJ,x1:CJ,y0:EJ,y1:LJ,slope:FJ,dx:l_,dy:u_,width:DJ,height:PJ,length:zJ,xcenter:IJ,ycenter:RJ}});var YS=pe((qye,ZS)=>{"use strict";var qJ=il().overrideAll,ad=ms(),GS=qo(),NJ=hc().dash,Mh=hn().extendFlat,BJ=Hl().shapeTexttemplateAttrs,OJ=f_();ZS.exports=qJ({newshape:{visible:Mh({},ad.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Mh({},ad.legend,{}),legendgroup:Mh({},ad.legendgroup,{}),legendgrouptitle:{text:Mh({},ad.legendgrouptitle.text,{}),font:GS({})},legendrank:Mh({},ad.legendrank,{}),legendwidth:Mh({},ad.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Mh({},NJ,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Mh({},ad.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:BJ({newshape:!0},{keys:Object.keys(OJ)}),font:GS({}),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 XS=pe((Nye,WS)=>{"use strict";var UJ=hc().dash,VJ=hn().extendFlat;WS.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:VJ({},UJ,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var c_=pe((Bye,jS)=>{"use strict";jS.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var d0=pe((Oye,$S)=>{"use strict";var nw=qo(),HJ=Ly(),h_=Af(),JS=YS(),KS=XS(),GJ=c_(),QS=hn().extendFlat,v_=nw({editType:"calc"});v_.family.dflt='"Open Sans", verdana, arial, sans-serif';v_.size.dflt=12;v_.color.dflt=h_.defaultLine;$S.exports={font:v_,title:{text:{valType:"string",editType:"layoutstyle"},font:nw({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:nw({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:QS(GJ({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:h_.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:h_.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:h_.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:JS.newshape,activeshape:JS.activeshape,newselection:KS.newselection,activeselection:KS.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:QS({},HJ.transition,{editType:"none"})}});var e9=m7(()=>{});var ZJ={};var t9=m7(()=>{e9()});var la=pe(za=>{"use strict";var p0=Th(),r9=n_(),a9=Q3(),YJ=cc(),WJ=Ey().addStyleRule,i9=hn(),XJ=ms(),jJ=d0(),JJ=i9.extendFlat,ow=i9.extendDeepAll;za.modules={};za.allCategories={};za.allTypes=[];za.subplotsRegistry={};za.componentsRegistry={};za.layoutArrayContainers=[];za.layoutArrayRegexes=[];za.traceLayoutAttributes={};za.localeRegistry={};za.apiMethodRegistry={};za.collectableSubplotTypes=null;za.register=function(t){if(za.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var rK=s0().timeFormat,p9=Pa(),sw=Th(),kh=u0().mod,g0=Hi(),Gl=g0.BADNUM,Fs=g0.ONEDAY,Dy=g0.ONEHOUR,Sh=g0.ONEMIN,y0=g0.ONESEC,Py=g0.EPOCHJD,vc=la(),u9=s0().utcFormat,aK=/^\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,iK=/^\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,f9=new Date().getFullYear()-70;function dc(e){return e&&vc.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}kn.dateTick0=function(e,t){var r=nK(e,!!t);if(t<2)return r;var i=kn.dateTime2ms(r,e);return i+=Fs*(t-1),kn.ms2DateTime(i,0,e)};function nK(e,t){return dc(e)?t?vc.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:vc.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}kn.dfltRange=function(e){return dc(e)?vc.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};kn.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var p_,m_;kn.dateTime2ms=function(e,t){if(kn.isJSDate(e)){var r=e.getTimezoneOffset()*Sh,i=(e.getUTCMinutes()-e.getMinutes())*Sh+(e.getUTCSeconds()-e.getSeconds())*y0+(e.getUTCMilliseconds()-e.getMilliseconds());if(i){var a=3*Sh;r=r-a/2+kh(i-r+a/2,a)}return e=Number(e)-r,e>=p_&&e<=m_?e:Gl}if(typeof e!="string"&&typeof e!="number")return Gl;e=String(e);var s=dc(t),l=e.charAt(0);s&&(l==="G"||l==="g")&&(e=e.substr(1),t="");var f=s&&t.substr(0,7)==="chinese",h=e.match(f?iK:aK);if(!h)return Gl;var v=h[1],m=h[3]||"1",_=Number(h[5]||1),T=Number(h[7]||0),S=Number(h[9]||0),C=Number(h[11]||0);if(s){if(v.length===2)return Gl;v=Number(v);var D;try{var E=vc.getComponentMethod("calendars","getCal")(t);if(f){var I=m.charAt(m.length-1)==="i";m=parseInt(m,10),D=E.newDate(v,E.toMonthIndex(v,m,I),_)}else D=E.newDate(v,Number(m),_)}catch(q){return Gl}return D?(D.toJD()-Py)*Fs+T*Dy+S*Sh+C*y0:Gl}v.length===2?v=(Number(v)+2e3-f9)%100+f9:v=Number(v),m-=1;var B=new Date(Date.UTC(2e3,m,_,T,S));return B.setUTCFullYear(v),B.getUTCMonth()!==m||B.getUTCDate()!==_?Gl:B.getTime()+C*y0};p_=kn.MIN_MS=kn.dateTime2ms("-9999");m_=kn.MAX_MS=kn.dateTime2ms("9999-12-31 23:59:59.9999");kn.isDateTime=function(e,t){return kn.dateTime2ms(e,t)!==Gl};function m0(e,t){return String(e+Math.pow(10,t)).substr(1)}var d_=90*Fs,c9=3*Dy,h9=5*Sh;kn.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=p_&&e<=m_))return Gl;t||(t=0);var i=Math.floor(kh(e+.05,1)*10),a=Math.round(e-i/10),s,l,f,h,v,m;if(dc(r)){var _=Math.floor(a/Fs)+Py,T=Math.floor(kh(e,Fs));try{s=vc.getComponentMethod("calendars","getCal")(r).fromJD(_).formatDate("yyyy-mm-dd")}catch(S){s=u9("G%Y-%m-%d")(new Date(a))}if(s.charAt(0)==="-")for(;s.length<11;)s="-0"+s.substr(1);else for(;s.length<10;)s="0"+s;l=t=p_+Fs&&e<=m_-Fs))return Gl;var t=Math.floor(kh(e+.05,1)*10),r=new Date(Math.round(e-t/10)),i=rK("%Y-%m-%d")(r),a=r.getHours(),s=r.getMinutes(),l=r.getSeconds(),f=r.getUTCMilliseconds()*10+t;return m9(i,a,s,l,f)};function m9(e,t,r,i,a){if((t||r||i||a)&&(e+=" "+m0(t,2)+":"+m0(r,2),(i||a)&&(e+=":"+m0(i,2),a))){for(var s=4;a%10===0;)s-=1,a/=10;e+="."+m0(a,s)}return e}kn.cleanDate=function(e,t,r){if(e===Gl)return t;if(kn.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(dc(r))return sw.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=kn.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!kn.isDateTime(e,r))return sw.error("unrecognized date",e),t;return e};var oK=/%\d?f/g,sK=/%h/g,lK={1:"1",2:"1",3:"2",4:"2"};function v9(e,t,r,i){e=e.replace(oK,function(s){var l=Math.min(+s.charAt(1)||6,6),f=(t/1e3%1+2).toFixed(l).substr(2).replace(/0+$/,"")||"0";return f});var a=new Date(Math.floor(t+.05));if(e=e.replace(sK,function(){return lK[r("%q")(a)]}),dc(i))try{e=vc.getComponentMethod("calendars","worldCalFmt")(e,t,i)}catch(s){return"Invalid"}return r(e)(a)}var uK=[59,59.9,59.99,59.999,59.9999];function fK(e,t){var r=kh(e+.05,Fs),i=m0(Math.floor(r/Dy),2)+":"+m0(kh(Math.floor(r/Sh),60),2);if(t!=="M"){p9(t)||(t=0);var a=Math.min(kh(e/y0,60),uK[t]),s=(100+a).toFixed(t).substr(1);t>0&&(s=s.replace(/0+$/,"").replace(/[\.]$/,"")),i+=":"+s}return i}kn.formatDate=function(e,t,r,i,a,s){if(a=dc(a)&&a,!t)if(r==="y")t=s.year;else if(r==="m")t=s.month;else if(r==="d")t=s.dayMonth+` -`+s.year;else return fK(e,r)+` -`+v9(s.dayMonthYear,e,i,a);return v9(t,e,i,a)};var d9=3*Fs;kn.incrementMonth=function(e,t,r){r=dc(r)&&r;var i=kh(e,Fs);if(e=Math.round(e-i),r)try{var a=Math.round(e/Fs)+Py,s=vc.getComponentMethod("calendars","getCal")(r),l=s.fromJD(a);return t%12?s.add(l,t,"m"):s.add(l,t/12,"y"),(l.toJD()-Py)*Fs+i}catch(h){sw.error("invalid ms "+e+" in calendar "+r)}var f=new Date(e+d9);return f.setUTCMonth(f.getUTCMonth()+t)+i-d9};kn.findExactDates=function(e,t){for(var r=0,i=0,a=0,s=0,l,f,h=dc(t)&&vc.getComponentMethod("calendars","getCal")(t),v=0;v{"use strict";g9.exports=function(t){return t}});var uw=pe(pc=>{"use strict";var cK=Pa(),hK=Th(),vK=y_(),dK=Hi().BADNUM,lw=1e-9;pc.findBin=function(e,t,r){if(cK(t.start))return r?Math.ceil((e-t.start)/t.size-lw)-1:Math.floor((e-t.start)/t.size+lw);var i=0,a=t.length,s=0,l=a>1?(t[a-1]-t[0])/(a-1):1,f,h;for(l>=0?h=r?pK:mK:h=r?gK:yK,e+=l*lw*(r?-1:1)*(l>=0?1:-1);i90&&hK.log("Long binary search..."),i-1};function pK(e,t){return et}function gK(e,t){return e>=t}pc.sorterAsc=function(e,t){return e-t};pc.sorterDes=function(e,t){return t-e};pc.distinctVals=function(e){var t=e.slice();t.sort(pc.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===dK;r--);for(var i=t[r]-t[0]||1,a=i/(r||1)/1e4,s=[],l,f=0;f<=r;f++){var h=t[f],v=h-l;l===void 0?(s.push(h),l=h):v>a&&(i=Math.min(i,v),s.push(h),l=h)}return{vals:s,minDiff:i}};pc.roundUp=function(e,t,r){for(var i=0,a=t.length-1,s,l=0,f=r?0:1,h=r?1:0,v=r?Math.ceil:Math.floor;i0&&(i=1),r&&i)return e.sort(t)}return i?e:e.reverse()};pc.findIndexOfMin=function(e,t){t=t||vK;for(var r=1/0,i,a=0;a{"use strict";_9.exports=function(t){return Object.keys(t).sort()}});var x9=pe(Cn=>{"use strict";var zy=Pa(),_K=al().isArrayOrTypedArray;Cn.aggNums=function(e,t,r,i){var a,s;if((!i||i>r.length)&&(i=r.length),zy(t)||(t=!1),_K(r[0])){for(s=new Array(i),a=0;ae.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var M9=pe((Jye,A9)=>{"use strict";var b9=u0(),fw=b9.mod,xK=b9.modHalf,Iy=Math.PI,Ch=2*Iy;function bK(e){return e/180*Iy}function wK(e){return e/Iy*180}function cw(e){return Math.abs(e[1]-e[0])>Ch-1e-14}function w9(e,t){return xK(t-e,Ch)}function TK(e,t){return Math.abs(w9(e,t))}function T9(e,t){if(cw(t))return!0;var r,i;t[0]i&&(i+=Ch);var a=fw(e,Ch),s=a+Ch;return a>=r&&a<=i||s>=r&&s<=i}function AK(e,t,r,i){if(!T9(t,i))return!1;var a,s;return r[0]=a&&e<=s}function hw(e,t,r,i,a,s,l){a=a||0,s=s||0;var f=cw([r,i]),h,v,m,_,T;f?(h=0,v=Iy,m=Ch):r{"use strict";id.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};id.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};id.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};id.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};id.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};id.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var E9=pe(nd=>{"use strict";var vw=u0().mod;nd.segmentsIntersect=C9;function C9(e,t,r,i,a,s,l,f){var h=r-e,v=a-e,m=l-a,_=i-t,T=s-t,S=f-s,C=h*S-m*_;if(C===0)return null;var D=(v*S-m*T)/C,E=(v*_-h*T)/C;return E<0||E>1||D<0||D>1?null:{x:e+h*D,y:t+_*D}}nd.segmentDistance=function(t,r,i,a,s,l,f,h){if(C9(t,r,i,a,s,l,f,h))return 0;var v=i-t,m=a-r,_=f-s,T=h-l,S=v*v+m*m,C=_*_+T*T,D=Math.min(__(v,m,S,s-t,l-r),__(v,m,S,f-t,h-r),__(_,T,C,t-s,r-l),__(_,T,C,i-s,a-l));return Math.sqrt(D)};function __(e,t,r,i,a){var s=i*e+a*t;if(s<0)return i*i+a*a;if(s>r){var l=i-e,f=a-t;return l*l+f*f}else{var h=i*t-a*e;return h*h/r}}var x_,dw,k9;nd.getTextLocation=function(t,r,i,a){if((t!==dw||a!==k9)&&(x_={},dw=t,k9=a),x_[i])return x_[i];var s=t.getPointAtLength(vw(i-a/2,r)),l=t.getPointAtLength(vw(i+a/2,r)),f=Math.atan((l.y-s.y)/(l.x-s.x)),h=t.getPointAtLength(vw(i,r)),v=(h.x*4+s.x+l.x)/6,m=(h.y*4+s.y+l.y)/6,_={x:v,y:m,theta:f};return x_[i]=_,_};nd.clearLocationCache=function(){dw=null};nd.getVisibleSegment=function(t,r,i){var a=r.left,s=r.right,l=r.top,f=r.bottom,h=0,v=t.getTotalLength(),m=v,_,T;function S(D){var E=t.getPointAtLength(D);D===0?_=E:D===v&&(T=E);var I=E.xs?E.x-s:0,B=E.yf?E.y-f:0;return Math.sqrt(I*I+B*B)}for(var C=S(h);C;){if(h+=C+i,h>m)return;C=S(h)}for(C=S(m);C;){if(m-=C+i,h>m)return;C=S(m)}return{min:h,max:m,len:m-h,total:v,isClosed:h===0&&m===v&&Math.abs(_.x-T.x)<.1&&Math.abs(_.y-T.y)<.1}};nd.findPointOnPath=function(t,r,i,a){a=a||{};for(var s=a.pathLength||t.getTotalLength(),l=a.tolerance||.001,f=a.iterationLimit||30,h=t.getPointAtLength(0)[i]>t.getPointAtLength(s)[i]?-1:1,v=0,m=0,_=s,T,S,C;v0?_=T:m=T,v++}return S}});var b_=pe(Ry=>{"use strict";var mc={};Ry.throttle=function(t,r,i){var a=mc[t],s=Date.now();if(!a){for(var l in mc)mc[l].tsa.ts+r){f();return}a.timer=setTimeout(function(){f(),a.timer=null},r)};Ry.done=function(e){var t=mc[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var i=t.onDone;t.onDone=function(){i&&i(),r(),t.onDone=null}})};Ry.clear=function(e){if(e)L9(mc[e]),delete mc[e];else for(var t in mc)Ry.clear(t)};function L9(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var P9=pe((ege,D9)=>{"use strict";D9.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var z9=pe((tge,w_)=>{"use strict";w_.exports=pw;w_.exports.isMobile=pw;w_.exports.default=pw;var CK=/(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,EK=/CrOS/,LK=/android|ipad|playbook|silk/i;function pw(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=CK.test(t)&&!EK.test(t)||!!e.tablet&&LK.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var R9=pe((rge,I9)=>{"use strict";var DK=Pa(),PK=z9();I9.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=zK(),typeof r!="string")return!0;var i=PK({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!i)for(var a=r.split(" "),s=1;s-1;f--){var h=a[f];if(h.substr(0,8)==="Version/"){var v=h.substr(8).split(".")[0];if(DK(v)&&(v=+v),v>=13)return!0}}}return i};function zK(){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 q9=pe((age,F9)=>{"use strict";var IK=ja();F9.exports=function(t,r,i){var a=t.selectAll("g."+i.replace(/\s/g,".")).data(r,function(l){return l[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",i),a.order();var s=t.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(l){l[0][s]=IK.select(this)}),a}});var B9=pe((ige,N9)=>{"use strict";var RK=la();N9.exports=function(t,r){for(var i=t._context.locale,a=0;a<2;a++){for(var s=t._context.locales,l=0;l<2;l++){var f=(s[i]||{}).dictionary;if(f){var h=f[r];if(h)return h}s=RK.localeRegistry}var v=i.split("-")[0];if(v===i)break;i=v}return r}});var U9=pe((nge,O9)=>{"use strict";O9.exports=function(t){for(var r={},i=[],a=0,s=0;s{"use strict";V9.exports=function(t){for(var r=NK(t)?qK:FK,i=[],a=0;a{"use strict";G9.exports=function(t,r){if(!r)return t;var i=1/Math.abs(r),a=i>1?(i*t+i*r)/i:t+r,s=String(a).length;if(s>16){var l=String(r).length,f=String(t).length;if(s>=f+l){var h=parseFloat(a).toPrecision(12);h.indexOf("e+")===-1&&(a=+h)}}return a}});var W9=pe((lge,Y9)=>{"use strict";var BK=Pa(),OK=Hi().BADNUM,UK=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Y9.exports=function(t){return typeof t=="string"&&(t=t.replace(UK,"")),BK(t)?Number(t):OK}});var Bt=pe((uge,ok)=>{"use strict";var Fy=ja(),VK=s0().utcFormat,HK=N3().format,$9=Pa(),ek=Hi(),tk=ek.FP_SAFE,GK=-tk,X9=ek.BADNUM,tt=ok.exports={};tt.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:t==="0.f"?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var j9={};tt.warnBadFormat=function(e){var t=String(e);j9[t]||(j9[t]=1,tt.warn('encountered bad format: "'+t+'"'))};tt.noFormat=function(e){return String(e)};tt.numberFormat=function(e){var t;try{t=HK(tt.adjustFormat(e))}catch(r){return tt.warnBadFormat(e),tt.noFormat}return t};tt.nestedProperty=wy();tt.keyedContainer=B7();tt.relativeAttr=U7();tt.isPlainObject=cc();tt.toLogRange=J1();tt.relinkPrivateKeys=Z7();var Eh=al();tt.isArrayBuffer=Eh.isArrayBuffer;tt.isTypedArray=Eh.isTypedArray;tt.isArrayOrTypedArray=Eh.isArrayOrTypedArray;tt.isArray1D=Eh.isArray1D;tt.ensureArray=Eh.ensureArray;tt.concat=Eh.concat;tt.maxRowLength=Eh.maxRowLength;tt.minRowLength=Eh.minRowLength;var rk=u0();tt.mod=rk.mod;tt.modHalf=rk.modHalf;var Lh=f8();tt.valObjectMeta=Lh.valObjectMeta;tt.coerce=Lh.coerce;tt.coerce2=Lh.coerce2;tt.coerceFont=Lh.coerceFont;tt.coercePattern=Lh.coercePattern;tt.coerceHoverinfo=Lh.coerceHoverinfo;tt.coerceSelectionMarkerOpacity=Lh.coerceSelectionMarkerOpacity;tt.validate=Lh.validate;var nl=y9();tt.dateTime2ms=nl.dateTime2ms;tt.isDateTime=nl.isDateTime;tt.ms2DateTime=nl.ms2DateTime;tt.ms2DateTimeLocal=nl.ms2DateTimeLocal;tt.cleanDate=nl.cleanDate;tt.isJSDate=nl.isJSDate;tt.formatDate=nl.formatDate;tt.incrementMonth=nl.incrementMonth;tt.dateTick0=nl.dateTick0;tt.dfltRange=nl.dfltRange;tt.findExactDates=nl.findExactDates;tt.MIN_MS=nl.MIN_MS;tt.MAX_MS=nl.MAX_MS;var od=uw();tt.findBin=od.findBin;tt.sorterAsc=od.sorterAsc;tt.sorterDes=od.sorterDes;tt.distinctVals=od.distinctVals;tt.roundUp=od.roundUp;tt.sort=od.sort;tt.findIndexOfMin=od.findIndexOfMin;tt.sortObjectKeys=g_();var yc=x9();tt.aggNums=yc.aggNums;tt.len=yc.len;tt.mean=yc.mean;tt.geometricMean=yc.geometricMean;tt.median=yc.median;tt.midRange=yc.midRange;tt.variance=yc.variance;tt.stdev=yc.stdev;tt.interp=yc.interp;var Pu=o_();tt.init2dArray=Pu.init2dArray;tt.transposeRagged=Pu.transposeRagged;tt.dot=Pu.dot;tt.translationMatrix=Pu.translationMatrix;tt.rotationMatrix=Pu.rotationMatrix;tt.rotationXYMatrix=Pu.rotationXYMatrix;tt.apply3DTransform=Pu.apply3DTransform;tt.apply2DTransform=Pu.apply2DTransform;tt.apply2DTransform2=Pu.apply2DTransform2;tt.convertCssMatrix=Pu.convertCssMatrix;tt.inverseTransformMatrix=Pu.inverseTransformMatrix;var Sf=M9();tt.deg2rad=Sf.deg2rad;tt.rad2deg=Sf.rad2deg;tt.angleDelta=Sf.angleDelta;tt.angleDist=Sf.angleDist;tt.isFullCircle=Sf.isFullCircle;tt.isAngleInsideSector=Sf.isAngleInsideSector;tt.isPtInsideSector=Sf.isPtInsideSector;tt.pathArc=Sf.pathArc;tt.pathSector=Sf.pathSector;tt.pathAnnulus=Sf.pathAnnulus;var x0=S9();tt.isLeftAnchor=x0.isLeftAnchor;tt.isCenterAnchor=x0.isCenterAnchor;tt.isRightAnchor=x0.isRightAnchor;tt.isTopAnchor=x0.isTopAnchor;tt.isMiddleAnchor=x0.isMiddleAnchor;tt.isBottomAnchor=x0.isBottomAnchor;var b0=E9();tt.segmentsIntersect=b0.segmentsIntersect;tt.segmentDistance=b0.segmentDistance;tt.getTextLocation=b0.getTextLocation;tt.clearLocationCache=b0.clearLocationCache;tt.getVisibleSegment=b0.getVisibleSegment;tt.findPointOnPath=b0.findPointOnPath;var M_=hn();tt.extendFlat=M_.extendFlat;tt.extendDeep=M_.extendDeep;tt.extendDeepAll=M_.extendDeepAll;tt.extendDeepNoArrays=M_.extendDeepNoArrays;var mw=Th();tt.log=mw.log;tt.warn=mw.warn;tt.error=mw.error;var ZK=c0();tt.counterRegex=ZK.counter;var yw=b_();tt.throttle=yw.throttle;tt.throttleDone=yw.done;tt.clearThrottle=yw.clear;var zu=Ey();tt.getGraphDiv=zu.getGraphDiv;tt.isPlotDiv=zu.isPlotDiv;tt.removeElement=zu.removeElement;tt.addStyleRule=zu.addStyleRule;tt.addRelatedStyleRule=zu.addRelatedStyleRule;tt.deleteRelatedStyleRule=zu.deleteRelatedStyleRule;tt.setStyleOnHover=zu.setStyleOnHover;tt.getFullTransformMatrix=zu.getFullTransformMatrix;tt.getElementTransformMatrix=zu.getElementTransformMatrix;tt.getElementAndAncestors=zu.getElementAndAncestors;tt.equalDomRects=zu.equalDomRects;tt.clearResponsive=P9();tt.preserveDrawingBuffer=R9();tt.makeTraceGroups=q9();tt._=B9();tt.notifier=j3();tt.filterUnique=U9();tt.filterVisible=H9();tt.pushUnique=Q3();tt.increment=Z9();tt.cleanNumber=W9();tt.ensureNumber=function(t){return $9(t)?(t=Number(t),t>tk||t=t?!1:$9(e)&&e>=0&&e%1===0};tt.noop=n_();tt.identity=y_();tt.repeat=function(e,t){for(var r=new Array(t),i=0;ir?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};tt.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};tt.simpleMap=function(e,t,r,i,a){for(var s=e.length,l=new Array(s),f=0;f=Math.pow(2,r)?a>10?(tt.warn("randstr failed uniqueness"),l):e(t,r,i,(a||0)+1):l};tt.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(i){i[t]=e,r[i.name]=i,r.optionList.push(i)},r["_"+t]=e,r};tt.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,i=2*r,a=2*t-1,s=new Array(a),l=new Array(r),f,h,v,m;for(f=0;f=i&&(v-=i*Math.floor(v/i)),v<0?v=-1-v:v>=r&&(v=i-1-v),m+=e[v]*s[h];l[f]=m}return l};tt.syncOrAsync=function(e,t,r){var i,a;function s(){return tt.syncOrAsync(e,t,r)}for(;e.length;)if(a=e.splice(0,1)[0],i=a(t),i&&i.then)return i.then(s);return r&&r(t)};tt.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};tt.noneOrAll=function(e,t,r){if(e){var i=!1,a=!0,s,l;for(s=0;s0?a:0})};tt.fillArray=function(e,t,r,i){if(i=i||tt.identity,tt.isArrayOrTypedArray(e))for(var a=0;a1?a+l[1]:"";if(s&&(l.length>1||f.length>4||r))for(;i.test(f);)f=f.replace(i,"$1"+s+"$2");return f+h};tt.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var nk=/^\w*$/;tt.templateString=function(e,t){var r={};return e.replace(tt.TEMPLATE_STRING_REGEX,function(i,a){var s;return nk.test(a)?s=t[a]:(r[a]=r[a]||tt.nestedProperty(t,a).get,s=r[a](!0)),s!==void 0?s:""})};var KK={max:10,count:0,name:"hovertemplate"};tt.hovertemplateString=function(){return gw.apply(KK,arguments)};var QK={max:10,count:0,name:"texttemplate"};tt.texttemplateString=function(){return gw.apply(QK,arguments)};var $K=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function eQ(e){var t=e.match($K);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var tQ={max:10,count:0,name:"texttemplate",parseMultDiv:!0};tt.texttemplateStringForShapes=function(){return gw.apply(tQ,arguments)};var J9=/^[:|\|]/;function gw(e,t,r){var i=this,a=arguments;return t||(t={}),e.replace(tt.TEMPLATE_STRING_REGEX,function(s,l,f){var h=l==="xother"||l==="yother",v=l==="_xother"||l==="_yother",m=l==="_xother_"||l==="_yother_",_=l==="xother_"||l==="yother_",T=h||v||_||m,S=l;(v||m)&&(S=S.substring(1)),(_||m)&&(S=S.substring(0,S.length-1));var C=null,D=null;if(i.parseMultDiv){var E=eQ(S);S=E.key,C=E.op,D=E.number}var I;if(T){if(I=t[S],I===void 0)return""}else{var B,q;for(q=3;q=A_&&l<=K9,v=f>=A_&&f<=K9;if(h&&(i=10*i+l-A_),v&&(a=10*a+f-A_),!h||!v){if(i!==a)return i-a;if(l!==f)return l-f}}return a-i};var _0=2e9;tt.seedPseudoRandom=function(){_0=2e9};tt.pseudoRandom=function(){var e=_0;return _0=(69069*_0+1)%4294967296,Math.abs(_0-e)<429496729?tt.pseudoRandom():_0/4294967296};tt.fillText=function(e,t,r){var i=Array.isArray(r)?function(l){r.push(l)}:function(l){r.text=l},a=tt.extractOption(e,t,"htx","hovertext");if(tt.isValidTextValue(a))return i(a);var s=tt.extractOption(e,t,"tx","text");if(tt.isValidTextValue(s))return i(s)};tt.isValidTextValue=function(e){return e||e===0};tt.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",i=0;i1&&(v=1):v=0,tt.strTranslate(a-v*(r+l),s-v*(i+f))+tt.strScale(v)+(h?"rotate("+h+(t?"":" "+r+" "+i)+")":"")};tt.setTransormAndDisplay=function(e,t){e.attr("transform",tt.getTextTransform(t)),e.style("display",t.scale?null:"none")};tt.ensureUniformFontSize=function(e,t){var r=tt.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};tt.join2=function(e,t,r){var i=e.length;return i>1?e.slice(0,-1).join(t)+r+e[i-1]:e.join(t)};tt.bigFont=function(e){return Math.round(1.2*e)};var Q9=tt.getFirefoxVersion(),rQ=Q9!==null&&Q9<86;tt.getPositionFromD3Event=function(){return rQ?[Fy.event.layerX,Fy.event.layerY]:[Fy.event.offsetX,Fy.event.offsetY]}});var uk=pe(()=>{"use strict";var aQ=Bt(),sk={"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(_w in sk)lk=_w.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),aQ.addStyleRule(lk,sk[_w]);var lk,_w});var xw=pe((hge,fk)=>{fk.exports=!0});var ww=pe((vge,ck)=>{"use strict";var iQ=xw(),bw;typeof window.matchMedia=="function"?bw=!window.matchMedia("(hover: none)").matches:bw=iQ;ck.exports=bw});var C_=pe((dge,Tw)=>{"use strict";var w0=typeof Reflect=="object"?Reflect:null,hk=w0&&typeof w0.apply=="function"?w0.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)},S_;w0&&typeof w0.ownKeys=="function"?S_=w0.ownKeys:Object.getOwnPropertySymbols?S_=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:S_=function(t){return Object.getOwnPropertyNames(t)};function nQ(e){console&&console.warn&&console.warn(e)}var dk=Number.isNaN||function(t){return t!==t};function Gi(){Gi.init.call(this)}Tw.exports=Gi;Tw.exports.once=uQ;Gi.EventEmitter=Gi;Gi.prototype._events=void 0;Gi.prototype._eventsCount=0;Gi.prototype._maxListeners=void 0;var vk=10;function k_(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Gi,"defaultMaxListeners",{enumerable:!0,get:function(){return vk},set:function(e){if(typeof e!="number"||e<0||dk(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");vk=e}});Gi.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};Gi.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||dk(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function pk(e){return e._maxListeners===void 0?Gi.defaultMaxListeners:e._maxListeners}Gi.prototype.getMaxListeners=function(){return pk(this)};Gi.prototype.emit=function(t){for(var r=[],i=1;i0&&(l=r[0]),l instanceof Error)throw l;var f=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw f.context=l,f}var h=s[t];if(h===void 0)return!1;if(typeof h=="function")hk(h,this,r);else for(var v=h.length,m=xk(h,v),i=0;i0&&l.length>a&&!l.warned){l.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=l.length,nQ(f)}return e}Gi.prototype.addListener=function(t,r){return mk(this,t,r,!1)};Gi.prototype.on=Gi.prototype.addListener;Gi.prototype.prependListener=function(t,r){return mk(this,t,r,!0)};function oQ(){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 yk(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=oQ.bind(i);return a.listener=r,i.wrapFn=a,a}Gi.prototype.once=function(t,r){return k_(r),this.on(t,yk(this,t,r)),this};Gi.prototype.prependOnceListener=function(t,r){return k_(r),this.prependListener(t,yk(this,t,r)),this};Gi.prototype.removeListener=function(t,r){var i,a,s,l,f;if(k_(r),a=this._events,a===void 0)return this;if(i=a[t],i===void 0)return this;if(i===r||i.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete a[t],a.removeListener&&this.emit("removeListener",t,i.listener||r));else if(typeof i!="function"){for(s=-1,l=i.length-1;l>=0;l--)if(i[l]===r||i[l].listener===r){f=i[l].listener,s=l;break}if(s<0)return this;s===0?i.shift():sQ(i,s),i.length===1&&(a[t]=i[0]),a.removeListener!==void 0&&this.emit("removeListener",t,f||r)}return this};Gi.prototype.off=Gi.prototype.removeListener;Gi.prototype.removeAllListeners=function(t){var r,i,a;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[t]),this;if(arguments.length===0){var s=Object.keys(i),l;for(a=0;a=0;a--)this.removeListener(t,r[a]);return this};function gk(e,t,r){var i=e._events;if(i===void 0)return[];var a=i[t];return a===void 0?[]:typeof a=="function"?r?[a.listener||a]:[a]:r?lQ(a):xk(a,a.length)}Gi.prototype.listeners=function(t){return gk(this,t,!0)};Gi.prototype.rawListeners=function(t){return gk(this,t,!1)};Gi.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):_k.call(e,t)};Gi.prototype.listenerCount=_k;function _k(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Gi.prototype.eventNames=function(){return this._eventsCount>0?S_(this._events):[]};function xk(e,t){for(var r=new Array(t),i=0;i{"use strict";var Aw=C_().EventEmitter,cQ={init:function(e){if(e._ev instanceof Aw)return e;var t=new Aw,r=new Aw;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(i,a){t.emit(i,a),r.emit(i,a)},e},triggerHandler:function(e,t,r){var i,a=e._ev;if(!a)return;var s=a._events[t];if(!s)return;function l(h){if(h.listener){if(a.removeListener(t,h.listener),!h.fired)return h.fired=!0,h.listener.apply(a,[r])}else return h.apply(a,[r])}s=Array.isArray(s)?s:[s];var f;for(f=0;f{"use strict";var Tk=Bt(),hQ=rd().dfltConfig;function vQ(e,t){for(var r=[],i,a=0;ahQ.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};gc.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};gc.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};gc.undo=function(t){var r,i;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i{"use strict";Sk.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var M0=pe(Yn=>{"use strict";var Zl=la(),Ny=Bt(),L_=ms(),Sw=d0(),dQ=Mw(),pQ=Ly(),mQ=rd().configAttributes,kk=il(),Iu=Ny.extendDeepAll,T0=Ny.isPlainObject,yQ=Ny.isArrayOrTypedArray,D_=Ny.nestedProperty,gQ=Ny.valObjectMeta,kw="_isSubplotObj",P_="_isLinkedToArray",_Q="_arrayAttrRegexps",Ek="_deprecated",Cw=[kw,P_,_Q,Ek];Yn.IS_SUBPLOT_OBJ=kw;Yn.IS_LINKED_TO_ARRAY=P_;Yn.DEPRECATED=Ek;Yn.UNDERSCORE_ATTRS=Cw;Yn.get=function(){var e={};return Zl.allTypes.forEach(function(t){e[t]=bQ(t)}),{defs:{valObjects:gQ,metaKeys:Cw.concat(["description","role","editType","impliedEdits"]),editType:{traces:kk.traces,layout:kk.layout},impliedEdits:{}},traces:e,layout:wQ(),frames:TQ(),animation:A0(pQ),config:A0(mQ)}};Yn.crawl=function(e,t,r,i){var a=r||0;i=i||"",Object.keys(e).forEach(function(s){var l=e[s];if(Cw.indexOf(s)===-1){var f=(i?i+".":"")+s;t(l,s,e,a,f),!Yn.isValObject(l)&&T0(l)&&s!=="impliedEdits"&&Yn.crawl(l,t,a+1,f)}})};Yn.isValObject=function(e){return e&&e.valType!==void 0};Yn.findArrayAttributes=function(e){var t=[],r=[],i=[],a,s;function l(h,v,m,_){r=r.slice(0,_).concat([v]),i=i.slice(0,_).concat([h&&h._isLinkedToArray]);var T=h&&(h.valType==="data_array"||h.arrayOk===!0)&&!(r[_-1]==="colorbar"&&(v==="ticktext"||v==="tickvals"));T&&f(a,0,"")}function f(h,v,m){var _=h[r[v]],T=m+r[v];if(v===r.length-1)yQ(_)&&t.push(s+T);else if(i[v]){if(Array.isArray(_))for(var S=0;S<_.length;S++)T0(_[S])&&f(_[S],v+1,T+"["+S+"].")}else T0(_)&&f(_,v+1,T+".")}return a=e,s="",Yn.crawl(L_,l),e._module&&e._module.attributes&&Yn.crawl(e._module.attributes,l),t};Yn.getTraceValObject=function(e,t){var r=t[0],i=1,a,s,l=e._module;if(l||(l=(Zl.modules[e.type||L_.type.dflt]||{})._module),!l)return!1;if(a=l.attributes,s=a&&a[r],!s){var f=l.basePlotModule;f&&f.attributes&&(s=f.attributes[r])}return s||(s=L_[r]),Lk(s,t,i)};Yn.getLayoutValObject=function(e,t){var r=xQ(e,t[0]);return Lk(r,t,1)};function xQ(e,t){var r,i,a,s,l=e._basePlotModules;if(l){var f;for(r=0;r=s.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var l=t[r];if(!E_(l))return!1;e=s[a][l]}else e=s[a]}else e=s}}return e}function E_(e){return e===Math.round(e)&&e>=0}function bQ(e){var t,r;t=Zl.modules[e]._module,r=t.basePlotModule;var i={};i.type=null;var a=Iu({},L_),s=Iu({},t.attributes);Yn.crawl(s,function(h,v,m,_,T){D_(a,T).set(void 0),h===void 0&&D_(s,T).set(void 0)}),Iu(i,a),Zl.traceIs(e,"noOpacity")&&delete i.opacity,Zl.traceIs(e,"showLegend")||(delete i.showlegend,delete i.legendgroup),Zl.traceIs(e,"noHover")&&(delete i.hoverinfo,delete i.hoverlabel),t.selectPoints||delete i.selectedpoints,Iu(i,s),r.attributes&&Iu(i,r.attributes),i.type=e;var l={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:A0(i)};if(t.layoutAttributes){var f={};Iu(f,t.layoutAttributes),l.layoutAttributes=A0(f)}return t.animatable||Yn.crawl(l,function(h){Yn.isValObject(h)&&"anim"in h&&delete h.anim}),l}function wQ(){var e={},t,r;Iu(e,Sw);for(t in Zl.subplotsRegistry)if(r=Zl.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var i=0;i{"use strict";var S0=Bt(),CQ=ms(),Dh="templateitemname",Ew={name:{valType:"string",editType:"none"}};Ew[Dh]={valType:"string",editType:"calc"};sd.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=Ew.name,t[Dh]=Ew[Dh],t};sd.traceTemplater=function(e){var t={},r,i;for(r in e)i=e[r],Array.isArray(i)&&i.length&&(t[r]=0);function a(s){r=S0.coerce(s,{},CQ,"type");var l={type:r,_template:null};if(r in t){i=e[r];var f=t[r]%i.length;t[r]++,l._template=i[f]}return l}return{newTrace:a}};sd.newContainer=function(e,t,r){var i=e._template,a=i&&(i[t]||r&&i[r]);S0.isPlainObject(a)||(a=null);var s=e[t]={_template:a};return s};sd.arrayTemplater=function(e,t,r){var i=e._template,a=i&&i[Pk(t)],s=i&&i[t];(!Array.isArray(s)||!s.length)&&(s=[]);var l={};function f(v){var m={name:v.name,_input:v},_=m[Dh]=v[Dh];if(!Dk(_))return m._template=a,m;for(var T=0;T=i&&(r._input||{})._templateitemname;s&&(a=i);var l=t+"["+a+"]",f;function h(){f={},s&&(f[l]={},f[l][Dh]=s)}h();function v(S,C){f[S]=C}function m(S,C){s?S0.nestedProperty(f[l],S).set(C):f[l+"."+S]=C}function _(){var S=f;return h(),S}function T(S,C){S&&m(S,C);var D=_();for(var E in D)S0.nestedProperty(e,E).set(D[E])}return{modifyBase:v,modifyItem:m,getUpdateObj:_,applyUpdate:T}}});var Ao=pe((xge,zk)=>{"use strict";var By=c0().counter;zk.exports={idRegex:{x:By("x","( domain)?"),y:By("y","( domain)?")},attrRegex:By("[xy]axis"),xAxisMatch:By("xaxis"),yAxisMatch:By("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 $n=pe(qs=>{"use strict";var EQ=la(),Lw=Ao();qs.id2name=function(t){if(!(typeof t!="string"||!t.match(Lw.AX_ID_PATTERN))){var r=t.split(" ")[0].substr(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};qs.name2id=function(t){if(t.match(Lw.AX_NAME_PATTERN)){var r=t.substr(5);return r==="1"&&(r=""),t.charAt(0)+r}};qs.cleanId=function(t,r,i){var a=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(Lw.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(a&&!i)){var s=t.split(" ")[0].substr(1).replace(/^0+/,"");return s==="1"&&(s=""),t.charAt(0)+s+(a&&i?" domain":"")}};qs.list=function(e,t,r){var i=e._fullLayout;if(!i)return[];var a=qs.listIds(e,t),s=new Array(a.length),l;for(l=0;li?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)};qs.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Ik(e,t){if(t&&t.length){for(var r=0;r{"use strict";function LQ(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function DQ(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Rk.exports={clearOutlineControllers:LQ,clearOutline:DQ}});var z_=pe((Tge,Fk)=>{"use strict";Fk.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var F_=pe(R_=>{"use strict";var I_=la(),Age=Ao().SUBPLOT_PATTERN;R_.getSubplotCalcData=function(e,t,r){var i=I_.subplotsRegistry[t];if(!i)return[];for(var a=i.attr,s=[],l=0;l{"use strict";var PQ=la(),k0=Bt();ld.manageCommandObserver=function(e,t,r,i){var a={},s=!0;t&&t._commandObserver&&(a=t._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var l=ld.hasSimpleAPICommandBindings(e,r,a.lookupTable);if(t&&t._commandObserver){if(l)return a;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,a}if(l){qk(e,l,a.cache),a.check=function(){if(s){var m=qk(e,l,a.cache);return m.changed&&i&&a.lookupTable[m.value]!==void 0&&(a.disable(),Promise.resolve(i({value:m.value,type:l.type,prop:l.prop,traces:l.traces,index:a.lookupTable[m.value]})).then(a.enable,a.enable)),m.changed}};for(var f=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],h=0;h0?".":"")+a;k0.isPlainObject(s)?Dw(s,t,l,i+1):t(l,a,s)}})}});var eo=pe((kge,eC)=>{"use strict";var Wk=ja(),IQ=s0().timeFormatLocale,RQ=N3().formatLocale,Oy=Pa(),FQ=B3(),ai=la(),Xk=M0(),qQ=Pi(),Dr=Bt(),jk=Ua(),Uk=Hi().BADNUM,Ns=$n(),NQ=Ph().clearOutline,BQ=z_(),Pw=Ly(),OQ=Mw(),UQ=F_().getModuleCalcData,Vk=Dr.relinkPrivateKeys,ud=Dr._,mr=eC.exports={};Dr.extendFlat(mr,ai);mr.attributes=ms();mr.attributes.type.values=mr.allTypes;mr.fontAttrs=qo();mr.layoutAttributes=d0();var N_=Ok();mr.executeAPICommand=N_.executeAPICommand;mr.computeAPICommandBindings=N_.computeAPICommandBindings;mr.manageCommandObserver=N_.manageCommandObserver;mr.hasSimpleAPICommandBindings=N_.hasSimpleAPICommandBindings;mr.redrawText=function(e){return e=Dr.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(ai.getComponentMethod("annotations","draw")(e),ai.getComponentMethod("legend","draw")(e),ai.getComponentMethod("colorbar","draw")(e),t(mr.previousPromises(e)))},300)})};mr.resize=function(e){e=Dr.getGraphDiv(e);var t,r=new Promise(function(i,a){(!e||Dr.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=i,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Dr.isHidden(e)){i(e);return}delete e.layout.width,delete e.layout.height;var s=e.changed;e.autoplay=!0,ai.call("relayout",e,{autosize:!0}).then(function(){e.changed=s,e._resolveResize===i&&(delete e._resolveResize,i(e))})},100)});return t&&t(r),r};mr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};mr.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=Dr.ensureSingle(t._paper,"text","js-plot-link-container",function(h){h.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:jk.defaultLine,"pointer-events":"all"}).each(function(){var v=Wk.select(this);v.append("tspan").classed("js-link-to-tool",!0),v.append("tspan").classed("js-link-spacer",!0),v.append("tspan").classed("js-sourcelinks",!0)})}),i=r.node(),a={y:t._paper.attr("height")-9};document.body.contains(i)&&i.getComputedTextLength()>=t.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=t._paper.attr("width")-7),r.attr(a);var s=r.select(".js-link-to-tool"),l=r.select(".js-link-spacer"),f=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&VQ(e,s),l.text(s.text()&&f.text()?" - ":"")}};function VQ(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)r.on("click",function(){mr.sendDataToCloud(e)});else{var i=window.location.pathname.split("/"),a=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+i[2].split(".")[0]+"/"+i[1]+a})}}mr.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=Wk.select(e).append("div").attr("id","hiddenform").style("display","none"),i=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"}),a=i.append("input").attr({type:"text",name:"data"});return a.node().value=mr.graphJson(e,!1,"keepdata"),i.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var HQ=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],GQ=["year","month","dayMonth","dayMonthYear"];mr.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,i=e._fullLayout||{};if(i._skipDefaults){delete i._skipDefaults;return}var a=e._fullLayout={},s=e.layout||{},l=e._fullData||[],f=e._fullData=[],h=e.data||[],v=e.calcdata||[],m=e._context||{},_;e._transitionData||mr.createTransitionData(e),a._dfltTitle={plot:ud(e,"Click to enter Plot title"),subtitle:ud(e,"Click to enter Plot subtitle"),x:ud(e,"Click to enter X axis title"),y:ud(e,"Click to enter Y axis title"),colorbar:ud(e,"Click to enter Colorscale title"),annotation:ud(e,"new text")},a._traceWord=ud(e,"trace");var T=Hk(e,HQ);if(a._mapboxAccessToken=m.mapboxAccessToken,i._initialAutoSizeIsDone){var S=i.width,C=i.height;mr.supplyLayoutGlobalDefaults(s,a,T),s.width||(a.width=S),s.height||(a.height=C),mr.sanitizeMargins(a)}else{mr.supplyLayoutGlobalDefaults(s,a,T);var D=!s.width||!s.height,E=a.autosize,I=m.autosizable,B=D&&(E||I);B?mr.plotAutoSize(e,s,a):D&&mr.sanitizeMargins(a),!E&&D&&(s.width=a.width,s.height=a.height)}a._d3locale=WQ(T,a.separators),a._extraFormat=Hk(e,GQ),a._initialAutoSizeIsDone=!0,a._dataLength=h.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var q=a._subplots=YQ(),z=a._splomAxes={x:{},y:{}},O=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=ZQ(l,h),mr.supplyDataDefaults(h,f,s,a);var H=Object.keys(z.x),V=Object.keys(z.y);if(H.length>1&&V.length>1){for(ai.getComponentMethod("grid","sizeDefaults")(s,a),_=0;_15&&V.length>15&&a.shapes.length===0&&a.images.length===0,mr.linkSubplots(f,a,l,i),mr.cleanPlot(f,a,l,i);var oe=!!(i._has&&i._has("cartesian")),fe=!!(a._has&&a._has("cartesian")),de=oe,Me=fe;de&&!Me?i._bgLayer.remove():Me&&!de&&(a._shouldCreateBgLayer=!0),i._zoomlayer&&!e._dragging&&NQ({_fullLayout:i}),XQ(f,a),Vk(a,i),ai.getComponentMethod("colorscale","crossTraceDefaults")(f,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var Se=a._tracePreGUI,Te={},we;for(we in Se)Te[we]="old";for(_=0;_0){var m=1-2*s;l=Math.round(m*l),f=Math.round(m*f)}}var _=mr.layoutAttributes.width.min,T=mr.layoutAttributes.height.min;l<_&&(l=_),f1,C=!r.height&&Math.abs(i.height-f)>1;(C||S)&&(S&&(i.width=l),C&&(i.height=f)),t._initialAutoSize||(t._initialAutoSize={width:l,height:f}),mr.sanitizeMargins(i)};mr.supplyLayoutModuleDefaults=function(e,t,r,i){var a=ai.componentsRegistry,s=t._basePlotModules,l,f,h,v=ai.subplotsRegistry.cartesian;for(l in a)h=a[l],h.includeBasePlot&&h.includeBasePlot(e,t);s.length||s.push(v),t._has("cartesian")&&(ai.getComponentMethod("grid","contentDefaults")(e,t),v.finalizeSubplots(e,t));for(var m in t._subplots)t._subplots[m].sort(Dr.subplotSort);for(f=0;f1&&(r.l/=E,r.r/=E)}if(T){var I=(r.t+r.b)/T;I>1&&(r.t/=I,r.b/=I)}var B=r.xl!==void 0?r.xl:r.x,q=r.xr!==void 0?r.xr:r.x,z=r.yt!==void 0?r.yt:r.y,O=r.yb!==void 0?r.yb:r.y;S[t]={l:{val:B,size:r.l+D},r:{val:q,size:r.r+D},b:{val:O,size:r.b+D},t:{val:z,size:r.t+D}},C[t]=1}if(!i._replotting)return mr.doAutoMargin(e)}};function JQ(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Ns.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}mr.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,i=t.height;t._size||(t._size={}),Jk(t);var a=t._size,s=t.margin,l={t:0,b:0,l:0,r:0},f=Dr.extendFlat({},a),h=s.l,v=s.r,m=s.t,_=s.b,T=t._pushmargin,S=t._pushmarginIds,C=t.minreducedwidth,D=t.minreducedheight;if(s.autoexpand!==!1){for(var E in T)S[E]||delete T[E];var I=e._fullLayout._reservedMargin;for(var B in I)for(var q in I[B]){var z=I[B][q];l[q]=Math.max(l[q],z)}T.base={l:{val:0,size:h},r:{val:1,size:v},t:{val:1,size:m},b:{val:0,size:_}};for(var O in l){var H=0;for(var V in T)V!=="base"&&Oy(T[V][O].size)&&(H=T[V][O].size>H?T[V][O].size:H);var W=Math.max(0,s[O]-H);l[O]=Math.max(0,l[O]-W)}for(var J in T){var te=T[J].l||{},ne=T[J].b||{},oe=te.val,fe=te.size,de=ne.val,Me=ne.size,Se=r-l.r-l.l,Te=i-l.t-l.b;for(var we in T){if(Oy(fe)&&T[we].r){var Ae=T[we].r.val,Ce=T[we].r.size;if(Ae>oe){var Le=(fe*Ae+(Ce-Se)*oe)/(Ae-oe),Qe=(Ce*(1-oe)+(fe-Se)*(1-Ae))/(Ae-oe);Le+Qe>h+v&&(h=Le,v=Qe)}}if(Oy(Me)&&T[we].t){var st=T[we].t.val,at=T[we].t.size;if(st>de){var mt=(Me*st+(at-Te)*de)/(st-de),Ye=(at*(1-de)+(Me-Te)*(1-st))/(st-de);mt+Ye>_+m&&(_=mt,m=Ye)}}}}}var At=Dr.constrain(r-s.l-s.r,Kk,C),it=Dr.constrain(i-s.t-s.b,Qk,D),dt=Math.max(0,r-At),Mt=Math.max(0,i-it);if(dt){var ct=(h+v)/dt;ct>1&&(h/=ct,v/=ct)}if(Mt){var ve=(_+m)/Mt;ve>1&&(_/=ve,m/=ve)}if(a.l=Math.round(h)+l.l,a.r=Math.round(v)+l.r,a.t=Math.round(m)+l.t,a.b=Math.round(_)+l.b,a.p=Math.round(s.pad),a.w=Math.round(r)-a.l-a.r,a.h=Math.round(i)-a.t-a.b,!t._replotting&&(mr.didMarginChange(f,a)||JQ(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var Ie=3*(1+Object.keys(S).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};mr.graphJson=function(e,t,r,i,a,s){(a&&t&&!e._fullData||a&&!t&&!e._fullLayout)&&mr.supplyDefaults(e);var l=a?e._fullData:e.data,f=a?e._fullLayout:e.layout,h=(e._transitionData||{})._frames;function v(T,S){if(typeof T=="function")return S?"_function_":null;if(Dr.isPlainObject(T)){var C={},D;return Object.keys(T).sort().forEach(function(q){if(["_","["].indexOf(q.charAt(0))===-1){if(typeof T[q]=="function"){S&&(C[q]="_function");return}if(r==="keepdata"){if(q.substr(q.length-3)==="src")return}else if(r==="keepstream"){if(D=T[q+"src"],typeof D=="string"&&D.indexOf(":")>0&&!Dr.isPlainObject(T.stream))return}else if(r!=="keepall"&&(D=T[q+"src"],typeof D=="string"&&D.indexOf(":")>0))return;C[q]=v(T[q],S)}}),C}var E=Array.isArray(T),I=Dr.isTypedArray(T);if((E||I)&&T.dtype&&T.shape){var B=T.bdata;return v({dtype:T.dtype,shape:T.shape,bdata:Dr.isArrayBuffer(B)?FQ.encode(B):B},S)}return E?T.map(function(q){return v(q,S)}):I?Dr.simpleMap(T,Dr.identity):Dr.isJSDate(T)?Dr.ms2DateTimeLocal(+T):T}var m={data:(l||[]).map(function(T){var S=v(T);return t&&delete S.fit,S})};if(!t&&(m.layout=v(f),a)){var _=f._size;m.layout.computed={margin:{b:_.b,l:_.l,r:_.r,t:_.t}}}return h&&(m.frames=v(h)),s&&(m.config=v(e._context,!0)),i==="object"?m:JSON.stringify(m)};mr.modifyFrames=function(e,t){var r,i,a,s=e._transitionData._frames,l=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){i=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return ai.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var T=0,S=0;function C(){return T++,function(){S++,!i&&S===T&&f(_)}}r.runFn(C),setTimeout(C())})}function f(_){if(e._transitionData)return s(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return ai.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(_)}function h(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var v=[mr.previousPromises,h,r.prepareFn,mr.rehover,mr.reselect,l],m=Dr.syncOrAsync(v,e);return(!m||!m.then)&&(m=Promise.resolve()),m.then(function(){return e})}mr.doCalcdata=function(e,t){var r=Ns.list(e),i=e._fullData,a=e._fullLayout,s,l,f,h,v=new Array(i.length),m=(e.calcdata||[]).slice();for(e.calcdata=v,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},f=0;f=0;h--)if(O[h].enabled){s._indexToPoints=O[h]._indexToPoints;break}l&&l.calc&&(z=l.calc(e,s))}(!Array.isArray(z)||!z[0])&&(z=[{x:Uk,y:Uk}]),z[0].t||(z[0].t={}),z[0].trace=s,v[B]=z}}for(Zk(r,i,a),f=0;f{"use strict";fd.xmlns="http://www.w3.org/2000/xmlns/";fd.svg="http://www.w3.org/2000/svg";fd.xlink="http://www.w3.org/1999/xlink";fd.svgAttrs={xmlns:fd.svg,"xmlns:xlink":fd.xlink}});var ts=pe((Ege,tC)=>{"use strict";tC.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var co=pe(Yl=>{"use strict";var Fn=ja(),_c=Bt(),e$=_c.strTranslate,zw=zh(),t$=ts().LINE_SPACING,r$=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Yl.convertToTspans=function(e,t,r){var i=e.text(),a=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&i.match(r$),s=Fn.select(e.node().parentNode);if(s.empty())return;var l=e.attr("class")?e.attr("class").split(" ")[0]:"text";l+="-math",s.selectAll("svg."+l).remove(),s.selectAll("g."+l+"-group").remove(),e.style("display",null).attr({"data-unformatted":i,"data-math":"N"});function f(){s.empty()||(l=e.attr("class")+"-math",s.select("svg."+l).remove()),e.text("").style("white-space","pre");var h=p$(e.node(),i);h&&e.style("pointer-events","all"),Yl.positionText(e),r&&r.call(e)}return a?(t&&t._promises||[]).push(new Promise(function(h){e.style("display","none");var v=parseInt(e.node().style.fontSize,10),m={fontSize:v};o$(a[2],m,function(_,T,S){s.selectAll("svg."+l).remove(),s.selectAll("g."+l+"-group").remove();var C=_&&_.select("svg");if(!C||!C.node()){f(),h();return}var D=s.append("g").classed(l+"-group",!0).attr({"pointer-events":"none","data-unformatted":i,"data-math":"Y"});D.node().appendChild(C.node()),T&&T.node()&&C.node().insertBefore(T.node().cloneNode(!0),C.node().firstChild);var E=S.width,I=S.height;C.attr({class:l,height:I,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var B=e.node().style.fill||"black",q=C.select("g");q.attr({fill:B,stroke:B});var z=q.node().getBoundingClientRect(),O=z.width,H=z.height;(O>E||H>I)&&(C.style("overflow","hidden"),z=C.node().getBoundingClientRect(),O=z.width,H=z.height);var V=+e.attr("x"),W=+e.attr("y"),J=v||e.node().getBoundingClientRect().height,te=-J/4;if(l[0]==="y")D.attr({transform:"rotate("+[-90,V,W]+")"+e$(-O/2,te-H/2)});else if(l[0]==="l")W=te-H/2;else if(l[0]==="a"&&l.indexOf("atitle")!==0)V=0,W=te;else{var ne=e.attr("text-anchor");V=V-O*(ne==="middle"?.5:ne==="end"?1:0),W=W+te-H/2}C.attr({x:V,y:W}),r&&r.call(e,D),h(D)})})):f(),e};var a$=/(<|<|<)/g,i$=/(>|>|>)/g;function n$(e){return e.replace(a$,"\\lt ").replace(i$,"\\gt ")}var rC=[["$","$"],["\\(","\\)"]];function o$(e,t,r){var i=parseInt((MathJax.version||"").split(".")[0]);if(i!==2&&i!==3){_c.warn("No MathJax version:",MathJax.version);return}var a,s,l,f,h=function(){return s=_c.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:rC},displayAlign:"left"})},v=function(){s=_c.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=rC},m=function(){if(a=MathJax.Hub.config.menuSettings.renderer,a!=="SVG")return MathJax.Hub.setRenderer("SVG")},_=function(){a=MathJax.config.startup.output,a!=="svg"&&(MathJax.config.startup.output="svg")},T=function(){var B="math-output-"+_c.randstr({},64);f=Fn.select("body").append("div").attr({id:B}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(n$(e));var q=f.node();return i===2?MathJax.Hub.Typeset(q):MathJax.typeset([q])},S=function(){var B=f.select(i===2?".MathJax_SVG":".MathJax"),q=!B.empty()&&f.select("svg").node();if(!q)_c.log("There was an error in the tex syntax.",e),r();else{var z=q.getBoundingClientRect(),O;i===2?O=Fn.select("body").select("#MathJax_SVG_glyphs"):O=B.select("defs"),r(B,O,z)}f.remove()},C=function(){if(a!=="SVG")return MathJax.Hub.setRenderer(a)},D=function(){a!=="svg"&&(MathJax.config.startup.output=a)},E=function(){return l!==void 0&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(s)},I=function(){MathJax.config=s};i===2?MathJax.Hub.Queue(h,m,T,S,C,E):i===3&&(v(),_(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){T(),S(),D(),I()}))}var oC={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"},s$={sub:"0.3em",sup:"-0.6em"},l$={sub:"-0.21em",sup:"0.42em"},aC="\u200B",iC=["http:","https:","mailto:","",void 0,":"],sC=Yl.NEWLINES=/(\r\n?|\n)/g,Rw=/(<[^<>]*>)/,Fw=/<(\/?)([^ >]*)(\s+(.*))?>/i,u$=//i;Yl.BR_TAG_ALL=//gi;var lC=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,uC=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,fC=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,f$=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function cd(e,t){if(!e)return null;var r=e.match(t),i=r&&(r[3]||r[4]);return i&&B_(i)}var c$=/(^|;)\s*color:/;Yl.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,i=t.allowedTags!==void 0?t.allowedTags:["br"],a="...",s=a.length,l=e.split(Rw),f=[],h="",v=0,m=0;ms?f.push(_.substr(0,D-s)+a):f.push(_.substr(0,D));break}h=""}}return f.join("")};var h$={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},v$=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function B_(e){return e.replace(v$,function(t,r){var i;return r.charAt(0)==="#"?i=d$(r.charAt(1)==="x"?parseInt(r.substr(2),16):parseInt(r.substr(1),10)):i=h$[r],i||t})}Yl.convertEntities=B_;function d$(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function p$(e,t){t=t.replace(sC," ");var r=!1,i=[],a,s=-1;function l(){s++;var H=document.createElementNS(zw.svg,"tspan");Fn.select(H).attr({class:"line",dy:s*t$+"em"}),e.appendChild(H),a=H;var V=i;if(i=[{node:H}],V.length>1)for(var W=1;W.",t);return}var V=i.pop();H!==V.type&&_c.log("Start tag <"+V.type+"> doesnt match end tag <"+H+">. Pretending it did match.",t),a=i[i.length-1].node}var m=u$.test(t);m?l():(a=e,i=[{node:e}]);for(var _=t.split(Rw),T=0;T<_.length;T++){var S=_[T],C=S.match(Fw),D=C&&C[2].toLowerCase(),E=oC[D];if(D==="br")l();else if(E===void 0)h(a,B_(S));else if(C[1])v(D);else{var I=C[4],B={type:D},q=cd(I,lC);if(q?(q=q.replace(c$,"$1 fill:"),E&&(q+=";"+E)):E&&(q=E),q&&(B.style=q),D==="a"){r=!0;var z=cd(I,uC);if(z){var O=cC(z);O&&(B.href=O,B.target=cd(I,fC)||"_blank",B.popup=cd(I,f$))}}f(B)}}return r}function cC(e){var t=encodeURI(decodeURI(e)),r=document.createElement("a"),i=document.createElement("a");r.href=e,i.href=t;var a=r.protocol,s=i.protocol;return iC.indexOf(a)!==-1&&iC.indexOf(s)!==-1?t:""}Yl.sanitizeHTML=function(t){t=t.replace(sC," ");for(var r=document.createElement("p"),i=r,a=[],s=t.split(Rw),l=0;l{"use strict";var m$=ja(),U_=Tf(),Vy=Pa(),O_=Bt(),hC=Ua(),y$=ed().isValid;function g$(e,t,r){var i=t?O_.nestedProperty(e,t).get()||{}:e,a=i[r||"color"];a&&a._inputArray&&(a=a._inputArray);var s=!1;if(O_.isArrayOrTypedArray(a)){for(var l=0;l=0;i--,a++){var s=e[i];r[a]=[1-s[0],s[1]]}return r}function gC(e,t){t=t||{};for(var r=e.domain,i=e.range,a=i.length,s=new Array(a),l=0;l{"use strict";var xC=aw(),x$=xC.FORMAT_LINK,b$=xC.DATE_FORMAT_LINK;function w$(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?qw:bC)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function qw(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+x$+"."].join(" ")}function bC(e,t){return qw(e,t)+[" And for dates see: "+b$+".","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(" ")}wC.exports={axisHoverFormat:w$,descriptionOnlyNumbers:qw,descriptionWithDates:bC}});var Ru=pe((zge,BC)=>{"use strict";var TC=qo(),C0=Af(),NC=hc().dash,Ow=hn().extendFlat,AC=Pi().templatedArray,MC=Nw().descriptionWithDates,T$=Hi().ONEDAY,Cf=Ao(),A$=Cf.HOUR_PATTERN,M$=Cf.WEEKDAY_PATTERN,Bw={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},S$=Ow({},Bw,{values:Bw.values.slice().concat(["sync"])});function SC(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var kC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},CC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},EC={valType:"data_array",editType:"ticks"},LC={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function DC(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function PC(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var zC={valType:"color",dflt:C0.defaultLine,editType:"ticks"},IC={valType:"color",dflt:C0.lightLine,editType:"ticks"};function RC(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var FC=Ow({},NC,{editType:"ticks"}),qC={valType:"boolean",editType:"ticks"};BC.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:C0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:TC({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:[Cf.idRegex.x.toString(),Cf.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Cf.idRegex.x.toString(),Cf.idRegex.y.toString()],editType:"calc"},rangebreaks:AC("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:[M$,A$,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:T$},editType:"calc"}),tickmode:S$,nticks:SC(),tick0:kC,dtick:CC,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:EC,ticktext:{valType:"data_array",editType:"ticks"},ticks:LC,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:DC(),tickwidth:PC(),tickcolor:zC,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:Ow({},NC,{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:TC({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:MC("tick label")},tickformatstops:AC("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:MC("hover text")},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:C0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:qC,gridcolor:IC,gridwidth:RC(),griddash:FC,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:C0.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:C0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Cf.idRegex.x.toString(),Cf.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Cf.idRegex.x.toString(),Cf.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Bw,nticks:SC("minor"),tick0:kC,dtick:CC,tickvals:EC,ticks:LC,ticklen:DC("minor"),tickwidth:PC("minor"),tickcolor:zC,gridcolor:IC,gridwidth:RC("minor"),griddash:FC,showgrid:qC,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 V_=pe((Ige,VC)=>{"use strict";var Zi=Ru(),OC=qo(),UC=hn().extendFlat,k$=il().overrideAll;VC.exports=k$({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:Zi.linecolor,outlinewidth:Zi.linewidth,bordercolor:Zi.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Zi.minor.tickmode,nticks:Zi.nticks,tick0:Zi.tick0,dtick:Zi.dtick,tickvals:Zi.tickvals,ticktext:Zi.ticktext,ticks:UC({},Zi.ticks,{dflt:""}),ticklabeloverflow:UC({},Zi.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:Zi.ticklen,tickwidth:Zi.tickwidth,tickcolor:Zi.tickcolor,ticklabelstep:Zi.ticklabelstep,showticklabels:Zi.showticklabels,labelalias:Zi.labelalias,tickfont:OC({}),tickangle:Zi.tickangle,tickformat:Zi.tickformat,tickformatstops:Zi.tickformatstops,tickprefix:Zi.tickprefix,showtickprefix:Zi.showtickprefix,ticksuffix:Zi.ticksuffix,showticksuffix:Zi.showticksuffix,separatethousands:Zi.separatethousands,exponentformat:Zi.exponentformat,minexponent:Zi.minexponent,showexponent:Zi.showexponent,title:{text:{valType:"string"},font:OC({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var xc=pe((Fge,GC)=>{"use strict";var C$=V_(),E$=c0().counter,L$=g_(),HC=ed().scales,Rge=L$(HC);function H_(e){return"`"+e+"`"}GC.exports=function(t,r){t=t||"",r=r||{};var i=r.cLetter||"c",a="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,s="noScale"in r?r.noScale:t==="marker.line",l="showScaleDflt"in r?r.showScaleDflt:i==="z",f=typeof r.colorscaleDflt=="string"?HC[r.colorscaleDflt]:null,h=r.editTypeOverride||"",v=t?t+".":"",m,_;"colorAttr"in r?(m=r.colorAttr,_=r.colorAttr):(m={z:"z",c:"color"}[i],_="in "+H_(v+m));var T=a?" Has an effect only if "+_+" is set to a numerical array.":"",S=i+"auto",C=i+"min",D=i+"max",E=i+"mid",I=H_(v+S),B=H_(v+C),q=H_(v+D),z=B+" and "+q,O={};O[C]=O[D]=void 0;var H={};H[S]=!1;var V={};return m==="color"&&(V.color={valType:"color",arrayOk:!0,editType:h||"style"},r.anim&&(V.color.anim=!0)),V[S]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:O},V[C]={valType:"number",dflt:null,editType:h||"plot",impliedEdits:H},V[D]={valType:"number",dflt:null,editType:h||"plot",impliedEdits:H},V[E]={valType:"number",dflt:null,editType:"calc",impliedEdits:O},V.colorscale={valType:"colorscale",editType:"calc",dflt:f,impliedEdits:{autocolorscale:!1}},V.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},V.reversescale={valType:"boolean",dflt:!1,editType:"plot"},s||(V.showscale={valType:"boolean",dflt:l,editType:"calc"},V.colorbar=C$),r.noColorAxis||(V.coloraxis={valType:"subplotid",regex:E$("coloraxis"),dflt:null,editType:"calc"}),V}});var Vw=pe((qge,ZC)=>{"use strict";var D$=hn().extendFlat,P$=xc(),Uw=ed().scales;ZC.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Uw.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Uw.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Uw.RdBu,editType:"calc"}},coloraxis:D$({_isSubplotObj:!0,editType:"calc"},P$("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Hw=pe((Nge,YC)=>{"use strict";var z$=Bt();YC.exports=function(t){return z$.isPlainObject(t.colorbar)}});var Yw=pe(Zw=>{"use strict";var Gw=Pa(),WC=Bt(),XC=Hi(),I$=XC.ONEDAY,R$=XC.ONEWEEK;Zw.dtick=function(e,t){var r=t==="log",i=t==="date",a=t==="category",s=i?I$:1;if(!e)return s;if(Gw(e))return e=Number(e),e<=0?s:a?Math.max(1,Math.round(e)):i?Math.max(.1,e):e;if(typeof e!="string"||!(i||r))return s;var l=e.charAt(0),f=e.substr(1);return f=Gw(f)?Number(f):0,f<=0||!(i&&l==="M"&&f===Math.round(f)||r&&l==="L"||r&&l==="D"&&(f===1||f===2))?s:e};Zw.tick0=function(e,t,r,i){if(t==="date")return WC.cleanDate(e,WC.dateTick0(r,i%R$===0?1:0));if(!(i==="D1"||i==="D2"))return Gw(e)?Number(e):0}});var Ww=pe((Oge,JC)=>{"use strict";var jC=Yw(),F$=Bt().isArrayOrTypedArray,q$=al().isTypedArraySpec,N$=al().decodeTypedArraySpec;JC.exports=function(t,r,i,a,s){s||(s={});var l=s.isMinor,f=l?t.minor||{}:t,h=l?r.minor:r,v=l?"minor.":"";function m(B){var q=f[B];return q$(q)&&(q=N$(q)),q!==void 0?q:(h._template||{})[B]}var _=m("tick0"),T=m("dtick"),S=m("tickvals"),C=F$(S)?"array":T?"linear":"auto",D=i(v+"tickmode",C);if(D==="auto"||D==="sync")i(v+"nticks");else if(D==="linear"){var E=h.dtick=jC.dtick(T,a);h.tick0=jC.tick0(_,a,r.calendar,E)}else if(a!=="multicategory"){var I=i(v+"tickvals");I===void 0?h.tickmode="auto":l||i("ticktext")}}});var jw=pe((Uge,QC)=>{"use strict";var Xw=Bt(),KC=Ru();QC.exports=function(t,r,i,a){var s=a.isMinor,l=s?t.minor||{}:t,f=s?r.minor:r,h=s?KC.minor:KC,v=s?"minor.":"",m=Xw.coerce2(l,f,h,"ticklen",s?(r.ticklen||5)*.6:void 0),_=Xw.coerce2(l,f,h,"tickwidth",s?r.tickwidth||1:void 0),T=Xw.coerce2(l,f,h,"tickcolor",(s?r.tickcolor:void 0)||f.color),S=i(v+"ticks",!s&&a.outerTicks||m||_||T?"outside":"");S||(delete f.ticklen,delete f.tickwidth,delete f.tickcolor)}});var Jw=pe((Vge,$C)=>{"use strict";$C.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],i=r.filter(function(s){return t[s]!==void 0}),a=function(s){return t[s]===t[i[0]]};if(i.every(a)||i.length===1)return t[i[0]]}});var Wl=pe((Hge,eE)=>{"use strict";var G_=Bt(),B$=Pi();eE.exports=function(t,r,i){var a=i.name,s=i.inclusionAttr||"visible",l=r[a],f=G_.isArrayOrTypedArray(t[a])?t[a]:[],h=r[a]=[],v=B$.arrayTemplater(r,a,s),m,_;for(m=0;m{"use strict";var Kw=Bt(),O$=Ua().contrast,tE=Ru(),U$=Jw(),V$=Wl();rE.exports=function(t,r,i,a,s){s||(s={});var l=i("labelalias");Kw.isPlainObject(l)||delete r.labelalias;var f=U$(t),h=i("showticklabels");if(h){s.noTicklabelshift||i("ticklabelshift"),s.noTicklabelstandoff||i("ticklabelstandoff");var v=s.font||{},m=r.color,_=r.ticklabelposition||"",T=_.indexOf("inside")!==-1?O$(s.bgColor):m&&m!==tE.color.dflt?m:v.color;if(Kw.coerceFont(i,"tickfont",v,{overrideDflt:{color:T}}),!s.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&i("ticklabelstep"),!s.noAng){var S=i("tickangle");!s.noAutotickangles&&S==="auto"&&i("autotickangles")}if(a!=="category"){var C=i("tickformat");V$(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:H$}),r.tickformatstops.length||delete r.tickformatstops,!s.noExp&&!C&&a!=="date"&&(i("showexponent",f),i("exponentformat"),i("minexponent"),i("separatethousands"))}}};function H$(e,t){function r(a,s){return Kw.coerce(e,t,tE.tickformatstops,a,s)}var i=r("enabled");i&&(r("dtickrange"),r("value"))}});var $w=pe((Zge,aE)=>{"use strict";var G$=Jw();aE.exports=function(t,r,i,a,s){s||(s={});var l=s.tickSuffixDflt,f=G$(t),h=i("tickprefix");h&&i("showtickprefix",f);var v=i("ticksuffix",l);v&&i("showticksuffix",f)}});var e5=pe((Yge,iE)=>{"use strict";var Ih=Bt(),Z$=Pi(),Y$=Ww(),W$=jw(),X$=Qw(),j$=$w(),J$=V_();iE.exports=function(t,r,i){var a=Z$.newContainer(r,"colorbar"),s=t.colorbar||{};function l(ne,oe){return Ih.coerce(s,a,J$,ne,oe)}var f=i.margin||{t:0,b:0,l:0,r:0},h=i.width-f.l-f.r,v=i.height-f.t-f.b,m=l("orientation"),_=m==="v",T=l("thicknessmode");l("thickness",T==="fraction"?30/(_?h:v):30);var S=l("lenmode");l("len",S==="fraction"?1:_?v:h);var C=l("yref"),D=l("xref"),E=C==="paper",I=D==="paper",B,q,z,O="left";_?(z="middle",O=I?"left":"right",B=I?1.02:1,q=.5):(z=E?"bottom":"top",O="center",B=.5,q=E?1.02:1),Ih.coerce(s,a,{x:{valType:"number",min:I?-2:0,max:I?3:1,dflt:B}},"x"),Ih.coerce(s,a,{y:{valType:"number",min:E?-2:0,max:E?3:1,dflt:q}},"y"),l("xanchor",O),l("xpad"),l("yanchor",z),l("ypad"),Ih.noneOrAll(s,a,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var H=Ih.coerce(s,a,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:_?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",H.indexOf("inside")!==-1?"hide past domain":"hide past div"),Y$(s,a,l,"linear");var V=i.font,W={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:V};H.indexOf("inside")!==-1&&(W.bgColor="black"),j$(s,a,l,"linear",W),X$(s,a,l,"linear",W),W$(s,a,l,"linear",W),l("title.text",i._dfltTitle.colorbar);var J=a.showticklabels?a.tickfont:V,te=Ih.extendFlat({},V,{family:J.family,size:Ih.bigFont(J.size)});Ih.coerceFont(l,"title.font",te),l("title.side",_?"top":"right")}});var hd=pe((Wge,sE)=>{"use strict";var nE=Pa(),r5=Bt(),K$=Hw(),Q$=e5(),oE=ed().isValid,$$=la().traceIs;function t5(e,t){var r=t.slice(0,t.length-1);return t?r5.nestedProperty(e,r).get()||{}:e}sE.exports=function e(t,r,i,a,s){var l=s.prefix,f=s.cLetter,h="_module"in r,v=t5(t,l),m=t5(r,l),_=t5(r._template||{},l)||{},T=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,i,a,s)};if(h){var S=i._colorAxes||{},C=a(l+"coloraxis");if(C){var D=$$(r,"contour")&&r5.nestedProperty(r,"contours.coloring").get()||"heatmap",E=S[C];E?(E[2].push(T),E[0]!==D&&(E[0]=!1,r5.warn(["Ignoring coloraxis:",C,"setting","as it is linked to incompatible colorscales."].join(" ")))):S[C]=[D,r,[T]];return}}var I=v[f+"min"],B=v[f+"max"],q=nE(I)&&nE(B)&&I{"use strict";var lE=Bt(),eee=Pi(),uE=Vw(),tee=hd();fE.exports=function(t,r){function i(_,T){return lE.coerce(t,r,uE,_,T)}i("colorscale.sequential"),i("colorscale.sequentialminus"),i("colorscale.diverging");var a=r._colorAxes,s,l;function f(_,T){return lE.coerce(s,l,uE.coloraxis,_,T)}for(var h in a){var v=a[h];if(v[0])s=t[h]||{},l=eee.newContainer(r,h,"coloraxis"),l._name=h,tee(s,l,r,f,{prefix:"",cLetter:"c"});else{for(var m=0;m{"use strict";var ree=Bt(),aee=kf().hasColorscale,iee=kf().extractOpts;hE.exports=function(t,r){function i(m,_){var T=m["_"+_];T!==void 0&&(m[_]=T)}function a(m,_){var T=_.container?ree.nestedProperty(m,_.container).get():m;if(T)if(T.coloraxis)T._colorAx=r[T.coloraxis];else{var S=iee(T),C=S.auto;(C||S.min===void 0)&&i(T,_.min),(C||S.max===void 0)&&i(T,_.max),S.autocolorscale&&i(T,"colorscale")}}for(var s=0;s{"use strict";var dE=Pa(),a5=Bt(),nee=kf().extractOpts;pE.exports=function(t,r,i){var a=t._fullLayout,s=i.vals,l=i.containerStr,f=l?a5.nestedProperty(r,l).get():r,h=nee(f),v=h.auto!==!1,m=h.min,_=h.max,T=h.mid,S=function(){return a5.aggNums(Math.min,null,s)},C=function(){return a5.aggNums(Math.max,null,s)};if(m===void 0?m=S():v&&(f._colorAx&&dE(m)?m=Math.min(m,S()):m=S()),_===void 0?_=C():v&&(f._colorAx&&dE(_)?_=Math.max(_,C()):_=C()),v&&T!==void 0&&(_-T>T-m?m=T-(_-T):_-T=0?D=a.colorscale.sequential:D=a.colorscale.sequentialminus,h._sync("colorscale",D)}}});var L0=pe((Kge,mE)=>{"use strict";var Z_=ed(),E0=kf();mE.exports={moduleType:"component",name:"colorscale",attributes:xc(),layoutAttributes:Vw(),supplyLayoutDefaults:cE(),handleDefaults:hd(),crossTraceDefaults:vE(),calc:Hy(),scales:Z_.scales,defaultScale:Z_.defaultScale,getScale:Z_.get,isValidScale:Z_.isValid,hasColorscale:E0.hasColorscale,extractOpts:E0.extractOpts,extractScale:E0.extractScale,flipScale:E0.flipScale,makeColorScaleFunc:E0.makeColorScaleFunc,makeColorScaleFuncFromTrace:E0.makeColorScaleFuncFromTrace}});var rs=pe((Qge,gE)=>{"use strict";var yE=Bt(),oee=al().isTypedArraySpec;gE.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return yE.isPlainObject(t)&&(yE.isArrayOrTypedArray(t.size)||oee(t.size))}}});var i5=pe(($ge,_E)=>{"use strict";var see=Pa();_E.exports=function(t,r){r||(r=2);var i=t.marker,a=i.sizeref||1,s=i.sizemin||0,l=i.sizemode==="area"?function(f){return Math.sqrt(f/a)}:function(f){return f/a};return function(f){var h=l(f/r);return see(h)&&h>0?Math.max(h,s):0}}});var bc=pe(No=>{"use strict";var xE=Bt();No.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};No.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],i=e.yaxes||[],a=0;a=0&&r.index{TE.exports=hee;var n5={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},cee=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function hee(e){var t=[];return e.replace(cee,function(r,i,a){var s=i.toLowerCase();for(a=dee(a),s=="m"&&a.length>2&&(t.push([i].concat(a.splice(0,2))),s="l",i=i=="m"?"l":"L");;){if(a.length==n5[s])return a.unshift(i),t.push(a);if(a.length{"use strict";var pee=o5(),sr=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},ha="M0,0Z",AE=Math.sqrt(2),Rh=Math.sqrt(3),s5=Math.PI,l5=Math.cos,u5=Math.sin;EE.exports={circle:{n:0,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a="M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z";return r?da(t,r,a):a}},square:{n:1,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")}},diamond:{n:2,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.3,2);return da(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"Z")}},cross:{n:3,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.4,2),a=sr(e*1.2,2);return da(t,r,"M"+a+","+i+"H"+i+"V"+a+"H-"+i+"V"+i+"H-"+a+"V-"+i+"H-"+i+"V-"+a+"H"+i+"V-"+i+"H"+a+"Z")}},x:{n:4,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.8/AE,2),a="l"+i+","+i,s="l"+i+",-"+i,l="l-"+i+",-"+i,f="l-"+i+","+i;return da(t,r,"M0,"+i+a+s+l+s+l+f+l+f+a+f+a+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2/Rh,2),a=sr(e/2,2),s=sr(e,2);return da(t,r,"M-"+i+","+a+"H"+i+"L0,-"+s+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2/Rh,2),a=sr(e/2,2),s=sr(e,2);return da(t,r,"M-"+i+",-"+a+"H"+i+"L0,"+s+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2/Rh,2),a=sr(e/2,2),s=sr(e,2);return da(t,r,"M"+a+",-"+i+"V"+i+"L-"+s+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2/Rh,2),a=sr(e/2,2),s=sr(e,2);return da(t,r,"M-"+a+",-"+i+"V"+i+"L"+s+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.6,2),a=sr(e*1.2,2);return da(t,r,"M-"+a+",-"+i+"H"+i+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.6,2),a=sr(e*1.2,2);return da(t,r,"M"+i+",-"+a+"V"+i+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.6,2),a=sr(e*1.2,2);return da(t,r,"M"+a+","+i+"H-"+i+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.6,2),a=sr(e*1.2,2);return da(t,r,"M-"+i+","+a+"V-"+i+"H"+a+"Z")}},pentagon:{n:13,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.951,2),a=sr(e*.588,2),s=sr(-e,2),l=sr(e*-.309,2),f=sr(e*.809,2);return da(t,r,"M"+i+","+l+"L"+a+","+f+"H-"+a+"L-"+i+","+l+"L0,"+s+"Z")}},hexagon:{n:14,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e/2,2),s=sr(e*Rh/2,2);return da(t,r,"M"+s+",-"+a+"V"+a+"L0,"+i+"L-"+s+","+a+"V-"+a+"L0,-"+i+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e/2,2),s=sr(e*Rh/2,2);return da(t,r,"M-"+a+","+s+"H"+a+"L"+i+",0L"+a+",-"+s+"H-"+a+"L-"+i+",0Z")}},octagon:{n:16,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.924,2),a=sr(e*.383,2);return da(t,r,"M-"+a+",-"+i+"H"+a+"L"+i+",-"+a+"V"+a+"L"+a+","+i+"H-"+a+"L-"+i+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,t,r){if(va(t))return ha;var i=e*1.4,a=sr(i*.225,2),s=sr(i*.951,2),l=sr(i*.363,2),f=sr(i*.588,2),h=sr(-i,2),v=sr(i*-.309,2),m=sr(i*.118,2),_=sr(i*.809,2),T=sr(i*.382,2);return da(t,r,"M"+a+","+v+"H"+s+"L"+l+","+m+"L"+f+","+_+"L0,"+T+"L-"+f+","+_+"L-"+l+","+m+"L-"+s+","+v+"H-"+a+"L0,"+h+"Z")}},hexagram:{n:18,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.66,2),a=sr(e*.38,2),s=sr(e*.76,2);return da(t,r,"M-"+s+",0l-"+a+",-"+i+"h"+s+"l"+a+",-"+i+"l"+a+","+i+"h"+s+"l-"+a+","+i+"l"+a+","+i+"h-"+s+"l-"+a+","+i+"l-"+a+",-"+i+"h-"+s+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(va(t))return ha;var i=sr(e*Rh*.8,2),a=sr(e*.8,2),s=sr(e*1.6,2),l=sr(e*4,2),f="A "+l+","+l+" 0 0 1 ";return da(t,r,"M-"+i+","+a+f+i+","+a+f+"0,-"+s+f+"-"+i+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(va(t))return ha;var i=sr(e*Rh*.8,2),a=sr(e*.8,2),s=sr(e*1.6,2),l=sr(e*4,2),f="A "+l+","+l+" 0 0 1 ";return da(t,r,"M"+i+",-"+a+f+"-"+i+",-"+a+f+"0,"+s+f+i+",-"+a+"Z")}},"star-square":{n:21,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.1,2),a=sr(e*2,2),s="A "+a+","+a+" 0 0 1 ";return da(t,r,"M-"+i+",-"+i+s+"-"+i+","+i+s+i+","+i+s+i+",-"+i+s+"-"+i+",-"+i+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.4,2),a=sr(e*1.9,2),s="A "+a+","+a+" 0 0 1 ";return da(t,r,"M-"+i+",0"+s+"0,"+i+s+i+",0"+s+"0,-"+i+s+"-"+i+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.7,2),a=sr(e*1.4,2);return da(t,r,"M0,"+a+"L"+i+",0L0,-"+a+"L-"+i+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.4,2),a=sr(e*.7,2);return da(t,r,"M0,"+a+"L"+i+",0L0,-"+a+"L-"+i+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+","+i+"H-"+i+"L"+i+",-"+i+"H-"+i+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+","+i+"V-"+i+"L-"+i+","+i+"V-"+i+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e/AE,2);return da(t,r,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.3,2);return da(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"ZM0,-"+i+"V"+i+"M-"+i+",0H"+i)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.3,2),a=sr(e*.65,2);return da(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.4,2);return da(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.2,2),a=sr(e*.85,2);return da(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(va(t))return ha;var i=sr(e/2,2),a=sr(e,2);return da(t,r,"M"+i+","+a+"V-"+a+"M"+(i-a)+",-"+a+"V"+a+"M"+a+","+i+"H-"+a+"M-"+a+","+(i-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.2,2),a=sr(e*1.6,2),s=sr(e*.8,2);return da(t,r,"M-"+i+","+s+"L0,0M"+i+","+s+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.2,2),a=sr(e*1.6,2),s=sr(e*.8,2);return da(t,r,"M-"+i+",-"+s+"L0,0M"+i+",-"+s+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.2,2),a=sr(e*1.6,2),s=sr(e*.8,2);return da(t,r,"M"+s+","+i+"L0,0M"+s+",-"+i+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.2,2),a=sr(e*1.6,2),s=sr(e*.8,2);return da(t,r,"M-"+s+","+i+"L0,0M-"+s+",-"+i+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.4,2);return da(t,r,"M"+i+",0H-"+i)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.4,2);return da(t,r,"M0,"+i+"V-"+i)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+","+i+"L-"+i+",-"+i)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e*2,2);return da(t,r,"M0,0L-"+i+","+a+"H"+i+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e*2,2);return da(t,r,"M0,0L-"+i+",-"+a+"H"+i+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2,2),a=sr(e,2);return da(t,r,"M0,0L"+i+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2,2),a=sr(e,2);return da(t,r,"M0,0L-"+i+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e*2,2);return da(t,r,"M-"+i+",0H"+i+"M0,0L-"+i+","+a+"H"+i+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e*2,2);return da(t,r,"M-"+i+",0H"+i+"M0,0L-"+i+",-"+a+"H"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2,2),a=sr(e,2);return da(t,r,"M0,-"+a+"V"+a+"M0,0L"+i+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2,2),a=sr(e,2);return da(t,r,"M0,-"+a+"V"+a+"M0,0L-"+i+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(va(t))return ha;var i=s5/2.5,a=2*e*l5(i),s=2*e*u5(i);return da(t,r,"M0,0L"+-a+","+s+"L"+a+","+s+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(va(t))return ha;var i=s5/4,a=2*e*l5(i),s=2*e*u5(i);return da(t,r,"M0,0L"+-a+","+s+"A "+2*e+","+2*e+" 0 0 1 "+a+","+s+"Z")},backoff:.4,noDot:!0}};function va(e){return e===null}var ME,SE,kE,CE;function da(e,t,r){if((!e||e%360===0)&&!t)return r;if(kE===e&&CE===t&&ME===r)return SE;kE=e,CE=t,ME=r;function i(E,I){var B=l5(E),q=u5(E),z=I[0],O=I[1]+(t||0);return[z*B-O*q,z*q+O*B]}for(var a=e/180*s5,s=0,l=0,f=pee(r),h="",v=0;v{"use strict";var to=ja(),_i=Bt(),mee=_i.numberFormat,md=Pa(),p5=Tf(),W_=la(),Mo=Ua(),yee=L0(),Zy=_i.strTranslate,X_=co(),gee=zh(),_ee=ts(),xee=_ee.LINE_SPACING,OE=a_().DESELECTDIM,bee=rs(),wee=i5(),Tee=bc().appendArrayPointValue,gr=JE.exports={};gr.font=function(e,t){var r=t.variant,i=t.style,a=t.weight,s=t.color,l=t.size,f=t.family,h=t.shadow,v=t.lineposition,m=t.textcase;f&&e.style("font-family",f),l+1&&e.style("font-size",l+"px"),s&&e.call(Mo.fill,s),a&&e.style("font-weight",a),i&&e.style("font-style",i),r&&e.style("font-variant",r),m&&e.style("text-transform",f5(Mee(m))),h&&e.style("text-shadow",h==="auto"?X_.makeTextShadow(Mo.contrast(s)):f5(h)),v&&e.style("text-decoration-line",f5(See(v)))};function f5(e){return e==="none"?void 0:e}var Aee={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Mee(e){return Aee[e]}function See(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}gr.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};gr.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};gr.setRect=function(e,t,r,i,a){e.call(gr.setPosition,t,r).call(gr.setSize,i,a)};gr.translatePoint=function(e,t,r,i){var a=r.c2p(e.x),s=i.c2p(e.y);if(md(a)&&md(s)&&t.node())t.node().nodeName==="text"?t.attr("x",a).attr("y",s):t.attr("transform",Zy(a,s));else return!1;return!0};gr.translatePoints=function(e,t,r){e.each(function(i){var a=to.select(this);gr.translatePoint(i,a,t,r)})};gr.hideOutsideRangePoint=function(e,t,r,i,a,s){t.attr("display",r.isPtWithinRange(e,a)&&i.isPtWithinRange(e,s)?null:"none")};gr.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,i=t.yaxis;e.each(function(a){var s=a[0].trace,l=s.xcalendar,f=s.ycalendar,h=W_.traceIs(s,"bar-like")?".bartext":".point,.textpoint";e.selectAll(h).each(function(v){gr.hideOutsideRangePoint(v,to.select(this),r,i,l,f)})})}};gr.crispRound=function(e,t,r){return!t||!md(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};gr.singleLineStyle=function(e,t,r,i,a){t.style("fill","none");var s=(((e||[])[0]||{}).trace||{}).line||{},l=r||s.width||0,f=a||s.dash||"";Mo.stroke(t,i||s.color),gr.dashLine(t,f,l)};gr.lineGroupStyle=function(e,t,r,i){e.style("fill","none").each(function(a){var s=(((a||[])[0]||{}).trace||{}).line||{},l=t||s.width||0,f=i||s.dash||"";to.select(this).call(Mo.stroke,r||s.color).call(gr.dashLine,f,l)})};gr.dashLine=function(e,t,r){r=+r||0,t=gr.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};gr.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function UE(e,t,r,i){var a=t.fillpattern,s=t.fillgradient,l=gr.getPatternAttr,f=a&&(l(a.shape,0,"")||l(a.path,0,""));if(f){var h=l(a.bgcolor,0,null),v=l(a.fgcolor,0,null),m=a.fgopacity,_=l(a.size,0,8),T=l(a.solidity,0,.3),S=t.uid;gr.pattern(e,"point",r,S,f,_,T,void 0,a.fillmode,h,v,m)}else if(s&&s.type!=="none"){var C=s.type,D="scatterfill-"+t.uid;if(i&&(D="legendfill-"+t.uid),!i&&(s.start!==void 0||s.stop!==void 0)){var E,I;C==="horizontal"?(E={x:s.start,y:0},I={x:s.stop,y:0}):C==="vertical"&&(E={x:0,y:s.start},I={x:0,y:s.stop}),E.x=t._xA.c2p(E.x===void 0?t._extremes.x.min[0].val:E.x,!0),E.y=t._yA.c2p(E.y===void 0?t._extremes.y.min[0].val:E.y,!0),I.x=t._xA.c2p(I.x===void 0?t._extremes.x.max[0].val:I.x,!0),I.y=t._yA.c2p(I.y===void 0?t._extremes.y.max[0].val:I.y,!0),e.call(GE,r,D,"linear",s.colorscale,"fill",E,I,!0,!1)}else C==="horizontal"&&(C=C+"reversed"),e.call(gr.gradient,r,D,C,s.colorscale,"fill")}else t.fillcolor&&e.call(Mo.fill,t.fillcolor)}gr.singleFillStyle=function(e,t){var r=to.select(e.node()),i=r.data(),a=((i[0]||[])[0]||{}).trace||{};UE(e,a,t,!1)};gr.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(i){var a=to.select(this);i[0].trace&&UE(a,i[0].trace,t,r)})};var DE=LE();gr.symbolNames=[];gr.symbolFuncs=[];gr.symbolBackOffs=[];gr.symbolNeedLines={};gr.symbolNoDot={};gr.symbolNoFill={};gr.symbolList=[];Object.keys(DE).forEach(function(e){var t=DE[e],r=t.n;gr.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),gr.symbolNames[r]=e,gr.symbolFuncs[r]=t.f,gr.symbolBackOffs[r]=t.backoff||0,t.needLine&&(gr.symbolNeedLines[r]=!0),t.noDot?gr.symbolNoDot[r]=!0:gr.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(gr.symbolNoFill[r]=!0)});var kee=gr.symbolNames.length,Cee="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";gr.symbolNumber=function(e){if(md(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=gr.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=kee||e>=400?0:Math.floor(Math.max(e,0))};function VE(e,t,r,i){var a=e%100;return gr.symbolFuncs[a](t,r,i)+(e>=200?Cee:"")}var PE=mee("~f"),HE={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};gr.gradient=function(e,t,r,i,a,s){var l=HE[i];return GE(e,t,r,l.type,a,s,l.start,l.stop,!1,l.reversed)};function GE(e,t,r,i,a,s,l,f,h,v){var m=a.length,_;i==="linear"?_={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:f.x,y2:f.y,gradientUnits:h?"userSpaceOnUse":"objectBoundingBox"},reversed:v}:i==="radial"&&(_={node:"radialGradient",reversed:v});for(var T=new Array(m),S=0;S=0&&e.i===void 0&&(e.i=s.i),t.style("opacity",i.selectedOpacityFn?i.selectedOpacityFn(e):e.mo===void 0?l.opacity:e.mo),i.ms2mrc){var h;e.ms==="various"||l.size==="various"?h=3:h=i.ms2mrc(e.ms),e.mrc=h,i.selectedSizeFn&&(h=e.mrc=i.selectedSizeFn(e));var v=gr.symbolNumber(e.mx||l.symbol)||0;e.om=v%200>=100;var m=g5(e,r),_=y5(e,r);t.attr("d",VE(v,h,m,_))}var T=!1,S,C,D;if(e.so)D=f.outlierwidth,C=f.outliercolor,S=l.outliercolor;else{var E=(f||{}).width;D=(e.mlw+1||E+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?C=e.mlcc=i.lineScale(e.mlc):_i.isArrayOrTypedArray(f.color)?C=Mo.defaultLine:C=f.color,_i.isArrayOrTypedArray(l.color)&&(S=Mo.defaultLine,T=!0),"mc"in e?S=e.mcc=i.markerScale(e.mc):S=l.color||l.colors||"rgba(0,0,0,0)",i.selectedColorFn&&(S=i.selectedColorFn(e))}if(e.om)t.call(Mo.stroke,S).style({"stroke-width":(D||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:D)+"px");var I=l.gradient,B=e.mgt;B?T=!0:B=I&&I.type,_i.isArrayOrTypedArray(B)&&(B=B[0],HE[B]||(B=0));var q=l.pattern,z=gr.getPatternAttr,O=q&&(z(q.shape,e.i,"")||z(q.path,e.i,""));if(B&&B!=="none"){var H=e.mgc;H?T=!0:H=I.color;var V=r.uid;T&&(V+="-"+e.i),gr.gradient(t,a,V,B,[[0,H],[1,S]],"fill")}else if(O){var W=!1,J=q.fgcolor;!J&&s&&s.color&&(J=s.color,W=!0);var te=z(J,e.i,s&&s.color||null),ne=z(q.bgcolor,e.i,null),oe=q.fgopacity,fe=z(q.size,e.i,8),de=z(q.solidity,e.i,.3);W=W||e.mcc||_i.isArrayOrTypedArray(q.shape)||_i.isArrayOrTypedArray(q.path)||_i.isArrayOrTypedArray(q.bgcolor)||_i.isArrayOrTypedArray(q.fgcolor)||_i.isArrayOrTypedArray(q.size)||_i.isArrayOrTypedArray(q.solidity);var Me=r.uid;W&&(Me+="-"+e.i),gr.pattern(t,"point",a,Me,O,fe,de,e.mcc,q.fillmode,ne,te,oe)}else _i.isArrayOrTypedArray(S)?Mo.fill(t,S[e.i]):Mo.fill(t,S);D&&Mo.stroke(t,C)}};gr.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=gr.tryColorscale(r,""),t.lineScale=gr.tryColorscale(r,"line"),W_.traceIs(e,"symbols")&&(t.ms2mrc=bee.isBubble(e)?wee(e):function(){return(r.size||6)/2}),e.selectedpoints&&_i.extendFlat(t,gr.makeSelectedPointStyleFns(e)),t};gr.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},i=e.unselected||{},a=e.marker||{},s=r.marker||{},l=i.marker||{},f=a.opacity,h=s.opacity,v=l.opacity,m=h!==void 0,_=v!==void 0;(_i.isArrayOrTypedArray(f)||m||_)&&(t.selectedOpacityFn=function(z){var O=z.mo===void 0?a.opacity:z.mo;return z.selected?m?h:O:_?v:OE*O});var T=a.color,S=s.color,C=l.color;(S||C)&&(t.selectedColorFn=function(z){var O=z.mcc||T;return z.selected?S||O:C||O});var D=a.size,E=s.size,I=l.size,B=E!==void 0,q=I!==void 0;return W_.traceIs(e,"symbols")&&(B||q)&&(t.selectedSizeFn=function(z){var O=z.mrc||D/2;return z.selected?B?E/2:O:q?I/2:O}),t};gr.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},i=e.unselected||{},a=e.textfont||{},s=r.textfont||{},l=i.textfont||{},f=a.color,h=s.color,v=l.color;return t.selectedTextColorFn=function(m){var _=m.tc||f;return m.selected?h||_:v||(h?_:Mo.addOpacity(_,OE))},t};gr.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=gr.makeSelectedPointStyleFns(t),i=t.marker||{},a=[];r.selectedOpacityFn&&a.push(function(s,l){s.style("opacity",r.selectedOpacityFn(l))}),r.selectedColorFn&&a.push(function(s,l){Mo.fill(s,r.selectedColorFn(l))}),r.selectedSizeFn&&a.push(function(s,l){var f=l.mx||i.symbol||0,h=r.selectedSizeFn(l);s.attr("d",VE(gr.symbolNumber(f),h,g5(l,t),y5(l,t))),l.mrc2=h}),a.length&&e.each(function(s){for(var l=to.select(this),f=0;f0?r:0}gr.textPointStyle=function(e,t,r){if(e.size()){var i;if(t.selectedpoints){var a=gr.makeSelectedTextStyleFns(t);i=a.selectedTextColorFn}var s=t.texttemplate,l=r._fullLayout;e.each(function(f){var h=to.select(this),v=s?_i.extractOption(f,t,"txt","texttemplate"):_i.extractOption(f,t,"tx","text");if(!v&&v!==0){h.remove();return}if(s){var m=t._module.formatLabels,_=m?m(f,t,l):{},T={};Tee(T,t,f.i);var S=t._meta||{};v=_i.texttemplateString(v,_,l._d3locale,T,f,S)}var C=f.tp||t.textposition,D=YE(f,t),E=i?i(f):f.tc||t.textfont.color;h.call(gr.font,{family:f.tf||t.textfont.family,weight:f.tw||t.textfont.weight,style:f.ty||t.textfont.style,variant:f.tv||t.textfont.variant,textcase:f.tC||t.textfont.textcase,lineposition:f.tE||t.textfont.lineposition,shadow:f.tS||t.textfont.shadow,size:D,color:E}).text(v).call(X_.convertToTspans,r).call(ZE,C,D,f.mrc)})}};gr.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=gr.makeSelectedTextStyleFns(t);e.each(function(i){var a=to.select(this),s=r.selectedTextColorFn(i),l=i.tp||t.textposition,f=YE(i,t);Mo.fill(a,s);var h=W_.traceIs(t,"bar-like");ZE(a,l,f,i.mrc2||i.mrc,h)})}};var zE=.5;gr.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],i=[],a;for(a=1;a=h||z>=m&&z<=h)&&(O<=_&&O>=v||O>=_&&O<=v)&&(e=[z,O])}return e}gr.applyBackoff=jE;gr.makeTester=function(){var e=_i.ensureSingleById(to.select("body"),"svg","js-plotly-tester",function(r){r.attr(gee.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=_i.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});gr.tester=e,gr.testref=t};gr.savedBBoxes={};var h5=0,Dee=1e4;gr.bBox=function(e,t,r){r||(r=IE(e));var i;if(r){if(i=gr.savedBBoxes[r],i)return _i.extendFlat({},i)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(r=IE(a),r){var s=+a.getAttribute("x")||0,l=+a.getAttribute("y")||0,f=a.getAttribute("transform");if(!f){var h=gr.bBox(a,!1,r);return s&&(h.left+=s,h.right+=s),l&&(h.top+=l,h.bottom+=l),h}if(r+="~"+s+"~"+l+"~"+f,i=gr.savedBBoxes[r],i)return _i.extendFlat({},i)}}var v,m;t?v=e:(m=gr.tester.node(),v=e.cloneNode(!0),m.appendChild(v)),to.select(v).attr("transform",null).call(X_.positionText,0,0);var _=v.getBoundingClientRect(),T=gr.testref.node().getBoundingClientRect();t||m.removeChild(v);var S={height:_.height,width:_.width,left:_.left-T.left,top:_.top-T.top,right:_.right-T.left,bottom:_.bottom-T.top};return h5>=Dee&&(gr.savedBBoxes={},h5=0),r&&(gr.savedBBoxes[r]=S),h5++,_i.extendFlat({},S)};function IE(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}gr.setClipUrl=function(e,t,r){e.attr("clip-path",m5(t,r))};function m5(e,t){if(!e)return null;var r=t._context,i=r._exportedPlot?"":r._baseUrl||"";return i?"url('"+i+"#"+e+"')":"url(#"+e+")"}gr.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",i=e[r]("transform")||"",a=i.replace(t,function(s,l,f){return[l,f].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}};gr.setTranslate=function(e,t,r){var i=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",s=e.attr?"attr":"setAttribute",l=e[a]("transform")||"";return t=t||0,r=r||0,l=l.replace(i,"").trim(),l+=Zy(t,r),l=l.trim(),e[s]("transform",l),l};gr.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",i=e[r]("transform")||"",a=i.replace(t,function(s,l,f){return[l,f].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}};gr.setScale=function(e,t,r){var i=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",s=e.attr?"attr":"setAttribute",l=e[a]("transform")||"";return t=t||1,r=r||1,l=l.replace(i,"").trim(),l+="scale("+t+","+r+")",l=l.trim(),e[s]("transform",l),l};var Pee=/\s*sc.*/;gr.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var i=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(Pee,"");a+=i,a=a.trim(),this.setAttribute("transform",a)})}};var zee=/translate\([^)]*\)\s*$/;gr.setTextPointsScale=function(e,t,r){e&&e.each(function(){var i,a=to.select(this),s=a.select("text");if(s.node()){var l=parseFloat(s.attr("x")||0),f=parseFloat(s.attr("y")||0),h=(a.attr("transform")||"").match(zee);t===1&&r===1?i=[]:i=[Zy(l,f),"scale("+t+","+r+")",Zy(-l,-f)],h&&i.push(h),a.attr("transform",i.join(""))}})};function y5(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}gr.getMarkerStandoff=y5;var Gy=Math.atan2,vd=Math.cos,P0=Math.sin;function RE(e,t){var r=t[0],i=t[1];return[r*vd(e)-i*P0(e),r*P0(e)+i*vd(e)]}var FE,qE,NE,BE,v5,d5;function g5(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!r||_i.isArrayOrTypedArray(r))&&(r=0));var i,a,s=t.marker.angleref;if(s==="previous"||s==="north"){if(t._geo){var l=t._geo.project(e.lonlat);i=l[0],a=l[1]}else{var f=t._xA,h=t._yA;if(f&&h)i=f.c2p(e.x),a=h.c2p(e.y);else return 90}if(t._geo){var v=e.lonlat[0],m=e.lonlat[1],_=t._geo.project([v,m+1e-5]),T=t._geo.project([v+1e-5,m]),S=Gy(T[1]-a,T[0]-i),C=Gy(_[1]-a,_[0]-i),D;if(s==="north")D=r/180*Math.PI;else if(s==="previous"){var E=v/180*Math.PI,I=m/180*Math.PI,B=FE/180*Math.PI,q=qE/180*Math.PI,z=B-E,O=vd(q)*P0(z),H=P0(q)*vd(I)-vd(q)*P0(I)*vd(z);D=-Gy(O,H)-Math.PI,FE=v,qE=m}var V=RE(S,[vd(D),0]),W=RE(C,[P0(D),0]);r=Gy(V[1]+W[1],V[0]+W[0])/Math.PI*180,s==="previous"&&!(d5===t.uid&&e.i===v5+1)&&(r=null)}if(s==="previous"&&!t._geo)if(d5===t.uid&&e.i===v5+1&&md(i)&&md(a)){var J=i-NE,te=a-BE,ne=t.line&&t.line.shape||"",oe=ne.slice(ne.length-1);oe==="h"&&(te=0),oe==="v"&&(J=0),r+=Gy(te,J)/Math.PI*180+90}else r=null}return NE=i,BE=a,v5=e.i,d5=t.uid,r}gr.getMarkerAngle=g5});var Yy=pe((i1e,eL)=>{"use strict";var z0=ja(),Iee=Pa(),Ree=eo(),_5=la(),yd=Bt(),KE=yd.strTranslate,j_=xi(),J_=Ua(),I0=co(),QE=a_(),Fee=ts().OPPOSITE_SIDE,$E=/ [XY][0-9]* /,x5=1.6,b5=1.6;function qee(e,t,r){var i=e._fullLayout,a=r.propContainer,s=r.propName,l=r.placeholder,f=r.traceIndex,h=r.avoid||{},v=r.attributes,m=r.transform,_=r.containerGroup,T=1,S=a.title,C=(S&&S.text?S.text:"").trim(),D=!1,E=S&&S.font?S.font:{},I=E.family,B=E.size,q=E.color,z=E.weight,O=E.style,H=E.variant,V=E.textcase,W=E.lineposition,J=E.shadow,te=r.subtitlePropName,ne=!!te,oe=r.subtitlePlaceholder,fe=(a.title||{}).subtitle||{text:"",font:{}},de=fe.text.trim(),Me=!1,Se=1,Te=fe.font,we=Te.family,Ae=Te.size,Ce=Te.color,Le=Te.weight,Qe=Te.style,st=Te.variant,at=Te.textcase,mt=Te.lineposition,Ye=Te.shadow,At;s==="title.text"?At="titleText":s.indexOf("axis")!==-1?At="axisTitleText":s.indexOf(!0)&&(At="colorbarTitleText");var it=e._context.edits[At];function dt(Ut,Et){return Ut===void 0||Et===void 0?!1:Ut.replace($E," % ")===Et.replace($E," % ")}C===""?T=0:dt(C,l)&&(it||(C=""),T=.2,D=!0),ne&&(de===""?Se=0:dt(de,oe)&&(it||(de=""),Se=.2,Me=!0)),r._meta?C=yd.templateString(C,r._meta):i._meta&&(C=yd.templateString(C,i._meta));var Mt=C||de||it,ct;_||(_=yd.ensureSingle(i._infolayer,"g","g-"+t),ct=i._hColorbarMoveTitle);var ve=_.selectAll("text."+t).data(Mt?[0]:[]);ve.enter().append("text"),ve.text(C).attr("class",t),ve.exit().remove();var Ie=null,me=t+"-subtitle",rt=de||it;if(ne&&rt&&(Ie=_.selectAll("text."+me).data(rt?[0]:[]),Ie.enter().append("text"),Ie.text(de).attr("class",me),Ie.exit().remove()),!Mt)return _;function pt(Ut,Et){yd.syncOrAsync([je,qt],{title:Ut,subtitle:Et})}function je(Ut){var Et=Ut.title,Ct=Ut.subtitle,Yt;!m&&ct&&(m={}),m?(Yt="",m.rotate&&(Yt+="rotate("+[m.rotate,v.x,v.y]+")"),(m.offset||ct)&&(Yt+=KE(0,(m.offset||0)-(ct||0)))):Yt=null,Et.attr("transform",Yt);function Vt(wt){if(wt){var bt=z0.select(wt.node().parentNode).select("."+me);if(!bt.empty()){var Ht=wt.node().getBBox();if(Ht.height){var Xt=Ht.y+Ht.height+x5*Ae;bt.attr("y",Xt)}}}}if(Et.style("opacity",T*J_.opacity(q)).call(j_.font,{color:J_.rgb(q),size:z0.round(B,2),family:I,weight:z,style:O,variant:H,textcase:V,shadow:J,lineposition:W}).attr(v).call(I0.convertToTspans,e,Vt),Ct){var Ne=_.select("."+t+"-math-group"),ut=Et.node().getBBox(),gt=Ne.node()?Ne.node().getBBox():void 0,xr=gt?gt.y+gt.height+x5*Ae:ut.y+ut.height+b5*Ae,vr=yd.extendFlat({},v,{y:xr});Ct.attr("transform",Yt),Ct.style("opacity",Se*J_.opacity(Ce)).call(j_.font,{color:J_.rgb(Ce),size:z0.round(Ae,2),family:we,weight:Le,style:Qe,variant:st,textcase:at,shadow:Ye,lineposition:mt}).attr(vr).call(I0.convertToTspans,e)}return Ree.previousPromises(e)}function qt(Ut){var Et=Ut.title,Ct=z0.select(Et.node().parentNode);if(h&&h.selection&&h.side&&C){Ct.attr("transform",null);var Yt=Fee[h.side],Vt=h.side==="left"||h.side==="top"?-1:1,Ne=Iee(h.pad)?h.pad:2,ut=j_.bBox(Ct.node()),gt={t:0,b:0,l:0,r:0},xr=e._fullLayout._reservedMargin;for(var vr in xr)for(var wt in xr[vr]){var bt=xr[vr][wt];gt[wt]=Math.max(gt[wt],bt)}var Ht={left:gt.l,top:gt.t,right:i.width-gt.r,bottom:i.height-gt.b},Xt=h.maxShift||Vt*(Ht[h.side]-ut[h.side]),Gt=0;if(Xt<0)Gt=Xt;else{var Ot=h.offsetLeft||0,tr=h.offsetTop||0;ut.left-=Ot,ut.right-=Ot,ut.top-=tr,ut.bottom-=tr,h.selection.each(function(){var br=j_.bBox(this);yd.bBoxIntersect(ut,br,Ne)&&(Gt=Math.max(Gt,Vt*(br[h.side]-ut[Yt])+Ne))}),Gt=Math.min(Xt,Gt),a._titleScoot=Math.abs(Gt)}if(Gt>0||Xt<0){var Mr={left:[-Gt,0],right:[Gt,0],top:[0,-Gt],bottom:[0,Gt]}[h.side];Ct.attr("transform",KE(Mr[0],Mr[1]))}}}ve.call(pt,Ie);function It(Ut,Et){Ut.text(Et).on("mouseover.opacity",function(){z0.select(this).transition().duration(QE.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){z0.select(this).transition().duration(QE.HIDE_PLACEHOLDER).style("opacity",0)})}if(it&&(C?ve.on(".opacity",null):(It(ve,l),D=!0),ve.call(I0.makeEditable,{gd:e}).on("edit",function(Ut){f!==void 0?_5.call("_guiRestyle",e,s,Ut,f):_5.call("_guiRelayout",e,s,Ut)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(pt)}).on("input",function(Ut){this.text(Ut||" ").call(I0.positionText,v.x,v.y)}),ne)){if(ne&&!C){var Tt=ve.node().getBBox(),zt=Tt.y+Tt.height+b5*Ae;Ie.attr("y",zt)}de?Ie.on(".opacity",null):(It(Ie,oe),Me=!0),Ie.call(I0.makeEditable,{gd:e}).on("edit",function(Ut){_5.call("_guiRelayout",e,"title.subtitle.text",Ut)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(pt)}).on("input",function(Ut){this.text(Ut||" ").call(I0.positionText,Ie.attr("x"),Ie.attr("y"))})}return ve.classed("js-placeholder",D),Ie&&Ie.classed("js-placeholder",Me),_}eL.exports={draw:qee,SUBTITLE_PADDING_EM:b5,SUBTITLE_PADDING_MATHJAX_EM:x5}});var i2=pe((n1e,nL)=>{"use strict";var Nee=ja(),Bee=s0().utcFormat,zi=Bt(),Oee=zi.numberFormat,Ef=Pa(),Fh=zi.cleanNumber,Uee=zi.ms2DateTime,tL=zi.dateTime2ms,Lf=zi.ensureNumber,rL=zi.isArrayOrTypedArray,qh=Hi(),K_=qh.FP_SAFE,Fu=qh.BADNUM,Vee=qh.LOG_CLIP,Hee=qh.ONEWEEK,Q_=qh.ONEDAY,$_=qh.ONEHOUR,aL=qh.ONEMIN,iL=qh.ONESEC,e2=$n(),a2=Ao(),t2=a2.HOUR_PATTERN,r2=a2.WEEKDAY_PATTERN;function Wy(e){return Math.pow(10,e)}function w5(e){return e!=null}nL.exports=function(t,r){r=r||{};var i=t._id||"x",a=i.charAt(0);function s(z,O){if(z>0)return Math.log(z)/Math.LN10;if(z<=0&&O&&t.range&&t.range.length===2){var H=t.range[0],V=t.range[1];return .5*(H+V-2*Vee*Math.abs(H-V))}else return Fu}function l(z,O,H,V){if((V||{}).msUTC&&Ef(z))return+z;var W=tL(z,H||t.calendar);if(W===Fu)if(Ef(z)){z=+z;var J=Math.floor(zi.mod(z+.05,1)*10),te=Math.round(z-J/10);W=tL(new Date(te))+J/10}else return Fu;return W}function f(z,O,H){return Uee(z,O,H||t.calendar)}function h(z){return t._categories[Math.round(z)]}function v(z){if(w5(z)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[z]!==void 0)return t._categoriesMap[z];t._categories.push(typeof z=="number"?String(z):z);var O=t._categories.length-1;return t._categoriesMap[z]=O,O}return Fu}function m(z,O){for(var H=new Array(O),V=0;Vt.range[1]&&(H=!H);for(var V=H?-1:1,W=V*z,J=0,te=0;teoe)J=te+1;else{J=W<(ne+oe)/2?te:te+1;break}}var fe=t._B[J]||0;return isFinite(fe)?C(z,t._m2,fe):0},I=function(z){var O=t._rangebreaks.length;if(!O)return D(z,t._m,t._b);for(var H=0,V=0;Vt._rangebreaks[V].pmax&&(H=V+1);return D(z,t._m2,t._B[H])}}t.c2l=t.type==="log"?s:Lf,t.l2c=t.type==="log"?Wy:Lf,t.l2p=E,t.p2l=I,t.c2p=t.type==="log"?function(z,O){return E(s(z,O))}:E,t.p2c=t.type==="log"?function(z){return Wy(I(z))}:I,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=Fh,t.c2d=t.c2r=t.l2d=t.l2r=Lf,t.d2p=t.r2p=function(z){return t.l2p(Fh(z))},t.p2d=t.p2r=I,t.cleanPos=Lf):t.type==="log"?(t.d2r=t.d2l=function(z,O){return s(Fh(z),O)},t.r2d=t.r2c=function(z){return Wy(Fh(z))},t.d2c=t.r2l=Fh,t.c2d=t.l2r=Lf,t.c2r=s,t.l2d=Wy,t.d2p=function(z,O){return t.l2p(t.d2r(z,O))},t.p2d=function(z){return Wy(I(z))},t.r2p=function(z){return t.l2p(Fh(z))},t.p2r=I,t.cleanPos=Lf):t.type==="date"?(t.d2r=t.r2d=zi.identity,t.d2c=t.r2c=t.d2l=t.r2l=l,t.c2d=t.c2r=t.l2d=t.l2r=f,t.d2p=t.r2p=function(z,O,H){return t.l2p(l(z,0,H))},t.p2d=t.p2r=function(z,O,H){return f(I(z),O,H)},t.cleanPos=function(z){return zi.cleanDate(z,Fu,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=v,t.r2d=t.c2d=t.l2d=h,t.d2r=t.d2l_noadd=T,t.r2c=function(z){var O=S(z);return O!==void 0?O:t.fraction2r(.5)},t.l2r=t.c2r=Lf,t.r2l=S,t.d2p=function(z){return t.l2p(t.r2c(z))},t.p2d=function(z){return h(I(z))},t.r2p=t.d2p,t.p2r=I,t.cleanPos=function(z){return typeof z=="string"&&z!==""?z:Lf(z)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=h,t.d2r=t.d2l_noadd=T,t.r2c=function(z){var O=T(z);return O!==void 0?O:t.fraction2r(.5)},t.r2c_just_indices=_,t.l2r=t.c2r=Lf,t.r2l=T,t.d2p=function(z){return t.l2p(t.r2c(z))},t.p2d=function(z){return h(I(z))},t.r2p=t.d2p,t.p2r=I,t.cleanPos=function(z){return Array.isArray(z)||typeof z=="string"&&z!==""?z:Lf(z)},t.setupMultiCategory=function(z){var O=t._traceIndices,H,V,W=t._matchGroup;if(W&&t._categories.length===0){for(var J in W)if(J!==i){var te=r[e2.id2name(J)];O=O.concat(te._traceIndices)}}var ne=[[0,{}],[0,{}]],oe=[];for(H=0;Hte[1]&&(V[J?0:1]=H),V[0]===V[1]){var ne=t.l2r(O),oe=t.l2r(H);if(O!==void 0){var fe=ne+1;H!==void 0&&(fe=Math.min(fe,oe)),V[J?1:0]=fe}if(H!==void 0){var de=oe+1;O!==void 0&&(de=Math.max(de,ne)),V[J?0:1]=de}}}},t.cleanRange=function(z,O){t._cleanRange(z,O),t.limitRange(z)},t._cleanRange=function(z,O){O||(O={}),z||(z="range");var H=zi.nestedProperty(t,z).get(),V,W;if(t.type==="date"?W=zi.dfltRange(t.calendar):a==="y"?W=a2.DFLTRANGEY:t._name==="realaxis"?W=[0,1]:W=O.dfltRange||a2.DFLTRANGEX,W=W.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(W[0]=0),!H||H.length!==2){zi.nestedProperty(t,z).set(W);return}var J=H[0]===null,te=H[1]===null;for(t.type==="date"&&!t.autorange&&(H[0]=zi.cleanDate(H[0],Fu,t.calendar),H[1]=zi.cleanDate(H[1],Fu,t.calendar)),V=0;V<2;V++)if(t.type==="date"){if(!zi.isDateTime(H[V],t.calendar)){t[z]=W;break}if(t.r2l(H[0])===t.r2l(H[1])){var ne=zi.constrain(t.r2l(H[0]),zi.MIN_MS+1e3,zi.MAX_MS-1e3);H[0]=t.l2r(ne-1e3),H[1]=t.l2r(ne+1e3);break}}else{if(!Ef(H[V]))if(!(J||te)&&Ef(H[1-V]))H[V]=H[1-V]*(V?10:.1);else{t[z]=W;break}if(H[V]<-K_?H[V]=-K_:H[V]>K_&&(H[V]=K_),H[0]===H[1]){var oe=Math.max(1,Math.abs(H[0]*1e-6));H[0]-=oe,H[1]+=oe}}},t.setScale=function(z){var O=r._size;if(t.overlaying){var H=e2.getFromId({_fullLayout:r},t.overlaying);t.domain=H.domain}var V=z&&t._r?"_r":"range",W=t.calendar;t.cleanRange(V);var J=t.r2l(t[V][0],W),te=t.r2l(t[V][1],W),ne=a==="y";if(ne?(t._offset=O.t+(1-t.domain[1])*O.h,t._length=O.h*(t.domain[1]-t.domain[0]),t._m=t._length/(J-te),t._b=-t._m*te):(t._offset=O.l+t.domain[0]*O.w,t._length=O.w*(t.domain[1]-t.domain[0]),t._m=t._length/(te-J),t._b=-t._m*J),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var oe,fe;if(t._rangebreaks=t.locateBreaks(Math.min(J,te),Math.max(J,te)),t._rangebreaks.length){for(oe=0;oete&&(de=!de),de&&t._rangebreaks.reverse();var Me=de?-1:1;for(t._m2=Me*t._length/(Math.abs(te-J)-t._lBreaks),t._B.push(-t._m2*(ne?te:J)),oe=0;oeW&&(W+=7,JW&&(W+=24,J=V&&J=V&&z=Ye.min&&(QeYe.max&&(Ye.max=st),at=!1)}at&&te.push({min:Qe,max:st})}};for(H=0;H{"use strict";var oL=Pa(),T5=Bt(),Gee=Hi().BADNUM,n2=T5.isArrayOrTypedArray,Zee=T5.isDateTime,Yee=T5.cleanNumber,sL=Math.round;uL.exports=function(t,r,i){var a=t,s=i.noMultiCategory;if(n2(a)&&!a.length)return"-";if(!s&&Kee(a))return"multicategory";if(s&&Array.isArray(a[0])){for(var l=[],f=0;fs*2}function lL(e){return Math.max(1,(e-1)/1e3)}function Jee(e,t){for(var r=e.length,i=lL(r),a=0,s=0,l={},f=0;fa*2}function Kee(e){return n2(e[0])&&n2(e[1])}});var Xy=pe((s1e,yL)=>{"use strict";var Qee=ja(),vL=Pa(),Nh=Bt(),o2=Hi().FP_SAFE,$ee=la(),ete=xi(),dL=$n(),tte=dL.getFromId,rte=dL.isLinked;yL.exports={applyAutorangeOptions:mL,getAutoRange:M5,makePadFn:S5,doAutoRange:ite,findExtremes:nte,concatExtremes:E5};function M5(e,t){var r,i,a=[],s=e._fullLayout,l=S5(s,t,0),f=S5(s,t,1),h=E5(e,t),v=h.min,m=h.max;if(v.length===0||m.length===0)return Nh.simpleMap(t.range,t.r2l);var _=v[0].val,T=m[0].val;for(r=1;r0&&(te=q-l(H)-f(V),te>z?ne/te>O&&(W=H,J=V,O=ne/te):ne/q>O&&(W={val:H.val,nopad:1},J={val:V.val,nopad:1},O=ne/q));function oe(Te,we){return Math.max(Te,f(we))}if(_===T){var fe=_-1,de=_+1;if(I)if(_===0)a=[0,1];else{var Me=(_>0?m:v).reduce(oe,0),Se=_/(1-Math.min(.5,Me/q));a=_>0?[0,Se]:[Se,0]}else B?a=[Math.max(0,fe),Math.max(1,de)]:a=[fe,de]}else I?(W.val>=0&&(W={val:0,nopad:1}),J.val<=0&&(J={val:0,nopad:1})):B&&(W.val-O*l(W)<0&&(W={val:0,nopad:1}),J.val<=0&&(J={val:1,nopad:1})),O=(J.val-W.val-fL(t,H.val,V.val))/(q-l(W)-f(J)),a=[W.val-O*l(W),J.val+O*f(J)];return a=mL(a,t),t.limitRange&&t.limitRange(),C&&a.reverse(),Nh.simpleMap(a,t.l2r||Number)}function fL(e,t,r){var i=0;if(e.rangebreaks)for(var a=e.locateBreaks(t,r),s=0;s0?r.ppadplus:r.ppadminus)||r.ppad||0),H=z((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),V=z(r.vpadplus||r.vpad),W=z(r.vpadminus||r.vpad);if(!v){if(B=1/0,q=-1/0,h)for(_=0;_0&&(B=T),T>q&&T-o2&&(B=T),T>q&&T=ne;_--)te(_);return{min:i,max:a,opts:r}}function k5(e,t,r,i){pL(e,t,r,i,ote)}function C5(e,t,r,i){pL(e,t,r,i,ste)}function pL(e,t,r,i,a){for(var s=i.tozero,l=i.extrapad,f=!0,h=0;h=r&&(v.extrapad||!l)){f=!1;break}else a(t,v.val)&&v.pad<=r&&(l||!v.extrapad)&&(e.splice(h,1),h--)}if(f){var m=s&&t===0;e.push({val:t,pad:m?0:r,extrapad:m?!1:l})}}function hL(e){return vL(e)&&Math.abs(e)=t}function lte(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&s2(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&s2(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function ute(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&s2(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&s2(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function s2(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=h&&(s=h,r=h),l<=h&&(l=h,i=h)}}return r=lte(r,t),i=ute(i,t),[r,i]}});var Yi=pe((l1e,BL)=>{"use strict";var Xl=ja(),qn=Pa(),R0=eo(),Jy=la(),ta=Bt(),F0=ta.strTranslate,gd=co(),fte=Yy(),Ky=Ua(),ol=xi(),cte=Ru(),gL=Yw(),So=Hi(),hte=So.ONEMAXYEAR,f2=So.ONEAVGYEAR,c2=So.ONEMINYEAR,vte=So.ONEMAXQUARTER,z5=So.ONEAVGQUARTER,h2=So.ONEMINQUARTER,dte=So.ONEMAXMONTH,q0=So.ONEAVGMONTH,v2=So.ONEMINMONTH,sl=So.ONEWEEK,as=So.ONEDAY,Bh=as/2,Pf=So.ONEHOUR,Qy=So.ONEMIN,d2=So.ONESEC,pte=So.ONEMILLI,mte=So.ONEMICROSEC,_d=So.MINUS_SIGN,y2=So.BADNUM,I5={K:"zeroline"},R5={K:"gridline",L:"path"},F5={K:"minor-gridline",L:"path"},EL={K:"tick",L:"path"},_L={K:"tick",L:"text"},xL={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},g2=ts(),jy=g2.MID_SHIFT,xd=g2.CAP_SHIFT,$y=g2.LINE_SPACING,yte=g2.OPPOSITE_SIDE,p2=3,er=BL.exports={};er.setConvert=i2();var gte=A5(),wc=$n(),_te=wc.idSort,xte=wc.isLinked;er.id2name=wc.id2name;er.name2id=wc.name2id;er.cleanId=wc.cleanId;er.list=wc.list;er.listIds=wc.listIds;er.getFromId=wc.getFromId;er.getFromTrace=wc.getFromTrace;var LL=Xy();er.getAutoRange=LL.getAutoRange;er.findExtremes=LL.findExtremes;var bte=1e-4;function O5(e){var t=(e[1]-e[0])*bte;return[e[0]-t,e[1]+t]}er.coerceRef=function(e,t,r,i,a,s){var l=i.charAt(i.length-1),f=r._fullLayout._subplots[l+"axis"],h=i+"ref",v={};return a||(a=f[0]||(typeof s=="string"?s:s[0])),s||(s=a),f=f.concat(f.map(function(m){return m+" domain"})),v[h]={valType:"enumerated",values:f.concat(s?typeof s=="string"?[s]:s:[]),dflt:a},ta.coerce(e,t,v,h)};er.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};er.coercePosition=function(e,t,r,i,a,s){var l,f,h=er.getRefType(i);if(h!=="range")l=ta.ensureNumber,f=r(a,s);else{var v=er.getFromId(t,i);s=v.fraction2r(s),f=r(a,s),l=v.cleanPos}e[a]=l(f)};er.cleanPosition=function(e,t,r){var i=r==="paper"||r==="pixel"?ta.ensureNumber:er.getFromId(t,r).cleanPos;return i(e)};er.redrawComponents=function(e,t){t=t||er.listIds(e);var r=e._fullLayout;function i(a,s,l,f){for(var h=Jy.getComponentMethod(a,s),v={},m=0;m2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};er.saveRangeInitial=function(e,t){for(var r=er.list(e,"",!0),i=!1,a=0;a_*.3||v(i)||v(a))){var T=r.dtick/2;e+=e+Tl){var f=Number(r.substr(1));s.exactYears>l&&f%12===0?e=er.tickIncrement(e,"M6","reverse")+as*1.5:s.exactMonths>l?e=er.tickIncrement(e,"M1","reverse")+as*15.5:e-=Bh;var h=er.tickIncrement(e,r);if(h<=i)return h}return e}er.prepMinorTicks=function(e,t,r){if(!t.minor.dtick){delete e.dtick;var i=t.dtick&&qn(t._tmin),a;if(i){var s=er.tickIncrement(t._tmin,t.dtick,!0);a=[t._tmin,s*.99+t._tmin*.01]}else{var l=ta.simpleMap(t.range,t.r2l);a=[l[0],.8*l[0]+.2*l[1]]}if(e.range=ta.simpleMap(a,t.l2r),e._isMinor=!0,er.prepTicks(e,r),i){var f=qn(t.dtick),h=qn(e.dtick),v=f?t.dtick:+t.dtick.substring(1),m=h?e.dtick:+e.dtick.substring(1);f&&h?L5(v,m)?v===2*sl&&m===2*as&&(e.dtick=sl):v===2*sl&&m===3*as?e.dtick=sl:v===sl&&!(t._input.minor||{}).nticks?e.dtick=as:TL(v/m,2.5)?e.dtick=v/2:e.dtick=v:String(t.dtick).charAt(0)==="M"?h?e.dtick="M1":L5(v,m)?v>=12&&m===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?L5(v,m)||(e.dtick=TL(v/m,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}t.minor._tick0Init===void 0&&(e.tick0=t.tick0)};function L5(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function TL(e,t){return Math.abs(e/t-1)<.001}er.prepTicks=function(e,t){var r=ta.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var i=e.nticks,a;i||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?ta.bigFont(e.tickfont.size||12):15,i=e._length/a):(a=e._id.charAt(0)==="y"?40:80,i=ta.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(i*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(i*=100),e._roughDTick=Math.abs(r[1]-r[0])/i,er.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(s=i-1,l=i):(s=i,l=i);var f=e[s].value,h=e[l].value,v=Math.abs(h-f),m=r||v,_=0;m>=c2?v>=c2&&v<=hte?_=v:_=f2:r===z5&&m>=h2?v>=h2&&v<=vte?_=v:_=z5:m>=v2?v>=v2&&v<=dte?_=v:_=q0:r===sl&&m>=sl?_=sl:m>=as?_=as:r===Bh&&m>=Bh?_=Bh:r===Pf&&m>=Pf&&(_=Pf);var T;_>=v&&(_=v,T=!0);var S=a+_;if(t.rangebreaks&&_>0){for(var C=84,D=0,E=0;Esl&&(_=v)}(_>0||i===0)&&(e[i].periodX=a+_/2)}}er.calcTicks=function(t,r){for(var i=t.type,a=t.calendar,s=t.ticklabelstep,l=t.ticklabelmode==="period",f=t.range[0]>t.range[1],h=!t.ticklabelindex||ta.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],v=ta.simpleMap(t.range,t.r2l,void 0,void 0,r),m=v[1]=(q?0:1);z--){var O=!z;z?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var H=z?t:ta.extendFlat({},t,t.minor);if(O?er.prepMinorTicks(H,t,r):er.prepTicks(H,r),H.tickmode==="array"){z?(E=[],C=AL(t,!O)):(I=[],D=AL(t,!O));continue}if(H.tickmode==="sync"){E=[],C=kte(t);continue}var V=O5(v),W=V[0],J=V[1],te=qn(H.dtick),ne=i==="log"&&!(te||H.dtick.charAt(0)==="L"),oe=er.tickFirst(H,r);if(z){if(t._tmin=oe,oe=J:de<=J;de=er.tickIncrement(de,Te,m,a)){if(z&&Me++,H.rangebreaks&&!m){if(de=T)break}if(E.length>S||de===fe)break;fe=de;var we={value:de};z?(ne&&de!==(de|0)&&(we.simpleLabel=!0),s>1&&Me%s&&(we.skipLabel=!0),E.push(we)):(we.minor=!0,I.push(we))}}if(!I||I.length<2)h=!1;else{var Ae=(I[1].value-I[0].value)*(f?-1:1);Kte(Ae,t.tickformat)||(h=!1)}if(!h)B=E;else{var Ce=E.concat(I);l&&E.length&&(Ce=Ce.slice(1)),Ce=Ce.sort(function(zt,Ut){return zt.value-Ut.value}).filter(function(zt,Ut,Et){return Ut===0||zt.value!==Et[Ut-1].value});var Le=Ce.map(function(zt,Ut){return zt.minor===void 0&&!zt.skipLabel?Ut:null}).filter(function(zt){return zt!==null});Le.forEach(function(zt){h.map(function(Ut){var Et=zt+Ut;Et>=0&&Et-1;Mt--){if(E[Mt].drop){E.splice(Mt,1);continue}E[Mt].value=P5(E[Mt].value,t);var me=t.c2p(E[Mt].value);(ct?Ie>me-ve:IeT||Ct<_)&&(Ct>T&&(Et.periodX=T),Ct<_&&(Et.periodX=_),pt(Et))),Et}var qt;for(Mt=0;Mta&&Tf2)t/=f2,i=a(10),e.dtick="M"+12*Df(t,i,l2);else if(s>q0)t/=q0,e.dtick="M"+Df(t,1,ML);else if(s>as){if(e.dtick=Df(t,as,e._hasDayOfWeekBreaks?[1,2,7,14]:Cte),!r){var l=er.getTickFormat(e),f=e.ticklabelmode==="period";f&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=ta.dateTick0(e.calendar,2):e.tick0=ta.dateTick0(e.calendar,1),f&&(e._dowTick0=e.tick0)}}else s>Pf?e.dtick=Df(t,Pf,ML):s>Qy?e.dtick=Df(t,Qy,SL):s>d2?e.dtick=Df(t,d2,SL):(i=a(10),e.dtick=Df(t,i,l2))}else if(e.type==="log"){e.tick0=0;var h=ta.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(h[1]-h[0])<1){var v=1.5*Math.abs((h[1]-h[0])/t);t=Math.abs(Math.pow(10,h[1])-Math.pow(10,h[0]))/v,i=a(10),e.dtick="L"+Df(t,i,l2)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):H5(e)?(e.tick0=0,i=1,e.dtick=Df(t,i,Ete)):(e.tick0=0,i=a(10),e.dtick=Df(t,i,l2));if(e.dtick===0&&(e.dtick=1),!qn(e.dtick)&&typeof e.dtick!="string"){var m=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(m)}};function IL(e){var t=e.dtick;if(e._tickexponent=0,!qn(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),i=e.l2r(r).replace(/(^-|i)/g,""),a=i.length;if(String(t).charAt(0)==="M")a>10||i.substr(5)!=="01-01"?e._tickround="d":e._tickround=+t.substr(1)%12===0?"y":"m";else if(t>=as&&a<=10||t>=as*15)e._tickround="d";else if(t>=Qy&&a<=16||t>=Pf)e._tickround="M";else if(t>=d2&&a<=19||t>=Qy)e._tickround="S";else{var s=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(a,s)-20,e._tickround<0&&(e._tickround=4)}}else if(qn(t)||t.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);qn(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var f=Math.max(Math.abs(l[0]),Math.abs(l[1])),h=Math.floor(Math.log(f)/Math.LN10+.01),v=e.minexponent===void 0?3:e.minexponent;Math.abs(h)>v&&(m2(e.exponentformat)&&!U5(h)?e._tickexponent=3*Math.round((h-1)/3):e._tickexponent=h)}else e._tickround=null}er.tickIncrement=function(e,t,r,i){var a=r?-1:1;if(qn(t))return ta.increment(e,a*t);var s=t.charAt(0),l=a*Number(t.substr(1));if(s==="M")return ta.incrementMonth(e,l,i);if(s==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(s==="D"){var f=t==="D2"?zL:PL,h=e+a*.01,v=ta.roundUp(ta.mod(h,1),f,r);return Math.floor(h)+Math.log(Xl.round(Math.pow(10,v),1))/Math.LN10}throw"unrecognized dtick "+String(t)};er.tickFirst=function(e,t){var r=e.r2l||Number,i=ta.simpleMap(e.range,r,void 0,void 0,t),a=i[1]=0&&I<=e._length?E:null};if(s&&ta.isArrayOrTypedArray(e.ticktext)){var _=ta.simpleMap(e.range,e.r2l),T=(Math.abs(_[1]-_[0])-(e._lBreaks||0))/1e4;for(v=0;v"+f;else{var v=tg(e),m=e._trueSide||e.side;(!v&&m==="top"||v&&m==="bottom")&&(l+="
")}t.text=l}function Dte(e,t,r,i,a){var s=e.dtick,l=t.x,f=e.tickformat,h=typeof s=="string"&&s.charAt(0);if(a==="never"&&(a=""),i&&h!=="L"&&(s="L3",h="L"),f||h==="L")t.text=eg(Math.pow(10,l),e,a,i);else if(qn(s)||h==="D"&&ta.mod(l+.01,1)<.1){var v=Math.round(l),m=Math.abs(v),_=e.exponentformat;_==="power"||m2(_)&&U5(v)?(v===0?t.text=1:v===1?t.text="10":t.text="10"+(v>1?"":_d)+m+"",t.fontSize*=1.25):(_==="e"||_==="E")&&m>2?t.text="1"+_+(v>0?"+":_d)+m:(t.text=eg(Math.pow(10,l),e,"","fakehover"),s==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(h==="D")t.text=String(Math.round(Math.pow(10,ta.mod(l,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(s);if(e.dtick==="D1"){var T=String(t.text).charAt(0);(T==="0"||T==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(l<0?.5:.25)))}}function Pte(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function zte(e,t,r){var i=Math.round(t.x),a=e._categories[i]||[],s=a[1]===void 0?"":String(a[1]),l=a[0]===void 0?"":String(a[0]);r?t.text=l+" - "+s:(t.text=s,t.text2=l)}function Ite(e,t,r,i,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(a="hide"),t.text=eg(t.x,e,a,i)}function Rte(e,t,r,i,a){if(e.thetaunit==="radians"&&!r){var s=t.x/180;if(s===0)t.text="0";else{var l=Fte(s);if(l[1]>=100)t.text=eg(ta.deg2rad(t.x),e,a,i);else{var f=t.x<0;l[1]===1?l[0]===1?t.text="\u03C0":t.text=l[0]+"\u03C0":t.text=["",l[0],"","\u2044","",l[1],"","\u03C0"].join(""),f&&(t.text=_d+t.text)}}}else t.text=eg(t.x,e,a,i)}function Fte(e){function t(f,h){return Math.abs(f-h)<=1e-6}function r(f,h){return t(h,0)?f:r(h,f%h)}function i(f){for(var h=1;!t(Math.round(f*h)/h,f);)h*=10;return h}var a=i(e),s=e*a,l=Math.abs(r(s,a));return[Math.round(s/l),Math.round(a/l)]}var qte=["f","p","n","\u03BC","m","","k","M","G","T"];function m2(e){return e==="SI"||e==="B"}function U5(e){return e>14||e<-15}function eg(e,t,r,i){var a=e<0,s=t._tickround,l=r||t.exponentformat||"B",f=t._tickexponent,h=er.getTickFormat(t),v=t.separatethousands;if(i){var m={exponentformat:l,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:qn(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};IL(m),s=(Number(m._tickround)||0)+4,f=m._tickexponent,t.hoverformat&&(h=t.hoverformat)}if(h)return t._numFormat(h)(e).replace(/-/g,_d);var _=Math.pow(10,-s)/2;if(l==="none"&&(f=0),e=Math.abs(e),e<_)e="0",a=!1;else{if(e+=_,f&&(e*=Math.pow(10,-f),s+=f),s===0)e=String(Math.floor(e));else if(s<0){e=String(Math.round(e)),e=e.substr(0,e.length+s);for(var T=s;T<0;T++)e+="0"}else{e=String(e);var S=e.indexOf(".")+1;S&&(e=e.substr(0,S+s).replace(/\.?0+$/,""))}e=ta.numSeparate(e,t._separators,v)}if(f&&l!=="hide"){m2(l)&&U5(f)&&(l="power");var C;f<0?C=_d+-f:l!=="power"?C="+"+f:C=String(f),l==="e"||l==="E"?e+=l+C:l==="power"?e+="\xD710"+C+"":l==="B"&&f===9?e+="B":m2(l)&&(e+=qte[f/3+5])}return a?_d+e:e}er.getTickFormat=function(e){var t;function r(h){return typeof h!="string"?h:Number(h.replace("M",""))*q0}function i(h,v){var m=["L","D"];if(typeof h==typeof v){if(typeof h=="number")return h-v;var _=m.indexOf(h.charAt(0)),T=m.indexOf(v.charAt(0));return _===T?Number(h.replace(/(L|D)/g,""))-Number(v.replace(/(L|D)/g,"")):_-T}else return typeof h=="number"?1:-1}function a(h,v,m){var _=m||function(C){return C},T=v[0],S=v[1];return(!T&&typeof T!="number"||_(T)<=_(h))&&(!S&&typeof S!="number"||_(S)>=_(h))}function s(h,v){var m=v[0]===null,_=v[1]===null,T=i(h,v[0])>=0,S=i(h,v[1])<=0;return(m||T)&&(_||S)}var l,f;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&a.unshift(a.splice(m,1).shift())}});var f={false:{left:0,right:0}};return ta.syncOrAsync(a.map(function(h){return function(){if(h){var v=er.getFromId(e,h);r||(r={}),r.axShifts=f,r.overlayingShiftedAx=l;var m=er.drawOne(e,v,r);return v._shiftPusher&&B5(v,v._fullDepth||0,f,!0),v._r=v.range.slice(),v._rl=ta.simpleMap(v._r,v.r2l),m}}}))};er.drawOne=function(e,t,r){r=r||{};var i=r.axShifts||{},a=r.overlayingShiftedAx||[],s,l,f;t.setScale();var h=e._fullLayout,v=t._id,m=v.charAt(0),_=er.counterLetter(v),T=h._plots[t._mainSubplot],S=t.zerolinelayer==="above traces";if(!T)return;if(t._shiftPusher=t.autoshift||a.indexOf(t._id)!==-1||a.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var C=t.linewidth/2||0;t.ticks==="inside"&&(C+=t.ticklen),B5(t,C,i,!0),B5(t,t.shift||0,i,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=Jte(t,i));var D=T[m+"axislayer"],E=t._mainLinePosition,I=E+=t._shift,B=t._mainMirrorPosition,q=t._vals=er.calcTicks(t),z=[t.mirror,I,B].join("_");for(s=0;s0?Ct.bottom-Ut:0,Et))));var ut=0,gt=0;if(t._shiftPusher&&(ut=Math.max(Et,Ct.height>0?Tt==="l"?Ut-Ct.left:Ct.right-Ut:0),t.title.text!==h._dfltTitle[m]&&(gt=(t._titleStandoff||0)+(t._titleScoot||0),Tt==="l"&&(gt+=CL(t))),t._fullDepth=Math.max(ut,gt)),t.automargin){Yt={x:0,y:0,r:0,l:0,t:0,b:0};var xr=[0,1],vr=typeof t._shift=="number"?t._shift:0;if(m==="x"){if(Tt==="b"?Yt[Tt]=t._depth:(Yt[Tt]=t._depth=Math.max(Ct.width>0?Ut-Ct.top:0,Et),xr.reverse()),Ct.width>0){var wt=Ct.right-(t._offset+t._length);wt>0&&(Yt.xr=1,Yt.r=wt);var bt=t._offset-Ct.left;bt>0&&(Yt.xl=0,Yt.l=bt)}}else if(Tt==="l"?(t._depth=Math.max(Ct.height>0?Ut-Ct.left:0,Et),Yt[Tt]=t._depth-vr):(t._depth=Math.max(Ct.height>0?Ct.right-Ut:0,Et),Yt[Tt]=t._depth+vr,xr.reverse()),Ct.height>0){var Ht=Ct.bottom-(t._offset+t._length);Ht>0&&(Yt.yb=0,Yt.b=Ht);var Xt=t._offset-Ct.top;Xt>0&&(Yt.yt=1,Yt.t=Xt)}Yt[_]=t.anchor==="free"?t.position:t._anchorAxis.domain[xr[0]],t.title.text!==h._dfltTitle[m]&&(Yt[Tt]+=CL(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(Vt={x:0,y:0,r:0,l:0,t:0,b:0},Vt[zt]=t.linewidth,t.mirror&&t.mirror!==!0&&(Vt[zt]+=Et),t.mirror===!0||t.mirror==="ticks"?Vt[_]=t._anchorAxis.domain[xr[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(Vt[_]=[t._counterDomainMin,t._counterDomainMax][xr[1]]))}It&&(Ne=Jy.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(kL(Yt,t.automargin),kL(Vt,t.automargin)),R0.autoMargin(e,V5(t),Yt),R0.autoMargin(e,qL(t),Vt),R0.autoMargin(e,NL(t),Ne)}),ta.syncOrAsync(je)}};function kL(e,t){if(e){var r=Object.keys(xL).reduce(function(i,a){return t.indexOf(a)!==-1&&xL[a].forEach(function(s){i[s]=1}),i},{});Object.keys(e).forEach(function(i){r[i]||(i.length===1?e[i]=0:delete e[i])})}}function Nte(e,t){var r=[],i,a=function(s,l){var f=s.xbnd[l];f!==null&&r.push(ta.extendFlat({},s,{x:f}))};if(t.length){for(i=0;ie.range[1],f=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,h=!f;if(r){var v=l?-1:1;r=r*v}if(i){var m=e.side,_=f&&(m==="top"||m==="left")||h&&(m==="bottom"||m==="right")?1:-1;i=i*_}return e._id.charAt(0)==="x"?function(T){return F0(a+e._offset+e.l2p(q5(T))+r,s+i)}:function(T){return F0(s+i,a+e._offset+e.l2p(q5(T))+r)}};function q5(e){return e.periodX!==void 0?e.periodX:e.x}function Vte(e){var t=e.ticklabelposition||"",r=e.tickson||"",i=function(C){return t.indexOf(C)!==-1},a=i("top"),s=i("left"),l=i("right"),f=i("bottom"),h=i("inside"),v=r!=="boundaries"&&(f||s||a||l);if(!v&&!h)return[0,0];var m=e.side,_=v?(e.tickwidth||0)/2:0,T=p2,S=e.tickfont?e.tickfont.size:12;return(f||a)&&(_+=S*xd,T+=(e.linewidth||0)/2),(s||l)&&(_+=(e.linewidth||0)/2,T+=p2),h&&m==="top"&&(T-=S*(1-xd)),(s||a)&&(_=-_),(m==="bottom"||m==="right")&&(T=-T),[v?_:0,h?T:0]}er.makeTickPath=function(e,t,r,i){i||(i={});var a=i.minor;if(a&&!e.minor)return"";var s=i.len!==void 0?i.len:a?e.minor.ticklen:e.ticklen,l=e._id.charAt(0),f=(e.linewidth||1)/2;return l==="x"?"M0,"+(t+f*r)+"v"+s*r:"M"+(t+f*r)+",0h"+s*r};er.makeLabelFns=function(e,t,r){var i=e.ticklabelposition||"",a=e.tickson||"",s=function(fe){return i.indexOf(fe)!==-1},l=s("top"),f=s("left"),h=s("right"),v=s("bottom"),m=a!=="boundaries"&&(v||f||l||h),_=s("inside"),T=i==="inside"&&e.ticks==="inside"||!_&&e.ticks==="outside"&&a!=="boundaries",S=0,C=0,D=T?e.ticklen:0;if(_?D*=-1:m&&(D=0),T&&(S+=D,r)){var E=ta.deg2rad(r);S=D*Math.cos(E)+1,C=D*Math.sin(E)}e.showticklabels&&(T||e.showline)&&(S+=.2*e.tickfont.size),S+=(e.linewidth||1)/2*(_?-1:1);var I={labelStandoff:S,labelShift:C},B,q,z,O,H=0,V=e.side,W=e._id.charAt(0),J=e.tickangle,te;if(W==="x")te=!_&&V==="bottom"||_&&V==="top",O=te?1:-1,_&&(O*=-1),B=C*O,q=t+S*O,z=te?1:-.2,Math.abs(J)===90&&(_?z+=jy:J===-90&&V==="bottom"?z=xd:J===90&&V==="top"?z=jy:z=.5,H=jy/2*(J/90)),I.xFn=function(fe){return fe.dx+B+H*fe.fontSize},I.yFn=function(fe){return fe.dy+q+fe.fontSize*z},I.anchorFn=function(fe,de){if(m){if(f)return"end";if(h)return"start"}return!qn(de)||de===0||de===180?"middle":de*O<0!==_?"end":"start"},I.heightFn=function(fe,de,Me){return de<-60||de>60?-.5*Me:e.side==="top"!==_?-Me:0};else if(W==="y"){if(te=!_&&V==="left"||_&&V==="right",O=te?1:-1,_&&(O*=-1),B=S,q=C*O,z=0,!_&&Math.abs(J)===90&&(J===-90&&V==="left"||J===90&&V==="right"?z=xd:z=.5),_){var ne=qn(J)?+J:0;if(ne!==0){var oe=ta.deg2rad(ne);H=Math.abs(Math.sin(oe))*xd*O,z=0}}I.xFn=function(fe){return fe.dx+t-(B+fe.fontSize*z)*O+H*fe.fontSize},I.yFn=function(fe){return fe.dy+q+fe.fontSize*jy},I.anchorFn=function(fe,de){return qn(de)&&Math.abs(de)===90?"middle":te?"end":"start"},I.heightFn=function(fe,de,Me){return e.side==="right"&&(de*=-1),de<-30?-Me:de<30?-.5*Me:0}}return I};function _2(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}er.drawTicks=function(e,t,r){r=r||{};var i=t._id+"tick",a=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(t.ticks?r.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),s=r.layer.selectAll("path."+i).data(a,_2);s.exit().remove(),s.enter().append("path").classed(i,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(l){return Ky.stroke(Xl.select(this),l.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(l){return ol.crispRound(e,l.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),x2(t,[EL]),s.attr("transform",r.transFn)};er.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var i=t._id+"grid",a=t.minor&&t.minor.showgrid,s=a?r.vals.filter(function(I){return I.minor}):[],l=t.showgrid?r.vals.filter(function(I){return!I.minor}):[],f=r.counterAxis;if(f&&er.shouldShowZeroLine(e,t,f))for(var h=t.tickmode==="array",v=0;v=0;C--){var D=C?T:S;if(D){var E=D.selectAll("path."+i).data(C?l:s,_2);E.exit().remove(),E.enter().append("path").classed(i,1).classed("crisp",r.crisp!==!1),E.attr("transform",r.transFn).attr("d",r.path).each(function(I){return Ky.stroke(Xl.select(this),I.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(I){return ol.dashStyle(I.minor?t.minor.griddash:t.griddash,I.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(I){return(I.minor?_:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&E.attr("d",r.path)}}x2(t,[R5,F5])}};er.drawZeroLine=function(e,t,r){r=r||r;var i=t._id+"zl",a=er.shouldShowZeroLine(e,t,r.counterAxis),s=r.layer.selectAll("path."+i).data(a?[{x:0,id:t._id}]:[]);s.exit().remove(),s.enter().append("path").classed(i,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(l,f){return _te(l.id,f.id)})}),s.attr("transform",r.transFn).attr("d",r.path).call(Ky.stroke,t.zerolinecolor||Ky.defaultLine).style("stroke-width",ol.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),x2(t,[I5])};er.drawLabels=function(e,t,r){r=r||{};var i=e._fullLayout,a=t._id,s=t.zerolinelayer==="above traces",l=r.cls||a+"tick",f=r.vals.filter(function(Ae){return Ae.text}),h=r.labelFns,v=r.secondary?0:t.tickangle,m=(t._prevTickAngles||{})[l],_=r.layer.selectAll("g."+l).data(t.showticklabels?f:[],_2),T=[];_.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(Ae){var Ce=Xl.select(this),Le=e._promises.length;Ce.call(gd.positionText,h.xFn(Ae),h.yFn(Ae)).call(ol.font,{family:Ae.font,size:Ae.fontSize,color:Ae.fontColor,weight:Ae.fontWeight,style:Ae.fontStyle,variant:Ae.fontVariant,textcase:Ae.fontTextcase,lineposition:Ae.fontLineposition,shadow:Ae.fontShadow}).text(Ae.text).call(gd.convertToTspans,e),e._promises[Le]?T.push(e._promises.pop().then(function(){S(Ce,v)})):S(Ce,v)}),x2(t,[_L]),_.exit().remove(),r.repositionOnUpdate&&_.each(function(Ae){Xl.select(this).select("text").call(gd.positionText,h.xFn(Ae),h.yFn(Ae))});function S(Ae,Ce){Ae.each(function(Le){var Qe=Xl.select(this),st=Qe.select(".text-math-group"),at=h.anchorFn(Le,Ce),mt=r.transFn.call(Qe.node(),Le)+(qn(Ce)&&+Ce!=0?" rotate("+Ce+","+h.xFn(Le)+","+(h.yFn(Le)-Le.fontSize/2)+")":""),Ye=gd.lineCount(Qe),At=$y*Le.fontSize,it=h.heightFn(Le,qn(Ce)?+Ce:0,(Ye-1)*At);if(it&&(mt+=F0(0,it)),st.empty()){var dt=Qe.select("text");dt.attr({transform:mt,"text-anchor":at}),dt.style("opacity",1),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var Mt=ol.bBox(st.node()).width,ct=Mt*{end:-.5,start:.5}[at];st.attr("transform",mt+F0(ct,0))}})}t._adjustTickLabelsOverflow=function(){var Ae=t.ticklabeloverflow;if(!(!Ae||Ae==="allow")){var Ce=Ae.indexOf("hide")!==-1,Le=t._id.charAt(0)==="x",Qe=0,st=Le?e._fullLayout.width:e._fullLayout.height;if(Ae.indexOf("domain")!==-1){var at=ta.simpleMap(t.range,t.r2l);Qe=t.l2p(at[0])+t._offset,st=t.l2p(at[1])+t._offset}var mt=Math.min(Qe,st),Ye=Math.max(Qe,st),At=t.side,it=1/0,dt=-1/0;_.each(function(Ie){var me=Xl.select(this),rt=me.select(".text-math-group");if(rt.empty()){var pt=ol.bBox(me.node()),je=0;Le?(pt.right>Ye||pt.leftYe||pt.top+(t.tickangle?0:Ie.fontSize/4)t["_visibleLabelMin_"+at._id]?me.style("display","none"):Ye.K==="tick"&&!mt&&me.style("display",null)})})})})},S(_,m+1?m:v);function C(){return T.length&&Promise.all(T)}var D=null;function E(){if(S(_,v),f.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){D=t.autotickangles[0];var Ae=0,Ce=[],Le,Qe=1;_.each(function(Yt){Ae=Math.max(Ae,Yt.fontSize);var Vt=t.l2p(Yt.x),Ne=N5(this),ut=ol.bBox(Ne.node());Qe=Math.max(Qe,gd.lineCount(Ne)),Ce.push({top:0,bottom:10,height:10,left:Vt-ut.width/2,right:Vt+ut.width/2+2,width:ut.width+2})});var st=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,at=f.length,mt=Math.abs((f[at-1].x-f[0].x)*t._m)/(at-1),Ye=st?mt/2:mt,At=st?t.ticklen:Ae*1.25*Qe,it=Math.sqrt(Math.pow(Ye,2)+Math.pow(At,2)),dt=Ye/it,Mt=t.autotickangles.map(function(Yt){return Yt*Math.PI/180}),ct=Mt.find(function(Yt){return Math.abs(Math.cos(Yt))<=dt});ct===void 0&&(ct=Mt.reduce(function(Yt,Vt){return Math.abs(Math.cos(Yt))Se*Me&&(oe=Me,J[W]=te[W]=fe[W])}var Te=Math.abs(oe-ne);Te-O>0?(Te-=O,O*=1+O/Te):O=0,t._id.charAt(0)!=="y"&&(O=-O),J[V]=q.p2r(q.r2p(te[V])+H*O),q.autorange==="min"||q.autorange==="max reversed"?(J[0]=null,q._rangeInitial0=void 0,q._rangeInitial1=void 0):(q.autorange==="max"||q.autorange==="min reversed")&&(J[1]=null,q._rangeInitial0=void 0,q._rangeInitial1=void 0),i._insideTickLabelsUpdaterange[q._name+".range"]=J}var we=ta.syncOrAsync(I);return we&&we.then&&e._promises.push(we),we};function Hte(e,t,r){var i=t._id+"divider",a=r.vals,s=r.layer.selectAll("path."+i).data(a,_2);s.exit().remove(),s.enter().insert("path",":first-child").classed(i,1).classed("crisp",1).call(Ky.stroke,t.dividercolor).style("stroke-width",ol.crispRound(e,t.dividerwidth,1)+"px"),s.attr("transform",r.transFn).attr("d",r.path)}er.getPxPosition=function(e,t){var r=e._fullLayout._size,i=t._id.charAt(0),a=t.side,s;if(t.anchor!=="free"?s=t._anchorAxis:i==="x"?s={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:i==="y"&&(s={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),a==="top"||a==="left")return s._offset;if(a==="bottom"||a==="right")return s._offset+s._length};function CL(e){var t=e.title.font.size,r=(e.title.text.match(gd.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(xd+r*$y):r?t*(r+1)*$y:t}function Gte(e,t){var r=e._fullLayout,i=t._id,a=i.charAt(0),s=t.title.font.size,l,f=(t.title.text.match(gd.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?l=t._depth+t.title.standoff+s*xd:(t.side==="top"||t.side==="left")&&(l=t._depth+t.title.standoff+s*(jy+f*$y));else{var h=tg(t);if(t.type==="multicategory")l=t._depth;else{var v=1.5*s;h&&(v=.5*s,t.ticks==="outside"&&(v+=t.ticklen)),l=10+v+(t.linewidth?t.linewidth-1:0)}h||(a==="x"?l+=t.side==="top"?s*(t.showticklabels?1:0):s*(t.showticklabels?1.5:.5):l+=t.side==="right"?s*(t.showticklabels?1:.5):s*(t.showticklabels?.5:0))}var m=er.getPxPosition(e,t),_,T,S;a==="x"?(T=t._offset+t._length/2,S=t.side==="top"?m-l:m+l):(S=t._offset+t._length/2,T=t.side==="right"?m+l:m-l,_={rotate:"-90",offset:0});var C;if(t.type!=="multicategory"){var D=t._selections[t._id+"tick"];if(C={selection:D,side:t.side},D&&D.node()&&D.node().parentNode){var E=ol.getTranslate(D.node().parentNode);C.offsetLeft=E.x,C.offsetTop=E.y}t.title.hasOwnProperty("standoff")&&(C.pad=0)}return t._titleStandoff=l,fte.draw(e,i+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[a],avoid:C,transform:_,attributes:{x:T,y:S,"text-anchor":"middle"}})}er.shouldShowZeroLine=function(e,t,r){var i=ta.simpleMap(t.range,t.r2l);return i[0]*i[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===y2)&&(FL(t,0)||!Zte(e,t,r,i)||Yte(e,t))};er.clipEnds=function(e,t){return t.filter(function(r){return FL(e,r.x)})};function FL(e,t){var r=e.l2p(t);return r>1&&r1)for(a=1;a=a.min&&e=mte:/%L/.test(t)?e>=pte:/%[SX]/.test(t)?e>=d2:/%M/.test(t)?e>=Qy:/%[HI]/.test(t)?e>=Pf:/%p/.test(t)?e>=Bh:/%[Aadejuwx]/.test(t)?e>=as:/%[UVW]/.test(t)?e>=sl:/%[Bbm]/.test(t)?e>=v2:/%[q]/.test(t)?e>=h2:/%[Yy]/.test(t)?e>=c2:!0}});var UL=pe((u1e,OL)=>{"use strict";OL.exports=function(t,r,i){var a,s;if(i){var l=r==="reversed"||r==="min reversed"||r==="max reversed";a=i[l?1:0],s=i[l?0:1]}var f=t("autorangeoptions.minallowed",s===null?a:void 0),h=t("autorangeoptions.maxallowed",a===null?s:void 0);f===void 0&&t("autorangeoptions.clipmin"),h===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var G5=pe((f1e,VL)=>{"use strict";var Qte=UL();VL.exports=function(t,r,i,a){var s=r._template||{},l=r.type||s.type||"-";i("minallowed"),i("maxallowed");var f=i("range");if(!f){var h;!a.noInsiderange&&l!=="log"&&(h=i("insiderange"),h&&(h[0]===null||h[1]===null)&&(r.insiderange=!1,h=void 0),h&&(f=i("range",h)))}var v=r.getAutorangeDflt(f,a),m=i("autorange",v),_;f&&(f[0]===null&&f[1]===null||(f[0]===null||f[1]===null)&&(m==="reversed"||m===!0)||f[0]!==null&&(m==="min"||m==="max reversed")||f[1]!==null&&(m==="max"||m==="min reversed"))&&(f=void 0,delete r.range,r.autorange=!0,_=!0),_||(v=r.getAutorangeDflt(f,a),m=i("autorange",v)),m&&(Qte(i,m,f),(l==="linear"||l==="-")&&i("rangemode")),r.cleanRange()}});var GL=pe((c1e,HL)=>{var $te={left:0,top:0};HL.exports=ere;function ere(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var i=e.clientX||0,a=e.clientY||0,s=tre(t);return r[0]=i-s.left,r[1]=a-s.top,r}function tre(e){return e===window||e===document||e===document.body?$te:e.getBoundingClientRect()}});var Z5=pe((h1e,ZL)=>{"use strict";var rre=xw();function are(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}ZL.exports=rre&&are()});var WL=pe((v1e,YL)=>{"use strict";YL.exports=function(t,r,i,a,s){var l=(t-i)/(a-i),f=l+r/(a-i),h=(l+f)/2;return s==="left"||s==="bottom"?l:s==="center"||s==="middle"?h:s==="right"||s==="top"?f:l<2/3-h?l:f>4/3-h?f:h}});var JL=pe((d1e,jL)=>{"use strict";var XL=Bt(),ire=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];jL.exports=function(t,r,i,a){return i==="left"?t=0:i==="center"?t=1:i==="right"?t=2:t=XL.constrain(Math.floor(t*3),0,2),a==="bottom"?r=0:a==="middle"?r=1:a==="top"?r=2:r=XL.constrain(Math.floor(r*3),0,2),ire[r][t]}});var QL=pe((p1e,KL)=>{"use strict";var nre=qy(),ore=b_(),sre=Ey().getGraphDiv,lre=ky(),Y5=KL.exports={};Y5.wrapped=function(e,t,r){e=sre(e),e._fullLayout&&ore.clear(e._fullLayout._uid+lre.HOVERID),Y5.raw(e,t,r)};Y5.raw=function(t,r){var i=t._fullLayout,a=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&nre.triggerHandler(t,"plotly_beforehover",r)===!1)&&(i._hoverlayer.selectAll("g").remove(),i._hoverlayer.selectAll("line").remove(),i._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&a&&t.emit("plotly_unhover",{event:r,points:a}))}});var jl=pe((m1e,rD)=>{"use strict";var ure=GL(),W5=ww(),fre=Z5(),cre=Bt().removeElement,hre=Ao(),bd=rD.exports={};bd.align=WL();bd.getCursor=JL();var eD=QL();bd.unhover=eD.wrapped;bd.unhoverRaw=eD.raw;bd.init=function(t){var r=t.gd,i=1,a=r._context.doubleClickDelay,s=t.element,l,f,h,v,m,_,T,S;r._mouseDownTime||(r._mouseDownTime=0),s.style.pointerEvents="all",s.onmousedown=E,fre?(s._ontouchstart&&s.removeEventListener("touchstart",s._ontouchstart),s._ontouchstart=E,s.addEventListener("touchstart",E,{passive:!1})):s.ontouchstart=E;function C(q,z,O){return Math.abs(q)a&&(i=Math.max(i-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var z;_.target===T?z=_:(z={target:T,srcElement:T,toElement:T},Object.keys(_).concat(Object.keys(_.__proto__)).forEach(O=>{var H=_[O];!z[O]&&typeof H!="function"&&(z[O]=H)})),t.clickFn&&t.clickFn(i,z),S||T.dispatchEvent(new MouseEvent("click",q))}r._dragging=!1,r._dragged=!1}};function tD(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}bd.coverSlip=tD;function $L(e){return ure(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Oh=pe((y1e,aD)=>{"use strict";aD.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(i){i.indexOf("cursor-")===0&&t.classed(i,!1)}),r&&t.classed("cursor-"+r,!0)}});var oD=pe((g1e,nD)=>{"use strict";var X5=Oh(),rg="data-savedcursor",iD="!!";nD.exports=function(t,r){var i=t.attr(rg);if(r){if(!i){for(var a=(t.attr("class")||"").split(" "),s=0;s{"use strict";var j5=qo(),vre=Af();sD.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:vre.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:j5({editType:"legend"}),grouptitlefont:j5({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:j5({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var w2=pe(b2=>{"use strict";b2.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};b2.isVertical=function(t){return t.orientation!=="h"};b2.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1}});var $5=pe((b1e,lD)=>{"use strict";var K5=la(),ll=Bt(),dre=Pi(),pre=ms(),mre=J5(),yre=d0(),Q5=w2();function gre(e,t,r,i){var a=t[e]||{},s=dre.newContainer(r,e);function l(Te,we){return ll.coerce(a,s,mre,Te,we)}var f=ll.coerceFont(l,"font",r.font);l("bgcolor",r.paper_bgcolor),l("bordercolor");var h=l("visible");if(h){for(var v,m=function(Te,we){var Ae=v._input,Ce=v;return ll.coerce(Ae,Ce,pre,Te,we)},_=r.font||{},T=ll.coerceFont(l,"grouptitlefont",_,{overrideDflt:{size:Math.round(_.size*1.1)}}),S=0,C=!1,D="normal",E=(r.shapes||[]).filter(function(Te){return Te.showlegend}),I=i.concat(E).filter(function(Te){return e===(Te.legend||"legend")}),B=0;B(e==="legend"?1:0));if(z===!1&&(r[e]=void 0),!(z===!1&&!a.uirevision)&&(l("uirevision",r.uirevision),z!==!1)){l("borderwidth");var O=l("orientation"),H=l("yref"),V=l("xref"),W=O==="h",J=H==="paper",te=V==="paper",ne,oe,fe,de="left";W?(ne=0,K5.getComponentMethod("rangeslider","isVisible")(t.xaxis)?J?(oe=1.1,fe="bottom"):(oe=1,fe="top"):J?(oe=-.1,fe="top"):(oe=0,fe="bottom")):(oe=1,fe="auto",te?ne=1.02:(ne=1,de="right")),ll.coerce(a,s,{x:{valType:"number",editType:"legend",min:te?-2:0,max:te?3:1,dflt:ne}},"x"),ll.coerce(a,s,{y:{valType:"number",editType:"legend",min:J?-2:0,max:J?3:1,dflt:oe}},"y"),l("traceorder",D),Q5.isGrouped(r[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",de),l("yanchor",fe),l("maxheight",W?.5:1),l("valign"),ll.noneOrAll(a,s,["x","y"]);var Me=l("title.text");if(Me){l("title.side",W?"left":"top");var Se=ll.extendFlat({},f,{size:ll.bigFont(f.size)});ll.coerceFont(l,"title.font",Se)}}}}lD.exports=function(t,r,i){var a,s=i.slice(),l=r.shapes;if(l)for(a=0;a{"use strict";var N0=la(),t4=Bt(),_re=t4.pushUnique,e4=!0;uD.exports=function(t,r,i){var a=r._fullLayout;if(r._dragged||r._editing)return;var s=a.legend.itemclick,l=a.legend.itemdoubleclick,f=a.legend.groupclick;i===1&&s==="toggle"&&l==="toggleothers"&&e4&&r.data&&r._context.showTips&&t4.notifier(t4._(r,"Double-click on legend to isolate one trace"),"long"),e4=!1;var h;if(i===1?h=s:i===2&&(h=l),!h)return;var v=f==="togglegroup",m=a.hiddenlabels?a.hiddenlabels.slice():[],_=t.data()[0][0];if(_.groupTitle&&_.noClick)return;var T=r._fullData,S=(a.shapes||[]).filter(function(zt){return zt.showlegend}),C=T.concat(S),D=_.trace;D._isShape&&(D=D._fullInput);var E=D.legendgroup,I,B,q,z,O,H,V={},W=[],J=[],te=[];function ne(zt,Ut){var Et=W.indexOf(zt),Ct=V.visible;return Ct||(Ct=V.visible=[]),W.indexOf(zt)===-1&&(W.push(zt),Et=W.length-1),Ct[Et]=Ut,Et}var oe=(a.shapes||[]).map(function(zt){return zt._input}),fe=!1;function de(zt,Ut){oe[zt].visible=Ut,fe=!0}function Me(zt,Ut){if(!(_.groupTitle&&!v)){var Et=zt._fullInput||zt,Ct=Et._isShape,Yt=Et.index;Yt===void 0&&(Yt=Et._index);var Vt=Et.visible===!1?!1:Ut;Ct?de(Yt,Vt):ne(Yt,Vt)}}var Se=D.legend,Te=D._fullInput,we=Te&&Te._isShape;if(!we&&N0.traceIs(D,"pie-like")){var Ae=_.label,Ce=m.indexOf(Ae);if(h==="toggle")Ce===-1?m.push(Ae):m.splice(Ce,1);else if(h==="toggleothers"){var Le=Ce!==-1,Qe=[];for(I=0;I{"use strict";cD.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var dD=pe((A1e,vD)=>{"use strict";var hD=la(),a4=w2();vD.exports=function(t,r,i){var a=r._inHover,s=a4.isGrouped(r),l=a4.isReversed(r),f={},h=[],v=!1,m={},_=0,T=0,S,C;function D(Te,we,Ae){if(r.visible!==!1&&!(i&&Te!==r._id))if(we===""||!a4.isGrouped(r)){var Ce="~~i"+_;h.push(Ce),f[Ce]=[Ae],_++}else h.indexOf(we)===-1?(h.push(we),v=!0,f[we]=[Ae]):f[we].push(Ae)}for(S=0;Ste&&(J=te)}V[S][0]._groupMinRank=J,V[S][0]._preGroupSort=S}var ne=function(Te,we){return Te[0]._groupMinRank-we[0]._groupMinRank||Te[0]._preGroupSort-we[0]._preGroupSort},oe=function(Te,we){return Te.trace.legendrank-we.trace.legendrank||Te._preSort-we._preSort};for(V.forEach(function(Te,we){Te[0]._preGroupSort=we}),V.sort(ne),S=0;S{"use strict";var T2=Bt();function pD(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}wd.formatPiePercent=function(t,r){var i=pD((t*100).toPrecision(3));return T2.numSeparate(i,r)+"%"};wd.formatPieValue=function(t,r){var i=pD(t.toPrecision(10));return T2.numSeparate(i,r)};wd.getFirstFilled=function(t,r){if(T2.isArrayOrTypedArray(t))for(var i=0;i{"use strict";var xre=xi(),bre=Ua();mD.exports=function(t,r,i,a){var s=i.marker.pattern;s&&s.shape?xre.pointStyle(t,i,a,r):bre.fill(t,r.color)}});var bD=pe((k1e,xD)=>{"use strict";var gD=Ua(),_D=i4().castOption,wre=yD();xD.exports=function(t,r,i,a){var s=i.marker.line,l=_D(s.color,r.pts)||gD.defaultLine,f=_D(s.width,r.pts)||0;t.call(wre,r,i,a).style("stroke-width",f).call(gD.stroke,l)}});var l4=pe((C1e,kD)=>{"use strict";var is=ja(),n4=la(),Bo=Bt(),wD=Bo.strTranslate,ul=xi(),Jl=Ua(),o4=kf().extractOpts,A2=rs(),Tre=bD(),Are=i4().castOption,Mre=r4(),TD=12,AD=5,Td=2,Sre=10,B0=5;kD.exports=function(t,r,i){var a=r._fullLayout;i||(i=a.legend);var s=i.itemsizing==="constant",l=i.itemwidth,f=(l+Mre.itemGap*2)/2,h=wD(f,0),v=function(V,W,J,te){var ne;if(V+1)ne=V;else if(W&&W.width>0)ne=W.width;else return 0;return s?te:Math.min(ne,J)};t.each(function(V){var W=is.select(this),J=Bo.ensureSingle(W,"g","layers");J.style("opacity",V[0].trace.opacity);var te=i.indentation,ne=i.valign,oe=V[0].lineHeight,fe=V[0].height;if(ne==="middle"&&te===0||!oe||!fe)J.attr("transform",null);else{var de={top:1,bottom:-1}[ne],Me=de*(.5*(oe-fe+3))||0,Se=i.indentation;J.attr("transform",wD(Se,Me))}var Te=J.selectAll("g.legendfill").data([V]);Te.enter().append("g").classed("legendfill",!0);var we=J.selectAll("g.legendlines").data([V]);we.enter().append("g").classed("legendlines",!0);var Ae=J.selectAll("g.legendsymbols").data([V]);Ae.enter().append("g").classed("legendsymbols",!0),Ae.selectAll("g.legendpoints").data([V]).enter().append("g").classed("legendpoints",!0)}).each(H).each(T).each(C).each(S).each(E).each(z).each(q).each(m).each(_).each(I).each(B);function m(V){var W=MD(V),J=W.showFill,te=W.showLine,ne=W.showGradientLine,oe=W.showGradientFill,fe=W.anyFill,de=W.anyLine,Me=V[0],Se=Me.trace,Te,we,Ae=o4(Se),Ce=Ae.colorscale,Le=Ae.reversescale,Qe=function(dt){if(dt.size())if(J)ul.fillGroupStyle(dt,r,!0);else{var Mt="legendfill-"+Se.uid;ul.gradient(dt,r,Mt,s4(Le),Ce,"fill")}},st=function(dt){if(dt.size()){var Mt="legendline-"+Se.uid;ul.lineGroupStyle(dt),ul.gradient(dt,r,Mt,s4(Le),Ce,"stroke")}},at=A2.hasMarkers(Se)||!fe?"M5,0":de?"M5,-2":"M5,-3",mt=is.select(this),Ye=mt.select(".legendfill").selectAll("path").data(J||oe?[V]:[]);if(Ye.enter().append("path").classed("js-fill",!0),Ye.exit().remove(),Ye.attr("d",at+"h"+l+"v6h-"+l+"z").call(Qe),te||ne){var At=v(void 0,Se.line,Sre,AD);we=Bo.minExtend(Se,{line:{width:At}}),Te=[Bo.minExtend(Me,{trace:we})]}var it=mt.select(".legendlines").selectAll("path").data(te||ne?[Te]:[]);it.enter().append("path").classed("js-line",!0),it.exit().remove(),it.attr("d",at+(ne?"l"+l+",0.0001":"h"+l)).call(te?ul.lineGroupStyle:st)}function _(V){var W=MD(V),J=W.anyFill,te=W.anyLine,ne=W.showLine,oe=W.showMarker,fe=V[0],de=fe.trace,Me=!oe&&!te&&!J&&A2.hasText(de),Se,Te;function we(Ye,At,it,dt){var Mt=Bo.nestedProperty(de,Ye).get(),ct=Bo.isArrayOrTypedArray(Mt)&&At?At(Mt):Mt;if(s&&ct&&dt!==void 0&&(ct=dt),it){if(ctit[1])return it[1]}return ct}function Ae(Ye){return fe._distinct&&fe.index&&Ye[fe.index]?Ye[fe.index]:Ye[0]}if(oe||Me||ne){var Ce={},Le={};if(oe){Ce.mc=we("marker.color",Ae),Ce.mx=we("marker.symbol",Ae),Ce.mo=we("marker.opacity",Bo.mean,[.2,1]),Ce.mlc=we("marker.line.color",Ae),Ce.mlw=we("marker.line.width",Bo.mean,[0,5],Td),Le.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Qe=we("marker.size",Bo.mean,[2,16],TD);Ce.ms=Qe,Le.marker.size=Qe}ne&&(Le.line={width:we("line.width",Ae,[0,10],AD)}),Me&&(Ce.tx="Aa",Ce.tp=we("textposition",Ae),Ce.ts=10,Ce.tc=we("textfont.color",Ae),Ce.tf=we("textfont.family",Ae),Ce.tw=we("textfont.weight",Ae),Ce.ty=we("textfont.style",Ae),Ce.tv=we("textfont.variant",Ae),Ce.tC=we("textfont.textcase",Ae),Ce.tE=we("textfont.lineposition",Ae),Ce.tS=we("textfont.shadow",Ae)),Se=[Bo.minExtend(fe,Ce)],Te=Bo.minExtend(de,Le),Te.selectedpoints=null,Te.texttemplate=null}var st=is.select(this).select("g.legendpoints"),at=st.selectAll("path.scatterpts").data(oe?Se:[]);at.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",h),at.exit().remove(),at.call(ul.pointStyle,Te,r),oe&&(Se[0].mrc=3);var mt=st.selectAll("g.pointtext").data(Me?Se:[]);mt.enter().append("g").classed("pointtext",!0).append("text").attr("transform",h),mt.exit().remove(),mt.selectAll("text").call(ul.textPointStyle,Te,r)}function T(V){var W=V[0].trace,J=W.type==="waterfall";if(V[0]._distinct&&J){var te=V[0].trace[V[0].dir].marker;return V[0].mc=te.color,V[0].mlw=te.line.width,V[0].mlc=te.line.color,D(V,this,"waterfall")}var ne=[];W.visible&&J&&(ne=V[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var oe=is.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(ne);oe.enter().append("path").classed("legendwaterfall",!0).attr("transform",h).style("stroke-miterlimit",1),oe.exit().remove(),oe.each(function(fe){var de=is.select(this),Me=W[fe[0]].marker,Se=v(void 0,Me.line,B0,Td);de.attr("d",fe[1]).style("stroke-width",Se+"px").call(Jl.fill,Me.color),Se&&de.call(Jl.stroke,Me.line.color)})}function S(V){D(V,this)}function C(V){D(V,this,"funnel")}function D(V,W,J){var te=V[0].trace,ne=te.marker||{},oe=ne.line||{},fe=ne.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",de=J?te.visible&&te.type===J:n4.traceIs(te,"bar"),Me=is.select(W).select("g.legendpoints").selectAll("path.legend"+J).data(de?[V]:[]);Me.enter().append("path").classed("legend"+J,!0).attr("d",fe).attr("transform",h),Me.exit().remove(),Me.each(function(Se){var Te=is.select(this),we=Se[0],Ae=v(we.mlw,ne.line,B0,Td);Te.style("stroke-width",Ae+"px");var Ce=we.mcc;if(!i._inHover&&"mc"in we){var Le=o4(ne),Qe=Le.mid;Qe===void 0&&(Qe=(Le.max+Le.min)/2),Ce=ul.tryColorscale(ne,"")(Qe)}var st=Ce||we.mc||ne.color,at=ne.pattern,mt=ul.getPatternAttr,Ye=at&&(mt(at.shape,0,"")||mt(at.path,0,""));if(Ye){var At=mt(at.bgcolor,0,null),it=mt(at.fgcolor,0,null),dt=at.fgopacity,Mt=SD(at.size,8,10),ct=SD(at.solidity,.5,1),ve="legend-"+te.uid;Te.call(ul.pattern,"legend",r,ve,Ye,Mt,ct,Ce,at.fillmode,At,it,dt)}else Te.call(Jl.fill,st);Ae&&Jl.stroke(Te,we.mlc||oe.color)})}function E(V){var W=V[0].trace,J=is.select(this).select("g.legendpoints").selectAll("path.legendbox").data(W.visible&&n4.traceIs(W,"box-violin")?[V]:[]);J.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",h),J.exit().remove(),J.each(function(){var te=is.select(this);if((W.boxpoints==="all"||W.points==="all")&&Jl.opacity(W.fillcolor)===0&&Jl.opacity((W.line||{}).color)===0){var ne=Bo.minExtend(W,{marker:{size:s?TD:Bo.constrain(W.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});J.call(ul.pointStyle,ne,r)}else{var oe=v(void 0,W.line,B0,Td);te.style("stroke-width",oe+"px").call(Jl.fill,W.fillcolor),oe&&Jl.stroke(te,W.line.color)}})}function I(V){var W=V[0].trace,J=is.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(W.visible&&W.type==="candlestick"?[V,V]:[]);J.enter().append("path").classed("legendcandle",!0).attr("d",function(te,ne){return ne?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",h).style("stroke-miterlimit",1),J.exit().remove(),J.each(function(te,ne){var oe=is.select(this),fe=W[ne?"increasing":"decreasing"],de=v(void 0,fe.line,B0,Td);oe.style("stroke-width",de+"px").call(Jl.fill,fe.fillcolor),de&&Jl.stroke(oe,fe.line.color)})}function B(V){var W=V[0].trace,J=is.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(W.visible&&W.type==="ohlc"?[V,V]:[]);J.enter().append("path").classed("legendohlc",!0).attr("d",function(te,ne){return ne?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",h).style("stroke-miterlimit",1),J.exit().remove(),J.each(function(te,ne){var oe=is.select(this),fe=W[ne?"increasing":"decreasing"],de=v(void 0,fe.line,B0,Td);oe.style("fill","none").call(ul.dashLine,fe.line.dash,de),de&&Jl.stroke(oe,fe.line.color)})}function q(V){O(V,this,"pie")}function z(V){O(V,this,"funnelarea")}function O(V,W,J){var te=V[0],ne=te.trace,oe=J?ne.visible&&ne.type===J:n4.traceIs(ne,J),fe=is.select(W).select("g.legendpoints").selectAll("path.legend"+J).data(oe?[V]:[]);if(fe.enter().append("path").classed("legend"+J,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",h),fe.exit().remove(),fe.size()){var de=ne.marker||{},Me=v(Are(de.line.width,te.pts),de.line,B0,Td),Se="pieLike",Te=Bo.minExtend(ne,{marker:{line:{width:Me}}},Se),we=Bo.minExtend(te,{trace:Te},Se);Tre(fe,we,Te,r)}}function H(V){var W=V[0].trace,J,te=[];if(W.visible)switch(W.type){case"histogram2d":case"heatmap":te=[["M-15,-2V4H15V-2Z"]],J=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":te=[["M-6,-6V6H6V-6Z"]],J=!0;break;case"densitymapbox":case"densitymap":te=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],J="radial";break;case"cone":te=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],J=!1;break;case"streamtube":te=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],J=!1;break;case"surface":te=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],J=!0;break;case"mesh3d":te=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],J=!1;break;case"volume":te=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],J=!0;break;case"isosurface":te=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],J=!1;break}var ne=is.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(te);ne.enter().append("path").classed("legend3dandfriends",!0).attr("transform",h).style("stroke-miterlimit",1),ne.exit().remove(),ne.each(function(oe,fe){var de=is.select(this),Me=o4(W),Se=Me.colorscale,Te=Me.reversescale,we=function(Qe){if(Qe.size()){var st="legendfill-"+W.uid;ul.gradient(Qe,r,st,s4(Te,J==="radial"),Se,"fill")}},Ae;if(Se){if(!J){var Le=Se.length;Ae=fe===0?Se[Te?Le-1:0][1]:fe===1?Se[Te?0:Le-1][1]:Se[Math.floor((Le-1)/2)][1]}}else{var Ce=W.vertexcolor||W.facecolor||W.color;Ae=Bo.isArrayOrTypedArray(Ce)?Ce[fe]||Ce[0]:Ce}de.attr("d",oe[0]),Ae?de.call(Jl.fill,Ae):de.call(we)})}};function s4(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function MD(e){var t=e[0].trace,r=t.contours,i=A2.hasLines(t),a=A2.hasMarkers(t),s=t.visible&&t.fill&&t.fill!=="none",l=!1,f=!1;if(r){var h=r.coloring;h==="lines"?l=!0:i=h==="none"||h==="heatmap"||r.showlines,r.type==="constraint"?s=r._operation!=="=":(h==="fill"||h==="heatmap")&&(f=!0)}return{showMarker:a,showLine:i,showFill:s,showGradientLine:l,showGradientFill:f,anyLine:i||l,anyFill:s||f}}function SD(e,t,r){return e&&Bo.isArrayOrTypedArray(e)?t:e>r?r:e}});var h4=pe((E1e,qD)=>{"use strict";var Bs=ja(),Nn=Bt(),f4=eo(),V0=la(),CD=qy(),u4=jl(),Bn=xi(),S2=Ua(),Ad=co(),ED=fD(),Wn=r4(),c4=ts(),RD=c4.LINE_SPACING,U0=c4.FROM_TL,LD=c4.FROM_BR,DD=dD(),kre=l4(),PD=w2(),O0=1,Cre=/^legend[0-9]*$/;qD.exports=function(t,r){if(r)zD(t,r);else{var i=t._fullLayout,a=i._legends,s=i._infolayer.selectAll('[class^="legend"]');s.each(function(){var v=Bs.select(this),m=v.attr("class"),_=m.split(" ")[0];_.match(Cre)&&a.indexOf(_)===-1&&v.remove()});for(var l=0;l1)}var C=i.hiddenlabels||[];if(!f&&(!i.showlegend||!h.length))return l.selectAll("."+a).remove(),i._topdefs.select("#"+s).remove(),f4.autoMargin(e,a);var D=Nn.ensureSingle(l,"g",a,function(W){f||W.attr("pointer-events","all")}),E=Nn.ensureSingleById(i._topdefs,"clipPath",s,function(W){W.append("rect")}),I=Nn.ensureSingle(D,"rect","bg",function(W){W.attr("shape-rendering","crispEdges")});I.call(S2.stroke,r.bordercolor).call(S2.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var B=Nn.ensureSingle(D,"g","scrollbox"),q=r.title;r._titleWidth=0,r._titleHeight=0;var z;q.text?(z=Nn.ensureSingle(B,"text",a+"titletext"),z.attr("text-anchor","start").call(Bn.font,q.font).text(q.text),k2(z,B,e,r,O0)):B.selectAll("."+a+"titletext").remove();var O=Nn.ensureSingle(D,"rect","scrollbar",function(W){W.attr(Wn.scrollBarEnterAttrs).call(S2.fill,Wn.scrollBarColor)}),H=B.selectAll("g.groups").data(h);H.enter().append("g").attr("class","groups"),H.exit().remove();var V=H.selectAll("g.traces").data(Nn.identity);V.enter().append("g").attr("class","traces"),V.exit().remove(),V.style("opacity",function(W){var J=W[0].trace;return V0.traceIs(J,"pie-like")?C.indexOf(W[0].label)!==-1?.5:1:J.visible==="legendonly"?.5:1}).each(function(){Bs.select(this).call(Lre,e,r)}).call(kre,e,r).each(function(){f||Bs.select(this).call(Dre,e,a)}),Nn.syncOrAsync([f4.previousPromises,function(){return Ire(e,H,V,r)},function(){var W=i._size,J=r.borderwidth,te=r.xref==="paper",ne=r.yref==="paper";if(q.text&&Ere(z,r,J),!f){var oe,fe;te?oe=W.l+W.w*r.x-U0[C2(r)]*r._width:oe=i.width*r.x-U0[C2(r)]*r._width,ne?fe=W.t+W.h*(1-r.y)-U0[E2(r)]*r._effHeight:fe=i.height*(1-r.y)-U0[E2(r)]*r._effHeight;var de=Rre(e,a,oe,fe);if(de)return;if(i.margin.autoexpand){var Me=oe,Se=fe;oe=te?Nn.constrain(oe,0,i.width-r._width):Me,fe=ne?Nn.constrain(fe,0,i.height-r._effHeight):Se,oe!==Me&&Nn.log("Constrain "+a+".x to make legend fit inside graph"),fe!==Se&&Nn.log("Constrain "+a+".y to make legend fit inside graph")}Bn.setTranslate(D,oe,fe)}if(O.on(".drag",null),D.on("wheel",null),f||r._height<=r._maxHeight||e._context.staticPlot){var Te=r._effHeight;f&&(Te=r._height),I.attr({width:r._width-J,height:Te-J,x:J/2,y:J/2}),Bn.setTranslate(B,0,0),E.select("rect").attr({width:r._width-2*J,height:Te-2*J,x:J,y:J}),Bn.setClipUrl(B,s,e),Bn.setRect(O,0,0,0,0),delete r._scrollY}else{var we=Math.max(Wn.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),Ae=r._effHeight-we-2*Wn.scrollBarMargin,Ce=r._height-r._effHeight,Le=Ae/Ce,Qe=Math.min(r._scrollY||0,Ce);I.attr({width:r._width-2*J+Wn.scrollBarWidth+Wn.scrollBarMargin,height:r._effHeight-J,x:J/2,y:J/2}),E.select("rect").attr({width:r._width-2*J+Wn.scrollBarWidth+Wn.scrollBarMargin,height:r._effHeight-2*J,x:J,y:J+Qe}),Bn.setClipUrl(B,s,e),Mt(Qe,we,Le),D.on("wheel",function(){Qe=Nn.constrain(r._scrollY+Bs.event.deltaY/Ae*Ce,0,Ce),Mt(Qe,we,Le),Qe!==0&&Qe!==Ce&&Bs.event.preventDefault()});var st,at,mt,Ye=function(rt,pt,je){var qt=(je-pt)/Le+rt;return Nn.constrain(qt,0,Ce)},At=function(rt,pt,je){var qt=(pt-je)/Le+rt;return Nn.constrain(qt,0,Ce)},it=Bs.behavior.drag().on("dragstart",function(){var rt=Bs.event.sourceEvent;rt.type==="touchstart"?st=rt.changedTouches[0].clientY:st=rt.clientY,mt=Qe}).on("drag",function(){var rt=Bs.event.sourceEvent;rt.buttons===2||rt.ctrlKey||(rt.type==="touchmove"?at=rt.changedTouches[0].clientY:at=rt.clientY,Qe=Ye(mt,st,at),Mt(Qe,we,Le))});O.call(it);var dt=Bs.behavior.drag().on("dragstart",function(){var rt=Bs.event.sourceEvent;rt.type==="touchstart"&&(st=rt.changedTouches[0].clientY,mt=Qe)}).on("drag",function(){var rt=Bs.event.sourceEvent;rt.type==="touchmove"&&(at=rt.changedTouches[0].clientY,Qe=At(mt,st,at),Mt(Qe,we,Le))});B.call(dt)}function Mt(rt,pt,je){r._scrollY=e._fullLayout[a]._scrollY=rt,Bn.setTranslate(B,0,-rt),Bn.setRect(O,r._width,Wn.scrollBarMargin+rt*je,Wn.scrollBarWidth,pt),E.select("rect").attr("y",J+rt)}if(e._context.edits.legendPosition){var ct,ve,Ie,me;D.classed("cursor-move",!0),u4.init({element:D.node(),gd:e,prepFn:function(rt){if(rt.target!==O.node()){var pt=Bn.getTranslate(D);Ie=pt.x,me=pt.y}},moveFn:function(rt,pt){if(Ie!==void 0&&me!==void 0){var je=Ie+rt,qt=me+pt;Bn.setTranslate(D,je,qt),ct=u4.align(je,r._width,W.l,W.l+W.w,r.xanchor),ve=u4.align(qt+r._height,-r._height,W.t+W.h,W.t,r.yanchor)}},doneFn:function(){if(ct!==void 0&&ve!==void 0){var rt={};rt[a+".x"]=ct,rt[a+".y"]=ve,V0.call("_guiRelayout",e,rt)}},clickFn:function(rt,pt){var je=l.selectAll("g.traces").filter(function(){var qt=this.getBoundingClientRect();return pt.clientX>=qt.left&&pt.clientX<=qt.right&&pt.clientY>=qt.top&&pt.clientY<=qt.bottom});je.size()>0&&FD(e,D,je,rt,pt)}})}}],e)}}function M2(e,t,r){var i=e[0],a=i.width,s=t.entrywidthmode,l=i.trace.legendwidth||t.entrywidth;return s==="fraction"?t._maxWidth*l:r+(l||a)}function FD(e,t,r,i,a){var s=r.data()[0][0].trace,l={event:a,node:r.node(),curveNumber:s.index,expandedIndex:s.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};s._group&&(l.group=s._group),V0.traceIs(s,"pie-like")&&(l.label=r.datum()[0].label);var f=CD.triggerHandler(e,"plotly_legendclick",l);if(i===1){if(f===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&ED(r,e,i)},e._context.doubleClickDelay)}else if(i===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var h=CD.triggerHandler(e,"plotly_legenddoubleclick",l);h!==!1&&f!==!1&&ED(r,e,i)}}function Lre(e,t,r){var i=L2(r),a=e.data()[0][0],s=a.trace,l=V0.traceIs(s,"pie-like"),f=!r._inHover&&t._context.edits.legendText&&!l,h=r._maxNameLength,v,m;a.groupTitle?(v=a.groupTitle.text,m=a.groupTitle.font):(m=r.font,r.entries?v=a.text:(v=l?a.label:s.name,s._meta&&(v=Nn.templateString(v,s._meta))));var _=Nn.ensureSingle(e,"text",i+"text");_.attr("text-anchor","start").call(Bn.font,m).text(f?ID(v,h):v);var T=r.indentation+r.itemwidth+Wn.itemGap*2;Ad.positionText(_,T,0),f?_.call(Ad.makeEditable,{gd:t,text:v}).call(k2,e,t,r).on("edit",function(S){this.text(ID(S,h)).call(k2,e,t,r);var C=a.trace._fullInput||{},D={};return D.name=S,C._isShape?V0.call("_guiRelayout",t,"shapes["+s.index+"].name",D.name):V0.call("_guiRestyle",t,D,s.index)}):k2(_,e,t,r)}function ID(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var i=r-e.length;i>0;i--)e+=" ";return e}function Dre(e,t,r){var i=t._context.doubleClickDelay,a,s=1,l=Nn.ensureSingle(e,"rect",r+"toggle",function(f){t._context.staticPlot||f.style("cursor","pointer").attr("pointer-events","all"),f.call(S2.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(l.on("mousedown",function(){a=new Date().getTime(),a-t._legendMouseDownTimei&&(s=Math.max(s-1,1)),FD(t,f,e,s,Bs.event)}}))}function k2(e,t,r,i,a){i._inHover&&e.attr("data-notex",!0),Ad.convertToTspans(e,r,function(){Pre(t,r,i,a)})}function Pre(e,t,r,i){var a=e.data()[0][0];if(!r._inHover&&a&&!a.trace.showlegend){e.remove();return}var s=e.select("g[class*=math-group]"),l=s.node(),f=L2(r);r||(r=t._fullLayout[f]);var h=r.borderwidth,v;i===O0?v=r.title.font:a.groupTitle?v=a.groupTitle.font:v=r.font;var m=v.size*RD,_,T;if(l){var S=Bn.bBox(l);_=S.height,T=S.width,i===O0?Bn.setTranslate(s,h,h+_*.75):Bn.setTranslate(s,0,_*.25)}else{var C="."+f+(i===O0?"title":"")+"text",D=e.select(C),E=Ad.lineCount(D),I=D.node();if(_=m*E,T=I?Bn.bBox(I).width:0,i===O0)r.title.side==="left"&&(T+=Wn.itemGap*2),Ad.positionText(D,h+Wn.titlePad,h+m);else{var B=Wn.itemGap*2+r.indentation+r.itemwidth;a.groupTitle&&(B=Wn.itemGap,T-=r.indentation+r.itemwidth),Ad.positionText(D,B,-m*((E-1)/2-.3))}}i===O0?(r._titleWidth=T,r._titleHeight=_):(a.lineHeight=m,a.height=Math.max(_,16)+3,a.width=T)}function zre(e){var t=0,r=0,i=e.title.side;return i&&(i.indexOf("left")!==-1&&(t=e._titleWidth),i.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function Ire(e,t,r,i){var a=e._fullLayout,s=L2(i);i||(i=a[s]);var l=a._size,f=PD.isVertical(i),h=PD.isGrouped(i),v=i.entrywidthmode==="fraction",m=i.borderwidth,_=2*m,T=Wn.itemGap,S=i.indentation+i.itemwidth+T*2,C=2*(m+T),D=E2(i),E=i.y<0||i.y===0&&D==="top",I=i.y>1||i.y===1&&D==="bottom",B=i.tracegroupgap,q={},{maxheight:z,orientation:O,yref:H}=i,V=O==="v"&&H==="paper"?l.h:a.height;i._maxHeight=Math.max(z>1?z:z*V,30);var W=0;i._width=0,i._height=0;var J=zre(i);if(f)r.each(function(dt){var Mt=dt[0].height;Bn.setTranslate(this,m+J[0],m+J[1]+i._height+Mt/2+T),i._height+=Mt,i._width=Math.max(i._width,dt[0].width)}),W=S+i._width,i._width+=T+S+_,i._height+=C,h&&(t.each(function(dt,Mt){Bn.setTranslate(this,0,Mt*i.tracegroupgap)}),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var te=C2(i),ne=i.x<0||i.x===0&&te==="right",oe=i.x>1||i.x===1&&te==="left",fe=I||E,de=a.width/2;i._maxWidth=Math.max(ne?fe&&te==="left"?l.l+l.w:de:oe?fe&&te==="right"?l.r+l.w:de:l.w,2*S);var Me=0,Se=0;r.each(function(dt){var Mt=M2(dt,i,S);Me=Math.max(Me,Mt),Se+=Mt}),W=null;var Te=0;if(h){var we=0,Ae=0,Ce=0;t.each(function(){var dt=0,Mt=0;Bs.select(this).selectAll("g.traces").each(function(ve){var Ie=M2(ve,i,S),me=ve[0].height;Bn.setTranslate(this,J[0],J[1]+m+T+me/2+Mt),Mt+=me,dt=Math.max(dt,Ie),q[ve[0].trace.legendgroup]=dt});var ct=dt+T;Ae>0&&ct+m+Ae>i._maxWidth?(Te=Math.max(Te,Ae),Ae=0,Ce+=we+B,we=Mt):we=Math.max(we,Mt),Bn.setTranslate(this,Ae,Ce),Ae+=ct}),i._width=Math.max(Te,Ae)+m,i._height=Ce+we+C}else{var Le=r.size(),Qe=Se+_+(Le-1)*T=i._maxWidth&&(Te=Math.max(Te,Ye),at=0,mt+=st,i._height+=st,st=0),Bn.setTranslate(this,J[0]+m+at,J[1]+m+mt+Mt/2+T),Ye=at+ct+T,at+=ve,st=Math.max(st,Mt)}),Qe?(i._width=at+_,i._height=st+C):(i._width=Math.max(Te,Ye)+_,i._height+=st+C)}}i._width=Math.ceil(Math.max(i._width+J[0],i._titleWidth+2*(m+Wn.titlePad))),i._height=Math.ceil(Math.max(i._height+J[1],i._titleHeight+2*(m+Wn.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var At=e._context.edits,it=At.legendText||At.legendPosition;r.each(function(dt){var Mt=Bs.select(this).select("."+s+"toggle"),ct=dt[0].height,ve=dt[0].trace.legendgroup,Ie=M2(dt,i,S);h&&ve!==""&&(Ie=q[ve]);var me=it?S:W||Ie;!f&&!v&&(me+=T/2),Bn.setRect(Mt,0,-ct/2,me,ct)})}function Rre(e,t,r,i){var a=e._fullLayout,s=a[t],l=C2(s),f=E2(s),h=s.xref==="paper",v=s.yref==="paper";e._fullLayout._reservedMargin[t]={};var m=s.y<.5?"b":"t",_=s.x<.5?"l":"r",T={r:a.width-r,l:r+s._width,b:a.height-i,t:i+s._effHeight};if(h&&v)return f4.autoMargin(e,t,{x:s.x,y:s.y,l:s._width*U0[l],r:s._width*LD[l],b:s._effHeight*LD[f],t:s._effHeight*U0[f]});h?e._fullLayout._reservedMargin[t][m]=T[m]:v||s.orientation==="v"?e._fullLayout._reservedMargin[t][_]=T[_]:e._fullLayout._reservedMargin[t][m]=T[m]}function C2(e){return Nn.isRightAnchor(e)?"right":Nn.isCenterAnchor(e)?"center":"left"}function E2(e){return Nn.isBottomAnchor(e)?"bottom":Nn.isMiddleAnchor(e)?"middle":"top"}function L2(e){return e._id||"legend"}});var m4=pe(p4=>{"use strict";var Md=ja(),Tc=Pa(),ND=Tf(),vn=Bt(),Fre=vn.pushUnique,v4=vn.strTranslate,qre=vn.strRotate,Nre=qy(),Kl=co(),Bre=oD(),zf=xi(),ro=Ua(),D2=jl(),If=Yi(),Ore=Ao().zindexSeparator,G0=la(),qu=bc(),Sd=ky(),Ure=$5(),Vre=h4(),YD=Sd.YANGLE,d4=Math.PI*YD/180,Hre=1/Math.sin(d4),Gre=Math.cos(d4),Zre=Math.sin(d4),ji=Sd.HOVERARROWSIZE,qa=Sd.HOVERTEXTPAD,BD={box:!0,ohlc:!0,violin:!0,candlestick:!0},Yre={scatter:!0,scattergl:!0,splom:!0};function OD(e,t){return e.distance-t.distance}p4.hover=function(t,r,i,a){t=vn.getGraphDiv(t);var s=r.target;vn.throttle(t._fullLayout._uid+Sd.HOVERID,Sd.HOVERMINTIME,function(){Wre(t,r,i,a,s)})};p4.loneHover=function(t,r){var i=!0;Array.isArray(t)||(i=!1,t=[t]);var a=r.gd,s=KD(a),l=QD(a),f=t.map(function(E){var I=E._x0||E.x0||E.x||0,B=E._x1||E.x1||E.x||0,q=E._y0||E.y0||E.y||0,z=E._y1||E.y1||E.y||0,O=E.eventData;if(O){var H=Math.min(I,B),V=Math.max(I,B),W=Math.min(q,z),J=Math.max(q,z),te=E.trace;if(G0.traceIs(te,"gl3d")){var ne=a._fullLayout[te.scene]._scene.container,oe=ne.offsetLeft,fe=ne.offsetTop;H+=oe,V+=oe,W+=fe,J+=fe}O.bbox={x0:H+l,x1:V+l,y0:W+s,y1:J+s},r.inOut_bbox&&r.inOut_bbox.push(O.bbox)}else O=!1;return{color:E.color||ro.defaultLine,x0:E.x0||E.x||0,x1:E.x1||E.x||0,y0:E.y0||E.y||0,y1:E.y1||E.y||0,xLabel:E.xLabel,yLabel:E.yLabel,zLabel:E.zLabel,text:E.text,name:E.name,idealAlign:E.idealAlign,borderColor:E.borderColor,fontFamily:E.fontFamily,fontSize:E.fontSize,fontColor:E.fontColor,fontWeight:E.fontWeight,fontStyle:E.fontStyle,fontVariant:E.fontVariant,nameLength:E.nameLength,textAlign:E.textAlign,trace:E.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:E.hovertemplate||!1,hovertemplateLabels:E.hovertemplateLabels||!1,eventData:O}}),h=!1,v=XD(f,{gd:a,hovermode:"closest",rotateLabels:h,bgColor:r.bgColor||ro.background,container:Md.select(r.container),outerContainer:r.outerContainer||r.container}),m=v.hoverLabels,_=5,T=0,S=0;m.sort(function(E,I){return E.y0-I.y0}).each(function(E,I){var B=E.y0-E.by/2;B-_V[0]._length||me<0||me>W[0]._length)return D2.unhoverRaw(e,t)}if(t.pointerX=Ie+V[0]._offset,t.pointerY=me+W[0]._offset,"xval"in t?Se=qu.flat(s,t.xval):Se=qu.p2c(V,Ie),"yval"in t?Te=qu.flat(s,t.yval):Te=qu.p2c(W,me),!Tc(Se[0])||!Tc(Te[0]))return vn.warn("Fx.hover failed",t,e),D2.unhoverRaw(e,t)}var je=1/0;function qt(Gr,Qa){for(Ae=0;Aeit&&(de.splice(0,it),je=de[0].distance),_&&fe!==0&&de.length===0){At.distance=fe,At.index=!1;var ee=Le._module.hoverPoints(At,mt,Ye,"closest",{hoverLayer:f._hoverlayer});if(ee&&(ee=ee.filter(function(Ve){return Ve.spikeDistance<=fe})),ee&&ee.length){var se,ce=ee.filter(function(Ve){return Ve.xa.showspikes&&Ve.xa.spikesnap!=="hovered data"});if(ce.length){var Ee=ce[0];Tc(Ee.x0)&&Tc(Ee.y0)&&(se=Tt(Ee),(!dt.vLinePoint||dt.vLinePoint.spikeDistance>se.spikeDistance)&&(dt.vLinePoint=se))}var Be=ee.filter(function(Ve){return Ve.ya.showspikes&&Ve.ya.spikesnap!=="hovered data"});if(Be.length){var et=Be[0];Tc(et.x0)&&Tc(et.y0)&&(se=Tt(et),(!dt.hLinePoint||dt.hLinePoint.spikeDistance>se.spikeDistance)&&(dt.hLinePoint=se))}}}}}qt();function It(Gr,Qa,Zr){for(var vi=null,ya=1/0,le,ee=0;ee0&&Math.abs(Gr.distance)bt-1;br--)Mr(de[br]);de=Gt,Ct()}var Lt=e._hoverdata,Fe=[],He=KD(e),xt=QD(e);for(we=0;we1||de.length>1)||T==="closest"&&Mt&&de.length>1,jn=ro.combine(f.plot_bgcolor||ro.background,f.paper_bgcolor),En=XD(de,{gd:e,hovermode:T,rotateLabels:Xi,bgColor:jn,container:f._hoverlayer,outerContainer:f._paper.node(),commonLabelOpts:f.hoverlabel,hoverdistance:f.hoverdistance}),Vi=En.hoverLabels;if(qu.isUnifiedHover(T)||(jre(Vi,Xi,f,En.commonLabelBoundingBox),JD(Vi,Xi,f._invScaleX,f._invScaleY)),a&&a.tagName){var pa=G0.getComponentMethod("annotations","hasClickToShow")(e,Fe);Bre(Md.select(a),pa?"pointer":"")}!a||i||!Qre(e,t,Lt)||(Lt&&e.emit("plotly_unhover",{event:t,points:Lt}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:V,yaxes:W,xvals:Se,yvals:Te}))}function WD(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Xre=/([\s\S]*)<\/extra>/;function XD(e,t){var r=t.gd,i=r._fullLayout,a=t.hovermode,s=t.rotateLabels,l=t.bgColor,f=t.container,h=t.outerContainer,v=t.commonLabelOpts||{};if(e.length===0)return[[]];var m=t.fontFamily||Sd.HOVERFONT,_=t.fontSize||Sd.HOVERFONTSIZE,T=t.fontWeight||i.font.weight,S=t.fontStyle||i.font.style,C=t.fontVariant||i.font.variant,D=t.fontTextcase||i.font.textcase,E=t.fontLineposition||i.font.lineposition,I=t.fontShadow||i.font.shadow,B=e[0],q=B.xa,z=B.ya,O=a.charAt(0),H=O+"Label",V=B[H];if(V===void 0&&q.type==="multicategory")for(var W=0;Wi.width-Lt&&(Fe=i.width-Lt),xr.attr("d","M"+(tr-Fe)+",0L"+(tr-Fe+ji)+","+br+ji+"H"+Lt+"v"+br+(qa*2+Ot.height)+"H"+-Lt+"V"+br+ji+"H"+(tr-Fe-ji)+"Z"),tr=Fe,Ae.minX=tr-Lt,Ae.maxX=tr+Lt,q.side==="top"?(Ae.minY=Mr-(qa*2+Ot.height),Ae.maxY=Mr-qa):(Ae.minY=Mr+qa,Ae.maxY=Mr+(qa*2+Ot.height))}else{var He,xt,vt;z.side==="right"?(He="start",xt=1,vt="",tr=q._offset+q._length):(He="end",xt=-1,vt="-",tr=q._offset),Mr=z._offset+(B.y0+B.y1)/2,vr.attr("text-anchor",He),xr.attr("d","M0,0L"+vt+ji+","+ji+"V"+(qa+Ot.height/2)+"h"+vt+(qa*2+Ot.width)+"V-"+(qa+Ot.height/2)+"H"+vt+ji+"V-"+ji+"Z"),Ae.minY=Mr-(qa+Ot.height/2),Ae.maxY=Mr+(qa+Ot.height/2),z.side==="right"?(Ae.minX=tr+ji,Ae.maxX=tr+ji+(qa*2+Ot.width)):(Ae.minX=tr-ji-(qa*2+Ot.width),Ae.maxX=tr-ji);var yr=Ot.height/2,Er=te-Ot.top-yr,Ar="clip"+i._uid+"commonlabel"+z._id,Hr;if(tr=0?Vt=Ut:Et+me=0?Vt=Et:Ct+me=0?Ne=Tt:zt+rt=0?Ne=zt:Yt+rt=0,(gt.idealAlign==="top"||!Ea)&&Ii?(vt-=Er/2,gt.anchor="end"):Ea?(vt+=Er/2,gt.anchor="start"):gt.anchor="middle",gt.crossPos=vt;else{if(gt.pos=vt,Ea=xt+yr/2+ka<=ne,Ii=xt-yr/2-ka>=0,(gt.idealAlign==="left"||!Ea)&&Ii)xt-=yr/2,gt.anchor="end";else if(Ea)xt+=yr/2,gt.anchor="start";else{gt.anchor="middle";var Ki=ka/2,yn=xt+Ki-ne,Xi=xt-Ki;yn>0&&(xt-=yn),Xi<0&&(xt+=-Xi)}gt.crossPos=xt}Mr.attr("text-anchor",gt.anchor),Lt&&br.attr("text-anchor",gt.anchor),xr.attr("transform",v4(xt,vt)+(s?qre(YD):""))}),{hoverLabels:ut,commonLabelBoundingBox:Ae}}function UD(e,t,r,i,a,s){var l="",f="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=vn.templateString(e.name,e.trace._meta)),l=GD(e.name,e.nameLength));var h=r.charAt(0),v=h==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(f+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(f+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(f+=(f?"z: ":"")+e.zLabel)):t&&e[h+"Label"]===a?f=e[v+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(f=e.yLabel):e.yLabel===void 0?f=e.xLabel:f="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(f+=(f?"
":"")+e.text),e.extraText!==void 0&&(f+=(f?"
":"")+e.extraText),s&&f===""&&!e.hovertemplate&&(l===""&&s.remove(),f=l);var m=e.hovertemplate||!1;if(m){var _=e.hovertemplateLabels||e;e[h+"Label"]!==a&&(_[h+"other"]=_[h+"Val"],_[h+"otherLabel"]=_[h+"Label"]),f=vn.hovertemplateString(m,_,i._d3locale,e.eventData[0]||{},e.trace._meta),f=f.replace(Xre,function(T,S){return l=GD(S,e.nameLength),""})}return[f,l]}function jre(e,t,r,i){var a=t?"xa":"ya",s=t?"ya":"xa",l=0,f=1,h=e.size(),v=new Array(h),m=0,_=i.minX,T=i.maxX,S=i.minY,C=i.maxY,D=function(Se){return Se*r._invScaleX},E=function(Se){return Se*r._invScaleY};e.each(function(Se){var Te=Se[a],we=Se[s],Ae=Te._id.charAt(0)==="x",Ce=Te.range;m===0&&Ce&&Ce[0]>Ce[1]!==Ae&&(f=-1);var Le=0,Qe=Ae?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var st=jD(Se,t),at=Se.anchor,mt=at==="end"?-1:1,Ye,At;if(at==="middle")Ye=Se.crossPos+(Ae?E(st.y-Se.by/2):D(Se.bx/2+Se.tx2width/2)),At=Ye+(Ae?E(Se.by):D(Se.bx));else if(Ae)Ye=Se.crossPos+E(ji+st.y)-E(Se.by/2-ji),At=Ye+E(Se.by);else{var it=D(mt*ji+st.x),dt=it+D(mt*Se.bx);Ye=Se.crossPos+Math.min(it,dt),At=Se.crossPos+Math.max(it,dt)}Ae?S!==void 0&&C!==void 0&&Math.min(At,C)-Math.max(Ye,S)>1&&(we.side==="left"?(Le=we._mainLinePosition,Qe=r.width):Qe=we._mainLinePosition):_!==void 0&&T!==void 0&&Math.min(At,T)-Math.max(Ye,_)>1&&(we.side==="top"?(Le=we._mainLinePosition,Qe=r.height):Qe=we._mainLinePosition)}v[m++]=[{datum:Se,traceIndex:Se.trace.index,dp:0,pos:Se.pos,posref:Se.posref,size:Se.by*(Ae?Hre:1)/2,pmin:Le,pmax:Qe}]}),v.sort(function(Se,Te){return Se[0].posref-Te[0].posref||f*(Te[0].traceIndex-Se[0].traceIndex)});var I,B,q,z,O,H,V;function W(Se){var Te=Se[0],we=Se[Se.length-1];if(B=Te.pmin-Te.pos-Te.dp+Te.size,q=we.pos+we.dp+we.size-Te.pmax,B>.01){for(O=Se.length-1;O>=0;O--)Se[O].dp+=B;I=!1}if(!(q<.01)){if(B<-.01){for(O=Se.length-1;O>=0;O--)Se[O].dp-=q;I=!1}if(I){var Ae=0;for(z=0;zTe.pmax&&Ae++;for(z=Se.length-1;z>=0&&!(Ae<=0);z--)H=Se[z],H.pos>Te.pmax-1&&(H.del=!0,Ae--);for(z=0;z=0;O--)Se[O].dp-=q;for(z=Se.length-1;z>=0&&!(Ae<=0);z--)H=Se[z],H.pos+H.dp+H.size>Te.pmax&&(H.del=!0,Ae--)}}}for(;!I&&l<=h;){for(l++,I=!0,z=0;z.01){for(O=te.length-1;O>=0;O--)te[O].dp+=B;for(J.push.apply(J,te),v.splice(z+1,1),V=0,O=J.length-1;O>=0;O--)V+=J[O].dp;for(q=V/J.length,O=J.length-1;O>=0;O--)J[O].dp-=q;I=!1}else z++}v.forEach(W)}for(z=v.length-1;z>=0;z--){var fe=v[z];for(O=fe.length-1;O>=0;O--){var de=fe[O],Me=de.datum;Me.offset=de.dp,Me.del=de.del}}}function jD(e,t){var r=0,i=e.offset;return t&&(i*=-Zre,r=e.offset*Gre),{x:r,y:i}}function Jre(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(ji+qa),i=r+t*(e.txwidth+qa),a=e.anchor==="middle";return a&&(r-=e.tx2width/2,i+=e.txwidth/2+qa),{alignShift:t,textShiftX:r,text2ShiftX:i}}function JD(e,t,r,i){var a=function(l){return l*r},s=function(l){return l*i};e.each(function(l){var f=Md.select(this);if(l.del)return f.remove();var h=f.select("text.nums"),v=l.anchor,m=v==="end"?-1:1,_=Jre(l),T=jD(l,t),S=T.x,C=T.y,D=v==="middle";f.select("path").attr("d",D?"M-"+a(l.bx/2+l.tx2width/2)+","+s(C-l.by/2)+"h"+a(l.bx)+"v"+s(l.by)+"h-"+a(l.bx)+"Z":"M0,0L"+a(m*ji+S)+","+s(ji+C)+"v"+s(l.by/2-ji)+"h"+a(m*l.bx)+"v-"+s(l.by)+"H"+a(m*ji+S)+"V"+s(C-ji)+"Z");var E=S+_.textShiftX,I=C+l.ty0-l.by/2+qa,B=l.textAlign||"auto";B!=="auto"&&(B==="left"&&v!=="start"?(h.attr("text-anchor","start"),E=D?-l.bx/2-l.tx2width/2+qa:-l.bx-qa):B==="right"&&v!=="end"&&(h.attr("text-anchor","end"),E=D?l.bx/2-l.tx2width/2-qa:l.bx+qa)),h.call(Kl.positionText,a(E),s(I)),l.tx2width&&(f.select("text.name").call(Kl.positionText,a(_.text2ShiftX+_.alignShift*qa+S),s(C+l.ty0-l.by/2+qa)),f.select("rect").call(zf.setRect,a(_.text2ShiftX+(_.alignShift-1)*l.tx2width/2+S),s(C-l.by/2-1),a(l.tx2width),s(l.by+2)))})}function Kre(e,t){var r=e.index,i=e.trace||{},a=e.cd[0],s=e.cd[r]||{};function l(T){return T||Tc(T)&&T===0}var f=Array.isArray(r)?function(T,S){var C=vn.castOption(a,r,T);return l(C)?C:vn.extractOption({},i,"",S)}:function(T,S){return vn.extractOption(s,i,T,S)};function h(T,S,C){var D=f(S,C);l(D)&&(e[T]=D)}if(h("hoverinfo","hi","hoverinfo"),h("bgcolor","hbg","hoverlabel.bgcolor"),h("borderColor","hbc","hoverlabel.bordercolor"),h("fontFamily","htf","hoverlabel.font.family"),h("fontSize","hts","hoverlabel.font.size"),h("fontColor","htc","hoverlabel.font.color"),h("fontWeight","htw","hoverlabel.font.weight"),h("fontStyle","hty","hoverlabel.font.style"),h("fontVariant","htv","hoverlabel.font.variant"),h("nameLength","hnl","hoverlabel.namelength"),h("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&i.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=vn.constrain(e.x0,0,e.xa._length),e.x1=vn.constrain(e.x1,0,e.xa._length),e.y0=vn.constrain(e.y0,0,e.ya._length),e.y1=vn.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:If.hoverLabelText(e.xa,e.xLabelVal,i.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:If.hoverLabelText(e.ya,e.yLabelVal,i.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var v=If.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+v+" / -"+If.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+v,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var m=If.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+m+" / -"+If.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+m,t==="y"&&(e.distance+=1)}var _=e.hoverinfo||e.trace.hoverinfo;return _&&_!=="all"&&(_=Array.isArray(_)?_:_.split("+"),_.indexOf("x")===-1&&(e.xLabel=void 0),_.indexOf("y")===-1&&(e.yLabel=void 0),_.indexOf("z")===-1&&(e.zLabel=void 0),_.indexOf("text")===-1&&(e.text=void 0),_.indexOf("name")===-1&&(e.name=void 0)),e}function VD(e,t,r){var i=r.container,a=r.fullLayout,s=a._size,l=r.event,f=!!t.hLinePoint,h=!!t.vLinePoint,v,m;if(i.selectAll(".spikeline").remove(),!!(h||f)){var _=ro.combine(a.plot_bgcolor,a.paper_bgcolor);if(f){var T=t.hLinePoint,S,C;v=T&&T.xa,m=T&&T.ya;var D=m.spikesnap;D==="cursor"?(S=l.pointerX,C=l.pointerY):(S=v._offset+T.x,C=m._offset+T.y);var E=ND.readability(T.color,_)<1.5?ro.contrast(_):T.color,I=m.spikemode,B=m.spikethickness,q=m.spikecolor||E,z=If.getPxPosition(e,m),O,H;if(I.indexOf("toaxis")!==-1||I.indexOf("across")!==-1){if(I.indexOf("toaxis")!==-1&&(O=z,H=S),I.indexOf("across")!==-1){var V=m._counterDomainMin,W=m._counterDomainMax;m.anchor==="free"&&(V=Math.min(V,m.position),W=Math.max(W,m.position)),O=s.l+V*s.w,H=s.l+W*s.w}i.insert("line",":first-child").attr({x1:O,x2:H,y1:C,y2:C,"stroke-width":B,stroke:q,"stroke-dasharray":zf.dashStyle(m.spikedash,B)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:O,x2:H,y1:C,y2:C,"stroke-width":B+2,stroke:_}).classed("spikeline",!0).classed("crisp",!0)}I.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:z+(m.side!=="right"?B:-B),cy:C,r:B,fill:q}).classed("spikeline",!0)}if(h){var J=t.vLinePoint,te,ne;v=J&&J.xa,m=J&&J.ya;var oe=v.spikesnap;oe==="cursor"?(te=l.pointerX,ne=l.pointerY):(te=v._offset+J.x,ne=m._offset+J.y);var fe=ND.readability(J.color,_)<1.5?ro.contrast(_):J.color,de=v.spikemode,Me=v.spikethickness,Se=v.spikecolor||fe,Te=If.getPxPosition(e,v),we,Ae;if(de.indexOf("toaxis")!==-1||de.indexOf("across")!==-1){if(de.indexOf("toaxis")!==-1&&(we=Te,Ae=ne),de.indexOf("across")!==-1){var Ce=v._counterDomainMin,Le=v._counterDomainMax;v.anchor==="free"&&(Ce=Math.min(Ce,v.position),Le=Math.max(Le,v.position)),we=s.t+(1-Le)*s.h,Ae=s.t+(1-Ce)*s.h}i.insert("line",":first-child").attr({x1:te,x2:te,y1:we,y2:Ae,"stroke-width":Me,stroke:Se,"stroke-dasharray":zf.dashStyle(v.spikedash,Me)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:te,x2:te,y1:we,y2:Ae,"stroke-width":Me+2,stroke:_}).classed("spikeline",!0).classed("crisp",!0)}de.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:te,cy:Te-(v.side!=="top"?Me:-Me),r:Me,fill:Se}).classed("spikeline",!0)}}}function Qre(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var i=r.length-1;i>=0;i--){var a=r[i],s=e._hoverdata[i];if(a.curveNumber!==s.curveNumber||String(a.pointNumber)!==String(s.pointNumber)||String(a.pointNumbers)!==String(s.pointNumbers))return!0}return!1}function HD(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function GD(e,t){return Kl.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function $re(e,t){for(var r=t.charAt(0),i=[],a=[],s=[],l=0;l{"use strict";var eae=Bt(),tae=Ua(),rae=bc().isUnifiedHover;$D.exports=function(t,r,i,a){a=a||{};var s=r.legend;function l(f){a.font[f]||(a.font[f]=s?r.legend.font[f]:r.font[f])}r&&rae(r.hovermode)&&(a.font||(a.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),s?(a.bgcolor||(a.bgcolor=tae.combine(r.legend.bgcolor,r.paper_bgcolor)),a.bordercolor||(a.bordercolor=r.legend.bordercolor)):a.bgcolor||(a.bgcolor=r.paper_bgcolor)),i("hoverlabel.bgcolor",a.bgcolor),i("hoverlabel.bordercolor",a.bordercolor),i("hoverlabel.namelength",a.namelength),eae.coerceFont(i,"hoverlabel.font",a.font),i("hoverlabel.align",a.align)}});var tP=pe((P1e,eP)=>{"use strict";var aae=Bt(),iae=P2(),nae=f0();eP.exports=function(t,r){function i(a,s){return aae.coerce(t,r,nae,a,s)}iae(t,r,i)}});var iP=pe((z1e,aP)=>{"use strict";var rP=Bt(),oae=e_(),sae=P2();aP.exports=function(t,r,i,a){function s(f,h){return rP.coerce(t,r,oae,f,h)}var l=rP.extendFlat({},a.hoverlabel);r.hovertemplate&&(l.namelength=-1),sae(t,r,s,l)}});var y4=pe((I1e,nP)=>{"use strict";var lae=Bt(),uae=f0();nP.exports=function(t,r){function i(a,s){return r[a]!==void 0?r[a]:lae.coerce(t,r,uae,a,s)}return i("clickmode"),i("hoversubplots"),i("hovermode")}});var lP=pe((R1e,sP)=>{"use strict";var oP=Bt(),fae=f0(),cae=y4(),hae=P2();sP.exports=function(t,r){function i(m,_){return oP.coerce(t,r,fae,m,_)}var a=cae(t,r);a&&(i("hoverdistance"),i("spikedistance"));var s=i("dragmode");s==="select"&&i("selectdirection");var l=r._has("mapbox"),f=r._has("map"),h=r._has("geo"),v=r._basePlotModules.length;r.dragmode==="zoom"&&((l||f||h)&&v===1||(l||f)&&h&&v===2)&&(r.dragmode="pan"),hae(t,r,i),oP.coerceFont(i,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var cP=pe((F1e,fP)=>{"use strict";var g4=Bt(),uP=la();fP.exports=function(t){var r=t.calcdata,i=t._fullLayout;function a(v){return function(m){return g4.coerceHoverinfo({hoverinfo:m},{_module:v._module},i)}}for(var s=0;s{"use strict";var dae=la(),pae=m4().hover;hP.exports=function(t,r,i){var a=dae.getComponentMethod("annotations","onClick")(t,t._hoverdata);i!==void 0&&pae(t,r,i,!0);function s(){t.emit("plotly_click",{points:t._hoverdata,event:r})}t._hoverdata&&r&&r.target&&(a&&a.then?a.then(s):s(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var Rf=pe((N1e,mP)=>{"use strict";var mae=ja(),z2=Bt(),yae=jl(),ag=bc(),dP=f0(),pP=m4();mP.exports={moduleType:"component",name:"fx",constants:ky(),schema:{layout:dP},attributes:e_(),layoutAttributes:dP,supplyLayoutGlobalDefaults:tP(),supplyDefaults:iP(),supplyLayoutDefaults:lP(),calc:cP(),getDistanceFunction:ag.getDistanceFunction,getClosest:ag.getClosest,inbox:ag.inbox,quadrature:ag.quadrature,appendArrayPointValue:ag.appendArrayPointValue,castHoverOption:_ae,castHoverinfo:xae,hover:pP.hover,unhover:yae.unhover,loneHover:pP.loneHover,loneUnhover:gae,click:vP()};function gae(e){var t=z2.isD3Selection(e)?e:mae.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function _ae(e,t,r){return z2.castOption(e,t,"hoverlabel."+r)}function xae(e,t,r){function i(a){return z2.coerceHoverinfo({hoverinfo:a},{_module:e._module},t)}return z2.castOption(e,r,"hoverinfo",i)}});var kd=pe(Ac=>{"use strict";Ac.selectMode=function(e){return e==="lasso"||e==="select"};Ac.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ac.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Ac.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ac.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Ac.selectingOrDrawing=function(e){return Ac.freeMode(e)||Ac.rectMode(e)}});var I2=pe((O1e,yP)=>{"use strict";yP.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(i){i.regl&&i.regl.clear({color:!0,depth:!0})})}});var R2=pe((U1e,gP)=>{"use strict";gP.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var q2=pe((V1e,_P)=>{"use strict";var F2=32;_P.exports={CIRCLE_SIDES:F2,i000:0,i090:F2/4,i180:F2/2,i270:F2/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var N2=pe((H1e,bP)=>{"use strict";var bae=Bt().strTranslate;function xP(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function wae(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function Tae(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return xP(e,r[t])}}function Aae(e){return bae(e.xaxis._offset,e.yaxis._offset)}bP.exports={p2r:xP,r2p:wae,axValue:Tae,getTransform:Aae}});var Uh=pe(Mc=>{"use strict";var Mae=o5(),AP=q2(),Z0=AP.CIRCLE_SIDES,_4=AP.SQRT2,MP=N2(),wP=MP.p2r,TP=MP.r2p,Sae=[0,3,4,5,6,1,2],kae=[0,3,4,1,2];Mc.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",i=0;i0&&h{"use strict";var LP=kd(),Cae=LP.drawMode,Eae=LP.openMode,Y0=q2(),SP=Y0.i000,kP=Y0.i090,CP=Y0.i180,EP=Y0.i270,Lae=Y0.cos45,Dae=Y0.sin45,DP=N2(),O2=DP.p2r,Vh=DP.r2p,Pae=Ph(),zae=Pae.clearOutline,U2=Uh(),Iae=U2.readPaths,Rae=U2.writePaths,Fae=U2.ellipseOver,qae=U2.fixDatesForPaths;function Nae(e,t){if(e.length){var r=e[0][0];if(r){var i=t.gd,a=t.isActiveShape,s=t.dragmode,l=(i.layout||{}).shapes||[];if(!Cae(s)&&a!==void 0){var f=i._fullLayout._activeShapeIndex;if(f{"use strict";var Bae=kd(),Oae=Bae.selectMode,Uae=Ph(),Vae=Uae.clearOutline,x4=Uh(),Hae=x4.readPaths,Gae=x4.writePaths,Zae=x4.fixDatesForPaths;IP.exports=function(t,r){if(t.length){var i=t[0][0];if(i){var a=i.getAttribute("d"),s=r.gd,l=s._fullLayout.newselection,f=r.plotinfo,h=f.xaxis,v=f.yaxis,m=r.isActiveSelection,_=r.dragmode,T=(s.layout||{}).selections||[];if(!Oae(_)&&m!==void 0){var S=s._fullLayout._activeSelectionIndex;if(S{"use strict";RP.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var Hh=pe(ho=>{"use strict";var Cd=ng(),FP=Bt(),H2=Yi();ho.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};ho.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};ho.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};ho.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};ho.extractPathCoords=function(e,t,r){var i=[],a=e.match(Cd.segmentRE);return a.forEach(function(s){var l=t[s.charAt(0)].drawn;if(l!==void 0){var f=s.substr(1).match(Cd.paramRE);if(!(!f||f.lengthS&&(D="X"),D});return v>S&&(C=C.replace(/[\s,]*X.*/,""),FP.log("Ignoring extra params in segment "+h)),m+C})}function og(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var T4=pe((j1e,OP)=>{"use strict";var Wae=Bt(),W0=Yi(),qP=co(),NP=xi(),Xae=Uh().readPaths,w4=Hh(),jae=w4.getPathString,BP=f_(),Jae=ts().FROM_TL;OP.exports=function(t,r,i,a){if(a.selectAll(".shape-label").remove(),!!(i.label.text||i.label.texttemplate)){var s;if(i.label.texttemplate){var l={};if(i.type!=="path"){var f=W0.getFromId(t,i.xref),h=W0.getFromId(t,i.yref);for(var v in BP){var m=BP[v](i,f,h);m!==void 0&&(l[v]=m)}}s=Wae.texttemplateStringForShapes(i.label.texttemplate,{},t._fullLayout._d3locale,l)}else s=i.label.text;var _={"data-index":r},T=i.label.font,S={"data-notex":1},C=a.append("g").attr(_).classed("shape-label",!0),D=C.append("text").attr(S).classed("shape-label-text",!0).text(s),E,I,B,q;if(i.path){var z=jae(t,i),O=Xae(z,t);E=1/0,B=1/0,I=-1/0,q=-1/0;for(var H=0;H=e?a=t-i:a=i-t,-180/Math.PI*Math.atan2(a,s)}function Qae(e,t,r,i,a,s,l){var f=a.label.textposition,h=a.label.textangle,v=a.label.padding,m=a.type,_=Math.PI/180*s,T=Math.sin(_),S=Math.cos(_),C=a.label.xanchor,D=a.label.yanchor,E,I,B,q;if(m==="line"){f==="start"?(E=e,I=t):f==="end"?(E=r,I=i):(E=(e+r)/2,I=(t+i)/2),C==="auto"&&(f==="start"?h==="auto"?r>e?C="left":re?C="right":re?C="right":re?C="left":r{"use strict";var $ae=Bt(),eie=$ae.strTranslate,UP=jl(),GP=kd(),tie=GP.drawMode,ZP=GP.selectMode,YP=la(),VP=Ua(),Z2=q2(),rie=Z2.i000,aie=Z2.i090,iie=Z2.i180,nie=Z2.i270,oie=Ph(),WP=oie.clearOutlineControllers,M4=Uh(),G2=M4.pointsOnRectangle,A4=M4.pointsOnEllipse,sie=M4.writePaths,lie=V2().newShapes,uie=V2().createShapeObj,fie=b4(),cie=T4();XP.exports=function e(t,r,i,a){a||(a=0);var s=i.gd;function l(){e(t,r,i,a++),(A4(t[0])||i.hasText)&&f({redrawing:!0})}function f(Te){var we={};i.isActiveShape!==void 0&&(i.isActiveShape=!1,we=lie(r,i)),i.isActiveSelection!==void 0&&(i.isActiveSelection=!1,we=fie(r,i),s._fullLayout._reselect=!0),Object.keys(we).length&&YP.call((Te||{}).redrawing?"relayout":"_guiRelayout",s,we)}var h=s._fullLayout,v=h._zoomlayer,m=i.dragmode,_=tie(m),T=ZP(m);(_||T)&&(s._fullLayout._outlining=!0),WP(s),r.attr("d",sie(t));var S,C,D,E,I;if(!a&&(i.isActiveShape||i.isActiveSelection)){I=hie([],t);var B=v.append("g").attr("class","outline-controllers");te(B),Se()}if(_&&i.hasText){var q=v.select(".label-temp"),z=uie(r,i,i.dragmode);cie(s,"label-temp",z,q)}function O(Te){D=+Te.srcElement.getAttribute("data-i"),E=+Te.srcElement.getAttribute("data-j"),S[D][E].moveFn=H}function H(Te,we){if(t.length){var Ae=I[D][E][1],Ce=I[D][E][2],Le=t[D],Qe=Le.length;if(G2(Le)){var st=Te,at=we;if(i.isActiveSelection){var mt=HP(Le,E);mt[1]===Le[E][1]?at=0:st=0}for(var Ye=0;Ye1&&!(Te.length===2&&Te[1][0]==="Z")&&(E===0&&(Te[0][0]="M"),t[D]=Te,l(),f())}}function J(Te,we){if(Te===2){D=+we.srcElement.getAttribute("data-i"),E=+we.srcElement.getAttribute("data-j");var Ae=t[D];!G2(Ae)&&!A4(Ae)&&W()}}function te(Te){S=[];for(var we=0;we{"use strict";var die=ja(),ez=la(),jP=Bt(),X0=Yi(),pie=Uh().readPaths,mie=Y2(),X2=T4(),tz=Ph().clearOutlineControllers,S4=Ua(),C4=xi(),yie=Pi().arrayEditor,JP=jl(),KP=Oh(),Ed=ng(),Os=Hh(),k4=Os.getPathString;iz.exports={draw:E4,drawOne:rz,eraseActiveShape:xie,drawLabel:X2};function E4(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var i=t._plots[r].shapelayer;i&&(i.selectAll("path").remove(),i.selectAll("text").remove())}for(var a=0;al&&Ut>f&&!It.shiftKey?JP.getCursor(Et/zt,1-Ct/Ut):"move";KP(t,Yt),At=Yt.split("-")[0]}}function ct(It){W2(e)||(h&&(I=Le(r.xanchor)),v&&(B=Qe(r.yanchor)),r.type==="path"?ne=r.path:(S=h?r.x0:Le(r.x0),C=v?r.y0:Qe(r.y0),D=h?r.x1:Le(r.x1),E=v?r.y1:Qe(r.y1)),SE?(q=C,V="y0",z=E,W="y1"):(q=E,V="y1",z=C,W="y0"),Mt(It),pt(a,r),qt(t,r,e),Ye.moveFn=At==="move"?me:rt,Ye.altKey=It.altKey)}function ve(){W2(e)||(KP(t),je(a),az(t,e,r),ez.call("_guiRelayout",e,s.getUpdateObj()))}function Ie(){W2(e)||je(a)}function me(It,Tt){if(r.type==="path"){var zt=function(Ct){return Ct},Ut=zt,Et=zt;h?T("xanchor",r.xanchor=st(I+It)):(Ut=function(Yt){return st(Le(Yt)+It)},fe&&fe.type==="date"&&(Ut=Os.encodeDate(Ut))),v?T("yanchor",r.yanchor=at(B+Tt)):(Et=function(Yt){return at(Qe(Yt)+Tt)},Me&&Me.type==="date"&&(Et=Os.encodeDate(Et))),T("path",r.path=QP(ne,Ut,Et))}else h?T("xanchor",r.xanchor=st(I+It)):(T("x0",r.x0=st(S+It)),T("x1",r.x1=st(D+It))),v?T("yanchor",r.yanchor=at(B+Tt)):(T("y0",r.y0=at(C+Tt)),T("y1",r.y1=at(E+Tt)));t.attr("d",k4(e,r)),pt(a,r),X2(e,i,r,oe)}function rt(It,Tt){if(_){var zt=function(Ot){return Ot},Ut=zt,Et=zt;h?T("xanchor",r.xanchor=st(I+It)):(Ut=function(tr){return st(Le(tr)+It)},fe&&fe.type==="date"&&(Ut=Os.encodeDate(Ut))),v?T("yanchor",r.yanchor=at(B+Tt)):(Et=function(tr){return at(Qe(tr)+Tt)},Me&&Me.type==="date"&&(Et=Os.encodeDate(Et))),T("path",r.path=QP(ne,Ut,Et))}else if(m){if(At==="resize-over-start-point"){var Ct=S+It,Yt=v?C-Tt:C+Tt;T("x0",r.x0=h?Ct:st(Ct)),T("y0",r.y0=v?Yt:at(Yt))}else if(At==="resize-over-end-point"){var Vt=D+It,Ne=v?E-Tt:E+Tt;T("x1",r.x1=h?Vt:st(Vt)),T("y1",r.y1=v?Ne:at(Ne))}}else{var ut=function(Ot){return At.indexOf(Ot)!==-1},gt=ut("n"),xr=ut("s"),vr=ut("w"),wt=ut("e"),bt=gt?q+Tt:q,Ht=xr?z+Tt:z,Xt=vr?O+It:O,Gt=wt?H+It:H;v&&(gt&&(bt=q-Tt),xr&&(Ht=z-Tt)),(!v&&Ht-bt>f||v&&bt-Ht>f)&&(T(V,r[V]=v?bt:at(bt)),T(W,r[W]=v?Ht:at(Ht))),Gt-Xt>l&&(T(J,r[J]=h?Xt:st(Xt)),T(te,r[te]=h?Gt:st(Gt)))}t.attr("d",k4(e,r)),pt(a,r),X2(e,i,r,oe)}function pt(It,Tt){(h||v)&&zt();function zt(){var Ut=Tt.type!=="path",Et=It.selectAll(".visual-cue").data([0]),Ct=1;Et.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Ct}).classed("visual-cue",!0);var Yt=Le(h?Tt.xanchor:jP.midRange(Ut?[Tt.x0,Tt.x1]:Os.extractPathCoords(Tt.path,Ed.paramIsX))),Vt=Qe(v?Tt.yanchor:jP.midRange(Ut?[Tt.y0,Tt.y1]:Os.extractPathCoords(Tt.path,Ed.paramIsY)));if(Yt=Os.roundPositionForSharpStrokeRendering(Yt,Ct),Vt=Os.roundPositionForSharpStrokeRendering(Vt,Ct),h&&v){var Ne="M"+(Yt-1-Ct)+","+(Vt-1-Ct)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Et.attr("d",Ne)}else if(h){var ut="M"+(Yt-1-Ct)+","+(Vt-9-Ct)+"v18 h2 v-18 Z";Et.attr("d",ut)}else{var gt="M"+(Yt-9-Ct)+","+(Vt-1-Ct)+"h18 v2 h-18 Z";Et.attr("d",gt)}}}function je(It){It.selectAll(".visual-cue").remove()}function qt(It,Tt,zt){var Ut=Tt.xref,Et=Tt.yref,Ct=X0.getFromId(zt,Ut),Yt=X0.getFromId(zt,Et),Vt="";Ut!=="paper"&&!Ct.autorange&&(Vt+=Ut),Et!=="paper"&&!Yt.autorange&&(Vt+=Et),C4.setClipUrl(It,Vt?"clip"+zt._fullLayout._uid+Vt:null,zt)}}function QP(e,t,r){return e.replace(Ed.segmentRE,function(i){var a=0,s=i.charAt(0),l=Ed.paramIsX[s],f=Ed.paramIsY[s],h=Ed.numParams[s],v=i.substr(1).replace(Ed.paramRE,function(m){return a>=h||(l[a]?m=t(m):f[a]&&(m=r(m)),a++),m});return s+v})}function _ie(e,t){if(j2(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeShapeIndex){$P(e);return}e._fullLayout._activeShapeIndex=i,e._fullLayout._deactivateShape=$P,E4(e)}}}function $P(e){if(j2(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(tz(e),delete e._fullLayout._activeShapeIndex,E4(e))}}function xie(e){if(j2(e)){tz(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var Ql=la(),nz=eo(),oz=$n(),Ja=R2(),bie=J2().eraseActiveShape,K2=Bt(),Ia=K2._,Ka=vz.exports={};Ka.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?Ia(e,"Download plot as a PNG"):Ia(e,"Download plot")},icon:Ja.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};K2.notifier(Ia(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(i){i in t&&(r[i]=t[i])}),Ql.call("downloadImage",e,r).then(function(i){K2.notifier(Ia(e,"Snapshot succeeded")+" - "+i,"long")}).catch(function(){K2.notifier(Ia(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Ka.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Ia(e,"Edit in Chart Studio")},icon:Ja.disk,click:function(e){nz.sendDataToCloud(e)}};Ka.editInChartStudio={name:"editInChartStudio",title:function(e){return Ia(e,"Edit in Chart Studio")},icon:Ja.pencil,click:function(e){nz.sendDataToCloud(e)}};Ka.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Ia(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ja.zoombox,click:ns};Ka.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Ia(e,"Pan")},attr:"dragmode",val:"pan",icon:Ja.pan,click:ns};Ka.select2d={name:"select2d",_cat:"select",title:function(e){return Ia(e,"Box Select")},attr:"dragmode",val:"select",icon:Ja.selectbox,click:ns};Ka.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Ia(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ja.lasso,click:ns};Ka.drawclosedpath={name:"drawclosedpath",title:function(e){return Ia(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ja.drawclosedpath,click:ns};Ka.drawopenpath={name:"drawopenpath",title:function(e){return Ia(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ja.drawopenpath,click:ns};Ka.drawline={name:"drawline",title:function(e){return Ia(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ja.drawline,click:ns};Ka.drawrect={name:"drawrect",title:function(e){return Ia(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ja.drawrect,click:ns};Ka.drawcircle={name:"drawcircle",title:function(e){return Ia(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ja.drawcircle,click:ns};Ka.eraseshape={name:"eraseshape",title:function(e){return Ia(e,"Erase active shape")},icon:Ja.eraseshape,click:bie};Ka.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Ia(e,"Zoom in")},attr:"zoom",val:"in",icon:Ja.zoom_plus,click:ns};Ka.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Ia(e,"Zoom out")},attr:"zoom",val:"out",icon:Ja.zoom_minus,click:ns};Ka.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Ia(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ja.autoscale,click:ns};Ka.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Ia(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ja.home,click:ns};Ka.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Ia(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Ja.tooltip_basic,gravity:"ne",click:ns};Ka.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Ia(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Ja.tooltip_compare,gravity:"ne",click:ns};function ns(e,t){var r=t.currentTarget,i=r.getAttribute("data-attr"),a=r.getAttribute("data-val")||!0,s=e._fullLayout,l={},f=oz.list(e,null,!0),h=s._cartesianSpikesEnabled,v,m;if(i==="zoom"){var _=a==="in"?.5:2,T=(1+_)/2,S=(1-_)/2,C;for(m=0;m{"use strict";var dz=P4(),Aie=Object.keys(dz),pz=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],mz=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(pz),J0=[],Mie=function(e){if(mz.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();J0.indexOf(t)===-1&&J0.push(t),J0.indexOf(r)===-1&&J0.push(r)}};Aie.forEach(function(e){Mie(dz[e])});J0.sort();yz.exports={DRAW_MODES:pz,backButtons:mz,foreButtons:J0}});var I4=pe((t_e,gz)=>{"use strict";var e_e=z4();gz.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var xz=pe((r_e,_z)=>{"use strict";var Sie=Bt(),sg=Ua(),kie=Pi(),Cie=I4();_z.exports=function(t,r){var i=t.modebar||{},a=kie.newContainer(r,"modebar");function s(f,h){return Sie.coerce(i,a,Cie,f,h)}s("orientation"),s("bgcolor",sg.addOpacity(r.paper_bgcolor,.5));var l=sg.contrast(sg.rgb(r.modebar.bgcolor));s("color",sg.addOpacity(l,.3)),s("activecolor",sg.addOpacity(l,.7)),s("uirevision",r.uirevision),s("add"),s("remove")}});var Az=pe((a_e,Tz)=>{"use strict";var R4=ja(),Eie=Pa(),$2=Bt(),bz=R2(),Lie=U1().version,Die=new DOMParser;function wz(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Ff=wz.prototype;Ff.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,i=this.graphInfo._fullLayout,a="modebar-"+i._uid;this.element.setAttribute("id",a),this._uid=a,this.element.className="modebar",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),i.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var s=i.modebar,l="#"+a+" .modebar-group";document.querySelectorAll(l).forEach(function(_){_.style.backgroundColor=s.bgcolor});var f=!this.hasButtons(t),h=this.hasLogo!==r.displaylogo,v=this.locale!==r.locale;if(this.locale=r.locale,(f||h||v)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var m=this.getLogo();r.watermark&&(m.className=m.className+" watermark"),i.modebar.orientation==="v"?this.element.insertBefore(m,this.element.childNodes[0]):this.element.appendChild(m),this.hasLogo=!0}this.updateActiveButton(),$2.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+s.activecolor,"fill: "+s.color,this.element)};Ff.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var i=t.createGroup();r.forEach(function(a){var s=a.name;if(!s)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(s)!==-1)throw new Error("button name '"+s+"' is taken");t.buttonsNames.push(s);var l=t.createButton(a);t.buttonElements.push(l),i.appendChild(l)}),t.element.appendChild(i)})};Ff.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};Ff.createButton=function(e){var t=this,r=document.createElement("a");r.setAttribute("rel","tooltip"),r.className="modebar-btn";var i=e.title;i===void 0?i=e.name:typeof i=="function"&&(i=i(this.graphInfo)),(i||i===0)&&r.setAttribute("data-title",i),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),r.setAttribute("data-val",a));var s=e.click;if(typeof s!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(f){e.click(t.graphInfo,f),t.updateActiveButton(f.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&R4.select(r).classed("active",!0);var l=e.icon;return typeof l=="function"?r.appendChild(l()):r.appendChild(this.createIcon(l||bz.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};Ff.createIcon=function(e){var t=Eie(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",i;if(e.path){i=document.createElementNS(r,"svg"),i.setAttribute("viewBox",[0,0,e.width,t].join(" ")),i.setAttribute("class","icon");var a=document.createElementNS(r,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),i.appendChild(a)}if(e.svg){var s=Die.parseFromString(e.svg,"application/xml");i=s.childNodes[0]}return i.setAttribute("height","1em"),i.setAttribute("width","1em"),i};Ff.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(i){var a=i.getAttribute("data-val")||!0,s=i.getAttribute("data-attr"),l=i.getAttribute("data-toggle")==="true",f=R4.select(i),h=function(_,T){var S=t.modebar,C=_.querySelector(".icon path");C&&(T||_.matches(":hover")?C.style.fill=S.activecolor:C.style.fill=S.color)};if(l){if(s===r){var v=!f.classed("active");f.classed("active",v),h(i,v)}}else{var m=s===null?s:$2.nestedProperty(t,s).get();f.classed("active",m===a),h(i,m===a)}})};Ff.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var Iie=$n(),Mz=rs(),F4=la(),Rie=bc().isUnifiedHover,Fie=Az(),ex=P4(),qie=z4().DRAW_MODES,Nie=Bt().extendDeep;Sz.exports=function(t){var r=t._fullLayout,i=t._context,a=r._modeBar;if(!i.displayModeBar&&!i.watermark){a&&(a.destroy(),delete r._modeBar);return}if(!Array.isArray(i.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(i.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var s=i.modeBarButtons,l;Array.isArray(s)&&s.length?l=Gie(s):!i.displayModeBar&&i.watermark?l=[]:l=Bie(t),a?a.update(t,l):r._modeBar=Fie(t,l)};function Bie(e){var t=e._fullLayout,r=e._fullData,i=e._context;function a(we,Ae){if(typeof Ae=="string"){if(Ae.toLowerCase()===we.toLowerCase())return!0}else{var Ce=Ae.name,Le=Ae._cat||Ae.name;if(Ce===we||Le===we.toLowerCase())return!0}return!1}var s=t.modebar.add;typeof s=="string"&&(s=[s]);var l=t.modebar.remove;typeof l=="string"&&(l=[l]);var f=i.modeBarButtonsToAdd.concat(s.filter(function(we){for(var Ae=0;Ae1?(te=["toggleHover"],ne=["resetViews"]):_?(J=["zoomInGeo","zoomOutGeo"],te=["hoverClosestGeo"],ne=["resetGeo"]):m?(te=["hoverClosest3d"],ne=["resetCameraDefault3d","resetCameraLastSave3d"]):D?(J=["zoomInMapbox","zoomOutMapbox"],te=["toggleHover"],ne=["resetViewMapbox"]):E?(J=["zoomInMap","zoomOutMap"],te=["toggleHover"],ne=["resetViewMap"]):T?te=["hoverClosestPie"]:q?(te=["hoverClosestCartesian","hoverCompareCartesian"],ne=["resetViewSankey"]):te=["toggleHover"],v&&te.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Vie(r)||O)&&(te=[]),v&&!z&&(J=["zoomIn2d","zoomOut2d","autoScale2d"],ne[0]!=="resetViews"&&(ne=["resetScale2d"])),m?oe=["zoom3d","pan3d","orbitRotation","tableRotation"]:v&&!z||C?oe=["zoom2d","pan2d"]:D||E||_?oe=["pan2d"]:I&&(oe=["zoom2d"]),Uie(r)&&oe.push("select2d","lasso2d");var fe=[],de=function(we){fe.indexOf(we)===-1&&te.indexOf(we)!==-1&&fe.push(we)};if(Array.isArray(f)){for(var Me=[],Se=0;Se{"use strict";Cz.exports={moduleType:"component",name:"modebar",layoutAttributes:I4(),supplyLayoutDefaults:xz(),manage:kz()}});var N4=pe((o_e,Ez)=>{"use strict";var Zie=ts().FROM_BL;Ez.exports=function(t,r,i){i===void 0&&(i=Zie[t.constraintoward||"center"]);var a=[t.r2l(t.range[0]),t.r2l(t.range[1])],s=a[0]+(a[1]-a[0])*i;t.range=t._input.range=[t.l2r(s+(a[0]-s)*r),t.l2r(s+(a[1]-s)*r)],t.setScale()}});var ug=pe(lg=>{"use strict";var Ld=Bt(),B4=Xy(),Nu=$n().id2name,Yie=Ru(),Lz=N4(),Wie=i2(),Xie=Hi().ALMOST_EQUAL,jie=ts().FROM_BL;lg.handleDefaults=function(e,t,r){var i=r.axIds,a=r.axHasImage,s=t._axisConstraintGroups=[],l=t._axisMatchGroups=[],f,h,v,m,_,T,S,C;for(f=0;fs?r.substr(s):i.substr(a))+l}function Kie(e,t){for(var r=t._size,i=r.h/r.w,a={},s=Object.keys(e),l=0;lXie*C&&!B)){for(s=0;soe&&Cete&&(te=Ce);var Qe=(te-J)/(2*ne);_/=Qe,J=h.l2r(J),te=h.l2r(te),h.range=h._input.range=H{"use strict";var rx=ja(),os=la(),fl=eo(),$l=Bt(),V4=co(),H4=I2(),fg=Ua(),K0=xi(),Iz=Yy(),Bz=q4(),cg=Yi(),Sc=ts(),Oz=ug(),Qie=Oz.enforce,$ie=Oz.clean,Rz=Xy().doAutoRange,Uz="start",ene="middle",Vz="end",tne=Ao().zindexSeparator;ao.layoutStyles=function(e){return $l.syncOrAsync([fl.doAutoMargin,ane],e)};function rne(e,t,r){for(var i=0;i=e[1]||a[1]<=e[0])&&s[0]t[0])return!0}return!1}function ane(e){var t=e._fullLayout,r=t._size,i=r.p,a=cg.list(e,"",!0),s,l,f,h,v,m;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(K0.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),ao.drawMainTitle(e),Bz.manage(e),!t._has("cartesian"))return fl.previousPromises(e);function _(ct,ve,Ie){var me=ct._lw/2;if(ct._id.charAt(0)==="x"){if(ve){if(Ie==="top")return ve._offset-i-me}else return r.t+r.h*(1-(ct.position||0))+me%1;return ve._offset+ve._length+i+me}if(ve){if(Ie==="right")return ve._offset+ve._length+i+me}else return r.l+r.w*(ct.position||0)+me%1;return ve._offset-i-me}for(s=0;s0){sne(e,s,v,h),f.attr({x:l,y:s,"text-anchor":i,dy:Nz(t.yanchor)}).call(V4.positionText,l,s);var m=(t.text.match(V4.BR_TAG_ALL)||[]).length;if(m){var _=Sc.LINE_SPACING*m+Sc.MID_SHIFT;t.y===0&&(_=-_),f.selectAll(".line").each(function(){var E=+this.getAttribute("dy").slice(0,-2)-_+"em";this.setAttribute("dy",E)})}var T=rx.selectAll(".gtitle-subtitle");if(T.node()){var S=f.node().getBBox(),C=S.y+S.height,D=C+Iz.SUBTITLE_PADDING_EM*t.subtitle.font.size;T.attr({x:l,y:D,"text-anchor":i,dy:Nz(t.yanchor)}).call(V4.positionText,l,D)}}}};function ine(e,t,r,i,a){var s=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=$l.isTopAnchor(t)?i:i-a,f=r==="b"?s-l:l;return $l.isTopAnchor(t)&&r==="t"||$l.isBottomAnchor(t)&&r==="b"?!1:f.5?"t":"b",l=e._fullLayout.margin[s],f=0;return t.yref==="paper"?f=r+t.pad.t+t.pad.b:t.yref==="container"&&(f=nne(s,i,a,e._fullLayout.height,r)+t.pad.t+t.pad.b),f>l?f:0}function sne(e,t,r,i){var a="title.automargin",s=e._fullLayout.title,l=s.y>.5?"t":"b",f={x:s.x,y:s.y,t:0,b:0},h={};s.yref==="paper"&&ine(e,s,l,t,i)?f[l]=r:s.yref==="container"&&(h[l]=r,e._fullLayout._reservedMargin[a]=h),fl.allowAutoMargin(e,a),fl.autoMargin(e,a,f)}function lne(e,t){var r=e.title,i=e._size,a=0;switch(t===Uz?a=r.pad.l:t===Vz&&(a=-r.pad.r),r.xref){case"paper":return i.l+i.w*r.x+a;case"container":default:return e.width*r.x+a}}function une(e,t){var r=e.title,i=e._size,a=0;if(t==="0em"||!t?a=-r.pad.b:t===Sc.CAP_SHIFT+"em"&&(a=r.pad.t),r.y==="auto")return i.t/2;switch(r.yref){case"paper":return i.t+i.h-i.h*r.y+a;case"container":default:return e.height-e.height*r.y+a}}function Nz(e){return e==="top"?Sc.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Sc.MID_SHIFT+"em"}function fne(e){var t=e.title,r=ene;return $l.isRightAnchor(t)?r=Vz:$l.isLeftAnchor(t)&&(r=Uz),r}function cne(e){var t=e.title,r="0em";return $l.isTopAnchor(t)?r=Sc.CAP_SHIFT+"em":$l.isMiddleAnchor(t)&&(r=Sc.MID_SHIFT+"em"),r}ao.doTraceStyle=function(e){var t=e.calcdata,r=[],i;for(i=0;i{"use strict";var hne=Uh().readPaths,vne=Y2(),Hz=Ph().clearOutlineControllers,G4=Ua(),Gz=xi(),dne=Pi().arrayEditor,Zz=Hh(),pne=Zz.getPathString;Wz.exports={draw:ix,drawOne:Yz,activateLastSelection:gne};function ix(e){var t=e._fullLayout;Hz(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var i=t._plots[r].selectionLayer;i&&i.selectAll("path").remove()}for(var a=0;a=0;E--){var I=l.append("path").attr(h).style("opacity",E?.1:v).call(G4.stroke,_).call(G4.fill,m).call(Gz.dashLine,E?"solid":S,E?4+T:T);if(mne(I,e,i),C){var B=dne(e.layout,"selections",i);I.style({cursor:"move"});var q={element:I.node(),plotinfo:a,gd:e,editHelpers:B,isActiveSelection:!0},z=hne(f,e);vne(z,I,q)}else I.style("pointer-events",E?"all":"none");D[E]=I}var O=D[0],H=D[1];H.node().addEventListener("click",function(){return yne(e,O)})}}function mne(e,t,r){var i=r.xref+r.yref;Gz.setClipUrl(e,"clip"+t._fullLayout._uid+i,t)}function yne(e,t){if(nx(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeSelectionIndex){Z4(e);return}e._fullLayout._activeSelectionIndex=i,e._fullLayout._deactivateSelection=Z4,ix(e)}}}function gne(e){if(nx(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=Z4,ix(e)}}function Z4(e){if(nx(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(Hz(e),delete e._fullLayout._activeSelectionIndex,ix(e))}}});var jz=pe((f_e,Xz)=>{function _ne(){var e,t=0,r=!1;function i(a,s){return e.list.push({type:a,data:s?JSON.parse(JSON.stringify(s)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(a,s){return i("check",{seg1:a,seg2:s})},segmentChop:function(a,s){return i("div_seg",{seg:a,pt:s}),i("chop",{seg:a,pt:s})},statusRemove:function(a){return i("pop_seg",{seg:a})},segmentUpdate:function(a){return i("seg_update",{seg:a})},segmentNew:function(a,s){return i("new_seg",{seg:a,primary:s})},segmentRemove:function(a){return i("rem_seg",{seg:a})},tempStatus:function(a,s,l){return i("temp_status",{seg:a,above:s,below:l})},rewind:function(a){return i("rewind",{seg:a})},status:function(a,s,l){return i("status",{seg:a,above:s,below:l})},vert:function(a){return a===r?e:(r=a,i("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),i("log",{txt:a})},reset:function(){return i("reset")},selected:function(a){return i("selected",{segs:a})},chainStart:function(a){return i("chain_start",{seg:a})},chainRemoveHead:function(a,s){return i("chain_rem_head",{index:a,pt:s})},chainRemoveTail:function(a,s){return i("chain_rem_tail",{index:a,pt:s})},chainNew:function(a,s){return i("chain_new",{pt1:a,pt2:s})},chainMatch:function(a){return i("chain_match",{index:a})},chainClose:function(a){return i("chain_close",{index:a})},chainAddHead:function(a,s){return i("chain_add_head",{index:a,pt:s})},chainAddTail:function(a,s){return i("chain_add_tail",{index:a,pt:s})},chainConnect:function(a,s){return i("chain_con",{index1:a,index2:s})},chainReverse:function(a){return i("chain_rev",{index:a})},chainJoin:function(a,s){return i("chain_join",{index1:a,index2:s})},done:function(){return i("done")}},e}Xz.exports=_ne});var Kz=pe((c_e,Jz)=>{function xne(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,i,a){var s=i[0],l=i[1],f=a[0],h=a[1],v=r[0],m=r[1];return(f-s)*(m-l)-(h-l)*(v-s)>=-e},pointBetween:function(r,i,a){var s=r[1]-i[1],l=a[0]-i[0],f=r[0]-i[0],h=a[1]-i[1],v=f*l+s*h;if(v-e)},pointsSameX:function(r,i){return Math.abs(r[0]-i[0])e!=f-s>e&&(l-m)*(s-_)/(f-_)+m-a>e&&(h=!h),l=m,f=_}return h}};return t}Jz.exports=xne});var $z=pe((h_e,Qz)=>{var bne={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var i=e.root,a=e.root.next;a!==null;){if(r(a)){t.prev=a.prev,t.next=a,a.prev.next=t,a.prev=t;return}i=a,a=a.next}i.next=t,t.prev=i,t.next=null},findTransition:function(t){for(var r=e.root,i=e.root.next;i!==null&&!t(i);)r=i,i=i.next;return{before:r===e.root?null:r,after:i,insert:function(a){return a.prev=r,a.next=i,r.next=a,i!==null&&(i.prev=a),a}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};Qz.exports=bne});var tI=pe((v_e,eI)=>{var hg=$z();function wne(e,t,r){function i(C,D){return{id:r?r.segmentId():-1,start:C,end:D,myFill:{above:null,below:null},otherFill:null}}function a(C,D,E){return{id:r?r.segmentId():-1,start:C,end:D,myFill:{above:E.myFill.above,below:E.myFill.below},otherFill:null}}var s=hg.create();function l(C,D,E,I,B,q){var z=t.pointsCompare(D,B);return z!==0?z:t.pointsSame(E,q)?0:C!==I?C?1:-1:t.pointAboveOrOnLine(E,I?B:q,I?q:B)?1:-1}function f(C,D){s.insertBefore(C,function(E){var I=l(C.isStart,C.pt,D,E.isStart,E.pt,E.other.pt);return I<0})}function h(C,D){var E=hg.node({isStart:!0,pt:C.start,seg:C,primary:D,other:null,status:null});return f(E,C.end),E}function v(C,D,E){var I=hg.node({isStart:!1,pt:D.end,seg:D,primary:E,other:C,status:null});C.other=I,f(I,C.pt)}function m(C,D){var E=h(C,D);return v(E,C,D),E}function _(C,D){r&&r.segmentChop(C.seg,D),C.other.remove(),C.seg.end=D,C.other.pt=D,f(C.other,C.pt)}function T(C,D){var E=a(D,C.seg.end,C.seg);return _(C,D),m(E,C.primary)}function S(C,D){var E=hg.create();function I(Me,Se){var Te=Me.seg.start,we=Me.seg.end,Ae=Se.seg.start,Ce=Se.seg.end;return t.pointsCollinear(Te,Ae,Ce)?t.pointsCollinear(we,Ae,Ce)||t.pointAboveOrOnLine(we,Ae,Ce)?1:-1:t.pointAboveOrOnLine(Te,Ae,Ce)?1:-1}function B(Me){return E.findTransition(function(Se){var Te=I(Me,Se.ev);return Te>0})}function q(Me,Se){var Te=Me.seg,we=Se.seg,Ae=Te.start,Ce=Te.end,Le=we.start,Qe=we.end;r&&r.checkIntersection(Te,we);var st=t.linesIntersect(Ae,Ce,Le,Qe);if(st===!1){if(!t.pointsCollinear(Ae,Ce,Le)||t.pointsSame(Ae,Qe)||t.pointsSame(Ce,Le))return!1;var at=t.pointsSame(Ae,Le),mt=t.pointsSame(Ce,Qe);if(at&&mt)return Se;var Ye=!at&&t.pointBetween(Ae,Le,Qe),At=!mt&&t.pointBetween(Ce,Le,Qe);if(at)return At?T(Se,Ce):T(Me,Qe),Se;Ye&&(mt||(At?T(Se,Ce):T(Me,Qe)),T(Se,Ae))}else st.alongA===0&&(st.alongB===-1?T(Me,Le):st.alongB===0?T(Me,st.pt):st.alongB===1&&T(Me,Qe)),st.alongB===0&&(st.alongA===-1?T(Se,Ae):st.alongA===0?T(Se,st.pt):st.alongA===1&&T(Se,Ce));return!1}for(var z=[];!s.isEmpty();){var O=s.getHead();if(r&&r.vert(O.pt[0]),O.isStart){let Me=function(){if(V){var Se=q(O,V);if(Se)return Se}return W?q(O,W):!1};var de=Me;r&&r.segmentNew(O.seg,O.primary);var H=B(O),V=H.before?H.before.ev:null,W=H.after?H.after.ev:null;r&&r.tempStatus(O.seg,V?V.seg:!1,W?W.seg:!1);var J=Me();if(J){if(e){var te;O.seg.myFill.below===null?te=!0:te=O.seg.myFill.above!==O.seg.myFill.below,te&&(J.seg.myFill.above=!J.seg.myFill.above)}else J.seg.otherFill=O.seg.myFill;r&&r.segmentUpdate(J.seg),O.other.remove(),O.remove()}if(s.getHead()!==O){r&&r.rewind(O.seg);continue}if(e){var te;O.seg.myFill.below===null?te=!0:te=O.seg.myFill.above!==O.seg.myFill.below,W?O.seg.myFill.below=W.seg.myFill.above:O.seg.myFill.below=C,te?O.seg.myFill.above=!O.seg.myFill.below:O.seg.myFill.above=O.seg.myFill.below}else if(O.seg.otherFill===null){var ne;W?O.primary===W.primary?ne=W.seg.otherFill.above:ne=W.seg.myFill.above:ne=O.primary?D:C,O.seg.otherFill={above:ne,below:ne}}r&&r.status(O.seg,V?V.seg:!1,W?W.seg:!1),O.other.status=H.insert(hg.node({ev:O}))}else{var oe=O.status;if(oe===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(E.exists(oe.prev)&&E.exists(oe.next)&&q(oe.prev.ev,oe.next.ev),r&&r.statusRemove(oe.ev.seg),oe.remove(),!O.primary){var fe=O.seg.myFill;O.seg.myFill=O.seg.otherFill,O.seg.otherFill=fe}z.push(O.seg)}s.getHead().remove()}return r&&r.done(),z}return e?{addRegion:function(C){for(var D,E=C[C.length-1],I=0;I{function Tne(e,t,r){var i=[],a=[];return e.forEach(function(s){var l=s.start,f=s.end;if(t.pointsSame(l,f)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(s);var h={index:0,matches_head:!1,matches_pt1:!1},v={index:0,matches_head:!1,matches_pt1:!1},m=h;function _(de,Me,Se){return m.index=de,m.matches_head=Me,m.matches_pt1=Se,m===h?(m=v,!1):(m=null,!0)}for(var T=0;T{function vg(e,t,r){var i=[];return e.forEach(function(a){var s=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);t[s]!==0&&i.push({id:r?r.segmentId():-1,start:a.start,end:a.end,myFill:{above:t[s]===1,below:t[s]===2},otherFill:null})}),r&&r.selected(i),i}var Ane={union:function(e,t){return vg(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return vg(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return vg(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return vg(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return vg(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};iI.exports=Ane});var sI=pe((m_e,oI)=>{var Mne={toPolygon:function(e,t){function r(s){if(s.length<=0)return e.segments({inverted:!1,regions:[]});function l(v){var m=v.slice(0,v.length-1);return e.segments({inverted:!1,regions:[m]})}for(var f=l(s[0]),h=1;h{var Sne=jz(),kne=Kz(),lI=tI(),Cne=aI(),dg=nI(),uI=sI(),eu=!1,pg=kne(),Us;Us={buildLog:function(e){return e===!0?eu=Sne():e===!1&&(eu=!1),eu===!1?!1:eu.list},epsilon:function(e){return pg.epsilon(e)},segments:function(e){var t=lI(!0,pg,eu);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=lI(!1,pg,eu);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:dg.union(e.combined,eu),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:dg.intersect(e.combined,eu),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:dg.difference(e.combined,eu),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:dg.differenceRev(e.combined,eu),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:dg.xor(e.combined,eu),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Cne(e.segments,pg,eu),inverted:e.inverted}},polygonFromGeoJSON:function(e){return uI.toPolygon(Us,e)},polygonToGeoJSON:function(e){return uI.fromPolygon(Us,pg,e)},union:function(e,t){return mg(e,t,Us.selectUnion)},intersect:function(e,t){return mg(e,t,Us.selectIntersect)},difference:function(e,t){return mg(e,t,Us.selectDifference)},differenceRev:function(e,t){return mg(e,t,Us.selectDifferenceRev)},xor:function(e,t){return mg(e,t,Us.selectXor)}};function mg(e,t,r){var i=Us.segments(e),a=Us.segments(t),s=Us.combine(i,a),l=r(s);return Us.polygon(l)}typeof window=="object"&&(window.PolyBool=Us);fI.exports=Us});var vI=pe((g_e,hI)=>{hI.exports=function(t,r,i,a){var s=t[0],l=t[1],f=!1;i===void 0&&(i=0),a===void 0&&(a=r.length);for(var h=a-i,v=0,m=h-1;vl!=C>l&&s<(S-_)*(l-T)/(C-T)+_;D&&(f=!f)}return f}});var lx=pe((__e,dI)=>{"use strict";var W4=o_().dot,ox=Hi().BADNUM,sx=dI.exports={};sx.tester=function(t){var r=t.slice(),i=r[0][0],a=i,s=r[0][1],l=s,f;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),f=1;fa||I===ox||Il||D&&v(C))}function _(C,D){var E=C[0],I=C[1];if(E===ox||Ea||I===ox||Il)return!1;var B=r.length,q=r[0][0],z=r[0][1],O=0,H,V,W,J,te;for(H=1;HMath.max(V,q)||I>Math.max(W,z)))if(If||Math.abs(W4(_,v))>a)return!0;return!1};sx.filter=function(t,r){var i=[t[0]],a=0,s=0;function l(h){t.push(h);var v=i.length,m=a;i.splice(s+1);for(var _=m+1;_1){var f=t.pop();l(f)}return{addPt:l,raw:t,filtered:i}}});var mI=pe((x_e,pI)=>{"use strict";pI.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var NI=pe((b_e,qI)=>{"use strict";var yI=cI(),Ene=vI(),_g=la(),Lne=xi().dashStyle,yg=Ua(),Dne=Rf(),Pne=bc().makeEventData,Ag=kd(),zne=Ag.freeMode,Ine=Ag.rectMode,xg=Ag.drawMode,K4=Ag.openMode,Q4=Ag.selectMode,gI=Hh(),_I=ng(),AI=Y2(),MI=Ph().clearOutline,SI=Uh(),X4=SI.handleEllipse,Rne=SI.readPaths,Fne=V2().newShapes,qne=b4(),Nne=Y4().activateLastSelection,fx=Bt(),Bne=fx.sorterAsc,kI=lx(),gg=b_(),tu=$n().getFromId,One=I2(),Une=ax().redrawReglTraces,cx=mI(),qf=cx.MINSELECT,Vne=kI.filter,$4=kI.tester,e6=N2(),xI=e6.p2r,Hne=e6.axValue,Gne=e6.getTransform;function t6(e){return e.subplot!==void 0}function Zne(e,t,r,i,a){var s=!t6(i),l=zne(a),f=Ine(a),h=K4(a),v=xg(a),m=Q4(a),_=a==="drawline",T=a==="drawcircle",S=_||T,C=i.gd,D=C._fullLayout,E=m&&D.newselection.mode==="immediate"&&s,I=D._zoomlayer,B=i.element.getBoundingClientRect(),q=i.plotinfo,z=Gne(q),O=t-B.left,H=r-B.top;D._calcInverseTransform(C);var V=fx.apply3DTransform(D._invTransform)(O,H);O=V[0],H=V[1];var W=D._invScaleX,J=D._invScaleY,te=O,ne=H,oe="M"+O+","+H,fe=i.xaxes[0],de=i.yaxes[0],Me=fe._length,Se=de._length,Te=e.altKey&&!(xg(a)&&h),we,Ae,Ce,Le,Qe,st,at;EI(e,C,i),l&&(we=Vne([[O,H]],cx.BENDPX));var mt=I.selectAll("path.select-outline-"+q.id).data([1]),Ye=v?D.newshape:D.newselection;v&&(i.hasText=Ye.label.text||Ye.label.texttemplate);var At=v&&!h?Ye.fillcolor:"rgba(0,0,0,0)",it=Ye.line.color||(s?yg.contrast(C._fullLayout.plot_bgcolor):"#7f7f7f");mt.enter().append("path").attr("class","select-outline select-outline-"+q.id).style({opacity:v?Ye.opacity/2:1,"stroke-dasharray":Lne(Ye.line.dash,Ye.line.width),"stroke-width":Ye.line.width+"px","shape-rendering":"crispEdges"}).call(yg.stroke,it).call(yg.fill,At).attr("fill-rule","evenodd").classed("cursor-move",!!v).attr("transform",z).attr("d",oe+"Z");var dt=I.append("path").attr("class","zoombox-corners").style({fill:yg.background,stroke:yg.defaultLine,"stroke-width":1}).attr("transform",z).attr("d","M0,0Z");if(v&&i.hasText){var Mt=I.select(".label-temp");Mt.empty()&&(Mt=I.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ct=D._uid+cx.SELECTID,ve=[],Ie=hx(C,i.xaxes,i.yaxes,i.subplot);E&&!e.shiftKey&&(i._clearSubplotSelections=function(){if(s){var rt=fe._id,pt=de._id;II(C,rt,pt,Ie);for(var je=(C.layout||{}).selections||[],qt=[],It=!1,Tt=0;Tt=0){C._fullLayout._deactivateShape(C);return}if(!v){var je=D.clickmode;gg.done(ct).then(function(){if(gg.clear(ct),rt===2){for(mt.remove(),Qe=0;Qe-1&&CI(pt,C,i.xaxes,i.yaxes,i.subplot,i,mt),je==="event"&&Tg(C,void 0);Dne.click(C,pt,q.id)}).catch(fx.error)}},i.doneFn=function(){dt.remove(),gg.done(ct).then(function(){gg.clear(ct),!E&&Le&&i.selectionDefs&&(Le.subtract=Te,i.selectionDefs.push(Le),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,Ce)),(E||v)&&bg(i,E),i.doneFnCompleted&&i.doneFnCompleted(ve),m&&Tg(C,at)}).catch(fx.error)}}function CI(e,t,r,i,a,s,l){var f=t._hoverdata,h=t._fullLayout,v=h.clickmode,m=v.indexOf("event")>-1,_=[],T,S,C,D,E,I,B,q,z,O;if(Jne(f)){EI(e,t,s),T=hx(t,r,i,a);var H=Kne(f,T),V=H.pointNumbers.length>0;if(V?Qne(T,H):$ne(T)&&(B=wI(H))){for(l&&l.remove(),O=0;O=0}function jne(e){return e._fullLayout._activeSelectionIndex>=0}function bg(e,t){var r=e.dragmode,i=e.plotinfo,a=e.gd;Xne(a)&&a._fullLayout._deactivateShape(a),jne(a)&&a._fullLayout._deactivateSelection(a);var s=a._fullLayout,l=s._zoomlayer,f=xg(r),h=Q4(r);if(f||h){var v=l.selectAll(".select-outline-"+i.id);if(v&&a._fullLayout._outlining){var m;f&&(m=Fne(v,e)),m&&_g.call("_guiRelayout",a,{shapes:m});var _;h&&!t6(e)&&(_=qne(v,e)),_&&(a._fullLayout._noEmitSelectedAtStart=!0,_g.call("_guiRelayout",a,{selections:_}).then(function(){t&&Nne(a)})),a._fullLayout._outlining=!1}}i.selection={},i.selection.selectionDefs=e.selectionDefs=[],i.selection.mergedPolygons=e.mergedPolygons=[]}function bI(e){return e._id}function hx(e,t,r,i){if(!e.calcdata)return[];var a=[],s=t.map(bI),l=r.map(bI),f,h,v;for(v=0;v0,s=a?i[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(s)>-1:!1}function Qne(e,t){var r=[],i,a,s,l;for(l=0;l0&&r.push(i);if(r.length===1&&(s=r[0]===t.searchInfo,s&&(a=t.searchInfo.cd[0].trace,a.selectedpoints.length===t.pointNumbers.length))){for(l=0;l1||(t+=i.selectedpoints.length,t>1)))return!1;return t===1}function wg(e,t,r){var i;for(i=0;i-1&&t;if(!l&&t){var rt=TI(e,!0);if(rt.length){var pt=rt[0].xref,je=rt[0].yref;if(pt&&je){var qt=RI(rt),It=FI([tu(e,pt,"x"),tu(e,je,"y")]);It(ve,qt)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:me&&Tg(e,ve),T._reselect=!1}if(!l&&T._deselect){var Tt=T._deselect;f=Tt.xref,h=Tt.yref,roe(f,h,m)||II(e,f,h,i),me&&(ve.points.length?Tg(e,ve):i6(e)),T._deselect=!1}return{eventData:ve,selectionTesters:r}}function toe(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";BI.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Mg=pe((T_e,OI)=>{"use strict";OI.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}});var Q0=pe((M_e,HI)=>{"use strict";var UI=n6(),VI=qo(),vx=Ao(),soe=Pi().templatedArray,A_e=Mg();HI.exports=soe("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:VI({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:UI.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:UI.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",vx.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",vx.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",vx.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",vx.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:VI({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var dx=pe((S_e,GI)=>{"use strict";GI.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var px=pe((k_e,ZI)=>{"use strict";ZI.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var kc=pe((C_e,KI)=>{"use strict";var YI=Nw().axisHoverFormat,loe=Hl().texttemplateAttrs,uoe=Hl().hovertemplateAttrs,WI=xc(),foe=qo(),coe=hc().dash,hoe=hc().pattern,voe=xi(),doe=dx(),mx=hn().extendFlat,poe=px();function XI(e){return{valType:"any",dflt:0,editType:"calc"}}function jI(e){return{valType:"any",editType:"calc"}}function JI(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}KI.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:XI("x"),yperiod:XI("y"),xperiod0:jI("x0"),yperiod0:jI("y0"),xperiodalignment:JI("x"),yperiodalignment:JI("y"),xhoverformat:YI("x"),yhoverformat:YI("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:loe({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:uoe({},{keys:doe.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:mx({},coe,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:poe(!0),fillgradient:mx({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:hoe,marker:mx({symbol:{valType:"enumerated",values:voe.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:mx({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},WI("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},WI("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:foe({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var o6=pe((L_e,eR)=>{"use strict";var QI=Q0(),$I=kc().line,moe=hc().dash,yx=hn().extendFlat,yoe=il().overrideAll,goe=Pi().templatedArray,E_e=Mg();eR.exports=yoe(goe("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:yx({},QI.xref,{}),yref:yx({},QI.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:$I.color,width:yx({},$I.width,{min:1,dflt:1}),dash:yx({},moe,{dflt:"dot"})}}),"arraydraw","from-root")});var iR=pe((D_e,aR)=>{"use strict";var tR=Bt(),gx=Yi(),_oe=Wl(),xoe=o6(),rR=Hh();aR.exports=function(t,r){_oe(t,r,{name:"selections",handleItemDefaults:boe});for(var i=r.selections,a=0;a{"use strict";nR.exports=function(t,r,i){i("newselection.mode");var a=i("newselection.line.width");a&&(i("newselection.line.color"),i("newselection.line.dash")),i("activeselection.fillcolor"),i("activeselection.opacity")}});var Sg=pe((z_e,uR)=>{"use strict";var woe=la(),sR=Bt(),lR=$n();uR.exports=function(t){return function(i,a){var s=i[t];if(Array.isArray(s))for(var l=woe.subplotsRegistry.cartesian,f=l.idRegex,h=a._subplots,v=h.xaxis,m=h.yaxis,_=h.cartesian,T=a._has("cartesian"),S=0;S{"use strict";var fR=Y4(),kg=NI();cR.exports={moduleType:"component",name:"selections",layoutAttributes:o6(),supplyLayoutDefaults:iR(),supplyDrawNewSelectionDefaults:oR(),includeBasePlot:Sg()("selections"),draw:fR.draw,drawOne:fR.drawOne,reselect:kg.reselect,prepSelect:kg.prepSelect,clearOutline:kg.clearOutline,clearSelectionsCache:kg.clearSelectionsCache,selectOnClick:kg.selectOnClick}});var PR=pe((R_e,DR)=>{"use strict";var c6=ja(),ru=Bt(),hR=ru.numberFormat,Toe=Tf(),Aoe=Z5(),_x=la(),bR=ru.strTranslate,Moe=co(),vR=Ua(),Zh=xi(),Soe=Rf(),dR=Yi(),koe=Oh(),Coe=jl(),wR=kd(),xx=wR.selectingOrDrawing,Eoe=wR.freeMode,Loe=ts().FROM_TL,Doe=I2(),Poe=ax().redrawReglTraces,zoe=eo(),l6=$n().getFromId,Ioe=Nf().prepSelect,Roe=Nf().clearOutline,Foe=Nf().selectOnClick,s6=N4(),h6=Ao(),pR=h6.MINDRAG,ys=h6.MINZOOM,mR=!0;function qoe(e,t,r,i,a,s,l,f){var h=e._fullLayout._zoomlayer,v=l+f==="nsew",m=(l+f).length===1,_,T,S,C,D,E,I,B,q,z,O,H,V,W,J,te,ne,oe,fe,de,Me,Se,Te;r+=t.yaxis._shift;function we(){if(_=t.xaxis,T=t.yaxis,q=_._length,z=T._length,I=_._offset,B=T._offset,S={},S[_._id]=_,C={},C[T._id]=T,l&&f)for(var wt=t.overlays,bt=0;bt=0){Ht._fullLayout._deactivateShape(Ht);return}var Xt=Ht._fullLayout.clickmode;if(f6(Ht),wt===2&&!m&&Vt(),v)Xt.indexOf("select")>-1&&Foe(bt,Ht,D,E,t.id,Le),Xt.indexOf("event")>-1&&Soe.click(Ht,bt,t.id);else if(wt===1&&m){var Gt=l?T:_,Ot=l==="s"||f==="w"?0:1,tr=Gt._name+".range["+Ot+"]",Mr=Noe(Gt,Ot),br="left",Lt="middle";if(Gt.fixedrange)return;l?(Lt=l==="n"?"top":"bottom",Gt.side==="right"&&(br="right")):f==="e"&&(br="right"),Ht._context.showAxisRangeEntryBoxes&&c6.select(Ce).call(Moe.makeEditable,{gd:Ht,immediate:!0,background:Ht._fullLayout.paper_bgcolor,text:String(Mr),fill:Gt.tickfont?Gt.tickfont.color:"#444",horizontalAlign:br,verticalAlign:Lt}).on("edit",function(Fe){var He=Gt.d2r(Fe);He!==void 0&&_x.call("_guiRelayout",Ht,tr,He)})}}Coe.init(Le);var at,mt,Ye,At,it,dt,Mt,ct,ve,Ie;function me(wt,bt,Ht){var Xt=Ce.getBoundingClientRect();at=bt-Xt.left,mt=Ht-Xt.top,e._fullLayout._calcInverseTransform(e);var Gt=ru.apply3DTransform(e._fullLayout._invTransform)(at,mt);at=Gt[0],mt=Gt[1],Ye={l:at,r:at,w:0,t:mt,b:mt,h:0},At=e._hmpixcount?e._hmlumcount/e._hmpixcount:Toe(e._fullLayout.plot_bgcolor).getLuminance(),it="M0,0H"+q+"V"+z+"H0V0",dt=!1,Mt="xy",Ie=!1,ct=MR(h,At,I,B,it),ve=SR(h,I,B)}function rt(wt,bt){if(e._transitioningWithDuration)return!1;var Ht=Math.max(0,Math.min(q,Se*wt+at)),Xt=Math.max(0,Math.min(z,Te*bt+mt)),Gt=Math.abs(Ht-at),Ot=Math.abs(Xt-mt);Ye.l=Math.min(at,Ht),Ye.r=Math.max(at,Ht),Ye.t=Math.min(mt,Xt),Ye.b=Math.max(mt,Xt);function tr(){Mt="",Ye.r=Ye.l,Ye.t=Ye.b,ve.attr("d","M0,0Z")}if(O.isSubplotConstrained)Gt>ys||Ot>ys?(Mt="xy",Gt/q>Ot/z?(Ot=Gt*z/q,mt>Xt?Ye.t=mt-Ot:Ye.b=mt+Ot):(Gt=Ot*q/z,at>Ht?Ye.l=at-Gt:Ye.r=at+Gt),ve.attr("d",bx(Ye))):tr();else if(H.isSubplotConstrained)if(Gt>ys||Ot>ys){Mt="xy";var Mr=Math.min(Ye.l/q,(z-Ye.b)/z),br=Math.max(Ye.r/q,(z-Ye.t)/z);Ye.l=Mr*q,Ye.r=br*q,Ye.b=(1-Mr)*z,Ye.t=(1-br)*z,ve.attr("d",bx(Ye))}else tr();else!W||Ot0){var Fe;if(H.isSubplotConstrained||!V&&W.length===1){for(Fe=0;Fe1&&(tr.maxallowed!==void 0&&te===(tr.range[0]1&&(Mr.maxallowed!==void 0&&ne===(Mr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Ooe(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function MR(e,t,r,i,a){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",bR(r,i)).attr("d",a+"Z")}function SR(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:vR.background,stroke:vR.defaultLine,"stroke-width":1,opacity:0}).attr("transform",bR(t,r)).attr("d","M0,0Z")}function kR(e,t,r,i,a,s){e.attr("d",i+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),CR(e,t,a,s)}function CR(e,t,r,i){r||(e.transition().style("fill",i>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function f6(e){c6.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function ER(e){mR&&e.data&&e._context.showTips&&(ru.notifier(ru._(e,"Double-click to zoom back out"),"long"),mR=!1)}function Uoe(e,t){return"M"+(e.l-.5)+","+(t-ys-.5)+"h-3v"+(2*ys+1)+"h3ZM"+(e.r+.5)+","+(t-ys-.5)+"h3v"+(2*ys+1)+"h-3Z"}function Voe(e,t){return"M"+(t-ys-.5)+","+(e.t-.5)+"v-3h"+(2*ys+1)+"v3ZM"+(t-ys-.5)+","+(e.b+.5)+"v3h"+(2*ys+1)+"v-3Z"}function bx(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,ys)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function _R(e,t,r,i,a){for(var s=!1,l={},f={},h,v,m,_,T=(a||{}).xaHash,S=(a||{}).yaHash,C=0;C{"use strict";var Hoe=ja(),wx=Rf(),Goe=jl(),Zoe=Oh(),Bu=PR().makeDragBox,io=Ao().DRAGGERSIZE;Tx.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){Hoe.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var i=Object.keys(r._plots||{}).sort(function(s,l){if((r._plots[s].mainplot&&!0)===(r._plots[l].mainplot&&!0)){var f=s.split("y"),h=l.split("y");return f[0]===h[0]?Number(f[1]||1)-Number(h[1]||1):Number(f[0]||1)-Number(h[0]||1)}return r._plots[s].mainplot?1:-1});i.forEach(function(s){var l=r._plots[s],f=l.xaxis,h=l.yaxis;if(!l.mainplot){var v=Bu(t,l,f._offset,h._offset,f._length,h._length,"ns","ew");v.onmousemove=function(T){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===s&&t._fullLayout._plots[s]&&wx.hover(t,T,s)},wx.hover(t,T,s),t._fullLayout._lasthover=v,t._fullLayout._hoversubplot=s},v.onmouseout=function(T){t._dragging||(t._fullLayout._hoversubplot=null,Goe.unhover(t,T))},t._context.showAxisDragHandles&&(Bu(t,l,f._offset-io,h._offset-io,io,io,"n","w"),Bu(t,l,f._offset+f._length,h._offset-io,io,io,"n","e"),Bu(t,l,f._offset-io,h._offset+h._length,io,io,"s","w"),Bu(t,l,f._offset+f._length,h._offset+h._length,io,io,"s","e"))}if(t._context.showAxisDragHandles){if(s===f._mainSubplot){var m=f._mainLinePosition;f.side==="top"&&(m-=io),Bu(t,l,f._offset+f._length*.1,m,f._length*.8,io,"","ew"),Bu(t,l,f._offset,m,f._length*.1,io,"","w"),Bu(t,l,f._offset+f._length*.9,m,f._length*.1,io,"","e")}if(s===h._mainSubplot){var _=h._mainLinePosition;h.side!=="right"&&(_-=io),Bu(t,l,_,h._offset+h._length*.1,io,h._length*.8,"ns",""),Bu(t,l,_,h._offset+h._length*.9,io,h._length*.1,"s",""),Bu(t,l,_,h._offset,io,h._length*.1,"n","")}}});var a=r._hoverlayer.node();a.onmousemove=function(s){s.target=t._fullLayout._lasthover,wx.hover(t,s,r._hoversubplot)},a.onclick=function(s){s.target=t._fullLayout._lasthover,wx.click(t,s)},a.onmousedown=function(s){t._fullLayout._lasthover.onmousedown(s)},Tx.updateFx(t)}};Tx.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";Zoe(t._draggers,r)}});var RR=pe((q_e,IR)=>{"use strict";var zR=la();IR.exports=function(t){for(var r=zR.layoutArrayContainers,i=zR.layoutArrayRegexes,a=t.split("[")[0],s,l,f=0;f{"use strict";var Yoe=cc(),d6=n_(),Cg=Th(),Woe=uw().sorterAsc,p6=la();Eg.containerArrayMatch=RR();var Xoe=Eg.isAddVal=function(t){return t==="add"||Yoe(t)},FR=Eg.isRemoveVal=function(t){return t===null||t==="remove"};Eg.applyContainerArrayChanges=function(t,r,i,a,s){var l=r.astr,f=p6.getComponentMethod(l,"supplyLayoutDefaults"),h=p6.getComponentMethod(l,"draw"),v=p6.getComponentMethod(l,"drawOne"),m=a.replot||a.recalc||f===d6||h===d6,_=t.layout,T=t._fullLayout;if(i[""]){Object.keys(i).length>1&&Cg.warn("Full array edits are incompatible with other edits",l);var S=i[""][""];if(FR(S))r.set(null);else if(Array.isArray(S))r.set(S);else return Cg.warn("Unrecognized full array edit value",l,S),!0;return m?!1:(f(_,T),h(t),!0)}var C=Object.keys(i).map(Number).sort(Woe),D=r.get(),E=D||[],I=s(T,l).get(),B=[],q=-1,z=E.length,O,H,V,W,J,te,ne,oe;for(O=0;OE.length-(ne?0:1)){Cg.warn("index out of range",l,V);continue}if(te!==void 0)J.length>1&&Cg.warn("Insertion & removal are incompatible with edits to the same index.",l,V),FR(te)?B.push(V):ne?(te==="add"&&(te={}),E.splice(V,0,te),I&&I.splice(V,0,{})):Cg.warn("Unrecognized full object edit value",l,V,te),q===-1&&(q=V);else for(H=0;H=0;O--)E.splice(B[O],1),I&&I.splice(B[O],1);if(E.length?D||r.set(E):r.set(null),m)return!1;if(f(_,T),v!==d6){var fe;if(q===-1)fe=C;else{for(z=Math.max(E.length,z),fe=[],O=0;O=q));O++)fe.push(V);for(O=q;O{"use strict";var UR=Pa(),B_e=ew(),VR=la(),Vs=Bt(),Lg=eo(),HR=$n(),GR=Ua(),Dg=HR.cleanId,joe=HR.getFromTrace,m6=VR.traceIs;Ou.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Vs.log("Clearing previous rejected promises from queue."),e._promises=[]};Ou.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var i=(Lg.subplotsRegistry.cartesian||{}).attrRegex,a=(Lg.subplotsRegistry.polar||{}).attrRegex,s=(Lg.subplotsRegistry.ternary||{}).attrRegex,l=(Lg.subplotsRegistry.gl3d||{}).attrRegex,f=Object.keys(e);for(t=0;t3?(E.x=1.02,E.xanchor="left"):E.x<-2&&(E.x=-.02,E.xanchor="right"),E.y>3?(E.y=1.02,E.yanchor="bottom"):E.y<-2&&(E.y=-.02,E.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),GR.clean(e),e.template&&e.template.layout&&Ou.cleanLayout(e.template.layout),e};function $0(e,t){var r=e[t],i=t.charAt(0);r&&r!=="paper"&&(e[t]=Dg(r,i,!0))}Ou.cleanData=function(e){for(var t=0;t0)return e.substr(0,t)}Ou.hasParent=function(e,t){for(var r=OR(t);r;){if(r in e)return!0;r=OR(r)}return!1};var Qoe=["x","y","z"];Ou.clearAxisTypes=function(e,t,r){for(var i=0;i{"use strict";var kx=ja(),$oe=Pa(),ese=ww(),pr=Bt(),qi=pr.nestedProperty,_6=qy(),gs=Mk(),au=la(),Ix=M0(),ra=eo(),ss=Yi(),tse=G5(),rse=Ru(),y6=xi(),ase=Ua(),ise=v6().initInteractions,nse=zh(),ose=Nf().clearOutline,JR=rd().dfltConfig,Mx=qR(),On=ZR(),hi=ax(),Yh=il(),sse=Ao().AX_NAME_PATTERN,g6=0,YR=5;function lse(e,t,r,i){var a;if(e=pr.getGraphDiv(e),_6.init(e),pr.isPlainObject(t)){var s=t;t=s.data,r=s.layout,i=s.config,a=s.frames}var l=_6.triggerHandler(e,"plotly_beforeplot",[t,r,i]);if(l===!1)return Promise.reject();!t&&!r&&!pr.isPlotDiv(e)&&pr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function f(){if(a)return ei.addFrames(e,a)}QR(e,i),r||(r={}),kx.select(e).classed("js-plotly-plot",!0),y6.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var h=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(On.cleanData(t),h?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||h)&&(e.layout=On.cleanLayout(r)),ra.supplyDefaults(e);var v=e._fullLayout,m=v._has("cartesian");v._replotting=!0,(h||v._shouldCreateBgLayer)&&(Dse(e),v._shouldCreateBgLayer&&delete v._shouldCreateBgLayer),y6.initGradients(e),y6.initPatterns(e),h&&ss.saveShowSpikeInitial(e);var _=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;_&&ra.doCalcdata(e);for(var T=0;T=e.data.length||a<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(a,i+1)>-1||a>=0&&t.indexOf(-e.data.length+a)>-1||a<0&&t.indexOf(e.data.length+a)>-1)throw new Error("each index in "+r+" must be unique.")}}function $R(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),Ex(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&Ex(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function vse(e,t,r){var i,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),i=0;i=0&&m<_.length?_.splice(0,_.length-m):[];return[_,T]}var s=eF(e,t,r,i,a),l=ei.redraw(e),f=[e,s.update,r,s.maxPoints];return gs.add(e,ei.prependTraces,f,rF,arguments),l}function aF(e,t,r,i){e=pr.getGraphDiv(e);function a(h,v,m){var _,T;if(pr.isTypedArray(h))if(m<=0){var S=new h.constructor(0),C=tF(v,h);m<0?(_=C,T=S):(_=S,T=C)}else if(_=new h.constructor(m),T=new h.constructor(h.length+v.length-m),m===v.length)_.set(v),T.set(h);else if(m=0&&m<_.length?_.splice(m,_.length):[];return[_,T]}var s=eF(e,t,r,i,a),l=ei.redraw(e),f=[e,s.update,r,s.maxPoints];return gs.add(e,ei.extendTraces,f,aF,arguments),l}function iF(e,t,r){e=pr.getGraphDiv(e);var i=[],a=ei.deleteTraces,s=iF,l=[e,i],f=[e,t],h,v;for(vse(e,t,r),Array.isArray(t)||(t=[t]),t=t.map(function(m){return pr.extendFlat({},m)}),On.cleanData(t),h=0;h0&&typeof W.parts[ne]!="string";)ne--;var oe=W.parts[ne],fe=W.parts[ne-1]+"."+oe,de=W.parts.slice(0,ne).join("."),Me=qi(e.layout,de).get(),Se=qi(i,de).get(),Te=W.get();if(J!==void 0){I[V]=J,B[V]=oe==="reverse"?J:Cc(Te);var we=Ix.getLayoutValObject(i,W.parts);if(we&&we.impliedEdits&&J!==null)for(var Ae in we.impliedEdits)q(pr.relativeAttr(V,Ae),we.impliedEdits[Ae]);if(["width","height"].indexOf(V)!==-1)if(J){q("autosize",null);var Ce=V==="height"?"width":"height";q(Ce,i[Ce])}else i[V]=e._initialAutoSize[V];else if(V==="autosize")q("width",J?null:i.width),q("height",J?null:i.height);else if(fe.match(lF))H(fe),qi(i,de+"._inputRange").set(null);else if(fe.match(uF)){H(fe),qi(i,de+"._inputRange").set(null);var Le=qi(i,de).get();Le._inputDomain&&(Le._input.domain=Le._inputDomain.slice())}else fe.match(yse)&&qi(i,de+"._inputDomain").set(null);if(oe==="type"){O=Me;var Qe=Se.type==="linear"&&J==="log",st=Se.type==="log"&&J==="linear";if(Qe||st){if(!O||!O.range)q(de+".autorange",!0);else if(Se.autorange)Qe&&(O.range=O.range[1]>O.range[0]?[1,2]:[2,1]);else{var at=O.range[0],mt=O.range[1];Qe?(at<=0&&mt<=0&&q(de+".autorange",!0),at<=0?at=mt/1e6:mt<=0&&(mt=at/1e6),q(de+".range[0]",Math.log(at)/Math.LN10),q(de+".range[1]",Math.log(mt)/Math.LN10)):(q(de+".range[0]",Math.pow(10,at)),q(de+".range[1]",Math.pow(10,mt)))}Array.isArray(i._subplots.polar)&&i._subplots.polar.length&&i[W.parts[0]]&&W.parts[1]==="radialaxis"&&delete i[W.parts[0]]._subplot.viewInitial["radialaxis.range"],au.getComponentMethod("annotations","convertCoords")(e,Se,J,q),au.getComponentMethod("images","convertCoords")(e,Se,J,q)}else q(de+".autorange",!0),q(de+".range",null);qi(i,de+"._inputRange").set(null)}else if(oe.match(sse)){var Ye=qi(i,V).get(),At=(J||{}).type;(!At||At==="-")&&(At="linear"),au.getComponentMethod("annotations","convertCoords")(e,Ye,At,q),au.getComponentMethod("images","convertCoords")(e,Ye,At,q)}var it=Mx.containerArrayMatch(V);if(it){m=it.array,_=it.index;var dt=it.property,Mt=we||{editType:"calc"};_!==""&&dt===""&&(Mx.isAddVal(J)?B[V]=null:Mx.isRemoveVal(J)?B[V]=(qi(r,m).get()||[])[_]:pr.warn("unrecognized full object value",t)),Yh.update(E,Mt),v[m]||(v[m]={});var ct=v[m][_];ct||(ct=v[m][_]={}),ct[dt]=J,delete t[V]}else oe==="reverse"?(Me.range?Me.range.reverse():(q(de+".autorange",!0),Me.range=[1,0]),Se.autorange?E.calc=!0:E.plot=!0):(V==="dragmode"&&(J===!1&&Te!==!1||J!==!1&&Te===!1)||i._has("scatter-like")&&i._has("regl")&&V==="dragmode"&&(J==="lasso"||J==="select")&&!(Te==="lasso"||Te==="select")?E.plot=!0:we?Yh.update(E,we):E.calc=!0,W.set(J))}}for(m in v){var ve=Mx.applyContainerArrayChanges(e,s(r,m),v[m],E,s);ve||(E.plot=!0)}for(var Ie in z){O=ss.getFromId(e,Ie);var me=O&&O._constraintGroup;if(me){E.calc=!0;for(var rt in me)z[rt]||(ss.getFromId(e,rt)._constraintShrinkable=!0)}}(cF(e)||t.height||t.width)&&(E.plot=!0);var pt=i.shapes;for(_=0;_1;)if(i.pop(),r=qi(t,i.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function xse(e,t){for(var r=0;r=a.length?a[0]:a[v]:a}function f(v){return Array.isArray(s)?v>=s.length?s[0]:s[v]:s}function h(v,m){var _=0;return function(){if(v&&++_===m)return v()}}return new Promise(function(v,m){function _(){if(i._frameQueue.length!==0){for(;i._frameQueue.length;){var oe=i._frameQueue.pop();oe.onInterrupt&&oe.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function T(oe){if(oe.length!==0){for(var fe=0;fei._timeToNext&&C()};oe()}var E=0;function I(oe){return Array.isArray(a)?E>=a.length?oe.transitionOpts=a[E]:oe.transitionOpts=a[0]:oe.transitionOpts=a,E++,oe}var B,q,z=[],O=t==null,H=Array.isArray(t),V=!O&&!H&&pr.isPlainObject(t);if(V)z.push({type:"object",data:I(pr.extendFlat({},t))});else if(O||["string","number"].indexOf(typeof t)!==-1)for(B=0;B0&&tete)&&ne.push(q);z=ne}}z.length>0?T(z):(e.emit("plotly_animated"),v())})}function kse(e,t,r){if(e=pr.getGraphDiv(e),t==null)return Promise.resolve();if(!pr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var i,a,s,l,f=e._transitionData._frames,h=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var v=f.length+t.length*2,m=[],_={};for(i=t.length-1;i>=0;i--)if(pr.isPlainObject(t[i])){var T=t[i].name,S=(h[T]||_[T]||{}).name,C=t[i].name,D=h[S]||_[S];S&&C&&typeof C=="number"&&D&&g6W.index?-1:V.index=0;i--){if(a=m[i].frame,typeof a.name=="number"&&pr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;h[a.name="frame "+e._transitionData._counter++];);if(h[a.name]){for(s=0;s=0;r--)i=t[r],s.push({type:"delete",index:i}),l.unshift({type:"insert",index:i,value:a[i]});var f=ra.modifyFrames,h=ra.modifyFrames,v=[e,l],m=[e,s];return gs&&gs.add(e,f,v,h,m),ra.modifyFrames(e,s)}function Ese(e){e=pr.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return ra.cleanPlot([],{},r,t),ra.purge(e),_6.purge(e),t._container&&t._container.remove(),delete e._context,e}function Lse(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!pr.equalDomRects(r,t._lastBBox)){var i=t._invTransform=pr.inverseTransformMatrix(pr.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(i[0][0]*i[0][0]+i[0][1]*i[0][1]+i[0][2]*i[0][2]),t._invScaleY=Math.sqrt(i[1][0]*i[1][0]+i[1][1]*i[1][1]+i[1][2]*i[1][2]),t._lastBBox=r}}function Dse(e){var t=kx.select(e),r=e._fullLayout;if(r._calcInverseTransform=Lse,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var i={};kx.selectAll("defs").each(function(){this.id&&(i[this.id.split("-")[1]]=1)}),r._uid=pr.randstr(i)}r._paperdiv.selectAll(".main-svg").attr(nse.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var a=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=a.append("g").classed("imagelayer",!0),r._shapeLowerLayer=a.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var s=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=s.append("g").classed("imagelayer",!0),r._shapeUpperLayer=s.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}ei.animate=Sse;ei.addFrames=kse;ei.deleteFrames=Cse;ei.addTraces=iF;ei.deleteTraces=nF;ei.extendTraces=rF;ei.moveTraces=x6;ei.prependTraces=aF;ei.newPlot=hse;ei._doPlot=lse;ei.purge=Ese;ei.react=Tse;ei.redraw=cse;ei.relayout=Pg;ei.restyle=Lx;ei.setPlotConfig=use;ei.update=Px;ei._guiRelayout=w6(Pg);ei._guiRestyle=w6(Lx);ei._guiUpdate=w6(Px);ei._storeDirectGUIEdit=mse});var Dd=pe(Bf=>{"use strict";var Pse=la();Bf.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Bf.getRedrawFunc=function(e){return function(){Pse.getComponentMethod("colorbar","draw")(e)}};Bf.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Bf.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var hF=window.URL||window.webkitURL;Bf.createObjectURL=function(e){return hF.createObjectURL(e)};Bf.revokeObjectURL=function(e){return hF.revokeObjectURL(e)};Bf.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=zse(window.atob(e));return new window.Blob([r],{type:"image/"+t})};Bf.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function zse(e){for(var t=e.length,r=new ArrayBuffer(t),i=new Uint8Array(r),a=0;a{"use strict";var M6=ja(),H_e=Bt(),Ise=xi(),Rse=Ua(),G_e=zh(),A6=/"/g,Ig="TOBESTRIPPED",Fse=new RegExp('("'+Ig+")|("+Ig+'")',"g");function qse(e){var t=M6.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,function(i){return i==="<"?"<":i==="&rt;"?">":i.indexOf("<")!==-1||i.indexOf(">")!==-1?"":t.html(i).text()});return t.remove(),r}function Nse(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}vF.exports=function(t,r,i){var a=t._fullLayout,s=a._paper,l=a._toppaper,f=a.width,h=a.height,v;s.insert("rect",":first-child").call(Ise.setRect,0,0,f,h).call(Rse.fill,a.paper_bgcolor);var m=a._basePlotModules||[];for(v=0;v{"use strict";var Bse=Bt(),Ose=C_().EventEmitter,Rg=Dd();function Use(e){var t=e.emitter||new Ose,r=new Promise(function(i,a){var s=window.Image,l=e.svg,f=e.format||"png",h=e.canvas,v=e.scale||1,m=e.width||300,_=e.height||150,T=v*m,S=v*_,C=h.getContext("2d",{willReadFrequently:!0}),D=new s,E,I;f==="svg"||Bse.isSafari()?I=Rg.encodeSVG(l):(E=Rg.createBlob(l,"svg"),I=Rg.createObjectURL(E)),h.width=T,h.height=S,D.onload=function(){var B;switch(E=null,Rg.revokeObjectURL(I),f!=="svg"&&C.drawImage(D,0,0,T,S),f){case"jpeg":B=h.toDataURL("image/jpeg");break;case"png":B=h.toDataURL("image/png");break;case"webp":B=h.toDataURL("image/webp");break;case"svg":B=I;break;default:var q="Image format is not jpeg, png, svg or webp.";if(a(new Error(q)),!e.promise)return t.emit("error",q)}i(B),e.promise||t.emit("success",B)},D.onerror=function(B){if(E=null,Rg.revokeObjectURL(I),a(B),!e.promise)return t.emit("error",B)},D.src=I});return e.promise?r:t}dF.exports=Use});var k6=pe((W_e,yF)=>{"use strict";var pF=Pa(),mF=T6(),Vse=eo(),Of=Bt(),Fg=Dd(),Hse=Fx(),Gse=qx(),Zse=U1().version,S6={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Yse(e,t){t=t||{};var r,i,a,s;Of.isPlainObject(e)?(r=e.data||[],i=e.layout||{},a=e.config||{},s={}):(e=Of.getGraphDiv(e),r=Of.extendDeep([],e.data),i=Of.extendDeep({},e.layout),a=e._context,s=e._fullLayout||{});function l(H){return!(H in t)||Of.validate(t[H],S6[H])}if(!l("width")&&t.width!==null||!l("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+Of.join2(S6.format.values,", "," or ")+".");var f={};function h(H,V){return Of.coerce(t,f,S6,H,V)}var v=h("format"),m=h("width"),_=h("height"),T=h("scale"),S=h("setBackground"),C=h("imageDataOnly"),D=document.createElement("div");D.style.position="absolute",D.style.left="-5000px",document.body.appendChild(D);var E=Of.extendFlat({},i);m?E.width=m:t.width===null&&pF(s.width)&&(E.width=s.width),_?E.height=_:t.height===null&&pF(s.height)&&(E.height=s.height);var I=Of.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:S}),B=Fg.getRedrawFunc(D);function q(){return new Promise(function(H){setTimeout(H,Fg.getDelay(D._fullLayout))})}function z(){return new Promise(function(H,V){var W=Hse(D,v,T),J=D._fullLayout.width,te=D._fullLayout.height;function ne(){mF.purge(D),document.body.removeChild(D)}if(v==="full-json"){var oe=Vse.graphJson(D,!1,"keepdata","object",!0,!0);return oe.version=Zse,oe=JSON.stringify(oe),ne(),H(C?oe:Fg.encodeJSON(oe))}if(ne(),v==="svg")return H(C?W:Fg.encodeSVG(W));var fe=document.createElement("canvas");fe.id=Of.randstr(),Gse({format:v,width:J,height:te,scale:T,canvas:fe,svg:W,promise:!0}).then(H).catch(V)})}function O(H){return C?H.replace(Fg.IMAGE_URL_PREFIX,""):H}return new Promise(function(H,V){mF.newPlot(D,r,E,I).then(B).then(q).then(z).then(function(W){H(O(W))}).catch(function(W){V(W)})})}yF.exports=Yse});var xF=pe((X_e,_F)=>{"use strict";var iu=Bt(),Wse=eo(),Xse=M0(),jse=rd().dfltConfig,Uu=iu.isPlainObject,zd=Array.isArray,C6=iu.isArrayOrTypedArray;_F.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var i=Xse.get(),a=[],s={_context:iu.extendFlat({},jse)},l,f;zd(t)?(s.data=iu.extendDeep([],t),l=t):(s.data=[],l=[],a.push(no("array","data"))),Uu(r)?(s.layout=iu.extendDeep({},r),f=r):(s.layout={},f={},arguments.length>1&&a.push(no("object","layout"))),Wse.supplyDefaults(s);for(var h=s._fullData,v=l.length,m=0;m_.length&&i.push(no("unused",a,v.concat(_.length)));var I=_.length,B=Array.isArray(E);B&&(I=Math.min(I,E.length));var q,z,O,H,V;if(T.dimensions===2)for(z=0;z_[z].length&&i.push(no("unused",a,v.concat(z,_[z].length)));var W=_[z].length;for(q=0;q<(B?Math.min(W,E[z].length):W);q++)O=B?E[z][q]:E,H=m[z][q],V=_[z][q],iu.validate(H,O)?V!==H&&V!==+H&&i.push(no("dynamic",a,v.concat(z,q),H,V)):i.push(no("value",a,v.concat(z,q),H))}else i.push(no("array",a,v.concat(z),m[z]));else for(z=0;z{"use strict";var rle=Bt(),Bx=Dd();function ale(e,t,r){var i=document.createElement("a"),a="download"in i,s=new Promise(function(l,f){var h,v;if(a)return h=Bx.createBlob(e,r),v=Bx.createObjectURL(h),i.href=v,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),Bx.revokeObjectURL(v),h=null,l(t);if(rle.isSafari()){var m=r==="svg"?",":";base64,";return Bx.octetStream(m+encodeURIComponent(e)),l(t)}f(new Error("download error"))});return s}bF.exports=ale});var E6=pe((K_e,AF)=>{"use strict";var TF=Bt(),ile=k6(),nle=wF(),J_e=Dd();function ole(e,t){var r;return TF.isPlainObject(e)||(r=TF.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(i,a){r&&r._snapshotInProgress&&a(new Error("Snapshotting already in progress.")),r&&(r._snapshotInProgress=!0);var s=ile(e,t),l=t.filename||e.fn||"newplot";l+="."+t.format.replace("-","."),s.then(function(f){return r&&(r._snapshotInProgress=!1),nle(f,l,t.format)}).then(function(f){i(f)}).catch(function(f){r&&(r._snapshotInProgress=!1),a(f)})})}AF.exports=ole});var EF=pe(L6=>{"use strict";var Hs=Bt(),Gs=Hs.isPlainObject,MF=M0(),SF=eo(),sle=ms(),kF=Pi(),CF=rd().dfltConfig;L6.makeTemplate=function(e){e=Hs.isPlainObject(e)?e:Hs.getGraphDiv(e),e=Hs.extendDeep({_context:CF},{data:e.data,layout:e.layout}),SF.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var i={data:{},layout:{}};t.forEach(function(S){var C={};qg(S,C,ule.bind(null,S));var D=Hs.coerce(S,{},sle,"type"),E=i.data[D];E||(E=i.data[D]=[]),E.push(C)}),qg(r,i.layout,lle.bind(null,r)),delete i.layout.template;var a=r.template;if(Gs(a)){var s=a.layout,l,f,h,v,m,_;Gs(s)&&Ox(s,i.layout);var T=a.data;if(Gs(T)){for(f in i.data)if(h=T[f],Array.isArray(h)){for(m=i.data[f],_=m.length,v=h.length,l=0;l<_;l++)Ox(h[l%v],m[l]);for(l=_;lI?l.push({code:"unused",traceType:S,templateCount:E,dataCount:I}):I>E&&l.push({code:"reused",traceType:S,templateCount:E,dataCount:I})}}function B(q,z){for(var O in q)if(O.charAt(0)!=="_"){var H=q[O],V=nu(q,O,z);Gs(H)?(Array.isArray(q)&&H._template===!1&&H.templateitemname&&l.push({code:"missing",path:V,templateitemname:H.templateitemname}),B(H,V)):Array.isArray(H)&&fle(H)&&B(H,V)}}if(B({data:h,layout:f},""),l.length)return l.map(cle)};function fle(e){for(var t=0;t{"use strict";var Xn=T6();Wi._doPlot=Xn._doPlot;Wi.newPlot=Xn.newPlot;Wi.restyle=Xn.restyle;Wi.relayout=Xn.relayout;Wi.redraw=Xn.redraw;Wi.update=Xn.update;Wi._guiRestyle=Xn._guiRestyle;Wi._guiRelayout=Xn._guiRelayout;Wi._guiUpdate=Xn._guiUpdate;Wi._storeDirectGUIEdit=Xn._storeDirectGUIEdit;Wi.react=Xn.react;Wi.extendTraces=Xn.extendTraces;Wi.prependTraces=Xn.prependTraces;Wi.addTraces=Xn.addTraces;Wi.deleteTraces=Xn.deleteTraces;Wi.moveTraces=Xn.moveTraces;Wi.purge=Xn.purge;Wi.addFrames=Xn.addFrames;Wi.deleteFrames=Xn.deleteFrames;Wi.animate=Xn.animate;Wi.setPlotConfig=Xn.setPlotConfig;var hle=Ey().getGraphDiv,vle=J2().eraseActiveShape;Wi.deleteActiveShape=function(e){return vle(hle(e))};Wi.toImage=k6();Wi.validate=xF();Wi.downloadImage=E6();var LF=EF();Wi.makeTemplate=LF.makeTemplate;Wi.validateTemplate=LF.validateTemplate});var zF=pe((e2e,PF)=>{"use strict";var D6=Bt(),dle=la();PF.exports=function(t,r,i,a){var s=a("x"),l=a("y"),f,h=dle.getComponentMethod("calendars","handleTraceDefaults");if(h(t,r,["x","y"],i),s){var v=D6.minRowLength(s);l?f=Math.min(v,D6.minRowLength(l)):(f=v,a("y0"),a("dy"))}else{if(!l)return 0;f=D6.minRowLength(l),a("x0"),a("dx")}return r._length=f,f}});var qF=pe((t2e,FF)=>{"use strict";var IF=Bt().dateTick0,ple=Hi(),mle=ple.ONEWEEK;function RF(e,t){return e%mle===0?IF(t,1):IF(t,0)}FF.exports=function(t,r,i,a,s){if(s||(s={x:!0,y:!0}),s.x){var l=a("xperiod");l&&(a("xperiod0",RF(l,r.xcalendar)),a("xperiodalignment"))}if(s.y){var f=a("yperiod");f&&(a("yperiod0",RF(f,r.ycalendar)),a("yperiodalignment"))}}});var OF=pe((r2e,BF)=>{"use strict";var NF=["orientation","groupnorm","stackgaps"];BF.exports=function(t,r,i,a){var s=i._scatterStackOpts,l=a("stackgroup");if(l){var f=r.xaxis+r.yaxis,h=s[f];h||(h=s[f]={});var v=h[l],m=!1;v?v.traces.push(r):(v=h[l]={traceIndices:[],traces:[r]},m=!0);for(var _={orientation:r.x&&!r.y?"h":"v"},T=0;T{"use strict";var UF=Ua(),VF=kf().hasColorscale,HF=hd(),yle=rs();GF.exports=function(t,r,i,a,s,l){var f=yle.isBubble(t),h=(t.line||{}).color,v;if(l=l||{},h&&(i=h),s("marker.symbol"),s("marker.opacity",f?.7:1),s("marker.size"),l.noAngle||(s("marker.angle"),l.noAngleRef||s("marker.angleref"),l.noStandOff||s("marker.standoff")),s("marker.color",i),VF(t,"marker")&&HF(t,r,a,s,{prefix:"marker.",cLetter:"c"}),l.noSelect||(s("selected.marker.color"),s("unselected.marker.color"),s("selected.marker.size"),s("unselected.marker.size")),l.noLine||(h&&!Array.isArray(h)&&r.marker.color!==h?v=h:f?v=UF.background:v=UF.defaultLine,s("marker.line.color",v),VF(t,"marker.line")&&HF(t,r,a,s,{prefix:"marker.line.",cLetter:"c"}),s("marker.line.width",f?1:0)),f&&(s("marker.sizeref"),s("marker.sizemin"),s("marker.sizemode")),l.gradient){var m=s("marker.gradient.type");m!=="none"&&s("marker.gradient.color")}}});var z6=pe((i2e,ZF)=>{"use strict";var gle=Bt().isArrayOrTypedArray,_le=kf().hasColorscale,xle=hd();ZF.exports=function(t,r,i,a,s,l){l||(l={});var f=(t.marker||{}).color;if(f&&f._inputArray&&(f=f._inputArray),s("line.color",i),_le(t,"line"))xle(t,r,a,s,{prefix:"line.",cLetter:"c"});else{var h=(gle(f)?!1:f)||i;s("line.color",h)}s("line.width"),l.noDash||s("line.dash"),l.backoff&&s("line.backoff")}});var WF=pe((n2e,YF)=>{"use strict";YF.exports=function(t,r,i){var a=i("line.shape");a==="spline"&&i("line.smoothing")}});var I6=pe((o2e,XF)=>{"use strict";var ble=Bt();XF.exports=function(e,t,r,i,a){a=a||{},i("textposition"),ble.coerceFont(i,"textfont",a.font||r.font,a),a.noSelect||(i("selected.textfont.color"),i("unselected.textfont.color"))}});var R6=pe((s2e,JF)=>{"use strict";var Vx=Ua(),jF=Bt().isArrayOrTypedArray;function wle(e){for(var t=Vx.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var KF=Bt(),Tle=la(),Ale=kc(),Mle=dx(),em=rs(),Sle=zF(),kle=qF(),Cle=OF(),Ele=P6(),Lle=z6(),QF=WF(),Dle=I6(),Ple=R6(),zle=Bt().coercePattern;$F.exports=function(t,r,i,a){function s(S,C){return KF.coerce(t,r,Ale,S,C)}var l=Sle(t,r,a,s);if(l||(r.visible=!1),!!r.visible){kle(t,r,a,s),s("xhoverformat"),s("yhoverformat"),s("zorder");var f=Cle(t,r,a,s);a.scattermode==="group"&&r.orientation===void 0&&s("orientation","v");var h=!f&&l{"use strict";var Ile=ug().getAxisGroup;tq.exports=function(t,r,i,a,s){var l=r.orientation,f=r[{v:"x",h:"y"}[l]+"axis"],h=Ile(i,f)+l,v=i._alignmentOpts||{},m=a("alignmentgroup"),_=v[h];_||(_=v[h]={});var T=_[m];T?T.traces.push(r):T=_[m]={traces:[r],alignmentIndex:Object.keys(_).length,offsetGroups:{}};var S=a("offsetgroup")||"",C=T.offsetGroups,D=C[S];r._offsetIndex=0,(s!=="group"||S)&&(D||(D=C[S]={offsetIndex:Object.keys(C).length}),r._offsetIndex=D.offsetIndex)}});var iq=pe((f2e,aq)=>{"use strict";var Rle=Bt(),Fle=rq(),qle=kc();aq.exports=function(t,r){var i,a,s,l=r.scattermode;function f(T){return Rle.coerce(a._input,a,qle,T)}if(r.scattermode==="group")for(s=0;s=0;m--){var _=t[m];if(_.type==="scatter"&&_.xaxis===h.xaxis&&_.yaxis===h.yaxis){_.opacity=void 0;break}}}}}});var oq=pe((c2e,nq)=>{"use strict";var Nle=Bt(),Ble=z_();nq.exports=function(e,t){function r(a,s){return Nle.coerce(e,t,Ble,a,s)}var i=t.barmode==="group";t.scattermode==="group"&&r("scattergap",i?t.bargap:.2)}});var uq=pe((h2e,lq)=>{"use strict";var Ole=Pa(),sq=Bt(),Ule=sq.dateTime2ms,Hx=sq.incrementMonth,Vle=Hi(),Hle=Vle.ONEAVGMONTH;lq.exports=function(t,r,i,a){if(r.type!=="date")return{vals:a};var s=t[i+"periodalignment"];if(!s)return{vals:a};var l=t[i+"period"],f;if(Ole(l)){if(l=+l,l<=0)return{vals:a}}else if(typeof l=="string"&&l.charAt(0)==="M"){var h=+l.substring(1);if(h>0&&Math.round(h)===h)f=h;else return{vals:a}}for(var v=r.calendar,m=s==="start",_=s==="end",T=t[i+"period0"],S=Ule(T,v)||0,C=[],D=[],E=[],I=a.length,B=0;Bq;)H=Hx(H,-f,v);for(;H<=q;)H=Hx(H,f,v);O=Hx(H,-f,v)}else{for(z=Math.round((q-S)/l),H=S+z*l;H>q;)H-=l;for(;H<=q;)H+=l;O=H-l}C[B]=m?O:_?H:(O+H)/2,D[B]=O,E[B]=H}return{vals:C,starts:D,ends:E}}});var N6=pe((v2e,cq)=>{"use strict";var F6=kf().hasColorscale,q6=Hy(),fq=rs();cq.exports=function(t,r){fq.hasLines(r)&&F6(r,"line")&&q6(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),fq.hasMarkers(r)&&(F6(r,"marker")&&q6(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),F6(r,"marker.line")&&q6(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Ng=pe((d2e,hq)=>{"use strict";var dn=Bt();hq.exports=function(t,r){for(var i=0;i{"use strict";var vq=Bt();dq.exports=function(t,r){vq.isArrayOrTypedArray(r.selectedpoints)&&vq.tagSelected(t,r)}});var H6=pe((m2e,bq)=>{"use strict";var pq=Pa(),O6=Bt(),Bg=Yi(),mq=uq(),B6=Hi().BADNUM,U6=rs(),Gle=N6(),Zle=Ng(),Yle=Gx();function Wle(e,t){var r=e._fullLayout,i=t._xA=Bg.getFromId(e,t.xaxis||"x","x"),a=t._yA=Bg.getFromId(e,t.yaxis||"y","y"),s=i.makeCalcdata(t,"x"),l=a.makeCalcdata(t,"y"),f=mq(t,i,"x",s),h=mq(t,a,"y",l),v=f.vals,m=h.vals,_=t._length,T=new Array(_),S=t.ids,C=V6(t,r,i,a),D=!1,E,I,B,q,z,O;_q(r,t);var H="x",V="y",W;if(C)O6.pushUnique(C.traceIndices,t.index),E=C.orientation==="v",E?(V="s",W="x"):(H="s",W="y"),z=C.stackgaps==="interpolate";else{var J=gq(t,_);yq(e,t,i,a,v,m,J)}var te=!!t.xperiodalignment,ne=!!t.yperiodalignment;for(I=0;I<_;I++){var oe=T[I]={},fe=pq(v[I]),de=pq(m[I]);fe&&de?(oe[H]=v[I],oe[V]=m[I],te&&(oe.orig_x=s[I],oe.xEnd=f.ends[I],oe.xStart=f.starts[I]),ne&&(oe.orig_y=l[I],oe.yEnd=h.ends[I],oe.yStart=h.starts[I])):C&&(E?fe:de)?(oe[W]=E?v[I]:m[I],oe.gap=!0,z?(oe.s=B6,D=!0):oe.s=0):oe[H]=oe[V]=B6,S&&(oe.id=String(S[I]))}if(Zle(T,t),Gle(e,t),Yle(T,t),C){for(I=0;II&&T[q].gap;)q--;for(O=T[q].s,B=T.length-1;B>q;B--)T[B].s=O;for(;I{"use strict";wq.exports=Zx;var Xle=Bt().distinctVals;function Zx(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,i=t.posAxis._id.charAt(0),a=[],s=0;s{"use strict";var ou=Pa(),Wh=Bt().isArrayOrTypedArray,tm=Hi().BADNUM,jle=la(),Og=Yi(),Jle=ug().getAxisGroup,Yx=Tq();function Kle(e,t){for(var r=t.xaxis,i=t.yaxis,a=e._fullLayout,s=e._fullData,l=e.calcdata,f=[],h=[],v=0;vh+l||!ou(f))}for(var m=0;m{"use strict";var Eq=H6(),Lq=Cq().setGroupPositions;function uue(e,t){for(var r=t.xaxis,i=t.yaxis,a=e._fullLayout,s=e._fullData,l=e.calcdata,f=[],h=[],v=0;vJ[m]&&m{"use strict";var cue=xi(),Fq=Hi(),Ug=Fq.BADNUM,qq=Fq.LOG_CLIP,zq=qq+.5,Iq=qq-.5,Wx=Bt(),hue=Wx.segmentsIntersect,Rq=Wx.constrain,j6=dx();Nq.exports=function(t,r){var i=r.trace||{},a=r.xaxis,s=r.yaxis,l=a.type==="log",f=s.type==="log",h=a._length,v=s._length,m=r.backoff,_=i.marker,T=r.connectGaps,S=r.baseTolerance,C=r.shape,D=C==="linear",E=i.fill&&i.fill!=="none",I=[],B=j6.minTolerance,q=t.length,z=new Array(q),O=0,H,V,W,J,te,ne,oe,fe,de,Me,Se,Te,we,Ae,Ce,Le;function Qe(Lt){var Fe=t[Lt];if(!Fe)return!1;var He=r.linearized?a.l2p(Fe.x):a.c2p(Fe.x),xt=r.linearized?s.l2p(Fe.y):s.c2p(Fe.y);if(He===Ug){if(l&&(He=a.c2p(Fe.x,!0)),He===Ug)return!1;f&&xt===Ug&&(He*=Math.abs(a._m*v*(a._m>0?zq:Iq)/(s._m*h*(s._m>0?zq:Iq)))),He*=1e3}if(xt===Ug){if(f&&(xt=s.c2p(Fe.y,!0)),xt===Ug)return!1;xt*=1e3}return[He,xt]}function st(Lt,Fe,He,xt){var vt=He-Lt,yr=xt-Fe,Er=.5-Lt,Ar=.5-Fe,Hr=vt*vt+yr*yr,_a=vt*Er+yr*Ar;if(_a>0&&_a1||Math.abs(Er.y-He[0][1])>1)&&(Er=[Er.x,Er.y],xt&&At(Er,Lt)Mt||Lt[1]ve)return[Rq(Lt[0],dt,Mt),Rq(Lt[1],ct,ve)]}function Ut(Lt,Fe){if(Lt[0]===Fe[0]&&(Lt[0]===dt||Lt[0]===Mt)||Lt[1]===Fe[1]&&(Lt[1]===ct||Lt[1]===ve))return!0}function Et(Lt,Fe){var He=[],xt=zt(Lt),vt=zt(Fe);return xt&&vt&&Ut(xt,vt)||(xt&&He.push(xt),vt&&He.push(vt)),He}function Ct(Lt,Fe,He){return function(xt,vt){var yr=zt(xt),Er=zt(vt),Ar=[];if(yr&&Er&&Ut(yr,Er))return Ar;yr&&Ar.push(yr),Er&&Ar.push(Er);var Hr=2*Wx.constrain((xt[Lt]+vt[Lt])/2,Fe,He)-((yr||xt)[Lt]+(Er||vt)[Lt]);if(Hr){var _a;yr&&Er?_a=Hr>0==yr[Lt]>Er[Lt]?yr:Er:_a=yr||Er,_a[Lt]+=Hr}return Ar}}var Yt;C==="linear"||C==="spline"?Yt=Tt:C==="hv"||C==="vh"?Yt=Et:C==="hvh"?Yt=Ct(0,dt,Mt):C==="vhv"&&(Yt=Ct(1,ct,ve));function Vt(Lt,Fe){var He=Fe[0]-Lt[0],xt=(Fe[1]-Lt[1])/He,vt=(Lt[1]*Fe[0]-Fe[1]*Lt[0])/He;return vt>0?[xt>0?dt:Mt,ve]:[xt>0?Mt:dt,ct]}function Ne(Lt){var Fe=Lt[0],He=Lt[1],xt=Fe===z[O-1][0],vt=He===z[O-1][1];if(!(xt&&vt))if(O>1){var yr=Fe===z[O-2][0],Er=He===z[O-2][1];xt&&(Fe===dt||Fe===Mt)&&yr?Er?O--:z[O-1]=Lt:vt&&(He===ct||He===ve)&&Er?yr?O--:z[O-1]=Lt:z[O++]=Lt}else z[O++]=Lt}function ut(Lt){z[O-1][0]!==Lt[0]&&z[O-1][1]!==Lt[1]&&Ne([pt,je]),Ne(Lt),qt=null,pt=je=0}var gt=Wx.isArrayOrTypedArray(_);function xr(Lt){if(Lt&&m&&(Lt.i=H,Lt.d=t,Lt.trace=i,Lt.marker=gt?_[Lt.i]:_,Lt.backoff=m),at=Lt[0]/h,mt=Lt[1]/v,me=Lt[0]Mt?Mt:0,rt=Lt[1]ve?ve:0,me||rt){if(!O)z[O++]=[me||Lt[0],rt||Lt[1]];else if(qt){var Fe=Yt(qt,Lt);Fe.length>1&&(ut(Fe[0]),z[O++]=Fe[1])}else It=Yt(z[O-1],Lt)[0],z[O++]=It;var He=z[O-1];me&&rt&&(He[0]!==me||He[1]!==rt)?(qt&&(pt!==me&&je!==rt?Ne(pt&&je?Vt(qt,Lt):[pt||me,je||rt]):pt&&je&&Ne([pt,je])),Ne([me,rt])):pt-me&&je-rt&&Ne([me||pt,rt||je]),qt=Lt,pt=me,je=rt}else qt&&ut(Yt(qt,Lt)[0]),z[O++]=Lt}for(H=0;HYe(ne,vr))break;W=ne,we=de[0]*fe[0]+de[1]*fe[1],we>Se?(Se=we,J=ne,oe=!1):we=t.length||!ne)break;xr(ne),V=ne}}qt&&Ne([pt||qt[0],je||qt[1]]),I.push(z.slice(0,O))}var wt=C.slice(C.length-1);if(m&&wt!=="h"&&wt!=="v"){for(var bt=!1,Ht=-1,Xt=[],Gt=0;Gt{"use strict";var Oq={tonextx:1,tonexty:1,tonext:1};Uq.exports=function(t,r,i){var a,s,l,f,h,v={},m=!1,_=-1,T=0,S=-1;for(s=0;s=0?h=S:(h=S=T,T++),h<_&&(m=!0),a._groupIndex=_=h;var C=i.slice();m&&C.sort(function(E,I){var B=E[0].trace,q=I[0].trace;return B._groupIndex-q._groupIndex||B.index-q.index});var D={};for(s=0;s{"use strict";var Vu=ja(),vue=la(),Vg=Bt(),am=Vg.ensureSingle,Gq=Vg.identity,pn=xi(),im=rs(),due=Bq(),pue=Vq(),Xx=lx().tester;Zq.exports=function(t,r,i,a,s,l){var f,h,v=!s,m=!!s&&s.duration>0,_=pue(t,r,i);if(f=a.selectAll("g.trace").data(_,function(S){return S[0].trace.uid}),f.enter().append("g").attr("class",function(S){return"trace scatter trace"+S[0].trace.uid}).style("stroke-miterlimit",2),f.order(),mue(t,f,r),m){l&&(h=l());var T=Vu.transition().duration(s.duration).ease(s.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()});T.each(function(){a.selectAll("g.trace").each(function(S,C){Hq(t,C,r,S,_,this,s)})})}else f.each(function(S,C){Hq(t,C,r,S,_,this,s)});v&&f.exit().remove(),a.selectAll("path:not([d])").remove()};function mue(e,t,r){t.each(function(i){var a=am(Vu.select(this),"g","fills");pn.setClipUrl(a,r.layerClipId,e);var s=i[0].trace,l=[];s._ownfill&&l.push("_ownFill"),s._nexttrace&&l.push("_nextFill");var f=a.selectAll("g").data(l,Gq);f.enter().append("g"),f.exit().each(function(h){s[h]=null}).remove(),f.order().each(function(h){s[h]=am(Vu.select(this),"path","js-fill")})})}function Hq(e,t,r,i,a,s,l){var f=e._context.staticPlot,h;yue(e,t,r,i,a);var v=!!l&&l.duration>0;function m(Ct){return v?Ct.transition():Ct}var _=r.xaxis,T=r.yaxis,S=i[0].trace,C=S.line,D=Vu.select(s),E=am(D,"g","errorbars"),I=am(D,"g","lines"),B=am(D,"g","points"),q=am(D,"g","text");if(vue.getComponentMethod("errorbars","plot")(e,E,r,l),S.visible!==!0)return;m(D).style("opacity",S.opacity);var z,O,H=S.fill.charAt(S.fill.length-1);H!=="x"&&H!=="y"&&(H="");var V,W;H==="y"?(V=1,W=T.c2p(0,!0)):H==="x"&&(V=0,W=_.c2p(0,!0)),i[0][r.isRangePlot?"nodeRangePlot3":"node3"]=D;var J="",te=[],ne=S._prevtrace,oe=null,fe=null;ne&&(J=ne._prevRevpath||"",O=ne._nextFill,te=ne._ownPolygons,oe=ne._fillsegments,fe=ne._fillElement);var de,Me,Se="",Te="",we,Ae,Ce,Le,Qe,st,at=[];S._polygons=[];var mt=[],Ye=[],At=Vg.noop;if(z=S._ownFill,im.hasLines(S)||S.fill!=="none"){O&&O.datum(i),["hv","vh","hvh","vhv"].indexOf(C.shape)!==-1?(we=pn.steps(C.shape),Ae=pn.steps(C.shape.split("").reverse().join(""))):C.shape==="spline"?we=Ae=function(Ct){var Yt=Ct[Ct.length-1];return Ct.length>1&&Ct[0][0]===Yt[0]&&Ct[0][1]===Yt[1]?pn.smoothclosed(Ct.slice(1),C.smoothing):pn.smoothopen(Ct,C.smoothing)}:we=Ae=function(Ct){return"M"+Ct.join("L")},Ce=function(Ct){return Ae(Ct.reverse())},Ye=due(i,{xaxis:_,yaxis:T,trace:S,connectGaps:S.connectgaps,baseTolerance:Math.max(C.width||1,3)/4,shape:C.shape,backoff:C.backoff,simplify:C.simplify,fill:S.fill}),mt=new Array(Ye.length);var it=0;for(h=0;h=f[0]&&D.x<=f[1]&&D.y>=h[0]&&D.y<=h[1]}),T=Math.ceil(_.length/m),S=0;a.forEach(function(D,E){var I=D[0].trace;im.hasMarkers(I)&&I.marker.maxdisplayed>0&&E{"use strict";Wq.exports={container:"marker",min:"cmin",max:"cmax"}});var jq=pe((A2e,Xq)=>{"use strict";var jx=Yi();Xq.exports=function(t,r,i){var a={},s={_fullLayout:i},l=jx.getFromTrace(s,r,"x"),f=jx.getFromTrace(s,r,"y"),h=t.orig_x;h===void 0&&(h=t.x);var v=t.orig_y;return v===void 0&&(v=t.y),a.xLabel=jx.tickText(l,l.c2l(h),!0).text,a.yLabel=jx.tickText(f,f.c2l(v),!0).text,a}});var eT=pe((M2e,Jq)=>{"use strict";var K6=ja(),nm=xi(),gue=la();function _ue(e){var t=K6.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var i=K6.select(this),a=r.trace||r[0].trace;Q6(i,a,e)}),t.selectAll("g.text").each(function(r){var i=K6.select(this),a=r.trace||r[0].trace;$6(i,a,e)}),t.selectAll("g.trace path.js-line").call(nm.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(nm.fillGroupStyle,e,!1),gue.getComponentMethod("errorbars","style")(t)}function Q6(e,t,r){nm.pointStyle(e.selectAll("path.point"),t,r)}function $6(e,t,r){nm.textPointStyle(e.selectAll("text"),t,r)}function xue(e,t,r){var i=t[0].trace;i.selectedpoints?(nm.selectedPointStyle(r.selectAll("path.point"),i),nm.selectedTextStyle(r.selectAll("text"),i)):(Q6(r,i,e),$6(r,i,e))}Jq.exports={style:_ue,stylePoints:Q6,styleText:$6,styleOnSelect:xue}});var tT=pe((S2e,Kq)=>{"use strict";var om=Ua(),bue=rs();Kq.exports=function(t,r){var i,a;if(t.mode==="lines")return i=t.line.color,i&&om.opacity(i)?i:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var s=r.mcc||(t.marker||{}).color,l=r.mlcc||((t.marker||{}).line||{}).color;return a=s&&om.opacity(s)?s:l&&om.opacity(l)&&(r.mlw||((t.marker||{}).line||{}).width)?l:"",a?om.opacity(a)<.3?om.addOpacity(a,.3):a:(i=(t.line||{}).color,i&&om.opacity(i)&&bue.hasLines(t)&&t.line.width?i:t.fillcolor)}});var eN=pe((k2e,$q)=>{"use strict";var Jx=Bt(),Qq=Rf(),wue=la(),Tue=tT(),rT=Ua(),Aue=Jx.fillText;$q.exports=function(t,r,i,a){var s=t.cd,l=s[0].trace,f=t.xa,h=t.ya,v=f.c2p(r),m=h.c2p(i),_=[v,m],T=l.hoveron||"",S=l.mode.indexOf("markers")!==-1?3:.5,C=!!l.xperiodalignment,D=!!l.yperiodalignment;if(T.indexOf("points")!==-1){var E=function(Te){if(C){var we=f.c2p(Te.xStart),Ae=f.c2p(Te.xEnd);return v>=Math.min(we,Ae)&&v<=Math.max(we,Ae)?0:1/0}var Ce=Math.max(3,Te.mrc||0),Le=1-1/Ce,Qe=Math.abs(f.c2p(Te.x)-v);return Qe=Math.min(we,Ae)&&m<=Math.max(we,Ae)?0:1/0}var Ce=Math.max(3,Te.mrc||0),Le=1-1/Ce,Qe=Math.abs(h.c2p(Te.y)-m);return Qeat!=ve>=at&&(dt=At[Ye-1][0],Mt=At[Ye][0],ve-ct&&(it=dt+(Mt-dt)*(at-ct)/(ve-ct),Ce=Math.min(Ce,it),Le=Math.max(Le,it)));return Ce=Math.max(Ce,0),Le=Math.min(Le,f._length),{x0:Ce,x1:Le,y0:at,y1:at}}if(T.indexOf("fills")!==-1&&l._fillElement){var de=oe(l._fillElement)&&!oe(l._fillExclusionElement);if(de){var Me=fe(l._polygons);Me===null&&(Me={x0:_[0],x1:_[0],y0:_[1],y1:_[1]});var Se=rT.defaultLine;return rT.opacity(l.fillcolor)?Se=l.fillcolor:rT.opacity((l.line||{}).color)&&(Se=l.line.color),Jx.extendFlat(t,{distance:t.maxHoverDistance,x0:Me.x0,x1:Me.x1,y0:Me.y0,y1:Me.y1,color:Se,hovertemplate:!1}),delete t.index,l.text&&!Jx.isArrayOrTypedArray(l.text)?t.text=String(l.text):t.text=l.name,[t]}}}});var aN=pe((C2e,rN)=>{"use strict";var tN=rs();rN.exports=function(t,r){var i=t.cd,a=t.xaxis,s=t.yaxis,l=[],f=i[0].trace,h,v,m,_,T=!tN.hasMarkers(f)&&!tN.hasText(f);if(T)return[];if(r===!1)for(h=0;h{"use strict";iN.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var uN=pe((L2e,lN)=>{"use strict";var Hg=la().traceIs,aT=A5();lN.exports=function(t,r,i,a){i("autotypenumbers",a.autotypenumbersDflt);var s=i("type",(a.splomStash||{}).type);s==="-"&&(Mue(r,a.data),r.type==="-"?r.type="linear":t.type=r.type)};function Mue(e,t){if(e.type==="-"){var r=e._id,i=r.charAt(0),a;r.indexOf("scene")!==-1&&(r=i);var s=Sue(t,r,i);if(s){if(s.type==="histogram"&&i==={v:"y",h:"x"}[s.orientation||"v"]){e.type="linear";return}var l=i+"calendar",f=s[l],h={noMultiCategory:!Hg(s,"cartesian")||Hg(s,"noMultiCategory")};if(s.type==="box"&&s._hasPreCompStats&&i==={h:"x",v:"y"}[s.orientation||"v"]&&(h.noMultiCategory=!0),h.autotypenumbers=e.autotypenumbers,sN(s,i)){var v=oN(s),m=[];for(a=0;a0&&(a["_"+r+"axes"]||{})[t])return a;if((a[r+"axis"]||r)===t){if(sN(a,r))return a;if((a[r]||[]).length||a[r+"0"])return a}}}function oN(e){return{v:"x",h:"y"}[e.orientation||"v"]}function sN(e,t){var r=oN(e),i=Hg(e,"box-violin"),a=Hg(e._fullInput||{},"candlestick");return i&&!a&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var cN=pe((D2e,fN)=>{"use strict";var kue=al().isTypedArraySpec;function Cue(e,t){var r=t.dataAttr||e._id.charAt(0),i={},a,s,l;if(t.axData)a=t.axData;else for(a=[],s=0;s0||kue(s),f;l&&(f="array");var h=i("categoryorder",f),v;h==="array"&&(v=i("categoryarray")),!l&&h==="array"&&(h=r.categoryorder="trace"),h==="trace"?r._initialCategories=[]:h==="array"?r._initialCategories=v.slice():(v=Cue(r,a).sort(),h==="category ascending"?r._initialCategories=v:h==="category descending"&&(r._initialCategories=v.reverse()))}}});var dN=pe((P2e,vN)=>{"use strict";var hN=Tf().mix,Eue=Af(),Lue=Bt();vN.exports=function(t,r,i,a){a=a||{};var s=a.dfltColor;function l(W,J){return Lue.coerce2(t,r,a.attributes,W,J)}var f=l("linecolor",s),h=l("linewidth"),v=i("showline",a.showLine||!!f||!!h);v||(delete r.linecolor,delete r.linewidth);var m=hN(s,a.bgColor,a.blend||Eue.lightFraction).toRgbString(),_=l("gridcolor",m),T=l("gridwidth"),S=l("griddash"),C=i("showgrid",a.showGrid||!!_||!!T||!!S);if(C||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),a.hasMinor){var D=hN(r.gridcolor,a.bgColor,67).toRgbString(),E=l("minor.gridcolor",D),I=l("minor.gridwidth",r.gridwidth||1),B=l("minor.griddash",r.griddash||"solid"),q=i("minor.showgrid",!!E||!!I||!!B);q||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!a.noZeroLine){var z=l("zerolinelayer"),O=l("zerolinecolor",s),H=l("zerolinewidth"),V=i("zeroline",a.showGrid||!!O||!!H);V||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var nT=pe((z2e,xN)=>{"use strict";var pN=Pa(),Due=la(),Gg=Bt(),Pue=Pi(),zue=Wl(),iT=Ru(),mN=Ww(),yN=jw(),Iue=Qw(),Rue=$w(),Fue=cN(),que=dN(),Nue=G5(),gN=i2(),Kx=Ao().WEEKDAY_PATTERN,Bue=Ao().HOUR_PATTERN;xN.exports=function(t,r,i,a,s){var l=a.letter,f=a.font||{},h=a.splomStash||{},v=i("visible",!a.visibleDflt),m=r._template||{},_=r.type||m.type||"-",T;if(_==="date"){var S=Due.getComponentMethod("calendars","handleDefaults");S(t,r,"calendar",a.calendar),a.noTicklabelmode||(T=i("ticklabelmode"))}!a.noTicklabelindex&&(_==="date"||_==="linear")&&i("ticklabelindex");var C="";(!a.noTicklabelposition||_==="multicategory")&&(C=Gg.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:T==="period"?["outside","inside"]:l==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||i("ticklabeloverflow",C.indexOf("inside")!==-1?"hide past domain":_==="category"||_==="multicategory"?"allow":"hide past div"),gN(r,s),Nue(t,r,i,a),Fue(t,r,i,a),_!=="category"&&!a.noHover&&i("hoverformat");var D=i("color"),E=D!==iT.color.dflt?D:f.color,I=h.label||s._dfltTitle[l];if(Rue(t,r,i,_,a),!v)return r;i("title.text",I),Gg.coerceFont(i,"title.font",f,{overrideDflt:{size:Gg.bigFont(f.size),color:E}}),mN(t,r,i,_);var B=a.hasMinor;if(B&&(Pue.newContainer(r,"minor"),mN(t,r,i,_,{isMinor:!0})),Iue(t,r,i,_,a),yN(t,r,i,a),B){var q=a.isMinor;a.isMinor=!0,yN(t,r,i,a),a.isMinor=q}que(t,r,i,{dfltColor:D,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:B,attributes:iT}),B&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&i("mirror");var z=_==="multicategory";if(!a.noTickson&&(_==="category"||z)&&(r.ticks||r.showgrid)&&(z?(i("tickson","boundaries"),delete r.ticklabelposition):i("tickson")),z){var O=i("showdividers");O&&(i("dividercolor"),i("dividerwidth"))}if(_==="date")if(zue(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Oue}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var H=0;H=2){var l="",f,h;if(s.length===2){for(f=0;f<2;f++)if(h=_N(s[f]),h){l=Kx;break}}var v=i("pattern",l);if(v===Kx)for(f=0;f<2;f++)h=_N(s[f]),h&&(t.bounds[f]=s[f]=h-1);if(v)for(f=0;f<2;f++)switch(h=s[f],v){case Kx:if(!pN(h)){t.enabled=!1;return}if(h=+h,h!==Math.floor(h)||h<0||h>=7){t.enabled=!1;return}t.bounds[f]=s[f]=h;break;case Bue:if(!pN(h)){t.enabled=!1;return}if(h=+h,h<0||h>24){t.enabled=!1;return}t.bounds[f]=s[f]=h;break}if(r.autorange===!1){var m=r.range;if(m[0]m[1]){t.enabled=!1;return}}else if(s[0]>m[0]&&s[1]{"use strict";var Vue=Pa(),Qx=Bt();bN.exports=function(t,r,i,a){var s=a.counterAxes||[],l=a.overlayableAxes||[],f=a.letter,h=a.grid,v=a.overlayingDomain,m,_,T,S,C,D;h&&(_=h._domains[f][h._axisMap[r._id]],m=h._anchors[r._id],_&&(T=h[f+"side"].split(" ")[0],S=h.domain[f][T==="right"||T==="top"?1:0])),_=_||[0,1],m=m||(Vue(t.position)?"free":s[0]||"free"),T=T||(f==="x"?"bottom":"left"),S=S||0,C=0,D=!1;var E=Qx.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(s),dflt:m}},"anchor"),I=Qx.coerce(t,r,{side:{valType:"enumerated",values:f==="x"?["bottom","top"]:["left","right"],dflt:T}},"side");if(E==="free"){if(f==="y"){var B=i("autoshift");B&&(S=I==="left"?v[0]:v[1],D=r.automargin?r.automargin:!0,C=I==="left"?-3:3),i("shift",C)}i("position",S)}i("automargin",D);var q=!1;if(l.length&&(q=Qx.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!q){var z=i("domain",_);z[0]>z[1]-1/4096&&(r.domain=_),Qx.noneOrAll(t.domain,r.domain,_),r.tickmode==="sync"&&(r.tickmode="auto")}return i("layer"),r}});var LN=pe((R2e,EN)=>{"use strict";var Id=Bt(),wN=Ua(),Hue=bc().isUnifiedHover,Gue=y4(),TN=Pi(),Zue=d0(),AN=Ru(),Yue=uN(),MN=nT(),Wue=ug(),SN=oT(),lT=$n(),Uf=lT.id2name,kN=lT.name2id,Xue=Ao().AX_ID_PATTERN,CN=la(),$x=CN.traceIs,sT=CN.getComponentMethod;function eb(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}EN.exports=function(t,r,i){var a=r.autotypenumbers,s={},l={},f={},h={},v={},m={},_={},T={},S={},C={},D,E;for(D=0;D{"use strict";var jue=ja(),DN=la(),tb=Bt(),cl=xi(),rb=Yi();PN.exports=function(t,r,i,a){var s=t._fullLayout;if(r.length===0){rb.redrawComponents(t);return}function l(E){var I=E.xaxis,B=E.yaxis;s._defs.select("#"+E.clipId+"> rect").call(cl.setTranslate,0,0).call(cl.setScale,1,1),E.plot.call(cl.setTranslate,I._offset,B._offset).call(cl.setScale,1,1);var q=E.plot.selectAll(".scatterlayer .trace");q.selectAll(".point").call(cl.setPointGroupScale,1,1),q.selectAll(".textpoint").call(cl.setTextPointsScale,1,1),q.call(cl.hideOutsideRangePoints,E)}function f(E,I){var B=E.plotinfo,q=B.xaxis,z=B.yaxis,O=q._length,H=z._length,V=!!E.xr1,W=!!E.yr1,J=[];if(V){var te=tb.simpleMap(E.xr0,q.r2l),ne=tb.simpleMap(E.xr1,q.r2l),oe=te[1]-te[0],fe=ne[1]-ne[0];J[0]=(te[0]*(1-I)+I*ne[0]-te[0])/(te[1]-te[0])*O,J[2]=O*(1-I+I*fe/oe),q.range[0]=q.l2r(te[0]*(1-I)+I*ne[0]),q.range[1]=q.l2r(te[1]*(1-I)+I*ne[1])}else J[0]=0,J[2]=O;if(W){var de=tb.simpleMap(E.yr0,z.r2l),Me=tb.simpleMap(E.yr1,z.r2l),Se=de[1]-de[0],Te=Me[1]-Me[0];J[1]=(de[1]*(1-I)+I*Me[1]-de[1])/(de[0]-de[1])*H,J[3]=H*(1-I+I*Te/Se),z.range[0]=q.l2r(de[0]*(1-I)+I*Me[0]),z.range[1]=z.l2r(de[1]*(1-I)+I*Me[1])}else J[1]=0,J[3]=H;rb.drawOne(t,q,{skipTitle:!0}),rb.drawOne(t,z,{skipTitle:!0}),rb.redrawComponents(t,[q._id,z._id]);var we=V?O/J[2]:1,Ae=W?H/J[3]:1,Ce=V?J[0]:0,Le=W?J[1]:0,Qe=V?J[0]/J[2]*O:0,st=W?J[1]/J[3]*H:0,at=q._offset-Qe,mt=z._offset-st;B.clipRect.call(cl.setTranslate,Ce,Le).call(cl.setScale,1/we,1/Ae),B.plot.call(cl.setTranslate,at,mt).call(cl.setScale,we,Ae),cl.setPointGroupScale(B.zoomScalePts,1/we,1/Ae),cl.setTextPointsScale(B.zoomScaleTxt,1/we,1/Ae)}var h;a&&(h=a());function v(){for(var E={},I=0;Ii.duration?(v(),S=window.cancelAnimationFrame(D)):S=window.requestAnimationFrame(D)}return _=Date.now(),S=window.requestAnimationFrame(D),Promise.resolve()}});var uT=pe(Oo=>{"use strict";var ib=ja(),IN=la(),Rd=Bt(),Jue=eo(),Kue=xi(),RN=F_().getModuleCalcData,Xh=$n(),Hu=Ao(),Que=zh(),ni=Rd.ensureSingle;function ab(e,t,r){return Rd.ensureSingle(e,t,r,function(i){i.datum(r)})}var Fd=Hu.zindexSeparator;Oo.name="cartesian";Oo.attr=["xaxis","yaxis"];Oo.idRoot=["x","y"];Oo.idRegex=Hu.idRegex;Oo.attrRegex=Hu.attrRegex;Oo.attributes=nN();Oo.layoutAttributes=Ru();Oo.supplyLayoutDefaults=LN();Oo.transitionAxes=zN();Oo.finalizeSubplots=function(e,t){var r=t._subplots,i=r.xaxis,a=r.yaxis,s=r.cartesian,l=s,f={},h={},v,m,_;for(v=0;v0){var S=T.id;if(S.indexOf(Fd)!==-1)continue;S+=Fd+(v+1),T=Rd.extendFlat({},T,{id:S,plot:a._cartesianlayer.selectAll(".subplot").select("."+S)})}for(var C=[],D,E=0;E1&&(O+=Fd+z),q.push(f+O),l=0;l1,_=t.mainplotinfo;if(!t.mainplot||m)if(v)t.xlines=ni(i,"path","xlines-above"),t.ylines=ni(i,"path","ylines-above"),t.xaxislayer=ni(i,"g","xaxislayer-above"),t.yaxislayer=ni(i,"g","yaxislayer-above");else{if(!l){var T=ni(i,"g","layer-subplot");t.shapelayer=ni(T,"g","shapelayer"),t.imagelayer=ni(T,"g","imagelayer"),_&&m?(t.minorGridlayer=_.minorGridlayer,t.gridlayer=_.gridlayer,t.zerolinelayer=_.zerolinelayer):(t.minorGridlayer=ni(i,"g","minor-gridlayer"),t.gridlayer=ni(i,"g","gridlayer"),t.zerolinelayer=ni(i,"g","zerolinelayer"));var S=ni(i,"g","layer-between");t.shapelayerBetween=ni(S,"g","shapelayer"),t.imagelayerBetween=ni(S,"g","imagelayer"),ni(i,"path","xlines-below"),ni(i,"path","ylines-below"),t.overlinesBelow=ni(i,"g","overlines-below"),ni(i,"g","xaxislayer-below"),ni(i,"g","yaxislayer-below"),t.overaxesBelow=ni(i,"g","overaxes-below")}t.overplot=ni(i,"g","overplot"),t.plot=ni(t.overplot,"g",a),_&&m?t.zerolinelayerAbove=_.zerolinelayerAbove:t.zerolinelayerAbove=ni(i,"g","zerolinelayer-above"),l||(t.xlines=ni(i,"path","xlines-above"),t.ylines=ni(i,"path","ylines-above"),t.overlinesAbove=ni(i,"g","overlines-above"),ni(i,"g","xaxislayer-above"),ni(i,"g","yaxislayer-above"),t.overaxesAbove=ni(i,"g","overaxes-above"),t.xlines=i.select(".xlines-"+f),t.ylines=i.select(".ylines-"+h),t.xaxislayer=i.select(".xaxislayer-"+f),t.yaxislayer=i.select(".yaxislayer-"+h))}else{var C=_.plotgroup,D=a+"-x",E=a+"-y";t.minorGridlayer=_.minorGridlayer,t.gridlayer=_.gridlayer,t.zerolinelayer=_.zerolinelayer,t.zerolinelayerAbove=_.zerolinelayerAbove,ni(_.overlinesBelow,"path",D),ni(_.overlinesBelow,"path",E),ni(_.overaxesBelow,"g",D),ni(_.overaxesBelow,"g",E),t.plot=ni(_.overplot,"g",a),ni(_.overlinesAbove,"path",D),ni(_.overlinesAbove,"path",E),ni(_.overaxesAbove,"g",D),ni(_.overaxesAbove,"g",E),t.xlines=C.select(".overlines-"+f).select("."+D),t.ylines=C.select(".overlines-"+h).select("."+E),t.xaxislayer=C.select(".overaxes-"+f).select("."+D),t.yaxislayer=C.select(".overaxes-"+h).select("."+E)}l||(v||(ab(t.minorGridlayer,"g",t.xaxis._id),ab(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(I){return I[0]}).sort(Xh.idSort),ab(t.gridlayer,"g",t.xaxis._id),ab(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(I){return I[0]}).sort(Xh.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function NN(e,t){if(e){var r={};e.each(function(h){var v=h[0],m=ib.select(this);m.remove(),BN(v,t),r[v]=!0});for(var i in t._plots)for(var a=t._plots[i],s=a.overlays||[],l=0;l{"use strict";var nb=rs();ON.exports={hasLines:nb.hasLines,hasMarkers:nb.hasMarkers,hasText:nb.hasText,isBubble:nb.isBubble,attributes:kc(),layoutAttributes:z_(),supplyDefaults:eq(),crossTraceDefaults:iq(),supplyLayoutDefaults:oq(),calc:H6().calc,crossTraceCalc:Pq(),arraysToCalcdata:Ng(),plot:Yq(),colorbar:J6(),formatLabels:jq(),style:eT().style,styleOnSelect:eT().styleOnSelect,hoverPoints:eN(),selectPoints:aN(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:uT(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var GN=pe((B2e,HN)=>{"use strict";var efe=ja(),tfe=Ua(),VN=n6(),fT=Bt(),rfe=fT.strScale,afe=fT.strRotate,ife=fT.strTranslate;HN.exports=function(t,r,i){var a=t.node(),s=VN[i.arrowhead||0],l=VN[i.startarrowhead||0],f=(i.arrowwidth||1)*(i.arrowsize||1),h=(i.arrowwidth||1)*(i.startarrowsize||1),v=r.indexOf("start")>=0,m=r.indexOf("end")>=0,_=s.backoff*f+i.standoff,T=l.backoff*h+i.startstandoff,S,C,D,E;if(a.nodeName==="line"){S={x:+t.attr("x1"),y:+t.attr("y1")},C={x:+t.attr("x2"),y:+t.attr("y2")};var I=S.x-C.x,B=S.y-C.y;if(D=Math.atan2(B,I),E=D+Math.PI,_&&T&&_+T>Math.sqrt(I*I+B*B)){de();return}if(_){if(_*_>I*I+B*B){de();return}var q=_*Math.cos(D),z=_*Math.sin(D);C.x+=q,C.y+=z,t.attr({x2:C.x,y2:C.y})}if(T){if(T*T>I*I+B*B){de();return}var O=T*Math.cos(D),H=T*Math.sin(D);S.x-=O,S.y-=H,t.attr({x1:S.x,y1:S.y})}}else if(a.nodeName==="path"){var V=a.getTotalLength(),W="";if(V<_+T){de();return}var J=a.getPointAtLength(0),te=a.getPointAtLength(.1);D=Math.atan2(J.y-te.y,J.x-te.x),S=a.getPointAtLength(Math.min(T,V)),W="0px,"+T+"px,";var ne=a.getPointAtLength(V),oe=a.getPointAtLength(V-.1);E=Math.atan2(ne.y-oe.y,ne.x-oe.x),C=a.getPointAtLength(Math.max(0,V-_));var fe=W?T+_:_;W+=V-fe+"px,"+V+"px",t.style("stroke-dasharray",W)}function de(){t.style("stroke-dasharray","0px,100px")}function Me(Se,Te,we,Ae){Se.path&&(Se.noRotate&&(we=0),efe.select(a.parentNode).append("path").attr({class:t.attr("class"),d:Se.path,transform:ife(Te.x,Te.y)+afe(we*180/Math.PI)+rfe(Ae)}).style({fill:tfe.rgb(i.arrowcolor),"stroke-width":0}))}v&&Me(l,S,D,h),m&&Me(s,C,E,f)}});var ob=pe((O2e,jN)=>{"use strict";var ZN=ja(),cT=la(),nfe=eo(),Jh=Bt(),hT=Jh.strTranslate,Yg=Yi(),qd=Ua(),Ec=xi(),YN=Rf(),vT=co(),dT=Oh(),Zg=jl(),ofe=Pi().arrayEditor,sfe=GN();jN.exports={draw:lfe,drawOne:WN,drawRaw:XN};function lfe(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?vt="right":vt="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[vt]}for(var ct=!1,ve=["x","y"],Ie=0;Ie1)&&(pt===rt?(vr=je.r2fraction(t["a"+me]),(vr<0||vr>1)&&(ct=!0)):ct=!0),Yt=je._offset+je.r2p(t[me]),ut=.5}else{var wt=xr==="domain";me==="x"?(Ne=t[me],Yt=wt?je._offset+je._length*Ne:Yt=f.l+f.w*Ne):(Ne=1-t[me],Yt=wt?je._offset+je._length*Ne:Yt=f.t+f.h*Ne),ut=t.showarrow?.5:Ne}if(t.showarrow){Ct.head=Yt;var bt=t["a"+me];if(gt=It*Mt(.5,t.xanchor)-Tt*Mt(.5,t.yanchor),pt===rt){var Ht=Yg.getRefType(pt);Ht==="domain"?(me==="y"&&(bt=1-bt),Ct.tail=je._offset+je._length*bt):Ht==="paper"?me==="y"?(bt=1-bt,Ct.tail=f.t+f.h*bt):Ct.tail=f.l+f.w*bt:Ct.tail=je._offset+je.r2p(bt),Vt=gt}else Ct.tail=Yt+bt,Vt=gt+bt;Ct.text=Ct.tail+gt;var Xt=l[me==="x"?"width":"height"];if(rt==="paper"&&(Ct.head=Jh.constrain(Ct.head,1,Xt-1)),pt==="pixel"){var Gt=-Math.max(Ct.tail-3,Ct.text),Ot=Math.min(Ct.tail+3,Ct.text)-Xt;Gt>0?(Ct.tail+=Gt,Ct.text+=Gt):Ot>0&&(Ct.tail-=Ot,Ct.text-=Ot)}Ct.tail+=Et,Ct.head+=Et}else gt=zt*Mt(ut,Ut),Vt=gt,Ct.text=Yt+gt;Ct.text+=Et,gt+=Et,Vt+=Et,t["_"+me+"padplus"]=zt/2+Vt,t["_"+me+"padminus"]=zt/2-Vt,t["_"+me+"size"]=zt,t["_"+me+"shift"]=gt}if(ct){V.remove();return}var tr=0,Mr=0;if(t.align!=="left"&&(tr=(Ye-at)*(t.align==="center"?.5:1)),t.valign!=="top"&&(Mr=(At-mt)*(t.valign==="middle"?.5:1)),Qe)Le.select("svg").attr({x:te+tr-1,y:te+Mr}).call(Ec.setClipUrl,oe?D:null,e);else{var br=te+Mr-st.top,Lt=te+tr-st.left;Se.call(vT.positionText,Lt,br).call(Ec.setClipUrl,oe?D:null,e)}fe.select("rect").call(Ec.setRect,te,te,Ye,At),ne.call(Ec.setRect,W/2,W/2,it-W,dt-W),V.call(Ec.setTranslate,Math.round(E.x.text-it/2),Math.round(E.y.text-dt/2)),q.attr({transform:"rotate("+I+","+E.x.text+","+E.y.text+")"});var Fe=function(xt,vt){B.selectAll(".annotation-arrow-g").remove();var yr=E.x.head,Er=E.y.head,Ar=E.x.tail+xt,Hr=E.y.tail+vt,_a=E.x.text+xt,ka=E.y.text+vt,Ea=Jh.rotationXYMatrix(I,_a,ka),Ii=Jh.apply2DTransform(Ea),Ki=Jh.apply2DTransform2(Ea),yn=+ne.attr("width"),Xi=+ne.attr("height"),jn=_a-.5*yn,En=jn+yn,Vi=ka-.5*Xi,pa=Vi+Xi,Gr=[[jn,Vi,jn,pa],[jn,pa,En,pa],[En,pa,En,Vi],[En,Vi,jn,Vi]].map(Ki);if(!Gr.reduce(function(Ve,yt){return Ve^!!Jh.segmentsIntersect(yr,Er,yr+1e6,Er+1e6,yt[0],yt[1],yt[2],yt[3])},!1)){Gr.forEach(function(Ve){var yt=Jh.segmentsIntersect(Ar,Hr,yr,Er,Ve[0],Ve[1],Ve[2],Ve[3]);yt&&(Ar=yt.x,Hr=yt.y)});var Qa=t.arrowwidth,Zr=t.arrowcolor,vi=t.arrowside,ya=B.append("g").style({opacity:qd.opacity(Zr)}).classed("annotation-arrow-g",!0),le=ya.append("path").attr("d","M"+Ar+","+Hr+"L"+yr+","+Er).style("stroke-width",Qa+"px").call(qd.stroke,qd.rgb(Zr));if(sfe(le,vi,t),h.annotationPosition&&le.node().parentNode&&!i){var ee=yr,se=Er;if(t.standoff){var ce=Math.sqrt(Math.pow(yr-Ar,2)+Math.pow(Er-Hr,2));ee+=t.standoff*(Ar-yr)/ce,se+=t.standoff*(Hr-Er)/ce}var Ee=ya.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Ar-ee)+","+(Hr-se),transform:hT(ee,se)}).style("stroke-width",Qa+6+"px").call(qd.stroke,"rgba(0,0,0,0)").call(qd.fill,"rgba(0,0,0,0)"),Be,et;Zg.init({element:Ee.node(),gd:e,prepFn:function(){var Ve=Ec.getTranslate(V);Be=Ve.x,et=Ve.y,a&&a.autorange&&T(a._name+".autorange",!0),s&&s.autorange&&T(s._name+".autorange",!0)},moveFn:function(Ve,yt){var Dt=Ii(Be,et),Ft=Dt[0]+Ve,rr=Dt[1]+yt;V.call(Ec.setTranslate,Ft,rr),S("x",jh(a,Ve,"x",f,t)),S("y",jh(s,yt,"y",f,t)),t.axref===t.xref&&S("ax",jh(a,Ve,"ax",f,t)),t.ayref===t.yref&&S("ay",jh(s,yt,"ay",f,t)),ya.attr("transform",hT(Ve,yt)),q.attr({transform:"rotate("+I+","+Ft+","+rr+")"})},doneFn:function(){cT.call("_guiRelayout",e,C());var Ve=document.querySelector(".js-notes-box-panel");Ve&&Ve.redraw(Ve.selectedObj)}})}}};if(t.showarrow&&Fe(0,0),z){var He;Zg.init({element:V.node(),gd:e,prepFn:function(){He=q.attr("transform")},moveFn:function(xt,vt){var yr="pointer";if(t.showarrow)t.axref===t.xref?S("ax",jh(a,xt,"ax",f,t)):S("ax",t.ax+xt),t.ayref===t.yref?S("ay",jh(s,vt,"ay",f.w,t)):S("ay",t.ay+vt),Fe(xt,vt);else{if(i)return;var Er,Ar;if(a)Er=jh(a,xt,"x",f,t);else{var Hr=t._xsize/f.w,_a=t.x+(t._xshift-t.xshift)/f.w-Hr/2;Er=Zg.align(_a+xt/f.w,Hr,0,1,t.xanchor)}if(s)Ar=jh(s,vt,"y",f,t);else{var ka=t._ysize/f.h,Ea=t.y-(t._yshift+t.yshift)/f.h-ka/2;Ar=Zg.align(Ea-vt/f.h,ka,0,1,t.yanchor)}S("x",Er),S("y",Ar),(!a||!s)&&(yr=Zg.getCursor(a?.5:Er,s?.5:Ar,t.xanchor,t.yanchor))}q.attr({transform:hT(xt,vt)+He}),dT(V,yr)},clickFn:function(xt,vt){t.captureevents&&e.emit("plotly_clickannotation",H(vt))},doneFn:function(){dT(V),cT.call("_guiRelayout",e,C());var xt=document.querySelector(".js-notes-box-panel");xt&&xt.redraw(xt.selectedObj)}})}}h.annotationText?Se.call(vT.makeEditable,{delegate:V,gd:e}).call(Te).on("edit",function(Ae){t.text=Ae,this.call(Te),S("text",Ae),a&&a.autorange&&T(a._name+".autorange",!0),s&&s.autorange&&T(s._name+".autorange",!0),cT.call("_guiRelayout",e,C())}):Se.call(Te)}});var tB=pe((U2e,eB)=>{"use strict";var JN=Bt(),ufe=la(),KN=Pi().arrayEditor;eB.exports={hasClickToShow:ffe,onClick:cfe};function ffe(e,t){var r=$N(e,t);return r.on.length>0||r.explicitOff.length>0}function cfe(e,t){var r=$N(e,t),i=r.on,a=r.off.concat(r.explicitOff),s={},l=e._fullLayout.annotations,f,h;if(i.length||a.length){for(f=0;f{"use strict";var pT=Bt(),sm=Ua();rB.exports=function(t,r,i,a){a("opacity");var s=a("bgcolor"),l=a("bordercolor"),f=sm.opacity(l);a("borderpad");var h=a("borderwidth"),v=a("showarrow");a("text",v?" ":i._dfltTitle.annotation),a("textangle"),pT.coerceFont(a,"font",i.font),a("width"),a("align");var m=a("height");if(m&&a("valign"),v){var _=a("arrowside"),T,S;_.indexOf("end")!==-1&&(T=a("arrowhead"),S=a("arrowsize")),_.indexOf("start")!==-1&&(a("startarrowhead",T),a("startarrowsize",S)),a("arrowcolor",f?r.bordercolor:sm.defaultLine),a("arrowwidth",(f&&h||1)*2),a("standoff"),a("startstandoff")}var C=a("hovertext"),D=i.hoverlabel||{};if(C){var E=a("hoverlabel.bgcolor",D.bgcolor||(sm.opacity(s)?sm.rgb(s):sm.defaultLine)),I=a("hoverlabel.bordercolor",D.bordercolor||sm.contrast(E)),B=pT.extendFlat({},D.font);B.color||(B.color=I),pT.coerceFont(a,"hoverlabel.font",B)}a("captureevents",!!C)}});var iB=pe((H2e,aB)=>{"use strict";var yT=Bt(),Nd=Yi(),hfe=Wl(),vfe=mT(),dfe=Q0();aB.exports=function(t,r){hfe(t,r,{name:"annotations",handleItemDefaults:pfe})};function pfe(e,t,r){function i(q,z){return yT.coerce(e,t,dfe,q,z)}var a=i("visible"),s=i("clicktoshow");if(a||s){vfe(e,t,r,i);for(var l=t.showarrow,f=["x","y"],h=[-10,-30],v={_fullLayout:r},m=0;m<2;m++){var _=f[m],T=Nd.coerceRef(e,t,v,_,"","paper");if(T!=="paper"){var S=Nd.getFromId(v,T);S._annIndices.push(t._index)}if(Nd.coercePosition(t,v,i,T,_,.5),l){var C="a"+_,D=Nd.coerceRef(e,t,v,C,"pixel",["pixel","paper"]);D!=="pixel"&&D!==T&&(D=t[C]="pixel");var E=D==="pixel"?h[m]:.4;Nd.coercePosition(t,v,i,D,C,E)}i(_+"anchor"),i(_+"shift")}if(yT.noneOrAll(e,t,["x","y"]),l&&yT.noneOrAll(e,t,["ax","ay"]),s){var I=i("xclick"),B=i("yclick");t._xclick=I===void 0?t.x:Nd.cleanPosition(I,v,t.xref),t._yclick=B===void 0?t.y:Nd.cleanPosition(B,v,t.yref)}}}});var sB=pe((G2e,oB)=>{"use strict";var gT=Bt(),Bd=Yi(),mfe=ob().draw;oB.exports=function(t){var r=t._fullLayout,i=gT.filterVisible(r.annotations);if(i.length&&t._fullData.length)return gT.syncOrAsync([mfe,yfe],t)};function yfe(e){var t=e._fullLayout;gT.filterVisible(t.annotations).forEach(function(r){var i=Bd.getFromId(e,r.xref),a=Bd.getFromId(e,r.yref),s=Bd.getRefType(r.xref),l=Bd.getRefType(r.yref);r._extremes={},s==="range"&&nB(r,i),l==="range"&&nB(r,a)})}function nB(e,t){var r=t._id,i=r.charAt(0),a=e[i],s=e["a"+i],l=e[i+"ref"],f=e["a"+i+"ref"],h=e["_"+i+"padplus"],v=e["_"+i+"padminus"],m={x:1,y:-1}[i]*e[i+"shift"],_=3*e.arrowsize*e.arrowwidth||0,T=_+m,S=_-m,C=3*e.startarrowsize*e.arrowwidth||0,D=C+m,E=C-m,I;if(f===l){var B=Bd.findExtremes(t,[t.r2c(a)],{ppadplus:T,ppadminus:S}),q=Bd.findExtremes(t,[t.r2c(s)],{ppadplus:Math.max(h,D),ppadminus:Math.max(v,E)});I={min:[B.min[0],q.min[0]],max:[B.max[0],q.max[0]]}}else D=s?D+s:D,E=s?E-s:E,I=Bd.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(h,T,D),ppadminus:Math.max(v,S,E)});e._extremes[r]=I}});var uB=pe((Z2e,lB)=>{"use strict";var gfe=Pa(),_fe=J1();lB.exports=function(t,r,i,a){r=r||{};var s=i==="log"&&r.type==="linear",l=i==="linear"&&r.type==="log";if(!(s||l))return;var f=t._fullLayout.annotations,h=r._id.charAt(0),v,m;function _(S){var C=v[S],D=null;s?D=_fe(C,r.range):D=Math.pow(10,C),gfe(D)||(D=null),a(m+S,D)}for(var T=0;T{"use strict";var _T=ob(),fB=tB();cB.exports={moduleType:"component",name:"annotations",layoutAttributes:Q0(),supplyLayoutDefaults:iB(),includeBasePlot:Sg()("annotations"),calcAutorange:sB(),draw:_T.draw,drawOne:_T.drawOne,drawRaw:_T.drawRaw,hasClickToShow:fB.hasClickToShow,onClick:fB.onClick,convertCoords:uB()}});var sb=pe((W2e,vB)=>{"use strict";var Ni=Q0(),xfe=il().overrideAll,bfe=Pi().templatedArray;vB.exports=xfe(bfe("annotation",{visible:Ni.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Ni.xanchor,xshift:Ni.xshift,yanchor:Ni.yanchor,yshift:Ni.yshift,text:Ni.text,textangle:Ni.textangle,font:Ni.font,width:Ni.width,height:Ni.height,opacity:Ni.opacity,align:Ni.align,valign:Ni.valign,bgcolor:Ni.bgcolor,bordercolor:Ni.bordercolor,borderpad:Ni.borderpad,borderwidth:Ni.borderwidth,showarrow:Ni.showarrow,arrowcolor:Ni.arrowcolor,arrowhead:Ni.arrowhead,startarrowhead:Ni.startarrowhead,arrowside:Ni.arrowside,arrowsize:Ni.arrowsize,startarrowsize:Ni.startarrowsize,arrowwidth:Ni.arrowwidth,standoff:Ni.standoff,startstandoff:Ni.startstandoff,hovertext:Ni.hovertext,hoverlabel:Ni.hoverlabel,captureevents:Ni.captureevents}),"calc","from-root")});var pB=pe((X2e,dB)=>{"use strict";var xT=Bt(),wfe=Yi(),Tfe=Wl(),Afe=mT(),Mfe=sb();dB.exports=function(t,r,i){Tfe(t,r,{name:"annotations",handleItemDefaults:Sfe,fullLayout:i.fullLayout})};function Sfe(e,t,r,i){function a(f,h){return xT.coerce(e,t,Mfe,f,h)}function s(f){var h=f+"axis",v={_fullLayout:{}};return v._fullLayout[h]=r[h],wfe.coercePosition(t,v,a,f,f,.5)}var l=a("visible");l&&(Afe(e,t,i.fullLayout,a),s("x"),s("y"),s("z"),xT.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",a("ax",-10),a("ay",-30),xT.noneOrAll(e,t,["ax","ay"])))}});var _B=pe((j2e,gB)=>{"use strict";var mB=Bt(),yB=Yi();gB.exports=function(t){for(var r=t.fullSceneLayout,i=r.annotations,a=0;a{"use strict";function bT(e,t){var r=[0,0,0,0],i,a;for(i=0;i<4;++i)for(a=0;a<4;++a)r[a]+=e[4*i+a]*t[i];return r}function Cfe(e,t){var r=bT(e.projection,bT(e.view,bT(e.model,[t[0],t[1],t[2],1])));return r}xB.exports=Cfe});var TB=pe((K2e,wB)=>{"use strict";var Efe=ob().drawRaw,Lfe=bB(),Dfe=["x","y","z"];wB.exports=function(t){for(var r=t.fullSceneLayout,i=t.dataScale,a=r.annotations,s=0;s1){f=!0;break}}f?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+s+'"]').remove():(l._pdata=Lfe(t.glplot.cameraParams,[r.xaxis.r2l(l.x)*i[0],r.yaxis.r2l(l.y)*i[1],r.zaxis.r2l(l.z)*i[2]]),Efe(t.graphDiv,l,s,t.id,l._xa,l._ya))}}});var SB=pe((Q2e,MB)=>{"use strict";var Pfe=la(),AB=Bt();MB.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:sb()}}},layoutAttributes:sb(),handleDefaults:pB(),includeBasePlot:zfe,convert:_B(),draw:TB()};function zfe(e,t){var r=Pfe.subplotsRegistry.gl3d;if(r)for(var i=r.attrRegex,a=Object.keys(e),s=0;s{"use strict";var kB=Q0(),CB=qo(),EB=kc().line,Ife=hc().dash,Gu=hn().extendFlat,Rfe=Pi().templatedArray,$2e=Mg(),lm=ms(),Ffe=Hl().shapeTexttemplateAttrs,qfe=f_();LB.exports=Rfe("shape",{visible:Gu({},lm.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Gu({},lm.legend,{editType:"calc+arraydraw"}),legendgroup:Gu({},lm.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Gu({},lm.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:CB({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Gu({},lm.legendrank,{editType:"calc+arraydraw"}),legendwidth:Gu({},lm.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Gu({},kB.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Gu({},kB.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Gu({},EB.color,{editType:"arraydraw"}),width:Gu({},EB.width,{editType:"calc+arraydraw"}),dash:Gu({},Ife,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Ffe({},{keys:Object.keys(qfe)}),font:CB({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var zB=pe((txe,PB)=>{"use strict";var Wg=Bt(),um=Yi(),Nfe=Wl(),Bfe=wT(),DB=Hh();PB.exports=function(t,r){Nfe(t,r,{name:"shapes",handleItemDefaults:Ufe})};function Ofe(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function Ufe(e,t,r){function i(Ae,Ce){return Wg.coerce(e,t,Bfe,Ae,Ce)}t._isShape=!0;var a=i("visible");if(a){var s=i("showlegend");s&&(i("legend"),i("legendwidth"),i("legendgroup"),i("legendgrouptitle.text"),Wg.coerceFont(i,"legendgrouptitle.font"),i("legendrank"));var l=i("path"),f=l?"path":"rect",h=i("type",f),v=h!=="path";v&&delete t.path,i("editable"),i("layer"),i("opacity"),i("fillcolor"),i("fillrule");var m=i("line.width");m&&(i("line.color"),i("line.dash"));for(var _=i("xsizemode"),T=i("ysizemode"),S=["x","y"],C=0;C<2;C++){var D=S[C],E=D+"anchor",I=D==="x"?_:T,B={_fullLayout:r},q,z,O,H=um.coerceRef(e,t,B,D,void 0,"paper"),V=um.getRefType(H);if(V==="range"?(q=um.getFromId(B,H),q._shapeIndices.push(t._index),O=DB.rangeToShapePosition(q),z=DB.shapePositionToRange(q),(q.type==="category"||q.type==="multicategory")&&(i(D+"0shift"),i(D+"1shift"))):z=O=Wg.identity,v){var W=.25,J=.75,te=D+"0",ne=D+"1",oe=e[te],fe=e[ne];e[te]=z(e[te],!0),e[ne]=z(e[ne],!0),I==="pixel"?(i(te,0),i(ne,10)):(um.coercePosition(t,B,i,H,te,W),um.coercePosition(t,B,i,H,ne,J)),t[te]=O(t[te]),t[ne]=O(t[ne]),e[te]=oe,e[ne]=fe}if(I==="pixel"){var de=e[E];e[E]=z(e[E],!0),um.coercePosition(t,B,i,H,E,.25),t[E]=O(t[E]),e[E]=de}}v&&Wg.noneOrAll(e,t,["x0","x1","y0","y1"]);var Me=h==="line",Se,Te;if(v&&(Se=i("label.texttemplate")),Se||(Te=i("label.text")),Te||Se){i("label.textangle");var we=i("label.textposition",Me?"middle":"middle center");i("label.xanchor"),i("label.yanchor",Ofe(Me,we)),i("label.padding"),Wg.coerceFont(i,"label.font",r.font)}}}});var FB=pe((rxe,RB)=>{"use strict";var Vfe=Ua(),IB=Bt();function Hfe(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}RB.exports=function(t,r,i){i("newshape.visible"),i("newshape.name"),i("newshape.showlegend"),i("newshape.legend"),i("newshape.legendwidth"),i("newshape.legendgroup"),i("newshape.legendgrouptitle.text"),IB.coerceFont(i,"newshape.legendgrouptitle.font"),i("newshape.legendrank"),i("newshape.drawdirection"),i("newshape.layer"),i("newshape.fillcolor"),i("newshape.fillrule"),i("newshape.opacity");var a=i("newshape.line.width");if(a){var s=(t||{}).plot_bgcolor||"#FFF";i("newshape.line.color",Vfe.contrast(s)),i("newshape.line.dash")}var l=t.dragmode==="drawline",f=i("newshape.label.text"),h=i("newshape.label.texttemplate");if(f||h){i("newshape.label.textangle");var v=i("newshape.label.textposition",l?"middle":"middle center");i("newshape.label.xanchor"),i("newshape.label.yanchor",Hfe(l,v)),i("newshape.label.padding"),IB.coerceFont(i,"newshape.label.font",r.font)}i("activeshape.fillcolor"),i("activeshape.opacity")}});var UB=pe((axe,OB)=>{"use strict";var TT=Bt(),fm=Yi(),cm=ng(),NB=Hh();OB.exports=function(t){var r=t._fullLayout,i=TT.filterVisible(r.shapes);if(!(!i.length||!t._fullData.length))for(var a=0;a0?v+l:l;return{ppad:l,ppadplus:f?_:T,ppadminus:f?T:_}}else return{ppad:l}}function qB(e,t,r){var i=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",s,l,f=0,h=0,v=a?e.r2c:e.d2c,m=t[i+"sizemode"]==="scaled";if(m?(s=t[i+"0"],l=t[i+"1"],a&&(f=t[i+"0shift"],h=t[i+"1shift"])):(s=t[i+"anchor"],l=t[i+"anchor"]),s!==void 0)return[v(s)+f,v(l)+h];if(t.path){var _=1/0,T=-1/0,S=t.path.match(cm.segmentRE),C,D,E,I,B;for(e.type==="date"&&(v=NB.decodeDate(v)),C=0;CT&&(T=B)));if(T>=_)return[_,T]}}});var GB=pe((ixe,HB)=>{"use strict";var VB=J2();HB.exports={moduleType:"component",name:"shapes",layoutAttributes:wT(),supplyLayoutDefaults:zB(),supplyDrawNewShapeDefaults:FB(),includeBasePlot:Sg()("shapes"),calcAutorange:UB(),draw:VB.draw,drawOne:VB.drawOne}});var AT=pe((oxe,YB)=>{"use strict";var ZB=Ao(),Yfe=Pi().templatedArray,nxe=Mg();YB.exports=Yfe("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",ZB.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",ZB.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var XB=pe((sxe,WB)=>{"use strict";var Wfe=Bt(),MT=Yi(),Xfe=Wl(),jfe=AT(),Jfe="images";WB.exports=function(t,r){var i={name:Jfe,handleItemDefaults:Kfe};Xfe(t,r,i)};function Kfe(e,t,r){function i(T,S){return Wfe.coerce(e,t,jfe,T,S)}var a=i("source"),s=i("visible",!!a);if(!s)return t;i("layer"),i("xanchor"),i("yanchor"),i("sizex"),i("sizey"),i("sizing"),i("opacity");for(var l={_fullLayout:r},f=["x","y"],h=0;h<2;h++){var v=f[h],m=MT.coerceRef(e,t,l,v,"paper",void 0);if(m!=="paper"){var _=MT.getFromId(l,m);_._imgIndices.push(t._index)}MT.coercePosition(t,l,i,m,v,0)}return t}});var QB=pe((lxe,KB)=>{"use strict";var jB=ja(),Qfe=xi(),hm=Yi(),JB=$n(),$fe=zh();KB.exports=function(t){var r=t._fullLayout,i=[],a={},s=[],l,f;for(f=0;f{"use strict";var $B=Pa(),ece=J1();eO.exports=function(t,r,i,a){r=r||{};var s=i==="log"&&r.type==="linear",l=i==="linear"&&r.type==="log";if(s||l){for(var f=t._fullLayout.images,h=r._id.charAt(0),v,m,_=0;_{"use strict";rO.exports={moduleType:"component",name:"images",layoutAttributes:AT(),supplyLayoutDefaults:XB(),includeBasePlot:Sg()("images"),draw:QB(),convertCoords:tO()}});var lb=pe((cxe,iO)=>{"use strict";iO.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var ST=pe((hxe,oO)=>{"use strict";var tce=qo(),rce=Af(),ace=hn().extendFlat,ice=il().overrideAll,nce=c_(),nO=Pi().templatedArray,oce=nO("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});oO.exports=ice(nO("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:oce,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:ace(nce({editType:"arraydraw"}),{}),font:tce({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:rce.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var fO=pe((vxe,uO)=>{"use strict";var ub=Bt(),sO=Wl(),lO=ST(),sce=lb(),lce=sce.name,uce=lO.buttons;uO.exports=function(t,r){var i={name:lce,handleItemDefaults:fce};sO(t,r,i)};function fce(e,t,r){function i(l,f){return ub.coerce(e,t,lO,l,f)}var a=sO(e,t,{name:"buttons",handleItemDefaults:cce}),s=i("visible",a.length>0);s&&(i("active"),i("direction"),i("type"),i("showactive"),i("x"),i("y"),ub.noneOrAll(e,t,["x","y"]),i("xanchor"),i("yanchor"),i("pad.t"),i("pad.r"),i("pad.b"),i("pad.l"),ub.coerceFont(i,"font",r.font),i("bgcolor",r.paper_bgcolor),i("bordercolor"),i("borderwidth"))}function cce(e,t){function r(a,s){return ub.coerce(e,t,uce,a,s)}var i=r("visible",e.method==="skip"||Array.isArray(e.args));i&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var vO=pe((dxe,hO)=>{"use strict";hO.exports=rn;var Zu=ja(),cO=Ua(),vm=xi(),fb=Bt();function rn(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}rn.barWidth=2;rn.barLength=20;rn.barRadius=2;rn.barPad=1;rn.barColor="#808BA4";rn.prototype.enable=function(t,r,i){var a=this.gd._fullLayout,s=a.width,l=a.height;this.position=t;var f=this.position.l,h=this.position.w,v=this.position.t,m=this.position.h,_=this.position.direction,T=_==="down",S=_==="left",C=_==="right",D=_==="up",E=h,I=m,B,q,z,O;!T&&!S&&!C&&!D&&(this.position.direction="down",T=!0);var H=T||D;H?(B=f,q=B+E,T?(z=v,O=Math.min(z+I,l),I=O-z):(O=v+I,z=Math.max(O-I,0),I=O-z)):(z=v,O=z+I,S?(q=f+E,B=Math.max(q-E,0),E=q-B):(B=f,q=Math.min(B+E,s),E=q-B)),this._box={l:B,t:z,w:E,h:I};var V=h>E,W=rn.barLength+2*rn.barPad,J=rn.barWidth+2*rn.barPad,te=f,ne=v+m;ne+J>l&&(ne=l-J);var oe=this.container.selectAll("rect.scrollbar-horizontal").data(V?[0]:[]);oe.exit().on(".drag",null).remove(),oe.enter().append("rect").classed("scrollbar-horizontal",!0).call(cO.fill,rn.barColor),V?(this.hbar=oe.attr({rx:rn.barRadius,ry:rn.barRadius,x:te,y:ne,width:W,height:J}),this._hbarXMin=te+W/2,this._hbarTranslateMax=E-W):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var fe=m>I,de=rn.barWidth+2*rn.barPad,Me=rn.barLength+2*rn.barPad,Se=f+h,Te=v;Se+de>s&&(Se=s-de);var we=this.container.selectAll("rect.scrollbar-vertical").data(fe?[0]:[]);we.exit().on(".drag",null).remove(),we.enter().append("rect").classed("scrollbar-vertical",!0).call(cO.fill,rn.barColor),fe?(this.vbar=we.attr({rx:rn.barRadius,ry:rn.barRadius,x:Se,y:Te,width:de,height:Me}),this._vbarYMin=Te+Me/2,this._vbarTranslateMax=I-Me):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var Ae=this.id,Ce=B-.5,Le=fe?q+de+.5:q+.5,Qe=z-.5,st=V?O+J+.5:O+.5,at=a._topdefs.selectAll("#"+Ae).data(V||fe?[0]:[]);if(at.exit().remove(),at.enter().append("clipPath").attr("id",Ae).append("rect"),V||fe?(this._clipRect=at.select("rect").attr({x:Math.floor(Ce),y:Math.floor(Qe),width:Math.ceil(Le)-Math.floor(Ce),height:Math.ceil(st)-Math.floor(Qe)}),this.container.call(vm.setClipUrl,Ae,this.gd),this.bg.attr({x:f,y:v,width:h,height:m})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(vm.setClipUrl,null),delete this._clipRect),V||fe){var mt=Zu.behavior.drag().on("dragstart",function(){Zu.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(mt);var Ye=Zu.behavior.drag().on("dragstart",function(){Zu.event.sourceEvent.preventDefault(),Zu.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));V&&this.hbar.on(".drag",null).call(Ye),fe&&this.vbar.on(".drag",null).call(Ye)}this.setTranslate(r,i)};rn.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(vm.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};rn.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Zu.event.dx),this.vbar&&(r-=Zu.event.dy),this.setTranslate(t,r)};rn.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Zu.event.deltaY),this.vbar&&(r+=Zu.event.deltaY),this.setTranslate(t,r)};rn.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var i=t+this._hbarXMin,a=i+this._hbarTranslateMax,s=fb.constrain(Zu.event.x,i,a),l=(s-i)/(a-i),f=this.position.w-this._box.w;t=l*f}if(this.vbar){var h=r+this._vbarYMin,v=h+this._vbarTranslateMax,m=fb.constrain(Zu.event.y,h,v),_=(m-h)/(v-h),T=this.position.h-this._box.h;r=_*T}this.setTranslate(t,r)};rn.prototype.setTranslate=function(t,r){var i=this.position.w-this._box.w,a=this.position.h-this._box.h;if(t=fb.constrain(t||0,0,i),r=fb.constrain(r||0,0,a),this.translateX=t,this.translateY=r,this.container.call(vm.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var s=t/i;this.hbar.call(vm.setTranslate,t+s*this._hbarTranslateMax,r)}if(this.vbar){var l=r/a;this.vbar.call(vm.setTranslate,t,r+l*this._vbarTranslateMax)}}});var TO=pe((pxe,wO)=>{"use strict";var dm=ja(),Xg=eo(),jg=Ua(),pm=xi(),hl=Bt(),cb=co(),hce=Pi().arrayEditor,pO=ts().LINE_SPACING,aa=lb(),vce=vO();wO.exports=function(t){var r=t._fullLayout,i=hl.filterVisible(r[aa.name]);function a(T){Xg.autoMargin(t,xO(T))}var s=r._menulayer.selectAll("g."+aa.containerClassName).data(i.length>0?[0]:[]);if(s.enter().append("g").classed(aa.containerClassName,!0).style("cursor","pointer"),s.exit().each(function(){dm.select(this).selectAll("g."+aa.headerGroupClassName).each(a)}).remove(),i.length!==0){var l=s.selectAll("g."+aa.headerGroupClassName).data(i,dce);l.enter().append("g").classed(aa.headerGroupClassName,!0);for(var f=hl.ensureSingle(s,"g",aa.dropdownButtonGroupClassName,function(T){T.style("pointer-events","all")}),h=0;h{"use strict";var bce=lb();AO.exports={moduleType:"component",name:bce.name,layoutAttributes:ST(),supplyLayoutDefaults:fO(),draw:TO()}});var Kg=pe((yxe,SO)=>{"use strict";SO.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var LT=pe((gxe,EO)=>{"use strict";var kO=qo(),wce=c_(),Tce=hn().extendDeepAll,Ace=il().overrideAll,Mce=Ly(),CO=Pi().templatedArray,Od=Kg(),Sce=CO("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});EO.exports=Ace(CO("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Sce,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:Tce(wce({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:Mce.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:kO({})},font:kO({}),activebgcolor:{valType:"color",dflt:Od.gripBgActiveColor},bgcolor:{valType:"color",dflt:Od.railBgColor},bordercolor:{valType:"color",dflt:Od.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Od.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Od.tickLength},tickcolor:{valType:"color",dflt:Od.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Od.minorTickLength}}),"arraydraw","from-root")});var zO=pe((_xe,PO)=>{"use strict";var mm=Bt(),LO=Wl(),DO=LT(),kce=Kg(),Cce=kce.name,Ece=DO.steps;PO.exports=function(t,r){LO(t,r,{name:Cce,handleItemDefaults:Lce})};function Lce(e,t,r){function i(_,T){return mm.coerce(e,t,DO,_,T)}for(var a=LO(e,t,{name:"steps",handleItemDefaults:Dce}),s=0,l=0;l{"use strict";var Yu=ja(),hb=eo(),Kh=Ua(),Wu=xi(),vl=Bt(),Pce=vl.strTranslate,Qg=co(),zce=Pi().arrayEditor,ba=Kg(),zT=ts(),FO=zT.LINE_SPACING,DT=zT.FROM_TL,PT=zT.FROM_BR;VO.exports=function(t){var r=t._context.staticPlot,i=t._fullLayout,a=Ice(i,t),s=i._infolayer.selectAll("g."+ba.containerClassName).data(a.length>0?[0]:[]);s.enter().append("g").classed(ba.containerClassName,!0).style("cursor",r?null:"ew-resize");function l(m){m._commandObserver&&(m._commandObserver.remove(),delete m._commandObserver),hb.autoMargin(t,qO(m))}if(s.exit().each(function(){Yu.select(this).selectAll("g."+ba.groupClassName).each(l)}).remove(),a.length!==0){var f=s.selectAll("g."+ba.groupClassName).data(a,Rce);f.enter().append("g").classed(ba.groupClassName,!0),f.exit().each(l).remove();for(var h=0;h0&&(f=f.transition().duration(t.transition.duration).ease(t.transition.easing)),f.attr("transform",Pce(l-ba.gripWidth*.5,t._dims.currentValueTotalHeight))}}function IT(e,t){var r=e._dims;return r.inputAreaStart+ba.stepInset+(r.inputAreaLength-2*ba.stepInset)*Math.min(1,Math.max(0,t))}function RO(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-ba.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*ba.stepInset-2*r.inputAreaStart)))}function Vce(e,t,r){var i=r._dims,a=vl.ensureSingle(e,"rect",ba.railTouchRectClass,function(s){s.call(OO,t,e,r).style("pointer-events","all")});a.attr({width:i.inputAreaLength,height:Math.max(i.inputAreaWidth,ba.tickOffset+r.ticklen+i.labelHeight)}).call(Kh.fill,r.bgcolor).attr("opacity",0),Wu.setTranslate(a,0,i.currentValueTotalHeight)}function Hce(e,t){var r=t._dims,i=r.inputAreaLength-ba.railInset*2,a=vl.ensureSingle(e,"rect",ba.railRectClass);a.attr({width:i,height:ba.railWidth,rx:ba.railRadius,ry:ba.railRadius,"shape-rendering":"crispEdges"}).call(Kh.stroke,t.bordercolor).call(Kh.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),Wu.setTranslate(a,ba.railInset,(r.inputAreaWidth-ba.railWidth)*.5+r.currentValueTotalHeight)}});var ZO=pe((bxe,GO)=>{"use strict";var Gce=Kg();GO.exports={moduleType:"component",name:Gce.name,layoutAttributes:LT(),supplyLayoutDefaults:zO(),draw:HO()}});var db=pe((wxe,WO)=>{"use strict";var YO=Af();WO.exports={bgcolor:{valType:"color",dflt:YO.background,editType:"plot"},bordercolor:{valType:"color",dflt:YO.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var RT=pe((Txe,XO)=>{"use strict";XO.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var pb=pe((Axe,jO)=>{"use strict";jO.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var QO=pe(yb=>{"use strict";var Zce=$n(),Yce=co(),JO=pb(),Wce=ts().LINE_SPACING,mb=JO.name;function KO(e){var t=e&&e[mb];return t&&t.visible}yb.isVisible=KO;yb.makeData=function(e){for(var t=Zce.list({_fullLayout:e},"x",!0),r=e.margin,i=[],a=0;a{"use strict";var gb=Bt(),$O=Pi(),eU=$n(),Xce=db(),jce=RT();tU.exports=function(t,r,i){var a=t[i],s=r[i];if(!(a.rangeslider||r._requestRangeslider[s._id]))return;gb.isPlainObject(a.rangeslider)||(a.rangeslider={});var l=a.rangeslider,f=$O.newContainer(s,"rangeslider");function h(O,H){return gb.coerce(l,f,Xce,O,H)}var v,m;function _(O,H){return gb.coerce(v,m,jce,O,H)}var T=h("visible");if(T){h("bgcolor",r.plot_bgcolor),h("bordercolor"),h("borderwidth"),h("thickness"),h("autorange",!s.isValidRange(l.range)),h("range");var S=r._subplots;if(S)for(var C=S.cartesian.filter(function(O){return O.substr(0,O.indexOf("y"))===eU.name2id(i)}).map(function(O){return O.substr(O.indexOf("y"),O.length)}),D=gb.simpleMap(C,eU.id2name),E=0;E{"use strict";var Jce=$n().list,Kce=Xy().getAutoRange,Qce=pb();aU.exports=function(t){for(var r=Jce(t,"x",!0),i=0;i{"use strict";var _b=ja(),$ce=la(),ehe=eo(),mn=Bt(),xb=mn.strTranslate,oU=xi(),Qh=Ua(),the=Yy(),rhe=uT(),FT=$n(),ahe=jl(),ihe=Oh(),Ra=pb();sU.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,i=0;i=we.max)Se=ne[Te+1];else if(Me=we.pmax)Se=ne[Te+1];else if(Me0?e.touches[0].clientX:0}function nhe(e,t,r,i){if(t._context.staticPlot)return;var a=e.select("rect."+Ra.slideBoxClassName).node(),s=e.select("rect."+Ra.grabAreaMinClassName).node(),l=e.select("rect."+Ra.grabAreaMaxClassName).node();function f(){var h=_b.event,v=h.target,m=nU(h),_=m-e.node().getBoundingClientRect().left,T=i.d2p(r._rl[0]),S=i.d2p(r._rl[1]),C=ahe.coverSlip();this.addEventListener("touchmove",D),this.addEventListener("touchend",E),C.addEventListener("mousemove",D),C.addEventListener("mouseup",E);function D(I){var B=nU(I),q=+B-m,z,O,H;switch(v){case a:if(H="ew-resize",T+q>r._length||S+q<0)return;z=T+q,O=S+q;break;case s:if(H="col-resize",T+q>r._length)return;z=T+q,O=S;break;case l:if(H="col-resize",S+q<0)return;z=T,O=S+q;break;default:H="ew-resize",z=_,O=_+q;break}if(O{"use strict";var phe=Bt(),mhe=db(),yhe=RT(),qT=QO();uU.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:phe.extendFlat({},mhe,{yaxis:yhe})}}},layoutAttributes:db(),handleDefaults:rU(),calcAutorange:iU(),draw:lU(),isVisible:qT.isVisible,makeData:qT.makeData,autoMarginOpts:qT.autoMarginOpts}});var bb=pe((Lxe,hU)=>{"use strict";var ghe=qo(),cU=Af(),_he=Pi().templatedArray,xhe=_he("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});hU.exports={visible:{valType:"boolean",editType:"plot"},buttons:xhe,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:ghe({editType:"plot"}),bgcolor:{valType:"color",dflt:cU.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:cU.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var NT=pe((Dxe,vU)=>{"use strict";vU.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var mU=pe((Pxe,pU)=>{"use strict";var wb=Bt(),bhe=Ua(),whe=Pi(),The=Wl(),dU=bb(),BT=NT();pU.exports=function(t,r,i,a,s){var l=t.rangeselector||{},f=whe.newContainer(r,"rangeselector");function h(S,C){return wb.coerce(l,f,dU,S,C)}var v=The(l,f,{name:"buttons",handleItemDefaults:Ahe,calendar:s}),m=h("visible",v.length>0);if(m){var _=Mhe(r,i,a);h("x",_[0]),h("y",_[1]),wb.noneOrAll(t,r,["x","y"]),h("xanchor"),h("yanchor"),wb.coerceFont(h,"font",i.font);var T=h("bgcolor");h("activecolor",bhe.contrast(T,BT.lightAmount,BT.darkAmount)),h("bordercolor"),h("borderwidth")}};function Ahe(e,t,r,i){var a=i.calendar;function s(h,v){return wb.coerce(e,t,dU.buttons,h,v)}var l=s("visible");if(l){var f=s("step");f!=="all"&&(a&&a!=="gregorian"&&(f==="month"||f==="year")?t.stepmode="backward":s("stepmode"),s("count")),s("label")}}function Mhe(e,t,r){for(var i=r.filter(function(f){return t[f].anchor===e._id}),a=0,s=0;s{"use strict";var She=q3(),khe=Bt().titleCase;yU.exports=function(t,r){var i=t._name,a={};if(r.step==="all")a[i+".autorange"]=!0;else{var s=Che(t,r);a[i+".range[0]"]=s[0],a[i+".range[1]"]=s[1]}return a};function Che(e,t){var r=e.range,i=new Date(e.r2l(r[1])),a=t.step,s=She["utc"+khe(a)],l=t.count,f;switch(t.stepmode){case"backward":f=e.l2r(+s.offset(i,-l));break;case"todate":var h=s.offset(i,-l);f=e.l2r(+s.ceil(h));break}var v=r[1];return[f,v]}});var SU=pe((Ixe,MU)=>{"use strict";var Ab=ja(),Ehe=la(),Lhe=eo(),_U=Ua(),AU=xi(),Lc=Bt(),xU=Lc.strTranslate,Tb=co(),Dhe=$n(),VT=ts(),bU=VT.LINE_SPACING,wU=VT.FROM_TL,TU=VT.FROM_BR,UT=NT(),Phe=gU();MU.exports=function(t){var r=t._fullLayout,i=r._infolayer.selectAll(".rangeselector").data(zhe(t),Ihe);i.enter().append("g").classed("rangeselector",!0),i.exit().remove(),i.style({cursor:"pointer","pointer-events":"all"}),i.each(function(a){var s=Ab.select(this),l=a,f=l.rangeselector,h=s.selectAll("g.button").data(Lc.filterVisible(f.buttons));h.enter().append("g").classed("button",!0),h.exit().remove(),h.each(function(v){var m=Ab.select(this),_=Phe(l,v);v._isActive=Rhe(l,v,_),m.call(OT,f,v),m.call(qhe,f,v,t),m.on("click",function(){t._dragged||Ehe.call("_guiRelayout",t,_)}),m.on("mouseover",function(){v._isHovered=!0,m.call(OT,f,v)}),m.on("mouseout",function(){v._isHovered=!1,m.call(OT,f,v)})}),Bhe(t,h,f,l._name,s)})};function zhe(e){for(var t=Dhe.list(e,"x",!0),r=[],i=0;i{"use strict";kU.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:bb()}}},layoutAttributes:bb(),handleDefaults:mU(),draw:SU()}});var Mb=pe(HT=>{"use strict";var EU=hn().extendFlat;HT.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},i=e.name?e.name+" ":"",a=e.trace?"trace ":"subplot ",s=t.description?" "+t.description:"",l={x:EU({},r,{}),y:EU({},r,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};HT.defaults=function(e,t,r,i){var a=i&&i.x||[0,1],s=i&&i.y||[0,1],l=t.grid;if(l){var f=r("domain.column");f!==void 0&&(f{"use strict";var Ohe=Bt(),Uhe=c0().counter,Vhe=Mb().attributes,LU=Ao().idRegex,Hhe=Pi(),GT={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Uhe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[LU.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[LU.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Vhe({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Sb(e,t,r){var i=t[r+"axes"],a=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(i))return i;if(a.length)return a}function Ghe(e,t){var r=e.grid||{},i=Sb(t,r,"x"),a=Sb(t,r,"y");if(!e.grid&&!i&&!a)return;var s=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),l=Array.isArray(i),f=Array.isArray(a),h=l&&i!==r.xaxes&&f&&a!==r.yaxes,v,m;s?(v=r.subplots.length,m=r.subplots[0].length):(f&&(v=a.length),l&&(m=i.length));var _=Hhe.newContainer(t,"grid");function T(H,V){return Ohe.coerce(r,_,GT,H,V)}var S=T("rows",v),C=T("columns",m);if(!(S*C>1)){delete t.grid;return}if(!s&&!l&&!f){var D=T("pattern")==="independent";D&&(s=!0)}_._hasSubplotGrid=s;var E=T("roworder"),I=E==="top to bottom",B=s?.2:.1,q=s?.3:.1,z,O;h&&t._splomGridDflt&&(z=t._splomGridDflt.xside,O=t._splomGridDflt.yside),_._domains={x:DU("x",T,B,z,C),y:DU("y",T,q,O,S,I)}}function DU(e,t,r,i,a,s){var l=t(e+"gap",r),f=t("domain."+e);t(e+"side",i);for(var h=new Array(a),v=f[0],m=(f[1]-v)/(a-l),_=m*(1-l),T=0;T{"use strict";RU.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var NU=pe((Bxe,qU)=>{"use strict";var FU=Pa(),Yhe=la(),Whe=Bt(),Xhe=Pi(),jhe=ZT();qU.exports=function(e,t,r,i){var a="error_"+i.axis,s=Xhe.newContainer(t,a),l=e[a]||{};function f(C,D){return Whe.coerce(l,s,jhe,C,D)}var h=l.array!==void 0||l.value!==void 0||l.type==="sqrt",v=f("visible",h);if(v!==!1){var m=f("type","array"in l?"data":"percent"),_=!0;m!=="sqrt"&&(_=f("symmetric",!((m==="data"?"arrayminus":"valueminus")in l))),m==="data"?(f("array"),f("traceref"),_||(f("arrayminus"),f("tracerefminus"))):(m==="percent"||m==="constant")&&(f("value"),_||f("valueminus"));var T="copy_"+i.inherit+"style";if(i.inherit){var S=t["error_"+i.inherit];(S||{}).visible&&f(T,!(l.color||FU(l.thickness)||FU(l.width)))}(!i.inherit||!s[T])&&(f("color",r),f("thickness"),f("width",Yhe.traceIs(t,"gl3d")?0:4))}}});var YT=pe((Oxe,OU)=>{"use strict";OU.exports=function(t){var r=t.type,i=t.symmetric;if(r==="data"){var a=t.array||[];if(i)return function(v,m){var _=+a[m];return[_,_]};var s=t.arrayminus||[];return function(v,m){var _=+a[m],T=+s[m];return!isNaN(_)||!isNaN(T)?[T||0,_||0]:[NaN,NaN]}}else{var l=BU(r,t.value),f=BU(r,t.valueminus);return i||t.valueminus===void 0?function(v){var m=l(v);return[m,m]}:function(v){return[f(v),l(v)]}}};function BU(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var HU=pe((Uxe,VU)=>{"use strict";var WT=Pa(),Jhe=la(),XT=Yi(),Khe=Bt(),Qhe=YT();VU.exports=function(t){for(var r=t.calcdata,i=0;i{"use strict";var GU=ja(),$h=Pa(),$he=xi(),eve=rs();ZU.exports=function(t,r,i,a){var s,l=i.xaxis,f=i.yaxis,h=a&&a.duration>0,v=t._context.staticPlot;r.each(function(m){var _=m[0].trace,T=_.error_x||{},S=_.error_y||{},C;_.ids&&(C=function(B){return B.id});var D=eve.hasMarkers(_)&&_.marker.maxdisplayed>0;!S.visible&&!T.visible&&(m=[]);var E=GU.select(this).selectAll("g.errorbar").data(m,C);if(E.exit().remove(),!!m.length){T.visible||E.selectAll("path.xerror").remove(),S.visible||E.selectAll("path.yerror").remove(),E.style("opacity",1);var I=E.enter().append("g").classed("errorbar",!0);h&&I.style("opacity",0).transition().duration(a.duration).style("opacity",1),$he.setClipUrl(E,i.layerClipId,t),E.each(function(B){var q=GU.select(this),z=tve(B,l,f);if(!(D&&!B.vis)){var O,H=q.select("path.yerror");if(S.visible&&$h(z.x)&&$h(z.yh)&&$h(z.ys)){var V=S.width;O="M"+(z.x-V)+","+z.yh+"h"+2*V+"m-"+V+",0V"+z.ys,z.noYS||(O+="m-"+V+",0h"+2*V),s=!H.size(),s?H=q.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("yerror",!0):h&&(H=H.transition().duration(a.duration).ease(a.easing)),H.attr("d",O)}else H.remove();var W=q.select("path.xerror");if(T.visible&&$h(z.y)&&$h(z.xh)&&$h(z.xs)){var J=(T.copy_ystyle?S:T).width;O="M"+z.xh+","+(z.y-J)+"v"+2*J+"m0,-"+J+"H"+z.xs,z.noXS||(O+="m0,-"+J+"v"+2*J),s=!W.size(),s?W=q.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("xerror",!0):h&&(W=W.transition().duration(a.duration).ease(a.easing)),W.attr("d",O)}else W.remove()}})}})};function tve(e,t,r){var i={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(i.yh=r.c2p(e.yh),i.ys=r.c2p(e.ys),$h(i.ys)||(i.noYS=!0,i.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(i.xh=t.c2p(e.xh),i.xs=t.c2p(e.xs),$h(i.xs)||(i.noXS=!0,i.xs=t.c2p(e.xs,!0))),i}});var jU=pe((Hxe,XU)=>{"use strict";var rve=ja(),WU=Ua();XU.exports=function(t){t.each(function(r){var i=r[0].trace,a=i.error_y||{},s=i.error_x||{},l=rve.select(this);l.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(WU.stroke,a.color),s.copy_ystyle&&(s=a),l.selectAll("path.xerror").style("stroke-width",s.thickness+"px").call(WU.stroke,s.color)})}});var QU=pe((Gxe,KU)=>{"use strict";var $g=Bt(),JU=il().overrideAll,e1=ZT(),Ud={error_x:$g.extendFlat({},e1),error_y:$g.extendFlat({},e1)};delete Ud.error_x.copy_zstyle;delete Ud.error_y.copy_zstyle;delete Ud.error_y.copy_ystyle;var t1={error_x:$g.extendFlat({},e1),error_y:$g.extendFlat({},e1),error_z:$g.extendFlat({},e1)};delete t1.error_x.copy_ystyle;delete t1.error_y.copy_ystyle;delete t1.error_z.copy_ystyle;delete t1.error_z.copy_zstyle;KU.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Ud,bar:Ud,histogram:Ud,scatter3d:JU(t1,"calc","nested"),scattergl:JU(Ud,"calc","nested")}},supplyDefaults:NU(),calc:HU(),makeComputeError:YT(),plot:YU(),style:jU(),hoverInfo:ave};function ave(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var eV=pe((Zxe,$U)=>{"use strict";$U.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var sV=pe((Yxe,oV)=>{"use strict";var ev=ja(),jT=Tf(),Cb=eo(),tV=la(),Dc=Yi(),kb=jl(),su=Bt(),ju=su.strTranslate,nV=hn().extendFlat,JT=Oh(),Xu=xi(),KT=Ua(),ive=Yy(),nve=co(),ove=kf().flipScale,sve=nT(),lve=oT(),uve=Ru(),QT=ts(),rV=QT.LINE_SPACING,aV=QT.FROM_TL,iV=QT.FROM_BR,Ji=eV().cn;function fve(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+Ji.colorbar).data(cve(e),function(i){return i._id});r.enter().append("g").attr("class",function(i){return i._id}).classed(Ji.colorbar,!0),r.each(function(i){var a=ev.select(this);su.ensureSingle(a,"rect",Ji.cbbg),su.ensureSingle(a,"g",Ji.cbfills),su.ensureSingle(a,"g",Ji.cblines),su.ensureSingle(a,"g",Ji.cbaxis,function(l){l.classed(Ji.crisp,!0)}),su.ensureSingle(a,"g",Ji.cbtitleunshift,function(l){l.append("g").classed(Ji.cbtitle,!0)}),su.ensureSingle(a,"rect",Ji.cboutline);var s=hve(a,i,e);s&&s.then&&(e._promises||[]).push(s),e._context.edits.colorbarPosition&&vve(a,i,e)}),r.exit().each(function(i){Cb.autoMargin(e,i._id)}).remove(),r.order()}function cve(e){var t=e._fullLayout,r=e.calcdata,i=[],a,s,l,f;function h(q){return nV(q,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function v(){typeof f.calc=="function"?f.calc(e,l,a):(a._fillgradient=s.reversescale?ove(s.colorscale):s.colorscale,a._zrange=[s[f.min],s[f.max]])}for(var m=0;m1){var Ie=Math.pow(10,Math.floor(Math.log(ve)/Math.LN10));Mt*=Ie*su.roundUp(ve/Ie,[2,5,10]),(Math.abs(oe.start)/oe.size+1e-6)%1<2e-6&&(it.tick0=0)}it.dtick=Mt}it.domain=i?[Ye+C/z.h,Ye+Ae-C/z.h]:[Ye+S/z.w,Ye+Ae-S/z.w],it.setScale(),e.attr("transform",ju(Math.round(z.l),Math.round(z.t)));var me=e.select("."+Ji.cbtitleunshift).attr("transform",ju(-Math.round(z.l),-Math.round(z.t))),rt=it.ticklabelposition,pt=it.title.font.size,je=e.select("."+Ji.cbaxis),qt,It=0,Tt=0;function zt(Vt,Ne){var ut={propContainer:it,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:q._dfltTitle.colorbar,containerGroup:e.select("."+Ji.cbtitle)},gt=Vt.charAt(0)==="h"?Vt.substr(1):"h"+Vt;e.selectAll("."+gt+",."+gt+"-math-group").remove(),ive.draw(r,Vt,nV(ut,Ne||{}))}function Ut(){if(i&&dt||!i&&!dt){var Vt,Ne;W==="top"&&(Vt=S+z.l+Ce*D,Ne=C+z.t+Le*(1-Ye-Ae)+3+pt*.75),W==="bottom"&&(Vt=S+z.l+Ce*D,Ne=C+z.t+Le*(1-Ye)-3-pt*.25),W==="right"&&(Ne=C+z.t+Le*E+3+pt*.75,Vt=S+z.l+Ce*Ye),zt(it._id+"title",{attributes:{x:Vt,y:Ne,"text-anchor":i?"start":"middle"}})}}function Et(){if(i&&!dt||!i&&dt){var Vt=it.position||0,Ne=it._offset+it._length/2,ut,gt;if(W==="right")gt=Ne,ut=z.l+Ce*Vt+10+pt*(it.showticklabels?1:.5);else if(ut=Ne,W==="bottom"&&(gt=z.t+Le*Vt+10+(rt.indexOf("inside")===-1?it.tickfont.size:0)+(it.ticks!=="intside"&&t.ticklen||0)),W==="top"){var xr=V.text.split("
").length;gt=z.t+Le*Vt+10-Se-rV*pt*xr}zt((i?"h":"v")+it._id+"title",{avoid:{selection:ev.select(r).selectAll("g."+it._id+"tick"),side:W,offsetTop:i?0:z.t,offsetLeft:i?z.l:0,maxShift:i?q.width:q.height},attributes:{x:ut,y:gt,"text-anchor":"middle"},transform:{rotate:i?-90:0,offset:0}})}}function Ct(){if(!i&&!dt||i&&dt){var Vt=e.select("."+Ji.cbtitle),Ne=Vt.select("text"),ut=[-h/2,h/2],gt=Vt.select(".h"+it._id+"title-math-group").node(),xr=15.6;Ne.node()&&(xr=parseInt(Ne.node().style.fontSize,10)*rV);var vr;if(gt?(vr=Xu.bBox(gt),Tt=vr.width,It=vr.height,It>xr&&(ut[1]-=(It-xr)/2)):Ne.node()&&!Ne.classed(Ji.jsPlaceholder)&&(vr=Xu.bBox(Ne.node()),Tt=vr.width,It=vr.height),i){if(It){if(It+=5,W==="top")it.domain[1]-=It/z.h,ut[1]*=-1;else{it.domain[0]+=It/z.h;var wt=nve.lineCount(Ne);ut[1]+=(1-wt)*xr}Vt.attr("transform",ju(ut[0],ut[1])),it.setScale()}}else Tt&&(W==="right"&&(it.domain[0]+=(Tt+pt/2)/z.w),Vt.attr("transform",ju(ut[0],ut[1])),it.setScale())}e.selectAll("."+Ji.cbfills+",."+Ji.cblines).attr("transform",i?ju(0,Math.round(z.h*(1-it.domain[1]))):ju(Math.round(z.w*it.domain[0]),0)),je.attr("transform",i?ju(0,Math.round(-z.t)):ju(Math.round(-z.l),0));var bt=e.select("."+Ji.cbfills).selectAll("rect."+Ji.cbfill).attr("style","").data(de);bt.enter().append("rect").classed(Ji.cbfill,!0).attr("style",""),bt.exit().remove();var Ht=J.map(it.c2p).map(Math.round).sort(function(Mr,br){return Mr-br});bt.each(function(Mr,br){var Lt=[br===0?J[0]:(de[br]+de[br-1])/2,br===de.length-1?J[1]:(de[br]+de[br+1])/2].map(it.c2p).map(Math.round);i&&(Lt[1]=su.constrain(Lt[1]+(Lt[1]>Lt[0])?1:-1,Ht[0],Ht[1]));var Fe=ev.select(this).attr(i?"x":"y",Qe).attr(i?"y":"x",ev.min(Lt)).attr(i?"width":"height",Math.max(Se,2)).attr(i?"height":"width",Math.max(ev.max(Lt)-ev.min(Lt),2));if(t._fillgradient)Xu.gradient(Fe,r,t._id,i?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var He=ne(Mr).replace("e-","");Fe.attr("fill",jT(He).toHexString())}});var Xt=e.select("."+Ji.cblines).selectAll("path."+Ji.cbline).data(H.color&&H.width?Me:[]);Xt.enter().append("path").classed(Ji.cbline,!0),Xt.exit().remove(),Xt.each(function(Mr){var br=Qe,Lt=Math.round(it.c2p(Mr))+H.width/2%1;ev.select(this).attr("d","M"+(i?br+","+Lt:Lt+","+br)+(i?"h":"v")+Se).call(Xu.lineGroupStyle,H.width,te(Mr),H.dash)}),je.selectAll("g."+it._id+"tick,path").remove();var Gt=Qe+Se+(h||0)/2-(t.ticks==="outside"?1:0),Ot=Dc.calcTicks(it),tr=Dc.getTickSigns(it)[2];return Dc.drawTicks(r,it,{vals:it.ticks==="inside"?Dc.clipEnds(it,Ot):Ot,layer:je,path:Dc.makeTickPath(it,Gt,tr),transFn:Dc.makeTransTickFn(it)}),Dc.drawLabels(r,it,{vals:Ot,layer:je,transFn:Dc.makeTransTickLabelFn(it),labelFns:Dc.makeLabelFns(it,Gt)})}function Yt(){var Vt,Ne=Se+h/2;rt.indexOf("inside")===-1&&(Vt=Xu.bBox(je.node()),Ne+=i?Vt.width:Vt.height),qt=me.select("text");var ut=0,gt=i&&W==="top",xr=!i&&W==="right",vr=0;if(qt.node()&&!qt.classed(Ji.jsPlaceholder)){var wt,bt=me.select(".h"+it._id+"title-math-group").node();bt&&(i&&dt||!i&&!dt)?(Vt=Xu.bBox(bt),ut=Vt.width,wt=Vt.height):(Vt=Xu.bBox(me.node()),ut=Vt.right-z.l-(i?Qe:At),wt=Vt.bottom-z.t-(i?At:Qe),!i&&W==="top"&&(Ne+=Vt.height,vr=Vt.height)),xr&&(qt.attr("transform",ju(ut/2+pt/2,0)),ut*=2),Ne=Math.max(Ne,i?ut:wt)}var Ht=(i?S:C)*2+Ne+v+h/2,Xt=0;!i&&V.text&&T==="bottom"&&E<=0&&(Xt=Ht/2,Ht+=Xt,vr+=Xt),q._hColorbarMoveTitle=Xt,q._hColorbarMoveCBTitle=vr;var Gt=v+h,Ot=(i?Qe:At)-Gt/2-(i?S:0),tr=(i?At:Qe)-(i?we:C+vr-Xt);e.select("."+Ji.cbbg).attr("x",Ot).attr("y",tr).attr(i?"width":"height",Math.max(Ht-Xt,2)).attr(i?"height":"width",Math.max(we+Gt,2)).call(KT.fill,m).call(KT.stroke,t.bordercolor).style("stroke-width",v);var Mr=xr?Math.max(ut-10,0):0;e.selectAll("."+Ji.cboutline).attr("x",(i?Qe:At+S)+Mr).attr("y",(i?At+C-we:Qe)+(gt?It:0)).attr(i?"width":"height",Math.max(Se,2)).attr(i?"height":"width",Math.max(we-(i?2*C+It:2*S+Mr),2)).call(KT.stroke,t.outlinecolor).style({fill:"none","stroke-width":h});var br=i?st*Ht:0,Lt=i?0:(1-at)*Ht-vr;if(br=B?z.l-br:-br,Lt=I?z.t-Lt:-Lt,e.attr("transform",ju(br,Lt)),!i&&(v||jT(m).getAlpha()&&!jT.equals(q.paper_bgcolor,m))){var Fe=je.selectAll("text"),He=Fe[0].length,xt=e.select("."+Ji.cbbg).node(),vt=Xu.bBox(xt),yr=Xu.getTranslate(e),Er=2;Fe.each(function(jn,En){var Vi=0,pa=He-1;if(En===Vi||En===pa){var Gr=Xu.bBox(this),Qa=Xu.getTranslate(this),Zr;if(En===pa){var vi=Gr.right+Qa.x,ya=vt.right+yr.x+At-v-Er+D;Zr=ya-vi,Zr>0&&(Zr=0)}else if(En===Vi){var le=Gr.left+Qa.x,ee=vt.left+yr.x+At+v+Er;Zr=ee-le,Zr<0&&(Zr=0)}Zr&&(He<3?this.setAttribute("transform","translate("+Zr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Ar={},Hr=aV[_],_a=iV[_],ka=aV[T],Ea=iV[T],Ii=Ht-Se;i?(s==="pixels"?(Ar.y=E,Ar.t=we*ka,Ar.b=we*Ea):(Ar.t=Ar.b=0,Ar.yt=E+a*ka,Ar.yb=E-a*Ea),f==="pixels"?(Ar.x=D,Ar.l=Ht*Hr,Ar.r=Ht*_a):(Ar.l=Ii*Hr,Ar.r=Ii*_a,Ar.xl=D-l*Hr,Ar.xr=D+l*_a)):(s==="pixels"?(Ar.x=D,Ar.l=we*Hr,Ar.r=we*_a):(Ar.l=Ar.r=0,Ar.xl=D+a*Hr,Ar.xr=D-a*_a),f==="pixels"?(Ar.y=1-E,Ar.t=Ht*ka,Ar.b=Ht*Ea):(Ar.t=Ii*ka,Ar.b=Ii*Ea,Ar.yt=E-l*ka,Ar.yb=E+l*Ea));var Ki=t.y<.5?"b":"t",yn=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Xi={r:q.width-Ot-br,l:Ot+Ar.r,b:q.height-tr-Lt,t:tr+Ar.b};B&&I?Cb.autoMargin(r,t._id,Ar):B?r._fullLayout._reservedMargin[t._id][Ki]=Xi[Ki]:I||i?r._fullLayout._reservedMargin[t._id][yn]=Xi[yn]:r._fullLayout._reservedMargin[t._id][Ki]=Xi[Ki]}return su.syncOrAsync([Cb.previousPromises,Ut,Ct,Et,Cb.previousPromises,Yt],r)}function vve(e,t,r){var i=t.orientation==="v",a=r._fullLayout,s=a._size,l,f,h;kb.init({element:e.node(),gd:r,prepFn:function(){l=e.attr("transform"),JT(e)},moveFn:function(v,m){e.attr("transform",l+ju(v,m)),f=kb.align((i?t._uFrac:t._vFrac)+v/s.w,i?t._thickFrac:t._lenFrac,0,1,t.xanchor),h=kb.align((i?t._vFrac:1-t._uFrac)-m/s.h,i?t._lenFrac:t._thickFrac,0,1,t.yanchor);var _=kb.getCursor(f,h,t.xanchor,t.yanchor);JT(e,_)},doneFn:function(){if(JT(e),f!==void 0&&h!==void 0){var v={};v[t._propPrefix+"x"]=f,v[t._propPrefix+"y"]=h,t._traceIndex!==void 0?tV.call("_guiRestyle",r,v,t._traceIndex):tV.call("_guiRelayout",r,v)}}})}function dve(e,t,r){var i=t._levels,a=[],s=[],l,f,h=i.end+i.size/100,v=i.size,m=1.001*r[0]-.001*r[1],_=1.001*r[1]-.001*r[0];for(f=0;f<1e5&&(l=i.start+f*v,!(v>0?l>=h:l<=h));f++)l>m&&l<_&&a.push(l);if(t._fillgradient)s=[0];else if(typeof t._fillcolor=="function"){var T=t._filllevels;if(T)for(h=T.end+T.size/100,v=T.size,f=0;f<1e5&&(l=T.start+f*v,!(v>0?l>=h:l<=h));f++)l>r[0]&&l{"use strict";lV.exports={moduleType:"component",name:"colorbar",attributes:V_(),supplyDefaults:e5(),draw:sV().draw,hasColorbar:Hw()}});var cV=pe((Xxe,fV)=>{"use strict";fV.exports={moduleType:"component",name:"legend",layoutAttributes:J5(),supplyLayoutDefaults:$5(),draw:h4(),style:l4()}});var vV=pe((jxe,hV)=>{"use strict";hV.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var pV=pe((Jxe,dV)=>{"use strict";dV.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var eA=pe((Kxe,_V)=>{"use strict";var mve=la(),gV=Bt(),$T=gV.extendFlat,mV=gV.extendDeep;function yV(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function yve(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}_V.exports=function(t,r){var i,a=t.data,s=t.layout,l=mV([],a),f=mV({},s,yV(r.tileClass)),h=t._context||{};if(r.width&&(f.width=r.width),r.height&&(f.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){f.annotations=[];var v=Object.keys(f);for(i=0;i{"use strict";var gve=C_().EventEmitter,_ve=la(),xve=Bt(),xV=Dd(),bve=eA(),wve=Fx(),Tve=qx();function Ave(e,t){var r=new gve,i=bve(e,{format:"png"}),a=i.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function s(){var f=xV.getDelay(a._fullLayout);setTimeout(function(){var h=wve(a),v=document.createElement("canvas");v.id=xve.randstr(),r=Tve({format:t.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:v,emitter:r,svg:h}),r.clean=function(){a&&document.body.removeChild(a)}},f)}var l=xV.getRedrawFunc(a);return _ve.call("_doPlot",a,i.data,i.layout,i.config).then(l).then(s).catch(function(f){r.emit("error",f)}),r}bV.exports=Ave});var MV=pe(($xe,AV)=>{"use strict";var TV=Dd(),Mve={getDelay:TV.getDelay,getRedrawFunc:TV.getRedrawFunc,clone:eA(),toSVG:Fx(),svgToImg:qx(),toImage:wV(),downloadImage:E6()};AV.exports=Mve});var kV=pe(Pc=>{"use strict";Pc.version=U1().version;_7();uk();var Sve=la(),r1=Pc.register=Sve.register,rA=DF(),SV=Object.keys(rA);for(Eb=0;Eb{"use strict";CV.exports=kV()});var aA=pe((rbe,PV)=>{"use strict";var kve=Hl().hovertemplateAttrs,Cve=Hl().texttemplateAttrs,Eve=px(),Vf=kc(),Lve=ms(),LV=xc(),Dve=hc().dash,Vd=hn().extendFlat,Pve=il().overrideAll,lu=Vf.marker,DV=Vf.line,zve=lu.line;PV.exports=Pve({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:Vd({},Vf.mode,{dflt:"markers"}),text:Vd({},Vf.text,{}),texttemplate:Cve({editType:"plot"},{keys:["lat","lon","location","text"]}),hovertext:Vd({},Vf.hovertext,{}),textfont:Vf.textfont,textposition:Vf.textposition,line:{color:DV.color,width:DV.width,dash:Dve},connectgaps:Vf.connectgaps,marker:Vd({symbol:lu.symbol,opacity:lu.opacity,angle:lu.angle,angleref:Vd({},lu.angleref,{values:["previous","up","north"]}),standoff:lu.standoff,size:lu.size,sizeref:lu.sizeref,sizemin:lu.sizemin,sizemode:lu.sizemode,colorbar:lu.colorbar,line:Vd({width:zve.width},LV("marker.line")),gradient:lu.gradient},LV("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:Eve(),selected:Vf.selected,unselected:Vf.unselected,hoverinfo:Vd({},Lve.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:kve()},"calc","nested")});var zc=pe((abe,BV)=>{"use strict";var Ive=g_(),zV="1.13.4",qV='\xA9 OpenStreetMap contributors',IV=['\xA9 Carto',qV].join(" "),RV=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),Rve=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),NV={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:qV,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:IV,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:IV,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:RV,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:RV,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:Rve,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},FV=Ive(NV);BV.exports={requiredVersion:zV,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:NV,styleValuesNonMapbox:FV,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+zV+"."].join(` +`)};function X(ye){return ye.map(ae).join(y)}function ae(ye){return P.test(ye)?'"'+ye.replace(/\"/g,'""')+'"':ye}return U},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var Kn,hu,Vi,pl,Qd=this[Ae(this,"requestAnimationFrame")]||function(y){setTimeout(y,17)};e.timer=function(){qc.apply(this,arguments)};function qc(y,M,P){var N=arguments.length;N<2&&(M=0),N<3&&(P=Date.now());var U=P+M,Z={c:y,t:U,n:null};return hu?hu.n=Z:Kn=Z,hu=Z,Vi||(pl=clearTimeout(pl),Vi=1,Qd(Nc)),Z}function Nc(){var y=hv(),M=vv()-y;M>24?(isFinite(M)&&(clearTimeout(pl),pl=setTimeout(Nc,M)),Vi=0):(Vi=1,Qd(Nc))}e.timer.flush=function(){hv(),vv()};function hv(){for(var y=Date.now(),M=Kn;M;)y>=M.t&&M.c(y-M.t)&&(M.c=null),M=M.n;return y}function vv(){for(var y,M=Kn,P=1/0;M;)M.c?(M.t=0;--X)Ie.push(U[ye[Pe[X]][2]]);for(X=+Qe;X1&&Ua(y[P[N-2]],y[P[N-1]],y[U])<=0;)--N;P[N++]=U}return P.slice(0,N)}function Ku(y,M){return y[0]-M[0]||y[1]-M[1]}e.geom.polygon=function(y){return We(y,Zf),y};var Zf=e.geom.polygon.prototype=[];Zf.area=function(){for(var y=-1,M=this.length,P,N=this[M-1],U=0;++yGe)X=X.L;else if($=M-sn(X,P),$>Ge){if(!X.R){N=X;break}X=X.R}else{Z>-Ge?(N=X.P,U=X):$>-Ge?(N=X,U=X.N):N=U=X;break}var ae=oo(y);if(du.insert(N,ae),!(!N&&!U)){if(N===U){wa(N),U=oo(N.site),du.insert(ae,U),ae.edge=U.edge=Ws(N.site,ae.site),kr(N),kr(U);return}if(!U){ae.edge=Ws(N.site,ae.site);return}wa(N),wa(U);var ye=N.site,_e=ye.x,Pe=ye.y,De=y.x-_e,Qe=y.y-Pe,lt=U.site,Ie=lt.x-_e,Ve=lt.y-Pe,Ke=2*(De*Ve-Qe*Ie),ct=De*De+Qe*Qe,st=Ie*Ie+Ve*Ve,je={x:(Ve*ct-Qe*st)/Ke+_e,y:(De*st-Ie*ct)/Ke+Pe};us(U.edge,ye,lt,je),ae.edge=Ws(ye,y,null,je),U.edge=Ws(y,lt,null,je),kr(N),kr(U)}}function pu(y,M){var P=y.site,N=P.x,U=P.y,Z=U-M;if(!Z)return N;var $=y.P;if(!$)return-1/0;P=$.site;var X=P.x,ae=P.y,ye=ae-M;if(!ye)return X;var _e=X-N,Pe=1/Z-1/ye,De=_e/ye;return Pe?(-De+Math.sqrt(De*De-2*Pe*(_e*_e/(-2*ye)-ae+ye/2+U-Z/2)))/Pe+N:(N+X)/2}function sn(y,M){var P=y.N;if(P)return pu(P,M);var N=y.site;return N.y===M?N.x:1/0}function gl(y){this.site=y,this.edges=[]}gl.prototype.prepare=function(){for(var y=this.edges,M=y.length,P;M--;)P=y[M].edge,(!P.b||!P.a)&&y.splice(M,1);return y.sort($u),y.length};function xs(y){for(var M=y[0][0],P=y[1][0],N=y[0][1],U=y[1][1],Z,$,X,ae,ye=Go,_e=ye.length,Pe,De,Qe,lt,Ie,Ve;_e--;)if(Pe=ye[_e],!(!Pe||!Pe.prepare()))for(Qe=Pe.edges,lt=Qe.length,De=0;DeGe||I(ae-$)>Ge)&&(Qe.splice(De,0,new xl(mu(Pe.site,Ve,I(X-M)Ge?{x:M,y:I(Z-M)Ge?{x:I($-U)Ge?{x:P,y:I(Z-P)Ge?{x:I($-N)=-wt)){var De=ae*ae+ye*ye,Qe=_e*_e+Ve*Ve,lt=(Ve*De-ye*Qe)/Pe,Ie=(ae*Qe-_e*De)/Pe,Ve=Ie+X,Ke=pv.pop()||new ef;Ke.arc=y,Ke.site=U,Ke.x=lt+$,Ke.y=Ve+Math.sqrt(lt*lt+Ie*Ie),Ke.cy=Ve,y.circle=Ke;for(var ct=null,st=Qu._;st;)if(Ke.y0)){if(Ie/=Qe,Qe<0){if(Ie0){if(Ie>De)return;Ie>Pe&&(Pe=Ie)}if(Ie=P-X,!(!Qe&&Ie<0)){if(Ie/=Qe,Qe<0){if(Ie>De)return;Ie>Pe&&(Pe=Ie)}else if(Qe>0){if(Ie0)){if(Ie/=lt,lt<0){if(Ie0){if(Ie>De)return;Ie>Pe&&(Pe=Ie)}if(Ie=N-ae,!(!lt&&Ie<0)){if(Ie/=lt,lt<0){if(Ie>De)return;Ie>Pe&&(Pe=Ie)}else if(lt>0){if(Ie0&&(U.a={x:X+Pe*Qe,y:ae+Pe*lt}),De<1&&(U.b={x:X+De*Qe,y:ae+De*lt}),U}}}}}}function bs(y){for(var M=yl,P=Ta(y[0][0],y[0][1],y[1][0],y[1][1]),N=M.length,U;N--;)U=M[N],(!_l(U,y)||!P(U)||I(U.a.x-U.b.x)=Z)return;if(_e>De){if(!N)N={x:lt,y:$};else if(N.y>=X)return;P={x:lt,y:X}}else{if(!N)N={x:lt,y:X};else if(N.y<$)return;P={x:lt,y:$}}}else if(Ve=(_e-De)/(Qe-Pe),Ke=Ie-Ve*lt,Ve<-1||Ve>1)if(_e>De){if(!N)N={x:($-Ke)/Ve,y:$};else if(N.y>=X)return;P={x:(X-Ke)/Ve,y:X}}else{if(!N)N={x:(X-Ke)/Ve,y:X};else if(N.y<$)return;P={x:($-Ke)/Ve,y:$}}else if(Pe=Z)return;P={x:Z,y:Ve*Z+Ke}}else{if(!N)N={x:Z,y:Ve*Z+Ke};else if(N.x=_e&&Ke.x<=De&&Ke.y>=Pe&&Ke.y<=Qe?[[_e,Qe],[De,Qe],[De,Pe],[_e,Pe]]:[];ct.point=ae[Ie]}),ye}function X(ae){return ae.map(function(ye,_e){return{x:Math.round(N(ye,_e)/Ge)*Ge,y:Math.round(U(ye,_e)/Ge)*Ge,i:_e}})}return $.links=function(ae){return yu(X(ae)).edges.filter(function(ye){return ye.l&&ye.r}).map(function(ye){return{source:ae[ye.l.i],target:ae[ye.r.i]}})},$.triangles=function(ae){var ye=[];return yu(X(ae)).cells.forEach(function(_e,Pe){for(var De=_e.site,Qe=_e.edges.sort($u),lt=-1,Ie=Qe.length,Ve,Ke,ct=Qe[Ie-1].edge,st=ct.l===De?ct.r:ct.l;++ltst&&(st=_e.x),_e.y>je&&(je=_e.y),Qe.push(_e.x),lt.push(_e.y);else for(Ie=0;Iest&&(st=Ht),nr>je&&(je=nr),Qe.push(Ht),lt.push(nr)}var cr=st-Ke,ur=je-ct;cr>ur?je=ct+cr:st=Ke+ur;function Dr(Ur,Kr,Na,ri,$a,Xt,Jr,oa){if(!(isNaN(Na)||isNaN(ri)))if(Ur.leaf){var sa=Ur.x,Pi=Ur.y;if(sa!=null)if(I(sa-Na)+I(Pi-ri)<.01)Ir(Ur,Kr,Na,ri,$a,Xt,Jr,oa);else{var Hi=Ur.point;Ur.x=Ur.y=Ur.point=null,Ir(Ur,Hi,sa,Pi,$a,Xt,Jr,oa),Ir(Ur,Kr,Na,ri,$a,Xt,Jr,oa)}else Ur.x=Na,Ur.y=ri,Ur.point=Kr}else Ir(Ur,Kr,Na,ri,$a,Xt,Jr,oa)}function Ir(Ur,Kr,Na,ri,$a,Xt,Jr,oa){var sa=($a+Jr)*.5,Pi=(Xt+oa)*.5,Hi=Na>=sa,tn=ri>=Pi,wi=tn<<1|Hi;Ur.leaf=!1,Ur=Ur.nodes[wi]||(Ur.nodes[wi]=xn()),Hi?$a=sa:Jr=sa,tn?Xt=Pi:oa=Pi,Dr(Ur,Kr,Na,ri,$a,Xt,Jr,oa)}var ta=xn();if(ta.add=function(Ur){Dr(ta,Ur,+Pe(Ur,++Ie),+De(Ur,Ie),Ke,ct,st,je)},ta.visit=function(Ur){Pn(Ur,ta,Ke,ct,st,je)},ta.find=function(Ur){return rp(ta,Ur[0],Ur[1],Ke,ct,st,je)},Ie=-1,M==null){for(;++IeZ||De>$||Qe=Ht,ur=P>=nr,Dr=ur<<1|cr,Ir=Dr+4;DrP&&(Z=M.slice(P,Z),X[$]?X[$]+=Z:X[++$]=Z),(N=N[0])===(U=U[0])?X[$]?X[$]+=U:X[++$]=U:(X[++$]=null,ae.push({i:$,x:Eo(N,U)})),P=Xf.lastIndex;return P=0&&!(N=e.interpolators[P](y,M)););return N}e.interpolators=[function(y,M){var P=typeof M;return(P==="string"?si.has(M.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(M)?tf:Zo:M instanceof ga?tf:Array.isArray(M)?Yo:P==="object"&&isNaN(M)?ln:Eo)(y,M)}],e.interpolateArray=Yo;function Yo(y,M){var P=[],N=[],U=y.length,Z=M.length,$=Math.min(y.length,M.length),X;for(X=0;X<$;++X)P.push(un(y[X],M[X]));for(;X=0?y.slice(0,M):y,N=M>=0?y.slice(M+1):"in";return P=Sm.get(P)||Xs,N=Wo.get(N)||Me,km(N(P.apply(null,t.call(arguments,1))))};function km(y){return function(M){return M<=0?0:M>=1?1:y(M)}}function js(y){return function(M){return 1-y(1-M)}}function zn(y){return function(M){return .5*(M<.5?y(2*M):2-y(2-2*M))}}function Cm(y){return y*y}function bl(y){return y*y*y}function wl(y){if(y<=0)return 0;if(y>=1)return 1;var M=y*y,P=M*y;return 4*(y<.5?P:3*(y-M)+P-.75)}function gv(y){return function(M){return Math.pow(M,y)}}function Em(y){return 1-Math.cos(y*mr)}function Lm(y){return Math.pow(2,10*(y-1))}function Oc(y){return 1-Math.sqrt(1-y*y)}function Dm(y,M){var P;return arguments.length<2&&(M=.45),arguments.length?P=M/gr*Math.asin(1/y):(y=1,P=M/4),function(N){return 1+y*Math.pow(2,-10*N)*Math.sin((N-P)*gr/M)}}function Pm(y){return y||(y=1.70158),function(M){return M*M*((y+1)*M-y)}}function zm(y){return y<1/2.75?7.5625*y*y:y<2/2.75?7.5625*(y-=1.5/2.75)*y+.75:y<2.5/2.75?7.5625*(y-=2.25/2.75)*y+.9375:7.5625*(y-=2.625/2.75)*y+.984375}e.interpolateHcl=_v;function _v(y,M){y=e.hcl(y),M=e.hcl(M);var P=y.h,N=y.c,U=y.l,Z=M.h-P,$=M.c-N,X=M.l-U;return isNaN($)&&($=0,N=isNaN(N)?M.c:N),isNaN(Z)?(Z=0,P=isNaN(P)?M.h:P):Z>180?Z-=360:Z<-180&&(Z+=360),function(ae){return Ne(P+Z*ae,N+$*ae,U+X*ae)+""}}e.interpolateHsl=Im;function Im(y,M){y=e.hsl(y),M=e.hsl(M);var P=y.h,N=y.s,U=y.l,Z=M.h-P,$=M.s-N,X=M.l-U;return isNaN($)&&($=0,N=isNaN(N)?M.s:N),isNaN(Z)?(Z=0,P=isNaN(P)?M.h:P):Z>180?Z-=360:Z<-180&&(Z+=360),function(ae){return se(P+Z*ae,N+$*ae,U+X*ae)+""}}e.interpolateLab=Rm;function Rm(y,M){y=e.lab(y),M=e.lab(M);var P=y.l,N=y.a,U=y.b,Z=M.l-P,$=M.a-N,X=M.b-U;return function(ae){return Yt(P+Z*ae,N+$*ae,U+X*ae)+""}}e.interpolateRound=xv;function xv(y,M){return M-=y,function(P){return Math.round(y+M*P)}}e.transform=function(y){var M=i.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(P){if(P!=null){M.setAttribute("transform",P);var N=M.transform.baseVal.consolidate()}return new ap(N?N.matrix:wv)})(y)};function ap(y){var M=[y.a,y.b],P=[y.c,y.d],N=bv(M),U=ip(M,P),Z=bv(Fm(P,M,-U))||0;M[0]*P[1]180?M+=360:M-y>180&&(y+=360),N.push({i:P.push(gu(P)+"rotate(",null,")")-2,x:Eo(y,M)})):M&&P.push(gu(P)+"rotate("+M+")")}function op(y,M,P,N){y!==M?N.push({i:P.push(gu(P)+"skewX(",null,")")-2,x:Eo(y,M)}):M&&P.push(gu(P)+"skewX("+M+")")}function sp(y,M,P,N){if(y[0]!==M[0]||y[1]!==M[1]){var U=P.push(gu(P)+"scale(",null,",",null,")");N.push({i:U-4,x:Eo(y[0],M[0])},{i:U-2,x:Eo(y[1],M[1])})}else(M[0]!==1||M[1]!==1)&&P.push(gu(P)+"scale("+M+")")}function lp(y,M){var P=[],N=[];return y=e.transform(y),M=e.transform(M),np(y.translate,M.translate,P,N),qm(y.rotate,M.rotate,P,N),op(y.skew,M.skew,P,N),sp(y.scale,M.scale,P,N),y=M=null,function(U){for(var Z=-1,$=N.length,X;++Z<$;)P[(X=N[Z]).i]=X.x(U);return P.join("")}}function Nm(y,M){return M=(M-=y=+y)||1/M,function(P){return(P-y)/M}}function cs(y,M){return M=(M-=y=+y)||1/M,function(P){return Math.max(0,Math.min(1,(P-y)/M))}}e.layout={},e.layout.bundle=function(){return function(y){for(var M=[],P=-1,N=y.length;++P0?Z=je:(P.c=null,P.t=NaN,P=null,M.end({type:"end",alpha:Z=0})):je>0&&(M.start({type:"start",alpha:Z=je}),P=qc(y.tick)),y):Z},y.start=function(){var je,Ht=Qe.length,nr=lt.length,cr=N[0],ur=N[1],Dr,Ir;for(je=0;je=0;)Z.push(_e=ye[ae]),_e.parent=X,_e.depth=X.depth+1;P&&(X.value=0),X.children=ye}else P&&(X.value=+P.call(N,X,X.depth)||0),delete X.children;return hs(U,function(Pe){var De,Qe;y&&(De=Pe.children)&&De.sort(y),P&&(Qe=Pe.parent)&&(Qe.value+=Pe.value)}),$}return N.sort=function(U){return arguments.length?(y=U,N):y},N.children=function(U){return arguments.length?(M=U,N):M},N.value=function(U){return arguments.length?(P=U,N):P},N.revalue=function(U){return P&&(rf(U,function(Z){Z.children&&(Z.value=0)}),hs(U,function(Z){var $;Z.children||(Z.value=+P.call(N,Z,Z.depth)||0),($=Z.parent)&&($.value+=Z.value)})),U},N};function Sl(y,M){return e.rebind(y,M,"sort","children","value"),y.nodes=y,y.links=cp,y}function rf(y,M){for(var P=[y];(y=P.pop())!=null;)if(M(y),(U=y.children)&&(N=U.length))for(var N,U;--N>=0;)P.push(U[N])}function hs(y,M){for(var P=[y],N=[];(y=P.pop())!=null;)if(N.push(y),($=y.children)&&(Z=$.length))for(var U=-1,Z,$;++UU&&(U=X),N.push(X)}for($=0;$N&&(P=M,N=U);return P}function Ni(y){return y.reduce(Hm,0)}function Hm(y,M){return y+M[1]}e.layout.histogram=function(){var y=!0,M=Number,P=dp,N=Zc;function U(Z,De){for(var X=[],ae=Z.map(M,this),ye=P.call(this,ae,De),_e=N.call(this,ye,ae,De),Pe,De=-1,Qe=ae.length,lt=_e.length-1,Ie=y?1:1/Qe,Ve;++De0)for(De=-1;++De=ye[0]&&Ve<=ye[1]&&(Pe=X[e.bisect(_e,Ve,1,lt)-1],Pe.y+=Ie,Pe.push(Z[De]));return X}return U.value=function(Z){return arguments.length?(M=Z,U):M},U.range=function(Z){return arguments.length?(P=fa(Z),U):P},U.bins=function(Z){return arguments.length?(N=typeof Z=="number"?function($){return kv($,Z)}:fa(Z),U):N},U.frequency=function(Z){return arguments.length?(y=!!Z,U):y},U};function Zc(y,M){return kv(y,Math.ceil(Math.log(M.length)/Math.LN2+1))}function kv(y,M){for(var P=-1,N=+y[0],U=(y[1]-N)/M,Z=[];++P<=M;)Z[P]=U*P+N;return Z}function dp(y){return[e.min(y),e.max(y)]}e.layout.pack=function(){var y=e.layout.hierarchy().sort(nf),M=0,P=[1,1],N;function U(Z,$){var X=y.call(this,Z,$),ae=X[0],ye=P[0],_e=P[1],Pe=N==null?Math.sqrt:typeof N=="function"?N:function(){return N};if(ae.x=ae.y=0,hs(ae,function(Qe){Qe.r=+Pe(Qe.value)}),hs(ae,Jf),M){var De=M*(N?1:Math.max(2*ae.r/ye,2*ae.r/_e))/2;hs(ae,function(Qe){Qe.r+=De}),hs(ae,Jf),hs(ae,function(Qe){Qe.r-=De})}return Cl(ae,ye/2,_e/2,N?1:1/Math.max(2*ae.r/ye,2*ae.r/_e)),X}return U.size=function(Z){return arguments.length?(P=Z,U):P},U.radius=function(Z){return arguments.length?(N=Z==null||typeof Z=="function"?Z:+Z,U):N},U.padding=function(Z){return arguments.length?(M=+Z,U):M},Sl(U,y)};function nf(y,M){return y.value-M.value}function _u(y,M){var P=y._pack_next;y._pack_next=M,M._pack_prev=y,M._pack_next=P,P._pack_prev=M}function Cv(y,M){y._pack_next=M,M._pack_prev=y}function bn(y,M){var P=M.x-y.x,N=M.y-y.y,U=y.r+M.r;return .999*U*U>P*P+N*N}function Jf(y){if(!(M=y.children)||!(De=M.length))return;var M,P=1/0,N=-1/0,U=1/0,Z=-1/0,$,X,ae,ye,_e,Pe,De;function Qe(je){P=Math.min(je.x-je.r,P),N=Math.max(je.x+je.r,N),U=Math.min(je.y-je.r,U),Z=Math.max(je.y+je.r,Z)}if(M.forEach(Js),$=M[0],$.x=-$.r,$.y=0,Qe($),De>1&&(X=M[1],X.x=X.r,X.y=0,Qe(X),De>2))for(ae=M[2],El($,X,ae),Qe(ae),_u($,ae),$._pack_prev=ae,_u(ae,X),X=$._pack_next,ye=3;yeVe.x&&(Ve=Ht),Ht.depth>Ke.depth&&(Ke=Ht)});var ct=M(Ie,Ve)/2-Ie.x,st=P[0]/(Ve.x+M(Ve,Ie)/2+ct),je=P[1]/(Ke.depth||1);rf(Qe,function(Ht){Ht.x=(Ht.x+ct)*st,Ht.y=Ht.depth*je})}return De}function Z(_e){for(var Pe={A:null,children:[_e]},De=[Pe],Qe;(Qe=De.pop())!=null;)for(var lt=Qe.children,Ie,Ve=0,Ke=lt.length;Ve0&&(Ll(Gm(Ie,_e,De),_e,Ht),Ke+=Ht,ct+=Ht),st+=Ie.m,Ke+=Qe.m,je+=Ve.m,ct+=lt.m;Ie&&!Ms(lt)&&(lt.t=Ie,lt.m+=st-ct),Qe&&!As(Ve)&&(Ve.t=Qe,Ve.m+=Ke-je,De=_e)}return De}function ye(_e){_e.x*=P[0],_e.y=_e.depth*P[1]}return U.separation=function(_e){return arguments.length?(M=_e,U):M},U.size=function(_e){return arguments.length?(N=(P=_e)==null?ye:null,U):N?null:P},U.nodeSize=function(_e){return arguments.length?(N=(P=_e)==null?null:ye,U):N?P:null},Sl(U,y)};function Ks(y,M){return y.parent==M.parent?1:2}function As(y){var M=y.children;return M.length?M[0]:y.t}function Ms(y){var M=y.children,P;return(P=M.length)?M[P-1]:y.t}function Ll(y,M,P){var N=P/(M.i-y.i);M.c-=N,M.s+=P,y.c+=N,M.z+=P,M.m+=P}function pp(y){for(var M=0,P=0,N=y.children,U=N.length,Z;--U>=0;)Z=N[U],Z.z+=M,Z.m+=M,M+=Z.s+(P+=Z.c)}function Gm(y,M,P){return y.a.parent===M.parent?y.a:P}e.layout.cluster=function(){var y=e.layout.hierarchy().sort(null).value(null),M=Ks,P=[1,1],N=!1;function U(Z,$){var X=y.call(this,Z,$),ae=X[0],ye,_e=0;hs(ae,function(Ie){var Ve=Ie.children;Ve&&Ve.length?(Ie.x=Ym(Ve),Ie.y=Zm(Ve)):(Ie.x=ye?_e+=M(Ie,ye):0,Ie.y=0,ye=Ie)});var Pe=mp(ae),De=yp(ae),Qe=Pe.x-M(Pe,De)/2,lt=De.x+M(De,Pe)/2;return hs(ae,N?function(Ie){Ie.x=(Ie.x-ae.x)*P[0],Ie.y=(ae.y-Ie.y)*P[1]}:function(Ie){Ie.x=(Ie.x-Qe)/(lt-Qe)*P[0],Ie.y=(1-(ae.y?Ie.y/ae.y:1))*P[1]}),X}return U.separation=function(Z){return arguments.length?(M=Z,U):M},U.size=function(Z){return arguments.length?(N=(P=Z)==null,U):N?null:P},U.nodeSize=function(Z){return arguments.length?(N=(P=Z)!=null,U):N?P:null},Sl(U,y)};function Zm(y){return 1+e.max(y,function(M){return M.y})}function Ym(y){return y.reduce(function(M,P){return M+P.x},0)/y.length}function mp(y){var M=y.children;return M&&M.length?mp(M[0]):y}function yp(y){var M=y.children,P;return M&&(P=M.length)?yp(M[P-1]):y}e.layout.treemap=function(){var y=e.layout.hierarchy(),M=Math.round,P=[1,1],N=null,U=Ev,Z=!1,$,X="squarify",ae=.5*(1+Math.sqrt(5));function ye(Ie,Ve){for(var Ke=-1,ct=Ie.length,st,je;++Ke0;)ct.push(je=st[ur-1]),ct.area+=je.area,X!=="squarify"||(nr=De(ct,cr))<=Ht?(st.pop(),Ht=nr):(ct.area-=ct.pop().area,Qe(ct,cr,Ke,!1),cr=Math.min(Ke.dx,Ke.dy),ct.length=ct.area=0,Ht=1/0);ct.length&&(Qe(ct,cr,Ke,!0),ct.length=ct.area=0),Ve.forEach(_e)}}function Pe(Ie){var Ve=Ie.children;if(Ve&&Ve.length){var Ke=U(Ie),ct=Ve.slice(),st,je=[];for(ye(ct,Ke.dx*Ke.dy/Ie.value),je.area=0;st=ct.pop();)je.push(st),je.area+=st.area,st.z!=null&&(Qe(je,st.z?Ke.dx:Ke.dy,Ke,!ct.length),je.length=je.area=0);Ve.forEach(Pe)}}function De(Ie,Ve){for(var Ke=Ie.area,ct,st=0,je=1/0,Ht=-1,nr=Ie.length;++Htst&&(st=ct));return Ke*=Ke,Ve*=Ve,Ke?Math.max(Ve*st*ae/Ke,Ke/(Ve*je*ae)):1/0}function Qe(Ie,Ve,Ke,ct){var st=-1,je=Ie.length,Ht=Ke.x,nr=Ke.y,cr=Ve?M(Ie.area/Ve):0,ur;if(Ve==Ke.dx){for((ct||cr>Ke.dy)&&(cr=Ke.dy);++stKe.dx)&&(cr=Ke.dx);++st1);return y+M*N*Math.sqrt(-2*Math.log(Z)/Z)}},logNormal:function(){var y=e.random.normal.apply(e,arguments);return function(){return Math.exp(y())}},bates:function(y){var M=e.random.irwinHall(y);return function(){return M()/y}},irwinHall:function(y){return function(){for(var M=0,P=0;P2?Wm:gp,ye=N?cs:Nm;return U=ae(y,M,ye,P),Z=ae(M,y,ye,un),X}function X(ae){return U(ae)}return X.invert=function(ae){return Z(ae)},X.domain=function(ae){return arguments.length?(y=ae.map(Number),$()):y},X.range=function(ae){return arguments.length?(M=ae,$()):M},X.rangeRound=function(ae){return X.range(ae).interpolate(xv)},X.clamp=function(ae){return arguments.length?(N=ae,$()):N},X.interpolate=function(ae){return arguments.length?(P=ae,$()):P},X.ticks=function(ae){return zv(y,ae)},X.tickFormat=function(ae,ye){return d3_scale_linearTickFormat(y,ae,ye)},X.nice=function(ae){return wp(y,ae),$()},X.copy=function(){return xp(y,M,P,N)},$()}function bp(y,M){return e.rebind(y,M,"range","rangeRound","interpolate","clamp")}function wp(y,M){return Dv(y,_p(Pv(y,M)[2])),Dv(y,_p(Pv(y,M)[2])),y}function Pv(y,M){M==null&&(M=10);var P=Kf(y),N=P[1]-P[0],U=Math.pow(10,Math.floor(Math.log(N/M)/Math.LN10)),Z=M/N*U;return Z<=.15?U*=10:Z<=.35?U*=5:Z<=.75&&(U*=2),P[0]=Math.ceil(P[0]/U)*U,P[1]=Math.floor(P[1]/U)*U+U*.5,P[2]=U,P}function zv(y,M){return e.range.apply(e,Pv(y,M))}var xu={s:1,g:1,p:1,r:1,e:1};function Dl(y){return-Math.floor(Math.log(y)/Math.LN10+.01)}function Qf(y,M){var P=Dl(M[2]);return y in xu?Math.abs(P-Dl(Math.max(I(M[0]),I(M[1]))))+ +(y!=="e"):P-(y==="%")*2}e.scale.log=function(){return Iv(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Iv(y,M,P,N){function U(X){return(P?Math.log(X<0?0:X):-Math.log(X>0?0:-X))/Math.log(M)}function Z(X){return P?Math.pow(M,X):-Math.pow(M,-X)}function $(X){return y(U(X))}return $.invert=function(X){return Z(y.invert(X))},$.domain=function(X){return arguments.length?(P=X[0]>=0,y.domain((N=X.map(Number)).map(U)),$):N},$.base=function(X){return arguments.length?(M=+X,y.domain(N.map(U)),$):M},$.nice=function(){var X=Dv(N.map(U),P?Math:Wc);return y.domain(X),N=X.map(Z),$},$.ticks=function(){var X=Kf(N),ae=[],ye=X[0],_e=X[1],Pe=Math.floor(U(ye)),De=Math.ceil(U(_e)),Qe=M%1?2:M;if(isFinite(De-Pe)){if(P){for(;Pe0;lt--)ae.push(Z(Pe)*lt);for(Pe=0;ae[Pe]_e;De--);ae=ae.slice(Pe,De)}return ae},$.copy=function(){return Iv(y.copy(),M,P,N)},bp($,y)}var Wc={floor:function(y){return-Math.ceil(-y)},ceil:function(y){return-Math.floor(-y)}};e.scale.pow=function(){return Xc(e.scale.linear(),1,[0,1])};function Xc(y,M,P){var N=jc(M),U=jc(1/M);function Z($){return y(N($))}return Z.invert=function($){return U(y.invert($))},Z.domain=function($){return arguments.length?(y.domain((P=$.map(Number)).map(N)),Z):P},Z.ticks=function($){return zv(P,$)},Z.tickFormat=function($,X){return d3_scale_linearTickFormat(P,$,X)},Z.nice=function($){return Z.domain(wp(P,$))},Z.exponent=function($){return arguments.length?(N=jc(M=$),U=jc(1/M),y.domain(P.map(N)),Z):M},Z.copy=function(){return Xc(y.copy(),M,P)},bp(Z,y)}function jc(y){return function(M){return M<0?-Math.pow(-M,y):Math.pow(M,y)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Pl([],{t:"range",a:[[]]})};function Pl(y,M){var P,N,U;function Z(X){return N[((P.get(X)||(M.t==="range"?P.set(X,y.push(X)):NaN))-1)%N.length]}function $(X,ae){return e.range(y.length).map(function(ye){return X+ae*ye})}return Z.domain=function(X){if(!arguments.length)return y;y=[],P=new z;for(var ae=-1,ye=X.length,_e;++ae0?P[Z-1]:y[0],ZDe?0:1;if(_e=xr)return ae(_e,lt)+(ye?ae(ye,1-lt):"")+"Z";var Ie,Ve,Ke,ct,st=0,je=0,Ht,nr,cr,ur,Dr,Ir,ta,Ur,Kr=[];if((ct=(+$.apply(this,arguments)||0)/2)&&(Ke=N===zl?Math.sqrt(ye*ye+_e*_e):+N.apply(this,arguments),lt||(je*=-1),_e&&(je=qi(Ke/_e*Math.sin(ct))),ye&&(st=qi(Ke/ye*Math.sin(ct)))),_e){Ht=_e*Math.cos(Pe+je),nr=_e*Math.sin(Pe+je),cr=_e*Math.cos(De-je),ur=_e*Math.sin(De-je);var Na=Math.abs(De-Pe-2*je)<=dt?0:1;if(je&&Il(Ht,nr,cr,ur)===lt^Na){var ri=(Pe+De)/2;Ht=_e*Math.cos(ri),nr=_e*Math.sin(ri),cr=ur=null}}else Ht=nr=0;if(ye){Dr=ye*Math.cos(De-st),Ir=ye*Math.sin(De-st),ta=ye*Math.cos(Pe+st),Ur=ye*Math.sin(Pe+st);var $a=Math.abs(Pe-De+2*st)<=dt?0:1;if(st&&Il(Dr,Ir,ta,Ur)===1-lt^$a){var Xt=(Pe+De)/2;Dr=ye*Math.cos(Xt),Ir=ye*Math.sin(Xt),ta=Ur=null}}else Dr=Ir=0;if(Qe>Ge&&(Ie=Math.min(Math.abs(_e-ye)/2,+P.apply(this,arguments)))>.001){Ve=ye<_e^lt?0:1;var Jr=Ie,oa=Ie;if(Qe0?0:1}function wu(y,M,P,N,U){var Z=y[0]-M[0],$=y[1]-M[1],X=(U?N:-N)/Math.sqrt(Z*Z+$*$),ae=X*$,ye=-X*Z,_e=y[0]+ae,Pe=y[1]+ye,De=M[0]+ae,Qe=M[1]+ye,lt=(_e+De)/2,Ie=(Pe+Qe)/2,Ve=De-_e,Ke=Qe-Pe,ct=Ve*Ve+Ke*Ke,st=P-N,je=_e*Qe-De*Pe,Ht=(Ke<0?-1:1)*Math.sqrt(Math.max(0,st*st*ct-je*je)),nr=(je*Ke-Ve*Ht)/ct,cr=(-je*Ve-Ke*Ht)/ct,ur=(je*Ke+Ve*Ht)/ct,Dr=(-je*Ve+Ke*Ht)/ct,Ir=nr-lt,ta=cr-Ie,Ur=ur-lt,Kr=Dr-Ie;return Ir*Ir+ta*ta>Ur*Ur+Kr*Kr&&(nr=ur,cr=Dr),[[nr-ae,cr-ye],[nr*P/st,cr*P/st]]}function ec(){return!0}function Ss(y){var M=vu,P=ml,N=ec,U=Xo,Z=U.key,$=.7;function X(ae){var ye=[],_e=[],Pe=-1,De=ae.length,Qe,lt=fa(M),Ie=fa(P);function Ve(){ye.push("M",U(y(_e),$))}for(;++Pe1?y.join("L"):y+"Z"}function lf(y){return y.join("L")+"Z"}function jm(y){for(var M=0,P=y.length,N=y[0],U=[N[0],",",N[1]];++M1&&U.push("H",N[0]),U.join("")}function uf(y){for(var M=0,P=y.length,N=y[0],U=[N[0],",",N[1]];++M1){X=M[1],Z=y[ae],ae++,N+="C"+(U[0]+$[0])+","+(U[1]+$[1])+","+(Z[0]-X[0])+","+(Z[1]-X[1])+","+Z[0]+","+Z[1];for(var ye=2;ye9&&(Z=P*3/Math.sqrt(Z),$[X]=Z*N,$[X+1]=Z*U));for(X=-1;++X<=ae;)Z=(y[Math.min(ae,X+1)][0]-y[Math.max(0,X-1)][0])/(6*(1+$[X]*$[X])),M.push([Z||0,$[X]*Z||0]);return M}function Lp(y){return y.length<3?Xo(y):y[0]+ff(y,$m(y))}e.svg.line.radial=function(){var y=Ss(Bv);return y.radius=y.x,delete y.x,y.angle=y.y,delete y.y,y};function Bv(y){for(var M,P=-1,N=y.length,U,Z;++Pdt)+",1 "+Pe}function ye(_e,Pe,De,Qe){return"Q 0,0 "+Qe}return Z.radius=function(_e){return arguments.length?(P=fa(_e),Z):P},Z.source=function(_e){return arguments.length?(y=fa(_e),Z):y},Z.target=function(_e){return arguments.length?(M=fa(_e),Z):M},Z.startAngle=function(_e){return arguments.length?(N=fa(_e),Z):N},Z.endAngle=function(_e){return arguments.length?(U=fa(_e),Z):U},Z};function Dp(y){return y.radius}e.svg.diagonal=function(){var y=eh,M=Ov,P=Uv;function N(U,Z){var $=y.call(this,U,Z),X=M.call(this,U,Z),ae=($.y+X.y)/2,ye=[$,{x:$.x,y:ae},{x:X.x,y:ae},X];return ye=ye.map(P),"M"+ye[0]+"C"+ye[1]+" "+ye[2]+" "+ye[3]}return N.source=function(U){return arguments.length?(y=fa(U),N):y},N.target=function(U){return arguments.length?(M=fa(U),N):M},N.projection=function(U){return arguments.length?(P=U,N):P},N};function Uv(y){return[y.x,y.y]}e.svg.diagonal.radial=function(){var y=e.svg.diagonal(),M=Uv,P=y.projection;return y.projection=function(N){return arguments.length?P(Pp(M=N)):M},y};function Pp(y){return function(){var M=y.apply(this,arguments),P=M[0],N=M[1]-mr;return[P*Math.cos(N),P*Math.sin(N)]}}e.svg.symbol=function(){var y=df,M=zp;function P(N,U){return(rh.get(y.call(this,N,U))||th)(M.call(this,N,U))}return P.type=function(N){return arguments.length?(y=fa(N),P):y},P.size=function(N){return arguments.length?(M=fa(N),P):M},P};function zp(){return 64}function df(){return"circle"}function th(y){var M=Math.sqrt(y/dt);return"M0,"+M+"A"+M+","+M+" 0 1,1 0,"+-M+"A"+M+","+M+" 0 1,1 0,"+M+"Z"}var rh=e.map({circle:th,cross:function(y){var M=Math.sqrt(y/5)/2;return"M"+-3*M+","+-M+"H"+-M+"V"+-3*M+"H"+M+"V"+-M+"H"+3*M+"V"+M+"H"+M+"V"+3*M+"H"+-M+"V"+M+"H"+-3*M+"Z"},diamond:function(y){var M=Math.sqrt(y/(2*Vv)),P=M*Vv;return"M0,"+-M+"L"+P+",0 0,"+M+" "+-P+",0Z"},square:function(y){var M=Math.sqrt(y)/2;return"M"+-M+","+-M+"L"+M+","+-M+" "+M+","+M+" "+-M+","+M+"Z"},"triangle-down":function(y){var M=Math.sqrt(y/Au),P=M*Au/2;return"M0,"+P+"L"+M+","+-P+" "+-M+","+-P+"Z"},"triangle-up":function(y){var M=Math.sqrt(y/Au),P=M*Au/2;return"M0,"+-P+"L"+M+","+P+" "+-M+","+P+"Z"}});e.svg.symbolTypes=rh.keys();var Au=Math.sqrt(3),Vv=Math.tan(30*Hr);pt.transition=function(y){for(var M=so||++Di,P=fi(y),N=[],U,Z,$=Cs||{time:Date.now(),ease:wl,delay:0,duration:250},X=-1,ae=this.length;++X0;)Pe[--ct].call(y,Ke);if(Ve>=1)return $.event&&$.event.end.call(y,y.__data__,M),--Z.count?delete Z[N]:delete y[P],1}$||(X=U.time,ae=qc(De,0,X),$=Z[N]={tween:new z,time:X,timer:ae,delay:U.delay,duration:U.duration,ease:U.ease,index:M},U=null,++Z.count)}e.svg.axis=function(){var y=e.scale.linear(),M=Fl,P=6,N=6,U=3,Z=[10],$=null,X;function ae(ye){ye.each(function(){var _e=e.select(this),Pe=this.__chart__||y,De=this.__chart__=y.copy(),Qe=$==null?De.ticks?De.ticks.apply(De,Z):De.domain():$,lt=X==null?De.tickFormat?De.tickFormat.apply(De,Z):Me:X,Ie=_e.selectAll(".tick").data(Qe,De),Ve=Ie.enter().insert("g",".domain").attr("class","tick").style("opacity",Ge),Ke=e.transition(Ie.exit()).style("opacity",Ge).remove(),ct=e.transition(Ie.order()).style("opacity",1),st=Math.max(P,0)+U,je,Ht=Yc(De),nr=_e.selectAll(".domain").data([0]),cr=(nr.enter().append("path").attr("class","domain"),e.transition(nr));Ve.append("line"),Ve.append("text");var ur=Ve.select("line"),Dr=ct.select("line"),Ir=Ie.select("text").text(lt),ta=Ve.select("text"),Ur=ct.select("text"),Kr=M==="top"||M==="left"?-1:1,Na,ri,$a,Xt;if(M==="bottom"||M==="top"?(je=mf,Na="x",$a="y",ri="x2",Xt="y2",Ir.attr("dy",Kr<0?"0em":".71em").style("text-anchor","middle"),cr.attr("d","M"+Ht[0]+","+Kr*N+"V0H"+Ht[1]+"V"+Kr*N)):(je=ql,Na="y",$a="x",ri="y2",Xt="x2",Ir.attr("dy",".32em").style("text-anchor",Kr<0?"end":"start"),cr.attr("d","M"+Kr*N+","+Ht[0]+"H0V"+Ht[1]+"H"+Kr*N)),ur.attr(Xt,Kr*P),ta.attr($a,Kr*st),Dr.attr(ri,0).attr(Xt,Kr*P),Ur.attr(Na,0).attr($a,Kr*st),De.rangeBand){var Jr=De,oa=Jr.rangeBand()/2;Pe=De=function(sa){return Jr(sa)+oa}}else Pe.rangeBand?Pe=De:Ke.call(je,De,Pe);Ve.call(je,Pe,De),ct.call(je,De,De)})}return ae.scale=function(ye){return arguments.length?(y=ye,ae):y},ae.orient=function(ye){return arguments.length?(M=ye in rc?ye+"":Fl,ae):M},ae.ticks=function(){return arguments.length?(Z=r(arguments),ae):Z},ae.tickValues=function(ye){return arguments.length?($=ye,ae):$},ae.tickFormat=function(ye){return arguments.length?(X=ye,ae):X},ae.tickSize=function(ye){var _e=arguments.length;return _e?(P=+ye,N=+arguments[_e-1],ae):P},ae.innerTickSize=function(ye){return arguments.length?(P=+ye,ae):P},ae.outerTickSize=function(ye){return arguments.length?(N=+ye,ae):N},ae.tickPadding=function(ye){return arguments.length?(U=+ye,ae):U},ae.tickSubdivide=function(){return arguments.length&&ae},ae};var Fl="bottom",rc={top:1,right:1,bottom:1,left:1};function mf(y,M,P){y.attr("transform",function(N){var U=M(N);return"translate("+(isFinite(U)?U:P(N))+",0)"})}function ql(y,M,P){y.attr("transform",function(N){var U=M(N);return"translate(0,"+(isFinite(U)?U:P(N))+")"})}e.svg.brush=function(){var y=it(_e,"brushstart","brush","brushend"),M=null,P=null,N=[0,0],U=[0,0],Z,$,X=!0,ae=!0,ye=nh[0];function _e(Ie){Ie.each(function(){var Ve=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",lt).on("touchstart.brush",lt),Ke=Ve.selectAll(".background").data([0]);Ke.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Ve.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var ct=Ve.selectAll(".resize").data(ye,Me);ct.exit().remove(),ct.enter().append("g").attr("class",function(nr){return"resize "+nr}).style("cursor",function(nr){return Es[nr]}).append("rect").attr("x",function(nr){return/[ew]$/.test(nr)?-3:null}).attr("y",function(nr){return/^[ns]/.test(nr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),ct.style("display",_e.empty()?"none":null);var st=e.transition(Ve),je=e.transition(Ke),Ht;M&&(Ht=Yc(M),je.attr("x",Ht[0]).attr("width",Ht[1]-Ht[0]),De(st)),P&&(Ht=Yc(P),je.attr("y",Ht[0]).attr("height",Ht[1]-Ht[0]),Qe(st)),Pe(st)})}_e.event=function(Ie){Ie.each(function(){var Ve=y.of(this,arguments),Ke={x:N,y:U,i:Z,j:$},ct=this.__chart__||Ke;this.__chart__=Ke,so?e.select(this).transition().each("start.brush",function(){Z=ct.i,$=ct.j,N=ct.x,U=ct.y,Ve({type:"brushstart"})}).tween("brush:brush",function(){var st=Yo(N,Ke.x),je=Yo(U,Ke.y);return Z=$=null,function(Ht){N=Ke.x=st(Ht),U=Ke.y=je(Ht),Ve({type:"brush",mode:"resize"})}}).each("end.brush",function(){Z=Ke.i,$=Ke.j,Ve({type:"brush",mode:"resize"}),Ve({type:"brushend"})}):(Ve({type:"brushstart"}),Ve({type:"brush",mode:"resize"}),Ve({type:"brushend"}))})};function Pe(Ie){Ie.selectAll(".resize").attr("transform",function(Ve){return"translate("+N[+/e$/.test(Ve)]+","+U[+/^s/.test(Ve)]+")"})}function De(Ie){Ie.select(".extent").attr("x",N[0]),Ie.selectAll(".extent,.n>rect,.s>rect").attr("width",N[1]-N[0])}function Qe(Ie){Ie.select(".extent").attr("y",U[0]),Ie.selectAll(".extent,.e>rect,.w>rect").attr("height",U[1]-U[0])}function lt(){var Ie=this,Ve=e.select(e.event.target),Ke=y.of(Ie,arguments),ct=e.select(Ie),st=Ve.datum(),je=!/^(n|s)$/.test(st)&&M,Ht=!/^(e|w)$/.test(st)&&P,nr=Ve.classed("extent"),cr=zr(Ie),ur,Dr=e.mouse(Ie),Ir,ta=e.select(s(Ie)).on("keydown.brush",Na).on("keyup.brush",ri);if(e.event.changedTouches?ta.on("touchmove.brush",$a).on("touchend.brush",Jr):ta.on("mousemove.brush",$a).on("mouseup.brush",Jr),ct.interrupt().selectAll("*").interrupt(),nr)Dr[0]=N[0]-Dr[0],Dr[1]=U[0]-Dr[1];else if(st){var Ur=+/w$/.test(st),Kr=+/^n/.test(st);Ir=[N[1-Ur]-Dr[0],U[1-Kr]-Dr[1]],Dr[0]=N[Ur],Dr[1]=U[Kr]}else e.event.altKey&&(ur=Dr.slice());ct.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Ve.style("cursor")),Ke({type:"brushstart"}),$a();function Na(){e.event.keyCode==32&&(nr||(ur=null,Dr[0]-=N[1],Dr[1]-=U[1],nr=2),$e())}function ri(){e.event.keyCode==32&&nr==2&&(Dr[0]+=N[1],Dr[1]+=U[1],nr=0,$e())}function $a(){var oa=e.mouse(Ie),sa=!1;Ir&&(oa[0]+=Ir[0],oa[1]+=Ir[1]),nr||(e.event.altKey?(ur||(ur=[(N[0]+N[1])/2,(U[0]+U[1])/2]),Dr[0]=N[+(oa[0]{(function(e,t){typeof W1=="object"&&typeof x7!="undefined"?t(W1):(e=e||self,t(e.d3=e.d3||{}))})(W1,function(e){"use strict";var t=new Date,r=new Date;function i(Be,ft,or,Cr){function Sr(Oe){return Be(Oe=arguments.length===0?new Date:new Date(+Oe)),Oe}return Sr.floor=function(Oe){return Be(Oe=new Date(+Oe)),Oe},Sr.ceil=function(Oe){return Be(Oe=new Date(Oe-1)),ft(Oe,1),Be(Oe),Oe},Sr.round=function(Oe){var gt=Sr(Oe),qt=Sr.ceil(Oe);return Oe-gt0))return Qt;do Qt.push(Vt=new Date(+Oe)),ft(Oe,qt),Be(Oe);while(Vt=gt)for(;Be(gt),!Oe(gt);)gt.setTime(gt-1)},function(gt,qt){if(gt>=gt)if(qt<0)for(;++qt<=0;)for(;ft(gt,-1),!Oe(gt););else for(;--qt>=0;)for(;ft(gt,1),!Oe(gt););})},or&&(Sr.count=function(Oe,gt){return t.setTime(+Oe),r.setTime(+gt),Be(t),Be(r),Math.floor(or(t,r))},Sr.every=function(Oe){return Oe=Math.floor(Oe),!isFinite(Oe)||!(Oe>0)?null:Oe>1?Sr.filter(Cr?function(gt){return Cr(gt)%Oe===0}:function(gt){return Sr.count(0,gt)%Oe===0}):Sr}),Sr}var a=i(function(){},function(Be,ft){Be.setTime(+Be+ft)},function(Be,ft){return ft-Be});a.every=function(Be){return Be=Math.floor(Be),!isFinite(Be)||!(Be>0)?null:Be>1?i(function(ft){ft.setTime(Math.floor(ft/Be)*Be)},function(ft,or){ft.setTime(+ft+or*Be)},function(ft,or){return(or-ft)/Be}):a};var s=a.range,l=1e3,f=6e4,h=36e5,v=864e5,m=6048e5,_=i(function(Be){Be.setTime(Be-Be.getMilliseconds())},function(Be,ft){Be.setTime(+Be+ft*l)},function(Be,ft){return(ft-Be)/l},function(Be){return Be.getUTCSeconds()}),T=_.range,S=i(function(Be){Be.setTime(Be-Be.getMilliseconds()-Be.getSeconds()*l)},function(Be,ft){Be.setTime(+Be+ft*f)},function(Be,ft){return(ft-Be)/f},function(Be){return Be.getMinutes()}),C=S.range,D=i(function(Be){Be.setTime(Be-Be.getMilliseconds()-Be.getSeconds()*l-Be.getMinutes()*f)},function(Be,ft){Be.setTime(+Be+ft*h)},function(Be,ft){return(ft-Be)/h},function(Be){return Be.getHours()}),E=D.range,I=i(function(Be){Be.setHours(0,0,0,0)},function(Be,ft){Be.setDate(Be.getDate()+ft)},function(Be,ft){return(ft-Be-(ft.getTimezoneOffset()-Be.getTimezoneOffset())*f)/v},function(Be){return Be.getDate()-1}),B=I.range;function q(Be){return i(function(ft){ft.setDate(ft.getDate()-(ft.getDay()+7-Be)%7),ft.setHours(0,0,0,0)},function(ft,or){ft.setDate(ft.getDate()+or*7)},function(ft,or){return(or-ft-(or.getTimezoneOffset()-ft.getTimezoneOffset())*f)/m})}var z=q(0),O=q(1),H=q(2),V=q(3),W=q(4),J=q(5),te=q(6),ne=z.range,oe=O.range,fe=H.range,de=V.range,Me=W.range,Se=J.range,Ae=te.range,we=i(function(Be){Be.setDate(1),Be.setHours(0,0,0,0)},function(Be,ft){Be.setMonth(Be.getMonth()+ft)},function(Be,ft){return ft.getMonth()-Be.getMonth()+(ft.getFullYear()-Be.getFullYear())*12},function(Be){return Be.getMonth()}),Te=we.range,Ce=i(function(Be){Be.setMonth(0,1),Be.setHours(0,0,0,0)},function(Be,ft){Be.setFullYear(Be.getFullYear()+ft)},function(Be,ft){return ft.getFullYear()-Be.getFullYear()},function(Be){return Be.getFullYear()});Ce.every=function(Be){return!isFinite(Be=Math.floor(Be))||!(Be>0)?null:i(function(ft){ft.setFullYear(Math.floor(ft.getFullYear()/Be)*Be),ft.setMonth(0,1),ft.setHours(0,0,0,0)},function(ft,or){ft.setFullYear(ft.getFullYear()+or*Be)})};var Le=Ce.range,$e=i(function(Be){Be.setUTCSeconds(0,0)},function(Be,ft){Be.setTime(+Be+ft*f)},function(Be,ft){return(ft-Be)/f},function(Be){return Be.getUTCMinutes()}),ot=$e.range,it=i(function(Be){Be.setUTCMinutes(0,0,0)},function(Be,ft){Be.setTime(+Be+ft*h)},function(Be,ft){return(ft-Be)/h},function(Be){return Be.getUTCHours()}),bt=it.range,We=i(function(Be){Be.setUTCHours(0,0,0,0)},function(Be,ft){Be.setUTCDate(Be.getUTCDate()+ft)},function(Be,ft){return(ft-Be)/v},function(Be){return Be.getUTCDate()-1}),Et=We.range;function nt(Be){return i(function(ft){ft.setUTCDate(ft.getUTCDate()-(ft.getUTCDay()+7-Be)%7),ft.setUTCHours(0,0,0,0)},function(ft,or){ft.setUTCDate(ft.getUTCDate()+or*7)},function(ft,or){return(or-ft)/m})}var vt=nt(0),xt=nt(1),pt=nt(2),ve=nt(3),ze=nt(4),pe=nt(5),at=nt(6),yt=vt.range,Xe=xt.range,Ft=pt.range,Lt=ve.range,Tt=ze.range,It=pe.range,Gt=at.range,Ct=i(function(Be){Be.setUTCDate(1),Be.setUTCHours(0,0,0,0)},function(Be,ft){Be.setUTCMonth(Be.getUTCMonth()+ft)},function(Be,ft){return ft.getUTCMonth()-Be.getUTCMonth()+(ft.getUTCFullYear()-Be.getUTCFullYear())*12},function(Be){return Be.getUTCMonth()}),Mt=Ct.range,Ut=i(function(Be){Be.setUTCMonth(0,1),Be.setUTCHours(0,0,0,0)},function(Be,ft){Be.setUTCFullYear(Be.getUTCFullYear()+ft)},function(Be,ft){return ft.getUTCFullYear()-Be.getUTCFullYear()},function(Be){return Be.getUTCFullYear()});Ut.every=function(Be){return!isFinite(Be=Math.floor(Be))||!(Be>0)?null:i(function(ft){ft.setUTCFullYear(Math.floor(ft.getUTCFullYear()/Be)*Be),ft.setUTCMonth(0,1),ft.setUTCHours(0,0,0,0)},function(ft,or){ft.setUTCFullYear(ft.getUTCFullYear()+or*Be)})};var Ot=Ut.range;e.timeDay=I,e.timeDays=B,e.timeFriday=J,e.timeFridays=Se,e.timeHour=D,e.timeHours=E,e.timeInterval=i,e.timeMillisecond=a,e.timeMilliseconds=s,e.timeMinute=S,e.timeMinutes=C,e.timeMonday=O,e.timeMondays=oe,e.timeMonth=we,e.timeMonths=Te,e.timeSaturday=te,e.timeSaturdays=Ae,e.timeSecond=_,e.timeSeconds=T,e.timeSunday=z,e.timeSundays=ne,e.timeThursday=W,e.timeThursdays=Me,e.timeTuesday=H,e.timeTuesdays=fe,e.timeWednesday=V,e.timeWednesdays=de,e.timeWeek=z,e.timeWeeks=ne,e.timeYear=Ce,e.timeYears=Le,e.utcDay=We,e.utcDays=Et,e.utcFriday=pe,e.utcFridays=It,e.utcHour=it,e.utcHours=bt,e.utcMillisecond=a,e.utcMilliseconds=s,e.utcMinute=$e,e.utcMinutes=ot,e.utcMonday=xt,e.utcMondays=Xe,e.utcMonth=Ct,e.utcMonths=Mt,e.utcSaturday=at,e.utcSaturdays=Gt,e.utcSecond=_,e.utcSeconds=T,e.utcSunday=vt,e.utcSundays=yt,e.utcThursday=ze,e.utcThursdays=Tt,e.utcTuesday=pt,e.utcTuesdays=Ft,e.utcWednesday=ve,e.utcWednesdays=Lt,e.utcWeek=vt,e.utcWeeks=yt,e.utcYear=Ut,e.utcYears=Ot,Object.defineProperty(e,"__esModule",{value:!0})})});var s0=me((X1,b7)=>{(function(e,t){typeof X1=="object"&&typeof b7!="undefined"?t(X1,q3()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(X1,function(e,t){"use strict";function r(Fe){if(0<=Fe.y&&Fe.y<100){var Ge=new Date(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L);return Ge.setFullYear(Fe.y),Ge}return new Date(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L)}function i(Fe){if(0<=Fe.y&&Fe.y<100){var Ge=new Date(Date.UTC(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L));return Ge.setUTCFullYear(Fe.y),Ge}return new Date(Date.UTC(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L))}function a(Fe,Ge,wt){return{y:Fe,m:Ge,d:wt,H:0,M:0,S:0,L:0}}function s(Fe){var Ge=Fe.dateTime,wt=Fe.date,dt=Fe.time,gr=Fe.periods,xr=Fe.days,mr=Fe.shortDays,Hr=Fe.months,pa=Fe.shortMonths,Ea=T(gr),Ua=S(gr),Ki=T(xr),qi=S(xr),vi=T(mr),Ti=S(mr),$i=T(Hr),on=S(Hr),Ei=T(pa),ma=S(pa),Gr={a:Dt,A:Rt,b:$t,B:Yt,c:null,d:we,e:we,f:ot,H:Te,I:Ce,j:Le,L:$e,m:it,M:bt,p:Tr,q:Yr,Q:gt,s:qt,S:We,u:Et,U:nt,V:vt,w:xt,W:pt,x:null,X:null,y:ve,Y:ze,Z:pe,"%":Oe},Qa={a:Br,A:ca,b:ua,B:qa,c:null,d:at,e:at,f:Tt,H:yt,I:Xe,j:Ft,L:Lt,m:It,M:Gt,p:ii,q:Wr,Q:gt,s:qt,S:Ct,u:Mt,U:Ut,V:Ot,w:Be,W:ft,x:null,X:null,y:or,Y:Cr,Z:Sr,"%":Oe},Zr={a:se,A:ce,b:Ee,B:Ne,c:rt,d:W,e:W,f:de,H:te,I:te,j:J,L:fe,m:V,M:ne,p:ee,q:H,Q:Se,s:Ae,S:oe,u:D,U:E,V:I,w:C,W:B,x:He,X:mt,y:z,Y:q,Z:O,"%":Me};Gr.x=di(wt,Gr),Gr.X=di(dt,Gr),Gr.c=di(Ge,Gr),Qa.x=di(wt,Qa),Qa.X=di(dt,Qa),Qa.c=di(Ge,Qa);function di(dr,ea){return function(_a){var ir=[],Ai=-1,Ca=0,si=dr.length,fa,Dn,Co;for(_a instanceof Date||(_a=new Date(+_a));++Ai53)return null;"w"in ir||(ir.w=1),"Z"in ir?(Ca=i(a(ir.y,0,1)),si=Ca.getUTCDay(),Ca=si>4||si===0?t.utcMonday.ceil(Ca):t.utcMonday(Ca),Ca=t.utcDay.offset(Ca,(ir.V-1)*7),ir.y=Ca.getUTCFullYear(),ir.m=Ca.getUTCMonth(),ir.d=Ca.getUTCDate()+(ir.w+6)%7):(Ca=r(a(ir.y,0,1)),si=Ca.getDay(),Ca=si>4||si===0?t.timeMonday.ceil(Ca):t.timeMonday(Ca),Ca=t.timeDay.offset(Ca,(ir.V-1)*7),ir.y=Ca.getFullYear(),ir.m=Ca.getMonth(),ir.d=Ca.getDate()+(ir.w+6)%7)}else("W"in ir||"U"in ir)&&("w"in ir||(ir.w="u"in ir?ir.u%7:"W"in ir?1:0),si="Z"in ir?i(a(ir.y,0,1)).getUTCDay():r(a(ir.y,0,1)).getDay(),ir.m=0,ir.d="W"in ir?(ir.w+6)%7+ir.W*7-(si+5)%7:ir.w+ir.U*7-(si+6)%7);return"Z"in ir?(ir.H+=ir.Z/100|0,ir.M+=ir.Z%100,i(ir)):r(ir)}}function le(dr,ea,_a,ir){for(var Ai=0,Ca=ea.length,si=_a.length,fa,Dn;Ai=si)return-1;if(fa=ea.charCodeAt(Ai++),fa===37){if(fa=ea.charAt(Ai++),Dn=Zr[fa in l?ea.charAt(Ai++):fa],!Dn||(ir=Dn(dr,_a,ir))<0)return-1}else if(fa!=_a.charCodeAt(ir++))return-1}return ir}function ee(dr,ea,_a){var ir=Ea.exec(ea.slice(_a));return ir?(dr.p=Ua[ir[0].toLowerCase()],_a+ir[0].length):-1}function se(dr,ea,_a){var ir=vi.exec(ea.slice(_a));return ir?(dr.w=Ti[ir[0].toLowerCase()],_a+ir[0].length):-1}function ce(dr,ea,_a){var ir=Ki.exec(ea.slice(_a));return ir?(dr.w=qi[ir[0].toLowerCase()],_a+ir[0].length):-1}function Ee(dr,ea,_a){var ir=Ei.exec(ea.slice(_a));return ir?(dr.m=ma[ir[0].toLowerCase()],_a+ir[0].length):-1}function Ne(dr,ea,_a){var ir=$i.exec(ea.slice(_a));return ir?(dr.m=on[ir[0].toLowerCase()],_a+ir[0].length):-1}function rt(dr,ea,_a){return le(dr,Ge,ea,_a)}function He(dr,ea,_a){return le(dr,wt,ea,_a)}function mt(dr,ea,_a){return le(dr,dt,ea,_a)}function Dt(dr){return mr[dr.getDay()]}function Rt(dr){return xr[dr.getDay()]}function $t(dr){return pa[dr.getMonth()]}function Yt(dr){return Hr[dr.getMonth()]}function Tr(dr){return gr[+(dr.getHours()>=12)]}function Yr(dr){return 1+~~(dr.getMonth()/3)}function Br(dr){return mr[dr.getUTCDay()]}function ca(dr){return xr[dr.getUTCDay()]}function ua(dr){return pa[dr.getUTCMonth()]}function qa(dr){return Hr[dr.getUTCMonth()]}function ii(dr){return gr[+(dr.getUTCHours()>=12)]}function Wr(dr){return 1+~~(dr.getUTCMonth()/3)}return{format:function(dr){var ea=di(dr+="",Gr);return ea.toString=function(){return dr},ea},parse:function(dr){var ea=ga(dr+="",!1);return ea.toString=function(){return dr},ea},utcFormat:function(dr){var ea=di(dr+="",Qa);return ea.toString=function(){return dr},ea},utcParse:function(dr){var ea=ga(dr+="",!0);return ea.toString=function(){return dr},ea}}}var l={"-":"",_:" ",0:"0"},f=/^\s*\d+/,h=/^%/,v=/[\\^$*+?|[\]().{}]/g;function m(Fe,Ge,wt){var dt=Fe<0?"-":"",gr=(dt?-Fe:Fe)+"",xr=gr.length;return dt+(xr68?1900:2e3),wt+dt[0].length):-1}function O(Fe,Ge,wt){var dt=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ge.slice(wt,wt+6));return dt?(Fe.Z=dt[1]?0:-(dt[2]+(dt[3]||"00")),wt+dt[0].length):-1}function H(Fe,Ge,wt){var dt=f.exec(Ge.slice(wt,wt+1));return dt?(Fe.q=dt[0]*3-3,wt+dt[0].length):-1}function V(Fe,Ge,wt){var dt=f.exec(Ge.slice(wt,wt+2));return dt?(Fe.m=dt[0]-1,wt+dt[0].length):-1}function W(Fe,Ge,wt){var dt=f.exec(Ge.slice(wt,wt+2));return dt?(Fe.d=+dt[0],wt+dt[0].length):-1}function J(Fe,Ge,wt){var dt=f.exec(Ge.slice(wt,wt+3));return dt?(Fe.m=0,Fe.d=+dt[0],wt+dt[0].length):-1}function te(Fe,Ge,wt){var dt=f.exec(Ge.slice(wt,wt+2));return dt?(Fe.H=+dt[0],wt+dt[0].length):-1}function ne(Fe,Ge,wt){var dt=f.exec(Ge.slice(wt,wt+2));return dt?(Fe.M=+dt[0],wt+dt[0].length):-1}function oe(Fe,Ge,wt){var dt=f.exec(Ge.slice(wt,wt+2));return dt?(Fe.S=+dt[0],wt+dt[0].length):-1}function fe(Fe,Ge,wt){var dt=f.exec(Ge.slice(wt,wt+3));return dt?(Fe.L=+dt[0],wt+dt[0].length):-1}function de(Fe,Ge,wt){var dt=f.exec(Ge.slice(wt,wt+6));return dt?(Fe.L=Math.floor(dt[0]/1e3),wt+dt[0].length):-1}function Me(Fe,Ge,wt){var dt=h.exec(Ge.slice(wt,wt+1));return dt?wt+dt[0].length:-1}function Se(Fe,Ge,wt){var dt=f.exec(Ge.slice(wt));return dt?(Fe.Q=+dt[0],wt+dt[0].length):-1}function Ae(Fe,Ge,wt){var dt=f.exec(Ge.slice(wt));return dt?(Fe.s=+dt[0],wt+dt[0].length):-1}function we(Fe,Ge){return m(Fe.getDate(),Ge,2)}function Te(Fe,Ge){return m(Fe.getHours(),Ge,2)}function Ce(Fe,Ge){return m(Fe.getHours()%12||12,Ge,2)}function Le(Fe,Ge){return m(1+t.timeDay.count(t.timeYear(Fe),Fe),Ge,3)}function $e(Fe,Ge){return m(Fe.getMilliseconds(),Ge,3)}function ot(Fe,Ge){return $e(Fe,Ge)+"000"}function it(Fe,Ge){return m(Fe.getMonth()+1,Ge,2)}function bt(Fe,Ge){return m(Fe.getMinutes(),Ge,2)}function We(Fe,Ge){return m(Fe.getSeconds(),Ge,2)}function Et(Fe){var Ge=Fe.getDay();return Ge===0?7:Ge}function nt(Fe,Ge){return m(t.timeSunday.count(t.timeYear(Fe)-1,Fe),Ge,2)}function vt(Fe,Ge){var wt=Fe.getDay();return Fe=wt>=4||wt===0?t.timeThursday(Fe):t.timeThursday.ceil(Fe),m(t.timeThursday.count(t.timeYear(Fe),Fe)+(t.timeYear(Fe).getDay()===4),Ge,2)}function xt(Fe){return Fe.getDay()}function pt(Fe,Ge){return m(t.timeMonday.count(t.timeYear(Fe)-1,Fe),Ge,2)}function ve(Fe,Ge){return m(Fe.getFullYear()%100,Ge,2)}function ze(Fe,Ge){return m(Fe.getFullYear()%1e4,Ge,4)}function pe(Fe){var Ge=Fe.getTimezoneOffset();return(Ge>0?"-":(Ge*=-1,"+"))+m(Ge/60|0,"0",2)+m(Ge%60,"0",2)}function at(Fe,Ge){return m(Fe.getUTCDate(),Ge,2)}function yt(Fe,Ge){return m(Fe.getUTCHours(),Ge,2)}function Xe(Fe,Ge){return m(Fe.getUTCHours()%12||12,Ge,2)}function Ft(Fe,Ge){return m(1+t.utcDay.count(t.utcYear(Fe),Fe),Ge,3)}function Lt(Fe,Ge){return m(Fe.getUTCMilliseconds(),Ge,3)}function Tt(Fe,Ge){return Lt(Fe,Ge)+"000"}function It(Fe,Ge){return m(Fe.getUTCMonth()+1,Ge,2)}function Gt(Fe,Ge){return m(Fe.getUTCMinutes(),Ge,2)}function Ct(Fe,Ge){return m(Fe.getUTCSeconds(),Ge,2)}function Mt(Fe){var Ge=Fe.getUTCDay();return Ge===0?7:Ge}function Ut(Fe,Ge){return m(t.utcSunday.count(t.utcYear(Fe)-1,Fe),Ge,2)}function Ot(Fe,Ge){var wt=Fe.getUTCDay();return Fe=wt>=4||wt===0?t.utcThursday(Fe):t.utcThursday.ceil(Fe),m(t.utcThursday.count(t.utcYear(Fe),Fe)+(t.utcYear(Fe).getUTCDay()===4),Ge,2)}function Be(Fe){return Fe.getUTCDay()}function ft(Fe,Ge){return m(t.utcMonday.count(t.utcYear(Fe)-1,Fe),Ge,2)}function or(Fe,Ge){return m(Fe.getUTCFullYear()%100,Ge,2)}function Cr(Fe,Ge){return m(Fe.getUTCFullYear()%1e4,Ge,4)}function Sr(){return"+0000"}function Oe(){return"%"}function gt(Fe){return+Fe}function qt(Fe){return Math.floor(+Fe/1e3)}var Qt;Vt({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Vt(Fe){return Qt=s(Fe),e.timeFormat=Qt.format,e.timeParse=Qt.parse,e.utcFormat=Qt.utcFormat,e.utcParse=Qt.utcParse,Qt}var tr="%Y-%m-%dT%H:%M:%S.%LZ";function ar(Fe){return Fe.toISOString()}var zr=Date.prototype.toISOString?ar:e.utcFormat(tr);function lr(Fe){var Ge=new Date(Fe);return isNaN(Ge)?null:Ge}var At=+new Date("2000-01-01T00:00:00.000Z")?lr:e.utcParse(tr);e.isoFormat=zr,e.isoParse=At,e.timeFormatDefaultLocale=Vt,e.timeFormatLocale=s,Object.defineProperty(e,"__esModule",{value:!0})})});var N3=me((j1,w7)=>{(function(e,t){typeof j1=="object"&&typeof w7!="undefined"?t(j1):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(j1,function(e){"use strict";function t(V){return Math.abs(V=Math.round(V))>=1e21?V.toLocaleString("en").replace(/,/g,""):V.toString(10)}function r(V,W){if((J=(V=W?V.toExponential(W-1):V.toExponential()).indexOf("e"))<0)return null;var J,te=V.slice(0,J);return[te.length>1?te[0]+te.slice(2):te,+V.slice(J+1)]}function i(V){return V=r(Math.abs(V)),V?V[1]:NaN}function a(V,W){return function(J,te){for(var ne=J.length,oe=[],fe=0,de=V[0],Me=0;ne>0&&de>0&&(Me+de+1>te&&(de=Math.max(1,te-Me)),oe.push(J.substring(ne-=de,ne+de)),!((Me+=de+1)>te));)de=V[fe=(fe+1)%V.length];return oe.reverse().join(W)}}function s(V){return function(W){return W.replace(/[0-9]/g,function(J){return V[+J]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function f(V){if(!(W=l.exec(V)))throw new Error("invalid format: "+V);var W;return new h({fill:W[1],align:W[2],sign:W[3],symbol:W[4],zero:W[5],width:W[6],comma:W[7],precision:W[8]&&W[8].slice(1),trim:W[9],type:W[10]})}f.prototype=h.prototype;function h(V){this.fill=V.fill===void 0?" ":V.fill+"",this.align=V.align===void 0?">":V.align+"",this.sign=V.sign===void 0?"-":V.sign+"",this.symbol=V.symbol===void 0?"":V.symbol+"",this.zero=!!V.zero,this.width=V.width===void 0?void 0:+V.width,this.comma=!!V.comma,this.precision=V.precision===void 0?void 0:+V.precision,this.trim=!!V.trim,this.type=V.type===void 0?"":V.type+""}h.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function v(V){e:for(var W=V.length,J=1,te=-1,ne;J0&&(te=0);break}return te>0?V.slice(0,te)+V.slice(ne+1):V}var m;function _(V,W){var J=r(V,W);if(!J)return V+"";var te=J[0],ne=J[1],oe=ne-(m=Math.max(-8,Math.min(8,Math.floor(ne/3)))*3)+1,fe=te.length;return oe===fe?te:oe>fe?te+new Array(oe-fe+1).join("0"):oe>0?te.slice(0,oe)+"."+te.slice(oe):"0."+new Array(1-oe).join("0")+r(V,Math.max(0,W+oe-1))[0]}function T(V,W){var J=r(V,W);if(!J)return V+"";var te=J[0],ne=J[1];return ne<0?"0."+new Array(-ne).join("0")+te:te.length>ne+1?te.slice(0,ne+1)+"."+te.slice(ne+1):te+new Array(ne-te.length+2).join("0")}var S={"%":function(V,W){return(V*100).toFixed(W)},b:function(V){return Math.round(V).toString(2)},c:function(V){return V+""},d:t,e:function(V,W){return V.toExponential(W)},f:function(V,W){return V.toFixed(W)},g:function(V,W){return V.toPrecision(W)},o:function(V){return Math.round(V).toString(8)},p:function(V,W){return T(V*100,W)},r:T,s:_,X:function(V){return Math.round(V).toString(16).toUpperCase()},x:function(V){return Math.round(V).toString(16)}};function C(V){return V}var D=Array.prototype.map,E=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function I(V){var W=V.grouping===void 0||V.thousands===void 0?C:a(D.call(V.grouping,Number),V.thousands+""),J=V.currency===void 0?"":V.currency[0]+"",te=V.currency===void 0?"":V.currency[1]+"",ne=V.decimal===void 0?".":V.decimal+"",oe=V.numerals===void 0?C:s(D.call(V.numerals,String)),fe=V.percent===void 0?"%":V.percent+"",de=V.minus===void 0?"-":V.minus+"",Me=V.nan===void 0?"NaN":V.nan+"";function Se(we){we=f(we);var Te=we.fill,Ce=we.align,Le=we.sign,$e=we.symbol,ot=we.zero,it=we.width,bt=we.comma,We=we.precision,Et=we.trim,nt=we.type;nt==="n"?(bt=!0,nt="g"):S[nt]||(We===void 0&&(We=12),Et=!0,nt="g"),(ot||Te==="0"&&Ce==="=")&&(ot=!0,Te="0",Ce="=");var vt=$e==="$"?J:$e==="#"&&/[boxX]/.test(nt)?"0"+nt.toLowerCase():"",xt=$e==="$"?te:/[%p]/.test(nt)?fe:"",pt=S[nt],ve=/[defgprs%]/.test(nt);We=We===void 0?6:/[gprs]/.test(nt)?Math.max(1,Math.min(21,We)):Math.max(0,Math.min(20,We));function ze(pe){var at=vt,yt=xt,Xe,Ft,Lt;if(nt==="c")yt=pt(pe)+yt,pe="";else{pe=+pe;var Tt=pe<0||1/pe<0;if(pe=isNaN(pe)?Me:pt(Math.abs(pe),We),Et&&(pe=v(pe)),Tt&&+pe==0&&Le!=="+"&&(Tt=!1),at=(Tt?Le==="("?Le:de:Le==="-"||Le==="("?"":Le)+at,yt=(nt==="s"?E[8+m/3]:"")+yt+(Tt&&Le==="("?")":""),ve){for(Xe=-1,Ft=pe.length;++XeLt||Lt>57){yt=(Lt===46?ne+pe.slice(Xe+1):pe.slice(Xe))+yt,pe=pe.slice(0,Xe);break}}}bt&&!ot&&(pe=W(pe,1/0));var It=at.length+pe.length+yt.length,Gt=It>1)+at+pe+yt+Gt.slice(It);break;default:pe=Gt+at+pe+yt;break}return oe(pe)}return ze.toString=function(){return we+""},ze}function Ae(we,Te){var Ce=Se((we=f(we),we.type="f",we)),Le=Math.max(-8,Math.min(8,Math.floor(i(Te)/3)))*3,$e=Math.pow(10,-Le),ot=E[8+Le/3];return function(it){return Ce($e*it)+ot}}return{format:Se,formatPrefix:Ae}}var B;q({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function q(V){return B=I(V),e.format=B.format,e.formatPrefix=B.formatPrefix,B}function z(V){return Math.max(0,-i(Math.abs(V)))}function O(V,W){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(i(W)/3)))*3-i(Math.abs(V)))}function H(V,W){return V=Math.abs(V),W=Math.abs(W)-V,Math.max(0,i(W)-i(V))+1}e.FormatSpecifier=h,e.formatDefaultLocale=q,e.formatLocale=I,e.formatSpecifier=f,e.precisionFixed=z,e.precisionPrefix=O,e.precisionRound=H,Object.defineProperty(e,"__esModule",{value:!0})})});var A7=me((kme,T7)=>{"use strict";T7.exports=function(e){for(var t=e.length,r,i=0;i13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var Da=me((Cme,M7)=>{"use strict";var aj=A7();M7.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&aj(r))return!1}else if(t!=="number")return!1;return e-e<1}});var Zi=me((Eme,S7)=>{"use strict";S7.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var B3=me((J1,k7)=>{(function(e,t){typeof J1=="object"&&typeof k7!="undefined"?t(J1):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(J1,function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),i=0;i>2],m+=t[(f[h]&3)<<4|f[h+1]>>4],m+=t[(f[h+1]&15)<<2|f[h+2]>>6],m+=t[f[h+2]&63];return v%3===2?m=m.substring(0,m.length-1)+"=":v%3===1&&(m=m.substring(0,m.length-2)+"=="),m},s=function(l){var f=l.length*.75,h=l.length,v,m=0,_,T,S,C;l[l.length-1]==="="&&(f--,l[l.length-2]==="="&&f--);var D=new ArrayBuffer(f),E=new Uint8Array(D);for(v=0;v>4,E[m++]=(T&15)<<4|S>>2,E[m++]=(S&3)<<6|C&63;return D};e.decode=s,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})})});var cc=me((Lme,C7)=>{"use strict";C7.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var al=me(Du=>{"use strict";var ij=B3().decode,nj=cc(),O3=Array.isArray,oj=ArrayBuffer,sj=DataView;function E7(e){return oj.isView(e)&&!(e instanceof sj)}Du.isTypedArray=E7;function K1(e){return O3(e)||E7(e)}Du.isArrayOrTypedArray=K1;function lj(e){return!K1(e[0])}Du.isArray1D=lj;Du.ensureArray=function(e,t){return O3(e)||(e=[]),e.length=t,e};var fo={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};fo.uint8c=fo.u1c;fo.uint8=fo.u1;fo.int8=fo.i1;fo.uint16=fo.u2;fo.int16=fo.i2;fo.uint32=fo.u4;fo.int32=fo.i4;fo.float32=fo.f4;fo.float64=fo.f8;function U3(e){return e.constructor===ArrayBuffer}Du.isArrayBuffer=U3;Du.decodeTypedArraySpec=function(e){var t=[],r=uj(e),i=r.dtype,a=fo[i];if(!a)throw new Error('Error in dtype: "'+i+'"');var s=a.BYTES_PER_ELEMENT,l=r.bdata;U3(l)||(l=ij(l));var f=r.shape===void 0?[l.byteLength/s]:(""+r.shape).split(",");f.reverse();var h=f.length,v,m,_=+f[0],T=s*_,S=0;if(h===1)t=new a(l);else if(h===2)for(v=+f[1],m=0;m{"use strict";var D7=Da(),H3=al().isArrayOrTypedArray;R7.exports=function(t,r){if(D7(r))r=String(r);else if(typeof r!="string"||r.substr(r.length-4)==="[-1]")throw"bad property string";var i=r.split("."),a,s,l,f;for(f=0;f{"use strict";var l0=wy(),dj=/^\w*$/,pj=0,F7=1,Q1=2,q7=3,$v=4;N7.exports=function(t,r,i,a){i=i||"name",a=a||"value";var s,l,f,h={};r&&r.length?(f=l0(t,r),l=f.get()):l=t,r=r||"";var v={};if(l)for(s=0;s2)return h[S]=h[S]|Q1,_.set(T,null);if(m){for(s=S;s{"use strict";var mj=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,yj=/^[^\.\[\]]+$/;O7.exports=function(e,t){for(;t;){var r=e.match(mj);if(r)e=r[1];else if(e.match(yj))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var $1=me((Rme,V7)=>{"use strict";var gj=Da();V7.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var i=Math.log(Math.min(r[0],r[1]))/Math.LN10;return gj(i)||(i=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),i}});var Z7=me((Fme,G7)=>{"use strict";var H7=al().isArrayOrTypedArray,Ty=cc();G7.exports=function e(t,r){for(var i in r){var a=r[i],s=t[i];if(s!==a)if(i.charAt(0)==="_"||typeof a=="function"){if(i in t)continue;t[i]=a}else if(H7(a)&&H7(s)&&Ty(a[0])){if(i==="customdata"||i==="ids")continue;for(var l=Math.min(a.length,s.length),f=0;f{"use strict";function _j(e,t){var r=e%t;return r<0?r+t:r}function xj(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}Y7.exports={mod:_j,modHalf:xj}});var Tf=me((Nme,e_)=>{(function(e){var t=/^\s+/,r=/\s+$/,i=0,a=e.round,s=e.min,l=e.max,f=e.random;function h(ve,ze){if(ve=ve||"",ze=ze||{},ve instanceof h)return ve;if(!(this instanceof h))return new h(ve,ze);var pe=v(ve);this._originalInput=ve,this._r=pe.r,this._g=pe.g,this._b=pe.b,this._a=pe.a,this._roundA=a(100*this._a)/100,this._format=ze.format||pe.format,this._gradientType=ze.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=pe.ok,this._tc_id=i++}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ve=this.toRgb();return(ve.r*299+ve.g*587+ve.b*114)/1e3},getLuminance:function(){var ve=this.toRgb(),ze,pe,at,yt,Xe,Ft;return ze=ve.r/255,pe=ve.g/255,at=ve.b/255,ze<=.03928?yt=ze/12.92:yt=e.pow((ze+.055)/1.055,2.4),pe<=.03928?Xe=pe/12.92:Xe=e.pow((pe+.055)/1.055,2.4),at<=.03928?Ft=at/12.92:Ft=e.pow((at+.055)/1.055,2.4),.2126*yt+.7152*Xe+.0722*Ft},setAlpha:function(ve){return this._a=we(ve),this._roundA=a(100*this._a)/100,this},toHsv:function(){var ve=S(this._r,this._g,this._b);return{h:ve.h*360,s:ve.s,v:ve.v,a:this._a}},toHsvString:function(){var ve=S(this._r,this._g,this._b),ze=a(ve.h*360),pe=a(ve.s*100),at=a(ve.v*100);return this._a==1?"hsv("+ze+", "+pe+"%, "+at+"%)":"hsva("+ze+", "+pe+"%, "+at+"%, "+this._roundA+")"},toHsl:function(){var ve=_(this._r,this._g,this._b);return{h:ve.h*360,s:ve.s,l:ve.l,a:this._a}},toHslString:function(){var ve=_(this._r,this._g,this._b),ze=a(ve.h*360),pe=a(ve.s*100),at=a(ve.l*100);return this._a==1?"hsl("+ze+", "+pe+"%, "+at+"%)":"hsla("+ze+", "+pe+"%, "+at+"%, "+this._roundA+")"},toHex:function(ve){return D(this._r,this._g,this._b,ve)},toHexString:function(ve){return"#"+this.toHex(ve)},toHex8:function(ve){return E(this._r,this._g,this._b,this._a,ve)},toHex8String:function(ve){return"#"+this.toHex8(ve)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(Te(this._r,255)*100)+"%",g:a(Te(this._g,255)*100)+"%",b:a(Te(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(Te(this._r,255)*100)+"%, "+a(Te(this._g,255)*100)+"%, "+a(Te(this._b,255)*100)+"%)":"rgba("+a(Te(this._r,255)*100)+"%, "+a(Te(this._g,255)*100)+"%, "+a(Te(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Se[D(this._r,this._g,this._b,!0)]||!1},toFilter:function(ve){var ze="#"+I(this._r,this._g,this._b,this._a),pe=ze,at=this._gradientType?"GradientType = 1, ":"";if(ve){var yt=h(ve);pe="#"+I(yt._r,yt._g,yt._b,yt._a)}return"progid:DXImageTransform.Microsoft.gradient("+at+"startColorstr="+ze+",endColorstr="+pe+")"},toString:function(ve){var ze=!!ve;ve=ve||this._format;var pe=!1,at=this._a<1&&this._a>=0,yt=!ze&&at&&(ve==="hex"||ve==="hex6"||ve==="hex3"||ve==="hex4"||ve==="hex8"||ve==="name");return yt?ve==="name"&&this._a===0?this.toName():this.toRgbString():(ve==="rgb"&&(pe=this.toRgbString()),ve==="prgb"&&(pe=this.toPercentageRgbString()),(ve==="hex"||ve==="hex6")&&(pe=this.toHexString()),ve==="hex3"&&(pe=this.toHexString(!0)),ve==="hex4"&&(pe=this.toHex8String(!0)),ve==="hex8"&&(pe=this.toHex8String()),ve==="name"&&(pe=this.toName()),ve==="hsl"&&(pe=this.toHslString()),ve==="hsv"&&(pe=this.toHsvString()),pe||this.toHexString())},clone:function(){return h(this.toString())},_applyModification:function(ve,ze){var pe=ve.apply(null,[this].concat([].slice.call(ze)));return this._r=pe._r,this._g=pe._g,this._b=pe._b,this.setAlpha(pe._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(H,arguments)},darken:function(){return this._applyModification(V,arguments)},desaturate:function(){return this._applyModification(B,arguments)},saturate:function(){return this._applyModification(q,arguments)},greyscale:function(){return this._applyModification(z,arguments)},spin:function(){return this._applyModification(W,arguments)},_applyCombination:function(ve,ze){return ve.apply(null,[this].concat([].slice.call(ze)))},analogous:function(){return this._applyCombination(fe,arguments)},complement:function(){return this._applyCombination(J,arguments)},monochromatic:function(){return this._applyCombination(de,arguments)},splitcomplement:function(){return this._applyCombination(oe,arguments)},triad:function(){return this._applyCombination(te,arguments)},tetrad:function(){return this._applyCombination(ne,arguments)}},h.fromRatio=function(ve,ze){if(typeof ve=="object"){var pe={};for(var at in ve)ve.hasOwnProperty(at)&&(at==="a"?pe[at]=ve[at]:pe[at]=bt(ve[at]));ve=pe}return h(ve,ze)};function v(ve){var ze={r:0,g:0,b:0},pe=1,at=null,yt=null,Xe=null,Ft=!1,Lt=!1;return typeof ve=="string"&&(ve=xt(ve)),typeof ve=="object"&&(vt(ve.r)&&vt(ve.g)&&vt(ve.b)?(ze=m(ve.r,ve.g,ve.b),Ft=!0,Lt=String(ve.r).substr(-1)==="%"?"prgb":"rgb"):vt(ve.h)&&vt(ve.s)&&vt(ve.v)?(at=bt(ve.s),yt=bt(ve.v),ze=C(ve.h,at,yt),Ft=!0,Lt="hsv"):vt(ve.h)&&vt(ve.s)&&vt(ve.l)&&(at=bt(ve.s),Xe=bt(ve.l),ze=T(ve.h,at,Xe),Ft=!0,Lt="hsl"),ve.hasOwnProperty("a")&&(pe=ve.a)),pe=we(pe),{ok:Ft,format:ve.format||Lt,r:s(255,l(ze.r,0)),g:s(255,l(ze.g,0)),b:s(255,l(ze.b,0)),a:pe}}function m(ve,ze,pe){return{r:Te(ve,255)*255,g:Te(ze,255)*255,b:Te(pe,255)*255}}function _(ve,ze,pe){ve=Te(ve,255),ze=Te(ze,255),pe=Te(pe,255);var at=l(ve,ze,pe),yt=s(ve,ze,pe),Xe,Ft,Lt=(at+yt)/2;if(at==yt)Xe=Ft=0;else{var Tt=at-yt;switch(Ft=Lt>.5?Tt/(2-at-yt):Tt/(at+yt),at){case ve:Xe=(ze-pe)/Tt+(ze1&&(Ct-=1),Ct<1/6?It+(Gt-It)*6*Ct:Ct<1/2?Gt:Ct<2/3?It+(Gt-It)*(2/3-Ct)*6:It}if(ze===0)at=yt=Xe=pe;else{var Lt=pe<.5?pe*(1+ze):pe+ze-pe*ze,Tt=2*pe-Lt;at=Ft(Tt,Lt,ve+1/3),yt=Ft(Tt,Lt,ve),Xe=Ft(Tt,Lt,ve-1/3)}return{r:at*255,g:yt*255,b:Xe*255}}function S(ve,ze,pe){ve=Te(ve,255),ze=Te(ze,255),pe=Te(pe,255);var at=l(ve,ze,pe),yt=s(ve,ze,pe),Xe,Ft,Lt=at,Tt=at-yt;if(Ft=at===0?0:Tt/at,at==yt)Xe=0;else{switch(at){case ve:Xe=(ze-pe)/Tt+(ze>1)+720)%360;--ze;)at.h=(at.h+yt)%360,Xe.push(h(at));return Xe}function de(ve,ze){ze=ze||6;for(var pe=h(ve).toHsv(),at=pe.h,yt=pe.s,Xe=pe.v,Ft=[],Lt=1/ze;ze--;)Ft.push(h({h:at,s:yt,v:Xe})),Xe=(Xe+Lt)%1;return Ft}h.mix=function(ve,ze,pe){pe=pe===0?0:pe||50;var at=h(ve).toRgb(),yt=h(ze).toRgb(),Xe=pe/100,Ft={r:(yt.r-at.r)*Xe+at.r,g:(yt.g-at.g)*Xe+at.g,b:(yt.b-at.b)*Xe+at.b,a:(yt.a-at.a)*Xe+at.a};return h(Ft)},h.readability=function(ve,ze){var pe=h(ve),at=h(ze);return(e.max(pe.getLuminance(),at.getLuminance())+.05)/(e.min(pe.getLuminance(),at.getLuminance())+.05)},h.isReadable=function(ve,ze,pe){var at=h.readability(ve,ze),yt,Xe;switch(Xe=!1,yt=pt(pe),yt.level+yt.size){case"AAsmall":case"AAAlarge":Xe=at>=4.5;break;case"AAlarge":Xe=at>=3;break;case"AAAsmall":Xe=at>=7;break}return Xe},h.mostReadable=function(ve,ze,pe){var at=null,yt=0,Xe,Ft,Lt,Tt;pe=pe||{},Ft=pe.includeFallbackColors,Lt=pe.level,Tt=pe.size;for(var It=0;Ityt&&(yt=Xe,at=h(ze[It]));return h.isReadable(ve,at,{level:Lt,size:Tt})||!Ft?at:(pe.includeFallbackColors=!1,h.mostReadable(ve,["#fff","#000"],pe))};var Me=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Se=h.hexNames=Ae(Me);function Ae(ve){var ze={};for(var pe in ve)ve.hasOwnProperty(pe)&&(ze[ve[pe]]=pe);return ze}function we(ve){return ve=parseFloat(ve),(isNaN(ve)||ve<0||ve>1)&&(ve=1),ve}function Te(ve,ze){$e(ve)&&(ve="100%");var pe=ot(ve);return ve=s(ze,l(0,parseFloat(ve))),pe&&(ve=parseInt(ve*ze,10)/100),e.abs(ve-ze)<1e-6?1:ve%ze/parseFloat(ze)}function Ce(ve){return s(1,l(0,ve))}function Le(ve){return parseInt(ve,16)}function $e(ve){return typeof ve=="string"&&ve.indexOf(".")!=-1&&parseFloat(ve)===1}function ot(ve){return typeof ve=="string"&&ve.indexOf("%")!=-1}function it(ve){return ve.length==1?"0"+ve:""+ve}function bt(ve){return ve<=1&&(ve=ve*100+"%"),ve}function We(ve){return e.round(parseFloat(ve)*255).toString(16)}function Et(ve){return Le(ve)/255}var nt=function(){var ve="[-\\+]?\\d+%?",ze="[-\\+]?\\d*\\.\\d+%?",pe="(?:"+ze+")|(?:"+ve+")",at="[\\s|\\(]+("+pe+")[,|\\s]+("+pe+")[,|\\s]+("+pe+")\\s*\\)?",yt="[\\s|\\(]+("+pe+")[,|\\s]+("+pe+")[,|\\s]+("+pe+")[,|\\s]+("+pe+")\\s*\\)?";return{CSS_UNIT:new RegExp(pe),rgb:new RegExp("rgb"+at),rgba:new RegExp("rgba"+yt),hsl:new RegExp("hsl"+at),hsla:new RegExp("hsla"+yt),hsv:new RegExp("hsv"+at),hsva:new RegExp("hsva"+yt),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 vt(ve){return!!nt.CSS_UNIT.exec(ve)}function xt(ve){ve=ve.replace(t,"").replace(r,"").toLowerCase();var ze=!1;if(Me[ve])ve=Me[ve],ze=!0;else if(ve=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var pe;return(pe=nt.rgb.exec(ve))?{r:pe[1],g:pe[2],b:pe[3]}:(pe=nt.rgba.exec(ve))?{r:pe[1],g:pe[2],b:pe[3],a:pe[4]}:(pe=nt.hsl.exec(ve))?{h:pe[1],s:pe[2],l:pe[3]}:(pe=nt.hsla.exec(ve))?{h:pe[1],s:pe[2],l:pe[3],a:pe[4]}:(pe=nt.hsv.exec(ve))?{h:pe[1],s:pe[2],v:pe[3]}:(pe=nt.hsva.exec(ve))?{h:pe[1],s:pe[2],v:pe[3],a:pe[4]}:(pe=nt.hex8.exec(ve))?{r:Le(pe[1]),g:Le(pe[2]),b:Le(pe[3]),a:Et(pe[4]),format:ze?"name":"hex8"}:(pe=nt.hex6.exec(ve))?{r:Le(pe[1]),g:Le(pe[2]),b:Le(pe[3]),format:ze?"name":"hex"}:(pe=nt.hex4.exec(ve))?{r:Le(pe[1]+""+pe[1]),g:Le(pe[2]+""+pe[2]),b:Le(pe[3]+""+pe[3]),a:Et(pe[4]+""+pe[4]),format:ze?"name":"hex8"}:(pe=nt.hex3.exec(ve))?{r:Le(pe[1]+""+pe[1]),g:Le(pe[2]+""+pe[2]),b:Le(pe[3]+""+pe[3]),format:ze?"name":"hex"}:!1}function pt(ve){var ze,pe;return ve=ve||{level:"AA",size:"small"},ze=(ve.level||"AA").toUpperCase(),pe=(ve.size||"small").toLowerCase(),ze!=="AA"&&ze!=="AAA"&&(ze="AA"),pe!=="small"&&pe!=="large"&&(pe="small"),{level:ze,size:pe}}typeof e_!="undefined"&&e_.exports?e_.exports=h:window.tinycolor=h})(Math)});var mn=me(Sy=>{"use strict";var W7=cc(),Ay=Array.isArray;function bj(e,t){var r,i;for(r=0;r{"use strict";X7.exports=function(e){var t=e.variantValues,r=e.editType,i=e.colorEditType;i===void 0&&(i=r);var a={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var s={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:i},weight:a,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(s.size.dflt="auto"),e.autoColor&&(s.color.dflt="auto"),e.arrayOk&&(s.family.arrayOk=!0,s.weight.arrayOk=!0,s.style.arrayOk=!0,e.noFontVariant||(s.variant.arrayOk=!0),e.noFontTextcase||(s.textcase.arrayOk=!0),e.noFontLineposition||(s.lineposition.arrayOk=!0),e.noFontShadow||(s.shadow.arrayOk=!0),s.size.arrayOk=!0,s.color.arrayOk=!0),s}});var ky=me((Ume,j7)=>{"use strict";j7.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var f0=me((Vme,Q7)=>{"use strict";var J7=ky(),K7=qo(),G3=K7({editType:"none"});G3.family.dflt=J7.HOVERFONT;G3.size.dflt=J7.HOVERFONTSIZE;Q7.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:G3,grouptitlefont:K7({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var t_=me((Hme,$7)=>{"use strict";var wj=qo(),Cy=f0().hoverlabel,Ey=mn().extendFlat;$7.exports={hoverlabel:{bgcolor:Ey({},Cy.bgcolor,{arrayOk:!0}),bordercolor:Ey({},Cy.bordercolor,{arrayOk:!0}),font:wj({arrayOk:!0,editType:"none"}),align:Ey({},Cy.align,{arrayOk:!0}),namelength:Ey({},Cy.namelength,{arrayOk:!0}),showarrow:Ey({},Cy.showarrow),editType:"none"}}});var ms=me((Gme,e8)=>{"use strict";var Tj=qo(),Aj=t_();e8.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:Tj({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:Aj.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var ed=me((Zme,a8)=>{"use strict";var Mj=Tf(),r_={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},t8=r_.RdBu;function Sj(e,t){if(t||(t=t8),!e)return t;function r(){try{e=r_[e]||JSON.parse(e)}catch(i){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),r8(e)?e:t}function r8(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;r{"use strict";td.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];td.defaultLine="#444";td.lightLine="#eee";td.background="#fff";td.borderLine="#BEC8D9";td.lightFraction=100*10/11});var Oa=me((Wme,i8)=>{"use strict";var Is=Tf(),Cj=Da(),Ej=al().isTypedArray,$n=i8.exports={},a_=Af();$n.defaults=a_.defaults;var Lj=$n.defaultLine=a_.defaultLine;$n.lightLine=a_.lightLine;var Y3=$n.background=a_.background;$n.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"};$n.rgb=function(e){return $n.tinyRGB(Is(e))};$n.opacity=function(e){return e?Is(e).getAlpha():0};$n.addOpacity=function(e,t){var r=Is(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"};$n.combine=function(e,t){var r=Is(e).toRgb();if(r.a===1)return Is(e).toRgbString();var i=Is(t||Y3).toRgb(),a=i.a===1?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},s={r:a.r*(1-r.a)+r.r*r.a,g:a.g*(1-r.a)+r.g*r.a,b:a.b*(1-r.a)+r.b*r.a};return Is(s).toRgbString()};$n.interpolate=function(e,t,r){var i=Is(e).toRgb(),a=Is(t).toRgb(),s={r:r*i.r+(1-r)*a.r,g:r*i.g+(1-r)*a.g,b:r*i.b+(1-r)*a.b};return Is(s).toRgbString()};$n.contrast=function(e,t,r){var i=Is(e);i.getAlpha()!==1&&(i=Is($n.combine(e,Y3)));var a=i.isDark()?t?i.lighten(t):Y3:r?i.darken(r):Lj;return a.toString()};$n.stroke=function(e,t){var r=Is(t);e.style({stroke:$n.tinyRGB(r),"stroke-opacity":r.getAlpha()})};$n.fill=function(e,t){var r=Is(t);e.style({fill:$n.tinyRGB(r),"fill-opacity":r.getAlpha()})};$n.clean=function(e){if(!(!e||typeof e!="object")){var t=Object.keys(e),r,i,a,s;for(r=0;r=0)))return e;if(s===3)i[s]>1&&(i[s]=1);else if(i[s]>=1)return e}var l=Math.round(i[0]*255)+", "+Math.round(i[1]*255)+", "+Math.round(i[2]*255);return a?"rgba("+l+", "+i[3]+")":"rgb("+l+")"}});var i_=me((Xme,n8)=>{"use strict";n8.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var c0=me(o8=>{"use strict";o8.counter=function(e,t,r,i){var a=(t||"")+(r?"":"$"),s=i===!1?"":"^";return e==="xy"?new RegExp(s+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(s+e+"([2-9]|[1-9][0-9]+)?"+a)}});var f8=me(Rs=>{"use strict";var W3=Da(),s8=Tf(),l8=mn().extendFlat,Dj=ms(),Pj=ed(),zj=Oa(),Ij=i_().DESELECTDIM,h0=wy(),u8=c0().counter,Rj=u0().modHalf,Mf=al().isArrayOrTypedArray,bh=al().isTypedArraySpec,wh=al().decodeTypedArraySpec;Rs.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(Mf(e)?e:bh(e)?wh(e):r)}},enumerated:{coerceFunction:function(e,t,r,i){i.coerceNumber&&(e=+e),i.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,i=0;ii.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,i){if((i.extras||[]).indexOf(e)!==-1){t.set(e);return}bh(e)&&(e=wh(e)),e%1||!W3(e)||i.min!==void 0&&ei.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,i){if(typeof e!="string"){var a=typeof e=="number";i.strict===!0||!a?t.set(r):t.set(String(e))}else i.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){bh(e)&&(e=wh(e)),s8(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function i(a){return s8(a).isValid()}!Array.isArray(e)||!e.length?t.set(r):e.every(i)?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(Pj.get(e,r))}},angle:{coerceFunction:function(e,t,r){bh(e)&&(e=wh(e)),e==="auto"?t.set("auto"):W3(e)?t.set(Rj(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,i){var a=i.regex||u8(r);if(typeof e=="string"&&a.test(e)){t.set(e);return}t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!u8(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,i){if((i.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var a=e.split("+"),s=0;s{"use strict";var c8={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:{}}},h8={};function v8(e,t){for(var r in e){var i=e[r];i.valType?t[r]=i.dflt:(t[r]||(t[r]={}),v8(i,t[r]))}}v8(c8,h8);d8.exports={configAttributes:c8,dfltConfig:h8}});var j3=me((Qme,p8)=>{"use strict";var X3=ja(),Fj=Da(),Ly=[];p8.exports=function(e,t){if(Ly.indexOf(e)!==-1)return;Ly.push(e);var r=1e3;Fj(t)?r=t:t==="long"&&(r=3e3);var i=X3.select("body").selectAll(".plotly-notifier").data([0]);i.enter().append("div").classed("plotly-notifier",!0);var a=i.selectAll(".notifier-note").data(Ly);function s(l){l.duration(700).style("opacity",0).each("end",function(f){var h=Ly.indexOf(f);h!==-1&&Ly.splice(h,1),X3.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var f=X3.select(this);f.append("button").classed("notifier-close",!0).html("×").on("click",function(){f.transition().call(s)});for(var h=f.append("p"),v=l.split(//g),m=0;m{"use strict";var v0=rd().dfltConfig,J3=j3(),K3=m8.exports={};K3.log=function(){var e;if(v0.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};K3.warn=function(){var e;if(v0.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};K3.error=function(){var e;if(v0.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var o_=me((eye,y8)=>{"use strict";y8.exports=function(){}});var Q3=me((tye,g8)=>{"use strict";g8.exports=function(t,r){if(r instanceof RegExp){for(var i=r.toString(),a=0;a{_8.exports=qj;function qj(){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 w8=me((aye,b8)=>{b8.exports=Nj;function Nj(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var A8=me((iye,T8)=>{T8.exports=Bj;function Bj(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var $3=me((nye,M8)=>{M8.exports=Oj;function Oj(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 k8=me((oye,S8)=>{S8.exports=Uj;function Uj(e,t){if(e===t){var r=t[1],i=t[2],a=t[3],s=t[6],l=t[7],f=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=s,e[11]=t[14],e[12]=a,e[13]=l,e[14]=f}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var E8=me((sye,C8)=>{C8.exports=Vj;function Vj(e,t){var r=t[0],i=t[1],a=t[2],s=t[3],l=t[4],f=t[5],h=t[6],v=t[7],m=t[8],_=t[9],T=t[10],S=t[11],C=t[12],D=t[13],E=t[14],I=t[15],B=r*f-i*l,q=r*h-a*l,z=r*v-s*l,O=i*h-a*f,H=i*v-s*f,V=a*v-s*h,W=m*D-_*C,J=m*E-T*C,te=m*I-S*C,ne=_*E-T*D,oe=_*I-S*D,fe=T*I-S*E,de=B*fe-q*oe+z*ne+O*te-H*J+V*W;return de?(de=1/de,e[0]=(f*fe-h*oe+v*ne)*de,e[1]=(a*oe-i*fe-s*ne)*de,e[2]=(D*V-E*H+I*O)*de,e[3]=(T*H-_*V-S*O)*de,e[4]=(h*te-l*fe-v*J)*de,e[5]=(r*fe-a*te+s*J)*de,e[6]=(E*z-C*V-I*q)*de,e[7]=(m*V-T*z+S*q)*de,e[8]=(l*oe-f*te+v*W)*de,e[9]=(i*te-r*oe-s*W)*de,e[10]=(C*H-D*z+I*B)*de,e[11]=(_*z-m*H-S*B)*de,e[12]=(f*J-l*ne-h*W)*de,e[13]=(r*ne-i*J+a*W)*de,e[14]=(D*q-C*O-E*B)*de,e[15]=(m*O-_*q+T*B)*de,e):null}});var D8=me((lye,L8)=>{L8.exports=Hj;function Hj(e,t){var r=t[0],i=t[1],a=t[2],s=t[3],l=t[4],f=t[5],h=t[6],v=t[7],m=t[8],_=t[9],T=t[10],S=t[11],C=t[12],D=t[13],E=t[14],I=t[15];return e[0]=f*(T*I-S*E)-_*(h*I-v*E)+D*(h*S-v*T),e[1]=-(i*(T*I-S*E)-_*(a*I-s*E)+D*(a*S-s*T)),e[2]=i*(h*I-v*E)-f*(a*I-s*E)+D*(a*v-s*h),e[3]=-(i*(h*S-v*T)-f*(a*S-s*T)+_*(a*v-s*h)),e[4]=-(l*(T*I-S*E)-m*(h*I-v*E)+C*(h*S-v*T)),e[5]=r*(T*I-S*E)-m*(a*I-s*E)+C*(a*S-s*T),e[6]=-(r*(h*I-v*E)-l*(a*I-s*E)+C*(a*v-s*h)),e[7]=r*(h*S-v*T)-l*(a*S-s*T)+m*(a*v-s*h),e[8]=l*(_*I-S*D)-m*(f*I-v*D)+C*(f*S-v*_),e[9]=-(r*(_*I-S*D)-m*(i*I-s*D)+C*(i*S-s*_)),e[10]=r*(f*I-v*D)-l*(i*I-s*D)+C*(i*v-s*f),e[11]=-(r*(f*S-v*_)-l*(i*S-s*_)+m*(i*v-s*f)),e[12]=-(l*(_*E-T*D)-m*(f*E-h*D)+C*(f*T-h*_)),e[13]=r*(_*E-T*D)-m*(i*E-a*D)+C*(i*T-a*_),e[14]=-(r*(f*E-h*D)-l*(i*E-a*D)+C*(i*h-a*f)),e[15]=r*(f*T-h*_)-l*(i*T-a*_)+m*(i*h-a*f),e}});var z8=me((uye,P8)=>{P8.exports=Gj;function Gj(e){var t=e[0],r=e[1],i=e[2],a=e[3],s=e[4],l=e[5],f=e[6],h=e[7],v=e[8],m=e[9],_=e[10],T=e[11],S=e[12],C=e[13],D=e[14],E=e[15],I=t*l-r*s,B=t*f-i*s,q=t*h-a*s,z=r*f-i*l,O=r*h-a*l,H=i*h-a*f,V=v*C-m*S,W=v*D-_*S,J=v*E-T*S,te=m*D-_*C,ne=m*E-T*C,oe=_*E-T*D;return I*oe-B*ne+q*te+z*J-O*W+H*V}});var R8=me((fye,I8)=>{I8.exports=Zj;function Zj(e,t,r){var i=t[0],a=t[1],s=t[2],l=t[3],f=t[4],h=t[5],v=t[6],m=t[7],_=t[8],T=t[9],S=t[10],C=t[11],D=t[12],E=t[13],I=t[14],B=t[15],q=r[0],z=r[1],O=r[2],H=r[3];return e[0]=q*i+z*f+O*_+H*D,e[1]=q*a+z*h+O*T+H*E,e[2]=q*s+z*v+O*S+H*I,e[3]=q*l+z*m+O*C+H*B,q=r[4],z=r[5],O=r[6],H=r[7],e[4]=q*i+z*f+O*_+H*D,e[5]=q*a+z*h+O*T+H*E,e[6]=q*s+z*v+O*S+H*I,e[7]=q*l+z*m+O*C+H*B,q=r[8],z=r[9],O=r[10],H=r[11],e[8]=q*i+z*f+O*_+H*D,e[9]=q*a+z*h+O*T+H*E,e[10]=q*s+z*v+O*S+H*I,e[11]=q*l+z*m+O*C+H*B,q=r[12],z=r[13],O=r[14],H=r[15],e[12]=q*i+z*f+O*_+H*D,e[13]=q*a+z*h+O*T+H*E,e[14]=q*s+z*v+O*S+H*I,e[15]=q*l+z*m+O*C+H*B,e}});var q8=me((cye,F8)=>{F8.exports=Yj;function Yj(e,t,r){var i=r[0],a=r[1],s=r[2],l,f,h,v,m,_,T,S,C,D,E,I;return t===e?(e[12]=t[0]*i+t[4]*a+t[8]*s+t[12],e[13]=t[1]*i+t[5]*a+t[9]*s+t[13],e[14]=t[2]*i+t[6]*a+t[10]*s+t[14],e[15]=t[3]*i+t[7]*a+t[11]*s+t[15]):(l=t[0],f=t[1],h=t[2],v=t[3],m=t[4],_=t[5],T=t[6],S=t[7],C=t[8],D=t[9],E=t[10],I=t[11],e[0]=l,e[1]=f,e[2]=h,e[3]=v,e[4]=m,e[5]=_,e[6]=T,e[7]=S,e[8]=C,e[9]=D,e[10]=E,e[11]=I,e[12]=l*i+m*a+C*s+t[12],e[13]=f*i+_*a+D*s+t[13],e[14]=h*i+T*a+E*s+t[14],e[15]=v*i+S*a+I*s+t[15]),e}});var B8=me((hye,N8)=>{N8.exports=Wj;function Wj(e,t,r){var i=r[0],a=r[1],s=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*s,e[9]=t[9]*s,e[10]=t[10]*s,e[11]=t[11]*s,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var U8=me((vye,O8)=>{O8.exports=Xj;function Xj(e,t,r,i){var a=i[0],s=i[1],l=i[2],f=Math.sqrt(a*a+s*s+l*l),h,v,m,_,T,S,C,D,E,I,B,q,z,O,H,V,W,J,te,ne,oe,fe,de,Me;return Math.abs(f)<1e-6?null:(f=1/f,a*=f,s*=f,l*=f,h=Math.sin(r),v=Math.cos(r),m=1-v,_=t[0],T=t[1],S=t[2],C=t[3],D=t[4],E=t[5],I=t[6],B=t[7],q=t[8],z=t[9],O=t[10],H=t[11],V=a*a*m+v,W=s*a*m+l*h,J=l*a*m-s*h,te=a*s*m-l*h,ne=s*s*m+v,oe=l*s*m+a*h,fe=a*l*m+s*h,de=s*l*m-a*h,Me=l*l*m+v,e[0]=_*V+D*W+q*J,e[1]=T*V+E*W+z*J,e[2]=S*V+I*W+O*J,e[3]=C*V+B*W+H*J,e[4]=_*te+D*ne+q*oe,e[5]=T*te+E*ne+z*oe,e[6]=S*te+I*ne+O*oe,e[7]=C*te+B*ne+H*oe,e[8]=_*fe+D*de+q*Me,e[9]=T*fe+E*de+z*Me,e[10]=S*fe+I*de+O*Me,e[11]=C*fe+B*de+H*Me,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var H8=me((dye,V8)=>{V8.exports=jj;function jj(e,t,r){var i=Math.sin(r),a=Math.cos(r),s=t[4],l=t[5],f=t[6],h=t[7],v=t[8],m=t[9],_=t[10],T=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=s*a+v*i,e[5]=l*a+m*i,e[6]=f*a+_*i,e[7]=h*a+T*i,e[8]=v*a-s*i,e[9]=m*a-l*i,e[10]=_*a-f*i,e[11]=T*a-h*i,e}});var Z8=me((pye,G8)=>{G8.exports=Jj;function Jj(e,t,r){var i=Math.sin(r),a=Math.cos(r),s=t[0],l=t[1],f=t[2],h=t[3],v=t[8],m=t[9],_=t[10],T=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*a-v*i,e[1]=l*a-m*i,e[2]=f*a-_*i,e[3]=h*a-T*i,e[8]=s*i+v*a,e[9]=l*i+m*a,e[10]=f*i+_*a,e[11]=h*i+T*a,e}});var W8=me((mye,Y8)=>{Y8.exports=Kj;function Kj(e,t,r){var i=Math.sin(r),a=Math.cos(r),s=t[0],l=t[1],f=t[2],h=t[3],v=t[4],m=t[5],_=t[6],T=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*a+v*i,e[1]=l*a+m*i,e[2]=f*a+_*i,e[3]=h*a+T*i,e[4]=v*a-s*i,e[5]=m*a-l*i,e[6]=_*a-f*i,e[7]=T*a-h*i,e}});var j8=me((yye,X8)=>{X8.exports=Qj;function Qj(e,t,r){var i,a,s,l=r[0],f=r[1],h=r[2],v=Math.sqrt(l*l+f*f+h*h);return Math.abs(v)<1e-6?null:(v=1/v,l*=v,f*=v,h*=v,i=Math.sin(t),a=Math.cos(t),s=1-a,e[0]=l*l*s+a,e[1]=f*l*s+h*i,e[2]=h*l*s-f*i,e[3]=0,e[4]=l*f*s-h*i,e[5]=f*f*s+a,e[6]=h*f*s+l*i,e[7]=0,e[8]=l*h*s+f*i,e[9]=f*h*s-l*i,e[10]=h*h*s+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var K8=me((gye,J8)=>{J8.exports=$j;function $j(e,t,r){var i=t[0],a=t[1],s=t[2],l=t[3],f=i+i,h=a+a,v=s+s,m=i*f,_=i*h,T=i*v,S=a*h,C=a*v,D=s*v,E=l*f,I=l*h,B=l*v;return e[0]=1-(S+D),e[1]=_+B,e[2]=T-I,e[3]=0,e[4]=_-B,e[5]=1-(m+D),e[6]=C+E,e[7]=0,e[8]=T+I,e[9]=C-E,e[10]=1-(m+S),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var $8=me((_ye,Q8)=>{Q8.exports=eJ;function eJ(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var tS=me((xye,eS)=>{eS.exports=tJ;function tJ(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var aS=me((bye,rS)=>{rS.exports=rJ;function rJ(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var nS=me((wye,iS)=>{iS.exports=aJ;function aJ(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var sS=me((Tye,oS)=>{oS.exports=iJ;function iJ(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var ew=me((Aye,lS)=>{lS.exports=nJ;function nJ(e,t){var r=t[0],i=t[1],a=t[2],s=t[3],l=r+r,f=i+i,h=a+a,v=r*l,m=i*l,_=i*f,T=a*l,S=a*f,C=a*h,D=s*l,E=s*f,I=s*h;return e[0]=1-_-C,e[1]=m+I,e[2]=T-E,e[3]=0,e[4]=m-I,e[5]=1-v-C,e[6]=S+D,e[7]=0,e[8]=T+E,e[9]=S-D,e[10]=1-v-_,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var fS=me((Mye,uS)=>{uS.exports=oJ;function oJ(e,t,r,i,a,s,l){var f=1/(r-t),h=1/(a-i),v=1/(s-l);return e[0]=s*2*f,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s*2*h,e[6]=0,e[7]=0,e[8]=(r+t)*f,e[9]=(a+i)*h,e[10]=(l+s)*v,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*s*2*v,e[15]=0,e}});var hS=me((Sye,cS)=>{cS.exports=sJ;function sJ(e,t,r,i,a){var s=1/Math.tan(t/2),l=1/(i-a);return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+i)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*i*l,e[15]=0,e}});var dS=me((kye,vS)=>{vS.exports=lJ;function lJ(e,t,r,i){var a=Math.tan(t.upDegrees*Math.PI/180),s=Math.tan(t.downDegrees*Math.PI/180),l=Math.tan(t.leftDegrees*Math.PI/180),f=Math.tan(t.rightDegrees*Math.PI/180),h=2/(l+f),v=2/(a+s);return e[0]=h,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=v,e[6]=0,e[7]=0,e[8]=-((l-f)*h*.5),e[9]=(a-s)*v*.5,e[10]=i/(r-i),e[11]=-1,e[12]=0,e[13]=0,e[14]=i*r/(r-i),e[15]=0,e}});var mS=me((Cye,pS)=>{pS.exports=uJ;function uJ(e,t,r,i,a,s,l){var f=1/(t-r),h=1/(i-a),v=1/(s-l);return e[0]=-2*f,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*h,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*v,e[11]=0,e[12]=(t+r)*f,e[13]=(a+i)*h,e[14]=(l+s)*v,e[15]=1,e}});var gS=me((Eye,yS)=>{var fJ=$3();yS.exports=cJ;function cJ(e,t,r,i){var a,s,l,f,h,v,m,_,T,S,C=t[0],D=t[1],E=t[2],I=i[0],B=i[1],q=i[2],z=r[0],O=r[1],H=r[2];return Math.abs(C-z)<1e-6&&Math.abs(D-O)<1e-6&&Math.abs(E-H)<1e-6?fJ(e):(m=C-z,_=D-O,T=E-H,S=1/Math.sqrt(m*m+_*_+T*T),m*=S,_*=S,T*=S,a=B*T-q*_,s=q*m-I*T,l=I*_-B*m,S=Math.sqrt(a*a+s*s+l*l),S?(S=1/S,a*=S,s*=S,l*=S):(a=0,s=0,l=0),f=_*l-T*s,h=T*a-m*l,v=m*s-_*a,S=Math.sqrt(f*f+h*h+v*v),S?(S=1/S,f*=S,h*=S,v*=S):(f=0,h=0,v=0),e[0]=a,e[1]=f,e[2]=m,e[3]=0,e[4]=s,e[5]=h,e[6]=_,e[7]=0,e[8]=l,e[9]=v,e[10]=T,e[11]=0,e[12]=-(a*C+s*D+l*E),e[13]=-(f*C+h*D+v*E),e[14]=-(m*C+_*D+T*E),e[15]=1,e)}});var xS=me((Lye,_S)=>{_S.exports=hJ;function hJ(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var tw=me((Dye,bS)=>{bS.exports={create:x8(),clone:w8(),copy:A8(),identity:$3(),transpose:k8(),invert:E8(),adjoint:D8(),determinant:z8(),multiply:R8(),translate:q8(),scale:B8(),rotate:U8(),rotateX:H8(),rotateY:Z8(),rotateZ:W8(),fromRotation:j8(),fromRotationTranslation:K8(),fromScaling:$8(),fromTranslation:tS(),fromXRotation:aS(),fromYRotation:nS(),fromZRotation:sS(),fromQuat:ew(),frustum:fS(),perspective:hS(),perspectiveFromFieldOfView:dS(),ortho:mS(),lookAt:gS(),str:xS()}});var s_=me(Cn=>{"use strict";var vJ=tw();Cn.init2dArray=function(e,t){for(var r=new Array(e),i=0;i{"use strict";var dJ=ja(),wS=Th(),pJ=s_(),mJ=tw();function yJ(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function gJ(e){var t=dJ.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function TS(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function _J(e,t){AS("global",e,t)}function AS(e,t,r){var i="plotly.js-style-"+e,a=document.getElementById(i);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",i),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var s=a.sheet;s?s.insertRule?s.insertRule(t+"{"+r+"}",0):s.addRule?s.addRule(t,r,0):wS.warn("addStyleRule failed"):wS.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function xJ(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&TS(r)}function bJ(e,t,r,i,a,s){var l=i.split(":"),f=a.split(":"),h="data-btn-style-event-added";s||(s=document),s.querySelectorAll(e).forEach(function(v){v.getAttribute(h)||(v.addEventListener("mouseenter",function(){var m=this.querySelector(r);m&&(m.style[l[0]]=l[1])}),v.addEventListener("mouseleave",function(){var m=this.querySelector(r);m&&(t&&this.matches(t)?m.style[l[0]]=l[1]:m.style[f[0]]=f[1])}),v.setAttribute(h,!0))})}function wJ(e){var t=SS(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(i){var a=MS(i);if(a){var s=pJ.convertCssMatrix(a);r=mJ.multiply(r,r,s)}}),r}function MS(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(i){return+i})}function SS(e){for(var t=[];TJ(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function TJ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function AJ(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}kS.exports={getGraphDiv:yJ,isPlotDiv:gJ,removeElement:TS,addStyleRule:_J,addRelatedStyleRule:AS,deleteRelatedStyleRule:xJ,setStyleOnHover:bJ,getFullTransformMatrix:wJ,getElementTransformMatrix:MS,getElementAndAncestors:SS,equalDomRects:AJ}});var Py=me((Iye,CS)=>{"use strict";CS.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var il=me((Rye,RS)=>{"use strict";var LS=mn().extendFlat,MJ=cc(),DS={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},PS={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},SJ=DS.flags.slice().concat(["fullReplot"]),kJ=PS.flags.slice().concat("layoutReplot");RS.exports={traces:DS,layout:PS,traceFlags:function(){return ES(SJ)},layoutFlags:function(){return ES(kJ)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var i=r.split("+"),a=0;a{"use strict";rw.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};rw.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var aw=me((qye,FS)=>{"use strict";FS.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var nl=me(zy=>{"use strict";var qS=aw(),CJ=qS.FORMAT_LINK,EJ=qS.DATE_FORMAT_LINK;function LJ(e){var t=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(t?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,CJ,"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}".`,EJ,"for details on the date formatting syntax."].join(" ")}zy.templateFormatStringDescription=LJ;function iw(e){var t=e.description?" "+e.description:"",r=e.keys||[];if(r.length>0){for(var i=[],a=0;a{"use strict";function Ah(e,t){return t?t.d2l(e):e}function NS(e,t){return t?t.l2d(e):e}function DJ(e){return e.x0}function PJ(e){return e.x1}function zJ(e){return e.y0}function IJ(e){return e.y1}function BS(e){return e.x0shift||0}function OS(e){return e.x1shift||0}function US(e){return e.y0shift||0}function VS(e){return e.y1shift||0}function l_(e,t){return Ah(e.x1,t)+OS(e)-Ah(e.x0,t)-BS(e)}function u_(e,t,r){return Ah(e.y1,r)+VS(e)-Ah(e.y0,r)-US(e)}function RJ(e,t){return Math.abs(l_(e,t))}function FJ(e,t,r){return Math.abs(u_(e,t,r))}function qJ(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(l_(e,t),2)+Math.pow(u_(e,t,r),2))}function NJ(e,t){return NS((Ah(e.x1,t)+OS(e)+Ah(e.x0,t)+BS(e))/2,t)}function BJ(e,t,r){return NS((Ah(e.y1,r)+VS(e)+Ah(e.y0,r)+US(e))/2,r)}function OJ(e,t,r){return e.type!=="line"?void 0:u_(e,t,r)/l_(e,t)}HS.exports={x0:DJ,x1:PJ,y0:zJ,y1:IJ,slope:OJ,dx:l_,dy:u_,width:RJ,height:FJ,length:qJ,xcenter:NJ,ycenter:BJ}});var YS=me((Oye,ZS)=>{"use strict";var UJ=il().overrideAll,ad=ms(),GS=qo(),VJ=hc().dash,Mh=mn().extendFlat,HJ=nl().shapeTexttemplateAttrs,GJ=f_();ZS.exports=UJ({newshape:{visible:Mh({},ad.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Mh({},ad.legend,{}),legendgroup:Mh({},ad.legendgroup,{}),legendgrouptitle:{text:Mh({},ad.legendgrouptitle.text,{}),font:GS({})},legendrank:Mh({},ad.legendrank,{}),legendwidth:Mh({},ad.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Mh({},VJ,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Mh({},ad.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:HJ({newshape:!0},{keys:Object.keys(GJ)}),font:GS({}),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 XS=me((Uye,WS)=>{"use strict";var ZJ=hc().dash,YJ=mn().extendFlat;WS.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:YJ({},ZJ,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}});var c_=me((Vye,jS)=>{"use strict";jS.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var d0=me((Hye,$S)=>{"use strict";var nw=qo(),WJ=Py(),h_=Af(),JS=YS(),KS=XS(),XJ=c_(),QS=mn().extendFlat,v_=nw({editType:"calc"});v_.family.dflt='"Open Sans", verdana, arial, sans-serif';v_.size.dflt=12;v_.color.dflt=h_.defaultLine;$S.exports={font:v_,title:{text:{valType:"string",editType:"layoutstyle"},font:nw({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:nw({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:QS(XJ({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:h_.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:h_.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:h_.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:JS.newshape,activeshape:JS.activeshape,newselection:KS.newselection,activeselection:KS.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:QS({},WJ.transition,{editType:"none"})}});var e9=m7(()=>{});var jJ={};var t9=m7(()=>{e9()});var la=me(Pa=>{"use strict";var p0=Th(),r9=o_(),a9=Q3(),JJ=cc(),KJ=Dy().addStyleRule,i9=mn(),QJ=ms(),$J=d0(),eK=i9.extendFlat,ow=i9.extendDeepAll;Pa.modules={};Pa.allCategories={};Pa.allTypes=[];Pa.subplotsRegistry={};Pa.componentsRegistry={};Pa.layoutArrayContainers=[];Pa.layoutArrayRegexes=[];Pa.traceLayoutAttributes={};Pa.localeRegistry={};Pa.apiMethodRegistry={};Pa.collectableSubplotTypes=null;Pa.register=function(t){if(Pa.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var oK=s0().timeFormat,p9=Da(),sw=Th(),kh=u0().mod,g0=Zi(),Gl=g0.BADNUM,Fs=g0.ONEDAY,Iy=g0.ONEHOUR,Sh=g0.ONEMIN,y0=g0.ONESEC,Ry=g0.EPOCHJD,vc=la(),u9=s0().utcFormat,sK=/^\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,lK=/^\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,f9=new Date().getFullYear()-70;function dc(e){return e&&vc.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}En.dateTick0=function(e,t){var r=uK(e,!!t);if(t<2)return r;var i=En.dateTime2ms(r,e);return i+=Fs*(t-1),En.ms2DateTime(i,0,e)};function uK(e,t){return dc(e)?t?vc.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:vc.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}En.dfltRange=function(e){return dc(e)?vc.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};En.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var p_,m_;En.dateTime2ms=function(e,t){if(En.isJSDate(e)){var r=e.getTimezoneOffset()*Sh,i=(e.getUTCMinutes()-e.getMinutes())*Sh+(e.getUTCSeconds()-e.getSeconds())*y0+(e.getUTCMilliseconds()-e.getMilliseconds());if(i){var a=3*Sh;r=r-a/2+kh(i-r+a/2,a)}return e=Number(e)-r,e>=p_&&e<=m_?e:Gl}if(typeof e!="string"&&typeof e!="number")return Gl;e=String(e);var s=dc(t),l=e.charAt(0);s&&(l==="G"||l==="g")&&(e=e.substr(1),t="");var f=s&&t.substr(0,7)==="chinese",h=e.match(f?lK:sK);if(!h)return Gl;var v=h[1],m=h[3]||"1",_=Number(h[5]||1),T=Number(h[7]||0),S=Number(h[9]||0),C=Number(h[11]||0);if(s){if(v.length===2)return Gl;v=Number(v);var D;try{var E=vc.getComponentMethod("calendars","getCal")(t);if(f){var I=m.charAt(m.length-1)==="i";m=parseInt(m,10),D=E.newDate(v,E.toMonthIndex(v,m,I),_)}else D=E.newDate(v,Number(m),_)}catch(q){return Gl}return D?(D.toJD()-Ry)*Fs+T*Iy+S*Sh+C*y0:Gl}v.length===2?v=(Number(v)+2e3-f9)%100+f9:v=Number(v),m-=1;var B=new Date(Date.UTC(2e3,m,_,T,S));return B.setUTCFullYear(v),B.getUTCMonth()!==m||B.getUTCDate()!==_?Gl:B.getTime()+C*y0};p_=En.MIN_MS=En.dateTime2ms("-9999");m_=En.MAX_MS=En.dateTime2ms("9999-12-31 23:59:59.9999");En.isDateTime=function(e,t){return En.dateTime2ms(e,t)!==Gl};function m0(e,t){return String(e+Math.pow(10,t)).substr(1)}var d_=90*Fs,c9=3*Iy,h9=5*Sh;En.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=p_&&e<=m_))return Gl;t||(t=0);var i=Math.floor(kh(e+.05,1)*10),a=Math.round(e-i/10),s,l,f,h,v,m;if(dc(r)){var _=Math.floor(a/Fs)+Ry,T=Math.floor(kh(e,Fs));try{s=vc.getComponentMethod("calendars","getCal")(r).fromJD(_).formatDate("yyyy-mm-dd")}catch(S){s=u9("G%Y-%m-%d")(new Date(a))}if(s.charAt(0)==="-")for(;s.length<11;)s="-0"+s.substr(1);else for(;s.length<10;)s="0"+s;l=t=p_+Fs&&e<=m_-Fs))return Gl;var t=Math.floor(kh(e+.05,1)*10),r=new Date(Math.round(e-t/10)),i=oK("%Y-%m-%d")(r),a=r.getHours(),s=r.getMinutes(),l=r.getSeconds(),f=r.getUTCMilliseconds()*10+t;return m9(i,a,s,l,f)};function m9(e,t,r,i,a){if((t||r||i||a)&&(e+=" "+m0(t,2)+":"+m0(r,2),(i||a)&&(e+=":"+m0(i,2),a))){for(var s=4;a%10===0;)s-=1,a/=10;e+="."+m0(a,s)}return e}En.cleanDate=function(e,t,r){if(e===Gl)return t;if(En.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(dc(r))return sw.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=En.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!En.isDateTime(e,r))return sw.error("unrecognized date",e),t;return e};var fK=/%\d?f/g,cK=/%h/g,hK={1:"1",2:"1",3:"2",4:"2"};function v9(e,t,r,i){e=e.replace(fK,function(s){var l=Math.min(+s.charAt(1)||6,6),f=(t/1e3%1+2).toFixed(l).substr(2).replace(/0+$/,"")||"0";return f});var a=new Date(Math.floor(t+.05));if(e=e.replace(cK,function(){return hK[r("%q")(a)]}),dc(i))try{e=vc.getComponentMethod("calendars","worldCalFmt")(e,t,i)}catch(s){return"Invalid"}return r(e)(a)}var vK=[59,59.9,59.99,59.999,59.9999];function dK(e,t){var r=kh(e+.05,Fs),i=m0(Math.floor(r/Iy),2)+":"+m0(kh(Math.floor(r/Sh),60),2);if(t!=="M"){p9(t)||(t=0);var a=Math.min(kh(e/y0,60),vK[t]),s=(100+a).toFixed(t).substr(1);t>0&&(s=s.replace(/0+$/,"").replace(/[\.]$/,"")),i+=":"+s}return i}En.formatDate=function(e,t,r,i,a,s){if(a=dc(a)&&a,!t)if(r==="y")t=s.year;else if(r==="m")t=s.month;else if(r==="d")t=s.dayMonth+` +`+s.year;else return dK(e,r)+` +`+v9(s.dayMonthYear,e,i,a);return v9(t,e,i,a)};var d9=3*Fs;En.incrementMonth=function(e,t,r){r=dc(r)&&r;var i=kh(e,Fs);if(e=Math.round(e-i),r)try{var a=Math.round(e/Fs)+Ry,s=vc.getComponentMethod("calendars","getCal")(r),l=s.fromJD(a);return t%12?s.add(l,t,"m"):s.add(l,t/12,"y"),(l.toJD()-Ry)*Fs+i}catch(h){sw.error("invalid ms "+e+" in calendar "+r)}var f=new Date(e+d9);return f.setUTCMonth(f.getUTCMonth()+t)+i-d9};En.findExactDates=function(e,t){for(var r=0,i=0,a=0,s=0,l,f,h=dc(t)&&vc.getComponentMethod("calendars","getCal")(t),v=0;v{"use strict";g9.exports=function(t){return t}});var uw=me(pc=>{"use strict";var pK=Da(),mK=Th(),yK=y_(),gK=Zi().BADNUM,lw=1e-9;pc.findBin=function(e,t,r){if(pK(t.start))return r?Math.ceil((e-t.start)/t.size-lw)-1:Math.floor((e-t.start)/t.size+lw);var i=0,a=t.length,s=0,l=a>1?(t[a-1]-t[0])/(a-1):1,f,h;for(l>=0?h=r?_K:xK:h=r?wK:bK,e+=l*lw*(r?-1:1)*(l>=0?1:-1);i90&&mK.log("Long binary search..."),i-1};function _K(e,t){return et}function wK(e,t){return e>=t}pc.sorterAsc=function(e,t){return e-t};pc.sorterDes=function(e,t){return t-e};pc.distinctVals=function(e){var t=e.slice();t.sort(pc.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===gK;r--);for(var i=t[r]-t[0]||1,a=i/(r||1)/1e4,s=[],l,f=0;f<=r;f++){var h=t[f],v=h-l;l===void 0?(s.push(h),l=h):v>a&&(i=Math.min(i,v),s.push(h),l=h)}return{vals:s,minDiff:i}};pc.roundUp=function(e,t,r){for(var i=0,a=t.length-1,s,l=0,f=r?0:1,h=r?1:0,v=r?Math.ceil:Math.floor;i0&&(i=1),r&&i)return e.sort(t)}return i?e:e.reverse()};pc.findIndexOfMin=function(e,t){t=t||yK;for(var r=1/0,i,a=0;a{"use strict";_9.exports=function(t){return Object.keys(t).sort()}});var x9=me(Ln=>{"use strict";var Fy=Da(),TK=al().isArrayOrTypedArray;Ln.aggNums=function(e,t,r,i){var a,s;if((!i||i>r.length)&&(i=r.length),Fy(t)||(t=!1),TK(r[0])){for(s=new Array(i),a=0;ae.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var M9=me(($ye,A9)=>{"use strict";var b9=u0(),fw=b9.mod,AK=b9.modHalf,qy=Math.PI,Ch=2*qy;function MK(e){return e/180*qy}function SK(e){return e/qy*180}function cw(e){return Math.abs(e[1]-e[0])>Ch-1e-14}function w9(e,t){return AK(t-e,Ch)}function kK(e,t){return Math.abs(w9(e,t))}function T9(e,t){if(cw(t))return!0;var r,i;t[0]i&&(i+=Ch);var a=fw(e,Ch),s=a+Ch;return a>=r&&a<=i||s>=r&&s<=i}function CK(e,t,r,i){if(!T9(t,i))return!1;var a,s;return r[0]=a&&e<=s}function hw(e,t,r,i,a,s,l){a=a||0,s=s||0;var f=cw([r,i]),h,v,m,_,T;f?(h=0,v=qy,m=Ch):r{"use strict";id.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};id.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};id.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};id.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};id.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};id.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var E9=me(nd=>{"use strict";var vw=u0().mod;nd.segmentsIntersect=C9;function C9(e,t,r,i,a,s,l,f){var h=r-e,v=a-e,m=l-a,_=i-t,T=s-t,S=f-s,C=h*S-m*_;if(C===0)return null;var D=(v*S-m*T)/C,E=(v*_-h*T)/C;return E<0||E>1||D<0||D>1?null:{x:e+h*D,y:t+_*D}}nd.segmentDistance=function(t,r,i,a,s,l,f,h){if(C9(t,r,i,a,s,l,f,h))return 0;var v=i-t,m=a-r,_=f-s,T=h-l,S=v*v+m*m,C=_*_+T*T,D=Math.min(__(v,m,S,s-t,l-r),__(v,m,S,f-t,h-r),__(_,T,C,t-s,r-l),__(_,T,C,i-s,a-l));return Math.sqrt(D)};function __(e,t,r,i,a){var s=i*e+a*t;if(s<0)return i*i+a*a;if(s>r){var l=i-e,f=a-t;return l*l+f*f}else{var h=i*t-a*e;return h*h/r}}var x_,dw,k9;nd.getTextLocation=function(t,r,i,a){if((t!==dw||a!==k9)&&(x_={},dw=t,k9=a),x_[i])return x_[i];var s=t.getPointAtLength(vw(i-a/2,r)),l=t.getPointAtLength(vw(i+a/2,r)),f=Math.atan((l.y-s.y)/(l.x-s.x)),h=t.getPointAtLength(vw(i,r)),v=(h.x*4+s.x+l.x)/6,m=(h.y*4+s.y+l.y)/6,_={x:v,y:m,theta:f};return x_[i]=_,_};nd.clearLocationCache=function(){dw=null};nd.getVisibleSegment=function(t,r,i){var a=r.left,s=r.right,l=r.top,f=r.bottom,h=0,v=t.getTotalLength(),m=v,_,T;function S(D){var E=t.getPointAtLength(D);D===0?_=E:D===v&&(T=E);var I=E.xs?E.x-s:0,B=E.yf?E.y-f:0;return Math.sqrt(I*I+B*B)}for(var C=S(h);C;){if(h+=C+i,h>m)return;C=S(h)}for(C=S(m);C;){if(m-=C+i,h>m)return;C=S(m)}return{min:h,max:m,len:m-h,total:v,isClosed:h===0&&m===v&&Math.abs(_.x-T.x)<.1&&Math.abs(_.y-T.y)<.1}};nd.findPointOnPath=function(t,r,i,a){a=a||{};for(var s=a.pathLength||t.getTotalLength(),l=a.tolerance||.001,f=a.iterationLimit||30,h=t.getPointAtLength(0)[i]>t.getPointAtLength(s)[i]?-1:1,v=0,m=0,_=s,T,S,C;v0?_=T:m=T,v++}return S}});var b_=me(Ny=>{"use strict";var mc={};Ny.throttle=function(t,r,i){var a=mc[t],s=Date.now();if(!a){for(var l in mc)mc[l].tsa.ts+r){f();return}a.timer=setTimeout(function(){f(),a.timer=null},r)};Ny.done=function(e){var t=mc[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var i=t.onDone;t.onDone=function(){i&&i(),r(),t.onDone=null}})};Ny.clear=function(e){if(e)L9(mc[e]),delete mc[e];else for(var t in mc)Ny.clear(t)};function L9(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var P9=me((age,D9)=>{"use strict";D9.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var z9=me((ige,w_)=>{"use strict";w_.exports=pw;w_.exports.isMobile=pw;w_.exports.default=pw;var PK=/(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,zK=/CrOS/,IK=/android|ipad|playbook|silk/i;function pw(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=PK.test(t)&&!zK.test(t)||!!e.tablet&&IK.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var R9=me((nge,I9)=>{"use strict";var RK=Da(),FK=z9();I9.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=qK(),typeof r!="string")return!0;var i=FK({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!i)for(var a=r.split(" "),s=1;s-1;f--){var h=a[f];if(h.substr(0,8)==="Version/"){var v=h.substr(8).split(".")[0];if(RK(v)&&(v=+v),v>=13)return!0}}}return i};function qK(){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 q9=me((oge,F9)=>{"use strict";var NK=ja();F9.exports=function(t,r,i){var a=t.selectAll("g."+i.replace(/\s/g,".")).data(r,function(l){return l[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",i),a.order();var s=t.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(l){l[0][s]=NK.select(this)}),a}});var B9=me((sge,N9)=>{"use strict";var BK=la();N9.exports=function(t,r){for(var i=t._context.locale,a=0;a<2;a++){for(var s=t._context.locales,l=0;l<2;l++){var f=(s[i]||{}).dictionary;if(f){var h=f[r];if(h)return h}s=BK.localeRegistry}var v=i.split("-")[0];if(v===i)break;i=v}return r}});var U9=me((lge,O9)=>{"use strict";O9.exports=function(t){for(var r={},i=[],a=0,s=0;s{"use strict";V9.exports=function(t){for(var r=VK(t)?UK:OK,i=[],a=0;a{"use strict";G9.exports=function(t,r){if(!r)return t;var i=1/Math.abs(r),a=i>1?(i*t+i*r)/i:t+r,s=String(a).length;if(s>16){var l=String(r).length,f=String(t).length;if(s>=f+l){var h=parseFloat(a).toPrecision(12);h.indexOf("e+")===-1&&(a=+h)}}return a}});var W9=me((cge,Y9)=>{"use strict";var HK=Da(),GK=Zi().BADNUM,ZK=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Y9.exports=function(t){return typeof t=="string"&&(t=t.replace(ZK,"")),HK(t)?Number(t):GK}});var Bt=me((hge,ok)=>{"use strict";var By=ja(),YK=s0().utcFormat,WK=N3().format,$9=Da(),ek=Zi(),tk=ek.FP_SAFE,XK=-tk,X9=ek.BADNUM,tt=ok.exports={};tt.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:t==="0.f"?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var j9={};tt.warnBadFormat=function(e){var t=String(e);j9[t]||(j9[t]=1,tt.warn('encountered bad format: "'+t+'"'))};tt.noFormat=function(e){return String(e)};tt.numberFormat=function(e){var t;try{t=WK(tt.adjustFormat(e))}catch(r){return tt.warnBadFormat(e),tt.noFormat}return t};tt.nestedProperty=wy();tt.keyedContainer=B7();tt.relativeAttr=U7();tt.isPlainObject=cc();tt.toLogRange=$1();tt.relinkPrivateKeys=Z7();var Eh=al();tt.isArrayBuffer=Eh.isArrayBuffer;tt.isTypedArray=Eh.isTypedArray;tt.isArrayOrTypedArray=Eh.isArrayOrTypedArray;tt.isArray1D=Eh.isArray1D;tt.ensureArray=Eh.ensureArray;tt.concat=Eh.concat;tt.maxRowLength=Eh.maxRowLength;tt.minRowLength=Eh.minRowLength;var rk=u0();tt.mod=rk.mod;tt.modHalf=rk.modHalf;var Lh=f8();tt.valObjectMeta=Lh.valObjectMeta;tt.coerce=Lh.coerce;tt.coerce2=Lh.coerce2;tt.coerceFont=Lh.coerceFont;tt.coercePattern=Lh.coercePattern;tt.coerceHoverinfo=Lh.coerceHoverinfo;tt.coerceSelectionMarkerOpacity=Lh.coerceSelectionMarkerOpacity;tt.validate=Lh.validate;var ol=y9();tt.dateTime2ms=ol.dateTime2ms;tt.isDateTime=ol.isDateTime;tt.ms2DateTime=ol.ms2DateTime;tt.ms2DateTimeLocal=ol.ms2DateTimeLocal;tt.cleanDate=ol.cleanDate;tt.isJSDate=ol.isJSDate;tt.formatDate=ol.formatDate;tt.incrementMonth=ol.incrementMonth;tt.dateTick0=ol.dateTick0;tt.dfltRange=ol.dfltRange;tt.findExactDates=ol.findExactDates;tt.MIN_MS=ol.MIN_MS;tt.MAX_MS=ol.MAX_MS;var od=uw();tt.findBin=od.findBin;tt.sorterAsc=od.sorterAsc;tt.sorterDes=od.sorterDes;tt.distinctVals=od.distinctVals;tt.roundUp=od.roundUp;tt.sort=od.sort;tt.findIndexOfMin=od.findIndexOfMin;tt.sortObjectKeys=g_();var yc=x9();tt.aggNums=yc.aggNums;tt.len=yc.len;tt.mean=yc.mean;tt.geometricMean=yc.geometricMean;tt.median=yc.median;tt.midRange=yc.midRange;tt.variance=yc.variance;tt.stdev=yc.stdev;tt.interp=yc.interp;var Pu=s_();tt.init2dArray=Pu.init2dArray;tt.transposeRagged=Pu.transposeRagged;tt.dot=Pu.dot;tt.translationMatrix=Pu.translationMatrix;tt.rotationMatrix=Pu.rotationMatrix;tt.rotationXYMatrix=Pu.rotationXYMatrix;tt.apply3DTransform=Pu.apply3DTransform;tt.apply2DTransform=Pu.apply2DTransform;tt.apply2DTransform2=Pu.apply2DTransform2;tt.convertCssMatrix=Pu.convertCssMatrix;tt.inverseTransformMatrix=Pu.inverseTransformMatrix;var Sf=M9();tt.deg2rad=Sf.deg2rad;tt.rad2deg=Sf.rad2deg;tt.angleDelta=Sf.angleDelta;tt.angleDist=Sf.angleDist;tt.isFullCircle=Sf.isFullCircle;tt.isAngleInsideSector=Sf.isAngleInsideSector;tt.isPtInsideSector=Sf.isPtInsideSector;tt.pathArc=Sf.pathArc;tt.pathSector=Sf.pathSector;tt.pathAnnulus=Sf.pathAnnulus;var x0=S9();tt.isLeftAnchor=x0.isLeftAnchor;tt.isCenterAnchor=x0.isCenterAnchor;tt.isRightAnchor=x0.isRightAnchor;tt.isTopAnchor=x0.isTopAnchor;tt.isMiddleAnchor=x0.isMiddleAnchor;tt.isBottomAnchor=x0.isBottomAnchor;var b0=E9();tt.segmentsIntersect=b0.segmentsIntersect;tt.segmentDistance=b0.segmentDistance;tt.getTextLocation=b0.getTextLocation;tt.clearLocationCache=b0.clearLocationCache;tt.getVisibleSegment=b0.getVisibleSegment;tt.findPointOnPath=b0.findPointOnPath;var M_=mn();tt.extendFlat=M_.extendFlat;tt.extendDeep=M_.extendDeep;tt.extendDeepAll=M_.extendDeepAll;tt.extendDeepNoArrays=M_.extendDeepNoArrays;var mw=Th();tt.log=mw.log;tt.warn=mw.warn;tt.error=mw.error;var jK=c0();tt.counterRegex=jK.counter;var yw=b_();tt.throttle=yw.throttle;tt.throttleDone=yw.done;tt.clearThrottle=yw.clear;var zu=Dy();tt.getGraphDiv=zu.getGraphDiv;tt.isPlotDiv=zu.isPlotDiv;tt.removeElement=zu.removeElement;tt.addStyleRule=zu.addStyleRule;tt.addRelatedStyleRule=zu.addRelatedStyleRule;tt.deleteRelatedStyleRule=zu.deleteRelatedStyleRule;tt.setStyleOnHover=zu.setStyleOnHover;tt.getFullTransformMatrix=zu.getFullTransformMatrix;tt.getElementTransformMatrix=zu.getElementTransformMatrix;tt.getElementAndAncestors=zu.getElementAndAncestors;tt.equalDomRects=zu.equalDomRects;tt.clearResponsive=P9();tt.preserveDrawingBuffer=R9();tt.makeTraceGroups=q9();tt._=B9();tt.notifier=j3();tt.filterUnique=U9();tt.filterVisible=H9();tt.pushUnique=Q3();tt.increment=Z9();tt.cleanNumber=W9();tt.ensureNumber=function(t){return $9(t)?(t=Number(t),t>tk||t=t?!1:$9(e)&&e>=0&&e%1===0};tt.noop=o_();tt.identity=y_();tt.repeat=function(e,t){for(var r=new Array(t),i=0;ir?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};tt.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};tt.simpleMap=function(e,t,r,i,a){for(var s=e.length,l=new Array(s),f=0;f=Math.pow(2,r)?a>10?(tt.warn("randstr failed uniqueness"),l):e(t,r,i,(a||0)+1):l};tt.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(i){i[t]=e,r[i.name]=i,r.optionList.push(i)},r["_"+t]=e,r};tt.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,i=2*r,a=2*t-1,s=new Array(a),l=new Array(r),f,h,v,m;for(f=0;f=i&&(v-=i*Math.floor(v/i)),v<0?v=-1-v:v>=r&&(v=i-1-v),m+=e[v]*s[h];l[f]=m}return l};tt.syncOrAsync=function(e,t,r){var i,a;function s(){return tt.syncOrAsync(e,t,r)}for(;e.length;)if(a=e.splice(0,1)[0],i=a(t),i&&i.then)return i.then(s);return r&&r(t)};tt.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};tt.noneOrAll=function(e,t,r){if(e){var i=!1,a=!0,s,l;for(s=0;s0?a:0})};tt.fillArray=function(e,t,r,i){if(i=i||tt.identity,tt.isArrayOrTypedArray(e))for(var a=0;aQK.test(window.navigator.userAgent);var $K=/Firefox\/(\d+)\.\d+/;tt.getFirefoxVersion=function(){var e=$K.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};tt.isD3Selection=function(e){return e instanceof By.selection};tt.ensureSingle=function(e,t,r,i){var a=e.select(t+(r?"."+r:""));if(a.size())return a;var s=e.append(t);return r&&s.classed(r,!0),i&&s.call(i),s};tt.ensureSingleById=function(e,t,r,i){var a=e.select(t+"#"+r);if(a.size())return a;var s=e.append(t).attr("id",r);return i&&s.call(i),s};tt.objectFromPath=function(e,t){for(var r=e.split("."),i,a=i={},s=0;s1?a+l[1]:"";if(s&&(l.length>1||f.length>4||r))for(;i.test(f);)f=f.replace(i,"$1"+s+"$2");return f+h};tt.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var nk=/^\w*$/;tt.templateString=function(e,t){var r={};return e.replace(tt.TEMPLATE_STRING_REGEX,function(i,a){var s;return nk.test(a)?s=t[a]:(r[a]=r[a]||tt.nestedProperty(t,a).get,s=r[a](!0)),s!==void 0?s:""})};var rQ={max:10,count:0,name:"hovertemplate"};tt.hovertemplateString=function(){return gw.apply(rQ,arguments)};var aQ={max:10,count:0,name:"texttemplate"};tt.texttemplateString=function(){return gw.apply(aQ,arguments)};var iQ=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function nQ(e){var t=e.match(iQ);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var oQ={max:10,count:0,name:"texttemplate",parseMultDiv:!0};tt.texttemplateStringForShapes=function(){return gw.apply(oQ,arguments)};var J9=/^[:|\|]/;function gw(e,t,r){var i=this,a=arguments;return t||(t={}),e.replace(tt.TEMPLATE_STRING_REGEX,function(s,l,f){var h=l==="xother"||l==="yother",v=l==="_xother"||l==="_yother",m=l==="_xother_"||l==="_yother_",_=l==="xother_"||l==="yother_",T=h||v||_||m,S=l;(v||m)&&(S=S.substring(1)),(_||m)&&(S=S.substring(0,S.length-1));var C=null,D=null;if(i.parseMultDiv){var E=nQ(S);S=E.key,C=E.op,D=E.number}var I;if(T){if(I=t[S],I===void 0)return""}else{var B,q;for(q=3;q=A_&&l<=K9,v=f>=A_&&f<=K9;if(h&&(i=10*i+l-A_),v&&(a=10*a+f-A_),!h||!v){if(i!==a)return i-a;if(l!==f)return l-f}}return a-i};var _0=2e9;tt.seedPseudoRandom=function(){_0=2e9};tt.pseudoRandom=function(){var e=_0;return _0=(69069*_0+1)%4294967296,Math.abs(_0-e)<429496729?tt.pseudoRandom():_0/4294967296};tt.fillText=function(e,t,r){var i=Array.isArray(r)?function(l){r.push(l)}:function(l){r.text=l},a=tt.extractOption(e,t,"htx","hovertext");if(tt.isValidTextValue(a))return i(a);var s=tt.extractOption(e,t,"tx","text");if(tt.isValidTextValue(s))return i(s)};tt.isValidTextValue=function(e){return e||e===0};tt.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",i=0;i1&&(v=1):v=0,tt.strTranslate(a-v*(r+l),s-v*(i+f))+tt.strScale(v)+(h?"rotate("+h+(t?"":" "+r+" "+i)+")":"")};tt.setTransormAndDisplay=function(e,t){e.attr("transform",tt.getTextTransform(t)),e.style("display",t.scale?null:"none")};tt.ensureUniformFontSize=function(e,t){var r=tt.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};tt.join2=function(e,t,r){var i=e.length;return i>1?e.slice(0,-1).join(t)+r+e[i-1]:e.join(t)};tt.bigFont=function(e){return Math.round(1.2*e)};var Q9=tt.getFirefoxVersion(),sQ=Q9!==null&&Q9<86;tt.getPositionFromD3Event=function(){return sQ?[By.event.layerX,By.event.layerY]:[By.event.offsetX,By.event.offsetY]}});var uk=me(()=>{"use strict";var lQ=Bt(),sk={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(_w in sk)lk=_w.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),lQ.addStyleRule(lk,sk[_w]);var lk,_w});var xw=me((pge,fk)=>{fk.exports=!0});var ww=me((mge,ck)=>{"use strict";var uQ=xw(),bw;typeof window.matchMedia=="function"?bw=!window.matchMedia("(hover: none)").matches:bw=uQ;ck.exports=bw});var C_=me((yge,Tw)=>{"use strict";var w0=typeof Reflect=="object"?Reflect:null,hk=w0&&typeof w0.apply=="function"?w0.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)},S_;w0&&typeof w0.ownKeys=="function"?S_=w0.ownKeys:Object.getOwnPropertySymbols?S_=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:S_=function(t){return Object.getOwnPropertyNames(t)};function fQ(e){console&&console.warn&&console.warn(e)}var dk=Number.isNaN||function(t){return t!==t};function Yi(){Yi.init.call(this)}Tw.exports=Yi;Tw.exports.once=dQ;Yi.EventEmitter=Yi;Yi.prototype._events=void 0;Yi.prototype._eventsCount=0;Yi.prototype._maxListeners=void 0;var vk=10;function k_(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Yi,"defaultMaxListeners",{enumerable:!0,get:function(){return vk},set:function(e){if(typeof e!="number"||e<0||dk(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");vk=e}});Yi.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Yi.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||dk(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function pk(e){return e._maxListeners===void 0?Yi.defaultMaxListeners:e._maxListeners}Yi.prototype.getMaxListeners=function(){return pk(this)};Yi.prototype.emit=function(t){for(var r=[],i=1;i0&&(l=r[0]),l instanceof Error)throw l;var f=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw f.context=l,f}var h=s[t];if(h===void 0)return!1;if(typeof h=="function")hk(h,this,r);else for(var v=h.length,m=xk(h,v),i=0;i0&&l.length>a&&!l.warned){l.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=l.length,fQ(f)}return e}Yi.prototype.addListener=function(t,r){return mk(this,t,r,!1)};Yi.prototype.on=Yi.prototype.addListener;Yi.prototype.prependListener=function(t,r){return mk(this,t,r,!0)};function cQ(){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 yk(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=cQ.bind(i);return a.listener=r,i.wrapFn=a,a}Yi.prototype.once=function(t,r){return k_(r),this.on(t,yk(this,t,r)),this};Yi.prototype.prependOnceListener=function(t,r){return k_(r),this.prependListener(t,yk(this,t,r)),this};Yi.prototype.removeListener=function(t,r){var i,a,s,l,f;if(k_(r),a=this._events,a===void 0)return this;if(i=a[t],i===void 0)return this;if(i===r||i.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete a[t],a.removeListener&&this.emit("removeListener",t,i.listener||r));else if(typeof i!="function"){for(s=-1,l=i.length-1;l>=0;l--)if(i[l]===r||i[l].listener===r){f=i[l].listener,s=l;break}if(s<0)return this;s===0?i.shift():hQ(i,s),i.length===1&&(a[t]=i[0]),a.removeListener!==void 0&&this.emit("removeListener",t,f||r)}return this};Yi.prototype.off=Yi.prototype.removeListener;Yi.prototype.removeAllListeners=function(t){var r,i,a;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[t]),this;if(arguments.length===0){var s=Object.keys(i),l;for(a=0;a=0;a--)this.removeListener(t,r[a]);return this};function gk(e,t,r){var i=e._events;if(i===void 0)return[];var a=i[t];return a===void 0?[]:typeof a=="function"?r?[a.listener||a]:[a]:r?vQ(a):xk(a,a.length)}Yi.prototype.listeners=function(t){return gk(this,t,!0)};Yi.prototype.rawListeners=function(t){return gk(this,t,!1)};Yi.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):_k.call(e,t)};Yi.prototype.listenerCount=_k;function _k(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Yi.prototype.eventNames=function(){return this._eventsCount>0?S_(this._events):[]};function xk(e,t){for(var r=new Array(t),i=0;i{"use strict";var Aw=C_().EventEmitter,mQ={init:function(e){if(e._ev instanceof Aw)return e;var t=new Aw,r=new Aw;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(i,a){t.emit(i,a),r.emit(i,a)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{}),e},triggerHandler:function(e,t,r){var i,a=e._ev;if(!a)return;var s=a._events[t];if(!s)return;function l(h){if(h.listener){if(a.removeListener(t,h.listener),!h.fired)return h.fired=!0,h.listener.apply(a,[r])}else return h.apply(a,[r])}s=Array.isArray(s)?s:[s];var f;for(f=0;f{"use strict";var Tk=Bt(),yQ=rd().dfltConfig;function gQ(e,t){for(var r=[],i,a=0;ayQ.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};gc.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};gc.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};gc.undo=function(t){var r,i;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i{"use strict";Sk.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var M0=me(Wn=>{"use strict";var Zl=la(),Uy=Bt(),L_=ms(),Sw=d0(),_Q=Mw(),xQ=Py(),bQ=rd().configAttributes,kk=il(),Iu=Uy.extendDeepAll,T0=Uy.isPlainObject,wQ=Uy.isArrayOrTypedArray,D_=Uy.nestedProperty,TQ=Uy.valObjectMeta,kw="_isSubplotObj",P_="_isLinkedToArray",AQ="_arrayAttrRegexps",Ek="_deprecated",Cw=[kw,P_,AQ,Ek];Wn.IS_SUBPLOT_OBJ=kw;Wn.IS_LINKED_TO_ARRAY=P_;Wn.DEPRECATED=Ek;Wn.UNDERSCORE_ATTRS=Cw;Wn.get=function(){var e={};return Zl.allTypes.forEach(function(t){e[t]=SQ(t)}),{defs:{valObjects:TQ,metaKeys:Cw.concat(["description","role","editType","impliedEdits"]),editType:{traces:kk.traces,layout:kk.layout},impliedEdits:{}},traces:e,layout:kQ(),frames:CQ(),animation:A0(xQ),config:A0(bQ)}};Wn.crawl=function(e,t,r,i){var a=r||0;i=i||"",Object.keys(e).forEach(function(s){var l=e[s];if(Cw.indexOf(s)===-1){var f=(i?i+".":"")+s;t(l,s,e,a,f),!Wn.isValObject(l)&&T0(l)&&s!=="impliedEdits"&&Wn.crawl(l,t,a+1,f)}})};Wn.isValObject=function(e){return e&&e.valType!==void 0};Wn.findArrayAttributes=function(e){var t=[],r=[],i=[],a,s;function l(h,v,m,_){r=r.slice(0,_).concat([v]),i=i.slice(0,_).concat([h&&h._isLinkedToArray]);var T=h&&(h.valType==="data_array"||h.arrayOk===!0)&&!(r[_-1]==="colorbar"&&(v==="ticktext"||v==="tickvals"));T&&f(a,0,"")}function f(h,v,m){var _=h[r[v]],T=m+r[v];if(v===r.length-1)wQ(_)&&t.push(s+T);else if(i[v]){if(Array.isArray(_))for(var S=0;S<_.length;S++)T0(_[S])&&f(_[S],v+1,T+"["+S+"].")}else T0(_)&&f(_,v+1,T+".")}return a=e,s="",Wn.crawl(L_,l),e._module&&e._module.attributes&&Wn.crawl(e._module.attributes,l),t};Wn.getTraceValObject=function(e,t){var r=t[0],i=1,a,s,l=e._module;if(l||(l=(Zl.modules[e.type||L_.type.dflt]||{})._module),!l)return!1;if(a=l.attributes,s=a&&a[r],!s){var f=l.basePlotModule;f&&f.attributes&&(s=f.attributes[r])}return s||(s=L_[r]),Lk(s,t,i)};Wn.getLayoutValObject=function(e,t){var r=MQ(e,t[0]);return Lk(r,t,1)};function MQ(e,t){var r,i,a,s,l=e._basePlotModules;if(l){var f;for(r=0;r=s.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var l=t[r];if(!E_(l))return!1;e=s[a][l]}else e=s[a]}else e=s}}return e}function E_(e){return e===Math.round(e)&&e>=0}function SQ(e){var t,r;t=Zl.modules[e]._module,r=t.basePlotModule;var i={};i.type=null;var a=Iu({},L_),s=Iu({},t.attributes);Wn.crawl(s,function(h,v,m,_,T){D_(a,T).set(void 0),h===void 0&&D_(s,T).set(void 0)}),Iu(i,a),Zl.traceIs(e,"noOpacity")&&delete i.opacity,Zl.traceIs(e,"showLegend")||(delete i.showlegend,delete i.legendgroup),Zl.traceIs(e,"noHover")&&(delete i.hoverinfo,delete i.hoverlabel),t.selectPoints||delete i.selectedpoints,Iu(i,s),r.attributes&&Iu(i,r.attributes),i.type=e;var l={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:A0(i)};if(t.layoutAttributes){var f={};Iu(f,t.layoutAttributes),l.layoutAttributes=A0(f)}return t.animatable||Wn.crawl(l,function(h){Wn.isValObject(h)&&"anim"in h&&delete h.anim}),l}function kQ(){var e={},t,r;Iu(e,Sw);for(t in Zl.subplotsRegistry)if(r=Zl.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var i=0;i{"use strict";var S0=Bt(),zQ=ms(),Dh="templateitemname",Ew={name:{valType:"string",editType:"none"}};Ew[Dh]={valType:"string",editType:"calc"};sd.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=Ew.name,t[Dh]=Ew[Dh],t};sd.traceTemplater=function(e){var t={},r,i;for(r in e)i=e[r],Array.isArray(i)&&i.length&&(t[r]=0);function a(s){r=S0.coerce(s,{},zQ,"type");var l={type:r,_template:null};if(r in t){i=e[r];var f=t[r]%i.length;t[r]++,l._template=i[f]}return l}return{newTrace:a}};sd.newContainer=function(e,t,r){var i=e._template,a=i&&(i[t]||r&&i[r]);S0.isPlainObject(a)||(a=null);var s=e[t]={_template:a};return s};sd.arrayTemplater=function(e,t,r){var i=e._template,a=i&&i[Pk(t)],s=i&&i[t];(!Array.isArray(s)||!s.length)&&(s=[]);var l={};function f(v){var m={name:v.name,_input:v},_=m[Dh]=v[Dh];if(!Dk(_))return m._template=a,m;for(var T=0;T=i&&(r._input||{})._templateitemname;s&&(a=i);var l=t+"["+a+"]",f;function h(){f={},s&&(f[l]={},f[l][Dh]=s)}h();function v(S,C){f[S]=C}function m(S,C){s?S0.nestedProperty(f[l],S).set(C):f[l+"."+S]=C}function _(){var S=f;return h(),S}function T(S,C){S&&m(S,C);var D=_();for(var E in D)S0.nestedProperty(e,E).set(D[E])}return{modifyBase:v,modifyItem:m,getUpdateObj:_,applyUpdate:T}}});var Ao=me((Tge,zk)=>{"use strict";var Vy=c0().counter;zk.exports={idRegex:{x:Vy("x","( domain)?"),y:Vy("y","( domain)?")},attrRegex:Vy("[xy]axis"),xAxisMatch:Vy("xaxis"),yAxisMatch:Vy("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var Xn=me(qs=>{"use strict";var IQ=la(),Lw=Ao();qs.id2name=function(t){if(!(typeof t!="string"||!t.match(Lw.AX_ID_PATTERN))){var r=t.split(" ")[0].substr(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};qs.name2id=function(t){if(t.match(Lw.AX_NAME_PATTERN)){var r=t.substr(5);return r==="1"&&(r=""),t.charAt(0)+r}};qs.cleanId=function(t,r,i){var a=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(Lw.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(a&&!i)){var s=t.split(" ")[0].substr(1).replace(/^0+/,"");return s==="1"&&(s=""),t.charAt(0)+s+(a&&i?" domain":"")}};qs.list=function(e,t,r){var i=e._fullLayout;if(!i)return[];var a=qs.listIds(e,t),s=new Array(a.length),l;for(l=0;li?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)};qs.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Ik(e,t){if(t&&t.length){for(var r=0;r{"use strict";function RQ(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function FQ(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Rk.exports={clearOutlineControllers:RQ,clearOutline:FQ}});var z_=me((Sge,Fk)=>{"use strict";Fk.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var F_=me(R_=>{"use strict";var I_=la(),kge=Ao().SUBPLOT_PATTERN;R_.getSubplotCalcData=function(e,t,r){var i=I_.subplotsRegistry[t];if(!i)return[];for(var a=i.attr,s=[],l=0;l{"use strict";var qQ=la(),k0=Bt();ld.manageCommandObserver=function(e,t,r,i){var a={},s=!0;t&&t._commandObserver&&(a=t._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var l=ld.hasSimpleAPICommandBindings(e,r,a.lookupTable);if(t&&t._commandObserver){if(l)return a;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,a}if(l){qk(e,l,a.cache),a.check=function(){if(s){var m=qk(e,l,a.cache);return m.changed&&i&&a.lookupTable[m.value]!==void 0&&(a.disable(),Promise.resolve(i({value:m.value,type:l.type,prop:l.prop,traces:l.traces,index:a.lookupTable[m.value]})).then(a.enable,a.enable)),m.changed}};for(var f=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],h=0;h0?".":"")+a;k0.isPlainObject(s)?Dw(s,t,l,i+1):t(l,a,s)}})}});var eo=me((Lge,eC)=>{"use strict";var Wk=ja(),BQ=s0().timeFormatLocale,OQ=N3().formatLocale,Hy=Da(),UQ=B3(),ai=la(),Xk=M0(),VQ=Ri(),Lr=Bt(),jk=Oa(),Uk=Zi().BADNUM,Ns=Xn(),HQ=Ph().clearOutline,GQ=z_(),Pw=Py(),ZQ=Mw(),YQ=F_().getModuleCalcData,Vk=Lr.relinkPrivateKeys,ud=Lr._,yr=eC.exports={};Lr.extendFlat(yr,ai);yr.attributes=ms();yr.attributes.type.values=yr.allTypes;yr.fontAttrs=qo();yr.layoutAttributes=d0();var N_=Ok();yr.executeAPICommand=N_.executeAPICommand;yr.computeAPICommandBindings=N_.computeAPICommandBindings;yr.manageCommandObserver=N_.manageCommandObserver;yr.hasSimpleAPICommandBindings=N_.hasSimpleAPICommandBindings;yr.redrawText=function(e){return e=Lr.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(ai.getComponentMethod("annotations","draw")(e),ai.getComponentMethod("legend","draw")(e),ai.getComponentMethod("colorbar","draw")(e),t(yr.previousPromises(e)))},300)})};yr.resize=function(e){e=Lr.getGraphDiv(e);var t,r=new Promise(function(i,a){(!e||Lr.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=i,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Lr.isHidden(e)){i(e);return}delete e.layout.width,delete e.layout.height;var s=e.changed;e.autoplay=!0,ai.call("relayout",e,{autosize:!0}).then(function(){e.changed=s,e._resolveResize===i&&(delete e._resolveResize,i(e))})},100)});return t&&t(r),r};yr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};yr.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=Lr.ensureSingle(t._paper,"text","js-plot-link-container",function(h){h.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:jk.defaultLine,"pointer-events":"all"}).each(function(){var v=Wk.select(this);v.append("tspan").classed("js-link-to-tool",!0),v.append("tspan").classed("js-link-spacer",!0),v.append("tspan").classed("js-sourcelinks",!0)})}),i=r.node(),a={y:t._paper.attr("height")-9};document.body.contains(i)&&i.getComputedTextLength()>=t.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=t._paper.attr("width")-7),r.attr(a);var s=r.select(".js-link-to-tool"),l=r.select(".js-link-spacer"),f=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&WQ(e,s),l.text(s.text()&&f.text()?" - ":"")}};function WQ(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)r.on("click",function(){yr.sendDataToCloud(e)});else{var i=window.location.pathname.split("/"),a=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+i[2].split(".")[0]+"/"+i[1]+a})}}yr.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=Wk.select(e).append("div").attr("id","hiddenform").style("display","none"),i=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"}),a=i.append("input").attr({type:"text",name:"data"});return a.node().value=yr.graphJson(e,!1,"keepdata"),i.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var XQ=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],jQ=["year","month","dayMonth","dayMonthYear"];yr.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,i=e._fullLayout||{};if(i._skipDefaults){delete i._skipDefaults;return}var a=e._fullLayout={},s=e.layout||{},l=e._fullData||[],f=e._fullData=[],h=e.data||[],v=e.calcdata||[],m=e._context||{},_;e._transitionData||yr.createTransitionData(e),a._dfltTitle={plot:ud(e,"Click to enter Plot title"),subtitle:ud(e,"Click to enter Plot subtitle"),x:ud(e,"Click to enter X axis title"),y:ud(e,"Click to enter Y axis title"),colorbar:ud(e,"Click to enter Colorscale title"),annotation:ud(e,"new text")},a._traceWord=ud(e,"trace");var T=Hk(e,XQ);if(a._mapboxAccessToken=m.mapboxAccessToken,i._initialAutoSizeIsDone){var S=i.width,C=i.height;yr.supplyLayoutGlobalDefaults(s,a,T),s.width||(a.width=S),s.height||(a.height=C),yr.sanitizeMargins(a)}else{yr.supplyLayoutGlobalDefaults(s,a,T);var D=!s.width||!s.height,E=a.autosize,I=m.autosizable,B=D&&(E||I);B?yr.plotAutoSize(e,s,a):D&&yr.sanitizeMargins(a),!E&&D&&(s.width=a.width,s.height=a.height)}a._d3locale=QQ(T,a.separators),a._extraFormat=Hk(e,jQ),a._initialAutoSizeIsDone=!0,a._dataLength=h.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var q=a._subplots=KQ(),z=a._splomAxes={x:{},y:{}},O=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=JQ(l,h),yr.supplyDataDefaults(h,f,s,a);var H=Object.keys(z.x),V=Object.keys(z.y);if(H.length>1&&V.length>1){for(ai.getComponentMethod("grid","sizeDefaults")(s,a),_=0;_15&&V.length>15&&a.shapes.length===0&&a.images.length===0,yr.linkSubplots(f,a,l,i),yr.cleanPlot(f,a,l,i);var oe=!!(i._has&&i._has("cartesian")),fe=!!(a._has&&a._has("cartesian")),de=oe,Me=fe;de&&!Me?i._bgLayer.remove():Me&&!de&&(a._shouldCreateBgLayer=!0),i._zoomlayer&&!e._dragging&&HQ({_fullLayout:i}),$Q(f,a),Vk(a,i),ai.getComponentMethod("colorscale","crossTraceDefaults")(f,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var Se=a._tracePreGUI,Ae={},we;for(we in Se)Ae[we]="old";for(_=0;_0){var m=1-2*s;l=Math.round(m*l),f=Math.round(m*f)}}var _=yr.layoutAttributes.width.min,T=yr.layoutAttributes.height.min;l<_&&(l=_),f1,C=!r.height&&Math.abs(i.height-f)>1;(C||S)&&(S&&(i.width=l),C&&(i.height=f)),t._initialAutoSize||(t._initialAutoSize={width:l,height:f}),yr.sanitizeMargins(i)};yr.supplyLayoutModuleDefaults=function(e,t,r,i){var a=ai.componentsRegistry,s=t._basePlotModules,l,f,h,v=ai.subplotsRegistry.cartesian;for(l in a)h=a[l],h.includeBasePlot&&h.includeBasePlot(e,t);s.length||s.push(v),t._has("cartesian")&&(ai.getComponentMethod("grid","contentDefaults")(e,t),v.finalizeSubplots(e,t));for(var m in t._subplots)t._subplots[m].sort(Lr.subplotSort);for(f=0;f1&&(r.l/=E,r.r/=E)}if(T){var I=(r.t+r.b)/T;I>1&&(r.t/=I,r.b/=I)}var B=r.xl!==void 0?r.xl:r.x,q=r.xr!==void 0?r.xr:r.x,z=r.yt!==void 0?r.yt:r.y,O=r.yb!==void 0?r.yb:r.y;S[t]={l:{val:B,size:r.l+D},r:{val:q,size:r.r+D},b:{val:O,size:r.b+D},t:{val:z,size:r.t+D}},C[t]=1}if(!i._replotting)return yr.doAutoMargin(e)}};function t$(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Ns.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}yr.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,i=t.height;t._size||(t._size={}),Jk(t);var a=t._size,s=t.margin,l={t:0,b:0,l:0,r:0},f=Lr.extendFlat({},a),h=s.l,v=s.r,m=s.t,_=s.b,T=t._pushmargin,S=t._pushmarginIds,C=t.minreducedwidth,D=t.minreducedheight;if(s.autoexpand!==!1){for(var E in T)S[E]||delete T[E];var I=e._fullLayout._reservedMargin;for(var B in I)for(var q in I[B]){var z=I[B][q];l[q]=Math.max(l[q],z)}T.base={l:{val:0,size:h},r:{val:1,size:v},t:{val:1,size:m},b:{val:0,size:_}};for(var O in l){var H=0;for(var V in T)V!=="base"&&Hy(T[V][O].size)&&(H=T[V][O].size>H?T[V][O].size:H);var W=Math.max(0,s[O]-H);l[O]=Math.max(0,l[O]-W)}for(var J in T){var te=T[J].l||{},ne=T[J].b||{},oe=te.val,fe=te.size,de=ne.val,Me=ne.size,Se=r-l.r-l.l,Ae=i-l.t-l.b;for(var we in T){if(Hy(fe)&&T[we].r){var Te=T[we].r.val,Ce=T[we].r.size;if(Te>oe){var Le=(fe*Te+(Ce-Se)*oe)/(Te-oe),$e=(Ce*(1-oe)+(fe-Se)*(1-Te))/(Te-oe);Le+$e>h+v&&(h=Le,v=$e)}}if(Hy(Me)&&T[we].t){var ot=T[we].t.val,it=T[we].t.size;if(ot>de){var bt=(Me*ot+(it-Ae)*de)/(ot-de),We=(it*(1-de)+(Me-Ae)*(1-ot))/(ot-de);bt+We>_+m&&(_=bt,m=We)}}}}}var Et=Lr.constrain(r-s.l-s.r,Kk,C),nt=Lr.constrain(i-s.t-s.b,Qk,D),vt=Math.max(0,r-Et),xt=Math.max(0,i-nt);if(vt){var pt=(h+v)/vt;pt>1&&(h/=pt,v/=pt)}if(xt){var ve=(_+m)/xt;ve>1&&(_/=ve,m/=ve)}if(a.l=Math.round(h)+l.l,a.r=Math.round(v)+l.r,a.t=Math.round(m)+l.t,a.b=Math.round(_)+l.b,a.p=Math.round(s.pad),a.w=Math.round(r)-a.l-a.r,a.h=Math.round(i)-a.t-a.b,!t._replotting&&(yr.didMarginChange(f,a)||t$(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var ze=3*(1+Object.keys(S).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};yr.graphJson=function(e,t,r,i,a,s){(a&&t&&!e._fullData||a&&!t&&!e._fullLayout)&&yr.supplyDefaults(e);var l=a?e._fullData:e.data,f=a?e._fullLayout:e.layout,h=(e._transitionData||{})._frames;function v(T,S){if(typeof T=="function")return S?"_function_":null;if(Lr.isPlainObject(T)){var C={},D;return Object.keys(T).sort().forEach(function(q){if(["_","["].indexOf(q.charAt(0))===-1){if(typeof T[q]=="function"){S&&(C[q]="_function");return}if(r==="keepdata"){if(q.substr(q.length-3)==="src")return}else if(r==="keepstream"){if(D=T[q+"src"],typeof D=="string"&&D.indexOf(":")>0&&!Lr.isPlainObject(T.stream))return}else if(r!=="keepall"&&(D=T[q+"src"],typeof D=="string"&&D.indexOf(":")>0))return;C[q]=v(T[q],S)}}),C}var E=Array.isArray(T),I=Lr.isTypedArray(T);if((E||I)&&T.dtype&&T.shape){var B=T.bdata;return v({dtype:T.dtype,shape:T.shape,bdata:Lr.isArrayBuffer(B)?UQ.encode(B):B},S)}return E?T.map(function(q){return v(q,S)}):I?Lr.simpleMap(T,Lr.identity):Lr.isJSDate(T)?Lr.ms2DateTimeLocal(+T):T}var m={data:(l||[]).map(function(T){var S=v(T);return t&&delete S.fit,S})};if(!t&&(m.layout=v(f),a)){var _=f._size;m.layout.computed={margin:{b:_.b,l:_.l,r:_.r,t:_.t}}}return h&&(m.frames=v(h)),s&&(m.config=v(e._context,!0)),i==="object"?m:JSON.stringify(m)};yr.modifyFrames=function(e,t){var r,i,a,s=e._transitionData._frames,l=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){i=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return ai.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var T=0,S=0;function C(){return T++,function(){S++,!i&&S===T&&f(_)}}r.runFn(C),setTimeout(C())})}function f(_){if(e._transitionData)return s(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return ai.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(_)}function h(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var v=[yr.previousPromises,h,r.prepareFn,yr.rehover,yr.reselect,l],m=Lr.syncOrAsync(v,e);return(!m||!m.then)&&(m=Promise.resolve()),m.then(function(){return e})}yr.doCalcdata=function(e,t){var r=Ns.list(e),i=e._fullData,a=e._fullLayout,s,l,f,h,v=new Array(i.length),m=(e.calcdata||[]).slice();for(e.calcdata=v,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},f=0;f=0;h--)if(O[h].enabled){s._indexToPoints=O[h]._indexToPoints;break}l&&l.calc&&(z=l.calc(e,s))}(!Array.isArray(z)||!z[0])&&(z=[{x:Uk,y:Uk}]),z[0].t||(z[0].t={}),z[0].trace=s,v[B]=z}}for(Zk(r,i,a),f=0;f{"use strict";fd.xmlns="http://www.w3.org/2000/xmlns/";fd.svg="http://www.w3.org/2000/svg";fd.xlink="http://www.w3.org/1999/xlink";fd.svgAttrs={xmlns:fd.svg,"xmlns:xlink":fd.xlink}});var ts=me((Pge,tC)=>{"use strict";tC.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var co=me(Yl=>{"use strict";var qn=ja(),_c=Bt(),n$=_c.strTranslate,zw=zh(),o$=ts().LINE_SPACING,s$=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Yl.convertToTspans=function(e,t,r){var i=e.text(),a=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&i.match(s$),s=qn.select(e.node().parentNode);if(s.empty())return;var l=e.attr("class")?e.attr("class").split(" ")[0]:"text";l+="-math",s.selectAll("svg."+l).remove(),s.selectAll("g."+l+"-group").remove(),e.style("display",null).attr({"data-unformatted":i,"data-math":"N"});function f(){s.empty()||(l=e.attr("class")+"-math",s.select("svg."+l).remove()),e.text("").style("white-space","pre");var h=x$(e.node(),i);h&&e.style("pointer-events","all"),Yl.positionText(e),r&&r.call(e)}return a?(t&&t._promises||[]).push(new Promise(function(h){e.style("display","none");var v=parseInt(e.node().style.fontSize,10),m={fontSize:v};c$(a[2],m,function(_,T,S){s.selectAll("svg."+l).remove(),s.selectAll("g."+l+"-group").remove();var C=_&&_.select("svg");if(!C||!C.node()){f(),h();return}var D=s.append("g").classed(l+"-group",!0).attr({"pointer-events":"none","data-unformatted":i,"data-math":"Y"});D.node().appendChild(C.node()),T&&T.node()&&C.node().insertBefore(T.node().cloneNode(!0),C.node().firstChild);var E=S.width,I=S.height;C.attr({class:l,height:I,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var B=e.node().style.fill||"black",q=C.select("g");q.attr({fill:B,stroke:B});var z=q.node().getBoundingClientRect(),O=z.width,H=z.height;(O>E||H>I)&&(C.style("overflow","hidden"),z=C.node().getBoundingClientRect(),O=z.width,H=z.height);var V=+e.attr("x"),W=+e.attr("y"),J=v||e.node().getBoundingClientRect().height,te=-J/4;if(l[0]==="y")D.attr({transform:"rotate("+[-90,V,W]+")"+n$(-O/2,te-H/2)});else if(l[0]==="l")W=te-H/2;else if(l[0]==="a"&&l.indexOf("atitle")!==0)V=0,W=te;else{var ne=e.attr("text-anchor");V=V-O*(ne==="middle"?.5:ne==="end"?1:0),W=W+te-H/2}C.attr({x:V,y:W}),r&&r.call(e,D),h(D)})})):f(),e};var l$=/(<|<|<)/g,u$=/(>|>|>)/g;function f$(e){return e.replace(l$,"\\lt ").replace(u$,"\\gt ")}var rC=[["$","$"],["\\(","\\)"]];function c$(e,t,r){var i=parseInt((MathJax.version||"").split(".")[0]);if(i!==2&&i!==3){_c.warn("No MathJax version:",MathJax.version);return}var a,s,l,f,h=function(){return s=_c.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:rC},displayAlign:"left"})},v=function(){s=_c.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=rC},m=function(){if(a=MathJax.Hub.config.menuSettings.renderer,a!=="SVG")return MathJax.Hub.setRenderer("SVG")},_=function(){a=MathJax.config.startup.output,a!=="svg"&&(MathJax.config.startup.output="svg")},T=function(){var B="math-output-"+_c.randstr({},64);f=qn.select("body").append("div").attr({id:B}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(f$(e));var q=f.node();return i===2?MathJax.Hub.Typeset(q):MathJax.typeset([q])},S=function(){var B=f.select(i===2?".MathJax_SVG":".MathJax"),q=!B.empty()&&f.select("svg").node();if(!q)_c.log("There was an error in the tex syntax.",e),r();else{var z=q.getBoundingClientRect(),O;i===2?O=qn.select("body").select("#MathJax_SVG_glyphs"):O=B.select("defs"),r(B,O,z)}f.remove()},C=function(){if(a!=="SVG")return MathJax.Hub.setRenderer(a)},D=function(){a!=="svg"&&(MathJax.config.startup.output=a)},E=function(){return l!==void 0&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(s)},I=function(){MathJax.config=s};i===2?MathJax.Hub.Queue(h,m,T,S,C,E):i===3&&(v(),_(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){T(),S(),D(),I()}))}var oC={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"},h$={sub:"0.3em",sup:"-0.6em"},v$={sub:"-0.21em",sup:"0.42em"},aC="\u200B",iC=["http:","https:","mailto:","",void 0,":"],sC=Yl.NEWLINES=/(\r\n?|\n)/g,Rw=/(<[^<>]*>)/,Fw=/<(\/?)([^ >]*)(\s+(.*))?>/i,d$=//i;Yl.BR_TAG_ALL=//gi;var lC=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,uC=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,fC=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,p$=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function cd(e,t){if(!e)return null;var r=e.match(t),i=r&&(r[3]||r[4]);return i&&B_(i)}var m$=/(^|;)\s*color:/;Yl.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,i=t.allowedTags!==void 0?t.allowedTags:["br"],a="...",s=a.length,l=e.split(Rw),f=[],h="",v=0,m=0;ms?f.push(_.substr(0,D-s)+a):f.push(_.substr(0,D));break}h=""}}return f.join("")};var y$={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},g$=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function B_(e){return e.replace(g$,function(t,r){var i;return r.charAt(0)==="#"?i=_$(r.charAt(1)==="x"?parseInt(r.substr(2),16):parseInt(r.substr(1),10)):i=y$[r],i||t})}Yl.convertEntities=B_;function _$(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function x$(e,t){t=t.replace(sC," ");var r=!1,i=[],a,s=-1;function l(){s++;var H=document.createElementNS(zw.svg,"tspan");qn.select(H).attr({class:"line",dy:s*o$+"em"}),e.appendChild(H),a=H;var V=i;if(i=[{node:H}],V.length>1)for(var W=1;W.",t);return}var V=i.pop();H!==V.type&&_c.log("Start tag <"+V.type+"> doesnt match end tag <"+H+">. Pretending it did match.",t),a=i[i.length-1].node}var m=d$.test(t);m?l():(a=e,i=[{node:e}]);for(var _=t.split(Rw),T=0;T<_.length;T++){var S=_[T],C=S.match(Fw),D=C&&C[2].toLowerCase(),E=oC[D];if(D==="br")l();else if(E===void 0)h(a,B_(S));else if(C[1])v(D);else{var I=C[4],B={type:D},q=cd(I,lC);if(q?(q=q.replace(m$,"$1 fill:"),E&&(q+=";"+E)):E&&(q=E),q&&(B.style=q),D==="a"){r=!0;var z=cd(I,uC);if(z){var O=cC(z);O&&(B.href=O,B.target=cd(I,fC)||"_blank",B.popup=cd(I,p$))}}f(B)}}return r}function cC(e){var t=encodeURI(decodeURI(e)),r=document.createElement("a"),i=document.createElement("a");r.href=e,i.href=t;var a=r.protocol,s=i.protocol;return iC.indexOf(a)!==-1&&iC.indexOf(s)!==-1?t:""}Yl.sanitizeHTML=function(t){t=t.replace(sC," ");for(var r=document.createElement("p"),i=r,a=[],s=t.split(Rw),l=0;l{"use strict";var b$=ja(),U_=Tf(),Zy=Da(),O_=Bt(),hC=Oa(),w$=ed().isValid;function T$(e,t,r){var i=t?O_.nestedProperty(e,t).get()||{}:e,a=i[r||"color"];a&&a._inputArray&&(a=a._inputArray);var s=!1;if(O_.isArrayOrTypedArray(a)){for(var l=0;l=0;i--,a++){var s=e[i];r[a]=[1-s[0],s[1]]}return r}function gC(e,t){t=t||{};for(var r=e.domain,i=e.range,a=i.length,s=new Array(a),l=0;l{"use strict";var xC=aw(),M$=xC.FORMAT_LINK,S$=xC.DATE_FORMAT_LINK;function k$(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?qw:bC)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function qw(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+M$+"."].join(" ")}function bC(e,t){return qw(e,t)+[" And for dates see: "+S$+".","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(" ")}wC.exports={axisHoverFormat:k$,descriptionOnlyNumbers:qw,descriptionWithDates:bC}});var Ru=me((qge,BC)=>{"use strict";var TC=qo(),C0=Af(),NC=hc().dash,Ow=mn().extendFlat,AC=Ri().templatedArray,Fge=nl().templateFormatStringDescription,MC=Nw().descriptionWithDates,C$=Zi().ONEDAY,Cf=Ao(),E$=Cf.HOUR_PATTERN,L$=Cf.WEEKDAY_PATTERN,Bw={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},D$=Ow({},Bw,{values:Bw.values.slice().concat(["sync"])});function SC(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var kC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},CC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},EC={valType:"data_array",editType:"ticks"},LC={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function DC(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function PC(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var zC={valType:"color",dflt:C0.defaultLine,editType:"ticks"},IC={valType:"color",dflt:C0.lightLine,editType:"ticks"};function RC(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var FC=Ow({},NC,{editType:"ticks"}),qC={valType:"boolean",editType:"ticks"};BC.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:C0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:TC({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Cf.idRegex.x.toString(),Cf.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Cf.idRegex.x.toString(),Cf.idRegex.y.toString()],editType:"calc"},rangebreaks:AC("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:[L$,E$,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:C$},editType:"calc"}),tickmode:D$,nticks:SC(),tick0:kC,dtick:CC,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:EC,ticktext:{valType:"data_array",editType:"ticks"},ticks:LC,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:DC(),tickwidth:PC(),tickcolor:zC,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:Ow({},NC,{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:TC({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:MC("tick label")},tickformatstops:AC("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:MC("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:C0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:qC,gridcolor:IC,gridwidth:RC(),griddash:FC,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:C0.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:C0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Cf.idRegex.x.toString(),Cf.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Cf.idRegex.x.toString(),Cf.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Bw,nticks:SC("minor"),tick0:kC,dtick:CC,tickvals:EC,ticks:LC,ticklen:DC("minor"),tickwidth:PC("minor"),tickcolor:zC,gridcolor:IC,gridwidth:RC("minor"),griddash:FC,showgrid:qC,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var V_=me((Nge,VC)=>{"use strict";var Wi=Ru(),OC=qo(),UC=mn().extendFlat,P$=il().overrideAll;VC.exports=P$({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:Wi.linecolor,outlinewidth:Wi.linewidth,bordercolor:Wi.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Wi.minor.tickmode,nticks:Wi.nticks,tick0:Wi.tick0,dtick:Wi.dtick,tickvals:Wi.tickvals,ticktext:Wi.ticktext,ticks:UC({},Wi.ticks,{dflt:""}),ticklabeloverflow:UC({},Wi.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:Wi.ticklen,tickwidth:Wi.tickwidth,tickcolor:Wi.tickcolor,ticklabelstep:Wi.ticklabelstep,showticklabels:Wi.showticklabels,labelalias:Wi.labelalias,tickfont:OC({}),tickangle:Wi.tickangle,tickformat:Wi.tickformat,tickformatstops:Wi.tickformatstops,tickprefix:Wi.tickprefix,showtickprefix:Wi.showtickprefix,ticksuffix:Wi.ticksuffix,showticksuffix:Wi.showticksuffix,separatethousands:Wi.separatethousands,exponentformat:Wi.exponentformat,minexponent:Wi.minexponent,showexponent:Wi.showexponent,title:{text:{valType:"string"},font:OC({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var xc=me((Oge,GC)=>{"use strict";var z$=V_(),I$=c0().counter,R$=g_(),HC=ed().scales,Bge=R$(HC);function H_(e){return"`"+e+"`"}GC.exports=function(t,r){t=t||"",r=r||{};var i=r.cLetter||"c",a="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,s="noScale"in r?r.noScale:t==="marker.line",l="showScaleDflt"in r?r.showScaleDflt:i==="z",f=typeof r.colorscaleDflt=="string"?HC[r.colorscaleDflt]:null,h=r.editTypeOverride||"",v=t?t+".":"",m,_;"colorAttr"in r?(m=r.colorAttr,_=r.colorAttr):(m={z:"z",c:"color"}[i],_="in "+H_(v+m));var T=a?" Has an effect only if "+_+" is set to a numerical array.":"",S=i+"auto",C=i+"min",D=i+"max",E=i+"mid",I=H_(v+S),B=H_(v+C),q=H_(v+D),z=B+" and "+q,O={};O[C]=O[D]=void 0;var H={};H[S]=!1;var V={};return m==="color"&&(V.color={valType:"color",arrayOk:!0,editType:h||"style"},r.anim&&(V.color.anim=!0)),V[S]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:O},V[C]={valType:"number",dflt:null,editType:h||"plot",impliedEdits:H},V[D]={valType:"number",dflt:null,editType:h||"plot",impliedEdits:H},V[E]={valType:"number",dflt:null,editType:"calc",impliedEdits:O},V.colorscale={valType:"colorscale",editType:"calc",dflt:f,impliedEdits:{autocolorscale:!1}},V.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},V.reversescale={valType:"boolean",dflt:!1,editType:"plot"},s||(V.showscale={valType:"boolean",dflt:l,editType:"calc"},V.colorbar=z$),r.noColorAxis||(V.coloraxis={valType:"subplotid",regex:I$("coloraxis"),dflt:null,editType:"calc"}),V}});var Vw=me((Uge,ZC)=>{"use strict";var F$=mn().extendFlat,q$=xc(),Uw=ed().scales;ZC.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Uw.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Uw.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Uw.RdBu,editType:"calc"}},coloraxis:F$({_isSubplotObj:!0,editType:"calc"},q$("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Hw=me((Vge,YC)=>{"use strict";var N$=Bt();YC.exports=function(t){return N$.isPlainObject(t.colorbar)}});var Yw=me(Zw=>{"use strict";var Gw=Da(),WC=Bt(),XC=Zi(),B$=XC.ONEDAY,O$=XC.ONEWEEK;Zw.dtick=function(e,t){var r=t==="log",i=t==="date",a=t==="category",s=i?B$:1;if(!e)return s;if(Gw(e))return e=Number(e),e<=0?s:a?Math.max(1,Math.round(e)):i?Math.max(.1,e):e;if(typeof e!="string"||!(i||r))return s;var l=e.charAt(0),f=e.substr(1);return f=Gw(f)?Number(f):0,f<=0||!(i&&l==="M"&&f===Math.round(f)||r&&l==="L"||r&&l==="D"&&(f===1||f===2))?s:e};Zw.tick0=function(e,t,r,i){if(t==="date")return WC.cleanDate(e,WC.dateTick0(r,i%O$===0?1:0));if(!(i==="D1"||i==="D2"))return Gw(e)?Number(e):0}});var Ww=me((Gge,JC)=>{"use strict";var jC=Yw(),U$=Bt().isArrayOrTypedArray,V$=al().isTypedArraySpec,H$=al().decodeTypedArraySpec;JC.exports=function(t,r,i,a,s){s||(s={});var l=s.isMinor,f=l?t.minor||{}:t,h=l?r.minor:r,v=l?"minor.":"";function m(B){var q=f[B];return V$(q)&&(q=H$(q)),q!==void 0?q:(h._template||{})[B]}var _=m("tick0"),T=m("dtick"),S=m("tickvals"),C=U$(S)?"array":T?"linear":"auto",D=i(v+"tickmode",C);if(D==="auto"||D==="sync")i(v+"nticks");else if(D==="linear"){var E=h.dtick=jC.dtick(T,a);h.tick0=jC.tick0(_,a,r.calendar,E)}else if(a!=="multicategory"){var I=i(v+"tickvals");I===void 0?h.tickmode="auto":l||i("ticktext")}}});var jw=me((Zge,QC)=>{"use strict";var Xw=Bt(),KC=Ru();QC.exports=function(t,r,i,a){var s=a.isMinor,l=s?t.minor||{}:t,f=s?r.minor:r,h=s?KC.minor:KC,v=s?"minor.":"",m=Xw.coerce2(l,f,h,"ticklen",s?(r.ticklen||5)*.6:void 0),_=Xw.coerce2(l,f,h,"tickwidth",s?r.tickwidth||1:void 0),T=Xw.coerce2(l,f,h,"tickcolor",(s?r.tickcolor:void 0)||f.color),S=i(v+"ticks",!s&&a.outerTicks||m||_||T?"outside":"");S||(delete f.ticklen,delete f.tickwidth,delete f.tickcolor)}});var Jw=me((Yge,$C)=>{"use strict";$C.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],i=r.filter(function(s){return t[s]!==void 0}),a=function(s){return t[s]===t[i[0]]};if(i.every(a)||i.length===1)return t[i[0]]}});var Wl=me((Wge,eE)=>{"use strict";var G_=Bt(),G$=Ri();eE.exports=function(t,r,i){var a=i.name,s=i.inclusionAttr||"visible",l=r[a],f=G_.isArrayOrTypedArray(t[a])?t[a]:[],h=r[a]=[],v=G$.arrayTemplater(r,a,s),m,_;for(m=0;m{"use strict";var Kw=Bt(),Z$=Oa().contrast,tE=Ru(),Y$=Jw(),W$=Wl();rE.exports=function(t,r,i,a,s){s||(s={});var l=i("labelalias");Kw.isPlainObject(l)||delete r.labelalias;var f=Y$(t),h=i("showticklabels");if(h){s.noTicklabelshift||i("ticklabelshift"),s.noTicklabelstandoff||i("ticklabelstandoff");var v=s.font||{},m=r.color,_=r.ticklabelposition||"",T=_.indexOf("inside")!==-1?Z$(s.bgColor):m&&m!==tE.color.dflt?m:v.color;if(Kw.coerceFont(i,"tickfont",v,{overrideDflt:{color:T}}),!s.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&i("ticklabelstep"),!s.noAng){var S=i("tickangle");!s.noAutotickangles&&S==="auto"&&i("autotickangles")}if(a!=="category"){var C=i("tickformat");W$(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:X$}),r.tickformatstops.length||delete r.tickformatstops,!s.noExp&&!C&&a!=="date"&&(i("showexponent",f),i("exponentformat"),i("minexponent"),i("separatethousands"))}!s.noMinorloglabels&&a==="log"&&i("minorloglabels")}};function X$(e,t){function r(a,s){return Kw.coerce(e,t,tE.tickformatstops,a,s)}var i=r("enabled");i&&(r("dtickrange"),r("value"))}});var $w=me((jge,aE)=>{"use strict";var j$=Jw();aE.exports=function(t,r,i,a,s){s||(s={});var l=s.tickSuffixDflt,f=j$(t),h=i("tickprefix");h&&i("showtickprefix",f);var v=i("ticksuffix",l);v&&i("showticksuffix",f)}});var e5=me((Jge,iE)=>{"use strict";var Ih=Bt(),J$=Ri(),K$=Ww(),Q$=jw(),$$=Qw(),eee=$w(),tee=V_();iE.exports=function(t,r,i){var a=J$.newContainer(r,"colorbar"),s=t.colorbar||{};function l(ne,oe){return Ih.coerce(s,a,tee,ne,oe)}var f=i.margin||{t:0,b:0,l:0,r:0},h=i.width-f.l-f.r,v=i.height-f.t-f.b,m=l("orientation"),_=m==="v",T=l("thicknessmode");l("thickness",T==="fraction"?30/(_?h:v):30);var S=l("lenmode");l("len",S==="fraction"?1:_?v:h);var C=l("yref"),D=l("xref"),E=C==="paper",I=D==="paper",B,q,z,O="left";_?(z="middle",O=I?"left":"right",B=I?1.02:1,q=.5):(z=E?"bottom":"top",O="center",B=.5,q=E?1.02:1),Ih.coerce(s,a,{x:{valType:"number",min:I?-2:0,max:I?3:1,dflt:B}},"x"),Ih.coerce(s,a,{y:{valType:"number",min:E?-2:0,max:E?3:1,dflt:q}},"y"),l("xanchor",O),l("xpad"),l("yanchor",z),l("ypad"),Ih.noneOrAll(s,a,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var H=Ih.coerce(s,a,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:_?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",H.indexOf("inside")!==-1?"hide past domain":"hide past div"),K$(s,a,l,"linear");var V=i.font,W={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:V};H.indexOf("inside")!==-1&&(W.bgColor="black"),eee(s,a,l,"linear",W),$$(s,a,l,"linear",W),Q$(s,a,l,"linear",W),l("title.text",i._dfltTitle.colorbar);var J=a.showticklabels?a.tickfont:V,te=Ih.extendFlat({},V,{family:J.family,size:Ih.bigFont(J.size)});Ih.coerceFont(l,"title.font",te),l("title.side",_?"top":"right")}});var hd=me((Kge,sE)=>{"use strict";var nE=Da(),r5=Bt(),ree=Hw(),aee=e5(),oE=ed().isValid,iee=la().traceIs;function t5(e,t){var r=t.slice(0,t.length-1);return t?r5.nestedProperty(e,r).get()||{}:e}sE.exports=function e(t,r,i,a,s){var l=s.prefix,f=s.cLetter,h="_module"in r,v=t5(t,l),m=t5(r,l),_=t5(r._template||{},l)||{},T=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,i,a,s)};if(h){var S=i._colorAxes||{},C=a(l+"coloraxis");if(C){var D=iee(r,"contour")&&r5.nestedProperty(r,"contours.coloring").get()||"heatmap",E=S[C];E?(E[2].push(T),E[0]!==D&&(E[0]=!1,r5.warn(["Ignoring coloraxis:",C,"setting","as it is linked to incompatible colorscales."].join(" ")))):S[C]=[D,r,[T]];return}}var I=v[f+"min"],B=v[f+"max"],q=nE(I)&&nE(B)&&I{"use strict";var lE=Bt(),nee=Ri(),uE=Vw(),oee=hd();fE.exports=function(t,r){function i(_,T){return lE.coerce(t,r,uE,_,T)}i("colorscale.sequential"),i("colorscale.sequentialminus"),i("colorscale.diverging");var a=r._colorAxes,s,l;function f(_,T){return lE.coerce(s,l,uE.coloraxis,_,T)}for(var h in a){var v=a[h];if(v[0])s=t[h]||{},l=nee.newContainer(r,h,"coloraxis"),l._name=h,oee(s,l,r,f,{prefix:"",cLetter:"c"});else{for(var m=0;m{"use strict";var see=Bt(),lee=kf().hasColorscale,uee=kf().extractOpts;hE.exports=function(t,r){function i(m,_){var T=m["_"+_];T!==void 0&&(m[_]=T)}function a(m,_){var T=_.container?see.nestedProperty(m,_.container).get():m;if(T)if(T.coloraxis)T._colorAx=r[T.coloraxis];else{var S=uee(T),C=S.auto;(C||S.min===void 0)&&i(T,_.min),(C||S.max===void 0)&&i(T,_.max),S.autocolorscale&&i(T,"colorscale")}}for(var s=0;s{"use strict";var dE=Da(),a5=Bt(),fee=kf().extractOpts;pE.exports=function(t,r,i){var a=t._fullLayout,s=i.vals,l=i.containerStr,f=l?a5.nestedProperty(r,l).get():r,h=fee(f),v=h.auto!==!1,m=h.min,_=h.max,T=h.mid,S=function(){return a5.aggNums(Math.min,null,s)},C=function(){return a5.aggNums(Math.max,null,s)};if(m===void 0?m=S():v&&(f._colorAx&&dE(m)?m=Math.min(m,S()):m=S()),_===void 0?_=C():v&&(f._colorAx&&dE(_)?_=Math.max(_,C()):_=C()),v&&T!==void 0&&(_-T>T-m?m=T-(_-T):_-T=0?D=a.colorscale.sequential:D=a.colorscale.sequentialminus,h._sync("colorscale",D)}}});var L0=me((t1e,mE)=>{"use strict";var Z_=ed(),E0=kf();mE.exports={moduleType:"component",name:"colorscale",attributes:xc(),layoutAttributes:Vw(),supplyLayoutDefaults:cE(),handleDefaults:hd(),crossTraceDefaults:vE(),calc:Yy(),scales:Z_.scales,defaultScale:Z_.defaultScale,getScale:Z_.get,isValidScale:Z_.isValid,hasColorscale:E0.hasColorscale,extractOpts:E0.extractOpts,extractScale:E0.extractScale,flipScale:E0.flipScale,makeColorScaleFunc:E0.makeColorScaleFunc,makeColorScaleFuncFromTrace:E0.makeColorScaleFuncFromTrace}});var rs=me((r1e,gE)=>{"use strict";var yE=Bt(),cee=al().isTypedArraySpec;gE.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return yE.isPlainObject(t)&&(yE.isArrayOrTypedArray(t.size)||cee(t.size))}}});var i5=me((a1e,_E)=>{"use strict";var hee=Da();_E.exports=function(t,r){r||(r=2);var i=t.marker,a=i.sizeref||1,s=i.sizemin||0,l=i.sizemode==="area"?function(f){return Math.sqrt(f/a)}:function(f){return f/a};return function(f){var h=l(f/r);return hee(h)&&h>0?Math.max(h,s):0}}});var bc=me(No=>{"use strict";var xE=Bt();No.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};No.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],i=e.yaxes||[],a=0;a=0&&r.index{TE.exports=yee;var n5={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},mee=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function yee(e){var t=[];return e.replace(mee,function(r,i,a){var s=i.toLowerCase();for(a=_ee(a),s=="m"&&a.length>2&&(t.push([i].concat(a.splice(0,2))),s="l",i=i=="m"?"l":"L");;){if(a.length==n5[s])return a.unshift(i),t.push(a);if(a.length{"use strict";var xee=o5(),sr=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},ha="M0,0Z",AE=Math.sqrt(2),Rh=Math.sqrt(3),s5=Math.PI,l5=Math.cos,u5=Math.sin;EE.exports={circle:{n:0,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a="M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z";return r?da(t,r,a):a}},square:{n:1,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")}},diamond:{n:2,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.3,2);return da(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"Z")}},cross:{n:3,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.4,2),a=sr(e*1.2,2);return da(t,r,"M"+a+","+i+"H"+i+"V"+a+"H-"+i+"V"+i+"H-"+a+"V-"+i+"H-"+i+"V-"+a+"H"+i+"V-"+i+"H"+a+"Z")}},x:{n:4,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.8/AE,2),a="l"+i+","+i,s="l"+i+",-"+i,l="l-"+i+",-"+i,f="l-"+i+","+i;return da(t,r,"M0,"+i+a+s+l+s+l+f+l+f+a+f+a+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2/Rh,2),a=sr(e/2,2),s=sr(e,2);return da(t,r,"M-"+i+","+a+"H"+i+"L0,-"+s+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2/Rh,2),a=sr(e/2,2),s=sr(e,2);return da(t,r,"M-"+i+",-"+a+"H"+i+"L0,"+s+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2/Rh,2),a=sr(e/2,2),s=sr(e,2);return da(t,r,"M"+a+",-"+i+"V"+i+"L-"+s+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2/Rh,2),a=sr(e/2,2),s=sr(e,2);return da(t,r,"M-"+a+",-"+i+"V"+i+"L"+s+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.6,2),a=sr(e*1.2,2);return da(t,r,"M-"+a+",-"+i+"H"+i+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.6,2),a=sr(e*1.2,2);return da(t,r,"M"+i+",-"+a+"V"+i+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.6,2),a=sr(e*1.2,2);return da(t,r,"M"+a+","+i+"H-"+i+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.6,2),a=sr(e*1.2,2);return da(t,r,"M-"+i+","+a+"V-"+i+"H"+a+"Z")}},pentagon:{n:13,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.951,2),a=sr(e*.588,2),s=sr(-e,2),l=sr(e*-.309,2),f=sr(e*.809,2);return da(t,r,"M"+i+","+l+"L"+a+","+f+"H-"+a+"L-"+i+","+l+"L0,"+s+"Z")}},hexagon:{n:14,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e/2,2),s=sr(e*Rh/2,2);return da(t,r,"M"+s+",-"+a+"V"+a+"L0,"+i+"L-"+s+","+a+"V-"+a+"L0,-"+i+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e/2,2),s=sr(e*Rh/2,2);return da(t,r,"M-"+a+","+s+"H"+a+"L"+i+",0L"+a+",-"+s+"H-"+a+"L-"+i+",0Z")}},octagon:{n:16,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.924,2),a=sr(e*.383,2);return da(t,r,"M-"+a+",-"+i+"H"+a+"L"+i+",-"+a+"V"+a+"L"+a+","+i+"H-"+a+"L-"+i+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,t,r){if(va(t))return ha;var i=e*1.4,a=sr(i*.225,2),s=sr(i*.951,2),l=sr(i*.363,2),f=sr(i*.588,2),h=sr(-i,2),v=sr(i*-.309,2),m=sr(i*.118,2),_=sr(i*.809,2),T=sr(i*.382,2);return da(t,r,"M"+a+","+v+"H"+s+"L"+l+","+m+"L"+f+","+_+"L0,"+T+"L-"+f+","+_+"L-"+l+","+m+"L-"+s+","+v+"H-"+a+"L0,"+h+"Z")}},hexagram:{n:18,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.66,2),a=sr(e*.38,2),s=sr(e*.76,2);return da(t,r,"M-"+s+",0l-"+a+",-"+i+"h"+s+"l"+a+",-"+i+"l"+a+","+i+"h"+s+"l-"+a+","+i+"l"+a+","+i+"h-"+s+"l-"+a+","+i+"l-"+a+",-"+i+"h-"+s+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(va(t))return ha;var i=sr(e*Rh*.8,2),a=sr(e*.8,2),s=sr(e*1.6,2),l=sr(e*4,2),f="A "+l+","+l+" 0 0 1 ";return da(t,r,"M-"+i+","+a+f+i+","+a+f+"0,-"+s+f+"-"+i+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(va(t))return ha;var i=sr(e*Rh*.8,2),a=sr(e*.8,2),s=sr(e*1.6,2),l=sr(e*4,2),f="A "+l+","+l+" 0 0 1 ";return da(t,r,"M"+i+",-"+a+f+"-"+i+",-"+a+f+"0,"+s+f+i+",-"+a+"Z")}},"star-square":{n:21,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.1,2),a=sr(e*2,2),s="A "+a+","+a+" 0 0 1 ";return da(t,r,"M-"+i+",-"+i+s+"-"+i+","+i+s+i+","+i+s+i+",-"+i+s+"-"+i+",-"+i+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.4,2),a=sr(e*1.9,2),s="A "+a+","+a+" 0 0 1 ";return da(t,r,"M-"+i+",0"+s+"0,"+i+s+i+",0"+s+"0,-"+i+s+"-"+i+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(va(t))return ha;var i=sr(e*.7,2),a=sr(e*1.4,2);return da(t,r,"M0,"+a+"L"+i+",0L0,-"+a+"L-"+i+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.4,2),a=sr(e*.7,2);return da(t,r,"M0,"+a+"L"+i+",0L0,-"+a+"L-"+i+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+","+i+"H-"+i+"L"+i+",-"+i+"H-"+i+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+","+i+"V-"+i+"L-"+i+","+i+"V-"+i+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e/AE,2);return da(t,r,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.3,2);return da(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"ZM0,-"+i+"V"+i+"M-"+i+",0H"+i)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.3,2),a=sr(e*.65,2);return da(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.4,2);return da(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.2,2),a=sr(e*.85,2);return da(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(va(t))return ha;var i=sr(e/2,2),a=sr(e,2);return da(t,r,"M"+i+","+a+"V-"+a+"M"+(i-a)+",-"+a+"V"+a+"M"+a+","+i+"H-"+a+"M-"+a+","+(i-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.2,2),a=sr(e*1.6,2),s=sr(e*.8,2);return da(t,r,"M-"+i+","+s+"L0,0M"+i+","+s+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.2,2),a=sr(e*1.6,2),s=sr(e*.8,2);return da(t,r,"M-"+i+",-"+s+"L0,0M"+i+",-"+s+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.2,2),a=sr(e*1.6,2),s=sr(e*.8,2);return da(t,r,"M"+s+","+i+"L0,0M"+s+",-"+i+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.2,2),a=sr(e*1.6,2),s=sr(e*.8,2);return da(t,r,"M-"+s+","+i+"L0,0M-"+s+",-"+i+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.4,2);return da(t,r,"M"+i+",0H-"+i)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(va(t))return ha;var i=sr(e*1.4,2);return da(t,r,"M0,"+i+"V-"+i)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2);return da(t,r,"M"+i+","+i+"L-"+i+",-"+i)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e*2,2);return da(t,r,"M0,0L-"+i+","+a+"H"+i+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e*2,2);return da(t,r,"M0,0L-"+i+",-"+a+"H"+i+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2,2),a=sr(e,2);return da(t,r,"M0,0L"+i+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2,2),a=sr(e,2);return da(t,r,"M0,0L-"+i+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e*2,2);return da(t,r,"M-"+i+",0H"+i+"M0,0L-"+i+","+a+"H"+i+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(va(t))return ha;var i=sr(e,2),a=sr(e*2,2);return da(t,r,"M-"+i+",0H"+i+"M0,0L-"+i+",-"+a+"H"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2,2),a=sr(e,2);return da(t,r,"M0,-"+a+"V"+a+"M0,0L"+i+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(va(t))return ha;var i=sr(e*2,2),a=sr(e,2);return da(t,r,"M0,-"+a+"V"+a+"M0,0L-"+i+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(va(t))return ha;var i=s5/2.5,a=2*e*l5(i),s=2*e*u5(i);return da(t,r,"M0,0L"+-a+","+s+"L"+a+","+s+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(va(t))return ha;var i=s5/4,a=2*e*l5(i),s=2*e*u5(i);return da(t,r,"M0,0L"+-a+","+s+"A "+2*e+","+2*e+" 0 0 1 "+a+","+s+"Z")},backoff:.4,noDot:!0}};function va(e){return e===null}var ME,SE,kE,CE;function da(e,t,r){if((!e||e%360===0)&&!t)return r;if(kE===e&&CE===t&&ME===r)return SE;kE=e,CE=t,ME=r;function i(E,I){var B=l5(E),q=u5(E),z=I[0],O=I[1]+(t||0);return[z*B-O*q,z*q+O*B]}for(var a=e/180*s5,s=0,l=0,f=xee(r),h="",v=0;v{"use strict";var to=ja(),xi=Bt(),bee=xi.numberFormat,md=Da(),p5=Tf(),W_=la(),Mo=Oa(),wee=L0(),Xy=xi.strTranslate,X_=co(),Tee=zh(),Aee=ts(),Mee=Aee.LINE_SPACING,OE=i_().DESELECTDIM,See=rs(),kee=i5(),Cee=bc().appendArrayPointValue,_r=JE.exports={};_r.font=function(e,t){var r=t.variant,i=t.style,a=t.weight,s=t.color,l=t.size,f=t.family,h=t.shadow,v=t.lineposition,m=t.textcase;f&&e.style("font-family",f),l+1&&e.style("font-size",l+"px"),s&&e.call(Mo.fill,s),a&&e.style("font-weight",a),i&&e.style("font-style",i),r&&e.style("font-variant",r),m&&e.style("text-transform",f5(Lee(m))),h&&e.style("text-shadow",h==="auto"?X_.makeTextShadow(Mo.contrast(s)):f5(h)),v&&e.style("text-decoration-line",f5(Dee(v)))};function f5(e){return e==="none"?void 0:e}var Eee={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Lee(e){return Eee[e]}function Dee(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}_r.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};_r.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};_r.setRect=function(e,t,r,i,a){e.call(_r.setPosition,t,r).call(_r.setSize,i,a)};_r.translatePoint=function(e,t,r,i){var a=r.c2p(e.x),s=i.c2p(e.y);if(md(a)&&md(s)&&t.node())t.node().nodeName==="text"?t.attr("x",a).attr("y",s):t.attr("transform",Xy(a,s));else return!1;return!0};_r.translatePoints=function(e,t,r){e.each(function(i){var a=to.select(this);_r.translatePoint(i,a,t,r)})};_r.hideOutsideRangePoint=function(e,t,r,i,a,s){t.attr("display",r.isPtWithinRange(e,a)&&i.isPtWithinRange(e,s)?null:"none")};_r.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,i=t.yaxis;e.each(function(a){var s=a[0].trace,l=s.xcalendar,f=s.ycalendar,h=W_.traceIs(s,"bar-like")?".bartext":".point,.textpoint";e.selectAll(h).each(function(v){_r.hideOutsideRangePoint(v,to.select(this),r,i,l,f)})})}};_r.crispRound=function(e,t,r){return!t||!md(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};_r.singleLineStyle=function(e,t,r,i,a){t.style("fill","none");var s=(((e||[])[0]||{}).trace||{}).line||{},l=r||s.width||0,f=a||s.dash||"";Mo.stroke(t,i||s.color),_r.dashLine(t,f,l)};_r.lineGroupStyle=function(e,t,r,i){e.style("fill","none").each(function(a){var s=(((a||[])[0]||{}).trace||{}).line||{},l=t||s.width||0,f=i||s.dash||"";to.select(this).call(Mo.stroke,r||s.color).call(_r.dashLine,f,l)})};_r.dashLine=function(e,t,r){r=+r||0,t=_r.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};_r.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function UE(e,t,r,i){var a=t.fillpattern,s=t.fillgradient,l=_r.getPatternAttr,f=a&&(l(a.shape,0,"")||l(a.path,0,""));if(f){var h=l(a.bgcolor,0,null),v=l(a.fgcolor,0,null),m=a.fgopacity,_=l(a.size,0,8),T=l(a.solidity,0,.3),S=t.uid;_r.pattern(e,"point",r,S,f,_,T,void 0,a.fillmode,h,v,m)}else if(s&&s.type!=="none"){var C=s.type,D="scatterfill-"+t.uid;if(i&&(D="legendfill-"+t.uid),!i&&(s.start!==void 0||s.stop!==void 0)){var E,I;C==="horizontal"?(E={x:s.start,y:0},I={x:s.stop,y:0}):C==="vertical"&&(E={x:0,y:s.start},I={x:0,y:s.stop}),E.x=t._xA.c2p(E.x===void 0?t._extremes.x.min[0].val:E.x,!0),E.y=t._yA.c2p(E.y===void 0?t._extremes.y.min[0].val:E.y,!0),I.x=t._xA.c2p(I.x===void 0?t._extremes.x.max[0].val:I.x,!0),I.y=t._yA.c2p(I.y===void 0?t._extremes.y.max[0].val:I.y,!0),e.call(GE,r,D,"linear",s.colorscale,"fill",E,I,!0,!1)}else C==="horizontal"&&(C=C+"reversed"),e.call(_r.gradient,r,D,C,s.colorscale,"fill")}else t.fillcolor&&e.call(Mo.fill,t.fillcolor)}_r.singleFillStyle=function(e,t){var r=to.select(e.node()),i=r.data(),a=((i[0]||[])[0]||{}).trace||{};UE(e,a,t,!1)};_r.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(i){var a=to.select(this);i[0].trace&&UE(a,i[0].trace,t,r)})};var DE=LE();_r.symbolNames=[];_r.symbolFuncs=[];_r.symbolBackOffs=[];_r.symbolNeedLines={};_r.symbolNoDot={};_r.symbolNoFill={};_r.symbolList=[];Object.keys(DE).forEach(function(e){var t=DE[e],r=t.n;_r.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),_r.symbolNames[r]=e,_r.symbolFuncs[r]=t.f,_r.symbolBackOffs[r]=t.backoff||0,t.needLine&&(_r.symbolNeedLines[r]=!0),t.noDot?_r.symbolNoDot[r]=!0:_r.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(_r.symbolNoFill[r]=!0)});var Pee=_r.symbolNames.length,zee="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";_r.symbolNumber=function(e){if(md(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=_r.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=Pee||e>=400?0:Math.floor(Math.max(e,0))};function VE(e,t,r,i){var a=e%100;return _r.symbolFuncs[a](t,r,i)+(e>=200?zee:"")}var PE=bee("~f"),HE={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};_r.gradient=function(e,t,r,i,a,s){var l=HE[i];return GE(e,t,r,l.type,a,s,l.start,l.stop,!1,l.reversed)};function GE(e,t,r,i,a,s,l,f,h,v){var m=a.length,_;i==="linear"?_={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:f.x,y2:f.y,gradientUnits:h?"userSpaceOnUse":"objectBoundingBox"},reversed:v}:i==="radial"&&(_={node:"radialGradient",reversed:v});for(var T=new Array(m),S=0;S=0&&e.i===void 0&&(e.i=s.i),t.style("opacity",i.selectedOpacityFn?i.selectedOpacityFn(e):e.mo===void 0?l.opacity:e.mo),i.ms2mrc){var h;e.ms==="various"||l.size==="various"?h=3:h=i.ms2mrc(e.ms),e.mrc=h,i.selectedSizeFn&&(h=e.mrc=i.selectedSizeFn(e));var v=_r.symbolNumber(e.mx||l.symbol)||0;e.om=v%200>=100;var m=g5(e,r),_=y5(e,r);t.attr("d",VE(v,h,m,_))}var T=!1,S,C,D;if(e.so)D=f.outlierwidth,C=f.outliercolor,S=l.outliercolor;else{var E=(f||{}).width;D=(e.mlw+1||E+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?C=e.mlcc=i.lineScale(e.mlc):xi.isArrayOrTypedArray(f.color)?C=Mo.defaultLine:C=f.color,xi.isArrayOrTypedArray(l.color)&&(S=Mo.defaultLine,T=!0),"mc"in e?S=e.mcc=i.markerScale(e.mc):S=l.color||l.colors||"rgba(0,0,0,0)",i.selectedColorFn&&(S=i.selectedColorFn(e))}if(e.om)t.call(Mo.stroke,S).style({"stroke-width":(D||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:D)+"px");var I=l.gradient,B=e.mgt;B?T=!0:B=I&&I.type,xi.isArrayOrTypedArray(B)&&(B=B[0],HE[B]||(B=0));var q=l.pattern,z=_r.getPatternAttr,O=q&&(z(q.shape,e.i,"")||z(q.path,e.i,""));if(B&&B!=="none"){var H=e.mgc;H?T=!0:H=I.color;var V=r.uid;T&&(V+="-"+e.i),_r.gradient(t,a,V,B,[[0,H],[1,S]],"fill")}else if(O){var W=!1,J=q.fgcolor;!J&&s&&s.color&&(J=s.color,W=!0);var te=z(J,e.i,s&&s.color||null),ne=z(q.bgcolor,e.i,null),oe=q.fgopacity,fe=z(q.size,e.i,8),de=z(q.solidity,e.i,.3);W=W||e.mcc||xi.isArrayOrTypedArray(q.shape)||xi.isArrayOrTypedArray(q.path)||xi.isArrayOrTypedArray(q.bgcolor)||xi.isArrayOrTypedArray(q.fgcolor)||xi.isArrayOrTypedArray(q.size)||xi.isArrayOrTypedArray(q.solidity);var Me=r.uid;W&&(Me+="-"+e.i),_r.pattern(t,"point",a,Me,O,fe,de,e.mcc,q.fillmode,ne,te,oe)}else xi.isArrayOrTypedArray(S)?Mo.fill(t,S[e.i]):Mo.fill(t,S);D&&Mo.stroke(t,C)}};_r.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=_r.tryColorscale(r,""),t.lineScale=_r.tryColorscale(r,"line"),W_.traceIs(e,"symbols")&&(t.ms2mrc=See.isBubble(e)?kee(e):function(){return(r.size||6)/2}),e.selectedpoints&&xi.extendFlat(t,_r.makeSelectedPointStyleFns(e)),t};_r.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},i=e.unselected||{},a=e.marker||{},s=r.marker||{},l=i.marker||{},f=a.opacity,h=s.opacity,v=l.opacity,m=h!==void 0,_=v!==void 0;(xi.isArrayOrTypedArray(f)||m||_)&&(t.selectedOpacityFn=function(z){var O=z.mo===void 0?a.opacity:z.mo;return z.selected?m?h:O:_?v:OE*O});var T=a.color,S=s.color,C=l.color;(S||C)&&(t.selectedColorFn=function(z){var O=z.mcc||T;return z.selected?S||O:C||O});var D=a.size,E=s.size,I=l.size,B=E!==void 0,q=I!==void 0;return W_.traceIs(e,"symbols")&&(B||q)&&(t.selectedSizeFn=function(z){var O=z.mrc||D/2;return z.selected?B?E/2:O:q?I/2:O}),t};_r.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},i=e.unselected||{},a=e.textfont||{},s=r.textfont||{},l=i.textfont||{},f=a.color,h=s.color,v=l.color;return t.selectedTextColorFn=function(m){var _=m.tc||f;return m.selected?h||_:v||(h?_:Mo.addOpacity(_,OE))},t};_r.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=_r.makeSelectedPointStyleFns(t),i=t.marker||{},a=[];r.selectedOpacityFn&&a.push(function(s,l){s.style("opacity",r.selectedOpacityFn(l))}),r.selectedColorFn&&a.push(function(s,l){Mo.fill(s,r.selectedColorFn(l))}),r.selectedSizeFn&&a.push(function(s,l){var f=l.mx||i.symbol||0,h=r.selectedSizeFn(l);s.attr("d",VE(_r.symbolNumber(f),h,g5(l,t),y5(l,t))),l.mrc2=h}),a.length&&e.each(function(s){for(var l=to.select(this),f=0;f0?r:0}_r.textPointStyle=function(e,t,r){if(e.size()){var i;if(t.selectedpoints){var a=_r.makeSelectedTextStyleFns(t);i=a.selectedTextColorFn}var s=t.texttemplate,l=r._fullLayout;e.each(function(f){var h=to.select(this),v=s?xi.extractOption(f,t,"txt","texttemplate"):xi.extractOption(f,t,"tx","text");if(!v&&v!==0){h.remove();return}if(s){var m=t._module.formatLabels,_=m?m(f,t,l):{},T={};Cee(T,t,f.i);var S=t._meta||{};v=xi.texttemplateString(v,_,l._d3locale,T,f,S)}var C=f.tp||t.textposition,D=YE(f,t),E=i?i(f):f.tc||t.textfont.color;h.call(_r.font,{family:f.tf||t.textfont.family,weight:f.tw||t.textfont.weight,style:f.ty||t.textfont.style,variant:f.tv||t.textfont.variant,textcase:f.tC||t.textfont.textcase,lineposition:f.tE||t.textfont.lineposition,shadow:f.tS||t.textfont.shadow,size:D,color:E}).text(v).call(X_.convertToTspans,r).call(ZE,C,D,f.mrc)})}};_r.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=_r.makeSelectedTextStyleFns(t);e.each(function(i){var a=to.select(this),s=r.selectedTextColorFn(i),l=i.tp||t.textposition,f=YE(i,t);Mo.fill(a,s);var h=W_.traceIs(t,"bar-like");ZE(a,l,f,i.mrc2||i.mrc,h)})}};var zE=.5;_r.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],i=[],a;for(a=1;a=h||z>=m&&z<=h)&&(O<=_&&O>=v||O>=_&&O<=v)&&(e=[z,O])}return e}_r.applyBackoff=jE;_r.makeTester=function(){var e=xi.ensureSingleById(to.select("body"),"svg","js-plotly-tester",function(r){r.attr(Tee.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=xi.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});_r.tester=e,_r.testref=t};_r.savedBBoxes={};var h5=0,Fee=1e4;_r.bBox=function(e,t,r){r||(r=IE(e));var i;if(r){if(i=_r.savedBBoxes[r],i)return xi.extendFlat({},i)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(r=IE(a),r){var s=+a.getAttribute("x")||0,l=+a.getAttribute("y")||0,f=a.getAttribute("transform");if(!f){var h=_r.bBox(a,!1,r);return s&&(h.left+=s,h.right+=s),l&&(h.top+=l,h.bottom+=l),h}if(r+="~"+s+"~"+l+"~"+f,i=_r.savedBBoxes[r],i)return xi.extendFlat({},i)}}var v,m;t?v=e:(m=_r.tester.node(),v=e.cloneNode(!0),m.appendChild(v)),to.select(v).attr("transform",null).call(X_.positionText,0,0);var _=v.getBoundingClientRect(),T=_r.testref.node().getBoundingClientRect();t||m.removeChild(v);var S={height:_.height,width:_.width,left:_.left-T.left,top:_.top-T.top,right:_.right-T.left,bottom:_.bottom-T.top};return h5>=Fee&&(_r.savedBBoxes={},h5=0),r&&(_r.savedBBoxes[r]=S),h5++,xi.extendFlat({},S)};function IE(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}_r.setClipUrl=function(e,t,r){e.attr("clip-path",m5(t,r))};function m5(e,t){if(!e)return null;var r=t._context,i=r._exportedPlot?"":r._baseUrl||"";return i?"url('"+i+"#"+e+"')":"url(#"+e+")"}_r.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",i=e[r]("transform")||"",a=i.replace(t,function(s,l,f){return[l,f].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}};_r.setTranslate=function(e,t,r){var i=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",s=e.attr?"attr":"setAttribute",l=e[a]("transform")||"";return t=t||0,r=r||0,l=l.replace(i,"").trim(),l+=Xy(t,r),l=l.trim(),e[s]("transform",l),l};_r.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",i=e[r]("transform")||"",a=i.replace(t,function(s,l,f){return[l,f].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}};_r.setScale=function(e,t,r){var i=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",s=e.attr?"attr":"setAttribute",l=e[a]("transform")||"";return t=t||1,r=r||1,l=l.replace(i,"").trim(),l+="scale("+t+","+r+")",l=l.trim(),e[s]("transform",l),l};var qee=/\s*sc.*/;_r.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var i=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(qee,"");a+=i,a=a.trim(),this.setAttribute("transform",a)})}};var Nee=/translate\([^)]*\)\s*$/;_r.setTextPointsScale=function(e,t,r){e&&e.each(function(){var i,a=to.select(this),s=a.select("text");if(s.node()){var l=parseFloat(s.attr("x")||0),f=parseFloat(s.attr("y")||0),h=(a.attr("transform")||"").match(Nee);t===1&&r===1?i=[]:i=[Xy(l,f),"scale("+t+","+r+")",Xy(-l,-f)],h&&i.push(h),a.attr("transform",i.join(""))}})};function y5(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}_r.getMarkerStandoff=y5;var Wy=Math.atan2,vd=Math.cos,P0=Math.sin;function RE(e,t){var r=t[0],i=t[1];return[r*vd(e)-i*P0(e),r*P0(e)+i*vd(e)]}var FE,qE,NE,BE,v5,d5;function g5(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!r||xi.isArrayOrTypedArray(r))&&(r=0));var i,a,s=t.marker.angleref;if(s==="previous"||s==="north"){if(t._geo){var l=t._geo.project(e.lonlat);i=l[0],a=l[1]}else{var f=t._xA,h=t._yA;if(f&&h)i=f.c2p(e.x),a=h.c2p(e.y);else return 90}if(t._geo){var v=e.lonlat[0],m=e.lonlat[1],_=t._geo.project([v,m+1e-5]),T=t._geo.project([v+1e-5,m]),S=Wy(T[1]-a,T[0]-i),C=Wy(_[1]-a,_[0]-i),D;if(s==="north")D=r/180*Math.PI;else if(s==="previous"){var E=v/180*Math.PI,I=m/180*Math.PI,B=FE/180*Math.PI,q=qE/180*Math.PI,z=B-E,O=vd(q)*P0(z),H=P0(q)*vd(I)-vd(q)*P0(I)*vd(z);D=-Wy(O,H)-Math.PI,FE=v,qE=m}var V=RE(S,[vd(D),0]),W=RE(C,[P0(D),0]);r=Wy(V[1]+W[1],V[0]+W[0])/Math.PI*180,s==="previous"&&!(d5===t.uid&&e.i===v5+1)&&(r=null)}if(s==="previous"&&!t._geo)if(d5===t.uid&&e.i===v5+1&&md(i)&&md(a)){var J=i-NE,te=a-BE,ne=t.line&&t.line.shape||"",oe=ne.slice(ne.length-1);oe==="h"&&(te=0),oe==="v"&&(J=0),r+=Wy(te,J)/Math.PI*180+90}else r=null}return NE=i,BE=a,v5=e.i,d5=t.uid,r}_r.getMarkerAngle=g5});var jy=me((l1e,eL)=>{"use strict";var z0=ja(),Bee=Da(),Oee=eo(),_5=la(),yd=Bt(),KE=yd.strTranslate,j_=bi(),J_=Oa(),I0=co(),QE=i_(),Uee=ts().OPPOSITE_SIDE,$E=/ [XY][0-9]* /,x5=1.6,b5=1.6;function Vee(e,t,r){var i=e._fullLayout,a=r.propContainer,s=r.propName,l=r.placeholder,f=r.traceIndex,h=r.avoid||{},v=r.attributes,m=r.transform,_=r.containerGroup,T=1,S=a.title,C=(S&&S.text?S.text:"").trim(),D=!1,E=S&&S.font?S.font:{},I=E.family,B=E.size,q=E.color,z=E.weight,O=E.style,H=E.variant,V=E.textcase,W=E.lineposition,J=E.shadow,te=r.subtitlePropName,ne=!!te,oe=r.subtitlePlaceholder,fe=(a.title||{}).subtitle||{text:"",font:{}},de=fe.text.trim(),Me=!1,Se=1,Ae=fe.font,we=Ae.family,Te=Ae.size,Ce=Ae.color,Le=Ae.weight,$e=Ae.style,ot=Ae.variant,it=Ae.textcase,bt=Ae.lineposition,We=Ae.shadow,Et;s==="title.text"?Et="titleText":s.indexOf("axis")!==-1?Et="axisTitleText":s.indexOf("colorbar")!==-1&&(Et="colorbarTitleText");var nt=e._context.edits[Et];function vt(Gt,Ct){return Gt===void 0||Ct===void 0?!1:Gt.replace($E," % ")===Ct.replace($E," % ")}C===""?T=0:vt(C,l)&&(nt||(C=""),T=.2,D=!0),ne&&(de===""?Se=0:vt(de,oe)&&(nt||(de=""),Se=.2,Me=!0)),r._meta?C=yd.templateString(C,r._meta):i._meta&&(C=yd.templateString(C,i._meta));var xt=C||de||nt,pt;_||(_=yd.ensureSingle(i._infolayer,"g","g-"+t),pt=i._hColorbarMoveTitle);var ve=_.selectAll("text."+t).data(xt?[0]:[]);ve.enter().append("text"),ve.text(C).attr("class",t),ve.exit().remove();var ze=null,pe=t+"-subtitle",at=de||nt;if(ne&&at&&(ze=_.selectAll("text."+pe).data(at?[0]:[]),ze.enter().append("text"),ze.text(de).attr("class",pe),ze.exit().remove()),!xt)return _;function yt(Gt,Ct){yd.syncOrAsync([Xe,Ft],{title:Gt,subtitle:Ct})}function Xe(Gt){var Ct=Gt.title,Mt=Gt.subtitle,Ut;!m&&pt&&(m={}),m?(Ut="",m.rotate&&(Ut+="rotate("+[m.rotate,v.x,v.y]+")"),(m.offset||pt)&&(Ut+=KE(0,(m.offset||0)-(pt||0)))):Ut=null,Ct.attr("transform",Ut);function Ot(Oe){if(Oe){var gt=z0.select(Oe.node().parentNode).select("."+pe);if(!gt.empty()){var qt=Oe.node().getBBox();if(qt.height){var Qt=qt.y+qt.height+x5*Te;gt.attr("y",Qt)}}}}if(Ct.style("opacity",T*J_.opacity(q)).call(j_.font,{color:J_.rgb(q),size:z0.round(B,2),family:I,weight:z,style:O,variant:H,textcase:V,shadow:J,lineposition:W}).attr(v).call(I0.convertToTspans,e,Ot),Mt){var Be=_.select("."+t+"-math-group"),ft=Ct.node().getBBox(),or=Be.node()?Be.node().getBBox():void 0,Cr=or?or.y+or.height+x5*Te:ft.y+ft.height+b5*Te,Sr=yd.extendFlat({},v,{y:Cr});Mt.attr("transform",Ut),Mt.style("opacity",Se*J_.opacity(Ce)).call(j_.font,{color:J_.rgb(Ce),size:z0.round(Te,2),family:we,weight:Le,style:$e,variant:ot,textcase:it,shadow:We,lineposition:bt}).attr(Sr).call(I0.convertToTspans,e)}return Oee.previousPromises(e)}function Ft(Gt){var Ct=Gt.title,Mt=z0.select(Ct.node().parentNode);if(h&&h.selection&&h.side&&C){Mt.attr("transform",null);var Ut=Uee[h.side],Ot=h.side==="left"||h.side==="top"?-1:1,Be=Bee(h.pad)?h.pad:2,ft=j_.bBox(Mt.node()),or={t:0,b:0,l:0,r:0},Cr=e._fullLayout._reservedMargin;for(var Sr in Cr)for(var Oe in Cr[Sr]){var gt=Cr[Sr][Oe];or[Oe]=Math.max(or[Oe],gt)}var qt={left:or.l,top:or.t,right:i.width-or.r,bottom:i.height-or.b},Qt=h.maxShift||Ot*(qt[h.side]-ft[h.side]),Vt=0;if(Qt<0)Vt=Qt;else{var tr=h.offsetLeft||0,ar=h.offsetTop||0;ft.left-=tr,ft.right-=tr,ft.top-=ar,ft.bottom-=ar,h.selection.each(function(){var lr=j_.bBox(this);yd.bBoxIntersect(ft,lr,Be)&&(Vt=Math.max(Vt,Ot*(lr[h.side]-ft[Ut])+Be))}),Vt=Math.min(Qt,Vt),a._titleScoot=Math.abs(Vt)}if(Vt>0||Qt<0){var zr={left:[-Vt,0],right:[Vt,0],top:[0,-Vt],bottom:[0,Vt]}[h.side];Mt.attr("transform",KE(zr[0],zr[1]))}}}ve.call(yt,ze);function Lt(Gt,Ct){Gt.text(Ct).on("mouseover.opacity",function(){z0.select(this).transition().duration(QE.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){z0.select(this).transition().duration(QE.HIDE_PLACEHOLDER).style("opacity",0)})}if(nt&&(C?ve.on(".opacity",null):(Lt(ve,l),D=!0),ve.call(I0.makeEditable,{gd:e}).on("edit",function(Gt){f!==void 0?_5.call("_guiRestyle",e,s,Gt,f):_5.call("_guiRelayout",e,s,Gt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(yt)}).on("input",function(Gt){this.text(Gt||" ").call(I0.positionText,v.x,v.y)}),ne)){if(ne&&!C){var Tt=ve.node().getBBox(),It=Tt.y+Tt.height+b5*Te;ze.attr("y",It)}de?ze.on(".opacity",null):(Lt(ze,oe),Me=!0),ze.call(I0.makeEditable,{gd:e}).on("edit",function(Gt){_5.call("_guiRelayout",e,"title.subtitle.text",Gt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(yt)}).on("input",function(Gt){this.text(Gt||" ").call(I0.positionText,ze.attr("x"),ze.attr("y"))})}return ve.classed("js-placeholder",D),ze&&ze.classed("js-placeholder",Me),_}eL.exports={draw:Vee,SUBTITLE_PADDING_EM:b5,SUBTITLE_PADDING_MATHJAX_EM:x5}});var i2=me((u1e,nL)=>{"use strict";var Hee=ja(),Gee=s0().utcFormat,Fi=Bt(),Zee=Fi.numberFormat,Ef=Da(),Fh=Fi.cleanNumber,Yee=Fi.ms2DateTime,tL=Fi.dateTime2ms,Lf=Fi.ensureNumber,rL=Fi.isArrayOrTypedArray,qh=Zi(),K_=qh.FP_SAFE,Fu=qh.BADNUM,Wee=qh.LOG_CLIP,Xee=qh.ONEWEEK,Q_=qh.ONEDAY,$_=qh.ONEHOUR,aL=qh.ONEMIN,iL=qh.ONESEC,e2=Xn(),a2=Ao(),t2=a2.HOUR_PATTERN,r2=a2.WEEKDAY_PATTERN;function Jy(e){return Math.pow(10,e)}function w5(e){return e!=null}nL.exports=function(t,r){r=r||{};var i=t._id||"x",a=i.charAt(0);function s(z,O){if(z>0)return Math.log(z)/Math.LN10;if(z<=0&&O&&t.range&&t.range.length===2){var H=t.range[0],V=t.range[1];return .5*(H+V-2*Wee*Math.abs(H-V))}else return Fu}function l(z,O,H,V){if((V||{}).msUTC&&Ef(z))return+z;var W=tL(z,H||t.calendar);if(W===Fu)if(Ef(z)){z=+z;var J=Math.floor(Fi.mod(z+.05,1)*10),te=Math.round(z-J/10);W=tL(new Date(te))+J/10}else return Fu;return W}function f(z,O,H){return Yee(z,O,H||t.calendar)}function h(z){return t._categories[Math.round(z)]}function v(z){if(w5(z)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[z]!==void 0)return t._categoriesMap[z];t._categories.push(typeof z=="number"?String(z):z);var O=t._categories.length-1;return t._categoriesMap[z]=O,O}return Fu}function m(z,O){for(var H=new Array(O),V=0;Vt.range[1]&&(H=!H);for(var V=H?-1:1,W=V*z,J=0,te=0;teoe)J=te+1;else{J=W<(ne+oe)/2?te:te+1;break}}var fe=t._B[J]||0;return isFinite(fe)?C(z,t._m2,fe):0},I=function(z){var O=t._rangebreaks.length;if(!O)return D(z,t._m,t._b);for(var H=0,V=0;Vt._rangebreaks[V].pmax&&(H=V+1);return D(z,t._m2,t._B[H])}}t.c2l=t.type==="log"?s:Lf,t.l2c=t.type==="log"?Jy:Lf,t.l2p=E,t.p2l=I,t.c2p=t.type==="log"?function(z,O){return E(s(z,O))}:E,t.p2c=t.type==="log"?function(z){return Jy(I(z))}:I,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=Fh,t.c2d=t.c2r=t.l2d=t.l2r=Lf,t.d2p=t.r2p=function(z){return t.l2p(Fh(z))},t.p2d=t.p2r=I,t.cleanPos=Lf):t.type==="log"?(t.d2r=t.d2l=function(z,O){return s(Fh(z),O)},t.r2d=t.r2c=function(z){return Jy(Fh(z))},t.d2c=t.r2l=Fh,t.c2d=t.l2r=Lf,t.c2r=s,t.l2d=Jy,t.d2p=function(z,O){return t.l2p(t.d2r(z,O))},t.p2d=function(z){return Jy(I(z))},t.r2p=function(z){return t.l2p(Fh(z))},t.p2r=I,t.cleanPos=Lf):t.type==="date"?(t.d2r=t.r2d=Fi.identity,t.d2c=t.r2c=t.d2l=t.r2l=l,t.c2d=t.c2r=t.l2d=t.l2r=f,t.d2p=t.r2p=function(z,O,H){return t.l2p(l(z,0,H))},t.p2d=t.p2r=function(z,O,H){return f(I(z),O,H)},t.cleanPos=function(z){return Fi.cleanDate(z,Fu,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=v,t.r2d=t.c2d=t.l2d=h,t.d2r=t.d2l_noadd=T,t.r2c=function(z){var O=S(z);return O!==void 0?O:t.fraction2r(.5)},t.l2r=t.c2r=Lf,t.r2l=S,t.d2p=function(z){return t.l2p(t.r2c(z))},t.p2d=function(z){return h(I(z))},t.r2p=t.d2p,t.p2r=I,t.cleanPos=function(z){return typeof z=="string"&&z!==""?z:Lf(z)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=h,t.d2r=t.d2l_noadd=T,t.r2c=function(z){var O=T(z);return O!==void 0?O:t.fraction2r(.5)},t.r2c_just_indices=_,t.l2r=t.c2r=Lf,t.r2l=T,t.d2p=function(z){return t.l2p(t.r2c(z))},t.p2d=function(z){return h(I(z))},t.r2p=t.d2p,t.p2r=I,t.cleanPos=function(z){return Array.isArray(z)||typeof z=="string"&&z!==""?z:Lf(z)},t.setupMultiCategory=function(z){var O=t._traceIndices,H,V,W=t._matchGroup;if(W&&t._categories.length===0){for(var J in W)if(J!==i){var te=r[e2.id2name(J)];O=O.concat(te._traceIndices)}}var ne=[[0,{}],[0,{}]],oe=[];for(H=0;Hte[1]&&(V[J?0:1]=H),V[0]===V[1]){var ne=t.l2r(O),oe=t.l2r(H);if(O!==void 0){var fe=ne+1;H!==void 0&&(fe=Math.min(fe,oe)),V[J?1:0]=fe}if(H!==void 0){var de=oe+1;O!==void 0&&(de=Math.max(de,ne)),V[J?0:1]=de}}}},t.cleanRange=function(z,O){t._cleanRange(z,O),t.limitRange(z)},t._cleanRange=function(z,O){O||(O={}),z||(z="range");var H=Fi.nestedProperty(t,z).get(),V,W;if(t.type==="date"?W=Fi.dfltRange(t.calendar):a==="y"?W=a2.DFLTRANGEY:t._name==="realaxis"?W=[0,1]:W=O.dfltRange||a2.DFLTRANGEX,W=W.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(W[0]=0),!H||H.length!==2){Fi.nestedProperty(t,z).set(W);return}var J=H[0]===null,te=H[1]===null;for(t.type==="date"&&!t.autorange&&(H[0]=Fi.cleanDate(H[0],Fu,t.calendar),H[1]=Fi.cleanDate(H[1],Fu,t.calendar)),V=0;V<2;V++)if(t.type==="date"){if(!Fi.isDateTime(H[V],t.calendar)){t[z]=W;break}if(t.r2l(H[0])===t.r2l(H[1])){var ne=Fi.constrain(t.r2l(H[0]),Fi.MIN_MS+1e3,Fi.MAX_MS-1e3);H[0]=t.l2r(ne-1e3),H[1]=t.l2r(ne+1e3);break}}else{if(!Ef(H[V]))if(!(J||te)&&Ef(H[1-V]))H[V]=H[1-V]*(V?10:.1);else{t[z]=W;break}if(H[V]<-K_?H[V]=-K_:H[V]>K_&&(H[V]=K_),H[0]===H[1]){var oe=Math.max(1,Math.abs(H[0]*1e-6));H[0]-=oe,H[1]+=oe}}},t.setScale=function(z){var O=r._size;if(t.overlaying){var H=e2.getFromId({_fullLayout:r},t.overlaying);t.domain=H.domain}var V=z&&t._r?"_r":"range",W=t.calendar;t.cleanRange(V);var J=t.r2l(t[V][0],W),te=t.r2l(t[V][1],W),ne=a==="y";if(ne?(t._offset=O.t+(1-t.domain[1])*O.h,t._length=O.h*(t.domain[1]-t.domain[0]),t._m=t._length/(J-te),t._b=-t._m*te):(t._offset=O.l+t.domain[0]*O.w,t._length=O.w*(t.domain[1]-t.domain[0]),t._m=t._length/(te-J),t._b=-t._m*J),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var oe,fe;if(t._rangebreaks=t.locateBreaks(Math.min(J,te),Math.max(J,te)),t._rangebreaks.length){for(oe=0;oete&&(de=!de),de&&t._rangebreaks.reverse();var Me=de?-1:1;for(t._m2=Me*t._length/(Math.abs(te-J)-t._lBreaks),t._B.push(-t._m2*(ne?te:J)),oe=0;oeW&&(W+=7,JW&&(W+=24,J=V&&J=V&&z=We.min&&($eWe.max&&(We.max=ot),it=!1)}it&&te.push({min:$e,max:ot})}};for(H=0;H{"use strict";var oL=Da(),T5=Bt(),jee=Zi().BADNUM,n2=T5.isArrayOrTypedArray,Jee=T5.isDateTime,Kee=T5.cleanNumber,sL=Math.round;uL.exports=function(t,r,i){var a=t,s=i.noMultiCategory;if(n2(a)&&!a.length)return"-";if(!s&&rte(a))return"multicategory";if(s&&Array.isArray(a[0])){for(var l=[],f=0;fs*2}function lL(e){return Math.max(1,(e-1)/1e3)}function tte(e,t){for(var r=e.length,i=lL(r),a=0,s=0,l={},f=0;fa*2}function rte(e){return n2(e[0])&&n2(e[1])}});var Ky=me((c1e,yL)=>{"use strict";var ate=ja(),vL=Da(),Nh=Bt(),o2=Zi().FP_SAFE,ite=la(),nte=bi(),dL=Xn(),ote=dL.getFromId,ste=dL.isLinked;yL.exports={applyAutorangeOptions:mL,getAutoRange:M5,makePadFn:S5,doAutoRange:ute,findExtremes:fte,concatExtremes:E5};function M5(e,t){var r,i,a=[],s=e._fullLayout,l=S5(s,t,0),f=S5(s,t,1),h=E5(e,t),v=h.min,m=h.max;if(v.length===0||m.length===0)return Nh.simpleMap(t.range,t.r2l);var _=v[0].val,T=m[0].val;for(r=1;r0&&(te=q-l(H)-f(V),te>z?ne/te>O&&(W=H,J=V,O=ne/te):ne/q>O&&(W={val:H.val,nopad:1},J={val:V.val,nopad:1},O=ne/q));function oe(Ae,we){return Math.max(Ae,f(we))}if(_===T){var fe=_-1,de=_+1;if(I)if(_===0)a=[0,1];else{var Me=(_>0?m:v).reduce(oe,0),Se=_/(1-Math.min(.5,Me/q));a=_>0?[0,Se]:[Se,0]}else B?a=[Math.max(0,fe),Math.max(1,de)]:a=[fe,de]}else I?(W.val>=0&&(W={val:0,nopad:1}),J.val<=0&&(J={val:0,nopad:1})):B&&(W.val-O*l(W)<0&&(W={val:0,nopad:1}),J.val<=0&&(J={val:1,nopad:1})),O=(J.val-W.val-fL(t,H.val,V.val))/(q-l(W)-f(J)),a=[W.val-O*l(W),J.val+O*f(J)];return a=mL(a,t),t.limitRange&&t.limitRange(),C&&a.reverse(),Nh.simpleMap(a,t.l2r||Number)}function fL(e,t,r){var i=0;if(e.rangebreaks)for(var a=e.locateBreaks(t,r),s=0;s0?r.ppadplus:r.ppadminus)||r.ppad||0),H=z((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),V=z(r.vpadplus||r.vpad),W=z(r.vpadminus||r.vpad);if(!v){if(B=1/0,q=-1/0,h)for(_=0;_0&&(B=T),T>q&&T-o2&&(B=T),T>q&&T=ne;_--)te(_);return{min:i,max:a,opts:r}}function k5(e,t,r,i){pL(e,t,r,i,cte)}function C5(e,t,r,i){pL(e,t,r,i,hte)}function pL(e,t,r,i,a){for(var s=i.tozero,l=i.extrapad,f=!0,h=0;h=r&&(v.extrapad||!l)){f=!1;break}else a(t,v.val)&&v.pad<=r&&(l||!v.extrapad)&&(e.splice(h,1),h--)}if(f){var m=s&&t===0;e.push({val:t,pad:m?0:r,extrapad:m?!1:l})}}function hL(e){return vL(e)&&Math.abs(e)=t}function vte(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&s2(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&s2(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function dte(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&s2(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&s2(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function s2(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=h&&(s=h,r=h),l<=h&&(l=h,i=h)}}return r=vte(r,t),i=dte(i,t),[r,i]}});var Xi=me((h1e,BL)=>{"use strict";var Xl=ja(),Nn=Da(),R0=eo(),$y=la(),$r=Bt(),F0=$r.strTranslate,gd=co(),pte=jy(),eg=Oa(),sl=bi(),mte=Ru(),gL=Yw(),So=Zi(),yte=So.ONEMAXYEAR,f2=So.ONEAVGYEAR,c2=So.ONEMINYEAR,gte=So.ONEMAXQUARTER,z5=So.ONEAVGQUARTER,h2=So.ONEMINQUARTER,_te=So.ONEMAXMONTH,q0=So.ONEAVGMONTH,v2=So.ONEMINMONTH,ll=So.ONEWEEK,as=So.ONEDAY,Bh=as/2,Pf=So.ONEHOUR,tg=So.ONEMIN,d2=So.ONESEC,xte=So.ONEMILLI,bte=So.ONEMICROSEC,_d=So.MINUS_SIGN,y2=So.BADNUM,I5={K:"zeroline"},R5={K:"gridline",L:"path"},F5={K:"minor-gridline",L:"path"},EL={K:"tick",L:"path"},_L={K:"tick",L:"text"},xL={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},g2=ts(),Qy=g2.MID_SHIFT,xd=g2.CAP_SHIFT,rg=g2.LINE_SPACING,wte=g2.OPPOSITE_SIDE,p2=3,Kt=BL.exports={};Kt.setConvert=i2();var Tte=A5(),wc=Xn(),Ate=wc.idSort,Mte=wc.isLinked;Kt.id2name=wc.id2name;Kt.name2id=wc.name2id;Kt.cleanId=wc.cleanId;Kt.list=wc.list;Kt.listIds=wc.listIds;Kt.getFromId=wc.getFromId;Kt.getFromTrace=wc.getFromTrace;var LL=Ky();Kt.getAutoRange=LL.getAutoRange;Kt.findExtremes=LL.findExtremes;var Ste=1e-4;function O5(e){var t=(e[1]-e[0])*Ste;return[e[0]-t,e[1]+t]}Kt.coerceRef=function(e,t,r,i,a,s){var l=i.charAt(i.length-1),f=r._fullLayout._subplots[l+"axis"],h=i+"ref",v={};return a||(a=f[0]||(typeof s=="string"?s:s[0])),s||(s=a),f=f.concat(f.map(function(m){return m+" domain"})),v[h]={valType:"enumerated",values:f.concat(s?typeof s=="string"?[s]:s:[]),dflt:a},$r.coerce(e,t,v,h)};Kt.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Kt.coercePosition=function(e,t,r,i,a,s){var l,f,h=Kt.getRefType(i);if(h!=="range")l=$r.ensureNumber,f=r(a,s);else{var v=Kt.getFromId(t,i);s=v.fraction2r(s),f=r(a,s),l=v.cleanPos}e[a]=l(f)};Kt.cleanPosition=function(e,t,r){var i=r==="paper"||r==="pixel"?$r.ensureNumber:Kt.getFromId(t,r).cleanPos;return i(e)};Kt.redrawComponents=function(e,t){t=t||Kt.listIds(e);var r=e._fullLayout;function i(a,s,l,f){for(var h=$y.getComponentMethod(a,s),v={},m=0;m2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Kt.saveRangeInitial=function(e,t){for(var r=Kt.list(e,"",!0),i=!1,a=0;a_*.3||v(i)||v(a))){var T=r.dtick/2;e+=e+Tl){var f=Number(r.substr(1));s.exactYears>l&&f%12===0?e=Kt.tickIncrement(e,"M6","reverse")+as*1.5:s.exactMonths>l?e=Kt.tickIncrement(e,"M1","reverse")+as*15.5:e-=Bh;var h=Kt.tickIncrement(e,r);if(h<=i)return h}return e}Kt.prepMinorTicks=function(e,t,r){if(!t.minor.dtick){delete e.dtick;var i=t.dtick&&Nn(t._tmin),a;if(i){var s=Kt.tickIncrement(t._tmin,t.dtick,!0);a=[t._tmin,s*.99+t._tmin*.01]}else{var l=$r.simpleMap(t.range,t.r2l);a=[l[0],.8*l[0]+.2*l[1]]}if(e.range=$r.simpleMap(a,t.l2r),e._isMinor=!0,Kt.prepTicks(e,r),i){var f=Nn(t.dtick),h=Nn(e.dtick),v=f?t.dtick:+t.dtick.substring(1),m=h?e.dtick:+e.dtick.substring(1);f&&h?L5(v,m)?v===2*ll&&m===2*as&&(e.dtick=ll):v===2*ll&&m===3*as?e.dtick=ll:v===ll&&!(t._input.minor||{}).nticks?e.dtick=as:TL(v/m,2.5)?e.dtick=v/2:e.dtick=v:String(t.dtick).charAt(0)==="M"?h?e.dtick="M1":L5(v,m)?v>=12&&m===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?L5(v,m)||(e.dtick=TL(v/m,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}t.minor._tick0Init===void 0&&(e.tick0=t.tick0)};function L5(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function TL(e,t){return Math.abs(e/t-1)<.001}Kt.prepTicks=function(e,t){var r=$r.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var i=e.nticks,a;i||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?$r.bigFont(e.tickfont.size||12):15,i=e._length/a):(a=e._id.charAt(0)==="y"?40:80,i=$r.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(i*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(i*=100),e._roughDTick=Math.abs(r[1]-r[0])/i,Kt.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(s=i-1,l=i):(s=i,l=i);var f=e[s].value,h=e[l].value,v=Math.abs(h-f),m=r||v,_=0;m>=c2?v>=c2&&v<=yte?_=v:_=f2:r===z5&&m>=h2?v>=h2&&v<=gte?_=v:_=z5:m>=v2?v>=v2&&v<=_te?_=v:_=q0:r===ll&&m>=ll?_=ll:m>=as?_=as:r===Bh&&m>=Bh?_=Bh:r===Pf&&m>=Pf&&(_=Pf);var T;_>=v&&(_=v,T=!0);var S=a+_;if(t.rangebreaks&&_>0){for(var C=84,D=0,E=0;Ell&&(_=v)}(_>0||i===0)&&(e[i].periodX=a+_/2)}}Kt.calcTicks=function(t,r){for(var i=t.type,a=t.calendar,s=t.ticklabelstep,l=t.ticklabelmode==="period",f=t.range[0]>t.range[1],h=!t.ticklabelindex||$r.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],v=$r.simpleMap(t.range,t.r2l,void 0,void 0,r),m=v[1]=(q?0:1);z--){var O=!z;z?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var H=z?t:$r.extendFlat({},t,t.minor);if(O?Kt.prepMinorTicks(H,t,r):Kt.prepTicks(H,r),H.tickmode==="array"){z?(E=[],C=AL(t,!O)):(I=[],D=AL(t,!O));continue}if(H.tickmode==="sync"){E=[],C=Pte(t);continue}var V=O5(v),W=V[0],J=V[1],te=Nn(H.dtick),ne=i==="log"&&!(te||H.dtick.charAt(0)==="L"),oe=Kt.tickFirst(H,r);if(z){if(t._tmin=oe,oe=J:de<=J;de=Kt.tickIncrement(de,Ae,m,a)){if(z&&Me++,H.rangebreaks&&!m){if(de=T)break}if(E.length>S||de===fe)break;fe=de;var we={value:de};z?(ne&&de!==(de|0)&&(we.simpleLabel=!0),s>1&&Me%s&&(we.skipLabel=!0),E.push(we)):(we.minor=!0,I.push(we))}}if(!I||I.length<2)h=!1;else{var Te=(I[1].value-I[0].value)*(f?-1:1);rre(Te,t.tickformat)||(h=!1)}if(!h)B=E;else{var Ce=E.concat(I);l&&E.length&&(Ce=Ce.slice(1)),Ce=Ce.sort(function(It,Gt){return It.value-Gt.value}).filter(function(It,Gt,Ct){return Gt===0||It.value!==Ct[Gt-1].value});var Le=Ce.map(function(It,Gt){return It.minor===void 0&&!It.skipLabel?Gt:null}).filter(function(It){return It!==null});Le.forEach(function(It){h.map(function(Gt){var Ct=It+Gt;Ct>=0&&Ct-1;xt--){if(E[xt].drop){E.splice(xt,1);continue}E[xt].value=P5(E[xt].value,t);var pe=t.c2p(E[xt].value);(pt?ze>pe-ve:zeT||Mt<_)&&(Mt>T&&(Ct.periodX=T),Mt<_&&(Ct.periodX=_),yt(Ct))),Ct}var Ft;for(xt=0;xta&&Tf2)t/=f2,i=a(10),e.dtick="M"+12*Df(t,i,l2);else if(s>q0)t/=q0,e.dtick="M"+Df(t,1,ML);else if(s>as){if(e.dtick=Df(t,as,e._hasDayOfWeekBreaks?[1,2,7,14]:zte),!r){var l=Kt.getTickFormat(e),f=e.ticklabelmode==="period";f&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=$r.dateTick0(e.calendar,2):e.tick0=$r.dateTick0(e.calendar,1),f&&(e._dowTick0=e.tick0)}}else s>Pf?e.dtick=Df(t,Pf,ML):s>tg?e.dtick=Df(t,tg,SL):s>d2?e.dtick=Df(t,d2,SL):(i=a(10),e.dtick=Df(t,i,l2))}else if(e.type==="log"){e.tick0=0;var h=$r.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(h[1]-h[0])<1){var v=1.5*Math.abs((h[1]-h[0])/t);t=Math.abs(Math.pow(10,h[1])-Math.pow(10,h[0]))/v,i=a(10),e.dtick="L"+Df(t,i,l2)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):H5(e)?(e.tick0=0,i=1,e.dtick=Df(t,i,Ite)):(e.tick0=0,i=a(10),e.dtick=Df(t,i,l2));if(e.dtick===0&&(e.dtick=1),!Nn(e.dtick)&&typeof e.dtick!="string"){var m=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(m)}};function IL(e){var t=e.dtick;if(e._tickexponent=0,!Nn(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),i=e.l2r(r).replace(/(^-|i)/g,""),a=i.length;if(String(t).charAt(0)==="M")a>10||i.substr(5)!=="01-01"?e._tickround="d":e._tickround=+t.substr(1)%12===0?"y":"m";else if(t>=as&&a<=10||t>=as*15)e._tickround="d";else if(t>=tg&&a<=16||t>=Pf)e._tickround="M";else if(t>=d2&&a<=19||t>=tg)e._tickround="S";else{var s=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(a,s)-20,e._tickround<0&&(e._tickround=4)}}else if(Nn(t)||t.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);Nn(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var f=Math.max(Math.abs(l[0]),Math.abs(l[1])),h=Math.floor(Math.log(f)/Math.LN10+.01),v=e.minexponent===void 0?3:e.minexponent;Math.abs(h)>v&&(m2(e.exponentformat)&&!U5(h)?e._tickexponent=3*Math.round((h-1)/3):e._tickexponent=h)}else e._tickround=null}Kt.tickIncrement=function(e,t,r,i){var a=r?-1:1;if(Nn(t))return $r.increment(e,a*t);var s=t.charAt(0),l=a*Number(t.substr(1));if(s==="M")return $r.incrementMonth(e,l,i);if(s==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(s==="D"){var f=t==="D2"?zL:PL,h=e+a*.01,v=$r.roundUp($r.mod(h,1),f,r);return Math.floor(h)+Math.log(Xl.round(Math.pow(10,v),1))/Math.LN10}throw"unrecognized dtick "+String(t)};Kt.tickFirst=function(e,t){var r=e.r2l||Number,i=$r.simpleMap(e.range,r,void 0,void 0,t),a=i[1]=0&&I<=e._length?E:null};if(s&&$r.isArrayOrTypedArray(e.ticktext)){var _=$r.simpleMap(e.range,e.r2l),T=(Math.abs(_[1]-_[0])-(e._lBreaks||0))/1e4;for(v=0;v"+f;else{var v=ig(e),m=e._trueSide||e.side;(!v&&m==="top"||v&&m==="bottom")&&(l+="
")}t.text=l}function Fte(e,t,r,i,a){var s=e.dtick,l=t.x,f=e.tickformat,h=typeof s=="string"&&s.charAt(0);if(a==="never"&&(a=""),i&&h!=="L"&&(s="L3",h="L"),f||h==="L")t.text=ag(Math.pow(10,l),e,a,i);else if(Nn(s)||h==="D"&&(e.minorloglabels==="complete"||$r.mod(l+.01,1)<.1)){var v;e.minorloglabels==="complete"&&!($r.mod(l+.01,1)<.1)&&(v=!0,t.fontSize*=.75);var m=Math.pow(10,l).toExponential(0),_=m.split("e"),T=+_[1],S=Math.abs(T),C=e.exponentformat;C==="power"||m2(C)&&U5(T)?(t.text=_[0],S>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),T!==0&&T!==1&&(t.text+=""+(T>0?"":_d)+S+""),t.fontSize*=1.25):(C==="e"||C==="E")&&S>2?t.text=_[0]+C+(T>0?"+":_d)+S:(t.text=ag(Math.pow(10,l),e,"","fakehover"),s==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(h==="D")t.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,$r.mod(l,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(s);if(e.dtick==="D1"){var D=String(t.text).charAt(0);(D==="0"||D==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(l<0?.5:.25)))}}function qte(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function Nte(e,t,r){var i=Math.round(t.x),a=e._categories[i]||[],s=a[1]===void 0?"":String(a[1]),l=a[0]===void 0?"":String(a[0]);r?t.text=l+" - "+s:(t.text=s,t.text2=l)}function Bte(e,t,r,i,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(a="hide"),t.text=ag(t.x,e,a,i)}function Ote(e,t,r,i,a){if(e.thetaunit==="radians"&&!r){var s=t.x/180;if(s===0)t.text="0";else{var l=Ute(s);if(l[1]>=100)t.text=ag($r.deg2rad(t.x),e,a,i);else{var f=t.x<0;l[1]===1?l[0]===1?t.text="\u03C0":t.text=l[0]+"\u03C0":t.text=["",l[0],"","\u2044","",l[1],"","\u03C0"].join(""),f&&(t.text=_d+t.text)}}}else t.text=ag(t.x,e,a,i)}function Ute(e){function t(f,h){return Math.abs(f-h)<=1e-6}function r(f,h){return t(h,0)?f:r(h,f%h)}function i(f){for(var h=1;!t(Math.round(f*h)/h,f);)h*=10;return h}var a=i(e),s=e*a,l=Math.abs(r(s,a));return[Math.round(s/l),Math.round(a/l)]}var Vte=["f","p","n","\u03BC","m","","k","M","G","T"];function m2(e){return e==="SI"||e==="B"}function U5(e){return e>14||e<-15}function ag(e,t,r,i){var a=e<0,s=t._tickround,l=r||t.exponentformat||"B",f=t._tickexponent,h=Kt.getTickFormat(t),v=t.separatethousands;if(i){var m={exponentformat:l,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:Nn(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};IL(m),s=(Number(m._tickround)||0)+4,f=m._tickexponent,t.hoverformat&&(h=t.hoverformat)}if(h)return t._numFormat(h)(e).replace(/-/g,_d);var _=Math.pow(10,-s)/2;if(l==="none"&&(f=0),e=Math.abs(e),e<_)e="0",a=!1;else{if(e+=_,f&&(e*=Math.pow(10,-f),s+=f),s===0)e=String(Math.floor(e));else if(s<0){e=String(Math.round(e)),e=e.substr(0,e.length+s);for(var T=s;T<0;T++)e+="0"}else{e=String(e);var S=e.indexOf(".")+1;S&&(e=e.substr(0,S+s).replace(/\.?0+$/,""))}e=$r.numSeparate(e,t._separators,v)}if(f&&l!=="hide"){m2(l)&&U5(f)&&(l="power");var C;f<0?C=_d+-f:l!=="power"?C="+"+f:C=String(f),l==="e"||l==="E"?e+=l+C:l==="power"?e+="\xD710"+C+"":l==="B"&&f===9?e+="B":m2(l)&&(e+=Vte[f/3+5])}return a?_d+e:e}Kt.getTickFormat=function(e){var t;function r(h){return typeof h!="string"?h:Number(h.replace("M",""))*q0}function i(h,v){var m=["L","D"];if(typeof h==typeof v){if(typeof h=="number")return h-v;var _=m.indexOf(h.charAt(0)),T=m.indexOf(v.charAt(0));return _===T?Number(h.replace(/(L|D)/g,""))-Number(v.replace(/(L|D)/g,"")):_-T}else return typeof h=="number"?1:-1}function a(h,v,m){var _=m||function(C){return C},T=v[0],S=v[1];return(!T&&typeof T!="number"||_(T)<=_(h))&&(!S&&typeof S!="number"||_(S)>=_(h))}function s(h,v){var m=v[0]===null,_=v[1]===null,T=i(h,v[0])>=0,S=i(h,v[1])<=0;return(m||T)&&(_||S)}var l,f;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&a.unshift(a.splice(m,1).shift())}});var f={false:{left:0,right:0}};return $r.syncOrAsync(a.map(function(h){return function(){if(h){var v=Kt.getFromId(e,h);r||(r={}),r.axShifts=f,r.overlayingShiftedAx=l;var m=Kt.drawOne(e,v,r);return v._shiftPusher&&B5(v,v._fullDepth||0,f,!0),v._r=v.range.slice(),v._rl=$r.simpleMap(v._r,v.r2l),m}}}))};Kt.drawOne=function(e,t,r){r=r||{};var i=r.axShifts||{},a=r.overlayingShiftedAx||[],s,l,f;t.setScale();var h=e._fullLayout,v=t._id,m=v.charAt(0),_=Kt.counterLetter(v),T=h._plots[t._mainSubplot],S=t.zerolinelayer==="above traces";if(!T)return;if(t._shiftPusher=t.autoshift||a.indexOf(t._id)!==-1||a.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var C=t.linewidth/2||0;t.ticks==="inside"&&(C+=t.ticklen),B5(t,C,i,!0),B5(t,t.shift||0,i,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=tre(t,i));var D=T[m+"axislayer"],E=t._mainLinePosition,I=E+=t._shift,B=t._mainMirrorPosition,q=t._vals=Kt.calcTicks(t),z=[t.mirror,I,B].join("_");for(s=0;s0?Mt.bottom-Gt:0,Ct))));var ft=0,or=0;if(t._shiftPusher&&(ft=Math.max(Ct,Mt.height>0?Tt==="l"?Gt-Mt.left:Mt.right-Gt:0),t.title.text!==h._dfltTitle[m]&&(or=(t._titleStandoff||0)+(t._titleScoot||0),Tt==="l"&&(or+=CL(t))),t._fullDepth=Math.max(ft,or)),t.automargin){Ut={x:0,y:0,r:0,l:0,t:0,b:0};var Cr=[0,1],Sr=typeof t._shift=="number"?t._shift:0;if(m==="x"){if(Tt==="b"?Ut[Tt]=t._depth:(Ut[Tt]=t._depth=Math.max(Mt.width>0?Gt-Mt.top:0,Ct),Cr.reverse()),Mt.width>0){var Oe=Mt.right-(t._offset+t._length);Oe>0&&(Ut.xr=1,Ut.r=Oe);var gt=t._offset-Mt.left;gt>0&&(Ut.xl=0,Ut.l=gt)}}else if(Tt==="l"?(t._depth=Math.max(Mt.height>0?Gt-Mt.left:0,Ct),Ut[Tt]=t._depth-Sr):(t._depth=Math.max(Mt.height>0?Mt.right-Gt:0,Ct),Ut[Tt]=t._depth+Sr,Cr.reverse()),Mt.height>0){var qt=Mt.bottom-(t._offset+t._length);qt>0&&(Ut.yb=0,Ut.b=qt);var Qt=t._offset-Mt.top;Qt>0&&(Ut.yt=1,Ut.t=Qt)}Ut[_]=t.anchor==="free"?t.position:t._anchorAxis.domain[Cr[0]],t.title.text!==h._dfltTitle[m]&&(Ut[Tt]+=CL(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(Ot={x:0,y:0,r:0,l:0,t:0,b:0},Ot[It]=t.linewidth,t.mirror&&t.mirror!==!0&&(Ot[It]+=Ct),t.mirror===!0||t.mirror==="ticks"?Ot[_]=t._anchorAxis.domain[Cr[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(Ot[_]=[t._counterDomainMin,t._counterDomainMax][Cr[1]]))}Lt&&(Be=$y.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(kL(Ut,t.automargin),kL(Ot,t.automargin)),R0.autoMargin(e,V5(t),Ut),R0.autoMargin(e,qL(t),Ot),R0.autoMargin(e,NL(t),Be)}),$r.syncOrAsync(Xe)}};function kL(e,t){if(e){var r=Object.keys(xL).reduce(function(i,a){return t.indexOf(a)!==-1&&xL[a].forEach(function(s){i[s]=1}),i},{});Object.keys(e).forEach(function(i){r[i]||(i.length===1?e[i]=0:delete e[i])})}}function Hte(e,t){var r=[],i,a=function(s,l){var f=s.xbnd[l];f!==null&&r.push($r.extendFlat({},s,{x:f}))};if(t.length){for(i=0;ie.range[1],f=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,h=!f;if(r){var v=l?-1:1;r=r*v}if(i){var m=e.side,_=f&&(m==="top"||m==="left")||h&&(m==="bottom"||m==="right")?1:-1;i=i*_}return e._id.charAt(0)==="x"?function(T){return F0(a+e._offset+e.l2p(q5(T))+r,s+i)}:function(T){return F0(s+i,a+e._offset+e.l2p(q5(T))+r)}};function q5(e){return e.periodX!==void 0?e.periodX:e.x}function Wte(e){var t=e.ticklabelposition||"",r=e.tickson||"",i=function(C){return t.indexOf(C)!==-1},a=i("top"),s=i("left"),l=i("right"),f=i("bottom"),h=i("inside"),v=r!=="boundaries"&&(f||s||a||l);if(!v&&!h)return[0,0];var m=e.side,_=v?(e.tickwidth||0)/2:0,T=p2,S=e.tickfont?e.tickfont.size:12;return(f||a)&&(_+=S*xd,T+=(e.linewidth||0)/2),(s||l)&&(_+=(e.linewidth||0)/2,T+=p2),h&&m==="top"&&(T-=S*(1-xd)),(s||a)&&(_=-_),(m==="bottom"||m==="right")&&(T=-T),[v?_:0,h?T:0]}Kt.makeTickPath=function(e,t,r,i){i||(i={});var a=i.minor;if(a&&!e.minor)return"";var s=i.len!==void 0?i.len:a?e.minor.ticklen:e.ticklen,l=e._id.charAt(0),f=(e.linewidth||1)/2;return l==="x"?"M0,"+(t+f*r)+"v"+s*r:"M"+(t+f*r)+",0h"+s*r};Kt.makeLabelFns=function(e,t,r){var i=e.ticklabelposition||"",a=e.tickson||"",s=function(fe){return i.indexOf(fe)!==-1},l=s("top"),f=s("left"),h=s("right"),v=s("bottom"),m=a!=="boundaries"&&(v||f||l||h),_=s("inside"),T=i==="inside"&&e.ticks==="inside"||!_&&e.ticks==="outside"&&a!=="boundaries",S=0,C=0,D=T?e.ticklen:0;if(_?D*=-1:m&&(D=0),T&&(S+=D,r)){var E=$r.deg2rad(r);S=D*Math.cos(E)+1,C=D*Math.sin(E)}e.showticklabels&&(T||e.showline)&&(S+=.2*e.tickfont.size),S+=(e.linewidth||1)/2*(_?-1:1);var I={labelStandoff:S,labelShift:C},B,q,z,O,H=0,V=e.side,W=e._id.charAt(0),J=e.tickangle,te;if(W==="x")te=!_&&V==="bottom"||_&&V==="top",O=te?1:-1,_&&(O*=-1),B=C*O,q=t+S*O,z=te?1:-.2,Math.abs(J)===90&&(_?z+=Qy:J===-90&&V==="bottom"?z=xd:J===90&&V==="top"?z=Qy:z=.5,H=Qy/2*(J/90)),I.xFn=function(fe){return fe.dx+B+H*fe.fontSize},I.yFn=function(fe){return fe.dy+q+fe.fontSize*z},I.anchorFn=function(fe,de){if(m){if(f)return"end";if(h)return"start"}return!Nn(de)||de===0||de===180?"middle":de*O<0!==_?"end":"start"},I.heightFn=function(fe,de,Me){return de<-60||de>60?-.5*Me:e.side==="top"!==_?-Me:0};else if(W==="y"){if(te=!_&&V==="left"||_&&V==="right",O=te?1:-1,_&&(O*=-1),B=S,q=C*O,z=0,!_&&Math.abs(J)===90&&(J===-90&&V==="left"||J===90&&V==="right"?z=xd:z=.5),_){var ne=Nn(J)?+J:0;if(ne!==0){var oe=$r.deg2rad(ne);H=Math.abs(Math.sin(oe))*xd*O,z=0}}I.xFn=function(fe){return fe.dx+t-(B+fe.fontSize*z)*O+H*fe.fontSize},I.yFn=function(fe){return fe.dy+q+fe.fontSize*Qy},I.anchorFn=function(fe,de){return Nn(de)&&Math.abs(de)===90?"middle":te?"end":"start"},I.heightFn=function(fe,de,Me){return e.side==="right"&&(de*=-1),de<-30?-Me:de<30?-.5*Me:0}}return I};function _2(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Kt.drawTicks=function(e,t,r){r=r||{};var i=t._id+"tick",a=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(t.ticks?r.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),s=r.layer.selectAll("path."+i).data(a,_2);s.exit().remove(),s.enter().append("path").classed(i,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(l){return eg.stroke(Xl.select(this),l.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(l){return sl.crispRound(e,l.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),x2(t,[EL]),s.attr("transform",r.transFn)};Kt.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var i=t._id+"grid",a=t.minor&&t.minor.showgrid,s=a?r.vals.filter(function(I){return I.minor}):[],l=t.showgrid?r.vals.filter(function(I){return!I.minor}):[],f=r.counterAxis;if(f&&Kt.shouldShowZeroLine(e,t,f))for(var h=t.tickmode==="array",v=0;v=0;C--){var D=C?T:S;if(D){var E=D.selectAll("path."+i).data(C?l:s,_2);E.exit().remove(),E.enter().append("path").classed(i,1).classed("crisp",r.crisp!==!1),E.attr("transform",r.transFn).attr("d",r.path).each(function(I){return eg.stroke(Xl.select(this),I.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(I){return sl.dashStyle(I.minor?t.minor.griddash:t.griddash,I.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(I){return(I.minor?_:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&E.attr("d",r.path)}}x2(t,[R5,F5])}};Kt.drawZeroLine=function(e,t,r){r=r||r;var i=t._id+"zl",a=Kt.shouldShowZeroLine(e,t,r.counterAxis),s=r.layer.selectAll("path."+i).data(a?[{x:0,id:t._id}]:[]);s.exit().remove(),s.enter().append("path").classed(i,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(l,f){return Ate(l.id,f.id)})}),s.attr("transform",r.transFn).attr("d",r.path).call(eg.stroke,t.zerolinecolor||eg.defaultLine).style("stroke-width",sl.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),x2(t,[I5])};Kt.drawLabels=function(e,t,r){r=r||{};var i=e._fullLayout,a=t._id,s=t.zerolinelayer==="above traces",l=r.cls||a+"tick",f=r.vals.filter(function(Te){return Te.text}),h=r.labelFns,v=r.secondary?0:t.tickangle,m=(t._prevTickAngles||{})[l],_=r.layer.selectAll("g."+l).data(t.showticklabels?f:[],_2),T=[];_.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(Te){var Ce=Xl.select(this),Le=e._promises.length;Ce.call(gd.positionText,h.xFn(Te),h.yFn(Te)).call(sl.font,{family:Te.font,size:Te.fontSize,color:Te.fontColor,weight:Te.fontWeight,style:Te.fontStyle,variant:Te.fontVariant,textcase:Te.fontTextcase,lineposition:Te.fontLineposition,shadow:Te.fontShadow}).text(Te.text).call(gd.convertToTspans,e),e._promises[Le]?T.push(e._promises.pop().then(function(){S(Ce,v)})):S(Ce,v)}),x2(t,[_L]),_.exit().remove(),r.repositionOnUpdate&&_.each(function(Te){Xl.select(this).select("text").call(gd.positionText,h.xFn(Te),h.yFn(Te))});function S(Te,Ce){Te.each(function(Le){var $e=Xl.select(this),ot=$e.select(".text-math-group"),it=h.anchorFn(Le,Ce),bt=r.transFn.call($e.node(),Le)+(Nn(Ce)&&+Ce!=0?" rotate("+Ce+","+h.xFn(Le)+","+(h.yFn(Le)-Le.fontSize/2)+")":""),We=gd.lineCount($e),Et=rg*Le.fontSize,nt=h.heightFn(Le,Nn(Ce)?+Ce:0,(We-1)*Et);if(nt&&(bt+=F0(0,nt)),ot.empty()){var vt=$e.select("text");vt.attr({transform:bt,"text-anchor":it}),vt.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var xt=sl.bBox(ot.node()).width,pt=xt*{end:-.5,start:.5}[it];ot.attr("transform",bt+F0(pt,0))}})}t._adjustTickLabelsOverflow=function(){var Te=t.ticklabeloverflow;if(!(!Te||Te==="allow")){var Ce=Te.indexOf("hide")!==-1,Le=t._id.charAt(0)==="x",$e=0,ot=Le?e._fullLayout.width:e._fullLayout.height;if(Te.indexOf("domain")!==-1){var it=$r.simpleMap(t.range,t.r2l);$e=t.l2p(it[0])+t._offset,ot=t.l2p(it[1])+t._offset}var bt=Math.min($e,ot),We=Math.max($e,ot),Et=t.side,nt=1/0,vt=-1/0;_.each(function(ze){var pe=Xl.select(this),at=pe.select(".text-math-group");if(at.empty()){var yt=sl.bBox(pe.node()),Xe=0;Le?(yt.right>We||yt.leftWe||yt.top+(t.tickangle?0:ze.fontSize/4)t["_visibleLabelMin_"+it._id]?pe.style("display","none"):We.K==="tick"&&!bt&&pe.node().style.display!=="none"&&pe.style("display",null)})})})})},S(_,m+1?m:v);function C(){return T.length&&Promise.all(T)}var D=null;function E(){if(S(_,v),f.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){D=t.autotickangles[0];var Te=0,Ce=[],Le,$e=1;_.each(function(Ut){Te=Math.max(Te,Ut.fontSize);var Ot=t.l2p(Ut.x),Be=N5(this),ft=sl.bBox(Be.node());$e=Math.max($e,gd.lineCount(Be)),Ce.push({top:0,bottom:10,height:10,left:Ot-ft.width/2,right:Ot+ft.width/2+2,width:ft.width+2})});var ot=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,it=f.length,bt=Math.abs((f[it-1].x-f[0].x)*t._m)/(it-1),We=ot?bt/2:bt,Et=ot?t.ticklen:Te*1.25*$e,nt=Math.sqrt(Math.pow(We,2)+Math.pow(Et,2)),vt=We/nt,xt=t.autotickangles.map(function(Ut){return Ut*Math.PI/180}),pt=xt.find(function(Ut){return Math.abs(Math.cos(Ut))<=vt});pt===void 0&&(pt=xt.reduce(function(Ut,Ot){return Math.abs(Math.cos(Ut))Se*Me&&(oe=Me,J[W]=te[W]=fe[W])}var Ae=Math.abs(oe-ne);Ae-O>0?(Ae-=O,O*=1+O/Ae):O=0,t._id.charAt(0)!=="y"&&(O=-O),J[V]=q.p2r(q.r2p(te[V])+H*O),q.autorange==="min"||q.autorange==="max reversed"?(J[0]=null,q._rangeInitial0=void 0,q._rangeInitial1=void 0):(q.autorange==="max"||q.autorange==="min reversed")&&(J[1]=null,q._rangeInitial0=void 0,q._rangeInitial1=void 0),i._insideTickLabelsUpdaterange[q._name+".range"]=J}var we=$r.syncOrAsync(I);return we&&we.then&&e._promises.push(we),we};function Xte(e,t,r){var i=t._id+"divider",a=r.vals,s=r.layer.selectAll("path."+i).data(a,_2);s.exit().remove(),s.enter().insert("path",":first-child").classed(i,1).classed("crisp",1).call(eg.stroke,t.dividercolor).style("stroke-width",sl.crispRound(e,t.dividerwidth,1)+"px"),s.attr("transform",r.transFn).attr("d",r.path)}Kt.getPxPosition=function(e,t){var r=e._fullLayout._size,i=t._id.charAt(0),a=t.side,s;if(t.anchor!=="free"?s=t._anchorAxis:i==="x"?s={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:i==="y"&&(s={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),a==="top"||a==="left")return s._offset;if(a==="bottom"||a==="right")return s._offset+s._length};function CL(e){var t=e.title.font.size,r=(e.title.text.match(gd.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(xd+r*rg):r?t*(r+1)*rg:t}function jte(e,t){var r=e._fullLayout,i=t._id,a=i.charAt(0),s=t.title.font.size,l,f=(t.title.text.match(gd.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?l=t._depth+t.title.standoff+s*xd:(t.side==="top"||t.side==="left")&&(l=t._depth+t.title.standoff+s*(Qy+f*rg));else{var h=ig(t);if(t.type==="multicategory")l=t._depth;else{var v=1.5*s;h&&(v=.5*s,t.ticks==="outside"&&(v+=t.ticklen)),l=10+v+(t.linewidth?t.linewidth-1:0)}h||(a==="x"?l+=t.side==="top"?s*(t.showticklabels?1:0):s*(t.showticklabels?1.5:.5):l+=t.side==="right"?s*(t.showticklabels?1:.5):s*(t.showticklabels?.5:0))}var m=Kt.getPxPosition(e,t),_,T,S;a==="x"?(T=t._offset+t._length/2,S=t.side==="top"?m-l:m+l):(S=t._offset+t._length/2,T=t.side==="right"?m+l:m-l,_={rotate:"-90",offset:0});var C;if(t.type!=="multicategory"){var D=t._selections[t._id+"tick"];if(C={selection:D,side:t.side},D&&D.node()&&D.node().parentNode){var E=sl.getTranslate(D.node().parentNode);C.offsetLeft=E.x,C.offsetTop=E.y}t.title.hasOwnProperty("standoff")&&(C.pad=0)}return t._titleStandoff=l,pte.draw(e,i+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[a],avoid:C,transform:_,attributes:{x:T,y:S,"text-anchor":"middle"}})}Kt.shouldShowZeroLine=function(e,t,r){var i=$r.simpleMap(t.range,t.r2l);return i[0]*i[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===y2)&&(FL(t,0)||!Jte(e,t,r,i)||Kte(e,t))};Kt.clipEnds=function(e,t){return t.filter(function(r){return FL(e,r.x)})};function FL(e,t){var r=e.l2p(t);return r>1&&r1)for(a=1;a=a.min&&e=bte:/%L/.test(t)?e>=xte:/%[SX]/.test(t)?e>=d2:/%M/.test(t)?e>=tg:/%[HI]/.test(t)?e>=Pf:/%p/.test(t)?e>=Bh:/%[Aadejuwx]/.test(t)?e>=as:/%[UVW]/.test(t)?e>=ll:/%[Bbm]/.test(t)?e>=v2:/%[q]/.test(t)?e>=h2:/%[Yy]/.test(t)?e>=c2:!0}});var UL=me((v1e,OL)=>{"use strict";OL.exports=function(t,r,i){var a,s;if(i){var l=r==="reversed"||r==="min reversed"||r==="max reversed";a=i[l?1:0],s=i[l?0:1]}var f=t("autorangeoptions.minallowed",s===null?a:void 0),h=t("autorangeoptions.maxallowed",a===null?s:void 0);f===void 0&&t("autorangeoptions.clipmin"),h===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var G5=me((d1e,VL)=>{"use strict";var are=UL();VL.exports=function(t,r,i,a){var s=r._template||{},l=r.type||s.type||"-";i("minallowed"),i("maxallowed");var f=i("range");if(!f){var h;!a.noInsiderange&&l!=="log"&&(h=i("insiderange"),h&&(h[0]===null||h[1]===null)&&(r.insiderange=!1,h=void 0),h&&(f=i("range",h)))}var v=r.getAutorangeDflt(f,a),m=i("autorange",v),_;f&&(f[0]===null&&f[1]===null||(f[0]===null||f[1]===null)&&(m==="reversed"||m===!0)||f[0]!==null&&(m==="min"||m==="max reversed")||f[1]!==null&&(m==="max"||m==="min reversed"))&&(f=void 0,delete r.range,r.autorange=!0,_=!0),_||(v=r.getAutorangeDflt(f,a),m=i("autorange",v)),m&&(are(i,m,f),(l==="linear"||l==="-")&&i("rangemode")),r.cleanRange()}});var GL=me((p1e,HL)=>{var ire={left:0,top:0};HL.exports=nre;function nre(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var i=e.clientX||0,a=e.clientY||0,s=ore(t);return r[0]=i-s.left,r[1]=a-s.top,r}function ore(e){return e===window||e===document||e===document.body?ire:e.getBoundingClientRect()}});var Z5=me((m1e,ZL)=>{"use strict";var sre=xw();function lre(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}ZL.exports=sre&&lre()});var WL=me((y1e,YL)=>{"use strict";YL.exports=function(t,r,i,a,s){var l=(t-i)/(a-i),f=l+r/(a-i),h=(l+f)/2;return s==="left"||s==="bottom"?l:s==="center"||s==="middle"?h:s==="right"||s==="top"?f:l<2/3-h?l:f>4/3-h?f:h}});var JL=me((g1e,jL)=>{"use strict";var XL=Bt(),ure=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];jL.exports=function(t,r,i,a){return i==="left"?t=0:i==="center"?t=1:i==="right"?t=2:t=XL.constrain(Math.floor(t*3),0,2),a==="bottom"?r=0:a==="middle"?r=1:a==="top"?r=2:r=XL.constrain(Math.floor(r*3),0,2),ure[r][t]}});var QL=me((_1e,KL)=>{"use strict";var fre=Oy(),cre=b_(),hre=Dy().getGraphDiv,vre=ky(),Y5=KL.exports={};Y5.wrapped=function(e,t,r){e=hre(e),e._fullLayout&&cre.clear(e._fullLayout._uid+vre.HOVERID),Y5.raw(e,t,r)};Y5.raw=function(t,r){var i=t._fullLayout,a=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&fre.triggerHandler(t,"plotly_beforehover",r)===!1)&&(i._hoverlayer.selectAll("g").remove(),i._hoverlayer.selectAll("line").remove(),i._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&a&&t.emit("plotly_unhover",{event:r,points:a}))}});var jl=me((x1e,rD)=>{"use strict";var dre=GL(),W5=ww(),pre=Z5(),mre=Bt().removeElement,yre=Ao(),bd=rD.exports={};bd.align=WL();bd.getCursor=JL();var eD=QL();bd.unhover=eD.wrapped;bd.unhoverRaw=eD.raw;bd.init=function(t){var r=t.gd,i=1,a=r._context.doubleClickDelay,s=t.element,l,f,h,v,m,_,T,S;r._mouseDownTime||(r._mouseDownTime=0),s.style.pointerEvents="all",s.onmousedown=E,pre?(s._ontouchstart&&s.removeEventListener("touchstart",s._ontouchstart),s._ontouchstart=E,s.addEventListener("touchstart",E,{passive:!1})):s.ontouchstart=E;function C(q,z,O){return Math.abs(q)a&&(i=Math.max(i-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var z;_.target===T?z=_:(z={target:T,srcElement:T,toElement:T},Object.keys(_).concat(Object.keys(_.__proto__)).forEach(O=>{var H=_[O];!z[O]&&typeof H!="function"&&(z[O]=H)})),t.clickFn&&t.clickFn(i,z),S||T.dispatchEvent(new MouseEvent("click",q))}r._dragging=!1,r._dragged=!1}};function tD(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}bd.coverSlip=tD;function $L(e){return dre(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Oh=me((b1e,aD)=>{"use strict";aD.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(i){i.indexOf("cursor-")===0&&t.classed(i,!1)}),r&&t.classed("cursor-"+r,!0)}});var oD=me((w1e,nD)=>{"use strict";var X5=Oh(),ng="data-savedcursor",iD="!!";nD.exports=function(t,r){var i=t.attr(ng);if(r){if(!i){for(var a=(t.attr("class")||"").split(" "),s=0;s{"use strict";var j5=qo(),gre=Af();sD.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:gre.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:j5({editType:"legend"}),grouptitlefont:j5({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:j5({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var w2=me(b2=>{"use strict";b2.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};b2.isVertical=function(t){return t.orientation!=="h"};b2.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1}});var $5=me((M1e,lD)=>{"use strict";var K5=la(),ul=Bt(),_re=Ri(),xre=ms(),bre=J5(),wre=d0(),Q5=w2();function Tre(e,t,r,i){var a=t[e]||{},s=_re.newContainer(r,e);function l(Ae,we){return ul.coerce(a,s,bre,Ae,we)}var f=ul.coerceFont(l,"font",r.font);l("bgcolor",r.paper_bgcolor),l("bordercolor");var h=l("visible");if(h){for(var v,m=function(Ae,we){var Te=v._input,Ce=v;return ul.coerce(Te,Ce,xre,Ae,we)},_=r.font||{},T=ul.coerceFont(l,"grouptitlefont",_,{overrideDflt:{size:Math.round(_.size*1.1)}}),S=0,C=!1,D="normal",E=(r.shapes||[]).filter(function(Ae){return Ae.showlegend}),I=i.concat(E).filter(function(Ae){return e===(Ae.legend||"legend")}),B=0;B(e==="legend"?1:0));if(z===!1&&(r[e]=void 0),!(z===!1&&!a.uirevision)&&(l("uirevision",r.uirevision),z!==!1)){l("borderwidth");var O=l("orientation"),H=l("yref"),V=l("xref"),W=O==="h",J=H==="paper",te=V==="paper",ne,oe,fe,de="left";W?(ne=0,K5.getComponentMethod("rangeslider","isVisible")(t.xaxis)?J?(oe=1.1,fe="bottom"):(oe=1,fe="top"):J?(oe=-.1,fe="top"):(oe=0,fe="bottom")):(oe=1,fe="auto",te?ne=1.02:(ne=1,de="right")),ul.coerce(a,s,{x:{valType:"number",editType:"legend",min:te?-2:0,max:te?3:1,dflt:ne}},"x"),ul.coerce(a,s,{y:{valType:"number",editType:"legend",min:J?-2:0,max:J?3:1,dflt:oe}},"y"),l("traceorder",D),Q5.isGrouped(r[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick"),l("groupclick"),l("xanchor",de),l("yanchor",fe),l("maxheight",W?.5:1),l("valign"),ul.noneOrAll(a,s,["x","y"]);var Me=l("title.text");if(Me){l("title.side",W?"left":"top");var Se=ul.extendFlat({},f,{size:ul.bigFont(f.size)});ul.coerceFont(l,"title.font",Se)}}}}lD.exports=function(t,r,i){var a,s=i.slice(),l=r.shapes;if(l)for(a=0;a{"use strict";var N0=la(),t4=Bt(),Are=t4.pushUnique,e4=!0;uD.exports=function(t,r,i){var a=r._fullLayout;if(r._dragged||r._editing)return;var s=a.legend.itemclick,l=a.legend.itemdoubleclick,f=a.legend.groupclick;i===1&&s==="toggle"&&l==="toggleothers"&&e4&&r.data&&r._context.showTips&&t4.notifier(t4._(r,"Double-click on legend to isolate one trace"),"long"),e4=!1;var h;if(i===1?h=s:i===2&&(h=l),!h)return;var v=f==="togglegroup",m=a.hiddenlabels?a.hiddenlabels.slice():[],_=t.data()[0][0];if(_.groupTitle&&_.noClick)return;var T=r._fullData,S=(a.shapes||[]).filter(function(It){return It.showlegend}),C=T.concat(S),D=_.trace;D._isShape&&(D=D._fullInput);var E=D.legendgroup,I,B,q,z,O,H,V={},W=[],J=[],te=[];function ne(It,Gt){var Ct=W.indexOf(It),Mt=V.visible;return Mt||(Mt=V.visible=[]),W.indexOf(It)===-1&&(W.push(It),Ct=W.length-1),Mt[Ct]=Gt,Ct}var oe=(a.shapes||[]).map(function(It){return It._input}),fe=!1;function de(It,Gt){oe[It].visible=Gt,fe=!0}function Me(It,Gt){if(!(_.groupTitle&&!v)){var Ct=It._fullInput||It,Mt=Ct._isShape,Ut=Ct.index;Ut===void 0&&(Ut=Ct._index);var Ot=Ct.visible===!1?!1:Gt;Mt?de(Ut,Ot):ne(Ut,Ot)}}var Se=D.legend,Ae=D._fullInput,we=Ae&&Ae._isShape;if(!we&&N0.traceIs(D,"pie-like")){var Te=_.label,Ce=m.indexOf(Te);if(h==="toggle")Ce===-1?m.push(Te):m.splice(Ce,1);else if(h==="toggleothers"){var Le=Ce!==-1,$e=[];for(I=0;I{"use strict";cD.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var dD=me((C1e,vD)=>{"use strict";var hD=la(),a4=w2();vD.exports=function(t,r,i){var a=r._inHover,s=a4.isGrouped(r),l=a4.isReversed(r),f={},h=[],v=!1,m={},_=0,T=0,S,C;function D(Ae,we,Te){if(r.visible!==!1&&!(i&&Ae!==r._id))if(we===""||!a4.isGrouped(r)){var Ce="~~i"+_;h.push(Ce),f[Ce]=[Te],_++}else h.indexOf(we)===-1?(h.push(we),v=!0,f[we]=[Te]):f[we].push(Te)}for(S=0;Ste&&(J=te)}V[S][0]._groupMinRank=J,V[S][0]._preGroupSort=S}var ne=function(Ae,we){return Ae[0]._groupMinRank-we[0]._groupMinRank||Ae[0]._preGroupSort-we[0]._preGroupSort},oe=function(Ae,we){return Ae.trace.legendrank-we.trace.legendrank||Ae._preSort-we._preSort};for(V.forEach(function(Ae,we){Ae[0]._preGroupSort=we}),V.sort(ne),S=0;S{"use strict";var T2=Bt();function pD(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}wd.formatPiePercent=function(t,r){var i=pD((t*100).toPrecision(3));return T2.numSeparate(i,r)+"%"};wd.formatPieValue=function(t,r){var i=pD(t.toPrecision(10));return T2.numSeparate(i,r)};wd.getFirstFilled=function(t,r){if(T2.isArrayOrTypedArray(t))for(var i=0;i{"use strict";var Mre=bi(),Sre=Oa();mD.exports=function(t,r,i,a){var s=i.marker.pattern;s&&s.shape?Mre.pointStyle(t,i,a,r):Sre.fill(t,r.color)}});var bD=me((D1e,xD)=>{"use strict";var gD=Oa(),_D=i4().castOption,kre=yD();xD.exports=function(t,r,i,a){var s=i.marker.line,l=_D(s.color,r.pts)||gD.defaultLine,f=_D(s.width,r.pts)||0;t.call(kre,r,i,a).style("stroke-width",f).call(gD.stroke,l)}});var l4=me((P1e,kD)=>{"use strict";var is=ja(),n4=la(),Bo=Bt(),wD=Bo.strTranslate,fl=bi(),Jl=Oa(),o4=kf().extractOpts,A2=rs(),Cre=bD(),Ere=i4().castOption,Lre=r4(),TD=12,AD=5,Td=2,Dre=10,B0=5;kD.exports=function(t,r,i){var a=r._fullLayout;i||(i=a.legend);var s=i.itemsizing==="constant",l=i.itemwidth,f=(l+Lre.itemGap*2)/2,h=wD(f,0),v=function(V,W,J,te){var ne;if(V+1)ne=V;else if(W&&W.width>0)ne=W.width;else return 0;return s?te:Math.min(ne,J)};t.each(function(V){var W=is.select(this),J=Bo.ensureSingle(W,"g","layers");J.style("opacity",V[0].trace.opacity);var te=i.indentation,ne=i.valign,oe=V[0].lineHeight,fe=V[0].height;if(ne==="middle"&&te===0||!oe||!fe)J.attr("transform",null);else{var de={top:1,bottom:-1}[ne],Me=de*(.5*(oe-fe+3))||0,Se=i.indentation;J.attr("transform",wD(Se,Me))}var Ae=J.selectAll("g.legendfill").data([V]);Ae.enter().append("g").classed("legendfill",!0);var we=J.selectAll("g.legendlines").data([V]);we.enter().append("g").classed("legendlines",!0);var Te=J.selectAll("g.legendsymbols").data([V]);Te.enter().append("g").classed("legendsymbols",!0),Te.selectAll("g.legendpoints").data([V]).enter().append("g").classed("legendpoints",!0)}).each(H).each(T).each(C).each(S).each(E).each(z).each(q).each(m).each(_).each(I).each(B);function m(V){var W=MD(V),J=W.showFill,te=W.showLine,ne=W.showGradientLine,oe=W.showGradientFill,fe=W.anyFill,de=W.anyLine,Me=V[0],Se=Me.trace,Ae,we,Te=o4(Se),Ce=Te.colorscale,Le=Te.reversescale,$e=function(vt){if(vt.size())if(J)fl.fillGroupStyle(vt,r,!0);else{var xt="legendfill-"+Se.uid;fl.gradient(vt,r,xt,s4(Le),Ce,"fill")}},ot=function(vt){if(vt.size()){var xt="legendline-"+Se.uid;fl.lineGroupStyle(vt),fl.gradient(vt,r,xt,s4(Le),Ce,"stroke")}},it=A2.hasMarkers(Se)||!fe?"M5,0":de?"M5,-2":"M5,-3",bt=is.select(this),We=bt.select(".legendfill").selectAll("path").data(J||oe?[V]:[]);if(We.enter().append("path").classed("js-fill",!0),We.exit().remove(),We.attr("d",it+"h"+l+"v6h-"+l+"z").call($e),te||ne){var Et=v(void 0,Se.line,Dre,AD);we=Bo.minExtend(Se,{line:{width:Et}}),Ae=[Bo.minExtend(Me,{trace:we})]}var nt=bt.select(".legendlines").selectAll("path").data(te||ne?[Ae]:[]);nt.enter().append("path").classed("js-line",!0),nt.exit().remove(),nt.attr("d",it+(ne?"l"+l+",0.0001":"h"+l)).call(te?fl.lineGroupStyle:ot)}function _(V){var W=MD(V),J=W.anyFill,te=W.anyLine,ne=W.showLine,oe=W.showMarker,fe=V[0],de=fe.trace,Me=!oe&&!te&&!J&&A2.hasText(de),Se,Ae;function we(We,Et,nt,vt){var xt=Bo.nestedProperty(de,We).get(),pt=Bo.isArrayOrTypedArray(xt)&&Et?Et(xt):xt;if(s&&pt&&vt!==void 0&&(pt=vt),nt){if(ptnt[1])return nt[1]}return pt}function Te(We){return fe._distinct&&fe.index&&We[fe.index]?We[fe.index]:We[0]}if(oe||Me||ne){var Ce={},Le={};if(oe){Ce.mc=we("marker.color",Te),Ce.mx=we("marker.symbol",Te),Ce.mo=we("marker.opacity",Bo.mean,[.2,1]),Ce.mlc=we("marker.line.color",Te),Ce.mlw=we("marker.line.width",Bo.mean,[0,5],Td),Le.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var $e=we("marker.size",Bo.mean,[2,16],TD);Ce.ms=$e,Le.marker.size=$e}ne&&(Le.line={width:we("line.width",Te,[0,10],AD)}),Me&&(Ce.tx="Aa",Ce.tp=we("textposition",Te),Ce.ts=10,Ce.tc=we("textfont.color",Te),Ce.tf=we("textfont.family",Te),Ce.tw=we("textfont.weight",Te),Ce.ty=we("textfont.style",Te),Ce.tv=we("textfont.variant",Te),Ce.tC=we("textfont.textcase",Te),Ce.tE=we("textfont.lineposition",Te),Ce.tS=we("textfont.shadow",Te)),Se=[Bo.minExtend(fe,Ce)],Ae=Bo.minExtend(de,Le),Ae.selectedpoints=null,Ae.texttemplate=null}var ot=is.select(this).select("g.legendpoints"),it=ot.selectAll("path.scatterpts").data(oe?Se:[]);it.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",h),it.exit().remove(),it.call(fl.pointStyle,Ae,r),oe&&(Se[0].mrc=3);var bt=ot.selectAll("g.pointtext").data(Me?Se:[]);bt.enter().append("g").classed("pointtext",!0).append("text").attr("transform",h),bt.exit().remove(),bt.selectAll("text").call(fl.textPointStyle,Ae,r)}function T(V){var W=V[0].trace,J=W.type==="waterfall";if(V[0]._distinct&&J){var te=V[0].trace[V[0].dir].marker;return V[0].mc=te.color,V[0].mlw=te.line.width,V[0].mlc=te.line.color,D(V,this,"waterfall")}var ne=[];W.visible&&J&&(ne=V[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var oe=is.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(ne);oe.enter().append("path").classed("legendwaterfall",!0).attr("transform",h).style("stroke-miterlimit",1),oe.exit().remove(),oe.each(function(fe){var de=is.select(this),Me=W[fe[0]].marker,Se=v(void 0,Me.line,B0,Td);de.attr("d",fe[1]).style("stroke-width",Se+"px").call(Jl.fill,Me.color),Se&&de.call(Jl.stroke,Me.line.color)})}function S(V){D(V,this)}function C(V){D(V,this,"funnel")}function D(V,W,J){var te=V[0].trace,ne=te.marker||{},oe=ne.line||{},fe=ne.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",de=J?te.visible&&te.type===J:n4.traceIs(te,"bar"),Me=is.select(W).select("g.legendpoints").selectAll("path.legend"+J).data(de?[V]:[]);Me.enter().append("path").classed("legend"+J,!0).attr("d",fe).attr("transform",h),Me.exit().remove(),Me.each(function(Se){var Ae=is.select(this),we=Se[0],Te=v(we.mlw,ne.line,B0,Td);Ae.style("stroke-width",Te+"px");var Ce=we.mcc;if(!i._inHover&&"mc"in we){var Le=o4(ne),$e=Le.mid;$e===void 0&&($e=(Le.max+Le.min)/2),Ce=fl.tryColorscale(ne,"")($e)}var ot=Ce||we.mc||ne.color,it=ne.pattern,bt=fl.getPatternAttr,We=it&&(bt(it.shape,0,"")||bt(it.path,0,""));if(We){var Et=bt(it.bgcolor,0,null),nt=bt(it.fgcolor,0,null),vt=it.fgopacity,xt=SD(it.size,8,10),pt=SD(it.solidity,.5,1),ve="legend-"+te.uid;Ae.call(fl.pattern,"legend",r,ve,We,xt,pt,Ce,it.fillmode,Et,nt,vt)}else Ae.call(Jl.fill,ot);Te&&Jl.stroke(Ae,we.mlc||oe.color)})}function E(V){var W=V[0].trace,J=is.select(this).select("g.legendpoints").selectAll("path.legendbox").data(W.visible&&n4.traceIs(W,"box-violin")?[V]:[]);J.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",h),J.exit().remove(),J.each(function(){var te=is.select(this);if((W.boxpoints==="all"||W.points==="all")&&Jl.opacity(W.fillcolor)===0&&Jl.opacity((W.line||{}).color)===0){var ne=Bo.minExtend(W,{marker:{size:s?TD:Bo.constrain(W.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});J.call(fl.pointStyle,ne,r)}else{var oe=v(void 0,W.line,B0,Td);te.style("stroke-width",oe+"px").call(Jl.fill,W.fillcolor),oe&&Jl.stroke(te,W.line.color)}})}function I(V){var W=V[0].trace,J=is.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(W.visible&&W.type==="candlestick"?[V,V]:[]);J.enter().append("path").classed("legendcandle",!0).attr("d",function(te,ne){return ne?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",h).style("stroke-miterlimit",1),J.exit().remove(),J.each(function(te,ne){var oe=is.select(this),fe=W[ne?"increasing":"decreasing"],de=v(void 0,fe.line,B0,Td);oe.style("stroke-width",de+"px").call(Jl.fill,fe.fillcolor),de&&Jl.stroke(oe,fe.line.color)})}function B(V){var W=V[0].trace,J=is.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(W.visible&&W.type==="ohlc"?[V,V]:[]);J.enter().append("path").classed("legendohlc",!0).attr("d",function(te,ne){return ne?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",h).style("stroke-miterlimit",1),J.exit().remove(),J.each(function(te,ne){var oe=is.select(this),fe=W[ne?"increasing":"decreasing"],de=v(void 0,fe.line,B0,Td);oe.style("fill","none").call(fl.dashLine,fe.line.dash,de),de&&Jl.stroke(oe,fe.line.color)})}function q(V){O(V,this,"pie")}function z(V){O(V,this,"funnelarea")}function O(V,W,J){var te=V[0],ne=te.trace,oe=J?ne.visible&&ne.type===J:n4.traceIs(ne,J),fe=is.select(W).select("g.legendpoints").selectAll("path.legend"+J).data(oe?[V]:[]);if(fe.enter().append("path").classed("legend"+J,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",h),fe.exit().remove(),fe.size()){var de=ne.marker||{},Me=v(Ere(de.line.width,te.pts),de.line,B0,Td),Se="pieLike",Ae=Bo.minExtend(ne,{marker:{line:{width:Me}}},Se),we=Bo.minExtend(te,{trace:Ae},Se);Cre(fe,we,Ae,r)}}function H(V){var W=V[0].trace,J,te=[];if(W.visible)switch(W.type){case"histogram2d":case"heatmap":te=[["M-15,-2V4H15V-2Z"]],J=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":te=[["M-6,-6V6H6V-6Z"]],J=!0;break;case"densitymapbox":case"densitymap":te=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],J="radial";break;case"cone":te=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],J=!1;break;case"streamtube":te=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],J=!1;break;case"surface":te=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],J=!0;break;case"mesh3d":te=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],J=!1;break;case"volume":te=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],J=!0;break;case"isosurface":te=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],J=!1;break}var ne=is.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(te);ne.enter().append("path").classed("legend3dandfriends",!0).attr("transform",h).style("stroke-miterlimit",1),ne.exit().remove(),ne.each(function(oe,fe){var de=is.select(this),Me=o4(W),Se=Me.colorscale,Ae=Me.reversescale,we=function($e){if($e.size()){var ot="legendfill-"+W.uid;fl.gradient($e,r,ot,s4(Ae,J==="radial"),Se,"fill")}},Te;if(Se){if(!J){var Le=Se.length;Te=fe===0?Se[Ae?Le-1:0][1]:fe===1?Se[Ae?0:Le-1][1]:Se[Math.floor((Le-1)/2)][1]}}else{var Ce=W.vertexcolor||W.facecolor||W.color;Te=Bo.isArrayOrTypedArray(Ce)?Ce[fe]||Ce[0]:Ce}de.attr("d",oe[0]),Te?de.call(Jl.fill,Te):de.call(we)})}};function s4(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function MD(e){var t=e[0].trace,r=t.contours,i=A2.hasLines(t),a=A2.hasMarkers(t),s=t.visible&&t.fill&&t.fill!=="none",l=!1,f=!1;if(r){var h=r.coloring;h==="lines"?l=!0:i=h==="none"||h==="heatmap"||r.showlines,r.type==="constraint"?s=r._operation!=="=":(h==="fill"||h==="heatmap")&&(f=!0)}return{showMarker:a,showLine:i,showFill:s,showGradientLine:l,showGradientFill:f,anyLine:i||l,anyFill:s||f}}function SD(e,t,r){return e&&Bo.isArrayOrTypedArray(e)?t:e>r?r:e}});var h4=me((z1e,qD)=>{"use strict";var Bs=ja(),Bn=Bt(),f4=eo(),V0=la(),CD=Oy(),u4=jl(),On=bi(),S2=Oa(),Ad=co(),ED=fD(),jn=r4(),c4=ts(),RD=c4.LINE_SPACING,U0=c4.FROM_TL,LD=c4.FROM_BR,DD=dD(),Pre=l4(),PD=w2(),O0=1,zre=/^legend[0-9]*$/;qD.exports=function(t,r){if(r)zD(t,r);else{var i=t._fullLayout,a=i._legends,s=i._infolayer.selectAll('[class^="legend"]');s.each(function(){var v=Bs.select(this),m=v.attr("class"),_=m.split(" ")[0];_.match(zre)&&a.indexOf(_)===-1&&v.remove()});for(var l=0;l1)}var C=i.hiddenlabels||[];if(!f&&(!i.showlegend||!h.length))return l.selectAll("."+a).remove(),i._topdefs.select("#"+s).remove(),f4.autoMargin(e,a);var D=Bn.ensureSingle(l,"g",a,function(W){f||W.attr("pointer-events","all")}),E=Bn.ensureSingleById(i._topdefs,"clipPath",s,function(W){W.append("rect")}),I=Bn.ensureSingle(D,"rect","bg",function(W){W.attr("shape-rendering","crispEdges")});I.call(S2.stroke,r.bordercolor).call(S2.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var B=Bn.ensureSingle(D,"g","scrollbox"),q=r.title;r._titleWidth=0,r._titleHeight=0;var z;q.text?(z=Bn.ensureSingle(B,"text",a+"titletext"),z.attr("text-anchor","start").call(On.font,q.font).text(q.text),k2(z,B,e,r,O0)):B.selectAll("."+a+"titletext").remove();var O=Bn.ensureSingle(D,"rect","scrollbar",function(W){W.attr(jn.scrollBarEnterAttrs).call(S2.fill,jn.scrollBarColor)}),H=B.selectAll("g.groups").data(h);H.enter().append("g").attr("class","groups"),H.exit().remove();var V=H.selectAll("g.traces").data(Bn.identity);V.enter().append("g").attr("class","traces"),V.exit().remove(),V.style("opacity",function(W){var J=W[0].trace;return V0.traceIs(J,"pie-like")?C.indexOf(W[0].label)!==-1?.5:1:J.visible==="legendonly"?.5:1}).each(function(){Bs.select(this).call(Rre,e,r)}).call(Pre,e,r).each(function(){f||Bs.select(this).call(Fre,e,a)}),Bn.syncOrAsync([f4.previousPromises,function(){return Bre(e,H,V,r)},function(){var W=i._size,J=r.borderwidth,te=r.xref==="paper",ne=r.yref==="paper";if(q.text&&Ire(z,r,J),!f){var oe,fe;te?oe=W.l+W.w*r.x-U0[C2(r)]*r._width:oe=i.width*r.x-U0[C2(r)]*r._width,ne?fe=W.t+W.h*(1-r.y)-U0[E2(r)]*r._effHeight:fe=i.height*(1-r.y)-U0[E2(r)]*r._effHeight;var de=Ore(e,a,oe,fe);if(de)return;if(i.margin.autoexpand){var Me=oe,Se=fe;oe=te?Bn.constrain(oe,0,i.width-r._width):Me,fe=ne?Bn.constrain(fe,0,i.height-r._effHeight):Se,oe!==Me&&Bn.log("Constrain "+a+".x to make legend fit inside graph"),fe!==Se&&Bn.log("Constrain "+a+".y to make legend fit inside graph")}On.setTranslate(D,oe,fe)}if(O.on(".drag",null),D.on("wheel",null),f||r._height<=r._maxHeight||e._context.staticPlot){var Ae=r._effHeight;f&&(Ae=r._height),I.attr({width:r._width-J,height:Ae-J,x:J/2,y:J/2}),On.setTranslate(B,0,0),E.select("rect").attr({width:r._width-2*J,height:Ae-2*J,x:J,y:J}),On.setClipUrl(B,s,e),On.setRect(O,0,0,0,0),delete r._scrollY}else{var we=Math.max(jn.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),Te=r._effHeight-we-2*jn.scrollBarMargin,Ce=r._height-r._effHeight,Le=Te/Ce,$e=Math.min(r._scrollY||0,Ce);I.attr({width:r._width-2*J+jn.scrollBarWidth+jn.scrollBarMargin,height:r._effHeight-J,x:J/2,y:J/2}),E.select("rect").attr({width:r._width-2*J+jn.scrollBarWidth+jn.scrollBarMargin,height:r._effHeight-2*J,x:J,y:J+$e}),On.setClipUrl(B,s,e),xt($e,we,Le),D.on("wheel",function(){$e=Bn.constrain(r._scrollY+Bs.event.deltaY/Te*Ce,0,Ce),xt($e,we,Le),$e!==0&&$e!==Ce&&Bs.event.preventDefault()});var ot,it,bt,We=function(at,yt,Xe){var Ft=(Xe-yt)/Le+at;return Bn.constrain(Ft,0,Ce)},Et=function(at,yt,Xe){var Ft=(yt-Xe)/Le+at;return Bn.constrain(Ft,0,Ce)},nt=Bs.behavior.drag().on("dragstart",function(){var at=Bs.event.sourceEvent;at.type==="touchstart"?ot=at.changedTouches[0].clientY:ot=at.clientY,bt=$e}).on("drag",function(){var at=Bs.event.sourceEvent;at.buttons===2||at.ctrlKey||(at.type==="touchmove"?it=at.changedTouches[0].clientY:it=at.clientY,$e=We(bt,ot,it),xt($e,we,Le))});O.call(nt);var vt=Bs.behavior.drag().on("dragstart",function(){var at=Bs.event.sourceEvent;at.type==="touchstart"&&(ot=at.changedTouches[0].clientY,bt=$e)}).on("drag",function(){var at=Bs.event.sourceEvent;at.type==="touchmove"&&(it=at.changedTouches[0].clientY,$e=Et(bt,ot,it),xt($e,we,Le))});B.call(vt)}function xt(at,yt,Xe){r._scrollY=e._fullLayout[a]._scrollY=at,On.setTranslate(B,0,-at),On.setRect(O,r._width,jn.scrollBarMargin+at*Xe,jn.scrollBarWidth,yt),E.select("rect").attr("y",J+at)}if(e._context.edits.legendPosition){var pt,ve,ze,pe;D.classed("cursor-move",!0),u4.init({element:D.node(),gd:e,prepFn:function(at){if(at.target!==O.node()){var yt=On.getTranslate(D);ze=yt.x,pe=yt.y}},moveFn:function(at,yt){if(ze!==void 0&&pe!==void 0){var Xe=ze+at,Ft=pe+yt;On.setTranslate(D,Xe,Ft),pt=u4.align(Xe,r._width,W.l,W.l+W.w,r.xanchor),ve=u4.align(Ft+r._height,-r._height,W.t+W.h,W.t,r.yanchor)}},doneFn:function(){if(pt!==void 0&&ve!==void 0){var at={};at[a+".x"]=pt,at[a+".y"]=ve,V0.call("_guiRelayout",e,at)}},clickFn:function(at,yt){var Xe=l.selectAll("g.traces").filter(function(){var Ft=this.getBoundingClientRect();return yt.clientX>=Ft.left&&yt.clientX<=Ft.right&&yt.clientY>=Ft.top&&yt.clientY<=Ft.bottom});Xe.size()>0&&FD(e,D,Xe,at,yt)}})}}],e)}}function M2(e,t,r){var i=e[0],a=i.width,s=t.entrywidthmode,l=i.trace.legendwidth||t.entrywidth;return s==="fraction"?t._maxWidth*l:r+(l||a)}function FD(e,t,r,i,a){var s=r.data()[0][0].trace,l={event:a,node:r.node(),curveNumber:s.index,expandedIndex:s.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};s._group&&(l.group=s._group),V0.traceIs(s,"pie-like")&&(l.label=r.datum()[0].label);var f=CD.triggerHandler(e,"plotly_legendclick",l);if(i===1){if(f===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&ED(r,e,i)},e._context.doubleClickDelay)}else if(i===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var h=CD.triggerHandler(e,"plotly_legenddoubleclick",l);h!==!1&&f!==!1&&ED(r,e,i)}}function Rre(e,t,r){var i=L2(r),a=e.data()[0][0],s=a.trace,l=V0.traceIs(s,"pie-like"),f=!r._inHover&&t._context.edits.legendText&&!l,h=r._maxNameLength,v,m;a.groupTitle?(v=a.groupTitle.text,m=a.groupTitle.font):(m=r.font,r.entries?v=a.text:(v=l?a.label:s.name,s._meta&&(v=Bn.templateString(v,s._meta))));var _=Bn.ensureSingle(e,"text",i+"text");_.attr("text-anchor","start").call(On.font,m).text(f?ID(v,h):v);var T=r.indentation+r.itemwidth+jn.itemGap*2;Ad.positionText(_,T,0),f?_.call(Ad.makeEditable,{gd:t,text:v}).call(k2,e,t,r).on("edit",function(S){this.text(ID(S,h)).call(k2,e,t,r);var C=a.trace._fullInput||{},D={};return D.name=S,C._isShape?V0.call("_guiRelayout",t,"shapes["+s.index+"].name",D.name):V0.call("_guiRestyle",t,D,s.index)}):k2(_,e,t,r)}function ID(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var i=r-e.length;i>0;i--)e+=" ";return e}function Fre(e,t,r){var i=t._context.doubleClickDelay,a,s=1,l=Bn.ensureSingle(e,"rect",r+"toggle",function(f){t._context.staticPlot||f.style("cursor","pointer").attr("pointer-events","all"),f.call(S2.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(l.on("mousedown",function(){a=new Date().getTime(),a-t._legendMouseDownTimei&&(s=Math.max(s-1,1)),FD(t,f,e,s,Bs.event)}}))}function k2(e,t,r,i,a){i._inHover&&e.attr("data-notex",!0),Ad.convertToTspans(e,r,function(){qre(t,r,i,a)})}function qre(e,t,r,i){var a=e.data()[0][0];if(!r._inHover&&a&&!a.trace.showlegend){e.remove();return}var s=e.select("g[class*=math-group]"),l=s.node(),f=L2(r);r||(r=t._fullLayout[f]);var h=r.borderwidth,v;i===O0?v=r.title.font:a.groupTitle?v=a.groupTitle.font:v=r.font;var m=v.size*RD,_,T;if(l){var S=On.bBox(l);_=S.height,T=S.width,i===O0?On.setTranslate(s,h,h+_*.75):On.setTranslate(s,0,_*.25)}else{var C="."+f+(i===O0?"title":"")+"text",D=e.select(C),E=Ad.lineCount(D),I=D.node();if(_=m*E,T=I?On.bBox(I).width:0,i===O0)r.title.side==="left"&&(T+=jn.itemGap*2),Ad.positionText(D,h+jn.titlePad,h+m);else{var B=jn.itemGap*2+r.indentation+r.itemwidth;a.groupTitle&&(B=jn.itemGap,T-=r.indentation+r.itemwidth),Ad.positionText(D,B,-m*((E-1)/2-.3))}}i===O0?(r._titleWidth=T,r._titleHeight=_):(a.lineHeight=m,a.height=Math.max(_,16)+3,a.width=T)}function Nre(e){var t=0,r=0,i=e.title.side;return i&&(i.indexOf("left")!==-1&&(t=e._titleWidth),i.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function Bre(e,t,r,i){var a=e._fullLayout,s=L2(i);i||(i=a[s]);var l=a._size,f=PD.isVertical(i),h=PD.isGrouped(i),v=i.entrywidthmode==="fraction",m=i.borderwidth,_=2*m,T=jn.itemGap,S=i.indentation+i.itemwidth+T*2,C=2*(m+T),D=E2(i),E=i.y<0||i.y===0&&D==="top",I=i.y>1||i.y===1&&D==="bottom",B=i.tracegroupgap,q={},{maxheight:z,orientation:O,yref:H}=i,V=O==="v"&&H==="paper"?l.h:a.height;i._maxHeight=Math.max(z>1?z:z*V,30);var W=0;i._width=0,i._height=0;var J=Nre(i);if(f)r.each(function(vt){var xt=vt[0].height;On.setTranslate(this,m+J[0],m+J[1]+i._height+xt/2+T),i._height+=xt,i._width=Math.max(i._width,vt[0].width)}),W=S+i._width,i._width+=T+S+_,i._height+=C,h&&(t.each(function(vt,xt){On.setTranslate(this,0,xt*i.tracegroupgap)}),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var te=C2(i),ne=i.x<0||i.x===0&&te==="right",oe=i.x>1||i.x===1&&te==="left",fe=I||E,de=a.width/2;i._maxWidth=Math.max(ne?fe&&te==="left"?l.l+l.w:de:oe?fe&&te==="right"?l.r+l.w:de:l.w,2*S);var Me=0,Se=0;r.each(function(vt){var xt=M2(vt,i,S);Me=Math.max(Me,xt),Se+=xt}),W=null;var Ae=0;if(h){var we=0,Te=0,Ce=0;t.each(function(){var vt=0,xt=0;Bs.select(this).selectAll("g.traces").each(function(ve){var ze=M2(ve,i,S),pe=ve[0].height;On.setTranslate(this,J[0],J[1]+m+T+pe/2+xt),xt+=pe,vt=Math.max(vt,ze),q[ve[0].trace.legendgroup]=vt});var pt=vt+T;Te>0&&pt+m+Te>i._maxWidth?(Ae=Math.max(Ae,Te),Te=0,Ce+=we+B,we=xt):we=Math.max(we,xt),On.setTranslate(this,Te,Ce),Te+=pt}),i._width=Math.max(Ae,Te)+m,i._height=Ce+we+C}else{var Le=r.size(),$e=Se+_+(Le-1)*T=i._maxWidth&&(Ae=Math.max(Ae,We),it=0,bt+=ot,i._height+=ot,ot=0),On.setTranslate(this,J[0]+m+it,J[1]+m+bt+xt/2+T),We=it+pt+T,it+=ve,ot=Math.max(ot,xt)}),$e?(i._width=it+_,i._height=ot+C):(i._width=Math.max(Ae,We)+_,i._height+=ot+C)}}i._width=Math.ceil(Math.max(i._width+J[0],i._titleWidth+2*(m+jn.titlePad))),i._height=Math.ceil(Math.max(i._height+J[1],i._titleHeight+2*(m+jn.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var Et=e._context.edits,nt=Et.legendText||Et.legendPosition;r.each(function(vt){var xt=Bs.select(this).select("."+s+"toggle"),pt=vt[0].height,ve=vt[0].trace.legendgroup,ze=M2(vt,i,S);h&&ve!==""&&(ze=q[ve]);var pe=nt?S:W||ze;!f&&!v&&(pe+=T/2),On.setRect(xt,0,-pt/2,pe,pt)})}function Ore(e,t,r,i){var a=e._fullLayout,s=a[t],l=C2(s),f=E2(s),h=s.xref==="paper",v=s.yref==="paper";e._fullLayout._reservedMargin[t]={};var m=s.y<.5?"b":"t",_=s.x<.5?"l":"r",T={r:a.width-r,l:r+s._width,b:a.height-i,t:i+s._effHeight};if(h&&v)return f4.autoMargin(e,t,{x:s.x,y:s.y,l:s._width*U0[l],r:s._width*LD[l],b:s._effHeight*LD[f],t:s._effHeight*U0[f]});h?e._fullLayout._reservedMargin[t][m]=T[m]:v||s.orientation==="v"?e._fullLayout._reservedMargin[t][_]=T[_]:e._fullLayout._reservedMargin[t][m]=T[m]}function C2(e){return Bn.isRightAnchor(e)?"right":Bn.isCenterAnchor(e)?"center":"left"}function E2(e){return Bn.isBottomAnchor(e)?"bottom":Bn.isMiddleAnchor(e)?"middle":"top"}function L2(e){return e._id||"legend"}});var m4=me(p4=>{"use strict";var Md=ja(),Tc=Da(),ND=Tf(),hn=Bt(),Ure=hn.pushUnique,v4=hn.strTranslate,Vre=hn.strRotate,Hre=Oy(),Kl=co(),Gre=oD(),zf=bi(),ro=Oa(),D2=jl(),If=Xi(),Zre=Ao().zindexSeparator,G0=la(),qu=bc(),Sd=ky(),Yre=$5(),Wre=h4(),YD=Sd.YANGLE,d4=Math.PI*YD/180,Xre=1/Math.sin(d4),jre=Math.cos(d4),Jre=Math.sin(d4),ji=Sd.HOVERARROWSIZE,Fa=Sd.HOVERTEXTPAD,BD={box:!0,ohlc:!0,violin:!0,candlestick:!0},Kre={scatter:!0,scattergl:!0,splom:!0};function OD(e,t){return e.distance-t.distance}p4.hover=function(t,r,i,a){t=hn.getGraphDiv(t);var s=r.target;hn.throttle(t._fullLayout._uid+Sd.HOVERID,Sd.HOVERMINTIME,function(){Qre(t,r,i,a,s)})};p4.loneHover=function(t,r){var i=!0;Array.isArray(t)||(i=!1,t=[t]);var a=r.gd,s=KD(a),l=QD(a),f=t.map(function(E){var I=E._x0||E.x0||E.x||0,B=E._x1||E.x1||E.x||0,q=E._y0||E.y0||E.y||0,z=E._y1||E.y1||E.y||0,O=E.eventData;if(O){var H=Math.min(I,B),V=Math.max(I,B),W=Math.min(q,z),J=Math.max(q,z),te=E.trace;if(G0.traceIs(te,"gl3d")){var ne=a._fullLayout[te.scene]._scene.container,oe=ne.offsetLeft,fe=ne.offsetTop;H+=oe,V+=oe,W+=fe,J+=fe}O.bbox={x0:H+l,x1:V+l,y0:W+s,y1:J+s},r.inOut_bbox&&r.inOut_bbox.push(O.bbox)}else O=!1;return{color:E.color||ro.defaultLine,x0:E.x0||E.x||0,x1:E.x1||E.x||0,y0:E.y0||E.y||0,y1:E.y1||E.y||0,xLabel:E.xLabel,yLabel:E.yLabel,zLabel:E.zLabel,text:E.text,name:E.name,idealAlign:E.idealAlign,borderColor:E.borderColor,fontFamily:E.fontFamily,fontSize:E.fontSize,fontColor:E.fontColor,fontWeight:E.fontWeight,fontStyle:E.fontStyle,fontVariant:E.fontVariant,nameLength:E.nameLength,textAlign:E.textAlign,trace:E.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:E.hovertemplate||!1,hovertemplateLabels:E.hovertemplateLabels||!1,eventData:O}}),h=!1,v=XD(f,{gd:a,hovermode:"closest",rotateLabels:h,bgColor:r.bgColor||ro.background,container:Md.select(r.container),outerContainer:r.outerContainer||r.container}),m=v.hoverLabels,_=5,T=0,S=0;m.sort(function(E,I){return E.y0-I.y0}).each(function(E,I){var B=E.y0-E.by/2;B-_V[0]._length||pe<0||pe>W[0]._length)return D2.unhoverRaw(e,t)}if(t.pointerX=ze+V[0]._offset,t.pointerY=pe+W[0]._offset,"xval"in t?Se=qu.flat(s,t.xval):Se=qu.p2c(V,ze),"yval"in t?Ae=qu.flat(s,t.yval):Ae=qu.p2c(W,pe),!Tc(Se[0])||!Tc(Ae[0]))return hn.warn("Fx.hover failed",t,e),D2.unhoverRaw(e,t)}var Xe=1/0;function Ft(Gr,Qa){for(Te=0;Tent&&(de.splice(0,nt),Xe=de[0].distance),_&&fe!==0&&de.length===0){Et.distance=fe,Et.index=!1;var ee=Le._module.hoverPoints(Et,bt,We,"closest",{hoverLayer:f._hoverlayer});if(ee&&(ee=ee.filter(function(He){return He.spikeDistance<=fe})),ee&&ee.length){var se,ce=ee.filter(function(He){return He.xa.showspikes&&He.xa.spikesnap!=="hovered data"});if(ce.length){var Ee=ce[0];Tc(Ee.x0)&&Tc(Ee.y0)&&(se=Tt(Ee),(!vt.vLinePoint||vt.vLinePoint.spikeDistance>se.spikeDistance)&&(vt.vLinePoint=se))}var Ne=ee.filter(function(He){return He.ya.showspikes&&He.ya.spikesnap!=="hovered data"});if(Ne.length){var rt=Ne[0];Tc(rt.x0)&&Tc(rt.y0)&&(se=Tt(rt),(!vt.hLinePoint||vt.hLinePoint.spikeDistance>se.spikeDistance)&&(vt.hLinePoint=se))}}}}}Ft();function Lt(Gr,Qa,Zr){for(var di=null,ga=1/0,le,ee=0;ee0&&Math.abs(Gr.distance)gt-1;lr--)zr(de[lr]);de=Vt,Mt()}var At=e._hoverdata,Fe=[],Ge=KD(e),wt=QD(e);for(we=0;we1||de.length>1)||T==="closest"&&xt&&de.length>1,$i=ro.combine(f.plot_bgcolor||ro.background,f.paper_bgcolor),on=XD(de,{gd:e,hovermode:T,rotateLabels:Ti,bgColor:$i,container:f._hoverlayer,outerContainer:f._paper.node(),commonLabelOpts:f.hoverlabel,hoverdistance:f.hoverdistance}),Ei=on.hoverLabels;if(qu.isUnifiedHover(T)||(eae(Ei,Ti,f,on.commonLabelBoundingBox),JD(Ei,Ti,f._invScaleX,f._invScaleY)),a&&a.tagName){var ma=G0.getComponentMethod("annotations","hasClickToShow")(e,Fe);Gre(Md.select(a),ma?"pointer":"")}!a||i||!aae(e,t,At)||(At&&e.emit("plotly_unhover",{event:t,points:At}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:V,yaxes:W,xvals:Se,yvals:Ae}))}function WD(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var $re=/([\s\S]*)<\/extra>/;function XD(e,t){var r=t.gd,i=r._fullLayout,a=t.hovermode,s=t.rotateLabels,l=t.bgColor,f=t.container,h=t.outerContainer,v=t.commonLabelOpts||{};if(e.length===0)return[[]];var m=t.fontFamily||Sd.HOVERFONT,_=t.fontSize||Sd.HOVERFONTSIZE,T=t.fontWeight||i.font.weight,S=t.fontStyle||i.font.style,C=t.fontVariant||i.font.variant,D=t.fontTextcase||i.font.textcase,E=t.fontLineposition||i.font.lineposition,I=t.fontShadow||i.font.shadow,B=e[0],q=B.xa,z=B.ya,O=a.charAt(0),H=O+"Label",V=B[H];if(V===void 0&&q.type==="multicategory")for(var W=0;Wi.width-wt&&(dt=i.width-wt),gt.attr("d","M"+(At-dt)+",0L"+(At-dt+ji)+","+Ge+ji+"H"+wt+"v"+Ge+(Fa*2+lr.height)+"H"+-wt+"V"+Ge+ji+"H"+(At-dt-ji)+"Z"),At=dt,Te.minX=At-wt,Te.maxX=At+wt,q.side==="top"?(Te.minY=Fe-(Fa*2+lr.height),Te.maxY=Fe-Fa):(Te.minY=Fe+Fa,Te.maxY=Fe+(Fa*2+lr.height))}else{var gr,xr,mr;z.side==="right"?(gr="start",xr=1,mr="",At=q._offset+q._length):(gr="end",xr=-1,mr="-",At=q._offset),Fe=z._offset+(B.y0+B.y1)/2,qt.attr("text-anchor",gr),gt.attr("d","M0,0L"+mr+ji+","+ji+"V"+(Fa+lr.height/2)+"h"+mr+(Fa*2+lr.width)+"V-"+(Fa+lr.height/2)+"H"+mr+ji+"V-"+ji+"Z"),Te.minY=Fe-(Fa+lr.height/2),Te.maxY=Fe+(Fa+lr.height/2),z.side==="right"?(Te.minX=At+ji,Te.maxX=At+ji+(Fa*2+lr.width)):(Te.minX=At-ji-(Fa*2+lr.width),Te.maxX=At-ji);var Hr=lr.height/2,pa=te-lr.top-Hr,Ea="clip"+i._uid+"commonlabel"+z._id,Ua;if(At=0?or=Ut:Ot+Xe=0?or=Ot:Be+Xe=0?Cr=Ct:Mt+Ft=0?Cr=Mt:ft+Ft=0,(Oe.idealAlign==="top"||!vi)&&Ti?(mr-=pa/2,Oe.anchor="end"):vi?(mr+=pa/2,Oe.anchor="start"):Oe.anchor="middle",Oe.crossPos=mr;else{if(Oe.pos=mr,vi=xr+Hr/2+qi<=ne,Ti=xr-Hr/2-qi>=0,(Oe.idealAlign==="left"||!vi)&&Ti)xr-=Hr/2,Oe.anchor="end";else if(vi)xr+=Hr/2,Oe.anchor="start";else{Oe.anchor="middle";var $i=qi/2,on=xr+$i-ne,Ei=xr-$i;on>0&&(xr-=on),Ei<0&&(xr+=-Ei)}Oe.crossPos=xr}Fe.attr("text-anchor",Oe.anchor),wt&&Ge.attr("text-anchor",Oe.anchor),gt.attr("transform",v4(xr,mr)+(s?Vre(YD):""))}),{hoverLabels:Sr,commonLabelBoundingBox:Te}}function UD(e,t,r,i,a,s){var l="",f="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=hn.templateString(e.name,e.trace._meta)),l=GD(e.name,e.nameLength));var h=r.charAt(0),v=h==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(f+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(f+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(f+=(f?"z: ":"")+e.zLabel)):t&&e[h+"Label"]===a?f=e[v+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(f=e.yLabel):e.yLabel===void 0?f=e.xLabel:f="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(f+=(f?"
":"")+e.text),e.extraText!==void 0&&(f+=(f?"
":"")+e.extraText),s&&f===""&&!e.hovertemplate&&(l===""&&s.remove(),f=l);var m=e.hovertemplate||!1;if(m){var _=e.hovertemplateLabels||e;e[h+"Label"]!==a&&(_[h+"other"]=_[h+"Val"],_[h+"otherLabel"]=_[h+"Label"]),f=hn.hovertemplateString(m,_,i._d3locale,e.eventData[0]||{},e.trace._meta),f=f.replace($re,function(T,S){return l=GD(S,e.nameLength),""})}return[f,l]}function eae(e,t,r,i){var a=t?"xa":"ya",s=t?"ya":"xa",l=0,f=1,h=e.size(),v=new Array(h),m=0,_=i.minX,T=i.maxX,S=i.minY,C=i.maxY,D=function(Se){return Se*r._invScaleX},E=function(Se){return Se*r._invScaleY};e.each(function(Se){var Ae=Se[a],we=Se[s],Te=Ae._id.charAt(0)==="x",Ce=Ae.range;m===0&&Ce&&Ce[0]>Ce[1]!==Te&&(f=-1);var Le=0,$e=Te?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var ot=jD(Se,t),it=Se.anchor,bt=it==="end"?-1:1,We,Et;if(it==="middle")We=Se.crossPos+(Te?E(ot.y-Se.by/2):D(Se.bx/2+Se.tx2width/2)),Et=We+(Te?E(Se.by):D(Se.bx));else if(Te)We=Se.crossPos+E(ji+ot.y)-E(Se.by/2-ji),Et=We+E(Se.by);else{var nt=D(bt*ji+ot.x),vt=nt+D(bt*Se.bx);We=Se.crossPos+Math.min(nt,vt),Et=Se.crossPos+Math.max(nt,vt)}Te?S!==void 0&&C!==void 0&&Math.min(Et,C)-Math.max(We,S)>1&&(we.side==="left"?(Le=we._mainLinePosition,$e=r.width):$e=we._mainLinePosition):_!==void 0&&T!==void 0&&Math.min(Et,T)-Math.max(We,_)>1&&(we.side==="top"?(Le=we._mainLinePosition,$e=r.height):$e=we._mainLinePosition)}v[m++]=[{datum:Se,traceIndex:Se.trace.index,dp:0,pos:Se.pos,posref:Se.posref,size:Se.by*(Te?Xre:1)/2,pmin:Le,pmax:$e}]}),v.sort(function(Se,Ae){return Se[0].posref-Ae[0].posref||f*(Ae[0].traceIndex-Se[0].traceIndex)});var I,B,q,z,O,H,V;function W(Se){var Ae=Se[0],we=Se[Se.length-1];if(B=Ae.pmin-Ae.pos-Ae.dp+Ae.size,q=we.pos+we.dp+we.size-Ae.pmax,B>.01){for(O=Se.length-1;O>=0;O--)Se[O].dp+=B;I=!1}if(!(q<.01)){if(B<-.01){for(O=Se.length-1;O>=0;O--)Se[O].dp-=q;I=!1}if(I){var Te=0;for(z=0;zAe.pmax&&Te++;for(z=Se.length-1;z>=0&&!(Te<=0);z--)H=Se[z],H.pos>Ae.pmax-1&&(H.del=!0,Te--);for(z=0;z=0;O--)Se[O].dp-=q;for(z=Se.length-1;z>=0&&!(Te<=0);z--)H=Se[z],H.pos+H.dp+H.size>Ae.pmax&&(H.del=!0,Te--)}}}for(;!I&&l<=h;){for(l++,I=!0,z=0;z.01){for(O=te.length-1;O>=0;O--)te[O].dp+=B;for(J.push.apply(J,te),v.splice(z+1,1),V=0,O=J.length-1;O>=0;O--)V+=J[O].dp;for(q=V/J.length,O=J.length-1;O>=0;O--)J[O].dp-=q;I=!1}else z++}v.forEach(W)}for(z=v.length-1;z>=0;z--){var fe=v[z];for(O=fe.length-1;O>=0;O--){var de=fe[O],Me=de.datum;Me.offset=de.dp,Me.del=de.del}}}function jD(e,t){var r=0,i=e.offset;return t&&(i*=-Jre,r=e.offset*jre),{x:r,y:i}}function tae(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(ji+Fa),i=r+t*(e.txwidth+Fa),a=e.anchor==="middle";return a&&(r-=e.tx2width/2,i+=e.txwidth/2+Fa),{alignShift:t,textShiftX:r,text2ShiftX:i}}function JD(e,t,r,i){var a=function(l){return l*r},s=function(l){return l*i};e.each(function(l){var f=Md.select(this);if(l.del)return f.remove();var h=f.select("text.nums"),v=l.anchor,m=v==="end"?-1:1,_=tae(l),T=jD(l,t),S=T.x,C=T.y,D=v==="middle",E="hoverlabel"in l.trace?l.trace.hoverlabel.showarrow:!0,I;D?I="M-"+a(l.bx/2+l.tx2width/2)+","+s(C-l.by/2)+"h"+a(l.bx)+"v"+s(l.by)+"h-"+a(l.bx)+"Z":E?I="M0,0L"+a(m*ji+S)+","+s(ji+C)+"v"+s(l.by/2-ji)+"h"+a(m*l.bx)+"v-"+s(l.by)+"H"+a(m*ji+S)+"V"+s(C-ji)+"Z":I="M"+a(m*ji+S)+","+s(C-l.by/2)+"h"+a(m*l.bx)+"v"+s(l.by)+"h"+a(-m*l.bx)+"Z",f.select("path").attr("d",I);var B=S+_.textShiftX,q=C+l.ty0-l.by/2+Fa,z=l.textAlign||"auto";z!=="auto"&&(z==="left"&&v!=="start"?(h.attr("text-anchor","start"),B=D?-l.bx/2-l.tx2width/2+Fa:-l.bx-Fa):z==="right"&&v!=="end"&&(h.attr("text-anchor","end"),B=D?l.bx/2-l.tx2width/2-Fa:l.bx+Fa)),h.call(Kl.positionText,a(B),s(q)),l.tx2width&&(f.select("text.name").call(Kl.positionText,a(_.text2ShiftX+_.alignShift*Fa+S),s(C+l.ty0-l.by/2+Fa)),f.select("rect").call(zf.setRect,a(_.text2ShiftX+(_.alignShift-1)*l.tx2width/2+S),s(C-l.by/2-1),a(l.tx2width),s(l.by+2)))})}function rae(e,t){var r=e.index,i=e.trace||{},a=e.cd[0],s=e.cd[r]||{};function l(T){return T||Tc(T)&&T===0}var f=Array.isArray(r)?function(T,S){var C=hn.castOption(a,r,T);return l(C)?C:hn.extractOption({},i,"",S)}:function(T,S){return hn.extractOption(s,i,T,S)};function h(T,S,C){var D=f(S,C);l(D)&&(e[T]=D)}if(h("hoverinfo","hi","hoverinfo"),h("bgcolor","hbg","hoverlabel.bgcolor"),h("borderColor","hbc","hoverlabel.bordercolor"),h("fontFamily","htf","hoverlabel.font.family"),h("fontSize","hts","hoverlabel.font.size"),h("fontColor","htc","hoverlabel.font.color"),h("fontWeight","htw","hoverlabel.font.weight"),h("fontStyle","hty","hoverlabel.font.style"),h("fontVariant","htv","hoverlabel.font.variant"),h("nameLength","hnl","hoverlabel.namelength"),h("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&i.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=hn.constrain(e.x0,0,e.xa._length),e.x1=hn.constrain(e.x1,0,e.xa._length),e.y0=hn.constrain(e.y0,0,e.ya._length),e.y1=hn.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:If.hoverLabelText(e.xa,e.xLabelVal,i.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:If.hoverLabelText(e.ya,e.yLabelVal,i.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var v=If.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+v+" / -"+If.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+v,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var m=If.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+m+" / -"+If.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+m,t==="y"&&(e.distance+=1)}var _=e.hoverinfo||e.trace.hoverinfo;return _&&_!=="all"&&(_=Array.isArray(_)?_:_.split("+"),_.indexOf("x")===-1&&(e.xLabel=void 0),_.indexOf("y")===-1&&(e.yLabel=void 0),_.indexOf("z")===-1&&(e.zLabel=void 0),_.indexOf("text")===-1&&(e.text=void 0),_.indexOf("name")===-1&&(e.name=void 0)),e}function VD(e,t,r){var i=r.container,a=r.fullLayout,s=a._size,l=r.event,f=!!t.hLinePoint,h=!!t.vLinePoint,v,m;if(i.selectAll(".spikeline").remove(),!!(h||f)){var _=ro.combine(a.plot_bgcolor,a.paper_bgcolor);if(f){var T=t.hLinePoint,S,C;v=T&&T.xa,m=T&&T.ya;var D=m.spikesnap;D==="cursor"?(S=l.pointerX,C=l.pointerY):(S=v._offset+T.x,C=m._offset+T.y);var E=ND.readability(T.color,_)<1.5?ro.contrast(_):T.color,I=m.spikemode,B=m.spikethickness,q=m.spikecolor||E,z=If.getPxPosition(e,m),O,H;if(I.indexOf("toaxis")!==-1||I.indexOf("across")!==-1){if(I.indexOf("toaxis")!==-1&&(O=z,H=S),I.indexOf("across")!==-1){var V=m._counterDomainMin,W=m._counterDomainMax;m.anchor==="free"&&(V=Math.min(V,m.position),W=Math.max(W,m.position)),O=s.l+V*s.w,H=s.l+W*s.w}i.insert("line",":first-child").attr({x1:O,x2:H,y1:C,y2:C,"stroke-width":B,stroke:q,"stroke-dasharray":zf.dashStyle(m.spikedash,B)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:O,x2:H,y1:C,y2:C,"stroke-width":B+2,stroke:_}).classed("spikeline",!0).classed("crisp",!0)}I.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:z+(m.side!=="right"?B:-B),cy:C,r:B,fill:q}).classed("spikeline",!0)}if(h){var J=t.vLinePoint,te,ne;v=J&&J.xa,m=J&&J.ya;var oe=v.spikesnap;oe==="cursor"?(te=l.pointerX,ne=l.pointerY):(te=v._offset+J.x,ne=m._offset+J.y);var fe=ND.readability(J.color,_)<1.5?ro.contrast(_):J.color,de=v.spikemode,Me=v.spikethickness,Se=v.spikecolor||fe,Ae=If.getPxPosition(e,v),we,Te;if(de.indexOf("toaxis")!==-1||de.indexOf("across")!==-1){if(de.indexOf("toaxis")!==-1&&(we=Ae,Te=ne),de.indexOf("across")!==-1){var Ce=v._counterDomainMin,Le=v._counterDomainMax;v.anchor==="free"&&(Ce=Math.min(Ce,v.position),Le=Math.max(Le,v.position)),we=s.t+(1-Le)*s.h,Te=s.t+(1-Ce)*s.h}i.insert("line",":first-child").attr({x1:te,x2:te,y1:we,y2:Te,"stroke-width":Me,stroke:Se,"stroke-dasharray":zf.dashStyle(v.spikedash,Me)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:te,x2:te,y1:we,y2:Te,"stroke-width":Me+2,stroke:_}).classed("spikeline",!0).classed("crisp",!0)}de.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:te,cy:Ae-(v.side!=="top"?Me:-Me),r:Me,fill:Se}).classed("spikeline",!0)}}}function aae(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var i=r.length-1;i>=0;i--){var a=r[i],s=e._hoverdata[i];if(a.curveNumber!==s.curveNumber||String(a.pointNumber)!==String(s.pointNumber)||String(a.pointNumbers)!==String(s.pointNumbers))return!0}return!1}function HD(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function GD(e,t){return Kl.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function iae(e,t){for(var r=t.charAt(0),i=[],a=[],s=[],l=0;l{"use strict";var nae=Bt(),oae=Oa(),sae=bc().isUnifiedHover;$D.exports=function(t,r,i,a){a=a||{};var s=r.legend;function l(f){a.font[f]||(a.font[f]=s?r.legend.font[f]:r.font[f])}r&&sae(r.hovermode)&&(a.font||(a.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),s?(a.bgcolor||(a.bgcolor=oae.combine(r.legend.bgcolor,r.paper_bgcolor)),a.bordercolor||(a.bordercolor=r.legend.bordercolor)):a.bgcolor||(a.bgcolor=r.paper_bgcolor)),i("hoverlabel.bgcolor",a.bgcolor),i("hoverlabel.bordercolor",a.bordercolor),i("hoverlabel.namelength",a.namelength),i("hoverlabel.showarrow",a.showarrow),nae.coerceFont(i,"hoverlabel.font",a.font),i("hoverlabel.align",a.align)}});var tP=me((F1e,eP)=>{"use strict";var lae=Bt(),uae=P2(),fae=f0();eP.exports=function(t,r){function i(a,s){return lae.coerce(t,r,fae,a,s)}uae(t,r,i)}});var iP=me((q1e,aP)=>{"use strict";var rP=Bt(),cae=t_(),hae=P2();aP.exports=function(t,r,i,a){function s(f,h){return rP.coerce(t,r,cae,f,h)}var l=rP.extendFlat({},a.hoverlabel);r.hovertemplate&&(l.namelength=-1),hae(t,r,s,l)}});var y4=me((N1e,nP)=>{"use strict";var vae=Bt(),dae=f0();nP.exports=function(t,r){function i(a,s){return r[a]!==void 0?r[a]:vae.coerce(t,r,dae,a,s)}return i("clickmode"),i("hoversubplots"),i("hovermode")}});var lP=me((B1e,sP)=>{"use strict";var oP=Bt(),pae=f0(),mae=y4(),yae=P2();sP.exports=function(t,r){function i(m,_){return oP.coerce(t,r,pae,m,_)}var a=mae(t,r);a&&(i("hoverdistance"),i("spikedistance"));var s=i("dragmode");s==="select"&&i("selectdirection");var l=r._has("mapbox"),f=r._has("map"),h=r._has("geo"),v=r._basePlotModules.length;r.dragmode==="zoom"&&((l||f||h)&&v===1||(l||f)&&h&&v===2)&&(r.dragmode="pan"),yae(t,r,i),oP.coerceFont(i,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var cP=me((O1e,fP)=>{"use strict";var g4=Bt(),uP=la();fP.exports=function(t){var r=t.calcdata,i=t._fullLayout;function a(v){return function(m){return g4.coerceHoverinfo({hoverinfo:m},{_module:v._module},i)}}for(var s=0;s{"use strict";var _ae=la(),xae=m4().hover;hP.exports=function(t,r,i){var a=_ae.getComponentMethod("annotations","onClick")(t,t._hoverdata);i!==void 0&&xae(t,r,i,!0);function s(){t.emit("plotly_click",{points:t._hoverdata,event:r})}t._hoverdata&&r&&r.target&&(a&&a.then?a.then(s):s(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var Rf=me((V1e,mP)=>{"use strict";var bae=ja(),z2=Bt(),wae=jl(),og=bc(),dP=f0(),pP=m4();mP.exports={moduleType:"component",name:"fx",constants:ky(),schema:{layout:dP},attributes:t_(),layoutAttributes:dP,supplyLayoutGlobalDefaults:tP(),supplyDefaults:iP(),supplyLayoutDefaults:lP(),calc:cP(),getDistanceFunction:og.getDistanceFunction,getClosest:og.getClosest,inbox:og.inbox,quadrature:og.quadrature,appendArrayPointValue:og.appendArrayPointValue,castHoverOption:Aae,castHoverinfo:Mae,hover:pP.hover,unhover:wae.unhover,loneHover:pP.loneHover,loneUnhover:Tae,click:vP()};function Tae(e){var t=z2.isD3Selection(e)?e:bae.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function Aae(e,t,r){return z2.castOption(e,t,"hoverlabel."+r)}function Mae(e,t,r){function i(a){return z2.coerceHoverinfo({hoverinfo:a},{_module:e._module},t)}return z2.castOption(e,r,"hoverinfo",i)}});var kd=me(Ac=>{"use strict";Ac.selectMode=function(e){return e==="lasso"||e==="select"};Ac.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ac.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Ac.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ac.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Ac.selectingOrDrawing=function(e){return Ac.freeMode(e)||Ac.rectMode(e)}});var I2=me((G1e,yP)=>{"use strict";yP.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(i){i.regl&&i.regl.clear({color:!0,depth:!0})})}});var R2=me((Z1e,gP)=>{"use strict";gP.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var q2=me((Y1e,_P)=>{"use strict";var F2=32;_P.exports={CIRCLE_SIDES:F2,i000:0,i090:F2/4,i180:F2/2,i270:F2/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var N2=me((W1e,bP)=>{"use strict";var Sae=Bt().strTranslate;function xP(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function kae(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function Cae(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return xP(e,r[t])}}function Eae(e){return Sae(e.xaxis._offset,e.yaxis._offset)}bP.exports={p2r:xP,r2p:kae,axValue:Cae,getTransform:Eae}});var Uh=me(Mc=>{"use strict";var Lae=o5(),AP=q2(),Z0=AP.CIRCLE_SIDES,_4=AP.SQRT2,MP=N2(),wP=MP.p2r,TP=MP.r2p,Dae=[0,3,4,5,6,1,2],Pae=[0,3,4,1,2];Mc.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",i=0;i0&&h{"use strict";var SP=Xn(),DP=kd(),zae=DP.drawMode,Iae=DP.openMode,Y0=q2(),kP=Y0.i000,CP=Y0.i090,EP=Y0.i180,LP=Y0.i270,Rae=Y0.cos45,Fae=Y0.sin45,PP=N2(),O2=PP.p2r,Vh=PP.r2p,qae=Ph(),Nae=qae.clearOutline,U2=Uh(),Bae=U2.readPaths,Oae=U2.writePaths,Uae=U2.ellipseOver,Vae=U2.fixDatesForPaths;function Hae(e,t){if(e.length){var r=e[0][0];if(r){var i=t.gd,a=t.isActiveShape,s=t.dragmode,l=(i.layout||{}).shapes||[];if(!zae(s)&&a!==void 0){var f=i._fullLayout._activeShapeIndex;if(f{"use strict";var Gae=kd(),Zae=Gae.selectMode,Yae=Ph(),Wae=Yae.clearOutline,x4=Uh(),Xae=x4.readPaths,jae=x4.writePaths,Jae=x4.fixDatesForPaths;RP.exports=function(t,r){if(t.length){var i=t[0][0];if(i){var a=i.getAttribute("d"),s=r.gd,l=s._fullLayout.newselection,f=r.plotinfo,h=f.xaxis,v=f.yaxis,m=r.isActiveSelection,_=r.dragmode,T=(s.layout||{}).selections||[];if(!Zae(_)&&m!==void 0){var S=s._fullLayout._activeSelectionIndex;if(S{"use strict";FP.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var Hh=me(ho=>{"use strict";var Cd=lg(),qP=Bt(),H2=Xi();ho.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};ho.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};ho.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};ho.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};ho.extractPathCoords=function(e,t,r){var i=[],a=e.match(Cd.segmentRE);return a.forEach(function(s){var l=t[s.charAt(0)].drawn;if(l!==void 0){var f=s.substr(1).match(Cd.paramRE);if(!(!f||f.lengthS&&(D="X"),D});return v>S&&(C=C.replace(/[\s,]*X.*/,""),qP.log("Ignoring extra params in segment "+h)),m+C})}function ug(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var T4=me(($1e,UP)=>{"use strict";var Qae=Bt(),W0=Xi(),NP=co(),BP=bi(),$ae=Uh().readPaths,w4=Hh(),eie=w4.getPathString,OP=f_(),tie=ts().FROM_TL;UP.exports=function(t,r,i,a){if(a.selectAll(".shape-label").remove(),!!(i.label.text||i.label.texttemplate)){var s;if(i.label.texttemplate){var l={};if(i.type!=="path"){var f=W0.getFromId(t,i.xref),h=W0.getFromId(t,i.yref);for(var v in OP){var m=OP[v](i,f,h);m!==void 0&&(l[v]=m)}}s=Qae.texttemplateStringForShapes(i.label.texttemplate,{},t._fullLayout._d3locale,l)}else s=i.label.text;var _={"data-index":r},T=i.label.font,S={"data-notex":1},C=a.append("g").attr(_).classed("shape-label",!0),D=C.append("text").attr(S).classed("shape-label-text",!0).text(s),E,I,B,q;if(i.path){var z=eie(t,i),O=$ae(z,t);E=1/0,B=1/0,I=-1/0,q=-1/0;for(var H=0;H=e?a=t-i:a=i-t,-180/Math.PI*Math.atan2(a,s)}function aie(e,t,r,i,a,s,l){var f=a.label.textposition,h=a.label.textangle,v=a.label.padding,m=a.type,_=Math.PI/180*s,T=Math.sin(_),S=Math.cos(_),C=a.label.xanchor,D=a.label.yanchor,E,I,B,q;if(m==="line"){f==="start"?(E=e,I=t):f==="end"?(E=r,I=i):(E=(e+r)/2,I=(t+i)/2),C==="auto"&&(f==="start"?h==="auto"?r>e?C="left":re?C="right":re?C="right":re?C="left":r{"use strict";var iie=Bt(),nie=iie.strTranslate,VP=jl(),ZP=kd(),oie=ZP.drawMode,YP=ZP.selectMode,WP=la(),HP=Oa(),Z2=q2(),sie=Z2.i000,lie=Z2.i090,uie=Z2.i180,fie=Z2.i270,cie=Ph(),XP=cie.clearOutlineControllers,M4=Uh(),G2=M4.pointsOnRectangle,A4=M4.pointsOnEllipse,hie=M4.writePaths,vie=V2().newShapes,die=V2().createShapeObj,pie=b4(),mie=T4();jP.exports=function e(t,r,i,a){a||(a=0);var s=i.gd;function l(){e(t,r,i,a++),(A4(t[0])||i.hasText)&&f({redrawing:!0})}function f(Ae){var we={};i.isActiveShape!==void 0&&(i.isActiveShape=!1,we=vie(r,i)),i.isActiveSelection!==void 0&&(i.isActiveSelection=!1,we=pie(r,i),s._fullLayout._reselect=!0),Object.keys(we).length&&WP.call((Ae||{}).redrawing?"relayout":"_guiRelayout",s,we)}var h=s._fullLayout,v=h._zoomlayer,m=i.dragmode,_=oie(m),T=YP(m);(_||T)&&(s._fullLayout._outlining=!0),XP(s),r.attr("d",hie(t));var S,C,D,E,I;if(!a&&(i.isActiveShape||i.isActiveSelection)){I=yie([],t);var B=v.append("g").attr("class","outline-controllers");te(B),Se()}if(_&&i.hasText){var q=v.select(".label-temp"),z=die(r,i,i.dragmode);mie(s,"label-temp",z,q)}function O(Ae){D=+Ae.srcElement.getAttribute("data-i"),E=+Ae.srcElement.getAttribute("data-j"),S[D][E].moveFn=H}function H(Ae,we){if(t.length){var Te=I[D][E][1],Ce=I[D][E][2],Le=t[D],$e=Le.length;if(G2(Le)){var ot=Ae,it=we;if(i.isActiveSelection){var bt=GP(Le,E);bt[1]===Le[E][1]?it=0:ot=0}for(var We=0;We<$e;We++)if(We!==E){var Et=Le[We];Et[1]===Le[E][1]&&(Et[1]=Te+ot),Et[2]===Le[E][2]&&(Et[2]=Ce+it)}if(Le[E][1]=Te+ot,Le[E][2]=Ce+it,!G2(Le))for(var nt=0;nt<$e;nt++)for(var vt=0;vt1&&!(Ae.length===2&&Ae[1][0]==="Z")&&(E===0&&(Ae[0][0]="M"),t[D]=Ae,l(),f())}}function J(Ae,we){if(Ae===2){D=+we.srcElement.getAttribute("data-i"),E=+we.srcElement.getAttribute("data-j");var Te=t[D];!G2(Te)&&!A4(Te)&&W()}}function te(Ae){S=[];for(var we=0;we{"use strict";var _ie=ja(),tz=la(),JP=Bt(),X0=Xi(),xie=Uh().readPaths,bie=Y2(),X2=T4(),rz=Ph().clearOutlineControllers,S4=Oa(),C4=bi(),wie=Ri().arrayEditor,KP=jl(),QP=Oh(),Ed=lg(),Os=Hh(),k4=Os.getPathString;nz.exports={draw:E4,drawOne:az,eraseActiveShape:Mie,drawLabel:X2};function E4(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var i=t._plots[r].shapelayer;i&&(i.selectAll("path").remove(),i.selectAll("text").remove())}for(var a=0;al&&Gt>f&&!Lt.shiftKey?KP.getCursor(Ct/It,1-Mt/Gt):"move";QP(t,Ut),Et=Ut.split("-")[0]}}function pt(Lt){W2(e)||(h&&(I=Le(r.xanchor)),v&&(B=$e(r.yanchor)),r.type==="path"?ne=r.path:(S=h?r.x0:Le(r.x0),C=v?r.y0:$e(r.y0),D=h?r.x1:Le(r.x1),E=v?r.y1:$e(r.y1)),SE?(q=C,V="y0",z=E,W="y1"):(q=E,V="y1",z=C,W="y0"),xt(Lt),yt(a,r),Ft(t,r,e),We.moveFn=Et==="move"?pe:at,We.altKey=Lt.altKey)}function ve(){W2(e)||(QP(t),Xe(a),iz(t,e,r),tz.call("_guiRelayout",e,s.getUpdateObj()))}function ze(){W2(e)||Xe(a)}function pe(Lt,Tt){if(r.type==="path"){var It=function(Mt){return Mt},Gt=It,Ct=It;h?T("xanchor",r.xanchor=ot(I+Lt)):(Gt=function(Ut){return ot(Le(Ut)+Lt)},fe&&fe.type==="date"&&(Gt=Os.encodeDate(Gt))),v?T("yanchor",r.yanchor=it(B+Tt)):(Ct=function(Ut){return it($e(Ut)+Tt)},Me&&Me.type==="date"&&(Ct=Os.encodeDate(Ct))),T("path",r.path=$P(ne,Gt,Ct))}else h?T("xanchor",r.xanchor=ot(I+Lt)):(T("x0",r.x0=ot(S+Lt)),T("x1",r.x1=ot(D+Lt))),v?T("yanchor",r.yanchor=it(B+Tt)):(T("y0",r.y0=it(C+Tt)),T("y1",r.y1=it(E+Tt)));t.attr("d",k4(e,r)),yt(a,r),X2(e,i,r,oe)}function at(Lt,Tt){if(_){var It=function(tr){return tr},Gt=It,Ct=It;h?T("xanchor",r.xanchor=ot(I+Lt)):(Gt=function(ar){return ot(Le(ar)+Lt)},fe&&fe.type==="date"&&(Gt=Os.encodeDate(Gt))),v?T("yanchor",r.yanchor=it(B+Tt)):(Ct=function(ar){return it($e(ar)+Tt)},Me&&Me.type==="date"&&(Ct=Os.encodeDate(Ct))),T("path",r.path=$P(ne,Gt,Ct))}else if(m){if(Et==="resize-over-start-point"){var Mt=S+Lt,Ut=v?C-Tt:C+Tt;T("x0",r.x0=h?Mt:ot(Mt)),T("y0",r.y0=v?Ut:it(Ut))}else if(Et==="resize-over-end-point"){var Ot=D+Lt,Be=v?E-Tt:E+Tt;T("x1",r.x1=h?Ot:ot(Ot)),T("y1",r.y1=v?Be:it(Be))}}else{var ft=function(tr){return Et.indexOf(tr)!==-1},or=ft("n"),Cr=ft("s"),Sr=ft("w"),Oe=ft("e"),gt=or?q+Tt:q,qt=Cr?z+Tt:z,Qt=Sr?O+Lt:O,Vt=Oe?H+Lt:H;v&&(or&&(gt=q-Tt),Cr&&(qt=z-Tt)),(!v&&qt-gt>f||v&>-qt>f)&&(T(V,r[V]=v?gt:it(gt)),T(W,r[W]=v?qt:it(qt))),Vt-Qt>l&&(T(J,r[J]=h?Qt:ot(Qt)),T(te,r[te]=h?Vt:ot(Vt)))}t.attr("d",k4(e,r)),yt(a,r),X2(e,i,r,oe)}function yt(Lt,Tt){(h||v)&&It();function It(){var Gt=Tt.type!=="path",Ct=Lt.selectAll(".visual-cue").data([0]),Mt=1;Ct.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Mt}).classed("visual-cue",!0);var Ut=Le(h?Tt.xanchor:JP.midRange(Gt?[Tt.x0,Tt.x1]:Os.extractPathCoords(Tt.path,Ed.paramIsX))),Ot=$e(v?Tt.yanchor:JP.midRange(Gt?[Tt.y0,Tt.y1]:Os.extractPathCoords(Tt.path,Ed.paramIsY)));if(Ut=Os.roundPositionForSharpStrokeRendering(Ut,Mt),Ot=Os.roundPositionForSharpStrokeRendering(Ot,Mt),h&&v){var Be="M"+(Ut-1-Mt)+","+(Ot-1-Mt)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ct.attr("d",Be)}else if(h){var ft="M"+(Ut-1-Mt)+","+(Ot-9-Mt)+"v18 h2 v-18 Z";Ct.attr("d",ft)}else{var or="M"+(Ut-9-Mt)+","+(Ot-1-Mt)+"h18 v2 h-18 Z";Ct.attr("d",or)}}}function Xe(Lt){Lt.selectAll(".visual-cue").remove()}function Ft(Lt,Tt,It){var Gt=Tt.xref,Ct=Tt.yref,Mt=X0.getFromId(It,Gt),Ut=X0.getFromId(It,Ct),Ot="";Gt!=="paper"&&!Mt.autorange&&(Ot+=Gt),Ct!=="paper"&&!Ut.autorange&&(Ot+=Ct),C4.setClipUrl(Lt,Ot?"clip"+It._fullLayout._uid+Ot:null,It)}}function $P(e,t,r){return e.replace(Ed.segmentRE,function(i){var a=0,s=i.charAt(0),l=Ed.paramIsX[s],f=Ed.paramIsY[s],h=Ed.numParams[s],v=i.substr(1).replace(Ed.paramRE,function(m){return a>=h||(l[a]?m=t(m):f[a]&&(m=r(m)),a++),m});return s+v})}function Aie(e,t){if(j2(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeShapeIndex){ez(e);return}e._fullLayout._activeShapeIndex=i,e._fullLayout._deactivateShape=ez,E4(e)}}}function ez(e){if(j2(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(rz(e),delete e._fullLayout._activeShapeIndex,E4(e))}}function Mie(e){if(j2(e)){rz(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var Ql=la(),oz=eo(),sz=Xn(),Ja=R2(),Sie=J2().eraseActiveShape,K2=Bt(),za=K2._,Ka=dz.exports={};Ka.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?za(e,"Download plot as a PNG"):za(e,"Download plot")},icon:Ja.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};K2.notifier(za(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(i){i in t&&(r[i]=t[i])}),Ql.call("downloadImage",e,r).then(function(i){K2.notifier(za(e,"Snapshot succeeded")+" - "+i,"long")}).catch(function(){K2.notifier(za(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Ka.sendDataToCloud={name:"sendDataToCloud",title:function(e){return za(e,"Edit in Chart Studio")},icon:Ja.disk,click:function(e){oz.sendDataToCloud(e)}};Ka.editInChartStudio={name:"editInChartStudio",title:function(e){return za(e,"Edit in Chart Studio")},icon:Ja.pencil,click:function(e){oz.sendDataToCloud(e)}};Ka.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return za(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ja.zoombox,click:ns};Ka.pan2d={name:"pan2d",_cat:"pan",title:function(e){return za(e,"Pan")},attr:"dragmode",val:"pan",icon:Ja.pan,click:ns};Ka.select2d={name:"select2d",_cat:"select",title:function(e){return za(e,"Box Select")},attr:"dragmode",val:"select",icon:Ja.selectbox,click:ns};Ka.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return za(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ja.lasso,click:ns};Ka.drawclosedpath={name:"drawclosedpath",title:function(e){return za(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ja.drawclosedpath,click:ns};Ka.drawopenpath={name:"drawopenpath",title:function(e){return za(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ja.drawopenpath,click:ns};Ka.drawline={name:"drawline",title:function(e){return za(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ja.drawline,click:ns};Ka.drawrect={name:"drawrect",title:function(e){return za(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ja.drawrect,click:ns};Ka.drawcircle={name:"drawcircle",title:function(e){return za(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ja.drawcircle,click:ns};Ka.eraseshape={name:"eraseshape",title:function(e){return za(e,"Erase active shape")},icon:Ja.eraseshape,click:Sie};Ka.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return za(e,"Zoom in")},attr:"zoom",val:"in",icon:Ja.zoom_plus,click:ns};Ka.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return za(e,"Zoom out")},attr:"zoom",val:"out",icon:Ja.zoom_minus,click:ns};Ka.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return za(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ja.autoscale,click:ns};Ka.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return za(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ja.home,click:ns};Ka.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return za(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Ja.tooltip_basic,gravity:"ne",click:ns};Ka.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return za(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Ja.tooltip_compare,gravity:"ne",click:ns};function ns(e,t){var r=t.currentTarget,i=r.getAttribute("data-attr"),a=r.getAttribute("data-val")||!0,s=e._fullLayout,l={},f=sz.list(e,null,!0),h=s._cartesianSpikesEnabled,v,m;if(i==="zoom"){var _=a==="in"?.5:2,T=(1+_)/2,S=(1-_)/2,C,D;for(m=0;m{"use strict";var pz=P4(),Eie=Object.keys(pz),mz=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],yz=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(mz),J0=[],Lie=function(e){if(yz.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();J0.indexOf(t)===-1&&J0.push(t),J0.indexOf(r)===-1&&J0.push(r)}};Eie.forEach(function(e){Lie(pz[e])});J0.sort();gz.exports={DRAW_MODES:mz,backButtons:yz,foreButtons:J0}});var I4=me((n_e,_z)=>{"use strict";var i_e=z4();_z.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var bz=me((o_e,xz)=>{"use strict";var Die=Bt(),fg=Oa(),Pie=Ri(),zie=I4();xz.exports=function(t,r){var i=t.modebar||{},a=Pie.newContainer(r,"modebar");function s(f,h){return Die.coerce(i,a,zie,f,h)}s("orientation"),s("bgcolor",fg.addOpacity(r.paper_bgcolor,.5));var l=fg.contrast(fg.rgb(r.modebar.bgcolor));s("color",fg.addOpacity(l,.3)),s("activecolor",fg.addOpacity(l,.7)),s("uirevision",r.uirevision),s("add"),s("remove")}});var Mz=me((s_e,Az)=>{"use strict";var R4=ja(),Iie=Da(),$2=Bt(),wz=R2(),Rie=G1().version,Fie=new DOMParser;function Tz(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Ff=Tz.prototype;Ff.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,i=this.graphInfo._fullLayout,a="modebar-"+i._uid;this.element.setAttribute("id",a),this.element.setAttribute("role","toolbar"),this._uid=a,this.element.className="modebar modebar--custom",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),i.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var s=i.modebar,l="#"+a+" .modebar-group";document.querySelectorAll(l).forEach(function(_){_.style.backgroundColor=s.bgcolor});var f=!this.hasButtons(t),h=this.hasLogo!==r.displaylogo,v=this.locale!==r.locale;if(this.locale=r.locale,(f||h||v)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var m=this.getLogo();r.watermark&&(m.className=m.className+" watermark"),i.modebar.orientation==="v"?this.element.insertBefore(m,this.element.childNodes[0]):this.element.appendChild(m),this.hasLogo=!0}this.updateActiveButton(),$2.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+s.activecolor,"fill: "+s.color,this.element)};Ff.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var i=t.createGroup();r.forEach(function(a){var s=a.name;if(!s)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(s)!==-1)throw new Error("button name '"+s+"' is taken");t.buttonsNames.push(s);var l=t.createButton(a);t.buttonElements.push(l),i.appendChild(l)}),t.element.appendChild(i)})};Ff.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};Ff.createButton=function(e){var t=this,r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("rel","tooltip"),r.className="modebar-btn";var i=e.title;i===void 0?i=e.name:typeof i=="function"&&(i=i(this.graphInfo)),(i||i===0)&&(r.setAttribute("data-title",i),r.setAttribute("aria-label",i)),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),r.setAttribute("data-val",a));var s=e.click;if(typeof s!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(f){e.click(t.graphInfo,f),t.updateActiveButton(f.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&R4.select(r).classed("active",!0);var l=e.icon;return typeof l=="function"?r.appendChild(l()):r.appendChild(this.createIcon(l||wz.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};Ff.createIcon=function(e){var t=Iie(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",i;if(e.path){i=document.createElementNS(r,"svg"),i.setAttribute("viewBox",[0,0,e.width,t].join(" ")),i.setAttribute("class","icon");var a=document.createElementNS(r,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),i.appendChild(a)}if(e.svg){var s=Fie.parseFromString(e.svg,"application/xml");i=s.childNodes[0]}return i.setAttribute("height","1em"),i.setAttribute("width","1em"),i};Ff.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(i){var a=i.getAttribute("data-val")||!0,s=i.getAttribute("data-attr"),l=i.getAttribute("data-toggle")==="true",f=R4.select(i),h=function(_,T){var S=t.modebar,C=_.querySelector(".icon path");C&&(T||_.matches(":hover")?C.style.fill=S.activecolor:C.style.fill=S.color)};if(l){if(s===r){var v=!f.classed("active");f.classed("active",v),h(i,v)}}else{var m=s===null?s:$2.nestedProperty(t,s).get();f.classed("active",m===a),h(i,m===a)}})};Ff.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var Bie=Xn(),Sz=rs(),F4=la(),Oie=bc().isUnifiedHover,Uie=Mz(),ex=P4(),Vie=z4().DRAW_MODES,Hie=Bt().extendDeep;kz.exports=function(t){var r=t._fullLayout,i=t._context,a=r._modeBar;if(!i.displayModeBar&&!i.watermark){a&&(a.destroy(),delete r._modeBar);return}if(!Array.isArray(i.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(i.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var s=i.modeBarButtons,l;Array.isArray(s)&&s.length?l=jie(s):!i.displayModeBar&&i.watermark?l=[]:l=Gie(t),a?a.update(t,l):r._modeBar=Uie(t,l)};function Gie(e){var t=e._fullLayout,r=e._fullData,i=e._context;function a(we,Te){if(typeof Te=="string"){if(Te.toLowerCase()===we.toLowerCase())return!0}else{var Ce=Te.name,Le=Te._cat||Te.name;if(Ce===we||Le===we.toLowerCase())return!0}return!1}var s=t.modebar.add;typeof s=="string"&&(s=[s]);var l=t.modebar.remove;typeof l=="string"&&(l=[l]);var f=i.modeBarButtonsToAdd.concat(s.filter(function(we){for(var Te=0;Te1?(te=["toggleHover"],ne=["resetViews"]):_?(J=["zoomInGeo","zoomOutGeo"],te=["hoverClosestGeo"],ne=["resetGeo"]):m?(te=["hoverClosest3d"],ne=["resetCameraDefault3d","resetCameraLastSave3d"]):D?(J=["zoomInMapbox","zoomOutMapbox"],te=["toggleHover"],ne=["resetViewMapbox"]):E?(J=["zoomInMap","zoomOutMap"],te=["toggleHover"],ne=["resetViewMap"]):T?te=["hoverClosestPie"]:q?(te=["hoverClosestCartesian","hoverCompareCartesian"],ne=["resetViewSankey"]):te=["toggleHover"],v&&te.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Wie(r)||O)&&(te=[]),v&&!z&&(J=["zoomIn2d","zoomOut2d","autoScale2d"],ne[0]!=="resetViews"&&(ne=["resetScale2d"])),m?oe=["zoom3d","pan3d","orbitRotation","tableRotation"]:v&&!z||C?oe=["zoom2d","pan2d"]:D||E||_?oe=["pan2d"]:I&&(oe=["zoom2d"]),Yie(r)&&oe.push("select2d","lasso2d");var fe=[],de=function(we){fe.indexOf(we)===-1&&te.indexOf(we)!==-1&&fe.push(we)};if(Array.isArray(f)){for(var Me=[],Se=0;Se{"use strict";Ez.exports={moduleType:"component",name:"modebar",layoutAttributes:I4(),supplyLayoutDefaults:bz(),manage:Cz()}});var N4=me((f_e,Lz)=>{"use strict";var Jie=ts().FROM_BL;Lz.exports=function(t,r,i){i===void 0&&(i=Jie[t.constraintoward||"center"]);var a=[t.r2l(t.range[0]),t.r2l(t.range[1])],s=a[0]+(a[1]-a[0])*i;t.range=t._input.range=[t.l2r(s+(a[0]-s)*r),t.l2r(s+(a[1]-s)*r)],t.setScale()}});var hg=me(cg=>{"use strict";var Ld=Bt(),B4=Ky(),Nu=Xn().id2name,Kie=Ru(),Dz=N4(),Qie=i2(),$ie=Zi().ALMOST_EQUAL,ene=ts().FROM_BL;cg.handleDefaults=function(e,t,r){var i=r.axIds,a=r.axHasImage,s=t._axisConstraintGroups=[],l=t._axisMatchGroups=[],f,h,v,m,_,T,S,C;for(f=0;fs?r.substr(s):i.substr(a))+l}function rne(e,t){for(var r=t._size,i=r.h/r.w,a={},s=Object.keys(e),l=0;l$ie*C&&!B)){for(s=0;soe&&Cete&&(te=Ce);var $e=(te-J)/(2*ne);_/=$e,J=h.l2r(J),te=h.l2r(te),h.range=h._input.range=H{"use strict";var rx=ja(),os=la(),cl=eo(),$l=Bt(),V4=co(),H4=I2(),vg=Oa(),K0=bi(),Rz=jy(),Oz=q4(),dg=Xi(),Sc=ts(),Uz=hg(),ane=Uz.enforce,ine=Uz.clean,Fz=Ky().doAutoRange,Vz="start",nne="middle",Hz="end",one=Ao().zindexSeparator;ao.layoutStyles=function(e){return $l.syncOrAsync([cl.doAutoMargin,lne],e)};function sne(e,t,r){for(var i=0;i=e[1]||a[1]<=e[0])&&s[0]t[0])return!0}return!1}function lne(e){var t=e._fullLayout,r=t._size,i=r.p,a=dg.list(e,"",!0),s,l,f,h,v,m;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(K0.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),ao.drawMainTitle(e),Oz.manage(e),!t._has("cartesian"))return cl.previousPromises(e);function _(pt,ve,ze){var pe=pt._lw/2;if(pt._id.charAt(0)==="x"){if(ve){if(ze==="top")return ve._offset-i-pe}else return r.t+r.h*(1-(pt.position||0))+pe%1;return ve._offset+ve._length+i+pe}if(ve){if(ze==="right")return ve._offset+ve._length+i+pe}else return r.l+r.w*(pt.position||0)+pe%1;return ve._offset-i-pe}for(s=0;s0){hne(e,s,v,h),f.attr({x:l,y:s,"text-anchor":i,dy:Bz(t.yanchor)}).call(V4.positionText,l,s);var m=(t.text.match(V4.BR_TAG_ALL)||[]).length;if(m){var _=Sc.LINE_SPACING*m+Sc.MID_SHIFT;t.y===0&&(_=-_),f.selectAll(".line").each(function(){var E=+this.getAttribute("dy").slice(0,-2)-_+"em";this.setAttribute("dy",E)})}var T=rx.selectAll(".gtitle-subtitle");if(T.node()){var S=f.node().getBBox(),C=S.y+S.height,D=C+Rz.SUBTITLE_PADDING_EM*t.subtitle.font.size;T.attr({x:l,y:D,"text-anchor":i,dy:Bz(t.yanchor)}).call(V4.positionText,l,D)}}}};function une(e,t,r,i,a){var s=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=$l.isTopAnchor(t)?i:i-a,f=r==="b"?s-l:l;return $l.isTopAnchor(t)&&r==="t"||$l.isBottomAnchor(t)&&r==="b"?!1:f.5?"t":"b",l=e._fullLayout.margin[s],f=0;return t.yref==="paper"?f=r+t.pad.t+t.pad.b:t.yref==="container"&&(f=fne(s,i,a,e._fullLayout.height,r)+t.pad.t+t.pad.b),f>l?f:0}function hne(e,t,r,i){var a="title.automargin",s=e._fullLayout.title,l=s.y>.5?"t":"b",f={x:s.x,y:s.y,t:0,b:0},h={};s.yref==="paper"&&une(e,s,l,t,i)?f[l]=r:s.yref==="container"&&(h[l]=r,e._fullLayout._reservedMargin[a]=h),cl.allowAutoMargin(e,a),cl.autoMargin(e,a,f)}function vne(e,t){var r=e.title,i=e._size,a=0;switch(t===Vz?a=r.pad.l:t===Hz&&(a=-r.pad.r),r.xref){case"paper":return i.l+i.w*r.x+a;case"container":default:return e.width*r.x+a}}function dne(e,t){var r=e.title,i=e._size,a=0;if(t==="0em"||!t?a=-r.pad.b:t===Sc.CAP_SHIFT+"em"&&(a=r.pad.t),r.y==="auto")return i.t/2;switch(r.yref){case"paper":return i.t+i.h-i.h*r.y+a;case"container":default:return e.height-e.height*r.y+a}}function Bz(e){return e==="top"?Sc.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Sc.MID_SHIFT+"em"}function pne(e){var t=e.title,r=nne;return $l.isRightAnchor(t)?r=Hz:$l.isLeftAnchor(t)&&(r=Vz),r}function mne(e){var t=e.title,r="0em";return $l.isTopAnchor(t)?r=Sc.CAP_SHIFT+"em":$l.isMiddleAnchor(t)&&(r=Sc.MID_SHIFT+"em"),r}ao.doTraceStyle=function(e){var t=e.calcdata,r=[],i;for(i=0;i{"use strict";var yne=Uh().readPaths,gne=Y2(),Gz=Ph().clearOutlineControllers,G4=Oa(),Zz=bi(),_ne=Ri().arrayEditor,Yz=Hh(),xne=Yz.getPathString;Xz.exports={draw:ix,drawOne:Wz,activateLastSelection:Tne};function ix(e){var t=e._fullLayout;Gz(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var i=t._plots[r].selectionLayer;i&&i.selectAll("path").remove()}for(var a=0;a=0;E--){var I=l.append("path").attr(h).style("opacity",E?.1:v).call(G4.stroke,_).call(G4.fill,m).call(Zz.dashLine,E?"solid":S,E?4+T:T);if(bne(I,e,i),C){var B=_ne(e.layout,"selections",i);I.style({cursor:"move"});var q={element:I.node(),plotinfo:a,gd:e,editHelpers:B,isActiveSelection:!0},z=yne(f,e);gne(z,I,q)}else I.style("pointer-events",E?"all":"none");D[E]=I}var O=D[0],H=D[1];H.node().addEventListener("click",function(){return wne(e,O)})}}function bne(e,t,r){var i=r.xref+r.yref;Zz.setClipUrl(e,"clip"+t._fullLayout._uid+i,t)}function wne(e,t){if(nx(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeSelectionIndex){Z4(e);return}e._fullLayout._activeSelectionIndex=i,e._fullLayout._deactivateSelection=Z4,ix(e)}}}function Tne(e){if(nx(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=Z4,ix(e)}}function Z4(e){if(nx(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(Gz(e),delete e._fullLayout._activeSelectionIndex,ix(e))}}});var Jz=me((d_e,jz)=>{function Ane(){var e,t=0,r=!1;function i(a,s){return e.list.push({type:a,data:s?JSON.parse(JSON.stringify(s)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(a,s){return i("check",{seg1:a,seg2:s})},segmentChop:function(a,s){return i("div_seg",{seg:a,pt:s}),i("chop",{seg:a,pt:s})},statusRemove:function(a){return i("pop_seg",{seg:a})},segmentUpdate:function(a){return i("seg_update",{seg:a})},segmentNew:function(a,s){return i("new_seg",{seg:a,primary:s})},segmentRemove:function(a){return i("rem_seg",{seg:a})},tempStatus:function(a,s,l){return i("temp_status",{seg:a,above:s,below:l})},rewind:function(a){return i("rewind",{seg:a})},status:function(a,s,l){return i("status",{seg:a,above:s,below:l})},vert:function(a){return a===r?e:(r=a,i("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),i("log",{txt:a})},reset:function(){return i("reset")},selected:function(a){return i("selected",{segs:a})},chainStart:function(a){return i("chain_start",{seg:a})},chainRemoveHead:function(a,s){return i("chain_rem_head",{index:a,pt:s})},chainRemoveTail:function(a,s){return i("chain_rem_tail",{index:a,pt:s})},chainNew:function(a,s){return i("chain_new",{pt1:a,pt2:s})},chainMatch:function(a){return i("chain_match",{index:a})},chainClose:function(a){return i("chain_close",{index:a})},chainAddHead:function(a,s){return i("chain_add_head",{index:a,pt:s})},chainAddTail:function(a,s){return i("chain_add_tail",{index:a,pt:s})},chainConnect:function(a,s){return i("chain_con",{index1:a,index2:s})},chainReverse:function(a){return i("chain_rev",{index:a})},chainJoin:function(a,s){return i("chain_join",{index1:a,index2:s})},done:function(){return i("done")}},e}jz.exports=Ane});var Qz=me((p_e,Kz)=>{function Mne(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,i,a){var s=i[0],l=i[1],f=a[0],h=a[1],v=r[0],m=r[1];return(f-s)*(m-l)-(h-l)*(v-s)>=-e},pointBetween:function(r,i,a){var s=r[1]-i[1],l=a[0]-i[0],f=r[0]-i[0],h=a[1]-i[1],v=f*l+s*h;if(v-e)},pointsSameX:function(r,i){return Math.abs(r[0]-i[0])e!=f-s>e&&(l-m)*(s-_)/(f-_)+m-a>e&&(h=!h),l=m,f=_}return h}};return t}Kz.exports=Mne});var eI=me((m_e,$z)=>{var Sne={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var i=e.root,a=e.root.next;a!==null;){if(r(a)){t.prev=a.prev,t.next=a,a.prev.next=t,a.prev=t;return}i=a,a=a.next}i.next=t,t.prev=i,t.next=null},findTransition:function(t){for(var r=e.root,i=e.root.next;i!==null&&!t(i);)r=i,i=i.next;return{before:r===e.root?null:r,after:i,insert:function(a){return a.prev=r,a.next=i,r.next=a,i!==null&&(i.prev=a),a}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};$z.exports=Sne});var rI=me((y_e,tI)=>{var pg=eI();function kne(e,t,r){function i(C,D){return{id:r?r.segmentId():-1,start:C,end:D,myFill:{above:null,below:null},otherFill:null}}function a(C,D,E){return{id:r?r.segmentId():-1,start:C,end:D,myFill:{above:E.myFill.above,below:E.myFill.below},otherFill:null}}var s=pg.create();function l(C,D,E,I,B,q){var z=t.pointsCompare(D,B);return z!==0?z:t.pointsSame(E,q)?0:C!==I?C?1:-1:t.pointAboveOrOnLine(E,I?B:q,I?q:B)?1:-1}function f(C,D){s.insertBefore(C,function(E){var I=l(C.isStart,C.pt,D,E.isStart,E.pt,E.other.pt);return I<0})}function h(C,D){var E=pg.node({isStart:!0,pt:C.start,seg:C,primary:D,other:null,status:null});return f(E,C.end),E}function v(C,D,E){var I=pg.node({isStart:!1,pt:D.end,seg:D,primary:E,other:C,status:null});C.other=I,f(I,C.pt)}function m(C,D){var E=h(C,D);return v(E,C,D),E}function _(C,D){r&&r.segmentChop(C.seg,D),C.other.remove(),C.seg.end=D,C.other.pt=D,f(C.other,C.pt)}function T(C,D){var E=a(D,C.seg.end,C.seg);return _(C,D),m(E,C.primary)}function S(C,D){var E=pg.create();function I(Me,Se){var Ae=Me.seg.start,we=Me.seg.end,Te=Se.seg.start,Ce=Se.seg.end;return t.pointsCollinear(Ae,Te,Ce)?t.pointsCollinear(we,Te,Ce)||t.pointAboveOrOnLine(we,Te,Ce)?1:-1:t.pointAboveOrOnLine(Ae,Te,Ce)?1:-1}function B(Me){return E.findTransition(function(Se){var Ae=I(Me,Se.ev);return Ae>0})}function q(Me,Se){var Ae=Me.seg,we=Se.seg,Te=Ae.start,Ce=Ae.end,Le=we.start,$e=we.end;r&&r.checkIntersection(Ae,we);var ot=t.linesIntersect(Te,Ce,Le,$e);if(ot===!1){if(!t.pointsCollinear(Te,Ce,Le)||t.pointsSame(Te,$e)||t.pointsSame(Ce,Le))return!1;var it=t.pointsSame(Te,Le),bt=t.pointsSame(Ce,$e);if(it&&bt)return Se;var We=!it&&t.pointBetween(Te,Le,$e),Et=!bt&&t.pointBetween(Ce,Le,$e);if(it)return Et?T(Se,Ce):T(Me,$e),Se;We&&(bt||(Et?T(Se,Ce):T(Me,$e)),T(Se,Te))}else ot.alongA===0&&(ot.alongB===-1?T(Me,Le):ot.alongB===0?T(Me,ot.pt):ot.alongB===1&&T(Me,$e)),ot.alongB===0&&(ot.alongA===-1?T(Se,Te):ot.alongA===0?T(Se,ot.pt):ot.alongA===1&&T(Se,Ce));return!1}for(var z=[];!s.isEmpty();){var O=s.getHead();if(r&&r.vert(O.pt[0]),O.isStart){let Me=function(){if(V){var Se=q(O,V);if(Se)return Se}return W?q(O,W):!1};var de=Me;r&&r.segmentNew(O.seg,O.primary);var H=B(O),V=H.before?H.before.ev:null,W=H.after?H.after.ev:null;r&&r.tempStatus(O.seg,V?V.seg:!1,W?W.seg:!1);var J=Me();if(J){if(e){var te;O.seg.myFill.below===null?te=!0:te=O.seg.myFill.above!==O.seg.myFill.below,te&&(J.seg.myFill.above=!J.seg.myFill.above)}else J.seg.otherFill=O.seg.myFill;r&&r.segmentUpdate(J.seg),O.other.remove(),O.remove()}if(s.getHead()!==O){r&&r.rewind(O.seg);continue}if(e){var te;O.seg.myFill.below===null?te=!0:te=O.seg.myFill.above!==O.seg.myFill.below,W?O.seg.myFill.below=W.seg.myFill.above:O.seg.myFill.below=C,te?O.seg.myFill.above=!O.seg.myFill.below:O.seg.myFill.above=O.seg.myFill.below}else if(O.seg.otherFill===null){var ne;W?O.primary===W.primary?ne=W.seg.otherFill.above:ne=W.seg.myFill.above:ne=O.primary?D:C,O.seg.otherFill={above:ne,below:ne}}r&&r.status(O.seg,V?V.seg:!1,W?W.seg:!1),O.other.status=H.insert(pg.node({ev:O}))}else{var oe=O.status;if(oe===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(E.exists(oe.prev)&&E.exists(oe.next)&&q(oe.prev.ev,oe.next.ev),r&&r.statusRemove(oe.ev.seg),oe.remove(),!O.primary){var fe=O.seg.myFill;O.seg.myFill=O.seg.otherFill,O.seg.otherFill=fe}z.push(O.seg)}s.getHead().remove()}return r&&r.done(),z}return e?{addRegion:function(C){for(var D,E=C[C.length-1],I=0;I{function Cne(e,t,r){var i=[],a=[];return e.forEach(function(s){var l=s.start,f=s.end;if(t.pointsSame(l,f)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(s);var h={index:0,matches_head:!1,matches_pt1:!1},v={index:0,matches_head:!1,matches_pt1:!1},m=h;function _(de,Me,Se){return m.index=de,m.matches_head=Me,m.matches_pt1=Se,m===h?(m=v,!1):(m=null,!0)}for(var T=0;T{function mg(e,t,r){var i=[];return e.forEach(function(a){var s=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);t[s]!==0&&i.push({id:r?r.segmentId():-1,start:a.start,end:a.end,myFill:{above:t[s]===1,below:t[s]===2},otherFill:null})}),r&&r.selected(i),i}var Ene={union:function(e,t){return mg(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return mg(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return mg(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return mg(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return mg(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};nI.exports=Ene});var lI=me((x_e,sI)=>{var Lne={toPolygon:function(e,t){function r(s){if(s.length<=0)return e.segments({inverted:!1,regions:[]});function l(v){var m=v.slice(0,v.length-1);return e.segments({inverted:!1,regions:[m]})}for(var f=l(s[0]),h=1;h{var Dne=Jz(),Pne=Qz(),uI=rI(),zne=iI(),yg=oI(),fI=lI(),eu=!1,gg=Pne(),Us;Us={buildLog:function(e){return e===!0?eu=Dne():e===!1&&(eu=!1),eu===!1?!1:eu.list},epsilon:function(e){return gg.epsilon(e)},segments:function(e){var t=uI(!0,gg,eu);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=uI(!1,gg,eu);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:yg.union(e.combined,eu),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:yg.intersect(e.combined,eu),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:yg.difference(e.combined,eu),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:yg.differenceRev(e.combined,eu),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:yg.xor(e.combined,eu),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:zne(e.segments,gg,eu),inverted:e.inverted}},polygonFromGeoJSON:function(e){return fI.toPolygon(Us,e)},polygonToGeoJSON:function(e){return fI.fromPolygon(Us,gg,e)},union:function(e,t){return _g(e,t,Us.selectUnion)},intersect:function(e,t){return _g(e,t,Us.selectIntersect)},difference:function(e,t){return _g(e,t,Us.selectDifference)},differenceRev:function(e,t){return _g(e,t,Us.selectDifferenceRev)},xor:function(e,t){return _g(e,t,Us.selectXor)}};function _g(e,t,r){var i=Us.segments(e),a=Us.segments(t),s=Us.combine(i,a),l=r(s);return Us.polygon(l)}typeof window=="object"&&(window.PolyBool=Us);cI.exports=Us});var dI=me((w_e,vI)=>{vI.exports=function(t,r,i,a){var s=t[0],l=t[1],f=!1;i===void 0&&(i=0),a===void 0&&(a=r.length);for(var h=a-i,v=0,m=h-1;vl!=C>l&&s<(S-_)*(l-T)/(C-T)+_;D&&(f=!f)}return f}});var lx=me((T_e,pI)=>{"use strict";var W4=s_().dot,ox=Zi().BADNUM,sx=pI.exports={};sx.tester=function(t){var r=t.slice(),i=r[0][0],a=i,s=r[0][1],l=s,f;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),f=1;fa||I===ox||Il||D&&v(C))}function _(C,D){var E=C[0],I=C[1];if(E===ox||Ea||I===ox||Il)return!1;var B=r.length,q=r[0][0],z=r[0][1],O=0,H,V,W,J,te;for(H=1;HMath.max(V,q)||I>Math.max(W,z)))if(If||Math.abs(W4(_,v))>a)return!0;return!1};sx.filter=function(t,r){var i=[t[0]],a=0,s=0;function l(h){t.push(h);var v=i.length,m=a;i.splice(s+1);for(var _=m+1;_1){var f=t.pop();l(f)}return{addPt:l,raw:t,filtered:i}}});var yI=me((A_e,mI)=>{"use strict";mI.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var BI=me((M_e,NI)=>{"use strict";var gI=hI(),Ine=dI(),wg=la(),Rne=bi().dashStyle,xg=Oa(),Fne=Rf(),qne=bc().makeEventData,kg=kd(),Nne=kg.freeMode,Bne=kg.rectMode,Tg=kg.drawMode,K4=kg.openMode,Q4=kg.selectMode,_I=Hh(),xI=lg(),MI=Y2(),SI=Ph().clearOutline,kI=Uh(),X4=kI.handleEllipse,One=kI.readPaths,Une=V2().newShapes,Vne=b4(),Hne=Y4().activateLastSelection,fx=Bt(),Gne=fx.sorterAsc,CI=lx(),bg=b_(),tu=Xn().getFromId,Zne=I2(),Yne=ax().redrawReglTraces,cx=yI(),qf=cx.MINSELECT,Wne=CI.filter,$4=CI.tester,e6=N2(),bI=e6.p2r,Xne=e6.axValue,jne=e6.getTransform;function t6(e){return e.subplot!==void 0}function Jne(e,t,r,i,a){var s=!t6(i),l=Nne(a),f=Bne(a),h=K4(a),v=Tg(a),m=Q4(a),_=a==="drawline",T=a==="drawcircle",S=_||T,C=i.gd,D=C._fullLayout,E=m&&D.newselection.mode==="immediate"&&s,I=D._zoomlayer,B=i.element.getBoundingClientRect(),q=i.plotinfo,z=jne(q),O=t-B.left,H=r-B.top;D._calcInverseTransform(C);var V=fx.apply3DTransform(D._invTransform)(O,H);O=V[0],H=V[1];var W=D._invScaleX,J=D._invScaleY,te=O,ne=H,oe="M"+O+","+H,fe=i.xaxes[0],de=i.yaxes[0],Me=fe._length,Se=de._length,Ae=e.altKey&&!(Tg(a)&&h),we,Te,Ce,Le,$e,ot,it;LI(e,C,i),l&&(we=Wne([[O,H]],cx.BENDPX));var bt=I.selectAll("path.select-outline-"+q.id).data([1]),We=v?D.newshape:D.newselection;v&&(i.hasText=We.label.text||We.label.texttemplate);var Et=v&&!h?We.fillcolor:"rgba(0,0,0,0)",nt=We.line.color||(s?xg.contrast(C._fullLayout.plot_bgcolor):"#7f7f7f");bt.enter().append("path").attr("class","select-outline select-outline-"+q.id).style({opacity:v?We.opacity/2:1,"stroke-dasharray":Rne(We.line.dash,We.line.width),"stroke-width":We.line.width+"px","shape-rendering":"crispEdges"}).call(xg.stroke,nt).call(xg.fill,Et).attr("fill-rule","evenodd").classed("cursor-move",!!v).attr("transform",z).attr("d",oe+"Z");var vt=I.append("path").attr("class","zoombox-corners").style({fill:xg.background,stroke:xg.defaultLine,"stroke-width":1}).attr("transform",z).attr("d","M0,0Z");if(v&&i.hasText){var xt=I.select(".label-temp");xt.empty()&&(xt=I.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var pt=D._uid+cx.SELECTID,ve=[],ze=hx(C,i.xaxes,i.yaxes,i.subplot);E&&!e.shiftKey&&(i._clearSubplotSelections=function(){if(s){var at=fe._id,yt=de._id;RI(C,at,yt,ze);for(var Xe=(C.layout||{}).selections||[],Ft=[],Lt=!1,Tt=0;Tt=0){C._fullLayout._deactivateShape(C);return}if(!v){var Xe=D.clickmode;bg.done(pt).then(function(){if(bg.clear(pt),at===2){for(bt.remove(),$e=0;$e-1&&EI(yt,C,i.xaxes,i.yaxes,i.subplot,i,bt),Xe==="event"&&Sg(C,void 0);Fne.click(C,yt,q.id)}).catch(fx.error)}},i.doneFn=function(){vt.remove(),bg.done(pt).then(function(){bg.clear(pt),!E&&Le&&i.selectionDefs&&(Le.subtract=Ae,i.selectionDefs.push(Le),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,Ce)),(E||v)&&Ag(i,E),i.doneFnCompleted&&i.doneFnCompleted(ve),m&&Sg(C,it)}).catch(fx.error)}}function EI(e,t,r,i,a,s,l){var f=t._hoverdata,h=t._fullLayout,v=h.clickmode,m=v.indexOf("event")>-1,_=[],T,S,C,D,E,I,B,q,z,O;if(toe(f)){LI(e,t,s),T=hx(t,r,i,a);var H=roe(f,T),V=H.pointNumbers.length>0;if(V?aoe(T,H):ioe(T)&&(B=TI(H))){for(l&&l.remove(),O=0;O=0}function eoe(e){return e._fullLayout._activeSelectionIndex>=0}function Ag(e,t){var r=e.dragmode,i=e.plotinfo,a=e.gd;$ne(a)&&a._fullLayout._deactivateShape(a),eoe(a)&&a._fullLayout._deactivateSelection(a);var s=a._fullLayout,l=s._zoomlayer,f=Tg(r),h=Q4(r);if(f||h){var v=l.selectAll(".select-outline-"+i.id);if(v&&a._fullLayout._outlining){var m;f&&(m=Une(v,e)),m&&wg.call("_guiRelayout",a,{shapes:m});var _;h&&!t6(e)&&(_=Vne(v,e)),_&&(a._fullLayout._noEmitSelectedAtStart=!0,wg.call("_guiRelayout",a,{selections:_}).then(function(){t&&Hne(a)})),a._fullLayout._outlining=!1}}i.selection={},i.selection.selectionDefs=e.selectionDefs=[],i.selection.mergedPolygons=e.mergedPolygons=[]}function wI(e){return e._id}function hx(e,t,r,i){if(!e.calcdata)return[];var a=[],s=t.map(wI),l=r.map(wI),f,h,v;for(v=0;v0,s=a?i[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(s)>-1:!1}function aoe(e,t){var r=[],i,a,s,l;for(l=0;l0&&r.push(i);if(r.length===1&&(s=r[0]===t.searchInfo,s&&(a=t.searchInfo.cd[0].trace,a.selectedpoints.length===t.pointNumbers.length))){for(l=0;l1||(t+=i.selectedpoints.length,t>1)))return!1;return t===1}function Mg(e,t,r){var i;for(i=0;i-1&&t;if(!l&&t){var at=AI(e,!0);if(at.length){var yt=at[0].xref,Xe=at[0].yref;if(yt&&Xe){var Ft=FI(at),Lt=qI([tu(e,yt,"x"),tu(e,Xe,"y")]);Lt(ve,Ft)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:pe&&Sg(e,ve),T._reselect=!1}if(!l&&T._deselect){var Tt=T._deselect;f=Tt.xref,h=Tt.yref,soe(f,h,m)||RI(e,f,h,i),pe&&(ve.points.length?Sg(e,ve):i6(e)),T._deselect=!1}return{eventData:ve,selectionTesters:r}}function ooe(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";OI.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var Cg=me((k_e,UI)=>{"use strict";UI.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}});var Q0=me((E_e,GI)=>{"use strict";var VI=n6(),HI=qo(),vx=Ao(),hoe=Ri().templatedArray,C_e=Cg();GI.exports=hoe("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:HI({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:VI.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:VI.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",vx.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",vx.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",vx.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",vx.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:HI({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var dx=me((L_e,ZI)=>{"use strict";ZI.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var px=me((D_e,YI)=>{"use strict";YI.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var kc=me((P_e,QI)=>{"use strict";var WI=Nw().axisHoverFormat,voe=nl().texttemplateAttrs,doe=nl().hovertemplateAttrs,XI=xc(),poe=qo(),moe=hc().dash,yoe=hc().pattern,goe=bi(),_oe=dx(),mx=mn().extendFlat,xoe=px();function jI(e){return{valType:"any",dflt:0,editType:"calc"}}function JI(e){return{valType:"any",editType:"calc"}}function KI(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}QI.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:jI("x"),yperiod:jI("y"),xperiod0:JI("x0"),yperiod0:JI("y0"),xperiodalignment:KI("x"),yperiodalignment:KI("y"),xhoverformat:WI("x"),yhoverformat:WI("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:voe({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:doe({},{keys:_oe.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:mx({},moe,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:xoe(!0),fillgradient:mx({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:yoe,marker:mx({symbol:{valType:"enumerated",values:goe.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:mx({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},XI("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},XI("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:poe({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var o6=me((I_e,tR)=>{"use strict";var $I=Q0(),eR=kc().line,boe=hc().dash,yx=mn().extendFlat,woe=il().overrideAll,Toe=Ri().templatedArray,z_e=Cg();tR.exports=woe(Toe("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:yx({},$I.xref,{}),yref:yx({},$I.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:eR.color,width:yx({},eR.width,{min:1,dflt:1}),dash:yx({},boe,{dflt:"dot"})}}),"arraydraw","from-root")});var nR=me((R_e,iR)=>{"use strict";var rR=Bt(),gx=Xi(),Aoe=Wl(),Moe=o6(),aR=Hh();iR.exports=function(t,r){Aoe(t,r,{name:"selections",handleItemDefaults:Soe});for(var i=r.selections,a=0;a{"use strict";oR.exports=function(t,r,i){i("newselection.mode");var a=i("newselection.line.width");a&&(i("newselection.line.color"),i("newselection.line.dash")),i("activeselection.fillcolor"),i("activeselection.opacity")}});var Eg=me((q_e,fR)=>{"use strict";var koe=la(),lR=Bt(),uR=Xn();fR.exports=function(t){return function(i,a){var s=i[t];if(Array.isArray(s))for(var l=koe.subplotsRegistry.cartesian,f=l.idRegex,h=a._subplots,v=h.xaxis,m=h.yaxis,_=h.cartesian,T=a._has("cartesian"),S=0;S{"use strict";var cR=Y4(),Lg=BI();hR.exports={moduleType:"component",name:"selections",layoutAttributes:o6(),supplyLayoutDefaults:nR(),supplyDrawNewSelectionDefaults:sR(),includeBasePlot:Eg()("selections"),draw:cR.draw,drawOne:cR.drawOne,reselect:Lg.reselect,prepSelect:Lg.prepSelect,clearOutline:Lg.clearOutline,clearSelectionsCache:Lg.clearSelectionsCache,selectOnClick:Lg.selectOnClick}});var zR=me((B_e,PR)=>{"use strict";var c6=ja(),ru=Bt(),vR=ru.numberFormat,Coe=Tf(),Eoe=Z5(),_x=la(),wR=ru.strTranslate,Loe=co(),dR=Oa(),Zh=bi(),Doe=Rf(),pR=Xi(),Poe=Oh(),zoe=jl(),TR=kd(),xx=TR.selectingOrDrawing,Ioe=TR.freeMode,Roe=ts().FROM_TL,Foe=I2(),qoe=ax().redrawReglTraces,Noe=eo(),l6=Xn().getFromId,Boe=Nf().prepSelect,Ooe=Nf().clearOutline,Uoe=Nf().selectOnClick,s6=N4(),h6=Ao(),mR=h6.MINDRAG,ys=h6.MINZOOM,yR=!0;function Voe(e,t,r,i,a,s,l,f){var h=e._fullLayout._zoomlayer,v=l+f==="nsew",m=(l+f).length===1,_,T,S,C,D,E,I,B,q,z,O,H,V,W,J,te,ne,oe,fe,de,Me,Se,Ae;r+=t.yaxis._shift;function we(){if(_=t.xaxis,T=t.yaxis,q=_._length,z=T._length,I=_._offset,B=T._offset,S={},S[_._id]=_,C={},C[T._id]=T,l&&f)for(var Oe=t.overlays,gt=0;gt=0){qt._fullLayout._deactivateShape(qt);return}var Qt=qt._fullLayout.clickmode;if(f6(qt),Oe===2&&!m&&Ot(),v)Qt.indexOf("select")>-1&&Uoe(gt,qt,D,E,t.id,Le),Qt.indexOf("event")>-1&&Doe.click(qt,gt,t.id);else if(Oe===1&&m){var Vt=l?T:_,tr=l==="s"||f==="w"?0:1,ar=Vt._name+".range["+tr+"]",zr=Hoe(Vt,tr),lr="left",At="middle";if(Vt.fixedrange)return;l?(At=l==="n"?"top":"bottom",Vt.side==="right"&&(lr="right")):f==="e"&&(lr="right"),qt._context.showAxisRangeEntryBoxes&&c6.select(Ce).call(Loe.makeEditable,{gd:qt,immediate:!0,background:qt._fullLayout.paper_bgcolor,text:String(zr),fill:Vt.tickfont?Vt.tickfont.color:"#444",horizontalAlign:lr,verticalAlign:At}).on("edit",function(Fe){var Ge=Vt.d2r(Fe);Ge!==void 0&&_x.call("_guiRelayout",qt,ar,Ge)})}}zoe.init(Le);var it,bt,We,Et,nt,vt,xt,pt,ve,ze;function pe(Oe,gt,qt){var Qt=Ce.getBoundingClientRect();it=gt-Qt.left,bt=qt-Qt.top,e._fullLayout._calcInverseTransform(e);var Vt=ru.apply3DTransform(e._fullLayout._invTransform)(it,bt);it=Vt[0],bt=Vt[1],We={l:it,r:it,w:0,t:bt,b:bt,h:0},Et=e._hmpixcount?e._hmlumcount/e._hmpixcount:Coe(e._fullLayout.plot_bgcolor).getLuminance(),nt="M0,0H"+q+"V"+z+"H0V0",vt=!1,xt="xy",ze=!1,pt=SR(h,Et,I,B,nt),ve=kR(h,I,B)}function at(Oe,gt){if(e._transitioningWithDuration)return!1;var qt=Math.max(0,Math.min(q,Se*Oe+it)),Qt=Math.max(0,Math.min(z,Ae*gt+bt)),Vt=Math.abs(qt-it),tr=Math.abs(Qt-bt);We.l=Math.min(it,qt),We.r=Math.max(it,qt),We.t=Math.min(bt,Qt),We.b=Math.max(bt,Qt);function ar(){xt="",We.r=We.l,We.t=We.b,ve.attr("d","M0,0Z")}if(O.isSubplotConstrained)Vt>ys||tr>ys?(xt="xy",Vt/q>tr/z?(tr=Vt*z/q,bt>Qt?We.t=bt-tr:We.b=bt+tr):(Vt=tr*q/z,it>qt?We.l=it-Vt:We.r=it+Vt),ve.attr("d",bx(We))):ar();else if(H.isSubplotConstrained)if(Vt>ys||tr>ys){xt="xy";var zr=Math.min(We.l/q,(z-We.b)/z),lr=Math.max(We.r/q,(z-We.t)/z);We.l=zr*q,We.r=lr*q,We.b=(1-zr)*z,We.t=(1-lr)*z,ve.attr("d",bx(We))}else ar();else!W||tr0){var Fe;if(H.isSubplotConstrained||!V&&W.length===1){for(Fe=0;Fe1&&(ar.maxallowed!==void 0&&te===(ar.range[0]1&&(zr.maxallowed!==void 0&&ne===(zr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Zoe(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function SR(e,t,r,i,a){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",wR(r,i)).attr("d",a+"Z")}function kR(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:dR.background,stroke:dR.defaultLine,"stroke-width":1,opacity:0}).attr("transform",wR(t,r)).attr("d","M0,0Z")}function CR(e,t,r,i,a,s){e.attr("d",i+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),ER(e,t,a,s)}function ER(e,t,r,i){r||(e.transition().style("fill",i>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function f6(e){c6.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function LR(e){yR&&e.data&&e._context.showTips&&(ru.notifier(ru._(e,"Double-click to zoom back out"),"long"),yR=!1)}function Yoe(e,t){return"M"+(e.l-.5)+","+(t-ys-.5)+"h-3v"+(2*ys+1)+"h3ZM"+(e.r+.5)+","+(t-ys-.5)+"h3v"+(2*ys+1)+"h-3Z"}function Woe(e,t){return"M"+(t-ys-.5)+","+(e.t-.5)+"v-3h"+(2*ys+1)+"v3ZM"+(t-ys-.5)+","+(e.b+.5)+"v3h"+(2*ys+1)+"v-3Z"}function bx(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,ys)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function xR(e,t,r,i,a){for(var s=!1,l={},f={},h,v,m,_,T=(a||{}).xaHash,S=(a||{}).yaHash,C=0;C{"use strict";var Xoe=ja(),wx=Rf(),joe=jl(),Joe=Oh(),Bu=zR().makeDragBox,io=Ao().DRAGGERSIZE;Tx.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){Xoe.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var i=Object.keys(r._plots||{}).sort(function(s,l){if((r._plots[s].mainplot&&!0)===(r._plots[l].mainplot&&!0)){var f=s.split("y"),h=l.split("y");return f[0]===h[0]?Number(f[1]||1)-Number(h[1]||1):Number(f[0]||1)-Number(h[0]||1)}return r._plots[s].mainplot?1:-1});i.forEach(function(s){var l=r._plots[s],f=l.xaxis,h=l.yaxis;if(!l.mainplot){var v=Bu(t,l,f._offset,h._offset,f._length,h._length,"ns","ew");v.onmousemove=function(T){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===s&&t._fullLayout._plots[s]&&wx.hover(t,T,s)},wx.hover(t,T,s),t._fullLayout._lasthover=v,t._fullLayout._hoversubplot=s},v.onmouseout=function(T){t._dragging||(t._fullLayout._hoversubplot=null,joe.unhover(t,T))},t._context.showAxisDragHandles&&(Bu(t,l,f._offset-io,h._offset-io,io,io,"n","w"),Bu(t,l,f._offset+f._length,h._offset-io,io,io,"n","e"),Bu(t,l,f._offset-io,h._offset+h._length,io,io,"s","w"),Bu(t,l,f._offset+f._length,h._offset+h._length,io,io,"s","e"))}if(t._context.showAxisDragHandles){if(s===f._mainSubplot){var m=f._mainLinePosition;f.side==="top"&&(m-=io),Bu(t,l,f._offset+f._length*.1,m,f._length*.8,io,"","ew"),Bu(t,l,f._offset,m,f._length*.1,io,"","w"),Bu(t,l,f._offset+f._length*.9,m,f._length*.1,io,"","e")}if(s===h._mainSubplot){var _=h._mainLinePosition;h.side!=="right"&&(_-=io),Bu(t,l,_,h._offset+h._length*.1,io,h._length*.8,"ns",""),Bu(t,l,_,h._offset+h._length*.9,io,h._length*.1,"s",""),Bu(t,l,_,h._offset,io,h._length*.1,"n","")}}});var a=r._hoverlayer.node();a.onmousemove=function(s){s.target=t._fullLayout._lasthover,wx.hover(t,s,r._hoversubplot)},a.onclick=function(s){s.target=t._fullLayout._lasthover,wx.click(t,s)},a.onmousedown=function(s){t._fullLayout._lasthover.onmousedown(s)},Tx.updateFx(t)}};Tx.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";Joe(t._draggers,r)}});var FR=me((U_e,RR)=>{"use strict";var IR=la();RR.exports=function(t){for(var r=IR.layoutArrayContainers,i=IR.layoutArrayRegexes,a=t.split("[")[0],s,l,f=0;f{"use strict";var Koe=cc(),d6=o_(),Dg=Th(),Qoe=uw().sorterAsc,p6=la();Pg.containerArrayMatch=FR();var $oe=Pg.isAddVal=function(t){return t==="add"||Koe(t)},qR=Pg.isRemoveVal=function(t){return t===null||t==="remove"};Pg.applyContainerArrayChanges=function(t,r,i,a,s){var l=r.astr,f=p6.getComponentMethod(l,"supplyLayoutDefaults"),h=p6.getComponentMethod(l,"draw"),v=p6.getComponentMethod(l,"drawOne"),m=a.replot||a.recalc||f===d6||h===d6,_=t.layout,T=t._fullLayout;if(i[""]){Object.keys(i).length>1&&Dg.warn("Full array edits are incompatible with other edits",l);var S=i[""][""];if(qR(S))r.set(null);else if(Array.isArray(S))r.set(S);else return Dg.warn("Unrecognized full array edit value",l,S),!0;return m?!1:(f(_,T),h(t),!0)}var C=Object.keys(i).map(Number).sort(Qoe),D=r.get(),E=D||[],I=s(T,l).get(),B=[],q=-1,z=E.length,O,H,V,W,J,te,ne,oe;for(O=0;OE.length-(ne?0:1)){Dg.warn("index out of range",l,V);continue}if(te!==void 0)J.length>1&&Dg.warn("Insertion & removal are incompatible with edits to the same index.",l,V),qR(te)?B.push(V):ne?(te==="add"&&(te={}),E.splice(V,0,te),I&&I.splice(V,0,{})):Dg.warn("Unrecognized full object edit value",l,V,te),q===-1&&(q=V);else for(H=0;H=0;O--)E.splice(B[O],1),I&&I.splice(B[O],1);if(E.length?D||r.set(E):r.set(null),m)return!1;if(f(_,T),v!==d6){var fe;if(q===-1)fe=C;else{for(z=Math.max(E.length,z),fe=[],O=0;O=q));O++)fe.push(V);for(O=q;O{"use strict";var VR=Da(),H_e=ew(),HR=la(),Vs=Bt(),zg=eo(),GR=Xn(),ZR=Oa(),Ig=GR.cleanId,ese=GR.getFromTrace,m6=HR.traceIs;Ou.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Vs.log("Clearing previous rejected promises from queue."),e._promises=[]};Ou.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var i=(zg.subplotsRegistry.cartesian||{}).attrRegex,a=(zg.subplotsRegistry.polar||{}).attrRegex,s=(zg.subplotsRegistry.ternary||{}).attrRegex,l=(zg.subplotsRegistry.gl3d||{}).attrRegex,f=Object.keys(e);for(t=0;t3?(E.x=1.02,E.xanchor="left"):E.x<-2&&(E.x=-.02,E.xanchor="right"),E.y>3?(E.y=1.02,E.yanchor="bottom"):E.y<-2&&(E.y=-.02,E.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),ZR.clean(e),e.template&&e.template.layout&&Ou.cleanLayout(e.template.layout),e};function $0(e,t){var r=e[t],i=t.charAt(0);r&&r!=="paper"&&(e[t]=Ig(r,i,!0))}Ou.cleanData=function(e){for(var t=0;t0)return e.substr(0,t)}Ou.hasParent=function(e,t){for(var r=UR(t);r;){if(r in e)return!0;r=UR(r)}return!1};var ase=["x","y","z"];Ou.clearAxisTypes=function(e,t,r){for(var i=0;i{"use strict";var kx=ja(),ise=Da(),nse=ww(),pr=Bt(),Oi=pr.nestedProperty,_6=Oy(),gs=Mk(),au=la(),Ix=M0(),ra=eo(),ss=Xi(),ose=G5(),sse=Ru(),y6=bi(),lse=Oa(),use=v6().initInteractions,fse=zh(),cse=Nf().clearOutline,KR=rd().dfltConfig,Mx=NR(),Un=YR(),hi=ax(),Yh=il(),hse=Ao().AX_NAME_PATTERN,g6=0,WR=5;function vse(e,t,r,i){var a;if(e=pr.getGraphDiv(e),_6.init(e),pr.isPlainObject(t)){var s=t;t=s.data,r=s.layout,i=s.config,a=s.frames}var l=_6.triggerHandler(e,"plotly_beforeplot",[t,r,i]);if(l===!1)return Promise.reject();!t&&!r&&!pr.isPlotDiv(e)&&pr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function f(){if(a)return ei.addFrames(e,a)}$R(e,i),r||(r={}),kx.select(e).classed("js-plotly-plot",!0),y6.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var h=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(Un.cleanData(t),h?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||h)&&(e.layout=Un.cleanLayout(r)),ra.supplyDefaults(e);var v=e._fullLayout,m=v._has("cartesian");v._replotting=!0,(h||v._shouldCreateBgLayer)&&(Fse(e),v._shouldCreateBgLayer&&delete v._shouldCreateBgLayer),y6.initGradients(e),y6.initPatterns(e),h&&ss.saveShowSpikeInitial(e);var _=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;_&&ra.doCalcdata(e);for(var T=0;T=e.data.length||a<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(a,i+1)>-1||a>=0&&t.indexOf(-e.data.length+a)>-1||a<0&&t.indexOf(e.data.length+a)>-1)throw new Error("each index in "+r+" must be unique.")}}function eF(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),Ex(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&Ex(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function gse(e,t,r){var i,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),i=0;i=0&&m<_.length?_.splice(0,_.length-m):[];return[_,T]}var s=tF(e,t,r,i,a),l=ei.redraw(e),f=[e,s.update,r,s.maxPoints];return gs.add(e,ei.prependTraces,f,aF,arguments),l}function iF(e,t,r,i){e=pr.getGraphDiv(e);function a(h,v,m){var _,T;if(pr.isTypedArray(h))if(m<=0){var S=new h.constructor(0),C=rF(v,h);m<0?(_=C,T=S):(_=S,T=C)}else if(_=new h.constructor(m),T=new h.constructor(h.length+v.length-m),m===v.length)_.set(v),T.set(h);else if(m=0&&m<_.length?_.splice(m,_.length):[];return[_,T]}var s=tF(e,t,r,i,a),l=ei.redraw(e),f=[e,s.update,r,s.maxPoints];return gs.add(e,ei.extendTraces,f,iF,arguments),l}function nF(e,t,r){e=pr.getGraphDiv(e);var i=[],a=ei.deleteTraces,s=nF,l=[e,i],f=[e,t],h,v;for(gse(e,t,r),Array.isArray(t)||(t=[t]),t=t.map(function(m){return pr.extendFlat({},m)}),Un.cleanData(t),h=0;h0&&typeof W.parts[ne]!="string";)ne--;var oe=W.parts[ne],fe=W.parts[ne-1]+"."+oe,de=W.parts.slice(0,ne).join("."),Me=Oi(e.layout,de).get(),Se=Oi(i,de).get(),Ae=W.get();if(J!==void 0){I[V]=J,B[V]=oe==="reverse"?J:Cc(Ae);var we=Ix.getLayoutValObject(i,W.parts);if(we&&we.impliedEdits&&J!==null)for(var Te in we.impliedEdits)q(pr.relativeAttr(V,Te),we.impliedEdits[Te]);if(["width","height"].indexOf(V)!==-1)if(J){q("autosize",null);var Ce=V==="height"?"width":"height";q(Ce,i[Ce])}else i[V]=e._initialAutoSize[V];else if(V==="autosize")q("width",J?null:i.width),q("height",J?null:i.height);else if(fe.match(uF))H(fe),Oi(i,de+"._inputRange").set(null);else if(fe.match(fF)){H(fe),Oi(i,de+"._inputRange").set(null);var Le=Oi(i,de).get();Le._inputDomain&&(Le._input.domain=Le._inputDomain.slice())}else fe.match(wse)&&Oi(i,de+"._inputDomain").set(null);if(oe==="type"){O=Me;var $e=Se.type==="linear"&&J==="log",ot=Se.type==="log"&&J==="linear";if($e||ot){if(!O||!O.range)q(de+".autorange",!0);else if(Se.autorange)$e&&(O.range=O.range[1]>O.range[0]?[1,2]:[2,1]);else{var it=O.range[0],bt=O.range[1];$e?(it<=0&&bt<=0&&q(de+".autorange",!0),it<=0?it=bt/1e6:bt<=0&&(bt=it/1e6),q(de+".range[0]",Math.log(it)/Math.LN10),q(de+".range[1]",Math.log(bt)/Math.LN10)):(q(de+".range[0]",Math.pow(10,it)),q(de+".range[1]",Math.pow(10,bt)))}Array.isArray(i._subplots.polar)&&i._subplots.polar.length&&i[W.parts[0]]&&W.parts[1]==="radialaxis"&&delete i[W.parts[0]]._subplot.viewInitial["radialaxis.range"],au.getComponentMethod("annotations","convertCoords")(e,Se,J,q),au.getComponentMethod("images","convertCoords")(e,Se,J,q)}else q(de+".autorange",!0),q(de+".range",null);Oi(i,de+"._inputRange").set(null)}else if(oe.match(hse)){var We=Oi(i,V).get(),Et=(J||{}).type;(!Et||Et==="-")&&(Et="linear"),au.getComponentMethod("annotations","convertCoords")(e,We,Et,q),au.getComponentMethod("images","convertCoords")(e,We,Et,q)}var nt=Mx.containerArrayMatch(V);if(nt){m=nt.array,_=nt.index;var vt=nt.property,xt=we||{editType:"calc"};_!==""&&vt===""&&(Mx.isAddVal(J)?B[V]=null:Mx.isRemoveVal(J)?B[V]=(Oi(r,m).get()||[])[_]:pr.warn("unrecognized full object value",t)),Yh.update(E,xt),v[m]||(v[m]={});var pt=v[m][_];pt||(pt=v[m][_]={}),pt[vt]=J,delete t[V]}else oe==="reverse"?(Me.range?Me.range.reverse():(q(de+".autorange",!0),Me.range=[1,0]),Se.autorange?E.calc=!0:E.plot=!0):(V==="dragmode"&&(J===!1&&Ae!==!1||J!==!1&&Ae===!1)||i._has("scatter-like")&&i._has("regl")&&V==="dragmode"&&(J==="lasso"||J==="select")&&!(Ae==="lasso"||Ae==="select")?E.plot=!0:we?Yh.update(E,we):E.calc=!0,W.set(J))}}for(m in v){var ve=Mx.applyContainerArrayChanges(e,s(r,m),v[m],E,s);ve||(E.plot=!0)}for(var ze in z){O=ss.getFromId(e,ze);var pe=O&&O._constraintGroup;if(pe){E.calc=!0;for(var at in pe)z[at]||(ss.getFromId(e,at)._constraintShrinkable=!0)}}(hF(e)||t.height||t.width)&&(E.plot=!0);var yt=i.shapes;for(_=0;_1;)if(i.pop(),r=Oi(t,i.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function Mse(e,t){for(var r=0;r=a.length?a[0]:a[v]:a}function f(v){return Array.isArray(s)?v>=s.length?s[0]:s[v]:s}function h(v,m){var _=0;return function(){if(v&&++_===m)return v()}}return new Promise(function(v,m){function _(){if(i._frameQueue.length!==0){for(;i._frameQueue.length;){var oe=i._frameQueue.pop();oe.onInterrupt&&oe.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function T(oe){if(oe.length!==0){for(var fe=0;fei._timeToNext&&C()};oe()}var E=0;function I(oe){return Array.isArray(a)?E>=a.length?oe.transitionOpts=a[E]:oe.transitionOpts=a[0]:oe.transitionOpts=a,E++,oe}var B,q,z=[],O=t==null,H=Array.isArray(t),V=!O&&!H&&pr.isPlainObject(t);if(V)z.push({type:"object",data:I(pr.extendFlat({},t))});else if(O||["string","number"].indexOf(typeof t)!==-1)for(B=0;B0&&tete)&&ne.push(q);z=ne}}z.length>0?T(z):(e.emit("plotly_animated"),v())})}function Pse(e,t,r){if(e=pr.getGraphDiv(e),t==null)return Promise.resolve();if(!pr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var i,a,s,l,f=e._transitionData._frames,h=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var v=f.length+t.length*2,m=[],_={};for(i=t.length-1;i>=0;i--)if(pr.isPlainObject(t[i])){var T=t[i].name,S=(h[T]||_[T]||{}).name,C=t[i].name,D=h[S]||_[S];S&&C&&typeof C=="number"&&D&&g6W.index?-1:V.index=0;i--){if(a=m[i].frame,typeof a.name=="number"&&pr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;h[a.name="frame "+e._transitionData._counter++];);if(h[a.name]){for(s=0;s=0;r--)i=t[r],s.push({type:"delete",index:i}),l.unshift({type:"insert",index:i,value:a[i]});var f=ra.modifyFrames,h=ra.modifyFrames,v=[e,l],m=[e,s];return gs&&gs.add(e,f,v,h,m),ra.modifyFrames(e,s)}function Ise(e){e=pr.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return ra.cleanPlot([],{},r,t),ra.purge(e),_6.purge(e),t._container&&t._container.remove(),delete e._context,e}function Rse(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!pr.equalDomRects(r,t._lastBBox)){var i=t._invTransform=pr.inverseTransformMatrix(pr.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(i[0][0]*i[0][0]+i[0][1]*i[0][1]+i[0][2]*i[0][2]),t._invScaleY=Math.sqrt(i[1][0]*i[1][0]+i[1][1]*i[1][1]+i[1][2]*i[1][2]),t._lastBBox=r}}function Fse(e){var t=kx.select(e),r=e._fullLayout;if(r._calcInverseTransform=Rse,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var i={};kx.selectAll("defs").each(function(){this.id&&(i[this.id.split("-")[1]]=1)}),r._uid=pr.randstr(i)}r._paperdiv.selectAll(".main-svg").attr(fse.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var a=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=a.append("g").classed("imagelayer",!0),r._shapeLowerLayer=a.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var s=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=s.append("g").classed("imagelayer",!0),r._shapeUpperLayer=s.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}ei.animate=Dse;ei.addFrames=Pse;ei.deleteFrames=zse;ei.addTraces=nF;ei.deleteTraces=oF;ei.extendTraces=aF;ei.moveTraces=x6;ei.prependTraces=iF;ei.newPlot=yse;ei._doPlot=vse;ei.purge=Ise;ei.react=Cse;ei.redraw=mse;ei.relayout=Rg;ei.restyle=Lx;ei.setPlotConfig=dse;ei.update=Px;ei._guiRelayout=w6(Rg);ei._guiRestyle=w6(Lx);ei._guiUpdate=w6(Px);ei._storeDirectGUIEdit=bse});var Dd=me(Bf=>{"use strict";var qse=la();Bf.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Bf.getRedrawFunc=function(e){return function(){qse.getComponentMethod("colorbar","draw")(e)}};Bf.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Bf.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var vF=window.URL||window.webkitURL;Bf.createObjectURL=function(e){return vF.createObjectURL(e)};Bf.revokeObjectURL=function(e){return vF.revokeObjectURL(e)};Bf.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=Nse(window.atob(e));return new window.Blob([r],{type:"image/"+t})};Bf.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function Nse(e){for(var t=e.length,r=new ArrayBuffer(t),i=new Uint8Array(r),a=0;a{"use strict";var M6=ja(),W_e=Bt(),Bse=bi(),Ose=Oa(),X_e=zh(),A6=/"/g,qg="TOBESTRIPPED",Use=new RegExp('("'+qg+")|("+qg+'")',"g");function Vse(e){var t=M6.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,function(i){return i==="<"?"<":i==="&rt;"?">":i.indexOf("<")!==-1||i.indexOf(">")!==-1?"":t.html(i).text()});return t.remove(),r}function Hse(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}dF.exports=function(t,r,i){var a=t._fullLayout,s=a._paper,l=a._toppaper,f=a.width,h=a.height,v;s.insert("rect",":first-child").call(Bse.setRect,0,0,f,h).call(Ose.fill,a.paper_bgcolor);var m=a._basePlotModules||[];for(v=0;v{"use strict";var Gse=Bt(),Zse=C_().EventEmitter,Ng=Dd();function Yse(e){var t=e.emitter||new Zse,r=new Promise(function(i,a){var s=window.Image,l=e.svg,f=e.format||"png",h=e.canvas,v=e.scale||1,m=e.width||300,_=e.height||150,T=v*m,S=v*_,C=h.getContext("2d",{willReadFrequently:!0}),D=new s,E,I;f==="svg"||Gse.isSafari()?I=Ng.encodeSVG(l):(E=Ng.createBlob(l,"svg"),I=Ng.createObjectURL(E)),h.width=T,h.height=S,D.onload=function(){var B;switch(E=null,Ng.revokeObjectURL(I),f!=="svg"&&C.drawImage(D,0,0,T,S),f){case"jpeg":B=h.toDataURL("image/jpeg");break;case"png":B=h.toDataURL("image/png");break;case"webp":B=h.toDataURL("image/webp");break;case"svg":B=I;break;default:var q="Image format is not jpeg, png, svg or webp.";if(a(new Error(q)),!e.promise)return t.emit("error",q)}i(B),e.promise||t.emit("success",B)},D.onerror=function(B){if(E=null,Ng.revokeObjectURL(I),a(B),!e.promise)return t.emit("error",B)},D.src=I});return e.promise?r:t}pF.exports=Yse});var k6=me((K_e,gF)=>{"use strict";var mF=Da(),yF=T6(),Wse=eo(),Of=Bt(),Bg=Dd(),Xse=Fx(),jse=qx(),Jse=G1().version,S6={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Kse(e,t){t=t||{};var r,i,a,s;Of.isPlainObject(e)?(r=e.data||[],i=e.layout||{},a=e.config||{},s={}):(e=Of.getGraphDiv(e),r=Of.extendDeep([],e.data),i=Of.extendDeep({},e.layout),a=e._context,s=e._fullLayout||{});function l(H){return!(H in t)||Of.validate(t[H],S6[H])}if(!l("width")&&t.width!==null||!l("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+Of.join2(S6.format.values,", "," or ")+".");var f={};function h(H,V){return Of.coerce(t,f,S6,H,V)}var v=h("format"),m=h("width"),_=h("height"),T=h("scale"),S=h("setBackground"),C=h("imageDataOnly"),D=document.createElement("div");D.style.position="absolute",D.style.left="-5000px",document.body.appendChild(D);var E=Of.extendFlat({},i);m?E.width=m:t.width===null&&mF(s.width)&&(E.width=s.width),_?E.height=_:t.height===null&&mF(s.height)&&(E.height=s.height);var I=Of.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:S}),B=Bg.getRedrawFunc(D);function q(){return new Promise(function(H){setTimeout(H,Bg.getDelay(D._fullLayout))})}function z(){return new Promise(function(H,V){var W=Xse(D,v,T),J=D._fullLayout.width,te=D._fullLayout.height;function ne(){yF.purge(D),document.body.removeChild(D)}if(v==="full-json"){var oe=Wse.graphJson(D,!1,"keepdata","object",!0,!0);return oe.version=Jse,oe=JSON.stringify(oe),ne(),H(C?oe:Bg.encodeJSON(oe))}if(ne(),v==="svg")return H(C?W:Bg.encodeSVG(W));var fe=document.createElement("canvas");fe.id=Of.randstr(),jse({format:v,width:J,height:te,scale:T,canvas:fe,svg:W,promise:!0}).then(H).catch(V)})}function O(H){return C?H.replace(Bg.IMAGE_URL_PREFIX,""):H}return new Promise(function(H,V){yF.newPlot(D,r,E,I).then(B).then(q).then(z).then(function(W){H(O(W))}).catch(function(W){V(W)})})}gF.exports=Kse});var bF=me((Q_e,xF)=>{"use strict";var iu=Bt(),Qse=eo(),$se=M0(),ele=rd().dfltConfig,Uu=iu.isPlainObject,zd=Array.isArray,C6=iu.isArrayOrTypedArray;xF.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var i=$se.get(),a=[],s={_context:iu.extendFlat({},ele)},l,f;zd(t)?(s.data=iu.extendDeep([],t),l=t):(s.data=[],l=[],a.push(no("array","data"))),Uu(r)?(s.layout=iu.extendDeep({},r),f=r):(s.layout={},f={},arguments.length>1&&a.push(no("object","layout"))),Qse.supplyDefaults(s);for(var h=s._fullData,v=l.length,m=0;m_.length&&i.push(no("unused",a,v.concat(_.length)));var I=_.length,B=Array.isArray(E);B&&(I=Math.min(I,E.length));var q,z,O,H,V;if(T.dimensions===2)for(z=0;z_[z].length&&i.push(no("unused",a,v.concat(z,_[z].length)));var W=_[z].length;for(q=0;q<(B?Math.min(W,E[z].length):W);q++)O=B?E[z][q]:E,H=m[z][q],V=_[z][q],iu.validate(H,O)?V!==H&&V!==+H&&i.push(no("dynamic",a,v.concat(z,q),H,V)):i.push(no("value",a,v.concat(z,q),H))}else i.push(no("array",a,v.concat(z),m[z]));else for(z=0;z{"use strict";var sle=Bt(),Bx=Dd();function lle(e,t,r){var i=document.createElement("a"),a="download"in i,s=new Promise(function(l,f){var h,v;if(a)return h=Bx.createBlob(e,r),v=Bx.createObjectURL(h),i.href=v,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),Bx.revokeObjectURL(v),h=null,l(t);if(sle.isSafari()){var m=r==="svg"?",":";base64,";return Bx.octetStream(m+encodeURIComponent(e)),l(t)}f(new Error("download error"))});return s}wF.exports=lle});var E6=me((t2e,MF)=>{"use strict";var AF=Bt(),ule=k6(),fle=TF(),e2e=Dd();function cle(e,t){var r;return AF.isPlainObject(e)||(r=AF.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(i,a){r&&r._snapshotInProgress&&a(new Error("Snapshotting already in progress.")),r&&(r._snapshotInProgress=!0);var s=ule(e,t),l=t.filename||e.fn||"newplot";l+="."+t.format.replace("-","."),s.then(function(f){return r&&(r._snapshotInProgress=!1),fle(f,l,t.format)}).then(function(f){i(f)}).catch(function(f){r&&(r._snapshotInProgress=!1),a(f)})})}MF.exports=cle});var LF=me(L6=>{"use strict";var Hs=Bt(),Gs=Hs.isPlainObject,SF=M0(),kF=eo(),hle=ms(),CF=Ri(),EF=rd().dfltConfig;L6.makeTemplate=function(e){e=Hs.isPlainObject(e)?e:Hs.getGraphDiv(e),e=Hs.extendDeep({_context:EF},{data:e.data,layout:e.layout}),kF.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var i={data:{},layout:{}};t.forEach(function(S){var C={};Og(S,C,dle.bind(null,S));var D=Hs.coerce(S,{},hle,"type"),E=i.data[D];E||(E=i.data[D]=[]),E.push(C)}),Og(r,i.layout,vle.bind(null,r)),delete i.layout.template;var a=r.template;if(Gs(a)){var s=a.layout,l,f,h,v,m,_;Gs(s)&&Ox(s,i.layout);var T=a.data;if(Gs(T)){for(f in i.data)if(h=T[f],Array.isArray(h)){for(m=i.data[f],_=m.length,v=h.length,l=0;l<_;l++)Ox(h[l%v],m[l]);for(l=_;lI?l.push({code:"unused",traceType:S,templateCount:E,dataCount:I}):I>E&&l.push({code:"reused",traceType:S,templateCount:E,dataCount:I})}}function B(q,z){for(var O in q)if(O.charAt(0)!=="_"){var H=q[O],V=nu(q,O,z);Gs(H)?(Array.isArray(q)&&H._template===!1&&H.templateitemname&&l.push({code:"missing",path:V,templateitemname:H.templateitemname}),B(H,V)):Array.isArray(H)&&ple(H)&&B(H,V)}}if(B({data:h,layout:f},""),l.length)return l.map(mle)};function ple(e){for(var t=0;t{"use strict";var Jn=T6();Ji._doPlot=Jn._doPlot;Ji.newPlot=Jn.newPlot;Ji.restyle=Jn.restyle;Ji.relayout=Jn.relayout;Ji.redraw=Jn.redraw;Ji.update=Jn.update;Ji._guiRestyle=Jn._guiRestyle;Ji._guiRelayout=Jn._guiRelayout;Ji._guiUpdate=Jn._guiUpdate;Ji._storeDirectGUIEdit=Jn._storeDirectGUIEdit;Ji.react=Jn.react;Ji.extendTraces=Jn.extendTraces;Ji.prependTraces=Jn.prependTraces;Ji.addTraces=Jn.addTraces;Ji.deleteTraces=Jn.deleteTraces;Ji.moveTraces=Jn.moveTraces;Ji.purge=Jn.purge;Ji.addFrames=Jn.addFrames;Ji.deleteFrames=Jn.deleteFrames;Ji.animate=Jn.animate;Ji.setPlotConfig=Jn.setPlotConfig;var yle=Dy().getGraphDiv,gle=J2().eraseActiveShape;Ji.deleteActiveShape=function(e){return gle(yle(e))};Ji.toImage=k6();Ji.validate=bF();Ji.downloadImage=E6();var DF=LF();Ji.makeTemplate=DF.makeTemplate;Ji.validateTemplate=DF.validateTemplate});var IF=me((i2e,zF)=>{"use strict";var D6=Bt(),_le=la();zF.exports=function(t,r,i,a){var s=a("x"),l=a("y"),f,h=_le.getComponentMethod("calendars","handleTraceDefaults");if(h(t,r,["x","y"],i),s){var v=D6.minRowLength(s);l?f=Math.min(v,D6.minRowLength(l)):(f=v,a("y0"),a("dy"))}else{if(!l)return 0;f=D6.minRowLength(l),a("x0"),a("dx")}return r._length=f,f}});var NF=me((n2e,qF)=>{"use strict";var RF=Bt().dateTick0,xle=Zi(),ble=xle.ONEWEEK;function FF(e,t){return e%ble===0?RF(t,1):RF(t,0)}qF.exports=function(t,r,i,a,s){if(s||(s={x:!0,y:!0}),s.x){var l=a("xperiod");l&&(a("xperiod0",FF(l,r.xcalendar)),a("xperiodalignment"))}if(s.y){var f=a("yperiod");f&&(a("yperiod0",FF(f,r.ycalendar)),a("yperiodalignment"))}}});var UF=me((o2e,OF)=>{"use strict";var BF=["orientation","groupnorm","stackgaps"];OF.exports=function(t,r,i,a){var s=i._scatterStackOpts,l=a("stackgroup");if(l){var f=r.xaxis+r.yaxis,h=s[f];h||(h=s[f]={});var v=h[l],m=!1;v?v.traces.push(r):(v=h[l]={traceIndices:[],traces:[r]},m=!0);for(var _={orientation:r.x&&!r.y?"h":"v"},T=0;T{"use strict";var VF=Oa(),HF=kf().hasColorscale,GF=hd(),wle=rs();ZF.exports=function(t,r,i,a,s,l){var f=wle.isBubble(t),h=(t.line||{}).color,v;if(l=l||{},h&&(i=h),s("marker.symbol"),s("marker.opacity",f?.7:1),s("marker.size"),l.noAngle||(s("marker.angle"),l.noAngleRef||s("marker.angleref"),l.noStandOff||s("marker.standoff")),s("marker.color",i),HF(t,"marker")&&GF(t,r,a,s,{prefix:"marker.",cLetter:"c"}),l.noSelect||(s("selected.marker.color"),s("unselected.marker.color"),s("selected.marker.size"),s("unselected.marker.size")),l.noLine||(h&&!Array.isArray(h)&&r.marker.color!==h?v=h:f?v=VF.background:v=VF.defaultLine,s("marker.line.color",v),HF(t,"marker.line")&&GF(t,r,a,s,{prefix:"marker.line.",cLetter:"c"}),s("marker.line.width",f?1:0)),f&&(s("marker.sizeref"),s("marker.sizemin"),s("marker.sizemode")),l.gradient){var m=s("marker.gradient.type");m!=="none"&&s("marker.gradient.color")}}});var z6=me((l2e,YF)=>{"use strict";var Tle=Bt().isArrayOrTypedArray,Ale=kf().hasColorscale,Mle=hd();YF.exports=function(t,r,i,a,s,l){l||(l={});var f=(t.marker||{}).color;if(f&&f._inputArray&&(f=f._inputArray),s("line.color",i),Ale(t,"line"))Mle(t,r,a,s,{prefix:"line.",cLetter:"c"});else{var h=(Tle(f)?!1:f)||i;s("line.color",h)}s("line.width"),l.noDash||s("line.dash"),l.backoff&&s("line.backoff")}});var XF=me((u2e,WF)=>{"use strict";WF.exports=function(t,r,i){var a=i("line.shape");a==="spline"&&i("line.smoothing")}});var I6=me((f2e,jF)=>{"use strict";var Sle=Bt();jF.exports=function(e,t,r,i,a){a=a||{},i("textposition"),Sle.coerceFont(i,"textfont",a.font||r.font,a),a.noSelect||(i("selected.textfont.color"),i("unselected.textfont.color"))}});var R6=me((c2e,KF)=>{"use strict";var Vx=Oa(),JF=Bt().isArrayOrTypedArray;function kle(e){for(var t=Vx.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var QF=Bt(),Cle=la(),Ele=kc(),Lle=dx(),em=rs(),Dle=IF(),Ple=NF(),zle=UF(),Ile=P6(),Rle=z6(),$F=XF(),Fle=I6(),qle=R6(),Nle=Bt().coercePattern;eq.exports=function(t,r,i,a){function s(S,C){return QF.coerce(t,r,Ele,S,C)}var l=Dle(t,r,a,s);if(l||(r.visible=!1),!!r.visible){Ple(t,r,a,s),s("xhoverformat"),s("yhoverformat"),s("zorder");var f=zle(t,r,a,s);a.scattermode==="group"&&r.orientation===void 0&&s("orientation","v");var h=!f&&l{"use strict";var Ble=hg().getAxisGroup;rq.exports=function(t,r,i,a,s){var l=r.orientation,f=r[{v:"x",h:"y"}[l]+"axis"],h=Ble(i,f)+l,v=i._alignmentOpts||{},m=a("alignmentgroup"),_=v[h];_||(_=v[h]={});var T=_[m];T?T.traces.push(r):T=_[m]={traces:[r],alignmentIndex:Object.keys(_).length,offsetGroups:{}};var S=a("offsetgroup")||"",C=T.offsetGroups,D=C[S];r._offsetIndex=0,(s!=="group"||S)&&(D||(D=C[S]={offsetIndex:Object.keys(C).length}),r._offsetIndex=D.offsetIndex)}});var nq=me((d2e,iq)=>{"use strict";var Ole=Bt(),Ule=aq(),Vle=kc();iq.exports=function(t,r){var i,a,s,l=r.scattermode;function f(T){return Ole.coerce(a._input,a,Vle,T)}if(r.scattermode==="group")for(s=0;s=0;m--){var _=t[m];if(_.type==="scatter"&&_.xaxis===h.xaxis&&_.yaxis===h.yaxis){_.opacity=void 0;break}}}}}});var sq=me((p2e,oq)=>{"use strict";var Hle=Bt(),Gle=z_();oq.exports=function(e,t){function r(a,s){return Hle.coerce(e,t,Gle,a,s)}var i=t.barmode==="group";t.scattermode==="group"&&r("scattergap",i?t.bargap:.2)}});var fq=me((m2e,uq)=>{"use strict";var Zle=Da(),lq=Bt(),Yle=lq.dateTime2ms,Hx=lq.incrementMonth,Wle=Zi(),Xle=Wle.ONEAVGMONTH;uq.exports=function(t,r,i,a){if(r.type!=="date")return{vals:a};var s=t[i+"periodalignment"];if(!s)return{vals:a};var l=t[i+"period"],f;if(Zle(l)){if(l=+l,l<=0)return{vals:a}}else if(typeof l=="string"&&l.charAt(0)==="M"){var h=+l.substring(1);if(h>0&&Math.round(h)===h)f=h;else return{vals:a}}for(var v=r.calendar,m=s==="start",_=s==="end",T=t[i+"period0"],S=Yle(T,v)||0,C=[],D=[],E=[],I=a.length,B=0;Bq;)H=Hx(H,-f,v);for(;H<=q;)H=Hx(H,f,v);O=Hx(H,-f,v)}else{for(z=Math.round((q-S)/l),H=S+z*l;H>q;)H-=l;for(;H<=q;)H+=l;O=H-l}C[B]=m?O:_?H:(O+H)/2,D[B]=O,E[B]=H}return{vals:C,starts:D,ends:E}}});var N6=me((y2e,hq)=>{"use strict";var F6=kf().hasColorscale,q6=Yy(),cq=rs();hq.exports=function(t,r){cq.hasLines(r)&&F6(r,"line")&&q6(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),cq.hasMarkers(r)&&(F6(r,"marker")&&q6(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),F6(r,"marker.line")&&q6(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Ug=me((g2e,vq)=>{"use strict";var yn=Bt();vq.exports=function(t,r){for(var i=0;i{"use strict";var dq=Bt();pq.exports=function(t,r){dq.isArrayOrTypedArray(r.selectedpoints)&&dq.tagSelected(t,r)}});var H6=me((x2e,wq)=>{"use strict";var mq=Da(),O6=Bt(),Vg=Xi(),yq=fq(),B6=Zi().BADNUM,U6=rs(),jle=N6(),Jle=Ug(),Kle=Gx();function Qle(e,t){var r=e._fullLayout,i=t._xA=Vg.getFromId(e,t.xaxis||"x","x"),a=t._yA=Vg.getFromId(e,t.yaxis||"y","y"),s=i.makeCalcdata(t,"x"),l=a.makeCalcdata(t,"y"),f=yq(t,i,"x",s),h=yq(t,a,"y",l),v=f.vals,m=h.vals,_=t._length,T=new Array(_),S=t.ids,C=V6(t,r,i,a),D=!1,E,I,B,q,z,O;xq(r,t);var H="x",V="y",W;if(C)O6.pushUnique(C.traceIndices,t.index),E=C.orientation==="v",E?(V="s",W="x"):(H="s",W="y"),z=C.stackgaps==="interpolate";else{var J=_q(t,_);gq(e,t,i,a,v,m,J)}var te=!!t.xperiodalignment,ne=!!t.yperiodalignment;for(I=0;I<_;I++){var oe=T[I]={},fe=mq(v[I]),de=mq(m[I]);fe&&de?(oe[H]=v[I],oe[V]=m[I],te&&(oe.orig_x=s[I],oe.xEnd=f.ends[I],oe.xStart=f.starts[I]),ne&&(oe.orig_y=l[I],oe.yEnd=h.ends[I],oe.yStart=h.starts[I])):C&&(E?fe:de)?(oe[W]=E?v[I]:m[I],oe.gap=!0,z?(oe.s=B6,D=!0):oe.s=0):oe[H]=oe[V]=B6,S&&(oe.id=String(S[I]))}if(Jle(T,t),jle(e,t),Kle(T,t),C){for(I=0;II&&T[q].gap;)q--;for(O=T[q].s,B=T.length-1;B>q;B--)T[B].s=O;for(;I{"use strict";Tq.exports=Zx;var $le=Bt().distinctVals;function Zx(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,i=t.posAxis._id.charAt(0),a=[],s=0;s{"use strict";var ou=Da(),Wh=Bt().isArrayOrTypedArray,tm=Zi().BADNUM,eue=la(),Hg=Xi(),tue=hg().getAxisGroup,Yx=Aq();function rue(e,t){for(var r=t.xaxis,i=t.yaxis,a=e._fullLayout,s=e._fullData,l=e.calcdata,f=[],h=[],v=0;vh+l||!ou(f))}for(var m=0;m{"use strict";var Lq=H6(),Dq=Eq().setGroupPositions;function due(e,t){for(var r=t.xaxis,i=t.yaxis,a=e._fullLayout,s=e._fullData,l=e.calcdata,f=[],h=[],v=0;vJ[m]&&m{"use strict";var mue=bi(),qq=Zi(),Gg=qq.BADNUM,Nq=qq.LOG_CLIP,Iq=Nq+.5,Rq=Nq-.5,Wx=Bt(),yue=Wx.segmentsIntersect,Fq=Wx.constrain,j6=dx();Bq.exports=function(t,r){var i=r.trace||{},a=r.xaxis,s=r.yaxis,l=a.type==="log",f=s.type==="log",h=a._length,v=s._length,m=r.backoff,_=i.marker,T=r.connectGaps,S=r.baseTolerance,C=r.shape,D=C==="linear",E=i.fill&&i.fill!=="none",I=[],B=j6.minTolerance,q=t.length,z=new Array(q),O=0,H,V,W,J,te,ne,oe,fe,de,Me,Se,Ae,we,Te,Ce,Le;function $e(At){var Fe=t[At];if(!Fe)return!1;var Ge=r.linearized?a.l2p(Fe.x):a.c2p(Fe.x),wt=r.linearized?s.l2p(Fe.y):s.c2p(Fe.y);if(Ge===Gg){if(l&&(Ge=a.c2p(Fe.x,!0)),Ge===Gg)return!1;f&&wt===Gg&&(Ge*=Math.abs(a._m*v*(a._m>0?Iq:Rq)/(s._m*h*(s._m>0?Iq:Rq)))),Ge*=1e3}if(wt===Gg){if(f&&(wt=s.c2p(Fe.y,!0)),wt===Gg)return!1;wt*=1e3}return[Ge,wt]}function ot(At,Fe,Ge,wt){var dt=Ge-At,gr=wt-Fe,xr=.5-At,mr=.5-Fe,Hr=dt*dt+gr*gr,pa=dt*xr+gr*mr;if(pa>0&&pa1||Math.abs(xr.y-Ge[0][1])>1)&&(xr=[xr.x,xr.y],wt&&Et(xr,At)xt||At[1]ve)return[Fq(At[0],vt,xt),Fq(At[1],pt,ve)]}function Gt(At,Fe){if(At[0]===Fe[0]&&(At[0]===vt||At[0]===xt)||At[1]===Fe[1]&&(At[1]===pt||At[1]===ve))return!0}function Ct(At,Fe){var Ge=[],wt=It(At),dt=It(Fe);return wt&&dt&&Gt(wt,dt)||(wt&&Ge.push(wt),dt&&Ge.push(dt)),Ge}function Mt(At,Fe,Ge){return function(wt,dt){var gr=It(wt),xr=It(dt),mr=[];if(gr&&xr&&Gt(gr,xr))return mr;gr&&mr.push(gr),xr&&mr.push(xr);var Hr=2*Wx.constrain((wt[At]+dt[At])/2,Fe,Ge)-((gr||wt)[At]+(xr||dt)[At]);if(Hr){var pa;gr&&xr?pa=Hr>0==gr[At]>xr[At]?gr:xr:pa=gr||xr,pa[At]+=Hr}return mr}}var Ut;C==="linear"||C==="spline"?Ut=Tt:C==="hv"||C==="vh"?Ut=Ct:C==="hvh"?Ut=Mt(0,vt,xt):C==="vhv"&&(Ut=Mt(1,pt,ve));function Ot(At,Fe){var Ge=Fe[0]-At[0],wt=(Fe[1]-At[1])/Ge,dt=(At[1]*Fe[0]-Fe[1]*At[0])/Ge;return dt>0?[wt>0?vt:xt,ve]:[wt>0?xt:vt,pt]}function Be(At){var Fe=At[0],Ge=At[1],wt=Fe===z[O-1][0],dt=Ge===z[O-1][1];if(!(wt&&dt))if(O>1){var gr=Fe===z[O-2][0],xr=Ge===z[O-2][1];wt&&(Fe===vt||Fe===xt)&&gr?xr?O--:z[O-1]=At:dt&&(Ge===pt||Ge===ve)&&xr?gr?O--:z[O-1]=At:z[O++]=At}else z[O++]=At}function ft(At){z[O-1][0]!==At[0]&&z[O-1][1]!==At[1]&&Be([yt,Xe]),Be(At),Ft=null,yt=Xe=0}var or=Wx.isArrayOrTypedArray(_);function Cr(At){if(At&&m&&(At.i=H,At.d=t,At.trace=i,At.marker=or?_[At.i]:_,At.backoff=m),it=At[0]/h,bt=At[1]/v,pe=At[0]xt?xt:0,at=At[1]ve?ve:0,pe||at){if(!O)z[O++]=[pe||At[0],at||At[1]];else if(Ft){var Fe=Ut(Ft,At);Fe.length>1&&(ft(Fe[0]),z[O++]=Fe[1])}else Lt=Ut(z[O-1],At)[0],z[O++]=Lt;var Ge=z[O-1];pe&&at&&(Ge[0]!==pe||Ge[1]!==at)?(Ft&&(yt!==pe&&Xe!==at?Be(yt&&Xe?Ot(Ft,At):[yt||pe,Xe||at]):yt&&Xe&&Be([yt,Xe])),Be([pe,at])):yt-pe&&Xe-at&&Be([pe||yt,at||Xe]),Ft=At,yt=pe,Xe=at}else Ft&&ft(Ut(Ft,At)[0]),z[O++]=At}for(H=0;HWe(ne,Sr))break;W=ne,we=de[0]*fe[0]+de[1]*fe[1],we>Se?(Se=we,J=ne,oe=!1):we=t.length||!ne)break;Cr(ne),V=ne}}Ft&&Be([yt||Ft[0],Xe||Ft[1]]),I.push(z.slice(0,O))}var Oe=C.slice(C.length-1);if(m&&Oe!=="h"&&Oe!=="v"){for(var gt=!1,qt=-1,Qt=[],Vt=0;Vt{"use strict";var Uq={tonextx:1,tonexty:1,tonext:1};Vq.exports=function(t,r,i){var a,s,l,f,h,v={},m=!1,_=-1,T=0,S=-1;for(s=0;s=0?h=S:(h=S=T,T++),h<_&&(m=!0),a._groupIndex=_=h;var C=i.slice();m&&C.sort(function(E,I){var B=E[0].trace,q=I[0].trace;return B._groupIndex-q._groupIndex||B.index-q.index});var D={};for(s=0;s{"use strict";var Vu=ja(),gue=la(),Zg=Bt(),am=Zg.ensureSingle,Zq=Zg.identity,gn=bi(),im=rs(),_ue=Oq(),xue=Hq(),Xx=lx().tester;Yq.exports=function(t,r,i,a,s,l){var f,h,v=!s,m=!!s&&s.duration>0,_=xue(t,r,i);if(f=a.selectAll("g.trace").data(_,function(S){return S[0].trace.uid}),f.enter().append("g").attr("class",function(S){return"trace scatter trace"+S[0].trace.uid}).style("stroke-miterlimit",2),f.order(),bue(t,f,r),m){l&&(h=l());var T=Vu.transition().duration(s.duration).ease(s.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()});T.each(function(){a.selectAll("g.trace").each(function(S,C){Gq(t,C,r,S,_,this,s)})})}else f.each(function(S,C){Gq(t,C,r,S,_,this,s)});v&&f.exit().remove(),a.selectAll("path:not([d])").remove()};function bue(e,t,r){t.each(function(i){var a=am(Vu.select(this),"g","fills");gn.setClipUrl(a,r.layerClipId,e);var s=i[0].trace,l=[];s._ownfill&&l.push("_ownFill"),s._nexttrace&&l.push("_nextFill");var f=a.selectAll("g").data(l,Zq);f.enter().append("g"),f.exit().each(function(h){s[h]=null}).remove(),f.order().each(function(h){s[h]=am(Vu.select(this),"path","js-fill")})})}function Gq(e,t,r,i,a,s,l){var f=e._context.staticPlot,h;wue(e,t,r,i,a);var v=!!l&&l.duration>0;function m(Mt){return v?Mt.transition():Mt}var _=r.xaxis,T=r.yaxis,S=i[0].trace,C=S.line,D=Vu.select(s),E=am(D,"g","errorbars"),I=am(D,"g","lines"),B=am(D,"g","points"),q=am(D,"g","text");if(gue.getComponentMethod("errorbars","plot")(e,E,r,l),S.visible!==!0)return;m(D).style("opacity",S.opacity);var z,O,H=S.fill.charAt(S.fill.length-1);H!=="x"&&H!=="y"&&(H="");var V,W;H==="y"?(V=1,W=T.c2p(0,!0)):H==="x"&&(V=0,W=_.c2p(0,!0)),i[0][r.isRangePlot?"nodeRangePlot3":"node3"]=D;var J="",te=[],ne=S._prevtrace,oe=null,fe=null;ne&&(J=ne._prevRevpath||"",O=ne._nextFill,te=ne._ownPolygons,oe=ne._fillsegments,fe=ne._fillElement);var de,Me,Se="",Ae="",we,Te,Ce,Le,$e,ot,it=[];S._polygons=[];var bt=[],We=[],Et=Zg.noop;if(z=S._ownFill,im.hasLines(S)||S.fill!=="none"){O&&O.datum(i),["hv","vh","hvh","vhv"].indexOf(C.shape)!==-1?(we=gn.steps(C.shape),Te=gn.steps(C.shape.split("").reverse().join(""))):C.shape==="spline"?we=Te=function(Mt){var Ut=Mt[Mt.length-1];return Mt.length>1&&Mt[0][0]===Ut[0]&&Mt[0][1]===Ut[1]?gn.smoothclosed(Mt.slice(1),C.smoothing):gn.smoothopen(Mt,C.smoothing)}:we=Te=function(Mt){return"M"+Mt.join("L")},Ce=function(Mt){return Te(Mt.reverse())},We=_ue(i,{xaxis:_,yaxis:T,trace:S,connectGaps:S.connectgaps,baseTolerance:Math.max(C.width||1,3)/4,shape:C.shape,backoff:C.backoff,simplify:C.simplify,fill:S.fill}),bt=new Array(We.length);var nt=0;for(h=0;h=f[0]&&D.x<=f[1]&&D.y>=h[0]&&D.y<=h[1]}),T=Math.ceil(_.length/m),S=0;a.forEach(function(D,E){var I=D[0].trace;im.hasMarkers(I)&&I.marker.maxdisplayed>0&&E{"use strict";Xq.exports={container:"marker",min:"cmin",max:"cmax"}});var Jq=me((C2e,jq)=>{"use strict";var jx=Xi();jq.exports=function(t,r,i){var a={},s={_fullLayout:i},l=jx.getFromTrace(s,r,"x"),f=jx.getFromTrace(s,r,"y"),h=t.orig_x;h===void 0&&(h=t.x);var v=t.orig_y;return v===void 0&&(v=t.y),a.xLabel=jx.tickText(l,l.c2l(h),!0).text,a.yLabel=jx.tickText(f,f.c2l(v),!0).text,a}});var eT=me((E2e,Kq)=>{"use strict";var K6=ja(),nm=bi(),Tue=la();function Aue(e){var t=K6.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var i=K6.select(this),a=r.trace||r[0].trace;Q6(i,a,e)}),t.selectAll("g.text").each(function(r){var i=K6.select(this),a=r.trace||r[0].trace;$6(i,a,e)}),t.selectAll("g.trace path.js-line").call(nm.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(nm.fillGroupStyle,e,!1),Tue.getComponentMethod("errorbars","style")(t)}function Q6(e,t,r){nm.pointStyle(e.selectAll("path.point"),t,r)}function $6(e,t,r){nm.textPointStyle(e.selectAll("text"),t,r)}function Mue(e,t,r){var i=t[0].trace;i.selectedpoints?(nm.selectedPointStyle(r.selectAll("path.point"),i),nm.selectedTextStyle(r.selectAll("text"),i)):(Q6(r,i,e),$6(r,i,e))}Kq.exports={style:Aue,stylePoints:Q6,styleText:$6,styleOnSelect:Mue}});var tT=me((L2e,Qq)=>{"use strict";var om=Oa(),Sue=rs();Qq.exports=function(t,r){var i,a;if(t.mode==="lines")return i=t.line.color,i&&om.opacity(i)?i:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var s=r.mcc||(t.marker||{}).color,l=r.mlcc||((t.marker||{}).line||{}).color;return a=s&&om.opacity(s)?s:l&&om.opacity(l)&&(r.mlw||((t.marker||{}).line||{}).width)?l:"",a?om.opacity(a)<.3?om.addOpacity(a,.3):a:(i=(t.line||{}).color,i&&om.opacity(i)&&Sue.hasLines(t)&&t.line.width?i:t.fillcolor)}});var tN=me((D2e,eN)=>{"use strict";var Jx=Bt(),$q=Rf(),kue=la(),Cue=tT(),rT=Oa(),Eue=Jx.fillText;eN.exports=function(t,r,i,a){var s=t.cd,l=s[0].trace,f=t.xa,h=t.ya,v=f.c2p(r),m=h.c2p(i),_=[v,m],T=l.hoveron||"",S=l.mode.indexOf("markers")!==-1?3:.5,C=!!l.xperiodalignment,D=!!l.yperiodalignment;if(T.indexOf("points")!==-1){var E=function(Ae){if(C){var we=f.c2p(Ae.xStart),Te=f.c2p(Ae.xEnd);return v>=Math.min(we,Te)&&v<=Math.max(we,Te)?0:1/0}var Ce=Math.max(3,Ae.mrc||0),Le=1-1/Ce,$e=Math.abs(f.c2p(Ae.x)-v);return $e=Math.min(we,Te)&&m<=Math.max(we,Te)?0:1/0}var Ce=Math.max(3,Ae.mrc||0),Le=1-1/Ce,$e=Math.abs(h.c2p(Ae.y)-m);return $eit!=ve>=it&&(vt=Et[We-1][0],xt=Et[We][0],ve-pt&&(nt=vt+(xt-vt)*(it-pt)/(ve-pt),Ce=Math.min(Ce,nt),Le=Math.max(Le,nt)));return Ce=Math.max(Ce,0),Le=Math.min(Le,f._length),{x0:Ce,x1:Le,y0:it,y1:it}}if(T.indexOf("fills")!==-1&&l._fillElement){var de=oe(l._fillElement)&&!oe(l._fillExclusionElement);if(de){var Me=fe(l._polygons);Me===null&&(Me={x0:_[0],x1:_[0],y0:_[1],y1:_[1]});var Se=rT.defaultLine;return rT.opacity(l.fillcolor)?Se=l.fillcolor:rT.opacity((l.line||{}).color)&&(Se=l.line.color),Jx.extendFlat(t,{distance:t.maxHoverDistance,x0:Me.x0,x1:Me.x1,y0:Me.y0,y1:Me.y1,color:Se,hovertemplate:!1}),delete t.index,l.text&&!Jx.isArrayOrTypedArray(l.text)?t.text=String(l.text):t.text=l.name,[t]}}}});var iN=me((P2e,aN)=>{"use strict";var rN=rs();aN.exports=function(t,r){var i=t.cd,a=t.xaxis,s=t.yaxis,l=[],f=i[0].trace,h,v,m,_,T=!rN.hasMarkers(f)&&!rN.hasText(f);if(T)return[];if(r===!1)for(h=0;h{"use strict";nN.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var fN=me((I2e,uN)=>{"use strict";var Yg=la().traceIs,aT=A5();uN.exports=function(t,r,i,a){i("autotypenumbers",a.autotypenumbersDflt);var s=i("type",(a.splomStash||{}).type);s==="-"&&(Lue(r,a.data),r.type==="-"?r.type="linear":t.type=r.type)};function Lue(e,t){if(e.type==="-"){var r=e._id,i=r.charAt(0),a;r.indexOf("scene")!==-1&&(r=i);var s=Due(t,r,i);if(s){if(s.type==="histogram"&&i==={v:"y",h:"x"}[s.orientation||"v"]){e.type="linear";return}var l=i+"calendar",f=s[l],h={noMultiCategory:!Yg(s,"cartesian")||Yg(s,"noMultiCategory")};if(s.type==="box"&&s._hasPreCompStats&&i==={h:"x",v:"y"}[s.orientation||"v"]&&(h.noMultiCategory=!0),h.autotypenumbers=e.autotypenumbers,lN(s,i)){var v=sN(s),m=[];for(a=0;a0&&(a["_"+r+"axes"]||{})[t])return a;if((a[r+"axis"]||r)===t){if(lN(a,r))return a;if((a[r]||[]).length||a[r+"0"])return a}}}function sN(e){return{v:"x",h:"y"}[e.orientation||"v"]}function lN(e,t){var r=sN(e),i=Yg(e,"box-violin"),a=Yg(e._fullInput||{},"candlestick");return i&&!a&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var hN=me((R2e,cN)=>{"use strict";var Pue=al().isTypedArraySpec;function zue(e,t){var r=t.dataAttr||e._id.charAt(0),i={},a,s,l;if(t.axData)a=t.axData;else for(a=[],s=0;s0||Pue(s),f;l&&(f="array");var h=i("categoryorder",f),v;h==="array"&&(v=i("categoryarray")),!l&&h==="array"&&(h=r.categoryorder="trace"),h==="trace"?r._initialCategories=[]:h==="array"?r._initialCategories=v.slice():(v=zue(r,a).sort(),h==="category ascending"?r._initialCategories=v:h==="category descending"&&(r._initialCategories=v.reverse()))}}});var pN=me((F2e,dN)=>{"use strict";var vN=Tf().mix,Iue=Af(),Rue=Bt();dN.exports=function(t,r,i,a){a=a||{};var s=a.dfltColor;function l(W,J){return Rue.coerce2(t,r,a.attributes,W,J)}var f=l("linecolor",s),h=l("linewidth"),v=i("showline",a.showLine||!!f||!!h);v||(delete r.linecolor,delete r.linewidth);var m=vN(s,a.bgColor,a.blend||Iue.lightFraction).toRgbString(),_=l("gridcolor",m),T=l("gridwidth"),S=l("griddash"),C=i("showgrid",a.showGrid||!!_||!!T||!!S);if(C||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),a.hasMinor){var D=vN(r.gridcolor,a.bgColor,67).toRgbString(),E=l("minor.gridcolor",D),I=l("minor.gridwidth",r.gridwidth||1),B=l("minor.griddash",r.griddash||"solid"),q=i("minor.showgrid",!!E||!!I||!!B);q||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!a.noZeroLine){var z=l("zerolinelayer"),O=l("zerolinecolor",s),H=l("zerolinewidth"),V=i("zeroline",a.showGrid||!!O||!!H);V||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var nT=me((q2e,bN)=>{"use strict";var mN=Da(),Fue=la(),Wg=Bt(),que=Ri(),Nue=Wl(),iT=Ru(),yN=Ww(),gN=jw(),Bue=Qw(),Oue=$w(),Uue=hN(),Vue=pN(),Hue=G5(),_N=i2(),Kx=Ao().WEEKDAY_PATTERN,Gue=Ao().HOUR_PATTERN;bN.exports=function(t,r,i,a,s){var l=a.letter,f=a.font||{},h=a.splomStash||{},v=i("visible",!a.visibleDflt),m=r._template||{},_=r.type||m.type||"-",T;if(_==="date"){var S=Fue.getComponentMethod("calendars","handleDefaults");S(t,r,"calendar",a.calendar),a.noTicklabelmode||(T=i("ticklabelmode"))}!a.noTicklabelindex&&(_==="date"||_==="linear")&&i("ticklabelindex");var C="";(!a.noTicklabelposition||_==="multicategory")&&(C=Wg.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:T==="period"?["outside","inside"]:l==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||i("ticklabeloverflow",C.indexOf("inside")!==-1?"hide past domain":_==="category"||_==="multicategory"?"allow":"hide past div"),_N(r,s),Hue(t,r,i,a),Uue(t,r,i,a),a.noHover||(_!=="category"&&i("hoverformat"),a.noUnifiedhovertitle||i("unifiedhovertitle.text"));var D=i("color"),E=D!==iT.color.dflt?D:f.color,I=h.label||s._dfltTitle[l];if(Oue(t,r,i,_,a),!v)return r;i("title.text",I),Wg.coerceFont(i,"title.font",f,{overrideDflt:{size:Wg.bigFont(f.size),color:E}}),yN(t,r,i,_);var B=a.hasMinor;if(B&&(que.newContainer(r,"minor"),yN(t,r,i,_,{isMinor:!0})),Bue(t,r,i,_,a),gN(t,r,i,a),B){var q=a.isMinor;a.isMinor=!0,gN(t,r,i,a),a.isMinor=q}Vue(t,r,i,{dfltColor:D,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:B,attributes:iT}),B&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&i("mirror");var z=_==="multicategory";if(!a.noTickson&&(_==="category"||z)&&(r.ticks||r.showgrid)&&(z?(i("tickson","boundaries"),delete r.ticklabelposition):i("tickson")),z){var O=i("showdividers");O&&(i("dividercolor"),i("dividerwidth"))}if(_==="date")if(Nue(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Zue}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var H=0;H=2){var l="",f,h;if(s.length===2){for(f=0;f<2;f++)if(h=xN(s[f]),h){l=Kx;break}}var v=i("pattern",l);if(v===Kx)for(f=0;f<2;f++)h=xN(s[f]),h&&(t.bounds[f]=s[f]=h-1);if(v)for(f=0;f<2;f++)switch(h=s[f],v){case Kx:if(!mN(h)){t.enabled=!1;return}if(h=+h,h!==Math.floor(h)||h<0||h>=7){t.enabled=!1;return}t.bounds[f]=s[f]=h;break;case Gue:if(!mN(h)){t.enabled=!1;return}if(h=+h,h<0||h>24){t.enabled=!1;return}t.bounds[f]=s[f]=h;break}if(r.autorange===!1){var m=r.range;if(m[0]m[1]){t.enabled=!1;return}}else if(s[0]>m[0]&&s[1]{"use strict";var Wue=Da(),Qx=Bt();wN.exports=function(t,r,i,a){var s=a.counterAxes||[],l=a.overlayableAxes||[],f=a.letter,h=a.grid,v=a.overlayingDomain,m,_,T,S,C,D;h&&(_=h._domains[f][h._axisMap[r._id]],m=h._anchors[r._id],_&&(T=h[f+"side"].split(" ")[0],S=h.domain[f][T==="right"||T==="top"?1:0])),_=_||[0,1],m=m||(Wue(t.position)?"free":s[0]||"free"),T=T||(f==="x"?"bottom":"left"),S=S||0,C=0,D=!1;var E=Qx.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(s),dflt:m}},"anchor"),I=Qx.coerce(t,r,{side:{valType:"enumerated",values:f==="x"?["bottom","top"]:["left","right"],dflt:T}},"side");if(E==="free"){if(f==="y"){var B=i("autoshift");B&&(S=I==="left"?v[0]:v[1],D=r.automargin?r.automargin:!0,C=I==="left"?-3:3),i("shift",C)}i("position",S)}i("automargin",D);var q=!1;if(l.length&&(q=Qx.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!q){var z=i("domain",_);z[0]>z[1]-1/4096&&(r.domain=_),Qx.noneOrAll(t.domain,r.domain,_),r.tickmode==="sync"&&(r.tickmode="auto")}return i("layer"),r}});var DN=me((B2e,LN)=>{"use strict";var Id=Bt(),TN=Oa(),Xue=bc().isUnifiedHover,jue=y4(),AN=Ri(),Jue=d0(),MN=Ru(),Kue=fN(),SN=nT(),Que=hg(),kN=oT(),lT=Xn(),Uf=lT.id2name,CN=lT.name2id,$ue=Ao().AX_ID_PATTERN,EN=la(),$x=EN.traceIs,sT=EN.getComponentMethod;function eb(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}LN.exports=function(t,r,i){var a=r.autotypenumbers,s={},l={},f={},h={},v={},m={},_={},T={},S={},C={},D,E;for(D=0;D{"use strict";var efe=ja(),PN=la(),tb=Bt(),hl=bi(),rb=Xi();zN.exports=function(t,r,i,a){var s=t._fullLayout;if(r.length===0){rb.redrawComponents(t);return}function l(E){var I=E.xaxis,B=E.yaxis;s._defs.select("#"+E.clipId+"> rect").call(hl.setTranslate,0,0).call(hl.setScale,1,1),E.plot.call(hl.setTranslate,I._offset,B._offset).call(hl.setScale,1,1);var q=E.plot.selectAll(".scatterlayer .trace");q.selectAll(".point").call(hl.setPointGroupScale,1,1),q.selectAll(".textpoint").call(hl.setTextPointsScale,1,1),q.call(hl.hideOutsideRangePoints,E)}function f(E,I){var B=E.plotinfo,q=B.xaxis,z=B.yaxis,O=q._length,H=z._length,V=!!E.xr1,W=!!E.yr1,J=[];if(V){var te=tb.simpleMap(E.xr0,q.r2l),ne=tb.simpleMap(E.xr1,q.r2l),oe=te[1]-te[0],fe=ne[1]-ne[0];J[0]=(te[0]*(1-I)+I*ne[0]-te[0])/(te[1]-te[0])*O,J[2]=O*(1-I+I*fe/oe),q.range[0]=q.l2r(te[0]*(1-I)+I*ne[0]),q.range[1]=q.l2r(te[1]*(1-I)+I*ne[1])}else J[0]=0,J[2]=O;if(W){var de=tb.simpleMap(E.yr0,z.r2l),Me=tb.simpleMap(E.yr1,z.r2l),Se=de[1]-de[0],Ae=Me[1]-Me[0];J[1]=(de[1]*(1-I)+I*Me[1]-de[1])/(de[0]-de[1])*H,J[3]=H*(1-I+I*Ae/Se),z.range[0]=q.l2r(de[0]*(1-I)+I*Me[0]),z.range[1]=z.l2r(de[1]*(1-I)+I*Me[1])}else J[1]=0,J[3]=H;rb.drawOne(t,q,{skipTitle:!0}),rb.drawOne(t,z,{skipTitle:!0}),rb.redrawComponents(t,[q._id,z._id]);var we=V?O/J[2]:1,Te=W?H/J[3]:1,Ce=V?J[0]:0,Le=W?J[1]:0,$e=V?J[0]/J[2]*O:0,ot=W?J[1]/J[3]*H:0,it=q._offset-$e,bt=z._offset-ot;B.clipRect.call(hl.setTranslate,Ce,Le).call(hl.setScale,1/we,1/Te),B.plot.call(hl.setTranslate,it,bt).call(hl.setScale,we,Te),hl.setPointGroupScale(B.zoomScalePts,1/we,1/Te),hl.setTextPointsScale(B.zoomScaleTxt,1/we,1/Te)}var h;a&&(h=a());function v(){for(var E={},I=0;Ii.duration?(v(),S=window.cancelAnimationFrame(D)):S=window.requestAnimationFrame(D)}return _=Date.now(),S=window.requestAnimationFrame(D),Promise.resolve()}});var uT=me(Oo=>{"use strict";var ib=ja(),RN=la(),Rd=Bt(),tfe=eo(),rfe=bi(),FN=F_().getModuleCalcData,Xh=Xn(),Hu=Ao(),afe=zh(),ni=Rd.ensureSingle;function ab(e,t,r){return Rd.ensureSingle(e,t,r,function(i){i.datum(r)})}var Fd=Hu.zindexSeparator;Oo.name="cartesian";Oo.attr=["xaxis","yaxis"];Oo.idRoot=["x","y"];Oo.idRegex=Hu.idRegex;Oo.attrRegex=Hu.attrRegex;Oo.attributes=oN();Oo.layoutAttributes=Ru();Oo.supplyLayoutDefaults=DN();Oo.transitionAxes=IN();Oo.finalizeSubplots=function(e,t){var r=t._subplots,i=r.xaxis,a=r.yaxis,s=r.cartesian,l=s,f={},h={},v,m,_;for(v=0;v0){var S=T.id;if(S.indexOf(Fd)!==-1)continue;S+=Fd+(v+1),T=Rd.extendFlat({},T,{id:S,plot:a._cartesianlayer.selectAll(".subplot").select("."+S)})}for(var C=[],D,E=0;E1&&(O+=Fd+z),q.push(f+O),l=0;l1,_=t.mainplotinfo;if(!t.mainplot||m)if(v)t.xlines=ni(i,"path","xlines-above"),t.ylines=ni(i,"path","ylines-above"),t.xaxislayer=ni(i,"g","xaxislayer-above"),t.yaxislayer=ni(i,"g","yaxislayer-above");else{if(!l){var T=ni(i,"g","layer-subplot");t.shapelayer=ni(T,"g","shapelayer"),t.imagelayer=ni(T,"g","imagelayer"),_&&m?(t.minorGridlayer=_.minorGridlayer,t.gridlayer=_.gridlayer,t.zerolinelayer=_.zerolinelayer):(t.minorGridlayer=ni(i,"g","minor-gridlayer"),t.gridlayer=ni(i,"g","gridlayer"),t.zerolinelayer=ni(i,"g","zerolinelayer"));var S=ni(i,"g","layer-between");t.shapelayerBetween=ni(S,"g","shapelayer"),t.imagelayerBetween=ni(S,"g","imagelayer"),ni(i,"path","xlines-below"),ni(i,"path","ylines-below"),t.overlinesBelow=ni(i,"g","overlines-below"),ni(i,"g","xaxislayer-below"),ni(i,"g","yaxislayer-below"),t.overaxesBelow=ni(i,"g","overaxes-below")}t.overplot=ni(i,"g","overplot"),t.plot=ni(t.overplot,"g",a),_&&m?t.zerolinelayerAbove=_.zerolinelayerAbove:t.zerolinelayerAbove=ni(i,"g","zerolinelayer-above"),l||(t.xlines=ni(i,"path","xlines-above"),t.ylines=ni(i,"path","ylines-above"),t.overlinesAbove=ni(i,"g","overlines-above"),ni(i,"g","xaxislayer-above"),ni(i,"g","yaxislayer-above"),t.overaxesAbove=ni(i,"g","overaxes-above"),t.xlines=i.select(".xlines-"+f),t.ylines=i.select(".ylines-"+h),t.xaxislayer=i.select(".xaxislayer-"+f),t.yaxislayer=i.select(".yaxislayer-"+h))}else{var C=_.plotgroup,D=a+"-x",E=a+"-y";t.minorGridlayer=_.minorGridlayer,t.gridlayer=_.gridlayer,t.zerolinelayer=_.zerolinelayer,t.zerolinelayerAbove=_.zerolinelayerAbove,ni(_.overlinesBelow,"path",D),ni(_.overlinesBelow,"path",E),ni(_.overaxesBelow,"g",D),ni(_.overaxesBelow,"g",E),t.plot=ni(_.overplot,"g",a),ni(_.overlinesAbove,"path",D),ni(_.overlinesAbove,"path",E),ni(_.overaxesAbove,"g",D),ni(_.overaxesAbove,"g",E),t.xlines=C.select(".overlines-"+f).select("."+D),t.ylines=C.select(".overlines-"+h).select("."+E),t.xaxislayer=C.select(".overaxes-"+f).select("."+D),t.yaxislayer=C.select(".overaxes-"+h).select("."+E)}l||(v||(ab(t.minorGridlayer,"g",t.xaxis._id),ab(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(I){return I[0]}).sort(Xh.idSort),ab(t.gridlayer,"g",t.xaxis._id),ab(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(I){return I[0]}).sort(Xh.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function BN(e,t){if(e){var r={};e.each(function(h){var v=h[0],m=ib.select(this);m.remove(),ON(v,t),r[v]=!0});for(var i in t._plots)for(var a=t._plots[i],s=a.overlays||[],l=0;l{"use strict";var nb=rs();UN.exports={hasLines:nb.hasLines,hasMarkers:nb.hasMarkers,hasText:nb.hasText,isBubble:nb.isBubble,attributes:kc(),layoutAttributes:z_(),supplyDefaults:tq(),crossTraceDefaults:nq(),supplyLayoutDefaults:sq(),calc:H6().calc,crossTraceCalc:zq(),arraysToCalcdata:Ug(),plot:Wq(),colorbar:J6(),formatLabels:Jq(),style:eT().style,styleOnSelect:eT().styleOnSelect,hoverPoints:tN(),selectPoints:iN(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:uT(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var ZN=me((H2e,GN)=>{"use strict";var nfe=ja(),ofe=Oa(),HN=n6(),fT=Bt(),sfe=fT.strScale,lfe=fT.strRotate,ufe=fT.strTranslate;GN.exports=function(t,r,i){var a=t.node(),s=HN[i.arrowhead||0],l=HN[i.startarrowhead||0],f=(i.arrowwidth||1)*(i.arrowsize||1),h=(i.arrowwidth||1)*(i.startarrowsize||1),v=r.indexOf("start")>=0,m=r.indexOf("end")>=0,_=s.backoff*f+i.standoff,T=l.backoff*h+i.startstandoff,S,C,D,E;if(a.nodeName==="line"){S={x:+t.attr("x1"),y:+t.attr("y1")},C={x:+t.attr("x2"),y:+t.attr("y2")};var I=S.x-C.x,B=S.y-C.y;if(D=Math.atan2(B,I),E=D+Math.PI,_&&T&&_+T>Math.sqrt(I*I+B*B)){de();return}if(_){if(_*_>I*I+B*B){de();return}var q=_*Math.cos(D),z=_*Math.sin(D);C.x+=q,C.y+=z,t.attr({x2:C.x,y2:C.y})}if(T){if(T*T>I*I+B*B){de();return}var O=T*Math.cos(D),H=T*Math.sin(D);S.x-=O,S.y-=H,t.attr({x1:S.x,y1:S.y})}}else if(a.nodeName==="path"){var V=a.getTotalLength(),W="";if(V<_+T){de();return}var J=a.getPointAtLength(0),te=a.getPointAtLength(.1);D=Math.atan2(J.y-te.y,J.x-te.x),S=a.getPointAtLength(Math.min(T,V)),W="0px,"+T+"px,";var ne=a.getPointAtLength(V),oe=a.getPointAtLength(V-.1);E=Math.atan2(ne.y-oe.y,ne.x-oe.x),C=a.getPointAtLength(Math.max(0,V-_));var fe=W?T+_:_;W+=V-fe+"px,"+V+"px",t.style("stroke-dasharray",W)}function de(){t.style("stroke-dasharray","0px,100px")}function Me(Se,Ae,we,Te){Se.path&&(Se.noRotate&&(we=0),nfe.select(a.parentNode).append("path").attr({class:t.attr("class"),d:Se.path,transform:ufe(Ae.x,Ae.y)+lfe(we*180/Math.PI)+sfe(Te)}).style({fill:ofe.rgb(i.arrowcolor),"stroke-width":0}))}v&&Me(l,S,D,h),m&&Me(s,C,E,f)}});var ob=me((G2e,JN)=>{"use strict";var YN=ja(),cT=la(),ffe=eo(),Jh=Bt(),hT=Jh.strTranslate,jg=Xi(),qd=Oa(),Ec=bi(),WN=Rf(),vT=co(),dT=Oh(),Xg=jl(),cfe=Ri().arrayEditor,hfe=ZN();JN.exports={draw:vfe,drawOne:XN,drawRaw:jN};function vfe(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?dt="right":dt="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[dt]}for(var pt=!1,ve=["x","y"],ze=0;ze1)&&(yt===at?(Sr=Xe.r2fraction(t["a"+pe]),(Sr<0||Sr>1)&&(pt=!0)):pt=!0),Ut=Xe._offset+Xe.r2p(t[pe]),ft=.5}else{var Oe=Cr==="domain";pe==="x"?(Be=t[pe],Ut=Oe?Xe._offset+Xe._length*Be:Ut=f.l+f.w*Be):(Be=1-t[pe],Ut=Oe?Xe._offset+Xe._length*Be:Ut=f.t+f.h*Be),ft=t.showarrow?.5:Be}if(t.showarrow){Mt.head=Ut;var gt=t["a"+pe];if(or=Lt*xt(.5,t.xanchor)-Tt*xt(.5,t.yanchor),yt===at){var qt=jg.getRefType(yt);qt==="domain"?(pe==="y"&&(gt=1-gt),Mt.tail=Xe._offset+Xe._length*gt):qt==="paper"?pe==="y"?(gt=1-gt,Mt.tail=f.t+f.h*gt):Mt.tail=f.l+f.w*gt:Mt.tail=Xe._offset+Xe.r2p(gt),Ot=or}else Mt.tail=Ut+gt,Ot=or+gt;Mt.text=Mt.tail+or;var Qt=l[pe==="x"?"width":"height"];if(at==="paper"&&(Mt.head=Jh.constrain(Mt.head,1,Qt-1)),yt==="pixel"){var Vt=-Math.max(Mt.tail-3,Mt.text),tr=Math.min(Mt.tail+3,Mt.text)-Qt;Vt>0?(Mt.tail+=Vt,Mt.text+=Vt):tr>0&&(Mt.tail-=tr,Mt.text-=tr)}Mt.tail+=Ct,Mt.head+=Ct}else or=It*xt(ft,Gt),Ot=or,Mt.text=Ut+or;Mt.text+=Ct,or+=Ct,Ot+=Ct,t["_"+pe+"padplus"]=It/2+Ot,t["_"+pe+"padminus"]=It/2-Ot,t["_"+pe+"size"]=It,t["_"+pe+"shift"]=or}if(pt){V.remove();return}var ar=0,zr=0;if(t.align!=="left"&&(ar=(We-it)*(t.align==="center"?.5:1)),t.valign!=="top"&&(zr=(Et-bt)*(t.valign==="middle"?.5:1)),$e)Le.select("svg").attr({x:te+ar-1,y:te+zr}).call(Ec.setClipUrl,oe?D:null,e);else{var lr=te+zr-ot.top,At=te+ar-ot.left;Se.call(vT.positionText,At,lr).call(Ec.setClipUrl,oe?D:null,e)}fe.select("rect").call(Ec.setRect,te,te,We,Et),ne.call(Ec.setRect,W/2,W/2,nt-W,vt-W),V.call(Ec.setTranslate,Math.round(E.x.text-nt/2),Math.round(E.y.text-vt/2)),q.attr({transform:"rotate("+I+","+E.x.text+","+E.y.text+")"});var Fe=function(wt,dt){B.selectAll(".annotation-arrow-g").remove();var gr=E.x.head,xr=E.y.head,mr=E.x.tail+wt,Hr=E.y.tail+dt,pa=E.x.text+wt,Ea=E.y.text+dt,Ua=Jh.rotationXYMatrix(I,pa,Ea),Ki=Jh.apply2DTransform(Ua),qi=Jh.apply2DTransform2(Ua),vi=+ne.attr("width"),Ti=+ne.attr("height"),$i=pa-.5*vi,on=$i+vi,Ei=Ea-.5*Ti,ma=Ei+Ti,Gr=[[$i,Ei,$i,ma],[$i,ma,on,ma],[on,ma,on,Ei],[on,Ei,$i,Ei]].map(qi);if(!Gr.reduce(function(He,mt){return He^!!Jh.segmentsIntersect(gr,xr,gr+1e6,xr+1e6,mt[0],mt[1],mt[2],mt[3])},!1)){Gr.forEach(function(He){var mt=Jh.segmentsIntersect(mr,Hr,gr,xr,He[0],He[1],He[2],He[3]);mt&&(mr=mt.x,Hr=mt.y)});var Qa=t.arrowwidth,Zr=t.arrowcolor,di=t.arrowside,ga=B.append("g").style({opacity:qd.opacity(Zr)}).classed("annotation-arrow-g",!0),le=ga.append("path").attr("d","M"+mr+","+Hr+"L"+gr+","+xr).style("stroke-width",Qa+"px").call(qd.stroke,qd.rgb(Zr));if(hfe(le,di,t),h.annotationPosition&&le.node().parentNode&&!i){var ee=gr,se=xr;if(t.standoff){var ce=Math.sqrt(Math.pow(gr-mr,2)+Math.pow(xr-Hr,2));ee+=t.standoff*(mr-gr)/ce,se+=t.standoff*(Hr-xr)/ce}var Ee=ga.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(mr-ee)+","+(Hr-se),transform:hT(ee,se)}).style("stroke-width",Qa+6+"px").call(qd.stroke,"rgba(0,0,0,0)").call(qd.fill,"rgba(0,0,0,0)"),Ne,rt;Xg.init({element:Ee.node(),gd:e,prepFn:function(){var He=Ec.getTranslate(V);Ne=He.x,rt=He.y,a&&a.autorange&&T(a._name+".autorange",!0),s&&s.autorange&&T(s._name+".autorange",!0)},moveFn:function(He,mt){var Dt=Ki(Ne,rt),Rt=Dt[0]+He,$t=Dt[1]+mt;V.call(Ec.setTranslate,Rt,$t),S("x",jh(a,He,"x",f,t)),S("y",jh(s,mt,"y",f,t)),t.axref===t.xref&&S("ax",jh(a,He,"ax",f,t)),t.ayref===t.yref&&S("ay",jh(s,mt,"ay",f,t)),ga.attr("transform",hT(He,mt)),q.attr({transform:"rotate("+I+","+Rt+","+$t+")"})},doneFn:function(){cT.call("_guiRelayout",e,C());var He=document.querySelector(".js-notes-box-panel");He&&He.redraw(He.selectedObj)}})}}};if(t.showarrow&&Fe(0,0),z){var Ge;Xg.init({element:V.node(),gd:e,prepFn:function(){Ge=q.attr("transform")},moveFn:function(wt,dt){var gr="pointer";if(t.showarrow)t.axref===t.xref?S("ax",jh(a,wt,"ax",f,t)):S("ax",t.ax+wt),t.ayref===t.yref?S("ay",jh(s,dt,"ay",f.w,t)):S("ay",t.ay+dt),Fe(wt,dt);else{if(i)return;var xr,mr;if(a)xr=jh(a,wt,"x",f,t);else{var Hr=t._xsize/f.w,pa=t.x+(t._xshift-t.xshift)/f.w-Hr/2;xr=Xg.align(pa+wt/f.w,Hr,0,1,t.xanchor)}if(s)mr=jh(s,dt,"y",f,t);else{var Ea=t._ysize/f.h,Ua=t.y-(t._yshift+t.yshift)/f.h-Ea/2;mr=Xg.align(Ua-dt/f.h,Ea,0,1,t.yanchor)}S("x",xr),S("y",mr),(!a||!s)&&(gr=Xg.getCursor(a?.5:xr,s?.5:mr,t.xanchor,t.yanchor))}q.attr({transform:hT(wt,dt)+Ge}),dT(V,gr)},clickFn:function(wt,dt){t.captureevents&&e.emit("plotly_clickannotation",H(dt))},doneFn:function(){dT(V),cT.call("_guiRelayout",e,C());var wt=document.querySelector(".js-notes-box-panel");wt&&wt.redraw(wt.selectedObj)}})}}h.annotationText?Se.call(vT.makeEditable,{delegate:V,gd:e}).call(Ae).on("edit",function(Te){t.text=Te,this.call(Ae),S("text",Te),a&&a.autorange&&T(a._name+".autorange",!0),s&&s.autorange&&T(s._name+".autorange",!0),cT.call("_guiRelayout",e,C())}):Se.call(Ae)}});var rB=me((Z2e,tB)=>{"use strict";var KN=Bt(),dfe=la(),QN=Ri().arrayEditor;tB.exports={hasClickToShow:pfe,onClick:mfe};function pfe(e,t){var r=eB(e,t);return r.on.length>0||r.explicitOff.length>0}function mfe(e,t){var r=eB(e,t),i=r.on,a=r.off.concat(r.explicitOff),s={},l=e._fullLayout.annotations,f,h;if(i.length||a.length){for(f=0;f{"use strict";var pT=Bt(),sm=Oa();aB.exports=function(t,r,i,a){a("opacity");var s=a("bgcolor"),l=a("bordercolor"),f=sm.opacity(l);a("borderpad");var h=a("borderwidth"),v=a("showarrow");a("text",v?" ":i._dfltTitle.annotation),a("textangle"),pT.coerceFont(a,"font",i.font),a("width"),a("align");var m=a("height");if(m&&a("valign"),v){var _=a("arrowside"),T,S;_.indexOf("end")!==-1&&(T=a("arrowhead"),S=a("arrowsize")),_.indexOf("start")!==-1&&(a("startarrowhead",T),a("startarrowsize",S)),a("arrowcolor",f?r.bordercolor:sm.defaultLine),a("arrowwidth",(f&&h||1)*2),a("standoff"),a("startstandoff")}var C=a("hovertext"),D=i.hoverlabel||{};if(C){var E=a("hoverlabel.bgcolor",D.bgcolor||(sm.opacity(s)?sm.rgb(s):sm.defaultLine)),I=a("hoverlabel.bordercolor",D.bordercolor||sm.contrast(E)),B=pT.extendFlat({},D.font);B.color||(B.color=I),pT.coerceFont(a,"hoverlabel.font",B)}a("captureevents",!!C)}});var nB=me((W2e,iB)=>{"use strict";var yT=Bt(),Nd=Xi(),yfe=Wl(),gfe=mT(),_fe=Q0();iB.exports=function(t,r){yfe(t,r,{name:"annotations",handleItemDefaults:xfe})};function xfe(e,t,r){function i(q,z){return yT.coerce(e,t,_fe,q,z)}var a=i("visible"),s=i("clicktoshow");if(a||s){gfe(e,t,r,i);for(var l=t.showarrow,f=["x","y"],h=[-10,-30],v={_fullLayout:r},m=0;m<2;m++){var _=f[m],T=Nd.coerceRef(e,t,v,_,"","paper");if(T!=="paper"){var S=Nd.getFromId(v,T);S._annIndices.push(t._index)}if(Nd.coercePosition(t,v,i,T,_,.5),l){var C="a"+_,D=Nd.coerceRef(e,t,v,C,"pixel",["pixel","paper"]);D!=="pixel"&&D!==T&&(D=t[C]="pixel");var E=D==="pixel"?h[m]:.4;Nd.coercePosition(t,v,i,D,C,E)}i(_+"anchor"),i(_+"shift")}if(yT.noneOrAll(e,t,["x","y"]),l&&yT.noneOrAll(e,t,["ax","ay"]),s){var I=i("xclick"),B=i("yclick");t._xclick=I===void 0?t.x:Nd.cleanPosition(I,v,t.xref),t._yclick=B===void 0?t.y:Nd.cleanPosition(B,v,t.yref)}}}});var lB=me((X2e,sB)=>{"use strict";var gT=Bt(),Bd=Xi(),bfe=ob().draw;sB.exports=function(t){var r=t._fullLayout,i=gT.filterVisible(r.annotations);if(i.length&&t._fullData.length)return gT.syncOrAsync([bfe,wfe],t)};function wfe(e){var t=e._fullLayout;gT.filterVisible(t.annotations).forEach(function(r){var i=Bd.getFromId(e,r.xref),a=Bd.getFromId(e,r.yref),s=Bd.getRefType(r.xref),l=Bd.getRefType(r.yref);r._extremes={},s==="range"&&oB(r,i),l==="range"&&oB(r,a)})}function oB(e,t){var r=t._id,i=r.charAt(0),a=e[i],s=e["a"+i],l=e[i+"ref"],f=e["a"+i+"ref"],h=e["_"+i+"padplus"],v=e["_"+i+"padminus"],m={x:1,y:-1}[i]*e[i+"shift"],_=3*e.arrowsize*e.arrowwidth||0,T=_+m,S=_-m,C=3*e.startarrowsize*e.arrowwidth||0,D=C+m,E=C-m,I;if(f===l){var B=Bd.findExtremes(t,[t.r2c(a)],{ppadplus:T,ppadminus:S}),q=Bd.findExtremes(t,[t.r2c(s)],{ppadplus:Math.max(h,D),ppadminus:Math.max(v,E)});I={min:[B.min[0],q.min[0]],max:[B.max[0],q.max[0]]}}else D=s?D+s:D,E=s?E-s:E,I=Bd.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(h,T,D),ppadminus:Math.max(v,S,E)});e._extremes[r]=I}});var fB=me((j2e,uB)=>{"use strict";var Tfe=Da(),Afe=$1();uB.exports=function(t,r,i,a){r=r||{};var s=i==="log"&&r.type==="linear",l=i==="linear"&&r.type==="log";if(!(s||l))return;var f=t._fullLayout.annotations,h=r._id.charAt(0),v,m;function _(S){var C=v[S],D=null;s?D=Afe(C,r.range):D=Math.pow(10,C),Tfe(D)||(D=null),a(m+S,D)}for(var T=0;T{"use strict";var _T=ob(),cB=rB();hB.exports={moduleType:"component",name:"annotations",layoutAttributes:Q0(),supplyLayoutDefaults:nB(),includeBasePlot:Eg()("annotations"),calcAutorange:lB(),draw:_T.draw,drawOne:_T.drawOne,drawRaw:_T.drawRaw,hasClickToShow:cB.hasClickToShow,onClick:cB.onClick,convertCoords:fB()}});var sb=me((K2e,dB)=>{"use strict";var Ui=Q0(),Mfe=il().overrideAll,Sfe=Ri().templatedArray;dB.exports=Mfe(Sfe("annotation",{visible:Ui.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Ui.xanchor,xshift:Ui.xshift,yanchor:Ui.yanchor,yshift:Ui.yshift,text:Ui.text,textangle:Ui.textangle,font:Ui.font,width:Ui.width,height:Ui.height,opacity:Ui.opacity,align:Ui.align,valign:Ui.valign,bgcolor:Ui.bgcolor,bordercolor:Ui.bordercolor,borderpad:Ui.borderpad,borderwidth:Ui.borderwidth,showarrow:Ui.showarrow,arrowcolor:Ui.arrowcolor,arrowhead:Ui.arrowhead,startarrowhead:Ui.startarrowhead,arrowside:Ui.arrowside,arrowsize:Ui.arrowsize,startarrowsize:Ui.startarrowsize,arrowwidth:Ui.arrowwidth,standoff:Ui.standoff,startstandoff:Ui.startstandoff,hovertext:Ui.hovertext,hoverlabel:Ui.hoverlabel,captureevents:Ui.captureevents}),"calc","from-root")});var mB=me((Q2e,pB)=>{"use strict";var xT=Bt(),kfe=Xi(),Cfe=Wl(),Efe=mT(),Lfe=sb();pB.exports=function(t,r,i){Cfe(t,r,{name:"annotations",handleItemDefaults:Dfe,fullLayout:i.fullLayout})};function Dfe(e,t,r,i){function a(f,h){return xT.coerce(e,t,Lfe,f,h)}function s(f){var h=f+"axis",v={_fullLayout:{}};return v._fullLayout[h]=r[h],kfe.coercePosition(t,v,a,f,f,.5)}var l=a("visible");l&&(Efe(e,t,i.fullLayout,a),s("x"),s("y"),s("z"),xT.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",a("ax",-10),a("ay",-30),xT.noneOrAll(e,t,["ax","ay"])))}});var xB=me(($2e,_B)=>{"use strict";var yB=Bt(),gB=Xi();_B.exports=function(t){for(var r=t.fullSceneLayout,i=r.annotations,a=0;a{"use strict";function bT(e,t){var r=[0,0,0,0],i,a;for(i=0;i<4;++i)for(a=0;a<4;++a)r[a]+=e[4*i+a]*t[i];return r}function zfe(e,t){var r=bT(e.projection,bT(e.view,bT(e.model,[t[0],t[1],t[2],1])));return r}bB.exports=zfe});var AB=me((txe,TB)=>{"use strict";var Ife=ob().drawRaw,Rfe=wB(),Ffe=["x","y","z"];TB.exports=function(t){for(var r=t.fullSceneLayout,i=t.dataScale,a=r.annotations,s=0;s1){f=!0;break}}f?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+s+'"]').remove():(l._pdata=Rfe(t.glplot.cameraParams,[r.xaxis.r2l(l.x)*i[0],r.yaxis.r2l(l.y)*i[1],r.zaxis.r2l(l.z)*i[2]]),Ife(t.graphDiv,l,s,t.id,l._xa,l._ya))}}});var kB=me((rxe,SB)=>{"use strict";var qfe=la(),MB=Bt();SB.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:sb()}}},layoutAttributes:sb(),handleDefaults:mB(),includeBasePlot:Nfe,convert:xB(),draw:AB()};function Nfe(e,t){var r=qfe.subplotsRegistry.gl3d;if(r)for(var i=r.attrRegex,a=Object.keys(e),s=0;s{"use strict";var CB=Q0(),EB=qo(),LB=kc().line,Bfe=hc().dash,Gu=mn().extendFlat,Ofe=Ri().templatedArray,axe=Cg(),lm=ms(),Ufe=nl().shapeTexttemplateAttrs,Vfe=f_();DB.exports=Ofe("shape",{visible:Gu({},lm.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Gu({},lm.legend,{editType:"calc+arraydraw"}),legendgroup:Gu({},lm.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Gu({},lm.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:EB({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Gu({},lm.legendrank,{editType:"calc+arraydraw"}),legendwidth:Gu({},lm.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Gu({},CB.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Gu({},CB.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Gu({},LB.color,{editType:"arraydraw"}),width:Gu({},LB.width,{editType:"calc+arraydraw"}),dash:Gu({},Bfe,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Ufe({},{keys:Object.keys(Vfe)}),font:EB({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var IB=me((nxe,zB)=>{"use strict";var Jg=Bt(),um=Xi(),Hfe=Wl(),Gfe=wT(),PB=Hh();zB.exports=function(t,r){Hfe(t,r,{name:"shapes",handleItemDefaults:Yfe})};function Zfe(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function Yfe(e,t,r){function i(Te,Ce){return Jg.coerce(e,t,Gfe,Te,Ce)}t._isShape=!0;var a=i("visible");if(a){var s=i("showlegend");s&&(i("legend"),i("legendwidth"),i("legendgroup"),i("legendgrouptitle.text"),Jg.coerceFont(i,"legendgrouptitle.font"),i("legendrank"));var l=i("path"),f=l?"path":"rect",h=i("type",f),v=h!=="path";v&&delete t.path,i("editable"),i("layer"),i("opacity"),i("fillcolor"),i("fillrule");var m=i("line.width");m&&(i("line.color"),i("line.dash"));for(var _=i("xsizemode"),T=i("ysizemode"),S=["x","y"],C=0;C<2;C++){var D=S[C],E=D+"anchor",I=D==="x"?_:T,B={_fullLayout:r},q,z,O,H=um.coerceRef(e,t,B,D,void 0,"paper"),V=um.getRefType(H);if(V==="range"?(q=um.getFromId(B,H),q._shapeIndices.push(t._index),O=PB.rangeToShapePosition(q),z=PB.shapePositionToRange(q),(q.type==="category"||q.type==="multicategory")&&(i(D+"0shift"),i(D+"1shift"))):z=O=Jg.identity,v){var W=.25,J=.75,te=D+"0",ne=D+"1",oe=e[te],fe=e[ne];e[te]=z(e[te],!0),e[ne]=z(e[ne],!0),I==="pixel"?(i(te,0),i(ne,10)):(um.coercePosition(t,B,i,H,te,W),um.coercePosition(t,B,i,H,ne,J)),t[te]=O(t[te]),t[ne]=O(t[ne]),e[te]=oe,e[ne]=fe}if(I==="pixel"){var de=e[E];e[E]=z(e[E],!0),um.coercePosition(t,B,i,H,E,.25),t[E]=O(t[E]),e[E]=de}}v&&Jg.noneOrAll(e,t,["x0","x1","y0","y1"]);var Me=h==="line",Se,Ae;if(v&&(Se=i("label.texttemplate")),Se||(Ae=i("label.text")),Ae||Se){i("label.textangle");var we=i("label.textposition",Me?"middle":"middle center");i("label.xanchor"),i("label.yanchor",Zfe(Me,we)),i("label.padding"),Jg.coerceFont(i,"label.font",r.font)}}}});var qB=me((oxe,FB)=>{"use strict";var Wfe=Oa(),RB=Bt();function Xfe(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}FB.exports=function(t,r,i){i("newshape.visible"),i("newshape.name"),i("newshape.showlegend"),i("newshape.legend"),i("newshape.legendwidth"),i("newshape.legendgroup"),i("newshape.legendgrouptitle.text"),RB.coerceFont(i,"newshape.legendgrouptitle.font"),i("newshape.legendrank"),i("newshape.drawdirection"),i("newshape.layer"),i("newshape.fillcolor"),i("newshape.fillrule"),i("newshape.opacity");var a=i("newshape.line.width");if(a){var s=(t||{}).plot_bgcolor||"#FFF";i("newshape.line.color",Wfe.contrast(s)),i("newshape.line.dash")}var l=t.dragmode==="drawline",f=i("newshape.label.text"),h=i("newshape.label.texttemplate");if(f||h){i("newshape.label.textangle");var v=i("newshape.label.textposition",l?"middle":"middle center");i("newshape.label.xanchor"),i("newshape.label.yanchor",Xfe(l,v)),i("newshape.label.padding"),RB.coerceFont(i,"newshape.label.font",r.font)}i("activeshape.fillcolor"),i("activeshape.opacity")}});var VB=me((sxe,UB)=>{"use strict";var TT=Bt(),fm=Xi(),cm=lg(),BB=Hh();UB.exports=function(t){var r=t._fullLayout,i=TT.filterVisible(r.shapes);if(!(!i.length||!t._fullData.length))for(var a=0;a0?v+l:l;return{ppad:l,ppadplus:f?_:T,ppadminus:f?T:_}}else return{ppad:l}}function NB(e,t,r){var i=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",s,l,f=0,h=0,v=a?e.r2c:e.d2c,m=t[i+"sizemode"]==="scaled";if(m?(s=t[i+"0"],l=t[i+"1"],a&&(f=t[i+"0shift"],h=t[i+"1shift"])):(s=t[i+"anchor"],l=t[i+"anchor"]),s!==void 0)return[v(s)+f,v(l)+h];if(t.path){var _=1/0,T=-1/0,S=t.path.match(cm.segmentRE),C,D,E,I,B;for(e.type==="date"&&(v=BB.decodeDate(v)),C=0;CT&&(T=B)));if(T>=_)return[_,T]}}});var ZB=me((lxe,GB)=>{"use strict";var HB=J2();GB.exports={moduleType:"component",name:"shapes",layoutAttributes:wT(),supplyLayoutDefaults:IB(),supplyDrawNewShapeDefaults:qB(),includeBasePlot:Eg()("shapes"),calcAutorange:VB(),draw:HB.draw,drawOne:HB.drawOne}});var AT=me((fxe,WB)=>{"use strict";var YB=Ao(),Kfe=Ri().templatedArray,uxe=Cg();WB.exports=Kfe("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",YB.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",YB.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var jB=me((cxe,XB)=>{"use strict";var Qfe=Bt(),MT=Xi(),$fe=Wl(),ece=AT(),tce="images";XB.exports=function(t,r){var i={name:tce,handleItemDefaults:rce};$fe(t,r,i)};function rce(e,t,r){function i(T,S){return Qfe.coerce(e,t,ece,T,S)}var a=i("source"),s=i("visible",!!a);if(!s)return t;i("layer"),i("xanchor"),i("yanchor"),i("sizex"),i("sizey"),i("sizing"),i("opacity");for(var l={_fullLayout:r},f=["x","y"],h=0;h<2;h++){var v=f[h],m=MT.coerceRef(e,t,l,v,"paper",void 0);if(m!=="paper"){var _=MT.getFromId(l,m);_._imgIndices.push(t._index)}MT.coercePosition(t,l,i,m,v,0)}return t}});var $B=me((hxe,QB)=>{"use strict";var JB=ja(),ace=bi(),hm=Xi(),KB=Xn(),ice=zh();QB.exports=function(t){var r=t._fullLayout,i=[],a={},s=[],l,f;for(f=0;f{"use strict";var eO=Da(),nce=$1();tO.exports=function(t,r,i,a){r=r||{};var s=i==="log"&&r.type==="linear",l=i==="linear"&&r.type==="log";if(s||l){for(var f=t._fullLayout.images,h=r._id.charAt(0),v,m,_=0;_{"use strict";aO.exports={moduleType:"component",name:"images",layoutAttributes:AT(),supplyLayoutDefaults:jB(),includeBasePlot:Eg()("images"),draw:$B(),convertCoords:rO()}});var lb=me((pxe,nO)=>{"use strict";nO.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var ST=me((mxe,sO)=>{"use strict";var oce=qo(),sce=Af(),lce=mn().extendFlat,uce=il().overrideAll,fce=c_(),oO=Ri().templatedArray,cce=oO("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});sO.exports=uce(oO("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:cce,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:lce(fce({editType:"arraydraw"}),{}),font:oce({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:sce.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var cO=me((yxe,fO)=>{"use strict";var ub=Bt(),lO=Wl(),uO=ST(),hce=lb(),vce=hce.name,dce=uO.buttons;fO.exports=function(t,r){var i={name:vce,handleItemDefaults:pce};lO(t,r,i)};function pce(e,t,r){function i(l,f){return ub.coerce(e,t,uO,l,f)}var a=lO(e,t,{name:"buttons",handleItemDefaults:mce}),s=i("visible",a.length>0);s&&(i("active"),i("direction"),i("type"),i("showactive"),i("x"),i("y"),ub.noneOrAll(e,t,["x","y"]),i("xanchor"),i("yanchor"),i("pad.t"),i("pad.r"),i("pad.b"),i("pad.l"),ub.coerceFont(i,"font",r.font),i("bgcolor",r.paper_bgcolor),i("bordercolor"),i("borderwidth"))}function mce(e,t){function r(a,s){return ub.coerce(e,t,dce,a,s)}var i=r("visible",e.method==="skip"||Array.isArray(e.args));i&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var dO=me((gxe,vO)=>{"use strict";vO.exports=nn;var Zu=ja(),hO=Oa(),vm=bi(),fb=Bt();function nn(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}nn.barWidth=2;nn.barLength=20;nn.barRadius=2;nn.barPad=1;nn.barColor="#808BA4";nn.prototype.enable=function(t,r,i){var a=this.gd._fullLayout,s=a.width,l=a.height;this.position=t;var f=this.position.l,h=this.position.w,v=this.position.t,m=this.position.h,_=this.position.direction,T=_==="down",S=_==="left",C=_==="right",D=_==="up",E=h,I=m,B,q,z,O;!T&&!S&&!C&&!D&&(this.position.direction="down",T=!0);var H=T||D;H?(B=f,q=B+E,T?(z=v,O=Math.min(z+I,l),I=O-z):(O=v+I,z=Math.max(O-I,0),I=O-z)):(z=v,O=z+I,S?(q=f+E,B=Math.max(q-E,0),E=q-B):(B=f,q=Math.min(B+E,s),E=q-B)),this._box={l:B,t:z,w:E,h:I};var V=h>E,W=nn.barLength+2*nn.barPad,J=nn.barWidth+2*nn.barPad,te=f,ne=v+m;ne+J>l&&(ne=l-J);var oe=this.container.selectAll("rect.scrollbar-horizontal").data(V?[0]:[]);oe.exit().on(".drag",null).remove(),oe.enter().append("rect").classed("scrollbar-horizontal",!0).call(hO.fill,nn.barColor),V?(this.hbar=oe.attr({rx:nn.barRadius,ry:nn.barRadius,x:te,y:ne,width:W,height:J}),this._hbarXMin=te+W/2,this._hbarTranslateMax=E-W):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var fe=m>I,de=nn.barWidth+2*nn.barPad,Me=nn.barLength+2*nn.barPad,Se=f+h,Ae=v;Se+de>s&&(Se=s-de);var we=this.container.selectAll("rect.scrollbar-vertical").data(fe?[0]:[]);we.exit().on(".drag",null).remove(),we.enter().append("rect").classed("scrollbar-vertical",!0).call(hO.fill,nn.barColor),fe?(this.vbar=we.attr({rx:nn.barRadius,ry:nn.barRadius,x:Se,y:Ae,width:de,height:Me}),this._vbarYMin=Ae+Me/2,this._vbarTranslateMax=I-Me):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var Te=this.id,Ce=B-.5,Le=fe?q+de+.5:q+.5,$e=z-.5,ot=V?O+J+.5:O+.5,it=a._topdefs.selectAll("#"+Te).data(V||fe?[0]:[]);if(it.exit().remove(),it.enter().append("clipPath").attr("id",Te).append("rect"),V||fe?(this._clipRect=it.select("rect").attr({x:Math.floor(Ce),y:Math.floor($e),width:Math.ceil(Le)-Math.floor(Ce),height:Math.ceil(ot)-Math.floor($e)}),this.container.call(vm.setClipUrl,Te,this.gd),this.bg.attr({x:f,y:v,width:h,height:m})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(vm.setClipUrl,null),delete this._clipRect),V||fe){var bt=Zu.behavior.drag().on("dragstart",function(){Zu.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(bt);var We=Zu.behavior.drag().on("dragstart",function(){Zu.event.sourceEvent.preventDefault(),Zu.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));V&&this.hbar.on(".drag",null).call(We),fe&&this.vbar.on(".drag",null).call(We)}this.setTranslate(r,i)};nn.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(vm.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};nn.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Zu.event.dx),this.vbar&&(r-=Zu.event.dy),this.setTranslate(t,r)};nn.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Zu.event.deltaY),this.vbar&&(r+=Zu.event.deltaY),this.setTranslate(t,r)};nn.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var i=t+this._hbarXMin,a=i+this._hbarTranslateMax,s=fb.constrain(Zu.event.x,i,a),l=(s-i)/(a-i),f=this.position.w-this._box.w;t=l*f}if(this.vbar){var h=r+this._vbarYMin,v=h+this._vbarTranslateMax,m=fb.constrain(Zu.event.y,h,v),_=(m-h)/(v-h),T=this.position.h-this._box.h;r=_*T}this.setTranslate(t,r)};nn.prototype.setTranslate=function(t,r){var i=this.position.w-this._box.w,a=this.position.h-this._box.h;if(t=fb.constrain(t||0,0,i),r=fb.constrain(r||0,0,a),this.translateX=t,this.translateY=r,this.container.call(vm.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var s=t/i;this.hbar.call(vm.setTranslate,t+s*this._hbarTranslateMax,r)}if(this.vbar){var l=r/a;this.vbar.call(vm.setTranslate,t,r+l*this._vbarTranslateMax)}}});var AO=me((_xe,TO)=>{"use strict";var dm=ja(),Kg=eo(),Qg=Oa(),pm=bi(),vl=Bt(),cb=co(),yce=Ri().arrayEditor,mO=ts().LINE_SPACING,aa=lb(),gce=dO();TO.exports=function(t){var r=t._fullLayout,i=vl.filterVisible(r[aa.name]);function a(T){Kg.autoMargin(t,bO(T))}var s=r._menulayer.selectAll("g."+aa.containerClassName).data(i.length>0?[0]:[]);if(s.enter().append("g").classed(aa.containerClassName,!0).style("cursor","pointer"),s.exit().each(function(){dm.select(this).selectAll("g."+aa.headerGroupClassName).each(a)}).remove(),i.length!==0){var l=s.selectAll("g."+aa.headerGroupClassName).data(i,_ce);l.enter().append("g").classed(aa.headerGroupClassName,!0);for(var f=vl.ensureSingle(s,"g",aa.dropdownButtonGroupClassName,function(T){T.style("pointer-events","all")}),h=0;h{"use strict";var Sce=lb();MO.exports={moduleType:"component",name:Sce.name,layoutAttributes:ST(),supplyLayoutDefaults:cO(),draw:AO()}});var e1=me((bxe,kO)=>{"use strict";kO.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var LT=me((wxe,LO)=>{"use strict";var CO=qo(),kce=c_(),Cce=mn().extendDeepAll,Ece=il().overrideAll,Lce=Py(),EO=Ri().templatedArray,Od=e1(),Dce=EO("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});LO.exports=Ece(EO("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Dce,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:Cce(kce({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:Lce.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:CO({})},font:CO({}),activebgcolor:{valType:"color",dflt:Od.gripBgActiveColor},bgcolor:{valType:"color",dflt:Od.railBgColor},bordercolor:{valType:"color",dflt:Od.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Od.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Od.tickLength},tickcolor:{valType:"color",dflt:Od.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Od.minorTickLength}}),"arraydraw","from-root")});var IO=me((Txe,zO)=>{"use strict";var mm=Bt(),DO=Wl(),PO=LT(),Pce=e1(),zce=Pce.name,Ice=PO.steps;zO.exports=function(t,r){DO(t,r,{name:zce,handleItemDefaults:Rce})};function Rce(e,t,r){function i(_,T){return mm.coerce(e,t,PO,_,T)}for(var a=DO(e,t,{name:"steps",handleItemDefaults:Fce}),s=0,l=0;l{"use strict";var Yu=ja(),hb=eo(),Kh=Oa(),Wu=bi(),dl=Bt(),qce=dl.strTranslate,t1=co(),Nce=Ri().arrayEditor,ba=e1(),zT=ts(),qO=zT.LINE_SPACING,DT=zT.FROM_TL,PT=zT.FROM_BR;HO.exports=function(t){var r=t._context.staticPlot,i=t._fullLayout,a=Bce(i,t),s=i._infolayer.selectAll("g."+ba.containerClassName).data(a.length>0?[0]:[]);s.enter().append("g").classed(ba.containerClassName,!0).style("cursor",r?null:"ew-resize");function l(m){m._commandObserver&&(m._commandObserver.remove(),delete m._commandObserver),hb.autoMargin(t,NO(m))}if(s.exit().each(function(){Yu.select(this).selectAll("g."+ba.groupClassName).each(l)}).remove(),a.length!==0){var f=s.selectAll("g."+ba.groupClassName).data(a,Oce);f.enter().append("g").classed(ba.groupClassName,!0),f.exit().each(l).remove();for(var h=0;h0&&(f=f.transition().duration(t.transition.duration).ease(t.transition.easing)),f.attr("transform",qce(l-ba.gripWidth*.5,t._dims.currentValueTotalHeight))}}function IT(e,t){var r=e._dims;return r.inputAreaStart+ba.stepInset+(r.inputAreaLength-2*ba.stepInset)*Math.min(1,Math.max(0,t))}function FO(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-ba.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*ba.stepInset-2*r.inputAreaStart)))}function Wce(e,t,r){var i=r._dims,a=dl.ensureSingle(e,"rect",ba.railTouchRectClass,function(s){s.call(UO,t,e,r).style("pointer-events","all")});a.attr({width:i.inputAreaLength,height:Math.max(i.inputAreaWidth,ba.tickOffset+r.ticklen+i.labelHeight)}).call(Kh.fill,r.bgcolor).attr("opacity",0),Wu.setTranslate(a,0,i.currentValueTotalHeight)}function Xce(e,t){var r=t._dims,i=r.inputAreaLength-ba.railInset*2,a=dl.ensureSingle(e,"rect",ba.railRectClass);a.attr({width:i,height:ba.railWidth,rx:ba.railRadius,ry:ba.railRadius,"shape-rendering":"crispEdges"}).call(Kh.stroke,t.bordercolor).call(Kh.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),Wu.setTranslate(a,ba.railInset,(r.inputAreaWidth-ba.railWidth)*.5+r.currentValueTotalHeight)}});var YO=me((Mxe,ZO)=>{"use strict";var jce=e1();ZO.exports={moduleType:"component",name:jce.name,layoutAttributes:LT(),supplyLayoutDefaults:IO(),draw:GO()}});var db=me((Sxe,XO)=>{"use strict";var WO=Af();XO.exports={bgcolor:{valType:"color",dflt:WO.background,editType:"plot"},bordercolor:{valType:"color",dflt:WO.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var RT=me((kxe,jO)=>{"use strict";jO.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var pb=me((Cxe,JO)=>{"use strict";JO.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var $O=me(yb=>{"use strict";var Jce=Xn(),Kce=co(),KO=pb(),Qce=ts().LINE_SPACING,mb=KO.name;function QO(e){var t=e&&e[mb];return t&&t.visible}yb.isVisible=QO;yb.makeData=function(e){for(var t=Jce.list({_fullLayout:e},"x",!0),r=e.margin,i=[],a=0;a{"use strict";var gb=Bt(),eU=Ri(),tU=Xn(),$ce=db(),ehe=RT();rU.exports=function(t,r,i){var a=t[i],s=r[i];if(!(a.rangeslider||r._requestRangeslider[s._id]))return;gb.isPlainObject(a.rangeslider)||(a.rangeslider={});var l=a.rangeslider,f=eU.newContainer(s,"rangeslider");function h(O,H){return gb.coerce(l,f,$ce,O,H)}var v,m;function _(O,H){return gb.coerce(v,m,ehe,O,H)}var T=h("visible");if(T){h("bgcolor",r.plot_bgcolor),h("bordercolor"),h("borderwidth"),h("thickness"),h("autorange",!s.isValidRange(l.range)),h("range");var S=r._subplots;if(S)for(var C=S.cartesian.filter(function(O){return O.substr(0,O.indexOf("y"))===tU.name2id(i)}).map(function(O){return O.substr(O.indexOf("y"),O.length)}),D=gb.simpleMap(C,tU.id2name),E=0;E{"use strict";var the=Xn().list,rhe=Ky().getAutoRange,ahe=pb();iU.exports=function(t){for(var r=the(t,"x",!0),i=0;i{"use strict";var _b=ja(),ihe=la(),nhe=eo(),_n=Bt(),xb=_n.strTranslate,sU=bi(),Qh=Oa(),ohe=jy(),she=uT(),FT=Xn(),lhe=jl(),uhe=Oh(),Ia=pb();lU.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,i=0;i=we.max)Se=ne[Ae+1];else if(Me=we.pmax)Se=ne[Ae+1];else if(Me0?e.touches[0].clientX:0}function fhe(e,t,r,i){if(t._context.staticPlot)return;var a=e.select("rect."+Ia.slideBoxClassName).node(),s=e.select("rect."+Ia.grabAreaMinClassName).node(),l=e.select("rect."+Ia.grabAreaMaxClassName).node();function f(){var h=_b.event,v=h.target,m=oU(h),_=m-e.node().getBoundingClientRect().left,T=i.d2p(r._rl[0]),S=i.d2p(r._rl[1]),C=lhe.coverSlip();this.addEventListener("touchmove",D),this.addEventListener("touchend",E),C.addEventListener("mousemove",D),C.addEventListener("mouseup",E);function D(I){var B=oU(I),q=+B-m,z,O,H;switch(v){case a:if(H="ew-resize",T+q>r._length||S+q<0)return;z=T+q,O=S+q;break;case s:if(H="col-resize",T+q>r._length)return;z=T+q,O=S;break;case l:if(H="col-resize",S+q<0)return;z=T,O=S+q;break;default:H="ew-resize",z=_,O=_+q;break}if(O{"use strict";var xhe=Bt(),bhe=db(),whe=RT(),qT=$O();fU.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:xhe.extendFlat({},bhe,{yaxis:whe})}}},layoutAttributes:db(),handleDefaults:aU(),calcAutorange:nU(),draw:uU(),isVisible:qT.isVisible,makeData:qT.makeData,autoMarginOpts:qT.autoMarginOpts}});var bb=me((Ixe,vU)=>{"use strict";var The=qo(),hU=Af(),Ahe=Ri().templatedArray,Mhe=Ahe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});vU.exports={visible:{valType:"boolean",editType:"plot"},buttons:Mhe,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:The({editType:"plot"}),bgcolor:{valType:"color",dflt:hU.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:hU.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var NT=me((Rxe,dU)=>{"use strict";dU.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var yU=me((Fxe,mU)=>{"use strict";var wb=Bt(),She=Oa(),khe=Ri(),Che=Wl(),pU=bb(),BT=NT();mU.exports=function(t,r,i,a,s){var l=t.rangeselector||{},f=khe.newContainer(r,"rangeselector");function h(S,C){return wb.coerce(l,f,pU,S,C)}var v=Che(l,f,{name:"buttons",handleItemDefaults:Ehe,calendar:s}),m=h("visible",v.length>0);if(m){var _=Lhe(r,i,a);h("x",_[0]),h("y",_[1]),wb.noneOrAll(t,r,["x","y"]),h("xanchor"),h("yanchor"),wb.coerceFont(h,"font",i.font);var T=h("bgcolor");h("activecolor",She.contrast(T,BT.lightAmount,BT.darkAmount)),h("bordercolor"),h("borderwidth")}};function Ehe(e,t,r,i){var a=i.calendar;function s(h,v){return wb.coerce(e,t,pU.buttons,h,v)}var l=s("visible");if(l){var f=s("step");f!=="all"&&(a&&a!=="gregorian"&&(f==="month"||f==="year")?t.stepmode="backward":s("stepmode"),s("count")),s("label")}}function Lhe(e,t,r){for(var i=r.filter(function(f){return t[f].anchor===e._id}),a=0,s=0;s{"use strict";var Dhe=q3(),Phe=Bt().titleCase;gU.exports=function(t,r){var i=t._name,a={};if(r.step==="all")a[i+".autorange"]=!0;else{var s=zhe(t,r);a[i+".range[0]"]=s[0],a[i+".range[1]"]=s[1]}return a};function zhe(e,t){var r=e.range,i=new Date(e.r2l(r[1])),a=t.step,s=Dhe["utc"+Phe(a)],l=t.count,f;switch(t.stepmode){case"backward":f=e.l2r(+s.offset(i,-l));break;case"todate":var h=s.offset(i,-l);f=e.l2r(+s.ceil(h));break}var v=r[1];return[f,v]}});var kU=me((Nxe,SU)=>{"use strict";var Ab=ja(),Ihe=la(),Rhe=eo(),xU=Oa(),MU=bi(),Lc=Bt(),bU=Lc.strTranslate,Tb=co(),Fhe=Xn(),VT=ts(),wU=VT.LINE_SPACING,TU=VT.FROM_TL,AU=VT.FROM_BR,UT=NT(),qhe=_U();SU.exports=function(t){var r=t._fullLayout,i=r._infolayer.selectAll(".rangeselector").data(Nhe(t),Bhe);i.enter().append("g").classed("rangeselector",!0),i.exit().remove(),i.style({cursor:"pointer","pointer-events":"all"}),i.each(function(a){var s=Ab.select(this),l=a,f=l.rangeselector,h=s.selectAll("g.button").data(Lc.filterVisible(f.buttons));h.enter().append("g").classed("button",!0),h.exit().remove(),h.each(function(v){var m=Ab.select(this),_=qhe(l,v);v._isActive=Ohe(l,v,_),m.call(OT,f,v),m.call(Vhe,f,v,t),m.on("click",function(){t._dragged||Ihe.call("_guiRelayout",t,_)}),m.on("mouseover",function(){v._isHovered=!0,m.call(OT,f,v)}),m.on("mouseout",function(){v._isHovered=!1,m.call(OT,f,v)})}),Ghe(t,h,f,l._name,s)})};function Nhe(e){for(var t=Fhe.list(e,"x",!0),r=[],i=0;i{"use strict";CU.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:bb()}}},layoutAttributes:bb(),handleDefaults:yU(),draw:kU()}});var Mb=me(HT=>{"use strict";var LU=mn().extendFlat;HT.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},i=e.name?e.name+" ":"",a=e.trace?"trace ":"subplot ",s=t.description?" "+t.description:"",l={x:LU({},r,{}),y:LU({},r,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};HT.defaults=function(e,t,r,i){var a=i&&i.x||[0,1],s=i&&i.y||[0,1],l=t.grid;if(l){var f=r("domain.column");f!==void 0&&(f{"use strict";var Zhe=Bt(),Yhe=c0().counter,Whe=Mb().attributes,DU=Ao().idRegex,Xhe=Ri(),GT={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Yhe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[DU.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[DU.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Whe({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Sb(e,t,r){var i=t[r+"axes"],a=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(i))return i;if(a.length)return a}function jhe(e,t){var r=e.grid||{},i=Sb(t,r,"x"),a=Sb(t,r,"y");if(!e.grid&&!i&&!a)return;var s=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),l=Array.isArray(i),f=Array.isArray(a),h=l&&i!==r.xaxes&&f&&a!==r.yaxes,v,m;s?(v=r.subplots.length,m=r.subplots[0].length):(f&&(v=a.length),l&&(m=i.length));var _=Xhe.newContainer(t,"grid");function T(H,V){return Zhe.coerce(r,_,GT,H,V)}var S=T("rows",v),C=T("columns",m);if(!(S*C>1)){delete t.grid;return}if(!s&&!l&&!f){var D=T("pattern")==="independent";D&&(s=!0)}_._hasSubplotGrid=s;var E=T("roworder"),I=E==="top to bottom",B=s?.2:.1,q=s?.3:.1,z,O;h&&t._splomGridDflt&&(z=t._splomGridDflt.xside,O=t._splomGridDflt.yside),_._domains={x:PU("x",T,B,z,C),y:PU("y",T,q,O,S,I)}}function PU(e,t,r,i,a,s){var l=t(e+"gap",r),f=t("domain."+e);t(e+"side",i);for(var h=new Array(a),v=f[0],m=(f[1]-v)/(a-l),_=m*(1-l),T=0;T{"use strict";FU.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var BU=me((Hxe,NU)=>{"use strict";var qU=Da(),Khe=la(),Qhe=Bt(),$he=Ri(),eve=ZT();NU.exports=function(e,t,r,i){var a="error_"+i.axis,s=$he.newContainer(t,a),l=e[a]||{};function f(C,D){return Qhe.coerce(l,s,eve,C,D)}var h=l.array!==void 0||l.value!==void 0||l.type==="sqrt",v=f("visible",h);if(v!==!1){var m=f("type","array"in l?"data":"percent"),_=!0;m!=="sqrt"&&(_=f("symmetric",!((m==="data"?"arrayminus":"valueminus")in l))),m==="data"?(f("array"),f("traceref"),_||(f("arrayminus"),f("tracerefminus"))):(m==="percent"||m==="constant")&&(f("value"),_||f("valueminus"));var T="copy_"+i.inherit+"style";if(i.inherit){var S=t["error_"+i.inherit];(S||{}).visible&&f(T,!(l.color||qU(l.thickness)||qU(l.width)))}(!i.inherit||!s[T])&&(f("color",r),f("thickness"),f("width",Khe.traceIs(t,"gl3d")?0:4))}}});var YT=me((Gxe,UU)=>{"use strict";UU.exports=function(t){var r=t.type,i=t.symmetric;if(r==="data"){var a=t.array||[];if(i)return function(v,m){var _=+a[m];return[_,_]};var s=t.arrayminus||[];return function(v,m){var _=+a[m],T=+s[m];return!isNaN(_)||!isNaN(T)?[T||0,_||0]:[NaN,NaN]}}else{var l=OU(r,t.value),f=OU(r,t.valueminus);return i||t.valueminus===void 0?function(v){var m=l(v);return[m,m]}:function(v){return[f(v),l(v)]}}};function OU(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var GU=me((Zxe,HU)=>{"use strict";var WT=Da(),tve=la(),XT=Xi(),rve=Bt(),ave=YT();HU.exports=function(t){for(var r=t.calcdata,i=0;i{"use strict";var ZU=ja(),$h=Da(),ive=bi(),nve=rs();YU.exports=function(t,r,i,a){var s,l=i.xaxis,f=i.yaxis,h=a&&a.duration>0,v=t._context.staticPlot;r.each(function(m){var _=m[0].trace,T=_.error_x||{},S=_.error_y||{},C;_.ids&&(C=function(B){return B.id});var D=nve.hasMarkers(_)&&_.marker.maxdisplayed>0;!S.visible&&!T.visible&&(m=[]);var E=ZU.select(this).selectAll("g.errorbar").data(m,C);if(E.exit().remove(),!!m.length){T.visible||E.selectAll("path.xerror").remove(),S.visible||E.selectAll("path.yerror").remove(),E.style("opacity",1);var I=E.enter().append("g").classed("errorbar",!0);h&&I.style("opacity",0).transition().duration(a.duration).style("opacity",1),ive.setClipUrl(E,i.layerClipId,t),E.each(function(B){var q=ZU.select(this),z=ove(B,l,f);if(!(D&&!B.vis)){var O,H=q.select("path.yerror");if(S.visible&&$h(z.x)&&$h(z.yh)&&$h(z.ys)){var V=S.width;O="M"+(z.x-V)+","+z.yh+"h"+2*V+"m-"+V+",0V"+z.ys,z.noYS||(O+="m-"+V+",0h"+2*V),s=!H.size(),s?H=q.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("yerror",!0):h&&(H=H.transition().duration(a.duration).ease(a.easing)),H.attr("d",O)}else H.remove();var W=q.select("path.xerror");if(T.visible&&$h(z.y)&&$h(z.xh)&&$h(z.xs)){var J=(T.copy_ystyle?S:T).width;O="M"+z.xh+","+(z.y-J)+"v"+2*J+"m0,-"+J+"H"+z.xs,z.noXS||(O+="m0,-"+J+"v"+2*J),s=!W.size(),s?W=q.append("path").style("vector-effect",v?"none":"non-scaling-stroke").classed("xerror",!0):h&&(W=W.transition().duration(a.duration).ease(a.easing)),W.attr("d",O)}else W.remove()}})}})};function ove(e,t,r){var i={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(i.yh=r.c2p(e.yh),i.ys=r.c2p(e.ys),$h(i.ys)||(i.noYS=!0,i.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(i.xh=t.c2p(e.xh),i.xs=t.c2p(e.xs),$h(i.xs)||(i.noXS=!0,i.xs=t.c2p(e.xs,!0))),i}});var JU=me((Wxe,jU)=>{"use strict";var sve=ja(),XU=Oa();jU.exports=function(t){t.each(function(r){var i=r[0].trace,a=i.error_y||{},s=i.error_x||{},l=sve.select(this);l.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(XU.stroke,a.color),s.copy_ystyle&&(s=a),l.selectAll("path.xerror").style("stroke-width",s.thickness+"px").call(XU.stroke,s.color)})}});var $U=me((Xxe,QU)=>{"use strict";var r1=Bt(),KU=il().overrideAll,a1=ZT(),Ud={error_x:r1.extendFlat({},a1),error_y:r1.extendFlat({},a1)};delete Ud.error_x.copy_zstyle;delete Ud.error_y.copy_zstyle;delete Ud.error_y.copy_ystyle;var i1={error_x:r1.extendFlat({},a1),error_y:r1.extendFlat({},a1),error_z:r1.extendFlat({},a1)};delete i1.error_x.copy_ystyle;delete i1.error_y.copy_ystyle;delete i1.error_z.copy_ystyle;delete i1.error_z.copy_zstyle;QU.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Ud,bar:Ud,histogram:Ud,scatter3d:KU(i1,"calc","nested"),scattergl:KU(Ud,"calc","nested")}},supplyDefaults:BU(),calc:GU(),makeComputeError:YT(),plot:WU(),style:JU(),hoverInfo:lve};function lve(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var tV=me((jxe,eV)=>{"use strict";eV.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var lV=me((Jxe,sV)=>{"use strict";var ev=ja(),jT=Tf(),Cb=eo(),rV=la(),Dc=Xi(),kb=jl(),su=Bt(),ju=su.strTranslate,oV=mn().extendFlat,JT=Oh(),Xu=bi(),KT=Oa(),uve=jy(),fve=co(),cve=kf().flipScale,hve=nT(),vve=oT(),dve=Ru(),QT=ts(),aV=QT.LINE_SPACING,iV=QT.FROM_TL,nV=QT.FROM_BR,Qi=tV().cn;function pve(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+Qi.colorbar).data(mve(e),function(i){return i._id});r.enter().append("g").attr("class",function(i){return i._id}).classed(Qi.colorbar,!0),r.each(function(i){var a=ev.select(this);su.ensureSingle(a,"rect",Qi.cbbg),su.ensureSingle(a,"g",Qi.cbfills),su.ensureSingle(a,"g",Qi.cblines),su.ensureSingle(a,"g",Qi.cbaxis,function(l){l.classed(Qi.crisp,!0)}),su.ensureSingle(a,"g",Qi.cbtitleunshift,function(l){l.append("g").classed(Qi.cbtitle,!0)}),su.ensureSingle(a,"rect",Qi.cboutline);var s=yve(a,i,e);s&&s.then&&(e._promises||[]).push(s),e._context.edits.colorbarPosition&&gve(a,i,e)}),r.exit().each(function(i){Cb.autoMargin(e,i._id)}).remove(),r.order()}function mve(e){var t=e._fullLayout,r=e.calcdata,i=[],a,s,l,f;function h(q){return oV(q,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function v(){typeof f.calc=="function"?f.calc(e,l,a):(a._fillgradient=s.reversescale?cve(s.colorscale):s.colorscale,a._zrange=[s[f.min],s[f.max]])}for(var m=0;m1){var ze=Math.pow(10,Math.floor(Math.log(ve)/Math.LN10));xt*=ze*su.roundUp(ve/ze,[2,5,10]),(Math.abs(oe.start)/oe.size+1e-6)%1<2e-6&&(nt.tick0=0)}nt.dtick=xt}nt.domain=i?[We+C/z.h,We+Te-C/z.h]:[We+S/z.w,We+Te-S/z.w],nt.setScale(),e.attr("transform",ju(Math.round(z.l),Math.round(z.t)));var pe=e.select("."+Qi.cbtitleunshift).attr("transform",ju(-Math.round(z.l),-Math.round(z.t))),at=nt.ticklabelposition,yt=nt.title.font.size,Xe=e.select("."+Qi.cbaxis),Ft,Lt=0,Tt=0;function It(Ot,Be){var ft={propContainer:nt,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:q._dfltTitle.colorbar,containerGroup:e.select("."+Qi.cbtitle)},or=Ot.charAt(0)==="h"?Ot.substr(1):"h"+Ot;e.selectAll("."+or+",."+or+"-math-group").remove(),uve.draw(r,Ot,oV(ft,Be||{}))}function Gt(){if(i&&vt||!i&&!vt){var Ot,Be;W==="top"&&(Ot=S+z.l+Ce*D,Be=C+z.t+Le*(1-We-Te)+3+yt*.75),W==="bottom"&&(Ot=S+z.l+Ce*D,Be=C+z.t+Le*(1-We)-3-yt*.25),W==="right"&&(Be=C+z.t+Le*E+3+yt*.75,Ot=S+z.l+Ce*We),It(nt._id+"title",{attributes:{x:Ot,y:Be,"text-anchor":i?"start":"middle"}})}}function Ct(){if(i&&!vt||!i&&vt){var Ot=nt.position||0,Be=nt._offset+nt._length/2,ft,or;if(W==="right")or=Be,ft=z.l+Ce*Ot+10+yt*(nt.showticklabels?1:.5);else if(ft=Be,W==="bottom"&&(or=z.t+Le*Ot+10+(at.indexOf("inside")===-1?nt.tickfont.size:0)+(nt.ticks!=="intside"&&t.ticklen||0)),W==="top"){var Cr=V.text.split("
").length;or=z.t+Le*Ot+10-Se-aV*yt*Cr}It((i?"h":"v")+nt._id+"title",{avoid:{selection:ev.select(r).selectAll("g."+nt._id+"tick"),side:W,offsetTop:i?0:z.t,offsetLeft:i?z.l:0,maxShift:i?q.width:q.height},attributes:{x:ft,y:or,"text-anchor":"middle"},transform:{rotate:i?-90:0,offset:0}})}}function Mt(){if(!i&&!vt||i&&vt){var Ot=e.select("."+Qi.cbtitle),Be=Ot.select("text"),ft=[-h/2,h/2],or=Ot.select(".h"+nt._id+"title-math-group").node(),Cr=15.6;Be.node()&&(Cr=parseInt(Be.node().style.fontSize,10)*aV);var Sr;if(or?(Sr=Xu.bBox(or),Tt=Sr.width,Lt=Sr.height,Lt>Cr&&(ft[1]-=(Lt-Cr)/2)):Be.node()&&!Be.classed(Qi.jsPlaceholder)&&(Sr=Xu.bBox(Be.node()),Tt=Sr.width,Lt=Sr.height),i){if(Lt){if(Lt+=5,W==="top")nt.domain[1]-=Lt/z.h,ft[1]*=-1;else{nt.domain[0]+=Lt/z.h;var Oe=fve.lineCount(Be);ft[1]+=(1-Oe)*Cr}Ot.attr("transform",ju(ft[0],ft[1])),nt.setScale()}}else Tt&&(W==="right"&&(nt.domain[0]+=(Tt+yt/2)/z.w),Ot.attr("transform",ju(ft[0],ft[1])),nt.setScale())}e.selectAll("."+Qi.cbfills+",."+Qi.cblines).attr("transform",i?ju(0,Math.round(z.h*(1-nt.domain[1]))):ju(Math.round(z.w*nt.domain[0]),0)),Xe.attr("transform",i?ju(0,Math.round(-z.t)):ju(Math.round(-z.l),0));var gt=e.select("."+Qi.cbfills).selectAll("rect."+Qi.cbfill).attr("style","").data(de);gt.enter().append("rect").classed(Qi.cbfill,!0).attr("style",""),gt.exit().remove();var qt=J.map(nt.c2p).map(Math.round).sort(function(zr,lr){return zr-lr});gt.each(function(zr,lr){var At=[lr===0?J[0]:(de[lr]+de[lr-1])/2,lr===de.length-1?J[1]:(de[lr]+de[lr+1])/2].map(nt.c2p).map(Math.round);i&&(At[1]=su.constrain(At[1]+(At[1]>At[0])?1:-1,qt[0],qt[1]));var Fe=ev.select(this).attr(i?"x":"y",$e).attr(i?"y":"x",ev.min(At)).attr(i?"width":"height",Math.max(Se,2)).attr(i?"height":"width",Math.max(ev.max(At)-ev.min(At),2));if(t._fillgradient)Xu.gradient(Fe,r,t._id,i?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Ge=ne(zr).replace("e-","");Fe.attr("fill",jT(Ge).toHexString())}});var Qt=e.select("."+Qi.cblines).selectAll("path."+Qi.cbline).data(H.color&&H.width?Me:[]);Qt.enter().append("path").classed(Qi.cbline,!0),Qt.exit().remove(),Qt.each(function(zr){var lr=$e,At=Math.round(nt.c2p(zr))+H.width/2%1;ev.select(this).attr("d","M"+(i?lr+","+At:At+","+lr)+(i?"h":"v")+Se).call(Xu.lineGroupStyle,H.width,te(zr),H.dash)}),Xe.selectAll("g."+nt._id+"tick,path").remove();var Vt=$e+Se+(h||0)/2-(t.ticks==="outside"?1:0),tr=Dc.calcTicks(nt),ar=Dc.getTickSigns(nt)[2];return Dc.drawTicks(r,nt,{vals:nt.ticks==="inside"?Dc.clipEnds(nt,tr):tr,layer:Xe,path:Dc.makeTickPath(nt,Vt,ar),transFn:Dc.makeTransTickFn(nt)}),Dc.drawLabels(r,nt,{vals:tr,layer:Xe,transFn:Dc.makeTransTickLabelFn(nt),labelFns:Dc.makeLabelFns(nt,Vt)})}function Ut(){var Ot,Be=Se+h/2;at.indexOf("inside")===-1&&(Ot=Xu.bBox(Xe.node()),Be+=i?Ot.width:Ot.height),Ft=pe.select("text");var ft=0,or=i&&W==="top",Cr=!i&&W==="right",Sr=0;if(Ft.node()&&!Ft.classed(Qi.jsPlaceholder)){var Oe,gt=pe.select(".h"+nt._id+"title-math-group").node();gt&&(i&&vt||!i&&!vt)?(Ot=Xu.bBox(gt),ft=Ot.width,Oe=Ot.height):(Ot=Xu.bBox(pe.node()),ft=Ot.right-z.l-(i?$e:Et),Oe=Ot.bottom-z.t-(i?Et:$e),!i&&W==="top"&&(Be+=Ot.height,Sr=Ot.height)),Cr&&(Ft.attr("transform",ju(ft/2+yt/2,0)),ft*=2),Be=Math.max(Be,i?ft:Oe)}var qt=(i?S:C)*2+Be+v+h/2,Qt=0;!i&&V.text&&T==="bottom"&&E<=0&&(Qt=qt/2,qt+=Qt,Sr+=Qt),q._hColorbarMoveTitle=Qt,q._hColorbarMoveCBTitle=Sr;var Vt=v+h,tr=(i?$e:Et)-Vt/2-(i?S:0),ar=(i?Et:$e)-(i?we:C+Sr-Qt);e.select("."+Qi.cbbg).attr("x",tr).attr("y",ar).attr(i?"width":"height",Math.max(qt-Qt,2)).attr(i?"height":"width",Math.max(we+Vt,2)).call(KT.fill,m).call(KT.stroke,t.bordercolor).style("stroke-width",v);var zr=Cr?Math.max(ft-10,0):0;e.selectAll("."+Qi.cboutline).attr("x",(i?$e:Et+S)+zr).attr("y",(i?Et+C-we:$e)+(or?Lt:0)).attr(i?"width":"height",Math.max(Se,2)).attr(i?"height":"width",Math.max(we-(i?2*C+Lt:2*S+zr),2)).call(KT.stroke,t.outlinecolor).style({fill:"none","stroke-width":h});var lr=i?ot*qt:0,At=i?0:(1-it)*qt-Sr;if(lr=B?z.l-lr:-lr,At=I?z.t-At:-At,e.attr("transform",ju(lr,At)),!i&&(v||jT(m).getAlpha()&&!jT.equals(q.paper_bgcolor,m))){var Fe=Xe.selectAll("text"),Ge=Fe[0].length,wt=e.select("."+Qi.cbbg).node(),dt=Xu.bBox(wt),gr=Xu.getTranslate(e),xr=2;Fe.each(function($i,on){var Ei=0,ma=Ge-1;if(on===Ei||on===ma){var Gr=Xu.bBox(this),Qa=Xu.getTranslate(this),Zr;if(on===ma){var di=Gr.right+Qa.x,ga=dt.right+gr.x+Et-v-xr+D;Zr=ga-di,Zr>0&&(Zr=0)}else if(on===Ei){var le=Gr.left+Qa.x,ee=dt.left+gr.x+Et+v+xr;Zr=ee-le,Zr<0&&(Zr=0)}Zr&&(Ge<3?this.setAttribute("transform","translate("+Zr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var mr={},Hr=iV[_],pa=nV[_],Ea=iV[T],Ua=nV[T],Ki=qt-Se;i?(s==="pixels"?(mr.y=E,mr.t=we*Ea,mr.b=we*Ua):(mr.t=mr.b=0,mr.yt=E+a*Ea,mr.yb=E-a*Ua),f==="pixels"?(mr.x=D,mr.l=qt*Hr,mr.r=qt*pa):(mr.l=Ki*Hr,mr.r=Ki*pa,mr.xl=D-l*Hr,mr.xr=D+l*pa)):(s==="pixels"?(mr.x=D,mr.l=we*Hr,mr.r=we*pa):(mr.l=mr.r=0,mr.xl=D+a*Hr,mr.xr=D-a*pa),f==="pixels"?(mr.y=1-E,mr.t=qt*Ea,mr.b=qt*Ua):(mr.t=Ki*Ea,mr.b=Ki*Ua,mr.yt=E-l*Ea,mr.yb=E+l*Ua));var qi=t.y<.5?"b":"t",vi=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Ti={r:q.width-tr-lr,l:tr+mr.r,b:q.height-ar-At,t:ar+mr.b};B&&I?Cb.autoMargin(r,t._id,mr):B?r._fullLayout._reservedMargin[t._id][qi]=Ti[qi]:I||i?r._fullLayout._reservedMargin[t._id][vi]=Ti[vi]:r._fullLayout._reservedMargin[t._id][qi]=Ti[qi]}return su.syncOrAsync([Cb.previousPromises,Gt,Mt,Ct,Cb.previousPromises,Ut],r)}function gve(e,t,r){var i=t.orientation==="v",a=r._fullLayout,s=a._size,l,f,h;kb.init({element:e.node(),gd:r,prepFn:function(){l=e.attr("transform"),JT(e)},moveFn:function(v,m){e.attr("transform",l+ju(v,m)),f=kb.align((i?t._uFrac:t._vFrac)+v/s.w,i?t._thickFrac:t._lenFrac,0,1,t.xanchor),h=kb.align((i?t._vFrac:1-t._uFrac)-m/s.h,i?t._lenFrac:t._thickFrac,0,1,t.yanchor);var _=kb.getCursor(f,h,t.xanchor,t.yanchor);JT(e,_)},doneFn:function(){if(JT(e),f!==void 0&&h!==void 0){var v={};v[t._propPrefix+"x"]=f,v[t._propPrefix+"y"]=h,t._traceIndex!==void 0?rV.call("_guiRestyle",r,v,t._traceIndex):rV.call("_guiRelayout",r,v)}}})}function _ve(e,t,r){var i=t._levels,a=[],s=[],l,f,h=i.end+i.size/100,v=i.size,m=1.001*r[0]-.001*r[1],_=1.001*r[1]-.001*r[0];for(f=0;f<1e5&&(l=i.start+f*v,!(v>0?l>=h:l<=h));f++)l>m&&l<_&&a.push(l);if(t._fillgradient)s=[0];else if(typeof t._fillcolor=="function"){var T=t._filllevels;if(T)for(h=T.end+T.size/100,v=T.size,f=0;f<1e5&&(l=T.start+f*v,!(v>0?l>=h:l<=h));f++)l>r[0]&&l{"use strict";uV.exports={moduleType:"component",name:"colorbar",attributes:V_(),supplyDefaults:e5(),draw:lV().draw,hasColorbar:Hw()}});var hV=me((Qxe,cV)=>{"use strict";cV.exports={moduleType:"component",name:"legend",layoutAttributes:J5(),supplyLayoutDefaults:$5(),draw:h4(),style:l4()}});var dV=me(($xe,vV)=>{"use strict";vV.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var mV=me((ebe,pV)=>{"use strict";pV.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var eA=me((tbe,xV)=>{"use strict";var bve=la(),_V=Bt(),$T=_V.extendFlat,yV=_V.extendDeep;function gV(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function wve(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}xV.exports=function(t,r){var i,a=t.data,s=t.layout,l=yV([],a),f=yV({},s,gV(r.tileClass)),h=t._context||{};if(r.width&&(f.width=r.width),r.height&&(f.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){f.annotations=[];var v=Object.keys(f);for(i=0;i{"use strict";var Tve=C_().EventEmitter,Ave=la(),Mve=Bt(),bV=Dd(),Sve=eA(),kve=Fx(),Cve=qx();function Eve(e,t){var r=new Tve,i=Sve(e,{format:"png"}),a=i.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function s(){var f=bV.getDelay(a._fullLayout);setTimeout(function(){var h=kve(a),v=document.createElement("canvas");v.id=Mve.randstr(),r=Cve({format:t.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:v,emitter:r,svg:h}),r.clean=function(){a&&document.body.removeChild(a)}},f)}var l=bV.getRedrawFunc(a);return Ave.call("_doPlot",a,i.data,i.layout,i.config).then(l).then(s).catch(function(f){r.emit("error",f)}),r}wV.exports=Eve});var SV=me((abe,MV)=>{"use strict";var AV=Dd(),Lve={getDelay:AV.getDelay,getRedrawFunc:AV.getRedrawFunc,clone:eA(),toSVG:Fx(),svgToImg:qx(),toImage:TV(),downloadImage:E6()};MV.exports=Lve});var CV=me(Pc=>{"use strict";Pc.version=G1().version;_7();uk();var Dve=la(),n1=Pc.register=Dve.register,rA=PF(),kV=Object.keys(rA);for(Eb=0;Eb{"use strict";EV.exports=CV()});var aA=me((obe,zV)=>{"use strict";var Pve=nl().hovertemplateAttrs,zve=nl().texttemplateAttrs,Ive=px(),Vf=kc(),Rve=ms(),DV=xc(),Fve=hc().dash,Vd=mn().extendFlat,qve=il().overrideAll,lu=Vf.marker,PV=Vf.line,Nve=lu.line;zV.exports=qve({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:Vd({},Vf.mode,{dflt:"markers"}),text:Vd({},Vf.text,{}),texttemplate:zve({editType:"plot"},{keys:["lat","lon","location","text"]}),hovertext:Vd({},Vf.hovertext,{}),textfont:Vf.textfont,textposition:Vf.textposition,line:{color:PV.color,width:PV.width,dash:Fve},connectgaps:Vf.connectgaps,marker:Vd({symbol:lu.symbol,opacity:lu.opacity,angle:lu.angle,angleref:Vd({},lu.angleref,{values:["previous","up","north"]}),standoff:lu.standoff,size:lu.size,sizeref:lu.sizeref,sizemin:lu.sizemin,sizemode:lu.sizemode,colorbar:lu.colorbar,line:Vd({width:Nve.width},DV("marker.line")),gradient:lu.gradient},DV("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:Ive(),selected:Vf.selected,unselected:Vf.unselected,hoverinfo:Vd({},Rve.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:Pve()},"calc","nested")});var zc=me((sbe,OV)=>{"use strict";var Bve=g_(),IV="1.13.4",NV='\xA9 OpenStreetMap contributors',RV=['\xA9 Carto',NV].join(" "),FV=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),Ove=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),BV={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:NV,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:RV,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:RV,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:FV,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:FV,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:Ove,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},qV=Bve(BV);OV.exports={requiredVersion:IV,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:BV,styleValuesNonMapbox:qV,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+IV+"."].join(` `),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join(` -`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",FV.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` +`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",qV.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` `),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join(` -`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}});var a1=pe((ibe,HV)=>{"use strict";var OV=Bt(),UV=Ua().defaultLine,Fve=Mb().attributes,qve=qo(),Nve=kc().textposition,Bve=il().overrideAll,Ove=Pi().templatedArray,iA=zc(),VV=qve({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});VV.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var Uve=HV.exports=Bve({_arrayAttrRegexps:[OV.counterRegex("mapbox",".layers",!0)],domain:Fve({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:iA.styleValuesMapbox.concat(iA.styleValuesNonMapbox),dflt:iA.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:Ove("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:UV},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:UV}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:VV,textposition:OV.extendFlat({},Nve,{arrayOk:!1})}})},"plot","from-root");Uve.uirevision={valType:"any",editType:"none"}});var Db=pe((nbe,YV)=>{"use strict";var Vve=Hl().hovertemplateAttrs,Hve=Hl().texttemplateAttrs,Gve=px(),i1=aA(),gm=kc(),GV=a1(),Zve=ms(),Yve=xc(),Hd=hn().extendFlat,Wve=il().overrideAll,Xve=a1(),ZV=i1.line,_m=i1.marker;YV.exports=Wve({lon:i1.lon,lat:i1.lat,cluster:{enabled:{valType:"boolean"},maxzoom:Hd({},Xve.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:Hd({},_m.opacity,{dflt:1})},mode:Hd({},gm.mode,{dflt:"markers"}),text:Hd({},gm.text,{}),texttemplate:Hve({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:Hd({},gm.hovertext,{}),line:{color:ZV.color,width:ZV.width},connectgaps:gm.connectgaps,marker:Hd({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:_m.opacity,size:_m.size,sizeref:_m.sizeref,sizemin:_m.sizemin,sizemode:_m.sizemode},Yve("marker")),fill:i1.fill,fillcolor:Gve(),textfont:GV.layers.symbol.textfont,textposition:GV.layers.symbol.textposition,below:{valType:"string"},selected:{marker:gm.selected.marker},unselected:{marker:gm.unselected.marker},hoverinfo:Hd({},Zve.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:Vve()},"calc","nested")});var nA=pe((obe,WV)=>{"use strict";var jve=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];WV.exports={isSupportedFont:function(e){return jve.indexOf(e)!==-1}}});var JV=pe((sbe,jV)=>{"use strict";var n1=Bt(),oA=rs(),Jve=P6(),Kve=z6(),Qve=I6(),$ve=R6(),XV=Db(),ede=nA().isSupportedFont;jV.exports=function(t,r,i,a){function s(I,B){return n1.coerce(t,r,XV,I,B)}function l(I,B){return n1.coerce2(t,r,XV,I,B)}var f=tde(t,r,s);if(!f){r.visible=!1;return}if(s("text"),s("texttemplate"),s("hovertext"),s("hovertemplate"),s("mode"),s("below"),oA.hasMarkers(r)){Jve(t,r,i,a,s,{noLine:!0,noAngle:!0}),s("marker.allowoverlap"),s("marker.angle");var h=r.marker;h.symbol!=="circle"&&(n1.isArrayOrTypedArray(h.size)&&(h.size=h.size[0]),n1.isArrayOrTypedArray(h.color)&&(h.color=h.color[0]))}oA.hasLines(r)&&(Kve(t,r,i,a,s,{noDash:!0}),s("connectgaps"));var v=l("cluster.maxzoom"),m=l("cluster.step"),_=l("cluster.color",r.marker&&r.marker.color||i),T=l("cluster.size"),S=l("cluster.opacity"),C=v!==!1||m!==!1||_!==!1||T!==!1||S!==!1,D=s("cluster.enabled",C);if(D||oA.hasText(r)){var E=a.font.family;Qve(t,r,a,s,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:ede(E)?E:"Open Sans Regular",weight:a.font.weight,style:a.font.style,size:a.font.size,color:a.font.color}})}s("fill"),r.fill!=="none"&&$ve(t,r,i,s),n1.coerceSelectionMarkerOpacity(r,s)};function tde(e,t,r){var i=r("lon")||[],a=r("lat")||[],s=Math.min(i.length,a.length);return t._length=s,s}});var sA=pe((lbe,QV)=>{"use strict";var KV=Yi();QV.exports=function(t,r,i){var a={},s=i[r.subplot]._subplot,l=s.mockAxis,f=t.lonlat;return a.lonLabel=KV.tickText(l,l.c2l(f[0]),!0).text,a.latLabel=KV.tickText(l,l.c2l(f[1]),!0).text,a}});var aH=pe((ube,rH)=>{"use strict";var lA=Pa(),$V=Hi().BADNUM,rde=N6(),ade=Ng(),ide=Gx(),nde=Bt().isArrayOrTypedArray,eH=Bt()._;function tH(e){return e&&typeof e=="string"}rH.exports=function(t,r){var i=nde(r.locations),a=i?r.locations.length:r._length,s=new Array(a),l;r.geojson?l=function(T){return tH(T)||lA(T)}:l=tH;for(var f=0;f{"use strict";var ode=Hi().BADNUM;o1.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,i=[],a=[],s=0;s0&&(i.push(a),a=[])}return a.length>0&&i.push(a),i};o1.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};o1.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{"use strict";var iH=Bt();nH.exports=function(t,r){var i=t.split(" "),a=i[0],s=i[1],l=iH.isArrayOrTypedArray(r)?iH.mean(r):r,f=.5+l/100,h=1.5+l/100,v=["",""],m=[0,0];switch(a){case"top":v[0]="top",m[1]=-h;break;case"bottom":v[0]="bottom",m[1]=h;break}switch(s){case"left":v[1]="right",m[0]=-f;break;case"right":v[1]="left",m[0]=f;break}var _;return v[0]&&v[1]?_=v.join("-"):v[0]?_=v[0]:v[1]?_=v[1]:_="center",{anchor:_,offset:m}}});var cH=pe((hbe,fH)=>{"use strict";var lH=Pa(),ko=Bt(),sde=Hi().BADNUM,Ib=Pb(),oH=L0(),lde=xi(),ude=i5(),Rb=rs(),fde=nA().isSupportedFont,cde=uA(),hde=bc().appendArrayPointValue,vde=co().NEWLINES,dde=co().BR_TAG_ALL;fH.exports=function(t,r){var i=r[0].trace,a=i.visible===!0&&i._length!==0,s=i.fill!=="none",l=Rb.hasLines(i),f=Rb.hasMarkers(i),h=Rb.hasText(i),v=f&&i.marker.symbol==="circle",m=f&&i.marker.symbol!=="circle",_=i.cluster&&i.cluster.enabled,T=zb("fill"),S=zb("line"),C=zb("circle"),D=zb("symbol"),E={fill:T,line:S,circle:C,symbol:D};if(!a)return E;var I;if((s||l)&&(I=Ib.calcTraceToLineCoords(r)),s&&(T.geojson=Ib.makePolygon(I),T.layout.visibility="visible",ko.extendFlat(T.paint,{"fill-color":i.fillcolor})),l&&(S.geojson=Ib.makeLine(I),S.layout.visibility="visible",ko.extendFlat(S.paint,{"line-width":i.line.width,"line-color":i.line.color,"line-opacity":i.opacity})),v){var B=pde(r);C.geojson=B.geojson,C.layout.visibility="visible",_&&(C.filter=["!",["has","point_count"]],E.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":cA(i.cluster.color,i.cluster.step),"circle-radius":cA(i.cluster.size,i.cluster.step),"circle-opacity":cA(i.cluster.opacity,i.cluster.step)}},E.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":sH(i),"text-size":12}}),ko.extendFlat(C.paint,{"circle-color":B.mcc,"circle-radius":B.mrc,"circle-opacity":B.mo})}if(v&&_&&(C.filter=["!",["has","point_count"]]),(m||h)&&(D.geojson=mde(r,t),ko.extendFlat(D.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),m&&(ko.extendFlat(D.layout,{"icon-size":i.marker.size/10}),"angle"in i.marker&&i.marker.angle!=="auto"&&ko.extendFlat(D.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),D.layout["icon-allow-overlap"]=i.marker.allowoverlap,ko.extendFlat(D.paint,{"icon-opacity":i.opacity*i.marker.opacity,"icon-color":i.marker.color})),h)){var q=(i.marker||{}).size,z=cde(i.textposition,q);ko.extendFlat(D.layout,{"text-size":i.textfont.size,"text-anchor":z.anchor,"text-offset":z.offset,"text-font":sH(i)}),ko.extendFlat(D.paint,{"text-color":i.textfont.color,"text-opacity":i.opacity})}return E};function zb(e){return{type:e,geojson:Ib.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function pde(e){var t=e[0].trace,r=t.marker,i=t.selectedpoints,a=ko.isArrayOrTypedArray(r.color),s=ko.isArrayOrTypedArray(r.size),l=ko.isArrayOrTypedArray(r.opacity),f;function h(q){return t.opacity*q}function v(q){return q/2}var m;a&&(oH.hasColorscale(t,"marker")?m=oH.makeColorScaleFuncFromTrace(r):m=ko.identity);var _;s&&(_=ude(t));var T;l&&(T=function(q){var z=lH(q)?+ko.constrain(q,0,1):0;return h(z)});var S=[];for(f=0;f850?f+=" Black":a>750?f+=" Extra Bold":a>650?f+=" Bold":a>550?f+=" Semi Bold":a>450?f+=" Medium":a>350?f+=" Regular":a>250?f+=" Light":a>150?f+=" Extra Light":f+=" Thin"):s.slice(0,2).join(" ")==="Open Sans"?(f="Open Sans",a>750?f+=" Extrabold":a>650?f+=" Bold":a>550?f+=" Semibold":a>350?f+=" Regular":f+=" Light"):s.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(f="Klokantech Noto Sans",s[3]==="CJK"&&(f+=" CJK"),f+=a>500?" Bold":" Regular")),l&&(f+=" Italic"),f==="Open Sans Regular Italic"?f="Open Sans Italic":f==="Open Sans Regular Bold"?f="Open Sans Bold":f==="Open Sans Regular Bold Italic"?f="Open Sans Bold Italic":f==="Klokantech Noto Sans Regular Italic"&&(f="Klokantech Noto Sans Italic"),fde(f)||(f=r);var h=f.split(", ");return h}});var pH=pe((vbe,dH)=>{"use strict";var yde=Bt(),hH=cH(),xm=zc().traceLayerPrefix,uu={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function vH(e,t,r,i){this.type="scattermapbox",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=i,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:xm+t+"-fill",line:xm+t+"-line",circle:xm+t+"-circle",symbol:xm+t+"-symbol",cluster:xm+t+"-cluster",clusterCount:xm+t+"-cluster-count"},this.below=null}var s1=vH.prototype;s1.addSource=function(e,t,r){var i={type:"geojson",data:t.geojson};r&&r.enabled&&yde.extendFlat(i,{cluster:!0,clusterMaxZoom:r.maxzoom});var a=this.subplot.map.getSource(this.sourceIds[e]);a?a.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],i)};s1.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};s1.addLayer=function(e,t,r){var i={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(i.filter=t.filter);for(var a=this.layerIds[e],s,l=this.subplot.getMapLayers(),f=0;f=0;O--){var H=z[O];a.removeLayer(v.layerIds[H])}q||a.removeSource(v.sourceIds.circle)}function T(q){for(var z=uu.nonCluster,O=0;O=0;O--){var H=z[O];a.removeLayer(v.layerIds[H]),q||a.removeSource(v.sourceIds[H])}}function C(q){h?_(q):S(q)}function D(q){f?m(q):T(q)}function E(){for(var q=f?uu.cluster:uu.nonCluster,z=0;z=0;i--){var a=r[i];t.removeLayer(this.layerIds[a]),t.removeSource(this.sourceIds[a])}};dH.exports=function(t,r){var i=r[0].trace,a=i.cluster&&i.cluster.enabled,s=i.visible!==!0,l=new vH(t,i.uid,a,s),f=hH(t.gd,r),h=l.below=t.belowLookup["trace-"+i.uid],v,m,_;if(a)for(l.addSource("circle",f.circle,i.cluster),v=0;v{"use strict";var gde=Rf(),hA=Bt(),_de=tT(),xde=hA.fillText,bde=Hi().BADNUM,wde=zc().traceLayerPrefix;function Tde(e,t,r){var i=e.cd,a=i[0].trace,s=e.xa,l=e.ya,f=e.subplot,h=[],v=wde+a.uid+"-circle",m=a.cluster&&a.cluster.enabled;if(m){var _=f.map.queryRenderedFeatures(null,{layers:[v]});h=_.map(function(W){return W.id})}var T=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),S=T*360,C=t-S;function D(W){var J=W.lonlat;if(J[0]===bde||m&&h.indexOf(W.i+1)===-1)return 1/0;var te=hA.modHalf(J[0],360),ne=J[1],oe=f.project([te,ne]),fe=oe.x-s.c2p([C,ne]),de=oe.y-l.c2p([te,r]),Me=Math.max(3,W.mrc||0);return Math.max(Math.sqrt(fe*fe+de*de)-Me,1-3/Me)}if(gde.getClosest(i,D,e),e.index!==!1){var E=i[e.index],I=E.lonlat,B=[hA.modHalf(I[0],360)+S,I[1]],q=s.c2p(B),z=l.c2p(B),O=E.mrc||1;e.x0=q-O,e.x1=q+O,e.y0=z-O,e.y1=z+O;var H={};H[a.subplot]={_subplot:f};var V=a._module.formatLabels(E,a,H);return e.lonLabel=V.lonLabel,e.latLabel=V.latLabel,e.color=_de(a,E),e.extraText=mH(a,E,i[0].t.labels),e.hovertemplate=a.hovertemplate,[e]}}function mH(e,t,r){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i.split("+"),s=a.indexOf("all")!==-1,l=a.indexOf("lon")!==-1,f=a.indexOf("lat")!==-1,h=t.lonlat,v=[];function m(_){return _+"\xB0"}return s||l&&f?v.push("("+m(h[1])+", "+m(h[0])+")"):l?v.push(r.lon+m(h[0])):f&&v.push(r.lat+m(h[1])),(s||a.indexOf("text")!==-1)&&xde(t,e,v),v.join("
")}yH.exports={hoverPoints:Tde,getExtraText:mH}});var _H=pe((pbe,gH)=>{"use strict";gH.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var bH=pe((mbe,xH)=>{"use strict";var Ade=Bt(),Mde=rs(),Sde=Hi().BADNUM;xH.exports=function(t,r){var i=t.cd,a=t.xaxis,s=t.yaxis,l=[],f=i[0].trace,h;if(!Mde.hasMarkers(f))return[];if(r===!1)for(h=0;h{(function(e,t){typeof vA=="object"&&typeof dA!="undefined"?dA.exports=t():(e=e||self,e.mapboxgl=t())})(vA,function(){"use strict";var e,t,r;function i(a,s){if(!e)e=s;else if(!t)t=s;else{var l="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",f={};e(f),r=s(f),typeof window!="undefined"&&(r.workerUrl=window.URL.createObjectURL(new Blob([l],{type:"text/javascript"})))}}return i(["exports"],function(a){"use strict";function s(n,o){return o={exports:{}},n(o,o.exports),o.exports}var l="1.13.4",f=h;function h(n,o,u,p){this.cx=3*n,this.bx=3*(u-n)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*o,this.by=3*(p-o)-this.cy,this.ay=1-this.cy-this.by,this.p1x=n,this.p1y=p,this.p2x=u,this.p2y=p}h.prototype.sampleCurveX=function(n){return((this.ax*n+this.bx)*n+this.cx)*n},h.prototype.sampleCurveY=function(n){return((this.ay*n+this.by)*n+this.cy)*n},h.prototype.sampleCurveDerivativeX=function(n){return(3*this.ax*n+2*this.bx)*n+this.cx},h.prototype.solveCurveX=function(n,o){typeof o=="undefined"&&(o=1e-6);var u,p,x,A,k;for(x=n,k=0;k<8;k++){if(A=this.sampleCurveX(x)-n,Math.abs(A)p)return p;for(;uA?u=x:p=x,x=(p-u)*.5+u}return x},h.prototype.solve=function(n,o){return this.sampleCurveY(this.solveCurveX(n,o))};var v=m;function m(n,o){this.x=n,this.y=o}m.prototype={clone:function(){return new m(this.x,this.y)},add:function(n){return this.clone()._add(n)},sub:function(n){return this.clone()._sub(n)},multByPoint:function(n){return this.clone()._multByPoint(n)},divByPoint:function(n){return this.clone()._divByPoint(n)},mult:function(n){return this.clone()._mult(n)},div:function(n){return this.clone()._div(n)},rotate:function(n){return this.clone()._rotate(n)},rotateAround:function(n,o){return this.clone()._rotateAround(n,o)},matMult:function(n){return this.clone()._matMult(n)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(n){return this.x===n.x&&this.y===n.y},dist:function(n){return Math.sqrt(this.distSqr(n))},distSqr:function(n){var o=n.x-this.x,u=n.y-this.y;return o*o+u*u},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(n){return Math.atan2(this.y-n.y,this.x-n.x)},angleWith:function(n){return this.angleWithSep(n.x,n.y)},angleWithSep:function(n,o){return Math.atan2(this.x*o-this.y*n,this.x*n+this.y*o)},_matMult:function(n){var o=n[0]*this.x+n[1]*this.y,u=n[2]*this.x+n[3]*this.y;return this.x=o,this.y=u,this},_add:function(n){return this.x+=n.x,this.y+=n.y,this},_sub:function(n){return this.x-=n.x,this.y-=n.y,this},_mult:function(n){return this.x*=n,this.y*=n,this},_div:function(n){return this.x/=n,this.y/=n,this},_multByPoint:function(n){return this.x*=n.x,this.y*=n.y,this},_divByPoint:function(n){return this.x/=n.x,this.y/=n.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var n=this.y;return this.y=this.x,this.x=-n,this},_rotate:function(n){var o=Math.cos(n),u=Math.sin(n),p=o*this.x-u*this.y,x=u*this.x+o*this.y;return this.x=p,this.y=x,this},_rotateAround:function(n,o){var u=Math.cos(n),p=Math.sin(n),x=o.x+u*(this.x-o.x)-p*(this.y-o.y),A=o.y+p*(this.x-o.x)+u*(this.y-o.y);return this.x=x,this.y=A,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},m.convert=function(n){return n instanceof m?n:Array.isArray(n)?new m(n[0],n[1]):n};var _=typeof self!="undefined"?self:{};function T(n,o){if(Array.isArray(n)){if(!Array.isArray(o)||n.length!==o.length)return!1;for(var u=0;u=1)return 1;var o=n*n,u=o*n;return 4*(n<.5?u:3*(n-o)+u-.75)}function D(n,o,u,p){var x=new f(n,o,u,p);return function(A){return x.solve(A)}}var E=D(.25,.1,.25,1);function I(n,o,u){return Math.min(u,Math.max(o,n))}function B(n,o,u){var p=u-o,x=((n-o)%p+p)%p+o;return x===o?u:x}function q(n,o,u){if(!n.length)return u(null,[]);var p=n.length,x=new Array(n.length),A=null;n.forEach(function(k,F){o(k,function(Y,j){Y&&(A=Y),x[F]=j,--p===0&&u(A,x)})})}function z(n){var o=[];for(var u in n)o.push(n[u]);return o}function O(n,o){var u=[];for(var p in n)p in o||u.push(p);return u}function H(n){for(var o=[],u=arguments.length-1;u-- >0;)o[u]=arguments[u+1];for(var p=0,x=o;p>o/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,n)}return n()}function ne(n){return n<=1?1:Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function oe(n){return n?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(n):!1}function fe(n,o){n.forEach(function(u){o[u]&&(o[u]=o[u].bind(o))})}function de(n,o){return n.indexOf(o,n.length-o.length)!==-1}function Me(n,o,u){var p={};for(var x in n)p[x]=o.call(u||this,n[x],x,n);return p}function Se(n,o,u){var p={};for(var x in n)o.call(u||this,n[x],x,n)&&(p[x]=n[x]);return p}function Te(n){return Array.isArray(n)?n.map(Te):typeof n=="object"&&n?Me(n,Te):n}function we(n,o){for(var u=0;u=0)return!0;return!1}var Ae={};function Ce(n){Ae[n]||(typeof console!="undefined"&&console.warn(n),Ae[n]=!0)}function Le(n,o,u){return(u.y-n.y)*(o.x-n.x)>(o.y-n.y)*(u.x-n.x)}function Qe(n){for(var o=0,u=0,p=n.length,x=p-1,A=void 0,k=void 0;u@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,u={};if(n.replace(o,function(x,A,k,F){var Y=k||F;return u[A]=Y?Y.toLowerCase():!0,""}),u["max-age"]){var p=parseInt(u["max-age"],10);isNaN(p)?delete u["max-age"]:u["max-age"]=p}return u}var Ye=null;function At(n){if(Ye==null){var o=n.navigator?n.navigator.userAgent:null;Ye=!!n.safari||!!(o&&(/\b(iPad|iPhone|iPod)\b/.test(o)||o.match("Safari")&&!o.match("Chrome")))}return Ye}function it(n){try{var o=_[n];return o.setItem("_mapbox_test_",1),o.removeItem("_mapbox_test_"),!0}catch(u){return!1}}function dt(n){return _.btoa(encodeURIComponent(n).replace(/%([0-9A-F]{2})/g,function(o,u){return String.fromCharCode(+("0x"+u))}))}function Mt(n){return decodeURIComponent(_.atob(n).split("").map(function(o){return"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var ct=_.performance&&_.performance.now?_.performance.now.bind(_.performance):Date.now.bind(Date),ve=_.requestAnimationFrame||_.mozRequestAnimationFrame||_.webkitRequestAnimationFrame||_.msRequestAnimationFrame,Ie=_.cancelAnimationFrame||_.mozCancelAnimationFrame||_.webkitCancelAnimationFrame||_.msCancelAnimationFrame,me,rt,pt={now:ct,frame:function(o){var u=ve(o);return{cancel:function(){return Ie(u)}}},getImageData:function(o,u){u===void 0&&(u=0);var p=_.document.createElement("canvas"),x=p.getContext("2d");if(!x)throw new Error("failed to create canvas 2d context");return p.width=o.width,p.height=o.height,x.drawImage(o,0,0,o.width,o.height),x.getImageData(-u,-u,o.width+2*u,o.height+2*u)},resolveURL:function(o){return me||(me=_.document.createElement("a")),me.href=o,me.href},hardwareConcurrency:_.navigator&&_.navigator.hardwareConcurrency||4,get devicePixelRatio(){return _.devicePixelRatio},get prefersReducedMotion(){return _.matchMedia?(rt==null&&(rt=_.matchMedia("(prefers-reduced-motion: reduce)")),rt.matches):!1}},je={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},qt={supported:!1,testSupport:Et},It,Tt=!1,zt,Ut=!1;_.document&&(zt=_.document.createElement("img"),zt.onload=function(){It&&Ct(It),It=null,Ut=!0},zt.onerror=function(){Tt=!0,It=null},zt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function Et(n){Tt||!zt||(Ut?Ct(n):It=n)}function Ct(n){var o=n.createTexture();n.bindTexture(n.TEXTURE_2D,o);try{if(n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,zt),n.isContextLost())return;qt.supported=!0}catch(u){}n.deleteTexture(o),Tt=!0}var Yt="01";function Vt(){for(var n="1",o="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",u="",p=0;p<10;p++)u+=o[Math.floor(Math.random()*62)];var x=12*60*60*1e3,A=[n,Yt,u].join(""),k=Date.now()+x;return{token:A,tokenExpiresAt:k}}var Ne=function(o,u){this._transformRequestFn=o,this._customAccessToken=u,this._createSkuToken()};Ne.prototype._createSkuToken=function(){var o=Vt();this._skuToken=o.token,this._skuTokenExpiresAt=o.tokenExpiresAt},Ne.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Ne.prototype.transformRequest=function(o,u){return this._transformRequestFn?this._transformRequestFn(o,u)||{url:o}:{url:o}},Ne.prototype.normalizeStyleURL=function(o,u){if(!ut(o))return o;var p=Ht(o);return p.path="/styles/v1"+p.path,this._makeAPIURL(p,this._customAccessToken||u)},Ne.prototype.normalizeGlyphsURL=function(o,u){if(!ut(o))return o;var p=Ht(o);return p.path="/fonts/v1"+p.path,this._makeAPIURL(p,this._customAccessToken||u)},Ne.prototype.normalizeSourceURL=function(o,u){if(!ut(o))return o;var p=Ht(o);return p.path="/v4/"+p.authority+".json",p.params.push("secure"),this._makeAPIURL(p,this._customAccessToken||u)},Ne.prototype.normalizeSpriteURL=function(o,u,p,x){var A=Ht(o);return ut(o)?(A.path="/styles/v1"+A.path+"/sprite"+u+p,this._makeAPIURL(A,this._customAccessToken||x)):(A.path+=""+u+p,Xt(A))},Ne.prototype.normalizeTileURL=function(o,u){if(this._isSkuTokenExpired()&&this._createSkuToken(),o&&!ut(o))return o;var p=Ht(o),x=/(\.(png|jpg)\d*)(?=$)/,A=/^.+\/v4\//,k=pt.devicePixelRatio>=2||u===512?"@2x":"",F=qt.supported?".webp":"$1";p.path=p.path.replace(x,""+k+F),p.path=p.path.replace(A,"/"),p.path="/v4"+p.path;var Y=this._customAccessToken||wt(p.params)||je.ACCESS_TOKEN;return je.REQUIRE_ACCESS_TOKEN&&Y&&this._skuToken&&p.params.push("sku="+this._skuToken),this._makeAPIURL(p,Y)},Ne.prototype.canonicalizeTileURL=function(o,u){var p="/v4/",x=/\.[\w]+$/,A=Ht(o);if(!A.path.match(/(^\/v4\/)/)||!A.path.match(x))return o;var k="mapbox://tiles/";k+=A.path.replace(p,"");var F=A.params;return u&&(F=F.filter(function(Y){return!Y.match(/^access_token=/)})),F.length&&(k+="?"+F.join("&")),k},Ne.prototype.canonicalizeTileset=function(o,u){for(var p=u?ut(u):!1,x=[],A=0,k=o.tiles||[];A=0&&o.params.splice(A,1)}if(x.path!=="/"&&(o.path=""+x.path+o.path),!je.REQUIRE_ACCESS_TOKEN)return Xt(o);if(u=u||je.ACCESS_TOKEN,!u)throw new Error("An API access token is required to use Mapbox GL. "+p);if(u[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+p);return o.params=o.params.filter(function(k){return k.indexOf("access_token")===-1}),o.params.push("access_token="+u),Xt(o)};function ut(n){return n.indexOf("mapbox:")===0}var gt=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function xr(n){return gt.test(n)}function vr(n){return n.indexOf("sku=")>0&&xr(n)}function wt(n){for(var o=0,u=n;o=1&&_.localStorage.setItem(u,JSON.stringify(this.eventData))}catch(x){Ce("Unable to write to LocalStorage")}},tr.prototype.processRequests=function(o){},tr.prototype.postEvent=function(o,u,p,x){var A=this;if(je.EVENTS_URL){var k=Ht(je.EVENTS_URL);k.params.push("access_token="+(x||je.ACCESS_TOKEN||""));var F={event:this.type,created:new Date(o).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:l,skuId:Yt,userId:this.anonId},Y=u?H(F,u):F,j={url:Xt(k),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Y])};this.pendingRequest=Ve(j,function(Q){A.pendingRequest=null,p(Q),A.saveEventData(),A.processRequests(x)})}},tr.prototype.queueRequest=function(o,u){this.queue.push(o),this.processRequests(u)};var Mr=function(n){function o(){n.call(this,"map.load"),this.success={},this.skuToken=""}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.postMapLoadEvent=function(p,x,A,k){this.skuToken=A,(je.EVENTS_URL&&k||je.ACCESS_TOKEN&&Array.isArray(p)&&p.some(function(F){return ut(F)||xr(F)}))&&this.queueRequest({id:x,timestamp:Date.now()},k)},o.prototype.processRequests=function(p){var x=this;if(!(this.pendingRequest||this.queue.length===0)){var A=this.queue.shift(),k=A.id,F=A.timestamp;k&&this.success[k]||(this.anonId||this.fetchEventData(),oe(this.anonId)||(this.anonId=te()),this.postEvent(F,{skuToken:this.skuToken},function(Y){Y||k&&(x.success[k]=!0)},p))}},o}(tr),br=function(n){function o(u){n.call(this,"appUserTurnstile"),this._customAccessToken=u}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.postTurnstileEvent=function(p,x){je.EVENTS_URL&&je.ACCESS_TOKEN&&Array.isArray(p)&&p.some(function(A){return ut(A)||xr(A)})&&this.queueRequest(Date.now(),x)},o.prototype.processRequests=function(p){var x=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var A=Ot(je.ACCESS_TOKEN),k=A?A.u:je.ACCESS_TOKEN,F=k!==this.eventData.tokenU;oe(this.anonId)||(this.anonId=te(),F=!0);var Y=this.queue.shift();if(this.eventData.lastSuccess){var j=new Date(this.eventData.lastSuccess),Q=new Date(Y),ie=(Y-this.eventData.lastSuccess)/(24*60*60*1e3);F=F||ie>=1||ie<-1||j.getDate()!==Q.getDate()}else F=!0;if(!F)return this.processRequests();this.postEvent(Y,{"enabled.telemetry":!1},function(ge){ge||(x.eventData.lastSuccess=Y,x.eventData.tokenU=k)},p)}},o}(tr),Lt=new br,Fe=Lt.postTurnstileEvent.bind(Lt),He=new Mr,xt=He.postMapLoadEvent.bind(He),vt="mapbox-tiles",yr=500,Er=50,Ar=1e3*60*7,Hr;function _a(){_.caches&&!Hr&&(Hr=_.caches.open(vt))}var ka;function Ea(n,o){if(ka===void 0)try{new Response(new ReadableStream),ka=!0}catch(u){ka=!1}ka?o(n.body):n.blob().then(o)}function Ii(n,o,u){if(_a(),!!Hr){var p={status:o.status,statusText:o.statusText,headers:new _.Headers};o.headers.forEach(function(k,F){return p.headers.set(F,k)});var x=mt(o.headers.get("Cache-Control")||"");if(!x["no-store"]){x["max-age"]&&p.headers.set("Expires",new Date(u+x["max-age"]*1e3).toUTCString());var A=new Date(p.headers.get("Expires")).getTime()-u;ADate.now()&&!u["no-cache"]}var jn=1/0;function En(n){jn++,jn>Er&&(n.getActor().send("enforceCacheSizeLimit",yr),jn=0)}function Vi(n){_a(),Hr&&Hr.then(function(o){o.keys().then(function(u){for(var p=0;p=200&&u.status<300||u.status===0)&&u.response!==null){var x=u.response;if(n.type==="json")try{x=JSON.parse(u.response)}catch(A){return o(A)}o(null,x,u.getResponseHeader("Cache-Control"),u.getResponseHeader("Expires"))}else o(new ya(u.statusText,u.status,n.url))},u.send(n.body),{cancel:function(){return u.abort()}}}var Ee=function(n,o){if(!ee(n.url)){if(_.fetch&&_.Request&&_.AbortController&&_.Request.prototype.hasOwnProperty("signal"))return se(n,o);if(at()&&self.worker&&self.worker.actor){var u=!0;return self.worker.actor.send("getResource",n,o,void 0,u)}}return ce(n,o)},Be=function(n,o){return Ee(H(n,{type:"json"}),o)},et=function(n,o){return Ee(H(n,{type:"arrayBuffer"}),o)},Ve=function(n,o){return Ee(H(n,{method:"POST"}),o)};function yt(n){var o=_.document.createElement("a");return o.href=n,o.protocol===_.document.location.protocol&&o.host===_.document.location.host}var Dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function Ft(n,o,u,p){var x=new _.Image,A=_.URL;x.onload=function(){o(null,x),A.revokeObjectURL(x.src),x.onload=null,_.requestAnimationFrame(function(){x.src=Dt})},x.onerror=function(){return o(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var k=new _.Blob([new Uint8Array(n)],{type:"image/png"});x.cacheControl=u,x.expires=p,x.src=n.byteLength?A.createObjectURL(k):Dt}function rr(n,o){var u=new _.Blob([new Uint8Array(n)],{type:"image/png"});_.createImageBitmap(u).then(function(p){o(null,p)}).catch(function(p){o(new Error("Could not load image because of "+p.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var jt,Tr,Yr=function(){jt=[],Tr=0};Yr();var Br=function(n,o){if(qt.supported&&(n.headers||(n.headers={}),n.headers.accept="image/webp,*/*"),Tr>=je.MAX_PARALLEL_IMAGE_REQUESTS){var u={requestParameters:n,callback:o,cancelled:!1,cancel:function(){this.cancelled=!0}};return jt.push(u),u}Tr++;var p=!1,x=function(){if(!p)for(p=!0,Tr--;jt.length&&Tr0||this._oneTimeListeners&&this._oneTimeListeners[o]&&this._oneTimeListeners[o].length>0||this._eventedParent&&this._eventedParent.listens(o)},dr.prototype.setEventedParent=function(o,u){return this._eventedParent=o,this._eventedParentData=u,this};var $r=8,ga={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},nr={"*":{type:"source"}},wi=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],La={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},si={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},fa={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Ln={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},Co={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},_s={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},Ga={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},Jn=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],hu={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Bi={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},dl={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Qd={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},qc={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Nc={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},hv={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},vv={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},vu={type:"array",value:"*"},pl={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},$d={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},Ku={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},Zf={type:"array",value:"*",minimum:1},Qi={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},Ho=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],mo={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},ml={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},Go={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},du={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},ep={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},dv={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Qu={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},pv={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},mv={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},oo={"*":{type:"string"}},Jt={$version:$r,$root:ga,sources:nr,source:wi,source_vector:La,source_raster:si,source_raster_dem:fa,source_geojson:Ln,source_video:Co,source_image:_s,layer:Ga,layout:Jn,layout_background:hu,layout_fill:Bi,layout_circle:dl,layout_heatmap:Qd,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:qc,layout_symbol:Nc,layout_raster:hv,layout_hillshade:vv,filter:vu,filter_operator:pl,geometry_type:$d,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:Ku,expression:Zf,light:Qi,paint:Ho,paint_fill:mo,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:ml,paint_circle:Go,paint_heatmap:du,paint_symbol:ep,paint_raster:dv,paint_hillshade:Qu,paint_background:pv,transition:mv,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:oo},Or=function(o,u,p,x){this.message=(o?o+": ":"")+p,x&&(this.identifier=x),u!=null&&u.__line__&&(this.line=u.__line__)};function tp(n){var o=n.key,u=n.value;return u?[new Or(o,u,"constants have been deprecated as of v8")]:[]}function pu(n){for(var o=[],u=arguments.length-1;u-- >0;)o[u]=arguments[u+1];for(var p=0,x=o;p":n.itemType.kind==="value"?"array":"array<"+o+">"}else return n.kind}var ws=[ef,Cr,wa,Ta,bs,us,gl,yo(Ma),_l];function fs(n,o){if(o.kind==="error")return null;if(n.kind==="array"){if(o.kind==="array"&&(o.N===0&&o.itemType.kind==="value"||!fs(n.itemType,o.itemType))&&(typeof n.N!="number"||n.N===o.N))return null}else{if(n.kind===o.kind)return null;if(n.kind==="value")for(var u=0,p=ws;u255?255:j}function x(j){return j<0?0:j>1?1:j}function A(j){return j[j.length-1]==="%"?p(parseFloat(j)/100*255):p(parseInt(j))}function k(j){return j[j.length-1]==="%"?x(parseFloat(j)/100):x(parseFloat(j))}function F(j,Q,ie){return ie<0?ie+=1:ie>1&&(ie-=1),ie*6<1?j+(Q-j)*ie*6:ie*2<1?Q:ie*3<2?j+(Q-j)*(2/3-ie)*6:j}function Y(j){var Q=j.replace(/ /g,"").toLowerCase();if(Q in u)return u[Q].slice();if(Q[0]==="#"){if(Q.length===4){var ie=parseInt(Q.substr(1),16);return ie>=0&&ie<=4095?[(ie&3840)>>4|(ie&3840)>>8,ie&240|(ie&240)>>4,ie&15|(ie&15)<<4,1]:null}else if(Q.length===7){var ie=parseInt(Q.substr(1),16);return ie>=0&&ie<=16777215?[(ie&16711680)>>16,(ie&65280)>>8,ie&255,1]:null}return null}var ge=Q.indexOf("("),he=Q.indexOf(")");if(ge!==-1&&he+1===Q.length){var ke=Q.substr(0,ge),qe=Q.substr(ge+1,he-(ge+1)).split(","),lt=1;switch(ke){case"rgba":if(qe.length!==4)return null;lt=k(qe.pop());case"rgb":return qe.length!==3?null:[A(qe[0]),A(qe[1]),A(qe[2]),lt];case"hsla":if(qe.length!==4)return null;lt=k(qe.pop());case"hsl":if(qe.length!==3)return null;var $e=(parseFloat(qe[0])%360+360)%360/360,kt=k(qe[1]),_t=k(qe[2]),St=_t<=.5?_t*(kt+1):_t+kt-_t*kt,Rt=_t*2-St;return[p(F(Rt,St,$e+1/3)*255),p(F(Rt,St,$e)*255),p(F(Rt,St,$e-1/3)*255),lt];default:return null}}return null}try{o.parseCSSColor=Y}catch(j){}}),Yf=Mm.parseCSSColor,oi=function(o,u,p,x){x===void 0&&(x=1),this.r=o,this.g=u,this.b=p,this.a=x};oi.parse=function(o){if(o){if(o instanceof oi)return o;if(typeof o=="string"){var u=Yf(o);if(u)return new oi(u[0]/255*u[3],u[1]/255*u[3],u[2]/255*u[3],u[3])}}},oi.prototype.toString=function(){var o=this.toArray(),u=o[0],p=o[1],x=o[2],A=o[3];return"rgba("+Math.round(u)+","+Math.round(p)+","+Math.round(x)+","+A+")"},oi.prototype.toArray=function(){var o=this,u=o.r,p=o.g,x=o.b,A=o.a;return A===0?[0,0,0,0]:[u*255/A,p*255/A,x*255/A,A]},oi.black=new oi(0,0,0,1),oi.white=new oi(1,1,1,1),oi.transparent=new oi(0,0,0,0),oi.red=new oi(1,0,0,1);var Wf=function(o,u,p){o?this.sensitivity=u?"variant":"case":this.sensitivity=u?"accent":"base",this.locale=p,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Wf.prototype.compare=function(o,u){return this.collator.compare(o,u)},Wf.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var yv=function(o,u,p,x,A){this.text=o,this.image=u,this.scale=p,this.fontStack=x,this.textColor=A},gn=function(o){this.sections=o};gn.fromString=function(o){return new gn([new yv(o,null,null,null,null)])},gn.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(o){return o.text.length!==0||o.image&&o.image.name.length!==0})},gn.factory=function(o){return o instanceof gn?o:gn.fromString(o)},gn.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(o){return o.text}).join("")},gn.prototype.serialize=function(){for(var o=["format"],u=0,p=this.sections;u=0&&n<=255&&typeof o=="number"&&o>=0&&o<=255&&typeof u=="number"&&u>=0&&u<=255)){var x=typeof p=="number"?[n,o,u,p]:[n,o,u];return"Invalid rgba value ["+x.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof p=="undefined"||typeof p=="number"&&p>=0&&p<=1?null:"Invalid rgba value ["+[n,o,u,p].join(", ")+"]: 'a' must be between 0 and 1."}function tf(n){if(n===null)return!0;if(typeof n=="string")return!0;if(typeof n=="boolean")return!0;if(typeof n=="number")return!0;if(n instanceof oi)return!0;if(n instanceof Wf)return!0;if(n instanceof gn)return!0;if(n instanceof Dn)return!0;if(Array.isArray(n)){for(var o=0,u=n;o2){var F=o[1];if(typeof F!="string"||!(F in Xf)||F==="object")return u.error('The item type argument of "array" must be one of string, number, boolean',1);k=Xf[F],p++}else k=Ma;var Y;if(o.length>3){if(o[2]!==null&&(typeof o[2]!="number"||o[2]<0||o[2]!==Math.floor(o[2])))return u.error('The length argument to "array" must be a positive integer literal',2);Y=o[2],p++}x=yo(k,Y)}else x=Xf[A];for(var j=[];p1)&&u.push(x)}}return u.concat(this.args.map(function(A){return A.serialize()}))};var Yo=function(o){this.type=us,this.sections=o};Yo.parse=function(o,u){if(o.length<2)return u.error("Expected at least one argument.");var p=o[1];if(!Array.isArray(p)&&typeof p=="object")return u.error("First argument must be an image or text section.");for(var x=[],A=!1,k=1;k<=o.length-1;++k){var F=o[k];if(A&&typeof F=="object"&&!Array.isArray(F)){A=!1;var Y=null;if(F["font-scale"]&&(Y=u.parse(F["font-scale"],1,Cr),!Y))return null;var j=null;if(F["text-font"]&&(j=u.parse(F["text-font"],1,yo(wa)),!j))return null;var Q=null;if(F["text-color"]&&(Q=u.parse(F["text-color"],1,bs),!Q))return null;var ie=x[x.length-1];ie.scale=Y,ie.font=j,ie.textColor=Q}else{var ge=u.parse(o[k],1,Ma);if(!ge)return null;var he=ge.type.kind;if(he!=="string"&&he!=="value"&&he!=="null"&&he!=="resolvedImage")return u.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");A=!0,x.push({content:ge,scale:null,font:null,textColor:null})}}return new Yo(x)},Yo.prototype.evaluate=function(o){var u=function(p){var x=p.content.evaluate(o);return nn(x)===_l?new yv("",x,null,null,null):new yv(Eo(x),null,p.scale?p.scale.evaluate(o):null,p.font?p.font.evaluate(o).join(","):null,p.textColor?p.textColor.evaluate(o):null)};return new gn(this.sections.map(u))},Yo.prototype.eachChild=function(o){for(var u=0,p=this.sections;u-1),p},Xs.prototype.eachChild=function(o){o(this.input)},Xs.prototype.outputDefined=function(){return!1},Xs.prototype.serialize=function(){return["image",this.input.serialize()]};var Sm={"to-boolean":Ta,"to-color":bs,"to-number":Cr,"to-string":wa},Wo=function(o,u){this.type=o,this.args=u};Wo.parse=function(o,u){if(o.length<2)return u.error("Expected at least one argument.");var p=o[0];if((p==="to-boolean"||p==="to-string")&&o.length!==2)return u.error("Expected one argument.");for(var x=Sm[p],A=[],k=1;k4?p="Invalid rbga value "+JSON.stringify(u)+": expected an array containing either three or four numeric values.":p=rp(u[0],u[1],u[2],u[3]),!p))return new oi(u[0]/255,u[1]/255,u[2]/255,u[3])}throw new un(p||"Could not parse color from value '"+(typeof u=="string"?u:String(JSON.stringify(u)))+"'")}else if(this.type.kind==="number"){for(var Y=null,j=0,Q=this.args;j=o[2]||n[1]<=o[1]||n[3]>=o[3])}function Dm(n,o){var u=Em(n[0]),p=Lm(n[1]),x=Math.pow(2,o.z);return[Math.round(u*x*bl),Math.round(p*x*bl)]}function Pm(n,o,u){var p=n[0]-o[0],x=n[1]-o[1],A=n[0]-u[0],k=n[1]-u[1];return p*k-A*x===0&&p*A<=0&&x*k<=0}function zm(n,o,u){return o[1]>n[1]!=u[1]>n[1]&&n[0]<(u[0]-o[0])*(n[1]-o[1])/(u[1]-o[1])+o[0]}function _v(n,o){for(var u=!1,p=0,x=o.length;p0&&ie<0||Q<0&&ie>0}function ap(n,o,u,p){var x=[o[0]-n[0],o[1]-n[1]],A=[p[0]-u[0],p[1]-u[1]];return Rm(A,x)===0?!1:!!(xv(n,o,u,p)&&xv(u,p,n,o))}function ip(n,o,u){for(var p=0,x=u;pu[2]){var x=p*.5,A=n[0]-u[0]>x?-p:u[0]-n[0]>x?p:0;A===0&&(A=n[0]-u[2]>x?-p:u[2]-n[0]>x?p:0),n[0]+=A}gv(o,n)}function qm(n){n[0]=n[1]=1/0,n[2]=n[3]=-1/0}function op(n,o,u,p){for(var x=Math.pow(2,p.z)*bl,A=[p.x*bl,p.y*bl],k=[],F=0,Y=n;F=0)return!1;var u=!0;return n.eachChild(function(p){u&&!Vc(p,o)&&(u=!1)}),u}var Tl=function(o,u){this.type=u.type,this.name=o,this.boundExpression=u};Tl.parse=function(o,u){if(o.length!==2||typeof o[1]!="string")return u.error("'var' expression requires exactly one string literal argument.");var p=o[1];return u.scope.has(p)?new Tl(p,u.scope.get(p)):u.error('Unknown variable "'+p+'". Make sure "'+p+'" has been bound in an enclosing "let" expression before using it.',1)},Tl.prototype.evaluate=function(o){return this.boundExpression.evaluate(o)},Tl.prototype.eachChild=function(){},Tl.prototype.outputDefined=function(){return!1},Tl.prototype.serialize=function(){return["var",this.name]};var Al=function(o,u,p,x,A){u===void 0&&(u=[]),x===void 0&&(x=new $u),A===void 0&&(A=[]),this.registry=o,this.path=u,this.key=u.map(function(k){return"["+k+"]"}).join(""),this.scope=x,this.errors=A,this.expectedType=p};Al.prototype.parse=function(o,u,p,x,A){return A===void 0&&(A={}),u?this.concat(u,p,x)._parse(o,A):this._parse(o,A)},Al.prototype._parse=function(o,u){(o===null||typeof o=="string"||typeof o=="boolean"||typeof o=="number")&&(o=["literal",o]);function p(Q,ie,ge){return ge==="assert"?new on(ie,[Q]):ge==="coerce"?new Wo(ie,[Q]):Q}if(Array.isArray(o)){if(o.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var x=o[0];if(typeof x!="string")return this.error("Expression name must be a string, but found "+typeof x+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var A=this.registry[x];if(A){var k=A.parse(o,this);if(!k)return null;if(this.expectedType){var F=this.expectedType,Y=k.type;if((F.kind==="string"||F.kind==="number"||F.kind==="boolean"||F.kind==="object"||F.kind==="array")&&Y.kind==="value")k=p(k,F,u.typeAnnotation||"assert");else if((F.kind==="color"||F.kind==="formatted"||F.kind==="resolvedImage")&&(Y.kind==="value"||Y.kind==="string"))k=p(k,F,u.typeAnnotation||"coerce");else if(this.checkSubtype(F,Y))return null}if(!(k instanceof Zo)&&k.type.kind!=="resolvedImage"&&Tv(k)){var j=new js;try{k=new Zo(k.type,k.evaluate(j))}catch(Q){return this.error(Q.message),null}}return k}return this.error('Unknown expression "'+x+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof o=="undefined"?this.error("'undefined' value invalid. Use null instead."):typeof o=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof o+" instead.")},Al.prototype.concat=function(o,u,p){var x=typeof o=="number"?this.path.concat(o):this.path,A=p?this.scope.concat(p):this.scope;return new Al(this.registry,x,u||null,A,this.errors)},Al.prototype.error=function(o){for(var u=[],p=arguments.length-1;p-- >0;)u[p]=arguments[p+1];var x=""+this.key+u.map(function(A){return"["+A+"]"}).join("");this.errors.push(new xs(x,o))},Al.prototype.checkSubtype=function(o,u){var p=fs(o,u);return p&&this.error(p),p};function Tv(n){if(n instanceof Tl)return Tv(n.boundExpression);if(n instanceof Pn&&n.name==="error")return!1;if(n instanceof xl)return!1;if(n instanceof cs)return!1;var o=n instanceof Wo||n instanceof on,u=!0;return n.eachChild(function(p){o?u=u&&Tv(p):u=u&&p instanceof Zo}),u?Uc(n)&&Vc(n,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function Hc(n,o){for(var u=n.length-1,p=0,x=u,A=0,k,F;p<=x;)if(A=Math.floor((p+x)/2),k=n[A],F=n[A+1],k<=o){if(A===u||oo)x=A-1;else throw new un("Input is not a number.");return 0}var Ts=function(o,u,p){this.type=o,this.input=u,this.labels=[],this.outputs=[];for(var x=0,A=p;x=F)return u.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',j);var ie=u.parse(Y,Q,A);if(!ie)return null;A=A||ie.type,x.push([F,ie])}return new Ts(A,p,x)},Ts.prototype.evaluate=function(o){var u=this.labels,p=this.outputs;if(u.length===1)return p[0].evaluate(o);var x=this.input.evaluate(o);if(x<=u[0])return p[0].evaluate(o);var A=u.length;if(x>=u[A-1])return p[A-1].evaluate(o);var k=Hc(u,x);return p[k].evaluate(o)},Ts.prototype.eachChild=function(o){o(this.input);for(var u=0,p=this.outputs;u0&&o.push(this.labels[u]),o.push(this.outputs[u].serialize());return o};function fn(n,o,u){return n*(1-u)+o*u}function Bm(n,o,u){return new oi(fn(n.r,o.r,u),fn(n.g,o.g,u),fn(n.b,o.b,u),fn(n.a,o.a,u))}function Om(n,o,u){return n.map(function(p,x){return fn(p,o[x],u)})}var Ml=Object.freeze({__proto__:null,number:fn,color:Bm,array:Om}),rf=.95047,hs=1,up=1.08883,fp=4/29,af=6/29,cp=3*af*af,hp=af*af*af,Um=Math.PI/180,Vm=180/Math.PI;function Av(n){return n>hp?Math.pow(n,1/3):n/cp+fp}function Mv(n){return n>af?n*n*n:cp*(n-fp)}function Sv(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function jf(n){return n/=255,n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function Gc(n){var o=jf(n.r),u=jf(n.g),p=jf(n.b),x=Av((.4124564*o+.3575761*u+.1804375*p)/rf),A=Av((.2126729*o+.7151522*u+.072175*p)/hs),k=Av((.0193339*o+.119192*u+.9503041*p)/up);return{l:116*A-16,a:500*(x-A),b:200*(A-k),alpha:n.a}}function vp(n){var o=(n.l+16)/116,u=isNaN(n.a)?o:o+n.a/500,p=isNaN(n.b)?o:o-n.b/200;return o=hs*Mv(o),u=rf*Mv(u),p=up*Mv(p),new oi(Sv(3.2404542*u-1.5371385*o-.4985314*p),Sv(-.969266*u+1.8760108*o+.041556*p),Sv(.0556434*u-.2040259*o+1.0572252*p),n.alpha)}function Ri(n,o,u){return{l:fn(n.l,o.l,u),a:fn(n.a,o.a,u),b:fn(n.b,o.b,u),alpha:fn(n.alpha,o.alpha,u)}}function Hm(n){var o=Gc(n),u=o.l,p=o.a,x=o.b,A=Math.atan2(x,p)*Vm;return{h:A<0?A+360:A,c:Math.sqrt(p*p+x*x),l:u,alpha:n.a}}function Zc(n){var o=n.h*Um,u=n.c,p=n.l;return vp({l:p,a:Math.cos(o)*u,b:Math.sin(o)*u,alpha:n.alpha})}function kv(n,o,u){var p=o-n;return n+u*(p>180||p<-180?p-360*Math.round(p/360):p)}function dp(n,o,u){return{h:kv(n.h,o.h,u),c:fn(n.c,o.c,u),l:fn(n.l,o.l,u),alpha:fn(n.alpha,o.alpha,u)}}var nf={forward:Gc,reverse:vp,interpolate:Ri},_u={forward:Hm,reverse:Zc,interpolate:dp},Cv=Object.freeze({__proto__:null,lab:nf,hcl:_u}),_n=function(o,u,p,x,A){this.type=o,this.operator=u,this.interpolation=p,this.input=x,this.labels=[],this.outputs=[];for(var k=0,F=A;k1}))return u.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);x={name:"cubic-bezier",controlPoints:Y}}else return u.error("Unknown interpolation type "+String(x[0]),1,0);if(o.length-1<4)return u.error("Expected at least 4 arguments, but found only "+(o.length-1)+".");if((o.length-1)%2!==0)return u.error("Expected an even number of arguments.");if(A=u.parse(A,2,Cr),!A)return null;var j=[],Q=null;p==="interpolate-hcl"||p==="interpolate-lab"?Q=bs:u.expectedType&&u.expectedType.kind!=="value"&&(Q=u.expectedType);for(var ie=0;ie=ge)return u.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',ke);var lt=u.parse(he,qe,Q);if(!lt)return null;Q=Q||lt.type,j.push([ge,lt])}return Q.kind!=="number"&&Q.kind!=="color"&&!(Q.kind==="array"&&Q.itemType.kind==="number"&&typeof Q.N=="number")?u.error("Type "+ki(Q)+" is not interpolatable."):new _n(Q,p,x,A,j)},_n.prototype.evaluate=function(o){var u=this.labels,p=this.outputs;if(u.length===1)return p[0].evaluate(o);var x=this.input.evaluate(o);if(x<=u[0])return p[0].evaluate(o);var A=u.length;if(x>=u[A-1])return p[A-1].evaluate(o);var k=Hc(u,x),F=u[k],Y=u[k+1],j=_n.interpolationFactor(this.interpolation,x,F,Y),Q=p[k].evaluate(o),ie=p[k+1].evaluate(o);return this.operator==="interpolate"?Ml[this.type.kind.toLowerCase()](Q,ie,j):this.operator==="interpolate-hcl"?_u.reverse(_u.interpolate(_u.forward(Q),_u.forward(ie),j)):nf.reverse(nf.interpolate(nf.forward(Q),nf.forward(ie),j))},_n.prototype.eachChild=function(o){o(this.input);for(var u=0,p=this.outputs;u=p.length)throw new un("Array index out of bounds: "+u+" > "+(p.length-1)+".");if(u!==Math.floor(u))throw new un("Array index must be an integer, but found "+u+" instead.");return p[u]},kl.prototype.eachChild=function(o){o(this.index),o(this.input)},kl.prototype.outputDefined=function(){return!1},kl.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Cl=function(o,u){this.type=Ta,this.needle=o,this.haystack=u};Cl.parse=function(o,u){if(o.length!==3)return u.error("Expected 2 arguments, but found "+(o.length-1)+" instead.");var p=u.parse(o[1],1,Ma),x=u.parse(o[2],2,Ma);return!p||!x?null:Bc(p.type,[Ta,wa,Cr,ef,Ma])?new Cl(p,x):u.error("Expected first argument to be of type boolean, string, number or null, but found "+ki(p.type)+" instead")},Cl.prototype.evaluate=function(o){var u=this.needle.evaluate(o),p=this.haystack.evaluate(o);if(!p)return!1;if(!yu(u,["boolean","string","number","null"]))throw new un("Expected first argument to be of type boolean, string, number or null, but found "+ki(nn(u))+" instead.");if(!yu(p,["string","array"]))throw new un("Expected second argument to be of type array or string, but found "+ki(nn(p))+" instead.");return p.indexOf(u)>=0},Cl.prototype.eachChild=function(o){o(this.needle),o(this.haystack)},Cl.prototype.outputDefined=function(){return!0},Cl.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Ks=function(o,u,p){this.type=Cr,this.needle=o,this.haystack=u,this.fromIndex=p};Ks.parse=function(o,u){if(o.length<=2||o.length>=5)return u.error("Expected 3 or 4 arguments, but found "+(o.length-1)+" instead.");var p=u.parse(o[1],1,Ma),x=u.parse(o[2],2,Ma);if(!p||!x)return null;if(!Bc(p.type,[Ta,wa,Cr,ef,Ma]))return u.error("Expected first argument to be of type boolean, string, number or null, but found "+ki(p.type)+" instead");if(o.length===4){var A=u.parse(o[3],3,Cr);return A?new Ks(p,x,A):null}else return new Ks(p,x)},Ks.prototype.evaluate=function(o){var u=this.needle.evaluate(o),p=this.haystack.evaluate(o);if(!yu(u,["boolean","string","number","null"]))throw new un("Expected first argument to be of type boolean, string, number or null, but found "+ki(nn(u))+" instead.");if(!yu(p,["string","array"]))throw new un("Expected second argument to be of type array or string, but found "+ki(nn(p))+" instead.");if(this.fromIndex){var x=this.fromIndex.evaluate(o);return p.indexOf(u,x)}return p.indexOf(u)},Ks.prototype.eachChild=function(o){o(this.needle),o(this.haystack),this.fromIndex&&o(this.fromIndex)},Ks.prototype.outputDefined=function(){return!1},Ks.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var o=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),o]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var As=function(o,u,p,x,A,k){this.inputType=o,this.type=u,this.input=p,this.cases=x,this.outputs=A,this.otherwise=k};As.parse=function(o,u){if(o.length<5)return u.error("Expected at least 4 arguments, but found only "+(o.length-1)+".");if(o.length%2!==1)return u.error("Expected an even number of arguments.");var p,x;u.expectedType&&u.expectedType.kind!=="value"&&(x=u.expectedType);for(var A={},k=[],F=2;FNumber.MAX_SAFE_INTEGER)return Q.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof he=="number"&&Math.floor(he)!==he)return Q.error("Numeric branch labels must be integer values.");if(!p)p=nn(he);else if(Q.checkSubtype(p,nn(he)))return null;if(typeof A[String(he)]!="undefined")return Q.error("Branch labels must be unique.");A[String(he)]=k.length}var ke=u.parse(j,F,x);if(!ke)return null;x=x||ke.type,k.push(ke)}var qe=u.parse(o[1],1,Ma);if(!qe)return null;var lt=u.parse(o[o.length-1],o.length-1,x);return!lt||qe.type.kind!=="value"&&u.concat(1).checkSubtype(p,qe.type)?null:new As(p,x,qe,A,k,lt)},As.prototype.evaluate=function(o){var u=this.input.evaluate(o),p=nn(u)===this.inputType&&this.outputs[this.cases[u]]||this.otherwise;return p.evaluate(o)},As.prototype.eachChild=function(o){o(this.input),this.outputs.forEach(o),o(this.otherwise)},As.prototype.outputDefined=function(){return this.outputs.every(function(o){return o.outputDefined()})&&this.otherwise.outputDefined()},As.prototype.serialize=function(){for(var o=this,u=["match",this.input.serialize()],p=Object.keys(this.cases).sort(),x=[],A={},k=0,F=p;k=5)return u.error("Expected 3 or 4 arguments, but found "+(o.length-1)+" instead.");var p=u.parse(o[1],1,Ma),x=u.parse(o[2],2,Cr);if(!p||!x)return null;if(!Bc(p.type,[yo(Ma),wa,Ma]))return u.error("Expected first argument to be of type array or string, but found "+ki(p.type)+" instead");if(o.length===4){var A=u.parse(o[3],3,Cr);return A?new El(p.type,p,x,A):null}else return new El(p.type,p,x)},El.prototype.evaluate=function(o){var u=this.input.evaluate(o),p=this.beginIndex.evaluate(o);if(!yu(u,["string","array"]))throw new un("Expected first argument to be of type array or string, but found "+ki(nn(u))+" instead.");if(this.endIndex){var x=this.endIndex.evaluate(o);return u.slice(p,x)}return u.slice(p)},El.prototype.eachChild=function(o){o(this.input),o(this.beginIndex),this.endIndex&&o(this.endIndex)},El.prototype.outputDefined=function(){return!1},El.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var o=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),o]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function pp(n,o){return n==="=="||n==="!="?o.kind==="boolean"||o.kind==="string"||o.kind==="number"||o.kind==="null"||o.kind==="value":o.kind==="string"||o.kind==="number"||o.kind==="value"}function Gm(n,o,u){return o===u}function Zm(n,o,u){return o!==u}function Ym(n,o,u){return ou}function yp(n,o,u){return o<=u}function Ev(n,o,u){return o>=u}function Lv(n,o,u,p){return p.compare(o,u)===0}function Kf(n,o,u,p){return!Lv(n,o,u,p)}function Yc(n,o,u,p){return p.compare(o,u)<0}function gp(n,o,u,p){return p.compare(o,u)>0}function Dv(n,o,u,p){return p.compare(o,u)<=0}function _p(n,o,u,p){return p.compare(o,u)>=0}function of(n,o,u){var p=n!=="=="&&n!=="!=";return function(){function x(A,k,F){this.type=Ta,this.lhs=A,this.rhs=k,this.collator=F,this.hasUntypedArgument=A.type.kind==="value"||k.type.kind==="value"}return x.parse=function(k,F){if(k.length!==3&&k.length!==4)return F.error("Expected two or three arguments.");var Y=k[0],j=F.parse(k[1],1,Ma);if(!j)return null;if(!pp(Y,j.type))return F.concat(1).error('"'+Y+`" comparisons are not supported for type '`+ki(j.type)+"'.");var Q=F.parse(k[2],2,Ma);if(!Q)return null;if(!pp(Y,Q.type))return F.concat(2).error('"'+Y+`" comparisons are not supported for type '`+ki(Q.type)+"'.");if(j.type.kind!==Q.type.kind&&j.type.kind!=="value"&&Q.type.kind!=="value")return F.error("Cannot compare types '"+ki(j.type)+"' and '"+ki(Q.type)+"'.");p&&(j.type.kind==="value"&&Q.type.kind!=="value"?j=new on(Q.type,[j]):j.type.kind!=="value"&&Q.type.kind==="value"&&(Q=new on(j.type,[Q])));var ie=null;if(k.length===4){if(j.type.kind!=="string"&&Q.type.kind!=="string"&&j.type.kind!=="value"&&Q.type.kind!=="value")return F.error("Cannot use collator to compare non-string types.");if(ie=F.parse(k[3],3,mu),!ie)return null}return new x(j,Q,ie)},x.prototype.evaluate=function(k){var F=this.lhs.evaluate(k),Y=this.rhs.evaluate(k);if(p&&this.hasUntypedArgument){var j=nn(F),Q=nn(Y);if(j.kind!==Q.kind||!(j.kind==="string"||j.kind==="number"))throw new un('Expected arguments for "'+n+'" to be (string, string) or (number, number), but found ('+j.kind+", "+Q.kind+") instead.")}if(this.collator&&!p&&this.hasUntypedArgument){var ie=nn(F),ge=nn(Y);if(ie.kind!=="string"||ge.kind!=="string")return o(k,F,Y)}return this.collator?u(k,F,Y,this.collator.evaluate(k)):o(k,F,Y)},x.prototype.eachChild=function(k){k(this.lhs),k(this.rhs),this.collator&&k(this.collator)},x.prototype.outputDefined=function(){return!0},x.prototype.serialize=function(){var k=[n];return this.eachChild(function(F){k.push(F.serialize())}),k},x}()}var Wm=of("==",Gm,Lv),xp=of("!=",Zm,Kf),bp=of("<",Ym,Yc),wp=of(">",mp,gp),Pv=of("<=",yp,Dv),zv=of(">=",Ev,_p),xu=function(o,u,p,x,A){this.type=wa,this.number=o,this.locale=u,this.currency=p,this.minFractionDigits=x,this.maxFractionDigits=A};xu.parse=function(o,u){if(o.length!==3)return u.error("Expected two arguments.");var p=u.parse(o[1],1,Cr);if(!p)return null;var x=o[2];if(typeof x!="object"||Array.isArray(x))return u.error("NumberFormat options argument must be an object.");var A=null;if(x.locale&&(A=u.parse(x.locale,1,wa),!A))return null;var k=null;if(x.currency&&(k=u.parse(x.currency,1,wa),!k))return null;var F=null;if(x["min-fraction-digits"]&&(F=u.parse(x["min-fraction-digits"],1,Cr),!F))return null;var Y=null;return x["max-fraction-digits"]&&(Y=u.parse(x["max-fraction-digits"],1,Cr),!Y)?null:new xu(p,A,k,F,Y)},xu.prototype.evaluate=function(o){return new Intl.NumberFormat(this.locale?this.locale.evaluate(o):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(o):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(o):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(o):void 0}).format(this.number.evaluate(o))},xu.prototype.eachChild=function(o){o(this.number),this.locale&&o(this.locale),this.currency&&o(this.currency),this.minFractionDigits&&o(this.minFractionDigits),this.maxFractionDigits&&o(this.maxFractionDigits)},xu.prototype.outputDefined=function(){return!1},xu.prototype.serialize=function(){var o={};return this.locale&&(o.locale=this.locale.serialize()),this.currency&&(o.currency=this.currency.serialize()),this.minFractionDigits&&(o["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(o["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),o]};var Ll=function(o){this.type=Cr,this.input=o};Ll.parse=function(o,u){if(o.length!==2)return u.error("Expected 1 argument, but found "+(o.length-1)+" instead.");var p=u.parse(o[1],1);return p?p.type.kind!=="array"&&p.type.kind!=="string"&&p.type.kind!=="value"?u.error("Expected argument of type string or array, but found "+ki(p.type)+" instead."):new Ll(p):null},Ll.prototype.evaluate=function(o){var u=this.input.evaluate(o);if(typeof u=="string")return u.length;if(Array.isArray(u))return u.length;throw new un("Expected value to be of type string or array, but found "+ki(nn(u))+" instead.")},Ll.prototype.eachChild=function(o){o(this.input)},Ll.prototype.outputDefined=function(){return!1},Ll.prototype.serialize=function(){var o=["length"];return this.eachChild(function(u){o.push(u.serialize())}),o};var Qf={"==":Wm,"!=":xp,">":wp,"<":bp,">=":zv,"<=":Pv,array:on,at:kl,boolean:on,case:Ms,coalesce:Js,collator:xl,format:Yo,image:Xs,in:Cl,"index-of":Ks,interpolate:_n,"interpolate-hcl":_n,"interpolate-lab":_n,length:Ll,let:Sl,literal:Zo,match:As,number:on,"number-format":xu,object:on,slice:El,step:Ts,string:on,"to-boolean":Wo,"to-color":Wo,"to-number":Wo,"to-string":Wo,var:Tl,within:cs};function Iv(n,o){var u=o[0],p=o[1],x=o[2],A=o[3];u=u.evaluate(n),p=p.evaluate(n),x=x.evaluate(n);var k=A?A.evaluate(n):1,F=rp(u,p,x,k);if(F)throw new un(F);return new oi(u/255*k,p/255*k,x/255*k,k)}function Wc(n,o){return n in o}function Xc(n,o){var u=o[n];return typeof u=="undefined"?null:u}function jc(n,o,u,p){for(;u<=p;){var x=u+p>>1;if(o[x]===n)return!0;o[x]>n?p=x-1:u=x+1}return!1}function Dl(n){return{type:n}}Pn.register(Qf,{error:[Ws,[wa],function(n,o){var u=o[0];throw new un(u.evaluate(n))}],typeof:[wa,[Ma],function(n,o){var u=o[0];return ki(nn(u.evaluate(n)))}],"to-rgba":[yo(Cr,4),[bs],function(n,o){var u=o[0];return u.evaluate(n).toArray()}],rgb:[bs,[Cr,Cr,Cr],Iv],rgba:[bs,[Cr,Cr,Cr,Cr],Iv],has:{type:Ta,overloads:[[[wa],function(n,o){var u=o[0];return Wc(u.evaluate(n),n.properties())}],[[wa,gl],function(n,o){var u=o[0],p=o[1];return Wc(u.evaluate(n),p.evaluate(n))}]]},get:{type:Ma,overloads:[[[wa],function(n,o){var u=o[0];return Xc(u.evaluate(n),n.properties())}],[[wa,gl],function(n,o){var u=o[0],p=o[1];return Xc(u.evaluate(n),p.evaluate(n))}]]},"feature-state":[Ma,[wa],function(n,o){var u=o[0];return Xc(u.evaluate(n),n.featureState||{})}],properties:[gl,[],function(n){return n.properties()}],"geometry-type":[wa,[],function(n){return n.geometryType()}],id:[Ma,[],function(n){return n.id()}],zoom:[Cr,[],function(n){return n.globals.zoom}],"heatmap-density":[Cr,[],function(n){return n.globals.heatmapDensity||0}],"line-progress":[Cr,[],function(n){return n.globals.lineProgress||0}],accumulated:[Ma,[],function(n){return n.globals.accumulated===void 0?null:n.globals.accumulated}],"+":[Cr,Dl(Cr),function(n,o){for(var u=0,p=0,x=o;p":[Ta,[wa,Ma],function(n,o){var u=o[0],p=o[1],x=n.properties()[u.value],A=p.value;return typeof x==typeof A&&x>A}],"filter-id->":[Ta,[Ma],function(n,o){var u=o[0],p=n.id(),x=u.value;return typeof p==typeof x&&p>x}],"filter-<=":[Ta,[wa,Ma],function(n,o){var u=o[0],p=o[1],x=n.properties()[u.value],A=p.value;return typeof x==typeof A&&x<=A}],"filter-id-<=":[Ta,[Ma],function(n,o){var u=o[0],p=n.id(),x=u.value;return typeof p==typeof x&&p<=x}],"filter->=":[Ta,[wa,Ma],function(n,o){var u=o[0],p=o[1],x=n.properties()[u.value],A=p.value;return typeof x==typeof A&&x>=A}],"filter-id->=":[Ta,[Ma],function(n,o){var u=o[0],p=n.id(),x=u.value;return typeof p==typeof x&&p>=x}],"filter-has":[Ta,[Ma],function(n,o){var u=o[0];return u.value in n.properties()}],"filter-has-id":[Ta,[],function(n){return n.id()!==null&&n.id()!==void 0}],"filter-type-in":[Ta,[yo(wa)],function(n,o){var u=o[0];return u.value.indexOf(n.geometryType())>=0}],"filter-id-in":[Ta,[yo(Ma)],function(n,o){var u=o[0];return u.value.indexOf(n.id())>=0}],"filter-in-small":[Ta,[wa,yo(Ma)],function(n,o){var u=o[0],p=o[1];return p.value.indexOf(n.properties()[u.value])>=0}],"filter-in-large":[Ta,[wa,yo(Ma)],function(n,o){var u=o[0],p=o[1];return jc(n.properties()[u.value],p.value,0,p.value.length-1)}],all:{type:Ta,overloads:[[[Ta,Ta],function(n,o){var u=o[0],p=o[1];return u.evaluate(n)&&p.evaluate(n)}],[Dl(Ta),function(n,o){for(var u=0,p=o;u-1}function Kc(n){return!!n.expression&&n.expression.interpolated}function di(n){return n instanceof Number?"number":n instanceof String?"string":n instanceof Boolean?"boolean":Array.isArray(n)?"array":n===null?"null":typeof n}function $f(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function Ap(n){return n}function Mp(n,o){var u=o.type==="color",p=n.stops&&typeof n.stops[0][0]=="object",x=p||n.property!==void 0,A=p||!x,k=n.type||(Kc(o)?"exponential":"interval");if(u&&(n=pu({},n),n.stops&&(n.stops=n.stops.map(function(ur){return[ur[0],oi.parse(ur[1])]})),n.default?n.default=oi.parse(n.default):n.default=oi.parse(o.default)),n.colorSpace&&n.colorSpace!=="rgb"&&!Cv[n.colorSpace])throw new Error("Unknown color space: "+n.colorSpace);var F,Y,j;if(k==="exponential")F=Rv;else if(k==="interval")F=kp;else if(k==="categorical"){F=Sp,Y=Object.create(null);for(var Q=0,ie=n.stops;Q=n.stops[p-1][0])return n.stops[p-1][1];var x=Hc(n.stops.map(function(A){return A[0]}),u);return n.stops[x][1]}function Rv(n,o,u){var p=n.base!==void 0?n.base:1;if(di(u)!=="number")return Pl(n.default,o.default);var x=n.stops.length;if(x===1||u<=n.stops[0][0])return n.stops[0][1];if(u>=n.stops[x-1][0])return n.stops[x-1][1];var A=Hc(n.stops.map(function(ie){return ie[0]}),u),k=Xm(u,p,n.stops[A][0],n.stops[A+1][0]),F=n.stops[A][1],Y=n.stops[A+1][1],j=Ml[o.type]||Ap;if(n.colorSpace&&n.colorSpace!=="rgb"){var Q=Cv[n.colorSpace];j=function(ie,ge){return Q.reverse(Q.interpolate(Q.forward(ie),Q.forward(ge),k))}}return typeof F.evaluate=="function"?{evaluate:function(){for(var ge=[],he=arguments.length;he--;)ge[he]=arguments[he];var ke=F.evaluate.apply(void 0,ge),qe=Y.evaluate.apply(void 0,ge);if(!(ke===void 0||qe===void 0))return j(ke,qe,k)}}:j(F,Y,k)}function Cp(n,o,u){return o.type==="color"?u=oi.parse(u):o.type==="formatted"?u=gn.fromString(u.toString()):o.type==="resolvedImage"?u=Dn.fromString(u.toString()):di(u)!==o.type&&(o.type!=="enum"||!o.values[u])&&(u=void 0),Pl(u,n.default,o.default)}function Xm(n,o,u,p){var x=p-u,A=n-u;return x===0?0:o===1?A/x:(Math.pow(o,A)-1)/(Math.pow(o,x)-1)}var zl=function(o,u){this.expression=o,this._warningHistory={},this._evaluator=new js,this._defaultValue=u?Jm(u):null,this._enumValues=u&&u.type==="enum"?u.values:null};zl.prototype.evaluateWithoutErrorHandling=function(o,u,p,x,A,k){return this._evaluator.globals=o,this._evaluator.feature=u,this._evaluator.featureState=p,this._evaluator.canonical=x,this._evaluator.availableImages=A||null,this._evaluator.formattedSection=k,this.expression.evaluate(this._evaluator)},zl.prototype.evaluate=function(o,u,p,x,A,k){this._evaluator.globals=o,this._evaluator.feature=u||null,this._evaluator.featureState=p||null,this._evaluator.canonical=x,this._evaluator.availableImages=A||null,this._evaluator.formattedSection=k||null;try{var F=this.expression.evaluate(this._evaluator);if(F==null||typeof F=="number"&&F!==F)return this._defaultValue;if(this._enumValues&&!(F in this._enumValues))throw new un("Expected value to be one of "+Object.keys(this._enumValues).map(function(Y){return JSON.stringify(Y)}).join(", ")+", but found "+JSON.stringify(F)+" instead.");return F}catch(Y){return this._warningHistory[Y.message]||(this._warningHistory[Y.message]=!0,typeof console!="undefined"&&console.warn(Y.message)),this._defaultValue}};function wu(n){return Array.isArray(n)&&n.length>0&&typeof n[0]=="string"&&n[0]in Qf}function ec(n,o){var u=new Al(Qf,[],o?Fv(o):void 0),p=u.parse(n,void 0,void 0,void 0,o&&o.type==="string"?{typeAnnotation:"coerce"}:void 0);return p?Jc(new zl(p,o)):bu(u.errors)}var Ss=function(o,u){this.kind=o,this._styleExpression=u,this.isStateDependent=o!=="constant"&&!wl(u.expression)};Ss.prototype.evaluateWithoutErrorHandling=function(o,u,p,x,A,k){return this._styleExpression.evaluateWithoutErrorHandling(o,u,p,x,A,k)},Ss.prototype.evaluate=function(o,u,p,x,A,k){return this._styleExpression.evaluate(o,u,p,x,A,k)};var ks=function(o,u,p,x){this.kind=o,this.zoomStops=p,this._styleExpression=u,this.isStateDependent=o!=="camera"&&!wl(u.expression),this.interpolationType=x};ks.prototype.evaluateWithoutErrorHandling=function(o,u,p,x,A,k){return this._styleExpression.evaluateWithoutErrorHandling(o,u,p,x,A,k)},ks.prototype.evaluate=function(o,u,p,x,A,k){return this._styleExpression.evaluate(o,u,p,x,A,k)},ks.prototype.interpolationFactor=function(o,u,p){return this.interpolationType?_n.interpolationFactor(this.interpolationType,o,u,p):0};function Xo(n,o){if(n=ec(n,o),n.result==="error")return n;var u=n.value.expression,p=Uc(u);if(!p&&!sf(o))return bu([new xs("","data expressions not supported")]);var x=Vc(u,["zoom"]);if(!x&&!Tp(o))return bu([new xs("","zoom expressions not supported")]);var A=uf(u);if(!A&&!x)return bu([new xs("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(A instanceof xs)return bu([A]);if(A instanceof _n&&!Kc(o))return bu([new xs("",'"interpolate" expressions cannot be used with this property')]);if(!A)return Jc(p?new Ss("constant",n.value):new Ss("source",n.value));var k=A instanceof _n?A.interpolation:void 0;return Jc(p?new ks("camera",n.value,A.labels,k):new ks("composite",n.value,A.labels,k))}var lf=function(o,u){this._parameters=o,this._specification=u,pu(this,Mp(this._parameters,this._specification))};lf.deserialize=function(o){return new lf(o._parameters,o._specification)},lf.serialize=function(o){return{_parameters:o._parameters,_specification:o._specification}};function jm(n,o){if($f(n))return new lf(n,o);if(wu(n)){var u=Xo(n,o);if(u.result==="error")throw new Error(u.value.map(function(x){return x.key+": "+x.message}).join(", "));return u.value}else{var p=n;return typeof n=="string"&&o.type==="color"&&(p=oi.parse(n)),{kind:"constant",evaluate:function(){return p}}}}function uf(n){var o=null;if(n instanceof Sl)o=uf(n.result);else if(n instanceof Js)for(var u=0,p=n.args;up.maximum?[new Or(o,u,u+" is greater than the maximum value "+p.maximum)]:[]}function Qc(n){var o=n.valueSpec,u=an(n.value.type),p,x={},A,k,F=u!=="categorical"&&n.value.property===void 0,Y=!F,j=di(n.value.stops)==="array"&&di(n.value.stops[0])==="array"&&di(n.value.stops[0][0])==="object",Q=vs({key:n.key,value:n.value,valueSpec:n.styleSpec.function,style:n.style,styleSpec:n.styleSpec,objectElementValidators:{stops:ie,default:ke}});return u==="identity"&&F&&Q.push(new Or(n.key,n.value,'missing required property "property"')),u!=="identity"&&!n.value.stops&&Q.push(new Or(n.key,n.value,'missing required property "stops"')),u==="exponential"&&n.valueSpec.expression&&!Kc(n.valueSpec)&&Q.push(new Or(n.key,n.value,"exponential functions not supported")),n.styleSpec.$version>=8&&(Y&&!sf(n.valueSpec)?Q.push(new Or(n.key,n.value,"property functions not supported")):F&&!Tp(n.valueSpec)&&Q.push(new Or(n.key,n.value,"zoom functions not supported"))),(u==="categorical"||j)&&n.value.property===void 0&&Q.push(new Or(n.key,n.value,'"property" property is required')),Q;function ie(qe){if(u==="identity")return[new Or(qe.key,qe.value,'identity function may not have a "stops" property')];var lt=[],$e=qe.value;return lt=lt.concat(qv({key:qe.key,value:$e,valueSpec:qe.valueSpec,style:qe.style,styleSpec:qe.styleSpec,arrayElementValidator:ge})),di($e)==="array"&&$e.length===0&<.push(new Or(qe.key,$e,"array must have at least one stop")),lt}function ge(qe){var lt=[],$e=qe.value,kt=qe.key;if(di($e)!=="array")return[new Or(kt,$e,"array expected, "+di($e)+" found")];if($e.length!==2)return[new Or(kt,$e,"array length 2 expected, length "+$e.length+" found")];if(j){if(di($e[0])!=="object")return[new Or(kt,$e,"object expected, "+di($e[0])+" found")];if($e[0].zoom===void 0)return[new Or(kt,$e,"object stop key must have zoom")];if($e[0].value===void 0)return[new Or(kt,$e,"object stop key must have value")];if(k&&k>an($e[0].zoom))return[new Or(kt,$e[0].zoom,"stop zoom values must appear in ascending order")];an($e[0].zoom)!==k&&(k=an($e[0].zoom),A=void 0,x={}),lt=lt.concat(vs({key:kt+"[0]",value:$e[0],valueSpec:{zoom:{}},style:qe.style,styleSpec:qe.styleSpec,objectElementValidators:{zoom:ff,value:he}}))}else lt=lt.concat(he({key:kt+"[0]",value:$e[0],valueSpec:{},style:qe.style,styleSpec:qe.styleSpec},$e));return wu(yl($e[1]))?lt.concat([new Or(kt+"[1]",$e[1],"expressions are not allowed in function stops.")]):lt.concat(li({key:kt+"[1]",value:$e[1],valueSpec:o,style:qe.style,styleSpec:qe.styleSpec}))}function he(qe,lt){var $e=di(qe.value),kt=an(qe.value),_t=qe.value!==null?qe.value:lt;if(!p)p=$e;else if($e!==p)return[new Or(qe.key,_t,$e+" stop domain type must match previous stop domain type "+p)];if($e!=="number"&&$e!=="string"&&$e!=="boolean")return[new Or(qe.key,_t,"stop domain value must be a number, string, or boolean")];if($e!=="number"&&u!=="categorical"){var St="number expected, "+$e+" found";return sf(o)&&u===void 0&&(St+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Or(qe.key,_t,St)]}return u==="categorical"&&$e==="number"&&(!isFinite(kt)||Math.floor(kt)!==kt)?[new Or(qe.key,_t,"integer expected, found "+kt)]:u!=="categorical"&&$e==="number"&&A!==void 0&&kt=2&&n[1]!=="$id"&&n[1]!=="$type";case"in":return n.length>=3&&(typeof n[1]!="string"||Array.isArray(n[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return n.length!==3||Array.isArray(n[1])||Array.isArray(n[2]);case"any":case"all":for(var o=0,u=n.slice(1);oo?1:0}function hf(n){if(!Array.isArray(n))return!1;if(n[0]==="within")return!0;for(var o=1;o"||o==="<="||o===">="?Nv(n[1],n[2],o):o==="any"?$m(n.slice(1)):o==="all"?["all"].concat(n.slice(1).map(vf)):o==="none"?["all"].concat(n.slice(1).map(vf).map(tc)):o==="in"?Lp(n[1],n.slice(2)):o==="!in"?tc(Lp(n[1],n.slice(2))):o==="has"?Bv(n[1]):o==="!has"?tc(Bv(n[1])):o==="within"?n:!0;return u}function Nv(n,o,u){switch(n){case"$type":return["filter-type-"+u,o];case"$id":return["filter-id-"+u,o];default:return["filter-"+u,n,o]}}function $m(n){return["any"].concat(n.map(vf))}function Lp(n,o){if(o.length===0)return!1;switch(n){case"$type":return["filter-type-in",["literal",o]];case"$id":return["filter-id-in",["literal",o]];default:return o.length>200&&!o.some(function(u){return typeof u!=typeof o[0]})?["filter-in-large",n,["literal",o.sort(Il)]]:["filter-in-small",n,["literal",o]]}}function Bv(n){switch(n){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",n]}}function tc(n){return["!",n]}function eh(n){return go(yl(n.value))?Tu(pu({},n,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Ov(n)}function Ov(n){var o=n.value,u=n.key;if(di(o)!=="array")return[new Or(u,o,"array expected, "+di(o)+" found")];var p=n.styleSpec,x,A=[];if(o.length<1)return[new Or(u,o,"filter array must have at least 1 element")];switch(A=A.concat($c({key:u+"[0]",value:o[0],valueSpec:p.filter_operator,style:n.style,styleSpec:n.styleSpec})),an(o[0])){case"<":case"<=":case">":case">=":o.length>=2&&an(o[1])==="$type"&&A.push(new Or(u,o,'"$type" cannot be use with operator "'+o[0]+'"'));case"==":case"!=":o.length!==3&&A.push(new Or(u,o,'filter array for operator "'+o[0]+'" must have 3 elements'));case"in":case"!in":o.length>=2&&(x=di(o[1]),x!=="string"&&A.push(new Or(u+"[1]",o[1],"string expected, "+x+" found")));for(var k=2;k=Q[he+0]&&p>=Q[he+1])?(k[ge]=!0,A.push(j[ge])):k[ge]=!1}}},Es.prototype._forEachCell=function(n,o,u,p,x,A,k,F){for(var Y=this._convertToCellCoord(n),j=this._convertToCellCoord(o),Q=this._convertToCellCoord(u),ie=this._convertToCellCoord(p),ge=Y;ge<=Q;ge++)for(var he=j;he<=ie;he++){var ke=this.d*he+ge;if(!(F&&!F(this._convertFromCellCoord(ge),this._convertFromCellCoord(he),this._convertFromCellCoord(ge+1),this._convertFromCellCoord(he+1)))&&x.call(this,n,o,u,p,ke,A,k,F))return}},Es.prototype._convertFromCellCoord=function(n){return(n-this.padding)/this.scale},Es.prototype._convertToCellCoord=function(n){return Math.max(0,Math.min(this.d-1,Math.floor(n*this.scale)+this.padding))},Es.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var n=this.cells,o=Fl+this.cells.length+1+1,u=0,p=0;p=0)){var ie=n[Q];j[Q]=ql[Y].shallow.indexOf(Q)>=0?ie:U(ie,o)}n instanceof Error&&(j.message=n.message)}if(j.$name)throw new Error("$name property is reserved for worker serialization logic.");return Y!=="Object"&&(j.$name=Y),j}throw new Error("can't serialize object of type "+typeof n)}function Z(n){if(n==null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"||n instanceof Boolean||n instanceof Number||n instanceof String||n instanceof Date||n instanceof RegExp||P(n)||N(n)||ArrayBuffer.isView(n)||n instanceof nh)return n;if(Array.isArray(n))return n.map(Z);if(typeof n=="object"){var o=n.$name||"Object",u=ql[o],p=u.klass;if(!p)throw new Error("can't deserialize unregistered class "+o);if(p.deserialize)return p.deserialize(n);for(var x=Object.create(p.prototype),A=0,k=Object.keys(n);A=0?Y:Z(Y)}}return x}throw new Error("can't deserialize object of type "+typeof n)}var $=function(){this.first=!0};$.prototype.update=function(o,u){var p=Math.floor(o);return this.first?(this.first=!1,this.lastIntegerZoom=p,this.lastIntegerZoomTime=0,this.lastZoom=o,this.lastFloorZoom=p,!0):(this.lastFloorZoom>p?(this.lastIntegerZoom=p+1,this.lastIntegerZoomTime=u):this.lastFloorZoom=128&&n<=255},Arabic:function(n){return n>=1536&&n<=1791},"Arabic Supplement":function(n){return n>=1872&&n<=1919},"Arabic Extended-A":function(n){return n>=2208&&n<=2303},"Hangul Jamo":function(n){return n>=4352&&n<=4607},"Unified Canadian Aboriginal Syllabics":function(n){return n>=5120&&n<=5759},Khmer:function(n){return n>=6016&&n<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(n){return n>=6320&&n<=6399},"General Punctuation":function(n){return n>=8192&&n<=8303},"Letterlike Symbols":function(n){return n>=8448&&n<=8527},"Number Forms":function(n){return n>=8528&&n<=8591},"Miscellaneous Technical":function(n){return n>=8960&&n<=9215},"Control Pictures":function(n){return n>=9216&&n<=9279},"Optical Character Recognition":function(n){return n>=9280&&n<=9311},"Enclosed Alphanumerics":function(n){return n>=9312&&n<=9471},"Geometric Shapes":function(n){return n>=9632&&n<=9727},"Miscellaneous Symbols":function(n){return n>=9728&&n<=9983},"Miscellaneous Symbols and Arrows":function(n){return n>=11008&&n<=11263},"CJK Radicals Supplement":function(n){return n>=11904&&n<=12031},"Kangxi Radicals":function(n){return n>=12032&&n<=12255},"Ideographic Description Characters":function(n){return n>=12272&&n<=12287},"CJK Symbols and Punctuation":function(n){return n>=12288&&n<=12351},Hiragana:function(n){return n>=12352&&n<=12447},Katakana:function(n){return n>=12448&&n<=12543},Bopomofo:function(n){return n>=12544&&n<=12591},"Hangul Compatibility Jamo":function(n){return n>=12592&&n<=12687},Kanbun:function(n){return n>=12688&&n<=12703},"Bopomofo Extended":function(n){return n>=12704&&n<=12735},"CJK Strokes":function(n){return n>=12736&&n<=12783},"Katakana Phonetic Extensions":function(n){return n>=12784&&n<=12799},"Enclosed CJK Letters and Months":function(n){return n>=12800&&n<=13055},"CJK Compatibility":function(n){return n>=13056&&n<=13311},"CJK Unified Ideographs Extension A":function(n){return n>=13312&&n<=19903},"Yijing Hexagram Symbols":function(n){return n>=19904&&n<=19967},"CJK Unified Ideographs":function(n){return n>=19968&&n<=40959},"Yi Syllables":function(n){return n>=40960&&n<=42127},"Yi Radicals":function(n){return n>=42128&&n<=42191},"Hangul Jamo Extended-A":function(n){return n>=43360&&n<=43391},"Hangul Syllables":function(n){return n>=44032&&n<=55215},"Hangul Jamo Extended-B":function(n){return n>=55216&&n<=55295},"Private Use Area":function(n){return n>=57344&&n<=63743},"CJK Compatibility Ideographs":function(n){return n>=63744&&n<=64255},"Arabic Presentation Forms-A":function(n){return n>=64336&&n<=65023},"Vertical Forms":function(n){return n>=65040&&n<=65055},"CJK Compatibility Forms":function(n){return n>=65072&&n<=65103},"Small Form Variants":function(n){return n>=65104&&n<=65135},"Arabic Presentation Forms-B":function(n){return n>=65136&&n<=65279},"Halfwidth and Fullwidth Forms":function(n){return n>=65280&&n<=65519}};function ae(n){for(var o=0,u=n;o=65097&&n<=65103)||X["CJK Compatibility Ideographs"](n)||X["CJK Compatibility"](n)||X["CJK Radicals Supplement"](n)||X["CJK Strokes"](n)||X["CJK Symbols and Punctuation"](n)&&!(n>=12296&&n<=12305)&&!(n>=12308&&n<=12319)&&n!==12336||X["CJK Unified Ideographs Extension A"](n)||X["CJK Unified Ideographs"](n)||X["Enclosed CJK Letters and Months"](n)||X["Hangul Compatibility Jamo"](n)||X["Hangul Jamo Extended-A"](n)||X["Hangul Jamo Extended-B"](n)||X["Hangul Jamo"](n)||X["Hangul Syllables"](n)||X.Hiragana(n)||X["Ideographic Description Characters"](n)||X.Kanbun(n)||X["Kangxi Radicals"](n)||X["Katakana Phonetic Extensions"](n)||X.Katakana(n)&&n!==12540||X["Halfwidth and Fullwidth Forms"](n)&&n!==65288&&n!==65289&&n!==65293&&!(n>=65306&&n<=65310)&&n!==65339&&n!==65341&&n!==65343&&!(n>=65371&&n<=65503)&&n!==65507&&!(n>=65512&&n<=65519)||X["Small Form Variants"](n)&&!(n>=65112&&n<=65118)&&!(n>=65123&&n<=65126)||X["Unified Canadian Aboriginal Syllabics"](n)||X["Unified Canadian Aboriginal Syllabics Extended"](n)||X["Vertical Forms"](n)||X["Yijing Hexagram Symbols"](n)||X["Yi Syllables"](n)||X["Yi Radicals"](n))}function Ke(n){return!!(X["Latin-1 Supplement"](n)&&(n===167||n===169||n===174||n===177||n===188||n===189||n===190||n===215||n===247)||X["General Punctuation"](n)&&(n===8214||n===8224||n===8225||n===8240||n===8241||n===8251||n===8252||n===8258||n===8263||n===8264||n===8265||n===8273)||X["Letterlike Symbols"](n)||X["Number Forms"](n)||X["Miscellaneous Technical"](n)&&(n>=8960&&n<=8967||n>=8972&&n<=8991||n>=8996&&n<=9e3||n===9003||n>=9085&&n<=9114||n>=9150&&n<=9165||n===9167||n>=9169&&n<=9179||n>=9186&&n<=9215)||X["Control Pictures"](n)&&n!==9251||X["Optical Character Recognition"](n)||X["Enclosed Alphanumerics"](n)||X["Geometric Shapes"](n)||X["Miscellaneous Symbols"](n)&&!(n>=9754&&n<=9759)||X["Miscellaneous Symbols and Arrows"](n)&&(n>=11026&&n<=11055||n>=11088&&n<=11097||n>=11192&&n<=11243)||X["CJK Symbols and Punctuation"](n)||X.Katakana(n)||X["Private Use Area"](n)||X["CJK Compatibility Forms"](n)||X["Small Form Variants"](n)||X["Halfwidth and Fullwidth Forms"](n)||n===8734||n===8756||n===8757||n>=9984&&n<=10087||n>=10102&&n<=10131||n===65532||n===65533)}function ot(n){return!(De(n)||Ke(n))}function ze(n){return X.Arabic(n)||X["Arabic Supplement"](n)||X["Arabic Extended-A"](n)||X["Arabic Presentation Forms-A"](n)||X["Arabic Presentation Forms-B"](n)}function Ue(n){return n>=1424&&n<=2303||X["Arabic Presentation Forms-A"](n)||X["Arabic Presentation Forms-B"](n)}function Je(n,o){return!(!o&&Ue(n)||n>=2304&&n<=3583||n>=3840&&n<=4255||X.Khmer(n))}function ft(n){for(var o=0,u=n;o-1&&(or=We.error),Zt&&Zt(n)};function Pr(){Ir.fire(new ii("pluginStateChange",{pluginStatus:or,pluginURL:fr}))}var Ir=new dr,ea=function(){return or},Ur=function(n){return n({pluginStatus:or,pluginURL:fr}),Ir.on("pluginStateChange",n),n},Kr=function(n,o,u){if(u===void 0&&(u=!1),or===We.deferred||or===We.loading||or===We.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");fr=pt.resolveURL(n),or=We.deferred,Zt=o,Pr(),u||Ba()},Ba=function(){if(or!==We.deferred||!fr)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");or=We.loading,Pr(),fr&&et({url:fr},function(n){n?lr(n):(or=We.loaded,Pr())})},ri={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return or===We.loaded||ri.applyArabicShaping!=null},isLoading:function(){return or===We.loading},setState:function(o){or=o.pluginStatus,fr=o.pluginURL},isParsed:function(){return ri.applyArabicShaping!=null&&ri.processBidirectionalText!=null&&ri.processStyledBidirectionalText!=null},getPluginURL:function(){return fr}},$a=function(){!ri.isLoading()&&!ri.isLoaded()&&ea()==="deferred"&&Ba()},Kt=function(o,u){this.zoom=o,u?(this.now=u.now,this.fadeDuration=u.fadeDuration,this.zoomHistory=u.zoomHistory,this.transition=u.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new $,this.transition={})};Kt.prototype.isSupportedScript=function(o){return nt(o,ri.isLoaded())},Kt.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Kt.prototype.getCrossfadeParameters=function(){var o=this.zoom,u=o-Math.floor(o),p=this.crossFadingFactor();return o>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:u+(1-u)*p}:{fromScale:.5,toScale:1,t:1-(1-p)*u}};var Jr=function(o,u){this.property=o,this.value=u,this.expression=jm(u===void 0?o.specification.default:u,o.specification)};Jr.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Jr.prototype.possiblyEvaluate=function(o,u,p){return this.property.possiblyEvaluate(this,o,u,p)};var oa=function(o){this.property=o,this.value=new Jr(o,void 0)};oa.prototype.transitioned=function(o,u){return new Ei(this.property,this.value,u,H({},o.transition,this.transition),o.now)},oa.prototype.untransitioned=function(){return new Ei(this.property,this.value,null,{},0)};var sa=function(o){this._properties=o,this._values=Object.create(o.defaultTransitionablePropertyValues)};sa.prototype.getValue=function(o){return Te(this._values[o].value.value)},sa.prototype.setValue=function(o,u){this._values.hasOwnProperty(o)||(this._values[o]=new oa(this._values[o].property)),this._values[o].value=new Jr(this._values[o].property,u===null?void 0:Te(u))},sa.prototype.getTransition=function(o){return Te(this._values[o].transition)},sa.prototype.setTransition=function(o,u){this._values.hasOwnProperty(o)||(this._values[o]=new oa(this._values[o].property)),this._values[o].transition=Te(u)||void 0},sa.prototype.serialize=function(){for(var o={},u=0,p=Object.keys(this._values);uthis.end)return this.prior=null,A;if(this.value.isDataDriven())return this.prior=null,A;if(xk.zoomHistory.lastIntegerZoom?{from:p,to:x}:{from:A,to:x}},o.prototype.interpolate=function(p){return p},o}(Vr),Ti=function(o){this.specification=o};Ti.prototype.possiblyEvaluate=function(o,u,p,x){if(o.value!==void 0)if(o.expression.kind==="constant"){var A=o.expression.evaluate(u,null,{},p,x);return this._calculate(A,A,A,u)}else return this._calculate(o.expression.evaluate(new Kt(Math.floor(u.zoom-1),u)),o.expression.evaluate(new Kt(Math.floor(u.zoom),u)),o.expression.evaluate(new Kt(Math.floor(u.zoom+1),u)),u)},Ti.prototype._calculate=function(o,u,p,x){var A=x.zoom;return A>x.zoomHistory.lastIntegerZoom?{from:o,to:u}:{from:p,to:u}},Ti.prototype.interpolate=function(o){return o};var lo=function(o){this.specification=o};lo.prototype.possiblyEvaluate=function(o,u,p,x){return!!o.expression.evaluate(u,null,{},p,x)},lo.prototype.interpolate=function(){return!1};var zn=function(o){this.properties=o,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var u in o){var p=o[u];p.specification.overridable&&this.overridableProperties.push(u);var x=this.defaultPropertyValues[u]=new Jr(p,void 0),A=this.defaultTransitionablePropertyValues[u]=new oa(p);this.defaultTransitioningPropertyValues[u]=A.untransitioned(),this.defaultPossiblyEvaluatedValues[u]=x.possiblyEvaluate({})}};y("DataDrivenProperty",Vr),y("DataConstantProperty",wr),y("CrossFadedDataDrivenProperty",Fi),y("CrossFadedProperty",Ti),y("ColorRampProperty",lo);var cn="-transition",pi=function(n){function o(u,p){if(n.call(this),this.id=u.id,this.type=u.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},u.type!=="custom"&&(u=u,this.metadata=u.metadata,this.minzoom=u.minzoom,this.maxzoom=u.maxzoom,u.type!=="background"&&(this.source=u.source,this.sourceLayer=u["source-layer"],this.filter=u.filter),p.layout&&(this._unevaluatedLayout=new $i(p.layout)),p.paint)){this._transitionablePaint=new sa(p.paint);for(var x in u.paint)this.setPaintProperty(x,u.paint[x],{validate:!1});for(var A in u.layout)this.setLayoutProperty(A,u.layout[A],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new xn(p.paint)}}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},o.prototype.getLayoutProperty=function(p){return p==="visibility"?this.visibility:this._unevaluatedLayout.getValue(p)},o.prototype.setLayoutProperty=function(p,x,A){if(A===void 0&&(A={}),x!=null){var k="layers."+this.id+".layout."+p;if(this._validate(Rl,k,p,x,A))return}if(p==="visibility"){this.visibility=x;return}this._unevaluatedLayout.setValue(p,x)},o.prototype.getPaintProperty=function(p){return de(p,cn)?this._transitionablePaint.getTransition(p.slice(0,-cn.length)):this._transitionablePaint.getValue(p)},o.prototype.setPaintProperty=function(p,x,A){if(A===void 0&&(A={}),x!=null){var k="layers."+this.id+".paint."+p;if(this._validate(ih,k,p,x,A))return!1}if(de(p,cn))return this._transitionablePaint.setTransition(p.slice(0,-cn.length),x||void 0),!1;var F=this._transitionablePaint._values[p],Y=F.property.specification["property-type"]==="cross-faded-data-driven",j=F.value.isDataDriven(),Q=F.value;this._transitionablePaint.setValue(p,x),this._handleSpecialPaintPropertyUpdate(p);var ie=this._transitionablePaint._values[p].value,ge=ie.isDataDriven();return ge||j||Y||this._handleOverridablePaintPropertyUpdate(p,Q,ie)},o.prototype._handleSpecialPaintPropertyUpdate=function(p){},o.prototype._handleOverridablePaintPropertyUpdate=function(p,x,A){return!1},o.prototype.isHidden=function(p){return this.minzoom&&p=this.maxzoom?!0:this.visibility==="none"},o.prototype.updateTransitions=function(p){this._transitioningPaint=this._transitionablePaint.transitioned(p,this._transitioningPaint)},o.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},o.prototype.recalculate=function(p,x){p.getCrossfadeParameters&&(this._crossfadeParameters=p.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(p,void 0,x)),this.paint=this._transitioningPaint.possiblyEvaluate(p,void 0,x)},o.prototype.serialize=function(){var p={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(p.layout=p.layout||{},p.layout.visibility=this.visibility),Se(p,function(x,A){return x!==void 0&&!(A==="layout"&&!Object.keys(x).length)&&!(A==="paint"&&!Object.keys(x).length)})},o.prototype._validate=function(p,x,A,k,F){return F===void 0&&(F={}),F&&F.validate===!1?!1:rc(this,p.call(ti,{key:x,layerType:this.type,objectKey:A,value:k,styleSpec:Jt,style:{glyphs:!0,sprite:!0}}))},o.prototype.is3D=function(){return!1},o.prototype.isTileClipped=function(){return!1},o.prototype.hasOffscreenPass=function(){return!1},o.prototype.resize=function(){},o.prototype.isStateDependent=function(){for(var p in this.paint._values){var x=this.paint.get(p);if(!(!(x instanceof bi)||!sf(x.property.specification))&&(x.value.kind==="source"||x.value.kind==="composite")&&x.value.isStateDependent)return!0}return!1},o}(dr),jo={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},uo=function(o,u){this._structArray=o,this._pos1=u*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},ci=128,gf=5,Aa=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};Aa.serialize=function(o,u){return o._trim(),u&&(o.isTransferred=!0,u.push(o.arrayBuffer)),{length:o.length,arrayBuffer:o.arrayBuffer}},Aa.deserialize=function(o){var u=Object.create(this.prototype);return u.arrayBuffer=o.arrayBuffer,u.length=o.length,u.capacity=o.arrayBuffer.byteLength/u.bytesPerElement,u._refreshViews(),u},Aa.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Aa.prototype.clear=function(){this.length=0},Aa.prototype.resize=function(o){this.reserve(o),this.length=o},Aa.prototype.reserve=function(o){if(o>this.capacity){this.capacity=Math.max(o,Math.floor(this.capacity*gf),ci),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var u=this.uint8;this._refreshViews(),u&&this.uint8.set(u)}},Aa.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function ui(n,o){o===void 0&&(o=1);var u=0,p=0,x=n.map(function(k){var F=Nl(k.type),Y=u=Hv(u,Math.max(o,F)),j=k.components||1;return p=Math.max(p,F),u+=F*j,{name:k.name,type:k.type,components:j,offset:Y}}),A=Hv(u,Math.max(p,o));return{members:x,size:A,alignment:o}}function Nl(n){return jo[n].BYTES_PER_ELEMENT}function Hv(n,o){return Math.ceil(n/o)*o}var ac=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x){var A=this.length;return this.resize(A+1),this.emplace(A,p,x)},o.prototype.emplace=function(p,x,A){var k=p*2;return this.int16[k+0]=x,this.int16[k+1]=A,p},o}(Aa);ac.prototype.bytesPerElement=4,y("StructArrayLayout2i4",ac);var ey=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k){var F=this.length;return this.resize(F+1),this.emplace(F,p,x,A,k)},o.prototype.emplace=function(p,x,A,k,F){var Y=p*4;return this.int16[Y+0]=x,this.int16[Y+1]=A,this.int16[Y+2]=k,this.int16[Y+3]=F,p},o}(Aa);ey.prototype.bytesPerElement=8,y("StructArrayLayout4i8",ey);var _f=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y){var j=this.length;return this.resize(j+1),this.emplace(j,p,x,A,k,F,Y)},o.prototype.emplace=function(p,x,A,k,F,Y,j){var Q=p*6;return this.int16[Q+0]=x,this.int16[Q+1]=A,this.int16[Q+2]=k,this.int16[Q+3]=F,this.int16[Q+4]=Y,this.int16[Q+5]=j,p},o}(Aa);_f.prototype.bytesPerElement=12,y("StructArrayLayout2i4i12",_f);var oh=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y){var j=this.length;return this.resize(j+1),this.emplace(j,p,x,A,k,F,Y)},o.prototype.emplace=function(p,x,A,k,F,Y,j){var Q=p*4,ie=p*8;return this.int16[Q+0]=x,this.int16[Q+1]=A,this.uint8[ie+4]=k,this.uint8[ie+5]=F,this.uint8[ie+6]=Y,this.uint8[ie+7]=j,p},o}(Aa);oh.prototype.bytesPerElement=8,y("StructArrayLayout2i4ub8",oh);var sh=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x){var A=this.length;return this.resize(A+1),this.emplace(A,p,x)},o.prototype.emplace=function(p,x,A){var k=p*2;return this.float32[k+0]=x,this.float32[k+1]=A,p},o}(Aa);sh.prototype.bytesPerElement=8,y("StructArrayLayout2f8",sh);var Lo=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ie,ge){var he=this.length;return this.resize(he+1),this.emplace(he,p,x,A,k,F,Y,j,Q,ie,ge)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ie,ge,he){var ke=p*10;return this.uint16[ke+0]=x,this.uint16[ke+1]=A,this.uint16[ke+2]=k,this.uint16[ke+3]=F,this.uint16[ke+4]=Y,this.uint16[ke+5]=j,this.uint16[ke+6]=Q,this.uint16[ke+7]=ie,this.uint16[ke+8]=ge,this.uint16[ke+9]=he,p},o}(Aa);Lo.prototype.bytesPerElement=20,y("StructArrayLayout10ui20",Lo);var xf=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ie,ge,he,ke){var qe=this.length;return this.resize(qe+1),this.emplace(qe,p,x,A,k,F,Y,j,Q,ie,ge,he,ke)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe){var lt=p*12;return this.int16[lt+0]=x,this.int16[lt+1]=A,this.int16[lt+2]=k,this.int16[lt+3]=F,this.uint16[lt+4]=Y,this.uint16[lt+5]=j,this.uint16[lt+6]=Q,this.uint16[lt+7]=ie,this.int16[lt+8]=ge,this.int16[lt+9]=he,this.int16[lt+10]=ke,this.int16[lt+11]=qe,p},o}(Aa);xf.prototype.bytesPerElement=24,y("StructArrayLayout4i4ui4i24",xf);var ty=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A){var k=this.length;return this.resize(k+1),this.emplace(k,p,x,A)},o.prototype.emplace=function(p,x,A,k){var F=p*3;return this.float32[F+0]=x,this.float32[F+1]=A,this.float32[F+2]=k,p},o}(Aa);ty.prototype.bytesPerElement=12,y("StructArrayLayout3f12",ty);var ry=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p){var x=this.length;return this.resize(x+1),this.emplace(x,p)},o.prototype.emplace=function(p,x){var A=p*1;return this.uint32[A+0]=x,p},o}(Aa);ry.prototype.bytesPerElement=4,y("StructArrayLayout1ul4",ry);var Gv=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ie){var ge=this.length;return this.resize(ge+1),this.emplace(ge,p,x,A,k,F,Y,j,Q,ie)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ie,ge){var he=p*10,ke=p*5;return this.int16[he+0]=x,this.int16[he+1]=A,this.int16[he+2]=k,this.int16[he+3]=F,this.int16[he+4]=Y,this.int16[he+5]=j,this.uint32[ke+3]=Q,this.uint16[he+8]=ie,this.uint16[he+9]=ge,p},o}(Aa);Gv.prototype.bytesPerElement=20,y("StructArrayLayout6i1ul2ui20",Gv);var Rp=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y){var j=this.length;return this.resize(j+1),this.emplace(j,p,x,A,k,F,Y)},o.prototype.emplace=function(p,x,A,k,F,Y,j){var Q=p*6;return this.int16[Q+0]=x,this.int16[Q+1]=A,this.int16[Q+2]=k,this.int16[Q+3]=F,this.int16[Q+4]=Y,this.int16[Q+5]=j,p},o}(Aa);Rp.prototype.bytesPerElement=12,y("StructArrayLayout2i2i2i12",Rp);var Mu=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F){var Y=this.length;return this.resize(Y+1),this.emplace(Y,p,x,A,k,F)},o.prototype.emplace=function(p,x,A,k,F,Y){var j=p*4,Q=p*8;return this.float32[j+0]=x,this.float32[j+1]=A,this.float32[j+2]=k,this.int16[Q+6]=F,this.int16[Q+7]=Y,p},o}(Aa);Mu.prototype.bytesPerElement=16,y("StructArrayLayout2f1f2i16",Mu);var Jo=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k){var F=this.length;return this.resize(F+1),this.emplace(F,p,x,A,k)},o.prototype.emplace=function(p,x,A,k,F){var Y=p*12,j=p*3;return this.uint8[Y+0]=x,this.uint8[Y+1]=A,this.float32[j+1]=k,this.float32[j+2]=F,p},o}(Aa);Jo.prototype.bytesPerElement=12,y("StructArrayLayout2ub2f12",Jo);var Su=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A){var k=this.length;return this.resize(k+1),this.emplace(k,p,x,A)},o.prototype.emplace=function(p,x,A,k){var F=p*3;return this.uint16[F+0]=x,this.uint16[F+1]=A,this.uint16[F+2]=k,p},o}(Aa);Su.prototype.bytesPerElement=6,y("StructArrayLayout3ui6",Su);var Zv=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,lt,$e,kt,_t){var St=this.length;return this.resize(St+1),this.emplace(St,p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,lt,$e,kt,_t)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,lt,$e,kt,_t,St){var Rt=p*24,Qt=p*12,hr=p*48;return this.int16[Rt+0]=x,this.int16[Rt+1]=A,this.uint16[Rt+2]=k,this.uint16[Rt+3]=F,this.uint32[Qt+2]=Y,this.uint32[Qt+3]=j,this.uint32[Qt+4]=Q,this.uint16[Rt+10]=ie,this.uint16[Rt+11]=ge,this.uint16[Rt+12]=he,this.float32[Qt+7]=ke,this.float32[Qt+8]=qe,this.uint8[hr+36]=lt,this.uint8[hr+37]=$e,this.uint8[hr+38]=kt,this.uint32[Qt+10]=_t,this.int16[Rt+22]=St,p},o}(Aa);Zv.prototype.bytesPerElement=48,y("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Zv);var Fp=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,lt,$e,kt,_t,St,Rt,Qt,hr,ur,Rr,kr,zr,Qr,Fr,Nr){var ma=this.length;return this.resize(ma+1),this.emplace(ma,p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,lt,$e,kt,_t,St,Rt,Qt,hr,ur,Rr,kr,zr,Qr,Fr,Nr)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,lt,$e,kt,_t,St,Rt,Qt,hr,ur,Rr,kr,zr,Qr,Fr,Nr,ma){var jr=p*34,Ya=p*17;return this.int16[jr+0]=x,this.int16[jr+1]=A,this.int16[jr+2]=k,this.int16[jr+3]=F,this.int16[jr+4]=Y,this.int16[jr+5]=j,this.int16[jr+6]=Q,this.int16[jr+7]=ie,this.uint16[jr+8]=ge,this.uint16[jr+9]=he,this.uint16[jr+10]=ke,this.uint16[jr+11]=qe,this.uint16[jr+12]=lt,this.uint16[jr+13]=$e,this.uint16[jr+14]=kt,this.uint16[jr+15]=_t,this.uint16[jr+16]=St,this.uint16[jr+17]=Rt,this.uint16[jr+18]=Qt,this.uint16[jr+19]=hr,this.uint16[jr+20]=ur,this.uint16[jr+21]=Rr,this.uint16[jr+22]=kr,this.uint32[Ya+12]=zr,this.float32[Ya+13]=Qr,this.float32[Ya+14]=Fr,this.float32[Ya+15]=Nr,this.float32[Ya+16]=ma,p},o}(Aa);Fp.prototype.bytesPerElement=68,y("StructArrayLayout8i15ui1ul4f68",Fp);var lh=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p){var x=this.length;return this.resize(x+1),this.emplace(x,p)},o.prototype.emplace=function(p,x){var A=p*1;return this.float32[A+0]=x,p},o}(Aa);lh.prototype.bytesPerElement=4,y("StructArrayLayout1f4",lh);var ay=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A){var k=this.length;return this.resize(k+1),this.emplace(k,p,x,A)},o.prototype.emplace=function(p,x,A,k){var F=p*3;return this.int16[F+0]=x,this.int16[F+1]=A,this.int16[F+2]=k,p},o}(Aa);ay.prototype.bytesPerElement=6,y("StructArrayLayout3i6",ay);var bf=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A){var k=this.length;return this.resize(k+1),this.emplace(k,p,x,A)},o.prototype.emplace=function(p,x,A,k){var F=p*2,Y=p*4;return this.uint32[F+0]=x,this.uint16[Y+2]=A,this.uint16[Y+3]=k,p},o}(Aa);bf.prototype.bytesPerElement=8,y("StructArrayLayout1ul2ui8",bf);var Yv=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x){var A=this.length;return this.resize(A+1),this.emplace(A,p,x)},o.prototype.emplace=function(p,x,A){var k=p*2;return this.uint16[k+0]=x,this.uint16[k+1]=A,p},o}(Aa);Yv.prototype.bytesPerElement=4,y("StructArrayLayout2ui4",Yv);var uh=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p){var x=this.length;return this.resize(x+1),this.emplace(x,p)},o.prototype.emplace=function(p,x){var A=p*1;return this.uint16[A+0]=x,p},o}(Aa);uh.prototype.bytesPerElement=2,y("StructArrayLayout1ui2",uh);var ic=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k){var F=this.length;return this.resize(F+1),this.emplace(F,p,x,A,k)},o.prototype.emplace=function(p,x,A,k,F){var Y=p*4;return this.float32[Y+0]=x,this.float32[Y+1]=A,this.float32[Y+2]=k,this.float32[Y+3]=F,p},o}(Aa);ic.prototype.bytesPerElement=16,y("StructArrayLayout4f16",ic);var d1=function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var u={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return u.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},u.x1.get=function(){return this._structArray.int16[this._pos2+2]},u.y1.get=function(){return this._structArray.int16[this._pos2+3]},u.x2.get=function(){return this._structArray.int16[this._pos2+4]},u.y2.get=function(){return this._structArray.int16[this._pos2+5]},u.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},u.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},u.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},u.anchorPoint.get=function(){return new v(this.anchorPointX,this.anchorPointY)},Object.defineProperties(o.prototype,u),o}(uo);d1.prototype.size=20;var iy=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.get=function(p){return new d1(this,p)},o}(Gv);y("CollisionBoxArray",iy);var nc=function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var u={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return u.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},u.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},u.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},u.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},u.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},u.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},u.segment.get=function(){return this._structArray.uint16[this._pos2+10]},u.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},u.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},u.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},u.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},u.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},u.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},u.placedOrientation.set=function(p){this._structArray.uint8[this._pos1+37]=p},u.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},u.hidden.set=function(p){this._structArray.uint8[this._pos1+38]=p},u.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},u.crossTileID.set=function(p){this._structArray.uint32[this._pos4+10]=p},u.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(o.prototype,u),o}(uo);nc.prototype.size=48;var ny=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.get=function(p){return new nc(this,p)},o}(Zv);y("PlacedSymbolArray",ny);var fh=function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var u={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return u.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},u.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},u.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},u.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},u.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},u.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},u.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},u.key.get=function(){return this._structArray.uint16[this._pos2+8]},u.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},u.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},u.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},u.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},u.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},u.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},u.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},u.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},u.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},u.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},u.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},u.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},u.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},u.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},u.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},u.crossTileID.set=function(p){this._structArray.uint32[this._pos4+12]=p},u.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},u.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},u.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},u.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(o.prototype,u),o}(uo);fh.prototype.size=68;var p1=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.get=function(p){return new fh(this,p)},o}(Fp);y("SymbolInstanceArray",p1);var m1=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.getoffsetX=function(p){return this.float32[p*1+0]},o}(lh);y("GlyphOffsetArray",m1);var Qs=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.getx=function(p){return this.int16[p*3+0]},o.prototype.gety=function(p){return this.int16[p*3+1]},o.prototype.gettileUnitDistanceFromAnchor=function(p){return this.int16[p*3+2]},o}(ay);y("SymbolLineVertexArray",Qs);var y1=function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var u={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return u.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},u.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},u.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(o.prototype,u),o}(uo);y1.prototype.size=8;var g1=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.get=function(p){return new y1(this,p)},o}(bf);y("FeatureIndexArray",g1);var s3=ui([{name:"a_pos",components:2,type:"Int16"}],4),_1=s3.members,bn=function(o){o===void 0&&(o=[]),this.segments=o};bn.prototype.prepareSegment=function(o,u,p,x){var A=this.segments[this.segments.length-1];return o>bn.MAX_VERTEX_ARRAY_LENGTH&&Ce("Max vertices per segment is "+bn.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+o),(!A||A.vertexLength+o>bn.MAX_VERTEX_ARRAY_LENGTH||A.sortKey!==x)&&(A={vertexOffset:u.length,primitiveOffset:p.length,vertexLength:0,primitiveLength:0},x!==void 0&&(A.sortKey=x),this.segments.push(A)),A},bn.prototype.get=function(){return this.segments},bn.prototype.destroy=function(){for(var o=0,u=this.segments;o>>16)*Y&65535)<<16)&4294967295,Q=Q<<15|Q>>>17,Q=(Q&65535)*j+(((Q>>>16)*j&65535)<<16)&4294967295,k^=Q,k=k<<13|k>>>19,F=(k&65535)*5+(((k>>>16)*5&65535)<<16)&4294967295,k=(F&65535)+27492+(((F>>>16)+58964&65535)<<16);switch(Q=0,x){case 3:Q^=(u.charCodeAt(ie+2)&255)<<16;case 2:Q^=(u.charCodeAt(ie+1)&255)<<8;case 1:Q^=u.charCodeAt(ie)&255,Q=(Q&65535)*Y+(((Q>>>16)*Y&65535)<<16)&4294967295,Q=Q<<15|Q>>>17,Q=(Q&65535)*j+(((Q>>>16)*j&65535)<<16)&4294967295,k^=Q}return k^=u.length,k^=k>>>16,k=(k&65535)*2246822507+(((k>>>16)*2246822507&65535)<<16)&4294967295,k^=k>>>13,k=(k&65535)*3266489909+(((k>>>16)*3266489909&65535)<<16)&4294967295,k^=k>>>16,k>>>0}n.exports=o}),d=s(function(n){function o(u,p){for(var x=u.length,A=p^x,k=0,F;x>=4;)F=u.charCodeAt(k)&255|(u.charCodeAt(++k)&255)<<8|(u.charCodeAt(++k)&255)<<16|(u.charCodeAt(++k)&255)<<24,F=(F&65535)*1540483477+(((F>>>16)*1540483477&65535)<<16),F^=F>>>24,F=(F&65535)*1540483477+(((F>>>16)*1540483477&65535)<<16),A=(A&65535)*1540483477+(((A>>>16)*1540483477&65535)<<16)^F,x-=4,++k;switch(x){case 3:A^=(u.charCodeAt(k+2)&255)<<16;case 2:A^=(u.charCodeAt(k+1)&255)<<8;case 1:A^=u.charCodeAt(k)&255,A=(A&65535)*1540483477+(((A>>>16)*1540483477&65535)<<16)}return A^=A>>>13,A=(A&65535)*1540483477+(((A>>>16)*1540483477&65535)<<16),A^=A>>>15,A>>>0}n.exports=o}),w=b,L=b,R=d;w.murmur3=L,w.murmur2=R;var G=function(){this.ids=[],this.positions=[],this.indexed=!1};G.prototype.add=function(o,u,p,x){this.ids.push(re(o)),this.positions.push(u,p,x)},G.prototype.getPositions=function(o){for(var u=re(o),p=0,x=this.ids.length-1;p>1;this.ids[A]>=u?x=A:p=A+1}for(var k=[];this.ids[p]===u;){var F=this.positions[3*p],Y=this.positions[3*p+1],j=this.positions[3*p+2];k.push({index:F,start:Y,end:j}),p++}return k},G.serialize=function(o,u){var p=new Float64Array(o.ids),x=new Uint32Array(o.positions);return ue(p,x,0,p.length-1),u&&u.push(p.buffer,x.buffer),{ids:p,positions:x}},G.deserialize=function(o){var u=new G;return u.ids=o.ids,u.positions=o.positions,u.indexed=!0,u};var K=Math.pow(2,53)-1;function re(n){var o=+n;return!isNaN(o)&&o<=K?o:w(String(n))}function ue(n,o,u,p){for(;u>1],A=u-1,k=p+1;;){do A++;while(n[A]x);if(A>=k)break;be(n,A,k),be(o,3*A,3*k),be(o,3*A+1,3*k+1),be(o,3*A+2,3*k+2)}k-uk.x+1||Yk.y+1)&&Ce("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return u}function Ai(n,o){return{type:n.type,id:n.id,properties:n.properties,geometry:o?Va(n):[]}}function Da(n,o,u,p,x){n.emplaceBack(o*2+(p+1)/2,u*2+(x+1)/2)}var mi=function(o){this.zoom=o.zoom,this.overscaling=o.overscaling,this.layers=o.layers,this.layerIds=this.layers.map(function(u){return u.id}),this.index=o.index,this.hasPattern=!1,this.layoutVertexArray=new ac,this.indexArray=new Su,this.segments=new bn,this.programConfigurations=new Sr(o.layers,o.zoom),this.stateDependentLayerIds=this.layers.filter(function(u){return u.isStateDependent()}).map(function(u){return u.id})};mi.prototype.populate=function(o,u,p){var x=this.layers[0],A=[],k=null;x.type==="circle"&&(k=x.layout.get("circle-sort-key"));for(var F=0,Y=o;F=qr||ge<0||ge>=qr)){var he=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,o.sortKey),ke=he.vertexLength;Da(this.layoutVertexArray,ie,ge,-1,-1),Da(this.layoutVertexArray,ie,ge,1,-1),Da(this.layoutVertexArray,ie,ge,1,1),Da(this.layoutVertexArray,ie,ge,-1,1),this.indexArray.emplaceBack(ke,ke+1,ke+2),this.indexArray.emplaceBack(ke,ke+3,ke+2),he.vertexLength+=4,he.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,o,p,{},x)},y("CircleBucket",mi,{omit:["layers"]});function na(n,o){for(var u=0;u=3){for(var A=0;A1){if(Ds(n,o))return!0;for(var p=0;p1?n.distSqr(u):n.distSqr(u.sub(o)._mult(x)._add(o))}function Ol(n,o){for(var u=!1,p,x,A,k=0;ko.y!=A.y>o.y&&o.x<(A.x-x.x)*(o.y-x.y)/(A.y-x.y)+x.x&&(u=!u)}return u}function Do(n,o){for(var u=!1,p=0,x=n.length-1;po.y!=k.y>o.y&&o.x<(k.x-A.x)*(o.y-A.y)/(k.y-A.y)+A.x&&(u=!u)}return u}function Ul(n,o,u,p,x){for(var A=0,k=n;A=F.x&&x>=F.y)return!0}var Y=[new v(o,u),new v(o,x),new v(p,x),new v(p,u)];if(n.length>2)for(var j=0,Q=Y;jx.x&&o.x>x.x||n.yx.y&&o.y>x.y)return!1;var A=Le(n,o,u[0]);return A!==Le(n,o,u[1])||A!==Le(n,o,u[2])||A!==Le(n,o,u[3])}function Po(n,o,u){var p=o.paint.get(n).value;return p.kind==="constant"?p.value:u.programConfigurations.get(o.id).getMaxValue(n)}function el(n){return Math.sqrt(n[0]*n[0]+n[1]*n[1])}function ku(n,o,u,p,x){if(!o[0]&&!o[1])return n;var A=v.convert(o)._mult(x);u==="viewport"&&A._rotate(-p);for(var k=[],F=0;F0&&(A=1/Math.sqrt(A)),n[0]=o[0]*A,n[1]=o[1]*A,n[2]=o[2]*A,n}function $Z(n,o){return n[0]*o[0]+n[1]*o[1]+n[2]*o[2]}function eY(n,o,u){var p=o[0],x=o[1],A=o[2],k=u[0],F=u[1],Y=u[2];return n[0]=x*Y-A*F,n[1]=A*k-p*Y,n[2]=p*F-x*k,n}function tY(n,o,u){var p=o[0],x=o[1],A=o[2];return n[0]=p*u[0]+x*u[3]+A*u[6],n[1]=p*u[1]+x*u[4]+A*u[7],n[2]=p*u[2]+x*u[5]+A*u[8],n}var rY=c3,ume=function(){var n=Xv();return function(o,u,p,x,A,k){var F,Y;for(u||(u=3),p||(p=0),x?Y=Math.min(x*u+p,o.length):Y=o.length,F=p;Fn.width||x.height>n.height||u.x>n.width-x.width||u.y>n.height-x.height)throw new RangeError("out of range source coordinates for image copy");if(x.width>o.width||x.height>o.height||p.x>o.width-x.width||p.y>o.height-x.height)throw new RangeError("out of range destination coordinates for image copy");for(var k=n.data,F=o.data,Y=0;Y80*u){F=j=n[0],Y=Q=n[1];for(var ke=u;kej&&(j=ie),ge>Q&&(Q=ge);he=Math.max(j-F,Q-Y),he=he!==0?1/he:0}return ly(A,k,u,F,Y,he),k}function cM(n,o,u,p,x){var A,k;if(x===g3(n,o,u,p)>0)for(A=o;A=o;A-=p)k=dM(A,n[A],n[A+1],k);return k&&w1(k,k.next)&&(fy(k),k=k.next),k}function ph(n,o){if(!n)return n;o||(o=n);var u=n,p;do if(p=!1,!u.steiner&&(w1(u,u.next)||wn(u.prev,u,u.next)===0)){if(fy(u),u=o=u.prev,u===u.next)break;p=!0}else u=u.next;while(p||u!==o);return o}function ly(n,o,u,p,x,A,k){if(n){!k&&A&&EY(n,p,x,A);for(var F=n,Y,j;n.prev!==n.next;){if(Y=n.prev,j=n.next,A?bY(n,p,x,A):xY(n)){o.push(Y.i/u),o.push(n.i/u),o.push(j.i/u),fy(n),n=j.next,F=j.next;continue}if(n=j,n===F){k?k===1?(n=wY(ph(n),o,u),ly(n,o,u,p,x,A,2)):k===2&&TY(n,o,u,p,x,A):ly(ph(n),o,u,p,x,A,1);break}}}}function xY(n){var o=n.prev,u=n,p=n.next;if(wn(o,u,p)>=0)return!1;for(var x=n.next.next;x!==n.prev;){if(Gp(o.x,o.y,u.x,u.y,p.x,p.y,x.x,x.y)&&wn(x.prev,x,x.next)>=0)return!1;x=x.next}return!0}function bY(n,o,u,p){var x=n.prev,A=n,k=n.next;if(wn(x,A,k)>=0)return!1;for(var F=x.xA.x?x.x>k.x?x.x:k.x:A.x>k.x?A.x:k.x,Q=x.y>A.y?x.y>k.y?x.y:k.y:A.y>k.y?A.y:k.y,ie=m3(F,Y,o,u,p),ge=m3(j,Q,o,u,p),he=n.prevZ,ke=n.nextZ;he&&he.z>=ie&&ke&&ke.z<=ge;){if(he!==n.prev&&he!==n.next&&Gp(x.x,x.y,A.x,A.y,k.x,k.y,he.x,he.y)&&wn(he.prev,he,he.next)>=0||(he=he.prevZ,ke!==n.prev&&ke!==n.next&&Gp(x.x,x.y,A.x,A.y,k.x,k.y,ke.x,ke.y)&&wn(ke.prev,ke,ke.next)>=0))return!1;ke=ke.nextZ}for(;he&&he.z>=ie;){if(he!==n.prev&&he!==n.next&&Gp(x.x,x.y,A.x,A.y,k.x,k.y,he.x,he.y)&&wn(he.prev,he,he.next)>=0)return!1;he=he.prevZ}for(;ke&&ke.z<=ge;){if(ke!==n.prev&&ke!==n.next&&Gp(x.x,x.y,A.x,A.y,k.x,k.y,ke.x,ke.y)&&wn(ke.prev,ke,ke.next)>=0)return!1;ke=ke.nextZ}return!0}function wY(n,o,u){var p=n;do{var x=p.prev,A=p.next.next;!w1(x,A)&&hM(x,p,p.next,A)&&uy(x,A)&&uy(A,x)&&(o.push(x.i/u),o.push(p.i/u),o.push(A.i/u),fy(p),fy(p.next),p=n=A),p=p.next}while(p!==n);return ph(p)}function TY(n,o,u,p,x,A){var k=n;do{for(var F=k.next.next;F!==k.prev;){if(k.i!==F.i&&PY(k,F)){var Y=vM(k,F);k=ph(k,k.next),Y=ph(Y,Y.next),ly(k,o,u,p,x,A),ly(Y,o,u,p,x,A);return}F=F.next}k=k.next}while(k!==n)}function AY(n,o,u,p){var x=[],A,k,F,Y,j;for(A=0,k=o.length;A=u.next.y&&u.next.y!==u.y){var F=u.x+(x-u.y)*(u.next.x-u.x)/(u.next.y-u.y);if(F<=p&&F>A){if(A=F,F===p){if(x===u.y)return u;if(x===u.next.y)return u.next}k=u.x=u.x&&u.x>=j&&p!==u.x&&Gp(xk.x||u.x===k.x&&CY(k,u)))&&(k=u,ie=ge)),u=u.next;while(u!==Y);return k}function CY(n,o){return wn(n.prev,n,o.prev)<0&&wn(o.next,n,n.next)<0}function EY(n,o,u,p){var x=n;do x.z===null&&(x.z=m3(x.x,x.y,o,u,p)),x.prevZ=x.prev,x.nextZ=x.next,x=x.next;while(x!==n);x.prevZ.nextZ=null,x.prevZ=null,LY(x)}function LY(n){var o,u,p,x,A,k,F,Y,j=1;do{for(u=n,n=null,A=null,k=0;u;){for(k++,p=u,F=0,o=0;o0||Y>0&&p;)F!==0&&(Y===0||!p||u.z<=p.z)?(x=u,u=u.nextZ,F--):(x=p,p=p.nextZ,Y--),A?A.nextZ=x:n=x,x.prevZ=A,A=x;u=p}A.nextZ=null,j*=2}while(k>1);return n}function m3(n,o,u,p,x){return n=32767*(n-u)*x,o=32767*(o-p)*x,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,o=(o|o<<8)&16711935,o=(o|o<<4)&252645135,o=(o|o<<2)&858993459,o=(o|o<<1)&1431655765,n|o<<1}function DY(n){var o=n,u=n;do(o.x=0&&(n-k)*(p-F)-(u-k)*(o-F)>=0&&(u-k)*(A-F)-(x-k)*(p-F)>=0}function PY(n,o){return n.next.i!==o.i&&n.prev.i!==o.i&&!zY(n,o)&&(uy(n,o)&&uy(o,n)&&IY(n,o)&&(wn(n.prev,n,o.prev)||wn(n,o.prev,o))||w1(n,o)&&wn(n.prev,n,n.next)>0&&wn(o.prev,o,o.next)>0)}function wn(n,o,u){return(o.y-n.y)*(u.x-o.x)-(o.x-n.x)*(u.y-o.y)}function w1(n,o){return n.x===o.x&&n.y===o.y}function hM(n,o,u,p){var x=A1(wn(n,o,u)),A=A1(wn(n,o,p)),k=A1(wn(u,p,n)),F=A1(wn(u,p,o));return!!(x!==A&&k!==F||x===0&&T1(n,u,o)||A===0&&T1(n,p,o)||k===0&&T1(u,n,p)||F===0&&T1(u,o,p))}function T1(n,o,u){return o.x<=Math.max(n.x,u.x)&&o.x>=Math.min(n.x,u.x)&&o.y<=Math.max(n.y,u.y)&&o.y>=Math.min(n.y,u.y)}function A1(n){return n>0?1:n<0?-1:0}function zY(n,o){var u=n;do{if(u.i!==n.i&&u.next.i!==n.i&&u.i!==o.i&&u.next.i!==o.i&&hM(u,u.next,n,o))return!0;u=u.next}while(u!==n);return!1}function uy(n,o){return wn(n.prev,n,n.next)<0?wn(n,o,n.next)>=0&&wn(n,n.prev,o)>=0:wn(n,o,n.prev)<0||wn(n,n.next,o)<0}function IY(n,o){var u=n,p=!1,x=(n.x+o.x)/2,A=(n.y+o.y)/2;do u.y>A!=u.next.y>A&&u.next.y!==u.y&&x<(u.next.x-u.x)*(A-u.y)/(u.next.y-u.y)+u.x&&(p=!p),u=u.next;while(u!==n);return p}function vM(n,o){var u=new y3(n.i,n.x,n.y),p=new y3(o.i,o.x,o.y),x=n.next,A=o.prev;return n.next=o,o.prev=n,u.next=x,x.prev=u,p.next=u,u.prev=p,A.next=p,p.prev=A,p}function dM(n,o,u,p){var x=new y3(n,o,u);return p?(x.next=p.next,x.prev=p,p.next.prev=x,p.next=x):(x.prev=x,x.next=x),x}function fy(n){n.next.prev=n.prev,n.prev.next=n.next,n.prevZ&&(n.prevZ.nextZ=n.nextZ),n.nextZ&&(n.nextZ.prevZ=n.prevZ)}function y3(n,o,u){this.i=n,this.x=o,this.y=u,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}b1.deviation=function(n,o,u,p){var x=o&&o.length,A=x?o[0]*u:n.length,k=Math.abs(g3(n,0,A,u));if(x)for(var F=0,Y=o.length;F0&&(p+=n[x-1].length,u.holes.push(p))}return u},p3.default=_Y;function RY(n,o,u,p,x){pM(n,o,u||0,p||n.length-1,x||FY)}function pM(n,o,u,p,x){for(;p>u;){if(p-u>600){var A=p-u+1,k=o-u+1,F=Math.log(A),Y=.5*Math.exp(2*F/3),j=.5*Math.sqrt(F*Y*(A-Y)/A)*(k-A/2<0?-1:1),Q=Math.max(u,Math.floor(o-k*Y/A+j)),ie=Math.min(p,Math.floor(o+(A-k)*Y/A+j));pM(n,o,Q,ie,x)}var ge=n[o],he=u,ke=p;for(cy(n,u,o),x(n[p],ge)>0&&cy(n,u,p);he0;)ke--}x(n[u],ge)===0?cy(n,u,ke):(ke++,cy(n,ke,p)),ke<=o&&(u=ke+1),o<=ke&&(p=ke-1)}}function cy(n,o,u){var p=n[o];n[o]=n[u],n[u]=p}function FY(n,o){return no?1:0}function _3(n,o){var u=n.length;if(u<=1)return[n];for(var p=[],x,A,k=0;k1)for(var Y=0;Y>3}if(p--,u===1||u===2)x+=n.readSVarint(),A+=n.readSVarint(),u===1&&(F&&k.push(F),F=[]),F.push(new v(x,A));else if(u===7)F&&F.push(F[0].clone());else throw new Error("unknown command "+u)}return F&&k.push(F),k},Zp.prototype.bbox=function(){var n=this._pbf;n.pos=this._geometry;for(var o=n.readVarint()+n.pos,u=1,p=0,x=0,A=0,k=1/0,F=-1/0,Y=1/0,j=-1/0;n.pos>3}if(p--,u===1||u===2)x+=n.readSVarint(),A+=n.readSVarint(),xF&&(F=x),Aj&&(j=A);else if(u!==7)throw new Error("unknown command "+u)}return[k,Y,F,j]},Zp.prototype.toGeoJSON=function(n,o,u){var p=this.extent*Math.pow(2,u),x=this.extent*n,A=this.extent*o,k=this.loadGeometry(),F=Zp.types[this.type],Y,j;function Q(he){for(var ke=0;ke>3;o=p===1?n.readString():p===2?n.readFloat():p===3?n.readDouble():p===4?n.readVarint64():p===5?n.readVarint():p===6?n.readSVarint():p===7?n.readBoolean():null}return o}gM.prototype.feature=function(n){if(n<0||n>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[n];var o=this._pbf.readVarint()+this._pbf.pos;return new mM(this._pbf,o,this.extent,this._keys,this._values)};var KY=QY;function QY(n,o){this.layers=n.readFields($Y,{},o)}function $Y(n,o,u){if(n===3){var p=new yM(u,u.readVarint()+u.pos);p.length&&(o[p.name]=p)}}var eW=KY,tW=mM,rW=yM,Yp={VectorTile:eW,VectorTileFeature:tW,VectorTileLayer:rW},aW=Yp.VectorTileFeature.types,iW=500,w3=Math.pow(2,13);function hy(n,o,u,p,x,A,k,F){n.emplaceBack(o,u,Math.floor(p*w3)*2+k,x*w3*2,A*w3*2,Math.round(F))}var Eu=function(o){this.zoom=o.zoom,this.overscaling=o.overscaling,this.layers=o.layers,this.layerIds=this.layers.map(function(u){return u.id}),this.index=o.index,this.hasPattern=!1,this.layoutVertexArray=new _f,this.indexArray=new Su,this.programConfigurations=new Sr(o.layers,o.zoom),this.segments=new bn,this.stateDependentLayerIds=this.layers.filter(function(u){return u.isStateDependent()}).map(function(u){return u.id})};Eu.prototype.populate=function(o,u,p){this.features=[],this.hasPattern=x3("fill-extrusion",this.layers,u);for(var x=0,A=o;x=1){var St=lt[kt-1];if(!nW(_t,St)){he.vertexLength+4>bn.MAX_VERTEX_ARRAY_LENGTH&&(he=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Rt=_t.sub(St)._perp()._unit(),Qt=St.dist(_t);$e+Qt>32768&&($e=0),hy(this.layoutVertexArray,_t.x,_t.y,Rt.x,Rt.y,0,0,$e),hy(this.layoutVertexArray,_t.x,_t.y,Rt.x,Rt.y,0,1,$e),$e+=Qt,hy(this.layoutVertexArray,St.x,St.y,Rt.x,Rt.y,0,0,$e),hy(this.layoutVertexArray,St.x,St.y,Rt.x,Rt.y,0,1,$e);var hr=he.vertexLength;this.indexArray.emplaceBack(hr,hr+2,hr+1),this.indexArray.emplaceBack(hr+1,hr+2,hr+3),he.vertexLength+=4,he.primitiveLength+=2}}}}if(he.vertexLength+j>bn.MAX_VERTEX_ARRAY_LENGTH&&(he=this.segments.prepareSegment(j,this.layoutVertexArray,this.indexArray)),aW[o.type]==="Polygon"){for(var ur=[],Rr=[],kr=he.vertexLength,zr=0,Qr=Y;zrqr)||n.y===o.y&&(n.y<0||n.y>qr)}function oW(n){return n.every(function(o){return o.x<0})||n.every(function(o){return o.x>qr})||n.every(function(o){return o.y<0})||n.every(function(o){return o.y>qr})}var sW=new zn({"fill-extrusion-opacity":new wr(Jt["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Vr(Jt["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new wr(Jt["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new wr(Jt["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Fi(Jt["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Vr(Jt["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Vr(Jt["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new wr(Jt["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),lW={paint:sW},uW=function(n){function o(u){n.call(this,u,lW)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.createBucket=function(p){return new Eu(p)},o.prototype.queryRadius=function(){return el(this.paint.get("fill-extrusion-translate"))},o.prototype.is3D=function(){return!0},o.prototype.queryIntersectsFeature=function(p,x,A,k,F,Y,j,Q){var ie=ku(p,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),Y.angle,j),ge=this.paint.get("fill-extrusion-height").evaluate(x,A),he=this.paint.get("fill-extrusion-base").evaluate(x,A),ke=hW(ie,Q,Y,0),qe=cW(k,he,ge,Q),lt=qe[0],$e=qe[1];return fW(lt,$e,ke)},o}(pi);function vy(n,o){return n.x*o.x+n.y*o.y}function _M(n,o){if(n.length===1){for(var u=0,p=o[u++],x;!x||p.equals(x);)if(x=o[u++],!x)return 1/0;for(;u=2&&o[j-1].equals(o[j-2]);)j--;for(var Q=0;Q0;if(ur&&kt>Q){var kr=he.dist(ke);if(kr>2*ie){var zr=he.sub(he.sub(ke)._mult(ie/kr)._round());this.updateDistance(ke,zr),this.addCurrentVertex(zr,lt,0,0,ge),ke=zr}}var Qr=ke&&qe,Fr=Qr?p:Y?"butt":x;if(Qr&&Fr==="round"&&(QtA&&(Fr="bevel"),Fr==="bevel"&&(Qt>2&&(Fr="flipbevel"),Qt100)_t=$e.mult(-1);else{var Nr=Qt*lt.add($e).mag()/lt.sub($e).mag();_t._perp()._mult(Nr*(Rr?-1:1))}this.addCurrentVertex(he,_t,0,0,ge),this.addCurrentVertex(he,_t.mult(-1),0,0,ge)}else if(Fr==="bevel"||Fr==="fakeround"){var ma=-Math.sqrt(Qt*Qt-1),jr=Rr?ma:0,Ya=Rr?0:ma;if(ke&&this.addCurrentVertex(he,lt,jr,Ya,ge),Fr==="fakeround")for(var gi=Math.round(hr*180/Math.PI/xW),Wa=1;Wa2*ie){var Mn=he.add(qe.sub(he)._mult(ie/Gn)._round());this.updateDistance(he,Mn),this.addCurrentVertex(Mn,$e,0,0,ge),he=Mn}}}}},zo.prototype.addCurrentVertex=function(o,u,p,x,A,k){k===void 0&&(k=!1);var F=u.x+u.y*p,Y=u.y-u.x*p,j=-u.x+u.y*x,Q=-u.y-u.x*x;this.addHalfVertex(o,F,Y,k,!1,p,A),this.addHalfVertex(o,j,Q,k,!0,-x,A),this.distance>wM/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(o,u,p,x,A,k))},zo.prototype.addHalfVertex=function(o,u,p,x,A,k,F){var Y=o.x,j=o.y,Q=this.lineClips?this.scaledDistance*(wM-1):this.scaledDistance,ie=Q*bM;if(this.layoutVertexArray.emplaceBack((Y<<1)+(x?1:0),(j<<1)+(A?1:0),Math.round(xM*u)+128,Math.round(xM*p)+128,(k===0?0:k<0?-1:1)+1|(ie&63)<<2,ie>>6),this.lineClips){var ge=this.scaledDistance-this.lineClips.start,he=this.lineClips.end-this.lineClips.start,ke=ge/he;this.layoutVertexArray2.emplaceBack(ke,this.lineClipsArray.length)}var qe=F.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,qe),F.primitiveLength++),A?this.e2=qe:this.e1=qe},zo.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},zo.prototype.updateDistance=function(o,u){this.distance+=o.dist(u),this.updateScaledDistance()},y("LineBucket",zo,{omit:["layers","patternFeatures"]});var wW=new zn({"line-cap":new wr(Jt.layout_line["line-cap"]),"line-join":new Vr(Jt.layout_line["line-join"]),"line-miter-limit":new wr(Jt.layout_line["line-miter-limit"]),"line-round-limit":new wr(Jt.layout_line["line-round-limit"]),"line-sort-key":new Vr(Jt.layout_line["line-sort-key"])}),TW=new zn({"line-opacity":new Vr(Jt.paint_line["line-opacity"]),"line-color":new Vr(Jt.paint_line["line-color"]),"line-translate":new wr(Jt.paint_line["line-translate"]),"line-translate-anchor":new wr(Jt.paint_line["line-translate-anchor"]),"line-width":new Vr(Jt.paint_line["line-width"]),"line-gap-width":new Vr(Jt.paint_line["line-gap-width"]),"line-offset":new Vr(Jt.paint_line["line-offset"]),"line-blur":new Vr(Jt.paint_line["line-blur"]),"line-dasharray":new Ti(Jt.paint_line["line-dasharray"]),"line-pattern":new Fi(Jt.paint_line["line-pattern"]),"line-gradient":new lo(Jt.paint_line["line-gradient"])}),TM={paint:TW,layout:wW},AW=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.possiblyEvaluate=function(p,x){return x=new Kt(Math.floor(x.zoom),{now:x.now,fadeDuration:x.fadeDuration,zoomHistory:x.zoomHistory,transition:x.transition}),n.prototype.possiblyEvaluate.call(this,p,x)},o.prototype.evaluate=function(p,x,A,k){return x=H({},x,{zoom:Math.floor(x.zoom)}),n.prototype.evaluate.call(this,p,x,A,k)},o}(Vr),AM=new AW(TM.paint.properties["line-width"].specification);AM.useIntegerZoom=!0;var MW=function(n){function o(u){n.call(this,u,TM),this.gradientVersion=0}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._handleSpecialPaintPropertyUpdate=function(p){if(p==="line-gradient"){var x=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=x._styleExpression.expression instanceof Ts,this.gradientVersion=(this.gradientVersion+1)%S}},o.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},o.prototype.recalculate=function(p,x){n.prototype.recalculate.call(this,p,x),this.paint._values["line-floorwidth"]=AM.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,p)},o.prototype.createBucket=function(p){return new zo(p)},o.prototype.queryRadius=function(p){var x=p,A=MM(Po("line-width",this,x),Po("line-gap-width",this,x)),k=Po("line-offset",this,x);return A/2+Math.abs(k)+el(this.paint.get("line-translate"))},o.prototype.queryIntersectsFeature=function(p,x,A,k,F,Y,j){var Q=ku(p,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Y.angle,j),ie=j/2*MM(this.paint.get("line-width").evaluate(x,A),this.paint.get("line-gap-width").evaluate(x,A)),ge=this.paint.get("line-offset").evaluate(x,A);return ge&&(k=SW(k,ge*j)),In(Q,k,ie)},o.prototype.isTileClipped=function(){return!0},o}(pi);function MM(n,o){return o>0?o+2*n:n}function SW(n,o){for(var u=[],p=new v(0,0),x=0;x":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};function IW(n){for(var o="",u=0;u>1,Q=-7,ie=u?x-1:0,ge=u?-1:1,he=n[o+ie];for(ie+=ge,A=he&(1<<-Q)-1,he>>=-Q,Q+=F;Q>0;A=A*256+n[o+ie],ie+=ge,Q-=8);for(k=A&(1<<-Q)-1,A>>=-Q,Q+=p;Q>0;k=k*256+n[o+ie],ie+=ge,Q-=8);if(A===0)A=1-j;else{if(A===Y)return k?NaN:(he?-1:1)*(1/0);k=k+Math.pow(2,p),A=A-j}return(he?-1:1)*k*Math.pow(2,A-p)},FW=function(n,o,u,p,x,A){var k,F,Y,j=A*8-x-1,Q=(1<>1,ge=x===23?Math.pow(2,-24)-Math.pow(2,-77):0,he=p?0:A-1,ke=p?1:-1,qe=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(F=isNaN(o)?1:0,k=Q):(k=Math.floor(Math.log(o)/Math.LN2),o*(Y=Math.pow(2,-k))<1&&(k--,Y*=2),k+ie>=1?o+=ge/Y:o+=ge*Math.pow(2,1-ie),o*Y>=2&&(k++,Y/=2),k+ie>=Q?(F=0,k=Q):k+ie>=1?(F=(o*Y-1)*Math.pow(2,x),k=k+ie):(F=o*Math.pow(2,ie-1)*Math.pow(2,x),k=0));x>=8;n[u+he]=F&255,he+=ke,F/=256,x-=8);for(k=k<0;n[u+he]=k&255,he+=ke,k/=256,j-=8);n[u+he-ke]|=qe*128},M1={read:RW,write:FW},S1=Li;function Li(n){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(n)?n:new Uint8Array(n||0),this.pos=0,this.type=0,this.length=this.buf.length}Li.Varint=0,Li.Fixed64=1,Li.Bytes=2,Li.Fixed32=5;var T3=65536*65536,kM=1/T3,qW=12,CM=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");Li.prototype={destroy:function(){this.buf=null},readFields:function(n,o,u){for(u=u||this.length;this.pos>3,A=this.pos;this.type=p&7,n(x,o,this),this.pos===A&&this.skip(p)}return o},readMessage:function(n,o){return this.readFields(n,o,this.readVarint()+this.pos)},readFixed32:function(){var n=k1(this.buf,this.pos);return this.pos+=4,n},readSFixed32:function(){var n=LM(this.buf,this.pos);return this.pos+=4,n},readFixed64:function(){var n=k1(this.buf,this.pos)+k1(this.buf,this.pos+4)*T3;return this.pos+=8,n},readSFixed64:function(){var n=k1(this.buf,this.pos)+LM(this.buf,this.pos+4)*T3;return this.pos+=8,n},readFloat:function(){var n=M1.read(this.buf,this.pos,!0,23,4);return this.pos+=4,n},readDouble:function(){var n=M1.read(this.buf,this.pos,!0,52,8);return this.pos+=8,n},readVarint:function(n){var o=this.buf,u,p;return p=o[this.pos++],u=p&127,p<128||(p=o[this.pos++],u|=(p&127)<<7,p<128)||(p=o[this.pos++],u|=(p&127)<<14,p<128)||(p=o[this.pos++],u|=(p&127)<<21,p<128)?u:(p=o[this.pos],u|=(p&15)<<28,NW(u,n,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var n=this.readVarint();return n%2===1?(n+1)/-2:n/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var n=this.readVarint()+this.pos,o=this.pos;return this.pos=n,n-o>=qW&&CM?QW(this.buf,o,n):KW(this.buf,o,n)},readBytes:function(){var n=this.readVarint()+this.pos,o=this.buf.subarray(this.pos,n);return this.pos=n,o},readPackedVarint:function(n,o){if(this.type!==Li.Bytes)return n.push(this.readVarint(o));var u=sc(this);for(n=n||[];this.pos127;);else if(o===Li.Bytes)this.pos=this.readVarint()+this.pos;else if(o===Li.Fixed32)this.pos+=4;else if(o===Li.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+o)},writeTag:function(n,o){this.writeVarint(n<<3|o)},realloc:function(n){for(var o=this.length||16;o268435455||n<0){BW(n,this);return}this.realloc(4),this.buf[this.pos++]=n&127|(n>127?128:0),!(n<=127)&&(this.buf[this.pos++]=(n>>>=7)&127|(n>127?128:0),!(n<=127)&&(this.buf[this.pos++]=(n>>>=7)&127|(n>127?128:0),!(n<=127)&&(this.buf[this.pos++]=n>>>7&127)))},writeSVarint:function(n){this.writeVarint(n<0?-n*2-1:n*2)},writeBoolean:function(n){this.writeVarint(!!n)},writeString:function(n){n=String(n),this.realloc(n.length*4),this.pos++;var o=this.pos;this.pos=$W(this.buf,n,this.pos);var u=this.pos-o;u>=128&&EM(o,u,this),this.pos=o-1,this.writeVarint(u),this.pos+=u},writeFloat:function(n){this.realloc(4),M1.write(this.buf,n,this.pos,!0,23,4),this.pos+=4},writeDouble:function(n){this.realloc(8),M1.write(this.buf,n,this.pos,!0,52,8),this.pos+=8},writeBytes:function(n){var o=n.length;this.writeVarint(o),this.realloc(o);for(var u=0;u=128&&EM(u,p,this),this.pos=u-1,this.writeVarint(p),this.pos+=p},writeMessage:function(n,o,u){this.writeTag(n,Li.Bytes),this.writeRawMessage(o,u)},writePackedVarint:function(n,o){o.length&&this.writeMessage(n,VW,o)},writePackedSVarint:function(n,o){o.length&&this.writeMessage(n,HW,o)},writePackedBoolean:function(n,o){o.length&&this.writeMessage(n,YW,o)},writePackedFloat:function(n,o){o.length&&this.writeMessage(n,GW,o)},writePackedDouble:function(n,o){o.length&&this.writeMessage(n,ZW,o)},writePackedFixed32:function(n,o){o.length&&this.writeMessage(n,WW,o)},writePackedSFixed32:function(n,o){o.length&&this.writeMessage(n,XW,o)},writePackedFixed64:function(n,o){o.length&&this.writeMessage(n,jW,o)},writePackedSFixed64:function(n,o){o.length&&this.writeMessage(n,JW,o)},writeBytesField:function(n,o){this.writeTag(n,Li.Bytes),this.writeBytes(o)},writeFixed32Field:function(n,o){this.writeTag(n,Li.Fixed32),this.writeFixed32(o)},writeSFixed32Field:function(n,o){this.writeTag(n,Li.Fixed32),this.writeSFixed32(o)},writeFixed64Field:function(n,o){this.writeTag(n,Li.Fixed64),this.writeFixed64(o)},writeSFixed64Field:function(n,o){this.writeTag(n,Li.Fixed64),this.writeSFixed64(o)},writeVarintField:function(n,o){this.writeTag(n,Li.Varint),this.writeVarint(o)},writeSVarintField:function(n,o){this.writeTag(n,Li.Varint),this.writeSVarint(o)},writeStringField:function(n,o){this.writeTag(n,Li.Bytes),this.writeString(o)},writeFloatField:function(n,o){this.writeTag(n,Li.Fixed32),this.writeFloat(o)},writeDoubleField:function(n,o){this.writeTag(n,Li.Fixed64),this.writeDouble(o)},writeBooleanField:function(n,o){this.writeVarintField(n,!!o)}};function NW(n,o,u){var p=u.buf,x,A;if(A=p[u.pos++],x=(A&112)>>4,A<128||(A=p[u.pos++],x|=(A&127)<<3,A<128)||(A=p[u.pos++],x|=(A&127)<<10,A<128)||(A=p[u.pos++],x|=(A&127)<<17,A<128)||(A=p[u.pos++],x|=(A&127)<<24,A<128)||(A=p[u.pos++],x|=(A&1)<<31,A<128))return Wp(n,x,o);throw new Error("Expected varint not more than 10 bytes")}function sc(n){return n.type===Li.Bytes?n.readVarint()+n.pos:n.pos+1}function Wp(n,o,u){return u?o*4294967296+(n>>>0):(o>>>0)*4294967296+(n>>>0)}function BW(n,o){var u,p;if(n>=0?(u=n%4294967296|0,p=n/4294967296|0):(u=~(-n%4294967296),p=~(-n/4294967296),u^4294967295?u=u+1|0:(u=0,p=p+1|0)),n>=18446744073709552e3||n<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");o.realloc(10),OW(u,p,o),UW(p,o)}function OW(n,o,u){u.buf[u.pos++]=n&127|128,n>>>=7,u.buf[u.pos++]=n&127|128,n>>>=7,u.buf[u.pos++]=n&127|128,n>>>=7,u.buf[u.pos++]=n&127|128,n>>>=7,u.buf[u.pos]=n&127}function UW(n,o){var u=(n&7)<<4;o.buf[o.pos++]|=u|((n>>>=3)?128:0),n&&(o.buf[o.pos++]=n&127|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=n&127|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=n&127|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=n&127|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=n&127)))))}function EM(n,o,u){var p=o<=16383?1:o<=2097151?2:o<=268435455?3:Math.floor(Math.log(o)/(Math.LN2*7));u.realloc(p);for(var x=u.pos-1;x>=n;x--)u.buf[x+p]=u.buf[x]}function VW(n,o){for(var u=0;u>>8,n[u+2]=o>>>16,n[u+3]=o>>>24}function LM(n,o){return(n[o]|n[o+1]<<8|n[o+2]<<16)+(n[o+3]<<24)}function KW(n,o,u){for(var p="",x=o;x239?4:A>223?3:A>191?2:1;if(x+F>u)break;var Y,j,Q;F===1?A<128&&(k=A):F===2?(Y=n[x+1],(Y&192)===128&&(k=(A&31)<<6|Y&63,k<=127&&(k=null))):F===3?(Y=n[x+1],j=n[x+2],(Y&192)===128&&(j&192)===128&&(k=(A&15)<<12|(Y&63)<<6|j&63,(k<=2047||k>=55296&&k<=57343)&&(k=null))):F===4&&(Y=n[x+1],j=n[x+2],Q=n[x+3],(Y&192)===128&&(j&192)===128&&(Q&192)===128&&(k=(A&15)<<18|(Y&63)<<12|(j&63)<<6|Q&63,(k<=65535||k>=1114112)&&(k=null))),k===null?(k=65533,F=1):k>65535&&(k-=65536,p+=String.fromCharCode(k>>>10&1023|55296),k=56320|k&1023),p+=String.fromCharCode(k),x+=F}return p}function QW(n,o,u){return CM.decode(n.subarray(o,u))}function $W(n,o,u){for(var p=0,x,A;p55295&&x<57344)if(A)if(x<56320){n[u++]=239,n[u++]=191,n[u++]=189,A=x;continue}else x=A-55296<<10|x-56320|65536,A=null;else{x>56319||p+1===o.length?(n[u++]=239,n[u++]=191,n[u++]=189):A=x;continue}else A&&(n[u++]=239,n[u++]=191,n[u++]=189,A=null);x<128?n[u++]=x:(x<2048?n[u++]=x>>6|192:(x<65536?n[u++]=x>>12|224:(n[u++]=x>>18|240,n[u++]=x>>12&63|128),n[u++]=x>>6&63|128),n[u++]=x&63|128)}return u}var A3=3;function eX(n,o,u){n===1&&u.readMessage(tX,o)}function tX(n,o,u){if(n===3){var p=u.readMessage(rX,{}),x=p.id,A=p.bitmap,k=p.width,F=p.height,Y=p.left,j=p.top,Q=p.advance;o.push({id:x,bitmap:new jv({width:k+2*A3,height:F+2*A3},A),metrics:{width:k,height:F,left:Y,top:j,advance:Q}})}}function rX(n,o,u){n===1?o.id=u.readVarint():n===2?o.bitmap=u.readBytes():n===3?o.width=u.readVarint():n===4?o.height=u.readVarint():n===5?o.left=u.readSVarint():n===6?o.top=u.readSVarint():n===7&&(o.advance=u.readVarint())}function aX(n){return new S1(n).readFields(eX,[])}var DM=A3;function PM(n){for(var o=0,u=0,p=0,x=n;p=0;he--){var ke=F[he];if(!(ge.w>ke.w||ge.h>ke.h)){if(ge.x=ke.x,ge.y=ke.y,j=Math.max(j,ge.y+ge.h),Y=Math.max(Y,ge.x+ge.w),ge.w===ke.w&&ge.h===ke.h){var qe=F.pop();he=0&&x>=o&&wf[this.text.charCodeAt(x)];x--)p--;this.text=this.text.substring(o,p),this.sectionIndex=this.sectionIndex.slice(o,p)},bo.prototype.substring=function(o,u){var p=new bo;return p.text=this.text.substring(o,u),p.sectionIndex=this.sectionIndex.slice(o,u),p.sections=this.sections,p},bo.prototype.toString=function(){return this.text},bo.prototype.getMaxScale=function(){var o=this;return this.sectionIndex.reduce(function(u,p){return Math.max(u,o.sections[p].scale)},0)},bo.prototype.addTextSection=function(o,u){this.text+=o.text,this.sections.push(jp.forText(o.scale,o.fontStack||u));for(var p=this.sections.length-1,x=0;x=IM?null:++this.imageSectionID:(this.imageSectionID=zM,this.imageSectionID)};function nX(n,o){for(var u=[],p=n.text,x=0,A=0,k=o;A=0,Q=0,ie=0;ie0&&Mn>Rr&&(Rr=Mn)}else{var Xa=u[zr.fontStack],Ha=Xa&&Xa[Fr];if(Ha&&Ha.rect)jr=Ha.rect,ma=Ha.metrics;else{var Mi=o[zr.fontStack],Di=Mi&&Mi[Fr];if(!Di)continue;ma=Di.metrics}Nr=(Rt-zr.scale)*Kn}Wa?(n.verticalizable=!0,ur.push({glyph:Fr,imageName:Ya,x:ge,y:he+Nr,vertical:Wa,scale:zr.scale,fontStack:zr.fontStack,sectionIndex:Qr,metrics:ma,rect:jr}),ge+=gi*zr.scale+j):(ur.push({glyph:Fr,imageName:Ya,x:ge,y:he+Nr,vertical:Wa,scale:zr.scale,fontStack:zr.fontStack,sectionIndex:Qr,metrics:ma,rect:jr}),ge+=ma.advance*zr.scale+j)}if(ur.length!==0){var wo=ge-j;ke=Math.max(wo,ke),uX(ur,0,ur.length-1,lt,Rr)}ge=0;var To=A*Rt+Rr;hr.lineOffset=Math.max(Rr,Qt),he+=To,qe=Math.max(To,qe),++$e}var Zn=he-yy,Io=S3(k),Ro=Io.horizontalAlign,Rn=Io.verticalAlign;fX(n.positionedLines,lt,Ro,Rn,ke,qe,A,Zn,x.length),n.top+=-Rn*Zn,n.bottom=n.top+Zn,n.left+=-Ro*ke,n.right=n.left+ke}function uX(n,o,u,p,x){if(!(!p&&!x))for(var A=n[u],k=A.metrics.advance*A.scale,F=(n[u].x+k)*p,Y=o;Y<=u;Y++)n[Y].x-=F,n[Y].y+=x}function fX(n,o,u,p,x,A,k,F,Y){var j=(o-u)*x,Q=0;A!==k?Q=-F*p-yy:Q=(-p*Y+.5)*k;for(var ie=0,ge=n;ie-u/2;){if(k--,k<0)return!1;F-=n[k].dist(A),A=n[k]}F+=n[k].dist(n[k+1]),k++;for(var Y=[],j=0;Fp;)j-=Y.shift().angleDelta;if(j>x)return!1;k++,F+=ie.dist(ge)}return!0}function HM(n){for(var o=0,u=0;uj){var ke=(j-Y)/he,qe=fn(ie.x,ge.x,ke),lt=fn(ie.y,ge.y,ke),$e=new Jp(qe,lt,ge.angleTo(ie),Q);return $e._round(),!k||VM(n,$e,F,k,o)?$e:void 0}Y+=he}}function dX(n,o,u,p,x,A,k,F,Y){var j=GM(p,A,k),Q=ZM(p,x),ie=Q*k,ge=n[0].x===0||n[0].x===Y||n[0].y===0||n[0].y===Y;o-ie=0&&St=0&&Rt=0&&ge+j<=Q){var Qt=new Jp(St,Rt,kt,ke);Qt._round(),(!p||VM(n,Qt,A,p,x))&&he.push(Qt)}}ie+=$e}return!F&&!he.length&&!k&&(he=YM(n,ie/2,u,p,x,A,k,!0,Y)),he}function WM(n,o,u,p,x){for(var A=[],k=0;k=p&&ie.x>=p)&&(Q.x>=p?Q=new v(p,Q.y+(ie.y-Q.y)*((p-Q.x)/(ie.x-Q.x)))._round():ie.x>=p&&(ie=new v(p,Q.y+(ie.y-Q.y)*((p-Q.x)/(ie.x-Q.x)))._round()),!(Q.y>=x&&ie.y>=x)&&(Q.y>=x?Q=new v(Q.x+(ie.x-Q.x)*((x-Q.y)/(ie.y-Q.y)),x)._round():ie.y>=x&&(ie=new v(Q.x+(ie.x-Q.x)*((x-Q.y)/(ie.y-Q.y)),x)._round()),(!Y||!Q.equals(Y[Y.length-1]))&&(Y=[Q],A.push(Y)),Y.push(ie)))))}return A}var Kp=ds;function XM(n,o,u,p){var x=[],A=n.image,k=A.pixelRatio,F=A.paddedRect.w-2*Kp,Y=A.paddedRect.h-2*Kp,j=n.right-n.left,Q=n.bottom-n.top,ie=A.stretchX||[[0,F]],ge=A.stretchY||[[0,Y]],he=function(Xa,Ha){return Xa+Ha[1]-Ha[0]},ke=ie.reduce(he,0),qe=ge.reduce(he,0),lt=F-ke,$e=Y-qe,kt=0,_t=ke,St=0,Rt=qe,Qt=0,hr=lt,ur=0,Rr=$e;if(A.content&&p){var kr=A.content;kt=L1(ie,0,kr[0]),St=L1(ge,0,kr[1]),_t=L1(ie,kr[0],kr[2]),Rt=L1(ge,kr[1],kr[3]),Qt=kr[0]-kt,ur=kr[1]-St,hr=kr[2]-kr[0]-_t,Rr=kr[3]-kr[1]-Rt}var zr=function(Xa,Ha,Mi,Di){var tn=D1(Xa.stretch-kt,_t,j,n.left),ln=P1(Xa.fixed-Qt,hr,Xa.stretch,ke),Gn=D1(Ha.stretch-St,Rt,Q,n.top),Mn=P1(Ha.fixed-ur,Rr,Ha.stretch,qe),wo=D1(Mi.stretch-kt,_t,j,n.left),To=P1(Mi.fixed-Qt,hr,Mi.stretch,ke),Zn=D1(Di.stretch-St,Rt,Q,n.top),Io=P1(Di.fixed-ur,Rr,Di.stretch,qe),Ro=new v(tn,Gn),Rn=new v(wo,Gn),Fo=new v(wo,Zn),zs=new v(tn,Zn),fc=new v(ln/k,Mn/k),gh=new v(To/k,Io/k),_h=o*Math.PI/180;if(_h){var xh=Math.sin(_h),n0=Math.cos(_h),Vl=[n0,-xh,xh,n0];Ro._matMult(Vl),Rn._matMult(Vl),zs._matMult(Vl),Fo._matMult(Vl)}var N1=Xa.stretch+Xa.fixed,R3=Mi.stretch+Mi.fixed,B1=Ha.stretch+Ha.fixed,F3=Di.stretch+Di.fixed,rl={x:A.paddedRect.x+Kp+N1,y:A.paddedRect.y+Kp+B1,w:R3-N1,h:F3-B1},o0=hr/k/j,O1=Rr/k/Q;return{tl:Ro,tr:Rn,bl:zs,br:Fo,tex:rl,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:fc,pixelOffsetBR:gh,minFontScaleX:o0,minFontScaleY:O1,isSDF:u}};if(!p||!A.stretchX&&!A.stretchY)x.push(zr({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:F+1},{fixed:0,stretch:Y+1}));else for(var Qr=jM(ie,lt,ke),Fr=jM(ge,$e,qe),Nr=0;Nr0&&(ke=Math.max(10,ke),this.circleDiameter=ke)}else{var qe=k.top*F-Y,lt=k.bottom*F+Y,$e=k.left*F-Y,kt=k.right*F+Y,_t=k.collisionPadding;if(_t&&($e-=_t[0]*F,qe-=_t[1]*F,kt+=_t[2]*F,lt+=_t[3]*F),Q){var St=new v($e,qe),Rt=new v(kt,qe),Qt=new v($e,lt),hr=new v(kt,lt),ur=Q*Math.PI/180;St._rotate(ur),Rt._rotate(ur),Qt._rotate(ur),hr._rotate(ur),$e=Math.min(St.x,Rt.x,Qt.x,hr.x),kt=Math.max(St.x,Rt.x,Qt.x,hr.x),qe=Math.min(St.y,Rt.y,Qt.y,hr.y),lt=Math.max(St.y,Rt.y,Qt.y,hr.y)}o.emplaceBack(u.x,u.y,$e,qe,kt,lt,p,x,A)}this.boxEndIndex=o.length},Qp=function(o,u){if(o===void 0&&(o=[]),u===void 0&&(u=mX),this.data=o,this.length=this.data.length,this.compare=u,this.length>0)for(var p=(this.length>>1)-1;p>=0;p--)this._down(p)};Qp.prototype.push=function(o){this.data.push(o),this.length++,this._up(this.length-1)},Qp.prototype.pop=function(){if(this.length!==0){var o=this.data[0],u=this.data.pop();return this.length--,this.length>0&&(this.data[0]=u,this._down(0)),o}},Qp.prototype.peek=function(){return this.data[0]},Qp.prototype._up=function(o){for(var u=this,p=u.data,x=u.compare,A=p[o];o>0;){var k=o-1>>1,F=p[k];if(x(A,F)>=0)break;p[o]=F,o=k}p[o]=A},Qp.prototype._down=function(o){for(var u=this,p=u.data,x=u.compare,A=this.length>>1,k=p[o];o=0)break;p[o]=Y,o=F}p[o]=k};function mX(n,o){return no?1:0}function yX(n,o,u){o===void 0&&(o=1),u===void 0&&(u=!1);for(var p=1/0,x=1/0,A=-1/0,k=-1/0,F=n[0],Y=0;YA)&&(A=j.x),(!Y||j.y>k)&&(k=j.y)}var Q=A-p,ie=k-x,ge=Math.min(Q,ie),he=ge/2,ke=new Qp([],gX);if(ge===0)return new v(p,x);for(var qe=p;qe$e.d||!$e.d)&&($e=_t,u&&console.log("found best %d after %d probes",Math.round(1e4*_t.d)/1e4,kt)),!(_t.max-$e.d<=o)&&(he=_t.h/2,ke.push(new $p(_t.p.x-he,_t.p.y-he,he,n)),ke.push(new $p(_t.p.x+he,_t.p.y-he,he,n)),ke.push(new $p(_t.p.x-he,_t.p.y+he,he,n)),ke.push(new $p(_t.p.x+he,_t.p.y+he,he,n)),kt+=4)}return u&&(console.log("num probes: "+kt),console.log("best distance: "+$e.d)),$e.p}function gX(n,o){return o.max-n.max}function $p(n,o,u,p){this.p=new v(n,o),this.h=u,this.d=_X(this.p,p),this.max=this.d+this.h*Math.SQRT2}function _X(n,o){for(var u=!1,p=1/0,x=0;xn.y!=Q.y>n.y&&n.x<(Q.x-j.x)*(n.y-j.y)/(Q.y-j.y)+j.x&&(u=!u),p=Math.min(p,oc(n,j,Q))}return(u?1:-1)*Math.sqrt(p)}function xX(n){for(var o=0,u=0,p=0,x=n[0],A=0,k=x.length,F=k-1;A=qr||Vl.y<0||Vl.y>=qr||TX(n,Vl,n0,u,p,x,Fr,n.layers[0],n.collisionBoxArray,o.index,o.sourceLayerIndex,n.index,$e,Rt,ur,Y,_t,Qt,Rr,he,o,A,j,Q,k)};if(kr==="line")for(var ma=0,jr=WM(o.geometry,0,0,qr,qr);ma1){var Gn=vX(ln,hr,u.vertical||ke,p,qe,kt);Gn&&Nr(ln,Gn)}}else if(o.type==="Polygon")for(var Mn=0,wo=_3(o.geometry,0);Mnmh&&Ce(n.layerIds[0]+': Value for "text-size" is >= '+gy+'. Reduce your "text-size".')):lt.kind==="composite"&&($e=[Lu*he.compositeTextSizes[0].evaluate(k,{},ke),Lu*he.compositeTextSizes[1].evaluate(k,{},ke)],($e[0]>mh||$e[1]>mh)&&Ce(n.layerIds[0]+': Value for "text-size" is >= '+gy+'. Reduce your "text-size".')),n.addSymbols(n.text,qe,$e,F,A,k,j,o,Y.lineStartIndex,Y.lineLength,ge,ke);for(var kt=0,_t=Q;kt<_t.length;kt+=1){var St=_t[kt];ie[St]=n.text.placedSymbolArray.length-1}return qe.length*4}function QM(n){for(var o in n)return n[o];return null}function TX(n,o,u,p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,lt,$e,kt,_t,St,Rt,Qt,hr,ur){var Rr,kr=n.addToLineVertexArray(o,u),zr,Qr,Fr,Nr,ma=0,jr=0,Ya=0,gi=0,Wa=-1,Xa=-1,Ha={},Mi=w(""),Di=0,tn=0;if(F._unevaluatedLayout.getValue("text-radial-offset")===void 0?(Rr=F.layout.get("text-offset").evaluate(St,{},hr).map(function(by){return by*Kn}),Di=Rr[0],tn=Rr[1]):(Di=F.layout.get("text-radial-offset").evaluate(St,{},hr)*Kn,tn=C3),n.allowVerticalPlacement&&p.vertical){var ln=F.layout.get("text-rotate").evaluate(St,{},hr),Gn=ln+90,Mn=p.vertical;Fr=new z1(Y,o,j,Q,ie,Mn,ge,he,ke,Gn),k&&(Nr=new z1(Y,o,j,Q,ie,k,lt,$e,ke,Gn))}if(x){var wo=F.layout.get("icon-rotate").evaluate(St,{}),To=F.layout.get("icon-text-fit")!=="none",Zn=XM(x,wo,Qt,To),Io=k?XM(k,wo,Qt,To):void 0;Qr=new z1(Y,o,j,Q,ie,x,lt,$e,!1,wo),ma=Zn.length*4;var Ro=n.iconSizeData,Rn=null;Ro.kind==="source"?(Rn=[Lu*F.layout.get("icon-size").evaluate(St,{})],Rn[0]>mh&&Ce(n.layerIds[0]+': Value for "icon-size" is >= '+gy+'. Reduce your "icon-size".')):Ro.kind==="composite"&&(Rn=[Lu*Rt.compositeIconSizes[0].evaluate(St,{},hr),Lu*Rt.compositeIconSizes[1].evaluate(St,{},hr)],(Rn[0]>mh||Rn[1]>mh)&&Ce(n.layerIds[0]+': Value for "icon-size" is >= '+gy+'. Reduce your "icon-size".')),n.addSymbols(n.icon,Zn,Rn,_t,kt,St,!1,o,kr.lineStartIndex,kr.lineLength,-1,hr),Wa=n.icon.placedSymbolArray.length-1,Io&&(jr=Io.length*4,n.addSymbols(n.icon,Io,Rn,_t,kt,St,Ps.vertical,o,kr.lineStartIndex,kr.lineLength,-1,hr),Xa=n.icon.placedSymbolArray.length-1)}for(var Fo in p.horizontal){var zs=p.horizontal[Fo];if(!zr){Mi=w(zs.text);var fc=F.layout.get("text-rotate").evaluate(St,{},hr);zr=new z1(Y,o,j,Q,ie,zs,ge,he,ke,fc)}var gh=zs.positionedLines.length===1;if(Ya+=KM(n,o,zs,A,F,ke,St,qe,kr,p.vertical?Ps.horizontal:Ps.horizontalOnly,gh?Object.keys(p.horizontal):[Fo],Ha,Wa,Rt,hr),gh)break}p.vertical&&(gi+=KM(n,o,p.vertical,A,F,ke,St,qe,kr,Ps.vertical,["vertical"],Ha,Xa,Rt,hr));var _h=zr?zr.boxStartIndex:n.collisionBoxArray.length,xh=zr?zr.boxEndIndex:n.collisionBoxArray.length,n0=Fr?Fr.boxStartIndex:n.collisionBoxArray.length,Vl=Fr?Fr.boxEndIndex:n.collisionBoxArray.length,N1=Qr?Qr.boxStartIndex:n.collisionBoxArray.length,R3=Qr?Qr.boxEndIndex:n.collisionBoxArray.length,B1=Nr?Nr.boxStartIndex:n.collisionBoxArray.length,F3=Nr?Nr.boxEndIndex:n.collisionBoxArray.length,rl=-1,o0=function(by,d7){return by&&by.circleDiameter?Math.max(by.circleDiameter,d7):d7};rl=o0(zr,rl),rl=o0(Fr,rl),rl=o0(Qr,rl),rl=o0(Nr,rl);var O1=rl>-1?1:0;O1&&(rl*=ur/Kn),n.glyphOffsetArray.length>=yi.MAX_GLYPHS&&Ce("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),St.sortKey!==void 0&&n.addToSortKeyRanges(n.symbolInstances.length,St.sortKey),n.symbolInstances.emplaceBack(o.x,o.y,Ha.right>=0?Ha.right:-1,Ha.center>=0?Ha.center:-1,Ha.left>=0?Ha.left:-1,Ha.vertical||-1,Wa,Xa,Mi,_h,xh,n0,Vl,N1,R3,B1,F3,j,Ya,gi,ma,jr,O1,0,ge,Di,tn,rl)}function AX(n,o,u,p){var x=n.compareText;if(!(o in x))x[o]=[];else for(var A=x[o],k=A.length-1;k>=0;k--)if(p.dist(A[k])0)&&(k.value.kind!=="constant"||k.value.value.length>0),Q=Y.value.kind!=="constant"||!!Y.value.value||Object.keys(Y.parameters).length>0,ie=A.get("symbol-sort-key");if(this.features=[],!(!j&&!Q)){for(var ge=u.iconDependencies,he=u.glyphDependencies,ke=u.availableImages,qe=new Kt(this.zoom),lt=0,$e=o;lt<$e.length;lt+=1){var kt=$e[lt],_t=kt.feature,St=kt.id,Rt=kt.index,Qt=kt.sourceLayerIndex,hr=x._featureFilter.needGeometry,ur=Ai(_t,hr);if(x._featureFilter.filter(qe,ur,p)){hr||(ur.geometry=Va(_t));var Rr=void 0;if(j){var kr=x.getValueAndResolveTokens("text-field",ur,p,ke),zr=gn.factory(kr);kX(zr)&&(this.hasRTLText=!0),(!this.hasRTLText||ea()==="unavailable"||this.hasRTLText&&ri.isParsed())&&(Rr=PW(zr,x,ur))}var Qr=void 0;if(Q){var Fr=x.getValueAndResolveTokens("icon-image",ur,p,ke);Fr instanceof Dn?Qr=Fr:Qr=Dn.fromString(Fr)}if(!(!Rr&&!Qr)){var Nr=this.sortFeaturesByKey?ie.evaluate(ur,{},p):void 0,ma={id:St,text:Rr,icon:Qr,index:Rt,sourceLayerIndex:Qt,geometry:ur.geometry,properties:_t.properties,type:MX[_t.type],sortKey:Nr};if(this.features.push(ma),Qr&&(ge[Qr.name]=!0),Rr){var jr=k.evaluate(ur,{},p).join(","),Ya=A.get("text-rotation-alignment")==="map"&&A.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(Ps.vertical)>=0;for(var gi=0,Wa=Rr.sections;gi=0;Y--)k[Y]={x:u[Y].x,y:u[Y].y,tileUnitDistanceFromAnchor:A},Y>0&&(A+=u[Y-1].dist(u[Y]));for(var j=0;j0},yi.prototype.hasIconData=function(){return this.icon.segments.get().length>0},yi.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},yi.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},yi.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},yi.prototype.addIndicesForPlacedSymbol=function(o,u){for(var p=o.placedSymbolArray.get(u),x=p.vertexStartIndex+p.numGlyphs*4,A=p.vertexStartIndex;A1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(o),this.sortedAngle=o,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var p=0,x=this.symbolInstanceIndexes;p=0&&j.indexOf(F)===Y&&u.addIndicesForPlacedSymbol(u.text,F)}),k.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,k.verticalPlacedTextSymbolIndex),k.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,k.placedIconSymbolIndex),k.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,k.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},y("SymbolBucket",yi,{omit:["layers","collisionBoxArray","features","compareText"]}),yi.MAX_GLYPHS=65535,yi.addDynamicAttributes=L3;function CX(n,o){return o.replace(/{([^{}]+)}/g,function(u,p){return p in n?String(n[p]):""})}var EX=new zn({"symbol-placement":new wr(Jt.layout_symbol["symbol-placement"]),"symbol-spacing":new wr(Jt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new wr(Jt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Vr(Jt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new wr(Jt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new wr(Jt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new wr(Jt.layout_symbol["icon-ignore-placement"]),"icon-optional":new wr(Jt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new wr(Jt.layout_symbol["icon-rotation-alignment"]),"icon-size":new Vr(Jt.layout_symbol["icon-size"]),"icon-text-fit":new wr(Jt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new wr(Jt.layout_symbol["icon-text-fit-padding"]),"icon-image":new Vr(Jt.layout_symbol["icon-image"]),"icon-rotate":new Vr(Jt.layout_symbol["icon-rotate"]),"icon-padding":new wr(Jt.layout_symbol["icon-padding"]),"icon-keep-upright":new wr(Jt.layout_symbol["icon-keep-upright"]),"icon-offset":new Vr(Jt.layout_symbol["icon-offset"]),"icon-anchor":new Vr(Jt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new wr(Jt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new wr(Jt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new wr(Jt.layout_symbol["text-rotation-alignment"]),"text-field":new Vr(Jt.layout_symbol["text-field"]),"text-font":new Vr(Jt.layout_symbol["text-font"]),"text-size":new Vr(Jt.layout_symbol["text-size"]),"text-max-width":new Vr(Jt.layout_symbol["text-max-width"]),"text-line-height":new wr(Jt.layout_symbol["text-line-height"]),"text-letter-spacing":new Vr(Jt.layout_symbol["text-letter-spacing"]),"text-justify":new Vr(Jt.layout_symbol["text-justify"]),"text-radial-offset":new Vr(Jt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new wr(Jt.layout_symbol["text-variable-anchor"]),"text-anchor":new Vr(Jt.layout_symbol["text-anchor"]),"text-max-angle":new wr(Jt.layout_symbol["text-max-angle"]),"text-writing-mode":new wr(Jt.layout_symbol["text-writing-mode"]),"text-rotate":new Vr(Jt.layout_symbol["text-rotate"]),"text-padding":new wr(Jt.layout_symbol["text-padding"]),"text-keep-upright":new wr(Jt.layout_symbol["text-keep-upright"]),"text-transform":new Vr(Jt.layout_symbol["text-transform"]),"text-offset":new Vr(Jt.layout_symbol["text-offset"]),"text-allow-overlap":new wr(Jt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new wr(Jt.layout_symbol["text-ignore-placement"]),"text-optional":new wr(Jt.layout_symbol["text-optional"])}),LX=new zn({"icon-opacity":new Vr(Jt.paint_symbol["icon-opacity"]),"icon-color":new Vr(Jt.paint_symbol["icon-color"]),"icon-halo-color":new Vr(Jt.paint_symbol["icon-halo-color"]),"icon-halo-width":new Vr(Jt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Vr(Jt.paint_symbol["icon-halo-blur"]),"icon-translate":new wr(Jt.paint_symbol["icon-translate"]),"icon-translate-anchor":new wr(Jt.paint_symbol["icon-translate-anchor"]),"text-opacity":new Vr(Jt.paint_symbol["text-opacity"]),"text-color":new Vr(Jt.paint_symbol["text-color"],{runtimeType:bs,getOverride:function(n){return n.textColor},hasOverride:function(n){return!!n.textColor}}),"text-halo-color":new Vr(Jt.paint_symbol["text-halo-color"]),"text-halo-width":new Vr(Jt.paint_symbol["text-halo-width"]),"text-halo-blur":new Vr(Jt.paint_symbol["text-halo-blur"]),"text-translate":new wr(Jt.paint_symbol["text-translate"]),"text-translate-anchor":new wr(Jt.paint_symbol["text-translate-anchor"])}),D3={paint:LX,layout:EX},r0=function(o){this.type=o.property.overrides?o.property.overrides.runtimeType:ef,this.defaultValue=o};r0.prototype.evaluate=function(o){if(o.formattedSection){var u=this.defaultValue.property.overrides;if(u&&u.hasOverride(o.formattedSection))return u.getOverride(o.formattedSection)}return o.feature&&o.featureState?this.defaultValue.evaluate(o.feature,o.featureState):this.defaultValue.property.specification.default},r0.prototype.eachChild=function(o){if(!this.defaultValue.isConstant()){var u=this.defaultValue.value;o(u._styleExpression.expression)}},r0.prototype.outputDefined=function(){return!1},r0.prototype.serialize=function(){return null},y("FormatSectionOverride",r0,{omit:["defaultValue"]});var DX=function(n){function o(u){n.call(this,u,D3)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.recalculate=function(p,x){if(n.prototype.recalculate.call(this,p,x),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var A=this.layout.get("text-writing-mode");if(A){for(var k=[],F=0,Y=A;F",targetMapId:x,sourceMapId:k.mapId})}}},a0.prototype.receive=function(o){var u=o.data,p=u.id;if(p&&!(u.targetMapId&&this.mapId!==u.targetMapId))if(u.type===""){delete this.tasks[p];var x=this.cancelCallbacks[p];delete this.cancelCallbacks[p],x&&x()}else at()||u.mustQueue?(this.tasks[p]=u,this.taskQueue.push(p),this.invoker.trigger()):this.processTask(p,u)},a0.prototype.process=function(){if(this.taskQueue.length){var o=this.taskQueue.shift(),u=this.tasks[o];delete this.tasks[o],this.taskQueue.length&&this.invoker.trigger(),u&&this.processTask(o,u)}},a0.prototype.processTask=function(o,u){var p=this;if(u.type===""){var x=this.callbacks[o];delete this.callbacks[o],x&&(u.error?x(Z(u.error)):x(null,Z(u.data)))}else{var A=!1,k=At(this.globalScope)?void 0:[],F=u.hasCallback?function(ge,he){A=!0,delete p.cancelCallbacks[o],p.target.postMessage({id:o,type:"",sourceMapId:p.mapId,error:ge?U(ge):null,data:U(he,k)},k)}:function(ge){A=!0},Y=null,j=Z(u.data);if(this.parent[u.type])Y=this.parent[u.type](u.sourceMapId,j,F);else if(this.parent.getWorkerSource){var Q=u.type.split("."),ie=this.parent.getWorkerSource(u.sourceMapId,Q[0],j.source);Y=ie[Q[1]](j,F)}else F(new Error("Could not find function "+u.type));!A&&Y&&Y.cancel&&(this.cancelCallbacks[o]=Y.cancel)}},a0.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function VX(n,o,u){o=Math.pow(2,u)-o-1;var p=a7(n*256,o*256,u),x=a7((n+1)*256,(o+1)*256,u);return p[0]+","+p[1]+","+x[0]+","+x[1]}function a7(n,o,u){var p=2*Math.PI*6378137/256/Math.pow(2,u),x=n*p-2*Math.PI*6378137/2,A=o*p-2*Math.PI*6378137/2;return[x,A]}var Tn=function(o,u){o&&(u?this.setSouthWest(o).setNorthEast(u):o.length===4?this.setSouthWest([o[0],o[1]]).setNorthEast([o[2],o[3]]):this.setSouthWest(o[0]).setNorthEast(o[1]))};Tn.prototype.setNorthEast=function(o){return this._ne=o instanceof Ui?new Ui(o.lng,o.lat):Ui.convert(o),this},Tn.prototype.setSouthWest=function(o){return this._sw=o instanceof Ui?new Ui(o.lng,o.lat):Ui.convert(o),this},Tn.prototype.extend=function(o){var u=this._sw,p=this._ne,x,A;if(o instanceof Ui)x=o,A=o;else if(o instanceof Tn){if(x=o._sw,A=o._ne,!x||!A)return this}else{if(Array.isArray(o))if(o.length===4||o.every(Array.isArray)){var k=o;return this.extend(Tn.convert(k))}else{var F=o;return this.extend(Ui.convert(F))}return this}return!u&&!p?(this._sw=new Ui(x.lng,x.lat),this._ne=new Ui(A.lng,A.lat)):(u.lng=Math.min(x.lng,u.lng),u.lat=Math.min(x.lat,u.lat),p.lng=Math.max(A.lng,p.lng),p.lat=Math.max(A.lat,p.lat)),this},Tn.prototype.getCenter=function(){return new Ui((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Tn.prototype.getSouthWest=function(){return this._sw},Tn.prototype.getNorthEast=function(){return this._ne},Tn.prototype.getNorthWest=function(){return new Ui(this.getWest(),this.getNorth())},Tn.prototype.getSouthEast=function(){return new Ui(this.getEast(),this.getSouth())},Tn.prototype.getWest=function(){return this._sw.lng},Tn.prototype.getSouth=function(){return this._sw.lat},Tn.prototype.getEast=function(){return this._ne.lng},Tn.prototype.getNorth=function(){return this._ne.lat},Tn.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Tn.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Tn.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Tn.prototype.contains=function(o){var u=Ui.convert(o),p=u.lng,x=u.lat,A=this._sw.lat<=x&&x<=this._ne.lat,k=this._sw.lng<=p&&p<=this._ne.lng;return this._sw.lng>this._ne.lng&&(k=this._sw.lng>=p&&p>=this._ne.lng),A&&k},Tn.convert=function(o){return!o||o instanceof Tn?o:new Tn(o)};var i7=63710088e-1,Ui=function(o,u){if(isNaN(o)||isNaN(u))throw new Error("Invalid LngLat object: ("+o+", "+u+")");if(this.lng=+o,this.lat=+u,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Ui.prototype.wrap=function(){return new Ui(B(this.lng,-180,180),this.lat)},Ui.prototype.toArray=function(){return[this.lng,this.lat]},Ui.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Ui.prototype.distanceTo=function(o){var u=Math.PI/180,p=this.lat*u,x=o.lat*u,A=Math.sin(p)*Math.sin(x)+Math.cos(p)*Math.cos(x)*Math.cos((o.lng-this.lng)*u),k=i7*Math.acos(Math.min(A,1));return k},Ui.prototype.toBounds=function(o){o===void 0&&(o=0);var u=40075017,p=360*o/u,x=p/Math.cos(Math.PI/180*this.lat);return new Tn(new Ui(this.lng-x,this.lat-p),new Ui(this.lng+x,this.lat+p))},Ui.convert=function(o){if(o instanceof Ui)return o;if(Array.isArray(o)&&(o.length===2||o.length===3))return new Ui(Number(o[0]),Number(o[1]));if(!Array.isArray(o)&&typeof o=="object"&&o!==null)return new Ui(Number("lng"in o?o.lng:o.lon),Number(o.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var n7=2*Math.PI*i7;function o7(n){return n7*Math.cos(n*Math.PI/180)}function s7(n){return(180+n)/360}function l7(n){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+n*Math.PI/360)))/360}function u7(n,o){return n/o7(o)}function HX(n){return n*360-180}function z3(n){var o=180-n*360;return 360/Math.PI*Math.atan(Math.exp(o*Math.PI/180))-90}function GX(n,o){return n*o7(z3(o))}function ZX(n){return 1/Math.cos(n*Math.PI/180)}var Kv=function(o,u,p){p===void 0&&(p=0),this.x=+o,this.y=+u,this.z=+p};Kv.fromLngLat=function(o,u){u===void 0&&(u=0);var p=Ui.convert(o);return new Kv(s7(p.lng),l7(p.lat),u7(u,p.lat))},Kv.prototype.toLngLat=function(){return new Ui(HX(this.x),z3(this.y))},Kv.prototype.toAltitude=function(){return GX(this.z,this.y)},Kv.prototype.meterInMercatorCoordinateUnits=function(){return 1/n7*ZX(z3(this.y))};var Qv=function(o,u,p){this.z=o,this.x=u,this.y=p,this.key=xy(0,o,o,u,p)};Qv.prototype.equals=function(o){return this.z===o.z&&this.x===o.x&&this.y===o.y},Qv.prototype.url=function(o,u){var p=VX(this.x,this.y,this.z),x=YX(this.z,this.x,this.y);return o[(this.x+this.y)%o.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(u==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",x).replace("{bbox-epsg-3857}",p)},Qv.prototype.getTilePoint=function(o){var u=Math.pow(2,this.z);return new v((o.x*u-this.x)*qr,(o.y*u-this.y)*qr)},Qv.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var f7=function(o,u){this.wrap=o,this.canonical=u,this.key=xy(o,u.z,u.z,u.x,u.y)},An=function(o,u,p,x,A){this.overscaledZ=o,this.wrap=u,this.canonical=new Qv(p,+x,+A),this.key=xy(u,o,p,x,A)};An.prototype.equals=function(o){return this.overscaledZ===o.overscaledZ&&this.wrap===o.wrap&&this.canonical.equals(o.canonical)},An.prototype.scaledTo=function(o){var u=this.canonical.z-o;return o>this.canonical.z?new An(o,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new An(o,this.wrap,o,this.canonical.x>>u,this.canonical.y>>u)},An.prototype.calculateScaledKey=function(o,u){var p=this.canonical.z-o;return o>this.canonical.z?xy(this.wrap*+u,o,this.canonical.z,this.canonical.x,this.canonical.y):xy(this.wrap*+u,o,o,this.canonical.x>>p,this.canonical.y>>p)},An.prototype.isChildOf=function(o){if(o.wrap!==this.wrap)return!1;var u=this.canonical.z-o.canonical.z;return o.overscaledZ===0||o.overscaledZ>u&&o.canonical.y===this.canonical.y>>u},An.prototype.children=function(o){if(this.overscaledZ>=o)return[new An(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var u=this.canonical.z+1,p=this.canonical.x*2,x=this.canonical.y*2;return[new An(u,this.wrap,u,p,x),new An(u,this.wrap,u,p+1,x),new An(u,this.wrap,u,p,x+1),new An(u,this.wrap,u,p+1,x+1)]},An.prototype.isLessThan=function(o){return this.wrapo.wrap?!1:this.overscaledZo.overscaledZ?!1:this.canonical.xo.canonical.x?!1:this.canonical.y0;A--)x=1<=this.dim+1||u<-1||u>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(u+1)*this.stride+(o+1)},lc.prototype._unpackMapbox=function(o,u,p){return(o*256*256+u*256+p)/10-1e4},lc.prototype._unpackTerrarium=function(o,u,p){return o*256+u+p/256-32768},lc.prototype.getPixels=function(){return new es({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},lc.prototype.backfillBorder=function(o,u,p){if(this.dim!==o.dim)throw new Error("dem dimension mismatch");var x=u*this.dim,A=u*this.dim+this.dim,k=p*this.dim,F=p*this.dim+this.dim;switch(u){case-1:x=A-1;break;case 1:A=x+1;break}switch(p){case-1:k=F-1;break;case 1:F=k+1;break}for(var Y=-u*this.dim,j=-p*this.dim,Q=k;Q=0&&ie[3]>=0&&Y.insert(F,ie[0],ie[1],ie[2],ie[3])}},uc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Yp.VectorTile(new S1(this.rawTileData)).layers,this.sourceLayerCoder=new F1(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},uc.prototype.query=function(o,u,p,x){var A=this;this.loadVTLayers();for(var k=o.params||{},F=qr/o.tileSize/o.scale,Y=cf(k.filter),j=o.queryGeometry,Q=o.queryPadding*F,ie=h7(j),ge=this.grid.query(ie.minX-Q,ie.minY-Q,ie.maxX+Q,ie.maxY+Q),he=h7(o.cameraQueryGeometry),ke=this.grid3D.query(he.minX-Q,he.minY-Q,he.maxX+Q,he.maxY+Q,function(Qt,hr,ur,Rr){return Ul(o.cameraQueryGeometry,Qt-Q,hr-Q,ur+Q,Rr+Q)}),qe=0,lt=ke;qex)A=!1;else if(!u)A=!0;else if(this.expirationTime=$r.maxzoom)&&$r.visibility!=="none"){T(dr,this.zoom,ce);var ga=Dt[$r.id]=$r.createBucket({index:yt.bucketLayerIDs.length,layers:dr,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Yr,sourceID:this.source});ga.populate(Br,Ft,this.tileID.canonical),yt.bucketLayerIDs.push(dr.map(function(Ga){return Ga.id}))}}}}var nr,wi,La,si,fa=a.mapObject(Ft.glyphDependencies,function(Ga){return Object.keys(Ga).map(Number)});Object.keys(fa).length?Ee.send("getGlyphs",{uid:this.uid,stacks:fa},function(Ga,Jn){nr||(nr=Ga,wi=Jn,_s.call(et))}):wi={};var Ln=Object.keys(Ft.iconDependencies);Ln.length?Ee.send("getImages",{icons:Ln,source:this.source,tileID:this.tileID,type:"icons"},function(Ga,Jn){nr||(nr=Ga,La=Jn,_s.call(et))}):La={};var Co=Object.keys(Ft.patternDependencies);Co.length?Ee.send("getImages",{icons:Co,source:this.source,tileID:this.tileID,type:"patterns"},function(Ga,Jn){nr||(nr=Ga,si=Jn,_s.call(et))}):si={},_s.call(this);function _s(){if(nr)return Be(nr);if(wi&&La&&si){var Ga=new m(wi),Jn=new a.ImageAtlas(La,si);for(var hu in Dt){var Bi=Dt[hu];Bi instanceof a.SymbolBucket?(T(Bi.layers,this.zoom,ce),a.performSymbolLayout(Bi,wi,Ga.positions,La,Jn.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Bi.hasPattern&&(Bi instanceof a.LineBucket||Bi instanceof a.FillBucket||Bi instanceof a.FillExtrusionBucket)&&(T(Bi.layers,this.zoom,ce),Bi.addFeatures(Ft,this.tileID.canonical,Jn.patternPositions))}this.status="done",Be(null,{buckets:a.values(Dt).filter(function(dl){return!dl.isEmpty()}),featureIndex:yt,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Ga.image,imageAtlas:Jn,glyphMap:this.returnDependencies?wi:null,iconMap:this.returnDependencies?La:null,glyphPositions:this.returnDependencies?Ga.positions:null})}}};function T(le,ee,se){for(var ce=new a.EvaluationParameters(ee),Ee=0,Be=le;Ee=0!=!!ee&&le.reverse()}var O=a.vectorTile.VectorTileFeature.prototype.toGeoJSON,H=function(ee){this._feature=ee,this.extent=a.EXTENT,this.type=ee.type,this.properties=ee.tags,"id"in ee&&!isNaN(ee.id)&&(this.id=parseInt(ee.id,10))};H.prototype.loadGeometry=function(){if(this._feature.type===1){for(var ee=[],se=0,ce=this._feature.geometry;se>31}function at(le,ee){for(var se=le.loadGeometry(),ce=le.type,Ee=0,Be=0,et=se.length,Ve=0;Ve>1;At(le,ee,et,ce,Ee,Be%2),Ye(le,ee,se,ce,et-1,Be+1),Ye(le,ee,se,et+1,Ee,Be+1)}}function At(le,ee,se,ce,Ee,Be){for(;Ee>ce;){if(Ee-ce>600){var et=Ee-ce+1,Ve=se-ce+1,yt=Math.log(et),Dt=.5*Math.exp(2*yt/3),Ft=.5*Math.sqrt(yt*Dt*(et-Dt)/et)*(Ve-et/2<0?-1:1),rr=Math.max(ce,Math.floor(se-Ve*Dt/et+Ft)),jt=Math.min(Ee,Math.floor(se+(et-Ve)*Dt/et+Ft));At(le,ee,se,rr,jt,Be)}var Tr=ee[2*se+Be],Yr=ce,Br=Ee;for(it(le,ee,ce,se),ee[2*Ee+Be]>Tr&&it(le,ee,ce,Ee);YrTr;)Br--}ee[2*ce+Be]===Tr?it(le,ee,ce,Br):(Br++,it(le,ee,Br,Ee)),Br<=se&&(ce=Br+1),se<=Br&&(Ee=Br-1)}}function it(le,ee,se,ce){dt(le,se,ce),dt(ee,2*se,2*ce),dt(ee,2*se+1,2*ce+1)}function dt(le,ee,se){var ce=le[ee];le[ee]=le[se],le[se]=ce}function Mt(le,ee,se,ce,Ee,Be,et){for(var Ve=[0,le.length-1,0],yt=[],Dt,Ft;Ve.length;){var rr=Ve.pop(),jt=Ve.pop(),Tr=Ve.pop();if(jt-Tr<=et){for(var Yr=Tr;Yr<=jt;Yr++)Dt=ee[2*Yr],Ft=ee[2*Yr+1],Dt>=se&&Dt<=Ee&&Ft>=ce&&Ft<=Be&&yt.push(le[Yr]);continue}var Br=Math.floor((Tr+jt)/2);Dt=ee[2*Br],Ft=ee[2*Br+1],Dt>=se&&Dt<=Ee&&Ft>=ce&&Ft<=Be&&yt.push(le[Br]);var ca=(rr+1)%2;(rr===0?se<=Dt:ce<=Ft)&&(Ve.push(Tr),Ve.push(Br-1),Ve.push(ca)),(rr===0?Ee>=Dt:Be>=Ft)&&(Ve.push(Br+1),Ve.push(jt),Ve.push(ca))}return yt}function ct(le,ee,se,ce,Ee,Be){for(var et=[0,le.length-1,0],Ve=[],yt=Ee*Ee;et.length;){var Dt=et.pop(),Ft=et.pop(),rr=et.pop();if(Ft-rr<=Be){for(var jt=rr;jt<=Ft;jt++)ve(ee[2*jt],ee[2*jt+1],se,ce)<=yt&&Ve.push(le[jt]);continue}var Tr=Math.floor((rr+Ft)/2),Yr=ee[2*Tr],Br=ee[2*Tr+1];ve(Yr,Br,se,ce)<=yt&&Ve.push(le[Tr]);var ca=(Dt+1)%2;(Dt===0?se-Ee<=Yr:ce-Ee<=Br)&&(et.push(rr),et.push(Tr-1),et.push(ca)),(Dt===0?se+Ee>=Yr:ce+Ee>=Br)&&(et.push(Tr+1),et.push(Ft),et.push(ca))}return Ve}function ve(le,ee,se,ce){var Ee=le-se,Be=ee-ce;return Ee*Ee+Be*Be}var Ie=function(le){return le[0]},me=function(le){return le[1]},rt=function(ee,se,ce,Ee,Be){se===void 0&&(se=Ie),ce===void 0&&(ce=me),Ee===void 0&&(Ee=64),Be===void 0&&(Be=Float64Array),this.nodeSize=Ee,this.points=ee;for(var et=ee.length<65536?Uint16Array:Uint32Array,Ve=this.ids=new et(ee.length),yt=this.coords=new Be(ee.length*2),Dt=0;Dt=Ee;Ft--){var rr=+Date.now();yt=this._cluster(yt,Ft),this.trees[Ft]=new rt(yt,Ne,ut,et,Float32Array),ce&&console.log("z%d: %d clusters in %dms",Ft,yt.length,+Date.now()-rr)}return ce&&console.timeEnd("total time"),this},je.prototype.getClusters=function(ee,se){var ce=((ee[0]+180)%360+360)%360-180,Ee=Math.max(-90,Math.min(90,ee[1])),Be=ee[2]===180?180:((ee[2]+180)%360+360)%360-180,et=Math.max(-90,Math.min(90,ee[3]));if(ee[2]-ee[0]>=360)ce=-180,Be=180;else if(ce>Be){var Ve=this.getClusters([ce,Ee,180,et],se),yt=this.getClusters([-180,Ee,Be,et],se);return Ve.concat(yt)}for(var Dt=this.trees[this._limitZoom(se)],Ft=Dt.range(Ut(ce),Et(et),Ut(Be),Et(Ee)),rr=[],jt=0,Tr=Ft;jtse&&(Br+=ii.numPoints||1)}if(Br>=yt){for(var Wr=rr.x*Yr,dr=rr.y*Yr,$r=Ve&&Yr>1?this._map(rr,!0):null,ga=(Ft<<5)+(se+1)+this.points.length,nr=0,wi=Tr;nr1)for(var Ln=0,Co=Tr;Ln>5},je.prototype._getOriginZoom=function(ee){return(ee-this.points.length)%32},je.prototype._map=function(ee,se){if(ee.numPoints)return se?Vt({},ee.properties):ee.properties;var ce=this.points[ee.index].properties,Ee=this.options.map(ce);return se&&Ee===ce?Vt({},Ee):Ee};function qt(le,ee,se,ce,Ee){return{x:le,y:ee,zoom:1/0,id:se,parentId:-1,numPoints:ce,properties:Ee}}function It(le,ee){var se=le.geometry.coordinates,ce=se[0],Ee=se[1];return{x:Ut(ce),y:Et(Ee),zoom:1/0,index:ee,parentId:-1}}function Tt(le){return{type:"Feature",id:le.id,properties:zt(le),geometry:{type:"Point",coordinates:[Ct(le.x),Yt(le.y)]}}}function zt(le){var ee=le.numPoints,se=ee>=1e4?Math.round(ee/1e3)+"k":ee>=1e3?Math.round(ee/100)/10+"k":ee;return Vt(Vt({},le.properties),{cluster:!0,cluster_id:le.id,point_count:ee,point_count_abbreviated:se})}function Ut(le){return le/360+.5}function Et(le){var ee=Math.sin(le*Math.PI/180),se=.5-.25*Math.log((1+ee)/(1-ee))/Math.PI;return se<0?0:se>1?1:se}function Ct(le){return(le-.5)*360}function Yt(le){var ee=(180-le*360)*Math.PI/180;return 360*Math.atan(Math.exp(ee))/Math.PI-90}function Vt(le,ee){for(var se in ee)le[se]=ee[se];return le}function Ne(le){return le.x}function ut(le){return le.y}function gt(le,ee,se,ce){for(var Ee=ce,Be=se-ee>>1,et=se-ee,Ve,yt=le[ee],Dt=le[ee+1],Ft=le[se],rr=le[se+1],jt=ee+3;jtEe)Ve=jt,Ee=Tr;else if(Tr===Ee){var Yr=Math.abs(jt-Be);Yrce&&(Ve-ee>3&>(le,ee,Ve,ce),le[Ve+2]=Ee,se-Ve>3&>(le,Ve,se,ce))}function xr(le,ee,se,ce,Ee,Be){var et=Ee-se,Ve=Be-ce;if(et!==0||Ve!==0){var yt=((le-se)*et+(ee-ce)*Ve)/(et*et+Ve*Ve);yt>1?(se=Ee,ce=Be):yt>0&&(se+=et*yt,ce+=Ve*yt)}return et=le-se,Ve=ee-ce,et*et+Ve*Ve}function vr(le,ee,se,ce){var Ee={id:typeof le=="undefined"?null:le,type:ee,geometry:se,tags:ce,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return wt(Ee),Ee}function wt(le){var ee=le.geometry,se=le.type;if(se==="Point"||se==="MultiPoint"||se==="LineString")bt(le,ee);else if(se==="Polygon"||se==="MultiLineString")for(var ce=0;ce0&&(ce?et+=(Ee*Dt-yt*Be)/2:et+=Math.sqrt(Math.pow(yt-Ee,2)+Math.pow(Dt-Be,2))),Ee=yt,Be=Dt}var Ft=ee.length-3;ee[2]=1,gt(ee,0,Ft,se),ee[Ft+2]=1,ee.size=Math.abs(et),ee.start=0,ee.end=ee.size}function tr(le,ee,se,ce){for(var Ee=0;Ee1?1:se}function Lt(le,ee,se,ce,Ee,Be,et,Ve){if(se/=ee,ce/=ee,Be>=se&&et=ce)return null;for(var yt=[],Dt=0;Dt=se&&Yr=ce)continue;var Br=[];if(jt==="Point"||jt==="MultiPoint")Fe(rr,Br,se,ce,Ee);else if(jt==="LineString")He(rr,Br,se,ce,Ee,!1,Ve.lineMetrics);else if(jt==="MultiLineString")vt(rr,Br,se,ce,Ee,!1);else if(jt==="Polygon")vt(rr,Br,se,ce,Ee,!0);else if(jt==="MultiPolygon")for(var ca=0;ca=se&&et<=ce&&(ee.push(le[Be]),ee.push(le[Be+1]),ee.push(le[Be+2]))}}function He(le,ee,se,ce,Ee,Be,et){for(var Ve=xt(le),yt=Ee===0?Er:Ar,Dt=le.start,Ft,rr,jt=0;jtse&&(rr=yt(Ve,Tr,Yr,ca,ua,se),et&&(Ve.start=Dt+Ft*rr)):Na>ce?ii=se&&(rr=yt(Ve,Tr,Yr,ca,ua,se),Wr=!0),ii>ce&&Na<=ce&&(rr=yt(Ve,Tr,Yr,ca,ua,ce),Wr=!0),!Be&&Wr&&(et&&(Ve.end=Dt+Ft*rr),ee.push(Ve),Ve=xt(le)),et&&(Dt+=Ft)}var dr=le.length-3;Tr=le[dr],Yr=le[dr+1],Br=le[dr+2],Na=Ee===0?Tr:Yr,Na>=se&&Na<=ce&&yr(Ve,Tr,Yr,Br),dr=Ve.length-3,Be&&dr>=3&&(Ve[dr]!==Ve[0]||Ve[dr+1]!==Ve[1])&&yr(Ve,Ve[0],Ve[1],Ve[2]),Ve.length&&ee.push(Ve)}function xt(le){var ee=[];return ee.size=le.size,ee.start=le.start,ee.end=le.end,ee}function vt(le,ee,se,ce,Ee,Be){for(var et=0;etet.maxX&&(et.maxX=Ft),rr>et.maxY&&(et.maxY=rr)}return et}function yn(le,ee,se,ce){var Ee=ee.geometry,Be=ee.type,et=[];if(Be==="Point"||Be==="MultiPoint")for(var Ve=0;Ve0&&ee.size<(Ee?et:ce)){se.numPoints+=ee.length/3;return}for(var Ve=[],yt=0;ytet)&&(se.numSimplified++,Ve.push(ee[yt]),Ve.push(ee[yt+1])),se.numPoints++;Ee&&jn(Ve,Be),le.push(Ve)}function jn(le,ee){for(var se=0,ce=0,Ee=le.length,Be=Ee-2;ce0===ee)for(ce=0,Ee=le.length;ce24)throw new Error("maxZoom should be in the 0-24 range");if(ee.promoteId&&ee.generateId)throw new Error("promoteId and generateId cannot be used together.");var ce=Ht(le,ee);this.tiles={},this.tileCoords=[],se&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",ee.indexMaxZoom,ee.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),ce=Hr(ce,ee),ce.length&&this.splitTile(ce,0,0,0),se&&(ce.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Vi.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Vi.prototype.splitTile=function(le,ee,se,ce,Ee,Be,et){for(var Ve=[le,ee,se,ce],yt=this.options,Dt=yt.debug;Ve.length;){ce=Ve.pop(),se=Ve.pop(),ee=Ve.pop(),le=Ve.pop();var Ft=1<1&&console.time("creation"),jt=this.tiles[rr]=Ki(le,ee,se,ce,yt),this.tileCoords.push({z:ee,x:se,y:ce}),Dt)){Dt>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",ee,se,ce,jt.numFeatures,jt.numPoints,jt.numSimplified),console.timeEnd("creation"));var Tr="z"+ee;this.stats[Tr]=(this.stats[Tr]||0)+1,this.total++}if(jt.source=le,Ee){if(ee===yt.maxZoom||ee===Ee)continue;var Yr=1<1&&console.time("clipping");var Br=.5*yt.buffer/yt.extent,ca=.5-Br,ua=.5+Br,Na=1+Br,ii,Wr,dr,$r,ga,nr;ii=Wr=dr=$r=null,ga=Lt(le,Ft,se-Br,se+ua,0,jt.minX,jt.maxX,yt),nr=Lt(le,Ft,se+ca,se+Na,0,jt.minX,jt.maxX,yt),le=null,ga&&(ii=Lt(ga,Ft,ce-Br,ce+ua,1,jt.minY,jt.maxY,yt),Wr=Lt(ga,Ft,ce+ca,ce+Na,1,jt.minY,jt.maxY,yt),ga=null),nr&&(dr=Lt(nr,Ft,ce-Br,ce+ua,1,jt.minY,jt.maxY,yt),$r=Lt(nr,Ft,ce+ca,ce+Na,1,jt.minY,jt.maxY,yt),nr=null),Dt>1&&console.timeEnd("clipping"),Ve.push(ii||[],ee+1,se*2,ce*2),Ve.push(Wr||[],ee+1,se*2,ce*2+1),Ve.push(dr||[],ee+1,se*2+1,ce*2),Ve.push($r||[],ee+1,se*2+1,ce*2+1)}}},Vi.prototype.getTile=function(le,ee,se){var ce=this.options,Ee=ce.extent,Be=ce.debug;if(le<0||le>24)return null;var et=1<1&&console.log("drilling down to z%d-%d-%d",le,ee,se);for(var yt=le,Dt=ee,Ft=se,rr;!rr&&yt>0;)yt--,Dt=Math.floor(Dt/2),Ft=Math.floor(Ft/2),rr=this.tiles[pa(yt,Dt,Ft)];return!rr||!rr.source?null:(Be>1&&console.log("found parent tile z%d-%d-%d",yt,Dt,Ft),Be>1&&console.time("drilling down"),this.splitTile(rr.source,yt,Dt,Ft,le,ee,se),Be>1&&console.timeEnd("drilling down"),this.tiles[Ve]?Ea(this.tiles[Ve],Ee):null)};function pa(le,ee,se){return((1<=0?0:g.button},l.remove=function(g){g.parentNode&&g.parentNode.removeChild(g)};function D(g,c,b){var d,w,L,R=a.browser.devicePixelRatio>1?"@2x":"",G=a.getJSON(c.transformRequest(c.normalizeSpriteURL(g,R,".json"),a.ResourceType.SpriteJSON),function(ue,be){G=null,L||(L=ue,d=be,re())}),K=a.getImage(c.transformRequest(c.normalizeSpriteURL(g,R,".png"),a.ResourceType.SpriteImage),function(ue,be){K=null,L||(L=ue,w=be,re())});function re(){if(L)b(L);else if(d&&w){var ue=a.browser.getImageData(w),be={};for(var xe in d){var Re=d[xe],Ze=Re.width,Ge=Re.height,Oe=Re.x,Xe=Re.y,ht=Re.sdf,Pt=Re.pixelRatio,Nt=Re.stretchX,$t=Re.stretchY,ar=Re.content,Wt=new a.RGBAImage({width:Ze,height:Ge});a.RGBAImage.copy(ue,Wt,{x:Oe,y:Xe},{x:0,y:0},{width:Ze,height:Ge}),be[xe]={data:Wt,pixelRatio:Pt,sdf:ht,stretchX:Nt,stretchY:$t,content:ar}}b(null,be)}}return{cancel:function(){G&&(G.cancel(),G=null),K&&(K.cancel(),K=null)}}}function E(g){var c=g.userImage;if(c&&c.render){var b=c.render();if(b)return g.data.replace(new Uint8Array(c.data.buffer)),!0}return!1}var I=1,B=function(g){function c(){g.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new a.RGBAImage({width:1,height:1}),this.dirty=!0}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.isLoaded=function(){return this.loaded},c.prototype.setLoaded=function(d){if(this.loaded!==d&&(this.loaded=d,d)){for(var w=0,L=this.requestors;w=0?1.2:1))}V.prototype.draw=function(g){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(g,this.buffer,this.middle);for(var c=this.ctx.getImageData(0,0,this.size,this.size),b=new Uint8ClampedArray(this.size*this.size),d=0;d65535){ue(new Error("glyphs > 65535 not supported"));return}if(Re.ranges[Ge]){ue(null,{stack:be,id:xe,glyph:Ze});return}var Oe=Re.requests[Ge];Oe||(Oe=Re.requests[Ge]=[],te.loadGlyphRange(be,Ge,d.url,d.requestManager,function(Xe,ht){if(ht){for(var Pt in ht)d._doesCharSupportLocalGlyph(+Pt)||(Re.glyphs[+Pt]=ht[+Pt]);Re.ranges[Ge]=!0}for(var Nt=0,$t=Oe;Nt<$t.length;Nt+=1){var ar=$t[Nt];ar(Xe,ht)}delete Re.requests[Ge]})),Oe.push(function(Xe,ht){Xe?ue(Xe):ht&&ue(null,{stack:be,id:xe,glyph:ht[xe]||null})})},function(re,ue){if(re)b(re);else if(ue){for(var be={},xe=0,Re=ue;xe1&&(re=c[++K]);var be=Math.abs(ue-re.left),xe=Math.abs(ue-re.right),Re=Math.min(be,xe),Ze=void 0,Ge=L/d*(w+1);if(re.isDash){var Oe=w-Math.abs(Ge);Ze=Math.sqrt(Re*Re+Oe*Oe)}else Ze=w-Math.sqrt(Re*Re+Ge*Ge);this.data[G+ue]=Math.max(0,Math.min(255,Ze+128))}},Me.prototype.addRegularDash=function(c){for(var b=c.length-1;b>=0;--b){var d=c[b],w=c[b+1];d.zeroLength?c.splice(b,1):w&&w.isDash===d.isDash&&(w.left=d.left,c.splice(b,1))}var L=c[0],R=c[c.length-1];L.isDash===R.isDash&&(L.left=R.left-this.width,R.right=L.right+this.width);for(var G=this.width*this.nextRow,K=0,re=c[K],ue=0;ue1&&(re=c[++K]);var be=Math.abs(ue-re.left),xe=Math.abs(ue-re.right),Re=Math.min(be,xe),Ze=re.isDash?Re:-Re;this.data[G+ue]=Math.max(0,Math.min(255,Ze+128))}},Me.prototype.addDash=function(c,b){var d=b?7:0,w=2*d+1;if(this.nextRow+w>this.height)return a.warnOnce("LineAtlas out of space"),null;for(var L=0,R=0;R=d.minX&&c.x=d.minY&&c.y0&&(ue[new a.OverscaledTileID(d.overscaledZ,G,w.z,R,w.y-1).key]={backfilled:!1},ue[new a.OverscaledTileID(d.overscaledZ,d.wrap,w.z,w.x,w.y-1).key]={backfilled:!1},ue[new a.OverscaledTileID(d.overscaledZ,re,w.z,K,w.y-1).key]={backfilled:!1}),w.y+10&&(L.resourceTiming=d._resourceTiming,d._resourceTiming=[]),d.fire(new a.Event("data",L))})},c.prototype.onAdd=function(d){this.map=d,this.load()},c.prototype.setData=function(d){var w=this;return this._data=d,this.fire(new a.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(L){if(L){w.fire(new a.ErrorEvent(L));return}var R={dataType:"source",sourceDataType:"content"};w._collectResourceTiming&&w._resourceTiming&&w._resourceTiming.length>0&&(R.resourceTiming=w._resourceTiming,w._resourceTiming=[]),w.fire(new a.Event("data",R))}),this},c.prototype.getClusterExpansionZoom=function(d,w){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:d,source:this.id},w),this},c.prototype.getClusterChildren=function(d,w){return this.actor.send("geojson.getClusterChildren",{clusterId:d,source:this.id},w),this},c.prototype.getClusterLeaves=function(d,w,L,R){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:d,limit:w,offset:L},R),this},c.prototype._updateWorkerData=function(d){var w=this;this._loaded=!1;var L=a.extend({},this.workerOptions),R=this._data;typeof R=="string"?(L.request=this.map._requestManager.transformRequest(a.browser.resolveURL(R),a.ResourceType.Source),L.request.collectResourceTiming=this._collectResourceTiming):L.data=JSON.stringify(R),this.actor.send(this.type+".loadData",L,function(G,K){w._removed||K&&K.abandoned||(w._loaded=!0,K&&K.resourceTiming&&K.resourceTiming[w.id]&&(w._resourceTiming=K.resourceTiming[w.id].slice(0)),w.actor.send(w.type+".coalesce",{source:L.source},null),d(G))})},c.prototype.loaded=function(){return this._loaded},c.prototype.loadTile=function(d,w){var L=this,R=d.actor?"reloadTile":"loadTile";d.actor=this.actor;var G={type:this.type,uid:d.uid,tileID:d.tileID,zoom:d.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:a.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};d.request=this.actor.send(R,G,function(K,re){return delete d.request,d.unloadVectorData(),d.aborted?w(null):K?w(K):(d.loadVectorData(re,L.map.painter,R==="reloadTile"),w(null))})},c.prototype.abortTile=function(d){d.request&&(d.request.cancel(),delete d.request),d.aborted=!0},c.prototype.unloadTile=function(d){d.unloadVectorData(),this.actor.send("removeTile",{uid:d.uid,type:this.type,source:this.id})},c.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},c.prototype.serialize=function(){return a.extend({},this._options,{type:this.type,data:this._data})},c.prototype.hasTransition=function(){return!1},c}(a.Evented),st=a.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),at=function(g){function c(b,d,w,L){g.call(this),this.id=b,this.dispatcher=w,this.coordinates=d.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(L),this.options=d}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.load=function(d,w){var L=this;this._loaded=!1,this.fire(new a.Event("dataloading",{dataType:"source"})),this.url=this.options.url,a.getImage(this.map._requestManager.transformRequest(this.url,a.ResourceType.Image),function(R,G){L._loaded=!0,R?L.fire(new a.ErrorEvent(R)):G&&(L.image=G,d&&(L.coordinates=d),w&&w(),L._finishLoading())})},c.prototype.loaded=function(){return this._loaded},c.prototype.updateImage=function(d){var w=this;return!this.image||!d.url?this:(this.options.url=d.url,this.load(d.coordinates,function(){w.texture=null}),this)},c.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"metadata"})))},c.prototype.onAdd=function(d){this.map=d,this.load()},c.prototype.setCoordinates=function(d){var w=this;this.coordinates=d;var L=d.map(a.MercatorCoordinate.fromLngLat);this.tileID=mt(L),this.minzoom=this.maxzoom=this.tileID.z;var R=L.map(function(G){return w.tileID.getTilePoint(G)._round()});return this._boundsArray=new a.StructArrayLayout4i8,this._boundsArray.emplaceBack(R[0].x,R[0].y,0,0),this._boundsArray.emplaceBack(R[1].x,R[1].y,a.EXTENT,0),this._boundsArray.emplaceBack(R[3].x,R[3].y,0,a.EXTENT),this._boundsArray.emplaceBack(R[2].x,R[2].y,a.EXTENT,a.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"content"})),this},c.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var d=this.map.painter.context,w=d.gl;this.boundsBuffer||(this.boundsBuffer=d.createVertexBuffer(this._boundsArray,st.members)),this.boundsSegments||(this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new a.Texture(d,this.image,w.RGBA),this.texture.bind(w.LINEAR,w.CLAMP_TO_EDGE));for(var L in this.tiles){var R=this.tiles[L];R.state!=="loaded"&&(R.state="loaded",R.texture=this.texture)}}},c.prototype.loadTile=function(d,w){this.tileID&&this.tileID.equals(d.tileID.canonical)?(this.tiles[String(d.tileID.wrap)]=d,d.buckets={},w(null)):(d.state="errored",w(null))},c.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},c.prototype.hasTransition=function(){return!1},c}(a.Evented);function mt(g){for(var c=1/0,b=1/0,d=-1/0,w=-1/0,L=0,R=g;Lw.end(0)?this.fire(new a.ErrorEvent(new a.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+w.start(0)+" and "+w.end(0)+"-second mark."))):this.video.currentTime=d}},c.prototype.getVideo=function(){return this.video},c.prototype.onAdd=function(d){this.map||(this.map=d,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},c.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var d=this.map.painter.context,w=d.gl;this.boundsBuffer||(this.boundsBuffer=d.createVertexBuffer(this._boundsArray,st.members)),this.boundsSegments||(this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(w.LINEAR,w.CLAMP_TO_EDGE),w.texSubImage2D(w.TEXTURE_2D,0,0,0,w.RGBA,w.UNSIGNED_BYTE,this.video)):(this.texture=new a.Texture(d,this.video,w.RGBA),this.texture.bind(w.LINEAR,w.CLAMP_TO_EDGE));for(var L in this.tiles){var R=this.tiles[L];R.state!=="loaded"&&(R.state="loaded",R.texture=this.texture)}}},c.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},c.prototype.hasTransition=function(){return this.video&&!this.video.paused},c}(at),At=function(g){function c(b,d,w,L){g.call(this,b,d,w,L),d.coordinates?(!Array.isArray(d.coordinates)||d.coordinates.length!==4||d.coordinates.some(function(R){return!Array.isArray(R)||R.length!==2||R.some(function(G){return typeof G!="number"})}))&&this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'missing required property "coordinates"'))),d.animate&&typeof d.animate!="boolean"&&this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'optional "animate" property must be a boolean value'))),d.canvas?typeof d.canvas!="string"&&!(d.canvas instanceof a.window.HTMLCanvasElement)&&this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'missing required property "canvas"'))),this.options=d,this.animate=d.animate!==void 0?d.animate:!0}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof a.window.HTMLCanvasElement?this.options.canvas:a.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new a.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},c.prototype.getCanvas=function(){return this.canvas},c.prototype.onAdd=function(d){this.map=d,this.load(),this.canvas&&this.animate&&this.play()},c.prototype.onRemove=function(){this.pause()},c.prototype.prepare=function(){var d=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,d=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,d=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var w=this.map.painter.context,L=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,st.members)),this.boundsSegments||(this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(d||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new a.Texture(w,this.canvas,L.RGBA,{premultiply:!0});for(var R in this.tiles){var G=this.tiles[R];G.state!=="loaded"&&(G.state="loaded",G.texture=this.texture)}}},c.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},c.prototype.hasTransition=function(){return this._playing},c.prototype._hasInvalidDimensions=function(){for(var d=0,w=[this.canvas.width,this.canvas.height];dthis.max){var G=this._getAndRemoveByKey(this.order[0]);G&&this.onRemove(G)}return this},It.prototype.has=function(c){return c.wrapped().key in this.data},It.prototype.getAndRemove=function(c){return this.has(c)?this._getAndRemoveByKey(c.wrapped().key):null},It.prototype._getAndRemoveByKey=function(c){var b=this.data[c].shift();return b.timeout&&clearTimeout(b.timeout),this.data[c].length===0&&delete this.data[c],this.order.splice(this.order.indexOf(c),1),b.value},It.prototype.getByKey=function(c){var b=this.data[c];return b?b[0].value:null},It.prototype.get=function(c){if(!this.has(c))return null;var b=this.data[c.wrapped().key][0];return b.value},It.prototype.remove=function(c,b){if(!this.has(c))return this;var d=c.wrapped().key,w=b===void 0?0:this.data[d].indexOf(b),L=this.data[d][w];return this.data[d].splice(w,1),L.timeout&&clearTimeout(L.timeout),this.data[d].length===0&&delete this.data[d],this.onRemove(L.value),this.order.splice(this.order.indexOf(d),1),this},It.prototype.setMaxSize=function(c){for(this.max=c;this.order.length>this.max;){var b=this._getAndRemoveByKey(this.order[0]);b&&this.onRemove(b)}return this},It.prototype.filter=function(c){var b=[];for(var d in this.data)for(var w=0,L=this.data[d];w1||(Math.abs(be)>1&&(Math.abs(be+Re)===1?be+=Re:Math.abs(be-Re)===1&&(be-=Re)),!(!ue.dem||!re.dem)&&(re.dem.backfillBorder(ue.dem,be,xe),re.neighboringTiles&&re.neighboringTiles[Ze]&&(re.neighboringTiles[Ze].backfilled=!0)))}},c.prototype.getTile=function(d){return this.getTileByID(d.key)},c.prototype.getTileByID=function(d){return this._tiles[d]},c.prototype._retainLoadedChildren=function(d,w,L,R){for(var G in this._tiles){var K=this._tiles[G];if(!(R[G]||!K.hasData()||K.tileID.overscaledZ<=w||K.tileID.overscaledZ>L)){for(var re=K.tileID;K&&K.tileID.overscaledZ>w+1;){var ue=K.tileID.scaledTo(K.tileID.overscaledZ-1);K=this._tiles[ue.key],K&&K.hasData()&&(re=ue)}for(var be=re;be.overscaledZ>w;)if(be=be.scaledTo(be.overscaledZ-1),d[be.key]){R[re.key]=re;break}}}},c.prototype.findLoadedParent=function(d,w){if(d.key in this._loadedParentTiles){var L=this._loadedParentTiles[d.key];return L&&L.tileID.overscaledZ>=w?L:null}for(var R=d.overscaledZ-1;R>=w;R--){var G=d.scaledTo(R),K=this._getLoadedTile(G);if(K)return K}},c.prototype._getLoadedTile=function(d){var w=this._tiles[d.key];if(w&&w.hasData())return w;var L=this._cache.getByKey(d.wrapped().key);return L},c.prototype.updateCacheSize=function(d){var w=Math.ceil(d.width/this._source.tileSize)+1,L=Math.ceil(d.height/this._source.tileSize)+1,R=w*L,G=5,K=Math.floor(R*G),re=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,K):K;this._cache.setMaxSize(re)},c.prototype.handleWrapJump=function(d){var w=this._prevLng===void 0?d:this._prevLng,L=d-w,R=L/360,G=Math.round(R);if(this._prevLng=d,G){var K={};for(var re in this._tiles){var ue=this._tiles[re];ue.tileID=ue.tileID.unwrapTo(ue.tileID.wrap+G),K[ue.tileID.key]=ue}this._tiles=K;for(var be in this._timers)clearTimeout(this._timers[be]),delete this._timers[be];for(var xe in this._tiles){var Re=this._tiles[xe];this._setTileReloadTimer(xe,Re)}}},c.prototype.update=function(d){var w=this;if(this.transform=d,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(d),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var L;this.used?this._source.tileID?L=d.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(_r){return new a.OverscaledTileID(_r.canonical.z,_r.wrap,_r.canonical.z,_r.canonical.x,_r.canonical.y)}):(L=d.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(L=L.filter(function(_r){return w._source.hasTile(_r)}))):L=[];var R=d.coveringZoomLevel(this._source),G=Math.max(R-c.maxOverzooming,this._source.minzoom),K=Math.max(R+c.maxUnderzooming,this._source.minzoom),re=this._updateRetainedTiles(L,R);if(yt(this._source.type)){for(var ue={},be={},xe=Object.keys(re),Re=0,Ze=xe;Rethis._source.maxzoom){var ht=Oe.children(this._source.maxzoom)[0],Pt=this.getTile(ht);if(Pt&&Pt.hasData()){L[ht.key]=ht;continue}}else{var Nt=Oe.children(this._source.maxzoom);if(L[Nt[0].key]&&L[Nt[1].key]&&L[Nt[2].key]&&L[Nt[3].key])continue}for(var $t=Xe.wasRequested(),ar=Oe.overscaledZ-1;ar>=G;--ar){var Wt=Oe.scaledTo(ar);if(R[Wt.key]||(R[Wt.key]=!0,Xe=this.getTile(Wt),!Xe&&$t&&(Xe=this._addTile(Wt)),Xe&&(L[Wt.key]=Wt,$t=Xe.wasRequested(),Xe.hasData())))break}}}return L},c.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var d in this._tiles){for(var w=[],L=void 0,R=this._tiles[d].tileID;R.overscaledZ>0;){if(R.key in this._loadedParentTiles){L=this._loadedParentTiles[R.key];break}w.push(R.key);var G=R.scaledTo(R.overscaledZ-1);if(L=this._getLoadedTile(G),L)break;R=G}for(var K=0,re=w;K0)&&(w.hasData()&&w.state!=="reloading"?this._cache.add(w.tileID,w,w.getExpiryTimeout()):(w.aborted=!0,this._abortTile(w),this._unloadTile(w))))},c.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var d in this._tiles)this._removeTile(d);this._cache.reset()},c.prototype.tilesIn=function(d,w,L){var R=this,G=[],K=this.transform;if(!K)return G;for(var re=L?K.getCameraQueryGeometry(d):d,ue=d.map(function(ar){return K.pointCoordinate(ar)}),be=re.map(function(ar){return K.pointCoordinate(ar)}),xe=this.getIds(),Re=1/0,Ze=1/0,Ge=-1/0,Oe=-1/0,Xe=0,ht=be;Xe=0&&Lr[1].y+_r>=0){var Sr=ue.map(function(Fa){return ir.getTilePoint(Fa)}),Xr=be.map(function(Fa){return ir.getTilePoint(Fa)});G.push({tile:Wt,tileID:ir,queryGeometry:Sr,cameraQueryGeometry:Xr,scale:cr})}}},$t=0;$t=a.browser.now())return!0}return!1},c.prototype.setFeatureState=function(d,w,L){d=d||"_geojsonTileLayer",this._state.updateState(d,w,L)},c.prototype.removeFeatureState=function(d,w,L){d=d||"_geojsonTileLayer",this._state.removeFeatureState(d,w,L)},c.prototype.getFeatureState=function(d,w){return d=d||"_geojsonTileLayer",this._state.getState(d,w)},c.prototype.setDependencies=function(d,w,L){var R=this._tiles[d];R&&R.setDependencies(w,L)},c.prototype.reloadTilesForDependencies=function(d,w){for(var L in this._tiles){var R=this._tiles[L];R.hasDependency(d,w)&&this._reloadTile(L,"reloading")}this._cache.filter(function(G){return!G.hasDependency(d,w)})},c}(a.Evented);et.maxOverzooming=10,et.maxUnderzooming=3;function Ve(g,c){var b=Math.abs(g.wrap*2)-+(g.wrap<0),d=Math.abs(c.wrap*2)-+(c.wrap<0);return g.overscaledZ-c.overscaledZ||d-b||c.canonical.y-g.canonical.y||c.canonical.x-g.canonical.x}function yt(g){return g==="raster"||g==="image"||g==="video"}function Dt(){return new a.window.Worker(bn.workerUrl)}var Ft="mapboxgl_preloaded_worker_pool",rr=function(){this.active={}};rr.prototype.acquire=function(c){if(!this.workers)for(this.workers=[];this.workers.length0?(w-R)/G:0;return this.points[L].mult(1-K).add(this.points[b].mult(K))};var Ga=function(c,b,d){var w=this.boxCells=[],L=this.circleCells=[];this.xCellCount=Math.ceil(c/d),this.yCellCount=Math.ceil(b/d);for(var R=0;Rthis.width||w<0||b>this.height)return L?!1:[];var G=[];if(c<=0&&b<=0&&this.width<=d&&this.height<=w){if(L)return!0;for(var K=0;K0:G}},Ga.prototype._queryCircle=function(c,b,d,w,L){var R=c-d,G=c+d,K=b-d,re=b+d;if(G<0||R>this.width||re<0||K>this.height)return w?!1:[];var ue=[],be={hitTest:w,circle:{x:c,y:b,radius:d},seenUids:{box:{},circle:{}}};return this._forEachCell(R,K,G,re,this._queryCellCircle,ue,be,L),w?ue.length>0:ue},Ga.prototype.query=function(c,b,d,w,L){return this._query(c,b,d,w,!1,L)},Ga.prototype.hitTest=function(c,b,d,w,L){return this._query(c,b,d,w,!0,L)},Ga.prototype.hitTestCircle=function(c,b,d,w){return this._queryCircle(c,b,d,!0,w)},Ga.prototype._queryCell=function(c,b,d,w,L,R,G,K){var re=G.seenUids,ue=this.boxCells[L];if(ue!==null)for(var be=this.bboxes,xe=0,Re=ue;xe=be[Ge+0]&&w>=be[Ge+1]&&(!K||K(this.boxKeys[Ze]))){if(G.hitTest)return R.push(!0),!0;R.push({key:this.boxKeys[Ze],x1:be[Ge],y1:be[Ge+1],x2:be[Ge+2],y2:be[Ge+3]})}}}var Oe=this.circleCells[L];if(Oe!==null)for(var Xe=this.circles,ht=0,Pt=Oe;htG*G+K*K},Ga.prototype._circleAndRectCollide=function(c,b,d,w,L,R,G){var K=(R-w)/2,re=Math.abs(c-(w+K));if(re>K+d)return!1;var ue=(G-L)/2,be=Math.abs(b-(L+ue));if(be>ue+d)return!1;if(re<=K||be<=ue)return!0;var xe=re-K,Re=be-ue;return xe*xe+Re*Re<=d*d};function Jn(g,c,b,d,w){var L=a.create();return c?(a.scale(L,L,[1/w,1/w,1]),b||a.rotateZ(L,L,d.angle)):a.multiply(L,d.labelPlaneMatrix,g),L}function hu(g,c,b,d,w){if(c){var L=a.clone(g);return a.scale(L,L,[w,w,1]),b||a.rotateZ(L,L,-d.angle),L}else return d.glCoordMatrix}function Bi(g,c){var b=[g.x,g.y,0,1];Zf(b,b,c);var d=b[3];return{point:new a.Point(b[0]/d,b[1]/d),signedDistanceFromCamera:d}}function dl(g,c){return .5+.5*(g/c)}function Qd(g,c){var b=g[0]/g[3],d=g[1]/g[3],w=b>=-c[0]&&b<=c[0]&&d>=-c[1]&&d<=c[1];return w}function qc(g,c,b,d,w,L,R,G){var K=d?g.textSizeData:g.iconSizeData,re=a.evaluateSizeForZoom(K,b.transform.zoom),ue=[256/b.width*2+1,256/b.height*2+1],be=d?g.text.dynamicLayoutVertexArray:g.icon.dynamicLayoutVertexArray;be.clear();for(var xe=g.lineVertexArray,Re=d?g.text.placedSymbolArray:g.icon.placedSymbolArray,Ze=b.transform.width/b.transform.height,Ge=!1,Oe=0;OeL)return{useVertical:!0}}return(g===a.WritingMode.vertical?c.yb.x)?{needsFlipping:!0}:null}function vv(g,c,b,d,w,L,R,G,K,re,ue,be,xe,Re){var Ze=c/24,Ge=g.lineOffsetX*Ze,Oe=g.lineOffsetY*Ze,Xe;if(g.numGlyphs>1){var ht=g.glyphStartIndex+g.numGlyphs,Pt=g.lineStartIndex,Nt=g.lineStartIndex+g.lineLength,$t=Nc(Ze,G,Ge,Oe,b,ue,be,g,K,L,xe);if(!$t)return{notEnoughRoom:!0};var ar=Bi($t.first.point,R).point,Wt=Bi($t.last.point,R).point;if(d&&!b){var ir=hv(g.writingMode,ar,Wt,Re);if(ir)return ir}Xe=[$t.first];for(var cr=g.glyphStartIndex+1;cr0?Xr.point:vu(be,Sr,_r,1,w),xa=hv(g.writingMode,_r,Fa,Re);if(xa)return xa}var qr=pl(Ze*G.getoffsetX(g.glyphStartIndex),Ge,Oe,b,ue,be,g.segment,g.lineStartIndex,g.lineStartIndex+g.lineLength,K,L,xe);if(!qr)return{notEnoughRoom:!0};Xe=[qr]}for(var Sa=0,ia=Xe;Sa0?1:-1,Ze=0;d&&(Re*=-1,Ze=Math.PI),Re<0&&(Ze+=Math.PI);for(var Ge=Re>0?G+R:G+R+1,Oe=w,Xe=w,ht=0,Pt=0,Nt=Math.abs(xe),$t=[];ht+Pt<=Nt;){if(Ge+=Re,Ge=K)return null;if(Xe=Oe,$t.push(Oe),Oe=be[Ge],Oe===void 0){var ar=new a.Point(re.getx(Ge),re.gety(Ge)),Wt=Bi(ar,ue);if(Wt.signedDistanceFromCamera>0)Oe=be[Ge]=Wt.point;else{var ir=Ge-Re,cr=ht===0?L:new a.Point(re.getx(ir),re.gety(ir));Oe=vu(cr,ar,Xe,Nt-ht+1,ue)}}ht+=Pt,Pt=Xe.dist(Oe)}var _r=(Nt-ht)/Pt,Lr=Oe.sub(Xe),Sr=Lr.mult(_r)._add(Xe);Sr._add(Lr._unit()._perp()._mult(b*Re));var Xr=Ze+Math.atan2(Oe.y-Xe.y,Oe.x-Xe.x);return $t.push(Sr),{point:Sr,angle:Xr,path:$t}}var $d=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Ku(g,c){for(var b=0;b=1;Za--)ia.push(qr.path[Za]);for(var Va=1;Va0){for(var na=ia[0].clone(),Oa=ia[0].clone(),en=1;en=Xr.x&&Oa.x<=Fa.x&&na.y>=Xr.y&&Oa.y<=Fa.y?mi=[ia]:Oa.xFa.x||Oa.yFa.y?mi=[]:mi=a.clipLine([ia],Xr.x,Xr.y,Fa.x,Fa.y)}for(var In=0,Ls=mi;In=this.screenRightBoundary||wthis.screenBottomBoundary},Ho.prototype.isInsideGrid=function(c,b,d,w){return d>=0&&c=0&&b0){var Nt;return this.prevPlacement&&this.prevPlacement.variableOffsets[xe.crossTileID]&&this.prevPlacement.placements[xe.crossTileID]&&this.prevPlacement.placements[xe.crossTileID].text&&(Nt=this.prevPlacement.variableOffsets[xe.crossTileID].anchor),this.variableOffsets[xe.crossTileID]={textOffset:Oe,width:d,height:w,anchor:c,textBoxScale:L,prevAnchor:Nt},this.markUsedJustification(Re,c,xe,Ze),Re.allowVerticalPlacement&&(this.markUsedOrientation(Re,Ze,xe),this.placedOrientations[xe.crossTileID]=Ze),{shift:Xe,placedGlyphBoxes:ht}}},oo.prototype.placeLayerBucketPart=function(c,b,d){var w=this,L=c.parameters,R=L.bucket,G=L.layout,K=L.posMatrix,re=L.textLabelPlaneMatrix,ue=L.labelToScreenMatrix,be=L.textPixelRatio,xe=L.holdingForFade,Re=L.collisionBoxArray,Ze=L.partiallyEvaluatedTextSize,Ge=L.collisionGroup,Oe=G.get("text-optional"),Xe=G.get("icon-optional"),ht=G.get("text-allow-overlap"),Pt=G.get("icon-allow-overlap"),Nt=G.get("text-rotation-alignment")==="map",$t=G.get("text-pitch-alignment")==="map",ar=G.get("icon-text-fit")!=="none",Wt=G.get("symbol-z-order")==="viewport-y",ir=ht&&(Pt||!R.hasIconData()||Xe),cr=Pt&&(ht||!R.hasTextData()||Oe);!R.collisionArrays&&Re&&R.deserializeCollisionBoxes(Re);var _r=function(qr,Sa){if(!b[qr.crossTileID]){if(xe){w.placements[qr.crossTileID]=new du(!1,!1,!1);return}var ia=!1,Za=!1,Va=!0,Ai=null,Da={box:null,offscreen:null},mi={box:null,offscreen:null},na=null,Oa=null,en=null,In=0,Ls=0,Ds=0;Sa.textFeatureIndex?In=Sa.textFeatureIndex:qr.useRuntimeCollisionCircles&&(In=qr.featureIndex),Sa.verticalTextFeatureIndex&&(Ls=Sa.verticalTextFeatureIndex);var $s=Sa.textBox;if($s){var Bl=function(sn){var Qo=a.WritingMode.horizontal;if(R.allowVerticalPlacement&&!sn&&w.prevPlacement){var $o=w.prevPlacement.placedOrientations[qr.crossTileID];$o&&(w.placedOrientations[qr.crossTileID]=$o,Qo=$o,w.markUsedOrientation(R,Qo,qr))}return Qo},oc=function(sn,Qo){if(R.allowVerticalPlacement&&qr.numVerticalGlyphVertices>0&&Sa.verticalTextBox)for(var $o=0,Vp=R.writingModes;$o0&&(Ko=Ko.filter(function(sn){return sn!==Po.anchor}),Ko.unshift(Po.anchor))}var el=function(sn,Qo,$o){for(var Vp=sn.x2-sn.x1,oy=sn.y2-sn.y1,l3=qr.textBoxScale,u3=ar&&!Pt?Qo:null,Xv={box:[],offscreen:!1},f3=ht?Ko.length*2:Ko.length,Hp=0;Hp=Ko.length,sy=w.attemptAnchorPlacement(c3,sn,Vp,oy,l3,Nt,$t,be,K,Ge,h3,qr,R,$o,u3);if(sy&&(Xv=sy.placedGlyphBoxes,Xv&&Xv.box&&Xv.box.length)){ia=!0,Ai=sy.shift;break}}return Xv},ku=function(){return el($s,Sa.iconBox,a.WritingMode.horizontal)},tl=function(){var sn=Sa.verticalTextBox,Qo=Da&&Da.box&&Da.box.length;return R.allowVerticalPlacement&&!Qo&&qr.numVerticalGlyphVertices>0&&sn?el(sn,Sa.verticalIconBox,a.WritingMode.vertical):{box:null,offscreen:null}};oc(ku,tl),Da&&(ia=Da.box,Va=Da.offscreen);var qp=Bl(Da&&Da.box);if(!ia&&w.prevPlacement){var ch=w.prevPlacement.variableOffsets[qr.crossTileID];ch&&(w.variableOffsets[qr.crossTileID]=ch,w.markUsedJustification(R,ch.anchor,qr,qp))}}else{var Ol=function(sn,Qo){var $o=w.collisionIndex.placeCollisionBox(sn,ht,be,K,Ge.predicate);return $o&&$o.box&&$o.box.length&&(w.markUsedOrientation(R,Qo,qr),w.placedOrientations[qr.crossTileID]=Qo),$o},Do=function(){return Ol($s,a.WritingMode.horizontal)},Ul=function(){var sn=Sa.verticalTextBox;return R.allowVerticalPlacement&&qr.numVerticalGlyphVertices>0&&sn?Ol(sn,a.WritingMode.vertical):{box:null,offscreen:null}};oc(Do,Ul),Bl(Da&&Da.box&&Da.box.length)}}if(na=Da,ia=na&&na.box&&na.box.length>0,Va=na&&na.offscreen,qr.useRuntimeCollisionCircles){var Vn=R.text.placedSymbolArray.get(qr.centerJustifiedTextSymbolIndex),Np=a.evaluateSizeForFeature(R.textSizeData,Ze,Vn),Wv=G.get("text-padding"),xo=qr.collisionCircleDiameter;Oa=w.collisionIndex.placeCollisionCircles(ht,Vn,R.lineVertexArray,R.glyphOffsetArray,Np,K,re,ue,d,$t,Ge.predicate,xo,Wv),ia=ht||Oa.circles.length>0&&!Oa.collisionDetected,Va=Va&&Oa.offscreen}if(Sa.iconFeatureIndex&&(Ds=Sa.iconFeatureIndex),Sa.iconBox){var hh=function(sn){var Qo=ar&&Ai?mv(sn,Ai.x,Ai.y,Nt,$t,w.transform.angle):sn;return w.collisionIndex.placeCollisionBox(Qo,Pt,be,K,Ge.predicate)};mi&&mi.box&&mi.box.length&&Sa.verticalIconBox?(en=hh(Sa.verticalIconBox),Za=en.box.length>0):(en=hh(Sa.iconBox),Za=en.box.length>0),Va=Va&&en.offscreen}var Bp=Oe||qr.numHorizontalGlyphVertices===0&&qr.numVerticalGlyphVertices===0,Op=Xe||qr.numIconVertices===0;if(!Bp&&!Op?Za=ia=Za&&ia:Op?Bp||(Za=Za&&ia):ia=Za&&ia,ia&&na&&na.box&&(mi&&mi.box&&Ls?w.collisionIndex.insertCollisionBox(na.box,G.get("text-ignore-placement"),R.bucketInstanceId,Ls,Ge.ID):w.collisionIndex.insertCollisionBox(na.box,G.get("text-ignore-placement"),R.bucketInstanceId,In,Ge.ID)),Za&&en&&w.collisionIndex.insertCollisionBox(en.box,G.get("icon-ignore-placement"),R.bucketInstanceId,Ds,Ge.ID),Oa&&(ia&&w.collisionIndex.insertCollisionCircles(Oa.circles,G.get("text-ignore-placement"),R.bucketInstanceId,In,Ge.ID),d)){var Up=R.bucketInstanceId,vh=w.collisionCircleArrays[Up];vh===void 0&&(vh=w.collisionCircleArrays[Up]=new ep);for(var dh=0;dh=0;--Sr){var Xr=Lr[Sr];_r(R.symbolInstances.get(Xr),R.collisionArrays[Xr])}else for(var Fa=c.symbolInstanceStart;Fa=0&&(R>=0&&ue!==R?c.text.placedSymbolArray.get(ue).crossTileID=0:c.text.placedSymbolArray.get(ue).crossTileID=d.crossTileID)}},oo.prototype.markUsedOrientation=function(c,b,d){for(var w=b===a.WritingMode.horizontal||b===a.WritingMode.horizontalOnly?b:0,L=b===a.WritingMode.vertical?b:0,R=[d.leftJustifiedTextSymbolIndex,d.centerJustifiedTextSymbolIndex,d.rightJustifiedTextSymbolIndex],G=0,K=R;G0||$t>0,_r=Pt.numIconVertices>0,Lr=w.placedOrientations[Pt.crossTileID],Sr=Lr===a.WritingMode.vertical,Xr=Lr===a.WritingMode.horizontal||Lr===a.WritingMode.horizontalOnly;if(cr){var Fa=ef(ir.text),xa=Sr?Cr:Fa;Ze(c.text,Nt,xa);var qr=Xr?Cr:Fa;Ze(c.text,$t,qr);var Sa=ir.text.isHidden();[Pt.rightJustifiedTextSymbolIndex,Pt.centerJustifiedTextSymbolIndex,Pt.leftJustifiedTextSymbolIndex].forEach(function(Ds){Ds>=0&&(c.text.placedSymbolArray.get(Ds).hidden=Sa||Sr?1:0)}),Pt.verticalPlacedTextSymbolIndex>=0&&(c.text.placedSymbolArray.get(Pt.verticalPlacedTextSymbolIndex).hidden=Sa||Xr?1:0);var ia=w.variableOffsets[Pt.crossTileID];ia&&w.markUsedJustification(c,ia.anchor,Pt,Lr);var Za=w.placedOrientations[Pt.crossTileID];Za&&(w.markUsedJustification(c,"left",Pt,Za),w.markUsedOrientation(c,Za,Pt))}if(_r){var Va=ef(ir.icon),Ai=!(xe&&Pt.verticalPlacedIconSymbolIndex&&Sr);if(Pt.placedIconSymbolIndex>=0){var Da=Ai?Va:Cr;Ze(c.icon,Pt.numIconVertices,Da),c.icon.placedSymbolArray.get(Pt.placedIconSymbolIndex).hidden=ir.icon.isHidden()}if(Pt.verticalPlacedIconSymbolIndex>=0){var mi=Ai?Cr:Va;Ze(c.icon,Pt.numVerticalIconVertices,mi),c.icon.placedSymbolArray.get(Pt.verticalPlacedIconSymbolIndex).hidden=ir.icon.isHidden()}}if(c.hasIconCollisionBoxData()||c.hasTextCollisionBoxData()){var na=c.collisionArrays[ht];if(na){var Oa=new a.Point(0,0);if(na.textBox||na.verticalTextBox){var en=!0;if(re){var In=w.variableOffsets[ar];In?(Oa=pv(In.anchor,In.width,In.height,In.textOffset,In.textBoxScale),ue&&Oa._rotate(be?w.transform.angle:-w.transform.angle)):en=!1}na.textBox&&Jt(c.textCollisionBox.collisionVertexArray,ir.text.placed,!en||Sr,Oa.x,Oa.y),na.verticalTextBox&&Jt(c.textCollisionBox.collisionVertexArray,ir.text.placed,!en||Xr,Oa.x,Oa.y)}var Ls=!!(!Xr&&na.verticalIconBox);na.iconBox&&Jt(c.iconCollisionBox.collisionVertexArray,ir.icon.placed,Ls,xe?Oa.x:0,xe?Oa.y:0),na.verticalIconBox&&Jt(c.iconCollisionBox.collisionVertexArray,ir.icon.placed,!Ls,xe?Oa.x:0,xe?Oa.y:0)}}},Oe=0;Oec},oo.prototype.setStale=function(){this.stale=!0};function Jt(g,c,b,d,w){g.emplaceBack(c?1:0,b?1:0,d||0,w||0),g.emplaceBack(c?1:0,b?1:0,d||0,w||0),g.emplaceBack(c?1:0,b?1:0,d||0,w||0),g.emplaceBack(c?1:0,b?1:0,d||0,w||0)}var Or=Math.pow(2,25),tp=Math.pow(2,24),pu=Math.pow(2,17),an=Math.pow(2,16),yl=Math.pow(2,9),xs=Math.pow(2,8),$u=Math.pow(2,1);function ef(g){if(g.opacity===0&&!g.placed)return 0;if(g.opacity===1&&g.placed)return 4294967295;var c=g.placed?1:0,b=Math.floor(g.opacity*127);return b*Or+c*tp+b*pu+c*an+b*yl+c*xs+b*$u+c}var Cr=0,wa=function(c){this._sortAcrossTiles=c.layout.get("symbol-z-order")!=="viewport-y"&&c.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};wa.prototype.continuePlacement=function(c,b,d,w,L){for(var R=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var G=c[this._currentPlacementIndex],K=b[G],re=this.placement.collisionIndex.transform.zoom;if(K.type==="symbol"&&(!K.minzoom||K.minzoom<=re)&&(!K.maxzoom||K.maxzoom>re)){this._inProgressLayer||(this._inProgressLayer=new wa(K));var ue=this._inProgressLayer.continuePlacement(d[K.source],this.placement,this._showCollisionBoxes,K,R);if(ue)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Ta.prototype.commit=function(c){return this.placement.commit(c),this.placement};var bs=512/a.EXTENT/2,gl=function(c,b,d){this.tileID=c,this.indexedSymbolInstances={},this.bucketInstanceId=d;for(var w=0;wc.overscaledZ)for(var re in K){var ue=K[re];ue.tileID.isChildOf(c)&&ue.findMatches(b.symbolInstances,c,R)}else{var be=c.scaledTo(Number(G)),xe=K[be.key];xe&&xe.findMatches(b.symbolInstances,c,R)}}for(var Re=0;Re0)throw new Error("Unimplemented: "+R.map(function(G){return G.command}).join(", ")+".");return L.forEach(function(G){G.command!=="setTransition"&&w[G.command].apply(w,G.args)}),this.stylesheet=d,!0},c.prototype.addImage=function(d,w){if(this.getImage(d))return this.fire(new a.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(d,w),this._afterImageUpdated(d)},c.prototype.updateImage=function(d,w){this.imageManager.updateImage(d,w)},c.prototype.getImage=function(d){return this.imageManager.getImage(d)},c.prototype.removeImage=function(d){if(!this.getImage(d))return this.fire(new a.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(d),this._afterImageUpdated(d)},c.prototype._afterImageUpdated=function(d){this._availableImages=this.imageManager.listImages(),this._changedImages[d]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new a.Event("data",{dataType:"style"}))},c.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},c.prototype.addSource=function(d,w,L){var R=this;if(L===void 0&&(L={}),this._checkLoaded(),this.sourceCaches[d]!==void 0)throw new Error("There is already a source with this ID");if(!w.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(w).join(", ")+".");var G=["vector","raster","geojson","video","image"],K=G.indexOf(w.type)>=0;if(!(K&&this._validate(a.validateStyle.source,"sources."+d,w,null,L))){this.map&&this.map._collectResourceTiming&&(w.collectResourceTiming=!0);var re=this.sourceCaches[d]=new et(d,w,this.dispatcher);re.style=this,re.setEventedParent(this,function(){return{isSourceLoaded:R.loaded(),source:re.serialize(),sourceId:d}}),re.onAdd(this.map),this._changed=!0}},c.prototype.removeSource=function(d){if(this._checkLoaded(),this.sourceCaches[d]===void 0)throw new Error("There is no source with this ID");for(var w in this._layers)if(this._layers[w].source===d)return this.fire(new a.ErrorEvent(new Error('Source "'+d+'" cannot be removed while layer "'+w+'" is using it.')));var L=this.sourceCaches[d];delete this.sourceCaches[d],delete this._updatedSources[d],L.fire(new a.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:d})),L.setEventedParent(null),L.clearTiles(),L.onRemove&&L.onRemove(this.map),this._changed=!0},c.prototype.setGeoJSONSourceData=function(d,w){this._checkLoaded();var L=this.sourceCaches[d].getSource();L.setData(w),this._changed=!0},c.prototype.getSource=function(d){return this.sourceCaches[d]&&this.sourceCaches[d].getSource()},c.prototype.addLayer=function(d,w,L){L===void 0&&(L={}),this._checkLoaded();var R=d.id;if(this.getLayer(R)){this.fire(new a.ErrorEvent(new Error('Layer with id "'+R+'" already exists on this map')));return}var G;if(d.type==="custom"){if(us(this,a.validateCustomStyleLayer(d)))return;G=a.createStyleLayer(d)}else{if(typeof d.source=="object"&&(this.addSource(R,d.source),d=a.clone$1(d),d=a.extend(d,{source:R})),this._validate(a.validateStyle.layer,"layers."+R,d,{arrayIndex:-1},L))return;G=a.createStyleLayer(d),this._validateLayer(G),G.setEventedParent(this,{layer:{id:R}}),this._serializedLayers[G.id]=G.serialize()}var K=w?this._order.indexOf(w):this._order.length;if(w&&K===-1){this.fire(new a.ErrorEvent(new Error('Layer with id "'+w+'" does not exist on this map.')));return}if(this._order.splice(K,0,R),this._layerOrderChanged=!0,this._layers[R]=G,this._removedLayers[R]&&G.source&&G.type!=="custom"){var re=this._removedLayers[R];delete this._removedLayers[R],re.type!==G.type?this._updatedSources[G.source]="clear":(this._updatedSources[G.source]="reload",this.sourceCaches[G.source].pause())}this._updateLayer(G),G.onAdd&&G.onAdd(this.map)},c.prototype.moveLayer=function(d,w){this._checkLoaded(),this._changed=!0;var L=this._layers[d];if(!L){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be moved.")));return}if(d!==w){var R=this._order.indexOf(d);this._order.splice(R,1);var G=w?this._order.indexOf(w):this._order.length;if(w&&G===-1){this.fire(new a.ErrorEvent(new Error('Layer with id "'+w+'" does not exist on this map.')));return}this._order.splice(G,0,d),this._layerOrderChanged=!0}},c.prototype.removeLayer=function(d){this._checkLoaded();var w=this._layers[d];if(!w){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be removed.")));return}w.setEventedParent(null);var L=this._order.indexOf(d);this._order.splice(L,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[d]=w,delete this._layers[d],delete this._serializedLayers[d],delete this._updatedLayers[d],delete this._updatedPaintProps[d],w.onRemove&&w.onRemove(this.map)},c.prototype.getLayer=function(d){return this._layers[d]},c.prototype.hasLayer=function(d){return d in this._layers},c.prototype.setLayerZoomRange=function(d,w,L){this._checkLoaded();var R=this.getLayer(d);if(!R){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot have zoom extent.")));return}R.minzoom===w&&R.maxzoom===L||(w!=null&&(R.minzoom=w),L!=null&&(R.maxzoom=L),this._updateLayer(R))},c.prototype.setFilter=function(d,w,L){L===void 0&&(L={}),this._checkLoaded();var R=this.getLayer(d);if(!R){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be filtered.")));return}if(!a.deepEqual(R.filter,w)){if(w==null){R.filter=void 0,this._updateLayer(R);return}this._validate(a.validateStyle.filter,"layers."+R.id+".filter",w,null,L)||(R.filter=a.clone$1(w),this._updateLayer(R))}},c.prototype.getFilter=function(d){return a.clone$1(this.getLayer(d).filter)},c.prototype.setLayoutProperty=function(d,w,L,R){R===void 0&&(R={}),this._checkLoaded();var G=this.getLayer(d);if(!G){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be styled.")));return}a.deepEqual(G.getLayoutProperty(w),L)||(G.setLayoutProperty(w,L,R),this._updateLayer(G))},c.prototype.getLayoutProperty=function(d,w){var L=this.getLayer(d);if(!L){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style.")));return}return L.getLayoutProperty(w)},c.prototype.setPaintProperty=function(d,w,L,R){R===void 0&&(R={}),this._checkLoaded();var G=this.getLayer(d);if(!G){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be styled.")));return}if(!a.deepEqual(G.getPaintProperty(w),L)){var K=G.setPaintProperty(w,L,R);K&&this._updateLayer(G),this._changed=!0,this._updatedPaintProps[d]=!0}},c.prototype.getPaintProperty=function(d,w){return this.getLayer(d).getPaintProperty(w)},c.prototype.setFeatureState=function(d,w){this._checkLoaded();var L=d.source,R=d.sourceLayer,G=this.sourceCaches[L];if(G===void 0){this.fire(new a.ErrorEvent(new Error("The source '"+L+"' does not exist in the map's style.")));return}var K=G.getSource().type;if(K==="geojson"&&R){this.fire(new a.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(K==="vector"&&!R){this.fire(new a.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}d.id===void 0&&this.fire(new a.ErrorEvent(new Error("The feature id parameter must be provided."))),G.setFeatureState(R,d.id,w)},c.prototype.removeFeatureState=function(d,w){this._checkLoaded();var L=d.source,R=this.sourceCaches[L];if(R===void 0){this.fire(new a.ErrorEvent(new Error("The source '"+L+"' does not exist in the map's style.")));return}var G=R.getSource().type,K=G==="vector"?d.sourceLayer:void 0;if(G==="vector"&&!K){this.fire(new a.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(w&&typeof d.id!="string"&&typeof d.id!="number"){this.fire(new a.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}R.removeFeatureState(K,d.id,w)},c.prototype.getFeatureState=function(d){this._checkLoaded();var w=d.source,L=d.sourceLayer,R=this.sourceCaches[w];if(R===void 0){this.fire(new a.ErrorEvent(new Error("The source '"+w+"' does not exist in the map's style.")));return}var G=R.getSource().type;if(G==="vector"&&!L){this.fire(new a.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return d.id===void 0&&this.fire(new a.ErrorEvent(new Error("The feature id parameter must be provided."))),R.getFeatureState(L,d.id)},c.prototype.getTransition=function(){return a.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},c.prototype.serialize=function(){return a.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:a.mapObject(this.sourceCaches,function(d){return d.serialize()}),layers:this._serializeLayers(this._order)},function(d){return d!==void 0})},c.prototype._updateLayer=function(d){this._updatedLayers[d.id]=!0,d.source&&!this._updatedSources[d.source]&&this.sourceCaches[d.source].getSource().type!=="raster"&&(this._updatedSources[d.source]="reload",this.sourceCaches[d.source].pause()),this._changed=!0},c.prototype._flattenAndSortRenderedFeatures=function(d){for(var w=this,L=function(Xr){return w._layers[Xr].type==="fill-extrusion"},R={},G=[],K=this._order.length-1;K>=0;K--){var re=this._order[K];if(L(re)){R[re]=K;for(var ue=0,be=d;ue=0;ht--){var Pt=this._order[ht];if(L(Pt))for(var Nt=G.length-1;Nt>=0;Nt--){var $t=G[Nt].feature;if(R[$t.layer.id] .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}});var o1=me((lbe,GV)=>{"use strict";var UV=Bt(),VV=Oa().defaultLine,Uve=Mb().attributes,Vve=qo(),Hve=kc().textposition,Gve=il().overrideAll,Zve=Ri().templatedArray,iA=zc(),HV=Vve({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});HV.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var Yve=GV.exports=Gve({_arrayAttrRegexps:[UV.counterRegex("mapbox",".layers",!0)],domain:Uve({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:iA.styleValuesMapbox.concat(iA.styleValuesNonMapbox),dflt:iA.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:Zve("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:VV},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:VV}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:HV,textposition:UV.extendFlat({},Hve,{arrayOk:!1})}})},"plot","from-root");Yve.uirevision={valType:"any",editType:"none"}});var Db=me((ube,WV)=>{"use strict";var Wve=nl().hovertemplateAttrs,Xve=nl().texttemplateAttrs,jve=px(),s1=aA(),gm=kc(),ZV=o1(),Jve=ms(),Kve=xc(),Hd=mn().extendFlat,Qve=il().overrideAll,$ve=o1(),YV=s1.line,_m=s1.marker;WV.exports=Qve({lon:s1.lon,lat:s1.lat,cluster:{enabled:{valType:"boolean"},maxzoom:Hd({},$ve.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:Hd({},_m.opacity,{dflt:1})},mode:Hd({},gm.mode,{dflt:"markers"}),text:Hd({},gm.text,{}),texttemplate:Xve({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:Hd({},gm.hovertext,{}),line:{color:YV.color,width:YV.width},connectgaps:gm.connectgaps,marker:Hd({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:_m.opacity,size:_m.size,sizeref:_m.sizeref,sizemin:_m.sizemin,sizemode:_m.sizemode},Kve("marker")),fill:s1.fill,fillcolor:jve(),textfont:ZV.layers.symbol.textfont,textposition:ZV.layers.symbol.textposition,below:{valType:"string"},selected:{marker:gm.selected.marker},unselected:{marker:gm.unselected.marker},hoverinfo:Hd({},Jve.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:Wve()},"calc","nested")});var nA=me((fbe,XV)=>{"use strict";var ede=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];XV.exports={isSupportedFont:function(e){return ede.indexOf(e)!==-1}}});var KV=me((cbe,JV)=>{"use strict";var l1=Bt(),oA=rs(),tde=P6(),rde=z6(),ade=I6(),ide=R6(),jV=Db(),nde=nA().isSupportedFont;JV.exports=function(t,r,i,a){function s(I,B){return l1.coerce(t,r,jV,I,B)}function l(I,B){return l1.coerce2(t,r,jV,I,B)}var f=ode(t,r,s);if(!f){r.visible=!1;return}if(s("text"),s("texttemplate"),s("hovertext"),s("hovertemplate"),s("mode"),s("below"),oA.hasMarkers(r)){tde(t,r,i,a,s,{noLine:!0,noAngle:!0}),s("marker.allowoverlap"),s("marker.angle");var h=r.marker;h.symbol!=="circle"&&(l1.isArrayOrTypedArray(h.size)&&(h.size=h.size[0]),l1.isArrayOrTypedArray(h.color)&&(h.color=h.color[0]))}oA.hasLines(r)&&(rde(t,r,i,a,s,{noDash:!0}),s("connectgaps"));var v=l("cluster.maxzoom"),m=l("cluster.step"),_=l("cluster.color",r.marker&&r.marker.color||i),T=l("cluster.size"),S=l("cluster.opacity"),C=v!==!1||m!==!1||_!==!1||T!==!1||S!==!1,D=s("cluster.enabled",C);if(D||oA.hasText(r)){var E=a.font.family;ade(t,r,a,s,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:nde(E)?E:"Open Sans Regular",weight:a.font.weight,style:a.font.style,size:a.font.size,color:a.font.color}})}s("fill"),r.fill!=="none"&&ide(t,r,i,s),l1.coerceSelectionMarkerOpacity(r,s)};function ode(e,t,r){var i=r("lon")||[],a=r("lat")||[],s=Math.min(i.length,a.length);return t._length=s,s}});var sA=me((hbe,$V)=>{"use strict";var QV=Xi();$V.exports=function(t,r,i){var a={},s=i[r.subplot]._subplot,l=s.mockAxis,f=t.lonlat;return a.lonLabel=QV.tickText(l,l.c2l(f[0]),!0).text,a.latLabel=QV.tickText(l,l.c2l(f[1]),!0).text,a}});var iH=me((vbe,aH)=>{"use strict";var lA=Da(),eH=Zi().BADNUM,sde=N6(),lde=Ug(),ude=Gx(),fde=Bt().isArrayOrTypedArray,tH=Bt()._;function rH(e){return e&&typeof e=="string"}aH.exports=function(t,r){var i=fde(r.locations),a=i?r.locations.length:r._length,s=new Array(a),l;r.geojson?l=function(T){return rH(T)||lA(T)}:l=rH;for(var f=0;f{"use strict";var cde=Zi().BADNUM;u1.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,i=[],a=[],s=0;s0&&(i.push(a),a=[])}return a.length>0&&i.push(a),i};u1.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};u1.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{"use strict";var nH=Bt();oH.exports=function(t,r){var i=t.split(" "),a=i[0],s=i[1],l=nH.isArrayOrTypedArray(r)?nH.mean(r):r,f=.5+l/100,h=1.5+l/100,v=["",""],m=[0,0];switch(a){case"top":v[0]="top",m[1]=-h;break;case"bottom":v[0]="bottom",m[1]=h;break}switch(s){case"left":v[1]="right",m[0]=-f;break;case"right":v[1]="left",m[0]=f;break}var _;return v[0]&&v[1]?_=v.join("-"):v[0]?_=v[0]:v[1]?_=v[1]:_="center",{anchor:_,offset:m}}});var hH=me((mbe,cH)=>{"use strict";var uH=Da(),ko=Bt(),hde=Zi().BADNUM,Ib=Pb(),sH=L0(),vde=bi(),dde=i5(),Rb=rs(),pde=nA().isSupportedFont,mde=uA(),yde=bc().appendArrayPointValue,gde=co().NEWLINES,_de=co().BR_TAG_ALL;cH.exports=function(t,r){var i=r[0].trace,a=i.visible===!0&&i._length!==0,s=i.fill!=="none",l=Rb.hasLines(i),f=Rb.hasMarkers(i),h=Rb.hasText(i),v=f&&i.marker.symbol==="circle",m=f&&i.marker.symbol!=="circle",_=i.cluster&&i.cluster.enabled,T=zb("fill"),S=zb("line"),C=zb("circle"),D=zb("symbol"),E={fill:T,line:S,circle:C,symbol:D};if(!a)return E;var I;if((s||l)&&(I=Ib.calcTraceToLineCoords(r)),s&&(T.geojson=Ib.makePolygon(I),T.layout.visibility="visible",ko.extendFlat(T.paint,{"fill-color":i.fillcolor})),l&&(S.geojson=Ib.makeLine(I),S.layout.visibility="visible",ko.extendFlat(S.paint,{"line-width":i.line.width,"line-color":i.line.color,"line-opacity":i.opacity})),v){var B=xde(r);C.geojson=B.geojson,C.layout.visibility="visible",_&&(C.filter=["!",["has","point_count"]],E.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":cA(i.cluster.color,i.cluster.step),"circle-radius":cA(i.cluster.size,i.cluster.step),"circle-opacity":cA(i.cluster.opacity,i.cluster.step)}},E.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":lH(i),"text-size":12}}),ko.extendFlat(C.paint,{"circle-color":B.mcc,"circle-radius":B.mrc,"circle-opacity":B.mo})}if(v&&_&&(C.filter=["!",["has","point_count"]]),(m||h)&&(D.geojson=bde(r,t),ko.extendFlat(D.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),m&&(ko.extendFlat(D.layout,{"icon-size":i.marker.size/10}),"angle"in i.marker&&i.marker.angle!=="auto"&&ko.extendFlat(D.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),D.layout["icon-allow-overlap"]=i.marker.allowoverlap,ko.extendFlat(D.paint,{"icon-opacity":i.opacity*i.marker.opacity,"icon-color":i.marker.color})),h)){var q=(i.marker||{}).size,z=mde(i.textposition,q);ko.extendFlat(D.layout,{"text-size":i.textfont.size,"text-anchor":z.anchor,"text-offset":z.offset,"text-font":lH(i)}),ko.extendFlat(D.paint,{"text-color":i.textfont.color,"text-opacity":i.opacity})}return E};function zb(e){return{type:e,geojson:Ib.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function xde(e){var t=e[0].trace,r=t.marker,i=t.selectedpoints,a=ko.isArrayOrTypedArray(r.color),s=ko.isArrayOrTypedArray(r.size),l=ko.isArrayOrTypedArray(r.opacity),f;function h(q){return t.opacity*q}function v(q){return q/2}var m;a&&(sH.hasColorscale(t,"marker")?m=sH.makeColorScaleFuncFromTrace(r):m=ko.identity);var _;s&&(_=dde(t));var T;l&&(T=function(q){var z=uH(q)?+ko.constrain(q,0,1):0;return h(z)});var S=[];for(f=0;f850?f+=" Black":a>750?f+=" Extra Bold":a>650?f+=" Bold":a>550?f+=" Semi Bold":a>450?f+=" Medium":a>350?f+=" Regular":a>250?f+=" Light":a>150?f+=" Extra Light":f+=" Thin"):s.slice(0,2).join(" ")==="Open Sans"?(f="Open Sans",a>750?f+=" Extrabold":a>650?f+=" Bold":a>550?f+=" Semibold":a>350?f+=" Regular":f+=" Light"):s.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(f="Klokantech Noto Sans",s[3]==="CJK"&&(f+=" CJK"),f+=a>500?" Bold":" Regular")),l&&(f+=" Italic"),f==="Open Sans Regular Italic"?f="Open Sans Italic":f==="Open Sans Regular Bold"?f="Open Sans Bold":f==="Open Sans Regular Bold Italic"?f="Open Sans Bold Italic":f==="Klokantech Noto Sans Regular Italic"&&(f="Klokantech Noto Sans Italic"),pde(f)||(f=r);var h=f.split(", ");return h}});var mH=me((ybe,pH)=>{"use strict";var wde=Bt(),vH=hH(),xm=zc().traceLayerPrefix,uu={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function dH(e,t,r,i){this.type="scattermapbox",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=i,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:xm+t+"-fill",line:xm+t+"-line",circle:xm+t+"-circle",symbol:xm+t+"-symbol",cluster:xm+t+"-cluster",clusterCount:xm+t+"-cluster-count"},this.below=null}var f1=dH.prototype;f1.addSource=function(e,t,r){var i={type:"geojson",data:t.geojson};r&&r.enabled&&wde.extendFlat(i,{cluster:!0,clusterMaxZoom:r.maxzoom});var a=this.subplot.map.getSource(this.sourceIds[e]);a?a.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],i)};f1.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};f1.addLayer=function(e,t,r){var i={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(i.filter=t.filter);for(var a=this.layerIds[e],s,l=this.subplot.getMapLayers(),f=0;f=0;O--){var H=z[O];a.removeLayer(v.layerIds[H])}q||a.removeSource(v.sourceIds.circle)}function T(q){for(var z=uu.nonCluster,O=0;O=0;O--){var H=z[O];a.removeLayer(v.layerIds[H]),q||a.removeSource(v.sourceIds[H])}}function C(q){h?_(q):S(q)}function D(q){f?m(q):T(q)}function E(){for(var q=f?uu.cluster:uu.nonCluster,z=0;z=0;i--){var a=r[i];t.removeLayer(this.layerIds[a]),t.removeSource(this.sourceIds[a])}};pH.exports=function(t,r){var i=r[0].trace,a=i.cluster&&i.cluster.enabled,s=i.visible!==!0,l=new dH(t,i.uid,a,s),f=vH(t.gd,r),h=l.below=t.belowLookup["trace-"+i.uid],v,m,_;if(a)for(l.addSource("circle",f.circle,i.cluster),v=0;v{"use strict";var Tde=Rf(),hA=Bt(),Ade=tT(),Mde=hA.fillText,Sde=Zi().BADNUM,kde=zc().traceLayerPrefix;function Cde(e,t,r){var i=e.cd,a=i[0].trace,s=e.xa,l=e.ya,f=e.subplot,h=[],v=kde+a.uid+"-circle",m=a.cluster&&a.cluster.enabled;if(m){var _=f.map.queryRenderedFeatures(null,{layers:[v]});h=_.map(function(W){return W.id})}var T=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),S=T*360,C=t-S;function D(W){var J=W.lonlat;if(J[0]===Sde||m&&h.indexOf(W.i+1)===-1)return 1/0;var te=hA.modHalf(J[0],360),ne=J[1],oe=f.project([te,ne]),fe=oe.x-s.c2p([C,ne]),de=oe.y-l.c2p([te,r]),Me=Math.max(3,W.mrc||0);return Math.max(Math.sqrt(fe*fe+de*de)-Me,1-3/Me)}if(Tde.getClosest(i,D,e),e.index!==!1){var E=i[e.index],I=E.lonlat,B=[hA.modHalf(I[0],360)+S,I[1]],q=s.c2p(B),z=l.c2p(B),O=E.mrc||1;e.x0=q-O,e.x1=q+O,e.y0=z-O,e.y1=z+O;var H={};H[a.subplot]={_subplot:f};var V=a._module.formatLabels(E,a,H);return e.lonLabel=V.lonLabel,e.latLabel=V.latLabel,e.color=Ade(a,E),e.extraText=yH(a,E,i[0].t.labels),e.hovertemplate=a.hovertemplate,[e]}}function yH(e,t,r){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i.split("+"),s=a.indexOf("all")!==-1,l=a.indexOf("lon")!==-1,f=a.indexOf("lat")!==-1,h=t.lonlat,v=[];function m(_){return _+"\xB0"}return s||l&&f?v.push("("+m(h[1])+", "+m(h[0])+")"):l?v.push(r.lon+m(h[0])):f&&v.push(r.lat+m(h[1])),(s||a.indexOf("text")!==-1)&&Mde(t,e,v),v.join("
")}gH.exports={hoverPoints:Cde,getExtraText:yH}});var xH=me((_be,_H)=>{"use strict";_H.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var wH=me((xbe,bH)=>{"use strict";var Ede=Bt(),Lde=rs(),Dde=Zi().BADNUM;bH.exports=function(t,r){var i=t.cd,a=t.xaxis,s=t.yaxis,l=[],f=i[0].trace,h;if(!Lde.hasMarkers(f))return[];if(r===!1)for(h=0;h{(function(e,t){typeof vA=="object"&&typeof dA!="undefined"?dA.exports=t():(e=e||self,e.mapboxgl=t())})(vA,function(){"use strict";var e,t,r;function i(a,s){if(!e)e=s;else if(!t)t=s;else{var l="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",f={};e(f),r=s(f),typeof window!="undefined"&&(r.workerUrl=window.URL.createObjectURL(new Blob([l],{type:"text/javascript"})))}}return i(["exports"],function(a){"use strict";function s(n,o){return o={exports:{}},n(o,o.exports),o.exports}var l="1.13.4",f=h;function h(n,o,u,p){this.cx=3*n,this.bx=3*(u-n)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*o,this.by=3*(p-o)-this.cy,this.ay=1-this.cy-this.by,this.p1x=n,this.p1y=p,this.p2x=u,this.p2y=p}h.prototype.sampleCurveX=function(n){return((this.ax*n+this.bx)*n+this.cx)*n},h.prototype.sampleCurveY=function(n){return((this.ay*n+this.by)*n+this.cy)*n},h.prototype.sampleCurveDerivativeX=function(n){return(3*this.ax*n+2*this.bx)*n+this.cx},h.prototype.solveCurveX=function(n,o){typeof o=="undefined"&&(o=1e-6);var u,p,x,A,k;for(x=n,k=0;k<8;k++){if(A=this.sampleCurveX(x)-n,Math.abs(A)p)return p;for(;uA?u=x:p=x,x=(p-u)*.5+u}return x},h.prototype.solve=function(n,o){return this.sampleCurveY(this.solveCurveX(n,o))};var v=m;function m(n,o){this.x=n,this.y=o}m.prototype={clone:function(){return new m(this.x,this.y)},add:function(n){return this.clone()._add(n)},sub:function(n){return this.clone()._sub(n)},multByPoint:function(n){return this.clone()._multByPoint(n)},divByPoint:function(n){return this.clone()._divByPoint(n)},mult:function(n){return this.clone()._mult(n)},div:function(n){return this.clone()._div(n)},rotate:function(n){return this.clone()._rotate(n)},rotateAround:function(n,o){return this.clone()._rotateAround(n,o)},matMult:function(n){return this.clone()._matMult(n)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(n){return this.x===n.x&&this.y===n.y},dist:function(n){return Math.sqrt(this.distSqr(n))},distSqr:function(n){var o=n.x-this.x,u=n.y-this.y;return o*o+u*u},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(n){return Math.atan2(this.y-n.y,this.x-n.x)},angleWith:function(n){return this.angleWithSep(n.x,n.y)},angleWithSep:function(n,o){return Math.atan2(this.x*o-this.y*n,this.x*n+this.y*o)},_matMult:function(n){var o=n[0]*this.x+n[1]*this.y,u=n[2]*this.x+n[3]*this.y;return this.x=o,this.y=u,this},_add:function(n){return this.x+=n.x,this.y+=n.y,this},_sub:function(n){return this.x-=n.x,this.y-=n.y,this},_mult:function(n){return this.x*=n,this.y*=n,this},_div:function(n){return this.x/=n,this.y/=n,this},_multByPoint:function(n){return this.x*=n.x,this.y*=n.y,this},_divByPoint:function(n){return this.x/=n.x,this.y/=n.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var n=this.y;return this.y=this.x,this.x=-n,this},_rotate:function(n){var o=Math.cos(n),u=Math.sin(n),p=o*this.x-u*this.y,x=u*this.x+o*this.y;return this.x=p,this.y=x,this},_rotateAround:function(n,o){var u=Math.cos(n),p=Math.sin(n),x=o.x+u*(this.x-o.x)-p*(this.y-o.y),A=o.y+p*(this.x-o.x)+u*(this.y-o.y);return this.x=x,this.y=A,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},m.convert=function(n){return n instanceof m?n:Array.isArray(n)?new m(n[0],n[1]):n};var _=typeof self!="undefined"?self:{};function T(n,o){if(Array.isArray(n)){if(!Array.isArray(o)||n.length!==o.length)return!1;for(var u=0;u=1)return 1;var o=n*n,u=o*n;return 4*(n<.5?u:3*(n-o)+u-.75)}function D(n,o,u,p){var x=new f(n,o,u,p);return function(A){return x.solve(A)}}var E=D(.25,.1,.25,1);function I(n,o,u){return Math.min(u,Math.max(o,n))}function B(n,o,u){var p=u-o,x=((n-o)%p+p)%p+o;return x===o?u:x}function q(n,o,u){if(!n.length)return u(null,[]);var p=n.length,x=new Array(n.length),A=null;n.forEach(function(k,F){o(k,function(Y,j){Y&&(A=Y),x[F]=j,--p===0&&u(A,x)})})}function z(n){var o=[];for(var u in n)o.push(n[u]);return o}function O(n,o){var u=[];for(var p in n)p in o||u.push(p);return u}function H(n){for(var o=[],u=arguments.length-1;u-- >0;)o[u]=arguments[u+1];for(var p=0,x=o;p>o/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,n)}return n()}function ne(n){return n<=1?1:Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function oe(n){return n?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(n):!1}function fe(n,o){n.forEach(function(u){o[u]&&(o[u]=o[u].bind(o))})}function de(n,o){return n.indexOf(o,n.length-o.length)!==-1}function Me(n,o,u){var p={};for(var x in n)p[x]=o.call(u||this,n[x],x,n);return p}function Se(n,o,u){var p={};for(var x in n)o.call(u||this,n[x],x,n)&&(p[x]=n[x]);return p}function Ae(n){return Array.isArray(n)?n.map(Ae):typeof n=="object"&&n?Me(n,Ae):n}function we(n,o){for(var u=0;u=0)return!0;return!1}var Te={};function Ce(n){Te[n]||(typeof console!="undefined"&&console.warn(n),Te[n]=!0)}function Le(n,o,u){return(u.y-n.y)*(o.x-n.x)>(o.y-n.y)*(u.x-n.x)}function $e(n){for(var o=0,u=0,p=n.length,x=p-1,A=void 0,k=void 0;u@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,u={};if(n.replace(o,function(x,A,k,F){var Y=k||F;return u[A]=Y?Y.toLowerCase():!0,""}),u["max-age"]){var p=parseInt(u["max-age"],10);isNaN(p)?delete u["max-age"]:u["max-age"]=p}return u}var We=null;function Et(n){if(We==null){var o=n.navigator?n.navigator.userAgent:null;We=!!n.safari||!!(o&&(/\b(iPad|iPhone|iPod)\b/.test(o)||o.match("Safari")&&!o.match("Chrome")))}return We}function nt(n){try{var o=_[n];return o.setItem("_mapbox_test_",1),o.removeItem("_mapbox_test_"),!0}catch(u){return!1}}function vt(n){return _.btoa(encodeURIComponent(n).replace(/%([0-9A-F]{2})/g,function(o,u){return String.fromCharCode(+("0x"+u))}))}function xt(n){return decodeURIComponent(_.atob(n).split("").map(function(o){return"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var pt=_.performance&&_.performance.now?_.performance.now.bind(_.performance):Date.now.bind(Date),ve=_.requestAnimationFrame||_.mozRequestAnimationFrame||_.webkitRequestAnimationFrame||_.msRequestAnimationFrame,ze=_.cancelAnimationFrame||_.mozCancelAnimationFrame||_.webkitCancelAnimationFrame||_.msCancelAnimationFrame,pe,at,yt={now:pt,frame:function(o){var u=ve(o);return{cancel:function(){return ze(u)}}},getImageData:function(o,u){u===void 0&&(u=0);var p=_.document.createElement("canvas"),x=p.getContext("2d");if(!x)throw new Error("failed to create canvas 2d context");return p.width=o.width,p.height=o.height,x.drawImage(o,0,0,o.width,o.height),x.getImageData(-u,-u,o.width+2*u,o.height+2*u)},resolveURL:function(o){return pe||(pe=_.document.createElement("a")),pe.href=o,pe.href},hardwareConcurrency:_.navigator&&_.navigator.hardwareConcurrency||4,get devicePixelRatio(){return _.devicePixelRatio},get prefersReducedMotion(){return _.matchMedia?(at==null&&(at=_.matchMedia("(prefers-reduced-motion: reduce)")),at.matches):!1}},Xe={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Ft={supported:!1,testSupport:Ct},Lt,Tt=!1,It,Gt=!1;_.document&&(It=_.document.createElement("img"),It.onload=function(){Lt&&Mt(Lt),Lt=null,Gt=!0},It.onerror=function(){Tt=!0,Lt=null},It.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function Ct(n){Tt||!It||(Gt?Mt(n):Lt=n)}function Mt(n){var o=n.createTexture();n.bindTexture(n.TEXTURE_2D,o);try{if(n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,It),n.isContextLost())return;Ft.supported=!0}catch(u){}n.deleteTexture(o),Tt=!0}var Ut="01";function Ot(){for(var n="1",o="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",u="",p=0;p<10;p++)u+=o[Math.floor(Math.random()*62)];var x=12*60*60*1e3,A=[n,Ut,u].join(""),k=Date.now()+x;return{token:A,tokenExpiresAt:k}}var Be=function(o,u){this._transformRequestFn=o,this._customAccessToken=u,this._createSkuToken()};Be.prototype._createSkuToken=function(){var o=Ot();this._skuToken=o.token,this._skuTokenExpiresAt=o.tokenExpiresAt},Be.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Be.prototype.transformRequest=function(o,u){return this._transformRequestFn?this._transformRequestFn(o,u)||{url:o}:{url:o}},Be.prototype.normalizeStyleURL=function(o,u){if(!ft(o))return o;var p=qt(o);return p.path="/styles/v1"+p.path,this._makeAPIURL(p,this._customAccessToken||u)},Be.prototype.normalizeGlyphsURL=function(o,u){if(!ft(o))return o;var p=qt(o);return p.path="/fonts/v1"+p.path,this._makeAPIURL(p,this._customAccessToken||u)},Be.prototype.normalizeSourceURL=function(o,u){if(!ft(o))return o;var p=qt(o);return p.path="/v4/"+p.authority+".json",p.params.push("secure"),this._makeAPIURL(p,this._customAccessToken||u)},Be.prototype.normalizeSpriteURL=function(o,u,p,x){var A=qt(o);return ft(o)?(A.path="/styles/v1"+A.path+"/sprite"+u+p,this._makeAPIURL(A,this._customAccessToken||x)):(A.path+=""+u+p,Qt(A))},Be.prototype.normalizeTileURL=function(o,u){if(this._isSkuTokenExpired()&&this._createSkuToken(),o&&!ft(o))return o;var p=qt(o),x=/(\.(png|jpg)\d*)(?=$)/,A=/^.+\/v4\//,k=yt.devicePixelRatio>=2||u===512?"@2x":"",F=Ft.supported?".webp":"$1";p.path=p.path.replace(x,""+k+F),p.path=p.path.replace(A,"/"),p.path="/v4"+p.path;var Y=this._customAccessToken||Oe(p.params)||Xe.ACCESS_TOKEN;return Xe.REQUIRE_ACCESS_TOKEN&&Y&&this._skuToken&&p.params.push("sku="+this._skuToken),this._makeAPIURL(p,Y)},Be.prototype.canonicalizeTileURL=function(o,u){var p="/v4/",x=/\.[\w]+$/,A=qt(o);if(!A.path.match(/(^\/v4\/)/)||!A.path.match(x))return o;var k="mapbox://tiles/";k+=A.path.replace(p,"");var F=A.params;return u&&(F=F.filter(function(Y){return!Y.match(/^access_token=/)})),F.length&&(k+="?"+F.join("&")),k},Be.prototype.canonicalizeTileset=function(o,u){for(var p=u?ft(u):!1,x=[],A=0,k=o.tiles||[];A=0&&o.params.splice(A,1)}if(x.path!=="/"&&(o.path=""+x.path+o.path),!Xe.REQUIRE_ACCESS_TOKEN)return Qt(o);if(u=u||Xe.ACCESS_TOKEN,!u)throw new Error("An API access token is required to use Mapbox GL. "+p);if(u[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+p);return o.params=o.params.filter(function(k){return k.indexOf("access_token")===-1}),o.params.push("access_token="+u),Qt(o)};function ft(n){return n.indexOf("mapbox:")===0}var or=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Cr(n){return or.test(n)}function Sr(n){return n.indexOf("sku=")>0&&Cr(n)}function Oe(n){for(var o=0,u=n;o=1&&_.localStorage.setItem(u,JSON.stringify(this.eventData))}catch(x){Ce("Unable to write to LocalStorage")}},ar.prototype.processRequests=function(o){},ar.prototype.postEvent=function(o,u,p,x){var A=this;if(Xe.EVENTS_URL){var k=qt(Xe.EVENTS_URL);k.params.push("access_token="+(x||Xe.ACCESS_TOKEN||""));var F={event:this.type,created:new Date(o).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:l,skuId:Ut,userId:this.anonId},Y=u?H(F,u):F,j={url:Qt(k),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Y])};this.pendingRequest=He(j,function(Q){A.pendingRequest=null,p(Q),A.saveEventData(),A.processRequests(x)})}},ar.prototype.queueRequest=function(o,u){this.queue.push(o),this.processRequests(u)};var zr=function(n){function o(){n.call(this,"map.load"),this.success={},this.skuToken=""}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.postMapLoadEvent=function(p,x,A,k){this.skuToken=A,(Xe.EVENTS_URL&&k||Xe.ACCESS_TOKEN&&Array.isArray(p)&&p.some(function(F){return ft(F)||Cr(F)}))&&this.queueRequest({id:x,timestamp:Date.now()},k)},o.prototype.processRequests=function(p){var x=this;if(!(this.pendingRequest||this.queue.length===0)){var A=this.queue.shift(),k=A.id,F=A.timestamp;k&&this.success[k]||(this.anonId||this.fetchEventData(),oe(this.anonId)||(this.anonId=te()),this.postEvent(F,{skuToken:this.skuToken},function(Y){Y||k&&(x.success[k]=!0)},p))}},o}(ar),lr=function(n){function o(u){n.call(this,"appUserTurnstile"),this._customAccessToken=u}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.postTurnstileEvent=function(p,x){Xe.EVENTS_URL&&Xe.ACCESS_TOKEN&&Array.isArray(p)&&p.some(function(A){return ft(A)||Cr(A)})&&this.queueRequest(Date.now(),x)},o.prototype.processRequests=function(p){var x=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var A=tr(Xe.ACCESS_TOKEN),k=A?A.u:Xe.ACCESS_TOKEN,F=k!==this.eventData.tokenU;oe(this.anonId)||(this.anonId=te(),F=!0);var Y=this.queue.shift();if(this.eventData.lastSuccess){var j=new Date(this.eventData.lastSuccess),Q=new Date(Y),ie=(Y-this.eventData.lastSuccess)/(24*60*60*1e3);F=F||ie>=1||ie<-1||j.getDate()!==Q.getDate()}else F=!0;if(!F)return this.processRequests();this.postEvent(Y,{"enabled.telemetry":!1},function(ge){ge||(x.eventData.lastSuccess=Y,x.eventData.tokenU=k)},p)}},o}(ar),At=new lr,Fe=At.postTurnstileEvent.bind(At),Ge=new zr,wt=Ge.postMapLoadEvent.bind(Ge),dt="mapbox-tiles",gr=500,xr=50,mr=1e3*60*7,Hr;function pa(){_.caches&&!Hr&&(Hr=_.caches.open(dt))}var Ea;function Ua(n,o){if(Ea===void 0)try{new Response(new ReadableStream),Ea=!0}catch(u){Ea=!1}Ea?o(n.body):n.blob().then(o)}function Ki(n,o,u){if(pa(),!!Hr){var p={status:o.status,statusText:o.statusText,headers:new _.Headers};o.headers.forEach(function(k,F){return p.headers.set(F,k)});var x=bt(o.headers.get("Cache-Control")||"");if(!x["no-store"]){x["max-age"]&&p.headers.set("Expires",new Date(u+x["max-age"]*1e3).toUTCString());var A=new Date(p.headers.get("Expires")).getTime()-u;ADate.now()&&!u["no-cache"]}var $i=1/0;function on(n){$i++,$i>xr&&(n.getActor().send("enforceCacheSizeLimit",gr),$i=0)}function Ei(n){pa(),Hr&&Hr.then(function(o){o.keys().then(function(u){for(var p=0;p=200&&u.status<300||u.status===0)&&u.response!==null){var x=u.response;if(n.type==="json")try{x=JSON.parse(u.response)}catch(A){return o(A)}o(null,x,u.getResponseHeader("Cache-Control"),u.getResponseHeader("Expires"))}else o(new ga(u.statusText,u.status,n.url))},u.send(n.body),{cancel:function(){return u.abort()}}}var Ee=function(n,o){if(!ee(n.url)){if(_.fetch&&_.Request&&_.AbortController&&_.Request.prototype.hasOwnProperty("signal"))return se(n,o);if(it()&&self.worker&&self.worker.actor){var u=!0;return self.worker.actor.send("getResource",n,o,void 0,u)}}return ce(n,o)},Ne=function(n,o){return Ee(H(n,{type:"json"}),o)},rt=function(n,o){return Ee(H(n,{type:"arrayBuffer"}),o)},He=function(n,o){return Ee(H(n,{method:"POST"}),o)};function mt(n){var o=_.document.createElement("a");return o.href=n,o.protocol===_.document.location.protocol&&o.host===_.document.location.host}var Dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function Rt(n,o,u,p){var x=new _.Image,A=_.URL;x.onload=function(){o(null,x),A.revokeObjectURL(x.src),x.onload=null,_.requestAnimationFrame(function(){x.src=Dt})},x.onerror=function(){return o(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var k=new _.Blob([new Uint8Array(n)],{type:"image/png"});x.cacheControl=u,x.expires=p,x.src=n.byteLength?A.createObjectURL(k):Dt}function $t(n,o){var u=new _.Blob([new Uint8Array(n)],{type:"image/png"});_.createImageBitmap(u).then(function(p){o(null,p)}).catch(function(p){o(new Error("Could not load image because of "+p.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var Yt,Tr,Yr=function(){Yt=[],Tr=0};Yr();var Br=function(n,o){if(Ft.supported&&(n.headers||(n.headers={}),n.headers.accept="image/webp,*/*"),Tr>=Xe.MAX_PARALLEL_IMAGE_REQUESTS){var u={requestParameters:n,callback:o,cancelled:!1,cancel:function(){this.cancelled=!0}};return Yt.push(u),u}Tr++;var p=!1,x=function(){if(!p)for(p=!0,Tr--;Yt.length&&Tr0||this._oneTimeListeners&&this._oneTimeListeners[o]&&this._oneTimeListeners[o].length>0||this._eventedParent&&this._eventedParent.listens(o)},dr.prototype.setEventedParent=function(o,u){return this._eventedParent=o,this._eventedParentData=u,this};var ea=8,_a={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},ir={"*":{type:"source"}},Ai=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],Ca={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},si={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},fa={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Dn={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},Co={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},_s={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},Ga={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},Kn=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],hu={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Vi={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},pl={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Qd={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},qc={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Nc={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},hv={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},vv={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},vu={type:"array",value:"*"},ml={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},$d={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},Ku={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},Zf={type:"array",value:"*",minimum:1},en={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},Ho=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],mo={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},yl={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},Go={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},du={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},ep={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},dv={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Qu={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},pv={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},mv={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},oo={"*":{type:"string"}},Wt={$version:ea,$root:_a,sources:ir,source:Ai,source_vector:Ca,source_raster:si,source_raster_dem:fa,source_geojson:Dn,source_video:Co,source_image:_s,layer:Ga,layout:Kn,layout_background:hu,layout_fill:Vi,layout_circle:pl,layout_heatmap:Qd,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:qc,layout_symbol:Nc,layout_raster:hv,layout_hillshade:vv,filter:vu,filter_operator:ml,geometry_type:$d,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:Ku,expression:Zf,light:en,paint:Ho,paint_fill:mo,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:yl,paint_circle:Go,paint_heatmap:du,paint_symbol:ep,paint_raster:dv,paint_hillshade:Qu,paint_background:pv,transition:mv,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:oo},Or=function(o,u,p,x){this.message=(o?o+": ":"")+p,x&&(this.identifier=x),u!=null&&u.__line__&&(this.line=u.__line__)};function tp(n){var o=n.key,u=n.value;return u?[new Or(o,u,"constants have been deprecated as of v8")]:[]}function pu(n){for(var o=[],u=arguments.length-1;u-- >0;)o[u]=arguments[u+1];for(var p=0,x=o;p":n.itemType.kind==="value"?"array":"array<"+o+">"}else return n.kind}var ws=[ef,kr,wa,Ta,bs,us,_l,yo(Ma),xl];function fs(n,o){if(o.kind==="error")return null;if(n.kind==="array"){if(o.kind==="array"&&(o.N===0&&o.itemType.kind==="value"||!fs(n.itemType,o.itemType))&&(typeof n.N!="number"||n.N===o.N))return null}else{if(n.kind===o.kind)return null;if(n.kind==="value")for(var u=0,p=ws;u255?255:j}function x(j){return j<0?0:j>1?1:j}function A(j){return j[j.length-1]==="%"?p(parseFloat(j)/100*255):p(parseInt(j))}function k(j){return j[j.length-1]==="%"?x(parseFloat(j)/100):x(parseFloat(j))}function F(j,Q,ie){return ie<0?ie+=1:ie>1&&(ie-=1),ie*6<1?j+(Q-j)*ie*6:ie*2<1?Q:ie*3<2?j+(Q-j)*(2/3-ie)*6:j}function Y(j){var Q=j.replace(/ /g,"").toLowerCase();if(Q in u)return u[Q].slice();if(Q[0]==="#"){if(Q.length===4){var ie=parseInt(Q.substr(1),16);return ie>=0&&ie<=4095?[(ie&3840)>>4|(ie&3840)>>8,ie&240|(ie&240)>>4,ie&15|(ie&15)<<4,1]:null}else if(Q.length===7){var ie=parseInt(Q.substr(1),16);return ie>=0&&ie<=16777215?[(ie&16711680)>>16,(ie&65280)>>8,ie&255,1]:null}return null}var ge=Q.indexOf("("),he=Q.indexOf(")");if(ge!==-1&&he+1===Q.length){var ke=Q.substr(0,ge),qe=Q.substr(ge+1,he-(ge+1)).split(","),ut=1;switch(ke){case"rgba":if(qe.length!==4)return null;ut=k(qe.pop());case"rgb":return qe.length!==3?null:[A(qe[0]),A(qe[1]),A(qe[2]),ut];case"hsla":if(qe.length!==4)return null;ut=k(qe.pop());case"hsl":if(qe.length!==3)return null;var et=(parseFloat(qe[0])%360+360)%360/360,kt=k(qe[1]),_t=k(qe[2]),St=_t<=.5?_t*(kt+1):_t+kt-_t*kt,zt=_t*2-St;return[p(F(zt,St,et+1/3)*255),p(F(zt,St,et)*255),p(F(zt,St,et-1/3)*255),ut];default:return null}}return null}try{o.parseCSSColor=Y}catch(j){}}),Yf=Mm.parseCSSColor,oi=function(o,u,p,x){x===void 0&&(x=1),this.r=o,this.g=u,this.b=p,this.a=x};oi.parse=function(o){if(o){if(o instanceof oi)return o;if(typeof o=="string"){var u=Yf(o);if(u)return new oi(u[0]/255*u[3],u[1]/255*u[3],u[2]/255*u[3],u[3])}}},oi.prototype.toString=function(){var o=this.toArray(),u=o[0],p=o[1],x=o[2],A=o[3];return"rgba("+Math.round(u)+","+Math.round(p)+","+Math.round(x)+","+A+")"},oi.prototype.toArray=function(){var o=this,u=o.r,p=o.g,x=o.b,A=o.a;return A===0?[0,0,0,0]:[u*255/A,p*255/A,x*255/A,A]},oi.black=new oi(0,0,0,1),oi.white=new oi(1,1,1,1),oi.transparent=new oi(0,0,0,0),oi.red=new oi(1,0,0,1);var Wf=function(o,u,p){o?this.sensitivity=u?"variant":"case":this.sensitivity=u?"accent":"base",this.locale=p,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Wf.prototype.compare=function(o,u){return this.collator.compare(o,u)},Wf.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var yv=function(o,u,p,x,A){this.text=o,this.image=u,this.scale=p,this.fontStack=x,this.textColor=A},xn=function(o){this.sections=o};xn.fromString=function(o){return new xn([new yv(o,null,null,null,null)])},xn.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(o){return o.text.length!==0||o.image&&o.image.name.length!==0})},xn.factory=function(o){return o instanceof xn?o:xn.fromString(o)},xn.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(o){return o.text}).join("")},xn.prototype.serialize=function(){for(var o=["format"],u=0,p=this.sections;u=0&&n<=255&&typeof o=="number"&&o>=0&&o<=255&&typeof u=="number"&&u>=0&&u<=255)){var x=typeof p=="number"?[n,o,u,p]:[n,o,u];return"Invalid rgba value ["+x.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof p=="undefined"||typeof p=="number"&&p>=0&&p<=1?null:"Invalid rgba value ["+[n,o,u,p].join(", ")+"]: 'a' must be between 0 and 1."}function tf(n){if(n===null)return!0;if(typeof n=="string")return!0;if(typeof n=="boolean")return!0;if(typeof n=="number")return!0;if(n instanceof oi)return!0;if(n instanceof Wf)return!0;if(n instanceof xn)return!0;if(n instanceof Pn)return!0;if(Array.isArray(n)){for(var o=0,u=n;o2){var F=o[1];if(typeof F!="string"||!(F in Xf)||F==="object")return u.error('The item type argument of "array" must be one of string, number, boolean',1);k=Xf[F],p++}else k=Ma;var Y;if(o.length>3){if(o[2]!==null&&(typeof o[2]!="number"||o[2]<0||o[2]!==Math.floor(o[2])))return u.error('The length argument to "array" must be a positive integer literal',2);Y=o[2],p++}x=yo(k,Y)}else x=Xf[A];for(var j=[];p1)&&u.push(x)}}return u.concat(this.args.map(function(A){return A.serialize()}))};var Yo=function(o){this.type=us,this.sections=o};Yo.parse=function(o,u){if(o.length<2)return u.error("Expected at least one argument.");var p=o[1];if(!Array.isArray(p)&&typeof p=="object")return u.error("First argument must be an image or text section.");for(var x=[],A=!1,k=1;k<=o.length-1;++k){var F=o[k];if(A&&typeof F=="object"&&!Array.isArray(F)){A=!1;var Y=null;if(F["font-scale"]&&(Y=u.parse(F["font-scale"],1,kr),!Y))return null;var j=null;if(F["text-font"]&&(j=u.parse(F["text-font"],1,yo(wa)),!j))return null;var Q=null;if(F["text-color"]&&(Q=u.parse(F["text-color"],1,bs),!Q))return null;var ie=x[x.length-1];ie.scale=Y,ie.font=j,ie.textColor=Q}else{var ge=u.parse(o[k],1,Ma);if(!ge)return null;var he=ge.type.kind;if(he!=="string"&&he!=="value"&&he!=="null"&&he!=="resolvedImage")return u.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");A=!0,x.push({content:ge,scale:null,font:null,textColor:null})}}return new Yo(x)},Yo.prototype.evaluate=function(o){var u=function(p){var x=p.content.evaluate(o);return ln(x)===xl?new yv("",x,null,null,null):new yv(Eo(x),null,p.scale?p.scale.evaluate(o):null,p.font?p.font.evaluate(o).join(","):null,p.textColor?p.textColor.evaluate(o):null)};return new xn(this.sections.map(u))},Yo.prototype.eachChild=function(o){for(var u=0,p=this.sections;u-1),p},Xs.prototype.eachChild=function(o){o(this.input)},Xs.prototype.outputDefined=function(){return!1},Xs.prototype.serialize=function(){return["image",this.input.serialize()]};var Sm={"to-boolean":Ta,"to-color":bs,"to-number":kr,"to-string":wa},Wo=function(o,u){this.type=o,this.args=u};Wo.parse=function(o,u){if(o.length<2)return u.error("Expected at least one argument.");var p=o[0];if((p==="to-boolean"||p==="to-string")&&o.length!==2)return u.error("Expected one argument.");for(var x=Sm[p],A=[],k=1;k4?p="Invalid rbga value "+JSON.stringify(u)+": expected an array containing either three or four numeric values.":p=rp(u[0],u[1],u[2],u[3]),!p))return new oi(u[0]/255,u[1]/255,u[2]/255,u[3])}throw new vn(p||"Could not parse color from value '"+(typeof u=="string"?u:String(JSON.stringify(u)))+"'")}else if(this.type.kind==="number"){for(var Y=null,j=0,Q=this.args;j=o[2]||n[1]<=o[1]||n[3]>=o[3])}function Dm(n,o){var u=Em(n[0]),p=Lm(n[1]),x=Math.pow(2,o.z);return[Math.round(u*x*wl),Math.round(p*x*wl)]}function Pm(n,o,u){var p=n[0]-o[0],x=n[1]-o[1],A=n[0]-u[0],k=n[1]-u[1];return p*k-A*x===0&&p*A<=0&&x*k<=0}function zm(n,o,u){return o[1]>n[1]!=u[1]>n[1]&&n[0]<(u[0]-o[0])*(n[1]-o[1])/(u[1]-o[1])+o[0]}function _v(n,o){for(var u=!1,p=0,x=o.length;p0&&ie<0||Q<0&&ie>0}function ap(n,o,u,p){var x=[o[0]-n[0],o[1]-n[1]],A=[p[0]-u[0],p[1]-u[1]];return Rm(A,x)===0?!1:!!(xv(n,o,u,p)&&xv(u,p,n,o))}function ip(n,o,u){for(var p=0,x=u;pu[2]){var x=p*.5,A=n[0]-u[0]>x?-p:u[0]-n[0]>x?p:0;A===0&&(A=n[0]-u[2]>x?-p:u[2]-n[0]>x?p:0),n[0]+=A}gv(o,n)}function qm(n){n[0]=n[1]=1/0,n[2]=n[3]=-1/0}function op(n,o,u,p){for(var x=Math.pow(2,p.z)*wl,A=[p.x*wl,p.y*wl],k=[],F=0,Y=n;F=0)return!1;var u=!0;return n.eachChild(function(p){u&&!Vc(p,o)&&(u=!1)}),u}var Al=function(o,u){this.type=u.type,this.name=o,this.boundExpression=u};Al.parse=function(o,u){if(o.length!==2||typeof o[1]!="string")return u.error("'var' expression requires exactly one string literal argument.");var p=o[1];return u.scope.has(p)?new Al(p,u.scope.get(p)):u.error('Unknown variable "'+p+'". Make sure "'+p+'" has been bound in an enclosing "let" expression before using it.',1)},Al.prototype.evaluate=function(o){return this.boundExpression.evaluate(o)},Al.prototype.eachChild=function(){},Al.prototype.outputDefined=function(){return!1},Al.prototype.serialize=function(){return["var",this.name]};var Ml=function(o,u,p,x,A){u===void 0&&(u=[]),x===void 0&&(x=new $u),A===void 0&&(A=[]),this.registry=o,this.path=u,this.key=u.map(function(k){return"["+k+"]"}).join(""),this.scope=x,this.errors=A,this.expectedType=p};Ml.prototype.parse=function(o,u,p,x,A){return A===void 0&&(A={}),u?this.concat(u,p,x)._parse(o,A):this._parse(o,A)},Ml.prototype._parse=function(o,u){(o===null||typeof o=="string"||typeof o=="boolean"||typeof o=="number")&&(o=["literal",o]);function p(Q,ie,ge){return ge==="assert"?new un(ie,[Q]):ge==="coerce"?new Wo(ie,[Q]):Q}if(Array.isArray(o)){if(o.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var x=o[0];if(typeof x!="string")return this.error("Expression name must be a string, but found "+typeof x+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var A=this.registry[x];if(A){var k=A.parse(o,this);if(!k)return null;if(this.expectedType){var F=this.expectedType,Y=k.type;if((F.kind==="string"||F.kind==="number"||F.kind==="boolean"||F.kind==="object"||F.kind==="array")&&Y.kind==="value")k=p(k,F,u.typeAnnotation||"assert");else if((F.kind==="color"||F.kind==="formatted"||F.kind==="resolvedImage")&&(Y.kind==="value"||Y.kind==="string"))k=p(k,F,u.typeAnnotation||"coerce");else if(this.checkSubtype(F,Y))return null}if(!(k instanceof Zo)&&k.type.kind!=="resolvedImage"&&Tv(k)){var j=new js;try{k=new Zo(k.type,k.evaluate(j))}catch(Q){return this.error(Q.message),null}}return k}return this.error('Unknown expression "'+x+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof o=="undefined"?this.error("'undefined' value invalid. Use null instead."):typeof o=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof o+" instead.")},Ml.prototype.concat=function(o,u,p){var x=typeof o=="number"?this.path.concat(o):this.path,A=p?this.scope.concat(p):this.scope;return new Ml(this.registry,x,u||null,A,this.errors)},Ml.prototype.error=function(o){for(var u=[],p=arguments.length-1;p-- >0;)u[p]=arguments[p+1];var x=""+this.key+u.map(function(A){return"["+A+"]"}).join("");this.errors.push(new xs(x,o))},Ml.prototype.checkSubtype=function(o,u){var p=fs(o,u);return p&&this.error(p),p};function Tv(n){if(n instanceof Al)return Tv(n.boundExpression);if(n instanceof zn&&n.name==="error")return!1;if(n instanceof bl)return!1;if(n instanceof cs)return!1;var o=n instanceof Wo||n instanceof un,u=!0;return n.eachChild(function(p){o?u=u&&Tv(p):u=u&&p instanceof Zo}),u?Uc(n)&&Vc(n,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function Hc(n,o){for(var u=n.length-1,p=0,x=u,A=0,k,F;p<=x;)if(A=Math.floor((p+x)/2),k=n[A],F=n[A+1],k<=o){if(A===u||oo)x=A-1;else throw new vn("Input is not a number.");return 0}var Ts=function(o,u,p){this.type=o,this.input=u,this.labels=[],this.outputs=[];for(var x=0,A=p;x=F)return u.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',j);var ie=u.parse(Y,Q,A);if(!ie)return null;A=A||ie.type,x.push([F,ie])}return new Ts(A,p,x)},Ts.prototype.evaluate=function(o){var u=this.labels,p=this.outputs;if(u.length===1)return p[0].evaluate(o);var x=this.input.evaluate(o);if(x<=u[0])return p[0].evaluate(o);var A=u.length;if(x>=u[A-1])return p[A-1].evaluate(o);var k=Hc(u,x);return p[k].evaluate(o)},Ts.prototype.eachChild=function(o){o(this.input);for(var u=0,p=this.outputs;u0&&o.push(this.labels[u]),o.push(this.outputs[u].serialize());return o};function dn(n,o,u){return n*(1-u)+o*u}function Bm(n,o,u){return new oi(dn(n.r,o.r,u),dn(n.g,o.g,u),dn(n.b,o.b,u),dn(n.a,o.a,u))}function Om(n,o,u){return n.map(function(p,x){return dn(p,o[x],u)})}var Sl=Object.freeze({__proto__:null,number:dn,color:Bm,array:Om}),rf=.95047,hs=1,up=1.08883,fp=4/29,af=6/29,cp=3*af*af,hp=af*af*af,Um=Math.PI/180,Vm=180/Math.PI;function Av(n){return n>hp?Math.pow(n,1/3):n/cp+fp}function Mv(n){return n>af?n*n*n:cp*(n-fp)}function Sv(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function jf(n){return n/=255,n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function Gc(n){var o=jf(n.r),u=jf(n.g),p=jf(n.b),x=Av((.4124564*o+.3575761*u+.1804375*p)/rf),A=Av((.2126729*o+.7151522*u+.072175*p)/hs),k=Av((.0193339*o+.119192*u+.9503041*p)/up);return{l:116*A-16,a:500*(x-A),b:200*(A-k),alpha:n.a}}function vp(n){var o=(n.l+16)/116,u=isNaN(n.a)?o:o+n.a/500,p=isNaN(n.b)?o:o-n.b/200;return o=hs*Mv(o),u=rf*Mv(u),p=up*Mv(p),new oi(Sv(3.2404542*u-1.5371385*o-.4985314*p),Sv(-.969266*u+1.8760108*o+.041556*p),Sv(.0556434*u-.2040259*o+1.0572252*p),n.alpha)}function Ni(n,o,u){return{l:dn(n.l,o.l,u),a:dn(n.a,o.a,u),b:dn(n.b,o.b,u),alpha:dn(n.alpha,o.alpha,u)}}function Hm(n){var o=Gc(n),u=o.l,p=o.a,x=o.b,A=Math.atan2(x,p)*Vm;return{h:A<0?A+360:A,c:Math.sqrt(p*p+x*x),l:u,alpha:n.a}}function Zc(n){var o=n.h*Um,u=n.c,p=n.l;return vp({l:p,a:Math.cos(o)*u,b:Math.sin(o)*u,alpha:n.alpha})}function kv(n,o,u){var p=o-n;return n+u*(p>180||p<-180?p-360*Math.round(p/360):p)}function dp(n,o,u){return{h:kv(n.h,o.h,u),c:dn(n.c,o.c,u),l:dn(n.l,o.l,u),alpha:dn(n.alpha,o.alpha,u)}}var nf={forward:Gc,reverse:vp,interpolate:Ni},_u={forward:Hm,reverse:Zc,interpolate:dp},Cv=Object.freeze({__proto__:null,lab:nf,hcl:_u}),bn=function(o,u,p,x,A){this.type=o,this.operator=u,this.interpolation=p,this.input=x,this.labels=[],this.outputs=[];for(var k=0,F=A;k1}))return u.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);x={name:"cubic-bezier",controlPoints:Y}}else return u.error("Unknown interpolation type "+String(x[0]),1,0);if(o.length-1<4)return u.error("Expected at least 4 arguments, but found only "+(o.length-1)+".");if((o.length-1)%2!==0)return u.error("Expected an even number of arguments.");if(A=u.parse(A,2,kr),!A)return null;var j=[],Q=null;p==="interpolate-hcl"||p==="interpolate-lab"?Q=bs:u.expectedType&&u.expectedType.kind!=="value"&&(Q=u.expectedType);for(var ie=0;ie=ge)return u.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',ke);var ut=u.parse(he,qe,Q);if(!ut)return null;Q=Q||ut.type,j.push([ge,ut])}return Q.kind!=="number"&&Q.kind!=="color"&&!(Q.kind==="array"&&Q.itemType.kind==="number"&&typeof Q.N=="number")?u.error("Type "+Li(Q)+" is not interpolatable."):new bn(Q,p,x,A,j)},bn.prototype.evaluate=function(o){var u=this.labels,p=this.outputs;if(u.length===1)return p[0].evaluate(o);var x=this.input.evaluate(o);if(x<=u[0])return p[0].evaluate(o);var A=u.length;if(x>=u[A-1])return p[A-1].evaluate(o);var k=Hc(u,x),F=u[k],Y=u[k+1],j=bn.interpolationFactor(this.interpolation,x,F,Y),Q=p[k].evaluate(o),ie=p[k+1].evaluate(o);return this.operator==="interpolate"?Sl[this.type.kind.toLowerCase()](Q,ie,j):this.operator==="interpolate-hcl"?_u.reverse(_u.interpolate(_u.forward(Q),_u.forward(ie),j)):nf.reverse(nf.interpolate(nf.forward(Q),nf.forward(ie),j))},bn.prototype.eachChild=function(o){o(this.input);for(var u=0,p=this.outputs;u=p.length)throw new vn("Array index out of bounds: "+u+" > "+(p.length-1)+".");if(u!==Math.floor(u))throw new vn("Array index must be an integer, but found "+u+" instead.");return p[u]},Cl.prototype.eachChild=function(o){o(this.index),o(this.input)},Cl.prototype.outputDefined=function(){return!1},Cl.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var El=function(o,u){this.type=Ta,this.needle=o,this.haystack=u};El.parse=function(o,u){if(o.length!==3)return u.error("Expected 2 arguments, but found "+(o.length-1)+" instead.");var p=u.parse(o[1],1,Ma),x=u.parse(o[2],2,Ma);return!p||!x?null:Bc(p.type,[Ta,wa,kr,ef,Ma])?new El(p,x):u.error("Expected first argument to be of type boolean, string, number or null, but found "+Li(p.type)+" instead")},El.prototype.evaluate=function(o){var u=this.needle.evaluate(o),p=this.haystack.evaluate(o);if(!p)return!1;if(!yu(u,["boolean","string","number","null"]))throw new vn("Expected first argument to be of type boolean, string, number or null, but found "+Li(ln(u))+" instead.");if(!yu(p,["string","array"]))throw new vn("Expected second argument to be of type array or string, but found "+Li(ln(p))+" instead.");return p.indexOf(u)>=0},El.prototype.eachChild=function(o){o(this.needle),o(this.haystack)},El.prototype.outputDefined=function(){return!0},El.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Ks=function(o,u,p){this.type=kr,this.needle=o,this.haystack=u,this.fromIndex=p};Ks.parse=function(o,u){if(o.length<=2||o.length>=5)return u.error("Expected 3 or 4 arguments, but found "+(o.length-1)+" instead.");var p=u.parse(o[1],1,Ma),x=u.parse(o[2],2,Ma);if(!p||!x)return null;if(!Bc(p.type,[Ta,wa,kr,ef,Ma]))return u.error("Expected first argument to be of type boolean, string, number or null, but found "+Li(p.type)+" instead");if(o.length===4){var A=u.parse(o[3],3,kr);return A?new Ks(p,x,A):null}else return new Ks(p,x)},Ks.prototype.evaluate=function(o){var u=this.needle.evaluate(o),p=this.haystack.evaluate(o);if(!yu(u,["boolean","string","number","null"]))throw new vn("Expected first argument to be of type boolean, string, number or null, but found "+Li(ln(u))+" instead.");if(!yu(p,["string","array"]))throw new vn("Expected second argument to be of type array or string, but found "+Li(ln(p))+" instead.");if(this.fromIndex){var x=this.fromIndex.evaluate(o);return p.indexOf(u,x)}return p.indexOf(u)},Ks.prototype.eachChild=function(o){o(this.needle),o(this.haystack),this.fromIndex&&o(this.fromIndex)},Ks.prototype.outputDefined=function(){return!1},Ks.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var o=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),o]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var As=function(o,u,p,x,A,k){this.inputType=o,this.type=u,this.input=p,this.cases=x,this.outputs=A,this.otherwise=k};As.parse=function(o,u){if(o.length<5)return u.error("Expected at least 4 arguments, but found only "+(o.length-1)+".");if(o.length%2!==1)return u.error("Expected an even number of arguments.");var p,x;u.expectedType&&u.expectedType.kind!=="value"&&(x=u.expectedType);for(var A={},k=[],F=2;FNumber.MAX_SAFE_INTEGER)return Q.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof he=="number"&&Math.floor(he)!==he)return Q.error("Numeric branch labels must be integer values.");if(!p)p=ln(he);else if(Q.checkSubtype(p,ln(he)))return null;if(typeof A[String(he)]!="undefined")return Q.error("Branch labels must be unique.");A[String(he)]=k.length}var ke=u.parse(j,F,x);if(!ke)return null;x=x||ke.type,k.push(ke)}var qe=u.parse(o[1],1,Ma);if(!qe)return null;var ut=u.parse(o[o.length-1],o.length-1,x);return!ut||qe.type.kind!=="value"&&u.concat(1).checkSubtype(p,qe.type)?null:new As(p,x,qe,A,k,ut)},As.prototype.evaluate=function(o){var u=this.input.evaluate(o),p=ln(u)===this.inputType&&this.outputs[this.cases[u]]||this.otherwise;return p.evaluate(o)},As.prototype.eachChild=function(o){o(this.input),this.outputs.forEach(o),o(this.otherwise)},As.prototype.outputDefined=function(){return this.outputs.every(function(o){return o.outputDefined()})&&this.otherwise.outputDefined()},As.prototype.serialize=function(){for(var o=this,u=["match",this.input.serialize()],p=Object.keys(this.cases).sort(),x=[],A={},k=0,F=p;k=5)return u.error("Expected 3 or 4 arguments, but found "+(o.length-1)+" instead.");var p=u.parse(o[1],1,Ma),x=u.parse(o[2],2,kr);if(!p||!x)return null;if(!Bc(p.type,[yo(Ma),wa,Ma]))return u.error("Expected first argument to be of type array or string, but found "+Li(p.type)+" instead");if(o.length===4){var A=u.parse(o[3],3,kr);return A?new Ll(p.type,p,x,A):null}else return new Ll(p.type,p,x)},Ll.prototype.evaluate=function(o){var u=this.input.evaluate(o),p=this.beginIndex.evaluate(o);if(!yu(u,["string","array"]))throw new vn("Expected first argument to be of type array or string, but found "+Li(ln(u))+" instead.");if(this.endIndex){var x=this.endIndex.evaluate(o);return u.slice(p,x)}return u.slice(p)},Ll.prototype.eachChild=function(o){o(this.input),o(this.beginIndex),this.endIndex&&o(this.endIndex)},Ll.prototype.outputDefined=function(){return!1},Ll.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var o=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),o]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function pp(n,o){return n==="=="||n==="!="?o.kind==="boolean"||o.kind==="string"||o.kind==="number"||o.kind==="null"||o.kind==="value":o.kind==="string"||o.kind==="number"||o.kind==="value"}function Gm(n,o,u){return o===u}function Zm(n,o,u){return o!==u}function Ym(n,o,u){return ou}function yp(n,o,u){return o<=u}function Ev(n,o,u){return o>=u}function Lv(n,o,u,p){return p.compare(o,u)===0}function Kf(n,o,u,p){return!Lv(n,o,u,p)}function Yc(n,o,u,p){return p.compare(o,u)<0}function gp(n,o,u,p){return p.compare(o,u)>0}function Dv(n,o,u,p){return p.compare(o,u)<=0}function _p(n,o,u,p){return p.compare(o,u)>=0}function of(n,o,u){var p=n!=="=="&&n!=="!=";return function(){function x(A,k,F){this.type=Ta,this.lhs=A,this.rhs=k,this.collator=F,this.hasUntypedArgument=A.type.kind==="value"||k.type.kind==="value"}return x.parse=function(k,F){if(k.length!==3&&k.length!==4)return F.error("Expected two or three arguments.");var Y=k[0],j=F.parse(k[1],1,Ma);if(!j)return null;if(!pp(Y,j.type))return F.concat(1).error('"'+Y+`" comparisons are not supported for type '`+Li(j.type)+"'.");var Q=F.parse(k[2],2,Ma);if(!Q)return null;if(!pp(Y,Q.type))return F.concat(2).error('"'+Y+`" comparisons are not supported for type '`+Li(Q.type)+"'.");if(j.type.kind!==Q.type.kind&&j.type.kind!=="value"&&Q.type.kind!=="value")return F.error("Cannot compare types '"+Li(j.type)+"' and '"+Li(Q.type)+"'.");p&&(j.type.kind==="value"&&Q.type.kind!=="value"?j=new un(Q.type,[j]):j.type.kind!=="value"&&Q.type.kind==="value"&&(Q=new un(j.type,[Q])));var ie=null;if(k.length===4){if(j.type.kind!=="string"&&Q.type.kind!=="string"&&j.type.kind!=="value"&&Q.type.kind!=="value")return F.error("Cannot use collator to compare non-string types.");if(ie=F.parse(k[3],3,mu),!ie)return null}return new x(j,Q,ie)},x.prototype.evaluate=function(k){var F=this.lhs.evaluate(k),Y=this.rhs.evaluate(k);if(p&&this.hasUntypedArgument){var j=ln(F),Q=ln(Y);if(j.kind!==Q.kind||!(j.kind==="string"||j.kind==="number"))throw new vn('Expected arguments for "'+n+'" to be (string, string) or (number, number), but found ('+j.kind+", "+Q.kind+") instead.")}if(this.collator&&!p&&this.hasUntypedArgument){var ie=ln(F),ge=ln(Y);if(ie.kind!=="string"||ge.kind!=="string")return o(k,F,Y)}return this.collator?u(k,F,Y,this.collator.evaluate(k)):o(k,F,Y)},x.prototype.eachChild=function(k){k(this.lhs),k(this.rhs),this.collator&&k(this.collator)},x.prototype.outputDefined=function(){return!0},x.prototype.serialize=function(){var k=[n];return this.eachChild(function(F){k.push(F.serialize())}),k},x}()}var Wm=of("==",Gm,Lv),xp=of("!=",Zm,Kf),bp=of("<",Ym,Yc),wp=of(">",mp,gp),Pv=of("<=",yp,Dv),zv=of(">=",Ev,_p),xu=function(o,u,p,x,A){this.type=wa,this.number=o,this.locale=u,this.currency=p,this.minFractionDigits=x,this.maxFractionDigits=A};xu.parse=function(o,u){if(o.length!==3)return u.error("Expected two arguments.");var p=u.parse(o[1],1,kr);if(!p)return null;var x=o[2];if(typeof x!="object"||Array.isArray(x))return u.error("NumberFormat options argument must be an object.");var A=null;if(x.locale&&(A=u.parse(x.locale,1,wa),!A))return null;var k=null;if(x.currency&&(k=u.parse(x.currency,1,wa),!k))return null;var F=null;if(x["min-fraction-digits"]&&(F=u.parse(x["min-fraction-digits"],1,kr),!F))return null;var Y=null;return x["max-fraction-digits"]&&(Y=u.parse(x["max-fraction-digits"],1,kr),!Y)?null:new xu(p,A,k,F,Y)},xu.prototype.evaluate=function(o){return new Intl.NumberFormat(this.locale?this.locale.evaluate(o):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(o):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(o):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(o):void 0}).format(this.number.evaluate(o))},xu.prototype.eachChild=function(o){o(this.number),this.locale&&o(this.locale),this.currency&&o(this.currency),this.minFractionDigits&&o(this.minFractionDigits),this.maxFractionDigits&&o(this.maxFractionDigits)},xu.prototype.outputDefined=function(){return!1},xu.prototype.serialize=function(){var o={};return this.locale&&(o.locale=this.locale.serialize()),this.currency&&(o.currency=this.currency.serialize()),this.minFractionDigits&&(o["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(o["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),o]};var Dl=function(o){this.type=kr,this.input=o};Dl.parse=function(o,u){if(o.length!==2)return u.error("Expected 1 argument, but found "+(o.length-1)+" instead.");var p=u.parse(o[1],1);return p?p.type.kind!=="array"&&p.type.kind!=="string"&&p.type.kind!=="value"?u.error("Expected argument of type string or array, but found "+Li(p.type)+" instead."):new Dl(p):null},Dl.prototype.evaluate=function(o){var u=this.input.evaluate(o);if(typeof u=="string")return u.length;if(Array.isArray(u))return u.length;throw new vn("Expected value to be of type string or array, but found "+Li(ln(u))+" instead.")},Dl.prototype.eachChild=function(o){o(this.input)},Dl.prototype.outputDefined=function(){return!1},Dl.prototype.serialize=function(){var o=["length"];return this.eachChild(function(u){o.push(u.serialize())}),o};var Qf={"==":Wm,"!=":xp,">":wp,"<":bp,">=":zv,"<=":Pv,array:un,at:Cl,boolean:un,case:Ms,coalesce:Js,collator:bl,format:Yo,image:Xs,in:El,"index-of":Ks,interpolate:bn,"interpolate-hcl":bn,"interpolate-lab":bn,length:Dl,let:kl,literal:Zo,match:As,number:un,"number-format":xu,object:un,slice:Ll,step:Ts,string:un,"to-boolean":Wo,"to-color":Wo,"to-number":Wo,"to-string":Wo,var:Al,within:cs};function Iv(n,o){var u=o[0],p=o[1],x=o[2],A=o[3];u=u.evaluate(n),p=p.evaluate(n),x=x.evaluate(n);var k=A?A.evaluate(n):1,F=rp(u,p,x,k);if(F)throw new vn(F);return new oi(u/255*k,p/255*k,x/255*k,k)}function Wc(n,o){return n in o}function Xc(n,o){var u=o[n];return typeof u=="undefined"?null:u}function jc(n,o,u,p){for(;u<=p;){var x=u+p>>1;if(o[x]===n)return!0;o[x]>n?p=x-1:u=x+1}return!1}function Pl(n){return{type:n}}zn.register(Qf,{error:[Ws,[wa],function(n,o){var u=o[0];throw new vn(u.evaluate(n))}],typeof:[wa,[Ma],function(n,o){var u=o[0];return Li(ln(u.evaluate(n)))}],"to-rgba":[yo(kr,4),[bs],function(n,o){var u=o[0];return u.evaluate(n).toArray()}],rgb:[bs,[kr,kr,kr],Iv],rgba:[bs,[kr,kr,kr,kr],Iv],has:{type:Ta,overloads:[[[wa],function(n,o){var u=o[0];return Wc(u.evaluate(n),n.properties())}],[[wa,_l],function(n,o){var u=o[0],p=o[1];return Wc(u.evaluate(n),p.evaluate(n))}]]},get:{type:Ma,overloads:[[[wa],function(n,o){var u=o[0];return Xc(u.evaluate(n),n.properties())}],[[wa,_l],function(n,o){var u=o[0],p=o[1];return Xc(u.evaluate(n),p.evaluate(n))}]]},"feature-state":[Ma,[wa],function(n,o){var u=o[0];return Xc(u.evaluate(n),n.featureState||{})}],properties:[_l,[],function(n){return n.properties()}],"geometry-type":[wa,[],function(n){return n.geometryType()}],id:[Ma,[],function(n){return n.id()}],zoom:[kr,[],function(n){return n.globals.zoom}],"heatmap-density":[kr,[],function(n){return n.globals.heatmapDensity||0}],"line-progress":[kr,[],function(n){return n.globals.lineProgress||0}],accumulated:[Ma,[],function(n){return n.globals.accumulated===void 0?null:n.globals.accumulated}],"+":[kr,Pl(kr),function(n,o){for(var u=0,p=0,x=o;p":[Ta,[wa,Ma],function(n,o){var u=o[0],p=o[1],x=n.properties()[u.value],A=p.value;return typeof x==typeof A&&x>A}],"filter-id->":[Ta,[Ma],function(n,o){var u=o[0],p=n.id(),x=u.value;return typeof p==typeof x&&p>x}],"filter-<=":[Ta,[wa,Ma],function(n,o){var u=o[0],p=o[1],x=n.properties()[u.value],A=p.value;return typeof x==typeof A&&x<=A}],"filter-id-<=":[Ta,[Ma],function(n,o){var u=o[0],p=n.id(),x=u.value;return typeof p==typeof x&&p<=x}],"filter->=":[Ta,[wa,Ma],function(n,o){var u=o[0],p=o[1],x=n.properties()[u.value],A=p.value;return typeof x==typeof A&&x>=A}],"filter-id->=":[Ta,[Ma],function(n,o){var u=o[0],p=n.id(),x=u.value;return typeof p==typeof x&&p>=x}],"filter-has":[Ta,[Ma],function(n,o){var u=o[0];return u.value in n.properties()}],"filter-has-id":[Ta,[],function(n){return n.id()!==null&&n.id()!==void 0}],"filter-type-in":[Ta,[yo(wa)],function(n,o){var u=o[0];return u.value.indexOf(n.geometryType())>=0}],"filter-id-in":[Ta,[yo(Ma)],function(n,o){var u=o[0];return u.value.indexOf(n.id())>=0}],"filter-in-small":[Ta,[wa,yo(Ma)],function(n,o){var u=o[0],p=o[1];return p.value.indexOf(n.properties()[u.value])>=0}],"filter-in-large":[Ta,[wa,yo(Ma)],function(n,o){var u=o[0],p=o[1];return jc(n.properties()[u.value],p.value,0,p.value.length-1)}],all:{type:Ta,overloads:[[[Ta,Ta],function(n,o){var u=o[0],p=o[1];return u.evaluate(n)&&p.evaluate(n)}],[Pl(Ta),function(n,o){for(var u=0,p=o;u-1}function Kc(n){return!!n.expression&&n.expression.interpolated}function pi(n){return n instanceof Number?"number":n instanceof String?"string":n instanceof Boolean?"boolean":Array.isArray(n)?"array":n===null?"null":typeof n}function $f(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function Ap(n){return n}function Mp(n,o){var u=o.type==="color",p=n.stops&&typeof n.stops[0][0]=="object",x=p||n.property!==void 0,A=p||!x,k=n.type||(Kc(o)?"exponential":"interval");if(u&&(n=pu({},n),n.stops&&(n.stops=n.stops.map(function(fr){return[fr[0],oi.parse(fr[1])]})),n.default?n.default=oi.parse(n.default):n.default=oi.parse(o.default)),n.colorSpace&&n.colorSpace!=="rgb"&&!Cv[n.colorSpace])throw new Error("Unknown color space: "+n.colorSpace);var F,Y,j;if(k==="exponential")F=Rv;else if(k==="interval")F=kp;else if(k==="categorical"){F=Sp,Y=Object.create(null);for(var Q=0,ie=n.stops;Q=n.stops[p-1][0])return n.stops[p-1][1];var x=Hc(n.stops.map(function(A){return A[0]}),u);return n.stops[x][1]}function Rv(n,o,u){var p=n.base!==void 0?n.base:1;if(pi(u)!=="number")return zl(n.default,o.default);var x=n.stops.length;if(x===1||u<=n.stops[0][0])return n.stops[0][1];if(u>=n.stops[x-1][0])return n.stops[x-1][1];var A=Hc(n.stops.map(function(ie){return ie[0]}),u),k=Xm(u,p,n.stops[A][0],n.stops[A+1][0]),F=n.stops[A][1],Y=n.stops[A+1][1],j=Sl[o.type]||Ap;if(n.colorSpace&&n.colorSpace!=="rgb"){var Q=Cv[n.colorSpace];j=function(ie,ge){return Q.reverse(Q.interpolate(Q.forward(ie),Q.forward(ge),k))}}return typeof F.evaluate=="function"?{evaluate:function(){for(var ge=[],he=arguments.length;he--;)ge[he]=arguments[he];var ke=F.evaluate.apply(void 0,ge),qe=Y.evaluate.apply(void 0,ge);if(!(ke===void 0||qe===void 0))return j(ke,qe,k)}}:j(F,Y,k)}function Cp(n,o,u){return o.type==="color"?u=oi.parse(u):o.type==="formatted"?u=xn.fromString(u.toString()):o.type==="resolvedImage"?u=Pn.fromString(u.toString()):pi(u)!==o.type&&(o.type!=="enum"||!o.values[u])&&(u=void 0),zl(u,n.default,o.default)}function Xm(n,o,u,p){var x=p-u,A=n-u;return x===0?0:o===1?A/x:(Math.pow(o,A)-1)/(Math.pow(o,x)-1)}var Il=function(o,u){this.expression=o,this._warningHistory={},this._evaluator=new js,this._defaultValue=u?Jm(u):null,this._enumValues=u&&u.type==="enum"?u.values:null};Il.prototype.evaluateWithoutErrorHandling=function(o,u,p,x,A,k){return this._evaluator.globals=o,this._evaluator.feature=u,this._evaluator.featureState=p,this._evaluator.canonical=x,this._evaluator.availableImages=A||null,this._evaluator.formattedSection=k,this.expression.evaluate(this._evaluator)},Il.prototype.evaluate=function(o,u,p,x,A,k){this._evaluator.globals=o,this._evaluator.feature=u||null,this._evaluator.featureState=p||null,this._evaluator.canonical=x,this._evaluator.availableImages=A||null,this._evaluator.formattedSection=k||null;try{var F=this.expression.evaluate(this._evaluator);if(F==null||typeof F=="number"&&F!==F)return this._defaultValue;if(this._enumValues&&!(F in this._enumValues))throw new vn("Expected value to be one of "+Object.keys(this._enumValues).map(function(Y){return JSON.stringify(Y)}).join(", ")+", but found "+JSON.stringify(F)+" instead.");return F}catch(Y){return this._warningHistory[Y.message]||(this._warningHistory[Y.message]=!0,typeof console!="undefined"&&console.warn(Y.message)),this._defaultValue}};function wu(n){return Array.isArray(n)&&n.length>0&&typeof n[0]=="string"&&n[0]in Qf}function ec(n,o){var u=new Ml(Qf,[],o?Fv(o):void 0),p=u.parse(n,void 0,void 0,void 0,o&&o.type==="string"?{typeAnnotation:"coerce"}:void 0);return p?Jc(new Il(p,o)):bu(u.errors)}var Ss=function(o,u){this.kind=o,this._styleExpression=u,this.isStateDependent=o!=="constant"&&!Tl(u.expression)};Ss.prototype.evaluateWithoutErrorHandling=function(o,u,p,x,A,k){return this._styleExpression.evaluateWithoutErrorHandling(o,u,p,x,A,k)},Ss.prototype.evaluate=function(o,u,p,x,A,k){return this._styleExpression.evaluate(o,u,p,x,A,k)};var ks=function(o,u,p,x){this.kind=o,this.zoomStops=p,this._styleExpression=u,this.isStateDependent=o!=="camera"&&!Tl(u.expression),this.interpolationType=x};ks.prototype.evaluateWithoutErrorHandling=function(o,u,p,x,A,k){return this._styleExpression.evaluateWithoutErrorHandling(o,u,p,x,A,k)},ks.prototype.evaluate=function(o,u,p,x,A,k){return this._styleExpression.evaluate(o,u,p,x,A,k)},ks.prototype.interpolationFactor=function(o,u,p){return this.interpolationType?bn.interpolationFactor(this.interpolationType,o,u,p):0};function Xo(n,o){if(n=ec(n,o),n.result==="error")return n;var u=n.value.expression,p=Uc(u);if(!p&&!sf(o))return bu([new xs("","data expressions not supported")]);var x=Vc(u,["zoom"]);if(!x&&!Tp(o))return bu([new xs("","zoom expressions not supported")]);var A=uf(u);if(!A&&!x)return bu([new xs("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(A instanceof xs)return bu([A]);if(A instanceof bn&&!Kc(o))return bu([new xs("",'"interpolate" expressions cannot be used with this property')]);if(!A)return Jc(p?new Ss("constant",n.value):new Ss("source",n.value));var k=A instanceof bn?A.interpolation:void 0;return Jc(p?new ks("camera",n.value,A.labels,k):new ks("composite",n.value,A.labels,k))}var lf=function(o,u){this._parameters=o,this._specification=u,pu(this,Mp(this._parameters,this._specification))};lf.deserialize=function(o){return new lf(o._parameters,o._specification)},lf.serialize=function(o){return{_parameters:o._parameters,_specification:o._specification}};function jm(n,o){if($f(n))return new lf(n,o);if(wu(n)){var u=Xo(n,o);if(u.result==="error")throw new Error(u.value.map(function(x){return x.key+": "+x.message}).join(", "));return u.value}else{var p=n;return typeof n=="string"&&o.type==="color"&&(p=oi.parse(n)),{kind:"constant",evaluate:function(){return p}}}}function uf(n){var o=null;if(n instanceof kl)o=uf(n.result);else if(n instanceof Js)for(var u=0,p=n.args;up.maximum?[new Or(o,u,u+" is greater than the maximum value "+p.maximum)]:[]}function Qc(n){var o=n.valueSpec,u=sn(n.value.type),p,x={},A,k,F=u!=="categorical"&&n.value.property===void 0,Y=!F,j=pi(n.value.stops)==="array"&&pi(n.value.stops[0])==="array"&&pi(n.value.stops[0][0])==="object",Q=vs({key:n.key,value:n.value,valueSpec:n.styleSpec.function,style:n.style,styleSpec:n.styleSpec,objectElementValidators:{stops:ie,default:ke}});return u==="identity"&&F&&Q.push(new Or(n.key,n.value,'missing required property "property"')),u!=="identity"&&!n.value.stops&&Q.push(new Or(n.key,n.value,'missing required property "stops"')),u==="exponential"&&n.valueSpec.expression&&!Kc(n.valueSpec)&&Q.push(new Or(n.key,n.value,"exponential functions not supported")),n.styleSpec.$version>=8&&(Y&&!sf(n.valueSpec)?Q.push(new Or(n.key,n.value,"property functions not supported")):F&&!Tp(n.valueSpec)&&Q.push(new Or(n.key,n.value,"zoom functions not supported"))),(u==="categorical"||j)&&n.value.property===void 0&&Q.push(new Or(n.key,n.value,'"property" property is required')),Q;function ie(qe){if(u==="identity")return[new Or(qe.key,qe.value,'identity function may not have a "stops" property')];var ut=[],et=qe.value;return ut=ut.concat(qv({key:qe.key,value:et,valueSpec:qe.valueSpec,style:qe.style,styleSpec:qe.styleSpec,arrayElementValidator:ge})),pi(et)==="array"&&et.length===0&&ut.push(new Or(qe.key,et,"array must have at least one stop")),ut}function ge(qe){var ut=[],et=qe.value,kt=qe.key;if(pi(et)!=="array")return[new Or(kt,et,"array expected, "+pi(et)+" found")];if(et.length!==2)return[new Or(kt,et,"array length 2 expected, length "+et.length+" found")];if(j){if(pi(et[0])!=="object")return[new Or(kt,et,"object expected, "+pi(et[0])+" found")];if(et[0].zoom===void 0)return[new Or(kt,et,"object stop key must have zoom")];if(et[0].value===void 0)return[new Or(kt,et,"object stop key must have value")];if(k&&k>sn(et[0].zoom))return[new Or(kt,et[0].zoom,"stop zoom values must appear in ascending order")];sn(et[0].zoom)!==k&&(k=sn(et[0].zoom),A=void 0,x={}),ut=ut.concat(vs({key:kt+"[0]",value:et[0],valueSpec:{zoom:{}},style:qe.style,styleSpec:qe.styleSpec,objectElementValidators:{zoom:ff,value:he}}))}else ut=ut.concat(he({key:kt+"[0]",value:et[0],valueSpec:{},style:qe.style,styleSpec:qe.styleSpec},et));return wu(gl(et[1]))?ut.concat([new Or(kt+"[1]",et[1],"expressions are not allowed in function stops.")]):ut.concat(li({key:kt+"[1]",value:et[1],valueSpec:o,style:qe.style,styleSpec:qe.styleSpec}))}function he(qe,ut){var et=pi(qe.value),kt=sn(qe.value),_t=qe.value!==null?qe.value:ut;if(!p)p=et;else if(et!==p)return[new Or(qe.key,_t,et+" stop domain type must match previous stop domain type "+p)];if(et!=="number"&&et!=="string"&&et!=="boolean")return[new Or(qe.key,_t,"stop domain value must be a number, string, or boolean")];if(et!=="number"&&u!=="categorical"){var St="number expected, "+et+" found";return sf(o)&&u===void 0&&(St+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Or(qe.key,_t,St)]}return u==="categorical"&&et==="number"&&(!isFinite(kt)||Math.floor(kt)!==kt)?[new Or(qe.key,_t,"integer expected, found "+kt)]:u!=="categorical"&&et==="number"&&A!==void 0&&kt=2&&n[1]!=="$id"&&n[1]!=="$type";case"in":return n.length>=3&&(typeof n[1]!="string"||Array.isArray(n[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return n.length!==3||Array.isArray(n[1])||Array.isArray(n[2]);case"any":case"all":for(var o=0,u=n.slice(1);oo?1:0}function hf(n){if(!Array.isArray(n))return!1;if(n[0]==="within")return!0;for(var o=1;o"||o==="<="||o===">="?Nv(n[1],n[2],o):o==="any"?$m(n.slice(1)):o==="all"?["all"].concat(n.slice(1).map(vf)):o==="none"?["all"].concat(n.slice(1).map(vf).map(tc)):o==="in"?Lp(n[1],n.slice(2)):o==="!in"?tc(Lp(n[1],n.slice(2))):o==="has"?Bv(n[1]):o==="!has"?tc(Bv(n[1])):o==="within"?n:!0;return u}function Nv(n,o,u){switch(n){case"$type":return["filter-type-"+u,o];case"$id":return["filter-id-"+u,o];default:return["filter-"+u,n,o]}}function $m(n){return["any"].concat(n.map(vf))}function Lp(n,o){if(o.length===0)return!1;switch(n){case"$type":return["filter-type-in",["literal",o]];case"$id":return["filter-id-in",["literal",o]];default:return o.length>200&&!o.some(function(u){return typeof u!=typeof o[0]})?["filter-in-large",n,["literal",o.sort(Rl)]]:["filter-in-small",n,["literal",o]]}}function Bv(n){switch(n){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",n]}}function tc(n){return["!",n]}function eh(n){return go(gl(n.value))?Tu(pu({},n,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Ov(n)}function Ov(n){var o=n.value,u=n.key;if(pi(o)!=="array")return[new Or(u,o,"array expected, "+pi(o)+" found")];var p=n.styleSpec,x,A=[];if(o.length<1)return[new Or(u,o,"filter array must have at least 1 element")];switch(A=A.concat($c({key:u+"[0]",value:o[0],valueSpec:p.filter_operator,style:n.style,styleSpec:n.styleSpec})),sn(o[0])){case"<":case"<=":case">":case">=":o.length>=2&&sn(o[1])==="$type"&&A.push(new Or(u,o,'"$type" cannot be use with operator "'+o[0]+'"'));case"==":case"!=":o.length!==3&&A.push(new Or(u,o,'filter array for operator "'+o[0]+'" must have 3 elements'));case"in":case"!in":o.length>=2&&(x=pi(o[1]),x!=="string"&&A.push(new Or(u+"[1]",o[1],"string expected, "+x+" found")));for(var k=2;k=Q[he+0]&&p>=Q[he+1])?(k[ge]=!0,A.push(j[ge])):k[ge]=!1}}},Es.prototype._forEachCell=function(n,o,u,p,x,A,k,F){for(var Y=this._convertToCellCoord(n),j=this._convertToCellCoord(o),Q=this._convertToCellCoord(u),ie=this._convertToCellCoord(p),ge=Y;ge<=Q;ge++)for(var he=j;he<=ie;he++){var ke=this.d*he+ge;if(!(F&&!F(this._convertFromCellCoord(ge),this._convertFromCellCoord(he),this._convertFromCellCoord(ge+1),this._convertFromCellCoord(he+1)))&&x.call(this,n,o,u,p,ke,A,k,F))return}},Es.prototype._convertFromCellCoord=function(n){return(n-this.padding)/this.scale},Es.prototype._convertToCellCoord=function(n){return Math.max(0,Math.min(this.d-1,Math.floor(n*this.scale)+this.padding))},Es.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var n=this.cells,o=ql+this.cells.length+1+1,u=0,p=0;p=0)){var ie=n[Q];j[Q]=Nl[Y].shallow.indexOf(Q)>=0?ie:U(ie,o)}n instanceof Error&&(j.message=n.message)}if(j.$name)throw new Error("$name property is reserved for worker serialization logic.");return Y!=="Object"&&(j.$name=Y),j}throw new Error("can't serialize object of type "+typeof n)}function Z(n){if(n==null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"||n instanceof Boolean||n instanceof Number||n instanceof String||n instanceof Date||n instanceof RegExp||P(n)||N(n)||ArrayBuffer.isView(n)||n instanceof nh)return n;if(Array.isArray(n))return n.map(Z);if(typeof n=="object"){var o=n.$name||"Object",u=Nl[o],p=u.klass;if(!p)throw new Error("can't deserialize unregistered class "+o);if(p.deserialize)return p.deserialize(n);for(var x=Object.create(p.prototype),A=0,k=Object.keys(n);A=0?Y:Z(Y)}}return x}throw new Error("can't deserialize object of type "+typeof n)}var $=function(){this.first=!0};$.prototype.update=function(o,u){var p=Math.floor(o);return this.first?(this.first=!1,this.lastIntegerZoom=p,this.lastIntegerZoomTime=0,this.lastZoom=o,this.lastFloorZoom=p,!0):(this.lastFloorZoom>p?(this.lastIntegerZoom=p+1,this.lastIntegerZoomTime=u):this.lastFloorZoom=128&&n<=255},Arabic:function(n){return n>=1536&&n<=1791},"Arabic Supplement":function(n){return n>=1872&&n<=1919},"Arabic Extended-A":function(n){return n>=2208&&n<=2303},"Hangul Jamo":function(n){return n>=4352&&n<=4607},"Unified Canadian Aboriginal Syllabics":function(n){return n>=5120&&n<=5759},Khmer:function(n){return n>=6016&&n<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(n){return n>=6320&&n<=6399},"General Punctuation":function(n){return n>=8192&&n<=8303},"Letterlike Symbols":function(n){return n>=8448&&n<=8527},"Number Forms":function(n){return n>=8528&&n<=8591},"Miscellaneous Technical":function(n){return n>=8960&&n<=9215},"Control Pictures":function(n){return n>=9216&&n<=9279},"Optical Character Recognition":function(n){return n>=9280&&n<=9311},"Enclosed Alphanumerics":function(n){return n>=9312&&n<=9471},"Geometric Shapes":function(n){return n>=9632&&n<=9727},"Miscellaneous Symbols":function(n){return n>=9728&&n<=9983},"Miscellaneous Symbols and Arrows":function(n){return n>=11008&&n<=11263},"CJK Radicals Supplement":function(n){return n>=11904&&n<=12031},"Kangxi Radicals":function(n){return n>=12032&&n<=12255},"Ideographic Description Characters":function(n){return n>=12272&&n<=12287},"CJK Symbols and Punctuation":function(n){return n>=12288&&n<=12351},Hiragana:function(n){return n>=12352&&n<=12447},Katakana:function(n){return n>=12448&&n<=12543},Bopomofo:function(n){return n>=12544&&n<=12591},"Hangul Compatibility Jamo":function(n){return n>=12592&&n<=12687},Kanbun:function(n){return n>=12688&&n<=12703},"Bopomofo Extended":function(n){return n>=12704&&n<=12735},"CJK Strokes":function(n){return n>=12736&&n<=12783},"Katakana Phonetic Extensions":function(n){return n>=12784&&n<=12799},"Enclosed CJK Letters and Months":function(n){return n>=12800&&n<=13055},"CJK Compatibility":function(n){return n>=13056&&n<=13311},"CJK Unified Ideographs Extension A":function(n){return n>=13312&&n<=19903},"Yijing Hexagram Symbols":function(n){return n>=19904&&n<=19967},"CJK Unified Ideographs":function(n){return n>=19968&&n<=40959},"Yi Syllables":function(n){return n>=40960&&n<=42127},"Yi Radicals":function(n){return n>=42128&&n<=42191},"Hangul Jamo Extended-A":function(n){return n>=43360&&n<=43391},"Hangul Syllables":function(n){return n>=44032&&n<=55215},"Hangul Jamo Extended-B":function(n){return n>=55216&&n<=55295},"Private Use Area":function(n){return n>=57344&&n<=63743},"CJK Compatibility Ideographs":function(n){return n>=63744&&n<=64255},"Arabic Presentation Forms-A":function(n){return n>=64336&&n<=65023},"Vertical Forms":function(n){return n>=65040&&n<=65055},"CJK Compatibility Forms":function(n){return n>=65072&&n<=65103},"Small Form Variants":function(n){return n>=65104&&n<=65135},"Arabic Presentation Forms-B":function(n){return n>=65136&&n<=65279},"Halfwidth and Fullwidth Forms":function(n){return n>=65280&&n<=65519}};function ae(n){for(var o=0,u=n;o=65097&&n<=65103)||X["CJK Compatibility Ideographs"](n)||X["CJK Compatibility"](n)||X["CJK Radicals Supplement"](n)||X["CJK Strokes"](n)||X["CJK Symbols and Punctuation"](n)&&!(n>=12296&&n<=12305)&&!(n>=12308&&n<=12319)&&n!==12336||X["CJK Unified Ideographs Extension A"](n)||X["CJK Unified Ideographs"](n)||X["Enclosed CJK Letters and Months"](n)||X["Hangul Compatibility Jamo"](n)||X["Hangul Jamo Extended-A"](n)||X["Hangul Jamo Extended-B"](n)||X["Hangul Jamo"](n)||X["Hangul Syllables"](n)||X.Hiragana(n)||X["Ideographic Description Characters"](n)||X.Kanbun(n)||X["Kangxi Radicals"](n)||X["Katakana Phonetic Extensions"](n)||X.Katakana(n)&&n!==12540||X["Halfwidth and Fullwidth Forms"](n)&&n!==65288&&n!==65289&&n!==65293&&!(n>=65306&&n<=65310)&&n!==65339&&n!==65341&&n!==65343&&!(n>=65371&&n<=65503)&&n!==65507&&!(n>=65512&&n<=65519)||X["Small Form Variants"](n)&&!(n>=65112&&n<=65118)&&!(n>=65123&&n<=65126)||X["Unified Canadian Aboriginal Syllabics"](n)||X["Unified Canadian Aboriginal Syllabics Extended"](n)||X["Vertical Forms"](n)||X["Yijing Hexagram Symbols"](n)||X["Yi Syllables"](n)||X["Yi Radicals"](n))}function Qe(n){return!!(X["Latin-1 Supplement"](n)&&(n===167||n===169||n===174||n===177||n===188||n===189||n===190||n===215||n===247)||X["General Punctuation"](n)&&(n===8214||n===8224||n===8225||n===8240||n===8241||n===8251||n===8252||n===8258||n===8263||n===8264||n===8265||n===8273)||X["Letterlike Symbols"](n)||X["Number Forms"](n)||X["Miscellaneous Technical"](n)&&(n>=8960&&n<=8967||n>=8972&&n<=8991||n>=8996&&n<=9e3||n===9003||n>=9085&&n<=9114||n>=9150&&n<=9165||n===9167||n>=9169&&n<=9179||n>=9186&&n<=9215)||X["Control Pictures"](n)&&n!==9251||X["Optical Character Recognition"](n)||X["Enclosed Alphanumerics"](n)||X["Geometric Shapes"](n)||X["Miscellaneous Symbols"](n)&&!(n>=9754&&n<=9759)||X["Miscellaneous Symbols and Arrows"](n)&&(n>=11026&&n<=11055||n>=11088&&n<=11097||n>=11192&&n<=11243)||X["CJK Symbols and Punctuation"](n)||X.Katakana(n)||X["Private Use Area"](n)||X["CJK Compatibility Forms"](n)||X["Small Form Variants"](n)||X["Halfwidth and Fullwidth Forms"](n)||n===8734||n===8756||n===8757||n>=9984&&n<=10087||n>=10102&&n<=10131||n===65532||n===65533)}function lt(n){return!(De(n)||Qe(n))}function Ie(n){return X.Arabic(n)||X["Arabic Supplement"](n)||X["Arabic Extended-A"](n)||X["Arabic Presentation Forms-A"](n)||X["Arabic Presentation Forms-B"](n)}function Ve(n){return n>=1424&&n<=2303||X["Arabic Presentation Forms-A"](n)||X["Arabic Presentation Forms-B"](n)}function Ke(n,o){return!(!o&&Ve(n)||n>=2304&&n<=3583||n>=3840&&n<=4255||X.Khmer(n))}function ct(n){for(var o=0,u=n;o-1&&(nr=je.error),Ht&&Ht(n)};function Dr(){Ir.fire(new ii("pluginStateChange",{pluginStatus:nr,pluginURL:cr}))}var Ir=new dr,ta=function(){return nr},Ur=function(n){return n({pluginStatus:nr,pluginURL:cr}),Ir.on("pluginStateChange",n),n},Kr=function(n,o,u){if(u===void 0&&(u=!1),nr===je.deferred||nr===je.loading||nr===je.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");cr=yt.resolveURL(n),nr=je.deferred,Ht=o,Dr(),u||Na()},Na=function(){if(nr!==je.deferred||!cr)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");nr=je.loading,Dr(),cr&&rt({url:cr},function(n){n?ur(n):(nr=je.loaded,Dr())})},ri={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return nr===je.loaded||ri.applyArabicShaping!=null},isLoading:function(){return nr===je.loading},setState:function(o){nr=o.pluginStatus,cr=o.pluginURL},isParsed:function(){return ri.applyArabicShaping!=null&&ri.processBidirectionalText!=null&&ri.processStyledBidirectionalText!=null},getPluginURL:function(){return cr}},$a=function(){!ri.isLoading()&&!ri.isLoaded()&&ta()==="deferred"&&Na()},Xt=function(o,u){this.zoom=o,u?(this.now=u.now,this.fadeDuration=u.fadeDuration,this.zoomHistory=u.zoomHistory,this.transition=u.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new $,this.transition={})};Xt.prototype.isSupportedScript=function(o){return st(o,ri.isLoaded())},Xt.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Xt.prototype.getCrossfadeParameters=function(){var o=this.zoom,u=o-Math.floor(o),p=this.crossFadingFactor();return o>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:u+(1-u)*p}:{fromScale:.5,toScale:1,t:1-(1-p)*u}};var Jr=function(o,u){this.property=o,this.value=u,this.expression=jm(u===void 0?o.specification.default:u,o.specification)};Jr.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Jr.prototype.possiblyEvaluate=function(o,u,p){return this.property.possiblyEvaluate(this,o,u,p)};var oa=function(o){this.property=o,this.value=new Jr(o,void 0)};oa.prototype.transitioned=function(o,u){return new Pi(this.property,this.value,u,H({},o.transition,this.transition),o.now)},oa.prototype.untransitioned=function(){return new Pi(this.property,this.value,null,{},0)};var sa=function(o){this._properties=o,this._values=Object.create(o.defaultTransitionablePropertyValues)};sa.prototype.getValue=function(o){return Ae(this._values[o].value.value)},sa.prototype.setValue=function(o,u){this._values.hasOwnProperty(o)||(this._values[o]=new oa(this._values[o].property)),this._values[o].value=new Jr(this._values[o].property,u===null?void 0:Ae(u))},sa.prototype.getTransition=function(o){return Ae(this._values[o].transition)},sa.prototype.setTransition=function(o,u){this._values.hasOwnProperty(o)||(this._values[o]=new oa(this._values[o].property)),this._values[o].transition=Ae(u)||void 0},sa.prototype.serialize=function(){for(var o={},u=0,p=Object.keys(this._values);uthis.end)return this.prior=null,A;if(this.value.isDataDriven())return this.prior=null,A;if(xk.zoomHistory.lastIntegerZoom?{from:p,to:x}:{from:A,to:x}},o.prototype.interpolate=function(p){return p},o}(Vr),Mi=function(o){this.specification=o};Mi.prototype.possiblyEvaluate=function(o,u,p,x){if(o.value!==void 0)if(o.expression.kind==="constant"){var A=o.expression.evaluate(u,null,{},p,x);return this._calculate(A,A,A,u)}else return this._calculate(o.expression.evaluate(new Xt(Math.floor(u.zoom-1),u)),o.expression.evaluate(new Xt(Math.floor(u.zoom),u)),o.expression.evaluate(new Xt(Math.floor(u.zoom+1),u)),u)},Mi.prototype._calculate=function(o,u,p,x){var A=x.zoom;return A>x.zoomHistory.lastIntegerZoom?{from:o,to:u}:{from:p,to:u}},Mi.prototype.interpolate=function(o){return o};var lo=function(o){this.specification=o};lo.prototype.possiblyEvaluate=function(o,u,p,x){return!!o.expression.evaluate(u,null,{},p,x)},lo.prototype.interpolate=function(){return!1};var In=function(o){this.properties=o,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var u in o){var p=o[u];p.specification.overridable&&this.overridableProperties.push(u);var x=this.defaultPropertyValues[u]=new Jr(p,void 0),A=this.defaultTransitionablePropertyValues[u]=new oa(p);this.defaultTransitioningPropertyValues[u]=A.untransitioned(),this.defaultPossiblyEvaluatedValues[u]=x.possiblyEvaluate({})}};y("DataDrivenProperty",Vr),y("DataConstantProperty",wr),y("CrossFadedDataDrivenProperty",Bi),y("CrossFadedProperty",Mi),y("ColorRampProperty",lo);var pn="-transition",mi=function(n){function o(u,p){if(n.call(this),this.id=u.id,this.type=u.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},u.type!=="custom"&&(u=u,this.metadata=u.metadata,this.minzoom=u.minzoom,this.maxzoom=u.maxzoom,u.type!=="background"&&(this.source=u.source,this.sourceLayer=u["source-layer"],this.filter=u.filter),p.layout&&(this._unevaluatedLayout=new tn(p.layout)),p.paint)){this._transitionablePaint=new sa(p.paint);for(var x in u.paint)this.setPaintProperty(x,u.paint[x],{validate:!1});for(var A in u.layout)this.setLayoutProperty(A,u.layout[A],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new wn(p.paint)}}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},o.prototype.getLayoutProperty=function(p){return p==="visibility"?this.visibility:this._unevaluatedLayout.getValue(p)},o.prototype.setLayoutProperty=function(p,x,A){if(A===void 0&&(A={}),x!=null){var k="layers."+this.id+".layout."+p;if(this._validate(Fl,k,p,x,A))return}if(p==="visibility"){this.visibility=x;return}this._unevaluatedLayout.setValue(p,x)},o.prototype.getPaintProperty=function(p){return de(p,pn)?this._transitionablePaint.getTransition(p.slice(0,-pn.length)):this._transitionablePaint.getValue(p)},o.prototype.setPaintProperty=function(p,x,A){if(A===void 0&&(A={}),x!=null){var k="layers."+this.id+".paint."+p;if(this._validate(ih,k,p,x,A))return!1}if(de(p,pn))return this._transitionablePaint.setTransition(p.slice(0,-pn.length),x||void 0),!1;var F=this._transitionablePaint._values[p],Y=F.property.specification["property-type"]==="cross-faded-data-driven",j=F.value.isDataDriven(),Q=F.value;this._transitionablePaint.setValue(p,x),this._handleSpecialPaintPropertyUpdate(p);var ie=this._transitionablePaint._values[p].value,ge=ie.isDataDriven();return ge||j||Y||this._handleOverridablePaintPropertyUpdate(p,Q,ie)},o.prototype._handleSpecialPaintPropertyUpdate=function(p){},o.prototype._handleOverridablePaintPropertyUpdate=function(p,x,A){return!1},o.prototype.isHidden=function(p){return this.minzoom&&p=this.maxzoom?!0:this.visibility==="none"},o.prototype.updateTransitions=function(p){this._transitioningPaint=this._transitionablePaint.transitioned(p,this._transitioningPaint)},o.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},o.prototype.recalculate=function(p,x){p.getCrossfadeParameters&&(this._crossfadeParameters=p.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(p,void 0,x)),this.paint=this._transitioningPaint.possiblyEvaluate(p,void 0,x)},o.prototype.serialize=function(){var p={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(p.layout=p.layout||{},p.layout.visibility=this.visibility),Se(p,function(x,A){return x!==void 0&&!(A==="layout"&&!Object.keys(x).length)&&!(A==="paint"&&!Object.keys(x).length)})},o.prototype._validate=function(p,x,A,k,F){return F===void 0&&(F={}),F&&F.validate===!1?!1:rc(this,p.call(ti,{key:x,layerType:this.type,objectKey:A,value:k,styleSpec:Wt,style:{glyphs:!0,sprite:!0}}))},o.prototype.is3D=function(){return!1},o.prototype.isTileClipped=function(){return!1},o.prototype.hasOffscreenPass=function(){return!1},o.prototype.resize=function(){},o.prototype.isStateDependent=function(){for(var p in this.paint._values){var x=this.paint.get(p);if(!(!(x instanceof wi)||!sf(x.property.specification))&&(x.value.kind==="source"||x.value.kind==="composite")&&x.value.isStateDependent)return!0}return!1},o}(dr),jo={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},uo=function(o,u){this._structArray=o,this._pos1=u*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},ci=128,gf=5,Aa=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};Aa.serialize=function(o,u){return o._trim(),u&&(o.isTransferred=!0,u.push(o.arrayBuffer)),{length:o.length,arrayBuffer:o.arrayBuffer}},Aa.deserialize=function(o){var u=Object.create(this.prototype);return u.arrayBuffer=o.arrayBuffer,u.length=o.length,u.capacity=o.arrayBuffer.byteLength/u.bytesPerElement,u._refreshViews(),u},Aa.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Aa.prototype.clear=function(){this.length=0},Aa.prototype.resize=function(o){this.reserve(o),this.length=o},Aa.prototype.reserve=function(o){if(o>this.capacity){this.capacity=Math.max(o,Math.floor(this.capacity*gf),ci),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var u=this.uint8;this._refreshViews(),u&&this.uint8.set(u)}},Aa.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function ui(n,o){o===void 0&&(o=1);var u=0,p=0,x=n.map(function(k){var F=Bl(k.type),Y=u=Hv(u,Math.max(o,F)),j=k.components||1;return p=Math.max(p,F),u+=F*j,{name:k.name,type:k.type,components:j,offset:Y}}),A=Hv(u,Math.max(p,o));return{members:x,size:A,alignment:o}}function Bl(n){return jo[n].BYTES_PER_ELEMENT}function Hv(n,o){return Math.ceil(n/o)*o}var ac=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x){var A=this.length;return this.resize(A+1),this.emplace(A,p,x)},o.prototype.emplace=function(p,x,A){var k=p*2;return this.int16[k+0]=x,this.int16[k+1]=A,p},o}(Aa);ac.prototype.bytesPerElement=4,y("StructArrayLayout2i4",ac);var ey=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k){var F=this.length;return this.resize(F+1),this.emplace(F,p,x,A,k)},o.prototype.emplace=function(p,x,A,k,F){var Y=p*4;return this.int16[Y+0]=x,this.int16[Y+1]=A,this.int16[Y+2]=k,this.int16[Y+3]=F,p},o}(Aa);ey.prototype.bytesPerElement=8,y("StructArrayLayout4i8",ey);var _f=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y){var j=this.length;return this.resize(j+1),this.emplace(j,p,x,A,k,F,Y)},o.prototype.emplace=function(p,x,A,k,F,Y,j){var Q=p*6;return this.int16[Q+0]=x,this.int16[Q+1]=A,this.int16[Q+2]=k,this.int16[Q+3]=F,this.int16[Q+4]=Y,this.int16[Q+5]=j,p},o}(Aa);_f.prototype.bytesPerElement=12,y("StructArrayLayout2i4i12",_f);var oh=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y){var j=this.length;return this.resize(j+1),this.emplace(j,p,x,A,k,F,Y)},o.prototype.emplace=function(p,x,A,k,F,Y,j){var Q=p*4,ie=p*8;return this.int16[Q+0]=x,this.int16[Q+1]=A,this.uint8[ie+4]=k,this.uint8[ie+5]=F,this.uint8[ie+6]=Y,this.uint8[ie+7]=j,p},o}(Aa);oh.prototype.bytesPerElement=8,y("StructArrayLayout2i4ub8",oh);var sh=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x){var A=this.length;return this.resize(A+1),this.emplace(A,p,x)},o.prototype.emplace=function(p,x,A){var k=p*2;return this.float32[k+0]=x,this.float32[k+1]=A,p},o}(Aa);sh.prototype.bytesPerElement=8,y("StructArrayLayout2f8",sh);var Lo=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ie,ge){var he=this.length;return this.resize(he+1),this.emplace(he,p,x,A,k,F,Y,j,Q,ie,ge)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ie,ge,he){var ke=p*10;return this.uint16[ke+0]=x,this.uint16[ke+1]=A,this.uint16[ke+2]=k,this.uint16[ke+3]=F,this.uint16[ke+4]=Y,this.uint16[ke+5]=j,this.uint16[ke+6]=Q,this.uint16[ke+7]=ie,this.uint16[ke+8]=ge,this.uint16[ke+9]=he,p},o}(Aa);Lo.prototype.bytesPerElement=20,y("StructArrayLayout10ui20",Lo);var xf=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ie,ge,he,ke){var qe=this.length;return this.resize(qe+1),this.emplace(qe,p,x,A,k,F,Y,j,Q,ie,ge,he,ke)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe){var ut=p*12;return this.int16[ut+0]=x,this.int16[ut+1]=A,this.int16[ut+2]=k,this.int16[ut+3]=F,this.uint16[ut+4]=Y,this.uint16[ut+5]=j,this.uint16[ut+6]=Q,this.uint16[ut+7]=ie,this.int16[ut+8]=ge,this.int16[ut+9]=he,this.int16[ut+10]=ke,this.int16[ut+11]=qe,p},o}(Aa);xf.prototype.bytesPerElement=24,y("StructArrayLayout4i4ui4i24",xf);var ty=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A){var k=this.length;return this.resize(k+1),this.emplace(k,p,x,A)},o.prototype.emplace=function(p,x,A,k){var F=p*3;return this.float32[F+0]=x,this.float32[F+1]=A,this.float32[F+2]=k,p},o}(Aa);ty.prototype.bytesPerElement=12,y("StructArrayLayout3f12",ty);var ry=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p){var x=this.length;return this.resize(x+1),this.emplace(x,p)},o.prototype.emplace=function(p,x){var A=p*1;return this.uint32[A+0]=x,p},o}(Aa);ry.prototype.bytesPerElement=4,y("StructArrayLayout1ul4",ry);var Gv=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ie){var ge=this.length;return this.resize(ge+1),this.emplace(ge,p,x,A,k,F,Y,j,Q,ie)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ie,ge){var he=p*10,ke=p*5;return this.int16[he+0]=x,this.int16[he+1]=A,this.int16[he+2]=k,this.int16[he+3]=F,this.int16[he+4]=Y,this.int16[he+5]=j,this.uint32[ke+3]=Q,this.uint16[he+8]=ie,this.uint16[he+9]=ge,p},o}(Aa);Gv.prototype.bytesPerElement=20,y("StructArrayLayout6i1ul2ui20",Gv);var Rp=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y){var j=this.length;return this.resize(j+1),this.emplace(j,p,x,A,k,F,Y)},o.prototype.emplace=function(p,x,A,k,F,Y,j){var Q=p*6;return this.int16[Q+0]=x,this.int16[Q+1]=A,this.int16[Q+2]=k,this.int16[Q+3]=F,this.int16[Q+4]=Y,this.int16[Q+5]=j,p},o}(Aa);Rp.prototype.bytesPerElement=12,y("StructArrayLayout2i2i2i12",Rp);var Mu=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F){var Y=this.length;return this.resize(Y+1),this.emplace(Y,p,x,A,k,F)},o.prototype.emplace=function(p,x,A,k,F,Y){var j=p*4,Q=p*8;return this.float32[j+0]=x,this.float32[j+1]=A,this.float32[j+2]=k,this.int16[Q+6]=F,this.int16[Q+7]=Y,p},o}(Aa);Mu.prototype.bytesPerElement=16,y("StructArrayLayout2f1f2i16",Mu);var Jo=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k){var F=this.length;return this.resize(F+1),this.emplace(F,p,x,A,k)},o.prototype.emplace=function(p,x,A,k,F){var Y=p*12,j=p*3;return this.uint8[Y+0]=x,this.uint8[Y+1]=A,this.float32[j+1]=k,this.float32[j+2]=F,p},o}(Aa);Jo.prototype.bytesPerElement=12,y("StructArrayLayout2ub2f12",Jo);var Su=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A){var k=this.length;return this.resize(k+1),this.emplace(k,p,x,A)},o.prototype.emplace=function(p,x,A,k){var F=p*3;return this.uint16[F+0]=x,this.uint16[F+1]=A,this.uint16[F+2]=k,p},o}(Aa);Su.prototype.bytesPerElement=6,y("StructArrayLayout3ui6",Su);var Zv=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,ut,et,kt,_t){var St=this.length;return this.resize(St+1),this.emplace(St,p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,ut,et,kt,_t)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,ut,et,kt,_t,St){var zt=p*24,jt=p*12,vr=p*48;return this.int16[zt+0]=x,this.int16[zt+1]=A,this.uint16[zt+2]=k,this.uint16[zt+3]=F,this.uint32[jt+2]=Y,this.uint32[jt+3]=j,this.uint32[jt+4]=Q,this.uint16[zt+10]=ie,this.uint16[zt+11]=ge,this.uint16[zt+12]=he,this.float32[jt+7]=ke,this.float32[jt+8]=qe,this.uint8[vr+36]=ut,this.uint8[vr+37]=et,this.uint8[vr+38]=kt,this.uint32[jt+10]=_t,this.int16[zt+22]=St,p},o}(Aa);Zv.prototype.bytesPerElement=48,y("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Zv);var Fp=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,ut,et,kt,_t,St,zt,jt,vr,fr,Rr,Mr,Pr,Qr,Fr,Nr){var ya=this.length;return this.resize(ya+1),this.emplace(ya,p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,ut,et,kt,_t,St,zt,jt,vr,fr,Rr,Mr,Pr,Qr,Fr,Nr)},o.prototype.emplace=function(p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,ut,et,kt,_t,St,zt,jt,vr,fr,Rr,Mr,Pr,Qr,Fr,Nr,ya){var jr=p*34,Ya=p*17;return this.int16[jr+0]=x,this.int16[jr+1]=A,this.int16[jr+2]=k,this.int16[jr+3]=F,this.int16[jr+4]=Y,this.int16[jr+5]=j,this.int16[jr+6]=Q,this.int16[jr+7]=ie,this.uint16[jr+8]=ge,this.uint16[jr+9]=he,this.uint16[jr+10]=ke,this.uint16[jr+11]=qe,this.uint16[jr+12]=ut,this.uint16[jr+13]=et,this.uint16[jr+14]=kt,this.uint16[jr+15]=_t,this.uint16[jr+16]=St,this.uint16[jr+17]=zt,this.uint16[jr+18]=jt,this.uint16[jr+19]=vr,this.uint16[jr+20]=fr,this.uint16[jr+21]=Rr,this.uint16[jr+22]=Mr,this.uint32[Ya+12]=Pr,this.float32[Ya+13]=Qr,this.float32[Ya+14]=Fr,this.float32[Ya+15]=Nr,this.float32[Ya+16]=ya,p},o}(Aa);Fp.prototype.bytesPerElement=68,y("StructArrayLayout8i15ui1ul4f68",Fp);var lh=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p){var x=this.length;return this.resize(x+1),this.emplace(x,p)},o.prototype.emplace=function(p,x){var A=p*1;return this.float32[A+0]=x,p},o}(Aa);lh.prototype.bytesPerElement=4,y("StructArrayLayout1f4",lh);var ay=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A){var k=this.length;return this.resize(k+1),this.emplace(k,p,x,A)},o.prototype.emplace=function(p,x,A,k){var F=p*3;return this.int16[F+0]=x,this.int16[F+1]=A,this.int16[F+2]=k,p},o}(Aa);ay.prototype.bytesPerElement=6,y("StructArrayLayout3i6",ay);var bf=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A){var k=this.length;return this.resize(k+1),this.emplace(k,p,x,A)},o.prototype.emplace=function(p,x,A,k){var F=p*2,Y=p*4;return this.uint32[F+0]=x,this.uint16[Y+2]=A,this.uint16[Y+3]=k,p},o}(Aa);bf.prototype.bytesPerElement=8,y("StructArrayLayout1ul2ui8",bf);var Yv=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x){var A=this.length;return this.resize(A+1),this.emplace(A,p,x)},o.prototype.emplace=function(p,x,A){var k=p*2;return this.uint16[k+0]=x,this.uint16[k+1]=A,p},o}(Aa);Yv.prototype.bytesPerElement=4,y("StructArrayLayout2ui4",Yv);var uh=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p){var x=this.length;return this.resize(x+1),this.emplace(x,p)},o.prototype.emplace=function(p,x){var A=p*1;return this.uint16[A+0]=x,p},o}(Aa);uh.prototype.bytesPerElement=2,y("StructArrayLayout1ui2",uh);var ic=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},o.prototype.emplaceBack=function(p,x,A,k){var F=this.length;return this.resize(F+1),this.emplace(F,p,x,A,k)},o.prototype.emplace=function(p,x,A,k,F){var Y=p*4;return this.float32[Y+0]=x,this.float32[Y+1]=A,this.float32[Y+2]=k,this.float32[Y+3]=F,p},o}(Aa);ic.prototype.bytesPerElement=16,y("StructArrayLayout4f16",ic);var y1=function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var u={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return u.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},u.x1.get=function(){return this._structArray.int16[this._pos2+2]},u.y1.get=function(){return this._structArray.int16[this._pos2+3]},u.x2.get=function(){return this._structArray.int16[this._pos2+4]},u.y2.get=function(){return this._structArray.int16[this._pos2+5]},u.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},u.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},u.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},u.anchorPoint.get=function(){return new v(this.anchorPointX,this.anchorPointY)},Object.defineProperties(o.prototype,u),o}(uo);y1.prototype.size=20;var iy=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.get=function(p){return new y1(this,p)},o}(Gv);y("CollisionBoxArray",iy);var nc=function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var u={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return u.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},u.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},u.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},u.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},u.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},u.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},u.segment.get=function(){return this._structArray.uint16[this._pos2+10]},u.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},u.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},u.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},u.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},u.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},u.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},u.placedOrientation.set=function(p){this._structArray.uint8[this._pos1+37]=p},u.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},u.hidden.set=function(p){this._structArray.uint8[this._pos1+38]=p},u.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},u.crossTileID.set=function(p){this._structArray.uint32[this._pos4+10]=p},u.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(o.prototype,u),o}(uo);nc.prototype.size=48;var ny=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.get=function(p){return new nc(this,p)},o}(Zv);y("PlacedSymbolArray",ny);var fh=function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var u={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return u.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},u.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},u.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},u.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},u.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},u.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},u.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},u.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},u.key.get=function(){return this._structArray.uint16[this._pos2+8]},u.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},u.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},u.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},u.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},u.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},u.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},u.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},u.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},u.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},u.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},u.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},u.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},u.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},u.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},u.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},u.crossTileID.set=function(p){this._structArray.uint32[this._pos4+12]=p},u.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},u.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},u.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},u.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(o.prototype,u),o}(uo);fh.prototype.size=68;var g1=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.get=function(p){return new fh(this,p)},o}(Fp);y("SymbolInstanceArray",g1);var _1=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.getoffsetX=function(p){return this.float32[p*1+0]},o}(lh);y("GlyphOffsetArray",_1);var Qs=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.getx=function(p){return this.int16[p*3+0]},o.prototype.gety=function(p){return this.int16[p*3+1]},o.prototype.gettileUnitDistanceFromAnchor=function(p){return this.int16[p*3+2]},o}(ay);y("SymbolLineVertexArray",Qs);var x1=function(n){function o(){n.apply(this,arguments)}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var u={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return u.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},u.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},u.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(o.prototype,u),o}(uo);x1.prototype.size=8;var b1=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.get=function(p){return new x1(this,p)},o}(bf);y("FeatureIndexArray",b1);var s3=ui([{name:"a_pos",components:2,type:"Int16"}],4),w1=s3.members,Tn=function(o){o===void 0&&(o=[]),this.segments=o};Tn.prototype.prepareSegment=function(o,u,p,x){var A=this.segments[this.segments.length-1];return o>Tn.MAX_VERTEX_ARRAY_LENGTH&&Ce("Max vertices per segment is "+Tn.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+o),(!A||A.vertexLength+o>Tn.MAX_VERTEX_ARRAY_LENGTH||A.sortKey!==x)&&(A={vertexOffset:u.length,primitiveOffset:p.length,vertexLength:0,primitiveLength:0},x!==void 0&&(A.sortKey=x),this.segments.push(A)),A},Tn.prototype.get=function(){return this.segments},Tn.prototype.destroy=function(){for(var o=0,u=this.segments;o>>16)*Y&65535)<<16)&4294967295,Q=Q<<15|Q>>>17,Q=(Q&65535)*j+(((Q>>>16)*j&65535)<<16)&4294967295,k^=Q,k=k<<13|k>>>19,F=(k&65535)*5+(((k>>>16)*5&65535)<<16)&4294967295,k=(F&65535)+27492+(((F>>>16)+58964&65535)<<16);switch(Q=0,x){case 3:Q^=(u.charCodeAt(ie+2)&255)<<16;case 2:Q^=(u.charCodeAt(ie+1)&255)<<8;case 1:Q^=u.charCodeAt(ie)&255,Q=(Q&65535)*Y+(((Q>>>16)*Y&65535)<<16)&4294967295,Q=Q<<15|Q>>>17,Q=(Q&65535)*j+(((Q>>>16)*j&65535)<<16)&4294967295,k^=Q}return k^=u.length,k^=k>>>16,k=(k&65535)*2246822507+(((k>>>16)*2246822507&65535)<<16)&4294967295,k^=k>>>13,k=(k&65535)*3266489909+(((k>>>16)*3266489909&65535)<<16)&4294967295,k^=k>>>16,k>>>0}n.exports=o}),d=s(function(n){function o(u,p){for(var x=u.length,A=p^x,k=0,F;x>=4;)F=u.charCodeAt(k)&255|(u.charCodeAt(++k)&255)<<8|(u.charCodeAt(++k)&255)<<16|(u.charCodeAt(++k)&255)<<24,F=(F&65535)*1540483477+(((F>>>16)*1540483477&65535)<<16),F^=F>>>24,F=(F&65535)*1540483477+(((F>>>16)*1540483477&65535)<<16),A=(A&65535)*1540483477+(((A>>>16)*1540483477&65535)<<16)^F,x-=4,++k;switch(x){case 3:A^=(u.charCodeAt(k+2)&255)<<16;case 2:A^=(u.charCodeAt(k+1)&255)<<8;case 1:A^=u.charCodeAt(k)&255,A=(A&65535)*1540483477+(((A>>>16)*1540483477&65535)<<16)}return A^=A>>>13,A=(A&65535)*1540483477+(((A>>>16)*1540483477&65535)<<16),A^=A>>>15,A>>>0}n.exports=o}),w=b,L=b,R=d;w.murmur3=L,w.murmur2=R;var G=function(){this.ids=[],this.positions=[],this.indexed=!1};G.prototype.add=function(o,u,p,x){this.ids.push(re(o)),this.positions.push(u,p,x)},G.prototype.getPositions=function(o){for(var u=re(o),p=0,x=this.ids.length-1;p>1;this.ids[A]>=u?x=A:p=A+1}for(var k=[];this.ids[p]===u;){var F=this.positions[3*p],Y=this.positions[3*p+1],j=this.positions[3*p+2];k.push({index:F,start:Y,end:j}),p++}return k},G.serialize=function(o,u){var p=new Float64Array(o.ids),x=new Uint32Array(o.positions);return ue(p,x,0,p.length-1),u&&u.push(p.buffer,x.buffer),{ids:p,positions:x}},G.deserialize=function(o){var u=new G;return u.ids=o.ids,u.positions=o.positions,u.indexed=!0,u};var K=Math.pow(2,53)-1;function re(n){var o=+n;return!isNaN(o)&&o<=K?o:w(String(n))}function ue(n,o,u,p){for(;u>1],A=u-1,k=p+1;;){do A++;while(n[A]x);if(A>=k)break;be(n,A,k),be(o,3*A,3*k),be(o,3*A+1,3*k+1),be(o,3*A+2,3*k+2)}k-uk.x+1||Yk.y+1)&&Ce("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return u}function Si(n,o){return{type:n.type,id:n.id,properties:n.properties,geometry:o?Va(n):[]}}function La(n,o,u,p,x){n.emplaceBack(o*2+(p+1)/2,u*2+(x+1)/2)}var yi=function(o){this.zoom=o.zoom,this.overscaling=o.overscaling,this.layers=o.layers,this.layerIds=this.layers.map(function(u){return u.id}),this.index=o.index,this.hasPattern=!1,this.layoutVertexArray=new ac,this.indexArray=new Su,this.segments=new Tn,this.programConfigurations=new Ar(o.layers,o.zoom),this.stateDependentLayerIds=this.layers.filter(function(u){return u.isStateDependent()}).map(function(u){return u.id})};yi.prototype.populate=function(o,u,p){var x=this.layers[0],A=[],k=null;x.type==="circle"&&(k=x.layout.get("circle-sort-key"));for(var F=0,Y=o;F=qr||ge<0||ge>=qr)){var he=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,o.sortKey),ke=he.vertexLength;La(this.layoutVertexArray,ie,ge,-1,-1),La(this.layoutVertexArray,ie,ge,1,-1),La(this.layoutVertexArray,ie,ge,1,1),La(this.layoutVertexArray,ie,ge,-1,1),this.indexArray.emplaceBack(ke,ke+1,ke+2),this.indexArray.emplaceBack(ke,ke+3,ke+2),he.vertexLength+=4,he.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,o,p,{},x)},y("CircleBucket",yi,{omit:["layers"]});function na(n,o){for(var u=0;u=3){for(var A=0;A1){if(Ds(n,o))return!0;for(var p=0;p1?n.distSqr(u):n.distSqr(u.sub(o)._mult(x)._add(o))}function Ul(n,o){for(var u=!1,p,x,A,k=0;ko.y!=A.y>o.y&&o.x<(A.x-x.x)*(o.y-x.y)/(A.y-x.y)+x.x&&(u=!u)}return u}function Do(n,o){for(var u=!1,p=0,x=n.length-1;po.y!=k.y>o.y&&o.x<(k.x-A.x)*(o.y-A.y)/(k.y-A.y)+A.x&&(u=!u)}return u}function Vl(n,o,u,p,x){for(var A=0,k=n;A=F.x&&x>=F.y)return!0}var Y=[new v(o,u),new v(o,x),new v(p,x),new v(p,u)];if(n.length>2)for(var j=0,Q=Y;jx.x&&o.x>x.x||n.yx.y&&o.y>x.y)return!1;var A=Le(n,o,u[0]);return A!==Le(n,o,u[1])||A!==Le(n,o,u[2])||A!==Le(n,o,u[3])}function Po(n,o,u){var p=o.paint.get(n).value;return p.kind==="constant"?p.value:u.programConfigurations.get(o.id).getMaxValue(n)}function el(n){return Math.sqrt(n[0]*n[0]+n[1]*n[1])}function ku(n,o,u,p,x){if(!o[0]&&!o[1])return n;var A=v.convert(o)._mult(x);u==="viewport"&&A._rotate(-p);for(var k=[],F=0;F0&&(A=1/Math.sqrt(A)),n[0]=o[0]*A,n[1]=o[1]*A,n[2]=o[2]*A,n}function eY(n,o){return n[0]*o[0]+n[1]*o[1]+n[2]*o[2]}function tY(n,o,u){var p=o[0],x=o[1],A=o[2],k=u[0],F=u[1],Y=u[2];return n[0]=x*Y-A*F,n[1]=A*k-p*Y,n[2]=p*F-x*k,n}function rY(n,o,u){var p=o[0],x=o[1],A=o[2];return n[0]=p*u[0]+x*u[3]+A*u[6],n[1]=p*u[1]+x*u[4]+A*u[7],n[2]=p*u[2]+x*u[5]+A*u[8],n}var aY=c3,dme=function(){var n=Xv();return function(o,u,p,x,A,k){var F,Y;for(u||(u=3),p||(p=0),x?Y=Math.min(x*u+p,o.length):Y=o.length,F=p;Fn.width||x.height>n.height||u.x>n.width-x.width||u.y>n.height-x.height)throw new RangeError("out of range source coordinates for image copy");if(x.width>o.width||x.height>o.height||p.x>o.width-x.width||p.y>o.height-x.height)throw new RangeError("out of range destination coordinates for image copy");for(var k=n.data,F=o.data,Y=0;Y80*u){F=j=n[0],Y=Q=n[1];for(var ke=u;kej&&(j=ie),ge>Q&&(Q=ge);he=Math.max(j-F,Q-Y),he=he!==0?1/he:0}return ly(A,k,u,F,Y,he),k}function cM(n,o,u,p,x){var A,k;if(x===g3(n,o,u,p)>0)for(A=o;A=o;A-=p)k=dM(A,n[A],n[A+1],k);return k&&M1(k,k.next)&&(fy(k),k=k.next),k}function ph(n,o){if(!n)return n;o||(o=n);var u=n,p;do if(p=!1,!u.steiner&&(M1(u,u.next)||An(u.prev,u,u.next)===0)){if(fy(u),u=o=u.prev,u===u.next)break;p=!0}else u=u.next;while(p||u!==o);return o}function ly(n,o,u,p,x,A,k){if(n){!k&&A&&LY(n,p,x,A);for(var F=n,Y,j;n.prev!==n.next;){if(Y=n.prev,j=n.next,A?wY(n,p,x,A):bY(n)){o.push(Y.i/u),o.push(n.i/u),o.push(j.i/u),fy(n),n=j.next,F=j.next;continue}if(n=j,n===F){k?k===1?(n=TY(ph(n),o,u),ly(n,o,u,p,x,A,2)):k===2&&AY(n,o,u,p,x,A):ly(ph(n),o,u,p,x,A,1);break}}}}function bY(n){var o=n.prev,u=n,p=n.next;if(An(o,u,p)>=0)return!1;for(var x=n.next.next;x!==n.prev;){if(Gp(o.x,o.y,u.x,u.y,p.x,p.y,x.x,x.y)&&An(x.prev,x,x.next)>=0)return!1;x=x.next}return!0}function wY(n,o,u,p){var x=n.prev,A=n,k=n.next;if(An(x,A,k)>=0)return!1;for(var F=x.xA.x?x.x>k.x?x.x:k.x:A.x>k.x?A.x:k.x,Q=x.y>A.y?x.y>k.y?x.y:k.y:A.y>k.y?A.y:k.y,ie=m3(F,Y,o,u,p),ge=m3(j,Q,o,u,p),he=n.prevZ,ke=n.nextZ;he&&he.z>=ie&&ke&&ke.z<=ge;){if(he!==n.prev&&he!==n.next&&Gp(x.x,x.y,A.x,A.y,k.x,k.y,he.x,he.y)&&An(he.prev,he,he.next)>=0||(he=he.prevZ,ke!==n.prev&&ke!==n.next&&Gp(x.x,x.y,A.x,A.y,k.x,k.y,ke.x,ke.y)&&An(ke.prev,ke,ke.next)>=0))return!1;ke=ke.nextZ}for(;he&&he.z>=ie;){if(he!==n.prev&&he!==n.next&&Gp(x.x,x.y,A.x,A.y,k.x,k.y,he.x,he.y)&&An(he.prev,he,he.next)>=0)return!1;he=he.prevZ}for(;ke&&ke.z<=ge;){if(ke!==n.prev&&ke!==n.next&&Gp(x.x,x.y,A.x,A.y,k.x,k.y,ke.x,ke.y)&&An(ke.prev,ke,ke.next)>=0)return!1;ke=ke.nextZ}return!0}function TY(n,o,u){var p=n;do{var x=p.prev,A=p.next.next;!M1(x,A)&&hM(x,p,p.next,A)&&uy(x,A)&&uy(A,x)&&(o.push(x.i/u),o.push(p.i/u),o.push(A.i/u),fy(p),fy(p.next),p=n=A),p=p.next}while(p!==n);return ph(p)}function AY(n,o,u,p,x,A){var k=n;do{for(var F=k.next.next;F!==k.prev;){if(k.i!==F.i&&zY(k,F)){var Y=vM(k,F);k=ph(k,k.next),Y=ph(Y,Y.next),ly(k,o,u,p,x,A),ly(Y,o,u,p,x,A);return}F=F.next}k=k.next}while(k!==n)}function MY(n,o,u,p){var x=[],A,k,F,Y,j;for(A=0,k=o.length;A=u.next.y&&u.next.y!==u.y){var F=u.x+(x-u.y)*(u.next.x-u.x)/(u.next.y-u.y);if(F<=p&&F>A){if(A=F,F===p){if(x===u.y)return u;if(x===u.next.y)return u.next}k=u.x=u.x&&u.x>=j&&p!==u.x&&Gp(xk.x||u.x===k.x&&EY(k,u)))&&(k=u,ie=ge)),u=u.next;while(u!==Y);return k}function EY(n,o){return An(n.prev,n,o.prev)<0&&An(o.next,n,n.next)<0}function LY(n,o,u,p){var x=n;do x.z===null&&(x.z=m3(x.x,x.y,o,u,p)),x.prevZ=x.prev,x.nextZ=x.next,x=x.next;while(x!==n);x.prevZ.nextZ=null,x.prevZ=null,DY(x)}function DY(n){var o,u,p,x,A,k,F,Y,j=1;do{for(u=n,n=null,A=null,k=0;u;){for(k++,p=u,F=0,o=0;o0||Y>0&&p;)F!==0&&(Y===0||!p||u.z<=p.z)?(x=u,u=u.nextZ,F--):(x=p,p=p.nextZ,Y--),A?A.nextZ=x:n=x,x.prevZ=A,A=x;u=p}A.nextZ=null,j*=2}while(k>1);return n}function m3(n,o,u,p,x){return n=32767*(n-u)*x,o=32767*(o-p)*x,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,o=(o|o<<8)&16711935,o=(o|o<<4)&252645135,o=(o|o<<2)&858993459,o=(o|o<<1)&1431655765,n|o<<1}function PY(n){var o=n,u=n;do(o.x=0&&(n-k)*(p-F)-(u-k)*(o-F)>=0&&(u-k)*(A-F)-(x-k)*(p-F)>=0}function zY(n,o){return n.next.i!==o.i&&n.prev.i!==o.i&&!IY(n,o)&&(uy(n,o)&&uy(o,n)&&RY(n,o)&&(An(n.prev,n,o.prev)||An(n,o.prev,o))||M1(n,o)&&An(n.prev,n,n.next)>0&&An(o.prev,o,o.next)>0)}function An(n,o,u){return(o.y-n.y)*(u.x-o.x)-(o.x-n.x)*(u.y-o.y)}function M1(n,o){return n.x===o.x&&n.y===o.y}function hM(n,o,u,p){var x=k1(An(n,o,u)),A=k1(An(n,o,p)),k=k1(An(u,p,n)),F=k1(An(u,p,o));return!!(x!==A&&k!==F||x===0&&S1(n,u,o)||A===0&&S1(n,p,o)||k===0&&S1(u,n,p)||F===0&&S1(u,o,p))}function S1(n,o,u){return o.x<=Math.max(n.x,u.x)&&o.x>=Math.min(n.x,u.x)&&o.y<=Math.max(n.y,u.y)&&o.y>=Math.min(n.y,u.y)}function k1(n){return n>0?1:n<0?-1:0}function IY(n,o){var u=n;do{if(u.i!==n.i&&u.next.i!==n.i&&u.i!==o.i&&u.next.i!==o.i&&hM(u,u.next,n,o))return!0;u=u.next}while(u!==n);return!1}function uy(n,o){return An(n.prev,n,n.next)<0?An(n,o,n.next)>=0&&An(n,n.prev,o)>=0:An(n,o,n.prev)<0||An(n,n.next,o)<0}function RY(n,o){var u=n,p=!1,x=(n.x+o.x)/2,A=(n.y+o.y)/2;do u.y>A!=u.next.y>A&&u.next.y!==u.y&&x<(u.next.x-u.x)*(A-u.y)/(u.next.y-u.y)+u.x&&(p=!p),u=u.next;while(u!==n);return p}function vM(n,o){var u=new y3(n.i,n.x,n.y),p=new y3(o.i,o.x,o.y),x=n.next,A=o.prev;return n.next=o,o.prev=n,u.next=x,x.prev=u,p.next=u,u.prev=p,A.next=p,p.prev=A,p}function dM(n,o,u,p){var x=new y3(n,o,u);return p?(x.next=p.next,x.prev=p,p.next.prev=x,p.next=x):(x.prev=x,x.next=x),x}function fy(n){n.next.prev=n.prev,n.prev.next=n.next,n.prevZ&&(n.prevZ.nextZ=n.nextZ),n.nextZ&&(n.nextZ.prevZ=n.prevZ)}function y3(n,o,u){this.i=n,this.x=o,this.y=u,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}A1.deviation=function(n,o,u,p){var x=o&&o.length,A=x?o[0]*u:n.length,k=Math.abs(g3(n,0,A,u));if(x)for(var F=0,Y=o.length;F0&&(p+=n[x-1].length,u.holes.push(p))}return u},p3.default=xY;function FY(n,o,u,p,x){pM(n,o,u||0,p||n.length-1,x||qY)}function pM(n,o,u,p,x){for(;p>u;){if(p-u>600){var A=p-u+1,k=o-u+1,F=Math.log(A),Y=.5*Math.exp(2*F/3),j=.5*Math.sqrt(F*Y*(A-Y)/A)*(k-A/2<0?-1:1),Q=Math.max(u,Math.floor(o-k*Y/A+j)),ie=Math.min(p,Math.floor(o+(A-k)*Y/A+j));pM(n,o,Q,ie,x)}var ge=n[o],he=u,ke=p;for(cy(n,u,o),x(n[p],ge)>0&&cy(n,u,p);he0;)ke--}x(n[u],ge)===0?cy(n,u,ke):(ke++,cy(n,ke,p)),ke<=o&&(u=ke+1),o<=ke&&(p=ke-1)}}function cy(n,o,u){var p=n[o];n[o]=n[u],n[u]=p}function qY(n,o){return no?1:0}function _3(n,o){var u=n.length;if(u<=1)return[n];for(var p=[],x,A,k=0;k1)for(var Y=0;Y>3}if(p--,u===1||u===2)x+=n.readSVarint(),A+=n.readSVarint(),u===1&&(F&&k.push(F),F=[]),F.push(new v(x,A));else if(u===7)F&&F.push(F[0].clone());else throw new Error("unknown command "+u)}return F&&k.push(F),k},Zp.prototype.bbox=function(){var n=this._pbf;n.pos=this._geometry;for(var o=n.readVarint()+n.pos,u=1,p=0,x=0,A=0,k=1/0,F=-1/0,Y=1/0,j=-1/0;n.pos>3}if(p--,u===1||u===2)x+=n.readSVarint(),A+=n.readSVarint(),xF&&(F=x),Aj&&(j=A);else if(u!==7)throw new Error("unknown command "+u)}return[k,Y,F,j]},Zp.prototype.toGeoJSON=function(n,o,u){var p=this.extent*Math.pow(2,u),x=this.extent*n,A=this.extent*o,k=this.loadGeometry(),F=Zp.types[this.type],Y,j;function Q(he){for(var ke=0;ke>3;o=p===1?n.readString():p===2?n.readFloat():p===3?n.readDouble():p===4?n.readVarint64():p===5?n.readVarint():p===6?n.readSVarint():p===7?n.readBoolean():null}return o}gM.prototype.feature=function(n){if(n<0||n>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[n];var o=this._pbf.readVarint()+this._pbf.pos;return new mM(this._pbf,o,this.extent,this._keys,this._values)};var QY=$Y;function $Y(n,o){this.layers=n.readFields(eW,{},o)}function eW(n,o,u){if(n===3){var p=new yM(u,u.readVarint()+u.pos);p.length&&(o[p.name]=p)}}var tW=QY,rW=mM,aW=yM,Yp={VectorTile:tW,VectorTileFeature:rW,VectorTileLayer:aW},iW=Yp.VectorTileFeature.types,nW=500,w3=Math.pow(2,13);function hy(n,o,u,p,x,A,k,F){n.emplaceBack(o,u,Math.floor(p*w3)*2+k,x*w3*2,A*w3*2,Math.round(F))}var Eu=function(o){this.zoom=o.zoom,this.overscaling=o.overscaling,this.layers=o.layers,this.layerIds=this.layers.map(function(u){return u.id}),this.index=o.index,this.hasPattern=!1,this.layoutVertexArray=new _f,this.indexArray=new Su,this.programConfigurations=new Ar(o.layers,o.zoom),this.segments=new Tn,this.stateDependentLayerIds=this.layers.filter(function(u){return u.isStateDependent()}).map(function(u){return u.id})};Eu.prototype.populate=function(o,u,p){this.features=[],this.hasPattern=x3("fill-extrusion",this.layers,u);for(var x=0,A=o;x=1){var St=ut[kt-1];if(!oW(_t,St)){he.vertexLength+4>Tn.MAX_VERTEX_ARRAY_LENGTH&&(he=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var zt=_t.sub(St)._perp()._unit(),jt=St.dist(_t);et+jt>32768&&(et=0),hy(this.layoutVertexArray,_t.x,_t.y,zt.x,zt.y,0,0,et),hy(this.layoutVertexArray,_t.x,_t.y,zt.x,zt.y,0,1,et),et+=jt,hy(this.layoutVertexArray,St.x,St.y,zt.x,zt.y,0,0,et),hy(this.layoutVertexArray,St.x,St.y,zt.x,zt.y,0,1,et);var vr=he.vertexLength;this.indexArray.emplaceBack(vr,vr+2,vr+1),this.indexArray.emplaceBack(vr+1,vr+2,vr+3),he.vertexLength+=4,he.primitiveLength+=2}}}}if(he.vertexLength+j>Tn.MAX_VERTEX_ARRAY_LENGTH&&(he=this.segments.prepareSegment(j,this.layoutVertexArray,this.indexArray)),iW[o.type]==="Polygon"){for(var fr=[],Rr=[],Mr=he.vertexLength,Pr=0,Qr=Y;Prqr)||n.y===o.y&&(n.y<0||n.y>qr)}function sW(n){return n.every(function(o){return o.x<0})||n.every(function(o){return o.x>qr})||n.every(function(o){return o.y<0})||n.every(function(o){return o.y>qr})}var lW=new In({"fill-extrusion-opacity":new wr(Wt["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Vr(Wt["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new wr(Wt["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new wr(Wt["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Bi(Wt["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Vr(Wt["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Vr(Wt["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new wr(Wt["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),uW={paint:lW},fW=function(n){function o(u){n.call(this,u,uW)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.createBucket=function(p){return new Eu(p)},o.prototype.queryRadius=function(){return el(this.paint.get("fill-extrusion-translate"))},o.prototype.is3D=function(){return!0},o.prototype.queryIntersectsFeature=function(p,x,A,k,F,Y,j,Q){var ie=ku(p,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),Y.angle,j),ge=this.paint.get("fill-extrusion-height").evaluate(x,A),he=this.paint.get("fill-extrusion-base").evaluate(x,A),ke=vW(ie,Q,Y,0),qe=hW(k,he,ge,Q),ut=qe[0],et=qe[1];return cW(ut,et,ke)},o}(mi);function vy(n,o){return n.x*o.x+n.y*o.y}function _M(n,o){if(n.length===1){for(var u=0,p=o[u++],x;!x||p.equals(x);)if(x=o[u++],!x)return 1/0;for(;u=2&&o[j-1].equals(o[j-2]);)j--;for(var Q=0;Q0;if(fr&&kt>Q){var Mr=he.dist(ke);if(Mr>2*ie){var Pr=he.sub(he.sub(ke)._mult(ie/Mr)._round());this.updateDistance(ke,Pr),this.addCurrentVertex(Pr,ut,0,0,ge),ke=Pr}}var Qr=ke&&qe,Fr=Qr?p:Y?"butt":x;if(Qr&&Fr==="round"&&(jtA&&(Fr="bevel"),Fr==="bevel"&&(jt>2&&(Fr="flipbevel"),jt100)_t=et.mult(-1);else{var Nr=jt*ut.add(et).mag()/ut.sub(et).mag();_t._perp()._mult(Nr*(Rr?-1:1))}this.addCurrentVertex(he,_t,0,0,ge),this.addCurrentVertex(he,_t.mult(-1),0,0,ge)}else if(Fr==="bevel"||Fr==="fakeround"){var ya=-Math.sqrt(jt*jt-1),jr=Rr?ya:0,Ya=Rr?0:ya;if(ke&&this.addCurrentVertex(he,ut,jr,Ya,ge),Fr==="fakeround")for(var _i=Math.round(vr*180/Math.PI/bW),Wa=1;Wa<_i;Wa++){var Xa=Wa/_i;if(Xa!==.5){var Ha=Xa-.5,ki=1.0904+St*(-3.2452+St*(3.55645-St*1.43519)),Ii=.848013+St*(-1.06021+St*.215638);Xa=Xa+Xa*Ha*(Xa-1)*(ki*Ha*Ha+Ii)}var an=et.sub(ut)._mult(Xa)._add(ut)._unit()._mult(Rr?-1:1);this.addHalfVertex(he,an.x,an.y,!1,Rr,0,ge)}qe&&this.addCurrentVertex(he,et,-jr,-Ya,ge)}else if(Fr==="butt")this.addCurrentVertex(he,_t,0,0,ge);else if(Fr==="square"){var cn=ke?1:-1;this.addCurrentVertex(he,_t,cn,cn,ge)}else Fr==="round"&&(ke&&(this.addCurrentVertex(he,ut,0,0,ge),this.addCurrentVertex(he,ut,1,1,ge,!0)),qe&&(this.addCurrentVertex(he,et,-1,-1,ge,!0),this.addCurrentVertex(he,et,0,0,ge)));if(fr&&kt2*ie){var kn=he.add(qe.sub(he)._mult(ie/Zn)._round());this.updateDistance(he,kn),this.addCurrentVertex(kn,et,0,0,ge),he=kn}}}}},zo.prototype.addCurrentVertex=function(o,u,p,x,A,k){k===void 0&&(k=!1);var F=u.x+u.y*p,Y=u.y-u.x*p,j=-u.x+u.y*x,Q=-u.y-u.x*x;this.addHalfVertex(o,F,Y,k,!1,p,A),this.addHalfVertex(o,j,Q,k,!0,-x,A),this.distance>wM/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(o,u,p,x,A,k))},zo.prototype.addHalfVertex=function(o,u,p,x,A,k,F){var Y=o.x,j=o.y,Q=this.lineClips?this.scaledDistance*(wM-1):this.scaledDistance,ie=Q*bM;if(this.layoutVertexArray.emplaceBack((Y<<1)+(x?1:0),(j<<1)+(A?1:0),Math.round(xM*u)+128,Math.round(xM*p)+128,(k===0?0:k<0?-1:1)+1|(ie&63)<<2,ie>>6),this.lineClips){var ge=this.scaledDistance-this.lineClips.start,he=this.lineClips.end-this.lineClips.start,ke=ge/he;this.layoutVertexArray2.emplaceBack(ke,this.lineClipsArray.length)}var qe=F.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,qe),F.primitiveLength++),A?this.e2=qe:this.e1=qe},zo.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},zo.prototype.updateDistance=function(o,u){this.distance+=o.dist(u),this.updateScaledDistance()},y("LineBucket",zo,{omit:["layers","patternFeatures"]});var TW=new In({"line-cap":new wr(Wt.layout_line["line-cap"]),"line-join":new Vr(Wt.layout_line["line-join"]),"line-miter-limit":new wr(Wt.layout_line["line-miter-limit"]),"line-round-limit":new wr(Wt.layout_line["line-round-limit"]),"line-sort-key":new Vr(Wt.layout_line["line-sort-key"])}),AW=new In({"line-opacity":new Vr(Wt.paint_line["line-opacity"]),"line-color":new Vr(Wt.paint_line["line-color"]),"line-translate":new wr(Wt.paint_line["line-translate"]),"line-translate-anchor":new wr(Wt.paint_line["line-translate-anchor"]),"line-width":new Vr(Wt.paint_line["line-width"]),"line-gap-width":new Vr(Wt.paint_line["line-gap-width"]),"line-offset":new Vr(Wt.paint_line["line-offset"]),"line-blur":new Vr(Wt.paint_line["line-blur"]),"line-dasharray":new Mi(Wt.paint_line["line-dasharray"]),"line-pattern":new Bi(Wt.paint_line["line-pattern"]),"line-gradient":new lo(Wt.paint_line["line-gradient"])}),TM={paint:AW,layout:TW},MW=function(n){function o(){n.apply(this,arguments)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.possiblyEvaluate=function(p,x){return x=new Xt(Math.floor(x.zoom),{now:x.now,fadeDuration:x.fadeDuration,zoomHistory:x.zoomHistory,transition:x.transition}),n.prototype.possiblyEvaluate.call(this,p,x)},o.prototype.evaluate=function(p,x,A,k){return x=H({},x,{zoom:Math.floor(x.zoom)}),n.prototype.evaluate.call(this,p,x,A,k)},o}(Vr),AM=new MW(TM.paint.properties["line-width"].specification);AM.useIntegerZoom=!0;var SW=function(n){function o(u){n.call(this,u,TM),this.gradientVersion=0}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype._handleSpecialPaintPropertyUpdate=function(p){if(p==="line-gradient"){var x=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=x._styleExpression.expression instanceof Ts,this.gradientVersion=(this.gradientVersion+1)%S}},o.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},o.prototype.recalculate=function(p,x){n.prototype.recalculate.call(this,p,x),this.paint._values["line-floorwidth"]=AM.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,p)},o.prototype.createBucket=function(p){return new zo(p)},o.prototype.queryRadius=function(p){var x=p,A=MM(Po("line-width",this,x),Po("line-gap-width",this,x)),k=Po("line-offset",this,x);return A/2+Math.abs(k)+el(this.paint.get("line-translate"))},o.prototype.queryIntersectsFeature=function(p,x,A,k,F,Y,j){var Q=ku(p,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Y.angle,j),ie=j/2*MM(this.paint.get("line-width").evaluate(x,A),this.paint.get("line-gap-width").evaluate(x,A)),ge=this.paint.get("line-offset").evaluate(x,A);return ge&&(k=kW(k,ge*j)),Rn(Q,k,ie)},o.prototype.isTileClipped=function(){return!0},o}(mi);function MM(n,o){return o>0?o+2*n:n}function kW(n,o){for(var u=[],p=new v(0,0),x=0;x":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};function RW(n){for(var o="",u=0;u>1,Q=-7,ie=u?x-1:0,ge=u?-1:1,he=n[o+ie];for(ie+=ge,A=he&(1<<-Q)-1,he>>=-Q,Q+=F;Q>0;A=A*256+n[o+ie],ie+=ge,Q-=8);for(k=A&(1<<-Q)-1,A>>=-Q,Q+=p;Q>0;k=k*256+n[o+ie],ie+=ge,Q-=8);if(A===0)A=1-j;else{if(A===Y)return k?NaN:(he?-1:1)*(1/0);k=k+Math.pow(2,p),A=A-j}return(he?-1:1)*k*Math.pow(2,A-p)},qW=function(n,o,u,p,x,A){var k,F,Y,j=A*8-x-1,Q=(1<>1,ge=x===23?Math.pow(2,-24)-Math.pow(2,-77):0,he=p?0:A-1,ke=p?1:-1,qe=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(F=isNaN(o)?1:0,k=Q):(k=Math.floor(Math.log(o)/Math.LN2),o*(Y=Math.pow(2,-k))<1&&(k--,Y*=2),k+ie>=1?o+=ge/Y:o+=ge*Math.pow(2,1-ie),o*Y>=2&&(k++,Y/=2),k+ie>=Q?(F=0,k=Q):k+ie>=1?(F=(o*Y-1)*Math.pow(2,x),k=k+ie):(F=o*Math.pow(2,ie-1)*Math.pow(2,x),k=0));x>=8;n[u+he]=F&255,he+=ke,F/=256,x-=8);for(k=k<0;n[u+he]=k&255,he+=ke,k/=256,j-=8);n[u+he-ke]|=qe*128},C1={read:FW,write:qW},E1=zi;function zi(n){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(n)?n:new Uint8Array(n||0),this.pos=0,this.type=0,this.length=this.buf.length}zi.Varint=0,zi.Fixed64=1,zi.Bytes=2,zi.Fixed32=5;var T3=65536*65536,kM=1/T3,NW=12,CM=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");zi.prototype={destroy:function(){this.buf=null},readFields:function(n,o,u){for(u=u||this.length;this.pos>3,A=this.pos;this.type=p&7,n(x,o,this),this.pos===A&&this.skip(p)}return o},readMessage:function(n,o){return this.readFields(n,o,this.readVarint()+this.pos)},readFixed32:function(){var n=L1(this.buf,this.pos);return this.pos+=4,n},readSFixed32:function(){var n=LM(this.buf,this.pos);return this.pos+=4,n},readFixed64:function(){var n=L1(this.buf,this.pos)+L1(this.buf,this.pos+4)*T3;return this.pos+=8,n},readSFixed64:function(){var n=L1(this.buf,this.pos)+LM(this.buf,this.pos+4)*T3;return this.pos+=8,n},readFloat:function(){var n=C1.read(this.buf,this.pos,!0,23,4);return this.pos+=4,n},readDouble:function(){var n=C1.read(this.buf,this.pos,!0,52,8);return this.pos+=8,n},readVarint:function(n){var o=this.buf,u,p;return p=o[this.pos++],u=p&127,p<128||(p=o[this.pos++],u|=(p&127)<<7,p<128)||(p=o[this.pos++],u|=(p&127)<<14,p<128)||(p=o[this.pos++],u|=(p&127)<<21,p<128)?u:(p=o[this.pos],u|=(p&15)<<28,BW(u,n,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var n=this.readVarint();return n%2===1?(n+1)/-2:n/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var n=this.readVarint()+this.pos,o=this.pos;return this.pos=n,n-o>=NW&&CM?$W(this.buf,o,n):QW(this.buf,o,n)},readBytes:function(){var n=this.readVarint()+this.pos,o=this.buf.subarray(this.pos,n);return this.pos=n,o},readPackedVarint:function(n,o){if(this.type!==zi.Bytes)return n.push(this.readVarint(o));var u=sc(this);for(n=n||[];this.pos127;);else if(o===zi.Bytes)this.pos=this.readVarint()+this.pos;else if(o===zi.Fixed32)this.pos+=4;else if(o===zi.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+o)},writeTag:function(n,o){this.writeVarint(n<<3|o)},realloc:function(n){for(var o=this.length||16;o268435455||n<0){OW(n,this);return}this.realloc(4),this.buf[this.pos++]=n&127|(n>127?128:0),!(n<=127)&&(this.buf[this.pos++]=(n>>>=7)&127|(n>127?128:0),!(n<=127)&&(this.buf[this.pos++]=(n>>>=7)&127|(n>127?128:0),!(n<=127)&&(this.buf[this.pos++]=n>>>7&127)))},writeSVarint:function(n){this.writeVarint(n<0?-n*2-1:n*2)},writeBoolean:function(n){this.writeVarint(!!n)},writeString:function(n){n=String(n),this.realloc(n.length*4),this.pos++;var o=this.pos;this.pos=eX(this.buf,n,this.pos);var u=this.pos-o;u>=128&&EM(o,u,this),this.pos=o-1,this.writeVarint(u),this.pos+=u},writeFloat:function(n){this.realloc(4),C1.write(this.buf,n,this.pos,!0,23,4),this.pos+=4},writeDouble:function(n){this.realloc(8),C1.write(this.buf,n,this.pos,!0,52,8),this.pos+=8},writeBytes:function(n){var o=n.length;this.writeVarint(o),this.realloc(o);for(var u=0;u=128&&EM(u,p,this),this.pos=u-1,this.writeVarint(p),this.pos+=p},writeMessage:function(n,o,u){this.writeTag(n,zi.Bytes),this.writeRawMessage(o,u)},writePackedVarint:function(n,o){o.length&&this.writeMessage(n,HW,o)},writePackedSVarint:function(n,o){o.length&&this.writeMessage(n,GW,o)},writePackedBoolean:function(n,o){o.length&&this.writeMessage(n,WW,o)},writePackedFloat:function(n,o){o.length&&this.writeMessage(n,ZW,o)},writePackedDouble:function(n,o){o.length&&this.writeMessage(n,YW,o)},writePackedFixed32:function(n,o){o.length&&this.writeMessage(n,XW,o)},writePackedSFixed32:function(n,o){o.length&&this.writeMessage(n,jW,o)},writePackedFixed64:function(n,o){o.length&&this.writeMessage(n,JW,o)},writePackedSFixed64:function(n,o){o.length&&this.writeMessage(n,KW,o)},writeBytesField:function(n,o){this.writeTag(n,zi.Bytes),this.writeBytes(o)},writeFixed32Field:function(n,o){this.writeTag(n,zi.Fixed32),this.writeFixed32(o)},writeSFixed32Field:function(n,o){this.writeTag(n,zi.Fixed32),this.writeSFixed32(o)},writeFixed64Field:function(n,o){this.writeTag(n,zi.Fixed64),this.writeFixed64(o)},writeSFixed64Field:function(n,o){this.writeTag(n,zi.Fixed64),this.writeSFixed64(o)},writeVarintField:function(n,o){this.writeTag(n,zi.Varint),this.writeVarint(o)},writeSVarintField:function(n,o){this.writeTag(n,zi.Varint),this.writeSVarint(o)},writeStringField:function(n,o){this.writeTag(n,zi.Bytes),this.writeString(o)},writeFloatField:function(n,o){this.writeTag(n,zi.Fixed32),this.writeFloat(o)},writeDoubleField:function(n,o){this.writeTag(n,zi.Fixed64),this.writeDouble(o)},writeBooleanField:function(n,o){this.writeVarintField(n,!!o)}};function BW(n,o,u){var p=u.buf,x,A;if(A=p[u.pos++],x=(A&112)>>4,A<128||(A=p[u.pos++],x|=(A&127)<<3,A<128)||(A=p[u.pos++],x|=(A&127)<<10,A<128)||(A=p[u.pos++],x|=(A&127)<<17,A<128)||(A=p[u.pos++],x|=(A&127)<<24,A<128)||(A=p[u.pos++],x|=(A&1)<<31,A<128))return Wp(n,x,o);throw new Error("Expected varint not more than 10 bytes")}function sc(n){return n.type===zi.Bytes?n.readVarint()+n.pos:n.pos+1}function Wp(n,o,u){return u?o*4294967296+(n>>>0):(o>>>0)*4294967296+(n>>>0)}function OW(n,o){var u,p;if(n>=0?(u=n%4294967296|0,p=n/4294967296|0):(u=~(-n%4294967296),p=~(-n/4294967296),u^4294967295?u=u+1|0:(u=0,p=p+1|0)),n>=18446744073709552e3||n<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");o.realloc(10),UW(u,p,o),VW(p,o)}function UW(n,o,u){u.buf[u.pos++]=n&127|128,n>>>=7,u.buf[u.pos++]=n&127|128,n>>>=7,u.buf[u.pos++]=n&127|128,n>>>=7,u.buf[u.pos++]=n&127|128,n>>>=7,u.buf[u.pos]=n&127}function VW(n,o){var u=(n&7)<<4;o.buf[o.pos++]|=u|((n>>>=3)?128:0),n&&(o.buf[o.pos++]=n&127|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=n&127|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=n&127|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=n&127|((n>>>=7)?128:0),n&&(o.buf[o.pos++]=n&127)))))}function EM(n,o,u){var p=o<=16383?1:o<=2097151?2:o<=268435455?3:Math.floor(Math.log(o)/(Math.LN2*7));u.realloc(p);for(var x=u.pos-1;x>=n;x--)u.buf[x+p]=u.buf[x]}function HW(n,o){for(var u=0;u>>8,n[u+2]=o>>>16,n[u+3]=o>>>24}function LM(n,o){return(n[o]|n[o+1]<<8|n[o+2]<<16)+(n[o+3]<<24)}function QW(n,o,u){for(var p="",x=o;x239?4:A>223?3:A>191?2:1;if(x+F>u)break;var Y,j,Q;F===1?A<128&&(k=A):F===2?(Y=n[x+1],(Y&192)===128&&(k=(A&31)<<6|Y&63,k<=127&&(k=null))):F===3?(Y=n[x+1],j=n[x+2],(Y&192)===128&&(j&192)===128&&(k=(A&15)<<12|(Y&63)<<6|j&63,(k<=2047||k>=55296&&k<=57343)&&(k=null))):F===4&&(Y=n[x+1],j=n[x+2],Q=n[x+3],(Y&192)===128&&(j&192)===128&&(Q&192)===128&&(k=(A&15)<<18|(Y&63)<<12|(j&63)<<6|Q&63,(k<=65535||k>=1114112)&&(k=null))),k===null?(k=65533,F=1):k>65535&&(k-=65536,p+=String.fromCharCode(k>>>10&1023|55296),k=56320|k&1023),p+=String.fromCharCode(k),x+=F}return p}function $W(n,o,u){return CM.decode(n.subarray(o,u))}function eX(n,o,u){for(var p=0,x,A;p55295&&x<57344)if(A)if(x<56320){n[u++]=239,n[u++]=191,n[u++]=189,A=x;continue}else x=A-55296<<10|x-56320|65536,A=null;else{x>56319||p+1===o.length?(n[u++]=239,n[u++]=191,n[u++]=189):A=x;continue}else A&&(n[u++]=239,n[u++]=191,n[u++]=189,A=null);x<128?n[u++]=x:(x<2048?n[u++]=x>>6|192:(x<65536?n[u++]=x>>12|224:(n[u++]=x>>18|240,n[u++]=x>>12&63|128),n[u++]=x>>6&63|128),n[u++]=x&63|128)}return u}var A3=3;function tX(n,o,u){n===1&&u.readMessage(rX,o)}function rX(n,o,u){if(n===3){var p=u.readMessage(aX,{}),x=p.id,A=p.bitmap,k=p.width,F=p.height,Y=p.left,j=p.top,Q=p.advance;o.push({id:x,bitmap:new jv({width:k+2*A3,height:F+2*A3},A),metrics:{width:k,height:F,left:Y,top:j,advance:Q}})}}function aX(n,o,u){n===1?o.id=u.readVarint():n===2?o.bitmap=u.readBytes():n===3?o.width=u.readVarint():n===4?o.height=u.readVarint():n===5?o.left=u.readSVarint():n===6?o.top=u.readSVarint():n===7&&(o.advance=u.readVarint())}function iX(n){return new E1(n).readFields(tX,[])}var DM=A3;function PM(n){for(var o=0,u=0,p=0,x=n;p=0;he--){var ke=F[he];if(!(ge.w>ke.w||ge.h>ke.h)){if(ge.x=ke.x,ge.y=ke.y,j=Math.max(j,ge.y+ge.h),Y=Math.max(Y,ge.x+ge.w),ge.w===ke.w&&ge.h===ke.h){var qe=F.pop();he=0&&x>=o&&wf[this.text.charCodeAt(x)];x--)p--;this.text=this.text.substring(o,p),this.sectionIndex=this.sectionIndex.slice(o,p)},bo.prototype.substring=function(o,u){var p=new bo;return p.text=this.text.substring(o,u),p.sectionIndex=this.sectionIndex.slice(o,u),p.sections=this.sections,p},bo.prototype.toString=function(){return this.text},bo.prototype.getMaxScale=function(){var o=this;return this.sectionIndex.reduce(function(u,p){return Math.max(u,o.sections[p].scale)},0)},bo.prototype.addTextSection=function(o,u){this.text+=o.text,this.sections.push(jp.forText(o.scale,o.fontStack||u));for(var p=this.sections.length-1,x=0;x=IM?null:++this.imageSectionID:(this.imageSectionID=zM,this.imageSectionID)};function oX(n,o){for(var u=[],p=n.text,x=0,A=0,k=o;A=0,Q=0,ie=0;ie0&&kn>Rr&&(Rr=kn)}else{var Xa=u[Pr.fontStack],Ha=Xa&&Xa[Fr];if(Ha&&Ha.rect)jr=Ha.rect,ya=Ha.metrics;else{var ki=o[Pr.fontStack],Ii=ki&&ki[Fr];if(!Ii)continue;ya=Ii.metrics}Nr=(zt-Pr.scale)*Qn}Wa?(n.verticalizable=!0,fr.push({glyph:Fr,imageName:Ya,x:ge,y:he+Nr,vertical:Wa,scale:Pr.scale,fontStack:Pr.fontStack,sectionIndex:Qr,metrics:ya,rect:jr}),ge+=_i*Pr.scale+j):(fr.push({glyph:Fr,imageName:Ya,x:ge,y:he+Nr,vertical:Wa,scale:Pr.scale,fontStack:Pr.fontStack,sectionIndex:Qr,metrics:ya,rect:jr}),ge+=ya.advance*Pr.scale+j)}if(fr.length!==0){var wo=ge-j;ke=Math.max(wo,ke),fX(fr,0,fr.length-1,ut,Rr)}ge=0;var To=A*zt+Rr;vr.lineOffset=Math.max(Rr,jt),he+=To,qe=Math.max(To,qe),++et}var Yn=he-yy,Io=S3(k),Ro=Io.horizontalAlign,Fn=Io.verticalAlign;cX(n.positionedLines,ut,Ro,Fn,ke,qe,A,Yn,x.length),n.top+=-Fn*Yn,n.bottom=n.top+Yn,n.left+=-Ro*ke,n.right=n.left+ke}function fX(n,o,u,p,x){if(!(!p&&!x))for(var A=n[u],k=A.metrics.advance*A.scale,F=(n[u].x+k)*p,Y=o;Y<=u;Y++)n[Y].x-=F,n[Y].y+=x}function cX(n,o,u,p,x,A,k,F,Y){var j=(o-u)*x,Q=0;A!==k?Q=-F*p-yy:Q=(-p*Y+.5)*k;for(var ie=0,ge=n;ie-u/2;){if(k--,k<0)return!1;F-=n[k].dist(A),A=n[k]}F+=n[k].dist(n[k+1]),k++;for(var Y=[],j=0;Fp;)j-=Y.shift().angleDelta;if(j>x)return!1;k++,F+=ie.dist(ge)}return!0}function HM(n){for(var o=0,u=0;uj){var ke=(j-Y)/he,qe=dn(ie.x,ge.x,ke),ut=dn(ie.y,ge.y,ke),et=new Jp(qe,ut,ge.angleTo(ie),Q);return et._round(),!k||VM(n,et,F,k,o)?et:void 0}Y+=he}}function pX(n,o,u,p,x,A,k,F,Y){var j=GM(p,A,k),Q=ZM(p,x),ie=Q*k,ge=n[0].x===0||n[0].x===Y||n[0].y===0||n[0].y===Y;o-ie=0&&St=0&&zt=0&&ge+j<=Q){var jt=new Jp(St,zt,kt,ke);jt._round(),(!p||VM(n,jt,A,p,x))&&he.push(jt)}}ie+=et}return!F&&!he.length&&!k&&(he=YM(n,ie/2,u,p,x,A,k,!0,Y)),he}function WM(n,o,u,p,x){for(var A=[],k=0;k=p&&ie.x>=p)&&(Q.x>=p?Q=new v(p,Q.y+(ie.y-Q.y)*((p-Q.x)/(ie.x-Q.x)))._round():ie.x>=p&&(ie=new v(p,Q.y+(ie.y-Q.y)*((p-Q.x)/(ie.x-Q.x)))._round()),!(Q.y>=x&&ie.y>=x)&&(Q.y>=x?Q=new v(Q.x+(ie.x-Q.x)*((x-Q.y)/(ie.y-Q.y)),x)._round():ie.y>=x&&(ie=new v(Q.x+(ie.x-Q.x)*((x-Q.y)/(ie.y-Q.y)),x)._round()),(!Y||!Q.equals(Y[Y.length-1]))&&(Y=[Q],A.push(Y)),Y.push(ie)))))}return A}var Kp=ds;function XM(n,o,u,p){var x=[],A=n.image,k=A.pixelRatio,F=A.paddedRect.w-2*Kp,Y=A.paddedRect.h-2*Kp,j=n.right-n.left,Q=n.bottom-n.top,ie=A.stretchX||[[0,F]],ge=A.stretchY||[[0,Y]],he=function(Xa,Ha){return Xa+Ha[1]-Ha[0]},ke=ie.reduce(he,0),qe=ge.reduce(he,0),ut=F-ke,et=Y-qe,kt=0,_t=ke,St=0,zt=qe,jt=0,vr=ut,fr=0,Rr=et;if(A.content&&p){var Mr=A.content;kt=z1(ie,0,Mr[0]),St=z1(ge,0,Mr[1]),_t=z1(ie,Mr[0],Mr[2]),zt=z1(ge,Mr[1],Mr[3]),jt=Mr[0]-kt,fr=Mr[1]-St,vr=Mr[2]-Mr[0]-_t,Rr=Mr[3]-Mr[1]-zt}var Pr=function(Xa,Ha,ki,Ii){var an=I1(Xa.stretch-kt,_t,j,n.left),cn=R1(Xa.fixed-jt,vr,Xa.stretch,ke),Zn=I1(Ha.stretch-St,zt,Q,n.top),kn=R1(Ha.fixed-fr,Rr,Ha.stretch,qe),wo=I1(ki.stretch-kt,_t,j,n.left),To=R1(ki.fixed-jt,vr,ki.stretch,ke),Yn=I1(Ii.stretch-St,zt,Q,n.top),Io=R1(Ii.fixed-fr,Rr,Ii.stretch,qe),Ro=new v(an,Zn),Fn=new v(wo,Zn),Fo=new v(wo,Yn),zs=new v(an,Yn),fc=new v(cn/k,kn/k),gh=new v(To/k,Io/k),_h=o*Math.PI/180;if(_h){var xh=Math.sin(_h),n0=Math.cos(_h),Hl=[n0,-xh,xh,n0];Ro._matMult(Hl),Fn._matMult(Hl),zs._matMult(Hl),Fo._matMult(Hl)}var U1=Xa.stretch+Xa.fixed,R3=ki.stretch+ki.fixed,V1=Ha.stretch+Ha.fixed,F3=Ii.stretch+Ii.fixed,rl={x:A.paddedRect.x+Kp+U1,y:A.paddedRect.y+Kp+V1,w:R3-U1,h:F3-V1},o0=vr/k/j,H1=Rr/k/Q;return{tl:Ro,tr:Fn,bl:zs,br:Fo,tex:rl,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:fc,pixelOffsetBR:gh,minFontScaleX:o0,minFontScaleY:H1,isSDF:u}};if(!p||!A.stretchX&&!A.stretchY)x.push(Pr({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:F+1},{fixed:0,stretch:Y+1}));else for(var Qr=jM(ie,ut,ke),Fr=jM(ge,et,qe),Nr=0;Nr0&&(ke=Math.max(10,ke),this.circleDiameter=ke)}else{var qe=k.top*F-Y,ut=k.bottom*F+Y,et=k.left*F-Y,kt=k.right*F+Y,_t=k.collisionPadding;if(_t&&(et-=_t[0]*F,qe-=_t[1]*F,kt+=_t[2]*F,ut+=_t[3]*F),Q){var St=new v(et,qe),zt=new v(kt,qe),jt=new v(et,ut),vr=new v(kt,ut),fr=Q*Math.PI/180;St._rotate(fr),zt._rotate(fr),jt._rotate(fr),vr._rotate(fr),et=Math.min(St.x,zt.x,jt.x,vr.x),kt=Math.max(St.x,zt.x,jt.x,vr.x),qe=Math.min(St.y,zt.y,jt.y,vr.y),ut=Math.max(St.y,zt.y,jt.y,vr.y)}o.emplaceBack(u.x,u.y,et,qe,kt,ut,p,x,A)}this.boxEndIndex=o.length},Qp=function(o,u){if(o===void 0&&(o=[]),u===void 0&&(u=yX),this.data=o,this.length=this.data.length,this.compare=u,this.length>0)for(var p=(this.length>>1)-1;p>=0;p--)this._down(p)};Qp.prototype.push=function(o){this.data.push(o),this.length++,this._up(this.length-1)},Qp.prototype.pop=function(){if(this.length!==0){var o=this.data[0],u=this.data.pop();return this.length--,this.length>0&&(this.data[0]=u,this._down(0)),o}},Qp.prototype.peek=function(){return this.data[0]},Qp.prototype._up=function(o){for(var u=this,p=u.data,x=u.compare,A=p[o];o>0;){var k=o-1>>1,F=p[k];if(x(A,F)>=0)break;p[o]=F,o=k}p[o]=A},Qp.prototype._down=function(o){for(var u=this,p=u.data,x=u.compare,A=this.length>>1,k=p[o];o=0)break;p[o]=Y,o=F}p[o]=k};function yX(n,o){return no?1:0}function gX(n,o,u){o===void 0&&(o=1),u===void 0&&(u=!1);for(var p=1/0,x=1/0,A=-1/0,k=-1/0,F=n[0],Y=0;YA)&&(A=j.x),(!Y||j.y>k)&&(k=j.y)}var Q=A-p,ie=k-x,ge=Math.min(Q,ie),he=ge/2,ke=new Qp([],_X);if(ge===0)return new v(p,x);for(var qe=p;qeet.d||!et.d)&&(et=_t,u&&console.log("found best %d after %d probes",Math.round(1e4*_t.d)/1e4,kt)),!(_t.max-et.d<=o)&&(he=_t.h/2,ke.push(new $p(_t.p.x-he,_t.p.y-he,he,n)),ke.push(new $p(_t.p.x+he,_t.p.y-he,he,n)),ke.push(new $p(_t.p.x-he,_t.p.y+he,he,n)),ke.push(new $p(_t.p.x+he,_t.p.y+he,he,n)),kt+=4)}return u&&(console.log("num probes: "+kt),console.log("best distance: "+et.d)),et.p}function _X(n,o){return o.max-n.max}function $p(n,o,u,p){this.p=new v(n,o),this.h=u,this.d=xX(this.p,p),this.max=this.d+this.h*Math.SQRT2}function xX(n,o){for(var u=!1,p=1/0,x=0;xn.y!=Q.y>n.y&&n.x<(Q.x-j.x)*(n.y-j.y)/(Q.y-j.y)+j.x&&(u=!u),p=Math.min(p,oc(n,j,Q))}return(u?1:-1)*Math.sqrt(p)}function bX(n){for(var o=0,u=0,p=0,x=n[0],A=0,k=x.length,F=k-1;A=qr||Hl.y<0||Hl.y>=qr||AX(n,Hl,n0,u,p,x,Fr,n.layers[0],n.collisionBoxArray,o.index,o.sourceLayerIndex,n.index,et,zt,fr,Y,_t,jt,Rr,he,o,A,j,Q,k)};if(Mr==="line")for(var ya=0,jr=WM(o.geometry,0,0,qr,qr);ya1){var Zn=dX(cn,vr,u.vertical||ke,p,qe,kt);Zn&&Nr(cn,Zn)}}else if(o.type==="Polygon")for(var kn=0,wo=_3(o.geometry,0);knmh&&Ce(n.layerIds[0]+': Value for "text-size" is >= '+gy+'. Reduce your "text-size".')):ut.kind==="composite"&&(et=[Lu*he.compositeTextSizes[0].evaluate(k,{},ke),Lu*he.compositeTextSizes[1].evaluate(k,{},ke)],(et[0]>mh||et[1]>mh)&&Ce(n.layerIds[0]+': Value for "text-size" is >= '+gy+'. Reduce your "text-size".')),n.addSymbols(n.text,qe,et,F,A,k,j,o,Y.lineStartIndex,Y.lineLength,ge,ke);for(var kt=0,_t=Q;kt<_t.length;kt+=1){var St=_t[kt];ie[St]=n.text.placedSymbolArray.length-1}return qe.length*4}function QM(n){for(var o in n)return n[o];return null}function AX(n,o,u,p,x,A,k,F,Y,j,Q,ie,ge,he,ke,qe,ut,et,kt,_t,St,zt,jt,vr,fr){var Rr,Mr=n.addToLineVertexArray(o,u),Pr,Qr,Fr,Nr,ya=0,jr=0,Ya=0,_i=0,Wa=-1,Xa=-1,Ha={},ki=w(""),Ii=0,an=0;if(F._unevaluatedLayout.getValue("text-radial-offset")===void 0?(Rr=F.layout.get("text-offset").evaluate(St,{},vr).map(function(by){return by*Qn}),Ii=Rr[0],an=Rr[1]):(Ii=F.layout.get("text-radial-offset").evaluate(St,{},vr)*Qn,an=C3),n.allowVerticalPlacement&&p.vertical){var cn=F.layout.get("text-rotate").evaluate(St,{},vr),Zn=cn+90,kn=p.vertical;Fr=new F1(Y,o,j,Q,ie,kn,ge,he,ke,Zn),k&&(Nr=new F1(Y,o,j,Q,ie,k,ut,et,ke,Zn))}if(x){var wo=F.layout.get("icon-rotate").evaluate(St,{}),To=F.layout.get("icon-text-fit")!=="none",Yn=XM(x,wo,jt,To),Io=k?XM(k,wo,jt,To):void 0;Qr=new F1(Y,o,j,Q,ie,x,ut,et,!1,wo),ya=Yn.length*4;var Ro=n.iconSizeData,Fn=null;Ro.kind==="source"?(Fn=[Lu*F.layout.get("icon-size").evaluate(St,{})],Fn[0]>mh&&Ce(n.layerIds[0]+': Value for "icon-size" is >= '+gy+'. Reduce your "icon-size".')):Ro.kind==="composite"&&(Fn=[Lu*zt.compositeIconSizes[0].evaluate(St,{},vr),Lu*zt.compositeIconSizes[1].evaluate(St,{},vr)],(Fn[0]>mh||Fn[1]>mh)&&Ce(n.layerIds[0]+': Value for "icon-size" is >= '+gy+'. Reduce your "icon-size".')),n.addSymbols(n.icon,Yn,Fn,_t,kt,St,!1,o,Mr.lineStartIndex,Mr.lineLength,-1,vr),Wa=n.icon.placedSymbolArray.length-1,Io&&(jr=Io.length*4,n.addSymbols(n.icon,Io,Fn,_t,kt,St,Ps.vertical,o,Mr.lineStartIndex,Mr.lineLength,-1,vr),Xa=n.icon.placedSymbolArray.length-1)}for(var Fo in p.horizontal){var zs=p.horizontal[Fo];if(!Pr){ki=w(zs.text);var fc=F.layout.get("text-rotate").evaluate(St,{},vr);Pr=new F1(Y,o,j,Q,ie,zs,ge,he,ke,fc)}var gh=zs.positionedLines.length===1;if(Ya+=KM(n,o,zs,A,F,ke,St,qe,Mr,p.vertical?Ps.horizontal:Ps.horizontalOnly,gh?Object.keys(p.horizontal):[Fo],Ha,Wa,zt,vr),gh)break}p.vertical&&(_i+=KM(n,o,p.vertical,A,F,ke,St,qe,Mr,Ps.vertical,["vertical"],Ha,Xa,zt,vr));var _h=Pr?Pr.boxStartIndex:n.collisionBoxArray.length,xh=Pr?Pr.boxEndIndex:n.collisionBoxArray.length,n0=Fr?Fr.boxStartIndex:n.collisionBoxArray.length,Hl=Fr?Fr.boxEndIndex:n.collisionBoxArray.length,U1=Qr?Qr.boxStartIndex:n.collisionBoxArray.length,R3=Qr?Qr.boxEndIndex:n.collisionBoxArray.length,V1=Nr?Nr.boxStartIndex:n.collisionBoxArray.length,F3=Nr?Nr.boxEndIndex:n.collisionBoxArray.length,rl=-1,o0=function(by,d7){return by&&by.circleDiameter?Math.max(by.circleDiameter,d7):d7};rl=o0(Pr,rl),rl=o0(Fr,rl),rl=o0(Qr,rl),rl=o0(Nr,rl);var H1=rl>-1?1:0;H1&&(rl*=fr/Qn),n.glyphOffsetArray.length>=gi.MAX_GLYPHS&&Ce("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),St.sortKey!==void 0&&n.addToSortKeyRanges(n.symbolInstances.length,St.sortKey),n.symbolInstances.emplaceBack(o.x,o.y,Ha.right>=0?Ha.right:-1,Ha.center>=0?Ha.center:-1,Ha.left>=0?Ha.left:-1,Ha.vertical||-1,Wa,Xa,ki,_h,xh,n0,Hl,U1,R3,V1,F3,j,Ya,_i,ya,jr,H1,0,ge,Ii,an,rl)}function MX(n,o,u,p){var x=n.compareText;if(!(o in x))x[o]=[];else for(var A=x[o],k=A.length-1;k>=0;k--)if(p.dist(A[k])0)&&(k.value.kind!=="constant"||k.value.value.length>0),Q=Y.value.kind!=="constant"||!!Y.value.value||Object.keys(Y.parameters).length>0,ie=A.get("symbol-sort-key");if(this.features=[],!(!j&&!Q)){for(var ge=u.iconDependencies,he=u.glyphDependencies,ke=u.availableImages,qe=new Xt(this.zoom),ut=0,et=o;ut=0;for(var _i=0,Wa=Rr.sections;_i=0;Y--)k[Y]={x:u[Y].x,y:u[Y].y,tileUnitDistanceFromAnchor:A},Y>0&&(A+=u[Y-1].dist(u[Y]));for(var j=0;j0},gi.prototype.hasIconData=function(){return this.icon.segments.get().length>0},gi.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},gi.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},gi.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},gi.prototype.addIndicesForPlacedSymbol=function(o,u){for(var p=o.placedSymbolArray.get(u),x=p.vertexStartIndex+p.numGlyphs*4,A=p.vertexStartIndex;A1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(o),this.sortedAngle=o,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var p=0,x=this.symbolInstanceIndexes;p=0&&j.indexOf(F)===Y&&u.addIndicesForPlacedSymbol(u.text,F)}),k.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,k.verticalPlacedTextSymbolIndex),k.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,k.placedIconSymbolIndex),k.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,k.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},y("SymbolBucket",gi,{omit:["layers","collisionBoxArray","features","compareText"]}),gi.MAX_GLYPHS=65535,gi.addDynamicAttributes=L3;function EX(n,o){return o.replace(/{([^{}]+)}/g,function(u,p){return p in n?String(n[p]):""})}var LX=new In({"symbol-placement":new wr(Wt.layout_symbol["symbol-placement"]),"symbol-spacing":new wr(Wt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new wr(Wt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Vr(Wt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new wr(Wt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new wr(Wt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new wr(Wt.layout_symbol["icon-ignore-placement"]),"icon-optional":new wr(Wt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new wr(Wt.layout_symbol["icon-rotation-alignment"]),"icon-size":new Vr(Wt.layout_symbol["icon-size"]),"icon-text-fit":new wr(Wt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new wr(Wt.layout_symbol["icon-text-fit-padding"]),"icon-image":new Vr(Wt.layout_symbol["icon-image"]),"icon-rotate":new Vr(Wt.layout_symbol["icon-rotate"]),"icon-padding":new wr(Wt.layout_symbol["icon-padding"]),"icon-keep-upright":new wr(Wt.layout_symbol["icon-keep-upright"]),"icon-offset":new Vr(Wt.layout_symbol["icon-offset"]),"icon-anchor":new Vr(Wt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new wr(Wt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new wr(Wt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new wr(Wt.layout_symbol["text-rotation-alignment"]),"text-field":new Vr(Wt.layout_symbol["text-field"]),"text-font":new Vr(Wt.layout_symbol["text-font"]),"text-size":new Vr(Wt.layout_symbol["text-size"]),"text-max-width":new Vr(Wt.layout_symbol["text-max-width"]),"text-line-height":new wr(Wt.layout_symbol["text-line-height"]),"text-letter-spacing":new Vr(Wt.layout_symbol["text-letter-spacing"]),"text-justify":new Vr(Wt.layout_symbol["text-justify"]),"text-radial-offset":new Vr(Wt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new wr(Wt.layout_symbol["text-variable-anchor"]),"text-anchor":new Vr(Wt.layout_symbol["text-anchor"]),"text-max-angle":new wr(Wt.layout_symbol["text-max-angle"]),"text-writing-mode":new wr(Wt.layout_symbol["text-writing-mode"]),"text-rotate":new Vr(Wt.layout_symbol["text-rotate"]),"text-padding":new wr(Wt.layout_symbol["text-padding"]),"text-keep-upright":new wr(Wt.layout_symbol["text-keep-upright"]),"text-transform":new Vr(Wt.layout_symbol["text-transform"]),"text-offset":new Vr(Wt.layout_symbol["text-offset"]),"text-allow-overlap":new wr(Wt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new wr(Wt.layout_symbol["text-ignore-placement"]),"text-optional":new wr(Wt.layout_symbol["text-optional"])}),DX=new In({"icon-opacity":new Vr(Wt.paint_symbol["icon-opacity"]),"icon-color":new Vr(Wt.paint_symbol["icon-color"]),"icon-halo-color":new Vr(Wt.paint_symbol["icon-halo-color"]),"icon-halo-width":new Vr(Wt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Vr(Wt.paint_symbol["icon-halo-blur"]),"icon-translate":new wr(Wt.paint_symbol["icon-translate"]),"icon-translate-anchor":new wr(Wt.paint_symbol["icon-translate-anchor"]),"text-opacity":new Vr(Wt.paint_symbol["text-opacity"]),"text-color":new Vr(Wt.paint_symbol["text-color"],{runtimeType:bs,getOverride:function(n){return n.textColor},hasOverride:function(n){return!!n.textColor}}),"text-halo-color":new Vr(Wt.paint_symbol["text-halo-color"]),"text-halo-width":new Vr(Wt.paint_symbol["text-halo-width"]),"text-halo-blur":new Vr(Wt.paint_symbol["text-halo-blur"]),"text-translate":new wr(Wt.paint_symbol["text-translate"]),"text-translate-anchor":new wr(Wt.paint_symbol["text-translate-anchor"])}),D3={paint:DX,layout:LX},r0=function(o){this.type=o.property.overrides?o.property.overrides.runtimeType:ef,this.defaultValue=o};r0.prototype.evaluate=function(o){if(o.formattedSection){var u=this.defaultValue.property.overrides;if(u&&u.hasOverride(o.formattedSection))return u.getOverride(o.formattedSection)}return o.feature&&o.featureState?this.defaultValue.evaluate(o.feature,o.featureState):this.defaultValue.property.specification.default},r0.prototype.eachChild=function(o){if(!this.defaultValue.isConstant()){var u=this.defaultValue.value;o(u._styleExpression.expression)}},r0.prototype.outputDefined=function(){return!1},r0.prototype.serialize=function(){return null},y("FormatSectionOverride",r0,{omit:["defaultValue"]});var PX=function(n){function o(u){n.call(this,u,D3)}return n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o,o.prototype.recalculate=function(p,x){if(n.prototype.recalculate.call(this,p,x),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var A=this.layout.get("text-writing-mode");if(A){for(var k=[],F=0,Y=A;F",targetMapId:x,sourceMapId:k.mapId})}}},a0.prototype.receive=function(o){var u=o.data,p=u.id;if(p&&!(u.targetMapId&&this.mapId!==u.targetMapId))if(u.type===""){delete this.tasks[p];var x=this.cancelCallbacks[p];delete this.cancelCallbacks[p],x&&x()}else it()||u.mustQueue?(this.tasks[p]=u,this.taskQueue.push(p),this.invoker.trigger()):this.processTask(p,u)},a0.prototype.process=function(){if(this.taskQueue.length){var o=this.taskQueue.shift(),u=this.tasks[o];delete this.tasks[o],this.taskQueue.length&&this.invoker.trigger(),u&&this.processTask(o,u)}},a0.prototype.processTask=function(o,u){var p=this;if(u.type===""){var x=this.callbacks[o];delete this.callbacks[o],x&&(u.error?x(Z(u.error)):x(null,Z(u.data)))}else{var A=!1,k=Et(this.globalScope)?void 0:[],F=u.hasCallback?function(ge,he){A=!0,delete p.cancelCallbacks[o],p.target.postMessage({id:o,type:"",sourceMapId:p.mapId,error:ge?U(ge):null,data:U(he,k)},k)}:function(ge){A=!0},Y=null,j=Z(u.data);if(this.parent[u.type])Y=this.parent[u.type](u.sourceMapId,j,F);else if(this.parent.getWorkerSource){var Q=u.type.split("."),ie=this.parent.getWorkerSource(u.sourceMapId,Q[0],j.source);Y=ie[Q[1]](j,F)}else F(new Error("Could not find function "+u.type));!A&&Y&&Y.cancel&&(this.cancelCallbacks[o]=Y.cancel)}},a0.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function HX(n,o,u){o=Math.pow(2,u)-o-1;var p=a7(n*256,o*256,u),x=a7((n+1)*256,(o+1)*256,u);return p[0]+","+p[1]+","+x[0]+","+x[1]}function a7(n,o,u){var p=2*Math.PI*6378137/256/Math.pow(2,u),x=n*p-2*Math.PI*6378137/2,A=o*p-2*Math.PI*6378137/2;return[x,A]}var Mn=function(o,u){o&&(u?this.setSouthWest(o).setNorthEast(u):o.length===4?this.setSouthWest([o[0],o[1]]).setNorthEast([o[2],o[3]]):this.setSouthWest(o[0]).setNorthEast(o[1]))};Mn.prototype.setNorthEast=function(o){return this._ne=o instanceof Gi?new Gi(o.lng,o.lat):Gi.convert(o),this},Mn.prototype.setSouthWest=function(o){return this._sw=o instanceof Gi?new Gi(o.lng,o.lat):Gi.convert(o),this},Mn.prototype.extend=function(o){var u=this._sw,p=this._ne,x,A;if(o instanceof Gi)x=o,A=o;else if(o instanceof Mn){if(x=o._sw,A=o._ne,!x||!A)return this}else{if(Array.isArray(o))if(o.length===4||o.every(Array.isArray)){var k=o;return this.extend(Mn.convert(k))}else{var F=o;return this.extend(Gi.convert(F))}return this}return!u&&!p?(this._sw=new Gi(x.lng,x.lat),this._ne=new Gi(A.lng,A.lat)):(u.lng=Math.min(x.lng,u.lng),u.lat=Math.min(x.lat,u.lat),p.lng=Math.max(A.lng,p.lng),p.lat=Math.max(A.lat,p.lat)),this},Mn.prototype.getCenter=function(){return new Gi((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Mn.prototype.getSouthWest=function(){return this._sw},Mn.prototype.getNorthEast=function(){return this._ne},Mn.prototype.getNorthWest=function(){return new Gi(this.getWest(),this.getNorth())},Mn.prototype.getSouthEast=function(){return new Gi(this.getEast(),this.getSouth())},Mn.prototype.getWest=function(){return this._sw.lng},Mn.prototype.getSouth=function(){return this._sw.lat},Mn.prototype.getEast=function(){return this._ne.lng},Mn.prototype.getNorth=function(){return this._ne.lat},Mn.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Mn.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Mn.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Mn.prototype.contains=function(o){var u=Gi.convert(o),p=u.lng,x=u.lat,A=this._sw.lat<=x&&x<=this._ne.lat,k=this._sw.lng<=p&&p<=this._ne.lng;return this._sw.lng>this._ne.lng&&(k=this._sw.lng>=p&&p>=this._ne.lng),A&&k},Mn.convert=function(o){return!o||o instanceof Mn?o:new Mn(o)};var i7=63710088e-1,Gi=function(o,u){if(isNaN(o)||isNaN(u))throw new Error("Invalid LngLat object: ("+o+", "+u+")");if(this.lng=+o,this.lat=+u,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Gi.prototype.wrap=function(){return new Gi(B(this.lng,-180,180),this.lat)},Gi.prototype.toArray=function(){return[this.lng,this.lat]},Gi.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Gi.prototype.distanceTo=function(o){var u=Math.PI/180,p=this.lat*u,x=o.lat*u,A=Math.sin(p)*Math.sin(x)+Math.cos(p)*Math.cos(x)*Math.cos((o.lng-this.lng)*u),k=i7*Math.acos(Math.min(A,1));return k},Gi.prototype.toBounds=function(o){o===void 0&&(o=0);var u=40075017,p=360*o/u,x=p/Math.cos(Math.PI/180*this.lat);return new Mn(new Gi(this.lng-x,this.lat-p),new Gi(this.lng+x,this.lat+p))},Gi.convert=function(o){if(o instanceof Gi)return o;if(Array.isArray(o)&&(o.length===2||o.length===3))return new Gi(Number(o[0]),Number(o[1]));if(!Array.isArray(o)&&typeof o=="object"&&o!==null)return new Gi(Number("lng"in o?o.lng:o.lon),Number(o.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var n7=2*Math.PI*i7;function o7(n){return n7*Math.cos(n*Math.PI/180)}function s7(n){return(180+n)/360}function l7(n){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+n*Math.PI/360)))/360}function u7(n,o){return n/o7(o)}function GX(n){return n*360-180}function z3(n){var o=180-n*360;return 360/Math.PI*Math.atan(Math.exp(o*Math.PI/180))-90}function ZX(n,o){return n*o7(z3(o))}function YX(n){return 1/Math.cos(n*Math.PI/180)}var Kv=function(o,u,p){p===void 0&&(p=0),this.x=+o,this.y=+u,this.z=+p};Kv.fromLngLat=function(o,u){u===void 0&&(u=0);var p=Gi.convert(o);return new Kv(s7(p.lng),l7(p.lat),u7(u,p.lat))},Kv.prototype.toLngLat=function(){return new Gi(GX(this.x),z3(this.y))},Kv.prototype.toAltitude=function(){return ZX(this.z,this.y)},Kv.prototype.meterInMercatorCoordinateUnits=function(){return 1/n7*YX(z3(this.y))};var Qv=function(o,u,p){this.z=o,this.x=u,this.y=p,this.key=xy(0,o,o,u,p)};Qv.prototype.equals=function(o){return this.z===o.z&&this.x===o.x&&this.y===o.y},Qv.prototype.url=function(o,u){var p=HX(this.x,this.y,this.z),x=WX(this.z,this.x,this.y);return o[(this.x+this.y)%o.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(u==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",x).replace("{bbox-epsg-3857}",p)},Qv.prototype.getTilePoint=function(o){var u=Math.pow(2,this.z);return new v((o.x*u-this.x)*qr,(o.y*u-this.y)*qr)},Qv.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var f7=function(o,u){this.wrap=o,this.canonical=u,this.key=xy(o,u.z,u.z,u.x,u.y)},Sn=function(o,u,p,x,A){this.overscaledZ=o,this.wrap=u,this.canonical=new Qv(p,+x,+A),this.key=xy(u,o,p,x,A)};Sn.prototype.equals=function(o){return this.overscaledZ===o.overscaledZ&&this.wrap===o.wrap&&this.canonical.equals(o.canonical)},Sn.prototype.scaledTo=function(o){var u=this.canonical.z-o;return o>this.canonical.z?new Sn(o,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Sn(o,this.wrap,o,this.canonical.x>>u,this.canonical.y>>u)},Sn.prototype.calculateScaledKey=function(o,u){var p=this.canonical.z-o;return o>this.canonical.z?xy(this.wrap*+u,o,this.canonical.z,this.canonical.x,this.canonical.y):xy(this.wrap*+u,o,o,this.canonical.x>>p,this.canonical.y>>p)},Sn.prototype.isChildOf=function(o){if(o.wrap!==this.wrap)return!1;var u=this.canonical.z-o.canonical.z;return o.overscaledZ===0||o.overscaledZ>u&&o.canonical.y===this.canonical.y>>u},Sn.prototype.children=function(o){if(this.overscaledZ>=o)return[new Sn(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var u=this.canonical.z+1,p=this.canonical.x*2,x=this.canonical.y*2;return[new Sn(u,this.wrap,u,p,x),new Sn(u,this.wrap,u,p+1,x),new Sn(u,this.wrap,u,p,x+1),new Sn(u,this.wrap,u,p+1,x+1)]},Sn.prototype.isLessThan=function(o){return this.wrapo.wrap?!1:this.overscaledZo.overscaledZ?!1:this.canonical.xo.canonical.x?!1:this.canonical.y0;A--)x=1<=this.dim+1||u<-1||u>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(u+1)*this.stride+(o+1)},lc.prototype._unpackMapbox=function(o,u,p){return(o*256*256+u*256+p)/10-1e4},lc.prototype._unpackTerrarium=function(o,u,p){return o*256+u+p/256-32768},lc.prototype.getPixels=function(){return new es({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},lc.prototype.backfillBorder=function(o,u,p){if(this.dim!==o.dim)throw new Error("dem dimension mismatch");var x=u*this.dim,A=u*this.dim+this.dim,k=p*this.dim,F=p*this.dim+this.dim;switch(u){case-1:x=A-1;break;case 1:A=x+1;break}switch(p){case-1:k=F-1;break;case 1:F=k+1;break}for(var Y=-u*this.dim,j=-p*this.dim,Q=k;Q=0&&ie[3]>=0&&Y.insert(F,ie[0],ie[1],ie[2],ie[3])}},uc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Yp.VectorTile(new E1(this.rawTileData)).layers,this.sourceLayerCoder=new B1(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},uc.prototype.query=function(o,u,p,x){var A=this;this.loadVTLayers();for(var k=o.params||{},F=qr/o.tileSize/o.scale,Y=cf(k.filter),j=o.queryGeometry,Q=o.queryPadding*F,ie=h7(j),ge=this.grid.query(ie.minX-Q,ie.minY-Q,ie.maxX+Q,ie.maxY+Q),he=h7(o.cameraQueryGeometry),ke=this.grid3D.query(he.minX-Q,he.minY-Q,he.maxX+Q,he.maxY+Q,function(jt,vr,fr,Rr){return Vl(o.cameraQueryGeometry,jt-Q,vr-Q,fr+Q,Rr+Q)}),qe=0,ut=ke;qex)A=!1;else if(!u)A=!0;else if(this.expirationTime=ea.maxzoom)&&ea.visibility!=="none"){T(dr,this.zoom,ce);var _a=Dt[ea.id]=ea.createBucket({index:mt.bucketLayerIDs.length,layers:dr,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Yr,sourceID:this.source});_a.populate(Br,Rt,this.tileID.canonical),mt.bucketLayerIDs.push(dr.map(function(Ga){return Ga.id}))}}}}var ir,Ai,Ca,si,fa=a.mapObject(Rt.glyphDependencies,function(Ga){return Object.keys(Ga).map(Number)});Object.keys(fa).length?Ee.send("getGlyphs",{uid:this.uid,stacks:fa},function(Ga,Kn){ir||(ir=Ga,Ai=Kn,_s.call(rt))}):Ai={};var Dn=Object.keys(Rt.iconDependencies);Dn.length?Ee.send("getImages",{icons:Dn,source:this.source,tileID:this.tileID,type:"icons"},function(Ga,Kn){ir||(ir=Ga,Ca=Kn,_s.call(rt))}):Ca={};var Co=Object.keys(Rt.patternDependencies);Co.length?Ee.send("getImages",{icons:Co,source:this.source,tileID:this.tileID,type:"patterns"},function(Ga,Kn){ir||(ir=Ga,si=Kn,_s.call(rt))}):si={},_s.call(this);function _s(){if(ir)return Ne(ir);if(Ai&&Ca&&si){var Ga=new m(Ai),Kn=new a.ImageAtlas(Ca,si);for(var hu in Dt){var Vi=Dt[hu];Vi instanceof a.SymbolBucket?(T(Vi.layers,this.zoom,ce),a.performSymbolLayout(Vi,Ai,Ga.positions,Ca,Kn.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Vi.hasPattern&&(Vi instanceof a.LineBucket||Vi instanceof a.FillBucket||Vi instanceof a.FillExtrusionBucket)&&(T(Vi.layers,this.zoom,ce),Vi.addFeatures(Rt,this.tileID.canonical,Kn.patternPositions))}this.status="done",Ne(null,{buckets:a.values(Dt).filter(function(pl){return!pl.isEmpty()}),featureIndex:mt,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Ga.image,imageAtlas:Kn,glyphMap:this.returnDependencies?Ai:null,iconMap:this.returnDependencies?Ca:null,glyphPositions:this.returnDependencies?Ga.positions:null})}}};function T(le,ee,se){for(var ce=new a.EvaluationParameters(ee),Ee=0,Ne=le;Ee=0!=!!ee&&le.reverse()}var O=a.vectorTile.VectorTileFeature.prototype.toGeoJSON,H=function(ee){this._feature=ee,this.extent=a.EXTENT,this.type=ee.type,this.properties=ee.tags,"id"in ee&&!isNaN(ee.id)&&(this.id=parseInt(ee.id,10))};H.prototype.loadGeometry=function(){if(this._feature.type===1){for(var ee=[],se=0,ce=this._feature.geometry;se>31}function it(le,ee){for(var se=le.loadGeometry(),ce=le.type,Ee=0,Ne=0,rt=se.length,He=0;He>1;Et(le,ee,rt,ce,Ee,Ne%2),We(le,ee,se,ce,rt-1,Ne+1),We(le,ee,se,rt+1,Ee,Ne+1)}}function Et(le,ee,se,ce,Ee,Ne){for(;Ee>ce;){if(Ee-ce>600){var rt=Ee-ce+1,He=se-ce+1,mt=Math.log(rt),Dt=.5*Math.exp(2*mt/3),Rt=.5*Math.sqrt(mt*Dt*(rt-Dt)/rt)*(He-rt/2<0?-1:1),$t=Math.max(ce,Math.floor(se-He*Dt/rt+Rt)),Yt=Math.min(Ee,Math.floor(se+(rt-He)*Dt/rt+Rt));Et(le,ee,se,$t,Yt,Ne)}var Tr=ee[2*se+Ne],Yr=ce,Br=Ee;for(nt(le,ee,ce,se),ee[2*Ee+Ne]>Tr&&nt(le,ee,ce,Ee);YrTr;)Br--}ee[2*ce+Ne]===Tr?nt(le,ee,ce,Br):(Br++,nt(le,ee,Br,Ee)),Br<=se&&(ce=Br+1),se<=Br&&(Ee=Br-1)}}function nt(le,ee,se,ce){vt(le,se,ce),vt(ee,2*se,2*ce),vt(ee,2*se+1,2*ce+1)}function vt(le,ee,se){var ce=le[ee];le[ee]=le[se],le[se]=ce}function xt(le,ee,se,ce,Ee,Ne,rt){for(var He=[0,le.length-1,0],mt=[],Dt,Rt;He.length;){var $t=He.pop(),Yt=He.pop(),Tr=He.pop();if(Yt-Tr<=rt){for(var Yr=Tr;Yr<=Yt;Yr++)Dt=ee[2*Yr],Rt=ee[2*Yr+1],Dt>=se&&Dt<=Ee&&Rt>=ce&&Rt<=Ne&&mt.push(le[Yr]);continue}var Br=Math.floor((Tr+Yt)/2);Dt=ee[2*Br],Rt=ee[2*Br+1],Dt>=se&&Dt<=Ee&&Rt>=ce&&Rt<=Ne&&mt.push(le[Br]);var ca=($t+1)%2;($t===0?se<=Dt:ce<=Rt)&&(He.push(Tr),He.push(Br-1),He.push(ca)),($t===0?Ee>=Dt:Ne>=Rt)&&(He.push(Br+1),He.push(Yt),He.push(ca))}return mt}function pt(le,ee,se,ce,Ee,Ne){for(var rt=[0,le.length-1,0],He=[],mt=Ee*Ee;rt.length;){var Dt=rt.pop(),Rt=rt.pop(),$t=rt.pop();if(Rt-$t<=Ne){for(var Yt=$t;Yt<=Rt;Yt++)ve(ee[2*Yt],ee[2*Yt+1],se,ce)<=mt&&He.push(le[Yt]);continue}var Tr=Math.floor(($t+Rt)/2),Yr=ee[2*Tr],Br=ee[2*Tr+1];ve(Yr,Br,se,ce)<=mt&&He.push(le[Tr]);var ca=(Dt+1)%2;(Dt===0?se-Ee<=Yr:ce-Ee<=Br)&&(rt.push($t),rt.push(Tr-1),rt.push(ca)),(Dt===0?se+Ee>=Yr:ce+Ee>=Br)&&(rt.push(Tr+1),rt.push(Rt),rt.push(ca))}return He}function ve(le,ee,se,ce){var Ee=le-se,Ne=ee-ce;return Ee*Ee+Ne*Ne}var ze=function(le){return le[0]},pe=function(le){return le[1]},at=function(ee,se,ce,Ee,Ne){se===void 0&&(se=ze),ce===void 0&&(ce=pe),Ee===void 0&&(Ee=64),Ne===void 0&&(Ne=Float64Array),this.nodeSize=Ee,this.points=ee;for(var rt=ee.length<65536?Uint16Array:Uint32Array,He=this.ids=new rt(ee.length),mt=this.coords=new Ne(ee.length*2),Dt=0;Dt=Ee;Rt--){var $t=+Date.now();mt=this._cluster(mt,Rt),this.trees[Rt]=new at(mt,Be,ft,rt,Float32Array),ce&&console.log("z%d: %d clusters in %dms",Rt,mt.length,+Date.now()-$t)}return ce&&console.timeEnd("total time"),this},Xe.prototype.getClusters=function(ee,se){var ce=((ee[0]+180)%360+360)%360-180,Ee=Math.max(-90,Math.min(90,ee[1])),Ne=ee[2]===180?180:((ee[2]+180)%360+360)%360-180,rt=Math.max(-90,Math.min(90,ee[3]));if(ee[2]-ee[0]>=360)ce=-180,Ne=180;else if(ce>Ne){var He=this.getClusters([ce,Ee,180,rt],se),mt=this.getClusters([-180,Ee,Ne,rt],se);return He.concat(mt)}for(var Dt=this.trees[this._limitZoom(se)],Rt=Dt.range(Gt(ce),Ct(rt),Gt(Ne),Ct(Ee)),$t=[],Yt=0,Tr=Rt;Ytse&&(Br+=ii.numPoints||1)}if(Br>=mt){for(var Wr=$t.x*Yr,dr=$t.y*Yr,ea=He&&Yr>1?this._map($t,!0):null,_a=(Rt<<5)+(se+1)+this.points.length,ir=0,Ai=Tr;ir1)for(var Dn=0,Co=Tr;Dn>5},Xe.prototype._getOriginZoom=function(ee){return(ee-this.points.length)%32},Xe.prototype._map=function(ee,se){if(ee.numPoints)return se?Ot({},ee.properties):ee.properties;var ce=this.points[ee.index].properties,Ee=this.options.map(ce);return se&&Ee===ce?Ot({},Ee):Ee};function Ft(le,ee,se,ce,Ee){return{x:le,y:ee,zoom:1/0,id:se,parentId:-1,numPoints:ce,properties:Ee}}function Lt(le,ee){var se=le.geometry.coordinates,ce=se[0],Ee=se[1];return{x:Gt(ce),y:Ct(Ee),zoom:1/0,index:ee,parentId:-1}}function Tt(le){return{type:"Feature",id:le.id,properties:It(le),geometry:{type:"Point",coordinates:[Mt(le.x),Ut(le.y)]}}}function It(le){var ee=le.numPoints,se=ee>=1e4?Math.round(ee/1e3)+"k":ee>=1e3?Math.round(ee/100)/10+"k":ee;return Ot(Ot({},le.properties),{cluster:!0,cluster_id:le.id,point_count:ee,point_count_abbreviated:se})}function Gt(le){return le/360+.5}function Ct(le){var ee=Math.sin(le*Math.PI/180),se=.5-.25*Math.log((1+ee)/(1-ee))/Math.PI;return se<0?0:se>1?1:se}function Mt(le){return(le-.5)*360}function Ut(le){var ee=(180-le*360)*Math.PI/180;return 360*Math.atan(Math.exp(ee))/Math.PI-90}function Ot(le,ee){for(var se in ee)le[se]=ee[se];return le}function Be(le){return le.x}function ft(le){return le.y}function or(le,ee,se,ce){for(var Ee=ce,Ne=se-ee>>1,rt=se-ee,He,mt=le[ee],Dt=le[ee+1],Rt=le[se],$t=le[se+1],Yt=ee+3;YtEe)He=Yt,Ee=Tr;else if(Tr===Ee){var Yr=Math.abs(Yt-Ne);Yrce&&(He-ee>3&&or(le,ee,He,ce),le[He+2]=Ee,se-He>3&&or(le,He,se,ce))}function Cr(le,ee,se,ce,Ee,Ne){var rt=Ee-se,He=Ne-ce;if(rt!==0||He!==0){var mt=((le-se)*rt+(ee-ce)*He)/(rt*rt+He*He);mt>1?(se=Ee,ce=Ne):mt>0&&(se+=rt*mt,ce+=He*mt)}return rt=le-se,He=ee-ce,rt*rt+He*He}function Sr(le,ee,se,ce){var Ee={id:typeof le=="undefined"?null:le,type:ee,geometry:se,tags:ce,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return Oe(Ee),Ee}function Oe(le){var ee=le.geometry,se=le.type;if(se==="Point"||se==="MultiPoint"||se==="LineString")gt(le,ee);else if(se==="Polygon"||se==="MultiLineString")for(var ce=0;ce0&&(ce?rt+=(Ee*Dt-mt*Ne)/2:rt+=Math.sqrt(Math.pow(mt-Ee,2)+Math.pow(Dt-Ne,2))),Ee=mt,Ne=Dt}var Rt=ee.length-3;ee[2]=1,or(ee,0,Rt,se),ee[Rt+2]=1,ee.size=Math.abs(rt),ee.start=0,ee.end=ee.size}function ar(le,ee,se,ce){for(var Ee=0;Ee1?1:se}function At(le,ee,se,ce,Ee,Ne,rt,He){if(se/=ee,ce/=ee,Ne>=se&&rt=ce)return null;for(var mt=[],Dt=0;Dt=se&&Yr=ce)continue;var Br=[];if(Yt==="Point"||Yt==="MultiPoint")Fe($t,Br,se,ce,Ee);else if(Yt==="LineString")Ge($t,Br,se,ce,Ee,!1,He.lineMetrics);else if(Yt==="MultiLineString")dt($t,Br,se,ce,Ee,!1);else if(Yt==="Polygon")dt($t,Br,se,ce,Ee,!0);else if(Yt==="MultiPolygon")for(var ca=0;ca<$t.length;ca++){var ua=[];dt($t[ca],ua,se,ce,Ee,!0),ua.length&&Br.push(ua)}if(Br.length){if(He.lineMetrics&&Yt==="LineString"){for(ca=0;ca=se&&rt<=ce&&(ee.push(le[Ne]),ee.push(le[Ne+1]),ee.push(le[Ne+2]))}}function Ge(le,ee,se,ce,Ee,Ne,rt){for(var He=wt(le),mt=Ee===0?xr:mr,Dt=le.start,Rt,$t,Yt=0;Ytse&&($t=mt(He,Tr,Yr,ca,ua,se),rt&&(He.start=Dt+Rt*$t)):qa>ce?ii=se&&($t=mt(He,Tr,Yr,ca,ua,se),Wr=!0),ii>ce&&qa<=ce&&($t=mt(He,Tr,Yr,ca,ua,ce),Wr=!0),!Ne&&Wr&&(rt&&(He.end=Dt+Rt*$t),ee.push(He),He=wt(le)),rt&&(Dt+=Rt)}var dr=le.length-3;Tr=le[dr],Yr=le[dr+1],Br=le[dr+2],qa=Ee===0?Tr:Yr,qa>=se&&qa<=ce&&gr(He,Tr,Yr,Br),dr=He.length-3,Ne&&dr>=3&&(He[dr]!==He[0]||He[dr+1]!==He[1])&&gr(He,He[0],He[1],He[2]),He.length&&ee.push(He)}function wt(le){var ee=[];return ee.size=le.size,ee.start=le.start,ee.end=le.end,ee}function dt(le,ee,se,ce,Ee,Ne){for(var rt=0;rtrt.maxX&&(rt.maxX=Rt),$t>rt.maxY&&(rt.maxY=$t)}return rt}function vi(le,ee,se,ce){var Ee=ee.geometry,Ne=ee.type,rt=[];if(Ne==="Point"||Ne==="MultiPoint")for(var He=0;He0&&ee.size<(Ee?rt:ce)){se.numPoints+=ee.length/3;return}for(var He=[],mt=0;mtrt)&&(se.numSimplified++,He.push(ee[mt]),He.push(ee[mt+1])),se.numPoints++;Ee&&$i(He,Ne),le.push(He)}function $i(le,ee){for(var se=0,ce=0,Ee=le.length,Ne=Ee-2;ce0===ee)for(ce=0,Ee=le.length;ce24)throw new Error("maxZoom should be in the 0-24 range");if(ee.promoteId&&ee.generateId)throw new Error("promoteId and generateId cannot be used together.");var ce=qt(le,ee);this.tiles={},this.tileCoords=[],se&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",ee.indexMaxZoom,ee.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),ce=Hr(ce,ee),ce.length&&this.splitTile(ce,0,0,0),se&&(ce.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Ei.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Ei.prototype.splitTile=function(le,ee,se,ce,Ee,Ne,rt){for(var He=[le,ee,se,ce],mt=this.options,Dt=mt.debug;He.length;){ce=He.pop(),se=He.pop(),ee=He.pop(),le=He.pop();var Rt=1<1&&console.time("creation"),Yt=this.tiles[$t]=qi(le,ee,se,ce,mt),this.tileCoords.push({z:ee,x:se,y:ce}),Dt)){Dt>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",ee,se,ce,Yt.numFeatures,Yt.numPoints,Yt.numSimplified),console.timeEnd("creation"));var Tr="z"+ee;this.stats[Tr]=(this.stats[Tr]||0)+1,this.total++}if(Yt.source=le,Ee){if(ee===mt.maxZoom||ee===Ee)continue;var Yr=1<1&&console.time("clipping");var Br=.5*mt.buffer/mt.extent,ca=.5-Br,ua=.5+Br,qa=1+Br,ii,Wr,dr,ea,_a,ir;ii=Wr=dr=ea=null,_a=At(le,Rt,se-Br,se+ua,0,Yt.minX,Yt.maxX,mt),ir=At(le,Rt,se+ca,se+qa,0,Yt.minX,Yt.maxX,mt),le=null,_a&&(ii=At(_a,Rt,ce-Br,ce+ua,1,Yt.minY,Yt.maxY,mt),Wr=At(_a,Rt,ce+ca,ce+qa,1,Yt.minY,Yt.maxY,mt),_a=null),ir&&(dr=At(ir,Rt,ce-Br,ce+ua,1,Yt.minY,Yt.maxY,mt),ea=At(ir,Rt,ce+ca,ce+qa,1,Yt.minY,Yt.maxY,mt),ir=null),Dt>1&&console.timeEnd("clipping"),He.push(ii||[],ee+1,se*2,ce*2),He.push(Wr||[],ee+1,se*2,ce*2+1),He.push(dr||[],ee+1,se*2+1,ce*2),He.push(ea||[],ee+1,se*2+1,ce*2+1)}}},Ei.prototype.getTile=function(le,ee,se){var ce=this.options,Ee=ce.extent,Ne=ce.debug;if(le<0||le>24)return null;var rt=1<1&&console.log("drilling down to z%d-%d-%d",le,ee,se);for(var mt=le,Dt=ee,Rt=se,$t;!$t&&mt>0;)mt--,Dt=Math.floor(Dt/2),Rt=Math.floor(Rt/2),$t=this.tiles[ma(mt,Dt,Rt)];return!$t||!$t.source?null:(Ne>1&&console.log("found parent tile z%d-%d-%d",mt,Dt,Rt),Ne>1&&console.time("drilling down"),this.splitTile($t.source,mt,Dt,Rt,le,ee,se),Ne>1&&console.timeEnd("drilling down"),this.tiles[He]?Ua(this.tiles[He],Ee):null)};function ma(le,ee,se){return((1<=0?0:g.button},l.remove=function(g){g.parentNode&&g.parentNode.removeChild(g)};function D(g,c,b){var d,w,L,R=a.browser.devicePixelRatio>1?"@2x":"",G=a.getJSON(c.transformRequest(c.normalizeSpriteURL(g,R,".json"),a.ResourceType.SpriteJSON),function(ue,be){G=null,L||(L=ue,d=be,re())}),K=a.getImage(c.transformRequest(c.normalizeSpriteURL(g,R,".png"),a.ResourceType.SpriteImage),function(ue,be){K=null,L||(L=ue,w=be,re())});function re(){if(L)b(L);else if(d&&w){var ue=a.browser.getImageData(w),be={};for(var xe in d){var Re=d[xe],Ye=Re.width,Ze=Re.height,Ue=Re.x,Je=Re.y,ht=Re.sdf,Pt=Re.pixelRatio,Nt=Re.stretchX,Jt=Re.stretchY,er=Re.content,Zt=new a.RGBAImage({width:Ye,height:Ze});a.RGBAImage.copy(ue,Zt,{x:Ue,y:Je},{x:0,y:0},{width:Ye,height:Ze}),be[xe]={data:Zt,pixelRatio:Pt,sdf:ht,stretchX:Nt,stretchY:Jt,content:er}}b(null,be)}}return{cancel:function(){G&&(G.cancel(),G=null),K&&(K.cancel(),K=null)}}}function E(g){var c=g.userImage;if(c&&c.render){var b=c.render();if(b)return g.data.replace(new Uint8Array(c.data.buffer)),!0}return!1}var I=1,B=function(g){function c(){g.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new a.RGBAImage({width:1,height:1}),this.dirty=!0}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.isLoaded=function(){return this.loaded},c.prototype.setLoaded=function(d){if(this.loaded!==d&&(this.loaded=d,d)){for(var w=0,L=this.requestors;w=0?1.2:1))}V.prototype.draw=function(g){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(g,this.buffer,this.middle);for(var c=this.ctx.getImageData(0,0,this.size,this.size),b=new Uint8ClampedArray(this.size*this.size),d=0;d65535){ue(new Error("glyphs > 65535 not supported"));return}if(Re.ranges[Ze]){ue(null,{stack:be,id:xe,glyph:Ye});return}var Ue=Re.requests[Ze];Ue||(Ue=Re.requests[Ze]=[],te.loadGlyphRange(be,Ze,d.url,d.requestManager,function(Je,ht){if(ht){for(var Pt in ht)d._doesCharSupportLocalGlyph(+Pt)||(Re.glyphs[+Pt]=ht[+Pt]);Re.ranges[Ze]=!0}for(var Nt=0,Jt=Ue;Nt1&&(re=c[++K]);var be=Math.abs(ue-re.left),xe=Math.abs(ue-re.right),Re=Math.min(be,xe),Ye=void 0,Ze=L/d*(w+1);if(re.isDash){var Ue=w-Math.abs(Ze);Ye=Math.sqrt(Re*Re+Ue*Ue)}else Ye=w-Math.sqrt(Re*Re+Ze*Ze);this.data[G+ue]=Math.max(0,Math.min(255,Ye+128))}},Me.prototype.addRegularDash=function(c){for(var b=c.length-1;b>=0;--b){var d=c[b],w=c[b+1];d.zeroLength?c.splice(b,1):w&&w.isDash===d.isDash&&(w.left=d.left,c.splice(b,1))}var L=c[0],R=c[c.length-1];L.isDash===R.isDash&&(L.left=R.left-this.width,R.right=L.right+this.width);for(var G=this.width*this.nextRow,K=0,re=c[K],ue=0;ue1&&(re=c[++K]);var be=Math.abs(ue-re.left),xe=Math.abs(ue-re.right),Re=Math.min(be,xe),Ye=re.isDash?Re:-Re;this.data[G+ue]=Math.max(0,Math.min(255,Ye+128))}},Me.prototype.addDash=function(c,b){var d=b?7:0,w=2*d+1;if(this.nextRow+w>this.height)return a.warnOnce("LineAtlas out of space"),null;for(var L=0,R=0;R=d.minX&&c.x=d.minY&&c.y0&&(ue[new a.OverscaledTileID(d.overscaledZ,G,w.z,R,w.y-1).key]={backfilled:!1},ue[new a.OverscaledTileID(d.overscaledZ,d.wrap,w.z,w.x,w.y-1).key]={backfilled:!1},ue[new a.OverscaledTileID(d.overscaledZ,re,w.z,K,w.y-1).key]={backfilled:!1}),w.y+10&&(L.resourceTiming=d._resourceTiming,d._resourceTiming=[]),d.fire(new a.Event("data",L))})},c.prototype.onAdd=function(d){this.map=d,this.load()},c.prototype.setData=function(d){var w=this;return this._data=d,this.fire(new a.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(L){if(L){w.fire(new a.ErrorEvent(L));return}var R={dataType:"source",sourceDataType:"content"};w._collectResourceTiming&&w._resourceTiming&&w._resourceTiming.length>0&&(R.resourceTiming=w._resourceTiming,w._resourceTiming=[]),w.fire(new a.Event("data",R))}),this},c.prototype.getClusterExpansionZoom=function(d,w){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:d,source:this.id},w),this},c.prototype.getClusterChildren=function(d,w){return this.actor.send("geojson.getClusterChildren",{clusterId:d,source:this.id},w),this},c.prototype.getClusterLeaves=function(d,w,L,R){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:d,limit:w,offset:L},R),this},c.prototype._updateWorkerData=function(d){var w=this;this._loaded=!1;var L=a.extend({},this.workerOptions),R=this._data;typeof R=="string"?(L.request=this.map._requestManager.transformRequest(a.browser.resolveURL(R),a.ResourceType.Source),L.request.collectResourceTiming=this._collectResourceTiming):L.data=JSON.stringify(R),this.actor.send(this.type+".loadData",L,function(G,K){w._removed||K&&K.abandoned||(w._loaded=!0,K&&K.resourceTiming&&K.resourceTiming[w.id]&&(w._resourceTiming=K.resourceTiming[w.id].slice(0)),w.actor.send(w.type+".coalesce",{source:L.source},null),d(G))})},c.prototype.loaded=function(){return this._loaded},c.prototype.loadTile=function(d,w){var L=this,R=d.actor?"reloadTile":"loadTile";d.actor=this.actor;var G={type:this.type,uid:d.uid,tileID:d.tileID,zoom:d.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:a.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};d.request=this.actor.send(R,G,function(K,re){return delete d.request,d.unloadVectorData(),d.aborted?w(null):K?w(K):(d.loadVectorData(re,L.map.painter,R==="reloadTile"),w(null))})},c.prototype.abortTile=function(d){d.request&&(d.request.cancel(),delete d.request),d.aborted=!0},c.prototype.unloadTile=function(d){d.unloadVectorData(),this.actor.send("removeTile",{uid:d.uid,type:this.type,source:this.id})},c.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},c.prototype.serialize=function(){return a.extend({},this._options,{type:this.type,data:this._data})},c.prototype.hasTransition=function(){return!1},c}(a.Evented),ot=a.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),it=function(g){function c(b,d,w,L){g.call(this),this.id=b,this.dispatcher=w,this.coordinates=d.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(L),this.options=d}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.load=function(d,w){var L=this;this._loaded=!1,this.fire(new a.Event("dataloading",{dataType:"source"})),this.url=this.options.url,a.getImage(this.map._requestManager.transformRequest(this.url,a.ResourceType.Image),function(R,G){L._loaded=!0,R?L.fire(new a.ErrorEvent(R)):G&&(L.image=G,d&&(L.coordinates=d),w&&w(),L._finishLoading())})},c.prototype.loaded=function(){return this._loaded},c.prototype.updateImage=function(d){var w=this;return!this.image||!d.url?this:(this.options.url=d.url,this.load(d.coordinates,function(){w.texture=null}),this)},c.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"metadata"})))},c.prototype.onAdd=function(d){this.map=d,this.load()},c.prototype.setCoordinates=function(d){var w=this;this.coordinates=d;var L=d.map(a.MercatorCoordinate.fromLngLat);this.tileID=bt(L),this.minzoom=this.maxzoom=this.tileID.z;var R=L.map(function(G){return w.tileID.getTilePoint(G)._round()});return this._boundsArray=new a.StructArrayLayout4i8,this._boundsArray.emplaceBack(R[0].x,R[0].y,0,0),this._boundsArray.emplaceBack(R[1].x,R[1].y,a.EXTENT,0),this._boundsArray.emplaceBack(R[3].x,R[3].y,0,a.EXTENT),this._boundsArray.emplaceBack(R[2].x,R[2].y,a.EXTENT,a.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"content"})),this},c.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var d=this.map.painter.context,w=d.gl;this.boundsBuffer||(this.boundsBuffer=d.createVertexBuffer(this._boundsArray,ot.members)),this.boundsSegments||(this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new a.Texture(d,this.image,w.RGBA),this.texture.bind(w.LINEAR,w.CLAMP_TO_EDGE));for(var L in this.tiles){var R=this.tiles[L];R.state!=="loaded"&&(R.state="loaded",R.texture=this.texture)}}},c.prototype.loadTile=function(d,w){this.tileID&&this.tileID.equals(d.tileID.canonical)?(this.tiles[String(d.tileID.wrap)]=d,d.buckets={},w(null)):(d.state="errored",w(null))},c.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},c.prototype.hasTransition=function(){return!1},c}(a.Evented);function bt(g){for(var c=1/0,b=1/0,d=-1/0,w=-1/0,L=0,R=g;Lw.end(0)?this.fire(new a.ErrorEvent(new a.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+w.start(0)+" and "+w.end(0)+"-second mark."))):this.video.currentTime=d}},c.prototype.getVideo=function(){return this.video},c.prototype.onAdd=function(d){this.map||(this.map=d,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},c.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var d=this.map.painter.context,w=d.gl;this.boundsBuffer||(this.boundsBuffer=d.createVertexBuffer(this._boundsArray,ot.members)),this.boundsSegments||(this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(w.LINEAR,w.CLAMP_TO_EDGE),w.texSubImage2D(w.TEXTURE_2D,0,0,0,w.RGBA,w.UNSIGNED_BYTE,this.video)):(this.texture=new a.Texture(d,this.video,w.RGBA),this.texture.bind(w.LINEAR,w.CLAMP_TO_EDGE));for(var L in this.tiles){var R=this.tiles[L];R.state!=="loaded"&&(R.state="loaded",R.texture=this.texture)}}},c.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},c.prototype.hasTransition=function(){return this.video&&!this.video.paused},c}(it),Et=function(g){function c(b,d,w,L){g.call(this,b,d,w,L),d.coordinates?(!Array.isArray(d.coordinates)||d.coordinates.length!==4||d.coordinates.some(function(R){return!Array.isArray(R)||R.length!==2||R.some(function(G){return typeof G!="number"})}))&&this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'missing required property "coordinates"'))),d.animate&&typeof d.animate!="boolean"&&this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'optional "animate" property must be a boolean value'))),d.canvas?typeof d.canvas!="string"&&!(d.canvas instanceof a.window.HTMLCanvasElement)&&this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new a.ErrorEvent(new a.ValidationError("sources."+b,null,'missing required property "canvas"'))),this.options=d,this.animate=d.animate!==void 0?d.animate:!0}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof a.window.HTMLCanvasElement?this.options.canvas:a.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new a.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},c.prototype.getCanvas=function(){return this.canvas},c.prototype.onAdd=function(d){this.map=d,this.load(),this.canvas&&this.animate&&this.play()},c.prototype.onRemove=function(){this.pause()},c.prototype.prepare=function(){var d=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,d=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,d=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var w=this.map.painter.context,L=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,ot.members)),this.boundsSegments||(this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(d||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new a.Texture(w,this.canvas,L.RGBA,{premultiply:!0});for(var R in this.tiles){var G=this.tiles[R];G.state!=="loaded"&&(G.state="loaded",G.texture=this.texture)}}},c.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},c.prototype.hasTransition=function(){return this._playing},c.prototype._hasInvalidDimensions=function(){for(var d=0,w=[this.canvas.width,this.canvas.height];dthis.max){var G=this._getAndRemoveByKey(this.order[0]);G&&this.onRemove(G)}return this},Lt.prototype.has=function(c){return c.wrapped().key in this.data},Lt.prototype.getAndRemove=function(c){return this.has(c)?this._getAndRemoveByKey(c.wrapped().key):null},Lt.prototype._getAndRemoveByKey=function(c){var b=this.data[c].shift();return b.timeout&&clearTimeout(b.timeout),this.data[c].length===0&&delete this.data[c],this.order.splice(this.order.indexOf(c),1),b.value},Lt.prototype.getByKey=function(c){var b=this.data[c];return b?b[0].value:null},Lt.prototype.get=function(c){if(!this.has(c))return null;var b=this.data[c.wrapped().key][0];return b.value},Lt.prototype.remove=function(c,b){if(!this.has(c))return this;var d=c.wrapped().key,w=b===void 0?0:this.data[d].indexOf(b),L=this.data[d][w];return this.data[d].splice(w,1),L.timeout&&clearTimeout(L.timeout),this.data[d].length===0&&delete this.data[d],this.onRemove(L.value),this.order.splice(this.order.indexOf(d),1),this},Lt.prototype.setMaxSize=function(c){for(this.max=c;this.order.length>this.max;){var b=this._getAndRemoveByKey(this.order[0]);b&&this.onRemove(b)}return this},Lt.prototype.filter=function(c){var b=[];for(var d in this.data)for(var w=0,L=this.data[d];w1||(Math.abs(be)>1&&(Math.abs(be+Re)===1?be+=Re:Math.abs(be-Re)===1&&(be-=Re)),!(!ue.dem||!re.dem)&&(re.dem.backfillBorder(ue.dem,be,xe),re.neighboringTiles&&re.neighboringTiles[Ye]&&(re.neighboringTiles[Ye].backfilled=!0)))}},c.prototype.getTile=function(d){return this.getTileByID(d.key)},c.prototype.getTileByID=function(d){return this._tiles[d]},c.prototype._retainLoadedChildren=function(d,w,L,R){for(var G in this._tiles){var K=this._tiles[G];if(!(R[G]||!K.hasData()||K.tileID.overscaledZ<=w||K.tileID.overscaledZ>L)){for(var re=K.tileID;K&&K.tileID.overscaledZ>w+1;){var ue=K.tileID.scaledTo(K.tileID.overscaledZ-1);K=this._tiles[ue.key],K&&K.hasData()&&(re=ue)}for(var be=re;be.overscaledZ>w;)if(be=be.scaledTo(be.overscaledZ-1),d[be.key]){R[re.key]=re;break}}}},c.prototype.findLoadedParent=function(d,w){if(d.key in this._loadedParentTiles){var L=this._loadedParentTiles[d.key];return L&&L.tileID.overscaledZ>=w?L:null}for(var R=d.overscaledZ-1;R>=w;R--){var G=d.scaledTo(R),K=this._getLoadedTile(G);if(K)return K}},c.prototype._getLoadedTile=function(d){var w=this._tiles[d.key];if(w&&w.hasData())return w;var L=this._cache.getByKey(d.wrapped().key);return L},c.prototype.updateCacheSize=function(d){var w=Math.ceil(d.width/this._source.tileSize)+1,L=Math.ceil(d.height/this._source.tileSize)+1,R=w*L,G=5,K=Math.floor(R*G),re=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,K):K;this._cache.setMaxSize(re)},c.prototype.handleWrapJump=function(d){var w=this._prevLng===void 0?d:this._prevLng,L=d-w,R=L/360,G=Math.round(R);if(this._prevLng=d,G){var K={};for(var re in this._tiles){var ue=this._tiles[re];ue.tileID=ue.tileID.unwrapTo(ue.tileID.wrap+G),K[ue.tileID.key]=ue}this._tiles=K;for(var be in this._timers)clearTimeout(this._timers[be]),delete this._timers[be];for(var xe in this._tiles){var Re=this._tiles[xe];this._setTileReloadTimer(xe,Re)}}},c.prototype.update=function(d){var w=this;if(this.transform=d,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(d),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var L;this.used?this._source.tileID?L=d.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(br){return new a.OverscaledTileID(br.canonical.z,br.wrap,br.canonical.z,br.canonical.x,br.canonical.y)}):(L=d.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(L=L.filter(function(br){return w._source.hasTile(br)}))):L=[];var R=d.coveringZoomLevel(this._source),G=Math.max(R-c.maxOverzooming,this._source.minzoom),K=Math.max(R+c.maxUnderzooming,this._source.minzoom),re=this._updateRetainedTiles(L,R);if(mt(this._source.type)){for(var ue={},be={},xe=Object.keys(re),Re=0,Ye=xe;Rethis._source.maxzoom){var ht=Ue.children(this._source.maxzoom)[0],Pt=this.getTile(ht);if(Pt&&Pt.hasData()){L[ht.key]=ht;continue}}else{var Nt=Ue.children(this._source.maxzoom);if(L[Nt[0].key]&&L[Nt[1].key]&&L[Nt[2].key]&&L[Nt[3].key])continue}for(var Jt=Je.wasRequested(),er=Ue.overscaledZ-1;er>=G;--er){var Zt=Ue.scaledTo(er);if(R[Zt.key]||(R[Zt.key]=!0,Je=this.getTile(Zt),!Je&&Jt&&(Je=this._addTile(Zt)),Je&&(L[Zt.key]=Zt,Jt=Je.wasRequested(),Je.hasData())))break}}}return L},c.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var d in this._tiles){for(var w=[],L=void 0,R=this._tiles[d].tileID;R.overscaledZ>0;){if(R.key in this._loadedParentTiles){L=this._loadedParentTiles[R.key];break}w.push(R.key);var G=R.scaledTo(R.overscaledZ-1);if(L=this._getLoadedTile(G),L)break;R=G}for(var K=0,re=w;K0)&&(w.hasData()&&w.state!=="reloading"?this._cache.add(w.tileID,w,w.getExpiryTimeout()):(w.aborted=!0,this._abortTile(w),this._unloadTile(w))))},c.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var d in this._tiles)this._removeTile(d);this._cache.reset()},c.prototype.tilesIn=function(d,w,L){var R=this,G=[],K=this.transform;if(!K)return G;for(var re=L?K.getCameraQueryGeometry(d):d,ue=d.map(function(er){return K.pointCoordinate(er)}),be=re.map(function(er){return K.pointCoordinate(er)}),xe=this.getIds(),Re=1/0,Ye=1/0,Ze=-1/0,Ue=-1/0,Je=0,ht=be;Je=0&&Er[1].y+br>=0){var Ar=ue.map(function(Ra){return rr.getTilePoint(Ra)}),Xr=be.map(function(Ra){return rr.getTilePoint(Ra)});G.push({tile:Zt,tileID:rr,queryGeometry:Ar,cameraQueryGeometry:Xr,scale:hr})}}},Jt=0;Jt=a.browser.now())return!0}return!1},c.prototype.setFeatureState=function(d,w,L){d=d||"_geojsonTileLayer",this._state.updateState(d,w,L)},c.prototype.removeFeatureState=function(d,w,L){d=d||"_geojsonTileLayer",this._state.removeFeatureState(d,w,L)},c.prototype.getFeatureState=function(d,w){return d=d||"_geojsonTileLayer",this._state.getState(d,w)},c.prototype.setDependencies=function(d,w,L){var R=this._tiles[d];R&&R.setDependencies(w,L)},c.prototype.reloadTilesForDependencies=function(d,w){for(var L in this._tiles){var R=this._tiles[L];R.hasDependency(d,w)&&this._reloadTile(L,"reloading")}this._cache.filter(function(G){return!G.hasDependency(d,w)})},c}(a.Evented);rt.maxOverzooming=10,rt.maxUnderzooming=3;function He(g,c){var b=Math.abs(g.wrap*2)-+(g.wrap<0),d=Math.abs(c.wrap*2)-+(c.wrap<0);return g.overscaledZ-c.overscaledZ||d-b||c.canonical.y-g.canonical.y||c.canonical.x-g.canonical.x}function mt(g){return g==="raster"||g==="image"||g==="video"}function Dt(){return new a.window.Worker(Tn.workerUrl)}var Rt="mapboxgl_preloaded_worker_pool",$t=function(){this.active={}};$t.prototype.acquire=function(c){if(!this.workers)for(this.workers=[];this.workers.length<$t.workerCount;)this.workers.push(new Dt);return this.active[c]=!0,this.workers.slice()},$t.prototype.release=function(c){delete this.active[c],this.numActive()===0&&(this.workers.forEach(function(b){b.terminate()}),this.workers=null)},$t.prototype.isPreloaded=function(){return!!this.active[Rt]},$t.prototype.numActive=function(){return Object.keys(this.active).length};var Yt=Math.floor(a.browser.hardwareConcurrency/2);$t.workerCount=Math.max(Math.min(Yt,6),1);var Tr;function Yr(){return Tr||(Tr=new $t),Tr}function Br(){var g=Yr();g.acquire(Rt)}function ca(){var g=Tr;g&&(g.isPreloaded()&&g.numActive()===1?(g.release(Rt),Tr=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))}function ua(g,c){var b={};for(var d in g)d!=="ref"&&(b[d]=g[d]);return a.refProperties.forEach(function(w){w in c&&(b[w]=c[w])}),b}function qa(g){g=g.slice();for(var c=Object.create(null),b=0;b0?(w-R)/G:0;return this.points[L].mult(1-K).add(this.points[b].mult(K))};var Ga=function(c,b,d){var w=this.boxCells=[],L=this.circleCells=[];this.xCellCount=Math.ceil(c/d),this.yCellCount=Math.ceil(b/d);for(var R=0;Rthis.width||w<0||b>this.height)return L?!1:[];var G=[];if(c<=0&&b<=0&&this.width<=d&&this.height<=w){if(L)return!0;for(var K=0;K0:G}},Ga.prototype._queryCircle=function(c,b,d,w,L){var R=c-d,G=c+d,K=b-d,re=b+d;if(G<0||R>this.width||re<0||K>this.height)return w?!1:[];var ue=[],be={hitTest:w,circle:{x:c,y:b,radius:d},seenUids:{box:{},circle:{}}};return this._forEachCell(R,K,G,re,this._queryCellCircle,ue,be,L),w?ue.length>0:ue},Ga.prototype.query=function(c,b,d,w,L){return this._query(c,b,d,w,!1,L)},Ga.prototype.hitTest=function(c,b,d,w,L){return this._query(c,b,d,w,!0,L)},Ga.prototype.hitTestCircle=function(c,b,d,w){return this._queryCircle(c,b,d,!0,w)},Ga.prototype._queryCell=function(c,b,d,w,L,R,G,K){var re=G.seenUids,ue=this.boxCells[L];if(ue!==null)for(var be=this.bboxes,xe=0,Re=ue;xe=be[Ze+0]&&w>=be[Ze+1]&&(!K||K(this.boxKeys[Ye]))){if(G.hitTest)return R.push(!0),!0;R.push({key:this.boxKeys[Ye],x1:be[Ze],y1:be[Ze+1],x2:be[Ze+2],y2:be[Ze+3]})}}}var Ue=this.circleCells[L];if(Ue!==null)for(var Je=this.circles,ht=0,Pt=Ue;htG*G+K*K},Ga.prototype._circleAndRectCollide=function(c,b,d,w,L,R,G){var K=(R-w)/2,re=Math.abs(c-(w+K));if(re>K+d)return!1;var ue=(G-L)/2,be=Math.abs(b-(L+ue));if(be>ue+d)return!1;if(re<=K||be<=ue)return!0;var xe=re-K,Re=be-ue;return xe*xe+Re*Re<=d*d};function Kn(g,c,b,d,w){var L=a.create();return c?(a.scale(L,L,[1/w,1/w,1]),b||a.rotateZ(L,L,d.angle)):a.multiply(L,d.labelPlaneMatrix,g),L}function hu(g,c,b,d,w){if(c){var L=a.clone(g);return a.scale(L,L,[w,w,1]),b||a.rotateZ(L,L,-d.angle),L}else return d.glCoordMatrix}function Vi(g,c){var b=[g.x,g.y,0,1];Zf(b,b,c);var d=b[3];return{point:new a.Point(b[0]/d,b[1]/d),signedDistanceFromCamera:d}}function pl(g,c){return .5+.5*(g/c)}function Qd(g,c){var b=g[0]/g[3],d=g[1]/g[3],w=b>=-c[0]&&b<=c[0]&&d>=-c[1]&&d<=c[1];return w}function qc(g,c,b,d,w,L,R,G){var K=d?g.textSizeData:g.iconSizeData,re=a.evaluateSizeForZoom(K,b.transform.zoom),ue=[256/b.width*2+1,256/b.height*2+1],be=d?g.text.dynamicLayoutVertexArray:g.icon.dynamicLayoutVertexArray;be.clear();for(var xe=g.lineVertexArray,Re=d?g.text.placedSymbolArray:g.icon.placedSymbolArray,Ye=b.transform.width/b.transform.height,Ze=!1,Ue=0;UeL)return{useVertical:!0}}return(g===a.WritingMode.vertical?c.yb.x)?{needsFlipping:!0}:null}function vv(g,c,b,d,w,L,R,G,K,re,ue,be,xe,Re){var Ye=c/24,Ze=g.lineOffsetX*Ye,Ue=g.lineOffsetY*Ye,Je;if(g.numGlyphs>1){var ht=g.glyphStartIndex+g.numGlyphs,Pt=g.lineStartIndex,Nt=g.lineStartIndex+g.lineLength,Jt=Nc(Ye,G,Ze,Ue,b,ue,be,g,K,L,xe);if(!Jt)return{notEnoughRoom:!0};var er=Vi(Jt.first.point,R).point,Zt=Vi(Jt.last.point,R).point;if(d&&!b){var rr=hv(g.writingMode,er,Zt,Re);if(rr)return rr}Je=[Jt.first];for(var hr=g.glyphStartIndex+1;hr0?Xr.point:vu(be,Ar,br,1,w),xa=hv(g.writingMode,br,Ra,Re);if(xa)return xa}var qr=ml(Ye*G.getoffsetX(g.glyphStartIndex),Ze,Ue,b,ue,be,g.segment,g.lineStartIndex,g.lineStartIndex+g.lineLength,K,L,xe);if(!qr)return{notEnoughRoom:!0};Je=[qr]}for(var Sa=0,ia=Je;Sa0?1:-1,Ye=0;d&&(Re*=-1,Ye=Math.PI),Re<0&&(Ye+=Math.PI);for(var Ze=Re>0?G+R:G+R+1,Ue=w,Je=w,ht=0,Pt=0,Nt=Math.abs(xe),Jt=[];ht+Pt<=Nt;){if(Ze+=Re,Ze=K)return null;if(Je=Ue,Jt.push(Ue),Ue=be[Ze],Ue===void 0){var er=new a.Point(re.getx(Ze),re.gety(Ze)),Zt=Vi(er,ue);if(Zt.signedDistanceFromCamera>0)Ue=be[Ze]=Zt.point;else{var rr=Ze-Re,hr=ht===0?L:new a.Point(re.getx(rr),re.gety(rr));Ue=vu(hr,er,Je,Nt-ht+1,ue)}}ht+=Pt,Pt=Je.dist(Ue)}var br=(Nt-ht)/Pt,Er=Ue.sub(Je),Ar=Er.mult(br)._add(Je);Ar._add(Er._unit()._perp()._mult(b*Re));var Xr=Ye+Math.atan2(Ue.y-Je.y,Ue.x-Je.x);return Jt.push(Ar),{point:Ar,angle:Xr,path:Jt}}var $d=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Ku(g,c){for(var b=0;b=1;Za--)ia.push(qr.path[Za]);for(var Va=1;Va0){for(var na=ia[0].clone(),Ba=ia[0].clone(),rn=1;rn=Xr.x&&Ba.x<=Ra.x&&na.y>=Xr.y&&Ba.y<=Ra.y?yi=[ia]:Ba.xRa.x||Ba.yRa.y?yi=[]:yi=a.clipLine([ia],Xr.x,Xr.y,Ra.x,Ra.y)}for(var Rn=0,Ls=yi;Rn=this.screenRightBoundary||wthis.screenBottomBoundary},Ho.prototype.isInsideGrid=function(c,b,d,w){return d>=0&&c=0&&b0){var Nt;return this.prevPlacement&&this.prevPlacement.variableOffsets[xe.crossTileID]&&this.prevPlacement.placements[xe.crossTileID]&&this.prevPlacement.placements[xe.crossTileID].text&&(Nt=this.prevPlacement.variableOffsets[xe.crossTileID].anchor),this.variableOffsets[xe.crossTileID]={textOffset:Ue,width:d,height:w,anchor:c,textBoxScale:L,prevAnchor:Nt},this.markUsedJustification(Re,c,xe,Ye),Re.allowVerticalPlacement&&(this.markUsedOrientation(Re,Ye,xe),this.placedOrientations[xe.crossTileID]=Ye),{shift:Je,placedGlyphBoxes:ht}}},oo.prototype.placeLayerBucketPart=function(c,b,d){var w=this,L=c.parameters,R=L.bucket,G=L.layout,K=L.posMatrix,re=L.textLabelPlaneMatrix,ue=L.labelToScreenMatrix,be=L.textPixelRatio,xe=L.holdingForFade,Re=L.collisionBoxArray,Ye=L.partiallyEvaluatedTextSize,Ze=L.collisionGroup,Ue=G.get("text-optional"),Je=G.get("icon-optional"),ht=G.get("text-allow-overlap"),Pt=G.get("icon-allow-overlap"),Nt=G.get("text-rotation-alignment")==="map",Jt=G.get("text-pitch-alignment")==="map",er=G.get("icon-text-fit")!=="none",Zt=G.get("symbol-z-order")==="viewport-y",rr=ht&&(Pt||!R.hasIconData()||Je),hr=Pt&&(ht||!R.hasTextData()||Ue);!R.collisionArrays&&Re&&R.deserializeCollisionBoxes(Re);var br=function(qr,Sa){if(!b[qr.crossTileID]){if(xe){w.placements[qr.crossTileID]=new du(!1,!1,!1);return}var ia=!1,Za=!1,Va=!0,Si=null,La={box:null,offscreen:null},yi={box:null,offscreen:null},na=null,Ba=null,rn=null,Rn=0,Ls=0,Ds=0;Sa.textFeatureIndex?Rn=Sa.textFeatureIndex:qr.useRuntimeCollisionCircles&&(Rn=qr.featureIndex),Sa.verticalTextFeatureIndex&&(Ls=Sa.verticalTextFeatureIndex);var $s=Sa.textBox;if($s){var Ol=function(fn){var Qo=a.WritingMode.horizontal;if(R.allowVerticalPlacement&&!fn&&w.prevPlacement){var $o=w.prevPlacement.placedOrientations[qr.crossTileID];$o&&(w.placedOrientations[qr.crossTileID]=$o,Qo=$o,w.markUsedOrientation(R,Qo,qr))}return Qo},oc=function(fn,Qo){if(R.allowVerticalPlacement&&qr.numVerticalGlyphVertices>0&&Sa.verticalTextBox)for(var $o=0,Vp=R.writingModes;$o0&&(Ko=Ko.filter(function(fn){return fn!==Po.anchor}),Ko.unshift(Po.anchor))}var el=function(fn,Qo,$o){for(var Vp=fn.x2-fn.x1,oy=fn.y2-fn.y1,l3=qr.textBoxScale,u3=er&&!Pt?Qo:null,Xv={box:[],offscreen:!1},f3=ht?Ko.length*2:Ko.length,Hp=0;Hp=Ko.length,sy=w.attemptAnchorPlacement(c3,fn,Vp,oy,l3,Nt,Jt,be,K,Ze,h3,qr,R,$o,u3);if(sy&&(Xv=sy.placedGlyphBoxes,Xv&&Xv.box&&Xv.box.length)){ia=!0,Si=sy.shift;break}}return Xv},ku=function(){return el($s,Sa.iconBox,a.WritingMode.horizontal)},tl=function(){var fn=Sa.verticalTextBox,Qo=La&&La.box&&La.box.length;return R.allowVerticalPlacement&&!Qo&&qr.numVerticalGlyphVertices>0&&fn?el(fn,Sa.verticalIconBox,a.WritingMode.vertical):{box:null,offscreen:null}};oc(ku,tl),La&&(ia=La.box,Va=La.offscreen);var qp=Ol(La&&La.box);if(!ia&&w.prevPlacement){var ch=w.prevPlacement.variableOffsets[qr.crossTileID];ch&&(w.variableOffsets[qr.crossTileID]=ch,w.markUsedJustification(R,ch.anchor,qr,qp))}}else{var Ul=function(fn,Qo){var $o=w.collisionIndex.placeCollisionBox(fn,ht,be,K,Ze.predicate);return $o&&$o.box&&$o.box.length&&(w.markUsedOrientation(R,Qo,qr),w.placedOrientations[qr.crossTileID]=Qo),$o},Do=function(){return Ul($s,a.WritingMode.horizontal)},Vl=function(){var fn=Sa.verticalTextBox;return R.allowVerticalPlacement&&qr.numVerticalGlyphVertices>0&&fn?Ul(fn,a.WritingMode.vertical):{box:null,offscreen:null}};oc(Do,Vl),Ol(La&&La.box&&La.box.length)}}if(na=La,ia=na&&na.box&&na.box.length>0,Va=na&&na.offscreen,qr.useRuntimeCollisionCircles){var Hn=R.text.placedSymbolArray.get(qr.centerJustifiedTextSymbolIndex),Np=a.evaluateSizeForFeature(R.textSizeData,Ye,Hn),Wv=G.get("text-padding"),xo=qr.collisionCircleDiameter;Ba=w.collisionIndex.placeCollisionCircles(ht,Hn,R.lineVertexArray,R.glyphOffsetArray,Np,K,re,ue,d,Jt,Ze.predicate,xo,Wv),ia=ht||Ba.circles.length>0&&!Ba.collisionDetected,Va=Va&&Ba.offscreen}if(Sa.iconFeatureIndex&&(Ds=Sa.iconFeatureIndex),Sa.iconBox){var hh=function(fn){var Qo=er&&Si?mv(fn,Si.x,Si.y,Nt,Jt,w.transform.angle):fn;return w.collisionIndex.placeCollisionBox(Qo,Pt,be,K,Ze.predicate)};yi&&yi.box&&yi.box.length&&Sa.verticalIconBox?(rn=hh(Sa.verticalIconBox),Za=rn.box.length>0):(rn=hh(Sa.iconBox),Za=rn.box.length>0),Va=Va&&rn.offscreen}var Bp=Ue||qr.numHorizontalGlyphVertices===0&&qr.numVerticalGlyphVertices===0,Op=Je||qr.numIconVertices===0;if(!Bp&&!Op?Za=ia=Za&&ia:Op?Bp||(Za=Za&&ia):ia=Za&&ia,ia&&na&&na.box&&(yi&&yi.box&&Ls?w.collisionIndex.insertCollisionBox(na.box,G.get("text-ignore-placement"),R.bucketInstanceId,Ls,Ze.ID):w.collisionIndex.insertCollisionBox(na.box,G.get("text-ignore-placement"),R.bucketInstanceId,Rn,Ze.ID)),Za&&rn&&w.collisionIndex.insertCollisionBox(rn.box,G.get("icon-ignore-placement"),R.bucketInstanceId,Ds,Ze.ID),Ba&&(ia&&w.collisionIndex.insertCollisionCircles(Ba.circles,G.get("text-ignore-placement"),R.bucketInstanceId,Rn,Ze.ID),d)){var Up=R.bucketInstanceId,vh=w.collisionCircleArrays[Up];vh===void 0&&(vh=w.collisionCircleArrays[Up]=new ep);for(var dh=0;dh=0;--Ar){var Xr=Er[Ar];br(R.symbolInstances.get(Xr),R.collisionArrays[Xr])}else for(var Ra=c.symbolInstanceStart;Ra=0&&(R>=0&&ue!==R?c.text.placedSymbolArray.get(ue).crossTileID=0:c.text.placedSymbolArray.get(ue).crossTileID=d.crossTileID)}},oo.prototype.markUsedOrientation=function(c,b,d){for(var w=b===a.WritingMode.horizontal||b===a.WritingMode.horizontalOnly?b:0,L=b===a.WritingMode.vertical?b:0,R=[d.leftJustifiedTextSymbolIndex,d.centerJustifiedTextSymbolIndex,d.rightJustifiedTextSymbolIndex],G=0,K=R;G0||Jt>0,br=Pt.numIconVertices>0,Er=w.placedOrientations[Pt.crossTileID],Ar=Er===a.WritingMode.vertical,Xr=Er===a.WritingMode.horizontal||Er===a.WritingMode.horizontalOnly;if(hr){var Ra=ef(rr.text),xa=Ar?kr:Ra;Ye(c.text,Nt,xa);var qr=Xr?kr:Ra;Ye(c.text,Jt,qr);var Sa=rr.text.isHidden();[Pt.rightJustifiedTextSymbolIndex,Pt.centerJustifiedTextSymbolIndex,Pt.leftJustifiedTextSymbolIndex].forEach(function(Ds){Ds>=0&&(c.text.placedSymbolArray.get(Ds).hidden=Sa||Ar?1:0)}),Pt.verticalPlacedTextSymbolIndex>=0&&(c.text.placedSymbolArray.get(Pt.verticalPlacedTextSymbolIndex).hidden=Sa||Xr?1:0);var ia=w.variableOffsets[Pt.crossTileID];ia&&w.markUsedJustification(c,ia.anchor,Pt,Er);var Za=w.placedOrientations[Pt.crossTileID];Za&&(w.markUsedJustification(c,"left",Pt,Za),w.markUsedOrientation(c,Za,Pt))}if(br){var Va=ef(rr.icon),Si=!(xe&&Pt.verticalPlacedIconSymbolIndex&&Ar);if(Pt.placedIconSymbolIndex>=0){var La=Si?Va:kr;Ye(c.icon,Pt.numIconVertices,La),c.icon.placedSymbolArray.get(Pt.placedIconSymbolIndex).hidden=rr.icon.isHidden()}if(Pt.verticalPlacedIconSymbolIndex>=0){var yi=Si?kr:Va;Ye(c.icon,Pt.numVerticalIconVertices,yi),c.icon.placedSymbolArray.get(Pt.verticalPlacedIconSymbolIndex).hidden=rr.icon.isHidden()}}if(c.hasIconCollisionBoxData()||c.hasTextCollisionBoxData()){var na=c.collisionArrays[ht];if(na){var Ba=new a.Point(0,0);if(na.textBox||na.verticalTextBox){var rn=!0;if(re){var Rn=w.variableOffsets[er];Rn?(Ba=pv(Rn.anchor,Rn.width,Rn.height,Rn.textOffset,Rn.textBoxScale),ue&&Ba._rotate(be?w.transform.angle:-w.transform.angle)):rn=!1}na.textBox&&Wt(c.textCollisionBox.collisionVertexArray,rr.text.placed,!rn||Ar,Ba.x,Ba.y),na.verticalTextBox&&Wt(c.textCollisionBox.collisionVertexArray,rr.text.placed,!rn||Xr,Ba.x,Ba.y)}var Ls=!!(!Xr&&na.verticalIconBox);na.iconBox&&Wt(c.iconCollisionBox.collisionVertexArray,rr.icon.placed,Ls,xe?Ba.x:0,xe?Ba.y:0),na.verticalIconBox&&Wt(c.iconCollisionBox.collisionVertexArray,rr.icon.placed,!Ls,xe?Ba.x:0,xe?Ba.y:0)}}},Ue=0;Uec},oo.prototype.setStale=function(){this.stale=!0};function Wt(g,c,b,d,w){g.emplaceBack(c?1:0,b?1:0,d||0,w||0),g.emplaceBack(c?1:0,b?1:0,d||0,w||0),g.emplaceBack(c?1:0,b?1:0,d||0,w||0),g.emplaceBack(c?1:0,b?1:0,d||0,w||0)}var Or=Math.pow(2,25),tp=Math.pow(2,24),pu=Math.pow(2,17),sn=Math.pow(2,16),gl=Math.pow(2,9),xs=Math.pow(2,8),$u=Math.pow(2,1);function ef(g){if(g.opacity===0&&!g.placed)return 0;if(g.opacity===1&&g.placed)return 4294967295;var c=g.placed?1:0,b=Math.floor(g.opacity*127);return b*Or+c*tp+b*pu+c*sn+b*gl+c*xs+b*$u+c}var kr=0,wa=function(c){this._sortAcrossTiles=c.layout.get("symbol-z-order")!=="viewport-y"&&c.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};wa.prototype.continuePlacement=function(c,b,d,w,L){for(var R=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var G=c[this._currentPlacementIndex],K=b[G],re=this.placement.collisionIndex.transform.zoom;if(K.type==="symbol"&&(!K.minzoom||K.minzoom<=re)&&(!K.maxzoom||K.maxzoom>re)){this._inProgressLayer||(this._inProgressLayer=new wa(K));var ue=this._inProgressLayer.continuePlacement(d[K.source],this.placement,this._showCollisionBoxes,K,R);if(ue)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Ta.prototype.commit=function(c){return this.placement.commit(c),this.placement};var bs=512/a.EXTENT/2,_l=function(c,b,d){this.tileID=c,this.indexedSymbolInstances={},this.bucketInstanceId=d;for(var w=0;wc.overscaledZ)for(var re in K){var ue=K[re];ue.tileID.isChildOf(c)&&ue.findMatches(b.symbolInstances,c,R)}else{var be=c.scaledTo(Number(G)),xe=K[be.key];xe&&xe.findMatches(b.symbolInstances,c,R)}}for(var Re=0;Re0)throw new Error("Unimplemented: "+R.map(function(G){return G.command}).join(", ")+".");return L.forEach(function(G){G.command!=="setTransition"&&w[G.command].apply(w,G.args)}),this.stylesheet=d,!0},c.prototype.addImage=function(d,w){if(this.getImage(d))return this.fire(new a.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(d,w),this._afterImageUpdated(d)},c.prototype.updateImage=function(d,w){this.imageManager.updateImage(d,w)},c.prototype.getImage=function(d){return this.imageManager.getImage(d)},c.prototype.removeImage=function(d){if(!this.getImage(d))return this.fire(new a.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(d),this._afterImageUpdated(d)},c.prototype._afterImageUpdated=function(d){this._availableImages=this.imageManager.listImages(),this._changedImages[d]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new a.Event("data",{dataType:"style"}))},c.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},c.prototype.addSource=function(d,w,L){var R=this;if(L===void 0&&(L={}),this._checkLoaded(),this.sourceCaches[d]!==void 0)throw new Error("There is already a source with this ID");if(!w.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(w).join(", ")+".");var G=["vector","raster","geojson","video","image"],K=G.indexOf(w.type)>=0;if(!(K&&this._validate(a.validateStyle.source,"sources."+d,w,null,L))){this.map&&this.map._collectResourceTiming&&(w.collectResourceTiming=!0);var re=this.sourceCaches[d]=new rt(d,w,this.dispatcher);re.style=this,re.setEventedParent(this,function(){return{isSourceLoaded:R.loaded(),source:re.serialize(),sourceId:d}}),re.onAdd(this.map),this._changed=!0}},c.prototype.removeSource=function(d){if(this._checkLoaded(),this.sourceCaches[d]===void 0)throw new Error("There is no source with this ID");for(var w in this._layers)if(this._layers[w].source===d)return this.fire(new a.ErrorEvent(new Error('Source "'+d+'" cannot be removed while layer "'+w+'" is using it.')));var L=this.sourceCaches[d];delete this.sourceCaches[d],delete this._updatedSources[d],L.fire(new a.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:d})),L.setEventedParent(null),L.clearTiles(),L.onRemove&&L.onRemove(this.map),this._changed=!0},c.prototype.setGeoJSONSourceData=function(d,w){this._checkLoaded();var L=this.sourceCaches[d].getSource();L.setData(w),this._changed=!0},c.prototype.getSource=function(d){return this.sourceCaches[d]&&this.sourceCaches[d].getSource()},c.prototype.addLayer=function(d,w,L){L===void 0&&(L={}),this._checkLoaded();var R=d.id;if(this.getLayer(R)){this.fire(new a.ErrorEvent(new Error('Layer with id "'+R+'" already exists on this map')));return}var G;if(d.type==="custom"){if(us(this,a.validateCustomStyleLayer(d)))return;G=a.createStyleLayer(d)}else{if(typeof d.source=="object"&&(this.addSource(R,d.source),d=a.clone$1(d),d=a.extend(d,{source:R})),this._validate(a.validateStyle.layer,"layers."+R,d,{arrayIndex:-1},L))return;G=a.createStyleLayer(d),this._validateLayer(G),G.setEventedParent(this,{layer:{id:R}}),this._serializedLayers[G.id]=G.serialize()}var K=w?this._order.indexOf(w):this._order.length;if(w&&K===-1){this.fire(new a.ErrorEvent(new Error('Layer with id "'+w+'" does not exist on this map.')));return}if(this._order.splice(K,0,R),this._layerOrderChanged=!0,this._layers[R]=G,this._removedLayers[R]&&G.source&&G.type!=="custom"){var re=this._removedLayers[R];delete this._removedLayers[R],re.type!==G.type?this._updatedSources[G.source]="clear":(this._updatedSources[G.source]="reload",this.sourceCaches[G.source].pause())}this._updateLayer(G),G.onAdd&&G.onAdd(this.map)},c.prototype.moveLayer=function(d,w){this._checkLoaded(),this._changed=!0;var L=this._layers[d];if(!L){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be moved.")));return}if(d!==w){var R=this._order.indexOf(d);this._order.splice(R,1);var G=w?this._order.indexOf(w):this._order.length;if(w&&G===-1){this.fire(new a.ErrorEvent(new Error('Layer with id "'+w+'" does not exist on this map.')));return}this._order.splice(G,0,d),this._layerOrderChanged=!0}},c.prototype.removeLayer=function(d){this._checkLoaded();var w=this._layers[d];if(!w){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be removed.")));return}w.setEventedParent(null);var L=this._order.indexOf(d);this._order.splice(L,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[d]=w,delete this._layers[d],delete this._serializedLayers[d],delete this._updatedLayers[d],delete this._updatedPaintProps[d],w.onRemove&&w.onRemove(this.map)},c.prototype.getLayer=function(d){return this._layers[d]},c.prototype.hasLayer=function(d){return d in this._layers},c.prototype.setLayerZoomRange=function(d,w,L){this._checkLoaded();var R=this.getLayer(d);if(!R){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot have zoom extent.")));return}R.minzoom===w&&R.maxzoom===L||(w!=null&&(R.minzoom=w),L!=null&&(R.maxzoom=L),this._updateLayer(R))},c.prototype.setFilter=function(d,w,L){L===void 0&&(L={}),this._checkLoaded();var R=this.getLayer(d);if(!R){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be filtered.")));return}if(!a.deepEqual(R.filter,w)){if(w==null){R.filter=void 0,this._updateLayer(R);return}this._validate(a.validateStyle.filter,"layers."+R.id+".filter",w,null,L)||(R.filter=a.clone$1(w),this._updateLayer(R))}},c.prototype.getFilter=function(d){return a.clone$1(this.getLayer(d).filter)},c.prototype.setLayoutProperty=function(d,w,L,R){R===void 0&&(R={}),this._checkLoaded();var G=this.getLayer(d);if(!G){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be styled.")));return}a.deepEqual(G.getLayoutProperty(w),L)||(G.setLayoutProperty(w,L,R),this._updateLayer(G))},c.prototype.getLayoutProperty=function(d,w){var L=this.getLayer(d);if(!L){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style.")));return}return L.getLayoutProperty(w)},c.prototype.setPaintProperty=function(d,w,L,R){R===void 0&&(R={}),this._checkLoaded();var G=this.getLayer(d);if(!G){this.fire(new a.ErrorEvent(new Error("The layer '"+d+"' does not exist in the map's style and cannot be styled.")));return}if(!a.deepEqual(G.getPaintProperty(w),L)){var K=G.setPaintProperty(w,L,R);K&&this._updateLayer(G),this._changed=!0,this._updatedPaintProps[d]=!0}},c.prototype.getPaintProperty=function(d,w){return this.getLayer(d).getPaintProperty(w)},c.prototype.setFeatureState=function(d,w){this._checkLoaded();var L=d.source,R=d.sourceLayer,G=this.sourceCaches[L];if(G===void 0){this.fire(new a.ErrorEvent(new Error("The source '"+L+"' does not exist in the map's style.")));return}var K=G.getSource().type;if(K==="geojson"&&R){this.fire(new a.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(K==="vector"&&!R){this.fire(new a.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}d.id===void 0&&this.fire(new a.ErrorEvent(new Error("The feature id parameter must be provided."))),G.setFeatureState(R,d.id,w)},c.prototype.removeFeatureState=function(d,w){this._checkLoaded();var L=d.source,R=this.sourceCaches[L];if(R===void 0){this.fire(new a.ErrorEvent(new Error("The source '"+L+"' does not exist in the map's style.")));return}var G=R.getSource().type,K=G==="vector"?d.sourceLayer:void 0;if(G==="vector"&&!K){this.fire(new a.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(w&&typeof d.id!="string"&&typeof d.id!="number"){this.fire(new a.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}R.removeFeatureState(K,d.id,w)},c.prototype.getFeatureState=function(d){this._checkLoaded();var w=d.source,L=d.sourceLayer,R=this.sourceCaches[w];if(R===void 0){this.fire(new a.ErrorEvent(new Error("The source '"+w+"' does not exist in the map's style.")));return}var G=R.getSource().type;if(G==="vector"&&!L){this.fire(new a.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return d.id===void 0&&this.fire(new a.ErrorEvent(new Error("The feature id parameter must be provided."))),R.getFeatureState(L,d.id)},c.prototype.getTransition=function(){return a.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},c.prototype.serialize=function(){return a.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:a.mapObject(this.sourceCaches,function(d){return d.serialize()}),layers:this._serializeLayers(this._order)},function(d){return d!==void 0})},c.prototype._updateLayer=function(d){this._updatedLayers[d.id]=!0,d.source&&!this._updatedSources[d.source]&&this.sourceCaches[d.source].getSource().type!=="raster"&&(this._updatedSources[d.source]="reload",this.sourceCaches[d.source].pause()),this._changed=!0},c.prototype._flattenAndSortRenderedFeatures=function(d){for(var w=this,L=function(Xr){return w._layers[Xr].type==="fill-extrusion"},R={},G=[],K=this._order.length-1;K>=0;K--){var re=this._order[K];if(L(re)){R[re]=K;for(var ue=0,be=d;ue=0;ht--){var Pt=this._order[ht];if(L(Pt))for(var Nt=G.length-1;Nt>=0;Nt--){var Jt=G[Nt].feature;if(R[Jt.layer.id] 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,wl=Ri(Bc,yu),Vc=Ri(Mm,Yf),Tl=Ri(oi,Wf),Al=Ri(yv,gn),Tv=Ri(Dn,rp),Hc=Ri(tf,nn),Ts=Ri(Eo,Zo),fn=Ri(un,Xf),Bm=Ri(on,Yo),Om=Ri(Xs,Sm),Ml=Ri(Wo,km),rf=Ri(js,Pn),hs=Ri(Cm,xl),up=Ri(bl,gv),fp=Ri(Em,Lm),af=Ri(Oc,Dm),cp=Ri(Pm,zm),hp=Ri(_v,Im),Um=Ri(Rm,xv),Vm=Ri(ap,ip),Av=Ri(bv,Fm),Mv=Ri(wv,gu),Sv=Ri(np,qm),jf=Ri(op,sp),Gc=Ri(lp,Nm),vp=Ri(cs,Uc);function Ri(g,c){var b=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,d=c.match(/attribute ([\w]+) ([\w]+)/g),w=g.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),L=c.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),R=L?L.concat(w):w,G={};return g=g.replace(b,function(K,re,ue,be,xe){return G[xe]=!0,re==="define"?` +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,Tl=Ni(Bc,yu),Vc=Ni(Mm,Yf),Al=Ni(oi,Wf),Ml=Ni(yv,xn),Tv=Ni(Pn,rp),Hc=Ni(tf,ln),Ts=Ni(Eo,Zo),dn=Ni(vn,Xf),Bm=Ni(un,Yo),Om=Ni(Xs,Sm),Sl=Ni(Wo,km),rf=Ni(js,zn),hs=Ni(Cm,bl),up=Ni(wl,gv),fp=Ni(Em,Lm),af=Ni(Oc,Dm),cp=Ni(Pm,zm),hp=Ni(_v,Im),Um=Ni(Rm,xv),Vm=Ni(ap,ip),Av=Ni(bv,Fm),Mv=Ni(wv,gu),Sv=Ni(np,qm),jf=Ni(op,sp),Gc=Ni(lp,Nm),vp=Ni(cs,Uc);function Ni(g,c){var b=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,d=c.match(/attribute ([\w]+) ([\w]+)/g),w=g.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),L=c.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),R=L?L.concat(w):w,G={};return g=g.replace(b,function(K,re,ue,be,xe){return G[xe]=!0,re==="define"?` #ifndef HAS_UNIFORM_u_`+xe+` varying `+ue+" "+be+" "+xe+`; #else @@ -478,7 +478,7 @@ uniform `+ue+" "+be+" u_"+xe+`; #ifdef HAS_UNIFORM_u_`+xe+` `+ue+" "+be+" "+xe+" = u_"+xe+`; #endif -`}),c=c.replace(b,function(K,re,ue,be,xe){var Re=be==="float"?"vec2":"vec4",Ze=xe.match(/color/)?"color":Re;return G[xe]?re==="define"?` +`}),c=c.replace(b,function(K,re,ue,be,xe){var Re=be==="float"?"vec2":"vec4",Ye=xe.match(/color/)?"color":Re;return G[xe]?re==="define"?` #ifndef HAS_UNIFORM_u_`+xe+` uniform lowp float u_`+xe+`_t; attribute `+ue+" "+Re+" a_"+xe+`; @@ -486,7 +486,7 @@ varying `+ue+" "+be+" "+xe+`; #else uniform `+ue+" "+be+" u_"+xe+`; #endif -`:Ze==="vec4"?` +`:Ye==="vec4"?` #ifndef HAS_UNIFORM_u_`+xe+` `+xe+" = a_"+xe+`; #else @@ -494,7 +494,7 @@ uniform `+ue+" "+be+" u_"+xe+`; #endif `:` #ifndef HAS_UNIFORM_u_`+xe+` - `+xe+" = unpack_mix_"+Ze+"(a_"+xe+", u_"+xe+`_t); + `+xe+" = unpack_mix_"+Ye+"(a_"+xe+", u_"+xe+`_t); #else `+ue+" "+be+" "+xe+" = u_"+xe+`; #endif @@ -505,7 +505,7 @@ attribute `+ue+" "+Re+" a_"+xe+`; #else uniform `+ue+" "+be+" u_"+xe+`; #endif -`:Ze==="vec4"?` +`:Ye==="vec4"?` #ifndef HAS_UNIFORM_u_`+xe+` `+ue+" "+be+" "+xe+" = a_"+xe+`; #else @@ -513,13 +513,13 @@ uniform `+ue+" "+be+" u_"+xe+`; #endif `:` #ifndef HAS_UNIFORM_u_`+xe+` - `+ue+" "+be+" "+xe+" = unpack_mix_"+Ze+"(a_"+xe+", u_"+xe+`_t); + `+ue+" "+be+" "+xe+" = unpack_mix_"+Ye+"(a_"+xe+", u_"+xe+`_t); #else `+ue+" "+be+" "+xe+" = u_"+xe+`; #endif -`}),{fragmentSource:g,vertexSource:c,staticAttributes:d,staticUniforms:R}}var Hm=Object.freeze({__proto__:null,prelude:wl,background:Vc,backgroundPattern:Tl,circle:Al,clippingMask:Tv,heatmap:Hc,heatmapTexture:Ts,collisionBox:fn,collisionCircle:Bm,debug:Om,fill:Ml,fillOutline:rf,fillOutlinePattern:hs,fillPattern:up,fillExtrusion:fp,fillExtrusionPattern:af,hillshadePrepare:cp,hillshade:hp,line:Um,lineGradient:Vm,linePattern:Av,lineSDF:Mv,raster:Sv,symbolIcon:jf,symbolSDF:Gc,symbolTextAndIcon:vp}),Zc=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};Zc.prototype.bind=function(c,b,d,w,L,R,G,K){this.context=c;for(var re=this.boundPaintVertexBuffers.length!==w.length,ue=0;!re&&ue>16,G>>16],u_pixel_coord_lower:[R&65535,G&65535]}}function _u(g,c,b,d){var w=b.imageManager.getPattern(g.from.toString()),L=b.imageManager.getPattern(g.to.toString()),R=b.imageManager.getPixelSize(),G=R.width,K=R.height,re=Math.pow(2,d.tileID.overscaledZ),ue=d.tileSize*Math.pow(2,b.transform.tileZoom)/re,be=ue*(d.tileID.canonical.x+d.tileID.wrap*re),xe=ue*d.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:w.tl,u_pattern_br_a:w.br,u_pattern_tl_b:L.tl,u_pattern_br_b:L.br,u_texsize:[G,K],u_mix:c.t,u_pattern_size_a:w.displaySize,u_pattern_size_b:L.displaySize,u_scale_a:c.fromScale,u_scale_b:c.toScale,u_tile_units_to_pixels:1/mo(d,1,b.transform.tileZoom),u_pixel_coord_upper:[be>>16,xe>>16],u_pixel_coord_lower:[be&65535,xe&65535]}}var Cv=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_lightpos:new a.Uniform3f(g,c.u_lightpos),u_lightintensity:new a.Uniform1f(g,c.u_lightintensity),u_lightcolor:new a.Uniform3f(g,c.u_lightcolor),u_vertical_gradient:new a.Uniform1f(g,c.u_vertical_gradient),u_opacity:new a.Uniform1f(g,c.u_opacity)}},_n=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_lightpos:new a.Uniform3f(g,c.u_lightpos),u_lightintensity:new a.Uniform1f(g,c.u_lightintensity),u_lightcolor:new a.Uniform3f(g,c.u_lightcolor),u_vertical_gradient:new a.Uniform1f(g,c.u_vertical_gradient),u_height_factor:new a.Uniform1f(g,c.u_height_factor),u_image:new a.Uniform1i(g,c.u_image),u_texsize:new a.Uniform2f(g,c.u_texsize),u_pixel_coord_upper:new a.Uniform2f(g,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(g,c.u_pixel_coord_lower),u_scale:new a.Uniform3f(g,c.u_scale),u_fade:new a.Uniform1f(g,c.u_fade),u_opacity:new a.Uniform1f(g,c.u_opacity)}},Jf=function(g,c,b,d){var w=c.style.light,L=w.properties.get("position"),R=[L.x,L.y,L.z],G=a.create$1();w.properties.get("anchor")==="viewport"&&a.fromRotation(G,-c.transform.angle),a.transformMat3(R,R,G);var K=w.properties.get("color");return{u_matrix:g,u_lightpos:R,u_lightintensity:w.properties.get("intensity"),u_lightcolor:[K.r,K.g,K.b],u_vertical_gradient:+b,u_opacity:d}},Js=function(g,c,b,d,w,L,R){return a.extend(Jf(g,c,b,d),nf(L,c,R),{u_height_factor:-Math.pow(2,w.overscaledZ)/R.tileSize/8})},Sl=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix)}},kl=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_image:new a.Uniform1i(g,c.u_image),u_texsize:new a.Uniform2f(g,c.u_texsize),u_pixel_coord_upper:new a.Uniform2f(g,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(g,c.u_pixel_coord_lower),u_scale:new a.Uniform3f(g,c.u_scale),u_fade:new a.Uniform1f(g,c.u_fade)}},Cl=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_world:new a.Uniform2f(g,c.u_world)}},Ks=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_world:new a.Uniform2f(g,c.u_world),u_image:new a.Uniform1i(g,c.u_image),u_texsize:new a.Uniform2f(g,c.u_texsize),u_pixel_coord_upper:new a.Uniform2f(g,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(g,c.u_pixel_coord_lower),u_scale:new a.Uniform3f(g,c.u_scale),u_fade:new a.Uniform1f(g,c.u_fade)}},As=function(g){return{u_matrix:g}},Ms=function(g,c,b,d){return a.extend(As(g),nf(b,c,d))},El=function(g,c){return{u_matrix:g,u_world:c}},pp=function(g,c,b,d,w){return a.extend(Ms(g,c,b,d),{u_world:w})},Gm=function(g,c){return{u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_scale_with_map:new a.Uniform1i(g,c.u_scale_with_map),u_pitch_with_map:new a.Uniform1i(g,c.u_pitch_with_map),u_extrude_scale:new a.Uniform2f(g,c.u_extrude_scale),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_matrix:new a.UniformMatrix4f(g,c.u_matrix)}},Zm=function(g,c,b,d){var w=g.transform,L,R;if(d.paint.get("circle-pitch-alignment")==="map"){var G=mo(b,1,w.zoom);L=!0,R=[G,G]}else L=!1,R=w.pixelsToGLUnits;return{u_camera_to_center_distance:w.cameraToCenterDistance,u_scale_with_map:+(d.paint.get("circle-pitch-scale")==="map"),u_matrix:g.translatePosMatrix(c.posMatrix,b,d.paint.get("circle-translate"),d.paint.get("circle-translate-anchor")),u_pitch_with_map:+L,u_device_pixel_ratio:a.browser.devicePixelRatio,u_extrude_scale:R}},Ym=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_pixels_to_tile_units:new a.Uniform1f(g,c.u_pixels_to_tile_units),u_extrude_scale:new a.Uniform2f(g,c.u_extrude_scale),u_overscale_factor:new a.Uniform1f(g,c.u_overscale_factor)}},mp=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_inv_matrix:new a.UniformMatrix4f(g,c.u_inv_matrix),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_viewport_size:new a.Uniform2f(g,c.u_viewport_size)}},yp=function(g,c,b){var d=mo(b,1,c.zoom),w=Math.pow(2,c.zoom-b.tileID.overscaledZ),L=b.tileID.overscaleFactor();return{u_matrix:g,u_camera_to_center_distance:c.cameraToCenterDistance,u_pixels_to_tile_units:d,u_extrude_scale:[c.pixelsToGLUnits[0]/(d*w),c.pixelsToGLUnits[1]/(d*w)],u_overscale_factor:L}},Ev=function(g,c,b){return{u_matrix:g,u_inv_matrix:c,u_camera_to_center_distance:b.cameraToCenterDistance,u_viewport_size:[b.width,b.height]}},Lv=function(g,c){return{u_color:new a.UniformColor(g,c.u_color),u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_overlay:new a.Uniform1i(g,c.u_overlay),u_overlay_scale:new a.Uniform1f(g,c.u_overlay_scale)}},Kf=function(g,c,b){return b===void 0&&(b=1),{u_matrix:g,u_color:c,u_overlay:0,u_overlay_scale:b}},Yc=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix)}},gp=function(g){return{u_matrix:g}},Dv=function(g,c){return{u_extrude_scale:new a.Uniform1f(g,c.u_extrude_scale),u_intensity:new a.Uniform1f(g,c.u_intensity),u_matrix:new a.UniformMatrix4f(g,c.u_matrix)}},_p=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_world:new a.Uniform2f(g,c.u_world),u_image:new a.Uniform1i(g,c.u_image),u_color_ramp:new a.Uniform1i(g,c.u_color_ramp),u_opacity:new a.Uniform1f(g,c.u_opacity)}},of=function(g,c,b,d){return{u_matrix:g,u_extrude_scale:mo(c,1,b),u_intensity:d}},Wm=function(g,c,b,d){var w=a.create();a.ortho(w,0,g.width,g.height,0,0,1);var L=g.context.gl;return{u_matrix:w,u_world:[L.drawingBufferWidth,L.drawingBufferHeight],u_image:b,u_color_ramp:d,u_opacity:c.paint.get("heatmap-opacity")}},xp=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_image:new a.Uniform1i(g,c.u_image),u_latrange:new a.Uniform2f(g,c.u_latrange),u_light:new a.Uniform2f(g,c.u_light),u_shadow:new a.UniformColor(g,c.u_shadow),u_highlight:new a.UniformColor(g,c.u_highlight),u_accent:new a.UniformColor(g,c.u_accent)}},bp=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_image:new a.Uniform1i(g,c.u_image),u_dimension:new a.Uniform2f(g,c.u_dimension),u_zoom:new a.Uniform1f(g,c.u_zoom),u_unpack:new a.Uniform4f(g,c.u_unpack)}},wp=function(g,c,b){var d=b.paint.get("hillshade-shadow-color"),w=b.paint.get("hillshade-highlight-color"),L=b.paint.get("hillshade-accent-color"),R=b.paint.get("hillshade-illumination-direction")*(Math.PI/180);b.paint.get("hillshade-illumination-anchor")==="viewport"&&(R-=g.transform.angle);var G=!g.options.moving;return{u_matrix:g.transform.calculatePosMatrix(c.tileID.toUnwrapped(),G),u_image:0,u_latrange:zv(g,c.tileID),u_light:[b.paint.get("hillshade-exaggeration"),R],u_shadow:d,u_highlight:w,u_accent:L}},Pv=function(g,c){var b=c.stride,d=a.create();return a.ortho(d,0,a.EXTENT,-a.EXTENT,0,0,1),a.translate(d,d,[0,-a.EXTENT,0]),{u_matrix:d,u_image:1,u_dimension:[b,b],u_zoom:g.overscaledZ,u_unpack:c.getUnpackVector()}};function zv(g,c){var b=Math.pow(2,c.canonical.z),d=c.canonical.y;return[new a.MercatorCoordinate(0,d/b).toLngLat().lat,new a.MercatorCoordinate(0,(d+1)/b).toLngLat().lat]}var xu=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_ratio:new a.Uniform1f(g,c.u_ratio),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_units_to_pixels:new a.Uniform2f(g,c.u_units_to_pixels)}},Ll=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_ratio:new a.Uniform1f(g,c.u_ratio),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_units_to_pixels:new a.Uniform2f(g,c.u_units_to_pixels),u_image:new a.Uniform1i(g,c.u_image),u_image_height:new a.Uniform1f(g,c.u_image_height)}},Qf=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_texsize:new a.Uniform2f(g,c.u_texsize),u_ratio:new a.Uniform1f(g,c.u_ratio),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_image:new a.Uniform1i(g,c.u_image),u_units_to_pixels:new a.Uniform2f(g,c.u_units_to_pixels),u_scale:new a.Uniform3f(g,c.u_scale),u_fade:new a.Uniform1f(g,c.u_fade)}},Iv=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_ratio:new a.Uniform1f(g,c.u_ratio),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_units_to_pixels:new a.Uniform2f(g,c.u_units_to_pixels),u_patternscale_a:new a.Uniform2f(g,c.u_patternscale_a),u_patternscale_b:new a.Uniform2f(g,c.u_patternscale_b),u_sdfgamma:new a.Uniform1f(g,c.u_sdfgamma),u_image:new a.Uniform1i(g,c.u_image),u_tex_y_a:new a.Uniform1f(g,c.u_tex_y_a),u_tex_y_b:new a.Uniform1f(g,c.u_tex_y_b),u_mix:new a.Uniform1f(g,c.u_mix)}},Wc=function(g,c,b){var d=g.transform;return{u_matrix:bu(g,c,b),u_ratio:1/mo(c,1,d.zoom),u_device_pixel_ratio:a.browser.devicePixelRatio,u_units_to_pixels:[1/d.pixelsToGLUnits[0],1/d.pixelsToGLUnits[1]]}},Xc=function(g,c,b,d){return a.extend(Wc(g,c,b),{u_image:0,u_image_height:d})},jc=function(g,c,b,d){var w=g.transform,L=Jc(c,w);return{u_matrix:bu(g,c,b),u_texsize:c.imageAtlasTexture.size,u_ratio:1/mo(c,1,w.zoom),u_device_pixel_ratio:a.browser.devicePixelRatio,u_image:0,u_scale:[L,d.fromScale,d.toScale],u_fade:d.t,u_units_to_pixels:[1/w.pixelsToGLUnits[0],1/w.pixelsToGLUnits[1]]}},Dl=function(g,c,b,d,w){var L=g.transform,R=g.lineAtlas,G=Jc(c,L),K=b.layout.get("line-cap")==="round",re=R.getDash(d.from,K),ue=R.getDash(d.to,K),be=re.width*w.fromScale,xe=ue.width*w.toScale;return a.extend(Wc(g,c,b),{u_patternscale_a:[G/be,-re.height/2],u_patternscale_b:[G/xe,-ue.height/2],u_sdfgamma:R.width/(Math.min(be,xe)*256*a.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:re.y,u_tex_y_b:ue.y,u_mix:w.t})};function Jc(g,c){return 1/mo(g,1,c.tileZoom)}function bu(g,c,b){return g.translatePosMatrix(c.tileID.posMatrix,c,b.paint.get("line-translate"),b.paint.get("line-translate-anchor"))}var sf=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_tl_parent:new a.Uniform2f(g,c.u_tl_parent),u_scale_parent:new a.Uniform1f(g,c.u_scale_parent),u_buffer_scale:new a.Uniform1f(g,c.u_buffer_scale),u_fade_t:new a.Uniform1f(g,c.u_fade_t),u_opacity:new a.Uniform1f(g,c.u_opacity),u_image0:new a.Uniform1i(g,c.u_image0),u_image1:new a.Uniform1i(g,c.u_image1),u_brightness_low:new a.Uniform1f(g,c.u_brightness_low),u_brightness_high:new a.Uniform1f(g,c.u_brightness_high),u_saturation_factor:new a.Uniform1f(g,c.u_saturation_factor),u_contrast_factor:new a.Uniform1f(g,c.u_contrast_factor),u_spin_weights:new a.Uniform3f(g,c.u_spin_weights)}},Tp=function(g,c,b,d,w){return{u_matrix:g,u_tl_parent:c,u_scale_parent:b,u_buffer_scale:1,u_fade_t:d.mix,u_opacity:d.opacity*w.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:w.paint.get("raster-brightness-min"),u_brightness_high:w.paint.get("raster-brightness-max"),u_saturation_factor:$f(w.paint.get("raster-saturation")),u_contrast_factor:di(w.paint.get("raster-contrast")),u_spin_weights:Kc(w.paint.get("raster-hue-rotate"))}};function Kc(g){g*=Math.PI/180;var c=Math.sin(g),b=Math.cos(g);return[(2*b+1)/3,(-Math.sqrt(3)*c-b+1)/3,(Math.sqrt(3)*c-b+1)/3]}function di(g){return g>0?1/(1-g):1+g}function $f(g){return g>0?1-1/(1.001-g):-g}var Ap=function(g,c){return{u_is_size_zoom_constant:new a.Uniform1i(g,c.u_is_size_zoom_constant),u_is_size_feature_constant:new a.Uniform1i(g,c.u_is_size_feature_constant),u_size_t:new a.Uniform1f(g,c.u_size_t),u_size:new a.Uniform1f(g,c.u_size),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_pitch:new a.Uniform1f(g,c.u_pitch),u_rotate_symbol:new a.Uniform1i(g,c.u_rotate_symbol),u_aspect_ratio:new a.Uniform1f(g,c.u_aspect_ratio),u_fade_change:new a.Uniform1f(g,c.u_fade_change),u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_label_plane_matrix:new a.UniformMatrix4f(g,c.u_label_plane_matrix),u_coord_matrix:new a.UniformMatrix4f(g,c.u_coord_matrix),u_is_text:new a.Uniform1i(g,c.u_is_text),u_pitch_with_map:new a.Uniform1i(g,c.u_pitch_with_map),u_texsize:new a.Uniform2f(g,c.u_texsize),u_texture:new a.Uniform1i(g,c.u_texture)}},Mp=function(g,c){return{u_is_size_zoom_constant:new a.Uniform1i(g,c.u_is_size_zoom_constant),u_is_size_feature_constant:new a.Uniform1i(g,c.u_is_size_feature_constant),u_size_t:new a.Uniform1f(g,c.u_size_t),u_size:new a.Uniform1f(g,c.u_size),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_pitch:new a.Uniform1f(g,c.u_pitch),u_rotate_symbol:new a.Uniform1i(g,c.u_rotate_symbol),u_aspect_ratio:new a.Uniform1f(g,c.u_aspect_ratio),u_fade_change:new a.Uniform1f(g,c.u_fade_change),u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_label_plane_matrix:new a.UniformMatrix4f(g,c.u_label_plane_matrix),u_coord_matrix:new a.UniformMatrix4f(g,c.u_coord_matrix),u_is_text:new a.Uniform1i(g,c.u_is_text),u_pitch_with_map:new a.Uniform1i(g,c.u_pitch_with_map),u_texsize:new a.Uniform2f(g,c.u_texsize),u_texture:new a.Uniform1i(g,c.u_texture),u_gamma_scale:new a.Uniform1f(g,c.u_gamma_scale),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_is_halo:new a.Uniform1i(g,c.u_is_halo)}},Pl=function(g,c){return{u_is_size_zoom_constant:new a.Uniform1i(g,c.u_is_size_zoom_constant),u_is_size_feature_constant:new a.Uniform1i(g,c.u_is_size_feature_constant),u_size_t:new a.Uniform1f(g,c.u_size_t),u_size:new a.Uniform1f(g,c.u_size),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_pitch:new a.Uniform1f(g,c.u_pitch),u_rotate_symbol:new a.Uniform1i(g,c.u_rotate_symbol),u_aspect_ratio:new a.Uniform1f(g,c.u_aspect_ratio),u_fade_change:new a.Uniform1f(g,c.u_fade_change),u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_label_plane_matrix:new a.UniformMatrix4f(g,c.u_label_plane_matrix),u_coord_matrix:new a.UniformMatrix4f(g,c.u_coord_matrix),u_is_text:new a.Uniform1i(g,c.u_is_text),u_pitch_with_map:new a.Uniform1i(g,c.u_pitch_with_map),u_texsize:new a.Uniform2f(g,c.u_texsize),u_texsize_icon:new a.Uniform2f(g,c.u_texsize_icon),u_texture:new a.Uniform1i(g,c.u_texture),u_texture_icon:new a.Uniform1i(g,c.u_texture_icon),u_gamma_scale:new a.Uniform1f(g,c.u_gamma_scale),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_is_halo:new a.Uniform1i(g,c.u_is_halo)}},Sp=function(g,c,b,d,w,L,R,G,K,re){var ue=w.transform;return{u_is_size_zoom_constant:+(g==="constant"||g==="source"),u_is_size_feature_constant:+(g==="constant"||g==="camera"),u_size_t:c?c.uSizeT:0,u_size:c?c.uSize:0,u_camera_to_center_distance:ue.cameraToCenterDistance,u_pitch:ue.pitch/360*2*Math.PI,u_rotate_symbol:+b,u_aspect_ratio:ue.width/ue.height,u_fade_change:w.options.fadeDuration?w.symbolFadeChange:1,u_matrix:L,u_label_plane_matrix:R,u_coord_matrix:G,u_is_text:+K,u_pitch_with_map:+d,u_texsize:re,u_texture:0}},kp=function(g,c,b,d,w,L,R,G,K,re,ue){var be=w.transform;return a.extend(Sp(g,c,b,d,w,L,R,G,K,re),{u_gamma_scale:d?Math.cos(be._pitch)*be.cameraToCenterDistance:1,u_device_pixel_ratio:a.browser.devicePixelRatio,u_is_halo:+ue})},Rv=function(g,c,b,d,w,L,R,G,K,re){return a.extend(kp(g,c,b,d,w,L,R,G,!0,K,!0),{u_texsize_icon:re,u_texture_icon:1})},Cp=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_opacity:new a.Uniform1f(g,c.u_opacity),u_color:new a.UniformColor(g,c.u_color)}},Xm=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_opacity:new a.Uniform1f(g,c.u_opacity),u_image:new a.Uniform1i(g,c.u_image),u_pattern_tl_a:new a.Uniform2f(g,c.u_pattern_tl_a),u_pattern_br_a:new a.Uniform2f(g,c.u_pattern_br_a),u_pattern_tl_b:new a.Uniform2f(g,c.u_pattern_tl_b),u_pattern_br_b:new a.Uniform2f(g,c.u_pattern_br_b),u_texsize:new a.Uniform2f(g,c.u_texsize),u_mix:new a.Uniform1f(g,c.u_mix),u_pattern_size_a:new a.Uniform2f(g,c.u_pattern_size_a),u_pattern_size_b:new a.Uniform2f(g,c.u_pattern_size_b),u_scale_a:new a.Uniform1f(g,c.u_scale_a),u_scale_b:new a.Uniform1f(g,c.u_scale_b),u_pixel_coord_upper:new a.Uniform2f(g,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(g,c.u_pixel_coord_lower),u_tile_units_to_pixels:new a.Uniform1f(g,c.u_tile_units_to_pixels)}},zl=function(g,c,b){return{u_matrix:g,u_opacity:c,u_color:b}},wu=function(g,c,b,d,w,L){return a.extend(_u(d,L,b,w),{u_matrix:g,u_opacity:c})},ec={fillExtrusion:Cv,fillExtrusionPattern:_n,fill:Sl,fillPattern:kl,fillOutline:Cl,fillOutlinePattern:Ks,circle:Gm,collisionBox:Ym,collisionCircle:mp,debug:Lv,clippingMask:Yc,heatmap:Dv,heatmapTexture:_p,hillshade:xp,hillshadePrepare:bp,line:xu,lineGradient:Ll,linePattern:Qf,lineSDF:Iv,raster:sf,symbolIcon:Ap,symbolSDF:Mp,symbolTextAndIcon:Pl,background:Cp,backgroundPattern:Xm},Ss;function ks(g,c,b,d,w,L,R){for(var G=g.context,K=G.gl,re=g.useProgram("collisionBox"),ue=[],be=0,xe=0,Re=0;Re0){var Nt=a.create(),$t=Xe;a.mul(Nt,Oe.placementInvProjMatrix,g.transform.glCoordMatrix),a.mul(Nt,Nt,Oe.placementViewportMatrix),ue.push({circleArray:Pt,circleOffset:xe,transform:$t,invTransform:Nt}),be+=Pt.length/4,xe=be}ht&&re.draw(G,K.LINES,pa.disabled,Zr.disabled,g.colorModeForRenderPass(),Ee.disabled,yp(Xe,g.transform,Ge),b.id,ht.layoutVertexBuffer,ht.indexBuffer,ht.segments,null,g.transform.zoom,null,null,ht.collisionVertexBuffer)}}if(!(!R||!ue.length)){var ar=g.useProgram("collisionCircle"),Wt=new a.StructArrayLayout2f1f2i16;Wt.resize(be*4),Wt._trim();for(var ir=0,cr=0,_r=ue;cr<_r.length;cr+=1)for(var Lr=_r[cr],Sr=0;Sr=0&&(Ze[Oe.associatedIconIndex]={shiftedAnchor:Xr,angle:Fa})}}if(ue){Re.clear();for(var qr=g.icon.placedSymbolArray,Sa=0;Sa0){var R=a.browser.now(),G=(R-g.timeAdded)/L,K=c?(R-c.timeAdded)/L:-1,re=b.getSource(),ue=w.coveringZoomLevel({tileSize:re.tileSize,roundZoom:re.roundZoom}),be=!c||Math.abs(c.tileID.overscaledZ-ue)>Math.abs(g.tileID.overscaledZ-ue),xe=be&&g.refreshedUponExpiration?1:a.clamp(be?G:1-K,0,1);return g.refreshedUponExpiration&&G>=1&&(g.refreshedUponExpiration=!1),c?{opacity:1,mix:1-xe}:{opacity:xe,mix:0}}else return{opacity:1,mix:0}}function tc(g,c,b){var d=b.paint.get("background-color"),w=b.paint.get("background-opacity");if(w!==0){var L=g.context,R=L.gl,G=g.transform,K=G.tileSize,re=b.paint.get("background-pattern");if(!g.isPatternMissing(re)){var ue=!re&&d.a===1&&w===1&&g.opaquePassEnabledForLayer()?"opaque":"translucent";if(g.renderPass===ue){var be=Zr.disabled,xe=g.depthModeForSublayer(0,ue==="opaque"?pa.ReadWrite:pa.ReadOnly),Re=g.colorModeForRenderPass(),Ze=g.useProgram(re?"backgroundPattern":"background"),Ge=G.coveringTiles({tileSize:K});re&&(L.activeTexture.set(R.TEXTURE0),g.imageManager.bind(g.context));for(var Oe=b.getCrossfadeParameters(),Xe=0,ht=Ge;Xe "+b.overscaledZ);var Xe=Oe+" "+Re+"kb";Ip(g,Xe),R.draw(d,w.TRIANGLES,G,K,ee.alphaBlended,Ee.disabled,Kf(L,a.Color.transparent,Ge),ue,g.debugBuffer,g.quadTriangleIndexBuffer,g.debugSegments)}function Ip(g,c){g.initDebugOverlayCanvas();var b=g.debugOverlayCanvas,d=g.context.gl,w=g.debugOverlayCanvas.getContext("2d");w.clearRect(0,0,b.width,b.height),w.shadowColor="white",w.shadowBlur=2,w.lineWidth=1.5,w.strokeStyle="white",w.textBaseline="top",w.font="bold 36px Open Sans, sans-serif",w.fillText(c,5,5),w.strokeText(c,5,5),g.debugOverlayTexture.update(b),g.debugOverlayTexture.bind(d.LINEAR,d.CLAMP_TO_EDGE)}function pf(g,c,b){var d=g.context,w=b.implementation;if(g.renderPass==="offscreen"){var L=w.prerender;L&&(g.setCustomLayerDefaults(),d.setColorMode(g.colorModeForRenderPass()),L.call(w,d.gl,g.transform.customLayerMatrix()),d.setDirty(),g.setBaseState())}else if(g.renderPass==="translucent"){g.setCustomLayerDefaults(),d.setColorMode(g.colorModeForRenderPass()),d.setStencilMode(Zr.disabled);var R=w.renderingMode==="3d"?new pa(g.context.gl.LEQUAL,pa.ReadWrite,g.depthRangeFor3D):g.depthModeForSublayer(0,pa.ReadOnly);d.setDepthMode(R),w.render(d.gl,g.transform.customLayerMatrix()),d.setDirty(),g.setBaseState(),d.bindFramebuffer.set(null)}}var li={symbol:jm,circle:Qc,heatmap:Tu,line:go,fill:Ep,"fill-extrusion":Il,hillshade:vf,raster:Lp,background:tc,debug:Vv,custom:pf},Ci=function(c,b){this.context=new Be(c),this.transform=b,this._tileTextures={},this.setup(),this.numSublayers=et.maxUnderzooming+et.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new mu,this.gpuTimers={}};Ci.prototype.resize=function(c,b){if(this.width=c*a.browser.devicePixelRatio,this.height=b*a.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var d=0,w=this.style._order;d256&&this.clearStencil(),d.setColorMode(ee.disabled),d.setDepthMode(pa.disabled);var L=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var R=0,G=b;R256&&this.clearStencil();var c=this.nextStencilID++,b=this.context.gl;return new Zr({func:b.NOTEQUAL,mask:255},c,255,b.KEEP,b.KEEP,b.REPLACE)},Ci.prototype.stencilModeForClipping=function(c){var b=this.context.gl;return new Zr({func:b.EQUAL,mask:255},this._tileClippingMaskIDs[c.key],0,b.KEEP,b.KEEP,b.REPLACE)},Ci.prototype.stencilConfigForOverlap=function(c){var b,d=this.context.gl,w=c.sort(function(re,ue){return ue.overscaledZ-re.overscaledZ}),L=w[w.length-1].overscaledZ,R=w[0].overscaledZ-L+1;if(R>1){this.currentStencilSource=void 0,this.nextStencilID+R>256&&this.clearStencil();for(var G={},K=0;K=0;this.currentLayer--){var Nt=this.style._layers[w[this.currentLayer]],$t=L[Nt.source],ar=K[Nt.source];this._renderTileClippingMasks(Nt,ar),this.renderLayer(this,$t,Nt,ar)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?b.pop():null},Ci.prototype.isPatternMissing=function(c){if(!c)return!1;if(!c.from||!c.to)return!0;var b=this.imageManager.getPattern(c.from.toString()),d=this.imageManager.getPattern(c.to.toString());return!b||!d},Ci.prototype.useProgram=function(c,b){this.cache=this.cache||{};var d=""+c+(b?b.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[d]||(this.cache[d]=new dp(this.context,c,Hm[c],b,ec[c],this._showOverdrawInspector)),this.cache[d]},Ci.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},Ci.prototype.setBaseState=function(){var c=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(c.FUNC_ADD)},Ci.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=a.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var c=this.context.gl;this.debugOverlayTexture=new a.Texture(this.context,this.debugOverlayCanvas,c.RGBA)}},Ci.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var so=function(c,b){this.points=c,this.planes=b};so.fromInvProjectionMatrix=function(c,b,d){var w=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],L=Math.pow(2,d),R=w.map(function(re){return a.transformMat4([],re,c)}).map(function(re){return a.scale$1([],re,1/re[3]/b*L)}),G=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],K=G.map(function(re){var ue=a.sub([],R[re[0]],R[re[1]]),be=a.sub([],R[re[2]],R[re[1]]),xe=a.normalize([],a.cross([],ue,be)),Re=-a.dot(xe,R[re[1]]);return xe.concat(Re)});return new so(R,K)};var Cs=function(c,b){this.min=c,this.max=b,this.center=a.scale$2([],a.add([],this.min,this.max),.5)};Cs.prototype.quadrant=function(c){for(var b=[c%2===0,c<2],d=a.clone$2(this.min),w=a.clone$2(this.max),L=0;L=0;if(R===0)return 0;R!==b.length&&(d=!1)}if(d)return 2;for(var K=0;K<3;K++){for(var re=Number.MAX_VALUE,ue=-Number.MAX_VALUE,be=0;bethis.max[K]-this.min[K])return 0}return 1};var _o=function(c,b,d,w){if(c===void 0&&(c=0),b===void 0&&(b=0),d===void 0&&(d=0),w===void 0&&(w=0),isNaN(c)||c<0||isNaN(b)||b<0||isNaN(d)||d<0||isNaN(w)||w<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=c,this.bottom=b,this.left=d,this.right=w};_o.prototype.interpolate=function(c,b,d){return b.top!=null&&c.top!=null&&(this.top=a.number(c.top,b.top,d)),b.bottom!=null&&c.bottom!=null&&(this.bottom=a.number(c.bottom,b.bottom,d)),b.left!=null&&c.left!=null&&(this.left=a.number(c.left,b.left,d)),b.right!=null&&c.right!=null&&(this.right=a.number(c.right,b.right,d)),this},_o.prototype.getCenter=function(c,b){var d=a.clamp((this.left+c-this.right)/2,0,c),w=a.clamp((this.top+b-this.bottom)/2,0,b);return new a.Point(d,w)},_o.prototype.equals=function(c){return this.top===c.top&&this.bottom===c.bottom&&this.left===c.left&&this.right===c.right},_o.prototype.clone=function(){return new _o(this.top,this.bottom,this.left,this.right)},_o.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var ti=function(c,b,d,w,L){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=L===void 0?!0:L,this._minZoom=c||0,this._maxZoom=b||22,this._minPitch=d==null?0:d,this._maxPitch=w==null?60:w,this.setMaxBounds(),this.width=0,this.height=0,this._center=new a.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new _o,this._posMatrixCache={},this._alignedPosMatrixCache={}},fi={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};ti.prototype.clone=function(){var c=new ti(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return c.tileSize=this.tileSize,c.latRange=this.latRange,c.width=this.width,c.height=this.height,c._center=this._center,c.zoom=this.zoom,c.angle=this.angle,c._fov=this._fov,c._pitch=this._pitch,c._unmodified=this._unmodified,c._edgeInsets=this._edgeInsets.clone(),c._calcMatrices(),c},fi.minZoom.get=function(){return this._minZoom},fi.minZoom.set=function(g){this._minZoom!==g&&(this._minZoom=g,this.zoom=Math.max(this.zoom,g))},fi.maxZoom.get=function(){return this._maxZoom},fi.maxZoom.set=function(g){this._maxZoom!==g&&(this._maxZoom=g,this.zoom=Math.min(this.zoom,g))},fi.minPitch.get=function(){return this._minPitch},fi.minPitch.set=function(g){this._minPitch!==g&&(this._minPitch=g,this.pitch=Math.max(this.pitch,g))},fi.maxPitch.get=function(){return this._maxPitch},fi.maxPitch.set=function(g){this._maxPitch!==g&&(this._maxPitch=g,this.pitch=Math.min(this.pitch,g))},fi.renderWorldCopies.get=function(){return this._renderWorldCopies},fi.renderWorldCopies.set=function(g){g===void 0?g=!0:g===null&&(g=!1),this._renderWorldCopies=g},fi.worldSize.get=function(){return this.tileSize*this.scale},fi.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},fi.size.get=function(){return new a.Point(this.width,this.height)},fi.bearing.get=function(){return-this.angle/Math.PI*180},fi.bearing.set=function(g){var c=-a.wrap(g,-180,180)*Math.PI/180;this.angle!==c&&(this._unmodified=!1,this.angle=c,this._calcMatrices(),this.rotationMatrix=a.create$2(),a.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},fi.pitch.get=function(){return this._pitch/Math.PI*180},fi.pitch.set=function(g){var c=a.clamp(g,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==c&&(this._unmodified=!1,this._pitch=c,this._calcMatrices())},fi.fov.get=function(){return this._fov/Math.PI*180},fi.fov.set=function(g){g=Math.max(.01,Math.min(60,g)),this._fov!==g&&(this._unmodified=!1,this._fov=g/180*Math.PI,this._calcMatrices())},fi.zoom.get=function(){return this._zoom},fi.zoom.set=function(g){var c=Math.min(Math.max(g,this.minZoom),this.maxZoom);this._zoom!==c&&(this._unmodified=!1,this._zoom=c,this.scale=this.zoomScale(c),this.tileZoom=Math.floor(c),this.zoomFraction=c-this.tileZoom,this._constrain(),this._calcMatrices())},fi.center.get=function(){return this._center},fi.center.set=function(g){g.lat===this._center.lat&&g.lng===this._center.lng||(this._unmodified=!1,this._center=g,this._constrain(),this._calcMatrices())},fi.padding.get=function(){return this._edgeInsets.toJSON()},fi.padding.set=function(g){this._edgeInsets.equals(g)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,g,1),this._calcMatrices())},fi.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},ti.prototype.isPaddingEqual=function(c){return this._edgeInsets.equals(c)},ti.prototype.interpolatePadding=function(c,b,d){this._unmodified=!1,this._edgeInsets.interpolate(c,b,d),this._constrain(),this._calcMatrices()},ti.prototype.coveringZoomLevel=function(c){var b=(c.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/c.tileSize));return Math.max(0,b)},ti.prototype.getVisibleUnwrappedCoordinates=function(c){var b=[new a.UnwrappedTileID(0,c)];if(this._renderWorldCopies)for(var d=this.pointCoordinate(new a.Point(0,0)),w=this.pointCoordinate(new a.Point(this.width,0)),L=this.pointCoordinate(new a.Point(this.width,this.height)),R=this.pointCoordinate(new a.Point(0,this.height)),G=Math.floor(Math.min(d.x,w.x,L.x,R.x)),K=Math.floor(Math.max(d.x,w.x,L.x,R.x)),re=1,ue=G-re;ue<=K+re;ue++)ue!==0&&b.push(new a.UnwrappedTileID(ue,c));return b},ti.prototype.coveringTiles=function(c){var b=this.coveringZoomLevel(c),d=b;if(c.minzoom!==void 0&&bc.maxzoom&&(b=c.maxzoom);var w=a.MercatorCoordinate.fromLngLat(this.center),L=Math.pow(2,b),R=[L*w.x,L*w.y,0],G=so.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,b),K=c.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(K=b);var re=3,ue=function(Sr){return{aabb:new Cs([Sr*L,0,0],[(Sr+1)*L,L,0]),zoom:0,x:0,y:0,wrap:Sr,fullyVisible:!1}},be=[],xe=[],Re=b,Ze=c.reparseOverscaled?d:b;if(this._renderWorldCopies)for(var Ge=1;Ge<=3;Ge++)be.push(ue(-Ge)),be.push(ue(Ge));for(be.push(ue(0));be.length>0;){var Oe=be.pop(),Xe=Oe.x,ht=Oe.y,Pt=Oe.fullyVisible;if(!Pt){var Nt=Oe.aabb.intersects(G);if(Nt===0)continue;Pt=Nt===2}var $t=Oe.aabb.distanceX(R),ar=Oe.aabb.distanceY(R),Wt=Math.max(Math.abs($t),Math.abs(ar)),ir=re+(1<ir&&Oe.zoom>=K){xe.push({tileID:new a.OverscaledTileID(Oe.zoom===Re?Ze:Oe.zoom,Oe.wrap,Oe.zoom,Xe,ht),distanceSq:a.sqrLen([R[0]-.5-Xe,R[1]-.5-ht])});continue}for(var cr=0;cr<4;cr++){var _r=(Xe<<1)+cr%2,Lr=(ht<<1)+(cr>>1);be.push({aabb:Oe.aabb.quadrant(cr),zoom:Oe.zoom+1,x:_r,y:Lr,wrap:Oe.wrap,fullyVisible:Pt})}}return xe.sort(function(Sr,Xr){return Sr.distanceSq-Xr.distanceSq}).map(function(Sr){return Sr.tileID})},ti.prototype.resize=function(c,b){this.width=c,this.height=b,this.pixelsToGLUnits=[2/c,-2/b],this._constrain(),this._calcMatrices()},fi.unmodified.get=function(){return this._unmodified},ti.prototype.zoomScale=function(c){return Math.pow(2,c)},ti.prototype.scaleZoom=function(c){return Math.log(c)/Math.LN2},ti.prototype.project=function(c){var b=a.clamp(c.lat,-this.maxValidLatitude,this.maxValidLatitude);return new a.Point(a.mercatorXfromLng(c.lng)*this.worldSize,a.mercatorYfromLat(b)*this.worldSize)},ti.prototype.unproject=function(c){return new a.MercatorCoordinate(c.x/this.worldSize,c.y/this.worldSize).toLngLat()},fi.point.get=function(){return this.project(this.center)},ti.prototype.setLocationAtPoint=function(c,b){var d=this.pointCoordinate(b),w=this.pointCoordinate(this.centerPoint),L=this.locationCoordinate(c),R=new a.MercatorCoordinate(L.x-(d.x-w.x),L.y-(d.y-w.y));this.center=this.coordinateLocation(R),this._renderWorldCopies&&(this.center=this.center.wrap())},ti.prototype.locationPoint=function(c){return this.coordinatePoint(this.locationCoordinate(c))},ti.prototype.pointLocation=function(c){return this.coordinateLocation(this.pointCoordinate(c))},ti.prototype.locationCoordinate=function(c){return a.MercatorCoordinate.fromLngLat(c)},ti.prototype.coordinateLocation=function(c){return c.toLngLat()},ti.prototype.pointCoordinate=function(c){var b=0,d=[c.x,c.y,0,1],w=[c.x,c.y,1,1];a.transformMat4(d,d,this.pixelMatrixInverse),a.transformMat4(w,w,this.pixelMatrixInverse);var L=d[3],R=w[3],G=d[0]/L,K=w[0]/R,re=d[1]/L,ue=w[1]/R,be=d[2]/L,xe=w[2]/R,Re=be===xe?0:(b-be)/(xe-be);return new a.MercatorCoordinate(a.number(G,K,Re)/this.worldSize,a.number(re,ue,Re)/this.worldSize)},ti.prototype.coordinatePoint=function(c){var b=[c.x*this.worldSize,c.y*this.worldSize,0,1];return a.transformMat4(b,b,this.pixelMatrix),new a.Point(b[0]/b[3],b[1]/b[3])},ti.prototype.getBounds=function(){return new a.LngLatBounds().extend(this.pointLocation(new a.Point(0,0))).extend(this.pointLocation(new a.Point(this.width,0))).extend(this.pointLocation(new a.Point(this.width,this.height))).extend(this.pointLocation(new a.Point(0,this.height)))},ti.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new a.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},ti.prototype.setMaxBounds=function(c){c?(this.lngRange=[c.getWest(),c.getEast()],this.latRange=[c.getSouth(),c.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},ti.prototype.calculatePosMatrix=function(c,b){b===void 0&&(b=!1);var d=c.key,w=b?this._alignedPosMatrixCache:this._posMatrixCache;if(w[d])return w[d];var L=c.canonical,R=this.worldSize/this.zoomScale(L.z),G=L.x+Math.pow(2,L.z)*c.wrap,K=a.identity(new Float64Array(16));return a.translate(K,K,[G*R,L.y*R,0]),a.scale(K,K,[R/a.EXTENT,R/a.EXTENT,1]),a.multiply(K,b?this.alignedProjMatrix:this.projMatrix,K),w[d]=new Float32Array(K),w[d]},ti.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},ti.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var c=-90,b=90,d=-180,w=180,L,R,G,K,re=this.size,ue=this._unmodified;if(this.latRange){var be=this.latRange;c=a.mercatorYfromLat(be[1])*this.worldSize,b=a.mercatorYfromLat(be[0])*this.worldSize,L=b-cb&&(K=b-Oe)}if(this.lngRange){var Xe=Re.x,ht=re.x/2;Xe-htw&&(G=w-ht)}(G!==void 0||K!==void 0)&&(this.center=this.unproject(new a.Point(G!==void 0?G:Re.x,K!==void 0?K:Re.y))),this._unmodified=ue,this._constraining=!1}},ti.prototype._calcMatrices=function(){if(this.height){var c=this._fov/2,b=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(c)*this.height;var d=Math.PI/2+this._pitch,w=this._fov*(.5+b.y/this.height),L=Math.sin(w)*this.cameraToCenterDistance/Math.sin(a.clamp(Math.PI-d-w,.01,Math.PI-.01)),R=this.point,G=R.x,K=R.y,re=Math.cos(Math.PI/2-this._pitch)*L+this.cameraToCenterDistance,ue=re*1.01,be=this.height/50,xe=new Float64Array(16);a.perspective(xe,this._fov,this.width/this.height,be,ue),xe[8]=-b.x*2/this.width,xe[9]=b.y*2/this.height,a.scale(xe,xe,[1,-1,1]),a.translate(xe,xe,[0,0,-this.cameraToCenterDistance]),a.rotateX(xe,xe,this._pitch),a.rotateZ(xe,xe,this.angle),a.translate(xe,xe,[-G,-K,0]),this.mercatorMatrix=a.scale([],xe,[this.worldSize,this.worldSize,this.worldSize]),a.scale(xe,xe,[1,1,a.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=xe,this.invProjMatrix=a.invert([],this.projMatrix);var Re=this.width%2/2,Ze=this.height%2/2,Ge=Math.cos(this.angle),Oe=Math.sin(this.angle),Xe=G-Math.round(G)+Ge*Re+Oe*Ze,ht=K-Math.round(K)+Ge*Ze+Oe*Re,Pt=new Float64Array(xe);if(a.translate(Pt,Pt,[Xe>.5?Xe-1:Xe,ht>.5?ht-1:ht,0]),this.alignedProjMatrix=Pt,xe=a.create(),a.scale(xe,xe,[this.width/2,-this.height/2,1]),a.translate(xe,xe,[1,-1,0]),this.labelPlaneMatrix=xe,xe=a.create(),a.scale(xe,xe,[1,-1,1]),a.translate(xe,xe,[-1,-1,0]),a.scale(xe,xe,[2/this.width,2/this.height,1]),this.glCoordMatrix=xe,this.pixelMatrix=a.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),xe=a.invert(new Float64Array(16),this.pixelMatrix),!xe)throw new Error("failed to invert matrix");this.pixelMatrixInverse=xe,this._posMatrixCache={},this._alignedPosMatrixCache={}}},ti.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var c=this.pointCoordinate(new a.Point(0,0)),b=[c.x*this.worldSize,c.y*this.worldSize,0,1],d=a.transformMat4(b,b,this.pixelMatrix);return d[3]/this.cameraToCenterDistance},ti.prototype.getCameraPoint=function(){var c=this._pitch,b=Math.tan(c)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.Point(0,b))},ti.prototype.getCameraQueryGeometry=function(c){var b=this.getCameraPoint();if(c.length===1)return[c[0],b];for(var d=b.x,w=b.y,L=b.x,R=b.y,G=0,K=c;G=3&&!c.some(function(d){return isNaN(d)})){var b=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(c[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+c[2],+c[1]],zoom:+c[0],bearing:b,pitch:+(c[4]||0)}),!0}return!1},Rl.prototype._updateHashUnthrottled=function(){var c=a.window.location.href.replace(/(#.+)?$/,this.getHashString());try{a.window.history.replaceState(a.window.history.state,null,c)}catch(b){}};var rc={linearity:.3,easing:a.bezier(0,0,.3,1)},mf=a.extend({deceleration:2500,maxSpeed:1400},rc),Fl=a.extend({deceleration:20,maxSpeed:1400},rc),Es=a.extend({deceleration:1e3,maxSpeed:360},rc),nh=a.extend({deceleration:1e3,maxSpeed:90},rc),yf=function(c){this._map=c,this.clear()};yf.prototype.clear=function(){this._inertiaBuffer=[]},yf.prototype.record=function(c){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:a.browser.now(),settings:c})},yf.prototype._drainInertiaBuffer=function(){for(var c=this._inertiaBuffer,b=a.browser.now(),d=160;c.length>0&&b-c[0].time>d;)c.shift()},yf.prototype._onMoveEnd=function(c){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var b={zoom:0,bearing:0,pitch:0,pan:new a.Point(0,0),pinchAround:void 0,around:void 0},d=0,w=this._inertiaBuffer;d=this._clickTolerance||this._map.fire(new M(c.type,this._map,c))},U.prototype.dblclick=function(c){return this._firePreventable(new M(c.type,this._map,c))},U.prototype.mouseover=function(c){this._map.fire(new M(c.type,this._map,c))},U.prototype.mouseout=function(c){this._map.fire(new M(c.type,this._map,c))},U.prototype.touchstart=function(c){return this._firePreventable(new P(c.type,this._map,c))},U.prototype.touchmove=function(c){this._map.fire(new P(c.type,this._map,c))},U.prototype.touchend=function(c){this._map.fire(new P(c.type,this._map,c))},U.prototype.touchcancel=function(c){this._map.fire(new P(c.type,this._map,c))},U.prototype._firePreventable=function(c){if(this._map.fire(c),c.defaultPrevented)return{}},U.prototype.isEnabled=function(){return!0},U.prototype.isActive=function(){return!1},U.prototype.enable=function(){},U.prototype.disable=function(){};var Z=function(c){this._map=c};Z.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Z.prototype.mousemove=function(c){this._map.fire(new M(c.type,this._map,c))},Z.prototype.mousedown=function(){this._delayContextMenu=!0},Z.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new M("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Z.prototype.contextmenu=function(c){this._delayContextMenu?this._contextMenuEvent=c:this._map.fire(new M(c.type,this._map,c)),this._map.listens("contextmenu")&&c.preventDefault()},Z.prototype.isEnabled=function(){return!0},Z.prototype.isActive=function(){return!1},Z.prototype.enable=function(){},Z.prototype.disable=function(){};var $=function(c,b){this._map=c,this._el=c.getCanvasContainer(),this._container=c.getContainer(),this._clickTolerance=b.clickTolerance||1};$.prototype.isEnabled=function(){return!!this._enabled},$.prototype.isActive=function(){return!!this._active},$.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},$.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},$.prototype.mousedown=function(c,b){this.isEnabled()&&c.shiftKey&&c.button===0&&(l.disableDrag(),this._startPos=this._lastPos=b,this._active=!0)},$.prototype.mousemoveWindow=function(c,b){if(this._active){var d=b;if(!(this._lastPos.equals(d)||!this._box&&d.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=c.timeStamp),d.length===this.numTouches&&(this.centroid=ae(b),this.touches=X(d,b)))},De.prototype.touchmove=function(c,b,d){if(!(this.aborted||!this.centroid)){var w=X(d,b);for(var L in this.touches){var R=this.touches[L],G=w[L];(!G||G.dist(R)>Pe)&&(this.aborted=!0)}}},De.prototype.touchend=function(c,b,d){if((!this.centroid||c.timeStamp-this.startTime>_e)&&(this.aborted=!0),d.length===0){var w=!this.aborted&&this.centroid;if(this.reset(),w)return w}};var Ke=function(c){this.singleTap=new De(c),this.numTaps=c.numTaps,this.reset()};Ke.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Ke.prototype.touchstart=function(c,b,d){this.singleTap.touchstart(c,b,d)},Ke.prototype.touchmove=function(c,b,d){this.singleTap.touchmove(c,b,d)},Ke.prototype.touchend=function(c,b,d){var w=this.singleTap.touchend(c,b,d);if(w){var L=c.timeStamp-this.lastTime0&&(this._active=!0);var w=X(d,b),L=new a.Point(0,0),R=new a.Point(0,0),G=0;for(var K in w){var re=w[K],ue=this._touches[K];ue&&(L._add(re),R._add(re.sub(ue)),G++,w[K]=re)}if(this._touches=w,!(GMath.abs(g.x)}var Kt=100,Jr=function(g){function c(){g.apply(this,arguments)}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.reset=function(){g.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},c.prototype._start=function(d){this._lastPoints=d,$a(d[0].sub(d[1]))&&(this._valid=!1)},c.prototype._move=function(d,w,L){var R=d[0].sub(this._lastPoints[0]),G=d[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(R,G,L.timeStamp),!!this._valid){this._lastPoints=d,this._active=!0;var K=(R.y+G.y)/2,re=-.5;return{pitchDelta:K*re}}},c.prototype.gestureBeginsVertically=function(d,w,L){if(this._valid!==void 0)return this._valid;var R=2,G=d.mag()>=R,K=w.mag()>=R;if(!(!G&&!K)){if(!G||!K)return this._firstMove===void 0&&(this._firstMove=L),L-this._firstMove0==w.y>0;return $a(d)&&$a(w)&&re}},c}(lr),oa={panStep:100,bearingStep:15,pitchStep:10},sa=function(){var c=oa;this._panStep=c.panStep,this._bearingStep=c.bearingStep,this._pitchStep=c.pitchStep,this._rotationDisabled=!1};sa.prototype.reset=function(){this._active=!1},sa.prototype.keydown=function(c){var b=this;if(!(c.altKey||c.ctrlKey||c.metaKey)){var d=0,w=0,L=0,R=0,G=0;switch(c.keyCode){case 61:case 107:case 171:case 187:d=1;break;case 189:case 109:case 173:d=-1;break;case 37:c.shiftKey?w=-1:(c.preventDefault(),R=-1);break;case 39:c.shiftKey?w=1:(c.preventDefault(),R=1);break;case 38:c.shiftKey?L=1:(c.preventDefault(),G=-1);break;case 40:c.shiftKey?L=-1:(c.preventDefault(),G=1);break;default:return}return this._rotationDisabled&&(w=0,L=0),{cameraAnimation:function(K){var re=K.getZoom();K.easeTo({duration:300,easeId:"keyboardHandler",easing:Ei,zoom:d?Math.round(re)+d*(c.shiftKey?2:1):re,bearing:K.getBearing()+w*b._bearingStep,pitch:K.getPitch()+L*b._pitchStep,offset:[-R*b._panStep,-G*b._panStep],center:K.getCenter()},{originalEvent:c})}}}},sa.prototype.enable=function(){this._enabled=!0},sa.prototype.disable=function(){this._enabled=!1,this.reset()},sa.prototype.isEnabled=function(){return this._enabled},sa.prototype.isActive=function(){return this._active},sa.prototype.disableRotation=function(){this._rotationDisabled=!0},sa.prototype.enableRotation=function(){this._rotationDisabled=!1};function Ei(g){return g*(2-g)}var Oi=4.000244140625,$i=1/100,bi=1/450,xn=2,wr=function(c,b){this._map=c,this._el=c.getCanvasContainer(),this._handler=b,this._delta=0,this._defaultZoomRate=$i,this._wheelZoomRate=bi,a.bindAll(["_onTimeout"],this)};wr.prototype.setZoomRate=function(c){this._defaultZoomRate=c},wr.prototype.setWheelZoomRate=function(c){this._wheelZoomRate=c},wr.prototype.isEnabled=function(){return!!this._enabled},wr.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},wr.prototype.isZooming=function(){return!!this._zooming},wr.prototype.enable=function(c){this.isEnabled()||(this._enabled=!0,this._aroundCenter=c&&c.around==="center")},wr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},wr.prototype.wheel=function(c){if(this.isEnabled()){var b=c.deltaMode===a.window.WheelEvent.DOM_DELTA_LINE?c.deltaY*40:c.deltaY,d=a.browser.now(),w=d-(this._lastWheelEventTime||0);this._lastWheelEventTime=d,b!==0&&b%Oi===0?this._type="wheel":b!==0&&Math.abs(b)<4?this._type="trackpad":w>400?(this._type=null,this._lastValue=b,this._timeout=setTimeout(this._onTimeout,40,c)):this._type||(this._type=Math.abs(w*b)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,b+=this._lastValue)),c.shiftKey&&b&&(b=b/4),this._type&&(this._lastWheelEvent=c,this._delta-=b,this._active||this._start(c)),c.preventDefault()}},wr.prototype._onTimeout=function(c){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(c)},wr.prototype._start=function(c){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var b=l.mousePos(this._el,c);this._around=a.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(b)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},wr.prototype.renderFrame=function(){var c=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var b=this._map.transform;if(this._delta!==0){var d=this._type==="wheel"&&Math.abs(this._delta)>Oi?this._wheelZoomRate:this._defaultZoomRate,w=xn/(1+Math.exp(-Math.abs(this._delta*d)));this._delta<0&&w!==0&&(w=1/w);var L=typeof this._targetZoom=="number"?b.zoomScale(this._targetZoom):b.scale;this._targetZoom=Math.min(b.maxZoom,Math.max(b.minZoom,b.scaleZoom(L*w))),this._type==="wheel"&&(this._startZoom=b.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var R=typeof this._targetZoom=="number"?this._targetZoom:b.zoom,G=this._startZoom,K=this._easing,re=!1,ue;if(this._type==="wheel"&&G&&K){var be=Math.min((a.browser.now()-this._lastWheelEventTime)/200,1),xe=K(be);ue=a.number(G,R,xe),be<1?this._frameId||(this._frameId=!0):re=!0}else ue=R,re=!0;return this._active=!0,re&&(this._active=!1,this._finishTimeout=setTimeout(function(){c._zooming=!1,c._handler._triggerRenderFrame(),delete c._targetZoom,delete c._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!re,zoomDelta:ue-b.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},wr.prototype._smoothOutEasing=function(c){var b=a.ease;if(this._prevEase){var d=this._prevEase,w=(a.browser.now()-d.start)/d.duration,L=d.easing(w+.01)-d.easing(w),R=.27/Math.sqrt(L*L+1e-4)*.01,G=Math.sqrt(.27*.27-R*R);b=a.bezier(R,G,.25,1)}return this._prevEase={start:a.browser.now(),duration:c,easing:b},b},wr.prototype.reset=function(){this._active=!1};var Vr=function(c,b){this._clickZoom=c,this._tapZoom=b};Vr.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Vr.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Vr.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Vr.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Fi=function(){this.reset()};Fi.prototype.reset=function(){this._active=!1},Fi.prototype.dblclick=function(c,b){return c.preventDefault(),{cameraAnimation:function(d){d.easeTo({duration:300,zoom:d.getZoom()+(c.shiftKey?-1:1),around:d.unproject(b)},{originalEvent:c})}}},Fi.prototype.enable=function(){this._enabled=!0},Fi.prototype.disable=function(){this._enabled=!1,this.reset()},Fi.prototype.isEnabled=function(){return this._enabled},Fi.prototype.isActive=function(){return this._active};var Ti=function(){this._tap=new Ke({numTouches:1,numTaps:1}),this.reset()};Ti.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Ti.prototype.touchstart=function(c,b,d){this._swipePoint||(this._tapTime&&c.timeStamp-this._tapTime>ye&&this.reset(),this._tapTime?d.length>0&&(this._swipePoint=b[0],this._swipeTouch=d[0].identifier):this._tap.touchstart(c,b,d))},Ti.prototype.touchmove=function(c,b,d){if(!this._tapTime)this._tap.touchmove(c,b,d);else if(this._swipePoint){if(d[0].identifier!==this._swipeTouch)return;var w=b[0],L=w.y-this._swipePoint.y;return this._swipePoint=w,c.preventDefault(),this._active=!0,{zoomDelta:L/128}}},Ti.prototype.touchend=function(c,b,d){if(this._tapTime)this._swipePoint&&d.length===0&&this.reset();else{var w=this._tap.touchend(c,b,d);w&&(this._tapTime=c.timeStamp)}},Ti.prototype.touchcancel=function(){this.reset()},Ti.prototype.enable=function(){this._enabled=!0},Ti.prototype.disable=function(){this._enabled=!1,this.reset()},Ti.prototype.isEnabled=function(){return this._enabled},Ti.prototype.isActive=function(){return this._active};var lo=function(c,b,d){this._el=c,this._mousePan=b,this._touchPan=d};lo.prototype.enable=function(c){this._inertiaOptions=c||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},lo.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},lo.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},lo.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var zn=function(c,b,d){this._pitchWithRotate=c.pitchWithRotate,this._mouseRotate=b,this._mousePitch=d};zn.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},zn.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},zn.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},zn.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var cn=function(c,b,d,w){this._el=c,this._touchZoom=b,this._touchRotate=d,this._tapDragZoom=w,this._rotationDisabled=!1,this._enabled=!0};cn.prototype.enable=function(c){this._touchZoom.enable(c),this._rotationDisabled||this._touchRotate.enable(c),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},cn.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},cn.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},cn.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},cn.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},cn.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var pi=function(g){return g.zoom||g.drag||g.pitch||g.rotate},jo=function(g){function c(){g.apply(this,arguments)}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c}(a.Event);function uo(g){return g.panDelta&&g.panDelta.mag()||g.zoomDelta||g.bearingDelta||g.pitchDelta}var ci=function(c,b){this._map=c,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new yf(c),this._bearingSnap=b.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(b),a.bindAll(["handleEvent","handleWindowEvent"],this);var d=this._el;this._listeners=[[d,"touchstart",{passive:!0}],[d,"touchmove",{passive:!1}],[d,"touchend",void 0],[d,"touchcancel",void 0],[d,"mousedown",void 0],[d,"mousemove",void 0],[d,"mouseup",void 0],[a.window.document,"mousemove",{capture:!0}],[a.window.document,"mouseup",void 0],[d,"mouseover",void 0],[d,"mouseout",void 0],[d,"dblclick",void 0],[d,"click",void 0],[d,"keydown",{capture:!1}],[d,"keyup",void 0],[d,"wheel",{passive:!1}],[d,"contextmenu",void 0],[a.window,"blur",void 0]];for(var w=0,L=this._listeners;wG?Math.min(2,$t):Math.max(.5,$t),Sr=Math.pow(Lr,1-cr),Xr=R.unproject(Pt.add(Nt.mult(cr*Sr)).mult(_r));R.setLocationAtPoint(R.renderWorldCopies?Xr.wrap():Xr,Oe)}L._fireMoveEvents(w)},function(cr){L._afterEase(w,cr)},d),this},c.prototype._prepareEase=function(d,w,L){L===void 0&&(L={}),this._moving=!0,!w&&!L.moving&&this.fire(new a.Event("movestart",d)),this._zooming&&!L.zooming&&this.fire(new a.Event("zoomstart",d)),this._rotating&&!L.rotating&&this.fire(new a.Event("rotatestart",d)),this._pitching&&!L.pitching&&this.fire(new a.Event("pitchstart",d))},c.prototype._fireMoveEvents=function(d){this.fire(new a.Event("move",d)),this._zooming&&this.fire(new a.Event("zoom",d)),this._rotating&&this.fire(new a.Event("rotate",d)),this._pitching&&this.fire(new a.Event("pitch",d))},c.prototype._afterEase=function(d,w){if(!(this._easeId&&w&&this._easeId===w)){delete this._easeId;var L=this._zooming,R=this._rotating,G=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,L&&this.fire(new a.Event("zoomend",d)),R&&this.fire(new a.Event("rotateend",d)),G&&this.fire(new a.Event("pitchend",d)),this.fire(new a.Event("moveend",d))}},c.prototype.flyTo=function(d,w){var L=this;if(!d.essential&&a.browser.prefersReducedMotion){var R=a.pick(d,["center","zoom","bearing","pitch","around"]);return this.jumpTo(R,w)}this.stop(),d=a.extend({offset:[0,0],speed:1.2,curve:1.42,easing:a.ease},d);var G=this.transform,K=this.getZoom(),re=this.getBearing(),ue=this.getPitch(),be=this.getPadding(),xe="zoom"in d?a.clamp(+d.zoom,G.minZoom,G.maxZoom):K,Re="bearing"in d?this._normalizeBearing(d.bearing,re):re,Ze="pitch"in d?+d.pitch:ue,Ge="padding"in d?d.padding:G.padding,Oe=G.zoomScale(xe-K),Xe=a.Point.convert(d.offset),ht=G.centerPoint.add(Xe),Pt=G.pointLocation(ht),Nt=a.LngLat.convert(d.center||Pt);this._normalizeCenter(Nt);var $t=G.project(Pt),ar=G.project(Nt).sub($t),Wt=d.curve,ir=Math.max(G.width,G.height),cr=ir/Oe,_r=ar.mag();if("minZoom"in d){var Lr=a.clamp(Math.min(d.minZoom,K,xe),G.minZoom,G.maxZoom),Sr=ir/G.zoomScale(Lr-K);Wt=Math.sqrt(Sr/_r*2)}var Xr=Wt*Wt;function Fa(na){var Oa=(cr*cr-ir*ir+(na?-1:1)*Xr*Xr*_r*_r)/(2*(na?cr:ir)*Xr*_r);return Math.log(Math.sqrt(Oa*Oa+1)-Oa)}function xa(na){return(Math.exp(na)-Math.exp(-na))/2}function qr(na){return(Math.exp(na)+Math.exp(-na))/2}function Sa(na){return xa(na)/qr(na)}var ia=Fa(0),Za=function(na){return qr(ia)/qr(ia+Wt*na)},Va=function(na){return ir*((qr(ia)*Sa(ia+Wt*na)-xa(ia))/Xr)/_r},Ai=(Fa(1)-ia)/Wt;if(Math.abs(_r)<1e-6||!isFinite(Ai)){if(Math.abs(ir-cr)<1e-6)return this.easeTo(d,w);var Da=crd.maxDuration&&(d.duration=0),this._zooming=!0,this._rotating=re!==Re,this._pitching=Ze!==ue,this._padding=!G.isPaddingEqual(Ge),this._prepareEase(w,!1),this._ease(function(na){var Oa=na*Ai,en=1/Za(Oa);G.zoom=na===1?xe:K+G.scaleZoom(en),L._rotating&&(G.bearing=a.number(re,Re,na)),L._pitching&&(G.pitch=a.number(ue,Ze,na)),L._padding&&(G.interpolatePadding(be,Ge,na),ht=G.centerPoint.add(Xe));var In=na===1?Nt:G.unproject($t.add(ar.mult(Va(Oa))).mult(en));G.setLocationAtPoint(G.renderWorldCopies?In.wrap():In,ht),L._fireMoveEvents(w)},function(){return L._afterEase(w)},d),this},c.prototype.isEasing=function(){return!!this._easeFrameId},c.prototype.stop=function(){return this._stop()},c.prototype._stop=function(d,w){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var L=this._onEaseEnd;delete this._onEaseEnd,L.call(this,w)}if(!d){var R=this.handlers;R&&R.stop(!1)}return this},c.prototype._ease=function(d,w,L){L.animate===!1||L.duration===0?(d(1),w()):(this._easeStart=a.browser.now(),this._easeOptions=L,this._onEaseFrame=d,this._onEaseEnd=w,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},c.prototype._renderFrameCallback=function(){var d=Math.min((a.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(d)),d<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},c.prototype._normalizeBearing=function(d,w){d=a.wrap(d,-180,180);var L=Math.abs(d-w);return Math.abs(d-360-w)180?-360:L<-180?360:0}},c}(a.Evented),Aa=function(c){c===void 0&&(c={}),this.options=c,a.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Aa.prototype.getDefaultPosition=function(){return"bottom-right"},Aa.prototype.onAdd=function(c){var b=this.options&&this.options.compact;return this._map=c,this._container=l.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=l.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=l.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),b&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),b===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Aa.prototype.onRemove=function(){l.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Aa.prototype._setElementTitle=function(c,b){var d=this._map._getUIString("AttributionControl."+b);c.title=d,c.setAttribute("aria-label",d)},Aa.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Aa.prototype._updateEditLink=function(){var c=this._editLink;c||(c=this._editLink=this._container.querySelector(".mapbox-improve-map"));var b=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||a.config.ACCESS_TOKEN}];if(c){var d=b.reduce(function(w,L,R){return L.value&&(w+=L.key+"="+L.value+(R=0)return!1;return!0});var G=c.join(" | ");G!==this._attribHTML&&(this._attribHTML=G,c.length?(this._innerContainer.innerHTML=G,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Aa.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var ui=function(){a.bindAll(["_updateLogo"],this),a.bindAll(["_updateCompact"],this)};ui.prototype.onAdd=function(c){this._map=c,this._container=l.create("div","mapboxgl-ctrl");var b=l.create("a","mapboxgl-ctrl-logo");return b.target="_blank",b.rel="noopener nofollow",b.href="https://www.mapbox.com/",b.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),b.setAttribute("rel","noopener nofollow"),this._container.appendChild(b),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},ui.prototype.onRemove=function(){l.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},ui.prototype.getDefaultPosition=function(){return"bottom-left"},ui.prototype._updateLogo=function(c){(!c||c.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},ui.prototype._logoRequired=function(){if(this._map.style){var c=this._map.style.sourceCaches;for(var b in c){var d=c[b].getSource();if(d.mapbox_logo)return!0}return!1}},ui.prototype._updateCompact=function(){var c=this._container.children;if(c.length){var b=c[0];this._map.getCanvasContainer().offsetWidth<250?b.classList.add("mapboxgl-compact"):b.classList.remove("mapboxgl-compact")}};var Nl=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Nl.prototype.add=function(c){var b=++this._id,d=this._queue;return d.push({callback:c,id:b,cancelled:!1}),b},Nl.prototype.remove=function(c){for(var b=this._currentlyRunning,d=b?this._queue.concat(b):this._queue,w=0,L=d;wd.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(d.minPitch!=null&&d.maxPitch!=null&&d.minPitch>d.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(d.minPitch!=null&&d.minPitchxf)throw new Error("maxPitch must be less than or equal to "+xf);var L=new ti(d.minZoom,d.maxZoom,d.minPitch,d.maxPitch,d.renderWorldCopies);if(g.call(this,L,d),this._interactive=d.interactive,this._maxTileCacheSize=d.maxTileCacheSize,this._failIfMajorPerformanceCaveat=d.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=d.preserveDrawingBuffer,this._antialias=d.antialias,this._trackResize=d.trackResize,this._bearingSnap=d.bearingSnap,this._refreshExpiredTiles=d.refreshExpiredTiles,this._fadeDuration=d.fadeDuration,this._crossSourceCollisions=d.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=d.collectResourceTiming,this._renderTaskQueue=new Nl,this._controls=[],this._mapId=a.uniqueId(),this._locale=a.extend({},Hv,d.locale),this._clickTolerance=d.clickTolerance,this._requestManager=new a.RequestManager(d.transformRequest,d.accessToken),typeof d.container=="string"){if(this._container=a.window.document.getElementById(d.container),!this._container)throw new Error("Container '"+d.container+"' not found.")}else if(d.container instanceof ey)this._container=d.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(d.maxBounds&&this.setMaxBounds(d.maxBounds),a.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return w._update(!1)}),this.on("moveend",function(){return w._update(!1)}),this.on("zoom",function(){return w._update(!0)}),typeof a.window!="undefined"&&(a.window.addEventListener("online",this._onWindowOnline,!1),a.window.addEventListener("resize",this._onWindowResize,!1),a.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new ci(this,d);var R=typeof d.hash=="string"&&d.hash||void 0;this._hash=d.hash&&new Rl(R).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:d.center,zoom:d.zoom,bearing:d.bearing,pitch:d.pitch}),d.bounds&&(this.resize(),this.fitBounds(d.bounds,a.extend({},d.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=d.localIdeographFontFamily,d.style&&this.setStyle(d.style,{localIdeographFontFamily:d.localIdeographFontFamily}),d.attributionControl&&this.addControl(new Aa({customAttribution:d.customAttribution})),this.addControl(new ui,d.logoPosition),this.on("style.load",function(){w.transform.unmodified&&w.jumpTo(w.style.stylesheet)}),this.on("data",function(G){w._update(G.dataType==="style"),w.fire(new a.Event(G.dataType+"data",G))}),this.on("dataloading",function(G){w.fire(new a.Event(G.dataType+"dataloading",G))})}g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c;var b={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return c.prototype._getMapId=function(){return this._mapId},c.prototype.addControl=function(w,L){if(L===void 0&&(w.getDefaultPosition?L=w.getDefaultPosition():L="top-right"),!w||!w.onAdd)return this.fire(new a.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var R=w.onAdd(this);this._controls.push(w);var G=this._controlPositions[L];return L.indexOf("bottom")!==-1?G.insertBefore(R,G.firstChild):G.appendChild(R),this},c.prototype.removeControl=function(w){if(!w||!w.onRemove)return this.fire(new a.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var L=this._controls.indexOf(w);return L>-1&&this._controls.splice(L,1),w.onRemove(this),this},c.prototype.hasControl=function(w){return this._controls.indexOf(w)>-1},c.prototype.resize=function(w){var L=this._containerDimensions(),R=L[0],G=L[1];this._resizeCanvas(R,G),this.transform.resize(R,G),this.painter.resize(R,G);var K=!this._moving;return K&&(this.stop(),this.fire(new a.Event("movestart",w)).fire(new a.Event("move",w))),this.fire(new a.Event("resize",w)),K&&this.fire(new a.Event("moveend",w)),this},c.prototype.getBounds=function(){return this.transform.getBounds()},c.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},c.prototype.setMaxBounds=function(w){return this.transform.setMaxBounds(a.LngLatBounds.convert(w)),this._update()},c.prototype.setMinZoom=function(w){if(w=w==null?oh:w,w>=oh&&w<=this.transform.maxZoom)return this.transform.minZoom=w,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=w,this._update(),this.getZoom()>w&&this.setZoom(w),this;throw new Error("maxZoom must be greater than the current minZoom")},c.prototype.getMaxZoom=function(){return this.transform.maxZoom},c.prototype.setMinPitch=function(w){if(w=w==null?Lo:w,w=Lo&&w<=this.transform.maxPitch)return this.transform.minPitch=w,this._update(),this.getPitch()xf)throw new Error("maxPitch must be less than or equal to "+xf);if(w>=this.transform.minPitch)return this.transform.maxPitch=w,this._update(),this.getPitch()>w&&this.setPitch(w),this;throw new Error("maxPitch must be greater than the current minPitch")},c.prototype.getMaxPitch=function(){return this.transform.maxPitch},c.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},c.prototype.setRenderWorldCopies=function(w){return this.transform.renderWorldCopies=w,this._update()},c.prototype.project=function(w){return this.transform.locationPoint(a.LngLat.convert(w))},c.prototype.unproject=function(w){return this.transform.pointLocation(a.Point.convert(w))},c.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},c.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},c.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},c.prototype._createDelegatedListener=function(w,L,R){var G=this,K;if(w==="mouseenter"||w==="mouseover"){var re=!1,ue=function(Oe){var Xe=G.getLayer(L)?G.queryRenderedFeatures(Oe.point,{layers:[L]}):[];Xe.length?re||(re=!0,R.call(G,new M(w,G,Oe.originalEvent,{features:Xe}))):re=!1},be=function(){re=!1};return{layer:L,listener:R,delegates:{mousemove:ue,mouseout:be}}}else if(w==="mouseleave"||w==="mouseout"){var xe=!1,Re=function(Oe){var Xe=G.getLayer(L)?G.queryRenderedFeatures(Oe.point,{layers:[L]}):[];Xe.length?xe=!0:xe&&(xe=!1,R.call(G,new M(w,G,Oe.originalEvent)))},Ze=function(Oe){xe&&(xe=!1,R.call(G,new M(w,G,Oe.originalEvent)))};return{layer:L,listener:R,delegates:{mousemove:Re,mouseout:Ze}}}else{var Ge=function(Oe){var Xe=G.getLayer(L)?G.queryRenderedFeatures(Oe.point,{layers:[L]}):[];Xe.length&&(Oe.features=Xe,R.call(G,Oe),delete Oe.features)};return{layer:L,listener:R,delegates:(K={},K[w]=Ge,K)}}},c.prototype.on=function(w,L,R){if(R===void 0)return g.prototype.on.call(this,w,L);var G=this._createDelegatedListener(w,L,R);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[w]=this._delegatedListeners[w]||[],this._delegatedListeners[w].push(G);for(var K in G.delegates)this.on(K,G.delegates[K]);return this},c.prototype.once=function(w,L,R){if(R===void 0)return g.prototype.once.call(this,w,L);var G=this._createDelegatedListener(w,L,R);for(var K in G.delegates)this.once(K,G.delegates[K]);return this},c.prototype.off=function(w,L,R){var G=this;if(R===void 0)return g.prototype.off.call(this,w,L);var K=function(re){for(var ue=re[w],be=0;be180;){var R=b.locationPoint(g);if(R.x>=0&&R.y>=0&&R.x<=b.width&&R.y<=b.height)break;g.lng>b.center.lng?g.lng-=360:g.lng+=360}return g}var Zv={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Fp(g,c,b){var d=g.classList;for(var w in Zv)d.remove("mapboxgl-"+b+"-anchor-"+w);d.add("mapboxgl-"+b+"-anchor-"+c)}var lh=function(g){function c(b,d){if(g.call(this),(b instanceof a.window.HTMLElement||d)&&(b=a.extend({element:b},d)),a.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=b&&b.anchor||"center",this._color=b&&b.color||"#3FB1CE",this._scale=b&&b.scale||1,this._draggable=b&&b.draggable||!1,this._clickTolerance=b&&b.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=b&&b.rotation||0,this._rotationAlignment=b&&b.rotationAlignment||"auto",this._pitchAlignment=b&&b.pitchAlignment&&b.pitchAlignment!=="auto"?b.pitchAlignment:this._rotationAlignment,!b||!b.element){this._defaultMarker=!0,this._element=l.create("div"),this._element.setAttribute("aria-label","Map marker");var w=l.createNS("http://www.w3.org/2000/svg","svg"),L=41,R=27;w.setAttributeNS(null,"display","block"),w.setAttributeNS(null,"height",L+"px"),w.setAttributeNS(null,"width",R+"px"),w.setAttributeNS(null,"viewBox","0 0 "+R+" "+L);var G=l.createNS("http://www.w3.org/2000/svg","g");G.setAttributeNS(null,"stroke","none"),G.setAttributeNS(null,"stroke-width","1"),G.setAttributeNS(null,"fill","none"),G.setAttributeNS(null,"fill-rule","evenodd");var K=l.createNS("http://www.w3.org/2000/svg","g");K.setAttributeNS(null,"fill-rule","nonzero");var re=l.createNS("http://www.w3.org/2000/svg","g");re.setAttributeNS(null,"transform","translate(3.0, 29.0)"),re.setAttributeNS(null,"fill","#000000");for(var ue=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],be=0,xe=ue;be=w}this._isDragging&&(this._pos=d.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new a.Event("dragstart"))),this.fire(new a.Event("drag")))},c.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new a.Event("dragend")),this._state="inactive"},c.prototype._addDragHandler=function(d){this._element.contains(d.originalEvent.target)&&(d.preventDefault(),this._positionDelta=d.point.sub(this._pos).add(this._offset),this._pointerdownPos=d.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},c.prototype.setDraggable=function(d){return this._draggable=!!d,this._map&&(d?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},c.prototype.isDraggable=function(){return this._draggable},c.prototype.setRotation=function(d){return this._rotation=d||0,this._update(),this},c.prototype.getRotation=function(){return this._rotation},c.prototype.setRotationAlignment=function(d){return this._rotationAlignment=d||"auto",this._update(),this},c.prototype.getRotationAlignment=function(){return this._rotationAlignment},c.prototype.setPitchAlignment=function(d){return this._pitchAlignment=d&&d!=="auto"?d:this._rotationAlignment,this._update(),this},c.prototype.getPitchAlignment=function(){return this._pitchAlignment},c}(a.Evented),ay={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},bf;function Yv(g){bf!==void 0?g(bf):a.window.navigator.permissions!==void 0?a.window.navigator.permissions.query({name:"geolocation"}).then(function(c){bf=c.state!=="denied",g(bf)}):(bf=!!a.window.navigator.geolocation,g(bf))}var uh=0,ic=!1,d1=function(g){function c(b){g.call(this),this.options=a.extend({},ay,b),a.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.onAdd=function(d){return this._map=d,this._container=l.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),Yv(this._setupUI),this._container},c.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(a.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),l.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,uh=0,ic=!1},c.prototype._isOutOfMapMaxBounds=function(d){var w=this._map.getMaxBounds(),L=d.coords;return w&&(L.longitudew.getEast()||L.latitudew.getNorth())},c.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},c.prototype._onSuccess=function(d){if(this._map){if(this._isOutOfMapMaxBounds(d)){this._setErrorState(),this.fire(new a.Event("outofmaxbounds",d)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=d,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(d),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(d),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new a.Event("geolocate",d)),this._finish()}},c.prototype._updateCamera=function(d){var w=new a.LngLat(d.coords.longitude,d.coords.latitude),L=d.coords.accuracy,R=this._map.getBearing(),G=a.extend({bearing:R},this.options.fitBoundsOptions);this._map.fitBounds(w.toBounds(L),G,{geolocateSource:!0})},c.prototype._updateMarker=function(d){if(d){var w=new a.LngLat(d.coords.longitude,d.coords.latitude);this._accuracyCircleMarker.setLngLat(w).addTo(this._map),this._userLocationDotMarker.setLngLat(w).addTo(this._map),this._accuracy=d.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},c.prototype._updateCircleRadius=function(){var d=this._map._container.clientHeight/2,w=this._map.unproject([0,d]),L=this._map.unproject([1,d]),R=w.distanceTo(L),G=Math.ceil(2*this._accuracy/R);this._circleElement.style.width=G+"px",this._circleElement.style.height=G+"px"},c.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},c.prototype._onError=function(d){if(this._map){if(this.options.trackUserLocation)if(d.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var w=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=w,this._geolocateButton.setAttribute("aria-label",w),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(d.code===3&&ic)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new a.Event("error",d)),this._finish()}},c.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},c.prototype._setupUI=function(d){var w=this;if(this._container.addEventListener("contextmenu",function(G){return G.preventDefault()}),this._geolocateButton=l.create("button","mapboxgl-ctrl-geolocate",this._container),l.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",d===!1){a.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var L=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=L,this._geolocateButton.setAttribute("aria-label",L)}else{var R=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=R,this._geolocateButton.setAttribute("aria-label",R)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=l.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new lh(this._dotElement),this._circleElement=l.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new lh({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(G){var K=G.originalEvent&&G.originalEvent.type==="resize";!G.geolocateSource&&w._watchState==="ACTIVE_LOCK"&&!K&&(w._watchState="BACKGROUND",w._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),w._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),w.fire(new a.Event("trackuserlocationend")))})},c.prototype.trigger=function(){if(!this._setup)return a.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new a.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":uh--,ic=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new a.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new a.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),uh++;var d;uh>1?(d={maximumAge:6e5,timeout:0},ic=!0):(d=this.options.positionOptions,ic=!1),this._geolocationWatchID=a.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,d)}}else a.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},c.prototype._clearWatch=function(){a.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},c}(a.Evented),iy={maxWidth:100,unit:"metric"},nc=function(c){this.options=a.extend({},iy,c),a.bindAll(["_onMove","setUnit"],this)};nc.prototype.getDefaultPosition=function(){return"bottom-left"},nc.prototype._onMove=function(){ny(this._map,this._container,this.options)},nc.prototype.onAdd=function(c){return this._map=c,this._container=l.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",c.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},nc.prototype.onRemove=function(){l.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},nc.prototype.setUnit=function(c){this.options.unit=c,ny(this._map,this._container,this.options)};function ny(g,c,b){var d=b&&b.maxWidth||100,w=g._container.clientHeight/2,L=g.unproject([0,w]),R=g.unproject([d,w]),G=L.distanceTo(R);if(b&&b.unit==="imperial"){var K=3.2808*G;if(K>5280){var re=K/5280;fh(c,d,re,g._getUIString("ScaleControl.Miles"))}else fh(c,d,K,g._getUIString("ScaleControl.Feet"))}else if(b&&b.unit==="nautical"){var ue=G/1852;fh(c,d,ue,g._getUIString("ScaleControl.NauticalMiles"))}else G>=1e3?fh(c,d,G/1e3,g._getUIString("ScaleControl.Kilometers")):fh(c,d,G,g._getUIString("ScaleControl.Meters"))}function fh(g,c,b,d){var w=m1(b),L=w/b;g.style.width=c*L+"px",g.innerHTML=w+" "+d}function p1(g){var c=Math.pow(10,Math.ceil(-Math.log(g)/Math.LN10));return Math.round(g*c)/c}function m1(g){var c=Math.pow(10,(""+Math.floor(g)).length-1),b=g/c;return b=b>=10?10:b>=5?5:b>=3?3:b>=2?2:b>=1?1:p1(b),c*b}var Qs=function(c){this._fullscreen=!1,c&&c.container&&(c.container instanceof a.window.HTMLElement?this._container=c.container:a.warnOnce("Full screen control 'container' must be a DOM element.")),a.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in a.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in a.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in a.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in a.window.document&&(this._fullscreenchange="MSFullscreenChange")};Qs.prototype.onAdd=function(c){return this._map=c,this._container||(this._container=this._map.getContainer()),this._controlContainer=l.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",a.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Qs.prototype.onRemove=function(){l.remove(this._controlContainer),this._map=null,a.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Qs.prototype._checkFullscreenSupport=function(){return!!(a.window.document.fullscreenEnabled||a.window.document.mozFullScreenEnabled||a.window.document.msFullscreenEnabled||a.window.document.webkitFullscreenEnabled)},Qs.prototype._setupUI=function(){var c=this._fullscreenButton=l.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);l.create("span","mapboxgl-ctrl-icon",c).setAttribute("aria-hidden",!0),c.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),a.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Qs.prototype._updateTitle=function(){var c=this._getTitle();this._fullscreenButton.setAttribute("aria-label",c),this._fullscreenButton.title=c},Qs.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Qs.prototype._isFullscreen=function(){return this._fullscreen},Qs.prototype._changeIcon=function(){var c=a.window.document.fullscreenElement||a.window.document.mozFullScreenElement||a.window.document.webkitFullscreenElement||a.window.document.msFullscreenElement;c===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Qs.prototype._onClickFullscreen=function(){this._isFullscreen()?a.window.document.exitFullscreen?a.window.document.exitFullscreen():a.window.document.mozCancelFullScreen?a.window.document.mozCancelFullScreen():a.window.document.msExitFullscreen?a.window.document.msExitFullscreen():a.window.document.webkitCancelFullScreen&&a.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var y1={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},g1=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),s3=function(g){function c(b){g.call(this),this.options=a.extend(Object.create(y1),b),a.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.addTo=function(d){return this._map&&this.remove(),this._map=d,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new a.Event("open")),this},c.prototype.isOpen=function(){return!!this._map},c.prototype.remove=function(){return this._content&&l.remove(this._content),this._container&&(l.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new a.Event("close")),this},c.prototype.getLngLat=function(){return this._lngLat},c.prototype.setLngLat=function(d){return this._lngLat=a.LngLat.convert(d),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},c.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},c.prototype.getElement=function(){return this._container},c.prototype.setText=function(d){return this.setDOMContent(a.window.document.createTextNode(d))},c.prototype.setHTML=function(d){var w=a.window.document.createDocumentFragment(),L=a.window.document.createElement("body"),R;for(L.innerHTML=d;R=L.firstChild,!!R;)w.appendChild(R);return this.setDOMContent(w)},c.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},c.prototype.setMaxWidth=function(d){return this.options.maxWidth=d,this._update(),this},c.prototype.setDOMContent=function(d){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=l.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(d),this._createCloseButton(),this._update(),this._focusFirstElement(),this},c.prototype.addClassName=function(d){this._container&&this._container.classList.add(d)},c.prototype.removeClassName=function(d){this._container&&this._container.classList.remove(d)},c.prototype.setOffset=function(d){return this.options.offset=d,this._update(),this},c.prototype.toggleClassName=function(d){if(this._container)return this._container.classList.toggle(d)},c.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=l.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},c.prototype._onMouseUp=function(d){this._update(d.point)},c.prototype._onMouseMove=function(d){this._update(d.point)},c.prototype._onDrag=function(d){this._update(d.point)},c.prototype._update=function(d){var w=this,L=this._lngLat||this._trackPointer;if(!(!this._map||!L||!this._content)&&(this._container||(this._container=l.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=l.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Re){return w._container.classList.add(Re)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Su(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!d))){var R=this._pos=this._trackPointer&&d?d:this._map.project(this._lngLat),G=this.options.anchor,K=_1(this.options.offset);if(!G){var re=this._container.offsetWidth,ue=this._container.offsetHeight,be;R.y+K.bottom.ythis._map.transform.height-ue?be=["bottom"]:be=[],R.xthis._map.transform.width-re/2&&be.push("right"),be.length===0?G="bottom":G=be.join("-")}var xe=R.add(K[G]).round();l.setTransform(this._container,Zv[G]+" translate("+xe.x+"px,"+xe.y+"px)"),Fp(this._container,G,"popup")}},c.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var d=this._container.querySelector(g1);d&&d.focus()}},c.prototype._onClose=function(){this.remove()},c}(a.Evented);function _1(g){if(g)if(typeof g=="number"){var c=Math.round(Math.sqrt(.5*Math.pow(g,2)));return{center:new a.Point(0,0),top:new a.Point(0,g),"top-left":new a.Point(c,c),"top-right":new a.Point(-c,c),bottom:new a.Point(0,-g),"bottom-left":new a.Point(c,-c),"bottom-right":new a.Point(-c,-c),left:new a.Point(g,0),right:new a.Point(-g,0)}}else if(g instanceof a.Point||Array.isArray(g)){var b=a.Point.convert(g);return{center:b,top:b,"top-left":b,"top-right":b,bottom:b,"bottom-left":b,"bottom-right":b,left:b,right:b}}else return{center:a.Point.convert(g.center||[0,0]),top:a.Point.convert(g.top||[0,0]),"top-left":a.Point.convert(g["top-left"]||[0,0]),"top-right":a.Point.convert(g["top-right"]||[0,0]),bottom:a.Point.convert(g.bottom||[0,0]),"bottom-left":a.Point.convert(g["bottom-left"]||[0,0]),"bottom-right":a.Point.convert(g["bottom-right"]||[0,0]),left:a.Point.convert(g.left||[0,0]),right:a.Point.convert(g.right||[0,0])};else return _1(new a.Point(0,0))}var bn={version:a.version,supported:s,setRTLTextPlugin:a.setRTLTextPlugin,getRTLTextPluginStatus:a.getRTLTextPluginStatus,Map:ry,NavigationControl:Mu,GeolocateControl:d1,AttributionControl:Aa,ScaleControl:nc,FullscreenControl:Qs,Popup:s3,Marker:lh,Style:ws,LngLat:a.LngLat,LngLatBounds:a.LngLatBounds,Point:a.Point,MercatorCoordinate:a.MercatorCoordinate,Evented:a.Evented,config:a.config,prewarm:Br,clearPrewarmedResources:ca,get accessToken(){return a.config.ACCESS_TOKEN},set accessToken(g){a.config.ACCESS_TOKEN=g},get baseApiUrl(){return a.config.API_URL},set baseApiUrl(g){a.config.API_URL=g},get workerCount(){return rr.workerCount},set workerCount(g){rr.workerCount=g},get maxParallelImageRequests(){return a.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(g){a.config.MAX_PARALLEL_IMAGE_REQUESTS=g},clearStorage:function(c){a.clearTileCache(c)},workerUrl:""};return bn}),r})});var TH=pe((ybe,wH)=>{wH.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var Ob=pe(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});var Zs=63710088e-1,yA={centimeters:Zs*100,centimetres:Zs*100,degrees:360/(2*Math.PI),feet:Zs*3.28084,inches:Zs*39.37,kilometers:Zs/1e3,kilometres:Zs/1e3,meters:Zs,metres:Zs,miles:Zs/1609.344,millimeters:Zs*1e3,millimetres:Zs*1e3,nauticalmiles:Zs/1852,radians:1,yards:Zs*1.0936},mA={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function tv(e,t,r={}){let i={type:"Feature"};return(r.id===0||r.id)&&(i.id=r.id),r.bbox&&(i.bbox=r.bbox),i.properties=t||{},i.geometry=e,i}function kde(e,t,r={}){switch(e){case"Point":return gA(t).geometry;case"LineString":return xA(t).geometry;case"Polygon":return _A(t).geometry;case"MultiPoint":return MH(t).geometry;case"MultiLineString":return AH(t).geometry;case"MultiPolygon":return SH(t).geometry;default:throw new Error(e+" is invalid")}}function gA(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Nb(e[0])||!Nb(e[1]))throw new Error("coordinates must contain numbers");return tv({type:"Point",coordinates:e},t,r)}function Cde(e,t,r={}){return Bb(e.map(i=>gA(i,t)),r)}function _A(e,t,r={}){for(let a of e){if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(a[a.length-1].length!==a[0].length)throw new Error("First and last Position are not equivalent.");for(let s=0;s_A(i,t)),r)}function xA(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return tv({type:"LineString",coordinates:e},t,r)}function Lde(e,t,r={}){return Bb(e.map(i=>xA(i,t)),r)}function Bb(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function AH(e,t,r={}){return tv({type:"MultiLineString",coordinates:e},t,r)}function MH(e,t,r={}){return tv({type:"MultiPoint",coordinates:e},t,r)}function SH(e,t,r={}){return tv({type:"MultiPolygon",coordinates:e},t,r)}function Dde(e,t,r={}){return tv({type:"GeometryCollection",geometries:e},t,r)}function Pde(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function kH(e,t="kilometers"){let r=yA[t];if(!r)throw new Error(t+" units is invalid");return e*r}function bA(e,t="kilometers"){let r=yA[t];if(!r)throw new Error(t+" units is invalid");return e/r}function zde(e,t){return CH(bA(e,t))}function Ide(e){let t=e%360;return t<0&&(t+=360),t}function Rde(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function CH(e){return e%(2*Math.PI)*180/Math.PI}function Fde(e){return e%360*Math.PI/180}function qde(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return kH(bA(e,t),r)}function Nde(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let i=mA[t];if(!i)throw new Error("invalid original units");let a=mA[r];if(!a)throw new Error("invalid final units");return e/i*a}function Nb(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function Bde(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Ode(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!Nb(t))throw new Error("bbox must only contain numbers")})}function Ude(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}Si.areaFactors=mA;Si.azimuthToBearing=Rde;Si.bearingToAzimuth=Ide;Si.convertArea=Nde;Si.convertLength=qde;Si.degreesToRadians=Fde;Si.earthRadius=Zs;Si.factors=yA;Si.feature=tv;Si.featureCollection=Bb;Si.geometry=kde;Si.geometryCollection=Dde;Si.isNumber=Nb;Si.isObject=Bde;Si.lengthToDegrees=zde;Si.lengthToRadians=bA;Si.lineString=xA;Si.lineStrings=Lde;Si.multiLineString=AH;Si.multiPoint=MH;Si.multiPolygon=SH;Si.point=gA;Si.points=Cde;Si.polygon=_A;Si.polygons=Ede;Si.radiansToDegrees=CH;Si.radiansToLength=kH;Si.round=Pde;Si.validateBBox=Ode;Si.validateId=Ude});var Vb=pe(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});var ls=Ob();function l1(e,t,r){if(e!==null)for(var i,a,s,l,f,h,v,m=0,_=0,T,S=e.type,C=S==="FeatureCollection",D=S==="Feature",E=C?e.features.length:1,I=0;Ih||C>v||D>m){f=_,h=i,v=C,m=D,s=0;return}var E=ls.lineString.call(void 0,[f,_],r.properties);if(t(E,i,a,D,s)===!1)return!1;s++,f=_})===!1)return!1}}})}function Xde(e,t,r){var i=r,a=!1;return DH(e,function(s,l,f,h,v){a===!1&&r===void 0?i=s:i=t(i,s,l,f,h,v),a=!0}),i}function PH(e,t){if(!e)throw new Error("geojson is required");Ub(e,function(r,i,a){if(r.geometry!==null){var s=r.geometry.type,l=r.geometry.coordinates;switch(s){case"LineString":if(t(r,i,a,0,0)===!1)return!1;break;case"Polygon":for(var f=0;f{"use strict";Object.defineProperty(Hb,"__esModule",{value:!0});var zH=Ob(),Qde=Vb();function FH(e){return Qde.geomReduce.call(void 0,e,(t,r)=>t+$de(r),0)}function $de(e){let t=0,r;switch(e.type){case"Polygon":return IH(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(RH(e[0]));for(let r=1;r=t?(i+2)%t:i+2],f=a[0]*TA,h=s[1]*TA,v=l[0]*TA;r+=(v-f)*Math.sin(h),i++}return r*epe}var tpe=FH;Hb.area=FH;Hb.default=tpe});var BH=pe(Gb=>{"use strict";Object.defineProperty(Gb,"__esModule",{value:!0});var rpe=Ob(),ape=Vb();function NH(e,t={}){let r=0,i=0,a=0;return ape.coordEach.call(void 0,e,function(s){r+=s[0],i+=s[1],a++},!0),rpe.point.call(void 0,[r/a,i/a],t.properties)}var ipe=NH;Gb.centroid=NH;Gb.default=ipe});var UH=pe(Zb=>{"use strict";Object.defineProperty(Zb,"__esModule",{value:!0});var npe=Vb();function OH(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return npe.coordEach.call(void 0,e,i=>{r[0]>i[0]&&(r[0]=i[0]),r[1]>i[1]&&(r[1]=i[1]),r[2]{"use strict";var spe=ja(),GH=TH(),{area:lpe}=qH(),{centroid:upe}=BH(),{bbox:fpe}=UH(),VH=y_(),bm=Th(),cpe=cc(),hpe=wy(),Yb=lx(),HH=Object.keys(GH),vpe={"ISO-3":VH,"USA-states":VH,"country names":dpe};function dpe(e){for(var t=0;t0&&m[_+1][0]<0)return _;return null}switch(i==="RUS"||i==="FJI"?s=function(m){var _;if(v(m)===null)_=m;else for(_=new Array(m.length),h=0;h_?T[S++]=[m[h][0]+360,m[h][1]]:h===_?(T[S++]=m[h],T[S++]=[m[h][0],-90]):T[S++]=m[h];var C=Yb.tester(T);C.pts.pop(),a.push(C)}:s=function(m){a.push(Yb.tester(m))},t.type){case"MultiPolygon":for(l=0;l0?C.properties.ct=gpe(C):C.properties.ct=[NaN,NaN],T.fIn=m,T.fOut=C,a.push(C)}else bm.log(["Location",T.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete i[_]}switch(r.type){case"FeatureCollection":var h=r.features;for(s=0;sa&&(a=f,r=l)}else r=t;return upe(r).geometry.coordinates}function _pe(e){var t=window.PlotlyGeoAssets||{},r=[];function i(h){return new Promise(function(v,m){spe.json(h,function(_,T){if(_){delete t[h];var S=_.status===404?'GeoJSON at URL "'+h+'" does not exist.':"Unexpected error while fetching from "+h;return m(new Error(S))}return t[h]=T,v(T)})})}function a(h){return new Promise(function(v,m){var _=0,T=setInterval(function(){if(t[h]&&t[h]!=="pending")return clearInterval(T),v(t[h]);if(_>100)return clearInterval(T),m("Unexpected error while fetching from "+h);_++},50)})}for(var s=0;s{"use strict";var Gd=Bt(),bpe=co().sanitizeHTML,wpe=uA(),WH=zc();function XH(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=WH.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var fu=XH.prototype;fu.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=Wb(t)};fu.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};fu.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};fu.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};fu.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};fu.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapboxLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};fu.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!Wb(e)){var r=Tpe(e);t.addSource(this.idSource,r)}};fu.findFollowingMapboxLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function jH(e){var t={},r={};switch(e.type){case"circle":Gd.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":Gd.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":Gd.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var i=e.symbol,a=wpe(i.textposition,i.iconsize);Gd.extendFlat(t,{"icon-image":i.icon+"-15","icon-size":i.iconsize/10,"text-field":i.text,"text-size":i.textfont.size,"text-anchor":a.anchor,"text-offset":a.offset,"symbol-placement":i.placement}),Gd.extendFlat(r,{"icon-color":e.color,"text-color":i.textfont.color,"text-opacity":e.opacity});break;case"raster":Gd.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function Tpe(e){var t=e.sourcetype,r=e.source,i={type:t},a;return t==="geojson"?a="data":t==="vector"?a=typeof r=="string"?"url":"tiles":t==="raster"?(a="tiles",i.tileSize=256):t==="image"&&(a="url",i.coordinates=e.coordinates),i[a]=r,e.sourceattribution&&(i.attribution=bpe(e.sourceattribution)),i}JH.exports=function(t,r,i){var a=new XH(t,r);return a.update(i),a}});var oG=pe((Mbe,nG)=>{"use strict";var MA=pA(),SA=Bt(),tG=AA(),QH=la(),Ape=Yi(),Mpe=jl(),Xb=Rf(),rG=kd(),Spe=rG.drawMode,kpe=rG.selectMode,Cpe=Nf().prepSelect,Epe=Nf().clearOutline,Lpe=Nf().clearSelectionsCache,Dpe=Nf().selectOnClick,rv=zc(),Ppe=KH();function aG(e,t){this.id=t,this.gd=e;var r=e._fullLayout,i=e._context;this.container=r._glcontainer.node(),this.isStatic=i.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Un=aG.prototype;Un.plot=function(e,t,r){var i=this,a=t[i.id];i.map&&a.accesstoken!==i.accessToken&&(i.map.remove(),i.map=null,i.styleObj=null,i.traceHash={},i.layerList=[]);var s;i.map?s=new Promise(function(l,f){i.updateMap(e,t,l,f)}):s=new Promise(function(l,f){i.createMap(e,t,l,f)}),r.push(s)};Un.createMap=function(e,t,r,i){var a=this,s=t[a.id],l=a.styleObj=iG(s.style,t);a.accessToken=s.accesstoken;var f=s.bounds,h=f?[[f.west,f.south],[f.east,f.north]]:null,v=a.map=new MA.Map({container:a.div,style:l.style,center:kA(s.center),zoom:s.zoom,bearing:s.bearing,pitch:s.pitch,maxBounds:h,interactive:!a.isStatic,preserveDrawingBuffer:a.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new MA.AttributionControl({compact:!0}));v._canvas.style.left="0px",v._canvas.style.top="0px",a.rejectOnError(i),a.isStatic||a.initFx(e,t);var m=[];m.push(new Promise(function(_){v.once("load",_)})),m=m.concat(tG.fetchTraceGeoData(e)),Promise.all(m).then(function(){a.fillBelowLookup(e,t),a.updateData(e),a.updateLayout(t),a.resolveOnRender(r)}).catch(i)};Un.updateMap=function(e,t,r,i){var a=this,s=a.map,l=t[this.id];a.rejectOnError(i);var f=[],h=iG(l.style,t);JSON.stringify(a.styleObj)!==JSON.stringify(h)&&(a.styleObj=h,s.setStyle(h.style),a.traceHash={},f.push(new Promise(function(v){s.once("styledata",v)}))),f=f.concat(tG.fetchTraceGeoData(e)),Promise.all(f).then(function(){a.fillBelowLookup(e,t),a.updateData(e),a.updateLayout(t),a.resolveOnRender(r)}).catch(i)};Un.fillBelowLookup=function(e,t){var r=t[this.id],i=r.layers,a,s,l=this.belowLookup={},f=!1;for(a=0;a1)for(a=0;a-1&&Dpe(h.originalEvent,i,[r.xaxis],[r.yaxis],r.id,f),v.indexOf("event")>-1&&Xb.click(i,h.originalEvent)}}};Un.updateFx=function(e){var t=this,r=t.map,i=t.gd;if(t.isStatic)return;function a(h){var v=t.map.unproject(h);return[v.lng,v.lat]}var s=e.dragmode,l;l=function(h,v){if(v.isRect){var m=h.range={};m[t.id]=[a([v.xmin,v.ymin]),a([v.xmax,v.ymax])]}else{var _=h.lassoPoints={};_[t.id]=v.map(a)}};var f=t.dragOptions;t.dragOptions=SA.extendDeep(f||{},{dragmode:e.dragmode,element:t.div,gd:i,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:l},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),kpe(s)||Spe(s)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(h,v,m){Cpe(h,v,m,t.dragOptions,s)},Mpe.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Un.updateFramework=function(e){var t=e[this.id].domain,r=e._size,i=this.div.style;i.width=r.w*(t.x[1]-t.x[0])+"px",i.height=r.h*(t.y[1]-t.y[0])+"px",i.left=r.l+t.x[0]*r.w+"px",i.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Un.updateLayers=function(e){var t=e[this.id],r=t.layers,i=this.layerList,a;if(r.length!==i.length){for(a=0;a{"use strict";var zpe=Bt(),Ipe=Pi(),Rpe=Mb().defaults;sG.exports=function(t,r,i,a){var s=a.type,l=a.attributes,f=a.handleDefaults,h=a.partition||"x",v=r._subplots[s],m=v.length,_=m&&v[0].replace(/\d+$/,""),T,S;function C(B,q){return zpe.coerce(T,S,l,B,q)}for(var D=0;D{"use strict";var CA=Bt(),Fpe=lG(),qpe=Wl(),uG=a1();fG.exports=function(t,r,i){Fpe(t,r,i,{type:"mapbox",attributes:uG,handleDefaults:Npe,partition:"y",accessToken:r._mapboxAccessToken})};function Npe(e,t,r,i){r("accesstoken",i.accessToken),r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var a=r("bounds.west"),s=r("bounds.east"),l=r("bounds.south"),f=r("bounds.north");(a===void 0||s===void 0||l===void 0||f===void 0)&&delete t.bounds,qpe(e,t,{name:"layers",handleItemDefaults:Bpe}),t._input=e}function Bpe(e,t){function r(h,v){return CA.coerce(e,t,uG.layers,h,v)}var i=r("visible");if(i){var a=r("sourcetype"),s=a==="raster"||a==="image";r("source"),r("sourceattribution"),a==="vector"&&r("sourcelayer"),a==="image"&&r("coordinates");var l;s&&(l="raster");var f=r("type",l);s&&f!=="raster"&&(f=t.type="raster",CA.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),f==="circle"&&r("circle.radius"),f==="line"&&(r("line.width"),r("line.dash")),f==="fill"&&r("fill.outlinecolor"),f==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),CA.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var jb=pe(Ys=>{"use strict";var hG=pA(),Ju=Bt(),EA=Ju.strTranslate,Ope=Ju.strScale,Upe=F_().getSubplotCalcData,Vpe=zh(),Hpe=ja(),vG=xi(),Gpe=co(),Zpe=oG(),av="mapbox",Hf=Ys.constants=zc();Ys.name=av;Ys.attr="subplot";Ys.idRoot=av;Ys.idRegex=Ys.attrRegex=Ju.counterRegex(av);var Ype=["mapbox subplots and traces are deprecated!","Please consider switching to `map` subplots and traces.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");Ys.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}};Ys.layoutAttributes=a1();Ys.supplyLayoutDefaults=cG();var dG=!0;Ys.plot=function(t){dG&&(dG=!1,Ju.warn(Ype));var r=t._fullLayout,i=t.calcdata,a=r._subplots[av];if(hG.version!==Hf.requiredVersion)throw new Error(Hf.wrongVersionErrorMsg);var s=Wpe(t,a);hG.accessToken=s;for(var l=0;lI/2){var B=S.split("|").join("
");D.text(B).attr("data-unformatted",B).call(Gpe.convertToTspans,e),E=vG.bBox(D.node())}D.attr("transform",EA(-3,-E.height+8)),C.insert("rect",".static-attribution").attr({x:-E.width-6,y:-E.height-3,width:E.width+6,height:E.height+3,fill:"rgba(255, 255, 255, 0.75)"});var q=1;E.width+6>I&&(q=I/(E.width+6));var z=[i.l+i.w*l.x[1],i.t+i.h*(1-l.y[0])];C.attr("transform",EA(z[0],z[1])+Ope(q))}};function Wpe(e,t){var r=e._fullLayout,i=e._context;if(i.mapboxAccessToken==="")return"";for(var a=[],s=[],l=!1,f=!1,h=0;h1&&Ju.warn(Hf.multipleTokensErrorMsg),a[0]):(s.length&&Ju.log(["Listed mapbox access token(s)",s.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function pG(e){return typeof e=="string"&&(Hf.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}Ys.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[av],i=0;i{"use strict";var Ebe=["*scattermapbox* trace is deprecated!","Please consider switching to the *scattermap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");mG.exports={attributes:Db(),supplyDefaults:JV(),colorbar:J6(),formatLabels:sA(),calc:aH(),plot:pH(),hoverPoints:qb().hoverPoints,eventData:_H(),selectPoints:bH(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:jb(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var _G=pe((Dbe,gG)=>{"use strict";gG.exports=yG()});var LA=pe((Pbe,wG)=>{"use strict";var Xpe=Hl().hovertemplateAttrs,nv=aA(),jpe=xc(),xG=ms(),Jpe=Af().defaultLine,iv=hn().extendFlat,bG=nv.marker.line;wG.exports=iv({locations:{valType:"data_array",editType:"calc"},locationmode:nv.locationmode,z:{valType:"data_array",editType:"calc"},geojson:iv({},nv.geojson,{}),featureidkey:nv.featureidkey,text:iv({},nv.text,{}),hovertext:iv({},nv.hovertext,{}),marker:{line:{color:iv({},bG.color,{dflt:Jpe}),width:iv({},bG.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:nv.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:nv.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:iv({},xG.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:Xpe(),showlegend:iv({},xG.showlegend,{dflt:!1})},jpe("",{cLetter:"z",editTypeOverride:"calc"}))});var DA=pe((zbe,TG)=>{"use strict";var Ic=LA(),Kpe=xc(),Qpe=Hl().hovertemplateAttrs,$pe=ms(),ov=hn().extendFlat;TG.exports=ov({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:ov({},Ic.featureidkey,{}),below:{valType:"string",editType:"plot"},text:Ic.text,hovertext:Ic.hovertext,marker:{line:{color:ov({},Ic.marker.line.color,{editType:"plot"}),width:ov({},Ic.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:ov({},Ic.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:ov({},Ic.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:ov({},Ic.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:Ic.hoverinfo,hovertemplate:Qpe({},{keys:["properties"]}),showlegend:ov({},$pe.showlegend,{dflt:!1})},Kpe("",{cLetter:"z",editTypeOverride:"calc"}))});var MG=pe((Ibe,AG)=>{"use strict";var u1=Bt(),e0e=hd(),t0e=DA();AG.exports=function(t,r,i,a){function s(m,_){return u1.coerce(t,r,t0e,m,_)}var l=s("locations"),f=s("z"),h=s("geojson");if(!u1.isArrayOrTypedArray(l)||!l.length||!u1.isArrayOrTypedArray(f)||!f.length||!(typeof h=="string"&&h!==""||u1.isPlainObject(h))){r.visible=!1;return}s("featureidkey"),r._length=Math.min(l.length,f.length),s("below"),s("text"),s("hovertext"),s("hovertemplate");var v=s("marker.line.width");v&&s("marker.line.color"),s("marker.opacity"),e0e(t,r,a,s,{prefix:"",cLetter:"z"}),u1.coerceSelectionMarkerOpacity(r,s)}});var PA=pe((Rbe,SG)=>{"use strict";SG.exports={min:"zmin",max:"zmax"}});var LG=pe((Fbe,EG)=>{"use strict";var kG=Pa(),r0e=Hi().BADNUM,a0e=Hy(),i0e=Ng(),n0e=Gx();function CG(e){return e&&typeof e=="string"}EG.exports=function(t,r){var i=r._length,a=new Array(i),s;r.geojson?s=function(m){return CG(m)||kG(m)}:s=CG;for(var l=0;l{"use strict";var o0e=Pa(),Rc=Bt(),s0e=L0(),l0e=xi(),u0e=Pb().makeBlank,DG=AA();function f0e(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,i={layout:{visibility:"none"},paint:{}},a={layout:{visibility:"none"},paint:{}},s=t._opts={fill:i,line:a,geojson:u0e()};if(!r)return s;var l=DG.extractTraceFeature(e);if(!l)return s;var f=s0e.makeColorScaleFuncFromTrace(t),h=t.marker,v=h.line||{},m;Rc.isArrayOrTypedArray(h.opacity)&&(m=function(B){var q=B.mo;return o0e(q)?+Rc.constrain(q,0,1):0});var _;Rc.isArrayOrTypedArray(v.color)&&(_=function(B){return B.mlc});var T;Rc.isArrayOrTypedArray(v.width)&&(T=function(B){return B.mlw});for(var S=0;S{"use strict";var RG=zA().convert,c0e=zA().convertOnSelect,IG=zc().traceLayerPrefix;function FG(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",IG+t+"-fill"],["line",IG+t+"-line"]],this.below=null}var wm=FG.prototype;wm.update=function(e){this._update(RG(e)),e[0].trace._glTrace=this};wm.updateOnSelect=function(e){this._update(c0e(e))};wm._update=function(e){var t=this.subplot,r=this.layerList,i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(e,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};wm.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};qG.exports=function(t,r){var i=r[0].trace,a=new FG(t,i.uid),s=a.sourceId,l=RG(r),f=a.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(s,{type:"geojson",data:l.geojson}),a._addLayers(l,f),r[0].trace._glTrace=a,a}});var OG=pe((Bbe,BG)=>{"use strict";var h0e=Yi(),v0e=LA(),d0e=Bt().fillText;BG.exports=function(t,r,i){var a=t.cd,s=a[0].trace,l=t.subplot,f,h,v,m,_=[r,i],T=[r+360,i];for(h=0;h")}}});var VG=pe((Obe,UG)=>{"use strict";UG.exports=function(t,r,i,a,s){t.location=r.location,t.z=r.z;var l=a[s];return l.fIn&&l.fIn.properties&&(t.properties=l.fIn.properties),t.ct=l.ct,t}});var GG=pe((Ube,HG)=>{"use strict";HG.exports=function(t,r){var i=t.cd,a=t.xaxis,s=t.yaxis,l=[],f,h,v,m,_;if(r===!1)for(f=0;f{"use strict";var Vbe=["*choroplethmapbox* trace is deprecated!","Please consider switching to the *choroplethmap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");ZG.exports={attributes:DA(),supplyDefaults:MG(),colorbar:PA(),calc:LG(),plot:NG(),hoverPoints:OG(),eventData:VG(),selectPoints:GG(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),i=r.length-2;i>=0;i--){var a=r[i].id;if(typeof a=="string"&&a.indexOf("water")===0){for(var s=i+1;s{"use strict";WG.exports=YG()});var RA=pe((Zbe,JG)=>{"use strict";var m0e=xc(),y0e=Hl().hovertemplateAttrs,jG=ms(),Jb=Db(),IA=hn().extendFlat;JG.exports=IA({lon:Jb.lon,lat:Jb.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:Jb.text,hovertext:Jb.hovertext,hoverinfo:IA({},jG.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:y0e(),showlegend:IA({},jG.showlegend,{dflt:!1})},m0e("",{cLetter:"z",editTypeOverride:"calc"}))});var QG=pe((Ybe,KG)=>{"use strict";var g0e=Bt(),_0e=hd(),x0e=RA();KG.exports=function(t,r,i,a){function s(v,m){return g0e.coerce(t,r,x0e,v,m)}var l=s("lon")||[],f=s("lat")||[],h=Math.min(l.length,f.length);if(!h){r.visible=!1;return}r._length=h,s("z"),s("radius"),s("below"),s("text"),s("hovertext"),s("hovertemplate"),_0e(t,r,a,s,{prefix:"",cLetter:"z"})}});var tZ=pe((Wbe,eZ)=>{"use strict";var FA=Pa(),b0e=Bt().isArrayOrTypedArray,qA=Hi().BADNUM,w0e=Hy(),$G=Bt()._;eZ.exports=function(t,r){for(var i=r._length,a=new Array(i),s=r.z,l=b0e(s)&&s.length,f=0;f{"use strict";var T0e=Pa(),NA=Bt(),rZ=Ua(),aZ=L0(),iZ=Hi().BADNUM,A0e=Pb().makeBlank;nZ.exports=function(t){var r=t[0].trace,i=r.visible===!0&&r._length!==0,a={layout:{visibility:"none"},paint:{}},s=r._opts={heatmap:a,geojson:A0e()};if(!i)return s;var l=[],f,h=r.z,v=r.radius,m=NA.isArrayOrTypedArray(h)&&h.length,_=NA.isArrayOrTypedArray(v);for(f=0;f0?+v[f]:0),l.push({type:"Feature",geometry:{type:"Point",coordinates:S},properties:C})}}var E=aZ.extractOpts(r),I=E.reversescale?aZ.flipScale(E.colorscale):E.colorscale,B=I[0][1],q=rZ.opacity(B)<1?B:rZ.addOpacity(B,0),z=["interpolate",["linear"],["heatmap-density"],0,q];for(f=1;f{"use strict";var sZ=oZ(),M0e=zc().traceLayerPrefix;function lZ(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",M0e+t+"-heatmap"]],this.below=null}var Kb=lZ.prototype;Kb.update=function(e){var t=this.subplot,r=this.layerList,i=sZ(e),a=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(i.geojson),a!==this.below&&(this._removeLayers(),this._addLayers(i,a),this.below=a);for(var s=0;s=0;r--)e.removeLayer(t[r][1])};Kb.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};uZ.exports=function(t,r){var i=r[0].trace,a=new lZ(t,i.uid),s=a.sourceId,l=sZ(r),f=a.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(s,{type:"geojson",data:l.geojson}),a._addLayers(l,f),a}});var hZ=pe((Jbe,cZ)=>{"use strict";var S0e=Yi(),k0e=qb().hoverPoints,C0e=qb().getExtraText;cZ.exports=function(t,r,i){var a=k0e(t,r,i);if(a){var s=a[0],l=s.cd,f=l[0].trace,h=l[s.index];if(delete s.color,"z"in h){var v=s.subplot.mockAxis;s.z=h.z,s.zLabel=S0e.tickText(v,v.c2l(h.z),"hover").text}return s.extraText=C0e(f,h,l[0].t.labels),[s]}}});var dZ=pe((Kbe,vZ)=>{"use strict";vZ.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var mZ=pe(($be,pZ)=>{"use strict";var Qbe=["*densitymapbox* trace is deprecated!","Please consider switching to the *densitymap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");pZ.exports={attributes:RA(),supplyDefaults:QG(),colorbar:PA(),formatLabels:sA(),calc:tZ(),plot:fZ(),hoverPoints:hZ(),eventData:dZ(),getBelow:function(e,t){for(var r=t.getMapLayers(),i=0;i{"use strict";yZ.exports=mZ()});var Uo=pe((t3e,xZ)=>{"use strict";var _Z=Object.getOwnPropertySymbols,E0e=Object.prototype.hasOwnProperty,L0e=Object.prototype.propertyIsEnumerable;function D0e(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function P0e(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var i=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(i.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(s){a[s]=s}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(s){return!1}}xZ.exports=P0e()?Object.assign:function(e,t){for(var r,i=D0e(e),a,s=1;s{var $b=Uo();function bZ(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}$b(bZ.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,i,a){return i=(e!=null&&e.year?e.calendar():typeof i=="string"?this.instance(i,a):i)||this.instance(),i.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var i="",a=0;r>0;){var s=r%10;i=(s===0?"":e[s]+t[a])+i,a++,r=Math.floor(r/10)}return i.indexOf(e[1]+t[1])===0&&(i=i.substr(1)),i||e[0]}}});function BA(e,t,r,i){if(this._calendar=e,this._year=t,this._month=r,this._day=i,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Ca.local.invalidDate||Ca.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Qb(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}$b(BA.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(Ca.local.invalidDate||Ca.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Ca.local.differentCalendars||Ca.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+Qb(Math.abs(this.year()),4)+"-"+Qb(this.month(),2)+"-"+Qb(this.day(),2)}});function OA(){this.shortYearCutoff="+10"}$b(OA.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,Ca.local.invalidDate||Ca.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new BA(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,Ca.local.invalidYear||Ca.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Ca.local.invalidYear||Ca.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+Qb(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ca.local.invalidYear||Ca.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,Ca.local.invalidMonth||Ca.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,Ca.local.invalidMonth||Ca.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Ca.local.invalidYear||Ca.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var i=this._validate(e,t,r,Ca.local.invalidDate||Ca.regionalOptions[""].invalidDate);return i.toJD()-this.newDate(i.year(),this.fromMonthOfYear(i.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,Ca.local.invalidDate||Ca.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(i))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,Ca.local.invalidDate||Ca.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,Ca.local.invalidDate||Ca.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var i=e.toJD()+t*(r==="w"?this.daysInWeek():1),a=e.calendar().fromJD(i);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var s=e.year()+(r==="y"?t:0),l=e.monthOfYear()+(r==="m"?t:0),a=e.day(),f=function(m){for(;l_-1+m.minMonth;)s++,l-=_,_=m.monthsInYear(s)};r==="y"?(e.month()!==this.fromMonthOfYear(s,l)&&(l=this.newDate(s,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(s)),a=Math.min(a,this.daysInMonth(s,this.fromMonthOfYear(s,l)))):r==="m"&&(f(this),a=Math.min(a,this.daysInMonth(s,this.fromMonthOfYear(s,l))));var h=[s,this.fromMonthOfYear(s,l),a];return this._validateLevel--,h}catch(v){throw this._validateLevel--,v}},_correctAdd:function(e,t,r,i){if(!this.hasYearZero&&(i==="y"||i==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[i],s=r<0?-1:1;t=this._add(e,r*a[0]+s*a[1],a[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,Ca.local.invalidDate||Ca.regionalOptions[""].invalidDate);var i=r==="y"?t:e.year(),a=r==="m"?t:e.month(),s=r==="d"?t:e.day();return(r==="y"||r==="m")&&(s=Math.min(s,this.daysInMonth(i,a))),e.date(i,a,s)},isValid:function(e,t,r){this._validateLevel++;var i=this.hasYearZero||e!==0;if(i){var a=this.newDate(e,t,this.minDay);i=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),v=a-(h>2.5?4716:4715);return v<=0&&v--,this.newDate(v,h,f)},toJSDate:function(e,t,r){var i=this._validate(e,t,r,Ca.local.invalidDate||Ca.regionalOptions[""].invalidDate),a=new Date(i.year(),i.month()-1,i.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Ca=wZ.exports=new bZ;Ca.cdate=BA;Ca.baseCalendar=OA;Ca.calendars.gregorian=UA});var TZ=pe(()=>{var VA=Uo(),po=Vo();VA(po.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});po.local=po.regionalOptions[""];VA(po.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});VA(po.baseCalendar.prototype,{UNIX_EPOCH:po.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:po.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw po.local.invalidFormat||po.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var i=r.dayNamesShort||this.local.dayNamesShort,a=r.dayNames||this.local.dayNames,s=r.monthNumbers||this.local.monthNumbers,l=r.monthNamesShort||this.local.monthNamesShort,f=r.monthNames||this.local.monthNames,h=r.calculateWeek||this.local.calculateWeek,v=function(z,O){for(var H=1;q+H1},m=function(z,O,H,V){var W=""+O;if(v(z,V))for(;W.length1},B=function(oe,fe){var de=I(oe,fe),Me=[2,3,de?4:2,de?4:2,10,11,20]["oyYJ@!".indexOf(oe)+1],Se=new RegExp("^-?\\d{1,"+Me+"}"),Te=t.substring(W).match(Se);if(!Te)throw(po.local.missingNumberAt||po.regionalOptions[""].missingNumberAt).replace(/\{0\}/,W);return W+=Te[0].length,parseInt(Te[0],10)},q=this,z=function(){if(typeof f=="function"){I("m");var oe=f.call(q,t.substring(W));return W+=oe.length,oe}return B("m")},O=function(oe,fe,de,Me){for(var Se=I(oe,Me)?de:fe,Te=0;Te-1){T=1,S=C;for(var ne=this.daysInMonth(_,T);S>ne;ne=this.daysInMonth(_,T))T++,S-=ne}return m>-1?this.fromJD(m):this.newDate(_,T,S)},determineDate:function(e,t,r,i,a){r&&typeof r!="object"&&(a=i,i=r,r=null),typeof i!="string"&&(a=i,i="");var s=this,l=function(f){try{return s.parseDate(i,f,a)}catch(_){}f=f.toLowerCase();for(var h=(f.match(/^c/)&&r?r.newDate():null)||s.today(),v=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,m=v.exec(f);m;)h.add(parseInt(m[1],10),m[2]||"d"),m=v.exec(f);return h};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:s.today().add(e,"d"):s.newDate(e),e}})});var AZ=pe(()=>{var sv=Vo(),z0e=Uo(),HA=sv.instance();function e3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}e3.prototype=new sv.baseCalendar;z0e(e3.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(R0e);return r?r[0]:""}var i=this._validateYear(e),a=e.month(),s=""+this.toChineseMonth(i,a);return t&&s.length<2&&(s="0"+s),this.isIntercalaryMonth(i,a)&&(s+="i"),s},monthNames:function(e){if(typeof e=="string"){var t=e.match(F0e);return t?t[0]:""}var r=this._validateYear(e),i=e.month(),a=this.toChineseMonth(r,i),s=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][a-1];return this.isIntercalaryMonth(r,i)&&(s="\u95F0"+s),s},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(q0e);return t?t[0]:""}var r=this._validateYear(e),i=e.month(),a=this.toChineseMonth(r,i),s=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][a-1];return this.isIntercalaryMonth(r,i)&&(s="\u95F0"+s),s},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),i;if(isNaN(r))t[0]==="\u95F0"&&(i=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var a=t[t.length-1];i=a==="i"||a==="I"}var s=this.toMonthIndex(e,r,i);return s},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var i=this.intercalaryMonth(e),a=r&&t!==i;if(a||t<1||t>12)throw sv.local.invalidMonth.replace(/\{0\}/,this.local.name);var s;return i?!r&&t<=i?s=t-1:s=t:s=t-1,s},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),i=r?12:11;if(t<0||t>i)throw sv.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var i=this._validateYear(e,sv.local.invalidyear),a=uv[i-uv[0]],s=a>>9&4095,l=a>>5&15,f=a&31,h;h=HA.newDate(s,l,f),h.add(4-(h.dayOfWeek()||7),"d");var v=this.toJD(e,t,r)-h.toJD();return 1+Math.floor(v/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=lv[e-lv[0]],i=r>>13,a=i?12:11;if(t>a)throw sv.local.invalidMonth.replace(/\{0\}/,this.local.name);var s=r&1<<12-t?30:29;return s},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,s,r,sv.local.invalidDate);e=this._validateYear(i.year()),t=i.month(),r=i.day();var a=this.isIntercalaryMonth(e,t),s=this.toChineseMonth(e,t),l=B0e(e,s,r,a);return HA.toJD(l.year,l.month,l.day)},fromJD:function(e){var t=HA.fromJD(e),r=N0e(t.year(),t.month(),t.day()),i=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,i,r.day)},fromString:function(e){var t=e.match(I0e),r=this._validateYear(+t[1]),i=+t[2],a=!!t[3],s=this.toMonthIndex(r,i,a),l=+t[4];return this.newDate(r,s,l)},add:function(e,t,r){var i=e.year(),a=e.month(),s=this.isIntercalaryMonth(i,a),l=this.toChineseMonth(i,a),f=Object.getPrototypeOf(e3.prototype).add.call(this,e,t,r);if(r==="y"){var h=f.year(),v=f.month(),m=this.isIntercalaryMonth(h,l),_=s&&m?this.toMonthIndex(h,l,!0):this.toMonthIndex(h,l,!1);_!==v&&f.month(_)}return f}});var I0e=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,R0e=/^\d?\d[iI]?/m,F0e=/^闰?十?[一二三四五六七八九]?月/m,q0e=/^闰?十?[一二三四五六七八九]?/m;sv.calendars.chinese=e3;var lv=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],uv=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function N0e(e,t,r,i){var a,s;if(typeof e=="object")a=e,s=t||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var f=typeof t=="number"&&t>=1&&t<=12;if(!f)throw new Error("Solar month outside range 1 - 12");var h=typeof r=="number"&&r>=1&&r<=31;if(!h)throw new Error("Solar day outside range 1 - 31");a={year:e,month:t,day:r},s=i||{}}var v=uv[a.year-uv[0]],m=a.year<<9|a.month<<5|a.day;s.year=m>=v?a.year:a.year-1,v=uv[s.year-uv[0]];var _=v>>9&4095,T=v>>5&15,S=v&31,C,D=new Date(_,T-1,S),E=new Date(a.year,a.month-1,a.day);C=Math.round((E-D)/(24*3600*1e3));var I=lv[s.year-lv[0]],B;for(B=0;B<13;B++){var q=I&1<<12-B?30:29;if(C>13;return!z||B=1888&&e<=2111;if(!f)throw new Error("Lunar year outside range 1888-2111");var h=typeof t=="number"&&t>=1&&t<=12;if(!h)throw new Error("Lunar month outside range 1 - 12");var v=typeof r=="number"&&r>=1&&r<=30;if(!v)throw new Error("Lunar day outside range 1 - 30");var m;typeof i=="object"?(m=!1,s=i):(m=!!i,s=a||{}),l={year:e,month:t,day:r,isIntercalary:m}}var _;_=l.day-1;var T=lv[l.year-lv[0]],S=T>>13,C;S&&(l.month>S||l.isIntercalary)?C=l.month:C=l.month-1;for(var D=0;D>9&4095,q=I>>5&15,z=I&31,O=new Date(B,q-1,z+_);return s.year=O.getFullYear(),s.month=1+O.getMonth(),s.day=O.getDate(),s}});var MZ=pe(()=>{var Zd=Vo(),O0e=Uo();function GA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}GA.prototype=new Zd.baseCalendar;O0e(GA.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Zd.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Zd.local.invalidYear||Zd.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Zd.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,Zd.local.invalidDate);return e=i.year(),e<0&&e++,i.day()+(i.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var i=Math.floor(t/30)+1,a=t-(i-1)*30+1;return this.newDate(r,i,a)}});Zd.calendars.coptic=GA});var SZ=pe(()=>{var Fc=Vo(),U0e=Uo();function ZA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}ZA.prototype=new Fc.baseCalendar;U0e(ZA.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fc.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fc.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fc.local.invalidYear),400},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Fc.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,Fc.local.invalidDate);return(i.day()+1)%8},weekDay:function(e,t,r){var i=this.dayOfWeek(e,t,r);return i>=2&&i<=6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,Fc.local.invalidDate);return{century:V0e[Math.floor((i.year()-1)/100)+1]||""}},toJD:function(e,t,r){var i=this._validate(e,t,r,Fc.local.invalidDate);return e=i.year()+(i.year()<0?1:0),t=i.month(),r=i.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,i=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,i)}});var V0e={20:"Fruitbat",21:"Anchovy"};Fc.calendars.discworld=ZA});var kZ=pe(()=>{var Yd=Vo(),H0e=Uo();function YA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}YA.prototype=new Yd.baseCalendar;H0e(YA.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Yd.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Yd.local.invalidYear||Yd.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Yd.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,Yd.local.invalidDate);return e=i.year(),e<0&&e++,i.day()+(i.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var i=Math.floor(t/30)+1,a=t-(i-1)*30+1;return this.newDate(r,i,a)}});Yd.calendars.ethiopian=YA});var CZ=pe(()=>{var fv=Vo(),G0e=Uo();function WA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}WA.prototype=new fv.baseCalendar;G0e(WA.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,fv.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,t3(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,fv.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,fv.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,fv.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&t3(this.daysInYear(e),10)===5?30:t===9&&t3(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,fv.local.invalidDate);return{yearType:(this.leapYear(i)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(i)%10-3]}},toJD:function(e,t,r){var i=this._validate(e,t,r,fv.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=e<=0?e+1:e,s=this.jdEpoch+this._delay1(a)+this._delay2(a)+r+1;if(t<7){for(var l=7;l<=this.monthsInYear(e);l++)s+=this.daysInMonth(e,l);for(var l=1;l=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var i=e-this.toJD(t,r,1)+1;return this.newDate(t,r,i)}});function t3(e,t){return e-t*Math.floor(e/t)}fv.calendars.hebrew=WA});var EZ=pe(()=>{var f1=Vo(),Z0e=Uo();function XA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}XA.prototype=new f1.baseCalendar;Z0e(XA.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,f1.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,f1.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,f1.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),i=e-this.toJD(t,r,1)+1;return this.newDate(t,r,i)}});f1.calendars.islamic=XA});var LZ=pe(()=>{var c1=Vo(),Y0e=Uo();function jA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}jA.prototype=new c1.baseCalendar;Y0e(jA.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,c1.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(4-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,c1.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,c1.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,i=Math.floor((r-122.1)/365.25),a=Math.floor(365.25*i),s=Math.floor((r-a)/30.6001),l=s-Math.floor(s<14?1:13),f=i-Math.floor(l>2?4716:4715),h=r-a-Math.floor(30.6001*s);return f<=0&&f--,this.newDate(f,l,h)}});c1.calendars.julian=jA});var PZ=pe(()=>{var cu=Vo(),W0e=Uo();function KA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}KA.prototype=new cu.baseCalendar;W0e(KA.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,cu.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,cu.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var i=Math.floor(e/20);return r+"."+i+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&i<0)throw"Invalid Mayan year";t=t*20+i}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cu.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,cu.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cu.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,cu.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,cu.local.invalidDate);return i.day()},weekDay:function(e,t,r){return this._validate(e,t,r,cu.local.invalidDate),!0},extraInfo:function(e,t,r){var i=this._validate(e,t,r,cu.local.invalidDate),a=i.toJD(),s=this._toHaab(a),l=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[s[0]-1],haabMonth:s[0],haabDay:s[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=JA(e+8+17*20,365);return[Math.floor(t/20)+1,JA(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[DZ(e+20,20),DZ(e+4,13)]},toJD:function(e,t,r){var i=this._validate(e,t,r,cu.local.invalidDate);return i.day()+i.month()*20+i.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),i=e%20;return this.newDate(t,r,i)}});function JA(e,t){return e-t*Math.floor(e/t)}function DZ(e,t){return JA(e-1,t)+1}cu.calendars.mayan=KA});var IZ=pe(()=>{var Wd=Vo(),X0e=Uo();function QA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}QA.prototype=new Wd.baseCalendar;var zZ=Wd.instance("gregorian");X0e(QA.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Wd.local.invalidYear||Wd.regionalOptions[""].invalidYear);return zZ.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(1-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Wd.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(a,t,r){var i=this._validate(a,t,r,Wd.local.invalidMonth),a=i.year();a<0&&a++;for(var s=i.day(),l=1;l=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,i=1;r>this.daysInMonth(t,i);)r-=this.daysInMonth(t,i),i++;return this.newDate(t,i,r)}});Wd.calendars.nanakshahi=QA});var RZ=pe(()=>{var Xd=Vo(),j0e=Uo();function $A(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}$A.prototype=new Xd.baseCalendar;j0e($A.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Xd.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,i=this.minMonth;i<=12;i++)r+=this.NEPALI_CALENDAR_DATA[e][i];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,Xd.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var i=this._validate(e,t,r,Xd.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=Xd.instance(),s=0,l=t,f=e;this._createMissingCalendarData(e);var h=e-(l>9||l===9&&r>=this.NEPALI_CALENDAR_DATA[f][0]?56:57);for(t!==9&&(s=r,l--);l!==9;)l<=0&&(l=12,f--),s+=this.NEPALI_CALENDAR_DATA[f][l],l--;return t===9?(s+=r-this.NEPALI_CALENDAR_DATA[f][0],s<0&&(s+=a.daysInYear(h))):s+=this.NEPALI_CALENDAR_DATA[f][9]-this.NEPALI_CALENDAR_DATA[f][0],a.newDate(h,1,1).add(s,"d").toJD()},fromJD:function(e){var t=Xd.instance(),r=t.fromJD(e),i=r.year(),a=r.dayOfYear(),s=i+56;this._createMissingCalendarData(s);for(var l=9,f=this.NEPALI_CALENDAR_DATA[s][0],h=this.NEPALI_CALENDAR_DATA[s][l]-f+1;a>h;)l++,l>12&&(l=1,s++),h+=this.NEPALI_CALENDAR_DATA[s][l];var v=this.NEPALI_CALENDAR_DATA[s][l]-(h-a);return this.newDate(s,l,v)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var Tm=Vo(),J0e=Uo();function a3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function r3(e){var t=e-475;e<0&&t++;var r=.242197,i=r*t,a=r*(t+1),s=i-Math.floor(i),l=a-Math.floor(a);return s>l}a3.prototype=new Tm.baseCalendar;J0e(a3.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Tm.local.invalidYear);return r3(t.year())},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-((i.dayOfWeek()+1)%7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Tm.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,Tm.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=0;if(e>0)for(var s=1;s0?e-1:e)*365+a+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=475+(e-this.toJD(475,1,1))/365.242197,r=Math.floor(t);r<=0&&r--,e>this.toJD(r,12,r3(r)?30:29)&&(r++,r===0&&r++);var i=e-this.toJD(r,1,1)+1,a=i<=186?Math.ceil(i/31):Math.ceil((i-6)/30),s=e-this.toJD(r,a,1)+1;return this.newDate(r,a,s)}});Tm.calendars.persian=a3;Tm.calendars.jalali=a3});var qZ=pe(()=>{var jd=Vo(),K0e=Uo(),i3=jd.instance();function eM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}eM.prototype=new jd.baseCalendar;K0e(eM.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,jd.local.invalidYear),r=this._t2gYear(t.year());return i3.leapYear(r)},weekOfYear:function(a,t,r){var i=this._validate(a,this.minMonth,this.minDay,jd.local.invalidYear),a=this._t2gYear(i.year());return i3.weekOfYear(a,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,jd.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(a,t,r){var i=this._validate(a,t,r,jd.local.invalidDate),a=this._t2gYear(i.year());return i3.toJD(a,i.month(),i.day())},fromJD:function(e){var t=i3.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});jd.calendars.taiwan=eM});var NZ=pe(()=>{var Jd=Vo(),Q0e=Uo(),n3=Jd.instance();function tM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}tM.prototype=new Jd.baseCalendar;Q0e(tM.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Jd.local.invalidYear),r=this._t2gYear(t.year());return n3.leapYear(r)},weekOfYear:function(a,t,r){var i=this._validate(a,this.minMonth,this.minDay,Jd.local.invalidYear),a=this._t2gYear(i.year());return n3.weekOfYear(a,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Jd.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(a,t,r){var i=this._validate(a,t,r,Jd.local.invalidDate),a=this._t2gYear(i.year());return n3.toJD(a,i.month(),i.day())},fromJD:function(e){var t=n3.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Jd.calendars.thai=tM});var BZ=pe(()=>{var Kd=Vo(),$0e=Uo();function rM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}rM.prototype=new Kd.baseCalendar;$0e(rM.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Kd.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,Kd.local.invalidMonth),i=r.toJD()-24e5+.5,a=0,s=0;si)return cv[a]-cv[a-1];a++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,Kd.local.invalidDate),a=12*(i.year()-1)+i.month()-15292,s=i.day()+cv[a-1]-1;return s+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,i=0;it);i++)r++;var a=r+15292,s=Math.floor((a-1)/12),l=s+1,f=a-12*s,h=t-cv[r-1]+1;return this.newDate(l,f,h)},isValid:function(e,t,r){var i=Kd.baseCalendar.prototype.isValid.apply(this,arguments);return i&&(e=e.year!=null?e.year:e,i=e>=1276&&e<=1500),i},_validate:function(e,t,r,i){var a=Kd.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw i.replace(/\{0\}/,this.local.name);return a}});Kd.calendars.ummalqura=rM;var cv=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var UZ=pe((z3e,OZ)=>{"use strict";OZ.exports=Vo();TZ();AZ();MZ();SZ();kZ();CZ();EZ();LZ();PZ();IZ();RZ();FZ();qZ();NZ();BZ()});var XZ=pe((I3e,WZ)=>{"use strict";var HZ=UZ(),h1=Bt(),GZ=Hi(),eme=GZ.EPOCHJD,tme=GZ.ONEDAY,nM={valType:"enumerated",values:h1.sortObjectKeys(HZ.calendars),editType:"calc",dflt:"gregorian"},ZZ=function(e,t,r,i){var a={};return a[r]=nM,h1.coerce(e,t,a,r,i)},rme=function(e,t,r,i){for(var a=0;a{"use strict";jZ.exports=XZ()});var lme=pe((F3e,QZ)=>{var KZ=EV();KZ.register([_G(),XG(),gZ(),JZ()]);QZ.exports=KZ});return lme();})(); +`}),{fragmentSource:g,vertexSource:c,staticAttributes:d,staticUniforms:R}}var Hm=Object.freeze({__proto__:null,prelude:Tl,background:Vc,backgroundPattern:Al,circle:Ml,clippingMask:Tv,heatmap:Hc,heatmapTexture:Ts,collisionBox:dn,collisionCircle:Bm,debug:Om,fill:Sl,fillOutline:rf,fillOutlinePattern:hs,fillPattern:up,fillExtrusion:fp,fillExtrusionPattern:af,hillshadePrepare:cp,hillshade:hp,line:Um,lineGradient:Vm,linePattern:Av,lineSDF:Mv,raster:Sv,symbolIcon:jf,symbolSDF:Gc,symbolTextAndIcon:vp}),Zc=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};Zc.prototype.bind=function(c,b,d,w,L,R,G,K){this.context=c;for(var re=this.boundPaintVertexBuffers.length!==w.length,ue=0;!re&&ue>16,G>>16],u_pixel_coord_lower:[R&65535,G&65535]}}function _u(g,c,b,d){var w=b.imageManager.getPattern(g.from.toString()),L=b.imageManager.getPattern(g.to.toString()),R=b.imageManager.getPixelSize(),G=R.width,K=R.height,re=Math.pow(2,d.tileID.overscaledZ),ue=d.tileSize*Math.pow(2,b.transform.tileZoom)/re,be=ue*(d.tileID.canonical.x+d.tileID.wrap*re),xe=ue*d.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:w.tl,u_pattern_br_a:w.br,u_pattern_tl_b:L.tl,u_pattern_br_b:L.br,u_texsize:[G,K],u_mix:c.t,u_pattern_size_a:w.displaySize,u_pattern_size_b:L.displaySize,u_scale_a:c.fromScale,u_scale_b:c.toScale,u_tile_units_to_pixels:1/mo(d,1,b.transform.tileZoom),u_pixel_coord_upper:[be>>16,xe>>16],u_pixel_coord_lower:[be&65535,xe&65535]}}var Cv=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_lightpos:new a.Uniform3f(g,c.u_lightpos),u_lightintensity:new a.Uniform1f(g,c.u_lightintensity),u_lightcolor:new a.Uniform3f(g,c.u_lightcolor),u_vertical_gradient:new a.Uniform1f(g,c.u_vertical_gradient),u_opacity:new a.Uniform1f(g,c.u_opacity)}},bn=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_lightpos:new a.Uniform3f(g,c.u_lightpos),u_lightintensity:new a.Uniform1f(g,c.u_lightintensity),u_lightcolor:new a.Uniform3f(g,c.u_lightcolor),u_vertical_gradient:new a.Uniform1f(g,c.u_vertical_gradient),u_height_factor:new a.Uniform1f(g,c.u_height_factor),u_image:new a.Uniform1i(g,c.u_image),u_texsize:new a.Uniform2f(g,c.u_texsize),u_pixel_coord_upper:new a.Uniform2f(g,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(g,c.u_pixel_coord_lower),u_scale:new a.Uniform3f(g,c.u_scale),u_fade:new a.Uniform1f(g,c.u_fade),u_opacity:new a.Uniform1f(g,c.u_opacity)}},Jf=function(g,c,b,d){var w=c.style.light,L=w.properties.get("position"),R=[L.x,L.y,L.z],G=a.create$1();w.properties.get("anchor")==="viewport"&&a.fromRotation(G,-c.transform.angle),a.transformMat3(R,R,G);var K=w.properties.get("color");return{u_matrix:g,u_lightpos:R,u_lightintensity:w.properties.get("intensity"),u_lightcolor:[K.r,K.g,K.b],u_vertical_gradient:+b,u_opacity:d}},Js=function(g,c,b,d,w,L,R){return a.extend(Jf(g,c,b,d),nf(L,c,R),{u_height_factor:-Math.pow(2,w.overscaledZ)/R.tileSize/8})},kl=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix)}},Cl=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_image:new a.Uniform1i(g,c.u_image),u_texsize:new a.Uniform2f(g,c.u_texsize),u_pixel_coord_upper:new a.Uniform2f(g,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(g,c.u_pixel_coord_lower),u_scale:new a.Uniform3f(g,c.u_scale),u_fade:new a.Uniform1f(g,c.u_fade)}},El=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_world:new a.Uniform2f(g,c.u_world)}},Ks=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_world:new a.Uniform2f(g,c.u_world),u_image:new a.Uniform1i(g,c.u_image),u_texsize:new a.Uniform2f(g,c.u_texsize),u_pixel_coord_upper:new a.Uniform2f(g,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(g,c.u_pixel_coord_lower),u_scale:new a.Uniform3f(g,c.u_scale),u_fade:new a.Uniform1f(g,c.u_fade)}},As=function(g){return{u_matrix:g}},Ms=function(g,c,b,d){return a.extend(As(g),nf(b,c,d))},Ll=function(g,c){return{u_matrix:g,u_world:c}},pp=function(g,c,b,d,w){return a.extend(Ms(g,c,b,d),{u_world:w})},Gm=function(g,c){return{u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_scale_with_map:new a.Uniform1i(g,c.u_scale_with_map),u_pitch_with_map:new a.Uniform1i(g,c.u_pitch_with_map),u_extrude_scale:new a.Uniform2f(g,c.u_extrude_scale),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_matrix:new a.UniformMatrix4f(g,c.u_matrix)}},Zm=function(g,c,b,d){var w=g.transform,L,R;if(d.paint.get("circle-pitch-alignment")==="map"){var G=mo(b,1,w.zoom);L=!0,R=[G,G]}else L=!1,R=w.pixelsToGLUnits;return{u_camera_to_center_distance:w.cameraToCenterDistance,u_scale_with_map:+(d.paint.get("circle-pitch-scale")==="map"),u_matrix:g.translatePosMatrix(c.posMatrix,b,d.paint.get("circle-translate"),d.paint.get("circle-translate-anchor")),u_pitch_with_map:+L,u_device_pixel_ratio:a.browser.devicePixelRatio,u_extrude_scale:R}},Ym=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_pixels_to_tile_units:new a.Uniform1f(g,c.u_pixels_to_tile_units),u_extrude_scale:new a.Uniform2f(g,c.u_extrude_scale),u_overscale_factor:new a.Uniform1f(g,c.u_overscale_factor)}},mp=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_inv_matrix:new a.UniformMatrix4f(g,c.u_inv_matrix),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_viewport_size:new a.Uniform2f(g,c.u_viewport_size)}},yp=function(g,c,b){var d=mo(b,1,c.zoom),w=Math.pow(2,c.zoom-b.tileID.overscaledZ),L=b.tileID.overscaleFactor();return{u_matrix:g,u_camera_to_center_distance:c.cameraToCenterDistance,u_pixels_to_tile_units:d,u_extrude_scale:[c.pixelsToGLUnits[0]/(d*w),c.pixelsToGLUnits[1]/(d*w)],u_overscale_factor:L}},Ev=function(g,c,b){return{u_matrix:g,u_inv_matrix:c,u_camera_to_center_distance:b.cameraToCenterDistance,u_viewport_size:[b.width,b.height]}},Lv=function(g,c){return{u_color:new a.UniformColor(g,c.u_color),u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_overlay:new a.Uniform1i(g,c.u_overlay),u_overlay_scale:new a.Uniform1f(g,c.u_overlay_scale)}},Kf=function(g,c,b){return b===void 0&&(b=1),{u_matrix:g,u_color:c,u_overlay:0,u_overlay_scale:b}},Yc=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix)}},gp=function(g){return{u_matrix:g}},Dv=function(g,c){return{u_extrude_scale:new a.Uniform1f(g,c.u_extrude_scale),u_intensity:new a.Uniform1f(g,c.u_intensity),u_matrix:new a.UniformMatrix4f(g,c.u_matrix)}},_p=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_world:new a.Uniform2f(g,c.u_world),u_image:new a.Uniform1i(g,c.u_image),u_color_ramp:new a.Uniform1i(g,c.u_color_ramp),u_opacity:new a.Uniform1f(g,c.u_opacity)}},of=function(g,c,b,d){return{u_matrix:g,u_extrude_scale:mo(c,1,b),u_intensity:d}},Wm=function(g,c,b,d){var w=a.create();a.ortho(w,0,g.width,g.height,0,0,1);var L=g.context.gl;return{u_matrix:w,u_world:[L.drawingBufferWidth,L.drawingBufferHeight],u_image:b,u_color_ramp:d,u_opacity:c.paint.get("heatmap-opacity")}},xp=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_image:new a.Uniform1i(g,c.u_image),u_latrange:new a.Uniform2f(g,c.u_latrange),u_light:new a.Uniform2f(g,c.u_light),u_shadow:new a.UniformColor(g,c.u_shadow),u_highlight:new a.UniformColor(g,c.u_highlight),u_accent:new a.UniformColor(g,c.u_accent)}},bp=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_image:new a.Uniform1i(g,c.u_image),u_dimension:new a.Uniform2f(g,c.u_dimension),u_zoom:new a.Uniform1f(g,c.u_zoom),u_unpack:new a.Uniform4f(g,c.u_unpack)}},wp=function(g,c,b){var d=b.paint.get("hillshade-shadow-color"),w=b.paint.get("hillshade-highlight-color"),L=b.paint.get("hillshade-accent-color"),R=b.paint.get("hillshade-illumination-direction")*(Math.PI/180);b.paint.get("hillshade-illumination-anchor")==="viewport"&&(R-=g.transform.angle);var G=!g.options.moving;return{u_matrix:g.transform.calculatePosMatrix(c.tileID.toUnwrapped(),G),u_image:0,u_latrange:zv(g,c.tileID),u_light:[b.paint.get("hillshade-exaggeration"),R],u_shadow:d,u_highlight:w,u_accent:L}},Pv=function(g,c){var b=c.stride,d=a.create();return a.ortho(d,0,a.EXTENT,-a.EXTENT,0,0,1),a.translate(d,d,[0,-a.EXTENT,0]),{u_matrix:d,u_image:1,u_dimension:[b,b],u_zoom:g.overscaledZ,u_unpack:c.getUnpackVector()}};function zv(g,c){var b=Math.pow(2,c.canonical.z),d=c.canonical.y;return[new a.MercatorCoordinate(0,d/b).toLngLat().lat,new a.MercatorCoordinate(0,(d+1)/b).toLngLat().lat]}var xu=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_ratio:new a.Uniform1f(g,c.u_ratio),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_units_to_pixels:new a.Uniform2f(g,c.u_units_to_pixels)}},Dl=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_ratio:new a.Uniform1f(g,c.u_ratio),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_units_to_pixels:new a.Uniform2f(g,c.u_units_to_pixels),u_image:new a.Uniform1i(g,c.u_image),u_image_height:new a.Uniform1f(g,c.u_image_height)}},Qf=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_texsize:new a.Uniform2f(g,c.u_texsize),u_ratio:new a.Uniform1f(g,c.u_ratio),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_image:new a.Uniform1i(g,c.u_image),u_units_to_pixels:new a.Uniform2f(g,c.u_units_to_pixels),u_scale:new a.Uniform3f(g,c.u_scale),u_fade:new a.Uniform1f(g,c.u_fade)}},Iv=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_ratio:new a.Uniform1f(g,c.u_ratio),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_units_to_pixels:new a.Uniform2f(g,c.u_units_to_pixels),u_patternscale_a:new a.Uniform2f(g,c.u_patternscale_a),u_patternscale_b:new a.Uniform2f(g,c.u_patternscale_b),u_sdfgamma:new a.Uniform1f(g,c.u_sdfgamma),u_image:new a.Uniform1i(g,c.u_image),u_tex_y_a:new a.Uniform1f(g,c.u_tex_y_a),u_tex_y_b:new a.Uniform1f(g,c.u_tex_y_b),u_mix:new a.Uniform1f(g,c.u_mix)}},Wc=function(g,c,b){var d=g.transform;return{u_matrix:bu(g,c,b),u_ratio:1/mo(c,1,d.zoom),u_device_pixel_ratio:a.browser.devicePixelRatio,u_units_to_pixels:[1/d.pixelsToGLUnits[0],1/d.pixelsToGLUnits[1]]}},Xc=function(g,c,b,d){return a.extend(Wc(g,c,b),{u_image:0,u_image_height:d})},jc=function(g,c,b,d){var w=g.transform,L=Jc(c,w);return{u_matrix:bu(g,c,b),u_texsize:c.imageAtlasTexture.size,u_ratio:1/mo(c,1,w.zoom),u_device_pixel_ratio:a.browser.devicePixelRatio,u_image:0,u_scale:[L,d.fromScale,d.toScale],u_fade:d.t,u_units_to_pixels:[1/w.pixelsToGLUnits[0],1/w.pixelsToGLUnits[1]]}},Pl=function(g,c,b,d,w){var L=g.transform,R=g.lineAtlas,G=Jc(c,L),K=b.layout.get("line-cap")==="round",re=R.getDash(d.from,K),ue=R.getDash(d.to,K),be=re.width*w.fromScale,xe=ue.width*w.toScale;return a.extend(Wc(g,c,b),{u_patternscale_a:[G/be,-re.height/2],u_patternscale_b:[G/xe,-ue.height/2],u_sdfgamma:R.width/(Math.min(be,xe)*256*a.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:re.y,u_tex_y_b:ue.y,u_mix:w.t})};function Jc(g,c){return 1/mo(g,1,c.tileZoom)}function bu(g,c,b){return g.translatePosMatrix(c.tileID.posMatrix,c,b.paint.get("line-translate"),b.paint.get("line-translate-anchor"))}var sf=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_tl_parent:new a.Uniform2f(g,c.u_tl_parent),u_scale_parent:new a.Uniform1f(g,c.u_scale_parent),u_buffer_scale:new a.Uniform1f(g,c.u_buffer_scale),u_fade_t:new a.Uniform1f(g,c.u_fade_t),u_opacity:new a.Uniform1f(g,c.u_opacity),u_image0:new a.Uniform1i(g,c.u_image0),u_image1:new a.Uniform1i(g,c.u_image1),u_brightness_low:new a.Uniform1f(g,c.u_brightness_low),u_brightness_high:new a.Uniform1f(g,c.u_brightness_high),u_saturation_factor:new a.Uniform1f(g,c.u_saturation_factor),u_contrast_factor:new a.Uniform1f(g,c.u_contrast_factor),u_spin_weights:new a.Uniform3f(g,c.u_spin_weights)}},Tp=function(g,c,b,d,w){return{u_matrix:g,u_tl_parent:c,u_scale_parent:b,u_buffer_scale:1,u_fade_t:d.mix,u_opacity:d.opacity*w.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:w.paint.get("raster-brightness-min"),u_brightness_high:w.paint.get("raster-brightness-max"),u_saturation_factor:$f(w.paint.get("raster-saturation")),u_contrast_factor:pi(w.paint.get("raster-contrast")),u_spin_weights:Kc(w.paint.get("raster-hue-rotate"))}};function Kc(g){g*=Math.PI/180;var c=Math.sin(g),b=Math.cos(g);return[(2*b+1)/3,(-Math.sqrt(3)*c-b+1)/3,(Math.sqrt(3)*c-b+1)/3]}function pi(g){return g>0?1/(1-g):1+g}function $f(g){return g>0?1-1/(1.001-g):-g}var Ap=function(g,c){return{u_is_size_zoom_constant:new a.Uniform1i(g,c.u_is_size_zoom_constant),u_is_size_feature_constant:new a.Uniform1i(g,c.u_is_size_feature_constant),u_size_t:new a.Uniform1f(g,c.u_size_t),u_size:new a.Uniform1f(g,c.u_size),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_pitch:new a.Uniform1f(g,c.u_pitch),u_rotate_symbol:new a.Uniform1i(g,c.u_rotate_symbol),u_aspect_ratio:new a.Uniform1f(g,c.u_aspect_ratio),u_fade_change:new a.Uniform1f(g,c.u_fade_change),u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_label_plane_matrix:new a.UniformMatrix4f(g,c.u_label_plane_matrix),u_coord_matrix:new a.UniformMatrix4f(g,c.u_coord_matrix),u_is_text:new a.Uniform1i(g,c.u_is_text),u_pitch_with_map:new a.Uniform1i(g,c.u_pitch_with_map),u_texsize:new a.Uniform2f(g,c.u_texsize),u_texture:new a.Uniform1i(g,c.u_texture)}},Mp=function(g,c){return{u_is_size_zoom_constant:new a.Uniform1i(g,c.u_is_size_zoom_constant),u_is_size_feature_constant:new a.Uniform1i(g,c.u_is_size_feature_constant),u_size_t:new a.Uniform1f(g,c.u_size_t),u_size:new a.Uniform1f(g,c.u_size),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_pitch:new a.Uniform1f(g,c.u_pitch),u_rotate_symbol:new a.Uniform1i(g,c.u_rotate_symbol),u_aspect_ratio:new a.Uniform1f(g,c.u_aspect_ratio),u_fade_change:new a.Uniform1f(g,c.u_fade_change),u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_label_plane_matrix:new a.UniformMatrix4f(g,c.u_label_plane_matrix),u_coord_matrix:new a.UniformMatrix4f(g,c.u_coord_matrix),u_is_text:new a.Uniform1i(g,c.u_is_text),u_pitch_with_map:new a.Uniform1i(g,c.u_pitch_with_map),u_texsize:new a.Uniform2f(g,c.u_texsize),u_texture:new a.Uniform1i(g,c.u_texture),u_gamma_scale:new a.Uniform1f(g,c.u_gamma_scale),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_is_halo:new a.Uniform1i(g,c.u_is_halo)}},zl=function(g,c){return{u_is_size_zoom_constant:new a.Uniform1i(g,c.u_is_size_zoom_constant),u_is_size_feature_constant:new a.Uniform1i(g,c.u_is_size_feature_constant),u_size_t:new a.Uniform1f(g,c.u_size_t),u_size:new a.Uniform1f(g,c.u_size),u_camera_to_center_distance:new a.Uniform1f(g,c.u_camera_to_center_distance),u_pitch:new a.Uniform1f(g,c.u_pitch),u_rotate_symbol:new a.Uniform1i(g,c.u_rotate_symbol),u_aspect_ratio:new a.Uniform1f(g,c.u_aspect_ratio),u_fade_change:new a.Uniform1f(g,c.u_fade_change),u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_label_plane_matrix:new a.UniformMatrix4f(g,c.u_label_plane_matrix),u_coord_matrix:new a.UniformMatrix4f(g,c.u_coord_matrix),u_is_text:new a.Uniform1i(g,c.u_is_text),u_pitch_with_map:new a.Uniform1i(g,c.u_pitch_with_map),u_texsize:new a.Uniform2f(g,c.u_texsize),u_texsize_icon:new a.Uniform2f(g,c.u_texsize_icon),u_texture:new a.Uniform1i(g,c.u_texture),u_texture_icon:new a.Uniform1i(g,c.u_texture_icon),u_gamma_scale:new a.Uniform1f(g,c.u_gamma_scale),u_device_pixel_ratio:new a.Uniform1f(g,c.u_device_pixel_ratio),u_is_halo:new a.Uniform1i(g,c.u_is_halo)}},Sp=function(g,c,b,d,w,L,R,G,K,re){var ue=w.transform;return{u_is_size_zoom_constant:+(g==="constant"||g==="source"),u_is_size_feature_constant:+(g==="constant"||g==="camera"),u_size_t:c?c.uSizeT:0,u_size:c?c.uSize:0,u_camera_to_center_distance:ue.cameraToCenterDistance,u_pitch:ue.pitch/360*2*Math.PI,u_rotate_symbol:+b,u_aspect_ratio:ue.width/ue.height,u_fade_change:w.options.fadeDuration?w.symbolFadeChange:1,u_matrix:L,u_label_plane_matrix:R,u_coord_matrix:G,u_is_text:+K,u_pitch_with_map:+d,u_texsize:re,u_texture:0}},kp=function(g,c,b,d,w,L,R,G,K,re,ue){var be=w.transform;return a.extend(Sp(g,c,b,d,w,L,R,G,K,re),{u_gamma_scale:d?Math.cos(be._pitch)*be.cameraToCenterDistance:1,u_device_pixel_ratio:a.browser.devicePixelRatio,u_is_halo:+ue})},Rv=function(g,c,b,d,w,L,R,G,K,re){return a.extend(kp(g,c,b,d,w,L,R,G,!0,K,!0),{u_texsize_icon:re,u_texture_icon:1})},Cp=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_opacity:new a.Uniform1f(g,c.u_opacity),u_color:new a.UniformColor(g,c.u_color)}},Xm=function(g,c){return{u_matrix:new a.UniformMatrix4f(g,c.u_matrix),u_opacity:new a.Uniform1f(g,c.u_opacity),u_image:new a.Uniform1i(g,c.u_image),u_pattern_tl_a:new a.Uniform2f(g,c.u_pattern_tl_a),u_pattern_br_a:new a.Uniform2f(g,c.u_pattern_br_a),u_pattern_tl_b:new a.Uniform2f(g,c.u_pattern_tl_b),u_pattern_br_b:new a.Uniform2f(g,c.u_pattern_br_b),u_texsize:new a.Uniform2f(g,c.u_texsize),u_mix:new a.Uniform1f(g,c.u_mix),u_pattern_size_a:new a.Uniform2f(g,c.u_pattern_size_a),u_pattern_size_b:new a.Uniform2f(g,c.u_pattern_size_b),u_scale_a:new a.Uniform1f(g,c.u_scale_a),u_scale_b:new a.Uniform1f(g,c.u_scale_b),u_pixel_coord_upper:new a.Uniform2f(g,c.u_pixel_coord_upper),u_pixel_coord_lower:new a.Uniform2f(g,c.u_pixel_coord_lower),u_tile_units_to_pixels:new a.Uniform1f(g,c.u_tile_units_to_pixels)}},Il=function(g,c,b){return{u_matrix:g,u_opacity:c,u_color:b}},wu=function(g,c,b,d,w,L){return a.extend(_u(d,L,b,w),{u_matrix:g,u_opacity:c})},ec={fillExtrusion:Cv,fillExtrusionPattern:bn,fill:kl,fillPattern:Cl,fillOutline:El,fillOutlinePattern:Ks,circle:Gm,collisionBox:Ym,collisionCircle:mp,debug:Lv,clippingMask:Yc,heatmap:Dv,heatmapTexture:_p,hillshade:xp,hillshadePrepare:bp,line:xu,lineGradient:Dl,linePattern:Qf,lineSDF:Iv,raster:sf,symbolIcon:Ap,symbolSDF:Mp,symbolTextAndIcon:zl,background:Cp,backgroundPattern:Xm},Ss;function ks(g,c,b,d,w,L,R){for(var G=g.context,K=G.gl,re=g.useProgram("collisionBox"),ue=[],be=0,xe=0,Re=0;Re0){var Nt=a.create(),Jt=Je;a.mul(Nt,Ue.placementInvProjMatrix,g.transform.glCoordMatrix),a.mul(Nt,Nt,Ue.placementViewportMatrix),ue.push({circleArray:Pt,circleOffset:xe,transform:Jt,invTransform:Nt}),be+=Pt.length/4,xe=be}ht&&re.draw(G,K.LINES,ma.disabled,Zr.disabled,g.colorModeForRenderPass(),Ee.disabled,yp(Je,g.transform,Ze),b.id,ht.layoutVertexBuffer,ht.indexBuffer,ht.segments,null,g.transform.zoom,null,null,ht.collisionVertexBuffer)}}if(!(!R||!ue.length)){var er=g.useProgram("collisionCircle"),Zt=new a.StructArrayLayout2f1f2i16;Zt.resize(be*4),Zt._trim();for(var rr=0,hr=0,br=ue;hr=0&&(Ye[Ue.associatedIconIndex]={shiftedAnchor:Xr,angle:Ra})}}if(ue){Re.clear();for(var qr=g.icon.placedSymbolArray,Sa=0;Sa0){var R=a.browser.now(),G=(R-g.timeAdded)/L,K=c?(R-c.timeAdded)/L:-1,re=b.getSource(),ue=w.coveringZoomLevel({tileSize:re.tileSize,roundZoom:re.roundZoom}),be=!c||Math.abs(c.tileID.overscaledZ-ue)>Math.abs(g.tileID.overscaledZ-ue),xe=be&&g.refreshedUponExpiration?1:a.clamp(be?G:1-K,0,1);return g.refreshedUponExpiration&&G>=1&&(g.refreshedUponExpiration=!1),c?{opacity:1,mix:1-xe}:{opacity:xe,mix:0}}else return{opacity:1,mix:0}}function tc(g,c,b){var d=b.paint.get("background-color"),w=b.paint.get("background-opacity");if(w!==0){var L=g.context,R=L.gl,G=g.transform,K=G.tileSize,re=b.paint.get("background-pattern");if(!g.isPatternMissing(re)){var ue=!re&&d.a===1&&w===1&&g.opaquePassEnabledForLayer()?"opaque":"translucent";if(g.renderPass===ue){var be=Zr.disabled,xe=g.depthModeForSublayer(0,ue==="opaque"?ma.ReadWrite:ma.ReadOnly),Re=g.colorModeForRenderPass(),Ye=g.useProgram(re?"backgroundPattern":"background"),Ze=G.coveringTiles({tileSize:K});re&&(L.activeTexture.set(R.TEXTURE0),g.imageManager.bind(g.context));for(var Ue=b.getCrossfadeParameters(),Je=0,ht=Ze;Je "+b.overscaledZ);var Je=Ue+" "+Re+"kb";Ip(g,Je),R.draw(d,w.TRIANGLES,G,K,ee.alphaBlended,Ee.disabled,Kf(L,a.Color.transparent,Ze),ue,g.debugBuffer,g.quadTriangleIndexBuffer,g.debugSegments)}function Ip(g,c){g.initDebugOverlayCanvas();var b=g.debugOverlayCanvas,d=g.context.gl,w=g.debugOverlayCanvas.getContext("2d");w.clearRect(0,0,b.width,b.height),w.shadowColor="white",w.shadowBlur=2,w.lineWidth=1.5,w.strokeStyle="white",w.textBaseline="top",w.font="bold 36px Open Sans, sans-serif",w.fillText(c,5,5),w.strokeText(c,5,5),g.debugOverlayTexture.update(b),g.debugOverlayTexture.bind(d.LINEAR,d.CLAMP_TO_EDGE)}function pf(g,c,b){var d=g.context,w=b.implementation;if(g.renderPass==="offscreen"){var L=w.prerender;L&&(g.setCustomLayerDefaults(),d.setColorMode(g.colorModeForRenderPass()),L.call(w,d.gl,g.transform.customLayerMatrix()),d.setDirty(),g.setBaseState())}else if(g.renderPass==="translucent"){g.setCustomLayerDefaults(),d.setColorMode(g.colorModeForRenderPass()),d.setStencilMode(Zr.disabled);var R=w.renderingMode==="3d"?new ma(g.context.gl.LEQUAL,ma.ReadWrite,g.depthRangeFor3D):g.depthModeForSublayer(0,ma.ReadOnly);d.setDepthMode(R),w.render(d.gl,g.transform.customLayerMatrix()),d.setDirty(),g.setBaseState(),d.bindFramebuffer.set(null)}}var li={symbol:jm,circle:Qc,heatmap:Tu,line:go,fill:Ep,"fill-extrusion":Rl,hillshade:vf,raster:Lp,background:tc,debug:Vv,custom:pf},Di=function(c,b){this.context=new Ne(c),this.transform=b,this._tileTextures={},this.setup(),this.numSublayers=rt.maxUnderzooming+rt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new mu,this.gpuTimers={}};Di.prototype.resize=function(c,b){if(this.width=c*a.browser.devicePixelRatio,this.height=b*a.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var d=0,w=this.style._order;d256&&this.clearStencil(),d.setColorMode(ee.disabled),d.setDepthMode(ma.disabled);var L=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var R=0,G=b;R256&&this.clearStencil();var c=this.nextStencilID++,b=this.context.gl;return new Zr({func:b.NOTEQUAL,mask:255},c,255,b.KEEP,b.KEEP,b.REPLACE)},Di.prototype.stencilModeForClipping=function(c){var b=this.context.gl;return new Zr({func:b.EQUAL,mask:255},this._tileClippingMaskIDs[c.key],0,b.KEEP,b.KEEP,b.REPLACE)},Di.prototype.stencilConfigForOverlap=function(c){var b,d=this.context.gl,w=c.sort(function(re,ue){return ue.overscaledZ-re.overscaledZ}),L=w[w.length-1].overscaledZ,R=w[0].overscaledZ-L+1;if(R>1){this.currentStencilSource=void 0,this.nextStencilID+R>256&&this.clearStencil();for(var G={},K=0;K=0;this.currentLayer--){var Nt=this.style._layers[w[this.currentLayer]],Jt=L[Nt.source],er=K[Nt.source];this._renderTileClippingMasks(Nt,er),this.renderLayer(this,Jt,Nt,er)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?b.pop():null},Di.prototype.isPatternMissing=function(c){if(!c)return!1;if(!c.from||!c.to)return!0;var b=this.imageManager.getPattern(c.from.toString()),d=this.imageManager.getPattern(c.to.toString());return!b||!d},Di.prototype.useProgram=function(c,b){this.cache=this.cache||{};var d=""+c+(b?b.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[d]||(this.cache[d]=new dp(this.context,c,Hm[c],b,ec[c],this._showOverdrawInspector)),this.cache[d]},Di.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},Di.prototype.setBaseState=function(){var c=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(c.FUNC_ADD)},Di.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=a.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var c=this.context.gl;this.debugOverlayTexture=new a.Texture(this.context,this.debugOverlayCanvas,c.RGBA)}},Di.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var so=function(c,b){this.points=c,this.planes=b};so.fromInvProjectionMatrix=function(c,b,d){var w=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],L=Math.pow(2,d),R=w.map(function(re){return a.transformMat4([],re,c)}).map(function(re){return a.scale$1([],re,1/re[3]/b*L)}),G=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],K=G.map(function(re){var ue=a.sub([],R[re[0]],R[re[1]]),be=a.sub([],R[re[2]],R[re[1]]),xe=a.normalize([],a.cross([],ue,be)),Re=-a.dot(xe,R[re[1]]);return xe.concat(Re)});return new so(R,K)};var Cs=function(c,b){this.min=c,this.max=b,this.center=a.scale$2([],a.add([],this.min,this.max),.5)};Cs.prototype.quadrant=function(c){for(var b=[c%2===0,c<2],d=a.clone$2(this.min),w=a.clone$2(this.max),L=0;L=0;if(R===0)return 0;R!==b.length&&(d=!1)}if(d)return 2;for(var K=0;K<3;K++){for(var re=Number.MAX_VALUE,ue=-Number.MAX_VALUE,be=0;bethis.max[K]-this.min[K])return 0}return 1};var _o=function(c,b,d,w){if(c===void 0&&(c=0),b===void 0&&(b=0),d===void 0&&(d=0),w===void 0&&(w=0),isNaN(c)||c<0||isNaN(b)||b<0||isNaN(d)||d<0||isNaN(w)||w<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=c,this.bottom=b,this.left=d,this.right=w};_o.prototype.interpolate=function(c,b,d){return b.top!=null&&c.top!=null&&(this.top=a.number(c.top,b.top,d)),b.bottom!=null&&c.bottom!=null&&(this.bottom=a.number(c.bottom,b.bottom,d)),b.left!=null&&c.left!=null&&(this.left=a.number(c.left,b.left,d)),b.right!=null&&c.right!=null&&(this.right=a.number(c.right,b.right,d)),this},_o.prototype.getCenter=function(c,b){var d=a.clamp((this.left+c-this.right)/2,0,c),w=a.clamp((this.top+b-this.bottom)/2,0,b);return new a.Point(d,w)},_o.prototype.equals=function(c){return this.top===c.top&&this.bottom===c.bottom&&this.left===c.left&&this.right===c.right},_o.prototype.clone=function(){return new _o(this.top,this.bottom,this.left,this.right)},_o.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var ti=function(c,b,d,w,L){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=L===void 0?!0:L,this._minZoom=c||0,this._maxZoom=b||22,this._minPitch=d==null?0:d,this._maxPitch=w==null?60:w,this.setMaxBounds(),this.width=0,this.height=0,this._center=new a.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new _o,this._posMatrixCache={},this._alignedPosMatrixCache={}},fi={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};ti.prototype.clone=function(){var c=new ti(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return c.tileSize=this.tileSize,c.latRange=this.latRange,c.width=this.width,c.height=this.height,c._center=this._center,c.zoom=this.zoom,c.angle=this.angle,c._fov=this._fov,c._pitch=this._pitch,c._unmodified=this._unmodified,c._edgeInsets=this._edgeInsets.clone(),c._calcMatrices(),c},fi.minZoom.get=function(){return this._minZoom},fi.minZoom.set=function(g){this._minZoom!==g&&(this._minZoom=g,this.zoom=Math.max(this.zoom,g))},fi.maxZoom.get=function(){return this._maxZoom},fi.maxZoom.set=function(g){this._maxZoom!==g&&(this._maxZoom=g,this.zoom=Math.min(this.zoom,g))},fi.minPitch.get=function(){return this._minPitch},fi.minPitch.set=function(g){this._minPitch!==g&&(this._minPitch=g,this.pitch=Math.max(this.pitch,g))},fi.maxPitch.get=function(){return this._maxPitch},fi.maxPitch.set=function(g){this._maxPitch!==g&&(this._maxPitch=g,this.pitch=Math.min(this.pitch,g))},fi.renderWorldCopies.get=function(){return this._renderWorldCopies},fi.renderWorldCopies.set=function(g){g===void 0?g=!0:g===null&&(g=!1),this._renderWorldCopies=g},fi.worldSize.get=function(){return this.tileSize*this.scale},fi.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},fi.size.get=function(){return new a.Point(this.width,this.height)},fi.bearing.get=function(){return-this.angle/Math.PI*180},fi.bearing.set=function(g){var c=-a.wrap(g,-180,180)*Math.PI/180;this.angle!==c&&(this._unmodified=!1,this.angle=c,this._calcMatrices(),this.rotationMatrix=a.create$2(),a.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},fi.pitch.get=function(){return this._pitch/Math.PI*180},fi.pitch.set=function(g){var c=a.clamp(g,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==c&&(this._unmodified=!1,this._pitch=c,this._calcMatrices())},fi.fov.get=function(){return this._fov/Math.PI*180},fi.fov.set=function(g){g=Math.max(.01,Math.min(60,g)),this._fov!==g&&(this._unmodified=!1,this._fov=g/180*Math.PI,this._calcMatrices())},fi.zoom.get=function(){return this._zoom},fi.zoom.set=function(g){var c=Math.min(Math.max(g,this.minZoom),this.maxZoom);this._zoom!==c&&(this._unmodified=!1,this._zoom=c,this.scale=this.zoomScale(c),this.tileZoom=Math.floor(c),this.zoomFraction=c-this.tileZoom,this._constrain(),this._calcMatrices())},fi.center.get=function(){return this._center},fi.center.set=function(g){g.lat===this._center.lat&&g.lng===this._center.lng||(this._unmodified=!1,this._center=g,this._constrain(),this._calcMatrices())},fi.padding.get=function(){return this._edgeInsets.toJSON()},fi.padding.set=function(g){this._edgeInsets.equals(g)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,g,1),this._calcMatrices())},fi.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},ti.prototype.isPaddingEqual=function(c){return this._edgeInsets.equals(c)},ti.prototype.interpolatePadding=function(c,b,d){this._unmodified=!1,this._edgeInsets.interpolate(c,b,d),this._constrain(),this._calcMatrices()},ti.prototype.coveringZoomLevel=function(c){var b=(c.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/c.tileSize));return Math.max(0,b)},ti.prototype.getVisibleUnwrappedCoordinates=function(c){var b=[new a.UnwrappedTileID(0,c)];if(this._renderWorldCopies)for(var d=this.pointCoordinate(new a.Point(0,0)),w=this.pointCoordinate(new a.Point(this.width,0)),L=this.pointCoordinate(new a.Point(this.width,this.height)),R=this.pointCoordinate(new a.Point(0,this.height)),G=Math.floor(Math.min(d.x,w.x,L.x,R.x)),K=Math.floor(Math.max(d.x,w.x,L.x,R.x)),re=1,ue=G-re;ue<=K+re;ue++)ue!==0&&b.push(new a.UnwrappedTileID(ue,c));return b},ti.prototype.coveringTiles=function(c){var b=this.coveringZoomLevel(c),d=b;if(c.minzoom!==void 0&&bc.maxzoom&&(b=c.maxzoom);var w=a.MercatorCoordinate.fromLngLat(this.center),L=Math.pow(2,b),R=[L*w.x,L*w.y,0],G=so.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,b),K=c.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(K=b);var re=3,ue=function(Ar){return{aabb:new Cs([Ar*L,0,0],[(Ar+1)*L,L,0]),zoom:0,x:0,y:0,wrap:Ar,fullyVisible:!1}},be=[],xe=[],Re=b,Ye=c.reparseOverscaled?d:b;if(this._renderWorldCopies)for(var Ze=1;Ze<=3;Ze++)be.push(ue(-Ze)),be.push(ue(Ze));for(be.push(ue(0));be.length>0;){var Ue=be.pop(),Je=Ue.x,ht=Ue.y,Pt=Ue.fullyVisible;if(!Pt){var Nt=Ue.aabb.intersects(G);if(Nt===0)continue;Pt=Nt===2}var Jt=Ue.aabb.distanceX(R),er=Ue.aabb.distanceY(R),Zt=Math.max(Math.abs(Jt),Math.abs(er)),rr=re+(1<rr&&Ue.zoom>=K){xe.push({tileID:new a.OverscaledTileID(Ue.zoom===Re?Ye:Ue.zoom,Ue.wrap,Ue.zoom,Je,ht),distanceSq:a.sqrLen([R[0]-.5-Je,R[1]-.5-ht])});continue}for(var hr=0;hr<4;hr++){var br=(Je<<1)+hr%2,Er=(ht<<1)+(hr>>1);be.push({aabb:Ue.aabb.quadrant(hr),zoom:Ue.zoom+1,x:br,y:Er,wrap:Ue.wrap,fullyVisible:Pt})}}return xe.sort(function(Ar,Xr){return Ar.distanceSq-Xr.distanceSq}).map(function(Ar){return Ar.tileID})},ti.prototype.resize=function(c,b){this.width=c,this.height=b,this.pixelsToGLUnits=[2/c,-2/b],this._constrain(),this._calcMatrices()},fi.unmodified.get=function(){return this._unmodified},ti.prototype.zoomScale=function(c){return Math.pow(2,c)},ti.prototype.scaleZoom=function(c){return Math.log(c)/Math.LN2},ti.prototype.project=function(c){var b=a.clamp(c.lat,-this.maxValidLatitude,this.maxValidLatitude);return new a.Point(a.mercatorXfromLng(c.lng)*this.worldSize,a.mercatorYfromLat(b)*this.worldSize)},ti.prototype.unproject=function(c){return new a.MercatorCoordinate(c.x/this.worldSize,c.y/this.worldSize).toLngLat()},fi.point.get=function(){return this.project(this.center)},ti.prototype.setLocationAtPoint=function(c,b){var d=this.pointCoordinate(b),w=this.pointCoordinate(this.centerPoint),L=this.locationCoordinate(c),R=new a.MercatorCoordinate(L.x-(d.x-w.x),L.y-(d.y-w.y));this.center=this.coordinateLocation(R),this._renderWorldCopies&&(this.center=this.center.wrap())},ti.prototype.locationPoint=function(c){return this.coordinatePoint(this.locationCoordinate(c))},ti.prototype.pointLocation=function(c){return this.coordinateLocation(this.pointCoordinate(c))},ti.prototype.locationCoordinate=function(c){return a.MercatorCoordinate.fromLngLat(c)},ti.prototype.coordinateLocation=function(c){return c.toLngLat()},ti.prototype.pointCoordinate=function(c){var b=0,d=[c.x,c.y,0,1],w=[c.x,c.y,1,1];a.transformMat4(d,d,this.pixelMatrixInverse),a.transformMat4(w,w,this.pixelMatrixInverse);var L=d[3],R=w[3],G=d[0]/L,K=w[0]/R,re=d[1]/L,ue=w[1]/R,be=d[2]/L,xe=w[2]/R,Re=be===xe?0:(b-be)/(xe-be);return new a.MercatorCoordinate(a.number(G,K,Re)/this.worldSize,a.number(re,ue,Re)/this.worldSize)},ti.prototype.coordinatePoint=function(c){var b=[c.x*this.worldSize,c.y*this.worldSize,0,1];return a.transformMat4(b,b,this.pixelMatrix),new a.Point(b[0]/b[3],b[1]/b[3])},ti.prototype.getBounds=function(){return new a.LngLatBounds().extend(this.pointLocation(new a.Point(0,0))).extend(this.pointLocation(new a.Point(this.width,0))).extend(this.pointLocation(new a.Point(this.width,this.height))).extend(this.pointLocation(new a.Point(0,this.height)))},ti.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new a.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},ti.prototype.setMaxBounds=function(c){c?(this.lngRange=[c.getWest(),c.getEast()],this.latRange=[c.getSouth(),c.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},ti.prototype.calculatePosMatrix=function(c,b){b===void 0&&(b=!1);var d=c.key,w=b?this._alignedPosMatrixCache:this._posMatrixCache;if(w[d])return w[d];var L=c.canonical,R=this.worldSize/this.zoomScale(L.z),G=L.x+Math.pow(2,L.z)*c.wrap,K=a.identity(new Float64Array(16));return a.translate(K,K,[G*R,L.y*R,0]),a.scale(K,K,[R/a.EXTENT,R/a.EXTENT,1]),a.multiply(K,b?this.alignedProjMatrix:this.projMatrix,K),w[d]=new Float32Array(K),w[d]},ti.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},ti.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var c=-90,b=90,d=-180,w=180,L,R,G,K,re=this.size,ue=this._unmodified;if(this.latRange){var be=this.latRange;c=a.mercatorYfromLat(be[1])*this.worldSize,b=a.mercatorYfromLat(be[0])*this.worldSize,L=b-cb&&(K=b-Ue)}if(this.lngRange){var Je=Re.x,ht=re.x/2;Je-htw&&(G=w-ht)}(G!==void 0||K!==void 0)&&(this.center=this.unproject(new a.Point(G!==void 0?G:Re.x,K!==void 0?K:Re.y))),this._unmodified=ue,this._constraining=!1}},ti.prototype._calcMatrices=function(){if(this.height){var c=this._fov/2,b=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(c)*this.height;var d=Math.PI/2+this._pitch,w=this._fov*(.5+b.y/this.height),L=Math.sin(w)*this.cameraToCenterDistance/Math.sin(a.clamp(Math.PI-d-w,.01,Math.PI-.01)),R=this.point,G=R.x,K=R.y,re=Math.cos(Math.PI/2-this._pitch)*L+this.cameraToCenterDistance,ue=re*1.01,be=this.height/50,xe=new Float64Array(16);a.perspective(xe,this._fov,this.width/this.height,be,ue),xe[8]=-b.x*2/this.width,xe[9]=b.y*2/this.height,a.scale(xe,xe,[1,-1,1]),a.translate(xe,xe,[0,0,-this.cameraToCenterDistance]),a.rotateX(xe,xe,this._pitch),a.rotateZ(xe,xe,this.angle),a.translate(xe,xe,[-G,-K,0]),this.mercatorMatrix=a.scale([],xe,[this.worldSize,this.worldSize,this.worldSize]),a.scale(xe,xe,[1,1,a.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=xe,this.invProjMatrix=a.invert([],this.projMatrix);var Re=this.width%2/2,Ye=this.height%2/2,Ze=Math.cos(this.angle),Ue=Math.sin(this.angle),Je=G-Math.round(G)+Ze*Re+Ue*Ye,ht=K-Math.round(K)+Ze*Ye+Ue*Re,Pt=new Float64Array(xe);if(a.translate(Pt,Pt,[Je>.5?Je-1:Je,ht>.5?ht-1:ht,0]),this.alignedProjMatrix=Pt,xe=a.create(),a.scale(xe,xe,[this.width/2,-this.height/2,1]),a.translate(xe,xe,[1,-1,0]),this.labelPlaneMatrix=xe,xe=a.create(),a.scale(xe,xe,[1,-1,1]),a.translate(xe,xe,[-1,-1,0]),a.scale(xe,xe,[2/this.width,2/this.height,1]),this.glCoordMatrix=xe,this.pixelMatrix=a.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),xe=a.invert(new Float64Array(16),this.pixelMatrix),!xe)throw new Error("failed to invert matrix");this.pixelMatrixInverse=xe,this._posMatrixCache={},this._alignedPosMatrixCache={}}},ti.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var c=this.pointCoordinate(new a.Point(0,0)),b=[c.x*this.worldSize,c.y*this.worldSize,0,1],d=a.transformMat4(b,b,this.pixelMatrix);return d[3]/this.cameraToCenterDistance},ti.prototype.getCameraPoint=function(){var c=this._pitch,b=Math.tan(c)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.Point(0,b))},ti.prototype.getCameraQueryGeometry=function(c){var b=this.getCameraPoint();if(c.length===1)return[c[0],b];for(var d=b.x,w=b.y,L=b.x,R=b.y,G=0,K=c;G=3&&!c.some(function(d){return isNaN(d)})){var b=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(c[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+c[2],+c[1]],zoom:+c[0],bearing:b,pitch:+(c[4]||0)}),!0}return!1},Fl.prototype._updateHashUnthrottled=function(){var c=a.window.location.href.replace(/(#.+)?$/,this.getHashString());try{a.window.history.replaceState(a.window.history.state,null,c)}catch(b){}};var rc={linearity:.3,easing:a.bezier(0,0,.3,1)},mf=a.extend({deceleration:2500,maxSpeed:1400},rc),ql=a.extend({deceleration:20,maxSpeed:1400},rc),Es=a.extend({deceleration:1e3,maxSpeed:360},rc),nh=a.extend({deceleration:1e3,maxSpeed:90},rc),yf=function(c){this._map=c,this.clear()};yf.prototype.clear=function(){this._inertiaBuffer=[]},yf.prototype.record=function(c){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:a.browser.now(),settings:c})},yf.prototype._drainInertiaBuffer=function(){for(var c=this._inertiaBuffer,b=a.browser.now(),d=160;c.length>0&&b-c[0].time>d;)c.shift()},yf.prototype._onMoveEnd=function(c){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var b={zoom:0,bearing:0,pitch:0,pan:new a.Point(0,0),pinchAround:void 0,around:void 0},d=0,w=this._inertiaBuffer;d=this._clickTolerance||this._map.fire(new M(c.type,this._map,c))},U.prototype.dblclick=function(c){return this._firePreventable(new M(c.type,this._map,c))},U.prototype.mouseover=function(c){this._map.fire(new M(c.type,this._map,c))},U.prototype.mouseout=function(c){this._map.fire(new M(c.type,this._map,c))},U.prototype.touchstart=function(c){return this._firePreventable(new P(c.type,this._map,c))},U.prototype.touchmove=function(c){this._map.fire(new P(c.type,this._map,c))},U.prototype.touchend=function(c){this._map.fire(new P(c.type,this._map,c))},U.prototype.touchcancel=function(c){this._map.fire(new P(c.type,this._map,c))},U.prototype._firePreventable=function(c){if(this._map.fire(c),c.defaultPrevented)return{}},U.prototype.isEnabled=function(){return!0},U.prototype.isActive=function(){return!1},U.prototype.enable=function(){},U.prototype.disable=function(){};var Z=function(c){this._map=c};Z.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Z.prototype.mousemove=function(c){this._map.fire(new M(c.type,this._map,c))},Z.prototype.mousedown=function(){this._delayContextMenu=!0},Z.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new M("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Z.prototype.contextmenu=function(c){this._delayContextMenu?this._contextMenuEvent=c:this._map.fire(new M(c.type,this._map,c)),this._map.listens("contextmenu")&&c.preventDefault()},Z.prototype.isEnabled=function(){return!0},Z.prototype.isActive=function(){return!1},Z.prototype.enable=function(){},Z.prototype.disable=function(){};var $=function(c,b){this._map=c,this._el=c.getCanvasContainer(),this._container=c.getContainer(),this._clickTolerance=b.clickTolerance||1};$.prototype.isEnabled=function(){return!!this._enabled},$.prototype.isActive=function(){return!!this._active},$.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},$.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},$.prototype.mousedown=function(c,b){this.isEnabled()&&c.shiftKey&&c.button===0&&(l.disableDrag(),this._startPos=this._lastPos=b,this._active=!0)},$.prototype.mousemoveWindow=function(c,b){if(this._active){var d=b;if(!(this._lastPos.equals(d)||!this._box&&d.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=c.timeStamp),d.length===this.numTouches&&(this.centroid=ae(b),this.touches=X(d,b)))},De.prototype.touchmove=function(c,b,d){if(!(this.aborted||!this.centroid)){var w=X(d,b);for(var L in this.touches){var R=this.touches[L],G=w[L];(!G||G.dist(R)>Pe)&&(this.aborted=!0)}}},De.prototype.touchend=function(c,b,d){if((!this.centroid||c.timeStamp-this.startTime>_e)&&(this.aborted=!0),d.length===0){var w=!this.aborted&&this.centroid;if(this.reset(),w)return w}};var Qe=function(c){this.singleTap=new De(c),this.numTaps=c.numTaps,this.reset()};Qe.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Qe.prototype.touchstart=function(c,b,d){this.singleTap.touchstart(c,b,d)},Qe.prototype.touchmove=function(c,b,d){this.singleTap.touchmove(c,b,d)},Qe.prototype.touchend=function(c,b,d){var w=this.singleTap.touchend(c,b,d);if(w){var L=c.timeStamp-this.lastTime0&&(this._active=!0);var w=X(d,b),L=new a.Point(0,0),R=new a.Point(0,0),G=0;for(var K in w){var re=w[K],ue=this._touches[K];ue&&(L._add(re),R._add(re.sub(ue)),G++,w[K]=re)}if(this._touches=w,!(GMath.abs(g.x)}var Xt=100,Jr=function(g){function c(){g.apply(this,arguments)}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.reset=function(){g.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},c.prototype._start=function(d){this._lastPoints=d,$a(d[0].sub(d[1]))&&(this._valid=!1)},c.prototype._move=function(d,w,L){var R=d[0].sub(this._lastPoints[0]),G=d[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(R,G,L.timeStamp),!!this._valid){this._lastPoints=d,this._active=!0;var K=(R.y+G.y)/2,re=-.5;return{pitchDelta:K*re}}},c.prototype.gestureBeginsVertically=function(d,w,L){if(this._valid!==void 0)return this._valid;var R=2,G=d.mag()>=R,K=w.mag()>=R;if(!(!G&&!K)){if(!G||!K)return this._firstMove===void 0&&(this._firstMove=L),L-this._firstMove0==w.y>0;return $a(d)&&$a(w)&&re}},c}(ur),oa={panStep:100,bearingStep:15,pitchStep:10},sa=function(){var c=oa;this._panStep=c.panStep,this._bearingStep=c.bearingStep,this._pitchStep=c.pitchStep,this._rotationDisabled=!1};sa.prototype.reset=function(){this._active=!1},sa.prototype.keydown=function(c){var b=this;if(!(c.altKey||c.ctrlKey||c.metaKey)){var d=0,w=0,L=0,R=0,G=0;switch(c.keyCode){case 61:case 107:case 171:case 187:d=1;break;case 189:case 109:case 173:d=-1;break;case 37:c.shiftKey?w=-1:(c.preventDefault(),R=-1);break;case 39:c.shiftKey?w=1:(c.preventDefault(),R=1);break;case 38:c.shiftKey?L=1:(c.preventDefault(),G=-1);break;case 40:c.shiftKey?L=-1:(c.preventDefault(),G=1);break;default:return}return this._rotationDisabled&&(w=0,L=0),{cameraAnimation:function(K){var re=K.getZoom();K.easeTo({duration:300,easeId:"keyboardHandler",easing:Pi,zoom:d?Math.round(re)+d*(c.shiftKey?2:1):re,bearing:K.getBearing()+w*b._bearingStep,pitch:K.getPitch()+L*b._pitchStep,offset:[-R*b._panStep,-G*b._panStep],center:K.getCenter()},{originalEvent:c})}}}},sa.prototype.enable=function(){this._enabled=!0},sa.prototype.disable=function(){this._enabled=!1,this.reset()},sa.prototype.isEnabled=function(){return this._enabled},sa.prototype.isActive=function(){return this._active},sa.prototype.disableRotation=function(){this._rotationDisabled=!0},sa.prototype.enableRotation=function(){this._rotationDisabled=!1};function Pi(g){return g*(2-g)}var Hi=4.000244140625,tn=1/100,wi=1/450,wn=2,wr=function(c,b){this._map=c,this._el=c.getCanvasContainer(),this._handler=b,this._delta=0,this._defaultZoomRate=tn,this._wheelZoomRate=wi,a.bindAll(["_onTimeout"],this)};wr.prototype.setZoomRate=function(c){this._defaultZoomRate=c},wr.prototype.setWheelZoomRate=function(c){this._wheelZoomRate=c},wr.prototype.isEnabled=function(){return!!this._enabled},wr.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},wr.prototype.isZooming=function(){return!!this._zooming},wr.prototype.enable=function(c){this.isEnabled()||(this._enabled=!0,this._aroundCenter=c&&c.around==="center")},wr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},wr.prototype.wheel=function(c){if(this.isEnabled()){var b=c.deltaMode===a.window.WheelEvent.DOM_DELTA_LINE?c.deltaY*40:c.deltaY,d=a.browser.now(),w=d-(this._lastWheelEventTime||0);this._lastWheelEventTime=d,b!==0&&b%Hi===0?this._type="wheel":b!==0&&Math.abs(b)<4?this._type="trackpad":w>400?(this._type=null,this._lastValue=b,this._timeout=setTimeout(this._onTimeout,40,c)):this._type||(this._type=Math.abs(w*b)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,b+=this._lastValue)),c.shiftKey&&b&&(b=b/4),this._type&&(this._lastWheelEvent=c,this._delta-=b,this._active||this._start(c)),c.preventDefault()}},wr.prototype._onTimeout=function(c){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(c)},wr.prototype._start=function(c){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var b=l.mousePos(this._el,c);this._around=a.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(b)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},wr.prototype.renderFrame=function(){var c=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var b=this._map.transform;if(this._delta!==0){var d=this._type==="wheel"&&Math.abs(this._delta)>Hi?this._wheelZoomRate:this._defaultZoomRate,w=wn/(1+Math.exp(-Math.abs(this._delta*d)));this._delta<0&&w!==0&&(w=1/w);var L=typeof this._targetZoom=="number"?b.zoomScale(this._targetZoom):b.scale;this._targetZoom=Math.min(b.maxZoom,Math.max(b.minZoom,b.scaleZoom(L*w))),this._type==="wheel"&&(this._startZoom=b.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var R=typeof this._targetZoom=="number"?this._targetZoom:b.zoom,G=this._startZoom,K=this._easing,re=!1,ue;if(this._type==="wheel"&&G&&K){var be=Math.min((a.browser.now()-this._lastWheelEventTime)/200,1),xe=K(be);ue=a.number(G,R,xe),be<1?this._frameId||(this._frameId=!0):re=!0}else ue=R,re=!0;return this._active=!0,re&&(this._active=!1,this._finishTimeout=setTimeout(function(){c._zooming=!1,c._handler._triggerRenderFrame(),delete c._targetZoom,delete c._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!re,zoomDelta:ue-b.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},wr.prototype._smoothOutEasing=function(c){var b=a.ease;if(this._prevEase){var d=this._prevEase,w=(a.browser.now()-d.start)/d.duration,L=d.easing(w+.01)-d.easing(w),R=.27/Math.sqrt(L*L+1e-4)*.01,G=Math.sqrt(.27*.27-R*R);b=a.bezier(R,G,.25,1)}return this._prevEase={start:a.browser.now(),duration:c,easing:b},b},wr.prototype.reset=function(){this._active=!1};var Vr=function(c,b){this._clickZoom=c,this._tapZoom=b};Vr.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Vr.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Vr.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Vr.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var Bi=function(){this.reset()};Bi.prototype.reset=function(){this._active=!1},Bi.prototype.dblclick=function(c,b){return c.preventDefault(),{cameraAnimation:function(d){d.easeTo({duration:300,zoom:d.getZoom()+(c.shiftKey?-1:1),around:d.unproject(b)},{originalEvent:c})}}},Bi.prototype.enable=function(){this._enabled=!0},Bi.prototype.disable=function(){this._enabled=!1,this.reset()},Bi.prototype.isEnabled=function(){return this._enabled},Bi.prototype.isActive=function(){return this._active};var Mi=function(){this._tap=new Qe({numTouches:1,numTaps:1}),this.reset()};Mi.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Mi.prototype.touchstart=function(c,b,d){this._swipePoint||(this._tapTime&&c.timeStamp-this._tapTime>ye&&this.reset(),this._tapTime?d.length>0&&(this._swipePoint=b[0],this._swipeTouch=d[0].identifier):this._tap.touchstart(c,b,d))},Mi.prototype.touchmove=function(c,b,d){if(!this._tapTime)this._tap.touchmove(c,b,d);else if(this._swipePoint){if(d[0].identifier!==this._swipeTouch)return;var w=b[0],L=w.y-this._swipePoint.y;return this._swipePoint=w,c.preventDefault(),this._active=!0,{zoomDelta:L/128}}},Mi.prototype.touchend=function(c,b,d){if(this._tapTime)this._swipePoint&&d.length===0&&this.reset();else{var w=this._tap.touchend(c,b,d);w&&(this._tapTime=c.timeStamp)}},Mi.prototype.touchcancel=function(){this.reset()},Mi.prototype.enable=function(){this._enabled=!0},Mi.prototype.disable=function(){this._enabled=!1,this.reset()},Mi.prototype.isEnabled=function(){return this._enabled},Mi.prototype.isActive=function(){return this._active};var lo=function(c,b,d){this._el=c,this._mousePan=b,this._touchPan=d};lo.prototype.enable=function(c){this._inertiaOptions=c||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},lo.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},lo.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},lo.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var In=function(c,b,d){this._pitchWithRotate=c.pitchWithRotate,this._mouseRotate=b,this._mousePitch=d};In.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},In.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},In.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},In.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var pn=function(c,b,d,w){this._el=c,this._touchZoom=b,this._touchRotate=d,this._tapDragZoom=w,this._rotationDisabled=!1,this._enabled=!0};pn.prototype.enable=function(c){this._touchZoom.enable(c),this._rotationDisabled||this._touchRotate.enable(c),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},pn.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},pn.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},pn.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},pn.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},pn.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var mi=function(g){return g.zoom||g.drag||g.pitch||g.rotate},jo=function(g){function c(){g.apply(this,arguments)}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c}(a.Event);function uo(g){return g.panDelta&&g.panDelta.mag()||g.zoomDelta||g.bearingDelta||g.pitchDelta}var ci=function(c,b){this._map=c,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new yf(c),this._bearingSnap=b.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(b),a.bindAll(["handleEvent","handleWindowEvent"],this);var d=this._el;this._listeners=[[d,"touchstart",{passive:!0}],[d,"touchmove",{passive:!1}],[d,"touchend",void 0],[d,"touchcancel",void 0],[d,"mousedown",void 0],[d,"mousemove",void 0],[d,"mouseup",void 0],[a.window.document,"mousemove",{capture:!0}],[a.window.document,"mouseup",void 0],[d,"mouseover",void 0],[d,"mouseout",void 0],[d,"dblclick",void 0],[d,"click",void 0],[d,"keydown",{capture:!1}],[d,"keyup",void 0],[d,"wheel",{passive:!1}],[d,"contextmenu",void 0],[a.window,"blur",void 0]];for(var w=0,L=this._listeners;wG?Math.min(2,Jt):Math.max(.5,Jt),Ar=Math.pow(Er,1-hr),Xr=R.unproject(Pt.add(Nt.mult(hr*Ar)).mult(br));R.setLocationAtPoint(R.renderWorldCopies?Xr.wrap():Xr,Ue)}L._fireMoveEvents(w)},function(hr){L._afterEase(w,hr)},d),this},c.prototype._prepareEase=function(d,w,L){L===void 0&&(L={}),this._moving=!0,!w&&!L.moving&&this.fire(new a.Event("movestart",d)),this._zooming&&!L.zooming&&this.fire(new a.Event("zoomstart",d)),this._rotating&&!L.rotating&&this.fire(new a.Event("rotatestart",d)),this._pitching&&!L.pitching&&this.fire(new a.Event("pitchstart",d))},c.prototype._fireMoveEvents=function(d){this.fire(new a.Event("move",d)),this._zooming&&this.fire(new a.Event("zoom",d)),this._rotating&&this.fire(new a.Event("rotate",d)),this._pitching&&this.fire(new a.Event("pitch",d))},c.prototype._afterEase=function(d,w){if(!(this._easeId&&w&&this._easeId===w)){delete this._easeId;var L=this._zooming,R=this._rotating,G=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,L&&this.fire(new a.Event("zoomend",d)),R&&this.fire(new a.Event("rotateend",d)),G&&this.fire(new a.Event("pitchend",d)),this.fire(new a.Event("moveend",d))}},c.prototype.flyTo=function(d,w){var L=this;if(!d.essential&&a.browser.prefersReducedMotion){var R=a.pick(d,["center","zoom","bearing","pitch","around"]);return this.jumpTo(R,w)}this.stop(),d=a.extend({offset:[0,0],speed:1.2,curve:1.42,easing:a.ease},d);var G=this.transform,K=this.getZoom(),re=this.getBearing(),ue=this.getPitch(),be=this.getPadding(),xe="zoom"in d?a.clamp(+d.zoom,G.minZoom,G.maxZoom):K,Re="bearing"in d?this._normalizeBearing(d.bearing,re):re,Ye="pitch"in d?+d.pitch:ue,Ze="padding"in d?d.padding:G.padding,Ue=G.zoomScale(xe-K),Je=a.Point.convert(d.offset),ht=G.centerPoint.add(Je),Pt=G.pointLocation(ht),Nt=a.LngLat.convert(d.center||Pt);this._normalizeCenter(Nt);var Jt=G.project(Pt),er=G.project(Nt).sub(Jt),Zt=d.curve,rr=Math.max(G.width,G.height),hr=rr/Ue,br=er.mag();if("minZoom"in d){var Er=a.clamp(Math.min(d.minZoom,K,xe),G.minZoom,G.maxZoom),Ar=rr/G.zoomScale(Er-K);Zt=Math.sqrt(Ar/br*2)}var Xr=Zt*Zt;function Ra(na){var Ba=(hr*hr-rr*rr+(na?-1:1)*Xr*Xr*br*br)/(2*(na?hr:rr)*Xr*br);return Math.log(Math.sqrt(Ba*Ba+1)-Ba)}function xa(na){return(Math.exp(na)-Math.exp(-na))/2}function qr(na){return(Math.exp(na)+Math.exp(-na))/2}function Sa(na){return xa(na)/qr(na)}var ia=Ra(0),Za=function(na){return qr(ia)/qr(ia+Zt*na)},Va=function(na){return rr*((qr(ia)*Sa(ia+Zt*na)-xa(ia))/Xr)/br},Si=(Ra(1)-ia)/Zt;if(Math.abs(br)<1e-6||!isFinite(Si)){if(Math.abs(rr-hr)<1e-6)return this.easeTo(d,w);var La=hrd.maxDuration&&(d.duration=0),this._zooming=!0,this._rotating=re!==Re,this._pitching=Ye!==ue,this._padding=!G.isPaddingEqual(Ze),this._prepareEase(w,!1),this._ease(function(na){var Ba=na*Si,rn=1/Za(Ba);G.zoom=na===1?xe:K+G.scaleZoom(rn),L._rotating&&(G.bearing=a.number(re,Re,na)),L._pitching&&(G.pitch=a.number(ue,Ye,na)),L._padding&&(G.interpolatePadding(be,Ze,na),ht=G.centerPoint.add(Je));var Rn=na===1?Nt:G.unproject(Jt.add(er.mult(Va(Ba))).mult(rn));G.setLocationAtPoint(G.renderWorldCopies?Rn.wrap():Rn,ht),L._fireMoveEvents(w)},function(){return L._afterEase(w)},d),this},c.prototype.isEasing=function(){return!!this._easeFrameId},c.prototype.stop=function(){return this._stop()},c.prototype._stop=function(d,w){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var L=this._onEaseEnd;delete this._onEaseEnd,L.call(this,w)}if(!d){var R=this.handlers;R&&R.stop(!1)}return this},c.prototype._ease=function(d,w,L){L.animate===!1||L.duration===0?(d(1),w()):(this._easeStart=a.browser.now(),this._easeOptions=L,this._onEaseFrame=d,this._onEaseEnd=w,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},c.prototype._renderFrameCallback=function(){var d=Math.min((a.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(d)),d<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},c.prototype._normalizeBearing=function(d,w){d=a.wrap(d,-180,180);var L=Math.abs(d-w);return Math.abs(d-360-w)180?-360:L<-180?360:0}},c}(a.Evented),Aa=function(c){c===void 0&&(c={}),this.options=c,a.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Aa.prototype.getDefaultPosition=function(){return"bottom-right"},Aa.prototype.onAdd=function(c){var b=this.options&&this.options.compact;return this._map=c,this._container=l.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=l.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=l.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),b&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),b===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Aa.prototype.onRemove=function(){l.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Aa.prototype._setElementTitle=function(c,b){var d=this._map._getUIString("AttributionControl."+b);c.title=d,c.setAttribute("aria-label",d)},Aa.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Aa.prototype._updateEditLink=function(){var c=this._editLink;c||(c=this._editLink=this._container.querySelector(".mapbox-improve-map"));var b=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||a.config.ACCESS_TOKEN}];if(c){var d=b.reduce(function(w,L,R){return L.value&&(w+=L.key+"="+L.value+(R=0)return!1;return!0});var G=c.join(" | ");G!==this._attribHTML&&(this._attribHTML=G,c.length?(this._innerContainer.innerHTML=G,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Aa.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var ui=function(){a.bindAll(["_updateLogo"],this),a.bindAll(["_updateCompact"],this)};ui.prototype.onAdd=function(c){this._map=c,this._container=l.create("div","mapboxgl-ctrl");var b=l.create("a","mapboxgl-ctrl-logo");return b.target="_blank",b.rel="noopener nofollow",b.href="https://www.mapbox.com/",b.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),b.setAttribute("rel","noopener nofollow"),this._container.appendChild(b),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},ui.prototype.onRemove=function(){l.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},ui.prototype.getDefaultPosition=function(){return"bottom-left"},ui.prototype._updateLogo=function(c){(!c||c.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},ui.prototype._logoRequired=function(){if(this._map.style){var c=this._map.style.sourceCaches;for(var b in c){var d=c[b].getSource();if(d.mapbox_logo)return!0}return!1}},ui.prototype._updateCompact=function(){var c=this._container.children;if(c.length){var b=c[0];this._map.getCanvasContainer().offsetWidth<250?b.classList.add("mapboxgl-compact"):b.classList.remove("mapboxgl-compact")}};var Bl=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Bl.prototype.add=function(c){var b=++this._id,d=this._queue;return d.push({callback:c,id:b,cancelled:!1}),b},Bl.prototype.remove=function(c){for(var b=this._currentlyRunning,d=b?this._queue.concat(b):this._queue,w=0,L=d;wd.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(d.minPitch!=null&&d.maxPitch!=null&&d.minPitch>d.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(d.minPitch!=null&&d.minPitchxf)throw new Error("maxPitch must be less than or equal to "+xf);var L=new ti(d.minZoom,d.maxZoom,d.minPitch,d.maxPitch,d.renderWorldCopies);if(g.call(this,L,d),this._interactive=d.interactive,this._maxTileCacheSize=d.maxTileCacheSize,this._failIfMajorPerformanceCaveat=d.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=d.preserveDrawingBuffer,this._antialias=d.antialias,this._trackResize=d.trackResize,this._bearingSnap=d.bearingSnap,this._refreshExpiredTiles=d.refreshExpiredTiles,this._fadeDuration=d.fadeDuration,this._crossSourceCollisions=d.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=d.collectResourceTiming,this._renderTaskQueue=new Bl,this._controls=[],this._mapId=a.uniqueId(),this._locale=a.extend({},Hv,d.locale),this._clickTolerance=d.clickTolerance,this._requestManager=new a.RequestManager(d.transformRequest,d.accessToken),typeof d.container=="string"){if(this._container=a.window.document.getElementById(d.container),!this._container)throw new Error("Container '"+d.container+"' not found.")}else if(d.container instanceof ey)this._container=d.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(d.maxBounds&&this.setMaxBounds(d.maxBounds),a.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return w._update(!1)}),this.on("moveend",function(){return w._update(!1)}),this.on("zoom",function(){return w._update(!0)}),typeof a.window!="undefined"&&(a.window.addEventListener("online",this._onWindowOnline,!1),a.window.addEventListener("resize",this._onWindowResize,!1),a.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new ci(this,d);var R=typeof d.hash=="string"&&d.hash||void 0;this._hash=d.hash&&new Fl(R).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:d.center,zoom:d.zoom,bearing:d.bearing,pitch:d.pitch}),d.bounds&&(this.resize(),this.fitBounds(d.bounds,a.extend({},d.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=d.localIdeographFontFamily,d.style&&this.setStyle(d.style,{localIdeographFontFamily:d.localIdeographFontFamily}),d.attributionControl&&this.addControl(new Aa({customAttribution:d.customAttribution})),this.addControl(new ui,d.logoPosition),this.on("style.load",function(){w.transform.unmodified&&w.jumpTo(w.style.stylesheet)}),this.on("data",function(G){w._update(G.dataType==="style"),w.fire(new a.Event(G.dataType+"data",G))}),this.on("dataloading",function(G){w.fire(new a.Event(G.dataType+"dataloading",G))})}g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c;var b={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return c.prototype._getMapId=function(){return this._mapId},c.prototype.addControl=function(w,L){if(L===void 0&&(w.getDefaultPosition?L=w.getDefaultPosition():L="top-right"),!w||!w.onAdd)return this.fire(new a.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var R=w.onAdd(this);this._controls.push(w);var G=this._controlPositions[L];return L.indexOf("bottom")!==-1?G.insertBefore(R,G.firstChild):G.appendChild(R),this},c.prototype.removeControl=function(w){if(!w||!w.onRemove)return this.fire(new a.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var L=this._controls.indexOf(w);return L>-1&&this._controls.splice(L,1),w.onRemove(this),this},c.prototype.hasControl=function(w){return this._controls.indexOf(w)>-1},c.prototype.resize=function(w){var L=this._containerDimensions(),R=L[0],G=L[1];this._resizeCanvas(R,G),this.transform.resize(R,G),this.painter.resize(R,G);var K=!this._moving;return K&&(this.stop(),this.fire(new a.Event("movestart",w)).fire(new a.Event("move",w))),this.fire(new a.Event("resize",w)),K&&this.fire(new a.Event("moveend",w)),this},c.prototype.getBounds=function(){return this.transform.getBounds()},c.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},c.prototype.setMaxBounds=function(w){return this.transform.setMaxBounds(a.LngLatBounds.convert(w)),this._update()},c.prototype.setMinZoom=function(w){if(w=w==null?oh:w,w>=oh&&w<=this.transform.maxZoom)return this.transform.minZoom=w,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=w,this._update(),this.getZoom()>w&&this.setZoom(w),this;throw new Error("maxZoom must be greater than the current minZoom")},c.prototype.getMaxZoom=function(){return this.transform.maxZoom},c.prototype.setMinPitch=function(w){if(w=w==null?Lo:w,w=Lo&&w<=this.transform.maxPitch)return this.transform.minPitch=w,this._update(),this.getPitch()xf)throw new Error("maxPitch must be less than or equal to "+xf);if(w>=this.transform.minPitch)return this.transform.maxPitch=w,this._update(),this.getPitch()>w&&this.setPitch(w),this;throw new Error("maxPitch must be greater than the current minPitch")},c.prototype.getMaxPitch=function(){return this.transform.maxPitch},c.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},c.prototype.setRenderWorldCopies=function(w){return this.transform.renderWorldCopies=w,this._update()},c.prototype.project=function(w){return this.transform.locationPoint(a.LngLat.convert(w))},c.prototype.unproject=function(w){return this.transform.pointLocation(a.Point.convert(w))},c.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},c.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},c.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},c.prototype._createDelegatedListener=function(w,L,R){var G=this,K;if(w==="mouseenter"||w==="mouseover"){var re=!1,ue=function(Ue){var Je=G.getLayer(L)?G.queryRenderedFeatures(Ue.point,{layers:[L]}):[];Je.length?re||(re=!0,R.call(G,new M(w,G,Ue.originalEvent,{features:Je}))):re=!1},be=function(){re=!1};return{layer:L,listener:R,delegates:{mousemove:ue,mouseout:be}}}else if(w==="mouseleave"||w==="mouseout"){var xe=!1,Re=function(Ue){var Je=G.getLayer(L)?G.queryRenderedFeatures(Ue.point,{layers:[L]}):[];Je.length?xe=!0:xe&&(xe=!1,R.call(G,new M(w,G,Ue.originalEvent)))},Ye=function(Ue){xe&&(xe=!1,R.call(G,new M(w,G,Ue.originalEvent)))};return{layer:L,listener:R,delegates:{mousemove:Re,mouseout:Ye}}}else{var Ze=function(Ue){var Je=G.getLayer(L)?G.queryRenderedFeatures(Ue.point,{layers:[L]}):[];Je.length&&(Ue.features=Je,R.call(G,Ue),delete Ue.features)};return{layer:L,listener:R,delegates:(K={},K[w]=Ze,K)}}},c.prototype.on=function(w,L,R){if(R===void 0)return g.prototype.on.call(this,w,L);var G=this._createDelegatedListener(w,L,R);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[w]=this._delegatedListeners[w]||[],this._delegatedListeners[w].push(G);for(var K in G.delegates)this.on(K,G.delegates[K]);return this},c.prototype.once=function(w,L,R){if(R===void 0)return g.prototype.once.call(this,w,L);var G=this._createDelegatedListener(w,L,R);for(var K in G.delegates)this.once(K,G.delegates[K]);return this},c.prototype.off=function(w,L,R){var G=this;if(R===void 0)return g.prototype.off.call(this,w,L);var K=function(re){for(var ue=re[w],be=0;be180;){var R=b.locationPoint(g);if(R.x>=0&&R.y>=0&&R.x<=b.width&&R.y<=b.height)break;g.lng>b.center.lng?g.lng-=360:g.lng+=360}return g}var Zv={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Fp(g,c,b){var d=g.classList;for(var w in Zv)d.remove("mapboxgl-"+b+"-anchor-"+w);d.add("mapboxgl-"+b+"-anchor-"+c)}var lh=function(g){function c(b,d){if(g.call(this),(b instanceof a.window.HTMLElement||d)&&(b=a.extend({element:b},d)),a.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=b&&b.anchor||"center",this._color=b&&b.color||"#3FB1CE",this._scale=b&&b.scale||1,this._draggable=b&&b.draggable||!1,this._clickTolerance=b&&b.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=b&&b.rotation||0,this._rotationAlignment=b&&b.rotationAlignment||"auto",this._pitchAlignment=b&&b.pitchAlignment&&b.pitchAlignment!=="auto"?b.pitchAlignment:this._rotationAlignment,!b||!b.element){this._defaultMarker=!0,this._element=l.create("div"),this._element.setAttribute("aria-label","Map marker");var w=l.createNS("http://www.w3.org/2000/svg","svg"),L=41,R=27;w.setAttributeNS(null,"display","block"),w.setAttributeNS(null,"height",L+"px"),w.setAttributeNS(null,"width",R+"px"),w.setAttributeNS(null,"viewBox","0 0 "+R+" "+L);var G=l.createNS("http://www.w3.org/2000/svg","g");G.setAttributeNS(null,"stroke","none"),G.setAttributeNS(null,"stroke-width","1"),G.setAttributeNS(null,"fill","none"),G.setAttributeNS(null,"fill-rule","evenodd");var K=l.createNS("http://www.w3.org/2000/svg","g");K.setAttributeNS(null,"fill-rule","nonzero");var re=l.createNS("http://www.w3.org/2000/svg","g");re.setAttributeNS(null,"transform","translate(3.0, 29.0)"),re.setAttributeNS(null,"fill","#000000");for(var ue=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],be=0,xe=ue;be=w}this._isDragging&&(this._pos=d.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new a.Event("dragstart"))),this.fire(new a.Event("drag")))},c.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new a.Event("dragend")),this._state="inactive"},c.prototype._addDragHandler=function(d){this._element.contains(d.originalEvent.target)&&(d.preventDefault(),this._positionDelta=d.point.sub(this._pos).add(this._offset),this._pointerdownPos=d.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},c.prototype.setDraggable=function(d){return this._draggable=!!d,this._map&&(d?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},c.prototype.isDraggable=function(){return this._draggable},c.prototype.setRotation=function(d){return this._rotation=d||0,this._update(),this},c.prototype.getRotation=function(){return this._rotation},c.prototype.setRotationAlignment=function(d){return this._rotationAlignment=d||"auto",this._update(),this},c.prototype.getRotationAlignment=function(){return this._rotationAlignment},c.prototype.setPitchAlignment=function(d){return this._pitchAlignment=d&&d!=="auto"?d:this._rotationAlignment,this._update(),this},c.prototype.getPitchAlignment=function(){return this._pitchAlignment},c}(a.Evented),ay={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},bf;function Yv(g){bf!==void 0?g(bf):a.window.navigator.permissions!==void 0?a.window.navigator.permissions.query({name:"geolocation"}).then(function(c){bf=c.state!=="denied",g(bf)}):(bf=!!a.window.navigator.geolocation,g(bf))}var uh=0,ic=!1,y1=function(g){function c(b){g.call(this),this.options=a.extend({},ay,b),a.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.onAdd=function(d){return this._map=d,this._container=l.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),Yv(this._setupUI),this._container},c.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(a.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),l.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,uh=0,ic=!1},c.prototype._isOutOfMapMaxBounds=function(d){var w=this._map.getMaxBounds(),L=d.coords;return w&&(L.longitudew.getEast()||L.latitudew.getNorth())},c.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},c.prototype._onSuccess=function(d){if(this._map){if(this._isOutOfMapMaxBounds(d)){this._setErrorState(),this.fire(new a.Event("outofmaxbounds",d)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=d,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(d),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(d),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new a.Event("geolocate",d)),this._finish()}},c.prototype._updateCamera=function(d){var w=new a.LngLat(d.coords.longitude,d.coords.latitude),L=d.coords.accuracy,R=this._map.getBearing(),G=a.extend({bearing:R},this.options.fitBoundsOptions);this._map.fitBounds(w.toBounds(L),G,{geolocateSource:!0})},c.prototype._updateMarker=function(d){if(d){var w=new a.LngLat(d.coords.longitude,d.coords.latitude);this._accuracyCircleMarker.setLngLat(w).addTo(this._map),this._userLocationDotMarker.setLngLat(w).addTo(this._map),this._accuracy=d.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},c.prototype._updateCircleRadius=function(){var d=this._map._container.clientHeight/2,w=this._map.unproject([0,d]),L=this._map.unproject([1,d]),R=w.distanceTo(L),G=Math.ceil(2*this._accuracy/R);this._circleElement.style.width=G+"px",this._circleElement.style.height=G+"px"},c.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},c.prototype._onError=function(d){if(this._map){if(this.options.trackUserLocation)if(d.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var w=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=w,this._geolocateButton.setAttribute("aria-label",w),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(d.code===3&&ic)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new a.Event("error",d)),this._finish()}},c.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},c.prototype._setupUI=function(d){var w=this;if(this._container.addEventListener("contextmenu",function(G){return G.preventDefault()}),this._geolocateButton=l.create("button","mapboxgl-ctrl-geolocate",this._container),l.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",d===!1){a.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var L=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=L,this._geolocateButton.setAttribute("aria-label",L)}else{var R=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=R,this._geolocateButton.setAttribute("aria-label",R)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=l.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new lh(this._dotElement),this._circleElement=l.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new lh({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(G){var K=G.originalEvent&&G.originalEvent.type==="resize";!G.geolocateSource&&w._watchState==="ACTIVE_LOCK"&&!K&&(w._watchState="BACKGROUND",w._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),w._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),w.fire(new a.Event("trackuserlocationend")))})},c.prototype.trigger=function(){if(!this._setup)return a.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new a.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":uh--,ic=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new a.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new a.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),uh++;var d;uh>1?(d={maximumAge:6e5,timeout:0},ic=!0):(d=this.options.positionOptions,ic=!1),this._geolocationWatchID=a.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,d)}}else a.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},c.prototype._clearWatch=function(){a.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},c}(a.Evented),iy={maxWidth:100,unit:"metric"},nc=function(c){this.options=a.extend({},iy,c),a.bindAll(["_onMove","setUnit"],this)};nc.prototype.getDefaultPosition=function(){return"bottom-left"},nc.prototype._onMove=function(){ny(this._map,this._container,this.options)},nc.prototype.onAdd=function(c){return this._map=c,this._container=l.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",c.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},nc.prototype.onRemove=function(){l.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},nc.prototype.setUnit=function(c){this.options.unit=c,ny(this._map,this._container,this.options)};function ny(g,c,b){var d=b&&b.maxWidth||100,w=g._container.clientHeight/2,L=g.unproject([0,w]),R=g.unproject([d,w]),G=L.distanceTo(R);if(b&&b.unit==="imperial"){var K=3.2808*G;if(K>5280){var re=K/5280;fh(c,d,re,g._getUIString("ScaleControl.Miles"))}else fh(c,d,K,g._getUIString("ScaleControl.Feet"))}else if(b&&b.unit==="nautical"){var ue=G/1852;fh(c,d,ue,g._getUIString("ScaleControl.NauticalMiles"))}else G>=1e3?fh(c,d,G/1e3,g._getUIString("ScaleControl.Kilometers")):fh(c,d,G,g._getUIString("ScaleControl.Meters"))}function fh(g,c,b,d){var w=_1(b),L=w/b;g.style.width=c*L+"px",g.innerHTML=w+" "+d}function g1(g){var c=Math.pow(10,Math.ceil(-Math.log(g)/Math.LN10));return Math.round(g*c)/c}function _1(g){var c=Math.pow(10,(""+Math.floor(g)).length-1),b=g/c;return b=b>=10?10:b>=5?5:b>=3?3:b>=2?2:b>=1?1:g1(b),c*b}var Qs=function(c){this._fullscreen=!1,c&&c.container&&(c.container instanceof a.window.HTMLElement?this._container=c.container:a.warnOnce("Full screen control 'container' must be a DOM element.")),a.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in a.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in a.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in a.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in a.window.document&&(this._fullscreenchange="MSFullscreenChange")};Qs.prototype.onAdd=function(c){return this._map=c,this._container||(this._container=this._map.getContainer()),this._controlContainer=l.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",a.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Qs.prototype.onRemove=function(){l.remove(this._controlContainer),this._map=null,a.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Qs.prototype._checkFullscreenSupport=function(){return!!(a.window.document.fullscreenEnabled||a.window.document.mozFullScreenEnabled||a.window.document.msFullscreenEnabled||a.window.document.webkitFullscreenEnabled)},Qs.prototype._setupUI=function(){var c=this._fullscreenButton=l.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);l.create("span","mapboxgl-ctrl-icon",c).setAttribute("aria-hidden",!0),c.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),a.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Qs.prototype._updateTitle=function(){var c=this._getTitle();this._fullscreenButton.setAttribute("aria-label",c),this._fullscreenButton.title=c},Qs.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Qs.prototype._isFullscreen=function(){return this._fullscreen},Qs.prototype._changeIcon=function(){var c=a.window.document.fullscreenElement||a.window.document.mozFullScreenElement||a.window.document.webkitFullscreenElement||a.window.document.msFullscreenElement;c===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Qs.prototype._onClickFullscreen=function(){this._isFullscreen()?a.window.document.exitFullscreen?a.window.document.exitFullscreen():a.window.document.mozCancelFullScreen?a.window.document.mozCancelFullScreen():a.window.document.msExitFullscreen?a.window.document.msExitFullscreen():a.window.document.webkitCancelFullScreen&&a.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var x1={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},b1=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),s3=function(g){function c(b){g.call(this),this.options=a.extend(Object.create(x1),b),a.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return g&&(c.__proto__=g),c.prototype=Object.create(g&&g.prototype),c.prototype.constructor=c,c.prototype.addTo=function(d){return this._map&&this.remove(),this._map=d,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new a.Event("open")),this},c.prototype.isOpen=function(){return!!this._map},c.prototype.remove=function(){return this._content&&l.remove(this._content),this._container&&(l.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new a.Event("close")),this},c.prototype.getLngLat=function(){return this._lngLat},c.prototype.setLngLat=function(d){return this._lngLat=a.LngLat.convert(d),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},c.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},c.prototype.getElement=function(){return this._container},c.prototype.setText=function(d){return this.setDOMContent(a.window.document.createTextNode(d))},c.prototype.setHTML=function(d){var w=a.window.document.createDocumentFragment(),L=a.window.document.createElement("body"),R;for(L.innerHTML=d;R=L.firstChild,!!R;)w.appendChild(R);return this.setDOMContent(w)},c.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},c.prototype.setMaxWidth=function(d){return this.options.maxWidth=d,this._update(),this},c.prototype.setDOMContent=function(d){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=l.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(d),this._createCloseButton(),this._update(),this._focusFirstElement(),this},c.prototype.addClassName=function(d){this._container&&this._container.classList.add(d)},c.prototype.removeClassName=function(d){this._container&&this._container.classList.remove(d)},c.prototype.setOffset=function(d){return this.options.offset=d,this._update(),this},c.prototype.toggleClassName=function(d){if(this._container)return this._container.classList.toggle(d)},c.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=l.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},c.prototype._onMouseUp=function(d){this._update(d.point)},c.prototype._onMouseMove=function(d){this._update(d.point)},c.prototype._onDrag=function(d){this._update(d.point)},c.prototype._update=function(d){var w=this,L=this._lngLat||this._trackPointer;if(!(!this._map||!L||!this._content)&&(this._container||(this._container=l.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=l.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Re){return w._container.classList.add(Re)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Su(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!d))){var R=this._pos=this._trackPointer&&d?d:this._map.project(this._lngLat),G=this.options.anchor,K=w1(this.options.offset);if(!G){var re=this._container.offsetWidth,ue=this._container.offsetHeight,be;R.y+K.bottom.ythis._map.transform.height-ue?be=["bottom"]:be=[],R.xthis._map.transform.width-re/2&&be.push("right"),be.length===0?G="bottom":G=be.join("-")}var xe=R.add(K[G]).round();l.setTransform(this._container,Zv[G]+" translate("+xe.x+"px,"+xe.y+"px)"),Fp(this._container,G,"popup")}},c.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var d=this._container.querySelector(b1);d&&d.focus()}},c.prototype._onClose=function(){this.remove()},c}(a.Evented);function w1(g){if(g)if(typeof g=="number"){var c=Math.round(Math.sqrt(.5*Math.pow(g,2)));return{center:new a.Point(0,0),top:new a.Point(0,g),"top-left":new a.Point(c,c),"top-right":new a.Point(-c,c),bottom:new a.Point(0,-g),"bottom-left":new a.Point(c,-c),"bottom-right":new a.Point(-c,-c),left:new a.Point(g,0),right:new a.Point(-g,0)}}else if(g instanceof a.Point||Array.isArray(g)){var b=a.Point.convert(g);return{center:b,top:b,"top-left":b,"top-right":b,bottom:b,"bottom-left":b,"bottom-right":b,left:b,right:b}}else return{center:a.Point.convert(g.center||[0,0]),top:a.Point.convert(g.top||[0,0]),"top-left":a.Point.convert(g["top-left"]||[0,0]),"top-right":a.Point.convert(g["top-right"]||[0,0]),bottom:a.Point.convert(g.bottom||[0,0]),"bottom-left":a.Point.convert(g["bottom-left"]||[0,0]),"bottom-right":a.Point.convert(g["bottom-right"]||[0,0]),left:a.Point.convert(g.left||[0,0]),right:a.Point.convert(g.right||[0,0])};else return w1(new a.Point(0,0))}var Tn={version:a.version,supported:s,setRTLTextPlugin:a.setRTLTextPlugin,getRTLTextPluginStatus:a.getRTLTextPluginStatus,Map:ry,NavigationControl:Mu,GeolocateControl:y1,AttributionControl:Aa,ScaleControl:nc,FullscreenControl:Qs,Popup:s3,Marker:lh,Style:ws,LngLat:a.LngLat,LngLatBounds:a.LngLatBounds,Point:a.Point,MercatorCoordinate:a.MercatorCoordinate,Evented:a.Evented,config:a.config,prewarm:Br,clearPrewarmedResources:ca,get accessToken(){return a.config.ACCESS_TOKEN},set accessToken(g){a.config.ACCESS_TOKEN=g},get baseApiUrl(){return a.config.API_URL},set baseApiUrl(g){a.config.API_URL=g},get workerCount(){return $t.workerCount},set workerCount(g){$t.workerCount=g},get maxParallelImageRequests(){return a.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(g){a.config.MAX_PARALLEL_IMAGE_REQUESTS=g},clearStorage:function(c){a.clearTileCache(c)},workerUrl:""};return Tn}),r})});var AH=me((bbe,TH)=>{TH.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var Ob=me(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});var Zs=63710088e-1,yA={centimeters:Zs*100,centimetres:Zs*100,degrees:360/(2*Math.PI),feet:Zs*3.28084,inches:Zs*39.37,kilometers:Zs/1e3,kilometres:Zs/1e3,meters:Zs,metres:Zs,miles:Zs/1609.344,millimeters:Zs*1e3,millimetres:Zs*1e3,nauticalmiles:Zs/1852,radians:1,yards:Zs*1.0936},mA={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function tv(e,t,r={}){let i={type:"Feature"};return(r.id===0||r.id)&&(i.id=r.id),r.bbox&&(i.bbox=r.bbox),i.properties=t||{},i.geometry=e,i}function Pde(e,t,r={}){switch(e){case"Point":return gA(t).geometry;case"LineString":return xA(t).geometry;case"Polygon":return _A(t).geometry;case"MultiPoint":return SH(t).geometry;case"MultiLineString":return MH(t).geometry;case"MultiPolygon":return kH(t).geometry;default:throw new Error(e+" is invalid")}}function gA(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Nb(e[0])||!Nb(e[1]))throw new Error("coordinates must contain numbers");return tv({type:"Point",coordinates:e},t,r)}function zde(e,t,r={}){return Bb(e.map(i=>gA(i,t)),r)}function _A(e,t,r={}){for(let a of e){if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(a[a.length-1].length!==a[0].length)throw new Error("First and last Position are not equivalent.");for(let s=0;s_A(i,t)),r)}function xA(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return tv({type:"LineString",coordinates:e},t,r)}function Rde(e,t,r={}){return Bb(e.map(i=>xA(i,t)),r)}function Bb(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function MH(e,t,r={}){return tv({type:"MultiLineString",coordinates:e},t,r)}function SH(e,t,r={}){return tv({type:"MultiPoint",coordinates:e},t,r)}function kH(e,t,r={}){return tv({type:"MultiPolygon",coordinates:e},t,r)}function Fde(e,t,r={}){return tv({type:"GeometryCollection",geometries:e},t,r)}function qde(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function CH(e,t="kilometers"){let r=yA[t];if(!r)throw new Error(t+" units is invalid");return e*r}function bA(e,t="kilometers"){let r=yA[t];if(!r)throw new Error(t+" units is invalid");return e/r}function Nde(e,t){return EH(bA(e,t))}function Bde(e){let t=e%360;return t<0&&(t+=360),t}function Ode(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function EH(e){return e%(2*Math.PI)*180/Math.PI}function Ude(e){return e%360*Math.PI/180}function Vde(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return CH(bA(e,t),r)}function Hde(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let i=mA[t];if(!i)throw new Error("invalid original units");let a=mA[r];if(!a)throw new Error("invalid final units");return e/i*a}function Nb(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function Gde(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Zde(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!Nb(t))throw new Error("bbox must only contain numbers")})}function Yde(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}Ci.areaFactors=mA;Ci.azimuthToBearing=Ode;Ci.bearingToAzimuth=Bde;Ci.convertArea=Hde;Ci.convertLength=Vde;Ci.degreesToRadians=Ude;Ci.earthRadius=Zs;Ci.factors=yA;Ci.feature=tv;Ci.featureCollection=Bb;Ci.geometry=Pde;Ci.geometryCollection=Fde;Ci.isNumber=Nb;Ci.isObject=Gde;Ci.lengthToDegrees=Nde;Ci.lengthToRadians=bA;Ci.lineString=xA;Ci.lineStrings=Rde;Ci.multiLineString=MH;Ci.multiPoint=SH;Ci.multiPolygon=kH;Ci.point=gA;Ci.points=zde;Ci.polygon=_A;Ci.polygons=Ide;Ci.radiansToDegrees=EH;Ci.radiansToLength=CH;Ci.round=qde;Ci.validateBBox=Zde;Ci.validateId=Yde});var Vb=me(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});var ls=Ob();function c1(e,t,r){if(e!==null)for(var i,a,s,l,f,h,v,m=0,_=0,T,S=e.type,C=S==="FeatureCollection",D=S==="Feature",E=C?e.features.length:1,I=0;Ih||C>v||D>m){f=_,h=i,v=C,m=D,s=0;return}var E=ls.lineString.call(void 0,[f,_],r.properties);if(t(E,i,a,D,s)===!1)return!1;s++,f=_})===!1)return!1}}})}function $de(e,t,r){var i=r,a=!1;return PH(e,function(s,l,f,h,v){a===!1&&r===void 0?i=s:i=t(i,s,l,f,h,v),a=!0}),i}function zH(e,t){if(!e)throw new Error("geojson is required");Ub(e,function(r,i,a){if(r.geometry!==null){var s=r.geometry.type,l=r.geometry.coordinates;switch(s){case"LineString":if(t(r,i,a,0,0)===!1)return!1;break;case"Polygon":for(var f=0;f{"use strict";Object.defineProperty(Hb,"__esModule",{value:!0});var IH=Ob(),ape=Vb();function qH(e){return ape.geomReduce.call(void 0,e,(t,r)=>t+ipe(r),0)}function ipe(e){let t=0,r;switch(e.type){case"Polygon":return RH(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(FH(e[0]));for(let r=1;r=t?(i+2)%t:i+2],f=a[0]*TA,h=s[1]*TA,v=l[0]*TA;r+=(v-f)*Math.sin(h),i++}return r*npe}var ope=qH;Hb.area=qH;Hb.default=ope});var OH=me(Gb=>{"use strict";Object.defineProperty(Gb,"__esModule",{value:!0});var spe=Ob(),lpe=Vb();function BH(e,t={}){let r=0,i=0,a=0;return lpe.coordEach.call(void 0,e,function(s){r+=s[0],i+=s[1],a++},!0),spe.point.call(void 0,[r/a,i/a],t.properties)}var upe=BH;Gb.centroid=BH;Gb.default=upe});var VH=me(Zb=>{"use strict";Object.defineProperty(Zb,"__esModule",{value:!0});var fpe=Vb();function UH(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return fpe.coordEach.call(void 0,e,i=>{r[0]>i[0]&&(r[0]=i[0]),r[1]>i[1]&&(r[1]=i[1]),r[2]{"use strict";var hpe=ja(),ZH=AH(),{area:vpe}=NH(),{centroid:dpe}=OH(),{bbox:ppe}=VH(),HH=y_(),bm=Th(),mpe=cc(),ype=wy(),Yb=lx(),GH=Object.keys(ZH),gpe={"ISO-3":HH,"USA-states":HH,"country names":_pe};function _pe(e){for(var t=0;t0&&m[_+1][0]<0)return _;return null}switch(i==="RUS"||i==="FJI"?s=function(m){var _;if(v(m)===null)_=m;else for(_=new Array(m.length),h=0;h_?T[S++]=[m[h][0]+360,m[h][1]]:h===_?(T[S++]=m[h],T[S++]=[m[h][0],-90]):T[S++]=m[h];var C=Yb.tester(T);C.pts.pop(),a.push(C)}:s=function(m){a.push(Yb.tester(m))},t.type){case"MultiPolygon":for(l=0;l0?C.properties.ct=Tpe(C):C.properties.ct=[NaN,NaN],T.fIn=m,T.fOut=C,a.push(C)}else bm.log(["Location",T.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete i[_]}switch(r.type){case"FeatureCollection":var h=r.features;for(s=0;sa&&(a=f,r=l)}else r=t;return dpe(r).geometry.coordinates}function Ape(e){var t=window.PlotlyGeoAssets||{},r=[];function i(h){return new Promise(function(v,m){hpe.json(h,function(_,T){if(_){delete t[h];var S=_.status===404?'GeoJSON at URL "'+h+'" does not exist.':"Unexpected error while fetching from "+h;return m(new Error(S))}return t[h]=T,v(T)})})}function a(h){return new Promise(function(v,m){var _=0,T=setInterval(function(){if(t[h]&&t[h]!=="pending")return clearInterval(T),v(t[h]);if(_>100)return clearInterval(T),m("Unexpected error while fetching from "+h);_++},50)})}for(var s=0;s{"use strict";var Gd=Bt(),Spe=co().sanitizeHTML,kpe=uA(),XH=zc();function jH(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=XH.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var fu=jH.prototype;fu.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=Wb(t)};fu.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};fu.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};fu.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};fu.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};fu.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapboxLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};fu.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!Wb(e)){var r=Cpe(e);t.addSource(this.idSource,r)}};fu.findFollowingMapboxLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function JH(e){var t={},r={};switch(e.type){case"circle":Gd.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":Gd.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":Gd.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var i=e.symbol,a=kpe(i.textposition,i.iconsize);Gd.extendFlat(t,{"icon-image":i.icon+"-15","icon-size":i.iconsize/10,"text-field":i.text,"text-size":i.textfont.size,"text-anchor":a.anchor,"text-offset":a.offset,"symbol-placement":i.placement}),Gd.extendFlat(r,{"icon-color":e.color,"text-color":i.textfont.color,"text-opacity":e.opacity});break;case"raster":Gd.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function Cpe(e){var t=e.sourcetype,r=e.source,i={type:t},a;return t==="geojson"?a="data":t==="vector"?a=typeof r=="string"?"url":"tiles":t==="raster"?(a="tiles",i.tileSize=256):t==="image"&&(a="url",i.coordinates=e.coordinates),i[a]=r,e.sourceattribution&&(i.attribution=Spe(e.sourceattribution)),i}KH.exports=function(t,r,i){var a=new jH(t,r);return a.update(i),a}});var sG=me((Ebe,oG)=>{"use strict";var MA=pA(),SA=Bt(),rG=AA(),$H=la(),Epe=Xi(),Lpe=jl(),Xb=Rf(),aG=kd(),Dpe=aG.drawMode,Ppe=aG.selectMode,zpe=Nf().prepSelect,Ipe=Nf().clearOutline,Rpe=Nf().clearSelectionsCache,Fpe=Nf().selectOnClick,rv=zc(),qpe=QH();function iG(e,t){this.id=t,this.gd=e;var r=e._fullLayout,i=e._context;this.container=r._glcontainer.node(),this.isStatic=i.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Vn=iG.prototype;Vn.plot=function(e,t,r){var i=this,a=t[i.id];i.map&&a.accesstoken!==i.accessToken&&(i.map.remove(),i.map=null,i.styleObj=null,i.traceHash={},i.layerList=[]);var s;i.map?s=new Promise(function(l,f){i.updateMap(e,t,l,f)}):s=new Promise(function(l,f){i.createMap(e,t,l,f)}),r.push(s)};Vn.createMap=function(e,t,r,i){var a=this,s=t[a.id],l=a.styleObj=nG(s.style,t);a.accessToken=s.accesstoken;var f=s.bounds,h=f?[[f.west,f.south],[f.east,f.north]]:null,v=a.map=new MA.Map({container:a.div,style:l.style,center:kA(s.center),zoom:s.zoom,bearing:s.bearing,pitch:s.pitch,maxBounds:h,interactive:!a.isStatic,preserveDrawingBuffer:a.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new MA.AttributionControl({compact:!0}));v._canvas.style.left="0px",v._canvas.style.top="0px",a.rejectOnError(i),a.isStatic||a.initFx(e,t);var m=[];m.push(new Promise(function(_){v.once("load",_)})),m=m.concat(rG.fetchTraceGeoData(e)),Promise.all(m).then(function(){a.fillBelowLookup(e,t),a.updateData(e),a.updateLayout(t),a.resolveOnRender(r)}).catch(i)};Vn.updateMap=function(e,t,r,i){var a=this,s=a.map,l=t[this.id];a.rejectOnError(i);var f=[],h=nG(l.style,t);JSON.stringify(a.styleObj)!==JSON.stringify(h)&&(a.styleObj=h,s.setStyle(h.style),a.traceHash={},f.push(new Promise(function(v){s.once("styledata",v)}))),f=f.concat(rG.fetchTraceGeoData(e)),Promise.all(f).then(function(){a.fillBelowLookup(e,t),a.updateData(e),a.updateLayout(t),a.resolveOnRender(r)}).catch(i)};Vn.fillBelowLookup=function(e,t){var r=t[this.id],i=r.layers,a,s,l=this.belowLookup={},f=!1;for(a=0;a1)for(a=0;a-1&&Fpe(h.originalEvent,i,[r.xaxis],[r.yaxis],r.id,f),v.indexOf("event")>-1&&Xb.click(i,h.originalEvent)}}};Vn.updateFx=function(e){var t=this,r=t.map,i=t.gd;if(t.isStatic)return;function a(h){var v=t.map.unproject(h);return[v.lng,v.lat]}var s=e.dragmode,l;l=function(h,v){if(v.isRect){var m=h.range={};m[t.id]=[a([v.xmin,v.ymin]),a([v.xmax,v.ymax])]}else{var _=h.lassoPoints={};_[t.id]=v.map(a)}};var f=t.dragOptions;t.dragOptions=SA.extendDeep(f||{},{dragmode:e.dragmode,element:t.div,gd:i,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:l},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),Ppe(s)||Dpe(s)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(h,v,m){zpe(h,v,m,t.dragOptions,s)},Lpe.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Vn.updateFramework=function(e){var t=e[this.id].domain,r=e._size,i=this.div.style;i.width=r.w*(t.x[1]-t.x[0])+"px",i.height=r.h*(t.y[1]-t.y[0])+"px",i.left=r.l+t.x[0]*r.w+"px",i.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Vn.updateLayers=function(e){var t=e[this.id],r=t.layers,i=this.layerList,a;if(r.length!==i.length){for(a=0;a{"use strict";var Npe=Bt(),Bpe=Ri(),Ope=Mb().defaults;lG.exports=function(t,r,i,a){var s=a.type,l=a.attributes,f=a.handleDefaults,h=a.partition||"x",v=r._subplots[s],m=v.length,_=m&&v[0].replace(/\d+$/,""),T,S;function C(B,q){return Npe.coerce(T,S,l,B,q)}for(var D=0;D{"use strict";var CA=Bt(),Upe=uG(),Vpe=Wl(),fG=o1();cG.exports=function(t,r,i){Upe(t,r,i,{type:"mapbox",attributes:fG,handleDefaults:Hpe,partition:"y",accessToken:r._mapboxAccessToken})};function Hpe(e,t,r,i){r("accesstoken",i.accessToken),r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var a=r("bounds.west"),s=r("bounds.east"),l=r("bounds.south"),f=r("bounds.north");(a===void 0||s===void 0||l===void 0||f===void 0)&&delete t.bounds,Vpe(e,t,{name:"layers",handleItemDefaults:Gpe}),t._input=e}function Gpe(e,t){function r(h,v){return CA.coerce(e,t,fG.layers,h,v)}var i=r("visible");if(i){var a=r("sourcetype"),s=a==="raster"||a==="image";r("source"),r("sourceattribution"),a==="vector"&&r("sourcelayer"),a==="image"&&r("coordinates");var l;s&&(l="raster");var f=r("type",l);s&&f!=="raster"&&(f=t.type="raster",CA.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),f==="circle"&&r("circle.radius"),f==="line"&&(r("line.width"),r("line.dash")),f==="fill"&&r("fill.outlinecolor"),f==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),CA.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var jb=me(Ys=>{"use strict";var vG=pA(),Ju=Bt(),EA=Ju.strTranslate,Zpe=Ju.strScale,Ype=F_().getSubplotCalcData,Wpe=zh(),Xpe=ja(),dG=bi(),jpe=co(),Jpe=sG(),av="mapbox",Hf=Ys.constants=zc();Ys.name=av;Ys.attr="subplot";Ys.idRoot=av;Ys.idRegex=Ys.attrRegex=Ju.counterRegex(av);var Kpe=["mapbox subplots and traces are deprecated!","Please consider switching to `map` subplots and traces.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");Ys.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}};Ys.layoutAttributes=o1();Ys.supplyLayoutDefaults=hG();var pG=!0;Ys.plot=function(t){pG&&(pG=!1,Ju.warn(Kpe));var r=t._fullLayout,i=t.calcdata,a=r._subplots[av];if(vG.version!==Hf.requiredVersion)throw new Error(Hf.wrongVersionErrorMsg);var s=Qpe(t,a);vG.accessToken=s;for(var l=0;lI/2){var B=S.split("|").join("
");D.text(B).attr("data-unformatted",B).call(jpe.convertToTspans,e),E=dG.bBox(D.node())}D.attr("transform",EA(-3,-E.height+8)),C.insert("rect",".static-attribution").attr({x:-E.width-6,y:-E.height-3,width:E.width+6,height:E.height+3,fill:"rgba(255, 255, 255, 0.75)"});var q=1;E.width+6>I&&(q=I/(E.width+6));var z=[i.l+i.w*l.x[1],i.t+i.h*(1-l.y[0])];C.attr("transform",EA(z[0],z[1])+Zpe(q))}};function Qpe(e,t){var r=e._fullLayout,i=e._context;if(i.mapboxAccessToken==="")return"";for(var a=[],s=[],l=!1,f=!1,h=0;h1&&Ju.warn(Hf.multipleTokensErrorMsg),a[0]):(s.length&&Ju.log(["Listed mapbox access token(s)",s.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function mG(e){return typeof e=="string"&&(Hf.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}Ys.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[av],i=0;i{"use strict";var zbe=["*scattermapbox* trace is deprecated!","Please consider switching to the *scattermap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");yG.exports={attributes:Db(),supplyDefaults:KV(),colorbar:J6(),formatLabels:sA(),calc:iH(),plot:mH(),hoverPoints:qb().hoverPoints,eventData:xH(),selectPoints:wH(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:jb(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var xG=me((Rbe,_G)=>{"use strict";_G.exports=gG()});var LA=me((Fbe,TG)=>{"use strict";var $pe=nl().hovertemplateAttrs,nv=aA(),e0e=xc(),bG=ms(),t0e=Af().defaultLine,iv=mn().extendFlat,wG=nv.marker.line;TG.exports=iv({locations:{valType:"data_array",editType:"calc"},locationmode:nv.locationmode,z:{valType:"data_array",editType:"calc"},geojson:iv({},nv.geojson,{}),featureidkey:nv.featureidkey,text:iv({},nv.text,{}),hovertext:iv({},nv.hovertext,{}),marker:{line:{color:iv({},wG.color,{dflt:t0e}),width:iv({},wG.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:nv.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:nv.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:iv({},bG.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:$pe(),showlegend:iv({},bG.showlegend,{dflt:!1})},e0e("",{cLetter:"z",editTypeOverride:"calc"}))});var DA=me((qbe,AG)=>{"use strict";var Ic=LA(),r0e=xc(),a0e=nl().hovertemplateAttrs,i0e=ms(),ov=mn().extendFlat;AG.exports=ov({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:ov({},Ic.featureidkey,{}),below:{valType:"string",editType:"plot"},text:Ic.text,hovertext:Ic.hovertext,marker:{line:{color:ov({},Ic.marker.line.color,{editType:"plot"}),width:ov({},Ic.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:ov({},Ic.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:ov({},Ic.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:ov({},Ic.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:Ic.hoverinfo,hovertemplate:a0e({},{keys:["properties"]}),showlegend:ov({},i0e.showlegend,{dflt:!1})},r0e("",{cLetter:"z",editTypeOverride:"calc"}))});var SG=me((Nbe,MG)=>{"use strict";var h1=Bt(),n0e=hd(),o0e=DA();MG.exports=function(t,r,i,a){function s(m,_){return h1.coerce(t,r,o0e,m,_)}var l=s("locations"),f=s("z"),h=s("geojson");if(!h1.isArrayOrTypedArray(l)||!l.length||!h1.isArrayOrTypedArray(f)||!f.length||!(typeof h=="string"&&h!==""||h1.isPlainObject(h))){r.visible=!1;return}s("featureidkey"),r._length=Math.min(l.length,f.length),s("below"),s("text"),s("hovertext"),s("hovertemplate");var v=s("marker.line.width");v&&s("marker.line.color"),s("marker.opacity"),n0e(t,r,a,s,{prefix:"",cLetter:"z"}),h1.coerceSelectionMarkerOpacity(r,s)}});var PA=me((Bbe,kG)=>{"use strict";kG.exports={min:"zmin",max:"zmax"}});var DG=me((Obe,LG)=>{"use strict";var CG=Da(),s0e=Zi().BADNUM,l0e=Yy(),u0e=Ug(),f0e=Gx();function EG(e){return e&&typeof e=="string"}LG.exports=function(t,r){var i=r._length,a=new Array(i),s;r.geojson?s=function(m){return EG(m)||CG(m)}:s=EG;for(var l=0;l{"use strict";var c0e=Da(),Rc=Bt(),h0e=L0(),v0e=bi(),d0e=Pb().makeBlank,PG=AA();function p0e(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,i={layout:{visibility:"none"},paint:{}},a={layout:{visibility:"none"},paint:{}},s=t._opts={fill:i,line:a,geojson:d0e()};if(!r)return s;var l=PG.extractTraceFeature(e);if(!l)return s;var f=h0e.makeColorScaleFuncFromTrace(t),h=t.marker,v=h.line||{},m;Rc.isArrayOrTypedArray(h.opacity)&&(m=function(B){var q=B.mo;return c0e(q)?+Rc.constrain(q,0,1):0});var _;Rc.isArrayOrTypedArray(v.color)&&(_=function(B){return B.mlc});var T;Rc.isArrayOrTypedArray(v.width)&&(T=function(B){return B.mlw});for(var S=0;S{"use strict";var FG=zA().convert,m0e=zA().convertOnSelect,RG=zc().traceLayerPrefix;function qG(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",RG+t+"-fill"],["line",RG+t+"-line"]],this.below=null}var wm=qG.prototype;wm.update=function(e){this._update(FG(e)),e[0].trace._glTrace=this};wm.updateOnSelect=function(e){this._update(m0e(e))};wm._update=function(e){var t=this.subplot,r=this.layerList,i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(e,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};wm.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};NG.exports=function(t,r){var i=r[0].trace,a=new qG(t,i.uid),s=a.sourceId,l=FG(r),f=a.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(s,{type:"geojson",data:l.geojson}),a._addLayers(l,f),r[0].trace._glTrace=a,a}});var UG=me((Hbe,OG)=>{"use strict";var y0e=Xi(),g0e=LA(),_0e=Bt().fillText;OG.exports=function(t,r,i){var a=t.cd,s=a[0].trace,l=t.subplot,f,h,v,m,_=[r,i],T=[r+360,i];for(h=0;h")}}});var HG=me((Gbe,VG)=>{"use strict";VG.exports=function(t,r,i,a,s){t.location=r.location,t.z=r.z;var l=a[s];return l.fIn&&l.fIn.properties&&(t.properties=l.fIn.properties),t.ct=l.ct,t}});var ZG=me((Zbe,GG)=>{"use strict";GG.exports=function(t,r){var i=t.cd,a=t.xaxis,s=t.yaxis,l=[],f,h,v,m,_;if(r===!1)for(f=0;f{"use strict";var Ybe=["*choroplethmapbox* trace is deprecated!","Please consider switching to the *choroplethmap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");YG.exports={attributes:DA(),supplyDefaults:SG(),colorbar:PA(),calc:DG(),plot:BG(),hoverPoints:UG(),eventData:HG(),selectPoints:ZG(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),i=r.length-2;i>=0;i--){var a=r[i].id;if(typeof a=="string"&&a.indexOf("water")===0){for(var s=i+1;s{"use strict";XG.exports=WG()});var RA=me((jbe,KG)=>{"use strict";var b0e=xc(),w0e=nl().hovertemplateAttrs,JG=ms(),Jb=Db(),IA=mn().extendFlat;KG.exports=IA({lon:Jb.lon,lat:Jb.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:Jb.text,hovertext:Jb.hovertext,hoverinfo:IA({},JG.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:w0e(),showlegend:IA({},JG.showlegend,{dflt:!1})},b0e("",{cLetter:"z",editTypeOverride:"calc"}))});var $G=me((Jbe,QG)=>{"use strict";var T0e=Bt(),A0e=hd(),M0e=RA();QG.exports=function(t,r,i,a){function s(v,m){return T0e.coerce(t,r,M0e,v,m)}var l=s("lon")||[],f=s("lat")||[],h=Math.min(l.length,f.length);if(!h){r.visible=!1;return}r._length=h,s("z"),s("radius"),s("below"),s("text"),s("hovertext"),s("hovertemplate"),A0e(t,r,a,s,{prefix:"",cLetter:"z"})}});var rZ=me((Kbe,tZ)=>{"use strict";var FA=Da(),S0e=Bt().isArrayOrTypedArray,qA=Zi().BADNUM,k0e=Yy(),eZ=Bt()._;tZ.exports=function(t,r){for(var i=r._length,a=new Array(i),s=r.z,l=S0e(s)&&s.length,f=0;f{"use strict";var C0e=Da(),NA=Bt(),aZ=Oa(),iZ=L0(),nZ=Zi().BADNUM,E0e=Pb().makeBlank;oZ.exports=function(t){var r=t[0].trace,i=r.visible===!0&&r._length!==0,a={layout:{visibility:"none"},paint:{}},s=r._opts={heatmap:a,geojson:E0e()};if(!i)return s;var l=[],f,h=r.z,v=r.radius,m=NA.isArrayOrTypedArray(h)&&h.length,_=NA.isArrayOrTypedArray(v);for(f=0;f0?+v[f]:0),l.push({type:"Feature",geometry:{type:"Point",coordinates:S},properties:C})}}var E=iZ.extractOpts(r),I=E.reversescale?iZ.flipScale(E.colorscale):E.colorscale,B=I[0][1],q=aZ.opacity(B)<1?B:aZ.addOpacity(B,0),z=["interpolate",["linear"],["heatmap-density"],0,q];for(f=1;f{"use strict";var lZ=sZ(),L0e=zc().traceLayerPrefix;function uZ(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",L0e+t+"-heatmap"]],this.below=null}var Kb=uZ.prototype;Kb.update=function(e){var t=this.subplot,r=this.layerList,i=lZ(e),a=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(i.geojson),a!==this.below&&(this._removeLayers(),this._addLayers(i,a),this.below=a);for(var s=0;s=0;r--)e.removeLayer(t[r][1])};Kb.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};fZ.exports=function(t,r){var i=r[0].trace,a=new uZ(t,i.uid),s=a.sourceId,l=lZ(r),f=a.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(s,{type:"geojson",data:l.geojson}),a._addLayers(l,f),a}});var vZ=me((e3e,hZ)=>{"use strict";var D0e=Xi(),P0e=qb().hoverPoints,z0e=qb().getExtraText;hZ.exports=function(t,r,i){var a=P0e(t,r,i);if(a){var s=a[0],l=s.cd,f=l[0].trace,h=l[s.index];if(delete s.color,"z"in h){var v=s.subplot.mockAxis;s.z=h.z,s.zLabel=D0e.tickText(v,v.c2l(h.z),"hover").text}return s.extraText=z0e(f,h,l[0].t.labels),[s]}}});var pZ=me((t3e,dZ)=>{"use strict";dZ.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var yZ=me((a3e,mZ)=>{"use strict";var r3e=["*densitymapbox* trace is deprecated!","Please consider switching to the *densitymap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");mZ.exports={attributes:RA(),supplyDefaults:$G(),colorbar:PA(),formatLabels:sA(),calc:rZ(),plot:cZ(),hoverPoints:vZ(),eventData:pZ(),getBelow:function(e,t){for(var r=t.getMapLayers(),i=0;i{"use strict";gZ.exports=yZ()});var Uo=me((n3e,bZ)=>{"use strict";var xZ=Object.getOwnPropertySymbols,I0e=Object.prototype.hasOwnProperty,R0e=Object.prototype.propertyIsEnumerable;function F0e(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function q0e(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var i=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(i.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(s){a[s]=s}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(s){return!1}}bZ.exports=q0e()?Object.assign:function(e,t){for(var r,i=F0e(e),a,s=1;s{var $b=Uo();function wZ(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}$b(wZ.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,i,a){return i=(e!=null&&e.year?e.calendar():typeof i=="string"?this.instance(i,a):i)||this.instance(),i.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var i="",a=0;r>0;){var s=r%10;i=(s===0?"":e[s]+t[a])+i,a++,r=Math.floor(r/10)}return i.indexOf(e[1]+t[1])===0&&(i=i.substr(1)),i||e[0]}}});function BA(e,t,r,i){if(this._calendar=e,this._year=t,this._month=r,this._day=i,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(ka.local.invalidDate||ka.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Qb(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}$b(BA.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(ka.local.invalidDate||ka.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(ka.local.differentCalendars||ka.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+Qb(Math.abs(this.year()),4)+"-"+Qb(this.month(),2)+"-"+Qb(this.day(),2)}});function OA(){this.shortYearCutoff="+10"}$b(OA.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new BA(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,ka.local.invalidYear||ka.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ka.local.invalidYear||ka.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+Qb(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ka.local.invalidYear||ka.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,ka.local.invalidMonth||ka.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,ka.local.invalidMonth||ka.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ka.local.invalidYear||ka.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var i=this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate);return i.toJD()-this.newDate(i.year(),this.fromMonthOfYear(i.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(i))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,ka.local.invalidDate||ka.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var i=e.toJD()+t*(r==="w"?this.daysInWeek():1),a=e.calendar().fromJD(i);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var s=e.year()+(r==="y"?t:0),l=e.monthOfYear()+(r==="m"?t:0),a=e.day(),f=function(m){for(;l_-1+m.minMonth;)s++,l-=_,_=m.monthsInYear(s)};r==="y"?(e.month()!==this.fromMonthOfYear(s,l)&&(l=this.newDate(s,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(s)),a=Math.min(a,this.daysInMonth(s,this.fromMonthOfYear(s,l)))):r==="m"&&(f(this),a=Math.min(a,this.daysInMonth(s,this.fromMonthOfYear(s,l))));var h=[s,this.fromMonthOfYear(s,l),a];return this._validateLevel--,h}catch(v){throw this._validateLevel--,v}},_correctAdd:function(e,t,r,i){if(!this.hasYearZero&&(i==="y"||i==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[i],s=r<0?-1:1;t=this._add(e,r*a[0]+s*a[1],a[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,ka.local.invalidDate||ka.regionalOptions[""].invalidDate);var i=r==="y"?t:e.year(),a=r==="m"?t:e.month(),s=r==="d"?t:e.day();return(r==="y"||r==="m")&&(s=Math.min(s,this.daysInMonth(i,a))),e.date(i,a,s)},isValid:function(e,t,r){this._validateLevel++;var i=this.hasYearZero||e!==0;if(i){var a=this.newDate(e,t,this.minDay);i=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),v=a-(h>2.5?4716:4715);return v<=0&&v--,this.newDate(v,h,f)},toJSDate:function(e,t,r){var i=this._validate(e,t,r,ka.local.invalidDate||ka.regionalOptions[""].invalidDate),a=new Date(i.year(),i.month()-1,i.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var ka=TZ.exports=new wZ;ka.cdate=BA;ka.baseCalendar=OA;ka.calendars.gregorian=UA});var AZ=me(()=>{var VA=Uo(),po=Vo();VA(po.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});po.local=po.regionalOptions[""];VA(po.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});VA(po.baseCalendar.prototype,{UNIX_EPOCH:po.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:po.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw po.local.invalidFormat||po.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var i=r.dayNamesShort||this.local.dayNamesShort,a=r.dayNames||this.local.dayNames,s=r.monthNumbers||this.local.monthNumbers,l=r.monthNamesShort||this.local.monthNamesShort,f=r.monthNames||this.local.monthNames,h=r.calculateWeek||this.local.calculateWeek,v=function(z,O){for(var H=1;q+H1},m=function(z,O,H,V){var W=""+O;if(v(z,V))for(;W.length1},B=function(oe,fe){var de=I(oe,fe),Me=[2,3,de?4:2,de?4:2,10,11,20]["oyYJ@!".indexOf(oe)+1],Se=new RegExp("^-?\\d{1,"+Me+"}"),Ae=t.substring(W).match(Se);if(!Ae)throw(po.local.missingNumberAt||po.regionalOptions[""].missingNumberAt).replace(/\{0\}/,W);return W+=Ae[0].length,parseInt(Ae[0],10)},q=this,z=function(){if(typeof f=="function"){I("m");var oe=f.call(q,t.substring(W));return W+=oe.length,oe}return B("m")},O=function(oe,fe,de,Me){for(var Se=I(oe,Me)?de:fe,Ae=0;Ae-1){T=1,S=C;for(var ne=this.daysInMonth(_,T);S>ne;ne=this.daysInMonth(_,T))T++,S-=ne}return m>-1?this.fromJD(m):this.newDate(_,T,S)},determineDate:function(e,t,r,i,a){r&&typeof r!="object"&&(a=i,i=r,r=null),typeof i!="string"&&(a=i,i="");var s=this,l=function(f){try{return s.parseDate(i,f,a)}catch(_){}f=f.toLowerCase();for(var h=(f.match(/^c/)&&r?r.newDate():null)||s.today(),v=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,m=v.exec(f);m;)h.add(parseInt(m[1],10),m[2]||"d"),m=v.exec(f);return h};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:s.today().add(e,"d"):s.newDate(e),e}})});var MZ=me(()=>{var sv=Vo(),N0e=Uo(),HA=sv.instance();function e3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}e3.prototype=new sv.baseCalendar;N0e(e3.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(O0e);return r?r[0]:""}var i=this._validateYear(e),a=e.month(),s=""+this.toChineseMonth(i,a);return t&&s.length<2&&(s="0"+s),this.isIntercalaryMonth(i,a)&&(s+="i"),s},monthNames:function(e){if(typeof e=="string"){var t=e.match(U0e);return t?t[0]:""}var r=this._validateYear(e),i=e.month(),a=this.toChineseMonth(r,i),s=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][a-1];return this.isIntercalaryMonth(r,i)&&(s="\u95F0"+s),s},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(V0e);return t?t[0]:""}var r=this._validateYear(e),i=e.month(),a=this.toChineseMonth(r,i),s=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][a-1];return this.isIntercalaryMonth(r,i)&&(s="\u95F0"+s),s},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),i;if(isNaN(r))t[0]==="\u95F0"&&(i=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var a=t[t.length-1];i=a==="i"||a==="I"}var s=this.toMonthIndex(e,r,i);return s},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var i=this.intercalaryMonth(e),a=r&&t!==i;if(a||t<1||t>12)throw sv.local.invalidMonth.replace(/\{0\}/,this.local.name);var s;return i?!r&&t<=i?s=t-1:s=t:s=t-1,s},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),i=r?12:11;if(t<0||t>i)throw sv.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var i=this._validateYear(e,sv.local.invalidyear),a=uv[i-uv[0]],s=a>>9&4095,l=a>>5&15,f=a&31,h;h=HA.newDate(s,l,f),h.add(4-(h.dayOfWeek()||7),"d");var v=this.toJD(e,t,r)-h.toJD();return 1+Math.floor(v/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=lv[e-lv[0]],i=r>>13,a=i?12:11;if(t>a)throw sv.local.invalidMonth.replace(/\{0\}/,this.local.name);var s=r&1<<12-t?30:29;return s},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,s,r,sv.local.invalidDate);e=this._validateYear(i.year()),t=i.month(),r=i.day();var a=this.isIntercalaryMonth(e,t),s=this.toChineseMonth(e,t),l=G0e(e,s,r,a);return HA.toJD(l.year,l.month,l.day)},fromJD:function(e){var t=HA.fromJD(e),r=H0e(t.year(),t.month(),t.day()),i=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,i,r.day)},fromString:function(e){var t=e.match(B0e),r=this._validateYear(+t[1]),i=+t[2],a=!!t[3],s=this.toMonthIndex(r,i,a),l=+t[4];return this.newDate(r,s,l)},add:function(e,t,r){var i=e.year(),a=e.month(),s=this.isIntercalaryMonth(i,a),l=this.toChineseMonth(i,a),f=Object.getPrototypeOf(e3.prototype).add.call(this,e,t,r);if(r==="y"){var h=f.year(),v=f.month(),m=this.isIntercalaryMonth(h,l),_=s&&m?this.toMonthIndex(h,l,!0):this.toMonthIndex(h,l,!1);_!==v&&f.month(_)}return f}});var B0e=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,O0e=/^\d?\d[iI]?/m,U0e=/^闰?十?[一二三四五六七八九]?月/m,V0e=/^闰?十?[一二三四五六七八九]?/m;sv.calendars.chinese=e3;var lv=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],uv=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function H0e(e,t,r,i){var a,s;if(typeof e=="object")a=e,s=t||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var f=typeof t=="number"&&t>=1&&t<=12;if(!f)throw new Error("Solar month outside range 1 - 12");var h=typeof r=="number"&&r>=1&&r<=31;if(!h)throw new Error("Solar day outside range 1 - 31");a={year:e,month:t,day:r},s=i||{}}var v=uv[a.year-uv[0]],m=a.year<<9|a.month<<5|a.day;s.year=m>=v?a.year:a.year-1,v=uv[s.year-uv[0]];var _=v>>9&4095,T=v>>5&15,S=v&31,C,D=new Date(_,T-1,S),E=new Date(a.year,a.month-1,a.day);C=Math.round((E-D)/(24*3600*1e3));var I=lv[s.year-lv[0]],B;for(B=0;B<13;B++){var q=I&1<<12-B?30:29;if(C>13;return!z||B=1888&&e<=2111;if(!f)throw new Error("Lunar year outside range 1888-2111");var h=typeof t=="number"&&t>=1&&t<=12;if(!h)throw new Error("Lunar month outside range 1 - 12");var v=typeof r=="number"&&r>=1&&r<=30;if(!v)throw new Error("Lunar day outside range 1 - 30");var m;typeof i=="object"?(m=!1,s=i):(m=!!i,s=a||{}),l={year:e,month:t,day:r,isIntercalary:m}}var _;_=l.day-1;var T=lv[l.year-lv[0]],S=T>>13,C;S&&(l.month>S||l.isIntercalary)?C=l.month:C=l.month-1;for(var D=0;D>9&4095,q=I>>5&15,z=I&31,O=new Date(B,q-1,z+_);return s.year=O.getFullYear(),s.month=1+O.getMonth(),s.day=O.getDate(),s}});var SZ=me(()=>{var Zd=Vo(),Z0e=Uo();function GA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}GA.prototype=new Zd.baseCalendar;Z0e(GA.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Zd.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Zd.local.invalidYear||Zd.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Zd.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,Zd.local.invalidDate);return e=i.year(),e<0&&e++,i.day()+(i.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var i=Math.floor(t/30)+1,a=t-(i-1)*30+1;return this.newDate(r,i,a)}});Zd.calendars.coptic=GA});var kZ=me(()=>{var Fc=Vo(),Y0e=Uo();function ZA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}ZA.prototype=new Fc.baseCalendar;Y0e(ZA.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fc.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fc.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fc.local.invalidYear),400},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Fc.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,Fc.local.invalidDate);return(i.day()+1)%8},weekDay:function(e,t,r){var i=this.dayOfWeek(e,t,r);return i>=2&&i<=6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,Fc.local.invalidDate);return{century:W0e[Math.floor((i.year()-1)/100)+1]||""}},toJD:function(e,t,r){var i=this._validate(e,t,r,Fc.local.invalidDate);return e=i.year()+(i.year()<0?1:0),t=i.month(),r=i.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,i=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,i)}});var W0e={20:"Fruitbat",21:"Anchovy"};Fc.calendars.discworld=ZA});var CZ=me(()=>{var Yd=Vo(),X0e=Uo();function YA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}YA.prototype=new Yd.baseCalendar;X0e(YA.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Yd.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Yd.local.invalidYear||Yd.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Yd.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,Yd.local.invalidDate);return e=i.year(),e<0&&e++,i.day()+(i.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var i=Math.floor(t/30)+1,a=t-(i-1)*30+1;return this.newDate(r,i,a)}});Yd.calendars.ethiopian=YA});var EZ=me(()=>{var fv=Vo(),j0e=Uo();function WA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}WA.prototype=new fv.baseCalendar;j0e(WA.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,fv.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,t3(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,fv.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,fv.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,fv.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&t3(this.daysInYear(e),10)===5?30:t===9&&t3(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,fv.local.invalidDate);return{yearType:(this.leapYear(i)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(i)%10-3]}},toJD:function(e,t,r){var i=this._validate(e,t,r,fv.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=e<=0?e+1:e,s=this.jdEpoch+this._delay1(a)+this._delay2(a)+r+1;if(t<7){for(var l=7;l<=this.monthsInYear(e);l++)s+=this.daysInMonth(e,l);for(var l=1;l=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var i=e-this.toJD(t,r,1)+1;return this.newDate(t,r,i)}});function t3(e,t){return e-t*Math.floor(e/t)}fv.calendars.hebrew=WA});var LZ=me(()=>{var v1=Vo(),J0e=Uo();function XA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}XA.prototype=new v1.baseCalendar;J0e(XA.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,v1.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,v1.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,v1.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),i=e-this.toJD(t,r,1)+1;return this.newDate(t,r,i)}});v1.calendars.islamic=XA});var DZ=me(()=>{var d1=Vo(),K0e=Uo();function jA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}jA.prototype=new d1.baseCalendar;K0e(jA.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,d1.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(4-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,d1.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,d1.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,i=Math.floor((r-122.1)/365.25),a=Math.floor(365.25*i),s=Math.floor((r-a)/30.6001),l=s-Math.floor(s<14?1:13),f=i-Math.floor(l>2?4716:4715),h=r-a-Math.floor(30.6001*s);return f<=0&&f--,this.newDate(f,l,h)}});d1.calendars.julian=jA});var zZ=me(()=>{var cu=Vo(),Q0e=Uo();function KA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}KA.prototype=new cu.baseCalendar;Q0e(KA.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,cu.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,cu.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var i=Math.floor(e/20);return r+"."+i+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&i<0)throw"Invalid Mayan year";t=t*20+i}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cu.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,cu.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cu.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,cu.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,cu.local.invalidDate);return i.day()},weekDay:function(e,t,r){return this._validate(e,t,r,cu.local.invalidDate),!0},extraInfo:function(e,t,r){var i=this._validate(e,t,r,cu.local.invalidDate),a=i.toJD(),s=this._toHaab(a),l=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[s[0]-1],haabMonth:s[0],haabDay:s[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=JA(e+8+17*20,365);return[Math.floor(t/20)+1,JA(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[PZ(e+20,20),PZ(e+4,13)]},toJD:function(e,t,r){var i=this._validate(e,t,r,cu.local.invalidDate);return i.day()+i.month()*20+i.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),i=e%20;return this.newDate(t,r,i)}});function JA(e,t){return e-t*Math.floor(e/t)}function PZ(e,t){return JA(e-1,t)+1}cu.calendars.mayan=KA});var RZ=me(()=>{var Wd=Vo(),$0e=Uo();function QA(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}QA.prototype=new Wd.baseCalendar;var IZ=Wd.instance("gregorian");$0e(QA.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Wd.local.invalidYear||Wd.regionalOptions[""].invalidYear);return IZ.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(1-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Wd.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(a,t,r){var i=this._validate(a,t,r,Wd.local.invalidMonth),a=i.year();a<0&&a++;for(var s=i.day(),l=1;l=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,i=1;r>this.daysInMonth(t,i);)r-=this.daysInMonth(t,i),i++;return this.newDate(t,i,r)}});Wd.calendars.nanakshahi=QA});var FZ=me(()=>{var Xd=Vo(),eme=Uo();function $A(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}$A.prototype=new Xd.baseCalendar;eme($A.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Xd.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,i=this.minMonth;i<=12;i++)r+=this.NEPALI_CALENDAR_DATA[e][i];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,Xd.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var i=this._validate(e,t,r,Xd.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=Xd.instance(),s=0,l=t,f=e;this._createMissingCalendarData(e);var h=e-(l>9||l===9&&r>=this.NEPALI_CALENDAR_DATA[f][0]?56:57);for(t!==9&&(s=r,l--);l!==9;)l<=0&&(l=12,f--),s+=this.NEPALI_CALENDAR_DATA[f][l],l--;return t===9?(s+=r-this.NEPALI_CALENDAR_DATA[f][0],s<0&&(s+=a.daysInYear(h))):s+=this.NEPALI_CALENDAR_DATA[f][9]-this.NEPALI_CALENDAR_DATA[f][0],a.newDate(h,1,1).add(s,"d").toJD()},fromJD:function(e){var t=Xd.instance(),r=t.fromJD(e),i=r.year(),a=r.dayOfYear(),s=i+56;this._createMissingCalendarData(s);for(var l=9,f=this.NEPALI_CALENDAR_DATA[s][0],h=this.NEPALI_CALENDAR_DATA[s][l]-f+1;a>h;)l++,l>12&&(l=1,s++),h+=this.NEPALI_CALENDAR_DATA[s][l];var v=this.NEPALI_CALENDAR_DATA[s][l]-(h-a);return this.newDate(s,l,v)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var Tm=Vo(),tme=Uo();function a3(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function r3(e){var t=e-475;e<0&&t++;var r=.242197,i=r*t,a=r*(t+1),s=i-Math.floor(i),l=a-Math.floor(a);return s>l}a3.prototype=new Tm.baseCalendar;tme(a3.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Tm.local.invalidYear);return r3(t.year())},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-((i.dayOfWeek()+1)%7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Tm.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,Tm.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=0;if(e>0)for(var s=1;s0?e-1:e)*365+a+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=475+(e-this.toJD(475,1,1))/365.242197,r=Math.floor(t);r<=0&&r--,e>this.toJD(r,12,r3(r)?30:29)&&(r++,r===0&&r++);var i=e-this.toJD(r,1,1)+1,a=i<=186?Math.ceil(i/31):Math.ceil((i-6)/30),s=e-this.toJD(r,a,1)+1;return this.newDate(r,a,s)}});Tm.calendars.persian=a3;Tm.calendars.jalali=a3});var NZ=me(()=>{var jd=Vo(),rme=Uo(),i3=jd.instance();function eM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}eM.prototype=new jd.baseCalendar;rme(eM.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,jd.local.invalidYear),r=this._t2gYear(t.year());return i3.leapYear(r)},weekOfYear:function(a,t,r){var i=this._validate(a,this.minMonth,this.minDay,jd.local.invalidYear),a=this._t2gYear(i.year());return i3.weekOfYear(a,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,jd.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(a,t,r){var i=this._validate(a,t,r,jd.local.invalidDate),a=this._t2gYear(i.year());return i3.toJD(a,i.month(),i.day())},fromJD:function(e){var t=i3.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});jd.calendars.taiwan=eM});var BZ=me(()=>{var Jd=Vo(),ame=Uo(),n3=Jd.instance();function tM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}tM.prototype=new Jd.baseCalendar;ame(tM.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Jd.local.invalidYear),r=this._t2gYear(t.year());return n3.leapYear(r)},weekOfYear:function(a,t,r){var i=this._validate(a,this.minMonth,this.minDay,Jd.local.invalidYear),a=this._t2gYear(i.year());return n3.weekOfYear(a,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Jd.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(a,t,r){var i=this._validate(a,t,r,Jd.local.invalidDate),a=this._t2gYear(i.year());return n3.toJD(a,i.month(),i.day())},fromJD:function(e){var t=n3.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Jd.calendars.thai=tM});var OZ=me(()=>{var Kd=Vo(),ime=Uo();function rM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}rM.prototype=new Kd.baseCalendar;ime(rM.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Kd.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,Kd.local.invalidMonth),i=r.toJD()-24e5+.5,a=0,s=0;si)return cv[a]-cv[a-1];a++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,Kd.local.invalidDate),a=12*(i.year()-1)+i.month()-15292,s=i.day()+cv[a-1]-1;return s+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,i=0;it);i++)r++;var a=r+15292,s=Math.floor((a-1)/12),l=s+1,f=a-12*s,h=t-cv[r-1]+1;return this.newDate(l,f,h)},isValid:function(e,t,r){var i=Kd.baseCalendar.prototype.isValid.apply(this,arguments);return i&&(e=e.year!=null?e.year:e,i=e>=1276&&e<=1500),i},_validate:function(e,t,r,i){var a=Kd.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw i.replace(/\{0\}/,this.local.name);return a}});Kd.calendars.ummalqura=rM;var cv=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var VZ=me((q3e,UZ)=>{"use strict";UZ.exports=Vo();AZ();MZ();SZ();kZ();CZ();EZ();LZ();DZ();zZ();RZ();FZ();qZ();NZ();BZ();OZ()});var jZ=me((N3e,XZ)=>{"use strict";var GZ=VZ(),p1=Bt(),ZZ=Zi(),nme=ZZ.EPOCHJD,ome=ZZ.ONEDAY,nM={valType:"enumerated",values:p1.sortObjectKeys(GZ.calendars),editType:"calc",dflt:"gregorian"},YZ=function(e,t,r,i){var a={};return a[r]=nM,p1.coerce(e,t,a,r,i)},sme=function(e,t,r,i){for(var a=0;a{"use strict";JZ.exports=jZ()});var vme=me((O3e,$Z)=>{var QZ=LV();QZ.register([xG(),jG(),_Z(),KZ()]);$Z.exports=QZ});return vme();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-strict.js b/dist/plotly-strict.js index c03a00aca17..bdec7edf3ab 100644 --- a/dist/plotly-strict.js +++ b/dist/plotly-strict.js @@ -1,5 +1,5 @@ /** -* plotly.js (strict) v3.1.0-rc.0 +* plotly.js (strict) v3.1.0-rc.1 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -69,7 +69,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.1.0-rc.0"; + exports.version = "3.1.0-rc.1"; } }); @@ -10362,6 +10362,11 @@ var Plotly = (() => { dflt: 15, editType: "none" }, + showarrow: { + valType: "boolean", + dflt: true, + editType: "none" + }, editType: "none" }, selectdirection: { @@ -10395,6 +10400,7 @@ var Plotly = (() => { }), align: extendFlat({}, hoverLabelAttrs.align, { arrayOk: true }), namelength: extendFlat({}, hoverLabelAttrs.namelength, { arrayOk: true }), + showarrow: extendFlat({}, hoverLabelAttrs.showarrow), editType: "none" } }; @@ -13180,6 +13186,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 || []; @@ -15623,6 +15643,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); @@ -16032,9 +16054,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;", @@ -16475,6 +16500,10 @@ var Plotly = (() => { ev.emit(event, data); internalEv.emit(event, data); }; + if (typeof plotObj.addEventListener === "function") { + plotObj.addEventListener("wheel", () => { + }); + } return plotObj; }, /* @@ -20965,6 +20994,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(); @@ -21160,6 +21190,13 @@ var Plotly = (() => { dflt: false, editType: "calc" }, + modebardisable: { + valType: "flaglist", + flags: ["autoscale", "zoominout"], + extras: ["none"], + dflt: "none", + editType: "modebar" + }, insiderange: { valType: "info_array", items: [ @@ -21483,6 +21520,14 @@ var Plotly = (() => { editType: "none", description: descriptionWithDates("hover text") }, + unifiedhovertitle: { + text: { + valType: "string", + dflt: "", + editType: "none" + }, + editType: "none" + }, // lines and grids showline: { valType: "boolean", @@ -21587,6 +21632,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"], @@ -22220,6 +22271,9 @@ var Plotly = (() => { coerce("separatethousands"); } } + if (!options.noMinorloglabels && axType === "log") { + coerce("minorloglabels"); + } } }; function tickformatstopDefaults(valueIn, valueOut) { @@ -25020,7 +25074,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; @@ -27762,17 +27816,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") { @@ -27780,7 +27842,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") { @@ -28520,11 +28585,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); @@ -28926,7 +28993,7 @@ var Plotly = (() => { transform, "text-anchor": anchor }); - thisText.style("opacity", 1); + thisText.style("display", null); if (ax._adjustTickLabelsOverflow) { ax._adjustTickLabelsOverflow(); } @@ -28969,9 +29036,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 { @@ -29031,7 +29098,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); } }); @@ -33003,10 +33070,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 ? t02 : 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: t02, font }, + title: { text: mainText, font }, font, bgcolor: hoverlabel.bgcolor, bordercolor: hoverlabel.bordercolor, @@ -33538,13 +33613,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"; @@ -33912,6 +33990,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); }; @@ -34034,6 +34113,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) { @@ -34704,6 +34784,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; @@ -34770,10 +34851,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); @@ -36589,10 +36682,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; @@ -37208,8 +37304,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"; @@ -37275,13 +37372,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) { @@ -37636,7 +37738,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; } } @@ -50889,7 +50992,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]; @@ -51400,6 +51508,7 @@ var Plotly = (() => { grid: layoutOut.grid }); coerce("fixedrange"); + coerce("modebardisable"); addMissingMatchedAxis(); axLayoutOut._input = axLayoutIn; } @@ -51420,6 +51529,7 @@ var Plotly = (() => { ); } coerce("fixedrange"); + coerce("modebardisable"); } for (i = 0; i < yNames.length; i++) { axName = yNames[i]; @@ -51428,6 +51538,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), @@ -64302,7 +64413,7 @@ var Plotly = (() => { return _supportsPixelated; } _supportsPixelated = false; - var unsupportedBrowser = Lib.isSafari() || Lib.isIOS(); + var unsupportedBrowser = Lib.isSafari() || Lib.isMacWKWebView() || Lib.isIOS(); if (window.navigator.userAgent && !unsupportedBrowser) { var declarations = Array.from(constants.CSS_DECLARATIONS).reverse(); var supports = window.CSS && window.CSS.supports || window.supportsCSS; @@ -126673,6 +126784,7 @@ var Plotly = (() => { data: options.data, showGrid: true, noAutotickangles: true, + noMinorloglabels: true, noTicklabelindex: true, noTickson: true, noTicklabelmode: true, @@ -126682,6 +126794,7 @@ var Plotly = (() => { noTicklabelposition: true, noTicklabeloverflow: true, noInsiderange: true, + noUnifiedhovertitle: true, bgColor: options.bgColor, calendar: options.calendar }, @@ -278827,6 +278940,7 @@ uniform ${i3} ${a3} u_${s3}; ticklabelstep: axesAttrs.ticklabelstep, showticklabels: axesAttrs.showticklabels, labelalias: axesAttrs.labelalias, + minorloglabels: axesAttrs.minorloglabels, showtickprefix: axesAttrs.showtickprefix, tickprefix: axesAttrs.tickprefix, showticksuffix: axesAttrs.showticksuffix, diff --git a/dist/plotly-strict.min.js b/dist/plotly-strict.min.js index 1ddd7d622ab..4730d06e920 100644 --- a/dist/plotly-strict.min.js +++ b/dist/plotly-strict.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (strict - minified) v3.1.0-rc.0 +* plotly.js (strict - minified) v3.1.0-rc.1 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,38 +12,38 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var Ttt=Object.create;var EM=Object.defineProperty,Stt=Object.defineProperties,Mtt=Object.getOwnPropertyDescriptor,Ett=Object.getOwnPropertyDescriptors,ktt=Object.getOwnPropertyNames,vee=Object.getOwnPropertySymbols,Ctt=Object.getPrototypeOf,yee=Object.prototype.hasOwnProperty,Ltt=Object.prototype.propertyIsEnumerable;var mee=(e,t,r)=>t in e?EM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gee=(e,t)=>{for(var r in t||(t={}))yee.call(t,r)&&mee(e,r,t[r]);if(vee)for(var r of vee(t))Ltt.call(t,r)&&mee(e,r,t[r]);return e},_ee=(e,t)=>Stt(e,Ett(t));var Xf=(e,t)=>()=>(e&&(t=e(e=0)),t);var Te=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),xee=(e,t)=>{for(var r in t)EM(e,r,{get:t[r],enumerable:!0})},bee=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ktt(t))!yee.call(e,i)&&i!==r&&EM(e,i,{get:()=>t[i],enumerable:!(n=Mtt(t,i))||n.enumerable});return e};var Ptt=(e,t,r)=>(r=e!=null?Ttt(Ctt(e)):{},bee(t||!e||!e.__esModule?EM(r,"default",{value:e,enumerable:!0}):r,e)),q1=e=>bee(EM({},"__esModule",{value:!0}),e);var rL=Te(wee=>{"use strict";wee.version="3.1.0-rc.0"});var Tee=Te((Aee,iL)=>{(function(t,r,n){r[t]=r[t]||n(),typeof iL!="undefined"&&iL.exports&&(iL.exports=r[t])})("Promise",typeof window!="undefined"?window:Aee,function(){"use strict";var t,r,n,i=Object.prototype.toString,a=typeof setImmediate!="undefined"?function(k){return setImmediate(k)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(k,E,T,L){return Object.defineProperty(k,E,{value:T,writable:!0,configurable:L!==!1})}}catch(v){t=function(E,T,L){return E[T]=L,E}}n=function(){var k,E,T;function L(_,C){this.fn=_,this.self=C,this.next=void 0}return{add:function(C,S){T=new L(C,S),E?E.next=T:k=T,E=T,T=void 0},drain:function(){var C=k;for(k=E=r=void 0;C;)C.fn.call(C.self),C=C.next}}}();function o(v,k){n.add(v,k),r||(r=a(n.drain))}function s(v){var k,E=typeof v;return v!=null&&(E=="object"||E=="function")&&(k=v.then),typeof k=="function"?k:!1}function u(){for(var v=0;v0&&o(u,E))}catch(T){c.call(new d(E),T)}}}function c(v){var k=this;k.triggered||(k.triggered=!0,k.def&&(k=k.def),k.msg=v,k.state=2,k.chain.length>0&&o(u,k))}function h(v,k,E,T){for(var L=0;L{(function(){var e={version:"3.8.2"},t=[].slice,r=function(Z){return t.call(Z)},n=self.document;function i(Z){return Z&&(Z.ownerDocument||Z.document||Z).documentElement}function a(Z){return Z&&(Z.ownerDocument&&Z.ownerDocument.defaultView||Z.document&&Z||Z.defaultView)}if(n)try{r(n.documentElement.childNodes)[0].nodeType}catch(Z){r=function(se){for(var ze=se.length,je=new Array(ze);ze--;)je[ze]=se[ze];return je}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(Z){var o=this.Element.prototype,s=o.setAttribute,u=o.setAttributeNS,l=this.CSSStyleDeclaration.prototype,f=l.setProperty;o.setAttribute=function(se,ze){s.call(this,se,ze+"")},o.setAttributeNS=function(se,ze,je){u.call(this,se,ze,je+"")},l.setProperty=function(se,ze,je){f.call(this,se,ze+"",je)}}e.ascending=c;function c(Z,se){return Zse?1:Z>=se?0:NaN}e.descending=function(Z,se){return seZ?1:se>=Z?0:NaN},e.min=function(Z,se){var ze=-1,je=Z.length,$e,st;if(arguments.length===1){for(;++ze=st){$e=st;break}for(;++zest&&($e=st)}else{for(;++ze=st){$e=st;break}for(;++zest&&($e=st)}return $e},e.max=function(Z,se){var ze=-1,je=Z.length,$e,st;if(arguments.length===1){for(;++ze=st){$e=st;break}for(;++ze$e&&($e=st)}else{for(;++ze=st){$e=st;break}for(;++ze$e&&($e=st)}return $e},e.extent=function(Z,se){var ze=-1,je=Z.length,$e,st,jt;if(arguments.length===1){for(;++ze=st){$e=jt=st;break}for(;++zest&&($e=st),jt=st){$e=jt=st;break}for(;++zest&&($e=st),jt1)return jt/(hr-1)},e.deviation=function(){var Z=e.variance.apply(this,arguments);return Z&&Math.sqrt(Z)};function p(Z){return{left:function(se,ze,je,$e){for(arguments.length<3&&(je=0),arguments.length<4&&($e=se.length);je<$e;){var st=je+$e>>>1;Z(se[st],ze)<0?je=st+1:$e=st}return je},right:function(se,ze,je,$e){for(arguments.length<3&&(je=0),arguments.length<4&&($e=se.length);je<$e;){var st=je+$e>>>1;Z(se[st],ze)>0?$e=st:je=st+1}return je}}}var x=p(c);e.bisectLeft=x.left,e.bisect=e.bisectRight=x.right,e.bisector=function(Z){return p(Z.length===1?function(se,ze){return c(Z(se),ze)}:Z)},e.shuffle=function(Z,se,ze){(je=arguments.length)<3&&(ze=Z.length,je<2&&(se=0));for(var je=ze-se,$e,st;je;)st=Math.random()*je--|0,$e=Z[je+se],Z[je+se]=Z[st+se],Z[st+se]=$e;return Z},e.permute=function(Z,se){for(var ze=se.length,je=new Array(ze);ze--;)je[ze]=Z[se[ze]];return je},e.pairs=function(Z){for(var se=0,ze=Z.length-1,je,$e=Z[0],st=new Array(ze<0?0:ze);se=0;)for(jt=Z[se],ze=jt.length;--ze>=0;)st[--$e]=jt[ze];return st};var v=Math.abs;e.range=function(Z,se,ze){if(arguments.length<3&&(ze=1,arguments.length<2&&(se=Z,Z=0)),(se-Z)/ze===1/0)throw new Error("infinite range");var je=[],$e=k(v(ze)),st=-1,jt;if(Z*=$e,se*=$e,ze*=$e,ze<0)for(;(jt=Z+ze*++st)>se;)je.push(jt/$e);else for(;(jt=Z+ze*++st)=se.length)return $e?$e.call(Z,hr):je?hr.sort(je):hr;for(var zr=-1,ui=hr.length,$r=se[Cr++],Oi,fn,pi,zi=new T,Xi;++zr=se.length)return _t;var Cr=[],zr=ze[hr++];return _t.forEach(function(ui,$r){Cr.push({key:ui,values:jt($r,hr)})}),zr?Cr.sort(function(ui,$r){return zr(ui.key,$r.key)}):Cr}return Z.map=function(_t,hr){return st(hr,_t,0)},Z.entries=function(_t){return jt(st(e.map,_t,0),0)},Z.key=function(_t){return se.push(_t),Z},Z.sortKeys=function(_t){return ze[se.length-1]=_t,Z},Z.sortValues=function(_t){return je=_t,Z},Z.rollup=function(_t){return $e=_t,Z},Z},e.set=function(Z){var se=new U;if(Z)for(var ze=0,je=Z.length;ze=0&&(je=Z.slice(ze+1),Z=Z.slice(0,ze)),Z)return arguments.length<2?this[Z].on(je):this[Z].on(je,se);if(arguments.length===2){if(se==null)for(Z in this)this.hasOwnProperty(Z)&&this[Z].on(je,null);return this}};function ae(Z){var se=[],ze=new T;function je(){for(var $e=se,st=-1,jt=$e.length,_t;++st=0&&(ze=Z.slice(0,se))!=="xmlns"&&(Z=Z.slice(se+1)),Ke.hasOwnProperty(ze)?{space:Ke[ze],local:Z}:Z}},Fe.attr=function(Z,se){if(arguments.length<2){if(typeof Z=="string"){var ze=this.node();return Z=e.ns.qualify(Z),Z.local?ze.getAttributeNS(Z.space,Z.local):ze.getAttribute(Z)}for(se in Z)this.each(it(se,Z[se]));return this}return this.each(it(Z,se))};function it(Z,se){Z=e.ns.qualify(Z);function ze(){this.removeAttribute(Z)}function je(){this.removeAttributeNS(Z.space,Z.local)}function $e(){this.setAttribute(Z,se)}function st(){this.setAttributeNS(Z.space,Z.local,se)}function jt(){var hr=se.apply(this,arguments);hr==null?this.removeAttribute(Z):this.setAttribute(Z,hr)}function _t(){var hr=se.apply(this,arguments);hr==null?this.removeAttributeNS(Z.space,Z.local):this.setAttributeNS(Z.space,Z.local,hr)}return se==null?Z.local?je:ze:typeof se=="function"?Z.local?_t:jt:Z.local?st:$e}function bt(Z){return Z.trim().replace(/\s+/g," ")}Fe.classed=function(Z,se){if(arguments.length<2){if(typeof Z=="string"){var ze=this.node(),je=(Z=nt(Z)).length,$e=-1;if(se=ze.classList){for(;++$e=0;)(st=ze[je])&&($e&&$e!==st.nextSibling&&$e.parentNode.insertBefore(st,$e),$e=st);return this},Fe.sort=function(Z){Z=ot.apply(this,arguments);for(var se=-1,ze=this.length;++se=se&&(se=$e+1);!(hr=jt[se])&&++se<_t;);return hr}}e.select=function(Z){var se;return typeof Z=="string"?(se=[Ee(Z,n)],se.parentNode=n.documentElement):(se=[Z],se.parentNode=i(Z)),ke([se])},e.selectAll=function(Z){var se;return typeof Z=="string"?(se=r(Me(Z,n)),se.parentNode=n.documentElement):(se=r(Z),se.parentNode=null),ke([se])},Fe.on=function(Z,se,ze){var je=arguments.length;if(je<3){if(typeof Z!="string"){je<2&&(se=!1);for(ze in Z)this.each(rt(ze,Z[ze],se));return this}if(je<2)return(je=this.node()["__on"+Z])&&je._;ze=!1}return this.each(rt(Z,se,ze))};function rt(Z,se,ze){var je="__on"+Z,$e=Z.indexOf("."),st=zt;$e>0&&(Z=Z.slice(0,$e));var jt=Qe.get(Z);jt&&(Z=jt,st=Yt);function _t(){var zr=this[je];zr&&(this.removeEventListener(Z,zr,zr.$),delete this[je])}function hr(){var zr=st(se,r(arguments));_t.call(this),this.addEventListener(Z,this[je]=zr,zr.$=ze),zr._=se}function Cr(){var zr=new RegExp("^__on([^.]+)"+e.requote(Z)+"$"),ui;for(var $r in this)if(ui=$r.match(zr)){var Oi=this[$r];this.removeEventListener(ui[1],Oi,Oi.$),delete this[$r]}}return $e?se?hr:_t:se?W:Cr}var Qe=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&Qe.forEach(function(Z){"on"+Z in n&&Qe.remove(Z)});function zt(Z,se){return function(ze){var je=e.event;e.event=ze,se[0]=this.__data__;try{Z.apply(this,se)}finally{e.event=je}}}function Yt(Z,se){var ze=zt(Z,se);return function(je){var $e=this,st=je.relatedTarget;(!st||st!==$e&&!(st.compareDocumentPosition($e)&8))&&ze.call($e,je)}}var lr,mr=0;function _r(Z){var se=".dragsuppress-"+ ++mr,ze="click"+se,je=e.select(a(Z)).on("touchmove"+se,be).on("dragstart"+se,be).on("selectstart"+se,be);if(lr==null&&(lr="onselectstart"in Z?!1:H(Z.style,"userSelect")),lr){var $e=i(Z).style,st=$e[lr];$e[lr]="none"}return function(jt){if(je.on(se,null),lr&&($e[lr]=st),jt){var _t=function(){je.on(ze,null)};je.on(ze,function(){be(),_t()},!0),setTimeout(_t,0)}}}e.mouse=function(Z){return Re(Z,Pe())};var Ht=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Re(Z,se){se.changedTouches&&(se=se.changedTouches[0]);var ze=Z.ownerSVGElement||Z;if(ze.createSVGPoint){var je=ze.createSVGPoint();if(Ht<0){var $e=a(Z);if($e.scrollX||$e.scrollY){ze=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var st=ze[0][0].getScreenCTM();Ht=!(st.f||st.e),ze.remove()}}return Ht?(je.x=se.pageX,je.y=se.pageY):(je.x=se.clientX,je.y=se.clientY),je=je.matrixTransform(Z.getScreenCTM().inverse()),[je.x,je.y]}var jt=Z.getBoundingClientRect();return[se.clientX-jt.left-Z.clientLeft,se.clientY-jt.top-Z.clientTop]}e.touch=function(Z,se,ze){if(arguments.length<3&&(ze=se,se=Pe().changedTouches),se){for(var je=0,$e=se.length,st;je<$e;++je)if((st=se[je]).identifier===ze)return Re(Z,st)}},e.behavior.drag=function(){var Z=Ce($e,"drag","dragstart","dragend"),se=null,ze=st(W,e.mouse,a,"mousemove","mouseup"),je=st(xe,e.touch,G,"touchmove","touchend");function $e(){this.on("mousedown.drag",ze).on("touchstart.drag",je)}function st(jt,_t,hr,Cr,zr){return function(){var ui=this,$r=e.event.target.correspondingElement||e.event.target,Oi=ui.parentNode,fn=Z.of(ui,arguments),pi=0,zi=jt(),Xi=".drag"+(zi==null?"":"-"+zi),pn,sn=e.select(hr($r)).on(Cr+Xi,no).on(zr+Xi,Xo),bi=_r($r),xo=_t(Oi,zi);se?(pn=se.apply(ui,arguments),pn=[pn.x-xo[0],pn.y-xo[1]]):pn=[0,0],fn({type:"dragstart"});function no(){var js=_t(Oi,zi),El,Pl;js&&(El=js[0]-xo[0],Pl=js[1]-xo[1],pi|=El|Pl,xo=js,fn({type:"drag",x:js[0]+pn[0],y:js[1]+pn[1],dx:El,dy:Pl}))}function Xo(){_t(Oi,zi)&&(sn.on(Cr+Xi,null).on(zr+Xi,null),bi(pi),fn({type:"dragend"}))}}}return $e.origin=function(jt){return arguments.length?(se=jt,$e):se},e.rebind($e,Z,"on")};function xe(){return e.event.changedTouches[0].identifier}e.touches=function(Z,se){return arguments.length<2&&(se=Pe().touches),se?r(se).map(function(ze){var je=Re(Z,ze);return je.identifier=ze.identifier,je}):[]};var Oe=1e-6,Ie=Oe*Oe,De=Math.PI,ct=2*De,_e=ct-Oe,fe=De/2,pe=De/180,mt=180/De;function It(Z){return Z>0?1:Z<0?-1:0}function Pt(Z,se,ze){return(se[0]-Z[0])*(ze[1]-Z[1])-(se[1]-Z[1])*(ze[0]-Z[0])}function rr(Z){return Z>1?0:Z<-1?De:Math.acos(Z)}function Wr(Z){return Z>1?fe:Z<-1?-fe:Math.asin(Z)}function Nr(Z){return((Z=Math.exp(Z))-1/Z)/2}function Er(Z){return((Z=Math.exp(Z))+1/Z)/2}function Br(Z){return((Z=Math.exp(2*Z))-1)/(Z+1)}function mi(Z){return(Z=Math.sin(Z/2))*Z}var Di=Math.SQRT2,Ii=2,Ci=4;e.interpolateZoom=function(Z,se){var ze=Z[0],je=Z[1],$e=Z[2],st=se[0],jt=se[1],_t=se[2],hr=st-ze,Cr=jt-je,zr=hr*hr+Cr*Cr,ui,$r;if(zr0&&(ds=ds.transition().duration(jt)),ds.call(sn.event)}function El(){zi&&zi.domain(pi.range().map(function(ds){return(ds-Z.x)/Z.k}).map(pi.invert)),pn&&pn.domain(Xi.range().map(function(ds){return(ds-Z.y)/Z.k}).map(Xi.invert))}function Pl(ds){_t++||ds({type:"zoomstart"})}function pu(ds){El(),ds({type:"zoom",scale:Z.k,translate:[Z.x,Z.y]})}function Il(ds){--_t||(ds({type:"zoomend"}),ze=null)}function fu(){var ds=this,Wl=fn.of(ds,arguments),Au=0,Tu=e.select(a(ds)).on(Cr,Ef).on(zr,vf),uf=bi(e.mouse(ds)),df=_r(ds);Us.call(ds),Pl(Wl);function Ef(){Au=1,Xo(e.mouse(ds),uf),pu(Wl)}function vf(){Tu.on(Cr,null).on(zr,null),df(Au),Il(Wl)}}function Zu(){var ds=this,Wl=fn.of(ds,arguments),Au={},Tu=0,uf,df=".zoom-"+e.event.changedTouches[0].identifier,Ef="touchmove"+df,vf="touchend"+df,fc=[],Be=e.select(ds),qt=_r(ds);Qr(),Pl(Wl),Be.on(hr,null).on($r,Qr);function ar(){var di=e.touches(ds);return uf=Z.k,di.forEach(function(on){on.identifier in Au&&(Au[on.identifier]=bi(on))}),di}function Qr(){var di=e.event.target;e.select(di).on(Ef,vi).on(vf,fi),fc.push(di);for(var on=e.event.changedTouches,Bn=0,Ln=on.length;Bn1){var ua=wn[0],Hn=wn[1],Ni=ua[0]-Hn[0],Hr=ua[1]-Hn[1];Tu=Ni*Ni+Hr*Hr}}function vi(){var di=e.touches(ds),on,Bn,Ln,wn;Us.call(ds);for(var Ls=0,ua=di.length;Ls1?1:se,ze=ze<0?0:ze>1?1:ze,$e=ze<=.5?ze*(1+se):ze+se-ze*se,je=2*ze-$e;function st(_t){return _t>360?_t-=360:_t<0&&(_t+=360),_t<60?je+($e-je)*_t/60:_t<180?$e:_t<240?je+($e-je)*(240-_t)/60:je}function jt(_t){return Math.round(st(_t)*255)}return new Bi(jt(Z+120),jt(Z),jt(Z-120))}e.hcl=Wt;function Wt(Z,se,ze){return this instanceof Wt?(this.h=+Z,this.c=+se,void(this.l=+ze)):arguments.length<2?Z instanceof Wt?new Wt(Z.h,Z.c,Z.l):Z instanceof Ur?ti(Z.l,Z.a,Z.b):ti((Z=Xr((Z=e.rgb(Z)).r,Z.g,Z.b)).l,Z.a,Z.b):new Wt(Z,se,ze)}var xr=Wt.prototype=new Gi;xr.brighter=function(Z){return new Wt(this.h,this.c,Math.min(100,this.l+Ir*(arguments.length?Z:1)))},xr.darker=function(Z){return new Wt(this.h,this.c,Math.max(0,this.l-Ir*(arguments.length?Z:1)))},xr.rgb=function(){return Lr(this.h,this.c,this.l).rgb()};function Lr(Z,se,ze){return isNaN(Z)&&(Z=0),isNaN(se)&&(se=0),new Ur(ze,Math.cos(Z*=pe)*se,Math.sin(Z)*se)}e.lab=Ur;function Ur(Z,se,ze){return this instanceof Ur?(this.l=+Z,this.a=+se,void(this.b=+ze)):arguments.length<2?Z instanceof Ur?new Ur(Z.l,Z.a,Z.b):Z instanceof Wt?Lr(Z.h,Z.c,Z.l):Xr((Z=Bi(Z)).r,Z.g,Z.b):new Ur(Z,se,ze)}var Ir=18,Gr=.95047,jr=1,yi=1.08883,Ei=Ur.prototype=new Gi;Ei.brighter=function(Z){return new Ur(Math.min(100,this.l+Ir*(arguments.length?Z:1)),this.a,this.b)},Ei.darker=function(Z){return new Ur(Math.max(0,this.l-Ir*(arguments.length?Z:1)),this.a,this.b)},Ei.rgb=function(){return Vi(this.l,this.a,this.b)};function Vi(Z,se,ze){var je=(Z+16)/116,$e=je+se/500,st=je-ze/200;return $e=en($e)*Gr,je=en(je)*jr,st=en(st)*yi,new Bi(oi(3.2404542*$e-1.5371385*je-.4985314*st),oi(-.969266*$e+1.8760108*je+.041556*st),oi(.0556434*$e-.2040259*je+1.0572252*st))}function ti(Z,se,ze){return Z>0?new Wt(Math.atan2(ze,se)*mt,Math.sqrt(se*se+ze*ze),Z):new Wt(NaN,NaN,Z)}function en(Z){return Z>.206893034?Z*Z*Z:(Z-4/29)/7.787037}function Yr(Z){return Z>.008856?Math.pow(Z,1/3):7.787037*Z+4/29}function oi(Z){return Math.round(255*(Z<=.00304?12.92*Z:1.055*Math.pow(Z,1/2.4)-.055))}e.rgb=Bi;function Bi(Z,se,ze){return this instanceof Bi?(this.r=~~Z,this.g=~~se,void(this.b=~~ze)):arguments.length<2?Z instanceof Bi?new Bi(Z.r,Z.g,Z.b):xn(""+Z,Bi,Ut):new Bi(Z,se,ze)}function an(Z){return new Bi(Z>>16,Z>>8&255,Z&255)}function rn(Z){return an(Z)+""}var Fi=Bi.prototype=new Gi;Fi.brighter=function(Z){Z=Math.pow(.7,arguments.length?Z:1);var se=this.r,ze=this.g,je=this.b,$e=30;return!se&&!ze&&!je?new Bi($e,$e,$e):(se&&se<$e&&(se=$e),ze&&ze<$e&&(ze=$e),je&&je<$e&&(je=$e),new Bi(Math.min(255,se/Z),Math.min(255,ze/Z),Math.min(255,je/Z)))},Fi.darker=function(Z){return Z=Math.pow(.7,arguments.length?Z:1),new Bi(Z*this.r,Z*this.g,Z*this.b)},Fi.hsl=function(){return xi(this.r,this.g,this.b)},Fi.toString=function(){return"#"+Ri(this.r)+Ri(this.g)+Ri(this.b)};function Ri(Z){return Z<16?"0"+Math.max(0,Z).toString(16):Math.min(255,Z).toString(16)}function xn(Z,se,ze){var je=0,$e=0,st=0,jt,_t,hr;if(jt=/([a-z]+)\((.*)\)/.exec(Z=Z.toLowerCase()),jt)switch(_t=jt[2].split(","),jt[1]){case"hsl":return ze(parseFloat(_t[0]),parseFloat(_t[1])/100,parseFloat(_t[2])/100);case"rgb":return se(tr(_t[0]),tr(_t[1]),tr(_t[2]))}return(hr=pr.get(Z))?se(hr.r,hr.g,hr.b):(Z!=null&&Z.charAt(0)==="#"&&!isNaN(hr=parseInt(Z.slice(1),16))&&(Z.length===4?(je=(hr&3840)>>4,je=je>>4|je,$e=hr&240,$e=$e>>4|$e,st=hr&15,st=st<<4|st):Z.length===7&&(je=(hr&16711680)>>16,$e=(hr&65280)>>8,st=hr&255)),se(je,$e,st))}function xi(Z,se,ze){var je=Math.min(Z/=255,se/=255,ze/=255),$e=Math.max(Z,se,ze),st=$e-je,jt,_t,hr=($e+je)/2;return st?(_t=hr<.5?st/($e+je):st/(2-$e-je),Z==$e?jt=(se-ze)/st+(se0&&hr<1?0:jt),new Ft(jt,_t,hr)}function Xr(Z,se,ze){Z=ft(Z),se=ft(se),ze=ft(ze);var je=Yr((.4124564*Z+.3575761*se+.1804375*ze)/Gr),$e=Yr((.2126729*Z+.7151522*se+.072175*ze)/jr),st=Yr((.0193339*Z+.119192*se+.9503041*ze)/yi);return Ur(116*$e-16,500*(je-$e),200*($e-st))}function ft(Z){return(Z/=255)<=.04045?Z/12.92:Math.pow((Z+.055)/1.055,2.4)}function tr(Z){var se=parseFloat(Z);return Z.charAt(Z.length-1)==="%"?Math.round(se*2.55):se}var pr=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});pr.forEach(function(Z,se){pr.set(Z,an(se))});function gr(Z){return typeof Z=="function"?Z:function(){return Z}}e.functor=gr,e.xhr=Zr(G);function Zr(Z){return function(se,ze,je){return arguments.length===2&&typeof ze=="function"&&(je=ze,ze=null),Ai(se,ze,Z,je)}}function Ai(Z,se,ze,je){var $e={},st=e.dispatch("beforesend","progress","load","error"),jt={},_t=new XMLHttpRequest,hr=null;self.XDomainRequest&&!("withCredentials"in _t)&&/^(http(s)?:)?\/\//.test(Z)&&(_t=new XDomainRequest),"onload"in _t?_t.onload=_t.onerror=Cr:_t.onreadystatechange=function(){_t.readyState>3&&Cr()};function Cr(){var zr=_t.status,ui;if(!zr&&ni(_t)||zr>=200&&zr<300||zr===304){try{ui=ze.call($e,_t)}catch($r){st.error.call($e,$r);return}st.load.call($e,ui)}else st.error.call($e,_t)}return _t.onprogress=function(zr){var ui=e.event;e.event=zr;try{st.progress.call($e,_t)}finally{e.event=ui}},$e.header=function(zr,ui){return zr=(zr+"").toLowerCase(),arguments.length<2?jt[zr]:(ui==null?delete jt[zr]:jt[zr]=ui+"",$e)},$e.mimeType=function(zr){return arguments.length?(se=zr==null?null:zr+"",$e):se},$e.responseType=function(zr){return arguments.length?(hr=zr,$e):hr},$e.response=function(zr){return ze=zr,$e},["get","post"].forEach(function(zr){$e[zr]=function(){return $e.send.apply($e,[zr].concat(r(arguments)))}}),$e.send=function(zr,ui,$r){if(arguments.length===2&&typeof ui=="function"&&($r=ui,ui=null),_t.open(zr,Z,!0),se!=null&&!("accept"in jt)&&(jt.accept=se+",*/*"),_t.setRequestHeader)for(var Oi in jt)_t.setRequestHeader(Oi,jt[Oi]);return se!=null&&_t.overrideMimeType&&_t.overrideMimeType(se),hr!=null&&(_t.responseType=hr),$r!=null&&$e.on("error",$r).on("load",function(fn){$r(null,fn)}),st.beforesend.call($e,_t),_t.send(ui==null?null:ui),$e},$e.abort=function(){return _t.abort(),$e},e.rebind($e,st,"on"),je==null?$e:$e.get(Qi(je))}function Qi(Z){return Z.length===1?function(se,ze){Z(se==null?ze:null)}:Z}function ni(Z){var se=Z.responseType;return se&&se!=="text"?Z.response:Z.responseText}e.dsv=function(Z,se){var ze=new RegExp('["'+Z+` -]`),je=Z.charCodeAt(0);function $e(Cr,zr,ui){arguments.length<3&&(ui=zr,zr=null);var $r=Ai(Cr,se,zr==null?st:jt(zr),ui);return $r.row=function(Oi){return arguments.length?$r.response((zr=Oi)==null?st:jt(Oi)):zr},$r}function st(Cr){return $e.parse(Cr.responseText)}function jt(Cr){return function(zr){return $e.parse(zr.responseText,Cr)}}$e.parse=function(Cr,zr){var ui;return $e.parseRows(Cr,function($r,Oi){if(ui)return ui($r,Oi-1);var fn=function(pi){for(var zi={},Xi=$r.length,pn=0;pn=fn)return $r;if(pn)return pn=!1,ui;var xo=pi;if(Cr.charCodeAt(xo)===34){for(var no=xo;no++24?(isFinite(se)&&(clearTimeout(Un),Un=setTimeout(oa,se)),Mn=0):(Mn=1,Ga(oa))}e.timer.flush=function(){ka(),so()};function ka(){for(var Z=Date.now(),se=Zi;se;)Z>=se.t&&se.c(Z-se.t)&&(se.c=null),se=se.n;return Z}function so(){for(var Z,se=Zi,ze=1/0;se;)se.c?(se.t=0;--_t)pi.push($e[Cr[ui[_t]][2]]);for(_t=+Oi;_t<$r.length-fn;++_t)pi.push($e[Cr[$r[_t]][2]]);return pi}return je.x=function($e){return arguments.length?(se=$e,je):se},je.y=function($e){return arguments.length?(ze=$e,je):ze},je};function Yo(Z){for(var se=Z.length,ze=[0,1],je=2,$e=2;$e1&&Pt(Z[ze[je-2]],Z[ze[je-1]],Z[$e])<=0;)--je;ze[je++]=$e}return ze.slice(0,je)}function fa(Z,se){return Z[0]-se[0]||Z[1]-se[1]}e.geom.polygon=function(Z){return te(Z,kn),Z};var kn=e.geom.polygon.prototype=[];kn.area=function(){for(var Z=-1,se=this.length,ze,je=this[se-1],$e=0;++ZOe)_t=_t.L;else if(jt=se-Sn(_t,ze),jt>Oe){if(!_t.R){je=_t;break}_t=_t.R}else{st>-Oe?(je=_t.P,$e=_t):jt>-Oe?(je=_t,$e=_t.N):je=$e=_t;break}var hr=Po(Z);if(fo.insert(je,hr),!(!je&&!$e)){if(je===$e){Sa(je),$e=Po(je.site),fo.insert(hr,$e),hr.edge=$e.edge=vo(je.site,hr.site),Wi(je),Wi($e);return}if(!$e){hr.edge=vo(je.site,hr.site);return}Sa(je),Sa($e);var Cr=je.site,zr=Cr.x,ui=Cr.y,$r=Z.x-zr,Oi=Z.y-ui,fn=$e.site,pi=fn.x-zr,zi=fn.y-ui,Xi=2*($r*zi-Oi*pi),pn=$r*$r+Oi*Oi,sn=pi*pi+zi*zi,bi={x:(zi*pn-Oi*sn)/Xi+zr,y:($r*sn-pi*pn)/Xi+ui};ps($e.edge,Cr,fn,bi),hr.edge=vo(Cr,Z,null,bi),$e.edge=vo(Z,fn,null,bi),Wi(je),Wi($e)}}function Ha(Z,se){var ze=Z.site,je=ze.x,$e=ze.y,st=$e-se;if(!st)return je;var jt=Z.P;if(!jt)return-1/0;ze=jt.site;var _t=ze.x,hr=ze.y,Cr=hr-se;if(!Cr)return _t;var zr=_t-je,ui=1/st-1/Cr,$r=zr/Cr;return ui?(-$r+Math.sqrt($r*$r-2*ui*(zr*zr/(-2*Cr)-hr+Cr/2+$e-st/2)))/ui+je:(je+_t)/2}function Sn(Z,se){var ze=Z.N;if(ze)return Ha(ze,se);var je=Z.site;return je.y===se?je.x:1/0}function ao(Z){this.site=Z,this.edges=[]}ao.prototype.prepare=function(){for(var Z=this.edges,se=Z.length,ze;se--;)ze=Z[se].edge,(!ze.b||!ze.a)&&Z.splice(se,1);return Z.sort(Ko),Z.length};function Ba(Z){for(var se=Z[0][0],ze=Z[1][0],je=Z[0][1],$e=Z[1][1],st,jt,_t,hr,Cr=$a,zr=Cr.length,ui,$r,Oi,fn,pi,zi;zr--;)if(ui=Cr[zr],!(!ui||!ui.prepare()))for(Oi=ui.edges,fn=Oi.length,$r=0;$rOe||v(hr-jt)>Oe)&&(Oi.splice($r,0,new co(As(ui.site,zi,v(_t-se)Oe?{x:se,y:v(st-se)Oe?{x:v(jt-$e)Oe?{x:ze,y:v(st-ze)Oe?{x:v(jt-je)=-Ie)){var $r=hr*hr+Cr*Cr,Oi=zr*zr+zi*zi,fn=(zi*$r-Cr*Oi)/ui,pi=(hr*Oi-zr*$r)/ui,zi=pi+_t,Xi=ws.pop()||new Qo;Xi.arc=Z,Xi.site=$e,Xi.x=fn+jt,Xi.y=zi+Math.sqrt(fn*fn+pi*pi),Xi.cy=zi,Z.circle=Xi;for(var pn=null,sn=wa._;sn;)if(Xi.y0)){if(pi/=Oi,Oi<0){if(pi0){if(pi>$r)return;pi>ui&&(ui=pi)}if(pi=ze-_t,!(!Oi&&pi<0)){if(pi/=Oi,Oi<0){if(pi>$r)return;pi>ui&&(ui=pi)}else if(Oi>0){if(pi0)){if(pi/=fn,fn<0){if(pi0){if(pi>$r)return;pi>ui&&(ui=pi)}if(pi=je-hr,!(!fn&&pi<0)){if(pi/=fn,fn<0){if(pi>$r)return;pi>ui&&(ui=pi)}else if(fn>0){if(pi0&&($e.a={x:_t+ui*Oi,y:hr+ui*fn}),$r<1&&($e.b={x:_t+$r*Oi,y:hr+$r*fn}),$e}}}}}}function vn(Z){for(var se=ls,ze=Qa(Z[0][0],Z[0][1],Z[1][0],Z[1][1]),je=se.length,$e;je--;)$e=se[je],(!da($e,Z)||!ze($e)||v($e.a.x-$e.b.x)=st)return;if(zr>$r){if(!je)je={x:fn,y:jt};else if(je.y>=_t)return;ze={x:fn,y:_t}}else{if(!je)je={x:fn,y:_t};else if(je.y1)if(zr>$r){if(!je)je={x:(jt-Xi)/zi,y:jt};else if(je.y>=_t)return;ze={x:(_t-Xi)/zi,y:_t}}else{if(!je)je={x:(_t-Xi)/zi,y:_t};else if(je.y=st)return;ze={x:st,y:zi*st+Xi}}else{if(!je)je={x:st,y:zi*st+Xi};else if(je.x<$e)return;ze={x:$e,y:zi*$e+Xi}}return Z.a=je,Z.b=ze,!0}function la(Z,se){this.l=Z,this.r=se,this.a=this.b=null}function vo(Z,se,ze,je){var $e=new la(Z,se);return ls.push($e),ze&&ps($e,Z,se,ze),je&&ps($e,se,Z,je),$a[Z.i].edges.push(new co($e,Z,se)),$a[se.i].edges.push(new co($e,se,Z)),$e}function As(Z,se,ze){var je=new la(Z,null);return je.a=se,je.b=ze,ls.push(je),je}function ps(Z,se,ze,je){!Z.a&&!Z.b?(Z.a=je,Z.l=se,Z.r=ze):Z.l===ze?Z.b=je:Z.a=je}function co(Z,se,ze){var je=Z.a,$e=Z.b;this.edge=Z,this.site=se,this.angle=ze?Math.atan2(ze.y-se.y,ze.x-se.x):Z.l===se?Math.atan2($e.x-je.x,je.y-$e.y):Math.atan2(je.x-$e.x,$e.y-je.y)}co.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}};function mo(){this._=null}function No(Z){Z.U=Z.C=Z.L=Z.R=Z.P=Z.N=null}mo.prototype={insert:function(Z,se){var ze,je,$e;if(Z){if(se.P=Z,se.N=Z.N,Z.N&&(Z.N.P=se),Z.N=se,Z.R){for(Z=Z.R;Z.L;)Z=Z.L;Z.L=se}else Z.R=se;ze=Z}else this._?(Z=Ys(this._),se.P=null,se.N=Z,Z.P=Z.L=se,ze=Z):(se.P=se.N=null,this._=se,ze=null);for(se.L=se.R=null,se.U=ze,se.C=!0,Z=se;ze&&ze.C;)je=ze.U,ze===je.L?($e=je.R,$e&&$e.C?(ze.C=$e.C=!1,je.C=!0,Z=je):(Z===ze.R&&(jn(this,ze),Z=ze,ze=Z.U),ze.C=!1,je.C=!0,Go(this,je))):($e=je.L,$e&&$e.C?(ze.C=$e.C=!1,je.C=!0,Z=je):(Z===ze.L&&(Go(this,ze),Z=ze,ze=Z.U),ze.C=!1,je.C=!0,jn(this,je))),ze=Z.U;this._.C=!1},remove:function(Z){Z.N&&(Z.N.P=Z.P),Z.P&&(Z.P.N=Z.N),Z.N=Z.P=null;var se=Z.U,ze,je=Z.L,$e=Z.R,st,jt;if(je?$e?st=Ys($e):st=je:st=$e,se?se.L===Z?se.L=st:se.R=st:this._=st,je&&$e?(jt=st.C,st.C=Z.C,st.L=je,je.U=st,st!==$e?(se=st.U,st.U=Z.U,Z=st.R,se.L=Z,st.R=$e,$e.U=st):(st.U=se,se=st,Z=st.R)):(jt=Z.C,Z=st),Z&&(Z.U=se),!jt){if(Z&&Z.C){Z.C=!1;return}do{if(Z===this._)break;if(Z===se.L){if(ze=se.R,ze.C&&(ze.C=!1,se.C=!0,jn(this,se),ze=se.R),ze.L&&ze.L.C||ze.R&&ze.R.C){(!ze.R||!ze.R.C)&&(ze.L.C=!1,ze.C=!0,Go(this,ze),ze=se.R),ze.C=se.C,se.C=ze.R.C=!1,jn(this,se),Z=this._;break}}else if(ze=se.L,ze.C&&(ze.C=!1,se.C=!0,Go(this,se),ze=se.L),ze.L&&ze.L.C||ze.R&&ze.R.C){(!ze.L||!ze.L.C)&&(ze.R.C=!1,ze.C=!0,jn(this,ze),ze=se.L),ze.C=se.C,se.C=ze.L.C=!1,Go(this,se),Z=this._;break}ze.C=!0,Z=se,se=se.U}while(!Z.C);Z&&(Z.C=!1)}}};function jn(Z,se){var ze=se,je=se.R,$e=ze.U;$e?$e.L===ze?$e.L=je:$e.R=je:Z._=je,je.U=$e,ze.U=je,ze.R=je.L,ze.R&&(ze.R.U=ze),je.L=ze}function Go(Z,se){var ze=se,je=se.L,$e=ze.U;$e?$e.L===ze?$e.L=je:$e.R=je:Z._=je,je.U=$e,ze.U=je,ze.L=je.R,ze.L&&(ze.L.U=ze),je.R=ze}function Ys(Z){for(;Z.L;)Z=Z.L;return Z}function qs(Z,se){var ze=Z.sort(Ns).pop(),je,$e,st;for(ls=[],$a=new Array(Z.length),fo=new mo,wa=new mo;;)if(st=ra,ze&&(!st||ze.y=zr&&Xi.x<=$r&&Xi.y>=ui&&Xi.y<=Oi?[[zr,Oi],[$r,Oi],[$r,ui],[zr,ui]]:[];pn.point=hr[pi]}),Cr}function _t(hr){return hr.map(function(Cr,zr){return{x:Math.round(je(Cr,zr)/Oe)*Oe,y:Math.round($e(Cr,zr)/Oe)*Oe,i:zr}})}return jt.links=function(hr){return qs(_t(hr)).edges.filter(function(Cr){return Cr.l&&Cr.r}).map(function(Cr){return{source:hr[Cr.l.i],target:hr[Cr.r.i]}})},jt.triangles=function(hr){var Cr=[];return qs(_t(hr)).cells.forEach(function(zr,ui){for(var $r=zr.site,Oi=zr.edges.sort(Ko),fn=-1,pi=Oi.length,zi,Xi,pn=Oi[pi-1].edge,sn=pn.l===$r?pn.r:pn.l;++fnsn&&(sn=zr.x),zr.y>bi&&(bi=zr.y),Oi.push(zr.x),fn.push(zr.y);else for(pi=0;pisn&&(sn=xo),no>bi&&(bi=no),Oi.push(xo),fn.push(no)}var Xo=sn-Xi,js=bi-pn;Xo>js?bi=pn+Xo:sn=Xi+js;function El(Il,fu,Zu,Vu,rf,ds,Wl,Au){if(!(isNaN(Zu)||isNaN(Vu)))if(Il.leaf){var Tu=Il.x,uf=Il.y;if(Tu!=null)if(v(Tu-Zu)+v(uf-Vu)<.01)Pl(Il,fu,Zu,Vu,rf,ds,Wl,Au);else{var df=Il.point;Il.x=Il.y=Il.point=null,Pl(Il,df,Tu,uf,rf,ds,Wl,Au),Pl(Il,fu,Zu,Vu,rf,ds,Wl,Au)}else Il.x=Zu,Il.y=Vu,Il.point=fu}else Pl(Il,fu,Zu,Vu,rf,ds,Wl,Au)}function Pl(Il,fu,Zu,Vu,rf,ds,Wl,Au){var Tu=(rf+Wl)*.5,uf=(ds+Au)*.5,df=Zu>=Tu,Ef=Vu>=uf,vf=Ef<<1|df;Il.leaf=!1,Il=Il.nodes[vf]||(Il.nodes[vf]=_n()),df?rf=Tu:Wl=Tu,Ef?ds=uf:Au=uf,El(Il,fu,Zu,Vu,rf,ds,Wl,Au)}var pu=_n();if(pu.add=function(Il){El(pu,Il,+ui(Il,++pi),+$r(Il,pi),Xi,pn,sn,bi)},pu.visit=function(Il){Vn(Il,pu,Xi,pn,sn,bi)},pu.find=function(Il){return wo(pu,Il[0],Il[1],Xi,pn,sn,bi)},pi=-1,se==null){for(;++pist||$r>jt||Oi=xo,js=ze>=no,El=js<<1|Xo,Pl=El+4;Elze&&(st=se.slice(ze,st),_t[jt]?_t[jt]+=st:_t[++jt]=st),(je=je[0])===($e=$e[0])?_t[jt]?_t[jt]+=$e:_t[++jt]=$e:(_t[++jt]=null,hr.push({i:jt,x:un(je,$e)})),ze=qn.lastIndex;return ze=0&&!(je=e.interpolators[ze](Z,se)););return je}e.interpolators=[function(Z,se){var ze=typeof se;return(ze==="string"?pr.has(se.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(se)?Ra:$n:se instanceof Gi?Ra:Array.isArray(se)?Ja:ze==="object"&&isNaN(se)?Xn:un)(Z,se)}],e.interpolateArray=Ja;function Ja(Z,se){var ze=[],je=[],$e=Z.length,st=se.length,jt=Math.min(Z.length,se.length),_t;for(_t=0;_t=0?Z.slice(0,se):Z,je=se>=0?Z.slice(se+1):"in";return ze=eo.get(ze)||lo,je=sa.get(je)||G,es(je(ze.apply(null,t.call(arguments,1))))};function es(Z){return function(se){return se<=0?0:se>=1?1:Z(se)}}function Na(Z){return function(se){return 1-Z(1-se)}}function tn(Z){return function(se){return .5*(se<.5?Z(2*se):2-Z(2-2*se))}}function Pa(Z){return Z*Z}function to(Z){return Z*Z*Z}function yo(Z){if(Z<=0)return 0;if(Z>=1)return 1;var se=Z*Z,ze=se*Z;return 4*(Z<.5?ze:3*(Z-se)+ze-.75)}function Jo(Z){return function(se){return Math.pow(se,Z)}}function Ao(Z){return 1-Math.cos(Z*fe)}function Dn(Z){return Math.pow(2,10*(Z-1))}function _a(Z){return 1-Math.sqrt(1-Z*Z)}function Ws(Z,se){var ze;return arguments.length<2&&(se=.45),arguments.length?ze=se/ct*Math.asin(1/Z):(Z=1,ze=se/4),function(je){return 1+Z*Math.pow(2,-10*je)*Math.sin((je-ze)*ct/se)}}function Ca(Z){return Z||(Z=1.70158),function(se){return se*se*((Z+1)*se-Z)}}function Es(Z){return Z<1/2.75?7.5625*Z*Z:Z<2/2.75?7.5625*(Z-=1.5/2.75)*Z+.75:Z<2.5/2.75?7.5625*(Z-=2.25/2.75)*Z+.9375:7.5625*(Z-=2.625/2.75)*Z+.984375}e.interpolateHcl=Ts;function Ts(Z,se){Z=e.hcl(Z),se=e.hcl(se);var ze=Z.h,je=Z.c,$e=Z.l,st=se.h-ze,jt=se.c-je,_t=se.l-$e;return isNaN(jt)&&(jt=0,je=isNaN(je)?se.c:je),isNaN(st)?(st=0,ze=isNaN(ze)?se.h:ze):st>180?st-=360:st<-180&&(st+=360),function(hr){return Lr(ze+st*hr,je+jt*hr,$e+_t*hr)+""}}e.interpolateHsl=Ho;function Ho(Z,se){Z=e.hsl(Z),se=e.hsl(se);var ze=Z.h,je=Z.s,$e=Z.l,st=se.h-ze,jt=se.s-je,_t=se.l-$e;return isNaN(jt)&&(jt=0,je=isNaN(je)?se.s:je),isNaN(st)?(st=0,ze=isNaN(ze)?se.h:ze):st>180?st-=360:st<-180&&(st+=360),function(hr){return Ut(ze+st*hr,je+jt*hr,$e+_t*hr)+""}}e.interpolateLab=Wa;function Wa(Z,se){Z=e.lab(Z),se=e.lab(se);var ze=Z.l,je=Z.a,$e=Z.b,st=se.l-ze,jt=se.a-je,_t=se.b-$e;return function(hr){return Vi(ze+st*hr,je+jt*hr,$e+_t*hr)+""}}e.interpolateRound=To;function To(Z,se){return se-=Z,function(ze){return Math.round(Z+se*ze)}}e.transform=function(Z){var se=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(ze){if(ze!=null){se.setAttribute("transform",ze);var je=se.transform.baseVal.consolidate()}return new ts(je?je.matrix:Bo)})(Z)};function ts(Z){var se=[Z.a,Z.b],ze=[Z.c,Z.d],je=qa(se),$e=Wo(se,ze),st=qa(ln(ze,se,-$e))||0;se[0]*ze[1]180?se+=360:se-Z>180&&(Z+=360),je.push({i:ze.push(ko(ze)+"rotate(",null,")")-2,x:un(Z,se)})):se&&ze.push(ko(ze)+"rotate("+se+")")}function ea(Z,se,ze,je){Z!==se?je.push({i:ze.push(ko(ze)+"skewX(",null,")")-2,x:un(Z,se)}):se&&ze.push(ko(ze)+"skewX("+se+")")}function rs(Z,se,ze,je){if(Z[0]!==se[0]||Z[1]!==se[1]){var $e=ze.push(ko(ze)+"scale(",null,",",null,")");je.push({i:$e-4,x:un(Z[0],se[0])},{i:$e-2,x:un(Z[1],se[1])})}else(se[0]!==1||se[1]!==1)&&ze.push(ko(ze)+"scale("+se+")")}function $s(Z,se){var ze=[],je=[];return Z=e.transform(Z),se=e.transform(se),oo(Z.translate,se.translate,ze,je),za(Z.rotate,se.rotate,ze,je),ea(Z.skew,se.skew,ze,je),rs(Z.scale,se.scale,ze,je),Z=se=null,function($e){for(var st=-1,jt=je.length,_t;++st0?st=bi:(ze.c=null,ze.t=NaN,ze=null,se.end({type:"end",alpha:st=0})):bi>0&&(se.start({type:"start",alpha:st=bi}),ze=ma(Z.tick)),Z):st},Z.start=function(){var bi,xo=Oi.length,no=fn.length,Xo=je[0],js=je[1],El,Pl;for(bi=0;bi=0;)st.push(zr=Cr[hr]),zr.parent=_t,zr.depth=_t.depth+1;ze&&(_t.value=0),_t.children=Cr}else ze&&(_t.value=+ze.call(je,_t,_t.depth)||0),delete _t.children;return Oo($e,function(ui){var $r,Oi;Z&&($r=ui.children)&&$r.sort(Z),ze&&(Oi=ui.parent)&&(Oi.value+=ui.value)}),jt}return je.sort=function($e){return arguments.length?(Z=$e,je):Z},je.children=function($e){return arguments.length?(se=$e,je):se},je.value=function($e){return arguments.length?(ze=$e,je):ze},je.revalue=function($e){return ze&&(Jn($e,function(st){st.children&&(st.value=0)}),Oo($e,function(st){var jt;st.children||(st.value=+ze.call(je,st,st.depth)||0),(jt=st.parent)&&(jt.value+=st.value)})),$e},je};function Ea(Z,se){return e.rebind(Z,se,"sort","children","value"),Z.nodes=Z,Z.links=zs,Z}function Jn(Z,se){for(var ze=[Z];(Z=ze.pop())!=null;)if(se(Z),($e=Z.children)&&(je=$e.length))for(var je,$e;--je>=0;)ze.push($e[je])}function Oo(Z,se){for(var ze=[Z],je=[];(Z=ze.pop())!=null;)if(je.push(Z),(jt=Z.children)&&(st=jt.length))for(var $e=-1,st,jt;++$e$e&&($e=_t),je.push(_t)}for(jt=0;jtje&&(ze=se,je=$e);return ze}function zo(Z){return Z.reduce(io,0)}function io(Z,se){return Z+se[1]}e.layout.histogram=function(){var Z=!0,se=Number,ze=vs,je=Io;function $e(st,$r){for(var _t=[],hr=st.map(se,this),Cr=ze.call(this,hr,$r),zr=je.call(this,Cr,hr,$r),ui,$r=-1,Oi=hr.length,fn=zr.length-1,pi=Z?1:1/Oi,zi;++$r0)for($r=-1;++$r=Cr[0]&&zi<=Cr[1]&&(ui=_t[e.bisect(zr,zi,1,fn)-1],ui.y+=pi,ui.push(st[$r]));return _t}return $e.value=function(st){return arguments.length?(se=st,$e):se},$e.range=function(st){return arguments.length?(ze=gr(st),$e):ze},$e.bins=function(st){return arguments.length?(je=typeof st=="number"?function(jt){return Da(jt,st)}:gr(st),$e):je},$e.frequency=function(st){return arguments.length?(Z=!!st,$e):Z},$e};function Io(Z,se){return Da(Z,Math.ceil(Math.log(se.length)/Math.LN2+1))}function Da(Z,se){for(var ze=-1,je=+Z[0],$e=(Z[1]-je)/se,st=[];++ze<=se;)st[ze]=$e*ze+je;return st}function vs(Z){return[e.min(Z),e.max(Z)]}e.layout.pack=function(){var Z=e.layout.hierarchy().sort(fs),se=0,ze=[1,1],je;function $e(st,jt){var _t=Z.call(this,st,jt),hr=_t[0],Cr=ze[0],zr=ze[1],ui=je==null?Math.sqrt:typeof je=="function"?je:function(){return je};if(hr.x=hr.y=0,Oo(hr,function(Oi){Oi.r=+ui(Oi.value)}),Oo(hr,Ro),se){var $r=se*(je?1:Math.max(2*hr.r/Cr,2*hr.r/zr))/2;Oo(hr,function(Oi){Oi.r+=$r}),Oo(hr,Ro),Oo(hr,function(Oi){Oi.r-=$r})}return hl(hr,Cr/2,zr/2,je?1:1/Math.max(2*hr.r/Cr,2*hr.r/zr)),_t}return $e.size=function(st){return arguments.length?(ze=st,$e):ze},$e.radius=function(st){return arguments.length?(je=st==null||typeof st=="function"?st:+st,$e):je},$e.padding=function(st){return arguments.length?(se=+st,$e):se},Ea($e,Z)};function fs(Z,se){return Z.value-se.value}function cl(Z,se){var ze=Z._pack_next;Z._pack_next=se,se._pack_prev=Z,se._pack_next=ze,ze._pack_prev=se}function el(Z,se){Z._pack_next=se,se._pack_prev=Z}function Hs(Z,se){var ze=se.x-Z.x,je=se.y-Z.y,$e=Z.r+se.r;return .999*$e*$e>ze*ze+je*je}function Ro(Z){if(!(se=Z.children)||!($r=se.length))return;var se,ze=1/0,je=-1/0,$e=1/0,st=-1/0,jt,_t,hr,Cr,zr,ui,$r;function Oi(bi){ze=Math.min(bi.x-bi.r,ze),je=Math.max(bi.x+bi.r,je),$e=Math.min(bi.y-bi.r,$e),st=Math.max(bi.y+bi.r,st)}if(se.forEach(tl),jt=se[0],jt.x=-jt.r,jt.y=0,Oi(jt),$r>1&&(_t=se[1],_t.x=_t.r,_t.y=0,Oi(_t),$r>2))for(hr=se[2],Fa(jt,_t,hr),Oi(hr),cl(jt,hr),jt._pack_prev=hr,cl(hr,_t),_t=jt._pack_next,Cr=3;Cr<$r;Cr++){Fa(jt,_t,hr=se[Cr]);var fn=0,pi=1,zi=1;for(zr=_t._pack_next;zr!==_t;zr=zr._pack_next,pi++)if(Hs(zr,hr)){fn=1;break}if(fn==1)for(ui=jt._pack_prev;ui!==zr._pack_prev&&!Hs(ui,hr);ui=ui._pack_prev,zi++);fn?(pizi.x&&(zi=xo),xo.depth>Xi.depth&&(Xi=xo)});var pn=se(pi,zi)/2-pi.x,sn=ze[0]/(zi.x+se(zi,pi)/2+pn),bi=ze[1]/(Xi.depth||1);Jn(Oi,function(xo){xo.x=(xo.x+pn)*sn,xo.y=xo.depth*bi})}return $r}function st(zr){for(var ui={A:null,children:[zr]},$r=[ui],Oi;(Oi=$r.pop())!=null;)for(var fn=Oi.children,pi,zi=0,Xi=fn.length;zi0&&(Is(Tt(pi,zr,$r),zr,xo),Xi+=xo,pn+=xo),sn+=pi.m,Xi+=Oi.m,bi+=zi.m,pn+=fn.m;pi&&!Rs(fn)&&(fn.t=pi,fn.m+=sn-pn),Oi&&!jo(zi)&&(zi.t=Oi,zi.m+=Xi-bi,$r=zr)}return $r}function Cr(zr){zr.x*=ze[0],zr.y=zr.depth*ze[1]}return $e.separation=function(zr){return arguments.length?(se=zr,$e):se},$e.size=function(zr){return arguments.length?(je=(ze=zr)==null?Cr:null,$e):je?null:ze},$e.nodeSize=function(zr){return arguments.length?(je=(ze=zr)==null?null:Cr,$e):je?ze:null},Ea($e,Z)};function Ms(Z,se){return Z.parent==se.parent?1:2}function jo(Z){var se=Z.children;return se.length?se[0]:Z.t}function Rs(Z){var se=Z.children,ze;return(ze=se.length)?se[ze-1]:Z.t}function Is(Z,se,ze){var je=ze/(se.i-Z.i);se.c-=je,se.s+=ze,Z.c+=je,se.z+=ze,se.m+=ze}function Bs(Z){for(var se=0,ze=0,je=Z.children,$e=je.length,st;--$e>=0;)st=je[$e],st.z+=se,st.m+=se,se+=st.s+(ze+=st.c)}function Tt(Z,se,ze){return Z.a.parent===se.parent?Z.a:ze}e.layout.cluster=function(){var Z=e.layout.hierarchy().sort(null).value(null),se=Ms,ze=[1,1],je=!1;function $e(st,jt){var _t=Z.call(this,st,jt),hr=_t[0],Cr,zr=0;Oo(hr,function(pi){var zi=pi.children;zi&&zi.length?(pi.x=wr(zi),pi.y=Vt(zi)):(pi.x=Cr?zr+=se(pi,Cr):0,pi.y=0,Cr=pi)});var ui=yr(hr),$r=Fr(hr),Oi=ui.x-se(ui,$r)/2,fn=$r.x+se($r,ui)/2;return Oo(hr,je?function(pi){pi.x=(pi.x-hr.x)*ze[0],pi.y=(hr.y-pi.y)*ze[1]}:function(pi){pi.x=(pi.x-Oi)/(fn-Oi)*ze[0],pi.y=(1-(hr.y?pi.y/hr.y:1))*ze[1]}),_t}return $e.separation=function(st){return arguments.length?(se=st,$e):se},$e.size=function(st){return arguments.length?(je=(ze=st)==null,$e):je?null:ze},$e.nodeSize=function(st){return arguments.length?(je=(ze=st)!=null,$e):je?ze:null},Ea($e,Z)};function Vt(Z){return 1+e.max(Z,function(se){return se.y})}function wr(Z){return Z.reduce(function(se,ze){return se+ze.x},0)/Z.length}function yr(Z){var se=Z.children;return se&&se.length?yr(se[0]):Z}function Fr(Z){var se=Z.children,ze;return se&&(ze=se.length)?Fr(se[ze-1]):Z}e.layout.treemap=function(){var Z=e.layout.hierarchy(),se=Math.round,ze=[1,1],je=null,$e=gi,st=!1,jt,_t="squarify",hr=.5*(1+Math.sqrt(5));function Cr(pi,zi){for(var Xi=-1,pn=pi.length,sn,bi;++Xi0;)pn.push(bi=sn[js-1]),pn.area+=bi.area,_t!=="squarify"||(no=$r(pn,Xo))<=xo?(sn.pop(),xo=no):(pn.area-=pn.pop().area,Oi(pn,Xo,Xi,!1),Xo=Math.min(Xi.dx,Xi.dy),pn.length=pn.area=0,xo=1/0);pn.length&&(Oi(pn,Xo,Xi,!0),pn.length=pn.area=0),zi.forEach(zr)}}function ui(pi){var zi=pi.children;if(zi&&zi.length){var Xi=$e(pi),pn=zi.slice(),sn,bi=[];for(Cr(pn,Xi.dx*Xi.dy/pi.value),bi.area=0;sn=pn.pop();)bi.push(sn),bi.area+=sn.area,sn.z!=null&&(Oi(bi,sn.z?Xi.dx:Xi.dy,Xi,!pn.length),bi.length=bi.area=0);zi.forEach(ui)}}function $r(pi,zi){for(var Xi=pi.area,pn,sn=0,bi=1/0,xo=-1,no=pi.length;++xosn&&(sn=pn));return Xi*=Xi,zi*=zi,Xi?Math.max(zi*sn*hr/Xi,Xi/(zi*bi*hr)):1/0}function Oi(pi,zi,Xi,pn){var sn=-1,bi=pi.length,xo=Xi.x,no=Xi.y,Xo=zi?se(pi.area/zi):0,js;if(zi==Xi.dx){for((pn||Xo>Xi.dy)&&(Xo=Xi.dy);++snXi.dx)&&(Xo=Xi.dx);++sn1);return Z+se*je*Math.sqrt(-2*Math.log(st)/st)}},logNormal:function(){var Z=e.random.normal.apply(e,arguments);return function(){return Math.exp(Z())}},bates:function(Z){var se=e.random.irwinHall(Z);return function(){return se()/Z}},irwinHall:function(Z){return function(){for(var se=0,ze=0;ze2?Si:Fn,Cr=je?Ds:us;return $e=hr(Z,se,Cr,ze),st=hr(se,Z,Cr,Eo),_t}function _t(hr){return $e(hr)}return _t.invert=function(hr){return st(hr)},_t.domain=function(hr){return arguments.length?(Z=hr.map(Number),jt()):Z},_t.range=function(hr){return arguments.length?(se=hr,jt()):se},_t.rangeRound=function(hr){return _t.range(hr).interpolate(To)},_t.clamp=function(hr){return arguments.length?(je=hr,jt()):je},_t.interpolate=function(hr){return arguments.length?(ze=hr,jt()):ze},_t.ticks=function(hr){return pa(Z,hr)},_t.tickFormat=function(hr,Cr){return d3_scale_linearTickFormat(Z,hr,Cr)},_t.nice=function(hr){return ya(Z,hr),jt()},_t.copy=function(){return Gn(Z,se,ze,je)},jt()}function ta(Z,se){return e.rebind(Z,se,"range","rangeRound","interpolate","clamp")}function ya(Z,se){return Pi(Z,hi(ia(Z,se)[2])),Pi(Z,hi(ia(Z,se)[2])),Z}function ia(Z,se){se==null&&(se=10);var ze=ki(Z),je=ze[1]-ze[0],$e=Math.pow(10,Math.floor(Math.log(je/se)/Math.LN10)),st=se/je*$e;return st<=.15?$e*=10:st<=.35?$e*=5:st<=.75&&($e*=2),ze[0]=Math.ceil(ze[0]/$e)*$e,ze[1]=Math.floor(ze[1]/$e)*$e+$e*.5,ze[2]=$e,ze}function pa(Z,se){return e.range.apply(e,ia(Z,se))}var va={s:1,g:1,p:1,r:1,e:1};function zn(Z){return-Math.floor(Math.log(Z)/Math.LN10+.01)}function is(Z,se){var ze=zn(se[2]);return Z in va?Math.abs(ze-zn(Math.max(v(se[0]),v(se[1]))))+ +(Z!=="e"):ze-(Z==="%")*2}e.scale.log=function(){return Cs(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Cs(Z,se,ze,je){function $e(_t){return(ze?Math.log(_t<0?0:_t):-Math.log(_t>0?0:-_t))/Math.log(se)}function st(_t){return ze?Math.pow(se,_t):-Math.pow(se,-_t)}function jt(_t){return Z($e(_t))}return jt.invert=function(_t){return st(Z.invert(_t))},jt.domain=function(_t){return arguments.length?(ze=_t[0]>=0,Z.domain((je=_t.map(Number)).map($e)),jt):je},jt.base=function(_t){return arguments.length?(se=+_t,Z.domain(je.map($e)),jt):se},jt.nice=function(){var _t=Pi(je.map($e),ze?Math:Ks);return Z.domain(_t),je=_t.map(st),jt},jt.ticks=function(){var _t=ki(je),hr=[],Cr=_t[0],zr=_t[1],ui=Math.floor($e(Cr)),$r=Math.ceil($e(zr)),Oi=se%1?2:se;if(isFinite($r-ui)){if(ze){for(;ui<$r;ui++)for(var fn=1;fn0;fn--)hr.push(st(ui)*fn);for(ui=0;hr[ui]zr;$r--);hr=hr.slice(ui,$r)}return hr},jt.copy=function(){return Cs(Z.copy(),se,ze,je)},ta(jt,Z)}var Ks={floor:function(Z){return-Math.ceil(-Z)},ceil:function(Z){return-Math.floor(-Z)}};e.scale.pow=function(){return dl(e.scale.linear(),1,[0,1])};function dl(Z,se,ze){var je=xl(se),$e=xl(1/se);function st(jt){return Z(je(jt))}return st.invert=function(jt){return $e(Z.invert(jt))},st.domain=function(jt){return arguments.length?(Z.domain((ze=jt.map(Number)).map(je)),st):ze},st.ticks=function(jt){return pa(ze,jt)},st.tickFormat=function(jt,_t){return d3_scale_linearTickFormat(ze,jt,_t)},st.nice=function(jt){return st.domain(ya(ze,jt))},st.exponent=function(jt){return arguments.length?(je=xl(se=jt),$e=xl(1/se),Z.domain(ze.map(je)),st):se},st.copy=function(){return dl(Z.copy(),se,ze)},ta(st,Z)}function xl(Z){return function(se){return se<0?-Math.pow(-se,Z):Math.pow(se,Z)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Ol([],{t:"range",a:[[]]})};function Ol(Z,se){var ze,je,$e;function st(_t){return je[((ze.get(_t)||(se.t==="range"?ze.set(_t,Z.push(_t)):NaN))-1)%je.length]}function jt(_t,hr){return e.range(Z.length).map(function(Cr){return _t+hr*Cr})}return st.domain=function(_t){if(!arguments.length)return Z;Z=[],ze=new T;for(var hr=-1,Cr=_t.length,zr;++hr0?ze[st-1]:Z[0],st$r?0:1;if(zr=_e)return hr(zr,fn)+(Cr?hr(Cr,1-fn):"")+"Z";var pi,zi,Xi,pn,sn=0,bi=0,xo,no,Xo,js,El,Pl,pu,Il,fu=[];if((pn=(+jt.apply(this,arguments)||0)/2)&&(Xi=je===ll?Math.sqrt(Cr*Cr+zr*zr):+je.apply(this,arguments),fn||(bi*=-1),zr&&(bi=Wr(Xi/zr*Math.sin(pn))),Cr&&(sn=Wr(Xi/Cr*Math.sin(pn)))),zr){xo=zr*Math.cos(ui+bi),no=zr*Math.sin(ui+bi),Xo=zr*Math.cos($r-bi),js=zr*Math.sin($r-bi);var Zu=Math.abs($r-ui-2*bi)<=De?0:1;if(bi&&Ll(xo,no,Xo,js)===fn^Zu){var Vu=(ui+$r)/2;xo=zr*Math.cos(Vu),no=zr*Math.sin(Vu),Xo=js=null}}else xo=no=0;if(Cr){El=Cr*Math.cos($r-sn),Pl=Cr*Math.sin($r-sn),pu=Cr*Math.cos(ui+sn),Il=Cr*Math.sin(ui+sn);var rf=Math.abs(ui-$r+2*sn)<=De?0:1;if(sn&&Ll(El,Pl,pu,Il)===1-fn^rf){var ds=(ui+$r)/2;El=Cr*Math.cos(ds),Pl=Cr*Math.sin(ds),pu=Il=null}}else El=Pl=0;if(Oi>Oe&&(pi=Math.min(Math.abs(zr-Cr)/2,+ze.apply(this,arguments)))>.001){zi=Cr0?0:1}function ms(Z,se,ze,je,$e){var st=Z[0]-se[0],jt=Z[1]-se[1],_t=($e?je:-je)/Math.sqrt(st*st+jt*jt),hr=_t*jt,Cr=-_t*st,zr=Z[0]+hr,ui=Z[1]+Cr,$r=se[0]+hr,Oi=se[1]+Cr,fn=(zr+$r)/2,pi=(ui+Oi)/2,zi=$r-zr,Xi=Oi-ui,pn=zi*zi+Xi*Xi,sn=ze-je,bi=zr*Oi-$r*ui,xo=(Xi<0?-1:1)*Math.sqrt(Math.max(0,sn*sn*pn-bi*bi)),no=(bi*Xi-zi*xo)/pn,Xo=(-bi*zi-Xi*xo)/pn,js=(bi*Xi+zi*xo)/pn,El=(-bi*zi+Xi*xo)/pn,Pl=no-fn,pu=Xo-pi,Il=js-fn,fu=El-pi;return Pl*Pl+pu*pu>Il*Il+fu*fu&&(no=js,Xo=El),[[no-hr,Xo-Cr],[no*ze/sn,Xo*ze/sn]]}function Os(){return!0}function Xl(Z){var se=Kr,ze=Ia,je=Os,$e=Ul,st=$e.key,jt=.7;function _t(hr){var Cr=[],zr=[],ui=-1,$r=hr.length,Oi,fn=gr(se),pi=gr(ze);function zi(){Cr.push("M",$e(Z(zr),jt))}for(;++ui<$r;)je.call(this,Oi=hr[ui],ui)?zr.push([+fn.call(this,Oi,ui),+pi.call(this,Oi,ui)]):zr.length&&(zi(),zr=[]);return zr.length&&zi(),Cr.length?Cr.join(""):null}return _t.x=function(hr){return arguments.length?(se=hr,_t):se},_t.y=function(hr){return arguments.length?(ze=hr,_t):ze},_t.defined=function(hr){return arguments.length?(je=hr,_t):je},_t.interpolate=function(hr){return arguments.length?(typeof hr=="function"?st=$e=hr:st=($e=Gl.get(hr)||Ul).key,_t):st},_t.tension=function(hr){return arguments.length?(jt=hr,_t):jt},_t}e.svg.line=function(){return Xl(G)};var Gl=e.map({linear:Ul,"linear-closed":le,step:w,"step-before":q,"step-after":Q,basis:Dt,"basis-open":ir,"basis-closed":or,bundle:kr,cardinal:Ve,"cardinal-open":ee,"cardinal-closed":ue,monotone:Gt});Gl.forEach(function(Z,se){se.key=Z,se.closed=/-closed$/.test(Z)});function Ul(Z){return Z.length>1?Z.join("L"):Z+"Z"}function le(Z){return Z.join("L")+"Z"}function w(Z){for(var se=0,ze=Z.length,je=Z[0],$e=[je[0],",",je[1]];++se1&&$e.push("H",je[0]),$e.join("")}function q(Z){for(var se=0,ze=Z.length,je=Z[0],$e=[je[0],",",je[1]];++se1){_t=se[1],st=Z[hr],hr++,je+="C"+($e[0]+jt[0])+","+($e[1]+jt[1])+","+(st[0]-_t[0])+","+(st[1]-_t[1])+","+st[0]+","+st[1];for(var Cr=2;Cr9&&(st=ze*3/Math.sqrt(st),jt[_t]=st*je,jt[_t+1]=st*$e));for(_t=-1;++_t<=hr;)st=(Z[Math.min(hr,_t+1)][0]-Z[Math.max(0,_t-1)][0])/(6*(1+jt[_t]*jt[_t])),se.push([st||0,jt[_t]*st||0]);return se}function Gt(Z){return Z.length<3?Ul(Z):Z[0]+et(Z,vt(Z))}e.svg.line.radial=function(){var Z=Xl(nr);return Z.radius=Z.x,delete Z.x,Z.angle=Z.y,delete Z.y,Z};function nr(Z){for(var se,ze=-1,je=Z.length,$e,st;++zeDe)+",1 "+ui}function Cr(zr,ui,$r,Oi){return"Q 0,0 "+Oi}return st.radius=function(zr){return arguments.length?(ze=gr(zr),st):ze},st.source=function(zr){return arguments.length?(Z=gr(zr),st):Z},st.target=function(zr){return arguments.length?(se=gr(zr),st):se},st.startAngle=function(zr){return arguments.length?(je=gr(zr),st):je},st.endAngle=function(zr){return arguments.length?($e=gr(zr),st):$e},st};function ri(Z){return Z.radius}e.svg.diagonal=function(){var Z=Ar,se=Rr,ze=si;function je($e,st){var jt=Z.call(this,$e,st),_t=se.call(this,$e,st),hr=(jt.y+_t.y)/2,Cr=[jt,{x:jt.x,y:hr},{x:_t.x,y:hr},_t];return Cr=Cr.map(ze),"M"+Cr[0]+"C"+Cr[1]+" "+Cr[2]+" "+Cr[3]}return je.source=function($e){return arguments.length?(Z=gr($e),je):Z},je.target=function($e){return arguments.length?(se=gr($e),je):se},je.projection=function($e){return arguments.length?(ze=$e,je):ze},je};function si(Z){return[Z.x,Z.y]}e.svg.diagonal.radial=function(){var Z=e.svg.diagonal(),se=si,ze=Z.projection;return Z.projection=function(je){return arguments.length?ze(Mi(se=je)):se},Z};function Mi(Z){return function(){var se=Z.apply(this,arguments),ze=se[0],je=se[1]-fe;return[ze*Math.cos(je),ze*Math.sin(je)]}}e.svg.symbol=function(){var Z=Zn,se=hn;function ze(je,$e){return(Ua.get(Z.call(this,je,$e))||Yn)(se.call(this,je,$e))}return ze.type=function(je){return arguments.length?(Z=gr(je),ze):Z},ze.size=function(je){return arguments.length?(se=gr(je),ze):se},ze};function hn(){return 64}function Zn(){return"circle"}function Yn(Z){var se=Math.sqrt(Z/De);return"M0,"+se+"A"+se+","+se+" 0 1,1 0,"+-se+"A"+se+","+se+" 0 1,1 0,"+se+"Z"}var Ua=e.map({circle:Yn,cross:function(Z){var se=Math.sqrt(Z/5)/2;return"M"+-3*se+","+-se+"H"+-se+"V"+-3*se+"H"+se+"V"+-se+"H"+3*se+"V"+se+"H"+se+"V"+3*se+"H"+-se+"V"+se+"H"+-3*se+"Z"},diamond:function(Z){var se=Math.sqrt(Z/(2*vl)),ze=se*vl;return"M0,"+-se+"L"+ze+",0 0,"+se+" "+-ze+",0Z"},square:function(Z){var se=Math.sqrt(Z)/2;return"M"+-se+","+-se+"L"+se+","+-se+" "+se+","+se+" "+-se+","+se+"Z"},"triangle-down":function(Z){var se=Math.sqrt(Z/Fo),ze=se*Fo/2;return"M0,"+ze+"L"+se+","+-ze+" "+-se+","+-ze+"Z"},"triangle-up":function(Z){var se=Math.sqrt(Z/Fo),ze=se*Fo/2;return"M0,"+-ze+"L"+se+","+ze+" "+-se+","+ze+"Z"}});e.svg.symbolTypes=Ua.keys();var Fo=Math.sqrt(3),vl=Math.tan(30*pe);Fe.transition=function(Z){for(var se=ql||++Yl,ze=tu(Z),je=[],$e,st,jt=ou||{time:Date.now(),ease:yo,delay:0,duration:250},_t=-1,hr=this.length;++_t0;)ui[--pn].call(Z,Xi);if(zi>=1)return jt.event&&jt.event.end.call(Z,Z.__data__,se),--st.count?delete st[je]:delete Z[ze],1}jt||(_t=$e.time,hr=ma($r,0,_t),jt=st[je]={tween:new T,time:_t,timer:hr,delay:$e.delay,duration:$e.duration,ease:$e.ease,index:se},$e=null,++st.count)}e.svg.axis=function(){var Z=e.scale.linear(),se=Qu,ze=6,je=6,$e=3,st=[10],jt=null,_t;function hr(Cr){Cr.each(function(){var zr=e.select(this),ui=this.__chart__||Z,$r=this.__chart__=Z.copy(),Oi=jt==null?$r.ticks?$r.ticks.apply($r,st):$r.domain():jt,fn=_t==null?$r.tickFormat?$r.tickFormat.apply($r,st):G:_t,pi=zr.selectAll(".tick").data(Oi,$r),zi=pi.enter().insert("g",".domain").attr("class","tick").style("opacity",Oe),Xi=e.transition(pi.exit()).style("opacity",Oe).remove(),pn=e.transition(pi.order()).style("opacity",1),sn=Math.max(ze,0)+$e,bi,xo=Ji($r),no=zr.selectAll(".domain").data([0]),Xo=(no.enter().append("path").attr("class","domain"),e.transition(no));zi.append("line"),zi.append("text");var js=zi.select("line"),El=pn.select("line"),Pl=pi.select("text").text(fn),pu=zi.select("text"),Il=pn.select("text"),fu=se==="top"||se==="left"?-1:1,Zu,Vu,rf,ds;if(se==="bottom"||se==="top"?(bi=ju,Zu="x",rf="y",Vu="x2",ds="y2",Pl.attr("dy",fu<0?"0em":".71em").style("text-anchor","middle"),Xo.attr("d","M"+xo[0]+","+fu*je+"V0H"+xo[1]+"V"+fu*je)):(bi=Xu,Zu="y",rf="x",Vu="y2",ds="x2",Pl.attr("dy",".32em").style("text-anchor",fu<0?"end":"start"),Xo.attr("d","M"+fu*je+","+xo[0]+"H0V"+xo[1]+"H"+fu*je)),js.attr(ds,fu*ze),pu.attr(rf,fu*sn),El.attr(Vu,0).attr(ds,fu*ze),Il.attr(Zu,0).attr(rf,fu*sn),$r.rangeBand){var Wl=$r,Au=Wl.rangeBand()/2;ui=$r=function(Tu){return Wl(Tu)+Au}}else ui.rangeBand?ui=$r:Xi.call(bi,$r,ui);zi.call(bi,ui,$r),pn.call(bi,$r,$r)})}return hr.scale=function(Cr){return arguments.length?(Z=Cr,hr):Z},hr.orient=function(Cr){return arguments.length?(se=Cr in Ku?Cr+"":Qu,hr):se},hr.ticks=function(){return arguments.length?(st=r(arguments),hr):st},hr.tickValues=function(Cr){return arguments.length?(jt=Cr,hr):jt},hr.tickFormat=function(Cr){return arguments.length?(_t=Cr,hr):_t},hr.tickSize=function(Cr){var zr=arguments.length;return zr?(ze=+Cr,je=+arguments[zr-1],hr):ze},hr.innerTickSize=function(Cr){return arguments.length?(ze=+Cr,hr):ze},hr.outerTickSize=function(Cr){return arguments.length?(je=+Cr,hr):je},hr.tickPadding=function(Cr){return arguments.length?($e=+Cr,hr):$e},hr.tickSubdivide=function(){return arguments.length&&hr},hr};var Qu="bottom",Ku={top:1,right:1,bottom:1,left:1};function ju(Z,se,ze){Z.attr("transform",function(je){var $e=se(je);return"translate("+(isFinite($e)?$e:ze(je))+",0)"})}function Xu(Z,se,ze){Z.attr("transform",function(je){var $e=se(je);return"translate(0,"+(isFinite($e)?$e:ze(je))+")"})}e.svg.brush=function(){var Z=Ce(zr,"brushstart","brush","brushend"),se=null,ze=null,je=[0,0],$e=[0,0],st,jt,_t=!0,hr=!0,Cr=xf[0];function zr(pi){pi.each(function(){var zi=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",fn).on("touchstart.brush",fn),Xi=zi.selectAll(".background").data([0]);Xi.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),zi.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var pn=zi.selectAll(".resize").data(Cr,G);pn.exit().remove(),pn.enter().append("g").attr("class",function(no){return"resize "+no}).style("cursor",function(no){return lf[no]}).append("rect").attr("x",function(no){return/[ew]$/.test(no)?-3:null}).attr("y",function(no){return/^[ns]/.test(no)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),pn.style("display",zr.empty()?"none":null);var sn=e.transition(zi),bi=e.transition(Xi),xo;se&&(xo=Ji(se),bi.attr("x",xo[0]).attr("width",xo[1]-xo[0]),$r(sn)),ze&&(xo=Ji(ze),bi.attr("y",xo[0]).attr("height",xo[1]-xo[0]),Oi(sn)),ui(sn)})}zr.event=function(pi){pi.each(function(){var zi=Z.of(this,arguments),Xi={x:je,y:$e,i:st,j:jt},pn=this.__chart__||Xi;this.__chart__=Xi,ql?e.select(this).transition().each("start.brush",function(){st=pn.i,jt=pn.j,je=pn.x,$e=pn.y,zi({type:"brushstart"})}).tween("brush:brush",function(){var sn=Ja(je,Xi.x),bi=Ja($e,Xi.y);return st=jt=null,function(xo){je=Xi.x=sn(xo),$e=Xi.y=bi(xo),zi({type:"brush",mode:"resize"})}}).each("end.brush",function(){st=Xi.i,jt=Xi.j,zi({type:"brush",mode:"resize"}),zi({type:"brushend"})}):(zi({type:"brushstart"}),zi({type:"brush",mode:"resize"}),zi({type:"brushend"}))})};function ui(pi){pi.selectAll(".resize").attr("transform",function(zi){return"translate("+je[+/e$/.test(zi)]+","+$e[+/^s/.test(zi)]+")"})}function $r(pi){pi.select(".extent").attr("x",je[0]),pi.selectAll(".extent,.n>rect,.s>rect").attr("width",je[1]-je[0])}function Oi(pi){pi.select(".extent").attr("y",$e[0]),pi.selectAll(".extent,.e>rect,.w>rect").attr("height",$e[1]-$e[0])}function fn(){var pi=this,zi=e.select(e.event.target),Xi=Z.of(pi,arguments),pn=e.select(pi),sn=zi.datum(),bi=!/^(n|s)$/.test(sn)&&se,xo=!/^(e|w)$/.test(sn)&&ze,no=zi.classed("extent"),Xo=_r(pi),js,El=e.mouse(pi),Pl,pu=e.select(a(pi)).on("keydown.brush",Zu).on("keyup.brush",Vu);if(e.event.changedTouches?pu.on("touchmove.brush",rf).on("touchend.brush",Wl):pu.on("mousemove.brush",rf).on("mouseup.brush",Wl),pn.interrupt().selectAll("*").interrupt(),no)El[0]=je[0]-El[0],El[1]=$e[0]-El[1];else if(sn){var Il=+/w$/.test(sn),fu=+/^n/.test(sn);Pl=[je[1-Il]-El[0],$e[1-fu]-El[1]],El[0]=je[Il],El[1]=$e[fu]}else e.event.altKey&&(js=El.slice());pn.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",zi.style("cursor")),Xi({type:"brushstart"}),rf();function Zu(){e.event.keyCode==32&&(no||(js=null,El[0]-=je[1],El[1]-=$e[1],no=2),be())}function Vu(){e.event.keyCode==32&&no==2&&(El[0]+=je[1],El[1]+=$e[1],no=0,be())}function rf(){var Au=e.mouse(pi),Tu=!1;Pl&&(Au[0]+=Pl[0],Au[1]+=Pl[1]),no||(e.event.altKey?(js||(js=[(je[0]+je[1])/2,($e[0]+$e[1])/2]),El[0]=je[+(Au[0]{(function(e,t){typeof aL=="object"&&typeof See!="undefined"?t(aL):(e=e||self,t(e.d3=e.d3||{}))})(aL,function(e){"use strict";var t=new Date,r=new Date;function n(Ae,ot,dt,pt){function at(Xe){return Ae(Xe=arguments.length===0?new Date:new Date(+Xe)),Xe}return at.floor=function(Xe){return Ae(Xe=new Date(+Xe)),Xe},at.ceil=function(Xe){return Ae(Xe=new Date(Xe-1)),ot(Xe,1),Ae(Xe),Xe},at.round=function(Xe){var rt=at(Xe),Qe=at.ceil(Xe);return Xe-rt0))return zt;do zt.push(Yt=new Date(+Xe)),ot(Xe,Qe),Ae(Xe);while(Yt=rt)for(;Ae(rt),!Xe(rt);)rt.setTime(rt-1)},function(rt,Qe){if(rt>=rt)if(Qe<0)for(;++Qe<=0;)for(;ot(rt,-1),!Xe(rt););else for(;--Qe>=0;)for(;ot(rt,1),!Xe(rt););})},dt&&(at.count=function(Xe,rt){return t.setTime(+Xe),r.setTime(+rt),Ae(t),Ae(r),Math.floor(dt(t,r))},at.every=function(Xe){return Xe=Math.floor(Xe),!isFinite(Xe)||!(Xe>0)?null:Xe>1?at.filter(pt?function(rt){return pt(rt)%Xe===0}:function(rt){return at.count(0,rt)%Xe===0}):at}),at}var i=n(function(){},function(Ae,ot){Ae.setTime(+Ae+ot)},function(Ae,ot){return ot-Ae});i.every=function(Ae){return Ae=Math.floor(Ae),!isFinite(Ae)||!(Ae>0)?null:Ae>1?n(function(ot){ot.setTime(Math.floor(ot/Ae)*Ae)},function(ot,dt){ot.setTime(+ot+dt*Ae)},function(ot,dt){return(dt-ot)/Ae}):i};var a=i.range,o=1e3,s=6e4,u=36e5,l=864e5,f=6048e5,c=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds())},function(Ae,ot){Ae.setTime(+Ae+ot*o)},function(Ae,ot){return(ot-Ae)/o},function(Ae){return Ae.getUTCSeconds()}),h=c.range,d=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds()-Ae.getSeconds()*o)},function(Ae,ot){Ae.setTime(+Ae+ot*s)},function(Ae,ot){return(ot-Ae)/s},function(Ae){return Ae.getMinutes()}),p=d.range,x=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds()-Ae.getSeconds()*o-Ae.getMinutes()*s)},function(Ae,ot){Ae.setTime(+Ae+ot*u)},function(Ae,ot){return(ot-Ae)/u},function(Ae){return Ae.getHours()}),b=x.range,v=n(function(Ae){Ae.setHours(0,0,0,0)},function(Ae,ot){Ae.setDate(Ae.getDate()+ot)},function(Ae,ot){return(ot-Ae-(ot.getTimezoneOffset()-Ae.getTimezoneOffset())*s)/l},function(Ae){return Ae.getDate()-1}),k=v.range;function E(Ae){return n(function(ot){ot.setDate(ot.getDate()-(ot.getDay()+7-Ae)%7),ot.setHours(0,0,0,0)},function(ot,dt){ot.setDate(ot.getDate()+dt*7)},function(ot,dt){return(dt-ot-(dt.getTimezoneOffset()-ot.getTimezoneOffset())*s)/f})}var T=E(0),L=E(1),_=E(2),C=E(3),S=E(4),m=E(5),P=E(6),A=T.range,B=L.range,F=_.range,U=C.range,G=S.range,j=m.range,H=P.range,N=n(function(Ae){Ae.setDate(1),Ae.setHours(0,0,0,0)},function(Ae,ot){Ae.setMonth(Ae.getMonth()+ot)},function(Ae,ot){return ot.getMonth()-Ae.getMonth()+(ot.getFullYear()-Ae.getFullYear())*12},function(Ae){return Ae.getMonth()}),W=N.range,re=n(function(Ae){Ae.setMonth(0,1),Ae.setHours(0,0,0,0)},function(Ae,ot){Ae.setFullYear(Ae.getFullYear()+ot)},function(Ae,ot){return ot.getFullYear()-Ae.getFullYear()},function(Ae){return Ae.getFullYear()});re.every=function(Ae){return!isFinite(Ae=Math.floor(Ae))||!(Ae>0)?null:n(function(ot){ot.setFullYear(Math.floor(ot.getFullYear()/Ae)*Ae),ot.setMonth(0,1),ot.setHours(0,0,0,0)},function(ot,dt){ot.setFullYear(ot.getFullYear()+dt*Ae)})};var ae=re.range,be=n(function(Ae){Ae.setUTCSeconds(0,0)},function(Ae,ot){Ae.setTime(+Ae+ot*s)},function(Ae,ot){return(ot-Ae)/s},function(Ae){return Ae.getUTCMinutes()}),Pe=be.range,Ce=n(function(Ae){Ae.setUTCMinutes(0,0,0)},function(Ae,ot){Ae.setTime(+Ae+ot*u)},function(Ae,ot){return(ot-Ae)/u},function(Ae){return Ae.getUTCHours()}),de=Ce.range,te=n(function(Ae){Ae.setUTCHours(0,0,0,0)},function(Ae,ot){Ae.setUTCDate(Ae.getUTCDate()+ot)},function(Ae,ot){return(ot-Ae)/l},function(Ae){return Ae.getUTCDate()-1}),ke=te.range;function Ee(Ae){return n(function(ot){ot.setUTCDate(ot.getUTCDate()-(ot.getUTCDay()+7-Ae)%7),ot.setUTCHours(0,0,0,0)},function(ot,dt){ot.setUTCDate(ot.getUTCDate()+dt*7)},function(ot,dt){return(dt-ot)/f})}var Me=Ee(0),Ue=Ee(1),Fe=Ee(2),me=Ee(3),Ne=Ee(4),ce=Ee(5),Ke=Ee(6),it=Me.range,bt=Ue.range,Nt=Fe.range,nt=me.range,Ye=Ne.range,kt=ce.range,At=Ke.range,St=n(function(Ae){Ae.setUTCDate(1),Ae.setUTCHours(0,0,0,0)},function(Ae,ot){Ae.setUTCMonth(Ae.getUTCMonth()+ot)},function(Ae,ot){return ot.getUTCMonth()-Ae.getUTCMonth()+(ot.getUTCFullYear()-Ae.getUTCFullYear())*12},function(Ae){return Ae.getUTCMonth()}),Bt=St.range,Zt=n(function(Ae){Ae.setUTCMonth(0,1),Ae.setUTCHours(0,0,0,0)},function(Ae,ot){Ae.setUTCFullYear(Ae.getUTCFullYear()+ot)},function(Ae,ot){return ot.getUTCFullYear()-Ae.getUTCFullYear()},function(Ae){return Ae.getUTCFullYear()});Zt.every=function(Ae){return!isFinite(Ae=Math.floor(Ae))||!(Ae>0)?null:n(function(ot){ot.setUTCFullYear(Math.floor(ot.getUTCFullYear()/Ae)*Ae),ot.setUTCMonth(0,1),ot.setUTCHours(0,0,0,0)},function(ot,dt){ot.setUTCFullYear(ot.getUTCFullYear()+dt*Ae)})};var Et=Zt.range;e.timeDay=v,e.timeDays=k,e.timeFriday=m,e.timeFridays=j,e.timeHour=x,e.timeHours=b,e.timeInterval=n,e.timeMillisecond=i,e.timeMilliseconds=a,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=L,e.timeMondays=B,e.timeMonth=N,e.timeMonths=W,e.timeSaturday=P,e.timeSaturdays=H,e.timeSecond=c,e.timeSeconds=h,e.timeSunday=T,e.timeSundays=A,e.timeThursday=S,e.timeThursdays=G,e.timeTuesday=_,e.timeTuesdays=F,e.timeWednesday=C,e.timeWednesdays=U,e.timeWeek=T,e.timeWeeks=A,e.timeYear=re,e.timeYears=ae,e.utcDay=te,e.utcDays=ke,e.utcFriday=ce,e.utcFridays=kt,e.utcHour=Ce,e.utcHours=de,e.utcMillisecond=i,e.utcMilliseconds=a,e.utcMinute=be,e.utcMinutes=Pe,e.utcMonday=Ue,e.utcMondays=bt,e.utcMonth=St,e.utcMonths=Bt,e.utcSaturday=Ke,e.utcSaturdays=At,e.utcSecond=c,e.utcSeconds=h,e.utcSunday=Me,e.utcSundays=it,e.utcThursday=Ne,e.utcThursdays=Ye,e.utcTuesday=Fe,e.utcTuesdays=Nt,e.utcWednesday=me,e.utcWednesdays=nt,e.utcWeek=Me,e.utcWeeks=it,e.utcYear=Zt,e.utcYears=Et,Object.defineProperty(e,"__esModule",{value:!0})})});var e3=Te((oL,Mee)=>{(function(e,t){typeof oL=="object"&&typeof Mee!="undefined"?t(oL,M9()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(oL,function(e,t){"use strict";function r(xe){if(0<=xe.y&&xe.y<100){var Oe=new Date(-1,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L);return Oe.setFullYear(xe.y),Oe}return new Date(xe.y,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L)}function n(xe){if(0<=xe.y&&xe.y<100){var Oe=new Date(Date.UTC(-1,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L));return Oe.setUTCFullYear(xe.y),Oe}return new Date(Date.UTC(xe.y,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L))}function i(xe,Oe,Ie){return{y:xe,m:Oe,d:Ie,H:0,M:0,S:0,L:0}}function a(xe){var Oe=xe.dateTime,Ie=xe.date,De=xe.time,ct=xe.periods,_e=xe.days,fe=xe.shortDays,pe=xe.months,mt=xe.shortMonths,It=h(ct),Pt=d(ct),rr=h(_e),Wr=d(_e),Nr=h(fe),Er=d(fe),Br=h(pe),mi=d(pe),Di=h(mt),Ii=d(mt),Ci={a:jr,A:yi,b:Ei,B:Vi,c:null,d:N,e:N,f:Pe,H:W,I:re,j:ae,L:be,m:Ce,M:de,p:ti,q:en,Q:rt,s:Qe,S:te,u:ke,U:Ee,V:Me,w:Ue,W:Fe,x:null,X:null,y:me,Y:Ne,Z:ce,"%":Xe},nn={a:Yr,A:oi,b:Bi,B:an,c:null,d:Ke,e:Ke,f:Ye,H:it,I:bt,j:Nt,L:nt,m:kt,M:At,p:rn,q:Fi,Q:rt,s:Qe,S:St,u:Bt,U:Zt,V:Et,w:Ae,W:ot,x:null,X:null,y:dt,Y:pt,Z:at,"%":Xe},ii={a:Ut,A:Wt,b:xr,B:Lr,c:Ur,d:S,e:S,f:U,H:P,I:P,j:m,L:F,m:C,M:A,p:gt,q:_,Q:j,s:H,S:B,u:x,U:b,V:v,w:p,W:k,x:Ir,X:Gr,y:T,Y:E,Z:L,"%":G};Ci.x=wi(Ie,Ci),Ci.X=wi(De,Ci),Ci.c=wi(Oe,Ci),nn.x=wi(Ie,nn),nn.X=wi(De,nn),nn.c=wi(Oe,nn);function wi(Ri,xn){return function(xi){var Xr=[],ft=-1,tr=0,pr=Ri.length,gr,Zr,Ai;for(xi instanceof Date||(xi=new Date(+xi));++ft53)return null;"w"in Xr||(Xr.w=1),"Z"in Xr?(tr=n(i(Xr.y,0,1)),pr=tr.getUTCDay(),tr=pr>4||pr===0?t.utcMonday.ceil(tr):t.utcMonday(tr),tr=t.utcDay.offset(tr,(Xr.V-1)*7),Xr.y=tr.getUTCFullYear(),Xr.m=tr.getUTCMonth(),Xr.d=tr.getUTCDate()+(Xr.w+6)%7):(tr=r(i(Xr.y,0,1)),pr=tr.getDay(),tr=pr>4||pr===0?t.timeMonday.ceil(tr):t.timeMonday(tr),tr=t.timeDay.offset(tr,(Xr.V-1)*7),Xr.y=tr.getFullYear(),Xr.m=tr.getMonth(),Xr.d=tr.getDate()+(Xr.w+6)%7)}else("W"in Xr||"U"in Xr)&&("w"in Xr||(Xr.w="u"in Xr?Xr.u%7:"W"in Xr?1:0),pr="Z"in Xr?n(i(Xr.y,0,1)).getUTCDay():r(i(Xr.y,0,1)).getDay(),Xr.m=0,Xr.d="W"in Xr?(Xr.w+6)%7+Xr.W*7-(pr+5)%7:Xr.w+Xr.U*7-(pr+6)%7);return"Z"in Xr?(Xr.H+=Xr.Z/100|0,Xr.M+=Xr.Z%100,n(Xr)):r(Xr)}}function Ft(Ri,xn,xi,Xr){for(var ft=0,tr=xn.length,pr=xi.length,gr,Zr;ft=pr)return-1;if(gr=xn.charCodeAt(ft++),gr===37){if(gr=xn.charAt(ft++),Zr=ii[gr in o?xn.charAt(ft++):gr],!Zr||(Xr=Zr(Ri,xi,Xr))<0)return-1}else if(gr!=xi.charCodeAt(Xr++))return-1}return Xr}function gt(Ri,xn,xi){var Xr=It.exec(xn.slice(xi));return Xr?(Ri.p=Pt[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function Ut(Ri,xn,xi){var Xr=Nr.exec(xn.slice(xi));return Xr?(Ri.w=Er[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function Wt(Ri,xn,xi){var Xr=rr.exec(xn.slice(xi));return Xr?(Ri.w=Wr[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function xr(Ri,xn,xi){var Xr=Di.exec(xn.slice(xi));return Xr?(Ri.m=Ii[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function Lr(Ri,xn,xi){var Xr=Br.exec(xn.slice(xi));return Xr?(Ri.m=mi[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function Ur(Ri,xn,xi){return Ft(Ri,Oe,xn,xi)}function Ir(Ri,xn,xi){return Ft(Ri,Ie,xn,xi)}function Gr(Ri,xn,xi){return Ft(Ri,De,xn,xi)}function jr(Ri){return fe[Ri.getDay()]}function yi(Ri){return _e[Ri.getDay()]}function Ei(Ri){return mt[Ri.getMonth()]}function Vi(Ri){return pe[Ri.getMonth()]}function ti(Ri){return ct[+(Ri.getHours()>=12)]}function en(Ri){return 1+~~(Ri.getMonth()/3)}function Yr(Ri){return fe[Ri.getUTCDay()]}function oi(Ri){return _e[Ri.getUTCDay()]}function Bi(Ri){return mt[Ri.getUTCMonth()]}function an(Ri){return pe[Ri.getUTCMonth()]}function rn(Ri){return ct[+(Ri.getUTCHours()>=12)]}function Fi(Ri){return 1+~~(Ri.getUTCMonth()/3)}return{format:function(Ri){var xn=wi(Ri+="",Ci);return xn.toString=function(){return Ri},xn},parse:function(Ri){var xn=Gi(Ri+="",!1);return xn.toString=function(){return Ri},xn},utcFormat:function(Ri){var xn=wi(Ri+="",nn);return xn.toString=function(){return Ri},xn},utcParse:function(Ri){var xn=Gi(Ri+="",!0);return xn.toString=function(){return Ri},xn}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,u=/^%/,l=/[\\^$*+?|[\]().{}]/g;function f(xe,Oe,Ie){var De=xe<0?"-":"",ct=(De?-xe:xe)+"",_e=ct.length;return De+(_e68?1900:2e3),Ie+De[0].length):-1}function L(xe,Oe,Ie){var De=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Oe.slice(Ie,Ie+6));return De?(xe.Z=De[1]?0:-(De[2]+(De[3]||"00")),Ie+De[0].length):-1}function _(xe,Oe,Ie){var De=s.exec(Oe.slice(Ie,Ie+1));return De?(xe.q=De[0]*3-3,Ie+De[0].length):-1}function C(xe,Oe,Ie){var De=s.exec(Oe.slice(Ie,Ie+2));return De?(xe.m=De[0]-1,Ie+De[0].length):-1}function S(xe,Oe,Ie){var De=s.exec(Oe.slice(Ie,Ie+2));return De?(xe.d=+De[0],Ie+De[0].length):-1}function m(xe,Oe,Ie){var De=s.exec(Oe.slice(Ie,Ie+3));return De?(xe.m=0,xe.d=+De[0],Ie+De[0].length):-1}function P(xe,Oe,Ie){var De=s.exec(Oe.slice(Ie,Ie+2));return De?(xe.H=+De[0],Ie+De[0].length):-1}function A(xe,Oe,Ie){var De=s.exec(Oe.slice(Ie,Ie+2));return De?(xe.M=+De[0],Ie+De[0].length):-1}function B(xe,Oe,Ie){var De=s.exec(Oe.slice(Ie,Ie+2));return De?(xe.S=+De[0],Ie+De[0].length):-1}function F(xe,Oe,Ie){var De=s.exec(Oe.slice(Ie,Ie+3));return De?(xe.L=+De[0],Ie+De[0].length):-1}function U(xe,Oe,Ie){var De=s.exec(Oe.slice(Ie,Ie+6));return De?(xe.L=Math.floor(De[0]/1e3),Ie+De[0].length):-1}function G(xe,Oe,Ie){var De=u.exec(Oe.slice(Ie,Ie+1));return De?Ie+De[0].length:-1}function j(xe,Oe,Ie){var De=s.exec(Oe.slice(Ie));return De?(xe.Q=+De[0],Ie+De[0].length):-1}function H(xe,Oe,Ie){var De=s.exec(Oe.slice(Ie));return De?(xe.s=+De[0],Ie+De[0].length):-1}function N(xe,Oe){return f(xe.getDate(),Oe,2)}function W(xe,Oe){return f(xe.getHours(),Oe,2)}function re(xe,Oe){return f(xe.getHours()%12||12,Oe,2)}function ae(xe,Oe){return f(1+t.timeDay.count(t.timeYear(xe),xe),Oe,3)}function be(xe,Oe){return f(xe.getMilliseconds(),Oe,3)}function Pe(xe,Oe){return be(xe,Oe)+"000"}function Ce(xe,Oe){return f(xe.getMonth()+1,Oe,2)}function de(xe,Oe){return f(xe.getMinutes(),Oe,2)}function te(xe,Oe){return f(xe.getSeconds(),Oe,2)}function ke(xe){var Oe=xe.getDay();return Oe===0?7:Oe}function Ee(xe,Oe){return f(t.timeSunday.count(t.timeYear(xe)-1,xe),Oe,2)}function Me(xe,Oe){var Ie=xe.getDay();return xe=Ie>=4||Ie===0?t.timeThursday(xe):t.timeThursday.ceil(xe),f(t.timeThursday.count(t.timeYear(xe),xe)+(t.timeYear(xe).getDay()===4),Oe,2)}function Ue(xe){return xe.getDay()}function Fe(xe,Oe){return f(t.timeMonday.count(t.timeYear(xe)-1,xe),Oe,2)}function me(xe,Oe){return f(xe.getFullYear()%100,Oe,2)}function Ne(xe,Oe){return f(xe.getFullYear()%1e4,Oe,4)}function ce(xe){var Oe=xe.getTimezoneOffset();return(Oe>0?"-":(Oe*=-1,"+"))+f(Oe/60|0,"0",2)+f(Oe%60,"0",2)}function Ke(xe,Oe){return f(xe.getUTCDate(),Oe,2)}function it(xe,Oe){return f(xe.getUTCHours(),Oe,2)}function bt(xe,Oe){return f(xe.getUTCHours()%12||12,Oe,2)}function Nt(xe,Oe){return f(1+t.utcDay.count(t.utcYear(xe),xe),Oe,3)}function nt(xe,Oe){return f(xe.getUTCMilliseconds(),Oe,3)}function Ye(xe,Oe){return nt(xe,Oe)+"000"}function kt(xe,Oe){return f(xe.getUTCMonth()+1,Oe,2)}function At(xe,Oe){return f(xe.getUTCMinutes(),Oe,2)}function St(xe,Oe){return f(xe.getUTCSeconds(),Oe,2)}function Bt(xe){var Oe=xe.getUTCDay();return Oe===0?7:Oe}function Zt(xe,Oe){return f(t.utcSunday.count(t.utcYear(xe)-1,xe),Oe,2)}function Et(xe,Oe){var Ie=xe.getUTCDay();return xe=Ie>=4||Ie===0?t.utcThursday(xe):t.utcThursday.ceil(xe),f(t.utcThursday.count(t.utcYear(xe),xe)+(t.utcYear(xe).getUTCDay()===4),Oe,2)}function Ae(xe){return xe.getUTCDay()}function ot(xe,Oe){return f(t.utcMonday.count(t.utcYear(xe)-1,xe),Oe,2)}function dt(xe,Oe){return f(xe.getUTCFullYear()%100,Oe,2)}function pt(xe,Oe){return f(xe.getUTCFullYear()%1e4,Oe,4)}function at(){return"+0000"}function Xe(){return"%"}function rt(xe){return+xe}function Qe(xe){return Math.floor(+xe/1e3)}var zt;Yt({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Yt(xe){return zt=a(xe),e.timeFormat=zt.format,e.timeParse=zt.parse,e.utcFormat=zt.utcFormat,e.utcParse=zt.utcParse,zt}var lr="%Y-%m-%dT%H:%M:%S.%LZ";function mr(xe){return xe.toISOString()}var _r=Date.prototype.toISOString?mr:e.utcFormat(lr);function Ht(xe){var Oe=new Date(xe);return isNaN(Oe)?null:Oe}var Re=+new Date("2000-01-01T00:00:00.000Z")?Ht:e.utcParse(lr);e.isoFormat=_r,e.isoParse=Re,e.timeFormatDefaultLocale=Yt,e.timeFormatLocale=a,Object.defineProperty(e,"__esModule",{value:!0})})});var E9=Te((sL,Eee)=>{(function(e,t){typeof sL=="object"&&typeof Eee!="undefined"?t(sL):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(sL,function(e){"use strict";function t(C){return Math.abs(C=Math.round(C))>=1e21?C.toLocaleString("en").replace(/,/g,""):C.toString(10)}function r(C,S){if((m=(C=S?C.toExponential(S-1):C.toExponential()).indexOf("e"))<0)return null;var m,P=C.slice(0,m);return[P.length>1?P[0]+P.slice(2):P,+C.slice(m+1)]}function n(C){return C=r(Math.abs(C)),C?C[1]:NaN}function i(C,S){return function(m,P){for(var A=m.length,B=[],F=0,U=C[0],G=0;A>0&&U>0&&(G+U+1>P&&(U=Math.max(1,P-G)),B.push(m.substring(A-=U,A+U)),!((G+=U+1)>P));)U=C[F=(F+1)%C.length];return B.reverse().join(S)}}function a(C){return function(S){return S.replace(/[0-9]/g,function(m){return C[+m]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(C){if(!(S=o.exec(C)))throw new Error("invalid format: "+C);var S;return new u({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}s.prototype=u.prototype;function u(C){this.fill=C.fill===void 0?" ":C.fill+"",this.align=C.align===void 0?">":C.align+"",this.sign=C.sign===void 0?"-":C.sign+"",this.symbol=C.symbol===void 0?"":C.symbol+"",this.zero=!!C.zero,this.width=C.width===void 0?void 0:+C.width,this.comma=!!C.comma,this.precision=C.precision===void 0?void 0:+C.precision,this.trim=!!C.trim,this.type=C.type===void 0?"":C.type+""}u.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function l(C){e:for(var S=C.length,m=1,P=-1,A;m0&&(P=0);break}return P>0?C.slice(0,P)+C.slice(A+1):C}var f;function c(C,S){var m=r(C,S);if(!m)return C+"";var P=m[0],A=m[1],B=A-(f=Math.max(-8,Math.min(8,Math.floor(A/3)))*3)+1,F=P.length;return B===F?P:B>F?P+new Array(B-F+1).join("0"):B>0?P.slice(0,B)+"."+P.slice(B):"0."+new Array(1-B).join("0")+r(C,Math.max(0,S+B-1))[0]}function h(C,S){var m=r(C,S);if(!m)return C+"";var P=m[0],A=m[1];return A<0?"0."+new Array(-A).join("0")+P:P.length>A+1?P.slice(0,A+1)+"."+P.slice(A+1):P+new Array(A-P.length+2).join("0")}var d={"%":function(C,S){return(C*100).toFixed(S)},b:function(C){return Math.round(C).toString(2)},c:function(C){return C+""},d:t,e:function(C,S){return C.toExponential(S)},f:function(C,S){return C.toFixed(S)},g:function(C,S){return C.toPrecision(S)},o:function(C){return Math.round(C).toString(8)},p:function(C,S){return h(C*100,S)},r:h,s:c,X:function(C){return Math.round(C).toString(16).toUpperCase()},x:function(C){return Math.round(C).toString(16)}};function p(C){return C}var x=Array.prototype.map,b=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function v(C){var S=C.grouping===void 0||C.thousands===void 0?p:i(x.call(C.grouping,Number),C.thousands+""),m=C.currency===void 0?"":C.currency[0]+"",P=C.currency===void 0?"":C.currency[1]+"",A=C.decimal===void 0?".":C.decimal+"",B=C.numerals===void 0?p:a(x.call(C.numerals,String)),F=C.percent===void 0?"%":C.percent+"",U=C.minus===void 0?"-":C.minus+"",G=C.nan===void 0?"NaN":C.nan+"";function j(N){N=s(N);var W=N.fill,re=N.align,ae=N.sign,be=N.symbol,Pe=N.zero,Ce=N.width,de=N.comma,te=N.precision,ke=N.trim,Ee=N.type;Ee==="n"?(de=!0,Ee="g"):d[Ee]||(te===void 0&&(te=12),ke=!0,Ee="g"),(Pe||W==="0"&&re==="=")&&(Pe=!0,W="0",re="=");var Me=be==="$"?m:be==="#"&&/[boxX]/.test(Ee)?"0"+Ee.toLowerCase():"",Ue=be==="$"?P:/[%p]/.test(Ee)?F:"",Fe=d[Ee],me=/[defgprs%]/.test(Ee);te=te===void 0?6:/[gprs]/.test(Ee)?Math.max(1,Math.min(21,te)):Math.max(0,Math.min(20,te));function Ne(ce){var Ke=Me,it=Ue,bt,Nt,nt;if(Ee==="c")it=Fe(ce)+it,ce="";else{ce=+ce;var Ye=ce<0||1/ce<0;if(ce=isNaN(ce)?G:Fe(Math.abs(ce),te),ke&&(ce=l(ce)),Ye&&+ce==0&&ae!=="+"&&(Ye=!1),Ke=(Ye?ae==="("?ae:U:ae==="-"||ae==="("?"":ae)+Ke,it=(Ee==="s"?b[8+f/3]:"")+it+(Ye&&ae==="("?")":""),me){for(bt=-1,Nt=ce.length;++btnt||nt>57){it=(nt===46?A+ce.slice(bt+1):ce.slice(bt))+it,ce=ce.slice(0,bt);break}}}de&&!Pe&&(ce=S(ce,1/0));var kt=Ke.length+ce.length+it.length,At=kt>1)+Ke+ce+it+At.slice(kt);break;default:ce=At+Ke+ce+it;break}return B(ce)}return Ne.toString=function(){return N+""},Ne}function H(N,W){var re=j((N=s(N),N.type="f",N)),ae=Math.max(-8,Math.min(8,Math.floor(n(W)/3)))*3,be=Math.pow(10,-ae),Pe=b[8+ae/3];return function(Ce){return re(be*Ce)+Pe}}return{format:j,formatPrefix:H}}var k;E({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function E(C){return k=v(C),e.format=k.format,e.formatPrefix=k.formatPrefix,k}function T(C){return Math.max(0,-n(Math.abs(C)))}function L(C,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(S)/3)))*3-n(Math.abs(C)))}function _(C,S){return C=Math.abs(C),S=Math.abs(S)-C,Math.max(0,n(S)-n(C))+1}e.FormatSpecifier=u,e.formatDefaultLocale=E,e.formatLocale=v,e.formatSpecifier=s,e.precisionFixed=T,e.precisionPrefix=L,e.precisionRound=_,Object.defineProperty(e,"__esModule",{value:!0})})});var Cee=Te((brr,kee)=>{"use strict";kee.exports=function(e){for(var t=e.length,r,n=0;n13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var ku=Te((wrr,Lee)=>{"use strict";var ztt=Cee();Lee.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&ztt(r))return!1}else if(t!=="number")return!1;return e-e<1}});var nf=Te((Arr,Pee)=>{"use strict";Pee.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 k9=Te((lL,zee)=>{(function(e,t){typeof lL=="object"&&typeof zee!="undefined"?t(lL):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(lL,function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],f+=t[(s[u]&3)<<4|s[u+1]>>4],f+=t[(s[u+1]&15)<<2|s[u+2]>>6],f+=t[s[u+2]&63];return l%3===2?f=f.substring(0,f.length-1)+"=":l%3===1&&(f=f.substring(0,f.length-2)+"=="),f},a=function(o){var s=o.length*.75,u=o.length,l,f=0,c,h,d,p;o[o.length-1]==="="&&(s--,o[o.length-2]==="="&&s--);var x=new ArrayBuffer(s),b=new Uint8Array(x);for(l=0;l>4,b[f++]=(h&15)<<4|d>>2,b[f++]=(d&3)<<6|p&63;return x};e.decode=a,e.encode=i,Object.defineProperty(e,"__esModule",{value:!0})})});var mg=Te((Trr,Iee)=>{"use strict";Iee.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var mp=Te(ym=>{"use strict";var Itt=k9().decode,Rtt=mg(),C9=Array.isArray,Dtt=ArrayBuffer,Ftt=DataView;function Ree(e){return Dtt.isView(e)&&!(e instanceof Ftt)}ym.isTypedArray=Ree;function uL(e){return C9(e)||Ree(e)}ym.isArrayOrTypedArray=uL;function Btt(e){return!uL(e[0])}ym.isArray1D=Btt;ym.ensureArray=function(e,t){return C9(e)||(e=[]),e.length=t,e};var zd={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};zd.uint8c=zd.u1c;zd.uint8=zd.u1;zd.int8=zd.i1;zd.uint16=zd.u2;zd.int16=zd.i2;zd.uint32=zd.u4;zd.int32=zd.i4;zd.float32=zd.f4;zd.float64=zd.f8;function L9(e){return e.constructor===ArrayBuffer}ym.isArrayBuffer=L9;ym.decodeTypedArraySpec=function(e){var t=[],r=Ott(e),n=r.dtype,i=zd[n];if(!i)throw new Error('Error in dtype: "'+n+'"');var a=i.BYTES_PER_ELEMENT,o=r.bdata;L9(o)||(o=Itt(o));var s=r.shape===void 0?[o.byteLength/a]:(""+r.shape).split(",");s.reverse();var u=s.length,l,f,c=+s[0],h=a*c,d=0;if(u===1)t=new i(o);else if(u===2)for(l=+s[1],f=0;f{"use strict";var Fee=ku(),z9=mp().isArrayOrTypedArray;Nee.exports=function(t,r){if(Fee(r))r=String(r);else if(typeof r!="string"||r.substr(r.length-4)==="[-1]")throw"bad property string";var n=r.split("."),i,a,o,s;for(s=0;s{"use strict";var t3=kM(),Gtt=/^\w*$/,Htt=0,Uee=1,fL=2,Vee=3,ob=4;Gee.exports=function(t,r,n,i){n=n||"name",i=i||"value";var a,o,s,u={};r&&r.length?(s=t3(t,r),o=s.get()):o=t,r=r||"";var l={};if(o)for(a=0;a2)return u[d]=u[d]|fL,c.set(h,null);if(f){for(a=d;a{"use strict";var Wtt=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,jtt=/^[^\.\[\]]+$/;Wee.exports=function(e,t){for(;t;){var r=e.match(Wtt);if(r)e=r[1];else if(e.match(jtt))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var cL=Te((Crr,Xee)=>{"use strict";var Xtt=ku();Xee.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var n=Math.log(Math.min(r[0],r[1]))/Math.LN10;return Xtt(n)||(n=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),n}});var Kee=Te((Lrr,Yee)=>{"use strict";var Zee=mp().isArrayOrTypedArray,CM=mg();Yee.exports=function e(t,r){for(var n in r){var i=r[n],a=t[n];if(a!==i)if(n.charAt(0)==="_"||typeof i=="function"){if(n in t)continue;t[n]=i}else if(Zee(i)&&Zee(a)&&CM(i[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(i.length,a.length),s=0;s{"use strict";function Ztt(e,t){var r=e%t;return r<0?r+t:r}function Ytt(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}Jee.exports={mod:Ztt,modHalf:Ytt}});var cd=Te((zrr,hL)=>{(function(e){var t=/^\s+/,r=/\s+$/,n=0,i=e.round,a=e.min,o=e.max,s=e.random;function u(me,Ne){if(me=me||"",Ne=Ne||{},me instanceof u)return me;if(!(this instanceof u))return new u(me,Ne);var ce=l(me);this._originalInput=me,this._r=ce.r,this._g=ce.g,this._b=ce.b,this._a=ce.a,this._roundA=i(100*this._a)/100,this._format=Ne.format||ce.format,this._gradientType=Ne.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=ce.ok,this._tc_id=n++}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var me=this.toRgb();return(me.r*299+me.g*587+me.b*114)/1e3},getLuminance:function(){var me=this.toRgb(),Ne,ce,Ke,it,bt,Nt;return Ne=me.r/255,ce=me.g/255,Ke=me.b/255,Ne<=.03928?it=Ne/12.92:it=e.pow((Ne+.055)/1.055,2.4),ce<=.03928?bt=ce/12.92:bt=e.pow((ce+.055)/1.055,2.4),Ke<=.03928?Nt=Ke/12.92:Nt=e.pow((Ke+.055)/1.055,2.4),.2126*it+.7152*bt+.0722*Nt},setAlpha:function(me){return this._a=N(me),this._roundA=i(100*this._a)/100,this},toHsv:function(){var me=d(this._r,this._g,this._b);return{h:me.h*360,s:me.s,v:me.v,a:this._a}},toHsvString:function(){var me=d(this._r,this._g,this._b),Ne=i(me.h*360),ce=i(me.s*100),Ke=i(me.v*100);return this._a==1?"hsv("+Ne+", "+ce+"%, "+Ke+"%)":"hsva("+Ne+", "+ce+"%, "+Ke+"%, "+this._roundA+")"},toHsl:function(){var me=c(this._r,this._g,this._b);return{h:me.h*360,s:me.s,l:me.l,a:this._a}},toHslString:function(){var me=c(this._r,this._g,this._b),Ne=i(me.h*360),ce=i(me.s*100),Ke=i(me.l*100);return this._a==1?"hsl("+Ne+", "+ce+"%, "+Ke+"%)":"hsla("+Ne+", "+ce+"%, "+Ke+"%, "+this._roundA+")"},toHex:function(me){return x(this._r,this._g,this._b,me)},toHexString:function(me){return"#"+this.toHex(me)},toHex8:function(me){return b(this._r,this._g,this._b,this._a,me)},toHex8String:function(me){return"#"+this.toHex8(me)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(W(this._r,255)*100)+"%",g:i(W(this._g,255)*100)+"%",b:i(W(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(W(this._r,255)*100)+"%, "+i(W(this._g,255)*100)+"%, "+i(W(this._b,255)*100)+"%)":"rgba("+i(W(this._r,255)*100)+"%, "+i(W(this._g,255)*100)+"%, "+i(W(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:j[x(this._r,this._g,this._b,!0)]||!1},toFilter:function(me){var Ne="#"+v(this._r,this._g,this._b,this._a),ce=Ne,Ke=this._gradientType?"GradientType = 1, ":"";if(me){var it=u(me);ce="#"+v(it._r,it._g,it._b,it._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ke+"startColorstr="+Ne+",endColorstr="+ce+")"},toString:function(me){var Ne=!!me;me=me||this._format;var ce=!1,Ke=this._a<1&&this._a>=0,it=!Ne&&Ke&&(me==="hex"||me==="hex6"||me==="hex3"||me==="hex4"||me==="hex8"||me==="name");return it?me==="name"&&this._a===0?this.toName():this.toRgbString():(me==="rgb"&&(ce=this.toRgbString()),me==="prgb"&&(ce=this.toPercentageRgbString()),(me==="hex"||me==="hex6")&&(ce=this.toHexString()),me==="hex3"&&(ce=this.toHexString(!0)),me==="hex4"&&(ce=this.toHex8String(!0)),me==="hex8"&&(ce=this.toHex8String()),me==="name"&&(ce=this.toName()),me==="hsl"&&(ce=this.toHslString()),me==="hsv"&&(ce=this.toHsvString()),ce||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(me,Ne){var ce=me.apply(null,[this].concat([].slice.call(Ne)));return this._r=ce._r,this._g=ce._g,this._b=ce._b,this.setAlpha(ce._a),this},lighten:function(){return this._applyModification(L,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(k,arguments)},saturate:function(){return this._applyModification(E,arguments)},greyscale:function(){return this._applyModification(T,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(me,Ne){return me.apply(null,[this].concat([].slice.call(Ne)))},analogous:function(){return this._applyCombination(F,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(U,arguments)},splitcomplement:function(){return this._applyCombination(B,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},u.fromRatio=function(me,Ne){if(typeof me=="object"){var ce={};for(var Ke in me)me.hasOwnProperty(Ke)&&(Ke==="a"?ce[Ke]=me[Ke]:ce[Ke]=de(me[Ke]));me=ce}return u(me,Ne)};function l(me){var Ne={r:0,g:0,b:0},ce=1,Ke=null,it=null,bt=null,Nt=!1,nt=!1;return typeof me=="string"&&(me=Ue(me)),typeof me=="object"&&(Me(me.r)&&Me(me.g)&&Me(me.b)?(Ne=f(me.r,me.g,me.b),Nt=!0,nt=String(me.r).substr(-1)==="%"?"prgb":"rgb"):Me(me.h)&&Me(me.s)&&Me(me.v)?(Ke=de(me.s),it=de(me.v),Ne=p(me.h,Ke,it),Nt=!0,nt="hsv"):Me(me.h)&&Me(me.s)&&Me(me.l)&&(Ke=de(me.s),bt=de(me.l),Ne=h(me.h,Ke,bt),Nt=!0,nt="hsl"),me.hasOwnProperty("a")&&(ce=me.a)),ce=N(ce),{ok:Nt,format:me.format||nt,r:a(255,o(Ne.r,0)),g:a(255,o(Ne.g,0)),b:a(255,o(Ne.b,0)),a:ce}}function f(me,Ne,ce){return{r:W(me,255)*255,g:W(Ne,255)*255,b:W(ce,255)*255}}function c(me,Ne,ce){me=W(me,255),Ne=W(Ne,255),ce=W(ce,255);var Ke=o(me,Ne,ce),it=a(me,Ne,ce),bt,Nt,nt=(Ke+it)/2;if(Ke==it)bt=Nt=0;else{var Ye=Ke-it;switch(Nt=nt>.5?Ye/(2-Ke-it):Ye/(Ke+it),Ke){case me:bt=(Ne-ce)/Ye+(Ne1&&(St-=1),St<1/6?kt+(At-kt)*6*St:St<1/2?At:St<2/3?kt+(At-kt)*(2/3-St)*6:kt}if(Ne===0)Ke=it=bt=ce;else{var nt=ce<.5?ce*(1+Ne):ce+Ne-ce*Ne,Ye=2*ce-nt;Ke=Nt(Ye,nt,me+1/3),it=Nt(Ye,nt,me),bt=Nt(Ye,nt,me-1/3)}return{r:Ke*255,g:it*255,b:bt*255}}function d(me,Ne,ce){me=W(me,255),Ne=W(Ne,255),ce=W(ce,255);var Ke=o(me,Ne,ce),it=a(me,Ne,ce),bt,Nt,nt=Ke,Ye=Ke-it;if(Nt=Ke===0?0:Ye/Ke,Ke==it)bt=0;else{switch(Ke){case me:bt=(Ne-ce)/Ye+(Ne>1)+720)%360;--Ne;)Ke.h=(Ke.h+it)%360,bt.push(u(Ke));return bt}function U(me,Ne){Ne=Ne||6;for(var ce=u(me).toHsv(),Ke=ce.h,it=ce.s,bt=ce.v,Nt=[],nt=1/Ne;Ne--;)Nt.push(u({h:Ke,s:it,v:bt})),bt=(bt+nt)%1;return Nt}u.mix=function(me,Ne,ce){ce=ce===0?0:ce||50;var Ke=u(me).toRgb(),it=u(Ne).toRgb(),bt=ce/100,Nt={r:(it.r-Ke.r)*bt+Ke.r,g:(it.g-Ke.g)*bt+Ke.g,b:(it.b-Ke.b)*bt+Ke.b,a:(it.a-Ke.a)*bt+Ke.a};return u(Nt)},u.readability=function(me,Ne){var ce=u(me),Ke=u(Ne);return(e.max(ce.getLuminance(),Ke.getLuminance())+.05)/(e.min(ce.getLuminance(),Ke.getLuminance())+.05)},u.isReadable=function(me,Ne,ce){var Ke=u.readability(me,Ne),it,bt;switch(bt=!1,it=Fe(ce),it.level+it.size){case"AAsmall":case"AAAlarge":bt=Ke>=4.5;break;case"AAlarge":bt=Ke>=3;break;case"AAAsmall":bt=Ke>=7;break}return bt},u.mostReadable=function(me,Ne,ce){var Ke=null,it=0,bt,Nt,nt,Ye;ce=ce||{},Nt=ce.includeFallbackColors,nt=ce.level,Ye=ce.size;for(var kt=0;ktit&&(it=bt,Ke=u(Ne[kt]));return u.isReadable(me,Ke,{level:nt,size:Ye})||!Nt?Ke:(ce.includeFallbackColors=!1,u.mostReadable(me,["#fff","#000"],ce))};var G=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},j=u.hexNames=H(G);function H(me){var Ne={};for(var ce in me)me.hasOwnProperty(ce)&&(Ne[me[ce]]=ce);return Ne}function N(me){return me=parseFloat(me),(isNaN(me)||me<0||me>1)&&(me=1),me}function W(me,Ne){be(me)&&(me="100%");var ce=Pe(me);return me=a(Ne,o(0,parseFloat(me))),ce&&(me=parseInt(me*Ne,10)/100),e.abs(me-Ne)<1e-6?1:me%Ne/parseFloat(Ne)}function re(me){return a(1,o(0,me))}function ae(me){return parseInt(me,16)}function be(me){return typeof me=="string"&&me.indexOf(".")!=-1&&parseFloat(me)===1}function Pe(me){return typeof me=="string"&&me.indexOf("%")!=-1}function Ce(me){return me.length==1?"0"+me:""+me}function de(me){return me<=1&&(me=me*100+"%"),me}function te(me){return e.round(parseFloat(me)*255).toString(16)}function ke(me){return ae(me)/255}var Ee=function(){var me="[-\\+]?\\d+%?",Ne="[-\\+]?\\d*\\.\\d+%?",ce="(?:"+Ne+")|(?:"+me+")",Ke="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?",it="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?";return{CSS_UNIT:new RegExp(ce),rgb:new RegExp("rgb"+Ke),rgba:new RegExp("rgba"+it),hsl:new RegExp("hsl"+Ke),hsla:new RegExp("hsla"+it),hsv:new RegExp("hsv"+Ke),hsva:new RegExp("hsva"+it),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Me(me){return!!Ee.CSS_UNIT.exec(me)}function Ue(me){me=me.replace(t,"").replace(r,"").toLowerCase();var Ne=!1;if(G[me])me=G[me],Ne=!0;else if(me=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ce;return(ce=Ee.rgb.exec(me))?{r:ce[1],g:ce[2],b:ce[3]}:(ce=Ee.rgba.exec(me))?{r:ce[1],g:ce[2],b:ce[3],a:ce[4]}:(ce=Ee.hsl.exec(me))?{h:ce[1],s:ce[2],l:ce[3]}:(ce=Ee.hsla.exec(me))?{h:ce[1],s:ce[2],l:ce[3],a:ce[4]}:(ce=Ee.hsv.exec(me))?{h:ce[1],s:ce[2],v:ce[3]}:(ce=Ee.hsva.exec(me))?{h:ce[1],s:ce[2],v:ce[3],a:ce[4]}:(ce=Ee.hex8.exec(me))?{r:ae(ce[1]),g:ae(ce[2]),b:ae(ce[3]),a:ke(ce[4]),format:Ne?"name":"hex8"}:(ce=Ee.hex6.exec(me))?{r:ae(ce[1]),g:ae(ce[2]),b:ae(ce[3]),format:Ne?"name":"hex"}:(ce=Ee.hex4.exec(me))?{r:ae(ce[1]+""+ce[1]),g:ae(ce[2]+""+ce[2]),b:ae(ce[3]+""+ce[3]),a:ke(ce[4]+""+ce[4]),format:Ne?"name":"hex8"}:(ce=Ee.hex3.exec(me))?{r:ae(ce[1]+""+ce[1]),g:ae(ce[2]+""+ce[2]),b:ae(ce[3]+""+ce[3]),format:Ne?"name":"hex"}:!1}function Fe(me){var Ne,ce;return me=me||{level:"AA",size:"small"},Ne=(me.level||"AA").toUpperCase(),ce=(me.size||"small").toLowerCase(),Ne!=="AA"&&Ne!=="AAA"&&(Ne="AA"),ce!=="small"&&ce!=="large"&&(ce="small"),{level:Ne,size:ce}}typeof hL!="undefined"&&hL.exports?hL.exports=u:window.tinycolor=u})(Math)});var Su=Te(zM=>{"use strict";var $ee=mg(),LM=Array.isArray;function Ktt(e,t){var r,n;for(r=0;r{"use strict";Qee.exports=function(e){var t=e.variantValues,r=e.editType,n=e.colorEditType;n===void 0&&(n=r);var i={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(i.valType="enumerated",i.values=i.extras,i.extras=void 0,i.min=void 0,i.max=void 0);var a={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:n},weight:i,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(a.size.dflt="auto"),e.autoColor&&(a.color.dflt="auto"),e.arrayOk&&(a.family.arrayOk=!0,a.weight.arrayOk=!0,a.style.arrayOk=!0,e.noFontVariant||(a.variant.arrayOk=!0),e.noFontTextcase||(a.textcase.arrayOk=!0),e.noFontLineposition||(a.lineposition.arrayOk=!0),e.noFontShadow||(a.shadow.arrayOk=!0),a.size.arrayOk=!0,a.color.arrayOk=!0),a}});var IM=Te((Drr,ete)=>{"use strict";ete.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var N1=Te((Frr,ite)=>{"use strict";var tte=IM(),rte=gc(),I9=rte({editType:"none"});I9.family.dflt=tte.HOVERFONT;I9.size.dflt=tte.HOVERFONTSIZE;ite.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:I9,grouptitlefont:rte({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 i3=Te((Brr,nte)=>{"use strict";var Jtt=gc(),dL=N1().hoverlabel,pL=Su().extendFlat;nte.exports={hoverlabel:{bgcolor:pL({},dL.bgcolor,{arrayOk:!0}),bordercolor:pL({},dL.bordercolor,{arrayOk:!0}),font:Jtt({arrayOk:!0,editType:"none"}),align:pL({},dL.align,{arrayOk:!0}),namelength:pL({},dL.namelength,{arrayOk:!0}),editType:"none"}}});var Vf=Te((Orr,ate)=>{"use strict";var $tt=gc(),Qtt=i3();ate.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:$tt({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:Qtt.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var sb=Te((qrr,lte)=>{"use strict";var ert=cd(),vL={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)"]]},ote=vL.RdBu;function trt(e,t){if(t||(t=ote),!e)return t;function r(){try{e=vL[e]||JSON.parse(e)}catch(n){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),ste(e)?e:t}function ste(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;r{"use strict";lb.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];lb.defaultLine="#444";lb.lightLine="#eee";lb.background="#fff";lb.borderLine="#BEC8D9";lb.lightFraction=100*10/11});var jl=Te((Urr,ute)=>{"use strict";var _v=cd(),irt=ku(),nrt=mp().isTypedArray,hd=ute.exports={},mL=Ih();hd.defaults=mL.defaults;var art=hd.defaultLine=mL.defaultLine;hd.lightLine=mL.lightLine;var D9=hd.background=mL.background;hd.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"};hd.rgb=function(e){return hd.tinyRGB(_v(e))};hd.opacity=function(e){return e?_v(e).getAlpha():0};hd.addOpacity=function(e,t){var r=_v(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"};hd.combine=function(e,t){var r=_v(e).toRgb();if(r.a===1)return _v(e).toRgbString();var n=_v(t||D9).toRgb(),i=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},a={r:i.r*(1-r.a)+r.r*r.a,g:i.g*(1-r.a)+r.g*r.a,b:i.b*(1-r.a)+r.b*r.a};return _v(a).toRgbString()};hd.interpolate=function(e,t,r){var n=_v(e).toRgb(),i=_v(t).toRgb(),a={r:r*n.r+(1-r)*i.r,g:r*n.g+(1-r)*i.g,b:r*n.b+(1-r)*i.b};return _v(a).toRgbString()};hd.contrast=function(e,t,r){var n=_v(e);n.getAlpha()!==1&&(n=_v(hd.combine(e,D9)));var i=n.isDark()?t?n.lighten(t):D9:r?n.darken(r):art;return i.toString()};hd.stroke=function(e,t){var r=_v(t);e.style({stroke:hd.tinyRGB(r),"stroke-opacity":r.getAlpha()})};hd.fill=function(e,t){var r=_v(t);e.style({fill:hd.tinyRGB(r),"fill-opacity":r.getAlpha()})};hd.clean=function(e){if(!(!e||typeof e!="object")){var t=Object.keys(e),r,n,i,a;for(r=0;r=0)))return e;if(a===3)n[a]>1&&(n[a]=1);else if(n[a]>=1)return e}var o=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return i?"rgba("+o+", "+n[3]+")":"rgb("+o+")"}});var U1=Te((Vrr,fte)=>{"use strict";fte.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var n3=Te(cte=>{"use strict";cte.counter=function(e,t,r,n){var i=(t||"")+(r?"":"$"),a=n===!1?"":"^";return e==="xy"?new RegExp(a+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+i):new RegExp(a+e+"([2-9]|[1-9][0-9]+)?"+i)}});var vte=Te(xv=>{"use strict";var F9=ku(),hte=cd(),dte=Su().extendFlat,ort=Vf(),srt=sb(),lrt=jl(),urt=U1().DESELECTDIM,a3=kM(),pte=n3().counter,frt=r3().modHalf,dy=mp().isArrayOrTypedArray,V1=mp().isTypedArraySpec,G1=mp().decodeTypedArraySpec;xv.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(dy(e)?e:V1(e)?G1(e):r)}},enumerated:{coerceFunction:function(e,t,r,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,n=0;nn.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}V1(e)&&(e=G1(e)),e%1||!F9(e)||n.min!==void 0&&en.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,n){if(typeof e!="string"){var i=typeof e=="number";n.strict===!0||!i?t.set(r):t.set(String(e))}else n.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){V1(e)&&(e=G1(e)),hte(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function n(i){return hte(i).isValid()}!Array.isArray(e)||!e.length?t.set(r):e.every(n)?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(srt.get(e,r))}},angle:{coerceFunction:function(e,t,r){V1(e)&&(e=G1(e)),e==="auto"?t.set("auto"):F9(e)?t.set(frt(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,n){var i=n.regex||pte(r);if(typeof e=="string"&&i.test(e)){t.set(e);return}t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!pte(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var i=e.split("+"),a=0;a{"use strict";var mte={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:{}}},yte={};function gte(e,t){for(var r in e){var n=e[r];n.valType?t[r]=n.dflt:(t[r]||(t[r]={}),gte(n,t[r]))}}gte(mte,yte);_te.exports={configAttributes:mte,dfltConfig:yte}});var O9=Te((jrr,xte)=>{"use strict";var B9=Jl(),crt=ku(),RM=[];xte.exports=function(e,t){if(RM.indexOf(e)!==-1)return;RM.push(e);var r=1e3;crt(t)?r=t:t==="long"&&(r=3e3);var n=B9.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(RM);function a(o){o.duration(700).style("opacity",0).each("end",function(s){var u=RM.indexOf(s);u!==-1&&RM.splice(u,1),B9.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var s=B9.select(this);s.append("button").classed("notifier-close",!0).html("×").on("click",function(){s.transition().call(a)});for(var u=s.append("p"),l=o.split(//g),f=0;f{"use strict";var o3=ub().dfltConfig,q9=O9(),N9=bte.exports={};N9.log=function(){var e;if(o3.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};N9.warn=function(){var e;if(o3.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};N9.error=function(){var e;if(o3.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var gL=Te((Zrr,wte)=>{"use strict";wte.exports=function(){}});var U9=Te((Yrr,Ate)=>{"use strict";Ate.exports=function(t,r){if(r instanceof RegExp){for(var n=r.toString(),i=0;i{Tte.exports=hrt;function hrt(){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 Ete=Te((Jrr,Mte)=>{Mte.exports=drt;function drt(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var Cte=Te(($rr,kte)=>{kte.exports=prt;function prt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var V9=Te((Qrr,Lte)=>{Lte.exports=vrt;function vrt(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 zte=Te((eir,Pte)=>{Pte.exports=mrt;function mrt(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var Rte=Te((tir,Ite)=>{Ite.exports=yrt;function yrt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],l=t[7],f=t[8],c=t[9],h=t[10],d=t[11],p=t[12],x=t[13],b=t[14],v=t[15],k=r*s-n*o,E=r*u-i*o,T=r*l-a*o,L=n*u-i*s,_=n*l-a*s,C=i*l-a*u,S=f*x-c*p,m=f*b-h*p,P=f*v-d*p,A=c*b-h*x,B=c*v-d*x,F=h*v-d*b,U=k*F-E*B+T*A+L*P-_*m+C*S;return U?(U=1/U,e[0]=(s*F-u*B+l*A)*U,e[1]=(i*B-n*F-a*A)*U,e[2]=(x*C-b*_+v*L)*U,e[3]=(h*_-c*C-d*L)*U,e[4]=(u*P-o*F-l*m)*U,e[5]=(r*F-i*P+a*m)*U,e[6]=(b*T-p*C-v*E)*U,e[7]=(f*C-h*T+d*E)*U,e[8]=(o*B-s*P+l*S)*U,e[9]=(n*P-r*B-a*S)*U,e[10]=(p*_-x*T+v*k)*U,e[11]=(c*T-f*_-d*k)*U,e[12]=(s*m-o*A-u*S)*U,e[13]=(r*A-n*m+i*S)*U,e[14]=(x*E-p*L-b*k)*U,e[15]=(f*L-c*E+h*k)*U,e):null}});var Fte=Te((rir,Dte)=>{Dte.exports=grt;function grt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],l=t[7],f=t[8],c=t[9],h=t[10],d=t[11],p=t[12],x=t[13],b=t[14],v=t[15];return e[0]=s*(h*v-d*b)-c*(u*v-l*b)+x*(u*d-l*h),e[1]=-(n*(h*v-d*b)-c*(i*v-a*b)+x*(i*d-a*h)),e[2]=n*(u*v-l*b)-s*(i*v-a*b)+x*(i*l-a*u),e[3]=-(n*(u*d-l*h)-s*(i*d-a*h)+c*(i*l-a*u)),e[4]=-(o*(h*v-d*b)-f*(u*v-l*b)+p*(u*d-l*h)),e[5]=r*(h*v-d*b)-f*(i*v-a*b)+p*(i*d-a*h),e[6]=-(r*(u*v-l*b)-o*(i*v-a*b)+p*(i*l-a*u)),e[7]=r*(u*d-l*h)-o*(i*d-a*h)+f*(i*l-a*u),e[8]=o*(c*v-d*x)-f*(s*v-l*x)+p*(s*d-l*c),e[9]=-(r*(c*v-d*x)-f*(n*v-a*x)+p*(n*d-a*c)),e[10]=r*(s*v-l*x)-o*(n*v-a*x)+p*(n*l-a*s),e[11]=-(r*(s*d-l*c)-o*(n*d-a*c)+f*(n*l-a*s)),e[12]=-(o*(c*b-h*x)-f*(s*b-u*x)+p*(s*h-u*c)),e[13]=r*(c*b-h*x)-f*(n*b-i*x)+p*(n*h-i*c),e[14]=-(r*(s*b-u*x)-o*(n*b-i*x)+p*(n*u-i*s)),e[15]=r*(s*h-u*c)-o*(n*h-i*c)+f*(n*u-i*s),e}});var Ote=Te((iir,Bte)=>{Bte.exports=_rt;function _rt(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],s=e[6],u=e[7],l=e[8],f=e[9],c=e[10],h=e[11],d=e[12],p=e[13],x=e[14],b=e[15],v=t*o-r*a,k=t*s-n*a,E=t*u-i*a,T=r*s-n*o,L=r*u-i*o,_=n*u-i*s,C=l*p-f*d,S=l*x-c*d,m=l*b-h*d,P=f*x-c*p,A=f*b-h*p,B=c*b-h*x;return v*B-k*A+E*P+T*m-L*S+_*C}});var Nte=Te((nir,qte)=>{qte.exports=xrt;function xrt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],f=t[7],c=t[8],h=t[9],d=t[10],p=t[11],x=t[12],b=t[13],v=t[14],k=t[15],E=r[0],T=r[1],L=r[2],_=r[3];return e[0]=E*n+T*s+L*c+_*x,e[1]=E*i+T*u+L*h+_*b,e[2]=E*a+T*l+L*d+_*v,e[3]=E*o+T*f+L*p+_*k,E=r[4],T=r[5],L=r[6],_=r[7],e[4]=E*n+T*s+L*c+_*x,e[5]=E*i+T*u+L*h+_*b,e[6]=E*a+T*l+L*d+_*v,e[7]=E*o+T*f+L*p+_*k,E=r[8],T=r[9],L=r[10],_=r[11],e[8]=E*n+T*s+L*c+_*x,e[9]=E*i+T*u+L*h+_*b,e[10]=E*a+T*l+L*d+_*v,e[11]=E*o+T*f+L*p+_*k,E=r[12],T=r[13],L=r[14],_=r[15],e[12]=E*n+T*s+L*c+_*x,e[13]=E*i+T*u+L*h+_*b,e[14]=E*a+T*l+L*d+_*v,e[15]=E*o+T*f+L*p+_*k,e}});var Vte=Te((air,Ute)=>{Ute.exports=brt;function brt(e,t,r){var n=r[0],i=r[1],a=r[2],o,s,u,l,f,c,h,d,p,x,b,v;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(o=t[0],s=t[1],u=t[2],l=t[3],f=t[4],c=t[5],h=t[6],d=t[7],p=t[8],x=t[9],b=t[10],v=t[11],e[0]=o,e[1]=s,e[2]=u,e[3]=l,e[4]=f,e[5]=c,e[6]=h,e[7]=d,e[8]=p,e[9]=x,e[10]=b,e[11]=v,e[12]=o*n+f*i+p*a+t[12],e[13]=s*n+c*i+x*a+t[13],e[14]=u*n+h*i+b*a+t[14],e[15]=l*n+d*i+v*a+t[15]),e}});var Hte=Te((oir,Gte)=>{Gte.exports=wrt;function wrt(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var jte=Te((sir,Wte)=>{Wte.exports=Art;function Art(e,t,r,n){var i=n[0],a=n[1],o=n[2],s=Math.sqrt(i*i+a*a+o*o),u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G;return Math.abs(s)<1e-6?null:(s=1/s,i*=s,a*=s,o*=s,u=Math.sin(r),l=Math.cos(r),f=1-l,c=t[0],h=t[1],d=t[2],p=t[3],x=t[4],b=t[5],v=t[6],k=t[7],E=t[8],T=t[9],L=t[10],_=t[11],C=i*i*f+l,S=a*i*f+o*u,m=o*i*f-a*u,P=i*a*f-o*u,A=a*a*f+l,B=o*a*f+i*u,F=i*o*f+a*u,U=a*o*f-i*u,G=o*o*f+l,e[0]=c*C+x*S+E*m,e[1]=h*C+b*S+T*m,e[2]=d*C+v*S+L*m,e[3]=p*C+k*S+_*m,e[4]=c*P+x*A+E*B,e[5]=h*P+b*A+T*B,e[6]=d*P+v*A+L*B,e[7]=p*P+k*A+_*B,e[8]=c*F+x*U+E*G,e[9]=h*F+b*U+T*G,e[10]=d*F+v*U+L*G,e[11]=p*F+k*U+_*G,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var Zte=Te((lir,Xte)=>{Xte.exports=Trt;function Trt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],s=t[6],u=t[7],l=t[8],f=t[9],c=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+l*n,e[5]=o*i+f*n,e[6]=s*i+c*n,e[7]=u*i+h*n,e[8]=l*i-a*n,e[9]=f*i-o*n,e[10]=c*i-s*n,e[11]=h*i-u*n,e}});var Kte=Te((uir,Yte)=>{Yte.exports=Srt;function Srt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],u=t[3],l=t[8],f=t[9],c=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-l*n,e[1]=o*i-f*n,e[2]=s*i-c*n,e[3]=u*i-h*n,e[8]=a*n+l*i,e[9]=o*n+f*i,e[10]=s*n+c*i,e[11]=u*n+h*i,e}});var $te=Te((fir,Jte)=>{Jte.exports=Mrt;function Mrt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],u=t[3],l=t[4],f=t[5],c=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+l*n,e[1]=o*i+f*n,e[2]=s*i+c*n,e[3]=u*i+h*n,e[4]=l*i-a*n,e[5]=f*i-o*n,e[6]=c*i-s*n,e[7]=h*i-u*n,e}});var ere=Te((cir,Qte)=>{Qte.exports=Ert;function Ert(e,t,r){var n,i,a,o=r[0],s=r[1],u=r[2],l=Math.sqrt(o*o+s*s+u*u);return Math.abs(l)<1e-6?null:(l=1/l,o*=l,s*=l,u*=l,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=s*o*a+u*n,e[2]=u*o*a-s*n,e[3]=0,e[4]=o*s*a-u*n,e[5]=s*s*a+i,e[6]=u*s*a+o*n,e[7]=0,e[8]=o*u*a+s*n,e[9]=s*u*a-o*n,e[10]=u*u*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var rre=Te((hir,tre)=>{tre.exports=krt;function krt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=n+n,u=i+i,l=a+a,f=n*s,c=n*u,h=n*l,d=i*u,p=i*l,x=a*l,b=o*s,v=o*u,k=o*l;return e[0]=1-(d+x),e[1]=c+k,e[2]=h-v,e[3]=0,e[4]=c-k,e[5]=1-(f+x),e[6]=p+b,e[7]=0,e[8]=h+v,e[9]=p-b,e[10]=1-(f+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var nre=Te((dir,ire)=>{ire.exports=Crt;function Crt(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var ore=Te((pir,are)=>{are.exports=Lrt;function Lrt(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var lre=Te((vir,sre)=>{sre.exports=Prt;function Prt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var fre=Te((mir,ure)=>{ure.exports=zrt;function zrt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var hre=Te((yir,cre)=>{cre.exports=Irt;function Irt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var G9=Te((gir,dre)=>{dre.exports=Rrt;function Rrt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,s=n+n,u=i+i,l=r*o,f=n*o,c=n*s,h=i*o,d=i*s,p=i*u,x=a*o,b=a*s,v=a*u;return e[0]=1-c-p,e[1]=f+v,e[2]=h-b,e[3]=0,e[4]=f-v,e[5]=1-l-p,e[6]=d+x,e[7]=0,e[8]=h+b,e[9]=d-x,e[10]=1-l-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var vre=Te((_ir,pre)=>{pre.exports=Drt;function Drt(e,t,r,n,i,a,o){var s=1/(r-t),u=1/(i-n),l=1/(a-o);return e[0]=a*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*u,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(i+n)*u,e[10]=(o+a)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*l,e[15]=0,e}});var yre=Te((xir,mre)=>{mre.exports=Frt;function Frt(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}});var _re=Te((bir,gre)=>{gre.exports=Brt;function Brt(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),u=2/(o+s),l=2/(i+a);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=l,e[6]=0,e[7]=0,e[8]=-((o-s)*u*.5),e[9]=(i-a)*l*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}});var bre=Te((wir,xre)=>{xre.exports=Ort;function Ort(e,t,r,n,i,a,o){var s=1/(t-r),u=1/(n-i),l=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*l,e[11]=0,e[12]=(t+r)*s,e[13]=(i+n)*u,e[14]=(o+a)*l,e[15]=1,e}});var Are=Te((Air,wre)=>{var qrt=V9();wre.exports=Nrt;function Nrt(e,t,r,n){var i,a,o,s,u,l,f,c,h,d,p=t[0],x=t[1],b=t[2],v=n[0],k=n[1],E=n[2],T=r[0],L=r[1],_=r[2];return Math.abs(p-T)<1e-6&&Math.abs(x-L)<1e-6&&Math.abs(b-_)<1e-6?qrt(e):(f=p-T,c=x-L,h=b-_,d=1/Math.sqrt(f*f+c*c+h*h),f*=d,c*=d,h*=d,i=k*h-E*c,a=E*f-v*h,o=v*c-k*f,d=Math.sqrt(i*i+a*a+o*o),d?(d=1/d,i*=d,a*=d,o*=d):(i=0,a=0,o=0),s=c*o-h*a,u=h*i-f*o,l=f*a-c*i,d=Math.sqrt(s*s+u*u+l*l),d?(d=1/d,s*=d,u*=d,l*=d):(s=0,u=0,l=0),e[0]=i,e[1]=s,e[2]=f,e[3]=0,e[4]=a,e[5]=u,e[6]=c,e[7]=0,e[8]=o,e[9]=l,e[10]=h,e[11]=0,e[12]=-(i*p+a*x+o*b),e[13]=-(s*p+u*x+l*b),e[14]=-(f*p+c*x+h*b),e[15]=1,e)}});var Sre=Te((Tir,Tre)=>{Tre.exports=Urt;function Urt(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var H9=Te((Sir,Mre)=>{Mre.exports={create:Ste(),clone:Ete(),copy:Cte(),identity:V9(),transpose:zte(),invert:Rte(),adjoint:Fte(),determinant:Ote(),multiply:Nte(),translate:Vte(),scale:Hte(),rotate:jte(),rotateX:Zte(),rotateY:Kte(),rotateZ:$te(),fromRotation:ere(),fromRotationTranslation:rre(),fromScaling:nre(),fromTranslation:ore(),fromXRotation:lre(),fromYRotation:fre(),fromZRotation:hre(),fromQuat:G9(),frustum:vre(),perspective:yre(),perspectiveFromFieldOfView:_re(),ortho:bre(),lookAt:Are(),str:Sre()}});var _L=Te(xh=>{"use strict";var Vrt=H9();xh.init2dArray=function(e,t){for(var r=new Array(e),n=0;n{"use strict";var Grt=Jl(),Ere=H1(),Hrt=_L(),Wrt=H9();function jrt(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function Xrt(e){var t=Grt.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function kre(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function Zrt(e,t){Cre("global",e,t)}function Cre(e,t,r){var n="plotly.js-style-"+e,i=document.getElementById(n);if(!(i&&i.matches(".no-inline-styles"))){i||(i=document.createElement("style"),i.setAttribute("id",n),i.appendChild(document.createTextNode("")),document.head.appendChild(i));var a=i.sheet;a?a.insertRule?a.insertRule(t+"{"+r+"}",0):a.addRule?a.addRule(t,r,0):Ere.warn("addStyleRule failed"):Ere.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Yrt(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&kre(r)}function Krt(e,t,r,n,i,a){var o=n.split(":"),s=i.split(":"),u="data-btn-style-event-added";a||(a=document),a.querySelectorAll(e).forEach(function(l){l.getAttribute(u)||(l.addEventListener("mouseenter",function(){var f=this.querySelector(r);f&&(f.style[o[0]]=o[1])}),l.addEventListener("mouseleave",function(){var f=this.querySelector(r);f&&(t&&this.matches(t)?f.style[o[0]]=o[1]:f.style[s[0]]=s[1])}),l.setAttribute(u,!0))})}function Jrt(e){var t=Pre(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(n){var i=Lre(n);if(i){var a=Hrt.convertCssMatrix(i);r=Wrt.multiply(r,r,a)}}),r}function Lre(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function Pre(e){for(var t=[];$rt(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function $rt(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Qrt(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}zre.exports={getGraphDiv:jrt,isPlotDiv:Xrt,removeElement:kre,addStyleRule:Zrt,addRelatedStyleRule:Cre,deleteRelatedStyleRule:Yrt,setStyleOnHover:Krt,getFullTransformMatrix:Jrt,getElementTransformMatrix:Lre,getElementAndAncestors:Pre,equalDomRects:Qrt}});var FM=Te((kir,Ire)=>{"use strict";Ire.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Sc=Te((Cir,Nre)=>{"use strict";var Dre=Su().extendFlat,eit=mg(),Fre={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},Bre={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},tit=Fre.flags.slice().concat(["fullReplot"]),rit=Bre.flags.slice().concat("layoutReplot");Nre.exports={traces:Fre,layout:Bre,traceFlags:function(){return Rre(tit)},layoutFlags:function(){return Rre(rit)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var n=r.split("+"),i=0;i{"use strict";W9.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};W9.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var j9=Te((Pir,Ure)=>{"use strict";Ure.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 Hu=Te(xL=>{"use strict";var Vre=j9(),zir=Vre.FORMAT_LINK,Iir=Vre.DATE_FORMAT_LINK;function X9(e){var t=e.description?" "+e.description:"",r=e.keys||[];if(r.length>0){for(var n=[],i=0;i{"use strict";function W1(e,t){return t?t.d2l(e):e}function Gre(e,t){return t?t.l2d(e):e}function iit(e){return e.x0}function nit(e){return e.x1}function ait(e){return e.y0}function oit(e){return e.y1}function Hre(e){return e.x0shift||0}function Wre(e){return e.x1shift||0}function jre(e){return e.y0shift||0}function Xre(e){return e.y1shift||0}function bL(e,t){return W1(e.x1,t)+Wre(e)-W1(e.x0,t)-Hre(e)}function wL(e,t,r){return W1(e.y1,r)+Xre(e)-W1(e.y0,r)-jre(e)}function sit(e,t){return Math.abs(bL(e,t))}function lit(e,t,r){return Math.abs(wL(e,t,r))}function uit(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(bL(e,t),2)+Math.pow(wL(e,t,r),2))}function fit(e,t){return Gre((W1(e.x1,t)+Wre(e)+W1(e.x0,t)+Hre(e))/2,t)}function cit(e,t,r){return Gre((W1(e.y1,r)+Xre(e)+W1(e.y0,r)+jre(e))/2,r)}function hit(e,t,r){return e.type!=="line"?void 0:wL(e,t,r)/bL(e,t)}Zre.exports={x0:iit,x1:nit,y0:ait,y1:oit,slope:hit,dx:bL,dy:wL,width:sit,height:lit,length:uit,xcenter:fit,ycenter:cit}});var Jre=Te((Fir,Kre)=>{"use strict";var dit=Sc().overrideAll,fb=Vf(),Yre=gc(),pit=Id().dash,j1=Su().extendFlat,vit=Hu().shapeTexttemplateAttrs,mit=AL();Kre.exports=dit({newshape:{visible:j1({},fb.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:j1({},fb.legend,{}),legendgroup:j1({},fb.legendgroup,{}),legendgrouptitle:{text:j1({},fb.legendgrouptitle.text,{}),font:Yre({})},legendrank:j1({},fb.legendrank,{}),legendwidth:j1({},fb.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:j1({},pit,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:j1({},fb.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:vit({newshape:!0},{keys:Object.keys(mit)}),font:Yre({}),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 Qre=Te((Bir,$re)=>{"use strict";var yit=Id().dash,git=Su().extendFlat;$re.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:git({},yit,{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 TL=Te((Oir,eie)=>{"use strict";eie.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var s3=Te((qir,nie)=>{"use strict";var Z9=gc(),_it=FM(),SL=Ih(),tie=Jre(),rie=Qre(),xit=TL(),iie=Su().extendFlat,ML=Z9({editType:"calc"});ML.family.dflt='"Open Sans", verdana, arial, sans-serif';ML.size.dflt=12;ML.color.dflt=SL.defaultLine;nie.exports={font:ML,title:{text:{valType:"string",editType:"layoutstyle"},font:Z9({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Z9({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:iie(xit({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:SL.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:SL.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:SL.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:tie.newshape,activeshape:tie.activeshape,newselection:rie.newselection,activeselection:rie.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:iie({},_it.transition,{editType:"none"})}});var aie=Xf(()=>{});var bit={};var oie=Xf(()=>{aie()});var $l=Te(Tf=>{"use strict";var l3=H1(),sie=gL(),lie=U9(),wit=mg(),Ait=DM().addStyleRule,uie=Su(),Tit=Vf(),Sit=s3(),Mit=uie.extendFlat,Y9=uie.extendDeepAll;Tf.modules={};Tf.allCategories={};Tf.allTypes=[];Tf.subplotsRegistry={};Tf.componentsRegistry={};Tf.layoutArrayContainers=[];Tf.layoutArrayRegexes=[];Tf.traceLayoutAttributes={};Tf.localeRegistry={};Tf.apiMethodRegistry={};Tf.collectableSubplotTypes=null;Tf.register=function(t){if(Tf.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var zit=e3().timeFormat,xie=ku(),K9=H1(),Z1=r3().mod,c3=nf(),_0=c3.BADNUM,bv=c3.ONEDAY,BM=c3.ONEHOUR,X1=c3.ONEMIN,f3=c3.ONESEC,OM=c3.EPOCHJD,yg=$l(),pie=e3().utcFormat,Iit=/^\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,Rit=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,vie=new Date().getFullYear()-70;function gg(e){return e&&yg.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}bh.dateTick0=function(e,t){var r=Dit(e,!!t);if(t<2)return r;var n=bh.dateTime2ms(r,e);return n+=bv*(t-1),bh.ms2DateTime(n,0,e)};function Dit(e,t){return gg(e)?t?yg.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:yg.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}bh.dfltRange=function(e){return gg(e)?yg.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};bh.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var kL,CL;bh.dateTime2ms=function(e,t){if(bh.isJSDate(e)){var r=e.getTimezoneOffset()*X1,n=(e.getUTCMinutes()-e.getMinutes())*X1+(e.getUTCSeconds()-e.getSeconds())*f3+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var i=3*X1;r=r-i/2+Z1(n-r+i/2,i)}return e=Number(e)-r,e>=kL&&e<=CL?e:_0}if(typeof e!="string"&&typeof e!="number")return _0;e=String(e);var a=gg(t),o=e.charAt(0);a&&(o==="G"||o==="g")&&(e=e.substr(1),t="");var s=a&&t.substr(0,7)==="chinese",u=e.match(s?Rit:Iit);if(!u)return _0;var l=u[1],f=u[3]||"1",c=Number(u[5]||1),h=Number(u[7]||0),d=Number(u[9]||0),p=Number(u[11]||0);if(a){if(l.length===2)return _0;l=Number(l);var x;try{var b=yg.getComponentMethod("calendars","getCal")(t);if(s){var v=f.charAt(f.length-1)==="i";f=parseInt(f,10),x=b.newDate(l,b.toMonthIndex(l,f,v),c)}else x=b.newDate(l,Number(f),c)}catch(E){return _0}return x?(x.toJD()-OM)*bv+h*BM+d*X1+p*f3:_0}l.length===2?l=(Number(l)+2e3-vie)%100+vie:l=Number(l),f-=1;var k=new Date(Date.UTC(2e3,f,c,h,d));return k.setUTCFullYear(l),k.getUTCMonth()!==f||k.getUTCDate()!==c?_0:k.getTime()+p*f3};kL=bh.MIN_MS=bh.dateTime2ms("-9999");CL=bh.MAX_MS=bh.dateTime2ms("9999-12-31 23:59:59.9999");bh.isDateTime=function(e,t){return bh.dateTime2ms(e,t)!==_0};function u3(e,t){return String(e+Math.pow(10,t)).substr(1)}var EL=90*bv,mie=3*BM,yie=5*X1;bh.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=kL&&e<=CL))return _0;t||(t=0);var n=Math.floor(Z1(e+.05,1)*10),i=Math.round(e-n/10),a,o,s,u,l,f;if(gg(r)){var c=Math.floor(i/bv)+OM,h=Math.floor(Z1(e,bv));try{a=yg.getComponentMethod("calendars","getCal")(r).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){a=pie("G%Y-%m-%d")(new Date(i))}if(a.charAt(0)==="-")for(;a.length<11;)a="-0"+a.substr(1);else for(;a.length<10;)a="0"+a;o=t=kL+bv&&e<=CL-bv))return _0;var t=Math.floor(Z1(e+.05,1)*10),r=new Date(Math.round(e-t/10)),n=zit("%Y-%m-%d")(r),i=r.getHours(),a=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return bie(n,i,a,o,s)};function bie(e,t,r,n,i){if((t||r||n||i)&&(e+=" "+u3(t,2)+":"+u3(r,2),(n||i)&&(e+=":"+u3(n,2),i))){for(var a=4;i%10===0;)a-=1,i/=10;e+="."+u3(i,a)}return e}bh.cleanDate=function(e,t,r){if(e===_0)return t;if(bh.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(gg(r))return K9.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=bh.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!bh.isDateTime(e,r))return K9.error("unrecognized date",e),t;return e};var Fit=/%\d?f/g,Bit=/%h/g,Oit={1:"1",2:"1",3:"2",4:"2"};function gie(e,t,r,n){e=e.replace(Fit,function(a){var o=Math.min(+a.charAt(1)||6,6),s=(t/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return s});var i=new Date(Math.floor(t+.05));if(e=e.replace(Bit,function(){return Oit[r("%q")(i)]}),gg(n))try{e=yg.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(a){return"Invalid"}return r(e)(i)}var qit=[59,59.9,59.99,59.999,59.9999];function Nit(e,t){var r=Z1(e+.05,bv),n=u3(Math.floor(r/BM),2)+":"+u3(Z1(Math.floor(r/X1),60),2);if(t!=="M"){xie(t)||(t=0);var i=Math.min(Z1(e/f3,60),qit[t]),a=(100+i).toFixed(t).substr(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+a}return n}bh.formatDate=function(e,t,r,n,i,a){if(i=gg(i)&&i,!t)if(r==="y")t=a.year;else if(r==="m")t=a.month;else if(r==="d")t=a.dayMonth+` -`+a.year;else return Nit(e,r)+` -`+gie(a.dayMonthYear,e,n,i);return gie(t,e,n,i)};var _ie=3*bv;bh.incrementMonth=function(e,t,r){r=gg(r)&&r;var n=Z1(e,bv);if(e=Math.round(e-n),r)try{var i=Math.round(e/bv)+OM,a=yg.getComponentMethod("calendars","getCal")(r),o=a.fromJD(i);return t%12?a.add(o,t,"m"):a.add(o,t/12,"y"),(o.toJD()-OM)*bv+n}catch(u){K9.error("invalid ms "+e+" in calendar "+r)}var s=new Date(e+_ie);return s.setUTCMonth(s.getUTCMonth()+t)+n-_ie};bh.findExactDates=function(e,t){for(var r=0,n=0,i=0,a=0,o,s,u=gg(t)&&yg.getComponentMethod("calendars","getCal")(t),l=0;l{"use strict";Aie.exports=function(t){return t}});var LL=Te(_g=>{"use strict";var Uit=ku(),Vit=H1(),Git=qM(),Hit=nf().BADNUM,J9=1e-9;_g.findBin=function(e,t,r){if(Uit(t.start))return r?Math.ceil((e-t.start)/t.size-J9)-1:Math.floor((e-t.start)/t.size+J9);var n=0,i=t.length,a=0,o=i>1?(t[i-1]-t[0])/(i-1):1,s,u;for(o>=0?u=r?Wit:jit:u=r?Zit:Xit,e+=o*J9*(r?-1:1)*(o>=0?1:-1);n90&&Vit.log("Long binary search..."),n-1};function Wit(e,t){return et}function Zit(e,t){return e>=t}_g.sorterAsc=function(e,t){return e-t};_g.sorterDes=function(e,t){return t-e};_g.distinctVals=function(e){var t=e.slice();t.sort(_g.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===Hit;r--);for(var n=t[r]-t[0]||1,i=n/(r||1)/1e4,a=[],o,s=0;s<=r;s++){var u=t[s],l=u-o;o===void 0?(a.push(u),o=u):l>i&&(n=Math.min(n,l),a.push(u),o=u)}return{vals:a,minDiff:n}};_g.roundUp=function(e,t,r){for(var n=0,i=t.length-1,a,o=0,s=r?0:1,u=r?1:0,l=r?Math.ceil:Math.floor;n0&&(n=1),r&&n)return e.sort(t)}return n?e:e.reverse()};_g.findIndexOfMin=function(e,t){t=t||Git;for(var r=1/0,n,i=0;i{"use strict";Tie.exports=function(t){return Object.keys(t).sort()}});var Sie=Te(wh=>{"use strict";var NM=ku(),Yit=mp().isArrayOrTypedArray;wh.aggNums=function(e,t,r,n){var i,a;if((!n||n>r.length)&&(n=r.length),NM(t)||(t=!1),Yit(r[0])){for(a=new Array(n),i=0;ie.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var Lie=Te((Yir,Cie)=>{"use strict";var Mie=r3(),$9=Mie.mod,Kit=Mie.modHalf,UM=Math.PI,K1=2*UM;function Jit(e){return e/180*UM}function $it(e){return e/UM*180}function Q9(e){return Math.abs(e[1]-e[0])>K1-1e-14}function Eie(e,t){return Kit(t-e,K1)}function Qit(e,t){return Math.abs(Eie(e,t))}function kie(e,t){if(Q9(t))return!0;var r,n;t[0]n&&(n+=K1);var i=$9(e,K1),a=i+K1;return i>=r&&i<=n||a>=r&&a<=n}function ent(e,t,r,n){if(!kie(t,n))return!1;var i,a;return r[0]=i&&e<=a}function eq(e,t,r,n,i,a,o){i=i||0,a=a||0;var s=Q9([r,n]),u,l,f,c,h;s?(u=0,l=UM,f=K1):r{"use strict";cb.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};cb.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};cb.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};cb.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};cb.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};cb.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var Rie=Te(hb=>{"use strict";var tq=r3().mod;hb.segmentsIntersect=Iie;function Iie(e,t,r,n,i,a,o,s){var u=r-e,l=i-e,f=o-i,c=n-t,h=a-t,d=s-a,p=u*d-f*c;if(p===0)return null;var x=(l*d-f*h)/p,b=(l*c-u*h)/p;return b<0||b>1||x<0||x>1?null:{x:e+u*x,y:t+c*x}}hb.segmentDistance=function(t,r,n,i,a,o,s,u){if(Iie(t,r,n,i,a,o,s,u))return 0;var l=n-t,f=i-r,c=s-a,h=u-o,d=l*l+f*f,p=c*c+h*h,x=Math.min(PL(l,f,d,a-t,o-r),PL(l,f,d,s-t,u-r),PL(c,h,p,t-a,r-o),PL(c,h,p,n-a,i-o));return Math.sqrt(x)};function PL(e,t,r,n,i){var a=n*e+i*t;if(a<0)return n*n+i*i;if(a>r){var o=n-e,s=i-t;return o*o+s*s}else{var u=n*t-i*e;return u*u/r}}var zL,rq,zie;hb.getTextLocation=function(t,r,n,i){if((t!==rq||i!==zie)&&(zL={},rq=t,zie=i),zL[n])return zL[n];var a=t.getPointAtLength(tq(n-i/2,r)),o=t.getPointAtLength(tq(n+i/2,r)),s=Math.atan((o.y-a.y)/(o.x-a.x)),u=t.getPointAtLength(tq(n,r)),l=(u.x*4+a.x+o.x)/6,f=(u.y*4+a.y+o.y)/6,c={x:l,y:f,theta:s};return zL[n]=c,c};hb.clearLocationCache=function(){rq=null};hb.getVisibleSegment=function(t,r,n){var i=r.left,a=r.right,o=r.top,s=r.bottom,u=0,l=t.getTotalLength(),f=l,c,h;function d(x){var b=t.getPointAtLength(x);x===0?c=b:x===l&&(h=b);var v=b.xa?b.x-a:0,k=b.ys?b.y-s:0;return Math.sqrt(v*v+k*k)}for(var p=d(u);p;){if(u+=p+n,u>f)return;p=d(u)}for(p=d(f);p;){if(f-=p+n,u>f)return;p=d(f)}return{min:u,max:f,len:f-u,total:l,isClosed:u===0&&f===l&&Math.abs(c.x-h.x)<.1&&Math.abs(c.y-h.y)<.1}};hb.findPointOnPath=function(t,r,n,i){i=i||{};for(var a=i.pathLength||t.getTotalLength(),o=i.tolerance||.001,s=i.iterationLimit||30,u=t.getPointAtLength(0)[n]>t.getPointAtLength(a)[n]?-1:1,l=0,f=0,c=a,h,d,p;l0?c=h:f=h,l++}return d}});var IL=Te(VM=>{"use strict";var xg={};VM.throttle=function(t,r,n){var i=xg[t],a=Date.now();if(!i){for(var o in xg)xg[o].tsi.ts+r){s();return}i.timer=setTimeout(function(){s(),i.timer=null},r)};VM.done=function(e){var t=xg[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var n=t.onDone;t.onDone=function(){n&&n(),r(),t.onDone=null}})};VM.clear=function(e){if(e)Die(xg[e]),delete xg[e];else for(var t in xg)VM.clear(t)};function Die(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Bie=Te((Qir,Fie)=>{"use strict";Fie.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var Oie=Te((enr,RL)=>{"use strict";RL.exports=iq;RL.exports.isMobile=iq;RL.exports.default=iq;var nnt=/(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,ant=/CrOS/,ont=/android|ipad|playbook|silk/i;function iq(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=nnt.test(t)&&!ant.test(t)||!!e.tablet&&ont.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var Nie=Te((tnr,qie)=>{"use strict";var snt=ku(),lnt=Oie();qie.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=unt(),typeof r!="string")return!0;var n=lnt({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!n)for(var i=r.split(" "),a=1;a-1;s--){var u=i[s];if(u.substr(0,8)==="Version/"){var l=u.substr(8).split(".")[0];if(snt(l)&&(l=+l),l>=13)return!0}}}return n};function unt(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var Vie=Te((rnr,Uie)=>{"use strict";var fnt=Jl();Uie.exports=function(t,r,n){var i=t.selectAll("g."+n.replace(/\s/g,".")).data(r,function(o){return o[0].trace.uid});i.exit().remove(),i.enter().append("g").attr("class",n),i.order();var a=t.classed("rangeplot")?"nodeRangePlot3":"node3";return i.each(function(o){o[0][a]=fnt.select(this)}),i}});var Hie=Te((inr,Gie)=>{"use strict";var cnt=$l();Gie.exports=function(t,r){for(var n=t._context.locale,i=0;i<2;i++){for(var a=t._context.locales,o=0;o<2;o++){var s=(a[n]||{}).dictionary;if(s){var u=s[r];if(u)return u}a=cnt.localeRegistry}var l=n.split("-")[0];if(l===n)break;n=l}return r}});var nq=Te((nnr,Wie)=>{"use strict";Wie.exports=function(t){for(var r={},n=[],i=0,a=0;a{"use strict";jie.exports=function(t){for(var r=pnt(t)?dnt:hnt,n=[],i=0;i{"use strict";Zie.exports=function(t,r){if(!r)return t;var n=1/Math.abs(r),i=n>1?(n*t+n*r)/n:t+r,a=String(i).length;if(a>16){var o=String(r).length,s=String(t).length;if(a>=s+o){var u=parseFloat(i).toPrecision(12);u.indexOf("e+")===-1&&(i=+u)}}return i}});var Jie=Te((snr,Kie)=>{"use strict";var vnt=ku(),mnt=nf().BADNUM,ynt=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Kie.exports=function(t){return typeof t=="string"&&(t=t.replace(ynt,"")),vnt(t)?Number(t):mnt}});var ei=Te((lnr,fne)=>{"use strict";var GM=Jl(),gnt=e3().utcFormat,_nt=E9().format,ine=ku(),nne=nf(),ane=nne.FP_SAFE,xnt=-ane,$ie=nne.BADNUM,Tn=fne.exports={};Tn.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:t==="0.f"?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var Qie={};Tn.warnBadFormat=function(e){var t=String(e);Qie[t]||(Qie[t]=1,Tn.warn('encountered bad format: "'+t+'"'))};Tn.noFormat=function(e){return String(e)};Tn.numberFormat=function(e){var t;try{t=_nt(Tn.adjustFormat(e))}catch(r){return Tn.warnBadFormat(e),Tn.noFormat}return t};Tn.nestedProperty=kM();Tn.keyedContainer=Hee();Tn.relativeAttr=jee();Tn.isPlainObject=mg();Tn.toLogRange=cL();Tn.relinkPrivateKeys=Kee();var J1=mp();Tn.isArrayBuffer=J1.isArrayBuffer;Tn.isTypedArray=J1.isTypedArray;Tn.isArrayOrTypedArray=J1.isArrayOrTypedArray;Tn.isArray1D=J1.isArray1D;Tn.ensureArray=J1.ensureArray;Tn.concat=J1.concat;Tn.maxRowLength=J1.maxRowLength;Tn.minRowLength=J1.minRowLength;var one=r3();Tn.mod=one.mod;Tn.modHalf=one.modHalf;var $1=vte();Tn.valObjectMeta=$1.valObjectMeta;Tn.coerce=$1.coerce;Tn.coerce2=$1.coerce2;Tn.coerceFont=$1.coerceFont;Tn.coercePattern=$1.coercePattern;Tn.coerceHoverinfo=$1.coerceHoverinfo;Tn.coerceSelectionMarkerOpacity=$1.coerceSelectionMarkerOpacity;Tn.validate=$1.validate;var Wv=wie();Tn.dateTime2ms=Wv.dateTime2ms;Tn.isDateTime=Wv.isDateTime;Tn.ms2DateTime=Wv.ms2DateTime;Tn.ms2DateTimeLocal=Wv.ms2DateTimeLocal;Tn.cleanDate=Wv.cleanDate;Tn.isJSDate=Wv.isJSDate;Tn.formatDate=Wv.formatDate;Tn.incrementMonth=Wv.incrementMonth;Tn.dateTick0=Wv.dateTick0;Tn.dfltRange=Wv.dfltRange;Tn.findExactDates=Wv.findExactDates;Tn.MIN_MS=Wv.MIN_MS;Tn.MAX_MS=Wv.MAX_MS;var db=LL();Tn.findBin=db.findBin;Tn.sorterAsc=db.sorterAsc;Tn.sorterDes=db.sorterDes;Tn.distinctVals=db.distinctVals;Tn.roundUp=db.roundUp;Tn.sort=db.sort;Tn.findIndexOfMin=db.findIndexOfMin;Tn.sortObjectKeys=Y1();var bg=Sie();Tn.aggNums=bg.aggNums;Tn.len=bg.len;Tn.mean=bg.mean;Tn.geometricMean=bg.geometricMean;Tn.median=bg.median;Tn.midRange=bg.midRange;Tn.variance=bg.variance;Tn.stdev=bg.stdev;Tn.interp=bg.interp;var gm=_L();Tn.init2dArray=gm.init2dArray;Tn.transposeRagged=gm.transposeRagged;Tn.dot=gm.dot;Tn.translationMatrix=gm.translationMatrix;Tn.rotationMatrix=gm.rotationMatrix;Tn.rotationXYMatrix=gm.rotationXYMatrix;Tn.apply3DTransform=gm.apply3DTransform;Tn.apply2DTransform=gm.apply2DTransform;Tn.apply2DTransform2=gm.apply2DTransform2;Tn.convertCssMatrix=gm.convertCssMatrix;Tn.inverseTransformMatrix=gm.inverseTransformMatrix;var py=Lie();Tn.deg2rad=py.deg2rad;Tn.rad2deg=py.rad2deg;Tn.angleDelta=py.angleDelta;Tn.angleDist=py.angleDist;Tn.isFullCircle=py.isFullCircle;Tn.isAngleInsideSector=py.isAngleInsideSector;Tn.isPtInsideSector=py.isPtInsideSector;Tn.pathArc=py.pathArc;Tn.pathSector=py.pathSector;Tn.pathAnnulus=py.pathAnnulus;var d3=Pie();Tn.isLeftAnchor=d3.isLeftAnchor;Tn.isCenterAnchor=d3.isCenterAnchor;Tn.isRightAnchor=d3.isRightAnchor;Tn.isTopAnchor=d3.isTopAnchor;Tn.isMiddleAnchor=d3.isMiddleAnchor;Tn.isBottomAnchor=d3.isBottomAnchor;var p3=Rie();Tn.segmentsIntersect=p3.segmentsIntersect;Tn.segmentDistance=p3.segmentDistance;Tn.getTextLocation=p3.getTextLocation;Tn.clearLocationCache=p3.clearLocationCache;Tn.getVisibleSegment=p3.getVisibleSegment;Tn.findPointOnPath=p3.findPointOnPath;var BL=Su();Tn.extendFlat=BL.extendFlat;Tn.extendDeep=BL.extendDeep;Tn.extendDeepAll=BL.extendDeepAll;Tn.extendDeepNoArrays=BL.extendDeepNoArrays;var aq=H1();Tn.log=aq.log;Tn.warn=aq.warn;Tn.error=aq.error;var bnt=n3();Tn.counterRegex=bnt.counter;var oq=IL();Tn.throttle=oq.throttle;Tn.throttleDone=oq.done;Tn.clearThrottle=oq.clear;var _m=DM();Tn.getGraphDiv=_m.getGraphDiv;Tn.isPlotDiv=_m.isPlotDiv;Tn.removeElement=_m.removeElement;Tn.addStyleRule=_m.addStyleRule;Tn.addRelatedStyleRule=_m.addRelatedStyleRule;Tn.deleteRelatedStyleRule=_m.deleteRelatedStyleRule;Tn.setStyleOnHover=_m.setStyleOnHover;Tn.getFullTransformMatrix=_m.getFullTransformMatrix;Tn.getElementTransformMatrix=_m.getElementTransformMatrix;Tn.getElementAndAncestors=_m.getElementAndAncestors;Tn.equalDomRects=_m.equalDomRects;Tn.clearResponsive=Bie();Tn.preserveDrawingBuffer=Nie();Tn.makeTraceGroups=Vie();Tn._=Hie();Tn.notifier=O9();Tn.filterUnique=nq();Tn.filterVisible=Xie();Tn.pushUnique=U9();Tn.increment=Yie();Tn.cleanNumber=Jie();Tn.ensureNumber=function(t){return ine(t)?(t=Number(t),t>ane||t=t?!1:ine(e)&&e>=0&&e%1===0};Tn.noop=gL();Tn.identity=qM();Tn.repeat=function(e,t){for(var r=new Array(t),n=0;nr?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};Tn.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};Tn.simpleMap=function(e,t,r,n,i){for(var a=e.length,o=new Array(a),s=0;s=Math.pow(2,r)?i>10?(Tn.warn("randstr failed uniqueness"),o):e(t,r,n,(i||0)+1):o};Tn.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(n){n[t]=e,r[n.name]=n,r.optionList.push(n)},r["_"+t]=e,r};Tn.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,n=2*r,i=2*t-1,a=new Array(i),o=new Array(r),s,u,l,f;for(s=0;s=n&&(l-=n*Math.floor(l/n)),l<0?l=-1-l:l>=r&&(l=n-1-l),f+=e[l]*a[u];o[s]=f}return o};Tn.syncOrAsync=function(e,t,r){var n,i;function a(){return Tn.syncOrAsync(e,t,r)}for(;e.length;)if(i=e.splice(0,1)[0],n=i(t),n&&n.then)return n.then(a);return r&&r(t)};Tn.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};Tn.noneOrAll=function(e,t,r){if(e){var n=!1,i=!0,a,o;for(a=0;a0?i:0})};Tn.fillArray=function(e,t,r,n){if(n=n||Tn.identity,Tn.isArrayOrTypedArray(e))for(var i=0;i1?i+o[1]:"";if(a&&(o.length>1||s.length>4||r))for(;n.test(s);)s=s.replace(n,"$1"+a+"$2");return s+u};Tn.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var une=/^\w*$/;Tn.templateString=function(e,t){var r={};return e.replace(Tn.TEMPLATE_STRING_REGEX,function(n,i){var a;return une.test(i)?a=t[i]:(r[i]=r[i]||Tn.nestedProperty(t,i).get,a=r[i](!0)),a!==void 0?a:""})};var Ent={max:10,count:0,name:"hovertemplate"};Tn.hovertemplateString=function(){return sq.apply(Ent,arguments)};var knt={max:10,count:0,name:"texttemplate"};Tn.texttemplateString=function(){return sq.apply(knt,arguments)};var Cnt=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Lnt(e){var t=e.match(Cnt);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var Pnt={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Tn.texttemplateStringForShapes=function(){return sq.apply(Pnt,arguments)};var ene=/^[:|\|]/;function sq(e,t,r){var n=this,i=arguments;return t||(t={}),e.replace(Tn.TEMPLATE_STRING_REGEX,function(a,o,s){var u=o==="xother"||o==="yother",l=o==="_xother"||o==="_yother",f=o==="_xother_"||o==="_yother_",c=o==="xother_"||o==="yother_",h=u||l||c||f,d=o;(l||f)&&(d=d.substring(1)),(c||f)&&(d=d.substring(0,d.length-1));var p=null,x=null;if(n.parseMultDiv){var b=Lnt(d);d=b.key,p=b.op,x=b.number}var v;if(h){if(v=t[d],v===void 0)return""}else{var k,E;for(E=3;E=FL&&o<=tne,l=s>=FL&&s<=tne;if(u&&(n=10*n+o-FL),l&&(i=10*i+s-FL),!u||!l){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var h3=2e9;Tn.seedPseudoRandom=function(){h3=2e9};Tn.pseudoRandom=function(){var e=h3;return h3=(69069*h3+1)%4294967296,Math.abs(h3-e)<429496729?Tn.pseudoRandom():h3/4294967296};Tn.fillText=function(e,t,r){var n=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},i=Tn.extractOption(e,t,"htx","hovertext");if(Tn.isValidTextValue(i))return n(i);var a=Tn.extractOption(e,t,"tx","text");if(Tn.isValidTextValue(a))return n(a)};Tn.isValidTextValue=function(e){return e||e===0};Tn.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",n=0;n1&&(l=1):l=0,Tn.strTranslate(i-l*(r+o),a-l*(n+s))+Tn.strScale(l)+(u?"rotate("+u+(t?"":" "+r+" "+n)+")":"")};Tn.setTransormAndDisplay=function(e,t){e.attr("transform",Tn.getTextTransform(t)),e.style("display",t.scale?null:"none")};Tn.ensureUniformFontSize=function(e,t){var r=Tn.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};Tn.join2=function(e,t,r){var n=e.length;return n>1?e.slice(0,-1).join(t)+r+e[n-1]:e.join(t)};Tn.bigFont=function(e){return Math.round(1.2*e)};var rne=Tn.getFirefoxVersion(),znt=rne!==null&&rne<86;Tn.getPositionFromD3Event=function(){return znt?[GM.event.layerX,GM.event.layerY]:[GM.event.offsetX,GM.event.offsetY]}});var dne=Te(()=>{"use strict";var Int=ei(),cne={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .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(lq in cne)hne=lq.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Int.addStyleRule(hne,cne[lq]);var hne,lq});var uq=Te((cnr,pne)=>{pne.exports=!0});var cq=Te((hnr,vne)=>{"use strict";var Rnt=uq(),fq;typeof window.matchMedia=="function"?fq=!window.matchMedia("(hover: none)").matches:fq=Rnt;vne.exports=fq});var pb=Te((dnr,hq)=>{"use strict";var v3=typeof Reflect=="object"?Reflect:null,mne=v3&&typeof v3.apply=="function"?v3.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},OL;v3&&typeof v3.ownKeys=="function"?OL=v3.ownKeys:Object.getOwnPropertySymbols?OL=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:OL=function(t){return Object.getOwnPropertyNames(t)};function Dnt(e){console&&console.warn&&console.warn(e)}var gne=Number.isNaN||function(t){return t!==t};function qc(){qc.init.call(this)}hq.exports=qc;hq.exports.once=qnt;qc.EventEmitter=qc;qc.prototype._events=void 0;qc.prototype._eventsCount=0;qc.prototype._maxListeners=void 0;var yne=10;function qL(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(qc,"defaultMaxListeners",{enumerable:!0,get:function(){return yne},set:function(e){if(typeof e!="number"||e<0||gne(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");yne=e}});qc.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};qc.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||gne(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function _ne(e){return e._maxListeners===void 0?qc.defaultMaxListeners:e._maxListeners}qc.prototype.getMaxListeners=function(){return _ne(this)};qc.prototype.emit=function(t){for(var r=[],n=1;n0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var u=a[t];if(u===void 0)return!1;if(typeof u=="function")mne(u,this,r);else for(var l=u.length,f=Tne(u,l),n=0;n0&&o.length>i&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,Dnt(s)}return e}qc.prototype.addListener=function(t,r){return xne(this,t,r,!1)};qc.prototype.on=qc.prototype.addListener;qc.prototype.prependListener=function(t,r){return xne(this,t,r,!0)};function Fnt(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function bne(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=Fnt.bind(n);return i.listener=r,n.wrapFn=i,i}qc.prototype.once=function(t,r){return qL(r),this.on(t,bne(this,t,r)),this};qc.prototype.prependOnceListener=function(t,r){return qL(r),this.prependListener(t,bne(this,t,r)),this};qc.prototype.removeListener=function(t,r){var n,i,a,o,s;if(qL(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){s=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():Bnt(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};qc.prototype.off=qc.prototype.removeListener;qc.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i=0;i--)this.removeListener(t,r[i]);return this};function wne(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?Ont(i):Tne(i,i.length)}qc.prototype.listeners=function(t){return wne(this,t,!0)};qc.prototype.rawListeners=function(t){return wne(this,t,!1)};qc.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Ane.call(e,t)};qc.prototype.listenerCount=Ane;function Ane(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}qc.prototype.eventNames=function(){return this._eventsCount>0?OL(this._events):[]};function Tne(e,t){for(var r=new Array(t),n=0;n{"use strict";var dq=pb().EventEmitter,Unt={init:function(e){if(e._ev instanceof dq)return e;var t=new dq,r=new dq;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(n,i){t.emit(n,i),r.emit(n,i)},e},triggerHandler:function(e,t,r){var n,i=e._ev;if(!i)return;var a=i._events[t];if(!a)return;function o(u){if(u.listener){if(i.removeListener(t,u.listener),!u.fired)return u.fired=!0,u.listener.apply(i,[r])}else return u.apply(i,[r])}a=Array.isArray(a)?a:[a];var s;for(s=0;s{"use strict";var Ene=ei(),Vnt=ub().dfltConfig;function Gnt(e,t){for(var r=[],n,i=0;iVnt.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};wg.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};wg.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};wg.undo=function(t){var r,n;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n{"use strict";Lne.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var _3=Te($h=>{"use strict";var x0=$l(),HM=ei(),UL=Vf(),vq=s3(),Hnt=pq(),Wnt=FM(),jnt=ub().configAttributes,Pne=Sc(),xm=HM.extendDeepAll,y3=HM.isPlainObject,Xnt=HM.isArrayOrTypedArray,VL=HM.nestedProperty,Znt=HM.valObjectMeta,mq="_isSubplotObj",GL="_isLinkedToArray",Ynt="_arrayAttrRegexps",Ine="_deprecated",yq=[mq,GL,Ynt,Ine];$h.IS_SUBPLOT_OBJ=mq;$h.IS_LINKED_TO_ARRAY=GL;$h.DEPRECATED=Ine;$h.UNDERSCORE_ATTRS=yq;$h.get=function(){var e={};return x0.allTypes.forEach(function(t){e[t]=Jnt(t)}),{defs:{valObjects:Znt,metaKeys:yq.concat(["description","role","editType","impliedEdits"]),editType:{traces:Pne.traces,layout:Pne.layout},impliedEdits:{}},traces:e,layout:$nt(),frames:Qnt(),animation:g3(Wnt),config:g3(jnt)}};$h.crawl=function(e,t,r,n){var i=r||0;n=n||"",Object.keys(e).forEach(function(a){var o=e[a];if(yq.indexOf(a)===-1){var s=(n?n+".":"")+a;t(o,a,e,i,s),!$h.isValObject(o)&&y3(o)&&a!=="impliedEdits"&&$h.crawl(o,t,i+1,s)}})};$h.isValObject=function(e){return e&&e.valType!==void 0};$h.findArrayAttributes=function(e){var t=[],r=[],n=[],i,a;function o(u,l,f,c){r=r.slice(0,c).concat([l]),n=n.slice(0,c).concat([u&&u._isLinkedToArray]);var h=u&&(u.valType==="data_array"||u.arrayOk===!0)&&!(r[c-1]==="colorbar"&&(l==="ticktext"||l==="tickvals"));h&&s(i,0,"")}function s(u,l,f){var c=u[r[l]],h=f+r[l];if(l===r.length-1)Xnt(c)&&t.push(a+h);else if(n[l]){if(Array.isArray(c))for(var d=0;d=a.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var o=t[r];if(!NL(o))return!1;e=a[i][o]}else e=a[i]}else e=a}}return e}function NL(e){return e===Math.round(e)&&e>=0}function Jnt(e){var t,r;t=x0.modules[e]._module,r=t.basePlotModule;var n={};n.type=null;var i=xm({},UL),a=xm({},t.attributes);$h.crawl(a,function(u,l,f,c,h){VL(i,h).set(void 0),u===void 0&&VL(a,h).set(void 0)}),xm(n,i),x0.traceIs(e,"noOpacity")&&delete n.opacity,x0.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),x0.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),t.selectPoints||delete n.selectedpoints,xm(n,a),r.attributes&&xm(n,r.attributes),n.type=e;var o={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:g3(n)};if(t.layoutAttributes){var s={};xm(s,t.layoutAttributes),o.layoutAttributes=g3(s)}return t.animatable||$h.crawl(o,function(u){$h.isValObject(u)&&"anim"in u&&delete u.anim}),o}function $nt(){var e={},t,r;xm(e,vq);for(t in x0.subplotsRegistry)if(r=x0.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var n=0;n{"use strict";var x3=ei(),nat=Vf(),Q1="templateitemname",gq={name:{valType:"string",editType:"none"}};gq[Q1]={valType:"string",editType:"calc"};vb.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=gq.name,t[Q1]=gq[Q1],t};vb.traceTemplater=function(e){var t={},r,n;for(r in e)n=e[r],Array.isArray(n)&&n.length&&(t[r]=0);function i(a){r=x3.coerce(a,{},nat,"type");var o={type:r,_template:null};if(r in t){n=e[r];var s=t[r]%n.length;t[r]++,o._template=n[s]}return o}return{newTrace:i}};vb.newContainer=function(e,t,r){var n=e._template,i=n&&(n[t]||r&&n[r]);x3.isPlainObject(i)||(i=null);var a=e[t]={_template:i};return a};vb.arrayTemplater=function(e,t,r){var n=e._template,i=n&&n[Fne(t)],a=n&&n[t];(!Array.isArray(a)||!a.length)&&(a=[]);var o={};function s(l){var f={name:l.name,_input:l},c=f[Q1]=l[Q1];if(!Dne(c))return f._template=i,f;for(var h=0;h=n&&(r._input||{})._templateitemname;a&&(i=n);var o=t+"["+i+"]",s;function u(){s={},a&&(s[o]={},s[o][Q1]=a)}u();function l(d,p){s[d]=p}function f(d,p){a?x3.nestedProperty(s[o],d).set(p):s[o+"."+d]=p}function c(){var d=s;return u(),d}function h(d,p){d&&f(d,p);var x=c();for(var b in x)x3.nestedProperty(e,b).set(x[b])}return{modifyBase:l,modifyItem:f,getUpdateObj:c,applyUpdate:h}}});var dd=Te((_nr,Bne)=>{"use strict";var WM=n3().counter;Bne.exports={idRegex:{x:WM("x","( domain)?"),y:WM("y","( domain)?")},attrRegex:WM("[xy]axis"),xAxisMatch:WM("xaxis"),yAxisMatch:WM("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 $c=Te(wv=>{"use strict";var aat=$l(),_q=dd();wv.id2name=function(t){if(!(typeof t!="string"||!t.match(_q.AX_ID_PATTERN))){var r=t.split(" ")[0].substr(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};wv.name2id=function(t){if(t.match(_q.AX_NAME_PATTERN)){var r=t.substr(5);return r==="1"&&(r=""),t.charAt(0)+r}};wv.cleanId=function(t,r,n){var i=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(_q.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(i&&!n)){var a=t.split(" ")[0].substr(1).replace(/^0+/,"");return a==="1"&&(a=""),t.charAt(0)+a+(i&&n?" domain":"")}};wv.list=function(e,t,r){var n=e._fullLayout;if(!n)return[];var i=wv.listIds(e,t),a=new Array(i.length),o;for(o=0;on?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)};wv.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function One(e,t){if(t&&t.length){for(var r=0;r{"use strict";function oat(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function sat(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}qne.exports={clearOutlineControllers:oat,clearOutline:sat}});var HL=Te((wnr,Nne)=>{"use strict";Nne.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Rd=Te(jL=>{"use strict";var WL=$l(),Anr=dd().SUBPLOT_PATTERN;jL.getSubplotCalcData=function(e,t,r){var n=WL.subplotsRegistry[t];if(!n)return[];for(var i=n.attr,a=[],o=0;o{"use strict";var lat=$l(),b3=ei();mb.manageCommandObserver=function(e,t,r,n){var i={},a=!0;t&&t._commandObserver&&(i=t._commandObserver),i.cache||(i.cache={}),i.lookupTable={};var o=mb.hasSimpleAPICommandBindings(e,r,i.lookupTable);if(t&&t._commandObserver){if(o)return i;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,i}if(o){Une(e,o,i.cache),i.check=function(){if(a){var f=Une(e,o,i.cache);return f.changed&&n&&i.lookupTable[f.value]!==void 0&&(i.disable(),Promise.resolve(n({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:i.lookupTable[f.value]})).then(i.enable,i.enable)),f.changed}};for(var s=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],u=0;u0?".":"")+i;b3.isPlainObject(a)?xq(a,t,o,n+1):t(o,i,a)}})}});var Cc=Te((Mnr,nae)=>{"use strict";var Jne=Jl(),fat=e3().timeFormatLocale,cat=E9().formatLocale,jM=ku(),hat=k9(),Hf=$l(),$ne=_3(),dat=Pf(),nu=ei(),Qne=jl(),Wne=nf().BADNUM,Av=$c(),pat=e_().clearOutline,vat=HL(),bq=FM(),mat=pq(),yat=Rd().getModuleCalcData,jne=nu.relinkPrivateKeys,yb=nu._,Nl=nae.exports={};nu.extendFlat(Nl,Hf);Nl.attributes=Vf();Nl.attributes.type.values=Nl.allTypes;Nl.fontAttrs=gc();Nl.layoutAttributes=s3();var ZL=Hne();Nl.executeAPICommand=ZL.executeAPICommand;Nl.computeAPICommandBindings=ZL.computeAPICommandBindings;Nl.manageCommandObserver=ZL.manageCommandObserver;Nl.hasSimpleAPICommandBindings=ZL.hasSimpleAPICommandBindings;Nl.redrawText=function(e){return e=nu.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(Hf.getComponentMethod("annotations","draw")(e),Hf.getComponentMethod("legend","draw")(e),Hf.getComponentMethod("colorbar","draw")(e),t(Nl.previousPromises(e)))},300)})};Nl.resize=function(e){e=nu.getGraphDiv(e);var t,r=new Promise(function(n,i){(!e||nu.isHidden(e))&&i(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||nu.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var a=e.changed;e.autoplay=!0,Hf.call("relayout",e,{autosize:!0}).then(function(){e.changed=a,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return t&&t(r),r};Nl.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Nl.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=nu.ensureSingle(t._paper,"text","js-plot-link-container",function(u){u.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Qne.defaultLine,"pointer-events":"all"}).each(function(){var l=Jne.select(this);l.append("tspan").classed("js-link-to-tool",!0),l.append("tspan").classed("js-link-spacer",!0),l.append("tspan").classed("js-sourcelinks",!0)})}),n=r.node(),i={y:t._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),r.attr(i);var a=r.select(".js-link-to-tool"),o=r.select(".js-link-spacer"),s=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&gat(e,a),o.text(a.text()&&s.text()?" - ":"")}};function gat(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)r.on("click",function(){Nl.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),i=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+i})}}Nl.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=Jne.select(e).append("div").attr("id","hiddenform").style("display","none"),n=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"}),i=n.append("input").attr({type:"text",name:"data"});return i.node().value=Nl.graphJson(e,!1,"keepdata"),n.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var _at=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],xat=["year","month","dayMonth","dayMonthYear"];Nl.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var i=e._fullLayout={},a=e.layout||{},o=e._fullData||[],s=e._fullData=[],u=e.data||[],l=e.calcdata||[],f=e._context||{},c;e._transitionData||Nl.createTransitionData(e),i._dfltTitle={plot:yb(e,"Click to enter Plot title"),subtitle:yb(e,"Click to enter Plot subtitle"),x:yb(e,"Click to enter X axis title"),y:yb(e,"Click to enter Y axis title"),colorbar:yb(e,"Click to enter Colorscale title"),annotation:yb(e,"new text")},i._traceWord=yb(e,"trace");var h=Xne(e,_at);if(i._mapboxAccessToken=f.mapboxAccessToken,n._initialAutoSizeIsDone){var d=n.width,p=n.height;Nl.supplyLayoutGlobalDefaults(a,i,h),a.width||(i.width=d),a.height||(i.height=p),Nl.sanitizeMargins(i)}else{Nl.supplyLayoutGlobalDefaults(a,i,h);var x=!a.width||!a.height,b=i.autosize,v=f.autosizable,k=x&&(b||v);k?Nl.plotAutoSize(e,a,i):x&&Nl.sanitizeMargins(i),!b&&x&&(a.width=i.width,a.height=i.height)}i._d3locale=Aat(h,i.separators),i._extraFormat=Xne(e,xat),i._initialAutoSizeIsDone=!0,i._dataLength=u.length,i._modules=[],i._visibleModules=[],i._basePlotModules=[];var E=i._subplots=wat(),T=i._splomAxes={x:{},y:{}},L=i._splomSubplots={};i._splomGridDflt={},i._scatterStackOpts={},i._firstScatter={},i._alignmentOpts={},i._colorAxes={},i._requestRangeslider={},i._traceUids=bat(o,u),Nl.supplyDataDefaults(u,s,a,i);var _=Object.keys(T.x),C=Object.keys(T.y);if(_.length>1&&C.length>1){for(Hf.getComponentMethod("grid","sizeDefaults")(a,i),c=0;c<_.length;c++)nu.pushUnique(E.xaxis,_[c]);for(c=0;c15&&C.length>15&&i.shapes.length===0&&i.images.length===0,Nl.linkSubplots(s,i,o,n),Nl.cleanPlot(s,i,o,n);var B=!!(n._has&&n._has("cartesian")),F=!!(i._has&&i._has("cartesian")),U=B,G=F;U&&!G?n._bgLayer.remove():G&&!U&&(i._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&pat({_fullLayout:n}),Tat(s,i),jne(i,n),Hf.getComponentMethod("colorscale","crossTraceDefaults")(s,i),i._preGUI||(i._preGUI={}),i._tracePreGUI||(i._tracePreGUI={});var j=i._tracePreGUI,H={},N;for(N in j)H[N]="old";for(c=0;c0){var f=1-2*a;o=Math.round(f*o),s=Math.round(f*s)}}var c=Nl.layoutAttributes.width.min,h=Nl.layoutAttributes.height.min;o1,p=!r.height&&Math.abs(n.height-s)>1;(p||d)&&(d&&(n.width=o),p&&(n.height=s)),t._initialAutoSize||(t._initialAutoSize={width:o,height:s}),Nl.sanitizeMargins(n)};Nl.supplyLayoutModuleDefaults=function(e,t,r,n){var i=Hf.componentsRegistry,a=t._basePlotModules,o,s,u,l=Hf.subplotsRegistry.cartesian;for(o in i)u=i[o],u.includeBasePlot&&u.includeBasePlot(e,t);a.length||a.push(l),t._has("cartesian")&&(Hf.getComponentMethod("grid","contentDefaults")(e,t),l.finalizeSubplots(e,t));for(var f in t._subplots)t._subplots[f].sort(nu.subplotSort);for(s=0;s1&&(r.l/=b,r.r/=b)}if(h){var v=(r.t+r.b)/h;v>1&&(r.t/=v,r.b/=v)}var k=r.xl!==void 0?r.xl:r.x,E=r.xr!==void 0?r.xr:r.x,T=r.yt!==void 0?r.yt:r.y,L=r.yb!==void 0?r.yb:r.y;d[t]={l:{val:k,size:r.l+x},r:{val:E,size:r.r+x},b:{val:L,size:r.b+x},t:{val:T,size:r.t+x}},p[t]=1}if(!n._replotting)return Nl.doAutoMargin(e)}};function Mat(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Av.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}Nl.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,n=t.height;t._size||(t._size={}),eae(t);var i=t._size,a=t.margin,o={t:0,b:0,l:0,r:0},s=nu.extendFlat({},i),u=a.l,l=a.r,f=a.t,c=a.b,h=t._pushmargin,d=t._pushmarginIds,p=t.minreducedwidth,x=t.minreducedheight;if(a.autoexpand!==!1){for(var b in h)d[b]||delete h[b];var v=e._fullLayout._reservedMargin;for(var k in v)for(var E in v[k]){var T=v[k][E];o[E]=Math.max(o[E],T)}h.base={l:{val:0,size:u},r:{val:1,size:l},t:{val:1,size:f},b:{val:0,size:c}};for(var L in o){var _=0;for(var C in h)C!=="base"&&jM(h[C][L].size)&&(_=h[C][L].size>_?h[C][L].size:_);var S=Math.max(0,a[L]-_);o[L]=Math.max(0,o[L]-S)}for(var m in h){var P=h[m].l||{},A=h[m].b||{},B=P.val,F=P.size,U=A.val,G=A.size,j=r-o.r-o.l,H=n-o.t-o.b;for(var N in h){if(jM(F)&&h[N].r){var W=h[N].r.val,re=h[N].r.size;if(W>B){var ae=(F*W+(re-j)*B)/(W-B),be=(re*(1-B)+(F-j)*(1-W))/(W-B);ae+be>u+l&&(u=ae,l=be)}}if(jM(G)&&h[N].t){var Pe=h[N].t.val,Ce=h[N].t.size;if(Pe>U){var de=(G*Pe+(Ce-H)*U)/(Pe-U),te=(Ce*(1-U)+(G-H)*(1-Pe))/(Pe-U);de+te>c+f&&(c=de,f=te)}}}}}var ke=nu.constrain(r-a.l-a.r,tae,p),Ee=nu.constrain(n-a.t-a.b,rae,x),Me=Math.max(0,r-ke),Ue=Math.max(0,n-Ee);if(Me){var Fe=(u+l)/Me;Fe>1&&(u/=Fe,l/=Fe)}if(Ue){var me=(c+f)/Ue;me>1&&(c/=me,f/=me)}if(i.l=Math.round(u)+o.l,i.r=Math.round(l)+o.r,i.t=Math.round(f)+o.t,i.b=Math.round(c)+o.b,i.p=Math.round(a.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!t._replotting&&(Nl.didMarginChange(s,i)||Mat(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var Ne=3*(1+Object.keys(d).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};Nl.graphJson=function(e,t,r,n,i,a){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&Nl.supplyDefaults(e);var o=i?e._fullData:e.data,s=i?e._fullLayout:e.layout,u=(e._transitionData||{})._frames;function l(h,d){if(typeof h=="function")return d?"_function_":null;if(nu.isPlainObject(h)){var p={},x;return Object.keys(h).sort().forEach(function(E){if(["_","["].indexOf(E.charAt(0))===-1){if(typeof h[E]=="function"){d&&(p[E]="_function");return}if(r==="keepdata"){if(E.substr(E.length-3)==="src")return}else if(r==="keepstream"){if(x=h[E+"src"],typeof x=="string"&&x.indexOf(":")>0&&!nu.isPlainObject(h.stream))return}else if(r!=="keepall"&&(x=h[E+"src"],typeof x=="string"&&x.indexOf(":")>0))return;p[E]=l(h[E],d)}}),p}var b=Array.isArray(h),v=nu.isTypedArray(h);if((b||v)&&h.dtype&&h.shape){var k=h.bdata;return l({dtype:h.dtype,shape:h.shape,bdata:nu.isArrayBuffer(k)?hat.encode(k):k},d)}return b?h.map(function(E){return l(E,d)}):v?nu.simpleMap(h,nu.identity):nu.isJSDate(h)?nu.ms2DateTimeLocal(+h):h}var f={data:(o||[]).map(function(h){var d=l(h);return t&&delete d.fit,d})};if(!t&&(f.layout=l(s),i)){var c=s._size;f.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return u&&(f.frames=l(u)),a&&(f.config=l(e._context,!0)),n==="object"?f:JSON.stringify(f)};Nl.modifyFrames=function(e,t){var r,n,i,a=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return Hf.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function p(){return h++,function(){d++,!n&&d===h&&s(c)}}r.runFn(p),setTimeout(p())})}function s(c){if(e._transitionData)return a(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return Hf.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function u(){if(e._transitionData)return e._transitioning=!1,i(e._transitionData._interruptCallbacks)}var l=[Nl.previousPromises,u,r.prepareFn,Nl.rehover,Nl.reselect,o],f=nu.syncOrAsync(l,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Nl.doCalcdata=function(e,t){var r=Av.list(e),n=e._fullData,i=e._fullLayout,a,o,s,u,l=new Array(n.length),f=(e.calcdata||[]).slice();for(e.calcdata=l,i._numBoxes=0,i._numViolins=0,i._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,i._piecolormap={},i._sunburstcolormap={},i._treemapcolormap={},i._iciclecolormap={},i._funnelareacolormap={},s=0;s=0;u--)if(L[u].enabled){a._indexToPoints=L[u]._indexToPoints;break}o&&o.calc&&(T=o.calc(e,a))}(!Array.isArray(T)||!T[0])&&(T=[{x:Wne,y:Wne}]),T[0].t||(T[0].t={}),T[0].trace=a,l[k]=T}}for(Yne(r,n,i),s=0;s{"use strict";gb.xmlns="http://www.w3.org/2000/xmlns/";gb.svg="http://www.w3.org/2000/svg";gb.xlink="http://www.w3.org/1999/xlink";gb.svgAttrs={xmlns:gb.svg,"xmlns:xlink":gb.xlink}});var Qh=Te((knr,aae)=>{"use strict";aae.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var Zf=Te(b0=>{"use strict";var Rh=Jl(),Ag=ei(),Lat=Ag.strTranslate,wq=jv(),Pat=Qh().LINE_SPACING,zat=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;b0.convertToTspans=function(e,t,r){var n=e.text(),i=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&n.match(zat),a=Rh.select(e.node().parentNode);if(a.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function s(){a.empty()||(o=e.attr("class")+"-math",a.select("svg."+o).remove()),e.text("").style("white-space","pre");var u=Wat(e.node(),n);u&&e.style("pointer-events","all"),b0.positionText(e),r&&r.call(e)}return i?(t&&t._promises||[]).push(new Promise(function(u){e.style("display","none");var l=parseInt(e.node().style.fontSize,10),f={fontSize:l};Fat(i[2],f,function(c,h,d){a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove();var p=c&&c.select("svg");if(!p||!p.node()){s(),u();return}var x=a.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});x.node().appendChild(p.node()),h&&h.node()&&p.node().insertBefore(h.node().cloneNode(!0),p.node().firstChild);var b=d.width,v=d.height;p.attr({class:o,height:v,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var k=e.node().style.fill||"black",E=p.select("g");E.attr({fill:k,stroke:k});var T=E.node().getBoundingClientRect(),L=T.width,_=T.height;(L>b||_>v)&&(p.style("overflow","hidden"),T=p.node().getBoundingClientRect(),L=T.width,_=T.height);var C=+e.attr("x"),S=+e.attr("y"),m=l||e.node().getBoundingClientRect().height,P=-m/4;if(o[0]==="y")x.attr({transform:"rotate("+[-90,C,S]+")"+Lat(-L/2,P-_/2)});else if(o[0]==="l")S=P-_/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)C=0,S=P;else{var A=e.attr("text-anchor");C=C-L*(A==="middle"?.5:A==="end"?1:0),S=S+P-_/2}p.attr({x:C,y:S}),r&&r.call(e,x),u(x)})})):s(),e};var Iat=/(<|<|<)/g,Rat=/(>|>|>)/g;function Dat(e){return e.replace(Iat,"\\lt ").replace(Rat,"\\gt ")}var oae=[["$","$"],["\\(","\\)"]];function Fat(e,t,r){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){Ag.warn("No MathJax version:",MathJax.version);return}var i,a,o,s,u=function(){return a=Ag.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:oae},displayAlign:"left"})},l=function(){a=Ag.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=oae},f=function(){if(i=MathJax.Hub.config.menuSettings.renderer,i!=="SVG")return MathJax.Hub.setRenderer("SVG")},c=function(){i=MathJax.config.startup.output,i!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var k="math-output-"+Ag.randstr({},64);s=Rh.select("body").append("div").attr({id:k}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(Dat(e));var E=s.node();return n===2?MathJax.Hub.Typeset(E):MathJax.typeset([E])},d=function(){var k=s.select(n===2?".MathJax_SVG":".MathJax"),E=!k.empty()&&s.select("svg").node();if(!E)Ag.log("There was an error in the tex syntax.",e),r();else{var T=E.getBoundingClientRect(),L;n===2?L=Rh.select("body").select("#MathJax_SVG_glyphs"):L=k.select("defs"),r(k,L,T)}s.remove()},p=function(){if(i!=="SVG")return MathJax.Hub.setRenderer(i)},x=function(){i!=="svg"&&(MathJax.config.startup.output=i)},b=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(a)},v=function(){MathJax.config=a};n===2?MathJax.Hub.Queue(u,f,h,d,p,b):n===3&&(l(),c(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),x(),v()}))}var fae={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},Bat={sub:"0.3em",sup:"-0.6em"},Oat={sub:"-0.21em",sup:"0.42em"},sae="\u200B",lae=["http:","https:","mailto:","",void 0,":"],cae=b0.NEWLINES=/(\r\n?|\n)/g,Tq=/(<[^<>]*>)/,Sq=/<(\/?)([^ >]*)(\s+(.*))?>/i,qat=//i;b0.BR_TAG_ALL=//gi;var hae=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,dae=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,pae=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Nat=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function _b(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&YL(n)}var Uat=/(^|;)\s*color:/;b0.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,n=t.allowedTags!==void 0?t.allowedTags:["br"],i="...",a=i.length,o=e.split(Tq),s=[],u="",l=0,f=0;fa?s.push(c.substr(0,x-a)+i):s.push(c.substr(0,x));break}u=""}}return s.join("")};var Vat={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Gat=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function YL(e){return e.replace(Gat,function(t,r){var n;return r.charAt(0)==="#"?n=Hat(r.charAt(1)==="x"?parseInt(r.substr(2),16):parseInt(r.substr(1),10)):n=Vat[r],n||t})}b0.convertEntities=YL;function Hat(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function Wat(e,t){t=t.replace(cae," ");var r=!1,n=[],i,a=-1;function o(){a++;var _=document.createElementNS(wq.svg,"tspan");Rh.select(_).attr({class:"line",dy:a*Pat+"em"}),e.appendChild(_),i=_;var C=n;if(n=[{node:_}],C.length>1)for(var S=1;S.",t);return}var C=n.pop();_!==C.type&&Ag.log("Start tag <"+C.type+"> doesnt match end tag <"+_+">. Pretending it did match.",t),i=n[n.length-1].node}var f=qat.test(t);f?o():(i=e,n=[{node:e}]);for(var c=t.split(Tq),h=0;h{"use strict";var jat=Jl(),JL=cd(),ZM=ku(),KL=ei(),mae=jl(),Xat=sb().isValid;function Zat(e,t,r){var n=t?KL.nestedProperty(e,t).get()||{}:e,i=n[r||"color"];i&&i._inputArray&&(i=i._inputArray);var a=!1;if(KL.isArrayOrTypedArray(i)){for(var o=0;o=0;n--,i++){var a=e[n];r[i]=[1-a[0],a[1]]}return r}function wae(e,t){t=t||{};for(var r=e.domain,n=e.range,i=n.length,a=new Array(i),o=0;o{"use strict";var Tae=j9(),Kat=Tae.FORMAT_LINK,Jat=Tae.DATE_FORMAT_LINK;function $at(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?Mq:Sae)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Mq(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+Kat+"."].join(" ")}function Sae(e,t){return Mq(e,t)+[" And for dates see: "+Jat+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}Mae.exports={axisHoverFormat:$at,descriptionOnlyNumbers:Mq,descriptionWithDates:Sae}});var Dd=Te((znr,Gae)=>{"use strict";var Eae=gc(),w3=Ih(),Vae=Id().dash,kq=Su().extendFlat,kae=Pf().templatedArray,Cae=Hc().descriptionWithDates,Qat=nf().ONEDAY,vy=dd(),eot=vy.HOUR_PATTERN,tot=vy.WEEKDAY_PATTERN,Eq={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},rot=kq({},Eq,{values:Eq.values.slice().concat(["sync"])});function Lae(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var Pae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},zae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Iae={valType:"data_array",editType:"ticks"},Rae={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function Dae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function Fae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Bae={valType:"color",dflt:w3.defaultLine,editType:"ticks"},Oae={valType:"color",dflt:w3.lightLine,editType:"ticks"};function qae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Nae=kq({},Vae,{editType:"ticks"}),Uae={valType:"boolean",editType:"ticks"};Gae.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:Eae({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[vy.idRegex.x.toString(),vy.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[vy.idRegex.x.toString(),vy.idRegex.y.toString()],editType:"calc"},rangebreaks:kae("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[tot,eot,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Qat},editType:"calc"}),tickmode:rot,nticks:Lae(),tick0:Pae,dtick:zae,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:Iae,ticktext:{valType:"data_array",editType:"ticks"},ticks:Rae,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:Dae(),tickwidth:Fae(),tickcolor:Bae,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:kq({},Vae,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:Eae({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:Cae("tick label")},tickformatstops:kae("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:Cae("hover text")},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:w3.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:Uae,gridcolor:Oae,gridwidth:qae(),griddash:Nae,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",vy.idRegex.x.toString(),vy.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",vy.idRegex.x.toString(),vy.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Eq,nticks:Lae("minor"),tick0:Pae,dtick:zae,tickvals:Iae,ticks:Rae,ticklen:Dae("minor"),tickwidth:Fae("minor"),tickcolor:Bae,gridcolor:Oae,gridwidth:qae("minor"),griddash:Nae,showgrid:Uae,editType:"ticks"},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 $L=Te((Inr,jae)=>{"use strict";var Nc=Dd(),Hae=gc(),Wae=Su().extendFlat,iot=Sc().overrideAll;jae.exports=iot({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:Nc.linecolor,outlinewidth:Nc.linewidth,bordercolor:Nc.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Nc.minor.tickmode,nticks:Nc.nticks,tick0:Nc.tick0,dtick:Nc.dtick,tickvals:Nc.tickvals,ticktext:Nc.ticktext,ticks:Wae({},Nc.ticks,{dflt:""}),ticklabeloverflow:Wae({},Nc.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:Nc.ticklen,tickwidth:Nc.tickwidth,tickcolor:Nc.tickcolor,ticklabelstep:Nc.ticklabelstep,showticklabels:Nc.showticklabels,labelalias:Nc.labelalias,tickfont:Hae({}),tickangle:Nc.tickangle,tickformat:Nc.tickformat,tickformatstops:Nc.tickformatstops,tickprefix:Nc.tickprefix,showtickprefix:Nc.showtickprefix,ticksuffix:Nc.ticksuffix,showticksuffix:Nc.showticksuffix,separatethousands:Nc.separatethousands,exponentformat:Nc.exponentformat,minexponent:Nc.minexponent,showexponent:Nc.showexponent,title:{text:{valType:"string"},font:Hae({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var nc=Te((Dnr,Zae)=>{"use strict";var not=$L(),aot=n3().counter,oot=Y1(),Xae=sb().scales,Rnr=oot(Xae);function QL(e){return"`"+e+"`"}Zae.exports=function(t,r){t=t||"",r=r||{};var n=r.cLetter||"c",i="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,a="noScale"in r?r.noScale:t==="marker.line",o="showScaleDflt"in r?r.showScaleDflt:n==="z",s=typeof r.colorscaleDflt=="string"?Xae[r.colorscaleDflt]:null,u=r.editTypeOverride||"",l=t?t+".":"",f,c;"colorAttr"in r?(f=r.colorAttr,c=r.colorAttr):(f={z:"z",c:"color"}[n],c="in "+QL(l+f));var h=i?" Has an effect only if "+c+" is set to a numerical array.":"",d=n+"auto",p=n+"min",x=n+"max",b=n+"mid",v=QL(l+d),k=QL(l+p),E=QL(l+x),T=k+" and "+E,L={};L[p]=L[x]=void 0;var _={};_[d]=!1;var C={};return f==="color"&&(C.color={valType:"color",arrayOk:!0,editType:u||"style"},r.anim&&(C.color.anim=!0)),C[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:L},C[p]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:_},C[x]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:_},C[b]={valType:"number",dflt:null,editType:"calc",impliedEdits:L},C.colorscale={valType:"colorscale",editType:"calc",dflt:s,impliedEdits:{autocolorscale:!1}},C.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},C.reversescale={valType:"boolean",dflt:!1,editType:"plot"},a||(C.showscale={valType:"boolean",dflt:o,editType:"calc"},C.colorbar=not),r.noColorAxis||(C.coloraxis={valType:"subplotid",regex:aot("coloraxis"),dflt:null,editType:"calc"}),C}});var Lq=Te((Fnr,Yae)=>{"use strict";var sot=Su().extendFlat,lot=nc(),Cq=sb().scales;Yae.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Cq.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Cq.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Cq.RdBu,editType:"calc"}},coloraxis:sot({_isSubplotObj:!0,editType:"calc"},lot("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Pq=Te((Bnr,Kae)=>{"use strict";var uot=ei();Kae.exports=function(t){return uot.isPlainObject(t.colorbar)}});var Rq=Te(Iq=>{"use strict";var zq=ku(),Jae=ei(),$ae=nf(),fot=$ae.ONEDAY,cot=$ae.ONEWEEK;Iq.dtick=function(e,t){var r=t==="log",n=t==="date",i=t==="category",a=n?fot:1;if(!e)return a;if(zq(e))return e=Number(e),e<=0?a:i?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||r))return a;var o=e.charAt(0),s=e.substr(1);return s=zq(s)?Number(s):0,s<=0||!(n&&o==="M"&&s===Math.round(s)||r&&o==="L"||r&&o==="D"&&(s===1||s===2))?a:e};Iq.tick0=function(e,t,r,n){if(t==="date")return Jae.cleanDate(e,Jae.dateTick0(r,n%cot===0?1:0));if(!(n==="D1"||n==="D2"))return zq(e)?Number(e):0}});var xb=Te((qnr,eoe)=>{"use strict";var Qae=Rq(),hot=ei().isArrayOrTypedArray,dot=mp().isTypedArraySpec,pot=mp().decodeTypedArraySpec;eoe.exports=function(t,r,n,i,a){a||(a={});var o=a.isMinor,s=o?t.minor||{}:t,u=o?r.minor:r,l=o?"minor.":"";function f(k){var E=s[k];return dot(E)&&(E=pot(E)),E!==void 0?E:(u._template||{})[k]}var c=f("tick0"),h=f("dtick"),d=f("tickvals"),p=hot(d)?"array":h?"linear":"auto",x=n(l+"tickmode",p);if(x==="auto"||x==="sync")n(l+"nticks");else if(x==="linear"){var b=u.dtick=Qae.dtick(h,i);u.tick0=Qae.tick0(c,i,r.calendar,b)}else if(i!=="multicategory"){var v=n(l+"tickvals");v===void 0?u.tickmode="auto":o||n("ticktext")}}});var A3=Te((Nnr,roe)=>{"use strict";var Dq=ei(),toe=Dd();roe.exports=function(t,r,n,i){var a=i.isMinor,o=a?t.minor||{}:t,s=a?r.minor:r,u=a?toe.minor:toe,l=a?"minor.":"",f=Dq.coerce2(o,s,u,"ticklen",a?(r.ticklen||5)*.6:void 0),c=Dq.coerce2(o,s,u,"tickwidth",a?r.tickwidth||1:void 0),h=Dq.coerce2(o,s,u,"tickcolor",(a?r.tickcolor:void 0)||s.color),d=n(l+"ticks",!a&&i.outerTicks||f||c||h?"outside":"");d||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}});var Fq=Te((Unr,ioe)=>{"use strict";ioe.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],n=r.filter(function(a){return t[a]!==void 0}),i=function(a){return t[a]===t[n[0]]};if(n.every(i)||n.length===1)return t[n[0]]}});var Jd=Te((Vnr,noe)=>{"use strict";var eP=ei(),vot=Pf();noe.exports=function(t,r,n){var i=n.name,a=n.inclusionAttr||"visible",o=r[i],s=eP.isArrayOrTypedArray(t[i])?t[i]:[],u=r[i]=[],l=vot.arrayTemplater(r,i,a),f,c;for(f=0;f{"use strict";var Bq=ei(),mot=jl().contrast,aoe=Dd(),yot=Fq(),got=Jd();ooe.exports=function(t,r,n,i,a){a||(a={});var o=n("labelalias");Bq.isPlainObject(o)||delete r.labelalias;var s=yot(t),u=n("showticklabels");if(u){a.noTicklabelshift||n("ticklabelshift"),a.noTicklabelstandoff||n("ticklabelstandoff");var l=a.font||{},f=r.color,c=r.ticklabelposition||"",h=c.indexOf("inside")!==-1?mot(a.bgColor):f&&f!==aoe.color.dflt?f:l.color;if(Bq.coerceFont(n,"tickfont",l,{overrideDflt:{color:h}}),!a.noTicklabelstep&&i!=="multicategory"&&i!=="log"&&n("ticklabelstep"),!a.noAng){var d=n("tickangle");!a.noAutotickangles&&d==="auto"&&n("autotickangles")}if(i!=="category"){var p=n("tickformat");got(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:_ot}),r.tickformatstops.length||delete r.tickformatstops,!a.noExp&&!p&&i!=="date"&&(n("showexponent",s),n("exponentformat"),n("minexponent"),n("separatethousands"))}}};function _ot(e,t){function r(i,a){return Bq.coerce(e,t,aoe.tickformatstops,i,a)}var n=r("enabled");n&&(r("dtickrange"),r("value"))}});var r_=Te((Hnr,soe)=>{"use strict";var xot=Fq();soe.exports=function(t,r,n,i,a){a||(a={});var o=a.tickSuffixDflt,s=xot(t),u=n("tickprefix");u&&n("showtickprefix",s);var l=n("ticksuffix",o);l&&n("showticksuffix",s)}});var Oq=Te((Wnr,loe)=>{"use strict";var i_=ei(),bot=Pf(),wot=xb(),Aot=A3(),Tot=t_(),Sot=r_(),Mot=$L();loe.exports=function(t,r,n){var i=bot.newContainer(r,"colorbar"),a=t.colorbar||{};function o(A,B){return i_.coerce(a,i,Mot,A,B)}var s=n.margin||{t:0,b:0,l:0,r:0},u=n.width-s.l-s.r,l=n.height-s.t-s.b,f=o("orientation"),c=f==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(c?u:l):30);var d=o("lenmode");o("len",d==="fraction"?1:c?l:u);var p=o("yref"),x=o("xref"),b=p==="paper",v=x==="paper",k,E,T,L="left";c?(T="middle",L=v?"left":"right",k=v?1.02:1,E=.5):(T=b?"bottom":"top",L="center",k=.5,E=b?1.02:1),i_.coerce(a,i,{x:{valType:"number",min:v?-2:0,max:v?3:1,dflt:k}},"x"),i_.coerce(a,i,{y:{valType:"number",min:b?-2:0,max:b?3:1,dflt:E}},"y"),o("xanchor",L),o("xpad"),o("yanchor",T),o("ypad"),i_.noneOrAll(a,i,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var _=i_.coerce(a,i,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",_.indexOf("inside")!==-1?"hide past domain":"hide past div"),wot(a,i,o,"linear");var C=n.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:C};_.indexOf("inside")!==-1&&(S.bgColor="black"),Sot(a,i,o,"linear",S),Tot(a,i,o,"linear",S),Aot(a,i,o,"linear",S),o("title.text",n._dfltTitle.colorbar);var m=i.showticklabels?i.tickfont:C,P=i_.extendFlat({},C,{family:m.family,size:i_.bigFont(m.size)});i_.coerceFont(o,"title.font",P),o("title.side",c?"top":"right")}});var ed=Te((jnr,coe)=>{"use strict";var uoe=ku(),Nq=ei(),Eot=Pq(),kot=Oq(),foe=sb().isValid,Cot=$l().traceIs;function qq(e,t){var r=t.slice(0,t.length-1);return t?Nq.nestedProperty(e,r).get()||{}:e}coe.exports=function e(t,r,n,i,a){var o=a.prefix,s=a.cLetter,u="_module"in r,l=qq(t,o),f=qq(r,o),c=qq(r._template||{},o)||{},h=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,n,i,a)};if(u){var d=n._colorAxes||{},p=i(o+"coloraxis");if(p){var x=Cot(r,"contour")&&Nq.nestedProperty(r,"contours.coloring").get()||"heatmap",b=d[p];b?(b[2].push(h),b[0]!==x&&(b[0]=!1,Nq.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[x,r,[h]];return}}var v=l[s+"min"],k=l[s+"max"],E=uoe(v)&&uoe(k)&&v{"use strict";var hoe=ei(),Lot=Pf(),doe=Lq(),Pot=ed();poe.exports=function(t,r){function n(c,h){return hoe.coerce(t,r,doe,c,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var i=r._colorAxes,a,o;function s(c,h){return hoe.coerce(a,o,doe.coloraxis,c,h)}for(var u in i){var l=i[u];if(l[0])a=t[u]||{},o=Lot.newContainer(r,u,"coloraxis"),o._name=u,Pot(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var zot=ei(),Iot=Rp().hasColorscale,Rot=Rp().extractOpts;moe.exports=function(t,r){function n(f,c){var h=f["_"+c];h!==void 0&&(f[c]=h)}function i(f,c){var h=c.container?zot.nestedProperty(f,c.container).get():f;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var d=Rot(h),p=d.auto;(p||d.min===void 0)&&n(h,c.min),(p||d.max===void 0)&&n(h,c.max),d.autocolorscale&&n(h,"colorscale")}}for(var a=0;a{"use strict";var goe=ku(),Uq=ei(),Dot=Rp().extractOpts;_oe.exports=function(t,r,n){var i=t._fullLayout,a=n.vals,o=n.containerStr,s=o?Uq.nestedProperty(r,o).get():r,u=Dot(s),l=u.auto!==!1,f=u.min,c=u.max,h=u.mid,d=function(){return Uq.aggNums(Math.min,null,a)},p=function(){return Uq.aggNums(Math.max,null,a)};if(f===void 0?f=d():l&&(s._colorAx&&goe(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():l&&(s._colorAx&&goe(c)?c=Math.max(c,p()):c=p()),l&&h!==void 0&&(c-h>h-f?f=h-(c-h):c-h=0?x=i.colorscale.sequential:x=i.colorscale.sequentialminus,u._sync("colorscale",x)}}});var _c=Te((Knr,xoe)=>{"use strict";var tP=sb(),T3=Rp();xoe.exports={moduleType:"component",name:"colorscale",attributes:nc(),layoutAttributes:Lq(),supplyLayoutDefaults:voe(),handleDefaults:ed(),crossTraceDefaults:yoe(),calc:Dp(),scales:tP.scales,defaultScale:tP.defaultScale,getScale:tP.get,isValidScale:tP.isValid,hasColorscale:T3.hasColorscale,extractOpts:T3.extractOpts,extractScale:T3.extractScale,flipScale:T3.flipScale,makeColorScaleFunc:T3.makeColorScaleFunc,makeColorScaleFuncFromTrace:T3.makeColorScaleFuncFromTrace}});var lc=Te((Jnr,woe)=>{"use strict";var boe=ei(),Fot=mp().isTypedArraySpec;woe.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return boe.isPlainObject(t)&&(boe.isArrayOrTypedArray(t.size)||Fot(t.size))}}});var S3=Te(($nr,Aoe)=>{"use strict";var Bot=ku();Aoe.exports=function(t,r){r||(r=2);var n=t.marker,i=n.sizeref||1,a=n.sizemin||0,o=n.sizemode==="area"?function(s){return Math.sqrt(s/i)}:function(s){return s/i};return function(s){var u=o(s/r);return Bot(u)&&u>0?Math.max(u,a):0}}});var rv=Te(yp=>{"use strict";var Toe=ei();yp.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};yp.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],n=e.yaxes||[],i=0;i=0&&r.index{Eoe.exports=Vot;var Vq={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Uot=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Vot(e){var t=[];return e.replace(Uot,function(r,n,i){var a=n.toLowerCase();for(i=Hot(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==Vq[a])return i.unshift(n),t.push(i);if(i.length{"use strict";var Wot=YM(),wl=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},af="M0,0Z",koe=Math.sqrt(2),n_=Math.sqrt(3),Gq=Math.PI,Hq=Math.cos,Wq=Math.sin;Ioe.exports={circle:{n:0,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return r?sf(t,r,i):i}},square:{n:1,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.3,2);return sf(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,t,r){if(of(t))return af;var n=wl(e*.4,2),i=wl(e*1.2,2);return sf(t,r,"M"+i+","+n+"H"+n+"V"+i+"H-"+n+"V"+n+"H-"+i+"V-"+n+"H-"+n+"V-"+i+"H"+n+"V-"+n+"H"+i+"Z")}},x:{n:4,f:function(e,t,r){if(of(t))return af;var n=wl(e*.8/koe,2),i="l"+n+","+n,a="l"+n+",-"+n,o="l-"+n+",-"+n,s="l-"+n+","+n;return sf(t,r,"M0,"+n+i+a+o+a+o+s+o+s+i+s+i+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(of(t))return af;var n=wl(e*2/n_,2),i=wl(e/2,2),a=wl(e,2);return sf(t,r,"M-"+n+","+i+"H"+n+"L0,-"+a+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(of(t))return af;var n=wl(e*2/n_,2),i=wl(e/2,2),a=wl(e,2);return sf(t,r,"M-"+n+",-"+i+"H"+n+"L0,"+a+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(of(t))return af;var n=wl(e*2/n_,2),i=wl(e/2,2),a=wl(e,2);return sf(t,r,"M"+i+",-"+n+"V"+n+"L-"+a+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(of(t))return af;var n=wl(e*2/n_,2),i=wl(e/2,2),a=wl(e,2);return sf(t,r,"M-"+i+",-"+n+"V"+n+"L"+a+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(of(t))return af;var n=wl(e*.6,2),i=wl(e*1.2,2);return sf(t,r,"M-"+i+",-"+n+"H"+n+"V"+i+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(of(t))return af;var n=wl(e*.6,2),i=wl(e*1.2,2);return sf(t,r,"M"+n+",-"+i+"V"+n+"H-"+i+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(of(t))return af;var n=wl(e*.6,2),i=wl(e*1.2,2);return sf(t,r,"M"+i+","+n+"H-"+n+"V-"+i+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(of(t))return af;var n=wl(e*.6,2),i=wl(e*1.2,2);return sf(t,r,"M-"+n+","+i+"V-"+n+"H"+i+"Z")}},pentagon:{n:13,f:function(e,t,r){if(of(t))return af;var n=wl(e*.951,2),i=wl(e*.588,2),a=wl(-e,2),o=wl(e*-.309,2),s=wl(e*.809,2);return sf(t,r,"M"+n+","+o+"L"+i+","+s+"H-"+i+"L-"+n+","+o+"L0,"+a+"Z")}},hexagon:{n:14,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e/2,2),a=wl(e*n_/2,2);return sf(t,r,"M"+a+",-"+i+"V"+i+"L0,"+n+"L-"+a+","+i+"V-"+i+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e/2,2),a=wl(e*n_/2,2);return sf(t,r,"M-"+i+","+a+"H"+i+"L"+n+",0L"+i+",-"+a+"H-"+i+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,t,r){if(of(t))return af;var n=wl(e*.924,2),i=wl(e*.383,2);return sf(t,r,"M-"+i+",-"+n+"H"+i+"L"+n+",-"+i+"V"+i+"L"+i+","+n+"H-"+i+"L-"+n+","+i+"V-"+i+"Z")}},star:{n:17,f:function(e,t,r){if(of(t))return af;var n=e*1.4,i=wl(n*.225,2),a=wl(n*.951,2),o=wl(n*.363,2),s=wl(n*.588,2),u=wl(-n,2),l=wl(n*-.309,2),f=wl(n*.118,2),c=wl(n*.809,2),h=wl(n*.382,2);return sf(t,r,"M"+i+","+l+"H"+a+"L"+o+","+f+"L"+s+","+c+"L0,"+h+"L-"+s+","+c+"L-"+o+","+f+"L-"+a+","+l+"H-"+i+"L0,"+u+"Z")}},hexagram:{n:18,f:function(e,t,r){if(of(t))return af;var n=wl(e*.66,2),i=wl(e*.38,2),a=wl(e*.76,2);return sf(t,r,"M-"+a+",0l-"+i+",-"+n+"h"+a+"l"+i+",-"+n+"l"+i+","+n+"h"+a+"l-"+i+","+n+"l"+i+","+n+"h-"+a+"l-"+i+","+n+"l-"+i+",-"+n+"h-"+a+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(of(t))return af;var n=wl(e*n_*.8,2),i=wl(e*.8,2),a=wl(e*1.6,2),o=wl(e*4,2),s="A "+o+","+o+" 0 0 1 ";return sf(t,r,"M-"+n+","+i+s+n+","+i+s+"0,-"+a+s+"-"+n+","+i+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(of(t))return af;var n=wl(e*n_*.8,2),i=wl(e*.8,2),a=wl(e*1.6,2),o=wl(e*4,2),s="A "+o+","+o+" 0 0 1 ";return sf(t,r,"M"+n+",-"+i+s+"-"+n+",-"+i+s+"0,"+a+s+n+",-"+i+"Z")}},"star-square":{n:21,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.1,2),i=wl(e*2,2),a="A "+i+","+i+" 0 0 1 ";return sf(t,r,"M-"+n+",-"+n+a+"-"+n+","+n+a+n+","+n+a+n+",-"+n+a+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.4,2),i=wl(e*1.9,2),a="A "+i+","+i+" 0 0 1 ";return sf(t,r,"M-"+n+",0"+a+"0,"+n+a+n+",0"+a+"0,-"+n+a+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(of(t))return af;var n=wl(e*.7,2),i=wl(e*1.4,2);return sf(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.4,2),i=wl(e*.7,2);return sf(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e/koe,2);return sf(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.3,2);return sf(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.3,2),i=wl(e*.65,2);return sf(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+i+",-"+i+"L"+i+","+i+"M-"+i+","+i+"L"+i+",-"+i)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.4,2);return sf(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.2,2),i=wl(e*.85,2);return sf(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(of(t))return af;var n=wl(e/2,2),i=wl(e,2);return sf(t,r,"M"+n+","+i+"V-"+i+"M"+(n-i)+",-"+i+"V"+i+"M"+i+","+n+"H-"+i+"M-"+i+","+(n-i)+"H"+i)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.2,2),i=wl(e*1.6,2),a=wl(e*.8,2);return sf(t,r,"M-"+n+","+a+"L0,0M"+n+","+a+"L0,0M0,-"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.2,2),i=wl(e*1.6,2),a=wl(e*.8,2);return sf(t,r,"M-"+n+",-"+a+"L0,0M"+n+",-"+a+"L0,0M0,"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.2,2),i=wl(e*1.6,2),a=wl(e*.8,2);return sf(t,r,"M"+a+","+n+"L0,0M"+a+",-"+n+"L0,0M-"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.2,2),i=wl(e*1.6,2),a=wl(e*.8,2);return sf(t,r,"M-"+a+","+n+"L0,0M-"+a+",-"+n+"L0,0M"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.4,2);return sf(t,r,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.4,2);return sf(t,r,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e*2,2);return sf(t,r,"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e*2,2);return sf(t,r,"M0,0L-"+n+",-"+i+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(of(t))return af;var n=wl(e*2,2),i=wl(e,2);return sf(t,r,"M0,0L"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(of(t))return af;var n=wl(e*2,2),i=wl(e,2);return sf(t,r,"M0,0L-"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e*2,2);return sf(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e*2,2);return sf(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+i+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(of(t))return af;var n=wl(e*2,2),i=wl(e,2);return sf(t,r,"M0,-"+i+"V"+i+"M0,0L"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(of(t))return af;var n=wl(e*2,2),i=wl(e,2);return sf(t,r,"M0,-"+i+"V"+i+"M0,0L-"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(of(t))return af;var n=Gq/2.5,i=2*e*Hq(n),a=2*e*Wq(n);return sf(t,r,"M0,0L"+-i+","+a+"L"+i+","+a+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(of(t))return af;var n=Gq/4,i=2*e*Hq(n),a=2*e*Wq(n);return sf(t,r,"M0,0L"+-i+","+a+"A "+2*e+","+2*e+" 0 0 1 "+i+","+a+"Z")},backoff:.4,noDot:!0}};function of(e){return e===null}var Coe,Loe,Poe,zoe;function sf(e,t,r){if((!e||e%360===0)&&!t)return r;if(Poe===e&&zoe===t&&Coe===r)return Loe;Poe=e,zoe=t,Coe=r;function n(b,v){var k=Hq(b),E=Wq(b),T=v[0],L=v[1]+(t||0);return[T*k-L*E,T*E+L*k]}for(var i=e/180*Gq,a=0,o=0,s=Wot(r),u="",l=0;l{"use strict";var pd=Jl(),uc=ei(),jot=uc.numberFormat,Tb=ku(),Jq=cd(),iP=$l(),$d=jl(),Xot=_c(),JM=uc.strTranslate,nP=Zf(),Zot=jv(),Yot=Qh(),Kot=Yot.LINE_SPACING,Hoe=U1().DESELECTDIM,Jot=lc(),$ot=S3(),Qot=rv().appendArrayPointValue,Hl=ese.exports={};Hl.font=function(e,t){var r=t.variant,n=t.style,i=t.weight,a=t.color,o=t.size,s=t.family,u=t.shadow,l=t.lineposition,f=t.textcase;s&&e.style("font-family",s),o+1&&e.style("font-size",o+"px"),a&&e.call($d.fill,a),i&&e.style("font-weight",i),n&&e.style("font-style",n),r&&e.style("font-variant",r),f&&e.style("text-transform",jq(tst(f))),u&&e.style("text-shadow",u==="auto"?nP.makeTextShadow($d.contrast(a)):jq(u)),l&&e.style("text-decoration-line",jq(rst(l)))};function jq(e){return e==="none"?void 0:e}var est={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function tst(e){return est[e]}function rst(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Hl.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};Hl.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};Hl.setRect=function(e,t,r,n,i){e.call(Hl.setPosition,t,r).call(Hl.setSize,n,i)};Hl.translatePoint=function(e,t,r,n){var i=r.c2p(e.x),a=n.c2p(e.y);if(Tb(i)&&Tb(a)&&t.node())t.node().nodeName==="text"?t.attr("x",i).attr("y",a):t.attr("transform",JM(i,a));else return!1;return!0};Hl.translatePoints=function(e,t,r){e.each(function(n){var i=pd.select(this);Hl.translatePoint(n,i,t,r)})};Hl.hideOutsideRangePoint=function(e,t,r,n,i,a){t.attr("display",r.isPtWithinRange(e,i)&&n.isPtWithinRange(e,a)?null:"none")};Hl.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,n=t.yaxis;e.each(function(i){var a=i[0].trace,o=a.xcalendar,s=a.ycalendar,u=iP.traceIs(a,"bar-like")?".bartext":".point,.textpoint";e.selectAll(u).each(function(l){Hl.hideOutsideRangePoint(l,pd.select(this),r,n,o,s)})})}};Hl.crispRound=function(e,t,r){return!t||!Tb(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};Hl.singleLineStyle=function(e,t,r,n,i){t.style("fill","none");var a=(((e||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=i||a.dash||"";$d.stroke(t,n||a.color),Hl.dashLine(t,s,o)};Hl.lineGroupStyle=function(e,t,r,n){e.style("fill","none").each(function(i){var a=(((i||[])[0]||{}).trace||{}).line||{},o=t||a.width||0,s=n||a.dash||"";pd.select(this).call($d.stroke,r||a.color).call(Hl.dashLine,s,o)})};Hl.dashLine=function(e,t,r){r=+r||0,t=Hl.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};Hl.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function Woe(e,t,r,n){var i=t.fillpattern,a=t.fillgradient,o=Hl.getPatternAttr,s=i&&(o(i.shape,0,"")||o(i.path,0,""));if(s){var u=o(i.bgcolor,0,null),l=o(i.fgcolor,0,null),f=i.fgopacity,c=o(i.size,0,8),h=o(i.solidity,0,.3),d=t.uid;Hl.pattern(e,"point",r,d,s,c,h,void 0,i.fillmode,u,l,f)}else if(a&&a.type!=="none"){var p=a.type,x="scatterfill-"+t.uid;if(n&&(x="legendfill-"+t.uid),!n&&(a.start!==void 0||a.stop!==void 0)){var b,v;p==="horizontal"?(b={x:a.start,y:0},v={x:a.stop,y:0}):p==="vertical"&&(b={x:0,y:a.start},v={x:0,y:a.stop}),b.x=t._xA.c2p(b.x===void 0?t._extremes.x.min[0].val:b.x,!0),b.y=t._yA.c2p(b.y===void 0?t._extremes.y.min[0].val:b.y,!0),v.x=t._xA.c2p(v.x===void 0?t._extremes.x.max[0].val:v.x,!0),v.y=t._yA.c2p(v.y===void 0?t._extremes.y.max[0].val:v.y,!0),e.call(Zoe,r,x,"linear",a.colorscale,"fill",b,v,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(Hl.gradient,r,x,p,a.colorscale,"fill")}else t.fillcolor&&e.call($d.fill,t.fillcolor)}Hl.singleFillStyle=function(e,t){var r=pd.select(e.node()),n=r.data(),i=((n[0]||[])[0]||{}).trace||{};Woe(e,i,t,!1)};Hl.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(n){var i=pd.select(this);n[0].trace&&Woe(i,n[0].trace,t,r)})};var Doe=Roe();Hl.symbolNames=[];Hl.symbolFuncs=[];Hl.symbolBackOffs=[];Hl.symbolNeedLines={};Hl.symbolNoDot={};Hl.symbolNoFill={};Hl.symbolList=[];Object.keys(Doe).forEach(function(e){var t=Doe[e],r=t.n;Hl.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),Hl.symbolNames[r]=e,Hl.symbolFuncs[r]=t.f,Hl.symbolBackOffs[r]=t.backoff||0,t.needLine&&(Hl.symbolNeedLines[r]=!0),t.noDot?Hl.symbolNoDot[r]=!0:Hl.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(Hl.symbolNoFill[r]=!0)});var ist=Hl.symbolNames.length,nst="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Hl.symbolNumber=function(e){if(Tb(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=Hl.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=ist||e>=400?0:Math.floor(Math.max(e,0))};function joe(e,t,r,n){var i=e%100;return Hl.symbolFuncs[i](t,r,n)+(e>=200?nst:"")}var Foe=jot("~f"),Xoe={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};Hl.gradient=function(e,t,r,n,i,a){var o=Xoe[n];return Zoe(e,t,r,o.type,i,a,o.start,o.stop,!1,o.reversed)};function Zoe(e,t,r,n,i,a,o,s,u,l){var f=i.length,c;n==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:s.x,y2:s.y,gradientUnits:u?"userSpaceOnUse":"objectBoundingBox"},reversed:l}:n==="radial"&&(c={node:"radialGradient",reversed:l});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=a.i),t.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),n.ms2mrc){var u;e.ms==="various"||o.size==="various"?u=3:u=n.ms2mrc(e.ms),e.mrc=u,n.selectedSizeFn&&(u=e.mrc=n.selectedSizeFn(e));var l=Hl.symbolNumber(e.mx||o.symbol)||0;e.om=l%200>=100;var f=eN(e,r),c=Qq(e,r);t.attr("d",joe(l,u,f,c))}var h=!1,d,p,x;if(e.so)x=s.outlierwidth,p=s.outliercolor,d=o.outliercolor;else{var b=(s||{}).width;x=(e.mlw+1||b+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=n.lineScale(e.mlc):uc.isArrayOrTypedArray(s.color)?p=$d.defaultLine:p=s.color,uc.isArrayOrTypedArray(o.color)&&(d=$d.defaultLine,h=!0),"mc"in e?d=e.mcc=n.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(d=n.selectedColorFn(e))}if(e.om)t.call($d.stroke,d).style({"stroke-width":(x||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:x)+"px");var v=o.gradient,k=e.mgt;k?h=!0:k=v&&v.type,uc.isArrayOrTypedArray(k)&&(k=k[0],Xoe[k]||(k=0));var E=o.pattern,T=Hl.getPatternAttr,L=E&&(T(E.shape,e.i,"")||T(E.path,e.i,""));if(k&&k!=="none"){var _=e.mgc;_?h=!0:_=v.color;var C=r.uid;h&&(C+="-"+e.i),Hl.gradient(t,i,C,k,[[0,_],[1,d]],"fill")}else if(L){var S=!1,m=E.fgcolor;!m&&a&&a.color&&(m=a.color,S=!0);var P=T(m,e.i,a&&a.color||null),A=T(E.bgcolor,e.i,null),B=E.fgopacity,F=T(E.size,e.i,8),U=T(E.solidity,e.i,.3);S=S||e.mcc||uc.isArrayOrTypedArray(E.shape)||uc.isArrayOrTypedArray(E.path)||uc.isArrayOrTypedArray(E.bgcolor)||uc.isArrayOrTypedArray(E.fgcolor)||uc.isArrayOrTypedArray(E.size)||uc.isArrayOrTypedArray(E.solidity);var G=r.uid;S&&(G+="-"+e.i),Hl.pattern(t,"point",i,G,L,F,U,e.mcc,E.fillmode,A,P,B)}else uc.isArrayOrTypedArray(d)?$d.fill(t,d[e.i]):$d.fill(t,d);x&&$d.stroke(t,p)}};Hl.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=Hl.tryColorscale(r,""),t.lineScale=Hl.tryColorscale(r,"line"),iP.traceIs(e,"symbols")&&(t.ms2mrc=Jot.isBubble(e)?$ot(e):function(){return(r.size||6)/2}),e.selectedpoints&&uc.extendFlat(t,Hl.makeSelectedPointStyleFns(e)),t};Hl.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.marker||{},a=r.marker||{},o=n.marker||{},s=i.opacity,u=a.opacity,l=o.opacity,f=u!==void 0,c=l!==void 0;(uc.isArrayOrTypedArray(s)||f||c)&&(t.selectedOpacityFn=function(T){var L=T.mo===void 0?i.opacity:T.mo;return T.selected?f?u:L:c?l:Hoe*L});var h=i.color,d=a.color,p=o.color;(d||p)&&(t.selectedColorFn=function(T){var L=T.mcc||h;return T.selected?d||L:p||L});var x=i.size,b=a.size,v=o.size,k=b!==void 0,E=v!==void 0;return iP.traceIs(e,"symbols")&&(k||E)&&(t.selectedSizeFn=function(T){var L=T.mrc||x/2;return T.selected?k?b/2:L:E?v/2:L}),t};Hl.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.textfont||{},a=r.textfont||{},o=n.textfont||{},s=i.color,u=a.color,l=o.color;return t.selectedTextColorFn=function(f){var c=f.tc||s;return f.selected?u||c:l||(u?c:$d.addOpacity(c,Hoe))},t};Hl.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Hl.makeSelectedPointStyleFns(t),n=t.marker||{},i=[];r.selectedOpacityFn&&i.push(function(a,o){a.style("opacity",r.selectedOpacityFn(o))}),r.selectedColorFn&&i.push(function(a,o){$d.fill(a,r.selectedColorFn(o))}),r.selectedSizeFn&&i.push(function(a,o){var s=o.mx||n.symbol||0,u=r.selectedSizeFn(o);a.attr("d",joe(Hl.symbolNumber(s),u,eN(o,t),Qq(o,t))),o.mrc2=u}),i.length&&e.each(function(a){for(var o=pd.select(this),s=0;s0?r:0}Hl.textPointStyle=function(e,t,r){if(e.size()){var n;if(t.selectedpoints){var i=Hl.makeSelectedTextStyleFns(t);n=i.selectedTextColorFn}var a=t.texttemplate,o=r._fullLayout;e.each(function(s){var u=pd.select(this),l=a?uc.extractOption(s,t,"txt","texttemplate"):uc.extractOption(s,t,"tx","text");if(!l&&l!==0){u.remove();return}if(a){var f=t._module.formatLabels,c=f?f(s,t,o):{},h={};Qot(h,t,s.i);var d=t._meta||{};l=uc.texttemplateString(l,c,o._d3locale,h,s,d)}var p=s.tp||t.textposition,x=Koe(s,t),b=n?n(s):s.tc||t.textfont.color;u.call(Hl.font,{family:s.tf||t.textfont.family,weight:s.tw||t.textfont.weight,style:s.ty||t.textfont.style,variant:s.tv||t.textfont.variant,textcase:s.tC||t.textfont.textcase,lineposition:s.tE||t.textfont.lineposition,shadow:s.tS||t.textfont.shadow,size:x,color:b}).text(l).call(nP.convertToTspans,r).call(Yoe,p,x,s.mrc)})}};Hl.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Hl.makeSelectedTextStyleFns(t);e.each(function(n){var i=pd.select(this),a=r.selectedTextColorFn(n),o=n.tp||t.textposition,s=Koe(n,t);$d.fill(i,a);var u=iP.traceIs(t,"bar-like");Yoe(i,o,s,n.mrc2||n.mrc,u)})}};var Boe=.5;Hl.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],n=[],i;for(i=1;i=u||T>=f&&T<=u)&&(L<=c&&L>=l||L>=c&&L<=l)&&(e=[T,L])}return e}Hl.applyBackoff=Qoe;Hl.makeTester=function(){var e=uc.ensureSingleById(pd.select("body"),"svg","js-plotly-tester",function(r){r.attr(Zot.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=uc.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Hl.tester=e,Hl.testref=t};Hl.savedBBoxes={};var Zq=0,sst=1e4;Hl.bBox=function(e,t,r){r||(r=Ooe(e));var n;if(r){if(n=Hl.savedBBoxes[r],n)return uc.extendFlat({},n)}else if(e.childNodes.length===1){var i=e.childNodes[0];if(r=Ooe(i),r){var a=+i.getAttribute("x")||0,o=+i.getAttribute("y")||0,s=i.getAttribute("transform");if(!s){var u=Hl.bBox(i,!1,r);return a&&(u.left+=a,u.right+=a),o&&(u.top+=o,u.bottom+=o),u}if(r+="~"+a+"~"+o+"~"+s,n=Hl.savedBBoxes[r],n)return uc.extendFlat({},n)}}var l,f;t?l=e:(f=Hl.tester.node(),l=e.cloneNode(!0),f.appendChild(l)),pd.select(l).attr("transform",null).call(nP.positionText,0,0);var c=l.getBoundingClientRect(),h=Hl.testref.node().getBoundingClientRect();t||f.removeChild(l);var d={height:c.height,width:c.width,left:c.left-h.left,top:c.top-h.top,right:c.right-h.left,bottom:c.bottom-h.top};return Zq>=sst&&(Hl.savedBBoxes={},Zq=0),r&&(Hl.savedBBoxes[r]=d),Zq++,uc.extendFlat({},d)};function Ooe(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Hl.setClipUrl=function(e,t,r){e.attr("clip-path",$q(t,r))};function $q(e,t){if(!e)return null;var r=t._context,n=r._exportedPlot?"":r._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}Hl.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||0,y:+i[1]||0}};Hl.setTranslate=function(e,t,r){var n=/(\btranslate\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||0,r=r||0,o=o.replace(n,"").trim(),o+=JM(t,r),o=o.trim(),e[a]("transform",o),o};Hl.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||1,y:+i[1]||1}};Hl.setScale=function(e,t,r){var n=/(\bscale\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||1,r=r||1,o=o.replace(n,"").trim(),o+="scale("+t+","+r+")",o=o.trim(),e[a]("transform",o),o};var lst=/\s*sc.*/;Hl.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var n=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var i=(this.getAttribute("transform")||"").replace(lst,"");i+=n,i=i.trim(),this.setAttribute("transform",i)})}};var ust=/translate\([^)]*\)\s*$/;Hl.setTextPointsScale=function(e,t,r){e&&e.each(function(){var n,i=pd.select(this),a=i.select("text");if(a.node()){var o=parseFloat(a.attr("x")||0),s=parseFloat(a.attr("y")||0),u=(i.attr("transform")||"").match(ust);t===1&&r===1?n=[]:n=[JM(o,s),"scale("+t+","+r+")",JM(-o,-s)],u&&n.push(u),i.attr("transform",n.join(""))}})};function Qq(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}Hl.getMarkerStandoff=Qq;var KM=Math.atan2,bb=Math.cos,E3=Math.sin;function qoe(e,t){var r=t[0],n=t[1];return[r*bb(e)-n*E3(e),r*E3(e)+n*bb(e)]}var Noe,Uoe,Voe,Goe,Yq,Kq;function eN(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!r||uc.isArrayOrTypedArray(r))&&(r=0));var n,i,a=t.marker.angleref;if(a==="previous"||a==="north"){if(t._geo){var o=t._geo.project(e.lonlat);n=o[0],i=o[1]}else{var s=t._xA,u=t._yA;if(s&&u)n=s.c2p(e.x),i=u.c2p(e.y);else return 90}if(t._geo){var l=e.lonlat[0],f=e.lonlat[1],c=t._geo.project([l,f+1e-5]),h=t._geo.project([l+1e-5,f]),d=KM(h[1]-i,h[0]-n),p=KM(c[1]-i,c[0]-n),x;if(a==="north")x=r/180*Math.PI;else if(a==="previous"){var b=l/180*Math.PI,v=f/180*Math.PI,k=Noe/180*Math.PI,E=Uoe/180*Math.PI,T=k-b,L=bb(E)*E3(T),_=E3(E)*bb(v)-bb(E)*E3(v)*bb(T);x=-KM(L,_)-Math.PI,Noe=l,Uoe=f}var C=qoe(d,[bb(x),0]),S=qoe(p,[E3(x),0]);r=KM(C[1]+S[1],C[0]+S[0])/Math.PI*180,a==="previous"&&!(Kq===t.uid&&e.i===Yq+1)&&(r=null)}if(a==="previous"&&!t._geo)if(Kq===t.uid&&e.i===Yq+1&&Tb(n)&&Tb(i)){var m=n-Voe,P=i-Goe,A=t.line&&t.line.shape||"",B=A.slice(A.length-1);B==="h"&&(P=0),B==="v"&&(m=0),r+=KM(P,m)/Math.PI*180+90}else r=null}return Voe=n,Goe=i,Yq=e.i,Kq=t.uid,r}Hl.getMarkerAngle=eN});var Mb=Te((iar,nse)=>{"use strict";var k3=Jl(),fst=ku(),cst=Cc(),tN=$l(),Sb=ei(),tse=Sb.strTranslate,aP=Mu(),oP=jl(),C3=Zf(),rse=U1(),hst=Qh().OPPOSITE_SIDE,ise=/ [XY][0-9]* /,rN=1.6,iN=1.6;function dst(e,t,r){var n=e._fullLayout,i=r.propContainer,a=r.propName,o=r.placeholder,s=r.traceIndex,u=r.avoid||{},l=r.attributes,f=r.transform,c=r.containerGroup,h=1,d=i.title,p=(d&&d.text?d.text:"").trim(),x=!1,b=d&&d.font?d.font:{},v=b.family,k=b.size,E=b.color,T=b.weight,L=b.style,_=b.variant,C=b.textcase,S=b.lineposition,m=b.shadow,P=r.subtitlePropName,A=!!P,B=r.subtitlePlaceholder,F=(i.title||{}).subtitle||{text:"",font:{}},U=F.text.trim(),G=!1,j=1,H=F.font,N=H.family,W=H.size,re=H.color,ae=H.weight,be=H.style,Pe=H.variant,Ce=H.textcase,de=H.lineposition,te=H.shadow,ke;a==="title.text"?ke="titleText":a.indexOf("axis")!==-1?ke="axisTitleText":a.indexOf(!0)&&(ke="colorbarTitleText");var Ee=e._context.edits[ke];function Me(At,St){return At===void 0||St===void 0?!1:At.replace(ise," % ")===St.replace(ise," % ")}p===""?h=0:Me(p,o)&&(Ee||(p=""),h=.2,x=!0),A&&(U===""?j=0:Me(U,B)&&(Ee||(U=""),j=.2,G=!0)),r._meta?p=Sb.templateString(p,r._meta):n._meta&&(p=Sb.templateString(p,n._meta));var Ue=p||U||Ee,Fe;c||(c=Sb.ensureSingle(n._infolayer,"g","g-"+t),Fe=n._hColorbarMoveTitle);var me=c.selectAll("text."+t).data(Ue?[0]:[]);me.enter().append("text"),me.text(p).attr("class",t),me.exit().remove();var Ne=null,ce=t+"-subtitle",Ke=U||Ee;if(A&&Ke&&(Ne=c.selectAll("text."+ce).data(Ke?[0]:[]),Ne.enter().append("text"),Ne.text(U).attr("class",ce),Ne.exit().remove()),!Ue)return c;function it(At,St){Sb.syncOrAsync([bt,Nt],{title:At,subtitle:St})}function bt(At){var St=At.title,Bt=At.subtitle,Zt;!f&&Fe&&(f={}),f?(Zt="",f.rotate&&(Zt+="rotate("+[f.rotate,l.x,l.y]+")"),(f.offset||Fe)&&(Zt+=tse(0,(f.offset||0)-(Fe||0)))):Zt=null,St.attr("transform",Zt);function Et(Xe){if(Xe){var rt=k3.select(Xe.node().parentNode).select("."+ce);if(!rt.empty()){var Qe=Xe.node().getBBox();if(Qe.height){var zt=Qe.y+Qe.height+rN*W;rt.attr("y",zt)}}}}if(St.style("opacity",h*oP.opacity(E)).call(aP.font,{color:oP.rgb(E),size:k3.round(k,2),family:v,weight:T,style:L,variant:_,textcase:C,shadow:m,lineposition:S}).attr(l).call(C3.convertToTspans,e,Et),Bt){var Ae=c.select("."+t+"-math-group"),ot=St.node().getBBox(),dt=Ae.node()?Ae.node().getBBox():void 0,pt=dt?dt.y+dt.height+rN*W:ot.y+ot.height+iN*W,at=Sb.extendFlat({},l,{y:pt});Bt.attr("transform",Zt),Bt.style("opacity",j*oP.opacity(re)).call(aP.font,{color:oP.rgb(re),size:k3.round(W,2),family:N,weight:ae,style:be,variant:Pe,textcase:Ce,shadow:te,lineposition:de}).attr(at).call(C3.convertToTspans,e)}return cst.previousPromises(e)}function Nt(At){var St=At.title,Bt=k3.select(St.node().parentNode);if(u&&u.selection&&u.side&&p){Bt.attr("transform",null);var Zt=hst[u.side],Et=u.side==="left"||u.side==="top"?-1:1,Ae=fst(u.pad)?u.pad:2,ot=aP.bBox(Bt.node()),dt={t:0,b:0,l:0,r:0},pt=e._fullLayout._reservedMargin;for(var at in pt)for(var Xe in pt[at]){var rt=pt[at][Xe];dt[Xe]=Math.max(dt[Xe],rt)}var Qe={left:dt.l,top:dt.t,right:n.width-dt.r,bottom:n.height-dt.b},zt=u.maxShift||Et*(Qe[u.side]-ot[u.side]),Yt=0;if(zt<0)Yt=zt;else{var lr=u.offsetLeft||0,mr=u.offsetTop||0;ot.left-=lr,ot.right-=lr,ot.top-=mr,ot.bottom-=mr,u.selection.each(function(){var Ht=aP.bBox(this);Sb.bBoxIntersect(ot,Ht,Ae)&&(Yt=Math.max(Yt,Et*(Ht[u.side]-ot[Zt])+Ae))}),Yt=Math.min(zt,Yt),i._titleScoot=Math.abs(Yt)}if(Yt>0||zt<0){var _r={left:[-Yt,0],right:[Yt,0],top:[0,-Yt],bottom:[0,Yt]}[u.side];Bt.attr("transform",tse(_r[0],_r[1]))}}}me.call(it,Ne);function nt(At,St){At.text(St).on("mouseover.opacity",function(){k3.select(this).transition().duration(rse.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){k3.select(this).transition().duration(rse.HIDE_PLACEHOLDER).style("opacity",0)})}if(Ee&&(p?me.on(".opacity",null):(nt(me,o),x=!0),me.call(C3.makeEditable,{gd:e}).on("edit",function(At){s!==void 0?tN.call("_guiRestyle",e,a,At,s):tN.call("_guiRelayout",e,a,At)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(it)}).on("input",function(At){this.text(At||" ").call(C3.positionText,l.x,l.y)}),A)){if(A&&!p){var Ye=me.node().getBBox(),kt=Ye.y+Ye.height+iN*W;Ne.attr("y",kt)}U?Ne.on(".opacity",null):(nt(Ne,B),G=!0),Ne.call(C3.makeEditable,{gd:e}).on("edit",function(At){tN.call("_guiRelayout",e,"title.subtitle.text",At)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(it)}).on("input",function(At){this.text(At||" ").call(C3.positionText,Ne.attr("x"),Ne.attr("y"))})}return me.classed("js-placeholder",x),Ne&&Ne.classed("js-placeholder",G),c}nse.exports={draw:dst,SUBTITLE_PADDING_EM:iN,SUBTITLE_PADDING_MATHJAX_EM:rN}});var gy=Te((nar,use)=>{"use strict";var pst=Jl(),vst=e3().utcFormat,Mc=ei(),mst=Mc.numberFormat,my=ku(),a_=Mc.cleanNumber,yst=Mc.ms2DateTime,ase=Mc.dateTime2ms,yy=Mc.ensureNumber,ose=Mc.isArrayOrTypedArray,o_=nf(),sP=o_.FP_SAFE,bm=o_.BADNUM,gst=o_.LOG_CLIP,_st=o_.ONEWEEK,lP=o_.ONEDAY,uP=o_.ONEHOUR,sse=o_.ONEMIN,lse=o_.ONESEC,fP=$c(),dP=dd(),cP=dP.HOUR_PATTERN,hP=dP.WEEKDAY_PATTERN;function $M(e){return Math.pow(10,e)}function nN(e){return e!=null}use.exports=function(t,r){r=r||{};var n=t._id||"x",i=n.charAt(0);function a(T,L){if(T>0)return Math.log(T)/Math.LN10;if(T<=0&&L&&t.range&&t.range.length===2){var _=t.range[0],C=t.range[1];return .5*(_+C-2*gst*Math.abs(_-C))}else return bm}function o(T,L,_,C){if((C||{}).msUTC&&my(T))return+T;var S=ase(T,_||t.calendar);if(S===bm)if(my(T)){T=+T;var m=Math.floor(Mc.mod(T+.05,1)*10),P=Math.round(T-m/10);S=ase(new Date(P))+m/10}else return bm;return S}function s(T,L,_){return yst(T,L,_||t.calendar)}function u(T){return t._categories[Math.round(T)]}function l(T){if(nN(T)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[T]!==void 0)return t._categoriesMap[T];t._categories.push(typeof T=="number"?String(T):T);var L=t._categories.length-1;return t._categoriesMap[T]=L,L}return bm}function f(T,L){for(var _=new Array(L),C=0;Ct.range[1]&&(_=!_);for(var C=_?-1:1,S=C*T,m=0,P=0;PB)m=P+1;else{m=S<(A+B)/2?P:P+1;break}}var F=t._B[m]||0;return isFinite(F)?p(T,t._m2,F):0},v=function(T){var L=t._rangebreaks.length;if(!L)return x(T,t._m,t._b);for(var _=0,C=0;Ct._rangebreaks[C].pmax&&(_=C+1);return x(T,t._m2,t._B[_])}}t.c2l=t.type==="log"?a:yy,t.l2c=t.type==="log"?$M:yy,t.l2p=b,t.p2l=v,t.c2p=t.type==="log"?function(T,L){return b(a(T,L))}:b,t.p2c=t.type==="log"?function(T){return $M(v(T))}:v,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=a_,t.c2d=t.c2r=t.l2d=t.l2r=yy,t.d2p=t.r2p=function(T){return t.l2p(a_(T))},t.p2d=t.p2r=v,t.cleanPos=yy):t.type==="log"?(t.d2r=t.d2l=function(T,L){return a(a_(T),L)},t.r2d=t.r2c=function(T){return $M(a_(T))},t.d2c=t.r2l=a_,t.c2d=t.l2r=yy,t.c2r=a,t.l2d=$M,t.d2p=function(T,L){return t.l2p(t.d2r(T,L))},t.p2d=function(T){return $M(v(T))},t.r2p=function(T){return t.l2p(a_(T))},t.p2r=v,t.cleanPos=yy):t.type==="date"?(t.d2r=t.r2d=Mc.identity,t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=s,t.d2p=t.r2p=function(T,L,_){return t.l2p(o(T,0,_))},t.p2d=t.p2r=function(T,L,_){return s(v(T),L,_)},t.cleanPos=function(T){return Mc.cleanDate(T,bm,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=l,t.r2d=t.c2d=t.l2d=u,t.d2r=t.d2l_noadd=h,t.r2c=function(T){var L=d(T);return L!==void 0?L:t.fraction2r(.5)},t.l2r=t.c2r=yy,t.r2l=d,t.d2p=function(T){return t.l2p(t.r2c(T))},t.p2d=function(T){return u(v(T))},t.r2p=t.d2p,t.p2r=v,t.cleanPos=function(T){return typeof T=="string"&&T!==""?T:yy(T)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=u,t.d2r=t.d2l_noadd=h,t.r2c=function(T){var L=h(T);return L!==void 0?L:t.fraction2r(.5)},t.r2c_just_indices=c,t.l2r=t.c2r=yy,t.r2l=h,t.d2p=function(T){return t.l2p(t.r2c(T))},t.p2d=function(T){return u(v(T))},t.r2p=t.d2p,t.p2r=v,t.cleanPos=function(T){return Array.isArray(T)||typeof T=="string"&&T!==""?T:yy(T)},t.setupMultiCategory=function(T){var L=t._traceIndices,_,C,S=t._matchGroup;if(S&&t._categories.length===0){for(var m in S)if(m!==n){var P=r[fP.id2name(m)];L=L.concat(P._traceIndices)}}var A=[[0,{}],[0,{}]],B=[];for(_=0;_P[1]&&(C[m?0:1]=_),C[0]===C[1]){var A=t.l2r(L),B=t.l2r(_);if(L!==void 0){var F=A+1;_!==void 0&&(F=Math.min(F,B)),C[m?1:0]=F}if(_!==void 0){var U=B+1;L!==void 0&&(U=Math.max(U,A)),C[m?0:1]=U}}}},t.cleanRange=function(T,L){t._cleanRange(T,L),t.limitRange(T)},t._cleanRange=function(T,L){L||(L={}),T||(T="range");var _=Mc.nestedProperty(t,T).get(),C,S;if(t.type==="date"?S=Mc.dfltRange(t.calendar):i==="y"?S=dP.DFLTRANGEY:t._name==="realaxis"?S=[0,1]:S=L.dfltRange||dP.DFLTRANGEX,S=S.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(S[0]=0),!_||_.length!==2){Mc.nestedProperty(t,T).set(S);return}var m=_[0]===null,P=_[1]===null;for(t.type==="date"&&!t.autorange&&(_[0]=Mc.cleanDate(_[0],bm,t.calendar),_[1]=Mc.cleanDate(_[1],bm,t.calendar)),C=0;C<2;C++)if(t.type==="date"){if(!Mc.isDateTime(_[C],t.calendar)){t[T]=S;break}if(t.r2l(_[0])===t.r2l(_[1])){var A=Mc.constrain(t.r2l(_[0]),Mc.MIN_MS+1e3,Mc.MAX_MS-1e3);_[0]=t.l2r(A-1e3),_[1]=t.l2r(A+1e3);break}}else{if(!my(_[C]))if(!(m||P)&&my(_[1-C]))_[C]=_[1-C]*(C?10:.1);else{t[T]=S;break}if(_[C]<-sP?_[C]=-sP:_[C]>sP&&(_[C]=sP),_[0]===_[1]){var B=Math.max(1,Math.abs(_[0]*1e-6));_[0]-=B,_[1]+=B}}},t.setScale=function(T){var L=r._size;if(t.overlaying){var _=fP.getFromId({_fullLayout:r},t.overlaying);t.domain=_.domain}var C=T&&t._r?"_r":"range",S=t.calendar;t.cleanRange(C);var m=t.r2l(t[C][0],S),P=t.r2l(t[C][1],S),A=i==="y";if(A?(t._offset=L.t+(1-t.domain[1])*L.h,t._length=L.h*(t.domain[1]-t.domain[0]),t._m=t._length/(m-P),t._b=-t._m*P):(t._offset=L.l+t.domain[0]*L.w,t._length=L.w*(t.domain[1]-t.domain[0]),t._m=t._length/(P-m),t._b=-t._m*m),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var B,F;if(t._rangebreaks=t.locateBreaks(Math.min(m,P),Math.max(m,P)),t._rangebreaks.length){for(B=0;BP&&(U=!U),U&&t._rangebreaks.reverse();var G=U?-1:1;for(t._m2=G*t._length/(Math.abs(P-m)-t._lBreaks),t._B.push(-t._m2*(A?P:m)),B=0;BS&&(S+=7,mS&&(S+=24,m=C&&m=C&&T=te.min&&(bete.max&&(te.max=Pe),Ce=!1)}Ce&&P.push({min:be,max:Pe})}};for(_=0;_{"use strict";var fse=ku(),aN=ei(),xst=nf().BADNUM,pP=aN.isArrayOrTypedArray,bst=aN.isDateTime,wst=aN.cleanNumber,cse=Math.round;dse.exports=function(t,r,n){var i=t,a=n.noMultiCategory;if(pP(i)&&!i.length)return"-";if(!a&&Est(i))return"multicategory";if(a&&Array.isArray(i[0])){for(var o=[],s=0;sa*2}function hse(e){return Math.max(1,(e-1)/1e3)}function Mst(e,t){for(var r=e.length,n=hse(r),i=0,a=0,o={},s=0;si*2}function Est(e){return pP(e[0])&&pP(e[1])}});var wm=Te((oar,bse)=>{"use strict";var kst=Jl(),yse=ku(),s_=ei(),vP=nf().FP_SAFE,Cst=$l(),Lst=Mu(),gse=$c(),Pst=gse.getFromId,zst=gse.isLinked;bse.exports={applyAutorangeOptions:xse,getAutoRange:oN,makePadFn:sN,doAutoRange:Rst,findExtremes:Dst,concatExtremes:fN};function oN(e,t){var r,n,i=[],a=e._fullLayout,o=sN(a,t,0),s=sN(a,t,1),u=fN(e,t),l=u.min,f=u.max;if(l.length===0||f.length===0)return s_.simpleMap(t.range,t.r2l);var c=l[0].val,h=f[0].val;for(r=1;r0&&(P=E-o(_)-s(C),P>T?A/P>L&&(S=_,m=C,L=A/P):A/E>L&&(S={val:_.val,nopad:1},m={val:C.val,nopad:1},L=A/E));function B(H,N){return Math.max(H,s(N))}if(c===h){var F=c-1,U=c+1;if(v)if(c===0)i=[0,1];else{var G=(c>0?f:l).reduce(B,0),j=c/(1-Math.min(.5,G/E));i=c>0?[0,j]:[j,0]}else k?i=[Math.max(0,F),Math.max(1,U)]:i=[F,U]}else v?(S.val>=0&&(S={val:0,nopad:1}),m.val<=0&&(m={val:0,nopad:1})):k&&(S.val-L*o(S)<0&&(S={val:0,nopad:1}),m.val<=0&&(m={val:1,nopad:1})),L=(m.val-S.val-pse(t,_.val,C.val))/(E-o(S)-s(m)),i=[S.val-L*o(S),m.val+L*s(m)];return i=xse(i,t),t.limitRange&&t.limitRange(),p&&i.reverse(),s_.simpleMap(i,t.l2r||Number)}function pse(e,t,r){var n=0;if(e.rangebreaks)for(var i=e.locateBreaks(t,r),a=0;a0?r.ppadplus:r.ppadminus)||r.ppad||0),_=T((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),C=T(r.vpadplus||r.vpad),S=T(r.vpadminus||r.vpad);if(!l){if(k=1/0,E=-1/0,u)for(c=0;c0&&(k=h),h>E&&h-vP&&(k=h),h>E&&h=A;c--)P(c);return{min:n,max:i,opts:r}}function lN(e,t,r,n){_se(e,t,r,n,Fst)}function uN(e,t,r,n){_se(e,t,r,n,Bst)}function _se(e,t,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,u=0;u=r&&(l.extrapad||!o)){s=!1;break}else i(t,l.val)&&l.pad<=r&&(o||!l.extrapad)&&(e.splice(u,1),u--)}if(s){var f=a&&t===0;e.push({val:t,pad:f?0:r,extrapad:f?!1:o})}}function mse(e){return yse(e)&&Math.abs(e)=t}function Ost(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&mP(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&mP(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function qst(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&mP(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&mP(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function mP(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=u&&(a=u,r=u),o<=u&&(o=u,n=u)}}return r=Ost(r,t),n=qst(n,t),[r,n]}});var wu=Te((sar,Gse)=>{"use strict";var w0=Jl(),Dh=ku(),P3=Cc(),e5=$l(),qu=ei(),z3=qu.strTranslate,Eb=Zf(),Nst=Mb(),t5=jl(),Xv=Mu(),Ust=Dd(),wse=Rq(),Qd=nf(),Vst=Qd.ONEMAXYEAR,_P=Qd.ONEAVGYEAR,xP=Qd.ONEMINYEAR,Gst=Qd.ONEMAXQUARTER,pN=Qd.ONEAVGQUARTER,bP=Qd.ONEMINQUARTER,Hst=Qd.ONEMAXMONTH,I3=Qd.ONEAVGMONTH,wP=Qd.ONEMINMONTH,Zv=Qd.ONEWEEK,Fp=Qd.ONEDAY,l_=Fp/2,xy=Qd.ONEHOUR,r5=Qd.ONEMIN,AP=Qd.ONESEC,Wst=Qd.ONEMILLI,jst=Qd.ONEMICROSEC,kb=Qd.MINUS_SIGN,MP=Qd.BADNUM,vN={K:"zeroline"},mN={K:"gridline",L:"path"},yN={K:"minor-gridline",L:"path"},Ise={K:"tick",L:"path"},Ase={K:"tick",L:"text"},Tse={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},EP=Qh(),QM=EP.MID_SHIFT,Cb=EP.CAP_SHIFT,i5=EP.LINE_SPACING,Xst=EP.OPPOSITE_SIDE,TP=3,al=Gse.exports={};al.setConvert=gy();var Zst=L3(),Tg=$c(),Yst=Tg.idSort,Kst=Tg.isLinked;al.id2name=Tg.id2name;al.name2id=Tg.name2id;al.cleanId=Tg.cleanId;al.list=Tg.list;al.listIds=Tg.listIds;al.getFromId=Tg.getFromId;al.getFromTrace=Tg.getFromTrace;var Rse=wm();al.getAutoRange=Rse.getAutoRange;al.findExtremes=Rse.findExtremes;var Jst=1e-4;function bN(e){var t=(e[1]-e[0])*Jst;return[e[0]-t,e[1]+t]}al.coerceRef=function(e,t,r,n,i,a){var o=n.charAt(n.length-1),s=r._fullLayout._subplots[o+"axis"],u=n+"ref",l={};return i||(i=s[0]||(typeof a=="string"?a:a[0])),a||(a=i),s=s.concat(s.map(function(f){return f+" domain"})),l[u]={valType:"enumerated",values:s.concat(a?typeof a=="string"?[a]:a:[]),dflt:i},qu.coerce(e,t,l,u)};al.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};al.coercePosition=function(e,t,r,n,i,a){var o,s,u=al.getRefType(n);if(u!=="range")o=qu.ensureNumber,s=r(i,a);else{var l=al.getFromId(t,n);a=l.fraction2r(a),s=r(i,a),o=l.cleanPos}e[i]=o(s)};al.cleanPosition=function(e,t,r){var n=r==="paper"||r==="pixel"?qu.ensureNumber:al.getFromId(t,r).cleanPos;return n(e)};al.redrawComponents=function(e,t){t=t||al.listIds(e);var r=e._fullLayout;function n(i,a,o,s){for(var u=e5.getComponentMethod(i,a),l={},f=0;f2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};al.saveRangeInitial=function(e,t){for(var r=al.list(e,"",!0),n=!1,i=0;ic*.3||l(n)||l(i))){var h=r.dtick/2;e+=e+ho){var s=Number(r.substr(1));a.exactYears>o&&s%12===0?e=al.tickIncrement(e,"M6","reverse")+Fp*1.5:a.exactMonths>o?e=al.tickIncrement(e,"M1","reverse")+Fp*15.5:e-=l_;var u=al.tickIncrement(e,r);if(u<=n)return u}return e}al.prepMinorTicks=function(e,t,r){if(!t.minor.dtick){delete e.dtick;var n=t.dtick&&Dh(t._tmin),i;if(n){var a=al.tickIncrement(t._tmin,t.dtick,!0);i=[t._tmin,a*.99+t._tmin*.01]}else{var o=qu.simpleMap(t.range,t.r2l);i=[o[0],.8*o[0]+.2*o[1]]}if(e.range=qu.simpleMap(i,t.l2r),e._isMinor=!0,al.prepTicks(e,r),n){var s=Dh(t.dtick),u=Dh(e.dtick),l=s?t.dtick:+t.dtick.substring(1),f=u?e.dtick:+e.dtick.substring(1);s&&u?cN(l,f)?l===2*Zv&&f===2*Fp&&(e.dtick=Zv):l===2*Zv&&f===3*Fp?e.dtick=Zv:l===Zv&&!(t._input.minor||{}).nticks?e.dtick=Fp:Ese(l/f,2.5)?e.dtick=l/2:e.dtick=l:String(t.dtick).charAt(0)==="M"?u?e.dtick="M1":cN(l,f)?l>=12&&f===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?cN(l,f)||(e.dtick=Ese(l/f,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}t.minor._tick0Init===void 0&&(e.tick0=t.tick0)};function cN(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function Ese(e,t){return Math.abs(e/t-1)<.001}al.prepTicks=function(e,t){var r=qu.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,i;n||(e.type==="category"||e.type==="multicategory"?(i=e.tickfont?qu.bigFont(e.tickfont.size||12):15,n=e._length/i):(i=e._id.charAt(0)==="y"?40:80,n=qu.constrain(e._length/i,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(r[1]-r[0])/n,al.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(a=n-1,o=n):(a=n,o=n);var s=e[a].value,u=e[o].value,l=Math.abs(u-s),f=r||l,c=0;f>=xP?l>=xP&&l<=Vst?c=l:c=_P:r===pN&&f>=bP?l>=bP&&l<=Gst?c=l:c=pN:f>=wP?l>=wP&&l<=Hst?c=l:c=I3:r===Zv&&f>=Zv?c=Zv:f>=Fp?c=Fp:r===l_&&f>=l_?c=l_:r===xy&&f>=xy&&(c=xy);var h;c>=l&&(c=l,h=!0);var d=i+c;if(t.rangebreaks&&c>0){for(var p=84,x=0,b=0;bZv&&(c=l)}(c>0||n===0)&&(e[n].periodX=i+c/2)}}al.calcTicks=function(t,r){for(var n=t.type,i=t.calendar,a=t.ticklabelstep,o=t.ticklabelmode==="period",s=t.range[0]>t.range[1],u=!t.ticklabelindex||qu.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],l=qu.simpleMap(t.range,t.r2l,void 0,void 0,r),f=l[1]=(E?0:1);T--){var L=!T;T?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var _=T?t:qu.extendFlat({},t,t.minor);if(L?al.prepMinorTicks(_,t,r):al.prepTicks(_,r),_.tickmode==="array"){T?(b=[],p=kse(t,!L)):(v=[],x=kse(t,!L));continue}if(_.tickmode==="sync"){b=[],p=ilt(t);continue}var C=bN(l),S=C[0],m=C[1],P=Dh(_.dtick),A=n==="log"&&!(P||_.dtick.charAt(0)==="L"),B=al.tickFirst(_,r);if(T){if(t._tmin=B,B=m:U<=m;U=al.tickIncrement(U,H,f,i)){if(T&&G++,_.rangebreaks&&!f){if(U=h)break}if(b.length>d||U===F)break;F=U;var N={value:U};T?(A&&U!==(U|0)&&(N.simpleLabel=!0),a>1&&G%a&&(N.skipLabel=!0),b.push(N)):(N.minor=!0,v.push(N))}}if(!v||v.length<2)u=!1;else{var W=(v[1].value-v[0].value)*(s?-1:1);Elt(W,t.tickformat)||(u=!1)}if(!u)k=b;else{var re=b.concat(v);o&&b.length&&(re=re.slice(1)),re=re.sort(function(kt,At){return kt.value-At.value}).filter(function(kt,At,St){return At===0||kt.value!==St[At-1].value});var ae=re.map(function(kt,At){return kt.minor===void 0&&!kt.skipLabel?At:null}).filter(function(kt){return kt!==null});ae.forEach(function(kt){u.map(function(At){var St=kt+At;St>=0&&St-1;Ue--){if(b[Ue].drop){b.splice(Ue,1);continue}b[Ue].value=dN(b[Ue].value,t);var ce=t.c2p(b[Ue].value);(Fe?Ne>ce-me:Neh||Bth&&(St.periodX=h),Bti&&h_P)t/=_P,n=i(10),e.dtick="M"+12*_y(t,n,yP);else if(a>I3)t/=I3,e.dtick="M"+_y(t,1,Cse);else if(a>Fp){if(e.dtick=_y(t,Fp,e._hasDayOfWeekBreaks?[1,2,7,14]:nlt),!r){var o=al.getTickFormat(e),s=e.ticklabelmode==="period";s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=qu.dateTick0(e.calendar,2):e.tick0=qu.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}}else a>xy?e.dtick=_y(t,xy,Cse):a>r5?e.dtick=_y(t,r5,Lse):a>AP?e.dtick=_y(t,AP,Lse):(n=i(10),e.dtick=_y(t,n,yP))}else if(e.type==="log"){e.tick0=0;var u=qu.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(u[1]-u[0])<1){var l=1.5*Math.abs((u[1]-u[0])/t);t=Math.abs(Math.pow(10,u[1])-Math.pow(10,u[0]))/l,n=i(10),e.dtick="L"+_y(t,n,yP)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):TN(e)?(e.tick0=0,n=1,e.dtick=_y(t,n,alt)):(e.tick0=0,n=i(10),e.dtick=_y(t,n,yP));if(e.dtick===0&&(e.dtick=1),!Dh(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function Ose(e){var t=e.dtick;if(e._tickexponent=0,!Dh(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),n=e.l2r(r).replace(/(^-|i)/g,""),i=n.length;if(String(t).charAt(0)==="M")i>10||n.substr(5)!=="01-01"?e._tickround="d":e._tickround=+t.substr(1)%12===0?"y":"m";else if(t>=Fp&&i<=10||t>=Fp*15)e._tickround="d";else if(t>=r5&&i<=16||t>=xy)e._tickround="M";else if(t>=AP&&i<=19||t>=r5)e._tickround="S";else{var a=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(i,a)-20,e._tickround<0&&(e._tickround=4)}}else if(Dh(t)||t.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);Dh(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),u=Math.floor(Math.log(s)/Math.LN10+.01),l=e.minexponent===void 0?3:e.minexponent;Math.abs(u)>l&&(SP(e.exponentformat)&&!wN(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}al.tickIncrement=function(e,t,r,n){var i=r?-1:1;if(Dh(t))return qu.increment(e,i*t);var a=t.charAt(0),o=i*Number(t.substr(1));if(a==="M")return qu.incrementMonth(e,o,n);if(a==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(a==="D"){var s=t==="D2"?Bse:Fse,u=e+i*.01,l=qu.roundUp(qu.mod(u,1),s,r);return Math.floor(u)+Math.log(w0.round(Math.pow(10,l),1))/Math.LN10}throw"unrecognized dtick "+String(t)};al.tickFirst=function(e,t){var r=e.r2l||Number,n=qu.simpleMap(e.range,r,void 0,void 0,t),i=n[1]=0&&v<=e._length?b:null};if(a&&qu.isArrayOrTypedArray(e.ticktext)){var c=qu.simpleMap(e.range,e.r2l),h=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(l=0;l"+s;else{var l=a5(e),f=e._trueSide||e.side;(!l&&f==="top"||l&&f==="bottom")&&(o+="
")}t.text=o}function slt(e,t,r,n,i){var a=e.dtick,o=t.x,s=e.tickformat,u=typeof a=="string"&&a.charAt(0);if(i==="never"&&(i=""),n&&u!=="L"&&(a="L3",u="L"),s||u==="L")t.text=n5(Math.pow(10,o),e,i,n);else if(Dh(a)||u==="D"&&qu.mod(o+.01,1)<.1){var l=Math.round(o),f=Math.abs(l),c=e.exponentformat;c==="power"||SP(c)&&wN(l)?(l===0?t.text=1:l===1?t.text="10":t.text="10"+(l>1?"":kb)+f+"",t.fontSize*=1.25):(c==="e"||c==="E")&&f>2?t.text="1"+c+(l>0?"+":kb)+f:(t.text=n5(Math.pow(10,o),e,"","fakehover"),a==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(u==="D")t.text=String(Math.round(Math.pow(10,qu.mod(o,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(a);if(e.dtick==="D1"){var h=String(t.text).charAt(0);(h==="0"||h==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(o<0?.5:.25)))}}function llt(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function ult(e,t,r){var n=Math.round(t.x),i=e._categories[n]||[],a=i[1]===void 0?"":String(i[1]),o=i[0]===void 0?"":String(i[0]);r?t.text=o+" - "+a:(t.text=a,t.text2=o)}function flt(e,t,r,n,i){i==="never"?i="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide"),t.text=n5(t.x,e,i,n)}function clt(e,t,r,n,i){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=hlt(a);if(o[1]>=100)t.text=n5(qu.deg2rad(t.x),e,i,n);else{var s=t.x<0;o[1]===1?o[0]===1?t.text="\u03C0":t.text=o[0]+"\u03C0":t.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),s&&(t.text=kb+t.text)}}}else t.text=n5(t.x,e,i,n)}function hlt(e){function t(s,u){return Math.abs(s-u)<=1e-6}function r(s,u){return t(u,0)?s:r(u,s%u)}function n(s){for(var u=1;!t(Math.round(s*u)/u,s);)u*=10;return u}var i=n(e),a=e*i,o=Math.abs(r(a,i));return[Math.round(a/o),Math.round(i/o)]}var dlt=["f","p","n","\u03BC","m","","k","M","G","T"];function SP(e){return e==="SI"||e==="B"}function wN(e){return e>14||e<-15}function n5(e,t,r,n){var i=e<0,a=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,u=al.getTickFormat(t),l=t.separatethousands;if(n){var f={exponentformat:o,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:Dh(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};Ose(f),a=(Number(f._tickround)||0)+4,s=f._tickexponent,t.hoverformat&&(u=t.hoverformat)}if(u)return t._numFormat(u)(e).replace(/-/g,kb);var c=Math.pow(10,-a)/2;if(o==="none"&&(s=0),e=Math.abs(e),e"+p+"":o==="B"&&s===9?e+="B":SP(o)&&(e+=dlt[s/3+5])}return i?kb+e:e}al.getTickFormat=function(e){var t;function r(u){return typeof u!="string"?u:Number(u.replace("M",""))*I3}function n(u,l){var f=["L","D"];if(typeof u==typeof l){if(typeof u=="number")return u-l;var c=f.indexOf(u.charAt(0)),h=f.indexOf(l.charAt(0));return c===h?Number(u.replace(/(L|D)/g,""))-Number(l.replace(/(L|D)/g,"")):c-h}else return typeof u=="number"?1:-1}function i(u,l,f){var c=f||function(p){return p},h=l[0],d=l[1];return(!h&&typeof h!="number"||c(h)<=c(u))&&(!d&&typeof d!="number"||c(d)>=c(u))}function a(u,l){var f=l[0]===null,c=l[1]===null,h=n(u,l[0])>=0,d=n(u,l[1])<=0;return(f||h)&&(c||d)}var o,s;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&i.unshift(i.splice(f,1).shift())}});var s={false:{left:0,right:0}};return qu.syncOrAsync(i.map(function(u){return function(){if(u){var l=al.getFromId(e,u);r||(r={}),r.axShifts=s,r.overlayingShiftedAx=o;var f=al.drawOne(e,l,r);return l._shiftPusher&&xN(l,l._fullDepth||0,s,!0),l._r=l.range.slice(),l._rl=qu.simpleMap(l._r,l.r2l),f}}}))};al.drawOne=function(e,t,r){r=r||{};var n=r.axShifts||{},i=r.overlayingShiftedAx||[],a,o,s;t.setScale();var u=e._fullLayout,l=t._id,f=l.charAt(0),c=al.counterLetter(l),h=u._plots[t._mainSubplot],d=t.zerolinelayer==="above traces";if(!h)return;if(t._shiftPusher=t.autoshift||i.indexOf(t._id)!==-1||i.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var p=t.linewidth/2||0;t.ticks==="inside"&&(p+=t.ticklen),xN(t,p,n,!0),xN(t,t.shift||0,n,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=Mlt(t,n));var x=h[f+"axislayer"],b=t._mainLinePosition,v=b+=t._shift,k=t._mainMirrorPosition,E=t._vals=al.calcTicks(t),T=[t.mirror,v,k].join("_");for(a=0;a0?Bt.bottom-At:0,St))));var ot=0,dt=0;if(t._shiftPusher&&(ot=Math.max(St,Bt.height>0?Ye==="l"?At-Bt.left:Bt.right-At:0),t.title.text!==u._dfltTitle[f]&&(dt=(t._titleStandoff||0)+(t._titleScoot||0),Ye==="l"&&(dt+=zse(t))),t._fullDepth=Math.max(ot,dt)),t.automargin){Zt={x:0,y:0,r:0,l:0,t:0,b:0};var pt=[0,1],at=typeof t._shift=="number"?t._shift:0;if(f==="x"){if(Ye==="b"?Zt[Ye]=t._depth:(Zt[Ye]=t._depth=Math.max(Bt.width>0?At-Bt.top:0,St),pt.reverse()),Bt.width>0){var Xe=Bt.right-(t._offset+t._length);Xe>0&&(Zt.xr=1,Zt.r=Xe);var rt=t._offset-Bt.left;rt>0&&(Zt.xl=0,Zt.l=rt)}}else if(Ye==="l"?(t._depth=Math.max(Bt.height>0?At-Bt.left:0,St),Zt[Ye]=t._depth-at):(t._depth=Math.max(Bt.height>0?Bt.right-At:0,St),Zt[Ye]=t._depth+at,pt.reverse()),Bt.height>0){var Qe=Bt.bottom-(t._offset+t._length);Qe>0&&(Zt.yb=0,Zt.b=Qe);var zt=t._offset-Bt.top;zt>0&&(Zt.yt=1,Zt.t=zt)}Zt[c]=t.anchor==="free"?t.position:t._anchorAxis.domain[pt[0]],t.title.text!==u._dfltTitle[f]&&(Zt[Ye]+=zse(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(Et={x:0,y:0,r:0,l:0,t:0,b:0},Et[kt]=t.linewidth,t.mirror&&t.mirror!==!0&&(Et[kt]+=St),t.mirror===!0||t.mirror==="ticks"?Et[c]=t._anchorAxis.domain[pt[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(Et[c]=[t._counterDomainMin,t._counterDomainMax][pt[1]]))}nt&&(Ae=e5.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(Pse(Zt,t.automargin),Pse(Et,t.automargin)),P3.autoMargin(e,AN(t),Zt),P3.autoMargin(e,Use(t),Et),P3.autoMargin(e,Vse(t),Ae)}),qu.syncOrAsync(bt)}};function Pse(e,t){if(e){var r=Object.keys(Tse).reduce(function(n,i){return t.indexOf(i)!==-1&&Tse[i].forEach(function(a){n[a]=1}),n},{});Object.keys(e).forEach(function(n){r[n]||(n.length===1?e[n]=0:delete e[n])})}}function plt(e,t){var r=[],n,i=function(a,o){var s=a.xbnd[o];s!==null&&r.push(qu.extendFlat({},a,{x:s}))};if(t.length){for(n=0;ne.range[1],s=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,u=!s;if(r){var l=o?-1:1;r=r*l}if(n){var f=e.side,c=s&&(f==="top"||f==="left")||u&&(f==="bottom"||f==="right")?1:-1;n=n*c}return e._id.charAt(0)==="x"?function(h){return z3(i+e._offset+e.l2p(gN(h))+r,a+n)}:function(h){return z3(a+n,i+e._offset+e.l2p(gN(h))+r)}};function gN(e){return e.periodX!==void 0?e.periodX:e.x}function glt(e){var t=e.ticklabelposition||"",r=e.tickson||"",n=function(p){return t.indexOf(p)!==-1},i=n("top"),a=n("left"),o=n("right"),s=n("bottom"),u=n("inside"),l=r!=="boundaries"&&(s||a||i||o);if(!l&&!u)return[0,0];var f=e.side,c=l?(e.tickwidth||0)/2:0,h=TP,d=e.tickfont?e.tickfont.size:12;return(s||i)&&(c+=d*Cb,h+=(e.linewidth||0)/2),(a||o)&&(c+=(e.linewidth||0)/2,h+=TP),u&&f==="top"&&(h-=d*(1-Cb)),(a||i)&&(c=-c),(f==="bottom"||f==="right")&&(h=-h),[l?c:0,u?h:0]}al.makeTickPath=function(e,t,r,n){n||(n={});var i=n.minor;if(i&&!e.minor)return"";var a=n.len!==void 0?n.len:i?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),s=(e.linewidth||1)/2;return o==="x"?"M0,"+(t+s*r)+"v"+a*r:"M"+(t+s*r)+",0h"+a*r};al.makeLabelFns=function(e,t,r){var n=e.ticklabelposition||"",i=e.tickson||"",a=function(F){return n.indexOf(F)!==-1},o=a("top"),s=a("left"),u=a("right"),l=a("bottom"),f=i!=="boundaries"&&(l||s||o||u),c=a("inside"),h=n==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&i!=="boundaries",d=0,p=0,x=h?e.ticklen:0;if(c?x*=-1:f&&(x=0),h&&(d+=x,r)){var b=qu.deg2rad(r);d=x*Math.cos(b)+1,p=x*Math.sin(b)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var v={labelStandoff:d,labelShift:p},k,E,T,L,_=0,C=e.side,S=e._id.charAt(0),m=e.tickangle,P;if(S==="x")P=!c&&C==="bottom"||c&&C==="top",L=P?1:-1,c&&(L*=-1),k=p*L,E=t+d*L,T=P?1:-.2,Math.abs(m)===90&&(c?T+=QM:m===-90&&C==="bottom"?T=Cb:m===90&&C==="top"?T=QM:T=.5,_=QM/2*(m/90)),v.xFn=function(F){return F.dx+k+_*F.fontSize},v.yFn=function(F){return F.dy+E+F.fontSize*T},v.anchorFn=function(F,U){if(f){if(s)return"end";if(u)return"start"}return!Dh(U)||U===0||U===180?"middle":U*L<0!==c?"end":"start"},v.heightFn=function(F,U,G){return U<-60||U>60?-.5*G:e.side==="top"!==c?-G:0};else if(S==="y"){if(P=!c&&C==="left"||c&&C==="right",L=P?1:-1,c&&(L*=-1),k=d,E=p*L,T=0,!c&&Math.abs(m)===90&&(m===-90&&C==="left"||m===90&&C==="right"?T=Cb:T=.5),c){var A=Dh(m)?+m:0;if(A!==0){var B=qu.deg2rad(A);_=Math.abs(Math.sin(B))*Cb*L,T=0}}v.xFn=function(F){return F.dx+t-(k+F.fontSize*T)*L+_*F.fontSize},v.yFn=function(F){return F.dy+E+F.fontSize*QM},v.anchorFn=function(F,U){return Dh(U)&&Math.abs(U)===90?"middle":P?"end":"start"},v.heightFn=function(F,U,G){return e.side==="right"&&(U*=-1),U<-30?-G:U<30?-.5*G:0}}return v};function kP(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}al.drawTicks=function(e,t,r){r=r||{};var n=t._id+"tick",i=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(t.ticks?r.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),a=r.layer.selectAll("path."+n).data(i,kP);a.exit().remove(),a.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return t5.stroke(w0.select(this),o.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(o){return Xv.crispRound(e,o.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),CP(t,[Ise]),a.attr("transform",r.transFn)};al.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var n=t._id+"grid",i=t.minor&&t.minor.showgrid,a=i?r.vals.filter(function(v){return v.minor}):[],o=t.showgrid?r.vals.filter(function(v){return!v.minor}):[],s=r.counterAxis;if(s&&al.shouldShowZeroLine(e,t,s))for(var u=t.tickmode==="array",l=0;l=0;p--){var x=p?h:d;if(x){var b=x.selectAll("path."+n).data(p?o:a,kP);b.exit().remove(),b.enter().append("path").classed(n,1).classed("crisp",r.crisp!==!1),b.attr("transform",r.transFn).attr("d",r.path).each(function(v){return t5.stroke(w0.select(this),v.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(v){return Xv.dashStyle(v.minor?t.minor.griddash:t.griddash,v.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(v){return(v.minor?c:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&b.attr("d",r.path)}}CP(t,[mN,yN])}};al.drawZeroLine=function(e,t,r){r=r||r;var n=t._id+"zl",i=al.shouldShowZeroLine(e,t,r.counterAxis),a=r.layer.selectAll("path."+n).data(i?[{x:0,id:t._id}]:[]);a.exit().remove(),a.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(o,s){return Yst(o.id,s.id)})}),a.attr("transform",r.transFn).attr("d",r.path).call(t5.stroke,t.zerolinecolor||t5.defaultLine).style("stroke-width",Xv.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),CP(t,[vN])};al.drawLabels=function(e,t,r){r=r||{};var n=e._fullLayout,i=t._id,a=t.zerolinelayer==="above traces",o=r.cls||i+"tick",s=r.vals.filter(function(W){return W.text}),u=r.labelFns,l=r.secondary?0:t.tickangle,f=(t._prevTickAngles||{})[o],c=r.layer.selectAll("g."+o).data(t.showticklabels?s:[],kP),h=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(W){var re=w0.select(this),ae=e._promises.length;re.call(Eb.positionText,u.xFn(W),u.yFn(W)).call(Xv.font,{family:W.font,size:W.fontSize,color:W.fontColor,weight:W.fontWeight,style:W.fontStyle,variant:W.fontVariant,textcase:W.fontTextcase,lineposition:W.fontLineposition,shadow:W.fontShadow}).text(W.text).call(Eb.convertToTspans,e),e._promises[ae]?h.push(e._promises.pop().then(function(){d(re,l)})):d(re,l)}),CP(t,[Ase]),c.exit().remove(),r.repositionOnUpdate&&c.each(function(W){w0.select(this).select("text").call(Eb.positionText,u.xFn(W),u.yFn(W))});function d(W,re){W.each(function(ae){var be=w0.select(this),Pe=be.select(".text-math-group"),Ce=u.anchorFn(ae,re),de=r.transFn.call(be.node(),ae)+(Dh(re)&&+re!=0?" rotate("+re+","+u.xFn(ae)+","+(u.yFn(ae)-ae.fontSize/2)+")":""),te=Eb.lineCount(be),ke=i5*ae.fontSize,Ee=u.heightFn(ae,Dh(re)?+re:0,(te-1)*ke);if(Ee&&(de+=z3(0,Ee)),Pe.empty()){var Me=be.select("text");Me.attr({transform:de,"text-anchor":Ce}),Me.style("opacity",1),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var Ue=Xv.bBox(Pe.node()).width,Fe=Ue*{end:-.5,start:.5}[Ce];Pe.attr("transform",de+z3(Fe,0))}})}t._adjustTickLabelsOverflow=function(){var W=t.ticklabeloverflow;if(!(!W||W==="allow")){var re=W.indexOf("hide")!==-1,ae=t._id.charAt(0)==="x",be=0,Pe=ae?e._fullLayout.width:e._fullLayout.height;if(W.indexOf("domain")!==-1){var Ce=qu.simpleMap(t.range,t.r2l);be=t.l2p(Ce[0])+t._offset,Pe=t.l2p(Ce[1])+t._offset}var de=Math.min(be,Pe),te=Math.max(be,Pe),ke=t.side,Ee=1/0,Me=-1/0;c.each(function(Ne){var ce=w0.select(this),Ke=ce.select(".text-math-group");if(Ke.empty()){var it=Xv.bBox(ce.node()),bt=0;ae?(it.right>te||it.leftte||it.top+(t.tickangle?0:Ne.fontSize/4)t["_visibleLabelMin_"+Ce._id]?ce.style("display","none"):te.K==="tick"&&!de&&ce.style("display",null)})})})})},d(c,f+1?f:l);function p(){return h.length&&Promise.all(h)}var x=null;function b(){if(d(c,l),s.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){x=t.autotickangles[0];var W=0,re=[],ae,be=1;c.each(function(Zt){W=Math.max(W,Zt.fontSize);var Et=t.l2p(Zt.x),Ae=_N(this),ot=Xv.bBox(Ae.node());be=Math.max(be,Eb.lineCount(Ae)),re.push({top:0,bottom:10,height:10,left:Et-ot.width/2,right:Et+ot.width/2+2,width:ot.width+2})});var Pe=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,Ce=s.length,de=Math.abs((s[Ce-1].x-s[0].x)*t._m)/(Ce-1),te=Pe?de/2:de,ke=Pe?t.ticklen:W*1.25*be,Ee=Math.sqrt(Math.pow(te,2)+Math.pow(ke,2)),Me=te/Ee,Ue=t.autotickangles.map(function(Zt){return Zt*Math.PI/180}),Fe=Ue.find(function(Zt){return Math.abs(Math.cos(Zt))<=Me});Fe===void 0&&(Fe=Ue.reduce(function(Zt,Et){return Math.abs(Math.cos(Zt))j*G&&(B=G,m[S]=P[S]=F[S])}var H=Math.abs(B-A);H-L>0?(H-=L,L*=1+L/H):L=0,t._id.charAt(0)!=="y"&&(L=-L),m[C]=E.p2r(E.r2p(P[C])+_*L),E.autorange==="min"||E.autorange==="max reversed"?(m[0]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0):(E.autorange==="max"||E.autorange==="min reversed")&&(m[1]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[E._name+".range"]=m}var N=qu.syncOrAsync(v);return N&&N.then&&e._promises.push(N),N};function _lt(e,t,r){var n=t._id+"divider",i=r.vals,a=r.layer.selectAll("path."+n).data(i,kP);a.exit().remove(),a.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(t5.stroke,t.dividercolor).style("stroke-width",Xv.crispRound(e,t.dividerwidth,1)+"px"),a.attr("transform",r.transFn).attr("d",r.path)}al.getPxPosition=function(e,t){var r=e._fullLayout._size,n=t._id.charAt(0),i=t.side,a;if(t.anchor!=="free"?a=t._anchorAxis:n==="x"?a={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:n==="y"&&(a={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),i==="top"||i==="left")return a._offset;if(i==="bottom"||i==="right")return a._offset+a._length};function zse(e){var t=e.title.font.size,r=(e.title.text.match(Eb.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(Cb+r*i5):r?t*(r+1)*i5:t}function xlt(e,t){var r=e._fullLayout,n=t._id,i=n.charAt(0),a=t.title.font.size,o,s=(t.title.text.match(Eb.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?o=t._depth+t.title.standoff+a*Cb:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+a*(QM+s*i5));else{var u=a5(t);if(t.type==="multicategory")o=t._depth;else{var l=1.5*a;u&&(l=.5*a,t.ticks==="outside"&&(l+=t.ticklen)),o=10+l+(t.linewidth?t.linewidth-1:0)}u||(i==="x"?o+=t.side==="top"?a*(t.showticklabels?1:0):a*(t.showticklabels?1.5:.5):o+=t.side==="right"?a*(t.showticklabels?1:.5):a*(t.showticklabels?.5:0))}var f=al.getPxPosition(e,t),c,h,d;i==="x"?(h=t._offset+t._length/2,d=t.side==="top"?f-o:f+o):(d=t._offset+t._length/2,h=t.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var p;if(t.type!=="multicategory"){var x=t._selections[t._id+"tick"];if(p={selection:x,side:t.side},x&&x.node()&&x.node().parentNode){var b=Xv.getTranslate(x.node().parentNode);p.offsetLeft=b.x,p.offsetTop=b.y}t.title.hasOwnProperty("standoff")&&(p.pad=0)}return t._titleStandoff=o,Nst.draw(e,n+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[i],avoid:p,transform:c,attributes:{x:h,y:d,"text-anchor":"middle"}})}al.shouldShowZeroLine=function(e,t,r){var n=qu.simpleMap(t.range,t.r2l);return n[0]*n[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===MP)&&(Nse(t,0)||!blt(e,t,r,n)||wlt(e,t))};al.clipEnds=function(e,t){return t.filter(function(r){return Nse(e,r.x)})};function Nse(e,t){var r=e.l2p(t);return r>1&&r1)for(i=1;i=i.min&&e=jst:/%L/.test(t)?e>=Wst:/%[SX]/.test(t)?e>=AP:/%M/.test(t)?e>=r5:/%[HI]/.test(t)?e>=xy:/%p/.test(t)?e>=l_:/%[Aadejuwx]/.test(t)?e>=Fp:/%[UVW]/.test(t)?e>=Zv:/%[Bbm]/.test(t)?e>=wP:/%[q]/.test(t)?e>=bP:/%[Yy]/.test(t)?e>=xP:!0}});var SN=Te((lar,Hse)=>{"use strict";Hse.exports=function(t,r,n){var i,a;if(n){var o=r==="reversed"||r==="min reversed"||r==="max reversed";i=n[o?1:0],a=n[o?0:1]}var s=t("autorangeoptions.minallowed",a===null?i:void 0),u=t("autorangeoptions.maxallowed",i===null?a:void 0);s===void 0&&t("autorangeoptions.clipmin"),u===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var MN=Te((uar,Wse)=>{"use strict";var klt=SN();Wse.exports=function(t,r,n,i){var a=r._template||{},o=r.type||a.type||"-";n("minallowed"),n("maxallowed");var s=n("range");if(!s){var u;!i.noInsiderange&&o!=="log"&&(u=n("insiderange"),u&&(u[0]===null||u[1]===null)&&(r.insiderange=!1,u=void 0),u&&(s=n("range",u)))}var l=r.getAutorangeDflt(s,i),f=n("autorange",l),c;s&&(s[0]===null&&s[1]===null||(s[0]===null||s[1]===null)&&(f==="reversed"||f===!0)||s[0]!==null&&(f==="min"||f==="max reversed")||s[1]!==null&&(f==="max"||f==="min reversed"))&&(s=void 0,delete r.range,r.autorange=!0,c=!0),c||(l=r.getAutorangeDflt(s,i),f=n("autorange",l)),f&&(klt(n,f,s),(o==="linear"||o==="-")&&n("rangemode")),r.cleanRange()}});var Xse=Te((far,jse)=>{var Clt={left:0,top:0};jse.exports=Llt;function Llt(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var n=e.clientX||0,i=e.clientY||0,a=Plt(t);return r[0]=n-a.left,r[1]=i-a.top,r}function Plt(e){return e===window||e===document||e===document.body?Clt:e.getBoundingClientRect()}});var LP=Te((car,Zse)=>{"use strict";var zlt=uq();function Ilt(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}Zse.exports=zlt&&Ilt()});var Kse=Te((har,Yse)=>{"use strict";Yse.exports=function(t,r,n,i,a){var o=(t-n)/(i-n),s=o+r/(i-n),u=(o+s)/2;return a==="left"||a==="bottom"?o:a==="center"||a==="middle"?u:a==="right"||a==="top"?s:o<2/3-u?o:s>4/3-u?s:u}});var Qse=Te((dar,$se)=>{"use strict";var Jse=ei(),Rlt=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];$se.exports=function(t,r,n,i){return n==="left"?t=0:n==="center"?t=1:n==="right"?t=2:t=Jse.constrain(Math.floor(t*3),0,2),i==="bottom"?r=0:i==="middle"?r=1:i==="top"?r=2:r=Jse.constrain(Math.floor(r*3),0,2),Rlt[r][t]}});var tle=Te((par,ele)=>{"use strict";var Dlt=m3(),Flt=IL(),Blt=DM().getGraphDiv,Olt=IM(),EN=ele.exports={};EN.wrapped=function(e,t,r){e=Blt(e),e._fullLayout&&Flt.clear(e._fullLayout._uid+Olt.HOVERID),EN.raw(e,t,r)};EN.raw=function(t,r){var n=t._fullLayout,i=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&Dlt.triggerHandler(t,"plotly_beforehover",r)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&i&&t.emit("plotly_unhover",{event:r,points:i}))}});var gp=Te((mar,ale)=>{"use strict";var qlt=Xse(),kN=cq(),Nlt=LP(),Ult=ei().removeElement,Vlt=dd(),Lb=ale.exports={};Lb.align=Kse();Lb.getCursor=Qse();var ile=tle();Lb.unhover=ile.wrapped;Lb.unhoverRaw=ile.raw;Lb.init=function(t){var r=t.gd,n=1,i=r._context.doubleClickDelay,a=t.element,o,s,u,l,f,c,h,d;r._mouseDownTime||(r._mouseDownTime=0),a.style.pointerEvents="all",a.onmousedown=b,Nlt?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=b,a.addEventListener("touchstart",b,{passive:!1})):a.ontouchstart=b;function p(E,T,L){return Math.abs(E)i&&(n=Math.max(n-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var T;c.target===h?T=c:(T={target:h,srcElement:h,toElement:h},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(L=>{var _=c[L];!T[L]&&typeof _!="function"&&(T[L]=_)})),t.clickFn&&t.clickFn(n,T),d||h.dispatchEvent(new MouseEvent("click",E))}r._dragging=!1,r._dragged=!1}};function nle(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}Lb.coverSlip=nle;function rle(e){return qlt(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Am=Te((yar,ole)=>{"use strict";ole.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&t.classed(n,!1)}),r&&t.classed("cursor-"+r,!0)}});var ule=Te((gar,lle)=>{"use strict";var CN=Am(),o5="data-savedcursor",sle="!!";lle.exports=function(t,r){var n=t.attr(o5);if(r){if(!n){for(var i=(t.attr("class")||"").split(" "),a=0;a{"use strict";var LN=gc(),Glt=Ih();fle.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Glt.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:LN({editType:"legend"}),grouptitlefont:LN({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:LN({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var zP=Te(PP=>{"use strict";PP.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};PP.isVertical=function(t){return t.orientation!=="h"};PP.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1}});var RN=Te((bar,cle)=>{"use strict";var zN=$l(),Yv=ei(),Hlt=Pf(),Wlt=Vf(),jlt=PN(),Xlt=s3(),IN=zP();function Zlt(e,t,r,n){var i=t[e]||{},a=Hlt.newContainer(r,e);function o(H,N){return Yv.coerce(i,a,jlt,H,N)}var s=Yv.coerceFont(o,"font",r.font);o("bgcolor",r.paper_bgcolor),o("bordercolor");var u=o("visible");if(u){for(var l,f=function(H,N){var W=l._input,re=l;return Yv.coerce(W,re,Wlt,H,N)},c=r.font||{},h=Yv.coerceFont(o,"grouptitlefont",c,{overrideDflt:{size:Math.round(c.size*1.1)}}),d=0,p=!1,x="normal",b=(r.shapes||[]).filter(function(H){return H.showlegend}),v=n.concat(b).filter(function(H){return e===(H.legend||"legend")}),k=0;k(e==="legend"?1:0));if(T===!1&&(r[e]=void 0),!(T===!1&&!i.uirevision)&&(o("uirevision",r.uirevision),T!==!1)){o("borderwidth");var L=o("orientation"),_=o("yref"),C=o("xref"),S=L==="h",m=_==="paper",P=C==="paper",A,B,F,U="left";S?(A=0,zN.getComponentMethod("rangeslider","isVisible")(t.xaxis)?m?(B=1.1,F="bottom"):(B=1,F="top"):m?(B=-.1,F="top"):(B=0,F="bottom")):(B=1,F="auto",P?A=1.02:(A=1,U="right")),Yv.coerce(i,a,{x:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:A}},"x"),Yv.coerce(i,a,{y:{valType:"number",editType:"legend",min:m?-2:0,max:m?3:1,dflt:B}},"y"),o("traceorder",x),IN.isGrouped(r[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",U),o("yanchor",F),o("maxheight",S?.5:1),o("valign"),Yv.noneOrAll(i,a,["x","y"]);var G=o("title.text");if(G){o("title.side",S?"left":"top");var j=Yv.extendFlat({},s,{size:Yv.bigFont(s.size)});Yv.coerceFont(o,"title.font",j)}}}}cle.exports=function(t,r,n){var i,a=n.slice(),o=r.shapes;if(o)for(i=0;i{"use strict";var R3=$l(),FN=ei(),Ylt=FN.pushUnique,DN=!0;hle.exports=function(t,r,n){var i=r._fullLayout;if(r._dragged||r._editing)return;var a=i.legend.itemclick,o=i.legend.itemdoubleclick,s=i.legend.groupclick;n===1&&a==="toggle"&&o==="toggleothers"&&DN&&r.data&&r._context.showTips&&FN.notifier(FN._(r,"Double-click on legend to isolate one trace"),"long"),DN=!1;var u;if(n===1?u=a:n===2&&(u=o),!u)return;var l=s==="togglegroup",f=i.hiddenlabels?i.hiddenlabels.slice():[],c=t.data()[0][0];if(c.groupTitle&&c.noClick)return;var h=r._fullData,d=(i.shapes||[]).filter(function(kt){return kt.showlegend}),p=h.concat(d),x=c.trace;x._isShape&&(x=x._fullInput);var b=x.legendgroup,v,k,E,T,L,_,C={},S=[],m=[],P=[];function A(kt,At){var St=S.indexOf(kt),Bt=C.visible;return Bt||(Bt=C.visible=[]),S.indexOf(kt)===-1&&(S.push(kt),St=S.length-1),Bt[St]=At,St}var B=(i.shapes||[]).map(function(kt){return kt._input}),F=!1;function U(kt,At){B[kt].visible=At,F=!0}function G(kt,At){if(!(c.groupTitle&&!l)){var St=kt._fullInput||kt,Bt=St._isShape,Zt=St.index;Zt===void 0&&(Zt=St._index);var Et=St.visible===!1?!1:At;Bt?U(Zt,Et):A(Zt,Et)}}var j=x.legend,H=x._fullInput,N=H&&H._isShape;if(!N&&R3.traceIs(x,"pie-like")){var W=c.label,re=f.indexOf(W);if(u==="toggle")re===-1?f.push(W):f.splice(re,1);else if(u==="toggleothers"){var ae=re!==-1,be=[];for(v=0;v{"use strict";ple.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var yle=Te((Tar,mle)=>{"use strict";var vle=$l(),ON=zP();mle.exports=function(t,r,n){var i=r._inHover,a=ON.isGrouped(r),o=ON.isReversed(r),s={},u=[],l=!1,f={},c=0,h=0,d,p;function x(H,N,W){if(r.visible!==!1&&!(n&&H!==r._id))if(N===""||!ON.isGrouped(r)){var re="~~i"+c;u.push(re),s[re]=[W],c++}else u.indexOf(N)===-1?(u.push(N),l=!0,s[N]=[W]):s[N].push(W)}for(d=0;dP&&(m=P)}C[d][0]._groupMinRank=m,C[d][0]._preGroupSort=d}var A=function(H,N){return H[0]._groupMinRank-N[0]._groupMinRank||H[0]._preGroupSort-N[0]._preGroupSort},B=function(H,N){return H.trace.legendrank-N.trace.legendrank||H._preSort-N._preSort};for(C.forEach(function(H,N){H[0]._preGroupSort=N}),C.sort(A),d=0;d{"use strict";var IP=ei();function gle(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Pb.formatPiePercent=function(t,r){var n=gle((t*100).toPrecision(3));return IP.numSeparate(n,r)+"%"};Pb.formatPieValue=function(t,r){var n=gle(t.toPrecision(10));return IP.numSeparate(n,r)};Pb.getFirstFilled=function(t,r){if(IP.isArrayOrTypedArray(t))for(var n=0;n{"use strict";var Klt=Mu(),Jlt=jl();_le.exports=function(t,r,n,i){var a=n.marker.pattern;a&&a.shape?Klt.pointStyle(t,n,i,r):Jlt.fill(t,r.color)}});var D3=Te((Ear,Ale)=>{"use strict";var ble=jl(),wle=u_().castOption,$lt=xle();Ale.exports=function(t,r,n,i){var a=n.marker.line,o=wle(a.color,r.pts)||ble.defaultLine,s=wle(a.width,r.pts)||0;t.call($lt,r,n,i).style("stroke-width",s).call(ble.stroke,o)}});var VN=Te((kar,Cle)=>{"use strict";var Bp=Jl(),qN=$l(),_p=ei(),Tle=_p.strTranslate,Kv=Mu(),A0=jl(),NN=Rp().extractOpts,RP=lc(),Qlt=D3(),eut=u_().castOption,tut=BN(),Sle=12,Mle=5,zb=2,rut=10,F3=5;Cle.exports=function(t,r,n){var i=r._fullLayout;n||(n=i.legend);var a=n.itemsizing==="constant",o=n.itemwidth,s=(o+tut.itemGap*2)/2,u=Tle(s,0),l=function(C,S,m,P){var A;if(C+1)A=C;else if(S&&S.width>0)A=S.width;else return 0;return a?P:Math.min(A,m)};t.each(function(C){var S=Bp.select(this),m=_p.ensureSingle(S,"g","layers");m.style("opacity",C[0].trace.opacity);var P=n.indentation,A=n.valign,B=C[0].lineHeight,F=C[0].height;if(A==="middle"&&P===0||!B||!F)m.attr("transform",null);else{var U={top:1,bottom:-1}[A],G=U*(.5*(B-F+3))||0,j=n.indentation;m.attr("transform",Tle(j,G))}var H=m.selectAll("g.legendfill").data([C]);H.enter().append("g").classed("legendfill",!0);var N=m.selectAll("g.legendlines").data([C]);N.enter().append("g").classed("legendlines",!0);var W=m.selectAll("g.legendsymbols").data([C]);W.enter().append("g").classed("legendsymbols",!0),W.selectAll("g.legendpoints").data([C]).enter().append("g").classed("legendpoints",!0)}).each(_).each(h).each(p).each(d).each(b).each(T).each(E).each(f).each(c).each(v).each(k);function f(C){var S=Ele(C),m=S.showFill,P=S.showLine,A=S.showGradientLine,B=S.showGradientFill,F=S.anyFill,U=S.anyLine,G=C[0],j=G.trace,H,N,W=NN(j),re=W.colorscale,ae=W.reversescale,be=function(Me){if(Me.size())if(m)Kv.fillGroupStyle(Me,r,!0);else{var Ue="legendfill-"+j.uid;Kv.gradient(Me,r,Ue,UN(ae),re,"fill")}},Pe=function(Me){if(Me.size()){var Ue="legendline-"+j.uid;Kv.lineGroupStyle(Me),Kv.gradient(Me,r,Ue,UN(ae),re,"stroke")}},Ce=RP.hasMarkers(j)||!F?"M5,0":U?"M5,-2":"M5,-3",de=Bp.select(this),te=de.select(".legendfill").selectAll("path").data(m||B?[C]:[]);if(te.enter().append("path").classed("js-fill",!0),te.exit().remove(),te.attr("d",Ce+"h"+o+"v6h-"+o+"z").call(be),P||A){var ke=l(void 0,j.line,rut,Mle);N=_p.minExtend(j,{line:{width:ke}}),H=[_p.minExtend(G,{trace:N})]}var Ee=de.select(".legendlines").selectAll("path").data(P||A?[H]:[]);Ee.enter().append("path").classed("js-line",!0),Ee.exit().remove(),Ee.attr("d",Ce+(A?"l"+o+",0.0001":"h"+o)).call(P?Kv.lineGroupStyle:Pe)}function c(C){var S=Ele(C),m=S.anyFill,P=S.anyLine,A=S.showLine,B=S.showMarker,F=C[0],U=F.trace,G=!B&&!P&&!m&&RP.hasText(U),j,H;function N(te,ke,Ee,Me){var Ue=_p.nestedProperty(U,te).get(),Fe=_p.isArrayOrTypedArray(Ue)&&ke?ke(Ue):Ue;if(a&&Fe&&Me!==void 0&&(Fe=Me),Ee){if(FeEe[1])return Ee[1]}return Fe}function W(te){return F._distinct&&F.index&&te[F.index]?te[F.index]:te[0]}if(B||G||A){var re={},ae={};if(B){re.mc=N("marker.color",W),re.mx=N("marker.symbol",W),re.mo=N("marker.opacity",_p.mean,[.2,1]),re.mlc=N("marker.line.color",W),re.mlw=N("marker.line.width",_p.mean,[0,5],zb),ae.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var be=N("marker.size",_p.mean,[2,16],Sle);re.ms=be,ae.marker.size=be}A&&(ae.line={width:N("line.width",W,[0,10],Mle)}),G&&(re.tx="Aa",re.tp=N("textposition",W),re.ts=10,re.tc=N("textfont.color",W),re.tf=N("textfont.family",W),re.tw=N("textfont.weight",W),re.ty=N("textfont.style",W),re.tv=N("textfont.variant",W),re.tC=N("textfont.textcase",W),re.tE=N("textfont.lineposition",W),re.tS=N("textfont.shadow",W)),j=[_p.minExtend(F,re)],H=_p.minExtend(U,ae),H.selectedpoints=null,H.texttemplate=null}var Pe=Bp.select(this).select("g.legendpoints"),Ce=Pe.selectAll("path.scatterpts").data(B?j:[]);Ce.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),Ce.exit().remove(),Ce.call(Kv.pointStyle,H,r),B&&(j[0].mrc=3);var de=Pe.selectAll("g.pointtext").data(G?j:[]);de.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),de.exit().remove(),de.selectAll("text").call(Kv.textPointStyle,H,r)}function h(C){var S=C[0].trace,m=S.type==="waterfall";if(C[0]._distinct&&m){var P=C[0].trace[C[0].dir].marker;return C[0].mc=P.color,C[0].mlw=P.line.width,C[0].mlc=P.line.color,x(C,this,"waterfall")}var A=[];S.visible&&m&&(A=C[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var B=Bp.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(A);B.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),B.exit().remove(),B.each(function(F){var U=Bp.select(this),G=S[F[0]].marker,j=l(void 0,G.line,F3,zb);U.attr("d",F[1]).style("stroke-width",j+"px").call(A0.fill,G.color),j&&U.call(A0.stroke,G.line.color)})}function d(C){x(C,this)}function p(C){x(C,this,"funnel")}function x(C,S,m){var P=C[0].trace,A=P.marker||{},B=A.line||{},F=A.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",U=m?P.visible&&P.type===m:qN.traceIs(P,"bar"),G=Bp.select(S).select("g.legendpoints").selectAll("path.legend"+m).data(U?[C]:[]);G.enter().append("path").classed("legend"+m,!0).attr("d",F).attr("transform",u),G.exit().remove(),G.each(function(j){var H=Bp.select(this),N=j[0],W=l(N.mlw,A.line,F3,zb);H.style("stroke-width",W+"px");var re=N.mcc;if(!n._inHover&&"mc"in N){var ae=NN(A),be=ae.mid;be===void 0&&(be=(ae.max+ae.min)/2),re=Kv.tryColorscale(A,"")(be)}var Pe=re||N.mc||A.color,Ce=A.pattern,de=Kv.getPatternAttr,te=Ce&&(de(Ce.shape,0,"")||de(Ce.path,0,""));if(te){var ke=de(Ce.bgcolor,0,null),Ee=de(Ce.fgcolor,0,null),Me=Ce.fgopacity,Ue=kle(Ce.size,8,10),Fe=kle(Ce.solidity,.5,1),me="legend-"+P.uid;H.call(Kv.pattern,"legend",r,me,te,Ue,Fe,re,Ce.fillmode,ke,Ee,Me)}else H.call(A0.fill,Pe);W&&A0.stroke(H,N.mlc||B.color)})}function b(C){var S=C[0].trace,m=Bp.select(this).select("g.legendpoints").selectAll("path.legendbox").data(S.visible&&qN.traceIs(S,"box-violin")?[C]:[]);m.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),m.exit().remove(),m.each(function(){var P=Bp.select(this);if((S.boxpoints==="all"||S.points==="all")&&A0.opacity(S.fillcolor)===0&&A0.opacity((S.line||{}).color)===0){var A=_p.minExtend(S,{marker:{size:a?Sle:_p.constrain(S.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});m.call(Kv.pointStyle,A,r)}else{var B=l(void 0,S.line,F3,zb);P.style("stroke-width",B+"px").call(A0.fill,S.fillcolor),B&&A0.stroke(P,S.line.color)}})}function v(C){var S=C[0].trace,m=Bp.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(S.visible&&S.type==="candlestick"?[C,C]:[]);m.enter().append("path").classed("legendcandle",!0).attr("d",function(P,A){return A?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),m.exit().remove(),m.each(function(P,A){var B=Bp.select(this),F=S[A?"increasing":"decreasing"],U=l(void 0,F.line,F3,zb);B.style("stroke-width",U+"px").call(A0.fill,F.fillcolor),U&&A0.stroke(B,F.line.color)})}function k(C){var S=C[0].trace,m=Bp.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(S.visible&&S.type==="ohlc"?[C,C]:[]);m.enter().append("path").classed("legendohlc",!0).attr("d",function(P,A){return A?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),m.exit().remove(),m.each(function(P,A){var B=Bp.select(this),F=S[A?"increasing":"decreasing"],U=l(void 0,F.line,F3,zb);B.style("fill","none").call(Kv.dashLine,F.line.dash,U),U&&A0.stroke(B,F.line.color)})}function E(C){L(C,this,"pie")}function T(C){L(C,this,"funnelarea")}function L(C,S,m){var P=C[0],A=P.trace,B=m?A.visible&&A.type===m:qN.traceIs(A,m),F=Bp.select(S).select("g.legendpoints").selectAll("path.legend"+m).data(B?[C]:[]);if(F.enter().append("path").classed("legend"+m,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),F.exit().remove(),F.size()){var U=A.marker||{},G=l(eut(U.line.width,P.pts),U.line,F3,zb),j="pieLike",H=_p.minExtend(A,{marker:{line:{width:G}}},j),N=_p.minExtend(P,{trace:H},j);Qlt(F,N,H,r)}}function _(C){var S=C[0].trace,m,P=[];if(S.visible)switch(S.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],m=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],m=!0;break;case"densitymapbox":case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],m="radial";break;case"cone":P=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],m=!1;break;case"streamtube":P=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],m=!1;break;case"surface":P=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],m=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],m=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],m=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],m=!1;break}var A=Bp.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);A.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),A.exit().remove(),A.each(function(B,F){var U=Bp.select(this),G=NN(S),j=G.colorscale,H=G.reversescale,N=function(be){if(be.size()){var Pe="legendfill-"+S.uid;Kv.gradient(be,r,Pe,UN(H,m==="radial"),j,"fill")}},W;if(j){if(!m){var ae=j.length;W=F===0?j[H?ae-1:0][1]:F===1?j[H?0:ae-1][1]:j[Math.floor((ae-1)/2)][1]}}else{var re=S.vertexcolor||S.facecolor||S.color;W=_p.isArrayOrTypedArray(re)?re[F]||re[0]:re}U.attr("d",B[0]),W?U.call(A0.fill,W):U.call(N)})}};function UN(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function Ele(e){var t=e[0].trace,r=t.contours,n=RP.hasLines(t),i=RP.hasMarkers(t),a=t.visible&&t.fill&&t.fill!=="none",o=!1,s=!1;if(r){var u=r.coloring;u==="lines"?o=!0:n=u==="none"||u==="heatmap"||r.showlines,r.type==="constraint"?a=r._operation!=="=":(u==="fill"||u==="heatmap")&&(s=!0)}return{showMarker:i,showLine:n,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:n||o,anyFill:a||s}}function kle(e,t,r){return e&&_p.isArrayOrTypedArray(e)?t:e>r?r:e}});var jN=Te((Car,qle)=>{"use strict";var Tv=Jl(),Fh=ei(),HN=Cc(),q3=$l(),Lle=m3(),GN=gp(),Bh=Mu(),FP=jl(),Ib=Zf(),Ple=dle(),td=BN(),WN=Qh(),Ble=WN.LINE_SPACING,O3=WN.FROM_TL,zle=WN.FROM_BR,Ile=yle(),iut=VN(),Rle=zP(),B3=1,nut=/^legend[0-9]*$/;qle.exports=function(t,r){if(r)Dle(t,r);else{var n=t._fullLayout,i=n._legends,a=n._infolayer.selectAll('[class^="legend"]');a.each(function(){var l=Tv.select(this),f=l.attr("class"),c=f.split(" ")[0];c.match(nut)&&i.indexOf(c)===-1&&l.remove()});for(var o=0;o1)}var p=n.hiddenlabels||[];if(!s&&(!n.showlegend||!u.length))return o.selectAll("."+i).remove(),n._topdefs.select("#"+a).remove(),HN.autoMargin(e,i);var x=Fh.ensureSingle(o,"g",i,function(S){s||S.attr("pointer-events","all")}),b=Fh.ensureSingleById(n._topdefs,"clipPath",a,function(S){S.append("rect")}),v=Fh.ensureSingle(x,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});v.call(FP.stroke,r.bordercolor).call(FP.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var k=Fh.ensureSingle(x,"g","scrollbox"),E=r.title;r._titleWidth=0,r._titleHeight=0;var T;E.text?(T=Fh.ensureSingle(k,"text",i+"titletext"),T.attr("text-anchor","start").call(Bh.font,E.font).text(E.text),BP(T,k,e,r,B3)):k.selectAll("."+i+"titletext").remove();var L=Fh.ensureSingle(x,"rect","scrollbar",function(S){S.attr(td.scrollBarEnterAttrs).call(FP.fill,td.scrollBarColor)}),_=k.selectAll("g.groups").data(u);_.enter().append("g").attr("class","groups"),_.exit().remove();var C=_.selectAll("g.traces").data(Fh.identity);C.enter().append("g").attr("class","traces"),C.exit().remove(),C.style("opacity",function(S){var m=S[0].trace;return q3.traceIs(m,"pie-like")?p.indexOf(S[0].label)!==-1?.5:1:m.visible==="legendonly"?.5:1}).each(function(){Tv.select(this).call(out,e,r)}).call(iut,e,r).each(function(){s||Tv.select(this).call(sut,e,i)}),Fh.syncOrAsync([HN.previousPromises,function(){return fut(e,_,C,r)},function(){var S=n._size,m=r.borderwidth,P=r.xref==="paper",A=r.yref==="paper";if(E.text&&aut(T,r,m),!s){var B,F;P?B=S.l+S.w*r.x-O3[OP(r)]*r._width:B=n.width*r.x-O3[OP(r)]*r._width,A?F=S.t+S.h*(1-r.y)-O3[qP(r)]*r._effHeight:F=n.height*(1-r.y)-O3[qP(r)]*r._effHeight;var U=cut(e,i,B,F);if(U)return;if(n.margin.autoexpand){var G=B,j=F;B=P?Fh.constrain(B,0,n.width-r._width):G,F=A?Fh.constrain(F,0,n.height-r._effHeight):j,B!==G&&Fh.log("Constrain "+i+".x to make legend fit inside graph"),F!==j&&Fh.log("Constrain "+i+".y to make legend fit inside graph")}Bh.setTranslate(x,B,F)}if(L.on(".drag",null),x.on("wheel",null),s||r._height<=r._maxHeight||e._context.staticPlot){var H=r._effHeight;s&&(H=r._height),v.attr({width:r._width-m,height:H-m,x:m/2,y:m/2}),Bh.setTranslate(k,0,0),b.select("rect").attr({width:r._width-2*m,height:H-2*m,x:m,y:m}),Bh.setClipUrl(k,a,e),Bh.setRect(L,0,0,0,0),delete r._scrollY}else{var N=Math.max(td.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),W=r._effHeight-N-2*td.scrollBarMargin,re=r._height-r._effHeight,ae=W/re,be=Math.min(r._scrollY||0,re);v.attr({width:r._width-2*m+td.scrollBarWidth+td.scrollBarMargin,height:r._effHeight-m,x:m/2,y:m/2}),b.select("rect").attr({width:r._width-2*m+td.scrollBarWidth+td.scrollBarMargin,height:r._effHeight-2*m,x:m,y:m+be}),Bh.setClipUrl(k,a,e),Ue(be,N,ae),x.on("wheel",function(){be=Fh.constrain(r._scrollY+Tv.event.deltaY/W*re,0,re),Ue(be,N,ae),be!==0&&be!==re&&Tv.event.preventDefault()});var Pe,Ce,de,te=function(Ke,it,bt){var Nt=(bt-it)/ae+Ke;return Fh.constrain(Nt,0,re)},ke=function(Ke,it,bt){var Nt=(it-bt)/ae+Ke;return Fh.constrain(Nt,0,re)},Ee=Tv.behavior.drag().on("dragstart",function(){var Ke=Tv.event.sourceEvent;Ke.type==="touchstart"?Pe=Ke.changedTouches[0].clientY:Pe=Ke.clientY,de=be}).on("drag",function(){var Ke=Tv.event.sourceEvent;Ke.buttons===2||Ke.ctrlKey||(Ke.type==="touchmove"?Ce=Ke.changedTouches[0].clientY:Ce=Ke.clientY,be=te(de,Pe,Ce),Ue(be,N,ae))});L.call(Ee);var Me=Tv.behavior.drag().on("dragstart",function(){var Ke=Tv.event.sourceEvent;Ke.type==="touchstart"&&(Pe=Ke.changedTouches[0].clientY,de=be)}).on("drag",function(){var Ke=Tv.event.sourceEvent;Ke.type==="touchmove"&&(Ce=Ke.changedTouches[0].clientY,be=ke(de,Pe,Ce),Ue(be,N,ae))});k.call(Me)}function Ue(Ke,it,bt){r._scrollY=e._fullLayout[i]._scrollY=Ke,Bh.setTranslate(k,0,-Ke),Bh.setRect(L,r._width,td.scrollBarMargin+Ke*bt,td.scrollBarWidth,it),b.select("rect").attr("y",m+Ke)}if(e._context.edits.legendPosition){var Fe,me,Ne,ce;x.classed("cursor-move",!0),GN.init({element:x.node(),gd:e,prepFn:function(Ke){if(Ke.target!==L.node()){var it=Bh.getTranslate(x);Ne=it.x,ce=it.y}},moveFn:function(Ke,it){if(Ne!==void 0&&ce!==void 0){var bt=Ne+Ke,Nt=ce+it;Bh.setTranslate(x,bt,Nt),Fe=GN.align(bt,r._width,S.l,S.l+S.w,r.xanchor),me=GN.align(Nt+r._height,-r._height,S.t+S.h,S.t,r.yanchor)}},doneFn:function(){if(Fe!==void 0&&me!==void 0){var Ke={};Ke[i+".x"]=Fe,Ke[i+".y"]=me,q3.call("_guiRelayout",e,Ke)}},clickFn:function(Ke,it){var bt=o.selectAll("g.traces").filter(function(){var Nt=this.getBoundingClientRect();return it.clientX>=Nt.left&&it.clientX<=Nt.right&&it.clientY>=Nt.top&&it.clientY<=Nt.bottom});bt.size()>0&&Ole(e,x,bt,Ke,it)}})}}],e)}}function DP(e,t,r){var n=e[0],i=n.width,a=t.entrywidthmode,o=n.trace.legendwidth||t.entrywidth;return a==="fraction"?t._maxWidth*o:r+(o||i)}function Ole(e,t,r,n,i){var a=r.data()[0][0].trace,o={event:i,node:r.node(),curveNumber:a.index,expandedIndex:a.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};a._group&&(o.group=a._group),q3.traceIs(a,"pie-like")&&(o.label=r.datum()[0].label);var s=Lle.triggerHandler(e,"plotly_legendclick",o);if(n===1){if(s===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&Ple(r,e,n)},e._context.doubleClickDelay)}else if(n===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var u=Lle.triggerHandler(e,"plotly_legenddoubleclick",o);u!==!1&&s!==!1&&Ple(r,e,n)}}function out(e,t,r){var n=NP(r),i=e.data()[0][0],a=i.trace,o=q3.traceIs(a,"pie-like"),s=!r._inHover&&t._context.edits.legendText&&!o,u=r._maxNameLength,l,f;i.groupTitle?(l=i.groupTitle.text,f=i.groupTitle.font):(f=r.font,r.entries?l=i.text:(l=o?i.label:a.name,a._meta&&(l=Fh.templateString(l,a._meta))));var c=Fh.ensureSingle(e,"text",n+"text");c.attr("text-anchor","start").call(Bh.font,f).text(s?Fle(l,u):l);var h=r.indentation+r.itemwidth+td.itemGap*2;Ib.positionText(c,h,0),s?c.call(Ib.makeEditable,{gd:t,text:l}).call(BP,e,t,r).on("edit",function(d){this.text(Fle(d,u)).call(BP,e,t,r);var p=i.trace._fullInput||{},x={};return x.name=d,p._isShape?q3.call("_guiRelayout",t,"shapes["+a.index+"].name",x.name):q3.call("_guiRestyle",t,x,a.index)}):BP(c,e,t,r)}function Fle(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var n=r-e.length;n>0;n--)e+=" ";return e}function sut(e,t,r){var n=t._context.doubleClickDelay,i,a=1,o=Fh.ensureSingle(e,"rect",r+"toggle",function(s){t._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(FP.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(o.on("mousedown",function(){i=new Date().getTime(),i-t._legendMouseDownTimen&&(a=Math.max(a-1,1)),Ole(t,s,e,a,Tv.event)}}))}function BP(e,t,r,n,i){n._inHover&&e.attr("data-notex",!0),Ib.convertToTspans(e,r,function(){lut(t,r,n,i)})}function lut(e,t,r,n){var i=e.data()[0][0];if(!r._inHover&&i&&!i.trace.showlegend){e.remove();return}var a=e.select("g[class*=math-group]"),o=a.node(),s=NP(r);r||(r=t._fullLayout[s]);var u=r.borderwidth,l;n===B3?l=r.title.font:i.groupTitle?l=i.groupTitle.font:l=r.font;var f=l.size*Ble,c,h;if(o){var d=Bh.bBox(o);c=d.height,h=d.width,n===B3?Bh.setTranslate(a,u,u+c*.75):Bh.setTranslate(a,0,c*.25)}else{var p="."+s+(n===B3?"title":"")+"text",x=e.select(p),b=Ib.lineCount(x),v=x.node();if(c=f*b,h=v?Bh.bBox(v).width:0,n===B3)r.title.side==="left"&&(h+=td.itemGap*2),Ib.positionText(x,u+td.titlePad,u+f);else{var k=td.itemGap*2+r.indentation+r.itemwidth;i.groupTitle&&(k=td.itemGap,h-=r.indentation+r.itemwidth),Ib.positionText(x,k,-f*((b-1)/2-.3))}}n===B3?(r._titleWidth=h,r._titleHeight=c):(i.lineHeight=f,i.height=Math.max(c,16)+3,i.width=h)}function uut(e){var t=0,r=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(t=e._titleWidth),n.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function fut(e,t,r,n){var i=e._fullLayout,a=NP(n);n||(n=i[a]);var o=i._size,s=Rle.isVertical(n),u=Rle.isGrouped(n),l=n.entrywidthmode==="fraction",f=n.borderwidth,c=2*f,h=td.itemGap,d=n.indentation+n.itemwidth+h*2,p=2*(f+h),x=qP(n),b=n.y<0||n.y===0&&x==="top",v=n.y>1||n.y===1&&x==="bottom",k=n.tracegroupgap,E={},{maxheight:T,orientation:L,yref:_}=n,C=L==="v"&&_==="paper"?o.h:i.height;n._maxHeight=Math.max(T>1?T:T*C,30);var S=0;n._width=0,n._height=0;var m=uut(n);if(s)r.each(function(Me){var Ue=Me[0].height;Bh.setTranslate(this,f+m[0],f+m[1]+n._height+Ue/2+h),n._height+=Ue,n._width=Math.max(n._width,Me[0].width)}),S=d+n._width,n._width+=h+d+c,n._height+=p,u&&(t.each(function(Me,Ue){Bh.setTranslate(this,0,Ue*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var P=OP(n),A=n.x<0||n.x===0&&P==="right",B=n.x>1||n.x===1&&P==="left",F=v||b,U=i.width/2;n._maxWidth=Math.max(A?F&&P==="left"?o.l+o.w:U:B?F&&P==="right"?o.r+o.w:U:o.w,2*d);var G=0,j=0;r.each(function(Me){var Ue=DP(Me,n,d);G=Math.max(G,Ue),j+=Ue}),S=null;var H=0;if(u){var N=0,W=0,re=0;t.each(function(){var Me=0,Ue=0;Tv.select(this).selectAll("g.traces").each(function(me){var Ne=DP(me,n,d),ce=me[0].height;Bh.setTranslate(this,m[0],m[1]+f+h+ce/2+Ue),Ue+=ce,Me=Math.max(Me,Ne),E[me[0].trace.legendgroup]=Me});var Fe=Me+h;W>0&&Fe+f+W>n._maxWidth?(H=Math.max(H,W),W=0,re+=N+k,N=Ue):N=Math.max(N,Ue),Bh.setTranslate(this,W,re),W+=Fe}),n._width=Math.max(H,W)+f,n._height=re+N+p}else{var ae=r.size(),be=j+c+(ae-1)*h=n._maxWidth&&(H=Math.max(H,te),Ce=0,de+=Pe,n._height+=Pe,Pe=0),Bh.setTranslate(this,m[0]+f+Ce,m[1]+f+de+Ue/2+h),te=Ce+Fe+h,Ce+=me,Pe=Math.max(Pe,Ue)}),be?(n._width=Ce+c,n._height=Pe+p):(n._width=Math.max(H,te)+c,n._height+=Pe+p)}}n._width=Math.ceil(Math.max(n._width+m[0],n._titleWidth+2*(f+td.titlePad))),n._height=Math.ceil(Math.max(n._height+m[1],n._titleHeight+2*(f+td.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var ke=e._context.edits,Ee=ke.legendText||ke.legendPosition;r.each(function(Me){var Ue=Tv.select(this).select("."+a+"toggle"),Fe=Me[0].height,me=Me[0].trace.legendgroup,Ne=DP(Me,n,d);u&&me!==""&&(Ne=E[me]);var ce=Ee?d:S||Ne;!s&&!l&&(ce+=h/2),Bh.setRect(Ue,0,-Fe/2,ce,Fe)})}function cut(e,t,r,n){var i=e._fullLayout,a=i[t],o=OP(a),s=qP(a),u=a.xref==="paper",l=a.yref==="paper";e._fullLayout._reservedMargin[t]={};var f=a.y<.5?"b":"t",c=a.x<.5?"l":"r",h={r:i.width-r,l:r+a._width,b:i.height-n,t:n+a._effHeight};if(u&&l)return HN.autoMargin(e,t,{x:a.x,y:a.y,l:a._width*O3[o],r:a._width*zle[o],b:a._effHeight*zle[s],t:a._effHeight*O3[s]});u?e._fullLayout._reservedMargin[t][f]=h[f]:l||a.orientation==="v"?e._fullLayout._reservedMargin[t][c]=h[c]:e._fullLayout._reservedMargin[t][f]=h[f]}function OP(e){return Fh.isRightAnchor(e)?"right":Fh.isCenterAnchor(e)?"center":"left"}function qP(e){return Fh.isBottomAnchor(e)?"bottom":Fh.isMiddleAnchor(e)?"middle":"top"}function NP(e){return e._id||"legend"}});var KN=Te(YN=>{"use strict";var Rb=Jl(),Sg=ku(),Nle=cd(),fh=ei(),hut=fh.pushUnique,XN=fh.strTranslate,dut=fh.strRotate,put=m3(),T0=Zf(),vut=ule(),by=Mu(),vd=jl(),UP=gp(),wy=wu(),mut=dd().zindexSeparator,U3=$l(),Tm=rv(),Db=IM(),yut=RN(),gut=jN(),Zle=Db.YANGLE,ZN=Math.PI*Zle/180,_ut=1/Math.sin(ZN),xut=Math.cos(ZN),but=Math.sin(ZN),Wc=Db.HOVERARROWSIZE,Cf=Db.HOVERTEXTPAD,Ule={box:!0,ohlc:!0,violin:!0,candlestick:!0},wut={scatter:!0,scattergl:!0,splom:!0};function Vle(e,t){return e.distance-t.distance}YN.hover=function(t,r,n,i){t=fh.getGraphDiv(t);var a=r.target;fh.throttle(t._fullLayout._uid+Db.HOVERID,Db.HOVERMINTIME,function(){Aut(t,r,n,i,a)})};YN.loneHover=function(t,r){var n=!0;Array.isArray(t)||(n=!1,t=[t]);var i=r.gd,a=Qle(i),o=eue(i),s=t.map(function(b){var v=b._x0||b.x0||b.x||0,k=b._x1||b.x1||b.x||0,E=b._y0||b.y0||b.y||0,T=b._y1||b.y1||b.y||0,L=b.eventData;if(L){var _=Math.min(v,k),C=Math.max(v,k),S=Math.min(E,T),m=Math.max(E,T),P=b.trace;if(U3.traceIs(P,"gl3d")){var A=i._fullLayout[P.scene]._scene.container,B=A.offsetLeft,F=A.offsetTop;_+=B,C+=B,S+=F,m+=F}L.bbox={x0:_+o,x1:C+o,y0:S+a,y1:m+a},r.inOut_bbox&&r.inOut_bbox.push(L.bbox)}else L=!1;return{color:b.color||vd.defaultLine,x0:b.x0||b.x||0,x1:b.x1||b.x||0,y0:b.y0||b.y||0,y1:b.y1||b.y||0,xLabel:b.xLabel,yLabel:b.yLabel,zLabel:b.zLabel,text:b.text,name:b.name,idealAlign:b.idealAlign,borderColor:b.borderColor,fontFamily:b.fontFamily,fontSize:b.fontSize,fontColor:b.fontColor,fontWeight:b.fontWeight,fontStyle:b.fontStyle,fontVariant:b.fontVariant,nameLength:b.nameLength,textAlign:b.textAlign,trace:b.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:b.hovertemplate||!1,hovertemplateLabels:b.hovertemplateLabels||!1,eventData:L}}),u=!1,l=Kle(s,{gd:i,hovermode:"closest",rotateLabels:u,bgColor:r.bgColor||vd.background,container:Rb.select(r.container),outerContainer:r.outerContainer||r.container}),f=l.hoverLabels,c=5,h=0,d=0;f.sort(function(b,v){return b.y0-v.y0}).each(function(b,v){var k=b.y0-b.by/2;k-cC[0]._length||ce<0||ce>S[0]._length)return UP.unhoverRaw(e,t)}if(t.pointerX=Ne+C[0]._offset,t.pointerY=ce+S[0]._offset,"xval"in t?j=Tm.flat(a,t.xval):j=Tm.p2c(C,Ne),"yval"in t?H=Tm.flat(a,t.yval):H=Tm.p2c(S,ce),!Sg(j[0])||!Sg(H[0]))return fh.warn("Fx.hover failed",t,e),UP.unhoverRaw(e,t)}var bt=1/0;function Nt(Ci,nn){for(W=0;WEe&&(U.splice(0,Ee),bt=U[0].distance),c&&F!==0&&U.length===0){ke.distance=F,ke.index=!1;var gt=ae._module.hoverPoints(ke,de,te,"closest",{hoverLayer:s._hoverlayer});if(gt&&(gt=gt.filter(function(Ir){return Ir.spikeDistance<=F})),gt&>.length){var Ut,Wt=gt.filter(function(Ir){return Ir.xa.showspikes&&Ir.xa.spikesnap!=="hovered data"});if(Wt.length){var xr=Wt[0];Sg(xr.x0)&&Sg(xr.y0)&&(Ut=Ye(xr),(!Me.vLinePoint||Me.vLinePoint.spikeDistance>Ut.spikeDistance)&&(Me.vLinePoint=Ut))}var Lr=gt.filter(function(Ir){return Ir.ya.showspikes&&Ir.ya.spikesnap!=="hovered data"});if(Lr.length){var Ur=Lr[0];Sg(Ur.x0)&&Sg(Ur.y0)&&(Ut=Ye(Ur),(!Me.hLinePoint||Me.hLinePoint.spikeDistance>Ut.spikeDistance)&&(Me.hLinePoint=Ut))}}}}}Nt();function nt(Ci,nn,ii){for(var wi=null,Gi=1/0,Ft,gt=0;gt0&&Math.abs(Ci.distance)rt-1;Ht--)_r(U[Ht]);U=Yt,Bt()}var Re=e._hoverdata,xe=[],Oe=Qle(e),Ie=eue(e);for(N=0;N1||U.length>1)||h==="closest"&&Ue&&U.length>1,Br=vd.combine(s.plot_bgcolor||vd.background,s.paper_bgcolor),mi=Kle(U,{gd:e,hovermode:h,rotateLabels:Er,bgColor:Br,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),Di=mi.hoverLabels;if(Tm.isUnifiedHover(h)||(Sut(Di,Er,s,mi.commonLabelBoundingBox),$le(Di,Er,s._invScaleX,s._invScaleY)),i&&i.tagName){var Ii=U3.getComponentMethod("annotations","hasClickToShow")(e,xe);vut(Rb.select(i),Ii?"pointer":"")}!i||n||!kut(e,t,Re)||(Re&&e.emit("plotly_unhover",{event:t,points:Re}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:C,yaxes:S,xvals:j,yvals:H}))}function Yle(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Tut=/([\s\S]*)<\/extra>/;function Kle(e,t){var r=t.gd,n=r._fullLayout,i=t.hovermode,a=t.rotateLabels,o=t.bgColor,s=t.container,u=t.outerContainer,l=t.commonLabelOpts||{};if(e.length===0)return[[]];var f=t.fontFamily||Db.HOVERFONT,c=t.fontSize||Db.HOVERFONTSIZE,h=t.fontWeight||n.font.weight,d=t.fontStyle||n.font.style,p=t.fontVariant||n.font.variant,x=t.fontTextcase||n.font.textcase,b=t.fontLineposition||n.font.lineposition,v=t.fontShadow||n.font.shadow,k=e[0],E=k.xa,T=k.ya,L=i.charAt(0),_=L+"Label",C=k[_];if(C===void 0&&E.type==="multicategory")for(var S=0;Sn.width-Re&&(xe=n.width-Re),pt.attr("d","M"+(mr-xe)+",0L"+(mr-xe+Wc)+","+Ht+Wc+"H"+Re+"v"+Ht+(Cf*2+lr.height)+"H"+-Re+"V"+Ht+Wc+"H"+(mr-xe-Wc)+"Z"),mr=xe,W.minX=mr-Re,W.maxX=mr+Re,E.side==="top"?(W.minY=_r-(Cf*2+lr.height),W.maxY=_r-Cf):(W.minY=_r+Cf,W.maxY=_r+(Cf*2+lr.height))}else{var Oe,Ie,De;T.side==="right"?(Oe="start",Ie=1,De="",mr=E._offset+E._length):(Oe="end",Ie=-1,De="-",mr=E._offset),_r=T._offset+(k.y0+k.y1)/2,at.attr("text-anchor",Oe),pt.attr("d","M0,0L"+De+Wc+","+Wc+"V"+(Cf+lr.height/2)+"h"+De+(Cf*2+lr.width)+"V-"+(Cf+lr.height/2)+"H"+De+Wc+"V-"+Wc+"Z"),W.minY=_r-(Cf+lr.height/2),W.maxY=_r+(Cf+lr.height/2),T.side==="right"?(W.minX=mr+Wc,W.maxX=mr+Wc+(Cf*2+lr.width)):(W.minX=mr-Wc-(Cf*2+lr.width),W.maxX=mr-Wc);var ct=lr.height/2,_e=P-lr.top-ct,fe="clip"+n._uid+"commonlabel"+T._id,pe;if(mr=0?Et=At:St+ce=0?Et=St:Bt+ce=0?Ae=Ye:kt+Ke=0?Ae=kt:Zt+Ke=0,(dt.idealAlign==="top"||!Pt)&&rr?(De-=_e/2,dt.anchor="end"):Pt?(De+=_e/2,dt.anchor="start"):dt.anchor="middle",dt.crossPos=De;else{if(dt.pos=De,Pt=Ie+ct/2+It<=A,rr=Ie-ct/2-It>=0,(dt.idealAlign==="left"||!Pt)&&rr)Ie-=ct/2,dt.anchor="end";else if(Pt)Ie+=ct/2,dt.anchor="start";else{dt.anchor="middle";var Wr=It/2,Nr=Ie+Wr-A,Er=Ie-Wr;Nr>0&&(Ie-=Nr),Er<0&&(Ie+=-Er)}dt.crossPos=Ie}_r.attr("text-anchor",dt.anchor),Re&&Ht.attr("text-anchor",dt.anchor),pt.attr("transform",XN(Ie,De)+(a?dut(Zle):""))}),{hoverLabels:ot,commonLabelBoundingBox:W}}function Gle(e,t,r,n,i,a){var o="",s="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=fh.templateString(e.name,e.trace._meta)),o=jle(e.name,e.nameLength));var u=r.charAt(0),l=u==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(s+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(s+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[u+"Label"]===i?s=e[l+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(s=e.yLabel):e.yLabel===void 0?s=e.xLabel:s="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(s+=(s?"
":"")+e.text),e.extraText!==void 0&&(s+=(s?"
":"")+e.extraText),a&&s===""&&!e.hovertemplate&&(o===""&&a.remove(),s=o);var f=e.hovertemplate||!1;if(f){var c=e.hovertemplateLabels||e;e[u+"Label"]!==i&&(c[u+"other"]=c[u+"Val"],c[u+"otherLabel"]=c[u+"Label"]),s=fh.hovertemplateString(f,c,n._d3locale,e.eventData[0]||{},e.trace._meta),s=s.replace(Tut,function(h,d){return o=jle(d,e.nameLength),""})}return[s,o]}function Sut(e,t,r,n){var i=t?"xa":"ya",a=t?"ya":"xa",o=0,s=1,u=e.size(),l=new Array(u),f=0,c=n.minX,h=n.maxX,d=n.minY,p=n.maxY,x=function(j){return j*r._invScaleX},b=function(j){return j*r._invScaleY};e.each(function(j){var H=j[i],N=j[a],W=H._id.charAt(0)==="x",re=H.range;f===0&&re&&re[0]>re[1]!==W&&(s=-1);var ae=0,be=W?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var Pe=Jle(j,t),Ce=j.anchor,de=Ce==="end"?-1:1,te,ke;if(Ce==="middle")te=j.crossPos+(W?b(Pe.y-j.by/2):x(j.bx/2+j.tx2width/2)),ke=te+(W?b(j.by):x(j.bx));else if(W)te=j.crossPos+b(Wc+Pe.y)-b(j.by/2-Wc),ke=te+b(j.by);else{var Ee=x(de*Wc+Pe.x),Me=Ee+x(de*j.bx);te=j.crossPos+Math.min(Ee,Me),ke=j.crossPos+Math.max(Ee,Me)}W?d!==void 0&&p!==void 0&&Math.min(ke,p)-Math.max(te,d)>1&&(N.side==="left"?(ae=N._mainLinePosition,be=r.width):be=N._mainLinePosition):c!==void 0&&h!==void 0&&Math.min(ke,h)-Math.max(te,c)>1&&(N.side==="top"?(ae=N._mainLinePosition,be=r.height):be=N._mainLinePosition)}l[f++]=[{datum:j,traceIndex:j.trace.index,dp:0,pos:j.pos,posref:j.posref,size:j.by*(W?_ut:1)/2,pmin:ae,pmax:be}]}),l.sort(function(j,H){return j[0].posref-H[0].posref||s*(H[0].traceIndex-j[0].traceIndex)});var v,k,E,T,L,_,C;function S(j){var H=j[0],N=j[j.length-1];if(k=H.pmin-H.pos-H.dp+H.size,E=N.pos+N.dp+N.size-H.pmax,k>.01){for(L=j.length-1;L>=0;L--)j[L].dp+=k;v=!1}if(!(E<.01)){if(k<-.01){for(L=j.length-1;L>=0;L--)j[L].dp-=E;v=!1}if(v){var W=0;for(T=0;TH.pmax&&W++;for(T=j.length-1;T>=0&&!(W<=0);T--)_=j[T],_.pos>H.pmax-1&&(_.del=!0,W--);for(T=0;T=0;L--)j[L].dp-=E;for(T=j.length-1;T>=0&&!(W<=0);T--)_=j[T],_.pos+_.dp+_.size>H.pmax&&(_.del=!0,W--)}}}for(;!v&&o<=u;){for(o++,v=!0,T=0;T.01){for(L=P.length-1;L>=0;L--)P[L].dp+=k;for(m.push.apply(m,P),l.splice(T+1,1),C=0,L=m.length-1;L>=0;L--)C+=m[L].dp;for(E=C/m.length,L=m.length-1;L>=0;L--)m[L].dp-=E;v=!1}else T++}l.forEach(S)}for(T=l.length-1;T>=0;T--){var F=l[T];for(L=F.length-1;L>=0;L--){var U=F[L],G=U.datum;G.offset=U.dp,G.del=U.del}}}function Jle(e,t){var r=0,n=e.offset;return t&&(n*=-but,r=e.offset*xut),{x:r,y:n}}function Mut(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(Wc+Cf),n=r+t*(e.txwidth+Cf),i=e.anchor==="middle";return i&&(r-=e.tx2width/2,n+=e.txwidth/2+Cf),{alignShift:t,textShiftX:r,text2ShiftX:n}}function $le(e,t,r,n){var i=function(o){return o*r},a=function(o){return o*n};e.each(function(o){var s=Rb.select(this);if(o.del)return s.remove();var u=s.select("text.nums"),l=o.anchor,f=l==="end"?-1:1,c=Mut(o),h=Jle(o,t),d=h.x,p=h.y,x=l==="middle";s.select("path").attr("d",x?"M-"+i(o.bx/2+o.tx2width/2)+","+a(p-o.by/2)+"h"+i(o.bx)+"v"+a(o.by)+"h-"+i(o.bx)+"Z":"M0,0L"+i(f*Wc+d)+","+a(Wc+p)+"v"+a(o.by/2-Wc)+"h"+i(f*o.bx)+"v-"+a(o.by)+"H"+i(f*Wc+d)+"V"+a(p-Wc)+"Z");var b=d+c.textShiftX,v=p+o.ty0-o.by/2+Cf,k=o.textAlign||"auto";k!=="auto"&&(k==="left"&&l!=="start"?(u.attr("text-anchor","start"),b=x?-o.bx/2-o.tx2width/2+Cf:-o.bx-Cf):k==="right"&&l!=="end"&&(u.attr("text-anchor","end"),b=x?o.bx/2-o.tx2width/2-Cf:o.bx+Cf)),u.call(T0.positionText,i(b),a(v)),o.tx2width&&(s.select("text.name").call(T0.positionText,i(c.text2ShiftX+c.alignShift*Cf+d),a(p+o.ty0-o.by/2+Cf)),s.select("rect").call(by.setRect,i(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),a(p-o.by/2-1),i(o.tx2width),a(o.by+2)))})}function Eut(e,t){var r=e.index,n=e.trace||{},i=e.cd[0],a=e.cd[r]||{};function o(h){return h||Sg(h)&&h===0}var s=Array.isArray(r)?function(h,d){var p=fh.castOption(i,r,h);return o(p)?p:fh.extractOption({},n,"",d)}:function(h,d){return fh.extractOption(a,n,h,d)};function u(h,d,p){var x=s(d,p);o(x)&&(e[h]=x)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("fontWeight","htw","hoverlabel.font.weight"),u("fontStyle","hty","hoverlabel.font.style"),u("fontVariant","htv","hoverlabel.font.variant"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=fh.constrain(e.x0,0,e.xa._length),e.x1=fh.constrain(e.x1,0,e.xa._length),e.y0=fh.constrain(e.y0,0,e.ya._length),e.y1=fh.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:wy.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:wy.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var l=wy.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+l+" / -"+wy.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+l,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=wy.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+wy.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,t==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function Hle(e,t,r){var n=r.container,i=r.fullLayout,a=i._size,o=r.event,s=!!t.hLinePoint,u=!!t.vLinePoint,l,f;if(n.selectAll(".spikeline").remove(),!!(u||s)){var c=vd.combine(i.plot_bgcolor,i.paper_bgcolor);if(s){var h=t.hLinePoint,d,p;l=h&&h.xa,f=h&&h.ya;var x=f.spikesnap;x==="cursor"?(d=o.pointerX,p=o.pointerY):(d=l._offset+h.x,p=f._offset+h.y);var b=Nle.readability(h.color,c)<1.5?vd.contrast(c):h.color,v=f.spikemode,k=f.spikethickness,E=f.spikecolor||b,T=wy.getPxPosition(e,f),L,_;if(v.indexOf("toaxis")!==-1||v.indexOf("across")!==-1){if(v.indexOf("toaxis")!==-1&&(L=T,_=d),v.indexOf("across")!==-1){var C=f._counterDomainMin,S=f._counterDomainMax;f.anchor==="free"&&(C=Math.min(C,f.position),S=Math.max(S,f.position)),L=a.l+C*a.w,_=a.l+S*a.w}n.insert("line",":first-child").attr({x1:L,x2:_,y1:p,y2:p,"stroke-width":k,stroke:E,"stroke-dasharray":by.dashStyle(f.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:L,x2:_,y1:p,y2:p,"stroke-width":k+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}v.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:T+(f.side!=="right"?k:-k),cy:p,r:k,fill:E}).classed("spikeline",!0)}if(u){var m=t.vLinePoint,P,A;l=m&&m.xa,f=m&&m.ya;var B=l.spikesnap;B==="cursor"?(P=o.pointerX,A=o.pointerY):(P=l._offset+m.x,A=f._offset+m.y);var F=Nle.readability(m.color,c)<1.5?vd.contrast(c):m.color,U=l.spikemode,G=l.spikethickness,j=l.spikecolor||F,H=wy.getPxPosition(e,l),N,W;if(U.indexOf("toaxis")!==-1||U.indexOf("across")!==-1){if(U.indexOf("toaxis")!==-1&&(N=H,W=A),U.indexOf("across")!==-1){var re=l._counterDomainMin,ae=l._counterDomainMax;l.anchor==="free"&&(re=Math.min(re,l.position),ae=Math.max(ae,l.position)),N=a.t+(1-ae)*a.h,W=a.t+(1-re)*a.h}n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:W,"stroke-width":G,stroke:j,"stroke-dasharray":by.dashStyle(l.spikedash,G)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:W,"stroke-width":G+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}U.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:P,cy:H-(l.side!=="top"?G:-G),r:G,fill:j}).classed("spikeline",!0)}}}function kut(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var i=r[n],a=e._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers))return!0}return!1}function Wle(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function jle(e,t){return T0.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Cut(e,t){for(var r=t.charAt(0),n=[],i=[],a=[],o=0;o{"use strict";var Lut=ei(),Put=jl(),zut=rv().isUnifiedHover;tue.exports=function(t,r,n,i){i=i||{};var a=r.legend;function o(s){i.font[s]||(i.font[s]=a?r.legend.font[s]:r.font[s])}r&&zut(r.hovermode)&&(i.font||(i.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(i.bgcolor||(i.bgcolor=Put.combine(r.legend.bgcolor,r.paper_bgcolor)),i.bordercolor||(i.bordercolor=r.legend.bordercolor)):i.bgcolor||(i.bgcolor=r.paper_bgcolor)),n("hoverlabel.bgcolor",i.bgcolor),n("hoverlabel.bordercolor",i.bordercolor),n("hoverlabel.namelength",i.namelength),Lut.coerceFont(n,"hoverlabel.font",i.font),n("hoverlabel.align",i.align)}});var iue=Te((zar,rue)=>{"use strict";var Iut=ei(),Rut=s5(),Dut=N1();rue.exports=function(t,r){function n(i,a){return Iut.coerce(t,r,Dut,i,a)}Rut(t,r,n)}});var oue=Te((Iar,aue)=>{"use strict";var nue=ei(),Fut=i3(),But=s5();aue.exports=function(t,r,n,i){function a(s,u){return nue.coerce(t,r,Fut,s,u)}var o=nue.extendFlat({},i.hoverlabel);r.hovertemplate&&(o.namelength=-1),But(t,r,a,o)}});var JN=Te((Rar,sue)=>{"use strict";var Out=ei(),qut=N1();sue.exports=function(t,r){function n(i,a){return r[i]!==void 0?r[i]:Out.coerce(t,r,qut,i,a)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var fue=Te((Dar,uue)=>{"use strict";var lue=ei(),Nut=N1(),Uut=JN(),Vut=s5();uue.exports=function(t,r){function n(f,c){return lue.coerce(t,r,Nut,f,c)}var i=Uut(t,r);i&&(n("hoverdistance"),n("spikedistance"));var a=n("dragmode");a==="select"&&n("selectdirection");var o=r._has("mapbox"),s=r._has("map"),u=r._has("geo"),l=r._basePlotModules.length;r.dragmode==="zoom"&&((o||s||u)&&l===1||(o||s)&&u&&l===2)&&(r.dragmode="pan"),Vut(t,r,n),lue.coerceFont(n,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var due=Te((Far,hue)=>{"use strict";var $N=ei(),cue=$l();hue.exports=function(t){var r=t.calcdata,n=t._fullLayout;function i(l){return function(f){return $N.coerceHoverinfo({hoverinfo:f},{_module:l._module},n)}}for(var a=0;a{"use strict";var Hut=$l(),Wut=KN().hover;pue.exports=function(t,r,n){var i=Hut.getComponentMethod("annotations","onClick")(t,t._hoverdata);n!==void 0&&Wut(t,r,n,!0);function a(){t.emit("plotly_click",{points:t._hoverdata,event:r})}t._hoverdata&&r&&r.target&&(i&&i.then?i.then(a):a(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var jc=Te((Oar,gue)=>{"use strict";var jut=Jl(),VP=ei(),Xut=gp(),l5=rv(),mue=N1(),yue=KN();gue.exports={moduleType:"component",name:"fx",constants:IM(),schema:{layout:mue},attributes:i3(),layoutAttributes:mue,supplyLayoutGlobalDefaults:iue(),supplyDefaults:oue(),supplyLayoutDefaults:fue(),calc:due(),getDistanceFunction:l5.getDistanceFunction,getClosest:l5.getClosest,inbox:l5.inbox,quadrature:l5.quadrature,appendArrayPointValue:l5.appendArrayPointValue,castHoverOption:Yut,castHoverinfo:Kut,hover:yue.hover,unhover:Xut.unhover,loneHover:yue.loneHover,loneUnhover:Zut,click:vue()};function Zut(e){var t=VP.isD3Selection(e)?e:jut.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function Yut(e,t,r){return VP.castOption(e,t,"hoverlabel."+r)}function Kut(e,t,r){function n(i){return VP.coerceHoverinfo({hoverinfo:i},{_module:e._module},t)}return VP.castOption(e,r,"hoverinfo",n)}});var Sm=Te(Mg=>{"use strict";Mg.selectMode=function(e){return e==="lasso"||e==="select"};Mg.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Mg.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Mg.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Mg.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Mg.selectingOrDrawing=function(e){return Mg.freeMode(e)||Mg.rectMode(e)}});var u5=Te((Nar,_ue)=>{"use strict";_ue.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var GP=Te((Uar,xue)=>{"use strict";xue.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var WP=Te((Var,bue)=>{"use strict";var HP=32;bue.exports={CIRCLE_SIDES:HP,i000:0,i090:HP/4,i180:HP/2,i270:HP/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var jP=Te((Gar,Aue)=>{"use strict";var Jut=ei().strTranslate;function wue(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function $ut(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function Qut(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return wue(e,r[t])}}function eft(e){return Jut(e.xaxis._offset,e.yaxis._offset)}Aue.exports={p2r:wue,r2p:$ut,axValue:Qut,getTransform:eft}});var f_=Te(Eg=>{"use strict";var tft=YM(),Mue=WP(),V3=Mue.CIRCLE_SIDES,QN=Mue.SQRT2,Eue=jP(),Tue=Eue.p2r,Sue=Eue.r2p,rft=[0,3,4,5,6,1,2],ift=[0,3,4,1,2];Eg.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",n=0;n0&&u{"use strict";var zue=Sm(),nft=zue.drawMode,aft=zue.openMode,G3=WP(),kue=G3.i000,Cue=G3.i090,Lue=G3.i180,Pue=G3.i270,oft=G3.cos45,sft=G3.sin45,Iue=jP(),ZP=Iue.p2r,c_=Iue.r2p,lft=e_(),uft=lft.clearOutline,YP=f_(),fft=YP.readPaths,cft=YP.writePaths,hft=YP.ellipseOver,dft=YP.fixDatesForPaths;function pft(e,t){if(e.length){var r=e[0][0];if(r){var n=t.gd,i=t.isActiveShape,a=t.dragmode,o=(n.layout||{}).shapes||[];if(!nft(a)&&i!==void 0){var s=n._fullLayout._activeShapeIndex;if(s{"use strict";var vft=Sm(),mft=vft.selectMode,yft=e_(),gft=yft.clearOutline,e7=f_(),_ft=e7.readPaths,xft=e7.writePaths,bft=e7.fixDatesForPaths;Fue.exports=function(t,r){if(t.length){var n=t[0][0];if(n){var i=n.getAttribute("d"),a=r.gd,o=a._fullLayout.newselection,s=r.plotinfo,u=s.xaxis,l=s.yaxis,f=r.isActiveSelection,c=r.dragmode,h=(a.layout||{}).selections||[];if(!mft(c)&&f!==void 0){var d=a._fullLayout._activeSelectionIndex;if(d{"use strict";Bue.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var h_=Te(Fd=>{"use strict";var Fb=c5(),Oue=ei(),JP=wu();Fd.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};Fd.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};Fd.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};Fd.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};Fd.extractPathCoords=function(e,t,r){var n=[],i=e.match(Fb.segmentRE);return i.forEach(function(a){var o=t[a.charAt(0)].drawn;if(o!==void 0){var s=a.substr(1).match(Fb.paramRE);if(!(!s||s.lengthd&&(x="X"),x});return l>d&&(p=p.replace(/[\s,]*X.*/,""),Oue.log("Ignoring extra params in segment "+u)),f+p})}function h5(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var i7=Te((Yar,Vue)=>{"use strict";var Aft=ei(),H3=wu(),que=Zf(),Nue=Mu(),Tft=f_().readPaths,r7=h_(),Sft=r7.getPathString,Uue=AL(),Mft=Qh().FROM_TL;Vue.exports=function(t,r,n,i){if(i.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var a;if(n.label.texttemplate){var o={};if(n.type!=="path"){var s=H3.getFromId(t,n.xref),u=H3.getFromId(t,n.yref);for(var l in Uue){var f=Uue[l](n,s,u);f!==void 0&&(o[l]=f)}}a=Aft.texttemplateStringForShapes(n.label.texttemplate,{},t._fullLayout._d3locale,o)}else a=n.label.text;var c={"data-index":r},h=n.label.font,d={"data-notex":1},p=i.append("g").attr(c).classed("shape-label",!0),x=p.append("text").attr(d).classed("shape-label-text",!0).text(a),b,v,k,E;if(n.path){var T=Sft(t,n),L=Tft(T,t);b=1/0,k=1/0,v=-1/0,E=-1/0;for(var _=0;_=e?i=t-n:i=n-t,-180/Math.PI*Math.atan2(i,a)}function kft(e,t,r,n,i,a,o){var s=i.label.textposition,u=i.label.textangle,l=i.label.padding,f=i.type,c=Math.PI/180*a,h=Math.sin(c),d=Math.cos(c),p=i.label.xanchor,x=i.label.yanchor,b,v,k,E;if(f==="line"){s==="start"?(b=e,v=t):s==="end"?(b=r,v=n):(b=(e+r)/2,v=(t+n)/2),p==="auto"&&(s==="start"?u==="auto"?r>e?p="left":re?p="right":re?p="right":re?p="left":r{"use strict";var Cft=ei(),Lft=Cft.strTranslate,Gue=gp(),jue=Sm(),Pft=jue.drawMode,Xue=jue.selectMode,Zue=$l(),Hue=jl(),QP=WP(),zft=QP.i000,Ift=QP.i090,Rft=QP.i180,Dft=QP.i270,Fft=e_(),Yue=Fft.clearOutlineControllers,a7=f_(),$P=a7.pointsOnRectangle,n7=a7.pointsOnEllipse,Bft=a7.writePaths,Oft=KP().newShapes,qft=KP().createShapeObj,Nft=t7(),Uft=i7();Kue.exports=function e(t,r,n,i){i||(i=0);var a=n.gd;function o(){e(t,r,n,i++),(n7(t[0])||n.hasText)&&s({redrawing:!0})}function s(H){var N={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,N=Oft(r,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,N=Nft(r,n),a._fullLayout._reselect=!0),Object.keys(N).length&&Zue.call((H||{}).redrawing?"relayout":"_guiRelayout",a,N)}var u=a._fullLayout,l=u._zoomlayer,f=n.dragmode,c=Pft(f),h=Xue(f);(c||h)&&(a._fullLayout._outlining=!0),Yue(a),r.attr("d",Bft(t));var d,p,x,b,v;if(!i&&(n.isActiveShape||n.isActiveSelection)){v=Vft([],t);var k=l.append("g").attr("class","outline-controllers");P(k),j()}if(c&&n.hasText){var E=l.select(".label-temp"),T=qft(r,n,n.dragmode);Uft(a,"label-temp",T,E)}function L(H){x=+H.srcElement.getAttribute("data-i"),b=+H.srcElement.getAttribute("data-j"),d[x][b].moveFn=_}function _(H,N){if(t.length){var W=v[x][b][1],re=v[x][b][2],ae=t[x],be=ae.length;if($P(ae)){var Pe=H,Ce=N;if(n.isActiveSelection){var de=Wue(ae,b);de[1]===ae[b][1]?Ce=0:Pe=0}for(var te=0;te1&&!(H.length===2&&H[1][0]==="Z")&&(b===0&&(H[0][0]="M"),t[x]=H,o(),s())}}function m(H,N){if(H===2){x=+N.srcElement.getAttribute("data-i"),b=+N.srcElement.getAttribute("data-j");var W=t[x];!$P(W)&&!n7(W)&&S()}}function P(H){d=[];for(var N=0;N{"use strict";var Hft=Jl(),rfe=$l(),Jue=ei(),W3=wu(),Wft=f_().readPaths,jft=ez(),rz=i7(),ife=e_().clearOutlineControllers,o7=jl(),l7=Mu(),Xft=Pf().arrayEditor,$ue=gp(),Que=Am(),Bb=c5(),Sv=h_(),s7=Sv.getPathString;ofe.exports={draw:u7,drawOne:nfe,eraseActiveShape:Kft,drawLabel:rz};function u7(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var n=t._plots[r].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var i=0;io&&At>s&&!nt.shiftKey?$ue.getCursor(St/kt,1-Bt/At):"move";Que(t,Zt),ke=Zt.split("-")[0]}}function Fe(nt){tz(e)||(u&&(v=ae(r.xanchor)),l&&(k=be(r.yanchor)),r.type==="path"?A=r.path:(d=u?r.x0:ae(r.x0),p=l?r.y0:be(r.y0),x=u?r.x1:ae(r.x1),b=l?r.y1:be(r.y1)),db?(E=p,C="y0",T=b,S="y1"):(E=b,C="y1",T=p,S="y0"),Ue(nt),it(i,r),Nt(t,r,e),te.moveFn=ke==="move"?ce:Ke,te.altKey=nt.altKey)}function me(){tz(e)||(Que(t),bt(i),afe(t,e,r),rfe.call("_guiRelayout",e,a.getUpdateObj()))}function Ne(){tz(e)||bt(i)}function ce(nt,Ye){if(r.type==="path"){var kt=function(Bt){return Bt},At=kt,St=kt;u?h("xanchor",r.xanchor=Pe(v+nt)):(At=function(Zt){return Pe(ae(Zt)+nt)},F&&F.type==="date"&&(At=Sv.encodeDate(At))),l?h("yanchor",r.yanchor=Ce(k+Ye)):(St=function(Zt){return Ce(be(Zt)+Ye)},G&&G.type==="date"&&(St=Sv.encodeDate(St))),h("path",r.path=efe(A,At,St))}else u?h("xanchor",r.xanchor=Pe(v+nt)):(h("x0",r.x0=Pe(d+nt)),h("x1",r.x1=Pe(x+nt))),l?h("yanchor",r.yanchor=Ce(k+Ye)):(h("y0",r.y0=Ce(p+Ye)),h("y1",r.y1=Ce(b+Ye)));t.attr("d",s7(e,r)),it(i,r),rz(e,n,r,B)}function Ke(nt,Ye){if(c){var kt=function(lr){return lr},At=kt,St=kt;u?h("xanchor",r.xanchor=Pe(v+nt)):(At=function(mr){return Pe(ae(mr)+nt)},F&&F.type==="date"&&(At=Sv.encodeDate(At))),l?h("yanchor",r.yanchor=Ce(k+Ye)):(St=function(mr){return Ce(be(mr)+Ye)},G&&G.type==="date"&&(St=Sv.encodeDate(St))),h("path",r.path=efe(A,At,St))}else if(f){if(ke==="resize-over-start-point"){var Bt=d+nt,Zt=l?p-Ye:p+Ye;h("x0",r.x0=u?Bt:Pe(Bt)),h("y0",r.y0=l?Zt:Ce(Zt))}else if(ke==="resize-over-end-point"){var Et=x+nt,Ae=l?b-Ye:b+Ye;h("x1",r.x1=u?Et:Pe(Et)),h("y1",r.y1=l?Ae:Ce(Ae))}}else{var ot=function(lr){return ke.indexOf(lr)!==-1},dt=ot("n"),pt=ot("s"),at=ot("w"),Xe=ot("e"),rt=dt?E+Ye:E,Qe=pt?T+Ye:T,zt=at?L+nt:L,Yt=Xe?_+nt:_;l&&(dt&&(rt=E-Ye),pt&&(Qe=T-Ye)),(!l&&Qe-rt>s||l&&rt-Qe>s)&&(h(C,r[C]=l?rt:Ce(rt)),h(S,r[S]=l?Qe:Ce(Qe))),Yt-zt>o&&(h(m,r[m]=u?zt:Pe(zt)),h(P,r[P]=u?Yt:Pe(Yt)))}t.attr("d",s7(e,r)),it(i,r),rz(e,n,r,B)}function it(nt,Ye){(u||l)&&kt();function kt(){var At=Ye.type!=="path",St=nt.selectAll(".visual-cue").data([0]),Bt=1;St.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Bt}).classed("visual-cue",!0);var Zt=ae(u?Ye.xanchor:Jue.midRange(At?[Ye.x0,Ye.x1]:Sv.extractPathCoords(Ye.path,Bb.paramIsX))),Et=be(l?Ye.yanchor:Jue.midRange(At?[Ye.y0,Ye.y1]:Sv.extractPathCoords(Ye.path,Bb.paramIsY)));if(Zt=Sv.roundPositionForSharpStrokeRendering(Zt,Bt),Et=Sv.roundPositionForSharpStrokeRendering(Et,Bt),u&&l){var Ae="M"+(Zt-1-Bt)+","+(Et-1-Bt)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";St.attr("d",Ae)}else if(u){var ot="M"+(Zt-1-Bt)+","+(Et-9-Bt)+"v18 h2 v-18 Z";St.attr("d",ot)}else{var dt="M"+(Zt-9-Bt)+","+(Et-1-Bt)+"h18 v2 h-18 Z";St.attr("d",dt)}}}function bt(nt){nt.selectAll(".visual-cue").remove()}function Nt(nt,Ye,kt){var At=Ye.xref,St=Ye.yref,Bt=W3.getFromId(kt,At),Zt=W3.getFromId(kt,St),Et="";At!=="paper"&&!Bt.autorange&&(Et+=At),St!=="paper"&&!Zt.autorange&&(Et+=St),l7.setClipUrl(nt,Et?"clip"+kt._fullLayout._uid+Et:null,kt)}}function efe(e,t,r){return e.replace(Bb.segmentRE,function(n){var i=0,a=n.charAt(0),o=Bb.paramIsX[a],s=Bb.paramIsY[a],u=Bb.numParams[a],l=n.substr(1).replace(Bb.paramRE,function(f){return i>=u||(o[i]?f=t(f):s[i]&&(f=r(f)),i++),f});return a+l})}function Yft(e,t){if(iz(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){tfe(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=tfe,u7(e)}}}function tfe(e){if(iz(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(ife(e),delete e._fullLayout._activeShapeIndex,u7(e))}}function Kft(e){if(iz(e)){ife(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var S0=$l(),sfe=Cc(),lfe=$c(),Ff=GP(),Jft=nz().eraseActiveShape,az=ei(),Sf=az._,Bf=vfe.exports={};Bf.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?Sf(e,"Download plot as a PNG"):Sf(e,"Download plot")},icon:Ff.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};az.notifier(Sf(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in t&&(r[n]=t[n])}),S0.call("downloadImage",e,r).then(function(n){az.notifier(Sf(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){az.notifier(Sf(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Bf.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Sf(e,"Edit in Chart Studio")},icon:Ff.disk,click:function(e){sfe.sendDataToCloud(e)}};Bf.editInChartStudio={name:"editInChartStudio",title:function(e){return Sf(e,"Edit in Chart Studio")},icon:Ff.pencil,click:function(e){sfe.sendDataToCloud(e)}};Bf.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Sf(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ff.zoombox,click:Op};Bf.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Sf(e,"Pan")},attr:"dragmode",val:"pan",icon:Ff.pan,click:Op};Bf.select2d={name:"select2d",_cat:"select",title:function(e){return Sf(e,"Box Select")},attr:"dragmode",val:"select",icon:Ff.selectbox,click:Op};Bf.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Sf(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ff.lasso,click:Op};Bf.drawclosedpath={name:"drawclosedpath",title:function(e){return Sf(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ff.drawclosedpath,click:Op};Bf.drawopenpath={name:"drawopenpath",title:function(e){return Sf(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ff.drawopenpath,click:Op};Bf.drawline={name:"drawline",title:function(e){return Sf(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ff.drawline,click:Op};Bf.drawrect={name:"drawrect",title:function(e){return Sf(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ff.drawrect,click:Op};Bf.drawcircle={name:"drawcircle",title:function(e){return Sf(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ff.drawcircle,click:Op};Bf.eraseshape={name:"eraseshape",title:function(e){return Sf(e,"Erase active shape")},icon:Ff.eraseshape,click:Jft};Bf.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Sf(e,"Zoom in")},attr:"zoom",val:"in",icon:Ff.zoom_plus,click:Op};Bf.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Sf(e,"Zoom out")},attr:"zoom",val:"out",icon:Ff.zoom_minus,click:Op};Bf.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Sf(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ff.autoscale,click:Op};Bf.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Sf(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ff.home,click:Op};Bf.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Sf(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Ff.tooltip_basic,gravity:"ne",click:Op};Bf.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Sf(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Ff.tooltip_compare,gravity:"ne",click:Op};function Op(e,t){var r=t.currentTarget,n=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,a=e._fullLayout,o={},s=lfe.list(e,null,!0),u=a._cartesianSpikesEnabled,l,f;if(n==="zoom"){var c=i==="in"?.5:2,h=(1+c)/2,d=(1-c)/2,p;for(f=0;f{"use strict";var mfe=h7(),ect=Object.keys(mfe),yfe=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],gfe=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(yfe),X3=[],tct=function(e){if(gfe.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();X3.indexOf(t)===-1&&X3.push(t),X3.indexOf(r)===-1&&X3.push(r)}};ect.forEach(function(e){tct(mfe[e])});X3.sort();_fe.exports={DRAW_MODES:yfe,backButtons:gfe,foreButtons:X3}});var p7=Te((tor,xfe)=>{"use strict";var eor=d7();xfe.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var wfe=Te((ror,bfe)=>{"use strict";var rct=ei(),d5=jl(),ict=Pf(),nct=p7();bfe.exports=function(t,r){var n=t.modebar||{},i=ict.newContainer(r,"modebar");function a(s,u){return rct.coerce(n,i,nct,s,u)}a("orientation"),a("bgcolor",d5.addOpacity(r.paper_bgcolor,.5));var o=d5.contrast(d5.rgb(r.modebar.bgcolor));a("color",d5.addOpacity(o,.3)),a("activecolor",d5.addOpacity(o,.7)),a("uirevision",r.uirevision),a("add"),a("remove")}});var Mfe=Te((ior,Sfe)=>{"use strict";var v7=Jl(),act=ku(),sz=ei(),Afe=GP(),oct=rL().version,sct=new DOMParser;function Tfe(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Ay=Tfe.prototype;Ay.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i="modebar-"+n._uid;this.element.setAttribute("id",i),this._uid=i,this.element.className="modebar",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var a=n.modebar,o="#"+i+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=a.bgcolor});var s=!this.hasButtons(t),u=this.hasLogo!==r.displaylogo,l=this.locale!==r.locale;if(this.locale=r.locale,(s||u||l)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var f=this.getLogo();r.watermark&&(f.className=f.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),sz.setStyleOnHover("#"+i+" .modebar-btn",".active",".icon path","fill: "+a.activecolor,"fill: "+a.color,this.element)};Ay.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var n=t.createGroup();r.forEach(function(i){var a=i.name;if(!a)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(a)!==-1)throw new Error("button name '"+a+"' is taken");t.buttonsNames.push(a);var o=t.createButton(i);t.buttonElements.push(o),n.appendChild(o)}),t.element.appendChild(n)})};Ay.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};Ay.createButton=function(e){var t=this,r=document.createElement("a");r.setAttribute("rel","tooltip"),r.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&r.setAttribute("data-title",n),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var i=e.val;i!==void 0&&(typeof i=="function"&&(i=i(this.graphInfo)),r.setAttribute("data-val",i));var a=e.click;if(typeof a!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(s){e.click(t.graphInfo,s),t.updateActiveButton(s.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&v7.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||Afe.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};Ay.createIcon=function(e){var t=act(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(r,"svg"),n.setAttribute("viewBox",[0,0,e.width,t].join(" ")),n.setAttribute("class","icon");var i=document.createElementNS(r,"path");i.setAttribute("d",e.path),e.transform?i.setAttribute("transform",e.transform):e.ascent!==void 0&&i.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(i)}if(e.svg){var a=sct.parseFromString(e.svg,"application/xml");n=a.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};Ay.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var i=n.getAttribute("data-val")||!0,a=n.getAttribute("data-attr"),o=n.getAttribute("data-toggle")==="true",s=v7.select(n),u=function(c,h){var d=t.modebar,p=c.querySelector(".icon path");p&&(h||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(a===r){var l=!s.classed("active");s.classed("active",l),u(n,l)}}else{var f=a===null?a:sz.nestedProperty(t,a).get();s.classed("active",f===i),u(n,f===i)}})};Ay.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var fct=$c(),Efe=lc(),m7=$l(),cct=rv().isUnifiedHover,hct=Mfe(),lz=h7(),dct=d7().DRAW_MODES,pct=ei().extendDeep;kfe.exports=function(t){var r=t._fullLayout,n=t._context,i=r._modeBar;if(!n.displayModeBar&&!n.watermark){i&&(i.destroy(),delete r._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var a=n.modeBarButtons,o;Array.isArray(a)&&a.length?o=xct(a):!n.displayModeBar&&n.watermark?o=[]:o=vct(t),i?i.update(t,o):r._modeBar=hct(t,o)};function vct(e){var t=e._fullLayout,r=e._fullData,n=e._context;function i(N,W){if(typeof W=="string"){if(W.toLowerCase()===N.toLowerCase())return!0}else{var re=W.name,ae=W._cat||W.name;if(re===N||ae===N.toLowerCase())return!0}return!1}var a=t.modebar.add;typeof a=="string"&&(a=[a]);var o=t.modebar.remove;typeof o=="string"&&(o=[o]);var s=n.modeBarButtonsToAdd.concat(a.filter(function(N){for(var W=0;W1?(P=["toggleHover"],A=["resetViews"]):c?(m=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],A=["resetGeo"]):f?(P=["hoverClosest3d"],A=["resetCameraDefault3d","resetCameraLastSave3d"]):x?(m=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],A=["resetViewMapbox"]):b?(m=["zoomInMap","zoomOutMap"],P=["toggleHover"],A=["resetViewMap"]):h?P=["hoverClosestPie"]:E?(P=["hoverClosestCartesian","hoverCompareCartesian"],A=["resetViewSankey"]):P=["toggleHover"],l&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(gct(r)||L)&&(P=[]),l&&!T&&(m=["zoomIn2d","zoomOut2d","autoScale2d"],A[0]!=="resetViews"&&(A=["resetScale2d"])),f?B=["zoom3d","pan3d","orbitRotation","tableRotation"]:l&&!T||p?B=["zoom2d","pan2d"]:x||b||c?B=["pan2d"]:v&&(B=["zoom2d"]),yct(r)&&B.push("select2d","lasso2d");var F=[],U=function(N){F.indexOf(N)===-1&&P.indexOf(N)!==-1&&F.push(N)};if(Array.isArray(s)){for(var G=[],j=0;j{"use strict";Lfe.exports={moduleType:"component",name:"modebar",layoutAttributes:p7(),supplyLayoutDefaults:wfe(),manage:Cfe()}});var g7=Te((oor,Pfe)=>{"use strict";var bct=Qh().FROM_BL;Pfe.exports=function(t,r,n){n===void 0&&(n=bct[t.constraintoward||"center"]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*n;t.range=t._input.range=[t.l2r(a+(i[0]-a)*r),t.l2r(a+(i[1]-a)*r)],t.setScale()}});var qb=Te(p5=>{"use strict";var Ob=ei(),_7=wm(),Mm=$c().id2name,wct=Dd(),zfe=g7(),Act=gy(),Tct=nf().ALMOST_EQUAL,Sct=Qh().FROM_BL;p5.handleDefaults=function(e,t,r){var n=r.axIds,i=r.axHasImage,a=t._axisConstraintGroups=[],o=t._axisMatchGroups=[],s,u,l,f,c,h,d,p;for(s=0;sa?r.substr(a):n.substr(i))+o}function Ect(e,t){for(var r=t._size,n=r.h/r.w,i={},a=Object.keys(e),o=0;oTct*p&&!k)){for(a=0;aB&&reP&&(P=re);var be=(P-m)/(2*A);c/=be,m=u.l2r(m),P=u.l2r(P),u.range=u._input.range=_{"use strict";var fz=Jl(),qp=$l(),Jv=Cc(),M0=ei(),w7=Zf(),A7=u5(),v5=jl(),Z3=Mu(),Ffe=Mb(),Ufe=y7(),m5=wu(),kg=Qh(),Vfe=qb(),kct=Vfe.enforce,Cct=Vfe.clean,Bfe=wm().doAutoRange,Gfe="start",Lct="middle",Hfe="end",Pct=dd().zindexSeparator;md.layoutStyles=function(e){return M0.syncOrAsync([Jv.doAutoMargin,Ict],e)};function zct(e,t,r){for(var n=0;n=e[1]||i[1]<=e[0])&&a[0]t[0])return!0}return!1}function Ict(e){var t=e._fullLayout,r=t._size,n=r.p,i=m5.list(e,"",!0),a,o,s,u,l,f;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(Z3.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),md.drawMainTitle(e),Ufe.manage(e),!t._has("cartesian"))return Jv.previousPromises(e);function c(Fe,me,Ne){var ce=Fe._lw/2;if(Fe._id.charAt(0)==="x"){if(me){if(Ne==="top")return me._offset-n-ce}else return r.t+r.h*(1-(Fe.position||0))+ce%1;return me._offset+me._length+n+ce}if(me){if(Ne==="right")return me._offset+me._length+n+ce}else return r.l+r.w*(Fe.position||0)+ce%1;return me._offset-n-ce}for(a=0;a0){Bct(e,a,l,u),s.attr({x:o,y:a,"text-anchor":n,dy:Nfe(t.yanchor)}).call(w7.positionText,o,a);var f=(t.text.match(w7.BR_TAG_ALL)||[]).length;if(f){var c=kg.LINE_SPACING*f+kg.MID_SHIFT;t.y===0&&(c=-c),s.selectAll(".line").each(function(){var b=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",b)})}var h=fz.selectAll(".gtitle-subtitle");if(h.node()){var d=s.node().getBBox(),p=d.y+d.height,x=p+Ffe.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y:x,"text-anchor":n,dy:Nfe(t.yanchor)}).call(w7.positionText,o,x)}}}};function Rct(e,t,r,n,i){var a=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=M0.isTopAnchor(t)?n:n-i,s=r==="b"?a-o:o;return M0.isTopAnchor(t)&&r==="t"||M0.isBottomAnchor(t)&&r==="b"?!1:s.5?"t":"b",o=e._fullLayout.margin[a],s=0;return t.yref==="paper"?s=r+t.pad.t+t.pad.b:t.yref==="container"&&(s=Dct(a,n,i,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function Bct(e,t,r,n){var i="title.automargin",a=e._fullLayout.title,o=a.y>.5?"t":"b",s={x:a.x,y:a.y,t:0,b:0},u={};a.yref==="paper"&&Rct(e,a,o,t,n)?s[o]=r:a.yref==="container"&&(u[o]=r,e._fullLayout._reservedMargin[i]=u),Jv.allowAutoMargin(e,i),Jv.autoMargin(e,i,s)}function Oct(e,t){var r=e.title,n=e._size,i=0;switch(t===Gfe?i=r.pad.l:t===Hfe&&(i=-r.pad.r),r.xref){case"paper":return n.l+n.w*r.x+i;case"container":default:return e.width*r.x+i}}function qct(e,t){var r=e.title,n=e._size,i=0;if(t==="0em"||!t?i=-r.pad.b:t===kg.CAP_SHIFT+"em"&&(i=r.pad.t),r.y==="auto")return n.t/2;switch(r.yref){case"paper":return n.t+n.h-n.h*r.y+i;case"container":default:return e.height-e.height*r.y+i}}function Nfe(e){return e==="top"?kg.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":kg.MID_SHIFT+"em"}function Nct(e){var t=e.title,r=Lct;return M0.isRightAnchor(t)?r=Hfe:M0.isLeftAnchor(t)&&(r=Gfe),r}function Uct(e){var t=e.title,r="0em";return M0.isTopAnchor(t)?r=kg.CAP_SHIFT+"em":M0.isMiddleAnchor(t)&&(r=kg.MID_SHIFT+"em"),r}md.doTraceStyle=function(e){var t=e.calcdata,r=[],n;for(n=0;n{"use strict";var Vct=f_().readPaths,Gct=ez(),Wfe=e_().clearOutlineControllers,T7=jl(),jfe=Mu(),Hct=Pf().arrayEditor,Xfe=h_(),Wct=Xfe.getPathString;Yfe.exports={draw:cz,drawOne:Zfe,activateLastSelection:Zct};function cz(e){var t=e._fullLayout;Wfe(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var n=t._plots[r].selectionLayer;n&&n.selectAll("path").remove()}for(var i=0;i=0;b--){var v=o.append("path").attr(u).style("opacity",b?.1:l).call(T7.stroke,c).call(T7.fill,f).call(jfe.dashLine,b?"solid":d,b?4+h:h);if(jct(v,e,n),p){var k=Hct(e.layout,"selections",n);v.style({cursor:"move"});var E={element:v.node(),plotinfo:i,gd:e,editHelpers:k,isActiveSelection:!0},T=Vct(s,e);Gct(T,v,E)}else v.style("pointer-events",b?"all":"none");x[b]=v}var L=x[0],_=x[1];_.node().addEventListener("click",function(){return Xct(e,L)})}}function jct(e,t,r){var n=r.xref+r.yref;jfe.setClipUrl(e,"clip"+t._fullLayout._uid+n,t)}function Xct(e,t){if(hz(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){S7(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=S7,cz(e)}}}function Zct(e){if(hz(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=S7,cz(e)}}function S7(e){if(hz(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(Wfe(e),delete e._fullLayout._activeSelectionIndex,cz(e))}}});var Jfe=Te((cor,Kfe)=>{function Yct(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,o){return n("temp_status",{seg:i,above:a,below:o})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,o){return n("status",{seg:i,above:a,below:o})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}Kfe.exports=Yct});var Qfe=Te((hor,$fe)=>{function Kct(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],o=n[1],s=i[0],u=i[1],l=r[0],f=r[1];return(s-a)*(f-o)-(u-o)*(l-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],s=r[0]-n[0],u=i[1]-n[1],l=s*o+a*u;if(l-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])e!=s-a>e&&(o-f)*(a-c)/(s-c)+f-i>e&&(u=!u),o=f,s=c}return u}};return t}$fe.exports=Kct});var tce=Te((dor,ece)=>{var Jct={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,i=e.root.next;i!==null;){if(r(i)){t.prev=i.prev,t.next=i,i.prev.next=t,i.prev=t;return}n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(i){return i.prev=r,i.next=n,r.next=i,n!==null&&(n.prev=i),i}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};ece.exports=Jct});var ice=Te((por,rce)=>{var g5=tce();function $ct(e,t,r){function n(p,x){return{id:r?r.segmentId():-1,start:p,end:x,myFill:{above:null,below:null},otherFill:null}}function i(p,x,b){return{id:r?r.segmentId():-1,start:p,end:x,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=g5.create();function o(p,x,b,v,k,E){var T=t.pointsCompare(x,k);return T!==0?T:t.pointsSame(b,E)?0:p!==v?p?1:-1:t.pointAboveOrOnLine(b,v?k:E,v?E:k)?1:-1}function s(p,x){a.insertBefore(p,function(b){var v=o(p.isStart,p.pt,x,b.isStart,b.pt,b.other.pt);return v<0})}function u(p,x){var b=g5.node({isStart:!0,pt:p.start,seg:p,primary:x,other:null,status:null});return s(b,p.end),b}function l(p,x,b){var v=g5.node({isStart:!1,pt:x.end,seg:x,primary:b,other:p,status:null});p.other=v,s(v,p.pt)}function f(p,x){var b=u(p,x);return l(b,p,x),b}function c(p,x){r&&r.segmentChop(p.seg,x),p.other.remove(),p.seg.end=x,p.other.pt=x,s(p.other,p.pt)}function h(p,x){var b=i(x,p.seg.end,p.seg);return c(p,x),f(b,p.primary)}function d(p,x){var b=g5.create();function v(G,j){var H=G.seg.start,N=G.seg.end,W=j.seg.start,re=j.seg.end;return t.pointsCollinear(H,W,re)?t.pointsCollinear(N,W,re)||t.pointAboveOrOnLine(N,W,re)?1:-1:t.pointAboveOrOnLine(H,W,re)?1:-1}function k(G){return b.findTransition(function(j){var H=v(G,j.ev);return H>0})}function E(G,j){var H=G.seg,N=j.seg,W=H.start,re=H.end,ae=N.start,be=N.end;r&&r.checkIntersection(H,N);var Pe=t.linesIntersect(W,re,ae,be);if(Pe===!1){if(!t.pointsCollinear(W,re,ae)||t.pointsSame(W,be)||t.pointsSame(re,ae))return!1;var Ce=t.pointsSame(W,ae),de=t.pointsSame(re,be);if(Ce&&de)return j;var te=!Ce&&t.pointBetween(W,ae,be),ke=!de&&t.pointBetween(re,ae,be);if(Ce)return ke?h(j,re):h(G,be),j;te&&(de||(ke?h(j,re):h(G,be)),h(j,W))}else Pe.alongA===0&&(Pe.alongB===-1?h(G,ae):Pe.alongB===0?h(G,Pe.pt):Pe.alongB===1&&h(G,be)),Pe.alongB===0&&(Pe.alongA===-1?h(j,W):Pe.alongA===0?h(j,Pe.pt):Pe.alongA===1&&h(j,re));return!1}for(var T=[];!a.isEmpty();){var L=a.getHead();if(r&&r.vert(L.pt[0]),L.isStart){let G=function(){if(C){var j=E(L,C);if(j)return j}return S?E(L,S):!1};var U=G;r&&r.segmentNew(L.seg,L.primary);var _=k(L),C=_.before?_.before.ev:null,S=_.after?_.after.ev:null;r&&r.tempStatus(L.seg,C?C.seg:!1,S?S.seg:!1);var m=G();if(m){if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,P&&(m.seg.myFill.above=!m.seg.myFill.above)}else m.seg.otherFill=L.seg.myFill;r&&r.segmentUpdate(m.seg),L.other.remove(),L.remove()}if(a.getHead()!==L){r&&r.rewind(L.seg);continue}if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,S?L.seg.myFill.below=S.seg.myFill.above:L.seg.myFill.below=p,P?L.seg.myFill.above=!L.seg.myFill.below:L.seg.myFill.above=L.seg.myFill.below}else if(L.seg.otherFill===null){var A;S?L.primary===S.primary?A=S.seg.otherFill.above:A=S.seg.myFill.above:A=L.primary?x:p,L.seg.otherFill={above:A,below:A}}r&&r.status(L.seg,C?C.seg:!1,S?S.seg:!1),L.other.status=_.insert(g5.node({ev:L}))}else{var B=L.status;if(B===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(B.prev)&&b.exists(B.next)&&E(B.prev.ev,B.next.ev),r&&r.statusRemove(B.ev.seg),B.remove(),!L.primary){var F=L.seg.myFill;L.seg.myFill=L.seg.otherFill,L.seg.otherFill=F}T.push(L.seg)}a.getHead().remove()}return r&&r.done(),T}return e?{addRegion:function(p){for(var x,b=p[p.length-1],v=0;v{function Qct(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,s=a.end;if(t.pointsSame(o,s)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var u={index:0,matches_head:!1,matches_pt1:!1},l={index:0,matches_head:!1,matches_pt1:!1},f=u;function c(U,G,j){return f.index=U,f.matches_head=G,f.matches_pt1=j,f===u?(f=l,!1):(f=null,!0)}for(var h=0;h{function _5(e,t,r){var n=[];return e.forEach(function(i){var a=(i.myFill.above?8:0)+(i.myFill.below?4:0)+(i.otherFill&&i.otherFill.above?2:0)+(i.otherFill&&i.otherFill.below?1:0);t[a]!==0&&n.push({id:r?r.segmentId():-1,start:i.start,end:i.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(n),n}var eht={union:function(e,t){return _5(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return _5(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return _5(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return _5(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return _5(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};oce.exports=eht});var uce=Te((yor,lce)=>{var tht={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(l){var f=l.slice(0,l.length-1);return e.segments({inverted:!1,regions:[f]})}for(var s=o(a[0]),u=1;u{var rht=Jfe(),iht=Qfe(),fce=ice(),nht=ace(),x5=sce(),cce=uce(),E0=!1,b5=iht(),Mv;Mv={buildLog:function(e){return e===!0?E0=rht():e===!1&&(E0=!1),E0===!1?!1:E0.list},epsilon:function(e){return b5.epsilon(e)},segments:function(e){var t=fce(!0,b5,E0);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=fce(!1,b5,E0);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:x5.union(e.combined,E0),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:x5.intersect(e.combined,E0),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:x5.difference(e.combined,E0),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:x5.differenceRev(e.combined,E0),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:x5.xor(e.combined,E0),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:nht(e.segments,b5,E0),inverted:e.inverted}},polygonFromGeoJSON:function(e){return cce.toPolygon(Mv,e)},polygonToGeoJSON:function(e){return cce.fromPolygon(Mv,b5,e)},union:function(e,t){return w5(e,t,Mv.selectUnion)},intersect:function(e,t){return w5(e,t,Mv.selectIntersect)},difference:function(e,t){return w5(e,t,Mv.selectDifference)},differenceRev:function(e,t){return w5(e,t,Mv.selectDifferenceRev)},xor:function(e,t){return w5(e,t,Mv.selectXor)}};function w5(e,t,r){var n=Mv.segments(e),i=Mv.segments(t),a=Mv.combine(n,i),o=r(a);return Mv.polygon(o)}typeof window=="object"&&(window.PolyBool=Mv);hce.exports=Mv});var vce=Te((_or,pce)=>{pce.exports=function(t,r,n,i){var a=t[0],o=t[1],s=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var u=i-n,l=0,f=u-1;lo!=p>o&&a<(d-c)*(o-h)/(p-h)+c;x&&(s=!s)}return s}});var A5=Te((xor,mce)=>{"use strict";var E7=_L().dot,dz=nf().BADNUM,pz=mce.exports={};pz.tester=function(t){var r=t.slice(),n=r[0][0],i=n,a=r[0][1],o=a,s;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),s=1;si||v===dz||vo||x&&l(p))}function c(p,x){var b=p[0],v=p[1];if(b===dz||bi||v===dz||vo)return!1;var k=r.length,E=r[0][0],T=r[0][1],L=0,_,C,S,m,P;for(_=1;_Math.max(C,E)||v>Math.max(S,T)))if(vs||Math.abs(E7(c,l))>i)return!0;return!1};pz.filter=function(t,r){var n=[t[0]],i=0,a=0;function o(u){t.push(u);var l=n.length,f=i;n.splice(a+1);for(var c=f+1;c1){var s=t.pop();o(s)}return{addPt:o,raw:t,filtered:n}}});var gce=Te((bor,yce)=>{"use strict";yce.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Nce=Te((wor,qce)=>{"use strict";var _ce=dce(),aht=vce(),M5=$l(),oht=Mu().dashStyle,T5=jl(),sht=jc(),lht=rv().makeEventData,P5=Sm(),uht=P5.freeMode,fht=P5.rectMode,E5=P5.drawMode,P7=P5.openMode,z7=P5.selectMode,xce=h_(),bce=c5(),Mce=ez(),Ece=e_().clearOutline,kce=f_(),k7=kce.handleEllipse,cht=kce.readPaths,hht=KP().newShapes,dht=t7(),pht=M7().activateLastSelection,mz=ei(),vht=mz.sorterAsc,Cce=A5(),S5=IL(),k0=$c().getFromId,mht=u5(),yht=y5().redrawReglTraces,yz=gce(),Ty=yz.MINSELECT,ght=Cce.filter,I7=Cce.tester,R7=jP(),wce=R7.p2r,_ht=R7.axValue,xht=R7.getTransform;function D7(e){return e.subplot!==void 0}function bht(e,t,r,n,i){var a=!D7(n),o=uht(i),s=fht(i),u=P7(i),l=E5(i),f=z7(i),c=i==="drawline",h=i==="drawcircle",d=c||h,p=n.gd,x=p._fullLayout,b=f&&x.newselection.mode==="immediate"&&a,v=x._zoomlayer,k=n.element.getBoundingClientRect(),E=n.plotinfo,T=xht(E),L=t-k.left,_=r-k.top;x._calcInverseTransform(p);var C=mz.apply3DTransform(x._invTransform)(L,_);L=C[0],_=C[1];var S=x._invScaleX,m=x._invScaleY,P=L,A=_,B="M"+L+","+_,F=n.xaxes[0],U=n.yaxes[0],G=F._length,j=U._length,H=e.altKey&&!(E5(i)&&u),N,W,re,ae,be,Pe,Ce;Pce(e,p,n),o&&(N=ght([[L,_]],yz.BENDPX));var de=v.selectAll("path.select-outline-"+E.id).data([1]),te=l?x.newshape:x.newselection;l&&(n.hasText=te.label.text||te.label.texttemplate);var ke=l&&!u?te.fillcolor:"rgba(0,0,0,0)",Ee=te.line.color||(a?T5.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");de.enter().append("path").attr("class","select-outline select-outline-"+E.id).style({opacity:l?te.opacity/2:1,"stroke-dasharray":oht(te.line.dash,te.line.width),"stroke-width":te.line.width+"px","shape-rendering":"crispEdges"}).call(T5.stroke,Ee).call(T5.fill,ke).attr("fill-rule","evenodd").classed("cursor-move",!!l).attr("transform",T).attr("d",B+"Z");var Me=v.append("path").attr("class","zoombox-corners").style({fill:T5.background,stroke:T5.defaultLine,"stroke-width":1}).attr("transform",T).attr("d","M0,0Z");if(l&&n.hasText){var Ue=v.select(".label-temp");Ue.empty()&&(Ue=v.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Fe=x._uid+yz.SELECTID,me=[],Ne=gz(p,n.xaxes,n.yaxes,n.subplot);b&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(a){var Ke=F._id,it=U._id;Fce(p,Ke,it,Ne);for(var bt=(p.layout||{}).selections||[],Nt=[],nt=!1,Ye=0;Ye=0){p._fullLayout._deactivateShape(p);return}if(!l){var bt=x.clickmode;S5.done(Fe).then(function(){if(S5.clear(Fe),Ke===2){for(de.remove(),be=0;be-1&&Lce(it,p,n.xaxes,n.yaxes,n.subplot,n,de),bt==="event"&&L5(p,void 0);sht.click(p,it,E.id)}).catch(mz.error)}},n.doneFn=function(){Me.remove(),S5.done(Fe).then(function(){S5.clear(Fe),!b&&ae&&n.selectionDefs&&(ae.subtract=H,n.selectionDefs.push(ae),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,re)),(b||l)&&k5(n,b),n.doneFnCompleted&&n.doneFnCompleted(me),f&&L5(p,Ce)}).catch(mz.error)}}function Lce(e,t,r,n,i,a,o){var s=t._hoverdata,u=t._fullLayout,l=u.clickmode,f=l.indexOf("event")>-1,c=[],h,d,p,x,b,v,k,E,T,L;if(Mht(s)){Pce(e,t,a),h=gz(t,r,n,i);var _=Eht(s,h),C=_.pointNumbers.length>0;if(C?kht(h,_):Cht(h)&&(k=Tce(_))){for(o&&o.remove(),L=0;L=0}function Sht(e){return e._fullLayout._activeSelectionIndex>=0}function k5(e,t){var r=e.dragmode,n=e.plotinfo,i=e.gd;Tht(i)&&i._fullLayout._deactivateShape(i),Sht(i)&&i._fullLayout._deactivateSelection(i);var a=i._fullLayout,o=a._zoomlayer,s=E5(r),u=z7(r);if(s||u){var l=o.selectAll(".select-outline-"+n.id);if(l&&i._fullLayout._outlining){var f;s&&(f=hht(l,e)),f&&M5.call("_guiRelayout",i,{shapes:f});var c;u&&!D7(e)&&(c=dht(l,e)),c&&(i._fullLayout._noEmitSelectedAtStart=!0,M5.call("_guiRelayout",i,{selections:c}).then(function(){t&&pht(i)})),i._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function Ace(e){return e._id}function gz(e,t,r,n){if(!e.calcdata)return[];var i=[],a=t.map(Ace),o=r.map(Ace),s,u,l;for(l=0;l0,a=i?n[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function kht(e,t){var r=[],n,i,a,o;for(o=0;o0&&r.push(n);if(r.length===1&&(a=r[0]===t.searchInfo,a&&(i=t.searchInfo.cd[0].trace,i.selectedpoints.length===t.pointNumbers.length))){for(o=0;o1||(t+=n.selectedpoints.length,t>1)))return!1;return t===1}function C5(e,t,r){var n;for(n=0;n-1&&t;if(!o&&t){var Ke=Sce(e,!0);if(Ke.length){var it=Ke[0].xref,bt=Ke[0].yref;if(it&&bt){var Nt=Bce(Ke),nt=Oce([k0(e,it,"x"),k0(e,bt,"y")]);nt(me,Nt)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ce&&L5(e,me),h._reselect=!1}if(!o&&h._deselect){var Ye=h._deselect;s=Ye.xref,u=Ye.yref,zht(s,u,f)||Fce(e,s,u,n),ce&&(me.points.length?L5(e,me):O7(e)),h._deselect=!1}return{eventData:me,selectionTesters:r}}function Pht(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";Uce.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var z5=Te((Tor,Vce)=>{"use strict";Vce.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}});var Nb=Te((Mor,Wce)=>{"use strict";var Gce=q7(),Hce=gc(),_z=dd(),Bht=Pf().templatedArray,Sor=z5();Wce.exports=Bht("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Hce({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:Gce.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Gce.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",_z.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",_z.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",_z.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",_z.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:Hce({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Sy=Te((Eor,jce)=>{"use strict";jce.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Em=Te((kor,Xce)=>{"use strict";Xce.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var Xc=Te((Cor,Qce)=>{"use strict";var Zce=Hc().axisHoverFormat,Oht=Hu().texttemplateAttrs,qht=Hu().hovertemplateAttrs,Yce=nc(),Nht=gc(),Uht=Id().dash,Vht=Id().pattern,Ght=Mu(),Hht=Sy(),xz=Su().extendFlat,Wht=Em();function Kce(e){return{valType:"any",dflt:0,editType:"calc"}}function Jce(e){return{valType:"any",editType:"calc"}}function $ce(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}Qce.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:Kce("x"),yperiod:Kce("y"),xperiod0:Jce("x0"),yperiod0:Jce("y0"),xperiodalignment:$ce("x"),yperiodalignment:$ce("y"),xhoverformat:Zce("x"),yhoverformat:Zce("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:Oht({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:qht({},{keys:Hht.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:xz({},Uht,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:Wht(!0),fillgradient:xz({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:Vht,marker:xz({symbol:{valType:"enumerated",values:Ght.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:xz({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},Yce("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},Yce("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:Nht({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var N7=Te((Por,rhe)=>{"use strict";var ehe=Nb(),the=Xc().line,jht=Id().dash,bz=Su().extendFlat,Xht=Sc().overrideAll,Zht=Pf().templatedArray,Lor=z5();rhe.exports=Xht(Zht("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:bz({},ehe.xref,{}),yref:bz({},ehe.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:the.color,width:bz({},the.width,{min:1,dflt:1}),dash:bz({},jht,{dflt:"dot"})}}),"arraydraw","from-root")});var ohe=Te((zor,ahe)=>{"use strict";var ihe=ei(),wz=wu(),Yht=Jd(),Kht=N7(),nhe=h_();ahe.exports=function(t,r){Yht(t,r,{name:"selections",handleItemDefaults:Jht});for(var n=r.selections,i=0;i{"use strict";she.exports=function(t,r,n){n("newselection.mode");var i=n("newselection.line.width");i&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var I5=Te((Ror,che)=>{"use strict";var $ht=$l(),uhe=ei(),fhe=$c();che.exports=function(t){return function(n,i){var a=n[t];if(Array.isArray(a))for(var o=$ht.subplotsRegistry.cartesian,s=o.idRegex,u=i._subplots,l=u.xaxis,f=u.yaxis,c=u.cartesian,h=i._has("cartesian"),d=0;d{"use strict";var hhe=M7(),R5=Nce();dhe.exports={moduleType:"component",name:"selections",layoutAttributes:N7(),supplyLayoutDefaults:ohe(),supplyDrawNewSelectionDefaults:lhe(),includeBasePlot:I5()("selections"),draw:hhe.draw,drawOne:hhe.drawOne,reselect:R5.reselect,prepSelect:R5.prepSelect,clearOutline:R5.clearOutline,clearSelectionsCache:R5.clearSelectionsCache,selectOnClick:R5.selectOnClick}});var X7=Te((For,Ihe)=>{"use strict";var W7=Jl(),C0=ei(),phe=C0.numberFormat,Qht=cd(),edt=LP(),Az=$l(),Ahe=C0.strTranslate,tdt=Zf(),vhe=jl(),p_=Mu(),rdt=jc(),mhe=wu(),idt=Am(),ndt=gp(),The=Sm(),Tz=The.selectingOrDrawing,adt=The.freeMode,odt=Qh().FROM_TL,sdt=u5(),ldt=y5().redrawReglTraces,udt=Cc(),V7=$c().getFromId,fdt=nh().prepSelect,cdt=nh().clearOutline,hdt=nh().selectOnClick,U7=g7(),j7=dd(),yhe=j7.MINDRAG,iv=j7.MINZOOM,ghe=!0;function ddt(e,t,r,n,i,a,o,s){var u=e._fullLayout._zoomlayer,l=o+s==="nsew",f=(o+s).length===1,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H;r+=t.yaxis._shift;function N(){if(c=t.xaxis,h=t.yaxis,E=c._length,T=h._length,v=c._offset,k=h._offset,d={},d[c._id]=c,p={},p[h._id]=h,o&&s)for(var Xe=t.overlays,rt=0;rt=0){Qe._fullLayout._deactivateShape(Qe);return}var zt=Qe._fullLayout.clickmode;if(H7(Qe),Xe===2&&!f&&Et(),l)zt.indexOf("select")>-1&&hdt(rt,Qe,x,b,t.id,ae),zt.indexOf("event")>-1&&rdt.click(Qe,rt,t.id);else if(Xe===1&&f){var Yt=o?h:c,lr=o==="s"||s==="w"?0:1,mr=Yt._name+".range["+lr+"]",_r=pdt(Yt,lr),Ht="left",Re="middle";if(Yt.fixedrange)return;o?(Re=o==="n"?"top":"bottom",Yt.side==="right"&&(Ht="right")):s==="e"&&(Ht="right"),Qe._context.showAxisRangeEntryBoxes&&W7.select(re).call(tdt.makeEditable,{gd:Qe,immediate:!0,background:Qe._fullLayout.paper_bgcolor,text:String(_r),fill:Yt.tickfont?Yt.tickfont.color:"#444",horizontalAlign:Ht,verticalAlign:Re}).on("edit",function(xe){var Oe=Yt.d2r(xe);Oe!==void 0&&Az.call("_guiRelayout",Qe,mr,Oe)})}}ndt.init(ae);var Ce,de,te,ke,Ee,Me,Ue,Fe,me,Ne;function ce(Xe,rt,Qe){var zt=re.getBoundingClientRect();Ce=rt-zt.left,de=Qe-zt.top,e._fullLayout._calcInverseTransform(e);var Yt=C0.apply3DTransform(e._fullLayout._invTransform)(Ce,de);Ce=Yt[0],de=Yt[1],te={l:Ce,r:Ce,w:0,t:de,b:de,h:0},ke=e._hmpixcount?e._hmlumcount/e._hmpixcount:Qht(e._fullLayout.plot_bgcolor).getLuminance(),Ee="M0,0H"+E+"V"+T+"H0V0",Me=!1,Ue="xy",Ne=!1,Fe=Ehe(u,ke,v,k,Ee),me=khe(u,v,k)}function Ke(Xe,rt){if(e._transitioningWithDuration)return!1;var Qe=Math.max(0,Math.min(E,j*Xe+Ce)),zt=Math.max(0,Math.min(T,H*rt+de)),Yt=Math.abs(Qe-Ce),lr=Math.abs(zt-de);te.l=Math.min(Ce,Qe),te.r=Math.max(Ce,Qe),te.t=Math.min(de,zt),te.b=Math.max(de,zt);function mr(){Ue="",te.r=te.l,te.t=te.b,me.attr("d","M0,0Z")}if(L.isSubplotConstrained)Yt>iv||lr>iv?(Ue="xy",Yt/E>lr/T?(lr=Yt*T/E,de>zt?te.t=de-lr:te.b=de+lr):(Yt=lr*E/T,Ce>Qe?te.l=Ce-Yt:te.r=Ce+Yt),me.attr("d",Sz(te))):mr();else if(_.isSubplotConstrained)if(Yt>iv||lr>iv){Ue="xy";var _r=Math.min(te.l/E,(T-te.b)/T),Ht=Math.max(te.r/E,(T-te.t)/T);te.l=_r*E,te.r=Ht*E,te.b=(1-_r)*T,te.t=(1-Ht)*T,me.attr("d",Sz(te))}else mr();else!S||lr0){var xe;if(_.isSubplotConstrained||!C&&S.length===1){for(xe=0;xe1&&(mr.maxallowed!==void 0&&P===(mr.range[0]1&&(_r.maxallowed!==void 0&&A===(_r.range[0]<_r.range[1]?"n":"s")||_r.minallowed!==void 0&&A===(_r.range[0]<_r.range[1]?"s":"n"))&&(_e=1,pe=0),!(!ct&&!_e)){ct||(ct=1),_e||(_e=1);var mt=mr._offset-fe/ct,It=_r._offset-pe/_e;lr.clipRect.call(p_.setTranslate,fe,pe).call(p_.setScale,ct,_e),lr.plot.call(p_.setTranslate,mt,It).call(p_.setScale,1/ct,1/_e),(ct!==lr.xScaleFactor||_e!==lr.yScaleFactor)&&(p_.setPointGroupScale(lr.zoomScalePts,ct,_e),p_.setTextPointsScale(lr.zoomScaleTxt,ct,_e)),p_.hideOutsideRangePoints(lr.clipOnAxisFalseTraces,lr),lr.xScaleFactor=ct,lr.yScaleFactor=_e}}}}function dt(Xe,rt,Qe){return Xe.fixedrange?0:P&&L.xaHash[Xe._id]?rt:A&&(L.isSubplotConstrained?L.xaHash:L.yaHash)[Xe._id]?Qe:0}function pt(Xe,rt){return rt?(Xe.range=Xe._r.slice(),U7(Xe,rt),at(Xe,rt)):0}function at(Xe,rt,Qe){return Xe._length*(1-rt)*odt[Qe||Xe.constraintoward||"middle"]}return re}function She(e,t,r,n){var i=C0.ensureSingle(e.draglayer,t,r,function(a){a.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id)});return i.call(idt,n),i.node()}function Mhe(e,t,r,n,i,a,o){var s=She(e,"rect",t,r);return W7.select(s).call(p_.setRect,n,i,a,o),s}function _he(e,t){for(var r=0;r=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function mdt(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function Ehe(e,t,r,n,i){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",Ahe(r,n)).attr("d",i+"Z")}function khe(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:vhe.background,stroke:vhe.defaultLine,"stroke-width":1,opacity:0}).attr("transform",Ahe(t,r)).attr("d","M0,0Z")}function Che(e,t,r,n,i,a){e.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),Lhe(e,t,i,a)}function Lhe(e,t,r,n){r||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function H7(e){W7.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Phe(e){ghe&&e.data&&e._context.showTips&&(C0.notifier(C0._(e,"Double-click to zoom back out"),"long"),ghe=!1)}function ydt(e,t){return"M"+(e.l-.5)+","+(t-iv-.5)+"h-3v"+(2*iv+1)+"h3ZM"+(e.r+.5)+","+(t-iv-.5)+"h3v"+(2*iv+1)+"h-3Z"}function gdt(e,t){return"M"+(t-iv-.5)+","+(e.t-.5)+"v-3h"+(2*iv+1)+"v3ZM"+(t-iv-.5)+","+(e.b+.5)+"v3h"+(2*iv+1)+"v-3Z"}function Sz(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,iv)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function bhe(e,t,r,n,i){for(var a=!1,o={},s={},u,l,f,c,h=(i||{}).xaHash,d=(i||{}).yaHash,p=0;p{"use strict";var _dt=Jl(),Mz=jc(),xdt=gp(),bdt=Am(),km=X7().makeDragBox,yd=dd().DRAGGERSIZE;Ez.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){_dt.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var n=Object.keys(r._plots||{}).sort(function(a,o){if((r._plots[a].mainplot&&!0)===(r._plots[o].mainplot&&!0)){var s=a.split("y"),u=o.split("y");return s[0]===u[0]?Number(s[1]||1)-Number(u[1]||1):Number(s[0]||1)-Number(u[0]||1)}return r._plots[a].mainplot?1:-1});n.forEach(function(a){var o=r._plots[a],s=o.xaxis,u=o.yaxis;if(!o.mainplot){var l=km(t,o,s._offset,u._offset,s._length,u._length,"ns","ew");l.onmousemove=function(h){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===a&&t._fullLayout._plots[a]&&Mz.hover(t,h,a)},Mz.hover(t,h,a),t._fullLayout._lasthover=l,t._fullLayout._hoversubplot=a},l.onmouseout=function(h){t._dragging||(t._fullLayout._hoversubplot=null,xdt.unhover(t,h))},t._context.showAxisDragHandles&&(km(t,o,s._offset-yd,u._offset-yd,yd,yd,"n","w"),km(t,o,s._offset+s._length,u._offset-yd,yd,yd,"n","e"),km(t,o,s._offset-yd,u._offset+u._length,yd,yd,"s","w"),km(t,o,s._offset+s._length,u._offset+u._length,yd,yd,"s","e"))}if(t._context.showAxisDragHandles){if(a===s._mainSubplot){var f=s._mainLinePosition;s.side==="top"&&(f-=yd),km(t,o,s._offset+s._length*.1,f,s._length*.8,yd,"","ew"),km(t,o,s._offset,f,s._length*.1,yd,"","w"),km(t,o,s._offset+s._length*.9,f,s._length*.1,yd,"","e")}if(a===u._mainSubplot){var c=u._mainLinePosition;u.side!=="right"&&(c-=yd),km(t,o,c,u._offset+u._length*.1,yd,u._length*.8,"ns",""),km(t,o,c,u._offset+u._length*.9,yd,u._length*.1,"s",""),km(t,o,c,u._offset,yd,u._length*.1,"n","")}}});var i=r._hoverlayer.node();i.onmousemove=function(a){a.target=t._fullLayout._lasthover,Mz.hover(t,a,r._hoversubplot)},i.onclick=function(a){a.target=t._fullLayout._lasthover,Mz.click(t,a)},i.onmousedown=function(a){t._fullLayout._lasthover.onmousedown(a)},Ez.updateFx(t)}};Ez.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";bdt(t._draggers,r)}});var Fhe=Te((Oor,Dhe)=>{"use strict";var Rhe=$l();Dhe.exports=function(t){for(var r=Rhe.layoutArrayContainers,n=Rhe.layoutArrayRegexes,i=t.split("[")[0],a,o,s=0;s{"use strict";var wdt=mg(),Y7=gL(),D5=H1(),Adt=LL().sorterAsc,K7=$l();F5.containerArrayMatch=Fhe();var Tdt=F5.isAddVal=function(t){return t==="add"||wdt(t)},Bhe=F5.isRemoveVal=function(t){return t===null||t==="remove"};F5.applyContainerArrayChanges=function(t,r,n,i,a){var o=r.astr,s=K7.getComponentMethod(o,"supplyLayoutDefaults"),u=K7.getComponentMethod(o,"draw"),l=K7.getComponentMethod(o,"drawOne"),f=i.replot||i.recalc||s===Y7||u===Y7,c=t.layout,h=t._fullLayout;if(n[""]){Object.keys(n).length>1&&D5.warn("Full array edits are incompatible with other edits",o);var d=n[""][""];if(Bhe(d))r.set(null);else if(Array.isArray(d))r.set(d);else return D5.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(s(c,h),u(t),!0)}var p=Object.keys(n).map(Number).sort(Adt),x=r.get(),b=x||[],v=a(h,o).get(),k=[],E=-1,T=b.length,L,_,C,S,m,P,A,B;for(L=0;Lb.length-(A?0:1)){D5.warn("index out of range",o,C);continue}if(P!==void 0)m.length>1&&D5.warn("Insertion & removal are incompatible with edits to the same index.",o,C),Bhe(P)?k.push(C):A?(P==="add"&&(P={}),b.splice(C,0,P),v&&v.splice(C,0,{})):D5.warn("Unrecognized full object edit value",o,C,P),E===-1&&(E=C);else for(_=0;_=0;L--)b.splice(k[L],1),v&&v.splice(k[L],1);if(b.length?x||r.set(b):r.set(null),f)return!1;if(s(c,h),l!==Y7){var F;if(E===-1)F=p;else{for(T=Math.max(b.length,T),F=[],L=0;L=E));L++)F.push(C);for(L=E;L{"use strict";var Vhe=ku(),Nor=G9(),Ghe=$l(),Ev=ei(),B5=Cc(),Hhe=$c(),Whe=jl(),O5=Hhe.cleanId,Sdt=Hhe.getFromTrace,J7=Ghe.traceIs;Cm.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ev.log("Clearing previous rejected promises from queue."),e._promises=[]};Cm.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(B5.subplotsRegistry.cartesian||{}).attrRegex,i=(B5.subplotsRegistry.polar||{}).attrRegex,a=(B5.subplotsRegistry.ternary||{}).attrRegex,o=(B5.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(e);for(t=0;t3?(b.x=1.02,b.xanchor="left"):b.x<-2&&(b.x=-.02,b.xanchor="right"),b.y>3?(b.y=1.02,b.yanchor="bottom"):b.y<-2&&(b.y=-.02,b.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),Whe.clean(e),e.template&&e.template.layout&&Cm.cleanLayout(e.template.layout),e};function Y3(e,t){var r=e[t],n=t.charAt(0);r&&r!=="paper"&&(e[t]=O5(r,n,!0))}Cm.cleanData=function(e){for(var t=0;t0)return e.substr(0,t)}Cm.hasParent=function(e,t){for(var r=Uhe(t);r;){if(r in e)return!0;r=Uhe(r)}return!1};var kdt=["x","y","z"];Cm.clearAxisTypes=function(e,t,r){for(var n=0;n{"use strict";var Pz=Jl(),Cdt=ku(),Ldt=cq(),Bl=ei(),Lc=Bl.nestedProperty,eU=m3(),nv=Cne(),L0=$l(),Oz=_3(),Nu=Cc(),Np=wu(),Pdt=MN(),zdt=Dd(),$7=Mu(),Idt=jl(),Rdt=Z7().initInteractions,Ddt=jv(),Fdt=nh().clearOutline,Jhe=ub().dfltConfig,Cz=Ohe(),Oh=jhe(),ac=y5(),v_=Sc(),Bdt=dd().AX_NAME_PATTERN,Q7=0,Xhe=5;function Odt(e,t,r,n){var i;if(e=Bl.getGraphDiv(e),eU.init(e),Bl.isPlainObject(t)){var a=t;t=a.data,r=a.layout,n=a.config,i=a.frames}var o=eU.triggerHandler(e,"plotly_beforeplot",[t,r,n]);if(o===!1)return Promise.reject();!t&&!r&&!Bl.isPlotDiv(e)&&Bl.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function s(){if(i)return Gf.addFrames(e,i)}Qhe(e,n),r||(r={}),Pz.select(e).classed("js-plotly-plot",!0),$7.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var u=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(Oh.cleanData(t),u?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||u)&&(e.layout=Oh.cleanLayout(r)),Nu.supplyDefaults(e);var l=e._fullLayout,f=l._has("cartesian");l._replotting=!0,(u||l._shouldCreateBgLayer)&&(spt(e),l._shouldCreateBgLayer&&delete l._shouldCreateBgLayer),$7.initGradients(e),$7.initPatterns(e),u&&Np.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&Nu.doCalcdata(e);for(var h=0;h=e.data.length||i<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(i,n+1)>-1||i>=0&&t.indexOf(-e.data.length+i)>-1||i<0&&t.indexOf(e.data.length+i)>-1)throw new Error("each index in "+r+" must be unique.")}}function ede(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),Iz(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&Iz(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function Gdt(e,t,r){var n,i;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),n=0;n=0&&f=0&&f0&&typeof S.parts[A]!="string";)A--;var B=S.parts[A],F=S.parts[A-1]+"."+B,U=S.parts.slice(0,A).join("."),G=Lc(e.layout,U).get(),j=Lc(n,U).get(),H=S.get();if(m!==void 0){v[C]=m,k[C]=B==="reverse"?m:Cg(H);var N=Oz.getLayoutValObject(n,S.parts);if(N&&N.impliedEdits&&m!==null)for(var W in N.impliedEdits)E(Bl.relativeAttr(C,W),N.impliedEdits[W]);if(["width","height"].indexOf(C)!==-1)if(m){E("autosize",null);var re=C==="height"?"width":"height";E(re,n[re])}else n[C]=e._initialAutoSize[C];else if(C==="autosize")E("width",m?null:n.width),E("height",m?null:n.height);else if(F.match(ude))_(F),Lc(n,U+"._inputRange").set(null);else if(F.match(fde)){_(F),Lc(n,U+"._inputRange").set(null);var ae=Lc(n,U).get();ae._inputDomain&&(ae._input.domain=ae._inputDomain.slice())}else F.match(Xdt)&&Lc(n,U+"._inputDomain").set(null);if(B==="type"){L=G;var be=j.type==="linear"&&m==="log",Pe=j.type==="log"&&m==="linear";if(be||Pe){if(!L||!L.range)E(U+".autorange",!0);else if(j.autorange)be&&(L.range=L.range[1]>L.range[0]?[1,2]:[2,1]);else{var Ce=L.range[0],de=L.range[1];be?(Ce<=0&&de<=0&&E(U+".autorange",!0),Ce<=0?Ce=de/1e6:de<=0&&(de=Ce/1e6),E(U+".range[0]",Math.log(Ce)/Math.LN10),E(U+".range[1]",Math.log(de)/Math.LN10)):(E(U+".range[0]",Math.pow(10,Ce)),E(U+".range[1]",Math.pow(10,de)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[S.parts[0]]&&S.parts[1]==="radialaxis"&&delete n[S.parts[0]]._subplot.viewInitial["radialaxis.range"],L0.getComponentMethod("annotations","convertCoords")(e,j,m,E),L0.getComponentMethod("images","convertCoords")(e,j,m,E)}else E(U+".autorange",!0),E(U+".range",null);Lc(n,U+"._inputRange").set(null)}else if(B.match(Bdt)){var te=Lc(n,C).get(),ke=(m||{}).type;(!ke||ke==="-")&&(ke="linear"),L0.getComponentMethod("annotations","convertCoords")(e,te,ke,E),L0.getComponentMethod("images","convertCoords")(e,te,ke,E)}var Ee=Cz.containerArrayMatch(C);if(Ee){f=Ee.array,c=Ee.index;var Me=Ee.property,Ue=N||{editType:"calc"};c!==""&&Me===""&&(Cz.isAddVal(m)?k[C]=null:Cz.isRemoveVal(m)?k[C]=(Lc(r,f).get()||[])[c]:Bl.warn("unrecognized full object value",t)),v_.update(b,Ue),l[f]||(l[f]={});var Fe=l[f][c];Fe||(Fe=l[f][c]={}),Fe[Me]=m,delete t[C]}else B==="reverse"?(G.range?G.range.reverse():(E(U+".autorange",!0),G.range=[1,0]),j.autorange?b.calc=!0:b.plot=!0):(C==="dragmode"&&(m===!1&&H!==!1||m!==!1&&H===!1)||n._has("scatter-like")&&n._has("regl")&&C==="dragmode"&&(m==="lasso"||m==="select")&&!(H==="lasso"||H==="select")?b.plot=!0:N?v_.update(b,N):b.calc=!0,S.set(m))}}for(f in l){var me=Cz.applyContainerArrayChanges(e,a(r,f),l[f],b,a);me||(b.plot=!0)}for(var Ne in T){L=Np.getFromId(e,Ne);var ce=L&&L._constraintGroup;if(ce){b.calc=!0;for(var Ke in ce)T[Ke]||(Np.getFromId(e,Ke)._constraintShrinkable=!0)}}(hde(e)||t.height||t.width)&&(b.plot=!0);var it=n.shapes;for(c=0;c1;)if(n.pop(),r=Lc(t,n.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function Kdt(e,t){for(var r=0;r=i.length?i[0]:i[l]:i}function s(l){return Array.isArray(a)?l>=a.length?a[0]:a[l]:a}function u(l,f){var c=0;return function(){if(l&&++c===f)return l()}}return new Promise(function(l,f){function c(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var B=n._frameQueue.pop();B.onInterrupt&&B.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(B){if(B.length!==0){for(var F=0;Fn._timeToNext&&p()};B()}var b=0;function v(B){return Array.isArray(i)?b>=i.length?B.transitionOpts=i[b]:B.transitionOpts=i[0]:B.transitionOpts=i,b++,B}var k,E,T=[],L=t==null,_=Array.isArray(t),C=!L&&!_&&Bl.isPlainObject(t);if(C)T.push({type:"object",data:v(Bl.extendFlat({},t))});else if(L||["string","number"].indexOf(typeof t)!==-1)for(k=0;k0&&PP)&&A.push(E);T=A}}T.length>0?h(T):(e.emit("plotly_animated"),l())})}function ipt(e,t,r){if(e=Bl.getGraphDiv(e),t==null)return Promise.resolve();if(!Bl.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,i,a,o,s=e._transitionData._frames,u=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var l=s.length+t.length*2,f=[],c={};for(n=t.length-1;n>=0;n--)if(Bl.isPlainObject(t[n])){var h=t[n].name,d=(u[h]||c[h]||{}).name,p=t[n].name,x=u[d]||c[d];d&&p&&typeof p=="number"&&x&&Q7S.index?-1:C.index=0;n--){if(i=f[n].frame,typeof i.name=="number"&&Bl.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!i.name)for(;u[i.name="frame "+e._transitionData._counter++];);if(u[i.name]){for(a=0;a=0;r--)n=t[r],a.push({type:"delete",index:n}),o.unshift({type:"insert",index:n,value:i[n]});var s=Nu.modifyFrames,u=Nu.modifyFrames,l=[e,o],f=[e,a];return nv&&nv.add(e,s,l,u,f),Nu.modifyFrames(e,a)}function apt(e){e=Bl.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return Nu.cleanPlot([],{},r,t),Nu.purge(e),eU.purge(e),t._container&&t._container.remove(),delete e._context,e}function opt(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!Bl.equalDomRects(r,t._lastBBox)){var n=t._invTransform=Bl.inverseTransformMatrix(Bl.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),t._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),t._lastBBox=r}}function spt(e){var t=Pz.select(e),r=e._fullLayout;if(r._calcInverseTransform=opt,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var n={};Pz.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),r._uid=Bl.randstr(n)}r._paperdiv.selectAll(".main-svg").attr(Ddt.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var i=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=i.append("g").classed("imagelayer",!0),r._shapeLowerLayer=i.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var a=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=a.append("g").classed("imagelayer",!0),r._shapeUpperLayer=a.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Gf.animate=rpt;Gf.addFrames=ipt;Gf.deleteFrames=npt;Gf.addTraces=ade;Gf.deleteTraces=ode;Gf.extendTraces=ide;Gf.moveTraces=tU;Gf.prependTraces=nde;Gf.newPlot=Vdt;Gf._doPlot=Odt;Gf.purge=apt;Gf.react=Qdt;Gf.redraw=Udt;Gf.relayout=q5;Gf.restyle=Rz;Gf.setPlotConfig=qdt;Gf.update=Fz;Gf._guiRelayout=iU(q5);Gf._guiRestyle=iU(Rz);Gf._guiUpdate=iU(Fz);Gf._storeDirectGUIEdit=jdt});var Lg=Te(My=>{"use strict";var lpt=$l();My.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};My.getRedrawFunc=function(e){return function(){lpt.getComponentMethod("colorbar","draw")(e)}};My.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};My.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var dde=window.URL||window.webkitURL;My.createObjectURL=function(e){return dde.createObjectURL(e)};My.revokeObjectURL=function(e){return dde.revokeObjectURL(e)};My.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=upt(window.atob(e));return new window.Blob([r],{type:"image/"+t})};My.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function upt(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;i{"use strict";var aU=Jl(),Hor=ei(),fpt=Mu(),cpt=jl(),Wor=jv(),nU=/"/g,U5="TOBESTRIPPED",hpt=new RegExp('("'+U5+")|("+U5+'")',"g");function dpt(e){var t=aU.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,function(n){return n==="<"?"<":n==="&rt;"?">":n.indexOf("<")!==-1||n.indexOf(">")!==-1?"":t.html(n).text()});return t.remove(),r}function ppt(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}pde.exports=function(t,r,n){var i=t._fullLayout,a=i._paper,o=i._toppaper,s=i.width,u=i.height,l;a.insert("rect",":first-child").call(fpt.setRect,0,0,s,u).call(cpt.fill,i.paper_bgcolor);var f=i._basePlotModules||[];for(l=0;l{"use strict";var vpt=ei(),mpt=pb().EventEmitter,V5=Lg();function ypt(e){var t=e.emitter||new mpt,r=new Promise(function(n,i){var a=window.Image,o=e.svg,s=e.format||"png",u=e.canvas,l=e.scale||1,f=e.width||300,c=e.height||150,h=l*f,d=l*c,p=u.getContext("2d",{willReadFrequently:!0}),x=new a,b,v;s==="svg"||vpt.isSafari()?v=V5.encodeSVG(o):(b=V5.createBlob(o,"svg"),v=V5.createObjectURL(b)),u.width=h,u.height=d,x.onload=function(){var k;switch(b=null,V5.revokeObjectURL(v),s!=="svg"&&p.drawImage(x,0,0,h,d),s){case"jpeg":k=u.toDataURL("image/jpeg");break;case"png":k=u.toDataURL("image/png");break;case"webp":k=u.toDataURL("image/webp");break;case"svg":k=v;break;default:var E="Image format is not jpeg, png, svg or webp.";if(i(new Error(E)),!e.promise)return t.emit("error",E)}n(k),e.promise||t.emit("success",k)},x.onerror=function(k){if(b=null,V5.revokeObjectURL(v),i(k),!e.promise)return t.emit("error",k)},x.src=v});return e.promise?r:t}vde.exports=ypt});var sU=Te((Zor,gde)=>{"use strict";var mde=ku(),yde=Nz(),gpt=Cc(),Ey=ei(),G5=Lg(),_pt=Uz(),xpt=Vz(),bpt=rL().version,oU={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function wpt(e,t){t=t||{};var r,n,i,a;Ey.isPlainObject(e)?(r=e.data||[],n=e.layout||{},i=e.config||{},a={}):(e=Ey.getGraphDiv(e),r=Ey.extendDeep([],e.data),n=Ey.extendDeep({},e.layout),i=e._context,a=e._fullLayout||{});function o(_){return!(_ in t)||Ey.validate(t[_],oU[_])}if(!o("width")&&t.width!==null||!o("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Ey.join2(oU.format.values,", "," or ")+".");var s={};function u(_,C){return Ey.coerce(t,s,oU,_,C)}var l=u("format"),f=u("width"),c=u("height"),h=u("scale"),d=u("setBackground"),p=u("imageDataOnly"),x=document.createElement("div");x.style.position="absolute",x.style.left="-5000px",document.body.appendChild(x);var b=Ey.extendFlat({},n);f?b.width=f:t.width===null&&mde(a.width)&&(b.width=a.width),c?b.height=c:t.height===null&&mde(a.height)&&(b.height=a.height);var v=Ey.extendFlat({},i,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),k=G5.getRedrawFunc(x);function E(){return new Promise(function(_){setTimeout(_,G5.getDelay(x._fullLayout))})}function T(){return new Promise(function(_,C){var S=_pt(x,l,h),m=x._fullLayout.width,P=x._fullLayout.height;function A(){yde.purge(x),document.body.removeChild(x)}if(l==="full-json"){var B=gpt.graphJson(x,!1,"keepdata","object",!0,!0);return B.version=bpt,B=JSON.stringify(B),A(),_(p?B:G5.encodeJSON(B))}if(A(),l==="svg")return _(p?S:G5.encodeSVG(S));var F=document.createElement("canvas");F.id=Ey.randstr(),xpt({format:l,width:m,height:P,scale:h,canvas:F,svg:S,promise:!0}).then(_).catch(C)})}function L(_){return p?_.replace(G5.IMAGE_URL_PREFIX,""):_}return new Promise(function(_,C){yde.newPlot(x,r,b,v).then(k).then(E).then(T).then(function(S){_(L(S))}).catch(function(S){C(S)})})}gde.exports=wpt});var bde=Te((Yor,xde)=>{"use strict";var P0=ei(),Apt=Cc(),Tpt=_3(),Spt=ub().dfltConfig,Lm=P0.isPlainObject,Vb=Array.isArray,lU=P0.isArrayOrTypedArray;xde.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var n=Tpt.get(),i=[],a={_context:P0.extendFlat({},Spt)},o,s;Vb(t)?(a.data=P0.extendDeep([],t),o=t):(a.data=[],o=[],i.push(gd("array","data"))),Lm(r)?(a.layout=P0.extendDeep({},r),s=r):(a.layout={},s={},arguments.length>1&&i.push(gd("object","layout"))),Apt.supplyDefaults(a);for(var u=a._fullData,l=o.length,f=0;fc.length&&n.push(gd("unused",i,l.concat(c.length)));var v=c.length,k=Array.isArray(b);k&&(v=Math.min(v,b.length));var E,T,L,_,C;if(h.dimensions===2)for(T=0;Tc[T].length&&n.push(gd("unused",i,l.concat(T,c[T].length)));var S=c[T].length;for(E=0;E<(k?Math.min(S,b[T].length):S);E++)L=k?b[T][E]:b,_=f[T][E],C=c[T][E],P0.validate(_,L)?C!==_&&C!==+_&&n.push(gd("dynamic",i,l.concat(T,E),_,C)):n.push(gd("value",i,l.concat(T,E),_))}else n.push(gd("array",i,l.concat(T),f[T]));else for(T=0;T{"use strict";var zpt=ei(),Hz=Lg();function Ipt(e,t,r){var n=document.createElement("a"),i="download"in n,a=new Promise(function(o,s){var u,l;if(i)return u=Hz.createBlob(e,r),l=Hz.createObjectURL(u),n.href=l,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),Hz.revokeObjectURL(l),u=null,o(t);if(zpt.isSafari()){var f=r==="svg"?",":";base64,";return Hz.octetStream(f+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}wde.exports=Ipt});var uU=Te(($or,Sde)=>{"use strict";var Tde=ei(),Rpt=sU(),Dpt=Ade(),Jor=Lg();function Fpt(e,t){var r;return Tde.isPlainObject(e)||(r=Tde.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(n,i){r&&r._snapshotInProgress&&i(new Error("Snapshotting already in progress.")),r&&(r._snapshotInProgress=!0);var a=Rpt(e,t),o=t.filename||e.fn||"newplot";o+="."+t.format.replace("-","."),a.then(function(s){return r&&(r._snapshotInProgress=!1),Dpt(s,o,t.format)}).then(function(s){n(s)}).catch(function(s){r&&(r._snapshotInProgress=!1),i(s)})})}Sde.exports=Fpt});var Lde=Te(fU=>{"use strict";var kv=ei(),Cv=kv.isPlainObject,Mde=_3(),Ede=Cc(),Bpt=Vf(),kde=Pf(),Cde=ub().dfltConfig;fU.makeTemplate=function(e){e=kv.isPlainObject(e)?e:kv.getGraphDiv(e),e=kv.extendDeep({_context:Cde},{data:e.data,layout:e.layout}),Ede.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var n={data:{},layout:{}};t.forEach(function(d){var p={};H5(d,p,qpt.bind(null,d));var x=kv.coerce(d,{},Bpt,"type"),b=n.data[x];b||(b=n.data[x]=[]),b.push(p)}),H5(r,n.layout,Opt.bind(null,r)),delete n.layout.template;var i=r.template;if(Cv(i)){var a=i.layout,o,s,u,l,f,c;Cv(a)&&Wz(a,n.layout);var h=i.data;if(Cv(h)){for(s in n.data)if(u=h[s],Array.isArray(u)){for(f=n.data[s],c=f.length,l=u.length,o=0;ov?o.push({code:"unused",traceType:d,templateCount:b,dataCount:v}):v>b&&o.push({code:"reused",traceType:d,templateCount:b,dataCount:v})}}function k(E,T){for(var L in E)if(L.charAt(0)!=="_"){var _=E[L],C=z0(E,L,T);Cv(_)?(Array.isArray(E)&&_._template===!1&&_.templateitemname&&o.push({code:"missing",path:C,templateitemname:_.templateitemname}),k(_,C)):Array.isArray(_)&&Npt(_)&&k(_,C)}}if(k({data:u,layout:s},""),o.length)return o.map(Upt)};function Npt(e){for(var t=0;t{"use strict";var rd=Nz();Uc._doPlot=rd._doPlot;Uc.newPlot=rd.newPlot;Uc.restyle=rd.restyle;Uc.relayout=rd.relayout;Uc.redraw=rd.redraw;Uc.update=rd.update;Uc._guiRestyle=rd._guiRestyle;Uc._guiRelayout=rd._guiRelayout;Uc._guiUpdate=rd._guiUpdate;Uc._storeDirectGUIEdit=rd._storeDirectGUIEdit;Uc.react=rd.react;Uc.extendTraces=rd.extendTraces;Uc.prependTraces=rd.prependTraces;Uc.addTraces=rd.addTraces;Uc.deleteTraces=rd.deleteTraces;Uc.moveTraces=rd.moveTraces;Uc.purge=rd.purge;Uc.addFrames=rd.addFrames;Uc.deleteFrames=rd.deleteFrames;Uc.animate=rd.animate;Uc.setPlotConfig=rd.setPlotConfig;var Vpt=DM().getGraphDiv,Gpt=nz().eraseActiveShape;Uc.deleteActiveShape=function(e){return Gpt(Vpt(e))};Uc.toImage=sU();Uc.validate=bde();Uc.downloadImage=uU();var Pde=Lde();Uc.makeTemplate=Pde.makeTemplate;Uc.validateTemplate=Pde.validateTemplate});var K3=Te((tsr,Ide)=>{"use strict";var cU=ei(),Hpt=$l();Ide.exports=function(t,r,n,i){var a=i("x"),o=i("y"),s,u=Hpt.getComponentMethod("calendars","handleTraceDefaults");if(u(t,r,["x","y"],n),a){var l=cU.minRowLength(a);o?s=Math.min(l,cU.minRowLength(o)):(s=l,i("y0"),i("dy"))}else{if(!o)return 0;s=cU.minRowLength(o),i("x0"),i("dx")}return r._length=s,s}});var Pm=Te((rsr,Fde)=>{"use strict";var Rde=ei().dateTick0,Wpt=nf(),jpt=Wpt.ONEWEEK;function Dde(e,t){return e%jpt===0?Rde(t,1):Rde(t,0)}Fde.exports=function(t,r,n,i,a){if(a||(a={x:!0,y:!0}),a.x){var o=i("xperiod");o&&(i("xperiod0",Dde(o,r.xcalendar)),i("xperiodalignment"))}if(a.y){var s=i("yperiod");s&&(i("yperiod0",Dde(s,r.ycalendar)),i("yperiodalignment"))}}});var qde=Te((isr,Ode)=>{"use strict";var Bde=["orientation","groupnorm","stackgaps"];Ode.exports=function(t,r,n,i){var a=n._scatterStackOpts,o=i("stackgroup");if(o){var s=r.xaxis+r.yaxis,u=a[s];u||(u=a[s]={});var l=u[o],f=!1;l?l.traces.push(r):(l=u[o]={traceIndices:[],traces:[r]},f=!0);for(var c={orientation:r.x&&!r.y?"h":"v"},h=0;h{"use strict";var Nde=jl(),Ude=Rp().hasColorscale,Vde=ed(),Xpt=lc();Gde.exports=function(t,r,n,i,a,o){var s=Xpt.isBubble(t),u=(t.line||{}).color,l;if(o=o||{},u&&(n=u),a("marker.symbol"),a("marker.opacity",s?.7:1),a("marker.size"),o.noAngle||(a("marker.angle"),o.noAngleRef||a("marker.angleref"),o.noStandOff||a("marker.standoff")),a("marker.color",n),Ude(t,"marker")&&Vde(t,r,i,a,{prefix:"marker.",cLetter:"c"}),o.noSelect||(a("selected.marker.color"),a("unselected.marker.color"),a("selected.marker.size"),a("unselected.marker.size")),o.noLine||(u&&!Array.isArray(u)&&r.marker.color!==u?l=u:s?l=Nde.background:l=Nde.defaultLine,a("marker.line.color",l),Ude(t,"marker.line")&&Vde(t,r,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width",s?1:0)),s&&(a("marker.sizeref"),a("marker.sizemin"),a("marker.sizemode")),o.gradient){var f=a("marker.gradient.type");f!=="none"&&a("marker.gradient.color")}}});var I0=Te((asr,Hde)=>{"use strict";var Zpt=ei().isArrayOrTypedArray,Ypt=Rp().hasColorscale,Kpt=ed();Hde.exports=function(t,r,n,i,a,o){o||(o={});var s=(t.marker||{}).color;if(s&&s._inputArray&&(s=s._inputArray),a("line.color",n),Ypt(t,"line"))Kpt(t,r,i,a,{prefix:"line.",cLetter:"c"});else{var u=(Zpt(s)?!1:s)||n;a("line.color",u)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var J3=Te((osr,Wde)=>{"use strict";Wde.exports=function(t,r,n){var i=n("line.shape");i==="spline"&&n("line.smoothing")}});var R0=Te((ssr,jde)=>{"use strict";var Jpt=ei();jde.exports=function(e,t,r,n,i){i=i||{},n("textposition"),Jpt.coerceFont(n,"textfont",i.font||r.font,i),i.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var zm=Te((lsr,Zde)=>{"use strict";var Xz=jl(),Xde=ei().isArrayOrTypedArray;function $pt(e){for(var t=Xz.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var Yde=ei(),Qpt=$l(),evt=Xc(),tvt=Sy(),$3=lc(),rvt=K3(),ivt=Pm(),nvt=qde(),avt=$v(),ovt=I0(),Kde=J3(),svt=R0(),lvt=zm(),uvt=ei().coercePattern;Jde.exports=function(t,r,n,i){function a(d,p){return Yde.coerce(t,r,evt,d,p)}var o=rvt(t,r,i,a);if(o||(r.visible=!1),!!r.visible){ivt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=nvt(t,r,i,a);i.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var u=!s&&o{"use strict";var fvt=qb().getAxisGroup;Qde.exports=function(t,r,n,i,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],u=fvt(n,s)+o,l=n._alignmentOpts||{},f=i("alignmentgroup"),c=l[u];c||(c=l[u]={});var h=c[f];h?h.traces.push(r):h=c[f]={traces:[r],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=i("offsetgroup")||"",p=h.offsetGroups,x=p[d];r._offsetIndex=0,(a!=="group"||d)&&(x||(x=p[d]={offsetIndex:Object.keys(p).length}),r._offsetIndex=x.offsetIndex)}});var hU=Te((csr,epe)=>{"use strict";var cvt=ei(),hvt=Gb(),dvt=Xc();epe.exports=function(t,r){var n,i,a,o=r.scattermode;function s(h){return cvt.coerce(i._input,i,dvt,h)}if(r.scattermode==="group")for(a=0;a=0;f--){var c=t[f];if(c.type==="scatter"&&c.xaxis===u.xaxis&&c.yaxis===u.yaxis){c.opacity=void 0;break}}}}}});var rpe=Te((hsr,tpe)=>{"use strict";var pvt=ei(),vvt=HL();tpe.exports=function(e,t){function r(i,a){return pvt.coerce(e,t,vvt,i,a)}var n=t.barmode==="group";t.scattermode==="group"&&r("scattergap",n?t.bargap:.2)}});var Im=Te((dsr,npe)=>{"use strict";var mvt=ku(),ipe=ei(),yvt=ipe.dateTime2ms,Zz=ipe.incrementMonth,gvt=nf(),_vt=gvt.ONEAVGMONTH;npe.exports=function(t,r,n,i){if(r.type!=="date")return{vals:i};var a=t[n+"periodalignment"];if(!a)return{vals:i};var o=t[n+"period"],s;if(mvt(o)){if(o=+o,o<=0)return{vals:i}}else if(typeof o=="string"&&o.charAt(0)==="M"){var u=+o.substring(1);if(u>0&&Math.round(u)===u)s=u;else return{vals:i}}for(var l=r.calendar,f=a==="start",c=a==="end",h=t[n+"period0"],d=yvt(h,l)||0,p=[],x=[],b=[],v=i.length,k=0;kE;)_=Zz(_,-s,l);for(;_<=E;)_=Zz(_,s,l);L=Zz(_,-s,l)}else{for(T=Math.round((E-d)/o),_=d+T*o;_>E;)_-=o;for(;_<=E;)_+=o;L=_-o}p[k]=f?L:c?_:(L+_)/2,x[k]=L,b[k]=_}return{vals:p,starts:x,ends:b}}});var D0=Te((psr,ope)=>{"use strict";var dU=Rp().hasColorscale,pU=Dp(),ape=lc();ope.exports=function(t,r){ape.hasLines(r)&&dU(r,"line")&&pU(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),ape.hasMarkers(r)&&(dU(r,"marker")&&pU(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),dU(r,"marker.line")&&pU(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var ky=Te((vsr,spe)=>{"use strict";var ch=ei();spe.exports=function(t,r){for(var n=0;n{"use strict";var lpe=ei();upe.exports=function(t,r){lpe.isArrayOrTypedArray(r.selectedpoints)&&lpe.tagSelected(t,r)}});var B0=Te((ysr,mpe)=>{"use strict";var fpe=ku(),mU=ei(),W5=wu(),cpe=Im(),vU=nf().BADNUM,yU=lc(),xvt=D0(),bvt=ky(),wvt=F0();function Avt(e,t){var r=e._fullLayout,n=t._xA=W5.getFromId(e,t.xaxis||"x","x"),i=t._yA=W5.getFromId(e,t.yaxis||"y","y"),a=n.makeCalcdata(t,"x"),o=i.makeCalcdata(t,"y"),s=cpe(t,n,"x",a),u=cpe(t,i,"y",o),l=s.vals,f=u.vals,c=t._length,h=new Array(c),d=t.ids,p=gU(t,r,n,i),x=!1,b,v,k,E,T,L;ppe(r,t);var _="x",C="y",S;if(p)mU.pushUnique(p.traceIndices,t.index),b=p.orientation==="v",b?(C="s",S="x"):(_="s",S="y"),T=p.stackgaps==="interpolate";else{var m=dpe(t,c);hpe(e,t,n,i,l,f,m)}var P=!!t.xperiodalignment,A=!!t.yperiodalignment;for(v=0;vv&&h[E].gap;)E--;for(L=h[E].s,k=h.length-1;k>E;k--)h[k].s=L;for(;v{"use strict";ype.exports=Yz;var Tvt=ei().distinctVals;function Yz(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,n=t.posAxis._id.charAt(0),i=[],a=0;a{"use strict";var O0=ku(),m_=ei().isArrayOrTypedArray,Q3=nf().BADNUM,Svt=$l(),j5=wu(),Mvt=qb().getAxisGroup,Kz=gpe();function Evt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],u=[],l=0;lu+o||!O0(s))}for(var f=0;f{"use strict";var Ape=B0(),Tpe=Hb().setGroupPositions;function qvt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],u=[],l=0;lm[f]&&f{"use strict";var Uvt=Mu(),Lpe=nf(),X5=Lpe.BADNUM,Ppe=Lpe.LOG_CLIP,Epe=Ppe+.5,kpe=Ppe-.5,Jz=ei(),Vvt=Jz.segmentsIntersect,Cpe=Jz.constrain,TU=Sy();zpe.exports=function(t,r){var n=r.trace||{},i=r.xaxis,a=r.yaxis,o=i.type==="log",s=a.type==="log",u=i._length,l=a._length,f=r.backoff,c=n.marker,h=r.connectGaps,d=r.baseTolerance,p=r.shape,x=p==="linear",b=n.fill&&n.fill!=="none",v=[],k=TU.minTolerance,E=t.length,T=new Array(E),L=0,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae;function be(Re){var xe=t[Re];if(!xe)return!1;var Oe=r.linearized?i.l2p(xe.x):i.c2p(xe.x),Ie=r.linearized?a.l2p(xe.y):a.c2p(xe.y);if(Oe===X5){if(o&&(Oe=i.c2p(xe.x,!0)),Oe===X5)return!1;s&&Ie===X5&&(Oe*=Math.abs(i._m*l*(i._m>0?Epe:kpe)/(a._m*u*(a._m>0?Epe:kpe)))),Oe*=1e3}if(Ie===X5){if(s&&(Ie=a.c2p(xe.y,!0)),Ie===X5)return!1;Ie*=1e3}return[Oe,Ie]}function Pe(Re,xe,Oe,Ie){var De=Oe-Re,ct=Ie-xe,_e=.5-Re,fe=.5-xe,pe=De*De+ct*ct,mt=De*_e+ct*fe;if(mt>0&&mt1||Math.abs(_e.y-Oe[0][1])>1)&&(_e=[_e.x,_e.y],Ie&&ke(_e,Re)Ue||Re[1]me)return[Cpe(Re[0],Me,Ue),Cpe(Re[1],Fe,me)]}function At(Re,xe){if(Re[0]===xe[0]&&(Re[0]===Me||Re[0]===Ue)||Re[1]===xe[1]&&(Re[1]===Fe||Re[1]===me))return!0}function St(Re,xe){var Oe=[],Ie=kt(Re),De=kt(xe);return Ie&&De&&At(Ie,De)||(Ie&&Oe.push(Ie),De&&Oe.push(De)),Oe}function Bt(Re,xe,Oe){return function(Ie,De){var ct=kt(Ie),_e=kt(De),fe=[];if(ct&&_e&&At(ct,_e))return fe;ct&&fe.push(ct),_e&&fe.push(_e);var pe=2*Jz.constrain((Ie[Re]+De[Re])/2,xe,Oe)-((ct||Ie)[Re]+(_e||De)[Re]);if(pe){var mt;ct&&_e?mt=pe>0==ct[Re]>_e[Re]?ct:_e:mt=ct||_e,mt[Re]+=pe}return fe}}var Zt;p==="linear"||p==="spline"?Zt=Ye:p==="hv"||p==="vh"?Zt=St:p==="hvh"?Zt=Bt(0,Me,Ue):p==="vhv"&&(Zt=Bt(1,Fe,me));function Et(Re,xe){var Oe=xe[0]-Re[0],Ie=(xe[1]-Re[1])/Oe,De=(Re[1]*xe[0]-xe[1]*Re[0])/Oe;return De>0?[Ie>0?Me:Ue,me]:[Ie>0?Ue:Me,Fe]}function Ae(Re){var xe=Re[0],Oe=Re[1],Ie=xe===T[L-1][0],De=Oe===T[L-1][1];if(!(Ie&&De))if(L>1){var ct=xe===T[L-2][0],_e=Oe===T[L-2][1];Ie&&(xe===Me||xe===Ue)&&ct?_e?L--:T[L-1]=Re:De&&(Oe===Fe||Oe===me)&&_e?ct?L--:T[L-1]=Re:T[L++]=Re}else T[L++]=Re}function ot(Re){T[L-1][0]!==Re[0]&&T[L-1][1]!==Re[1]&&Ae([it,bt]),Ae(Re),Nt=null,it=bt=0}var dt=Jz.isArrayOrTypedArray(c);function pt(Re){if(Re&&f&&(Re.i=_,Re.d=t,Re.trace=n,Re.marker=dt?c[Re.i]:c,Re.backoff=f),Ce=Re[0]/u,de=Re[1]/l,ce=Re[0]Ue?Ue:0,Ke=Re[1]me?me:0,ce||Ke){if(!L)T[L++]=[ce||Re[0],Ke||Re[1]];else if(Nt){var xe=Zt(Nt,Re);xe.length>1&&(ot(xe[0]),T[L++]=xe[1])}else nt=Zt(T[L-1],Re)[0],T[L++]=nt;var Oe=T[L-1];ce&&Ke&&(Oe[0]!==ce||Oe[1]!==Ke)?(Nt&&(it!==ce&&bt!==Ke?Ae(it&&bt?Et(Nt,Re):[it||ce,bt||Ke]):it&&bt&&Ae([it,bt])),Ae([ce,Ke])):it-ce&&bt-Ke&&Ae([ce||it,Ke||bt]),Nt=Re,it=ce,bt=Ke}else Nt&&ot(Zt(Nt,Re)[0]),T[L++]=Re}for(_=0;_te(A,at))break;S=A,N=U[0]*F[0]+U[1]*F[1],N>j?(j=N,m=A,B=!1):N=t.length||!A)break;pt(A),C=A}}Nt&&Ae([it||Nt[0],bt||Nt[1]]),v.push(T.slice(0,L))}var Xe=p.slice(p.length-1);if(f&&Xe!=="h"&&Xe!=="v"){for(var rt=!1,Qe=-1,zt=[],Yt=0;Yt{"use strict";var Ipe={tonextx:1,tonexty:1,tonext:1};Rpe.exports=function(t,r,n){var i,a,o,s,u,l={},f=!1,c=-1,h=0,d=-1;for(a=0;a=0?u=d:(u=d=h,h++),u{"use strict";var Rm=Jl(),Gvt=$l(),Z5=ei(),tA=Z5.ensureSingle,Fpe=Z5.identity,hh=Mu(),rA=lc(),Hvt=SU(),Wvt=MU(),$z=A5().tester;Bpe.exports=function(t,r,n,i,a,o){var s,u,l=!a,f=!!a&&a.duration>0,c=Wvt(t,r,n);if(s=i.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),s.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),s.order(),jvt(t,s,r),f){o&&(u=o());var h=Rm.transition().duration(a.duration).ease(a.easing).each("end",function(){u&&u()}).each("interrupt",function(){u&&u()});h.each(function(){i.selectAll("g.trace").each(function(d,p){Dpe(t,p,r,d,c,this,a)})})}else s.each(function(d,p){Dpe(t,p,r,d,c,this,a)});l&&s.exit().remove(),i.selectAll("path:not([d])").remove()};function jvt(e,t,r){t.each(function(n){var i=tA(Rm.select(this),"g","fills");hh.setClipUrl(i,r.layerClipId,e);var a=n[0].trace,o=[];a._ownfill&&o.push("_ownFill"),a._nexttrace&&o.push("_nextFill");var s=i.selectAll("g").data(o,Fpe);s.enter().append("g"),s.exit().each(function(u){a[u]=null}).remove(),s.order().each(function(u){a[u]=tA(Rm.select(this),"path","js-fill")})})}function Dpe(e,t,r,n,i,a,o){var s=e._context.staticPlot,u;Xvt(e,t,r,n,i);var l=!!o&&o.duration>0;function f(Bt){return l?Bt.transition():Bt}var c=r.xaxis,h=r.yaxis,d=n[0].trace,p=d.line,x=Rm.select(a),b=tA(x,"g","errorbars"),v=tA(x,"g","lines"),k=tA(x,"g","points"),E=tA(x,"g","text");if(Gvt.getComponentMethod("errorbars","plot")(e,b,r,o),d.visible!==!0)return;f(x).style("opacity",d.opacity);var T,L,_=d.fill.charAt(d.fill.length-1);_!=="x"&&_!=="y"&&(_="");var C,S;_==="y"?(C=1,S=h.c2p(0,!0)):_==="x"&&(C=0,S=c.c2p(0,!0)),n[0][r.isRangePlot?"nodeRangePlot3":"node3"]=x;var m="",P=[],A=d._prevtrace,B=null,F=null;A&&(m=A._prevRevpath||"",L=A._nextFill,P=A._ownPolygons,B=A._fillsegments,F=A._fillElement);var U,G,j="",H="",N,W,re,ae,be,Pe,Ce=[];d._polygons=[];var de=[],te=[],ke=Z5.noop;if(T=d._ownFill,rA.hasLines(d)||d.fill!=="none"){L&&L.datum(n),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(N=hh.steps(p.shape),W=hh.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?N=W=function(Bt){var Zt=Bt[Bt.length-1];return Bt.length>1&&Bt[0][0]===Zt[0]&&Bt[0][1]===Zt[1]?hh.smoothclosed(Bt.slice(1),p.smoothing):hh.smoothopen(Bt,p.smoothing)}:N=W=function(Bt){return"M"+Bt.join("L")},re=function(Bt){return W(Bt.reverse())},te=Hvt(n,{xaxis:c,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),de=new Array(te.length);var Ee=0;for(u=0;u=s[0]&&x.x<=s[1]&&x.y>=u[0]&&x.y<=u[1]}),h=Math.ceil(c.length/f),d=0;i.forEach(function(x,b){var v=x[0].trace;rA.hasMarkers(v)&&v.marker.maxdisplayed>0&&b{"use strict";Ope.exports={container:"marker",min:"cmin",max:"cmax"}});var eI=Te((Ssr,qpe)=>{"use strict";var Qz=wu();qpe.exports=function(t,r,n){var i={},a={_fullLayout:n},o=Qz.getFromTrace(a,r,"x"),s=Qz.getFromTrace(a,r,"y"),u=t.orig_x;u===void 0&&(u=t.x);var l=t.orig_y;return l===void 0&&(l=t.y),i.xLabel=Qz.tickText(o,o.c2l(u),!0).text,i.yLabel=Qz.tickText(s,s.c2l(l),!0).text,i}});var av=Te((Msr,Npe)=>{"use strict";var EU=Jl(),nA=Mu(),Zvt=$l();function Yvt(e){var t=EU.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var n=EU.select(this),i=r.trace||r[0].trace;kU(n,i,e)}),t.selectAll("g.text").each(function(r){var n=EU.select(this),i=r.trace||r[0].trace;CU(n,i,e)}),t.selectAll("g.trace path.js-line").call(nA.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(nA.fillGroupStyle,e,!1),Zvt.getComponentMethod("errorbars","style")(t)}function kU(e,t,r){nA.pointStyle(e.selectAll("path.point"),t,r)}function CU(e,t,r){nA.textPointStyle(e.selectAll("text"),t,r)}function Kvt(e,t,r){var n=t[0].trace;n.selectedpoints?(nA.selectedPointStyle(r.selectAll("path.point"),n),nA.selectedTextStyle(r.selectAll("text"),n)):(kU(r,n,e),CU(r,n,e))}Npe.exports={style:Yvt,stylePoints:kU,styleText:CU,styleOnSelect:Kvt}});var oA=Te((Esr,Upe)=>{"use strict";var aA=jl(),Jvt=lc();Upe.exports=function(t,r){var n,i;if(t.mode==="lines")return n=t.line.color,n&&aA.opacity(n)?n:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var a=r.mcc||(t.marker||{}).color,o=r.mlcc||((t.marker||{}).line||{}).color;return i=a&&aA.opacity(a)?a:o&&aA.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",i?aA.opacity(i)<.3?aA.addOpacity(i,.3):i:(n=(t.line||{}).color,n&&aA.opacity(n)&&Jvt.hasLines(t)&&t.line.width?n:t.fillcolor)}});var sA=Te((ksr,Gpe)=>{"use strict";var tI=ei(),Vpe=jc(),$vt=$l(),Qvt=oA(),LU=jl(),e0t=tI.fillText;Gpe.exports=function(t,r,n,i){var a=t.cd,o=a[0].trace,s=t.xa,u=t.ya,l=s.c2p(r),f=u.c2p(n),c=[l,f],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,x=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var b=function(H){if(p){var N=s.c2p(H.xStart),W=s.c2p(H.xEnd);return l>=Math.min(N,W)&&l<=Math.max(N,W)?0:1/0}var re=Math.max(3,H.mrc||0),ae=1-1/re,be=Math.abs(s.c2p(H.x)-l);return be=Math.min(N,W)&&f<=Math.max(N,W)?0:1/0}var re=Math.max(3,H.mrc||0),ae=1-1/re,be=Math.abs(u.c2p(H.y)-f);return beCe!=me>=Ce&&(Me=ke[te-1][0],Ue=ke[te][0],me-Fe&&(Ee=Me+(Ue-Me)*(Ce-Fe)/(me-Fe),re=Math.min(re,Ee),ae=Math.max(ae,Ee)));return re=Math.max(re,0),ae=Math.min(ae,s._length),{x0:re,x1:ae,y0:Ce,y1:Ce}}if(h.indexOf("fills")!==-1&&o._fillElement){var U=B(o._fillElement)&&!B(o._fillExclusionElement);if(U){var G=F(o._polygons);G===null&&(G={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var j=LU.defaultLine;return LU.opacity(o.fillcolor)?j=o.fillcolor:LU.opacity((o.line||{}).color)&&(j=o.line.color),tI.extendFlat(t,{distance:t.maxHoverDistance,x0:G.x0,x1:G.x1,y0:G.y0,y1:G.y1,color:j,hovertemplate:!1}),delete t.index,o.text&&!tI.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var lA=Te((Csr,Wpe)=>{"use strict";var Hpe=lc();Wpe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u,l,f,c,h=!Hpe.hasMarkers(s)&&!Hpe.hasText(s);if(h)return[];if(r===!1)for(u=0;u{"use strict";jpe.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var zU=Te((Psr,Kpe)=>{"use strict";var Y5=$l().traceIs,PU=L3();Kpe.exports=function(t,r,n,i){n("autotypenumbers",i.autotypenumbersDflt);var a=n("type",(i.splomStash||{}).type);a==="-"&&(t0t(r,i.data),r.type==="-"?r.type="linear":t.type=r.type)};function t0t(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i;r.indexOf("scene")!==-1&&(r=n);var a=r0t(t,r,n);if(a){if(a.type==="histogram"&&n==={v:"y",h:"x"}[a.orientation||"v"]){e.type="linear";return}var o=n+"calendar",s=a[o],u={noMultiCategory:!Y5(a,"cartesian")||Y5(a,"noMultiCategory")};if(a.type==="box"&&a._hasPreCompStats&&n==={h:"x",v:"y"}[a.orientation||"v"]&&(u.noMultiCategory=!0),u.autotypenumbers=e.autotypenumbers,Ype(a,n)){var l=Zpe(a),f=[];for(i=0;i0&&(i["_"+r+"axes"]||{})[t])return i;if((i[r+"axis"]||r)===t){if(Ype(i,r))return i;if((i[r]||[]).length||i[r+"0"])return i}}}function Zpe(e){return{v:"x",h:"y"}[e.orientation||"v"]}function Ype(e,t){var r=Zpe(e),n=Y5(e,"box-violin"),i=Y5(e._fullInput||{},"candlestick");return n&&!i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var rI=Te((zsr,Jpe)=>{"use strict";var i0t=mp().isTypedArraySpec;function n0t(e,t){var r=t.dataAttr||e._id.charAt(0),n={},i,a,o;if(t.axData)i=t.axData;else for(i=[],a=0;a0||i0t(a),s;o&&(s="array");var u=n("categoryorder",s),l;u==="array"&&(l=n("categoryarray")),!o&&u==="array"&&(u=r.categoryorder="trace"),u==="trace"?r._initialCategories=[]:u==="array"?r._initialCategories=l.slice():(l=n0t(r,i).sort(),u==="category ascending"?r._initialCategories=l:u==="category descending"&&(r._initialCategories=l.reverse()))}}});var K5=Te((Isr,Qpe)=>{"use strict";var $pe=cd().mix,a0t=Ih(),o0t=ei();Qpe.exports=function(t,r,n,i){i=i||{};var a=i.dfltColor;function o(S,m){return o0t.coerce2(t,r,i.attributes,S,m)}var s=o("linecolor",a),u=o("linewidth"),l=n("showline",i.showLine||!!s||!!u);l||(delete r.linecolor,delete r.linewidth);var f=$pe(a,i.bgColor,i.blend||a0t.lightFraction).toRgbString(),c=o("gridcolor",f),h=o("gridwidth"),d=o("griddash"),p=n("showgrid",i.showGrid||!!c||!!h||!!d);if(p||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),i.hasMinor){var x=$pe(r.gridcolor,i.bgColor,67).toRgbString(),b=o("minor.gridcolor",x),v=o("minor.gridwidth",r.gridwidth||1),k=o("minor.griddash",r.griddash||"solid"),E=n("minor.showgrid",!!b||!!v||!!k);E||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!i.noZeroLine){var T=o("zerolinelayer"),L=o("zerolinecolor",a),_=o("zerolinewidth"),C=n("zeroline",i.showGrid||!!L||!!_);C||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var $5=Te((Rsr,ave)=>{"use strict";var eve=ku(),s0t=$l(),J5=ei(),l0t=Pf(),u0t=Jd(),IU=Dd(),tve=xb(),rve=A3(),f0t=t_(),c0t=r_(),h0t=rI(),d0t=K5(),p0t=MN(),ive=gy(),iI=dd().WEEKDAY_PATTERN,v0t=dd().HOUR_PATTERN;ave.exports=function(t,r,n,i,a){var o=i.letter,s=i.font||{},u=i.splomStash||{},l=n("visible",!i.visibleDflt),f=r._template||{},c=r.type||f.type||"-",h;if(c==="date"){var d=s0t.getComponentMethod("calendars","handleDefaults");d(t,r,"calendar",i.calendar),i.noTicklabelmode||(h=n("ticklabelmode"))}!i.noTicklabelindex&&(c==="date"||c==="linear")&&n("ticklabelindex");var p="";(!i.noTicklabelposition||c==="multicategory")&&(p=J5.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),i.noTicklabeloverflow||n("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),ive(r,a),p0t(t,r,n,i),h0t(t,r,n,i),c!=="category"&&!i.noHover&&n("hoverformat");var x=n("color"),b=x!==IU.color.dflt?x:s.color,v=u.label||a._dfltTitle[o];if(c0t(t,r,n,c,i),!l)return r;n("title.text",v),J5.coerceFont(n,"title.font",s,{overrideDflt:{size:J5.bigFont(s.size),color:b}}),tve(t,r,n,c);var k=i.hasMinor;if(k&&(l0t.newContainer(r,"minor"),tve(t,r,n,c,{isMinor:!0})),f0t(t,r,n,c,i),rve(t,r,n,i),k){var E=i.isMinor;i.isMinor=!0,rve(t,r,n,i),i.isMinor=E}d0t(t,r,n,{dfltColor:x,bgColor:i.bgColor,showGrid:i.showGrid,hasMinor:k,attributes:IU}),k&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&n("mirror");var T=c==="multicategory";if(!i.noTickson&&(c==="category"||T)&&(r.ticks||r.showgrid)&&(T?(n("tickson","boundaries"),delete r.ticklabelposition):n("tickson")),T){var L=n("showdividers");L&&(n("dividercolor"),n("dividerwidth"))}if(c==="date")if(u0t(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:m0t}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var _=0;_=2){var o="",s,u;if(a.length===2){for(s=0;s<2;s++)if(u=nve(a[s]),u){o=iI;break}}var l=n("pattern",o);if(l===iI)for(s=0;s<2;s++)u=nve(a[s]),u&&(t.bounds[s]=a[s]=u-1);if(l)for(s=0;s<2;s++)switch(u=a[s],l){case iI:if(!eve(u)){t.enabled=!1;return}if(u=+u,u!==Math.floor(u)||u<0||u>=7){t.enabled=!1;return}t.bounds[s]=a[s]=u;break;case v0t:if(!eve(u)){t.enabled=!1;return}if(u=+u,u<0||u>24){t.enabled=!1;return}t.bounds[s]=a[s]=u;break}if(r.autorange===!1){var f=r.range;if(f[0]f[1]){t.enabled=!1;return}}else if(a[0]>f[0]&&a[1]{"use strict";var g0t=ku(),nI=ei();ove.exports=function(t,r,n,i){var a=i.counterAxes||[],o=i.overlayableAxes||[],s=i.letter,u=i.grid,l=i.overlayingDomain,f,c,h,d,p,x;u&&(c=u._domains[s][u._axisMap[r._id]],f=u._anchors[r._id],c&&(h=u[s+"side"].split(" ")[0],d=u.domain[s][h==="right"||h==="top"?1:0])),c=c||[0,1],f=f||(g0t(t.position)?"free":a[0]||"free"),h=h||(s==="x"?"bottom":"left"),d=d||0,p=0,x=!1;var b=nI.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(a),dflt:f}},"anchor"),v=nI.coerce(t,r,{side:{valType:"enumerated",values:s==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(b==="free"){if(s==="y"){var k=n("autoshift");k&&(d=v==="left"?l[0]:l[1],x=r.automargin?r.automargin:!0,p=v==="left"?-3:3),n("shift",p)}n("position",d)}n("automargin",x);var E=!1;if(o.length&&(E=nI.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!E){var T=n("domain",c);T[0]>T[1]-1/4096&&(r.domain=c),nI.noneOrAll(t.domain,r.domain,c),r.tickmode==="sync"&&(r.tickmode="auto")}return n("layer"),r}});var vve=Te((Fsr,pve)=>{"use strict";var Wb=ei(),sve=jl(),_0t=rv().isUnifiedHover,x0t=JN(),lve=Pf(),b0t=s3(),uve=Dd(),w0t=zU(),fve=$5(),A0t=qb(),cve=aI(),DU=$c(),Cy=DU.id2name,hve=DU.name2id,T0t=dd().AX_ID_PATTERN,dve=$l(),oI=dve.traceIs,RU=dve.getComponentMethod;function sI(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}pve.exports=function(t,r,n){var i=r.autotypenumbers,a={},o={},s={},u={},l={},f={},c={},h={},d={},p={},x,b;for(x=0;x{"use strict";var S0t=Jl(),mve=$l(),lI=ei(),Qv=Mu(),uI=wu();yve.exports=function(t,r,n,i){var a=t._fullLayout;if(r.length===0){uI.redrawComponents(t);return}function o(b){var v=b.xaxis,k=b.yaxis;a._defs.select("#"+b.clipId+"> rect").call(Qv.setTranslate,0,0).call(Qv.setScale,1,1),b.plot.call(Qv.setTranslate,v._offset,k._offset).call(Qv.setScale,1,1);var E=b.plot.selectAll(".scatterlayer .trace");E.selectAll(".point").call(Qv.setPointGroupScale,1,1),E.selectAll(".textpoint").call(Qv.setTextPointsScale,1,1),E.call(Qv.hideOutsideRangePoints,b)}function s(b,v){var k=b.plotinfo,E=k.xaxis,T=k.yaxis,L=E._length,_=T._length,C=!!b.xr1,S=!!b.yr1,m=[];if(C){var P=lI.simpleMap(b.xr0,E.r2l),A=lI.simpleMap(b.xr1,E.r2l),B=P[1]-P[0],F=A[1]-A[0];m[0]=(P[0]*(1-v)+v*A[0]-P[0])/(P[1]-P[0])*L,m[2]=L*(1-v+v*F/B),E.range[0]=E.l2r(P[0]*(1-v)+v*A[0]),E.range[1]=E.l2r(P[1]*(1-v)+v*A[1])}else m[0]=0,m[2]=L;if(S){var U=lI.simpleMap(b.yr0,T.r2l),G=lI.simpleMap(b.yr1,T.r2l),j=U[1]-U[0],H=G[1]-G[0];m[1]=(U[1]*(1-v)+v*G[1]-U[1])/(U[0]-U[1])*_,m[3]=_*(1-v+v*H/j),T.range[0]=E.l2r(U[0]*(1-v)+v*G[0]),T.range[1]=T.l2r(U[1]*(1-v)+v*G[1])}else m[1]=0,m[3]=_;uI.drawOne(t,E,{skipTitle:!0}),uI.drawOne(t,T,{skipTitle:!0}),uI.redrawComponents(t,[E._id,T._id]);var N=C?L/m[2]:1,W=S?_/m[3]:1,re=C?m[0]:0,ae=S?m[1]:0,be=C?m[0]/m[2]*L:0,Pe=S?m[1]/m[3]*_:0,Ce=E._offset-be,de=T._offset-Pe;k.clipRect.call(Qv.setTranslate,re,ae).call(Qv.setScale,1/N,1/W),k.plot.call(Qv.setTranslate,Ce,de).call(Qv.setScale,N,W),Qv.setPointGroupScale(k.zoomScalePts,1/N,1/W),Qv.setTextPointsScale(k.zoomScaleTxt,1/N,1/W)}var u;i&&(u=i());function l(){for(var b={},v=0;vn.duration?(l(),d=window.cancelAnimationFrame(x)):d=window.requestAnimationFrame(x)}return c=Date.now(),d=window.requestAnimationFrame(x),Promise.resolve()}});var Ah=Te(xp=>{"use strict";var cI=Jl(),_ve=$l(),jb=ei(),M0t=Cc(),E0t=Mu(),xve=Rd().getModuleCalcData,y_=$c(),Dm=dd(),k0t=jv(),Yf=jb.ensureSingle;function fI(e,t,r){return jb.ensureSingle(e,t,r,function(n){n.datum(r)})}var Xb=Dm.zindexSeparator;xp.name="cartesian";xp.attr=["xaxis","yaxis"];xp.idRoot=["x","y"];xp.idRegex=Dm.idRegex;xp.attrRegex=Dm.attrRegex;xp.attributes=Xpe();xp.layoutAttributes=Dd();xp.supplyLayoutDefaults=vve();xp.transitionAxes=gve();xp.finalizeSubplots=function(e,t){var r=t._subplots,n=r.xaxis,i=r.yaxis,a=r.cartesian,o=a,s={},u={},l,f,c;for(l=0;l0){var d=h.id;if(d.indexOf(Xb)!==-1)continue;d+=Xb+(l+1),h=jb.extendFlat({},h,{id:d,plot:i._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],x,b=0;b1&&(L+=Xb+T),E.push(s+L),o=0;o1,c=t.mainplotinfo;if(!t.mainplot||f)if(l)t.xlines=Yf(n,"path","xlines-above"),t.ylines=Yf(n,"path","ylines-above"),t.xaxislayer=Yf(n,"g","xaxislayer-above"),t.yaxislayer=Yf(n,"g","yaxislayer-above");else{if(!o){var h=Yf(n,"g","layer-subplot");t.shapelayer=Yf(h,"g","shapelayer"),t.imagelayer=Yf(h,"g","imagelayer"),c&&f?(t.minorGridlayer=c.minorGridlayer,t.gridlayer=c.gridlayer,t.zerolinelayer=c.zerolinelayer):(t.minorGridlayer=Yf(n,"g","minor-gridlayer"),t.gridlayer=Yf(n,"g","gridlayer"),t.zerolinelayer=Yf(n,"g","zerolinelayer"));var d=Yf(n,"g","layer-between");t.shapelayerBetween=Yf(d,"g","shapelayer"),t.imagelayerBetween=Yf(d,"g","imagelayer"),Yf(n,"path","xlines-below"),Yf(n,"path","ylines-below"),t.overlinesBelow=Yf(n,"g","overlines-below"),Yf(n,"g","xaxislayer-below"),Yf(n,"g","yaxislayer-below"),t.overaxesBelow=Yf(n,"g","overaxes-below")}t.overplot=Yf(n,"g","overplot"),t.plot=Yf(t.overplot,"g",i),c&&f?t.zerolinelayerAbove=c.zerolinelayerAbove:t.zerolinelayerAbove=Yf(n,"g","zerolinelayer-above"),o||(t.xlines=Yf(n,"path","xlines-above"),t.ylines=Yf(n,"path","ylines-above"),t.overlinesAbove=Yf(n,"g","overlines-above"),Yf(n,"g","xaxislayer-above"),Yf(n,"g","yaxislayer-above"),t.overaxesAbove=Yf(n,"g","overaxes-above"),t.xlines=n.select(".xlines-"+s),t.ylines=n.select(".ylines-"+u),t.xaxislayer=n.select(".xaxislayer-"+s),t.yaxislayer=n.select(".yaxislayer-"+u))}else{var p=c.plotgroup,x=i+"-x",b=i+"-y";t.minorGridlayer=c.minorGridlayer,t.gridlayer=c.gridlayer,t.zerolinelayer=c.zerolinelayer,t.zerolinelayerAbove=c.zerolinelayerAbove,Yf(c.overlinesBelow,"path",x),Yf(c.overlinesBelow,"path",b),Yf(c.overaxesBelow,"g",x),Yf(c.overaxesBelow,"g",b),t.plot=Yf(c.overplot,"g",i),Yf(c.overlinesAbove,"path",x),Yf(c.overlinesAbove,"path",b),Yf(c.overaxesAbove,"g",x),Yf(c.overaxesAbove,"g",b),t.xlines=p.select(".overlines-"+s).select("."+x),t.ylines=p.select(".overlines-"+u).select("."+b),t.xaxislayer=p.select(".overaxes-"+s).select("."+x),t.yaxislayer=p.select(".overaxes-"+u).select("."+b)}o||(l||(fI(t.minorGridlayer,"g",t.xaxis._id),fI(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(v){return v[0]}).sort(y_.idSort),fI(t.gridlayer,"g",t.xaxis._id),fI(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(v){return v[0]}).sort(y_.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function Ave(e,t){if(e){var r={};e.each(function(u){var l=u[0],f=cI.select(this);f.remove(),Tve(l,t),r[l]=!0});for(var n in t._plots)for(var i=t._plots[n],a=i.overlays||[],o=0;o{"use strict";var hI=lc();Sve.exports={hasLines:hI.hasLines,hasMarkers:hI.hasMarkers,hasText:hI.hasText,isBubble:hI.isBubble,attributes:Xc(),layoutAttributes:HL(),supplyDefaults:$de(),crossTraceDefaults:hU(),supplyLayoutDefaults:rpe(),calc:B0().calc,crossTraceCalc:Mpe(),arraysToCalcdata:ky(),plot:iA(),colorbar:ep(),formatLabels:eI(),style:av().style,styleOnSelect:av().styleOnSelect,hoverPoints:sA(),selectPoints:lA(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Ah(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var Cve=Te((Nsr,kve)=>{"use strict";var L0t=Jl(),P0t=jl(),Eve=q7(),FU=ei(),z0t=FU.strScale,I0t=FU.strRotate,R0t=FU.strTranslate;kve.exports=function(t,r,n){var i=t.node(),a=Eve[n.arrowhead||0],o=Eve[n.startarrowhead||0],s=(n.arrowwidth||1)*(n.arrowsize||1),u=(n.arrowwidth||1)*(n.startarrowsize||1),l=r.indexOf("start")>=0,f=r.indexOf("end")>=0,c=a.backoff*s+n.standoff,h=o.backoff*u+n.startstandoff,d,p,x,b;if(i.nodeName==="line"){d={x:+t.attr("x1"),y:+t.attr("y1")},p={x:+t.attr("x2"),y:+t.attr("y2")};var v=d.x-p.x,k=d.y-p.y;if(x=Math.atan2(k,v),b=x+Math.PI,c&&h&&c+h>Math.sqrt(v*v+k*k)){U();return}if(c){if(c*c>v*v+k*k){U();return}var E=c*Math.cos(x),T=c*Math.sin(x);p.x+=E,p.y+=T,t.attr({x2:p.x,y2:p.y})}if(h){if(h*h>v*v+k*k){U();return}var L=h*Math.cos(x),_=h*Math.sin(x);d.x-=L,d.y-=_,t.attr({x1:d.x,y1:d.y})}}else if(i.nodeName==="path"){var C=i.getTotalLength(),S="";if(C{"use strict";var Lve=Jl(),BU=$l(),D0t=Cc(),__=ei(),OU=__.strTranslate,eE=wu(),Zb=jl(),Pg=Mu(),Pve=jc(),qU=Zf(),NU=Am(),Q5=gp(),F0t=Pf().arrayEditor,B0t=Cve();Rve.exports={draw:O0t,drawOne:zve,drawRaw:Ive};function O0t(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?De="right":De="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[De]}for(var Fe=!1,me=["x","y"],Ne=0;Ne1)&&(it===Ke?(at=bt.r2fraction(t["a"+ce]),(at<0||at>1)&&(Fe=!0)):Fe=!0),Zt=bt._offset+bt.r2p(t[ce]),ot=.5}else{var Xe=pt==="domain";ce==="x"?(Ae=t[ce],Zt=Xe?bt._offset+bt._length*Ae:Zt=s.l+s.w*Ae):(Ae=1-t[ce],Zt=Xe?bt._offset+bt._length*Ae:Zt=s.t+s.h*Ae),ot=t.showarrow?.5:Ae}if(t.showarrow){Bt.head=Zt;var rt=t["a"+ce];if(dt=nt*Ue(.5,t.xanchor)-Ye*Ue(.5,t.yanchor),it===Ke){var Qe=eE.getRefType(it);Qe==="domain"?(ce==="y"&&(rt=1-rt),Bt.tail=bt._offset+bt._length*rt):Qe==="paper"?ce==="y"?(rt=1-rt,Bt.tail=s.t+s.h*rt):Bt.tail=s.l+s.w*rt:Bt.tail=bt._offset+bt.r2p(rt),Et=dt}else Bt.tail=Zt+rt,Et=dt+rt;Bt.text=Bt.tail+dt;var zt=o[ce==="x"?"width":"height"];if(Ke==="paper"&&(Bt.head=__.constrain(Bt.head,1,zt-1)),it==="pixel"){var Yt=-Math.max(Bt.tail-3,Bt.text),lr=Math.min(Bt.tail+3,Bt.text)-zt;Yt>0?(Bt.tail+=Yt,Bt.text+=Yt):lr>0&&(Bt.tail-=lr,Bt.text-=lr)}Bt.tail+=St,Bt.head+=St}else dt=kt*Ue(ot,At),Et=dt,Bt.text=Zt+dt;Bt.text+=St,dt+=St,Et+=St,t["_"+ce+"padplus"]=kt/2+Et,t["_"+ce+"padminus"]=kt/2-Et,t["_"+ce+"size"]=kt,t["_"+ce+"shift"]=dt}if(Fe){C.remove();return}var mr=0,_r=0;if(t.align!=="left"&&(mr=(te-Ce)*(t.align==="center"?.5:1)),t.valign!=="top"&&(_r=(ke-de)*(t.valign==="middle"?.5:1)),be)ae.select("svg").attr({x:P+mr-1,y:P+_r}).call(Pg.setClipUrl,B?x:null,e);else{var Ht=P+_r-Pe.top,Re=P+mr-Pe.left;j.call(qU.positionText,Re,Ht).call(Pg.setClipUrl,B?x:null,e)}F.select("rect").call(Pg.setRect,P,P,te,ke),A.call(Pg.setRect,S/2,S/2,Ee-S,Me-S),C.call(Pg.setTranslate,Math.round(b.x.text-Ee/2),Math.round(b.y.text-Me/2)),E.attr({transform:"rotate("+v+","+b.x.text+","+b.y.text+")"});var xe=function(Ie,De){k.selectAll(".annotation-arrow-g").remove();var ct=b.x.head,_e=b.y.head,fe=b.x.tail+Ie,pe=b.y.tail+De,mt=b.x.text+Ie,It=b.y.text+De,Pt=__.rotationXYMatrix(v,mt,It),rr=__.apply2DTransform(Pt),Wr=__.apply2DTransform2(Pt),Nr=+A.attr("width"),Er=+A.attr("height"),Br=mt-.5*Nr,mi=Br+Nr,Di=It-.5*Er,Ii=Di+Er,Ci=[[Br,Di,Br,Ii],[Br,Ii,mi,Ii],[mi,Ii,mi,Di],[mi,Di,Br,Di]].map(Wr);if(!Ci.reduce(function(Ir,Gr){return Ir^!!__.segmentsIntersect(ct,_e,ct+1e6,_e+1e6,Gr[0],Gr[1],Gr[2],Gr[3])},!1)){Ci.forEach(function(Ir){var Gr=__.segmentsIntersect(fe,pe,ct,_e,Ir[0],Ir[1],Ir[2],Ir[3]);Gr&&(fe=Gr.x,pe=Gr.y)});var nn=t.arrowwidth,ii=t.arrowcolor,wi=t.arrowside,Gi=k.append("g").style({opacity:Zb.opacity(ii)}).classed("annotation-arrow-g",!0),Ft=Gi.append("path").attr("d","M"+fe+","+pe+"L"+ct+","+_e).style("stroke-width",nn+"px").call(Zb.stroke,Zb.rgb(ii));if(B0t(Ft,wi,t),u.annotationPosition&&Ft.node().parentNode&&!n){var gt=ct,Ut=_e;if(t.standoff){var Wt=Math.sqrt(Math.pow(ct-fe,2)+Math.pow(_e-pe,2));gt+=t.standoff*(fe-ct)/Wt,Ut+=t.standoff*(pe-_e)/Wt}var xr=Gi.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(fe-gt)+","+(pe-Ut),transform:OU(gt,Ut)}).style("stroke-width",nn+6+"px").call(Zb.stroke,"rgba(0,0,0,0)").call(Zb.fill,"rgba(0,0,0,0)"),Lr,Ur;Q5.init({element:xr.node(),gd:e,prepFn:function(){var Ir=Pg.getTranslate(C);Lr=Ir.x,Ur=Ir.y,i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0)},moveFn:function(Ir,Gr){var jr=rr(Lr,Ur),yi=jr[0]+Ir,Ei=jr[1]+Gr;C.call(Pg.setTranslate,yi,Ei),d("x",g_(i,Ir,"x",s,t)),d("y",g_(a,Gr,"y",s,t)),t.axref===t.xref&&d("ax",g_(i,Ir,"ax",s,t)),t.ayref===t.yref&&d("ay",g_(a,Gr,"ay",s,t)),Gi.attr("transform",OU(Ir,Gr)),E.attr({transform:"rotate("+v+","+yi+","+Ei+")"})},doneFn:function(){BU.call("_guiRelayout",e,p());var Ir=document.querySelector(".js-notes-box-panel");Ir&&Ir.redraw(Ir.selectedObj)}})}}};if(t.showarrow&&xe(0,0),T){var Oe;Q5.init({element:C.node(),gd:e,prepFn:function(){Oe=E.attr("transform")},moveFn:function(Ie,De){var ct="pointer";if(t.showarrow)t.axref===t.xref?d("ax",g_(i,Ie,"ax",s,t)):d("ax",t.ax+Ie),t.ayref===t.yref?d("ay",g_(a,De,"ay",s.w,t)):d("ay",t.ay+De),xe(Ie,De);else{if(n)return;var _e,fe;if(i)_e=g_(i,Ie,"x",s,t);else{var pe=t._xsize/s.w,mt=t.x+(t._xshift-t.xshift)/s.w-pe/2;_e=Q5.align(mt+Ie/s.w,pe,0,1,t.xanchor)}if(a)fe=g_(a,De,"y",s,t);else{var It=t._ysize/s.h,Pt=t.y-(t._yshift+t.yshift)/s.h-It/2;fe=Q5.align(Pt-De/s.h,It,0,1,t.yanchor)}d("x",_e),d("y",fe),(!i||!a)&&(ct=Q5.getCursor(i?.5:_e,a?.5:fe,t.xanchor,t.yanchor))}E.attr({transform:OU(Ie,De)+Oe}),NU(C,ct)},clickFn:function(Ie,De){t.captureevents&&e.emit("plotly_clickannotation",_(De))},doneFn:function(){NU(C),BU.call("_guiRelayout",e,p());var Ie=document.querySelector(".js-notes-box-panel");Ie&&Ie.redraw(Ie.selectedObj)}})}}u.annotationText?j.call(qU.makeEditable,{delegate:C,gd:e}).call(H).on("edit",function(W){t.text=W,this.call(H),d("text",W),i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0),BU.call("_guiRelayout",e,p())}):j.call(H)}});var Nve=Te((Vsr,qve)=>{"use strict";var Dve=ei(),q0t=$l(),Fve=Pf().arrayEditor;qve.exports={hasClickToShow:N0t,onClick:U0t};function N0t(e,t){var r=Ove(e,t);return r.on.length>0||r.explicitOff.length>0}function U0t(e,t){var r=Ove(e,t),n=r.on,i=r.off.concat(r.explicitOff),a={},o=e._fullLayout.annotations,s,u;if(n.length||i.length){for(s=0;s{"use strict";var UU=ei(),uA=jl();Uve.exports=function(t,r,n,i){i("opacity");var a=i("bgcolor"),o=i("bordercolor"),s=uA.opacity(o);i("borderpad");var u=i("borderwidth"),l=i("showarrow");i("text",l?" ":n._dfltTitle.annotation),i("textangle"),UU.coerceFont(i,"font",n.font),i("width"),i("align");var f=i("height");if(f&&i("valign"),l){var c=i("arrowside"),h,d;c.indexOf("end")!==-1&&(h=i("arrowhead"),d=i("arrowsize")),c.indexOf("start")!==-1&&(i("startarrowhead",h),i("startarrowsize",d)),i("arrowcolor",s?r.bordercolor:uA.defaultLine),i("arrowwidth",(s&&u||1)*2),i("standoff"),i("startstandoff")}var p=i("hovertext"),x=n.hoverlabel||{};if(p){var b=i("hoverlabel.bgcolor",x.bgcolor||(uA.opacity(a)?uA.rgb(a):uA.defaultLine)),v=i("hoverlabel.bordercolor",x.bordercolor||uA.contrast(b)),k=UU.extendFlat({},x.font);k.color||(k.color=v),UU.coerceFont(i,"hoverlabel.font",k)}i("captureevents",!!p)}});var Gve=Te((Hsr,Vve)=>{"use strict";var GU=ei(),Yb=wu(),V0t=Jd(),G0t=VU(),H0t=Nb();Vve.exports=function(t,r){V0t(t,r,{name:"annotations",handleItemDefaults:W0t})};function W0t(e,t,r){function n(E,T){return GU.coerce(e,t,H0t,E,T)}var i=n("visible"),a=n("clicktoshow");if(i||a){G0t(e,t,r,n);for(var o=t.showarrow,s=["x","y"],u=[-10,-30],l={_fullLayout:r},f=0;f<2;f++){var c=s[f],h=Yb.coerceRef(e,t,l,c,"","paper");if(h!=="paper"){var d=Yb.getFromId(l,h);d._annIndices.push(t._index)}if(Yb.coercePosition(t,l,n,h,c,.5),o){var p="a"+c,x=Yb.coerceRef(e,t,l,p,"pixel",["pixel","paper"]);x!=="pixel"&&x!==h&&(x=t[p]="pixel");var b=x==="pixel"?u[f]:.4;Yb.coercePosition(t,l,n,x,p,b)}n(c+"anchor"),n(c+"shift")}if(GU.noneOrAll(e,t,["x","y"]),o&&GU.noneOrAll(e,t,["ax","ay"]),a){var v=n("xclick"),k=n("yclick");t._xclick=v===void 0?t.x:Yb.cleanPosition(v,l,t.xref),t._yclick=k===void 0?t.y:Yb.cleanPosition(k,l,t.yref)}}}});var jve=Te((Wsr,Wve)=>{"use strict";var HU=ei(),Kb=wu(),j0t=dI().draw;Wve.exports=function(t){var r=t._fullLayout,n=HU.filterVisible(r.annotations);if(n.length&&t._fullData.length)return HU.syncOrAsync([j0t,X0t],t)};function X0t(e){var t=e._fullLayout;HU.filterVisible(t.annotations).forEach(function(r){var n=Kb.getFromId(e,r.xref),i=Kb.getFromId(e,r.yref),a=Kb.getRefType(r.xref),o=Kb.getRefType(r.yref);r._extremes={},a==="range"&&Hve(r,n),o==="range"&&Hve(r,i)})}function Hve(e,t){var r=t._id,n=r.charAt(0),i=e[n],a=e["a"+n],o=e[n+"ref"],s=e["a"+n+"ref"],u=e["_"+n+"padplus"],l=e["_"+n+"padminus"],f={x:1,y:-1}[n]*e[n+"shift"],c=3*e.arrowsize*e.arrowwidth||0,h=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,x=p+f,b=p-f,v;if(s===o){var k=Kb.findExtremes(t,[t.r2c(i)],{ppadplus:h,ppadminus:d}),E=Kb.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(u,x),ppadminus:Math.max(l,b)});v={min:[k.min[0],E.min[0]],max:[k.max[0],E.max[0]]}}else x=a?x+a:x,b=a?b-a:b,v=Kb.findExtremes(t,[t.r2c(i)],{ppadplus:Math.max(u,h,x),ppadminus:Math.max(l,d,b)});e._extremes[r]=v}});var Zve=Te((jsr,Xve)=>{"use strict";var Z0t=ku(),Y0t=cL();Xve.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(!(a||o))return;var s=t._fullLayout.annotations,u=r._id.charAt(0),l,f;function c(d){var p=l[d],x=null;a?x=Y0t(p,r.range):x=Math.pow(10,p),Z0t(x)||(x=null),i(f+d,x)}for(var h=0;h{"use strict";var WU=dI(),Yve=Nve();Kve.exports={moduleType:"component",name:"annotations",layoutAttributes:Nb(),supplyLayoutDefaults:Gve(),includeBasePlot:I5()("annotations"),calcAutorange:jve(),draw:WU.draw,drawOne:WU.drawOne,drawRaw:WU.drawRaw,hasClickToShow:Yve.hasClickToShow,onClick:Yve.onClick,convertCoords:Zve()}});var pI=Te((Zsr,$ve)=>{"use strict";var Pc=Nb(),K0t=Sc().overrideAll,J0t=Pf().templatedArray;$ve.exports=K0t(J0t("annotation",{visible:Pc.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Pc.xanchor,xshift:Pc.xshift,yanchor:Pc.yanchor,yshift:Pc.yshift,text:Pc.text,textangle:Pc.textangle,font:Pc.font,width:Pc.width,height:Pc.height,opacity:Pc.opacity,align:Pc.align,valign:Pc.valign,bgcolor:Pc.bgcolor,bordercolor:Pc.bordercolor,borderpad:Pc.borderpad,borderwidth:Pc.borderwidth,showarrow:Pc.showarrow,arrowcolor:Pc.arrowcolor,arrowhead:Pc.arrowhead,startarrowhead:Pc.startarrowhead,arrowside:Pc.arrowside,arrowsize:Pc.arrowsize,startarrowsize:Pc.startarrowsize,arrowwidth:Pc.arrowwidth,standoff:Pc.standoff,startstandoff:Pc.startstandoff,hovertext:Pc.hovertext,hoverlabel:Pc.hoverlabel,captureevents:Pc.captureevents}),"calc","from-root")});var e0e=Te((Ysr,Qve)=>{"use strict";var jU=ei(),$0t=wu(),Q0t=Jd(),emt=VU(),tmt=pI();Qve.exports=function(t,r,n){Q0t(t,r,{name:"annotations",handleItemDefaults:rmt,fullLayout:n.fullLayout})};function rmt(e,t,r,n){function i(s,u){return jU.coerce(e,t,tmt,s,u)}function a(s){var u=s+"axis",l={_fullLayout:{}};return l._fullLayout[u]=r[u],$0t.coercePosition(t,l,i,s,s,.5)}var o=i("visible");o&&(emt(e,t,n.fullLayout,i),a("x"),a("y"),a("z"),jU.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",i("xanchor"),i("yanchor"),i("xshift"),i("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",i("ax",-10),i("ay",-30),jU.noneOrAll(e,t,["ax","ay"])))}});var n0e=Te((Ksr,i0e)=>{"use strict";var t0e=ei(),r0e=wu();i0e.exports=function(t){for(var r=t.fullSceneLayout,n=r.annotations,i=0;i{"use strict";function XU(e,t){var r=[0,0,0,0],n,i;for(n=0;n<4;++n)for(i=0;i<4;++i)r[i]+=e[4*n+i]*t[n];return r}function nmt(e,t){var r=XU(e.projection,XU(e.view,XU(e.model,[t[0],t[1],t[2],1])));return r}a0e.exports=nmt});var s0e=Te(($sr,o0e)=>{"use strict";var amt=dI().drawRaw,omt=ZU(),smt=["x","y","z"];o0e.exports=function(t){for(var r=t.fullSceneLayout,n=t.dataScale,i=r.annotations,a=0;a1){s=!0;break}}s?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+a+'"]').remove():(o._pdata=omt(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*n[0],r.yaxis.r2l(o.y)*n[1],r.zaxis.r2l(o.z)*n[2]]),amt(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var f0e=Te((Qsr,u0e)=>{"use strict";var lmt=$l(),l0e=ei();u0e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:pI()}}},layoutAttributes:pI(),handleDefaults:e0e(),includeBasePlot:umt,convert:n0e(),draw:s0e()};function umt(e,t){var r=lmt.subplotsRegistry.gl3d;if(r)for(var n=r.attrRegex,i=Object.keys(e),a=0;a{"use strict";var c0e=Nb(),h0e=gc(),d0e=Xc().line,fmt=Id().dash,Fm=Su().extendFlat,cmt=Pf().templatedArray,elr=z5(),fA=Vf(),hmt=Hu().shapeTexttemplateAttrs,dmt=AL();p0e.exports=cmt("shape",{visible:Fm({},fA.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Fm({},fA.legend,{editType:"calc+arraydraw"}),legendgroup:Fm({},fA.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Fm({},fA.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:h0e({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Fm({},fA.legendrank,{editType:"calc+arraydraw"}),legendwidth:Fm({},fA.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Fm({},c0e.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Fm({},c0e.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Fm({},d0e.color,{editType:"arraydraw"}),width:Fm({},d0e.width,{editType:"calc+arraydraw"}),dash:Fm({},fmt,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:hmt({},{keys:Object.keys(dmt)}),font:h0e({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var y0e=Te((rlr,m0e)=>{"use strict";var tE=ei(),cA=wu(),pmt=Jd(),vmt=YU(),v0e=h_();m0e.exports=function(t,r){pmt(t,r,{name:"shapes",handleItemDefaults:ymt})};function mmt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function ymt(e,t,r){function n(W,re){return tE.coerce(e,t,vmt,W,re)}t._isShape=!0;var i=n("visible");if(i){var a=n("showlegend");a&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),tE.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var o=n("path"),s=o?"path":"rect",u=n("type",s),l=u!=="path";l&&delete t.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var f=n("line.width");f&&(n("line.color"),n("line.dash"));for(var c=n("xsizemode"),h=n("ysizemode"),d=["x","y"],p=0;p<2;p++){var x=d[p],b=x+"anchor",v=x==="x"?c:h,k={_fullLayout:r},E,T,L,_=cA.coerceRef(e,t,k,x,void 0,"paper"),C=cA.getRefType(_);if(C==="range"?(E=cA.getFromId(k,_),E._shapeIndices.push(t._index),L=v0e.rangeToShapePosition(E),T=v0e.shapePositionToRange(E),(E.type==="category"||E.type==="multicategory")&&(n(x+"0shift"),n(x+"1shift"))):T=L=tE.identity,l){var S=.25,m=.75,P=x+"0",A=x+"1",B=e[P],F=e[A];e[P]=T(e[P],!0),e[A]=T(e[A],!0),v==="pixel"?(n(P,0),n(A,10)):(cA.coercePosition(t,k,n,_,P,S),cA.coercePosition(t,k,n,_,A,m)),t[P]=L(t[P]),t[A]=L(t[A]),e[P]=B,e[A]=F}if(v==="pixel"){var U=e[b];e[b]=T(e[b],!0),cA.coercePosition(t,k,n,_,b,.25),t[b]=L(t[b]),e[b]=U}}l&&tE.noneOrAll(e,t,["x0","x1","y0","y1"]);var G=u==="line",j,H;if(l&&(j=n("label.texttemplate")),j||(H=n("label.text")),H||j){n("label.textangle");var N=n("label.textposition",G?"middle":"middle center");n("label.xanchor"),n("label.yanchor",mmt(G,N)),n("label.padding"),tE.coerceFont(n,"label.font",r.font)}}}});var x0e=Te((ilr,_0e)=>{"use strict";var gmt=jl(),g0e=ei();function _mt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}_0e.exports=function(t,r,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),g0e.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var i=n("newshape.line.width");if(i){var a=(t||{}).plot_bgcolor||"#FFF";n("newshape.line.color",gmt.contrast(a)),n("newshape.line.dash")}var o=t.dragmode==="drawline",s=n("newshape.label.text"),u=n("newshape.label.texttemplate");if(s||u){n("newshape.label.textangle");var l=n("newshape.label.textposition",o?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",_mt(o,l)),n("newshape.label.padding"),g0e.coerceFont(n,"newshape.label.font",r.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var S0e=Te((nlr,T0e)=>{"use strict";var KU=ei(),hA=wu(),dA=c5(),w0e=h_();T0e.exports=function(t){var r=t._fullLayout,n=KU.filterVisible(r.shapes);if(!(!n.length||!t._fullData.length))for(var i=0;i0?l+o:o;return{ppad:o,ppadplus:s?c:h,ppadminus:s?h:c}}else return{ppad:o}}function b0e(e,t,r){var n=e._id.charAt(0)==="x"?"x":"y",i=e.type==="category"||e.type==="multicategory",a,o,s=0,u=0,l=i?e.r2c:e.d2c,f=t[n+"sizemode"]==="scaled";if(f?(a=t[n+"0"],o=t[n+"1"],i&&(s=t[n+"0shift"],u=t[n+"1shift"])):(a=t[n+"anchor"],o=t[n+"anchor"]),a!==void 0)return[l(a)+s,l(o)+u];if(t.path){var c=1/0,h=-1/0,d=t.path.match(dA.segmentRE),p,x,b,v,k;for(e.type==="date"&&(l=w0e.decodeDate(l)),p=0;ph&&(h=k)));if(h>=c)return[c,h]}}});var k0e=Te((alr,E0e)=>{"use strict";var M0e=nz();E0e.exports={moduleType:"component",name:"shapes",layoutAttributes:YU(),supplyLayoutDefaults:y0e(),supplyDrawNewShapeDefaults:x0e(),includeBasePlot:I5()("shapes"),calcAutorange:S0e(),draw:M0e.draw,drawOne:M0e.drawOne}});var JU=Te((slr,L0e)=>{"use strict";var C0e=dd(),wmt=Pf().templatedArray,olr=z5();L0e.exports=wmt("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",C0e.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",C0e.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var z0e=Te((llr,P0e)=>{"use strict";var Amt=ei(),$U=wu(),Tmt=Jd(),Smt=JU(),Mmt="images";P0e.exports=function(t,r){var n={name:Mmt,handleItemDefaults:Emt};Tmt(t,r,n)};function Emt(e,t,r){function n(h,d){return Amt.coerce(e,t,Smt,h,d)}var i=n("source"),a=n("visible",!!i);if(!a)return t;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var o={_fullLayout:r},s=["x","y"],u=0;u<2;u++){var l=s[u],f=$U.coerceRef(e,t,o,l,"paper",void 0);if(f!=="paper"){var c=$U.getFromId(o,f);c._imgIndices.push(t._index)}$U.coercePosition(t,o,n,f,l,0)}return t}});var F0e=Te((ulr,D0e)=>{"use strict";var I0e=Jl(),kmt=Mu(),pA=wu(),R0e=$c(),Cmt=jv();D0e.exports=function(t){var r=t._fullLayout,n=[],i={},a=[],o,s;for(s=0;s{"use strict";var B0e=ku(),Lmt=cL();O0e.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(a||o){for(var s=t._fullLayout.images,u=r._id.charAt(0),l,f,c=0;c{"use strict";N0e.exports={moduleType:"component",name:"images",layoutAttributes:JU(),supplyLayoutDefaults:z0e(),includeBasePlot:I5()("images"),draw:F0e(),convertCoords:q0e()}});var vI=Te((hlr,V0e)=>{"use strict";V0e.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var QU=Te((dlr,H0e)=>{"use strict";var Pmt=gc(),zmt=Ih(),Imt=Su().extendFlat,Rmt=Sc().overrideAll,Dmt=TL(),G0e=Pf().templatedArray,Fmt=G0e("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});H0e.exports=Rmt(G0e("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Fmt,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Imt(Dmt({editType:"arraydraw"}),{}),font:Pmt({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:zmt.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var Z0e=Te((plr,X0e)=>{"use strict";var mI=ei(),W0e=Jd(),j0e=QU(),Bmt=vI(),Omt=Bmt.name,qmt=j0e.buttons;X0e.exports=function(t,r){var n={name:Omt,handleItemDefaults:Nmt};W0e(t,r,n)};function Nmt(e,t,r){function n(o,s){return mI.coerce(e,t,j0e,o,s)}var i=W0e(e,t,{name:"buttons",handleItemDefaults:Umt}),a=n("visible",i.length>0);a&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),mI.noneOrAll(e,t,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),mI.coerceFont(n,"font",r.font),n("bgcolor",r.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function Umt(e,t){function r(i,a){return mI.coerce(e,t,qmt,i,a)}var n=r("visible",e.method==="skip"||Array.isArray(e.args));n&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var J0e=Te((vlr,K0e)=>{"use strict";K0e.exports=Qc;var Bm=Jl(),Y0e=jl(),vA=Mu(),yI=ei();function Qc(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Qc.barWidth=2;Qc.barLength=20;Qc.barRadius=2;Qc.barPad=1;Qc.barColor="#808BA4";Qc.prototype.enable=function(t,r,n){var i=this.gd._fullLayout,a=i.width,o=i.height;this.position=t;var s=this.position.l,u=this.position.w,l=this.position.t,f=this.position.h,c=this.position.direction,h=c==="down",d=c==="left",p=c==="right",x=c==="up",b=u,v=f,k,E,T,L;!h&&!d&&!p&&!x&&(this.position.direction="down",h=!0);var _=h||x;_?(k=s,E=k+b,h?(T=l,L=Math.min(T+v,o),v=L-T):(L=l+v,T=Math.max(L-v,0),v=L-T)):(T=l,L=T+v,d?(E=s+b,k=Math.max(E-b,0),b=E-k):(k=s,E=Math.min(k+b,a),b=E-k)),this._box={l:k,t:T,w:b,h:v};var C=u>b,S=Qc.barLength+2*Qc.barPad,m=Qc.barWidth+2*Qc.barPad,P=s,A=l+f;A+m>o&&(A=o-m);var B=this.container.selectAll("rect.scrollbar-horizontal").data(C?[0]:[]);B.exit().on(".drag",null).remove(),B.enter().append("rect").classed("scrollbar-horizontal",!0).call(Y0e.fill,Qc.barColor),C?(this.hbar=B.attr({rx:Qc.barRadius,ry:Qc.barRadius,x:P,y:A,width:S,height:m}),this._hbarXMin=P+S/2,this._hbarTranslateMax=b-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var F=f>v,U=Qc.barWidth+2*Qc.barPad,G=Qc.barLength+2*Qc.barPad,j=s+u,H=l;j+U>a&&(j=a-U);var N=this.container.selectAll("rect.scrollbar-vertical").data(F?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-vertical",!0).call(Y0e.fill,Qc.barColor),F?(this.vbar=N.attr({rx:Qc.barRadius,ry:Qc.barRadius,x:j,y:H,width:U,height:G}),this._vbarYMin=H+G/2,this._vbarTranslateMax=v-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var W=this.id,re=k-.5,ae=F?E+U+.5:E+.5,be=T-.5,Pe=C?L+m+.5:L+.5,Ce=i._topdefs.selectAll("#"+W).data(C||F?[0]:[]);if(Ce.exit().remove(),Ce.enter().append("clipPath").attr("id",W).append("rect"),C||F?(this._clipRect=Ce.select("rect").attr({x:Math.floor(re),y:Math.floor(be),width:Math.ceil(ae)-Math.floor(re),height:Math.ceil(Pe)-Math.floor(be)}),this.container.call(vA.setClipUrl,W,this.gd),this.bg.attr({x:s,y:l,width:u,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(vA.setClipUrl,null),delete this._clipRect),C||F){var de=Bm.behavior.drag().on("dragstart",function(){Bm.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(de);var te=Bm.behavior.drag().on("dragstart",function(){Bm.event.sourceEvent.preventDefault(),Bm.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));C&&this.hbar.on(".drag",null).call(te),F&&this.vbar.on(".drag",null).call(te)}this.setTranslate(r,n)};Qc.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(vA.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Qc.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Bm.event.dx),this.vbar&&(r-=Bm.event.dy),this.setTranslate(t,r)};Qc.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Bm.event.deltaY),this.vbar&&(r+=Bm.event.deltaY),this.setTranslate(t,r)};Qc.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var n=t+this._hbarXMin,i=n+this._hbarTranslateMax,a=yI.constrain(Bm.event.x,n,i),o=(a-n)/(i-n),s=this.position.w-this._box.w;t=o*s}if(this.vbar){var u=r+this._vbarYMin,l=u+this._vbarTranslateMax,f=yI.constrain(Bm.event.y,u,l),c=(f-u)/(l-u),h=this.position.h-this._box.h;r=c*h}this.setTranslate(t,r)};Qc.prototype.setTranslate=function(t,r){var n=this.position.w-this._box.w,i=this.position.h-this._box.h;if(t=yI.constrain(t||0,0,n),r=yI.constrain(r||0,0,i),this.translateX=t,this.translateY=r,this.container.call(vA.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var a=t/n;this.hbar.call(vA.setTranslate,t+a*this._hbarTranslateMax,r)}if(this.vbar){var o=r/i;this.vbar.call(vA.setTranslate,t,r+o*this._vbarTranslateMax)}}});var sme=Te((mlr,ome)=>{"use strict";var mA=Jl(),rE=Cc(),iE=jl(),yA=Mu(),e0=ei(),gI=Zf(),Vmt=Pf().arrayEditor,Q0e=Qh().LINE_SPACING,Uu=vI(),Gmt=J0e();ome.exports=function(t){var r=t._fullLayout,n=e0.filterVisible(r[Uu.name]);function i(h){rE.autoMargin(t,nme(h))}var a=r._menulayer.selectAll("g."+Uu.containerClassName).data(n.length>0?[0]:[]);if(a.enter().append("g").classed(Uu.containerClassName,!0).style("cursor","pointer"),a.exit().each(function(){mA.select(this).selectAll("g."+Uu.headerGroupClassName).each(i)}).remove(),n.length!==0){var o=a.selectAll("g."+Uu.headerGroupClassName).data(n,Hmt);o.enter().append("g").classed(Uu.headerGroupClassName,!0);for(var s=e0.ensureSingle(a,"g",Uu.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),u=0;u{"use strict";var Jmt=vI();lme.exports={moduleType:"component",name:Jmt.name,layoutAttributes:QU(),supplyLayoutDefaults:Z0e(),draw:sme()}});var aE=Te((glr,fme)=>{"use strict";fme.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var iV=Te((_lr,dme)=>{"use strict";var cme=gc(),$mt=TL(),Qmt=Su().extendDeepAll,eyt=Sc().overrideAll,tyt=FM(),hme=Pf().templatedArray,Jb=aE(),ryt=hme("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});dme.exports=eyt(hme("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:ryt,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:Qmt($mt({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:tyt.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:cme({})},font:cme({}),activebgcolor:{valType:"color",dflt:Jb.gripBgActiveColor},bgcolor:{valType:"color",dflt:Jb.railBgColor},bordercolor:{valType:"color",dflt:Jb.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Jb.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Jb.tickLength},tickcolor:{valType:"color",dflt:Jb.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Jb.minorTickLength}}),"arraydraw","from-root")});var yme=Te((xlr,mme)=>{"use strict";var gA=ei(),pme=Jd(),vme=iV(),iyt=aE(),nyt=iyt.name,ayt=vme.steps;mme.exports=function(t,r){pme(t,r,{name:nyt,handleItemDefaults:oyt})};function oyt(e,t,r){function n(c,h){return gA.coerce(e,t,vme,c,h)}for(var i=pme(e,t,{name:"steps",handleItemDefaults:syt}),a=0,o=0;o{"use strict";var Om=Jl(),_I=Cc(),x_=jl(),qm=Mu(),t0=ei(),lyt=t0.strTranslate,oE=Zf(),uyt=Pf().arrayEditor,pf=aE(),oV=Qh(),xme=oV.LINE_SPACING,nV=oV.FROM_TL,aV=oV.FROM_BR;Mme.exports=function(t){var r=t._context.staticPlot,n=t._fullLayout,i=fyt(n,t),a=n._infolayer.selectAll("g."+pf.containerClassName).data(i.length>0?[0]:[]);a.enter().append("g").classed(pf.containerClassName,!0).style("cursor",r?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),_I.autoMargin(t,bme(f))}if(a.exit().each(function(){Om.select(this).selectAll("g."+pf.groupClassName).each(o)}).remove(),i.length!==0){var s=a.selectAll("g."+pf.groupClassName).data(i,cyt);s.enter().append("g").classed(pf.groupClassName,!0),s.exit().each(o).remove();for(var u=0;u0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",lyt(o-pf.gripWidth*.5,t._dims.currentValueTotalHeight))}}function sV(e,t){var r=e._dims;return r.inputAreaStart+pf.stepInset+(r.inputAreaLength-2*pf.stepInset)*Math.min(1,Math.max(0,t))}function _me(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-pf.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*pf.stepInset-2*r.inputAreaStart)))}function gyt(e,t,r){var n=r._dims,i=t0.ensureSingle(e,"rect",pf.railTouchRectClass,function(a){a.call(Tme,t,e,r).style("pointer-events","all")});i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,pf.tickOffset+r.ticklen+n.labelHeight)}).call(x_.fill,r.bgcolor).attr("opacity",0),qm.setTranslate(i,0,n.currentValueTotalHeight)}function _yt(e,t){var r=t._dims,n=r.inputAreaLength-pf.railInset*2,i=t0.ensureSingle(e,"rect",pf.railRectClass);i.attr({width:n,height:pf.railWidth,rx:pf.railRadius,ry:pf.railRadius,"shape-rendering":"crispEdges"}).call(x_.stroke,t.bordercolor).call(x_.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),qm.setTranslate(i,pf.railInset,(r.inputAreaWidth-pf.railWidth)*.5+r.currentValueTotalHeight)}});var Cme=Te((wlr,kme)=>{"use strict";var xyt=aE();kme.exports={moduleType:"component",name:xyt.name,layoutAttributes:iV(),supplyLayoutDefaults:yme(),draw:Eme()}});var bI=Te((Alr,Pme)=>{"use strict";var Lme=Ih();Pme.exports={bgcolor:{valType:"color",dflt:Lme.background,editType:"plot"},bordercolor:{valType:"color",dflt:Lme.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var lV=Te((Tlr,zme)=>{"use strict";zme.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var wI=Te((Slr,Ime)=>{"use strict";Ime.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var Fme=Te(TI=>{"use strict";var byt=$c(),wyt=Zf(),Rme=wI(),Ayt=Qh().LINE_SPACING,AI=Rme.name;function Dme(e){var t=e&&e[AI];return t&&t.visible}TI.isVisible=Dme;TI.makeData=function(e){for(var t=byt.list({_fullLayout:e},"x",!0),r=e.margin,n=[],i=0;i{"use strict";var SI=ei(),Bme=Pf(),Ome=$c(),Tyt=bI(),Syt=lV();qme.exports=function(t,r,n){var i=t[n],a=r[n];if(!(i.rangeslider||r._requestRangeslider[a._id]))return;SI.isPlainObject(i.rangeslider)||(i.rangeslider={});var o=i.rangeslider,s=Bme.newContainer(a,"rangeslider");function u(L,_){return SI.coerce(o,s,Tyt,L,_)}var l,f;function c(L,_){return SI.coerce(l,f,Syt,L,_)}var h=u("visible");if(h){u("bgcolor",r.plot_bgcolor),u("bordercolor"),u("borderwidth"),u("thickness"),u("autorange",!a.isValidRange(o.range)),u("range");var d=r._subplots;if(d)for(var p=d.cartesian.filter(function(L){return L.substr(0,L.indexOf("y"))===Ome.name2id(n)}).map(function(L){return L.substr(L.indexOf("y"),L.length)}),x=SI.simpleMap(p,Ome.id2name),b=0;b{"use strict";var Myt=$c().list,Eyt=wm().getAutoRange,kyt=wI();Ume.exports=function(t){for(var r=Myt(t,"x",!0),n=0;n{"use strict";var MI=Jl(),Cyt=$l(),Lyt=Cc(),dh=ei(),EI=dh.strTranslate,Hme=Mu(),b_=jl(),Pyt=Mb(),zyt=Ah(),uV=$c(),Iyt=gp(),Ryt=Am(),Mf=wI();Wme.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,n=0;n=N.max)j=A[H+1];else if(G=N.pmax)j=A[H+1];else if(G0?e.touches[0].clientX:0}function Dyt(e,t,r,n){if(t._context.staticPlot)return;var i=e.select("rect."+Mf.slideBoxClassName).node(),a=e.select("rect."+Mf.grabAreaMinClassName).node(),o=e.select("rect."+Mf.grabAreaMaxClassName).node();function s(){var u=MI.event,l=u.target,f=Gme(u),c=f-e.node().getBoundingClientRect().left,h=n.d2p(r._rl[0]),d=n.d2p(r._rl[1]),p=Iyt.coverSlip();this.addEventListener("touchmove",x),this.addEventListener("touchend",b),p.addEventListener("mousemove",x),p.addEventListener("mouseup",b);function x(v){var k=Gme(v),E=+k-f,T,L,_;switch(l){case i:if(_="ew-resize",h+E>r._length||d+E<0)return;T=h+E,L=d+E;break;case a:if(_="col-resize",h+E>r._length)return;T=h+E,L=d;break;case o:if(_="col-resize",d+E<0)return;T=h,L=d+E;break;default:_="ew-resize",T=c,L=c+E;break}if(L{"use strict";var Wyt=ei(),jyt=bI(),Xyt=lV(),fV=Fme();Xme.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Wyt.extendFlat({},jyt,{yaxis:Xyt})}}},layoutAttributes:bI(),handleDefaults:Nme(),calcAutorange:Vme(),draw:jme(),isVisible:fV.isVisible,makeData:fV.makeData,autoMarginOpts:fV.autoMarginOpts}});var kI=Te((Plr,Kme)=>{"use strict";var Zyt=gc(),Yme=Ih(),Yyt=Pf().templatedArray,Kyt=Yyt("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});Kme.exports={visible:{valType:"boolean",editType:"plot"},buttons:Kyt,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:Zyt({editType:"plot"}),bgcolor:{valType:"color",dflt:Yme.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:Yme.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var cV=Te((zlr,Jme)=>{"use strict";Jme.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var eye=Te((Ilr,Qme)=>{"use strict";var CI=ei(),Jyt=jl(),$yt=Pf(),Qyt=Jd(),$me=kI(),hV=cV();Qme.exports=function(t,r,n,i,a){var o=t.rangeselector||{},s=$yt.newContainer(r,"rangeselector");function u(d,p){return CI.coerce(o,s,$me,d,p)}var l=Qyt(o,s,{name:"buttons",handleItemDefaults:egt,calendar:a}),f=u("visible",l.length>0);if(f){var c=tgt(r,n,i);u("x",c[0]),u("y",c[1]),CI.noneOrAll(t,r,["x","y"]),u("xanchor"),u("yanchor"),CI.coerceFont(u,"font",n.font);var h=u("bgcolor");u("activecolor",Jyt.contrast(h,hV.lightAmount,hV.darkAmount)),u("bordercolor"),u("borderwidth")}};function egt(e,t,r,n){var i=n.calendar;function a(u,l){return CI.coerce(e,t,$me.buttons,u,l)}var o=a("visible");if(o){var s=a("step");s!=="all"&&(i&&i!=="gregorian"&&(s==="month"||s==="year")?t.stepmode="backward":a("stepmode"),a("count")),a("label")}}function tgt(e,t,r){for(var n=r.filter(function(s){return t[s].anchor===e._id}),i=0,a=0;a{"use strict";var rgt=M9(),igt=ei().titleCase;tye.exports=function(t,r){var n=t._name,i={};if(r.step==="all")i[n+".autorange"]=!0;else{var a=ngt(t,r);i[n+".range[0]"]=a[0],i[n+".range[1]"]=a[1]}return i};function ngt(e,t){var r=e.range,n=new Date(e.r2l(r[1])),i=t.step,a=rgt["utc"+igt(i)],o=t.count,s;switch(t.stepmode){case"backward":s=e.l2r(+a.offset(n,-o));break;case"todate":var u=a.offset(n,-o);s=e.l2r(+a.ceil(u));break}var l=r[1];return[s,l]}});var fye=Te((Dlr,uye)=>{"use strict";var PI=Jl(),agt=$l(),ogt=Cc(),iye=jl(),lye=Mu(),zg=ei(),nye=zg.strTranslate,LI=Zf(),sgt=$c(),vV=Qh(),aye=vV.LINE_SPACING,oye=vV.FROM_TL,sye=vV.FROM_BR,pV=cV(),lgt=rye();uye.exports=function(t){var r=t._fullLayout,n=r._infolayer.selectAll(".rangeselector").data(ugt(t),fgt);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(i){var a=PI.select(this),o=i,s=o.rangeselector,u=a.selectAll("g.button").data(zg.filterVisible(s.buttons));u.enter().append("g").classed("button",!0),u.exit().remove(),u.each(function(l){var f=PI.select(this),c=lgt(o,l);l._isActive=cgt(o,l,c),f.call(dV,s,l),f.call(dgt,s,l,t),f.on("click",function(){t._dragged||agt.call("_guiRelayout",t,c)}),f.on("mouseover",function(){l._isHovered=!0,f.call(dV,s,l)}),f.on("mouseout",function(){l._isHovered=!1,f.call(dV,s,l)})}),vgt(t,u,s,o._name,a)})};function ugt(e){for(var t=sgt.list(e,"x",!0),r=[],n=0;n{"use strict";cye.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:kI()}}},layoutAttributes:kI(),handleDefaults:eye(),draw:fye()}});var zc=Te(mV=>{"use strict";var dye=Su().extendFlat;mV.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",i=e.trace?"trace ":"subplot ",a=t.description?" "+t.description:"",o={x:dye({},r,{}),y:dye({},r,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};mV.defaults=function(e,t,r,n){var i=n&&n.x||[0,1],a=n&&n.y||[0,1],o=t.grid;if(o){var s=r("domain.column");s!==void 0&&(s{"use strict";var mgt=ei(),ygt=n3().counter,ggt=zc().attributes,pye=dd().idRegex,_gt=Pf(),yV={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[ygt("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[pye.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[pye.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:ggt({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function zI(e,t,r){var n=t[r+"axes"],i=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(n))return n;if(i.length)return i}function xgt(e,t){var r=e.grid||{},n=zI(t,r,"x"),i=zI(t,r,"y");if(!e.grid&&!n&&!i)return;var a=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),o=Array.isArray(n),s=Array.isArray(i),u=o&&n!==r.xaxes&&s&&i!==r.yaxes,l,f;a?(l=r.subplots.length,f=r.subplots[0].length):(s&&(l=i.length),o&&(f=n.length));var c=_gt.newContainer(t,"grid");function h(_,C){return mgt.coerce(r,c,yV,_,C)}var d=h("rows",l),p=h("columns",f);if(!(d*p>1)){delete t.grid;return}if(!a&&!o&&!s){var x=h("pattern")==="independent";x&&(a=!0)}c._hasSubplotGrid=a;var b=h("roworder"),v=b==="top to bottom",k=a?.2:.1,E=a?.3:.1,T,L;u&&t._splomGridDflt&&(T=t._splomGridDflt.xside,L=t._splomGridDflt.yside),c._domains={x:vye("x",h,k,T,p),y:vye("y",h,E,L,d,v)}}function vye(e,t,r,n,i,a){var o=t(e+"gap",r),s=t("domain."+e);t(e+"side",n);for(var u=new Array(i),l=s[0],f=(s[1]-l)/(i-o),c=f*(1-o),h=0;h{"use strict";gye.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var bye=Te((Nlr,xye)=>{"use strict";var _ye=ku(),wgt=$l(),Agt=ei(),Tgt=Pf(),Sgt=_V();xye.exports=function(e,t,r,n){var i="error_"+n.axis,a=Tgt.newContainer(t,i),o=e[i]||{};function s(p,x){return Agt.coerce(o,a,Sgt,p,x)}var u=o.array!==void 0||o.value!==void 0||o.type==="sqrt",l=s("visible",u);if(l!==!1){var f=s("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=s("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(s("array"),s("traceref"),c||(s("arrayminus"),s("tracerefminus"))):(f==="percent"||f==="constant")&&(s("value"),c||s("valueminus"));var h="copy_"+n.inherit+"style";if(n.inherit){var d=t["error_"+n.inherit];(d||{}).visible&&s(h,!(o.color||_ye(o.thickness)||_ye(o.width)))}(!n.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",wgt.traceIs(t,"gl3d")?0:4))}}});var xV=Te((Ulr,Aye)=>{"use strict";Aye.exports=function(t){var r=t.type,n=t.symmetric;if(r==="data"){var i=t.array||[];if(n)return function(l,f){var c=+i[f];return[c,c]};var a=t.arrayminus||[];return function(l,f){var c=+i[f],h=+a[f];return!isNaN(c)||!isNaN(h)?[h||0,c||0]:[NaN,NaN]}}else{var o=wye(r,t.value),s=wye(r,t.valueminus);return n||t.valueminus===void 0?function(l){var f=o(l);return[f,f]}:function(l){return[s(l),o(l)]}}};function wye(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var Mye=Te((Vlr,Sye)=>{"use strict";var bV=ku(),Mgt=$l(),wV=wu(),Egt=ei(),kgt=xV();Sye.exports=function(t){for(var r=t.calcdata,n=0;n{"use strict";var Eye=Jl(),w_=ku(),Cgt=Mu(),Lgt=lc();kye.exports=function(t,r,n,i){var a,o=n.xaxis,s=n.yaxis,u=i&&i.duration>0,l=t._context.staticPlot;r.each(function(f){var c=f[0].trace,h=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(k){return k.id});var x=Lgt.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var b=Eye.select(this).selectAll("g.errorbar").data(f,p);if(b.exit().remove(),!!f.length){h.visible||b.selectAll("path.xerror").remove(),d.visible||b.selectAll("path.yerror").remove(),b.style("opacity",1);var v=b.enter().append("g").classed("errorbar",!0);u&&v.style("opacity",0).transition().duration(i.duration).style("opacity",1),Cgt.setClipUrl(b,n.layerClipId,t),b.each(function(k){var E=Eye.select(this),T=Pgt(k,o,s);if(!(x&&!k.vis)){var L,_=E.select("path.yerror");if(d.visible&&w_(T.x)&&w_(T.yh)&&w_(T.ys)){var C=d.width;L="M"+(T.x-C)+","+T.yh+"h"+2*C+"m-"+C+",0V"+T.ys,T.noYS||(L+="m-"+C+",0h"+2*C),a=!_.size(),a?_=E.append("path").style("vector-effect",l?"none":"non-scaling-stroke").classed("yerror",!0):u&&(_=_.transition().duration(i.duration).ease(i.easing)),_.attr("d",L)}else _.remove();var S=E.select("path.xerror");if(h.visible&&w_(T.y)&&w_(T.xh)&&w_(T.xs)){var m=(h.copy_ystyle?d:h).width;L="M"+T.xh+","+(T.y-m)+"v"+2*m+"m0,-"+m+"H"+T.xs,T.noXS||(L+="m0,-"+m+"v"+2*m),a=!S.size(),a?S=E.append("path").style("vector-effect",l?"none":"non-scaling-stroke").classed("xerror",!0):u&&(S=S.transition().duration(i.duration).ease(i.easing)),S.attr("d",L)}else S.remove()}})}})};function Pgt(e,t,r){var n={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(n.yh=r.c2p(e.yh),n.ys=r.c2p(e.ys),w_(n.ys)||(n.noYS=!0,n.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=t.c2p(e.xh),n.xs=t.c2p(e.xs),w_(n.xs)||(n.noXS=!0,n.xs=t.c2p(e.xs,!0))),n}});var zye=Te((Hlr,Pye)=>{"use strict";var zgt=Jl(),Lye=jl();Pye.exports=function(t){t.each(function(r){var n=r[0].trace,i=n.error_y||{},a=n.error_x||{},o=zgt.select(this);o.selectAll("path.yerror").style("stroke-width",i.thickness+"px").call(Lye.stroke,i.color),a.copy_ystyle&&(a=i),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(Lye.stroke,a.color)})}});var Dye=Te((Wlr,Rye)=>{"use strict";var sE=ei(),Iye=Sc().overrideAll,lE=_V(),$b={error_x:sE.extendFlat({},lE),error_y:sE.extendFlat({},lE)};delete $b.error_x.copy_zstyle;delete $b.error_y.copy_zstyle;delete $b.error_y.copy_ystyle;var uE={error_x:sE.extendFlat({},lE),error_y:sE.extendFlat({},lE),error_z:sE.extendFlat({},lE)};delete uE.error_x.copy_ystyle;delete uE.error_y.copy_ystyle;delete uE.error_z.copy_ystyle;delete uE.error_z.copy_zstyle;Rye.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:$b,bar:$b,histogram:$b,scatter3d:Iye(uE,"calc","nested"),scattergl:Iye($b,"calc","nested")}},supplyDefaults:bye(),calc:Mye(),makeComputeError:xV(),plot:Cye(),style:zye(),hoverInfo:Igt};function Igt(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var Bye=Te((jlr,Fye)=>{"use strict";Fye.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var Hye=Te((Xlr,Gye)=>{"use strict";var A_=Jl(),AV=cd(),RI=Cc(),Oye=$l(),Ig=wu(),II=gp(),q0=ei(),Um=q0.strTranslate,Vye=Su().extendFlat,TV=Am(),Nm=Mu(),SV=jl(),Rgt=Mb(),Dgt=Zf(),Fgt=Rp().flipScale,Bgt=$5(),Ogt=aI(),qgt=Dd(),MV=Qh(),qye=MV.LINE_SPACING,Nye=MV.FROM_TL,Uye=MV.FROM_BR,Zc=Bye().cn;function Ngt(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+Zc.colorbar).data(Ugt(e),function(n){return n._id});r.enter().append("g").attr("class",function(n){return n._id}).classed(Zc.colorbar,!0),r.each(function(n){var i=A_.select(this);q0.ensureSingle(i,"rect",Zc.cbbg),q0.ensureSingle(i,"g",Zc.cbfills),q0.ensureSingle(i,"g",Zc.cblines),q0.ensureSingle(i,"g",Zc.cbaxis,function(o){o.classed(Zc.crisp,!0)}),q0.ensureSingle(i,"g",Zc.cbtitleunshift,function(o){o.append("g").classed(Zc.cbtitle,!0)}),q0.ensureSingle(i,"rect",Zc.cboutline);var a=Vgt(i,n,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&Ggt(i,n,e)}),r.exit().each(function(n){RI.autoMargin(e,n._id)}).remove(),r.order()}function Ugt(e){var t=e._fullLayout,r=e.calcdata,n=[],i,a,o,s;function u(E){return Vye(E,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function l(){typeof s.calc=="function"?s.calc(e,o,i):(i._fillgradient=a.reversescale?Fgt(a.colorscale):a.colorscale,i._zrange=[a[s.min],a[s.max]])}for(var f=0;f1){var Ne=Math.pow(10,Math.floor(Math.log(me)/Math.LN10));Ue*=Ne*q0.roundUp(me/Ne,[2,5,10]),(Math.abs(B.start)/B.size+1e-6)%1<2e-6&&(Ee.tick0=0)}Ee.dtick=Ue}Ee.domain=n?[te+p/T.h,te+W-p/T.h]:[te+d/T.w,te+W-d/T.w],Ee.setScale(),e.attr("transform",Um(Math.round(T.l),Math.round(T.t)));var ce=e.select("."+Zc.cbtitleunshift).attr("transform",Um(-Math.round(T.l),-Math.round(T.t))),Ke=Ee.ticklabelposition,it=Ee.title.font.size,bt=e.select("."+Zc.cbaxis),Nt,nt=0,Ye=0;function kt(Et,Ae){var ot={propContainer:Ee,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:E._dfltTitle.colorbar,containerGroup:e.select("."+Zc.cbtitle)},dt=Et.charAt(0)==="h"?Et.substr(1):"h"+Et;e.selectAll("."+dt+",."+dt+"-math-group").remove(),Rgt.draw(r,Et,Vye(ot,Ae||{}))}function At(){if(n&&Me||!n&&!Me){var Et,Ae;S==="top"&&(Et=d+T.l+re*x,Ae=p+T.t+ae*(1-te-W)+3+it*.75),S==="bottom"&&(Et=d+T.l+re*x,Ae=p+T.t+ae*(1-te)-3-it*.25),S==="right"&&(Ae=p+T.t+ae*b+3+it*.75,Et=d+T.l+re*te),kt(Ee._id+"title",{attributes:{x:Et,y:Ae,"text-anchor":n?"start":"middle"}})}}function St(){if(n&&!Me||!n&&Me){var Et=Ee.position||0,Ae=Ee._offset+Ee._length/2,ot,dt;if(S==="right")dt=Ae,ot=T.l+re*Et+10+it*(Ee.showticklabels?1:.5);else if(ot=Ae,S==="bottom"&&(dt=T.t+ae*Et+10+(Ke.indexOf("inside")===-1?Ee.tickfont.size:0)+(Ee.ticks!=="intside"&&t.ticklen||0)),S==="top"){var pt=C.text.split("
").length;dt=T.t+ae*Et+10-j-qye*it*pt}kt((n?"h":"v")+Ee._id+"title",{avoid:{selection:A_.select(r).selectAll("g."+Ee._id+"tick"),side:S,offsetTop:n?0:T.t,offsetLeft:n?T.l:0,maxShift:n?E.width:E.height},attributes:{x:ot,y:dt,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function Bt(){if(!n&&!Me||n&&Me){var Et=e.select("."+Zc.cbtitle),Ae=Et.select("text"),ot=[-u/2,u/2],dt=Et.select(".h"+Ee._id+"title-math-group").node(),pt=15.6;Ae.node()&&(pt=parseInt(Ae.node().style.fontSize,10)*qye);var at;if(dt?(at=Nm.bBox(dt),Ye=at.width,nt=at.height,nt>pt&&(ot[1]-=(nt-pt)/2)):Ae.node()&&!Ae.classed(Zc.jsPlaceholder)&&(at=Nm.bBox(Ae.node()),Ye=at.width,nt=at.height),n){if(nt){if(nt+=5,S==="top")Ee.domain[1]-=nt/T.h,ot[1]*=-1;else{Ee.domain[0]+=nt/T.h;var Xe=Dgt.lineCount(Ae);ot[1]+=(1-Xe)*pt}Et.attr("transform",Um(ot[0],ot[1])),Ee.setScale()}}else Ye&&(S==="right"&&(Ee.domain[0]+=(Ye+it/2)/T.w),Et.attr("transform",Um(ot[0],ot[1])),Ee.setScale())}e.selectAll("."+Zc.cbfills+",."+Zc.cblines).attr("transform",n?Um(0,Math.round(T.h*(1-Ee.domain[1]))):Um(Math.round(T.w*Ee.domain[0]),0)),bt.attr("transform",n?Um(0,Math.round(-T.t)):Um(Math.round(-T.l),0));var rt=e.select("."+Zc.cbfills).selectAll("rect."+Zc.cbfill).attr("style","").data(U);rt.enter().append("rect").classed(Zc.cbfill,!0).attr("style",""),rt.exit().remove();var Qe=m.map(Ee.c2p).map(Math.round).sort(function(_r,Ht){return _r-Ht});rt.each(function(_r,Ht){var Re=[Ht===0?m[0]:(U[Ht]+U[Ht-1])/2,Ht===U.length-1?m[1]:(U[Ht]+U[Ht+1])/2].map(Ee.c2p).map(Math.round);n&&(Re[1]=q0.constrain(Re[1]+(Re[1]>Re[0])?1:-1,Qe[0],Qe[1]));var xe=A_.select(this).attr(n?"x":"y",be).attr(n?"y":"x",A_.min(Re)).attr(n?"width":"height",Math.max(j,2)).attr(n?"height":"width",Math.max(A_.max(Re)-A_.min(Re),2));if(t._fillgradient)Nm.gradient(xe,r,t._id,n?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Oe=A(_r).replace("e-","");xe.attr("fill",AV(Oe).toHexString())}});var zt=e.select("."+Zc.cblines).selectAll("path."+Zc.cbline).data(_.color&&_.width?G:[]);zt.enter().append("path").classed(Zc.cbline,!0),zt.exit().remove(),zt.each(function(_r){var Ht=be,Re=Math.round(Ee.c2p(_r))+_.width/2%1;A_.select(this).attr("d","M"+(n?Ht+","+Re:Re+","+Ht)+(n?"h":"v")+j).call(Nm.lineGroupStyle,_.width,P(_r),_.dash)}),bt.selectAll("g."+Ee._id+"tick,path").remove();var Yt=be+j+(u||0)/2-(t.ticks==="outside"?1:0),lr=Ig.calcTicks(Ee),mr=Ig.getTickSigns(Ee)[2];return Ig.drawTicks(r,Ee,{vals:Ee.ticks==="inside"?Ig.clipEnds(Ee,lr):lr,layer:bt,path:Ig.makeTickPath(Ee,Yt,mr),transFn:Ig.makeTransTickFn(Ee)}),Ig.drawLabels(r,Ee,{vals:lr,layer:bt,transFn:Ig.makeTransTickLabelFn(Ee),labelFns:Ig.makeLabelFns(Ee,Yt)})}function Zt(){var Et,Ae=j+u/2;Ke.indexOf("inside")===-1&&(Et=Nm.bBox(bt.node()),Ae+=n?Et.width:Et.height),Nt=ce.select("text");var ot=0,dt=n&&S==="top",pt=!n&&S==="right",at=0;if(Nt.node()&&!Nt.classed(Zc.jsPlaceholder)){var Xe,rt=ce.select(".h"+Ee._id+"title-math-group").node();rt&&(n&&Me||!n&&!Me)?(Et=Nm.bBox(rt),ot=Et.width,Xe=Et.height):(Et=Nm.bBox(ce.node()),ot=Et.right-T.l-(n?be:ke),Xe=Et.bottom-T.t-(n?ke:be),!n&&S==="top"&&(Ae+=Et.height,at=Et.height)),pt&&(Nt.attr("transform",Um(ot/2+it/2,0)),ot*=2),Ae=Math.max(Ae,n?ot:Xe)}var Qe=(n?d:p)*2+Ae+l+u/2,zt=0;!n&&C.text&&h==="bottom"&&b<=0&&(zt=Qe/2,Qe+=zt,at+=zt),E._hColorbarMoveTitle=zt,E._hColorbarMoveCBTitle=at;var Yt=l+u,lr=(n?be:ke)-Yt/2-(n?d:0),mr=(n?ke:be)-(n?N:p+at-zt);e.select("."+Zc.cbbg).attr("x",lr).attr("y",mr).attr(n?"width":"height",Math.max(Qe-zt,2)).attr(n?"height":"width",Math.max(N+Yt,2)).call(SV.fill,f).call(SV.stroke,t.bordercolor).style("stroke-width",l);var _r=pt?Math.max(ot-10,0):0;e.selectAll("."+Zc.cboutline).attr("x",(n?be:ke+d)+_r).attr("y",(n?ke+p-N:be)+(dt?nt:0)).attr(n?"width":"height",Math.max(j,2)).attr(n?"height":"width",Math.max(N-(n?2*p+nt:2*d+_r),2)).call(SV.stroke,t.outlinecolor).style({fill:"none","stroke-width":u});var Ht=n?Pe*Qe:0,Re=n?0:(1-Ce)*Qe-at;if(Ht=k?T.l-Ht:-Ht,Re=v?T.t-Re:-Re,e.attr("transform",Um(Ht,Re)),!n&&(l||AV(f).getAlpha()&&!AV.equals(E.paper_bgcolor,f))){var xe=bt.selectAll("text"),Oe=xe[0].length,Ie=e.select("."+Zc.cbbg).node(),De=Nm.bBox(Ie),ct=Nm.getTranslate(e),_e=2;xe.each(function(Br,mi){var Di=0,Ii=Oe-1;if(mi===Di||mi===Ii){var Ci=Nm.bBox(this),nn=Nm.getTranslate(this),ii;if(mi===Ii){var wi=Ci.right+nn.x,Gi=De.right+ct.x+ke-l-_e+x;ii=Gi-wi,ii>0&&(ii=0)}else if(mi===Di){var Ft=Ci.left+nn.x,gt=De.left+ct.x+ke+l+_e;ii=gt-Ft,ii<0&&(ii=0)}ii&&(Oe<3?this.setAttribute("transform","translate("+ii+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var fe={},pe=Nye[c],mt=Uye[c],It=Nye[h],Pt=Uye[h],rr=Qe-j;n?(a==="pixels"?(fe.y=b,fe.t=N*It,fe.b=N*Pt):(fe.t=fe.b=0,fe.yt=b+i*It,fe.yb=b-i*Pt),s==="pixels"?(fe.x=x,fe.l=Qe*pe,fe.r=Qe*mt):(fe.l=rr*pe,fe.r=rr*mt,fe.xl=x-o*pe,fe.xr=x+o*mt)):(a==="pixels"?(fe.x=x,fe.l=N*pe,fe.r=N*mt):(fe.l=fe.r=0,fe.xl=x+i*pe,fe.xr=x-i*mt),s==="pixels"?(fe.y=1-b,fe.t=Qe*It,fe.b=Qe*Pt):(fe.t=rr*It,fe.b=rr*Pt,fe.yt=b-o*It,fe.yb=b+o*Pt));var Wr=t.y<.5?"b":"t",Nr=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Er={r:E.width-lr-Ht,l:lr+fe.r,b:E.height-mr-Re,t:mr+fe.b};k&&v?RI.autoMargin(r,t._id,fe):k?r._fullLayout._reservedMargin[t._id][Wr]=Er[Wr]:v||n?r._fullLayout._reservedMargin[t._id][Nr]=Er[Nr]:r._fullLayout._reservedMargin[t._id][Wr]=Er[Wr]}return q0.syncOrAsync([RI.previousPromises,At,Bt,St,RI.previousPromises,Zt],r)}function Ggt(e,t,r){var n=t.orientation==="v",i=r._fullLayout,a=i._size,o,s,u;II.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),TV(e)},moveFn:function(l,f){e.attr("transform",o+Um(l,f)),s=II.align((n?t._uFrac:t._vFrac)+l/a.w,n?t._thickFrac:t._lenFrac,0,1,t.xanchor),u=II.align((n?t._vFrac:1-t._uFrac)-f/a.h,n?t._lenFrac:t._thickFrac,0,1,t.yanchor);var c=II.getCursor(s,u,t.xanchor,t.yanchor);TV(e,c)},doneFn:function(){if(TV(e),s!==void 0&&u!==void 0){var l={};l[t._propPrefix+"x"]=s,l[t._propPrefix+"y"]=u,t._traceIndex!==void 0?Oye.call("_guiRestyle",r,l,t._traceIndex):Oye.call("_guiRelayout",r,l)}}})}function Hgt(e,t,r){var n=t._levels,i=[],a=[],o,s,u=n.end+n.size/100,l=n.size,f=1.001*r[0]-.001*r[1],c=1.001*r[1]-.001*r[0];for(s=0;s<1e5&&(o=n.start+s*l,!(l>0?o>=u:o<=u));s++)o>f&&o0?o>=u:o<=u));s++)o>r[0]&&o{"use strict";Wye.exports={moduleType:"component",name:"colorbar",attributes:$L(),supplyDefaults:Oq(),draw:Hye().draw,hasColorbar:Pq()}});var Zye=Te((Ylr,Xye)=>{"use strict";Xye.exports={moduleType:"component",name:"legend",layoutAttributes:PN(),supplyLayoutDefaults:RN(),draw:jN(),style:VN()}});var Kye=Te((Klr,Yye)=>{"use strict";Yye.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var $ye=Te((Jlr,Jye)=>{"use strict";Jye.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var kV=Te(($lr,rge)=>{"use strict";var jgt=$l(),tge=ei(),EV=tge.extendFlat,Qye=tge.extendDeep;function ege(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function Xgt(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}rge.exports=function(t,r){var n,i=t.data,a=t.layout,o=Qye([],i),s=Qye({},a,ege(r.tileClass)),u=t._context||{};if(r.width&&(s.width=r.width),r.height&&(s.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){s.annotations=[];var l=Object.keys(s);for(n=0;n{"use strict";var Zgt=pb().EventEmitter,Ygt=$l(),Kgt=ei(),ige=Lg(),Jgt=kV(),$gt=Uz(),Qgt=Vz();function e1t(e,t){var r=new Zgt,n=Jgt(e,{format:"png"}),i=n.gd;i.style.position="absolute",i.style.left="-5000px",document.body.appendChild(i);function a(){var s=ige.getDelay(i._fullLayout);setTimeout(function(){var u=$gt(i),l=document.createElement("canvas");l.id=Kgt.randstr(),r=Qgt({format:t.format,width:i._fullLayout.width,height:i._fullLayout.height,canvas:l,emitter:r,svg:u}),r.clean=function(){i&&document.body.removeChild(i)}},s)}var o=ige.getRedrawFunc(i);return Ygt.call("_doPlot",i,n.data,n.layout,n.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}nge.exports=e1t});var lge=Te((eur,sge)=>{"use strict";var oge=Lg(),t1t={getDelay:oge.getDelay,getRedrawFunc:oge.getRedrawFunc,clone:kV(),toSVG:Uz(),svgToImg:Vz(),toImage:age(),downloadImage:uU()};sge.exports=t1t});var fge=Te(Rg=>{"use strict";Rg.version=rL().version;Tee();dne();var r1t=$l(),fE=Rg.register=r1t.register,LV=zde(),uge=Object.keys(LV);for(DI=0;DI{"use strict";cge.exports=fge()});var Qb=Te((iur,dge)=>{"use strict";dge.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Ly=Te((nur,yge)=>{"use strict";var ah=Xc(),pge=Hc().axisHoverFormat,i1t=Hu().hovertemplateAttrs,n1t=Hu().texttemplateAttrs,mge=nc(),a1t=gc(),vge=Qb(),o1t=Id().pattern,e2=Su().extendFlat,PV=a1t({editType:"calc",arrayOk:!0,colorEditType:"style"}),s1t=ah.marker,l1t=s1t.line,u1t=e2({},l1t.width,{dflt:0}),f1t=e2({width:u1t,editType:"calc"},mge("marker.line")),c1t=e2({line:f1t,editType:"calc"},mge("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:o1t,cornerradius:{valType:"any",editType:"calc"}});yge.exports={x:ah.x,x0:ah.x0,dx:ah.dx,y:ah.y,y0:ah.y0,dy:ah.dy,xperiod:ah.xperiod,yperiod:ah.yperiod,xperiod0:ah.xperiod0,yperiod0:ah.yperiod0,xperiodalignment:ah.xperiodalignment,yperiodalignment:ah.yperiodalignment,xhoverformat:pge("x"),yhoverformat:pge("y"),text:ah.text,texttemplate:n1t({editType:"plot"},{keys:vge.eventDataKeys}),hovertext:ah.hovertext,hovertemplate:i1t({},{keys:vge.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:e2({},PV,{}),insidetextfont:e2({},PV,{}),outsidetextfont:e2({},PV,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:e2({},ah.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:c1t,offsetgroup:ah.offsetgroup,alignmentgroup:ah.alignmentgroup,selected:{marker:{opacity:ah.selected.marker.opacity,color:ah.selected.marker.color,editType:"style"},textfont:ah.selected.textfont,editType:"style"},unselected:{marker:{opacity:ah.unselected.marker.opacity,color:ah.unselected.marker.color,editType:"style"},textfont:ah.unselected.textfont,editType:"style"},zorder:ah.zorder}});var BI=Te((aur,gge)=>{"use strict";gge.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var OI=Te((our,bge)=>{"use strict";var h1t=jl(),_ge=Rp().hasColorscale,xge=ed(),d1t=ei().coercePattern;bge.exports=function(t,r,n,i,a){var o=n("marker.color",i),s=_ge(t,"marker");s&&xge(t,r,a,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",h1t.defaultLine),_ge(t,"marker.line")&&xge(t,r,a,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width"),n("marker.opacity"),d1t(n,"marker.pattern",o,s),n("selected.marker.color"),n("unselected.marker.color")}});var r0=Te((sur,Ege)=>{"use strict";var wge=ku(),xA=ei(),Age=jl(),p1t=$l(),v1t=K3(),m1t=Pm(),y1t=OI(),g1t=Gb(),Tge=Ly(),qI=xA.coerceFont;function _1t(e,t,r,n){function i(l,f){return xA.coerce(e,t,Tge,l,f)}var a=v1t(e,t,n,i);if(!a){t.visible=!1;return}m1t(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate");var o=i("textposition");Mge(e,t,n,i,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),y1t(e,t,i,r,n);var s=(t.marker.line||{}).color,u=p1t.getComponentMethod("errorbars","supplyDefaults");u(e,t,s||Age.defaultLine,{axis:"y"}),u(e,t,s||Age.defaultLine,{axis:"x",inherit:"y"}),xA.coerceSelectionMarkerOpacity(t,i)}function x1t(e,t){var r,n;function i(s,u){return xA.coerce(n._input,n,Tge,s,u)}for(var a=0;a=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&wge(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function Mge(e,t,r,n,i,a){a=a||{};var o=a.moduleHasSelected!==!1,s=a.moduleHasUnselected!==!1,u=a.moduleHasConstrain!==!1,l=a.moduleHasCliponaxis!==!1,f=a.moduleHasTextangle!==!1,c=a.moduleHasInsideanchor!==!1,h=!!a.hasPathbar,d=Array.isArray(i)||i==="auto",p=d||i==="inside",x=d||i==="outside";if(p||x){var b=qI(n,"textfont",r.font),v=xA.extendFlat({},b),k=e.textfont&&e.textfont.color,E=!k;if(E&&delete v.color,qI(n,"insidetextfont",v),h){var T=xA.extendFlat({},b);E&&delete T.color,qI(n,"pathbar.textfont",T)}x&&qI(n,"outsidetextfont",b),o&&n("selected.textfont.color"),s&&n("unselected.textfont.color"),u&&n("constraintext"),l&&n("cliponaxis"),f&&n("textangle"),n("texttemplate")}p&&c&&n("insidetextanchor")}Ege.exports={supplyDefaults:_1t,crossTraceDefaults:x1t,handleText:Mge,validateCornerradius:Sge}});var zV=Te((lur,kge)=>{"use strict";var b1t=$l(),w1t=wu(),A1t=ei(),T1t=BI(),S1t=r0().validateCornerradius;kge.exports=function(e,t,r){function n(x,b){return A1t.coerce(e,t,T1t,x,b)}for(var i=!1,a=!1,o=!1,s={},u=n("barmode"),l=u==="group",f=0;f0&&!s[h]&&(o=!0),s[h]=!0),c.visible&&c.type==="histogram"){var d=w1t.getFromId({_fullLayout:t},c[c.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(a=!0)}}if(!i){delete t.barmode;return}u!=="overlay"&&n("barnorm"),n("bargap",a&&!o?0:.2),n("bargroupgap");var p=n("barcornerradius");t.barcornerradius=S1t(p)}});var cE=Te((uur,Cge)=>{"use strict";var bA=ei();Cge.exports=function(t,r){for(var n=0;n{"use strict";var Lge=wu(),Pge=Im(),zge=Rp().hasColorscale,Ige=Dp(),M1t=cE(),E1t=F0();Rge.exports=function(t,r){var n=Lge.getFromId(t,r.xaxis||"x"),i=Lge.getFromId(t,r.yaxis||"y"),a,o,s,u,l,f,c={msUTC:!!(r.base||r.base===0)};r.orientation==="h"?(a=n.makeCalcdata(r,"x",c),s=i.makeCalcdata(r,"y"),u=Pge(r,i,"y",s),l=!!r.yperiodalignment,f="y"):(a=i.makeCalcdata(r,"y",c),s=n.makeCalcdata(r,"x"),u=Pge(r,n,"x",s),l=!!r.xperiodalignment,f="x"),o=u.vals;for(var h=Math.min(o.length,a.length),d=new Array(h),p=0;p{"use strict";var k1t=Jl(),C1t=ei();function L1t(e,t,r){var n=e._fullLayout,i=n["_"+r+"Text_minsize"];if(i){var a=n.uniformtext.mode==="hide",o;switch(r){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}t.selectAll(o).each(function(s){var u=s.transform;if(u){u.scale=a&&u.hide?0:i/u.fontSize;var l=k1t.select(this).select("text");C1t.setTransormAndDisplay(l,u)}})}}function P1t(e,t,r){if(r.uniformtext.mode){var n=Fge(e),i=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a{"use strict";var I1t=ku(),R1t=cd(),Oge=ei().isArrayOrTypedArray;t2.coerceString=function(e,t,r){if(typeof t=="string"){if(t||!e.noBlank)return t}else if((typeof t=="number"||t===!0)&&!e.strict)return String(t);return r!==void 0?r:e.dflt};t2.coerceNumber=function(e,t,r){if(I1t(t)){t=+t;var n=e.min,i=e.max,a=n!==void 0&&ti;if(!a)return t}return r!==void 0?r:e.dflt};t2.coerceColor=function(e,t,r){return R1t(t).isValid()?t:r!==void 0?r:e.dflt};t2.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};t2.getValue=function(e,t){var r;return Oge(e)?t{"use strict";var hE=Jl(),D1t=jl(),dE=Mu(),qge=ei(),Nge=$l(),Uge=bp().resizeText,IV=Ly(),F1t=IV.textfont,B1t=IV.insidetextfont,O1t=IV.outsidetextfont,tp=NI();function q1t(e){var t=hE.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");Uge(e,t,"bar");var r=t.size(),n=e._fullLayout;t.style("opacity",function(i){return i[0].trace.opacity}).each(function(i){(n.barmode==="stack"&&r>1||n.bargap===0&&n.bargroupgap===0&&!i[0].trace.marker.line.width)&&hE.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(i){var a=hE.select(this),o=i[0].trace;Vge(a,o,e)}),Nge.getComponentMethod("errorbars","style")(t)}function Vge(e,t,r){dE.pointStyle(e.selectAll("path"),t,r),Gge(e,t,r)}function Gge(e,t,r){e.selectAll("text").each(function(n){var i=hE.select(this),a=qge.ensureUniformFontSize(r,Hge(i,n,t,r));dE.font(i,a)})}function N1t(e,t,r){var n=t[0].trace;n.selectedpoints?U1t(r,n,e):(Vge(r,n,e),Nge.getComponentMethod("errorbars","style")(r))}function U1t(e,t,r){dE.selectedPointStyle(e.selectAll("path"),t),V1t(e.selectAll("text"),t,r)}function V1t(e,t,r){e.each(function(n){var i=hE.select(this),a;if(n.selected){a=qge.ensureUniformFontSize(r,Hge(i,n,t,r));var o=t.selected.textfont&&t.selected.textfont.color;o&&(a.color=o),dE.font(i,a)}else dE.selectedTextStyle(i,t)})}function Hge(e,t,r,n){var i=n._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=Zge(t,r);a=jge(r,t.i,i,o)}else e.classed("bartext-outside")&&(a=Xge(r,t.i,i));return a}function Wge(e,t,r){return RV(F1t,e.textfont,t,r)}function jge(e,t,r,n){var i=Wge(e,t,r),a=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[t]===void 0;return a&&(i={color:D1t.contrast(n),family:i.family,size:i.size,weight:i.weight,style:i.style,variant:i.variant,textcase:i.textcase,lineposition:i.lineposition,shadow:i.shadow}),RV(B1t,e.insidetextfont,t,i)}function Xge(e,t,r){var n=Wge(e,t,r);return RV(O1t,e.outsidetextfont,t,n)}function RV(e,t,r,n){t=t||{};var i=tp.getValue(t.family,r),a=tp.getValue(t.size,r),o=tp.getValue(t.color,r),s=tp.getValue(t.weight,r),u=tp.getValue(t.style,r),l=tp.getValue(t.variant,r),f=tp.getValue(t.textcase,r),c=tp.getValue(t.lineposition,r),h=tp.getValue(t.shadow,r);return{family:tp.coerceString(e.family,i,n.family),size:tp.coerceNumber(e.size,a,n.size),color:tp.coerceColor(e.color,o,n.color),weight:tp.coerceString(e.weight,s,n.weight),style:tp.coerceString(e.style,u,n.style),variant:tp.coerceString(e.variant,l,n.variant),textcase:tp.coerceString(e.variant,f,n.textcase),lineposition:tp.coerceString(e.variant,c,n.lineposition),shadow:tp.coerceString(e.variant,h,n.shadow)}}function Zge(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}Yge.exports={style:q1t,styleTextPoints:Gge,styleOnSelect:N1t,getInsideTextFont:jge,getOutsideTextFont:Xge,getBarColor:Zge,resizeText:Uge}});var i2=Te((pur,i1e)=>{"use strict";var UI=Jl(),VI=ku(),Bd=ei(),G1t=Zf(),H1t=jl(),T_=Mu(),W1t=$l(),GI=wu().tickText,Kge=bp(),j1t=Kge.recordMinTextSize,X1t=Kge.clearMinTextSize,DV=N0(),wA=NI(),Z1t=Qb(),Jge=Ly(),Y1t=Jge.text,K1t=Jge.textposition,J1t=rv().appendArrayPointValue,Up=Z1t.TEXTPAD;function $1t(e){return e.id}function Q1t(e){if(e.ids)return $1t}function FV(e){return(e>0)-(e<0)}function Py(e,t){return e0}function t_t(e,t,r,n,i,a){var o=t.xaxis,s=t.yaxis,u=e._fullLayout,l=e._context.staticPlot;i||(i={mode:u.barmode,norm:u.barmode,gap:u.bargap,groupgap:u.bargroupgap},X1t("bar",u));var f=Bd.makeTraceGroups(n,r,"trace bars").each(function(c){var h=UI.select(this),d=c[0].trace,p=c[0].t,x=d.type==="waterfall",b=d.type==="funnel",v=d.type==="histogram",k=d.type==="bar",E=k||b,T=0;x&&d.connector.visible&&d.connector.mode==="between"&&(T=d.connector.line.width/2);var L=d.orientation==="h",_=Qge(i),C=Bd.ensureSingle(h,"g","points"),S=Q1t(d),m=C.selectAll("g.point").data(Bd.identity,S);m.enter().append("g").classed("point",!0),m.exit().remove(),m.each(function(A,B){var F=UI.select(this),U=e_t(A,o,s,L),G=U[0][0],j=U[0][1],H=U[1][0],N=U[1][1],W=(L?j-G:N-H)===0;W&&E&&wA.getLineWidth(d,A)&&(W=!1),W||(W=!VI(G)||!VI(j)||!VI(H)||!VI(N)),A.isBlank=W,W&&(L?j=G:N=H),T&&!W&&(L?(G-=Py(G,j)*T,j+=Py(G,j)*T):(H-=Py(H,N)*T,N+=Py(H,N)*T));var re,ae;if(d.type==="waterfall"){if(!W){var be=d[A.dir].marker;re=be.line.width,ae=be.color}}else re=wA.getLineWidth(d,A),ae=A.mc||d.marker.color;function Pe(Ae){var ot=UI.round(re/2%1,2);return i.gap===0&&i.groupgap===0?UI.round(Math.round(Ae)-ot,2):Ae}function Ce(Ae,ot,dt){return dt&&Ae===ot?Ae:Math.abs(Ae-ot)>=2?Pe(Ae):Ae>ot?Math.ceil(Ae):Math.floor(Ae)}var de=H1t.opacity(ae),te=de<1||re>.01?Pe:Ce;e._context.staticPlot||(G=te(G,j,L),j=te(j,G,L),H=te(H,N,!L),N=te(N,H,!L));var ke=L?o.c2p:s.c2p,Ee;A.s0>0?Ee=A._sMax:A.s0<0?Ee=A._sMin:Ee=A.s1>0?A._sMax:A._sMin;function Me(Ae,ot){if(!Ae)return 0;var dt=Math.abs(L?N-H:j-G),pt=Math.abs(L?j-G:N-H),at=te(Math.abs(ke(Ee,!0)-ke(0,!0))),Xe=A.hasB?Math.min(dt/2,pt/2):Math.min(dt/2,at),rt;if(ot==="%"){var Qe=Math.min(50,Ae);rt=dt*(Qe/100)}else rt=Ae;return te(Math.max(Math.min(rt,Xe),0))}var Ue=k||v?Me(p.cornerradiusvalue,p.cornerradiusform):0,Fe,me,Ne="M"+G+","+H+"V"+N+"H"+j+"V"+H+"Z",ce=0;if(Ue&&A.s){var Ke=FV(A.s0)===0||FV(A.s)===FV(A.s0)?A.s1:A.s0;if(ce=te(A.hasB?0:Math.abs(ke(Ee,!0)-ke(Ke,!0))),ce0?Math.sqrt(ce*(2*Ue-ce)):0,kt=it>0?Math.max:Math.min;Fe="M"+G+","+H+"V"+(N-nt*bt)+"H"+kt(j-(Ue-ce)*it,G)+"A "+Ue+","+Ue+" 0 0 "+Nt+" "+j+","+(N-Ue*bt-Ye)+"V"+(H+Ue*bt+Ye)+"A "+Ue+","+Ue+" 0 0 "+Nt+" "+kt(j-(Ue-ce)*it,G)+","+(H+nt*bt)+"Z"}else if(A.hasB)Fe="M"+(G+Ue*it)+","+H+"A "+Ue+","+Ue+" 0 0 "+Nt+" "+G+","+(H+Ue*bt)+"V"+(N-Ue*bt)+"A "+Ue+","+Ue+" 0 0 "+Nt+" "+(G+Ue*it)+","+N+"H"+(j-Ue*it)+"A "+Ue+","+Ue+" 0 0 "+Nt+" "+j+","+(N-Ue*bt)+"V"+(H+Ue*bt)+"A "+Ue+","+Ue+" 0 0 "+Nt+" "+(j-Ue*it)+","+H+"Z";else{me=Math.abs(N-H)+ce;var At=me0?Math.sqrt(ce*(2*Ue-ce)):0,Bt=bt>0?Math.max:Math.min;Fe="M"+(G+At*it)+","+H+"V"+Bt(N-(Ue-ce)*bt,H)+"A "+Ue+","+Ue+" 0 0 "+Nt+" "+(G+Ue*it-St)+","+N+"H"+(j-Ue*it+St)+"A "+Ue+","+Ue+" 0 0 "+Nt+" "+(j-At*it)+","+Bt(N-(Ue-ce)*bt,H)+"V"+H+"Z"}}else Fe=Ne}else Fe=Ne;var Zt=$ge(Bd.ensureSingle(F,"path"),u,i,a);if(Zt.style("vector-effect",l?"none":"non-scaling-stroke").attr("d",isNaN((j-G)*(N-H))||W&&e._context.staticPlot?"M0,0Z":Fe).call(T_.setClipUrl,t.layerClipId,e),!u.uniformtext.mode&&_){var Et=T_.makePointStyleFns(d);T_.singlePointStyle(A,Zt,d,Et,e)}r_t(e,t,F,c,B,G,j,H,N,Ue,ce,i,a),t.layerClipId&&T_.hideOutsideRangePoint(A,F.select("text"),o,s,d.xcalendar,d.ycalendar)});var P=d.cliponaxis===!1;T_.setClipUrl(h,P?null:t.layerClipId,e)});W1t.getComponentMethod("errorbars","plot")(e,f,t,i)}function r_t(e,t,r,n,i,a,o,s,u,l,f,c,h){var d=t.xaxis,p=t.yaxis,x=e._fullLayout,b;function v(me,Ne,ce){var Ke=Bd.ensureSingle(me,"text").text(Ne).attr({class:"bartext bartext-"+b,"text-anchor":"middle","data-notex":1}).call(T_.font,ce).call(G1t.convertToTspans,e);return Ke}var k=n[0].trace,E=k.orientation==="h",T=a_t(x,n,i,d,p);b=o_t(k,i);var L=c.mode==="stack"||c.mode==="relative",_=n[i],C=!L||_._outmost,S=_.hasB,m=l&&l-f>Up;if(!T||b==="none"||(_.isBlank||a===o||s===u)&&(b==="auto"||b==="inside")){r.select("text").remove();return}var P=x.font,A=DV.getBarColor(n[i],k),B=DV.getInsideTextFont(k,i,P,A),F=DV.getOutsideTextFont(k,i,P),U=k.insidetextanchor||"end",G=r.datum();E?d.type==="log"&&G.s0<=0&&(d.range[0]0&&Pe>0,te;m?S?te=r2(N-2*l,W,be,Pe,E)||r2(N,W-2*l,be,Pe,E):E?te=r2(N-(l-f),W,be,Pe,E)||r2(N,W-2*(l-f),be,Pe,E):te=r2(N,W-(l-f),be,Pe,E)||r2(N-2*(l-f),W,be,Pe,E):te=r2(N,W,be,Pe,E),de&&te?b="inside":(b="outside",re.remove(),re=null)}else b="inside";if(!re){Ce=Bd.ensureUniformFontSize(e,b==="outside"?F:B),re=v(r,T,Ce);var ke=re.attr("transform");if(re.attr("transform",""),ae=T_.bBox(re.node()),be=ae.width,Pe=ae.height,re.attr("transform",ke),be<=0||Pe<=0){re.remove();return}}var Ee=k.textangle,Me,Ue;b==="outside"?(Ue=k.constraintext==="both"||k.constraintext==="outside",Me=n_t(a,o,s,u,ae,{isHorizontal:E,constrained:Ue,angle:Ee})):(Ue=k.constraintext==="both"||k.constraintext==="inside",Me=r1e(a,o,s,u,ae,{isHorizontal:E,constrained:Ue,angle:Ee,anchor:U,hasB:S,r:l,overhead:f})),Me.fontSize=Ce.size,j1t(k.type==="histogram"?"bar":k.type,Me,x),_.transform=Me;var Fe=$ge(re,x,c,h);Bd.setTransormAndDisplay(Fe,Me)}function r2(e,t,r,n,i){if(e<0||t<0)return!1;var a=r<=e&&n<=t,o=r<=t&&n<=e,s=i?e>=r*(t/n):t>=n*(e/r);return a||o||s}function e1e(e){return e==="auto"?0:e}function t1e(e,t){var r=Math.PI/180*t,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:e.width*i+e.height*n,y:e.width*n+e.height*i}}function r1e(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,u=a.angle||0,l=a.anchor,f=l==="end",c=l==="start",h=a.leftToRight||0,d=(h+1)/2,p=1-d,x=a.hasB,b=a.r,v=a.overhead,k=i.width,E=i.height,T=Math.abs(t-e),L=Math.abs(n-r),_=T>2*Up&&L>2*Up?Up:0;T-=2*_,L-=2*_;var C=e1e(u);u==="auto"&&!(k<=T&&E<=L)&&(k>T||E>L)&&(!(k>L||E>T)||kUp){var A=i_t(e,t,r,n,S,b,v,o,x);m=A.scale,P=A.pad}else m=1,s&&(m=Math.min(1,T/S.x,L/S.y)),P=0;var B=i.left*p+i.right*d,F=(i.top+i.bottom)/2,U=(e+Up)*p+(t-Up)*d,G=(r+n)/2,j=0,H=0;if(c||f){var N=(o?S.x:S.y)/2;b&&(f||x)&&(_+=P);var W=o?Py(e,t):Py(r,n);o?c?(U=e+W*_,j=-W*N):(U=t-W*_,j=W*N):c?(G=r+W*_,H=-W*N):(G=n-W*_,H=W*N)}return{textX:B,textY:F,targetX:U,targetY:G,anchorX:j,anchorY:H,scale:m,rotate:C}}function i_t(e,t,r,n,i,a,o,s,u){var l=Math.max(0,Math.abs(t-e)-2*Up),f=Math.max(0,Math.abs(n-r)-2*Up),c=a-Up,h=o?c-Math.sqrt(c*c-(c-o)*(c-o)):c,d=u?c*2:s?c-o:2*h,p=u?c*2:s?2*h:c-o,x,b,v,k,E;return i.y/i.x>=f/(l-d)?k=f/i.y:i.y/i.x<=(f-p)/l?k=l/i.x:!u&&s?(x=i.x*i.x+i.y*i.y/4,b=-2*i.x*(l-c)-i.y*(f/2-c),v=(l-c)*(l-c)+(f/2-c)*(f/2-c)-c*c,k=(-b+Math.sqrt(b*b-4*x*v))/(2*x)):u?(x=(i.x*i.x+i.y*i.y)/4,b=-i.x*(l/2-c)-i.y*(f/2-c),v=(l/2-c)*(l/2-c)+(f/2-c)*(f/2-c)-c*c,k=(-b+Math.sqrt(b*b-4*x*v))/(2*x)):(x=i.x*i.x/4+i.y*i.y,b=-i.x*(l/2-c)-2*i.y*(f-c),v=(l/2-c)*(l/2-c)+(f-c)*(f-c)-c*c,k=(-b+Math.sqrt(b*b-4*x*v))/(2*x)),k=Math.min(1,k),s?E=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-i.y*k)/2)*(c-(f-i.y*k)/2)))-o):E=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(l-i.x*k)/2)*(c-(l-i.x*k)/2)))-o),{scale:k,pad:E}}function n_t(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,u=a.angle||0,l=i.width,f=i.height,c=Math.abs(t-e),h=Math.abs(n-r),d;o?d=h>2*Up?Up:0:d=c>2*Up?Up:0;var p=1;s&&(p=o?Math.min(1,h/f):Math.min(1,c/l));var x=e1e(u),b=t1e(i,x),v=(o?b.x:b.y)/2,k=(i.left+i.right)/2,E=(i.top+i.bottom)/2,T=(e+t)/2,L=(r+n)/2,_=0,C=0,S=o?Py(t,e):Py(r,n);return o?(T=t-S*d,_=S*v):(L=n+S*d,C=-S*v),{textX:k,textY:E,targetX:T,targetY:L,anchorX:_,anchorY:C,scale:p,rotate:x}}function a_t(e,t,r,n,i){var a=t[0].trace,o=a.texttemplate,s;return o?s=s_t(e,t,r,n,i):a.textinfo?s=l_t(t,r,n,i):s=wA.getValue(a.text,r),wA.coerceString(Y1t,s)}function o_t(e,t){var r=wA.getValue(e.textposition,t);return wA.coerceEnumerated(K1t,r)}function s_t(e,t,r,n,i){var a=t[0].trace,o=Bd.castOption(a,r,"texttemplate");if(!o)return"";var s=a.type==="histogram",u=a.type==="waterfall",l=a.type==="funnel",f=a.orientation==="h",c,h,d,p;f?(c="y",h=i,d="x",p=n):(c="x",h=n,d="y",p=i);function x(_){return GI(h,h.c2l(_),!0).text}function b(_){return GI(p,p.c2l(_),!0).text}var v=t[r],k={};k.label=v.p,k.labelLabel=k[c+"Label"]=x(v.p);var E=Bd.castOption(a,v.i,"text");(E===0||E)&&(k.text=E),k.value=v.s,k.valueLabel=k[d+"Label"]=b(v.s);var T={};J1t(T,a,v.i),(s||T.x===void 0)&&(T.x=f?k.value:k.label),(s||T.y===void 0)&&(T.y=f?k.label:k.value),(s||T.xLabel===void 0)&&(T.xLabel=f?k.valueLabel:k.labelLabel),(s||T.yLabel===void 0)&&(T.yLabel=f?k.labelLabel:k.valueLabel),u&&(k.delta=+v.rawS||v.s,k.deltaLabel=b(k.delta),k.final=v.v,k.finalLabel=b(k.final),k.initial=k.final-k.delta,k.initialLabel=b(k.initial)),l&&(k.value=v.s,k.valueLabel=b(k.value),k.percentInitial=v.begR,k.percentInitialLabel=Bd.formatPercent(v.begR),k.percentPrevious=v.difR,k.percentPreviousLabel=Bd.formatPercent(v.difR),k.percentTotal=v.sumR,k.percenTotalLabel=Bd.formatPercent(v.sumR));var L=Bd.castOption(a,v.i,"customdata");return L&&(k.customdata=L),Bd.texttemplateString(o,k,e._d3locale,T,k,a._meta||{})}function l_t(e,t,r,n){var i=e[0].trace,a=i.orientation==="h",o=i.type==="waterfall",s=i.type==="funnel";function u(L){var _=a?n:r;return GI(_,L,!0).text}function l(L){var _=a?r:n;return GI(_,+L,!0).text}var f=i.textinfo,c=e[t],h=f.split("+"),d=[],p,x=function(L){return h.indexOf(L)!==-1};if(x("label")&&d.push(u(e[t].p)),x("text")&&(p=Bd.castOption(i,c.i,"text"),(p===0||p)&&d.push(p)),o){var b=+c.rawS||c.s,v=c.v,k=v-b;x("initial")&&d.push(l(k)),x("delta")&&d.push(l(b)),x("final")&&d.push(l(v))}if(s){x("value")&&d.push(l(c.s));var E=0;x("percent initial")&&E++,x("percent previous")&&E++,x("percent total")&&E++;var T=E>1;x("percent initial")&&(p=Bd.formatPercent(c.begR),T&&(p+=" of initial"),d.push(p)),x("percent previous")&&(p=Bd.formatPercent(c.difR),T&&(p+=" of previous"),d.push(p)),x("percent total")&&(p=Bd.formatPercent(c.sumR),T&&(p+=" of total"),d.push(p))}return d.join("
")}i1e.exports={plot:t_t,toMoveInsideBar:r1e}});var AA=Te((vur,s1e)=>{"use strict";var pE=jc(),u_t=$l(),n1e=jl(),f_t=ei().fillText,c_t=NI().getLineWidth,BV=wu().hoverLabelText,h_t=nf().BADNUM;function d_t(e,t,r,n,i){var a=a1e(e,t,r,n,i);if(a){var o=a.cd,s=o[0].trace,u=o[a.index];return a.color=o1e(s,u),u_t.getComponentMethod("errorbars","hoverInfo")(u,s,a),[a]}}function a1e(e,t,r,n,i){var a=e.cd,o=a[0].trace,s=a[0].t,u=n==="closest",l=o.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,h,d,p,x,b,v,k;o.orientation==="h"?(h=r,d=t,p="y",x="x",b=G,v=B):(h=t,d=r,p="x",x="y",v=G,b=B);var E=o[p+"period"],T=u||E;function L(te){return C(te,-1)}function _(te){return C(te,1)}function C(te,ke){var Ee=te.w;return te[p]+ke*Ee/2}function S(te){return te[p+"End"]-te[p+"Start"]}var m=u?L:E?function(te){return te.p-S(te)/2}:function(te){return Math.min(L(te),te.p-s.bardelta/2)},P=u?_:E?function(te){return te.p+S(te)/2}:function(te){return Math.max(_(te),te.p+s.bardelta/2)};function A(te,ke,Ee){return i.finiteRange&&(Ee=0),pE.inbox(te-h,ke-h,Ee+Math.min(1,Math.abs(ke-te)/k)-1)}function B(te){return A(m(te),P(te),f)}function F(te){return A(L(te),_(te),c)}function U(te){var ke=te[x];if(l){var Ee=Math.abs(te.rawS)||0;d>0?ke+=Ee:d<0&&(ke-=Ee)}return ke}function G(te){var ke=d,Ee=te.b,Me=U(te);return pE.inbox(Ee-ke,Me-ke,f+(Me-ke)/(Me-Ee)-1)}function j(te){var ke=d,Ee=te.b,Me=U(te);return pE.inbox(Ee-ke,Me-ke,c+(Me-ke)/(Me-Ee)-1)}var H=e[p+"a"],N=e[x+"a"];k=Math.abs(H.r2c(H.range[1])-H.r2c(H.range[0]));function W(te){return(b(te)+v(te))/2}var re=pE.getDistanceFunction(n,b,v,W);if(pE.getClosest(a,re,e),e.index!==!1&&a[e.index].p!==h_t){T||(m=function(te){return Math.min(L(te),te.p-s.bargroupwidth/2)},P=function(te){return Math.max(_(te),te.p+s.bargroupwidth/2)});var ae=e.index,be=a[ae],Pe=o.base?be.b+be.s:be.s;e[x+"0"]=e[x+"1"]=N.c2p(be[x],!0),e[x+"LabelVal"]=Pe;var Ce=s.extents[s.extents.round(be.p)];e[p+"0"]=H.c2p(u?m(be):Ce[0],!0),e[p+"1"]=H.c2p(u?P(be):Ce[1],!0);var de=be.orig_p!==void 0;return e[p+"LabelVal"]=de?be.orig_p:be.p,e.labelLabel=BV(H,e[p+"LabelVal"],o[p+"hoverformat"]),e.valueLabel=BV(N,e[x+"LabelVal"],o[x+"hoverformat"]),e.baseLabel=BV(N,be.b,o[x+"hoverformat"]),e.spikeDistance=(j(be)+F(be))/2,e[p+"Spike"]=H.c2p(be.p,!0),f_t(be,o,e),e.hovertemplate=o.hovertemplate,e}}function o1e(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,i=c_t(e,t);if(n1e.opacity(r))return r;if(n1e.opacity(n)&&i)return n}s1e.exports={hoverPoints:d_t,hoverOnBars:a1e,getTraceColor:o1e}});var u1e=Te((mur,l1e)=>{"use strict";l1e.exports=function(t,r,n){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),n.orientation==="h"?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}});var TA=Te((yur,f1e)=>{"use strict";f1e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=n[0].trace,s=o.type==="funnel",u=o.orientation==="h",l=[],f;if(r===!1)for(f=0;f{"use strict";c1e.exports={attributes:Ly(),layoutAttributes:BI(),supplyDefaults:r0().supplyDefaults,crossTraceDefaults:r0().crossTraceDefaults,supplyLayoutDefaults:zV(),calc:Dge(),crossTraceCalc:Hb().crossTraceCalc,colorbar:ep(),arraysToCalcdata:cE(),plot:i2().plot,style:N0().style,styleOnSelect:N0().styleOnSelect,hoverPoints:AA().hoverPoints,eventData:u1e(),selectPoints:TA(),moduleType:"trace",name:"bar",basePlotModule:Ah(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var p1e=Te((_ur,d1e)=>{"use strict";d1e.exports=h1e()});var vE=Te((xur,g1e)=>{"use strict";var v_t=Em(),U0=Xc(),v1e=Ly(),m_t=Ih(),m1e=Hc().axisHoverFormat,y_t=Hu().hovertemplateAttrs,Dg=Su().extendFlat,SA=U0.marker,y1e=SA.line;g1e.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:U0.xperiod,yperiod:U0.yperiod,xperiod0:U0.xperiod0,yperiod0:U0.yperiod0,xperiodalignment:U0.xperiodalignment,yperiodalignment:U0.yperiodalignment,xhoverformat:m1e("x"),yhoverformat:m1e("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:Dg({},SA.symbol,{arrayOk:!1,editType:"plot"}),opacity:Dg({},SA.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Dg({},SA.angle,{arrayOk:!1,editType:"calc"}),size:Dg({},SA.size,{arrayOk:!1,editType:"calc"}),color:Dg({},SA.color,{arrayOk:!1,editType:"style"}),line:{color:Dg({},y1e.color,{arrayOk:!1,dflt:m_t.defaultLine,editType:"style"}),width:Dg({},y1e.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:v_t(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:v1e.offsetgroup,alignmentgroup:v1e.alignmentgroup,selected:{marker:U0.selected.marker,editType:"style"},unselected:{marker:U0.unselected.marker,editType:"style"},text:Dg({},U0.text,{}),hovertext:Dg({},U0.hovertext,{}),hovertemplate:y_t({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:U0.zorder}});var mE=Te((bur,_1e)=>{"use strict";_1e.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var gE=Te((wur,A1e)=>{"use strict";var V0=ei(),g_t=$l(),__t=jl(),x_t=Pm(),b_t=Gb(),x1e=L3(),yE=vE();function w_t(e,t,r,n){function i(p,x){return V0.coerce(e,t,yE,p,x)}if(b1e(e,t,i,n),t.visible!==!1){x_t(e,t,n,i),i("xhoverformat"),i("yhoverformat");var a=t._hasPreCompStats;a&&(i("lowerfence"),i("upperfence")),i("line.color",(e.marker||{}).color||r),i("line.width"),i("fillcolor",__t.addOpacity(t.line.color,.5));var o=!1;if(a){var s=i("mean"),u=i("sd");s&&s.length&&(o=!0,u&&u.length&&(o="sd"))}i("whiskerwidth");var l=i("sizemode"),f;l==="quartiles"&&(f=i("boxmean",o)),i("showwhiskers",l==="quartiles"),(l==="sd"||f==="sd")&&i("sdmultiple"),i("width"),i("quartilemethod");var c=!1;if(a){var h=i("notchspan");h&&h.length&&(c=!0)}else V0.validate(e.notchwidth,yE.notchwidth)&&(c=!0);var d=i("notched",c);d&&i("notchwidth"),w1e(e,t,i,{prefix:"box"}),i("zorder")}}function b1e(e,t,r,n){function i(P){var A=0;return P&&P.length&&(A+=1,V0.isArrayOrTypedArray(P[0])&&P[0].length&&(A+=1)),A}function a(P){return V0.validate(e[P],yE[P])}var o=r("y"),s=r("x"),u;if(t.type==="box"){var l=r("q1"),f=r("median"),c=r("q3");t._hasPreCompStats=l&&l.length&&f&&f.length&&c&&c.length,u=Math.min(V0.minRowLength(l),V0.minRowLength(f),V0.minRowLength(c))}var h=i(o),d=i(s),p=h&&V0.minRowLength(o),x=d&&V0.minRowLength(s),b=n.calendar,v={autotypenumbers:n.autotypenumbers},k,E;if(t._hasPreCompStats)switch(String(d)+String(h)){case"00":var T=a("x0")||a("dx"),L=a("y0")||a("dy");L&&!T?k="h":k="v",E=u;break;case"10":k="v",E=Math.min(u,x);break;case"20":k="h",E=Math.min(u,s.length);break;case"01":k="h",E=Math.min(u,p);break;case"02":k="v",E=Math.min(u,o.length);break;case"12":k="v",E=Math.min(u,x,o.length);break;case"21":k="h",E=Math.min(u,s.length,p);break;case"11":E=0;break;case"22":var _=!1,C;for(C=0;C0?(k="v",d>0?E=Math.min(x,p):E=Math.min(p)):d>0?(k="h",E=Math.min(x)):E=0;if(!E){t.visible=!1;return}t._length=E;var S=r("orientation",k);t._hasPreCompStats?S==="v"&&d===0?(r("x0",0),r("dx",1)):S==="h"&&h===0&&(r("y0",0),r("dy",1)):S==="v"&&d===0?r("x0"):S==="h"&&h===0&&r("y0");var m=g_t.getComponentMethod("calendars","handleTraceDefaults");m(e,t,["x","y"],n)}function w1e(e,t,r,n){var i=n.prefix,a=V0.coerce2(e,t,yE,"marker.outliercolor"),o=r("marker.line.outliercolor"),s="outliers";t._hasPreCompStats?s="all":(a||o)&&(s="suspectedoutliers");var u=r(i+"points",s);u?(r("jitter",u==="all"?.3:0),r("pointpos",u==="all"?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.angle"),r("marker.color",t.line.color),r("marker.line.color"),r("marker.line.width"),u==="suspectedoutliers"&&(r("marker.line.outliercolor",t.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete t.marker;var l=r("hoveron");(l==="all"||l.indexOf("points")!==-1)&&r("hovertemplate"),V0.coerceSelectionMarkerOpacity(t,r)}function A_t(e,t){var r,n;function i(u){return V0.coerce(n._input,n,yE,u)}for(var a=0;a{"use strict";var T_t=$l(),S_t=ei(),M_t=mE();function T1e(e,t,r,n,i){for(var a=i+"Layout",o=!1,s=0;s{"use strict";var qV=ku(),WI=wu(),k_t=Im(),Th=ei(),i0=nf().BADNUM,Fg=Th._;R1e.exports=function(t,r){var n=t._fullLayout,i=WI.getFromId(t,r.xaxis||"x"),a=WI.getFromId(t,r.yaxis||"y"),o=[],s=r.type==="violin"?"_numViolins":"_numBoxes",u,l,f,c,h,d,p;r.orientation==="h"?(f=i,c="x",h=a,d="y",p=!!r.yperiodalignment):(f=a,c="y",h=i,d="x",p=!!r.xperiodalignment);var x=C_t(r,d,h,n[s]),b=x[0],v=x[1],k=Th.distinctVals(b,h),E=k.vals,T=k.minDiff/2,L,_,C,S,m,P,A=(r.boxpoints||r.points)==="all"?Th.identity:function(Nt){return Nt.vL.uf};if(r._hasPreCompStats){var B=r[c],F=function(Nt){return f.d2c((r[Nt]||[])[u])},U=1/0,G=-1/0;for(u=0;u=L.q1&&L.q3>=L.med){var H=F("lowerfence");L.lf=H!==i0&&H<=L.q1?H:C1e(L,C,S);var N=F("upperfence");L.uf=N!==i0&&N>=L.q3?N:L1e(L,C,S);var W=F("mean");L.mean=W!==i0?W:S?Th.mean(C,S):(L.q1+L.q3)/2;var re=F("sd");L.sd=W!==i0&&re>=0?re:S?Th.stdev(C,S,L.mean):L.q3-L.q1,L.lo=P1e(L),L.uo=z1e(L);var ae=F("notchspan");ae=ae!==i0&&ae>0?ae:I1e(L,S),L.ln=L.med-ae,L.un=L.med+ae;var be=L.lf,Pe=L.uf;r.boxpoints&&C.length&&(be=Math.min(be,C[0]),Pe=Math.max(Pe,C[S-1])),r.notched&&(be=Math.min(be,L.ln),Pe=Math.max(Pe,L.un)),L.min=be,L.max=Pe}else{Th.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+L.q1,"median = "+L.med,"q3 = "+L.q3].join(` -`));var Ce;L.med!==i0?Ce=L.med:L.q1!==i0?L.q3!==i0?Ce=(L.q1+L.q3)/2:Ce=L.q1:L.q3!==i0?Ce=L.q3:Ce=0,L.med=Ce,L.q1=L.q3=Ce,L.lf=L.uf=Ce,L.mean=L.sd=Ce,L.ln=L.un=Ce,L.min=L.max=Ce}U=Math.min(U,L.min),G=Math.max(G,L.max),L.pts2=_.filter(A),o.push(L)}}r._extremes[f._id]=WI.findExtremes(f,[U,G],{padded:!0})}else{var de=f.makeCalcdata(r,c),te=L_t(E,T),ke=E.length,Ee=P_t(ke);for(u=0;u=0&&Me0){if(L={},L.pos=L[d]=E[u],_=L.pts=Ee[u].sort(E1e),C=L[c]=_.map(k1e),S=C.length,L.min=C[0],L.max=C[S-1],L.mean=Th.mean(C,S),L.sd=Th.stdev(C,S,L.mean)*r.sdmultiple,L.med=Th.interp(C,.5),S%2&&(Ne||ce)){var Ke,it;Ne?(Ke=C.slice(0,S/2),it=C.slice(S/2+1)):ce&&(Ke=C.slice(0,S/2+1),it=C.slice(S/2)),L.q1=Th.interp(Ke,.5),L.q3=Th.interp(it,.5)}else L.q1=Th.interp(C,.25),L.q3=Th.interp(C,.75);L.lf=C1e(L,C,S),L.uf=L1e(L,C,S),L.lo=P1e(L),L.uo=z1e(L);var bt=I1e(L,S);L.ln=L.med-bt,L.un=L.med+bt,Ue=Math.min(Ue,L.ln),Fe=Math.max(Fe,L.un),L.pts2=_.filter(A),o.push(L)}r.notched&&Th.isTypedArray(de)&&(de=Array.from(de)),r._extremes[f._id]=WI.findExtremes(f,r.notched?de.concat([Ue,Fe]):de,{padded:!0})}return z_t(o,r),o.length>0?(o[0].t={num:n[s],dPos:T,posLetter:d,valLetter:c,labels:{med:Fg(t,"median:"),min:Fg(t,"min:"),q1:Fg(t,"q1:"),q3:Fg(t,"q3:"),max:Fg(t,"max:"),mean:r.boxmean==="sd"||r.sizemode==="sd"?Fg(t,"mean \xB1 \u03C3:").replace("\u03C3",r.sdmultiple===1?"\u03C3":r.sdmultiple+"\u03C3"):Fg(t,"mean:"),lf:Fg(t,"lower fence:"),uf:Fg(t,"upper fence:")}},n[s]++,o):[{t:{empty:!0}}]};function C_t(e,t,r,n){var i=t in e,a=t+"0"in e,o="d"+t in e;if(i||a&&o){var s=r.makeCalcdata(e,t),u=k_t(e,r,t,s).vals;return[u,s]}var l;a?l=e[t+"0"]:"name"in e&&(r.type==="category"||qV(e.name)&&["linear","log"].indexOf(r.type)!==-1||Th.isDateTime(e.name)&&r.type==="date")?l=e.name:l=n;for(var f=r.type==="multicategory"?r.r2c_just_indices(l):r.d2c(l,0,e[t+"calendar"]),c=e._length,h=new Array(c),d=0;d{"use strict";var D1e=wu(),I_t=ei(),R_t=qb().getAxisGroup,F1e=["v","h"];function D_t(e,t){for(var r=e.calcdata,n=t.xaxis,i=t.yaxis,a=0;a1,k=1-a[e+"gap"],E=1-a[e+"groupgap"];for(u=0;u0;if(C==="positive"?(N=S*(_?1:.5),ae=re,W=ae=P):C==="negative"?(N=ae=P,W=S*(_?1:.5),be=re):(N=W=S,ae=be=re),Ee){var Me=T.pointpos,Ue=T.jitter,Fe=T.marker.size/2,me=0;Me+Ue>=0&&(me=re*(Me+Ue),me>N?(ke=!0,de=Fe,Pe=me):me>ae&&(de=Fe,Pe=N)),me<=N&&(Pe=N);var Ne=0;Me-Ue<=0&&(Ne=-re*(Me-Ue),Ne>W?(ke=!0,te=Fe,Ce=Ne):Ne>be&&(te=Fe,Ce=W)),Ne<=W&&(Ce=W)}else Pe=N,Ce=W;var ce=new Array(f.length);for(l=0;l{"use strict";var MA=Jl(),n2=ei(),F_t=Mu(),q1e=5,B_t=.01;function O_t(e,t,r,n){var i=e._context.staticPlot,a=t.xaxis,o=t.yaxis;n2.makeTraceGroups(n,r,"trace boxes").each(function(s){var u=MA.select(this),l=s[0],f=l.t,c=l.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){u.remove();return}var h,d;c.orientation==="h"?(h=o,d=a):(h=a,d=o),N1e(u,{pos:h,val:d},c,f,i),U1e(u,{x:a,y:o},c,f),V1e(u,{pos:h,val:d},c,f)})}function N1e(e,t,r,n,i){var a=r.orientation==="h",o=t.val,s=t.pos,u=!!s.rangebreaks,l=n.bPos,f=n.wdPos||0,c=n.bPosPxOffset||0,h=r.whiskerwidth||0,d=r.showwhiskers!==!1,p=r.notched||!1,x=p?1-2*r.notchwidth:1,b,v;Array.isArray(n.bdPos)?(b=n.bdPos[0],v=n.bdPos[1]):(b=n.bdPos,v=n.bdPos);var k=e.selectAll("path.box").data(r.type!=="violin"||r.box.visible?n2.identity:[]);k.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","box"),k.exit().remove(),k.each(function(E){if(E.empty)return MA.select(this).attr("d","M0,0Z");var T=s.c2l(E.pos+l,!0),L=s.l2p(T-b)+c,_=s.l2p(T+v)+c,C=u?(L+_)/2:s.l2p(T)+c,S=r.whiskerwidth,m=u?L*S+(1-S)*C:s.l2p(T-f)+c,P=u?_*S+(1-S)*C:s.l2p(T+f)+c,A=s.l2p(T-b*x)+c,B=s.l2p(T+v*x)+c,F=r.sizemode==="sd",U=o.c2p(F?E.mean-E.sd:E.q1,!0),G=F?o.c2p(E.mean+E.sd,!0):o.c2p(E.q3,!0),j=n2.constrain(F?o.c2p(E.mean,!0):o.c2p(E.med,!0),Math.min(U,G)+1,Math.max(U,G)-1),H=E.lf===void 0||r.boxpoints===!1||F,N=o.c2p(H?E.min:E.lf,!0),W=o.c2p(H?E.max:E.uf,!0),re=o.c2p(E.ln,!0),ae=o.c2p(E.un,!0);a?MA.select(this).attr("d","M"+j+","+A+"V"+B+"M"+U+","+L+"V"+_+(p?"H"+re+"L"+j+","+B+"L"+ae+","+_:"")+"H"+G+"V"+L+(p?"H"+ae+"L"+j+","+A+"L"+re+","+L:"")+"Z"+(d?"M"+U+","+C+"H"+N+"M"+G+","+C+"H"+W+(h===0?"":"M"+N+","+m+"V"+P+"M"+W+","+m+"V"+P):"")):MA.select(this).attr("d","M"+A+","+j+"H"+B+"M"+L+","+U+"H"+_+(p?"V"+re+"L"+B+","+j+"L"+_+","+ae:"")+"V"+G+"H"+L+(p?"V"+ae+"L"+A+","+j+"L"+L+","+re:"")+"Z"+(d?"M"+C+","+U+"V"+N+"M"+C+","+G+"V"+W+(h===0?"":"M"+m+","+N+"H"+P+"M"+m+","+W+"H"+P):""))})}function U1e(e,t,r,n){var i=t.x,a=t.y,o=n.bdPos,s=n.bPos,u=r.boxpoints||r.points;n2.seedPseudoRandom();var l=function(h){return h.forEach(function(d){d.t=n,d.trace=r}),h},f=e.selectAll("g.points").data(u?l:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(h){var d,p=h.pts2,x=Math.max((h.max-h.min)/10,h.q3-h.q1),b=x*1e-9,v=x*B_t,k=[],E=0,T;if(r.jitter){if(x===0)for(E=1,k=new Array(p.length),d=0;dh.lo&&(P.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(F_t.translatePoints,i,a)}function V1e(e,t,r,n){var i=t.val,a=t.pos,o=!!a.rangebreaks,s=n.bPos,u=n.bPosPxOffset||0,l=r.boxmean||(r.meanline||{}).visible,f,c;Array.isArray(n.bdPos)?(f=n.bdPos[0],c=n.bdPos[1]):(f=n.bdPos,c=n.bdPos);var h=e.selectAll("path.mean").data(r.type==="box"&&r.boxmean||r.type==="violin"&&r.box.visible&&r.meanline.visible?n2.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each(function(d){var p=a.c2l(d.pos+s,!0),x=a.l2p(p-f)+u,b=a.l2p(p+c)+u,v=o?(x+b)/2:a.l2p(p)+u,k=i.c2p(d.mean,!0),E=i.c2p(d.mean-d.sd,!0),T=i.c2p(d.mean+d.sd,!0);r.orientation==="h"?MA.select(this).attr("d","M"+k+","+x+"V"+b+(l==="sd"?"m0,0L"+E+","+v+"L"+k+","+x+"L"+T+","+v+"Z":"")):MA.select(this).attr("d","M"+x+","+k+"H"+b+(l==="sd"?"m0,0L"+v+","+E+"L"+x+","+k+"L"+v+","+T+"Z":""))})}G1e.exports={plot:O_t,plotBoxAndWhiskers:N1e,plotPoints:U1e,plotBoxMean:V1e}});var ZI=Te((Eur,H1e)=>{"use strict";var UV=Jl(),VV=jl(),GV=Mu();function q_t(e,t,r){var n=r||UV.select(e).selectAll("g.trace.boxes");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=UV.select(this),o=i[0].trace,s=o.line.width;function u(c,h,d,p){c.style("stroke-width",h+"px").call(VV.stroke,d).call(VV.fill,p)}var l=a.selectAll("path.box");if(o.type==="candlestick")l.each(function(c){if(!c.empty){var h=UV.select(this),d=o[c.dir];u(h,d.line.width,d.line.color,d.fillcolor),h.style("opacity",o.selectedpoints&&!c.selected?.3:1)}});else{u(l,s,o.line.color,o.fillcolor),a.selectAll("path.mean").style({"stroke-width":s,"stroke-dasharray":2*s+"px,"+s+"px"}).call(VV.stroke,o.line.color);var f=a.selectAll("path.point");GV.pointStyle(f,o,e)}})}function N_t(e,t,r){var n=t[0].trace,i=r.selectAll("path.point");n.selectedpoints?GV.selectedPointStyle(i,n):GV.pointStyle(i,n,e)}H1e.exports={style:q_t,styleOnSelect:N_t}});var WV=Te((kur,Z1e)=>{"use strict";var U_t=wu(),HV=ei(),S_=jc(),W1e=jl(),V_t=HV.fillText;function G_t(e,t,r,n){var i=e.cd,a=i[0].trace,o=a.hoveron,s=[],u;return o.indexOf("boxes")!==-1&&(s=s.concat(j1e(e,t,r,n))),o.indexOf("points")!==-1&&(u=X1e(e,t,r)),n==="closest"?u?[u]:s:(u&&s.push(u),s)}function j1e(e,t,r,n){var i=e.cd,a=e.xa,o=e.ya,s=i[0].trace,u=i[0].t,l=s.type==="violin",f,c,h,d,p,x,b,v,k,E,T,L=u.bdPos,_,C,S=u.wHover,m=function(Fe){return h.c2l(Fe.pos)+u.bPos-h.c2l(x)};l&&s.side!=="both"?(s.side==="positive"&&(k=function(Fe){var me=m(Fe);return S_.inbox(me,me+S,E)},_=L,C=0),s.side==="negative"&&(k=function(Fe){var me=m(Fe);return S_.inbox(me-S,me,E)},_=0,C=L)):(k=function(Fe){var me=m(Fe);return S_.inbox(me-S,me+S,E)},_=C=L);var P;l?P=function(Fe){return S_.inbox(Fe.span[0]-p,Fe.span[1]-p,E)}:P=function(Fe){return S_.inbox(Fe.min-p,Fe.max-p,E)},s.orientation==="h"?(p=t,x=r,b=P,v=k,f="y",h=o,c="x",d=a):(p=r,x=t,b=k,v=P,f="x",h=a,c="y",d=o);var A=Math.min(1,L/Math.abs(h.r2c(h.range[1])-h.r2c(h.range[0])));E=e.maxHoverDistance-A,T=e.maxSpikeDistance-A;function B(Fe){return(b(Fe)+v(Fe))/2}var F=S_.getDistanceFunction(n,b,v,B);if(S_.getClosest(i,F,e),e.index===!1)return[];var U=i[e.index],G=s.line.color,j=(s.marker||{}).color;W1e.opacity(G)&&s.line.width?e.color=G:W1e.opacity(j)&&s.boxpoints?e.color=j:e.color=s.fillcolor,e[f+"0"]=h.c2p(U.pos+u.bPos-C,!0),e[f+"1"]=h.c2p(U.pos+u.bPos+_,!0),e[f+"LabelVal"]=U.orig_p!==void 0?U.orig_p:U.pos;var H=f+"Spike";e.spikeDistance=B(U)*T/E,e[H]=h.c2p(U.pos,!0);var N=s.boxmean||s.sizemode==="sd"||(s.meanline||{}).visible,W=s.boxpoints||s.points,re=W&&N?["max","uf","q3","med","mean","q1","lf","min"]:W&&!N?["max","uf","q3","med","q1","lf","min"]:!W&&N?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],ae=d.range[1]{"use strict";Y1e.exports=function(t,r){return r.hoverOnBox&&(t.hoverOnBox=r.hoverOnBox),"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var jV=Te((Lur,J1e)=>{"use strict";J1e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,u;if(r===!1)for(s=0;s{"use strict";$1e.exports={attributes:vE(),layoutAttributes:mE(),supplyDefaults:gE().supplyDefaults,crossTraceDefaults:gE().crossTraceDefaults,supplyLayoutDefaults:HI().supplyLayoutDefaults,calc:NV(),crossTraceCalc:jI().crossTraceCalc,plot:XI().plot,style:ZI().style,styleOnSelect:ZI().styleOnSelect,hoverPoints:WV().hoverPoints,eventData:K1e(),selectPoints:jV(),moduleType:"trace",name:"box",basePlotModule:Ah(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var t_e=Te((zur,e_e)=>{"use strict";e_e.exports=Q1e()});var EA=Te((Iur,r_e)=>{"use strict";var n0=Xc(),H_t=Vf(),W_t=gc(),XV=Hc().axisHoverFormat,j_t=Hu().hovertemplateAttrs,X_t=Hu().texttemplateAttrs,Z_t=nc(),Lv=Su().extendFlat;r_e.exports=Lv({z:{valType:"data_array",editType:"calc"},x:Lv({},n0.x,{impliedEdits:{xtype:"array"}}),x0:Lv({},n0.x0,{impliedEdits:{xtype:"scaled"}}),dx:Lv({},n0.dx,{impliedEdits:{xtype:"scaled"}}),y:Lv({},n0.y,{impliedEdits:{ytype:"array"}}),y0:Lv({},n0.y0,{impliedEdits:{ytype:"scaled"}}),dy:Lv({},n0.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:Lv({},n0.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:Lv({},n0.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:Lv({},n0.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:Lv({},n0.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:Lv({},n0.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:Lv({},n0.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:XV("x"),yhoverformat:XV("y"),zhoverformat:XV("z",1),hovertemplate:j_t(),texttemplate:X_t({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:W_t({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Lv({},H_t.showlegend,{dflt:!1}),zorder:n0.zorder},Z_t("",{cLetter:"z",autoColorDflt:!1}))});var KI=Te((Rur,n_e)=>{"use strict";var Y_t=ku(),YI=ei(),K_t=$l();n_e.exports=function(t,r,n,i,a,o){var s=n("z");a=a||"x",o=o||"y";var u,l;if(s===void 0||!s.length)return 0;if(YI.isArray1D(s)){u=n(a),l=n(o);var f=YI.minRowLength(u),c=YI.minRowLength(l);if(f===0||c===0)return 0;r._length=Math.min(f,c,s.length)}else{if(u=i_e(a,n),l=i_e(o,n),!J_t(s))return 0;n("transpose"),r._length=null}var h=K_t.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],i),!0};function i_e(e,t){var r=t(e),n=r?t(e+"type","array"):"scaled";return n==="scaled"&&(t(e+"0"),t("d"+e)),r}function J_t(e){for(var t=!0,r=!1,n=!1,i,a=0;a0&&(r=!0);for(var o=0;o{"use strict";var a_e=ei();o_e.exports=function(t,r){t("texttemplate");var n=a_e.extendFlat({},r.font,{color:"auto",size:"auto"});a_e.coerceFont(t,"textfont",n)}});var ZV=Te((Fur,s_e)=>{"use strict";s_e.exports=function(t,r,n){var i=n("zsmooth");i===!1&&(n("xgap"),n("ygap")),n("zhoverformat")}});var f_e=Te((Bur,u_e)=>{"use strict";var l_e=ei(),$_t=KI(),Q_t=_E(),ext=Pm(),txt=ZV(),rxt=ed(),ixt=EA();u_e.exports=function(t,r,n,i){function a(s,u){return l_e.coerce(t,r,ixt,s,u)}var o=$_t(t,r,a,i);if(!o){r.visible=!1;return}ext(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hovertemplate"),Q_t(a,i),txt(t,r,a,i),a("hoverongaps"),a("connectgaps",l_e.isArray1D(r.z)&&r.zsmooth!==!1),rxt(t,r,i,a,{prefix:"",cLetter:"z"}),a("zorder")}});var YV=Te((Our,c_e)=>{"use strict";var kA=ku();c_e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,n){var i=n[t];return kA(i)?(i=Number(i),r[e]+=i,i):0},avg:function(e,t,r,n,i){var a=n[t];return kA(a)&&(a=Number(a),r[e]+=a,i[e]++),0},min:function(e,t,r,n){var i=n[t];if(kA(i))if(i=Number(i),kA(r[e])){if(r[e]>i){var a=i-r[e];return r[e]=i,a}}else return r[e]=i,i;return 0},max:function(e,t,r,n){var i=n[t];if(kA(i))if(i=Number(i),kA(r[e])){if(r[e]{"use strict";h_e.exports={percent:function(e,t){for(var r=e.length,n=100/t,i=0;i{"use strict";d_e.exports=function(t,r){for(var n=t.length,i=0,a=0;a{"use strict";var CA=nf(),a2=CA.ONEAVGYEAR,p_e=CA.ONEAVGMONTH,$I=CA.ONEDAY,v_e=CA.ONEHOUR,m_e=CA.ONEMIN,y_e=CA.ONESEC,g_e=wu().tickIncrement;b_e.exports=function(t,r,n,i,a){var o=-1.1*r,s=-.1*r,u=t-s,l=n[0],f=n[1],c=Math.min(JI(l+s,l+u,i,a),JI(f+s,f+u,i,a)),h=Math.min(JI(l+o,l+s,i,a),JI(f+o,f+s,i,a)),d,p;if(c>h&&h$I){var x=d===a2?1:6,b=d===a2?"M12":"M1";return function(v,k){var E=i.c2d(v,a2,a),T=E.indexOf("-",x);T>0&&(E=E.substr(0,T));var L=i.d2c(E,0,a);if(Ly_e?e>$I?e>a2*1.1?a2:e>p_e*1.1?p_e:$I:e>v_e?v_e:e>m_e?m_e:y_e:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function nxt(e,t,r,n,i,a){if(n&&e>$I){var o=x_e(t,i,a),s=x_e(r,i,a),u=e===a2?0:1;return o[u]!==s[u]}return Math.floor(r/e)-Math.floor(t/e)>.1}function x_e(e,t,r){var n=t.c2d(e,a2,r).split("-");return n[0]===""&&(n.unshift(),n[0]="-"+n[0]),n}});var tG=Te((Vur,T_e)=>{"use strict";var QV=ku(),Vp=ei(),w_e=$l(),G0=wu(),axt=cE(),A_e=YV(),oxt=KV(),sxt=JV(),lxt=$V();function uxt(e,t){var r=[],n=[],i=t.orientation==="h",a=G0.getFromId(e,i?t.yaxis:t.xaxis),o=i?"y":"x",s={x:"y",y:"x"}[o],u=t[o+"calendar"],l=t.cumulative,f,c=eG(e,t,a,o),h=c[0],d=c[1],p=typeof h.size=="string",x=[],b=p?x:h,v=[],k=[],E=[],T=0,L=t.histnorm,_=t.histfunc,C=L.indexOf("density")!==-1,S,m,P;l.enabled&&C&&(L=L.replace(/ ?density$/,""),C=!1);var A=_==="max"||_==="min",B=A?null:0,F=A_e.count,U=oxt[L],G=!1,j=function(me){return a.r2c(me,0,u)},H;for(Vp.isArrayOrTypedArray(t[s])&&_!=="count"&&(H=t[s],G=_==="avg",F=A_e[_]),f=j(h.start),m=j(h.end)+(f-G0.tickIncrement(f,h.size,!1,u))/1e6;f=0&&P=Me;f--)if(n[f]){Ue=f;break}for(f=Me;f<=Ue;f++)if(QV(r[f])&&QV(n[f])){var Fe={p:r[f],s:n[f],b:0};l.enabled||(Fe.pts=E[f],ae?Fe.ph0=Fe.ph1=E[f].length?d[E[f][0]]:r[f]:(t._computePh=!0,Fe.ph0=te(x[f]),Fe.ph1=te(x[f+1],!0))),Ee.push(Fe)}return Ee.length===1&&(Ee[0].width1=G0.tickIncrement(Ee[0].p,h.size,!1,u)-Ee[0].p),axt(Ee,t),Vp.isArrayOrTypedArray(t.selectedpoints)&&Vp.tagSelected(Ee,t,Ce),Ee}function eG(e,t,r,n,i){var a=n+"bins",o=e._fullLayout,s=t["_"+n+"bingroup"],u=o._histogramBinOpts[s],l=o.barmode==="overlay",f,c,h,d,p,x,b,v=function(de){return r.r2c(de,0,d)},k=function(de){return r.c2r(de,0,d)},E=r.type==="date"?function(de){return de||de===0?Vp.cleanDate(de,null,d):null}:function(de){return QV(de)?Number(de):null};function T(de,te,ke){te[de+"Found"]?(te[de]=E(te[de]),te[de]===null&&(te[de]=ke[de])):(x[de]=te[de]=ke[de],Vp.nestedProperty(c[0],a+"."+de).set(ke[de]))}if(t["_"+n+"autoBinFinished"])delete t["_"+n+"autoBinFinished"];else{c=u.traces;var L=[],_=!0,C=!1,S=!1;for(f=0;fr.r2l(H)&&(W=G0.tickIncrement(W,u.size,!0,d)),F.start=r.l2r(W),j||Vp.nestedProperty(t,a+".start").set(F.start)}var re=u.end,ae=r.r2l(B.end),be=ae!==void 0;if((u.endFound||be)&&ae!==r.r2l(re)){var Pe=be?ae:Vp.aggNums(Math.max,null,p);F.end=r.l2r(Pe),be||Vp.nestedProperty(t,a+".start").set(F.end)}var Ce="autobin"+n;return t._input[Ce]===!1&&(t._input[a]=Vp.extendFlat({},t[a]||{}),delete t._input[Ce],delete t[Ce]),[F,p]}function fxt(e,t,r,n,i){var a=e._fullLayout,o=cxt(e,t),s=!1,u=1/0,l=[t],f,c,h;for(f=0;f=0;n--)s(n);else if(t==="increasing"){for(n=1;n=0;n--)e[n]+=e[n+1];r==="exclude"&&(e.push(0),e.shift())}}T_e.exports={calc:uxt,calcAllAutoBins:eG}});var z_e=Te((Gur,P_e)=>{"use strict";var S_e=ei(),LA=wu(),M_e=YV(),dxt=KV(),pxt=JV(),vxt=$V(),E_e=tG().calcAllAutoBins;P_e.exports=function(t,r){var n=LA.getFromId(t,r.xaxis),i=LA.getFromId(t,r.yaxis),a=r.xcalendar,o=r.ycalendar,s=function(Xe){return n.r2c(Xe,0,a)},u=function(Xe){return i.r2c(Xe,0,o)},l=function(Xe){return n.c2r(Xe,0,a)},f=function(Xe){return i.c2r(Xe,0,o)},c,h,d,p,x=E_e(t,r,n,"x"),b=x[0],v=x[1],k=E_e(t,r,i,"y"),E=k[0],T=k[1],L=r._length;v.length>L&&v.splice(L,v.length-L),T.length>L&&T.splice(L,T.length-L);var _=[],C=[],S=[],m=typeof b.size=="string",P=typeof E.size=="string",A=[],B=[],F=m?A:b,U=P?B:E,G=0,j=[],H=[],N=r.histnorm,W=r.histfunc,re=N.indexOf("density")!==-1,ae=W==="max"||W==="min",be=ae?null:0,Pe=M_e.count,Ce=dxt[N],de=!1,te=[],ke=[],Ee="z"in r?r.z:"marker"in r&&Array.isArray(r.marker.color)?r.marker.color:"";Ee&&W!=="count"&&(de=W==="avg",Pe=M_e[W]);var Me=b.size,Ue=s(b.start),Fe=s(b.end)+(Ue-LA.tickIncrement(Ue,Me,!1,a))/1e6;for(c=Ue;c=0&&d=0&&p{"use strict";var zy=ei(),I_e=nf().BADNUM,R_e=Im();D_e.exports=function(t,r,n,i,a,o){var s=t._length,u=r.makeCalcdata(t,i),l=n.makeCalcdata(t,a);u=R_e(t,r,i,u).vals,l=R_e(t,n,a,l).vals;var f=t.text,c=f!==void 0&&zy.isArray1D(f),h=t.hovertext,d=h!==void 0&&zy.isArray1D(h),p,x,b=zy.distinctVals(u),v=b.vals,k=zy.distinctVals(l),E=k.vals,T=[],L,_,C=E.length,S=v.length;for(p=0;p{"use strict";var mxt=ku(),yxt=ei(),eR=nf().BADNUM;F_e.exports=function(t,r,n,i){var a,o,s,u,l,f;function c(v){if(mxt(v))return+v}if(r&&r.transpose){for(a=0,l=0;l{"use strict";var gxt=ei(),B_e=.01,_xt=[[-1,0],[1,0],[0,-1],[0,1]];function xxt(e){return .5-.25*Math.min(1,e*.5)}q_e.exports=function(t,r){var n=1,i;for(O_e(t,r),i=0;iB_e;i++)n=O_e(t,r,xxt(n));return n>B_e&&gxt.log("interp2d didn't converge quickly",n),t};function O_e(e,t,r){var n=0,i,a,o,s,u,l,f,c,h,d,p,x,b;for(s=0;sx&&(n=Math.max(n,Math.abs(e[a][o]-p)/(b-x))))}return n}});var iR=Te((Xur,N_e)=>{"use strict";var bxt=ei().maxRowLength;N_e.exports=function(t){var r=[],n={},i=[],a=t[0],o=[],s=[0,0,0],u=bxt(t),l,f,c,h,d,p,x,b;for(f=0;f=0;d--)h=i[d],f=h[0],c=h[1],p=((n[[f-1,c]]||s)[2]+(n[[f+1,c]]||s)[2]+(n[[f,c-1]]||s)[2]+(n[[f,c+1]]||s)[2])/20,p&&(x[h]=[f,c,p],i.splice(d,1),b=!0);if(!b)throw"findEmpties iterated with no new neighbors";for(h in x)n[h]=x[h],r.push(x[h])}return r.sort(function(v,k){return k[2]-v[2]})}});var rG=Te((Zur,G_e)=>{"use strict";var U_e=$l(),V_e=ei().isArrayOrTypedArray;G_e.exports=function(t,r,n,i,a,o){var s=[],u=U_e.traceIs(t,"contour"),l=U_e.traceIs(t,"histogram"),f,c,h,d=V_e(r)&&r.length>1;if(d&&!l&&o.type!=="category"){var p=r.length;if(p<=a){if(u)s=Array.from(r).slice(0,a);else if(a===1)o.type==="log"?s=[.5*r[0],2*r[0]]:s=[r[0]-.5,r[0]+.5];else if(o.type==="log"){for(s=[Math.pow(r[0],1.5)/Math.pow(r[1],.5)],h=1;h{"use strict";var H_e=$l(),iG=ei(),nR=wu(),W_e=Im(),wxt=z_e(),Axt=Dp(),Txt=QI(),Sxt=tR(),Mxt=rR(),Ext=iR(),aR=rG(),nG=nf().BADNUM;X_e.exports=function(t,r){var n=nR.getFromId(t,r.xaxis||"x"),i=nR.getFromId(t,r.yaxis||"y"),a=H_e.traceIs(r,"contour"),o=H_e.traceIs(r,"histogram"),s=a?"best":r.zsmooth,u,l,f,c,h,d,p,x,b,v,k;if(n._minDtick=0,i._minDtick=0,o)k=wxt(t,r),c=k.orig_x,u=k.x,l=k.x0,f=k.dx,x=k.orig_y,h=k.y,d=k.y0,p=k.dy,b=k.z;else{var E=r.z;iG.isArray1D(E)?(Txt(r,n,i,"x","y",["z"]),u=r._x,h=r._y,E=r._z):(c=r.x?n.makeCalcdata(r,"x"):[],x=r.y?i.makeCalcdata(r,"y"):[],u=W_e(r,n,"x",c).vals,h=W_e(r,i,"y",x).vals,r._x=u,r._y=h),l=r.x0,f=r.dx,d=r.y0,p=r.dy,b=Sxt(E,r,n,i)}(n.rangebreaks||i.rangebreaks)&&(b=kxt(u,h,b),o||(u=j_e(u),h=j_e(h),r._x=u,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=Ext(b),Mxt(b,r._emptypoints));function T(F){s=r._input.zsmooth=r.zsmooth=!1,iG.warn('cannot use zsmooth: "fast": '+F)}function L(F){if(F.length>1){var U=(F[F.length-1]-F[0])/(F.length-1),G=Math.abs(U/100);for(v=0;vG)return!1}return!0}r._islinear=!1,n.type==="log"||i.type==="log"?s==="fast"&&T("log axis found"):L(u)?L(h)?r._islinear=!0:s==="fast"&&T("y scale is not linear"):s==="fast"&&T("x scale is not linear");var _=iG.maxRowLength(b),C=r.xtype==="scaled"?"":u,S=aR(r,C,l,f,_,n),m=r.ytype==="scaled"?"":h,P=aR(r,m,d,p,b.length,i);r._extremes[n._id]=nR.findExtremes(n,S),r._extremes[i._id]=nR.findExtremes(i,P);var A={x:S,y:P,z:b,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&c&&(A.orig_x=c),r.yperiodalignment&&x&&(A.orig_y=x),C&&C.length===S.length-1&&(A.xCenter=C),m&&m.length===P.length-1&&(A.yCenter=m),o&&(A.xRanges=k.xRanges,A.yRanges=k.yRanges,A.pts=k.pts),a||Axt(t,r,{vals:b,cLetter:"z"}),a&&r.contours&&r.contours.coloring==="heatmap"){var B={type:r.type==="contour"?"heatmap":"histogram2d",xcalendar:r.xcalendar,ycalendar:r.ycalendar};A.xfill=aR(B,C,l,f,_,n),A.yfill=aR(B,m,d,p,b.length,i)}return[A]};function j_e(e){for(var t=[],r=e.length,n=0;n{"use strict";sR.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]];sR.STYLE=sR.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var aG=Te((Jur,K_e)=>{"use strict";var Z_e=lR(),Cxt=Mu(),Y_e=ei(),PA=null;function Lxt(){if(PA!==null)return PA;PA=!1;var e=Y_e.isSafari()||Y_e.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(Z_e.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")PA=t.some(function(o){return r.apply(null,o)});else{var n=Cxt.tester.append("image").attr("style",Z_e.STYLE),i=window.getComputedStyle(n.node()),a=i.imageRendering;PA=t.some(function(o){var s=o[1];return a===s||a===s.toLowerCase()}),n.remove()}}return PA}K_e.exports=Lxt});var uR=Te(($ur,axe)=>{"use strict";var J_e=Jl(),Pxt=cd(),zxt=$l(),Ixt=Mu(),Rxt=wu(),H0=ei(),$_e=Zf(),Dxt=eI(),Fxt=jl(),Bxt=_c().extractOpts,Oxt=_c().makeColorScaleFuncFromTrace,qxt=jv(),Nxt=Qh(),oG=Nxt.LINE_SPACING,Uxt=aG(),Vxt=lR().STYLE,ixe="heatmap-label";function nxe(e){return e.selectAll("g."+ixe)}function Q_e(e){nxe(e).remove()}axe.exports=function(e,t,r,n){var i=t.xaxis,a=t.yaxis;H0.makeTraceGroups(n,r,"hm").each(function(o){var s=J_e.select(this),u=o[0],l=u.trace,f=l.xgap||0,c=l.ygap||0,h=u.z,d=u.x,p=u.y,x=u.xCenter,b=u.yCenter,v=zxt.traceIs(l,"contour"),k=v?"best":l.zsmooth,E=h.length,T=H0.maxRowLength(h),L=!1,_=!1,C,S,m,P,A,B,F,U;for(B=0;C===void 0&&B0;)S=i.c2p(d[B]),B--;for(S0;)A=a.c2p(p[B]),B--;A=i._length||S<=0||P>=a._length||A<=0;if(W){var re=s.selectAll("image").data([]);re.exit().remove(),Q_e(s);return}var ae,be;G==="fast"?(ae=T,be=E):(ae=H,be=N);var Pe=document.createElement("canvas");Pe.width=ae,Pe.height=be;var Ce=Pe.getContext("2d",{willReadFrequently:!0}),de=Oxt(l,{noNumericCheck:!0,returnArray:!0}),te,ke;G==="fast"?(te=L?function(Ei){return T-1-Ei}:H0.identity,ke=_?function(Ei){return E-1-Ei}:H0.identity):(te=function(Ei){return H0.constrain(Math.round(i.c2p(d[Ei])-C),0,H)},ke=function(Ei){return H0.constrain(Math.round(a.c2p(p[Ei])-P),0,N)});var Ee=ke(0),Me=[Ee,Ee],Ue=L?0:1,Fe=_?0:1,me=0,Ne=0,ce=0,Ke=0,it,bt,Nt,nt,Ye;function kt(Ei,Vi){if(Ei!==void 0){var ti=de(Ei);return ti[0]=Math.round(ti[0]),ti[1]=Math.round(ti[1]),ti[2]=Math.round(ti[2]),me+=Vi,Ne+=ti[0]*Vi,ce+=ti[1]*Vi,Ke+=ti[2]*Vi,ti}return[0,0,0,0]}function At(Ei,Vi,ti,en){var Yr=Ei[ti.bin0];if(Yr===void 0)return kt(void 0,1);var oi=Ei[ti.bin1],Bi=Vi[ti.bin0],an=Vi[ti.bin1],rn=oi-Yr||0,Fi=Bi-Yr||0,Ri;return oi===void 0?an===void 0?Ri=0:Bi===void 0?Ri=2*(an-Yr):Ri=(2*an-Bi-Yr)*2/3:an===void 0?Bi===void 0?Ri=0:Ri=(2*Yr-oi-Bi)*2/3:Bi===void 0?Ri=(2*an-oi-Yr)*2/3:Ri=an+Yr-oi-Bi,kt(Yr+ti.frac*rn+en.frac*(Fi+ti.frac*Ri))}if(G!=="default"){var St=0,Bt;try{Bt=new Uint8Array(ae*be*4)}catch(Ei){Bt=new Array(ae*be*4)}if(G==="smooth"){var Zt=x||d,Et=b||p,Ae=new Array(Zt.length),ot=new Array(Et.length),dt=new Array(H),pt=x?txe:exe,at=b?txe:exe,Xe,rt,Qe;for(B=0;Brr||rr>a._length))for(F=pe;FNr||Nr>i._length)){var Er=Dxt({x:Wr,y:Pt},l,e._fullLayout);Er.x=Wr,Er.y=Pt;var Br=u.z[B][F];Br===void 0?(Er.z="",Er.zLabel=""):(Er.z=Br,Er.zLabel=Rxt.tickText(Ie,Br,"hover").text);var mi=u.text&&u.text[B]&&u.text[B][F];(mi===void 0||mi===!1)&&(mi=""),Er.text=mi;var Di=H0.texttemplateString(xe,Er,e._fullLayout._d3locale,Er,l._meta||{});if(Di){var Ii=Di.split("
"),Ci=Ii.length,nn=0;for(U=0;U{"use strict";oxe.exports={min:"zmin",max:"zmax"}});var fR=Te((efr,sxe)=>{"use strict";var Gxt=Jl();sxe.exports=function(t){Gxt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var hR=Te((tfr,uxe)=>{"use strict";var lxe=jc(),xE=ei(),cR=xE.isArrayOrTypedArray,Hxt=wu(),Wxt=_c().extractOpts;uxe.exports=function(t,r,n,i,a){a||(a={});var o=a.isContour,s=t.cd[0],u=s.trace,l=t.xa,f=t.ya,c=s.x,h=s.y,d=s.z,p=s.xCenter,x=s.yCenter,b=s.zmask,v=u.zhoverformat,k=c,E=h,T,L,_,C;if(t.index!==!1){try{_=Math.round(t.index[1]),C=Math.round(t.index[0])}catch(re){xE.error("Error hovering on heatmap, pointNumber must be [row,col], found:",t.index);return}if(_<0||_>=d[0].length||C<0||C>d.length)return}else{if(lxe.inbox(r-c[0],r-c[c.length-1],0)>0||lxe.inbox(n-h[0],n-h[h.length-1],0)>0)return;if(o){var S;for(k=[2*c[0]-c[1]],S=1;S{"use strict";fxe.exports={attributes:EA(),supplyDefaults:f_e(),calc:oR(),plot:uR(),colorbar:M_(),style:fR(),hoverPoints:hR(),moduleType:"trace",name:"heatmap",basePlotModule:Ah(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var dxe=Te((ifr,hxe)=>{"use strict";hxe.exports=cxe()});var sG=Te((nfr,pxe)=>{"use strict";pxe.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var mxe=Te((afr,vxe)=>{"use strict";vxe.exports={eventDataKeys:["binNumber"]}});var dR=Te((ofr,_xe)=>{"use strict";var Pv=Ly(),yxe=Hc().axisHoverFormat,jxt=Hu().hovertemplateAttrs,Xxt=Hu().texttemplateAttrs,lG=gc(),gxe=sG(),Zxt=mxe(),uG=Su().extendFlat;_xe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:yxe("x"),yhoverformat:yxe("y"),text:uG({},Pv.text,{}),hovertext:uG({},Pv.hovertext,{}),orientation:Pv.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:gxe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:gxe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:jxt({},{keys:Zxt.eventDataKeys}),texttemplate:Xxt({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),textposition:uG({},Pv.textposition,{arrayOk:!1}),textfont:lG({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:lG({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:lG({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Pv.insidetextanchor,textangle:Pv.textangle,cliponaxis:Pv.cliponaxis,constraintext:Pv.constraintext,marker:Pv.marker,offsetgroup:Pv.offsetgroup,alignmentgroup:Pv.alignmentgroup,selected:Pv.selected,unselected:Pv.unselected,zorder:Pv.zorder}});var Axe=Te((sfr,wxe)=>{"use strict";var xxe=$l(),bE=ei(),bxe=jl(),Yxt=r0().handleText,Kxt=OI(),Jxt=dR();wxe.exports=function(t,r,n,i){function a(k,E){return bE.coerce(t,r,Jxt,k,E)}var o=a("x"),s=a("y"),u=a("cumulative.enabled");u&&(a("cumulative.direction"),a("cumulative.currentbin")),a("text");var l=a("textposition");Yxt(t,r,i,a,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat");var f=a("orientation",s&&!o?"h":"v"),c=f==="v"?"x":"y",h=f==="v"?"y":"x",d=o&&s?Math.min(bE.minRowLength(o)&&bE.minRowLength(s)):bE.minRowLength(r[c]||[]);if(!d){r.visible=!1;return}r._length=d;var p=xxe.getComponentMethod("calendars","handleTraceDefaults");p(t,r,["x","y"],i);var x=r[h];x&&a("histfunc"),a("histnorm"),a("autobin"+c),Kxt(t,r,a,n,i),bE.coerceSelectionMarkerOpacity(r,a);var b=(r.marker.line||{}).color,v=xxe.getComponentMethod("errorbars","supplyDefaults");v(t,r,b||bxe.defaultLine,{axis:"y"}),v(t,r,b||bxe.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var vR=Te((lfr,Mxe)=>{"use strict";var wE=ei(),$xt=$c(),pR=$l().traceIs,Qxt=Gb(),ebt=r0().validateCornerradius,Txe=wE.nestedProperty,fG=qb().getAxisGroup,Sxe=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],tbt=["x","y"];Mxe.exports=function(t,r){var n=r._histogramBinOpts={},i=[],a={},o=[],s,u,l,f,c,h,d;function p(G,j){return wE.coerce(s._input,s,s._module.attributes,G,j)}function x(G){return G.orientation==="v"?"x":"y"}function b(G,j){var H=$xt.getFromTrace({_fullLayout:r},G,j);return H.type}function v(G,j,H){var N=G.uid+"__"+H;j||(j=N);var W=b(G,H),re=G[H+"calendar"]||"",ae=n[j],be=!0;ae&&(W===ae.axType&&re===ae.calendar?(be=!1,ae.traces.push(G),ae.dirs.push(H)):(j=N,W!==ae.axType&&wE.warn(["Attempted to group the bins of trace",G.index,"set on a","type:"+W,"axis","with bins on","type:"+ae.axType,"axis."].join(" ")),re!==ae.calendar&&wE.warn(["Attempted to group the bins of trace",G.index,"set with a",re,"calendar","with bins",ae.calendar?"on a "+ae.calendar+" calendar":"w/o a set calendar"].join(" ")))),be&&(n[j]={traces:[G],dirs:[H],axType:W,calendar:G[H+"calendar"]||""}),G["_"+H+"bingroup"]=j}for(c=0;c{"use strict";var rbt=AA().hoverPoints,ibt=wu().hoverLabelText;Exe.exports=function(t,r,n,i,a){var o=rbt(t,r,n,i,a);if(o){t=o[0];var s=t.cd[t.index],u=t.cd[0].trace;if(!u.cumulative.enabled){var l=u.orientation==="h"?"y":"x";t[l+"Label"]=ibt(t[l+"a"],[s.ph0,s.ph1],u[l+"hoverformat"])}return o}}});var cG=Te((ffr,Cxe)=>{"use strict";Cxe.exports=function(t,r,n,i,a){if(t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"zLabelVal"in r&&(t.z=r.zLabelVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),!(n.cumulative||{}).enabled){var o=Array.isArray(a)?i[0].pts[a[0]][a[1]]:i[a].pts;t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex;var s;if(n._indexToPoints){s=[];for(var u=0;u{"use strict";Lxe.exports={attributes:dR(),layoutAttributes:BI(),supplyDefaults:Axe(),crossTraceDefaults:vR(),supplyLayoutDefaults:zV(),calc:tG().calc,crossTraceCalc:Hb().crossTraceCalc,plot:i2().plot,layerName:"barlayer",style:N0().style,styleOnSelect:N0().styleOnSelect,colorbar:ep(),hoverPoints:kxe(),selectPoints:TA(),eventData:cG(),moduleType:"trace",name:"histogram",basePlotModule:Ah(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var Ixe=Te((hfr,zxe)=>{"use strict";zxe.exports=Pxe()});var yR=Te((dfr,Dxe)=>{"use strict";var Vm=dR(),Rxe=sG(),mR=EA(),nbt=Vf(),hG=Hc().axisHoverFormat,abt=Hu().hovertemplateAttrs,obt=Hu().texttemplateAttrs,sbt=nc(),AE=Su().extendFlat;Dxe.exports=AE({x:Vm.x,y:Vm.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:Vm.histnorm,histfunc:Vm.histfunc,nbinsx:Vm.nbinsx,xbins:Rxe("x"),nbinsy:Vm.nbinsy,ybins:Rxe("y"),autobinx:Vm.autobinx,autobiny:Vm.autobiny,bingroup:AE({},Vm.bingroup,{}),xbingroup:AE({},Vm.bingroup,{}),ybingroup:AE({},Vm.bingroup,{}),xgap:mR.xgap,ygap:mR.ygap,zsmooth:mR.zsmooth,xhoverformat:hG("x"),yhoverformat:hG("y"),zhoverformat:hG("z",1),hovertemplate:abt({},{keys:"z"}),texttemplate:obt({arrayOk:!1,editType:"plot"},{keys:"z"}),textfont:mR.textfont,showlegend:AE({},nbt.showlegend,{dflt:!1})},sbt("",{cLetter:"z",autoColorDflt:!1}))});var dG=Te((pfr,Bxe)=>{"use strict";var lbt=$l(),Fxe=ei();Bxe.exports=function(t,r,n,i){var a=n("x"),o=n("y"),s=Fxe.minRowLength(a),u=Fxe.minRowLength(o);if(!s||!u){r.visible=!1;return}r._length=Math.min(s,u);var l=lbt.getComponentMethod("calendars","handleTraceDefaults");l(t,r,["x","y"],i);var f=n("z")||n("marker.color");f&&n("histfunc"),n("histnorm"),n("autobinx"),n("autobiny")}});var qxe=Te((vfr,Oxe)=>{"use strict";var ubt=ei(),fbt=dG(),cbt=ZV(),hbt=ed(),dbt=_E(),pbt=yR();Oxe.exports=function(t,r,n,i){function a(o,s){return ubt.coerce(t,r,pbt,o,s)}fbt(t,r,a,i),r.visible!==!1&&(cbt(t,r,a,i),hbt(t,r,i,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),dbt(a,i),a("xhoverformat"),a("yhoverformat"))}});var Vxe=Te((mfr,Uxe)=>{"use strict";var vbt=hR(),Nxe=wu().hoverLabelText;Uxe.exports=function(t,r,n,i,a){var o=vbt(t,r,n,i,a);if(o){t=o[0];var s=t.index,u=s[0],l=s[1],f=t.cd[0],c=f.trace,h=f.xRanges[l],d=f.yRanges[u];return t.xLabel=Nxe(t.xa,[h[0],h[1]],c.xhoverformat),t.yLabel=Nxe(t.ya,[d[0],d[1]],c.yhoverformat),o}}});var Hxe=Te((yfr,Gxe)=>{"use strict";Gxe.exports={attributes:yR(),supplyDefaults:qxe(),crossTraceDefaults:vR(),calc:oR(),plot:uR(),layerName:"heatmaplayer",colorbar:M_(),style:fR(),hoverPoints:Vxe(),eventData:cG(),moduleType:"trace",name:"histogram2d",basePlotModule:Ah(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var jxe=Te((gfr,Wxe)=>{"use strict";Wxe.exports=Hxe()});var gR=Te((_fr,Xxe)=>{"use strict";Xxe.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var TE=Te((xfr,Jxe)=>{"use strict";var id=EA(),_R=Xc(),Yxe=Hc(),pG=Yxe.axisHoverFormat,mbt=Yxe.descriptionOnlyNumbers,ybt=nc(),gbt=Id().dash,_bt=gc(),zA=Su().extendFlat,Kxe=gR(),xbt=Kxe.COMPARISON_OPS2,bbt=Kxe.INTERVAL_OPS,Zxe=_R.line;Jxe.exports=zA({z:id.z,x:id.x,x0:id.x0,dx:id.dx,y:id.y,y0:id.y0,dy:id.dy,xperiod:id.xperiod,yperiod:id.yperiod,xperiod0:_R.xperiod0,yperiod0:_R.yperiod0,xperiodalignment:id.xperiodalignment,yperiodalignment:id.yperiodalignment,text:id.text,hovertext:id.hovertext,transpose:id.transpose,xtype:id.xtype,ytype:id.ytype,xhoverformat:pG("x"),yhoverformat:pG("y"),zhoverformat:pG("z",1),hovertemplate:id.hovertemplate,texttemplate:zA({},id.texttemplate,{}),textfont:zA({},id.textfont,{}),hoverongaps:id.hoverongaps,connectgaps:zA({},id.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:_bt({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:mbt("contour label")},operation:{valType:"enumerated",values:[].concat(xbt).concat(bbt),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:zA({},Zxe.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:gbt,smoothing:zA({},Zxe.smoothing,{}),editType:"plot"},zorder:_R.zorder},ybt("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var mG=Te((bfr,Qxe)=>{"use strict";var Gp=yR(),Bg=TE(),wbt=nc(),vG=Hc().axisHoverFormat,$xe=Su().extendFlat;Qxe.exports=$xe({x:Gp.x,y:Gp.y,z:Gp.z,marker:Gp.marker,histnorm:Gp.histnorm,histfunc:Gp.histfunc,nbinsx:Gp.nbinsx,xbins:Gp.xbins,nbinsy:Gp.nbinsy,ybins:Gp.ybins,autobinx:Gp.autobinx,autobiny:Gp.autobiny,bingroup:Gp.bingroup,xbingroup:Gp.xbingroup,ybingroup:Gp.ybingroup,autocontour:Bg.autocontour,ncontours:Bg.ncontours,contours:Bg.contours,line:{color:Bg.line.color,width:$xe({},Bg.line.width,{dflt:.5}),dash:Bg.line.dash,smoothing:Bg.line.smoothing,editType:"plot"},xhoverformat:vG("x"),yhoverformat:vG("y"),zhoverformat:vG("z",1),hovertemplate:Gp.hovertemplate,texttemplate:Bg.texttemplate,textfont:Bg.textfont},wbt("",{cLetter:"z",editTypeOverride:"calc"}))});var xR=Te((wfr,ebe)=>{"use strict";ebe.exports=function(t,r,n,i){var a=i("contours.start"),o=i("contours.end"),s=a===!1||o===!1,u=n("contours.size"),l;s?l=r.autocontour=!0:l=n("autocontour",!1),(l||!u)&&n("ncontours")}});var yG=Te((Afr,tbe)=>{"use strict";var Abt=ei();tbe.exports=function(t,r,n,i){i||(i={});var a=t("contours.showlabels");if(a){var o=r.font;Abt.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:n}}),t("contours.labelformat")}i.hasHover!==!1&&t("zhoverformat")}});var bR=Te((Tfr,rbe)=>{"use strict";var Tbt=ed(),Sbt=yG();rbe.exports=function(t,r,n,i,a){var o=n("contours.coloring"),s,u="";o==="fill"&&(s=n("contours.showlines")),s!==!1&&(o!=="lines"&&(u=n("line.color","#000")),n("line.width",.5),n("line.dash")),o!=="none"&&(t.showlegend!==!0&&(r.showlegend=!1),r._dfltShowLegend=!1,Tbt(t,r,i,n,{prefix:"",cLetter:"z"})),n("line.smoothing"),Sbt(n,i,u,a)}});var obe=Te((Sfr,abe)=>{"use strict";var ibe=ei(),Mbt=dG(),Ebt=xR(),kbt=bR(),Cbt=_E(),nbe=mG();abe.exports=function(t,r,n,i){function a(s,u){return ibe.coerce(t,r,nbe,s,u)}function o(s){return ibe.coerce2(t,r,nbe,s)}Mbt(t,r,a,i),r.visible!==!1&&(Ebt(t,r,a,o),kbt(t,r,a,i),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),r.contours&&r.contours.coloring==="heatmap"&&Cbt(a,i))}});var xG=Te((Mfr,lbe)=>{"use strict";var _G=wu(),gG=ei();lbe.exports=function(t,r){var n=t.contours;if(t.autocontour){var i=t.zmin,a=t.zmax;(t.zauto||i===void 0)&&(i=gG.aggNums(Math.min,null,r)),(t.zauto||a===void 0)&&(a=gG.aggNums(Math.max,null,r));var o=sbe(i,a,t.ncontours);n.size=o.dtick,n.start=_G.tickFirst(o),o.range.reverse(),n.end=_G.tickFirst(o),n.start===i&&(n.start+=n.size),n.end===a&&(n.end-=n.size),n.start>n.end&&(n.start=n.end=(n.start+n.end)/2),t._input.contours||(t._input.contours={}),gG.extendFlat(t._input.contours,{start:n.start,end:n.end,size:n.size}),t._input.autocontour=!0}else if(n.type!=="constraint"){var s=n.start,u=n.end,l=t._input.contours;if(s>u&&(n.start=l.start=u,u=n.end=l.end=s,s=n.start),!(n.size>0)){var f;s===u?f=1:f=sbe(s,u,t.ncontours).dtick,l.size=n.size=f}}};function sbe(e,t,r){var n={type:"linear",range:[e,t]};return _G.autoTicks(n,(t-e)/(r||15)),n}});var SE=Te((Efr,ube)=>{"use strict";ube.exports=function(t){return t.end+t.size/1e6}});var bG=Te((kfr,cbe)=>{"use strict";var fbe=_c(),Lbt=oR(),Pbt=xG(),zbt=SE();cbe.exports=function(t,r){var n=Lbt(t,r),i=n[0].z;Pbt(r,i);var a=r.contours,o=fbe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var u=a.start,l=zbt(a),f=a.size||1,c=Math.floor((l-u)/f)+1;isFinite(f)||(f=1,c=1);var h=u-f/2,d=h+c*f;s=[h,d]}else s=i;return fbe.calc(t,r,{vals:s,cLetter:"z"}),n}});var ME=Te((Cfr,hbe)=>{"use strict";hbe.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}});var wG=Te((Lfr,dbe)=>{"use strict";var wR=ME();dbe.exports=function(t){var r=t[0].z,n=r.length,i=r[0].length,a=n===2||i===2,o,s,u,l,f,c,h,d,p;for(s=0;se?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);if(r===5||r===10){var n=(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4;return e>n?r===5?713:1114:r===5?104:208}return r===15?0:r}});var AG=Te((Pfr,mbe)=>{"use strict";var AR=ei(),IA=ME();mbe.exports=function(t,r,n){var i,a,o,s,u;for(r=r||.01,n=n||.01,o=0;o20?(o=IA.CHOOSESADDLE[o][(s[0]||s[1])<0?0:1],e.crossings[a]=IA.SADDLEREMAINDER[o]):delete e.crossings[a],s=IA.NEWDELTA[o],!s){AR.log("Found bad marching index:",o,t,e.level);break}u.push(vbe(e,t,s)),t[0]+=s[0],t[1]+=s[1],a=t.join(","),EE(u[u.length-1],u[u.length-2],n,i)&&u.pop();var p=s[0]&&(t[0]<0||t[0]>f-2)||s[1]&&(t[1]<0||t[1]>l-2),x=t[0]===c[0]&&t[1]===c[1]&&s[0]===h[0]&&s[1]===h[1];if(x||r&&p)break;o=e.crossings[a]}d===1e4&&AR.log("Infinite loop in contour?");var b=EE(u[0],u[u.length-1],n,i),v=0,k=.2*e.smoothing,E=[],T=0,L,_,C,S,m,P,A,B,F,U,G;for(d=1;d=T;d--)if(L=E[d],L=T&&L+E[_]B&&F--,e.edgepaths[F]=G.concat(u,U));break}W||(e.edgepaths[B]=u.concat(U))}for(B=0;B20&&t?e===208||e===1114?n=r[0]===0?1:-1:i=r[1]===0?1:-1:IA.BOTTOMSTART.indexOf(e)!==-1?i=1:IA.LEFTSTART.indexOf(e)!==-1?n=1:IA.TOPSTART.indexOf(e)!==-1?i=-1:n=-1,[n,i]}function vbe(e,t,r){var n=t[0]+Math.max(r[0],0),i=t[1]+Math.max(r[1],0),a=e.z[i][n],o=e.xaxis,s=e.yaxis;if(r[1]){var u=(e.level-a)/(e.z[i][n+1]-a),l=(u!==1?(1-u)*o.c2l(e.x[n]):0)+(u!==0?u*o.c2l(e.x[n+1]):0);return[o.c2p(o.l2c(l),!0),s.c2p(e.y[i],!0),n+u,i]}else{var f=(e.level-a)/(e.z[i+1][n]-a),c=(f!==1?(1-f)*s.c2l(e.y[i]):0)+(f!==0?f*s.c2l(e.y[i+1]):0);return[o.c2p(e.x[n],!0),s.c2p(s.l2c(c),!0),n,i+f]}}});var xbe=Te((zfr,_be)=>{"use strict";var TG=gR(),Fbt=ku();_be.exports={"[]":ybe("[]"),"][":ybe("]["),">":SG(">"),"<":SG("<"),"=":SG("=")};function gbe(e,t){var r=Array.isArray(t),n;function i(a){return Fbt(a)?+a:null}return TG.COMPARISON_OPS2.indexOf(e)!==-1?n=i(r?t[0]:t):TG.INTERVAL_OPS.indexOf(e)!==-1?n=r?[i(t[0]),i(t[1])]:[i(t),i(t)]:TG.SET_OPS.indexOf(e)!==-1&&(n=r?t.map(i):[i(t)]),n}function ybe(e){return function(t){t=gbe(e,t);var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return{start:r,end:n,size:n-r}}}function SG(e){return function(t){return t=gbe(e,t),{start:t,end:1/0,size:1/0}}}});var MG=Te((Ifr,wbe)=>{"use strict";var bbe=ei(),Bbt=xbe(),Obt=SE();wbe.exports=function(t,r,n){for(var i=t.type==="constraint"?Bbt[t._operation](t.value):t,a=i.size,o=[],s=Obt(i),u=n.trace._carpetTrace,l=u?{xaxis:u.aaxis,yaxis:u.baxis,x:n.a,y:n.b}:{xaxis:r.xaxis,yaxis:r.yaxis,x:n.x,y:n.y},f=i.start;f1e3){bbe.warn("Too many contours, clipping at 1000",t);break}return o}});var EG=Te((Rfr,Tbe)=>{"use strict";var RA=ei();Tbe.exports=function(e,t){var r,n,i,a=function(u){return u.reverse()},o=function(u){return u};switch(t){case"=":case"<":return e;case">":for(e.length!==1&&RA.warn("Contour data invalid for the specified inequality operation."),n=e[0],r=0;r{"use strict";Sbe.exports=function(e,t){var r=e[0],n=r.z,i;switch(t.type){case"levels":var a=Math.min(n[0][0],n[0][1]);for(i=0;io.level||o.starts.length&&a===o.level)}break;case"constraint":if(r.prefixBoundary=!1,r.edgepaths.length)return;var s=r.x.length,u=r.y.length,l=-1/0,f=1/0;for(i=0;i":c>l&&(r.prefixBoundary=!0);break;case"<":(cl||r.starts.length&&d===f)&&(r.prefixBoundary=!0);break;case"][":h=Math.min(c[0],c[1]),d=Math.max(c[0],c[1]),hl&&(r.prefixBoundary=!0);break}break}}});var TR=Te(Hp=>{"use strict";var CE=Jl(),Od=ei(),Og=Mu(),qbt=_c(),kbe=Zf(),Mbe=wu(),Ebe=gy(),Nbt=uR(),Cbe=wG(),Lbe=AG(),Ubt=MG(),Vbt=EG(),Pbe=kG(),kE=ME(),Iy=kE.LABELOPTIMIZER;Hp.plot=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;Od.makeTraceGroups(i,n,"contour").each(function(s){var u=CE.select(this),l=s[0],f=l.trace,c=l.x,h=l.y,d=f.contours,p=Ubt(d,r,l),x=Od.ensureSingle(u,"g","heatmapcoloring"),b=[];d.coloring==="heatmap"&&(b=[s]),Nbt(t,r,b,x),Cbe(p),Lbe(p);var v=a.c2p(c[0],!0),k=a.c2p(c[c.length-1],!0),E=o.c2p(h[0],!0),T=o.c2p(h[h.length-1],!0),L=[[v,T],[k,T],[k,E],[v,E]],_=p;d.type==="constraint"&&(_=Vbt(p,d._operation)),Gbt(u,L,d),Hbt(u,_,L,d),Wbt(u,p,t,l,d),Xbt(u,r,t,l,L)})};function Gbt(e,t,r){var n=Od.ensureSingle(e,"g","contourbg"),i=n.selectAll("path").data(r.coloring==="fill"?[0]:[]);i.enter().append("path"),i.exit().remove(),i.attr("d","M"+t.join("L")+"Z").style("stroke","none")}function Hbt(e,t,r,n){var i=n.coloring==="fill"||n.type==="constraint"&&n._operation!=="=",a="M"+r.join("L")+"Z";i&&Pbe(t,n);var o=Od.ensureSingle(e,"g","contourfill"),s=o.selectAll("path").data(i?t:[]);s.enter().append("path"),s.exit().remove(),s.each(function(u){var l=(u.prefixBoundary?a:"")+zbe(u,r);l?CE.select(this).attr("d",l).style("stroke","none"):CE.select(this).remove()})}function zbe(e,t){var r="",n=0,i=e.edgepaths.map(function(v,k){return k}),a=!0,o,s,u,l,f,c;function h(v){return Math.abs(v[1]-t[0][1])<.01}function d(v){return Math.abs(v[1]-t[2][1])<.01}function p(v){return Math.abs(v[0]-t[0][0])<.01}function x(v){return Math.abs(v[0]-t[2][0])<.01}for(;i.length;){for(c=Og.smoothopen(e.edgepaths[n],e.smoothing),r+=a?c:c.replace(/^M/,"L"),i.splice(i.indexOf(n),1),o=e.edgepaths[n][e.edgepaths[n].length-1],l=-1,u=0;u<4;u++){if(!o){Od.log("Missing end?",n,e);break}for(h(o)&&!x(o)?s=t[1]:p(o)?s=t[0]:d(o)?s=t[3]:x(o)&&(s=t[2]),f=0;f=0&&(s=b,l=f):Math.abs(o[1]-s[1])<.01?Math.abs(o[1]-b[1])<.01&&(b[0]-o[0])*(s[0]-b[0])>=0&&(s=b,l=f):Od.log("endpt to newendpt is not vert. or horz.",o,s,b)}if(o=s,l>=0)break;r+="L"+s}if(l===e.edgepaths.length){Od.log("unclosed perimeter path");break}n=l,a=i.indexOf(n)===-1,a&&(n=i[0],r+="Z")}for(n=0;nIy.MAXCOST*2)break;h&&(s/=2),o=l-s/2,u=o+s*1.5}if(c<=Iy.MAXCOST)return f};function jbt(e,t,r,n){var i=t.width/2,a=t.height/2,o=e.x,s=e.y,u=e.theta,l=Math.cos(u)*i,f=Math.sin(u)*i,c=(o>n.center?n.right-o:o-n.left)/(l+Math.abs(Math.sin(u)*a)),h=(s>n.middle?n.bottom-s:s-n.top)/(Math.abs(f)+Math.cos(u)*a);if(c<1||h<1)return 1/0;var d=Iy.EDGECOST*(1/(c-1)+1/(h-1));d+=Iy.ANGLECOST*u*u;for(var p=o-l,x=s-f,b=o+l,v=s+f,k=0;k{"use strict";var Ybt=Jl(),CG=_c(),Kbt=SE();Ibe.exports=function(t){var r=t.contours,n=r.start,i=Kbt(r),a=r.size||1,o=Math.floor((i-n)/a)+1,s=r.coloring==="lines"?0:1,u=CG.extractOpts(t);isFinite(a)||(a=1,o=1);var l=u.reversescale?CG.flipScale(u.colorscale):u.colorscale,f=l.length,c=new Array(f),h=new Array(f),d,p,x=u.min,b=u.max;if(r.coloring==="heatmap"){for(p=0;p=b)&&(n<=x&&(n=x),i>=b&&(i=b),o=Math.floor((i-n)/a)+1,s=0),p=0;px&&(c.unshift(x),h.unshift(h[0])),c[c.length-1]{"use strict";var SR=Jl(),Rbe=Mu(),Jbt=fR(),$bt=LG();Dbe.exports=function(t){var r=SR.select(t).selectAll("g.contour");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=SR.select(this),a=n[0].trace,o=a.contours,s=a.line,u=o.size||1,l=o.start,f=o.type==="constraint",c=!f&&o.coloring==="lines",h=!f&&o.coloring==="fill",d=c||h?$bt(a):null;i.selectAll("g.contourlevel").each(function(b){SR.select(this).selectAll("path").call(Rbe.lineGroupStyle,s.width,c?d(b.level):s.color,s.dash)});var p=o.labelfont;if(i.selectAll("g.contourlabels text").each(function(b){Rbe.font(SR.select(this),{weight:p.weight,style:p.style,variant:p.variant,textcase:p.textcase,lineposition:p.lineposition,shadow:p.shadow,family:p.family,size:p.size,color:p.color||(c?d(b.level):s.color)})}),f)i.selectAll("g.contourfill path").style("fill",a.fillcolor);else if(h){var x;i.selectAll("g.contourfill path").style("fill",function(b){return x===void 0&&(x=b.level),d(b.level+.5*u)}),x===void 0&&(x=l),i.selectAll("g.contourbg path").style("fill",d(x-.5*u))}}),Jbt(t)}});var ER=Te((qfr,Bbe)=>{"use strict";var Fbe=_c(),Qbt=LG(),e2t=SE();function t2t(e,t,r){var n=t.contours,i=t.line,a=n.size||1,o=n.coloring,s=Qbt(t,{isColorbar:!0});if(o==="heatmap"){var u=Fbe.extractOpts(t);r._fillgradient=u.reversescale?Fbe.flipScale(u.colorscale):u.colorscale,r._zrange=[u.min,u.max]}else o==="fill"&&(r._fillcolor=s);r._line={color:o==="lines"?s:i.color,width:n.showlines!==!1?i.width:0,dash:i.dash},r._levels={start:n.start,end:e2t(n),size:a}}Bbe.exports={min:"zmin",max:"zmax",calc:t2t}});var PG=Te((Nfr,Obe)=>{"use strict";var kR=jl(),r2t=hR();Obe.exports=function(t,r,n,i,a){a||(a={}),a.isContour=!0;var o=r2t(t,r,n,i,a);return o&&o.forEach(function(s){var u=s.trace;u.contours.type==="constraint"&&(u.fillcolor&&kR.opacity(u.fillcolor)?s.color=kR.addOpacity(u.fillcolor,1):u.contours.showlines&&kR.opacity(u.line.color)&&(s.color=kR.addOpacity(u.line.color,1)))}),o}});var Nbe=Te((Ufr,qbe)=>{"use strict";qbe.exports={attributes:mG(),supplyDefaults:obe(),crossTraceDefaults:vR(),calc:bG(),plot:TR().plot,layerName:"contourlayer",style:MR(),colorbar:ER(),hoverPoints:PG(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:Ah(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var Vbe=Te((Vfr,Ube)=>{"use strict";Ube.exports=Nbe()});var zG=Te((Gfr,Zbe)=>{"use strict";var Gbe=ku(),i2t=yG(),jbe=jl(),Hbe=jbe.addOpacity,n2t=jbe.opacity,Xbe=gR(),Wbe=ei().isArrayOrTypedArray,a2t=Xbe.CONSTRAINT_REDUCTION,o2t=Xbe.COMPARISON_OPS2;Zbe.exports=function(t,r,n,i,a,o){var s=r.contours,u,l,f,c=n("contours.operation");if(s._operation=a2t[c],s2t(n,s),c==="="?u=s.showlines=!0:(u=n("contours.showlines"),f=n("fillcolor",Hbe((t.line||{}).color||a,.5))),u){var h=f&&n2t(f)?Hbe(r.fillcolor,1):a;l=n("line.color",h),n("line.width",2),n("line.dash")}n("line.smoothing"),i2t(n,i,l,o)};function s2t(e,t){var r;o2t.indexOf(t.operation)===-1?(e("contours.value",[0,1]),Wbe(t.value)?t.value.length>2?t.value=t.value.slice(2):t.length===0?t.value=[0,1]:t.length<2?(r=parseFloat(t.value[0]),t.value=[r,r+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:Gbe(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),Gbe(t.value)||(Wbe(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var Jbe=Te((Hfr,Kbe)=>{"use strict";var IG=ei(),l2t=KI(),u2t=Pm(),f2t=zG(),c2t=xR(),h2t=bR(),d2t=_E(),Ybe=TE();Kbe.exports=function(t,r,n,i){function a(l,f){return IG.coerce(t,r,Ybe,l,f)}function o(l){return IG.coerce2(t,r,Ybe,l)}var s=l2t(t,r,a,i);if(!s){r.visible=!1;return}u2t(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hoverongaps"),a("hovertemplate");var u=a("contours.type")==="constraint";a("connectgaps",IG.isArray1D(r.z)),u?f2t(t,r,a,i,n):(c2t(t,r,a,o),h2t(t,r,a,i)),r.contours&&r.contours.coloring==="heatmap"&&d2t(a,i),a("zorder")}});var Qbe=Te((Wfr,$be)=>{"use strict";$be.exports={attributes:TE(),supplyDefaults:Jbe(),calc:bG(),plot:TR().plot,style:MR(),colorbar:ER(),hoverPoints:PG(),moduleType:"trace",name:"contour",basePlotModule:Ah(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var t2e=Te((jfr,e2e)=>{"use strict";e2e.exports=Qbe()});var RG=Te((Xfr,i2e)=>{"use strict";var p2t=Hu().hovertemplateAttrs,v2t=Hu().texttemplateAttrs,m2t=Em(),a0=Xc(),y2t=Vf(),r2e=nc(),g2t=Id().dash,E_=Su().extendFlat,W0=a0.marker,LE=a0.line,_2t=W0.line;i2e.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:E_({},a0.mode,{dflt:"markers"}),text:E_({},a0.text,{}),texttemplate:v2t({editType:"plot"},{keys:["a","b","c","text"]}),hovertext:E_({},a0.hovertext,{}),line:{color:LE.color,width:LE.width,dash:g2t,backoff:LE.backoff,shape:E_({},LE.shape,{values:["linear","spline"]}),smoothing:LE.smoothing,editType:"calc"},connectgaps:a0.connectgaps,cliponaxis:a0.cliponaxis,fill:E_({},a0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:m2t(),marker:E_({symbol:W0.symbol,opacity:W0.opacity,angle:W0.angle,angleref:W0.angleref,standoff:W0.standoff,maxdisplayed:W0.maxdisplayed,size:W0.size,sizeref:W0.sizeref,sizemin:W0.sizemin,sizemode:W0.sizemode,line:E_({width:_2t.width,editType:"calc"},r2e("marker.line")),gradient:W0.gradient,editType:"calc"},r2e("marker")),textfont:a0.textfont,textposition:a0.textposition,selected:a0.selected,unselected:a0.unselected,hoverinfo:E_({},y2t.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:a0.hoveron,hovertemplate:p2t()}});var s2e=Te((Zfr,o2e)=>{"use strict";var n2e=ei(),x2t=Sy(),DA=lc(),b2t=$v(),w2t=I0(),a2e=J3(),A2t=R0(),T2t=zm(),S2t=RG();o2e.exports=function(t,r,n,i){function a(h,d){return n2e.coerce(t,r,S2t,h,d)}var o=a("a"),s=a("b"),u=a("c"),l;if(o?(l=o.length,s?(l=Math.min(l,s.length),u&&(l=Math.min(l,u.length))):u?l=Math.min(l,u.length):l=0):s&&u&&(l=Math.min(s.length,u.length)),!l){r.visible=!1;return}r._length=l,a("sum"),a("text"),a("hovertext"),r.hoveron!=="fills"&&a("hovertemplate");var f=l{"use strict";var DG=wu();l2e.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.aLabel=DG.tickText(a.aaxis,t.a,!0).text,i.bLabel=DG.tickText(a.baxis,t.b,!0).text,i.cLabel=DG.tickText(a.caxis,t.c,!0).text,i}});var d2e=Te((Kfr,h2e)=>{"use strict";var FG=ku(),M2t=D0(),E2t=ky(),k2t=F0(),C2t=B0().calcMarkerSize,f2e=["a","b","c"],c2e={a:["b","c"],b:["a","c"],c:["a","b"]};h2e.exports=function(t,r){var n=t._fullLayout[r.subplot],i=n.sum,a=r.sum||i,o={a:r.a,b:r.b,c:r.c},s=r.ids,u,l,f,c,h,d;for(u=0;u{"use strict";var L2t=iA();p2e.exports=function(t,r,n){var i=r.plotContainer;i.select(".scatterlayer").selectAll("*").remove();for(var a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:i,layerClipId:r._hasClipOnAxisFalse?r.clipIdRelative:null},u=r.layers.frontplot.select("g.scatterlayer"),l=0;l{"use strict";var P2t=sA();m2e.exports=function(t,r,n,i){var a=P2t(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,u=t.xa._length,l=u*s/2,f=u-l;return o.x0=Math.max(Math.min(o.x0,f),l),o.x1=Math.max(Math.min(o.x1,f),l),a}var c=o.cd[o.index],h=o.trace,d=o.subplot;o.a=c.a,o.b=c.b,o.c=c.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var p={};p[h.subplot]={_subplot:d};var x=h._module.formatLabels(c,h,p);o.aLabel=x.aLabel,o.bLabel=x.bLabel,o.cLabel=x.cLabel;var b=c.hi||h.hoverinfo,v=[];function k(T,L){v.push(T._hovertitle+": "+L)}if(!h.hovertemplate){var E=b.split("+");E.indexOf("all")!==-1&&(E=["a","b","c"]),E.indexOf("a")!==-1&&k(d.aaxis,o.aLabel),E.indexOf("b")!==-1&&k(d.baxis,o.bLabel),E.indexOf("c")!==-1&&k(d.caxis,o.cLabel)}return o.extraText=v.join("
"),o.hovertemplate=h.hovertemplate,a}});var _2e=Te((Qfr,g2e)=>{"use strict";g2e.exports=function(t,r,n,i,a){if(r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),i[a]){var o=i[a];t.a=o.a,t.b=o.b,t.c=o.c}else t.a=r.a,t.b=r.b,t.c=r.c;return t}});var L2e=Te((ecr,C2e)=>{"use strict";var S2e=Jl(),z2t=cd(),BG=$l(),qg=ei(),Ry=qg.strTranslate,CR=qg._,BA=jl(),LR=Mu(),PE=gy(),OG=Su().extendFlat,I2t=Cc(),k_=wu(),x2e=gp(),b2e=jc(),M2e=Sm(),w2e=M2e.freeMode,R2t=M2e.rectMode,qG=Mb(),D2t=nh().prepSelect,F2t=nh().selectOnClick,B2t=nh().clearOutline,O2t=nh().clearSelectionsCache,E2e=dd();function k2e(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.updateFx(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}C2e.exports=k2e;var Dy=k2e.prototype;Dy.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Dy.plot=function(e,t){var r=this,n=t[r.id],i=t._size;r._hasClipOnAxisFalse=!1;for(var a=0;aFA*l?(v=l,b=v*FA):(b=u,v=b/FA),k=o*b/u,E=s*v/l,p=t.l+t.w*i-b/2,x=t.t+t.h*(1-a)-v/2,r.x0=p,r.y0=x,r.w=b,r.h=v,r.sum=f,r.xaxis={type:"linear",range:[c+2*d-f,f-c-2*h],domain:[i-k/2,i+k/2],_id:"x"},PE(r.xaxis,r.graphDiv._fullLayout),r.xaxis.setScale(),r.xaxis.isPtWithinRange=function(U){return U.a>=r.aaxis.range[0]&&U.a<=r.aaxis.range[1]&&U.b>=r.baxis.range[1]&&U.b<=r.baxis.range[0]&&U.c>=r.caxis.range[1]&&U.c<=r.caxis.range[0]},r.yaxis={type:"linear",range:[c,f-h-d],domain:[a-E/2,a+E/2],_id:"y"},PE(r.yaxis,r.graphDiv._fullLayout),r.yaxis.setScale(),r.yaxis.isPtWithinRange=function(){return!0};var T=r.yaxis.domain[0],L=r.aaxis=OG({},e.aaxis,{range:[c,f-h-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[T,T+E*FA],anchor:"free",position:0,_id:"y",_length:b});PE(L,r.graphDiv._fullLayout),L.setScale();var _=r.baxis=OG({},e.baxis,{range:[f-c-d,h],side:"bottom",domain:r.xaxis.domain,anchor:"free",position:0,_id:"x",_length:b});PE(_,r.graphDiv._fullLayout),_.setScale();var C=r.caxis=OG({},e.caxis,{range:[f-c-h,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[T,T+E*FA],anchor:"free",position:0,_id:"y",_length:b});PE(C,r.graphDiv._fullLayout),C.setScale();var S="M"+p+","+(x+v)+"h"+b+"l-"+b/2+",-"+v+"Z";r.clipDef.select("path").attr("d",S),r.layers.plotbg.select("path").attr("d",S);var m="M0,"+v+"h"+b+"l-"+b/2+",-"+v+"Z";r.clipDefRelative.select("path").attr("d",m);var P=Ry(p,x);r.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",P),r.clipDefRelative.select("path").attr("transform",null);var A=Ry(p-_._offset,x+v);r.layers.baxis.attr("transform",A),r.layers.bgrid.attr("transform",A);var B=Ry(p+b/2,x)+"rotate(30)"+Ry(0,-L._offset);r.layers.aaxis.attr("transform",B),r.layers.agrid.attr("transform",B);var F=Ry(p+b/2,x)+"rotate(-30)"+Ry(0,-C._offset);r.layers.caxis.attr("transform",F),r.layers.cgrid.attr("transform",F),r.drawAxes(!0),r.layers.aline.select("path").attr("d",L.showline?"M"+p+","+(x+v)+"l"+b/2+",-"+v:"M0,0").call(BA.stroke,L.linecolor||"#000").style("stroke-width",(L.linewidth||0)+"px"),r.layers.bline.select("path").attr("d",_.showline?"M"+p+","+(x+v)+"h"+b:"M0,0").call(BA.stroke,_.linecolor||"#000").style("stroke-width",(_.linewidth||0)+"px"),r.layers.cline.select("path").attr("d",C.showline?"M"+(p+b/2)+","+x+"l"+b/2+","+v:"M0,0").call(BA.stroke,C.linecolor||"#000").style("stroke-width",(C.linewidth||0)+"px"),r.graphDiv._context.staticPlot||r.initInteractions(),LR.setClipUrl(r.layers.frontplot,r._hasClipOnAxisFalse?null:r.clipId,r.graphDiv)};Dy.drawAxes=function(e){var t=this,r=t.graphDiv,n=t.id.substr(7)+"title",i=t.layers,a=t.aaxis,o=t.baxis,s=t.caxis;if(t.drawAx(a),t.drawAx(o),t.drawAx(s),e){var u=Math.max(a.showticklabels?a.tickfont.size/2:0,(s.showticklabels?s.tickfont.size*.75:0)+(s.ticks==="outside"?s.ticklen*.87:0)),l=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;i["a-title"]=qG.draw(r,"a"+n,{propContainer:a,propName:t.id+".aaxis.title",placeholder:CR(r,"Click to enter Component A title"),attributes:{x:t.x0+t.w/2,y:t.y0-a.title.font.size/3-u,"text-anchor":"middle"}}),i["b-title"]=qG.draw(r,"b"+n,{propContainer:o,propName:t.id+".baxis.title",placeholder:CR(r,"Click to enter Component B title"),attributes:{x:t.x0-l,y:t.y0+t.h+o.title.font.size*.83+l,"text-anchor":"middle"}}),i["c-title"]=qG.draw(r,"c"+n,{propContainer:s,propName:t.id+".caxis.title",placeholder:CR(r,"Click to enter Component C title"),attributes:{x:t.x0+t.w+l,y:t.y0+t.h+s.title.font.size*.83+l,"text-anchor":"middle"}})}};Dy.drawAx=function(e){var t=this,r=t.graphDiv,n=e._name,i=n.charAt(0),a=e._id,o=t.layers[n],s=30,u=i+"tickLayout",l=q2t(e);t[u]!==l&&(o.selectAll("."+a+"tick").remove(),t[u]=l),e.setScale();var f=k_.calcTicks(e),c=k_.clipEnds(e,f),h=k_.makeTransTickFn(e),d=k_.getTickSigns(e)[2],p=qg.deg2rad(s),x=d*(e.linewidth||1)/2,b=d*e.ticklen,v=t.w,k=t.h,E=i==="b"?"M0,"+x+"l"+Math.sin(p)*b+","+Math.cos(p)*b:"M"+x+",0l"+Math.cos(p)*b+","+-Math.sin(p)*b,T={a:"M0,0l"+k+",-"+v/2,b:"M0,0l-"+v/2+",-"+k,c:"M0,0l-"+k+","+v/2}[i];k_.drawTicks(r,e,{vals:e.ticks==="inside"?c:f,layer:o,path:E,transFn:h,crisp:!1}),k_.drawGrid(r,e,{vals:c,layer:t.layers[i+"grid"],path:T,transFn:h,crisp:!1}),k_.drawLabels(r,e,{vals:f,layer:o,transFn:h,labelFns:k_.makeLabelFns(e,0,s)})};function q2t(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var _d=E2e.MINZOOM/2+.87,N2t="m-0.87,.5h"+_d+"v3h-"+(_d+5.2)+"l"+(_d/2+2.6)+",-"+(_d*.87+4.5)+"l2.6,1.5l-"+_d/2+","+_d*.87+"Z",U2t="m0.87,.5h-"+_d+"v3h"+(_d+5.2)+"l-"+(_d/2+2.6)+",-"+(_d*.87+4.5)+"l-2.6,1.5l"+_d/2+","+_d*.87+"Z",V2t="m0,1l"+_d/2+","+_d*.87+"l2.6,-1.5l-"+(_d/2+2.6)+",-"+(_d*.87+4.5)+"l-"+(_d/2+2.6)+","+(_d*.87+4.5)+"l2.6,1.5l"+_d/2+",-"+_d*.87+"Z",G2t="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",A2e=!0;Dy.clearOutline=function(){O2t(this.dragOptions),B2t(this.dragOptions.gd)};Dy.initInteractions=function(){var e=this,t=e.layers.plotbg.select("path").node(),r=e.graphDiv,n=r._fullLayout._zoomlayer,i,a;this.dragOptions={element:t,gd:r,plotinfo:{id:e.id,domain:r._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(A,B,F){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],i=r._fullLayout._invScaleX,a=r._fullLayout._invScaleY;var U=e.dragOptions.dragmode=r._fullLayout.dragmode;w2e(U)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,U==="zoom"?(e.dragOptions.moveFn=_,e.dragOptions.clickFn=v,e.dragOptions.doneFn=C,k(A,B,F)):U==="pan"?(e.dragOptions.moveFn=m,e.dragOptions.clickFn=v,e.dragOptions.doneFn=P,S(),e.clearOutline(r)):(R2t(U)||w2e(U))&&D2t(A,B,F,e.dragOptions,U)}};var o,s,u,l,f,c,h,d,p,x;function b(A){var B={};return B[e.id+".aaxis.min"]=A.a,B[e.id+".baxis.min"]=A.b,B[e.id+".caxis.min"]=A.c,B}function v(A,B){var F=r._fullLayout.clickmode;T2e(r),A===2&&(r.emit("plotly_doubleclick",null),BG.call("_guiRelayout",r,b({a:0,b:0,c:0}))),F.indexOf("select")>-1&&A===1&&F2t(B,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),F.indexOf("event")>-1&&b2e.click(r,B,e.id)}function k(A,B,F){var U=t.getBoundingClientRect();o=B-U.left,s=F-U.top,r._fullLayout._calcInverseTransform(r);var G=r._fullLayout._invTransform,j=qg.apply3DTransform(G)(o,s);o=j[0],s=j[1],u={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=u,l=e.aaxis.range[1]-u.a,c=z2t(e.graphDiv._fullLayout[e.id].bgcolor).getLuminance(),h="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,p=n.append("path").attr("class","zoombox").attr("transform",Ry(e.x0,e.y0)).style({fill:c>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",h),x=n.append("path").attr("class","zoombox-corners").attr("transform",Ry(e.x0,e.y0)).style({fill:BA.background,stroke:BA.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(r)}function E(A,B){return 1-B/e.h}function T(A,B){return 1-(A+(e.h-B)/Math.sqrt(3))/e.w}function L(A,B){return(A-(e.h-B)/Math.sqrt(3))/e.w}function _(A,B){var F=o+A*i,U=s+B*a,G=Math.max(0,Math.min(1,E(o,s),E(F,U))),j=Math.max(0,Math.min(1,T(o,s),T(F,U))),H=Math.max(0,Math.min(1,L(o,s),L(F,U))),N=(G/2+H)*e.w,W=(1-G/2-j)*e.w,re=(N+W)/2,ae=W-N,be=(1-G)*e.h,Pe=be-ae/FA;ae.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),x.transition().style("opacity",1).duration(200),d=!0),r.emit("plotly_relayouting",b(f))}function C(){T2e(r),f!==u&&(BG.call("_guiRelayout",r,b(f)),A2e&&r.data&&r._context.showTips&&(qg.notifier(CR(r,"Double-click to zoom back out"),"long"),A2e=!1))}function S(){u={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=u}function m(A,B){var F=A/e.xaxis._m,U=B/e.yaxis._m;f={a:u.a-U,b:u.b+(F+U)/2,c:u.c-(F-U)/2};var G=[f.a,f.b,f.c].sort(qg.sorterAsc),j={a:G.indexOf(f.a),b:G.indexOf(f.b),c:G.indexOf(f.c)};G[0]<0&&(G[1]+G[0]/2<0?(G[2]+=G[0]+G[1],G[0]=G[1]=0):(G[2]+=G[0]/2,G[1]+=G[0]/2,G[0]=0),f={a:G[j.a],b:G[j.b],c:G[j.c]},B=(u.a-f.a)*e.yaxis._m,A=(u.c-f.c-u.b+f.b)*e.xaxis._m);var H=Ry(e.x0+A,e.y0+B);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",H);var N=Ry(-A,-B);e.clipDefRelative.select("path").attr("transform",N),e.aaxis.range=[f.a,e.sum-f.b-f.c],e.baxis.range=[e.sum-f.a-f.c,f.b],e.caxis.range=[e.sum-f.a-f.b,f.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(LR.hideOutsideRangePoints,e),r.emit("plotly_relayouting",b(f))}function P(){BG.call("_guiRelayout",r,b(f))}t.onmousemove=function(A){b2e.hover(r,A,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(A){r._dragging||x2e.unhover(r,A)},x2e.init(this.dragOptions)};function T2e(e){S2e.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var VG=Te((tcr,P2e)=>{"use strict";var H2t=Ih(),W2t=zc().attributes,Jf=Dd(),j2t=Sc().overrideAll,NG=Su().extendFlat,UG={title:{text:Jf.title.text,font:Jf.title.font},color:Jf.color,tickmode:Jf.minor.tickmode,nticks:NG({},Jf.nticks,{dflt:6,min:1}),tick0:Jf.tick0,dtick:Jf.dtick,tickvals:Jf.tickvals,ticktext:Jf.ticktext,ticks:Jf.ticks,ticklen:Jf.ticklen,tickwidth:Jf.tickwidth,tickcolor:Jf.tickcolor,ticklabelstep:Jf.ticklabelstep,showticklabels:Jf.showticklabels,labelalias:Jf.labelalias,showtickprefix:Jf.showtickprefix,tickprefix:Jf.tickprefix,showticksuffix:Jf.showticksuffix,ticksuffix:Jf.ticksuffix,showexponent:Jf.showexponent,exponentformat:Jf.exponentformat,minexponent:Jf.minexponent,separatethousands:Jf.separatethousands,tickfont:Jf.tickfont,tickangle:Jf.tickangle,tickformat:Jf.tickformat,tickformatstops:Jf.tickformatstops,hoverformat:Jf.hoverformat,showline:NG({},Jf.showline,{dflt:!0}),linecolor:Jf.linecolor,linewidth:Jf.linewidth,showgrid:NG({},Jf.showgrid,{dflt:!0}),gridcolor:Jf.gridcolor,gridwidth:Jf.gridwidth,griddash:Jf.griddash,layer:Jf.layer,min:{valType:"number",dflt:0,min:0}},PR=P2e.exports=j2t({domain:W2t({name:"ternary"}),bgcolor:{valType:"color",dflt:H2t.background},sum:{valType:"number",dflt:1,min:0},aaxis:UG,baxis:UG,caxis:UG},"plot","from-root");PR.uirevision={valType:"any",editType:"none"};PR.aaxis.uirevision=PR.baxis.uirevision=PR.caxis.uirevision={valType:"any",editType:"none"}});var C_=Te((rcr,z2e)=>{"use strict";var X2t=ei(),Z2t=Pf(),Y2t=zc().defaults;z2e.exports=function(t,r,n,i){var a=i.type,o=i.attributes,s=i.handleDefaults,u=i.partition||"x",l=r._subplots[a],f=l.length,c=f&&l[0].replace(/\d+$/,""),h,d;function p(k,E){return X2t.coerce(h,d,o,k,E)}for(var x=0;x{"use strict";var K2t=jl(),J2t=Pf(),zR=ei(),$2t=C_(),Q2t=t_(),ewt=r_(),twt=A3(),rwt=xb(),iwt=K5(),R2e=VG(),I2e=["aaxis","baxis","caxis"];D2e.exports=function(t,r,n){$2t(t,r,n,{type:"ternary",attributes:R2e,handleDefaults:nwt,font:r.font,paper_bgcolor:r.paper_bgcolor})};function nwt(e,t,r,n){var i=r("bgcolor"),a=r("sum");n.bgColor=K2t.combine(i,n.paper_bgcolor);for(var o,s,u,l=0;l=a&&(f.min=0,c.min=0,h.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function awt(e,t,r,n){var i=R2e[t._name];function a(d,p){return zR.coerce(e,t,i,d,p)}a("uirevision",n.uirevision),t.type="linear";var o=a("color"),s=o!==i.color.dflt?o:r.font.color,u=t._name,l=u.charAt(0).toUpperCase(),f="Component "+l,c=a("title.text",f);t._hovertitle=c===f?c:l,zR.coerceFont(a,"title.font",r.font,{overrideDflt:{size:zR.bigFont(r.font.size),color:s}}),a("min"),rwt(e,t,a,"linear"),ewt(e,t,a,"linear"),Q2t(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),twt(e,t,a,{outerTicks:!0});var h=a("showticklabels");h&&(zR.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:s}}),a("tickangle"),a("tickformat")),iwt(e,t,a,{dfltColor:o,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),a("hoverformat"),a("layer")}});var B2e=Te(j0=>{"use strict";var owt=L2e(),swt=Rd().getSubplotCalcData,lwt=ei().counterRegex,OA="ternary";j0.name=OA;var uwt=j0.attr="subplot";j0.idRoot=OA;j0.idRegex=j0.attrRegex=lwt(OA);var fwt=j0.attributes={};fwt[uwt]={valType:"subplotid",dflt:"ternary",editType:"calc"};j0.layoutAttributes=VG();j0.supplyLayoutDefaults=F2e();j0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[OA],a=0;a{"use strict";O2e.exports={attributes:RG(),supplyDefaults:s2e(),colorbar:ep(),formatLabels:u2e(),calc:d2e(),plot:v2e(),style:av().style,styleOnSelect:av().styleOnSelect,hoverPoints:y2e(),selectPoints:lA(),eventData:_2e(),moduleType:"trace",name:"scatterternary",basePlotModule:B2e(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var U2e=Te((ocr,N2e)=>{"use strict";N2e.exports=q2e()});var GG=Te((scr,G2e)=>{"use strict";var nd=vE(),qA=Su().extendFlat,V2e=Hc().axisHoverFormat;G2e.exports={y:nd.y,x:nd.x,x0:nd.x0,y0:nd.y0,xhoverformat:V2e("x"),yhoverformat:V2e("y"),name:qA({},nd.name,{}),orientation:qA({},nd.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:nd.fillcolor,points:qA({},nd.boxpoints,{}),jitter:qA({},nd.jitter,{}),pointpos:qA({},nd.pointpos,{}),width:qA({},nd.width,{}),marker:nd.marker,text:nd.text,hovertext:nd.hovertext,hovertemplate:nd.hovertemplate,quartilemethod:nd.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:nd.offsetgroup,alignmentgroup:nd.alignmentgroup,selected:nd.selected,unselected:nd.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:nd.zorder}});var jG=Te((lcr,H2e)=>{"use strict";var HG=mE(),WG=ei().extendFlat;H2e.exports={violinmode:WG({},HG.boxmode,{}),violingap:WG({},HG.boxgap,{}),violingroupgap:WG({},HG.boxgroupgap,{})}});var Y2e=Te((ucr,Z2e)=>{"use strict";var W2e=ei(),cwt=jl(),j2e=gE(),X2e=GG();Z2e.exports=function(t,r,n,i){function a(L,_){return W2e.coerce(t,r,X2e,L,_)}function o(L,_){return W2e.coerce2(t,r,X2e,L,_)}if(j2e.handleSampleDefaults(t,r,a,i),r.visible!==!1){a("bandwidth"),a("side");var s=a("width");s||(a("scalegroup",r.name),a("scalemode"));var u=a("span"),l;Array.isArray(u)&&(l="manual"),a("spanmode",l);var f=a("line.color",(t.marker||{}).color||n),c=a("line.width"),h=a("fillcolor",cwt.addOpacity(r.line.color,.5));j2e.handlePointsDefaults(t,r,a,{prefix:""});var d=o("box.width"),p=o("box.fillcolor",h),x=o("box.line.color",f),b=o("box.line.width",c),v=a("box.visible",!!(d||p||x||b));v||(r.box={visible:!1});var k=o("meanline.color",f),E=o("meanline.width",c),T=a("meanline.visible",!!(k||E));T||(r.meanline={visible:!1}),a("quartilemethod"),a("zorder")}}});var J2e=Te((fcr,K2e)=>{"use strict";var hwt=ei(),dwt=jG(),pwt=HI();K2e.exports=function(t,r,n){function i(a,o){return hwt.coerce(t,r,dwt,a,o)}pwt._supply(t,r,n,i,"violin")}});var IR=Te(o2=>{"use strict";var vwt=ei(),mwt={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};o2.makeKDE=function(e,t,r){var n=r.length,i=mwt.gaussian,a=e.bandwidth,o=1/(n*a);return function(s){for(var u=0,l=0;l{"use strict";var XG=ei(),ZG=wu(),ywt=NV(),$2e=IR(),gwt=nf().BADNUM;Q2e.exports=function(t,r){var n=ywt(t,r);if(n[0].t.empty)return n;for(var i=t._fullLayout,a=ZG.getFromId(t,r[r.orientation==="h"?"xaxis":"yaxis"]),o=1/0,s=-1/0,u=0,l=0,f=0;f{"use strict";var wwt=jI().setPositionOffset,twe=["v","h"];rwe.exports=function(t,r){for(var n=t.calcdata,i=r.xaxis,a=r.yaxis,o=0;o{"use strict";var YG=Jl(),KG=ei(),Awt=Mu(),JG=XI(),Twt=SU(),Swt=IR();nwe.exports=function(t,r,n,i){var a=t._context.staticPlot,o=t._fullLayout,s=r.xaxis,u=r.yaxis;function l(f,c){var h=Twt(f,{xaxis:s,yaxis:u,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return Awt.smoothopen(h[0],1)}KG.makeTraceGroups(i,n,"trace violins").each(function(f){var c=YG.select(this),h=f[0],d=h.t,p=h.trace;if(p.visible!==!0||d.empty){c.remove();return}var x=d.bPos,b=d.bdPos,v=r[d.valLetter+"axis"],k=r[d.posLetter+"axis"],E=p.side==="both",T=E||p.side==="positive",L=E||p.side==="negative",_=c.selectAll("path.violin").data(KG.identity);_.enter().append("path").style("vector-effect",a?"none":"non-scaling-stroke").attr("class","violin"),_.exit().remove(),_.each(function(U){var G=YG.select(this),j=U.density,H=j.length,N=k.c2l(U.pos+x,!0),W=k.l2p(N),re;if(p.width)re=d.maxKDE/b;else{var ae=o._violinScaleGroupStats[p.scalegroup];re=p.scalemode==="count"?ae.maxKDE/b*(ae.maxCount/U.pts.length):ae.maxKDE/b}var be,Pe,Ce,de,te,ke,Ee;if(T){for(ke=new Array(H),de=0;de{"use strict";var owe=Jl(),NA=jl(),Mwt=av().stylePoints;swe.exports=function(t){var r=owe.select(t).selectAll("g.trace.violins");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=n[0].trace,a=owe.select(this),o=i.box||{},s=o.line||{},u=i.meanline||{},l=u.width;a.selectAll("path.violin").style("stroke-width",i.line.width+"px").call(NA.stroke,i.line.color).call(NA.fill,i.fillcolor),a.selectAll("path.box").style("stroke-width",s.width+"px").call(NA.stroke,s.color).call(NA.fill,o.fillcolor);var f={"stroke-width":l+"px","stroke-dasharray":2*l+"px,"+l+"px"};a.selectAll("path.mean").style(f).call(NA.stroke,u.color),a.selectAll("path.meanline").style(f).call(NA.stroke,u.color),Mwt(a,i,t)})}});var hwe=Te((mcr,cwe)=>{"use strict";var Ewt=jl(),$G=ei(),kwt=wu(),uwe=WV(),fwe=IR();cwe.exports=function(t,r,n,i,a){a||(a={});var o=a.hoverLayer,s=t.cd,u=s[0].trace,l=u.hoveron,f=l.indexOf("violins")!==-1,c=l.indexOf("kde")!==-1,h=[],d,p;if(f||c){var x=uwe.hoverOnBoxes(t,r,n,i);if(c&&x.length>0){var b=t.xa,v=t.ya,k,E,T,L,_;u.orientation==="h"?(_=r,k="y",T=v,E="x",L=b):(_=n,k="x",T=b,E="y",L=v);var C=s[t.index];if(_>=C.span[0]&&_<=C.span[1]){var S=$G.extendFlat({},t),m=L.c2p(_,!0),P=fwe.getKdeValue(C,u,_),A=fwe.getPositionOnKdePath(C,u,m),B=T._offset,F=T._length;S[k+"0"]=A[0],S[k+"1"]=A[1],S[E+"0"]=S[E+"1"]=m,S[E+"Label"]=E+": "+kwt.hoverLabelText(L,_,u[E+"hoverformat"])+", "+s[0].t.labels.kde+" "+P.toFixed(3);for(var U=0,G=0;G{"use strict";dwe.exports={attributes:GG(),layoutAttributes:jG(),supplyDefaults:Y2e(),crossTraceDefaults:gE().crossTraceDefaults,supplyLayoutDefaults:J2e(),calc:ewe(),crossTraceCalc:iwe(),plot:awe(),style:lwe(),styleOnSelect:av().styleOnSelect,hoverPoints:hwe(),selectPoints:jV(),moduleType:"trace",name:"violin",basePlotModule:Ah(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var mwe=Te((gcr,vwe)=>{"use strict";vwe.exports=pwe()});var gwe=Te((_cr,ywe)=>{"use strict";ywe.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var eH=Te((xcr,bwe)=>{"use strict";var Fc=Ly(),QG=Xc().line,Cwt=Vf(),_we=Hc().axisHoverFormat,Lwt=Hu().hovertemplateAttrs,Pwt=Hu().texttemplateAttrs,xwe=gwe(),Ng=Su().extendFlat,zwt=jl();bwe.exports={x:Fc.x,x0:Fc.x0,dx:Fc.dx,y:Fc.y,y0:Fc.y0,dy:Fc.dy,xperiod:Fc.xperiod,yperiod:Fc.yperiod,xperiod0:Fc.xperiod0,yperiod0:Fc.yperiod0,xperiodalignment:Fc.xperiodalignment,yperiodalignment:Fc.yperiodalignment,xhoverformat:_we("x"),yhoverformat:_we("y"),hovertext:Fc.hovertext,hovertemplate:Lwt({},{keys:xwe.eventDataKeys}),hoverinfo:Ng({},Cwt.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:Pwt({editType:"plot"},{keys:xwe.eventDataKeys.concat(["label","value"])}),text:Fc.text,textposition:Fc.textposition,insidetextanchor:Ng({},Fc.insidetextanchor,{dflt:"middle"}),textangle:Ng({},Fc.textangle,{dflt:0}),textfont:Fc.textfont,insidetextfont:Fc.insidetextfont,outsidetextfont:Fc.outsidetextfont,constraintext:Fc.constraintext,cliponaxis:Fc.cliponaxis,orientation:Ng({},Fc.orientation,{}),offset:Ng({},Fc.offset,{arrayOk:!1}),width:Ng({},Fc.width,{arrayOk:!1}),marker:Iwt(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Ng({},QG.color,{dflt:zwt.defaultLine}),width:Ng({},QG.width,{dflt:0,editType:"plot"}),dash:QG.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:Fc.offsetgroup,alignmentgroup:Fc.alignmentgroup,zorder:Fc.zorder};function Iwt(){var e=Ng({},Fc.marker);return delete e.pattern,delete e.cornerradius,e}});var tH=Te((bcr,wwe)=>{"use strict";wwe.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var iH=Te((wcr,Twe)=>{"use strict";var RR=ei(),Rwt=Gb(),Dwt=r0().handleText,Fwt=K3(),Bwt=Pm(),Awe=eH(),rH=jl();function Owt(e,t,r,n){function i(c,h){return RR.coerce(e,t,Awe,c,h)}var a=Fwt(e,t,n,i);if(!a){t.visible=!1;return}Bwt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("orientation",t.y&&!t.x?"v":"h"),i("offset"),i("width");var o=i("text");i("hovertext"),i("hovertemplate");var s=i("textposition");Dwt(e,t,n,i,s,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&!t.texttemplate&&i("textinfo",RR.isArrayOrTypedArray(o)?"text+value":"value");var u=i("marker.color",r);i("marker.line.color",rH.defaultLine),i("marker.line.width");var l=i("connector.visible");if(l){i("connector.fillcolor",qwt(u));var f=i("connector.line.width");f&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function qwt(e){var t=RR.isArrayOrTypedArray(e)?"#000":e;return rH.addOpacity(t,.5*rH.opacity(t))}function Nwt(e,t){var r,n;function i(o){return RR.coerce(n._input,n,Awe,o)}for(var a=0;a{"use strict";var Uwt=ei(),Vwt=tH();Swe.exports=function(e,t,r){var n=!1;function i(s,u){return Uwt.coerce(e,t,Vwt,s,u)}for(var a=0;a{"use strict";var UA=ei();Ewe.exports=function(t,r){for(var n=0;n{"use strict";var Cwe=wu(),Lwe=Im(),Gwt=kwe(),Hwt=F0(),zE=nf().BADNUM;Pwe.exports=function(t,r){var n=Cwe.getFromId(t,r.xaxis||"x"),i=Cwe.getFromId(t,r.yaxis||"y"),a,o,s,u,l,f,c,h;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),u=Lwe(r,i,"y",s),l=!!r.yperiodalignment,f="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),u=Lwe(r,n,"x",s),l=!!r.xperiodalignment,f="x"),o=u.vals;var d=Math.min(o.length,a.length),p=new Array(d);for(r._base=[],c=0;c{"use strict";var Iwe=Hb().setGroupPositions;Rwe.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,u=[],l=[],f=[],c,h;for(h=0;h{"use strict";var DR=Jl(),P_=ei(),Fwe=Mu(),L_=nf().BADNUM,Wwt=i2(),jwt=bp().clearMinTextSize;Owe.exports=function(t,r,n,i){var a=t._fullLayout;jwt("funnel",a),Xwt(t,r,n,i),Zwt(t,r,n,i),Wwt.plot(t,r,n,i,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function Xwt(e,t,r,n){var i=t.xaxis,a=t.yaxis;P_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=DR.select(this),u=o[0].trace,l=P_.ensureSingle(s,"g","regions");if(!u.connector||!u.connector.visible){l.remove();return}var f=u.orientation==="h",c=l.selectAll("g.region").data(P_.identity);c.enter().append("g").classed("region",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var x=Bwe(d,i,a,f),b=x[0],v=x[1],k="";b[0]!==L_&&v[0]!==L_&&b[1]!==L_&&v[1]!==L_&&b[2]!==L_&&v[2]!==L_&&b[3]!==L_&&v[3]!==L_&&(f?k+="M"+b[0]+","+v[1]+"L"+b[2]+","+v[2]+"H"+b[3]+"L"+b[1]+","+v[1]+"Z":k+="M"+b[1]+","+v[1]+"L"+b[2]+","+v[3]+"V"+v[2]+"L"+b[1]+","+v[0]+"Z"),k===""&&(k="M0,0Z"),P_.ensureSingle(DR.select(this),"path").attr("d",k).call(Fwe.setClipUrl,t.layerClipId,e)}})})}function Zwt(e,t,r,n){var i=t.xaxis,a=t.yaxis;P_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=DR.select(this),u=o[0].trace,l=P_.ensureSingle(s,"g","lines");if(!u.connector||!u.connector.visible||!u.connector.line.width){l.remove();return}var f=u.orientation==="h",c=l.selectAll("g.line").data(P_.identity);c.enter().append("g").classed("line",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var x=Bwe(d,i,a,f),b=x[0],v=x[1],k="";b[3]!==void 0&&v[3]!==void 0&&(f?(k+="M"+b[0]+","+v[1]+"L"+b[2]+","+v[2],k+="M"+b[1]+","+v[1]+"L"+b[3]+","+v[2]):(k+="M"+b[1]+","+v[1]+"L"+b[2]+","+v[3],k+="M"+b[1]+","+v[0]+"L"+b[2]+","+v[2])),k===""&&(k="M0,0Z"),P_.ensureSingle(DR.select(this),"path").attr("d",k).call(Fwe.setClipUrl,t.layerClipId,e)}})})}function Bwe(e,t,r,n){var i=[],a=[],o=n?t:r,s=n?r:t;return i[0]=o.c2p(e.s0,!0),a[0]=s.c2p(e.p0,!0),i[1]=o.c2p(e.s1,!0),a[1]=s.c2p(e.p1,!0),i[2]=o.c2p(e.nextS0,!0),a[2]=s.c2p(e.nextP0,!0),i[3]=o.c2p(e.nextS1,!0),a[3]=s.c2p(e.nextP1,!0),n?[i,a]:[a,i]}});var Vwe=Te((kcr,Uwe)=>{"use strict";var IE=Jl(),Nwe=Mu(),aH=jl(),Ywt=U1().DESELECTDIM,Kwt=N0(),Jwt=bp().resizeText,$wt=Kwt.styleTextPoints;function Qwt(e,t,r){var n=r||IE.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");Jwt(e,n,"funnel"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=IE.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var u=o.marker;IE.select(this).call(aH.fill,s.mc||u.color).call(aH.stroke,s.mlc||u.line.color).call(Nwe.dashLine,u.line.dash,s.mlw||u.line.width).style("opacity",o.selectedpoints&&!s.selected?Ywt:1)}}),$wt(a,o,e),a.selectAll(".regions").each(function(){IE.select(this).selectAll("path").style("stroke-width",0).call(aH.fill,o.connector.fillcolor)}),a.selectAll(".lines").each(function(){var s=o.connector.line;Nwe.lineGroupStyle(IE.select(this).selectAll("path"),s.width,s.color,s.dash)})})}Uwe.exports={style:Qwt}});var Wwe=Te((Ccr,Hwe)=>{"use strict";var Gwe=jl().opacity,e3t=AA().hoverOnBars,oH=ei().formatPercent;Hwe.exports=function(t,r,n,i,a){var o=e3t(t,r,n,i,a);if(o){var s=o.cd,u=s[0].trace,l=u.orientation==="h",f=o.index,c=s[f],h=l?"x":"y";o[h+"LabelVal"]=c.s,o.percentInitial=c.begR,o.percentInitialLabel=oH(c.begR,1),o.percentPrevious=c.difR,o.percentPreviousLabel=oH(c.difR,1),o.percentTotal=c.sumR,o.percentTotalLabel=oH(c.sumR,1);var d=c.hi||u.hoverinfo,p=[];if(d&&d!=="none"&&d!=="skip"){var x=d==="all",b=d.split("+"),v=function(k){return x||b.indexOf(k)!==-1};v("percent initial")&&p.push(o.percentInitialLabel+" of initial"),v("percent previous")&&p.push(o.percentPreviousLabel+" of previous"),v("percent total")&&p.push(o.percentTotalLabel+" of total")}return o.extraText=p.join("
"),o.color=t3t(u,c),[o]}};function t3t(e,t){var r=e.marker,n=t.mc||r.color,i=t.mlc||r.line.color,a=t.mlw||r.line.width;if(Gwe(n))return n;if(Gwe(i)&&a)return i}});var Xwe=Te((Lcr,jwe)=>{"use strict";jwe.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"percentInitial"in r&&(t.percentInitial=r.percentInitial),"percentPrevious"in r&&(t.percentPrevious=r.percentPrevious),"percentTotal"in r&&(t.percentTotal=r.percentTotal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var Ywe=Te((Pcr,Zwe)=>{"use strict";Zwe.exports={attributes:eH(),layoutAttributes:tH(),supplyDefaults:iH().supplyDefaults,crossTraceDefaults:iH().crossTraceDefaults,supplyLayoutDefaults:Mwe(),calc:zwe(),crossTraceCalc:Dwe(),plot:qwe(),style:Vwe().style,hoverPoints:Wwe(),eventData:Xwe(),selectPoints:TA(),moduleType:"trace",name:"funnel",basePlotModule:Ah(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var Jwe=Te((zcr,Kwe)=>{"use strict";Kwe.exports=Ywe()});var Qwe=Te((Icr,$we)=>{"use strict";$we.exports={eventDataKeys:["initial","delta","final"]}});var uH=Te((Rcr,r3e)=>{"use strict";var Ec=Ly(),sH=Xc().line,r3t=Vf(),e3e=Hc().axisHoverFormat,i3t=Hu().hovertemplateAttrs,n3t=Hu().texttemplateAttrs,t3e=Qwe(),VA=Su().extendFlat,a3t=jl();function lH(e){return{marker:{color:VA({},Ec.marker.color,{arrayOk:!1,editType:"style"}),line:{color:VA({},Ec.marker.line.color,{arrayOk:!1,editType:"style"}),width:VA({},Ec.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}r3e.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:Ec.x,x0:Ec.x0,dx:Ec.dx,y:Ec.y,y0:Ec.y0,dy:Ec.dy,xperiod:Ec.xperiod,yperiod:Ec.yperiod,xperiod0:Ec.xperiod0,yperiod0:Ec.yperiod0,xperiodalignment:Ec.xperiodalignment,yperiodalignment:Ec.yperiodalignment,xhoverformat:e3e("x"),yhoverformat:e3e("y"),hovertext:Ec.hovertext,hovertemplate:i3t({},{keys:t3e.eventDataKeys}),hoverinfo:VA({},r3t.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:n3t({editType:"plot"},{keys:t3e.eventDataKeys.concat(["label"])}),text:Ec.text,textposition:Ec.textposition,insidetextanchor:Ec.insidetextanchor,textangle:Ec.textangle,textfont:Ec.textfont,insidetextfont:Ec.insidetextfont,outsidetextfont:Ec.outsidetextfont,constraintext:Ec.constraintext,cliponaxis:Ec.cliponaxis,orientation:Ec.orientation,offset:Ec.offset,width:Ec.width,increasing:lH("increasing"),decreasing:lH("decreasing"),totals:lH("intermediate sums and total"),connector:{line:{color:VA({},sH.color,{dflt:a3t.defaultLine}),width:VA({},sH.width,{editType:"plot"}),dash:sH.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:Ec.offsetgroup,alignmentgroup:Ec.alignmentgroup,zorder:Ec.zorder}});var fH=Te((Dcr,i3e)=>{"use strict";i3e.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var GA=Te((Fcr,n3e)=>{"use strict";n3e.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var hH=Te((Bcr,l3e)=>{"use strict";var a3e=ei(),o3t=Gb(),s3t=r0().handleText,l3t=K3(),u3t=Pm(),o3e=uH(),f3t=jl(),s3e=GA(),c3t=s3e.INCREASING.COLOR,h3t=s3e.DECREASING.COLOR,d3t="#4499FF";function cH(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",f3t.defaultLine),e(t+".marker.line.width")}function p3t(e,t,r,n){function i(l,f){return a3e.coerce(e,t,o3e,l,f)}var a=l3t(e,t,n,i);if(!a){t.visible=!1;return}u3t(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("measure"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate");var o=i("textposition");s3t(e,t,n,i,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&(i("texttemplate"),t.texttemplate||i("textinfo")),cH(i,"increasing",c3t),cH(i,"decreasing",h3t),cH(i,"totals",d3t);var s=i("connector.visible");if(s){i("connector.mode");var u=i("connector.line.width");u&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function v3t(e,t){var r,n;function i(o){return a3e.coerce(n._input,n,o3e,o)}if(t.waterfallmode==="group")for(var a=0;a{"use strict";var m3t=ei(),y3t=fH();u3e.exports=function(e,t,r){var n=!1;function i(s,u){return m3t.coerce(e,t,y3t,s,u)}for(var a=0;a{"use strict";var c3e=wu(),h3e=Im(),d3e=ei().mergeArray,g3t=F0(),p3e=nf().BADNUM;function dH(e){return e==="a"||e==="absolute"}function pH(e){return e==="t"||e==="total"}v3e.exports=function(t,r){var n=c3e.getFromId(t,r.xaxis||"x"),i=c3e.getFromId(t,r.yaxis||"y"),a,o,s,u,l,f;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),u=h3e(r,i,"y",s),l=!!r.yperiodalignment,f="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),u=h3e(r,n,"x",s),l=!!r.xperiodalignment,f="x"),o=u.vals;for(var c=Math.min(o.length,a.length),h=new Array(c),d=0,p,x=!1,b=0;b{"use strict";var y3e=Hb().setGroupPositions;g3e.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,u=[],l=[],f=[],c,h;for(h=0;h{"use strict";var x3e=Jl(),FR=ei(),_3t=Mu(),HA=nf().BADNUM,x3t=i2(),b3t=bp().clearMinTextSize;b3e.exports=function(t,r,n,i){var a=t._fullLayout;b3t("waterfall",a),x3t.plot(t,r,n,i,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),w3t(t,r,n,i)};function w3t(e,t,r,n){var i=t.xaxis,a=t.yaxis;FR.makeTraceGroups(n,r,"trace bars").each(function(o){var s=x3e.select(this),u=o[0].trace,l=FR.ensureSingle(s,"g","lines");if(!u.connector||!u.connector.visible){l.remove();return}var f=u.orientation==="h",c=u.connector.mode,h=l.selectAll("g.line").data(FR.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(p,x){if(!(x!==d-1&&!p.cNext)){var b=A3t(p,i,a,f),v=b[0],k=b[1],E="";v[0]!==HA&&k[0]!==HA&&v[1]!==HA&&k[1]!==HA&&(c==="spanning"&&!p.isSum&&x>0&&(f?E+="M"+v[0]+","+k[1]+"V"+k[0]:E+="M"+v[1]+","+k[0]+"H"+v[0]),c!=="between"&&(p.isSum||x{"use strict";var BR=Jl(),A3e=Mu(),T3e=jl(),T3t=U1().DESELECTDIM,S3t=N0(),M3t=bp().resizeText,E3t=S3t.styleTextPoints;function k3t(e,t,r){var n=r||BR.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");M3t(e,n,"waterfall"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=BR.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var u=o[s.dir].marker;BR.select(this).call(T3e.fill,u.color).call(T3e.stroke,u.line.color).call(A3e.dashLine,u.line.dash,u.line.width).style("opacity",o.selectedpoints&&!s.selected?T3t:1)}}),E3t(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;A3e.lineGroupStyle(BR.select(this).selectAll("path"),s.width,s.color,s.dash)})})}S3e.exports={style:k3t}});var P3e=Te((Gcr,L3e)=>{"use strict";var C3t=wu().hoverLabelText,E3e=jl().opacity,L3t=AA().hoverOnBars,k3e=GA(),C3e={increasing:k3e.INCREASING.SYMBOL,decreasing:k3e.DECREASING.SYMBOL};L3e.exports=function(t,r,n,i,a){var o=L3t(t,r,n,i,a);if(!o)return;var s=o.cd,u=s[0].trace,l=u.orientation==="h",f=l?"x":"y",c=l?t.xa:t.ya;function h(_){return C3t(c,_,u[f+"hoverformat"])}var d=o.index,p=s[d],x=p.isSum?p.b+p.s:p.rawS;o.initial=p.b+p.s-x,o.delta=x,o.final=o.initial+o.delta;var b=h(Math.abs(o.delta));o.deltaLabel=x<0?"("+b+")":b,o.finalLabel=h(o.final),o.initialLabel=h(o.initial);var v=p.hi||u.hoverinfo,k=[];if(v&&v!=="none"&&v!=="skip"){var E=v==="all",T=v.split("+"),L=function(_){return E||T.indexOf(_)!==-1};p.isSum||(L("final")&&(l?!L("x"):!L("y"))&&k.push(o.finalLabel),L("delta")&&(x<0?k.push(o.deltaLabel+" "+C3e.decreasing):k.push(o.deltaLabel+" "+C3e.increasing)),L("initial")&&k.push("Initial: "+o.initialLabel))}return k.length&&(o.extraText=k.join("
")),o.color=P3t(u,p),[o]};function P3t(e,t){var r=e[t.dir].marker,n=r.color,i=r.line.color,a=r.line.width;if(E3e(n))return n;if(E3e(i)&&a)return i}});var I3e=Te((Hcr,z3e)=>{"use strict";z3e.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"initial"in r&&(t.initial=r.initial),"delta"in r&&(t.delta=r.delta),"final"in r&&(t.final=r.final),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var D3e=Te((Wcr,R3e)=>{"use strict";R3e.exports={attributes:uH(),layoutAttributes:fH(),supplyDefaults:hH().supplyDefaults,crossTraceDefaults:hH().crossTraceDefaults,supplyLayoutDefaults:f3e(),calc:m3e(),crossTraceCalc:_3e(),plot:w3e(),style:M3e().style,hoverPoints:P3e(),eventData:I3e(),selectPoints:TA(),moduleType:"trace",name:"waterfall",basePlotModule:Ah(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var B3e=Te((jcr,F3e)=>{"use strict";F3e.exports=D3e()});var WA=Te((Xcr,O3e)=>{"use strict";O3e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var t=e.slice(0,3);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var t=e.slice(0,4);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%",""]}}}});var vH=Te((Zcr,N3e)=>{"use strict";var z3t=Vf(),I3t=Xc().zorder,R3t=Hu().hovertemplateAttrs,q3e=Su().extendFlat,D3t=WA().colormodel,DE=["rgb","rgba","rgba256","hsl","hsla"],F3t=[],B3t=[];for(jA=0;jA{"use strict";var O3t=ei(),q3t=vH(),U3e=WA(),N3t=Lg().IMAGE_URL_PREFIX;V3e.exports=function(t,r){function n(o,s){return O3t.coerce(t,r,q3t,o,s)}n("source"),r.source&&!r.source.match(N3t)&&delete r.source,r._hasSource=!!r.source;var i=n("z");if(r._hasZ=!(i===void 0||!i.length||!i[0]||!i[0].length),!r._hasZ&&!r._hasSource){r.visible=!1;return}n("x0"),n("y0"),n("dx"),n("dy");var a;r._hasZ?(n("colormodel","rgb"),a=U3e.colormodel[r.colormodel],n("zmin",a.zminDflt||a.min),n("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=U3e.colormodel[r.colormodel],r.zmin=a.zminDflt,r.zmax=a.zmaxDflt),n("zsmooth"),n("text"),n("hovertext"),n("hovertemplate"),r._length=null,n("zorder")}});var Ug=Te((Kcr,mH)=>{typeof Object.create=="function"?mH.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:mH.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var yH=Te((Jcr,H3e)=>{H3e.exports=pb().EventEmitter});var X3e=Te(OR=>{"use strict";OR.byteLength=V3t;OR.toByteArray=H3t;OR.fromByteArray=X3t;var Fy=[],X0=[],U3t=typeof Uint8Array!="undefined"?Uint8Array:Array,gH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(s2=0,W3e=gH.length;s20)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function V3t(e){var t=j3e(e),r=t[0],n=t[1];return(r+n)*3/4-n}function G3t(e,t,r){return(t+r)*3/4-r}function H3t(e){var t,r=j3e(e),n=r[0],i=r[1],a=new U3t(G3t(e,n,i)),o=0,s=i>0?n-4:n,u;for(u=0;u>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=X0[e.charCodeAt(u)]<<2|X0[e.charCodeAt(u+1)]>>4,a[o++]=t&255),i===1&&(t=X0[e.charCodeAt(u)]<<10|X0[e.charCodeAt(u+1)]<<4|X0[e.charCodeAt(u+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function W3t(e){return Fy[e>>18&63]+Fy[e>>12&63]+Fy[e>>6&63]+Fy[e&63]}function j3t(e,t,r){for(var n,i=[],a=t;as?s:o+a));return n===1?(t=e[r-1],i.push(Fy[t>>2]+Fy[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Fy[t>>10]+Fy[t>>4&63]+Fy[t<<2&63]+"=")),i.join("")}});var Z3e=Te(_H=>{_H.read=function(e,t,r,n,i){var a,o,s=i*8-n-1,u=(1<>1,f=-7,c=r?i-1:0,h=r?-1:1,d=e[t+c];for(c+=h,a=d&(1<<-f)-1,d>>=-f,f+=s;f>0;a=a*256+e[t+c],c+=h,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=o*256+e[t+c],c+=h,f-=8);if(a===0)a=1-l;else{if(a===u)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-l}return(d?-1:1)*o*Math.pow(2,a-n)};_H.write=function(e,t,r,n,i,a){var o,s,u,l=a*8-i-1,f=(1<>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,p=n?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+c>=1?t+=h/u:t+=h*Math.pow(2,1-c),t*u>=2&&(o++,u/=2),o+c>=f?(s=0,o=f):o+c>=1?(s=(t*u-1)*Math.pow(2,i),o=o+c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;e[r+d]=s&255,d+=p,s/=256,i-=8);for(o=o<0;e[r+d]=o&255,d+=p,o/=256,l-=8);e[r+d-p]|=x*128}});var u2=Te(KA=>{"use strict";var xH=X3e(),ZA=Z3e(),Y3e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;KA.Buffer=ol;KA.SlowBuffer=Q3t;KA.INSPECT_MAX_BYTES=50;var qR=2147483647;KA.kMaxLength=qR;ol.TYPED_ARRAY_SUPPORT=Z3t();!ol.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Z3t(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(e){return!1}}Object.defineProperty(ol.prototype,"parent",{enumerable:!0,get:function(){if(ol.isBuffer(this))return this.buffer}});Object.defineProperty(ol.prototype,"offset",{enumerable:!0,get:function(){if(ol.isBuffer(this))return this.byteOffset}});function Vg(e){if(e>qR)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,ol.prototype),t}function ol(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return TH(e)}return Q3e(e,t,r)}ol.poolSize=8192;function Q3e(e,t,r){if(typeof e=="string")return K3t(e,t);if(ArrayBuffer.isView(e))return J3t(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(By(e,ArrayBuffer)||e&&By(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(By(e,SharedArrayBuffer)||e&&By(e.buffer,SharedArrayBuffer)))return wH(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return ol.from(n,t,r);let i=$3t(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return ol.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}ol.from=function(e,t,r){return Q3e(e,t,r)};Object.setPrototypeOf(ol.prototype,Uint8Array.prototype);Object.setPrototypeOf(ol,Uint8Array);function eAe(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Y3t(e,t,r){return eAe(e),e<=0?Vg(e):t!==void 0?typeof r=="string"?Vg(e).fill(t,r):Vg(e).fill(t):Vg(e)}ol.alloc=function(e,t,r){return Y3t(e,t,r)};function TH(e){return eAe(e),Vg(e<0?0:SH(e)|0)}ol.allocUnsafe=function(e){return TH(e)};ol.allocUnsafeSlow=function(e){return TH(e)};function K3t(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!ol.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=tAe(e,t)|0,n=Vg(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function bH(e){let t=e.length<0?0:SH(e.length)|0,r=Vg(t);for(let n=0;n=qR)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+qR.toString(16)+" bytes");return e|0}function Q3t(e){return+e!=e&&(e=0),ol.alloc(+e)}ol.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==ol.prototype};ol.compare=function(t,r){if(By(t,Uint8Array)&&(t=ol.from(t,t.offset,t.byteLength)),By(r,Uint8Array)&&(r=ol.from(r,r.offset,r.byteLength)),!ol.isBuffer(t)||!ol.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,i=r.length;for(let a=0,o=Math.min(n,i);ai.length?(ol.isBuffer(o)||(o=ol.from(o)),o.copy(i,a)):Uint8Array.prototype.set.call(i,o,a);else if(ol.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function tAe(e,t){if(ol.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||By(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return AH(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return fAe(e).length;default:if(i)return n?-1:AH(e).length;t=(""+t).toLowerCase(),i=!0}}ol.byteLength=tAe;function eAt(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return fAt(this,t,r);case"utf8":case"utf-8":return iAe(this,t,r);case"ascii":return lAt(this,t,r);case"latin1":case"binary":return uAt(this,t,r);case"base64":return oAt(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return cAt(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}ol.prototype._isBuffer=!0;function l2(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}ol.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;rr&&(t+=" ... "),""};Y3e&&(ol.prototype[Y3e]=ol.prototype.inspect);ol.prototype.compare=function(t,r,n,i,a){if(By(t,Uint8Array)&&(t=ol.from(t,t.offset,t.byteLength)),!ol.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>t.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===t)return 0;let o=a-i,s=n-r,u=Math.min(o,s),l=this.slice(i,a),f=t.slice(r,n);for(let c=0;c2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,EH(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=ol.from(t,n)),ol.isBuffer(t))return t.length===0?-1:K3e(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):K3e(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function K3e(e,t,r,n,i){let a=1,o=e.length,s=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function u(f,c){return a===1?f[c]:f.readUInt16BE(c*a)}let l;if(i){let f=-1;for(l=r;lo&&(r=o-s),l=r;l>=0;l--){let f=!0;for(let c=0;ci&&(n=i)):n=i;let a=t.length;n>a/2&&(n=a/2);let o;for(o=0;o>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return tAt(this,t,r,n);case"utf8":case"utf-8":return rAt(this,t,r,n);case"ascii":case"latin1":case"binary":return iAt(this,t,r,n);case"base64":return nAt(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return aAt(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};ol.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function oAt(e,t,r){return t===0&&r===e.length?xH.fromByteArray(e):xH.fromByteArray(e.slice(t,r))}function iAe(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i239?4:a>223?3:a>191?2:1;if(i+s<=r){let u,l,f,c;switch(s){case 1:a<128&&(o=a);break;case 2:u=e[i+1],(u&192)===128&&(c=(a&31)<<6|u&63,c>127&&(o=c));break;case 3:u=e[i+1],l=e[i+2],(u&192)===128&&(l&192)===128&&(c=(a&15)<<12|(u&63)<<6|l&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:u=e[i+1],l=e[i+2],f=e[i+3],(u&192)===128&&(l&192)===128&&(f&192)===128&&(c=(a&15)<<18|(u&63)<<12|(l&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return sAt(n)}var J3e=4096;function sAt(e){let t=e.length;if(t<=J3e)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let a=t;an&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),rr)throw new RangeError("Trying to access beyond buffer length")}ol.prototype.readUintLE=ol.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||rp(t,r,this.length);let i=this[t],a=1,o=0;for(;++o>>0,r=r>>>0,n||rp(t,r,this.length);let i=this[t+--r],a=1;for(;r>0&&(a*=256);)i+=this[t+--r]*a;return i};ol.prototype.readUint8=ol.prototype.readUInt8=function(t,r){return t=t>>>0,r||rp(t,1,this.length),this[t]};ol.prototype.readUint16LE=ol.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||rp(t,2,this.length),this[t]|this[t+1]<<8};ol.prototype.readUint16BE=ol.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||rp(t,2,this.length),this[t]<<8|this[t+1]};ol.prototype.readUint32LE=ol.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||rp(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};ol.prototype.readUint32BE=ol.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||rp(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};ol.prototype.readBigUInt64LE=z_(function(t){t=t>>>0,YA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&FE(t,this.length-8);let i=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(a)<>>0,YA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&FE(t,this.length-8);let i=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<>>0,r=r>>>0,n||rp(t,r,this.length);let i=this[t],a=1,o=0;for(;++o=a&&(i-=Math.pow(2,8*r)),i};ol.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||rp(t,r,this.length);let i=r,a=1,o=this[t+--i];for(;i>0&&(a*=256);)o+=this[t+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};ol.prototype.readInt8=function(t,r){return t=t>>>0,r||rp(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};ol.prototype.readInt16LE=function(t,r){t=t>>>0,r||rp(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};ol.prototype.readInt16BE=function(t,r){t=t>>>0,r||rp(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};ol.prototype.readInt32LE=function(t,r){return t=t>>>0,r||rp(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};ol.prototype.readInt32BE=function(t,r){return t=t>>>0,r||rp(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};ol.prototype.readBigInt64LE=z_(function(t){t=t>>>0,YA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&FE(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<>>0,YA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&FE(t,this.length-8);let i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<>>0,r||rp(t,4,this.length),ZA.read(this,t,!0,23,4)};ol.prototype.readFloatBE=function(t,r){return t=t>>>0,r||rp(t,4,this.length),ZA.read(this,t,!1,23,4)};ol.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||rp(t,8,this.length),ZA.read(this,t,!0,52,8)};ol.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||rp(t,8,this.length),ZA.read(this,t,!1,52,8)};function zv(e,t,r,n,i,a){if(!ol.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}ol.prototype.writeUintLE=ol.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;zv(this,t,r,n,s,0)}let a=1,o=0;for(this[r]=t&255;++o>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;zv(this,t,r,n,s,0)}let a=n-1,o=1;for(this[r+a]=t&255;--a>=0&&(o*=256);)this[r+a]=t/o&255;return r+n};ol.prototype.writeUint8=ol.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,1,255,0),this[r]=t&255,r+1};ol.prototype.writeUint16LE=ol.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};ol.prototype.writeUint16BE=ol.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};ol.prototype.writeUint32LE=ol.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};ol.prototype.writeUint32BE=ol.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function nAe(e,t,r,n,i){uAe(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function aAe(e,t,r,n,i){uAe(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}ol.prototype.writeBigUInt64LE=z_(function(t,r=0){return nAe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ol.prototype.writeBigUInt64BE=z_(function(t,r=0){return aAe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ol.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let u=Math.pow(2,8*n-1);zv(this,t,r,n,u-1,-u)}let a=0,o=1,s=0;for(this[r]=t&255;++a>0)-s&255;return r+n};ol.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let u=Math.pow(2,8*n-1);zv(this,t,r,n,u-1,-u)}let a=n-1,o=1,s=0;for(this[r+a]=t&255;--a>=0&&(o*=256);)t<0&&s===0&&this[r+a+1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+n};ol.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};ol.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};ol.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};ol.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};ol.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};ol.prototype.writeBigInt64LE=z_(function(t,r=0){return nAe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});ol.prototype.writeBigInt64BE=z_(function(t,r=0){return aAe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function oAe(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function sAe(e,t,r,n,i){return t=+t,r=r>>>0,i||oAe(e,t,r,4,34028234663852886e22,-34028234663852886e22),ZA.write(e,t,r,n,23,4),r+4}ol.prototype.writeFloatLE=function(t,r,n){return sAe(this,t,r,!0,n)};ol.prototype.writeFloatBE=function(t,r,n){return sAe(this,t,r,!1,n)};function lAe(e,t,r,n,i){return t=+t,r=r>>>0,i||oAe(e,t,r,8,17976931348623157e292,-17976931348623157e292),ZA.write(e,t,r,n,52,8),r+8}ol.prototype.writeDoubleLE=function(t,r,n){return lAe(this,t,r,!0,n)};ol.prototype.writeDoubleBE=function(t,r,n){return lAe(this,t,r,!1,n)};ol.prototype.copy=function(t,r,n,i){if(!ol.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a2**32?i=$3e(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=$3e(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function $3e(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function hAt(e,t,r){YA(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&FE(t,e.length-(r+1))}function uAe(e,t,r,n,i,a){if(e>r||e3?t===0||t===BigInt(0)?s=`>= 0${o} and < 2${o} ** ${(a+1)*8}${o}`:s=`>= -(2${o} ** ${(a+1)*8-1}${o}) and < 2 ** ${(a+1)*8-1}${o}`:s=`>= ${t}${o} and <= ${r}${o}`,new XA.ERR_OUT_OF_RANGE("value",s,e)}hAt(n,i,a)}function YA(e,t){if(typeof e!="number")throw new XA.ERR_INVALID_ARG_TYPE(t,"number",e)}function FE(e,t,r){throw Math.floor(e)!==e?(YA(e,r),new XA.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new XA.ERR_BUFFER_OUT_OF_BOUNDS:new XA.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var dAt=/[^+/0-9A-Za-z-_]/g;function pAt(e){if(e=e.split("=")[0],e=e.trim().replace(dAt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function AH(e,t){t=t||1/0;let r,n=e.length,i=null,a=[];for(let o=0;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function vAt(e){let t=[];for(let r=0;r>8,i=r%256,a.push(i),a.push(n);return a}function fAe(e){return xH.toByteArray(pAt(e))}function NR(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function By(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function EH(e){return e!==e}var yAt=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function z_(e){return typeof BigInt=="undefined"?gAt:e}function gAt(){throw new Error("BigInt not supported")}});var UR=Te((rhr,cAe)=>{"use strict";cAe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}});var BE=Te((ihr,hAe)=>{"use strict";var _At=UR();hAe.exports=function(){return _At()&&!!Symbol.toStringTag}});var kH=Te((nhr,dAe)=>{"use strict";dAe.exports=Object});var vAe=Te((ahr,pAe)=>{"use strict";pAe.exports=Error});var yAe=Te((ohr,mAe)=>{"use strict";mAe.exports=EvalError});var _Ae=Te((shr,gAe)=>{"use strict";gAe.exports=RangeError});var bAe=Te((lhr,xAe)=>{"use strict";xAe.exports=ReferenceError});var CH=Te((uhr,wAe)=>{"use strict";wAe.exports=SyntaxError});var JA=Te((fhr,AAe)=>{"use strict";AAe.exports=TypeError});var SAe=Te((chr,TAe)=>{"use strict";TAe.exports=URIError});var EAe=Te((hhr,MAe)=>{"use strict";MAe.exports=Math.abs});var CAe=Te((dhr,kAe)=>{"use strict";kAe.exports=Math.floor});var PAe=Te((phr,LAe)=>{"use strict";LAe.exports=Math.max});var IAe=Te((vhr,zAe)=>{"use strict";zAe.exports=Math.min});var DAe=Te((mhr,RAe)=>{"use strict";RAe.exports=Math.pow});var BAe=Te((yhr,FAe)=>{"use strict";FAe.exports=Math.round});var qAe=Te((ghr,OAe)=>{"use strict";OAe.exports=Number.isNaN||function(t){return t!==t}});var UAe=Te((_hr,NAe)=>{"use strict";var xAt=qAe();NAe.exports=function(t){return xAt(t)||t===0?t:t<0?-1:1}});var GAe=Te((xhr,VAe)=>{"use strict";VAe.exports=Object.getOwnPropertyDescriptor});var f2=Te((bhr,HAe)=>{"use strict";var VR=GAe();if(VR)try{VR([],"length")}catch(e){VR=null}HAe.exports=VR});var OE=Te((whr,WAe)=>{"use strict";var GR=Object.defineProperty||!1;if(GR)try{GR({},"a",{value:1})}catch(e){GR=!1}WAe.exports=GR});var ZAe=Te((Ahr,XAe)=>{"use strict";var jAe=typeof Symbol!="undefined"&&Symbol,bAt=UR();XAe.exports=function(){return typeof jAe!="function"||typeof Symbol!="function"||typeof jAe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:bAt()}});var LH=Te((Thr,YAe)=>{"use strict";YAe.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var PH=Te((Shr,KAe)=>{"use strict";var wAt=kH();KAe.exports=wAt.getPrototypeOf||null});var QAe=Te((Mhr,$Ae)=>{"use strict";var AAt="Function.prototype.bind called on incompatible ",TAt=Object.prototype.toString,SAt=Math.max,MAt="[object Function]",JAe=function(t,r){for(var n=[],i=0;i{"use strict";var CAt=QAe();eTe.exports=Function.prototype.bind||CAt});var HR=Te((khr,tTe)=>{"use strict";tTe.exports=Function.prototype.call});var zH=Te((Chr,rTe)=>{"use strict";rTe.exports=Function.prototype.apply});var nTe=Te((Lhr,iTe)=>{"use strict";iTe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var oTe=Te((Phr,aTe)=>{"use strict";var LAt=$A(),PAt=zH(),zAt=HR(),IAt=nTe();aTe.exports=IAt||LAt.call(zAt,PAt)});var lTe=Te((zhr,sTe)=>{"use strict";var RAt=$A(),DAt=JA(),FAt=HR(),BAt=oTe();sTe.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new DAt("a function is required");return BAt(RAt,FAt,t)}});var pTe=Te((Ihr,dTe)=>{"use strict";var OAt=lTe(),uTe=f2(),cTe;try{cTe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var IH=!!cTe&&uTe&&uTe(Object.prototype,"__proto__"),hTe=Object,fTe=hTe.getPrototypeOf;dTe.exports=IH&&typeof IH.get=="function"?OAt([IH.get]):typeof fTe=="function"?function(t){return fTe(t==null?t:hTe(t))}:!1});var _Te=Te((Rhr,gTe)=>{"use strict";var vTe=LH(),mTe=PH(),yTe=pTe();gTe.exports=vTe?function(t){return vTe(t)}:mTe?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return mTe(t)}:yTe?function(t){return yTe(t)}:null});var bTe=Te((Dhr,xTe)=>{"use strict";var qAt=Function.prototype.call,NAt=Object.prototype.hasOwnProperty,UAt=$A();xTe.exports=UAt.call(qAt,NAt)});var XR=Te((Fhr,ETe)=>{"use strict";var $f,VAt=kH(),GAt=vAe(),HAt=yAe(),WAt=_Ae(),jAt=bAe(),rT=CH(),tT=JA(),XAt=SAe(),ZAt=EAe(),YAt=CAe(),KAt=PAe(),JAt=IAe(),$At=DAe(),QAt=BAe(),eTt=UAe(),STe=Function,RH=function(e){try{return STe('"use strict"; return ('+e+").constructor;")()}catch(t){}},qE=f2(),tTt=OE(),DH=function(){throw new tT},rTt=qE?function(){try{return arguments.callee,DH}catch(e){try{return qE(arguments,"callee").get}catch(t){return DH}}}():DH,QA=ZAe()(),ip=_Te(),iTt=PH(),nTt=LH(),MTe=zH(),NE=HR(),eT={},aTt=typeof Uint8Array=="undefined"||!ip?$f:ip(Uint8Array),c2={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?$f:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?$f:ArrayBuffer,"%ArrayIteratorPrototype%":QA&&ip?ip([][Symbol.iterator]()):$f,"%AsyncFromSyncIteratorPrototype%":$f,"%AsyncFunction%":eT,"%AsyncGenerator%":eT,"%AsyncGeneratorFunction%":eT,"%AsyncIteratorPrototype%":eT,"%Atomics%":typeof Atomics=="undefined"?$f:Atomics,"%BigInt%":typeof BigInt=="undefined"?$f:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?$f:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?$f:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?$f:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":GAt,"%eval%":eval,"%EvalError%":HAt,"%Float16Array%":typeof Float16Array=="undefined"?$f:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?$f:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?$f:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?$f:FinalizationRegistry,"%Function%":STe,"%GeneratorFunction%":eT,"%Int8Array%":typeof Int8Array=="undefined"?$f:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?$f:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?$f:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":QA&&ip?ip(ip([][Symbol.iterator]())):$f,"%JSON%":typeof JSON=="object"?JSON:$f,"%Map%":typeof Map=="undefined"?$f:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!QA||!ip?$f:ip(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":VAt,"%Object.getOwnPropertyDescriptor%":qE,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?$f:Promise,"%Proxy%":typeof Proxy=="undefined"?$f:Proxy,"%RangeError%":WAt,"%ReferenceError%":jAt,"%Reflect%":typeof Reflect=="undefined"?$f:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?$f:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!QA||!ip?$f:ip(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?$f:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":QA&&ip?ip(""[Symbol.iterator]()):$f,"%Symbol%":QA?Symbol:$f,"%SyntaxError%":rT,"%ThrowTypeError%":rTt,"%TypedArray%":aTt,"%TypeError%":tT,"%Uint8Array%":typeof Uint8Array=="undefined"?$f:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?$f:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?$f:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?$f:Uint32Array,"%URIError%":XAt,"%WeakMap%":typeof WeakMap=="undefined"?$f:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?$f:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?$f:WeakSet,"%Function.prototype.call%":NE,"%Function.prototype.apply%":MTe,"%Object.defineProperty%":tTt,"%Object.getPrototypeOf%":iTt,"%Math.abs%":ZAt,"%Math.floor%":YAt,"%Math.max%":KAt,"%Math.min%":JAt,"%Math.pow%":$At,"%Math.round%":QAt,"%Math.sign%":eTt,"%Reflect.getPrototypeOf%":nTt};if(ip)try{null.error}catch(e){wTe=ip(ip(e)),c2["%Error.prototype%"]=wTe}var wTe,oTt=function e(t){var r;if(t==="%AsyncFunction%")r=RH("async function () {}");else if(t==="%GeneratorFunction%")r=RH("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=RH("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&ip&&(r=ip(i.prototype))}return c2[t]=r,r},ATe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},UE=$A(),WR=bTe(),sTt=UE.call(NE,Array.prototype.concat),lTt=UE.call(MTe,Array.prototype.splice),TTe=UE.call(NE,String.prototype.replace),jR=UE.call(NE,String.prototype.slice),uTt=UE.call(NE,RegExp.prototype.exec),fTt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,cTt=/\\(\\)?/g,hTt=function(t){var r=jR(t,0,1),n=jR(t,-1);if(r==="%"&&n!=="%")throw new rT("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new rT("invalid intrinsic syntax, expected opening `%`");var i=[];return TTe(t,fTt,function(a,o,s,u){i[i.length]=s?TTe(u,cTt,"$1"):o||a}),i},dTt=function(t,r){var n=t,i;if(WR(ATe,n)&&(i=ATe[n],n="%"+i[0]+"%"),WR(c2,n)){var a=c2[n];if(a===eT&&(a=oTt(n)),typeof a=="undefined"&&!r)throw new tT("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new rT("intrinsic "+t+" does not exist!")};ETe.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new tT("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new tT('"allowMissing" argument must be a boolean');if(uTt(/^%?[^%]*%?$/,t)===null)throw new rT("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=hTt(t),i=n.length>0?n[0]:"",a=dTt("%"+i+"%",r),o=a.name,s=a.value,u=!1,l=a.alias;l&&(i=l[0],lTt(n,sTt([0,1],l)));for(var f=1,c=!0;f=n.length){var x=qE(s,h);c=!!x,c&&"get"in x&&!("originalValue"in x.get)?s=x.get:s=s[h]}else c=WR(s,h),s=s[h];c&&!u&&(c2[o]=s)}}return s}});var PTe=Te((Bhr,LTe)=>{"use strict";var kTe=OE(),pTt=CH(),iT=JA(),CTe=f2();LTe.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new iT("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new iT("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new iT("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new iT("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new iT("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new iT("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!CTe&&CTe(t,r);if(kTe)kTe(t,r,{configurable:o===null&&u?u.configurable:!o,enumerable:i===null&&u?u.enumerable:!i,value:n,writable:a===null&&u?u.writable:!a});else if(s||!i&&!a&&!o)t[r]=n;else throw new pTt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var BH=Te((Ohr,ITe)=>{"use strict";var FH=OE(),zTe=function(){return!!FH};zTe.hasArrayLengthDefineBug=function(){if(!FH)return null;try{return FH([],"length",{value:1}).length!==1}catch(t){return!0}};ITe.exports=zTe});var OTe=Te((qhr,BTe)=>{"use strict";var vTt=XR(),RTe=PTe(),mTt=BH()(),DTe=f2(),FTe=JA(),yTt=vTt("%Math.floor%");BTe.exports=function(t,r){if(typeof t!="function")throw new FTe("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||yTt(r)!==r)throw new FTe("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,a=!0;if("length"in t&&DTe){var o=DTe(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(a=!1)}return(i||a||!n)&&(mTt?RTe(t,"length",r,!0,!0):RTe(t,"length",r)),t}});var VE=Te((Nhr,ZR)=>{"use strict";var OH=$A(),YR=XR(),gTt=OTe(),_Tt=JA(),UTe=YR("%Function.prototype.apply%"),VTe=YR("%Function.prototype.call%"),GTe=YR("%Reflect.apply%",!0)||OH.call(VTe,UTe),qTe=OE(),xTt=YR("%Math.max%");ZR.exports=function(t){if(typeof t!="function")throw new _Tt("a function is required");var r=GTe(OH,VTe,arguments);return gTt(r,1+xTt(0,t.length-(arguments.length-1)),!0)};var NTe=function(){return GTe(OH,UTe,arguments)};qTe?qTe(ZR.exports,"apply",{value:NTe}):ZR.exports.apply=NTe});var nT=Te((Uhr,jTe)=>{"use strict";var HTe=XR(),WTe=VE(),bTt=WTe(HTe("String.prototype.indexOf"));jTe.exports=function(t,r){var n=HTe(t,!!r);return typeof n=="function"&&bTt(t,".prototype.")>-1?WTe(n):n}});var YTe=Te((Vhr,ZTe)=>{"use strict";var wTt=BE()(),ATt=nT(),qH=ATt("Object.prototype.toString"),KR=function(t){return wTt&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:qH(t)==="[object Arguments]"},XTe=function(t){return KR(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&qH(t)!=="[object Array]"&&qH(t.callee)==="[object Function]"},TTt=function(){return KR(arguments)}();KR.isLegacyArguments=XTe;ZTe.exports=TTt?KR:XTe});var $Te=Te((Ghr,JTe)=>{"use strict";var STt=Object.prototype.toString,MTt=Function.prototype.toString,ETt=/^\s*(?:function)?\*/,KTe=BE()(),NH=Object.getPrototypeOf,kTt=function(){if(!KTe)return!1;try{return Function("return function*() {}")()}catch(e){}},UH;JTe.exports=function(t){if(typeof t!="function")return!1;if(ETt.test(MTt.call(t)))return!0;if(!KTe){var r=STt.call(t);return r==="[object GeneratorFunction]"}if(!NH)return!1;if(typeof UH=="undefined"){var n=kTt();UH=n?NH(n):!1}return NH(t)===UH}});var rSe=Te((Hhr,tSe)=>{"use strict";var eSe=Function.prototype.toString,aT=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,GH,JR;if(typeof aT=="function"&&typeof Object.defineProperty=="function")try{GH=Object.defineProperty({},"length",{get:function(){throw JR}}),JR={},aT(function(){throw 42},null,GH)}catch(e){e!==JR&&(aT=null)}else aT=null;var CTt=/^\s*class\b/,HH=function(t){try{var r=eSe.call(t);return CTt.test(r)}catch(n){return!1}},VH=function(t){try{return HH(t)?!1:(eSe.call(t),!0)}catch(r){return!1}},$R=Object.prototype.toString,LTt="[object Object]",PTt="[object Function]",zTt="[object GeneratorFunction]",ITt="[object HTMLAllCollection]",RTt="[object HTML document.all class]",DTt="[object HTMLCollection]",FTt=typeof Symbol=="function"&&!!Symbol.toStringTag,BTt=!(0 in[,]),WH=function(){return!1};typeof document=="object"&&(QTe=document.all,$R.call(QTe)===$R.call(document.all)&&(WH=function(t){if((BTt||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=$R.call(t);return(r===ITt||r===RTt||r===DTt||r===LTt)&&t("")==null}catch(n){}return!1}));var QTe;tSe.exports=aT?function(t){if(WH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{aT(t,null,GH)}catch(r){if(r!==JR)return!1}return!HH(t)&&VH(t)}:function(t){if(WH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(FTt)return VH(t);if(HH(t))return!1;var r=$R.call(t);return r!==PTt&&r!==zTt&&!/^\[object HTML/.test(r)?!1:VH(t)}});var jH=Te((Whr,nSe)=>{"use strict";var OTt=rSe(),qTt=Object.prototype.toString,iSe=Object.prototype.hasOwnProperty,NTt=function(t,r,n){for(var i=0,a=t.length;i=3&&(i=n),qTt.call(t)==="[object Array]"?NTt(t,r,i):typeof t=="string"?UTt(t,r,i):VTt(t,r,i)};nSe.exports=GTt});var ZH=Te((jhr,aSe)=>{"use strict";var XH=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],HTt=typeof globalThis=="undefined"?window:globalThis;aSe.exports=function(){for(var t=[],r=0;r{"use strict";var eD=jH(),WTt=ZH(),oSe=VE(),JH=nT(),QR=f2(),jTt=JH("Object.prototype.toString"),lSe=BE()(),sSe=typeof globalThis=="undefined"?window:globalThis,KH=WTt(),$H=JH("String.prototype.slice"),YH=Object.getPrototypeOf,XTt=JH("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1?r:r!=="Object"?!1:YTt(t)}return QR?ZTt(t):null}});var mSe=Te((Zhr,vSe)=>{"use strict";var cSe=jH(),KTt=ZH(),eW=nT(),JTt=eW("Object.prototype.toString"),hSe=BE()(),rD=f2(),$Tt=typeof globalThis=="undefined"?window:globalThis,dSe=KTt(),QTt=eW("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1}return rD?tSt(t):!1}});var iW=Te(Qf=>{"use strict";var rSt=YTe(),iSt=$Te(),Gm=fSe(),ySe=mSe();function oT(e){return e.call.bind(e)}var gSe=typeof BigInt!="undefined",_Se=typeof Symbol!="undefined",Z0=oT(Object.prototype.toString),nSt=oT(Number.prototype.valueOf),aSt=oT(String.prototype.valueOf),oSt=oT(Boolean.prototype.valueOf);gSe&&(xSe=oT(BigInt.prototype.valueOf));var xSe;_Se&&(bSe=oT(Symbol.prototype.valueOf));var bSe;function HE(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}Qf.isArgumentsObject=rSt;Qf.isGeneratorFunction=iSt;Qf.isTypedArray=ySe;function sSt(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}Qf.isPromise=sSt;function lSt(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):ySe(e)||ASe(e)}Qf.isArrayBufferView=lSt;function uSt(e){return Gm(e)==="Uint8Array"}Qf.isUint8Array=uSt;function fSt(e){return Gm(e)==="Uint8ClampedArray"}Qf.isUint8ClampedArray=fSt;function cSt(e){return Gm(e)==="Uint16Array"}Qf.isUint16Array=cSt;function hSt(e){return Gm(e)==="Uint32Array"}Qf.isUint32Array=hSt;function dSt(e){return Gm(e)==="Int8Array"}Qf.isInt8Array=dSt;function pSt(e){return Gm(e)==="Int16Array"}Qf.isInt16Array=pSt;function vSt(e){return Gm(e)==="Int32Array"}Qf.isInt32Array=vSt;function mSt(e){return Gm(e)==="Float32Array"}Qf.isFloat32Array=mSt;function ySt(e){return Gm(e)==="Float64Array"}Qf.isFloat64Array=ySt;function gSt(e){return Gm(e)==="BigInt64Array"}Qf.isBigInt64Array=gSt;function _St(e){return Gm(e)==="BigUint64Array"}Qf.isBigUint64Array=_St;function iD(e){return Z0(e)==="[object Map]"}iD.working=typeof Map!="undefined"&&iD(new Map);function xSt(e){return typeof Map=="undefined"?!1:iD.working?iD(e):e instanceof Map}Qf.isMap=xSt;function nD(e){return Z0(e)==="[object Set]"}nD.working=typeof Set!="undefined"&&nD(new Set);function bSt(e){return typeof Set=="undefined"?!1:nD.working?nD(e):e instanceof Set}Qf.isSet=bSt;function aD(e){return Z0(e)==="[object WeakMap]"}aD.working=typeof WeakMap!="undefined"&&aD(new WeakMap);function wSt(e){return typeof WeakMap=="undefined"?!1:aD.working?aD(e):e instanceof WeakMap}Qf.isWeakMap=wSt;function rW(e){return Z0(e)==="[object WeakSet]"}rW.working=typeof WeakSet!="undefined"&&rW(new WeakSet);function ASt(e){return rW(e)}Qf.isWeakSet=ASt;function oD(e){return Z0(e)==="[object ArrayBuffer]"}oD.working=typeof ArrayBuffer!="undefined"&&oD(new ArrayBuffer);function wSe(e){return typeof ArrayBuffer=="undefined"?!1:oD.working?oD(e):e instanceof ArrayBuffer}Qf.isArrayBuffer=wSe;function sD(e){return Z0(e)==="[object DataView]"}sD.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&sD(new DataView(new ArrayBuffer(1),0,1));function ASe(e){return typeof DataView=="undefined"?!1:sD.working?sD(e):e instanceof DataView}Qf.isDataView=ASe;var tW=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function GE(e){return Z0(e)==="[object SharedArrayBuffer]"}function TSe(e){return typeof tW=="undefined"?!1:(typeof GE.working=="undefined"&&(GE.working=GE(new tW)),GE.working?GE(e):e instanceof tW)}Qf.isSharedArrayBuffer=TSe;function TSt(e){return Z0(e)==="[object AsyncFunction]"}Qf.isAsyncFunction=TSt;function SSt(e){return Z0(e)==="[object Map Iterator]"}Qf.isMapIterator=SSt;function MSt(e){return Z0(e)==="[object Set Iterator]"}Qf.isSetIterator=MSt;function ESt(e){return Z0(e)==="[object Generator]"}Qf.isGeneratorObject=ESt;function kSt(e){return Z0(e)==="[object WebAssembly.Module]"}Qf.isWebAssemblyCompiledModule=kSt;function SSe(e){return HE(e,nSt)}Qf.isNumberObject=SSe;function MSe(e){return HE(e,aSt)}Qf.isStringObject=MSe;function ESe(e){return HE(e,oSt)}Qf.isBooleanObject=ESe;function kSe(e){return gSe&&HE(e,xSe)}Qf.isBigIntObject=kSe;function CSe(e){return _Se&&HE(e,bSe)}Qf.isSymbolObject=CSe;function CSt(e){return SSe(e)||MSe(e)||ESe(e)||kSe(e)||CSe(e)}Qf.isBoxedPrimitive=CSt;function LSt(e){return typeof Uint8Array!="undefined"&&(wSe(e)||TSe(e))}Qf.isAnyArrayBuffer=LSt;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(Qf,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var nW=Te((Khr,LSe)=>{LSe.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var fW=Te(ec=>{var PSe=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(u){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),lW(t)?r.showHidden=t:t&&ec._extend(r,t),d2(r.showHidden)&&(r.showHidden=!1),d2(r.depth)&&(r.depth=2),d2(r.colors)&&(r.colors=!1),d2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=zSt),cD(r,e,r.depth)}ec.inspect=I_;I_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};I_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function zSt(e,t){var r=I_.styles[t];return r?"\x1B["+I_.colors[r][0]+"m"+e+"\x1B["+I_.colors[r][1]+"m":e}function ISt(e,t){return e}function RSt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function cD(e,t,r){if(e.customInspect&&t&&fD(t.inspect)&&t.inspect!==ec.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return pD(n)||(n=cD(e,n,r)),n}var i=DSt(e,t);if(i)return i;var a=Object.keys(t),o=RSt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),jE(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return aW(t);if(a.length===0){if(fD(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(WE(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(hD(t))return e.stylize(Date.prototype.toString.call(t),"date");if(jE(t))return aW(t)}var u="",l=!1,f=["{","}"];if(ISe(t)&&(l=!0,f=["[","]"]),fD(t)){var c=t.name?": "+t.name:"";u=" [Function"+c+"]"}if(WE(t)&&(u=" "+RegExp.prototype.toString.call(t)),hD(t)&&(u=" "+Date.prototype.toUTCString.call(t)),jE(t)&&(u=" "+aW(t)),a.length===0&&(!l||t.length==0))return f[0]+u+f[1];if(r<0)return WE(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return l?h=FSt(e,t,r,o,a):h=a.map(function(d){return sW(e,t,r,o,d,l)}),e.seen.pop(),BSt(h,u,f)}function DSt(e,t){if(d2(t))return e.stylize("undefined","undefined");if(pD(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(RSe(t))return e.stylize(""+t,"number");if(lW(t))return e.stylize(""+t,"boolean");if(dD(t))return e.stylize("null","null")}function aW(e){return"["+Error.prototype.toString.call(e)+"]"}function FSt(e,t,r,n,i){for(var a=[],o=0,s=t.length;o{var Stt=Object.create;var EM=Object.defineProperty,Mtt=Object.defineProperties,Ett=Object.getOwnPropertyDescriptor,ktt=Object.getOwnPropertyDescriptors,Ctt=Object.getOwnPropertyNames,mee=Object.getOwnPropertySymbols,Ltt=Object.getPrototypeOf,gee=Object.prototype.hasOwnProperty,Ptt=Object.prototype.propertyIsEnumerable;var yee=(e,t,r)=>t in e?EM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_ee=(e,t)=>{for(var r in t||(t={}))gee.call(t,r)&&yee(e,r,t[r]);if(mee)for(var r of mee(t))Ptt.call(t,r)&&yee(e,r,t[r]);return e},xee=(e,t)=>Mtt(e,ktt(t));var Xf=(e,t)=>()=>(e&&(t=e(e=0)),t);var Te=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),bee=(e,t)=>{for(var r in t)EM(e,r,{get:t[r],enumerable:!0})},wee=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ctt(t))!gee.call(e,i)&&i!==r&&EM(e,i,{get:()=>t[i],enumerable:!(n=Ett(t,i))||n.enumerable});return e};var ztt=(e,t,r)=>(r=e!=null?Stt(Ltt(e)):{},wee(t||!e||!e.__esModule?EM(r,"default",{value:e,enumerable:!0}):r,e)),q1=e=>wee(EM({},"__esModule",{value:!0}),e);var aL=Te(Aee=>{"use strict";Aee.version="3.1.0-rc.1"});var See=Te((Tee,oL)=>{(function(t,r,n){r[t]=r[t]||n(),typeof oL!="undefined"&&oL.exports&&(oL.exports=r[t])})("Promise",typeof window!="undefined"?window:Tee,function(){"use strict";var t,r,n,i=Object.prototype.toString,a=typeof setImmediate!="undefined"?function(k){return setImmediate(k)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(k,E,T,L){return Object.defineProperty(k,E,{value:T,writable:!0,configurable:L!==!1})}}catch(v){t=function(E,T,L){return E[T]=L,E}}n=function(){var k,E,T;function L(_,C){this.fn=_,this.self=C,this.next=void 0}return{add:function(C,S){T=new L(C,S),E?E.next=T:k=T,E=T,T=void 0},drain:function(){var C=k;for(k=E=r=void 0;C;)C.fn.call(C.self),C=C.next}}}();function o(v,k){n.add(v,k),r||(r=a(n.drain))}function s(v){var k,E=typeof v;return v!=null&&(E=="object"||E=="function")&&(k=v.then),typeof k=="function"?k:!1}function u(){for(var v=0;v0&&o(u,E))}catch(T){c.call(new d(E),T)}}}function c(v){var k=this;k.triggered||(k.triggered=!0,k.def&&(k=k.def),k.msg=v,k.state=2,k.chain.length>0&&o(u,k))}function h(v,k,E,T){for(var L=0;L{(function(){var e={version:"3.8.2"},t=[].slice,r=function(Z){return t.call(Z)},n=self.document;function i(Z){return Z&&(Z.ownerDocument||Z.document||Z).documentElement}function a(Z){return Z&&(Z.ownerDocument&&Z.ownerDocument.defaultView||Z.document&&Z||Z.defaultView)}if(n)try{r(n.documentElement.childNodes)[0].nodeType}catch(Z){r=function(se){for(var ze=se.length,Xe=new Array(ze);ze--;)Xe[ze]=se[ze];return Xe}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(Z){var o=this.Element.prototype,s=o.setAttribute,u=o.setAttributeNS,l=this.CSSStyleDeclaration.prototype,f=l.setProperty;o.setAttribute=function(se,ze){s.call(this,se,ze+"")},o.setAttributeNS=function(se,ze,Xe){u.call(this,se,ze,Xe+"")},l.setProperty=function(se,ze,Xe){f.call(this,se,ze+"",Xe)}}e.ascending=c;function c(Z,se){return Zse?1:Z>=se?0:NaN}e.descending=function(Z,se){return seZ?1:se>=Z?0:NaN},e.min=function(Z,se){var ze=-1,Xe=Z.length,Qe,ot;if(arguments.length===1){for(;++ze=ot){Qe=ot;break}for(;++zeot&&(Qe=ot)}else{for(;++ze=ot){Qe=ot;break}for(;++zeot&&(Qe=ot)}return Qe},e.max=function(Z,se){var ze=-1,Xe=Z.length,Qe,ot;if(arguments.length===1){for(;++ze=ot){Qe=ot;break}for(;++zeQe&&(Qe=ot)}else{for(;++ze=ot){Qe=ot;break}for(;++zeQe&&(Qe=ot)}return Qe},e.extent=function(Z,se){var ze=-1,Xe=Z.length,Qe,ot,jt;if(arguments.length===1){for(;++ze=ot){Qe=jt=ot;break}for(;++zeot&&(Qe=ot),jt=ot){Qe=jt=ot;break}for(;++zeot&&(Qe=ot),jt1)return jt/(cr-1)},e.deviation=function(){var Z=e.variance.apply(this,arguments);return Z&&Math.sqrt(Z)};function p(Z){return{left:function(se,ze,Xe,Qe){for(arguments.length<3&&(Xe=0),arguments.length<4&&(Qe=se.length);Xe>>1;Z(se[ot],ze)<0?Xe=ot+1:Qe=ot}return Xe},right:function(se,ze,Xe,Qe){for(arguments.length<3&&(Xe=0),arguments.length<4&&(Qe=se.length);Xe>>1;Z(se[ot],ze)>0?Qe=ot:Xe=ot+1}return Xe}}}var x=p(c);e.bisectLeft=x.left,e.bisect=e.bisectRight=x.right,e.bisector=function(Z){return p(Z.length===1?function(se,ze){return c(Z(se),ze)}:Z)},e.shuffle=function(Z,se,ze){(Xe=arguments.length)<3&&(ze=Z.length,Xe<2&&(se=0));for(var Xe=ze-se,Qe,ot;Xe;)ot=Math.random()*Xe--|0,Qe=Z[Xe+se],Z[Xe+se]=Z[ot+se],Z[ot+se]=Qe;return Z},e.permute=function(Z,se){for(var ze=se.length,Xe=new Array(ze);ze--;)Xe[ze]=Z[se[ze]];return Xe},e.pairs=function(Z){for(var se=0,ze=Z.length-1,Xe,Qe=Z[0],ot=new Array(ze<0?0:ze);se=0;)for(jt=Z[se],ze=jt.length;--ze>=0;)ot[--Qe]=jt[ze];return ot};var v=Math.abs;e.range=function(Z,se,ze){if(arguments.length<3&&(ze=1,arguments.length<2&&(se=Z,Z=0)),(se-Z)/ze===1/0)throw new Error("infinite range");var Xe=[],Qe=k(v(ze)),ot=-1,jt;if(Z*=Qe,se*=Qe,ze*=Qe,ze<0)for(;(jt=Z+ze*++ot)>se;)Xe.push(jt/Qe);else for(;(jt=Z+ze*++ot)=se.length)return Qe?Qe.call(Z,cr):Xe?cr.sort(Xe):cr;for(var zr=-1,ui=cr.length,$r=se[Cr++],Oi,fn,vi,zi=new T,Xi;++zr=se.length)return _t;var Cr=[],zr=ze[cr++];return _t.forEach(function(ui,$r){Cr.push({key:ui,values:jt($r,cr)})}),zr?Cr.sort(function(ui,$r){return zr(ui.key,$r.key)}):Cr}return Z.map=function(_t,cr){return ot(cr,_t,0)},Z.entries=function(_t){return jt(ot(e.map,_t,0),0)},Z.key=function(_t){return se.push(_t),Z},Z.sortKeys=function(_t){return ze[se.length-1]=_t,Z},Z.sortValues=function(_t){return Xe=_t,Z},Z.rollup=function(_t){return Qe=_t,Z},Z},e.set=function(Z){var se=new U;if(Z)for(var ze=0,Xe=Z.length;ze=0&&(Xe=Z.slice(ze+1),Z=Z.slice(0,ze)),Z)return arguments.length<2?this[Z].on(Xe):this[Z].on(Xe,se);if(arguments.length===2){if(se==null)for(Z in this)this.hasOwnProperty(Z)&&this[Z].on(Xe,null);return this}};function ae(Z){var se=[],ze=new T;function Xe(){for(var Qe=se,ot=-1,jt=Qe.length,_t;++ot=0&&(ze=Z.slice(0,se))!=="xmlns"&&(Z=Z.slice(se+1)),Je.hasOwnProperty(ze)?{space:Je[ze],local:Z}:Z}},Fe.attr=function(Z,se){if(arguments.length<2){if(typeof Z=="string"){var ze=this.node();return Z=e.ns.qualify(Z),Z.local?ze.getAttributeNS(Z.space,Z.local):ze.getAttribute(Z)}for(se in Z)this.each(nt(se,Z[se]));return this}return this.each(nt(Z,se))};function nt(Z,se){Z=e.ns.qualify(Z);function ze(){this.removeAttribute(Z)}function Xe(){this.removeAttributeNS(Z.space,Z.local)}function Qe(){this.setAttribute(Z,se)}function ot(){this.setAttributeNS(Z.space,Z.local,se)}function jt(){var cr=se.apply(this,arguments);cr==null?this.removeAttribute(Z):this.setAttribute(Z,cr)}function _t(){var cr=se.apply(this,arguments);cr==null?this.removeAttributeNS(Z.space,Z.local):this.setAttributeNS(Z.space,Z.local,cr)}return se==null?Z.local?Xe:ze:typeof se=="function"?Z.local?_t:jt:Z.local?ot:Qe}function gt(Z){return Z.trim().replace(/\s+/g," ")}Fe.classed=function(Z,se){if(arguments.length<2){if(typeof Z=="string"){var ze=this.node(),Xe=(Z=it(Z)).length,Qe=-1;if(se=ze.classList){for(;++Qe=0;)(ot=ze[Xe])&&(Qe&&Qe!==ot.nextSibling&&Qe.parentNode.insertBefore(ot,Qe),Qe=ot);return this},Fe.sort=function(Z){Z=at.apply(this,arguments);for(var se=-1,ze=this.length;++se=se&&(se=Qe+1);!(cr=jt[se])&&++se<_t;);return cr}}e.select=function(Z){var se;return typeof Z=="string"?(se=[Ee(Z,n)],se.parentNode=n.documentElement):(se=[Z],se.parentNode=i(Z)),ke([se])},e.selectAll=function(Z){var se;return typeof Z=="string"?(se=r(Me(Z,n)),se.parentNode=n.documentElement):(se=r(Z),se.parentNode=null),ke([se])},Fe.on=function(Z,se,ze){var Xe=arguments.length;if(Xe<3){if(typeof Z!="string"){Xe<2&&(se=!1);for(ze in Z)this.each(rt(ze,Z[ze],se));return this}if(Xe<2)return(Xe=this.node()["__on"+Z])&&Xe._;ze=!1}return this.each(rt(Z,se,ze))};function rt(Z,se,ze){var Xe="__on"+Z,Qe=Z.indexOf("."),ot=zt;Qe>0&&(Z=Z.slice(0,Qe));var jt=$e.get(Z);jt&&(Z=jt,ot=Yt);function _t(){var zr=this[Xe];zr&&(this.removeEventListener(Z,zr,zr.$),delete this[Xe])}function cr(){var zr=ot(se,r(arguments));_t.call(this),this.addEventListener(Z,this[Xe]=zr,zr.$=ze),zr._=se}function Cr(){var zr=new RegExp("^__on([^.]+)"+e.requote(Z)+"$"),ui;for(var $r in this)if(ui=$r.match(zr)){var Oi=this[$r];this.removeEventListener(ui[1],Oi,Oi.$),delete this[$r]}}return Qe?se?cr:_t:se?W:Cr}var $e=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&$e.forEach(function(Z){"on"+Z in n&&$e.remove(Z)});function zt(Z,se){return function(ze){var Xe=e.event;e.event=ze,se[0]=this.__data__;try{Z.apply(this,se)}finally{e.event=Xe}}}function Yt(Z,se){var ze=zt(Z,se);return function(Xe){var Qe=this,ot=Xe.relatedTarget;(!ot||ot!==Qe&&!(ot.compareDocumentPosition(Qe)&8))&&ze.call(Qe,Xe)}}var hr,yr=0;function br(Z){var se=".dragsuppress-"+ ++yr,ze="click"+se,Xe=e.select(a(Z)).on("touchmove"+se,be).on("dragstart"+se,be).on("selectstart"+se,be);if(hr==null&&(hr="onselectstart"in Z?!1:H(Z.style,"userSelect")),hr){var Qe=i(Z).style,ot=Qe[hr];Qe[hr]="none"}return function(jt){if(Xe.on(se,null),hr&&(Qe[hr]=ot),jt){var _t=function(){Xe.on(ze,null)};Xe.on(ze,function(){be(),_t()},!0),setTimeout(_t,0)}}}e.mouse=function(Z){return Ie(Z,Ce())};var Ut=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ie(Z,se){se.changedTouches&&(se=se.changedTouches[0]);var ze=Z.ownerSVGElement||Z;if(ze.createSVGPoint){var Xe=ze.createSVGPoint();if(Ut<0){var Qe=a(Z);if(Qe.scrollX||Qe.scrollY){ze=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var ot=ze[0][0].getScreenCTM();Ut=!(ot.f||ot.e),ze.remove()}}return Ut?(Xe.x=se.pageX,Xe.y=se.pageY):(Xe.x=se.clientX,Xe.y=se.clientY),Xe=Xe.matrixTransform(Z.getScreenCTM().inverse()),[Xe.x,Xe.y]}var jt=Z.getBoundingClientRect();return[se.clientX-jt.left-Z.clientLeft,se.clientY-jt.top-Z.clientTop]}e.touch=function(Z,se,ze){if(arguments.length<3&&(ze=se,se=Ce().changedTouches),se){for(var Xe=0,Qe=se.length,ot;Xe0?1:Z<0?-1:0}function Pt(Z,se,ze){return(se[0]-Z[0])*(ze[1]-Z[1])-(se[1]-Z[1])*(ze[0]-Z[0])}function rr(Z){return Z>1?0:Z<-1?De:Math.acos(Z)}function Hr(Z){return Z>1?fe:Z<-1?-fe:Math.asin(Z)}function Dr(Z){return((Z=Math.exp(Z))-1/Z)/2}function Mr(Z){return((Z=Math.exp(Z))+1/Z)/2}function Fr(Z){return((Z=Math.exp(2*Z))-1)/(Z+1)}function di(Z){return(Z=Math.sin(Z/2))*Z}var Di=Math.SQRT2,Ii=2,Ci=4;e.interpolateZoom=function(Z,se){var ze=Z[0],Xe=Z[1],Qe=Z[2],ot=se[0],jt=se[1],_t=se[2],cr=ot-ze,Cr=jt-Xe,zr=cr*cr+Cr*Cr,ui,$r;if(zr0&&(ds=ds.transition().duration(jt)),ds.call(sn.event)}function El(){zi&&zi.domain(vi.range().map(function(ds){return(ds-Z.x)/Z.k}).map(vi.invert)),pn&&pn.domain(Xi.range().map(function(ds){return(ds-Z.y)/Z.k}).map(Xi.invert))}function Pl(ds){_t++||ds({type:"zoomstart"})}function pu(ds){El(),ds({type:"zoom",scale:Z.k,translate:[Z.x,Z.y]})}function Il(ds){--_t||(ds({type:"zoomend"}),ze=null)}function fu(){var ds=this,Wl=fn.of(ds,arguments),Au=0,Tu=e.select(a(ds)).on(Cr,Ef).on(zr,vf),uf=bi(e.mouse(ds)),df=br(ds);Us.call(ds),Pl(Wl);function Ef(){Au=1,Xo(e.mouse(ds),uf),pu(Wl)}function vf(){Tu.on(Cr,null).on(zr,null),df(Au),Il(Wl)}}function Zu(){var ds=this,Wl=fn.of(ds,arguments),Au={},Tu=0,uf,df=".zoom-"+e.event.changedTouches[0].identifier,Ef="touchmove"+df,vf="touchend"+df,fc=[],Be=e.select(ds),qt=br(ds);Qr(),Pl(Wl),Be.on(cr,null).on($r,Qr);function ar(){var pi=e.touches(ds);return uf=Z.k,pi.forEach(function(on){on.identifier in Au&&(Au[on.identifier]=bi(on))}),pi}function Qr(){var pi=e.event.target;e.select(pi).on(Ef,mi).on(vf,fi),fc.push(pi);for(var on=e.event.changedTouches,Bn=0,Ln=on.length;Bn1){var ua=wn[0],Hn=wn[1],Ni=ua[0]-Hn[0],Wr=ua[1]-Hn[1];Tu=Ni*Ni+Wr*Wr}}function mi(){var pi=e.touches(ds),on,Bn,Ln,wn;Us.call(ds);for(var Ls=0,ua=pi.length;Ls1?1:se,ze=ze<0?0:ze>1?1:ze,Qe=ze<=.5?ze*(1+se):ze+se-ze*se,Xe=2*ze-Qe;function ot(_t){return _t>360?_t-=360:_t<0&&(_t+=360),_t<60?Xe+(Qe-Xe)*_t/60:_t<180?Qe:_t<240?Xe+(Qe-Xe)*(240-_t)/60:Xe}function jt(_t){return Math.round(ot(_t)*255)}return new Bi(jt(Z+120),jt(Z),jt(Z-120))}e.hcl=Wt;function Wt(Z,se,ze){return this instanceof Wt?(this.h=+Z,this.c=+se,void(this.l=+ze)):arguments.length<2?Z instanceof Wt?new Wt(Z.h,Z.c,Z.l):Z instanceof Ur?ti(Z.l,Z.a,Z.b):ti((Z=Xr((Z=e.rgb(Z)).r,Z.g,Z.b)).l,Z.a,Z.b):new Wt(Z,se,ze)}var _r=Wt.prototype=new Gi;_r.brighter=function(Z){return new Wt(this.h,this.c,Math.min(100,this.l+Ir*(arguments.length?Z:1)))},_r.darker=function(Z){return new Wt(this.h,this.c,Math.max(0,this.l-Ir*(arguments.length?Z:1)))},_r.rgb=function(){return Lr(this.h,this.c,this.l).rgb()};function Lr(Z,se,ze){return isNaN(Z)&&(Z=0),isNaN(se)&&(se=0),new Ur(ze,Math.cos(Z*=de)*se,Math.sin(Z)*se)}e.lab=Ur;function Ur(Z,se,ze){return this instanceof Ur?(this.l=+Z,this.a=+se,void(this.b=+ze)):arguments.length<2?Z instanceof Ur?new Ur(Z.l,Z.a,Z.b):Z instanceof Wt?Lr(Z.h,Z.c,Z.l):Xr((Z=Bi(Z)).r,Z.g,Z.b):new Ur(Z,se,ze)}var Ir=18,Gr=.95047,jr=1,yi=1.08883,Ei=Ur.prototype=new Gi;Ei.brighter=function(Z){return new Ur(Math.min(100,this.l+Ir*(arguments.length?Z:1)),this.a,this.b)},Ei.darker=function(Z){return new Ur(Math.max(0,this.l-Ir*(arguments.length?Z:1)),this.a,this.b)},Ei.rgb=function(){return Vi(this.l,this.a,this.b)};function Vi(Z,se,ze){var Xe=(Z+16)/116,Qe=Xe+se/500,ot=Xe-ze/200;return Qe=en(Qe)*Gr,Xe=en(Xe)*jr,ot=en(ot)*yi,new Bi(oi(3.2404542*Qe-1.5371385*Xe-.4985314*ot),oi(-.969266*Qe+1.8760108*Xe+.041556*ot),oi(.0556434*Qe-.2040259*Xe+1.0572252*ot))}function ti(Z,se,ze){return Z>0?new Wt(Math.atan2(ze,se)*dt,Math.sqrt(se*se+ze*ze),Z):new Wt(NaN,NaN,Z)}function en(Z){return Z>.206893034?Z*Z*Z:(Z-4/29)/7.787037}function Yr(Z){return Z>.008856?Math.pow(Z,1/3):7.787037*Z+4/29}function oi(Z){return Math.round(255*(Z<=.00304?12.92*Z:1.055*Math.pow(Z,1/2.4)-.055))}e.rgb=Bi;function Bi(Z,se,ze){return this instanceof Bi?(this.r=~~Z,this.g=~~se,void(this.b=~~ze)):arguments.length<2?Z instanceof Bi?new Bi(Z.r,Z.g,Z.b):xn(""+Z,Bi,Vt):new Bi(Z,se,ze)}function an(Z){return new Bi(Z>>16,Z>>8&255,Z&255)}function rn(Z){return an(Z)+""}var Fi=Bi.prototype=new Gi;Fi.brighter=function(Z){Z=Math.pow(.7,arguments.length?Z:1);var se=this.r,ze=this.g,Xe=this.b,Qe=30;return!se&&!ze&&!Xe?new Bi(Qe,Qe,Qe):(se&&se>4,Xe=Xe>>4|Xe,Qe=cr&240,Qe=Qe>>4|Qe,ot=cr&15,ot=ot<<4|ot):Z.length===7&&(Xe=(cr&16711680)>>16,Qe=(cr&65280)>>8,ot=cr&255)),se(Xe,Qe,ot))}function xi(Z,se,ze){var Xe=Math.min(Z/=255,se/=255,ze/=255),Qe=Math.max(Z,se,ze),ot=Qe-Xe,jt,_t,cr=(Qe+Xe)/2;return ot?(_t=cr<.5?ot/(Qe+Xe):ot/(2-Qe-Xe),Z==Qe?jt=(se-ze)/ot+(se0&&cr<1?0:jt),new Bt(jt,_t,cr)}function Xr(Z,se,ze){Z=ft(Z),se=ft(se),ze=ft(ze);var Xe=Yr((.4124564*Z+.3575761*se+.1804375*ze)/Gr),Qe=Yr((.2126729*Z+.7151522*se+.072175*ze)/jr),ot=Yr((.0193339*Z+.119192*se+.9503041*ze)/yi);return Ur(116*Qe-16,500*(Xe-Qe),200*(Qe-ot))}function ft(Z){return(Z/=255)<=.04045?Z/12.92:Math.pow((Z+.055)/1.055,2.4)}function tr(Z){var se=parseFloat(Z);return Z.charAt(Z.length-1)==="%"?Math.round(se*2.55):se}var pr=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});pr.forEach(function(Z,se){pr.set(Z,an(se))});function gr(Z){return typeof Z=="function"?Z:function(){return Z}}e.functor=gr,e.xhr=Zr(G);function Zr(Z){return function(se,ze,Xe){return arguments.length===2&&typeof ze=="function"&&(Xe=ze,ze=null),Ai(se,ze,Z,Xe)}}function Ai(Z,se,ze,Xe){var Qe={},ot=e.dispatch("beforesend","progress","load","error"),jt={},_t=new XMLHttpRequest,cr=null;self.XDomainRequest&&!("withCredentials"in _t)&&/^(http(s)?:)?\/\//.test(Z)&&(_t=new XDomainRequest),"onload"in _t?_t.onload=_t.onerror=Cr:_t.onreadystatechange=function(){_t.readyState>3&&Cr()};function Cr(){var zr=_t.status,ui;if(!zr&&ni(_t)||zr>=200&&zr<300||zr===304){try{ui=ze.call(Qe,_t)}catch($r){ot.error.call(Qe,$r);return}ot.load.call(Qe,ui)}else ot.error.call(Qe,_t)}return _t.onprogress=function(zr){var ui=e.event;e.event=zr;try{ot.progress.call(Qe,_t)}finally{e.event=ui}},Qe.header=function(zr,ui){return zr=(zr+"").toLowerCase(),arguments.length<2?jt[zr]:(ui==null?delete jt[zr]:jt[zr]=ui+"",Qe)},Qe.mimeType=function(zr){return arguments.length?(se=zr==null?null:zr+"",Qe):se},Qe.responseType=function(zr){return arguments.length?(cr=zr,Qe):cr},Qe.response=function(zr){return ze=zr,Qe},["get","post"].forEach(function(zr){Qe[zr]=function(){return Qe.send.apply(Qe,[zr].concat(r(arguments)))}}),Qe.send=function(zr,ui,$r){if(arguments.length===2&&typeof ui=="function"&&($r=ui,ui=null),_t.open(zr,Z,!0),se!=null&&!("accept"in jt)&&(jt.accept=se+",*/*"),_t.setRequestHeader)for(var Oi in jt)_t.setRequestHeader(Oi,jt[Oi]);return se!=null&&_t.overrideMimeType&&_t.overrideMimeType(se),cr!=null&&(_t.responseType=cr),$r!=null&&Qe.on("error",$r).on("load",function(fn){$r(null,fn)}),ot.beforesend.call(Qe,_t),_t.send(ui==null?null:ui),Qe},Qe.abort=function(){return _t.abort(),Qe},e.rebind(Qe,ot,"on"),Xe==null?Qe:Qe.get(Qi(Xe))}function Qi(Z){return Z.length===1?function(se,ze){Z(se==null?ze:null)}:Z}function ni(Z){var se=Z.responseType;return se&&se!=="text"?Z.response:Z.responseText}e.dsv=function(Z,se){var ze=new RegExp('["'+Z+` +]`),Xe=Z.charCodeAt(0);function Qe(Cr,zr,ui){arguments.length<3&&(ui=zr,zr=null);var $r=Ai(Cr,se,zr==null?ot:jt(zr),ui);return $r.row=function(Oi){return arguments.length?$r.response((zr=Oi)==null?ot:jt(Oi)):zr},$r}function ot(Cr){return Qe.parse(Cr.responseText)}function jt(Cr){return function(zr){return Qe.parse(zr.responseText,Cr)}}Qe.parse=function(Cr,zr){var ui;return Qe.parseRows(Cr,function($r,Oi){if(ui)return ui($r,Oi-1);var fn=function(vi){for(var zi={},Xi=$r.length,pn=0;pn=fn)return $r;if(pn)return pn=!1,ui;var xo=vi;if(Cr.charCodeAt(xo)===34){for(var no=xo;no++24?(isFinite(se)&&(clearTimeout(Un),Un=setTimeout(oa,se)),Mn=0):(Mn=1,Ga(oa))}e.timer.flush=function(){ka(),so()};function ka(){for(var Z=Date.now(),se=Zi;se;)Z>=se.t&&se.c(Z-se.t)&&(se.c=null),se=se.n;return Z}function so(){for(var Z,se=Zi,ze=1/0;se;)se.c?(se.t=0;--_t)vi.push(Qe[Cr[ui[_t]][2]]);for(_t=+Oi;_t<$r.length-fn;++_t)vi.push(Qe[Cr[$r[_t]][2]]);return vi}return Xe.x=function(Qe){return arguments.length?(se=Qe,Xe):se},Xe.y=function(Qe){return arguments.length?(ze=Qe,Xe):ze},Xe};function Yo(Z){for(var se=Z.length,ze=[0,1],Xe=2,Qe=2;Qe1&&Pt(Z[ze[Xe-2]],Z[ze[Xe-1]],Z[Qe])<=0;)--Xe;ze[Xe++]=Qe}return ze.slice(0,Xe)}function fa(Z,se){return Z[0]-se[0]||Z[1]-se[1]}e.geom.polygon=function(Z){return te(Z,kn),Z};var kn=e.geom.polygon.prototype=[];kn.area=function(){for(var Z=-1,se=this.length,ze,Xe=this[se-1],Qe=0;++ZOe)_t=_t.L;else if(jt=se-Sn(_t,ze),jt>Oe){if(!_t.R){Xe=_t;break}_t=_t.R}else{ot>-Oe?(Xe=_t.P,Qe=_t):jt>-Oe?(Xe=_t,Qe=_t.N):Xe=Qe=_t;break}var cr=Po(Z);if(fo.insert(Xe,cr),!(!Xe&&!Qe)){if(Xe===Qe){Sa(Xe),Qe=Po(Xe.site),fo.insert(cr,Qe),cr.edge=Qe.edge=vo(Xe.site,cr.site),Wi(Xe),Wi(Qe);return}if(!Qe){cr.edge=vo(Xe.site,cr.site);return}Sa(Xe),Sa(Qe);var Cr=Xe.site,zr=Cr.x,ui=Cr.y,$r=Z.x-zr,Oi=Z.y-ui,fn=Qe.site,vi=fn.x-zr,zi=fn.y-ui,Xi=2*($r*zi-Oi*vi),pn=$r*$r+Oi*Oi,sn=vi*vi+zi*zi,bi={x:(zi*pn-Oi*sn)/Xi+zr,y:($r*sn-vi*pn)/Xi+ui};ps(Qe.edge,Cr,fn,bi),cr.edge=vo(Cr,Z,null,bi),Qe.edge=vo(Z,fn,null,bi),Wi(Xe),Wi(Qe)}}function Ha(Z,se){var ze=Z.site,Xe=ze.x,Qe=ze.y,ot=Qe-se;if(!ot)return Xe;var jt=Z.P;if(!jt)return-1/0;ze=jt.site;var _t=ze.x,cr=ze.y,Cr=cr-se;if(!Cr)return _t;var zr=_t-Xe,ui=1/ot-1/Cr,$r=zr/Cr;return ui?(-$r+Math.sqrt($r*$r-2*ui*(zr*zr/(-2*Cr)-cr+Cr/2+Qe-ot/2)))/ui+Xe:(Xe+_t)/2}function Sn(Z,se){var ze=Z.N;if(ze)return Ha(ze,se);var Xe=Z.site;return Xe.y===se?Xe.x:1/0}function ao(Z){this.site=Z,this.edges=[]}ao.prototype.prepare=function(){for(var Z=this.edges,se=Z.length,ze;se--;)ze=Z[se].edge,(!ze.b||!ze.a)&&Z.splice(se,1);return Z.sort(Ko),Z.length};function Ba(Z){for(var se=Z[0][0],ze=Z[1][0],Xe=Z[0][1],Qe=Z[1][1],ot,jt,_t,cr,Cr=$a,zr=Cr.length,ui,$r,Oi,fn,vi,zi;zr--;)if(ui=Cr[zr],!(!ui||!ui.prepare()))for(Oi=ui.edges,fn=Oi.length,$r=0;$rOe||v(cr-jt)>Oe)&&(Oi.splice($r,0,new co(As(ui.site,zi,v(_t-se)Oe?{x:se,y:v(ot-se)Oe?{x:v(jt-Qe)Oe?{x:ze,y:v(ot-ze)Oe?{x:v(jt-Xe)=-Re)){var $r=cr*cr+Cr*Cr,Oi=zr*zr+zi*zi,fn=(zi*$r-Cr*Oi)/ui,vi=(cr*Oi-zr*$r)/ui,zi=vi+_t,Xi=ws.pop()||new Qo;Xi.arc=Z,Xi.site=Qe,Xi.x=fn+jt,Xi.y=zi+Math.sqrt(fn*fn+vi*vi),Xi.cy=zi,Z.circle=Xi;for(var pn=null,sn=wa._;sn;)if(Xi.y0)){if(vi/=Oi,Oi<0){if(vi0){if(vi>$r)return;vi>ui&&(ui=vi)}if(vi=ze-_t,!(!Oi&&vi<0)){if(vi/=Oi,Oi<0){if(vi>$r)return;vi>ui&&(ui=vi)}else if(Oi>0){if(vi0)){if(vi/=fn,fn<0){if(vi0){if(vi>$r)return;vi>ui&&(ui=vi)}if(vi=Xe-cr,!(!fn&&vi<0)){if(vi/=fn,fn<0){if(vi>$r)return;vi>ui&&(ui=vi)}else if(fn>0){if(vi0&&(Qe.a={x:_t+ui*Oi,y:cr+ui*fn}),$r<1&&(Qe.b={x:_t+$r*Oi,y:cr+$r*fn}),Qe}}}}}}function vn(Z){for(var se=ls,ze=Qa(Z[0][0],Z[0][1],Z[1][0],Z[1][1]),Xe=se.length,Qe;Xe--;)Qe=se[Xe],(!da(Qe,Z)||!ze(Qe)||v(Qe.a.x-Qe.b.x)=ot)return;if(zr>$r){if(!Xe)Xe={x:fn,y:jt};else if(Xe.y>=_t)return;ze={x:fn,y:_t}}else{if(!Xe)Xe={x:fn,y:_t};else if(Xe.y1)if(zr>$r){if(!Xe)Xe={x:(jt-Xi)/zi,y:jt};else if(Xe.y>=_t)return;ze={x:(_t-Xi)/zi,y:_t}}else{if(!Xe)Xe={x:(_t-Xi)/zi,y:_t};else if(Xe.y=ot)return;ze={x:ot,y:zi*ot+Xi}}else{if(!Xe)Xe={x:ot,y:zi*ot+Xi};else if(Xe.x=zr&&Xi.x<=$r&&Xi.y>=ui&&Xi.y<=Oi?[[zr,Oi],[$r,Oi],[$r,ui],[zr,ui]]:[];pn.point=cr[vi]}),Cr}function _t(cr){return cr.map(function(Cr,zr){return{x:Math.round(Xe(Cr,zr)/Oe)*Oe,y:Math.round(Qe(Cr,zr)/Oe)*Oe,i:zr}})}return jt.links=function(cr){return qs(_t(cr)).edges.filter(function(Cr){return Cr.l&&Cr.r}).map(function(Cr){return{source:cr[Cr.l.i],target:cr[Cr.r.i]}})},jt.triangles=function(cr){var Cr=[];return qs(_t(cr)).cells.forEach(function(zr,ui){for(var $r=zr.site,Oi=zr.edges.sort(Ko),fn=-1,vi=Oi.length,zi,Xi,pn=Oi[vi-1].edge,sn=pn.l===$r?pn.r:pn.l;++fnsn&&(sn=zr.x),zr.y>bi&&(bi=zr.y),Oi.push(zr.x),fn.push(zr.y);else for(vi=0;visn&&(sn=xo),no>bi&&(bi=no),Oi.push(xo),fn.push(no)}var Xo=sn-Xi,js=bi-pn;Xo>js?bi=pn+Xo:sn=Xi+js;function El(Il,fu,Zu,Gu,rf,ds,Wl,Au){if(!(isNaN(Zu)||isNaN(Gu)))if(Il.leaf){var Tu=Il.x,uf=Il.y;if(Tu!=null)if(v(Tu-Zu)+v(uf-Gu)<.01)Pl(Il,fu,Zu,Gu,rf,ds,Wl,Au);else{var df=Il.point;Il.x=Il.y=Il.point=null,Pl(Il,df,Tu,uf,rf,ds,Wl,Au),Pl(Il,fu,Zu,Gu,rf,ds,Wl,Au)}else Il.x=Zu,Il.y=Gu,Il.point=fu}else Pl(Il,fu,Zu,Gu,rf,ds,Wl,Au)}function Pl(Il,fu,Zu,Gu,rf,ds,Wl,Au){var Tu=(rf+Wl)*.5,uf=(ds+Au)*.5,df=Zu>=Tu,Ef=Gu>=uf,vf=Ef<<1|df;Il.leaf=!1,Il=Il.nodes[vf]||(Il.nodes[vf]=_n()),df?rf=Tu:Wl=Tu,Ef?ds=uf:Au=uf,El(Il,fu,Zu,Gu,rf,ds,Wl,Au)}var pu=_n();if(pu.add=function(Il){El(pu,Il,+ui(Il,++vi),+$r(Il,vi),Xi,pn,sn,bi)},pu.visit=function(Il){Vn(Il,pu,Xi,pn,sn,bi)},pu.find=function(Il){return wo(pu,Il[0],Il[1],Xi,pn,sn,bi)},vi=-1,se==null){for(;++viot||$r>jt||Oi=xo,js=ze>=no,El=js<<1|Xo,Pl=El+4;Elze&&(ot=se.slice(ze,ot),_t[jt]?_t[jt]+=ot:_t[++jt]=ot),(Xe=Xe[0])===(Qe=Qe[0])?_t[jt]?_t[jt]+=Qe:_t[++jt]=Qe:(_t[++jt]=null,cr.push({i:jt,x:un(Xe,Qe)})),ze=qn.lastIndex;return ze=0&&!(Xe=e.interpolators[ze](Z,se)););return Xe}e.interpolators=[function(Z,se){var ze=typeof se;return(ze==="string"?pr.has(se.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(se)?Ra:$n:se instanceof Gi?Ra:Array.isArray(se)?Ja:ze==="object"&&isNaN(se)?Xn:un)(Z,se)}],e.interpolateArray=Ja;function Ja(Z,se){var ze=[],Xe=[],Qe=Z.length,ot=se.length,jt=Math.min(Z.length,se.length),_t;for(_t=0;_t=0?Z.slice(0,se):Z,Xe=se>=0?Z.slice(se+1):"in";return ze=eo.get(ze)||lo,Xe=sa.get(Xe)||G,es(Xe(ze.apply(null,t.call(arguments,1))))};function es(Z){return function(se){return se<=0?0:se>=1?1:Z(se)}}function Na(Z){return function(se){return 1-Z(1-se)}}function tn(Z){return function(se){return .5*(se<.5?Z(2*se):2-Z(2-2*se))}}function Pa(Z){return Z*Z}function to(Z){return Z*Z*Z}function yo(Z){if(Z<=0)return 0;if(Z>=1)return 1;var se=Z*Z,ze=se*Z;return 4*(Z<.5?ze:3*(Z-se)+ze-.75)}function Jo(Z){return function(se){return Math.pow(se,Z)}}function Ao(Z){return 1-Math.cos(Z*fe)}function Dn(Z){return Math.pow(2,10*(Z-1))}function _a(Z){return 1-Math.sqrt(1-Z*Z)}function Ws(Z,se){var ze;return arguments.length<2&&(se=.45),arguments.length?ze=se/ct*Math.asin(1/Z):(Z=1,ze=se/4),function(Xe){return 1+Z*Math.pow(2,-10*Xe)*Math.sin((Xe-ze)*ct/se)}}function Ca(Z){return Z||(Z=1.70158),function(se){return se*se*((Z+1)*se-Z)}}function Es(Z){return Z<1/2.75?7.5625*Z*Z:Z<2/2.75?7.5625*(Z-=1.5/2.75)*Z+.75:Z<2.5/2.75?7.5625*(Z-=2.25/2.75)*Z+.9375:7.5625*(Z-=2.625/2.75)*Z+.984375}e.interpolateHcl=Ts;function Ts(Z,se){Z=e.hcl(Z),se=e.hcl(se);var ze=Z.h,Xe=Z.c,Qe=Z.l,ot=se.h-ze,jt=se.c-Xe,_t=se.l-Qe;return isNaN(jt)&&(jt=0,Xe=isNaN(Xe)?se.c:Xe),isNaN(ot)?(ot=0,ze=isNaN(ze)?se.h:ze):ot>180?ot-=360:ot<-180&&(ot+=360),function(cr){return Lr(ze+ot*cr,Xe+jt*cr,Qe+_t*cr)+""}}e.interpolateHsl=Ho;function Ho(Z,se){Z=e.hsl(Z),se=e.hsl(se);var ze=Z.h,Xe=Z.s,Qe=Z.l,ot=se.h-ze,jt=se.s-Xe,_t=se.l-Qe;return isNaN(jt)&&(jt=0,Xe=isNaN(Xe)?se.s:Xe),isNaN(ot)?(ot=0,ze=isNaN(ze)?se.h:ze):ot>180?ot-=360:ot<-180&&(ot+=360),function(cr){return Vt(ze+ot*cr,Xe+jt*cr,Qe+_t*cr)+""}}e.interpolateLab=Wa;function Wa(Z,se){Z=e.lab(Z),se=e.lab(se);var ze=Z.l,Xe=Z.a,Qe=Z.b,ot=se.l-ze,jt=se.a-Xe,_t=se.b-Qe;return function(cr){return Vi(ze+ot*cr,Xe+jt*cr,Qe+_t*cr)+""}}e.interpolateRound=To;function To(Z,se){return se-=Z,function(ze){return Math.round(Z+se*ze)}}e.transform=function(Z){var se=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(ze){if(ze!=null){se.setAttribute("transform",ze);var Xe=se.transform.baseVal.consolidate()}return new ts(Xe?Xe.matrix:Bo)})(Z)};function ts(Z){var se=[Z.a,Z.b],ze=[Z.c,Z.d],Xe=qa(se),Qe=Wo(se,ze),ot=qa(ln(ze,se,-Qe))||0;se[0]*ze[1]180?se+=360:se-Z>180&&(Z+=360),Xe.push({i:ze.push(ko(ze)+"rotate(",null,")")-2,x:un(Z,se)})):se&&ze.push(ko(ze)+"rotate("+se+")")}function ea(Z,se,ze,Xe){Z!==se?Xe.push({i:ze.push(ko(ze)+"skewX(",null,")")-2,x:un(Z,se)}):se&&ze.push(ko(ze)+"skewX("+se+")")}function rs(Z,se,ze,Xe){if(Z[0]!==se[0]||Z[1]!==se[1]){var Qe=ze.push(ko(ze)+"scale(",null,",",null,")");Xe.push({i:Qe-4,x:un(Z[0],se[0])},{i:Qe-2,x:un(Z[1],se[1])})}else(se[0]!==1||se[1]!==1)&&ze.push(ko(ze)+"scale("+se+")")}function $s(Z,se){var ze=[],Xe=[];return Z=e.transform(Z),se=e.transform(se),oo(Z.translate,se.translate,ze,Xe),za(Z.rotate,se.rotate,ze,Xe),ea(Z.skew,se.skew,ze,Xe),rs(Z.scale,se.scale,ze,Xe),Z=se=null,function(Qe){for(var ot=-1,jt=Xe.length,_t;++ot0?ot=bi:(ze.c=null,ze.t=NaN,ze=null,se.end({type:"end",alpha:ot=0})):bi>0&&(se.start({type:"start",alpha:ot=bi}),ze=ma(Z.tick)),Z):ot},Z.start=function(){var bi,xo=Oi.length,no=fn.length,Xo=Xe[0],js=Xe[1],El,Pl;for(bi=0;bi=0;)ot.push(zr=Cr[cr]),zr.parent=_t,zr.depth=_t.depth+1;ze&&(_t.value=0),_t.children=Cr}else ze&&(_t.value=+ze.call(Xe,_t,_t.depth)||0),delete _t.children;return Oo(Qe,function(ui){var $r,Oi;Z&&($r=ui.children)&&$r.sort(Z),ze&&(Oi=ui.parent)&&(Oi.value+=ui.value)}),jt}return Xe.sort=function(Qe){return arguments.length?(Z=Qe,Xe):Z},Xe.children=function(Qe){return arguments.length?(se=Qe,Xe):se},Xe.value=function(Qe){return arguments.length?(ze=Qe,Xe):ze},Xe.revalue=function(Qe){return ze&&(Jn(Qe,function(ot){ot.children&&(ot.value=0)}),Oo(Qe,function(ot){var jt;ot.children||(ot.value=+ze.call(Xe,ot,ot.depth)||0),(jt=ot.parent)&&(jt.value+=ot.value)})),Qe},Xe};function Ea(Z,se){return e.rebind(Z,se,"sort","children","value"),Z.nodes=Z,Z.links=zs,Z}function Jn(Z,se){for(var ze=[Z];(Z=ze.pop())!=null;)if(se(Z),(Qe=Z.children)&&(Xe=Qe.length))for(var Xe,Qe;--Xe>=0;)ze.push(Qe[Xe])}function Oo(Z,se){for(var ze=[Z],Xe=[];(Z=ze.pop())!=null;)if(Xe.push(Z),(jt=Z.children)&&(ot=jt.length))for(var Qe=-1,ot,jt;++QeQe&&(Qe=_t),Xe.push(_t)}for(jt=0;jtXe&&(ze=se,Xe=Qe);return ze}function zo(Z){return Z.reduce(io,0)}function io(Z,se){return Z+se[1]}e.layout.histogram=function(){var Z=!0,se=Number,ze=vs,Xe=Io;function Qe(ot,$r){for(var _t=[],cr=ot.map(se,this),Cr=ze.call(this,cr,$r),zr=Xe.call(this,Cr,cr,$r),ui,$r=-1,Oi=cr.length,fn=zr.length-1,vi=Z?1:1/Oi,zi;++$r0)for($r=-1;++$r=Cr[0]&&zi<=Cr[1]&&(ui=_t[e.bisect(zr,zi,1,fn)-1],ui.y+=vi,ui.push(ot[$r]));return _t}return Qe.value=function(ot){return arguments.length?(se=ot,Qe):se},Qe.range=function(ot){return arguments.length?(ze=gr(ot),Qe):ze},Qe.bins=function(ot){return arguments.length?(Xe=typeof ot=="number"?function(jt){return Da(jt,ot)}:gr(ot),Qe):Xe},Qe.frequency=function(ot){return arguments.length?(Z=!!ot,Qe):Z},Qe};function Io(Z,se){return Da(Z,Math.ceil(Math.log(se.length)/Math.LN2+1))}function Da(Z,se){for(var ze=-1,Xe=+Z[0],Qe=(Z[1]-Xe)/se,ot=[];++ze<=se;)ot[ze]=Qe*ze+Xe;return ot}function vs(Z){return[e.min(Z),e.max(Z)]}e.layout.pack=function(){var Z=e.layout.hierarchy().sort(fs),se=0,ze=[1,1],Xe;function Qe(ot,jt){var _t=Z.call(this,ot,jt),cr=_t[0],Cr=ze[0],zr=ze[1],ui=Xe==null?Math.sqrt:typeof Xe=="function"?Xe:function(){return Xe};if(cr.x=cr.y=0,Oo(cr,function(Oi){Oi.r=+ui(Oi.value)}),Oo(cr,Ro),se){var $r=se*(Xe?1:Math.max(2*cr.r/Cr,2*cr.r/zr))/2;Oo(cr,function(Oi){Oi.r+=$r}),Oo(cr,Ro),Oo(cr,function(Oi){Oi.r-=$r})}return hl(cr,Cr/2,zr/2,Xe?1:1/Math.max(2*cr.r/Cr,2*cr.r/zr)),_t}return Qe.size=function(ot){return arguments.length?(ze=ot,Qe):ze},Qe.radius=function(ot){return arguments.length?(Xe=ot==null||typeof ot=="function"?ot:+ot,Qe):Xe},Qe.padding=function(ot){return arguments.length?(se=+ot,Qe):se},Ea(Qe,Z)};function fs(Z,se){return Z.value-se.value}function cl(Z,se){var ze=Z._pack_next;Z._pack_next=se,se._pack_prev=Z,se._pack_next=ze,ze._pack_prev=se}function el(Z,se){Z._pack_next=se,se._pack_prev=Z}function Hs(Z,se){var ze=se.x-Z.x,Xe=se.y-Z.y,Qe=Z.r+se.r;return .999*Qe*Qe>ze*ze+Xe*Xe}function Ro(Z){if(!(se=Z.children)||!($r=se.length))return;var se,ze=1/0,Xe=-1/0,Qe=1/0,ot=-1/0,jt,_t,cr,Cr,zr,ui,$r;function Oi(bi){ze=Math.min(bi.x-bi.r,ze),Xe=Math.max(bi.x+bi.r,Xe),Qe=Math.min(bi.y-bi.r,Qe),ot=Math.max(bi.y+bi.r,ot)}if(se.forEach(tl),jt=se[0],jt.x=-jt.r,jt.y=0,Oi(jt),$r>1&&(_t=se[1],_t.x=_t.r,_t.y=0,Oi(_t),$r>2))for(cr=se[2],Fa(jt,_t,cr),Oi(cr),cl(jt,cr),jt._pack_prev=cr,cl(cr,_t),_t=jt._pack_next,Cr=3;Cr<$r;Cr++){Fa(jt,_t,cr=se[Cr]);var fn=0,vi=1,zi=1;for(zr=_t._pack_next;zr!==_t;zr=zr._pack_next,vi++)if(Hs(zr,cr)){fn=1;break}if(fn==1)for(ui=jt._pack_prev;ui!==zr._pack_prev&&!Hs(ui,cr);ui=ui._pack_prev,zi++);fn?(vizi.x&&(zi=xo),xo.depth>Xi.depth&&(Xi=xo)});var pn=se(vi,zi)/2-vi.x,sn=ze[0]/(zi.x+se(zi,vi)/2+pn),bi=ze[1]/(Xi.depth||1);Jn(Oi,function(xo){xo.x=(xo.x+pn)*sn,xo.y=xo.depth*bi})}return $r}function ot(zr){for(var ui={A:null,children:[zr]},$r=[ui],Oi;(Oi=$r.pop())!=null;)for(var fn=Oi.children,vi,zi=0,Xi=fn.length;zi0&&(Is(At(vi,zr,$r),zr,xo),Xi+=xo,pn+=xo),sn+=vi.m,Xi+=Oi.m,bi+=zi.m,pn+=fn.m;vi&&!Rs(fn)&&(fn.t=vi,fn.m+=sn-pn),Oi&&!jo(zi)&&(zi.t=Oi,zi.m+=Xi-bi,$r=zr)}return $r}function Cr(zr){zr.x*=ze[0],zr.y=zr.depth*ze[1]}return Qe.separation=function(zr){return arguments.length?(se=zr,Qe):se},Qe.size=function(zr){return arguments.length?(Xe=(ze=zr)==null?Cr:null,Qe):Xe?null:ze},Qe.nodeSize=function(zr){return arguments.length?(Xe=(ze=zr)==null?null:Cr,Qe):Xe?ze:null},Ea(Qe,Z)};function Ms(Z,se){return Z.parent==se.parent?1:2}function jo(Z){var se=Z.children;return se.length?se[0]:Z.t}function Rs(Z){var se=Z.children,ze;return(ze=se.length)?se[ze-1]:Z.t}function Is(Z,se,ze){var Xe=ze/(se.i-Z.i);se.c-=Xe,se.s+=ze,Z.c+=Xe,se.z+=ze,se.m+=ze}function Bs(Z){for(var se=0,ze=0,Xe=Z.children,Qe=Xe.length,ot;--Qe>=0;)ot=Xe[Qe],ot.z+=se,ot.m+=se,se+=ot.s+(ze+=ot.c)}function At(Z,se,ze){return Z.a.parent===se.parent?Z.a:ze}e.layout.cluster=function(){var Z=e.layout.hierarchy().sort(null).value(null),se=Ms,ze=[1,1],Xe=!1;function Qe(ot,jt){var _t=Z.call(this,ot,jt),cr=_t[0],Cr,zr=0;Oo(cr,function(vi){var zi=vi.children;zi&&zi.length?(vi.x=wr(zi),vi.y=Gt(zi)):(vi.x=Cr?zr+=se(vi,Cr):0,vi.y=0,Cr=vi)});var ui=mr(cr),$r=Or(cr),Oi=ui.x-se(ui,$r)/2,fn=$r.x+se($r,ui)/2;return Oo(cr,Xe?function(vi){vi.x=(vi.x-cr.x)*ze[0],vi.y=(cr.y-vi.y)*ze[1]}:function(vi){vi.x=(vi.x-Oi)/(fn-Oi)*ze[0],vi.y=(1-(cr.y?vi.y/cr.y:1))*ze[1]}),_t}return Qe.separation=function(ot){return arguments.length?(se=ot,Qe):se},Qe.size=function(ot){return arguments.length?(Xe=(ze=ot)==null,Qe):Xe?null:ze},Qe.nodeSize=function(ot){return arguments.length?(Xe=(ze=ot)!=null,Qe):Xe?ze:null},Ea(Qe,Z)};function Gt(Z){return 1+e.max(Z,function(se){return se.y})}function wr(Z){return Z.reduce(function(se,ze){return se+ze.x},0)/Z.length}function mr(Z){var se=Z.children;return se&&se.length?mr(se[0]):Z}function Or(Z){var se=Z.children,ze;return se&&(ze=se.length)?Or(se[ze-1]):Z}e.layout.treemap=function(){var Z=e.layout.hierarchy(),se=Math.round,ze=[1,1],Xe=null,Qe=gi,ot=!1,jt,_t="squarify",cr=.5*(1+Math.sqrt(5));function Cr(vi,zi){for(var Xi=-1,pn=vi.length,sn,bi;++Xi0;)pn.push(bi=sn[js-1]),pn.area+=bi.area,_t!=="squarify"||(no=$r(pn,Xo))<=xo?(sn.pop(),xo=no):(pn.area-=pn.pop().area,Oi(pn,Xo,Xi,!1),Xo=Math.min(Xi.dx,Xi.dy),pn.length=pn.area=0,xo=1/0);pn.length&&(Oi(pn,Xo,Xi,!0),pn.length=pn.area=0),zi.forEach(zr)}}function ui(vi){var zi=vi.children;if(zi&&zi.length){var Xi=Qe(vi),pn=zi.slice(),sn,bi=[];for(Cr(pn,Xi.dx*Xi.dy/vi.value),bi.area=0;sn=pn.pop();)bi.push(sn),bi.area+=sn.area,sn.z!=null&&(Oi(bi,sn.z?Xi.dx:Xi.dy,Xi,!pn.length),bi.length=bi.area=0);zi.forEach(ui)}}function $r(vi,zi){for(var Xi=vi.area,pn,sn=0,bi=1/0,xo=-1,no=vi.length;++xosn&&(sn=pn));return Xi*=Xi,zi*=zi,Xi?Math.max(zi*sn*cr/Xi,Xi/(zi*bi*cr)):1/0}function Oi(vi,zi,Xi,pn){var sn=-1,bi=vi.length,xo=Xi.x,no=Xi.y,Xo=zi?se(vi.area/zi):0,js;if(zi==Xi.dx){for((pn||Xo>Xi.dy)&&(Xo=Xi.dy);++snXi.dx)&&(Xo=Xi.dx);++sn1);return Z+se*Xe*Math.sqrt(-2*Math.log(ot)/ot)}},logNormal:function(){var Z=e.random.normal.apply(e,arguments);return function(){return Math.exp(Z())}},bates:function(Z){var se=e.random.irwinHall(Z);return function(){return se()/Z}},irwinHall:function(Z){return function(){for(var se=0,ze=0;ze2?Si:Fn,Cr=Xe?Ds:us;return Qe=cr(Z,se,Cr,ze),ot=cr(se,Z,Cr,Eo),_t}function _t(cr){return Qe(cr)}return _t.invert=function(cr){return ot(cr)},_t.domain=function(cr){return arguments.length?(Z=cr.map(Number),jt()):Z},_t.range=function(cr){return arguments.length?(se=cr,jt()):se},_t.rangeRound=function(cr){return _t.range(cr).interpolate(To)},_t.clamp=function(cr){return arguments.length?(Xe=cr,jt()):Xe},_t.interpolate=function(cr){return arguments.length?(ze=cr,jt()):ze},_t.ticks=function(cr){return pa(Z,cr)},_t.tickFormat=function(cr,Cr){return d3_scale_linearTickFormat(Z,cr,Cr)},_t.nice=function(cr){return ya(Z,cr),jt()},_t.copy=function(){return Gn(Z,se,ze,Xe)},jt()}function ta(Z,se){return e.rebind(Z,se,"range","rangeRound","interpolate","clamp")}function ya(Z,se){return Pi(Z,hi(ia(Z,se)[2])),Pi(Z,hi(ia(Z,se)[2])),Z}function ia(Z,se){se==null&&(se=10);var ze=ki(Z),Xe=ze[1]-ze[0],Qe=Math.pow(10,Math.floor(Math.log(Xe/se)/Math.LN10)),ot=se/Xe*Qe;return ot<=.15?Qe*=10:ot<=.35?Qe*=5:ot<=.75&&(Qe*=2),ze[0]=Math.ceil(ze[0]/Qe)*Qe,ze[1]=Math.floor(ze[1]/Qe)*Qe+Qe*.5,ze[2]=Qe,ze}function pa(Z,se){return e.range.apply(e,ia(Z,se))}var va={s:1,g:1,p:1,r:1,e:1};function zn(Z){return-Math.floor(Math.log(Z)/Math.LN10+.01)}function is(Z,se){var ze=zn(se[2]);return Z in va?Math.abs(ze-zn(Math.max(v(se[0]),v(se[1]))))+ +(Z!=="e"):ze-(Z==="%")*2}e.scale.log=function(){return Cs(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Cs(Z,se,ze,Xe){function Qe(_t){return(ze?Math.log(_t<0?0:_t):-Math.log(_t>0?0:-_t))/Math.log(se)}function ot(_t){return ze?Math.pow(se,_t):-Math.pow(se,-_t)}function jt(_t){return Z(Qe(_t))}return jt.invert=function(_t){return ot(Z.invert(_t))},jt.domain=function(_t){return arguments.length?(ze=_t[0]>=0,Z.domain((Xe=_t.map(Number)).map(Qe)),jt):Xe},jt.base=function(_t){return arguments.length?(se=+_t,Z.domain(Xe.map(Qe)),jt):se},jt.nice=function(){var _t=Pi(Xe.map(Qe),ze?Math:Ks);return Z.domain(_t),Xe=_t.map(ot),jt},jt.ticks=function(){var _t=ki(Xe),cr=[],Cr=_t[0],zr=_t[1],ui=Math.floor(Qe(Cr)),$r=Math.ceil(Qe(zr)),Oi=se%1?2:se;if(isFinite($r-ui)){if(ze){for(;ui<$r;ui++)for(var fn=1;fn0;fn--)cr.push(ot(ui)*fn);for(ui=0;cr[ui]zr;$r--);cr=cr.slice(ui,$r)}return cr},jt.copy=function(){return Cs(Z.copy(),se,ze,Xe)},ta(jt,Z)}var Ks={floor:function(Z){return-Math.ceil(-Z)},ceil:function(Z){return-Math.floor(-Z)}};e.scale.pow=function(){return dl(e.scale.linear(),1,[0,1])};function dl(Z,se,ze){var Xe=xl(se),Qe=xl(1/se);function ot(jt){return Z(Xe(jt))}return ot.invert=function(jt){return Qe(Z.invert(jt))},ot.domain=function(jt){return arguments.length?(Z.domain((ze=jt.map(Number)).map(Xe)),ot):ze},ot.ticks=function(jt){return pa(ze,jt)},ot.tickFormat=function(jt,_t){return d3_scale_linearTickFormat(ze,jt,_t)},ot.nice=function(jt){return ot.domain(ya(ze,jt))},ot.exponent=function(jt){return arguments.length?(Xe=xl(se=jt),Qe=xl(1/se),Z.domain(ze.map(Xe)),ot):se},ot.copy=function(){return dl(Z.copy(),se,ze)},ta(ot,Z)}function xl(Z){return function(se){return se<0?-Math.pow(-se,Z):Math.pow(se,Z)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Ol([],{t:"range",a:[[]]})};function Ol(Z,se){var ze,Xe,Qe;function ot(_t){return Xe[((ze.get(_t)||(se.t==="range"?ze.set(_t,Z.push(_t)):NaN))-1)%Xe.length]}function jt(_t,cr){return e.range(Z.length).map(function(Cr){return _t+cr*Cr})}return ot.domain=function(_t){if(!arguments.length)return Z;Z=[],ze=new T;for(var cr=-1,Cr=_t.length,zr;++cr0?ze[ot-1]:Z[0],ot$r?0:1;if(zr=ge)return cr(zr,fn)+(Cr?cr(Cr,1-fn):"")+"Z";var vi,zi,Xi,pn,sn=0,bi=0,xo,no,Xo,js,El,Pl,pu,Il,fu=[];if((pn=(+jt.apply(this,arguments)||0)/2)&&(Xi=Xe===ll?Math.sqrt(Cr*Cr+zr*zr):+Xe.apply(this,arguments),fn||(bi*=-1),zr&&(bi=Hr(Xi/zr*Math.sin(pn))),Cr&&(sn=Hr(Xi/Cr*Math.sin(pn)))),zr){xo=zr*Math.cos(ui+bi),no=zr*Math.sin(ui+bi),Xo=zr*Math.cos($r-bi),js=zr*Math.sin($r-bi);var Zu=Math.abs($r-ui-2*bi)<=De?0:1;if(bi&&Ll(xo,no,Xo,js)===fn^Zu){var Gu=(ui+$r)/2;xo=zr*Math.cos(Gu),no=zr*Math.sin(Gu),Xo=js=null}}else xo=no=0;if(Cr){El=Cr*Math.cos($r-sn),Pl=Cr*Math.sin($r-sn),pu=Cr*Math.cos(ui+sn),Il=Cr*Math.sin(ui+sn);var rf=Math.abs(ui-$r+2*sn)<=De?0:1;if(sn&&Ll(El,Pl,pu,Il)===1-fn^rf){var ds=(ui+$r)/2;El=Cr*Math.cos(ds),Pl=Cr*Math.sin(ds),pu=Il=null}}else El=Pl=0;if(Oi>Oe&&(vi=Math.min(Math.abs(zr-Cr)/2,+ze.apply(this,arguments)))>.001){zi=Cr0?0:1}function ms(Z,se,ze,Xe,Qe){var ot=Z[0]-se[0],jt=Z[1]-se[1],_t=(Qe?Xe:-Xe)/Math.sqrt(ot*ot+jt*jt),cr=_t*jt,Cr=-_t*ot,zr=Z[0]+cr,ui=Z[1]+Cr,$r=se[0]+cr,Oi=se[1]+Cr,fn=(zr+$r)/2,vi=(ui+Oi)/2,zi=$r-zr,Xi=Oi-ui,pn=zi*zi+Xi*Xi,sn=ze-Xe,bi=zr*Oi-$r*ui,xo=(Xi<0?-1:1)*Math.sqrt(Math.max(0,sn*sn*pn-bi*bi)),no=(bi*Xi-zi*xo)/pn,Xo=(-bi*zi-Xi*xo)/pn,js=(bi*Xi+zi*xo)/pn,El=(-bi*zi+Xi*xo)/pn,Pl=no-fn,pu=Xo-vi,Il=js-fn,fu=El-vi;return Pl*Pl+pu*pu>Il*Il+fu*fu&&(no=js,Xo=El),[[no-cr,Xo-Cr],[no*ze/sn,Xo*ze/sn]]}function Os(){return!0}function Xl(Z){var se=Kr,ze=Ia,Xe=Os,Qe=Ul,ot=Qe.key,jt=.7;function _t(cr){var Cr=[],zr=[],ui=-1,$r=cr.length,Oi,fn=gr(se),vi=gr(ze);function zi(){Cr.push("M",Qe(Z(zr),jt))}for(;++ui<$r;)Xe.call(this,Oi=cr[ui],ui)?zr.push([+fn.call(this,Oi,ui),+vi.call(this,Oi,ui)]):zr.length&&(zi(),zr=[]);return zr.length&&zi(),Cr.length?Cr.join(""):null}return _t.x=function(cr){return arguments.length?(se=cr,_t):se},_t.y=function(cr){return arguments.length?(ze=cr,_t):ze},_t.defined=function(cr){return arguments.length?(Xe=cr,_t):Xe},_t.interpolate=function(cr){return arguments.length?(typeof cr=="function"?ot=Qe=cr:ot=(Qe=Gl.get(cr)||Ul).key,_t):ot},_t.tension=function(cr){return arguments.length?(jt=cr,_t):jt},_t}e.svg.line=function(){return Xl(G)};var Gl=e.map({linear:Ul,"linear-closed":le,step:w,"step-before":q,"step-after":Q,basis:Ft,"basis-open":ir,"basis-closed":or,bundle:kr,cardinal:Ge,"cardinal-open":ee,"cardinal-closed":ue,monotone:Ht});Gl.forEach(function(Z,se){se.key=Z,se.closed=/-closed$/.test(Z)});function Ul(Z){return Z.length>1?Z.join("L"):Z+"Z"}function le(Z){return Z.join("L")+"Z"}function w(Z){for(var se=0,ze=Z.length,Xe=Z[0],Qe=[Xe[0],",",Xe[1]];++se1&&Qe.push("H",Xe[0]),Qe.join("")}function q(Z){for(var se=0,ze=Z.length,Xe=Z[0],Qe=[Xe[0],",",Xe[1]];++se1){_t=se[1],ot=Z[cr],cr++,Xe+="C"+(Qe[0]+jt[0])+","+(Qe[1]+jt[1])+","+(ot[0]-_t[0])+","+(ot[1]-_t[1])+","+ot[0]+","+ot[1];for(var Cr=2;Cr9&&(ot=ze*3/Math.sqrt(ot),jt[_t]=ot*Xe,jt[_t+1]=ot*Qe));for(_t=-1;++_t<=cr;)ot=(Z[Math.min(cr,_t+1)][0]-Z[Math.max(0,_t-1)][0])/(6*(1+jt[_t]*jt[_t])),se.push([ot||0,jt[_t]*ot||0]);return se}function Ht(Z){return Z.length<3?Ul(Z):Z[0]+et(Z,pt(Z))}e.svg.line.radial=function(){var Z=Xl(nr);return Z.radius=Z.x,delete Z.x,Z.angle=Z.y,delete Z.y,Z};function nr(Z){for(var se,ze=-1,Xe=Z.length,Qe,ot;++zeDe)+",1 "+ui}function Cr(zr,ui,$r,Oi){return"Q 0,0 "+Oi}return ot.radius=function(zr){return arguments.length?(ze=gr(zr),ot):ze},ot.source=function(zr){return arguments.length?(Z=gr(zr),ot):Z},ot.target=function(zr){return arguments.length?(se=gr(zr),ot):se},ot.startAngle=function(zr){return arguments.length?(Xe=gr(zr),ot):Xe},ot.endAngle=function(zr){return arguments.length?(Qe=gr(zr),ot):Qe},ot};function ri(Z){return Z.radius}e.svg.diagonal=function(){var Z=Ar,se=Rr,ze=si;function Xe(Qe,ot){var jt=Z.call(this,Qe,ot),_t=se.call(this,Qe,ot),cr=(jt.y+_t.y)/2,Cr=[jt,{x:jt.x,y:cr},{x:_t.x,y:cr},_t];return Cr=Cr.map(ze),"M"+Cr[0]+"C"+Cr[1]+" "+Cr[2]+" "+Cr[3]}return Xe.source=function(Qe){return arguments.length?(Z=gr(Qe),Xe):Z},Xe.target=function(Qe){return arguments.length?(se=gr(Qe),Xe):se},Xe.projection=function(Qe){return arguments.length?(ze=Qe,Xe):ze},Xe};function si(Z){return[Z.x,Z.y]}e.svg.diagonal.radial=function(){var Z=e.svg.diagonal(),se=si,ze=Z.projection;return Z.projection=function(Xe){return arguments.length?ze(Mi(se=Xe)):se},Z};function Mi(Z){return function(){var se=Z.apply(this,arguments),ze=se[0],Xe=se[1]-fe;return[ze*Math.cos(Xe),ze*Math.sin(Xe)]}}e.svg.symbol=function(){var Z=Zn,se=hn;function ze(Xe,Qe){return(Ua.get(Z.call(this,Xe,Qe))||Yn)(se.call(this,Xe,Qe))}return ze.type=function(Xe){return arguments.length?(Z=gr(Xe),ze):Z},ze.size=function(Xe){return arguments.length?(se=gr(Xe),ze):se},ze};function hn(){return 64}function Zn(){return"circle"}function Yn(Z){var se=Math.sqrt(Z/De);return"M0,"+se+"A"+se+","+se+" 0 1,1 0,"+-se+"A"+se+","+se+" 0 1,1 0,"+se+"Z"}var Ua=e.map({circle:Yn,cross:function(Z){var se=Math.sqrt(Z/5)/2;return"M"+-3*se+","+-se+"H"+-se+"V"+-3*se+"H"+se+"V"+-se+"H"+3*se+"V"+se+"H"+se+"V"+3*se+"H"+-se+"V"+se+"H"+-3*se+"Z"},diamond:function(Z){var se=Math.sqrt(Z/(2*vl)),ze=se*vl;return"M0,"+-se+"L"+ze+",0 0,"+se+" "+-ze+",0Z"},square:function(Z){var se=Math.sqrt(Z)/2;return"M"+-se+","+-se+"L"+se+","+-se+" "+se+","+se+" "+-se+","+se+"Z"},"triangle-down":function(Z){var se=Math.sqrt(Z/Fo),ze=se*Fo/2;return"M0,"+ze+"L"+se+","+-ze+" "+-se+","+-ze+"Z"},"triangle-up":function(Z){var se=Math.sqrt(Z/Fo),ze=se*Fo/2;return"M0,"+-ze+"L"+se+","+ze+" "+-se+","+ze+"Z"}});e.svg.symbolTypes=Ua.keys();var Fo=Math.sqrt(3),vl=Math.tan(30*de);Fe.transition=function(Z){for(var se=ql||++Yl,ze=tu(Z),Xe=[],Qe,ot,jt=ou||{time:Date.now(),ease:yo,delay:0,duration:250},_t=-1,cr=this.length;++_t0;)ui[--pn].call(Z,Xi);if(zi>=1)return jt.event&&jt.event.end.call(Z,Z.__data__,se),--ot.count?delete ot[Xe]:delete Z[ze],1}jt||(_t=Qe.time,cr=ma($r,0,_t),jt=ot[Xe]={tween:new T,time:_t,timer:cr,delay:Qe.delay,duration:Qe.duration,ease:Qe.ease,index:se},Qe=null,++ot.count)}e.svg.axis=function(){var Z=e.scale.linear(),se=Qu,ze=6,Xe=6,Qe=3,ot=[10],jt=null,_t;function cr(Cr){Cr.each(function(){var zr=e.select(this),ui=this.__chart__||Z,$r=this.__chart__=Z.copy(),Oi=jt==null?$r.ticks?$r.ticks.apply($r,ot):$r.domain():jt,fn=_t==null?$r.tickFormat?$r.tickFormat.apply($r,ot):G:_t,vi=zr.selectAll(".tick").data(Oi,$r),zi=vi.enter().insert("g",".domain").attr("class","tick").style("opacity",Oe),Xi=e.transition(vi.exit()).style("opacity",Oe).remove(),pn=e.transition(vi.order()).style("opacity",1),sn=Math.max(ze,0)+Qe,bi,xo=Ji($r),no=zr.selectAll(".domain").data([0]),Xo=(no.enter().append("path").attr("class","domain"),e.transition(no));zi.append("line"),zi.append("text");var js=zi.select("line"),El=pn.select("line"),Pl=vi.select("text").text(fn),pu=zi.select("text"),Il=pn.select("text"),fu=se==="top"||se==="left"?-1:1,Zu,Gu,rf,ds;if(se==="bottom"||se==="top"?(bi=ju,Zu="x",rf="y",Gu="x2",ds="y2",Pl.attr("dy",fu<0?"0em":".71em").style("text-anchor","middle"),Xo.attr("d","M"+xo[0]+","+fu*Xe+"V0H"+xo[1]+"V"+fu*Xe)):(bi=Xu,Zu="y",rf="x",Gu="y2",ds="x2",Pl.attr("dy",".32em").style("text-anchor",fu<0?"end":"start"),Xo.attr("d","M"+fu*Xe+","+xo[0]+"H0V"+xo[1]+"H"+fu*Xe)),js.attr(ds,fu*ze),pu.attr(rf,fu*sn),El.attr(Gu,0).attr(ds,fu*ze),Il.attr(Zu,0).attr(rf,fu*sn),$r.rangeBand){var Wl=$r,Au=Wl.rangeBand()/2;ui=$r=function(Tu){return Wl(Tu)+Au}}else ui.rangeBand?ui=$r:Xi.call(bi,$r,ui);zi.call(bi,ui,$r),pn.call(bi,$r,$r)})}return cr.scale=function(Cr){return arguments.length?(Z=Cr,cr):Z},cr.orient=function(Cr){return arguments.length?(se=Cr in Ju?Cr+"":Qu,cr):se},cr.ticks=function(){return arguments.length?(ot=r(arguments),cr):ot},cr.tickValues=function(Cr){return arguments.length?(jt=Cr,cr):jt},cr.tickFormat=function(Cr){return arguments.length?(_t=Cr,cr):_t},cr.tickSize=function(Cr){var zr=arguments.length;return zr?(ze=+Cr,Xe=+arguments[zr-1],cr):ze},cr.innerTickSize=function(Cr){return arguments.length?(ze=+Cr,cr):ze},cr.outerTickSize=function(Cr){return arguments.length?(Xe=+Cr,cr):Xe},cr.tickPadding=function(Cr){return arguments.length?(Qe=+Cr,cr):Qe},cr.tickSubdivide=function(){return arguments.length&&cr},cr};var Qu="bottom",Ju={top:1,right:1,bottom:1,left:1};function ju(Z,se,ze){Z.attr("transform",function(Xe){var Qe=se(Xe);return"translate("+(isFinite(Qe)?Qe:ze(Xe))+",0)"})}function Xu(Z,se,ze){Z.attr("transform",function(Xe){var Qe=se(Xe);return"translate(0,"+(isFinite(Qe)?Qe:ze(Xe))+")"})}e.svg.brush=function(){var Z=Le(zr,"brushstart","brush","brushend"),se=null,ze=null,Xe=[0,0],Qe=[0,0],ot,jt,_t=!0,cr=!0,Cr=xf[0];function zr(vi){vi.each(function(){var zi=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",fn).on("touchstart.brush",fn),Xi=zi.selectAll(".background").data([0]);Xi.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),zi.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var pn=zi.selectAll(".resize").data(Cr,G);pn.exit().remove(),pn.enter().append("g").attr("class",function(no){return"resize "+no}).style("cursor",function(no){return lf[no]}).append("rect").attr("x",function(no){return/[ew]$/.test(no)?-3:null}).attr("y",function(no){return/^[ns]/.test(no)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),pn.style("display",zr.empty()?"none":null);var sn=e.transition(zi),bi=e.transition(Xi),xo;se&&(xo=Ji(se),bi.attr("x",xo[0]).attr("width",xo[1]-xo[0]),$r(sn)),ze&&(xo=Ji(ze),bi.attr("y",xo[0]).attr("height",xo[1]-xo[0]),Oi(sn)),ui(sn)})}zr.event=function(vi){vi.each(function(){var zi=Z.of(this,arguments),Xi={x:Xe,y:Qe,i:ot,j:jt},pn=this.__chart__||Xi;this.__chart__=Xi,ql?e.select(this).transition().each("start.brush",function(){ot=pn.i,jt=pn.j,Xe=pn.x,Qe=pn.y,zi({type:"brushstart"})}).tween("brush:brush",function(){var sn=Ja(Xe,Xi.x),bi=Ja(Qe,Xi.y);return ot=jt=null,function(xo){Xe=Xi.x=sn(xo),Qe=Xi.y=bi(xo),zi({type:"brush",mode:"resize"})}}).each("end.brush",function(){ot=Xi.i,jt=Xi.j,zi({type:"brush",mode:"resize"}),zi({type:"brushend"})}):(zi({type:"brushstart"}),zi({type:"brush",mode:"resize"}),zi({type:"brushend"}))})};function ui(vi){vi.selectAll(".resize").attr("transform",function(zi){return"translate("+Xe[+/e$/.test(zi)]+","+Qe[+/^s/.test(zi)]+")"})}function $r(vi){vi.select(".extent").attr("x",Xe[0]),vi.selectAll(".extent,.n>rect,.s>rect").attr("width",Xe[1]-Xe[0])}function Oi(vi){vi.select(".extent").attr("y",Qe[0]),vi.selectAll(".extent,.e>rect,.w>rect").attr("height",Qe[1]-Qe[0])}function fn(){var vi=this,zi=e.select(e.event.target),Xi=Z.of(vi,arguments),pn=e.select(vi),sn=zi.datum(),bi=!/^(n|s)$/.test(sn)&&se,xo=!/^(e|w)$/.test(sn)&&ze,no=zi.classed("extent"),Xo=br(vi),js,El=e.mouse(vi),Pl,pu=e.select(a(vi)).on("keydown.brush",Zu).on("keyup.brush",Gu);if(e.event.changedTouches?pu.on("touchmove.brush",rf).on("touchend.brush",Wl):pu.on("mousemove.brush",rf).on("mouseup.brush",Wl),pn.interrupt().selectAll("*").interrupt(),no)El[0]=Xe[0]-El[0],El[1]=Qe[0]-El[1];else if(sn){var Il=+/w$/.test(sn),fu=+/^n/.test(sn);Pl=[Xe[1-Il]-El[0],Qe[1-fu]-El[1]],El[0]=Xe[Il],El[1]=Qe[fu]}else e.event.altKey&&(js=El.slice());pn.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",zi.style("cursor")),Xi({type:"brushstart"}),rf();function Zu(){e.event.keyCode==32&&(no||(js=null,El[0]-=Xe[1],El[1]-=Qe[1],no=2),be())}function Gu(){e.event.keyCode==32&&no==2&&(El[0]+=Xe[1],El[1]+=Qe[1],no=0,be())}function rf(){var Au=e.mouse(vi),Tu=!1;Pl&&(Au[0]+=Pl[0],Au[1]+=Pl[1]),no||(e.event.altKey?(js||(js=[(Xe[0]+Xe[1])/2,(Qe[0]+Qe[1])/2]),El[0]=Xe[+(Au[0]{(function(e,t){typeof lL=="object"&&typeof Mee!="undefined"?t(lL):(e=e||self,t(e.d3=e.d3||{}))})(lL,function(e){"use strict";var t=new Date,r=new Date;function n(Ae,at,wt,vt){function st(Ue){return Ae(Ue=arguments.length===0?new Date:new Date(+Ue)),Ue}return st.floor=function(Ue){return Ae(Ue=new Date(+Ue)),Ue},st.ceil=function(Ue){return Ae(Ue=new Date(Ue-1)),at(Ue,1),Ae(Ue),Ue},st.round=function(Ue){var rt=st(Ue),$e=st.ceil(Ue);return Ue-rt<$e-Ue?rt:$e},st.offset=function(Ue,rt){return at(Ue=new Date(+Ue),rt==null?1:Math.floor(rt)),Ue},st.range=function(Ue,rt,$e){var zt=[],Yt;if(Ue=st.ceil(Ue),$e=$e==null?1:Math.floor($e),!(Ue0))return zt;do zt.push(Yt=new Date(+Ue)),at(Ue,$e),Ae(Ue);while(Yt=rt)for(;Ae(rt),!Ue(rt);)rt.setTime(rt-1)},function(rt,$e){if(rt>=rt)if($e<0)for(;++$e<=0;)for(;at(rt,-1),!Ue(rt););else for(;--$e>=0;)for(;at(rt,1),!Ue(rt););})},wt&&(st.count=function(Ue,rt){return t.setTime(+Ue),r.setTime(+rt),Ae(t),Ae(r),Math.floor(wt(t,r))},st.every=function(Ue){return Ue=Math.floor(Ue),!isFinite(Ue)||!(Ue>0)?null:Ue>1?st.filter(vt?function(rt){return vt(rt)%Ue===0}:function(rt){return st.count(0,rt)%Ue===0}):st}),st}var i=n(function(){},function(Ae,at){Ae.setTime(+Ae+at)},function(Ae,at){return at-Ae});i.every=function(Ae){return Ae=Math.floor(Ae),!isFinite(Ae)||!(Ae>0)?null:Ae>1?n(function(at){at.setTime(Math.floor(at/Ae)*Ae)},function(at,wt){at.setTime(+at+wt*Ae)},function(at,wt){return(wt-at)/Ae}):i};var a=i.range,o=1e3,s=6e4,u=36e5,l=864e5,f=6048e5,c=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds())},function(Ae,at){Ae.setTime(+Ae+at*o)},function(Ae,at){return(at-Ae)/o},function(Ae){return Ae.getUTCSeconds()}),h=c.range,d=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds()-Ae.getSeconds()*o)},function(Ae,at){Ae.setTime(+Ae+at*s)},function(Ae,at){return(at-Ae)/s},function(Ae){return Ae.getMinutes()}),p=d.range,x=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds()-Ae.getSeconds()*o-Ae.getMinutes()*s)},function(Ae,at){Ae.setTime(+Ae+at*u)},function(Ae,at){return(at-Ae)/u},function(Ae){return Ae.getHours()}),b=x.range,v=n(function(Ae){Ae.setHours(0,0,0,0)},function(Ae,at){Ae.setDate(Ae.getDate()+at)},function(Ae,at){return(at-Ae-(at.getTimezoneOffset()-Ae.getTimezoneOffset())*s)/l},function(Ae){return Ae.getDate()-1}),k=v.range;function E(Ae){return n(function(at){at.setDate(at.getDate()-(at.getDay()+7-Ae)%7),at.setHours(0,0,0,0)},function(at,wt){at.setDate(at.getDate()+wt*7)},function(at,wt){return(wt-at-(wt.getTimezoneOffset()-at.getTimezoneOffset())*s)/f})}var T=E(0),L=E(1),_=E(2),C=E(3),S=E(4),m=E(5),P=E(6),A=T.range,B=L.range,F=_.range,U=C.range,G=S.range,j=m.range,H=P.range,N=n(function(Ae){Ae.setDate(1),Ae.setHours(0,0,0,0)},function(Ae,at){Ae.setMonth(Ae.getMonth()+at)},function(Ae,at){return at.getMonth()-Ae.getMonth()+(at.getFullYear()-Ae.getFullYear())*12},function(Ae){return Ae.getMonth()}),W=N.range,re=n(function(Ae){Ae.setMonth(0,1),Ae.setHours(0,0,0,0)},function(Ae,at){Ae.setFullYear(Ae.getFullYear()+at)},function(Ae,at){return at.getFullYear()-Ae.getFullYear()},function(Ae){return Ae.getFullYear()});re.every=function(Ae){return!isFinite(Ae=Math.floor(Ae))||!(Ae>0)?null:n(function(at){at.setFullYear(Math.floor(at.getFullYear()/Ae)*Ae),at.setMonth(0,1),at.setHours(0,0,0,0)},function(at,wt){at.setFullYear(at.getFullYear()+wt*Ae)})};var ae=re.range,be=n(function(Ae){Ae.setUTCSeconds(0,0)},function(Ae,at){Ae.setTime(+Ae+at*s)},function(Ae,at){return(at-Ae)/s},function(Ae){return Ae.getUTCMinutes()}),Ce=be.range,Le=n(function(Ae){Ae.setUTCMinutes(0,0,0)},function(Ae,at){Ae.setTime(+Ae+at*u)},function(Ae,at){return(at-Ae)/u},function(Ae){return Ae.getUTCHours()}),pe=Le.range,te=n(function(Ae){Ae.setUTCHours(0,0,0,0)},function(Ae,at){Ae.setUTCDate(Ae.getUTCDate()+at)},function(Ae,at){return(at-Ae)/l},function(Ae){return Ae.getUTCDate()-1}),ke=te.range;function Ee(Ae){return n(function(at){at.setUTCDate(at.getUTCDate()-(at.getUTCDay()+7-Ae)%7),at.setUTCHours(0,0,0,0)},function(at,wt){at.setUTCDate(at.getUTCDate()+wt*7)},function(at,wt){return(wt-at)/f})}var Me=Ee(0),Ne=Ee(1),Fe=Ee(2),ye=Ee(3),Ve=Ee(4),ce=Ee(5),Je=Ee(6),nt=Me.range,gt=Ne.range,Nt=Fe.range,it=ye.range,Ye=Ve.range,kt=ce.range,Tt=Je.range,St=n(function(Ae){Ae.setUTCDate(1),Ae.setUTCHours(0,0,0,0)},function(Ae,at){Ae.setUTCMonth(Ae.getUTCMonth()+at)},function(Ae,at){return at.getUTCMonth()-Ae.getUTCMonth()+(at.getUTCFullYear()-Ae.getUTCFullYear())*12},function(Ae){return Ae.getUTCMonth()}),Dt=St.range,Zt=n(function(Ae){Ae.setUTCMonth(0,1),Ae.setUTCHours(0,0,0,0)},function(Ae,at){Ae.setUTCFullYear(Ae.getUTCFullYear()+at)},function(Ae,at){return at.getUTCFullYear()-Ae.getUTCFullYear()},function(Ae){return Ae.getUTCFullYear()});Zt.every=function(Ae){return!isFinite(Ae=Math.floor(Ae))||!(Ae>0)?null:n(function(at){at.setUTCFullYear(Math.floor(at.getUTCFullYear()/Ae)*Ae),at.setUTCMonth(0,1),at.setUTCHours(0,0,0,0)},function(at,wt){at.setUTCFullYear(at.getUTCFullYear()+wt*Ae)})};var Et=Zt.range;e.timeDay=v,e.timeDays=k,e.timeFriday=m,e.timeFridays=j,e.timeHour=x,e.timeHours=b,e.timeInterval=n,e.timeMillisecond=i,e.timeMilliseconds=a,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=L,e.timeMondays=B,e.timeMonth=N,e.timeMonths=W,e.timeSaturday=P,e.timeSaturdays=H,e.timeSecond=c,e.timeSeconds=h,e.timeSunday=T,e.timeSundays=A,e.timeThursday=S,e.timeThursdays=G,e.timeTuesday=_,e.timeTuesdays=F,e.timeWednesday=C,e.timeWednesdays=U,e.timeWeek=T,e.timeWeeks=A,e.timeYear=re,e.timeYears=ae,e.utcDay=te,e.utcDays=ke,e.utcFriday=ce,e.utcFridays=kt,e.utcHour=Le,e.utcHours=pe,e.utcMillisecond=i,e.utcMilliseconds=a,e.utcMinute=be,e.utcMinutes=Ce,e.utcMonday=Ne,e.utcMondays=gt,e.utcMonth=St,e.utcMonths=Dt,e.utcSaturday=Je,e.utcSaturdays=Tt,e.utcSecond=c,e.utcSeconds=h,e.utcSunday=Me,e.utcSundays=nt,e.utcThursday=Ve,e.utcThursdays=Ye,e.utcTuesday=Fe,e.utcTuesdays=Nt,e.utcWednesday=ye,e.utcWednesdays=it,e.utcWeek=Me,e.utcWeeks=nt,e.utcYear=Zt,e.utcYears=Et,Object.defineProperty(e,"__esModule",{value:!0})})});var e3=Te((uL,Eee)=>{(function(e,t){typeof uL=="object"&&typeof Eee!="undefined"?t(uL,M9()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(uL,function(e,t){"use strict";function r(xe){if(0<=xe.y&&xe.y<100){var Oe=new Date(-1,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L);return Oe.setFullYear(xe.y),Oe}return new Date(xe.y,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L)}function n(xe){if(0<=xe.y&&xe.y<100){var Oe=new Date(Date.UTC(-1,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L));return Oe.setUTCFullYear(xe.y),Oe}return new Date(Date.UTC(xe.y,xe.m,xe.d,xe.H,xe.M,xe.S,xe.L))}function i(xe,Oe,Re){return{y:xe,m:Oe,d:Re,H:0,M:0,S:0,L:0}}function a(xe){var Oe=xe.dateTime,Re=xe.date,De=xe.time,ct=xe.periods,ge=xe.days,fe=xe.shortDays,de=xe.months,dt=xe.shortMonths,It=h(ct),Pt=d(ct),rr=h(ge),Hr=d(ge),Dr=h(fe),Mr=d(fe),Fr=h(de),di=d(de),Di=h(dt),Ii=d(dt),Ci={a:jr,A:yi,b:Ei,B:Vi,c:null,d:N,e:N,f:Ce,H:W,I:re,j:ae,L:be,m:Le,M:pe,p:ti,q:en,Q:rt,s:$e,S:te,u:ke,U:Ee,V:Me,w:Ne,W:Fe,x:null,X:null,y:ye,Y:Ve,Z:ce,"%":Ue},nn={a:Yr,A:oi,b:Bi,B:an,c:null,d:Je,e:Je,f:Ye,H:nt,I:gt,j:Nt,L:it,m:kt,M:Tt,p:rn,q:Fi,Q:rt,s:$e,S:St,u:Dt,U:Zt,V:Et,w:Ae,W:at,x:null,X:null,y:wt,Y:vt,Z:st,"%":Ue},ii={a:Vt,A:Wt,b:_r,B:Lr,c:Ur,d:S,e:S,f:U,H:P,I:P,j:m,L:F,m:C,M:A,p:yt,q:_,Q:j,s:H,S:B,u:x,U:b,V:v,w:p,W:k,x:Ir,X:Gr,y:T,Y:E,Z:L,"%":G};Ci.x=wi(Re,Ci),Ci.X=wi(De,Ci),Ci.c=wi(Oe,Ci),nn.x=wi(Re,nn),nn.X=wi(De,nn),nn.c=wi(Oe,nn);function wi(Ri,xn){return function(xi){var Xr=[],ft=-1,tr=0,pr=Ri.length,gr,Zr,Ai;for(xi instanceof Date||(xi=new Date(+xi));++ft53)return null;"w"in Xr||(Xr.w=1),"Z"in Xr?(tr=n(i(Xr.y,0,1)),pr=tr.getUTCDay(),tr=pr>4||pr===0?t.utcMonday.ceil(tr):t.utcMonday(tr),tr=t.utcDay.offset(tr,(Xr.V-1)*7),Xr.y=tr.getUTCFullYear(),Xr.m=tr.getUTCMonth(),Xr.d=tr.getUTCDate()+(Xr.w+6)%7):(tr=r(i(Xr.y,0,1)),pr=tr.getDay(),tr=pr>4||pr===0?t.timeMonday.ceil(tr):t.timeMonday(tr),tr=t.timeDay.offset(tr,(Xr.V-1)*7),Xr.y=tr.getFullYear(),Xr.m=tr.getMonth(),Xr.d=tr.getDate()+(Xr.w+6)%7)}else("W"in Xr||"U"in Xr)&&("w"in Xr||(Xr.w="u"in Xr?Xr.u%7:"W"in Xr?1:0),pr="Z"in Xr?n(i(Xr.y,0,1)).getUTCDay():r(i(Xr.y,0,1)).getDay(),Xr.m=0,Xr.d="W"in Xr?(Xr.w+6)%7+Xr.W*7-(pr+5)%7:Xr.w+Xr.U*7-(pr+6)%7);return"Z"in Xr?(Xr.H+=Xr.Z/100|0,Xr.M+=Xr.Z%100,n(Xr)):r(Xr)}}function Bt(Ri,xn,xi,Xr){for(var ft=0,tr=xn.length,pr=xi.length,gr,Zr;ft=pr)return-1;if(gr=xn.charCodeAt(ft++),gr===37){if(gr=xn.charAt(ft++),Zr=ii[gr in o?xn.charAt(ft++):gr],!Zr||(Xr=Zr(Ri,xi,Xr))<0)return-1}else if(gr!=xi.charCodeAt(Xr++))return-1}return Xr}function yt(Ri,xn,xi){var Xr=It.exec(xn.slice(xi));return Xr?(Ri.p=Pt[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function Vt(Ri,xn,xi){var Xr=Dr.exec(xn.slice(xi));return Xr?(Ri.w=Mr[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function Wt(Ri,xn,xi){var Xr=rr.exec(xn.slice(xi));return Xr?(Ri.w=Hr[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function _r(Ri,xn,xi){var Xr=Di.exec(xn.slice(xi));return Xr?(Ri.m=Ii[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function Lr(Ri,xn,xi){var Xr=Fr.exec(xn.slice(xi));return Xr?(Ri.m=di[Xr[0].toLowerCase()],xi+Xr[0].length):-1}function Ur(Ri,xn,xi){return Bt(Ri,Oe,xn,xi)}function Ir(Ri,xn,xi){return Bt(Ri,Re,xn,xi)}function Gr(Ri,xn,xi){return Bt(Ri,De,xn,xi)}function jr(Ri){return fe[Ri.getDay()]}function yi(Ri){return ge[Ri.getDay()]}function Ei(Ri){return dt[Ri.getMonth()]}function Vi(Ri){return de[Ri.getMonth()]}function ti(Ri){return ct[+(Ri.getHours()>=12)]}function en(Ri){return 1+~~(Ri.getMonth()/3)}function Yr(Ri){return fe[Ri.getUTCDay()]}function oi(Ri){return ge[Ri.getUTCDay()]}function Bi(Ri){return dt[Ri.getUTCMonth()]}function an(Ri){return de[Ri.getUTCMonth()]}function rn(Ri){return ct[+(Ri.getUTCHours()>=12)]}function Fi(Ri){return 1+~~(Ri.getUTCMonth()/3)}return{format:function(Ri){var xn=wi(Ri+="",Ci);return xn.toString=function(){return Ri},xn},parse:function(Ri){var xn=Gi(Ri+="",!1);return xn.toString=function(){return Ri},xn},utcFormat:function(Ri){var xn=wi(Ri+="",nn);return xn.toString=function(){return Ri},xn},utcParse:function(Ri){var xn=Gi(Ri+="",!0);return xn.toString=function(){return Ri},xn}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,u=/^%/,l=/[\\^$*+?|[\]().{}]/g;function f(xe,Oe,Re){var De=xe<0?"-":"",ct=(De?-xe:xe)+"",ge=ct.length;return De+(ge68?1900:2e3),Re+De[0].length):-1}function L(xe,Oe,Re){var De=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Oe.slice(Re,Re+6));return De?(xe.Z=De[1]?0:-(De[2]+(De[3]||"00")),Re+De[0].length):-1}function _(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+1));return De?(xe.q=De[0]*3-3,Re+De[0].length):-1}function C(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+2));return De?(xe.m=De[0]-1,Re+De[0].length):-1}function S(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+2));return De?(xe.d=+De[0],Re+De[0].length):-1}function m(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+3));return De?(xe.m=0,xe.d=+De[0],Re+De[0].length):-1}function P(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+2));return De?(xe.H=+De[0],Re+De[0].length):-1}function A(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+2));return De?(xe.M=+De[0],Re+De[0].length):-1}function B(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+2));return De?(xe.S=+De[0],Re+De[0].length):-1}function F(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+3));return De?(xe.L=+De[0],Re+De[0].length):-1}function U(xe,Oe,Re){var De=s.exec(Oe.slice(Re,Re+6));return De?(xe.L=Math.floor(De[0]/1e3),Re+De[0].length):-1}function G(xe,Oe,Re){var De=u.exec(Oe.slice(Re,Re+1));return De?Re+De[0].length:-1}function j(xe,Oe,Re){var De=s.exec(Oe.slice(Re));return De?(xe.Q=+De[0],Re+De[0].length):-1}function H(xe,Oe,Re){var De=s.exec(Oe.slice(Re));return De?(xe.s=+De[0],Re+De[0].length):-1}function N(xe,Oe){return f(xe.getDate(),Oe,2)}function W(xe,Oe){return f(xe.getHours(),Oe,2)}function re(xe,Oe){return f(xe.getHours()%12||12,Oe,2)}function ae(xe,Oe){return f(1+t.timeDay.count(t.timeYear(xe),xe),Oe,3)}function be(xe,Oe){return f(xe.getMilliseconds(),Oe,3)}function Ce(xe,Oe){return be(xe,Oe)+"000"}function Le(xe,Oe){return f(xe.getMonth()+1,Oe,2)}function pe(xe,Oe){return f(xe.getMinutes(),Oe,2)}function te(xe,Oe){return f(xe.getSeconds(),Oe,2)}function ke(xe){var Oe=xe.getDay();return Oe===0?7:Oe}function Ee(xe,Oe){return f(t.timeSunday.count(t.timeYear(xe)-1,xe),Oe,2)}function Me(xe,Oe){var Re=xe.getDay();return xe=Re>=4||Re===0?t.timeThursday(xe):t.timeThursday.ceil(xe),f(t.timeThursday.count(t.timeYear(xe),xe)+(t.timeYear(xe).getDay()===4),Oe,2)}function Ne(xe){return xe.getDay()}function Fe(xe,Oe){return f(t.timeMonday.count(t.timeYear(xe)-1,xe),Oe,2)}function ye(xe,Oe){return f(xe.getFullYear()%100,Oe,2)}function Ve(xe,Oe){return f(xe.getFullYear()%1e4,Oe,4)}function ce(xe){var Oe=xe.getTimezoneOffset();return(Oe>0?"-":(Oe*=-1,"+"))+f(Oe/60|0,"0",2)+f(Oe%60,"0",2)}function Je(xe,Oe){return f(xe.getUTCDate(),Oe,2)}function nt(xe,Oe){return f(xe.getUTCHours(),Oe,2)}function gt(xe,Oe){return f(xe.getUTCHours()%12||12,Oe,2)}function Nt(xe,Oe){return f(1+t.utcDay.count(t.utcYear(xe),xe),Oe,3)}function it(xe,Oe){return f(xe.getUTCMilliseconds(),Oe,3)}function Ye(xe,Oe){return it(xe,Oe)+"000"}function kt(xe,Oe){return f(xe.getUTCMonth()+1,Oe,2)}function Tt(xe,Oe){return f(xe.getUTCMinutes(),Oe,2)}function St(xe,Oe){return f(xe.getUTCSeconds(),Oe,2)}function Dt(xe){var Oe=xe.getUTCDay();return Oe===0?7:Oe}function Zt(xe,Oe){return f(t.utcSunday.count(t.utcYear(xe)-1,xe),Oe,2)}function Et(xe,Oe){var Re=xe.getUTCDay();return xe=Re>=4||Re===0?t.utcThursday(xe):t.utcThursday.ceil(xe),f(t.utcThursday.count(t.utcYear(xe),xe)+(t.utcYear(xe).getUTCDay()===4),Oe,2)}function Ae(xe){return xe.getUTCDay()}function at(xe,Oe){return f(t.utcMonday.count(t.utcYear(xe)-1,xe),Oe,2)}function wt(xe,Oe){return f(xe.getUTCFullYear()%100,Oe,2)}function vt(xe,Oe){return f(xe.getUTCFullYear()%1e4,Oe,4)}function st(){return"+0000"}function Ue(){return"%"}function rt(xe){return+xe}function $e(xe){return Math.floor(+xe/1e3)}var zt;Yt({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Yt(xe){return zt=a(xe),e.timeFormat=zt.format,e.timeParse=zt.parse,e.utcFormat=zt.utcFormat,e.utcParse=zt.utcParse,zt}var hr="%Y-%m-%dT%H:%M:%S.%LZ";function yr(xe){return xe.toISOString()}var br=Date.prototype.toISOString?yr:e.utcFormat(hr);function Ut(xe){var Oe=new Date(xe);return isNaN(Oe)?null:Oe}var Ie=+new Date("2000-01-01T00:00:00.000Z")?Ut:e.utcParse(hr);e.isoFormat=br,e.isoParse=Ie,e.timeFormatDefaultLocale=Yt,e.timeFormatLocale=a,Object.defineProperty(e,"__esModule",{value:!0})})});var E9=Te((fL,kee)=>{(function(e,t){typeof fL=="object"&&typeof kee!="undefined"?t(fL):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(fL,function(e){"use strict";function t(C){return Math.abs(C=Math.round(C))>=1e21?C.toLocaleString("en").replace(/,/g,""):C.toString(10)}function r(C,S){if((m=(C=S?C.toExponential(S-1):C.toExponential()).indexOf("e"))<0)return null;var m,P=C.slice(0,m);return[P.length>1?P[0]+P.slice(2):P,+C.slice(m+1)]}function n(C){return C=r(Math.abs(C)),C?C[1]:NaN}function i(C,S){return function(m,P){for(var A=m.length,B=[],F=0,U=C[0],G=0;A>0&&U>0&&(G+U+1>P&&(U=Math.max(1,P-G)),B.push(m.substring(A-=U,A+U)),!((G+=U+1)>P));)U=C[F=(F+1)%C.length];return B.reverse().join(S)}}function a(C){return function(S){return S.replace(/[0-9]/g,function(m){return C[+m]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(C){if(!(S=o.exec(C)))throw new Error("invalid format: "+C);var S;return new u({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}s.prototype=u.prototype;function u(C){this.fill=C.fill===void 0?" ":C.fill+"",this.align=C.align===void 0?">":C.align+"",this.sign=C.sign===void 0?"-":C.sign+"",this.symbol=C.symbol===void 0?"":C.symbol+"",this.zero=!!C.zero,this.width=C.width===void 0?void 0:+C.width,this.comma=!!C.comma,this.precision=C.precision===void 0?void 0:+C.precision,this.trim=!!C.trim,this.type=C.type===void 0?"":C.type+""}u.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function l(C){e:for(var S=C.length,m=1,P=-1,A;m0&&(P=0);break}return P>0?C.slice(0,P)+C.slice(A+1):C}var f;function c(C,S){var m=r(C,S);if(!m)return C+"";var P=m[0],A=m[1],B=A-(f=Math.max(-8,Math.min(8,Math.floor(A/3)))*3)+1,F=P.length;return B===F?P:B>F?P+new Array(B-F+1).join("0"):B>0?P.slice(0,B)+"."+P.slice(B):"0."+new Array(1-B).join("0")+r(C,Math.max(0,S+B-1))[0]}function h(C,S){var m=r(C,S);if(!m)return C+"";var P=m[0],A=m[1];return A<0?"0."+new Array(-A).join("0")+P:P.length>A+1?P.slice(0,A+1)+"."+P.slice(A+1):P+new Array(A-P.length+2).join("0")}var d={"%":function(C,S){return(C*100).toFixed(S)},b:function(C){return Math.round(C).toString(2)},c:function(C){return C+""},d:t,e:function(C,S){return C.toExponential(S)},f:function(C,S){return C.toFixed(S)},g:function(C,S){return C.toPrecision(S)},o:function(C){return Math.round(C).toString(8)},p:function(C,S){return h(C*100,S)},r:h,s:c,X:function(C){return Math.round(C).toString(16).toUpperCase()},x:function(C){return Math.round(C).toString(16)}};function p(C){return C}var x=Array.prototype.map,b=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function v(C){var S=C.grouping===void 0||C.thousands===void 0?p:i(x.call(C.grouping,Number),C.thousands+""),m=C.currency===void 0?"":C.currency[0]+"",P=C.currency===void 0?"":C.currency[1]+"",A=C.decimal===void 0?".":C.decimal+"",B=C.numerals===void 0?p:a(x.call(C.numerals,String)),F=C.percent===void 0?"%":C.percent+"",U=C.minus===void 0?"-":C.minus+"",G=C.nan===void 0?"NaN":C.nan+"";function j(N){N=s(N);var W=N.fill,re=N.align,ae=N.sign,be=N.symbol,Ce=N.zero,Le=N.width,pe=N.comma,te=N.precision,ke=N.trim,Ee=N.type;Ee==="n"?(pe=!0,Ee="g"):d[Ee]||(te===void 0&&(te=12),ke=!0,Ee="g"),(Ce||W==="0"&&re==="=")&&(Ce=!0,W="0",re="=");var Me=be==="$"?m:be==="#"&&/[boxX]/.test(Ee)?"0"+Ee.toLowerCase():"",Ne=be==="$"?P:/[%p]/.test(Ee)?F:"",Fe=d[Ee],ye=/[defgprs%]/.test(Ee);te=te===void 0?6:/[gprs]/.test(Ee)?Math.max(1,Math.min(21,te)):Math.max(0,Math.min(20,te));function Ve(ce){var Je=Me,nt=Ne,gt,Nt,it;if(Ee==="c")nt=Fe(ce)+nt,ce="";else{ce=+ce;var Ye=ce<0||1/ce<0;if(ce=isNaN(ce)?G:Fe(Math.abs(ce),te),ke&&(ce=l(ce)),Ye&&+ce==0&&ae!=="+"&&(Ye=!1),Je=(Ye?ae==="("?ae:U:ae==="-"||ae==="("?"":ae)+Je,nt=(Ee==="s"?b[8+f/3]:"")+nt+(Ye&&ae==="("?")":""),ye){for(gt=-1,Nt=ce.length;++gtit||it>57){nt=(it===46?A+ce.slice(gt+1):ce.slice(gt))+nt,ce=ce.slice(0,gt);break}}}pe&&!Ce&&(ce=S(ce,1/0));var kt=Je.length+ce.length+nt.length,Tt=kt>1)+Je+ce+nt+Tt.slice(kt);break;default:ce=Tt+Je+ce+nt;break}return B(ce)}return Ve.toString=function(){return N+""},Ve}function H(N,W){var re=j((N=s(N),N.type="f",N)),ae=Math.max(-8,Math.min(8,Math.floor(n(W)/3)))*3,be=Math.pow(10,-ae),Ce=b[8+ae/3];return function(Le){return re(be*Le)+Ce}}return{format:j,formatPrefix:H}}var k;E({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function E(C){return k=v(C),e.format=k.format,e.formatPrefix=k.formatPrefix,k}function T(C){return Math.max(0,-n(Math.abs(C)))}function L(C,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(S)/3)))*3-n(Math.abs(C)))}function _(C,S){return C=Math.abs(C),S=Math.abs(S)-C,Math.max(0,n(S)-n(C))+1}e.FormatSpecifier=u,e.formatDefaultLocale=E,e.formatLocale=v,e.formatSpecifier=s,e.precisionFixed=T,e.precisionPrefix=L,e.precisionRound=_,Object.defineProperty(e,"__esModule",{value:!0})})});var Lee=Te((Mrr,Cee)=>{"use strict";Cee.exports=function(e){for(var t=e.length,r,n=0;n13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var ku=Te((Err,Pee)=>{"use strict";var Itt=Lee();Pee.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&Itt(r))return!1}else if(t!=="number")return!1;return e-e<1}});var nf=Te((krr,zee)=>{"use strict";zee.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var k9=Te((cL,Iee)=>{(function(e,t){typeof cL=="object"&&typeof Iee!="undefined"?t(cL):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(cL,function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],f+=t[(s[u]&3)<<4|s[u+1]>>4],f+=t[(s[u+1]&15)<<2|s[u+2]>>6],f+=t[s[u+2]&63];return l%3===2?f=f.substring(0,f.length-1)+"=":l%3===1&&(f=f.substring(0,f.length-2)+"=="),f},a=function(o){var s=o.length*.75,u=o.length,l,f=0,c,h,d,p;o[o.length-1]==="="&&(s--,o[o.length-2]==="="&&s--);var x=new ArrayBuffer(s),b=new Uint8Array(x);for(l=0;l>4,b[f++]=(h&15)<<4|d>>2,b[f++]=(d&3)<<6|p&63;return x};e.decode=a,e.encode=i,Object.defineProperty(e,"__esModule",{value:!0})})});var mg=Te((Crr,Ree)=>{"use strict";Ree.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var mp=Te(ym=>{"use strict";var Rtt=k9().decode,Dtt=mg(),C9=Array.isArray,Ftt=ArrayBuffer,Btt=DataView;function Dee(e){return Ftt.isView(e)&&!(e instanceof Btt)}ym.isTypedArray=Dee;function hL(e){return C9(e)||Dee(e)}ym.isArrayOrTypedArray=hL;function Ott(e){return!hL(e[0])}ym.isArray1D=Ott;ym.ensureArray=function(e,t){return C9(e)||(e=[]),e.length=t,e};var zd={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};zd.uint8c=zd.u1c;zd.uint8=zd.u1;zd.int8=zd.i1;zd.uint16=zd.u2;zd.int16=zd.i2;zd.uint32=zd.u4;zd.int32=zd.i4;zd.float32=zd.f4;zd.float64=zd.f8;function L9(e){return e.constructor===ArrayBuffer}ym.isArrayBuffer=L9;ym.decodeTypedArraySpec=function(e){var t=[],r=qtt(e),n=r.dtype,i=zd[n];if(!i)throw new Error('Error in dtype: "'+n+'"');var a=i.BYTES_PER_ELEMENT,o=r.bdata;L9(o)||(o=Rtt(o));var s=r.shape===void 0?[o.byteLength/a]:(""+r.shape).split(",");s.reverse();var u=s.length,l,f,c=+s[0],h=a*c,d=0;if(u===1)t=new i(o);else if(u===2)for(l=+s[1],f=0;f{"use strict";var Bee=ku(),z9=mp().isArrayOrTypedArray;Uee.exports=function(t,r){if(Bee(r))r=String(r);else if(typeof r!="string"||r.substr(r.length-4)==="[-1]")throw"bad property string";var n=r.split("."),i,a,o,s;for(s=0;s{"use strict";var t3=kM(),Htt=/^\w*$/,Wtt=0,Vee=1,dL=2,Gee=3,ob=4;Hee.exports=function(t,r,n,i){n=n||"name",i=i||"value";var a,o,s,u={};r&&r.length?(s=t3(t,r),o=s.get()):o=t,r=r||"";var l={};if(o)for(a=0;a2)return u[d]=u[d]|dL,c.set(h,null);if(f){for(a=d;a{"use strict";var jtt=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,Xtt=/^[^\.\[\]]+$/;jee.exports=function(e,t){for(;t;){var r=e.match(jtt);if(r)e=r[1];else if(e.match(Xtt))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var pL=Te((Rrr,Zee)=>{"use strict";var Ztt=ku();Zee.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var n=Math.log(Math.min(r[0],r[1]))/Math.LN10;return Ztt(n)||(n=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),n}});var Jee=Te((Drr,Kee)=>{"use strict";var Yee=mp().isArrayOrTypedArray,CM=mg();Kee.exports=function e(t,r){for(var n in r){var i=r[n],a=t[n];if(a!==i)if(n.charAt(0)==="_"||typeof i=="function"){if(n in t)continue;t[n]=i}else if(Yee(i)&&Yee(a)&&CM(i[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(i.length,a.length),s=0;s{"use strict";function Ytt(e,t){var r=e%t;return r<0?r+t:r}function Ktt(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}$ee.exports={mod:Ytt,modHalf:Ktt}});var cd=Te((Brr,vL)=>{(function(e){var t=/^\s+/,r=/\s+$/,n=0,i=e.round,a=e.min,o=e.max,s=e.random;function u(ye,Ve){if(ye=ye||"",Ve=Ve||{},ye instanceof u)return ye;if(!(this instanceof u))return new u(ye,Ve);var ce=l(ye);this._originalInput=ye,this._r=ce.r,this._g=ce.g,this._b=ce.b,this._a=ce.a,this._roundA=i(100*this._a)/100,this._format=Ve.format||ce.format,this._gradientType=Ve.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=ce.ok,this._tc_id=n++}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ye=this.toRgb();return(ye.r*299+ye.g*587+ye.b*114)/1e3},getLuminance:function(){var ye=this.toRgb(),Ve,ce,Je,nt,gt,Nt;return Ve=ye.r/255,ce=ye.g/255,Je=ye.b/255,Ve<=.03928?nt=Ve/12.92:nt=e.pow((Ve+.055)/1.055,2.4),ce<=.03928?gt=ce/12.92:gt=e.pow((ce+.055)/1.055,2.4),Je<=.03928?Nt=Je/12.92:Nt=e.pow((Je+.055)/1.055,2.4),.2126*nt+.7152*gt+.0722*Nt},setAlpha:function(ye){return this._a=N(ye),this._roundA=i(100*this._a)/100,this},toHsv:function(){var ye=d(this._r,this._g,this._b);return{h:ye.h*360,s:ye.s,v:ye.v,a:this._a}},toHsvString:function(){var ye=d(this._r,this._g,this._b),Ve=i(ye.h*360),ce=i(ye.s*100),Je=i(ye.v*100);return this._a==1?"hsv("+Ve+", "+ce+"%, "+Je+"%)":"hsva("+Ve+", "+ce+"%, "+Je+"%, "+this._roundA+")"},toHsl:function(){var ye=c(this._r,this._g,this._b);return{h:ye.h*360,s:ye.s,l:ye.l,a:this._a}},toHslString:function(){var ye=c(this._r,this._g,this._b),Ve=i(ye.h*360),ce=i(ye.s*100),Je=i(ye.l*100);return this._a==1?"hsl("+Ve+", "+ce+"%, "+Je+"%)":"hsla("+Ve+", "+ce+"%, "+Je+"%, "+this._roundA+")"},toHex:function(ye){return x(this._r,this._g,this._b,ye)},toHexString:function(ye){return"#"+this.toHex(ye)},toHex8:function(ye){return b(this._r,this._g,this._b,this._a,ye)},toHex8String:function(ye){return"#"+this.toHex8(ye)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(W(this._r,255)*100)+"%",g:i(W(this._g,255)*100)+"%",b:i(W(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(W(this._r,255)*100)+"%, "+i(W(this._g,255)*100)+"%, "+i(W(this._b,255)*100)+"%)":"rgba("+i(W(this._r,255)*100)+"%, "+i(W(this._g,255)*100)+"%, "+i(W(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:j[x(this._r,this._g,this._b,!0)]||!1},toFilter:function(ye){var Ve="#"+v(this._r,this._g,this._b,this._a),ce=Ve,Je=this._gradientType?"GradientType = 1, ":"";if(ye){var nt=u(ye);ce="#"+v(nt._r,nt._g,nt._b,nt._a)}return"progid:DXImageTransform.Microsoft.gradient("+Je+"startColorstr="+Ve+",endColorstr="+ce+")"},toString:function(ye){var Ve=!!ye;ye=ye||this._format;var ce=!1,Je=this._a<1&&this._a>=0,nt=!Ve&&Je&&(ye==="hex"||ye==="hex6"||ye==="hex3"||ye==="hex4"||ye==="hex8"||ye==="name");return nt?ye==="name"&&this._a===0?this.toName():this.toRgbString():(ye==="rgb"&&(ce=this.toRgbString()),ye==="prgb"&&(ce=this.toPercentageRgbString()),(ye==="hex"||ye==="hex6")&&(ce=this.toHexString()),ye==="hex3"&&(ce=this.toHexString(!0)),ye==="hex4"&&(ce=this.toHex8String(!0)),ye==="hex8"&&(ce=this.toHex8String()),ye==="name"&&(ce=this.toName()),ye==="hsl"&&(ce=this.toHslString()),ye==="hsv"&&(ce=this.toHsvString()),ce||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(ye,Ve){var ce=ye.apply(null,[this].concat([].slice.call(Ve)));return this._r=ce._r,this._g=ce._g,this._b=ce._b,this.setAlpha(ce._a),this},lighten:function(){return this._applyModification(L,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(k,arguments)},saturate:function(){return this._applyModification(E,arguments)},greyscale:function(){return this._applyModification(T,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(ye,Ve){return ye.apply(null,[this].concat([].slice.call(Ve)))},analogous:function(){return this._applyCombination(F,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(U,arguments)},splitcomplement:function(){return this._applyCombination(B,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},u.fromRatio=function(ye,Ve){if(typeof ye=="object"){var ce={};for(var Je in ye)ye.hasOwnProperty(Je)&&(Je==="a"?ce[Je]=ye[Je]:ce[Je]=pe(ye[Je]));ye=ce}return u(ye,Ve)};function l(ye){var Ve={r:0,g:0,b:0},ce=1,Je=null,nt=null,gt=null,Nt=!1,it=!1;return typeof ye=="string"&&(ye=Ne(ye)),typeof ye=="object"&&(Me(ye.r)&&Me(ye.g)&&Me(ye.b)?(Ve=f(ye.r,ye.g,ye.b),Nt=!0,it=String(ye.r).substr(-1)==="%"?"prgb":"rgb"):Me(ye.h)&&Me(ye.s)&&Me(ye.v)?(Je=pe(ye.s),nt=pe(ye.v),Ve=p(ye.h,Je,nt),Nt=!0,it="hsv"):Me(ye.h)&&Me(ye.s)&&Me(ye.l)&&(Je=pe(ye.s),gt=pe(ye.l),Ve=h(ye.h,Je,gt),Nt=!0,it="hsl"),ye.hasOwnProperty("a")&&(ce=ye.a)),ce=N(ce),{ok:Nt,format:ye.format||it,r:a(255,o(Ve.r,0)),g:a(255,o(Ve.g,0)),b:a(255,o(Ve.b,0)),a:ce}}function f(ye,Ve,ce){return{r:W(ye,255)*255,g:W(Ve,255)*255,b:W(ce,255)*255}}function c(ye,Ve,ce){ye=W(ye,255),Ve=W(Ve,255),ce=W(ce,255);var Je=o(ye,Ve,ce),nt=a(ye,Ve,ce),gt,Nt,it=(Je+nt)/2;if(Je==nt)gt=Nt=0;else{var Ye=Je-nt;switch(Nt=it>.5?Ye/(2-Je-nt):Ye/(Je+nt),Je){case ye:gt=(Ve-ce)/Ye+(Ve1&&(St-=1),St<1/6?kt+(Tt-kt)*6*St:St<1/2?Tt:St<2/3?kt+(Tt-kt)*(2/3-St)*6:kt}if(Ve===0)Je=nt=gt=ce;else{var it=ce<.5?ce*(1+Ve):ce+Ve-ce*Ve,Ye=2*ce-it;Je=Nt(Ye,it,ye+1/3),nt=Nt(Ye,it,ye),gt=Nt(Ye,it,ye-1/3)}return{r:Je*255,g:nt*255,b:gt*255}}function d(ye,Ve,ce){ye=W(ye,255),Ve=W(Ve,255),ce=W(ce,255);var Je=o(ye,Ve,ce),nt=a(ye,Ve,ce),gt,Nt,it=Je,Ye=Je-nt;if(Nt=Je===0?0:Ye/Je,Je==nt)gt=0;else{switch(Je){case ye:gt=(Ve-ce)/Ye+(Ve>1)+720)%360;--Ve;)Je.h=(Je.h+nt)%360,gt.push(u(Je));return gt}function U(ye,Ve){Ve=Ve||6;for(var ce=u(ye).toHsv(),Je=ce.h,nt=ce.s,gt=ce.v,Nt=[],it=1/Ve;Ve--;)Nt.push(u({h:Je,s:nt,v:gt})),gt=(gt+it)%1;return Nt}u.mix=function(ye,Ve,ce){ce=ce===0?0:ce||50;var Je=u(ye).toRgb(),nt=u(Ve).toRgb(),gt=ce/100,Nt={r:(nt.r-Je.r)*gt+Je.r,g:(nt.g-Je.g)*gt+Je.g,b:(nt.b-Je.b)*gt+Je.b,a:(nt.a-Je.a)*gt+Je.a};return u(Nt)},u.readability=function(ye,Ve){var ce=u(ye),Je=u(Ve);return(e.max(ce.getLuminance(),Je.getLuminance())+.05)/(e.min(ce.getLuminance(),Je.getLuminance())+.05)},u.isReadable=function(ye,Ve,ce){var Je=u.readability(ye,Ve),nt,gt;switch(gt=!1,nt=Fe(ce),nt.level+nt.size){case"AAsmall":case"AAAlarge":gt=Je>=4.5;break;case"AAlarge":gt=Je>=3;break;case"AAAsmall":gt=Je>=7;break}return gt},u.mostReadable=function(ye,Ve,ce){var Je=null,nt=0,gt,Nt,it,Ye;ce=ce||{},Nt=ce.includeFallbackColors,it=ce.level,Ye=ce.size;for(var kt=0;ktnt&&(nt=gt,Je=u(Ve[kt]));return u.isReadable(ye,Je,{level:it,size:Ye})||!Nt?Je:(ce.includeFallbackColors=!1,u.mostReadable(ye,["#fff","#000"],ce))};var G=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},j=u.hexNames=H(G);function H(ye){var Ve={};for(var ce in ye)ye.hasOwnProperty(ce)&&(Ve[ye[ce]]=ce);return Ve}function N(ye){return ye=parseFloat(ye),(isNaN(ye)||ye<0||ye>1)&&(ye=1),ye}function W(ye,Ve){be(ye)&&(ye="100%");var ce=Ce(ye);return ye=a(Ve,o(0,parseFloat(ye))),ce&&(ye=parseInt(ye*Ve,10)/100),e.abs(ye-Ve)<1e-6?1:ye%Ve/parseFloat(Ve)}function re(ye){return a(1,o(0,ye))}function ae(ye){return parseInt(ye,16)}function be(ye){return typeof ye=="string"&&ye.indexOf(".")!=-1&&parseFloat(ye)===1}function Ce(ye){return typeof ye=="string"&&ye.indexOf("%")!=-1}function Le(ye){return ye.length==1?"0"+ye:""+ye}function pe(ye){return ye<=1&&(ye=ye*100+"%"),ye}function te(ye){return e.round(parseFloat(ye)*255).toString(16)}function ke(ye){return ae(ye)/255}var Ee=function(){var ye="[-\\+]?\\d+%?",Ve="[-\\+]?\\d*\\.\\d+%?",ce="(?:"+Ve+")|(?:"+ye+")",Je="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?",nt="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?";return{CSS_UNIT:new RegExp(ce),rgb:new RegExp("rgb"+Je),rgba:new RegExp("rgba"+nt),hsl:new RegExp("hsl"+Je),hsla:new RegExp("hsla"+nt),hsv:new RegExp("hsv"+Je),hsva:new RegExp("hsva"+nt),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Me(ye){return!!Ee.CSS_UNIT.exec(ye)}function Ne(ye){ye=ye.replace(t,"").replace(r,"").toLowerCase();var Ve=!1;if(G[ye])ye=G[ye],Ve=!0;else if(ye=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ce;return(ce=Ee.rgb.exec(ye))?{r:ce[1],g:ce[2],b:ce[3]}:(ce=Ee.rgba.exec(ye))?{r:ce[1],g:ce[2],b:ce[3],a:ce[4]}:(ce=Ee.hsl.exec(ye))?{h:ce[1],s:ce[2],l:ce[3]}:(ce=Ee.hsla.exec(ye))?{h:ce[1],s:ce[2],l:ce[3],a:ce[4]}:(ce=Ee.hsv.exec(ye))?{h:ce[1],s:ce[2],v:ce[3]}:(ce=Ee.hsva.exec(ye))?{h:ce[1],s:ce[2],v:ce[3],a:ce[4]}:(ce=Ee.hex8.exec(ye))?{r:ae(ce[1]),g:ae(ce[2]),b:ae(ce[3]),a:ke(ce[4]),format:Ve?"name":"hex8"}:(ce=Ee.hex6.exec(ye))?{r:ae(ce[1]),g:ae(ce[2]),b:ae(ce[3]),format:Ve?"name":"hex"}:(ce=Ee.hex4.exec(ye))?{r:ae(ce[1]+""+ce[1]),g:ae(ce[2]+""+ce[2]),b:ae(ce[3]+""+ce[3]),a:ke(ce[4]+""+ce[4]),format:Ve?"name":"hex8"}:(ce=Ee.hex3.exec(ye))?{r:ae(ce[1]+""+ce[1]),g:ae(ce[2]+""+ce[2]),b:ae(ce[3]+""+ce[3]),format:Ve?"name":"hex"}:!1}function Fe(ye){var Ve,ce;return ye=ye||{level:"AA",size:"small"},Ve=(ye.level||"AA").toUpperCase(),ce=(ye.size||"small").toLowerCase(),Ve!=="AA"&&Ve!=="AAA"&&(Ve="AA"),ce!=="small"&&ce!=="large"&&(ce="small"),{level:Ve,size:ce}}typeof vL!="undefined"&&vL.exports?vL.exports=u:window.tinycolor=u})(Math)});var Su=Te(zM=>{"use strict";var Qee=mg(),LM=Array.isArray;function Jtt(e,t){var r,n;for(r=0;r{"use strict";ete.exports=function(e){var t=e.variantValues,r=e.editType,n=e.colorEditType;n===void 0&&(n=r);var i={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(i.valType="enumerated",i.values=i.extras,i.extras=void 0,i.min=void 0,i.max=void 0);var a={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:n},weight:i,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(a.size.dflt="auto"),e.autoColor&&(a.color.dflt="auto"),e.arrayOk&&(a.family.arrayOk=!0,a.weight.arrayOk=!0,a.style.arrayOk=!0,e.noFontVariant||(a.variant.arrayOk=!0),e.noFontTextcase||(a.textcase.arrayOk=!0),e.noFontLineposition||(a.lineposition.arrayOk=!0),e.noFontShadow||(a.shadow.arrayOk=!0),a.size.arrayOk=!0,a.color.arrayOk=!0),a}});var IM=Te((Nrr,tte)=>{"use strict";tte.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var N1=Te((Urr,nte)=>{"use strict";var rte=IM(),ite=gc(),I9=ite({editType:"none"});I9.family.dflt=rte.HOVERFONT;I9.size.dflt=rte.HOVERFONTSIZE;nte.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:I9,grouptitlefont:ite({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var i3=Te((Vrr,ate)=>{"use strict";var $tt=gc(),RM=N1().hoverlabel,DM=Su().extendFlat;ate.exports={hoverlabel:{bgcolor:DM({},RM.bgcolor,{arrayOk:!0}),bordercolor:DM({},RM.bordercolor,{arrayOk:!0}),font:$tt({arrayOk:!0,editType:"none"}),align:DM({},RM.align,{arrayOk:!0}),namelength:DM({},RM.namelength,{arrayOk:!0}),showarrow:DM({},RM.showarrow),editType:"none"}}});var Vf=Te((Grr,ote)=>{"use strict";var Qtt=gc(),ert=i3();ote.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:Qtt({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:ert.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var sb=Te((Hrr,ute)=>{"use strict";var trt=cd(),mL={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},ste=mL.RdBu;function rrt(e,t){if(t||(t=ste),!e)return t;function r(){try{e=mL[e]||JSON.parse(e)}catch(n){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),lte(e)?e:t}function lte(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;r{"use strict";lb.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];lb.defaultLine="#444";lb.lightLine="#eee";lb.background="#fff";lb.borderLine="#BEC8D9";lb.lightFraction=100*10/11});var jl=Te((jrr,fte)=>{"use strict";var _v=cd(),nrt=ku(),art=mp().isTypedArray,hd=fte.exports={},yL=Ih();hd.defaults=yL.defaults;var ort=hd.defaultLine=yL.defaultLine;hd.lightLine=yL.lightLine;var D9=hd.background=yL.background;hd.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"};hd.rgb=function(e){return hd.tinyRGB(_v(e))};hd.opacity=function(e){return e?_v(e).getAlpha():0};hd.addOpacity=function(e,t){var r=_v(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"};hd.combine=function(e,t){var r=_v(e).toRgb();if(r.a===1)return _v(e).toRgbString();var n=_v(t||D9).toRgb(),i=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},a={r:i.r*(1-r.a)+r.r*r.a,g:i.g*(1-r.a)+r.g*r.a,b:i.b*(1-r.a)+r.b*r.a};return _v(a).toRgbString()};hd.interpolate=function(e,t,r){var n=_v(e).toRgb(),i=_v(t).toRgb(),a={r:r*n.r+(1-r)*i.r,g:r*n.g+(1-r)*i.g,b:r*n.b+(1-r)*i.b};return _v(a).toRgbString()};hd.contrast=function(e,t,r){var n=_v(e);n.getAlpha()!==1&&(n=_v(hd.combine(e,D9)));var i=n.isDark()?t?n.lighten(t):D9:r?n.darken(r):ort;return i.toString()};hd.stroke=function(e,t){var r=_v(t);e.style({stroke:hd.tinyRGB(r),"stroke-opacity":r.getAlpha()})};hd.fill=function(e,t){var r=_v(t);e.style({fill:hd.tinyRGB(r),"fill-opacity":r.getAlpha()})};hd.clean=function(e){if(!(!e||typeof e!="object")){var t=Object.keys(e),r,n,i,a;for(r=0;r=0)))return e;if(a===3)n[a]>1&&(n[a]=1);else if(n[a]>=1)return e}var o=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return i?"rgba("+o+", "+n[3]+")":"rgb("+o+")"}});var U1=Te((Xrr,cte)=>{"use strict";cte.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var n3=Te(hte=>{"use strict";hte.counter=function(e,t,r,n){var i=(t||"")+(r?"":"$"),a=n===!1?"":"^";return e==="xy"?new RegExp(a+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+i):new RegExp(a+e+"([2-9]|[1-9][0-9]+)?"+i)}});var mte=Te(xv=>{"use strict";var F9=ku(),dte=cd(),pte=Su().extendFlat,srt=Vf(),lrt=sb(),urt=jl(),frt=U1().DESELECTDIM,a3=kM(),vte=n3().counter,crt=r3().modHalf,dy=mp().isArrayOrTypedArray,V1=mp().isTypedArraySpec,G1=mp().decodeTypedArraySpec;xv.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(dy(e)?e:V1(e)?G1(e):r)}},enumerated:{coerceFunction:function(e,t,r,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,n=0;nn.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}V1(e)&&(e=G1(e)),e%1||!F9(e)||n.min!==void 0&&en.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,n){if(typeof e!="string"){var i=typeof e=="number";n.strict===!0||!i?t.set(r):t.set(String(e))}else n.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){V1(e)&&(e=G1(e)),dte(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function n(i){return dte(i).isValid()}!Array.isArray(e)||!e.length?t.set(r):e.every(n)?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(lrt.get(e,r))}},angle:{coerceFunction:function(e,t,r){V1(e)&&(e=G1(e)),e==="auto"?t.set("auto"):F9(e)?t.set(crt(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,n){var i=n.regex||vte(r);if(typeof e=="string"&&i.test(e)){t.set(e);return}t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!vte(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var i=e.split("+"),a=0;a{"use strict";var yte={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},gte={};function _te(e,t){for(var r in e){var n=e[r];n.valType?t[r]=n.dflt:(t[r]||(t[r]={}),_te(n,t[r]))}}_te(yte,gte);xte.exports={configAttributes:yte,dfltConfig:gte}});var O9=Te((Jrr,bte)=>{"use strict";var B9=Jl(),hrt=ku(),FM=[];bte.exports=function(e,t){if(FM.indexOf(e)!==-1)return;FM.push(e);var r=1e3;hrt(t)?r=t:t==="long"&&(r=3e3);var n=B9.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(FM);function a(o){o.duration(700).style("opacity",0).each("end",function(s){var u=FM.indexOf(s);u!==-1&&FM.splice(u,1),B9.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var s=B9.select(this);s.append("button").classed("notifier-close",!0).html("×").on("click",function(){s.transition().call(a)});for(var u=s.append("p"),l=o.split(//g),f=0;f{"use strict";var o3=ub().dfltConfig,q9=O9(),N9=wte.exports={};N9.log=function(){var e;if(o3.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};N9.warn=function(){var e;if(o3.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};N9.error=function(){var e;if(o3.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var _L=Te((Qrr,Ate)=>{"use strict";Ate.exports=function(){}});var U9=Te((eir,Tte)=>{"use strict";Tte.exports=function(t,r){if(r instanceof RegExp){for(var n=r.toString(),i=0;i{Ste.exports=drt;function drt(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var kte=Te((rir,Ete)=>{Ete.exports=prt;function prt(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var Lte=Te((iir,Cte)=>{Cte.exports=vrt;function vrt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var V9=Te((nir,Pte)=>{Pte.exports=mrt;function mrt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Ite=Te((air,zte)=>{zte.exports=yrt;function yrt(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var Dte=Te((oir,Rte)=>{Rte.exports=grt;function grt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],l=t[7],f=t[8],c=t[9],h=t[10],d=t[11],p=t[12],x=t[13],b=t[14],v=t[15],k=r*s-n*o,E=r*u-i*o,T=r*l-a*o,L=n*u-i*s,_=n*l-a*s,C=i*l-a*u,S=f*x-c*p,m=f*b-h*p,P=f*v-d*p,A=c*b-h*x,B=c*v-d*x,F=h*v-d*b,U=k*F-E*B+T*A+L*P-_*m+C*S;return U?(U=1/U,e[0]=(s*F-u*B+l*A)*U,e[1]=(i*B-n*F-a*A)*U,e[2]=(x*C-b*_+v*L)*U,e[3]=(h*_-c*C-d*L)*U,e[4]=(u*P-o*F-l*m)*U,e[5]=(r*F-i*P+a*m)*U,e[6]=(b*T-p*C-v*E)*U,e[7]=(f*C-h*T+d*E)*U,e[8]=(o*B-s*P+l*S)*U,e[9]=(n*P-r*B-a*S)*U,e[10]=(p*_-x*T+v*k)*U,e[11]=(c*T-f*_-d*k)*U,e[12]=(s*m-o*A-u*S)*U,e[13]=(r*A-n*m+i*S)*U,e[14]=(x*E-p*L-b*k)*U,e[15]=(f*L-c*E+h*k)*U,e):null}});var Bte=Te((sir,Fte)=>{Fte.exports=_rt;function _rt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],l=t[7],f=t[8],c=t[9],h=t[10],d=t[11],p=t[12],x=t[13],b=t[14],v=t[15];return e[0]=s*(h*v-d*b)-c*(u*v-l*b)+x*(u*d-l*h),e[1]=-(n*(h*v-d*b)-c*(i*v-a*b)+x*(i*d-a*h)),e[2]=n*(u*v-l*b)-s*(i*v-a*b)+x*(i*l-a*u),e[3]=-(n*(u*d-l*h)-s*(i*d-a*h)+c*(i*l-a*u)),e[4]=-(o*(h*v-d*b)-f*(u*v-l*b)+p*(u*d-l*h)),e[5]=r*(h*v-d*b)-f*(i*v-a*b)+p*(i*d-a*h),e[6]=-(r*(u*v-l*b)-o*(i*v-a*b)+p*(i*l-a*u)),e[7]=r*(u*d-l*h)-o*(i*d-a*h)+f*(i*l-a*u),e[8]=o*(c*v-d*x)-f*(s*v-l*x)+p*(s*d-l*c),e[9]=-(r*(c*v-d*x)-f*(n*v-a*x)+p*(n*d-a*c)),e[10]=r*(s*v-l*x)-o*(n*v-a*x)+p*(n*l-a*s),e[11]=-(r*(s*d-l*c)-o*(n*d-a*c)+f*(n*l-a*s)),e[12]=-(o*(c*b-h*x)-f*(s*b-u*x)+p*(s*h-u*c)),e[13]=r*(c*b-h*x)-f*(n*b-i*x)+p*(n*h-i*c),e[14]=-(r*(s*b-u*x)-o*(n*b-i*x)+p*(n*u-i*s)),e[15]=r*(s*h-u*c)-o*(n*h-i*c)+f*(n*u-i*s),e}});var qte=Te((lir,Ote)=>{Ote.exports=xrt;function xrt(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],s=e[6],u=e[7],l=e[8],f=e[9],c=e[10],h=e[11],d=e[12],p=e[13],x=e[14],b=e[15],v=t*o-r*a,k=t*s-n*a,E=t*u-i*a,T=r*s-n*o,L=r*u-i*o,_=n*u-i*s,C=l*p-f*d,S=l*x-c*d,m=l*b-h*d,P=f*x-c*p,A=f*b-h*p,B=c*b-h*x;return v*B-k*A+E*P+T*m-L*S+_*C}});var Ute=Te((uir,Nte)=>{Nte.exports=brt;function brt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],f=t[7],c=t[8],h=t[9],d=t[10],p=t[11],x=t[12],b=t[13],v=t[14],k=t[15],E=r[0],T=r[1],L=r[2],_=r[3];return e[0]=E*n+T*s+L*c+_*x,e[1]=E*i+T*u+L*h+_*b,e[2]=E*a+T*l+L*d+_*v,e[3]=E*o+T*f+L*p+_*k,E=r[4],T=r[5],L=r[6],_=r[7],e[4]=E*n+T*s+L*c+_*x,e[5]=E*i+T*u+L*h+_*b,e[6]=E*a+T*l+L*d+_*v,e[7]=E*o+T*f+L*p+_*k,E=r[8],T=r[9],L=r[10],_=r[11],e[8]=E*n+T*s+L*c+_*x,e[9]=E*i+T*u+L*h+_*b,e[10]=E*a+T*l+L*d+_*v,e[11]=E*o+T*f+L*p+_*k,E=r[12],T=r[13],L=r[14],_=r[15],e[12]=E*n+T*s+L*c+_*x,e[13]=E*i+T*u+L*h+_*b,e[14]=E*a+T*l+L*d+_*v,e[15]=E*o+T*f+L*p+_*k,e}});var Gte=Te((fir,Vte)=>{Vte.exports=wrt;function wrt(e,t,r){var n=r[0],i=r[1],a=r[2],o,s,u,l,f,c,h,d,p,x,b,v;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(o=t[0],s=t[1],u=t[2],l=t[3],f=t[4],c=t[5],h=t[6],d=t[7],p=t[8],x=t[9],b=t[10],v=t[11],e[0]=o,e[1]=s,e[2]=u,e[3]=l,e[4]=f,e[5]=c,e[6]=h,e[7]=d,e[8]=p,e[9]=x,e[10]=b,e[11]=v,e[12]=o*n+f*i+p*a+t[12],e[13]=s*n+c*i+x*a+t[13],e[14]=u*n+h*i+b*a+t[14],e[15]=l*n+d*i+v*a+t[15]),e}});var Wte=Te((cir,Hte)=>{Hte.exports=Art;function Art(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var Xte=Te((hir,jte)=>{jte.exports=Trt;function Trt(e,t,r,n){var i=n[0],a=n[1],o=n[2],s=Math.sqrt(i*i+a*a+o*o),u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G;return Math.abs(s)<1e-6?null:(s=1/s,i*=s,a*=s,o*=s,u=Math.sin(r),l=Math.cos(r),f=1-l,c=t[0],h=t[1],d=t[2],p=t[3],x=t[4],b=t[5],v=t[6],k=t[7],E=t[8],T=t[9],L=t[10],_=t[11],C=i*i*f+l,S=a*i*f+o*u,m=o*i*f-a*u,P=i*a*f-o*u,A=a*a*f+l,B=o*a*f+i*u,F=i*o*f+a*u,U=a*o*f-i*u,G=o*o*f+l,e[0]=c*C+x*S+E*m,e[1]=h*C+b*S+T*m,e[2]=d*C+v*S+L*m,e[3]=p*C+k*S+_*m,e[4]=c*P+x*A+E*B,e[5]=h*P+b*A+T*B,e[6]=d*P+v*A+L*B,e[7]=p*P+k*A+_*B,e[8]=c*F+x*U+E*G,e[9]=h*F+b*U+T*G,e[10]=d*F+v*U+L*G,e[11]=p*F+k*U+_*G,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var Yte=Te((dir,Zte)=>{Zte.exports=Srt;function Srt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],s=t[6],u=t[7],l=t[8],f=t[9],c=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+l*n,e[5]=o*i+f*n,e[6]=s*i+c*n,e[7]=u*i+h*n,e[8]=l*i-a*n,e[9]=f*i-o*n,e[10]=c*i-s*n,e[11]=h*i-u*n,e}});var Jte=Te((pir,Kte)=>{Kte.exports=Mrt;function Mrt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],u=t[3],l=t[8],f=t[9],c=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-l*n,e[1]=o*i-f*n,e[2]=s*i-c*n,e[3]=u*i-h*n,e[8]=a*n+l*i,e[9]=o*n+f*i,e[10]=s*n+c*i,e[11]=u*n+h*i,e}});var Qte=Te((vir,$te)=>{$te.exports=Ert;function Ert(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],u=t[3],l=t[4],f=t[5],c=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+l*n,e[1]=o*i+f*n,e[2]=s*i+c*n,e[3]=u*i+h*n,e[4]=l*i-a*n,e[5]=f*i-o*n,e[6]=c*i-s*n,e[7]=h*i-u*n,e}});var tre=Te((mir,ere)=>{ere.exports=krt;function krt(e,t,r){var n,i,a,o=r[0],s=r[1],u=r[2],l=Math.sqrt(o*o+s*s+u*u);return Math.abs(l)<1e-6?null:(l=1/l,o*=l,s*=l,u*=l,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=s*o*a+u*n,e[2]=u*o*a-s*n,e[3]=0,e[4]=o*s*a-u*n,e[5]=s*s*a+i,e[6]=u*s*a+o*n,e[7]=0,e[8]=o*u*a+s*n,e[9]=s*u*a-o*n,e[10]=u*u*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var ire=Te((yir,rre)=>{rre.exports=Crt;function Crt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=n+n,u=i+i,l=a+a,f=n*s,c=n*u,h=n*l,d=i*u,p=i*l,x=a*l,b=o*s,v=o*u,k=o*l;return e[0]=1-(d+x),e[1]=c+k,e[2]=h-v,e[3]=0,e[4]=c-k,e[5]=1-(f+x),e[6]=p+b,e[7]=0,e[8]=h+v,e[9]=p-b,e[10]=1-(f+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var are=Te((gir,nre)=>{nre.exports=Lrt;function Lrt(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var sre=Te((_ir,ore)=>{ore.exports=Prt;function Prt(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var ure=Te((xir,lre)=>{lre.exports=zrt;function zrt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var cre=Te((bir,fre)=>{fre.exports=Irt;function Irt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var dre=Te((wir,hre)=>{hre.exports=Rrt;function Rrt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var G9=Te((Air,pre)=>{pre.exports=Drt;function Drt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,s=n+n,u=i+i,l=r*o,f=n*o,c=n*s,h=i*o,d=i*s,p=i*u,x=a*o,b=a*s,v=a*u;return e[0]=1-c-p,e[1]=f+v,e[2]=h-b,e[3]=0,e[4]=f-v,e[5]=1-l-p,e[6]=d+x,e[7]=0,e[8]=h+b,e[9]=d-x,e[10]=1-l-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var mre=Te((Tir,vre)=>{vre.exports=Frt;function Frt(e,t,r,n,i,a,o){var s=1/(r-t),u=1/(i-n),l=1/(a-o);return e[0]=a*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*u,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(i+n)*u,e[10]=(o+a)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*l,e[15]=0,e}});var gre=Te((Sir,yre)=>{yre.exports=Brt;function Brt(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}});var xre=Te((Mir,_re)=>{_re.exports=Ort;function Ort(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),u=2/(o+s),l=2/(i+a);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=l,e[6]=0,e[7]=0,e[8]=-((o-s)*u*.5),e[9]=(i-a)*l*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}});var wre=Te((Eir,bre)=>{bre.exports=qrt;function qrt(e,t,r,n,i,a,o){var s=1/(t-r),u=1/(n-i),l=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*l,e[11]=0,e[12]=(t+r)*s,e[13]=(i+n)*u,e[14]=(o+a)*l,e[15]=1,e}});var Tre=Te((kir,Are)=>{var Nrt=V9();Are.exports=Urt;function Urt(e,t,r,n){var i,a,o,s,u,l,f,c,h,d,p=t[0],x=t[1],b=t[2],v=n[0],k=n[1],E=n[2],T=r[0],L=r[1],_=r[2];return Math.abs(p-T)<1e-6&&Math.abs(x-L)<1e-6&&Math.abs(b-_)<1e-6?Nrt(e):(f=p-T,c=x-L,h=b-_,d=1/Math.sqrt(f*f+c*c+h*h),f*=d,c*=d,h*=d,i=k*h-E*c,a=E*f-v*h,o=v*c-k*f,d=Math.sqrt(i*i+a*a+o*o),d?(d=1/d,i*=d,a*=d,o*=d):(i=0,a=0,o=0),s=c*o-h*a,u=h*i-f*o,l=f*a-c*i,d=Math.sqrt(s*s+u*u+l*l),d?(d=1/d,s*=d,u*=d,l*=d):(s=0,u=0,l=0),e[0]=i,e[1]=s,e[2]=f,e[3]=0,e[4]=a,e[5]=u,e[6]=c,e[7]=0,e[8]=o,e[9]=l,e[10]=h,e[11]=0,e[12]=-(i*p+a*x+o*b),e[13]=-(s*p+u*x+l*b),e[14]=-(f*p+c*x+h*b),e[15]=1,e)}});var Mre=Te((Cir,Sre)=>{Sre.exports=Vrt;function Vrt(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var H9=Te((Lir,Ere)=>{Ere.exports={create:Mte(),clone:kte(),copy:Lte(),identity:V9(),transpose:Ite(),invert:Dte(),adjoint:Bte(),determinant:qte(),multiply:Ute(),translate:Gte(),scale:Wte(),rotate:Xte(),rotateX:Yte(),rotateY:Jte(),rotateZ:Qte(),fromRotation:tre(),fromRotationTranslation:ire(),fromScaling:are(),fromTranslation:sre(),fromXRotation:ure(),fromYRotation:cre(),fromZRotation:dre(),fromQuat:G9(),frustum:mre(),perspective:gre(),perspectiveFromFieldOfView:xre(),ortho:wre(),lookAt:Tre(),str:Mre()}});var xL=Te(xh=>{"use strict";var Grt=H9();xh.init2dArray=function(e,t){for(var r=new Array(e),n=0;n{"use strict";var Hrt=Jl(),kre=H1(),Wrt=xL(),jrt=H9();function Xrt(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function Zrt(e){var t=Hrt.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function Cre(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function Yrt(e,t){Lre("global",e,t)}function Lre(e,t,r){var n="plotly.js-style-"+e,i=document.getElementById(n);if(!(i&&i.matches(".no-inline-styles"))){i||(i=document.createElement("style"),i.setAttribute("id",n),i.appendChild(document.createTextNode("")),document.head.appendChild(i));var a=i.sheet;a?a.insertRule?a.insertRule(t+"{"+r+"}",0):a.addRule?a.addRule(t,r,0):kre.warn("addStyleRule failed"):kre.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Krt(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&Cre(r)}function Jrt(e,t,r,n,i,a){var o=n.split(":"),s=i.split(":"),u="data-btn-style-event-added";a||(a=document),a.querySelectorAll(e).forEach(function(l){l.getAttribute(u)||(l.addEventListener("mouseenter",function(){var f=this.querySelector(r);f&&(f.style[o[0]]=o[1])}),l.addEventListener("mouseleave",function(){var f=this.querySelector(r);f&&(t&&this.matches(t)?f.style[o[0]]=o[1]:f.style[s[0]]=s[1])}),l.setAttribute(u,!0))})}function $rt(e){var t=zre(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(n){var i=Pre(n);if(i){var a=Wrt.convertCssMatrix(i);r=jrt.multiply(r,r,a)}}),r}function Pre(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function zre(e){for(var t=[];Qrt(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function Qrt(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function eit(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}Ire.exports={getGraphDiv:Xrt,isPlotDiv:Zrt,removeElement:Cre,addStyleRule:Yrt,addRelatedStyleRule:Lre,deleteRelatedStyleRule:Krt,setStyleOnHover:Jrt,getFullTransformMatrix:$rt,getElementTransformMatrix:Pre,getElementAndAncestors:zre,equalDomRects:eit}});var OM=Te((Iir,Rre)=>{"use strict";Rre.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Sc=Te((Rir,Ure)=>{"use strict";var Fre=Su().extendFlat,tit=mg(),Bre={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},Ore={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},rit=Bre.flags.slice().concat(["fullReplot"]),iit=Ore.flags.slice().concat("layoutReplot");Ure.exports={traces:Bre,layout:Ore,traceFlags:function(){return Dre(rit)},layoutFlags:function(){return Dre(iit)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var n=r.split("+"),i=0;i{"use strict";W9.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};W9.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var j9=Te((Fir,Vre)=>{"use strict";Vre.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Nu=Te(qM=>{"use strict";var Gre=j9(),nit=Gre.FORMAT_LINK,ait=Gre.DATE_FORMAT_LINK;function oit(e){var t=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(t?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,nit,"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}".`,ait,"for details on the date formatting syntax."].join(" ")}qM.templateFormatStringDescription=oit;function X9(e){var t=e.description?" "+e.description:"",r=e.keys||[];if(r.length>0){for(var n=[],i=0;i{"use strict";function W1(e,t){return t?t.d2l(e):e}function Hre(e,t){return t?t.l2d(e):e}function sit(e){return e.x0}function lit(e){return e.x1}function uit(e){return e.y0}function fit(e){return e.y1}function Wre(e){return e.x0shift||0}function jre(e){return e.x1shift||0}function Xre(e){return e.y0shift||0}function Zre(e){return e.y1shift||0}function bL(e,t){return W1(e.x1,t)+jre(e)-W1(e.x0,t)-Wre(e)}function wL(e,t,r){return W1(e.y1,r)+Zre(e)-W1(e.y0,r)-Xre(e)}function cit(e,t){return Math.abs(bL(e,t))}function hit(e,t,r){return Math.abs(wL(e,t,r))}function dit(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(bL(e,t),2)+Math.pow(wL(e,t,r),2))}function pit(e,t){return Hre((W1(e.x1,t)+jre(e)+W1(e.x0,t)+Wre(e))/2,t)}function vit(e,t,r){return Hre((W1(e.y1,r)+Zre(e)+W1(e.y0,r)+Xre(e))/2,r)}function mit(e,t,r){return e.type!=="line"?void 0:wL(e,t,r)/bL(e,t)}Yre.exports={x0:sit,x1:lit,y0:uit,y1:fit,slope:mit,dx:bL,dy:wL,width:cit,height:hit,length:dit,xcenter:pit,ycenter:vit}});var $re=Te((qir,Jre)=>{"use strict";var yit=Sc().overrideAll,fb=Vf(),Kre=gc(),git=Id().dash,j1=Su().extendFlat,_it=Nu().shapeTexttemplateAttrs,xit=AL();Jre.exports=yit({newshape:{visible:j1({},fb.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:j1({},fb.legend,{}),legendgroup:j1({},fb.legendgroup,{}),legendgrouptitle:{text:j1({},fb.legendgrouptitle.text,{}),font:Kre({})},legendrank:j1({},fb.legendrank,{}),legendwidth:j1({},fb.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:j1({},git,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:j1({},fb.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:_it({newshape:!0},{keys:Object.keys(xit)}),font:Kre({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var eie=Te((Nir,Qre)=>{"use strict";var bit=Id().dash,wit=Su().extendFlat;Qre.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:wit({},bit,{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 TL=Te((Uir,tie)=>{"use strict";tie.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var s3=Te((Vir,aie)=>{"use strict";var Z9=gc(),Ait=OM(),SL=Ih(),rie=$re(),iie=eie(),Tit=TL(),nie=Su().extendFlat,ML=Z9({editType:"calc"});ML.family.dflt='"Open Sans", verdana, arial, sans-serif';ML.size.dflt=12;ML.color.dflt=SL.defaultLine;aie.exports={font:ML,title:{text:{valType:"string",editType:"layoutstyle"},font:Z9({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Z9({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:nie(Tit({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:SL.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:SL.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:SL.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:rie.newshape,activeshape:rie.activeshape,newselection:iie.newselection,activeselection:iie.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:nie({},Ait.transition,{editType:"none"})}});var oie=Xf(()=>{});var Sit={};var sie=Xf(()=>{oie()});var $l=Te(Tf=>{"use strict";var l3=H1(),lie=_L(),uie=U9(),Mit=mg(),Eit=BM().addStyleRule,fie=Su(),kit=Vf(),Cit=s3(),Lit=fie.extendFlat,Y9=fie.extendDeepAll;Tf.modules={};Tf.allCategories={};Tf.allTypes=[];Tf.subplotsRegistry={};Tf.componentsRegistry={};Tf.layoutArrayContainers=[];Tf.layoutArrayRegexes=[];Tf.traceLayoutAttributes={};Tf.localeRegistry={};Tf.apiMethodRegistry={};Tf.collectableSubplotTypes=null;Tf.register=function(t){if(Tf.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var Fit=e3().timeFormat,bie=ku(),K9=H1(),Z1=r3().mod,c3=nf(),_0=c3.BADNUM,bv=c3.ONEDAY,NM=c3.ONEHOUR,X1=c3.ONEMIN,f3=c3.ONESEC,UM=c3.EPOCHJD,yg=$l(),vie=e3().utcFormat,Bit=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Oit=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,mie=new Date().getFullYear()-70;function gg(e){return e&&yg.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}bh.dateTick0=function(e,t){var r=qit(e,!!t);if(t<2)return r;var n=bh.dateTime2ms(r,e);return n+=bv*(t-1),bh.ms2DateTime(n,0,e)};function qit(e,t){return gg(e)?t?yg.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:yg.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}bh.dfltRange=function(e){return gg(e)?yg.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};bh.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var kL,CL;bh.dateTime2ms=function(e,t){if(bh.isJSDate(e)){var r=e.getTimezoneOffset()*X1,n=(e.getUTCMinutes()-e.getMinutes())*X1+(e.getUTCSeconds()-e.getSeconds())*f3+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var i=3*X1;r=r-i/2+Z1(n-r+i/2,i)}return e=Number(e)-r,e>=kL&&e<=CL?e:_0}if(typeof e!="string"&&typeof e!="number")return _0;e=String(e);var a=gg(t),o=e.charAt(0);a&&(o==="G"||o==="g")&&(e=e.substr(1),t="");var s=a&&t.substr(0,7)==="chinese",u=e.match(s?Oit:Bit);if(!u)return _0;var l=u[1],f=u[3]||"1",c=Number(u[5]||1),h=Number(u[7]||0),d=Number(u[9]||0),p=Number(u[11]||0);if(a){if(l.length===2)return _0;l=Number(l);var x;try{var b=yg.getComponentMethod("calendars","getCal")(t);if(s){var v=f.charAt(f.length-1)==="i";f=parseInt(f,10),x=b.newDate(l,b.toMonthIndex(l,f,v),c)}else x=b.newDate(l,Number(f),c)}catch(E){return _0}return x?(x.toJD()-UM)*bv+h*NM+d*X1+p*f3:_0}l.length===2?l=(Number(l)+2e3-mie)%100+mie:l=Number(l),f-=1;var k=new Date(Date.UTC(2e3,f,c,h,d));return k.setUTCFullYear(l),k.getUTCMonth()!==f||k.getUTCDate()!==c?_0:k.getTime()+p*f3};kL=bh.MIN_MS=bh.dateTime2ms("-9999");CL=bh.MAX_MS=bh.dateTime2ms("9999-12-31 23:59:59.9999");bh.isDateTime=function(e,t){return bh.dateTime2ms(e,t)!==_0};function u3(e,t){return String(e+Math.pow(10,t)).substr(1)}var EL=90*bv,yie=3*NM,gie=5*X1;bh.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=kL&&e<=CL))return _0;t||(t=0);var n=Math.floor(Z1(e+.05,1)*10),i=Math.round(e-n/10),a,o,s,u,l,f;if(gg(r)){var c=Math.floor(i/bv)+UM,h=Math.floor(Z1(e,bv));try{a=yg.getComponentMethod("calendars","getCal")(r).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){a=vie("G%Y-%m-%d")(new Date(i))}if(a.charAt(0)==="-")for(;a.length<11;)a="-0"+a.substr(1);else for(;a.length<10;)a="0"+a;o=t=kL+bv&&e<=CL-bv))return _0;var t=Math.floor(Z1(e+.05,1)*10),r=new Date(Math.round(e-t/10)),n=Fit("%Y-%m-%d")(r),i=r.getHours(),a=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return wie(n,i,a,o,s)};function wie(e,t,r,n,i){if((t||r||n||i)&&(e+=" "+u3(t,2)+":"+u3(r,2),(n||i)&&(e+=":"+u3(n,2),i))){for(var a=4;i%10===0;)a-=1,i/=10;e+="."+u3(i,a)}return e}bh.cleanDate=function(e,t,r){if(e===_0)return t;if(bh.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(gg(r))return K9.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=bh.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!bh.isDateTime(e,r))return K9.error("unrecognized date",e),t;return e};var Nit=/%\d?f/g,Uit=/%h/g,Vit={1:"1",2:"1",3:"2",4:"2"};function _ie(e,t,r,n){e=e.replace(Nit,function(a){var o=Math.min(+a.charAt(1)||6,6),s=(t/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return s});var i=new Date(Math.floor(t+.05));if(e=e.replace(Uit,function(){return Vit[r("%q")(i)]}),gg(n))try{e=yg.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(a){return"Invalid"}return r(e)(i)}var Git=[59,59.9,59.99,59.999,59.9999];function Hit(e,t){var r=Z1(e+.05,bv),n=u3(Math.floor(r/NM),2)+":"+u3(Z1(Math.floor(r/X1),60),2);if(t!=="M"){bie(t)||(t=0);var i=Math.min(Z1(e/f3,60),Git[t]),a=(100+i).toFixed(t).substr(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+a}return n}bh.formatDate=function(e,t,r,n,i,a){if(i=gg(i)&&i,!t)if(r==="y")t=a.year;else if(r==="m")t=a.month;else if(r==="d")t=a.dayMonth+` +`+a.year;else return Hit(e,r)+` +`+_ie(a.dayMonthYear,e,n,i);return _ie(t,e,n,i)};var xie=3*bv;bh.incrementMonth=function(e,t,r){r=gg(r)&&r;var n=Z1(e,bv);if(e=Math.round(e-n),r)try{var i=Math.round(e/bv)+UM,a=yg.getComponentMethod("calendars","getCal")(r),o=a.fromJD(i);return t%12?a.add(o,t,"m"):a.add(o,t/12,"y"),(o.toJD()-UM)*bv+n}catch(u){K9.error("invalid ms "+e+" in calendar "+r)}var s=new Date(e+xie);return s.setUTCMonth(s.getUTCMonth()+t)+n-xie};bh.findExactDates=function(e,t){for(var r=0,n=0,i=0,a=0,o,s,u=gg(t)&&yg.getComponentMethod("calendars","getCal")(t),l=0;l{"use strict";Tie.exports=function(t){return t}});var LL=Te(_g=>{"use strict";var Wit=ku(),jit=H1(),Xit=VM(),Zit=nf().BADNUM,J9=1e-9;_g.findBin=function(e,t,r){if(Wit(t.start))return r?Math.ceil((e-t.start)/t.size-J9)-1:Math.floor((e-t.start)/t.size+J9);var n=0,i=t.length,a=0,o=i>1?(t[i-1]-t[0])/(i-1):1,s,u;for(o>=0?u=r?Yit:Kit:u=r?$it:Jit,e+=o*J9*(r?-1:1)*(o>=0?1:-1);n90&&jit.log("Long binary search..."),n-1};function Yit(e,t){return et}function $it(e,t){return e>=t}_g.sorterAsc=function(e,t){return e-t};_g.sorterDes=function(e,t){return t-e};_g.distinctVals=function(e){var t=e.slice();t.sort(_g.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===Zit;r--);for(var n=t[r]-t[0]||1,i=n/(r||1)/1e4,a=[],o,s=0;s<=r;s++){var u=t[s],l=u-o;o===void 0?(a.push(u),o=u):l>i&&(n=Math.min(n,l),a.push(u),o=u)}return{vals:a,minDiff:n}};_g.roundUp=function(e,t,r){for(var n=0,i=t.length-1,a,o=0,s=r?0:1,u=r?1:0,l=r?Math.ceil:Math.floor;n0&&(n=1),r&&n)return e.sort(t)}return n?e:e.reverse()};_g.findIndexOfMin=function(e,t){t=t||Xit;for(var r=1/0,n,i=0;i{"use strict";Sie.exports=function(t){return Object.keys(t).sort()}});var Mie=Te(wh=>{"use strict";var GM=ku(),Qit=mp().isArrayOrTypedArray;wh.aggNums=function(e,t,r,n){var i,a;if((!n||n>r.length)&&(n=r.length),GM(t)||(t=!1),Qit(r[0])){for(a=new Array(n),i=0;ie.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var Pie=Te(($ir,Lie)=>{"use strict";var Eie=r3(),$9=Eie.mod,ent=Eie.modHalf,HM=Math.PI,K1=2*HM;function tnt(e){return e/180*HM}function rnt(e){return e/HM*180}function Q9(e){return Math.abs(e[1]-e[0])>K1-1e-14}function kie(e,t){return ent(t-e,K1)}function int(e,t){return Math.abs(kie(e,t))}function Cie(e,t){if(Q9(t))return!0;var r,n;t[0]n&&(n+=K1);var i=$9(e,K1),a=i+K1;return i>=r&&i<=n||a>=r&&a<=n}function nnt(e,t,r,n){if(!Cie(t,n))return!1;var i,a;return r[0]=i&&e<=a}function eq(e,t,r,n,i,a,o){i=i||0,a=a||0;var s=Q9([r,n]),u,l,f,c,h;s?(u=0,l=HM,f=K1):r{"use strict";cb.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};cb.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};cb.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};cb.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};cb.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};cb.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var Die=Te(hb=>{"use strict";var tq=r3().mod;hb.segmentsIntersect=Rie;function Rie(e,t,r,n,i,a,o,s){var u=r-e,l=i-e,f=o-i,c=n-t,h=a-t,d=s-a,p=u*d-f*c;if(p===0)return null;var x=(l*d-f*h)/p,b=(l*c-u*h)/p;return b<0||b>1||x<0||x>1?null:{x:e+u*x,y:t+c*x}}hb.segmentDistance=function(t,r,n,i,a,o,s,u){if(Rie(t,r,n,i,a,o,s,u))return 0;var l=n-t,f=i-r,c=s-a,h=u-o,d=l*l+f*f,p=c*c+h*h,x=Math.min(PL(l,f,d,a-t,o-r),PL(l,f,d,s-t,u-r),PL(c,h,p,t-a,r-o),PL(c,h,p,n-a,i-o));return Math.sqrt(x)};function PL(e,t,r,n,i){var a=n*e+i*t;if(a<0)return n*n+i*i;if(a>r){var o=n-e,s=i-t;return o*o+s*s}else{var u=n*t-i*e;return u*u/r}}var zL,rq,Iie;hb.getTextLocation=function(t,r,n,i){if((t!==rq||i!==Iie)&&(zL={},rq=t,Iie=i),zL[n])return zL[n];var a=t.getPointAtLength(tq(n-i/2,r)),o=t.getPointAtLength(tq(n+i/2,r)),s=Math.atan((o.y-a.y)/(o.x-a.x)),u=t.getPointAtLength(tq(n,r)),l=(u.x*4+a.x+o.x)/6,f=(u.y*4+a.y+o.y)/6,c={x:l,y:f,theta:s};return zL[n]=c,c};hb.clearLocationCache=function(){rq=null};hb.getVisibleSegment=function(t,r,n){var i=r.left,a=r.right,o=r.top,s=r.bottom,u=0,l=t.getTotalLength(),f=l,c,h;function d(x){var b=t.getPointAtLength(x);x===0?c=b:x===l&&(h=b);var v=b.xa?b.x-a:0,k=b.ys?b.y-s:0;return Math.sqrt(v*v+k*k)}for(var p=d(u);p;){if(u+=p+n,u>f)return;p=d(u)}for(p=d(f);p;){if(f-=p+n,u>f)return;p=d(f)}return{min:u,max:f,len:f-u,total:l,isClosed:u===0&&f===l&&Math.abs(c.x-h.x)<.1&&Math.abs(c.y-h.y)<.1}};hb.findPointOnPath=function(t,r,n,i){i=i||{};for(var a=i.pathLength||t.getTotalLength(),o=i.tolerance||.001,s=i.iterationLimit||30,u=t.getPointAtLength(0)[n]>t.getPointAtLength(a)[n]?-1:1,l=0,f=0,c=a,h,d,p;l0?c=h:f=h,l++}return d}});var IL=Te(WM=>{"use strict";var xg={};WM.throttle=function(t,r,n){var i=xg[t],a=Date.now();if(!i){for(var o in xg)xg[o].tsi.ts+r){s();return}i.timer=setTimeout(function(){s(),i.timer=null},r)};WM.done=function(e){var t=xg[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var n=t.onDone;t.onDone=function(){n&&n(),r(),t.onDone=null}})};WM.clear=function(e){if(e)Fie(xg[e]),delete xg[e];else for(var t in xg)WM.clear(t)};function Fie(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Oie=Te((rnr,Bie)=>{"use strict";Bie.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var qie=Te((inr,RL)=>{"use strict";RL.exports=iq;RL.exports.isMobile=iq;RL.exports.default=iq;var lnt=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,unt=/CrOS/,fnt=/android|ipad|playbook|silk/i;function iq(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=lnt.test(t)&&!unt.test(t)||!!e.tablet&&fnt.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var Uie=Te((nnr,Nie)=>{"use strict";var cnt=ku(),hnt=qie();Nie.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=dnt(),typeof r!="string")return!0;var n=hnt({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!n)for(var i=r.split(" "),a=1;a-1;s--){var u=i[s];if(u.substr(0,8)==="Version/"){var l=u.substr(8).split(".")[0];if(cnt(l)&&(l=+l),l>=13)return!0}}}return n};function dnt(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var Gie=Te((anr,Vie)=>{"use strict";var pnt=Jl();Vie.exports=function(t,r,n){var i=t.selectAll("g."+n.replace(/\s/g,".")).data(r,function(o){return o[0].trace.uid});i.exit().remove(),i.enter().append("g").attr("class",n),i.order();var a=t.classed("rangeplot")?"nodeRangePlot3":"node3";return i.each(function(o){o[0][a]=pnt.select(this)}),i}});var Wie=Te((onr,Hie)=>{"use strict";var vnt=$l();Hie.exports=function(t,r){for(var n=t._context.locale,i=0;i<2;i++){for(var a=t._context.locales,o=0;o<2;o++){var s=(a[n]||{}).dictionary;if(s){var u=s[r];if(u)return u}a=vnt.localeRegistry}var l=n.split("-")[0];if(l===n)break;n=l}return r}});var nq=Te((snr,jie)=>{"use strict";jie.exports=function(t){for(var r={},n=[],i=0,a=0;a{"use strict";Xie.exports=function(t){for(var r=gnt(t)?ynt:mnt,n=[],i=0;i{"use strict";Yie.exports=function(t,r){if(!r)return t;var n=1/Math.abs(r),i=n>1?(n*t+n*r)/n:t+r,a=String(i).length;if(a>16){var o=String(r).length,s=String(t).length;if(a>=s+o){var u=parseFloat(i).toPrecision(12);u.indexOf("e+")===-1&&(i=+u)}}return i}});var $ie=Te((fnr,Jie)=>{"use strict";var _nt=ku(),xnt=nf().BADNUM,bnt=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Jie.exports=function(t){return typeof t=="string"&&(t=t.replace(bnt,"")),_nt(t)?Number(t):xnt}});var ei=Te((cnr,cne)=>{"use strict";var jM=Jl(),wnt=e3().utcFormat,Ant=E9().format,nne=ku(),ane=nf(),one=ane.FP_SAFE,Tnt=-one,Qie=ane.BADNUM,An=cne.exports={};An.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:t==="0.f"?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var ene={};An.warnBadFormat=function(e){var t=String(e);ene[t]||(ene[t]=1,An.warn('encountered bad format: "'+t+'"'))};An.noFormat=function(e){return String(e)};An.numberFormat=function(e){var t;try{t=Ant(An.adjustFormat(e))}catch(r){return An.warnBadFormat(e),An.noFormat}return t};An.nestedProperty=kM();An.keyedContainer=Wee();An.relativeAttr=Xee();An.isPlainObject=mg();An.toLogRange=pL();An.relinkPrivateKeys=Jee();var J1=mp();An.isArrayBuffer=J1.isArrayBuffer;An.isTypedArray=J1.isTypedArray;An.isArrayOrTypedArray=J1.isArrayOrTypedArray;An.isArray1D=J1.isArray1D;An.ensureArray=J1.ensureArray;An.concat=J1.concat;An.maxRowLength=J1.maxRowLength;An.minRowLength=J1.minRowLength;var sne=r3();An.mod=sne.mod;An.modHalf=sne.modHalf;var $1=mte();An.valObjectMeta=$1.valObjectMeta;An.coerce=$1.coerce;An.coerce2=$1.coerce2;An.coerceFont=$1.coerceFont;An.coercePattern=$1.coercePattern;An.coerceHoverinfo=$1.coerceHoverinfo;An.coerceSelectionMarkerOpacity=$1.coerceSelectionMarkerOpacity;An.validate=$1.validate;var Wv=Aie();An.dateTime2ms=Wv.dateTime2ms;An.isDateTime=Wv.isDateTime;An.ms2DateTime=Wv.ms2DateTime;An.ms2DateTimeLocal=Wv.ms2DateTimeLocal;An.cleanDate=Wv.cleanDate;An.isJSDate=Wv.isJSDate;An.formatDate=Wv.formatDate;An.incrementMonth=Wv.incrementMonth;An.dateTick0=Wv.dateTick0;An.dfltRange=Wv.dfltRange;An.findExactDates=Wv.findExactDates;An.MIN_MS=Wv.MIN_MS;An.MAX_MS=Wv.MAX_MS;var db=LL();An.findBin=db.findBin;An.sorterAsc=db.sorterAsc;An.sorterDes=db.sorterDes;An.distinctVals=db.distinctVals;An.roundUp=db.roundUp;An.sort=db.sort;An.findIndexOfMin=db.findIndexOfMin;An.sortObjectKeys=Y1();var bg=Mie();An.aggNums=bg.aggNums;An.len=bg.len;An.mean=bg.mean;An.geometricMean=bg.geometricMean;An.median=bg.median;An.midRange=bg.midRange;An.variance=bg.variance;An.stdev=bg.stdev;An.interp=bg.interp;var gm=xL();An.init2dArray=gm.init2dArray;An.transposeRagged=gm.transposeRagged;An.dot=gm.dot;An.translationMatrix=gm.translationMatrix;An.rotationMatrix=gm.rotationMatrix;An.rotationXYMatrix=gm.rotationXYMatrix;An.apply3DTransform=gm.apply3DTransform;An.apply2DTransform=gm.apply2DTransform;An.apply2DTransform2=gm.apply2DTransform2;An.convertCssMatrix=gm.convertCssMatrix;An.inverseTransformMatrix=gm.inverseTransformMatrix;var py=Pie();An.deg2rad=py.deg2rad;An.rad2deg=py.rad2deg;An.angleDelta=py.angleDelta;An.angleDist=py.angleDist;An.isFullCircle=py.isFullCircle;An.isAngleInsideSector=py.isAngleInsideSector;An.isPtInsideSector=py.isPtInsideSector;An.pathArc=py.pathArc;An.pathSector=py.pathSector;An.pathAnnulus=py.pathAnnulus;var d3=zie();An.isLeftAnchor=d3.isLeftAnchor;An.isCenterAnchor=d3.isCenterAnchor;An.isRightAnchor=d3.isRightAnchor;An.isTopAnchor=d3.isTopAnchor;An.isMiddleAnchor=d3.isMiddleAnchor;An.isBottomAnchor=d3.isBottomAnchor;var p3=Die();An.segmentsIntersect=p3.segmentsIntersect;An.segmentDistance=p3.segmentDistance;An.getTextLocation=p3.getTextLocation;An.clearLocationCache=p3.clearLocationCache;An.getVisibleSegment=p3.getVisibleSegment;An.findPointOnPath=p3.findPointOnPath;var BL=Su();An.extendFlat=BL.extendFlat;An.extendDeep=BL.extendDeep;An.extendDeepAll=BL.extendDeepAll;An.extendDeepNoArrays=BL.extendDeepNoArrays;var aq=H1();An.log=aq.log;An.warn=aq.warn;An.error=aq.error;var Snt=n3();An.counterRegex=Snt.counter;var oq=IL();An.throttle=oq.throttle;An.throttleDone=oq.done;An.clearThrottle=oq.clear;var _m=BM();An.getGraphDiv=_m.getGraphDiv;An.isPlotDiv=_m.isPlotDiv;An.removeElement=_m.removeElement;An.addStyleRule=_m.addStyleRule;An.addRelatedStyleRule=_m.addRelatedStyleRule;An.deleteRelatedStyleRule=_m.deleteRelatedStyleRule;An.setStyleOnHover=_m.setStyleOnHover;An.getFullTransformMatrix=_m.getFullTransformMatrix;An.getElementTransformMatrix=_m.getElementTransformMatrix;An.getElementAndAncestors=_m.getElementAndAncestors;An.equalDomRects=_m.equalDomRects;An.clearResponsive=Oie();An.preserveDrawingBuffer=Uie();An.makeTraceGroups=Gie();An._=Wie();An.notifier=O9();An.filterUnique=nq();An.filterVisible=Zie();An.pushUnique=U9();An.increment=Kie();An.cleanNumber=$ie();An.ensureNumber=function(t){return nne(t)?(t=Number(t),t>one||t=t?!1:nne(e)&&e>=0&&e%1===0};An.noop=_L();An.identity=VM();An.repeat=function(e,t){for(var r=new Array(t),n=0;nr?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};An.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};An.simpleMap=function(e,t,r,n,i){for(var a=e.length,o=new Array(a),s=0;s=Math.pow(2,r)?i>10?(An.warn("randstr failed uniqueness"),o):e(t,r,n,(i||0)+1):o};An.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(n){n[t]=e,r[n.name]=n,r.optionList.push(n)},r["_"+t]=e,r};An.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,n=2*r,i=2*t-1,a=new Array(i),o=new Array(r),s,u,l,f;for(s=0;s=n&&(l-=n*Math.floor(l/n)),l<0?l=-1-l:l>=r&&(l=n-1-l),f+=e[l]*a[u];o[s]=f}return o};An.syncOrAsync=function(e,t,r){var n,i;function a(){return An.syncOrAsync(e,t,r)}for(;e.length;)if(i=e.splice(0,1)[0],n=i(t),n&&n.then)return n.then(a);return r&&r(t)};An.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};An.noneOrAll=function(e,t,r){if(e){var n=!1,i=!0,a,o;for(a=0;a0?i:0})};An.fillArray=function(e,t,r,n){if(n=n||An.identity,An.isArrayOrTypedArray(e))for(var i=0;iknt.test(window.navigator.userAgent);var Cnt=/Firefox\/(\d+)\.\d+/;An.getFirefoxVersion=function(){var e=Cnt.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};An.isD3Selection=function(e){return e instanceof jM.selection};An.ensureSingle=function(e,t,r,n){var i=e.select(t+(r?"."+r:""));if(i.size())return i;var a=e.append(t);return r&&a.classed(r,!0),n&&a.call(n),a};An.ensureSingleById=function(e,t,r,n){var i=e.select(t+"#"+r);if(i.size())return i;var a=e.append(t).attr("id",r);return n&&a.call(n),a};An.objectFromPath=function(e,t){for(var r=e.split("."),n,i=n={},a=0;a1?i+o[1]:"";if(a&&(o.length>1||s.length>4||r))for(;n.test(s);)s=s.replace(n,"$1"+a+"$2");return s+u};An.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var fne=/^\w*$/;An.templateString=function(e,t){var r={};return e.replace(An.TEMPLATE_STRING_REGEX,function(n,i){var a;return fne.test(i)?a=t[i]:(r[i]=r[i]||An.nestedProperty(t,i).get,a=r[i](!0)),a!==void 0?a:""})};var znt={max:10,count:0,name:"hovertemplate"};An.hovertemplateString=function(){return sq.apply(znt,arguments)};var Int={max:10,count:0,name:"texttemplate"};An.texttemplateString=function(){return sq.apply(Int,arguments)};var Rnt=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Dnt(e){var t=e.match(Rnt);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var Fnt={max:10,count:0,name:"texttemplate",parseMultDiv:!0};An.texttemplateStringForShapes=function(){return sq.apply(Fnt,arguments)};var tne=/^[:|\|]/;function sq(e,t,r){var n=this,i=arguments;return t||(t={}),e.replace(An.TEMPLATE_STRING_REGEX,function(a,o,s){var u=o==="xother"||o==="yother",l=o==="_xother"||o==="_yother",f=o==="_xother_"||o==="_yother_",c=o==="xother_"||o==="yother_",h=u||l||c||f,d=o;(l||f)&&(d=d.substring(1)),(c||f)&&(d=d.substring(0,d.length-1));var p=null,x=null;if(n.parseMultDiv){var b=Dnt(d);d=b.key,p=b.op,x=b.number}var v;if(h){if(v=t[d],v===void 0)return""}else{var k,E;for(E=3;E=FL&&o<=rne,l=s>=FL&&s<=rne;if(u&&(n=10*n+o-FL),l&&(i=10*i+s-FL),!u||!l){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var h3=2e9;An.seedPseudoRandom=function(){h3=2e9};An.pseudoRandom=function(){var e=h3;return h3=(69069*h3+1)%4294967296,Math.abs(h3-e)<429496729?An.pseudoRandom():h3/4294967296};An.fillText=function(e,t,r){var n=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},i=An.extractOption(e,t,"htx","hovertext");if(An.isValidTextValue(i))return n(i);var a=An.extractOption(e,t,"tx","text");if(An.isValidTextValue(a))return n(a)};An.isValidTextValue=function(e){return e||e===0};An.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",n=0;n1&&(l=1):l=0,An.strTranslate(i-l*(r+o),a-l*(n+s))+An.strScale(l)+(u?"rotate("+u+(t?"":" "+r+" "+n)+")":"")};An.setTransormAndDisplay=function(e,t){e.attr("transform",An.getTextTransform(t)),e.style("display",t.scale?null:"none")};An.ensureUniformFontSize=function(e,t){var r=An.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};An.join2=function(e,t,r){var n=e.length;return n>1?e.slice(0,-1).join(t)+r+e[n-1]:e.join(t)};An.bigFont=function(e){return Math.round(1.2*e)};var ine=An.getFirefoxVersion(),Bnt=ine!==null&&ine<86;An.getPositionFromD3Event=function(){return Bnt?[jM.event.layerX,jM.event.layerY]:[jM.event.offsetX,jM.event.offsetY]}});var pne=Te(()=>{"use strict";var Ont=ei(),hne={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(lq in hne)dne=lq.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Ont.addStyleRule(dne,hne[lq]);var dne,lq});var uq=Te((pnr,vne)=>{vne.exports=!0});var cq=Te((vnr,mne)=>{"use strict";var qnt=uq(),fq;typeof window.matchMedia=="function"?fq=!window.matchMedia("(hover: none)").matches:fq=qnt;mne.exports=fq});var pb=Te((mnr,hq)=>{"use strict";var v3=typeof Reflect=="object"?Reflect:null,yne=v3&&typeof v3.apply=="function"?v3.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},OL;v3&&typeof v3.ownKeys=="function"?OL=v3.ownKeys:Object.getOwnPropertySymbols?OL=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:OL=function(t){return Object.getOwnPropertyNames(t)};function Nnt(e){console&&console.warn&&console.warn(e)}var _ne=Number.isNaN||function(t){return t!==t};function qc(){qc.init.call(this)}hq.exports=qc;hq.exports.once=Hnt;qc.EventEmitter=qc;qc.prototype._events=void 0;qc.prototype._eventsCount=0;qc.prototype._maxListeners=void 0;var gne=10;function qL(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(qc,"defaultMaxListeners",{enumerable:!0,get:function(){return gne},set:function(e){if(typeof e!="number"||e<0||_ne(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");gne=e}});qc.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};qc.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||_ne(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function xne(e){return e._maxListeners===void 0?qc.defaultMaxListeners:e._maxListeners}qc.prototype.getMaxListeners=function(){return xne(this)};qc.prototype.emit=function(t){for(var r=[],n=1;n0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var u=a[t];if(u===void 0)return!1;if(typeof u=="function")yne(u,this,r);else for(var l=u.length,f=Sne(u,l),n=0;n0&&o.length>i&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,Nnt(s)}return e}qc.prototype.addListener=function(t,r){return bne(this,t,r,!1)};qc.prototype.on=qc.prototype.addListener;qc.prototype.prependListener=function(t,r){return bne(this,t,r,!0)};function Unt(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function wne(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=Unt.bind(n);return i.listener=r,n.wrapFn=i,i}qc.prototype.once=function(t,r){return qL(r),this.on(t,wne(this,t,r)),this};qc.prototype.prependOnceListener=function(t,r){return qL(r),this.prependListener(t,wne(this,t,r)),this};qc.prototype.removeListener=function(t,r){var n,i,a,o,s;if(qL(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){s=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():Vnt(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};qc.prototype.off=qc.prototype.removeListener;qc.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i=0;i--)this.removeListener(t,r[i]);return this};function Ane(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?Gnt(i):Sne(i,i.length)}qc.prototype.listeners=function(t){return Ane(this,t,!0)};qc.prototype.rawListeners=function(t){return Ane(this,t,!1)};qc.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Tne.call(e,t)};qc.prototype.listenerCount=Tne;function Tne(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}qc.prototype.eventNames=function(){return this._eventsCount>0?OL(this._events):[]};function Sne(e,t){for(var r=new Array(t),n=0;n{"use strict";var dq=pb().EventEmitter,jnt={init:function(e){if(e._ev instanceof dq)return e;var t=new dq,r=new dq;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(n,i){t.emit(n,i),r.emit(n,i)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{}),e},triggerHandler:function(e,t,r){var n,i=e._ev;if(!i)return;var a=i._events[t];if(!a)return;function o(u){if(u.listener){if(i.removeListener(t,u.listener),!u.fired)return u.fired=!0,u.listener.apply(i,[r])}else return u.apply(i,[r])}a=Array.isArray(a)?a:[a];var s;for(s=0;s{"use strict";var kne=ei(),Xnt=ub().dfltConfig;function Znt(e,t){for(var r=[],n,i=0;iXnt.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};wg.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};wg.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};wg.undo=function(t){var r,n;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n{"use strict";Pne.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var _3=Te($h=>{"use strict";var x0=$l(),XM=ei(),UL=Vf(),vq=s3(),Ynt=pq(),Knt=OM(),Jnt=ub().configAttributes,zne=Sc(),xm=XM.extendDeepAll,y3=XM.isPlainObject,$nt=XM.isArrayOrTypedArray,VL=XM.nestedProperty,Qnt=XM.valObjectMeta,mq="_isSubplotObj",GL="_isLinkedToArray",eat="_arrayAttrRegexps",Rne="_deprecated",yq=[mq,GL,eat,Rne];$h.IS_SUBPLOT_OBJ=mq;$h.IS_LINKED_TO_ARRAY=GL;$h.DEPRECATED=Rne;$h.UNDERSCORE_ATTRS=yq;$h.get=function(){var e={};return x0.allTypes.forEach(function(t){e[t]=rat(t)}),{defs:{valObjects:Qnt,metaKeys:yq.concat(["description","role","editType","impliedEdits"]),editType:{traces:zne.traces,layout:zne.layout},impliedEdits:{}},traces:e,layout:iat(),frames:nat(),animation:g3(Knt),config:g3(Jnt)}};$h.crawl=function(e,t,r,n){var i=r||0;n=n||"",Object.keys(e).forEach(function(a){var o=e[a];if(yq.indexOf(a)===-1){var s=(n?n+".":"")+a;t(o,a,e,i,s),!$h.isValObject(o)&&y3(o)&&a!=="impliedEdits"&&$h.crawl(o,t,i+1,s)}})};$h.isValObject=function(e){return e&&e.valType!==void 0};$h.findArrayAttributes=function(e){var t=[],r=[],n=[],i,a;function o(u,l,f,c){r=r.slice(0,c).concat([l]),n=n.slice(0,c).concat([u&&u._isLinkedToArray]);var h=u&&(u.valType==="data_array"||u.arrayOk===!0)&&!(r[c-1]==="colorbar"&&(l==="ticktext"||l==="tickvals"));h&&s(i,0,"")}function s(u,l,f){var c=u[r[l]],h=f+r[l];if(l===r.length-1)$nt(c)&&t.push(a+h);else if(n[l]){if(Array.isArray(c))for(var d=0;d=a.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var o=t[r];if(!NL(o))return!1;e=a[i][o]}else e=a[i]}else e=a}}return e}function NL(e){return e===Math.round(e)&&e>=0}function rat(e){var t,r;t=x0.modules[e]._module,r=t.basePlotModule;var n={};n.type=null;var i=xm({},UL),a=xm({},t.attributes);$h.crawl(a,function(u,l,f,c,h){VL(i,h).set(void 0),u===void 0&&VL(a,h).set(void 0)}),xm(n,i),x0.traceIs(e,"noOpacity")&&delete n.opacity,x0.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),x0.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),t.selectPoints||delete n.selectedpoints,xm(n,a),r.attributes&&xm(n,r.attributes),n.type=e;var o={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:g3(n)};if(t.layoutAttributes){var s={};xm(s,t.layoutAttributes),o.layoutAttributes=g3(s)}return t.animatable||$h.crawl(o,function(u){$h.isValObject(u)&&"anim"in u&&delete u.anim}),o}function iat(){var e={},t,r;xm(e,vq);for(t in x0.subplotsRegistry)if(r=x0.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var n=0;n{"use strict";var x3=ei(),uat=Vf(),Q1="templateitemname",gq={name:{valType:"string",editType:"none"}};gq[Q1]={valType:"string",editType:"calc"};vb.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=gq.name,t[Q1]=gq[Q1],t};vb.traceTemplater=function(e){var t={},r,n;for(r in e)n=e[r],Array.isArray(n)&&n.length&&(t[r]=0);function i(a){r=x3.coerce(a,{},uat,"type");var o={type:r,_template:null};if(r in t){n=e[r];var s=t[r]%n.length;t[r]++,o._template=n[s]}return o}return{newTrace:i}};vb.newContainer=function(e,t,r){var n=e._template,i=n&&(n[t]||r&&n[r]);x3.isPlainObject(i)||(i=null);var a=e[t]={_template:i};return a};vb.arrayTemplater=function(e,t,r){var n=e._template,i=n&&n[Bne(t)],a=n&&n[t];(!Array.isArray(a)||!a.length)&&(a=[]);var o={};function s(l){var f={name:l.name,_input:l},c=f[Q1]=l[Q1];if(!Fne(c))return f._template=i,f;for(var h=0;h=n&&(r._input||{})._templateitemname;a&&(i=n);var o=t+"["+i+"]",s;function u(){s={},a&&(s[o]={},s[o][Q1]=a)}u();function l(d,p){s[d]=p}function f(d,p){a?x3.nestedProperty(s[o],d).set(p):s[o+"."+d]=p}function c(){var d=s;return u(),d}function h(d,p){d&&f(d,p);var x=c();for(var b in x)x3.nestedProperty(e,b).set(x[b])}return{modifyBase:l,modifyItem:f,getUpdateObj:c,applyUpdate:h}}});var dd=Te((wnr,One)=>{"use strict";var ZM=n3().counter;One.exports={idRegex:{x:ZM("x","( domain)?"),y:ZM("y","( domain)?")},attrRegex:ZM("[xy]axis"),xAxisMatch:ZM("xaxis"),yAxisMatch:ZM("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var Wc=Te(wv=>{"use strict";var fat=$l(),_q=dd();wv.id2name=function(t){if(!(typeof t!="string"||!t.match(_q.AX_ID_PATTERN))){var r=t.split(" ")[0].substr(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};wv.name2id=function(t){if(t.match(_q.AX_NAME_PATTERN)){var r=t.substr(5);return r==="1"&&(r=""),t.charAt(0)+r}};wv.cleanId=function(t,r,n){var i=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(_q.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(i&&!n)){var a=t.split(" ")[0].substr(1).replace(/^0+/,"");return a==="1"&&(a=""),t.charAt(0)+a+(i&&n?" domain":"")}};wv.list=function(e,t,r){var n=e._fullLayout;if(!n)return[];var i=wv.listIds(e,t),a=new Array(i.length),o;for(o=0;on?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)};wv.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function qne(e,t){if(t&&t.length){for(var r=0;r{"use strict";function cat(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function hat(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Nne.exports={clearOutlineControllers:cat,clearOutline:hat}});var HL=Te((Snr,Une)=>{"use strict";Une.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Rd=Te(jL=>{"use strict";var WL=$l(),Mnr=dd().SUBPLOT_PATTERN;jL.getSubplotCalcData=function(e,t,r){var n=WL.subplotsRegistry[t];if(!n)return[];for(var i=n.attr,a=[],o=0;o{"use strict";var dat=$l(),b3=ei();mb.manageCommandObserver=function(e,t,r,n){var i={},a=!0;t&&t._commandObserver&&(i=t._commandObserver),i.cache||(i.cache={}),i.lookupTable={};var o=mb.hasSimpleAPICommandBindings(e,r,i.lookupTable);if(t&&t._commandObserver){if(o)return i;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,i}if(o){Vne(e,o,i.cache),i.check=function(){if(a){var f=Vne(e,o,i.cache);return f.changed&&n&&i.lookupTable[f.value]!==void 0&&(i.disable(),Promise.resolve(n({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:i.lookupTable[f.value]})).then(i.enable,i.enable)),f.changed}};for(var s=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],u=0;u0?".":"")+i;b3.isPlainObject(a)?xq(a,t,o,n+1):t(o,i,a)}})}});var Cc=Te((Cnr,aae)=>{"use strict";var $ne=Jl(),vat=e3().timeFormatLocale,mat=E9().formatLocale,YM=ku(),yat=k9(),Hf=$l(),Qne=_3(),gat=Pf(),nu=ei(),eae=jl(),jne=nf().BADNUM,Av=Wc(),_at=e_().clearOutline,xat=HL(),bq=OM(),bat=pq(),wat=Rd().getModuleCalcData,Xne=nu.relinkPrivateKeys,yb=nu._,Nl=aae.exports={};nu.extendFlat(Nl,Hf);Nl.attributes=Vf();Nl.attributes.type.values=Nl.allTypes;Nl.fontAttrs=gc();Nl.layoutAttributes=s3();var ZL=Wne();Nl.executeAPICommand=ZL.executeAPICommand;Nl.computeAPICommandBindings=ZL.computeAPICommandBindings;Nl.manageCommandObserver=ZL.manageCommandObserver;Nl.hasSimpleAPICommandBindings=ZL.hasSimpleAPICommandBindings;Nl.redrawText=function(e){return e=nu.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(Hf.getComponentMethod("annotations","draw")(e),Hf.getComponentMethod("legend","draw")(e),Hf.getComponentMethod("colorbar","draw")(e),t(Nl.previousPromises(e)))},300)})};Nl.resize=function(e){e=nu.getGraphDiv(e);var t,r=new Promise(function(n,i){(!e||nu.isHidden(e))&&i(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||nu.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var a=e.changed;e.autoplay=!0,Hf.call("relayout",e,{autosize:!0}).then(function(){e.changed=a,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return t&&t(r),r};Nl.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Nl.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=nu.ensureSingle(t._paper,"text","js-plot-link-container",function(u){u.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:eae.defaultLine,"pointer-events":"all"}).each(function(){var l=$ne.select(this);l.append("tspan").classed("js-link-to-tool",!0),l.append("tspan").classed("js-link-spacer",!0),l.append("tspan").classed("js-sourcelinks",!0)})}),n=r.node(),i={y:t._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),r.attr(i);var a=r.select(".js-link-to-tool"),o=r.select(".js-link-spacer"),s=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&Aat(e,a),o.text(a.text()&&s.text()?" - ":"")}};function Aat(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)r.on("click",function(){Nl.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),i=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+i})}}Nl.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=$ne.select(e).append("div").attr("id","hiddenform").style("display","none"),n=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"}),i=n.append("input").attr({type:"text",name:"data"});return i.node().value=Nl.graphJson(e,!1,"keepdata"),n.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var Tat=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Sat=["year","month","dayMonth","dayMonthYear"];Nl.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var i=e._fullLayout={},a=e.layout||{},o=e._fullData||[],s=e._fullData=[],u=e.data||[],l=e.calcdata||[],f=e._context||{},c;e._transitionData||Nl.createTransitionData(e),i._dfltTitle={plot:yb(e,"Click to enter Plot title"),subtitle:yb(e,"Click to enter Plot subtitle"),x:yb(e,"Click to enter X axis title"),y:yb(e,"Click to enter Y axis title"),colorbar:yb(e,"Click to enter Colorscale title"),annotation:yb(e,"new text")},i._traceWord=yb(e,"trace");var h=Zne(e,Tat);if(i._mapboxAccessToken=f.mapboxAccessToken,n._initialAutoSizeIsDone){var d=n.width,p=n.height;Nl.supplyLayoutGlobalDefaults(a,i,h),a.width||(i.width=d),a.height||(i.height=p),Nl.sanitizeMargins(i)}else{Nl.supplyLayoutGlobalDefaults(a,i,h);var x=!a.width||!a.height,b=i.autosize,v=f.autosizable,k=x&&(b||v);k?Nl.plotAutoSize(e,a,i):x&&Nl.sanitizeMargins(i),!b&&x&&(a.width=i.width,a.height=i.height)}i._d3locale=kat(h,i.separators),i._extraFormat=Zne(e,Sat),i._initialAutoSizeIsDone=!0,i._dataLength=u.length,i._modules=[],i._visibleModules=[],i._basePlotModules=[];var E=i._subplots=Eat(),T=i._splomAxes={x:{},y:{}},L=i._splomSubplots={};i._splomGridDflt={},i._scatterStackOpts={},i._firstScatter={},i._alignmentOpts={},i._colorAxes={},i._requestRangeslider={},i._traceUids=Mat(o,u),Nl.supplyDataDefaults(u,s,a,i);var _=Object.keys(T.x),C=Object.keys(T.y);if(_.length>1&&C.length>1){for(Hf.getComponentMethod("grid","sizeDefaults")(a,i),c=0;c<_.length;c++)nu.pushUnique(E.xaxis,_[c]);for(c=0;c15&&C.length>15&&i.shapes.length===0&&i.images.length===0,Nl.linkSubplots(s,i,o,n),Nl.cleanPlot(s,i,o,n);var B=!!(n._has&&n._has("cartesian")),F=!!(i._has&&i._has("cartesian")),U=B,G=F;U&&!G?n._bgLayer.remove():G&&!U&&(i._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&_at({_fullLayout:n}),Cat(s,i),Xne(i,n),Hf.getComponentMethod("colorscale","crossTraceDefaults")(s,i),i._preGUI||(i._preGUI={}),i._tracePreGUI||(i._tracePreGUI={});var j=i._tracePreGUI,H={},N;for(N in j)H[N]="old";for(c=0;c0){var f=1-2*a;o=Math.round(f*o),s=Math.round(f*s)}}var c=Nl.layoutAttributes.width.min,h=Nl.layoutAttributes.height.min;o1,p=!r.height&&Math.abs(n.height-s)>1;(p||d)&&(d&&(n.width=o),p&&(n.height=s)),t._initialAutoSize||(t._initialAutoSize={width:o,height:s}),Nl.sanitizeMargins(n)};Nl.supplyLayoutModuleDefaults=function(e,t,r,n){var i=Hf.componentsRegistry,a=t._basePlotModules,o,s,u,l=Hf.subplotsRegistry.cartesian;for(o in i)u=i[o],u.includeBasePlot&&u.includeBasePlot(e,t);a.length||a.push(l),t._has("cartesian")&&(Hf.getComponentMethod("grid","contentDefaults")(e,t),l.finalizeSubplots(e,t));for(var f in t._subplots)t._subplots[f].sort(nu.subplotSort);for(s=0;s1&&(r.l/=b,r.r/=b)}if(h){var v=(r.t+r.b)/h;v>1&&(r.t/=v,r.b/=v)}var k=r.xl!==void 0?r.xl:r.x,E=r.xr!==void 0?r.xr:r.x,T=r.yt!==void 0?r.yt:r.y,L=r.yb!==void 0?r.yb:r.y;d[t]={l:{val:k,size:r.l+x},r:{val:E,size:r.r+x},b:{val:L,size:r.b+x},t:{val:T,size:r.t+x}},p[t]=1}if(!n._replotting)return Nl.doAutoMargin(e)}};function Pat(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Av.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}Nl.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,n=t.height;t._size||(t._size={}),tae(t);var i=t._size,a=t.margin,o={t:0,b:0,l:0,r:0},s=nu.extendFlat({},i),u=a.l,l=a.r,f=a.t,c=a.b,h=t._pushmargin,d=t._pushmarginIds,p=t.minreducedwidth,x=t.minreducedheight;if(a.autoexpand!==!1){for(var b in h)d[b]||delete h[b];var v=e._fullLayout._reservedMargin;for(var k in v)for(var E in v[k]){var T=v[k][E];o[E]=Math.max(o[E],T)}h.base={l:{val:0,size:u},r:{val:1,size:l},t:{val:1,size:f},b:{val:0,size:c}};for(var L in o){var _=0;for(var C in h)C!=="base"&&YM(h[C][L].size)&&(_=h[C][L].size>_?h[C][L].size:_);var S=Math.max(0,a[L]-_);o[L]=Math.max(0,o[L]-S)}for(var m in h){var P=h[m].l||{},A=h[m].b||{},B=P.val,F=P.size,U=A.val,G=A.size,j=r-o.r-o.l,H=n-o.t-o.b;for(var N in h){if(YM(F)&&h[N].r){var W=h[N].r.val,re=h[N].r.size;if(W>B){var ae=(F*W+(re-j)*B)/(W-B),be=(re*(1-B)+(F-j)*(1-W))/(W-B);ae+be>u+l&&(u=ae,l=be)}}if(YM(G)&&h[N].t){var Ce=h[N].t.val,Le=h[N].t.size;if(Ce>U){var pe=(G*Ce+(Le-H)*U)/(Ce-U),te=(Le*(1-U)+(G-H)*(1-Ce))/(Ce-U);pe+te>c+f&&(c=pe,f=te)}}}}}var ke=nu.constrain(r-a.l-a.r,rae,p),Ee=nu.constrain(n-a.t-a.b,iae,x),Me=Math.max(0,r-ke),Ne=Math.max(0,n-Ee);if(Me){var Fe=(u+l)/Me;Fe>1&&(u/=Fe,l/=Fe)}if(Ne){var ye=(c+f)/Ne;ye>1&&(c/=ye,f/=ye)}if(i.l=Math.round(u)+o.l,i.r=Math.round(l)+o.r,i.t=Math.round(f)+o.t,i.b=Math.round(c)+o.b,i.p=Math.round(a.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!t._replotting&&(Nl.didMarginChange(s,i)||Pat(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var Ve=3*(1+Object.keys(d).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};Nl.graphJson=function(e,t,r,n,i,a){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&Nl.supplyDefaults(e);var o=i?e._fullData:e.data,s=i?e._fullLayout:e.layout,u=(e._transitionData||{})._frames;function l(h,d){if(typeof h=="function")return d?"_function_":null;if(nu.isPlainObject(h)){var p={},x;return Object.keys(h).sort().forEach(function(E){if(["_","["].indexOf(E.charAt(0))===-1){if(typeof h[E]=="function"){d&&(p[E]="_function");return}if(r==="keepdata"){if(E.substr(E.length-3)==="src")return}else if(r==="keepstream"){if(x=h[E+"src"],typeof x=="string"&&x.indexOf(":")>0&&!nu.isPlainObject(h.stream))return}else if(r!=="keepall"&&(x=h[E+"src"],typeof x=="string"&&x.indexOf(":")>0))return;p[E]=l(h[E],d)}}),p}var b=Array.isArray(h),v=nu.isTypedArray(h);if((b||v)&&h.dtype&&h.shape){var k=h.bdata;return l({dtype:h.dtype,shape:h.shape,bdata:nu.isArrayBuffer(k)?yat.encode(k):k},d)}return b?h.map(function(E){return l(E,d)}):v?nu.simpleMap(h,nu.identity):nu.isJSDate(h)?nu.ms2DateTimeLocal(+h):h}var f={data:(o||[]).map(function(h){var d=l(h);return t&&delete d.fit,d})};if(!t&&(f.layout=l(s),i)){var c=s._size;f.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return u&&(f.frames=l(u)),a&&(f.config=l(e._context,!0)),n==="object"?f:JSON.stringify(f)};Nl.modifyFrames=function(e,t){var r,n,i,a=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return Hf.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function p(){return h++,function(){d++,!n&&d===h&&s(c)}}r.runFn(p),setTimeout(p())})}function s(c){if(e._transitionData)return a(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return Hf.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function u(){if(e._transitionData)return e._transitioning=!1,i(e._transitionData._interruptCallbacks)}var l=[Nl.previousPromises,u,r.prepareFn,Nl.rehover,Nl.reselect,o],f=nu.syncOrAsync(l,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Nl.doCalcdata=function(e,t){var r=Av.list(e),n=e._fullData,i=e._fullLayout,a,o,s,u,l=new Array(n.length),f=(e.calcdata||[]).slice();for(e.calcdata=l,i._numBoxes=0,i._numViolins=0,i._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,i._piecolormap={},i._sunburstcolormap={},i._treemapcolormap={},i._iciclecolormap={},i._funnelareacolormap={},s=0;s=0;u--)if(L[u].enabled){a._indexToPoints=L[u]._indexToPoints;break}o&&o.calc&&(T=o.calc(e,a))}(!Array.isArray(T)||!T[0])&&(T=[{x:jne,y:jne}]),T[0].t||(T[0].t={}),T[0].trace=a,l[k]=T}}for(Kne(r,n,i),s=0;s{"use strict";gb.xmlns="http://www.w3.org/2000/xmlns/";gb.svg="http://www.w3.org/2000/svg";gb.xlink="http://www.w3.org/1999/xlink";gb.svgAttrs={xmlns:gb.svg,"xmlns:xlink":gb.xlink}});var Qh=Te((Pnr,oae)=>{"use strict";oae.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var Zf=Te(b0=>{"use strict";var Rh=Jl(),Ag=ei(),Dat=Ag.strTranslate,wq=jv(),Fat=Qh().LINE_SPACING,Bat=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;b0.convertToTspans=function(e,t,r){var n=e.text(),i=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&n.match(Bat),a=Rh.select(e.node().parentNode);if(a.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function s(){a.empty()||(o=e.attr("class")+"-math",a.select("svg."+o).remove()),e.text("").style("white-space","pre");var u=Kat(e.node(),n);u&&e.style("pointer-events","all"),b0.positionText(e),r&&r.call(e)}return i?(t&&t._promises||[]).push(new Promise(function(u){e.style("display","none");var l=parseInt(e.node().style.fontSize,10),f={fontSize:l};Uat(i[2],f,function(c,h,d){a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove();var p=c&&c.select("svg");if(!p||!p.node()){s(),u();return}var x=a.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});x.node().appendChild(p.node()),h&&h.node()&&p.node().insertBefore(h.node().cloneNode(!0),p.node().firstChild);var b=d.width,v=d.height;p.attr({class:o,height:v,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var k=e.node().style.fill||"black",E=p.select("g");E.attr({fill:k,stroke:k});var T=E.node().getBoundingClientRect(),L=T.width,_=T.height;(L>b||_>v)&&(p.style("overflow","hidden"),T=p.node().getBoundingClientRect(),L=T.width,_=T.height);var C=+e.attr("x"),S=+e.attr("y"),m=l||e.node().getBoundingClientRect().height,P=-m/4;if(o[0]==="y")x.attr({transform:"rotate("+[-90,C,S]+")"+Dat(-L/2,P-_/2)});else if(o[0]==="l")S=P-_/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)C=0,S=P;else{var A=e.attr("text-anchor");C=C-L*(A==="middle"?.5:A==="end"?1:0),S=S+P-_/2}p.attr({x:C,y:S}),r&&r.call(e,x),u(x)})})):s(),e};var Oat=/(<|<|<)/g,qat=/(>|>|>)/g;function Nat(e){return e.replace(Oat,"\\lt ").replace(qat,"\\gt ")}var sae=[["$","$"],["\\(","\\)"]];function Uat(e,t,r){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){Ag.warn("No MathJax version:",MathJax.version);return}var i,a,o,s,u=function(){return a=Ag.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:sae},displayAlign:"left"})},l=function(){a=Ag.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=sae},f=function(){if(i=MathJax.Hub.config.menuSettings.renderer,i!=="SVG")return MathJax.Hub.setRenderer("SVG")},c=function(){i=MathJax.config.startup.output,i!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var k="math-output-"+Ag.randstr({},64);s=Rh.select("body").append("div").attr({id:k}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(Nat(e));var E=s.node();return n===2?MathJax.Hub.Typeset(E):MathJax.typeset([E])},d=function(){var k=s.select(n===2?".MathJax_SVG":".MathJax"),E=!k.empty()&&s.select("svg").node();if(!E)Ag.log("There was an error in the tex syntax.",e),r();else{var T=E.getBoundingClientRect(),L;n===2?L=Rh.select("body").select("#MathJax_SVG_glyphs"):L=k.select("defs"),r(k,L,T)}s.remove()},p=function(){if(i!=="SVG")return MathJax.Hub.setRenderer(i)},x=function(){i!=="svg"&&(MathJax.config.startup.output=i)},b=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(a)},v=function(){MathJax.config=a};n===2?MathJax.Hub.Queue(u,f,h,d,p,b):n===3&&(l(),c(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),x(),v()}))}var cae={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},Vat={sub:"0.3em",sup:"-0.6em"},Gat={sub:"-0.21em",sup:"0.42em"},lae="\u200B",uae=["http:","https:","mailto:","",void 0,":"],hae=b0.NEWLINES=/(\r\n?|\n)/g,Tq=/(<[^<>]*>)/,Sq=/<(\/?)([^ >]*)(\s+(.*))?>/i,Hat=//i;b0.BR_TAG_ALL=//gi;var dae=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,pae=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,vae=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Wat=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function _b(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&YL(n)}var jat=/(^|;)\s*color:/;b0.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,n=t.allowedTags!==void 0?t.allowedTags:["br"],i="...",a=i.length,o=e.split(Tq),s=[],u="",l=0,f=0;fa?s.push(c.substr(0,x-a)+i):s.push(c.substr(0,x));break}u=""}}return s.join("")};var Xat={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Zat=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function YL(e){return e.replace(Zat,function(t,r){var n;return r.charAt(0)==="#"?n=Yat(r.charAt(1)==="x"?parseInt(r.substr(2),16):parseInt(r.substr(1),10)):n=Xat[r],n||t})}b0.convertEntities=YL;function Yat(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function Kat(e,t){t=t.replace(hae," ");var r=!1,n=[],i,a=-1;function o(){a++;var _=document.createElementNS(wq.svg,"tspan");Rh.select(_).attr({class:"line",dy:a*Fat+"em"}),e.appendChild(_),i=_;var C=n;if(n=[{node:_}],C.length>1)for(var S=1;S.",t);return}var C=n.pop();_!==C.type&&Ag.log("Start tag <"+C.type+"> doesnt match end tag <"+_+">. Pretending it did match.",t),i=n[n.length-1].node}var f=Hat.test(t);f?o():(i=e,n=[{node:e}]);for(var c=t.split(Tq),h=0;h{"use strict";var Jat=Jl(),JL=cd(),JM=ku(),KL=ei(),yae=jl(),$at=sb().isValid;function Qat(e,t,r){var n=t?KL.nestedProperty(e,t).get()||{}:e,i=n[r||"color"];i&&i._inputArray&&(i=i._inputArray);var a=!1;if(KL.isArrayOrTypedArray(i)){for(var o=0;o=0;n--,i++){var a=e[n];r[i]=[1-a[0],a[1]]}return r}function Aae(e,t){t=t||{};for(var r=e.domain,n=e.range,i=n.length,a=new Array(i),o=0;o{"use strict";var Sae=j9(),tot=Sae.FORMAT_LINK,rot=Sae.DATE_FORMAT_LINK;function iot(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?Mq:Mae)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Mq(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+tot+"."].join(" ")}function Mae(e,t){return Mq(e,t)+[" And for dates see: "+rot+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}Eae.exports={axisHoverFormat:iot,descriptionOnlyNumbers:Mq,descriptionWithDates:Mae}});var Dd=Te((Fnr,Hae)=>{"use strict";var kae=gc(),w3=Ih(),Gae=Id().dash,kq=Su().extendFlat,Cae=Pf().templatedArray,Dnr=Nu().templateFormatStringDescription,Lae=jc().descriptionWithDates,not=nf().ONEDAY,vy=dd(),aot=vy.HOUR_PATTERN,oot=vy.WEEKDAY_PATTERN,Eq={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},sot=kq({},Eq,{values:Eq.values.slice().concat(["sync"])});function Pae(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var zae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Iae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Rae={valType:"data_array",editType:"ticks"},Dae={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function Fae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function Bae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Oae={valType:"color",dflt:w3.defaultLine,editType:"ticks"},qae={valType:"color",dflt:w3.lightLine,editType:"ticks"};function Nae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Uae=kq({},Gae,{editType:"ticks"}),Vae={valType:"boolean",editType:"ticks"};Hae.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:kae({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[vy.idRegex.x.toString(),vy.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[vy.idRegex.x.toString(),vy.idRegex.y.toString()],editType:"calc"},rangebreaks:Cae("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[oot,aot,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:not},editType:"calc"}),tickmode:sot,nticks:Pae(),tick0:zae,dtick:Iae,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:Rae,ticktext:{valType:"data_array",editType:"ticks"},ticks:Dae,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:Fae(),tickwidth:Bae(),tickcolor:Oae,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:kq({},Gae,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:kae({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:Lae("tick label")},tickformatstops:Cae("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:Lae("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:w3.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:Vae,gridcolor:qae,gridwidth:Nae(),griddash:Uae,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",vy.idRegex.x.toString(),vy.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",vy.idRegex.x.toString(),vy.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Eq,nticks:Pae("minor"),tick0:zae,dtick:Iae,tickvals:Rae,ticks:Dae,ticklen:Fae("minor"),tickwidth:Bae("minor"),tickcolor:Oae,gridcolor:qae,gridwidth:Nae("minor"),griddash:Uae,showgrid:Vae,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var $L=Te((Bnr,Xae)=>{"use strict";var Nc=Dd(),Wae=gc(),jae=Su().extendFlat,lot=Sc().overrideAll;Xae.exports=lot({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:Nc.linecolor,outlinewidth:Nc.linewidth,bordercolor:Nc.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Nc.minor.tickmode,nticks:Nc.nticks,tick0:Nc.tick0,dtick:Nc.dtick,tickvals:Nc.tickvals,ticktext:Nc.ticktext,ticks:jae({},Nc.ticks,{dflt:""}),ticklabeloverflow:jae({},Nc.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:Nc.ticklen,tickwidth:Nc.tickwidth,tickcolor:Nc.tickcolor,ticklabelstep:Nc.ticklabelstep,showticklabels:Nc.showticklabels,labelalias:Nc.labelalias,tickfont:Wae({}),tickangle:Nc.tickangle,tickformat:Nc.tickformat,tickformatstops:Nc.tickformatstops,tickprefix:Nc.tickprefix,showtickprefix:Nc.showtickprefix,ticksuffix:Nc.ticksuffix,showticksuffix:Nc.showticksuffix,separatethousands:Nc.separatethousands,exponentformat:Nc.exponentformat,minexponent:Nc.minexponent,showexponent:Nc.showexponent,title:{text:{valType:"string"},font:Wae({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var nc=Te((qnr,Yae)=>{"use strict";var uot=$L(),fot=n3().counter,cot=Y1(),Zae=sb().scales,Onr=cot(Zae);function QL(e){return"`"+e+"`"}Yae.exports=function(t,r){t=t||"",r=r||{};var n=r.cLetter||"c",i="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,a="noScale"in r?r.noScale:t==="marker.line",o="showScaleDflt"in r?r.showScaleDflt:n==="z",s=typeof r.colorscaleDflt=="string"?Zae[r.colorscaleDflt]:null,u=r.editTypeOverride||"",l=t?t+".":"",f,c;"colorAttr"in r?(f=r.colorAttr,c=r.colorAttr):(f={z:"z",c:"color"}[n],c="in "+QL(l+f));var h=i?" Has an effect only if "+c+" is set to a numerical array.":"",d=n+"auto",p=n+"min",x=n+"max",b=n+"mid",v=QL(l+d),k=QL(l+p),E=QL(l+x),T=k+" and "+E,L={};L[p]=L[x]=void 0;var _={};_[d]=!1;var C={};return f==="color"&&(C.color={valType:"color",arrayOk:!0,editType:u||"style"},r.anim&&(C.color.anim=!0)),C[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:L},C[p]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:_},C[x]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:_},C[b]={valType:"number",dflt:null,editType:"calc",impliedEdits:L},C.colorscale={valType:"colorscale",editType:"calc",dflt:s,impliedEdits:{autocolorscale:!1}},C.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},C.reversescale={valType:"boolean",dflt:!1,editType:"plot"},a||(C.showscale={valType:"boolean",dflt:o,editType:"calc"},C.colorbar=uot),r.noColorAxis||(C.coloraxis={valType:"subplotid",regex:fot("coloraxis"),dflt:null,editType:"calc"}),C}});var Lq=Te((Nnr,Kae)=>{"use strict";var hot=Su().extendFlat,dot=nc(),Cq=sb().scales;Kae.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Cq.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Cq.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Cq.RdBu,editType:"calc"}},coloraxis:hot({_isSubplotObj:!0,editType:"calc"},dot("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Pq=Te((Unr,Jae)=>{"use strict";var pot=ei();Jae.exports=function(t){return pot.isPlainObject(t.colorbar)}});var Rq=Te(Iq=>{"use strict";var zq=ku(),$ae=ei(),Qae=nf(),vot=Qae.ONEDAY,mot=Qae.ONEWEEK;Iq.dtick=function(e,t){var r=t==="log",n=t==="date",i=t==="category",a=n?vot:1;if(!e)return a;if(zq(e))return e=Number(e),e<=0?a:i?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||r))return a;var o=e.charAt(0),s=e.substr(1);return s=zq(s)?Number(s):0,s<=0||!(n&&o==="M"&&s===Math.round(s)||r&&o==="L"||r&&o==="D"&&(s===1||s===2))?a:e};Iq.tick0=function(e,t,r,n){if(t==="date")return $ae.cleanDate(e,$ae.dateTick0(r,n%mot===0?1:0));if(!(n==="D1"||n==="D2"))return zq(e)?Number(e):0}});var xb=Te((Gnr,toe)=>{"use strict";var eoe=Rq(),yot=ei().isArrayOrTypedArray,got=mp().isTypedArraySpec,_ot=mp().decodeTypedArraySpec;toe.exports=function(t,r,n,i,a){a||(a={});var o=a.isMinor,s=o?t.minor||{}:t,u=o?r.minor:r,l=o?"minor.":"";function f(k){var E=s[k];return got(E)&&(E=_ot(E)),E!==void 0?E:(u._template||{})[k]}var c=f("tick0"),h=f("dtick"),d=f("tickvals"),p=yot(d)?"array":h?"linear":"auto",x=n(l+"tickmode",p);if(x==="auto"||x==="sync")n(l+"nticks");else if(x==="linear"){var b=u.dtick=eoe.dtick(h,i);u.tick0=eoe.tick0(c,i,r.calendar,b)}else if(i!=="multicategory"){var v=n(l+"tickvals");v===void 0?u.tickmode="auto":o||n("ticktext")}}});var A3=Te((Hnr,ioe)=>{"use strict";var Dq=ei(),roe=Dd();ioe.exports=function(t,r,n,i){var a=i.isMinor,o=a?t.minor||{}:t,s=a?r.minor:r,u=a?roe.minor:roe,l=a?"minor.":"",f=Dq.coerce2(o,s,u,"ticklen",a?(r.ticklen||5)*.6:void 0),c=Dq.coerce2(o,s,u,"tickwidth",a?r.tickwidth||1:void 0),h=Dq.coerce2(o,s,u,"tickcolor",(a?r.tickcolor:void 0)||s.color),d=n(l+"ticks",!a&&i.outerTicks||f||c||h?"outside":"");d||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}});var Fq=Te((Wnr,noe)=>{"use strict";noe.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],n=r.filter(function(a){return t[a]!==void 0}),i=function(a){return t[a]===t[n[0]]};if(n.every(i)||n.length===1)return t[n[0]]}});var Jd=Te((jnr,aoe)=>{"use strict";var eP=ei(),xot=Pf();aoe.exports=function(t,r,n){var i=n.name,a=n.inclusionAttr||"visible",o=r[i],s=eP.isArrayOrTypedArray(t[i])?t[i]:[],u=r[i]=[],l=xot.arrayTemplater(r,i,a),f,c;for(f=0;f{"use strict";var Bq=ei(),bot=jl().contrast,ooe=Dd(),wot=Fq(),Aot=Jd();soe.exports=function(t,r,n,i,a){a||(a={});var o=n("labelalias");Bq.isPlainObject(o)||delete r.labelalias;var s=wot(t),u=n("showticklabels");if(u){a.noTicklabelshift||n("ticklabelshift"),a.noTicklabelstandoff||n("ticklabelstandoff");var l=a.font||{},f=r.color,c=r.ticklabelposition||"",h=c.indexOf("inside")!==-1?bot(a.bgColor):f&&f!==ooe.color.dflt?f:l.color;if(Bq.coerceFont(n,"tickfont",l,{overrideDflt:{color:h}}),!a.noTicklabelstep&&i!=="multicategory"&&i!=="log"&&n("ticklabelstep"),!a.noAng){var d=n("tickangle");!a.noAutotickangles&&d==="auto"&&n("autotickangles")}if(i!=="category"){var p=n("tickformat");Aot(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Tot}),r.tickformatstops.length||delete r.tickformatstops,!a.noExp&&!p&&i!=="date"&&(n("showexponent",s),n("exponentformat"),n("minexponent"),n("separatethousands"))}!a.noMinorloglabels&&i==="log"&&n("minorloglabels")}};function Tot(e,t){function r(i,a){return Bq.coerce(e,t,ooe.tickformatstops,i,a)}var n=r("enabled");n&&(r("dtickrange"),r("value"))}});var r_=Te((Znr,loe)=>{"use strict";var Sot=Fq();loe.exports=function(t,r,n,i,a){a||(a={});var o=a.tickSuffixDflt,s=Sot(t),u=n("tickprefix");u&&n("showtickprefix",s);var l=n("ticksuffix",o);l&&n("showticksuffix",s)}});var Oq=Te((Ynr,uoe)=>{"use strict";var i_=ei(),Mot=Pf(),Eot=xb(),kot=A3(),Cot=t_(),Lot=r_(),Pot=$L();uoe.exports=function(t,r,n){var i=Mot.newContainer(r,"colorbar"),a=t.colorbar||{};function o(A,B){return i_.coerce(a,i,Pot,A,B)}var s=n.margin||{t:0,b:0,l:0,r:0},u=n.width-s.l-s.r,l=n.height-s.t-s.b,f=o("orientation"),c=f==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(c?u:l):30);var d=o("lenmode");o("len",d==="fraction"?1:c?l:u);var p=o("yref"),x=o("xref"),b=p==="paper",v=x==="paper",k,E,T,L="left";c?(T="middle",L=v?"left":"right",k=v?1.02:1,E=.5):(T=b?"bottom":"top",L="center",k=.5,E=b?1.02:1),i_.coerce(a,i,{x:{valType:"number",min:v?-2:0,max:v?3:1,dflt:k}},"x"),i_.coerce(a,i,{y:{valType:"number",min:b?-2:0,max:b?3:1,dflt:E}},"y"),o("xanchor",L),o("xpad"),o("yanchor",T),o("ypad"),i_.noneOrAll(a,i,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var _=i_.coerce(a,i,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",_.indexOf("inside")!==-1?"hide past domain":"hide past div"),Eot(a,i,o,"linear");var C=n.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:C};_.indexOf("inside")!==-1&&(S.bgColor="black"),Lot(a,i,o,"linear",S),Cot(a,i,o,"linear",S),kot(a,i,o,"linear",S),o("title.text",n._dfltTitle.colorbar);var m=i.showticklabels?i.tickfont:C,P=i_.extendFlat({},C,{family:m.family,size:i_.bigFont(m.size)});i_.coerceFont(o,"title.font",P),o("title.side",c?"top":"right")}});var ed=Te((Knr,hoe)=>{"use strict";var foe=ku(),Nq=ei(),zot=Pq(),Iot=Oq(),coe=sb().isValid,Rot=$l().traceIs;function qq(e,t){var r=t.slice(0,t.length-1);return t?Nq.nestedProperty(e,r).get()||{}:e}hoe.exports=function e(t,r,n,i,a){var o=a.prefix,s=a.cLetter,u="_module"in r,l=qq(t,o),f=qq(r,o),c=qq(r._template||{},o)||{},h=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,n,i,a)};if(u){var d=n._colorAxes||{},p=i(o+"coloraxis");if(p){var x=Rot(r,"contour")&&Nq.nestedProperty(r,"contours.coloring").get()||"heatmap",b=d[p];b?(b[2].push(h),b[0]!==x&&(b[0]=!1,Nq.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[x,r,[h]];return}}var v=l[s+"min"],k=l[s+"max"],E=foe(v)&&foe(k)&&v{"use strict";var doe=ei(),Dot=Pf(),poe=Lq(),Fot=ed();voe.exports=function(t,r){function n(c,h){return doe.coerce(t,r,poe,c,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var i=r._colorAxes,a,o;function s(c,h){return doe.coerce(a,o,poe.coloraxis,c,h)}for(var u in i){var l=i[u];if(l[0])a=t[u]||{},o=Dot.newContainer(r,u,"coloraxis"),o._name=u,Fot(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var Bot=ei(),Oot=Rp().hasColorscale,qot=Rp().extractOpts;yoe.exports=function(t,r){function n(f,c){var h=f["_"+c];h!==void 0&&(f[c]=h)}function i(f,c){var h=c.container?Bot.nestedProperty(f,c.container).get():f;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var d=qot(h),p=d.auto;(p||d.min===void 0)&&n(h,c.min),(p||d.max===void 0)&&n(h,c.max),d.autocolorscale&&n(h,"colorscale")}}for(var a=0;a{"use strict";var _oe=ku(),Uq=ei(),Not=Rp().extractOpts;xoe.exports=function(t,r,n){var i=t._fullLayout,a=n.vals,o=n.containerStr,s=o?Uq.nestedProperty(r,o).get():r,u=Not(s),l=u.auto!==!1,f=u.min,c=u.max,h=u.mid,d=function(){return Uq.aggNums(Math.min,null,a)},p=function(){return Uq.aggNums(Math.max,null,a)};if(f===void 0?f=d():l&&(s._colorAx&&_oe(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():l&&(s._colorAx&&_oe(c)?c=Math.max(c,p()):c=p()),l&&h!==void 0&&(c-h>h-f?f=h-(c-h):c-h=0?x=i.colorscale.sequential:x=i.colorscale.sequentialminus,u._sync("colorscale",x)}}});var _c=Te((ear,boe)=>{"use strict";var tP=sb(),T3=Rp();boe.exports={moduleType:"component",name:"colorscale",attributes:nc(),layoutAttributes:Lq(),supplyLayoutDefaults:moe(),handleDefaults:ed(),crossTraceDefaults:goe(),calc:Dp(),scales:tP.scales,defaultScale:tP.defaultScale,getScale:tP.get,isValidScale:tP.isValid,hasColorscale:T3.hasColorscale,extractOpts:T3.extractOpts,extractScale:T3.extractScale,flipScale:T3.flipScale,makeColorScaleFunc:T3.makeColorScaleFunc,makeColorScaleFuncFromTrace:T3.makeColorScaleFuncFromTrace}});var lc=Te((tar,Aoe)=>{"use strict";var woe=ei(),Uot=mp().isTypedArraySpec;Aoe.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return woe.isPlainObject(t)&&(woe.isArrayOrTypedArray(t.size)||Uot(t.size))}}});var S3=Te((rar,Toe)=>{"use strict";var Vot=ku();Toe.exports=function(t,r){r||(r=2);var n=t.marker,i=n.sizeref||1,a=n.sizemin||0,o=n.sizemode==="area"?function(s){return Math.sqrt(s/i)}:function(s){return s/i};return function(s){var u=o(s/r);return Vot(u)&&u>0?Math.max(u,a):0}}});var rv=Te(yp=>{"use strict";var Soe=ei();yp.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};yp.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],n=e.yaxes||[],i=0;i=0&&r.index{koe.exports=Xot;var Vq={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},jot=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Xot(e){var t=[];return e.replace(jot,function(r,n,i){var a=n.toLowerCase();for(i=Yot(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==Vq[a])return i.unshift(n),t.push(i);if(i.length{"use strict";var Kot=$M(),wl=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},af="M0,0Z",Coe=Math.sqrt(2),n_=Math.sqrt(3),Gq=Math.PI,Hq=Math.cos,Wq=Math.sin;Roe.exports={circle:{n:0,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return r?sf(t,r,i):i}},square:{n:1,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.3,2);return sf(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,t,r){if(of(t))return af;var n=wl(e*.4,2),i=wl(e*1.2,2);return sf(t,r,"M"+i+","+n+"H"+n+"V"+i+"H-"+n+"V"+n+"H-"+i+"V-"+n+"H-"+n+"V-"+i+"H"+n+"V-"+n+"H"+i+"Z")}},x:{n:4,f:function(e,t,r){if(of(t))return af;var n=wl(e*.8/Coe,2),i="l"+n+","+n,a="l"+n+",-"+n,o="l-"+n+",-"+n,s="l-"+n+","+n;return sf(t,r,"M0,"+n+i+a+o+a+o+s+o+s+i+s+i+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(of(t))return af;var n=wl(e*2/n_,2),i=wl(e/2,2),a=wl(e,2);return sf(t,r,"M-"+n+","+i+"H"+n+"L0,-"+a+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(of(t))return af;var n=wl(e*2/n_,2),i=wl(e/2,2),a=wl(e,2);return sf(t,r,"M-"+n+",-"+i+"H"+n+"L0,"+a+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(of(t))return af;var n=wl(e*2/n_,2),i=wl(e/2,2),a=wl(e,2);return sf(t,r,"M"+i+",-"+n+"V"+n+"L-"+a+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(of(t))return af;var n=wl(e*2/n_,2),i=wl(e/2,2),a=wl(e,2);return sf(t,r,"M-"+i+",-"+n+"V"+n+"L"+a+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(of(t))return af;var n=wl(e*.6,2),i=wl(e*1.2,2);return sf(t,r,"M-"+i+",-"+n+"H"+n+"V"+i+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(of(t))return af;var n=wl(e*.6,2),i=wl(e*1.2,2);return sf(t,r,"M"+n+",-"+i+"V"+n+"H-"+i+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(of(t))return af;var n=wl(e*.6,2),i=wl(e*1.2,2);return sf(t,r,"M"+i+","+n+"H-"+n+"V-"+i+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(of(t))return af;var n=wl(e*.6,2),i=wl(e*1.2,2);return sf(t,r,"M-"+n+","+i+"V-"+n+"H"+i+"Z")}},pentagon:{n:13,f:function(e,t,r){if(of(t))return af;var n=wl(e*.951,2),i=wl(e*.588,2),a=wl(-e,2),o=wl(e*-.309,2),s=wl(e*.809,2);return sf(t,r,"M"+n+","+o+"L"+i+","+s+"H-"+i+"L-"+n+","+o+"L0,"+a+"Z")}},hexagon:{n:14,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e/2,2),a=wl(e*n_/2,2);return sf(t,r,"M"+a+",-"+i+"V"+i+"L0,"+n+"L-"+a+","+i+"V-"+i+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e/2,2),a=wl(e*n_/2,2);return sf(t,r,"M-"+i+","+a+"H"+i+"L"+n+",0L"+i+",-"+a+"H-"+i+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,t,r){if(of(t))return af;var n=wl(e*.924,2),i=wl(e*.383,2);return sf(t,r,"M-"+i+",-"+n+"H"+i+"L"+n+",-"+i+"V"+i+"L"+i+","+n+"H-"+i+"L-"+n+","+i+"V-"+i+"Z")}},star:{n:17,f:function(e,t,r){if(of(t))return af;var n=e*1.4,i=wl(n*.225,2),a=wl(n*.951,2),o=wl(n*.363,2),s=wl(n*.588,2),u=wl(-n,2),l=wl(n*-.309,2),f=wl(n*.118,2),c=wl(n*.809,2),h=wl(n*.382,2);return sf(t,r,"M"+i+","+l+"H"+a+"L"+o+","+f+"L"+s+","+c+"L0,"+h+"L-"+s+","+c+"L-"+o+","+f+"L-"+a+","+l+"H-"+i+"L0,"+u+"Z")}},hexagram:{n:18,f:function(e,t,r){if(of(t))return af;var n=wl(e*.66,2),i=wl(e*.38,2),a=wl(e*.76,2);return sf(t,r,"M-"+a+",0l-"+i+",-"+n+"h"+a+"l"+i+",-"+n+"l"+i+","+n+"h"+a+"l-"+i+","+n+"l"+i+","+n+"h-"+a+"l-"+i+","+n+"l-"+i+",-"+n+"h-"+a+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(of(t))return af;var n=wl(e*n_*.8,2),i=wl(e*.8,2),a=wl(e*1.6,2),o=wl(e*4,2),s="A "+o+","+o+" 0 0 1 ";return sf(t,r,"M-"+n+","+i+s+n+","+i+s+"0,-"+a+s+"-"+n+","+i+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(of(t))return af;var n=wl(e*n_*.8,2),i=wl(e*.8,2),a=wl(e*1.6,2),o=wl(e*4,2),s="A "+o+","+o+" 0 0 1 ";return sf(t,r,"M"+n+",-"+i+s+"-"+n+",-"+i+s+"0,"+a+s+n+",-"+i+"Z")}},"star-square":{n:21,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.1,2),i=wl(e*2,2),a="A "+i+","+i+" 0 0 1 ";return sf(t,r,"M-"+n+",-"+n+a+"-"+n+","+n+a+n+","+n+a+n+",-"+n+a+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.4,2),i=wl(e*1.9,2),a="A "+i+","+i+" 0 0 1 ";return sf(t,r,"M-"+n+",0"+a+"0,"+n+a+n+",0"+a+"0,-"+n+a+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(of(t))return af;var n=wl(e*.7,2),i=wl(e*1.4,2);return sf(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.4,2),i=wl(e*.7,2);return sf(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e/Coe,2);return sf(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.3,2);return sf(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.3,2),i=wl(e*.65,2);return sf(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+i+",-"+i+"L"+i+","+i+"M-"+i+","+i+"L"+i+",-"+i)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.4,2);return sf(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.2,2),i=wl(e*.85,2);return sf(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(of(t))return af;var n=wl(e/2,2),i=wl(e,2);return sf(t,r,"M"+n+","+i+"V-"+i+"M"+(n-i)+",-"+i+"V"+i+"M"+i+","+n+"H-"+i+"M-"+i+","+(n-i)+"H"+i)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.2,2),i=wl(e*1.6,2),a=wl(e*.8,2);return sf(t,r,"M-"+n+","+a+"L0,0M"+n+","+a+"L0,0M0,-"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.2,2),i=wl(e*1.6,2),a=wl(e*.8,2);return sf(t,r,"M-"+n+",-"+a+"L0,0M"+n+",-"+a+"L0,0M0,"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.2,2),i=wl(e*1.6,2),a=wl(e*.8,2);return sf(t,r,"M"+a+","+n+"L0,0M"+a+",-"+n+"L0,0M-"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.2,2),i=wl(e*1.6,2),a=wl(e*.8,2);return sf(t,r,"M-"+a+","+n+"L0,0M-"+a+",-"+n+"L0,0M"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.4,2);return sf(t,r,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(of(t))return af;var n=wl(e*1.4,2);return sf(t,r,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(of(t))return af;var n=wl(e,2);return sf(t,r,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e*2,2);return sf(t,r,"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e*2,2);return sf(t,r,"M0,0L-"+n+",-"+i+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(of(t))return af;var n=wl(e*2,2),i=wl(e,2);return sf(t,r,"M0,0L"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(of(t))return af;var n=wl(e*2,2),i=wl(e,2);return sf(t,r,"M0,0L-"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e*2,2);return sf(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(of(t))return af;var n=wl(e,2),i=wl(e*2,2);return sf(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+i+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(of(t))return af;var n=wl(e*2,2),i=wl(e,2);return sf(t,r,"M0,-"+i+"V"+i+"M0,0L"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(of(t))return af;var n=wl(e*2,2),i=wl(e,2);return sf(t,r,"M0,-"+i+"V"+i+"M0,0L-"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(of(t))return af;var n=Gq/2.5,i=2*e*Hq(n),a=2*e*Wq(n);return sf(t,r,"M0,0L"+-i+","+a+"L"+i+","+a+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(of(t))return af;var n=Gq/4,i=2*e*Hq(n),a=2*e*Wq(n);return sf(t,r,"M0,0L"+-i+","+a+"A "+2*e+","+2*e+" 0 0 1 "+i+","+a+"Z")},backoff:.4,noDot:!0}};function of(e){return e===null}var Loe,Poe,zoe,Ioe;function sf(e,t,r){if((!e||e%360===0)&&!t)return r;if(zoe===e&&Ioe===t&&Loe===r)return Poe;zoe=e,Ioe=t,Loe=r;function n(b,v){var k=Hq(b),E=Wq(b),T=v[0],L=v[1]+(t||0);return[T*k-L*E,T*E+L*k]}for(var i=e/180*Gq,a=0,o=0,s=Kot(r),u="",l=0;l{"use strict";var pd=Jl(),uc=ei(),Jot=uc.numberFormat,Tb=ku(),Jq=cd(),iP=$l(),$d=jl(),$ot=_c(),e5=uc.strTranslate,nP=Zf(),Qot=jv(),est=Qh(),tst=est.LINE_SPACING,Woe=U1().DESELECTDIM,rst=lc(),ist=S3(),nst=rv().appendArrayPointValue,Hl=tse.exports={};Hl.font=function(e,t){var r=t.variant,n=t.style,i=t.weight,a=t.color,o=t.size,s=t.family,u=t.shadow,l=t.lineposition,f=t.textcase;s&&e.style("font-family",s),o+1&&e.style("font-size",o+"px"),a&&e.call($d.fill,a),i&&e.style("font-weight",i),n&&e.style("font-style",n),r&&e.style("font-variant",r),f&&e.style("text-transform",jq(ost(f))),u&&e.style("text-shadow",u==="auto"?nP.makeTextShadow($d.contrast(a)):jq(u)),l&&e.style("text-decoration-line",jq(sst(l)))};function jq(e){return e==="none"?void 0:e}var ast={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function ost(e){return ast[e]}function sst(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Hl.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};Hl.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};Hl.setRect=function(e,t,r,n,i){e.call(Hl.setPosition,t,r).call(Hl.setSize,n,i)};Hl.translatePoint=function(e,t,r,n){var i=r.c2p(e.x),a=n.c2p(e.y);if(Tb(i)&&Tb(a)&&t.node())t.node().nodeName==="text"?t.attr("x",i).attr("y",a):t.attr("transform",e5(i,a));else return!1;return!0};Hl.translatePoints=function(e,t,r){e.each(function(n){var i=pd.select(this);Hl.translatePoint(n,i,t,r)})};Hl.hideOutsideRangePoint=function(e,t,r,n,i,a){t.attr("display",r.isPtWithinRange(e,i)&&n.isPtWithinRange(e,a)?null:"none")};Hl.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,n=t.yaxis;e.each(function(i){var a=i[0].trace,o=a.xcalendar,s=a.ycalendar,u=iP.traceIs(a,"bar-like")?".bartext":".point,.textpoint";e.selectAll(u).each(function(l){Hl.hideOutsideRangePoint(l,pd.select(this),r,n,o,s)})})}};Hl.crispRound=function(e,t,r){return!t||!Tb(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};Hl.singleLineStyle=function(e,t,r,n,i){t.style("fill","none");var a=(((e||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=i||a.dash||"";$d.stroke(t,n||a.color),Hl.dashLine(t,s,o)};Hl.lineGroupStyle=function(e,t,r,n){e.style("fill","none").each(function(i){var a=(((i||[])[0]||{}).trace||{}).line||{},o=t||a.width||0,s=n||a.dash||"";pd.select(this).call($d.stroke,r||a.color).call(Hl.dashLine,s,o)})};Hl.dashLine=function(e,t,r){r=+r||0,t=Hl.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};Hl.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function joe(e,t,r,n){var i=t.fillpattern,a=t.fillgradient,o=Hl.getPatternAttr,s=i&&(o(i.shape,0,"")||o(i.path,0,""));if(s){var u=o(i.bgcolor,0,null),l=o(i.fgcolor,0,null),f=i.fgopacity,c=o(i.size,0,8),h=o(i.solidity,0,.3),d=t.uid;Hl.pattern(e,"point",r,d,s,c,h,void 0,i.fillmode,u,l,f)}else if(a&&a.type!=="none"){var p=a.type,x="scatterfill-"+t.uid;if(n&&(x="legendfill-"+t.uid),!n&&(a.start!==void 0||a.stop!==void 0)){var b,v;p==="horizontal"?(b={x:a.start,y:0},v={x:a.stop,y:0}):p==="vertical"&&(b={x:0,y:a.start},v={x:0,y:a.stop}),b.x=t._xA.c2p(b.x===void 0?t._extremes.x.min[0].val:b.x,!0),b.y=t._yA.c2p(b.y===void 0?t._extremes.y.min[0].val:b.y,!0),v.x=t._xA.c2p(v.x===void 0?t._extremes.x.max[0].val:v.x,!0),v.y=t._yA.c2p(v.y===void 0?t._extremes.y.max[0].val:v.y,!0),e.call(Yoe,r,x,"linear",a.colorscale,"fill",b,v,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(Hl.gradient,r,x,p,a.colorscale,"fill")}else t.fillcolor&&e.call($d.fill,t.fillcolor)}Hl.singleFillStyle=function(e,t){var r=pd.select(e.node()),n=r.data(),i=((n[0]||[])[0]||{}).trace||{};joe(e,i,t,!1)};Hl.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(n){var i=pd.select(this);n[0].trace&&joe(i,n[0].trace,t,r)})};var Foe=Doe();Hl.symbolNames=[];Hl.symbolFuncs=[];Hl.symbolBackOffs=[];Hl.symbolNeedLines={};Hl.symbolNoDot={};Hl.symbolNoFill={};Hl.symbolList=[];Object.keys(Foe).forEach(function(e){var t=Foe[e],r=t.n;Hl.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),Hl.symbolNames[r]=e,Hl.symbolFuncs[r]=t.f,Hl.symbolBackOffs[r]=t.backoff||0,t.needLine&&(Hl.symbolNeedLines[r]=!0),t.noDot?Hl.symbolNoDot[r]=!0:Hl.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(Hl.symbolNoFill[r]=!0)});var lst=Hl.symbolNames.length,ust="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Hl.symbolNumber=function(e){if(Tb(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=Hl.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=lst||e>=400?0:Math.floor(Math.max(e,0))};function Xoe(e,t,r,n){var i=e%100;return Hl.symbolFuncs[i](t,r,n)+(e>=200?ust:"")}var Boe=Jot("~f"),Zoe={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};Hl.gradient=function(e,t,r,n,i,a){var o=Zoe[n];return Yoe(e,t,r,o.type,i,a,o.start,o.stop,!1,o.reversed)};function Yoe(e,t,r,n,i,a,o,s,u,l){var f=i.length,c;n==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:s.x,y2:s.y,gradientUnits:u?"userSpaceOnUse":"objectBoundingBox"},reversed:l}:n==="radial"&&(c={node:"radialGradient",reversed:l});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=a.i),t.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),n.ms2mrc){var u;e.ms==="various"||o.size==="various"?u=3:u=n.ms2mrc(e.ms),e.mrc=u,n.selectedSizeFn&&(u=e.mrc=n.selectedSizeFn(e));var l=Hl.symbolNumber(e.mx||o.symbol)||0;e.om=l%200>=100;var f=eN(e,r),c=Qq(e,r);t.attr("d",Xoe(l,u,f,c))}var h=!1,d,p,x;if(e.so)x=s.outlierwidth,p=s.outliercolor,d=o.outliercolor;else{var b=(s||{}).width;x=(e.mlw+1||b+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=n.lineScale(e.mlc):uc.isArrayOrTypedArray(s.color)?p=$d.defaultLine:p=s.color,uc.isArrayOrTypedArray(o.color)&&(d=$d.defaultLine,h=!0),"mc"in e?d=e.mcc=n.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(d=n.selectedColorFn(e))}if(e.om)t.call($d.stroke,d).style({"stroke-width":(x||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:x)+"px");var v=o.gradient,k=e.mgt;k?h=!0:k=v&&v.type,uc.isArrayOrTypedArray(k)&&(k=k[0],Zoe[k]||(k=0));var E=o.pattern,T=Hl.getPatternAttr,L=E&&(T(E.shape,e.i,"")||T(E.path,e.i,""));if(k&&k!=="none"){var _=e.mgc;_?h=!0:_=v.color;var C=r.uid;h&&(C+="-"+e.i),Hl.gradient(t,i,C,k,[[0,_],[1,d]],"fill")}else if(L){var S=!1,m=E.fgcolor;!m&&a&&a.color&&(m=a.color,S=!0);var P=T(m,e.i,a&&a.color||null),A=T(E.bgcolor,e.i,null),B=E.fgopacity,F=T(E.size,e.i,8),U=T(E.solidity,e.i,.3);S=S||e.mcc||uc.isArrayOrTypedArray(E.shape)||uc.isArrayOrTypedArray(E.path)||uc.isArrayOrTypedArray(E.bgcolor)||uc.isArrayOrTypedArray(E.fgcolor)||uc.isArrayOrTypedArray(E.size)||uc.isArrayOrTypedArray(E.solidity);var G=r.uid;S&&(G+="-"+e.i),Hl.pattern(t,"point",i,G,L,F,U,e.mcc,E.fillmode,A,P,B)}else uc.isArrayOrTypedArray(d)?$d.fill(t,d[e.i]):$d.fill(t,d);x&&$d.stroke(t,p)}};Hl.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=Hl.tryColorscale(r,""),t.lineScale=Hl.tryColorscale(r,"line"),iP.traceIs(e,"symbols")&&(t.ms2mrc=rst.isBubble(e)?ist(e):function(){return(r.size||6)/2}),e.selectedpoints&&uc.extendFlat(t,Hl.makeSelectedPointStyleFns(e)),t};Hl.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.marker||{},a=r.marker||{},o=n.marker||{},s=i.opacity,u=a.opacity,l=o.opacity,f=u!==void 0,c=l!==void 0;(uc.isArrayOrTypedArray(s)||f||c)&&(t.selectedOpacityFn=function(T){var L=T.mo===void 0?i.opacity:T.mo;return T.selected?f?u:L:c?l:Woe*L});var h=i.color,d=a.color,p=o.color;(d||p)&&(t.selectedColorFn=function(T){var L=T.mcc||h;return T.selected?d||L:p||L});var x=i.size,b=a.size,v=o.size,k=b!==void 0,E=v!==void 0;return iP.traceIs(e,"symbols")&&(k||E)&&(t.selectedSizeFn=function(T){var L=T.mrc||x/2;return T.selected?k?b/2:L:E?v/2:L}),t};Hl.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.textfont||{},a=r.textfont||{},o=n.textfont||{},s=i.color,u=a.color,l=o.color;return t.selectedTextColorFn=function(f){var c=f.tc||s;return f.selected?u||c:l||(u?c:$d.addOpacity(c,Woe))},t};Hl.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Hl.makeSelectedPointStyleFns(t),n=t.marker||{},i=[];r.selectedOpacityFn&&i.push(function(a,o){a.style("opacity",r.selectedOpacityFn(o))}),r.selectedColorFn&&i.push(function(a,o){$d.fill(a,r.selectedColorFn(o))}),r.selectedSizeFn&&i.push(function(a,o){var s=o.mx||n.symbol||0,u=r.selectedSizeFn(o);a.attr("d",Xoe(Hl.symbolNumber(s),u,eN(o,t),Qq(o,t))),o.mrc2=u}),i.length&&e.each(function(a){for(var o=pd.select(this),s=0;s0?r:0}Hl.textPointStyle=function(e,t,r){if(e.size()){var n;if(t.selectedpoints){var i=Hl.makeSelectedTextStyleFns(t);n=i.selectedTextColorFn}var a=t.texttemplate,o=r._fullLayout;e.each(function(s){var u=pd.select(this),l=a?uc.extractOption(s,t,"txt","texttemplate"):uc.extractOption(s,t,"tx","text");if(!l&&l!==0){u.remove();return}if(a){var f=t._module.formatLabels,c=f?f(s,t,o):{},h={};nst(h,t,s.i);var d=t._meta||{};l=uc.texttemplateString(l,c,o._d3locale,h,s,d)}var p=s.tp||t.textposition,x=Joe(s,t),b=n?n(s):s.tc||t.textfont.color;u.call(Hl.font,{family:s.tf||t.textfont.family,weight:s.tw||t.textfont.weight,style:s.ty||t.textfont.style,variant:s.tv||t.textfont.variant,textcase:s.tC||t.textfont.textcase,lineposition:s.tE||t.textfont.lineposition,shadow:s.tS||t.textfont.shadow,size:x,color:b}).text(l).call(nP.convertToTspans,r).call(Koe,p,x,s.mrc)})}};Hl.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Hl.makeSelectedTextStyleFns(t);e.each(function(n){var i=pd.select(this),a=r.selectedTextColorFn(n),o=n.tp||t.textposition,s=Joe(n,t);$d.fill(i,a);var u=iP.traceIs(t,"bar-like");Koe(i,o,s,n.mrc2||n.mrc,u)})}};var Ooe=.5;Hl.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],n=[],i;for(i=1;i=u||T>=f&&T<=u)&&(L<=c&&L>=l||L>=c&&L<=l)&&(e=[T,L])}return e}Hl.applyBackoff=ese;Hl.makeTester=function(){var e=uc.ensureSingleById(pd.select("body"),"svg","js-plotly-tester",function(r){r.attr(Qot.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=uc.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Hl.tester=e,Hl.testref=t};Hl.savedBBoxes={};var Zq=0,hst=1e4;Hl.bBox=function(e,t,r){r||(r=qoe(e));var n;if(r){if(n=Hl.savedBBoxes[r],n)return uc.extendFlat({},n)}else if(e.childNodes.length===1){var i=e.childNodes[0];if(r=qoe(i),r){var a=+i.getAttribute("x")||0,o=+i.getAttribute("y")||0,s=i.getAttribute("transform");if(!s){var u=Hl.bBox(i,!1,r);return a&&(u.left+=a,u.right+=a),o&&(u.top+=o,u.bottom+=o),u}if(r+="~"+a+"~"+o+"~"+s,n=Hl.savedBBoxes[r],n)return uc.extendFlat({},n)}}var l,f;t?l=e:(f=Hl.tester.node(),l=e.cloneNode(!0),f.appendChild(l)),pd.select(l).attr("transform",null).call(nP.positionText,0,0);var c=l.getBoundingClientRect(),h=Hl.testref.node().getBoundingClientRect();t||f.removeChild(l);var d={height:c.height,width:c.width,left:c.left-h.left,top:c.top-h.top,right:c.right-h.left,bottom:c.bottom-h.top};return Zq>=hst&&(Hl.savedBBoxes={},Zq=0),r&&(Hl.savedBBoxes[r]=d),Zq++,uc.extendFlat({},d)};function qoe(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Hl.setClipUrl=function(e,t,r){e.attr("clip-path",$q(t,r))};function $q(e,t){if(!e)return null;var r=t._context,n=r._exportedPlot?"":r._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}Hl.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||0,y:+i[1]||0}};Hl.setTranslate=function(e,t,r){var n=/(\btranslate\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||0,r=r||0,o=o.replace(n,"").trim(),o+=e5(t,r),o=o.trim(),e[a]("transform",o),o};Hl.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||1,y:+i[1]||1}};Hl.setScale=function(e,t,r){var n=/(\bscale\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||1,r=r||1,o=o.replace(n,"").trim(),o+="scale("+t+","+r+")",o=o.trim(),e[a]("transform",o),o};var dst=/\s*sc.*/;Hl.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var n=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var i=(this.getAttribute("transform")||"").replace(dst,"");i+=n,i=i.trim(),this.setAttribute("transform",i)})}};var pst=/translate\([^)]*\)\s*$/;Hl.setTextPointsScale=function(e,t,r){e&&e.each(function(){var n,i=pd.select(this),a=i.select("text");if(a.node()){var o=parseFloat(a.attr("x")||0),s=parseFloat(a.attr("y")||0),u=(i.attr("transform")||"").match(pst);t===1&&r===1?n=[]:n=[e5(o,s),"scale("+t+","+r+")",e5(-o,-s)],u&&n.push(u),i.attr("transform",n.join(""))}})};function Qq(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}Hl.getMarkerStandoff=Qq;var QM=Math.atan2,bb=Math.cos,E3=Math.sin;function Noe(e,t){var r=t[0],n=t[1];return[r*bb(e)-n*E3(e),r*E3(e)+n*bb(e)]}var Uoe,Voe,Goe,Hoe,Yq,Kq;function eN(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!r||uc.isArrayOrTypedArray(r))&&(r=0));var n,i,a=t.marker.angleref;if(a==="previous"||a==="north"){if(t._geo){var o=t._geo.project(e.lonlat);n=o[0],i=o[1]}else{var s=t._xA,u=t._yA;if(s&&u)n=s.c2p(e.x),i=u.c2p(e.y);else return 90}if(t._geo){var l=e.lonlat[0],f=e.lonlat[1],c=t._geo.project([l,f+1e-5]),h=t._geo.project([l+1e-5,f]),d=QM(h[1]-i,h[0]-n),p=QM(c[1]-i,c[0]-n),x;if(a==="north")x=r/180*Math.PI;else if(a==="previous"){var b=l/180*Math.PI,v=f/180*Math.PI,k=Uoe/180*Math.PI,E=Voe/180*Math.PI,T=k-b,L=bb(E)*E3(T),_=E3(E)*bb(v)-bb(E)*E3(v)*bb(T);x=-QM(L,_)-Math.PI,Uoe=l,Voe=f}var C=Noe(d,[bb(x),0]),S=Noe(p,[E3(x),0]);r=QM(C[1]+S[1],C[0]+S[0])/Math.PI*180,a==="previous"&&!(Kq===t.uid&&e.i===Yq+1)&&(r=null)}if(a==="previous"&&!t._geo)if(Kq===t.uid&&e.i===Yq+1&&Tb(n)&&Tb(i)){var m=n-Goe,P=i-Hoe,A=t.line&&t.line.shape||"",B=A.slice(A.length-1);B==="h"&&(P=0),B==="v"&&(m=0),r+=QM(P,m)/Math.PI*180+90}else r=null}return Goe=n,Hoe=i,Yq=e.i,Kq=t.uid,r}Hl.getMarkerAngle=eN});var Mb=Te((sar,ase)=>{"use strict";var k3=Jl(),vst=ku(),mst=Cc(),tN=$l(),Sb=ei(),rse=Sb.strTranslate,aP=Mu(),oP=jl(),C3=Zf(),ise=U1(),yst=Qh().OPPOSITE_SIDE,nse=/ [XY][0-9]* /,rN=1.6,iN=1.6;function gst(e,t,r){var n=e._fullLayout,i=r.propContainer,a=r.propName,o=r.placeholder,s=r.traceIndex,u=r.avoid||{},l=r.attributes,f=r.transform,c=r.containerGroup,h=1,d=i.title,p=(d&&d.text?d.text:"").trim(),x=!1,b=d&&d.font?d.font:{},v=b.family,k=b.size,E=b.color,T=b.weight,L=b.style,_=b.variant,C=b.textcase,S=b.lineposition,m=b.shadow,P=r.subtitlePropName,A=!!P,B=r.subtitlePlaceholder,F=(i.title||{}).subtitle||{text:"",font:{}},U=F.text.trim(),G=!1,j=1,H=F.font,N=H.family,W=H.size,re=H.color,ae=H.weight,be=H.style,Ce=H.variant,Le=H.textcase,pe=H.lineposition,te=H.shadow,ke;a==="title.text"?ke="titleText":a.indexOf("axis")!==-1?ke="axisTitleText":a.indexOf("colorbar")!==-1&&(ke="colorbarTitleText");var Ee=e._context.edits[ke];function Me(Tt,St){return Tt===void 0||St===void 0?!1:Tt.replace(nse," % ")===St.replace(nse," % ")}p===""?h=0:Me(p,o)&&(Ee||(p=""),h=.2,x=!0),A&&(U===""?j=0:Me(U,B)&&(Ee||(U=""),j=.2,G=!0)),r._meta?p=Sb.templateString(p,r._meta):n._meta&&(p=Sb.templateString(p,n._meta));var Ne=p||U||Ee,Fe;c||(c=Sb.ensureSingle(n._infolayer,"g","g-"+t),Fe=n._hColorbarMoveTitle);var ye=c.selectAll("text."+t).data(Ne?[0]:[]);ye.enter().append("text"),ye.text(p).attr("class",t),ye.exit().remove();var Ve=null,ce=t+"-subtitle",Je=U||Ee;if(A&&Je&&(Ve=c.selectAll("text."+ce).data(Je?[0]:[]),Ve.enter().append("text"),Ve.text(U).attr("class",ce),Ve.exit().remove()),!Ne)return c;function nt(Tt,St){Sb.syncOrAsync([gt,Nt],{title:Tt,subtitle:St})}function gt(Tt){var St=Tt.title,Dt=Tt.subtitle,Zt;!f&&Fe&&(f={}),f?(Zt="",f.rotate&&(Zt+="rotate("+[f.rotate,l.x,l.y]+")"),(f.offset||Fe)&&(Zt+=rse(0,(f.offset||0)-(Fe||0)))):Zt=null,St.attr("transform",Zt);function Et(Ue){if(Ue){var rt=k3.select(Ue.node().parentNode).select("."+ce);if(!rt.empty()){var $e=Ue.node().getBBox();if($e.height){var zt=$e.y+$e.height+rN*W;rt.attr("y",zt)}}}}if(St.style("opacity",h*oP.opacity(E)).call(aP.font,{color:oP.rgb(E),size:k3.round(k,2),family:v,weight:T,style:L,variant:_,textcase:C,shadow:m,lineposition:S}).attr(l).call(C3.convertToTspans,e,Et),Dt){var Ae=c.select("."+t+"-math-group"),at=St.node().getBBox(),wt=Ae.node()?Ae.node().getBBox():void 0,vt=wt?wt.y+wt.height+rN*W:at.y+at.height+iN*W,st=Sb.extendFlat({},l,{y:vt});Dt.attr("transform",Zt),Dt.style("opacity",j*oP.opacity(re)).call(aP.font,{color:oP.rgb(re),size:k3.round(W,2),family:N,weight:ae,style:be,variant:Ce,textcase:Le,shadow:te,lineposition:pe}).attr(st).call(C3.convertToTspans,e)}return mst.previousPromises(e)}function Nt(Tt){var St=Tt.title,Dt=k3.select(St.node().parentNode);if(u&&u.selection&&u.side&&p){Dt.attr("transform",null);var Zt=yst[u.side],Et=u.side==="left"||u.side==="top"?-1:1,Ae=vst(u.pad)?u.pad:2,at=aP.bBox(Dt.node()),wt={t:0,b:0,l:0,r:0},vt=e._fullLayout._reservedMargin;for(var st in vt)for(var Ue in vt[st]){var rt=vt[st][Ue];wt[Ue]=Math.max(wt[Ue],rt)}var $e={left:wt.l,top:wt.t,right:n.width-wt.r,bottom:n.height-wt.b},zt=u.maxShift||Et*($e[u.side]-at[u.side]),Yt=0;if(zt<0)Yt=zt;else{var hr=u.offsetLeft||0,yr=u.offsetTop||0;at.left-=hr,at.right-=hr,at.top-=yr,at.bottom-=yr,u.selection.each(function(){var Ut=aP.bBox(this);Sb.bBoxIntersect(at,Ut,Ae)&&(Yt=Math.max(Yt,Et*(Ut[u.side]-at[Zt])+Ae))}),Yt=Math.min(zt,Yt),i._titleScoot=Math.abs(Yt)}if(Yt>0||zt<0){var br={left:[-Yt,0],right:[Yt,0],top:[0,-Yt],bottom:[0,Yt]}[u.side];Dt.attr("transform",rse(br[0],br[1]))}}}ye.call(nt,Ve);function it(Tt,St){Tt.text(St).on("mouseover.opacity",function(){k3.select(this).transition().duration(ise.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){k3.select(this).transition().duration(ise.HIDE_PLACEHOLDER).style("opacity",0)})}if(Ee&&(p?ye.on(".opacity",null):(it(ye,o),x=!0),ye.call(C3.makeEditable,{gd:e}).on("edit",function(Tt){s!==void 0?tN.call("_guiRestyle",e,a,Tt,s):tN.call("_guiRelayout",e,a,Tt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(nt)}).on("input",function(Tt){this.text(Tt||" ").call(C3.positionText,l.x,l.y)}),A)){if(A&&!p){var Ye=ye.node().getBBox(),kt=Ye.y+Ye.height+iN*W;Ve.attr("y",kt)}U?Ve.on(".opacity",null):(it(Ve,B),G=!0),Ve.call(C3.makeEditable,{gd:e}).on("edit",function(Tt){tN.call("_guiRelayout",e,"title.subtitle.text",Tt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(nt)}).on("input",function(Tt){this.text(Tt||" ").call(C3.positionText,Ve.attr("x"),Ve.attr("y"))})}return ye.classed("js-placeholder",x),Ve&&Ve.classed("js-placeholder",G),c}ase.exports={draw:gst,SUBTITLE_PADDING_EM:iN,SUBTITLE_PADDING_MATHJAX_EM:rN}});var gy=Te((lar,fse)=>{"use strict";var _st=Jl(),xst=e3().utcFormat,Mc=ei(),bst=Mc.numberFormat,my=ku(),a_=Mc.cleanNumber,wst=Mc.ms2DateTime,ose=Mc.dateTime2ms,yy=Mc.ensureNumber,sse=Mc.isArrayOrTypedArray,o_=nf(),sP=o_.FP_SAFE,bm=o_.BADNUM,Ast=o_.LOG_CLIP,Tst=o_.ONEWEEK,lP=o_.ONEDAY,uP=o_.ONEHOUR,lse=o_.ONEMIN,use=o_.ONESEC,fP=Wc(),dP=dd(),cP=dP.HOUR_PATTERN,hP=dP.WEEKDAY_PATTERN;function t5(e){return Math.pow(10,e)}function nN(e){return e!=null}fse.exports=function(t,r){r=r||{};var n=t._id||"x",i=n.charAt(0);function a(T,L){if(T>0)return Math.log(T)/Math.LN10;if(T<=0&&L&&t.range&&t.range.length===2){var _=t.range[0],C=t.range[1];return .5*(_+C-2*Ast*Math.abs(_-C))}else return bm}function o(T,L,_,C){if((C||{}).msUTC&&my(T))return+T;var S=ose(T,_||t.calendar);if(S===bm)if(my(T)){T=+T;var m=Math.floor(Mc.mod(T+.05,1)*10),P=Math.round(T-m/10);S=ose(new Date(P))+m/10}else return bm;return S}function s(T,L,_){return wst(T,L,_||t.calendar)}function u(T){return t._categories[Math.round(T)]}function l(T){if(nN(T)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[T]!==void 0)return t._categoriesMap[T];t._categories.push(typeof T=="number"?String(T):T);var L=t._categories.length-1;return t._categoriesMap[T]=L,L}return bm}function f(T,L){for(var _=new Array(L),C=0;Ct.range[1]&&(_=!_);for(var C=_?-1:1,S=C*T,m=0,P=0;PB)m=P+1;else{m=S<(A+B)/2?P:P+1;break}}var F=t._B[m]||0;return isFinite(F)?p(T,t._m2,F):0},v=function(T){var L=t._rangebreaks.length;if(!L)return x(T,t._m,t._b);for(var _=0,C=0;Ct._rangebreaks[C].pmax&&(_=C+1);return x(T,t._m2,t._B[_])}}t.c2l=t.type==="log"?a:yy,t.l2c=t.type==="log"?t5:yy,t.l2p=b,t.p2l=v,t.c2p=t.type==="log"?function(T,L){return b(a(T,L))}:b,t.p2c=t.type==="log"?function(T){return t5(v(T))}:v,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=a_,t.c2d=t.c2r=t.l2d=t.l2r=yy,t.d2p=t.r2p=function(T){return t.l2p(a_(T))},t.p2d=t.p2r=v,t.cleanPos=yy):t.type==="log"?(t.d2r=t.d2l=function(T,L){return a(a_(T),L)},t.r2d=t.r2c=function(T){return t5(a_(T))},t.d2c=t.r2l=a_,t.c2d=t.l2r=yy,t.c2r=a,t.l2d=t5,t.d2p=function(T,L){return t.l2p(t.d2r(T,L))},t.p2d=function(T){return t5(v(T))},t.r2p=function(T){return t.l2p(a_(T))},t.p2r=v,t.cleanPos=yy):t.type==="date"?(t.d2r=t.r2d=Mc.identity,t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=s,t.d2p=t.r2p=function(T,L,_){return t.l2p(o(T,0,_))},t.p2d=t.p2r=function(T,L,_){return s(v(T),L,_)},t.cleanPos=function(T){return Mc.cleanDate(T,bm,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=l,t.r2d=t.c2d=t.l2d=u,t.d2r=t.d2l_noadd=h,t.r2c=function(T){var L=d(T);return L!==void 0?L:t.fraction2r(.5)},t.l2r=t.c2r=yy,t.r2l=d,t.d2p=function(T){return t.l2p(t.r2c(T))},t.p2d=function(T){return u(v(T))},t.r2p=t.d2p,t.p2r=v,t.cleanPos=function(T){return typeof T=="string"&&T!==""?T:yy(T)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=u,t.d2r=t.d2l_noadd=h,t.r2c=function(T){var L=h(T);return L!==void 0?L:t.fraction2r(.5)},t.r2c_just_indices=c,t.l2r=t.c2r=yy,t.r2l=h,t.d2p=function(T){return t.l2p(t.r2c(T))},t.p2d=function(T){return u(v(T))},t.r2p=t.d2p,t.p2r=v,t.cleanPos=function(T){return Array.isArray(T)||typeof T=="string"&&T!==""?T:yy(T)},t.setupMultiCategory=function(T){var L=t._traceIndices,_,C,S=t._matchGroup;if(S&&t._categories.length===0){for(var m in S)if(m!==n){var P=r[fP.id2name(m)];L=L.concat(P._traceIndices)}}var A=[[0,{}],[0,{}]],B=[];for(_=0;_P[1]&&(C[m?0:1]=_),C[0]===C[1]){var A=t.l2r(L),B=t.l2r(_);if(L!==void 0){var F=A+1;_!==void 0&&(F=Math.min(F,B)),C[m?1:0]=F}if(_!==void 0){var U=B+1;L!==void 0&&(U=Math.max(U,A)),C[m?0:1]=U}}}},t.cleanRange=function(T,L){t._cleanRange(T,L),t.limitRange(T)},t._cleanRange=function(T,L){L||(L={}),T||(T="range");var _=Mc.nestedProperty(t,T).get(),C,S;if(t.type==="date"?S=Mc.dfltRange(t.calendar):i==="y"?S=dP.DFLTRANGEY:t._name==="realaxis"?S=[0,1]:S=L.dfltRange||dP.DFLTRANGEX,S=S.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(S[0]=0),!_||_.length!==2){Mc.nestedProperty(t,T).set(S);return}var m=_[0]===null,P=_[1]===null;for(t.type==="date"&&!t.autorange&&(_[0]=Mc.cleanDate(_[0],bm,t.calendar),_[1]=Mc.cleanDate(_[1],bm,t.calendar)),C=0;C<2;C++)if(t.type==="date"){if(!Mc.isDateTime(_[C],t.calendar)){t[T]=S;break}if(t.r2l(_[0])===t.r2l(_[1])){var A=Mc.constrain(t.r2l(_[0]),Mc.MIN_MS+1e3,Mc.MAX_MS-1e3);_[0]=t.l2r(A-1e3),_[1]=t.l2r(A+1e3);break}}else{if(!my(_[C]))if(!(m||P)&&my(_[1-C]))_[C]=_[1-C]*(C?10:.1);else{t[T]=S;break}if(_[C]<-sP?_[C]=-sP:_[C]>sP&&(_[C]=sP),_[0]===_[1]){var B=Math.max(1,Math.abs(_[0]*1e-6));_[0]-=B,_[1]+=B}}},t.setScale=function(T){var L=r._size;if(t.overlaying){var _=fP.getFromId({_fullLayout:r},t.overlaying);t.domain=_.domain}var C=T&&t._r?"_r":"range",S=t.calendar;t.cleanRange(C);var m=t.r2l(t[C][0],S),P=t.r2l(t[C][1],S),A=i==="y";if(A?(t._offset=L.t+(1-t.domain[1])*L.h,t._length=L.h*(t.domain[1]-t.domain[0]),t._m=t._length/(m-P),t._b=-t._m*P):(t._offset=L.l+t.domain[0]*L.w,t._length=L.w*(t.domain[1]-t.domain[0]),t._m=t._length/(P-m),t._b=-t._m*m),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var B,F;if(t._rangebreaks=t.locateBreaks(Math.min(m,P),Math.max(m,P)),t._rangebreaks.length){for(B=0;BP&&(U=!U),U&&t._rangebreaks.reverse();var G=U?-1:1;for(t._m2=G*t._length/(Math.abs(P-m)-t._lBreaks),t._B.push(-t._m2*(A?P:m)),B=0;BS&&(S+=7,mS&&(S+=24,m=C&&m=C&&T=te.min&&(bete.max&&(te.max=Ce),Le=!1)}Le&&P.push({min:be,max:Ce})}};for(_=0;_{"use strict";var cse=ku(),aN=ei(),Sst=nf().BADNUM,pP=aN.isArrayOrTypedArray,Mst=aN.isDateTime,Est=aN.cleanNumber,hse=Math.round;pse.exports=function(t,r,n){var i=t,a=n.noMultiCategory;if(pP(i)&&!i.length)return"-";if(!a&&zst(i))return"multicategory";if(a&&Array.isArray(i[0])){for(var o=[],s=0;sa*2}function dse(e){return Math.max(1,(e-1)/1e3)}function Pst(e,t){for(var r=e.length,n=dse(r),i=0,a=0,o={},s=0;si*2}function zst(e){return pP(e[0])&&pP(e[1])}});var wm=Te((far,wse)=>{"use strict";var Ist=Jl(),gse=ku(),s_=ei(),vP=nf().FP_SAFE,Rst=$l(),Dst=Mu(),_se=Wc(),Fst=_se.getFromId,Bst=_se.isLinked;wse.exports={applyAutorangeOptions:bse,getAutoRange:oN,makePadFn:sN,doAutoRange:qst,findExtremes:Nst,concatExtremes:fN};function oN(e,t){var r,n,i=[],a=e._fullLayout,o=sN(a,t,0),s=sN(a,t,1),u=fN(e,t),l=u.min,f=u.max;if(l.length===0||f.length===0)return s_.simpleMap(t.range,t.r2l);var c=l[0].val,h=f[0].val;for(r=1;r0&&(P=E-o(_)-s(C),P>T?A/P>L&&(S=_,m=C,L=A/P):A/E>L&&(S={val:_.val,nopad:1},m={val:C.val,nopad:1},L=A/E));function B(H,N){return Math.max(H,s(N))}if(c===h){var F=c-1,U=c+1;if(v)if(c===0)i=[0,1];else{var G=(c>0?f:l).reduce(B,0),j=c/(1-Math.min(.5,G/E));i=c>0?[0,j]:[j,0]}else k?i=[Math.max(0,F),Math.max(1,U)]:i=[F,U]}else v?(S.val>=0&&(S={val:0,nopad:1}),m.val<=0&&(m={val:0,nopad:1})):k&&(S.val-L*o(S)<0&&(S={val:0,nopad:1}),m.val<=0&&(m={val:1,nopad:1})),L=(m.val-S.val-vse(t,_.val,C.val))/(E-o(S)-s(m)),i=[S.val-L*o(S),m.val+L*s(m)];return i=bse(i,t),t.limitRange&&t.limitRange(),p&&i.reverse(),s_.simpleMap(i,t.l2r||Number)}function vse(e,t,r){var n=0;if(e.rangebreaks)for(var i=e.locateBreaks(t,r),a=0;a0?r.ppadplus:r.ppadminus)||r.ppad||0),_=T((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),C=T(r.vpadplus||r.vpad),S=T(r.vpadminus||r.vpad);if(!l){if(k=1/0,E=-1/0,u)for(c=0;c0&&(k=h),h>E&&h-vP&&(k=h),h>E&&h=A;c--)P(c);return{min:n,max:i,opts:r}}function lN(e,t,r,n){xse(e,t,r,n,Ust)}function uN(e,t,r,n){xse(e,t,r,n,Vst)}function xse(e,t,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,u=0;u=r&&(l.extrapad||!o)){s=!1;break}else i(t,l.val)&&l.pad<=r&&(o||!l.extrapad)&&(e.splice(u,1),u--)}if(s){var f=a&&t===0;e.push({val:t,pad:f?0:r,extrapad:f?!1:o})}}function yse(e){return gse(e)&&Math.abs(e)=t}function Gst(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&mP(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&mP(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function Hst(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&mP(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&mP(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function mP(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=u&&(a=u,r=u),o<=u&&(o=u,n=u)}}return r=Gst(r,t),n=Hst(n,t),[r,n]}});var wu=Te((car,Hse)=>{"use strict";var w0=Jl(),Dh=ku(),P3=Cc(),i5=$l(),Ou=ei(),z3=Ou.strTranslate,Eb=Zf(),Wst=Mb(),n5=jl(),Xv=Mu(),jst=Dd(),Ase=Rq(),Qd=nf(),Xst=Qd.ONEMAXYEAR,_P=Qd.ONEAVGYEAR,xP=Qd.ONEMINYEAR,Zst=Qd.ONEMAXQUARTER,pN=Qd.ONEAVGQUARTER,bP=Qd.ONEMINQUARTER,Yst=Qd.ONEMAXMONTH,I3=Qd.ONEAVGMONTH,wP=Qd.ONEMINMONTH,Zv=Qd.ONEWEEK,Fp=Qd.ONEDAY,l_=Fp/2,xy=Qd.ONEHOUR,a5=Qd.ONEMIN,AP=Qd.ONESEC,Kst=Qd.ONEMILLI,Jst=Qd.ONEMICROSEC,kb=Qd.MINUS_SIGN,MP=Qd.BADNUM,vN={K:"zeroline"},mN={K:"gridline",L:"path"},yN={K:"minor-gridline",L:"path"},Rse={K:"tick",L:"path"},Tse={K:"tick",L:"text"},Sse={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},EP=Qh(),r5=EP.MID_SHIFT,Cb=EP.CAP_SHIFT,o5=EP.LINE_SPACING,$st=EP.OPPOSITE_SIDE,TP=3,al=Hse.exports={};al.setConvert=gy();var Qst=L3(),Tg=Wc(),elt=Tg.idSort,tlt=Tg.isLinked;al.id2name=Tg.id2name;al.name2id=Tg.name2id;al.cleanId=Tg.cleanId;al.list=Tg.list;al.listIds=Tg.listIds;al.getFromId=Tg.getFromId;al.getFromTrace=Tg.getFromTrace;var Dse=wm();al.getAutoRange=Dse.getAutoRange;al.findExtremes=Dse.findExtremes;var rlt=1e-4;function bN(e){var t=(e[1]-e[0])*rlt;return[e[0]-t,e[1]+t]}al.coerceRef=function(e,t,r,n,i,a){var o=n.charAt(n.length-1),s=r._fullLayout._subplots[o+"axis"],u=n+"ref",l={};return i||(i=s[0]||(typeof a=="string"?a:a[0])),a||(a=i),s=s.concat(s.map(function(f){return f+" domain"})),l[u]={valType:"enumerated",values:s.concat(a?typeof a=="string"?[a]:a:[]),dflt:i},Ou.coerce(e,t,l,u)};al.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};al.coercePosition=function(e,t,r,n,i,a){var o,s,u=al.getRefType(n);if(u!=="range")o=Ou.ensureNumber,s=r(i,a);else{var l=al.getFromId(t,n);a=l.fraction2r(a),s=r(i,a),o=l.cleanPos}e[i]=o(s)};al.cleanPosition=function(e,t,r){var n=r==="paper"||r==="pixel"?Ou.ensureNumber:al.getFromId(t,r).cleanPos;return n(e)};al.redrawComponents=function(e,t){t=t||al.listIds(e);var r=e._fullLayout;function n(i,a,o,s){for(var u=i5.getComponentMethod(i,a),l={},f=0;f2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};al.saveRangeInitial=function(e,t){for(var r=al.list(e,"",!0),n=!1,i=0;ic*.3||l(n)||l(i))){var h=r.dtick/2;e+=e+ho){var s=Number(r.substr(1));a.exactYears>o&&s%12===0?e=al.tickIncrement(e,"M6","reverse")+Fp*1.5:a.exactMonths>o?e=al.tickIncrement(e,"M1","reverse")+Fp*15.5:e-=l_;var u=al.tickIncrement(e,r);if(u<=n)return u}return e}al.prepMinorTicks=function(e,t,r){if(!t.minor.dtick){delete e.dtick;var n=t.dtick&&Dh(t._tmin),i;if(n){var a=al.tickIncrement(t._tmin,t.dtick,!0);i=[t._tmin,a*.99+t._tmin*.01]}else{var o=Ou.simpleMap(t.range,t.r2l);i=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Ou.simpleMap(i,t.l2r),e._isMinor=!0,al.prepTicks(e,r),n){var s=Dh(t.dtick),u=Dh(e.dtick),l=s?t.dtick:+t.dtick.substring(1),f=u?e.dtick:+e.dtick.substring(1);s&&u?cN(l,f)?l===2*Zv&&f===2*Fp&&(e.dtick=Zv):l===2*Zv&&f===3*Fp?e.dtick=Zv:l===Zv&&!(t._input.minor||{}).nticks?e.dtick=Fp:kse(l/f,2.5)?e.dtick=l/2:e.dtick=l:String(t.dtick).charAt(0)==="M"?u?e.dtick="M1":cN(l,f)?l>=12&&f===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?cN(l,f)||(e.dtick=kse(l/f,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}t.minor._tick0Init===void 0&&(e.tick0=t.tick0)};function cN(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function kse(e,t){return Math.abs(e/t-1)<.001}al.prepTicks=function(e,t){var r=Ou.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,i;n||(e.type==="category"||e.type==="multicategory"?(i=e.tickfont?Ou.bigFont(e.tickfont.size||12):15,n=e._length/i):(i=e._id.charAt(0)==="y"?40:80,n=Ou.constrain(e._length/i,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(r[1]-r[0])/n,al.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(a=n-1,o=n):(a=n,o=n);var s=e[a].value,u=e[o].value,l=Math.abs(u-s),f=r||l,c=0;f>=xP?l>=xP&&l<=Xst?c=l:c=_P:r===pN&&f>=bP?l>=bP&&l<=Zst?c=l:c=pN:f>=wP?l>=wP&&l<=Yst?c=l:c=I3:r===Zv&&f>=Zv?c=Zv:f>=Fp?c=Fp:r===l_&&f>=l_?c=l_:r===xy&&f>=xy&&(c=xy);var h;c>=l&&(c=l,h=!0);var d=i+c;if(t.rangebreaks&&c>0){for(var p=84,x=0,b=0;bZv&&(c=l)}(c>0||n===0)&&(e[n].periodX=i+c/2)}}al.calcTicks=function(t,r){for(var n=t.type,i=t.calendar,a=t.ticklabelstep,o=t.ticklabelmode==="period",s=t.range[0]>t.range[1],u=!t.ticklabelindex||Ou.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],l=Ou.simpleMap(t.range,t.r2l,void 0,void 0,r),f=l[1]=(E?0:1);T--){var L=!T;T?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var _=T?t:Ou.extendFlat({},t,t.minor);if(L?al.prepMinorTicks(_,t,r):al.prepTicks(_,r),_.tickmode==="array"){T?(b=[],p=Cse(t,!L)):(v=[],x=Cse(t,!L));continue}if(_.tickmode==="sync"){b=[],p=llt(t);continue}var C=bN(l),S=C[0],m=C[1],P=Dh(_.dtick),A=n==="log"&&!(P||_.dtick.charAt(0)==="L"),B=al.tickFirst(_,r);if(T){if(t._tmin=B,B=m:U<=m;U=al.tickIncrement(U,H,f,i)){if(T&&G++,_.rangebreaks&&!f){if(U=h)break}if(b.length>d||U===F)break;F=U;var N={value:U};T?(A&&U!==(U|0)&&(N.simpleLabel=!0),a>1&&G%a&&(N.skipLabel=!0),b.push(N)):(N.minor=!0,v.push(N))}}if(!v||v.length<2)u=!1;else{var W=(v[1].value-v[0].value)*(s?-1:1);zlt(W,t.tickformat)||(u=!1)}if(!u)k=b;else{var re=b.concat(v);o&&b.length&&(re=re.slice(1)),re=re.sort(function(kt,Tt){return kt.value-Tt.value}).filter(function(kt,Tt,St){return Tt===0||kt.value!==St[Tt-1].value});var ae=re.map(function(kt,Tt){return kt.minor===void 0&&!kt.skipLabel?Tt:null}).filter(function(kt){return kt!==null});ae.forEach(function(kt){u.map(function(Tt){var St=kt+Tt;St>=0&&St-1;Ne--){if(b[Ne].drop){b.splice(Ne,1);continue}b[Ne].value=dN(b[Ne].value,t);var ce=t.c2p(b[Ne].value);(Fe?Ve>ce-ye:Veh||Dth&&(St.periodX=h),Dti&&h_P)t/=_P,n=i(10),e.dtick="M"+12*_y(t,n,yP);else if(a>I3)t/=I3,e.dtick="M"+_y(t,1,Lse);else if(a>Fp){if(e.dtick=_y(t,Fp,e._hasDayOfWeekBreaks?[1,2,7,14]:ult),!r){var o=al.getTickFormat(e),s=e.ticklabelmode==="period";s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Ou.dateTick0(e.calendar,2):e.tick0=Ou.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}}else a>xy?e.dtick=_y(t,xy,Lse):a>a5?e.dtick=_y(t,a5,Pse):a>AP?e.dtick=_y(t,AP,Pse):(n=i(10),e.dtick=_y(t,n,yP))}else if(e.type==="log"){e.tick0=0;var u=Ou.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(u[1]-u[0])<1){var l=1.5*Math.abs((u[1]-u[0])/t);t=Math.abs(Math.pow(10,u[1])-Math.pow(10,u[0]))/l,n=i(10),e.dtick="L"+_y(t,n,yP)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):TN(e)?(e.tick0=0,n=1,e.dtick=_y(t,n,flt)):(e.tick0=0,n=i(10),e.dtick=_y(t,n,yP));if(e.dtick===0&&(e.dtick=1),!Dh(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function qse(e){var t=e.dtick;if(e._tickexponent=0,!Dh(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),n=e.l2r(r).replace(/(^-|i)/g,""),i=n.length;if(String(t).charAt(0)==="M")i>10||n.substr(5)!=="01-01"?e._tickround="d":e._tickround=+t.substr(1)%12===0?"y":"m";else if(t>=Fp&&i<=10||t>=Fp*15)e._tickround="d";else if(t>=a5&&i<=16||t>=xy)e._tickround="M";else if(t>=AP&&i<=19||t>=a5)e._tickround="S";else{var a=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(i,a)-20,e._tickround<0&&(e._tickround=4)}}else if(Dh(t)||t.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);Dh(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),u=Math.floor(Math.log(s)/Math.LN10+.01),l=e.minexponent===void 0?3:e.minexponent;Math.abs(u)>l&&(SP(e.exponentformat)&&!wN(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}al.tickIncrement=function(e,t,r,n){var i=r?-1:1;if(Dh(t))return Ou.increment(e,i*t);var a=t.charAt(0),o=i*Number(t.substr(1));if(a==="M")return Ou.incrementMonth(e,o,n);if(a==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(a==="D"){var s=t==="D2"?Ose:Bse,u=e+i*.01,l=Ou.roundUp(Ou.mod(u,1),s,r);return Math.floor(u)+Math.log(w0.round(Math.pow(10,l),1))/Math.LN10}throw"unrecognized dtick "+String(t)};al.tickFirst=function(e,t){var r=e.r2l||Number,n=Ou.simpleMap(e.range,r,void 0,void 0,t),i=n[1]=0&&v<=e._length?b:null};if(a&&Ou.isArrayOrTypedArray(e.ticktext)){var c=Ou.simpleMap(e.range,e.r2l),h=(Math.abs(c[1]-c[0])-(e._lBreaks||0))/1e4;for(l=0;l"+s;else{var l=l5(e),f=e._trueSide||e.side;(!l&&f==="top"||l&&f==="bottom")&&(o+="
")}t.text=o}function hlt(e,t,r,n,i){var a=e.dtick,o=t.x,s=e.tickformat,u=typeof a=="string"&&a.charAt(0);if(i==="never"&&(i=""),n&&u!=="L"&&(a="L3",u="L"),s||u==="L")t.text=s5(Math.pow(10,o),e,i,n);else if(Dh(a)||u==="D"&&(e.minorloglabels==="complete"||Ou.mod(o+.01,1)<.1)){var l;e.minorloglabels==="complete"&&!(Ou.mod(o+.01,1)<.1)&&(l=!0,t.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),h=+c[1],d=Math.abs(h),p=e.exponentformat;p==="power"||SP(p)&&wN(h)?(t.text=c[0],d>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),h!==0&&h!==1&&(t.text+=""+(h>0?"":kb)+d+""),t.fontSize*=1.25):(p==="e"||p==="E")&&d>2?t.text=c[0]+p+(h>0?"+":kb)+d:(t.text=s5(Math.pow(10,o),e,"","fakehover"),a==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(u==="D")t.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Ou.mod(o,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(a);if(e.dtick==="D1"){var x=String(t.text).charAt(0);(x==="0"||x==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(o<0?.5:.25)))}}function dlt(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function plt(e,t,r){var n=Math.round(t.x),i=e._categories[n]||[],a=i[1]===void 0?"":String(i[1]),o=i[0]===void 0?"":String(i[0]);r?t.text=o+" - "+a:(t.text=a,t.text2=o)}function vlt(e,t,r,n,i){i==="never"?i="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide"),t.text=s5(t.x,e,i,n)}function mlt(e,t,r,n,i){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=ylt(a);if(o[1]>=100)t.text=s5(Ou.deg2rad(t.x),e,i,n);else{var s=t.x<0;o[1]===1?o[0]===1?t.text="\u03C0":t.text=o[0]+"\u03C0":t.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),s&&(t.text=kb+t.text)}}}else t.text=s5(t.x,e,i,n)}function ylt(e){function t(s,u){return Math.abs(s-u)<=1e-6}function r(s,u){return t(u,0)?s:r(u,s%u)}function n(s){for(var u=1;!t(Math.round(s*u)/u,s);)u*=10;return u}var i=n(e),a=e*i,o=Math.abs(r(a,i));return[Math.round(a/o),Math.round(i/o)]}var glt=["f","p","n","\u03BC","m","","k","M","G","T"];function SP(e){return e==="SI"||e==="B"}function wN(e){return e>14||e<-15}function s5(e,t,r,n){var i=e<0,a=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,u=al.getTickFormat(t),l=t.separatethousands;if(n){var f={exponentformat:o,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:Dh(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};qse(f),a=(Number(f._tickround)||0)+4,s=f._tickexponent,t.hoverformat&&(u=t.hoverformat)}if(u)return t._numFormat(u)(e).replace(/-/g,kb);var c=Math.pow(10,-a)/2;if(o==="none"&&(s=0),e=Math.abs(e),e"+p+"":o==="B"&&s===9?e+="B":SP(o)&&(e+=glt[s/3+5])}return i?kb+e:e}al.getTickFormat=function(e){var t;function r(u){return typeof u!="string"?u:Number(u.replace("M",""))*I3}function n(u,l){var f=["L","D"];if(typeof u==typeof l){if(typeof u=="number")return u-l;var c=f.indexOf(u.charAt(0)),h=f.indexOf(l.charAt(0));return c===h?Number(u.replace(/(L|D)/g,""))-Number(l.replace(/(L|D)/g,"")):c-h}else return typeof u=="number"?1:-1}function i(u,l,f){var c=f||function(p){return p},h=l[0],d=l[1];return(!h&&typeof h!="number"||c(h)<=c(u))&&(!d&&typeof d!="number"||c(d)>=c(u))}function a(u,l){var f=l[0]===null,c=l[1]===null,h=n(u,l[0])>=0,d=n(u,l[1])<=0;return(f||h)&&(c||d)}var o,s;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&i.unshift(i.splice(f,1).shift())}});var s={false:{left:0,right:0}};return Ou.syncOrAsync(i.map(function(u){return function(){if(u){var l=al.getFromId(e,u);r||(r={}),r.axShifts=s,r.overlayingShiftedAx=o;var f=al.drawOne(e,l,r);return l._shiftPusher&&xN(l,l._fullDepth||0,s,!0),l._r=l.range.slice(),l._rl=Ou.simpleMap(l._r,l.r2l),f}}}))};al.drawOne=function(e,t,r){r=r||{};var n=r.axShifts||{},i=r.overlayingShiftedAx||[],a,o,s;t.setScale();var u=e._fullLayout,l=t._id,f=l.charAt(0),c=al.counterLetter(l),h=u._plots[t._mainSubplot],d=t.zerolinelayer==="above traces";if(!h)return;if(t._shiftPusher=t.autoshift||i.indexOf(t._id)!==-1||i.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var p=t.linewidth/2||0;t.ticks==="inside"&&(p+=t.ticklen),xN(t,p,n,!0),xN(t,t.shift||0,n,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=Plt(t,n));var x=h[f+"axislayer"],b=t._mainLinePosition,v=b+=t._shift,k=t._mainMirrorPosition,E=t._vals=al.calcTicks(t),T=[t.mirror,v,k].join("_");for(a=0;a0?Dt.bottom-Tt:0,St))));var at=0,wt=0;if(t._shiftPusher&&(at=Math.max(St,Dt.height>0?Ye==="l"?Tt-Dt.left:Dt.right-Tt:0),t.title.text!==u._dfltTitle[f]&&(wt=(t._titleStandoff||0)+(t._titleScoot||0),Ye==="l"&&(wt+=Ise(t))),t._fullDepth=Math.max(at,wt)),t.automargin){Zt={x:0,y:0,r:0,l:0,t:0,b:0};var vt=[0,1],st=typeof t._shift=="number"?t._shift:0;if(f==="x"){if(Ye==="b"?Zt[Ye]=t._depth:(Zt[Ye]=t._depth=Math.max(Dt.width>0?Tt-Dt.top:0,St),vt.reverse()),Dt.width>0){var Ue=Dt.right-(t._offset+t._length);Ue>0&&(Zt.xr=1,Zt.r=Ue);var rt=t._offset-Dt.left;rt>0&&(Zt.xl=0,Zt.l=rt)}}else if(Ye==="l"?(t._depth=Math.max(Dt.height>0?Tt-Dt.left:0,St),Zt[Ye]=t._depth-st):(t._depth=Math.max(Dt.height>0?Dt.right-Tt:0,St),Zt[Ye]=t._depth+st,vt.reverse()),Dt.height>0){var $e=Dt.bottom-(t._offset+t._length);$e>0&&(Zt.yb=0,Zt.b=$e);var zt=t._offset-Dt.top;zt>0&&(Zt.yt=1,Zt.t=zt)}Zt[c]=t.anchor==="free"?t.position:t._anchorAxis.domain[vt[0]],t.title.text!==u._dfltTitle[f]&&(Zt[Ye]+=Ise(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(Et={x:0,y:0,r:0,l:0,t:0,b:0},Et[kt]=t.linewidth,t.mirror&&t.mirror!==!0&&(Et[kt]+=St),t.mirror===!0||t.mirror==="ticks"?Et[c]=t._anchorAxis.domain[vt[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(Et[c]=[t._counterDomainMin,t._counterDomainMax][vt[1]]))}it&&(Ae=i5.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(zse(Zt,t.automargin),zse(Et,t.automargin)),P3.autoMargin(e,AN(t),Zt),P3.autoMargin(e,Vse(t),Et),P3.autoMargin(e,Gse(t),Ae)}),Ou.syncOrAsync(gt)}};function zse(e,t){if(e){var r=Object.keys(Sse).reduce(function(n,i){return t.indexOf(i)!==-1&&Sse[i].forEach(function(a){n[a]=1}),n},{});Object.keys(e).forEach(function(n){r[n]||(n.length===1?e[n]=0:delete e[n])})}}function _lt(e,t){var r=[],n,i=function(a,o){var s=a.xbnd[o];s!==null&&r.push(Ou.extendFlat({},a,{x:s}))};if(t.length){for(n=0;ne.range[1],s=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,u=!s;if(r){var l=o?-1:1;r=r*l}if(n){var f=e.side,c=s&&(f==="top"||f==="left")||u&&(f==="bottom"||f==="right")?1:-1;n=n*c}return e._id.charAt(0)==="x"?function(h){return z3(i+e._offset+e.l2p(gN(h))+r,a+n)}:function(h){return z3(a+n,i+e._offset+e.l2p(gN(h))+r)}};function gN(e){return e.periodX!==void 0?e.periodX:e.x}function Alt(e){var t=e.ticklabelposition||"",r=e.tickson||"",n=function(p){return t.indexOf(p)!==-1},i=n("top"),a=n("left"),o=n("right"),s=n("bottom"),u=n("inside"),l=r!=="boundaries"&&(s||a||i||o);if(!l&&!u)return[0,0];var f=e.side,c=l?(e.tickwidth||0)/2:0,h=TP,d=e.tickfont?e.tickfont.size:12;return(s||i)&&(c+=d*Cb,h+=(e.linewidth||0)/2),(a||o)&&(c+=(e.linewidth||0)/2,h+=TP),u&&f==="top"&&(h-=d*(1-Cb)),(a||i)&&(c=-c),(f==="bottom"||f==="right")&&(h=-h),[l?c:0,u?h:0]}al.makeTickPath=function(e,t,r,n){n||(n={});var i=n.minor;if(i&&!e.minor)return"";var a=n.len!==void 0?n.len:i?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),s=(e.linewidth||1)/2;return o==="x"?"M0,"+(t+s*r)+"v"+a*r:"M"+(t+s*r)+",0h"+a*r};al.makeLabelFns=function(e,t,r){var n=e.ticklabelposition||"",i=e.tickson||"",a=function(F){return n.indexOf(F)!==-1},o=a("top"),s=a("left"),u=a("right"),l=a("bottom"),f=i!=="boundaries"&&(l||s||o||u),c=a("inside"),h=n==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&i!=="boundaries",d=0,p=0,x=h?e.ticklen:0;if(c?x*=-1:f&&(x=0),h&&(d+=x,r)){var b=Ou.deg2rad(r);d=x*Math.cos(b)+1,p=x*Math.sin(b)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var v={labelStandoff:d,labelShift:p},k,E,T,L,_=0,C=e.side,S=e._id.charAt(0),m=e.tickangle,P;if(S==="x")P=!c&&C==="bottom"||c&&C==="top",L=P?1:-1,c&&(L*=-1),k=p*L,E=t+d*L,T=P?1:-.2,Math.abs(m)===90&&(c?T+=r5:m===-90&&C==="bottom"?T=Cb:m===90&&C==="top"?T=r5:T=.5,_=r5/2*(m/90)),v.xFn=function(F){return F.dx+k+_*F.fontSize},v.yFn=function(F){return F.dy+E+F.fontSize*T},v.anchorFn=function(F,U){if(f){if(s)return"end";if(u)return"start"}return!Dh(U)||U===0||U===180?"middle":U*L<0!==c?"end":"start"},v.heightFn=function(F,U,G){return U<-60||U>60?-.5*G:e.side==="top"!==c?-G:0};else if(S==="y"){if(P=!c&&C==="left"||c&&C==="right",L=P?1:-1,c&&(L*=-1),k=d,E=p*L,T=0,!c&&Math.abs(m)===90&&(m===-90&&C==="left"||m===90&&C==="right"?T=Cb:T=.5),c){var A=Dh(m)?+m:0;if(A!==0){var B=Ou.deg2rad(A);_=Math.abs(Math.sin(B))*Cb*L,T=0}}v.xFn=function(F){return F.dx+t-(k+F.fontSize*T)*L+_*F.fontSize},v.yFn=function(F){return F.dy+E+F.fontSize*r5},v.anchorFn=function(F,U){return Dh(U)&&Math.abs(U)===90?"middle":P?"end":"start"},v.heightFn=function(F,U,G){return e.side==="right"&&(U*=-1),U<-30?-G:U<30?-.5*G:0}}return v};function kP(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}al.drawTicks=function(e,t,r){r=r||{};var n=t._id+"tick",i=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(t.ticks?r.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),a=r.layer.selectAll("path."+n).data(i,kP);a.exit().remove(),a.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return n5.stroke(w0.select(this),o.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(o){return Xv.crispRound(e,o.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),CP(t,[Rse]),a.attr("transform",r.transFn)};al.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var n=t._id+"grid",i=t.minor&&t.minor.showgrid,a=i?r.vals.filter(function(v){return v.minor}):[],o=t.showgrid?r.vals.filter(function(v){return!v.minor}):[],s=r.counterAxis;if(s&&al.shouldShowZeroLine(e,t,s))for(var u=t.tickmode==="array",l=0;l=0;p--){var x=p?h:d;if(x){var b=x.selectAll("path."+n).data(p?o:a,kP);b.exit().remove(),b.enter().append("path").classed(n,1).classed("crisp",r.crisp!==!1),b.attr("transform",r.transFn).attr("d",r.path).each(function(v){return n5.stroke(w0.select(this),v.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(v){return Xv.dashStyle(v.minor?t.minor.griddash:t.griddash,v.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(v){return(v.minor?c:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&b.attr("d",r.path)}}CP(t,[mN,yN])}};al.drawZeroLine=function(e,t,r){r=r||r;var n=t._id+"zl",i=al.shouldShowZeroLine(e,t,r.counterAxis),a=r.layer.selectAll("path."+n).data(i?[{x:0,id:t._id}]:[]);a.exit().remove(),a.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(o,s){return elt(o.id,s.id)})}),a.attr("transform",r.transFn).attr("d",r.path).call(n5.stroke,t.zerolinecolor||n5.defaultLine).style("stroke-width",Xv.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),CP(t,[vN])};al.drawLabels=function(e,t,r){r=r||{};var n=e._fullLayout,i=t._id,a=t.zerolinelayer==="above traces",o=r.cls||i+"tick",s=r.vals.filter(function(W){return W.text}),u=r.labelFns,l=r.secondary?0:t.tickangle,f=(t._prevTickAngles||{})[o],c=r.layer.selectAll("g."+o).data(t.showticklabels?s:[],kP),h=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(W){var re=w0.select(this),ae=e._promises.length;re.call(Eb.positionText,u.xFn(W),u.yFn(W)).call(Xv.font,{family:W.font,size:W.fontSize,color:W.fontColor,weight:W.fontWeight,style:W.fontStyle,variant:W.fontVariant,textcase:W.fontTextcase,lineposition:W.fontLineposition,shadow:W.fontShadow}).text(W.text).call(Eb.convertToTspans,e),e._promises[ae]?h.push(e._promises.pop().then(function(){d(re,l)})):d(re,l)}),CP(t,[Tse]),c.exit().remove(),r.repositionOnUpdate&&c.each(function(W){w0.select(this).select("text").call(Eb.positionText,u.xFn(W),u.yFn(W))});function d(W,re){W.each(function(ae){var be=w0.select(this),Ce=be.select(".text-math-group"),Le=u.anchorFn(ae,re),pe=r.transFn.call(be.node(),ae)+(Dh(re)&&+re!=0?" rotate("+re+","+u.xFn(ae)+","+(u.yFn(ae)-ae.fontSize/2)+")":""),te=Eb.lineCount(be),ke=o5*ae.fontSize,Ee=u.heightFn(ae,Dh(re)?+re:0,(te-1)*ke);if(Ee&&(pe+=z3(0,Ee)),Ce.empty()){var Me=be.select("text");Me.attr({transform:pe,"text-anchor":Le}),Me.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var Ne=Xv.bBox(Ce.node()).width,Fe=Ne*{end:-.5,start:.5}[Le];Ce.attr("transform",pe+z3(Fe,0))}})}t._adjustTickLabelsOverflow=function(){var W=t.ticklabeloverflow;if(!(!W||W==="allow")){var re=W.indexOf("hide")!==-1,ae=t._id.charAt(0)==="x",be=0,Ce=ae?e._fullLayout.width:e._fullLayout.height;if(W.indexOf("domain")!==-1){var Le=Ou.simpleMap(t.range,t.r2l);be=t.l2p(Le[0])+t._offset,Ce=t.l2p(Le[1])+t._offset}var pe=Math.min(be,Ce),te=Math.max(be,Ce),ke=t.side,Ee=1/0,Me=-1/0;c.each(function(Ve){var ce=w0.select(this),Je=ce.select(".text-math-group");if(Je.empty()){var nt=Xv.bBox(ce.node()),gt=0;ae?(nt.right>te||nt.leftte||nt.top+(t.tickangle?0:Ve.fontSize/4)t["_visibleLabelMin_"+Le._id]?ce.style("display","none"):te.K==="tick"&&!pe&&ce.node().style.display!=="none"&&ce.style("display",null)})})})})},d(c,f+1?f:l);function p(){return h.length&&Promise.all(h)}var x=null;function b(){if(d(c,l),s.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){x=t.autotickangles[0];var W=0,re=[],ae,be=1;c.each(function(Zt){W=Math.max(W,Zt.fontSize);var Et=t.l2p(Zt.x),Ae=_N(this),at=Xv.bBox(Ae.node());be=Math.max(be,Eb.lineCount(Ae)),re.push({top:0,bottom:10,height:10,left:Et-at.width/2,right:Et+at.width/2+2,width:at.width+2})});var Ce=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,Le=s.length,pe=Math.abs((s[Le-1].x-s[0].x)*t._m)/(Le-1),te=Ce?pe/2:pe,ke=Ce?t.ticklen:W*1.25*be,Ee=Math.sqrt(Math.pow(te,2)+Math.pow(ke,2)),Me=te/Ee,Ne=t.autotickangles.map(function(Zt){return Zt*Math.PI/180}),Fe=Ne.find(function(Zt){return Math.abs(Math.cos(Zt))<=Me});Fe===void 0&&(Fe=Ne.reduce(function(Zt,Et){return Math.abs(Math.cos(Zt))j*G&&(B=G,m[S]=P[S]=F[S])}var H=Math.abs(B-A);H-L>0?(H-=L,L*=1+L/H):L=0,t._id.charAt(0)!=="y"&&(L=-L),m[C]=E.p2r(E.r2p(P[C])+_*L),E.autorange==="min"||E.autorange==="max reversed"?(m[0]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0):(E.autorange==="max"||E.autorange==="min reversed")&&(m[1]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[E._name+".range"]=m}var N=Ou.syncOrAsync(v);return N&&N.then&&e._promises.push(N),N};function Tlt(e,t,r){var n=t._id+"divider",i=r.vals,a=r.layer.selectAll("path."+n).data(i,kP);a.exit().remove(),a.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(n5.stroke,t.dividercolor).style("stroke-width",Xv.crispRound(e,t.dividerwidth,1)+"px"),a.attr("transform",r.transFn).attr("d",r.path)}al.getPxPosition=function(e,t){var r=e._fullLayout._size,n=t._id.charAt(0),i=t.side,a;if(t.anchor!=="free"?a=t._anchorAxis:n==="x"?a={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:n==="y"&&(a={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),i==="top"||i==="left")return a._offset;if(i==="bottom"||i==="right")return a._offset+a._length};function Ise(e){var t=e.title.font.size,r=(e.title.text.match(Eb.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(Cb+r*o5):r?t*(r+1)*o5:t}function Slt(e,t){var r=e._fullLayout,n=t._id,i=n.charAt(0),a=t.title.font.size,o,s=(t.title.text.match(Eb.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?o=t._depth+t.title.standoff+a*Cb:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+a*(r5+s*o5));else{var u=l5(t);if(t.type==="multicategory")o=t._depth;else{var l=1.5*a;u&&(l=.5*a,t.ticks==="outside"&&(l+=t.ticklen)),o=10+l+(t.linewidth?t.linewidth-1:0)}u||(i==="x"?o+=t.side==="top"?a*(t.showticklabels?1:0):a*(t.showticklabels?1.5:.5):o+=t.side==="right"?a*(t.showticklabels?1:.5):a*(t.showticklabels?.5:0))}var f=al.getPxPosition(e,t),c,h,d;i==="x"?(h=t._offset+t._length/2,d=t.side==="top"?f-o:f+o):(d=t._offset+t._length/2,h=t.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var p;if(t.type!=="multicategory"){var x=t._selections[t._id+"tick"];if(p={selection:x,side:t.side},x&&x.node()&&x.node().parentNode){var b=Xv.getTranslate(x.node().parentNode);p.offsetLeft=b.x,p.offsetTop=b.y}t.title.hasOwnProperty("standoff")&&(p.pad=0)}return t._titleStandoff=o,Wst.draw(e,n+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[i],avoid:p,transform:c,attributes:{x:h,y:d,"text-anchor":"middle"}})}al.shouldShowZeroLine=function(e,t,r){var n=Ou.simpleMap(t.range,t.r2l);return n[0]*n[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===MP)&&(Use(t,0)||!Mlt(e,t,r,n)||Elt(e,t))};al.clipEnds=function(e,t){return t.filter(function(r){return Use(e,r.x)})};function Use(e,t){var r=e.l2p(t);return r>1&&r1)for(i=1;i=i.min&&e=Jst:/%L/.test(t)?e>=Kst:/%[SX]/.test(t)?e>=AP:/%M/.test(t)?e>=a5:/%[HI]/.test(t)?e>=xy:/%p/.test(t)?e>=l_:/%[Aadejuwx]/.test(t)?e>=Fp:/%[UVW]/.test(t)?e>=Zv:/%[Bbm]/.test(t)?e>=wP:/%[q]/.test(t)?e>=bP:/%[Yy]/.test(t)?e>=xP:!0}});var SN=Te((har,Wse)=>{"use strict";Wse.exports=function(t,r,n){var i,a;if(n){var o=r==="reversed"||r==="min reversed"||r==="max reversed";i=n[o?1:0],a=n[o?0:1]}var s=t("autorangeoptions.minallowed",a===null?i:void 0),u=t("autorangeoptions.maxallowed",i===null?a:void 0);s===void 0&&t("autorangeoptions.clipmin"),u===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var MN=Te((dar,jse)=>{"use strict";var Ilt=SN();jse.exports=function(t,r,n,i){var a=r._template||{},o=r.type||a.type||"-";n("minallowed"),n("maxallowed");var s=n("range");if(!s){var u;!i.noInsiderange&&o!=="log"&&(u=n("insiderange"),u&&(u[0]===null||u[1]===null)&&(r.insiderange=!1,u=void 0),u&&(s=n("range",u)))}var l=r.getAutorangeDflt(s,i),f=n("autorange",l),c;s&&(s[0]===null&&s[1]===null||(s[0]===null||s[1]===null)&&(f==="reversed"||f===!0)||s[0]!==null&&(f==="min"||f==="max reversed")||s[1]!==null&&(f==="max"||f==="min reversed"))&&(s=void 0,delete r.range,r.autorange=!0,c=!0),c||(l=r.getAutorangeDflt(s,i),f=n("autorange",l)),f&&(Ilt(n,f,s),(o==="linear"||o==="-")&&n("rangemode")),r.cleanRange()}});var Zse=Te((par,Xse)=>{var Rlt={left:0,top:0};Xse.exports=Dlt;function Dlt(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var n=e.clientX||0,i=e.clientY||0,a=Flt(t);return r[0]=n-a.left,r[1]=i-a.top,r}function Flt(e){return e===window||e===document||e===document.body?Rlt:e.getBoundingClientRect()}});var LP=Te((mar,Yse)=>{"use strict";var Blt=uq();function Olt(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}Yse.exports=Blt&&Olt()});var Jse=Te((yar,Kse)=>{"use strict";Kse.exports=function(t,r,n,i,a){var o=(t-n)/(i-n),s=o+r/(i-n),u=(o+s)/2;return a==="left"||a==="bottom"?o:a==="center"||a==="middle"?u:a==="right"||a==="top"?s:o<2/3-u?o:s>4/3-u?s:u}});var ele=Te((gar,Qse)=>{"use strict";var $se=ei(),qlt=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];Qse.exports=function(t,r,n,i){return n==="left"?t=0:n==="center"?t=1:n==="right"?t=2:t=$se.constrain(Math.floor(t*3),0,2),i==="bottom"?r=0:i==="middle"?r=1:i==="top"?r=2:r=$se.constrain(Math.floor(r*3),0,2),qlt[r][t]}});var rle=Te((_ar,tle)=>{"use strict";var Nlt=m3(),Ult=IL(),Vlt=BM().getGraphDiv,Glt=IM(),EN=tle.exports={};EN.wrapped=function(e,t,r){e=Vlt(e),e._fullLayout&&Ult.clear(e._fullLayout._uid+Glt.HOVERID),EN.raw(e,t,r)};EN.raw=function(t,r){var n=t._fullLayout,i=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&Nlt.triggerHandler(t,"plotly_beforehover",r)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&i&&t.emit("plotly_unhover",{event:r,points:i}))}});var gp=Te((xar,ole)=>{"use strict";var Hlt=Zse(),kN=cq(),Wlt=LP(),jlt=ei().removeElement,Xlt=dd(),Lb=ole.exports={};Lb.align=Jse();Lb.getCursor=ele();var nle=rle();Lb.unhover=nle.wrapped;Lb.unhoverRaw=nle.raw;Lb.init=function(t){var r=t.gd,n=1,i=r._context.doubleClickDelay,a=t.element,o,s,u,l,f,c,h,d;r._mouseDownTime||(r._mouseDownTime=0),a.style.pointerEvents="all",a.onmousedown=b,Wlt?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=b,a.addEventListener("touchstart",b,{passive:!1})):a.ontouchstart=b;function p(E,T,L){return Math.abs(E)i&&(n=Math.max(n-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var T;c.target===h?T=c:(T={target:h,srcElement:h,toElement:h},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(L=>{var _=c[L];!T[L]&&typeof _!="function"&&(T[L]=_)})),t.clickFn&&t.clickFn(n,T),d||h.dispatchEvent(new MouseEvent("click",E))}r._dragging=!1,r._dragged=!1}};function ale(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}Lb.coverSlip=ale;function ile(e){return Hlt(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Am=Te((bar,sle)=>{"use strict";sle.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&t.classed(n,!1)}),r&&t.classed("cursor-"+r,!0)}});var fle=Te((war,ule)=>{"use strict";var CN=Am(),u5="data-savedcursor",lle="!!";ule.exports=function(t,r){var n=t.attr(u5);if(r){if(!n){for(var i=(t.attr("class")||"").split(" "),a=0;a{"use strict";var LN=gc(),Zlt=Ih();cle.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Zlt.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:LN({editType:"legend"}),grouptitlefont:LN({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:LN({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var zP=Te(PP=>{"use strict";PP.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};PP.isVertical=function(t){return t.orientation!=="h"};PP.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1}});var RN=Te((Sar,hle)=>{"use strict";var zN=$l(),Yv=ei(),Ylt=Pf(),Klt=Vf(),Jlt=PN(),$lt=s3(),IN=zP();function Qlt(e,t,r,n){var i=t[e]||{},a=Ylt.newContainer(r,e);function o(H,N){return Yv.coerce(i,a,Jlt,H,N)}var s=Yv.coerceFont(o,"font",r.font);o("bgcolor",r.paper_bgcolor),o("bordercolor");var u=o("visible");if(u){for(var l,f=function(H,N){var W=l._input,re=l;return Yv.coerce(W,re,Klt,H,N)},c=r.font||{},h=Yv.coerceFont(o,"grouptitlefont",c,{overrideDflt:{size:Math.round(c.size*1.1)}}),d=0,p=!1,x="normal",b=(r.shapes||[]).filter(function(H){return H.showlegend}),v=n.concat(b).filter(function(H){return e===(H.legend||"legend")}),k=0;k(e==="legend"?1:0));if(T===!1&&(r[e]=void 0),!(T===!1&&!i.uirevision)&&(o("uirevision",r.uirevision),T!==!1)){o("borderwidth");var L=o("orientation"),_=o("yref"),C=o("xref"),S=L==="h",m=_==="paper",P=C==="paper",A,B,F,U="left";S?(A=0,zN.getComponentMethod("rangeslider","isVisible")(t.xaxis)?m?(B=1.1,F="bottom"):(B=1,F="top"):m?(B=-.1,F="top"):(B=0,F="bottom")):(B=1,F="auto",P?A=1.02:(A=1,U="right")),Yv.coerce(i,a,{x:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:A}},"x"),Yv.coerce(i,a,{y:{valType:"number",editType:"legend",min:m?-2:0,max:m?3:1,dflt:B}},"y"),o("traceorder",x),IN.isGrouped(r[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",U),o("yanchor",F),o("maxheight",S?.5:1),o("valign"),Yv.noneOrAll(i,a,["x","y"]);var G=o("title.text");if(G){o("title.side",S?"left":"top");var j=Yv.extendFlat({},s,{size:Yv.bigFont(s.size)});Yv.coerceFont(o,"title.font",j)}}}}hle.exports=function(t,r,n){var i,a=n.slice(),o=r.shapes;if(o)for(i=0;i{"use strict";var R3=$l(),FN=ei(),eut=FN.pushUnique,DN=!0;dle.exports=function(t,r,n){var i=r._fullLayout;if(r._dragged||r._editing)return;var a=i.legend.itemclick,o=i.legend.itemdoubleclick,s=i.legend.groupclick;n===1&&a==="toggle"&&o==="toggleothers"&&DN&&r.data&&r._context.showTips&&FN.notifier(FN._(r,"Double-click on legend to isolate one trace"),"long"),DN=!1;var u;if(n===1?u=a:n===2&&(u=o),!u)return;var l=s==="togglegroup",f=i.hiddenlabels?i.hiddenlabels.slice():[],c=t.data()[0][0];if(c.groupTitle&&c.noClick)return;var h=r._fullData,d=(i.shapes||[]).filter(function(kt){return kt.showlegend}),p=h.concat(d),x=c.trace;x._isShape&&(x=x._fullInput);var b=x.legendgroup,v,k,E,T,L,_,C={},S=[],m=[],P=[];function A(kt,Tt){var St=S.indexOf(kt),Dt=C.visible;return Dt||(Dt=C.visible=[]),S.indexOf(kt)===-1&&(S.push(kt),St=S.length-1),Dt[St]=Tt,St}var B=(i.shapes||[]).map(function(kt){return kt._input}),F=!1;function U(kt,Tt){B[kt].visible=Tt,F=!0}function G(kt,Tt){if(!(c.groupTitle&&!l)){var St=kt._fullInput||kt,Dt=St._isShape,Zt=St.index;Zt===void 0&&(Zt=St._index);var Et=St.visible===!1?!1:Tt;Dt?U(Zt,Et):A(Zt,Et)}}var j=x.legend,H=x._fullInput,N=H&&H._isShape;if(!N&&R3.traceIs(x,"pie-like")){var W=c.label,re=f.indexOf(W);if(u==="toggle")re===-1?f.push(W):f.splice(re,1);else if(u==="toggleothers"){var ae=re!==-1,be=[];for(v=0;v{"use strict";vle.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var gle=Te((kar,yle)=>{"use strict";var mle=$l(),ON=zP();yle.exports=function(t,r,n){var i=r._inHover,a=ON.isGrouped(r),o=ON.isReversed(r),s={},u=[],l=!1,f={},c=0,h=0,d,p;function x(H,N,W){if(r.visible!==!1&&!(n&&H!==r._id))if(N===""||!ON.isGrouped(r)){var re="~~i"+c;u.push(re),s[re]=[W],c++}else u.indexOf(N)===-1?(u.push(N),l=!0,s[N]=[W]):s[N].push(W)}for(d=0;dP&&(m=P)}C[d][0]._groupMinRank=m,C[d][0]._preGroupSort=d}var A=function(H,N){return H[0]._groupMinRank-N[0]._groupMinRank||H[0]._preGroupSort-N[0]._preGroupSort},B=function(H,N){return H.trace.legendrank-N.trace.legendrank||H._preSort-N._preSort};for(C.forEach(function(H,N){H[0]._preGroupSort=N}),C.sort(A),d=0;d{"use strict";var IP=ei();function _le(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Pb.formatPiePercent=function(t,r){var n=_le((t*100).toPrecision(3));return IP.numSeparate(n,r)+"%"};Pb.formatPieValue=function(t,r){var n=_le(t.toPrecision(10));return IP.numSeparate(n,r)};Pb.getFirstFilled=function(t,r){if(IP.isArrayOrTypedArray(t))for(var n=0;n{"use strict";var tut=Mu(),rut=jl();xle.exports=function(t,r,n,i){var a=n.marker.pattern;a&&a.shape?tut.pointStyle(t,n,i,r):rut.fill(t,r.color)}});var D3=Te((Par,Tle)=>{"use strict";var wle=jl(),Ale=u_().castOption,iut=ble();Tle.exports=function(t,r,n,i){var a=n.marker.line,o=Ale(a.color,r.pts)||wle.defaultLine,s=Ale(a.width,r.pts)||0;t.call(iut,r,n,i).style("stroke-width",s).call(wle.stroke,o)}});var VN=Te((zar,Lle)=>{"use strict";var Bp=Jl(),qN=$l(),_p=ei(),Sle=_p.strTranslate,Kv=Mu(),A0=jl(),NN=Rp().extractOpts,RP=lc(),nut=D3(),aut=u_().castOption,out=BN(),Mle=12,Ele=5,zb=2,sut=10,F3=5;Lle.exports=function(t,r,n){var i=r._fullLayout;n||(n=i.legend);var a=n.itemsizing==="constant",o=n.itemwidth,s=(o+out.itemGap*2)/2,u=Sle(s,0),l=function(C,S,m,P){var A;if(C+1)A=C;else if(S&&S.width>0)A=S.width;else return 0;return a?P:Math.min(A,m)};t.each(function(C){var S=Bp.select(this),m=_p.ensureSingle(S,"g","layers");m.style("opacity",C[0].trace.opacity);var P=n.indentation,A=n.valign,B=C[0].lineHeight,F=C[0].height;if(A==="middle"&&P===0||!B||!F)m.attr("transform",null);else{var U={top:1,bottom:-1}[A],G=U*(.5*(B-F+3))||0,j=n.indentation;m.attr("transform",Sle(j,G))}var H=m.selectAll("g.legendfill").data([C]);H.enter().append("g").classed("legendfill",!0);var N=m.selectAll("g.legendlines").data([C]);N.enter().append("g").classed("legendlines",!0);var W=m.selectAll("g.legendsymbols").data([C]);W.enter().append("g").classed("legendsymbols",!0),W.selectAll("g.legendpoints").data([C]).enter().append("g").classed("legendpoints",!0)}).each(_).each(h).each(p).each(d).each(b).each(T).each(E).each(f).each(c).each(v).each(k);function f(C){var S=kle(C),m=S.showFill,P=S.showLine,A=S.showGradientLine,B=S.showGradientFill,F=S.anyFill,U=S.anyLine,G=C[0],j=G.trace,H,N,W=NN(j),re=W.colorscale,ae=W.reversescale,be=function(Me){if(Me.size())if(m)Kv.fillGroupStyle(Me,r,!0);else{var Ne="legendfill-"+j.uid;Kv.gradient(Me,r,Ne,UN(ae),re,"fill")}},Ce=function(Me){if(Me.size()){var Ne="legendline-"+j.uid;Kv.lineGroupStyle(Me),Kv.gradient(Me,r,Ne,UN(ae),re,"stroke")}},Le=RP.hasMarkers(j)||!F?"M5,0":U?"M5,-2":"M5,-3",pe=Bp.select(this),te=pe.select(".legendfill").selectAll("path").data(m||B?[C]:[]);if(te.enter().append("path").classed("js-fill",!0),te.exit().remove(),te.attr("d",Le+"h"+o+"v6h-"+o+"z").call(be),P||A){var ke=l(void 0,j.line,sut,Ele);N=_p.minExtend(j,{line:{width:ke}}),H=[_p.minExtend(G,{trace:N})]}var Ee=pe.select(".legendlines").selectAll("path").data(P||A?[H]:[]);Ee.enter().append("path").classed("js-line",!0),Ee.exit().remove(),Ee.attr("d",Le+(A?"l"+o+",0.0001":"h"+o)).call(P?Kv.lineGroupStyle:Ce)}function c(C){var S=kle(C),m=S.anyFill,P=S.anyLine,A=S.showLine,B=S.showMarker,F=C[0],U=F.trace,G=!B&&!P&&!m&&RP.hasText(U),j,H;function N(te,ke,Ee,Me){var Ne=_p.nestedProperty(U,te).get(),Fe=_p.isArrayOrTypedArray(Ne)&&ke?ke(Ne):Ne;if(a&&Fe&&Me!==void 0&&(Fe=Me),Ee){if(FeEe[1])return Ee[1]}return Fe}function W(te){return F._distinct&&F.index&&te[F.index]?te[F.index]:te[0]}if(B||G||A){var re={},ae={};if(B){re.mc=N("marker.color",W),re.mx=N("marker.symbol",W),re.mo=N("marker.opacity",_p.mean,[.2,1]),re.mlc=N("marker.line.color",W),re.mlw=N("marker.line.width",_p.mean,[0,5],zb),ae.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var be=N("marker.size",_p.mean,[2,16],Mle);re.ms=be,ae.marker.size=be}A&&(ae.line={width:N("line.width",W,[0,10],Ele)}),G&&(re.tx="Aa",re.tp=N("textposition",W),re.ts=10,re.tc=N("textfont.color",W),re.tf=N("textfont.family",W),re.tw=N("textfont.weight",W),re.ty=N("textfont.style",W),re.tv=N("textfont.variant",W),re.tC=N("textfont.textcase",W),re.tE=N("textfont.lineposition",W),re.tS=N("textfont.shadow",W)),j=[_p.minExtend(F,re)],H=_p.minExtend(U,ae),H.selectedpoints=null,H.texttemplate=null}var Ce=Bp.select(this).select("g.legendpoints"),Le=Ce.selectAll("path.scatterpts").data(B?j:[]);Le.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),Le.exit().remove(),Le.call(Kv.pointStyle,H,r),B&&(j[0].mrc=3);var pe=Ce.selectAll("g.pointtext").data(G?j:[]);pe.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),pe.exit().remove(),pe.selectAll("text").call(Kv.textPointStyle,H,r)}function h(C){var S=C[0].trace,m=S.type==="waterfall";if(C[0]._distinct&&m){var P=C[0].trace[C[0].dir].marker;return C[0].mc=P.color,C[0].mlw=P.line.width,C[0].mlc=P.line.color,x(C,this,"waterfall")}var A=[];S.visible&&m&&(A=C[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var B=Bp.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(A);B.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),B.exit().remove(),B.each(function(F){var U=Bp.select(this),G=S[F[0]].marker,j=l(void 0,G.line,F3,zb);U.attr("d",F[1]).style("stroke-width",j+"px").call(A0.fill,G.color),j&&U.call(A0.stroke,G.line.color)})}function d(C){x(C,this)}function p(C){x(C,this,"funnel")}function x(C,S,m){var P=C[0].trace,A=P.marker||{},B=A.line||{},F=A.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",U=m?P.visible&&P.type===m:qN.traceIs(P,"bar"),G=Bp.select(S).select("g.legendpoints").selectAll("path.legend"+m).data(U?[C]:[]);G.enter().append("path").classed("legend"+m,!0).attr("d",F).attr("transform",u),G.exit().remove(),G.each(function(j){var H=Bp.select(this),N=j[0],W=l(N.mlw,A.line,F3,zb);H.style("stroke-width",W+"px");var re=N.mcc;if(!n._inHover&&"mc"in N){var ae=NN(A),be=ae.mid;be===void 0&&(be=(ae.max+ae.min)/2),re=Kv.tryColorscale(A,"")(be)}var Ce=re||N.mc||A.color,Le=A.pattern,pe=Kv.getPatternAttr,te=Le&&(pe(Le.shape,0,"")||pe(Le.path,0,""));if(te){var ke=pe(Le.bgcolor,0,null),Ee=pe(Le.fgcolor,0,null),Me=Le.fgopacity,Ne=Cle(Le.size,8,10),Fe=Cle(Le.solidity,.5,1),ye="legend-"+P.uid;H.call(Kv.pattern,"legend",r,ye,te,Ne,Fe,re,Le.fillmode,ke,Ee,Me)}else H.call(A0.fill,Ce);W&&A0.stroke(H,N.mlc||B.color)})}function b(C){var S=C[0].trace,m=Bp.select(this).select("g.legendpoints").selectAll("path.legendbox").data(S.visible&&qN.traceIs(S,"box-violin")?[C]:[]);m.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),m.exit().remove(),m.each(function(){var P=Bp.select(this);if((S.boxpoints==="all"||S.points==="all")&&A0.opacity(S.fillcolor)===0&&A0.opacity((S.line||{}).color)===0){var A=_p.minExtend(S,{marker:{size:a?Mle:_p.constrain(S.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});m.call(Kv.pointStyle,A,r)}else{var B=l(void 0,S.line,F3,zb);P.style("stroke-width",B+"px").call(A0.fill,S.fillcolor),B&&A0.stroke(P,S.line.color)}})}function v(C){var S=C[0].trace,m=Bp.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(S.visible&&S.type==="candlestick"?[C,C]:[]);m.enter().append("path").classed("legendcandle",!0).attr("d",function(P,A){return A?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),m.exit().remove(),m.each(function(P,A){var B=Bp.select(this),F=S[A?"increasing":"decreasing"],U=l(void 0,F.line,F3,zb);B.style("stroke-width",U+"px").call(A0.fill,F.fillcolor),U&&A0.stroke(B,F.line.color)})}function k(C){var S=C[0].trace,m=Bp.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(S.visible&&S.type==="ohlc"?[C,C]:[]);m.enter().append("path").classed("legendohlc",!0).attr("d",function(P,A){return A?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),m.exit().remove(),m.each(function(P,A){var B=Bp.select(this),F=S[A?"increasing":"decreasing"],U=l(void 0,F.line,F3,zb);B.style("fill","none").call(Kv.dashLine,F.line.dash,U),U&&A0.stroke(B,F.line.color)})}function E(C){L(C,this,"pie")}function T(C){L(C,this,"funnelarea")}function L(C,S,m){var P=C[0],A=P.trace,B=m?A.visible&&A.type===m:qN.traceIs(A,m),F=Bp.select(S).select("g.legendpoints").selectAll("path.legend"+m).data(B?[C]:[]);if(F.enter().append("path").classed("legend"+m,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),F.exit().remove(),F.size()){var U=A.marker||{},G=l(aut(U.line.width,P.pts),U.line,F3,zb),j="pieLike",H=_p.minExtend(A,{marker:{line:{width:G}}},j),N=_p.minExtend(P,{trace:H},j);nut(F,N,H,r)}}function _(C){var S=C[0].trace,m,P=[];if(S.visible)switch(S.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],m=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],m=!0;break;case"densitymapbox":case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],m="radial";break;case"cone":P=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],m=!1;break;case"streamtube":P=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],m=!1;break;case"surface":P=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],m=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],m=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],m=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],m=!1;break}var A=Bp.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);A.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),A.exit().remove(),A.each(function(B,F){var U=Bp.select(this),G=NN(S),j=G.colorscale,H=G.reversescale,N=function(be){if(be.size()){var Ce="legendfill-"+S.uid;Kv.gradient(be,r,Ce,UN(H,m==="radial"),j,"fill")}},W;if(j){if(!m){var ae=j.length;W=F===0?j[H?ae-1:0][1]:F===1?j[H?0:ae-1][1]:j[Math.floor((ae-1)/2)][1]}}else{var re=S.vertexcolor||S.facecolor||S.color;W=_p.isArrayOrTypedArray(re)?re[F]||re[0]:re}U.attr("d",B[0]),W?U.call(A0.fill,W):U.call(N)})}};function UN(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function kle(e){var t=e[0].trace,r=t.contours,n=RP.hasLines(t),i=RP.hasMarkers(t),a=t.visible&&t.fill&&t.fill!=="none",o=!1,s=!1;if(r){var u=r.coloring;u==="lines"?o=!0:n=u==="none"||u==="heatmap"||r.showlines,r.type==="constraint"?a=r._operation!=="=":(u==="fill"||u==="heatmap")&&(s=!0)}return{showMarker:i,showLine:n,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:n||o,anyFill:a||s}}function Cle(e,t,r){return e&&_p.isArrayOrTypedArray(e)?t:e>r?r:e}});var jN=Te((Iar,Nle)=>{"use strict";var Tv=Jl(),Fh=ei(),HN=Cc(),q3=$l(),Ple=m3(),GN=gp(),Bh=Mu(),FP=jl(),Ib=Zf(),zle=ple(),td=BN(),WN=Qh(),Ole=WN.LINE_SPACING,O3=WN.FROM_TL,Ile=WN.FROM_BR,Rle=gle(),lut=VN(),Dle=zP(),B3=1,uut=/^legend[0-9]*$/;Nle.exports=function(t,r){if(r)Fle(t,r);else{var n=t._fullLayout,i=n._legends,a=n._infolayer.selectAll('[class^="legend"]');a.each(function(){var l=Tv.select(this),f=l.attr("class"),c=f.split(" ")[0];c.match(uut)&&i.indexOf(c)===-1&&l.remove()});for(var o=0;o1)}var p=n.hiddenlabels||[];if(!s&&(!n.showlegend||!u.length))return o.selectAll("."+i).remove(),n._topdefs.select("#"+a).remove(),HN.autoMargin(e,i);var x=Fh.ensureSingle(o,"g",i,function(S){s||S.attr("pointer-events","all")}),b=Fh.ensureSingleById(n._topdefs,"clipPath",a,function(S){S.append("rect")}),v=Fh.ensureSingle(x,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});v.call(FP.stroke,r.bordercolor).call(FP.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var k=Fh.ensureSingle(x,"g","scrollbox"),E=r.title;r._titleWidth=0,r._titleHeight=0;var T;E.text?(T=Fh.ensureSingle(k,"text",i+"titletext"),T.attr("text-anchor","start").call(Bh.font,E.font).text(E.text),BP(T,k,e,r,B3)):k.selectAll("."+i+"titletext").remove();var L=Fh.ensureSingle(x,"rect","scrollbar",function(S){S.attr(td.scrollBarEnterAttrs).call(FP.fill,td.scrollBarColor)}),_=k.selectAll("g.groups").data(u);_.enter().append("g").attr("class","groups"),_.exit().remove();var C=_.selectAll("g.traces").data(Fh.identity);C.enter().append("g").attr("class","traces"),C.exit().remove(),C.style("opacity",function(S){var m=S[0].trace;return q3.traceIs(m,"pie-like")?p.indexOf(S[0].label)!==-1?.5:1:m.visible==="legendonly"?.5:1}).each(function(){Tv.select(this).call(cut,e,r)}).call(lut,e,r).each(function(){s||Tv.select(this).call(hut,e,i)}),Fh.syncOrAsync([HN.previousPromises,function(){return vut(e,_,C,r)},function(){var S=n._size,m=r.borderwidth,P=r.xref==="paper",A=r.yref==="paper";if(E.text&&fut(T,r,m),!s){var B,F;P?B=S.l+S.w*r.x-O3[OP(r)]*r._width:B=n.width*r.x-O3[OP(r)]*r._width,A?F=S.t+S.h*(1-r.y)-O3[qP(r)]*r._effHeight:F=n.height*(1-r.y)-O3[qP(r)]*r._effHeight;var U=mut(e,i,B,F);if(U)return;if(n.margin.autoexpand){var G=B,j=F;B=P?Fh.constrain(B,0,n.width-r._width):G,F=A?Fh.constrain(F,0,n.height-r._effHeight):j,B!==G&&Fh.log("Constrain "+i+".x to make legend fit inside graph"),F!==j&&Fh.log("Constrain "+i+".y to make legend fit inside graph")}Bh.setTranslate(x,B,F)}if(L.on(".drag",null),x.on("wheel",null),s||r._height<=r._maxHeight||e._context.staticPlot){var H=r._effHeight;s&&(H=r._height),v.attr({width:r._width-m,height:H-m,x:m/2,y:m/2}),Bh.setTranslate(k,0,0),b.select("rect").attr({width:r._width-2*m,height:H-2*m,x:m,y:m}),Bh.setClipUrl(k,a,e),Bh.setRect(L,0,0,0,0),delete r._scrollY}else{var N=Math.max(td.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),W=r._effHeight-N-2*td.scrollBarMargin,re=r._height-r._effHeight,ae=W/re,be=Math.min(r._scrollY||0,re);v.attr({width:r._width-2*m+td.scrollBarWidth+td.scrollBarMargin,height:r._effHeight-m,x:m/2,y:m/2}),b.select("rect").attr({width:r._width-2*m+td.scrollBarWidth+td.scrollBarMargin,height:r._effHeight-2*m,x:m,y:m+be}),Bh.setClipUrl(k,a,e),Ne(be,N,ae),x.on("wheel",function(){be=Fh.constrain(r._scrollY+Tv.event.deltaY/W*re,0,re),Ne(be,N,ae),be!==0&&be!==re&&Tv.event.preventDefault()});var Ce,Le,pe,te=function(Je,nt,gt){var Nt=(gt-nt)/ae+Je;return Fh.constrain(Nt,0,re)},ke=function(Je,nt,gt){var Nt=(nt-gt)/ae+Je;return Fh.constrain(Nt,0,re)},Ee=Tv.behavior.drag().on("dragstart",function(){var Je=Tv.event.sourceEvent;Je.type==="touchstart"?Ce=Je.changedTouches[0].clientY:Ce=Je.clientY,pe=be}).on("drag",function(){var Je=Tv.event.sourceEvent;Je.buttons===2||Je.ctrlKey||(Je.type==="touchmove"?Le=Je.changedTouches[0].clientY:Le=Je.clientY,be=te(pe,Ce,Le),Ne(be,N,ae))});L.call(Ee);var Me=Tv.behavior.drag().on("dragstart",function(){var Je=Tv.event.sourceEvent;Je.type==="touchstart"&&(Ce=Je.changedTouches[0].clientY,pe=be)}).on("drag",function(){var Je=Tv.event.sourceEvent;Je.type==="touchmove"&&(Le=Je.changedTouches[0].clientY,be=ke(pe,Ce,Le),Ne(be,N,ae))});k.call(Me)}function Ne(Je,nt,gt){r._scrollY=e._fullLayout[i]._scrollY=Je,Bh.setTranslate(k,0,-Je),Bh.setRect(L,r._width,td.scrollBarMargin+Je*gt,td.scrollBarWidth,nt),b.select("rect").attr("y",m+Je)}if(e._context.edits.legendPosition){var Fe,ye,Ve,ce;x.classed("cursor-move",!0),GN.init({element:x.node(),gd:e,prepFn:function(Je){if(Je.target!==L.node()){var nt=Bh.getTranslate(x);Ve=nt.x,ce=nt.y}},moveFn:function(Je,nt){if(Ve!==void 0&&ce!==void 0){var gt=Ve+Je,Nt=ce+nt;Bh.setTranslate(x,gt,Nt),Fe=GN.align(gt,r._width,S.l,S.l+S.w,r.xanchor),ye=GN.align(Nt+r._height,-r._height,S.t+S.h,S.t,r.yanchor)}},doneFn:function(){if(Fe!==void 0&&ye!==void 0){var Je={};Je[i+".x"]=Fe,Je[i+".y"]=ye,q3.call("_guiRelayout",e,Je)}},clickFn:function(Je,nt){var gt=o.selectAll("g.traces").filter(function(){var Nt=this.getBoundingClientRect();return nt.clientX>=Nt.left&&nt.clientX<=Nt.right&&nt.clientY>=Nt.top&&nt.clientY<=Nt.bottom});gt.size()>0&&qle(e,x,gt,Je,nt)}})}}],e)}}function DP(e,t,r){var n=e[0],i=n.width,a=t.entrywidthmode,o=n.trace.legendwidth||t.entrywidth;return a==="fraction"?t._maxWidth*o:r+(o||i)}function qle(e,t,r,n,i){var a=r.data()[0][0].trace,o={event:i,node:r.node(),curveNumber:a.index,expandedIndex:a.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};a._group&&(o.group=a._group),q3.traceIs(a,"pie-like")&&(o.label=r.datum()[0].label);var s=Ple.triggerHandler(e,"plotly_legendclick",o);if(n===1){if(s===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&zle(r,e,n)},e._context.doubleClickDelay)}else if(n===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var u=Ple.triggerHandler(e,"plotly_legenddoubleclick",o);u!==!1&&s!==!1&&zle(r,e,n)}}function cut(e,t,r){var n=NP(r),i=e.data()[0][0],a=i.trace,o=q3.traceIs(a,"pie-like"),s=!r._inHover&&t._context.edits.legendText&&!o,u=r._maxNameLength,l,f;i.groupTitle?(l=i.groupTitle.text,f=i.groupTitle.font):(f=r.font,r.entries?l=i.text:(l=o?i.label:a.name,a._meta&&(l=Fh.templateString(l,a._meta))));var c=Fh.ensureSingle(e,"text",n+"text");c.attr("text-anchor","start").call(Bh.font,f).text(s?Ble(l,u):l);var h=r.indentation+r.itemwidth+td.itemGap*2;Ib.positionText(c,h,0),s?c.call(Ib.makeEditable,{gd:t,text:l}).call(BP,e,t,r).on("edit",function(d){this.text(Ble(d,u)).call(BP,e,t,r);var p=i.trace._fullInput||{},x={};return x.name=d,p._isShape?q3.call("_guiRelayout",t,"shapes["+a.index+"].name",x.name):q3.call("_guiRestyle",t,x,a.index)}):BP(c,e,t,r)}function Ble(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var n=r-e.length;n>0;n--)e+=" ";return e}function hut(e,t,r){var n=t._context.doubleClickDelay,i,a=1,o=Fh.ensureSingle(e,"rect",r+"toggle",function(s){t._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(FP.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(o.on("mousedown",function(){i=new Date().getTime(),i-t._legendMouseDownTimen&&(a=Math.max(a-1,1)),qle(t,s,e,a,Tv.event)}}))}function BP(e,t,r,n,i){n._inHover&&e.attr("data-notex",!0),Ib.convertToTspans(e,r,function(){dut(t,r,n,i)})}function dut(e,t,r,n){var i=e.data()[0][0];if(!r._inHover&&i&&!i.trace.showlegend){e.remove();return}var a=e.select("g[class*=math-group]"),o=a.node(),s=NP(r);r||(r=t._fullLayout[s]);var u=r.borderwidth,l;n===B3?l=r.title.font:i.groupTitle?l=i.groupTitle.font:l=r.font;var f=l.size*Ole,c,h;if(o){var d=Bh.bBox(o);c=d.height,h=d.width,n===B3?Bh.setTranslate(a,u,u+c*.75):Bh.setTranslate(a,0,c*.25)}else{var p="."+s+(n===B3?"title":"")+"text",x=e.select(p),b=Ib.lineCount(x),v=x.node();if(c=f*b,h=v?Bh.bBox(v).width:0,n===B3)r.title.side==="left"&&(h+=td.itemGap*2),Ib.positionText(x,u+td.titlePad,u+f);else{var k=td.itemGap*2+r.indentation+r.itemwidth;i.groupTitle&&(k=td.itemGap,h-=r.indentation+r.itemwidth),Ib.positionText(x,k,-f*((b-1)/2-.3))}}n===B3?(r._titleWidth=h,r._titleHeight=c):(i.lineHeight=f,i.height=Math.max(c,16)+3,i.width=h)}function put(e){var t=0,r=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(t=e._titleWidth),n.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function vut(e,t,r,n){var i=e._fullLayout,a=NP(n);n||(n=i[a]);var o=i._size,s=Dle.isVertical(n),u=Dle.isGrouped(n),l=n.entrywidthmode==="fraction",f=n.borderwidth,c=2*f,h=td.itemGap,d=n.indentation+n.itemwidth+h*2,p=2*(f+h),x=qP(n),b=n.y<0||n.y===0&&x==="top",v=n.y>1||n.y===1&&x==="bottom",k=n.tracegroupgap,E={},{maxheight:T,orientation:L,yref:_}=n,C=L==="v"&&_==="paper"?o.h:i.height;n._maxHeight=Math.max(T>1?T:T*C,30);var S=0;n._width=0,n._height=0;var m=put(n);if(s)r.each(function(Me){var Ne=Me[0].height;Bh.setTranslate(this,f+m[0],f+m[1]+n._height+Ne/2+h),n._height+=Ne,n._width=Math.max(n._width,Me[0].width)}),S=d+n._width,n._width+=h+d+c,n._height+=p,u&&(t.each(function(Me,Ne){Bh.setTranslate(this,0,Ne*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var P=OP(n),A=n.x<0||n.x===0&&P==="right",B=n.x>1||n.x===1&&P==="left",F=v||b,U=i.width/2;n._maxWidth=Math.max(A?F&&P==="left"?o.l+o.w:U:B?F&&P==="right"?o.r+o.w:U:o.w,2*d);var G=0,j=0;r.each(function(Me){var Ne=DP(Me,n,d);G=Math.max(G,Ne),j+=Ne}),S=null;var H=0;if(u){var N=0,W=0,re=0;t.each(function(){var Me=0,Ne=0;Tv.select(this).selectAll("g.traces").each(function(ye){var Ve=DP(ye,n,d),ce=ye[0].height;Bh.setTranslate(this,m[0],m[1]+f+h+ce/2+Ne),Ne+=ce,Me=Math.max(Me,Ve),E[ye[0].trace.legendgroup]=Me});var Fe=Me+h;W>0&&Fe+f+W>n._maxWidth?(H=Math.max(H,W),W=0,re+=N+k,N=Ne):N=Math.max(N,Ne),Bh.setTranslate(this,W,re),W+=Fe}),n._width=Math.max(H,W)+f,n._height=re+N+p}else{var ae=r.size(),be=j+c+(ae-1)*h=n._maxWidth&&(H=Math.max(H,te),Le=0,pe+=Ce,n._height+=Ce,Ce=0),Bh.setTranslate(this,m[0]+f+Le,m[1]+f+pe+Ne/2+h),te=Le+Fe+h,Le+=ye,Ce=Math.max(Ce,Ne)}),be?(n._width=Le+c,n._height=Ce+p):(n._width=Math.max(H,te)+c,n._height+=Ce+p)}}n._width=Math.ceil(Math.max(n._width+m[0],n._titleWidth+2*(f+td.titlePad))),n._height=Math.ceil(Math.max(n._height+m[1],n._titleHeight+2*(f+td.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var ke=e._context.edits,Ee=ke.legendText||ke.legendPosition;r.each(function(Me){var Ne=Tv.select(this).select("."+a+"toggle"),Fe=Me[0].height,ye=Me[0].trace.legendgroup,Ve=DP(Me,n,d);u&&ye!==""&&(Ve=E[ye]);var ce=Ee?d:S||Ve;!s&&!l&&(ce+=h/2),Bh.setRect(Ne,0,-Fe/2,ce,Fe)})}function mut(e,t,r,n){var i=e._fullLayout,a=i[t],o=OP(a),s=qP(a),u=a.xref==="paper",l=a.yref==="paper";e._fullLayout._reservedMargin[t]={};var f=a.y<.5?"b":"t",c=a.x<.5?"l":"r",h={r:i.width-r,l:r+a._width,b:i.height-n,t:n+a._effHeight};if(u&&l)return HN.autoMargin(e,t,{x:a.x,y:a.y,l:a._width*O3[o],r:a._width*Ile[o],b:a._effHeight*Ile[s],t:a._effHeight*O3[s]});u?e._fullLayout._reservedMargin[t][f]=h[f]:l||a.orientation==="v"?e._fullLayout._reservedMargin[t][c]=h[c]:e._fullLayout._reservedMargin[t][f]=h[f]}function OP(e){return Fh.isRightAnchor(e)?"right":Fh.isCenterAnchor(e)?"center":"left"}function qP(e){return Fh.isBottomAnchor(e)?"bottom":Fh.isMiddleAnchor(e)?"middle":"top"}function NP(e){return e._id||"legend"}});var KN=Te(YN=>{"use strict";var Rb=Jl(),Sg=ku(),Ule=cd(),nh=ei(),yut=nh.pushUnique,XN=nh.strTranslate,gut=nh.strRotate,_ut=m3(),T0=Zf(),xut=fle(),by=Mu(),vd=jl(),UP=gp(),wy=wu(),but=dd().zindexSeparator,U3=$l(),Tm=rv(),Db=IM(),wut=RN(),Aut=jN(),Yle=Db.YANGLE,ZN=Math.PI*Yle/180,Tut=1/Math.sin(ZN),Sut=Math.cos(ZN),Mut=Math.sin(ZN),Uc=Db.HOVERARROWSIZE,Cf=Db.HOVERTEXTPAD,Vle={box:!0,ohlc:!0,violin:!0,candlestick:!0},Eut={scatter:!0,scattergl:!0,splom:!0};function Gle(e,t){return e.distance-t.distance}YN.hover=function(t,r,n,i){t=nh.getGraphDiv(t);var a=r.target;nh.throttle(t._fullLayout._uid+Db.HOVERID,Db.HOVERMINTIME,function(){kut(t,r,n,i,a)})};YN.loneHover=function(t,r){var n=!0;Array.isArray(t)||(n=!1,t=[t]);var i=r.gd,a=eue(i),o=tue(i),s=t.map(function(b){var v=b._x0||b.x0||b.x||0,k=b._x1||b.x1||b.x||0,E=b._y0||b.y0||b.y||0,T=b._y1||b.y1||b.y||0,L=b.eventData;if(L){var _=Math.min(v,k),C=Math.max(v,k),S=Math.min(E,T),m=Math.max(E,T),P=b.trace;if(U3.traceIs(P,"gl3d")){var A=i._fullLayout[P.scene]._scene.container,B=A.offsetLeft,F=A.offsetTop;_+=B,C+=B,S+=F,m+=F}L.bbox={x0:_+o,x1:C+o,y0:S+a,y1:m+a},r.inOut_bbox&&r.inOut_bbox.push(L.bbox)}else L=!1;return{color:b.color||vd.defaultLine,x0:b.x0||b.x||0,x1:b.x1||b.x||0,y0:b.y0||b.y||0,y1:b.y1||b.y||0,xLabel:b.xLabel,yLabel:b.yLabel,zLabel:b.zLabel,text:b.text,name:b.name,idealAlign:b.idealAlign,borderColor:b.borderColor,fontFamily:b.fontFamily,fontSize:b.fontSize,fontColor:b.fontColor,fontWeight:b.fontWeight,fontStyle:b.fontStyle,fontVariant:b.fontVariant,nameLength:b.nameLength,textAlign:b.textAlign,trace:b.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:b.hovertemplate||!1,hovertemplateLabels:b.hovertemplateLabels||!1,eventData:L}}),u=!1,l=Jle(s,{gd:i,hovermode:"closest",rotateLabels:u,bgColor:r.bgColor||vd.background,container:Rb.select(r.container),outerContainer:r.outerContainer||r.container}),f=l.hoverLabels,c=5,h=0,d=0;f.sort(function(b,v){return b.y0-v.y0}).each(function(b,v){var k=b.y0-b.by/2;k-cC[0]._length||ce<0||ce>S[0]._length)return UP.unhoverRaw(e,t)}if(t.pointerX=Ve+C[0]._offset,t.pointerY=ce+S[0]._offset,"xval"in t?j=Tm.flat(a,t.xval):j=Tm.p2c(C,Ve),"yval"in t?H=Tm.flat(a,t.yval):H=Tm.p2c(S,ce),!Sg(j[0])||!Sg(H[0]))return nh.warn("Fx.hover failed",t,e),UP.unhoverRaw(e,t)}var gt=1/0;function Nt(Ci,nn){for(W=0;WEe&&(U.splice(0,Ee),gt=U[0].distance),c&&F!==0&&U.length===0){ke.distance=F,ke.index=!1;var yt=ae._module.hoverPoints(ke,pe,te,"closest",{hoverLayer:s._hoverlayer});if(yt&&(yt=yt.filter(function(Ir){return Ir.spikeDistance<=F})),yt&&yt.length){var Vt,Wt=yt.filter(function(Ir){return Ir.xa.showspikes&&Ir.xa.spikesnap!=="hovered data"});if(Wt.length){var _r=Wt[0];Sg(_r.x0)&&Sg(_r.y0)&&(Vt=Ye(_r),(!Me.vLinePoint||Me.vLinePoint.spikeDistance>Vt.spikeDistance)&&(Me.vLinePoint=Vt))}var Lr=yt.filter(function(Ir){return Ir.ya.showspikes&&Ir.ya.spikesnap!=="hovered data"});if(Lr.length){var Ur=Lr[0];Sg(Ur.x0)&&Sg(Ur.y0)&&(Vt=Ye(Ur),(!Me.hLinePoint||Me.hLinePoint.spikeDistance>Vt.spikeDistance)&&(Me.hLinePoint=Vt))}}}}}Nt();function it(Ci,nn,ii){for(var wi=null,Gi=1/0,Bt,yt=0;yt0&&Math.abs(Ci.distance)rt-1;Ut--)br(U[Ut]);U=Yt,Dt()}var Ie=e._hoverdata,xe=[],Oe=eue(e),Re=tue(e);for(N=0;N1||U.length>1)||h==="closest"&&Ne&&U.length>1,Fr=vd.combine(s.plot_bgcolor||vd.background,s.paper_bgcolor),di=Jle(U,{gd:e,hovermode:h,rotateLabels:Mr,bgColor:Fr,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),Di=di.hoverLabels;if(Tm.isUnifiedHover(h)||(Lut(Di,Mr,s,di.commonLabelBoundingBox),Qle(Di,Mr,s._invScaleX,s._invScaleY)),i&&i.tagName){var Ii=U3.getComponentMethod("annotations","hasClickToShow")(e,xe);xut(Rb.select(i),Ii?"pointer":"")}!i||n||!Iut(e,t,Ie)||(Ie&&e.emit("plotly_unhover",{event:t,points:Ie}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:C,yaxes:S,xvals:j,yvals:H}))}function Kle(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Cut=/([\s\S]*)<\/extra>/;function Jle(e,t){var r=t.gd,n=r._fullLayout,i=t.hovermode,a=t.rotateLabels,o=t.bgColor,s=t.container,u=t.outerContainer,l=t.commonLabelOpts||{};if(e.length===0)return[[]];var f=t.fontFamily||Db.HOVERFONT,c=t.fontSize||Db.HOVERFONTSIZE,h=t.fontWeight||n.font.weight,d=t.fontStyle||n.font.style,p=t.fontVariant||n.font.variant,x=t.fontTextcase||n.font.textcase,b=t.fontLineposition||n.font.lineposition,v=t.fontShadow||n.font.shadow,k=e[0],E=k.xa,T=k.ya,L=i.charAt(0),_=L+"Label",C=k[_];if(C===void 0&&E.type==="multicategory")for(var S=0;Sn.width-Re&&(De=n.width-Re),rt.attr("d","M"+(Ie-De)+",0L"+(Ie-De+Uc)+","+Oe+Uc+"H"+Re+"v"+Oe+(Cf*2+Ut.height)+"H"+-Re+"V"+Oe+Uc+"H"+(Ie-De-Uc)+"Z"),Ie=De,W.minX=Ie-Re,W.maxX=Ie+Re,E.side==="top"?(W.minY=xe-(Cf*2+Ut.height),W.maxY=xe-Cf):(W.minY=xe+Cf,W.maxY=xe+(Cf*2+Ut.height))}else{var ct,ge,fe;T.side==="right"?(ct="start",ge=1,fe="",Ie=E._offset+E._length):(ct="end",ge=-1,fe="-",Ie=E._offset),xe=T._offset+(k.y0+k.y1)/2,$e.attr("text-anchor",ct),rt.attr("d","M0,0L"+fe+Uc+","+Uc+"V"+(Cf+Ut.height/2)+"h"+fe+(Cf*2+Ut.width)+"V-"+(Cf+Ut.height/2)+"H"+fe+Uc+"V-"+Uc+"Z"),W.minY=xe-(Cf+Ut.height/2),W.maxY=xe+(Cf+Ut.height/2),T.side==="right"?(W.minX=Ie+Uc,W.maxX=Ie+Uc+(Cf*2+Ut.width)):(W.minX=Ie-Uc-(Cf*2+Ut.width),W.maxX=Ie-Uc);var de=Ut.height/2,dt=P-Ut.top-de,It="clip"+n._uid+"commonlabel"+T._id,Pt;if(Ie=0?wt=Zt:Et+gt=0?wt=Et:Ae+gt=0?vt=St:Dt+Nt=0?vt=Dt:at+Nt=0,(Ue.idealAlign==="top"||!Dr)&&Mr?(fe-=dt/2,Ue.anchor="end"):Dr?(fe+=dt/2,Ue.anchor="start"):Ue.anchor="middle",Ue.crossPos=fe;else{if(Ue.pos=fe,Dr=ge+de/2+Hr<=A,Mr=ge-de/2-Hr>=0,(Ue.idealAlign==="left"||!Dr)&&Mr)ge-=de/2,Ue.anchor="end";else if(Dr)ge+=de/2,Ue.anchor="start";else{Ue.anchor="middle";var Fr=Hr/2,di=ge+Fr-A,Di=ge-Fr;di>0&&(ge-=di),Di<0&&(ge+=-Di)}Ue.crossPos=ge}xe.attr("text-anchor",Ue.anchor),Re&&Oe.attr("text-anchor",Ue.anchor),rt.attr("transform",XN(ge,fe)+(a?gut(Yle):""))}),{hoverLabels:st,commonLabelBoundingBox:W}}function Hle(e,t,r,n,i,a){var o="",s="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=nh.templateString(e.name,e.trace._meta)),o=Xle(e.name,e.nameLength));var u=r.charAt(0),l=u==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(s+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(s+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[u+"Label"]===i?s=e[l+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(s=e.yLabel):e.yLabel===void 0?s=e.xLabel:s="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(s+=(s?"
":"")+e.text),e.extraText!==void 0&&(s+=(s?"
":"")+e.extraText),a&&s===""&&!e.hovertemplate&&(o===""&&a.remove(),s=o);var f=e.hovertemplate||!1;if(f){var c=e.hovertemplateLabels||e;e[u+"Label"]!==i&&(c[u+"other"]=c[u+"Val"],c[u+"otherLabel"]=c[u+"Label"]),s=nh.hovertemplateString(f,c,n._d3locale,e.eventData[0]||{},e.trace._meta),s=s.replace(Cut,function(h,d){return o=Xle(d,e.nameLength),""})}return[s,o]}function Lut(e,t,r,n){var i=t?"xa":"ya",a=t?"ya":"xa",o=0,s=1,u=e.size(),l=new Array(u),f=0,c=n.minX,h=n.maxX,d=n.minY,p=n.maxY,x=function(j){return j*r._invScaleX},b=function(j){return j*r._invScaleY};e.each(function(j){var H=j[i],N=j[a],W=H._id.charAt(0)==="x",re=H.range;f===0&&re&&re[0]>re[1]!==W&&(s=-1);var ae=0,be=W?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var Ce=$le(j,t),Le=j.anchor,pe=Le==="end"?-1:1,te,ke;if(Le==="middle")te=j.crossPos+(W?b(Ce.y-j.by/2):x(j.bx/2+j.tx2width/2)),ke=te+(W?b(j.by):x(j.bx));else if(W)te=j.crossPos+b(Uc+Ce.y)-b(j.by/2-Uc),ke=te+b(j.by);else{var Ee=x(pe*Uc+Ce.x),Me=Ee+x(pe*j.bx);te=j.crossPos+Math.min(Ee,Me),ke=j.crossPos+Math.max(Ee,Me)}W?d!==void 0&&p!==void 0&&Math.min(ke,p)-Math.max(te,d)>1&&(N.side==="left"?(ae=N._mainLinePosition,be=r.width):be=N._mainLinePosition):c!==void 0&&h!==void 0&&Math.min(ke,h)-Math.max(te,c)>1&&(N.side==="top"?(ae=N._mainLinePosition,be=r.height):be=N._mainLinePosition)}l[f++]=[{datum:j,traceIndex:j.trace.index,dp:0,pos:j.pos,posref:j.posref,size:j.by*(W?Tut:1)/2,pmin:ae,pmax:be}]}),l.sort(function(j,H){return j[0].posref-H[0].posref||s*(H[0].traceIndex-j[0].traceIndex)});var v,k,E,T,L,_,C;function S(j){var H=j[0],N=j[j.length-1];if(k=H.pmin-H.pos-H.dp+H.size,E=N.pos+N.dp+N.size-H.pmax,k>.01){for(L=j.length-1;L>=0;L--)j[L].dp+=k;v=!1}if(!(E<.01)){if(k<-.01){for(L=j.length-1;L>=0;L--)j[L].dp-=E;v=!1}if(v){var W=0;for(T=0;TH.pmax&&W++;for(T=j.length-1;T>=0&&!(W<=0);T--)_=j[T],_.pos>H.pmax-1&&(_.del=!0,W--);for(T=0;T=0;L--)j[L].dp-=E;for(T=j.length-1;T>=0&&!(W<=0);T--)_=j[T],_.pos+_.dp+_.size>H.pmax&&(_.del=!0,W--)}}}for(;!v&&o<=u;){for(o++,v=!0,T=0;T.01){for(L=P.length-1;L>=0;L--)P[L].dp+=k;for(m.push.apply(m,P),l.splice(T+1,1),C=0,L=m.length-1;L>=0;L--)C+=m[L].dp;for(E=C/m.length,L=m.length-1;L>=0;L--)m[L].dp-=E;v=!1}else T++}l.forEach(S)}for(T=l.length-1;T>=0;T--){var F=l[T];for(L=F.length-1;L>=0;L--){var U=F[L],G=U.datum;G.offset=U.dp,G.del=U.del}}}function $le(e,t){var r=0,n=e.offset;return t&&(n*=-Mut,r=e.offset*Sut),{x:r,y:n}}function Put(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(Uc+Cf),n=r+t*(e.txwidth+Cf),i=e.anchor==="middle";return i&&(r-=e.tx2width/2,n+=e.txwidth/2+Cf),{alignShift:t,textShiftX:r,text2ShiftX:n}}function Qle(e,t,r,n){var i=function(o){return o*r},a=function(o){return o*n};e.each(function(o){var s=Rb.select(this);if(o.del)return s.remove();var u=s.select("text.nums"),l=o.anchor,f=l==="end"?-1:1,c=Put(o),h=$le(o,t),d=h.x,p=h.y,x=l==="middle",b="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,v;x?v="M-"+i(o.bx/2+o.tx2width/2)+","+a(p-o.by/2)+"h"+i(o.bx)+"v"+a(o.by)+"h-"+i(o.bx)+"Z":b?v="M0,0L"+i(f*Uc+d)+","+a(Uc+p)+"v"+a(o.by/2-Uc)+"h"+i(f*o.bx)+"v-"+a(o.by)+"H"+i(f*Uc+d)+"V"+a(p-Uc)+"Z":v="M"+i(f*Uc+d)+","+a(p-o.by/2)+"h"+i(f*o.bx)+"v"+a(o.by)+"h"+i(-f*o.bx)+"Z",s.select("path").attr("d",v);var k=d+c.textShiftX,E=p+o.ty0-o.by/2+Cf,T=o.textAlign||"auto";T!=="auto"&&(T==="left"&&l!=="start"?(u.attr("text-anchor","start"),k=x?-o.bx/2-o.tx2width/2+Cf:-o.bx-Cf):T==="right"&&l!=="end"&&(u.attr("text-anchor","end"),k=x?o.bx/2-o.tx2width/2-Cf:o.bx+Cf)),u.call(T0.positionText,i(k),a(E)),o.tx2width&&(s.select("text.name").call(T0.positionText,i(c.text2ShiftX+c.alignShift*Cf+d),a(p+o.ty0-o.by/2+Cf)),s.select("rect").call(by.setRect,i(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),a(p-o.by/2-1),i(o.tx2width),a(o.by+2)))})}function zut(e,t){var r=e.index,n=e.trace||{},i=e.cd[0],a=e.cd[r]||{};function o(h){return h||Sg(h)&&h===0}var s=Array.isArray(r)?function(h,d){var p=nh.castOption(i,r,h);return o(p)?p:nh.extractOption({},n,"",d)}:function(h,d){return nh.extractOption(a,n,h,d)};function u(h,d,p){var x=s(d,p);o(x)&&(e[h]=x)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("fontWeight","htw","hoverlabel.font.weight"),u("fontStyle","hty","hoverlabel.font.style"),u("fontVariant","htv","hoverlabel.font.variant"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=nh.constrain(e.x0,0,e.xa._length),e.x1=nh.constrain(e.x1,0,e.xa._length),e.y0=nh.constrain(e.y0,0,e.ya._length),e.y1=nh.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:wy.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:wy.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var l=wy.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+l+" / -"+wy.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+l,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=wy.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+wy.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,t==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function Wle(e,t,r){var n=r.container,i=r.fullLayout,a=i._size,o=r.event,s=!!t.hLinePoint,u=!!t.vLinePoint,l,f;if(n.selectAll(".spikeline").remove(),!!(u||s)){var c=vd.combine(i.plot_bgcolor,i.paper_bgcolor);if(s){var h=t.hLinePoint,d,p;l=h&&h.xa,f=h&&h.ya;var x=f.spikesnap;x==="cursor"?(d=o.pointerX,p=o.pointerY):(d=l._offset+h.x,p=f._offset+h.y);var b=Ule.readability(h.color,c)<1.5?vd.contrast(c):h.color,v=f.spikemode,k=f.spikethickness,E=f.spikecolor||b,T=wy.getPxPosition(e,f),L,_;if(v.indexOf("toaxis")!==-1||v.indexOf("across")!==-1){if(v.indexOf("toaxis")!==-1&&(L=T,_=d),v.indexOf("across")!==-1){var C=f._counterDomainMin,S=f._counterDomainMax;f.anchor==="free"&&(C=Math.min(C,f.position),S=Math.max(S,f.position)),L=a.l+C*a.w,_=a.l+S*a.w}n.insert("line",":first-child").attr({x1:L,x2:_,y1:p,y2:p,"stroke-width":k,stroke:E,"stroke-dasharray":by.dashStyle(f.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:L,x2:_,y1:p,y2:p,"stroke-width":k+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}v.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:T+(f.side!=="right"?k:-k),cy:p,r:k,fill:E}).classed("spikeline",!0)}if(u){var m=t.vLinePoint,P,A;l=m&&m.xa,f=m&&m.ya;var B=l.spikesnap;B==="cursor"?(P=o.pointerX,A=o.pointerY):(P=l._offset+m.x,A=f._offset+m.y);var F=Ule.readability(m.color,c)<1.5?vd.contrast(c):m.color,U=l.spikemode,G=l.spikethickness,j=l.spikecolor||F,H=wy.getPxPosition(e,l),N,W;if(U.indexOf("toaxis")!==-1||U.indexOf("across")!==-1){if(U.indexOf("toaxis")!==-1&&(N=H,W=A),U.indexOf("across")!==-1){var re=l._counterDomainMin,ae=l._counterDomainMax;l.anchor==="free"&&(re=Math.min(re,l.position),ae=Math.max(ae,l.position)),N=a.t+(1-ae)*a.h,W=a.t+(1-re)*a.h}n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:W,"stroke-width":G,stroke:j,"stroke-dasharray":by.dashStyle(l.spikedash,G)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:W,"stroke-width":G+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}U.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:P,cy:H-(l.side!=="top"?G:-G),r:G,fill:j}).classed("spikeline",!0)}}}function Iut(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var i=r[n],a=e._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers))return!0}return!1}function jle(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function Xle(e,t){return T0.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Rut(e,t){for(var r=t.charAt(0),n=[],i=[],a=[],o=0;o{"use strict";var Dut=ei(),Fut=jl(),But=rv().isUnifiedHover;rue.exports=function(t,r,n,i){i=i||{};var a=r.legend;function o(s){i.font[s]||(i.font[s]=a?r.legend.font[s]:r.font[s])}r&&But(r.hovermode)&&(i.font||(i.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(i.bgcolor||(i.bgcolor=Fut.combine(r.legend.bgcolor,r.paper_bgcolor)),i.bordercolor||(i.bordercolor=r.legend.bordercolor)):i.bgcolor||(i.bgcolor=r.paper_bgcolor)),n("hoverlabel.bgcolor",i.bgcolor),n("hoverlabel.bordercolor",i.bordercolor),n("hoverlabel.namelength",i.namelength),n("hoverlabel.showarrow",i.showarrow),Dut.coerceFont(n,"hoverlabel.font",i.font),n("hoverlabel.align",i.align)}});var nue=Te((Far,iue)=>{"use strict";var Out=ei(),qut=f5(),Nut=N1();iue.exports=function(t,r){function n(i,a){return Out.coerce(t,r,Nut,i,a)}qut(t,r,n)}});var sue=Te((Bar,oue)=>{"use strict";var aue=ei(),Uut=i3(),Vut=f5();oue.exports=function(t,r,n,i){function a(s,u){return aue.coerce(t,r,Uut,s,u)}var o=aue.extendFlat({},i.hoverlabel);r.hovertemplate&&(o.namelength=-1),Vut(t,r,a,o)}});var JN=Te((Oar,lue)=>{"use strict";var Gut=ei(),Hut=N1();lue.exports=function(t,r){function n(i,a){return r[i]!==void 0?r[i]:Gut.coerce(t,r,Hut,i,a)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var cue=Te((qar,fue)=>{"use strict";var uue=ei(),Wut=N1(),jut=JN(),Xut=f5();fue.exports=function(t,r){function n(f,c){return uue.coerce(t,r,Wut,f,c)}var i=jut(t,r);i&&(n("hoverdistance"),n("spikedistance"));var a=n("dragmode");a==="select"&&n("selectdirection");var o=r._has("mapbox"),s=r._has("map"),u=r._has("geo"),l=r._basePlotModules.length;r.dragmode==="zoom"&&((o||s||u)&&l===1||(o||s)&&u&&l===2)&&(r.dragmode="pan"),Xut(t,r,n),uue.coerceFont(n,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var pue=Te((Nar,due)=>{"use strict";var $N=ei(),hue=$l();due.exports=function(t){var r=t.calcdata,n=t._fullLayout;function i(l){return function(f){return $N.coerceHoverinfo({hoverinfo:f},{_module:l._module},n)}}for(var a=0;a{"use strict";var Yut=$l(),Kut=KN().hover;vue.exports=function(t,r,n){var i=Yut.getComponentMethod("annotations","onClick")(t,t._hoverdata);n!==void 0&&Kut(t,r,n,!0);function a(){t.emit("plotly_click",{points:t._hoverdata,event:r})}t._hoverdata&&r&&r.target&&(i&&i.then?i.then(a):a(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var Xc=Te((Var,_ue)=>{"use strict";var Jut=Jl(),VP=ei(),$ut=gp(),c5=rv(),yue=N1(),gue=KN();_ue.exports={moduleType:"component",name:"fx",constants:IM(),schema:{layout:yue},attributes:i3(),layoutAttributes:yue,supplyLayoutGlobalDefaults:nue(),supplyDefaults:sue(),supplyLayoutDefaults:cue(),calc:pue(),getDistanceFunction:c5.getDistanceFunction,getClosest:c5.getClosest,inbox:c5.inbox,quadrature:c5.quadrature,appendArrayPointValue:c5.appendArrayPointValue,castHoverOption:eft,castHoverinfo:tft,hover:gue.hover,unhover:$ut.unhover,loneHover:gue.loneHover,loneUnhover:Qut,click:mue()};function Qut(e){var t=VP.isD3Selection(e)?e:Jut.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function eft(e,t,r){return VP.castOption(e,t,"hoverlabel."+r)}function tft(e,t,r){function n(i){return VP.coerceHoverinfo({hoverinfo:i},{_module:e._module},t)}return VP.castOption(e,r,"hoverinfo",n)}});var Sm=Te(Mg=>{"use strict";Mg.selectMode=function(e){return e==="lasso"||e==="select"};Mg.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Mg.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Mg.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Mg.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Mg.selectingOrDrawing=function(e){return Mg.freeMode(e)||Mg.rectMode(e)}});var h5=Te((Har,xue)=>{"use strict";xue.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var GP=Te((War,bue)=>{"use strict";bue.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var WP=Te((jar,wue)=>{"use strict";var HP=32;wue.exports={CIRCLE_SIDES:HP,i000:0,i090:HP/4,i180:HP/2,i270:HP/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var jP=Te((Xar,Tue)=>{"use strict";var rft=ei().strTranslate;function Aue(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function ift(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function nft(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return Aue(e,r[t])}}function aft(e){return rft(e.xaxis._offset,e.yaxis._offset)}Tue.exports={p2r:Aue,r2p:ift,axValue:nft,getTransform:aft}});var f_=Te(Eg=>{"use strict";var oft=$M(),Eue=WP(),V3=Eue.CIRCLE_SIDES,QN=Eue.SQRT2,kue=jP(),Sue=kue.p2r,Mue=kue.r2p,sft=[0,3,4,5,6,1,2],lft=[0,3,4,1,2];Eg.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",n=0;n0&&u{"use strict";var Cue=Wc(),Rue=Sm(),uft=Rue.drawMode,fft=Rue.openMode,G3=WP(),Lue=G3.i000,Pue=G3.i090,zue=G3.i180,Iue=G3.i270,cft=G3.cos45,hft=G3.sin45,Due=jP(),ZP=Due.p2r,c_=Due.r2p,dft=e_(),pft=dft.clearOutline,YP=f_(),vft=YP.readPaths,mft=YP.writePaths,yft=YP.ellipseOver,gft=YP.fixDatesForPaths;function _ft(e,t){if(e.length){var r=e[0][0];if(r){var n=t.gd,i=t.isActiveShape,a=t.dragmode,o=(n.layout||{}).shapes||[];if(!uft(a)&&i!==void 0){var s=n._fullLayout._activeShapeIndex;if(s{"use strict";var xft=Sm(),bft=xft.selectMode,wft=e_(),Aft=wft.clearOutline,e7=f_(),Tft=e7.readPaths,Sft=e7.writePaths,Mft=e7.fixDatesForPaths;Oue.exports=function(t,r){if(t.length){var n=t[0][0];if(n){var i=n.getAttribute("d"),a=r.gd,o=a._fullLayout.newselection,s=r.plotinfo,u=s.xaxis,l=s.yaxis,f=r.isActiveSelection,c=r.dragmode,h=(a.layout||{}).selections||[];if(!bft(c)&&f!==void 0){var d=a._fullLayout._activeSelectionIndex;if(d{"use strict";que.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var h_=Te(Fd=>{"use strict";var Fb=p5(),Nue=ei(),JP=wu();Fd.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};Fd.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};Fd.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};Fd.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};Fd.extractPathCoords=function(e,t,r){var n=[],i=e.match(Fb.segmentRE);return i.forEach(function(a){var o=t[a.charAt(0)].drawn;if(o!==void 0){var s=a.substr(1).match(Fb.paramRE);if(!(!s||s.lengthd&&(x="X"),x});return l>d&&(p=p.replace(/[\s,]*X.*/,""),Nue.log("Ignoring extra params in segment "+u)),f+p})}function v5(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var i7=Te((Qar,Hue)=>{"use strict";var kft=ei(),H3=wu(),Uue=Zf(),Vue=Mu(),Cft=f_().readPaths,r7=h_(),Lft=r7.getPathString,Gue=AL(),Pft=Qh().FROM_TL;Hue.exports=function(t,r,n,i){if(i.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var a;if(n.label.texttemplate){var o={};if(n.type!=="path"){var s=H3.getFromId(t,n.xref),u=H3.getFromId(t,n.yref);for(var l in Gue){var f=Gue[l](n,s,u);f!==void 0&&(o[l]=f)}}a=kft.texttemplateStringForShapes(n.label.texttemplate,{},t._fullLayout._d3locale,o)}else a=n.label.text;var c={"data-index":r},h=n.label.font,d={"data-notex":1},p=i.append("g").attr(c).classed("shape-label",!0),x=p.append("text").attr(d).classed("shape-label-text",!0).text(a),b,v,k,E;if(n.path){var T=Lft(t,n),L=Cft(T,t);b=1/0,k=1/0,v=-1/0,E=-1/0;for(var _=0;_=e?i=t-n:i=n-t,-180/Math.PI*Math.atan2(i,a)}function Ift(e,t,r,n,i,a,o){var s=i.label.textposition,u=i.label.textangle,l=i.label.padding,f=i.type,c=Math.PI/180*a,h=Math.sin(c),d=Math.cos(c),p=i.label.xanchor,x=i.label.yanchor,b,v,k,E;if(f==="line"){s==="start"?(b=e,v=t):s==="end"?(b=r,v=n):(b=(e+r)/2,v=(t+n)/2),p==="auto"&&(s==="start"?u==="auto"?r>e?p="left":re?p="right":re?p="right":re?p="left":r{"use strict";var Rft=ei(),Dft=Rft.strTranslate,Wue=gp(),Zue=Sm(),Fft=Zue.drawMode,Yue=Zue.selectMode,Kue=$l(),jue=jl(),QP=WP(),Bft=QP.i000,Oft=QP.i090,qft=QP.i180,Nft=QP.i270,Uft=e_(),Jue=Uft.clearOutlineControllers,a7=f_(),$P=a7.pointsOnRectangle,n7=a7.pointsOnEllipse,Vft=a7.writePaths,Gft=KP().newShapes,Hft=KP().createShapeObj,Wft=t7(),jft=i7();$ue.exports=function e(t,r,n,i){i||(i=0);var a=n.gd;function o(){e(t,r,n,i++),(n7(t[0])||n.hasText)&&s({redrawing:!0})}function s(H){var N={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,N=Gft(r,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,N=Wft(r,n),a._fullLayout._reselect=!0),Object.keys(N).length&&Kue.call((H||{}).redrawing?"relayout":"_guiRelayout",a,N)}var u=a._fullLayout,l=u._zoomlayer,f=n.dragmode,c=Fft(f),h=Yue(f);(c||h)&&(a._fullLayout._outlining=!0),Jue(a),r.attr("d",Vft(t));var d,p,x,b,v;if(!i&&(n.isActiveShape||n.isActiveSelection)){v=Xft([],t);var k=l.append("g").attr("class","outline-controllers");P(k),j()}if(c&&n.hasText){var E=l.select(".label-temp"),T=Hft(r,n,n.dragmode);jft(a,"label-temp",T,E)}function L(H){x=+H.srcElement.getAttribute("data-i"),b=+H.srcElement.getAttribute("data-j"),d[x][b].moveFn=_}function _(H,N){if(t.length){var W=v[x][b][1],re=v[x][b][2],ae=t[x],be=ae.length;if($P(ae)){var Ce=H,Le=N;if(n.isActiveSelection){var pe=Xue(ae,b);pe[1]===ae[b][1]?Le=0:Ce=0}for(var te=0;te1&&!(H.length===2&&H[1][0]==="Z")&&(b===0&&(H[0][0]="M"),t[x]=H,o(),s())}}function m(H,N){if(H===2){x=+N.srcElement.getAttribute("data-i"),b=+N.srcElement.getAttribute("data-j");var W=t[x];!$P(W)&&!n7(W)&&S()}}function P(H){d=[];for(var N=0;N{"use strict";var Yft=Jl(),nfe=$l(),Que=ei(),W3=wu(),Kft=f_().readPaths,Jft=ez(),rz=i7(),afe=e_().clearOutlineControllers,o7=jl(),l7=Mu(),$ft=Pf().arrayEditor,efe=gp(),tfe=Am(),Bb=p5(),Sv=h_(),s7=Sv.getPathString;lfe.exports={draw:u7,drawOne:ofe,eraseActiveShape:tct,drawLabel:rz};function u7(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var n=t._plots[r].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var i=0;io&&Tt>s&&!it.shiftKey?efe.getCursor(St/kt,1-Dt/Tt):"move";tfe(t,Zt),ke=Zt.split("-")[0]}}function Fe(it){tz(e)||(u&&(v=ae(r.xanchor)),l&&(k=be(r.yanchor)),r.type==="path"?A=r.path:(d=u?r.x0:ae(r.x0),p=l?r.y0:be(r.y0),x=u?r.x1:ae(r.x1),b=l?r.y1:be(r.y1)),db?(E=p,C="y0",T=b,S="y1"):(E=b,C="y1",T=p,S="y0"),Ne(it),nt(i,r),Nt(t,r,e),te.moveFn=ke==="move"?ce:Je,te.altKey=it.altKey)}function ye(){tz(e)||(tfe(t),gt(i),sfe(t,e,r),nfe.call("_guiRelayout",e,a.getUpdateObj()))}function Ve(){tz(e)||gt(i)}function ce(it,Ye){if(r.type==="path"){var kt=function(Dt){return Dt},Tt=kt,St=kt;u?h("xanchor",r.xanchor=Ce(v+it)):(Tt=function(Zt){return Ce(ae(Zt)+it)},F&&F.type==="date"&&(Tt=Sv.encodeDate(Tt))),l?h("yanchor",r.yanchor=Le(k+Ye)):(St=function(Zt){return Le(be(Zt)+Ye)},G&&G.type==="date"&&(St=Sv.encodeDate(St))),h("path",r.path=rfe(A,Tt,St))}else u?h("xanchor",r.xanchor=Ce(v+it)):(h("x0",r.x0=Ce(d+it)),h("x1",r.x1=Ce(x+it))),l?h("yanchor",r.yanchor=Le(k+Ye)):(h("y0",r.y0=Le(p+Ye)),h("y1",r.y1=Le(b+Ye)));t.attr("d",s7(e,r)),nt(i,r),rz(e,n,r,B)}function Je(it,Ye){if(c){var kt=function(hr){return hr},Tt=kt,St=kt;u?h("xanchor",r.xanchor=Ce(v+it)):(Tt=function(yr){return Ce(ae(yr)+it)},F&&F.type==="date"&&(Tt=Sv.encodeDate(Tt))),l?h("yanchor",r.yanchor=Le(k+Ye)):(St=function(yr){return Le(be(yr)+Ye)},G&&G.type==="date"&&(St=Sv.encodeDate(St))),h("path",r.path=rfe(A,Tt,St))}else if(f){if(ke==="resize-over-start-point"){var Dt=d+it,Zt=l?p-Ye:p+Ye;h("x0",r.x0=u?Dt:Ce(Dt)),h("y0",r.y0=l?Zt:Le(Zt))}else if(ke==="resize-over-end-point"){var Et=x+it,Ae=l?b-Ye:b+Ye;h("x1",r.x1=u?Et:Ce(Et)),h("y1",r.y1=l?Ae:Le(Ae))}}else{var at=function(hr){return ke.indexOf(hr)!==-1},wt=at("n"),vt=at("s"),st=at("w"),Ue=at("e"),rt=wt?E+Ye:E,$e=vt?T+Ye:T,zt=st?L+it:L,Yt=Ue?_+it:_;l&&(wt&&(rt=E-Ye),vt&&($e=T-Ye)),(!l&&$e-rt>s||l&&rt-$e>s)&&(h(C,r[C]=l?rt:Le(rt)),h(S,r[S]=l?$e:Le($e))),Yt-zt>o&&(h(m,r[m]=u?zt:Ce(zt)),h(P,r[P]=u?Yt:Ce(Yt)))}t.attr("d",s7(e,r)),nt(i,r),rz(e,n,r,B)}function nt(it,Ye){(u||l)&&kt();function kt(){var Tt=Ye.type!=="path",St=it.selectAll(".visual-cue").data([0]),Dt=1;St.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Dt}).classed("visual-cue",!0);var Zt=ae(u?Ye.xanchor:Que.midRange(Tt?[Ye.x0,Ye.x1]:Sv.extractPathCoords(Ye.path,Bb.paramIsX))),Et=be(l?Ye.yanchor:Que.midRange(Tt?[Ye.y0,Ye.y1]:Sv.extractPathCoords(Ye.path,Bb.paramIsY)));if(Zt=Sv.roundPositionForSharpStrokeRendering(Zt,Dt),Et=Sv.roundPositionForSharpStrokeRendering(Et,Dt),u&&l){var Ae="M"+(Zt-1-Dt)+","+(Et-1-Dt)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";St.attr("d",Ae)}else if(u){var at="M"+(Zt-1-Dt)+","+(Et-9-Dt)+"v18 h2 v-18 Z";St.attr("d",at)}else{var wt="M"+(Zt-9-Dt)+","+(Et-1-Dt)+"h18 v2 h-18 Z";St.attr("d",wt)}}}function gt(it){it.selectAll(".visual-cue").remove()}function Nt(it,Ye,kt){var Tt=Ye.xref,St=Ye.yref,Dt=W3.getFromId(kt,Tt),Zt=W3.getFromId(kt,St),Et="";Tt!=="paper"&&!Dt.autorange&&(Et+=Tt),St!=="paper"&&!Zt.autorange&&(Et+=St),l7.setClipUrl(it,Et?"clip"+kt._fullLayout._uid+Et:null,kt)}}function rfe(e,t,r){return e.replace(Bb.segmentRE,function(n){var i=0,a=n.charAt(0),o=Bb.paramIsX[a],s=Bb.paramIsY[a],u=Bb.numParams[a],l=n.substr(1).replace(Bb.paramRE,function(f){return i>=u||(o[i]?f=t(f):s[i]&&(f=r(f)),i++),f});return a+l})}function ect(e,t){if(iz(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){ife(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=ife,u7(e)}}}function ife(e){if(iz(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(afe(e),delete e._fullLayout._activeShapeIndex,u7(e))}}function tct(e){if(iz(e)){afe(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var S0=$l(),ufe=Cc(),ffe=Wc(),Ff=GP(),rct=nz().eraseActiveShape,az=ei(),Sf=az._,Bf=yfe.exports={};Bf.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?Sf(e,"Download plot as a PNG"):Sf(e,"Download plot")},icon:Ff.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};az.notifier(Sf(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in t&&(r[n]=t[n])}),S0.call("downloadImage",e,r).then(function(n){az.notifier(Sf(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){az.notifier(Sf(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Bf.sendDataToCloud={name:"sendDataToCloud",title:function(e){return Sf(e,"Edit in Chart Studio")},icon:Ff.disk,click:function(e){ufe.sendDataToCloud(e)}};Bf.editInChartStudio={name:"editInChartStudio",title:function(e){return Sf(e,"Edit in Chart Studio")},icon:Ff.pencil,click:function(e){ufe.sendDataToCloud(e)}};Bf.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Sf(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ff.zoombox,click:Op};Bf.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Sf(e,"Pan")},attr:"dragmode",val:"pan",icon:Ff.pan,click:Op};Bf.select2d={name:"select2d",_cat:"select",title:function(e){return Sf(e,"Box Select")},attr:"dragmode",val:"select",icon:Ff.selectbox,click:Op};Bf.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Sf(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ff.lasso,click:Op};Bf.drawclosedpath={name:"drawclosedpath",title:function(e){return Sf(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ff.drawclosedpath,click:Op};Bf.drawopenpath={name:"drawopenpath",title:function(e){return Sf(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ff.drawopenpath,click:Op};Bf.drawline={name:"drawline",title:function(e){return Sf(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ff.drawline,click:Op};Bf.drawrect={name:"drawrect",title:function(e){return Sf(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ff.drawrect,click:Op};Bf.drawcircle={name:"drawcircle",title:function(e){return Sf(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ff.drawcircle,click:Op};Bf.eraseshape={name:"eraseshape",title:function(e){return Sf(e,"Erase active shape")},icon:Ff.eraseshape,click:rct};Bf.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Sf(e,"Zoom in")},attr:"zoom",val:"in",icon:Ff.zoom_plus,click:Op};Bf.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Sf(e,"Zoom out")},attr:"zoom",val:"out",icon:Ff.zoom_minus,click:Op};Bf.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Sf(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ff.autoscale,click:Op};Bf.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Sf(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ff.home,click:Op};Bf.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Sf(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Ff.tooltip_basic,gravity:"ne",click:Op};Bf.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Sf(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Ff.tooltip_compare,gravity:"ne",click:Op};function Op(e,t){var r=t.currentTarget,n=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,a=e._fullLayout,o={},s=ffe.list(e,null,!0),u=a._cartesianSpikesEnabled,l,f;if(n==="zoom"){var c=i==="in"?.5:2,h=(1+c)/2,d=(1-c)/2,p,x;for(f=0;f{"use strict";var gfe=h7(),act=Object.keys(gfe),_fe=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],xfe=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(_fe),X3=[],oct=function(e){if(xfe.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();X3.indexOf(t)===-1&&X3.push(t),X3.indexOf(r)===-1&&X3.push(r)}};act.forEach(function(e){oct(gfe[e])});X3.sort();bfe.exports={DRAW_MODES:_fe,backButtons:xfe,foreButtons:X3}});var p7=Te((aor,wfe)=>{"use strict";var nor=d7();wfe.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var Tfe=Te((oor,Afe)=>{"use strict";var sct=ei(),m5=jl(),lct=Pf(),uct=p7();Afe.exports=function(t,r){var n=t.modebar||{},i=lct.newContainer(r,"modebar");function a(s,u){return sct.coerce(n,i,uct,s,u)}a("orientation"),a("bgcolor",m5.addOpacity(r.paper_bgcolor,.5));var o=m5.contrast(m5.rgb(r.modebar.bgcolor));a("color",m5.addOpacity(o,.3)),a("activecolor",m5.addOpacity(o,.7)),a("uirevision",r.uirevision),a("add"),a("remove")}});var kfe=Te((sor,Efe)=>{"use strict";var v7=Jl(),fct=ku(),sz=ei(),Sfe=GP(),cct=aL().version,hct=new DOMParser;function Mfe(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Ay=Mfe.prototype;Ay.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i="modebar-"+n._uid;this.element.setAttribute("id",i),this.element.setAttribute("role","toolbar"),this._uid=i,this.element.className="modebar modebar--custom",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var a=n.modebar,o="#"+i+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=a.bgcolor});var s=!this.hasButtons(t),u=this.hasLogo!==r.displaylogo,l=this.locale!==r.locale;if(this.locale=r.locale,(s||u||l)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var f=this.getLogo();r.watermark&&(f.className=f.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),sz.setStyleOnHover("#"+i+" .modebar-btn",".active",".icon path","fill: "+a.activecolor,"fill: "+a.color,this.element)};Ay.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var n=t.createGroup();r.forEach(function(i){var a=i.name;if(!a)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(a)!==-1)throw new Error("button name '"+a+"' is taken");t.buttonsNames.push(a);var o=t.createButton(i);t.buttonElements.push(o),n.appendChild(o)}),t.element.appendChild(n)})};Ay.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};Ay.createButton=function(e){var t=this,r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("rel","tooltip"),r.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(r.setAttribute("data-title",n),r.setAttribute("aria-label",n)),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var i=e.val;i!==void 0&&(typeof i=="function"&&(i=i(this.graphInfo)),r.setAttribute("data-val",i));var a=e.click;if(typeof a!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(s){e.click(t.graphInfo,s),t.updateActiveButton(s.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&v7.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||Sfe.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};Ay.createIcon=function(e){var t=fct(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(r,"svg"),n.setAttribute("viewBox",[0,0,e.width,t].join(" ")),n.setAttribute("class","icon");var i=document.createElementNS(r,"path");i.setAttribute("d",e.path),e.transform?i.setAttribute("transform",e.transform):e.ascent!==void 0&&i.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(i)}if(e.svg){var a=hct.parseFromString(e.svg,"application/xml");n=a.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};Ay.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var i=n.getAttribute("data-val")||!0,a=n.getAttribute("data-attr"),o=n.getAttribute("data-toggle")==="true",s=v7.select(n),u=function(c,h){var d=t.modebar,p=c.querySelector(".icon path");p&&(h||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(a===r){var l=!s.classed("active");s.classed("active",l),u(n,l)}}else{var f=a===null?a:sz.nestedProperty(t,a).get();s.classed("active",f===i),u(n,f===i)}})};Ay.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var vct=Wc(),Cfe=lc(),m7=$l(),mct=rv().isUnifiedHover,yct=kfe(),lz=h7(),gct=d7().DRAW_MODES,_ct=ei().extendDeep;Lfe.exports=function(t){var r=t._fullLayout,n=t._context,i=r._modeBar;if(!n.displayModeBar&&!n.watermark){i&&(i.destroy(),delete r._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var a=n.modeBarButtons,o;Array.isArray(a)&&a.length?o=Sct(a):!n.displayModeBar&&n.watermark?o=[]:o=xct(t),i?i.update(t,o):r._modeBar=yct(t,o)};function xct(e){var t=e._fullLayout,r=e._fullData,n=e._context;function i(N,W){if(typeof W=="string"){if(W.toLowerCase()===N.toLowerCase())return!0}else{var re=W.name,ae=W._cat||W.name;if(re===N||ae===N.toLowerCase())return!0}return!1}var a=t.modebar.add;typeof a=="string"&&(a=[a]);var o=t.modebar.remove;typeof o=="string"&&(o=[o]);var s=n.modeBarButtonsToAdd.concat(a.filter(function(N){for(var W=0;W1?(P=["toggleHover"],A=["resetViews"]):c?(m=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],A=["resetGeo"]):f?(P=["hoverClosest3d"],A=["resetCameraDefault3d","resetCameraLastSave3d"]):x?(m=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],A=["resetViewMapbox"]):b?(m=["zoomInMap","zoomOutMap"],P=["toggleHover"],A=["resetViewMap"]):h?P=["hoverClosestPie"]:E?(P=["hoverClosestCartesian","hoverCompareCartesian"],A=["resetViewSankey"]):P=["toggleHover"],l&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Act(r)||L)&&(P=[]),l&&!T&&(m=["zoomIn2d","zoomOut2d","autoScale2d"],A[0]!=="resetViews"&&(A=["resetScale2d"])),f?B=["zoom3d","pan3d","orbitRotation","tableRotation"]:l&&!T||p?B=["zoom2d","pan2d"]:x||b||c?B=["pan2d"]:v&&(B=["zoom2d"]),wct(r)&&B.push("select2d","lasso2d");var F=[],U=function(N){F.indexOf(N)===-1&&P.indexOf(N)!==-1&&F.push(N)};if(Array.isArray(s)){for(var G=[],j=0;j{"use strict";zfe.exports={moduleType:"component",name:"modebar",layoutAttributes:p7(),supplyLayoutDefaults:Tfe(),manage:Pfe()}});var g7=Te((cor,Ife)=>{"use strict";var Mct=Qh().FROM_BL;Ife.exports=function(t,r,n){n===void 0&&(n=Mct[t.constraintoward||"center"]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*n;t.range=t._input.range=[t.l2r(a+(i[0]-a)*r),t.l2r(a+(i[1]-a)*r)],t.setScale()}});var qb=Te(y5=>{"use strict";var Ob=ei(),_7=wm(),Mm=Wc().id2name,Ect=Dd(),Rfe=g7(),kct=gy(),Cct=nf().ALMOST_EQUAL,Lct=Qh().FROM_BL;y5.handleDefaults=function(e,t,r){var n=r.axIds,i=r.axHasImage,a=t._axisConstraintGroups=[],o=t._axisMatchGroups=[],s,u,l,f,c,h,d,p;for(s=0;sa?r.substr(a):n.substr(i))+o}function zct(e,t){for(var r=t._size,n=r.h/r.w,i={},a=Object.keys(e),o=0;oCct*p&&!k)){for(a=0;aB&&reP&&(P=re);var be=(P-m)/(2*A);c/=be,m=u.l2r(m),P=u.l2r(P),u.range=u._input.range=_{"use strict";var fz=Jl(),qp=$l(),Jv=Cc(),M0=ei(),w7=Zf(),A7=h5(),g5=jl(),Z3=Mu(),Ofe=Mb(),Gfe=y7(),_5=wu(),kg=Qh(),Hfe=qb(),Ict=Hfe.enforce,Rct=Hfe.clean,qfe=wm().doAutoRange,Wfe="start",Dct="middle",jfe="end",Fct=dd().zindexSeparator;md.layoutStyles=function(e){return M0.syncOrAsync([Jv.doAutoMargin,Oct],e)};function Bct(e,t,r){for(var n=0;n=e[1]||i[1]<=e[0])&&a[0]t[0])return!0}return!1}function Oct(e){var t=e._fullLayout,r=t._size,n=r.p,i=_5.list(e,"",!0),a,o,s,u,l,f;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(Z3.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),md.drawMainTitle(e),Gfe.manage(e),!t._has("cartesian"))return Jv.previousPromises(e);function c(Fe,ye,Ve){var ce=Fe._lw/2;if(Fe._id.charAt(0)==="x"){if(ye){if(Ve==="top")return ye._offset-n-ce}else return r.t+r.h*(1-(Fe.position||0))+ce%1;return ye._offset+ye._length+n+ce}if(ye){if(Ve==="right")return ye._offset+ye._length+n+ce}else return r.l+r.w*(Fe.position||0)+ce%1;return ye._offset-n-ce}for(a=0;a0){Vct(e,a,l,u),s.attr({x:o,y:a,"text-anchor":n,dy:Vfe(t.yanchor)}).call(w7.positionText,o,a);var f=(t.text.match(w7.BR_TAG_ALL)||[]).length;if(f){var c=kg.LINE_SPACING*f+kg.MID_SHIFT;t.y===0&&(c=-c),s.selectAll(".line").each(function(){var b=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",b)})}var h=fz.selectAll(".gtitle-subtitle");if(h.node()){var d=s.node().getBBox(),p=d.y+d.height,x=p+Ofe.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y:x,"text-anchor":n,dy:Vfe(t.yanchor)}).call(w7.positionText,o,x)}}}};function qct(e,t,r,n,i){var a=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=M0.isTopAnchor(t)?n:n-i,s=r==="b"?a-o:o;return M0.isTopAnchor(t)&&r==="t"||M0.isBottomAnchor(t)&&r==="b"?!1:s.5?"t":"b",o=e._fullLayout.margin[a],s=0;return t.yref==="paper"?s=r+t.pad.t+t.pad.b:t.yref==="container"&&(s=Nct(a,n,i,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function Vct(e,t,r,n){var i="title.automargin",a=e._fullLayout.title,o=a.y>.5?"t":"b",s={x:a.x,y:a.y,t:0,b:0},u={};a.yref==="paper"&&qct(e,a,o,t,n)?s[o]=r:a.yref==="container"&&(u[o]=r,e._fullLayout._reservedMargin[i]=u),Jv.allowAutoMargin(e,i),Jv.autoMargin(e,i,s)}function Gct(e,t){var r=e.title,n=e._size,i=0;switch(t===Wfe?i=r.pad.l:t===jfe&&(i=-r.pad.r),r.xref){case"paper":return n.l+n.w*r.x+i;case"container":default:return e.width*r.x+i}}function Hct(e,t){var r=e.title,n=e._size,i=0;if(t==="0em"||!t?i=-r.pad.b:t===kg.CAP_SHIFT+"em"&&(i=r.pad.t),r.y==="auto")return n.t/2;switch(r.yref){case"paper":return n.t+n.h-n.h*r.y+i;case"container":default:return e.height-e.height*r.y+i}}function Vfe(e){return e==="top"?kg.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":kg.MID_SHIFT+"em"}function Wct(e){var t=e.title,r=Dct;return M0.isRightAnchor(t)?r=jfe:M0.isLeftAnchor(t)&&(r=Wfe),r}function jct(e){var t=e.title,r="0em";return M0.isTopAnchor(t)?r=kg.CAP_SHIFT+"em":M0.isMiddleAnchor(t)&&(r=kg.MID_SHIFT+"em"),r}md.doTraceStyle=function(e){var t=e.calcdata,r=[],n;for(n=0;n{"use strict";var Xct=f_().readPaths,Zct=ez(),Xfe=e_().clearOutlineControllers,T7=jl(),Zfe=Mu(),Yct=Pf().arrayEditor,Yfe=h_(),Kct=Yfe.getPathString;Jfe.exports={draw:cz,drawOne:Kfe,activateLastSelection:Qct};function cz(e){var t=e._fullLayout;Xfe(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var n=t._plots[r].selectionLayer;n&&n.selectAll("path").remove()}for(var i=0;i=0;b--){var v=o.append("path").attr(u).style("opacity",b?.1:l).call(T7.stroke,c).call(T7.fill,f).call(Zfe.dashLine,b?"solid":d,b?4+h:h);if(Jct(v,e,n),p){var k=Yct(e.layout,"selections",n);v.style({cursor:"move"});var E={element:v.node(),plotinfo:i,gd:e,editHelpers:k,isActiveSelection:!0},T=Xct(s,e);Zct(T,v,E)}else v.style("pointer-events",b?"all":"none");x[b]=v}var L=x[0],_=x[1];_.node().addEventListener("click",function(){return $ct(e,L)})}}function Jct(e,t,r){var n=r.xref+r.yref;Zfe.setClipUrl(e,"clip"+t._fullLayout._uid+n,t)}function $ct(e,t){if(hz(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){S7(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=S7,cz(e)}}}function Qct(e){if(hz(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=S7,cz(e)}}function S7(e){if(hz(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(Xfe(e),delete e._fullLayout._activeSelectionIndex,cz(e))}}});var Qfe=Te((vor,$fe)=>{function eht(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,o){return n("temp_status",{seg:i,above:a,below:o})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,o){return n("status",{seg:i,above:a,below:o})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}$fe.exports=eht});var tce=Te((mor,ece)=>{function tht(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],o=n[1],s=i[0],u=i[1],l=r[0],f=r[1];return(s-a)*(f-o)-(u-o)*(l-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],s=r[0]-n[0],u=i[1]-n[1],l=s*o+a*u;if(l-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])e!=s-a>e&&(o-f)*(a-c)/(s-c)+f-i>e&&(u=!u),o=f,s=c}return u}};return t}ece.exports=tht});var ice=Te((yor,rce)=>{var rht={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,i=e.root.next;i!==null;){if(r(i)){t.prev=i.prev,t.next=i,i.prev.next=t,i.prev=t;return}n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(i){return i.prev=r,i.next=n,r.next=i,n!==null&&(n.prev=i),i}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};rce.exports=rht});var ace=Te((gor,nce)=>{var b5=ice();function iht(e,t,r){function n(p,x){return{id:r?r.segmentId():-1,start:p,end:x,myFill:{above:null,below:null},otherFill:null}}function i(p,x,b){return{id:r?r.segmentId():-1,start:p,end:x,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=b5.create();function o(p,x,b,v,k,E){var T=t.pointsCompare(x,k);return T!==0?T:t.pointsSame(b,E)?0:p!==v?p?1:-1:t.pointAboveOrOnLine(b,v?k:E,v?E:k)?1:-1}function s(p,x){a.insertBefore(p,function(b){var v=o(p.isStart,p.pt,x,b.isStart,b.pt,b.other.pt);return v<0})}function u(p,x){var b=b5.node({isStart:!0,pt:p.start,seg:p,primary:x,other:null,status:null});return s(b,p.end),b}function l(p,x,b){var v=b5.node({isStart:!1,pt:x.end,seg:x,primary:b,other:p,status:null});p.other=v,s(v,p.pt)}function f(p,x){var b=u(p,x);return l(b,p,x),b}function c(p,x){r&&r.segmentChop(p.seg,x),p.other.remove(),p.seg.end=x,p.other.pt=x,s(p.other,p.pt)}function h(p,x){var b=i(x,p.seg.end,p.seg);return c(p,x),f(b,p.primary)}function d(p,x){var b=b5.create();function v(G,j){var H=G.seg.start,N=G.seg.end,W=j.seg.start,re=j.seg.end;return t.pointsCollinear(H,W,re)?t.pointsCollinear(N,W,re)||t.pointAboveOrOnLine(N,W,re)?1:-1:t.pointAboveOrOnLine(H,W,re)?1:-1}function k(G){return b.findTransition(function(j){var H=v(G,j.ev);return H>0})}function E(G,j){var H=G.seg,N=j.seg,W=H.start,re=H.end,ae=N.start,be=N.end;r&&r.checkIntersection(H,N);var Ce=t.linesIntersect(W,re,ae,be);if(Ce===!1){if(!t.pointsCollinear(W,re,ae)||t.pointsSame(W,be)||t.pointsSame(re,ae))return!1;var Le=t.pointsSame(W,ae),pe=t.pointsSame(re,be);if(Le&&pe)return j;var te=!Le&&t.pointBetween(W,ae,be),ke=!pe&&t.pointBetween(re,ae,be);if(Le)return ke?h(j,re):h(G,be),j;te&&(pe||(ke?h(j,re):h(G,be)),h(j,W))}else Ce.alongA===0&&(Ce.alongB===-1?h(G,ae):Ce.alongB===0?h(G,Ce.pt):Ce.alongB===1&&h(G,be)),Ce.alongB===0&&(Ce.alongA===-1?h(j,W):Ce.alongA===0?h(j,Ce.pt):Ce.alongA===1&&h(j,re));return!1}for(var T=[];!a.isEmpty();){var L=a.getHead();if(r&&r.vert(L.pt[0]),L.isStart){let G=function(){if(C){var j=E(L,C);if(j)return j}return S?E(L,S):!1};var U=G;r&&r.segmentNew(L.seg,L.primary);var _=k(L),C=_.before?_.before.ev:null,S=_.after?_.after.ev:null;r&&r.tempStatus(L.seg,C?C.seg:!1,S?S.seg:!1);var m=G();if(m){if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,P&&(m.seg.myFill.above=!m.seg.myFill.above)}else m.seg.otherFill=L.seg.myFill;r&&r.segmentUpdate(m.seg),L.other.remove(),L.remove()}if(a.getHead()!==L){r&&r.rewind(L.seg);continue}if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,S?L.seg.myFill.below=S.seg.myFill.above:L.seg.myFill.below=p,P?L.seg.myFill.above=!L.seg.myFill.below:L.seg.myFill.above=L.seg.myFill.below}else if(L.seg.otherFill===null){var A;S?L.primary===S.primary?A=S.seg.otherFill.above:A=S.seg.myFill.above:A=L.primary?x:p,L.seg.otherFill={above:A,below:A}}r&&r.status(L.seg,C?C.seg:!1,S?S.seg:!1),L.other.status=_.insert(b5.node({ev:L}))}else{var B=L.status;if(B===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(B.prev)&&b.exists(B.next)&&E(B.prev.ev,B.next.ev),r&&r.statusRemove(B.ev.seg),B.remove(),!L.primary){var F=L.seg.myFill;L.seg.myFill=L.seg.otherFill,L.seg.otherFill=F}T.push(L.seg)}a.getHead().remove()}return r&&r.done(),T}return e?{addRegion:function(p){for(var x,b=p[p.length-1],v=0;v{function nht(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,s=a.end;if(t.pointsSame(o,s)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var u={index:0,matches_head:!1,matches_pt1:!1},l={index:0,matches_head:!1,matches_pt1:!1},f=u;function c(U,G,j){return f.index=U,f.matches_head=G,f.matches_pt1=j,f===u?(f=l,!1):(f=null,!0)}for(var h=0;h{function w5(e,t,r){var n=[];return e.forEach(function(i){var a=(i.myFill.above?8:0)+(i.myFill.below?4:0)+(i.otherFill&&i.otherFill.above?2:0)+(i.otherFill&&i.otherFill.below?1:0);t[a]!==0&&n.push({id:r?r.segmentId():-1,start:i.start,end:i.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(n),n}var aht={union:function(e,t){return w5(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return w5(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return w5(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return w5(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return w5(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};lce.exports=aht});var cce=Te((bor,fce)=>{var oht={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(l){var f=l.slice(0,l.length-1);return e.segments({inverted:!1,regions:[f]})}for(var s=o(a[0]),u=1;u{var sht=Qfe(),lht=tce(),hce=ace(),uht=sce(),A5=uce(),dce=cce(),E0=!1,T5=lht(),Mv;Mv={buildLog:function(e){return e===!0?E0=sht():e===!1&&(E0=!1),E0===!1?!1:E0.list},epsilon:function(e){return T5.epsilon(e)},segments:function(e){var t=hce(!0,T5,E0);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=hce(!1,T5,E0);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:A5.union(e.combined,E0),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:A5.intersect(e.combined,E0),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:A5.difference(e.combined,E0),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:A5.differenceRev(e.combined,E0),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:A5.xor(e.combined,E0),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:uht(e.segments,T5,E0),inverted:e.inverted}},polygonFromGeoJSON:function(e){return dce.toPolygon(Mv,e)},polygonToGeoJSON:function(e){return dce.fromPolygon(Mv,T5,e)},union:function(e,t){return S5(e,t,Mv.selectUnion)},intersect:function(e,t){return S5(e,t,Mv.selectIntersect)},difference:function(e,t){return S5(e,t,Mv.selectDifference)},differenceRev:function(e,t){return S5(e,t,Mv.selectDifferenceRev)},xor:function(e,t){return S5(e,t,Mv.selectXor)}};function S5(e,t,r){var n=Mv.segments(e),i=Mv.segments(t),a=Mv.combine(n,i),o=r(a);return Mv.polygon(o)}typeof window=="object"&&(window.PolyBool=Mv);pce.exports=Mv});var yce=Te((Aor,mce)=>{mce.exports=function(t,r,n,i){var a=t[0],o=t[1],s=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var u=i-n,l=0,f=u-1;lo!=p>o&&a<(d-c)*(o-h)/(p-h)+c;x&&(s=!s)}return s}});var M5=Te((Tor,gce)=>{"use strict";var E7=xL().dot,dz=nf().BADNUM,pz=gce.exports={};pz.tester=function(t){var r=t.slice(),n=r[0][0],i=n,a=r[0][1],o=a,s;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),s=1;si||v===dz||vo||x&&l(p))}function c(p,x){var b=p[0],v=p[1];if(b===dz||bi||v===dz||vo)return!1;var k=r.length,E=r[0][0],T=r[0][1],L=0,_,C,S,m,P;for(_=1;_Math.max(C,E)||v>Math.max(S,T)))if(vs||Math.abs(E7(c,l))>i)return!0;return!1};pz.filter=function(t,r){var n=[t[0]],i=0,a=0;function o(u){t.push(u);var l=n.length,f=i;n.splice(a+1);for(var c=f+1;c1){var s=t.pop();o(s)}return{addPt:o,raw:t,filtered:n}}});var xce=Te((Sor,_ce)=>{"use strict";_ce.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Vce=Te((Mor,Uce)=>{"use strict";var bce=vce(),fht=yce(),C5=$l(),cht=Mu().dashStyle,E5=jl(),hht=Xc(),dht=rv().makeEventData,R5=Sm(),pht=R5.freeMode,vht=R5.rectMode,L5=R5.drawMode,P7=R5.openMode,z7=R5.selectMode,wce=h_(),Ace=p5(),kce=ez(),Cce=e_().clearOutline,Lce=f_(),k7=Lce.handleEllipse,mht=Lce.readPaths,yht=KP().newShapes,ght=t7(),_ht=M7().activateLastSelection,mz=ei(),xht=mz.sorterAsc,Pce=M5(),k5=IL(),k0=Wc().getFromId,bht=h5(),wht=x5().redrawReglTraces,yz=xce(),Ty=yz.MINSELECT,Aht=Pce.filter,I7=Pce.tester,R7=jP(),Tce=R7.p2r,Tht=R7.axValue,Sht=R7.getTransform;function D7(e){return e.subplot!==void 0}function Mht(e,t,r,n,i){var a=!D7(n),o=pht(i),s=vht(i),u=P7(i),l=L5(i),f=z7(i),c=i==="drawline",h=i==="drawcircle",d=c||h,p=n.gd,x=p._fullLayout,b=f&&x.newselection.mode==="immediate"&&a,v=x._zoomlayer,k=n.element.getBoundingClientRect(),E=n.plotinfo,T=Sht(E),L=t-k.left,_=r-k.top;x._calcInverseTransform(p);var C=mz.apply3DTransform(x._invTransform)(L,_);L=C[0],_=C[1];var S=x._invScaleX,m=x._invScaleY,P=L,A=_,B="M"+L+","+_,F=n.xaxes[0],U=n.yaxes[0],G=F._length,j=U._length,H=e.altKey&&!(L5(i)&&u),N,W,re,ae,be,Ce,Le;Ice(e,p,n),o&&(N=Aht([[L,_]],yz.BENDPX));var pe=v.selectAll("path.select-outline-"+E.id).data([1]),te=l?x.newshape:x.newselection;l&&(n.hasText=te.label.text||te.label.texttemplate);var ke=l&&!u?te.fillcolor:"rgba(0,0,0,0)",Ee=te.line.color||(a?E5.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");pe.enter().append("path").attr("class","select-outline select-outline-"+E.id).style({opacity:l?te.opacity/2:1,"stroke-dasharray":cht(te.line.dash,te.line.width),"stroke-width":te.line.width+"px","shape-rendering":"crispEdges"}).call(E5.stroke,Ee).call(E5.fill,ke).attr("fill-rule","evenodd").classed("cursor-move",!!l).attr("transform",T).attr("d",B+"Z");var Me=v.append("path").attr("class","zoombox-corners").style({fill:E5.background,stroke:E5.defaultLine,"stroke-width":1}).attr("transform",T).attr("d","M0,0Z");if(l&&n.hasText){var Ne=v.select(".label-temp");Ne.empty()&&(Ne=v.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Fe=x._uid+yz.SELECTID,ye=[],Ve=gz(p,n.xaxes,n.yaxes,n.subplot);b&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(a){var Je=F._id,nt=U._id;Oce(p,Je,nt,Ve);for(var gt=(p.layout||{}).selections||[],Nt=[],it=!1,Ye=0;Ye=0){p._fullLayout._deactivateShape(p);return}if(!l){var gt=x.clickmode;k5.done(Fe).then(function(){if(k5.clear(Fe),Je===2){for(pe.remove(),be=0;be-1&&zce(nt,p,n.xaxes,n.yaxes,n.subplot,n,pe),gt==="event"&&I5(p,void 0);hht.click(p,nt,E.id)}).catch(mz.error)}},n.doneFn=function(){Me.remove(),k5.done(Fe).then(function(){k5.clear(Fe),!b&&ae&&n.selectionDefs&&(ae.subtract=H,n.selectionDefs.push(ae),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,re)),(b||l)&&P5(n,b),n.doneFnCompleted&&n.doneFnCompleted(ye),f&&I5(p,Le)}).catch(mz.error)}}function zce(e,t,r,n,i,a,o){var s=t._hoverdata,u=t._fullLayout,l=u.clickmode,f=l.indexOf("event")>-1,c=[],h,d,p,x,b,v,k,E,T,L;if(Pht(s)){Ice(e,t,a),h=gz(t,r,n,i);var _=zht(s,h),C=_.pointNumbers.length>0;if(C?Iht(h,_):Rht(h)&&(k=Mce(_))){for(o&&o.remove(),L=0;L=0}function Lht(e){return e._fullLayout._activeSelectionIndex>=0}function P5(e,t){var r=e.dragmode,n=e.plotinfo,i=e.gd;Cht(i)&&i._fullLayout._deactivateShape(i),Lht(i)&&i._fullLayout._deactivateSelection(i);var a=i._fullLayout,o=a._zoomlayer,s=L5(r),u=z7(r);if(s||u){var l=o.selectAll(".select-outline-"+n.id);if(l&&i._fullLayout._outlining){var f;s&&(f=yht(l,e)),f&&C5.call("_guiRelayout",i,{shapes:f});var c;u&&!D7(e)&&(c=ght(l,e)),c&&(i._fullLayout._noEmitSelectedAtStart=!0,C5.call("_guiRelayout",i,{selections:c}).then(function(){t&&_ht(i)})),i._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function Sce(e){return e._id}function gz(e,t,r,n){if(!e.calcdata)return[];var i=[],a=t.map(Sce),o=r.map(Sce),s,u,l;for(l=0;l0,a=i?n[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function Iht(e,t){var r=[],n,i,a,o;for(o=0;o0&&r.push(n);if(r.length===1&&(a=r[0]===t.searchInfo,a&&(i=t.searchInfo.cd[0].trace,i.selectedpoints.length===t.pointNumbers.length))){for(o=0;o1||(t+=n.selectedpoints.length,t>1)))return!1;return t===1}function z5(e,t,r){var n;for(n=0;n-1&&t;if(!o&&t){var Je=Ece(e,!0);if(Je.length){var nt=Je[0].xref,gt=Je[0].yref;if(nt&>){var Nt=qce(Je),it=Nce([k0(e,nt,"x"),k0(e,gt,"y")]);it(ye,Nt)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ce&&I5(e,ye),h._reselect=!1}if(!o&&h._deselect){var Ye=h._deselect;s=Ye.xref,u=Ye.yref,Bht(s,u,f)||Oce(e,s,u,n),ce&&(ye.points.length?I5(e,ye):O7(e)),h._deselect=!1}return{eventData:ye,selectionTesters:r}}function Fht(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";Gce.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var D5=Te((kor,Hce)=>{"use strict";Hce.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}});var Nb=Te((Lor,Xce)=>{"use strict";var Wce=q7(),jce=gc(),_z=dd(),Vht=Pf().templatedArray,Cor=D5();Xce.exports=Vht("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:jce({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:Wce.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Wce.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",_z.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",_z.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",_z.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",_z.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:jce({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Sy=Te((Por,Zce)=>{"use strict";Zce.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Em=Te((zor,Yce)=>{"use strict";Yce.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var Zc=Te((Ior,the)=>{"use strict";var Kce=jc().axisHoverFormat,Ght=Nu().texttemplateAttrs,Hht=Nu().hovertemplateAttrs,Jce=nc(),Wht=gc(),jht=Id().dash,Xht=Id().pattern,Zht=Mu(),Yht=Sy(),xz=Su().extendFlat,Kht=Em();function $ce(e){return{valType:"any",dflt:0,editType:"calc"}}function Qce(e){return{valType:"any",editType:"calc"}}function ehe(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}the.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:$ce("x"),yperiod:$ce("y"),xperiod0:Qce("x0"),yperiod0:Qce("y0"),xperiodalignment:ehe("x"),yperiodalignment:ehe("y"),xhoverformat:Kce("x"),yhoverformat:Kce("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:Ght({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:Hht({},{keys:Yht.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:xz({},jht,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:Kht(!0),fillgradient:xz({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:Xht,marker:xz({symbol:{valType:"enumerated",values:Zht.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:xz({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},Jce("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},Jce("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:Wht({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var N7=Te((Dor,nhe)=>{"use strict";var rhe=Nb(),ihe=Zc().line,Jht=Id().dash,bz=Su().extendFlat,$ht=Sc().overrideAll,Qht=Pf().templatedArray,Ror=D5();nhe.exports=$ht(Qht("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:bz({},rhe.xref,{}),yref:bz({},rhe.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:ihe.color,width:bz({},ihe.width,{min:1,dflt:1}),dash:bz({},Jht,{dflt:"dot"})}}),"arraydraw","from-root")});var lhe=Te((For,she)=>{"use strict";var ahe=ei(),wz=wu(),edt=Jd(),tdt=N7(),ohe=h_();she.exports=function(t,r){edt(t,r,{name:"selections",handleItemDefaults:rdt});for(var n=r.selections,i=0;i{"use strict";uhe.exports=function(t,r,n){n("newselection.mode");var i=n("newselection.line.width");i&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var F5=Te((Oor,dhe)=>{"use strict";var idt=$l(),che=ei(),hhe=Wc();dhe.exports=function(t){return function(n,i){var a=n[t];if(Array.isArray(a))for(var o=idt.subplotsRegistry.cartesian,s=o.idRegex,u=i._subplots,l=u.xaxis,f=u.yaxis,c=u.cartesian,h=i._has("cartesian"),d=0;d{"use strict";var phe=M7(),B5=Vce();vhe.exports={moduleType:"component",name:"selections",layoutAttributes:N7(),supplyLayoutDefaults:lhe(),supplyDrawNewSelectionDefaults:fhe(),includeBasePlot:F5()("selections"),draw:phe.draw,drawOne:phe.drawOne,reselect:B5.reselect,prepSelect:B5.prepSelect,clearOutline:B5.clearOutline,clearSelectionsCache:B5.clearSelectionsCache,selectOnClick:B5.selectOnClick}});var X7=Te((Nor,Dhe)=>{"use strict";var W7=Jl(),C0=ei(),mhe=C0.numberFormat,ndt=cd(),adt=LP(),Az=$l(),She=C0.strTranslate,odt=Zf(),yhe=jl(),p_=Mu(),sdt=Xc(),ghe=wu(),ldt=Am(),udt=gp(),Mhe=Sm(),Tz=Mhe.selectingOrDrawing,fdt=Mhe.freeMode,cdt=Qh().FROM_TL,hdt=h5(),ddt=x5().redrawReglTraces,pdt=Cc(),V7=Wc().getFromId,vdt=ah().prepSelect,mdt=ah().clearOutline,ydt=ah().selectOnClick,U7=g7(),j7=dd(),_he=j7.MINDRAG,iv=j7.MINZOOM,xhe=!0;function gdt(e,t,r,n,i,a,o,s){var u=e._fullLayout._zoomlayer,l=o+s==="nsew",f=(o+s).length===1,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H;r+=t.yaxis._shift;function N(){if(c=t.xaxis,h=t.yaxis,E=c._length,T=h._length,v=c._offset,k=h._offset,d={},d[c._id]=c,p={},p[h._id]=h,o&&s)for(var Ue=t.overlays,rt=0;rt=0){$e._fullLayout._deactivateShape($e);return}var zt=$e._fullLayout.clickmode;if(H7($e),Ue===2&&!f&&Et(),l)zt.indexOf("select")>-1&&ydt(rt,$e,x,b,t.id,ae),zt.indexOf("event")>-1&&sdt.click($e,rt,t.id);else if(Ue===1&&f){var Yt=o?h:c,hr=o==="s"||s==="w"?0:1,yr=Yt._name+".range["+hr+"]",br=_dt(Yt,hr),Ut="left",Ie="middle";if(Yt.fixedrange)return;o?(Ie=o==="n"?"top":"bottom",Yt.side==="right"&&(Ut="right")):s==="e"&&(Ut="right"),$e._context.showAxisRangeEntryBoxes&&W7.select(re).call(odt.makeEditable,{gd:$e,immediate:!0,background:$e._fullLayout.paper_bgcolor,text:String(br),fill:Yt.tickfont?Yt.tickfont.color:"#444",horizontalAlign:Ut,verticalAlign:Ie}).on("edit",function(xe){var Oe=Yt.d2r(xe);Oe!==void 0&&Az.call("_guiRelayout",$e,yr,Oe)})}}udt.init(ae);var Le,pe,te,ke,Ee,Me,Ne,Fe,ye,Ve;function ce(Ue,rt,$e){var zt=re.getBoundingClientRect();Le=rt-zt.left,pe=$e-zt.top,e._fullLayout._calcInverseTransform(e);var Yt=C0.apply3DTransform(e._fullLayout._invTransform)(Le,pe);Le=Yt[0],pe=Yt[1],te={l:Le,r:Le,w:0,t:pe,b:pe,h:0},ke=e._hmpixcount?e._hmlumcount/e._hmpixcount:ndt(e._fullLayout.plot_bgcolor).getLuminance(),Ee="M0,0H"+E+"V"+T+"H0V0",Me=!1,Ne="xy",Ve=!1,Fe=Che(u,ke,v,k,Ee),ye=Lhe(u,v,k)}function Je(Ue,rt){if(e._transitioningWithDuration)return!1;var $e=Math.max(0,Math.min(E,j*Ue+Le)),zt=Math.max(0,Math.min(T,H*rt+pe)),Yt=Math.abs($e-Le),hr=Math.abs(zt-pe);te.l=Math.min(Le,$e),te.r=Math.max(Le,$e),te.t=Math.min(pe,zt),te.b=Math.max(pe,zt);function yr(){Ne="",te.r=te.l,te.t=te.b,ye.attr("d","M0,0Z")}if(L.isSubplotConstrained)Yt>iv||hr>iv?(Ne="xy",Yt/E>hr/T?(hr=Yt*T/E,pe>zt?te.t=pe-hr:te.b=pe+hr):(Yt=hr*E/T,Le>$e?te.l=Le-Yt:te.r=Le+Yt),ye.attr("d",Sz(te))):yr();else if(_.isSubplotConstrained)if(Yt>iv||hr>iv){Ne="xy";var br=Math.min(te.l/E,(T-te.b)/T),Ut=Math.max(te.r/E,(T-te.t)/T);te.l=br*E,te.r=Ut*E,te.b=(1-br)*T,te.t=(1-Ut)*T,ye.attr("d",Sz(te))}else yr();else!S||hr0){var xe;if(_.isSubplotConstrained||!C&&S.length===1){for(xe=0;xe1&&(yr.maxallowed!==void 0&&P===(yr.range[0]1&&(br.maxallowed!==void 0&&A===(br.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function bdt(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function Che(e,t,r,n,i){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",She(r,n)).attr("d",i+"Z")}function Lhe(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:yhe.background,stroke:yhe.defaultLine,"stroke-width":1,opacity:0}).attr("transform",She(t,r)).attr("d","M0,0Z")}function Phe(e,t,r,n,i,a){e.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),zhe(e,t,i,a)}function zhe(e,t,r,n){r||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function H7(e){W7.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Ihe(e){xhe&&e.data&&e._context.showTips&&(C0.notifier(C0._(e,"Double-click to zoom back out"),"long"),xhe=!1)}function wdt(e,t){return"M"+(e.l-.5)+","+(t-iv-.5)+"h-3v"+(2*iv+1)+"h3ZM"+(e.r+.5)+","+(t-iv-.5)+"h3v"+(2*iv+1)+"h-3Z"}function Adt(e,t){return"M"+(t-iv-.5)+","+(e.t-.5)+"v-3h"+(2*iv+1)+"v3ZM"+(t-iv-.5)+","+(e.b+.5)+"v3h"+(2*iv+1)+"v-3Z"}function Sz(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,iv)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function Ahe(e,t,r,n,i){for(var a=!1,o={},s={},u,l,f,c,h=(i||{}).xaHash,d=(i||{}).yaHash,p=0;p{"use strict";var Tdt=Jl(),Mz=Xc(),Sdt=gp(),Mdt=Am(),km=X7().makeDragBox,yd=dd().DRAGGERSIZE;Ez.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){Tdt.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var n=Object.keys(r._plots||{}).sort(function(a,o){if((r._plots[a].mainplot&&!0)===(r._plots[o].mainplot&&!0)){var s=a.split("y"),u=o.split("y");return s[0]===u[0]?Number(s[1]||1)-Number(u[1]||1):Number(s[0]||1)-Number(u[0]||1)}return r._plots[a].mainplot?1:-1});n.forEach(function(a){var o=r._plots[a],s=o.xaxis,u=o.yaxis;if(!o.mainplot){var l=km(t,o,s._offset,u._offset,s._length,u._length,"ns","ew");l.onmousemove=function(h){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===a&&t._fullLayout._plots[a]&&Mz.hover(t,h,a)},Mz.hover(t,h,a),t._fullLayout._lasthover=l,t._fullLayout._hoversubplot=a},l.onmouseout=function(h){t._dragging||(t._fullLayout._hoversubplot=null,Sdt.unhover(t,h))},t._context.showAxisDragHandles&&(km(t,o,s._offset-yd,u._offset-yd,yd,yd,"n","w"),km(t,o,s._offset+s._length,u._offset-yd,yd,yd,"n","e"),km(t,o,s._offset-yd,u._offset+u._length,yd,yd,"s","w"),km(t,o,s._offset+s._length,u._offset+u._length,yd,yd,"s","e"))}if(t._context.showAxisDragHandles){if(a===s._mainSubplot){var f=s._mainLinePosition;s.side==="top"&&(f-=yd),km(t,o,s._offset+s._length*.1,f,s._length*.8,yd,"","ew"),km(t,o,s._offset,f,s._length*.1,yd,"","w"),km(t,o,s._offset+s._length*.9,f,s._length*.1,yd,"","e")}if(a===u._mainSubplot){var c=u._mainLinePosition;u.side!=="right"&&(c-=yd),km(t,o,c,u._offset+u._length*.1,yd,u._length*.8,"ns",""),km(t,o,c,u._offset+u._length*.9,yd,u._length*.1,"s",""),km(t,o,c,u._offset,yd,u._length*.1,"n","")}}});var i=r._hoverlayer.node();i.onmousemove=function(a){a.target=t._fullLayout._lasthover,Mz.hover(t,a,r._hoversubplot)},i.onclick=function(a){a.target=t._fullLayout._lasthover,Mz.click(t,a)},i.onmousedown=function(a){t._fullLayout._lasthover.onmousedown(a)},Ez.updateFx(t)}};Ez.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";Mdt(t._draggers,r)}});var Ohe=Te((Vor,Bhe)=>{"use strict";var Fhe=$l();Bhe.exports=function(t){for(var r=Fhe.layoutArrayContainers,n=Fhe.layoutArrayRegexes,i=t.split("[")[0],a,o,s=0;s{"use strict";var Edt=mg(),Y7=_L(),O5=H1(),kdt=LL().sorterAsc,K7=$l();q5.containerArrayMatch=Ohe();var Cdt=q5.isAddVal=function(t){return t==="add"||Edt(t)},qhe=q5.isRemoveVal=function(t){return t===null||t==="remove"};q5.applyContainerArrayChanges=function(t,r,n,i,a){var o=r.astr,s=K7.getComponentMethod(o,"supplyLayoutDefaults"),u=K7.getComponentMethod(o,"draw"),l=K7.getComponentMethod(o,"drawOne"),f=i.replot||i.recalc||s===Y7||u===Y7,c=t.layout,h=t._fullLayout;if(n[""]){Object.keys(n).length>1&&O5.warn("Full array edits are incompatible with other edits",o);var d=n[""][""];if(qhe(d))r.set(null);else if(Array.isArray(d))r.set(d);else return O5.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(s(c,h),u(t),!0)}var p=Object.keys(n).map(Number).sort(kdt),x=r.get(),b=x||[],v=a(h,o).get(),k=[],E=-1,T=b.length,L,_,C,S,m,P,A,B;for(L=0;Lb.length-(A?0:1)){O5.warn("index out of range",o,C);continue}if(P!==void 0)m.length>1&&O5.warn("Insertion & removal are incompatible with edits to the same index.",o,C),qhe(P)?k.push(C):A?(P==="add"&&(P={}),b.splice(C,0,P),v&&v.splice(C,0,{})):O5.warn("Unrecognized full object edit value",o,C,P),E===-1&&(E=C);else for(_=0;_=0;L--)b.splice(k[L],1),v&&v.splice(k[L],1);if(b.length?x||r.set(b):r.set(null),f)return!1;if(s(c,h),l!==Y7){var F;if(E===-1)F=p;else{for(T=Math.max(b.length,T),F=[],L=0;L=E));L++)F.push(C);for(L=E;L{"use strict";var Hhe=ku(),Hor=G9(),Whe=$l(),Ev=ei(),N5=Cc(),jhe=Wc(),Xhe=jl(),U5=jhe.cleanId,Ldt=jhe.getFromTrace,J7=Whe.traceIs;Cm.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ev.log("Clearing previous rejected promises from queue."),e._promises=[]};Cm.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(N5.subplotsRegistry.cartesian||{}).attrRegex,i=(N5.subplotsRegistry.polar||{}).attrRegex,a=(N5.subplotsRegistry.ternary||{}).attrRegex,o=(N5.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(e);for(t=0;t3?(b.x=1.02,b.xanchor="left"):b.x<-2&&(b.x=-.02,b.xanchor="right"),b.y>3?(b.y=1.02,b.yanchor="bottom"):b.y<-2&&(b.y=-.02,b.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),Xhe.clean(e),e.template&&e.template.layout&&Cm.cleanLayout(e.template.layout),e};function Y3(e,t){var r=e[t],n=t.charAt(0);r&&r!=="paper"&&(e[t]=U5(r,n,!0))}Cm.cleanData=function(e){for(var t=0;t0)return e.substr(0,t)}Cm.hasParent=function(e,t){for(var r=Ghe(t);r;){if(r in e)return!0;r=Ghe(r)}return!1};var Idt=["x","y","z"];Cm.clearAxisTypes=function(e,t,r){for(var n=0;n{"use strict";var Pz=Jl(),Rdt=ku(),Ddt=cq(),Bl=ei(),Lc=Bl.nestedProperty,eU=m3(),nv=Lne(),L0=$l(),Oz=_3(),Uu=Cc(),Np=wu(),Fdt=MN(),Bdt=Dd(),$7=Mu(),Odt=jl(),qdt=Z7().initInteractions,Ndt=jv(),Udt=ah().clearOutline,Qhe=ub().dfltConfig,Cz=Nhe(),Oh=Zhe(),ac=x5(),v_=Sc(),Vdt=dd().AX_NAME_PATTERN,Q7=0,Yhe=5;function Gdt(e,t,r,n){var i;if(e=Bl.getGraphDiv(e),eU.init(e),Bl.isPlainObject(t)){var a=t;t=a.data,r=a.layout,n=a.config,i=a.frames}var o=eU.triggerHandler(e,"plotly_beforeplot",[t,r,n]);if(o===!1)return Promise.reject();!t&&!r&&!Bl.isPlotDiv(e)&&Bl.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function s(){if(i)return Gf.addFrames(e,i)}tde(e,n),r||(r={}),Pz.select(e).classed("js-plotly-plot",!0),$7.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var u=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(Oh.cleanData(t),u?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||u)&&(e.layout=Oh.cleanLayout(r)),Uu.supplyDefaults(e);var l=e._fullLayout,f=l._has("cartesian");l._replotting=!0,(u||l._shouldCreateBgLayer)&&(hpt(e),l._shouldCreateBgLayer&&delete l._shouldCreateBgLayer),$7.initGradients(e),$7.initPatterns(e),u&&Np.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&Uu.doCalcdata(e);for(var h=0;h=e.data.length||i<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(i,n+1)>-1||i>=0&&t.indexOf(-e.data.length+i)>-1||i<0&&t.indexOf(e.data.length+i)>-1)throw new Error("each index in "+r+" must be unique.")}}function rde(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),Iz(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&Iz(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function Zdt(e,t,r){var n,i;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),n=0;n=0&&f=0&&f0&&typeof S.parts[A]!="string";)A--;var B=S.parts[A],F=S.parts[A-1]+"."+B,U=S.parts.slice(0,A).join("."),G=Lc(e.layout,U).get(),j=Lc(n,U).get(),H=S.get();if(m!==void 0){v[C]=m,k[C]=B==="reverse"?m:Cg(H);var N=Oz.getLayoutValObject(n,S.parts);if(N&&N.impliedEdits&&m!==null)for(var W in N.impliedEdits)E(Bl.relativeAttr(C,W),N.impliedEdits[W]);if(["width","height"].indexOf(C)!==-1)if(m){E("autosize",null);var re=C==="height"?"width":"height";E(re,n[re])}else n[C]=e._initialAutoSize[C];else if(C==="autosize")E("width",m?null:n.width),E("height",m?null:n.height);else if(F.match(cde))_(F),Lc(n,U+"._inputRange").set(null);else if(F.match(hde)){_(F),Lc(n,U+"._inputRange").set(null);var ae=Lc(n,U).get();ae._inputDomain&&(ae._input.domain=ae._inputDomain.slice())}else F.match($dt)&&Lc(n,U+"._inputDomain").set(null);if(B==="type"){L=G;var be=j.type==="linear"&&m==="log",Ce=j.type==="log"&&m==="linear";if(be||Ce){if(!L||!L.range)E(U+".autorange",!0);else if(j.autorange)be&&(L.range=L.range[1]>L.range[0]?[1,2]:[2,1]);else{var Le=L.range[0],pe=L.range[1];be?(Le<=0&&pe<=0&&E(U+".autorange",!0),Le<=0?Le=pe/1e6:pe<=0&&(pe=Le/1e6),E(U+".range[0]",Math.log(Le)/Math.LN10),E(U+".range[1]",Math.log(pe)/Math.LN10)):(E(U+".range[0]",Math.pow(10,Le)),E(U+".range[1]",Math.pow(10,pe)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[S.parts[0]]&&S.parts[1]==="radialaxis"&&delete n[S.parts[0]]._subplot.viewInitial["radialaxis.range"],L0.getComponentMethod("annotations","convertCoords")(e,j,m,E),L0.getComponentMethod("images","convertCoords")(e,j,m,E)}else E(U+".autorange",!0),E(U+".range",null);Lc(n,U+"._inputRange").set(null)}else if(B.match(Vdt)){var te=Lc(n,C).get(),ke=(m||{}).type;(!ke||ke==="-")&&(ke="linear"),L0.getComponentMethod("annotations","convertCoords")(e,te,ke,E),L0.getComponentMethod("images","convertCoords")(e,te,ke,E)}var Ee=Cz.containerArrayMatch(C);if(Ee){f=Ee.array,c=Ee.index;var Me=Ee.property,Ne=N||{editType:"calc"};c!==""&&Me===""&&(Cz.isAddVal(m)?k[C]=null:Cz.isRemoveVal(m)?k[C]=(Lc(r,f).get()||[])[c]:Bl.warn("unrecognized full object value",t)),v_.update(b,Ne),l[f]||(l[f]={});var Fe=l[f][c];Fe||(Fe=l[f][c]={}),Fe[Me]=m,delete t[C]}else B==="reverse"?(G.range?G.range.reverse():(E(U+".autorange",!0),G.range=[1,0]),j.autorange?b.calc=!0:b.plot=!0):(C==="dragmode"&&(m===!1&&H!==!1||m!==!1&&H===!1)||n._has("scatter-like")&&n._has("regl")&&C==="dragmode"&&(m==="lasso"||m==="select")&&!(H==="lasso"||H==="select")?b.plot=!0:N?v_.update(b,N):b.calc=!0,S.set(m))}}for(f in l){var ye=Cz.applyContainerArrayChanges(e,a(r,f),l[f],b,a);ye||(b.plot=!0)}for(var Ve in T){L=Np.getFromId(e,Ve);var ce=L&&L._constraintGroup;if(ce){b.calc=!0;for(var Je in ce)T[Je]||(Np.getFromId(e,Je)._constraintShrinkable=!0)}}(pde(e)||t.height||t.width)&&(b.plot=!0);var nt=n.shapes;for(c=0;c1;)if(n.pop(),r=Lc(t,n.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function tpt(e,t){for(var r=0;r=i.length?i[0]:i[l]:i}function s(l){return Array.isArray(a)?l>=a.length?a[0]:a[l]:a}function u(l,f){var c=0;return function(){if(l&&++c===f)return l()}}return new Promise(function(l,f){function c(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var B=n._frameQueue.pop();B.onInterrupt&&B.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(B){if(B.length!==0){for(var F=0;Fn._timeToNext&&p()};B()}var b=0;function v(B){return Array.isArray(i)?b>=i.length?B.transitionOpts=i[b]:B.transitionOpts=i[0]:B.transitionOpts=i,b++,B}var k,E,T=[],L=t==null,_=Array.isArray(t),C=!L&&!_&&Bl.isPlainObject(t);if(C)T.push({type:"object",data:v(Bl.extendFlat({},t))});else if(L||["string","number"].indexOf(typeof t)!==-1)for(k=0;k0&&PP)&&A.push(E);T=A}}T.length>0?h(T):(e.emit("plotly_animated"),l())})}function lpt(e,t,r){if(e=Bl.getGraphDiv(e),t==null)return Promise.resolve();if(!Bl.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,i,a,o,s=e._transitionData._frames,u=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var l=s.length+t.length*2,f=[],c={};for(n=t.length-1;n>=0;n--)if(Bl.isPlainObject(t[n])){var h=t[n].name,d=(u[h]||c[h]||{}).name,p=t[n].name,x=u[d]||c[d];d&&p&&typeof p=="number"&&x&&Q7S.index?-1:C.index=0;n--){if(i=f[n].frame,typeof i.name=="number"&&Bl.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!i.name)for(;u[i.name="frame "+e._transitionData._counter++];);if(u[i.name]){for(a=0;a=0;r--)n=t[r],a.push({type:"delete",index:n}),o.unshift({type:"insert",index:n,value:i[n]});var s=Uu.modifyFrames,u=Uu.modifyFrames,l=[e,o],f=[e,a];return nv&&nv.add(e,s,l,u,f),Uu.modifyFrames(e,a)}function fpt(e){e=Bl.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return Uu.cleanPlot([],{},r,t),Uu.purge(e),eU.purge(e),t._container&&t._container.remove(),delete e._context,e}function cpt(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!Bl.equalDomRects(r,t._lastBBox)){var n=t._invTransform=Bl.inverseTransformMatrix(Bl.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),t._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),t._lastBBox=r}}function hpt(e){var t=Pz.select(e),r=e._fullLayout;if(r._calcInverseTransform=cpt,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var n={};Pz.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),r._uid=Bl.randstr(n)}r._paperdiv.selectAll(".main-svg").attr(Ndt.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var i=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=i.append("g").classed("imagelayer",!0),r._shapeLowerLayer=i.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var a=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=a.append("g").classed("imagelayer",!0),r._shapeUpperLayer=a.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Gf.animate=spt;Gf.addFrames=lpt;Gf.deleteFrames=upt;Gf.addTraces=sde;Gf.deleteTraces=lde;Gf.extendTraces=ade;Gf.moveTraces=tU;Gf.prependTraces=ode;Gf.newPlot=Xdt;Gf._doPlot=Gdt;Gf.purge=fpt;Gf.react=npt;Gf.redraw=jdt;Gf.relayout=V5;Gf.restyle=Rz;Gf.setPlotConfig=Hdt;Gf.update=Fz;Gf._guiRelayout=iU(V5);Gf._guiRestyle=iU(Rz);Gf._guiUpdate=iU(Fz);Gf._storeDirectGUIEdit=Jdt});var Lg=Te(My=>{"use strict";var dpt=$l();My.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};My.getRedrawFunc=function(e){return function(){dpt.getComponentMethod("colorbar","draw")(e)}};My.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};My.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var vde=window.URL||window.webkitURL;My.createObjectURL=function(e){return vde.createObjectURL(e)};My.revokeObjectURL=function(e){return vde.revokeObjectURL(e)};My.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=ppt(window.atob(e));return new window.Blob([r],{type:"image/"+t})};My.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function ppt(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;i{"use strict";var aU=Jl(),Zor=ei(),vpt=Mu(),mpt=jl(),Yor=jv(),nU=/"/g,H5="TOBESTRIPPED",ypt=new RegExp('("'+H5+")|("+H5+'")',"g");function gpt(e){var t=aU.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,function(n){return n==="<"?"<":n==="&rt;"?">":n.indexOf("<")!==-1||n.indexOf(">")!==-1?"":t.html(n).text()});return t.remove(),r}function _pt(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}mde.exports=function(t,r,n){var i=t._fullLayout,a=i._paper,o=i._toppaper,s=i.width,u=i.height,l;a.insert("rect",":first-child").call(vpt.setRect,0,0,s,u).call(mpt.fill,i.paper_bgcolor);var f=i._basePlotModules||[];for(l=0;l{"use strict";var xpt=ei(),bpt=pb().EventEmitter,W5=Lg();function wpt(e){var t=e.emitter||new bpt,r=new Promise(function(n,i){var a=window.Image,o=e.svg,s=e.format||"png",u=e.canvas,l=e.scale||1,f=e.width||300,c=e.height||150,h=l*f,d=l*c,p=u.getContext("2d",{willReadFrequently:!0}),x=new a,b,v;s==="svg"||xpt.isSafari()?v=W5.encodeSVG(o):(b=W5.createBlob(o,"svg"),v=W5.createObjectURL(b)),u.width=h,u.height=d,x.onload=function(){var k;switch(b=null,W5.revokeObjectURL(v),s!=="svg"&&p.drawImage(x,0,0,h,d),s){case"jpeg":k=u.toDataURL("image/jpeg");break;case"png":k=u.toDataURL("image/png");break;case"webp":k=u.toDataURL("image/webp");break;case"svg":k=v;break;default:var E="Image format is not jpeg, png, svg or webp.";if(i(new Error(E)),!e.promise)return t.emit("error",E)}n(k),e.promise||t.emit("success",k)},x.onerror=function(k){if(b=null,W5.revokeObjectURL(v),i(k),!e.promise)return t.emit("error",k)},x.src=v});return e.promise?r:t}yde.exports=wpt});var sU=Te(($or,xde)=>{"use strict";var gde=ku(),_de=Nz(),Apt=Cc(),Ey=ei(),j5=Lg(),Tpt=Uz(),Spt=Vz(),Mpt=aL().version,oU={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Ept(e,t){t=t||{};var r,n,i,a;Ey.isPlainObject(e)?(r=e.data||[],n=e.layout||{},i=e.config||{},a={}):(e=Ey.getGraphDiv(e),r=Ey.extendDeep([],e.data),n=Ey.extendDeep({},e.layout),i=e._context,a=e._fullLayout||{});function o(_){return!(_ in t)||Ey.validate(t[_],oU[_])}if(!o("width")&&t.width!==null||!o("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Ey.join2(oU.format.values,", "," or ")+".");var s={};function u(_,C){return Ey.coerce(t,s,oU,_,C)}var l=u("format"),f=u("width"),c=u("height"),h=u("scale"),d=u("setBackground"),p=u("imageDataOnly"),x=document.createElement("div");x.style.position="absolute",x.style.left="-5000px",document.body.appendChild(x);var b=Ey.extendFlat({},n);f?b.width=f:t.width===null&&gde(a.width)&&(b.width=a.width),c?b.height=c:t.height===null&&gde(a.height)&&(b.height=a.height);var v=Ey.extendFlat({},i,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),k=j5.getRedrawFunc(x);function E(){return new Promise(function(_){setTimeout(_,j5.getDelay(x._fullLayout))})}function T(){return new Promise(function(_,C){var S=Tpt(x,l,h),m=x._fullLayout.width,P=x._fullLayout.height;function A(){_de.purge(x),document.body.removeChild(x)}if(l==="full-json"){var B=Apt.graphJson(x,!1,"keepdata","object",!0,!0);return B.version=Mpt,B=JSON.stringify(B),A(),_(p?B:j5.encodeJSON(B))}if(A(),l==="svg")return _(p?S:j5.encodeSVG(S));var F=document.createElement("canvas");F.id=Ey.randstr(),Spt({format:l,width:m,height:P,scale:h,canvas:F,svg:S,promise:!0}).then(_).catch(C)})}function L(_){return p?_.replace(j5.IMAGE_URL_PREFIX,""):_}return new Promise(function(_,C){_de.newPlot(x,r,b,v).then(k).then(E).then(T).then(function(S){_(L(S))}).catch(function(S){C(S)})})}xde.exports=Ept});var Ade=Te((Qor,wde)=>{"use strict";var P0=ei(),kpt=Cc(),Cpt=_3(),Lpt=ub().dfltConfig,Lm=P0.isPlainObject,Vb=Array.isArray,lU=P0.isArrayOrTypedArray;wde.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var n=Cpt.get(),i=[],a={_context:P0.extendFlat({},Lpt)},o,s;Vb(t)?(a.data=P0.extendDeep([],t),o=t):(a.data=[],o=[],i.push(gd("array","data"))),Lm(r)?(a.layout=P0.extendDeep({},r),s=r):(a.layout={},s={},arguments.length>1&&i.push(gd("object","layout"))),kpt.supplyDefaults(a);for(var u=a._fullData,l=o.length,f=0;fc.length&&n.push(gd("unused",i,l.concat(c.length)));var v=c.length,k=Array.isArray(b);k&&(v=Math.min(v,b.length));var E,T,L,_,C;if(h.dimensions===2)for(T=0;Tc[T].length&&n.push(gd("unused",i,l.concat(T,c[T].length)));var S=c[T].length;for(E=0;E<(k?Math.min(S,b[T].length):S);E++)L=k?b[T][E]:b,_=f[T][E],C=c[T][E],P0.validate(_,L)?C!==_&&C!==+_&&n.push(gd("dynamic",i,l.concat(T,E),_,C)):n.push(gd("value",i,l.concat(T,E),_))}else n.push(gd("array",i,l.concat(T),f[T]));else for(T=0;T{"use strict";var Bpt=ei(),Hz=Lg();function Opt(e,t,r){var n=document.createElement("a"),i="download"in n,a=new Promise(function(o,s){var u,l;if(i)return u=Hz.createBlob(e,r),l=Hz.createObjectURL(u),n.href=l,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),Hz.revokeObjectURL(l),u=null,o(t);if(Bpt.isSafari()){var f=r==="svg"?",":";base64,";return Hz.octetStream(f+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}Tde.exports=Opt});var uU=Te((rsr,Ede)=>{"use strict";var Mde=ei(),qpt=sU(),Npt=Sde(),tsr=Lg();function Upt(e,t){var r;return Mde.isPlainObject(e)||(r=Mde.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(n,i){r&&r._snapshotInProgress&&i(new Error("Snapshotting already in progress.")),r&&(r._snapshotInProgress=!0);var a=qpt(e,t),o=t.filename||e.fn||"newplot";o+="."+t.format.replace("-","."),a.then(function(s){return r&&(r._snapshotInProgress=!1),Npt(s,o,t.format)}).then(function(s){n(s)}).catch(function(s){r&&(r._snapshotInProgress=!1),i(s)})})}Ede.exports=Upt});var zde=Te(fU=>{"use strict";var kv=ei(),Cv=kv.isPlainObject,kde=_3(),Cde=Cc(),Vpt=Vf(),Lde=Pf(),Pde=ub().dfltConfig;fU.makeTemplate=function(e){e=kv.isPlainObject(e)?e:kv.getGraphDiv(e),e=kv.extendDeep({_context:Pde},{data:e.data,layout:e.layout}),Cde.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var n={data:{},layout:{}};t.forEach(function(d){var p={};X5(d,p,Hpt.bind(null,d));var x=kv.coerce(d,{},Vpt,"type"),b=n.data[x];b||(b=n.data[x]=[]),b.push(p)}),X5(r,n.layout,Gpt.bind(null,r)),delete n.layout.template;var i=r.template;if(Cv(i)){var a=i.layout,o,s,u,l,f,c;Cv(a)&&Wz(a,n.layout);var h=i.data;if(Cv(h)){for(s in n.data)if(u=h[s],Array.isArray(u)){for(f=n.data[s],c=f.length,l=u.length,o=0;ov?o.push({code:"unused",traceType:d,templateCount:b,dataCount:v}):v>b&&o.push({code:"reused",traceType:d,templateCount:b,dataCount:v})}}function k(E,T){for(var L in E)if(L.charAt(0)!=="_"){var _=E[L],C=z0(E,L,T);Cv(_)?(Array.isArray(E)&&_._template===!1&&_.templateitemname&&o.push({code:"missing",path:C,templateitemname:_.templateitemname}),k(_,C)):Array.isArray(_)&&Wpt(_)&&k(_,C)}}if(k({data:u,layout:s},""),o.length)return o.map(jpt)};function Wpt(e){for(var t=0;t{"use strict";var rd=Nz();Vc._doPlot=rd._doPlot;Vc.newPlot=rd.newPlot;Vc.restyle=rd.restyle;Vc.relayout=rd.relayout;Vc.redraw=rd.redraw;Vc.update=rd.update;Vc._guiRestyle=rd._guiRestyle;Vc._guiRelayout=rd._guiRelayout;Vc._guiUpdate=rd._guiUpdate;Vc._storeDirectGUIEdit=rd._storeDirectGUIEdit;Vc.react=rd.react;Vc.extendTraces=rd.extendTraces;Vc.prependTraces=rd.prependTraces;Vc.addTraces=rd.addTraces;Vc.deleteTraces=rd.deleteTraces;Vc.moveTraces=rd.moveTraces;Vc.purge=rd.purge;Vc.addFrames=rd.addFrames;Vc.deleteFrames=rd.deleteFrames;Vc.animate=rd.animate;Vc.setPlotConfig=rd.setPlotConfig;var Xpt=BM().getGraphDiv,Zpt=nz().eraseActiveShape;Vc.deleteActiveShape=function(e){return Zpt(Xpt(e))};Vc.toImage=sU();Vc.validate=Ade();Vc.downloadImage=uU();var Ide=zde();Vc.makeTemplate=Ide.makeTemplate;Vc.validateTemplate=Ide.validateTemplate});var K3=Te((asr,Dde)=>{"use strict";var cU=ei(),Ypt=$l();Dde.exports=function(t,r,n,i){var a=i("x"),o=i("y"),s,u=Ypt.getComponentMethod("calendars","handleTraceDefaults");if(u(t,r,["x","y"],n),a){var l=cU.minRowLength(a);o?s=Math.min(l,cU.minRowLength(o)):(s=l,i("y0"),i("dy"))}else{if(!o)return 0;s=cU.minRowLength(o),i("x0"),i("dx")}return r._length=s,s}});var Pm=Te((osr,Ode)=>{"use strict";var Fde=ei().dateTick0,Kpt=nf(),Jpt=Kpt.ONEWEEK;function Bde(e,t){return e%Jpt===0?Fde(t,1):Fde(t,0)}Ode.exports=function(t,r,n,i,a){if(a||(a={x:!0,y:!0}),a.x){var o=i("xperiod");o&&(i("xperiod0",Bde(o,r.xcalendar)),i("xperiodalignment"))}if(a.y){var s=i("yperiod");s&&(i("yperiod0",Bde(s,r.ycalendar)),i("yperiodalignment"))}}});var Ude=Te((ssr,Nde)=>{"use strict";var qde=["orientation","groupnorm","stackgaps"];Nde.exports=function(t,r,n,i){var a=n._scatterStackOpts,o=i("stackgroup");if(o){var s=r.xaxis+r.yaxis,u=a[s];u||(u=a[s]={});var l=u[o],f=!1;l?l.traces.push(r):(l=u[o]={traceIndices:[],traces:[r]},f=!0);for(var c={orientation:r.x&&!r.y?"h":"v"},h=0;h{"use strict";var Vde=jl(),Gde=Rp().hasColorscale,Hde=ed(),$pt=lc();Wde.exports=function(t,r,n,i,a,o){var s=$pt.isBubble(t),u=(t.line||{}).color,l;if(o=o||{},u&&(n=u),a("marker.symbol"),a("marker.opacity",s?.7:1),a("marker.size"),o.noAngle||(a("marker.angle"),o.noAngleRef||a("marker.angleref"),o.noStandOff||a("marker.standoff")),a("marker.color",n),Gde(t,"marker")&&Hde(t,r,i,a,{prefix:"marker.",cLetter:"c"}),o.noSelect||(a("selected.marker.color"),a("unselected.marker.color"),a("selected.marker.size"),a("unselected.marker.size")),o.noLine||(u&&!Array.isArray(u)&&r.marker.color!==u?l=u:s?l=Vde.background:l=Vde.defaultLine,a("marker.line.color",l),Gde(t,"marker.line")&&Hde(t,r,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width",s?1:0)),s&&(a("marker.sizeref"),a("marker.sizemin"),a("marker.sizemode")),o.gradient){var f=a("marker.gradient.type");f!=="none"&&a("marker.gradient.color")}}});var I0=Te((usr,jde)=>{"use strict";var Qpt=ei().isArrayOrTypedArray,evt=Rp().hasColorscale,tvt=ed();jde.exports=function(t,r,n,i,a,o){o||(o={});var s=(t.marker||{}).color;if(s&&s._inputArray&&(s=s._inputArray),a("line.color",n),evt(t,"line"))tvt(t,r,i,a,{prefix:"line.",cLetter:"c"});else{var u=(Qpt(s)?!1:s)||n;a("line.color",u)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var J3=Te((fsr,Xde)=>{"use strict";Xde.exports=function(t,r,n){var i=n("line.shape");i==="spline"&&n("line.smoothing")}});var R0=Te((csr,Zde)=>{"use strict";var rvt=ei();Zde.exports=function(e,t,r,n,i){i=i||{},n("textposition"),rvt.coerceFont(n,"textfont",i.font||r.font,i),i.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var zm=Te((hsr,Kde)=>{"use strict";var Xz=jl(),Yde=ei().isArrayOrTypedArray;function ivt(e){for(var t=Xz.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var Jde=ei(),nvt=$l(),avt=Zc(),ovt=Sy(),$3=lc(),svt=K3(),lvt=Pm(),uvt=Ude(),fvt=$v(),cvt=I0(),$de=J3(),hvt=R0(),dvt=zm(),pvt=ei().coercePattern;Qde.exports=function(t,r,n,i){function a(d,p){return Jde.coerce(t,r,avt,d,p)}var o=svt(t,r,i,a);if(o||(r.visible=!1),!!r.visible){lvt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=uvt(t,r,i,a);i.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var u=!s&&o{"use strict";var vvt=qb().getAxisGroup;tpe.exports=function(t,r,n,i,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],u=vvt(n,s)+o,l=n._alignmentOpts||{},f=i("alignmentgroup"),c=l[u];c||(c=l[u]={});var h=c[f];h?h.traces.push(r):h=c[f]={traces:[r],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=i("offsetgroup")||"",p=h.offsetGroups,x=p[d];r._offsetIndex=0,(a!=="group"||d)&&(x||(x=p[d]={offsetIndex:Object.keys(p).length}),r._offsetIndex=x.offsetIndex)}});var hU=Te((vsr,rpe)=>{"use strict";var mvt=ei(),yvt=Gb(),gvt=Zc();rpe.exports=function(t,r){var n,i,a,o=r.scattermode;function s(h){return mvt.coerce(i._input,i,gvt,h)}if(r.scattermode==="group")for(a=0;a=0;f--){var c=t[f];if(c.type==="scatter"&&c.xaxis===u.xaxis&&c.yaxis===u.yaxis){c.opacity=void 0;break}}}}}});var npe=Te((msr,ipe)=>{"use strict";var _vt=ei(),xvt=HL();ipe.exports=function(e,t){function r(i,a){return _vt.coerce(e,t,xvt,i,a)}var n=t.barmode==="group";t.scattermode==="group"&&r("scattergap",n?t.bargap:.2)}});var Im=Te((ysr,ope)=>{"use strict";var bvt=ku(),ape=ei(),wvt=ape.dateTime2ms,Zz=ape.incrementMonth,Avt=nf(),Tvt=Avt.ONEAVGMONTH;ope.exports=function(t,r,n,i){if(r.type!=="date")return{vals:i};var a=t[n+"periodalignment"];if(!a)return{vals:i};var o=t[n+"period"],s;if(bvt(o)){if(o=+o,o<=0)return{vals:i}}else if(typeof o=="string"&&o.charAt(0)==="M"){var u=+o.substring(1);if(u>0&&Math.round(u)===u)s=u;else return{vals:i}}for(var l=r.calendar,f=a==="start",c=a==="end",h=t[n+"period0"],d=wvt(h,l)||0,p=[],x=[],b=[],v=i.length,k=0;kE;)_=Zz(_,-s,l);for(;_<=E;)_=Zz(_,s,l);L=Zz(_,-s,l)}else{for(T=Math.round((E-d)/o),_=d+T*o;_>E;)_-=o;for(;_<=E;)_+=o;L=_-o}p[k]=f?L:c?_:(L+_)/2,x[k]=L,b[k]=_}return{vals:p,starts:x,ends:b}}});var D0=Te((gsr,lpe)=>{"use strict";var dU=Rp().hasColorscale,pU=Dp(),spe=lc();lpe.exports=function(t,r){spe.hasLines(r)&&dU(r,"line")&&pU(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),spe.hasMarkers(r)&&(dU(r,"marker")&&pU(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),dU(r,"marker.line")&&pU(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var ky=Te((_sr,upe)=>{"use strict";var ch=ei();upe.exports=function(t,r){for(var n=0;n{"use strict";var fpe=ei();cpe.exports=function(t,r){fpe.isArrayOrTypedArray(r.selectedpoints)&&fpe.tagSelected(t,r)}});var B0=Te((bsr,gpe)=>{"use strict";var hpe=ku(),mU=ei(),Z5=wu(),dpe=Im(),vU=nf().BADNUM,yU=lc(),Svt=D0(),Mvt=ky(),Evt=F0();function kvt(e,t){var r=e._fullLayout,n=t._xA=Z5.getFromId(e,t.xaxis||"x","x"),i=t._yA=Z5.getFromId(e,t.yaxis||"y","y"),a=n.makeCalcdata(t,"x"),o=i.makeCalcdata(t,"y"),s=dpe(t,n,"x",a),u=dpe(t,i,"y",o),l=s.vals,f=u.vals,c=t._length,h=new Array(c),d=t.ids,p=gU(t,r,n,i),x=!1,b,v,k,E,T,L;mpe(r,t);var _="x",C="y",S;if(p)mU.pushUnique(p.traceIndices,t.index),b=p.orientation==="v",b?(C="s",S="x"):(_="s",S="y"),T=p.stackgaps==="interpolate";else{var m=vpe(t,c);ppe(e,t,n,i,l,f,m)}var P=!!t.xperiodalignment,A=!!t.yperiodalignment;for(v=0;vv&&h[E].gap;)E--;for(L=h[E].s,k=h.length-1;k>E;k--)h[k].s=L;for(;v{"use strict";_pe.exports=Yz;var Cvt=ei().distinctVals;function Yz(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,n=t.posAxis._id.charAt(0),i=[],a=0;a{"use strict";var O0=ku(),m_=ei().isArrayOrTypedArray,Q3=nf().BADNUM,Lvt=$l(),Y5=wu(),Pvt=qb().getAxisGroup,Kz=xpe();function zvt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],u=[],l=0;lu+o||!O0(s))}for(var f=0;f{"use strict";var Spe=B0(),Mpe=Hb().setGroupPositions;function Hvt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],u=[],l=0;lm[f]&&f{"use strict";var jvt=Mu(),zpe=nf(),K5=zpe.BADNUM,Ipe=zpe.LOG_CLIP,Cpe=Ipe+.5,Lpe=Ipe-.5,Jz=ei(),Xvt=Jz.segmentsIntersect,Ppe=Jz.constrain,TU=Sy();Rpe.exports=function(t,r){var n=r.trace||{},i=r.xaxis,a=r.yaxis,o=i.type==="log",s=a.type==="log",u=i._length,l=a._length,f=r.backoff,c=n.marker,h=r.connectGaps,d=r.baseTolerance,p=r.shape,x=p==="linear",b=n.fill&&n.fill!=="none",v=[],k=TU.minTolerance,E=t.length,T=new Array(E),L=0,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae;function be(Ie){var xe=t[Ie];if(!xe)return!1;var Oe=r.linearized?i.l2p(xe.x):i.c2p(xe.x),Re=r.linearized?a.l2p(xe.y):a.c2p(xe.y);if(Oe===K5){if(o&&(Oe=i.c2p(xe.x,!0)),Oe===K5)return!1;s&&Re===K5&&(Oe*=Math.abs(i._m*l*(i._m>0?Cpe:Lpe)/(a._m*u*(a._m>0?Cpe:Lpe)))),Oe*=1e3}if(Re===K5){if(s&&(Re=a.c2p(xe.y,!0)),Re===K5)return!1;Re*=1e3}return[Oe,Re]}function Ce(Ie,xe,Oe,Re){var De=Oe-Ie,ct=Re-xe,ge=.5-Ie,fe=.5-xe,de=De*De+ct*ct,dt=De*ge+ct*fe;if(dt>0&&dt1||Math.abs(ge.y-Oe[0][1])>1)&&(ge=[ge.x,ge.y],Re&&ke(ge,Ie)Ne||Ie[1]ye)return[Ppe(Ie[0],Me,Ne),Ppe(Ie[1],Fe,ye)]}function Tt(Ie,xe){if(Ie[0]===xe[0]&&(Ie[0]===Me||Ie[0]===Ne)||Ie[1]===xe[1]&&(Ie[1]===Fe||Ie[1]===ye))return!0}function St(Ie,xe){var Oe=[],Re=kt(Ie),De=kt(xe);return Re&&De&&Tt(Re,De)||(Re&&Oe.push(Re),De&&Oe.push(De)),Oe}function Dt(Ie,xe,Oe){return function(Re,De){var ct=kt(Re),ge=kt(De),fe=[];if(ct&&ge&&Tt(ct,ge))return fe;ct&&fe.push(ct),ge&&fe.push(ge);var de=2*Jz.constrain((Re[Ie]+De[Ie])/2,xe,Oe)-((ct||Re)[Ie]+(ge||De)[Ie]);if(de){var dt;ct&&ge?dt=de>0==ct[Ie]>ge[Ie]?ct:ge:dt=ct||ge,dt[Ie]+=de}return fe}}var Zt;p==="linear"||p==="spline"?Zt=Ye:p==="hv"||p==="vh"?Zt=St:p==="hvh"?Zt=Dt(0,Me,Ne):p==="vhv"&&(Zt=Dt(1,Fe,ye));function Et(Ie,xe){var Oe=xe[0]-Ie[0],Re=(xe[1]-Ie[1])/Oe,De=(Ie[1]*xe[0]-xe[1]*Ie[0])/Oe;return De>0?[Re>0?Me:Ne,ye]:[Re>0?Ne:Me,Fe]}function Ae(Ie){var xe=Ie[0],Oe=Ie[1],Re=xe===T[L-1][0],De=Oe===T[L-1][1];if(!(Re&&De))if(L>1){var ct=xe===T[L-2][0],ge=Oe===T[L-2][1];Re&&(xe===Me||xe===Ne)&&ct?ge?L--:T[L-1]=Ie:De&&(Oe===Fe||Oe===ye)&&ge?ct?L--:T[L-1]=Ie:T[L++]=Ie}else T[L++]=Ie}function at(Ie){T[L-1][0]!==Ie[0]&&T[L-1][1]!==Ie[1]&&Ae([nt,gt]),Ae(Ie),Nt=null,nt=gt=0}var wt=Jz.isArrayOrTypedArray(c);function vt(Ie){if(Ie&&f&&(Ie.i=_,Ie.d=t,Ie.trace=n,Ie.marker=wt?c[Ie.i]:c,Ie.backoff=f),Le=Ie[0]/u,pe=Ie[1]/l,ce=Ie[0]Ne?Ne:0,Je=Ie[1]ye?ye:0,ce||Je){if(!L)T[L++]=[ce||Ie[0],Je||Ie[1]];else if(Nt){var xe=Zt(Nt,Ie);xe.length>1&&(at(xe[0]),T[L++]=xe[1])}else it=Zt(T[L-1],Ie)[0],T[L++]=it;var Oe=T[L-1];ce&&Je&&(Oe[0]!==ce||Oe[1]!==Je)?(Nt&&(nt!==ce&>!==Je?Ae(nt&>?Et(Nt,Ie):[nt||ce,gt||Je]):nt&>&&Ae([nt,gt])),Ae([ce,Je])):nt-ce&>-Je&&Ae([ce||nt,Je||gt]),Nt=Ie,nt=ce,gt=Je}else Nt&&at(Zt(Nt,Ie)[0]),T[L++]=Ie}for(_=0;_te(A,st))break;S=A,N=U[0]*F[0]+U[1]*F[1],N>j?(j=N,m=A,B=!1):N=t.length||!A)break;vt(A),C=A}}Nt&&Ae([nt||Nt[0],gt||Nt[1]]),v.push(T.slice(0,L))}var Ue=p.slice(p.length-1);if(f&&Ue!=="h"&&Ue!=="v"){for(var rt=!1,$e=-1,zt=[],Yt=0;Yt{"use strict";var Dpe={tonextx:1,tonexty:1,tonext:1};Fpe.exports=function(t,r,n){var i,a,o,s,u,l={},f=!1,c=-1,h=0,d=-1;for(a=0;a=0?u=d:(u=d=h,h++),u{"use strict";var Rm=Jl(),Zvt=$l(),J5=ei(),tA=J5.ensureSingle,Ope=J5.identity,hh=Mu(),rA=lc(),Yvt=SU(),Kvt=MU(),$z=M5().tester;qpe.exports=function(t,r,n,i,a,o){var s,u,l=!a,f=!!a&&a.duration>0,c=Kvt(t,r,n);if(s=i.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),s.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),s.order(),Jvt(t,s,r),f){o&&(u=o());var h=Rm.transition().duration(a.duration).ease(a.easing).each("end",function(){u&&u()}).each("interrupt",function(){u&&u()});h.each(function(){i.selectAll("g.trace").each(function(d,p){Bpe(t,p,r,d,c,this,a)})})}else s.each(function(d,p){Bpe(t,p,r,d,c,this,a)});l&&s.exit().remove(),i.selectAll("path:not([d])").remove()};function Jvt(e,t,r){t.each(function(n){var i=tA(Rm.select(this),"g","fills");hh.setClipUrl(i,r.layerClipId,e);var a=n[0].trace,o=[];a._ownfill&&o.push("_ownFill"),a._nexttrace&&o.push("_nextFill");var s=i.selectAll("g").data(o,Ope);s.enter().append("g"),s.exit().each(function(u){a[u]=null}).remove(),s.order().each(function(u){a[u]=tA(Rm.select(this),"path","js-fill")})})}function Bpe(e,t,r,n,i,a,o){var s=e._context.staticPlot,u;$vt(e,t,r,n,i);var l=!!o&&o.duration>0;function f(Dt){return l?Dt.transition():Dt}var c=r.xaxis,h=r.yaxis,d=n[0].trace,p=d.line,x=Rm.select(a),b=tA(x,"g","errorbars"),v=tA(x,"g","lines"),k=tA(x,"g","points"),E=tA(x,"g","text");if(Zvt.getComponentMethod("errorbars","plot")(e,b,r,o),d.visible!==!0)return;f(x).style("opacity",d.opacity);var T,L,_=d.fill.charAt(d.fill.length-1);_!=="x"&&_!=="y"&&(_="");var C,S;_==="y"?(C=1,S=h.c2p(0,!0)):_==="x"&&(C=0,S=c.c2p(0,!0)),n[0][r.isRangePlot?"nodeRangePlot3":"node3"]=x;var m="",P=[],A=d._prevtrace,B=null,F=null;A&&(m=A._prevRevpath||"",L=A._nextFill,P=A._ownPolygons,B=A._fillsegments,F=A._fillElement);var U,G,j="",H="",N,W,re,ae,be,Ce,Le=[];d._polygons=[];var pe=[],te=[],ke=J5.noop;if(T=d._ownFill,rA.hasLines(d)||d.fill!=="none"){L&&L.datum(n),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(N=hh.steps(p.shape),W=hh.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?N=W=function(Dt){var Zt=Dt[Dt.length-1];return Dt.length>1&&Dt[0][0]===Zt[0]&&Dt[0][1]===Zt[1]?hh.smoothclosed(Dt.slice(1),p.smoothing):hh.smoothopen(Dt,p.smoothing)}:N=W=function(Dt){return"M"+Dt.join("L")},re=function(Dt){return W(Dt.reverse())},te=Yvt(n,{xaxis:c,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),pe=new Array(te.length);var Ee=0;for(u=0;u=s[0]&&x.x<=s[1]&&x.y>=u[0]&&x.y<=u[1]}),h=Math.ceil(c.length/f),d=0;i.forEach(function(x,b){var v=x[0].trace;rA.hasMarkers(v)&&v.marker.maxdisplayed>0&&b{"use strict";Npe.exports={container:"marker",min:"cmin",max:"cmax"}});var eI=Te((Csr,Upe)=>{"use strict";var Qz=wu();Upe.exports=function(t,r,n){var i={},a={_fullLayout:n},o=Qz.getFromTrace(a,r,"x"),s=Qz.getFromTrace(a,r,"y"),u=t.orig_x;u===void 0&&(u=t.x);var l=t.orig_y;return l===void 0&&(l=t.y),i.xLabel=Qz.tickText(o,o.c2l(u),!0).text,i.yLabel=Qz.tickText(s,s.c2l(l),!0).text,i}});var av=Te((Lsr,Vpe)=>{"use strict";var EU=Jl(),nA=Mu(),Qvt=$l();function e0t(e){var t=EU.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var n=EU.select(this),i=r.trace||r[0].trace;kU(n,i,e)}),t.selectAll("g.text").each(function(r){var n=EU.select(this),i=r.trace||r[0].trace;CU(n,i,e)}),t.selectAll("g.trace path.js-line").call(nA.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(nA.fillGroupStyle,e,!1),Qvt.getComponentMethod("errorbars","style")(t)}function kU(e,t,r){nA.pointStyle(e.selectAll("path.point"),t,r)}function CU(e,t,r){nA.textPointStyle(e.selectAll("text"),t,r)}function t0t(e,t,r){var n=t[0].trace;n.selectedpoints?(nA.selectedPointStyle(r.selectAll("path.point"),n),nA.selectedTextStyle(r.selectAll("text"),n)):(kU(r,n,e),CU(r,n,e))}Vpe.exports={style:e0t,stylePoints:kU,styleText:CU,styleOnSelect:t0t}});var oA=Te((Psr,Gpe)=>{"use strict";var aA=jl(),r0t=lc();Gpe.exports=function(t,r){var n,i;if(t.mode==="lines")return n=t.line.color,n&&aA.opacity(n)?n:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var a=r.mcc||(t.marker||{}).color,o=r.mlcc||((t.marker||{}).line||{}).color;return i=a&&aA.opacity(a)?a:o&&aA.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",i?aA.opacity(i)<.3?aA.addOpacity(i,.3):i:(n=(t.line||{}).color,n&&aA.opacity(n)&&r0t.hasLines(t)&&t.line.width?n:t.fillcolor)}});var sA=Te((zsr,Wpe)=>{"use strict";var tI=ei(),Hpe=Xc(),i0t=$l(),n0t=oA(),LU=jl(),a0t=tI.fillText;Wpe.exports=function(t,r,n,i){var a=t.cd,o=a[0].trace,s=t.xa,u=t.ya,l=s.c2p(r),f=u.c2p(n),c=[l,f],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,x=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var b=function(H){if(p){var N=s.c2p(H.xStart),W=s.c2p(H.xEnd);return l>=Math.min(N,W)&&l<=Math.max(N,W)?0:1/0}var re=Math.max(3,H.mrc||0),ae=1-1/re,be=Math.abs(s.c2p(H.x)-l);return be=Math.min(N,W)&&f<=Math.max(N,W)?0:1/0}var re=Math.max(3,H.mrc||0),ae=1-1/re,be=Math.abs(u.c2p(H.y)-f);return beLe!=ye>=Le&&(Me=ke[te-1][0],Ne=ke[te][0],ye-Fe&&(Ee=Me+(Ne-Me)*(Le-Fe)/(ye-Fe),re=Math.min(re,Ee),ae=Math.max(ae,Ee)));return re=Math.max(re,0),ae=Math.min(ae,s._length),{x0:re,x1:ae,y0:Le,y1:Le}}if(h.indexOf("fills")!==-1&&o._fillElement){var U=B(o._fillElement)&&!B(o._fillExclusionElement);if(U){var G=F(o._polygons);G===null&&(G={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var j=LU.defaultLine;return LU.opacity(o.fillcolor)?j=o.fillcolor:LU.opacity((o.line||{}).color)&&(j=o.line.color),tI.extendFlat(t,{distance:t.maxHoverDistance,x0:G.x0,x1:G.x1,y0:G.y0,y1:G.y1,color:j,hovertemplate:!1}),delete t.index,o.text&&!tI.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var lA=Te((Isr,Xpe)=>{"use strict";var jpe=lc();Xpe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u,l,f,c,h=!jpe.hasMarkers(s)&&!jpe.hasText(s);if(h)return[];if(r===!1)for(u=0;u{"use strict";Zpe.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var zU=Te((Dsr,$pe)=>{"use strict";var $5=$l().traceIs,PU=L3();$pe.exports=function(t,r,n,i){n("autotypenumbers",i.autotypenumbersDflt);var a=n("type",(i.splomStash||{}).type);a==="-"&&(o0t(r,i.data),r.type==="-"?r.type="linear":t.type=r.type)};function o0t(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i;r.indexOf("scene")!==-1&&(r=n);var a=s0t(t,r,n);if(a){if(a.type==="histogram"&&n==={v:"y",h:"x"}[a.orientation||"v"]){e.type="linear";return}var o=n+"calendar",s=a[o],u={noMultiCategory:!$5(a,"cartesian")||$5(a,"noMultiCategory")};if(a.type==="box"&&a._hasPreCompStats&&n==={h:"x",v:"y"}[a.orientation||"v"]&&(u.noMultiCategory=!0),u.autotypenumbers=e.autotypenumbers,Jpe(a,n)){var l=Kpe(a),f=[];for(i=0;i0&&(i["_"+r+"axes"]||{})[t])return i;if((i[r+"axis"]||r)===t){if(Jpe(i,r))return i;if((i[r]||[]).length||i[r+"0"])return i}}}function Kpe(e){return{v:"x",h:"y"}[e.orientation||"v"]}function Jpe(e,t){var r=Kpe(e),n=$5(e,"box-violin"),i=$5(e._fullInput||{},"candlestick");return n&&!i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var rI=Te((Fsr,Qpe)=>{"use strict";var l0t=mp().isTypedArraySpec;function u0t(e,t){var r=t.dataAttr||e._id.charAt(0),n={},i,a,o;if(t.axData)i=t.axData;else for(i=[],a=0;a0||l0t(a),s;o&&(s="array");var u=n("categoryorder",s),l;u==="array"&&(l=n("categoryarray")),!o&&u==="array"&&(u=r.categoryorder="trace"),u==="trace"?r._initialCategories=[]:u==="array"?r._initialCategories=l.slice():(l=u0t(r,i).sort(),u==="category ascending"?r._initialCategories=l:u==="category descending"&&(r._initialCategories=l.reverse()))}}});var Q5=Te((Bsr,tve)=>{"use strict";var eve=cd().mix,f0t=Ih(),c0t=ei();tve.exports=function(t,r,n,i){i=i||{};var a=i.dfltColor;function o(S,m){return c0t.coerce2(t,r,i.attributes,S,m)}var s=o("linecolor",a),u=o("linewidth"),l=n("showline",i.showLine||!!s||!!u);l||(delete r.linecolor,delete r.linewidth);var f=eve(a,i.bgColor,i.blend||f0t.lightFraction).toRgbString(),c=o("gridcolor",f),h=o("gridwidth"),d=o("griddash"),p=n("showgrid",i.showGrid||!!c||!!h||!!d);if(p||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),i.hasMinor){var x=eve(r.gridcolor,i.bgColor,67).toRgbString(),b=o("minor.gridcolor",x),v=o("minor.gridwidth",r.gridwidth||1),k=o("minor.griddash",r.griddash||"solid"),E=n("minor.showgrid",!!b||!!v||!!k);E||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!i.noZeroLine){var T=o("zerolinelayer"),L=o("zerolinecolor",a),_=o("zerolinewidth"),C=n("zeroline",i.showGrid||!!L||!!_);C||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var tE=Te((Osr,sve)=>{"use strict";var rve=ku(),h0t=$l(),eE=ei(),d0t=Pf(),p0t=Jd(),IU=Dd(),ive=xb(),nve=A3(),v0t=t_(),m0t=r_(),y0t=rI(),g0t=Q5(),_0t=MN(),ave=gy(),iI=dd().WEEKDAY_PATTERN,x0t=dd().HOUR_PATTERN;sve.exports=function(t,r,n,i,a){var o=i.letter,s=i.font||{},u=i.splomStash||{},l=n("visible",!i.visibleDflt),f=r._template||{},c=r.type||f.type||"-",h;if(c==="date"){var d=h0t.getComponentMethod("calendars","handleDefaults");d(t,r,"calendar",i.calendar),i.noTicklabelmode||(h=n("ticklabelmode"))}!i.noTicklabelindex&&(c==="date"||c==="linear")&&n("ticklabelindex");var p="";(!i.noTicklabelposition||c==="multicategory")&&(p=eE.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),i.noTicklabeloverflow||n("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),ave(r,a),_0t(t,r,n,i),y0t(t,r,n,i),i.noHover||(c!=="category"&&n("hoverformat"),i.noUnifiedhovertitle||n("unifiedhovertitle.text"));var x=n("color"),b=x!==IU.color.dflt?x:s.color,v=u.label||a._dfltTitle[o];if(m0t(t,r,n,c,i),!l)return r;n("title.text",v),eE.coerceFont(n,"title.font",s,{overrideDflt:{size:eE.bigFont(s.size),color:b}}),ive(t,r,n,c);var k=i.hasMinor;if(k&&(d0t.newContainer(r,"minor"),ive(t,r,n,c,{isMinor:!0})),v0t(t,r,n,c,i),nve(t,r,n,i),k){var E=i.isMinor;i.isMinor=!0,nve(t,r,n,i),i.isMinor=E}g0t(t,r,n,{dfltColor:x,bgColor:i.bgColor,showGrid:i.showGrid,hasMinor:k,attributes:IU}),k&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&n("mirror");var T=c==="multicategory";if(!i.noTickson&&(c==="category"||T)&&(r.ticks||r.showgrid)&&(T?(n("tickson","boundaries"),delete r.ticklabelposition):n("tickson")),T){var L=n("showdividers");L&&(n("dividercolor"),n("dividerwidth"))}if(c==="date")if(p0t(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:b0t}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var _=0;_=2){var o="",s,u;if(a.length===2){for(s=0;s<2;s++)if(u=ove(a[s]),u){o=iI;break}}var l=n("pattern",o);if(l===iI)for(s=0;s<2;s++)u=ove(a[s]),u&&(t.bounds[s]=a[s]=u-1);if(l)for(s=0;s<2;s++)switch(u=a[s],l){case iI:if(!rve(u)){t.enabled=!1;return}if(u=+u,u!==Math.floor(u)||u<0||u>=7){t.enabled=!1;return}t.bounds[s]=a[s]=u;break;case x0t:if(!rve(u)){t.enabled=!1;return}if(u=+u,u<0||u>24){t.enabled=!1;return}t.bounds[s]=a[s]=u;break}if(r.autorange===!1){var f=r.range;if(f[0]f[1]){t.enabled=!1;return}}else if(a[0]>f[0]&&a[1]{"use strict";var A0t=ku(),nI=ei();lve.exports=function(t,r,n,i){var a=i.counterAxes||[],o=i.overlayableAxes||[],s=i.letter,u=i.grid,l=i.overlayingDomain,f,c,h,d,p,x;u&&(c=u._domains[s][u._axisMap[r._id]],f=u._anchors[r._id],c&&(h=u[s+"side"].split(" ")[0],d=u.domain[s][h==="right"||h==="top"?1:0])),c=c||[0,1],f=f||(A0t(t.position)?"free":a[0]||"free"),h=h||(s==="x"?"bottom":"left"),d=d||0,p=0,x=!1;var b=nI.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(a),dflt:f}},"anchor"),v=nI.coerce(t,r,{side:{valType:"enumerated",values:s==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(b==="free"){if(s==="y"){var k=n("autoshift");k&&(d=v==="left"?l[0]:l[1],x=r.automargin?r.automargin:!0,p=v==="left"?-3:3),n("shift",p)}n("position",d)}n("automargin",x);var E=!1;if(o.length&&(E=nI.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!E){var T=n("domain",c);T[0]>T[1]-1/4096&&(r.domain=c),nI.noneOrAll(t.domain,r.domain,c),r.tickmode==="sync"&&(r.tickmode="auto")}return n("layer"),r}});var yve=Te((Nsr,mve)=>{"use strict";var Wb=ei(),uve=jl(),T0t=rv().isUnifiedHover,S0t=JN(),fve=Pf(),M0t=s3(),cve=Dd(),E0t=zU(),hve=tE(),k0t=qb(),dve=aI(),DU=Wc(),Cy=DU.id2name,pve=DU.name2id,C0t=dd().AX_ID_PATTERN,vve=$l(),oI=vve.traceIs,RU=vve.getComponentMethod;function sI(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}mve.exports=function(t,r,n){var i=r.autotypenumbers,a={},o={},s={},u={},l={},f={},c={},h={},d={},p={},x,b;for(x=0;x{"use strict";var L0t=Jl(),gve=$l(),lI=ei(),Qv=Mu(),uI=wu();_ve.exports=function(t,r,n,i){var a=t._fullLayout;if(r.length===0){uI.redrawComponents(t);return}function o(b){var v=b.xaxis,k=b.yaxis;a._defs.select("#"+b.clipId+"> rect").call(Qv.setTranslate,0,0).call(Qv.setScale,1,1),b.plot.call(Qv.setTranslate,v._offset,k._offset).call(Qv.setScale,1,1);var E=b.plot.selectAll(".scatterlayer .trace");E.selectAll(".point").call(Qv.setPointGroupScale,1,1),E.selectAll(".textpoint").call(Qv.setTextPointsScale,1,1),E.call(Qv.hideOutsideRangePoints,b)}function s(b,v){var k=b.plotinfo,E=k.xaxis,T=k.yaxis,L=E._length,_=T._length,C=!!b.xr1,S=!!b.yr1,m=[];if(C){var P=lI.simpleMap(b.xr0,E.r2l),A=lI.simpleMap(b.xr1,E.r2l),B=P[1]-P[0],F=A[1]-A[0];m[0]=(P[0]*(1-v)+v*A[0]-P[0])/(P[1]-P[0])*L,m[2]=L*(1-v+v*F/B),E.range[0]=E.l2r(P[0]*(1-v)+v*A[0]),E.range[1]=E.l2r(P[1]*(1-v)+v*A[1])}else m[0]=0,m[2]=L;if(S){var U=lI.simpleMap(b.yr0,T.r2l),G=lI.simpleMap(b.yr1,T.r2l),j=U[1]-U[0],H=G[1]-G[0];m[1]=(U[1]*(1-v)+v*G[1]-U[1])/(U[0]-U[1])*_,m[3]=_*(1-v+v*H/j),T.range[0]=E.l2r(U[0]*(1-v)+v*G[0]),T.range[1]=T.l2r(U[1]*(1-v)+v*G[1])}else m[1]=0,m[3]=_;uI.drawOne(t,E,{skipTitle:!0}),uI.drawOne(t,T,{skipTitle:!0}),uI.redrawComponents(t,[E._id,T._id]);var N=C?L/m[2]:1,W=S?_/m[3]:1,re=C?m[0]:0,ae=S?m[1]:0,be=C?m[0]/m[2]*L:0,Ce=S?m[1]/m[3]*_:0,Le=E._offset-be,pe=T._offset-Ce;k.clipRect.call(Qv.setTranslate,re,ae).call(Qv.setScale,1/N,1/W),k.plot.call(Qv.setTranslate,Le,pe).call(Qv.setScale,N,W),Qv.setPointGroupScale(k.zoomScalePts,1/N,1/W),Qv.setTextPointsScale(k.zoomScaleTxt,1/N,1/W)}var u;i&&(u=i());function l(){for(var b={},v=0;vn.duration?(l(),d=window.cancelAnimationFrame(x)):d=window.requestAnimationFrame(x)}return c=Date.now(),d=window.requestAnimationFrame(x),Promise.resolve()}});var Ah=Te(xp=>{"use strict";var cI=Jl(),bve=$l(),jb=ei(),P0t=Cc(),z0t=Mu(),wve=Rd().getModuleCalcData,y_=Wc(),Dm=dd(),I0t=jv(),Yf=jb.ensureSingle;function fI(e,t,r){return jb.ensureSingle(e,t,r,function(n){n.datum(r)})}var Xb=Dm.zindexSeparator;xp.name="cartesian";xp.attr=["xaxis","yaxis"];xp.idRoot=["x","y"];xp.idRegex=Dm.idRegex;xp.attrRegex=Dm.attrRegex;xp.attributes=Ype();xp.layoutAttributes=Dd();xp.supplyLayoutDefaults=yve();xp.transitionAxes=xve();xp.finalizeSubplots=function(e,t){var r=t._subplots,n=r.xaxis,i=r.yaxis,a=r.cartesian,o=a,s={},u={},l,f,c;for(l=0;l0){var d=h.id;if(d.indexOf(Xb)!==-1)continue;d+=Xb+(l+1),h=jb.extendFlat({},h,{id:d,plot:i._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],x,b=0;b1&&(L+=Xb+T),E.push(s+L),o=0;o1,c=t.mainplotinfo;if(!t.mainplot||f)if(l)t.xlines=Yf(n,"path","xlines-above"),t.ylines=Yf(n,"path","ylines-above"),t.xaxislayer=Yf(n,"g","xaxislayer-above"),t.yaxislayer=Yf(n,"g","yaxislayer-above");else{if(!o){var h=Yf(n,"g","layer-subplot");t.shapelayer=Yf(h,"g","shapelayer"),t.imagelayer=Yf(h,"g","imagelayer"),c&&f?(t.minorGridlayer=c.minorGridlayer,t.gridlayer=c.gridlayer,t.zerolinelayer=c.zerolinelayer):(t.minorGridlayer=Yf(n,"g","minor-gridlayer"),t.gridlayer=Yf(n,"g","gridlayer"),t.zerolinelayer=Yf(n,"g","zerolinelayer"));var d=Yf(n,"g","layer-between");t.shapelayerBetween=Yf(d,"g","shapelayer"),t.imagelayerBetween=Yf(d,"g","imagelayer"),Yf(n,"path","xlines-below"),Yf(n,"path","ylines-below"),t.overlinesBelow=Yf(n,"g","overlines-below"),Yf(n,"g","xaxislayer-below"),Yf(n,"g","yaxislayer-below"),t.overaxesBelow=Yf(n,"g","overaxes-below")}t.overplot=Yf(n,"g","overplot"),t.plot=Yf(t.overplot,"g",i),c&&f?t.zerolinelayerAbove=c.zerolinelayerAbove:t.zerolinelayerAbove=Yf(n,"g","zerolinelayer-above"),o||(t.xlines=Yf(n,"path","xlines-above"),t.ylines=Yf(n,"path","ylines-above"),t.overlinesAbove=Yf(n,"g","overlines-above"),Yf(n,"g","xaxislayer-above"),Yf(n,"g","yaxislayer-above"),t.overaxesAbove=Yf(n,"g","overaxes-above"),t.xlines=n.select(".xlines-"+s),t.ylines=n.select(".ylines-"+u),t.xaxislayer=n.select(".xaxislayer-"+s),t.yaxislayer=n.select(".yaxislayer-"+u))}else{var p=c.plotgroup,x=i+"-x",b=i+"-y";t.minorGridlayer=c.minorGridlayer,t.gridlayer=c.gridlayer,t.zerolinelayer=c.zerolinelayer,t.zerolinelayerAbove=c.zerolinelayerAbove,Yf(c.overlinesBelow,"path",x),Yf(c.overlinesBelow,"path",b),Yf(c.overaxesBelow,"g",x),Yf(c.overaxesBelow,"g",b),t.plot=Yf(c.overplot,"g",i),Yf(c.overlinesAbove,"path",x),Yf(c.overlinesAbove,"path",b),Yf(c.overaxesAbove,"g",x),Yf(c.overaxesAbove,"g",b),t.xlines=p.select(".overlines-"+s).select("."+x),t.ylines=p.select(".overlines-"+u).select("."+b),t.xaxislayer=p.select(".overaxes-"+s).select("."+x),t.yaxislayer=p.select(".overaxes-"+u).select("."+b)}o||(l||(fI(t.minorGridlayer,"g",t.xaxis._id),fI(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(v){return v[0]}).sort(y_.idSort),fI(t.gridlayer,"g",t.xaxis._id),fI(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(v){return v[0]}).sort(y_.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function Sve(e,t){if(e){var r={};e.each(function(u){var l=u[0],f=cI.select(this);f.remove(),Mve(l,t),r[l]=!0});for(var n in t._plots)for(var i=t._plots[n],a=i.overlays||[],o=0;o{"use strict";var hI=lc();Eve.exports={hasLines:hI.hasLines,hasMarkers:hI.hasMarkers,hasText:hI.hasText,isBubble:hI.isBubble,attributes:Zc(),layoutAttributes:HL(),supplyDefaults:epe(),crossTraceDefaults:hU(),supplyLayoutDefaults:npe(),calc:B0().calc,crossTraceCalc:kpe(),arraysToCalcdata:ky(),plot:iA(),colorbar:ep(),formatLabels:eI(),style:av().style,styleOnSelect:av().styleOnSelect,hoverPoints:sA(),selectPoints:lA(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Ah(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var Pve=Te((Hsr,Lve)=>{"use strict";var D0t=Jl(),F0t=jl(),Cve=q7(),FU=ei(),B0t=FU.strScale,O0t=FU.strRotate,q0t=FU.strTranslate;Lve.exports=function(t,r,n){var i=t.node(),a=Cve[n.arrowhead||0],o=Cve[n.startarrowhead||0],s=(n.arrowwidth||1)*(n.arrowsize||1),u=(n.arrowwidth||1)*(n.startarrowsize||1),l=r.indexOf("start")>=0,f=r.indexOf("end")>=0,c=a.backoff*s+n.standoff,h=o.backoff*u+n.startstandoff,d,p,x,b;if(i.nodeName==="line"){d={x:+t.attr("x1"),y:+t.attr("y1")},p={x:+t.attr("x2"),y:+t.attr("y2")};var v=d.x-p.x,k=d.y-p.y;if(x=Math.atan2(k,v),b=x+Math.PI,c&&h&&c+h>Math.sqrt(v*v+k*k)){U();return}if(c){if(c*c>v*v+k*k){U();return}var E=c*Math.cos(x),T=c*Math.sin(x);p.x+=E,p.y+=T,t.attr({x2:p.x,y2:p.y})}if(h){if(h*h>v*v+k*k){U();return}var L=h*Math.cos(x),_=h*Math.sin(x);d.x-=L,d.y-=_,t.attr({x1:d.x,y1:d.y})}}else if(i.nodeName==="path"){var C=i.getTotalLength(),S="";if(C{"use strict";var zve=Jl(),BU=$l(),N0t=Cc(),__=ei(),OU=__.strTranslate,iE=wu(),Zb=jl(),Pg=Mu(),Ive=Xc(),qU=Zf(),NU=Am(),rE=gp(),U0t=Pf().arrayEditor,V0t=Pve();Fve.exports={draw:G0t,drawOne:Rve,drawRaw:Dve};function G0t(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?De="right":De="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[De]}for(var Fe=!1,ye=["x","y"],Ve=0;Ve1)&&(nt===Je?(st=gt.r2fraction(t["a"+ce]),(st<0||st>1)&&(Fe=!0)):Fe=!0),Zt=gt._offset+gt.r2p(t[ce]),at=.5}else{var Ue=vt==="domain";ce==="x"?(Ae=t[ce],Zt=Ue?gt._offset+gt._length*Ae:Zt=s.l+s.w*Ae):(Ae=1-t[ce],Zt=Ue?gt._offset+gt._length*Ae:Zt=s.t+s.h*Ae),at=t.showarrow?.5:Ae}if(t.showarrow){Dt.head=Zt;var rt=t["a"+ce];if(wt=it*Ne(.5,t.xanchor)-Ye*Ne(.5,t.yanchor),nt===Je){var $e=iE.getRefType(nt);$e==="domain"?(ce==="y"&&(rt=1-rt),Dt.tail=gt._offset+gt._length*rt):$e==="paper"?ce==="y"?(rt=1-rt,Dt.tail=s.t+s.h*rt):Dt.tail=s.l+s.w*rt:Dt.tail=gt._offset+gt.r2p(rt),Et=wt}else Dt.tail=Zt+rt,Et=wt+rt;Dt.text=Dt.tail+wt;var zt=o[ce==="x"?"width":"height"];if(Je==="paper"&&(Dt.head=__.constrain(Dt.head,1,zt-1)),nt==="pixel"){var Yt=-Math.max(Dt.tail-3,Dt.text),hr=Math.min(Dt.tail+3,Dt.text)-zt;Yt>0?(Dt.tail+=Yt,Dt.text+=Yt):hr>0&&(Dt.tail-=hr,Dt.text-=hr)}Dt.tail+=St,Dt.head+=St}else wt=kt*Ne(at,Tt),Et=wt,Dt.text=Zt+wt;Dt.text+=St,wt+=St,Et+=St,t["_"+ce+"padplus"]=kt/2+Et,t["_"+ce+"padminus"]=kt/2-Et,t["_"+ce+"size"]=kt,t["_"+ce+"shift"]=wt}if(Fe){C.remove();return}var yr=0,br=0;if(t.align!=="left"&&(yr=(te-Le)*(t.align==="center"?.5:1)),t.valign!=="top"&&(br=(ke-pe)*(t.valign==="middle"?.5:1)),be)ae.select("svg").attr({x:P+yr-1,y:P+br}).call(Pg.setClipUrl,B?x:null,e);else{var Ut=P+br-Ce.top,Ie=P+yr-Ce.left;j.call(qU.positionText,Ie,Ut).call(Pg.setClipUrl,B?x:null,e)}F.select("rect").call(Pg.setRect,P,P,te,ke),A.call(Pg.setRect,S/2,S/2,Ee-S,Me-S),C.call(Pg.setTranslate,Math.round(b.x.text-Ee/2),Math.round(b.y.text-Me/2)),E.attr({transform:"rotate("+v+","+b.x.text+","+b.y.text+")"});var xe=function(Re,De){k.selectAll(".annotation-arrow-g").remove();var ct=b.x.head,ge=b.y.head,fe=b.x.tail+Re,de=b.y.tail+De,dt=b.x.text+Re,It=b.y.text+De,Pt=__.rotationXYMatrix(v,dt,It),rr=__.apply2DTransform(Pt),Hr=__.apply2DTransform2(Pt),Dr=+A.attr("width"),Mr=+A.attr("height"),Fr=dt-.5*Dr,di=Fr+Dr,Di=It-.5*Mr,Ii=Di+Mr,Ci=[[Fr,Di,Fr,Ii],[Fr,Ii,di,Ii],[di,Ii,di,Di],[di,Di,Fr,Di]].map(Hr);if(!Ci.reduce(function(Ir,Gr){return Ir^!!__.segmentsIntersect(ct,ge,ct+1e6,ge+1e6,Gr[0],Gr[1],Gr[2],Gr[3])},!1)){Ci.forEach(function(Ir){var Gr=__.segmentsIntersect(fe,de,ct,ge,Ir[0],Ir[1],Ir[2],Ir[3]);Gr&&(fe=Gr.x,de=Gr.y)});var nn=t.arrowwidth,ii=t.arrowcolor,wi=t.arrowside,Gi=k.append("g").style({opacity:Zb.opacity(ii)}).classed("annotation-arrow-g",!0),Bt=Gi.append("path").attr("d","M"+fe+","+de+"L"+ct+","+ge).style("stroke-width",nn+"px").call(Zb.stroke,Zb.rgb(ii));if(V0t(Bt,wi,t),u.annotationPosition&&Bt.node().parentNode&&!n){var yt=ct,Vt=ge;if(t.standoff){var Wt=Math.sqrt(Math.pow(ct-fe,2)+Math.pow(ge-de,2));yt+=t.standoff*(fe-ct)/Wt,Vt+=t.standoff*(de-ge)/Wt}var _r=Gi.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(fe-yt)+","+(de-Vt),transform:OU(yt,Vt)}).style("stroke-width",nn+6+"px").call(Zb.stroke,"rgba(0,0,0,0)").call(Zb.fill,"rgba(0,0,0,0)"),Lr,Ur;rE.init({element:_r.node(),gd:e,prepFn:function(){var Ir=Pg.getTranslate(C);Lr=Ir.x,Ur=Ir.y,i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0)},moveFn:function(Ir,Gr){var jr=rr(Lr,Ur),yi=jr[0]+Ir,Ei=jr[1]+Gr;C.call(Pg.setTranslate,yi,Ei),d("x",g_(i,Ir,"x",s,t)),d("y",g_(a,Gr,"y",s,t)),t.axref===t.xref&&d("ax",g_(i,Ir,"ax",s,t)),t.ayref===t.yref&&d("ay",g_(a,Gr,"ay",s,t)),Gi.attr("transform",OU(Ir,Gr)),E.attr({transform:"rotate("+v+","+yi+","+Ei+")"})},doneFn:function(){BU.call("_guiRelayout",e,p());var Ir=document.querySelector(".js-notes-box-panel");Ir&&Ir.redraw(Ir.selectedObj)}})}}};if(t.showarrow&&xe(0,0),T){var Oe;rE.init({element:C.node(),gd:e,prepFn:function(){Oe=E.attr("transform")},moveFn:function(Re,De){var ct="pointer";if(t.showarrow)t.axref===t.xref?d("ax",g_(i,Re,"ax",s,t)):d("ax",t.ax+Re),t.ayref===t.yref?d("ay",g_(a,De,"ay",s.w,t)):d("ay",t.ay+De),xe(Re,De);else{if(n)return;var ge,fe;if(i)ge=g_(i,Re,"x",s,t);else{var de=t._xsize/s.w,dt=t.x+(t._xshift-t.xshift)/s.w-de/2;ge=rE.align(dt+Re/s.w,de,0,1,t.xanchor)}if(a)fe=g_(a,De,"y",s,t);else{var It=t._ysize/s.h,Pt=t.y-(t._yshift+t.yshift)/s.h-It/2;fe=rE.align(Pt-De/s.h,It,0,1,t.yanchor)}d("x",ge),d("y",fe),(!i||!a)&&(ct=rE.getCursor(i?.5:ge,a?.5:fe,t.xanchor,t.yanchor))}E.attr({transform:OU(Re,De)+Oe}),NU(C,ct)},clickFn:function(Re,De){t.captureevents&&e.emit("plotly_clickannotation",_(De))},doneFn:function(){NU(C),BU.call("_guiRelayout",e,p());var Re=document.querySelector(".js-notes-box-panel");Re&&Re.redraw(Re.selectedObj)}})}}u.annotationText?j.call(qU.makeEditable,{delegate:C,gd:e}).call(H).on("edit",function(W){t.text=W,this.call(H),d("text",W),i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0),BU.call("_guiRelayout",e,p())}):j.call(H)}});var Vve=Te((jsr,Uve)=>{"use strict";var Bve=ei(),H0t=$l(),Ove=Pf().arrayEditor;Uve.exports={hasClickToShow:W0t,onClick:j0t};function W0t(e,t){var r=Nve(e,t);return r.on.length>0||r.explicitOff.length>0}function j0t(e,t){var r=Nve(e,t),n=r.on,i=r.off.concat(r.explicitOff),a={},o=e._fullLayout.annotations,s,u;if(n.length||i.length){for(s=0;s{"use strict";var UU=ei(),uA=jl();Gve.exports=function(t,r,n,i){i("opacity");var a=i("bgcolor"),o=i("bordercolor"),s=uA.opacity(o);i("borderpad");var u=i("borderwidth"),l=i("showarrow");i("text",l?" ":n._dfltTitle.annotation),i("textangle"),UU.coerceFont(i,"font",n.font),i("width"),i("align");var f=i("height");if(f&&i("valign"),l){var c=i("arrowside"),h,d;c.indexOf("end")!==-1&&(h=i("arrowhead"),d=i("arrowsize")),c.indexOf("start")!==-1&&(i("startarrowhead",h),i("startarrowsize",d)),i("arrowcolor",s?r.bordercolor:uA.defaultLine),i("arrowwidth",(s&&u||1)*2),i("standoff"),i("startstandoff")}var p=i("hovertext"),x=n.hoverlabel||{};if(p){var b=i("hoverlabel.bgcolor",x.bgcolor||(uA.opacity(a)?uA.rgb(a):uA.defaultLine)),v=i("hoverlabel.bordercolor",x.bordercolor||uA.contrast(b)),k=UU.extendFlat({},x.font);k.color||(k.color=v),UU.coerceFont(i,"hoverlabel.font",k)}i("captureevents",!!p)}});var Wve=Te((Zsr,Hve)=>{"use strict";var GU=ei(),Yb=wu(),X0t=Jd(),Z0t=VU(),Y0t=Nb();Hve.exports=function(t,r){X0t(t,r,{name:"annotations",handleItemDefaults:K0t})};function K0t(e,t,r){function n(E,T){return GU.coerce(e,t,Y0t,E,T)}var i=n("visible"),a=n("clicktoshow");if(i||a){Z0t(e,t,r,n);for(var o=t.showarrow,s=["x","y"],u=[-10,-30],l={_fullLayout:r},f=0;f<2;f++){var c=s[f],h=Yb.coerceRef(e,t,l,c,"","paper");if(h!=="paper"){var d=Yb.getFromId(l,h);d._annIndices.push(t._index)}if(Yb.coercePosition(t,l,n,h,c,.5),o){var p="a"+c,x=Yb.coerceRef(e,t,l,p,"pixel",["pixel","paper"]);x!=="pixel"&&x!==h&&(x=t[p]="pixel");var b=x==="pixel"?u[f]:.4;Yb.coercePosition(t,l,n,x,p,b)}n(c+"anchor"),n(c+"shift")}if(GU.noneOrAll(e,t,["x","y"]),o&&GU.noneOrAll(e,t,["ax","ay"]),a){var v=n("xclick"),k=n("yclick");t._xclick=v===void 0?t.x:Yb.cleanPosition(v,l,t.xref),t._yclick=k===void 0?t.y:Yb.cleanPosition(k,l,t.yref)}}}});var Zve=Te((Ysr,Xve)=>{"use strict";var HU=ei(),Kb=wu(),J0t=dI().draw;Xve.exports=function(t){var r=t._fullLayout,n=HU.filterVisible(r.annotations);if(n.length&&t._fullData.length)return HU.syncOrAsync([J0t,$0t],t)};function $0t(e){var t=e._fullLayout;HU.filterVisible(t.annotations).forEach(function(r){var n=Kb.getFromId(e,r.xref),i=Kb.getFromId(e,r.yref),a=Kb.getRefType(r.xref),o=Kb.getRefType(r.yref);r._extremes={},a==="range"&&jve(r,n),o==="range"&&jve(r,i)})}function jve(e,t){var r=t._id,n=r.charAt(0),i=e[n],a=e["a"+n],o=e[n+"ref"],s=e["a"+n+"ref"],u=e["_"+n+"padplus"],l=e["_"+n+"padminus"],f={x:1,y:-1}[n]*e[n+"shift"],c=3*e.arrowsize*e.arrowwidth||0,h=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,x=p+f,b=p-f,v;if(s===o){var k=Kb.findExtremes(t,[t.r2c(i)],{ppadplus:h,ppadminus:d}),E=Kb.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(u,x),ppadminus:Math.max(l,b)});v={min:[k.min[0],E.min[0]],max:[k.max[0],E.max[0]]}}else x=a?x+a:x,b=a?b-a:b,v=Kb.findExtremes(t,[t.r2c(i)],{ppadplus:Math.max(u,h,x),ppadminus:Math.max(l,d,b)});e._extremes[r]=v}});var Kve=Te((Ksr,Yve)=>{"use strict";var Q0t=ku(),emt=pL();Yve.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(!(a||o))return;var s=t._fullLayout.annotations,u=r._id.charAt(0),l,f;function c(d){var p=l[d],x=null;a?x=emt(p,r.range):x=Math.pow(10,p),Q0t(x)||(x=null),i(f+d,x)}for(var h=0;h{"use strict";var WU=dI(),Jve=Vve();$ve.exports={moduleType:"component",name:"annotations",layoutAttributes:Nb(),supplyLayoutDefaults:Wve(),includeBasePlot:F5()("annotations"),calcAutorange:Zve(),draw:WU.draw,drawOne:WU.drawOne,drawRaw:WU.drawRaw,hasClickToShow:Jve.hasClickToShow,onClick:Jve.onClick,convertCoords:Kve()}});var pI=Te(($sr,e0e)=>{"use strict";var Pc=Nb(),tmt=Sc().overrideAll,rmt=Pf().templatedArray;e0e.exports=tmt(rmt("annotation",{visible:Pc.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Pc.xanchor,xshift:Pc.xshift,yanchor:Pc.yanchor,yshift:Pc.yshift,text:Pc.text,textangle:Pc.textangle,font:Pc.font,width:Pc.width,height:Pc.height,opacity:Pc.opacity,align:Pc.align,valign:Pc.valign,bgcolor:Pc.bgcolor,bordercolor:Pc.bordercolor,borderpad:Pc.borderpad,borderwidth:Pc.borderwidth,showarrow:Pc.showarrow,arrowcolor:Pc.arrowcolor,arrowhead:Pc.arrowhead,startarrowhead:Pc.startarrowhead,arrowside:Pc.arrowside,arrowsize:Pc.arrowsize,startarrowsize:Pc.startarrowsize,arrowwidth:Pc.arrowwidth,standoff:Pc.standoff,startstandoff:Pc.startstandoff,hovertext:Pc.hovertext,hoverlabel:Pc.hoverlabel,captureevents:Pc.captureevents}),"calc","from-root")});var r0e=Te((Qsr,t0e)=>{"use strict";var jU=ei(),imt=wu(),nmt=Jd(),amt=VU(),omt=pI();t0e.exports=function(t,r,n){nmt(t,r,{name:"annotations",handleItemDefaults:smt,fullLayout:n.fullLayout})};function smt(e,t,r,n){function i(s,u){return jU.coerce(e,t,omt,s,u)}function a(s){var u=s+"axis",l={_fullLayout:{}};return l._fullLayout[u]=r[u],imt.coercePosition(t,l,i,s,s,.5)}var o=i("visible");o&&(amt(e,t,n.fullLayout,i),a("x"),a("y"),a("z"),jU.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",i("xanchor"),i("yanchor"),i("xshift"),i("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",i("ax",-10),i("ay",-30),jU.noneOrAll(e,t,["ax","ay"])))}});var o0e=Te((elr,a0e)=>{"use strict";var i0e=ei(),n0e=wu();a0e.exports=function(t){for(var r=t.fullSceneLayout,n=r.annotations,i=0;i{"use strict";function XU(e,t){var r=[0,0,0,0],n,i;for(n=0;n<4;++n)for(i=0;i<4;++i)r[i]+=e[4*n+i]*t[n];return r}function umt(e,t){var r=XU(e.projection,XU(e.view,XU(e.model,[t[0],t[1],t[2],1])));return r}s0e.exports=umt});var u0e=Te((rlr,l0e)=>{"use strict";var fmt=dI().drawRaw,cmt=ZU(),hmt=["x","y","z"];l0e.exports=function(t){for(var r=t.fullSceneLayout,n=t.dataScale,i=r.annotations,a=0;a1){s=!0;break}}s?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+a+'"]').remove():(o._pdata=cmt(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*n[0],r.yaxis.r2l(o.y)*n[1],r.zaxis.r2l(o.z)*n[2]]),fmt(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var h0e=Te((ilr,c0e)=>{"use strict";var dmt=$l(),f0e=ei();c0e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:pI()}}},layoutAttributes:pI(),handleDefaults:r0e(),includeBasePlot:pmt,convert:o0e(),draw:u0e()};function pmt(e,t){var r=dmt.subplotsRegistry.gl3d;if(r)for(var n=r.attrRegex,i=Object.keys(e),a=0;a{"use strict";var d0e=Nb(),p0e=gc(),v0e=Zc().line,vmt=Id().dash,Fm=Su().extendFlat,mmt=Pf().templatedArray,nlr=D5(),fA=Vf(),ymt=Nu().shapeTexttemplateAttrs,gmt=AL();m0e.exports=mmt("shape",{visible:Fm({},fA.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Fm({},fA.legend,{editType:"calc+arraydraw"}),legendgroup:Fm({},fA.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Fm({},fA.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:p0e({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Fm({},fA.legendrank,{editType:"calc+arraydraw"}),legendwidth:Fm({},fA.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Fm({},d0e.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Fm({},d0e.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Fm({},v0e.color,{editType:"arraydraw"}),width:Fm({},v0e.width,{editType:"calc+arraydraw"}),dash:Fm({},vmt,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:ymt({},{keys:Object.keys(gmt)}),font:p0e({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var _0e=Te((olr,g0e)=>{"use strict";var nE=ei(),cA=wu(),_mt=Jd(),xmt=YU(),y0e=h_();g0e.exports=function(t,r){_mt(t,r,{name:"shapes",handleItemDefaults:wmt})};function bmt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function wmt(e,t,r){function n(W,re){return nE.coerce(e,t,xmt,W,re)}t._isShape=!0;var i=n("visible");if(i){var a=n("showlegend");a&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),nE.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var o=n("path"),s=o?"path":"rect",u=n("type",s),l=u!=="path";l&&delete t.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var f=n("line.width");f&&(n("line.color"),n("line.dash"));for(var c=n("xsizemode"),h=n("ysizemode"),d=["x","y"],p=0;p<2;p++){var x=d[p],b=x+"anchor",v=x==="x"?c:h,k={_fullLayout:r},E,T,L,_=cA.coerceRef(e,t,k,x,void 0,"paper"),C=cA.getRefType(_);if(C==="range"?(E=cA.getFromId(k,_),E._shapeIndices.push(t._index),L=y0e.rangeToShapePosition(E),T=y0e.shapePositionToRange(E),(E.type==="category"||E.type==="multicategory")&&(n(x+"0shift"),n(x+"1shift"))):T=L=nE.identity,l){var S=.25,m=.75,P=x+"0",A=x+"1",B=e[P],F=e[A];e[P]=T(e[P],!0),e[A]=T(e[A],!0),v==="pixel"?(n(P,0),n(A,10)):(cA.coercePosition(t,k,n,_,P,S),cA.coercePosition(t,k,n,_,A,m)),t[P]=L(t[P]),t[A]=L(t[A]),e[P]=B,e[A]=F}if(v==="pixel"){var U=e[b];e[b]=T(e[b],!0),cA.coercePosition(t,k,n,_,b,.25),t[b]=L(t[b]),e[b]=U}}l&&nE.noneOrAll(e,t,["x0","x1","y0","y1"]);var G=u==="line",j,H;if(l&&(j=n("label.texttemplate")),j||(H=n("label.text")),H||j){n("label.textangle");var N=n("label.textposition",G?"middle":"middle center");n("label.xanchor"),n("label.yanchor",bmt(G,N)),n("label.padding"),nE.coerceFont(n,"label.font",r.font)}}}});var w0e=Te((slr,b0e)=>{"use strict";var Amt=jl(),x0e=ei();function Tmt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}b0e.exports=function(t,r,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),x0e.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var i=n("newshape.line.width");if(i){var a=(t||{}).plot_bgcolor||"#FFF";n("newshape.line.color",Amt.contrast(a)),n("newshape.line.dash")}var o=t.dragmode==="drawline",s=n("newshape.label.text"),u=n("newshape.label.texttemplate");if(s||u){n("newshape.label.textangle");var l=n("newshape.label.textposition",o?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",Tmt(o,l)),n("newshape.label.padding"),x0e.coerceFont(n,"newshape.label.font",r.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var E0e=Te((llr,M0e)=>{"use strict";var KU=ei(),hA=wu(),dA=p5(),T0e=h_();M0e.exports=function(t){var r=t._fullLayout,n=KU.filterVisible(r.shapes);if(!(!n.length||!t._fullData.length))for(var i=0;i0?l+o:o;return{ppad:o,ppadplus:s?c:h,ppadminus:s?h:c}}else return{ppad:o}}function A0e(e,t,r){var n=e._id.charAt(0)==="x"?"x":"y",i=e.type==="category"||e.type==="multicategory",a,o,s=0,u=0,l=i?e.r2c:e.d2c,f=t[n+"sizemode"]==="scaled";if(f?(a=t[n+"0"],o=t[n+"1"],i&&(s=t[n+"0shift"],u=t[n+"1shift"])):(a=t[n+"anchor"],o=t[n+"anchor"]),a!==void 0)return[l(a)+s,l(o)+u];if(t.path){var c=1/0,h=-1/0,d=t.path.match(dA.segmentRE),p,x,b,v,k;for(e.type==="date"&&(l=T0e.decodeDate(l)),p=0;ph&&(h=k)));if(h>=c)return[c,h]}}});var L0e=Te((ulr,C0e)=>{"use strict";var k0e=nz();C0e.exports={moduleType:"component",name:"shapes",layoutAttributes:YU(),supplyLayoutDefaults:_0e(),supplyDrawNewShapeDefaults:w0e(),includeBasePlot:F5()("shapes"),calcAutorange:E0e(),draw:k0e.draw,drawOne:k0e.drawOne}});var JU=Te((clr,z0e)=>{"use strict";var P0e=dd(),Emt=Pf().templatedArray,flr=D5();z0e.exports=Emt("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",P0e.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",P0e.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var R0e=Te((hlr,I0e)=>{"use strict";var kmt=ei(),$U=wu(),Cmt=Jd(),Lmt=JU(),Pmt="images";I0e.exports=function(t,r){var n={name:Pmt,handleItemDefaults:zmt};Cmt(t,r,n)};function zmt(e,t,r){function n(h,d){return kmt.coerce(e,t,Lmt,h,d)}var i=n("source"),a=n("visible",!!i);if(!a)return t;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var o={_fullLayout:r},s=["x","y"],u=0;u<2;u++){var l=s[u],f=$U.coerceRef(e,t,o,l,"paper",void 0);if(f!=="paper"){var c=$U.getFromId(o,f);c._imgIndices.push(t._index)}$U.coercePosition(t,o,n,f,l,0)}return t}});var O0e=Te((dlr,B0e)=>{"use strict";var D0e=Jl(),Imt=Mu(),pA=wu(),F0e=Wc(),Rmt=jv();B0e.exports=function(t){var r=t._fullLayout,n=[],i={},a=[],o,s;for(s=0;s{"use strict";var q0e=ku(),Dmt=pL();N0e.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(a||o){for(var s=t._fullLayout.images,u=r._id.charAt(0),l,f,c=0;c{"use strict";V0e.exports={moduleType:"component",name:"images",layoutAttributes:JU(),supplyLayoutDefaults:R0e(),includeBasePlot:F5()("images"),draw:O0e(),convertCoords:U0e()}});var vI=Te((mlr,H0e)=>{"use strict";H0e.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var QU=Te((ylr,j0e)=>{"use strict";var Fmt=gc(),Bmt=Ih(),Omt=Su().extendFlat,qmt=Sc().overrideAll,Nmt=TL(),W0e=Pf().templatedArray,Umt=W0e("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});j0e.exports=qmt(W0e("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:Umt,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:Omt(Nmt({editType:"arraydraw"}),{}),font:Fmt({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Bmt.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var K0e=Te((glr,Y0e)=>{"use strict";var mI=ei(),X0e=Jd(),Z0e=QU(),Vmt=vI(),Gmt=Vmt.name,Hmt=Z0e.buttons;Y0e.exports=function(t,r){var n={name:Gmt,handleItemDefaults:Wmt};X0e(t,r,n)};function Wmt(e,t,r){function n(o,s){return mI.coerce(e,t,Z0e,o,s)}var i=X0e(e,t,{name:"buttons",handleItemDefaults:jmt}),a=n("visible",i.length>0);a&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),mI.noneOrAll(e,t,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),mI.coerceFont(n,"font",r.font),n("bgcolor",r.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function jmt(e,t){function r(i,a){return mI.coerce(e,t,Hmt,i,a)}var n=r("visible",e.method==="skip"||Array.isArray(e.args));n&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var Q0e=Te((_lr,$0e)=>{"use strict";$0e.exports=Qc;var Bm=Jl(),J0e=jl(),vA=Mu(),yI=ei();function Qc(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Qc.barWidth=2;Qc.barLength=20;Qc.barRadius=2;Qc.barPad=1;Qc.barColor="#808BA4";Qc.prototype.enable=function(t,r,n){var i=this.gd._fullLayout,a=i.width,o=i.height;this.position=t;var s=this.position.l,u=this.position.w,l=this.position.t,f=this.position.h,c=this.position.direction,h=c==="down",d=c==="left",p=c==="right",x=c==="up",b=u,v=f,k,E,T,L;!h&&!d&&!p&&!x&&(this.position.direction="down",h=!0);var _=h||x;_?(k=s,E=k+b,h?(T=l,L=Math.min(T+v,o),v=L-T):(L=l+v,T=Math.max(L-v,0),v=L-T)):(T=l,L=T+v,d?(E=s+b,k=Math.max(E-b,0),b=E-k):(k=s,E=Math.min(k+b,a),b=E-k)),this._box={l:k,t:T,w:b,h:v};var C=u>b,S=Qc.barLength+2*Qc.barPad,m=Qc.barWidth+2*Qc.barPad,P=s,A=l+f;A+m>o&&(A=o-m);var B=this.container.selectAll("rect.scrollbar-horizontal").data(C?[0]:[]);B.exit().on(".drag",null).remove(),B.enter().append("rect").classed("scrollbar-horizontal",!0).call(J0e.fill,Qc.barColor),C?(this.hbar=B.attr({rx:Qc.barRadius,ry:Qc.barRadius,x:P,y:A,width:S,height:m}),this._hbarXMin=P+S/2,this._hbarTranslateMax=b-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var F=f>v,U=Qc.barWidth+2*Qc.barPad,G=Qc.barLength+2*Qc.barPad,j=s+u,H=l;j+U>a&&(j=a-U);var N=this.container.selectAll("rect.scrollbar-vertical").data(F?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-vertical",!0).call(J0e.fill,Qc.barColor),F?(this.vbar=N.attr({rx:Qc.barRadius,ry:Qc.barRadius,x:j,y:H,width:U,height:G}),this._vbarYMin=H+G/2,this._vbarTranslateMax=v-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var W=this.id,re=k-.5,ae=F?E+U+.5:E+.5,be=T-.5,Ce=C?L+m+.5:L+.5,Le=i._topdefs.selectAll("#"+W).data(C||F?[0]:[]);if(Le.exit().remove(),Le.enter().append("clipPath").attr("id",W).append("rect"),C||F?(this._clipRect=Le.select("rect").attr({x:Math.floor(re),y:Math.floor(be),width:Math.ceil(ae)-Math.floor(re),height:Math.ceil(Ce)-Math.floor(be)}),this.container.call(vA.setClipUrl,W,this.gd),this.bg.attr({x:s,y:l,width:u,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(vA.setClipUrl,null),delete this._clipRect),C||F){var pe=Bm.behavior.drag().on("dragstart",function(){Bm.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(pe);var te=Bm.behavior.drag().on("dragstart",function(){Bm.event.sourceEvent.preventDefault(),Bm.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));C&&this.hbar.on(".drag",null).call(te),F&&this.vbar.on(".drag",null).call(te)}this.setTranslate(r,n)};Qc.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(vA.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Qc.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Bm.event.dx),this.vbar&&(r-=Bm.event.dy),this.setTranslate(t,r)};Qc.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Bm.event.deltaY),this.vbar&&(r+=Bm.event.deltaY),this.setTranslate(t,r)};Qc.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var n=t+this._hbarXMin,i=n+this._hbarTranslateMax,a=yI.constrain(Bm.event.x,n,i),o=(a-n)/(i-n),s=this.position.w-this._box.w;t=o*s}if(this.vbar){var u=r+this._vbarYMin,l=u+this._vbarTranslateMax,f=yI.constrain(Bm.event.y,u,l),c=(f-u)/(l-u),h=this.position.h-this._box.h;r=c*h}this.setTranslate(t,r)};Qc.prototype.setTranslate=function(t,r){var n=this.position.w-this._box.w,i=this.position.h-this._box.h;if(t=yI.constrain(t||0,0,n),r=yI.constrain(r||0,0,i),this.translateX=t,this.translateY=r,this.container.call(vA.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var a=t/n;this.hbar.call(vA.setTranslate,t+a*this._hbarTranslateMax,r)}if(this.vbar){var o=r/i;this.vbar.call(vA.setTranslate,t,r+o*this._vbarTranslateMax)}}});var ume=Te((xlr,lme)=>{"use strict";var mA=Jl(),aE=Cc(),oE=jl(),yA=Mu(),e0=ei(),gI=Zf(),Xmt=Pf().arrayEditor,tme=Qh().LINE_SPACING,Vu=vI(),Zmt=Q0e();lme.exports=function(t){var r=t._fullLayout,n=e0.filterVisible(r[Vu.name]);function i(h){aE.autoMargin(t,ome(h))}var a=r._menulayer.selectAll("g."+Vu.containerClassName).data(n.length>0?[0]:[]);if(a.enter().append("g").classed(Vu.containerClassName,!0).style("cursor","pointer"),a.exit().each(function(){mA.select(this).selectAll("g."+Vu.headerGroupClassName).each(i)}).remove(),n.length!==0){var o=a.selectAll("g."+Vu.headerGroupClassName).data(n,Ymt);o.enter().append("g").classed(Vu.headerGroupClassName,!0);for(var s=e0.ensureSingle(a,"g",Vu.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),u=0;u{"use strict";var ryt=vI();fme.exports={moduleType:"component",name:ryt.name,layoutAttributes:QU(),supplyLayoutDefaults:K0e(),draw:ume()}});var lE=Te((wlr,hme)=>{"use strict";hme.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var iV=Te((Alr,vme)=>{"use strict";var dme=gc(),iyt=TL(),nyt=Su().extendDeepAll,ayt=Sc().overrideAll,oyt=OM(),pme=Pf().templatedArray,Jb=lE(),syt=pme("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});vme.exports=ayt(pme("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:syt,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:nyt(iyt({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:oyt.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:dme({})},font:dme({}),activebgcolor:{valType:"color",dflt:Jb.gripBgActiveColor},bgcolor:{valType:"color",dflt:Jb.railBgColor},bordercolor:{valType:"color",dflt:Jb.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Jb.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Jb.tickLength},tickcolor:{valType:"color",dflt:Jb.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Jb.minorTickLength}}),"arraydraw","from-root")});var _me=Te((Tlr,gme)=>{"use strict";var gA=ei(),mme=Jd(),yme=iV(),lyt=lE(),uyt=lyt.name,fyt=yme.steps;gme.exports=function(t,r){mme(t,r,{name:uyt,handleItemDefaults:cyt})};function cyt(e,t,r){function n(c,h){return gA.coerce(e,t,yme,c,h)}for(var i=mme(e,t,{name:"steps",handleItemDefaults:hyt}),a=0,o=0;o{"use strict";var Om=Jl(),_I=Cc(),x_=jl(),qm=Mu(),t0=ei(),dyt=t0.strTranslate,uE=Zf(),pyt=Pf().arrayEditor,pf=lE(),oV=Qh(),wme=oV.LINE_SPACING,nV=oV.FROM_TL,aV=oV.FROM_BR;kme.exports=function(t){var r=t._context.staticPlot,n=t._fullLayout,i=vyt(n,t),a=n._infolayer.selectAll("g."+pf.containerClassName).data(i.length>0?[0]:[]);a.enter().append("g").classed(pf.containerClassName,!0).style("cursor",r?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),_I.autoMargin(t,Ame(f))}if(a.exit().each(function(){Om.select(this).selectAll("g."+pf.groupClassName).each(o)}).remove(),i.length!==0){var s=a.selectAll("g."+pf.groupClassName).data(i,myt);s.enter().append("g").classed(pf.groupClassName,!0),s.exit().each(o).remove();for(var u=0;u0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",dyt(o-pf.gripWidth*.5,t._dims.currentValueTotalHeight))}}function sV(e,t){var r=e._dims;return r.inputAreaStart+pf.stepInset+(r.inputAreaLength-2*pf.stepInset)*Math.min(1,Math.max(0,t))}function bme(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-pf.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*pf.stepInset-2*r.inputAreaStart)))}function Ayt(e,t,r){var n=r._dims,i=t0.ensureSingle(e,"rect",pf.railTouchRectClass,function(a){a.call(Mme,t,e,r).style("pointer-events","all")});i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,pf.tickOffset+r.ticklen+n.labelHeight)}).call(x_.fill,r.bgcolor).attr("opacity",0),qm.setTranslate(i,0,n.currentValueTotalHeight)}function Tyt(e,t){var r=t._dims,n=r.inputAreaLength-pf.railInset*2,i=t0.ensureSingle(e,"rect",pf.railRectClass);i.attr({width:n,height:pf.railWidth,rx:pf.railRadius,ry:pf.railRadius,"shape-rendering":"crispEdges"}).call(x_.stroke,t.bordercolor).call(x_.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),qm.setTranslate(i,pf.railInset,(r.inputAreaWidth-pf.railWidth)*.5+r.currentValueTotalHeight)}});var Pme=Te((Mlr,Lme)=>{"use strict";var Syt=lE();Lme.exports={moduleType:"component",name:Syt.name,layoutAttributes:iV(),supplyLayoutDefaults:_me(),draw:Cme()}});var bI=Te((Elr,Ime)=>{"use strict";var zme=Ih();Ime.exports={bgcolor:{valType:"color",dflt:zme.background,editType:"plot"},bordercolor:{valType:"color",dflt:zme.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var lV=Te((klr,Rme)=>{"use strict";Rme.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var wI=Te((Clr,Dme)=>{"use strict";Dme.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var Ome=Te(TI=>{"use strict";var Myt=Wc(),Eyt=Zf(),Fme=wI(),kyt=Qh().LINE_SPACING,AI=Fme.name;function Bme(e){var t=e&&e[AI];return t&&t.visible}TI.isVisible=Bme;TI.makeData=function(e){for(var t=Myt.list({_fullLayout:e},"x",!0),r=e.margin,n=[],i=0;i{"use strict";var SI=ei(),qme=Pf(),Nme=Wc(),Cyt=bI(),Lyt=lV();Ume.exports=function(t,r,n){var i=t[n],a=r[n];if(!(i.rangeslider||r._requestRangeslider[a._id]))return;SI.isPlainObject(i.rangeslider)||(i.rangeslider={});var o=i.rangeslider,s=qme.newContainer(a,"rangeslider");function u(L,_){return SI.coerce(o,s,Cyt,L,_)}var l,f;function c(L,_){return SI.coerce(l,f,Lyt,L,_)}var h=u("visible");if(h){u("bgcolor",r.plot_bgcolor),u("bordercolor"),u("borderwidth"),u("thickness"),u("autorange",!a.isValidRange(o.range)),u("range");var d=r._subplots;if(d)for(var p=d.cartesian.filter(function(L){return L.substr(0,L.indexOf("y"))===Nme.name2id(n)}).map(function(L){return L.substr(L.indexOf("y"),L.length)}),x=SI.simpleMap(p,Nme.id2name),b=0;b{"use strict";var Pyt=Wc().list,zyt=wm().getAutoRange,Iyt=wI();Gme.exports=function(t){for(var r=Pyt(t,"x",!0),n=0;n{"use strict";var MI=Jl(),Ryt=$l(),Dyt=Cc(),dh=ei(),EI=dh.strTranslate,jme=Mu(),b_=jl(),Fyt=Mb(),Byt=Ah(),uV=Wc(),Oyt=gp(),qyt=Am(),Mf=wI();Xme.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,n=0;n=N.max)j=A[H+1];else if(G=N.pmax)j=A[H+1];else if(G0?e.touches[0].clientX:0}function Nyt(e,t,r,n){if(t._context.staticPlot)return;var i=e.select("rect."+Mf.slideBoxClassName).node(),a=e.select("rect."+Mf.grabAreaMinClassName).node(),o=e.select("rect."+Mf.grabAreaMaxClassName).node();function s(){var u=MI.event,l=u.target,f=Wme(u),c=f-e.node().getBoundingClientRect().left,h=n.d2p(r._rl[0]),d=n.d2p(r._rl[1]),p=Oyt.coverSlip();this.addEventListener("touchmove",x),this.addEventListener("touchend",b),p.addEventListener("mousemove",x),p.addEventListener("mouseup",b);function x(v){var k=Wme(v),E=+k-f,T,L,_;switch(l){case i:if(_="ew-resize",h+E>r._length||d+E<0)return;T=h+E,L=d+E;break;case a:if(_="col-resize",h+E>r._length)return;T=h+E,L=d;break;case o:if(_="col-resize",d+E<0)return;T=h,L=d+E;break;default:_="ew-resize",T=c,L=c+E;break}if(L{"use strict";var Kyt=ei(),Jyt=bI(),$yt=lV(),fV=Ome();Yme.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Kyt.extendFlat({},Jyt,{yaxis:$yt})}}},layoutAttributes:bI(),handleDefaults:Vme(),calcAutorange:Hme(),draw:Zme(),isVisible:fV.isVisible,makeData:fV.makeData,autoMarginOpts:fV.autoMarginOpts}});var kI=Te((Dlr,$me)=>{"use strict";var Qyt=gc(),Jme=Ih(),egt=Pf().templatedArray,tgt=egt("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});$me.exports={visible:{valType:"boolean",editType:"plot"},buttons:tgt,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:Qyt({editType:"plot"}),bgcolor:{valType:"color",dflt:Jme.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:Jme.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var cV=Te((Flr,Qme)=>{"use strict";Qme.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var rye=Te((Blr,tye)=>{"use strict";var CI=ei(),rgt=jl(),igt=Pf(),ngt=Jd(),eye=kI(),hV=cV();tye.exports=function(t,r,n,i,a){var o=t.rangeselector||{},s=igt.newContainer(r,"rangeselector");function u(d,p){return CI.coerce(o,s,eye,d,p)}var l=ngt(o,s,{name:"buttons",handleItemDefaults:agt,calendar:a}),f=u("visible",l.length>0);if(f){var c=ogt(r,n,i);u("x",c[0]),u("y",c[1]),CI.noneOrAll(t,r,["x","y"]),u("xanchor"),u("yanchor"),CI.coerceFont(u,"font",n.font);var h=u("bgcolor");u("activecolor",rgt.contrast(h,hV.lightAmount,hV.darkAmount)),u("bordercolor"),u("borderwidth")}};function agt(e,t,r,n){var i=n.calendar;function a(u,l){return CI.coerce(e,t,eye.buttons,u,l)}var o=a("visible");if(o){var s=a("step");s!=="all"&&(i&&i!=="gregorian"&&(s==="month"||s==="year")?t.stepmode="backward":a("stepmode"),a("count")),a("label")}}function ogt(e,t,r){for(var n=r.filter(function(s){return t[s].anchor===e._id}),i=0,a=0;a{"use strict";var sgt=M9(),lgt=ei().titleCase;iye.exports=function(t,r){var n=t._name,i={};if(r.step==="all")i[n+".autorange"]=!0;else{var a=ugt(t,r);i[n+".range[0]"]=a[0],i[n+".range[1]"]=a[1]}return i};function ugt(e,t){var r=e.range,n=new Date(e.r2l(r[1])),i=t.step,a=sgt["utc"+lgt(i)],o=t.count,s;switch(t.stepmode){case"backward":s=e.l2r(+a.offset(n,-o));break;case"todate":var u=a.offset(n,-o);s=e.l2r(+a.ceil(u));break}var l=r[1];return[s,l]}});var hye=Te((qlr,cye)=>{"use strict";var PI=Jl(),fgt=$l(),cgt=Cc(),aye=jl(),fye=Mu(),zg=ei(),oye=zg.strTranslate,LI=Zf(),hgt=Wc(),vV=Qh(),sye=vV.LINE_SPACING,lye=vV.FROM_TL,uye=vV.FROM_BR,pV=cV(),dgt=nye();cye.exports=function(t){var r=t._fullLayout,n=r._infolayer.selectAll(".rangeselector").data(pgt(t),vgt);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(i){var a=PI.select(this),o=i,s=o.rangeselector,u=a.selectAll("g.button").data(zg.filterVisible(s.buttons));u.enter().append("g").classed("button",!0),u.exit().remove(),u.each(function(l){var f=PI.select(this),c=dgt(o,l);l._isActive=mgt(o,l,c),f.call(dV,s,l),f.call(ggt,s,l,t),f.on("click",function(){t._dragged||fgt.call("_guiRelayout",t,c)}),f.on("mouseover",function(){l._isHovered=!0,f.call(dV,s,l)}),f.on("mouseout",function(){l._isHovered=!1,f.call(dV,s,l)})}),xgt(t,u,s,o._name,a)})};function pgt(e){for(var t=hgt.list(e,"x",!0),r=[],n=0;n{"use strict";dye.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:kI()}}},layoutAttributes:kI(),handleDefaults:rye(),draw:hye()}});var zc=Te(mV=>{"use strict";var vye=Su().extendFlat;mV.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",i=e.trace?"trace ":"subplot ",a=t.description?" "+t.description:"",o={x:vye({},r,{}),y:vye({},r,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};mV.defaults=function(e,t,r,n){var i=n&&n.x||[0,1],a=n&&n.y||[0,1],o=t.grid;if(o){var s=r("domain.column");s!==void 0&&(s{"use strict";var bgt=ei(),wgt=n3().counter,Agt=zc().attributes,mye=dd().idRegex,Tgt=Pf(),yV={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[wgt("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[mye.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[mye.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Agt({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function zI(e,t,r){var n=t[r+"axes"],i=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(n))return n;if(i.length)return i}function Sgt(e,t){var r=e.grid||{},n=zI(t,r,"x"),i=zI(t,r,"y");if(!e.grid&&!n&&!i)return;var a=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),o=Array.isArray(n),s=Array.isArray(i),u=o&&n!==r.xaxes&&s&&i!==r.yaxes,l,f;a?(l=r.subplots.length,f=r.subplots[0].length):(s&&(l=i.length),o&&(f=n.length));var c=Tgt.newContainer(t,"grid");function h(_,C){return bgt.coerce(r,c,yV,_,C)}var d=h("rows",l),p=h("columns",f);if(!(d*p>1)){delete t.grid;return}if(!a&&!o&&!s){var x=h("pattern")==="independent";x&&(a=!0)}c._hasSubplotGrid=a;var b=h("roworder"),v=b==="top to bottom",k=a?.2:.1,E=a?.3:.1,T,L;u&&t._splomGridDflt&&(T=t._splomGridDflt.xside,L=t._splomGridDflt.yside),c._domains={x:yye("x",h,k,T,p),y:yye("y",h,E,L,d,v)}}function yye(e,t,r,n,i,a){var o=t(e+"gap",r),s=t("domain."+e);t(e+"side",n);for(var u=new Array(i),l=s[0],f=(s[1]-l)/(i-o),c=f*(1-o),h=0;h{"use strict";xye.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var Aye=Te((Hlr,wye)=>{"use strict";var bye=ku(),Egt=$l(),kgt=ei(),Cgt=Pf(),Lgt=_V();wye.exports=function(e,t,r,n){var i="error_"+n.axis,a=Cgt.newContainer(t,i),o=e[i]||{};function s(p,x){return kgt.coerce(o,a,Lgt,p,x)}var u=o.array!==void 0||o.value!==void 0||o.type==="sqrt",l=s("visible",u);if(l!==!1){var f=s("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=s("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(s("array"),s("traceref"),c||(s("arrayminus"),s("tracerefminus"))):(f==="percent"||f==="constant")&&(s("value"),c||s("valueminus"));var h="copy_"+n.inherit+"style";if(n.inherit){var d=t["error_"+n.inherit];(d||{}).visible&&s(h,!(o.color||bye(o.thickness)||bye(o.width)))}(!n.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",Egt.traceIs(t,"gl3d")?0:4))}}});var xV=Te((Wlr,Sye)=>{"use strict";Sye.exports=function(t){var r=t.type,n=t.symmetric;if(r==="data"){var i=t.array||[];if(n)return function(l,f){var c=+i[f];return[c,c]};var a=t.arrayminus||[];return function(l,f){var c=+i[f],h=+a[f];return!isNaN(c)||!isNaN(h)?[h||0,c||0]:[NaN,NaN]}}else{var o=Tye(r,t.value),s=Tye(r,t.valueminus);return n||t.valueminus===void 0?function(l){var f=o(l);return[f,f]}:function(l){return[s(l),o(l)]}}};function Tye(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var kye=Te((jlr,Eye)=>{"use strict";var bV=ku(),Pgt=$l(),wV=wu(),zgt=ei(),Igt=xV();Eye.exports=function(t){for(var r=t.calcdata,n=0;n{"use strict";var Cye=Jl(),w_=ku(),Rgt=Mu(),Dgt=lc();Lye.exports=function(t,r,n,i){var a,o=n.xaxis,s=n.yaxis,u=i&&i.duration>0,l=t._context.staticPlot;r.each(function(f){var c=f[0].trace,h=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(k){return k.id});var x=Dgt.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var b=Cye.select(this).selectAll("g.errorbar").data(f,p);if(b.exit().remove(),!!f.length){h.visible||b.selectAll("path.xerror").remove(),d.visible||b.selectAll("path.yerror").remove(),b.style("opacity",1);var v=b.enter().append("g").classed("errorbar",!0);u&&v.style("opacity",0).transition().duration(i.duration).style("opacity",1),Rgt.setClipUrl(b,n.layerClipId,t),b.each(function(k){var E=Cye.select(this),T=Fgt(k,o,s);if(!(x&&!k.vis)){var L,_=E.select("path.yerror");if(d.visible&&w_(T.x)&&w_(T.yh)&&w_(T.ys)){var C=d.width;L="M"+(T.x-C)+","+T.yh+"h"+2*C+"m-"+C+",0V"+T.ys,T.noYS||(L+="m-"+C+",0h"+2*C),a=!_.size(),a?_=E.append("path").style("vector-effect",l?"none":"non-scaling-stroke").classed("yerror",!0):u&&(_=_.transition().duration(i.duration).ease(i.easing)),_.attr("d",L)}else _.remove();var S=E.select("path.xerror");if(h.visible&&w_(T.y)&&w_(T.xh)&&w_(T.xs)){var m=(h.copy_ystyle?d:h).width;L="M"+T.xh+","+(T.y-m)+"v"+2*m+"m0,-"+m+"H"+T.xs,T.noXS||(L+="m0,-"+m+"v"+2*m),a=!S.size(),a?S=E.append("path").style("vector-effect",l?"none":"non-scaling-stroke").classed("xerror",!0):u&&(S=S.transition().duration(i.duration).ease(i.easing)),S.attr("d",L)}else S.remove()}})}})};function Fgt(e,t,r){var n={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(n.yh=r.c2p(e.yh),n.ys=r.c2p(e.ys),w_(n.ys)||(n.noYS=!0,n.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=t.c2p(e.xh),n.xs=t.c2p(e.xs),w_(n.xs)||(n.noXS=!0,n.xs=t.c2p(e.xs,!0))),n}});var Rye=Te((Zlr,Iye)=>{"use strict";var Bgt=Jl(),zye=jl();Iye.exports=function(t){t.each(function(r){var n=r[0].trace,i=n.error_y||{},a=n.error_x||{},o=Bgt.select(this);o.selectAll("path.yerror").style("stroke-width",i.thickness+"px").call(zye.stroke,i.color),a.copy_ystyle&&(a=i),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(zye.stroke,a.color)})}});var Bye=Te((Ylr,Fye)=>{"use strict";var fE=ei(),Dye=Sc().overrideAll,cE=_V(),$b={error_x:fE.extendFlat({},cE),error_y:fE.extendFlat({},cE)};delete $b.error_x.copy_zstyle;delete $b.error_y.copy_zstyle;delete $b.error_y.copy_ystyle;var hE={error_x:fE.extendFlat({},cE),error_y:fE.extendFlat({},cE),error_z:fE.extendFlat({},cE)};delete hE.error_x.copy_ystyle;delete hE.error_y.copy_ystyle;delete hE.error_z.copy_ystyle;delete hE.error_z.copy_zstyle;Fye.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:$b,bar:$b,histogram:$b,scatter3d:Dye(hE,"calc","nested"),scattergl:Dye($b,"calc","nested")}},supplyDefaults:Aye(),calc:kye(),makeComputeError:xV(),plot:Pye(),style:Rye(),hoverInfo:Ogt};function Ogt(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var qye=Te((Klr,Oye)=>{"use strict";Oye.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var jye=Te((Jlr,Wye)=>{"use strict";var A_=Jl(),AV=cd(),RI=Cc(),Nye=$l(),Ig=wu(),II=gp(),q0=ei(),Um=q0.strTranslate,Hye=Su().extendFlat,TV=Am(),Nm=Mu(),SV=jl(),qgt=Mb(),Ngt=Zf(),Ugt=Rp().flipScale,Vgt=tE(),Ggt=aI(),Hgt=Dd(),MV=Qh(),Uye=MV.LINE_SPACING,Vye=MV.FROM_TL,Gye=MV.FROM_BR,Yc=qye().cn;function Wgt(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+Yc.colorbar).data(jgt(e),function(n){return n._id});r.enter().append("g").attr("class",function(n){return n._id}).classed(Yc.colorbar,!0),r.each(function(n){var i=A_.select(this);q0.ensureSingle(i,"rect",Yc.cbbg),q0.ensureSingle(i,"g",Yc.cbfills),q0.ensureSingle(i,"g",Yc.cblines),q0.ensureSingle(i,"g",Yc.cbaxis,function(o){o.classed(Yc.crisp,!0)}),q0.ensureSingle(i,"g",Yc.cbtitleunshift,function(o){o.append("g").classed(Yc.cbtitle,!0)}),q0.ensureSingle(i,"rect",Yc.cboutline);var a=Xgt(i,n,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&Zgt(i,n,e)}),r.exit().each(function(n){RI.autoMargin(e,n._id)}).remove(),r.order()}function jgt(e){var t=e._fullLayout,r=e.calcdata,n=[],i,a,o,s;function u(E){return Hye(E,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function l(){typeof s.calc=="function"?s.calc(e,o,i):(i._fillgradient=a.reversescale?Ugt(a.colorscale):a.colorscale,i._zrange=[a[s.min],a[s.max]])}for(var f=0;f1){var Ve=Math.pow(10,Math.floor(Math.log(ye)/Math.LN10));Ne*=Ve*q0.roundUp(ye/Ve,[2,5,10]),(Math.abs(B.start)/B.size+1e-6)%1<2e-6&&(Ee.tick0=0)}Ee.dtick=Ne}Ee.domain=n?[te+p/T.h,te+W-p/T.h]:[te+d/T.w,te+W-d/T.w],Ee.setScale(),e.attr("transform",Um(Math.round(T.l),Math.round(T.t)));var ce=e.select("."+Yc.cbtitleunshift).attr("transform",Um(-Math.round(T.l),-Math.round(T.t))),Je=Ee.ticklabelposition,nt=Ee.title.font.size,gt=e.select("."+Yc.cbaxis),Nt,it=0,Ye=0;function kt(Et,Ae){var at={propContainer:Ee,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:E._dfltTitle.colorbar,containerGroup:e.select("."+Yc.cbtitle)},wt=Et.charAt(0)==="h"?Et.substr(1):"h"+Et;e.selectAll("."+wt+",."+wt+"-math-group").remove(),qgt.draw(r,Et,Hye(at,Ae||{}))}function Tt(){if(n&&Me||!n&&!Me){var Et,Ae;S==="top"&&(Et=d+T.l+re*x,Ae=p+T.t+ae*(1-te-W)+3+nt*.75),S==="bottom"&&(Et=d+T.l+re*x,Ae=p+T.t+ae*(1-te)-3-nt*.25),S==="right"&&(Ae=p+T.t+ae*b+3+nt*.75,Et=d+T.l+re*te),kt(Ee._id+"title",{attributes:{x:Et,y:Ae,"text-anchor":n?"start":"middle"}})}}function St(){if(n&&!Me||!n&&Me){var Et=Ee.position||0,Ae=Ee._offset+Ee._length/2,at,wt;if(S==="right")wt=Ae,at=T.l+re*Et+10+nt*(Ee.showticklabels?1:.5);else if(at=Ae,S==="bottom"&&(wt=T.t+ae*Et+10+(Je.indexOf("inside")===-1?Ee.tickfont.size:0)+(Ee.ticks!=="intside"&&t.ticklen||0)),S==="top"){var vt=C.text.split("
").length;wt=T.t+ae*Et+10-j-Uye*nt*vt}kt((n?"h":"v")+Ee._id+"title",{avoid:{selection:A_.select(r).selectAll("g."+Ee._id+"tick"),side:S,offsetTop:n?0:T.t,offsetLeft:n?T.l:0,maxShift:n?E.width:E.height},attributes:{x:at,y:wt,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function Dt(){if(!n&&!Me||n&&Me){var Et=e.select("."+Yc.cbtitle),Ae=Et.select("text"),at=[-u/2,u/2],wt=Et.select(".h"+Ee._id+"title-math-group").node(),vt=15.6;Ae.node()&&(vt=parseInt(Ae.node().style.fontSize,10)*Uye);var st;if(wt?(st=Nm.bBox(wt),Ye=st.width,it=st.height,it>vt&&(at[1]-=(it-vt)/2)):Ae.node()&&!Ae.classed(Yc.jsPlaceholder)&&(st=Nm.bBox(Ae.node()),Ye=st.width,it=st.height),n){if(it){if(it+=5,S==="top")Ee.domain[1]-=it/T.h,at[1]*=-1;else{Ee.domain[0]+=it/T.h;var Ue=Ngt.lineCount(Ae);at[1]+=(1-Ue)*vt}Et.attr("transform",Um(at[0],at[1])),Ee.setScale()}}else Ye&&(S==="right"&&(Ee.domain[0]+=(Ye+nt/2)/T.w),Et.attr("transform",Um(at[0],at[1])),Ee.setScale())}e.selectAll("."+Yc.cbfills+",."+Yc.cblines).attr("transform",n?Um(0,Math.round(T.h*(1-Ee.domain[1]))):Um(Math.round(T.w*Ee.domain[0]),0)),gt.attr("transform",n?Um(0,Math.round(-T.t)):Um(Math.round(-T.l),0));var rt=e.select("."+Yc.cbfills).selectAll("rect."+Yc.cbfill).attr("style","").data(U);rt.enter().append("rect").classed(Yc.cbfill,!0).attr("style",""),rt.exit().remove();var $e=m.map(Ee.c2p).map(Math.round).sort(function(br,Ut){return br-Ut});rt.each(function(br,Ut){var Ie=[Ut===0?m[0]:(U[Ut]+U[Ut-1])/2,Ut===U.length-1?m[1]:(U[Ut]+U[Ut+1])/2].map(Ee.c2p).map(Math.round);n&&(Ie[1]=q0.constrain(Ie[1]+(Ie[1]>Ie[0])?1:-1,$e[0],$e[1]));var xe=A_.select(this).attr(n?"x":"y",be).attr(n?"y":"x",A_.min(Ie)).attr(n?"width":"height",Math.max(j,2)).attr(n?"height":"width",Math.max(A_.max(Ie)-A_.min(Ie),2));if(t._fillgradient)Nm.gradient(xe,r,t._id,n?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Oe=A(br).replace("e-","");xe.attr("fill",AV(Oe).toHexString())}});var zt=e.select("."+Yc.cblines).selectAll("path."+Yc.cbline).data(_.color&&_.width?G:[]);zt.enter().append("path").classed(Yc.cbline,!0),zt.exit().remove(),zt.each(function(br){var Ut=be,Ie=Math.round(Ee.c2p(br))+_.width/2%1;A_.select(this).attr("d","M"+(n?Ut+","+Ie:Ie+","+Ut)+(n?"h":"v")+j).call(Nm.lineGroupStyle,_.width,P(br),_.dash)}),gt.selectAll("g."+Ee._id+"tick,path").remove();var Yt=be+j+(u||0)/2-(t.ticks==="outside"?1:0),hr=Ig.calcTicks(Ee),yr=Ig.getTickSigns(Ee)[2];return Ig.drawTicks(r,Ee,{vals:Ee.ticks==="inside"?Ig.clipEnds(Ee,hr):hr,layer:gt,path:Ig.makeTickPath(Ee,Yt,yr),transFn:Ig.makeTransTickFn(Ee)}),Ig.drawLabels(r,Ee,{vals:hr,layer:gt,transFn:Ig.makeTransTickLabelFn(Ee),labelFns:Ig.makeLabelFns(Ee,Yt)})}function Zt(){var Et,Ae=j+u/2;Je.indexOf("inside")===-1&&(Et=Nm.bBox(gt.node()),Ae+=n?Et.width:Et.height),Nt=ce.select("text");var at=0,wt=n&&S==="top",vt=!n&&S==="right",st=0;if(Nt.node()&&!Nt.classed(Yc.jsPlaceholder)){var Ue,rt=ce.select(".h"+Ee._id+"title-math-group").node();rt&&(n&&Me||!n&&!Me)?(Et=Nm.bBox(rt),at=Et.width,Ue=Et.height):(Et=Nm.bBox(ce.node()),at=Et.right-T.l-(n?be:ke),Ue=Et.bottom-T.t-(n?ke:be),!n&&S==="top"&&(Ae+=Et.height,st=Et.height)),vt&&(Nt.attr("transform",Um(at/2+nt/2,0)),at*=2),Ae=Math.max(Ae,n?at:Ue)}var $e=(n?d:p)*2+Ae+l+u/2,zt=0;!n&&C.text&&h==="bottom"&&b<=0&&(zt=$e/2,$e+=zt,st+=zt),E._hColorbarMoveTitle=zt,E._hColorbarMoveCBTitle=st;var Yt=l+u,hr=(n?be:ke)-Yt/2-(n?d:0),yr=(n?ke:be)-(n?N:p+st-zt);e.select("."+Yc.cbbg).attr("x",hr).attr("y",yr).attr(n?"width":"height",Math.max($e-zt,2)).attr(n?"height":"width",Math.max(N+Yt,2)).call(SV.fill,f).call(SV.stroke,t.bordercolor).style("stroke-width",l);var br=vt?Math.max(at-10,0):0;e.selectAll("."+Yc.cboutline).attr("x",(n?be:ke+d)+br).attr("y",(n?ke+p-N:be)+(wt?it:0)).attr(n?"width":"height",Math.max(j,2)).attr(n?"height":"width",Math.max(N-(n?2*p+it:2*d+br),2)).call(SV.stroke,t.outlinecolor).style({fill:"none","stroke-width":u});var Ut=n?Ce*$e:0,Ie=n?0:(1-Le)*$e-st;if(Ut=k?T.l-Ut:-Ut,Ie=v?T.t-Ie:-Ie,e.attr("transform",Um(Ut,Ie)),!n&&(l||AV(f).getAlpha()&&!AV.equals(E.paper_bgcolor,f))){var xe=gt.selectAll("text"),Oe=xe[0].length,Re=e.select("."+Yc.cbbg).node(),De=Nm.bBox(Re),ct=Nm.getTranslate(e),ge=2;xe.each(function(Fr,di){var Di=0,Ii=Oe-1;if(di===Di||di===Ii){var Ci=Nm.bBox(this),nn=Nm.getTranslate(this),ii;if(di===Ii){var wi=Ci.right+nn.x,Gi=De.right+ct.x+ke-l-ge+x;ii=Gi-wi,ii>0&&(ii=0)}else if(di===Di){var Bt=Ci.left+nn.x,yt=De.left+ct.x+ke+l+ge;ii=yt-Bt,ii<0&&(ii=0)}ii&&(Oe<3?this.setAttribute("transform","translate("+ii+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var fe={},de=Vye[c],dt=Gye[c],It=Vye[h],Pt=Gye[h],rr=$e-j;n?(a==="pixels"?(fe.y=b,fe.t=N*It,fe.b=N*Pt):(fe.t=fe.b=0,fe.yt=b+i*It,fe.yb=b-i*Pt),s==="pixels"?(fe.x=x,fe.l=$e*de,fe.r=$e*dt):(fe.l=rr*de,fe.r=rr*dt,fe.xl=x-o*de,fe.xr=x+o*dt)):(a==="pixels"?(fe.x=x,fe.l=N*de,fe.r=N*dt):(fe.l=fe.r=0,fe.xl=x+i*de,fe.xr=x-i*dt),s==="pixels"?(fe.y=1-b,fe.t=$e*It,fe.b=$e*Pt):(fe.t=rr*It,fe.b=rr*Pt,fe.yt=b-o*It,fe.yb=b+o*Pt));var Hr=t.y<.5?"b":"t",Dr=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Mr={r:E.width-hr-Ut,l:hr+fe.r,b:E.height-yr-Ie,t:yr+fe.b};k&&v?RI.autoMargin(r,t._id,fe):k?r._fullLayout._reservedMargin[t._id][Hr]=Mr[Hr]:v||n?r._fullLayout._reservedMargin[t._id][Dr]=Mr[Dr]:r._fullLayout._reservedMargin[t._id][Hr]=Mr[Hr]}return q0.syncOrAsync([RI.previousPromises,Tt,Dt,St,RI.previousPromises,Zt],r)}function Zgt(e,t,r){var n=t.orientation==="v",i=r._fullLayout,a=i._size,o,s,u;II.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),TV(e)},moveFn:function(l,f){e.attr("transform",o+Um(l,f)),s=II.align((n?t._uFrac:t._vFrac)+l/a.w,n?t._thickFrac:t._lenFrac,0,1,t.xanchor),u=II.align((n?t._vFrac:1-t._uFrac)-f/a.h,n?t._lenFrac:t._thickFrac,0,1,t.yanchor);var c=II.getCursor(s,u,t.xanchor,t.yanchor);TV(e,c)},doneFn:function(){if(TV(e),s!==void 0&&u!==void 0){var l={};l[t._propPrefix+"x"]=s,l[t._propPrefix+"y"]=u,t._traceIndex!==void 0?Nye.call("_guiRestyle",r,l,t._traceIndex):Nye.call("_guiRelayout",r,l)}}})}function Ygt(e,t,r){var n=t._levels,i=[],a=[],o,s,u=n.end+n.size/100,l=n.size,f=1.001*r[0]-.001*r[1],c=1.001*r[1]-.001*r[0];for(s=0;s<1e5&&(o=n.start+s*l,!(l>0?o>=u:o<=u));s++)o>f&&o0?o>=u:o<=u));s++)o>r[0]&&o{"use strict";Xye.exports={moduleType:"component",name:"colorbar",attributes:$L(),supplyDefaults:Oq(),draw:jye().draw,hasColorbar:Pq()}});var Kye=Te((Qlr,Yye)=>{"use strict";Yye.exports={moduleType:"component",name:"legend",layoutAttributes:PN(),supplyLayoutDefaults:RN(),draw:jN(),style:VN()}});var $ye=Te((eur,Jye)=>{"use strict";Jye.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var ege=Te((tur,Qye)=>{"use strict";Qye.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var kV=Te((rur,nge)=>{"use strict";var Jgt=$l(),ige=ei(),EV=ige.extendFlat,tge=ige.extendDeep;function rge(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function $gt(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}nge.exports=function(t,r){var n,i=t.data,a=t.layout,o=tge([],i),s=tge({},a,rge(r.tileClass)),u=t._context||{};if(r.width&&(s.width=r.width),r.height&&(s.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){s.annotations=[];var l=Object.keys(s);for(n=0;n{"use strict";var Qgt=pb().EventEmitter,e1t=$l(),t1t=ei(),age=Lg(),r1t=kV(),i1t=Uz(),n1t=Vz();function a1t(e,t){var r=new Qgt,n=r1t(e,{format:"png"}),i=n.gd;i.style.position="absolute",i.style.left="-5000px",document.body.appendChild(i);function a(){var s=age.getDelay(i._fullLayout);setTimeout(function(){var u=i1t(i),l=document.createElement("canvas");l.id=t1t.randstr(),r=n1t({format:t.format,width:i._fullLayout.width,height:i._fullLayout.height,canvas:l,emitter:r,svg:u}),r.clean=function(){i&&document.body.removeChild(i)}},s)}var o=age.getRedrawFunc(i);return e1t.call("_doPlot",i,n.data,n.layout,n.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}oge.exports=a1t});var fge=Te((nur,uge)=>{"use strict";var lge=Lg(),o1t={getDelay:lge.getDelay,getRedrawFunc:lge.getRedrawFunc,clone:kV(),toSVG:Uz(),svgToImg:Vz(),toImage:sge(),downloadImage:uU()};uge.exports=o1t});var hge=Te(Rg=>{"use strict";Rg.version=aL().version;See();pne();var s1t=$l(),dE=Rg.register=s1t.register,LV=Rde(),cge=Object.keys(LV);for(DI=0;DI{"use strict";dge.exports=hge()});var Qb=Te((sur,vge)=>{"use strict";vge.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Ly=Te((lur,_ge)=>{"use strict";var oh=Zc(),mge=jc().axisHoverFormat,l1t=Nu().hovertemplateAttrs,u1t=Nu().texttemplateAttrs,gge=nc(),f1t=gc(),yge=Qb(),c1t=Id().pattern,e2=Su().extendFlat,PV=f1t({editType:"calc",arrayOk:!0,colorEditType:"style"}),h1t=oh.marker,d1t=h1t.line,p1t=e2({},d1t.width,{dflt:0}),v1t=e2({width:p1t,editType:"calc"},gge("marker.line")),m1t=e2({line:v1t,editType:"calc"},gge("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:c1t,cornerradius:{valType:"any",editType:"calc"}});_ge.exports={x:oh.x,x0:oh.x0,dx:oh.dx,y:oh.y,y0:oh.y0,dy:oh.dy,xperiod:oh.xperiod,yperiod:oh.yperiod,xperiod0:oh.xperiod0,yperiod0:oh.yperiod0,xperiodalignment:oh.xperiodalignment,yperiodalignment:oh.yperiodalignment,xhoverformat:mge("x"),yhoverformat:mge("y"),text:oh.text,texttemplate:u1t({editType:"plot"},{keys:yge.eventDataKeys}),hovertext:oh.hovertext,hovertemplate:l1t({},{keys:yge.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:e2({},PV,{}),insidetextfont:e2({},PV,{}),outsidetextfont:e2({},PV,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:e2({},oh.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:m1t,offsetgroup:oh.offsetgroup,alignmentgroup:oh.alignmentgroup,selected:{marker:{opacity:oh.selected.marker.opacity,color:oh.selected.marker.color,editType:"style"},textfont:oh.selected.textfont,editType:"style"},unselected:{marker:{opacity:oh.unselected.marker.opacity,color:oh.unselected.marker.color,editType:"style"},textfont:oh.unselected.textfont,editType:"style"},zorder:oh.zorder}});var BI=Te((uur,xge)=>{"use strict";xge.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var OI=Te((fur,Age)=>{"use strict";var y1t=jl(),bge=Rp().hasColorscale,wge=ed(),g1t=ei().coercePattern;Age.exports=function(t,r,n,i,a){var o=n("marker.color",i),s=bge(t,"marker");s&&wge(t,r,a,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",y1t.defaultLine),bge(t,"marker.line")&&wge(t,r,a,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width"),n("marker.opacity"),g1t(n,"marker.pattern",o,s),n("selected.marker.color"),n("unselected.marker.color")}});var r0=Te((cur,Cge)=>{"use strict";var Tge=ku(),xA=ei(),Sge=jl(),_1t=$l(),x1t=K3(),b1t=Pm(),w1t=OI(),A1t=Gb(),Mge=Ly(),qI=xA.coerceFont;function T1t(e,t,r,n){function i(l,f){return xA.coerce(e,t,Mge,l,f)}var a=x1t(e,t,n,i);if(!a){t.visible=!1;return}b1t(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate");var o=i("textposition");kge(e,t,n,i,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),w1t(e,t,i,r,n);var s=(t.marker.line||{}).color,u=_1t.getComponentMethod("errorbars","supplyDefaults");u(e,t,s||Sge.defaultLine,{axis:"y"}),u(e,t,s||Sge.defaultLine,{axis:"x",inherit:"y"}),xA.coerceSelectionMarkerOpacity(t,i)}function S1t(e,t){var r,n;function i(s,u){return xA.coerce(n._input,n,Mge,s,u)}for(var a=0;a=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&Tge(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function kge(e,t,r,n,i,a){a=a||{};var o=a.moduleHasSelected!==!1,s=a.moduleHasUnselected!==!1,u=a.moduleHasConstrain!==!1,l=a.moduleHasCliponaxis!==!1,f=a.moduleHasTextangle!==!1,c=a.moduleHasInsideanchor!==!1,h=!!a.hasPathbar,d=Array.isArray(i)||i==="auto",p=d||i==="inside",x=d||i==="outside";if(p||x){var b=qI(n,"textfont",r.font),v=xA.extendFlat({},b),k=e.textfont&&e.textfont.color,E=!k;if(E&&delete v.color,qI(n,"insidetextfont",v),h){var T=xA.extendFlat({},b);E&&delete T.color,qI(n,"pathbar.textfont",T)}x&&qI(n,"outsidetextfont",b),o&&n("selected.textfont.color"),s&&n("unselected.textfont.color"),u&&n("constraintext"),l&&n("cliponaxis"),f&&n("textangle"),n("texttemplate")}p&&c&&n("insidetextanchor")}Cge.exports={supplyDefaults:T1t,crossTraceDefaults:S1t,handleText:kge,validateCornerradius:Ege}});var zV=Te((hur,Lge)=>{"use strict";var M1t=$l(),E1t=wu(),k1t=ei(),C1t=BI(),L1t=r0().validateCornerradius;Lge.exports=function(e,t,r){function n(x,b){return k1t.coerce(e,t,C1t,x,b)}for(var i=!1,a=!1,o=!1,s={},u=n("barmode"),l=u==="group",f=0;f0&&!s[h]&&(o=!0),s[h]=!0),c.visible&&c.type==="histogram"){var d=E1t.getFromId({_fullLayout:t},c[c.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(a=!0)}}if(!i){delete t.barmode;return}u!=="overlay"&&n("barnorm"),n("bargap",a&&!o?0:.2),n("bargroupgap");var p=n("barcornerradius");t.barcornerradius=L1t(p)}});var pE=Te((dur,Pge)=>{"use strict";var bA=ei();Pge.exports=function(t,r){for(var n=0;n{"use strict";var zge=wu(),Ige=Im(),Rge=Rp().hasColorscale,Dge=Dp(),P1t=pE(),z1t=F0();Fge.exports=function(t,r){var n=zge.getFromId(t,r.xaxis||"x"),i=zge.getFromId(t,r.yaxis||"y"),a,o,s,u,l,f,c={msUTC:!!(r.base||r.base===0)};r.orientation==="h"?(a=n.makeCalcdata(r,"x",c),s=i.makeCalcdata(r,"y"),u=Ige(r,i,"y",s),l=!!r.yperiodalignment,f="y"):(a=i.makeCalcdata(r,"y",c),s=n.makeCalcdata(r,"x"),u=Ige(r,n,"x",s),l=!!r.xperiodalignment,f="x"),o=u.vals;for(var h=Math.min(o.length,a.length),d=new Array(h),p=0;p{"use strict";var I1t=Jl(),R1t=ei();function D1t(e,t,r){var n=e._fullLayout,i=n["_"+r+"Text_minsize"];if(i){var a=n.uniformtext.mode==="hide",o;switch(r){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}t.selectAll(o).each(function(s){var u=s.transform;if(u){u.scale=a&&u.hide?0:i/u.fontSize;var l=I1t.select(this).select("text");R1t.setTransormAndDisplay(l,u)}})}}function F1t(e,t,r){if(r.uniformtext.mode){var n=Oge(e),i=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a{"use strict";var O1t=ku(),q1t=cd(),Nge=ei().isArrayOrTypedArray;t2.coerceString=function(e,t,r){if(typeof t=="string"){if(t||!e.noBlank)return t}else if((typeof t=="number"||t===!0)&&!e.strict)return String(t);return r!==void 0?r:e.dflt};t2.coerceNumber=function(e,t,r){if(O1t(t)){t=+t;var n=e.min,i=e.max,a=n!==void 0&&ti;if(!a)return t}return r!==void 0?r:e.dflt};t2.coerceColor=function(e,t,r){return q1t(t).isValid()?t:r!==void 0?r:e.dflt};t2.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};t2.getValue=function(e,t){var r;return Nge(e)?t{"use strict";var vE=Jl(),N1t=jl(),mE=Mu(),Uge=ei(),Vge=$l(),Gge=bp().resizeText,IV=Ly(),U1t=IV.textfont,V1t=IV.insidetextfont,G1t=IV.outsidetextfont,tp=NI();function H1t(e){var t=vE.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");Gge(e,t,"bar");var r=t.size(),n=e._fullLayout;t.style("opacity",function(i){return i[0].trace.opacity}).each(function(i){(n.barmode==="stack"&&r>1||n.bargap===0&&n.bargroupgap===0&&!i[0].trace.marker.line.width)&&vE.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(i){var a=vE.select(this),o=i[0].trace;Hge(a,o,e)}),Vge.getComponentMethod("errorbars","style")(t)}function Hge(e,t,r){mE.pointStyle(e.selectAll("path"),t,r),Wge(e,t,r)}function Wge(e,t,r){e.selectAll("text").each(function(n){var i=vE.select(this),a=Uge.ensureUniformFontSize(r,jge(i,n,t,r));mE.font(i,a)})}function W1t(e,t,r){var n=t[0].trace;n.selectedpoints?j1t(r,n,e):(Hge(r,n,e),Vge.getComponentMethod("errorbars","style")(r))}function j1t(e,t,r){mE.selectedPointStyle(e.selectAll("path"),t),X1t(e.selectAll("text"),t,r)}function X1t(e,t,r){e.each(function(n){var i=vE.select(this),a;if(n.selected){a=Uge.ensureUniformFontSize(r,jge(i,n,t,r));var o=t.selected.textfont&&t.selected.textfont.color;o&&(a.color=o),mE.font(i,a)}else mE.selectedTextStyle(i,t)})}function jge(e,t,r,n){var i=n._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=Kge(t,r);a=Zge(r,t.i,i,o)}else e.classed("bartext-outside")&&(a=Yge(r,t.i,i));return a}function Xge(e,t,r){return RV(U1t,e.textfont,t,r)}function Zge(e,t,r,n){var i=Xge(e,t,r),a=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[t]===void 0;return a&&(i={color:N1t.contrast(n),family:i.family,size:i.size,weight:i.weight,style:i.style,variant:i.variant,textcase:i.textcase,lineposition:i.lineposition,shadow:i.shadow}),RV(V1t,e.insidetextfont,t,i)}function Yge(e,t,r){var n=Xge(e,t,r);return RV(G1t,e.outsidetextfont,t,n)}function RV(e,t,r,n){t=t||{};var i=tp.getValue(t.family,r),a=tp.getValue(t.size,r),o=tp.getValue(t.color,r),s=tp.getValue(t.weight,r),u=tp.getValue(t.style,r),l=tp.getValue(t.variant,r),f=tp.getValue(t.textcase,r),c=tp.getValue(t.lineposition,r),h=tp.getValue(t.shadow,r);return{family:tp.coerceString(e.family,i,n.family),size:tp.coerceNumber(e.size,a,n.size),color:tp.coerceColor(e.color,o,n.color),weight:tp.coerceString(e.weight,s,n.weight),style:tp.coerceString(e.style,u,n.style),variant:tp.coerceString(e.variant,l,n.variant),textcase:tp.coerceString(e.variant,f,n.textcase),lineposition:tp.coerceString(e.variant,c,n.lineposition),shadow:tp.coerceString(e.variant,h,n.shadow)}}function Kge(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}Jge.exports={style:H1t,styleTextPoints:Wge,styleOnSelect:W1t,getInsideTextFont:Zge,getOutsideTextFont:Yge,getBarColor:Kge,resizeText:Gge}});var i2=Te((gur,a1e)=>{"use strict";var UI=Jl(),VI=ku(),Bd=ei(),Z1t=Zf(),Y1t=jl(),T_=Mu(),K1t=$l(),GI=wu().tickText,$ge=bp(),J1t=$ge.recordMinTextSize,$1t=$ge.clearMinTextSize,DV=N0(),wA=NI(),Q1t=Qb(),Qge=Ly(),e_t=Qge.text,t_t=Qge.textposition,r_t=rv().appendArrayPointValue,Up=Q1t.TEXTPAD;function i_t(e){return e.id}function n_t(e){if(e.ids)return i_t}function FV(e){return(e>0)-(e<0)}function Py(e,t){return e0}function o_t(e,t,r,n,i,a){var o=t.xaxis,s=t.yaxis,u=e._fullLayout,l=e._context.staticPlot;i||(i={mode:u.barmode,norm:u.barmode,gap:u.bargap,groupgap:u.bargroupgap},$1t("bar",u));var f=Bd.makeTraceGroups(n,r,"trace bars").each(function(c){var h=UI.select(this),d=c[0].trace,p=c[0].t,x=d.type==="waterfall",b=d.type==="funnel",v=d.type==="histogram",k=d.type==="bar",E=k||b,T=0;x&&d.connector.visible&&d.connector.mode==="between"&&(T=d.connector.line.width/2);var L=d.orientation==="h",_=t1e(i),C=Bd.ensureSingle(h,"g","points"),S=n_t(d),m=C.selectAll("g.point").data(Bd.identity,S);m.enter().append("g").classed("point",!0),m.exit().remove(),m.each(function(A,B){var F=UI.select(this),U=a_t(A,o,s,L),G=U[0][0],j=U[0][1],H=U[1][0],N=U[1][1],W=(L?j-G:N-H)===0;W&&E&&wA.getLineWidth(d,A)&&(W=!1),W||(W=!VI(G)||!VI(j)||!VI(H)||!VI(N)),A.isBlank=W,W&&(L?j=G:N=H),T&&!W&&(L?(G-=Py(G,j)*T,j+=Py(G,j)*T):(H-=Py(H,N)*T,N+=Py(H,N)*T));var re,ae;if(d.type==="waterfall"){if(!W){var be=d[A.dir].marker;re=be.line.width,ae=be.color}}else re=wA.getLineWidth(d,A),ae=A.mc||d.marker.color;function Ce(Ae){var at=UI.round(re/2%1,2);return i.gap===0&&i.groupgap===0?UI.round(Math.round(Ae)-at,2):Ae}function Le(Ae,at,wt){return wt&&Ae===at?Ae:Math.abs(Ae-at)>=2?Ce(Ae):Ae>at?Math.ceil(Ae):Math.floor(Ae)}var pe=Y1t.opacity(ae),te=pe<1||re>.01?Ce:Le;e._context.staticPlot||(G=te(G,j,L),j=te(j,G,L),H=te(H,N,!L),N=te(N,H,!L));var ke=L?o.c2p:s.c2p,Ee;A.s0>0?Ee=A._sMax:A.s0<0?Ee=A._sMin:Ee=A.s1>0?A._sMax:A._sMin;function Me(Ae,at){if(!Ae)return 0;var wt=Math.abs(L?N-H:j-G),vt=Math.abs(L?j-G:N-H),st=te(Math.abs(ke(Ee,!0)-ke(0,!0))),Ue=A.hasB?Math.min(wt/2,vt/2):Math.min(wt/2,st),rt;if(at==="%"){var $e=Math.min(50,Ae);rt=wt*($e/100)}else rt=Ae;return te(Math.max(Math.min(rt,Ue),0))}var Ne=k||v?Me(p.cornerradiusvalue,p.cornerradiusform):0,Fe,ye,Ve="M"+G+","+H+"V"+N+"H"+j+"V"+H+"Z",ce=0;if(Ne&&A.s){var Je=FV(A.s0)===0||FV(A.s)===FV(A.s0)?A.s1:A.s0;if(ce=te(A.hasB?0:Math.abs(ke(Ee,!0)-ke(Je,!0))),ce0?Math.sqrt(ce*(2*Ne-ce)):0,kt=nt>0?Math.max:Math.min;Fe="M"+G+","+H+"V"+(N-it*gt)+"H"+kt(j-(Ne-ce)*nt,G)+"A "+Ne+","+Ne+" 0 0 "+Nt+" "+j+","+(N-Ne*gt-Ye)+"V"+(H+Ne*gt+Ye)+"A "+Ne+","+Ne+" 0 0 "+Nt+" "+kt(j-(Ne-ce)*nt,G)+","+(H+it*gt)+"Z"}else if(A.hasB)Fe="M"+(G+Ne*nt)+","+H+"A "+Ne+","+Ne+" 0 0 "+Nt+" "+G+","+(H+Ne*gt)+"V"+(N-Ne*gt)+"A "+Ne+","+Ne+" 0 0 "+Nt+" "+(G+Ne*nt)+","+N+"H"+(j-Ne*nt)+"A "+Ne+","+Ne+" 0 0 "+Nt+" "+j+","+(N-Ne*gt)+"V"+(H+Ne*gt)+"A "+Ne+","+Ne+" 0 0 "+Nt+" "+(j-Ne*nt)+","+H+"Z";else{ye=Math.abs(N-H)+ce;var Tt=ye0?Math.sqrt(ce*(2*Ne-ce)):0,Dt=gt>0?Math.max:Math.min;Fe="M"+(G+Tt*nt)+","+H+"V"+Dt(N-(Ne-ce)*gt,H)+"A "+Ne+","+Ne+" 0 0 "+Nt+" "+(G+Ne*nt-St)+","+N+"H"+(j-Ne*nt+St)+"A "+Ne+","+Ne+" 0 0 "+Nt+" "+(j-Tt*nt)+","+Dt(N-(Ne-ce)*gt,H)+"V"+H+"Z"}}else Fe=Ve}else Fe=Ve;var Zt=e1e(Bd.ensureSingle(F,"path"),u,i,a);if(Zt.style("vector-effect",l?"none":"non-scaling-stroke").attr("d",isNaN((j-G)*(N-H))||W&&e._context.staticPlot?"M0,0Z":Fe).call(T_.setClipUrl,t.layerClipId,e),!u.uniformtext.mode&&_){var Et=T_.makePointStyleFns(d);T_.singlePointStyle(A,Zt,d,Et,e)}s_t(e,t,F,c,B,G,j,H,N,Ne,ce,i,a),t.layerClipId&&T_.hideOutsideRangePoint(A,F.select("text"),o,s,d.xcalendar,d.ycalendar)});var P=d.cliponaxis===!1;T_.setClipUrl(h,P?null:t.layerClipId,e)});K1t.getComponentMethod("errorbars","plot")(e,f,t,i)}function s_t(e,t,r,n,i,a,o,s,u,l,f,c,h){var d=t.xaxis,p=t.yaxis,x=e._fullLayout,b;function v(ye,Ve,ce){var Je=Bd.ensureSingle(ye,"text").text(Ve).attr({class:"bartext bartext-"+b,"text-anchor":"middle","data-notex":1}).call(T_.font,ce).call(Z1t.convertToTspans,e);return Je}var k=n[0].trace,E=k.orientation==="h",T=f_t(x,n,i,d,p);b=c_t(k,i);var L=c.mode==="stack"||c.mode==="relative",_=n[i],C=!L||_._outmost,S=_.hasB,m=l&&l-f>Up;if(!T||b==="none"||(_.isBlank||a===o||s===u)&&(b==="auto"||b==="inside")){r.select("text").remove();return}var P=x.font,A=DV.getBarColor(n[i],k),B=DV.getInsideTextFont(k,i,P,A),F=DV.getOutsideTextFont(k,i,P),U=k.insidetextanchor||"end",G=r.datum();E?d.type==="log"&&G.s0<=0&&(d.range[0]0&&Ce>0,te;m?S?te=r2(N-2*l,W,be,Ce,E)||r2(N,W-2*l,be,Ce,E):E?te=r2(N-(l-f),W,be,Ce,E)||r2(N,W-2*(l-f),be,Ce,E):te=r2(N,W-(l-f),be,Ce,E)||r2(N-2*(l-f),W,be,Ce,E):te=r2(N,W,be,Ce,E),pe&&te?b="inside":(b="outside",re.remove(),re=null)}else b="inside";if(!re){Le=Bd.ensureUniformFontSize(e,b==="outside"?F:B),re=v(r,T,Le);var ke=re.attr("transform");if(re.attr("transform",""),ae=T_.bBox(re.node()),be=ae.width,Ce=ae.height,re.attr("transform",ke),be<=0||Ce<=0){re.remove();return}}var Ee=k.textangle,Me,Ne;b==="outside"?(Ne=k.constraintext==="both"||k.constraintext==="outside",Me=u_t(a,o,s,u,ae,{isHorizontal:E,constrained:Ne,angle:Ee})):(Ne=k.constraintext==="both"||k.constraintext==="inside",Me=n1e(a,o,s,u,ae,{isHorizontal:E,constrained:Ne,angle:Ee,anchor:U,hasB:S,r:l,overhead:f})),Me.fontSize=Le.size,J1t(k.type==="histogram"?"bar":k.type,Me,x),_.transform=Me;var Fe=e1e(re,x,c,h);Bd.setTransormAndDisplay(Fe,Me)}function r2(e,t,r,n,i){if(e<0||t<0)return!1;var a=r<=e&&n<=t,o=r<=t&&n<=e,s=i?e>=r*(t/n):t>=n*(e/r);return a||o||s}function r1e(e){return e==="auto"?0:e}function i1e(e,t){var r=Math.PI/180*t,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:e.width*i+e.height*n,y:e.width*n+e.height*i}}function n1e(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,u=a.angle||0,l=a.anchor,f=l==="end",c=l==="start",h=a.leftToRight||0,d=(h+1)/2,p=1-d,x=a.hasB,b=a.r,v=a.overhead,k=i.width,E=i.height,T=Math.abs(t-e),L=Math.abs(n-r),_=T>2*Up&&L>2*Up?Up:0;T-=2*_,L-=2*_;var C=r1e(u);u==="auto"&&!(k<=T&&E<=L)&&(k>T||E>L)&&(!(k>L||E>T)||kUp){var A=l_t(e,t,r,n,S,b,v,o,x);m=A.scale,P=A.pad}else m=1,s&&(m=Math.min(1,T/S.x,L/S.y)),P=0;var B=i.left*p+i.right*d,F=(i.top+i.bottom)/2,U=(e+Up)*p+(t-Up)*d,G=(r+n)/2,j=0,H=0;if(c||f){var N=(o?S.x:S.y)/2;b&&(f||x)&&(_+=P);var W=o?Py(e,t):Py(r,n);o?c?(U=e+W*_,j=-W*N):(U=t-W*_,j=W*N):c?(G=r+W*_,H=-W*N):(G=n-W*_,H=W*N)}return{textX:B,textY:F,targetX:U,targetY:G,anchorX:j,anchorY:H,scale:m,rotate:C}}function l_t(e,t,r,n,i,a,o,s,u){var l=Math.max(0,Math.abs(t-e)-2*Up),f=Math.max(0,Math.abs(n-r)-2*Up),c=a-Up,h=o?c-Math.sqrt(c*c-(c-o)*(c-o)):c,d=u?c*2:s?c-o:2*h,p=u?c*2:s?2*h:c-o,x,b,v,k,E;return i.y/i.x>=f/(l-d)?k=f/i.y:i.y/i.x<=(f-p)/l?k=l/i.x:!u&&s?(x=i.x*i.x+i.y*i.y/4,b=-2*i.x*(l-c)-i.y*(f/2-c),v=(l-c)*(l-c)+(f/2-c)*(f/2-c)-c*c,k=(-b+Math.sqrt(b*b-4*x*v))/(2*x)):u?(x=(i.x*i.x+i.y*i.y)/4,b=-i.x*(l/2-c)-i.y*(f/2-c),v=(l/2-c)*(l/2-c)+(f/2-c)*(f/2-c)-c*c,k=(-b+Math.sqrt(b*b-4*x*v))/(2*x)):(x=i.x*i.x/4+i.y*i.y,b=-i.x*(l/2-c)-2*i.y*(f-c),v=(l/2-c)*(l/2-c)+(f-c)*(f-c)-c*c,k=(-b+Math.sqrt(b*b-4*x*v))/(2*x)),k=Math.min(1,k),s?E=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-i.y*k)/2)*(c-(f-i.y*k)/2)))-o):E=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(l-i.x*k)/2)*(c-(l-i.x*k)/2)))-o),{scale:k,pad:E}}function u_t(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,u=a.angle||0,l=i.width,f=i.height,c=Math.abs(t-e),h=Math.abs(n-r),d;o?d=h>2*Up?Up:0:d=c>2*Up?Up:0;var p=1;s&&(p=o?Math.min(1,h/f):Math.min(1,c/l));var x=r1e(u),b=i1e(i,x),v=(o?b.x:b.y)/2,k=(i.left+i.right)/2,E=(i.top+i.bottom)/2,T=(e+t)/2,L=(r+n)/2,_=0,C=0,S=o?Py(t,e):Py(r,n);return o?(T=t-S*d,_=S*v):(L=n+S*d,C=-S*v),{textX:k,textY:E,targetX:T,targetY:L,anchorX:_,anchorY:C,scale:p,rotate:x}}function f_t(e,t,r,n,i){var a=t[0].trace,o=a.texttemplate,s;return o?s=h_t(e,t,r,n,i):a.textinfo?s=d_t(t,r,n,i):s=wA.getValue(a.text,r),wA.coerceString(e_t,s)}function c_t(e,t){var r=wA.getValue(e.textposition,t);return wA.coerceEnumerated(t_t,r)}function h_t(e,t,r,n,i){var a=t[0].trace,o=Bd.castOption(a,r,"texttemplate");if(!o)return"";var s=a.type==="histogram",u=a.type==="waterfall",l=a.type==="funnel",f=a.orientation==="h",c,h,d,p;f?(c="y",h=i,d="x",p=n):(c="x",h=n,d="y",p=i);function x(_){return GI(h,h.c2l(_),!0).text}function b(_){return GI(p,p.c2l(_),!0).text}var v=t[r],k={};k.label=v.p,k.labelLabel=k[c+"Label"]=x(v.p);var E=Bd.castOption(a,v.i,"text");(E===0||E)&&(k.text=E),k.value=v.s,k.valueLabel=k[d+"Label"]=b(v.s);var T={};r_t(T,a,v.i),(s||T.x===void 0)&&(T.x=f?k.value:k.label),(s||T.y===void 0)&&(T.y=f?k.label:k.value),(s||T.xLabel===void 0)&&(T.xLabel=f?k.valueLabel:k.labelLabel),(s||T.yLabel===void 0)&&(T.yLabel=f?k.labelLabel:k.valueLabel),u&&(k.delta=+v.rawS||v.s,k.deltaLabel=b(k.delta),k.final=v.v,k.finalLabel=b(k.final),k.initial=k.final-k.delta,k.initialLabel=b(k.initial)),l&&(k.value=v.s,k.valueLabel=b(k.value),k.percentInitial=v.begR,k.percentInitialLabel=Bd.formatPercent(v.begR),k.percentPrevious=v.difR,k.percentPreviousLabel=Bd.formatPercent(v.difR),k.percentTotal=v.sumR,k.percenTotalLabel=Bd.formatPercent(v.sumR));var L=Bd.castOption(a,v.i,"customdata");return L&&(k.customdata=L),Bd.texttemplateString(o,k,e._d3locale,T,k,a._meta||{})}function d_t(e,t,r,n){var i=e[0].trace,a=i.orientation==="h",o=i.type==="waterfall",s=i.type==="funnel";function u(L){var _=a?n:r;return GI(_,L,!0).text}function l(L){var _=a?r:n;return GI(_,+L,!0).text}var f=i.textinfo,c=e[t],h=f.split("+"),d=[],p,x=function(L){return h.indexOf(L)!==-1};if(x("label")&&d.push(u(e[t].p)),x("text")&&(p=Bd.castOption(i,c.i,"text"),(p===0||p)&&d.push(p)),o){var b=+c.rawS||c.s,v=c.v,k=v-b;x("initial")&&d.push(l(k)),x("delta")&&d.push(l(b)),x("final")&&d.push(l(v))}if(s){x("value")&&d.push(l(c.s));var E=0;x("percent initial")&&E++,x("percent previous")&&E++,x("percent total")&&E++;var T=E>1;x("percent initial")&&(p=Bd.formatPercent(c.begR),T&&(p+=" of initial"),d.push(p)),x("percent previous")&&(p=Bd.formatPercent(c.difR),T&&(p+=" of previous"),d.push(p)),x("percent total")&&(p=Bd.formatPercent(c.sumR),T&&(p+=" of total"),d.push(p))}return d.join("
")}a1e.exports={plot:o_t,toMoveInsideBar:n1e}});var AA=Te((_ur,u1e)=>{"use strict";var yE=Xc(),p_t=$l(),o1e=jl(),v_t=ei().fillText,m_t=NI().getLineWidth,BV=wu().hoverLabelText,y_t=nf().BADNUM;function g_t(e,t,r,n,i){var a=s1e(e,t,r,n,i);if(a){var o=a.cd,s=o[0].trace,u=o[a.index];return a.color=l1e(s,u),p_t.getComponentMethod("errorbars","hoverInfo")(u,s,a),[a]}}function s1e(e,t,r,n,i){var a=e.cd,o=a[0].trace,s=a[0].t,u=n==="closest",l=o.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,h,d,p,x,b,v,k;o.orientation==="h"?(h=r,d=t,p="y",x="x",b=G,v=B):(h=t,d=r,p="x",x="y",v=G,b=B);var E=o[p+"period"],T=u||E;function L(te){return C(te,-1)}function _(te){return C(te,1)}function C(te,ke){var Ee=te.w;return te[p]+ke*Ee/2}function S(te){return te[p+"End"]-te[p+"Start"]}var m=u?L:E?function(te){return te.p-S(te)/2}:function(te){return Math.min(L(te),te.p-s.bardelta/2)},P=u?_:E?function(te){return te.p+S(te)/2}:function(te){return Math.max(_(te),te.p+s.bardelta/2)};function A(te,ke,Ee){return i.finiteRange&&(Ee=0),yE.inbox(te-h,ke-h,Ee+Math.min(1,Math.abs(ke-te)/k)-1)}function B(te){return A(m(te),P(te),f)}function F(te){return A(L(te),_(te),c)}function U(te){var ke=te[x];if(l){var Ee=Math.abs(te.rawS)||0;d>0?ke+=Ee:d<0&&(ke-=Ee)}return ke}function G(te){var ke=d,Ee=te.b,Me=U(te);return yE.inbox(Ee-ke,Me-ke,f+(Me-ke)/(Me-Ee)-1)}function j(te){var ke=d,Ee=te.b,Me=U(te);return yE.inbox(Ee-ke,Me-ke,c+(Me-ke)/(Me-Ee)-1)}var H=e[p+"a"],N=e[x+"a"];k=Math.abs(H.r2c(H.range[1])-H.r2c(H.range[0]));function W(te){return(b(te)+v(te))/2}var re=yE.getDistanceFunction(n,b,v,W);if(yE.getClosest(a,re,e),e.index!==!1&&a[e.index].p!==y_t){T||(m=function(te){return Math.min(L(te),te.p-s.bargroupwidth/2)},P=function(te){return Math.max(_(te),te.p+s.bargroupwidth/2)});var ae=e.index,be=a[ae],Ce=o.base?be.b+be.s:be.s;e[x+"0"]=e[x+"1"]=N.c2p(be[x],!0),e[x+"LabelVal"]=Ce;var Le=s.extents[s.extents.round(be.p)];e[p+"0"]=H.c2p(u?m(be):Le[0],!0),e[p+"1"]=H.c2p(u?P(be):Le[1],!0);var pe=be.orig_p!==void 0;return e[p+"LabelVal"]=pe?be.orig_p:be.p,e.labelLabel=BV(H,e[p+"LabelVal"],o[p+"hoverformat"]),e.valueLabel=BV(N,e[x+"LabelVal"],o[x+"hoverformat"]),e.baseLabel=BV(N,be.b,o[x+"hoverformat"]),e.spikeDistance=(j(be)+F(be))/2,e[p+"Spike"]=H.c2p(be.p,!0),v_t(be,o,e),e.hovertemplate=o.hovertemplate,e}}function l1e(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,i=m_t(e,t);if(o1e.opacity(r))return r;if(o1e.opacity(n)&&i)return n}u1e.exports={hoverPoints:g_t,hoverOnBars:s1e,getTraceColor:l1e}});var c1e=Te((xur,f1e)=>{"use strict";f1e.exports=function(t,r,n){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),n.orientation==="h"?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}});var TA=Te((bur,h1e)=>{"use strict";h1e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=n[0].trace,s=o.type==="funnel",u=o.orientation==="h",l=[],f;if(r===!1)for(f=0;f{"use strict";d1e.exports={attributes:Ly(),layoutAttributes:BI(),supplyDefaults:r0().supplyDefaults,crossTraceDefaults:r0().crossTraceDefaults,supplyLayoutDefaults:zV(),calc:Bge(),crossTraceCalc:Hb().crossTraceCalc,colorbar:ep(),arraysToCalcdata:pE(),plot:i2().plot,style:N0().style,styleOnSelect:N0().styleOnSelect,hoverPoints:AA().hoverPoints,eventData:c1e(),selectPoints:TA(),moduleType:"trace",name:"bar",basePlotModule:Ah(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var m1e=Te((Aur,v1e)=>{"use strict";v1e.exports=p1e()});var gE=Te((Tur,x1e)=>{"use strict";var x_t=Em(),U0=Zc(),y1e=Ly(),b_t=Ih(),g1e=jc().axisHoverFormat,w_t=Nu().hovertemplateAttrs,Dg=Su().extendFlat,SA=U0.marker,_1e=SA.line;x1e.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:U0.xperiod,yperiod:U0.yperiod,xperiod0:U0.xperiod0,yperiod0:U0.yperiod0,xperiodalignment:U0.xperiodalignment,yperiodalignment:U0.yperiodalignment,xhoverformat:g1e("x"),yhoverformat:g1e("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:Dg({},SA.symbol,{arrayOk:!1,editType:"plot"}),opacity:Dg({},SA.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Dg({},SA.angle,{arrayOk:!1,editType:"calc"}),size:Dg({},SA.size,{arrayOk:!1,editType:"calc"}),color:Dg({},SA.color,{arrayOk:!1,editType:"style"}),line:{color:Dg({},_1e.color,{arrayOk:!1,dflt:b_t.defaultLine,editType:"style"}),width:Dg({},_1e.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:x_t(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:y1e.offsetgroup,alignmentgroup:y1e.alignmentgroup,selected:{marker:U0.selected.marker,editType:"style"},unselected:{marker:U0.unselected.marker,editType:"style"},text:Dg({},U0.text,{}),hovertext:Dg({},U0.hovertext,{}),hovertemplate:w_t({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:U0.zorder}});var _E=Te((Sur,b1e)=>{"use strict";b1e.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var bE=Te((Mur,S1e)=>{"use strict";var V0=ei(),A_t=$l(),T_t=jl(),S_t=Pm(),M_t=Gb(),w1e=L3(),xE=gE();function E_t(e,t,r,n){function i(p,x){return V0.coerce(e,t,xE,p,x)}if(A1e(e,t,i,n),t.visible!==!1){S_t(e,t,n,i),i("xhoverformat"),i("yhoverformat");var a=t._hasPreCompStats;a&&(i("lowerfence"),i("upperfence")),i("line.color",(e.marker||{}).color||r),i("line.width"),i("fillcolor",T_t.addOpacity(t.line.color,.5));var o=!1;if(a){var s=i("mean"),u=i("sd");s&&s.length&&(o=!0,u&&u.length&&(o="sd"))}i("whiskerwidth");var l=i("sizemode"),f;l==="quartiles"&&(f=i("boxmean",o)),i("showwhiskers",l==="quartiles"),(l==="sd"||f==="sd")&&i("sdmultiple"),i("width"),i("quartilemethod");var c=!1;if(a){var h=i("notchspan");h&&h.length&&(c=!0)}else V0.validate(e.notchwidth,xE.notchwidth)&&(c=!0);var d=i("notched",c);d&&i("notchwidth"),T1e(e,t,i,{prefix:"box"}),i("zorder")}}function A1e(e,t,r,n){function i(P){var A=0;return P&&P.length&&(A+=1,V0.isArrayOrTypedArray(P[0])&&P[0].length&&(A+=1)),A}function a(P){return V0.validate(e[P],xE[P])}var o=r("y"),s=r("x"),u;if(t.type==="box"){var l=r("q1"),f=r("median"),c=r("q3");t._hasPreCompStats=l&&l.length&&f&&f.length&&c&&c.length,u=Math.min(V0.minRowLength(l),V0.minRowLength(f),V0.minRowLength(c))}var h=i(o),d=i(s),p=h&&V0.minRowLength(o),x=d&&V0.minRowLength(s),b=n.calendar,v={autotypenumbers:n.autotypenumbers},k,E;if(t._hasPreCompStats)switch(String(d)+String(h)){case"00":var T=a("x0")||a("dx"),L=a("y0")||a("dy");L&&!T?k="h":k="v",E=u;break;case"10":k="v",E=Math.min(u,x);break;case"20":k="h",E=Math.min(u,s.length);break;case"01":k="h",E=Math.min(u,p);break;case"02":k="v",E=Math.min(u,o.length);break;case"12":k="v",E=Math.min(u,x,o.length);break;case"21":k="h",E=Math.min(u,s.length,p);break;case"11":E=0;break;case"22":var _=!1,C;for(C=0;C0?(k="v",d>0?E=Math.min(x,p):E=Math.min(p)):d>0?(k="h",E=Math.min(x)):E=0;if(!E){t.visible=!1;return}t._length=E;var S=r("orientation",k);t._hasPreCompStats?S==="v"&&d===0?(r("x0",0),r("dx",1)):S==="h"&&h===0&&(r("y0",0),r("dy",1)):S==="v"&&d===0?r("x0"):S==="h"&&h===0&&r("y0");var m=A_t.getComponentMethod("calendars","handleTraceDefaults");m(e,t,["x","y"],n)}function T1e(e,t,r,n){var i=n.prefix,a=V0.coerce2(e,t,xE,"marker.outliercolor"),o=r("marker.line.outliercolor"),s="outliers";t._hasPreCompStats?s="all":(a||o)&&(s="suspectedoutliers");var u=r(i+"points",s);u?(r("jitter",u==="all"?.3:0),r("pointpos",u==="all"?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.angle"),r("marker.color",t.line.color),r("marker.line.color"),r("marker.line.width"),u==="suspectedoutliers"&&(r("marker.line.outliercolor",t.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete t.marker;var l=r("hoveron");(l==="all"||l.indexOf("points")!==-1)&&r("hovertemplate"),V0.coerceSelectionMarkerOpacity(t,r)}function k_t(e,t){var r,n;function i(u){return V0.coerce(n._input,n,xE,u)}for(var a=0;a{"use strict";var C_t=$l(),L_t=ei(),P_t=_E();function M1e(e,t,r,n,i){for(var a=i+"Layout",o=!1,s=0;s{"use strict";var qV=ku(),WI=wu(),I_t=Im(),Th=ei(),i0=nf().BADNUM,Fg=Th._;F1e.exports=function(t,r){var n=t._fullLayout,i=WI.getFromId(t,r.xaxis||"x"),a=WI.getFromId(t,r.yaxis||"y"),o=[],s=r.type==="violin"?"_numViolins":"_numBoxes",u,l,f,c,h,d,p;r.orientation==="h"?(f=i,c="x",h=a,d="y",p=!!r.yperiodalignment):(f=a,c="y",h=i,d="x",p=!!r.xperiodalignment);var x=R_t(r,d,h,n[s]),b=x[0],v=x[1],k=Th.distinctVals(b,h),E=k.vals,T=k.minDiff/2,L,_,C,S,m,P,A=(r.boxpoints||r.points)==="all"?Th.identity:function(Nt){return Nt.vL.uf};if(r._hasPreCompStats){var B=r[c],F=function(Nt){return f.d2c((r[Nt]||[])[u])},U=1/0,G=-1/0;for(u=0;u=L.q1&&L.q3>=L.med){var H=F("lowerfence");L.lf=H!==i0&&H<=L.q1?H:P1e(L,C,S);var N=F("upperfence");L.uf=N!==i0&&N>=L.q3?N:z1e(L,C,S);var W=F("mean");L.mean=W!==i0?W:S?Th.mean(C,S):(L.q1+L.q3)/2;var re=F("sd");L.sd=W!==i0&&re>=0?re:S?Th.stdev(C,S,L.mean):L.q3-L.q1,L.lo=I1e(L),L.uo=R1e(L);var ae=F("notchspan");ae=ae!==i0&&ae>0?ae:D1e(L,S),L.ln=L.med-ae,L.un=L.med+ae;var be=L.lf,Ce=L.uf;r.boxpoints&&C.length&&(be=Math.min(be,C[0]),Ce=Math.max(Ce,C[S-1])),r.notched&&(be=Math.min(be,L.ln),Ce=Math.max(Ce,L.un)),L.min=be,L.max=Ce}else{Th.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+L.q1,"median = "+L.med,"q3 = "+L.q3].join(` +`));var Le;L.med!==i0?Le=L.med:L.q1!==i0?L.q3!==i0?Le=(L.q1+L.q3)/2:Le=L.q1:L.q3!==i0?Le=L.q3:Le=0,L.med=Le,L.q1=L.q3=Le,L.lf=L.uf=Le,L.mean=L.sd=Le,L.ln=L.un=Le,L.min=L.max=Le}U=Math.min(U,L.min),G=Math.max(G,L.max),L.pts2=_.filter(A),o.push(L)}}r._extremes[f._id]=WI.findExtremes(f,[U,G],{padded:!0})}else{var pe=f.makeCalcdata(r,c),te=D_t(E,T),ke=E.length,Ee=F_t(ke);for(u=0;u=0&&Me0){if(L={},L.pos=L[d]=E[u],_=L.pts=Ee[u].sort(C1e),C=L[c]=_.map(L1e),S=C.length,L.min=C[0],L.max=C[S-1],L.mean=Th.mean(C,S),L.sd=Th.stdev(C,S,L.mean)*r.sdmultiple,L.med=Th.interp(C,.5),S%2&&(Ve||ce)){var Je,nt;Ve?(Je=C.slice(0,S/2),nt=C.slice(S/2+1)):ce&&(Je=C.slice(0,S/2+1),nt=C.slice(S/2)),L.q1=Th.interp(Je,.5),L.q3=Th.interp(nt,.5)}else L.q1=Th.interp(C,.25),L.q3=Th.interp(C,.75);L.lf=P1e(L,C,S),L.uf=z1e(L,C,S),L.lo=I1e(L),L.uo=R1e(L);var gt=D1e(L,S);L.ln=L.med-gt,L.un=L.med+gt,Ne=Math.min(Ne,L.ln),Fe=Math.max(Fe,L.un),L.pts2=_.filter(A),o.push(L)}r.notched&&Th.isTypedArray(pe)&&(pe=Array.from(pe)),r._extremes[f._id]=WI.findExtremes(f,r.notched?pe.concat([Ne,Fe]):pe,{padded:!0})}return B_t(o,r),o.length>0?(o[0].t={num:n[s],dPos:T,posLetter:d,valLetter:c,labels:{med:Fg(t,"median:"),min:Fg(t,"min:"),q1:Fg(t,"q1:"),q3:Fg(t,"q3:"),max:Fg(t,"max:"),mean:r.boxmean==="sd"||r.sizemode==="sd"?Fg(t,"mean \xB1 \u03C3:").replace("\u03C3",r.sdmultiple===1?"\u03C3":r.sdmultiple+"\u03C3"):Fg(t,"mean:"),lf:Fg(t,"lower fence:"),uf:Fg(t,"upper fence:")}},n[s]++,o):[{t:{empty:!0}}]};function R_t(e,t,r,n){var i=t in e,a=t+"0"in e,o="d"+t in e;if(i||a&&o){var s=r.makeCalcdata(e,t),u=I_t(e,r,t,s).vals;return[u,s]}var l;a?l=e[t+"0"]:"name"in e&&(r.type==="category"||qV(e.name)&&["linear","log"].indexOf(r.type)!==-1||Th.isDateTime(e.name)&&r.type==="date")?l=e.name:l=n;for(var f=r.type==="multicategory"?r.r2c_just_indices(l):r.d2c(l,0,e[t+"calendar"]),c=e._length,h=new Array(c),d=0;d{"use strict";var B1e=wu(),O_t=ei(),q_t=qb().getAxisGroup,O1e=["v","h"];function N_t(e,t){for(var r=e.calcdata,n=t.xaxis,i=t.yaxis,a=0;a1,k=1-a[e+"gap"],E=1-a[e+"groupgap"];for(u=0;u0;if(C==="positive"?(N=S*(_?1:.5),ae=re,W=ae=P):C==="negative"?(N=ae=P,W=S*(_?1:.5),be=re):(N=W=S,ae=be=re),Ee){var Me=T.pointpos,Ne=T.jitter,Fe=T.marker.size/2,ye=0;Me+Ne>=0&&(ye=re*(Me+Ne),ye>N?(ke=!0,pe=Fe,Ce=ye):ye>ae&&(pe=Fe,Ce=N)),ye<=N&&(Ce=N);var Ve=0;Me-Ne<=0&&(Ve=-re*(Me-Ne),Ve>W?(ke=!0,te=Fe,Le=Ve):Ve>be&&(te=Fe,Le=W)),Ve<=W&&(Le=W)}else Ce=N,Le=W;var ce=new Array(f.length);for(l=0;l{"use strict";var MA=Jl(),n2=ei(),U_t=Mu(),U1e=5,V_t=.01;function G_t(e,t,r,n){var i=e._context.staticPlot,a=t.xaxis,o=t.yaxis;n2.makeTraceGroups(n,r,"trace boxes").each(function(s){var u=MA.select(this),l=s[0],f=l.t,c=l.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){u.remove();return}var h,d;c.orientation==="h"?(h=o,d=a):(h=a,d=o),V1e(u,{pos:h,val:d},c,f,i),G1e(u,{x:a,y:o},c,f),H1e(u,{pos:h,val:d},c,f)})}function V1e(e,t,r,n,i){var a=r.orientation==="h",o=t.val,s=t.pos,u=!!s.rangebreaks,l=n.bPos,f=n.wdPos||0,c=n.bPosPxOffset||0,h=r.whiskerwidth||0,d=r.showwhiskers!==!1,p=r.notched||!1,x=p?1-2*r.notchwidth:1,b,v;Array.isArray(n.bdPos)?(b=n.bdPos[0],v=n.bdPos[1]):(b=n.bdPos,v=n.bdPos);var k=e.selectAll("path.box").data(r.type!=="violin"||r.box.visible?n2.identity:[]);k.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","box"),k.exit().remove(),k.each(function(E){if(E.empty)return MA.select(this).attr("d","M0,0Z");var T=s.c2l(E.pos+l,!0),L=s.l2p(T-b)+c,_=s.l2p(T+v)+c,C=u?(L+_)/2:s.l2p(T)+c,S=r.whiskerwidth,m=u?L*S+(1-S)*C:s.l2p(T-f)+c,P=u?_*S+(1-S)*C:s.l2p(T+f)+c,A=s.l2p(T-b*x)+c,B=s.l2p(T+v*x)+c,F=r.sizemode==="sd",U=o.c2p(F?E.mean-E.sd:E.q1,!0),G=F?o.c2p(E.mean+E.sd,!0):o.c2p(E.q3,!0),j=n2.constrain(F?o.c2p(E.mean,!0):o.c2p(E.med,!0),Math.min(U,G)+1,Math.max(U,G)-1),H=E.lf===void 0||r.boxpoints===!1||F,N=o.c2p(H?E.min:E.lf,!0),W=o.c2p(H?E.max:E.uf,!0),re=o.c2p(E.ln,!0),ae=o.c2p(E.un,!0);a?MA.select(this).attr("d","M"+j+","+A+"V"+B+"M"+U+","+L+"V"+_+(p?"H"+re+"L"+j+","+B+"L"+ae+","+_:"")+"H"+G+"V"+L+(p?"H"+ae+"L"+j+","+A+"L"+re+","+L:"")+"Z"+(d?"M"+U+","+C+"H"+N+"M"+G+","+C+"H"+W+(h===0?"":"M"+N+","+m+"V"+P+"M"+W+","+m+"V"+P):"")):MA.select(this).attr("d","M"+A+","+j+"H"+B+"M"+L+","+U+"H"+_+(p?"V"+re+"L"+B+","+j+"L"+_+","+ae:"")+"V"+G+"H"+L+(p?"V"+ae+"L"+A+","+j+"L"+L+","+re:"")+"Z"+(d?"M"+C+","+U+"V"+N+"M"+C+","+G+"V"+W+(h===0?"":"M"+m+","+N+"H"+P+"M"+m+","+W+"H"+P):""))})}function G1e(e,t,r,n){var i=t.x,a=t.y,o=n.bdPos,s=n.bPos,u=r.boxpoints||r.points;n2.seedPseudoRandom();var l=function(h){return h.forEach(function(d){d.t=n,d.trace=r}),h},f=e.selectAll("g.points").data(u?l:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(h){var d,p=h.pts2,x=Math.max((h.max-h.min)/10,h.q3-h.q1),b=x*1e-9,v=x*V_t,k=[],E=0,T;if(r.jitter){if(x===0)for(E=1,k=new Array(p.length),d=0;dh.lo&&(P.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(U_t.translatePoints,i,a)}function H1e(e,t,r,n){var i=t.val,a=t.pos,o=!!a.rangebreaks,s=n.bPos,u=n.bPosPxOffset||0,l=r.boxmean||(r.meanline||{}).visible,f,c;Array.isArray(n.bdPos)?(f=n.bdPos[0],c=n.bdPos[1]):(f=n.bdPos,c=n.bdPos);var h=e.selectAll("path.mean").data(r.type==="box"&&r.boxmean||r.type==="violin"&&r.box.visible&&r.meanline.visible?n2.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each(function(d){var p=a.c2l(d.pos+s,!0),x=a.l2p(p-f)+u,b=a.l2p(p+c)+u,v=o?(x+b)/2:a.l2p(p)+u,k=i.c2p(d.mean,!0),E=i.c2p(d.mean-d.sd,!0),T=i.c2p(d.mean+d.sd,!0);r.orientation==="h"?MA.select(this).attr("d","M"+k+","+x+"V"+b+(l==="sd"?"m0,0L"+E+","+v+"L"+k+","+x+"L"+T+","+v+"Z":"")):MA.select(this).attr("d","M"+x+","+k+"H"+b+(l==="sd"?"m0,0L"+v+","+E+"L"+x+","+k+"L"+v+","+T+"Z":""))})}W1e.exports={plot:G_t,plotBoxAndWhiskers:V1e,plotPoints:G1e,plotBoxMean:H1e}});var ZI=Te((Pur,j1e)=>{"use strict";var UV=Jl(),VV=jl(),GV=Mu();function H_t(e,t,r){var n=r||UV.select(e).selectAll("g.trace.boxes");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=UV.select(this),o=i[0].trace,s=o.line.width;function u(c,h,d,p){c.style("stroke-width",h+"px").call(VV.stroke,d).call(VV.fill,p)}var l=a.selectAll("path.box");if(o.type==="candlestick")l.each(function(c){if(!c.empty){var h=UV.select(this),d=o[c.dir];u(h,d.line.width,d.line.color,d.fillcolor),h.style("opacity",o.selectedpoints&&!c.selected?.3:1)}});else{u(l,s,o.line.color,o.fillcolor),a.selectAll("path.mean").style({"stroke-width":s,"stroke-dasharray":2*s+"px,"+s+"px"}).call(VV.stroke,o.line.color);var f=a.selectAll("path.point");GV.pointStyle(f,o,e)}})}function W_t(e,t,r){var n=t[0].trace,i=r.selectAll("path.point");n.selectedpoints?GV.selectedPointStyle(i,n):GV.pointStyle(i,n,e)}j1e.exports={style:H_t,styleOnSelect:W_t}});var WV=Te((zur,K1e)=>{"use strict";var j_t=wu(),HV=ei(),S_=Xc(),X1e=jl(),X_t=HV.fillText;function Z_t(e,t,r,n){var i=e.cd,a=i[0].trace,o=a.hoveron,s=[],u;return o.indexOf("boxes")!==-1&&(s=s.concat(Z1e(e,t,r,n))),o.indexOf("points")!==-1&&(u=Y1e(e,t,r)),n==="closest"?u?[u]:s:(u&&s.push(u),s)}function Z1e(e,t,r,n){var i=e.cd,a=e.xa,o=e.ya,s=i[0].trace,u=i[0].t,l=s.type==="violin",f,c,h,d,p,x,b,v,k,E,T,L=u.bdPos,_,C,S=u.wHover,m=function(Fe){return h.c2l(Fe.pos)+u.bPos-h.c2l(x)};l&&s.side!=="both"?(s.side==="positive"&&(k=function(Fe){var ye=m(Fe);return S_.inbox(ye,ye+S,E)},_=L,C=0),s.side==="negative"&&(k=function(Fe){var ye=m(Fe);return S_.inbox(ye-S,ye,E)},_=0,C=L)):(k=function(Fe){var ye=m(Fe);return S_.inbox(ye-S,ye+S,E)},_=C=L);var P;l?P=function(Fe){return S_.inbox(Fe.span[0]-p,Fe.span[1]-p,E)}:P=function(Fe){return S_.inbox(Fe.min-p,Fe.max-p,E)},s.orientation==="h"?(p=t,x=r,b=P,v=k,f="y",h=o,c="x",d=a):(p=r,x=t,b=k,v=P,f="x",h=a,c="y",d=o);var A=Math.min(1,L/Math.abs(h.r2c(h.range[1])-h.r2c(h.range[0])));E=e.maxHoverDistance-A,T=e.maxSpikeDistance-A;function B(Fe){return(b(Fe)+v(Fe))/2}var F=S_.getDistanceFunction(n,b,v,B);if(S_.getClosest(i,F,e),e.index===!1)return[];var U=i[e.index],G=s.line.color,j=(s.marker||{}).color;X1e.opacity(G)&&s.line.width?e.color=G:X1e.opacity(j)&&s.boxpoints?e.color=j:e.color=s.fillcolor,e[f+"0"]=h.c2p(U.pos+u.bPos-C,!0),e[f+"1"]=h.c2p(U.pos+u.bPos+_,!0),e[f+"LabelVal"]=U.orig_p!==void 0?U.orig_p:U.pos;var H=f+"Spike";e.spikeDistance=B(U)*T/E,e[H]=h.c2p(U.pos,!0);var N=s.boxmean||s.sizemode==="sd"||(s.meanline||{}).visible,W=s.boxpoints||s.points,re=W&&N?["max","uf","q3","med","mean","q1","lf","min"]:W&&!N?["max","uf","q3","med","q1","lf","min"]:!W&&N?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],ae=d.range[1]{"use strict";J1e.exports=function(t,r){return r.hoverOnBox&&(t.hoverOnBox=r.hoverOnBox),"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var jV=Te((Rur,Q1e)=>{"use strict";Q1e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,u;if(r===!1)for(s=0;s{"use strict";e_e.exports={attributes:gE(),layoutAttributes:_E(),supplyDefaults:bE().supplyDefaults,crossTraceDefaults:bE().crossTraceDefaults,supplyLayoutDefaults:HI().supplyLayoutDefaults,calc:NV(),crossTraceCalc:jI().crossTraceCalc,plot:XI().plot,style:ZI().style,styleOnSelect:ZI().styleOnSelect,hoverPoints:WV().hoverPoints,eventData:$1e(),selectPoints:jV(),moduleType:"trace",name:"box",basePlotModule:Ah(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var i_e=Te((Fur,r_e)=>{"use strict";r_e.exports=t_e()});var EA=Te((Bur,n_e)=>{"use strict";var n0=Zc(),Y_t=Vf(),K_t=gc(),XV=jc().axisHoverFormat,J_t=Nu().hovertemplateAttrs,$_t=Nu().texttemplateAttrs,Q_t=nc(),Lv=Su().extendFlat;n_e.exports=Lv({z:{valType:"data_array",editType:"calc"},x:Lv({},n0.x,{impliedEdits:{xtype:"array"}}),x0:Lv({},n0.x0,{impliedEdits:{xtype:"scaled"}}),dx:Lv({},n0.dx,{impliedEdits:{xtype:"scaled"}}),y:Lv({},n0.y,{impliedEdits:{ytype:"array"}}),y0:Lv({},n0.y0,{impliedEdits:{ytype:"scaled"}}),dy:Lv({},n0.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:Lv({},n0.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:Lv({},n0.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:Lv({},n0.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:Lv({},n0.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:Lv({},n0.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:Lv({},n0.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:XV("x"),yhoverformat:XV("y"),zhoverformat:XV("z",1),hovertemplate:J_t(),texttemplate:$_t({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:K_t({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Lv({},Y_t.showlegend,{dflt:!1}),zorder:n0.zorder},Q_t("",{cLetter:"z",autoColorDflt:!1}))});var KI=Te((Our,o_e)=>{"use strict";var ext=ku(),YI=ei(),txt=$l();o_e.exports=function(t,r,n,i,a,o){var s=n("z");a=a||"x",o=o||"y";var u,l;if(s===void 0||!s.length)return 0;if(YI.isArray1D(s)){u=n(a),l=n(o);var f=YI.minRowLength(u),c=YI.minRowLength(l);if(f===0||c===0)return 0;r._length=Math.min(f,c,s.length)}else{if(u=a_e(a,n),l=a_e(o,n),!rxt(s))return 0;n("transpose"),r._length=null}var h=txt.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],i),!0};function a_e(e,t){var r=t(e),n=r?t(e+"type","array"):"scaled";return n==="scaled"&&(t(e+"0"),t("d"+e)),r}function rxt(e){for(var t=!0,r=!1,n=!1,i,a=0;a0&&(r=!0);for(var o=0;o{"use strict";var s_e=ei();l_e.exports=function(t,r){t("texttemplate");var n=s_e.extendFlat({},r.font,{color:"auto",size:"auto"});s_e.coerceFont(t,"textfont",n)}});var ZV=Te((Nur,u_e)=>{"use strict";u_e.exports=function(t,r,n){var i=n("zsmooth");i===!1&&(n("xgap"),n("ygap")),n("zhoverformat")}});var h_e=Te((Uur,c_e)=>{"use strict";var f_e=ei(),ixt=KI(),nxt=wE(),axt=Pm(),oxt=ZV(),sxt=ed(),lxt=EA();c_e.exports=function(t,r,n,i){function a(s,u){return f_e.coerce(t,r,lxt,s,u)}var o=ixt(t,r,a,i);if(!o){r.visible=!1;return}axt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hovertemplate"),nxt(a,i),oxt(t,r,a,i),a("hoverongaps"),a("connectgaps",f_e.isArray1D(r.z)&&r.zsmooth!==!1),sxt(t,r,i,a,{prefix:"",cLetter:"z"}),a("zorder")}});var YV=Te((Vur,d_e)=>{"use strict";var kA=ku();d_e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,n){var i=n[t];return kA(i)?(i=Number(i),r[e]+=i,i):0},avg:function(e,t,r,n,i){var a=n[t];return kA(a)&&(a=Number(a),r[e]+=a,i[e]++),0},min:function(e,t,r,n){var i=n[t];if(kA(i))if(i=Number(i),kA(r[e])){if(r[e]>i){var a=i-r[e];return r[e]=i,a}}else return r[e]=i,i;return 0},max:function(e,t,r,n){var i=n[t];if(kA(i))if(i=Number(i),kA(r[e])){if(r[e]{"use strict";p_e.exports={percent:function(e,t){for(var r=e.length,n=100/t,i=0;i{"use strict";v_e.exports=function(t,r){for(var n=t.length,i=0,a=0;a{"use strict";var CA=nf(),a2=CA.ONEAVGYEAR,m_e=CA.ONEAVGMONTH,$I=CA.ONEDAY,y_e=CA.ONEHOUR,g_e=CA.ONEMIN,__e=CA.ONESEC,x_e=wu().tickIncrement;A_e.exports=function(t,r,n,i,a){var o=-1.1*r,s=-.1*r,u=t-s,l=n[0],f=n[1],c=Math.min(JI(l+s,l+u,i,a),JI(f+s,f+u,i,a)),h=Math.min(JI(l+o,l+s,i,a),JI(f+o,f+s,i,a)),d,p;if(c>h&&h$I){var x=d===a2?1:6,b=d===a2?"M12":"M1";return function(v,k){var E=i.c2d(v,a2,a),T=E.indexOf("-",x);T>0&&(E=E.substr(0,T));var L=i.d2c(E,0,a);if(L__e?e>$I?e>a2*1.1?a2:e>m_e*1.1?m_e:$I:e>y_e?y_e:e>g_e?g_e:__e:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function uxt(e,t,r,n,i,a){if(n&&e>$I){var o=w_e(t,i,a),s=w_e(r,i,a),u=e===a2?0:1;return o[u]!==s[u]}return Math.floor(r/e)-Math.floor(t/e)>.1}function w_e(e,t,r){var n=t.c2d(e,a2,r).split("-");return n[0]===""&&(n.unshift(),n[0]="-"+n[0]),n}});var tG=Te((jur,M_e)=>{"use strict";var QV=ku(),Vp=ei(),T_e=$l(),G0=wu(),fxt=pE(),S_e=YV(),cxt=KV(),hxt=JV(),dxt=$V();function pxt(e,t){var r=[],n=[],i=t.orientation==="h",a=G0.getFromId(e,i?t.yaxis:t.xaxis),o=i?"y":"x",s={x:"y",y:"x"}[o],u=t[o+"calendar"],l=t.cumulative,f,c=eG(e,t,a,o),h=c[0],d=c[1],p=typeof h.size=="string",x=[],b=p?x:h,v=[],k=[],E=[],T=0,L=t.histnorm,_=t.histfunc,C=L.indexOf("density")!==-1,S,m,P;l.enabled&&C&&(L=L.replace(/ ?density$/,""),C=!1);var A=_==="max"||_==="min",B=A?null:0,F=S_e.count,U=cxt[L],G=!1,j=function(ye){return a.r2c(ye,0,u)},H;for(Vp.isArrayOrTypedArray(t[s])&&_!=="count"&&(H=t[s],G=_==="avg",F=S_e[_]),f=j(h.start),m=j(h.end)+(f-G0.tickIncrement(f,h.size,!1,u))/1e6;f=0&&P=Me;f--)if(n[f]){Ne=f;break}for(f=Me;f<=Ne;f++)if(QV(r[f])&&QV(n[f])){var Fe={p:r[f],s:n[f],b:0};l.enabled||(Fe.pts=E[f],ae?Fe.ph0=Fe.ph1=E[f].length?d[E[f][0]]:r[f]:(t._computePh=!0,Fe.ph0=te(x[f]),Fe.ph1=te(x[f+1],!0))),Ee.push(Fe)}return Ee.length===1&&(Ee[0].width1=G0.tickIncrement(Ee[0].p,h.size,!1,u)-Ee[0].p),fxt(Ee,t),Vp.isArrayOrTypedArray(t.selectedpoints)&&Vp.tagSelected(Ee,t,Le),Ee}function eG(e,t,r,n,i){var a=n+"bins",o=e._fullLayout,s=t["_"+n+"bingroup"],u=o._histogramBinOpts[s],l=o.barmode==="overlay",f,c,h,d,p,x,b,v=function(pe){return r.r2c(pe,0,d)},k=function(pe){return r.c2r(pe,0,d)},E=r.type==="date"?function(pe){return pe||pe===0?Vp.cleanDate(pe,null,d):null}:function(pe){return QV(pe)?Number(pe):null};function T(pe,te,ke){te[pe+"Found"]?(te[pe]=E(te[pe]),te[pe]===null&&(te[pe]=ke[pe])):(x[pe]=te[pe]=ke[pe],Vp.nestedProperty(c[0],a+"."+pe).set(ke[pe]))}if(t["_"+n+"autoBinFinished"])delete t["_"+n+"autoBinFinished"];else{c=u.traces;var L=[],_=!0,C=!1,S=!1;for(f=0;fr.r2l(H)&&(W=G0.tickIncrement(W,u.size,!0,d)),F.start=r.l2r(W),j||Vp.nestedProperty(t,a+".start").set(F.start)}var re=u.end,ae=r.r2l(B.end),be=ae!==void 0;if((u.endFound||be)&&ae!==r.r2l(re)){var Ce=be?ae:Vp.aggNums(Math.max,null,p);F.end=r.l2r(Ce),be||Vp.nestedProperty(t,a+".start").set(F.end)}var Le="autobin"+n;return t._input[Le]===!1&&(t._input[a]=Vp.extendFlat({},t[a]||{}),delete t._input[Le],delete t[Le]),[F,p]}function vxt(e,t,r,n,i){var a=e._fullLayout,o=mxt(e,t),s=!1,u=1/0,l=[t],f,c,h;for(f=0;f=0;n--)s(n);else if(t==="increasing"){for(n=1;n=0;n--)e[n]+=e[n+1];r==="exclude"&&(e.push(0),e.shift())}}M_e.exports={calc:pxt,calcAllAutoBins:eG}});var R_e=Te((Xur,I_e)=>{"use strict";var E_e=ei(),LA=wu(),k_e=YV(),gxt=KV(),_xt=JV(),xxt=$V(),C_e=tG().calcAllAutoBins;I_e.exports=function(t,r){var n=LA.getFromId(t,r.xaxis),i=LA.getFromId(t,r.yaxis),a=r.xcalendar,o=r.ycalendar,s=function(Ue){return n.r2c(Ue,0,a)},u=function(Ue){return i.r2c(Ue,0,o)},l=function(Ue){return n.c2r(Ue,0,a)},f=function(Ue){return i.c2r(Ue,0,o)},c,h,d,p,x=C_e(t,r,n,"x"),b=x[0],v=x[1],k=C_e(t,r,i,"y"),E=k[0],T=k[1],L=r._length;v.length>L&&v.splice(L,v.length-L),T.length>L&&T.splice(L,T.length-L);var _=[],C=[],S=[],m=typeof b.size=="string",P=typeof E.size=="string",A=[],B=[],F=m?A:b,U=P?B:E,G=0,j=[],H=[],N=r.histnorm,W=r.histfunc,re=N.indexOf("density")!==-1,ae=W==="max"||W==="min",be=ae?null:0,Ce=k_e.count,Le=gxt[N],pe=!1,te=[],ke=[],Ee="z"in r?r.z:"marker"in r&&Array.isArray(r.marker.color)?r.marker.color:"";Ee&&W!=="count"&&(pe=W==="avg",Ce=k_e[W]);var Me=b.size,Ne=s(b.start),Fe=s(b.end)+(Ne-LA.tickIncrement(Ne,Me,!1,a))/1e6;for(c=Ne;c=0&&d=0&&p{"use strict";var zy=ei(),D_e=nf().BADNUM,F_e=Im();B_e.exports=function(t,r,n,i,a,o){var s=t._length,u=r.makeCalcdata(t,i),l=n.makeCalcdata(t,a);u=F_e(t,r,i,u).vals,l=F_e(t,n,a,l).vals;var f=t.text,c=f!==void 0&&zy.isArray1D(f),h=t.hovertext,d=h!==void 0&&zy.isArray1D(h),p,x,b=zy.distinctVals(u),v=b.vals,k=zy.distinctVals(l),E=k.vals,T=[],L,_,C=E.length,S=v.length;for(p=0;p{"use strict";var bxt=ku(),wxt=ei(),eR=nf().BADNUM;O_e.exports=function(t,r,n,i){var a,o,s,u,l,f;function c(v){if(bxt(v))return+v}if(r&&r.transpose){for(a=0,l=0;l{"use strict";var Axt=ei(),q_e=.01,Txt=[[-1,0],[1,0],[0,-1],[0,1]];function Sxt(e){return .5-.25*Math.min(1,e*.5)}U_e.exports=function(t,r){var n=1,i;for(N_e(t,r),i=0;iq_e;i++)n=N_e(t,r,Sxt(n));return n>q_e&&Axt.log("interp2d didn't converge quickly",n),t};function N_e(e,t,r){var n=0,i,a,o,s,u,l,f,c,h,d,p,x,b;for(s=0;sx&&(n=Math.max(n,Math.abs(e[a][o]-p)/(b-x))))}return n}});var iR=Te((Jur,V_e)=>{"use strict";var Mxt=ei().maxRowLength;V_e.exports=function(t){var r=[],n={},i=[],a=t[0],o=[],s=[0,0,0],u=Mxt(t),l,f,c,h,d,p,x,b;for(f=0;f=0;d--)h=i[d],f=h[0],c=h[1],p=((n[[f-1,c]]||s)[2]+(n[[f+1,c]]||s)[2]+(n[[f,c-1]]||s)[2]+(n[[f,c+1]]||s)[2])/20,p&&(x[h]=[f,c,p],i.splice(d,1),b=!0);if(!b)throw"findEmpties iterated with no new neighbors";for(h in x)n[h]=x[h],r.push(x[h])}return r.sort(function(v,k){return k[2]-v[2]})}});var rG=Te(($ur,W_e)=>{"use strict";var G_e=$l(),H_e=ei().isArrayOrTypedArray;W_e.exports=function(t,r,n,i,a,o){var s=[],u=G_e.traceIs(t,"contour"),l=G_e.traceIs(t,"histogram"),f,c,h,d=H_e(r)&&r.length>1;if(d&&!l&&o.type!=="category"){var p=r.length;if(p<=a){if(u)s=Array.from(r).slice(0,a);else if(a===1)o.type==="log"?s=[.5*r[0],2*r[0]]:s=[r[0]-.5,r[0]+.5];else if(o.type==="log"){for(s=[Math.pow(r[0],1.5)/Math.pow(r[1],.5)],h=1;h{"use strict";var j_e=$l(),iG=ei(),nR=wu(),X_e=Im(),Ext=R_e(),kxt=Dp(),Cxt=QI(),Lxt=tR(),Pxt=rR(),zxt=iR(),aR=rG(),nG=nf().BADNUM;Y_e.exports=function(t,r){var n=nR.getFromId(t,r.xaxis||"x"),i=nR.getFromId(t,r.yaxis||"y"),a=j_e.traceIs(r,"contour"),o=j_e.traceIs(r,"histogram"),s=a?"best":r.zsmooth,u,l,f,c,h,d,p,x,b,v,k;if(n._minDtick=0,i._minDtick=0,o)k=Ext(t,r),c=k.orig_x,u=k.x,l=k.x0,f=k.dx,x=k.orig_y,h=k.y,d=k.y0,p=k.dy,b=k.z;else{var E=r.z;iG.isArray1D(E)?(Cxt(r,n,i,"x","y",["z"]),u=r._x,h=r._y,E=r._z):(c=r.x?n.makeCalcdata(r,"x"):[],x=r.y?i.makeCalcdata(r,"y"):[],u=X_e(r,n,"x",c).vals,h=X_e(r,i,"y",x).vals,r._x=u,r._y=h),l=r.x0,f=r.dx,d=r.y0,p=r.dy,b=Lxt(E,r,n,i)}(n.rangebreaks||i.rangebreaks)&&(b=Ixt(u,h,b),o||(u=Z_e(u),h=Z_e(h),r._x=u,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=zxt(b),Pxt(b,r._emptypoints));function T(F){s=r._input.zsmooth=r.zsmooth=!1,iG.warn('cannot use zsmooth: "fast": '+F)}function L(F){if(F.length>1){var U=(F[F.length-1]-F[0])/(F.length-1),G=Math.abs(U/100);for(v=0;vG)return!1}return!0}r._islinear=!1,n.type==="log"||i.type==="log"?s==="fast"&&T("log axis found"):L(u)?L(h)?r._islinear=!0:s==="fast"&&T("y scale is not linear"):s==="fast"&&T("x scale is not linear");var _=iG.maxRowLength(b),C=r.xtype==="scaled"?"":u,S=aR(r,C,l,f,_,n),m=r.ytype==="scaled"?"":h,P=aR(r,m,d,p,b.length,i);r._extremes[n._id]=nR.findExtremes(n,S),r._extremes[i._id]=nR.findExtremes(i,P);var A={x:S,y:P,z:b,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&c&&(A.orig_x=c),r.yperiodalignment&&x&&(A.orig_y=x),C&&C.length===S.length-1&&(A.xCenter=C),m&&m.length===P.length-1&&(A.yCenter=m),o&&(A.xRanges=k.xRanges,A.yRanges=k.yRanges,A.pts=k.pts),a||kxt(t,r,{vals:b,cLetter:"z"}),a&&r.contours&&r.contours.coloring==="heatmap"){var B={type:r.type==="contour"?"heatmap":"histogram2d",xcalendar:r.xcalendar,ycalendar:r.ycalendar};A.xfill=aR(B,C,l,f,_,n),A.yfill=aR(B,m,d,p,b.length,i)}return[A]};function Z_e(e){for(var t=[],r=e.length,n=0;n{"use strict";sR.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]];sR.STYLE=sR.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var oG=Te((tfr,J_e)=>{"use strict";var K_e=lR(),Rxt=Mu(),aG=ei(),PA=null;function Dxt(){if(PA!==null)return PA;PA=!1;var e=aG.isSafari()||aG.isMacWKWebView()||aG.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(K_e.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")PA=t.some(function(o){return r.apply(null,o)});else{var n=Rxt.tester.append("image").attr("style",K_e.STYLE),i=window.getComputedStyle(n.node()),a=i.imageRendering;PA=t.some(function(o){var s=o[1];return a===s||a===s.toLowerCase()}),n.remove()}}return PA}J_e.exports=Dxt});var uR=Te((rfr,oxe)=>{"use strict";var $_e=Jl(),Fxt=cd(),Bxt=$l(),Oxt=Mu(),qxt=wu(),H0=ei(),Q_e=Zf(),Nxt=eI(),Uxt=jl(),Vxt=_c().extractOpts,Gxt=_c().makeColorScaleFuncFromTrace,Hxt=jv(),Wxt=Qh(),sG=Wxt.LINE_SPACING,jxt=oG(),Xxt=lR().STYLE,nxe="heatmap-label";function axe(e){return e.selectAll("g."+nxe)}function exe(e){axe(e).remove()}oxe.exports=function(e,t,r,n){var i=t.xaxis,a=t.yaxis;H0.makeTraceGroups(n,r,"hm").each(function(o){var s=$_e.select(this),u=o[0],l=u.trace,f=l.xgap||0,c=l.ygap||0,h=u.z,d=u.x,p=u.y,x=u.xCenter,b=u.yCenter,v=Bxt.traceIs(l,"contour"),k=v?"best":l.zsmooth,E=h.length,T=H0.maxRowLength(h),L=!1,_=!1,C,S,m,P,A,B,F,U;for(B=0;C===void 0&&B0;)S=i.c2p(d[B]),B--;for(S0;)A=a.c2p(p[B]),B--;A=i._length||S<=0||P>=a._length||A<=0;if(W){var re=s.selectAll("image").data([]);re.exit().remove(),exe(s);return}var ae,be;G==="fast"?(ae=T,be=E):(ae=H,be=N);var Ce=document.createElement("canvas");Ce.width=ae,Ce.height=be;var Le=Ce.getContext("2d",{willReadFrequently:!0}),pe=Gxt(l,{noNumericCheck:!0,returnArray:!0}),te,ke;G==="fast"?(te=L?function(Ei){return T-1-Ei}:H0.identity,ke=_?function(Ei){return E-1-Ei}:H0.identity):(te=function(Ei){return H0.constrain(Math.round(i.c2p(d[Ei])-C),0,H)},ke=function(Ei){return H0.constrain(Math.round(a.c2p(p[Ei])-P),0,N)});var Ee=ke(0),Me=[Ee,Ee],Ne=L?0:1,Fe=_?0:1,ye=0,Ve=0,ce=0,Je=0,nt,gt,Nt,it,Ye;function kt(Ei,Vi){if(Ei!==void 0){var ti=pe(Ei);return ti[0]=Math.round(ti[0]),ti[1]=Math.round(ti[1]),ti[2]=Math.round(ti[2]),ye+=Vi,Ve+=ti[0]*Vi,ce+=ti[1]*Vi,Je+=ti[2]*Vi,ti}return[0,0,0,0]}function Tt(Ei,Vi,ti,en){var Yr=Ei[ti.bin0];if(Yr===void 0)return kt(void 0,1);var oi=Ei[ti.bin1],Bi=Vi[ti.bin0],an=Vi[ti.bin1],rn=oi-Yr||0,Fi=Bi-Yr||0,Ri;return oi===void 0?an===void 0?Ri=0:Bi===void 0?Ri=2*(an-Yr):Ri=(2*an-Bi-Yr)*2/3:an===void 0?Bi===void 0?Ri=0:Ri=(2*Yr-oi-Bi)*2/3:Bi===void 0?Ri=(2*an-oi-Yr)*2/3:Ri=an+Yr-oi-Bi,kt(Yr+ti.frac*rn+en.frac*(Fi+ti.frac*Ri))}if(G!=="default"){var St=0,Dt;try{Dt=new Uint8Array(ae*be*4)}catch(Ei){Dt=new Array(ae*be*4)}if(G==="smooth"){var Zt=x||d,Et=b||p,Ae=new Array(Zt.length),at=new Array(Et.length),wt=new Array(H),vt=x?rxe:txe,st=b?rxe:txe,Ue,rt,$e;for(B=0;Brr||rr>a._length))for(F=de;FDr||Dr>i._length)){var Mr=Nxt({x:Hr,y:Pt},l,e._fullLayout);Mr.x=Hr,Mr.y=Pt;var Fr=u.z[B][F];Fr===void 0?(Mr.z="",Mr.zLabel=""):(Mr.z=Fr,Mr.zLabel=qxt.tickText(Re,Fr,"hover").text);var di=u.text&&u.text[B]&&u.text[B][F];(di===void 0||di===!1)&&(di=""),Mr.text=di;var Di=H0.texttemplateString(xe,Mr,e._fullLayout._d3locale,Mr,l._meta||{});if(Di){var Ii=Di.split("
"),Ci=Ii.length,nn=0;for(U=0;U{"use strict";sxe.exports={min:"zmin",max:"zmax"}});var fR=Te((nfr,lxe)=>{"use strict";var Zxt=Jl();lxe.exports=function(t){Zxt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var hR=Te((afr,fxe)=>{"use strict";var uxe=Xc(),AE=ei(),cR=AE.isArrayOrTypedArray,Yxt=wu(),Kxt=_c().extractOpts;fxe.exports=function(t,r,n,i,a){a||(a={});var o=a.isContour,s=t.cd[0],u=s.trace,l=t.xa,f=t.ya,c=s.x,h=s.y,d=s.z,p=s.xCenter,x=s.yCenter,b=s.zmask,v=u.zhoverformat,k=c,E=h,T,L,_,C;if(t.index!==!1){try{_=Math.round(t.index[1]),C=Math.round(t.index[0])}catch(re){AE.error("Error hovering on heatmap, pointNumber must be [row,col], found:",t.index);return}if(_<0||_>=d[0].length||C<0||C>d.length)return}else{if(uxe.inbox(r-c[0],r-c[c.length-1],0)>0||uxe.inbox(n-h[0],n-h[h.length-1],0)>0)return;if(o){var S;for(k=[2*c[0]-c[1]],S=1;S{"use strict";cxe.exports={attributes:EA(),supplyDefaults:h_e(),calc:oR(),plot:uR(),colorbar:M_(),style:fR(),hoverPoints:hR(),moduleType:"trace",name:"heatmap",basePlotModule:Ah(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var pxe=Te((sfr,dxe)=>{"use strict";dxe.exports=hxe()});var lG=Te((lfr,vxe)=>{"use strict";vxe.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var yxe=Te((ufr,mxe)=>{"use strict";mxe.exports={eventDataKeys:["binNumber"]}});var dR=Te((ffr,xxe)=>{"use strict";var Pv=Ly(),gxe=jc().axisHoverFormat,Jxt=Nu().hovertemplateAttrs,$xt=Nu().texttemplateAttrs,uG=gc(),_xe=lG(),Qxt=yxe(),fG=Su().extendFlat;xxe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:gxe("x"),yhoverformat:gxe("y"),text:fG({},Pv.text,{}),hovertext:fG({},Pv.hovertext,{}),orientation:Pv.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:_xe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:_xe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:Jxt({},{keys:Qxt.eventDataKeys}),texttemplate:$xt({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),textposition:fG({},Pv.textposition,{arrayOk:!1}),textfont:uG({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:uG({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:uG({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Pv.insidetextanchor,textangle:Pv.textangle,cliponaxis:Pv.cliponaxis,constraintext:Pv.constraintext,marker:Pv.marker,offsetgroup:Pv.offsetgroup,alignmentgroup:Pv.alignmentgroup,selected:Pv.selected,unselected:Pv.unselected,zorder:Pv.zorder}});var Txe=Te((cfr,Axe)=>{"use strict";var bxe=$l(),TE=ei(),wxe=jl(),ebt=r0().handleText,tbt=OI(),rbt=dR();Axe.exports=function(t,r,n,i){function a(k,E){return TE.coerce(t,r,rbt,k,E)}var o=a("x"),s=a("y"),u=a("cumulative.enabled");u&&(a("cumulative.direction"),a("cumulative.currentbin")),a("text");var l=a("textposition");ebt(t,r,i,a,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat");var f=a("orientation",s&&!o?"h":"v"),c=f==="v"?"x":"y",h=f==="v"?"y":"x",d=o&&s?Math.min(TE.minRowLength(o)&&TE.minRowLength(s)):TE.minRowLength(r[c]||[]);if(!d){r.visible=!1;return}r._length=d;var p=bxe.getComponentMethod("calendars","handleTraceDefaults");p(t,r,["x","y"],i);var x=r[h];x&&a("histfunc"),a("histnorm"),a("autobin"+c),tbt(t,r,a,n,i),TE.coerceSelectionMarkerOpacity(r,a);var b=(r.marker.line||{}).color,v=bxe.getComponentMethod("errorbars","supplyDefaults");v(t,r,b||wxe.defaultLine,{axis:"y"}),v(t,r,b||wxe.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var vR=Te((hfr,Exe)=>{"use strict";var SE=ei(),ibt=Wc(),pR=$l().traceIs,nbt=Gb(),abt=r0().validateCornerradius,Sxe=SE.nestedProperty,cG=qb().getAxisGroup,Mxe=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],obt=["x","y"];Exe.exports=function(t,r){var n=r._histogramBinOpts={},i=[],a={},o=[],s,u,l,f,c,h,d;function p(G,j){return SE.coerce(s._input,s,s._module.attributes,G,j)}function x(G){return G.orientation==="v"?"x":"y"}function b(G,j){var H=ibt.getFromTrace({_fullLayout:r},G,j);return H.type}function v(G,j,H){var N=G.uid+"__"+H;j||(j=N);var W=b(G,H),re=G[H+"calendar"]||"",ae=n[j],be=!0;ae&&(W===ae.axType&&re===ae.calendar?(be=!1,ae.traces.push(G),ae.dirs.push(H)):(j=N,W!==ae.axType&&SE.warn(["Attempted to group the bins of trace",G.index,"set on a","type:"+W,"axis","with bins on","type:"+ae.axType,"axis."].join(" ")),re!==ae.calendar&&SE.warn(["Attempted to group the bins of trace",G.index,"set with a",re,"calendar","with bins",ae.calendar?"on a "+ae.calendar+" calendar":"w/o a set calendar"].join(" ")))),be&&(n[j]={traces:[G],dirs:[H],axType:W,calendar:G[H+"calendar"]||""}),G["_"+H+"bingroup"]=j}for(c=0;c{"use strict";var sbt=AA().hoverPoints,lbt=wu().hoverLabelText;kxe.exports=function(t,r,n,i,a){var o=sbt(t,r,n,i,a);if(o){t=o[0];var s=t.cd[t.index],u=t.cd[0].trace;if(!u.cumulative.enabled){var l=u.orientation==="h"?"y":"x";t[l+"Label"]=lbt(t[l+"a"],[s.ph0,s.ph1],u[l+"hoverformat"])}return o}}});var hG=Te((pfr,Lxe)=>{"use strict";Lxe.exports=function(t,r,n,i,a){if(t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"zLabelVal"in r&&(t.z=r.zLabelVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),!(n.cumulative||{}).enabled){var o=Array.isArray(a)?i[0].pts[a[0]][a[1]]:i[a].pts;t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex;var s;if(n._indexToPoints){s=[];for(var u=0;u{"use strict";Pxe.exports={attributes:dR(),layoutAttributes:BI(),supplyDefaults:Txe(),crossTraceDefaults:vR(),supplyLayoutDefaults:zV(),calc:tG().calc,crossTraceCalc:Hb().crossTraceCalc,plot:i2().plot,layerName:"barlayer",style:N0().style,styleOnSelect:N0().styleOnSelect,colorbar:ep(),hoverPoints:Cxe(),selectPoints:TA(),eventData:hG(),moduleType:"trace",name:"histogram",basePlotModule:Ah(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var Rxe=Te((mfr,Ixe)=>{"use strict";Ixe.exports=zxe()});var yR=Te((yfr,Fxe)=>{"use strict";var Vm=dR(),Dxe=lG(),mR=EA(),ubt=Vf(),dG=jc().axisHoverFormat,fbt=Nu().hovertemplateAttrs,cbt=Nu().texttemplateAttrs,hbt=nc(),ME=Su().extendFlat;Fxe.exports=ME({x:Vm.x,y:Vm.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:Vm.histnorm,histfunc:Vm.histfunc,nbinsx:Vm.nbinsx,xbins:Dxe("x"),nbinsy:Vm.nbinsy,ybins:Dxe("y"),autobinx:Vm.autobinx,autobiny:Vm.autobiny,bingroup:ME({},Vm.bingroup,{}),xbingroup:ME({},Vm.bingroup,{}),ybingroup:ME({},Vm.bingroup,{}),xgap:mR.xgap,ygap:mR.ygap,zsmooth:mR.zsmooth,xhoverformat:dG("x"),yhoverformat:dG("y"),zhoverformat:dG("z",1),hovertemplate:fbt({},{keys:"z"}),texttemplate:cbt({arrayOk:!1,editType:"plot"},{keys:"z"}),textfont:mR.textfont,showlegend:ME({},ubt.showlegend,{dflt:!1})},hbt("",{cLetter:"z",autoColorDflt:!1}))});var pG=Te((gfr,Oxe)=>{"use strict";var dbt=$l(),Bxe=ei();Oxe.exports=function(t,r,n,i){var a=n("x"),o=n("y"),s=Bxe.minRowLength(a),u=Bxe.minRowLength(o);if(!s||!u){r.visible=!1;return}r._length=Math.min(s,u);var l=dbt.getComponentMethod("calendars","handleTraceDefaults");l(t,r,["x","y"],i);var f=n("z")||n("marker.color");f&&n("histfunc"),n("histnorm"),n("autobinx"),n("autobiny")}});var Nxe=Te((_fr,qxe)=>{"use strict";var pbt=ei(),vbt=pG(),mbt=ZV(),ybt=ed(),gbt=wE(),_bt=yR();qxe.exports=function(t,r,n,i){function a(o,s){return pbt.coerce(t,r,_bt,o,s)}vbt(t,r,a,i),r.visible!==!1&&(mbt(t,r,a,i),ybt(t,r,i,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),gbt(a,i),a("xhoverformat"),a("yhoverformat"))}});var Gxe=Te((xfr,Vxe)=>{"use strict";var xbt=hR(),Uxe=wu().hoverLabelText;Vxe.exports=function(t,r,n,i,a){var o=xbt(t,r,n,i,a);if(o){t=o[0];var s=t.index,u=s[0],l=s[1],f=t.cd[0],c=f.trace,h=f.xRanges[l],d=f.yRanges[u];return t.xLabel=Uxe(t.xa,[h[0],h[1]],c.xhoverformat),t.yLabel=Uxe(t.ya,[d[0],d[1]],c.yhoverformat),o}}});var Wxe=Te((bfr,Hxe)=>{"use strict";Hxe.exports={attributes:yR(),supplyDefaults:Nxe(),crossTraceDefaults:vR(),calc:oR(),plot:uR(),layerName:"heatmaplayer",colorbar:M_(),style:fR(),hoverPoints:Gxe(),eventData:hG(),moduleType:"trace",name:"histogram2d",basePlotModule:Ah(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var Xxe=Te((wfr,jxe)=>{"use strict";jxe.exports=Wxe()});var gR=Te((Afr,Zxe)=>{"use strict";Zxe.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var EE=Te((Tfr,$xe)=>{"use strict";var id=EA(),_R=Zc(),Kxe=jc(),vG=Kxe.axisHoverFormat,bbt=Kxe.descriptionOnlyNumbers,wbt=nc(),Abt=Id().dash,Tbt=gc(),zA=Su().extendFlat,Jxe=gR(),Sbt=Jxe.COMPARISON_OPS2,Mbt=Jxe.INTERVAL_OPS,Yxe=_R.line;$xe.exports=zA({z:id.z,x:id.x,x0:id.x0,dx:id.dx,y:id.y,y0:id.y0,dy:id.dy,xperiod:id.xperiod,yperiod:id.yperiod,xperiod0:_R.xperiod0,yperiod0:_R.yperiod0,xperiodalignment:id.xperiodalignment,yperiodalignment:id.yperiodalignment,text:id.text,hovertext:id.hovertext,transpose:id.transpose,xtype:id.xtype,ytype:id.ytype,xhoverformat:vG("x"),yhoverformat:vG("y"),zhoverformat:vG("z",1),hovertemplate:id.hovertemplate,texttemplate:zA({},id.texttemplate,{}),textfont:zA({},id.textfont,{}),hoverongaps:id.hoverongaps,connectgaps:zA({},id.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:Tbt({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:bbt("contour label")},operation:{valType:"enumerated",values:[].concat(Sbt).concat(Mbt),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:zA({},Yxe.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:Abt,smoothing:zA({},Yxe.smoothing,{}),editType:"plot"},zorder:_R.zorder},wbt("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var yG=Te((Sfr,ebe)=>{"use strict";var Gp=yR(),Bg=EE(),Ebt=nc(),mG=jc().axisHoverFormat,Qxe=Su().extendFlat;ebe.exports=Qxe({x:Gp.x,y:Gp.y,z:Gp.z,marker:Gp.marker,histnorm:Gp.histnorm,histfunc:Gp.histfunc,nbinsx:Gp.nbinsx,xbins:Gp.xbins,nbinsy:Gp.nbinsy,ybins:Gp.ybins,autobinx:Gp.autobinx,autobiny:Gp.autobiny,bingroup:Gp.bingroup,xbingroup:Gp.xbingroup,ybingroup:Gp.ybingroup,autocontour:Bg.autocontour,ncontours:Bg.ncontours,contours:Bg.contours,line:{color:Bg.line.color,width:Qxe({},Bg.line.width,{dflt:.5}),dash:Bg.line.dash,smoothing:Bg.line.smoothing,editType:"plot"},xhoverformat:mG("x"),yhoverformat:mG("y"),zhoverformat:mG("z",1),hovertemplate:Gp.hovertemplate,texttemplate:Bg.texttemplate,textfont:Bg.textfont},Ebt("",{cLetter:"z",editTypeOverride:"calc"}))});var xR=Te((Mfr,tbe)=>{"use strict";tbe.exports=function(t,r,n,i){var a=i("contours.start"),o=i("contours.end"),s=a===!1||o===!1,u=n("contours.size"),l;s?l=r.autocontour=!0:l=n("autocontour",!1),(l||!u)&&n("ncontours")}});var gG=Te((Efr,rbe)=>{"use strict";var kbt=ei();rbe.exports=function(t,r,n,i){i||(i={});var a=t("contours.showlabels");if(a){var o=r.font;kbt.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:n}}),t("contours.labelformat")}i.hasHover!==!1&&t("zhoverformat")}});var bR=Te((kfr,ibe)=>{"use strict";var Cbt=ed(),Lbt=gG();ibe.exports=function(t,r,n,i,a){var o=n("contours.coloring"),s,u="";o==="fill"&&(s=n("contours.showlines")),s!==!1&&(o!=="lines"&&(u=n("line.color","#000")),n("line.width",.5),n("line.dash")),o!=="none"&&(t.showlegend!==!0&&(r.showlegend=!1),r._dfltShowLegend=!1,Cbt(t,r,i,n,{prefix:"",cLetter:"z"})),n("line.smoothing"),Lbt(n,i,u,a)}});var sbe=Te((Cfr,obe)=>{"use strict";var nbe=ei(),Pbt=pG(),zbt=xR(),Ibt=bR(),Rbt=wE(),abe=yG();obe.exports=function(t,r,n,i){function a(s,u){return nbe.coerce(t,r,abe,s,u)}function o(s){return nbe.coerce2(t,r,abe,s)}Pbt(t,r,a,i),r.visible!==!1&&(zbt(t,r,a,o),Ibt(t,r,a,i),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),r.contours&&r.contours.coloring==="heatmap"&&Rbt(a,i))}});var bG=Te((Lfr,ube)=>{"use strict";var xG=wu(),_G=ei();ube.exports=function(t,r){var n=t.contours;if(t.autocontour){var i=t.zmin,a=t.zmax;(t.zauto||i===void 0)&&(i=_G.aggNums(Math.min,null,r)),(t.zauto||a===void 0)&&(a=_G.aggNums(Math.max,null,r));var o=lbe(i,a,t.ncontours);n.size=o.dtick,n.start=xG.tickFirst(o),o.range.reverse(),n.end=xG.tickFirst(o),n.start===i&&(n.start+=n.size),n.end===a&&(n.end-=n.size),n.start>n.end&&(n.start=n.end=(n.start+n.end)/2),t._input.contours||(t._input.contours={}),_G.extendFlat(t._input.contours,{start:n.start,end:n.end,size:n.size}),t._input.autocontour=!0}else if(n.type!=="constraint"){var s=n.start,u=n.end,l=t._input.contours;if(s>u&&(n.start=l.start=u,u=n.end=l.end=s,s=n.start),!(n.size>0)){var f;s===u?f=1:f=lbe(s,u,t.ncontours).dtick,l.size=n.size=f}}};function lbe(e,t,r){var n={type:"linear",range:[e,t]};return xG.autoTicks(n,(t-e)/(r||15)),n}});var kE=Te((Pfr,fbe)=>{"use strict";fbe.exports=function(t){return t.end+t.size/1e6}});var wG=Te((zfr,hbe)=>{"use strict";var cbe=_c(),Dbt=oR(),Fbt=bG(),Bbt=kE();hbe.exports=function(t,r){var n=Dbt(t,r),i=n[0].z;Fbt(r,i);var a=r.contours,o=cbe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var u=a.start,l=Bbt(a),f=a.size||1,c=Math.floor((l-u)/f)+1;isFinite(f)||(f=1,c=1);var h=u-f/2,d=h+c*f;s=[h,d]}else s=i;return cbe.calc(t,r,{vals:s,cLetter:"z"}),n}});var CE=Te((Ifr,dbe)=>{"use strict";dbe.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}});var AG=Te((Rfr,pbe)=>{"use strict";var wR=CE();pbe.exports=function(t){var r=t[0].z,n=r.length,i=r[0].length,a=n===2||i===2,o,s,u,l,f,c,h,d,p;for(s=0;se?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);if(r===5||r===10){var n=(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4;return e>n?r===5?713:1114:r===5?104:208}return r===15?0:r}});var TG=Te((Dfr,ybe)=>{"use strict";var AR=ei(),IA=CE();ybe.exports=function(t,r,n){var i,a,o,s,u;for(r=r||.01,n=n||.01,o=0;o20?(o=IA.CHOOSESADDLE[o][(s[0]||s[1])<0?0:1],e.crossings[a]=IA.SADDLEREMAINDER[o]):delete e.crossings[a],s=IA.NEWDELTA[o],!s){AR.log("Found bad marching index:",o,t,e.level);break}u.push(mbe(e,t,s)),t[0]+=s[0],t[1]+=s[1],a=t.join(","),LE(u[u.length-1],u[u.length-2],n,i)&&u.pop();var p=s[0]&&(t[0]<0||t[0]>f-2)||s[1]&&(t[1]<0||t[1]>l-2),x=t[0]===c[0]&&t[1]===c[1]&&s[0]===h[0]&&s[1]===h[1];if(x||r&&p)break;o=e.crossings[a]}d===1e4&&AR.log("Infinite loop in contour?");var b=LE(u[0],u[u.length-1],n,i),v=0,k=.2*e.smoothing,E=[],T=0,L,_,C,S,m,P,A,B,F,U,G;for(d=1;d=T;d--)if(L=E[d],L=T&&L+E[_]B&&F--,e.edgepaths[F]=G.concat(u,U));break}W||(e.edgepaths[B]=u.concat(U))}for(B=0;B20&&t?e===208||e===1114?n=r[0]===0?1:-1:i=r[1]===0?1:-1:IA.BOTTOMSTART.indexOf(e)!==-1?i=1:IA.LEFTSTART.indexOf(e)!==-1?n=1:IA.TOPSTART.indexOf(e)!==-1?i=-1:n=-1,[n,i]}function mbe(e,t,r){var n=t[0]+Math.max(r[0],0),i=t[1]+Math.max(r[1],0),a=e.z[i][n],o=e.xaxis,s=e.yaxis;if(r[1]){var u=(e.level-a)/(e.z[i][n+1]-a),l=(u!==1?(1-u)*o.c2l(e.x[n]):0)+(u!==0?u*o.c2l(e.x[n+1]):0);return[o.c2p(o.l2c(l),!0),s.c2p(e.y[i],!0),n+u,i]}else{var f=(e.level-a)/(e.z[i+1][n]-a),c=(f!==1?(1-f)*s.c2l(e.y[i]):0)+(f!==0?f*s.c2l(e.y[i+1]):0);return[o.c2p(e.x[n],!0),s.c2p(s.l2c(c),!0),n,i+f]}}});var bbe=Te((Ffr,xbe)=>{"use strict";var SG=gR(),Ubt=ku();xbe.exports={"[]":gbe("[]"),"][":gbe("]["),">":MG(">"),"<":MG("<"),"=":MG("=")};function _be(e,t){var r=Array.isArray(t),n;function i(a){return Ubt(a)?+a:null}return SG.COMPARISON_OPS2.indexOf(e)!==-1?n=i(r?t[0]:t):SG.INTERVAL_OPS.indexOf(e)!==-1?n=r?[i(t[0]),i(t[1])]:[i(t),i(t)]:SG.SET_OPS.indexOf(e)!==-1&&(n=r?t.map(i):[i(t)]),n}function gbe(e){return function(t){t=_be(e,t);var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return{start:r,end:n,size:n-r}}}function MG(e){return function(t){return t=_be(e,t),{start:t,end:1/0,size:1/0}}}});var EG=Te((Bfr,Abe)=>{"use strict";var wbe=ei(),Vbt=bbe(),Gbt=kE();Abe.exports=function(t,r,n){for(var i=t.type==="constraint"?Vbt[t._operation](t.value):t,a=i.size,o=[],s=Gbt(i),u=n.trace._carpetTrace,l=u?{xaxis:u.aaxis,yaxis:u.baxis,x:n.a,y:n.b}:{xaxis:r.xaxis,yaxis:r.yaxis,x:n.x,y:n.y},f=i.start;f1e3){wbe.warn("Too many contours, clipping at 1000",t);break}return o}});var kG=Te((Ofr,Sbe)=>{"use strict";var RA=ei();Sbe.exports=function(e,t){var r,n,i,a=function(u){return u.reverse()},o=function(u){return u};switch(t){case"=":case"<":return e;case">":for(e.length!==1&&RA.warn("Contour data invalid for the specified inequality operation."),n=e[0],r=0;r{"use strict";Mbe.exports=function(e,t){var r=e[0],n=r.z,i;switch(t.type){case"levels":var a=Math.min(n[0][0],n[0][1]);for(i=0;io.level||o.starts.length&&a===o.level)}break;case"constraint":if(r.prefixBoundary=!1,r.edgepaths.length)return;var s=r.x.length,u=r.y.length,l=-1/0,f=1/0;for(i=0;i":c>l&&(r.prefixBoundary=!0);break;case"<":(cl||r.starts.length&&d===f)&&(r.prefixBoundary=!0);break;case"][":h=Math.min(c[0],c[1]),d=Math.max(c[0],c[1]),hl&&(r.prefixBoundary=!0);break}break}}});var TR=Te(Hp=>{"use strict";var zE=Jl(),Od=ei(),Og=Mu(),Hbt=_c(),Cbe=Zf(),Ebe=wu(),kbe=gy(),Wbt=uR(),Lbe=AG(),Pbe=TG(),jbt=EG(),Xbt=kG(),zbe=CG(),PE=CE(),Iy=PE.LABELOPTIMIZER;Hp.plot=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;Od.makeTraceGroups(i,n,"contour").each(function(s){var u=zE.select(this),l=s[0],f=l.trace,c=l.x,h=l.y,d=f.contours,p=jbt(d,r,l),x=Od.ensureSingle(u,"g","heatmapcoloring"),b=[];d.coloring==="heatmap"&&(b=[s]),Wbt(t,r,b,x),Lbe(p),Pbe(p);var v=a.c2p(c[0],!0),k=a.c2p(c[c.length-1],!0),E=o.c2p(h[0],!0),T=o.c2p(h[h.length-1],!0),L=[[v,T],[k,T],[k,E],[v,E]],_=p;d.type==="constraint"&&(_=Xbt(p,d._operation)),Zbt(u,L,d),Ybt(u,_,L,d),Kbt(u,p,t,l,d),$bt(u,r,t,l,L)})};function Zbt(e,t,r){var n=Od.ensureSingle(e,"g","contourbg"),i=n.selectAll("path").data(r.coloring==="fill"?[0]:[]);i.enter().append("path"),i.exit().remove(),i.attr("d","M"+t.join("L")+"Z").style("stroke","none")}function Ybt(e,t,r,n){var i=n.coloring==="fill"||n.type==="constraint"&&n._operation!=="=",a="M"+r.join("L")+"Z";i&&zbe(t,n);var o=Od.ensureSingle(e,"g","contourfill"),s=o.selectAll("path").data(i?t:[]);s.enter().append("path"),s.exit().remove(),s.each(function(u){var l=(u.prefixBoundary?a:"")+Ibe(u,r);l?zE.select(this).attr("d",l).style("stroke","none"):zE.select(this).remove()})}function Ibe(e,t){var r="",n=0,i=e.edgepaths.map(function(v,k){return k}),a=!0,o,s,u,l,f,c;function h(v){return Math.abs(v[1]-t[0][1])<.01}function d(v){return Math.abs(v[1]-t[2][1])<.01}function p(v){return Math.abs(v[0]-t[0][0])<.01}function x(v){return Math.abs(v[0]-t[2][0])<.01}for(;i.length;){for(c=Og.smoothopen(e.edgepaths[n],e.smoothing),r+=a?c:c.replace(/^M/,"L"),i.splice(i.indexOf(n),1),o=e.edgepaths[n][e.edgepaths[n].length-1],l=-1,u=0;u<4;u++){if(!o){Od.log("Missing end?",n,e);break}for(h(o)&&!x(o)?s=t[1]:p(o)?s=t[0]:d(o)?s=t[3]:x(o)&&(s=t[2]),f=0;f=0&&(s=b,l=f):Math.abs(o[1]-s[1])<.01?Math.abs(o[1]-b[1])<.01&&(b[0]-o[0])*(s[0]-b[0])>=0&&(s=b,l=f):Od.log("endpt to newendpt is not vert. or horz.",o,s,b)}if(o=s,l>=0)break;r+="L"+s}if(l===e.edgepaths.length){Od.log("unclosed perimeter path");break}n=l,a=i.indexOf(n)===-1,a&&(n=i[0],r+="Z")}for(n=0;nIy.MAXCOST*2)break;h&&(s/=2),o=l-s/2,u=o+s*1.5}if(c<=Iy.MAXCOST)return f};function Jbt(e,t,r,n){var i=t.width/2,a=t.height/2,o=e.x,s=e.y,u=e.theta,l=Math.cos(u)*i,f=Math.sin(u)*i,c=(o>n.center?n.right-o:o-n.left)/(l+Math.abs(Math.sin(u)*a)),h=(s>n.middle?n.bottom-s:s-n.top)/(Math.abs(f)+Math.cos(u)*a);if(c<1||h<1)return 1/0;var d=Iy.EDGECOST*(1/(c-1)+1/(h-1));d+=Iy.ANGLECOST*u*u;for(var p=o-l,x=s-f,b=o+l,v=s+f,k=0;k{"use strict";var e2t=Jl(),LG=_c(),t2t=kE();Rbe.exports=function(t){var r=t.contours,n=r.start,i=t2t(r),a=r.size||1,o=Math.floor((i-n)/a)+1,s=r.coloring==="lines"?0:1,u=LG.extractOpts(t);isFinite(a)||(a=1,o=1);var l=u.reversescale?LG.flipScale(u.colorscale):u.colorscale,f=l.length,c=new Array(f),h=new Array(f),d,p,x=u.min,b=u.max;if(r.coloring==="heatmap"){for(p=0;p=b)&&(n<=x&&(n=x),i>=b&&(i=b),o=Math.floor((i-n)/a)+1,s=0),p=0;px&&(c.unshift(x),h.unshift(h[0])),c[c.length-1]{"use strict";var SR=Jl(),Dbe=Mu(),r2t=fR(),i2t=PG();Fbe.exports=function(t){var r=SR.select(t).selectAll("g.contour");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=SR.select(this),a=n[0].trace,o=a.contours,s=a.line,u=o.size||1,l=o.start,f=o.type==="constraint",c=!f&&o.coloring==="lines",h=!f&&o.coloring==="fill",d=c||h?i2t(a):null;i.selectAll("g.contourlevel").each(function(b){SR.select(this).selectAll("path").call(Dbe.lineGroupStyle,s.width,c?d(b.level):s.color,s.dash)});var p=o.labelfont;if(i.selectAll("g.contourlabels text").each(function(b){Dbe.font(SR.select(this),{weight:p.weight,style:p.style,variant:p.variant,textcase:p.textcase,lineposition:p.lineposition,shadow:p.shadow,family:p.family,size:p.size,color:p.color||(c?d(b.level):s.color)})}),f)i.selectAll("g.contourfill path").style("fill",a.fillcolor);else if(h){var x;i.selectAll("g.contourfill path").style("fill",function(b){return x===void 0&&(x=b.level),d(b.level+.5*u)}),x===void 0&&(x=l),i.selectAll("g.contourbg path").style("fill",d(x-.5*u))}}),r2t(t)}});var ER=Te((Gfr,Obe)=>{"use strict";var Bbe=_c(),n2t=PG(),a2t=kE();function o2t(e,t,r){var n=t.contours,i=t.line,a=n.size||1,o=n.coloring,s=n2t(t,{isColorbar:!0});if(o==="heatmap"){var u=Bbe.extractOpts(t);r._fillgradient=u.reversescale?Bbe.flipScale(u.colorscale):u.colorscale,r._zrange=[u.min,u.max]}else o==="fill"&&(r._fillcolor=s);r._line={color:o==="lines"?s:i.color,width:n.showlines!==!1?i.width:0,dash:i.dash},r._levels={start:n.start,end:a2t(n),size:a}}Obe.exports={min:"zmin",max:"zmax",calc:o2t}});var zG=Te((Hfr,qbe)=>{"use strict";var kR=jl(),s2t=hR();qbe.exports=function(t,r,n,i,a){a||(a={}),a.isContour=!0;var o=s2t(t,r,n,i,a);return o&&o.forEach(function(s){var u=s.trace;u.contours.type==="constraint"&&(u.fillcolor&&kR.opacity(u.fillcolor)?s.color=kR.addOpacity(u.fillcolor,1):u.contours.showlines&&kR.opacity(u.line.color)&&(s.color=kR.addOpacity(u.line.color,1)))}),o}});var Ube=Te((Wfr,Nbe)=>{"use strict";Nbe.exports={attributes:yG(),supplyDefaults:sbe(),crossTraceDefaults:vR(),calc:wG(),plot:TR().plot,layerName:"contourlayer",style:MR(),colorbar:ER(),hoverPoints:zG(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:Ah(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var Gbe=Te((jfr,Vbe)=>{"use strict";Vbe.exports=Ube()});var IG=Te((Xfr,Ybe)=>{"use strict";var Hbe=ku(),l2t=gG(),Xbe=jl(),Wbe=Xbe.addOpacity,u2t=Xbe.opacity,Zbe=gR(),jbe=ei().isArrayOrTypedArray,f2t=Zbe.CONSTRAINT_REDUCTION,c2t=Zbe.COMPARISON_OPS2;Ybe.exports=function(t,r,n,i,a,o){var s=r.contours,u,l,f,c=n("contours.operation");if(s._operation=f2t[c],h2t(n,s),c==="="?u=s.showlines=!0:(u=n("contours.showlines"),f=n("fillcolor",Wbe((t.line||{}).color||a,.5))),u){var h=f&&u2t(f)?Wbe(r.fillcolor,1):a;l=n("line.color",h),n("line.width",2),n("line.dash")}n("line.smoothing"),l2t(n,i,l,o)};function h2t(e,t){var r;c2t.indexOf(t.operation)===-1?(e("contours.value",[0,1]),jbe(t.value)?t.value.length>2?t.value=t.value.slice(2):t.length===0?t.value=[0,1]:t.length<2?(r=parseFloat(t.value[0]),t.value=[r,r+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:Hbe(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),Hbe(t.value)||(jbe(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var $be=Te((Zfr,Jbe)=>{"use strict";var RG=ei(),d2t=KI(),p2t=Pm(),v2t=IG(),m2t=xR(),y2t=bR(),g2t=wE(),Kbe=EE();Jbe.exports=function(t,r,n,i){function a(l,f){return RG.coerce(t,r,Kbe,l,f)}function o(l){return RG.coerce2(t,r,Kbe,l)}var s=d2t(t,r,a,i);if(!s){r.visible=!1;return}p2t(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hoverongaps"),a("hovertemplate");var u=a("contours.type")==="constraint";a("connectgaps",RG.isArray1D(r.z)),u?v2t(t,r,a,i,n):(m2t(t,r,a,o),y2t(t,r,a,i)),r.contours&&r.contours.coloring==="heatmap"&&g2t(a,i),a("zorder")}});var e2e=Te((Yfr,Qbe)=>{"use strict";Qbe.exports={attributes:EE(),supplyDefaults:$be(),calc:wG(),plot:TR().plot,style:MR(),colorbar:ER(),hoverPoints:zG(),moduleType:"trace",name:"contour",basePlotModule:Ah(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var r2e=Te((Kfr,t2e)=>{"use strict";t2e.exports=e2e()});var DG=Te((Jfr,n2e)=>{"use strict";var _2t=Nu().hovertemplateAttrs,x2t=Nu().texttemplateAttrs,b2t=Em(),a0=Zc(),w2t=Vf(),i2e=nc(),A2t=Id().dash,E_=Su().extendFlat,W0=a0.marker,IE=a0.line,T2t=W0.line;n2e.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:E_({},a0.mode,{dflt:"markers"}),text:E_({},a0.text,{}),texttemplate:x2t({editType:"plot"},{keys:["a","b","c","text"]}),hovertext:E_({},a0.hovertext,{}),line:{color:IE.color,width:IE.width,dash:A2t,backoff:IE.backoff,shape:E_({},IE.shape,{values:["linear","spline"]}),smoothing:IE.smoothing,editType:"calc"},connectgaps:a0.connectgaps,cliponaxis:a0.cliponaxis,fill:E_({},a0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:b2t(),marker:E_({symbol:W0.symbol,opacity:W0.opacity,angle:W0.angle,angleref:W0.angleref,standoff:W0.standoff,maxdisplayed:W0.maxdisplayed,size:W0.size,sizeref:W0.sizeref,sizemin:W0.sizemin,sizemode:W0.sizemode,line:E_({width:T2t.width,editType:"calc"},i2e("marker.line")),gradient:W0.gradient,editType:"calc"},i2e("marker")),textfont:a0.textfont,textposition:a0.textposition,selected:a0.selected,unselected:a0.unselected,hoverinfo:E_({},w2t.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:a0.hoveron,hovertemplate:_2t()}});var l2e=Te(($fr,s2e)=>{"use strict";var a2e=ei(),S2t=Sy(),DA=lc(),M2t=$v(),E2t=I0(),o2e=J3(),k2t=R0(),C2t=zm(),L2t=DG();s2e.exports=function(t,r,n,i){function a(h,d){return a2e.coerce(t,r,L2t,h,d)}var o=a("a"),s=a("b"),u=a("c"),l;if(o?(l=o.length,s?(l=Math.min(l,s.length),u&&(l=Math.min(l,u.length))):u?l=Math.min(l,u.length):l=0):s&&u&&(l=Math.min(s.length,u.length)),!l){r.visible=!1;return}r._length=l,a("sum"),a("text"),a("hovertext"),r.hoveron!=="fills"&&a("hovertemplate");var f=l{"use strict";var FG=wu();u2e.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.aLabel=FG.tickText(a.aaxis,t.a,!0).text,i.bLabel=FG.tickText(a.baxis,t.b,!0).text,i.cLabel=FG.tickText(a.caxis,t.c,!0).text,i}});var p2e=Te((ecr,d2e)=>{"use strict";var BG=ku(),P2t=D0(),z2t=ky(),I2t=F0(),R2t=B0().calcMarkerSize,c2e=["a","b","c"],h2e={a:["b","c"],b:["a","c"],c:["a","b"]};d2e.exports=function(t,r){var n=t._fullLayout[r.subplot],i=n.sum,a=r.sum||i,o={a:r.a,b:r.b,c:r.c},s=r.ids,u,l,f,c,h,d;for(u=0;u{"use strict";var D2t=iA();v2e.exports=function(t,r,n){var i=r.plotContainer;i.select(".scatterlayer").selectAll("*").remove();for(var a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:i,layerClipId:r._hasClipOnAxisFalse?r.clipIdRelative:null},u=r.layers.frontplot.select("g.scatterlayer"),l=0;l{"use strict";var F2t=sA();y2e.exports=function(t,r,n,i){var a=F2t(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,u=t.xa._length,l=u*s/2,f=u-l;return o.x0=Math.max(Math.min(o.x0,f),l),o.x1=Math.max(Math.min(o.x1,f),l),a}var c=o.cd[o.index],h=o.trace,d=o.subplot;o.a=c.a,o.b=c.b,o.c=c.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var p={};p[h.subplot]={_subplot:d};var x=h._module.formatLabels(c,h,p);o.aLabel=x.aLabel,o.bLabel=x.bLabel,o.cLabel=x.cLabel;var b=c.hi||h.hoverinfo,v=[];function k(T,L){v.push(T._hovertitle+": "+L)}if(!h.hovertemplate){var E=b.split("+");E.indexOf("all")!==-1&&(E=["a","b","c"]),E.indexOf("a")!==-1&&k(d.aaxis,o.aLabel),E.indexOf("b")!==-1&&k(d.baxis,o.bLabel),E.indexOf("c")!==-1&&k(d.caxis,o.cLabel)}return o.extraText=v.join("
"),o.hovertemplate=h.hovertemplate,a}});var x2e=Te((icr,_2e)=>{"use strict";_2e.exports=function(t,r,n,i,a){if(r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),i[a]){var o=i[a];t.a=o.a,t.b=o.b,t.c=o.c}else t.a=r.a,t.b=r.b,t.c=r.c;return t}});var P2e=Te((ncr,L2e)=>{"use strict";var M2e=Jl(),B2t=cd(),OG=$l(),qg=ei(),Ry=qg.strTranslate,CR=qg._,BA=jl(),LR=Mu(),RE=gy(),qG=Su().extendFlat,O2t=Cc(),k_=wu(),b2e=gp(),w2e=Xc(),E2e=Sm(),A2e=E2e.freeMode,q2t=E2e.rectMode,NG=Mb(),N2t=ah().prepSelect,U2t=ah().selectOnClick,V2t=ah().clearOutline,G2t=ah().clearSelectionsCache,k2e=dd();function C2e(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.updateFx(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}L2e.exports=C2e;var Dy=C2e.prototype;Dy.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Dy.plot=function(e,t){var r=this,n=t[r.id],i=t._size;r._hasClipOnAxisFalse=!1;for(var a=0;aFA*l?(v=l,b=v*FA):(b=u,v=b/FA),k=o*b/u,E=s*v/l,p=t.l+t.w*i-b/2,x=t.t+t.h*(1-a)-v/2,r.x0=p,r.y0=x,r.w=b,r.h=v,r.sum=f,r.xaxis={type:"linear",range:[c+2*d-f,f-c-2*h],domain:[i-k/2,i+k/2],_id:"x"},RE(r.xaxis,r.graphDiv._fullLayout),r.xaxis.setScale(),r.xaxis.isPtWithinRange=function(U){return U.a>=r.aaxis.range[0]&&U.a<=r.aaxis.range[1]&&U.b>=r.baxis.range[1]&&U.b<=r.baxis.range[0]&&U.c>=r.caxis.range[1]&&U.c<=r.caxis.range[0]},r.yaxis={type:"linear",range:[c,f-h-d],domain:[a-E/2,a+E/2],_id:"y"},RE(r.yaxis,r.graphDiv._fullLayout),r.yaxis.setScale(),r.yaxis.isPtWithinRange=function(){return!0};var T=r.yaxis.domain[0],L=r.aaxis=qG({},e.aaxis,{range:[c,f-h-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[T,T+E*FA],anchor:"free",position:0,_id:"y",_length:b});RE(L,r.graphDiv._fullLayout),L.setScale();var _=r.baxis=qG({},e.baxis,{range:[f-c-d,h],side:"bottom",domain:r.xaxis.domain,anchor:"free",position:0,_id:"x",_length:b});RE(_,r.graphDiv._fullLayout),_.setScale();var C=r.caxis=qG({},e.caxis,{range:[f-c-h,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[T,T+E*FA],anchor:"free",position:0,_id:"y",_length:b});RE(C,r.graphDiv._fullLayout),C.setScale();var S="M"+p+","+(x+v)+"h"+b+"l-"+b/2+",-"+v+"Z";r.clipDef.select("path").attr("d",S),r.layers.plotbg.select("path").attr("d",S);var m="M0,"+v+"h"+b+"l-"+b/2+",-"+v+"Z";r.clipDefRelative.select("path").attr("d",m);var P=Ry(p,x);r.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",P),r.clipDefRelative.select("path").attr("transform",null);var A=Ry(p-_._offset,x+v);r.layers.baxis.attr("transform",A),r.layers.bgrid.attr("transform",A);var B=Ry(p+b/2,x)+"rotate(30)"+Ry(0,-L._offset);r.layers.aaxis.attr("transform",B),r.layers.agrid.attr("transform",B);var F=Ry(p+b/2,x)+"rotate(-30)"+Ry(0,-C._offset);r.layers.caxis.attr("transform",F),r.layers.cgrid.attr("transform",F),r.drawAxes(!0),r.layers.aline.select("path").attr("d",L.showline?"M"+p+","+(x+v)+"l"+b/2+",-"+v:"M0,0").call(BA.stroke,L.linecolor||"#000").style("stroke-width",(L.linewidth||0)+"px"),r.layers.bline.select("path").attr("d",_.showline?"M"+p+","+(x+v)+"h"+b:"M0,0").call(BA.stroke,_.linecolor||"#000").style("stroke-width",(_.linewidth||0)+"px"),r.layers.cline.select("path").attr("d",C.showline?"M"+(p+b/2)+","+x+"l"+b/2+","+v:"M0,0").call(BA.stroke,C.linecolor||"#000").style("stroke-width",(C.linewidth||0)+"px"),r.graphDiv._context.staticPlot||r.initInteractions(),LR.setClipUrl(r.layers.frontplot,r._hasClipOnAxisFalse?null:r.clipId,r.graphDiv)};Dy.drawAxes=function(e){var t=this,r=t.graphDiv,n=t.id.substr(7)+"title",i=t.layers,a=t.aaxis,o=t.baxis,s=t.caxis;if(t.drawAx(a),t.drawAx(o),t.drawAx(s),e){var u=Math.max(a.showticklabels?a.tickfont.size/2:0,(s.showticklabels?s.tickfont.size*.75:0)+(s.ticks==="outside"?s.ticklen*.87:0)),l=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;i["a-title"]=NG.draw(r,"a"+n,{propContainer:a,propName:t.id+".aaxis.title",placeholder:CR(r,"Click to enter Component A title"),attributes:{x:t.x0+t.w/2,y:t.y0-a.title.font.size/3-u,"text-anchor":"middle"}}),i["b-title"]=NG.draw(r,"b"+n,{propContainer:o,propName:t.id+".baxis.title",placeholder:CR(r,"Click to enter Component B title"),attributes:{x:t.x0-l,y:t.y0+t.h+o.title.font.size*.83+l,"text-anchor":"middle"}}),i["c-title"]=NG.draw(r,"c"+n,{propContainer:s,propName:t.id+".caxis.title",placeholder:CR(r,"Click to enter Component C title"),attributes:{x:t.x0+t.w+l,y:t.y0+t.h+s.title.font.size*.83+l,"text-anchor":"middle"}})}};Dy.drawAx=function(e){var t=this,r=t.graphDiv,n=e._name,i=n.charAt(0),a=e._id,o=t.layers[n],s=30,u=i+"tickLayout",l=H2t(e);t[u]!==l&&(o.selectAll("."+a+"tick").remove(),t[u]=l),e.setScale();var f=k_.calcTicks(e),c=k_.clipEnds(e,f),h=k_.makeTransTickFn(e),d=k_.getTickSigns(e)[2],p=qg.deg2rad(s),x=d*(e.linewidth||1)/2,b=d*e.ticklen,v=t.w,k=t.h,E=i==="b"?"M0,"+x+"l"+Math.sin(p)*b+","+Math.cos(p)*b:"M"+x+",0l"+Math.cos(p)*b+","+-Math.sin(p)*b,T={a:"M0,0l"+k+",-"+v/2,b:"M0,0l-"+v/2+",-"+k,c:"M0,0l-"+k+","+v/2}[i];k_.drawTicks(r,e,{vals:e.ticks==="inside"?c:f,layer:o,path:E,transFn:h,crisp:!1}),k_.drawGrid(r,e,{vals:c,layer:t.layers[i+"grid"],path:T,transFn:h,crisp:!1}),k_.drawLabels(r,e,{vals:f,layer:o,transFn:h,labelFns:k_.makeLabelFns(e,0,s)})};function H2t(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var _d=k2e.MINZOOM/2+.87,W2t="m-0.87,.5h"+_d+"v3h-"+(_d+5.2)+"l"+(_d/2+2.6)+",-"+(_d*.87+4.5)+"l2.6,1.5l-"+_d/2+","+_d*.87+"Z",j2t="m0.87,.5h-"+_d+"v3h"+(_d+5.2)+"l-"+(_d/2+2.6)+",-"+(_d*.87+4.5)+"l-2.6,1.5l"+_d/2+","+_d*.87+"Z",X2t="m0,1l"+_d/2+","+_d*.87+"l2.6,-1.5l-"+(_d/2+2.6)+",-"+(_d*.87+4.5)+"l-"+(_d/2+2.6)+","+(_d*.87+4.5)+"l2.6,1.5l"+_d/2+",-"+_d*.87+"Z",Z2t="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",T2e=!0;Dy.clearOutline=function(){G2t(this.dragOptions),V2t(this.dragOptions.gd)};Dy.initInteractions=function(){var e=this,t=e.layers.plotbg.select("path").node(),r=e.graphDiv,n=r._fullLayout._zoomlayer,i,a;this.dragOptions={element:t,gd:r,plotinfo:{id:e.id,domain:r._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(A,B,F){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],i=r._fullLayout._invScaleX,a=r._fullLayout._invScaleY;var U=e.dragOptions.dragmode=r._fullLayout.dragmode;A2e(U)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,U==="zoom"?(e.dragOptions.moveFn=_,e.dragOptions.clickFn=v,e.dragOptions.doneFn=C,k(A,B,F)):U==="pan"?(e.dragOptions.moveFn=m,e.dragOptions.clickFn=v,e.dragOptions.doneFn=P,S(),e.clearOutline(r)):(q2t(U)||A2e(U))&&N2t(A,B,F,e.dragOptions,U)}};var o,s,u,l,f,c,h,d,p,x;function b(A){var B={};return B[e.id+".aaxis.min"]=A.a,B[e.id+".baxis.min"]=A.b,B[e.id+".caxis.min"]=A.c,B}function v(A,B){var F=r._fullLayout.clickmode;S2e(r),A===2&&(r.emit("plotly_doubleclick",null),OG.call("_guiRelayout",r,b({a:0,b:0,c:0}))),F.indexOf("select")>-1&&A===1&&U2t(B,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),F.indexOf("event")>-1&&w2e.click(r,B,e.id)}function k(A,B,F){var U=t.getBoundingClientRect();o=B-U.left,s=F-U.top,r._fullLayout._calcInverseTransform(r);var G=r._fullLayout._invTransform,j=qg.apply3DTransform(G)(o,s);o=j[0],s=j[1],u={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=u,l=e.aaxis.range[1]-u.a,c=B2t(e.graphDiv._fullLayout[e.id].bgcolor).getLuminance(),h="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,p=n.append("path").attr("class","zoombox").attr("transform",Ry(e.x0,e.y0)).style({fill:c>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",h),x=n.append("path").attr("class","zoombox-corners").attr("transform",Ry(e.x0,e.y0)).style({fill:BA.background,stroke:BA.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(r)}function E(A,B){return 1-B/e.h}function T(A,B){return 1-(A+(e.h-B)/Math.sqrt(3))/e.w}function L(A,B){return(A-(e.h-B)/Math.sqrt(3))/e.w}function _(A,B){var F=o+A*i,U=s+B*a,G=Math.max(0,Math.min(1,E(o,s),E(F,U))),j=Math.max(0,Math.min(1,T(o,s),T(F,U))),H=Math.max(0,Math.min(1,L(o,s),L(F,U))),N=(G/2+H)*e.w,W=(1-G/2-j)*e.w,re=(N+W)/2,ae=W-N,be=(1-G)*e.h,Ce=be-ae/FA;ae.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),x.transition().style("opacity",1).duration(200),d=!0),r.emit("plotly_relayouting",b(f))}function C(){S2e(r),f!==u&&(OG.call("_guiRelayout",r,b(f)),T2e&&r.data&&r._context.showTips&&(qg.notifier(CR(r,"Double-click to zoom back out"),"long"),T2e=!1))}function S(){u={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=u}function m(A,B){var F=A/e.xaxis._m,U=B/e.yaxis._m;f={a:u.a-U,b:u.b+(F+U)/2,c:u.c-(F-U)/2};var G=[f.a,f.b,f.c].sort(qg.sorterAsc),j={a:G.indexOf(f.a),b:G.indexOf(f.b),c:G.indexOf(f.c)};G[0]<0&&(G[1]+G[0]/2<0?(G[2]+=G[0]+G[1],G[0]=G[1]=0):(G[2]+=G[0]/2,G[1]+=G[0]/2,G[0]=0),f={a:G[j.a],b:G[j.b],c:G[j.c]},B=(u.a-f.a)*e.yaxis._m,A=(u.c-f.c-u.b+f.b)*e.xaxis._m);var H=Ry(e.x0+A,e.y0+B);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",H);var N=Ry(-A,-B);e.clipDefRelative.select("path").attr("transform",N),e.aaxis.range=[f.a,e.sum-f.b-f.c],e.baxis.range=[e.sum-f.a-f.c,f.b],e.caxis.range=[e.sum-f.a-f.b,f.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(LR.hideOutsideRangePoints,e),r.emit("plotly_relayouting",b(f))}function P(){OG.call("_guiRelayout",r,b(f))}t.onmousemove=function(A){w2e.hover(r,A,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(A){r._dragging||b2e.unhover(r,A)},b2e.init(this.dragOptions)};function S2e(e){M2e.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var GG=Te((acr,z2e)=>{"use strict";var Y2t=Ih(),K2t=zc().attributes,Jf=Dd(),J2t=Sc().overrideAll,UG=Su().extendFlat,VG={title:{text:Jf.title.text,font:Jf.title.font},color:Jf.color,tickmode:Jf.minor.tickmode,nticks:UG({},Jf.nticks,{dflt:6,min:1}),tick0:Jf.tick0,dtick:Jf.dtick,tickvals:Jf.tickvals,ticktext:Jf.ticktext,ticks:Jf.ticks,ticklen:Jf.ticklen,tickwidth:Jf.tickwidth,tickcolor:Jf.tickcolor,ticklabelstep:Jf.ticklabelstep,showticklabels:Jf.showticklabels,labelalias:Jf.labelalias,showtickprefix:Jf.showtickprefix,tickprefix:Jf.tickprefix,showticksuffix:Jf.showticksuffix,ticksuffix:Jf.ticksuffix,showexponent:Jf.showexponent,exponentformat:Jf.exponentformat,minexponent:Jf.minexponent,separatethousands:Jf.separatethousands,tickfont:Jf.tickfont,tickangle:Jf.tickangle,tickformat:Jf.tickformat,tickformatstops:Jf.tickformatstops,hoverformat:Jf.hoverformat,showline:UG({},Jf.showline,{dflt:!0}),linecolor:Jf.linecolor,linewidth:Jf.linewidth,showgrid:UG({},Jf.showgrid,{dflt:!0}),gridcolor:Jf.gridcolor,gridwidth:Jf.gridwidth,griddash:Jf.griddash,layer:Jf.layer,min:{valType:"number",dflt:0,min:0}},PR=z2e.exports=J2t({domain:K2t({name:"ternary"}),bgcolor:{valType:"color",dflt:Y2t.background},sum:{valType:"number",dflt:1,min:0},aaxis:VG,baxis:VG,caxis:VG},"plot","from-root");PR.uirevision={valType:"any",editType:"none"};PR.aaxis.uirevision=PR.baxis.uirevision=PR.caxis.uirevision={valType:"any",editType:"none"}});var C_=Te((ocr,I2e)=>{"use strict";var $2t=ei(),Q2t=Pf(),ewt=zc().defaults;I2e.exports=function(t,r,n,i){var a=i.type,o=i.attributes,s=i.handleDefaults,u=i.partition||"x",l=r._subplots[a],f=l.length,c=f&&l[0].replace(/\d+$/,""),h,d;function p(k,E){return $2t.coerce(h,d,o,k,E)}for(var x=0;x{"use strict";var twt=jl(),rwt=Pf(),zR=ei(),iwt=C_(),nwt=t_(),awt=r_(),owt=A3(),swt=xb(),lwt=Q5(),D2e=GG(),R2e=["aaxis","baxis","caxis"];F2e.exports=function(t,r,n){iwt(t,r,n,{type:"ternary",attributes:D2e,handleDefaults:uwt,font:r.font,paper_bgcolor:r.paper_bgcolor})};function uwt(e,t,r,n){var i=r("bgcolor"),a=r("sum");n.bgColor=twt.combine(i,n.paper_bgcolor);for(var o,s,u,l=0;l=a&&(f.min=0,c.min=0,h.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function fwt(e,t,r,n){var i=D2e[t._name];function a(d,p){return zR.coerce(e,t,i,d,p)}a("uirevision",n.uirevision),t.type="linear";var o=a("color"),s=o!==i.color.dflt?o:r.font.color,u=t._name,l=u.charAt(0).toUpperCase(),f="Component "+l,c=a("title.text",f);t._hovertitle=c===f?c:l,zR.coerceFont(a,"title.font",r.font,{overrideDflt:{size:zR.bigFont(r.font.size),color:s}}),a("min"),swt(e,t,a,"linear"),awt(e,t,a,"linear"),nwt(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),owt(e,t,a,{outerTicks:!0});var h=a("showticklabels");h&&(zR.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:s}}),a("tickangle"),a("tickformat")),lwt(e,t,a,{dfltColor:o,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),a("hoverformat"),a("layer")}});var O2e=Te(j0=>{"use strict";var cwt=P2e(),hwt=Rd().getSubplotCalcData,dwt=ei().counterRegex,OA="ternary";j0.name=OA;var pwt=j0.attr="subplot";j0.idRoot=OA;j0.idRegex=j0.attrRegex=dwt(OA);var vwt=j0.attributes={};vwt[pwt]={valType:"subplotid",dflt:"ternary",editType:"calc"};j0.layoutAttributes=GG();j0.supplyLayoutDefaults=B2e();j0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[OA],a=0;a{"use strict";q2e.exports={attributes:DG(),supplyDefaults:l2e(),colorbar:ep(),formatLabels:f2e(),calc:p2e(),plot:m2e(),style:av().style,styleOnSelect:av().styleOnSelect,hoverPoints:g2e(),selectPoints:lA(),eventData:x2e(),moduleType:"trace",name:"scatterternary",basePlotModule:O2e(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var V2e=Te((fcr,U2e)=>{"use strict";U2e.exports=N2e()});var HG=Te((ccr,H2e)=>{"use strict";var nd=gE(),qA=Su().extendFlat,G2e=jc().axisHoverFormat;H2e.exports={y:nd.y,x:nd.x,x0:nd.x0,y0:nd.y0,xhoverformat:G2e("x"),yhoverformat:G2e("y"),name:qA({},nd.name,{}),orientation:qA({},nd.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:nd.fillcolor,points:qA({},nd.boxpoints,{}),jitter:qA({},nd.jitter,{}),pointpos:qA({},nd.pointpos,{}),width:qA({},nd.width,{}),marker:nd.marker,text:nd.text,hovertext:nd.hovertext,hovertemplate:nd.hovertemplate,quartilemethod:nd.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:nd.offsetgroup,alignmentgroup:nd.alignmentgroup,selected:nd.selected,unselected:nd.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:nd.zorder}});var XG=Te((hcr,W2e)=>{"use strict";var WG=_E(),jG=ei().extendFlat;W2e.exports={violinmode:jG({},WG.boxmode,{}),violingap:jG({},WG.boxgap,{}),violingroupgap:jG({},WG.boxgroupgap,{})}});var K2e=Te((dcr,Y2e)=>{"use strict";var j2e=ei(),mwt=jl(),X2e=bE(),Z2e=HG();Y2e.exports=function(t,r,n,i){function a(L,_){return j2e.coerce(t,r,Z2e,L,_)}function o(L,_){return j2e.coerce2(t,r,Z2e,L,_)}if(X2e.handleSampleDefaults(t,r,a,i),r.visible!==!1){a("bandwidth"),a("side");var s=a("width");s||(a("scalegroup",r.name),a("scalemode"));var u=a("span"),l;Array.isArray(u)&&(l="manual"),a("spanmode",l);var f=a("line.color",(t.marker||{}).color||n),c=a("line.width"),h=a("fillcolor",mwt.addOpacity(r.line.color,.5));X2e.handlePointsDefaults(t,r,a,{prefix:""});var d=o("box.width"),p=o("box.fillcolor",h),x=o("box.line.color",f),b=o("box.line.width",c),v=a("box.visible",!!(d||p||x||b));v||(r.box={visible:!1});var k=o("meanline.color",f),E=o("meanline.width",c),T=a("meanline.visible",!!(k||E));T||(r.meanline={visible:!1}),a("quartilemethod"),a("zorder")}}});var $2e=Te((pcr,J2e)=>{"use strict";var ywt=ei(),gwt=XG(),_wt=HI();J2e.exports=function(t,r,n){function i(a,o){return ywt.coerce(t,r,gwt,a,o)}_wt._supply(t,r,n,i,"violin")}});var IR=Te(o2=>{"use strict";var xwt=ei(),bwt={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};o2.makeKDE=function(e,t,r){var n=r.length,i=bwt.gaussian,a=e.bandwidth,o=1/(n*a);return function(s){for(var u=0,l=0;l{"use strict";var ZG=ei(),YG=wu(),wwt=NV(),Q2e=IR(),Awt=nf().BADNUM;ewe.exports=function(t,r){var n=wwt(t,r);if(n[0].t.empty)return n;for(var i=t._fullLayout,a=YG.getFromId(t,r[r.orientation==="h"?"xaxis":"yaxis"]),o=1/0,s=-1/0,u=0,l=0,f=0;f{"use strict";var Ewt=jI().setPositionOffset,rwe=["v","h"];iwe.exports=function(t,r){for(var n=t.calcdata,i=r.xaxis,a=r.yaxis,o=0;o{"use strict";var KG=Jl(),JG=ei(),kwt=Mu(),$G=XI(),Cwt=SU(),Lwt=IR();awe.exports=function(t,r,n,i){var a=t._context.staticPlot,o=t._fullLayout,s=r.xaxis,u=r.yaxis;function l(f,c){var h=Cwt(f,{xaxis:s,yaxis:u,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return kwt.smoothopen(h[0],1)}JG.makeTraceGroups(i,n,"trace violins").each(function(f){var c=KG.select(this),h=f[0],d=h.t,p=h.trace;if(p.visible!==!0||d.empty){c.remove();return}var x=d.bPos,b=d.bdPos,v=r[d.valLetter+"axis"],k=r[d.posLetter+"axis"],E=p.side==="both",T=E||p.side==="positive",L=E||p.side==="negative",_=c.selectAll("path.violin").data(JG.identity);_.enter().append("path").style("vector-effect",a?"none":"non-scaling-stroke").attr("class","violin"),_.exit().remove(),_.each(function(U){var G=KG.select(this),j=U.density,H=j.length,N=k.c2l(U.pos+x,!0),W=k.l2p(N),re;if(p.width)re=d.maxKDE/b;else{var ae=o._violinScaleGroupStats[p.scalegroup];re=p.scalemode==="count"?ae.maxKDE/b*(ae.maxCount/U.pts.length):ae.maxKDE/b}var be,Ce,Le,pe,te,ke,Ee;if(T){for(ke=new Array(H),pe=0;pe{"use strict";var swe=Jl(),NA=jl(),Pwt=av().stylePoints;lwe.exports=function(t){var r=swe.select(t).selectAll("g.trace.violins");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=n[0].trace,a=swe.select(this),o=i.box||{},s=o.line||{},u=i.meanline||{},l=u.width;a.selectAll("path.violin").style("stroke-width",i.line.width+"px").call(NA.stroke,i.line.color).call(NA.fill,i.fillcolor),a.selectAll("path.box").style("stroke-width",s.width+"px").call(NA.stroke,s.color).call(NA.fill,o.fillcolor);var f={"stroke-width":l+"px","stroke-dasharray":2*l+"px,"+l+"px"};a.selectAll("path.mean").style(f).call(NA.stroke,u.color),a.selectAll("path.meanline").style(f).call(NA.stroke,u.color),Pwt(a,i,t)})}});var dwe=Te((xcr,hwe)=>{"use strict";var zwt=jl(),QG=ei(),Iwt=wu(),fwe=WV(),cwe=IR();hwe.exports=function(t,r,n,i,a){a||(a={});var o=a.hoverLayer,s=t.cd,u=s[0].trace,l=u.hoveron,f=l.indexOf("violins")!==-1,c=l.indexOf("kde")!==-1,h=[],d,p;if(f||c){var x=fwe.hoverOnBoxes(t,r,n,i);if(c&&x.length>0){var b=t.xa,v=t.ya,k,E,T,L,_;u.orientation==="h"?(_=r,k="y",T=v,E="x",L=b):(_=n,k="x",T=b,E="y",L=v);var C=s[t.index];if(_>=C.span[0]&&_<=C.span[1]){var S=QG.extendFlat({},t),m=L.c2p(_,!0),P=cwe.getKdeValue(C,u,_),A=cwe.getPositionOnKdePath(C,u,m),B=T._offset,F=T._length;S[k+"0"]=A[0],S[k+"1"]=A[1],S[E+"0"]=S[E+"1"]=m,S[E+"Label"]=E+": "+Iwt.hoverLabelText(L,_,u[E+"hoverformat"])+", "+s[0].t.labels.kde+" "+P.toFixed(3);for(var U=0,G=0;G{"use strict";pwe.exports={attributes:HG(),layoutAttributes:XG(),supplyDefaults:K2e(),crossTraceDefaults:bE().crossTraceDefaults,supplyLayoutDefaults:$2e(),calc:twe(),crossTraceCalc:nwe(),plot:owe(),style:uwe(),styleOnSelect:av().styleOnSelect,hoverPoints:dwe(),selectPoints:jV(),moduleType:"trace",name:"violin",basePlotModule:Ah(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var ywe=Te((wcr,mwe)=>{"use strict";mwe.exports=vwe()});var _we=Te((Acr,gwe)=>{"use strict";gwe.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var tH=Te((Tcr,wwe)=>{"use strict";var Fc=Ly(),eH=Zc().line,Rwt=Vf(),xwe=jc().axisHoverFormat,Dwt=Nu().hovertemplateAttrs,Fwt=Nu().texttemplateAttrs,bwe=_we(),Ng=Su().extendFlat,Bwt=jl();wwe.exports={x:Fc.x,x0:Fc.x0,dx:Fc.dx,y:Fc.y,y0:Fc.y0,dy:Fc.dy,xperiod:Fc.xperiod,yperiod:Fc.yperiod,xperiod0:Fc.xperiod0,yperiod0:Fc.yperiod0,xperiodalignment:Fc.xperiodalignment,yperiodalignment:Fc.yperiodalignment,xhoverformat:xwe("x"),yhoverformat:xwe("y"),hovertext:Fc.hovertext,hovertemplate:Dwt({},{keys:bwe.eventDataKeys}),hoverinfo:Ng({},Rwt.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:Fwt({editType:"plot"},{keys:bwe.eventDataKeys.concat(["label","value"])}),text:Fc.text,textposition:Fc.textposition,insidetextanchor:Ng({},Fc.insidetextanchor,{dflt:"middle"}),textangle:Ng({},Fc.textangle,{dflt:0}),textfont:Fc.textfont,insidetextfont:Fc.insidetextfont,outsidetextfont:Fc.outsidetextfont,constraintext:Fc.constraintext,cliponaxis:Fc.cliponaxis,orientation:Ng({},Fc.orientation,{}),offset:Ng({},Fc.offset,{arrayOk:!1}),width:Ng({},Fc.width,{arrayOk:!1}),marker:Owt(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Ng({},eH.color,{dflt:Bwt.defaultLine}),width:Ng({},eH.width,{dflt:0,editType:"plot"}),dash:eH.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:Fc.offsetgroup,alignmentgroup:Fc.alignmentgroup,zorder:Fc.zorder};function Owt(){var e=Ng({},Fc.marker);return delete e.pattern,delete e.cornerradius,e}});var rH=Te((Scr,Awe)=>{"use strict";Awe.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var nH=Te((Mcr,Swe)=>{"use strict";var RR=ei(),qwt=Gb(),Nwt=r0().handleText,Uwt=K3(),Vwt=Pm(),Twe=tH(),iH=jl();function Gwt(e,t,r,n){function i(c,h){return RR.coerce(e,t,Twe,c,h)}var a=Uwt(e,t,n,i);if(!a){t.visible=!1;return}Vwt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("orientation",t.y&&!t.x?"v":"h"),i("offset"),i("width");var o=i("text");i("hovertext"),i("hovertemplate");var s=i("textposition");Nwt(e,t,n,i,s,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&!t.texttemplate&&i("textinfo",RR.isArrayOrTypedArray(o)?"text+value":"value");var u=i("marker.color",r);i("marker.line.color",iH.defaultLine),i("marker.line.width");var l=i("connector.visible");if(l){i("connector.fillcolor",Hwt(u));var f=i("connector.line.width");f&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function Hwt(e){var t=RR.isArrayOrTypedArray(e)?"#000":e;return iH.addOpacity(t,.5*iH.opacity(t))}function Wwt(e,t){var r,n;function i(o){return RR.coerce(n._input,n,Twe,o)}for(var a=0;a{"use strict";var jwt=ei(),Xwt=rH();Mwe.exports=function(e,t,r){var n=!1;function i(s,u){return jwt.coerce(e,t,Xwt,s,u)}for(var a=0;a{"use strict";var UA=ei();kwe.exports=function(t,r){for(var n=0;n{"use strict";var Lwe=wu(),Pwe=Im(),Zwt=Cwe(),Ywt=F0(),DE=nf().BADNUM;zwe.exports=function(t,r){var n=Lwe.getFromId(t,r.xaxis||"x"),i=Lwe.getFromId(t,r.yaxis||"y"),a,o,s,u,l,f,c,h;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),u=Pwe(r,i,"y",s),l=!!r.yperiodalignment,f="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),u=Pwe(r,n,"x",s),l=!!r.xperiodalignment,f="x"),o=u.vals;var d=Math.min(o.length,a.length),p=new Array(d);for(r._base=[],c=0;c{"use strict";var Rwe=Hb().setGroupPositions;Dwe.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,u=[],l=[],f=[],c,h;for(h=0;h{"use strict";var DR=Jl(),P_=ei(),Bwe=Mu(),L_=nf().BADNUM,Kwt=i2(),Jwt=bp().clearMinTextSize;qwe.exports=function(t,r,n,i){var a=t._fullLayout;Jwt("funnel",a),$wt(t,r,n,i),Qwt(t,r,n,i),Kwt.plot(t,r,n,i,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function $wt(e,t,r,n){var i=t.xaxis,a=t.yaxis;P_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=DR.select(this),u=o[0].trace,l=P_.ensureSingle(s,"g","regions");if(!u.connector||!u.connector.visible){l.remove();return}var f=u.orientation==="h",c=l.selectAll("g.region").data(P_.identity);c.enter().append("g").classed("region",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var x=Owe(d,i,a,f),b=x[0],v=x[1],k="";b[0]!==L_&&v[0]!==L_&&b[1]!==L_&&v[1]!==L_&&b[2]!==L_&&v[2]!==L_&&b[3]!==L_&&v[3]!==L_&&(f?k+="M"+b[0]+","+v[1]+"L"+b[2]+","+v[2]+"H"+b[3]+"L"+b[1]+","+v[1]+"Z":k+="M"+b[1]+","+v[1]+"L"+b[2]+","+v[3]+"V"+v[2]+"L"+b[1]+","+v[0]+"Z"),k===""&&(k="M0,0Z"),P_.ensureSingle(DR.select(this),"path").attr("d",k).call(Bwe.setClipUrl,t.layerClipId,e)}})})}function Qwt(e,t,r,n){var i=t.xaxis,a=t.yaxis;P_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=DR.select(this),u=o[0].trace,l=P_.ensureSingle(s,"g","lines");if(!u.connector||!u.connector.visible||!u.connector.line.width){l.remove();return}var f=u.orientation==="h",c=l.selectAll("g.line").data(P_.identity);c.enter().append("g").classed("line",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var x=Owe(d,i,a,f),b=x[0],v=x[1],k="";b[3]!==void 0&&v[3]!==void 0&&(f?(k+="M"+b[0]+","+v[1]+"L"+b[2]+","+v[2],k+="M"+b[1]+","+v[1]+"L"+b[3]+","+v[2]):(k+="M"+b[1]+","+v[1]+"L"+b[2]+","+v[3],k+="M"+b[1]+","+v[0]+"L"+b[2]+","+v[2])),k===""&&(k="M0,0Z"),P_.ensureSingle(DR.select(this),"path").attr("d",k).call(Bwe.setClipUrl,t.layerClipId,e)}})})}function Owe(e,t,r,n){var i=[],a=[],o=n?t:r,s=n?r:t;return i[0]=o.c2p(e.s0,!0),a[0]=s.c2p(e.p0,!0),i[1]=o.c2p(e.s1,!0),a[1]=s.c2p(e.p1,!0),i[2]=o.c2p(e.nextS0,!0),a[2]=s.c2p(e.nextP0,!0),i[3]=o.c2p(e.nextS1,!0),a[3]=s.c2p(e.nextP1,!0),n?[i,a]:[a,i]}});var Gwe=Te((zcr,Vwe)=>{"use strict";var FE=Jl(),Uwe=Mu(),oH=jl(),e3t=U1().DESELECTDIM,t3t=N0(),r3t=bp().resizeText,i3t=t3t.styleTextPoints;function n3t(e,t,r){var n=r||FE.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");r3t(e,n,"funnel"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=FE.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var u=o.marker;FE.select(this).call(oH.fill,s.mc||u.color).call(oH.stroke,s.mlc||u.line.color).call(Uwe.dashLine,u.line.dash,s.mlw||u.line.width).style("opacity",o.selectedpoints&&!s.selected?e3t:1)}}),i3t(a,o,e),a.selectAll(".regions").each(function(){FE.select(this).selectAll("path").style("stroke-width",0).call(oH.fill,o.connector.fillcolor)}),a.selectAll(".lines").each(function(){var s=o.connector.line;Uwe.lineGroupStyle(FE.select(this).selectAll("path"),s.width,s.color,s.dash)})})}Vwe.exports={style:n3t}});var jwe=Te((Icr,Wwe)=>{"use strict";var Hwe=jl().opacity,a3t=AA().hoverOnBars,sH=ei().formatPercent;Wwe.exports=function(t,r,n,i,a){var o=a3t(t,r,n,i,a);if(o){var s=o.cd,u=s[0].trace,l=u.orientation==="h",f=o.index,c=s[f],h=l?"x":"y";o[h+"LabelVal"]=c.s,o.percentInitial=c.begR,o.percentInitialLabel=sH(c.begR,1),o.percentPrevious=c.difR,o.percentPreviousLabel=sH(c.difR,1),o.percentTotal=c.sumR,o.percentTotalLabel=sH(c.sumR,1);var d=c.hi||u.hoverinfo,p=[];if(d&&d!=="none"&&d!=="skip"){var x=d==="all",b=d.split("+"),v=function(k){return x||b.indexOf(k)!==-1};v("percent initial")&&p.push(o.percentInitialLabel+" of initial"),v("percent previous")&&p.push(o.percentPreviousLabel+" of previous"),v("percent total")&&p.push(o.percentTotalLabel+" of total")}return o.extraText=p.join("
"),o.color=o3t(u,c),[o]}};function o3t(e,t){var r=e.marker,n=t.mc||r.color,i=t.mlc||r.line.color,a=t.mlw||r.line.width;if(Hwe(n))return n;if(Hwe(i)&&a)return i}});var Zwe=Te((Rcr,Xwe)=>{"use strict";Xwe.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"percentInitial"in r&&(t.percentInitial=r.percentInitial),"percentPrevious"in r&&(t.percentPrevious=r.percentPrevious),"percentTotal"in r&&(t.percentTotal=r.percentTotal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var Kwe=Te((Dcr,Ywe)=>{"use strict";Ywe.exports={attributes:tH(),layoutAttributes:rH(),supplyDefaults:nH().supplyDefaults,crossTraceDefaults:nH().crossTraceDefaults,supplyLayoutDefaults:Ewe(),calc:Iwe(),crossTraceCalc:Fwe(),plot:Nwe(),style:Gwe().style,hoverPoints:jwe(),eventData:Zwe(),selectPoints:TA(),moduleType:"trace",name:"funnel",basePlotModule:Ah(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var $we=Te((Fcr,Jwe)=>{"use strict";Jwe.exports=Kwe()});var e3e=Te((Bcr,Qwe)=>{"use strict";Qwe.exports={eventDataKeys:["initial","delta","final"]}});var fH=Te((Ocr,i3e)=>{"use strict";var Ec=Ly(),lH=Zc().line,s3t=Vf(),t3e=jc().axisHoverFormat,l3t=Nu().hovertemplateAttrs,u3t=Nu().texttemplateAttrs,r3e=e3e(),VA=Su().extendFlat,f3t=jl();function uH(e){return{marker:{color:VA({},Ec.marker.color,{arrayOk:!1,editType:"style"}),line:{color:VA({},Ec.marker.line.color,{arrayOk:!1,editType:"style"}),width:VA({},Ec.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}i3e.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:Ec.x,x0:Ec.x0,dx:Ec.dx,y:Ec.y,y0:Ec.y0,dy:Ec.dy,xperiod:Ec.xperiod,yperiod:Ec.yperiod,xperiod0:Ec.xperiod0,yperiod0:Ec.yperiod0,xperiodalignment:Ec.xperiodalignment,yperiodalignment:Ec.yperiodalignment,xhoverformat:t3e("x"),yhoverformat:t3e("y"),hovertext:Ec.hovertext,hovertemplate:l3t({},{keys:r3e.eventDataKeys}),hoverinfo:VA({},s3t.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:u3t({editType:"plot"},{keys:r3e.eventDataKeys.concat(["label"])}),text:Ec.text,textposition:Ec.textposition,insidetextanchor:Ec.insidetextanchor,textangle:Ec.textangle,textfont:Ec.textfont,insidetextfont:Ec.insidetextfont,outsidetextfont:Ec.outsidetextfont,constraintext:Ec.constraintext,cliponaxis:Ec.cliponaxis,orientation:Ec.orientation,offset:Ec.offset,width:Ec.width,increasing:uH("increasing"),decreasing:uH("decreasing"),totals:uH("intermediate sums and total"),connector:{line:{color:VA({},lH.color,{dflt:f3t.defaultLine}),width:VA({},lH.width,{editType:"plot"}),dash:lH.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:Ec.offsetgroup,alignmentgroup:Ec.alignmentgroup,zorder:Ec.zorder}});var cH=Te((qcr,n3e)=>{"use strict";n3e.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var GA=Te((Ncr,a3e)=>{"use strict";a3e.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var dH=Te((Ucr,u3e)=>{"use strict";var o3e=ei(),c3t=Gb(),h3t=r0().handleText,d3t=K3(),p3t=Pm(),s3e=fH(),v3t=jl(),l3e=GA(),m3t=l3e.INCREASING.COLOR,y3t=l3e.DECREASING.COLOR,g3t="#4499FF";function hH(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",v3t.defaultLine),e(t+".marker.line.width")}function _3t(e,t,r,n){function i(l,f){return o3e.coerce(e,t,s3e,l,f)}var a=d3t(e,t,n,i);if(!a){t.visible=!1;return}p3t(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("measure"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate");var o=i("textposition");h3t(e,t,n,i,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&(i("texttemplate"),t.texttemplate||i("textinfo")),hH(i,"increasing",m3t),hH(i,"decreasing",y3t),hH(i,"totals",g3t);var s=i("connector.visible");if(s){i("connector.mode");var u=i("connector.line.width");u&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function x3t(e,t){var r,n;function i(o){return o3e.coerce(n._input,n,s3e,o)}if(t.waterfallmode==="group")for(var a=0;a{"use strict";var b3t=ei(),w3t=cH();f3e.exports=function(e,t,r){var n=!1;function i(s,u){return b3t.coerce(e,t,w3t,s,u)}for(var a=0;a{"use strict";var h3e=wu(),d3e=Im(),p3e=ei().mergeArray,A3t=F0(),v3e=nf().BADNUM;function pH(e){return e==="a"||e==="absolute"}function vH(e){return e==="t"||e==="total"}m3e.exports=function(t,r){var n=h3e.getFromId(t,r.xaxis||"x"),i=h3e.getFromId(t,r.yaxis||"y"),a,o,s,u,l,f;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),u=d3e(r,i,"y",s),l=!!r.yperiodalignment,f="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),u=d3e(r,n,"x",s),l=!!r.xperiodalignment,f="x"),o=u.vals;for(var c=Math.min(o.length,a.length),h=new Array(c),d=0,p,x=!1,b=0;b{"use strict";var g3e=Hb().setGroupPositions;_3e.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,u=[],l=[],f=[],c,h;for(h=0;h{"use strict";var b3e=Jl(),FR=ei(),T3t=Mu(),HA=nf().BADNUM,S3t=i2(),M3t=bp().clearMinTextSize;w3e.exports=function(t,r,n,i){var a=t._fullLayout;M3t("waterfall",a),S3t.plot(t,r,n,i,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),E3t(t,r,n,i)};function E3t(e,t,r,n){var i=t.xaxis,a=t.yaxis;FR.makeTraceGroups(n,r,"trace bars").each(function(o){var s=b3e.select(this),u=o[0].trace,l=FR.ensureSingle(s,"g","lines");if(!u.connector||!u.connector.visible){l.remove();return}var f=u.orientation==="h",c=u.connector.mode,h=l.selectAll("g.line").data(FR.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(p,x){if(!(x!==d-1&&!p.cNext)){var b=k3t(p,i,a,f),v=b[0],k=b[1],E="";v[0]!==HA&&k[0]!==HA&&v[1]!==HA&&k[1]!==HA&&(c==="spanning"&&!p.isSum&&x>0&&(f?E+="M"+v[0]+","+k[1]+"V"+k[0]:E+="M"+v[1]+","+k[0]+"H"+v[0]),c!=="between"&&(p.isSum||x{"use strict";var BR=Jl(),T3e=Mu(),S3e=jl(),C3t=U1().DESELECTDIM,L3t=N0(),P3t=bp().resizeText,z3t=L3t.styleTextPoints;function I3t(e,t,r){var n=r||BR.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");P3t(e,n,"waterfall"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=BR.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var u=o[s.dir].marker;BR.select(this).call(S3e.fill,u.color).call(S3e.stroke,u.line.color).call(T3e.dashLine,u.line.dash,u.line.width).style("opacity",o.selectedpoints&&!s.selected?C3t:1)}}),z3t(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;T3e.lineGroupStyle(BR.select(this).selectAll("path"),s.width,s.color,s.dash)})})}M3e.exports={style:I3t}});var z3e=Te((Xcr,P3e)=>{"use strict";var R3t=wu().hoverLabelText,k3e=jl().opacity,D3t=AA().hoverOnBars,C3e=GA(),L3e={increasing:C3e.INCREASING.SYMBOL,decreasing:C3e.DECREASING.SYMBOL};P3e.exports=function(t,r,n,i,a){var o=D3t(t,r,n,i,a);if(!o)return;var s=o.cd,u=s[0].trace,l=u.orientation==="h",f=l?"x":"y",c=l?t.xa:t.ya;function h(_){return R3t(c,_,u[f+"hoverformat"])}var d=o.index,p=s[d],x=p.isSum?p.b+p.s:p.rawS;o.initial=p.b+p.s-x,o.delta=x,o.final=o.initial+o.delta;var b=h(Math.abs(o.delta));o.deltaLabel=x<0?"("+b+")":b,o.finalLabel=h(o.final),o.initialLabel=h(o.initial);var v=p.hi||u.hoverinfo,k=[];if(v&&v!=="none"&&v!=="skip"){var E=v==="all",T=v.split("+"),L=function(_){return E||T.indexOf(_)!==-1};p.isSum||(L("final")&&(l?!L("x"):!L("y"))&&k.push(o.finalLabel),L("delta")&&(x<0?k.push(o.deltaLabel+" "+L3e.decreasing):k.push(o.deltaLabel+" "+L3e.increasing)),L("initial")&&k.push("Initial: "+o.initialLabel))}return k.length&&(o.extraText=k.join("
")),o.color=F3t(u,p),[o]};function F3t(e,t){var r=e[t.dir].marker,n=r.color,i=r.line.color,a=r.line.width;if(k3e(n))return n;if(k3e(i)&&a)return i}});var R3e=Te((Zcr,I3e)=>{"use strict";I3e.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"initial"in r&&(t.initial=r.initial),"delta"in r&&(t.delta=r.delta),"final"in r&&(t.final=r.final),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var F3e=Te((Ycr,D3e)=>{"use strict";D3e.exports={attributes:fH(),layoutAttributes:cH(),supplyDefaults:dH().supplyDefaults,crossTraceDefaults:dH().crossTraceDefaults,supplyLayoutDefaults:c3e(),calc:y3e(),crossTraceCalc:x3e(),plot:A3e(),style:E3e().style,hoverPoints:z3e(),eventData:R3e(),selectPoints:TA(),moduleType:"trace",name:"waterfall",basePlotModule:Ah(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var O3e=Te((Kcr,B3e)=>{"use strict";B3e.exports=F3e()});var WA=Te((Jcr,q3e)=>{"use strict";q3e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var t=e.slice(0,3);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var t=e.slice(0,4);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%",""]}}}});var mH=Te(($cr,U3e)=>{"use strict";var B3t=Vf(),O3t=Zc().zorder,q3t=Nu().hovertemplateAttrs,N3e=Su().extendFlat,N3t=WA().colormodel,OE=["rgb","rgba","rgba256","hsl","hsla"],U3t=[],V3t=[];for(jA=0;jA{"use strict";var G3t=ei(),H3t=mH(),V3e=WA(),W3t=Lg().IMAGE_URL_PREFIX;G3e.exports=function(t,r){function n(o,s){return G3t.coerce(t,r,H3t,o,s)}n("source"),r.source&&!r.source.match(W3t)&&delete r.source,r._hasSource=!!r.source;var i=n("z");if(r._hasZ=!(i===void 0||!i.length||!i[0]||!i[0].length),!r._hasZ&&!r._hasSource){r.visible=!1;return}n("x0"),n("y0"),n("dx"),n("dy");var a;r._hasZ?(n("colormodel","rgb"),a=V3e.colormodel[r.colormodel],n("zmin",a.zminDflt||a.min),n("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=V3e.colormodel[r.colormodel],r.zmin=a.zminDflt,r.zmax=a.zmaxDflt),n("zsmooth"),n("text"),n("hovertext"),n("hovertemplate"),r._length=null,n("zorder")}});var Ug=Te((ehr,yH)=>{typeof Object.create=="function"?yH.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:yH.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var gH=Te((thr,W3e)=>{W3e.exports=pb().EventEmitter});var Z3e=Te(OR=>{"use strict";OR.byteLength=X3t;OR.toByteArray=Y3t;OR.fromByteArray=$3t;var Fy=[],X0=[],j3t=typeof Uint8Array!="undefined"?Uint8Array:Array,_H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(s2=0,j3e=_H.length;s20)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function X3t(e){var t=X3e(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Z3t(e,t,r){return(t+r)*3/4-r}function Y3t(e){var t,r=X3e(e),n=r[0],i=r[1],a=new j3t(Z3t(e,n,i)),o=0,s=i>0?n-4:n,u;for(u=0;u>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=X0[e.charCodeAt(u)]<<2|X0[e.charCodeAt(u+1)]>>4,a[o++]=t&255),i===1&&(t=X0[e.charCodeAt(u)]<<10|X0[e.charCodeAt(u+1)]<<4|X0[e.charCodeAt(u+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function K3t(e){return Fy[e>>18&63]+Fy[e>>12&63]+Fy[e>>6&63]+Fy[e&63]}function J3t(e,t,r){for(var n,i=[],a=t;as?s:o+a));return n===1?(t=e[r-1],i.push(Fy[t>>2]+Fy[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Fy[t>>10]+Fy[t>>4&63]+Fy[t<<2&63]+"=")),i.join("")}});var Y3e=Te(xH=>{xH.read=function(e,t,r,n,i){var a,o,s=i*8-n-1,u=(1<>1,f=-7,c=r?i-1:0,h=r?-1:1,d=e[t+c];for(c+=h,a=d&(1<<-f)-1,d>>=-f,f+=s;f>0;a=a*256+e[t+c],c+=h,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=o*256+e[t+c],c+=h,f-=8);if(a===0)a=1-l;else{if(a===u)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-l}return(d?-1:1)*o*Math.pow(2,a-n)};xH.write=function(e,t,r,n,i,a){var o,s,u,l=a*8-i-1,f=(1<>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,p=n?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+c>=1?t+=h/u:t+=h*Math.pow(2,1-c),t*u>=2&&(o++,u/=2),o+c>=f?(s=0,o=f):o+c>=1?(s=(t*u-1)*Math.pow(2,i),o=o+c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;e[r+d]=s&255,d+=p,s/=256,i-=8);for(o=o<0;e[r+d]=o&255,d+=p,o/=256,l-=8);e[r+d-p]|=x*128}});var u2=Te(KA=>{"use strict";var bH=Z3e(),ZA=Y3e(),K3e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;KA.Buffer=ol;KA.SlowBuffer=nAt;KA.INSPECT_MAX_BYTES=50;var qR=2147483647;KA.kMaxLength=qR;ol.TYPED_ARRAY_SUPPORT=Q3t();!ol.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Q3t(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(e){return!1}}Object.defineProperty(ol.prototype,"parent",{enumerable:!0,get:function(){if(ol.isBuffer(this))return this.buffer}});Object.defineProperty(ol.prototype,"offset",{enumerable:!0,get:function(){if(ol.isBuffer(this))return this.byteOffset}});function Vg(e){if(e>qR)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,ol.prototype),t}function ol(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return SH(e)}return eAe(e,t,r)}ol.poolSize=8192;function eAe(e,t,r){if(typeof e=="string")return tAt(e,t);if(ArrayBuffer.isView(e))return rAt(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(By(e,ArrayBuffer)||e&&By(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(By(e,SharedArrayBuffer)||e&&By(e.buffer,SharedArrayBuffer)))return AH(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return ol.from(n,t,r);let i=iAt(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return ol.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}ol.from=function(e,t,r){return eAe(e,t,r)};Object.setPrototypeOf(ol.prototype,Uint8Array.prototype);Object.setPrototypeOf(ol,Uint8Array);function tAe(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function eAt(e,t,r){return tAe(e),e<=0?Vg(e):t!==void 0?typeof r=="string"?Vg(e).fill(t,r):Vg(e).fill(t):Vg(e)}ol.alloc=function(e,t,r){return eAt(e,t,r)};function SH(e){return tAe(e),Vg(e<0?0:MH(e)|0)}ol.allocUnsafe=function(e){return SH(e)};ol.allocUnsafeSlow=function(e){return SH(e)};function tAt(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!ol.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=rAe(e,t)|0,n=Vg(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function wH(e){let t=e.length<0?0:MH(e.length)|0,r=Vg(t);for(let n=0;n=qR)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+qR.toString(16)+" bytes");return e|0}function nAt(e){return+e!=e&&(e=0),ol.alloc(+e)}ol.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==ol.prototype};ol.compare=function(t,r){if(By(t,Uint8Array)&&(t=ol.from(t,t.offset,t.byteLength)),By(r,Uint8Array)&&(r=ol.from(r,r.offset,r.byteLength)),!ol.isBuffer(t)||!ol.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,i=r.length;for(let a=0,o=Math.min(n,i);ai.length?(ol.isBuffer(o)||(o=ol.from(o)),o.copy(i,a)):Uint8Array.prototype.set.call(i,o,a);else if(ol.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function rAe(e,t){if(ol.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||By(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return TH(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return cAe(e).length;default:if(i)return n?-1:TH(e).length;t=(""+t).toLowerCase(),i=!0}}ol.byteLength=rAe;function aAt(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return vAt(this,t,r);case"utf8":case"utf-8":return nAe(this,t,r);case"ascii":return dAt(this,t,r);case"latin1":case"binary":return pAt(this,t,r);case"base64":return cAt(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mAt(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}ol.prototype._isBuffer=!0;function l2(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}ol.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;rr&&(t+=" ... "),""};K3e&&(ol.prototype[K3e]=ol.prototype.inspect);ol.prototype.compare=function(t,r,n,i,a){if(By(t,Uint8Array)&&(t=ol.from(t,t.offset,t.byteLength)),!ol.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>t.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===t)return 0;let o=a-i,s=n-r,u=Math.min(o,s),l=this.slice(i,a),f=t.slice(r,n);for(let c=0;c2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,kH(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=ol.from(t,n)),ol.isBuffer(t))return t.length===0?-1:J3e(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):J3e(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function J3e(e,t,r,n,i){let a=1,o=e.length,s=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function u(f,c){return a===1?f[c]:f.readUInt16BE(c*a)}let l;if(i){let f=-1;for(l=r;lo&&(r=o-s),l=r;l>=0;l--){let f=!0;for(let c=0;ci&&(n=i)):n=i;let a=t.length;n>a/2&&(n=a/2);let o;for(o=0;o>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return oAt(this,t,r,n);case"utf8":case"utf-8":return sAt(this,t,r,n);case"ascii":case"latin1":case"binary":return lAt(this,t,r,n);case"base64":return uAt(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fAt(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};ol.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function cAt(e,t,r){return t===0&&r===e.length?bH.fromByteArray(e):bH.fromByteArray(e.slice(t,r))}function nAe(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i239?4:a>223?3:a>191?2:1;if(i+s<=r){let u,l,f,c;switch(s){case 1:a<128&&(o=a);break;case 2:u=e[i+1],(u&192)===128&&(c=(a&31)<<6|u&63,c>127&&(o=c));break;case 3:u=e[i+1],l=e[i+2],(u&192)===128&&(l&192)===128&&(c=(a&15)<<12|(u&63)<<6|l&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:u=e[i+1],l=e[i+2],f=e[i+3],(u&192)===128&&(l&192)===128&&(f&192)===128&&(c=(a&15)<<18|(u&63)<<12|(l&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return hAt(n)}var $3e=4096;function hAt(e){let t=e.length;if(t<=$3e)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let a=t;an&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),rr)throw new RangeError("Trying to access beyond buffer length")}ol.prototype.readUintLE=ol.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||rp(t,r,this.length);let i=this[t],a=1,o=0;for(;++o>>0,r=r>>>0,n||rp(t,r,this.length);let i=this[t+--r],a=1;for(;r>0&&(a*=256);)i+=this[t+--r]*a;return i};ol.prototype.readUint8=ol.prototype.readUInt8=function(t,r){return t=t>>>0,r||rp(t,1,this.length),this[t]};ol.prototype.readUint16LE=ol.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||rp(t,2,this.length),this[t]|this[t+1]<<8};ol.prototype.readUint16BE=ol.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||rp(t,2,this.length),this[t]<<8|this[t+1]};ol.prototype.readUint32LE=ol.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||rp(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};ol.prototype.readUint32BE=ol.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||rp(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};ol.prototype.readBigUInt64LE=z_(function(t){t=t>>>0,YA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&qE(t,this.length-8);let i=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(a)<>>0,YA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&qE(t,this.length-8);let i=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<>>0,r=r>>>0,n||rp(t,r,this.length);let i=this[t],a=1,o=0;for(;++o=a&&(i-=Math.pow(2,8*r)),i};ol.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||rp(t,r,this.length);let i=r,a=1,o=this[t+--i];for(;i>0&&(a*=256);)o+=this[t+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};ol.prototype.readInt8=function(t,r){return t=t>>>0,r||rp(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};ol.prototype.readInt16LE=function(t,r){t=t>>>0,r||rp(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};ol.prototype.readInt16BE=function(t,r){t=t>>>0,r||rp(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};ol.prototype.readInt32LE=function(t,r){return t=t>>>0,r||rp(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};ol.prototype.readInt32BE=function(t,r){return t=t>>>0,r||rp(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};ol.prototype.readBigInt64LE=z_(function(t){t=t>>>0,YA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&qE(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<>>0,YA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&qE(t,this.length-8);let i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<>>0,r||rp(t,4,this.length),ZA.read(this,t,!0,23,4)};ol.prototype.readFloatBE=function(t,r){return t=t>>>0,r||rp(t,4,this.length),ZA.read(this,t,!1,23,4)};ol.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||rp(t,8,this.length),ZA.read(this,t,!0,52,8)};ol.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||rp(t,8,this.length),ZA.read(this,t,!1,52,8)};function zv(e,t,r,n,i,a){if(!ol.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}ol.prototype.writeUintLE=ol.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;zv(this,t,r,n,s,0)}let a=1,o=0;for(this[r]=t&255;++o>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;zv(this,t,r,n,s,0)}let a=n-1,o=1;for(this[r+a]=t&255;--a>=0&&(o*=256);)this[r+a]=t/o&255;return r+n};ol.prototype.writeUint8=ol.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,1,255,0),this[r]=t&255,r+1};ol.prototype.writeUint16LE=ol.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};ol.prototype.writeUint16BE=ol.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};ol.prototype.writeUint32LE=ol.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};ol.prototype.writeUint32BE=ol.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function aAe(e,t,r,n,i){fAe(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function oAe(e,t,r,n,i){fAe(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}ol.prototype.writeBigUInt64LE=z_(function(t,r=0){return aAe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ol.prototype.writeBigUInt64BE=z_(function(t,r=0){return oAe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ol.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let u=Math.pow(2,8*n-1);zv(this,t,r,n,u-1,-u)}let a=0,o=1,s=0;for(this[r]=t&255;++a>0)-s&255;return r+n};ol.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let u=Math.pow(2,8*n-1);zv(this,t,r,n,u-1,-u)}let a=n-1,o=1,s=0;for(this[r+a]=t&255;--a>=0&&(o*=256);)t<0&&s===0&&this[r+a+1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+n};ol.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};ol.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};ol.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};ol.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};ol.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||zv(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};ol.prototype.writeBigInt64LE=z_(function(t,r=0){return aAe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});ol.prototype.writeBigInt64BE=z_(function(t,r=0){return oAe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function sAe(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function lAe(e,t,r,n,i){return t=+t,r=r>>>0,i||sAe(e,t,r,4,34028234663852886e22,-34028234663852886e22),ZA.write(e,t,r,n,23,4),r+4}ol.prototype.writeFloatLE=function(t,r,n){return lAe(this,t,r,!0,n)};ol.prototype.writeFloatBE=function(t,r,n){return lAe(this,t,r,!1,n)};function uAe(e,t,r,n,i){return t=+t,r=r>>>0,i||sAe(e,t,r,8,17976931348623157e292,-17976931348623157e292),ZA.write(e,t,r,n,52,8),r+8}ol.prototype.writeDoubleLE=function(t,r,n){return uAe(this,t,r,!0,n)};ol.prototype.writeDoubleBE=function(t,r,n){return uAe(this,t,r,!1,n)};ol.prototype.copy=function(t,r,n,i){if(!ol.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a2**32?i=Q3e(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=Q3e(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function Q3e(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function yAt(e,t,r){YA(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&qE(t,e.length-(r+1))}function fAe(e,t,r,n,i,a){if(e>r||e3?t===0||t===BigInt(0)?s=`>= 0${o} and < 2${o} ** ${(a+1)*8}${o}`:s=`>= -(2${o} ** ${(a+1)*8-1}${o}) and < 2 ** ${(a+1)*8-1}${o}`:s=`>= ${t}${o} and <= ${r}${o}`,new XA.ERR_OUT_OF_RANGE("value",s,e)}yAt(n,i,a)}function YA(e,t){if(typeof e!="number")throw new XA.ERR_INVALID_ARG_TYPE(t,"number",e)}function qE(e,t,r){throw Math.floor(e)!==e?(YA(e,r),new XA.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new XA.ERR_BUFFER_OUT_OF_BOUNDS:new XA.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var gAt=/[^+/0-9A-Za-z-_]/g;function _At(e){if(e=e.split("=")[0],e=e.trim().replace(gAt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function TH(e,t){t=t||1/0;let r,n=e.length,i=null,a=[];for(let o=0;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function xAt(e){let t=[];for(let r=0;r>8,i=r%256,a.push(i),a.push(n);return a}function cAe(e){return bH.toByteArray(_At(e))}function NR(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function By(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function kH(e){return e!==e}var wAt=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function z_(e){return typeof BigInt=="undefined"?AAt:e}function AAt(){throw new Error("BigInt not supported")}});var UR=Te((ohr,hAe)=>{"use strict";hAe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}});var NE=Te((shr,dAe)=>{"use strict";var TAt=UR();dAe.exports=function(){return TAt()&&!!Symbol.toStringTag}});var CH=Te((lhr,pAe)=>{"use strict";pAe.exports=Object});var mAe=Te((uhr,vAe)=>{"use strict";vAe.exports=Error});var gAe=Te((fhr,yAe)=>{"use strict";yAe.exports=EvalError});var xAe=Te((chr,_Ae)=>{"use strict";_Ae.exports=RangeError});var wAe=Te((hhr,bAe)=>{"use strict";bAe.exports=ReferenceError});var LH=Te((dhr,AAe)=>{"use strict";AAe.exports=SyntaxError});var JA=Te((phr,TAe)=>{"use strict";TAe.exports=TypeError});var MAe=Te((vhr,SAe)=>{"use strict";SAe.exports=URIError});var kAe=Te((mhr,EAe)=>{"use strict";EAe.exports=Math.abs});var LAe=Te((yhr,CAe)=>{"use strict";CAe.exports=Math.floor});var zAe=Te((ghr,PAe)=>{"use strict";PAe.exports=Math.max});var RAe=Te((_hr,IAe)=>{"use strict";IAe.exports=Math.min});var FAe=Te((xhr,DAe)=>{"use strict";DAe.exports=Math.pow});var OAe=Te((bhr,BAe)=>{"use strict";BAe.exports=Math.round});var NAe=Te((whr,qAe)=>{"use strict";qAe.exports=Number.isNaN||function(t){return t!==t}});var VAe=Te((Ahr,UAe)=>{"use strict";var SAt=NAe();UAe.exports=function(t){return SAt(t)||t===0?t:t<0?-1:1}});var HAe=Te((Thr,GAe)=>{"use strict";GAe.exports=Object.getOwnPropertyDescriptor});var f2=Te((Shr,WAe)=>{"use strict";var VR=HAe();if(VR)try{VR([],"length")}catch(e){VR=null}WAe.exports=VR});var UE=Te((Mhr,jAe)=>{"use strict";var GR=Object.defineProperty||!1;if(GR)try{GR({},"a",{value:1})}catch(e){GR=!1}jAe.exports=GR});var YAe=Te((Ehr,ZAe)=>{"use strict";var XAe=typeof Symbol!="undefined"&&Symbol,MAt=UR();ZAe.exports=function(){return typeof XAe!="function"||typeof Symbol!="function"||typeof XAe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:MAt()}});var PH=Te((khr,KAe)=>{"use strict";KAe.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var zH=Te((Chr,JAe)=>{"use strict";var EAt=CH();JAe.exports=EAt.getPrototypeOf||null});var eTe=Te((Lhr,QAe)=>{"use strict";var kAt="Function.prototype.bind called on incompatible ",CAt=Object.prototype.toString,LAt=Math.max,PAt="[object Function]",$Ae=function(t,r){for(var n=[],i=0;i{"use strict";var RAt=eTe();tTe.exports=Function.prototype.bind||RAt});var HR=Te((zhr,rTe)=>{"use strict";rTe.exports=Function.prototype.call});var IH=Te((Ihr,iTe)=>{"use strict";iTe.exports=Function.prototype.apply});var aTe=Te((Rhr,nTe)=>{"use strict";nTe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var sTe=Te((Dhr,oTe)=>{"use strict";var DAt=$A(),FAt=IH(),BAt=HR(),OAt=aTe();oTe.exports=OAt||DAt.call(BAt,FAt)});var uTe=Te((Fhr,lTe)=>{"use strict";var qAt=$A(),NAt=JA(),UAt=HR(),VAt=sTe();lTe.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new NAt("a function is required");return VAt(qAt,UAt,t)}});var vTe=Te((Bhr,pTe)=>{"use strict";var GAt=uTe(),fTe=f2(),hTe;try{hTe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var RH=!!hTe&&fTe&&fTe(Object.prototype,"__proto__"),dTe=Object,cTe=dTe.getPrototypeOf;pTe.exports=RH&&typeof RH.get=="function"?GAt([RH.get]):typeof cTe=="function"?function(t){return cTe(t==null?t:dTe(t))}:!1});var xTe=Te((Ohr,_Te)=>{"use strict";var mTe=PH(),yTe=zH(),gTe=vTe();_Te.exports=mTe?function(t){return mTe(t)}:yTe?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return yTe(t)}:gTe?function(t){return gTe(t)}:null});var wTe=Te((qhr,bTe)=>{"use strict";var HAt=Function.prototype.call,WAt=Object.prototype.hasOwnProperty,jAt=$A();bTe.exports=jAt.call(HAt,WAt)});var XR=Te((Nhr,kTe)=>{"use strict";var $f,XAt=CH(),ZAt=mAe(),YAt=gAe(),KAt=xAe(),JAt=wAe(),rT=LH(),tT=JA(),$At=MAe(),QAt=kAe(),eTt=LAe(),tTt=zAe(),rTt=RAe(),iTt=FAe(),nTt=OAe(),aTt=VAe(),MTe=Function,DH=function(e){try{return MTe('"use strict"; return ('+e+").constructor;")()}catch(t){}},VE=f2(),oTt=UE(),FH=function(){throw new tT},sTt=VE?function(){try{return arguments.callee,FH}catch(e){try{return VE(arguments,"callee").get}catch(t){return FH}}}():FH,QA=YAe()(),ip=xTe(),lTt=zH(),uTt=PH(),ETe=IH(),GE=HR(),eT={},fTt=typeof Uint8Array=="undefined"||!ip?$f:ip(Uint8Array),c2={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?$f:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?$f:ArrayBuffer,"%ArrayIteratorPrototype%":QA&&ip?ip([][Symbol.iterator]()):$f,"%AsyncFromSyncIteratorPrototype%":$f,"%AsyncFunction%":eT,"%AsyncGenerator%":eT,"%AsyncGeneratorFunction%":eT,"%AsyncIteratorPrototype%":eT,"%Atomics%":typeof Atomics=="undefined"?$f:Atomics,"%BigInt%":typeof BigInt=="undefined"?$f:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?$f:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?$f:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?$f:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ZAt,"%eval%":eval,"%EvalError%":YAt,"%Float16Array%":typeof Float16Array=="undefined"?$f:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?$f:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?$f:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?$f:FinalizationRegistry,"%Function%":MTe,"%GeneratorFunction%":eT,"%Int8Array%":typeof Int8Array=="undefined"?$f:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?$f:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?$f:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":QA&&ip?ip(ip([][Symbol.iterator]())):$f,"%JSON%":typeof JSON=="object"?JSON:$f,"%Map%":typeof Map=="undefined"?$f:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!QA||!ip?$f:ip(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":XAt,"%Object.getOwnPropertyDescriptor%":VE,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?$f:Promise,"%Proxy%":typeof Proxy=="undefined"?$f:Proxy,"%RangeError%":KAt,"%ReferenceError%":JAt,"%Reflect%":typeof Reflect=="undefined"?$f:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?$f:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!QA||!ip?$f:ip(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?$f:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":QA&&ip?ip(""[Symbol.iterator]()):$f,"%Symbol%":QA?Symbol:$f,"%SyntaxError%":rT,"%ThrowTypeError%":sTt,"%TypedArray%":fTt,"%TypeError%":tT,"%Uint8Array%":typeof Uint8Array=="undefined"?$f:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?$f:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?$f:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?$f:Uint32Array,"%URIError%":$At,"%WeakMap%":typeof WeakMap=="undefined"?$f:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?$f:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?$f:WeakSet,"%Function.prototype.call%":GE,"%Function.prototype.apply%":ETe,"%Object.defineProperty%":oTt,"%Object.getPrototypeOf%":lTt,"%Math.abs%":QAt,"%Math.floor%":eTt,"%Math.max%":tTt,"%Math.min%":rTt,"%Math.pow%":iTt,"%Math.round%":nTt,"%Math.sign%":aTt,"%Reflect.getPrototypeOf%":uTt};if(ip)try{null.error}catch(e){ATe=ip(ip(e)),c2["%Error.prototype%"]=ATe}var ATe,cTt=function e(t){var r;if(t==="%AsyncFunction%")r=DH("async function () {}");else if(t==="%GeneratorFunction%")r=DH("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=DH("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&ip&&(r=ip(i.prototype))}return c2[t]=r,r},TTe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},HE=$A(),WR=wTe(),hTt=HE.call(GE,Array.prototype.concat),dTt=HE.call(ETe,Array.prototype.splice),STe=HE.call(GE,String.prototype.replace),jR=HE.call(GE,String.prototype.slice),pTt=HE.call(GE,RegExp.prototype.exec),vTt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,mTt=/\\(\\)?/g,yTt=function(t){var r=jR(t,0,1),n=jR(t,-1);if(r==="%"&&n!=="%")throw new rT("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new rT("invalid intrinsic syntax, expected opening `%`");var i=[];return STe(t,vTt,function(a,o,s,u){i[i.length]=s?STe(u,mTt,"$1"):o||a}),i},gTt=function(t,r){var n=t,i;if(WR(TTe,n)&&(i=TTe[n],n="%"+i[0]+"%"),WR(c2,n)){var a=c2[n];if(a===eT&&(a=cTt(n)),typeof a=="undefined"&&!r)throw new tT("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new rT("intrinsic "+t+" does not exist!")};kTe.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new tT("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new tT('"allowMissing" argument must be a boolean');if(pTt(/^%?[^%]*%?$/,t)===null)throw new rT("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=yTt(t),i=n.length>0?n[0]:"",a=gTt("%"+i+"%",r),o=a.name,s=a.value,u=!1,l=a.alias;l&&(i=l[0],dTt(n,hTt([0,1],l)));for(var f=1,c=!0;f=n.length){var x=VE(s,h);c=!!x,c&&"get"in x&&!("originalValue"in x.get)?s=x.get:s=s[h]}else c=WR(s,h),s=s[h];c&&!u&&(c2[o]=s)}}return s}});var zTe=Te((Uhr,PTe)=>{"use strict";var CTe=UE(),_Tt=LH(),iT=JA(),LTe=f2();PTe.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new iT("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new iT("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new iT("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new iT("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new iT("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new iT("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,u=!!LTe&<e(t,r);if(CTe)CTe(t,r,{configurable:o===null&&u?u.configurable:!o,enumerable:i===null&&u?u.enumerable:!i,value:n,writable:a===null&&u?u.writable:!a});else if(s||!i&&!a&&!o)t[r]=n;else throw new _Tt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var OH=Te((Vhr,RTe)=>{"use strict";var BH=UE(),ITe=function(){return!!BH};ITe.hasArrayLengthDefineBug=function(){if(!BH)return null;try{return BH([],"length",{value:1}).length!==1}catch(t){return!0}};RTe.exports=ITe});var qTe=Te((Ghr,OTe)=>{"use strict";var xTt=XR(),DTe=zTe(),bTt=OH()(),FTe=f2(),BTe=JA(),wTt=xTt("%Math.floor%");OTe.exports=function(t,r){if(typeof t!="function")throw new BTe("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||wTt(r)!==r)throw new BTe("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,a=!0;if("length"in t&&FTe){var o=FTe(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(a=!1)}return(i||a||!n)&&(bTt?DTe(t,"length",r,!0,!0):DTe(t,"length",r)),t}});var WE=Te((Hhr,ZR)=>{"use strict";var qH=$A(),YR=XR(),ATt=qTe(),TTt=JA(),VTe=YR("%Function.prototype.apply%"),GTe=YR("%Function.prototype.call%"),HTe=YR("%Reflect.apply%",!0)||qH.call(GTe,VTe),NTe=UE(),STt=YR("%Math.max%");ZR.exports=function(t){if(typeof t!="function")throw new TTt("a function is required");var r=HTe(qH,GTe,arguments);return ATt(r,1+STt(0,t.length-(arguments.length-1)),!0)};var UTe=function(){return HTe(qH,VTe,arguments)};NTe?NTe(ZR.exports,"apply",{value:UTe}):ZR.exports.apply=UTe});var nT=Te((Whr,XTe)=>{"use strict";var WTe=XR(),jTe=WE(),MTt=jTe(WTe("String.prototype.indexOf"));XTe.exports=function(t,r){var n=WTe(t,!!r);return typeof n=="function"&&MTt(t,".prototype.")>-1?jTe(n):n}});var KTe=Te((jhr,YTe)=>{"use strict";var ETt=NE()(),kTt=nT(),NH=kTt("Object.prototype.toString"),KR=function(t){return ETt&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:NH(t)==="[object Arguments]"},ZTe=function(t){return KR(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&NH(t)!=="[object Array]"&&NH(t.callee)==="[object Function]"},CTt=function(){return KR(arguments)}();KR.isLegacyArguments=ZTe;YTe.exports=CTt?KR:ZTe});var QTe=Te((Xhr,$Te)=>{"use strict";var LTt=Object.prototype.toString,PTt=Function.prototype.toString,zTt=/^\s*(?:function)?\*/,JTe=NE()(),UH=Object.getPrototypeOf,ITt=function(){if(!JTe)return!1;try{return Function("return function*() {}")()}catch(e){}},VH;$Te.exports=function(t){if(typeof t!="function")return!1;if(zTt.test(PTt.call(t)))return!0;if(!JTe){var r=LTt.call(t);return r==="[object GeneratorFunction]"}if(!UH)return!1;if(typeof VH=="undefined"){var n=ITt();VH=n?UH(n):!1}return UH(t)===VH}});var iSe=Te((Zhr,rSe)=>{"use strict";var tSe=Function.prototype.toString,aT=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,HH,JR;if(typeof aT=="function"&&typeof Object.defineProperty=="function")try{HH=Object.defineProperty({},"length",{get:function(){throw JR}}),JR={},aT(function(){throw 42},null,HH)}catch(e){e!==JR&&(aT=null)}else aT=null;var RTt=/^\s*class\b/,WH=function(t){try{var r=tSe.call(t);return RTt.test(r)}catch(n){return!1}},GH=function(t){try{return WH(t)?!1:(tSe.call(t),!0)}catch(r){return!1}},$R=Object.prototype.toString,DTt="[object Object]",FTt="[object Function]",BTt="[object GeneratorFunction]",OTt="[object HTMLAllCollection]",qTt="[object HTML document.all class]",NTt="[object HTMLCollection]",UTt=typeof Symbol=="function"&&!!Symbol.toStringTag,VTt=!(0 in[,]),jH=function(){return!1};typeof document=="object"&&(eSe=document.all,$R.call(eSe)===$R.call(document.all)&&(jH=function(t){if((VTt||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=$R.call(t);return(r===OTt||r===qTt||r===NTt||r===DTt)&&t("")==null}catch(n){}return!1}));var eSe;rSe.exports=aT?function(t){if(jH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{aT(t,null,HH)}catch(r){if(r!==JR)return!1}return!WH(t)&&GH(t)}:function(t){if(jH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(UTt)return GH(t);if(WH(t))return!1;var r=$R.call(t);return r!==FTt&&r!==BTt&&!/^\[object HTML/.test(r)?!1:GH(t)}});var XH=Te((Yhr,aSe)=>{"use strict";var GTt=iSe(),HTt=Object.prototype.toString,nSe=Object.prototype.hasOwnProperty,WTt=function(t,r,n){for(var i=0,a=t.length;i=3&&(i=n),HTt.call(t)==="[object Array]"?WTt(t,r,i):typeof t=="string"?jTt(t,r,i):XTt(t,r,i)};aSe.exports=ZTt});var YH=Te((Khr,oSe)=>{"use strict";var ZH=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],YTt=typeof globalThis=="undefined"?window:globalThis;oSe.exports=function(){for(var t=[],r=0;r{"use strict";var eD=XH(),KTt=YH(),sSe=WE(),$H=nT(),QR=f2(),JTt=$H("Object.prototype.toString"),uSe=NE()(),lSe=typeof globalThis=="undefined"?window:globalThis,JH=KTt(),QH=$H("String.prototype.slice"),KH=Object.getPrototypeOf,$Tt=$H("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1?r:r!=="Object"?!1:eSt(t)}return QR?QTt(t):null}});var ySe=Te(($hr,mSe)=>{"use strict";var hSe=XH(),tSt=YH(),tW=nT(),rSt=tW("Object.prototype.toString"),dSe=NE()(),rD=f2(),iSt=typeof globalThis=="undefined"?window:globalThis,pSe=tSt(),nSt=tW("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1}return rD?oSt(t):!1}});var nW=Te(Qf=>{"use strict";var sSt=KTe(),lSt=QTe(),Gm=cSe(),gSe=ySe();function oT(e){return e.call.bind(e)}var _Se=typeof BigInt!="undefined",xSe=typeof Symbol!="undefined",Z0=oT(Object.prototype.toString),uSt=oT(Number.prototype.valueOf),fSt=oT(String.prototype.valueOf),cSt=oT(Boolean.prototype.valueOf);_Se&&(bSe=oT(BigInt.prototype.valueOf));var bSe;xSe&&(wSe=oT(Symbol.prototype.valueOf));var wSe;function XE(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}Qf.isArgumentsObject=sSt;Qf.isGeneratorFunction=lSt;Qf.isTypedArray=gSe;function hSt(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}Qf.isPromise=hSt;function dSt(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):gSe(e)||TSe(e)}Qf.isArrayBufferView=dSt;function pSt(e){return Gm(e)==="Uint8Array"}Qf.isUint8Array=pSt;function vSt(e){return Gm(e)==="Uint8ClampedArray"}Qf.isUint8ClampedArray=vSt;function mSt(e){return Gm(e)==="Uint16Array"}Qf.isUint16Array=mSt;function ySt(e){return Gm(e)==="Uint32Array"}Qf.isUint32Array=ySt;function gSt(e){return Gm(e)==="Int8Array"}Qf.isInt8Array=gSt;function _St(e){return Gm(e)==="Int16Array"}Qf.isInt16Array=_St;function xSt(e){return Gm(e)==="Int32Array"}Qf.isInt32Array=xSt;function bSt(e){return Gm(e)==="Float32Array"}Qf.isFloat32Array=bSt;function wSt(e){return Gm(e)==="Float64Array"}Qf.isFloat64Array=wSt;function ASt(e){return Gm(e)==="BigInt64Array"}Qf.isBigInt64Array=ASt;function TSt(e){return Gm(e)==="BigUint64Array"}Qf.isBigUint64Array=TSt;function iD(e){return Z0(e)==="[object Map]"}iD.working=typeof Map!="undefined"&&iD(new Map);function SSt(e){return typeof Map=="undefined"?!1:iD.working?iD(e):e instanceof Map}Qf.isMap=SSt;function nD(e){return Z0(e)==="[object Set]"}nD.working=typeof Set!="undefined"&&nD(new Set);function MSt(e){return typeof Set=="undefined"?!1:nD.working?nD(e):e instanceof Set}Qf.isSet=MSt;function aD(e){return Z0(e)==="[object WeakMap]"}aD.working=typeof WeakMap!="undefined"&&aD(new WeakMap);function ESt(e){return typeof WeakMap=="undefined"?!1:aD.working?aD(e):e instanceof WeakMap}Qf.isWeakMap=ESt;function iW(e){return Z0(e)==="[object WeakSet]"}iW.working=typeof WeakSet!="undefined"&&iW(new WeakSet);function kSt(e){return iW(e)}Qf.isWeakSet=kSt;function oD(e){return Z0(e)==="[object ArrayBuffer]"}oD.working=typeof ArrayBuffer!="undefined"&&oD(new ArrayBuffer);function ASe(e){return typeof ArrayBuffer=="undefined"?!1:oD.working?oD(e):e instanceof ArrayBuffer}Qf.isArrayBuffer=ASe;function sD(e){return Z0(e)==="[object DataView]"}sD.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&sD(new DataView(new ArrayBuffer(1),0,1));function TSe(e){return typeof DataView=="undefined"?!1:sD.working?sD(e):e instanceof DataView}Qf.isDataView=TSe;var rW=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function jE(e){return Z0(e)==="[object SharedArrayBuffer]"}function SSe(e){return typeof rW=="undefined"?!1:(typeof jE.working=="undefined"&&(jE.working=jE(new rW)),jE.working?jE(e):e instanceof rW)}Qf.isSharedArrayBuffer=SSe;function CSt(e){return Z0(e)==="[object AsyncFunction]"}Qf.isAsyncFunction=CSt;function LSt(e){return Z0(e)==="[object Map Iterator]"}Qf.isMapIterator=LSt;function PSt(e){return Z0(e)==="[object Set Iterator]"}Qf.isSetIterator=PSt;function zSt(e){return Z0(e)==="[object Generator]"}Qf.isGeneratorObject=zSt;function ISt(e){return Z0(e)==="[object WebAssembly.Module]"}Qf.isWebAssemblyCompiledModule=ISt;function MSe(e){return XE(e,uSt)}Qf.isNumberObject=MSe;function ESe(e){return XE(e,fSt)}Qf.isStringObject=ESe;function kSe(e){return XE(e,cSt)}Qf.isBooleanObject=kSe;function CSe(e){return _Se&&XE(e,bSe)}Qf.isBigIntObject=CSe;function LSe(e){return xSe&&XE(e,wSe)}Qf.isSymbolObject=LSe;function RSt(e){return MSe(e)||ESe(e)||kSe(e)||CSe(e)||LSe(e)}Qf.isBoxedPrimitive=RSt;function DSt(e){return typeof Uint8Array!="undefined"&&(ASe(e)||SSe(e))}Qf.isAnyArrayBuffer=DSt;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(Qf,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var aW=Te((edr,PSe)=>{PSe.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var cW=Te(ec=>{var zSe=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(u){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),uW(t)?r.showHidden=t:t&&ec._extend(r,t),d2(r.showHidden)&&(r.showHidden=!1),d2(r.depth)&&(r.depth=2),d2(r.colors)&&(r.colors=!1),d2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=BSt),cD(r,e,r.depth)}ec.inspect=I_;I_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};I_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function BSt(e,t){var r=I_.styles[t];return r?"\x1B["+I_.colors[r][0]+"m"+e+"\x1B["+I_.colors[r][1]+"m":e}function OSt(e,t){return e}function qSt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function cD(e,t,r){if(e.customInspect&&t&&fD(t.inspect)&&t.inspect!==ec.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return pD(n)||(n=cD(e,n,r)),n}var i=NSt(e,t);if(i)return i;var a=Object.keys(t),o=qSt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),YE(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return oW(t);if(a.length===0){if(fD(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(ZE(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(hD(t))return e.stylize(Date.prototype.toString.call(t),"date");if(YE(t))return oW(t)}var u="",l=!1,f=["{","}"];if(RSe(t)&&(l=!0,f=["[","]"]),fD(t)){var c=t.name?": "+t.name:"";u=" [Function"+c+"]"}if(ZE(t)&&(u=" "+RegExp.prototype.toString.call(t)),hD(t)&&(u=" "+Date.prototype.toUTCString.call(t)),YE(t)&&(u=" "+oW(t)),a.length===0&&(!l||t.length==0))return f[0]+u+f[1];if(r<0)return ZE(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return l?h=USt(e,t,r,o,a):h=a.map(function(d){return lW(e,t,r,o,d,l)}),e.seen.pop(),VSt(h,u,f)}function NSt(e,t){if(d2(t))return e.stylize("undefined","undefined");if(pD(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(DSe(t))return e.stylize(""+t,"number");if(uW(t))return e.stylize(""+t,"boolean");if(dD(t))return e.stylize("null","null")}function oW(e){return"["+Error.prototype.toString.call(e)+"]"}function USt(e,t,r,n,i){for(var a=[],o=0,s=t.length;o-1&&(a?s=s.split(` `).map(function(l){return" "+l}).join(` `).slice(2):s=` `+s.split(` `).map(function(l){return" "+l}).join(` -`))):s=e.stylize("[Circular]","special")),d2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function BSt(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` +`))):s=e.stylize("[Circular]","special")),d2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function VSt(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` `)>=0&&n++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(t===""?"":t+` `)+" "+e.join(`, - `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}ec.types=iW();function ISe(e){return Array.isArray(e)}ec.isArray=ISe;function lW(e){return typeof e=="boolean"}ec.isBoolean=lW;function dD(e){return e===null}ec.isNull=dD;function OSt(e){return e==null}ec.isNullOrUndefined=OSt;function RSe(e){return typeof e=="number"}ec.isNumber=RSe;function pD(e){return typeof e=="string"}ec.isString=pD;function qSt(e){return typeof e=="symbol"}ec.isSymbol=qSt;function d2(e){return e===void 0}ec.isUndefined=d2;function WE(e){return sT(e)&&uW(e)==="[object RegExp]"}ec.isRegExp=WE;ec.types.isRegExp=WE;function sT(e){return typeof e=="object"&&e!==null}ec.isObject=sT;function hD(e){return sT(e)&&uW(e)==="[object Date]"}ec.isDate=hD;ec.types.isDate=hD;function jE(e){return sT(e)&&(uW(e)==="[object Error]"||e instanceof Error)}ec.isError=jE;ec.types.isNativeError=jE;function fD(e){return typeof e=="function"}ec.isFunction=fD;function NSt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}ec.isPrimitive=NSt;ec.isBuffer=nW();function uW(e){return Object.prototype.toString.call(e)}function oW(e){return e<10?"0"+e.toString(10):e.toString(10)}var USt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function VSt(){var e=new Date,t=[oW(e.getHours()),oW(e.getMinutes()),oW(e.getSeconds())].join(":");return[e.getDate(),USt[e.getMonth()],t].join(" ")}ec.log=function(){console.log("%s - %s",VSt(),ec.format.apply(ec,arguments))};ec.inherits=Ug();ec._extend=function(e,t){if(!t||!sT(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function DSe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var h2=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;ec.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(h2&&t[h2]){var r=t[h2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,h2,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,a=new Promise(function(u,l){n=u,i=l}),o=[],s=0;s{"use strict";function FSe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function WSt(e){for(var t=1;t0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return vD.alloc(0);for(var n=vD.allocUnsafe(r>>>0),i=this.head,a=0;i;)$St(i.data,n,a),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return ro.length?o.length:r;if(s===o.length?a+=o:a+=o.slice(0,r),r-=s,r===0){s===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++i}return this.length-=i,a}},{key:"_getBuffer",value:function(r){var n=vD.allocUnsafe(r),i=this.head,a=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,s=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,s),r-=s,r===0){s===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++a}return this.length-=a,n}},{key:JSt,value:function(r,n){return cW(this,WSt({},n,{depth:0,customInspect:!1}))}}]),e}()});var dW=Te((Qhr,USe)=>{"use strict";function QSt(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(hW,this,e)):process.nextTick(hW,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?process.nextTick(mD,r):(r._writableState.errorEmitted=!0,process.nextTick(NSe,r,a)):process.nextTick(NSe,r,a):t?(process.nextTick(mD,r),t(a)):process.nextTick(mD,r)}),this)}function NSe(e,t){hW(e,t),mD(e)}function mD(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function eMt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function hW(e,t){e.emit("error",t)}function tMt(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}USe.exports={destroy:QSt,undestroy:eMt,errorOrDestroy:tMt}});var p2=Te((edr,HSe)=>{"use strict";function rMt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var GSe={};function Y0(e,t,r){r||(r=Error);function n(a,o,s){return typeof t=="string"?t:t(a,o,s)}var i=function(a){rMt(o,a);function o(s,u,l){return a.call(this,n(s,u,l))||this}return o}(r);i.prototype.name=r.name,i.prototype.code=e,GSe[e]=i}function VSe(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function iMt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function nMt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function aMt(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Y0("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Y0("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&iMt(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(nMt(e," argument"))i="The ".concat(e," ").concat(n," ").concat(VSe(t,"type"));else{var a=aMt(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(VSe(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);Y0("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Y0("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Y0("ERR_STREAM_PREMATURE_CLOSE","Premature close");Y0("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Y0("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Y0("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Y0("ERR_STREAM_WRITE_AFTER_END","write after end");Y0("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Y0("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Y0("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");HSe.exports.codes=GSe});var pW=Te((tdr,WSe)=>{"use strict";var oMt=p2().codes.ERR_INVALID_OPT_VALUE;function sMt(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function lMt(e,t,r,n){var i=sMt(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new oMt(a,i)}return Math.floor(i)}return e.objectMode?16:16*1024}WSe.exports={getHighWaterMark:lMt}});var XSe=Te((rdr,jSe)=>{jSe.exports=uMt;function uMt(e,t){if(vW("noDeprecation"))return e;var r=!1;function n(){if(!r){if(vW("throwDeprecation"))throw new Error(t);vW("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function vW(e){try{if(!window.localStorage)return!1}catch(r){return!1}var t=window.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var gW=Te((idr,QSe)=>{"use strict";QSe.exports=qh;function YSe(e){var t=this;this.next=null,this.entry=null,this.finish=function(){FMt(t,e)}}var lT;qh.WritableState=ZE;var fMt={deprecate:XSe()},KSe=yH(),gD=u2().Buffer,cMt=window.Uint8Array||function(){};function hMt(e){return gD.from(e)}function dMt(e){return gD.isBuffer(e)||e instanceof cMt}var yW=dW(),pMt=pW(),vMt=pMt.getHighWaterMark,R_=p2().codes,mMt=R_.ERR_INVALID_ARG_TYPE,yMt=R_.ERR_METHOD_NOT_IMPLEMENTED,gMt=R_.ERR_MULTIPLE_CALLBACK,_Mt=R_.ERR_STREAM_CANNOT_PIPE,xMt=R_.ERR_STREAM_DESTROYED,bMt=R_.ERR_STREAM_NULL_VALUES,wMt=R_.ERR_STREAM_WRITE_AFTER_END,AMt=R_.ERR_UNKNOWN_ENCODING,uT=yW.errorOrDestroy;Ug()(qh,KSe);function TMt(){}function ZE(e,t,r){lT=lT||v2(),e=e||{},typeof r!="boolean"&&(r=t instanceof lT),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=vMt(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){PMt(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new YSe(this)}ZE.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(ZE.prototype,"buffer",{get:fMt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var yD;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(yD=Function.prototype[Symbol.hasInstance],Object.defineProperty(qh,Symbol.hasInstance,{value:function(t){return yD.call(this,t)?!0:this!==qh?!1:t&&t._writableState instanceof ZE}})):yD=function(t){return t instanceof this};function qh(e){lT=lT||v2();var t=this instanceof lT;if(!t&&!yD.call(qh,this))return new qh(e);this._writableState=new ZE(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),KSe.call(this)}qh.prototype.pipe=function(){uT(this,new _Mt)};function SMt(e,t){var r=new wMt;uT(e,r),process.nextTick(t,r)}function MMt(e,t,r,n){var i;return r===null?i=new bMt:typeof r!="string"&&!t.objectMode&&(i=new mMt("chunk",["string","Buffer"],r)),i?(uT(e,i),process.nextTick(n,i),!1):!0}qh.prototype.write=function(e,t,r){var n=this._writableState,i=!1,a=!n.objectMode&&dMt(e);return a&&!gD.isBuffer(e)&&(e=hMt(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=TMt),n.ending?SMt(this,r):(a||MMt(this,n,e,r))&&(n.pendingcb++,i=kMt(this,n,a,e,t,r)),i};qh.prototype.cork=function(){this._writableState.corked++};qh.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&JSe(this,e))};qh.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new AMt(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(qh.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function EMt(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=gD.from(t,r)),t}Object.defineProperty(qh.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function kMt(e,t,r,n,i,a){if(!r){var o=EMt(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length{"use strict";var BMt=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};tMe.exports=Oy;var eMe=bW(),xW=gW();Ug()(Oy,eMe);for(_W=BMt(xW.prototype),_D=0;_D<_W.length;_D++)xD=_W[_D],Oy.prototype[xD]||(Oy.prototype[xD]=xW.prototype[xD]);var _W,xD,_D;function Oy(e){if(!(this instanceof Oy))return new Oy(e);eMe.call(this,e),xW.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",OMt)))}Object.defineProperty(Oy.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Oy.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Oy.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function OMt(){this._writableState.ended||process.nextTick(qMt,this)}function qMt(e){e.end()}Object.defineProperty(Oy.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var nMe=Te((wW,iMe)=>{var bD=u2(),qy=bD.Buffer;function rMe(e,t){for(var r in e)t[r]=e[r]}qy.from&&qy.alloc&&qy.allocUnsafe&&qy.allocUnsafeSlow?iMe.exports=bD:(rMe(bD,wW),wW.Buffer=m2);function m2(e,t,r){return qy(e,t,r)}m2.prototype=Object.create(qy.prototype);rMe(qy,m2);m2.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return qy(e,t,r)};m2.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=qy(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};m2.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return qy(e)};m2.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return bD.SlowBuffer(e)}});var SW=Te(oMe=>{"use strict";var TW=nMe().Buffer,aMe=TW.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function NMt(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function UMt(e){var t=NMt(e);if(typeof t!="string"&&(TW.isEncoding===aMe||!aMe(e)))throw new Error("Unknown encoding: "+e);return t||e}oMe.StringDecoder=YE;function YE(e){this.encoding=UMt(e);var t;switch(this.encoding){case"utf16le":this.text=XMt,this.end=ZMt,t=4;break;case"utf8":this.fillLast=HMt,t=4;break;case"base64":this.text=YMt,this.end=KMt,t=3;break;default:this.write=JMt,this.end=$Mt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=TW.allocUnsafe(t)}YE.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function VMt(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function GMt(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function HMt(e){var t=this.lastTotal-this.lastNeed,r=GMt(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function WMt(e,t){var r=VMt(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function jMt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function XMt(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function ZMt(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function YMt(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function KMt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function JMt(e){return e.toString(this.encoding)}function $Mt(e){return e&&e.length?this.write(e):""}});var wD=Te((odr,uMe)=>{"use strict";var sMe=p2().codes.ERR_STREAM_PREMATURE_CLOSE;function QMt(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i{"use strict";var AD;function D_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var r5t=wD(),F_=Symbol("lastResolve"),y2=Symbol("lastReject"),KE=Symbol("error"),TD=Symbol("ended"),g2=Symbol("lastPromise"),MW=Symbol("handlePromise"),_2=Symbol("stream");function B_(e,t){return{value:e,done:t}}function i5t(e){var t=e[F_];if(t!==null){var r=e[_2].read();r!==null&&(e[g2]=null,e[F_]=null,e[y2]=null,t(B_(r,!1)))}}function n5t(e){process.nextTick(i5t,e)}function a5t(e,t){return function(r,n){e.then(function(){if(t[TD]){r(B_(void 0,!0));return}t[MW](r,n)},n)}}var o5t=Object.getPrototypeOf(function(){}),s5t=Object.setPrototypeOf((AD={get stream(){return this[_2]},next:function(){var t=this,r=this[KE];if(r!==null)return Promise.reject(r);if(this[TD])return Promise.resolve(B_(void 0,!0));if(this[_2].destroyed)return new Promise(function(o,s){process.nextTick(function(){t[KE]?s(t[KE]):o(B_(void 0,!0))})});var n=this[g2],i;if(n)i=new Promise(a5t(n,this));else{var a=this[_2].read();if(a!==null)return Promise.resolve(B_(a,!1));i=new Promise(this[MW])}return this[g2]=i,i}},D_(AD,Symbol.asyncIterator,function(){return this}),D_(AD,"return",function(){var t=this;return new Promise(function(r,n){t[_2].destroy(null,function(i){if(i){n(i);return}r(B_(void 0,!0))})})}),AD),o5t),l5t=function(t){var r,n=Object.create(s5t,(r={},D_(r,_2,{value:t,writable:!0}),D_(r,F_,{value:null,writable:!0}),D_(r,y2,{value:null,writable:!0}),D_(r,KE,{value:null,writable:!0}),D_(r,TD,{value:t._readableState.endEmitted,writable:!0}),D_(r,MW,{value:function(a,o){var s=n[_2].read();s?(n[g2]=null,n[F_]=null,n[y2]=null,a(B_(s,!1))):(n[F_]=a,n[y2]=o)},writable:!0}),r));return n[g2]=null,r5t(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[y2];a!==null&&(n[g2]=null,n[F_]=null,n[y2]=null,a(i)),n[KE]=i;return}var o=n[F_];o!==null&&(n[g2]=null,n[F_]=null,n[y2]=null,o(B_(void 0,!0))),n[TD]=!0}),t.on("readable",n5t.bind(null,n)),n};fMe.exports=l5t});var dMe=Te((ldr,hMe)=>{hMe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var bW=Te((fdr,AMe)=>{"use strict";AMe.exports=hc;var fT;hc.ReadableState=yMe;var udr=pb().EventEmitter,mMe=function(t,r){return t.listeners(r).length},$E=yH(),SD=u2().Buffer,u5t=window.Uint8Array||function(){};function f5t(e){return SD.from(e)}function c5t(e){return SD.isBuffer(e)||e instanceof u5t}var EW=fW(),Kf;EW&&EW.debuglog?Kf=EW.debuglog("stream"):Kf=function(){};var h5t=qSe(),RW=dW(),d5t=pW(),p5t=d5t.getHighWaterMark,MD=p2().codes,v5t=MD.ERR_INVALID_ARG_TYPE,m5t=MD.ERR_STREAM_PUSH_AFTER_EOF,y5t=MD.ERR_METHOD_NOT_IMPLEMENTED,g5t=MD.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,cT,kW,CW;Ug()(hc,$E);var JE=RW.errorOrDestroy,LW=["error","close","destroy","pause","resume"];function _5t(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function yMe(e,t,r){fT=fT||v2(),e=e||{},typeof r!="boolean"&&(r=t instanceof fT),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=p5t(this,e,"readableHighWaterMark",r),this.buffer=new h5t,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(cT||(cT=SW().StringDecoder),this.decoder=new cT(e.encoding),this.encoding=e.encoding)}function hc(e){if(fT=fT||v2(),!(this instanceof hc))return new hc(e);var t=this instanceof fT;this._readableState=new yMe(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),$E.call(this)}Object.defineProperty(hc.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});hc.prototype.destroy=RW.destroy;hc.prototype._undestroy=RW.undestroy;hc.prototype._destroy=function(e,t){t(e)};hc.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=SD.from(e,t),t=""),n=!0),gMe(this,e,t,!1,n)};hc.prototype.unshift=function(e){return gMe(this,e,null,!0,!1)};function gMe(e,t,r,n,i){Kf("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,w5t(e,a);else{var o;if(i||(o=x5t(a,t)),o)JE(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==SD.prototype&&(t=f5t(t)),n)a.endEmitted?JE(e,new g5t):PW(e,a,t,!0);else if(a.ended)JE(e,new m5t);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?PW(e,a,t,!1):IW(e,a)):PW(e,a,t,!1)}else n||(a.reading=!1,IW(e,a))}return!a.ended&&(a.length=pMe?e=pMe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function vMe(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=b5t(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}hc.prototype.read=function(e){Kf("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return Kf("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?zW(this):ED(this),null;if(e=vMe(e,t),e===0&&t.ended)return t.length===0&&zW(this),null;var n=t.needReadable;Kf("need readable",n),(t.length===0||t.length-e0?i=bMe(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&zW(this)),i!==null&&this.emit("data",i),i};function w5t(e,t){if(Kf("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?ED(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,_Me(e)))}}function ED(e){var t=e._readableState;Kf("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(Kf("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(_Me,e))}function _Me(e){var t=e._readableState;Kf("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,DW(e)}function IW(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(A5t,e,t))}function A5t(e,t){for(;!t.reading&&!t.ended&&(t.length1&&wMe(n.pipes,e)!==-1)&&!l&&(Kf("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(b){Kf("onerror",b),x(),e.removeListener("error",h),mMe(e,"error")===0&&JE(e,b)}_5t(e,"error",h);function d(){e.removeListener("finish",p),x()}e.once("close",d);function p(){Kf("onfinish"),e.removeListener("close",d),x()}e.once("finish",p);function x(){Kf("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(Kf("pipe resume"),r.resume()),e};function T5t(e){return function(){var r=e._readableState;Kf("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&mMe(e,"data")&&(r.flowing=!0,DW(e))}}hc.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,Kf("on readable",n.length,n.reading),n.length?ED(this):n.reading||process.nextTick(S5t,this)),r};hc.prototype.addListener=hc.prototype.on;hc.prototype.removeListener=function(e,t){var r=$E.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(xMe,this),r};hc.prototype.removeAllListeners=function(e){var t=$E.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(xMe,this),t};function xMe(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function S5t(e){Kf("readable nexttick read 0"),e.read(0)}hc.prototype.resume=function(){var e=this._readableState;return e.flowing||(Kf("resume"),e.flowing=!e.readableListening,M5t(this,e)),e.paused=!1,this};function M5t(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(E5t,e,t))}function E5t(e,t){Kf("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),DW(e),t.flowing&&!t.reading&&e.read(0)}hc.prototype.pause=function(){return Kf("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Kf("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function DW(e){var t=e._readableState;for(Kf("flow",t.flowing);t.flowing&&e.read()!==null;);}hc.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(Kf("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(Kf("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(s){return function(){return e[s].apply(e,arguments)}}(i));for(var a=0;a=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function zW(e){var t=e._readableState;Kf("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(k5t,t,e))}function k5t(e,t){if(Kf("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(hc.from=function(e,t){return CW===void 0&&(CW=dMe()),CW(hc,e,t)});function wMe(e,t){for(var r=0,n=e.length;r{"use strict";SMe.exports=Gg;var kD=p2().codes,C5t=kD.ERR_METHOD_NOT_IMPLEMENTED,L5t=kD.ERR_MULTIPLE_CALLBACK,P5t=kD.ERR_TRANSFORM_ALREADY_TRANSFORMING,z5t=kD.ERR_TRANSFORM_WITH_LENGTH_0,CD=v2();Ug()(Gg,CD);function I5t(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new L5t);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";EMe.exports=QE;var MMe=FW();Ug()(QE,MMe);function QE(e){if(!(this instanceof QE))return new QE(e);MMe.call(this,e)}QE.prototype._transform=function(e,t,r){r(null,e)}});var IMe=Te((ddr,zMe)=>{"use strict";var BW;function D5t(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var PMe=p2().codes,F5t=PMe.ERR_MISSING_ARGS,B5t=PMe.ERR_STREAM_DESTROYED;function CMe(e){if(e)throw e}function O5t(e){return e.setHeader&&typeof e.abort=="function"}function q5t(e,t,r,n){n=D5t(n);var i=!1;e.on("close",function(){i=!0}),BW===void 0&&(BW=wD()),BW(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var a=!1;return function(o){if(!i&&!a){if(a=!0,O5t(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new B5t("pipe"))}}}function LMe(e){e()}function N5t(e,t){return e.pipe(t)}function U5t(e){return!e.length||typeof e[e.length-1]!="function"?CMe:e.pop()}function V5t(){for(var e=arguments.length,t=new Array(e),r=0;r0;return q5t(o,u,l,function(f){i||(i=f),f&&a.forEach(LMe),!u&&(a.forEach(LMe),n(i))})});return t.reduce(N5t)}zMe.exports=V5t});var DMe=Te((pdr,RMe)=>{RMe.exports=K0;var OW=pb().EventEmitter,G5t=Ug();G5t(K0,OW);K0.Readable=bW();K0.Writable=gW();K0.Duplex=v2();K0.Transform=FW();K0.PassThrough=kMe();K0.finished=wD();K0.pipeline=IMe();K0.Stream=K0;function K0(){OW.call(this)}K0.prototype.pipe=function(e,t){var r=this;function n(f){e.writable&&e.write(f)===!1&&r.pause&&r.pause()}r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}e.on("drain",i),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function u(f){if(l(),OW.listenerCount(this,"error")===0)throw f}r.on("error",u),e.on("error",u);function l(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}});var dT=Te(tc=>{var FMe=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(u){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),VW(t)?r.showHidden=t:t&&tc._extend(r,t),b2(r.showHidden)&&(r.showHidden=!1),b2(r.depth)&&(r.depth=2),b2(r.colors)&&(r.colors=!1),b2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=W5t),ID(r,e,r.depth)}tc.inspect=O_;O_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};O_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function W5t(e,t){var r=O_.styles[t];return r?"\x1B["+O_.colors[r][0]+"m"+e+"\x1B["+O_.colors[r][1]+"m":e}function j5t(e,t){return e}function X5t(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function ID(e,t,r){if(e.customInspect&&t&&zD(t.inspect)&&t.inspect!==tc.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return FD(n)||(n=ID(e,n,r)),n}var i=Z5t(e,t);if(i)return i;var a=Object.keys(t),o=X5t(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),t4(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return qW(t);if(a.length===0){if(zD(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(e4(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(RD(t))return e.stylize(Date.prototype.toString.call(t),"date");if(t4(t))return qW(t)}var u="",l=!1,f=["{","}"];if(OMe(t)&&(l=!0,f=["[","]"]),zD(t)){var c=t.name?": "+t.name:"";u=" [Function"+c+"]"}if(e4(t)&&(u=" "+RegExp.prototype.toString.call(t)),RD(t)&&(u=" "+Date.prototype.toUTCString.call(t)),t4(t)&&(u=" "+qW(t)),a.length===0&&(!l||t.length==0))return f[0]+u+f[1];if(r<0)return e4(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return l?h=Y5t(e,t,r,o,a):h=a.map(function(d){return UW(e,t,r,o,d,l)}),e.seen.pop(),K5t(h,u,f)}function Z5t(e,t){if(b2(t))return e.stylize("undefined","undefined");if(FD(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(qMe(t))return e.stylize(""+t,"number");if(VW(t))return e.stylize(""+t,"boolean");if(DD(t))return e.stylize("null","null")}function qW(e){return"["+Error.prototype.toString.call(e)+"]"}function Y5t(e,t,r,n,i){for(var a=[],o=0,s=t.length;o{"use strict";function BSe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function KSt(e){for(var t=1;t0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return vD.alloc(0);for(var n=vD.allocUnsafe(r>>>0),i=this.head,a=0;i;)iMt(i.data,n,a),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return ro.length?o.length:r;if(s===o.length?a+=o:a+=o.slice(0,r),r-=s,r===0){s===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++i}return this.length-=i,a}},{key:"_getBuffer",value:function(r){var n=vD.allocUnsafe(r),i=this.head,a=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,s=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,s),r-=s,r===0){s===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++a}return this.length-=a,n}},{key:rMt,value:function(r,n){return hW(this,KSt({},n,{depth:0,customInspect:!1}))}}]),e}()});var pW=Te((idr,VSe)=>{"use strict";function nMt(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(dW,this,e)):process.nextTick(dW,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?process.nextTick(mD,r):(r._writableState.errorEmitted=!0,process.nextTick(USe,r,a)):process.nextTick(USe,r,a):t?(process.nextTick(mD,r),t(a)):process.nextTick(mD,r)}),this)}function USe(e,t){dW(e,t),mD(e)}function mD(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function aMt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function dW(e,t){e.emit("error",t)}function oMt(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}VSe.exports={destroy:nMt,undestroy:aMt,errorOrDestroy:oMt}});var p2=Te((ndr,WSe)=>{"use strict";function sMt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var HSe={};function Y0(e,t,r){r||(r=Error);function n(a,o,s){return typeof t=="string"?t:t(a,o,s)}var i=function(a){sMt(o,a);function o(s,u,l){return a.call(this,n(s,u,l))||this}return o}(r);i.prototype.name=r.name,i.prototype.code=e,HSe[e]=i}function GSe(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function lMt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function uMt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function fMt(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Y0("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Y0("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&lMt(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(uMt(e," argument"))i="The ".concat(e," ").concat(n," ").concat(GSe(t,"type"));else{var a=fMt(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(GSe(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);Y0("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Y0("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Y0("ERR_STREAM_PREMATURE_CLOSE","Premature close");Y0("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Y0("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Y0("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Y0("ERR_STREAM_WRITE_AFTER_END","write after end");Y0("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Y0("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Y0("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");WSe.exports.codes=HSe});var vW=Te((adr,jSe)=>{"use strict";var cMt=p2().codes.ERR_INVALID_OPT_VALUE;function hMt(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function dMt(e,t,r,n){var i=hMt(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new cMt(a,i)}return Math.floor(i)}return e.objectMode?16:16*1024}jSe.exports={getHighWaterMark:dMt}});var ZSe=Te((odr,XSe)=>{XSe.exports=pMt;function pMt(e,t){if(mW("noDeprecation"))return e;var r=!1;function n(){if(!r){if(mW("throwDeprecation"))throw new Error(t);mW("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function mW(e){try{if(!window.localStorage)return!1}catch(r){return!1}var t=window.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var _W=Te((sdr,eMe)=>{"use strict";eMe.exports=qh;function KSe(e){var t=this;this.next=null,this.entry=null,this.finish=function(){UMt(t,e)}}var lT;qh.WritableState=JE;var vMt={deprecate:ZSe()},JSe=gH(),gD=u2().Buffer,mMt=window.Uint8Array||function(){};function yMt(e){return gD.from(e)}function gMt(e){return gD.isBuffer(e)||e instanceof mMt}var gW=pW(),_Mt=vW(),xMt=_Mt.getHighWaterMark,R_=p2().codes,bMt=R_.ERR_INVALID_ARG_TYPE,wMt=R_.ERR_METHOD_NOT_IMPLEMENTED,AMt=R_.ERR_MULTIPLE_CALLBACK,TMt=R_.ERR_STREAM_CANNOT_PIPE,SMt=R_.ERR_STREAM_DESTROYED,MMt=R_.ERR_STREAM_NULL_VALUES,EMt=R_.ERR_STREAM_WRITE_AFTER_END,kMt=R_.ERR_UNKNOWN_ENCODING,uT=gW.errorOrDestroy;Ug()(qh,JSe);function CMt(){}function JE(e,t,r){lT=lT||v2(),e=e||{},typeof r!="boolean"&&(r=t instanceof lT),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=xMt(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){FMt(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new KSe(this)}JE.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(JE.prototype,"buffer",{get:vMt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var yD;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(yD=Function.prototype[Symbol.hasInstance],Object.defineProperty(qh,Symbol.hasInstance,{value:function(t){return yD.call(this,t)?!0:this!==qh?!1:t&&t._writableState instanceof JE}})):yD=function(t){return t instanceof this};function qh(e){lT=lT||v2();var t=this instanceof lT;if(!t&&!yD.call(qh,this))return new qh(e);this._writableState=new JE(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),JSe.call(this)}qh.prototype.pipe=function(){uT(this,new TMt)};function LMt(e,t){var r=new EMt;uT(e,r),process.nextTick(t,r)}function PMt(e,t,r,n){var i;return r===null?i=new MMt:typeof r!="string"&&!t.objectMode&&(i=new bMt("chunk",["string","Buffer"],r)),i?(uT(e,i),process.nextTick(n,i),!1):!0}qh.prototype.write=function(e,t,r){var n=this._writableState,i=!1,a=!n.objectMode&&gMt(e);return a&&!gD.isBuffer(e)&&(e=yMt(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=CMt),n.ending?LMt(this,r):(a||PMt(this,n,e,r))&&(n.pendingcb++,i=IMt(this,n,a,e,t,r)),i};qh.prototype.cork=function(){this._writableState.corked++};qh.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&$Se(this,e))};qh.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new kMt(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(qh.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function zMt(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=gD.from(t,r)),t}Object.defineProperty(qh.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function IMt(e,t,r,n,i,a){if(!r){var o=zMt(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length{"use strict";var VMt=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};rMe.exports=Oy;var tMe=wW(),bW=_W();Ug()(Oy,tMe);for(xW=VMt(bW.prototype),_D=0;_D{var bD=u2(),qy=bD.Buffer;function iMe(e,t){for(var r in e)t[r]=e[r]}qy.from&&qy.alloc&&qy.allocUnsafe&&qy.allocUnsafeSlow?nMe.exports=bD:(iMe(bD,AW),AW.Buffer=m2);function m2(e,t,r){return qy(e,t,r)}m2.prototype=Object.create(qy.prototype);iMe(qy,m2);m2.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return qy(e,t,r)};m2.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=qy(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};m2.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return qy(e)};m2.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return bD.SlowBuffer(e)}});var MW=Te(sMe=>{"use strict";var SW=aMe().Buffer,oMe=SW.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function WMt(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function jMt(e){var t=WMt(e);if(typeof t!="string"&&(SW.isEncoding===oMe||!oMe(e)))throw new Error("Unknown encoding: "+e);return t||e}sMe.StringDecoder=$E;function $E(e){this.encoding=jMt(e);var t;switch(this.encoding){case"utf16le":this.text=$Mt,this.end=QMt,t=4;break;case"utf8":this.fillLast=YMt,t=4;break;case"base64":this.text=e5t,this.end=t5t,t=3;break;default:this.write=r5t,this.end=i5t;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=SW.allocUnsafe(t)}$E.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function XMt(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function ZMt(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function YMt(e){var t=this.lastTotal-this.lastNeed,r=ZMt(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function KMt(e,t){var r=XMt(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function JMt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function $Mt(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function QMt(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function e5t(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function t5t(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function r5t(e){return e.toString(this.encoding)}function i5t(e){return e&&e.length?this.write(e):""}});var wD=Te((fdr,fMe)=>{"use strict";var lMe=p2().codes.ERR_STREAM_PREMATURE_CLOSE;function n5t(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i{"use strict";var AD;function D_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s5t=wD(),F_=Symbol("lastResolve"),y2=Symbol("lastReject"),QE=Symbol("error"),TD=Symbol("ended"),g2=Symbol("lastPromise"),EW=Symbol("handlePromise"),_2=Symbol("stream");function B_(e,t){return{value:e,done:t}}function l5t(e){var t=e[F_];if(t!==null){var r=e[_2].read();r!==null&&(e[g2]=null,e[F_]=null,e[y2]=null,t(B_(r,!1)))}}function u5t(e){process.nextTick(l5t,e)}function f5t(e,t){return function(r,n){e.then(function(){if(t[TD]){r(B_(void 0,!0));return}t[EW](r,n)},n)}}var c5t=Object.getPrototypeOf(function(){}),h5t=Object.setPrototypeOf((AD={get stream(){return this[_2]},next:function(){var t=this,r=this[QE];if(r!==null)return Promise.reject(r);if(this[TD])return Promise.resolve(B_(void 0,!0));if(this[_2].destroyed)return new Promise(function(o,s){process.nextTick(function(){t[QE]?s(t[QE]):o(B_(void 0,!0))})});var n=this[g2],i;if(n)i=new Promise(f5t(n,this));else{var a=this[_2].read();if(a!==null)return Promise.resolve(B_(a,!1));i=new Promise(this[EW])}return this[g2]=i,i}},D_(AD,Symbol.asyncIterator,function(){return this}),D_(AD,"return",function(){var t=this;return new Promise(function(r,n){t[_2].destroy(null,function(i){if(i){n(i);return}r(B_(void 0,!0))})})}),AD),c5t),d5t=function(t){var r,n=Object.create(h5t,(r={},D_(r,_2,{value:t,writable:!0}),D_(r,F_,{value:null,writable:!0}),D_(r,y2,{value:null,writable:!0}),D_(r,QE,{value:null,writable:!0}),D_(r,TD,{value:t._readableState.endEmitted,writable:!0}),D_(r,EW,{value:function(a,o){var s=n[_2].read();s?(n[g2]=null,n[F_]=null,n[y2]=null,a(B_(s,!1))):(n[F_]=a,n[y2]=o)},writable:!0}),r));return n[g2]=null,s5t(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[y2];a!==null&&(n[g2]=null,n[F_]=null,n[y2]=null,a(i)),n[QE]=i;return}var o=n[F_];o!==null&&(n[g2]=null,n[F_]=null,n[y2]=null,o(B_(void 0,!0))),n[TD]=!0}),t.on("readable",u5t.bind(null,n)),n};cMe.exports=d5t});var pMe=Te((hdr,dMe)=>{dMe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var wW=Te((pdr,TMe)=>{"use strict";TMe.exports=hc;var fT;hc.ReadableState=gMe;var ddr=pb().EventEmitter,yMe=function(t,r){return t.listeners(r).length},t4=gH(),SD=u2().Buffer,p5t=window.Uint8Array||function(){};function v5t(e){return SD.from(e)}function m5t(e){return SD.isBuffer(e)||e instanceof p5t}var kW=cW(),Kf;kW&&kW.debuglog?Kf=kW.debuglog("stream"):Kf=function(){};var y5t=NSe(),DW=pW(),g5t=vW(),_5t=g5t.getHighWaterMark,MD=p2().codes,x5t=MD.ERR_INVALID_ARG_TYPE,b5t=MD.ERR_STREAM_PUSH_AFTER_EOF,w5t=MD.ERR_METHOD_NOT_IMPLEMENTED,A5t=MD.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,cT,CW,LW;Ug()(hc,t4);var e4=DW.errorOrDestroy,PW=["error","close","destroy","pause","resume"];function T5t(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function gMe(e,t,r){fT=fT||v2(),e=e||{},typeof r!="boolean"&&(r=t instanceof fT),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=_5t(this,e,"readableHighWaterMark",r),this.buffer=new y5t,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(cT||(cT=MW().StringDecoder),this.decoder=new cT(e.encoding),this.encoding=e.encoding)}function hc(e){if(fT=fT||v2(),!(this instanceof hc))return new hc(e);var t=this instanceof fT;this._readableState=new gMe(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),t4.call(this)}Object.defineProperty(hc.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});hc.prototype.destroy=DW.destroy;hc.prototype._undestroy=DW.undestroy;hc.prototype._destroy=function(e,t){t(e)};hc.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=SD.from(e,t),t=""),n=!0),_Me(this,e,t,!1,n)};hc.prototype.unshift=function(e){return _Me(this,e,null,!0,!1)};function _Me(e,t,r,n,i){Kf("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,E5t(e,a);else{var o;if(i||(o=S5t(a,t)),o)e4(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==SD.prototype&&(t=v5t(t)),n)a.endEmitted?e4(e,new A5t):zW(e,a,t,!0);else if(a.ended)e4(e,new b5t);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?zW(e,a,t,!1):RW(e,a)):zW(e,a,t,!1)}else n||(a.reading=!1,RW(e,a))}return!a.ended&&(a.length=vMe?e=vMe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function mMe(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=M5t(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}hc.prototype.read=function(e){Kf("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return Kf("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?IW(this):ED(this),null;if(e=mMe(e,t),e===0&&t.ended)return t.length===0&&IW(this),null;var n=t.needReadable;Kf("need readable",n),(t.length===0||t.length-e0?i=wMe(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&IW(this)),i!==null&&this.emit("data",i),i};function E5t(e,t){if(Kf("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?ED(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,xMe(e)))}}function ED(e){var t=e._readableState;Kf("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(Kf("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(xMe,e))}function xMe(e){var t=e._readableState;Kf("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,FW(e)}function RW(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(k5t,e,t))}function k5t(e,t){for(;!t.reading&&!t.ended&&(t.length1&&AMe(n.pipes,e)!==-1)&&!l&&(Kf("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(b){Kf("onerror",b),x(),e.removeListener("error",h),yMe(e,"error")===0&&e4(e,b)}T5t(e,"error",h);function d(){e.removeListener("finish",p),x()}e.once("close",d);function p(){Kf("onfinish"),e.removeListener("close",d),x()}e.once("finish",p);function x(){Kf("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(Kf("pipe resume"),r.resume()),e};function C5t(e){return function(){var r=e._readableState;Kf("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&yMe(e,"data")&&(r.flowing=!0,FW(e))}}hc.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,Kf("on readable",n.length,n.reading),n.length?ED(this):n.reading||process.nextTick(L5t,this)),r};hc.prototype.addListener=hc.prototype.on;hc.prototype.removeListener=function(e,t){var r=t4.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(bMe,this),r};hc.prototype.removeAllListeners=function(e){var t=t4.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(bMe,this),t};function bMe(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function L5t(e){Kf("readable nexttick read 0"),e.read(0)}hc.prototype.resume=function(){var e=this._readableState;return e.flowing||(Kf("resume"),e.flowing=!e.readableListening,P5t(this,e)),e.paused=!1,this};function P5t(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(z5t,e,t))}function z5t(e,t){Kf("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),FW(e),t.flowing&&!t.reading&&e.read(0)}hc.prototype.pause=function(){return Kf("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Kf("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function FW(e){var t=e._readableState;for(Kf("flow",t.flowing);t.flowing&&e.read()!==null;);}hc.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(Kf("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(Kf("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(s){return function(){return e[s].apply(e,arguments)}}(i));for(var a=0;a=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function IW(e){var t=e._readableState;Kf("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(I5t,t,e))}function I5t(e,t){if(Kf("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(hc.from=function(e,t){return LW===void 0&&(LW=pMe()),LW(hc,e,t)});function AMe(e,t){for(var r=0,n=e.length;r{"use strict";MMe.exports=Gg;var kD=p2().codes,R5t=kD.ERR_METHOD_NOT_IMPLEMENTED,D5t=kD.ERR_MULTIPLE_CALLBACK,F5t=kD.ERR_TRANSFORM_ALREADY_TRANSFORMING,B5t=kD.ERR_TRANSFORM_WITH_LENGTH_0,CD=v2();Ug()(Gg,CD);function O5t(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new D5t);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";kMe.exports=r4;var EMe=BW();Ug()(r4,EMe);function r4(e){if(!(this instanceof r4))return new r4(e);EMe.call(this,e)}r4.prototype._transform=function(e,t,r){r(null,e)}});var RMe=Te((ydr,IMe)=>{"use strict";var OW;function N5t(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var zMe=p2().codes,U5t=zMe.ERR_MISSING_ARGS,V5t=zMe.ERR_STREAM_DESTROYED;function LMe(e){if(e)throw e}function G5t(e){return e.setHeader&&typeof e.abort=="function"}function H5t(e,t,r,n){n=N5t(n);var i=!1;e.on("close",function(){i=!0}),OW===void 0&&(OW=wD()),OW(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var a=!1;return function(o){if(!i&&!a){if(a=!0,G5t(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new V5t("pipe"))}}}function PMe(e){e()}function W5t(e,t){return e.pipe(t)}function j5t(e){return!e.length||typeof e[e.length-1]!="function"?LMe:e.pop()}function X5t(){for(var e=arguments.length,t=new Array(e),r=0;r0;return H5t(o,u,l,function(f){i||(i=f),f&&a.forEach(PMe),!u&&(a.forEach(PMe),n(i))})});return t.reduce(W5t)}IMe.exports=X5t});var FMe=Te((gdr,DMe)=>{DMe.exports=K0;var qW=pb().EventEmitter,Z5t=Ug();Z5t(K0,qW);K0.Readable=wW();K0.Writable=_W();K0.Duplex=v2();K0.Transform=BW();K0.PassThrough=CMe();K0.finished=wD();K0.pipeline=RMe();K0.Stream=K0;function K0(){qW.call(this)}K0.prototype.pipe=function(e,t){var r=this;function n(f){e.writable&&e.write(f)===!1&&r.pause&&r.pause()}r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}e.on("drain",i),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function u(f){if(l(),qW.listenerCount(this,"error")===0)throw f}r.on("error",u),e.on("error",u);function l(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}});var dT=Te(tc=>{var BMe=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(u){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),GW(t)?r.showHidden=t:t&&tc._extend(r,t),b2(r.showHidden)&&(r.showHidden=!1),b2(r.depth)&&(r.depth=2),b2(r.colors)&&(r.colors=!1),b2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=K5t),ID(r,e,r.depth)}tc.inspect=O_;O_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};O_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function K5t(e,t){var r=O_.styles[t];return r?"\x1B["+O_.colors[r][0]+"m"+e+"\x1B["+O_.colors[r][1]+"m":e}function J5t(e,t){return e}function $5t(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function ID(e,t,r){if(e.customInspect&&t&&zD(t.inspect)&&t.inspect!==tc.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return FD(n)||(n=ID(e,n,r)),n}var i=Q5t(e,t);if(i)return i;var a=Object.keys(t),o=$5t(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),n4(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return NW(t);if(a.length===0){if(zD(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(i4(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(RD(t))return e.stylize(Date.prototype.toString.call(t),"date");if(n4(t))return NW(t)}var u="",l=!1,f=["{","}"];if(qMe(t)&&(l=!0,f=["[","]"]),zD(t)){var c=t.name?": "+t.name:"";u=" [Function"+c+"]"}if(i4(t)&&(u=" "+RegExp.prototype.toString.call(t)),RD(t)&&(u=" "+Date.prototype.toUTCString.call(t)),n4(t)&&(u=" "+NW(t)),a.length===0&&(!l||t.length==0))return f[0]+u+f[1];if(r<0)return i4(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return l?h=eEt(e,t,r,o,a):h=a.map(function(d){return VW(e,t,r,o,d,l)}),e.seen.pop(),tEt(h,u,f)}function Q5t(e,t){if(b2(t))return e.stylize("undefined","undefined");if(FD(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(NMe(t))return e.stylize(""+t,"number");if(GW(t))return e.stylize(""+t,"boolean");if(DD(t))return e.stylize("null","null")}function NW(e){return"["+Error.prototype.toString.call(e)+"]"}function eEt(e,t,r,n,i){for(var a=[],o=0,s=t.length;o-1&&(a?s=s.split(` `).map(function(l){return" "+l}).join(` `).slice(2):s=` `+s.split(` `).map(function(l){return" "+l}).join(` -`))):s=e.stylize("[Circular]","special")),b2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function K5t(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` +`))):s=e.stylize("[Circular]","special")),b2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function tEt(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` `)>=0&&n++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(t===""?"":t+` `)+" "+e.join(`, - `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}tc.types=iW();function OMe(e){return Array.isArray(e)}tc.isArray=OMe;function VW(e){return typeof e=="boolean"}tc.isBoolean=VW;function DD(e){return e===null}tc.isNull=DD;function J5t(e){return e==null}tc.isNullOrUndefined=J5t;function qMe(e){return typeof e=="number"}tc.isNumber=qMe;function FD(e){return typeof e=="string"}tc.isString=FD;function $5t(e){return typeof e=="symbol"}tc.isSymbol=$5t;function b2(e){return e===void 0}tc.isUndefined=b2;function e4(e){return hT(e)&&GW(e)==="[object RegExp]"}tc.isRegExp=e4;tc.types.isRegExp=e4;function hT(e){return typeof e=="object"&&e!==null}tc.isObject=hT;function RD(e){return hT(e)&&GW(e)==="[object Date]"}tc.isDate=RD;tc.types.isDate=RD;function t4(e){return hT(e)&&(GW(e)==="[object Error]"||e instanceof Error)}tc.isError=t4;tc.types.isNativeError=t4;function zD(e){return typeof e=="function"}tc.isFunction=zD;function Q5t(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}tc.isPrimitive=Q5t;tc.isBuffer=nW();function GW(e){return Object.prototype.toString.call(e)}function NW(e){return e<10?"0"+e.toString(10):e.toString(10)}var eEt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function tEt(){var e=new Date,t=[NW(e.getHours()),NW(e.getMinutes()),NW(e.getSeconds())].join(":");return[e.getDate(),eEt[e.getMonth()],t].join(" ")}tc.log=function(){console.log("%s - %s",tEt(),tc.format.apply(tc,arguments))};tc.inherits=Ug();tc._extend=function(e,t){if(!t||!hT(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function NMe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var x2=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;tc.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(x2&&t[x2]){var r=t[x2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,x2,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,a=new Promise(function(u,l){n=u,i=l}),o=[],s=0;s{"use strict";function q_(e){"@babel/helpers - typeof";return q_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q_(e)}function UMe(e,t){for(var r=0;r2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function dEt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function pEt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function vEt(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}r4("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);r4("ERR_INVALID_ARG_TYPE",function(e,t,r){pT===void 0&&(pT=i4()),pT(typeof e=="string","'name' must be a string");var n;typeof t=="string"&&dEt(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(pEt(e," argument"))i="The ".concat(e," ").concat(n," ").concat(VMe(t,"type"));else{var a=vEt(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(VMe(t,"type"))}return i+=". Received type ".concat(q_(r)),i},TypeError);r4("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";HW===void 0&&(HW=dT());var n=HW.inspect(t);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(n)},TypeError,RangeError);r4("ERR_INVALID_RETURN_VALUE",function(e,t,r){var n;return r&&r.constructor&&r.constructor.name?n="instance of ".concat(r.constructor.name):n="type ".concat(q_(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(n,".")},TypeError);r4("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var n="The ",i=t.length;switch(t=t.map(function(a){return'"'.concat(a,'"')}),i){case 1:n+="".concat(t[0]," argument");break;case 2:n+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:n+=t.slice(0,i-1).join(", "),n+=", and ".concat(t[i-1]," arguments");break}return"".concat(n," must be specified")},TypeError);HMe.exports.codes=GMe});var e5e=Te((ydr,QMe)=>{"use strict";function WMe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jMe(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function MEt(e,t){if(t=Math.floor(t),e.length==0||t==0)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length),e}var Hm="",n4="",a4="",wp="",w2={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},EEt=10;function YMe(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(n){r[n]=e[n]}),Object.defineProperty(r,"message",{value:e.message}),r}function o4(e){return YW(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function kEt(e,t,r){var n="",i="",a=0,o="",s=!1,u=o4(e),l=u.split(` -`),f=o4(t).split(` -`),c=0,h="";if(r==="strictEqual"&&Iv(e)==="object"&&Iv(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),l.length===1&&f.length===1&&l[0]!==f[0]){var d=l[0].length+f[0].length;if(d<=EEt){if((Iv(e)!=="object"||e===null)&&(Iv(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(w2[r],` + `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}tc.types=nW();function qMe(e){return Array.isArray(e)}tc.isArray=qMe;function GW(e){return typeof e=="boolean"}tc.isBoolean=GW;function DD(e){return e===null}tc.isNull=DD;function rEt(e){return e==null}tc.isNullOrUndefined=rEt;function NMe(e){return typeof e=="number"}tc.isNumber=NMe;function FD(e){return typeof e=="string"}tc.isString=FD;function iEt(e){return typeof e=="symbol"}tc.isSymbol=iEt;function b2(e){return e===void 0}tc.isUndefined=b2;function i4(e){return hT(e)&&HW(e)==="[object RegExp]"}tc.isRegExp=i4;tc.types.isRegExp=i4;function hT(e){return typeof e=="object"&&e!==null}tc.isObject=hT;function RD(e){return hT(e)&&HW(e)==="[object Date]"}tc.isDate=RD;tc.types.isDate=RD;function n4(e){return hT(e)&&(HW(e)==="[object Error]"||e instanceof Error)}tc.isError=n4;tc.types.isNativeError=n4;function zD(e){return typeof e=="function"}tc.isFunction=zD;function nEt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}tc.isPrimitive=nEt;tc.isBuffer=aW();function HW(e){return Object.prototype.toString.call(e)}function UW(e){return e<10?"0"+e.toString(10):e.toString(10)}var aEt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function oEt(){var e=new Date,t=[UW(e.getHours()),UW(e.getMinutes()),UW(e.getSeconds())].join(":");return[e.getDate(),aEt[e.getMonth()],t].join(" ")}tc.log=function(){console.log("%s - %s",oEt(),tc.format.apply(tc,arguments))};tc.inherits=Ug();tc._extend=function(e,t){if(!t||!hT(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function UMe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var x2=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;tc.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(x2&&t[x2]){var r=t[x2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,x2,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,a=new Promise(function(u,l){n=u,i=l}),o=[],s=0;s{"use strict";function q_(e){"@babel/helpers - typeof";return q_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q_(e)}function VMe(e,t){for(var r=0;r2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function gEt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function _Et(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function xEt(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}a4("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);a4("ERR_INVALID_ARG_TYPE",function(e,t,r){pT===void 0&&(pT=o4()),pT(typeof e=="string","'name' must be a string");var n;typeof t=="string"&&gEt(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(_Et(e," argument"))i="The ".concat(e," ").concat(n," ").concat(GMe(t,"type"));else{var a=xEt(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(GMe(t,"type"))}return i+=". Received type ".concat(q_(r)),i},TypeError);a4("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";WW===void 0&&(WW=dT());var n=WW.inspect(t);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(n)},TypeError,RangeError);a4("ERR_INVALID_RETURN_VALUE",function(e,t,r){var n;return r&&r.constructor&&r.constructor.name?n="instance of ".concat(r.constructor.name):n="type ".concat(q_(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(n,".")},TypeError);a4("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var n="The ",i=t.length;switch(t=t.map(function(a){return'"'.concat(a,'"')}),i){case 1:n+="".concat(t[0]," argument");break;case 2:n+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:n+=t.slice(0,i-1).join(", "),n+=", and ".concat(t[i-1]," arguments");break}return"".concat(n," must be specified")},TypeError);WMe.exports.codes=HMe});var t5e=Te((bdr,e5e)=>{"use strict";function jMe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function XMe(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function PEt(e,t){if(t=Math.floor(t),e.length==0||t==0)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length),e}var Hm="",s4="",l4="",wp="",w2={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},zEt=10;function KMe(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(n){r[n]=e[n]}),Object.defineProperty(r,"message",{value:e.message}),r}function u4(e){return KW(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function IEt(e,t,r){var n="",i="",a=0,o="",s=!1,u=u4(e),l=u.split(` +`),f=u4(t).split(` +`),c=0,h="";if(r==="strictEqual"&&Iv(e)==="object"&&Iv(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),l.length===1&&f.length===1&&l[0]!==f[0]){var d=l[0].length+f[0].length;if(d<=zEt){if((Iv(e)!=="object"||e===null)&&(Iv(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(w2[r],` `)+"".concat(l[0]," !== ").concat(f[0],` `)}else if(r!=="strictEqualObject"){var p=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(d2&&(h=` - `.concat(MEt(" ",c),"^"),c=0)}}}for(var x=l[l.length-1],b=f[f.length-1];x===b&&(c++<2?o=` + `.concat(PEt(" ",c),"^"),c=0)}}}for(var x=l[l.length-1],b=f[f.length-1];x===b&&(c++<2?o=` `.concat(x).concat(o):n=x,l.pop(),f.pop(),!(l.length===0||f.length===0));)x=l[l.length-1],b=f[f.length-1];var v=Math.max(l.length,f.length);if(v===0){var k=u.split(` `);if(k.length>30)for(k[26]="".concat(Hm,"...").concat(wp);k.length>27;)k.pop();return"".concat(w2.notIdentical,` @@ -52,53 +52,53 @@ `)}c>3&&(o=` `.concat(Hm,"...").concat(wp).concat(o),s=!0),n!==""&&(o=` `.concat(n).concat(o),n="");var E=0,T=w2[r]+` -`.concat(n4,"+ actual").concat(wp," ").concat(a4,"- expected").concat(wp),L=" ".concat(Hm,"...").concat(wp," Lines skipped");for(c=0;c1&&c>2&&(_>4?(i+=` +`.concat(s4,"+ actual").concat(wp," ").concat(l4,"- expected").concat(wp),L=" ".concat(Hm,"...").concat(wp," Lines skipped");for(c=0;c1&&c>2&&(_>4?(i+=` `.concat(Hm,"...").concat(wp),s=!0):_>3&&(i+=` `.concat(f[c-2]),E++),i+=` `.concat(f[c-1]),E++),a=c,n+=` -`.concat(a4,"-").concat(wp," ").concat(f[c]),E++;else if(f.length1&&c>2&&(_>4?(i+=` +`.concat(l4,"-").concat(wp," ").concat(f[c]),E++;else if(f.length1&&c>2&&(_>4?(i+=` `.concat(Hm,"...").concat(wp),s=!0):_>3&&(i+=` `.concat(l[c-2]),E++),i+=` `.concat(l[c-1]),E++),a=c,i+=` -`.concat(n4,"+").concat(wp," ").concat(l[c]),E++;else{var C=f[c],S=l[c],m=S!==C&&(!ZMe(S,",")||S.slice(0,-1)!==C);m&&ZMe(C,",")&&C.slice(0,-1)===S&&(m=!1,S+=","),m?(_>1&&c>2&&(_>4?(i+=` +`.concat(s4,"+").concat(wp," ").concat(l[c]),E++;else{var C=f[c],S=l[c],m=S!==C&&(!YMe(S,",")||S.slice(0,-1)!==C);m&&YMe(C,",")&&C.slice(0,-1)===S&&(m=!1,S+=","),m?(_>1&&c>2&&(_>4?(i+=` `.concat(Hm,"...").concat(wp),s=!0):_>3&&(i+=` `.concat(l[c-2]),E++),i+=` `.concat(l[c-1]),E++),a=c,i+=` -`.concat(n4,"+").concat(wp," ").concat(S),n+=` -`.concat(a4,"-").concat(wp," ").concat(C),E+=2):(i+=n,n="",(_===1||c===0)&&(i+=` +`.concat(s4,"+").concat(wp," ").concat(S),n+=` +`.concat(l4,"-").concat(wp," ").concat(C),E+=2):(i+=n,n="",(_===1||c===0)&&(i+=` `.concat(S),E++))}if(E>20&&c30)for(d[26]="".concat(Hm,"...").concat(wp);d.length>27;)d.pop();d.length===1?a=r.call(this,"".concat(h," ").concat(d[0])):a=r.call(this,"".concat(h,` `).concat(d.join(` `),` -`))}else{var p=o4(l),x="",b=w2[s];s==="notDeepEqual"||s==="notEqual"?(p="".concat(w2[s],` +`))}else{var p=u4(l),x="",b=w2[s];s==="notDeepEqual"||s==="notEqual"?(p="".concat(w2[s],` -`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(x="".concat(o4(f)),p.length>512&&(p="".concat(p.slice(0,509),"...")),x.length>512&&(x="".concat(x.slice(0,509),"...")),s==="deepEqual"||s==="equal"?p="".concat(b,` +`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(x="".concat(u4(f)),p.length>512&&(p="".concat(p.slice(0,509),"...")),x.length>512&&(x="".concat(x.slice(0,509),"...")),s==="deepEqual"||s==="equal"?p="".concat(b,` `).concat(p,` should equal -`):x=" ".concat(s," ").concat(x)),a=r.call(this,"".concat(p).concat(x))}return Error.stackTraceLimit=c,a.generatedMessage=!o,Object.defineProperty(XW(a),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),a.code="ERR_ASSERTION",a.actual=l,a.expected=f,a.operator=s,Error.captureStackTrace&&Error.captureStackTrace(XW(a),u),a.stack,a.name="AssertionError",JMe(a)}return gEt(n,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(a,o){return YW(this,jMe(jMe({},o),{},{customInspect:!1,depth:0}))}}]),n}(ZW(Error),YW.custom);QMe.exports=CEt});var KW=Te((gdr,r5e)=>{"use strict";var t5e=Object.prototype.toString;r5e.exports=function(t){var r=t5e.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&t5e.call(t.callee)==="[object Function]"),n}});var c5e=Te((_dr,f5e)=>{"use strict";var u5e;Object.keys||(u4=Object.prototype.hasOwnProperty,JW=Object.prototype.toString,i5e=KW(),$W=Object.prototype.propertyIsEnumerable,n5e=!$W.call({toString:null},"toString"),a5e=$W.call(function(){},"prototype"),f4=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],qD=function(e){var t=e.constructor;return t&&t.prototype===e},o5e={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},s5e=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!o5e["$"+e]&&u4.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{qD(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),l5e=function(e){if(typeof window=="undefined"||!s5e)return qD(e);try{return qD(e)}catch(t){return!1}},u5e=function(t){var r=t!==null&&typeof t=="object",n=JW.call(t)==="[object Function]",i=i5e(t),a=r&&JW.call(t)==="[object String]",o=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var s=a5e&&n;if(a&&t.length>0&&!u4.call(t,0))for(var u=0;u0)for(var l=0;l{"use strict";var LEt=Array.prototype.slice,PEt=KW(),h5e=Object.keys,ND=h5e?function(t){return h5e(t)}:c5e(),d5e=Object.keys;ND.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return PEt(n)?d5e(LEt.call(n)):d5e(n)})}else Object.keys=ND;return Object.keys||ND};p5e.exports=ND});var x5e=Te((bdr,_5e)=>{"use strict";var zEt=QW(),y5e=UR()(),g5e=nT(),v5e=Object,IEt=g5e("Array.prototype.push"),m5e=g5e("Object.prototype.propertyIsEnumerable"),REt=y5e?Object.getOwnPropertySymbols:null;_5e.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=v5e(t);if(arguments.length===1)return n;for(var i=1;i{"use strict";var ej=x5e(),DEt=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n{"use strict";var A5e=function(e){return e!==e};T5e.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||A5e(t)&&A5e(r))}});var UD=Te((Tdr,S5e)=>{"use strict";var BEt=tj();S5e.exports=function(){return typeof Object.is=="function"?Object.is:BEt}});var c4=Te((Sdr,C5e)=>{"use strict";var OEt=QW(),qEt=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",NEt=Object.prototype.toString,UEt=Array.prototype.concat,M5e=Object.defineProperty,VEt=function(e){return typeof e=="function"&&NEt.call(e)==="[object Function]"},GEt=BH()(),E5e=M5e&&GEt,HEt=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!VEt(n)||!n())return}E5e?M5e(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},k5e=function(e,t){var r=arguments.length>2?arguments[2]:{},n=OEt(t);qEt&&(n=UEt.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";var WEt=UD(),jEt=c4();L5e.exports=function(){var t=WEt();return jEt(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var D5e=Te((Edr,R5e)=>{"use strict";var XEt=c4(),ZEt=VE(),YEt=tj(),z5e=UD(),KEt=P5e(),I5e=ZEt(z5e(),Object);XEt(I5e,{getPolyfill:z5e,implementation:YEt,shim:KEt});R5e.exports=I5e});var rj=Te((kdr,F5e)=>{"use strict";F5e.exports=function(t){return t!==t}});var ij=Te((Cdr,B5e)=>{"use strict";var JEt=rj();B5e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:JEt}});var q5e=Te((Ldr,O5e)=>{"use strict";var $Et=c4(),QEt=ij();O5e.exports=function(){var t=QEt();return $Et(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var G5e=Te((Pdr,V5e)=>{"use strict";var e4t=VE(),t4t=c4(),r4t=rj(),N5e=ij(),i4t=q5e(),U5e=e4t(N5e(),Number);t4t(U5e,{getPolyfill:N5e,implementation:r4t,shim:i4t});V5e.exports=U5e});var uEe=Te((zdr,lEe)=>{"use strict";function H5e(e,t){return s4t(e)||o4t(e,t)||a4t(e,t)||n4t()}function n4t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a4t(e,t){if(e){if(typeof e=="string")return W5e(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return W5e(e,t)}}function W5e(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r10)return!0;for(var t=0;t57)return!0}return e.length===10&&e>=Math.pow(2,32)}function HD(e){return Object.keys(e).filter(m4t).concat(jD(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function nEe(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i{"use strict";function Wm(e){"@babel/helpers - typeof";return Wm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wm(e)}function fEe(e,t){for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i{"use strict";var r5e=Object.prototype.toString;i5e.exports=function(t){var r=r5e.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&r5e.call(t.callee)==="[object Function]"),n}});var h5e=Te((Adr,c5e)=>{"use strict";var f5e;Object.keys||(h4=Object.prototype.hasOwnProperty,$W=Object.prototype.toString,n5e=JW(),QW=Object.prototype.propertyIsEnumerable,a5e=!QW.call({toString:null},"toString"),o5e=QW.call(function(){},"prototype"),d4=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],qD=function(e){var t=e.constructor;return t&&t.prototype===e},s5e={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},l5e=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!s5e["$"+e]&&h4.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{qD(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),u5e=function(e){if(typeof window=="undefined"||!l5e)return qD(e);try{return qD(e)}catch(t){return!1}},f5e=function(t){var r=t!==null&&typeof t=="object",n=$W.call(t)==="[object Function]",i=n5e(t),a=r&&$W.call(t)==="[object String]",o=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var s=o5e&&n;if(a&&t.length>0&&!h4.call(t,0))for(var u=0;u0)for(var l=0;l{"use strict";var DEt=Array.prototype.slice,FEt=JW(),d5e=Object.keys,ND=d5e?function(t){return d5e(t)}:h5e(),p5e=Object.keys;ND.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return FEt(n)?p5e(DEt.call(n)):p5e(n)})}else Object.keys=ND;return Object.keys||ND};v5e.exports=ND});var b5e=Te((Sdr,x5e)=>{"use strict";var BEt=ej(),g5e=UR()(),_5e=nT(),m5e=Object,OEt=_5e("Array.prototype.push"),y5e=_5e("Object.prototype.propertyIsEnumerable"),qEt=g5e?Object.getOwnPropertySymbols:null;x5e.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=m5e(t);if(arguments.length===1)return n;for(var i=1;i{"use strict";var tj=b5e(),NEt=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n{"use strict";var T5e=function(e){return e!==e};S5e.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||T5e(t)&&T5e(r))}});var UD=Te((kdr,M5e)=>{"use strict";var VEt=rj();M5e.exports=function(){return typeof Object.is=="function"?Object.is:VEt}});var p4=Te((Cdr,L5e)=>{"use strict";var GEt=ej(),HEt=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",WEt=Object.prototype.toString,jEt=Array.prototype.concat,E5e=Object.defineProperty,XEt=function(e){return typeof e=="function"&&WEt.call(e)==="[object Function]"},ZEt=OH()(),k5e=E5e&&ZEt,YEt=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!XEt(n)||!n())return}k5e?E5e(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},C5e=function(e,t){var r=arguments.length>2?arguments[2]:{},n=GEt(t);HEt&&(n=jEt.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";var KEt=UD(),JEt=p4();P5e.exports=function(){var t=KEt();return JEt(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var F5e=Te((Pdr,D5e)=>{"use strict";var $Et=p4(),QEt=WE(),e4t=rj(),I5e=UD(),t4t=z5e(),R5e=QEt(I5e(),Object);$Et(R5e,{getPolyfill:I5e,implementation:e4t,shim:t4t});D5e.exports=R5e});var ij=Te((zdr,B5e)=>{"use strict";B5e.exports=function(t){return t!==t}});var nj=Te((Idr,O5e)=>{"use strict";var r4t=ij();O5e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r4t}});var N5e=Te((Rdr,q5e)=>{"use strict";var i4t=p4(),n4t=nj();q5e.exports=function(){var t=n4t();return i4t(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var H5e=Te((Ddr,G5e)=>{"use strict";var a4t=WE(),o4t=p4(),s4t=ij(),U5e=nj(),l4t=N5e(),V5e=a4t(U5e(),Number);o4t(V5e,{getPolyfill:U5e,implementation:s4t,shim:l4t});G5e.exports=V5e});var fEe=Te((Fdr,uEe)=>{"use strict";function W5e(e,t){return h4t(e)||c4t(e,t)||f4t(e,t)||u4t()}function u4t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f4t(e,t){if(e){if(typeof e=="string")return j5e(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j5e(e,t)}}function j5e(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r10)return!0;for(var t=0;t57)return!0}return e.length===10&&e>=Math.pow(2,32)}function HD(e){return Object.keys(e).filter(b4t).concat(jD(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function aEe(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i{"use strict";function Wm(e){"@babel/helpers - typeof";return Wm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wm(e)}function cEe(e,t){for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i{var m4=1e3,y4=m4*60,g4=y4*60,_4=g4*24,V4t=_4*365.25;kEe.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return G4t(e);if(r==="number"&&isNaN(e)===!1)return t.long?W4t(e):H4t(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function G4t(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*V4t;case"days":case"day":case"d":return r*_4;case"hours":case"hour":case"hrs":case"hr":case"h":return r*g4;case"minutes":case"minute":case"mins":case"min":case"m":return r*y4;case"seconds":case"second":case"secs":case"sec":case"s":return r*m4;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function H4t(e){return e>=_4?Math.round(e/_4)+"d":e>=g4?Math.round(e/g4)+"h":e>=y4?Math.round(e/y4)+"m":e>=m4?Math.round(e/m4)+"s":e+"ms"}function W4t(e){return e6(e,_4,"day")||e6(e,g4,"hour")||e6(e,y4,"minute")||e6(e,m4,"second")||e+" ms"}function e6(e,t,r){if(!(e{Ic=LEe.exports=fj.debug=fj.default=fj;Ic.coerce=K4t;Ic.disable=Z4t;Ic.enable=X4t;Ic.enabled=Y4t;Ic.humanize=CEe();Ic.names=[];Ic.skips=[];Ic.formatters={};var uj;function j4t(e){var t=0,r;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return Ic.colors[Math.abs(t)%Ic.colors.length]}function fj(e){function t(){if(t.enabled){var r=t,n=+new Date,i=n-(uj||n);r.diff=i,r.prev=uj,r.curr=n,uj=n;for(var a=new Array(arguments.length),o=0;o{sv=IEe.exports=PEe();sv.log=Q4t;sv.formatArgs=$4t;sv.save=ekt;sv.load=zEe;sv.useColors=J4t;sv.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:tkt();sv.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function J4t(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}sv.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function $4t(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+sv.humanize(this.diff),!!t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(a){a!=="%%"&&(n++,a==="%c"&&(i=n))}),e.splice(i,0,r)}}function Q4t(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function ekt(e){try{e==null?sv.storage.removeItem("debug"):sv.storage.debug=e}catch(t){}}function zEe(){var e;try{e=sv.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}sv.enable(zEe());function tkt(){try{return window.localStorage}catch(e){}}});var VEe=Te((Ddr,UEe)=>{var mT=i4(),G_=REe()("stream-parser");UEe.exports=ikt;var FEe=-1,t6=0,rkt=1,BEe=2;function ikt(e){var t=e&&typeof e._transform=="function",r=e&&typeof e._write=="function";if(!t&&!r)throw new Error("must pass a Writable or Transform stream in");G_("extending Parser into stream"),e._bytes=nkt,e._skipBytes=akt,t&&(e._passthrough=okt),t?e._transform=lkt:e._write=skt}function x4(e){G_("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=FEe,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function nkt(e,t){mT(!this._parserCallback,'there is already a "callback" set!'),mT(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||x4(this),G_("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=t6}function akt(e,t){mT(!this._parserCallback,'there is already a "callback" set!'),mT(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||x4(this),G_("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=rkt}function okt(e,t){mT(!this._parserCallback,'There is already a "callback" set!'),mT(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||x4(this),G_("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=BEe}function skt(e,t,r){this._parserInit||x4(this),G_("write(%o bytes)",e.length),typeof t=="function"&&(r=t),qEe(this,e,null,r)}function lkt(e,t,r){this._parserInit||x4(this),G_("transform(%o bytes)",e.length),typeof t!="function"&&(t=this._parserOutput),qEe(this,e,t,r)}function OEe(e,t,r,n){return e._parserBytesLeft<=0?n(new Error("got data but not currently parsing anything")):t.length<=e._parserBytesLeft?function(){return DEe(e,t,r,n)}:function(){var i=t.slice(0,e._parserBytesLeft);return DEe(e,i,r,function(a){if(a)return n(a);if(t.length>i.length)return function(){return OEe(e,t.slice(i.length),r,n)}})}}function DEe(e,t,r,n){if(e._parserBytesLeft-=t.length,G_("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===t6?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===BEe&&r(t),e._parserBytesLeft===0){var i=e._parserCallback;if(i&&e._parserState===t6&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==t6&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=FEe,e._parserBuffers.splice(0),i){var a=[];t&&a.push(t),r&&a.push(r);var o=i.length>a.length;o&&a.push(NEe(n));var s=i.apply(e,a);if(!o||n===s)return n}}else return n}var qEe=NEe(OEe);function NEe(e){return function(){for(var t=e.apply(this,arguments);typeof t=="function";)t=t();return t}}});var xc=Te(Hg=>{"use strict";var GEe=DMe().Transform,ukt=VEe();function b4(){GEe.call(this,{readableObjectMode:!0})}b4.prototype=Object.create(GEe.prototype);b4.prototype.constructor=b4;ukt(b4.prototype);Hg.ParserStream=b4;Hg.sliceEq=function(e,t,r){for(var n=t,i=0;i{"use strict";var yT=xc().readUInt16BE,hj=xc().readUInt32BE;function w4(e,t){if(e.length<4+t)return null;var r=hj(e,t);return e.length>4&15,n=e[4]&15,i=e[5]>>4&15,a=yT(e,6),o=8,s=0;sa.width||i.width===a.width&&i.height>a.height?i:a}),r=e.reduce(function(i,a){return i.height>a.height||i.height===a.height&&i.width>a.width?i:a}),n;return t.width>r.height||t.width===r.height&&t.height>r.width?n=t:n=r,n}i6.exports.readSizeFromMeta=function(e){var t={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(pkt(e,t),!!t.sizes.length){var r=vkt(t.sizes),n=1;t.transforms.forEach(function(a){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},s={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(a.type==="imir"&&(a.value===0?n=s[n]:(n=s[n],n=o[n],n=o[n])),a.type==="irot")for(var u=0;u{"use strict";function n6(e,t){var r=new Error(e);return r.code=t,r}function mkt(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}function Wg(e,t,r){this.input=e.subarray(t,r),this.start=t;var n=String.fromCharCode.apply(null,this.input.subarray(0,4));if(n!=="II*\0"&&n!=="MM\0*")throw n6("invalid TIFF signature","EBADDATA");this.big_endian=n[0]==="M"}Wg.prototype.each=function(e){this.aborted=!1;var t=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:t}];this.ifds_to_read.length>0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,e)}};Wg.prototype.read_uint16=function(e){var t=this.input;if(e+2>t.length)throw n6("unexpected EOF","EBADDATA");return this.big_endian?t[e]*256+t[e+1]:t[e]+t[e+1]*256};Wg.prototype.read_uint32=function(e){var t=this.input;if(e+4>t.length)throw n6("unexpected EOF","EBADDATA");return this.big_endian?t[e]*16777216+t[e+1]*65536+t[e+2]*256+t[e+3]:t[e]+t[e+1]*256+t[e+2]*65536+t[e+3]*16777216};Wg.prototype.is_subifd_link=function(e,t){return e===0&&t===34665||e===0&&t===34853||e===34665&&t===40965};Wg.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}};Wg.prototype.exif_format_read=function(e,t){var r;switch(e){case 1:case 2:return r=this.input[t],r;case 6:return r=this.input[t],r|(r&128)*33554430;case 3:return r=this.read_uint16(t),r;case 8:return r=this.read_uint16(t),r|(r&32768)*131070;case 4:return r=this.read_uint32(t),r;case 9:return r=this.read_uint32(t),r|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};Wg.prototype.scan_ifd=function(e,t,r){var n=this.read_uint16(t);t+=2;for(var i=0;ithis.input.length)throw n6("unexpected EOF","EBADDATA");for(var h=[],d=f,p=0;p0&&(this.ifds_to_read.push({id:a,offset:h[0]}),c=!0);var b={is_big_endian:this.big_endian,ifd:e,tag:a,format:o,count:s,entry_offset:t+this.start,data_length:l,data_offset:f+this.start,value:h,is_subifd_link:c};if(r(b)===!1){this.aborted=!0;return}t+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(t)})};dj.exports.ExifParser=Wg;dj.exports.get_orientation=function(e){var t=0;try{return new Wg(e,0,e.length).each(function(r){if(r.ifd===0&&r.tag===274&&Array.isArray(r.value))return t=r.value[0],!1}),t}catch(r){return-1}}});var jEe=Te((qdr,WEe)=>{"use strict";var ykt=xc().str2arr,gkt=xc().sliceEq,_kt=xc().readUInt32BE,o6=HEe(),xkt=a6(),bkt=ykt("ftyp");WEe.exports=function(e){if(gkt(e,4,bkt)){var t=o6.unbox(e,0);if(t){var r=o6.getMimeType(t.data);if(r){for(var n,i=t.end;;){var a=o6.unbox(e,i);if(!a)break;if(i=a.end,a.boxtype==="mdat")return;if(a.boxtype==="meta"){n=a.data;break}}if(n){var o=o6.readSizeFromMeta(n);if(o){var s={width:o.width,height:o.height,type:r.type,mime:r.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(s.variants=o.variants),o.orientation&&(s.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var u=_kt(e,o.exif_location.offset),l=e.slice(o.exif_location.offset+u+4,o.exif_location.offset+o.exif_location.length),f=xkt.get_orientation(l);f>0&&(s.orientation=f)}return s}}}}}}});var YEe=Te((Ndr,ZEe)=>{"use strict";var wkt=xc().str2arr,Akt=xc().sliceEq,XEe=xc().readUInt16LE,Tkt=wkt("BM");ZEe.exports=function(e){if(!(e.length<26)&&Akt(e,0,Tkt))return{width:XEe(e,18),height:XEe(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var e4e=Te((Udr,QEe)=>{"use strict";var $Ee=xc().str2arr,KEe=xc().sliceEq,JEe=xc().readUInt16LE,Skt=$Ee("GIF87a"),Mkt=$Ee("GIF89a");QEe.exports=function(e){if(!(e.length<10)&&!(!KEe(e,0,Skt)&&!KEe(e,0,Mkt)))return{width:JEe(e,6),height:JEe(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var i4e=Te((Vdr,r4e)=>{"use strict";var pj=xc().readUInt16LE,Ekt=0,kkt=1,t4e=16;r4e.exports=function(e){var t=pj(e,0),r=pj(e,2),n=pj(e,4);if(!(t!==Ekt||r!==kkt||!n)){for(var i=[],a={width:0,height:0},o=0;oa.width||u>a.height)&&(a=l)}return{width:a.width,height:a.height,variants:i,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var a4e=Te((Gdr,n4e)=>{"use strict";var vj=xc().readUInt16BE,Ckt=xc().str2arr,Lkt=xc().sliceEq,Pkt=a6(),zkt=Ckt("Exif\0\0");n4e.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var t=2;;){for(;;){if(e.length-t<2)return;if(e[t++]===255)break}for(var r=e[t++],n;r===255;)r=e[t++];if(208<=r&&r<=217||r===1)n=0;else if(192<=r&&r<=254){if(e.length-t<2)return;n=vj(e,t)-2,t+=2}else return;if(r===217||r===218)return;var i;if(r===225&&n>=10&&Lkt(e,t,zkt)&&(i=Pkt.get_orientation(e.slice(t+6,t+n))),n>=5&&192<=r&&r<=207&&r!==196&&r!==200&&r!==204){if(e.length-t0&&(a.orientation=i),a}t+=n}}});var f4e=Te((Hdr,u4e)=>{"use strict";var l4e=xc().str2arr,o4e=xc().sliceEq,s4e=xc().readUInt32BE,Ikt=l4e(`\x89PNG\r +`));var s=new V_({actual:e,expected:t,message:r,operator:i,stackStartFn:n});throw s.generatedMessage=o,s}}eh.match=function e(t,r,n){MEe(t,r,n,e,"match")};eh.doesNotMatch=function e(t,r,n){MEe(t,r,n,e,"doesNotMatch")};function EEe(){for(var e=arguments.length,t=new Array(e),r=0;r{var _4=1e3,x4=_4*60,b4=x4*60,w4=b4*24,X4t=w4*365.25;CEe.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Z4t(e);if(r==="number"&&isNaN(e)===!1)return t.long?K4t(e):Y4t(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Z4t(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*X4t;case"days":case"day":case"d":return r*w4;case"hours":case"hour":case"hrs":case"hr":case"h":return r*b4;case"minutes":case"minute":case"mins":case"min":case"m":return r*x4;case"seconds":case"second":case"secs":case"sec":case"s":return r*_4;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Y4t(e){return e>=w4?Math.round(e/w4)+"d":e>=b4?Math.round(e/b4)+"h":e>=x4?Math.round(e/x4)+"m":e>=_4?Math.round(e/_4)+"s":e+"ms"}function K4t(e){return e6(e,w4,"day")||e6(e,b4,"hour")||e6(e,x4,"minute")||e6(e,_4,"second")||e+" ms"}function e6(e,t,r){if(!(e{Ic=PEe.exports=cj.debug=cj.default=cj;Ic.coerce=tkt;Ic.disable=Q4t;Ic.enable=$4t;Ic.enabled=ekt;Ic.humanize=LEe();Ic.names=[];Ic.skips=[];Ic.formatters={};var fj;function J4t(e){var t=0,r;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return Ic.colors[Math.abs(t)%Ic.colors.length]}function cj(e){function t(){if(t.enabled){var r=t,n=+new Date,i=n-(fj||n);r.diff=i,r.prev=fj,r.curr=n,fj=n;for(var a=new Array(arguments.length),o=0;o{sv=REe.exports=zEe();sv.log=nkt;sv.formatArgs=ikt;sv.save=akt;sv.load=IEe;sv.useColors=rkt;sv.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:okt();sv.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function rkt(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}sv.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function ikt(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+sv.humanize(this.diff),!!t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(a){a!=="%%"&&(n++,a==="%c"&&(i=n))}),e.splice(i,0,r)}}function nkt(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function akt(e){try{e==null?sv.storage.removeItem("debug"):sv.storage.debug=e}catch(t){}}function IEe(){var e;try{e=sv.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}sv.enable(IEe());function okt(){try{return window.localStorage}catch(e){}}});var GEe=Te((qdr,VEe)=>{var mT=o4(),G_=DEe()("stream-parser");VEe.exports=lkt;var BEe=-1,t6=0,skt=1,OEe=2;function lkt(e){var t=e&&typeof e._transform=="function",r=e&&typeof e._write=="function";if(!t&&!r)throw new Error("must pass a Writable or Transform stream in");G_("extending Parser into stream"),e._bytes=ukt,e._skipBytes=fkt,t&&(e._passthrough=ckt),t?e._transform=dkt:e._write=hkt}function A4(e){G_("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=BEe,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function ukt(e,t){mT(!this._parserCallback,'there is already a "callback" set!'),mT(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||A4(this),G_("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=t6}function fkt(e,t){mT(!this._parserCallback,'there is already a "callback" set!'),mT(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||A4(this),G_("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=skt}function ckt(e,t){mT(!this._parserCallback,'There is already a "callback" set!'),mT(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||A4(this),G_("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=OEe}function hkt(e,t,r){this._parserInit||A4(this),G_("write(%o bytes)",e.length),typeof t=="function"&&(r=t),NEe(this,e,null,r)}function dkt(e,t,r){this._parserInit||A4(this),G_("transform(%o bytes)",e.length),typeof t!="function"&&(t=this._parserOutput),NEe(this,e,t,r)}function qEe(e,t,r,n){return e._parserBytesLeft<=0?n(new Error("got data but not currently parsing anything")):t.length<=e._parserBytesLeft?function(){return FEe(e,t,r,n)}:function(){var i=t.slice(0,e._parserBytesLeft);return FEe(e,i,r,function(a){if(a)return n(a);if(t.length>i.length)return function(){return qEe(e,t.slice(i.length),r,n)}})}}function FEe(e,t,r,n){if(e._parserBytesLeft-=t.length,G_("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===t6?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===OEe&&r(t),e._parserBytesLeft===0){var i=e._parserCallback;if(i&&e._parserState===t6&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==t6&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=BEe,e._parserBuffers.splice(0),i){var a=[];t&&a.push(t),r&&a.push(r);var o=i.length>a.length;o&&a.push(UEe(n));var s=i.apply(e,a);if(!o||n===s)return n}}else return n}var NEe=UEe(qEe);function UEe(e){return function(){for(var t=e.apply(this,arguments);typeof t=="function";)t=t();return t}}});var xc=Te(Hg=>{"use strict";var HEe=FMe().Transform,pkt=GEe();function T4(){HEe.call(this,{readableObjectMode:!0})}T4.prototype=Object.create(HEe.prototype);T4.prototype.constructor=T4;pkt(T4.prototype);Hg.ParserStream=T4;Hg.sliceEq=function(e,t,r){for(var n=t,i=0;i{"use strict";var yT=xc().readUInt16BE,dj=xc().readUInt32BE;function S4(e,t){if(e.length<4+t)return null;var r=dj(e,t);return e.length>4&15,n=e[4]&15,i=e[5]>>4&15,a=yT(e,6),o=8,s=0;sa.width||i.width===a.width&&i.height>a.height?i:a}),r=e.reduce(function(i,a){return i.height>a.height||i.height===a.height&&i.width>a.width?i:a}),n;return t.width>r.height||t.width===r.height&&t.height>r.width?n=t:n=r,n}i6.exports.readSizeFromMeta=function(e){var t={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(_kt(e,t),!!t.sizes.length){var r=xkt(t.sizes),n=1;t.transforms.forEach(function(a){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},s={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(a.type==="imir"&&(a.value===0?n=s[n]:(n=s[n],n=o[n],n=o[n])),a.type==="irot")for(var u=0;u{"use strict";function n6(e,t){var r=new Error(e);return r.code=t,r}function bkt(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}function Wg(e,t,r){this.input=e.subarray(t,r),this.start=t;var n=String.fromCharCode.apply(null,this.input.subarray(0,4));if(n!=="II*\0"&&n!=="MM\0*")throw n6("invalid TIFF signature","EBADDATA");this.big_endian=n[0]==="M"}Wg.prototype.each=function(e){this.aborted=!1;var t=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:t}];this.ifds_to_read.length>0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,e)}};Wg.prototype.read_uint16=function(e){var t=this.input;if(e+2>t.length)throw n6("unexpected EOF","EBADDATA");return this.big_endian?t[e]*256+t[e+1]:t[e]+t[e+1]*256};Wg.prototype.read_uint32=function(e){var t=this.input;if(e+4>t.length)throw n6("unexpected EOF","EBADDATA");return this.big_endian?t[e]*16777216+t[e+1]*65536+t[e+2]*256+t[e+3]:t[e]+t[e+1]*256+t[e+2]*65536+t[e+3]*16777216};Wg.prototype.is_subifd_link=function(e,t){return e===0&&t===34665||e===0&&t===34853||e===34665&&t===40965};Wg.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}};Wg.prototype.exif_format_read=function(e,t){var r;switch(e){case 1:case 2:return r=this.input[t],r;case 6:return r=this.input[t],r|(r&128)*33554430;case 3:return r=this.read_uint16(t),r;case 8:return r=this.read_uint16(t),r|(r&32768)*131070;case 4:return r=this.read_uint32(t),r;case 9:return r=this.read_uint32(t),r|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};Wg.prototype.scan_ifd=function(e,t,r){var n=this.read_uint16(t);t+=2;for(var i=0;ithis.input.length)throw n6("unexpected EOF","EBADDATA");for(var h=[],d=f,p=0;p0&&(this.ifds_to_read.push({id:a,offset:h[0]}),c=!0);var b={is_big_endian:this.big_endian,ifd:e,tag:a,format:o,count:s,entry_offset:t+this.start,data_length:l,data_offset:f+this.start,value:h,is_subifd_link:c};if(r(b)===!1){this.aborted=!0;return}t+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(t)})};pj.exports.ExifParser=Wg;pj.exports.get_orientation=function(e){var t=0;try{return new Wg(e,0,e.length).each(function(r){if(r.ifd===0&&r.tag===274&&Array.isArray(r.value))return t=r.value[0],!1}),t}catch(r){return-1}}});var XEe=Te((Gdr,jEe)=>{"use strict";var wkt=xc().str2arr,Akt=xc().sliceEq,Tkt=xc().readUInt32BE,o6=WEe(),Skt=a6(),Mkt=wkt("ftyp");jEe.exports=function(e){if(Akt(e,4,Mkt)){var t=o6.unbox(e,0);if(t){var r=o6.getMimeType(t.data);if(r){for(var n,i=t.end;;){var a=o6.unbox(e,i);if(!a)break;if(i=a.end,a.boxtype==="mdat")return;if(a.boxtype==="meta"){n=a.data;break}}if(n){var o=o6.readSizeFromMeta(n);if(o){var s={width:o.width,height:o.height,type:r.type,mime:r.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(s.variants=o.variants),o.orientation&&(s.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var u=Tkt(e,o.exif_location.offset),l=e.slice(o.exif_location.offset+u+4,o.exif_location.offset+o.exif_location.length),f=Skt.get_orientation(l);f>0&&(s.orientation=f)}return s}}}}}}});var KEe=Te((Hdr,YEe)=>{"use strict";var Ekt=xc().str2arr,kkt=xc().sliceEq,ZEe=xc().readUInt16LE,Ckt=Ekt("BM");YEe.exports=function(e){if(!(e.length<26)&&kkt(e,0,Ckt))return{width:ZEe(e,18),height:ZEe(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var t4e=Te((Wdr,e4e)=>{"use strict";var QEe=xc().str2arr,JEe=xc().sliceEq,$Ee=xc().readUInt16LE,Lkt=QEe("GIF87a"),Pkt=QEe("GIF89a");e4e.exports=function(e){if(!(e.length<10)&&!(!JEe(e,0,Lkt)&&!JEe(e,0,Pkt)))return{width:$Ee(e,6),height:$Ee(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var n4e=Te((jdr,i4e)=>{"use strict";var vj=xc().readUInt16LE,zkt=0,Ikt=1,r4e=16;i4e.exports=function(e){var t=vj(e,0),r=vj(e,2),n=vj(e,4);if(!(t!==zkt||r!==Ikt||!n)){for(var i=[],a={width:0,height:0},o=0;oa.width||u>a.height)&&(a=l)}return{width:a.width,height:a.height,variants:i,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var o4e=Te((Xdr,a4e)=>{"use strict";var mj=xc().readUInt16BE,Rkt=xc().str2arr,Dkt=xc().sliceEq,Fkt=a6(),Bkt=Rkt("Exif\0\0");a4e.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var t=2;;){for(;;){if(e.length-t<2)return;if(e[t++]===255)break}for(var r=e[t++],n;r===255;)r=e[t++];if(208<=r&&r<=217||r===1)n=0;else if(192<=r&&r<=254){if(e.length-t<2)return;n=mj(e,t)-2,t+=2}else return;if(r===217||r===218)return;var i;if(r===225&&n>=10&&Dkt(e,t,Bkt)&&(i=Fkt.get_orientation(e.slice(t+6,t+n))),n>=5&&192<=r&&r<=207&&r!==196&&r!==200&&r!==204){if(e.length-t0&&(a.orientation=i),a}t+=n}}});var c4e=Te((Zdr,f4e)=>{"use strict";var u4e=xc().str2arr,s4e=xc().sliceEq,l4e=xc().readUInt32BE,Okt=u4e(`\x89PNG\r  -`),Rkt=l4e("IHDR");u4e.exports=function(e){if(!(e.length<24)&&o4e(e,0,Ikt)&&o4e(e,12,Rkt))return{width:s4e(e,16),height:s4e(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var d4e=Te((Wdr,h4e)=>{"use strict";var Dkt=xc().str2arr,Fkt=xc().sliceEq,c4e=xc().readUInt32BE,Bkt=Dkt("8BPS\0");h4e.exports=function(e){if(!(e.length<22)&&Fkt(e,0,Bkt))return{width:c4e(e,18),height:c4e(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var m4e=Te((jdr,v4e)=>{"use strict";function Okt(e){return e===32||e===9||e===13||e===10}function gT(e){return typeof e=="number"&&isFinite(e)&&e>0}function qkt(e){var t=0,r=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(t=3);t]*>/,Ukt=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,Vkt=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,Gkt=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,Hkt=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,p4e=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function Wkt(e){var t=e.match(Vkt),r=e.match(Gkt),n=e.match(Hkt);return{width:t&&(t[1]||t[2]),height:r&&(r[1]||r[2]),viewbox:n&&(n[1]||n[2])}}function Ny(e){return p4e.test(e)?e.match(p4e)[0]:"px"}v4e.exports=function(e){if(qkt(e)){for(var t="",r=0;r{"use strict";var _4e=xc().str2arr,y4e=xc().sliceEq,jkt=xc().readUInt16LE,Xkt=xc().readUInt16BE,Zkt=xc().readUInt32LE,Ykt=xc().readUInt32BE,Kkt=_4e("II*\0"),Jkt=_4e("MM\0*");function s6(e,t,r){return r?Xkt(e,t):jkt(e,t)}function mj(e,t,r){return r?Ykt(e,t):Zkt(e,t)}function g4e(e,t,r){var n=s6(e,t+2,r),i=mj(e,t+4,r);return i!==1||n!==3&&n!==4?null:n===3?s6(e,t+8,r):mj(e,t+8,r)}x4e.exports=function(e){if(!(e.length<8)&&!(!y4e(e,0,Kkt)&&!y4e(e,0,Jkt))){var t=e[0]===77,r=mj(e,4,t)-8;if(!(r<0)){var n=r+8;if(!(e.length-n<2)){var i=s6(e,n+0,t)*12;if(!(i<=0)&&(n+=2,!(e.length-n{"use strict";var T4e=xc().str2arr,w4e=xc().sliceEq,A4e=xc().readUInt16LE,yj=xc().readUInt32LE,$kt=a6(),Qkt=T4e("RIFF"),eCt=T4e("WEBP");function tCt(e,t){if(!(e[t+3]!==157||e[t+4]!==1||e[t+5]!==42))return{width:A4e(e,t+6)&16383,height:A4e(e,t+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function rCt(e,t){if(e[t]===47){var r=yj(e,t+1);return{width:(r&16383)+1,height:(r>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function iCt(e,t){return{width:(e[t+6]<<16|e[t+5]<<8|e[t+4])+1,height:(e[t+9]<e.length)){for(;t+8=10?r=r||tCt(e,t+8):a==="VP8L"&&o>=9?r=r||rCt(e,t+8):a==="VP8X"&&o>=10?r=r||iCt(e,t+8):a==="EXIF"&&(n=$kt.get_orientation(e.slice(t+8,t+8+o)),t=1/0),t+=8+o}if(r)return n>0&&(r.orientation=n),r}}}});var k4e=Te((Ydr,E4e)=>{"use strict";E4e.exports={avif:jEe(),bmp:YEe(),gif:e4e(),ico:i4e(),jpeg:a4e(),png:f4e(),psd:d4e(),svg:m4e(),tiff:b4e(),webp:M4e()}});var C4e=Te((Kdr,_j)=>{"use strict";var gj=k4e();function nCt(e){for(var t=Object.keys(gj),r=0;r{"use strict";var aCt=C4e(),oCt=Lg().IMAGE_URL_PREFIX,sCt=u2().Buffer;L4e.getImageSize=function(e){var t=e.replace(oCt,""),r=new sCt(t,"base64");return aCt(r)}});var R4e=Te(($dr,I4e)=>{"use strict";var z4e=ei(),lCt=WA(),uCt=ku(),l6=wu(),fCt=ei().maxRowLength,cCt=P4e().getImageSize;I4e.exports=function(t,r){var n,i;if(r._hasZ)n=r.z.length,i=fCt(r.z);else if(r._hasSource){var a=cCt(r.source);n=a.height,i=a.width}var o=l6.getFromId(t,r.xaxis||"x"),s=l6.getFromId(t,r.yaxis||"y"),u=o.d2c(r.x0)-r.dx/2,l=s.d2c(r.y0)-r.dy/2,f,c=[u,u+i*r.dx],h=[l,l+n*r.dy];if(o&&o.type==="log")for(f=0;f{"use strict";var vCt=Jl(),A2=ei(),D4e=A2.strTranslate,mCt=jv(),yCt=WA(),gCt=aG(),_Ct=lR().STYLE;F4e.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis,s=!t._context._exportedPlot&&gCt();A2.makeTraceGroups(i,n,"im").each(function(u){var l=vCt.select(this),f=u[0],c=f.trace,h=(c.zsmooth==="fast"||c.zsmooth===!1&&s)&&!c._hasZ&&c._hasSource&&a.type==="linear"&&o.type==="linear";c._realImage=h;var d=f.z,p=f.x0,x=f.y0,b=f.w,v=f.h,k=c.dx,E=c.dy,T,L,_,C,S,m;for(m=0;T===void 0&&m0;)L=a.c2p(p+m*k),m--;for(m=0;C===void 0&&m0;)S=o.c2p(x+m*E),m--;if(LW[0];if(re||ae){var be=T+A/2,Pe=C+B/2;H+="transform:"+D4e(be+"px",Pe+"px")+"scale("+(re?-1:1)+","+(ae?-1:1)+")"+D4e(-be+"px",-Pe+"px")+";"}}j.attr("style",H);var Ce=new Promise(function(de){if(c._hasZ)de();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===b&&c._canvas.el.height===v&&c._canvas.source===c.source)de();else{var te=document.createElement("canvas");te.width=b,te.height=v;var ke=te.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var Ee=c._image;Ee.onload=function(){ke.drawImage(Ee,0,0),c._canvas={el:te,source:c.source},de()},Ee.setAttribute("src",c.source)}}).then(function(){var de,te;if(c._hasZ)te=G(function(Me,Ue){var Fe=d[Ue][Me];return A2.isTypedArray(Fe)&&(Fe=Array.from(Fe)),Fe}),de=te.toDataURL("image/png");else if(c._hasSource)if(h)de=c.source;else{var ke=c._canvas.el.getContext("2d",{willReadFrequently:!0}),Ee=ke.getImageData(0,0,b,v).data;te=G(function(Me,Ue){var Fe=4*(Ue*b+Me);return[Ee[Fe],Ee[Fe+1],Ee[Fe+2],Ee[Fe+3]]}),de=te.toDataURL("image/png")}j.attr({"xlink:href":de,height:B,width:A,x:T,y:C})});t._promises.push(Ce)})}});var q4e=Te((epr,O4e)=>{"use strict";var xCt=Jl();O4e.exports=function(t){xCt.select(t).selectAll(".im image").style("opacity",function(r){return r[0].trace.opacity})}});var G4e=Te((tpr,V4e)=>{"use strict";var N4e=jc(),U4e=ei(),u6=U4e.isArrayOrTypedArray,bCt=WA();V4e.exports=function(t,r,n){var i=t.cd[0],a=i.trace,o=t.xa,s=t.ya;if(!(N4e.inbox(r-i.x0,r-(i.x0+i.w*a.dx),0)>0||N4e.inbox(n-i.y0,n-(i.y0+i.h*a.dy),0)>0)){var u=Math.floor((r-i.x0)/a.dx),l=Math.floor(Math.abs(n-i.y0)/a.dy),f;if(a._hasZ?f=i.z[l][u]:a._hasSource&&(f=a._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(u,l,1,1).data),!!f){var c=i.hi||a.hoverinfo,h;if(c){var d=c.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(h=!0)}var p=bCt.colormodel[a.colormodel],x=p.colormodel||a.colormodel,b=x.length,v=a._scaler(f),k=p.suffix,E=[];(a.hovertemplate||h)&&(E.push("["+[v[0]+k[0],v[1]+k[1],v[2]+k[2]].join(", ")),b===4&&E.push(", "+v[3]+k[3]),E.push("]"),E=E.join(""),t.extraText=x.toUpperCase()+": "+E);var T;u6(a.hovertext)&&u6(a.hovertext[l])?T=a.hovertext[l][u]:u6(a.text)&&u6(a.text[l])&&(T=a.text[l][u]);var L=s.c2p(i.y0+(l+.5)*a.dy),_=i.x0+(u+.5)*a.dx,C=i.y0+(l+.5)*a.dy,S="["+f.slice(0,a.colormodel.length).join(", ")+"]";return[U4e.extendFlat(t,{index:[l,u],x0:o.c2p(i.x0+u*a.dx),x1:o.c2p(i.x0+(u+1)*a.dx),y0:L,y1:L,color:v,xVal:_,xLabelVal:_,yVal:C,yLabelVal:C,zLabelVal:S,text:T,hovertemplateLabels:{zLabel:S,colorLabel:E,"color[0]Label":v[0]+k[0],"color[1]Label":v[1]+k[1],"color[2]Label":v[2]+k[2],"color[3]Label":v[3]+k[3]}})]}}}});var W4e=Te((rpr,H4e)=>{"use strict";H4e.exports=function(t,r){return"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t.color=r.color,t.colormodel=r.trace.colormodel,t.z||(t.z=r.color),t}});var X4e=Te((ipr,j4e)=>{"use strict";j4e.exports={attributes:vH(),supplyDefaults:G3e(),calc:R4e(),plot:B4e(),style:q4e(),hoverPoints:G4e(),eventData:W4e(),moduleType:"trace",name:"image",basePlotModule:Ah(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var Y4e=Te((npr,Z4e)=>{"use strict";Z4e.exports=X4e()});var T2=Te((apr,K4e)=>{"use strict";var wCt=Vf(),ACt=zc().attributes,TCt=gc(),SCt=Ih(),MCt=Hu().hovertemplateAttrs,ECt=Hu().texttemplateAttrs,A4=Su().extendFlat,kCt=Id().pattern,f6=TCt({editType:"plot",arrayOk:!0,colorEditType:"plot"});K4e.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:SCt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:kCt,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:A4({},wCt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:MCt({},{keys:["label","color","value","percent","text"]}),texttemplate:ECt({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:A4({},f6,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:A4({},f6,{}),outsidetextfont:A4({},f6,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:A4({},f6,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:ACt({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var S2=Te((opr,Q4e)=>{"use strict";var CCt=ku(),T4=ei(),LCt=T2(),PCt=zc().defaults,zCt=r0().handleText,ICt=ei().coercePattern;function J4e(e,t){var r=T4.isArrayOrTypedArray(e),n=T4.isArrayOrTypedArray(t),i=Math.min(r?e.length:1/0,n?t.length:1/0);if(isFinite(i)||(i=0),i&&n){for(var a,o=0;o0){a=!0;break}}a||(i=0)}return{hasLabels:r,hasValues:n,len:i}}function $4e(e,t,r,n,i){var a=n("marker.line.width");a&&n("marker.line.color",i?void 0:r.paper_bgcolor);var o=n("marker.colors");ICt(n,"marker.pattern",o),e.marker&&!t.marker.pattern.fgcolor&&(t.marker.pattern.fgcolor=e.marker.colors),t.marker.pattern.bgcolor||(t.marker.pattern.bgcolor=r.paper_bgcolor)}function RCt(e,t,r,n){function i(k,E){return T4.coerce(e,t,LCt,k,E)}var a=i("labels"),o=i("values"),s=J4e(a,o),u=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(i("label0"),i("dlabel")),!u){t.visible=!1;return}t._length=u,$4e(e,t,n,i,!0),i("scalegroup");var l=i("text"),f=i("texttemplate"),c;if(f||(c=i("textinfo",T4.isArrayOrTypedArray(l)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),f||c&&c!=="none"){var h=i("textposition");zCt(e,t,n,i,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",p=d||h==="outside";p&&i("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&i("insidetextorientation")}else c==="none"&&i("textposition","none");PCt(t,n,i);var x=i("hole"),b=i("title.text");if(b){var v=i("title.position",x?"middle center":"top center");!x&&v==="middle center"&&(t.title.position="top center"),T4.coerceFont(i,"title.font",n.font)}i("sort"),i("direction"),i("rotation"),i("pull")}Q4e.exports={handleLabelsAndValues:J4e,handleMarkerDefaults:$4e,supplyDefaults:RCt}});var c6=Te((spr,eke)=>{"use strict";eke.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var rke=Te((lpr,tke)=>{"use strict";var DCt=ei(),FCt=c6();tke.exports=function(t,r){function n(i,a){return DCt.coerce(t,r,FCt,i,a)}n("hiddenlabels"),n("piecolorway",r.colorway),n("extendpiecolors")}});var _T=Te((upr,ake)=>{"use strict";var BCt=ku(),xj=cd(),OCt=jl(),qCt={};function NCt(e,t){var r=[],n=e._fullLayout,i=n.hiddenlabels||[],a=t.labels,o=t.marker.colors||[],s=t.values,u=t._length,l=t._hasValues&&u,f,c;if(t.dlabel)for(a=new Array(u),f=0;f=0});var T=t.type==="funnelarea"?x:t.sort;return T&&r.sort(function(L,_){return _.v-L.v}),r[0]&&(r[0].vTotal=p),r}function ike(e){return function(r,n){return!r||(r=xj(r),!r.isValid())?!1:(r=OCt.addOpacity(r,r.getAlpha()),e[n]||(e[n]=r),r)}}function UCt(e,t){var r=(t||{}).type;r||(r="pie");var n=e._fullLayout,i=e.calcdata,a=n[r+"colorway"],o=n["_"+r+"colormap"];n["extend"+r+"colors"]&&(a=nke(a,qCt));for(var s=0,u=0;u{"use strict";var VCt=rv().appendArrayMultiPointValues;oke.exports=function(t,r){var n={curveNumber:r.index,pointNumbers:t.pts,data:r._input,fullData:r,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,bbox:t.bbox,v:t.v};return t.pts.length===1&&(n.pointNumber=n.i=t.pts[0]),VCt(n,r,t.pts),r.type==="funnelarea"&&(delete n.v,delete n.i),n}});var v6=Te((cpr,kke)=>{"use strict";var Rv=Jl(),GCt=Cc(),h6=jc(),dke=jl(),jg=Mu(),np=ei(),HCt=np.strScale,lke=np.strTranslate,bj=Zf(),pke=bp(),WCt=pke.recordMinTextSize,jCt=pke.clearMinTextSize,vke=Qb().TEXTPAD,Yu=u_(),d6=ske(),uke=ei().isValidTextValue;function XCt(e,t){var r=e._context.staticPlot,n=e._fullLayout,i=n._size;jCt("pie",n),gke(t,e),Ske(t,i);var a=np.makeTraceGroups(n._pielayer,t,"trace").each(function(o){var s=Rv.select(this),u=o[0],l=u.trace;rLt(o),s.attr("stroke-linejoin","round"),s.each(function(){var f=Rv.select(this).selectAll("g.slice").data(o);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],h=!1;f.each(function(T,L){if(T.hidden){Rv.select(this).selectAll("path,g").remove();return}T.pointNumber=T.i,T.curveNumber=l.index,c[T.pxmid[1]<0?0:1][T.pxmid[0]<0?0:1].push(T);var _=u.cx,C=u.cy,S=Rv.select(this),m=S.selectAll("path.surface").data([T]);if(m.enter().append("path").classed("surface",!0).style({"pointer-events":r?"none":"all"}),S.call(mke,e,o),l.pull){var P=+Yu.castOption(l.pull,T.pts)||0;P>0&&(_+=P*T.pxmid[0],C+=P*T.pxmid[1])}T.cxFinal=_,T.cyFinal=C;function A(N,W,re,ae){var be=ae*(W[0]-N[0]),Pe=ae*(W[1]-N[1]);return"a"+ae*u.r+","+ae*u.r+" 0 "+T.largeArc+(re?" 1 ":" 0 ")+be+","+Pe}var B=l.hole;if(T.v===u.vTotal){var F="M"+(_+T.px0[0])+","+(C+T.px0[1])+A(T.px0,T.pxmid,!0,1)+A(T.pxmid,T.px0,!0,1)+"Z";B?m.attr("d","M"+(_+B*T.px0[0])+","+(C+B*T.px0[1])+A(T.px0,T.pxmid,!1,B)+A(T.pxmid,T.px0,!1,B)+"Z"+F):m.attr("d",F)}else{var U=A(T.px0,T.px1,!0,1);if(B){var G=1-B;m.attr("d","M"+(_+B*T.px1[0])+","+(C+B*T.px1[1])+A(T.px1,T.px0,!1,B)+"l"+G*T.px0[0]+","+G*T.px0[1]+U+"Z")}else m.attr("d","M"+_+","+C+"l"+T.px0[0]+","+T.px0[1]+U+"Z")}Mke(e,T,u);var j=Yu.castOption(l.textposition,T.pts),H=S.selectAll("g.slicetext").data(T.text&&j!=="none"?[0]:[]);H.enter().append("g").classed("slicetext",!0),H.exit().remove(),H.each(function(){var N=np.ensureSingle(Rv.select(this),"text","",function(te){te.attr("data-notex",1)}),W=np.ensureUniformFontSize(e,j==="outside"?YCt(l,T,n.font):yke(l,T,n.font));N.text(T.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(jg.font,W).call(bj.convertToTspans,e);var re=jg.bBox(N.node()),ae;if(j==="outside")ae=hke(re,T);else if(ae=_ke(re,T,u),j==="auto"&&ae.scale<1){var be=np.ensureUniformFontSize(e,l.outsidetextfont);N.call(jg.font,be),re=jg.bBox(N.node()),ae=hke(re,T)}var Pe=ae.textPosAngle,Ce=Pe===void 0?T.pxmid:p6(u.r,Pe);if(ae.targetX=_+Ce[0]*ae.rCenter+(ae.x||0),ae.targetY=C+Ce[1]*ae.rCenter+(ae.y||0),Eke(ae,re),ae.outside){var de=ae.targetY;T.yLabelMin=de-re.height/2,T.yLabelMid=de,T.yLabelMax=de+re.height/2,T.labelExtraX=0,T.labelExtraY=0,h=!0}ae.fontSize=W.size,WCt(l.type,ae,n),o[L].transform=ae,np.setTransormAndDisplay(N,ae)})});var d=Rv.select(this).selectAll("g.titletext").data(l.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var T=np.ensureSingle(Rv.select(this),"text","",function(C){C.attr("data-notex",1)}),L=l.title.text;l._meta&&(L=np.templateString(L,l._meta)),T.text(L).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(jg.font,l.title.font).call(bj.convertToTspans,e);var _;l.title.position==="middle center"?_=$Ct(u):_=Ake(u,i),T.attr("transform",lke(_.x,_.y)+HCt(Math.min(1,_.scale))+lke(_.tx,_.ty))}),h&&eLt(c,l),ZCt(f,l),h&&l.automargin){var p=jg.bBox(s.node()),x=l.domain,b=i.w*(x.x[1]-x.x[0]),v=i.h*(x.y[1]-x.y[0]),k=(.5*b-u.r)/i.w,E=(.5*v-u.r)/i.h;GCt.autoMargin(e,"pie."+l.uid+".automargin",{xl:x.x[0]-k,xr:x.x[1]+k,yb:x.y[0]-E,yt:x.y[1]+E,l:Math.max(u.cx-u.r-p.left,0),r:Math.max(p.right-(u.cx+u.r),0),b:Math.max(p.bottom-(u.cy+u.r),0),t:Math.max(u.cy-u.r-p.top,0),pad:5})}})});setTimeout(function(){a.selectAll("tspan").each(function(){var o=Rv.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function ZCt(e,t){e.each(function(r){var n=Rv.select(this);if(!r.labelExtraX&&!r.labelExtraY){n.select("path.textline").remove();return}var i=n.select("g.slicetext text");r.transform.targetX+=r.labelExtraX,r.transform.targetY+=r.labelExtraY,np.setTransormAndDisplay(i,r.transform);var a=r.cxFinal+r.pxmid[0],o=r.cyFinal+r.pxmid[1],s="M"+a+","+o,u=(r.yLabelMax-r.yLabelMin)*(r.pxmid[0]<0?-1:1)/4;if(r.labelExtraX){var l=r.labelExtraX*r.pxmid[1]/r.pxmid[0],f=r.yLabelMid+r.labelExtraY-(r.cyFinal+r.pxmid[1]);Math.abs(l)>Math.abs(f)?s+="l"+f*r.pxmid[0]/r.pxmid[1]+","+f+"H"+(a+r.labelExtraX+u):s+="l"+r.labelExtraX+","+l+"v"+(f-l)+"h"+u}else s+="V"+(r.yLabelMid+r.labelExtraY)+"h"+u;np.ensureSingle(n,"path","textline").call(dke.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})})}function mke(e,t,r){var n=r[0],i=n.cx,a=n.cy,o=n.trace,s=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(u){var l=t._fullLayout,f=t._fullData[o.index];if(!(t._dragging||l.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=h6.castHoverinfo({hoverinfo:[Yu.castOption(c,u.pts)],_module:o._module},l,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var h=u.rInscribed||0,d=i+u.pxmid[0]*(1-h),p=a+u.pxmid[1]*(1-h),x=l.separators,b=[];if(c&&c.indexOf("label")!==-1&&b.push(u.label),u.text=Yu.castOption(f.hovertext||f.text,u.pts),c&&c.indexOf("text")!==-1){var v=u.text;np.isValidTextValue(v)&&b.push(v)}u.value=u.v,u.valueLabel=Yu.formatPieValue(u.v,x),c&&c.indexOf("value")!==-1&&b.push(u.valueLabel),u.percent=u.v/n.vTotal,u.percentLabel=Yu.formatPiePercent(u.percent,x),c&&c.indexOf("percent")!==-1&&b.push(u.percentLabel);var k=f.hoverlabel,E=k.font,T=[];h6.loneHover({trace:o,x0:d-h*n.r,x1:d+h*n.r,y:p,_x0:s?i+u.TL[0]:d-h*n.r,_x1:s?i+u.TR[0]:d+h*n.r,_y0:s?a+u.TL[1]:p-h*n.r,_y1:s?a+u.BL[1]:p+h*n.r,text:b.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:u.pxmid[0]<0?"left":"right",color:Yu.castOption(k.bgcolor,u.pts)||u.color,borderColor:Yu.castOption(k.bordercolor,u.pts),fontFamily:Yu.castOption(E.family,u.pts),fontSize:Yu.castOption(E.size,u.pts),fontColor:Yu.castOption(E.color,u.pts),nameLength:Yu.castOption(k.namelength,u.pts),textAlign:Yu.castOption(k.align,u.pts),hovertemplate:Yu.castOption(f.hovertemplate,u.pts),hovertemplateLabels:u,eventData:[d6(u,f)]},{container:l._hoverlayer.node(),outerContainer:l._paper.node(),gd:t,inOut_bbox:T}),u.bbox=T[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[d6(u,f)],event:Rv.event})}}),e.on("mouseout",function(u){var l=t._fullLayout,f=t._fullData[o.index],c=Rv.select(this).datum();o._hasHoverEvent&&(u.originalEvent=Rv.event,t.emit("plotly_unhover",{points:[d6(c,f)],event:Rv.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(h6.loneUnhover(l._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(u){var l=t._fullLayout,f=t._fullData[o.index];t._dragging||l.hovermode===!1||(t._hoverdata=[d6(u,f)],h6.click(t,Rv.event))})}function YCt(e,t,r){var n=Yu.castOption(e.outsidetextfont.color,t.pts)||Yu.castOption(e.textfont.color,t.pts)||r.color,i=Yu.castOption(e.outsidetextfont.family,t.pts)||Yu.castOption(e.textfont.family,t.pts)||r.family,a=Yu.castOption(e.outsidetextfont.size,t.pts)||Yu.castOption(e.textfont.size,t.pts)||r.size,o=Yu.castOption(e.outsidetextfont.weight,t.pts)||Yu.castOption(e.textfont.weight,t.pts)||r.weight,s=Yu.castOption(e.outsidetextfont.style,t.pts)||Yu.castOption(e.textfont.style,t.pts)||r.style,u=Yu.castOption(e.outsidetextfont.variant,t.pts)||Yu.castOption(e.textfont.variant,t.pts)||r.variant,l=Yu.castOption(e.outsidetextfont.textcase,t.pts)||Yu.castOption(e.textfont.textcase,t.pts)||r.textcase,f=Yu.castOption(e.outsidetextfont.lineposition,t.pts)||Yu.castOption(e.textfont.lineposition,t.pts)||r.lineposition,c=Yu.castOption(e.outsidetextfont.shadow,t.pts)||Yu.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n,family:i,size:a,weight:o,style:s,variant:u,textcase:l,lineposition:f,shadow:c}}function yke(e,t,r){var n=Yu.castOption(e.insidetextfont.color,t.pts);!n&&e._input.textfont&&(n=Yu.castOption(e._input.textfont.color,t.pts));var i=Yu.castOption(e.insidetextfont.family,t.pts)||Yu.castOption(e.textfont.family,t.pts)||r.family,a=Yu.castOption(e.insidetextfont.size,t.pts)||Yu.castOption(e.textfont.size,t.pts)||r.size,o=Yu.castOption(e.insidetextfont.weight,t.pts)||Yu.castOption(e.textfont.weight,t.pts)||r.weight,s=Yu.castOption(e.insidetextfont.style,t.pts)||Yu.castOption(e.textfont.style,t.pts)||r.style,u=Yu.castOption(e.insidetextfont.variant,t.pts)||Yu.castOption(e.textfont.variant,t.pts)||r.variant,l=Yu.castOption(e.insidetextfont.textcase,t.pts)||Yu.castOption(e.textfont.textcase,t.pts)||r.textcase,f=Yu.castOption(e.insidetextfont.lineposition,t.pts)||Yu.castOption(e.textfont.lineposition,t.pts)||r.lineposition,c=Yu.castOption(e.insidetextfont.shadow,t.pts)||Yu.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n||dke.contrast(t.color),family:i,size:a,weight:o,style:s,variant:u,textcase:l,lineposition:f,shadow:c}}function gke(e,t){for(var r,n,i=0;i=-4;k-=2)v(Math.PI*k,"tan");for(k=4;k>=-4;k-=2)v(Math.PI*(k+1),"tan")}if(c||d){for(k=4;k>=-4;k-=2)v(Math.PI*(k+1.5),"rad");for(k=4;k>=-4;k-=2)v(Math.PI*(k+.5),"rad")}}if(s||p||c){var E=Math.sqrt(e.width*e.width+e.height*e.height);if(b={scale:i*n*2/E,rCenter:1-i,rotate:0},b.textPosAngle=(t.startangle+t.stopangle)/2,b.scale>=1)return b;x.push(b)}(p||d)&&(b=fke(e,n,o,u,l),b.textPosAngle=(t.startangle+t.stopangle)/2,x.push(b)),(p||h)&&(b=cke(e,n,o,u,l),b.textPosAngle=(t.startangle+t.stopangle)/2,x.push(b));for(var T=0,L=0,_=0;_=1)break}return x[T]}function KCt(e,t){var r=e.startangle,n=e.stopangle;return r>t&&t>n||r0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function $Ct(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function Ake(e,t){var r=1,n=1,i,a=e.trace,o={x:e.cx,y:e.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=Tke(a),a.title.position.indexOf("top")!==-1?(o.y-=(1+i)*e.r,s.ty-=e.titleBox.height):a.title.position.indexOf("bottom")!==-1&&(o.y+=(1+i)*e.r);var u=QCt(e.r,e.trace.aspectratio),l=t.w*(a.domain.x[1]-a.domain.x[0])/2;return a.title.position.indexOf("left")!==-1?(l=l+u,o.x-=(1+i)*u,s.tx+=e.titleBox.width/2):a.title.position.indexOf("center")!==-1?l*=2:a.title.position.indexOf("right")!==-1&&(l=l+u,o.x+=(1+i)*u,s.tx-=e.titleBox.width/2),r=l/e.titleBox.width,n=wj(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function QCt(e,t){return e/(t===void 0?1:t)}function wj(e,t){var r=e.trace,n=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,n/2)}function Tke(e){var t=e.pull;if(!t)return 0;var r;if(np.isArrayOrTypedArray(t))for(t=0,r=0;rt&&(t=e.pull[r]);return t}function eLt(e,t){var r,n,i,a,o,s,u,l,f,c,h,d,p;function x(E,T){return E.pxmid[1]-T.pxmid[1]}function b(E,T){return T.pxmid[1]-E.pxmid[1]}function v(E,T){T||(T={});var L=T.labelExtraY+(n?T.yLabelMax:T.yLabelMin),_=n?E.yLabelMin:E.yLabelMax,C=n?E.yLabelMax:E.yLabelMin,S=E.cyFinal+o(E.px0[1],E.px1[1]),m=L-_,P,A,B,F,U,G;if(m*u>0&&(E.labelExtraY=m),!!np.isArrayOrTypedArray(t.pull))for(A=0;A=(Yu.castOption(t.pull,B.pts)||0))&&((E.pxmid[1]-B.pxmid[1])*u>0?(F=B.cyFinal+o(B.px0[1],B.px1[1]),m=F-_-E.labelExtraY,m*u>0&&(E.labelExtraY+=m)):(C+E.labelExtraY-S)*u>0&&(P=3*s*Math.abs(A-c.indexOf(E)),U=B.cxFinal+a(B.px0[0],B.px1[0]),G=U+P-(E.cxFinal+E.pxmid[0])-E.labelExtraX,G*s>0&&(E.labelExtraX+=G)))}for(n=0;n<2;n++)for(i=n?x:b,o=n?Math.max:Math.min,u=n?1:-1,r=0;r<2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,l=e[n][r],l.sort(i),f=e[1-n][r],c=f.concat(l),d=[],h=0;h1?(l=r.r,f=l/i.aspectratio):(f=r.r,l=f*i.aspectratio),l*=(1+i.baseratio)/2,u=l*f}o=Math.min(o,u/r.vTotal)}for(n=0;nt.vTotal/2?1:0,l.halfangle=Math.PI*Math.min(l.v/t.vTotal,.5),l.ring=1-n.hole,l.rInscribed=JCt(l,t))}function p6(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function Mke(e,t,r){var n=e._fullLayout,i=r.trace,a=i.texttemplate,o=i.textinfo;if(!a&&o&&o!=="none"){var s=o.split("+"),u=function(T){return s.indexOf(T)!==-1},l=u("label"),f=u("text"),c=u("value"),h=u("percent"),d=n.separators,p;if(p=l?[t.label]:[],f){var x=Yu.getFirstFilled(i.text,t.pts);uke(x)&&p.push(x)}c&&p.push(Yu.formatPieValue(t.v,d)),h&&p.push(Yu.formatPiePercent(t.v/r.vTotal,d)),t.text=p.join("
")}function b(T){return{label:T.label,value:T.v,valueLabel:Yu.formatPieValue(T.v,n.separators),percent:T.v/r.vTotal,percentLabel:Yu.formatPiePercent(T.v/r.vTotal,n.separators),color:T.color,text:T.text,customdata:np.castOption(i,T.i,"customdata")}}if(a){var v=np.castOption(i,t.i,"texttemplate");if(!v)t.text="";else{var k=b(t),E=Yu.getFirstFilled(i.text,t.pts);(uke(E)||E==="")&&(k.text=E),t.text=np.texttemplateString(v,k,e._fullLayout._d3locale,k,i._meta||{})}}}function Eke(e,t){var r=e.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=a*n-o*i,e.textY=a*i+o*n,e.noCenter=!0}kke.exports={plot:XCt,formatSliceLabel:Mke,transformInsideText:_ke,determineInsideTextFont:yke,positionTitleOutside:Ake,prerenderTitles:gke,layoutAreas:Ske,attachFxHandlers:mke,computeTransform:Eke}});var Pke=Te((hpr,Lke)=>{"use strict";var Cke=Jl(),iLt=D3(),nLt=bp().resizeText;Lke.exports=function(t){var r=t._fullLayout._pielayer.selectAll(".trace");nLt(t,r,"pie"),r.each(function(n){var i=n[0],a=i.trace,o=Cke.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){Cke.select(this).call(iLt,s,a,t)})})}});var Ike=Te(xT=>{"use strict";var zke=Cc();xT.name="pie";xT.plot=function(e,t,r,n){zke.plotBasePlot(xT.name,e,t,r,n)};xT.clean=function(e,t,r,n){zke.cleanBasePlot(xT.name,e,t,r,n)}});var Dke=Te((ppr,Rke)=>{"use strict";Rke.exports={attributes:T2(),supplyDefaults:S2().supplyDefaults,supplyLayoutDefaults:rke(),layoutAttributes:c6(),calc:_T().calc,crossTraceCalc:_T().crossTraceCalc,plot:v6().plot,style:Pke(),styleOne:D3(),moduleType:"trace",name:"pie",basePlotModule:Ike(),categories:["pie-like","pie","showLegend"],meta:{}}});var Bke=Te((vpr,Fke)=>{"use strict";Fke.exports=Dke()});var qke=Te(bT=>{"use strict";var Oke=Cc();bT.name="sunburst";bT.plot=function(e,t,r,n){Oke.plotBasePlot(bT.name,e,t,r,n)};bT.clean=function(e,t,r,n){Oke.cleanBasePlot(bT.name,e,t,r,n)}});var Aj=Te((ypr,Nke)=>{"use strict";Nke.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}});var M4=Te((gpr,Vke)=>{"use strict";var aLt=Vf(),oLt=Hu().hovertemplateAttrs,sLt=Hu().texttemplateAttrs,lLt=nc(),uLt=zc().attributes,Xg=T2(),Uke=Aj(),S4=Su().extendFlat,fLt=Id().pattern;Vke.exports={labels:{valType:"data_array",editType:"calc"},parents:{valType:"data_array",editType:"calc"},values:{valType:"data_array",editType:"calc"},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc"},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc"},level:{valType:"any",editType:"plot",anim:!0},maxdepth:{valType:"integer",editType:"plot",dflt:-1},marker:S4({colors:{valType:"data_array",editType:"calc"},line:{color:S4({},Xg.marker.line.color,{dflt:null}),width:S4({},Xg.marker.line.width,{dflt:1}),editType:"calc"},pattern:fLt,editType:"calc"},lLt("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1},editType:"plot"},text:Xg.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot"},texttemplate:sLt({editType:"plot"},{keys:Uke.eventDataKeys.concat(["label","value"])}),hovertext:Xg.hovertext,hoverinfo:S4({},aLt.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:oLt({},{keys:Uke.eventDataKeys}),textfont:Xg.textfont,insidetextorientation:Xg.insidetextorientation,insidetextfont:Xg.insidetextfont,outsidetextfont:S4({},Xg.outsidetextfont,{}),rotation:{valType:"angle",dflt:0,editType:"plot"},sort:Xg.sort,root:{color:{valType:"color",editType:"calc",dflt:"rgba(0,0,0,0)"},editType:"calc"},domain:uLt({name:"sunburst",trace:!0,editType:"calc"})}});var Tj=Te((_pr,Gke)=>{"use strict";Gke.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var Xke=Te((xpr,jke)=>{"use strict";var Hke=ei(),cLt=M4(),hLt=zc().defaults,dLt=r0().handleText,pLt=S2().handleMarkerDefaults,Wke=_c(),vLt=Wke.hasColorscale,mLt=Wke.handleDefaults;jke.exports=function(t,r,n,i){function a(h,d){return Hke.coerce(t,r,cLt,h,d)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var u=a("values");u&&u.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),pLt(t,r,i,a);var l=r._hasColorscale=vLt(t,"marker","colors")||(t.marker||{}).coloraxis;l&&mLt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",l?1:.7);var f=a("text");a("texttemplate"),r.texttemplate||a("textinfo",Hke.isArrayOrTypedArray(f)?"text+label":"label"),a("hovertext"),a("hovertemplate");var c="auto";dLt(t,r,i,a,c,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("insidetextorientation"),a("sort"),a("rotation"),a("root.color"),hLt(r,i,a),r._length=null}});var Yke=Te((bpr,Zke)=>{"use strict";var yLt=ei(),gLt=Tj();Zke.exports=function(t,r){function n(i,a){return yLt.coerce(t,r,gLt,i,a)}n("sunburstcolorway",r.colorway),n("extendsunburstcolors")}});var E4=Te((m6,Kke)=>{(function(e,t){typeof m6=="object"&&typeof Kke!="undefined"?t(m6):(e=e||self,t(e.d3=e.d3||{}))})(m6,function(e){"use strict";function t(Ie,De){return Ie.parent===De.parent?1:2}function r(Ie){return Ie.reduce(n,0)/Ie.length}function n(Ie,De){return Ie+De.x}function i(Ie){return 1+Ie.reduce(a,0)}function a(Ie,De){return Math.max(Ie,De.y)}function o(Ie){for(var De;De=Ie.children;)Ie=De[0];return Ie}function s(Ie){for(var De;De=Ie.children;)Ie=De[De.length-1];return Ie}function u(){var Ie=t,De=1,ct=1,_e=!1;function fe(pe){var mt,It=0;pe.eachAfter(function(Er){var Br=Er.children;Br?(Er.x=r(Br),Er.y=i(Br)):(Er.x=mt?It+=Ie(Er,mt):0,Er.y=0,mt=Er)});var Pt=o(pe),rr=s(pe),Wr=Pt.x-Ie(Pt,rr)/2,Nr=rr.x+Ie(rr,Pt)/2;return pe.eachAfter(_e?function(Er){Er.x=(Er.x-pe.x)*De,Er.y=(pe.y-Er.y)*ct}:function(Er){Er.x=(Er.x-Wr)/(Nr-Wr)*De,Er.y=(1-(pe.y?Er.y/pe.y:1))*ct})}return fe.separation=function(pe){return arguments.length?(Ie=pe,fe):Ie},fe.size=function(pe){return arguments.length?(_e=!1,De=+pe[0],ct=+pe[1],fe):_e?null:[De,ct]},fe.nodeSize=function(pe){return arguments.length?(_e=!0,De=+pe[0],ct=+pe[1],fe):_e?[De,ct]:null},fe}function l(Ie){var De=0,ct=Ie.children,_e=ct&&ct.length;if(!_e)De=1;else for(;--_e>=0;)De+=ct[_e].value;Ie.value=De}function f(){return this.eachAfter(l)}function c(Ie){var De=this,ct,_e=[De],fe,pe,mt;do for(ct=_e.reverse(),_e=[];De=ct.pop();)if(Ie(De),fe=De.children,fe)for(pe=0,mt=fe.length;pe=0;--fe)ct.push(_e[fe]);return this}function d(Ie){for(var De=this,ct=[De],_e=[],fe,pe,mt;De=ct.pop();)if(_e.push(De),fe=De.children,fe)for(pe=0,mt=fe.length;pe=0;)ct+=_e[fe].value;De.value=ct})}function x(Ie){return this.eachBefore(function(De){De.children&&De.children.sort(Ie)})}function b(Ie){for(var De=this,ct=v(De,Ie),_e=[De];De!==ct;)De=De.parent,_e.push(De);for(var fe=_e.length;Ie!==ct;)_e.splice(fe,0,Ie),Ie=Ie.parent;return _e}function v(Ie,De){if(Ie===De)return Ie;var ct=Ie.ancestors(),_e=De.ancestors(),fe=null;for(Ie=ct.pop(),De=_e.pop();Ie===De;)fe=Ie,Ie=ct.pop(),De=_e.pop();return fe}function k(){for(var Ie=this,De=[Ie];Ie=Ie.parent;)De.push(Ie);return De}function E(){var Ie=[];return this.each(function(De){Ie.push(De)}),Ie}function T(){var Ie=[];return this.eachBefore(function(De){De.children||Ie.push(De)}),Ie}function L(){var Ie=this,De=[];return Ie.each(function(ct){ct!==Ie&&De.push({source:ct.parent,target:ct})}),De}function _(Ie,De){var ct=new A(Ie),_e=+Ie.value&&(ct.value=Ie.value),fe,pe=[ct],mt,It,Pt,rr;for(De==null&&(De=S);fe=pe.pop();)if(_e&&(fe.value=+fe.data.value),(It=De(fe.data))&&(rr=It.length))for(fe.children=new Array(rr),Pt=rr-1;Pt>=0;--Pt)pe.push(mt=fe.children[Pt]=new A(It[Pt])),mt.parent=fe,mt.depth=fe.depth+1;return ct.eachBefore(P)}function C(){return _(this).eachBefore(m)}function S(Ie){return Ie.children}function m(Ie){Ie.data=Ie.data.data}function P(Ie){var De=0;do Ie.height=De;while((Ie=Ie.parent)&&Ie.height<++De)}function A(Ie){this.data=Ie,this.depth=this.height=0,this.parent=null}A.prototype=_.prototype={constructor:A,count:f,each:c,eachAfter:d,eachBefore:h,sum:p,sort:x,path:b,ancestors:k,descendants:E,leaves:T,links:L,copy:C};var B=Array.prototype.slice;function F(Ie){for(var De=Ie.length,ct,_e;De;)_e=Math.random()*De--|0,ct=Ie[De],Ie[De]=Ie[_e],Ie[_e]=ct;return Ie}function U(Ie){for(var De=0,ct=(Ie=F(B.call(Ie))).length,_e=[],fe,pe;De0&&ct*ct>_e*_e+fe*fe}function N(Ie,De){for(var ct=0;ctPt?(fe=(rr+Pt-pe)/(2*rr),It=Math.sqrt(Math.max(0,Pt/rr-fe*fe)),ct.x=Ie.x-fe*_e-It*mt,ct.y=Ie.y-fe*mt+It*_e):(fe=(rr+pe-Pt)/(2*rr),It=Math.sqrt(Math.max(0,pe/rr-fe*fe)),ct.x=De.x+fe*_e-It*mt,ct.y=De.y+fe*mt+It*_e)):(ct.x=De.x+ct.r,ct.y=De.y)}function Ce(Ie,De){var ct=Ie.r+De.r-1e-6,_e=De.x-Ie.x,fe=De.y-Ie.y;return ct>0&&ct*ct>_e*_e+fe*fe}function de(Ie){var De=Ie._,ct=Ie.next._,_e=De.r+ct.r,fe=(De.x*ct.r+ct.x*De.r)/_e,pe=(De.y*ct.r+ct.y*De.r)/_e;return fe*fe+pe*pe}function te(Ie){this._=Ie,this.next=null,this.previous=null}function ke(Ie){if(!(fe=Ie.length))return 0;var De,ct,_e,fe,pe,mt,It,Pt,rr,Wr,Nr;if(De=Ie[0],De.x=0,De.y=0,!(fe>1))return De.r;if(ct=Ie[1],De.x=-ct.r,ct.x=De.r,ct.y=0,!(fe>2))return De.r+ct.r;Pe(ct,De,_e=Ie[2]),De=new te(De),ct=new te(ct),_e=new te(_e),De.next=_e.previous=ct,ct.next=De.previous=_e,_e.next=ct.previous=De;e:for(It=3;It0)throw new Error("cycle");return It}return ct.id=function(_e){return arguments.length?(Ie=Ue(_e),ct):Ie},ct.parentId=function(_e){return arguments.length?(De=Ue(_e),ct):De},ct}function Ae(Ie,De){return Ie.parent===De.parent?1:2}function ot(Ie){var De=Ie.children;return De?De[0]:Ie.t}function dt(Ie){var De=Ie.children;return De?De[De.length-1]:Ie.t}function pt(Ie,De,ct){var _e=ct/(De.i-Ie.i);De.c-=_e,De.s+=ct,Ie.c+=_e,De.z+=ct,De.m+=ct}function at(Ie){for(var De=0,ct=0,_e=Ie.children,fe=_e.length,pe;--fe>=0;)pe=_e[fe],pe.z+=De,pe.m+=De,De+=pe.s+(ct+=pe.c)}function Xe(Ie,De,ct){return Ie.a.parent===De.parent?Ie.a:ct}function rt(Ie,De){this._=Ie,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=De}rt.prototype=Object.create(A.prototype);function Qe(Ie){for(var De=new rt(Ie,0),ct,_e=[De],fe,pe,mt,It;ct=_e.pop();)if(pe=ct._.children)for(ct.children=new Array(It=pe.length),mt=It-1;mt>=0;--mt)_e.push(fe=ct.children[mt]=new rt(pe[mt],mt)),fe.parent=ct;return(De.parent=new rt(null,0)).children=[De],De}function zt(){var Ie=Ae,De=1,ct=1,_e=null;function fe(rr){var Wr=Qe(rr);if(Wr.eachAfter(pe),Wr.parent.m=-Wr.z,Wr.eachBefore(mt),_e)rr.eachBefore(Pt);else{var Nr=rr,Er=rr,Br=rr;rr.eachBefore(function(nn){nn.xEr.x&&(Er=nn),nn.depth>Br.depth&&(Br=nn)});var mi=Nr===Er?1:Ie(Nr,Er)/2,Di=mi-Nr.x,Ii=De/(Er.x+mi+Di),Ci=ct/(Br.depth||1);rr.eachBefore(function(nn){nn.x=(nn.x+Di)*Ii,nn.y=nn.depth*Ci})}return rr}function pe(rr){var Wr=rr.children,Nr=rr.parent.children,Er=rr.i?Nr[rr.i-1]:null;if(Wr){at(rr);var Br=(Wr[0].z+Wr[Wr.length-1].z)/2;Er?(rr.z=Er.z+Ie(rr._,Er._),rr.m=rr.z-Br):rr.z=Br}else Er&&(rr.z=Er.z+Ie(rr._,Er._));rr.parent.A=It(rr,Er,rr.parent.A||Nr[0])}function mt(rr){rr._.x=rr.z+rr.parent.m,rr.m+=rr.parent.m}function It(rr,Wr,Nr){if(Wr){for(var Er=rr,Br=rr,mi=Wr,Di=Er.parent.children[0],Ii=Er.m,Ci=Br.m,nn=mi.m,ii=Di.m,wi;mi=dt(mi),Er=ot(Er),mi&&Er;)Di=ot(Di),Br=dt(Br),Br.a=rr,wi=mi.z+nn-Er.z-Ii+Ie(mi._,Er._),wi>0&&(pt(Xe(mi,rr,Nr),rr,wi),Ii+=wi,Ci+=wi),nn+=mi.m,Ii+=Er.m,ii+=Di.m,Ci+=Br.m;mi&&!dt(Br)&&(Br.t=mi,Br.m+=nn-Ci),Er&&!ot(Di)&&(Di.t=Er,Di.m+=Ii-ii,Nr=rr)}return Nr}function Pt(rr){rr.x*=De,rr.y=rr.depth*ct}return fe.separation=function(rr){return arguments.length?(Ie=rr,fe):Ie},fe.size=function(rr){return arguments.length?(_e=!1,De=+rr[0],ct=+rr[1],fe):_e?null:[De,ct]},fe.nodeSize=function(rr){return arguments.length?(_e=!0,De=+rr[0],ct=+rr[1],fe):_e?[De,ct]:null},fe}function Yt(Ie,De,ct,_e,fe){for(var pe=Ie.children,mt,It=-1,Pt=pe.length,rr=Ie.value&&(fe-ct)/Ie.value;++Itnn&&(nn=rr),Ft=Ii*Ii*Gi,ii=Math.max(nn/Ft,Ft/Ci),ii>wi){Ii-=rr;break}wi=ii}mt.push(Pt={value:Ii,dice:Br1?_e:1)},ct}(lr);function Ht(){var Ie=_r,De=!1,ct=1,_e=1,fe=[0],pe=Fe,mt=Fe,It=Fe,Pt=Fe,rr=Fe;function Wr(Er){return Er.x0=Er.y0=0,Er.x1=ct,Er.y1=_e,Er.eachBefore(Nr),fe=[0],De&&Er.eachBefore(Nt),Er}function Nr(Er){var Br=fe[Er.depth],mi=Er.x0+Br,Di=Er.y0+Br,Ii=Er.x1-Br,Ci=Er.y1-Br;Ii=Er-1){var nn=pe[Nr];nn.x0=mi,nn.y0=Di,nn.x1=Ii,nn.y1=Ci;return}for(var ii=rr[Nr],wi=Br/2+ii,Gi=Nr+1,Ft=Er-1;Gi>>1;rr[gt]Ci-Di){var xr=(mi*Wt+Ii*Ut)/Br;Wr(Nr,Gi,Ut,mi,Di,xr,Ci),Wr(Gi,Er,Wt,xr,Di,Ii,Ci)}else{var Lr=(Di*Wt+Ci*Ut)/Br;Wr(Nr,Gi,Ut,mi,Di,Ii,Lr),Wr(Gi,Er,Wt,mi,Lr,Ii,Ci)}}}function xe(Ie,De,ct,_e,fe){(Ie.depth&1?Yt:nt)(Ie,De,ct,_e,fe)}var Oe=function Ie(De){function ct(_e,fe,pe,mt,It){if((Pt=_e._squarify)&&Pt.ratio===De)for(var Pt,rr,Wr,Nr,Er=-1,Br,mi=Pt.length,Di=_e.value;++Er1?_e:1)},ct}(lr);e.cluster=u,e.hierarchy=_,e.pack=ce,e.packEnclose=U,e.packSiblings=Ee,e.partition=Ye,e.stratify=Et,e.tree=zt,e.treemap=Ht,e.treemapBinary=Re,e.treemapDice=nt,e.treemapResquarify=Oe,e.treemapSlice=Yt,e.treemapSliceDice=xe,e.treemapSquarify=_r,Object.defineProperty(e,"__esModule",{value:!0})})});var C4=Te(k4=>{"use strict";var Jke=E4(),_Lt=ku(),wT=ei(),xLt=_c().makeColorScaleFuncFromTrace,bLt=_T().makePullColorFn,wLt=_T().generateExtendedColors,ALt=_c().calc,TLt=nf().ALMOST_EQUAL,SLt={},MLt={},ELt={};k4.calc=function(e,t){var r=e._fullLayout,n=t.ids,i=wT.isArrayOrTypedArray(n),a=t.labels,o=t.parents,s=t.values,u=wT.isArrayOrTypedArray(s),l=[],f={},c={},h=function(H,N){f[H]?f[H].push(N):f[H]=[N],c[N]=1},d=function(H){return H||typeof H=="number"},p=function(H){return!u||_Lt(s[H])&&s[H]>=0},x,b,v;i?(x=Math.min(n.length,o.length),b=function(H){return d(n[H])&&p(H)},v=function(H){return String(n[H])}):(x=Math.min(a.length,o.length),b=function(H){return d(a[H])&&p(H)},v=function(H){return String(a[H])}),u&&(x=Math.min(x,s.length));for(var k=0;k1){for(var S=wT.randstr(),m=0;m{"use strict";var Nkt=xc().str2arr,Ukt=xc().sliceEq,h4e=xc().readUInt32BE,Vkt=Nkt("8BPS\0");d4e.exports=function(e){if(!(e.length<22)&&Ukt(e,0,Vkt))return{width:h4e(e,18),height:h4e(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var y4e=Te((Kdr,m4e)=>{"use strict";function Gkt(e){return e===32||e===9||e===13||e===10}function gT(e){return typeof e=="number"&&isFinite(e)&&e>0}function Hkt(e){var t=0,r=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(t=3);t]*>/,jkt=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,Xkt=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,Zkt=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,Ykt=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,v4e=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function Kkt(e){var t=e.match(Xkt),r=e.match(Zkt),n=e.match(Ykt);return{width:t&&(t[1]||t[2]),height:r&&(r[1]||r[2]),viewbox:n&&(n[1]||n[2])}}function Ny(e){return v4e.test(e)?e.match(v4e)[0]:"px"}m4e.exports=function(e){if(Hkt(e)){for(var t="",r=0;r{"use strict";var x4e=xc().str2arr,g4e=xc().sliceEq,Jkt=xc().readUInt16LE,$kt=xc().readUInt16BE,Qkt=xc().readUInt32LE,eCt=xc().readUInt32BE,tCt=x4e("II*\0"),rCt=x4e("MM\0*");function s6(e,t,r){return r?$kt(e,t):Jkt(e,t)}function yj(e,t,r){return r?eCt(e,t):Qkt(e,t)}function _4e(e,t,r){var n=s6(e,t+2,r),i=yj(e,t+4,r);return i!==1||n!==3&&n!==4?null:n===3?s6(e,t+8,r):yj(e,t+8,r)}b4e.exports=function(e){if(!(e.length<8)&&!(!g4e(e,0,tCt)&&!g4e(e,0,rCt))){var t=e[0]===77,r=yj(e,4,t)-8;if(!(r<0)){var n=r+8;if(!(e.length-n<2)){var i=s6(e,n+0,t)*12;if(!(i<=0)&&(n+=2,!(e.length-n{"use strict";var S4e=xc().str2arr,A4e=xc().sliceEq,T4e=xc().readUInt16LE,gj=xc().readUInt32LE,iCt=a6(),nCt=S4e("RIFF"),aCt=S4e("WEBP");function oCt(e,t){if(!(e[t+3]!==157||e[t+4]!==1||e[t+5]!==42))return{width:T4e(e,t+6)&16383,height:T4e(e,t+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function sCt(e,t){if(e[t]===47){var r=gj(e,t+1);return{width:(r&16383)+1,height:(r>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function lCt(e,t){return{width:(e[t+6]<<16|e[t+5]<<8|e[t+4])+1,height:(e[t+9]<e.length)){for(;t+8=10?r=r||oCt(e,t+8):a==="VP8L"&&o>=9?r=r||sCt(e,t+8):a==="VP8X"&&o>=10?r=r||lCt(e,t+8):a==="EXIF"&&(n=iCt.get_orientation(e.slice(t+8,t+8+o)),t=1/0),t+=8+o}if(r)return n>0&&(r.orientation=n),r}}}});var C4e=Te((Qdr,k4e)=>{"use strict";k4e.exports={avif:XEe(),bmp:KEe(),gif:t4e(),ico:n4e(),jpeg:o4e(),png:c4e(),psd:p4e(),svg:y4e(),tiff:w4e(),webp:E4e()}});var L4e=Te((epr,xj)=>{"use strict";var _j=C4e();function uCt(e){for(var t=Object.keys(_j),r=0;r{"use strict";var fCt=L4e(),cCt=Lg().IMAGE_URL_PREFIX,hCt=u2().Buffer;P4e.getImageSize=function(e){var t=e.replace(cCt,""),r=new hCt(t,"base64");return fCt(r)}});var D4e=Te((rpr,R4e)=>{"use strict";var I4e=ei(),dCt=WA(),pCt=ku(),l6=wu(),vCt=ei().maxRowLength,mCt=z4e().getImageSize;R4e.exports=function(t,r){var n,i;if(r._hasZ)n=r.z.length,i=vCt(r.z);else if(r._hasSource){var a=mCt(r.source);n=a.height,i=a.width}var o=l6.getFromId(t,r.xaxis||"x"),s=l6.getFromId(t,r.yaxis||"y"),u=o.d2c(r.x0)-r.dx/2,l=s.d2c(r.y0)-r.dy/2,f,c=[u,u+i*r.dx],h=[l,l+n*r.dy];if(o&&o.type==="log")for(f=0;f{"use strict";var xCt=Jl(),A2=ei(),F4e=A2.strTranslate,bCt=jv(),wCt=WA(),ACt=oG(),TCt=lR().STYLE;B4e.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis,s=!t._context._exportedPlot&&ACt();A2.makeTraceGroups(i,n,"im").each(function(u){var l=xCt.select(this),f=u[0],c=f.trace,h=(c.zsmooth==="fast"||c.zsmooth===!1&&s)&&!c._hasZ&&c._hasSource&&a.type==="linear"&&o.type==="linear";c._realImage=h;var d=f.z,p=f.x0,x=f.y0,b=f.w,v=f.h,k=c.dx,E=c.dy,T,L,_,C,S,m;for(m=0;T===void 0&&m0;)L=a.c2p(p+m*k),m--;for(m=0;C===void 0&&m0;)S=o.c2p(x+m*E),m--;if(LW[0];if(re||ae){var be=T+A/2,Ce=C+B/2;H+="transform:"+F4e(be+"px",Ce+"px")+"scale("+(re?-1:1)+","+(ae?-1:1)+")"+F4e(-be+"px",-Ce+"px")+";"}}j.attr("style",H);var Le=new Promise(function(pe){if(c._hasZ)pe();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===b&&c._canvas.el.height===v&&c._canvas.source===c.source)pe();else{var te=document.createElement("canvas");te.width=b,te.height=v;var ke=te.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var Ee=c._image;Ee.onload=function(){ke.drawImage(Ee,0,0),c._canvas={el:te,source:c.source},pe()},Ee.setAttribute("src",c.source)}}).then(function(){var pe,te;if(c._hasZ)te=G(function(Me,Ne){var Fe=d[Ne][Me];return A2.isTypedArray(Fe)&&(Fe=Array.from(Fe)),Fe}),pe=te.toDataURL("image/png");else if(c._hasSource)if(h)pe=c.source;else{var ke=c._canvas.el.getContext("2d",{willReadFrequently:!0}),Ee=ke.getImageData(0,0,b,v).data;te=G(function(Me,Ne){var Fe=4*(Ne*b+Me);return[Ee[Fe],Ee[Fe+1],Ee[Fe+2],Ee[Fe+3]]}),pe=te.toDataURL("image/png")}j.attr({"xlink:href":pe,height:B,width:A,x:T,y:C})});t._promises.push(Le)})}});var N4e=Te((npr,q4e)=>{"use strict";var SCt=Jl();q4e.exports=function(t){SCt.select(t).selectAll(".im image").style("opacity",function(r){return r[0].trace.opacity})}});var H4e=Te((apr,G4e)=>{"use strict";var U4e=Xc(),V4e=ei(),u6=V4e.isArrayOrTypedArray,MCt=WA();G4e.exports=function(t,r,n){var i=t.cd[0],a=i.trace,o=t.xa,s=t.ya;if(!(U4e.inbox(r-i.x0,r-(i.x0+i.w*a.dx),0)>0||U4e.inbox(n-i.y0,n-(i.y0+i.h*a.dy),0)>0)){var u=Math.floor((r-i.x0)/a.dx),l=Math.floor(Math.abs(n-i.y0)/a.dy),f;if(a._hasZ?f=i.z[l][u]:a._hasSource&&(f=a._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(u,l,1,1).data),!!f){var c=i.hi||a.hoverinfo,h;if(c){var d=c.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(h=!0)}var p=MCt.colormodel[a.colormodel],x=p.colormodel||a.colormodel,b=x.length,v=a._scaler(f),k=p.suffix,E=[];(a.hovertemplate||h)&&(E.push("["+[v[0]+k[0],v[1]+k[1],v[2]+k[2]].join(", ")),b===4&&E.push(", "+v[3]+k[3]),E.push("]"),E=E.join(""),t.extraText=x.toUpperCase()+": "+E);var T;u6(a.hovertext)&&u6(a.hovertext[l])?T=a.hovertext[l][u]:u6(a.text)&&u6(a.text[l])&&(T=a.text[l][u]);var L=s.c2p(i.y0+(l+.5)*a.dy),_=i.x0+(u+.5)*a.dx,C=i.y0+(l+.5)*a.dy,S="["+f.slice(0,a.colormodel.length).join(", ")+"]";return[V4e.extendFlat(t,{index:[l,u],x0:o.c2p(i.x0+u*a.dx),x1:o.c2p(i.x0+(u+1)*a.dx),y0:L,y1:L,color:v,xVal:_,xLabelVal:_,yVal:C,yLabelVal:C,zLabelVal:S,text:T,hovertemplateLabels:{zLabel:S,colorLabel:E,"color[0]Label":v[0]+k[0],"color[1]Label":v[1]+k[1],"color[2]Label":v[2]+k[2],"color[3]Label":v[3]+k[3]}})]}}}});var j4e=Te((opr,W4e)=>{"use strict";W4e.exports=function(t,r){return"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t.color=r.color,t.colormodel=r.trace.colormodel,t.z||(t.z=r.color),t}});var Z4e=Te((spr,X4e)=>{"use strict";X4e.exports={attributes:mH(),supplyDefaults:H3e(),calc:D4e(),plot:O4e(),style:N4e(),hoverPoints:H4e(),eventData:j4e(),moduleType:"trace",name:"image",basePlotModule:Ah(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var K4e=Te((lpr,Y4e)=>{"use strict";Y4e.exports=Z4e()});var T2=Te((upr,J4e)=>{"use strict";var ECt=Vf(),kCt=zc().attributes,CCt=gc(),LCt=Ih(),PCt=Nu().hovertemplateAttrs,zCt=Nu().texttemplateAttrs,M4=Su().extendFlat,ICt=Id().pattern,f6=CCt({editType:"plot",arrayOk:!0,colorEditType:"plot"});J4e.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:LCt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:ICt,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:M4({},ECt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:PCt({},{keys:["label","color","value","percent","text"]}),texttemplate:zCt({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:M4({},f6,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:M4({},f6,{}),outsidetextfont:M4({},f6,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:M4({},f6,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:kCt({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var S2=Te((fpr,eke)=>{"use strict";var RCt=ku(),E4=ei(),DCt=T2(),FCt=zc().defaults,BCt=r0().handleText,OCt=ei().coercePattern;function $4e(e,t){var r=E4.isArrayOrTypedArray(e),n=E4.isArrayOrTypedArray(t),i=Math.min(r?e.length:1/0,n?t.length:1/0);if(isFinite(i)||(i=0),i&&n){for(var a,o=0;o0){a=!0;break}}a||(i=0)}return{hasLabels:r,hasValues:n,len:i}}function Q4e(e,t,r,n,i){var a=n("marker.line.width");a&&n("marker.line.color",i?void 0:r.paper_bgcolor);var o=n("marker.colors");OCt(n,"marker.pattern",o),e.marker&&!t.marker.pattern.fgcolor&&(t.marker.pattern.fgcolor=e.marker.colors),t.marker.pattern.bgcolor||(t.marker.pattern.bgcolor=r.paper_bgcolor)}function qCt(e,t,r,n){function i(k,E){return E4.coerce(e,t,DCt,k,E)}var a=i("labels"),o=i("values"),s=$4e(a,o),u=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(i("label0"),i("dlabel")),!u){t.visible=!1;return}t._length=u,Q4e(e,t,n,i,!0),i("scalegroup");var l=i("text"),f=i("texttemplate"),c;if(f||(c=i("textinfo",E4.isArrayOrTypedArray(l)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),f||c&&c!=="none"){var h=i("textposition");BCt(e,t,n,i,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",p=d||h==="outside";p&&i("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&i("insidetextorientation")}else c==="none"&&i("textposition","none");FCt(t,n,i);var x=i("hole"),b=i("title.text");if(b){var v=i("title.position",x?"middle center":"top center");!x&&v==="middle center"&&(t.title.position="top center"),E4.coerceFont(i,"title.font",n.font)}i("sort"),i("direction"),i("rotation"),i("pull")}eke.exports={handleLabelsAndValues:$4e,handleMarkerDefaults:Q4e,supplyDefaults:qCt}});var c6=Te((cpr,tke)=>{"use strict";tke.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var ike=Te((hpr,rke)=>{"use strict";var NCt=ei(),UCt=c6();rke.exports=function(t,r){function n(i,a){return NCt.coerce(t,r,UCt,i,a)}n("hiddenlabels"),n("piecolorway",r.colorway),n("extendpiecolors")}});var _T=Te((dpr,oke)=>{"use strict";var VCt=ku(),bj=cd(),GCt=jl(),HCt={};function WCt(e,t){var r=[],n=e._fullLayout,i=n.hiddenlabels||[],a=t.labels,o=t.marker.colors||[],s=t.values,u=t._length,l=t._hasValues&&u,f,c;if(t.dlabel)for(a=new Array(u),f=0;f=0});var T=t.type==="funnelarea"?x:t.sort;return T&&r.sort(function(L,_){return _.v-L.v}),r[0]&&(r[0].vTotal=p),r}function nke(e){return function(r,n){return!r||(r=bj(r),!r.isValid())?!1:(r=GCt.addOpacity(r,r.getAlpha()),e[n]||(e[n]=r),r)}}function jCt(e,t){var r=(t||{}).type;r||(r="pie");var n=e._fullLayout,i=e.calcdata,a=n[r+"colorway"],o=n["_"+r+"colormap"];n["extend"+r+"colors"]&&(a=ake(a,HCt));for(var s=0,u=0;u{"use strict";var XCt=rv().appendArrayMultiPointValues;ske.exports=function(t,r){var n={curveNumber:r.index,pointNumbers:t.pts,data:r._input,fullData:r,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,bbox:t.bbox,v:t.v};return t.pts.length===1&&(n.pointNumber=n.i=t.pts[0]),XCt(n,r,t.pts),r.type==="funnelarea"&&(delete n.v,delete n.i),n}});var v6=Te((vpr,Cke)=>{"use strict";var Rv=Jl(),ZCt=Cc(),h6=Xc(),pke=jl(),jg=Mu(),np=ei(),YCt=np.strScale,uke=np.strTranslate,wj=Zf(),vke=bp(),KCt=vke.recordMinTextSize,JCt=vke.clearMinTextSize,mke=Qb().TEXTPAD,Yu=u_(),d6=lke(),fke=ei().isValidTextValue;function $Ct(e,t){var r=e._context.staticPlot,n=e._fullLayout,i=n._size;JCt("pie",n),_ke(t,e),Mke(t,i);var a=np.makeTraceGroups(n._pielayer,t,"trace").each(function(o){var s=Rv.select(this),u=o[0],l=u.trace;sLt(o),s.attr("stroke-linejoin","round"),s.each(function(){var f=Rv.select(this).selectAll("g.slice").data(o);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],h=!1;f.each(function(T,L){if(T.hidden){Rv.select(this).selectAll("path,g").remove();return}T.pointNumber=T.i,T.curveNumber=l.index,c[T.pxmid[1]<0?0:1][T.pxmid[0]<0?0:1].push(T);var _=u.cx,C=u.cy,S=Rv.select(this),m=S.selectAll("path.surface").data([T]);if(m.enter().append("path").classed("surface",!0).style({"pointer-events":r?"none":"all"}),S.call(yke,e,o),l.pull){var P=+Yu.castOption(l.pull,T.pts)||0;P>0&&(_+=P*T.pxmid[0],C+=P*T.pxmid[1])}T.cxFinal=_,T.cyFinal=C;function A(N,W,re,ae){var be=ae*(W[0]-N[0]),Ce=ae*(W[1]-N[1]);return"a"+ae*u.r+","+ae*u.r+" 0 "+T.largeArc+(re?" 1 ":" 0 ")+be+","+Ce}var B=l.hole;if(T.v===u.vTotal){var F="M"+(_+T.px0[0])+","+(C+T.px0[1])+A(T.px0,T.pxmid,!0,1)+A(T.pxmid,T.px0,!0,1)+"Z";B?m.attr("d","M"+(_+B*T.px0[0])+","+(C+B*T.px0[1])+A(T.px0,T.pxmid,!1,B)+A(T.pxmid,T.px0,!1,B)+"Z"+F):m.attr("d",F)}else{var U=A(T.px0,T.px1,!0,1);if(B){var G=1-B;m.attr("d","M"+(_+B*T.px1[0])+","+(C+B*T.px1[1])+A(T.px1,T.px0,!1,B)+"l"+G*T.px0[0]+","+G*T.px0[1]+U+"Z")}else m.attr("d","M"+_+","+C+"l"+T.px0[0]+","+T.px0[1]+U+"Z")}Eke(e,T,u);var j=Yu.castOption(l.textposition,T.pts),H=S.selectAll("g.slicetext").data(T.text&&j!=="none"?[0]:[]);H.enter().append("g").classed("slicetext",!0),H.exit().remove(),H.each(function(){var N=np.ensureSingle(Rv.select(this),"text","",function(te){te.attr("data-notex",1)}),W=np.ensureUniformFontSize(e,j==="outside"?eLt(l,T,n.font):gke(l,T,n.font));N.text(T.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(jg.font,W).call(wj.convertToTspans,e);var re=jg.bBox(N.node()),ae;if(j==="outside")ae=dke(re,T);else if(ae=xke(re,T,u),j==="auto"&&ae.scale<1){var be=np.ensureUniformFontSize(e,l.outsidetextfont);N.call(jg.font,be),re=jg.bBox(N.node()),ae=dke(re,T)}var Ce=ae.textPosAngle,Le=Ce===void 0?T.pxmid:p6(u.r,Ce);if(ae.targetX=_+Le[0]*ae.rCenter+(ae.x||0),ae.targetY=C+Le[1]*ae.rCenter+(ae.y||0),kke(ae,re),ae.outside){var pe=ae.targetY;T.yLabelMin=pe-re.height/2,T.yLabelMid=pe,T.yLabelMax=pe+re.height/2,T.labelExtraX=0,T.labelExtraY=0,h=!0}ae.fontSize=W.size,KCt(l.type,ae,n),o[L].transform=ae,np.setTransormAndDisplay(N,ae)})});var d=Rv.select(this).selectAll("g.titletext").data(l.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var T=np.ensureSingle(Rv.select(this),"text","",function(C){C.attr("data-notex",1)}),L=l.title.text;l._meta&&(L=np.templateString(L,l._meta)),T.text(L).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(jg.font,l.title.font).call(wj.convertToTspans,e);var _;l.title.position==="middle center"?_=iLt(u):_=Tke(u,i),T.attr("transform",uke(_.x,_.y)+YCt(Math.min(1,_.scale))+uke(_.tx,_.ty))}),h&&aLt(c,l),QCt(f,l),h&&l.automargin){var p=jg.bBox(s.node()),x=l.domain,b=i.w*(x.x[1]-x.x[0]),v=i.h*(x.y[1]-x.y[0]),k=(.5*b-u.r)/i.w,E=(.5*v-u.r)/i.h;ZCt.autoMargin(e,"pie."+l.uid+".automargin",{xl:x.x[0]-k,xr:x.x[1]+k,yb:x.y[0]-E,yt:x.y[1]+E,l:Math.max(u.cx-u.r-p.left,0),r:Math.max(p.right-(u.cx+u.r),0),b:Math.max(p.bottom-(u.cy+u.r),0),t:Math.max(u.cy-u.r-p.top,0),pad:5})}})});setTimeout(function(){a.selectAll("tspan").each(function(){var o=Rv.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function QCt(e,t){e.each(function(r){var n=Rv.select(this);if(!r.labelExtraX&&!r.labelExtraY){n.select("path.textline").remove();return}var i=n.select("g.slicetext text");r.transform.targetX+=r.labelExtraX,r.transform.targetY+=r.labelExtraY,np.setTransormAndDisplay(i,r.transform);var a=r.cxFinal+r.pxmid[0],o=r.cyFinal+r.pxmid[1],s="M"+a+","+o,u=(r.yLabelMax-r.yLabelMin)*(r.pxmid[0]<0?-1:1)/4;if(r.labelExtraX){var l=r.labelExtraX*r.pxmid[1]/r.pxmid[0],f=r.yLabelMid+r.labelExtraY-(r.cyFinal+r.pxmid[1]);Math.abs(l)>Math.abs(f)?s+="l"+f*r.pxmid[0]/r.pxmid[1]+","+f+"H"+(a+r.labelExtraX+u):s+="l"+r.labelExtraX+","+l+"v"+(f-l)+"h"+u}else s+="V"+(r.yLabelMid+r.labelExtraY)+"h"+u;np.ensureSingle(n,"path","textline").call(pke.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})})}function yke(e,t,r){var n=r[0],i=n.cx,a=n.cy,o=n.trace,s=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(u){var l=t._fullLayout,f=t._fullData[o.index];if(!(t._dragging||l.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=h6.castHoverinfo({hoverinfo:[Yu.castOption(c,u.pts)],_module:o._module},l,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var h=u.rInscribed||0,d=i+u.pxmid[0]*(1-h),p=a+u.pxmid[1]*(1-h),x=l.separators,b=[];if(c&&c.indexOf("label")!==-1&&b.push(u.label),u.text=Yu.castOption(f.hovertext||f.text,u.pts),c&&c.indexOf("text")!==-1){var v=u.text;np.isValidTextValue(v)&&b.push(v)}u.value=u.v,u.valueLabel=Yu.formatPieValue(u.v,x),c&&c.indexOf("value")!==-1&&b.push(u.valueLabel),u.percent=u.v/n.vTotal,u.percentLabel=Yu.formatPiePercent(u.percent,x),c&&c.indexOf("percent")!==-1&&b.push(u.percentLabel);var k=f.hoverlabel,E=k.font,T=[];h6.loneHover({trace:o,x0:d-h*n.r,x1:d+h*n.r,y:p,_x0:s?i+u.TL[0]:d-h*n.r,_x1:s?i+u.TR[0]:d+h*n.r,_y0:s?a+u.TL[1]:p-h*n.r,_y1:s?a+u.BL[1]:p+h*n.r,text:b.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:u.pxmid[0]<0?"left":"right",color:Yu.castOption(k.bgcolor,u.pts)||u.color,borderColor:Yu.castOption(k.bordercolor,u.pts),fontFamily:Yu.castOption(E.family,u.pts),fontSize:Yu.castOption(E.size,u.pts),fontColor:Yu.castOption(E.color,u.pts),nameLength:Yu.castOption(k.namelength,u.pts),textAlign:Yu.castOption(k.align,u.pts),hovertemplate:Yu.castOption(f.hovertemplate,u.pts),hovertemplateLabels:u,eventData:[d6(u,f)]},{container:l._hoverlayer.node(),outerContainer:l._paper.node(),gd:t,inOut_bbox:T}),u.bbox=T[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[d6(u,f)],event:Rv.event})}}),e.on("mouseout",function(u){var l=t._fullLayout,f=t._fullData[o.index],c=Rv.select(this).datum();o._hasHoverEvent&&(u.originalEvent=Rv.event,t.emit("plotly_unhover",{points:[d6(c,f)],event:Rv.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(h6.loneUnhover(l._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(u){var l=t._fullLayout,f=t._fullData[o.index];t._dragging||l.hovermode===!1||(t._hoverdata=[d6(u,f)],h6.click(t,Rv.event))})}function eLt(e,t,r){var n=Yu.castOption(e.outsidetextfont.color,t.pts)||Yu.castOption(e.textfont.color,t.pts)||r.color,i=Yu.castOption(e.outsidetextfont.family,t.pts)||Yu.castOption(e.textfont.family,t.pts)||r.family,a=Yu.castOption(e.outsidetextfont.size,t.pts)||Yu.castOption(e.textfont.size,t.pts)||r.size,o=Yu.castOption(e.outsidetextfont.weight,t.pts)||Yu.castOption(e.textfont.weight,t.pts)||r.weight,s=Yu.castOption(e.outsidetextfont.style,t.pts)||Yu.castOption(e.textfont.style,t.pts)||r.style,u=Yu.castOption(e.outsidetextfont.variant,t.pts)||Yu.castOption(e.textfont.variant,t.pts)||r.variant,l=Yu.castOption(e.outsidetextfont.textcase,t.pts)||Yu.castOption(e.textfont.textcase,t.pts)||r.textcase,f=Yu.castOption(e.outsidetextfont.lineposition,t.pts)||Yu.castOption(e.textfont.lineposition,t.pts)||r.lineposition,c=Yu.castOption(e.outsidetextfont.shadow,t.pts)||Yu.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n,family:i,size:a,weight:o,style:s,variant:u,textcase:l,lineposition:f,shadow:c}}function gke(e,t,r){var n=Yu.castOption(e.insidetextfont.color,t.pts);!n&&e._input.textfont&&(n=Yu.castOption(e._input.textfont.color,t.pts));var i=Yu.castOption(e.insidetextfont.family,t.pts)||Yu.castOption(e.textfont.family,t.pts)||r.family,a=Yu.castOption(e.insidetextfont.size,t.pts)||Yu.castOption(e.textfont.size,t.pts)||r.size,o=Yu.castOption(e.insidetextfont.weight,t.pts)||Yu.castOption(e.textfont.weight,t.pts)||r.weight,s=Yu.castOption(e.insidetextfont.style,t.pts)||Yu.castOption(e.textfont.style,t.pts)||r.style,u=Yu.castOption(e.insidetextfont.variant,t.pts)||Yu.castOption(e.textfont.variant,t.pts)||r.variant,l=Yu.castOption(e.insidetextfont.textcase,t.pts)||Yu.castOption(e.textfont.textcase,t.pts)||r.textcase,f=Yu.castOption(e.insidetextfont.lineposition,t.pts)||Yu.castOption(e.textfont.lineposition,t.pts)||r.lineposition,c=Yu.castOption(e.insidetextfont.shadow,t.pts)||Yu.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n||pke.contrast(t.color),family:i,size:a,weight:o,style:s,variant:u,textcase:l,lineposition:f,shadow:c}}function _ke(e,t){for(var r,n,i=0;i=-4;k-=2)v(Math.PI*k,"tan");for(k=4;k>=-4;k-=2)v(Math.PI*(k+1),"tan")}if(c||d){for(k=4;k>=-4;k-=2)v(Math.PI*(k+1.5),"rad");for(k=4;k>=-4;k-=2)v(Math.PI*(k+.5),"rad")}}if(s||p||c){var E=Math.sqrt(e.width*e.width+e.height*e.height);if(b={scale:i*n*2/E,rCenter:1-i,rotate:0},b.textPosAngle=(t.startangle+t.stopangle)/2,b.scale>=1)return b;x.push(b)}(p||d)&&(b=cke(e,n,o,u,l),b.textPosAngle=(t.startangle+t.stopangle)/2,x.push(b)),(p||h)&&(b=hke(e,n,o,u,l),b.textPosAngle=(t.startangle+t.stopangle)/2,x.push(b));for(var T=0,L=0,_=0;_=1)break}return x[T]}function tLt(e,t){var r=e.startangle,n=e.stopangle;return r>t&&t>n||r0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function iLt(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function Tke(e,t){var r=1,n=1,i,a=e.trace,o={x:e.cx,y:e.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=Ske(a),a.title.position.indexOf("top")!==-1?(o.y-=(1+i)*e.r,s.ty-=e.titleBox.height):a.title.position.indexOf("bottom")!==-1&&(o.y+=(1+i)*e.r);var u=nLt(e.r,e.trace.aspectratio),l=t.w*(a.domain.x[1]-a.domain.x[0])/2;return a.title.position.indexOf("left")!==-1?(l=l+u,o.x-=(1+i)*u,s.tx+=e.titleBox.width/2):a.title.position.indexOf("center")!==-1?l*=2:a.title.position.indexOf("right")!==-1&&(l=l+u,o.x+=(1+i)*u,s.tx-=e.titleBox.width/2),r=l/e.titleBox.width,n=Aj(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function nLt(e,t){return e/(t===void 0?1:t)}function Aj(e,t){var r=e.trace,n=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,n/2)}function Ske(e){var t=e.pull;if(!t)return 0;var r;if(np.isArrayOrTypedArray(t))for(t=0,r=0;rt&&(t=e.pull[r]);return t}function aLt(e,t){var r,n,i,a,o,s,u,l,f,c,h,d,p;function x(E,T){return E.pxmid[1]-T.pxmid[1]}function b(E,T){return T.pxmid[1]-E.pxmid[1]}function v(E,T){T||(T={});var L=T.labelExtraY+(n?T.yLabelMax:T.yLabelMin),_=n?E.yLabelMin:E.yLabelMax,C=n?E.yLabelMax:E.yLabelMin,S=E.cyFinal+o(E.px0[1],E.px1[1]),m=L-_,P,A,B,F,U,G;if(m*u>0&&(E.labelExtraY=m),!!np.isArrayOrTypedArray(t.pull))for(A=0;A=(Yu.castOption(t.pull,B.pts)||0))&&((E.pxmid[1]-B.pxmid[1])*u>0?(F=B.cyFinal+o(B.px0[1],B.px1[1]),m=F-_-E.labelExtraY,m*u>0&&(E.labelExtraY+=m)):(C+E.labelExtraY-S)*u>0&&(P=3*s*Math.abs(A-c.indexOf(E)),U=B.cxFinal+a(B.px0[0],B.px1[0]),G=U+P-(E.cxFinal+E.pxmid[0])-E.labelExtraX,G*s>0&&(E.labelExtraX+=G)))}for(n=0;n<2;n++)for(i=n?x:b,o=n?Math.max:Math.min,u=n?1:-1,r=0;r<2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,l=e[n][r],l.sort(i),f=e[1-n][r],c=f.concat(l),d=[],h=0;h1?(l=r.r,f=l/i.aspectratio):(f=r.r,l=f*i.aspectratio),l*=(1+i.baseratio)/2,u=l*f}o=Math.min(o,u/r.vTotal)}for(n=0;nt.vTotal/2?1:0,l.halfangle=Math.PI*Math.min(l.v/t.vTotal,.5),l.ring=1-n.hole,l.rInscribed=rLt(l,t))}function p6(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function Eke(e,t,r){var n=e._fullLayout,i=r.trace,a=i.texttemplate,o=i.textinfo;if(!a&&o&&o!=="none"){var s=o.split("+"),u=function(T){return s.indexOf(T)!==-1},l=u("label"),f=u("text"),c=u("value"),h=u("percent"),d=n.separators,p;if(p=l?[t.label]:[],f){var x=Yu.getFirstFilled(i.text,t.pts);fke(x)&&p.push(x)}c&&p.push(Yu.formatPieValue(t.v,d)),h&&p.push(Yu.formatPiePercent(t.v/r.vTotal,d)),t.text=p.join("
")}function b(T){return{label:T.label,value:T.v,valueLabel:Yu.formatPieValue(T.v,n.separators),percent:T.v/r.vTotal,percentLabel:Yu.formatPiePercent(T.v/r.vTotal,n.separators),color:T.color,text:T.text,customdata:np.castOption(i,T.i,"customdata")}}if(a){var v=np.castOption(i,t.i,"texttemplate");if(!v)t.text="";else{var k=b(t),E=Yu.getFirstFilled(i.text,t.pts);(fke(E)||E==="")&&(k.text=E),t.text=np.texttemplateString(v,k,e._fullLayout._d3locale,k,i._meta||{})}}}function kke(e,t){var r=e.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=a*n-o*i,e.textY=a*i+o*n,e.noCenter=!0}Cke.exports={plot:$Ct,formatSliceLabel:Eke,transformInsideText:xke,determineInsideTextFont:gke,positionTitleOutside:Tke,prerenderTitles:_ke,layoutAreas:Mke,attachFxHandlers:yke,computeTransform:kke}});var zke=Te((mpr,Pke)=>{"use strict";var Lke=Jl(),lLt=D3(),uLt=bp().resizeText;Pke.exports=function(t){var r=t._fullLayout._pielayer.selectAll(".trace");uLt(t,r,"pie"),r.each(function(n){var i=n[0],a=i.trace,o=Lke.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){Lke.select(this).call(lLt,s,a,t)})})}});var Rke=Te(xT=>{"use strict";var Ike=Cc();xT.name="pie";xT.plot=function(e,t,r,n){Ike.plotBasePlot(xT.name,e,t,r,n)};xT.clean=function(e,t,r,n){Ike.cleanBasePlot(xT.name,e,t,r,n)}});var Fke=Te((gpr,Dke)=>{"use strict";Dke.exports={attributes:T2(),supplyDefaults:S2().supplyDefaults,supplyLayoutDefaults:ike(),layoutAttributes:c6(),calc:_T().calc,crossTraceCalc:_T().crossTraceCalc,plot:v6().plot,style:zke(),styleOne:D3(),moduleType:"trace",name:"pie",basePlotModule:Rke(),categories:["pie-like","pie","showLegend"],meta:{}}});var Oke=Te((_pr,Bke)=>{"use strict";Bke.exports=Fke()});var Nke=Te(bT=>{"use strict";var qke=Cc();bT.name="sunburst";bT.plot=function(e,t,r,n){qke.plotBasePlot(bT.name,e,t,r,n)};bT.clean=function(e,t,r,n){qke.cleanBasePlot(bT.name,e,t,r,n)}});var Tj=Te((bpr,Uke)=>{"use strict";Uke.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}});var C4=Te((wpr,Gke)=>{"use strict";var fLt=Vf(),cLt=Nu().hovertemplateAttrs,hLt=Nu().texttemplateAttrs,dLt=nc(),pLt=zc().attributes,Xg=T2(),Vke=Tj(),k4=Su().extendFlat,vLt=Id().pattern;Gke.exports={labels:{valType:"data_array",editType:"calc"},parents:{valType:"data_array",editType:"calc"},values:{valType:"data_array",editType:"calc"},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc"},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc"},level:{valType:"any",editType:"plot",anim:!0},maxdepth:{valType:"integer",editType:"plot",dflt:-1},marker:k4({colors:{valType:"data_array",editType:"calc"},line:{color:k4({},Xg.marker.line.color,{dflt:null}),width:k4({},Xg.marker.line.width,{dflt:1}),editType:"calc"},pattern:vLt,editType:"calc"},dLt("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1},editType:"plot"},text:Xg.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot"},texttemplate:hLt({editType:"plot"},{keys:Vke.eventDataKeys.concat(["label","value"])}),hovertext:Xg.hovertext,hoverinfo:k4({},fLt.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:cLt({},{keys:Vke.eventDataKeys}),textfont:Xg.textfont,insidetextorientation:Xg.insidetextorientation,insidetextfont:Xg.insidetextfont,outsidetextfont:k4({},Xg.outsidetextfont,{}),rotation:{valType:"angle",dflt:0,editType:"plot"},sort:Xg.sort,root:{color:{valType:"color",editType:"calc",dflt:"rgba(0,0,0,0)"},editType:"calc"},domain:pLt({name:"sunburst",trace:!0,editType:"calc"})}});var Sj=Te((Apr,Hke)=>{"use strict";Hke.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var Zke=Te((Tpr,Xke)=>{"use strict";var Wke=ei(),mLt=C4(),yLt=zc().defaults,gLt=r0().handleText,_Lt=S2().handleMarkerDefaults,jke=_c(),xLt=jke.hasColorscale,bLt=jke.handleDefaults;Xke.exports=function(t,r,n,i){function a(h,d){return Wke.coerce(t,r,mLt,h,d)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var u=a("values");u&&u.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),_Lt(t,r,i,a);var l=r._hasColorscale=xLt(t,"marker","colors")||(t.marker||{}).coloraxis;l&&bLt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",l?1:.7);var f=a("text");a("texttemplate"),r.texttemplate||a("textinfo",Wke.isArrayOrTypedArray(f)?"text+label":"label"),a("hovertext"),a("hovertemplate");var c="auto";gLt(t,r,i,a,c,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("insidetextorientation"),a("sort"),a("rotation"),a("root.color"),yLt(r,i,a),r._length=null}});var Kke=Te((Spr,Yke)=>{"use strict";var wLt=ei(),ALt=Sj();Yke.exports=function(t,r){function n(i,a){return wLt.coerce(t,r,ALt,i,a)}n("sunburstcolorway",r.colorway),n("extendsunburstcolors")}});var L4=Te((m6,Jke)=>{(function(e,t){typeof m6=="object"&&typeof Jke!="undefined"?t(m6):(e=e||self,t(e.d3=e.d3||{}))})(m6,function(e){"use strict";function t(Re,De){return Re.parent===De.parent?1:2}function r(Re){return Re.reduce(n,0)/Re.length}function n(Re,De){return Re+De.x}function i(Re){return 1+Re.reduce(a,0)}function a(Re,De){return Math.max(Re,De.y)}function o(Re){for(var De;De=Re.children;)Re=De[0];return Re}function s(Re){for(var De;De=Re.children;)Re=De[De.length-1];return Re}function u(){var Re=t,De=1,ct=1,ge=!1;function fe(de){var dt,It=0;de.eachAfter(function(Mr){var Fr=Mr.children;Fr?(Mr.x=r(Fr),Mr.y=i(Fr)):(Mr.x=dt?It+=Re(Mr,dt):0,Mr.y=0,dt=Mr)});var Pt=o(de),rr=s(de),Hr=Pt.x-Re(Pt,rr)/2,Dr=rr.x+Re(rr,Pt)/2;return de.eachAfter(ge?function(Mr){Mr.x=(Mr.x-de.x)*De,Mr.y=(de.y-Mr.y)*ct}:function(Mr){Mr.x=(Mr.x-Hr)/(Dr-Hr)*De,Mr.y=(1-(de.y?Mr.y/de.y:1))*ct})}return fe.separation=function(de){return arguments.length?(Re=de,fe):Re},fe.size=function(de){return arguments.length?(ge=!1,De=+de[0],ct=+de[1],fe):ge?null:[De,ct]},fe.nodeSize=function(de){return arguments.length?(ge=!0,De=+de[0],ct=+de[1],fe):ge?[De,ct]:null},fe}function l(Re){var De=0,ct=Re.children,ge=ct&&ct.length;if(!ge)De=1;else for(;--ge>=0;)De+=ct[ge].value;Re.value=De}function f(){return this.eachAfter(l)}function c(Re){var De=this,ct,ge=[De],fe,de,dt;do for(ct=ge.reverse(),ge=[];De=ct.pop();)if(Re(De),fe=De.children,fe)for(de=0,dt=fe.length;de=0;--fe)ct.push(ge[fe]);return this}function d(Re){for(var De=this,ct=[De],ge=[],fe,de,dt;De=ct.pop();)if(ge.push(De),fe=De.children,fe)for(de=0,dt=fe.length;de=0;)ct+=ge[fe].value;De.value=ct})}function x(Re){return this.eachBefore(function(De){De.children&&De.children.sort(Re)})}function b(Re){for(var De=this,ct=v(De,Re),ge=[De];De!==ct;)De=De.parent,ge.push(De);for(var fe=ge.length;Re!==ct;)ge.splice(fe,0,Re),Re=Re.parent;return ge}function v(Re,De){if(Re===De)return Re;var ct=Re.ancestors(),ge=De.ancestors(),fe=null;for(Re=ct.pop(),De=ge.pop();Re===De;)fe=Re,Re=ct.pop(),De=ge.pop();return fe}function k(){for(var Re=this,De=[Re];Re=Re.parent;)De.push(Re);return De}function E(){var Re=[];return this.each(function(De){Re.push(De)}),Re}function T(){var Re=[];return this.eachBefore(function(De){De.children||Re.push(De)}),Re}function L(){var Re=this,De=[];return Re.each(function(ct){ct!==Re&&De.push({source:ct.parent,target:ct})}),De}function _(Re,De){var ct=new A(Re),ge=+Re.value&&(ct.value=Re.value),fe,de=[ct],dt,It,Pt,rr;for(De==null&&(De=S);fe=de.pop();)if(ge&&(fe.value=+fe.data.value),(It=De(fe.data))&&(rr=It.length))for(fe.children=new Array(rr),Pt=rr-1;Pt>=0;--Pt)de.push(dt=fe.children[Pt]=new A(It[Pt])),dt.parent=fe,dt.depth=fe.depth+1;return ct.eachBefore(P)}function C(){return _(this).eachBefore(m)}function S(Re){return Re.children}function m(Re){Re.data=Re.data.data}function P(Re){var De=0;do Re.height=De;while((Re=Re.parent)&&Re.height<++De)}function A(Re){this.data=Re,this.depth=this.height=0,this.parent=null}A.prototype=_.prototype={constructor:A,count:f,each:c,eachAfter:d,eachBefore:h,sum:p,sort:x,path:b,ancestors:k,descendants:E,leaves:T,links:L,copy:C};var B=Array.prototype.slice;function F(Re){for(var De=Re.length,ct,ge;De;)ge=Math.random()*De--|0,ct=Re[De],Re[De]=Re[ge],Re[ge]=ct;return Re}function U(Re){for(var De=0,ct=(Re=F(B.call(Re))).length,ge=[],fe,de;De0&&ct*ct>ge*ge+fe*fe}function N(Re,De){for(var ct=0;ctPt?(fe=(rr+Pt-de)/(2*rr),It=Math.sqrt(Math.max(0,Pt/rr-fe*fe)),ct.x=Re.x-fe*ge-It*dt,ct.y=Re.y-fe*dt+It*ge):(fe=(rr+de-Pt)/(2*rr),It=Math.sqrt(Math.max(0,de/rr-fe*fe)),ct.x=De.x+fe*ge-It*dt,ct.y=De.y+fe*dt+It*ge)):(ct.x=De.x+ct.r,ct.y=De.y)}function Le(Re,De){var ct=Re.r+De.r-1e-6,ge=De.x-Re.x,fe=De.y-Re.y;return ct>0&&ct*ct>ge*ge+fe*fe}function pe(Re){var De=Re._,ct=Re.next._,ge=De.r+ct.r,fe=(De.x*ct.r+ct.x*De.r)/ge,de=(De.y*ct.r+ct.y*De.r)/ge;return fe*fe+de*de}function te(Re){this._=Re,this.next=null,this.previous=null}function ke(Re){if(!(fe=Re.length))return 0;var De,ct,ge,fe,de,dt,It,Pt,rr,Hr,Dr;if(De=Re[0],De.x=0,De.y=0,!(fe>1))return De.r;if(ct=Re[1],De.x=-ct.r,ct.x=De.r,ct.y=0,!(fe>2))return De.r+ct.r;Ce(ct,De,ge=Re[2]),De=new te(De),ct=new te(ct),ge=new te(ge),De.next=ge.previous=ct,ct.next=De.previous=ge,ge.next=ct.previous=De;e:for(It=3;It0)throw new Error("cycle");return It}return ct.id=function(ge){return arguments.length?(Re=Ne(ge),ct):Re},ct.parentId=function(ge){return arguments.length?(De=Ne(ge),ct):De},ct}function Ae(Re,De){return Re.parent===De.parent?1:2}function at(Re){var De=Re.children;return De?De[0]:Re.t}function wt(Re){var De=Re.children;return De?De[De.length-1]:Re.t}function vt(Re,De,ct){var ge=ct/(De.i-Re.i);De.c-=ge,De.s+=ct,Re.c+=ge,De.z+=ct,De.m+=ct}function st(Re){for(var De=0,ct=0,ge=Re.children,fe=ge.length,de;--fe>=0;)de=ge[fe],de.z+=De,de.m+=De,De+=de.s+(ct+=de.c)}function Ue(Re,De,ct){return Re.a.parent===De.parent?Re.a:ct}function rt(Re,De){this._=Re,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=De}rt.prototype=Object.create(A.prototype);function $e(Re){for(var De=new rt(Re,0),ct,ge=[De],fe,de,dt,It;ct=ge.pop();)if(de=ct._.children)for(ct.children=new Array(It=de.length),dt=It-1;dt>=0;--dt)ge.push(fe=ct.children[dt]=new rt(de[dt],dt)),fe.parent=ct;return(De.parent=new rt(null,0)).children=[De],De}function zt(){var Re=Ae,De=1,ct=1,ge=null;function fe(rr){var Hr=$e(rr);if(Hr.eachAfter(de),Hr.parent.m=-Hr.z,Hr.eachBefore(dt),ge)rr.eachBefore(Pt);else{var Dr=rr,Mr=rr,Fr=rr;rr.eachBefore(function(nn){nn.xMr.x&&(Mr=nn),nn.depth>Fr.depth&&(Fr=nn)});var di=Dr===Mr?1:Re(Dr,Mr)/2,Di=di-Dr.x,Ii=De/(Mr.x+di+Di),Ci=ct/(Fr.depth||1);rr.eachBefore(function(nn){nn.x=(nn.x+Di)*Ii,nn.y=nn.depth*Ci})}return rr}function de(rr){var Hr=rr.children,Dr=rr.parent.children,Mr=rr.i?Dr[rr.i-1]:null;if(Hr){st(rr);var Fr=(Hr[0].z+Hr[Hr.length-1].z)/2;Mr?(rr.z=Mr.z+Re(rr._,Mr._),rr.m=rr.z-Fr):rr.z=Fr}else Mr&&(rr.z=Mr.z+Re(rr._,Mr._));rr.parent.A=It(rr,Mr,rr.parent.A||Dr[0])}function dt(rr){rr._.x=rr.z+rr.parent.m,rr.m+=rr.parent.m}function It(rr,Hr,Dr){if(Hr){for(var Mr=rr,Fr=rr,di=Hr,Di=Mr.parent.children[0],Ii=Mr.m,Ci=Fr.m,nn=di.m,ii=Di.m,wi;di=wt(di),Mr=at(Mr),di&&Mr;)Di=at(Di),Fr=wt(Fr),Fr.a=rr,wi=di.z+nn-Mr.z-Ii+Re(di._,Mr._),wi>0&&(vt(Ue(di,rr,Dr),rr,wi),Ii+=wi,Ci+=wi),nn+=di.m,Ii+=Mr.m,ii+=Di.m,Ci+=Fr.m;di&&!wt(Fr)&&(Fr.t=di,Fr.m+=nn-Ci),Mr&&!at(Di)&&(Di.t=Mr,Di.m+=Ii-ii,Dr=rr)}return Dr}function Pt(rr){rr.x*=De,rr.y=rr.depth*ct}return fe.separation=function(rr){return arguments.length?(Re=rr,fe):Re},fe.size=function(rr){return arguments.length?(ge=!1,De=+rr[0],ct=+rr[1],fe):ge?null:[De,ct]},fe.nodeSize=function(rr){return arguments.length?(ge=!0,De=+rr[0],ct=+rr[1],fe):ge?[De,ct]:null},fe}function Yt(Re,De,ct,ge,fe){for(var de=Re.children,dt,It=-1,Pt=de.length,rr=Re.value&&(fe-ct)/Re.value;++Itnn&&(nn=rr),Bt=Ii*Ii*Gi,ii=Math.max(nn/Bt,Bt/Ci),ii>wi){Ii-=rr;break}wi=ii}dt.push(Pt={value:Ii,dice:Fr1?ge:1)},ct}(hr);function Ut(){var Re=br,De=!1,ct=1,ge=1,fe=[0],de=Fe,dt=Fe,It=Fe,Pt=Fe,rr=Fe;function Hr(Mr){return Mr.x0=Mr.y0=0,Mr.x1=ct,Mr.y1=ge,Mr.eachBefore(Dr),fe=[0],De&&Mr.eachBefore(Nt),Mr}function Dr(Mr){var Fr=fe[Mr.depth],di=Mr.x0+Fr,Di=Mr.y0+Fr,Ii=Mr.x1-Fr,Ci=Mr.y1-Fr;Ii=Mr-1){var nn=de[Dr];nn.x0=di,nn.y0=Di,nn.x1=Ii,nn.y1=Ci;return}for(var ii=rr[Dr],wi=Fr/2+ii,Gi=Dr+1,Bt=Mr-1;Gi>>1;rr[yt]Ci-Di){var _r=(di*Wt+Ii*Vt)/Fr;Hr(Dr,Gi,Vt,di,Di,_r,Ci),Hr(Gi,Mr,Wt,_r,Di,Ii,Ci)}else{var Lr=(Di*Wt+Ci*Vt)/Fr;Hr(Dr,Gi,Vt,di,Di,Ii,Lr),Hr(Gi,Mr,Wt,di,Lr,Ii,Ci)}}}function xe(Re,De,ct,ge,fe){(Re.depth&1?Yt:it)(Re,De,ct,ge,fe)}var Oe=function Re(De){function ct(ge,fe,de,dt,It){if((Pt=ge._squarify)&&Pt.ratio===De)for(var Pt,rr,Hr,Dr,Mr=-1,Fr,di=Pt.length,Di=ge.value;++Mr1?ge:1)},ct}(hr);e.cluster=u,e.hierarchy=_,e.pack=ce,e.packEnclose=U,e.packSiblings=Ee,e.partition=Ye,e.stratify=Et,e.tree=zt,e.treemap=Ut,e.treemapBinary=Ie,e.treemapDice=it,e.treemapResquarify=Oe,e.treemapSlice=Yt,e.treemapSliceDice=xe,e.treemapSquarify=br,Object.defineProperty(e,"__esModule",{value:!0})})});var z4=Te(P4=>{"use strict";var $ke=L4(),TLt=ku(),wT=ei(),SLt=_c().makeColorScaleFuncFromTrace,MLt=_T().makePullColorFn,ELt=_T().generateExtendedColors,kLt=_c().calc,CLt=nf().ALMOST_EQUAL,LLt={},PLt={},zLt={};P4.calc=function(e,t){var r=e._fullLayout,n=t.ids,i=wT.isArrayOrTypedArray(n),a=t.labels,o=t.parents,s=t.values,u=wT.isArrayOrTypedArray(s),l=[],f={},c={},h=function(H,N){f[H]?f[H].push(N):f[H]=[N],c[N]=1},d=function(H){return H||typeof H=="number"},p=function(H){return!u||TLt(s[H])&&s[H]>=0},x,b,v;i?(x=Math.min(n.length,o.length),b=function(H){return d(n[H])&&p(H)},v=function(H){return String(n[H])}):(x=Math.min(a.length,o.length),b=function(H){return d(a[H])&&p(H)},v=function(H){return String(a[H])}),u&&(x=Math.min(x,s.length));for(var k=0;k1){for(var S=wT.randstr(),m=0;m{});function Vy(){}function eCe(){return this.rgb().formatHex()}function DLt(){return this.rgb().formatHex8()}function FLt(){return sCe(this).formatHsl()}function tCe(){return this.rgb().formatRgb()}function j_(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=kLt.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?rCe(t):r===3?new xd(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?g6(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?g6(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=CLt.exec(e))?new xd(t[1],t[2],t[3],1):(t=LLt.exec(e))?new xd(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=PLt.exec(e))?g6(t[1],t[2],t[3],t[4]):(t=zLt.exec(e))?g6(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ILt.exec(e))?aCe(t[1],t[2]/100,t[3]/100,1):(t=RLt.exec(e))?aCe(t[1],t[2]/100,t[3]/100,t[4]):Qke.hasOwnProperty(e)?rCe(Qke[e]):e==="transparent"?new xd(NaN,NaN,NaN,0):null}function rCe(e){return new xd(e>>16&255,e>>8&255,e&255,1)}function g6(e,t,r,n){return n<=0&&(e=t=r=NaN),new xd(e,t,r,n)}function P4(e){return e instanceof Vy||(e=j_(e)),e?(e=e.rgb(),new xd(e.r,e.g,e.b,e.opacity)):new xd}function TT(e,t,r,n){return arguments.length===1?P4(e):new xd(e,t,r,n==null?1:n)}function xd(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function iCe(){return`#${M2(this.r)}${M2(this.g)}${M2(this.b)}`}function BLt(){return`#${M2(this.r)}${M2(this.g)}${M2(this.b)}${M2((isNaN(this.opacity)?1:this.opacity)*255)}`}function nCe(){let e=x6(this.opacity);return`${e===1?"rgb(":"rgba("}${E2(this.r)}, ${E2(this.g)}, ${E2(this.b)}${e===1?")":`, ${e})`}`}function x6(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function E2(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function M2(e){return e=E2(e),(e<16?"0":"")+e.toString(16)}function aCe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Xm(e,t,r,n)}function sCe(e){if(e instanceof Xm)return new Xm(e.h,e.s,e.l,e.opacity);if(e instanceof Vy||(e=j_(e)),!e)return new Xm;if(e instanceof Xm)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,u=(a+i)/2;return s?(t===a?o=(r-n)/s+(r0&&u<1?0:o,new Xm(o,s,u,e.opacity)}function z4(e,t,r,n){return arguments.length===1?sCe(e):new Xm(e,t,r,n==null?1:n)}function Xm(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function oCe(e){return e=(e||0)%360,e<0?e+360:e}function _6(e){return Math.max(0,Math.min(1,e||0))}function Sj(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var W_,k2,AT,L4,Uy,kLt,CLt,LLt,PLt,zLt,ILt,RLt,Qke,b6=Xf(()=>{y6();W_=.7,k2=1/W_,AT="\\s*([+-]?\\d+)\\s*",L4="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Uy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kLt=/^#([0-9a-f]{3,8})$/,CLt=new RegExp(`^rgb\\(${AT},${AT},${AT}\\)$`),LLt=new RegExp(`^rgb\\(${Uy},${Uy},${Uy}\\)$`),PLt=new RegExp(`^rgba\\(${AT},${AT},${AT},${L4}\\)$`),zLt=new RegExp(`^rgba\\(${Uy},${Uy},${Uy},${L4}\\)$`),ILt=new RegExp(`^hsl\\(${L4},${Uy},${Uy}\\)$`),RLt=new RegExp(`^hsla\\(${L4},${Uy},${Uy},${L4}\\)$`),Qke={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Zg(Vy,j_,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:eCe,formatHex:eCe,formatHex8:DLt,formatHsl:FLt,formatRgb:tCe,toString:tCe});Zg(xd,TT,H_(Vy,{brighter(e){return e=e==null?k2:Math.pow(k2,e),new xd(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?W_:Math.pow(W_,e),new xd(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new xd(E2(this.r),E2(this.g),E2(this.b),x6(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:iCe,formatHex:iCe,formatHex8:BLt,formatRgb:nCe,toString:nCe}));Zg(Xm,z4,H_(Vy,{brighter(e){return e=e==null?k2:Math.pow(k2,e),new Xm(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?W_:Math.pow(W_,e),new Xm(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new xd(Sj(e>=240?e-240:e+120,i,n),Sj(e,i,n),Sj(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Xm(oCe(this.h),_6(this.s),_6(this.l),x6(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=x6(this.opacity);return`${e===1?"hsl(":"hsla("}${oCe(this.h)}, ${_6(this.s)*100}%, ${_6(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var w6,A6,Mj=Xf(()=>{w6=Math.PI/180,A6=180/Math.PI});function dCe(e){if(e instanceof Gy)return new Gy(e.l,e.a,e.b,e.opacity);if(e instanceof Yg)return pCe(e);e instanceof xd||(e=P4(e));var t=Lj(e.r),r=Lj(e.g),n=Lj(e.b),i=Ej((.2225045*t+.7168786*r+.0606169*n)/uCe),a,o;return t===r&&r===n?a=o=i:(a=Ej((.4360747*t+.3850649*r+.1430804*n)/lCe),o=Ej((.0139322*t+.0971045*r+.7141733*n)/fCe)),new Gy(116*i-16,500*(a-i),200*(i-o),e.opacity)}function MT(e,t,r,n){return arguments.length===1?dCe(e):new Gy(e,t,r,n==null?1:n)}function Gy(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Ej(e){return e>OLt?Math.pow(e,1/3):e/hCe+cCe}function kj(e){return e>ST?e*e*e:hCe*(e-cCe)}function Cj(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Lj(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function qLt(e){if(e instanceof Yg)return new Yg(e.h,e.c,e.l,e.opacity);if(e instanceof Gy||(e=dCe(e)),e.a===0&&e.b===0)return new Yg(NaN,0{y6();b6();Mj();T6=18,lCe=.96422,uCe=1,fCe=.82521,cCe=4/29,ST=6/29,hCe=3*ST*ST,OLt=ST*ST*ST;Zg(Gy,MT,H_(Vy,{brighter(e){return new Gy(this.l+T6*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Gy(this.l-T6*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=lCe*kj(t),e=uCe*kj(e),r=fCe*kj(r),new xd(Cj(3.1338561*t-1.6168667*e-.4906146*r),Cj(-.9787684*t+1.9161415*e+.033454*r),Cj(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));Zg(Yg,I4,H_(Vy,{brighter(e){return new Yg(this.h,this.c,this.l+T6*(e==null?1:e),this.opacity)},darker(e){return new Yg(this.h,this.c,this.l-T6*(e==null?1:e),this.opacity)},rgb(){return pCe(this).rgb()}}))});function NLt(e){if(e instanceof C2)return new C2(e.h,e.s,e.l,e.opacity);e instanceof xd||(e=P4(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(gCe*n+mCe*t-yCe*r)/(gCe+mCe-yCe),a=n-i,o=(R4*(r-i)-zj*a)/S6,s=Math.sqrt(o*o+a*a)/(R4*i*(1-i)),u=s?Math.atan2(o,a)*A6-120:NaN;return new C2(u<0?u+360:u,s,i,e.opacity)}function ET(e,t,r,n){return arguments.length===1?NLt(e):new C2(e,t,r,n==null?1:n)}function C2(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}var _Ce,Pj,zj,S6,R4,mCe,yCe,gCe,xCe=Xf(()=>{y6();b6();Mj();_Ce=-.14861,Pj=1.78277,zj=-.29227,S6=-.90649,R4=1.97294,mCe=R4*S6,yCe=R4*Pj,gCe=Pj*zj-S6*_Ce;Zg(C2,ET,H_(Vy,{brighter(e){return e=e==null?k2:Math.pow(k2,e),new C2(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?W_:Math.pow(W_,e),new C2(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*w6,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new xd(255*(t+r*(_Ce*n+Pj*i)),255*(t+r*(zj*n+S6*i)),255*(t+r*(R4*n)),this.opacity)}}))});var L2=Xf(()=>{b6();vCe();xCe()});function Ij(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function M6(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,s=n{});function k6(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],s=e[(n+2)%t];return Ij((r-n/t)*t,i,a,o,s)}}var Rj=Xf(()=>{E6()});var kT,Dj=Xf(()=>{kT=e=>()=>e});function bCe(e,t){return function(r){return e+r*t}}function ULt(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function X_(e,t){var r=t-e;return r?bCe(e,r>180||r<-180?r-360*Math.round(r/360):r):kT(isNaN(e)?t:e)}function wCe(e){return(e=+e)==1?ph:function(t,r){return r-t?ULt(t,r,e):kT(isNaN(t)?r:t)}}function ph(e,t){var r=t-e;return r?bCe(e,r):kT(isNaN(e)?t:e)}var P2=Xf(()=>{Dj()});function ACe(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,s;for(o=0;o{L2();E6();Rj();P2();D4=function e(t){var r=wCe(t);function n(i,a){var o=r((i=TT(i)).r,(a=TT(a)).r),s=r(i.g,a.g),u=r(i.b,a.b),l=ph(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=s(f),i.b=u(f),i.opacity=l(f),i+""}}return n.gamma=e,n}(1);TCe=ACe(M6),SCe=ACe(k6)});function CT(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i{});function MCe(e,t){return(C6(t)?CT:Bj)(e,t)}function Bj(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o{F4();L6()});function P6(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}var qj=Xf(()=>{});function Dv(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var B4=Xf(()=>{});function z6(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Z_(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Nj=Xf(()=>{F4()});function VLt(e){return function(){return e}}function GLt(e){return function(t){return e(t)+""}}function I6(e,t){var r=Vj.lastIndex=Uj.lastIndex=0,n,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(n=Vj.exec(e))&&(i=Uj.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:Dv(n,i)})),r=Uj.lastIndex;return r{B4();Vj=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Uj=new RegExp(Vj.source,"g")});function Z_(e,t){var r=typeof t,n;return t==null||r==="boolean"?kT(t):(r==="number"?Dv:r==="string"?(n=j_(t))?(t=n,D4):I6:t instanceof j_?D4:t instanceof Date?P6:C6(t)?CT:Array.isArray(t)?Bj:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?z6:Dv)(e,t)}var F4=Xf(()=>{L2();Fj();Oj();qj();B4();Nj();Gj();Dj();L6()});function ECe(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var kCe=Xf(()=>{});function CCe(e,t){var r=X_(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}var LCe=Xf(()=>{P2()});function PCe(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var zCe=Xf(()=>{});function Hj(e,t,r,n,i,a){var o,s,u;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(u=e*r+t*n)&&(r-=e*u,n-=t*u),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,u/=s),e*n{ICe=180/Math.PI,R6={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function DCe(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?R6:Hj(t.a,t.b,t.c,t.d,t.e,t.f)}function FCe(e){return e==null?R6:(D6||(D6=document.createElementNS("http://www.w3.org/2000/svg","g")),D6.setAttribute("transform",e),(e=D6.transform.baseVal.consolidate())?(e=e.matrix,Hj(e.a,e.b,e.c,e.d,e.e,e.f)):R6)}var D6,BCe=Xf(()=>{RCe()});function OCe(e,t,r,n){function i(l){return l.length?l.pop()+" ":""}function a(l,f,c,h,d,p){if(l!==c||f!==h){var x=d.push("translate(",null,t,null,r);p.push({i:x-4,x:Dv(l,c)},{i:x-2,x:Dv(f,h)})}else(c||h)&&d.push("translate("+c+t+h+r)}function o(l,f,c,h){l!==f?(l-f>180?f+=360:f-l>180&&(l+=360),h.push({i:c.push(i(c)+"rotate(",null,n)-2,x:Dv(l,f)})):f&&c.push(i(c)+"rotate("+f+n)}function s(l,f,c,h){l!==f?h.push({i:c.push(i(c)+"skewX(",null,n)-2,x:Dv(l,f)}):f&&c.push(i(c)+"skewX("+f+n)}function u(l,f,c,h,d,p){if(l!==c||f!==h){var x=d.push(i(d)+"scale(",null,",",null,")");p.push({i:x-4,x:Dv(l,c)},{i:x-2,x:Dv(f,h)})}else(c!==1||h!==1)&&d.push(i(d)+"scale("+c+","+h+")")}return function(l,f){var c=[],h=[];return l=e(l),f=e(f),a(l.translateX,l.translateY,f.translateX,f.translateY,c,h),o(l.rotate,f.rotate,c,h),s(l.skewX,f.skewX,c,h),u(l.scaleX,l.scaleY,f.scaleX,f.scaleY,c,h),l=f=null,function(d){for(var p=-1,x=h.length,b;++p{B4();BCe();qCe=OCe(DCe,"px, ","px)","deg)"),NCe=OCe(FCe,", ",")",")")});function VCe(e){return((e=Math.exp(e))+1/e)/2}function WLt(e){return((e=Math.exp(e))-1/e)/2}function jLt(e){return((e=Math.exp(2*e))-1)/(e+1)}var HLt,GCe,HCe=Xf(()=>{HLt=1e-12;GCe=function e(t,r,n){function i(a,o){var s=a[0],u=a[1],l=a[2],f=o[0],c=o[1],h=o[2],d=f-s,p=c-u,x=d*d+p*p,b,v;if(x{L2();P2();jCe=WCe(X_),XCe=WCe(ph)});function Wj(e,t){var r=ph((e=MT(e)).l,(t=MT(t)).l),n=ph(e.a,t.a),i=ph(e.b,t.b),a=ph(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}var YCe=Xf(()=>{L2();P2()});function KCe(e){return function(t,r){var n=e((t=I4(t)).h,(r=I4(r)).h),i=ph(t.c,r.c),a=ph(t.l,r.l),o=ph(t.opacity,r.opacity);return function(s){return t.h=n(s),t.c=i(s),t.l=a(s),t.opacity=o(s),t+""}}}var JCe,$Ce,QCe=Xf(()=>{L2();P2();JCe=KCe(X_),$Ce=KCe(ph)});function eLe(e){return function t(r){r=+r;function n(i,a){var o=e((i=ET(i)).h,(a=ET(a)).h),s=ph(i.s,a.s),u=ph(i.l,a.l),l=ph(i.opacity,a.opacity);return function(f){return i.h=o(f),i.s=s(f),i.l=u(Math.pow(f,r)),i.opacity=l(f),i+""}}return n.gamma=t,n}(1)}var tLe,rLe,iLe=Xf(()=>{L2();P2();tLe=eLe(X_),rLe=eLe(ph)});function jj(e,t){t===void 0&&(t=e,e=Z_);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r{F4()});function aLe(e,t){for(var r=new Array(t),n=0;n{});var z2={};xee(z2,{interpolate:()=>Z_,interpolateArray:()=>MCe,interpolateBasis:()=>M6,interpolateBasisClosed:()=>k6,interpolateCubehelix:()=>tLe,interpolateCubehelixLong:()=>rLe,interpolateDate:()=>P6,interpolateDiscrete:()=>ECe,interpolateHcl:()=>JCe,interpolateHclLong:()=>$Ce,interpolateHsl:()=>jCe,interpolateHslLong:()=>XCe,interpolateHue:()=>CCe,interpolateLab:()=>Wj,interpolateNumber:()=>Dv,interpolateNumberArray:()=>CT,interpolateObject:()=>z6,interpolateRgb:()=>D4,interpolateRgbBasis:()=>TCe,interpolateRgbBasisClosed:()=>SCe,interpolateRound:()=>PCe,interpolateString:()=>I6,interpolateTransformCss:()=>qCe,interpolateTransformSvg:()=>NCe,interpolateZoom:()=>GCe,piecewise:()=>jj,quantize:()=>aLe});var I2=Xf(()=>{F4();Oj();E6();Rj();qj();kCe();LCe();B4();L6();Nj();zCe();Gj();UCe();HCe();Fj();ZCe();YCe();QCe();iLe();nLe();oLe()});var F6=Te((c0r,sLe)=>{"use strict";var XLt=Mu(),ZLt=jl();sLe.exports=function(t,r,n,i,a){var o=r.data.data,s=o.i,u=a||o.color;if(s>=0){r.i=o.i;var l=n.marker;l.pattern?(!l.colors||!l.pattern.shape)&&(l.color=u,r.color=u):(l.color=u,r.color=u),XLt.pointStyle(t,n,i,r)}else ZLt.fill(t,u)}});var Xj=Te((h0r,hLe)=>{"use strict";var lLe=Jl(),uLe=jl(),fLe=ei(),YLt=bp().resizeText,KLt=F6();function JLt(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");YLt(e,t,"sunburst"),t.each(function(r){var n=lLe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){lLe.select(this).call(cLe,o,a,e)})})}function cLe(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=fLe.castOption(r,o,"marker.line.color")||uLe.defaultLine,u=fLe.castOption(r,o,"marker.line.width")||0;e.call(KLt,t,r,n).style("stroke-width",u).call(uLe.stroke,s).style("opacity",a?r.leaf.opacity:null)}hLe.exports={style:JLt,styleOne:cLe}});var Kg=Te(gf=>{"use strict";var R2=ei(),$Lt=jl(),QLt=Am(),dLe=u_();gf.findEntryWithLevel=function(e,t){var r;return t&&e.eachAfter(function(n){if(gf.getPtId(n)===t)return r=n.copy()}),r||e};gf.findEntryWithChild=function(e,t){var r;return e.eachAfter(function(n){for(var i=n.children||[],a=0;a0)};gf.getMaxDepth=function(e){return e.maxdepth>=0?e.maxdepth:1/0};gf.isHeader=function(e,t){return!(gf.isLeaf(e)||e.depth===t._maxDepth-1)};function pLe(e){return e.data.data.pid}gf.getParent=function(e,t){return gf.findEntryWithLevel(e,pLe(t))};gf.listPath=function(e,t){var r=e.parent;if(!r)return[];var n=t?[r.data[t]]:[r];return gf.listPath(r,t).concat(n)};gf.getPath=function(e){return gf.listPath(e,"label").join("/")+"/"};gf.formatValue=dLe.formatPieValue;gf.formatPercent=function(e,t){var r=R2.formatPercent(e,0);return r==="0%"&&(r=dLe.formatPiePercent(e,t)),r}});var N4=Te((p0r,yLe)=>{"use strict";var LT=Jl(),vLe=$l(),rPt=rv().appendArrayPointValue,O4=jc(),mLe=ei(),iPt=m3(),ad=Kg(),nPt=u_(),aPt=nPt.formatPieValue;yLe.exports=function(t,r,n,i,a){var o=i[0],s=o.trace,u=o.hierarchy,l=s.type==="sunburst",f=s.type==="treemap"||s.type==="icicle";"_hasHoverLabel"in s||(s._hasHoverLabel=!1),"_hasHoverEvent"in s||(s._hasHoverEvent=!1);var c=function(p){var x=n._fullLayout;if(!(n._dragging||x.hovermode===!1)){var b=n._fullData[s.index],v=p.data.data,k=v.i,E=ad.isHierarchyRoot(p),T=ad.getParent(u,p),L=ad.getValue(p),_=function(Pe){return mLe.castOption(b,k,Pe)},C=_("hovertemplate"),S=O4.castHoverinfo(b,x,k),m=x.separators,P;if(C||S&&S!=="none"&&S!=="skip"){var A,B;l&&(A=o.cx+p.pxmid[0]*(1-p.rInscribed),B=o.cy+p.pxmid[1]*(1-p.rInscribed)),f&&(A=p._hoverX,B=p._hoverY);var F={},U=[],G=[],j=function(Pe){return U.indexOf(Pe)!==-1};S&&(U=S==="all"?b._module.attributes.hoverinfo.flags:S.split("+")),F.label=v.label,j("label")&&F.label&&G.push(F.label),v.hasOwnProperty("v")&&(F.value=v.v,F.valueLabel=aPt(F.value,m),j("value")&&G.push(F.valueLabel)),F.currentPath=p.currentPath=ad.getPath(p.data),j("current path")&&!E&&G.push(F.currentPath);var H,N=[],W=function(){N.indexOf(H)===-1&&(G.push(H),N.push(H))};F.percentParent=p.percentParent=L/ad.getValue(T),F.parent=p.parentString=ad.getPtLabel(T),j("percent parent")&&(H=ad.formatPercent(F.percentParent,m)+" of "+F.parent,W()),F.percentEntry=p.percentEntry=L/ad.getValue(r),F.entry=p.entry=ad.getPtLabel(r),j("percent entry")&&!E&&!p.onPathbar&&(H=ad.formatPercent(F.percentEntry,m)+" of "+F.entry,W()),F.percentRoot=p.percentRoot=L/ad.getValue(u),F.root=p.root=ad.getPtLabel(u),j("percent root")&&!E&&(H=ad.formatPercent(F.percentRoot,m)+" of "+F.root,W()),F.text=_("hovertext")||_("text"),j("text")&&(H=F.text,mLe.isValidTextValue(H)&&G.push(H)),P=[q4(p,b,a.eventDataKeys)];var re={trace:b,y:B,_x0:p._x0,_x1:p._x1,_y0:p._y0,_y1:p._y1,text:G.join("
"),name:C||j("name")?b.name:void 0,color:_("hoverlabel.bgcolor")||v.color,borderColor:_("hoverlabel.bordercolor"),fontFamily:_("hoverlabel.font.family"),fontSize:_("hoverlabel.font.size"),fontColor:_("hoverlabel.font.color"),fontWeight:_("hoverlabel.font.weight"),fontStyle:_("hoverlabel.font.style"),fontVariant:_("hoverlabel.font.variant"),nameLength:_("hoverlabel.namelength"),textAlign:_("hoverlabel.align"),hovertemplate:C,hovertemplateLabels:F,eventData:P};l&&(re.x0=A-p.rInscribed*p.rpx1,re.x1=A+p.rInscribed*p.rpx1,re.idealAlign=p.pxmid[0]<0?"left":"right"),f&&(re.x=A,re.idealAlign=A<0?"left":"right");var ae=[];O4.loneHover(re,{container:x._hoverlayer.node(),outerContainer:x._paper.node(),gd:n,inOut_bbox:ae}),P[0].bbox=ae[0],s._hasHoverLabel=!0}if(f){var be=t.select("path.surface");a.styleOne(be,p,b,n,{hovered:!0})}s._hasHoverEvent=!0,n.emit("plotly_hover",{points:P||[q4(p,b,a.eventDataKeys)],event:LT.event})}},h=function(p){var x=n._fullLayout,b=n._fullData[s.index],v=LT.select(this).datum();if(s._hasHoverEvent&&(p.originalEvent=LT.event,n.emit("plotly_unhover",{points:[q4(v,b,a.eventDataKeys)],event:LT.event}),s._hasHoverEvent=!1),s._hasHoverLabel&&(O4.loneUnhover(x._hoverlayer.node()),s._hasHoverLabel=!1),f){var k=t.select("path.surface");a.styleOne(k,v,b,n,{hovered:!1})}},d=function(p){var x=n._fullLayout,b=n._fullData[s.index],v=l&&(ad.isHierarchyRoot(p)||ad.isLeaf(p)),k=ad.getPtId(p),E=ad.isEntry(p)?ad.findEntryWithChild(u,k):ad.findEntryWithLevel(u,k),T=ad.getPtId(E),L={points:[q4(p,b,a.eventDataKeys)],event:LT.event};v||(L.nextLevel=T);var _=iPt.triggerHandler(n,"plotly_"+s.type+"click",L);if(_!==!1&&x.hovermode&&(n._hoverdata=[q4(p,b,a.eventDataKeys)],O4.click(n,LT.event)),!v&&_!==!1&&!n._dragging&&!n._transitioning){vLe.call("_storeDirectGUIEdit",b,x._tracePreGUI[b.uid],{level:b.level});var C={data:[{level:T}],traces:[s.index]},S={frame:{redraw:!1,duration:a.transitionTime},transition:{duration:a.transitionTime,easing:a.transitionEasing},mode:"immediate",fromcurrent:!0};O4.loneUnhover(x._hoverlayer.node()),vLe.call("animate",n,C,S)}};t.on("mouseover",c),t.on("mouseout",h),t.on("click",d)};function q4(e,t,r){for(var n=e.data.data,i={curveNumber:t.index,pointNumber:n.i,data:t._input,fullData:t},a=0;a{"use strict";var U4=Jl(),oPt=E4(),Zm=(I2(),q1(z2)).interpolate,gLe=Mu(),Ap=ei(),sPt=Zf(),wLe=bp(),_Le=wLe.recordMinTextSize,lPt=wLe.clearMinTextSize,ALe=v6(),uPt=u_().getRotationAngle,fPt=ALe.computeTransform,cPt=ALe.transformInsideText,hPt=Xj().styleOne,dPt=N0().resizeText,pPt=N4(),Zj=Aj(),Of=Kg();B6.plot=function(e,t,r,n){var i=e._fullLayout,a=i._sunburstlayer,o,s,u=!r,l=!i.uniformtext.mode&&Of.hasTransition(r);if(lPt("sunburst",i),o=a.selectAll("g.trace.sunburst").data(t,function(c){return c[0].trace.uid}),o.enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),o.order(),l){n&&(s=n());var f=U4.transition().duration(r.duration).ease(r.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});f.each(function(){a.selectAll("g.trace").each(function(c){xLe(e,c,this,r)})})}else o.each(function(c){xLe(e,c,this,r)}),i.uniformtext.mode&&dPt(e,i._sunburstlayer.selectAll(".trace"),"sunburst");u&&o.exit().remove()};function xLe(e,t,r,n){var i=e._context.staticPlot,a=e._fullLayout,o=!a.uniformtext.mode&&Of.hasTransition(n),s=U4.select(r),u=s.selectAll("g.slice"),l=t[0],f=l.trace,c=l.hierarchy,h=Of.findEntryWithLevel(c,f.level),d=Of.getMaxDepth(f),p=a._size,x=f.domain,b=p.w*(x.x[1]-x.x[0]),v=p.h*(x.y[1]-x.y[0]),k=.5*Math.min(b,v),E=l.cx=p.l+p.w*(x.x[1]+x.x[0])/2,T=l.cy=p.t+p.h*(1-x.y[0])-v/2;if(!h)return u.remove();var L=null,_={};o&&u.each(function(de){_[Of.getPtId(de)]={rpx0:de.rpx0,rpx1:de.rpx1,x0:de.x0,x1:de.x1,transform:de.transform},!L&&Of.isEntry(de)&&(L=de)});var C=vPt(h).descendants(),S=h.height+1,m=0,P=d;l.hasMultipleRoots&&Of.isHierarchyRoot(h)&&(C=C.slice(1),S-=1,m=1,P+=1),C=C.filter(function(de){return de.y1<=P});var A=uPt(f.rotation);A&&C.forEach(function(de){de.x0+=A,de.x1+=A});var B=Math.min(S,d),F=function(de){return(de-m)/B*k},U=function(de,te){return[de*Math.cos(te),-de*Math.sin(te)]},G=function(de){return Ap.pathAnnulus(de.rpx0,de.rpx1,de.x0,de.x1,E,T)},j=function(de){return E+bLe(de)[0]*(de.transform.rCenter||0)+(de.transform.x||0)},H=function(de){return T+bLe(de)[1]*(de.transform.rCenter||0)+(de.transform.y||0)};u=u.data(C,Of.getPtId),u.enter().append("g").classed("slice",!0),o?u.exit().transition().each(function(){var de=U4.select(this),te=de.select("path.surface");te.transition().attrTween("d",function(Ee){var Me=ae(Ee);return function(Ue){return G(Me(Ue))}});var ke=de.select("g.slicetext");ke.attr("opacity",0)}).remove():u.exit().remove(),u.order();var N=null;if(o&&L){var W=Of.getPtId(L);u.each(function(de){N===null&&Of.getPtId(de)===W&&(N=de.x1)})}var re=u;o&&(re=re.transition().each("end",function(){var de=U4.select(this);Of.setSliceCursor(de,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),re.each(function(de){var te=U4.select(this),ke=Ap.ensureSingle(te,"path","surface",function(Ne){Ne.style("pointer-events",i?"none":"all")});de.rpx0=F(de.y0),de.rpx1=F(de.y1),de.xmid=(de.x0+de.x1)/2,de.pxmid=U(de.rpx1,de.xmid),de.midangle=-(de.xmid-Math.PI/2),de.startangle=-(de.x0-Math.PI/2),de.stopangle=-(de.x1-Math.PI/2),de.halfangle=.5*Math.min(Ap.angleDelta(de.x0,de.x1)||Math.PI,Math.PI),de.ring=1-de.rpx0/de.rpx1,de.rInscribed=mPt(de,f),o?ke.transition().attrTween("d",function(Ne){var ce=be(Ne);return function(Ke){return G(ce(Ke))}}):ke.attr("d",G),te.call(pPt,h,e,t,{eventDataKeys:Zj.eventDataKeys,transitionTime:Zj.CLICK_TRANSITION_TIME,transitionEasing:Zj.CLICK_TRANSITION_EASING}).call(Of.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),ke.call(hPt,de,f,e);var Ee=Ap.ensureSingle(te,"g","slicetext"),Me=Ap.ensureSingle(Ee,"text","",function(Ne){Ne.attr("data-notex",1)}),Ue=Ap.ensureUniformFontSize(e,Of.determineTextFont(f,de,a.font));Me.text(B6.formatSliceLabel(de,h,f,t,a)).classed("slicetext",!0).attr("text-anchor","middle").call(gLe.font,Ue).call(sPt.convertToTspans,e);var Fe=gLe.bBox(Me.node());de.transform=cPt(Fe,de,l),de.transform.targetX=j(de),de.transform.targetY=H(de);var me=function(Ne,ce){var Ke=Ne.transform;return fPt(Ke,ce),Ke.fontSize=Ue.size,_Le(f.type,Ke,a),Ap.getTextTransform(Ke)};o?Me.transition().attrTween("transform",function(Ne){var ce=Pe(Ne);return function(Ke){return me(ce(Ke),Fe)}}):Me.attr("transform",me(de,Fe))});function ae(de){var te=Of.getPtId(de),ke=_[te],Ee=_[Of.getPtId(h)],Me;if(Ee){var Ue=(de.x1>Ee.x1?2*Math.PI:0)+A;Me=de.rpx1N?2*Math.PI:0)+A;ke={x0:Me,x1:Me}}else ke={rpx0:k,rpx1:k},Ap.extendFlat(ke,Ce(de));else ke={rpx0:0,rpx1:0};else ke={x0:A,x1:A};return Zm(ke,Ee)}function Pe(de){var te=_[Of.getPtId(de)],ke,Ee=de.transform;if(te)ke=te;else if(ke={rpx1:de.rpx1,transform:{textPosAngle:Ee.textPosAngle,scale:0,rotate:Ee.rotate,rCenter:Ee.rCenter,x:Ee.x,y:Ee.y}},L)if(de.parent)if(N){var Me=de.x1>N?2*Math.PI:0;ke.x0=ke.x1=Me}else Ap.extendFlat(ke,Ce(de));else ke.x0=ke.x1=A;else ke.x0=ke.x1=A;var Ue=Zm(ke.transform.textPosAngle,de.transform.textPosAngle),Fe=Zm(ke.rpx1,de.rpx1),me=Zm(ke.x0,de.x0),Ne=Zm(ke.x1,de.x1),ce=Zm(ke.transform.scale,Ee.scale),Ke=Zm(ke.transform.rotate,Ee.rotate),it=Ee.rCenter===0?3:ke.transform.rCenter===0?1/3:1,bt=Zm(ke.transform.rCenter,Ee.rCenter),Nt=function(nt){return bt(Math.pow(nt,it))};return function(nt){var Ye=Fe(nt),kt=me(nt),At=Ne(nt),St=Nt(nt),Bt=U(Ye,(kt+At)/2),Zt=Ue(nt),Et={pxmid:Bt,rpx1:Ye,transform:{textPosAngle:Zt,rCenter:St,x:Ee.x,y:Ee.y}};return _Le(f.type,Ee,a),{transform:{targetX:j(Et),targetY:H(Et),scale:ce(nt),rotate:Ke(nt),rCenter:St}}}}function Ce(de){var te=de.parent,ke=_[Of.getPtId(te)],Ee={};if(ke){var Me=te.children,Ue=Me.indexOf(de),Fe=Me.length,me=Zm(ke.x0,ke.x1);Ee.x0=me(Ue/Fe),Ee.x1=me(Ue/Fe)}else Ee.x0=Ee.x1=0;return Ee}}function vPt(e){return oPt.partition().size([2*Math.PI,e.height+1])(e)}B6.formatSliceLabel=function(e,t,r,n,i){var a=r.texttemplate,o=r.textinfo;if(!a&&(!o||o==="none"))return"";var s=i.separators,u=n[0],l=e.data.data,f=u.hierarchy,c=Of.isHierarchyRoot(e),h=Of.getParent(f,e),d=Of.getValue(e);if(!a){var p=o.split("+"),x=function(m){return p.indexOf(m)!==-1},b=[],v;if(x("label")&&l.label&&b.push(l.label),l.hasOwnProperty("v")&&x("value")&&b.push(Of.formatValue(l.v,s)),!c){x("current path")&&b.push(Of.getPath(e.data));var k=0;x("percent parent")&&k++,x("percent entry")&&k++,x("percent root")&&k++;var E=k>1;if(k){var T,L=function(m){v=Of.formatPercent(T,s),E&&(v+=" of "+m),b.push(v)};x("percent parent")&&!c&&(T=d/Of.getValue(h),L("parent")),x("percent entry")&&(T=d/Of.getValue(t),L("entry")),x("percent root")&&(T=d/Of.getValue(f),L("root"))}}return x("text")&&(v=Ap.castOption(r,l.i,"text"),Ap.isValidTextValue(v)&&b.push(v)),b.join("
")}var _=Ap.castOption(r,l.i,"texttemplate");if(!_)return"";var C={};l.label&&(C.label=l.label),l.hasOwnProperty("v")&&(C.value=l.v,C.valueLabel=Of.formatValue(l.v,s)),C.currentPath=Of.getPath(e.data),c||(C.percentParent=d/Of.getValue(h),C.percentParentLabel=Of.formatPercent(C.percentParent,s),C.parent=Of.getPtLabel(h)),C.percentEntry=d/Of.getValue(t),C.percentEntryLabel=Of.formatPercent(C.percentEntry,s),C.entry=Of.getPtLabel(t),C.percentRoot=d/Of.getValue(f),C.percentRootLabel=Of.formatPercent(C.percentRoot,s),C.root=Of.getPtLabel(f),l.hasOwnProperty("color")&&(C.color=l.color);var S=Ap.castOption(r,l.i,"text");return(Ap.isValidTextValue(S)||S==="")&&(C.text=S),C.customdata=Ap.castOption(r,l.i,"customdata"),Ap.texttemplateString(_,C,i._d3locale,C,r._meta||{})};function mPt(e){return e.rpx0===0&&Ap.isFullCircle([e.x0,e.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2))}function bLe(e){return yPt(e.rpx1,e.transform.textPosAngle)}function yPt(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}});var SLe=Te((m0r,TLe)=>{"use strict";TLe.exports={moduleType:"trace",name:"sunburst",basePlotModule:qke(),categories:[],animatable:!0,attributes:M4(),layoutAttributes:Tj(),supplyDefaults:Xke(),supplyLayoutDefaults:Yke(),calc:C4().calc,crossTraceCalc:C4().crossTraceCalc,plot:O6().plot,style:Xj().style,colorbar:ep(),meta:{}}});var ELe=Te((y0r,MLe)=>{"use strict";MLe.exports=SLe()});var CLe=Te(PT=>{"use strict";var kLe=Cc();PT.name="treemap";PT.plot=function(e,t,r,n){kLe.plotBasePlot(PT.name,e,t,r,n)};PT.clean=function(e,t,r,n){kLe.cleanBasePlot(PT.name,e,t,r,n)}});var D2=Te((_0r,LLe)=>{"use strict";LLe.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}});var q6=Te((x0r,zLe)=>{"use strict";var gPt=Hu().hovertemplateAttrs,_Pt=Hu().texttemplateAttrs,xPt=nc(),bPt=zc().attributes,F2=T2(),Q0=M4(),PLe=D2(),Yj=Su().extendFlat,wPt=Id().pattern;zLe.exports={labels:Q0.labels,parents:Q0.parents,values:Q0.values,branchvalues:Q0.branchvalues,count:Q0.count,level:Q0.level,maxdepth:Q0.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",editType:"plot"},squarifyratio:{valType:"number",min:1,dflt:1,editType:"plot"},flip:{valType:"flaglist",flags:["x","y"],dflt:"",editType:"plot"},pad:{valType:"number",min:0,dflt:3,editType:"plot"},editType:"calc"},marker:Yj({pad:{t:{valType:"number",min:0,editType:"plot"},l:{valType:"number",min:0,editType:"plot"},r:{valType:"number",min:0,editType:"plot"},b:{valType:"number",min:0,editType:"plot"},editType:"calc"},colors:Q0.marker.colors,pattern:wPt,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:Q0.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},xPt("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,editType:"plot"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:Yj({},F2.textfont,{}),editType:"calc"},text:F2.text,textinfo:Q0.textinfo,texttemplate:_Pt({editType:"plot"},{keys:PLe.eventDataKeys.concat(["label","value"])}),hovertext:F2.hovertext,hoverinfo:Q0.hoverinfo,hovertemplate:gPt({},{keys:PLe.eventDataKeys}),textfont:F2.textfont,insidetextfont:F2.insidetextfont,outsidetextfont:Yj({},F2.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:F2.sort,root:Q0.root,domain:bPt({name:"treemap",trace:!0,editType:"calc"})}});var Kj=Te((b0r,ILe)=>{"use strict";ILe.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var BLe=Te((w0r,FLe)=>{"use strict";var RLe=ei(),APt=q6(),TPt=jl(),SPt=zc().defaults,MPt=r0().handleText,EPt=Qb().TEXTPAD,kPt=S2().handleMarkerDefaults,DLe=_c(),CPt=DLe.hasColorscale,LPt=DLe.handleDefaults;FLe.exports=function(t,r,n,i){function a(b,v){return RLe.coerce(t,r,APt,b,v)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var u=a("values");u&&u.length?a("branchvalues"):a("count"),a("level"),a("maxdepth");var l=a("tiling.packing");l==="squarify"&&a("tiling.squarifyratio"),a("tiling.flip"),a("tiling.pad");var f=a("text");a("texttemplate"),r.texttemplate||a("textinfo",RLe.isArrayOrTypedArray(f)?"text+label":"label"),a("hovertext"),a("hovertemplate");var c=a("pathbar.visible"),h="auto";MPt(t,r,i,a,h,{hasPathbar:c,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition");var d=r.textposition.indexOf("bottom")!==-1;kPt(t,r,i,a);var p=r._hasColorscale=CPt(t,"marker","colors")||(t.marker||{}).coloraxis;p?LPt(t,r,i,a,{prefix:"marker.",cLetter:"c"}):a("marker.depthfade",!(r.marker.colors||[]).length);var x=r.textfont.size*2;a("marker.pad.t",d?x/4:x),a("marker.pad.l",x/4),a("marker.pad.r",x/4),a("marker.pad.b",d?x:x/4),a("marker.cornerradius"),r._hovered={marker:{line:{width:2,color:TPt.contrast(i.paper_bgcolor)}}},c&&(a("pathbar.thickness",r.pathbar.textfont.size+2*EPt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),SPt(r,i,a),r._length=null}});var qLe=Te((A0r,OLe)=>{"use strict";var PPt=ei(),zPt=Kj();OLe.exports=function(t,r){function n(i,a){return PPt.coerce(t,r,zPt,i,a)}n("treemapcolorway",r.colorway),n("extendtreemapcolors")}});var $j=Te(Jj=>{"use strict";var NLe=C4();Jj.calc=function(e,t){return NLe.calc(e,t)};Jj.crossTraceCalc=function(e){return NLe._runCrossTraceCalc("treemap",e)}});var Qj=Te((S0r,ULe)=>{"use strict";ULe.exports=function e(t,r,n){var i;n.swapXY&&(i=t.x0,t.x0=t.y0,t.y0=i,i=t.x1,t.x1=t.y1,t.y1=i),n.flipX&&(i=t.x0,t.x0=r[0]-t.x1,t.x1=r[0]-i),n.flipY&&(i=t.y0,t.y0=r[1]-t.y1,t.y1=r[1]-i);var a=t.children;if(a)for(var o=0;o{"use strict";var zT=E4(),IPt=Qj();VLe.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.packing==="dice-slice",s=n.pad[a?"bottom":"top"],u=n.pad[i?"right":"left"],l=n.pad[i?"left":"right"],f=n.pad[a?"top":"bottom"],c;o&&(c=u,u=s,s=c,c=l,l=f,f=c);var h=zT.treemap().tile(RPt(n.packing,n.squarifyratio)).paddingInner(n.pad.inner).paddingLeft(u).paddingRight(l).paddingTop(s).paddingBottom(f).size(o?[r[1],r[0]]:r)(t);return(o||i||a)&&IPt(h,r,{swapXY:o,flipX:i,flipY:a}),h};function RPt(e,t){switch(e){case"squarify":return zT.treemapSquarify.ratio(t);case"binary":return zT.treemapBinary;case"dice":return zT.treemapDice;case"slice":return zT.treemapSlice;default:return zT.treemapSliceDice}}});var N6=Te((E0r,jLe)=>{"use strict";var GLe=Jl(),IT=jl(),HLe=ei(),tX=Kg(),DPt=bp().resizeText,FPt=F6();function BPt(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");DPt(e,t,"treemap"),t.each(function(r){var n=GLe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){GLe.select(this).call(WLe,o,a,e,{hovered:!1})})})}function WLe(e,t,r,n,i){var a=(i||{}).hovered,o=t.data.data,s=o.i,u,l,f=o.color,c=tX.isHierarchyRoot(t),h=1;if(a)u=r._hovered.marker.line.color,l=r._hovered.marker.line.width;else if(c&&f===r.root.color)h=100,u="rgba(0,0,0,0)",l=0;else if(u=HLe.castOption(r,s,"marker.line.color")||IT.defaultLine,l=HLe.castOption(r,s,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var d=r.marker.depthfade;if(d){var p=IT.combine(IT.addOpacity(r._backgroundColor,.75),f),x;if(d===!0){var b=tX.getMaxDepth(r);isFinite(b)?tX.isLeaf(t)?x=0:x=r._maxVisibleLayers-(t.data.depth-r._entryDepth):x=t.data.height+1}else x=t.data.depth-r._entryDepth,r._atRootLevel||x++;if(x>0)for(var v=0;v{"use strict";var XLe=Jl(),U6=ei(),ZLe=Mu(),OPt=Zf(),qPt=eX(),YLe=N6().styleOne,rX=D2(),RT=Kg(),NPt=N4(),iX=!0;KLe.exports=function(t,r,n,i,a){var o=a.barDifY,s=a.width,u=a.height,l=a.viewX,f=a.viewY,c=a.pathSlice,h=a.toMoveInsideSlice,d=a.strTransform,p=a.hasTransition,x=a.handleSlicesExit,b=a.makeUpdateSliceInterpolator,v=a.makeUpdateTextInterpolator,k={},E=t._context.staticPlot,T=t._fullLayout,L=r[0],_=L.trace,C=L.hierarchy,S=s/_._entryDepth,m=RT.listPath(n.data,"id"),P=qPt(C.copy(),[s,u],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();P=P.filter(function(B){var F=m.indexOf(B.data.id);return F===-1?!1:(B.x0=S*F,B.x1=S*(F+1),B.y0=o,B.y1=o+u,B.onPathbar=!0,!0)}),P.reverse(),i=i.data(P,RT.getPtId),i.enter().append("g").classed("pathbar",!0),x(i,iX,k,[s,u],c),i.order();var A=i;p&&(A=A.transition().each("end",function(){var B=XLe.select(this);RT.setSliceCursor(B,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),A.each(function(B){B._x0=l(B.x0),B._x1=l(B.x1),B._y0=f(B.y0),B._y1=f(B.y1),B._hoverX=l(B.x1-Math.min(s,u)/2),B._hoverY=f(B.y1-u/2);var F=XLe.select(this),U=U6.ensureSingle(F,"path","surface",function(N){N.style("pointer-events",E?"none":"all")});p?U.transition().attrTween("d",function(N){var W=b(N,iX,k,[s,u]);return function(re){return c(W(re))}}):U.attr("d",c),F.call(NPt,n,t,r,{styleOne:YLe,eventDataKeys:rX.eventDataKeys,transitionTime:rX.CLICK_TRANSITION_TIME,transitionEasing:rX.CLICK_TRANSITION_EASING}).call(RT.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),U.call(YLe,B,_,t,{hovered:!1}),B._text=(RT.getPtLabel(B)||"").split("
").join(" ")||"";var G=U6.ensureSingle(F,"g","slicetext"),j=U6.ensureSingle(G,"text","",function(N){N.attr("data-notex",1)}),H=U6.ensureUniformFontSize(t,RT.determineTextFont(_,B,T.font,{onPathbar:!0}));j.text(B._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(ZLe.font,H).call(OPt.convertToTspans,t),B.textBB=ZLe.bBox(j.node()),B.transform=h(B,{fontSize:H.size,onPathbar:!0}),B.transform.fontSize=H.size,p?j.transition().attrTween("transform",function(N){var W=v(N,iX,k,[s,u]);return function(re){return d(W(re))}}):j.attr("transform",d(B))})}});var tPe=Te((C0r,ePe)=>{"use strict";var $Le=Jl(),nX=(I2(),q1(z2)).interpolate,Y_=Kg(),V4=ei(),QLe=Qb().TEXTPAD,UPt=i2(),VPt=UPt.toMoveInsideBar,GPt=bp(),aX=GPt.recordMinTextSize,HPt=D2(),WPt=JLe();function B2(e){return Y_.isHierarchyRoot(e)?"":Y_.getPtId(e)}ePe.exports=function(t,r,n,i,a){var o=t._fullLayout,s=r[0],u=s.trace,l=u.type,f=l==="icicle",c=s.hierarchy,h=Y_.findEntryWithLevel(c,u.level),d=$Le.select(n),p=d.selectAll("g.pathbar"),x=d.selectAll("g.slice");if(!h){p.remove(),x.remove();return}var b=Y_.isHierarchyRoot(h),v=!o.uniformtext.mode&&Y_.hasTransition(i),k=Y_.getMaxDepth(u),E=function(Ae){return Ae.data.depth-h.data.depth-1?C+P:-(m+P):0,B={x0:S,x1:S,y0:A,y1:A+m},F=function(Ae,ot,dt){var pt=u.tiling.pad,at=function(zt){return zt-pt<=ot.x0},Xe=function(zt){return zt+pt>=ot.x1},rt=function(zt){return zt-pt<=ot.y0},Qe=function(zt){return zt+pt>=ot.y1};return Ae.x0===ot.x0&&Ae.x1===ot.x1&&Ae.y0===ot.y0&&Ae.y1===ot.y1?{x0:Ae.x0,x1:Ae.x1,y0:Ae.y0,y1:Ae.y1}:{x0:at(Ae.x0-pt)?0:Xe(Ae.x0-pt)?dt[0]:Ae.x0,x1:at(Ae.x1+pt)?0:Xe(Ae.x1+pt)?dt[0]:Ae.x1,y0:rt(Ae.y0-pt)?0:Qe(Ae.y0-pt)?dt[1]:Ae.y0,y1:rt(Ae.y1+pt)?0:Qe(Ae.y1+pt)?dt[1]:Ae.y1}},U=null,G={},j={},H=null,N=function(Ae,ot){return ot?G[B2(Ae)]:j[B2(Ae)]},W=function(Ae,ot,dt,pt){if(ot)return G[B2(c)]||B;var at=j[u.level]||dt;return E(Ae)?F(Ae,at,pt):{}};s.hasMultipleRoots&&b&&k++,u._maxDepth=k,u._backgroundColor=o.paper_bgcolor,u._entryDepth=h.data.depth,u._atRootLevel=b;var re=-_/2+T.l+T.w*(L.x[1]+L.x[0])/2,ae=-C/2+T.t+T.h*(1-(L.y[1]+L.y[0])/2),be=function(Ae){return re+Ae},Pe=function(Ae){return ae+Ae},Ce=Pe(0),de=be(0),te=function(Ae){return de+Ae},ke=function(Ae){return Ce+Ae};function Ee(Ae,ot){return Ae+","+ot}var Me=te(0),Ue=function(Ae){Ae.x=Math.max(Me,Ae.x)},Fe=u.pathbar.edgeshape,me=function(Ae){var ot=te(Math.max(Math.min(Ae.x0,Ae.x0),0)),dt=te(Math.min(Math.max(Ae.x1,Ae.x1),S)),pt=ke(Ae.y0),at=ke(Ae.y1),Xe=m/2,rt={},Qe={};rt.x=ot,Qe.x=dt,rt.y=Qe.y=(pt+at)/2;var zt={x:ot,y:pt},Yt={x:dt,y:pt},lr={x:dt,y:at},mr={x:ot,y:at};return Fe===">"?(zt.x-=Xe,Yt.x-=Xe,lr.x-=Xe,mr.x-=Xe):Fe==="/"?(lr.x-=Xe,mr.x-=Xe,rt.x-=Xe/2,Qe.x-=Xe/2):Fe==="\\"?(zt.x-=Xe,Yt.x-=Xe,rt.x-=Xe/2,Qe.x-=Xe/2):Fe==="<"&&(rt.x-=Xe,Qe.x-=Xe),Ue(zt),Ue(mr),Ue(rt),Ue(Yt),Ue(lr),Ue(Qe),"M"+Ee(zt.x,zt.y)+"L"+Ee(Yt.x,Yt.y)+"L"+Ee(Qe.x,Qe.y)+"L"+Ee(lr.x,lr.y)+"L"+Ee(mr.x,mr.y)+"L"+Ee(rt.x,rt.y)+"Z"},Ne=u[f?"tiling":"marker"].pad,ce=function(Ae){return u.textposition.indexOf(Ae)!==-1},Ke=ce("top"),it=ce("left"),bt=ce("right"),Nt=ce("bottom"),nt=function(Ae){var ot=be(Ae.x0),dt=be(Ae.x1),pt=Pe(Ae.y0),at=Pe(Ae.y1),Xe=dt-ot,rt=at-pt;if(!Xe||!rt)return"";var Qe=u.marker.cornerradius||0,zt=Math.min(Qe,Xe/2,rt/2);zt&&Ae.data&&Ae.data.data&&Ae.data.data.label&&(Ke&&(zt=Math.min(zt,Ne.t)),it&&(zt=Math.min(zt,Ne.l)),bt&&(zt=Math.min(zt,Ne.r)),Nt&&(zt=Math.min(zt,Ne.b)));var Yt=function(lr,mr){return zt?"a"+Ee(zt,zt)+" 0 0 1 "+Ee(lr,mr):""};return"M"+Ee(ot,pt+zt)+Yt(zt,-zt)+"L"+Ee(dt-zt,pt)+Yt(zt,zt)+"L"+Ee(dt,at-zt)+Yt(-zt,zt)+"L"+Ee(ot+zt,at)+Yt(-zt,-zt)+"Z"},Ye=function(Ae,ot){var dt=Ae.x0,pt=Ae.x1,at=Ae.y0,Xe=Ae.y1,rt=Ae.textBB,Qe=Ke||ot.isHeader&&!Nt,zt=Qe?"start":Nt?"end":"middle",Yt=ce("right"),lr=ce("left")||ot.onPathbar,mr=lr?-1:Yt?1:0;if(ot.isHeader){if(dt+=(f?Ne:Ne.l)-QLe,pt-=(f?Ne:Ne.r)-QLe,dt>=pt){var _r=(dt+pt)/2;dt=_r,pt=_r}var Ht;Nt?(Ht=Xe-(f?Ne:Ne.b),at{"use strict";var jPt=Jl(),XPt=Kg(),ZPt=bp(),YPt=ZPt.clearMinTextSize,KPt=N0().resizeText,rPe=tPe();iPe.exports=function(t,r,n,i,a){var o=a.type,s=a.drawDescendants,u=t._fullLayout,l=u["_"+o+"layer"],f,c,h=!n;if(YPt(o,u),f=l.selectAll("g.trace."+o).data(r,function(p){return p[0].trace.uid}),f.enter().append("g").classed("trace",!0).classed(o,!0),f.order(),!u.uniformtext.mode&&XPt.hasTransition(n)){i&&(c=i());var d=jPt.transition().duration(n.duration).ease(n.easing).each("end",function(){c&&c()}).each("interrupt",function(){c&&c()});d.each(function(){l.selectAll("g.trace").each(function(p){rPe(t,p,this,n,s)})})}else f.each(function(p){rPe(t,p,this,n,s)}),u.uniformtext.mode&&KPt(t,l.selectAll(".trace"),o);h&&f.exit().remove()}});var lPe=Te((P0r,sPe)=>{"use strict";var nPe=Jl(),V6=ei(),aPe=Mu(),JPt=Zf(),$Pt=eX(),oPe=N6().styleOne,sX=D2(),K_=Kg(),QPt=N4(),ezt=O6().formatSliceLabel,lX=!1;sPe.exports=function(t,r,n,i,a){var o=a.width,s=a.height,u=a.viewX,l=a.viewY,f=a.pathSlice,c=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,p=a.handleSlicesExit,x=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,v=a.prevEntry,k={},E=t._context.staticPlot,T=t._fullLayout,L=r[0],_=L.trace,C=_.textposition.indexOf("left")!==-1,S=_.textposition.indexOf("right")!==-1,m=_.textposition.indexOf("bottom")!==-1,P=!m&&!_.marker.pad.t||m&&!_.marker.pad.b,A=$Pt(n,[o,s],{packing:_.tiling.packing,squarifyratio:_.tiling.squarifyratio,flipX:_.tiling.flip.indexOf("x")>-1,flipY:_.tiling.flip.indexOf("y")>-1,pad:{inner:_.tiling.pad,top:_.marker.pad.t,left:_.marker.pad.l,right:_.marker.pad.r,bottom:_.marker.pad.b}}),B=A.descendants(),F=1/0,U=-1/0;B.forEach(function(W){var re=W.depth;re>=_._maxDepth?(W.x0=W.x1=(W.x0+W.x1)/2,W.y0=W.y1=(W.y0+W.y1)/2):(F=Math.min(F,re),U=Math.max(U,re))}),i=i.data(B,K_.getPtId),_._maxVisibleLayers=isFinite(U)?U-F+1:0,i.enter().append("g").classed("slice",!0),p(i,lX,k,[o,s],f),i.order();var G=null;if(d&&v){var j=K_.getPtId(v);i.each(function(W){G===null&&K_.getPtId(W)===j&&(G={x0:W.x0,x1:W.x1,y0:W.y0,y1:W.y1})})}var H=function(){return G||{x0:0,x1:o,y0:0,y1:s}},N=i;return d&&(N=N.transition().each("end",function(){var W=nPe.select(this);K_.setSliceCursor(W,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),N.each(function(W){var re=K_.isHeader(W,_);W._x0=u(W.x0),W._x1=u(W.x1),W._y0=l(W.y0),W._y1=l(W.y1),W._hoverX=u(W.x1-_.marker.pad.r),W._hoverY=l(m?W.y1-_.marker.pad.b/2:W.y0+_.marker.pad.t/2);var ae=nPe.select(this),be=V6.ensureSingle(ae,"path","surface",function(Ee){Ee.style("pointer-events",E?"none":"all")});d?be.transition().attrTween("d",function(Ee){var Me=x(Ee,lX,H(),[o,s]);return function(Ue){return f(Me(Ue))}}):be.attr("d",f),ae.call(QPt,n,t,r,{styleOne:oPe,eventDataKeys:sX.eventDataKeys,transitionTime:sX.CLICK_TRANSITION_TIME,transitionEasing:sX.CLICK_TRANSITION_EASING}).call(K_.setSliceCursor,t,{isTransitioning:t._transitioning}),be.call(oPe,W,_,t,{hovered:!1}),W.x0===W.x1||W.y0===W.y1?W._text="":re?W._text=P?"":K_.getPtLabel(W)||"":W._text=ezt(W,n,_,r,T)||"";var Pe=V6.ensureSingle(ae,"g","slicetext"),Ce=V6.ensureSingle(Pe,"text","",function(Ee){Ee.attr("data-notex",1)}),de=V6.ensureUniformFontSize(t,K_.determineTextFont(_,W,T.font)),te=W._text||" ",ke=re&&te.indexOf("
")===-1;Ce.text(te).classed("slicetext",!0).attr("text-anchor",S?"end":C||ke?"start":"middle").call(aPe.font,de).call(JPt.convertToTspans,t),W.textBB=aPe.bBox(Ce.node()),W.transform=c(W,{fontSize:de.size,isHeader:re}),W.transform.fontSize=de.size,d?Ce.transition().attrTween("transform",function(Ee){var Me=b(Ee,lX,H(),[o,s]);return function(Ue){return h(Me(Ue))}}):Ce.attr("transform",h(W))}),G}});var fPe=Te((z0r,uPe)=>{"use strict";var tzt=oX(),rzt=lPe();uPe.exports=function(t,r,n,i){return tzt(t,r,n,i,{type:"treemap",drawDescendants:rzt})}});var hPe=Te((I0r,cPe)=>{"use strict";cPe.exports={moduleType:"trace",name:"treemap",basePlotModule:CLe(),categories:[],animatable:!0,attributes:q6(),layoutAttributes:Kj(),supplyDefaults:BLe(),supplyLayoutDefaults:qLe(),calc:$j().calc,crossTraceCalc:$j().crossTraceCalc,plot:fPe(),style:N6().style,colorbar:ep(),meta:{}}});var pPe=Te((R0r,dPe)=>{"use strict";dPe.exports=hPe()});var mPe=Te(DT=>{"use strict";var vPe=Cc();DT.name="icicle";DT.plot=function(e,t,r,n){vPe.plotBasePlot(DT.name,e,t,r,n)};DT.clean=function(e,t,r,n){vPe.cleanBasePlot(DT.name,e,t,r,n)}});var uX=Te((F0r,gPe)=>{"use strict";var izt=Hu().hovertemplateAttrs,nzt=Hu().texttemplateAttrs,azt=nc(),ozt=zc().attributes,G4=T2(),o0=M4(),G6=q6(),yPe=D2(),szt=Su().extendFlat,lzt=Id().pattern;gPe.exports={labels:o0.labels,parents:o0.parents,values:o0.values,branchvalues:o0.branchvalues,count:o0.count,level:o0.level,maxdepth:o0.maxdepth,tiling:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"plot"},flip:G6.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:szt({colors:o0.marker.colors,line:o0.marker.line,pattern:lzt,editType:"calc"},azt("marker",{colorAttr:"colors",anim:!1})),leaf:o0.leaf,pathbar:G6.pathbar,text:G4.text,textinfo:o0.textinfo,texttemplate:nzt({editType:"plot"},{keys:yPe.eventDataKeys.concat(["label","value"])}),hovertext:G4.hovertext,hoverinfo:o0.hoverinfo,hovertemplate:izt({},{keys:yPe.eventDataKeys}),textfont:G4.textfont,insidetextfont:G4.insidetextfont,outsidetextfont:G6.outsidetextfont,textposition:G6.textposition,sort:G4.sort,root:o0.root,domain:ozt({name:"icicle",trace:!0,editType:"calc"})}});var fX=Te((B0r,_Pe)=>{"use strict";_Pe.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var APe=Te((O0r,wPe)=>{"use strict";var xPe=ei(),uzt=uX(),fzt=jl(),czt=zc().defaults,hzt=r0().handleText,dzt=Qb().TEXTPAD,pzt=S2().handleMarkerDefaults,bPe=_c(),vzt=bPe.hasColorscale,mzt=bPe.handleDefaults;wPe.exports=function(t,r,n,i){function a(d,p){return xPe.coerce(t,r,uzt,d,p)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var u=a("values");u&&u.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),a("tiling.orientation"),a("tiling.flip"),a("tiling.pad");var l=a("text");a("texttemplate"),r.texttemplate||a("textinfo",xPe.isArrayOrTypedArray(l)?"text+label":"label"),a("hovertext"),a("hovertemplate");var f=a("pathbar.visible"),c="auto";hzt(t,r,i,a,c,{hasPathbar:f,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition"),pzt(t,r,i,a);var h=r._hasColorscale=vzt(t,"marker","colors")||(t.marker||{}).coloraxis;h&&mzt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",h?1:.7),r._hovered={marker:{line:{width:2,color:fzt.contrast(i.paper_bgcolor)}}},f&&(a("pathbar.thickness",r.pathbar.textfont.size+2*dzt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),czt(r,i,a),r._length=null}});var SPe=Te((q0r,TPe)=>{"use strict";var yzt=ei(),gzt=fX();TPe.exports=function(t,r){function n(i,a){return yzt.coerce(t,r,gzt,i,a)}n("iciclecolorway",r.colorway),n("extendiciclecolors")}});var hX=Te(cX=>{"use strict";var MPe=C4();cX.calc=function(e,t){return MPe.calc(e,t)};cX.crossTraceCalc=function(e){return MPe._runCrossTraceCalc("icicle",e)}});var kPe=Te((U0r,EPe)=>{"use strict";var _zt=E4(),xzt=Qj();EPe.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.orientation==="h",s=n.maxDepth,u=r[0],l=r[1];s&&(u=(t.height+1)*r[0]/Math.min(t.height+1,s),l=(t.height+1)*r[1]/Math.min(t.height+1,s));var f=_zt.partition().padding(n.pad.inner).size(o?[r[1],u]:[r[0],l])(t);return(o||i||a)&&xzt(f,r,{swapXY:o,flipX:i,flipY:a}),f}});var dX=Te((V0r,IPe)=>{"use strict";var CPe=Jl(),LPe=jl(),PPe=ei(),bzt=bp().resizeText,wzt=F6();function Azt(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");bzt(e,t,"icicle"),t.each(function(r){var n=CPe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){CPe.select(this).call(zPe,o,a,e)})})}function zPe(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=PPe.castOption(r,o,"marker.line.color")||LPe.defaultLine,u=PPe.castOption(r,o,"marker.line.width")||0;e.call(wzt,t,r,n).style("stroke-width",u).call(LPe.stroke,s).style("opacity",a?r.leaf.opacity:null)}IPe.exports={style:Azt,styleOne:zPe}});var OPe=Te((G0r,BPe)=>{"use strict";var RPe=Jl(),H6=ei(),DPe=Mu(),Tzt=Zf(),Szt=kPe(),FPe=dX().styleOne,pX=D2(),FT=Kg(),Mzt=N4(),Ezt=O6().formatSliceLabel,vX=!1;BPe.exports=function(t,r,n,i,a){var o=a.width,s=a.height,u=a.viewX,l=a.viewY,f=a.pathSlice,c=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,p=a.handleSlicesExit,x=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,v=a.prevEntry,k={},E=t._context.staticPlot,T=t._fullLayout,L=r[0],_=L.trace,C=_.textposition.indexOf("left")!==-1,S=_.textposition.indexOf("right")!==-1,m=_.textposition.indexOf("bottom")!==-1,P=Szt(n,[o,s],{flipX:_.tiling.flip.indexOf("x")>-1,flipY:_.tiling.flip.indexOf("y")>-1,orientation:_.tiling.orientation,pad:{inner:_.tiling.pad},maxDepth:_._maxDepth}),A=P.descendants(),B=1/0,F=-1/0;A.forEach(function(N){var W=N.depth;W>=_._maxDepth?(N.x0=N.x1=(N.x0+N.x1)/2,N.y0=N.y1=(N.y0+N.y1)/2):(B=Math.min(B,W),F=Math.max(F,W))}),i=i.data(A,FT.getPtId),_._maxVisibleLayers=isFinite(F)?F-B+1:0,i.enter().append("g").classed("slice",!0),p(i,vX,k,[o,s],f),i.order();var U=null;if(d&&v){var G=FT.getPtId(v);i.each(function(N){U===null&&FT.getPtId(N)===G&&(U={x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1})})}var j=function(){return U||{x0:0,x1:o,y0:0,y1:s}},H=i;return d&&(H=H.transition().each("end",function(){var N=RPe.select(this);FT.setSliceCursor(N,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),H.each(function(N){N._x0=u(N.x0),N._x1=u(N.x1),N._y0=l(N.y0),N._y1=l(N.y1),N._hoverX=u(N.x1-_.tiling.pad),N._hoverY=l(m?N.y1-_.tiling.pad/2:N.y0+_.tiling.pad/2);var W=RPe.select(this),re=H6.ensureSingle(W,"path","surface",function(Ce){Ce.style("pointer-events",E?"none":"all")});d?re.transition().attrTween("d",function(Ce){var de=x(Ce,vX,j(),[o,s],{orientation:_.tiling.orientation,flipX:_.tiling.flip.indexOf("x")>-1,flipY:_.tiling.flip.indexOf("y")>-1});return function(te){return f(de(te))}}):re.attr("d",f),W.call(Mzt,n,t,r,{styleOne:FPe,eventDataKeys:pX.eventDataKeys,transitionTime:pX.CLICK_TRANSITION_TIME,transitionEasing:pX.CLICK_TRANSITION_EASING}).call(FT.setSliceCursor,t,{isTransitioning:t._transitioning}),re.call(FPe,N,_,t,{hovered:!1}),N.x0===N.x1||N.y0===N.y1?N._text="":N._text=Ezt(N,n,_,r,T)||"";var ae=H6.ensureSingle(W,"g","slicetext"),be=H6.ensureSingle(ae,"text","",function(Ce){Ce.attr("data-notex",1)}),Pe=H6.ensureUniformFontSize(t,FT.determineTextFont(_,N,T.font));be.text(N._text||" ").classed("slicetext",!0).attr("text-anchor",S?"end":C?"start":"middle").call(DPe.font,Pe).call(Tzt.convertToTspans,t),N.textBB=DPe.bBox(be.node()),N.transform=c(N,{fontSize:Pe.size}),N.transform.fontSize=Pe.size,d?be.transition().attrTween("transform",function(Ce){var de=b(Ce,vX,j(),[o,s]);return function(te){return h(de(te))}}):be.attr("transform",h(N))}),U}});var NPe=Te((H0r,qPe)=>{"use strict";var kzt=oX(),Czt=OPe();qPe.exports=function(t,r,n,i){return kzt(t,r,n,i,{type:"icicle",drawDescendants:Czt})}});var VPe=Te((W0r,UPe)=>{"use strict";UPe.exports={moduleType:"trace",name:"icicle",basePlotModule:mPe(),categories:[],animatable:!0,attributes:uX(),layoutAttributes:fX(),supplyDefaults:APe(),supplyLayoutDefaults:SPe(),calc:hX().calc,crossTraceCalc:hX().crossTraceCalc,plot:NPe(),style:dX().style,colorbar:ep(),meta:{}}});var HPe=Te((j0r,GPe)=>{"use strict";GPe.exports=VPe()});var jPe=Te(BT=>{"use strict";var WPe=Cc();BT.name="funnelarea";BT.plot=function(e,t,r,n){WPe.plotBasePlot(BT.name,e,t,r,n)};BT.clean=function(e,t,r,n){WPe.cleanBasePlot(BT.name,e,t,r,n)}});var mX=Te((Z0r,XPe)=>{"use strict";var ap=T2(),Lzt=Vf(),Pzt=zc().attributes,zzt=Hu().hovertemplateAttrs,Izt=Hu().texttemplateAttrs,O2=Su().extendFlat;XPe.exports={labels:ap.labels,label0:ap.label0,dlabel:ap.dlabel,values:ap.values,marker:{colors:ap.marker.colors,line:{color:O2({},ap.marker.line.color,{dflt:null}),width:O2({},ap.marker.line.width,{dflt:1}),editType:"calc"},pattern:ap.marker.pattern,editType:"calc"},text:ap.text,hovertext:ap.hovertext,scalegroup:O2({},ap.scalegroup,{}),textinfo:O2({},ap.textinfo,{flags:["label","text","value","percent"]}),texttemplate:Izt({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:O2({},Lzt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:zzt({},{keys:["label","color","value","text","percent"]}),textposition:O2({},ap.textposition,{values:["inside","none"],dflt:"inside"}),textfont:ap.textfont,insidetextfont:ap.insidetextfont,title:{text:ap.title.text,font:ap.title.font,position:O2({},ap.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:Pzt({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}});var yX=Te((Y0r,ZPe)=>{"use strict";var Rzt=c6().hiddenlabels;ZPe.exports={hiddenlabels:Rzt,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var JPe=Te((K0r,KPe)=>{"use strict";var YPe=ei(),Dzt=mX(),Fzt=zc().defaults,Bzt=r0().handleText,Ozt=S2().handleLabelsAndValues,qzt=S2().handleMarkerDefaults;KPe.exports=function(t,r,n,i){function a(x,b){return YPe.coerce(t,r,Dzt,x,b)}var o=a("labels"),s=a("values"),u=Ozt(o,s),l=u.len;if(r._hasLabels=u.hasLabels,r._hasValues=u.hasValues,!r._hasLabels&&r._hasValues&&(a("label0"),a("dlabel")),!l){r.visible=!1;return}r._length=l,qzt(t,r,i,a),a("scalegroup");var f=a("text"),c=a("texttemplate"),h;if(c||(h=a("textinfo",Array.isArray(f)?"text+percent":"percent")),a("hovertext"),a("hovertemplate"),c||h&&h!=="none"){var d=a("textposition");Bzt(t,r,i,a,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&a("textposition","none");Fzt(r,i,a);var p=a("title.text");p&&(a("title.position"),YPe.coerceFont(a,"title.font",i.font)),a("aspectratio"),a("baseratio")}});var QPe=Te((J0r,$Pe)=>{"use strict";var Nzt=ei(),Uzt=yX();$Pe.exports=function(t,r){function n(i,a){return Nzt.coerce(t,r,Uzt,i,a)}n("hiddenlabels"),n("funnelareacolorway",r.colorway),n("extendfunnelareacolors")}});var gX=Te(($0r,tze)=>{"use strict";var eze=_T();function Vzt(e,t){return eze.calc(e,t)}function Gzt(e){eze.crossTraceCalc(e,{type:"funnelarea"})}tze.exports={calc:Vzt,crossTraceCalc:Gzt}});var oze=Te((Q0r,aze)=>{"use strict";var q2=Jl(),_X=Mu(),J_=ei(),Hzt=J_.strScale,rze=J_.strTranslate,ize=Zf(),Wzt=i2(),jzt=Wzt.toMoveInsideBar,nze=bp(),Xzt=nze.recordMinTextSize,Zzt=nze.clearMinTextSize,Yzt=u_(),OT=v6(),Kzt=OT.attachFxHandlers,Jzt=OT.determineInsideTextFont,$zt=OT.layoutAreas,Qzt=OT.prerenderTitles,eIt=OT.positionTitleOutside,tIt=OT.formatSliceLabel;aze.exports=function(t,r){var n=t._context.staticPlot,i=t._fullLayout;Zzt("funnelarea",i),Qzt(r,t),$zt(r,i._size),J_.makeTraceGroups(i._funnelarealayer,r,"trace").each(function(a){var o=q2.select(this),s=a[0],u=s.trace;iIt(a),o.each(function(){var l=q2.select(this).selectAll("g.slice").data(a);l.enter().append("g").classed("slice",!0),l.exit().remove(),l.each(function(c,h){if(c.hidden){q2.select(this).selectAll("path,g").remove();return}c.pointNumber=c.i,c.curveNumber=u.index;var d=s.cx,p=s.cy,x=q2.select(this),b=x.selectAll("path.surface").data([c]);b.enter().append("path").classed("surface",!0).style({"pointer-events":n?"none":"all"}),x.call(Kzt,t,a);var v="M"+(d+c.TR[0])+","+(p+c.TR[1])+xX(c.TR,c.BR)+xX(c.BR,c.BL)+xX(c.BL,c.TL)+"Z";b.attr("d",v),tIt(t,c,s);var k=Yzt.castOption(u.textposition,c.pts),E=x.selectAll("g.slicetext").data(c.text&&k!=="none"?[0]:[]);E.enter().append("g").classed("slicetext",!0),E.exit().remove(),E.each(function(){var T=J_.ensureSingle(q2.select(this),"text","",function(B){B.attr("data-notex",1)}),L=J_.ensureUniformFontSize(t,Jzt(u,c,i.font));T.text(c.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(_X.font,L).call(ize.convertToTspans,t);var _=_X.bBox(T.node()),C,S,m,P=Math.min(c.BL[1],c.BR[1])+p,A=Math.max(c.TL[1],c.TR[1])+p;S=Math.max(c.TL[0],c.BL[0])+d,m=Math.min(c.TR[0],c.BR[0])+d,C=jzt(S,m,P,A,_,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),C.fontSize=L.size,Xzt(u.type,C,i),a[h].transform=C,J_.setTransormAndDisplay(T,C)})});var f=q2.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);f.enter().append("g").classed("titletext",!0),f.exit().remove(),f.each(function(){var c=J_.ensureSingle(q2.select(this),"text","",function(p){p.attr("data-notex",1)}),h=u.title.text;u._meta&&(h=J_.templateString(h,u._meta)),c.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(_X.font,u.title.font).call(ize.convertToTspans,t);var d=eIt(s,i._size);c.attr("transform",rze(d.x,d.y)+Hzt(Math.min(1,d.scale))+rze(d.tx,d.ty))})})})};function xX(e,t){var r=t[0]-e[0],n=t[1]-e[1];return"l"+r+","+n}function rIt(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function iIt(e){if(!e.length)return;var t=e[0],r=t.trace,n=r.aspectratio,i=r.baseratio;i>.999&&(i=.999);var a=Math.pow(i,2),o=t.vTotal,s=o*a/(1-a),u=o,l=s/o;function f(){var F=Math.sqrt(l);return{x:F,y:-F}}function c(){var F=f();return[F.x,F.y]}var h,d=[];d.push(c());var p,x;for(p=e.length-1;p>-1;p--)if(x=e[p],!x.hidden){var b=x.v/u;l+=b,d.push(c())}var v=1/0,k=-1/0;for(p=0;p-1;p--)if(x=e[p],!x.hidden){P+=1;var A=d[P][0],B=d[P][1];x.TL=[-A,B],x.TR=[A,B],x.BL=S,x.BR=m,x.pxmid=rIt(x.TR,x.BR),S=x.TL,m=x.TR}}});var uze=Te((emr,lze)=>{"use strict";var sze=Jl(),nIt=D3(),aIt=bp().resizeText;lze.exports=function(t){var r=t._fullLayout._funnelarealayer.selectAll(".trace");aIt(t,r,"funnelarea"),r.each(function(n){var i=n[0],a=i.trace,o=sze.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){sze.select(this).call(nIt,s,a,t)})})}});var cze=Te((tmr,fze)=>{"use strict";fze.exports={moduleType:"trace",name:"funnelarea",basePlotModule:jPe(),categories:["pie-like","funnelarea","showLegend"],attributes:mX(),layoutAttributes:yX(),supplyDefaults:JPe(),supplyLayoutDefaults:QPe(),calc:gX().calc,crossTraceCalc:gX().crossTraceCalc,plot:oze(),style:uze(),styleOne:D3(),meta:{}}});var dze=Te((rmr,hze)=>{"use strict";hze.exports=cze()});var qd=Te((imr,pze)=>{(function(){var e={1964:function(i,a,o){i.exports={alpha_shape:o(3502),convex_hull:o(7352),delaunay_triangulate:o(7642),gl_cone3d:o(6405),gl_error3d:o(9165),gl_line3d:o(5714),gl_mesh3d:o(7201),gl_plot3d:o(4100),gl_scatter3d:o(8418),gl_streamtube3d:o(7815),gl_surface3d:o(9499),ndarray:o(9618),ndarray_linear_interpolate:o(4317)}},4793:function(i,a,o){"use strict";var s;function u(_e,fe){if(!(_e instanceof fe))throw new TypeError("Cannot call a class as a function")}function l(_e,fe){for(var pe=0;peS)throw new RangeError('The value "'+_e+'" is invalid for option "size"');var fe=new Uint8Array(_e);return Object.setPrototypeOf(fe,A.prototype),fe}function A(_e,fe,pe){if(typeof _e=="number"){if(typeof fe=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return G(_e)}return B(_e,fe,pe)}A.poolSize=8192;function B(_e,fe,pe){if(typeof _e=="string")return j(_e,fe);if(ArrayBuffer.isView(_e))return N(_e);if(_e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+T(_e));if(xe(_e,ArrayBuffer)||_e&&xe(_e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(xe(_e,SharedArrayBuffer)||_e&&xe(_e.buffer,SharedArrayBuffer)))return W(_e,fe,pe);if(typeof _e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var mt=_e.valueOf&&_e.valueOf();if(mt!=null&&mt!==_e)return A.from(mt,fe,pe);var It=re(_e);if(It)return It;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof _e[Symbol.toPrimitive]=="function")return A.from(_e[Symbol.toPrimitive]("string"),fe,pe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+T(_e))}A.from=function(_e,fe,pe){return B(_e,fe,pe)},Object.setPrototypeOf(A.prototype,Uint8Array.prototype),Object.setPrototypeOf(A,Uint8Array);function F(_e){if(typeof _e!="number")throw new TypeError('"size" argument must be of type number');if(_e<0)throw new RangeError('The value "'+_e+'" is invalid for option "size"')}function U(_e,fe,pe){return F(_e),_e<=0?P(_e):fe!==void 0?typeof pe=="string"?P(_e).fill(fe,pe):P(_e).fill(fe):P(_e)}A.alloc=function(_e,fe,pe){return U(_e,fe,pe)};function G(_e){return F(_e),P(_e<0?0:ae(_e)|0)}A.allocUnsafe=function(_e){return G(_e)},A.allocUnsafeSlow=function(_e){return G(_e)};function j(_e,fe){if((typeof fe!="string"||fe==="")&&(fe="utf8"),!A.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe);var pe=Pe(_e,fe)|0,mt=P(pe),It=mt.write(_e,fe);return It!==pe&&(mt=mt.slice(0,It)),mt}function H(_e){for(var fe=_e.length<0?0:ae(_e.length)|0,pe=P(fe),mt=0;mt=S)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+S.toString(16)+" bytes");return _e|0}function be(_e){return+_e!=_e&&(_e=0),A.alloc(+_e)}A.isBuffer=function(fe){return fe!=null&&fe._isBuffer===!0&&fe!==A.prototype},A.compare=function(fe,pe){if(xe(fe,Uint8Array)&&(fe=A.from(fe,fe.offset,fe.byteLength)),xe(pe,Uint8Array)&&(pe=A.from(pe,pe.offset,pe.byteLength)),!A.isBuffer(fe)||!A.isBuffer(pe))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(fe===pe)return 0;for(var mt=fe.length,It=pe.length,Pt=0,rr=Math.min(mt,It);PtIt.length?(A.isBuffer(rr)||(rr=A.from(rr)),rr.copy(It,Pt)):Uint8Array.prototype.set.call(It,rr,Pt);else if(A.isBuffer(rr))rr.copy(It,Pt);else throw new TypeError('"list" argument must be an Array of Buffers');Pt+=rr.length}return It};function Pe(_e,fe){if(A.isBuffer(_e))return _e.length;if(ArrayBuffer.isView(_e)||xe(_e,ArrayBuffer))return _e.byteLength;if(typeof _e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+T(_e));var pe=_e.length,mt=arguments.length>2&&arguments[2]===!0;if(!mt&&pe===0)return 0;for(var It=!1;;)switch(fe){case"ascii":case"latin1":case"binary":return pe;case"utf8":case"utf-8":return lr(_e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe*2;case"hex":return pe>>>1;case"base64":return Ht(_e).length;default:if(It)return mt?-1:lr(_e).length;fe=(""+fe).toLowerCase(),It=!0}}A.byteLength=Pe;function Ce(_e,fe,pe){var mt=!1;if((fe===void 0||fe<0)&&(fe=0),fe>this.length||((pe===void 0||pe>this.length)&&(pe=this.length),pe<=0)||(pe>>>=0,fe>>>=0,pe<=fe))return"";for(_e||(_e="utf8");;)switch(_e){case"hex":return nt(this,fe,pe);case"utf8":case"utf-8":return ce(this,fe,pe);case"ascii":return bt(this,fe,pe);case"latin1":case"binary":return Nt(this,fe,pe);case"base64":return Ne(this,fe,pe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ye(this,fe,pe);default:if(mt)throw new TypeError("Unknown encoding: "+_e);_e=(_e+"").toLowerCase(),mt=!0}}A.prototype._isBuffer=!0;function de(_e,fe,pe){var mt=_e[fe];_e[fe]=_e[pe],_e[pe]=mt}A.prototype.swap16=function(){var fe=this.length;if(fe%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var pe=0;pepe&&(fe+=" ... "),""},C&&(A.prototype[C]=A.prototype.inspect),A.prototype.compare=function(fe,pe,mt,It,Pt){if(xe(fe,Uint8Array)&&(fe=A.from(fe,fe.offset,fe.byteLength)),!A.isBuffer(fe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+T(fe));if(pe===void 0&&(pe=0),mt===void 0&&(mt=fe?fe.length:0),It===void 0&&(It=0),Pt===void 0&&(Pt=this.length),pe<0||mt>fe.length||It<0||Pt>this.length)throw new RangeError("out of range index");if(It>=Pt&&pe>=mt)return 0;if(It>=Pt)return-1;if(pe>=mt)return 1;if(pe>>>=0,mt>>>=0,It>>>=0,Pt>>>=0,this===fe)return 0;for(var rr=Pt-It,Wr=mt-pe,Nr=Math.min(rr,Wr),Er=this.slice(It,Pt),Br=fe.slice(pe,mt),mi=0;mi2147483647?pe=2147483647:pe<-2147483648&&(pe=-2147483648),pe=+pe,Oe(pe)&&(pe=It?0:_e.length-1),pe<0&&(pe=_e.length+pe),pe>=_e.length){if(It)return-1;pe=_e.length-1}else if(pe<0)if(It)pe=0;else return-1;if(typeof fe=="string"&&(fe=A.from(fe,mt)),A.isBuffer(fe))return fe.length===0?-1:ke(_e,fe,pe,mt,It);if(typeof fe=="number")return fe=fe&255,typeof Uint8Array.prototype.indexOf=="function"?It?Uint8Array.prototype.indexOf.call(_e,fe,pe):Uint8Array.prototype.lastIndexOf.call(_e,fe,pe):ke(_e,[fe],pe,mt,It);throw new TypeError("val must be string, number or Buffer")}function ke(_e,fe,pe,mt,It){var Pt=1,rr=_e.length,Wr=fe.length;if(mt!==void 0&&(mt=String(mt).toLowerCase(),mt==="ucs2"||mt==="ucs-2"||mt==="utf16le"||mt==="utf-16le")){if(_e.length<2||fe.length<2)return-1;Pt=2,rr/=2,Wr/=2,pe/=2}function Nr(Ii,Ci){return Pt===1?Ii[Ci]:Ii.readUInt16BE(Ci*Pt)}var Er;if(It){var Br=-1;for(Er=pe;Errr&&(pe=rr-Wr),Er=pe;Er>=0;Er--){for(var mi=!0,Di=0;DiIt&&(mt=It)):mt=It;var Pt=fe.length;mt>Pt/2&&(mt=Pt/2);var rr;for(rr=0;rr>>0,isFinite(mt)?(mt=mt>>>0,It===void 0&&(It="utf8")):(It=mt,mt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Pt=this.length-pe;if((mt===void 0||mt>Pt)&&(mt=Pt),fe.length>0&&(mt<0||pe<0)||pe>this.length)throw new RangeError("Attempt to write outside buffer bounds");It||(It="utf8");for(var rr=!1;;)switch(It){case"hex":return Ee(this,fe,pe,mt);case"utf8":case"utf-8":return Me(this,fe,pe,mt);case"ascii":case"latin1":case"binary":return Ue(this,fe,pe,mt);case"base64":return Fe(this,fe,pe,mt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,fe,pe,mt);default:if(rr)throw new TypeError("Unknown encoding: "+It);It=(""+It).toLowerCase(),rr=!0}},A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ne(_e,fe,pe){return fe===0&&pe===_e.length?L.fromByteArray(_e):L.fromByteArray(_e.slice(fe,pe))}function ce(_e,fe,pe){pe=Math.min(_e.length,pe);for(var mt=[],It=fe;It239?4:Pt>223?3:Pt>191?2:1;if(It+Wr<=pe){var Nr=void 0,Er=void 0,Br=void 0,mi=void 0;switch(Wr){case 1:Pt<128&&(rr=Pt);break;case 2:Nr=_e[It+1],(Nr&192)===128&&(mi=(Pt&31)<<6|Nr&63,mi>127&&(rr=mi));break;case 3:Nr=_e[It+1],Er=_e[It+2],(Nr&192)===128&&(Er&192)===128&&(mi=(Pt&15)<<12|(Nr&63)<<6|Er&63,mi>2047&&(mi<55296||mi>57343)&&(rr=mi));break;case 4:Nr=_e[It+1],Er=_e[It+2],Br=_e[It+3],(Nr&192)===128&&(Er&192)===128&&(Br&192)===128&&(mi=(Pt&15)<<18|(Nr&63)<<12|(Er&63)<<6|Br&63,mi>65535&&mi<1114112&&(rr=mi))}}rr===null?(rr=65533,Wr=1):rr>65535&&(rr-=65536,mt.push(rr>>>10&1023|55296),rr=56320|rr&1023),mt.push(rr),It+=Wr}return it(mt)}var Ke=4096;function it(_e){var fe=_e.length;if(fe<=Ke)return String.fromCharCode.apply(String,_e);for(var pe="",mt=0;mtmt)&&(pe=mt);for(var It="",Pt=fe;Ptmt&&(fe=mt),pe<0?(pe+=mt,pe<0&&(pe=0)):pe>mt&&(pe=mt),pepe)throw new RangeError("Trying to access beyond buffer length")}A.prototype.readUintLE=A.prototype.readUIntLE=function(fe,pe,mt){fe=fe>>>0,pe=pe>>>0,mt||kt(fe,pe,this.length);for(var It=this[fe],Pt=1,rr=0;++rr>>0,pe=pe>>>0,mt||kt(fe,pe,this.length);for(var It=this[fe+--pe],Pt=1;pe>0&&(Pt*=256);)It+=this[fe+--pe]*Pt;return It},A.prototype.readUint8=A.prototype.readUInt8=function(fe,pe){return fe=fe>>>0,pe||kt(fe,1,this.length),this[fe]},A.prototype.readUint16LE=A.prototype.readUInt16LE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,2,this.length),this[fe]|this[fe+1]<<8},A.prototype.readUint16BE=A.prototype.readUInt16BE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,2,this.length),this[fe]<<8|this[fe+1]},A.prototype.readUint32LE=A.prototype.readUInt32LE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,4,this.length),(this[fe]|this[fe+1]<<8|this[fe+2]<<16)+this[fe+3]*16777216},A.prototype.readUint32BE=A.prototype.readUInt32BE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,4,this.length),this[fe]*16777216+(this[fe+1]<<16|this[fe+2]<<8|this[fe+3])},A.prototype.readBigUInt64LE=De(function(fe){fe=fe>>>0,rt(fe,"offset");var pe=this[fe],mt=this[fe+7];(pe===void 0||mt===void 0)&&Qe(fe,this.length-8);var It=pe+this[++fe]*Math.pow(2,8)+this[++fe]*Math.pow(2,16)+this[++fe]*Math.pow(2,24),Pt=this[++fe]+this[++fe]*Math.pow(2,8)+this[++fe]*Math.pow(2,16)+mt*Math.pow(2,24);return BigInt(It)+(BigInt(Pt)<>>0,rt(fe,"offset");var pe=this[fe],mt=this[fe+7];(pe===void 0||mt===void 0)&&Qe(fe,this.length-8);var It=pe*Math.pow(2,24)+this[++fe]*Math.pow(2,16)+this[++fe]*Math.pow(2,8)+this[++fe],Pt=this[++fe]*Math.pow(2,24)+this[++fe]*Math.pow(2,16)+this[++fe]*Math.pow(2,8)+mt;return(BigInt(It)<>>0,pe=pe>>>0,mt||kt(fe,pe,this.length);for(var It=this[fe],Pt=1,rr=0;++rr=Pt&&(It-=Math.pow(2,8*pe)),It},A.prototype.readIntBE=function(fe,pe,mt){fe=fe>>>0,pe=pe>>>0,mt||kt(fe,pe,this.length);for(var It=pe,Pt=1,rr=this[fe+--It];It>0&&(Pt*=256);)rr+=this[fe+--It]*Pt;return Pt*=128,rr>=Pt&&(rr-=Math.pow(2,8*pe)),rr},A.prototype.readInt8=function(fe,pe){return fe=fe>>>0,pe||kt(fe,1,this.length),this[fe]&128?(255-this[fe]+1)*-1:this[fe]},A.prototype.readInt16LE=function(fe,pe){fe=fe>>>0,pe||kt(fe,2,this.length);var mt=this[fe]|this[fe+1]<<8;return mt&32768?mt|4294901760:mt},A.prototype.readInt16BE=function(fe,pe){fe=fe>>>0,pe||kt(fe,2,this.length);var mt=this[fe+1]|this[fe]<<8;return mt&32768?mt|4294901760:mt},A.prototype.readInt32LE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,4,this.length),this[fe]|this[fe+1]<<8|this[fe+2]<<16|this[fe+3]<<24},A.prototype.readInt32BE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,4,this.length),this[fe]<<24|this[fe+1]<<16|this[fe+2]<<8|this[fe+3]},A.prototype.readBigInt64LE=De(function(fe){fe=fe>>>0,rt(fe,"offset");var pe=this[fe],mt=this[fe+7];(pe===void 0||mt===void 0)&&Qe(fe,this.length-8);var It=this[fe+4]+this[fe+5]*Math.pow(2,8)+this[fe+6]*Math.pow(2,16)+(mt<<24);return(BigInt(It)<>>0,rt(fe,"offset");var pe=this[fe],mt=this[fe+7];(pe===void 0||mt===void 0)&&Qe(fe,this.length-8);var It=(pe<<24)+this[++fe]*Math.pow(2,16)+this[++fe]*Math.pow(2,8)+this[++fe];return(BigInt(It)<>>0,pe||kt(fe,4,this.length),_.read(this,fe,!0,23,4)},A.prototype.readFloatBE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,4,this.length),_.read(this,fe,!1,23,4)},A.prototype.readDoubleLE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,8,this.length),_.read(this,fe,!0,52,8)},A.prototype.readDoubleBE=function(fe,pe){return fe=fe>>>0,pe||kt(fe,8,this.length),_.read(this,fe,!1,52,8)};function At(_e,fe,pe,mt,It,Pt){if(!A.isBuffer(_e))throw new TypeError('"buffer" argument must be a Buffer instance');if(fe>It||fe_e.length)throw new RangeError("Index out of range")}A.prototype.writeUintLE=A.prototype.writeUIntLE=function(fe,pe,mt,It){if(fe=+fe,pe=pe>>>0,mt=mt>>>0,!It){var Pt=Math.pow(2,8*mt)-1;At(this,fe,pe,mt,Pt,0)}var rr=1,Wr=0;for(this[pe]=fe&255;++Wr>>0,mt=mt>>>0,!It){var Pt=Math.pow(2,8*mt)-1;At(this,fe,pe,mt,Pt,0)}var rr=mt-1,Wr=1;for(this[pe+rr]=fe&255;--rr>=0&&(Wr*=256);)this[pe+rr]=fe/Wr&255;return pe+mt},A.prototype.writeUint8=A.prototype.writeUInt8=function(fe,pe,mt){return fe=+fe,pe=pe>>>0,mt||At(this,fe,pe,1,255,0),this[pe]=fe&255,pe+1},A.prototype.writeUint16LE=A.prototype.writeUInt16LE=function(fe,pe,mt){return fe=+fe,pe=pe>>>0,mt||At(this,fe,pe,2,65535,0),this[pe]=fe&255,this[pe+1]=fe>>>8,pe+2},A.prototype.writeUint16BE=A.prototype.writeUInt16BE=function(fe,pe,mt){return fe=+fe,pe=pe>>>0,mt||At(this,fe,pe,2,65535,0),this[pe]=fe>>>8,this[pe+1]=fe&255,pe+2},A.prototype.writeUint32LE=A.prototype.writeUInt32LE=function(fe,pe,mt){return fe=+fe,pe=pe>>>0,mt||At(this,fe,pe,4,4294967295,0),this[pe+3]=fe>>>24,this[pe+2]=fe>>>16,this[pe+1]=fe>>>8,this[pe]=fe&255,pe+4},A.prototype.writeUint32BE=A.prototype.writeUInt32BE=function(fe,pe,mt){return fe=+fe,pe=pe>>>0,mt||At(this,fe,pe,4,4294967295,0),this[pe]=fe>>>24,this[pe+1]=fe>>>16,this[pe+2]=fe>>>8,this[pe+3]=fe&255,pe+4};function St(_e,fe,pe,mt,It){Xe(fe,mt,It,_e,pe,7);var Pt=Number(fe&BigInt(4294967295));_e[pe++]=Pt,Pt=Pt>>8,_e[pe++]=Pt,Pt=Pt>>8,_e[pe++]=Pt,Pt=Pt>>8,_e[pe++]=Pt;var rr=Number(fe>>BigInt(32)&BigInt(4294967295));return _e[pe++]=rr,rr=rr>>8,_e[pe++]=rr,rr=rr>>8,_e[pe++]=rr,rr=rr>>8,_e[pe++]=rr,pe}function Bt(_e,fe,pe,mt,It){Xe(fe,mt,It,_e,pe,7);var Pt=Number(fe&BigInt(4294967295));_e[pe+7]=Pt,Pt=Pt>>8,_e[pe+6]=Pt,Pt=Pt>>8,_e[pe+5]=Pt,Pt=Pt>>8,_e[pe+4]=Pt;var rr=Number(fe>>BigInt(32)&BigInt(4294967295));return _e[pe+3]=rr,rr=rr>>8,_e[pe+2]=rr,rr=rr>>8,_e[pe+1]=rr,rr=rr>>8,_e[pe]=rr,pe+8}A.prototype.writeBigUInt64LE=De(function(fe){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return St(this,fe,pe,BigInt(0),BigInt("0xffffffffffffffff"))}),A.prototype.writeBigUInt64BE=De(function(fe){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Bt(this,fe,pe,BigInt(0),BigInt("0xffffffffffffffff"))}),A.prototype.writeIntLE=function(fe,pe,mt,It){if(fe=+fe,pe=pe>>>0,!It){var Pt=Math.pow(2,8*mt-1);At(this,fe,pe,mt,Pt-1,-Pt)}var rr=0,Wr=1,Nr=0;for(this[pe]=fe&255;++rr>0)-Nr&255;return pe+mt},A.prototype.writeIntBE=function(fe,pe,mt,It){if(fe=+fe,pe=pe>>>0,!It){var Pt=Math.pow(2,8*mt-1);At(this,fe,pe,mt,Pt-1,-Pt)}var rr=mt-1,Wr=1,Nr=0;for(this[pe+rr]=fe&255;--rr>=0&&(Wr*=256);)fe<0&&Nr===0&&this[pe+rr+1]!==0&&(Nr=1),this[pe+rr]=(fe/Wr>>0)-Nr&255;return pe+mt},A.prototype.writeInt8=function(fe,pe,mt){return fe=+fe,pe=pe>>>0,mt||At(this,fe,pe,1,127,-128),fe<0&&(fe=255+fe+1),this[pe]=fe&255,pe+1},A.prototype.writeInt16LE=function(fe,pe,mt){return fe=+fe,pe=pe>>>0,mt||At(this,fe,pe,2,32767,-32768),this[pe]=fe&255,this[pe+1]=fe>>>8,pe+2},A.prototype.writeInt16BE=function(fe,pe,mt){return fe=+fe,pe=pe>>>0,mt||At(this,fe,pe,2,32767,-32768),this[pe]=fe>>>8,this[pe+1]=fe&255,pe+2},A.prototype.writeInt32LE=function(fe,pe,mt){return fe=+fe,pe=pe>>>0,mt||At(this,fe,pe,4,2147483647,-2147483648),this[pe]=fe&255,this[pe+1]=fe>>>8,this[pe+2]=fe>>>16,this[pe+3]=fe>>>24,pe+4},A.prototype.writeInt32BE=function(fe,pe,mt){return fe=+fe,pe=pe>>>0,mt||At(this,fe,pe,4,2147483647,-2147483648),fe<0&&(fe=4294967295+fe+1),this[pe]=fe>>>24,this[pe+1]=fe>>>16,this[pe+2]=fe>>>8,this[pe+3]=fe&255,pe+4},A.prototype.writeBigInt64LE=De(function(fe){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return St(this,fe,pe,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),A.prototype.writeBigInt64BE=De(function(fe){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Bt(this,fe,pe,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Zt(_e,fe,pe,mt,It,Pt){if(pe+mt>_e.length)throw new RangeError("Index out of range");if(pe<0)throw new RangeError("Index out of range")}function Et(_e,fe,pe,mt,It){return fe=+fe,pe=pe>>>0,It||Zt(_e,fe,pe,4,34028234663852886e22,-34028234663852886e22),_.write(_e,fe,pe,mt,23,4),pe+4}A.prototype.writeFloatLE=function(fe,pe,mt){return Et(this,fe,pe,!0,mt)},A.prototype.writeFloatBE=function(fe,pe,mt){return Et(this,fe,pe,!1,mt)};function Ae(_e,fe,pe,mt,It){return fe=+fe,pe=pe>>>0,It||Zt(_e,fe,pe,8,17976931348623157e292,-17976931348623157e292),_.write(_e,fe,pe,mt,52,8),pe+8}A.prototype.writeDoubleLE=function(fe,pe,mt){return Ae(this,fe,pe,!0,mt)},A.prototype.writeDoubleBE=function(fe,pe,mt){return Ae(this,fe,pe,!1,mt)},A.prototype.copy=function(fe,pe,mt,It){if(!A.isBuffer(fe))throw new TypeError("argument should be a Buffer");if(mt||(mt=0),!It&&It!==0&&(It=this.length),pe>=fe.length&&(pe=fe.length),pe||(pe=0),It>0&&It=this.length)throw new RangeError("Index out of range");if(It<0)throw new RangeError("sourceEnd out of bounds");It>this.length&&(It=this.length),fe.length-pe>>0,mt=mt===void 0?this.length:mt>>>0,fe||(fe=0);var rr;if(typeof fe=="number")for(rr=pe;rrMath.pow(2,32)?It=pt(String(pe)):typeof pe=="bigint"&&(It=String(pe),(pe>Math.pow(BigInt(2),BigInt(32))||pe<-Math.pow(BigInt(2),BigInt(32)))&&(It=pt(It)),It+="n"),mt+=" It must be ".concat(fe,". Received ").concat(It),mt},RangeError);function pt(_e){for(var fe="",pe=_e.length,mt=_e[0]==="-"?1:0;pe>=mt+4;pe-=3)fe="_".concat(_e.slice(pe-3,pe)).concat(fe);return"".concat(_e.slice(0,pe)).concat(fe)}function at(_e,fe,pe){rt(fe,"offset"),(_e[fe]===void 0||_e[fe+pe]===void 0)&&Qe(fe,_e.length-(pe+1))}function Xe(_e,fe,pe,mt,It,Pt){if(_e>pe||_e3?fe===0||fe===BigInt(0)?Wr=">= 0".concat(rr," and < 2").concat(rr," ** ").concat((Pt+1)*8).concat(rr):Wr=">= -(2".concat(rr," ** ").concat((Pt+1)*8-1).concat(rr,") and < 2 ** ")+"".concat((Pt+1)*8-1).concat(rr):Wr=">= ".concat(fe).concat(rr," and <= ").concat(pe).concat(rr),new ot.ERR_OUT_OF_RANGE("value",Wr,_e)}at(mt,It,Pt)}function rt(_e,fe){if(typeof _e!="number")throw new ot.ERR_INVALID_ARG_TYPE(fe,"number",_e)}function Qe(_e,fe,pe){throw Math.floor(_e)!==_e?(rt(_e,pe),new ot.ERR_OUT_OF_RANGE(pe||"offset","an integer",_e)):fe<0?new ot.ERR_BUFFER_OUT_OF_BOUNDS:new ot.ERR_OUT_OF_RANGE(pe||"offset",">= ".concat(pe?1:0," and <= ").concat(fe),_e)}var zt=/[^+/0-9A-Za-z-_]/g;function Yt(_e){if(_e=_e.split("=")[0],_e=_e.trim().replace(zt,""),_e.length<2)return"";for(;_e.length%4!==0;)_e=_e+"=";return _e}function lr(_e,fe){fe=fe||1/0;for(var pe,mt=_e.length,It=null,Pt=[],rr=0;rr55295&&pe<57344){if(!It){if(pe>56319){(fe-=3)>-1&&Pt.push(239,191,189);continue}else if(rr+1===mt){(fe-=3)>-1&&Pt.push(239,191,189);continue}It=pe;continue}if(pe<56320){(fe-=3)>-1&&Pt.push(239,191,189),It=pe;continue}pe=(It-55296<<10|pe-56320)+65536}else It&&(fe-=3)>-1&&Pt.push(239,191,189);if(It=null,pe<128){if((fe-=1)<0)break;Pt.push(pe)}else if(pe<2048){if((fe-=2)<0)break;Pt.push(pe>>6|192,pe&63|128)}else if(pe<65536){if((fe-=3)<0)break;Pt.push(pe>>12|224,pe>>6&63|128,pe&63|128)}else if(pe<1114112){if((fe-=4)<0)break;Pt.push(pe>>18|240,pe>>12&63|128,pe>>6&63|128,pe&63|128)}else throw new Error("Invalid code point")}return Pt}function mr(_e){for(var fe=[],pe=0;pe<_e.length;++pe)fe.push(_e.charCodeAt(pe)&255);return fe}function _r(_e,fe){for(var pe,mt,It,Pt=[],rr=0;rr<_e.length&&!((fe-=2)<0);++rr)pe=_e.charCodeAt(rr),mt=pe>>8,It=pe%256,Pt.push(It),Pt.push(mt);return Pt}function Ht(_e){return L.toByteArray(Yt(_e))}function Re(_e,fe,pe,mt){var It;for(It=0;It=fe.length||It>=_e.length);++It)fe[It+pe]=_e[It];return It}function xe(_e,fe){return _e instanceof fe||_e!=null&&_e.constructor!=null&&_e.constructor.name!=null&&_e.constructor.name===fe.name}function Oe(_e){return _e!==_e}var Ie=function(){for(var _e="0123456789abcdef",fe=new Array(256),pe=0;pe<16;++pe)for(var mt=pe*16,It=0;It<16;++It)fe[mt+It]=_e[pe]+_e[It];return fe}();function De(_e){return typeof BigInt=="undefined"?ct:_e}function ct(){throw new Error("BigInt not supported")}},9216:function(i){"use strict";i.exports=u,i.exports.isMobile=u,i.exports.default=u;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,o=/CrOS/,s=/android|ipad|playbook|silk/i;function u(l){l||(l={});var f=l.ua;if(!f&&typeof navigator!="undefined"&&(f=navigator.userAgent),f&&f.headers&&typeof f.headers["user-agent"]=="string"&&(f=f.headers["user-agent"]),typeof f!="string")return!1;var c=a.test(f)&&!o.test(f)||!!l.tablet&&s.test(f);return!c&&l.tablet&&l.featureDetect&&navigator&&navigator.maxTouchPoints>1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(c=!0),c}},6296:function(i,a,o){"use strict";i.exports=h;var s=o(7261),u=o(9977),l=o(1811);function f(d,p){this._controllerNames=Object.keys(d),this._controllerList=this._controllerNames.map(function(x){return d[x]}),this._mode=p,this._active=d[p],this._active||(this._mode="turntable",this._active=d.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var c=f.prototype;c.flush=function(d){for(var p=this._controllerList,x=0;x0)throw new Error("Invalid string. Length must be a multiple of 4");var L=E.indexOf("=");L===-1&&(L=T);var _=L===T?0:4-L%4;return[L,_]}function d(E){var T=h(E),L=T[0],_=T[1];return(L+_)*3/4-_}function p(E,T,L){return(T+L)*3/4-L}function x(E){var T,L=h(E),_=L[0],C=L[1],S=new u(p(E,_,C)),m=0,P=C>0?_-4:_,A;for(A=0;A>16&255,S[m++]=T>>8&255,S[m++]=T&255;return C===2&&(T=s[E.charCodeAt(A)]<<2|s[E.charCodeAt(A+1)]>>4,S[m++]=T&255),C===1&&(T=s[E.charCodeAt(A)]<<10|s[E.charCodeAt(A+1)]<<4|s[E.charCodeAt(A+2)]>>2,S[m++]=T>>8&255,S[m++]=T&255),S}function b(E){return o[E>>18&63]+o[E>>12&63]+o[E>>6&63]+o[E&63]}function v(E,T,L){for(var _,C=[],S=T;SP?P:m+S));return _===1?(T=E[L-1],C.push(o[T>>2]+o[T<<4&63]+"==")):_===2&&(T=(E[L-2]<<8)+E[L-1],C.push(o[T>>10]+o[T>>4&63]+o[T<<2&63]+"=")),C.join("")}},3865:function(i,a,o){"use strict";var s=o(869);i.exports=u;function u(l,f){return s(l[0].mul(f[1]).add(f[0].mul(l[1])),l[1].mul(f[1]))}},1318:function(i){"use strict";i.exports=a;function a(o,s){return o[0].mul(s[1]).cmp(s[0].mul(o[1]))}},8697:function(i,a,o){"use strict";var s=o(869);i.exports=u;function u(l,f){return s(l[0].mul(f[1]),l[1].mul(f[0]))}},7842:function(i,a,o){"use strict";var s=o(6330),u=o(1533),l=o(2651),f=o(6768),c=o(869),h=o(8697);i.exports=d;function d(p,x){if(s(p))return x?h(p,d(x)):[p[0].clone(),p[1].clone()];var b=0,v,k;if(u(p))v=p.clone();else if(typeof p=="string")v=f(p);else{if(p===0)return[l(0),l(1)];if(p===Math.floor(p))v=l(p);else{for(;p!==Math.floor(p);)p=p*Math.pow(2,256),b-=256;v=l(p)}}if(s(x))v.mul(x[1]),k=x[0].clone();else if(u(x))k=x.clone();else if(typeof x=="string")k=f(x);else if(!x)k=l(1);else if(x===Math.floor(x))k=l(x);else{for(;x!==Math.floor(x);)x=x*Math.pow(2,256),b+=256;k=l(x)}return b>0?v=v.ushln(b):b<0&&(k=k.ushln(-b)),c(v,k)}},6330:function(i,a,o){"use strict";var s=o(1533);i.exports=u;function u(l){return Array.isArray(l)&&l.length===2&&s(l[0])&&s(l[1])}},5716:function(i,a,o){"use strict";var s=o(6859);i.exports=u;function u(l){return l.cmp(new s(0))}},1369:function(i,a,o){"use strict";var s=o(5716);i.exports=u;function u(l){var f=l.length,c=l.words,h=0;if(f===1)h=c[0];else if(f===2)h=c[0]+c[1]*67108864;else for(var d=0;d20?52:h+32}},1533:function(i,a,o){"use strict";var s=o(6859);i.exports=u;function u(l){return l&&typeof l=="object"&&!!l.words}},2651:function(i,a,o){"use strict";var s=o(6859),u=o(2361);i.exports=l;function l(f){var c=u.exponent(f);return c<52?new s(f):new s(f*Math.pow(2,52-c)).ushln(c-52)}},869:function(i,a,o){"use strict";var s=o(2651),u=o(5716);i.exports=l;function l(f,c){var h=u(f),d=u(c);if(h===0)return[s(0),s(1)];if(d===0)return[s(0),s(0)];d<0&&(f=f.neg(),c=c.neg());var p=f.gcd(c);return p.cmpn(1)?[f.div(p),c.div(p)]:[f,c]}},6768:function(i,a,o){"use strict";var s=o(6859);i.exports=u;function u(l){return new s(l)}},6504:function(i,a,o){"use strict";var s=o(869);i.exports=u;function u(l,f){return s(l[0].mul(f[0]),l[1].mul(f[1]))}},7721:function(i,a,o){"use strict";var s=o(5716);i.exports=u;function u(l){return s(l[0])*s(l[1])}},5572:function(i,a,o){"use strict";var s=o(869);i.exports=u;function u(l,f){return s(l[0].mul(f[1]).sub(l[1].mul(f[0])),l[1].mul(f[1]))}},946:function(i,a,o){"use strict";var s=o(1369),u=o(4025);i.exports=l;function l(f){var c=f[0],h=f[1];if(c.cmpn(0)===0)return 0;var d=c.abs().divmod(h.abs()),p=d.div,x=s(p),b=d.mod,v=c.negative!==h.negative?-1:1;if(b.cmpn(0)===0)return v*x;if(x){var k=u(x)+4,E=s(b.ushln(k).divRound(h));return v*(x+E*Math.pow(2,-k))}else{var T=h.bitLength()-b.bitLength()+53,E=s(b.ushln(T).divRound(h));return T<1023?v*E*Math.pow(2,-T):(E*=Math.pow(2,-1023),v*E*Math.pow(2,1023-T))}}},2478:function(i){"use strict";function a(c,h,d,p,x){for(var b=x+1;p<=x;){var v=p+x>>>1,k=c[v],E=d!==void 0?d(k,h):k-h;E>=0?(b=v,x=v-1):p=v+1}return b}function o(c,h,d,p,x){for(var b=x+1;p<=x;){var v=p+x>>>1,k=c[v],E=d!==void 0?d(k,h):k-h;E>0?(b=v,x=v-1):p=v+1}return b}function s(c,h,d,p,x){for(var b=p-1;p<=x;){var v=p+x>>>1,k=c[v],E=d!==void 0?d(k,h):k-h;E<0?(b=v,p=v+1):x=v-1}return b}function u(c,h,d,p,x){for(var b=p-1;p<=x;){var v=p+x>>>1,k=c[v],E=d!==void 0?d(k,h):k-h;E<=0?(b=v,p=v+1):x=v-1}return b}function l(c,h,d,p,x){for(;p<=x;){var b=p+x>>>1,v=c[b],k=d!==void 0?d(v,h):v-h;if(k===0)return b;k<=0?p=b+1:x=b-1}return-1}function f(c,h,d,p,x,b){return typeof d=="function"?b(c,h,d,p===void 0?0:p|0,x===void 0?c.length-1:x|0):b(c,h,void 0,d===void 0?0:d|0,p===void 0?c.length-1:p|0)}i.exports={ge:function(c,h,d,p,x){return f(c,h,d,p,x,a)},gt:function(c,h,d,p,x){return f(c,h,d,p,x,o)},lt:function(c,h,d,p,x){return f(c,h,d,p,x,s)},le:function(c,h,d,p,x){return f(c,h,d,p,x,u)},eq:function(c,h,d,p,x){return f(c,h,d,p,x,l)}}},8828:function(i,a){"use strict";"use restrict";var o=32;a.INT_BITS=o,a.INT_MAX=2147483647,a.INT_MIN=-1<0)-(l<0)},a.abs=function(l){var f=l>>o-1;return(l^f)-f},a.min=function(l,f){return f^(l^f)&-(l65535)<<4,l>>>=f,c=(l>255)<<3,l>>>=c,f|=c,c=(l>15)<<2,l>>>=c,f|=c,c=(l>3)<<1,l>>>=c,f|=c,f|l>>1},a.log10=function(l){return l>=1e9?9:l>=1e8?8:l>=1e7?7:l>=1e6?6:l>=1e5?5:l>=1e4?4:l>=1e3?3:l>=100?2:l>=10?1:0},a.popCount=function(l){return l=l-(l>>>1&1431655765),l=(l&858993459)+(l>>>2&858993459),(l+(l>>>4)&252645135)*16843009>>>24};function s(l){var f=32;return l&=-l,l&&f--,l&65535&&(f-=16),l&16711935&&(f-=8),l&252645135&&(f-=4),l&858993459&&(f-=2),l&1431655765&&(f-=1),f}a.countTrailingZeros=s,a.nextPow2=function(l){return l+=l===0,--l,l|=l>>>1,l|=l>>>2,l|=l>>>4,l|=l>>>8,l|=l>>>16,l+1},a.prevPow2=function(l){return l|=l>>>1,l|=l>>>2,l|=l>>>4,l|=l>>>8,l|=l>>>16,l-(l>>>1)},a.parity=function(l){return l^=l>>>16,l^=l>>>8,l^=l>>>4,l&=15,27030>>>l&1};var u=new Array(256);(function(l){for(var f=0;f<256;++f){var c=f,h=f,d=7;for(c>>>=1;c;c>>>=1)h<<=1,h|=c&1,--d;l[f]=h<>>8&255]<<16|u[l>>>16&255]<<8|u[l>>>24&255]},a.interleave2=function(l,f){return l&=65535,l=(l|l<<8)&16711935,l=(l|l<<4)&252645135,l=(l|l<<2)&858993459,l=(l|l<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,l|f<<1},a.deinterleave2=function(l,f){return l=l>>>f&1431655765,l=(l|l>>>1)&858993459,l=(l|l>>>2)&252645135,l=(l|l>>>4)&16711935,l=(l|l>>>16)&65535,l<<16>>16},a.interleave3=function(l,f,c){return l&=1023,l=(l|l<<16)&4278190335,l=(l|l<<8)&251719695,l=(l|l<<4)&3272356035,l=(l|l<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,l|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,l|c<<2},a.deinterleave3=function(l,f){return l=l>>>f&1227133513,l=(l|l>>>2)&3272356035,l=(l|l>>>4)&251719695,l=(l|l>>>8)&4278190335,l=(l|l>>>16)&1023,l<<22>>22},a.nextCombination=function(l){var f=l|l-1;return f+1|(~f&-~f)-1>>>s(l)+1}},6859:function(i,a,o){i=o.nmd(i),function(s,u){"use strict";function l(H,N){if(!H)throw new Error(N||"Assertion failed")}function f(H,N){H.super_=N;var W=function(){};W.prototype=N.prototype,H.prototype=new W,H.prototype.constructor=H}function c(H,N,W){if(c.isBN(H))return H;this.negative=0,this.words=null,this.length=0,this.red=null,H!==null&&((N==="le"||N==="be")&&(W=N,N=10),this._init(H||0,N||10,W||"be"))}typeof s=="object"?s.exports=c:u.BN=c,c.BN=c,c.wordSize=26;var h;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?h=window.Buffer:h=o(7790).Buffer}catch(H){}c.isBN=function(N){return N instanceof c?!0:N!==null&&typeof N=="object"&&N.constructor.wordSize===c.wordSize&&Array.isArray(N.words)},c.max=function(N,W){return N.cmp(W)>0?N:W},c.min=function(N,W){return N.cmp(W)<0?N:W},c.prototype._init=function(N,W,re){if(typeof N=="number")return this._initNumber(N,W,re);if(typeof N=="object")return this._initArray(N,W,re);W==="hex"&&(W=16),l(W===(W|0)&&W>=2&&W<=36),N=N.toString().replace(/\s+/g,"");var ae=0;N[0]==="-"&&(ae++,this.negative=1),ae=0;ae-=3)Pe=N[ae]|N[ae-1]<<8|N[ae-2]<<16,this.words[be]|=Pe<>>26-Ce&67108863,Ce+=24,Ce>=26&&(Ce-=26,be++);else if(re==="le")for(ae=0,be=0;ae>>26-Ce&67108863,Ce+=24,Ce>=26&&(Ce-=26,be++);return this.strip()};function d(H,N){var W=H.charCodeAt(N);return W>=65&&W<=70?W-55:W>=97&&W<=102?W-87:W-48&15}function p(H,N,W){var re=d(H,W);return W-1>=N&&(re|=d(H,W-1)<<4),re}c.prototype._parseHex=function(N,W,re){this.length=Math.ceil((N.length-W)/6),this.words=new Array(this.length);for(var ae=0;ae=W;ae-=2)Ce=p(N,W,ae)<=18?(be-=18,Pe+=1,this.words[Pe]|=Ce>>>26):be+=8;else{var de=N.length-W;for(ae=de%2===0?W+1:W;ae=18?(be-=18,Pe+=1,this.words[Pe]|=Ce>>>26):be+=8}this.strip()};function x(H,N,W,re){for(var ae=0,be=Math.min(H.length,W),Pe=N;Pe=49?ae+=Ce-49+10:Ce>=17?ae+=Ce-17+10:ae+=Ce}return ae}c.prototype._parseBase=function(N,W,re){this.words=[0],this.length=1;for(var ae=0,be=1;be<=67108863;be*=W)ae++;ae--,be=be/W|0;for(var Pe=N.length-re,Ce=Pe%ae,de=Math.min(Pe,Pe-Ce)+re,te=0,ke=re;ke1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},c.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?""};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],v=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];c.prototype.toString=function(N,W){N=N||10,W=W|0||1;var re;if(N===16||N==="hex"){re="";for(var ae=0,be=0,Pe=0;Pe>>24-ae&16777215,be!==0||Pe!==this.length-1?re=b[6-de.length]+de+re:re=de+re,ae+=2,ae>=26&&(ae-=26,Pe--)}for(be!==0&&(re=be.toString(16)+re);re.length%W!==0;)re="0"+re;return this.negative!==0&&(re="-"+re),re}if(N===(N|0)&&N>=2&&N<=36){var te=v[N],ke=k[N];re="";var Ee=this.clone();for(Ee.negative=0;!Ee.isZero();){var Me=Ee.modn(ke).toString(N);Ee=Ee.idivn(ke),Ee.isZero()?re=Me+re:re=b[te-Me.length]+Me+re}for(this.isZero()&&(re="0"+re);re.length%W!==0;)re="0"+re;return this.negative!==0&&(re="-"+re),re}l(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var N=this.words[0];return this.length===2?N+=this.words[1]*67108864:this.length===3&&this.words[2]===1?N+=4503599627370496+this.words[1]*67108864:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-N:N},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(N,W){return l(typeof h!="undefined"),this.toArrayLike(h,N,W)},c.prototype.toArray=function(N,W){return this.toArrayLike(Array,N,W)},c.prototype.toArrayLike=function(N,W,re){var ae=this.byteLength(),be=re||Math.max(1,ae);l(ae<=be,"byte array longer than desired length"),l(be>0,"Requested array length <= 0"),this.strip();var Pe=W==="le",Ce=new N(be),de,te,ke=this.clone();if(Pe){for(te=0;!ke.isZero();te++)de=ke.andln(255),ke.iushrn(8),Ce[te]=de;for(;te=4096&&(re+=13,W>>>=13),W>=64&&(re+=7,W>>>=7),W>=8&&(re+=4,W>>>=4),W>=2&&(re+=2,W>>>=2),re+W},c.prototype._zeroBits=function(N){if(N===0)return 26;var W=N,re=0;return(W&8191)===0&&(re+=13,W>>>=13),(W&127)===0&&(re+=7,W>>>=7),(W&15)===0&&(re+=4,W>>>=4),(W&3)===0&&(re+=2,W>>>=2),(W&1)===0&&re++,re},c.prototype.bitLength=function(){var N=this.words[this.length-1],W=this._countBits(N);return(this.length-1)*26+W};function E(H){for(var N=new Array(H.bitLength()),W=0;W>>ae}return N}c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var N=0,W=0;WN.length?this.clone().ior(N):N.clone().ior(this)},c.prototype.uor=function(N){return this.length>N.length?this.clone().iuor(N):N.clone().iuor(this)},c.prototype.iuand=function(N){var W;this.length>N.length?W=N:W=this;for(var re=0;reN.length?this.clone().iand(N):N.clone().iand(this)},c.prototype.uand=function(N){return this.length>N.length?this.clone().iuand(N):N.clone().iuand(this)},c.prototype.iuxor=function(N){var W,re;this.length>N.length?(W=this,re=N):(W=N,re=this);for(var ae=0;aeN.length?this.clone().ixor(N):N.clone().ixor(this)},c.prototype.uxor=function(N){return this.length>N.length?this.clone().iuxor(N):N.clone().iuxor(this)},c.prototype.inotn=function(N){l(typeof N=="number"&&N>=0);var W=Math.ceil(N/26)|0,re=N%26;this._expand(W),re>0&&W--;for(var ae=0;ae0&&(this.words[ae]=~this.words[ae]&67108863>>26-re),this.strip()},c.prototype.notn=function(N){return this.clone().inotn(N)},c.prototype.setn=function(N,W){l(typeof N=="number"&&N>=0);var re=N/26|0,ae=N%26;return this._expand(re+1),W?this.words[re]=this.words[re]|1<N.length?(re=this,ae=N):(re=N,ae=this);for(var be=0,Pe=0;Pe>>26;for(;be!==0&&Pe>>26;if(this.length=re.length,be!==0)this.words[this.length]=be,this.length++;else if(re!==this)for(;PeN.length?this.clone().iadd(N):N.clone().iadd(this)},c.prototype.isub=function(N){if(N.negative!==0){N.negative=0;var W=this.iadd(N);return N.negative=1,W._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(N),this.negative=1,this._normSign();var re=this.cmp(N);if(re===0)return this.negative=0,this.length=1,this.words[0]=0,this;var ae,be;re>0?(ae=this,be=N):(ae=N,be=this);for(var Pe=0,Ce=0;Ce>26,this.words[Ce]=W&67108863;for(;Pe!==0&&Ce>26,this.words[Ce]=W&67108863;if(Pe===0&&Ce>>26,Ee=de&67108863,Me=Math.min(te,N.length-1),Ue=Math.max(0,te-H.length+1);Ue<=Me;Ue++){var Fe=te-Ue|0;ae=H.words[Fe]|0,be=N.words[Ue]|0,Pe=ae*be+Ee,ke+=Pe/67108864|0,Ee=Pe&67108863}W.words[te]=Ee|0,de=ke|0}return de!==0?W.words[te]=de|0:W.length--,W.strip()}var L=function(N,W,re){var ae=N.words,be=W.words,Pe=re.words,Ce=0,de,te,ke,Ee=ae[0]|0,Me=Ee&8191,Ue=Ee>>>13,Fe=ae[1]|0,me=Fe&8191,Ne=Fe>>>13,ce=ae[2]|0,Ke=ce&8191,it=ce>>>13,bt=ae[3]|0,Nt=bt&8191,nt=bt>>>13,Ye=ae[4]|0,kt=Ye&8191,At=Ye>>>13,St=ae[5]|0,Bt=St&8191,Zt=St>>>13,Et=ae[6]|0,Ae=Et&8191,ot=Et>>>13,dt=ae[7]|0,pt=dt&8191,at=dt>>>13,Xe=ae[8]|0,rt=Xe&8191,Qe=Xe>>>13,zt=ae[9]|0,Yt=zt&8191,lr=zt>>>13,mr=be[0]|0,_r=mr&8191,Ht=mr>>>13,Re=be[1]|0,xe=Re&8191,Oe=Re>>>13,Ie=be[2]|0,De=Ie&8191,ct=Ie>>>13,_e=be[3]|0,fe=_e&8191,pe=_e>>>13,mt=be[4]|0,It=mt&8191,Pt=mt>>>13,rr=be[5]|0,Wr=rr&8191,Nr=rr>>>13,Er=be[6]|0,Br=Er&8191,mi=Er>>>13,Di=be[7]|0,Ii=Di&8191,Ci=Di>>>13,nn=be[8]|0,ii=nn&8191,wi=nn>>>13,Gi=be[9]|0,Ft=Gi&8191,gt=Gi>>>13;re.negative=N.negative^W.negative,re.length=19,de=Math.imul(Me,_r),te=Math.imul(Me,Ht),te=te+Math.imul(Ue,_r)|0,ke=Math.imul(Ue,Ht);var Ut=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,de=Math.imul(me,_r),te=Math.imul(me,Ht),te=te+Math.imul(Ne,_r)|0,ke=Math.imul(Ne,Ht),de=de+Math.imul(Me,xe)|0,te=te+Math.imul(Me,Oe)|0,te=te+Math.imul(Ue,xe)|0,ke=ke+Math.imul(Ue,Oe)|0;var Wt=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,de=Math.imul(Ke,_r),te=Math.imul(Ke,Ht),te=te+Math.imul(it,_r)|0,ke=Math.imul(it,Ht),de=de+Math.imul(me,xe)|0,te=te+Math.imul(me,Oe)|0,te=te+Math.imul(Ne,xe)|0,ke=ke+Math.imul(Ne,Oe)|0,de=de+Math.imul(Me,De)|0,te=te+Math.imul(Me,ct)|0,te=te+Math.imul(Ue,De)|0,ke=ke+Math.imul(Ue,ct)|0;var xr=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(xr>>>26)|0,xr&=67108863,de=Math.imul(Nt,_r),te=Math.imul(Nt,Ht),te=te+Math.imul(nt,_r)|0,ke=Math.imul(nt,Ht),de=de+Math.imul(Ke,xe)|0,te=te+Math.imul(Ke,Oe)|0,te=te+Math.imul(it,xe)|0,ke=ke+Math.imul(it,Oe)|0,de=de+Math.imul(me,De)|0,te=te+Math.imul(me,ct)|0,te=te+Math.imul(Ne,De)|0,ke=ke+Math.imul(Ne,ct)|0,de=de+Math.imul(Me,fe)|0,te=te+Math.imul(Me,pe)|0,te=te+Math.imul(Ue,fe)|0,ke=ke+Math.imul(Ue,pe)|0;var Lr=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,de=Math.imul(kt,_r),te=Math.imul(kt,Ht),te=te+Math.imul(At,_r)|0,ke=Math.imul(At,Ht),de=de+Math.imul(Nt,xe)|0,te=te+Math.imul(Nt,Oe)|0,te=te+Math.imul(nt,xe)|0,ke=ke+Math.imul(nt,Oe)|0,de=de+Math.imul(Ke,De)|0,te=te+Math.imul(Ke,ct)|0,te=te+Math.imul(it,De)|0,ke=ke+Math.imul(it,ct)|0,de=de+Math.imul(me,fe)|0,te=te+Math.imul(me,pe)|0,te=te+Math.imul(Ne,fe)|0,ke=ke+Math.imul(Ne,pe)|0,de=de+Math.imul(Me,It)|0,te=te+Math.imul(Me,Pt)|0,te=te+Math.imul(Ue,It)|0,ke=ke+Math.imul(Ue,Pt)|0;var Ur=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,de=Math.imul(Bt,_r),te=Math.imul(Bt,Ht),te=te+Math.imul(Zt,_r)|0,ke=Math.imul(Zt,Ht),de=de+Math.imul(kt,xe)|0,te=te+Math.imul(kt,Oe)|0,te=te+Math.imul(At,xe)|0,ke=ke+Math.imul(At,Oe)|0,de=de+Math.imul(Nt,De)|0,te=te+Math.imul(Nt,ct)|0,te=te+Math.imul(nt,De)|0,ke=ke+Math.imul(nt,ct)|0,de=de+Math.imul(Ke,fe)|0,te=te+Math.imul(Ke,pe)|0,te=te+Math.imul(it,fe)|0,ke=ke+Math.imul(it,pe)|0,de=de+Math.imul(me,It)|0,te=te+Math.imul(me,Pt)|0,te=te+Math.imul(Ne,It)|0,ke=ke+Math.imul(Ne,Pt)|0,de=de+Math.imul(Me,Wr)|0,te=te+Math.imul(Me,Nr)|0,te=te+Math.imul(Ue,Wr)|0,ke=ke+Math.imul(Ue,Nr)|0;var Ir=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,de=Math.imul(Ae,_r),te=Math.imul(Ae,Ht),te=te+Math.imul(ot,_r)|0,ke=Math.imul(ot,Ht),de=de+Math.imul(Bt,xe)|0,te=te+Math.imul(Bt,Oe)|0,te=te+Math.imul(Zt,xe)|0,ke=ke+Math.imul(Zt,Oe)|0,de=de+Math.imul(kt,De)|0,te=te+Math.imul(kt,ct)|0,te=te+Math.imul(At,De)|0,ke=ke+Math.imul(At,ct)|0,de=de+Math.imul(Nt,fe)|0,te=te+Math.imul(Nt,pe)|0,te=te+Math.imul(nt,fe)|0,ke=ke+Math.imul(nt,pe)|0,de=de+Math.imul(Ke,It)|0,te=te+Math.imul(Ke,Pt)|0,te=te+Math.imul(it,It)|0,ke=ke+Math.imul(it,Pt)|0,de=de+Math.imul(me,Wr)|0,te=te+Math.imul(me,Nr)|0,te=te+Math.imul(Ne,Wr)|0,ke=ke+Math.imul(Ne,Nr)|0,de=de+Math.imul(Me,Br)|0,te=te+Math.imul(Me,mi)|0,te=te+Math.imul(Ue,Br)|0,ke=ke+Math.imul(Ue,mi)|0;var Gr=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,de=Math.imul(pt,_r),te=Math.imul(pt,Ht),te=te+Math.imul(at,_r)|0,ke=Math.imul(at,Ht),de=de+Math.imul(Ae,xe)|0,te=te+Math.imul(Ae,Oe)|0,te=te+Math.imul(ot,xe)|0,ke=ke+Math.imul(ot,Oe)|0,de=de+Math.imul(Bt,De)|0,te=te+Math.imul(Bt,ct)|0,te=te+Math.imul(Zt,De)|0,ke=ke+Math.imul(Zt,ct)|0,de=de+Math.imul(kt,fe)|0,te=te+Math.imul(kt,pe)|0,te=te+Math.imul(At,fe)|0,ke=ke+Math.imul(At,pe)|0,de=de+Math.imul(Nt,It)|0,te=te+Math.imul(Nt,Pt)|0,te=te+Math.imul(nt,It)|0,ke=ke+Math.imul(nt,Pt)|0,de=de+Math.imul(Ke,Wr)|0,te=te+Math.imul(Ke,Nr)|0,te=te+Math.imul(it,Wr)|0,ke=ke+Math.imul(it,Nr)|0,de=de+Math.imul(me,Br)|0,te=te+Math.imul(me,mi)|0,te=te+Math.imul(Ne,Br)|0,ke=ke+Math.imul(Ne,mi)|0,de=de+Math.imul(Me,Ii)|0,te=te+Math.imul(Me,Ci)|0,te=te+Math.imul(Ue,Ii)|0,ke=ke+Math.imul(Ue,Ci)|0;var jr=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(jr>>>26)|0,jr&=67108863,de=Math.imul(rt,_r),te=Math.imul(rt,Ht),te=te+Math.imul(Qe,_r)|0,ke=Math.imul(Qe,Ht),de=de+Math.imul(pt,xe)|0,te=te+Math.imul(pt,Oe)|0,te=te+Math.imul(at,xe)|0,ke=ke+Math.imul(at,Oe)|0,de=de+Math.imul(Ae,De)|0,te=te+Math.imul(Ae,ct)|0,te=te+Math.imul(ot,De)|0,ke=ke+Math.imul(ot,ct)|0,de=de+Math.imul(Bt,fe)|0,te=te+Math.imul(Bt,pe)|0,te=te+Math.imul(Zt,fe)|0,ke=ke+Math.imul(Zt,pe)|0,de=de+Math.imul(kt,It)|0,te=te+Math.imul(kt,Pt)|0,te=te+Math.imul(At,It)|0,ke=ke+Math.imul(At,Pt)|0,de=de+Math.imul(Nt,Wr)|0,te=te+Math.imul(Nt,Nr)|0,te=te+Math.imul(nt,Wr)|0,ke=ke+Math.imul(nt,Nr)|0,de=de+Math.imul(Ke,Br)|0,te=te+Math.imul(Ke,mi)|0,te=te+Math.imul(it,Br)|0,ke=ke+Math.imul(it,mi)|0,de=de+Math.imul(me,Ii)|0,te=te+Math.imul(me,Ci)|0,te=te+Math.imul(Ne,Ii)|0,ke=ke+Math.imul(Ne,Ci)|0,de=de+Math.imul(Me,ii)|0,te=te+Math.imul(Me,wi)|0,te=te+Math.imul(Ue,ii)|0,ke=ke+Math.imul(Ue,wi)|0;var yi=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(yi>>>26)|0,yi&=67108863,de=Math.imul(Yt,_r),te=Math.imul(Yt,Ht),te=te+Math.imul(lr,_r)|0,ke=Math.imul(lr,Ht),de=de+Math.imul(rt,xe)|0,te=te+Math.imul(rt,Oe)|0,te=te+Math.imul(Qe,xe)|0,ke=ke+Math.imul(Qe,Oe)|0,de=de+Math.imul(pt,De)|0,te=te+Math.imul(pt,ct)|0,te=te+Math.imul(at,De)|0,ke=ke+Math.imul(at,ct)|0,de=de+Math.imul(Ae,fe)|0,te=te+Math.imul(Ae,pe)|0,te=te+Math.imul(ot,fe)|0,ke=ke+Math.imul(ot,pe)|0,de=de+Math.imul(Bt,It)|0,te=te+Math.imul(Bt,Pt)|0,te=te+Math.imul(Zt,It)|0,ke=ke+Math.imul(Zt,Pt)|0,de=de+Math.imul(kt,Wr)|0,te=te+Math.imul(kt,Nr)|0,te=te+Math.imul(At,Wr)|0,ke=ke+Math.imul(At,Nr)|0,de=de+Math.imul(Nt,Br)|0,te=te+Math.imul(Nt,mi)|0,te=te+Math.imul(nt,Br)|0,ke=ke+Math.imul(nt,mi)|0,de=de+Math.imul(Ke,Ii)|0,te=te+Math.imul(Ke,Ci)|0,te=te+Math.imul(it,Ii)|0,ke=ke+Math.imul(it,Ci)|0,de=de+Math.imul(me,ii)|0,te=te+Math.imul(me,wi)|0,te=te+Math.imul(Ne,ii)|0,ke=ke+Math.imul(Ne,wi)|0,de=de+Math.imul(Me,Ft)|0,te=te+Math.imul(Me,gt)|0,te=te+Math.imul(Ue,Ft)|0,ke=ke+Math.imul(Ue,gt)|0;var Ei=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,de=Math.imul(Yt,xe),te=Math.imul(Yt,Oe),te=te+Math.imul(lr,xe)|0,ke=Math.imul(lr,Oe),de=de+Math.imul(rt,De)|0,te=te+Math.imul(rt,ct)|0,te=te+Math.imul(Qe,De)|0,ke=ke+Math.imul(Qe,ct)|0,de=de+Math.imul(pt,fe)|0,te=te+Math.imul(pt,pe)|0,te=te+Math.imul(at,fe)|0,ke=ke+Math.imul(at,pe)|0,de=de+Math.imul(Ae,It)|0,te=te+Math.imul(Ae,Pt)|0,te=te+Math.imul(ot,It)|0,ke=ke+Math.imul(ot,Pt)|0,de=de+Math.imul(Bt,Wr)|0,te=te+Math.imul(Bt,Nr)|0,te=te+Math.imul(Zt,Wr)|0,ke=ke+Math.imul(Zt,Nr)|0,de=de+Math.imul(kt,Br)|0,te=te+Math.imul(kt,mi)|0,te=te+Math.imul(At,Br)|0,ke=ke+Math.imul(At,mi)|0,de=de+Math.imul(Nt,Ii)|0,te=te+Math.imul(Nt,Ci)|0,te=te+Math.imul(nt,Ii)|0,ke=ke+Math.imul(nt,Ci)|0,de=de+Math.imul(Ke,ii)|0,te=te+Math.imul(Ke,wi)|0,te=te+Math.imul(it,ii)|0,ke=ke+Math.imul(it,wi)|0,de=de+Math.imul(me,Ft)|0,te=te+Math.imul(me,gt)|0,te=te+Math.imul(Ne,Ft)|0,ke=ke+Math.imul(Ne,gt)|0;var Vi=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,de=Math.imul(Yt,De),te=Math.imul(Yt,ct),te=te+Math.imul(lr,De)|0,ke=Math.imul(lr,ct),de=de+Math.imul(rt,fe)|0,te=te+Math.imul(rt,pe)|0,te=te+Math.imul(Qe,fe)|0,ke=ke+Math.imul(Qe,pe)|0,de=de+Math.imul(pt,It)|0,te=te+Math.imul(pt,Pt)|0,te=te+Math.imul(at,It)|0,ke=ke+Math.imul(at,Pt)|0,de=de+Math.imul(Ae,Wr)|0,te=te+Math.imul(Ae,Nr)|0,te=te+Math.imul(ot,Wr)|0,ke=ke+Math.imul(ot,Nr)|0,de=de+Math.imul(Bt,Br)|0,te=te+Math.imul(Bt,mi)|0,te=te+Math.imul(Zt,Br)|0,ke=ke+Math.imul(Zt,mi)|0,de=de+Math.imul(kt,Ii)|0,te=te+Math.imul(kt,Ci)|0,te=te+Math.imul(At,Ii)|0,ke=ke+Math.imul(At,Ci)|0,de=de+Math.imul(Nt,ii)|0,te=te+Math.imul(Nt,wi)|0,te=te+Math.imul(nt,ii)|0,ke=ke+Math.imul(nt,wi)|0,de=de+Math.imul(Ke,Ft)|0,te=te+Math.imul(Ke,gt)|0,te=te+Math.imul(it,Ft)|0,ke=ke+Math.imul(it,gt)|0;var ti=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(ti>>>26)|0,ti&=67108863,de=Math.imul(Yt,fe),te=Math.imul(Yt,pe),te=te+Math.imul(lr,fe)|0,ke=Math.imul(lr,pe),de=de+Math.imul(rt,It)|0,te=te+Math.imul(rt,Pt)|0,te=te+Math.imul(Qe,It)|0,ke=ke+Math.imul(Qe,Pt)|0,de=de+Math.imul(pt,Wr)|0,te=te+Math.imul(pt,Nr)|0,te=te+Math.imul(at,Wr)|0,ke=ke+Math.imul(at,Nr)|0,de=de+Math.imul(Ae,Br)|0,te=te+Math.imul(Ae,mi)|0,te=te+Math.imul(ot,Br)|0,ke=ke+Math.imul(ot,mi)|0,de=de+Math.imul(Bt,Ii)|0,te=te+Math.imul(Bt,Ci)|0,te=te+Math.imul(Zt,Ii)|0,ke=ke+Math.imul(Zt,Ci)|0,de=de+Math.imul(kt,ii)|0,te=te+Math.imul(kt,wi)|0,te=te+Math.imul(At,ii)|0,ke=ke+Math.imul(At,wi)|0,de=de+Math.imul(Nt,Ft)|0,te=te+Math.imul(Nt,gt)|0,te=te+Math.imul(nt,Ft)|0,ke=ke+Math.imul(nt,gt)|0;var en=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(en>>>26)|0,en&=67108863,de=Math.imul(Yt,It),te=Math.imul(Yt,Pt),te=te+Math.imul(lr,It)|0,ke=Math.imul(lr,Pt),de=de+Math.imul(rt,Wr)|0,te=te+Math.imul(rt,Nr)|0,te=te+Math.imul(Qe,Wr)|0,ke=ke+Math.imul(Qe,Nr)|0,de=de+Math.imul(pt,Br)|0,te=te+Math.imul(pt,mi)|0,te=te+Math.imul(at,Br)|0,ke=ke+Math.imul(at,mi)|0,de=de+Math.imul(Ae,Ii)|0,te=te+Math.imul(Ae,Ci)|0,te=te+Math.imul(ot,Ii)|0,ke=ke+Math.imul(ot,Ci)|0,de=de+Math.imul(Bt,ii)|0,te=te+Math.imul(Bt,wi)|0,te=te+Math.imul(Zt,ii)|0,ke=ke+Math.imul(Zt,wi)|0,de=de+Math.imul(kt,Ft)|0,te=te+Math.imul(kt,gt)|0,te=te+Math.imul(At,Ft)|0,ke=ke+Math.imul(At,gt)|0;var Yr=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,de=Math.imul(Yt,Wr),te=Math.imul(Yt,Nr),te=te+Math.imul(lr,Wr)|0,ke=Math.imul(lr,Nr),de=de+Math.imul(rt,Br)|0,te=te+Math.imul(rt,mi)|0,te=te+Math.imul(Qe,Br)|0,ke=ke+Math.imul(Qe,mi)|0,de=de+Math.imul(pt,Ii)|0,te=te+Math.imul(pt,Ci)|0,te=te+Math.imul(at,Ii)|0,ke=ke+Math.imul(at,Ci)|0,de=de+Math.imul(Ae,ii)|0,te=te+Math.imul(Ae,wi)|0,te=te+Math.imul(ot,ii)|0,ke=ke+Math.imul(ot,wi)|0,de=de+Math.imul(Bt,Ft)|0,te=te+Math.imul(Bt,gt)|0,te=te+Math.imul(Zt,Ft)|0,ke=ke+Math.imul(Zt,gt)|0;var oi=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(oi>>>26)|0,oi&=67108863,de=Math.imul(Yt,Br),te=Math.imul(Yt,mi),te=te+Math.imul(lr,Br)|0,ke=Math.imul(lr,mi),de=de+Math.imul(rt,Ii)|0,te=te+Math.imul(rt,Ci)|0,te=te+Math.imul(Qe,Ii)|0,ke=ke+Math.imul(Qe,Ci)|0,de=de+Math.imul(pt,ii)|0,te=te+Math.imul(pt,wi)|0,te=te+Math.imul(at,ii)|0,ke=ke+Math.imul(at,wi)|0,de=de+Math.imul(Ae,Ft)|0,te=te+Math.imul(Ae,gt)|0,te=te+Math.imul(ot,Ft)|0,ke=ke+Math.imul(ot,gt)|0;var Bi=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,de=Math.imul(Yt,Ii),te=Math.imul(Yt,Ci),te=te+Math.imul(lr,Ii)|0,ke=Math.imul(lr,Ci),de=de+Math.imul(rt,ii)|0,te=te+Math.imul(rt,wi)|0,te=te+Math.imul(Qe,ii)|0,ke=ke+Math.imul(Qe,wi)|0,de=de+Math.imul(pt,Ft)|0,te=te+Math.imul(pt,gt)|0,te=te+Math.imul(at,Ft)|0,ke=ke+Math.imul(at,gt)|0;var an=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(an>>>26)|0,an&=67108863,de=Math.imul(Yt,ii),te=Math.imul(Yt,wi),te=te+Math.imul(lr,ii)|0,ke=Math.imul(lr,wi),de=de+Math.imul(rt,Ft)|0,te=te+Math.imul(rt,gt)|0,te=te+Math.imul(Qe,Ft)|0,ke=ke+Math.imul(Qe,gt)|0;var rn=(Ce+de|0)+((te&8191)<<13)|0;Ce=(ke+(te>>>13)|0)+(rn>>>26)|0,rn&=67108863,de=Math.imul(Yt,Ft),te=Math.imul(Yt,gt),te=te+Math.imul(lr,Ft)|0,ke=Math.imul(lr,gt);var Fi=(Ce+de|0)+((te&8191)<<13)|0;return Ce=(ke+(te>>>13)|0)+(Fi>>>26)|0,Fi&=67108863,Pe[0]=Ut,Pe[1]=Wt,Pe[2]=xr,Pe[3]=Lr,Pe[4]=Ur,Pe[5]=Ir,Pe[6]=Gr,Pe[7]=jr,Pe[8]=yi,Pe[9]=Ei,Pe[10]=Vi,Pe[11]=ti,Pe[12]=en,Pe[13]=Yr,Pe[14]=oi,Pe[15]=Bi,Pe[16]=an,Pe[17]=rn,Pe[18]=Fi,Ce!==0&&(Pe[19]=Ce,re.length++),re};Math.imul||(L=T);function _(H,N,W){W.negative=N.negative^H.negative,W.length=H.length+N.length;for(var re=0,ae=0,be=0;be>>26)|0,ae+=Pe>>>26,Pe&=67108863}W.words[be]=Ce,re=Pe,Pe=ae}return re!==0?W.words[be]=re:W.length--,W.strip()}function C(H,N,W){var re=new S;return re.mulp(H,N,W)}c.prototype.mulTo=function(N,W){var re,ae=this.length+N.length;return this.length===10&&N.length===10?re=L(this,N,W):ae<63?re=T(this,N,W):ae<1024?re=_(this,N,W):re=C(this,N,W),re};function S(H,N){this.x=H,this.y=N}S.prototype.makeRBT=function(N){for(var W=new Array(N),re=c.prototype._countBits(N)-1,ae=0;ae>=1;return ae},S.prototype.permute=function(N,W,re,ae,be,Pe){for(var Ce=0;Ce>>1)be++;return 1<>>13,re[2*Pe+1]=be&8191,be=be>>>13;for(Pe=2*W;Pe>=26,W+=ae/67108864|0,W+=be>>>26,this.words[re]=be&67108863}return W!==0&&(this.words[re]=W,this.length++),this},c.prototype.muln=function(N){return this.clone().imuln(N)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(N){var W=E(N);if(W.length===0)return new c(1);for(var re=this,ae=0;ae=0);var W=N%26,re=(N-W)/26,ae=67108863>>>26-W<<26-W,be;if(W!==0){var Pe=0;for(be=0;be>>26-W}Pe&&(this.words[be]=Pe,this.length++)}if(re!==0){for(be=this.length-1;be>=0;be--)this.words[be+re]=this.words[be];for(be=0;be=0);var ae;W?ae=(W-W%26)/26:ae=0;var be=N%26,Pe=Math.min((N-be)/26,this.length),Ce=67108863^67108863>>>be<Pe)for(this.length-=Pe,te=0;te=0&&(ke!==0||te>=ae);te--){var Ee=this.words[te]|0;this.words[te]=ke<<26-be|Ee>>>be,ke=Ee&Ce}return de&&ke!==0&&(de.words[de.length++]=ke),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(N,W,re){return l(this.negative===0),this.iushrn(N,W,re)},c.prototype.shln=function(N){return this.clone().ishln(N)},c.prototype.ushln=function(N){return this.clone().iushln(N)},c.prototype.shrn=function(N){return this.clone().ishrn(N)},c.prototype.ushrn=function(N){return this.clone().iushrn(N)},c.prototype.testn=function(N){l(typeof N=="number"&&N>=0);var W=N%26,re=(N-W)/26,ae=1<=0);var W=N%26,re=(N-W)/26;if(l(this.negative===0,"imaskn works only with positive numbers"),this.length<=re)return this;if(W!==0&&re++,this.length=Math.min(re,this.length),W!==0){var ae=67108863^67108863>>>W<=67108864;W++)this.words[W]-=67108864,W===this.length-1?this.words[W+1]=1:this.words[W+1]++;return this.length=Math.max(this.length,W+1),this},c.prototype.isubn=function(N){if(l(typeof N=="number"),l(N<67108864),N<0)return this.iaddn(-N);if(this.negative!==0)return this.negative=0,this.iaddn(N),this.negative=1,this;if(this.words[0]-=N,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var W=0;W>26)-(de/67108864|0),this.words[be+re]=Pe&67108863}for(;be>26,this.words[be+re]=Pe&67108863;if(Ce===0)return this.strip();for(l(Ce===-1),Ce=0,be=0;be>26,this.words[be]=Pe&67108863;return this.negative=1,this.strip()},c.prototype._wordDiv=function(N,W){var re=this.length-N.length,ae=this.clone(),be=N,Pe=be.words[be.length-1]|0,Ce=this._countBits(Pe);re=26-Ce,re!==0&&(be=be.ushln(re),ae.iushln(re),Pe=be.words[be.length-1]|0);var de=ae.length-be.length,te;if(W!=="mod"){te=new c(null),te.length=de+1,te.words=new Array(te.length);for(var ke=0;ke=0;Me--){var Ue=(ae.words[be.length+Me]|0)*67108864+(ae.words[be.length+Me-1]|0);for(Ue=Math.min(Ue/Pe|0,67108863),ae._ishlnsubmul(be,Ue,Me);ae.negative!==0;)Ue--,ae.negative=0,ae._ishlnsubmul(be,1,Me),ae.isZero()||(ae.negative^=1);te&&(te.words[Me]=Ue)}return te&&te.strip(),ae.strip(),W!=="div"&&re!==0&&ae.iushrn(re),{div:te||null,mod:ae}},c.prototype.divmod=function(N,W,re){if(l(!N.isZero()),this.isZero())return{div:new c(0),mod:new c(0)};var ae,be,Pe;return this.negative!==0&&N.negative===0?(Pe=this.neg().divmod(N,W),W!=="mod"&&(ae=Pe.div.neg()),W!=="div"&&(be=Pe.mod.neg(),re&&be.negative!==0&&be.iadd(N)),{div:ae,mod:be}):this.negative===0&&N.negative!==0?(Pe=this.divmod(N.neg(),W),W!=="mod"&&(ae=Pe.div.neg()),{div:ae,mod:Pe.mod}):(this.negative&N.negative)!==0?(Pe=this.neg().divmod(N.neg(),W),W!=="div"&&(be=Pe.mod.neg(),re&&be.negative!==0&&be.isub(N)),{div:Pe.div,mod:be}):N.length>this.length||this.cmp(N)<0?{div:new c(0),mod:this}:N.length===1?W==="div"?{div:this.divn(N.words[0]),mod:null}:W==="mod"?{div:null,mod:new c(this.modn(N.words[0]))}:{div:this.divn(N.words[0]),mod:new c(this.modn(N.words[0]))}:this._wordDiv(N,W)},c.prototype.div=function(N){return this.divmod(N,"div",!1).div},c.prototype.mod=function(N){return this.divmod(N,"mod",!1).mod},c.prototype.umod=function(N){return this.divmod(N,"mod",!0).mod},c.prototype.divRound=function(N){var W=this.divmod(N);if(W.mod.isZero())return W.div;var re=W.div.negative!==0?W.mod.isub(N):W.mod,ae=N.ushrn(1),be=N.andln(1),Pe=re.cmp(ae);return Pe<0||be===1&&Pe===0?W.div:W.div.negative!==0?W.div.isubn(1):W.div.iaddn(1)},c.prototype.modn=function(N){l(N<=67108863);for(var W=(1<<26)%N,re=0,ae=this.length-1;ae>=0;ae--)re=(W*re+(this.words[ae]|0))%N;return re},c.prototype.idivn=function(N){l(N<=67108863);for(var W=0,re=this.length-1;re>=0;re--){var ae=(this.words[re]|0)+W*67108864;this.words[re]=ae/N|0,W=ae%N}return this.strip()},c.prototype.divn=function(N){return this.clone().idivn(N)},c.prototype.egcd=function(N){l(N.negative===0),l(!N.isZero());var W=this,re=N.clone();W.negative!==0?W=W.umod(N):W=W.clone();for(var ae=new c(1),be=new c(0),Pe=new c(0),Ce=new c(1),de=0;W.isEven()&&re.isEven();)W.iushrn(1),re.iushrn(1),++de;for(var te=re.clone(),ke=W.clone();!W.isZero();){for(var Ee=0,Me=1;(W.words[0]&Me)===0&&Ee<26;++Ee,Me<<=1);if(Ee>0)for(W.iushrn(Ee);Ee-- >0;)(ae.isOdd()||be.isOdd())&&(ae.iadd(te),be.isub(ke)),ae.iushrn(1),be.iushrn(1);for(var Ue=0,Fe=1;(re.words[0]&Fe)===0&&Ue<26;++Ue,Fe<<=1);if(Ue>0)for(re.iushrn(Ue);Ue-- >0;)(Pe.isOdd()||Ce.isOdd())&&(Pe.iadd(te),Ce.isub(ke)),Pe.iushrn(1),Ce.iushrn(1);W.cmp(re)>=0?(W.isub(re),ae.isub(Pe),be.isub(Ce)):(re.isub(W),Pe.isub(ae),Ce.isub(be))}return{a:Pe,b:Ce,gcd:re.iushln(de)}},c.prototype._invmp=function(N){l(N.negative===0),l(!N.isZero());var W=this,re=N.clone();W.negative!==0?W=W.umod(N):W=W.clone();for(var ae=new c(1),be=new c(0),Pe=re.clone();W.cmpn(1)>0&&re.cmpn(1)>0;){for(var Ce=0,de=1;(W.words[0]&de)===0&&Ce<26;++Ce,de<<=1);if(Ce>0)for(W.iushrn(Ce);Ce-- >0;)ae.isOdd()&&ae.iadd(Pe),ae.iushrn(1);for(var te=0,ke=1;(re.words[0]&ke)===0&&te<26;++te,ke<<=1);if(te>0)for(re.iushrn(te);te-- >0;)be.isOdd()&&be.iadd(Pe),be.iushrn(1);W.cmp(re)>=0?(W.isub(re),ae.isub(be)):(re.isub(W),be.isub(ae))}var Ee;return W.cmpn(1)===0?Ee=ae:Ee=be,Ee.cmpn(0)<0&&Ee.iadd(N),Ee},c.prototype.gcd=function(N){if(this.isZero())return N.abs();if(N.isZero())return this.abs();var W=this.clone(),re=N.clone();W.negative=0,re.negative=0;for(var ae=0;W.isEven()&&re.isEven();ae++)W.iushrn(1),re.iushrn(1);do{for(;W.isEven();)W.iushrn(1);for(;re.isEven();)re.iushrn(1);var be=W.cmp(re);if(be<0){var Pe=W;W=re,re=Pe}else if(be===0||re.cmpn(1)===0)break;W.isub(re)}while(!0);return re.iushln(ae)},c.prototype.invm=function(N){return this.egcd(N).a.umod(N)},c.prototype.isEven=function(){return(this.words[0]&1)===0},c.prototype.isOdd=function(){return(this.words[0]&1)===1},c.prototype.andln=function(N){return this.words[0]&N},c.prototype.bincn=function(N){l(typeof N=="number");var W=N%26,re=(N-W)/26,ae=1<>>26,Ce&=67108863,this.words[Pe]=Ce}return be!==0&&(this.words[Pe]=be,this.length++),this},c.prototype.isZero=function(){return this.length===1&&this.words[0]===0},c.prototype.cmpn=function(N){var W=N<0;if(this.negative!==0&&!W)return-1;if(this.negative===0&&W)return 1;this.strip();var re;if(this.length>1)re=1;else{W&&(N=-N),l(N<=67108863,"Number is too big");var ae=this.words[0]|0;re=ae===N?0:aeN.length)return 1;if(this.length=0;re--){var ae=this.words[re]|0,be=N.words[re]|0;if(ae!==be){aebe&&(W=1);break}}return W},c.prototype.gtn=function(N){return this.cmpn(N)===1},c.prototype.gt=function(N){return this.cmp(N)===1},c.prototype.gten=function(N){return this.cmpn(N)>=0},c.prototype.gte=function(N){return this.cmp(N)>=0},c.prototype.ltn=function(N){return this.cmpn(N)===-1},c.prototype.lt=function(N){return this.cmp(N)===-1},c.prototype.lten=function(N){return this.cmpn(N)<=0},c.prototype.lte=function(N){return this.cmp(N)<=0},c.prototype.eqn=function(N){return this.cmpn(N)===0},c.prototype.eq=function(N){return this.cmp(N)===0},c.red=function(N){return new G(N)},c.prototype.toRed=function(N){return l(!this.red,"Already a number in reduction context"),l(this.negative===0,"red works only with positives"),N.convertTo(this)._forceRed(N)},c.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(N){return this.red=N,this},c.prototype.forceRed=function(N){return l(!this.red,"Already a number in reduction context"),this._forceRed(N)},c.prototype.redAdd=function(N){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,N)},c.prototype.redIAdd=function(N){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,N)},c.prototype.redSub=function(N){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,N)},c.prototype.redISub=function(N){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,N)},c.prototype.redShl=function(N){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,N)},c.prototype.redMul=function(N){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.mul(this,N)},c.prototype.redIMul=function(N){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.imul(this,N)},c.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(N){return l(this.red&&!N.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,N)};var m={k256:null,p224:null,p192:null,p25519:null};function P(H,N){this.name=H,this.p=new c(N,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}P.prototype._tmp=function(){var N=new c(null);return N.words=new Array(Math.ceil(this.n/13)),N},P.prototype.ireduce=function(N){var W=N,re;do this.split(W,this.tmp),W=this.imulK(W),W=W.iadd(this.tmp),re=W.bitLength();while(re>this.n);var ae=re0?W.isub(this.p):W.strip!==void 0?W.strip():W._strip(),W},P.prototype.split=function(N,W){N.iushrn(this.n,0,W)},P.prototype.imulK=function(N){return N.imul(this.k)};function A(){P.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(A,P),A.prototype.split=function(N,W){for(var re=4194303,ae=Math.min(N.length,9),be=0;be>>22,Pe=Ce}Pe>>>=22,N.words[be-10]=Pe,Pe===0&&N.length>10?N.length-=10:N.length-=9},A.prototype.imulK=function(N){N.words[N.length]=0,N.words[N.length+1]=0,N.length+=2;for(var W=0,re=0;re>>=26,N.words[re]=be,W=ae}return W!==0&&(N.words[N.length++]=W),N},c._prime=function(N){if(m[N])return m[N];var W;if(N==="k256")W=new A;else if(N==="p224")W=new B;else if(N==="p192")W=new F;else if(N==="p25519")W=new U;else throw new Error("Unknown prime "+N);return m[N]=W,W};function G(H){if(typeof H=="string"){var N=c._prime(H);this.m=N.p,this.prime=N}else l(H.gtn(1),"modulus must be greater than 1"),this.m=H,this.prime=null}G.prototype._verify1=function(N){l(N.negative===0,"red works only with positives"),l(N.red,"red works only with red numbers")},G.prototype._verify2=function(N,W){l((N.negative|W.negative)===0,"red works only with positives"),l(N.red&&N.red===W.red,"red works only with red numbers")},G.prototype.imod=function(N){return this.prime?this.prime.ireduce(N)._forceRed(this):N.umod(this.m)._forceRed(this)},G.prototype.neg=function(N){return N.isZero()?N.clone():this.m.sub(N)._forceRed(this)},G.prototype.add=function(N,W){this._verify2(N,W);var re=N.add(W);return re.cmp(this.m)>=0&&re.isub(this.m),re._forceRed(this)},G.prototype.iadd=function(N,W){this._verify2(N,W);var re=N.iadd(W);return re.cmp(this.m)>=0&&re.isub(this.m),re},G.prototype.sub=function(N,W){this._verify2(N,W);var re=N.sub(W);return re.cmpn(0)<0&&re.iadd(this.m),re._forceRed(this)},G.prototype.isub=function(N,W){this._verify2(N,W);var re=N.isub(W);return re.cmpn(0)<0&&re.iadd(this.m),re},G.prototype.shl=function(N,W){return this._verify1(N),this.imod(N.ushln(W))},G.prototype.imul=function(N,W){return this._verify2(N,W),this.imod(N.imul(W))},G.prototype.mul=function(N,W){return this._verify2(N,W),this.imod(N.mul(W))},G.prototype.isqr=function(N){return this.imul(N,N.clone())},G.prototype.sqr=function(N){return this.mul(N,N)},G.prototype.sqrt=function(N){if(N.isZero())return N.clone();var W=this.m.andln(3);if(l(W%2===1),W===3){var re=this.m.add(new c(1)).iushrn(2);return this.pow(N,re)}for(var ae=this.m.subn(1),be=0;!ae.isZero()&&ae.andln(1)===0;)be++,ae.iushrn(1);l(!ae.isZero());var Pe=new c(1).toRed(this),Ce=Pe.redNeg(),de=this.m.subn(1).iushrn(1),te=this.m.bitLength();for(te=new c(2*te*te).toRed(this);this.pow(te,de).cmp(Ce)!==0;)te.redIAdd(Ce);for(var ke=this.pow(te,ae),Ee=this.pow(N,ae.addn(1).iushrn(1)),Me=this.pow(N,ae),Ue=be;Me.cmp(Pe)!==0;){for(var Fe=Me,me=0;Fe.cmp(Pe)!==0;me++)Fe=Fe.redSqr();l(me=0;be--){for(var ke=W.words[be],Ee=te-1;Ee>=0;Ee--){var Me=ke>>Ee&1;if(Pe!==ae[0]&&(Pe=this.sqr(Pe)),Me===0&&Ce===0){de=0;continue}Ce<<=1,Ce|=Me,de++,!(de!==re&&(be!==0||Ee!==0))&&(Pe=this.mul(Pe,ae[Ce]),de=0,Ce=0)}te=26}return Pe},G.prototype.convertTo=function(N){var W=N.umod(this.m);return W===N?W.clone():W},G.prototype.convertFrom=function(N){var W=N.clone();return W.red=null,W},c.mont=function(N){return new j(N)};function j(H){G.call(this,H),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}f(j,G),j.prototype.convertTo=function(N){return this.imod(N.ushln(this.shift))},j.prototype.convertFrom=function(N){var W=this.imod(N.mul(this.rinv));return W.red=null,W},j.prototype.imul=function(N,W){if(N.isZero()||W.isZero())return N.words[0]=0,N.length=1,N;var re=N.imul(W),ae=re.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),be=re.isub(ae).iushrn(this.shift),Pe=be;return be.cmp(this.m)>=0?Pe=be.isub(this.m):be.cmpn(0)<0&&(Pe=be.iadd(this.m)),Pe._forceRed(this)},j.prototype.mul=function(N,W){if(N.isZero()||W.isZero())return new c(0)._forceRed(this);var re=N.mul(W),ae=re.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),be=re.isub(ae).iushrn(this.shift),Pe=be;return be.cmp(this.m)>=0?Pe=be.isub(this.m):be.cmpn(0)<0&&(Pe=be.iadd(this.m)),Pe._forceRed(this)},j.prototype.invm=function(N){var W=this.imod(N._invmp(this.m).mul(this.r2));return W._forceRed(this)}}(i,this)},6204:function(i){"use strict";i.exports=a;function a(o){var s,u,l,f=o.length,c=0;for(s=0;s>>1;if(!(S<=0)){var m,P=s.mallocDouble(2*S*_),A=s.mallocInt32(_);if(_=c(k,S,P,A),_>0){if(S===1&&L)u.init(_),m=u.sweepComplete(S,T,0,_,P,A,0,_,P,A);else{var B=s.mallocDouble(2*S*C),F=s.mallocInt32(C);C=c(E,S,B,F),C>0&&(u.init(_+C),S===1?m=u.sweepBipartite(S,T,0,_,P,A,0,C,B,F):m=l(S,T,L,_,P,A,C,B,F),s.free(B),s.free(F))}s.free(P),s.free(A)}return m}}}var d;function p(k,E){d.push([k,E])}function x(k){return d=[],h(k,k,p,!0),d}function b(k,E){return d=[],h(k,E,p,!1),d}function v(k,E,T){switch(arguments.length){case 1:return x(k);case 2:return typeof E=="function"?h(k,k,E,!0):b(k,E);case 3:return h(k,E,T,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455:function(i,a){"use strict";function o(){function l(h,d,p,x,b,v,k,E,T,L,_){for(var C=2*h,S=x,m=C*x;ST-E?l(h,d,p,x,b,v,k,E,T,L,_):f(h,d,p,x,b,v,k,E,T,L,_)}return c}function s(){function l(p,x,b,v,k,E,T,L,_,C,S){for(var m=2*p,P=v,A=m*v;PC-_?v?l(p,x,b,k,E,T,L,_,C,S,m):f(p,x,b,k,E,T,L,_,C,S,m):v?c(p,x,b,k,E,T,L,_,C,S,m):h(p,x,b,k,E,T,L,_,C,S,m)}return d}function u(l){return l?o():s()}a.partial=u(!1),a.full=u(!0)},7150:function(i,a,o){"use strict";i.exports=H;var s=o(1888),u=o(8828),l=o(2455),f=l.partial,c=l.full,h=o(855),d=o(3545),p=o(8105),x=128,b=1<<22,v=1<<22,k=p("!(lo>=p0)&&!(p1>=hi)"),E=p("lo===p0"),T=p("lo0;){ke-=1;var Ue=ke*S,Fe=A[Ue],me=A[Ue+1],Ne=A[Ue+2],ce=A[Ue+3],Ke=A[Ue+4],it=A[Ue+5],bt=ke*m,Nt=B[bt],nt=B[bt+1],Ye=it&1,kt=!!(it&16),At=be,St=Pe,Bt=de,Zt=te;if(Ye&&(At=de,St=te,Bt=be,Zt=Pe),!(it&2&&(Ne=T(N,Fe,me,Ne,At,St,nt),me>=Ne))&&!(it&4&&(me=L(N,Fe,me,Ne,At,St,Nt),me>=Ne))){var Et=Ne-me,Ae=Ke-ce;if(kt){if(N*Et*(Et+Ae)p&&b[C+d]>L;--_,C-=k){for(var S=C,m=C+k,P=0;P>>1,L=2*h,_=T,C=b[L*T+d];k=B?(_=A,C=B):P>=U?(_=m,C=P):(_=F,C=U):B>=U?(_=A,C=B):U>=P?(_=m,C=P):(_=F,C=U);for(var H=L*(E-1),N=L*_,G=0;G=p0)&&!(p1>=hi)":d};function o(p){return a[p]}function s(p,x,b,v,k,E,T){for(var L=2*p,_=L*b,C=_,S=b,m=x,P=p+x,A=b;v>A;++A,_+=L){var B=k[_+m];if(B===T)if(S===A)S+=1,C+=L;else{for(var F=0;L>F;++F){var U=k[_+F];k[_+F]=k[C],k[C++]=U}var G=E[A];E[A]=E[S],E[S++]=G}}return S}function u(p,x,b,v,k,E,T){for(var L=2*p,_=L*b,C=_,S=b,m=x,P=p+x,A=b;v>A;++A,_+=L){var B=k[_+m];if(BF;++F){var U=k[_+F];k[_+F]=k[C],k[C++]=U}var G=E[A];E[A]=E[S],E[S++]=G}}return S}function l(p,x,b,v,k,E,T){for(var L=2*p,_=L*b,C=_,S=b,m=x,P=p+x,A=b;v>A;++A,_+=L){var B=k[_+P];if(B<=T)if(S===A)S+=1,C+=L;else{for(var F=0;L>F;++F){var U=k[_+F];k[_+F]=k[C],k[C++]=U}var G=E[A];E[A]=E[S],E[S++]=G}}return S}function f(p,x,b,v,k,E,T){for(var L=2*p,_=L*b,C=_,S=b,m=x,P=p+x,A=b;v>A;++A,_+=L){var B=k[_+P];if(B<=T)if(S===A)S+=1,C+=L;else{for(var F=0;L>F;++F){var U=k[_+F];k[_+F]=k[C],k[C++]=U}var G=E[A];E[A]=E[S],E[S++]=G}}return S}function c(p,x,b,v,k,E,T){for(var L=2*p,_=L*b,C=_,S=b,m=x,P=p+x,A=b;v>A;++A,_+=L){var B=k[_+m],F=k[_+P];if(B<=T&&T<=F)if(S===A)S+=1,C+=L;else{for(var U=0;L>U;++U){var G=k[_+U];k[_+U]=k[C],k[C++]=G}var j=E[A];E[A]=E[S],E[S++]=j}}return S}function h(p,x,b,v,k,E,T){for(var L=2*p,_=L*b,C=_,S=b,m=x,P=p+x,A=b;v>A;++A,_+=L){var B=k[_+m],F=k[_+P];if(BU;++U){var G=k[_+U];k[_+U]=k[C],k[C++]=G}var j=E[A];E[A]=E[S],E[S++]=j}}return S}function d(p,x,b,v,k,E,T,L){for(var _=2*p,C=_*b,S=C,m=b,P=x,A=p+x,B=b;v>B;++B,C+=_){var F=k[C+P],U=k[C+A];if(!(F>=T)&&!(L>=U))if(m===B)m+=1,S+=_;else{for(var G=0;_>G;++G){var j=k[C+G];k[C+G]=k[S],k[S++]=j}var H=E[B];E[B]=E[m],E[m++]=H}}return m}},4192:function(i){"use strict";i.exports=o;var a=32;function o(x,b){b<=4*a?s(0,b-1,x):p(0,b-1,x)}function s(x,b,v){for(var k=2*(x+1),E=x+1;E<=b;++E){for(var T=v[k++],L=v[k++],_=E,C=k-2;_-- >x;){var S=v[C-2],m=v[C-1];if(Sv[b+1]:!0}function d(x,b,v,k){x*=2;var E=k[x];return E>1,_=L-k,C=L+k,S=E,m=_,P=L,A=C,B=T,F=x+1,U=b-1,G=0;h(S,m,v)&&(G=S,S=m,m=G),h(A,B,v)&&(G=A,A=B,B=G),h(S,P,v)&&(G=S,S=P,P=G),h(m,P,v)&&(G=m,m=P,P=G),h(S,A,v)&&(G=S,S=A,A=G),h(P,A,v)&&(G=P,P=A,A=G),h(m,B,v)&&(G=m,m=B,B=G),h(m,P,v)&&(G=m,m=P,P=G),h(A,B,v)&&(G=A,A=B,B=G);for(var j=v[2*m],H=v[2*m+1],N=v[2*A],W=v[2*A+1],re=2*S,ae=2*P,be=2*B,Pe=2*E,Ce=2*L,de=2*T,te=0;te<2;++te){var ke=v[re+te],Ee=v[ae+te],Me=v[be+te];v[Pe+te]=ke,v[Ce+te]=Ee,v[de+te]=Me}l(_,x,v),l(C,b,v);for(var Ue=F;Ue<=U;++Ue)if(d(Ue,j,H,v))Ue!==F&&u(Ue,F,v),++F;else if(!d(Ue,N,W,v))for(;;)if(d(U,N,W,v)){d(U,j,H,v)?(f(Ue,F,U,v),++F,--U):(u(Ue,U,v),--U);break}else{if(--U>>1;l(k,Ee);for(var Me=0,Ue=0,Ce=0;Ce=f)Fe=Fe-f|0,T(p,x,Ue--,Fe);else if(Fe>=0)T(h,d,Me--,Fe);else if(Fe<=-f){Fe=-Fe-f|0;for(var me=0;me>>1;l(k,Ee);for(var Me=0,Ue=0,Fe=0,Ce=0;Ce>1===k[2*Ce+3]>>1&&(Ne=2,Ce+=1),me<0){for(var ce=-(me>>1)-1,Ke=0;Ke>1)-1;Ne===0?T(h,d,Me--,ce):Ne===1?T(p,x,Ue--,ce):Ne===2&&T(b,v,Fe--,ce)}}}function S(P,A,B,F,U,G,j,H,N,W,re,ae){var be=0,Pe=2*P,Ce=A,de=A+P,te=1,ke=1;F?ke=f:te=f;for(var Ee=U;Ee>>1;l(k,me);for(var Ne=0,Ee=0;Ee=f?(Ke=!F,Me-=f):(Ke=!!F,Me-=1),Ke)L(h,d,Ne++,Me);else{var it=ae[Me],bt=Pe*Me,Nt=re[bt+A+1],nt=re[bt+A+1+P];e:for(var Ye=0;Ye>>1;l(k,Me);for(var Ue=0,de=0;de=f)h[Ue++]=te-f;else{te-=1;var me=re[te],Ne=be*te,ce=W[Ne+A+1],Ke=W[Ne+A+1+P];e:for(var it=0;it=0;--it)if(h[it]===te){for(var Ye=it+1;Ye0;){for(var E=d.pop(),b=d.pop(),T=-1,L=-1,v=x[b],C=1;C=0||(h.flip(b,E),l(c,h,d,T,b,L),l(c,h,d,b,L,T),l(c,h,d,L,E,T),l(c,h,d,E,T,L))}}},5023:function(i,a,o){"use strict";var s=o(2478);i.exports=d;function u(p,x,b,v,k,E,T){this.cells=p,this.neighbor=x,this.flags=v,this.constraint=b,this.active=k,this.next=E,this.boundary=T}var l=u.prototype;function f(p,x){return p[0]-x[0]||p[1]-x[1]||p[2]-x[2]}l.locate=function(){var p=[0,0,0];return function(x,b,v){var k=x,E=b,T=v;return b0||T.length>0;){for(;E.length>0;){var m=E.pop();if(L[m]!==-k){L[m]=k;for(var P=_[m],A=0;A<3;++A){var B=S[3*m+A];B>=0&&L[B]===0&&(C[3*m+A]?T.push(B):(E.push(B),L[B]=k))}}}var F=T;T=E,E=F,T.length=0,k=-k}var U=h(_,L,x);return b?U.concat(v.boundary):U}},8902:function(i,a,o){"use strict";var s=o(2478),u=o(3250)[3],l=0,f=1,c=2;i.exports=T;function h(L,_,C,S,m){this.a=L,this.b=_,this.idx=C,this.lowerIds=S,this.upperIds=m}function d(L,_,C,S){this.a=L,this.b=_,this.type=C,this.idx=S}function p(L,_){var C=L.a[0]-_.a[0]||L.a[1]-_.a[1]||L.type-_.type;return C||L.type!==l&&(C=u(L.a,L.b,_.b),C)?C:L.idx-_.idx}function x(L,_){return u(L.a,L.b,_)}function b(L,_,C,S,m){for(var P=s.lt(_,S,x),A=s.gt(_,S,x),B=P;B1&&u(C[U[j-2]],C[U[j-1]],S)>0;)L.push([U[j-1],U[j-2],m]),j-=1;U.length=j,U.push(m);for(var G=F.upperIds,j=G.length;j>1&&u(C[G[j-2]],C[G[j-1]],S)<0;)L.push([G[j-2],G[j-1],m]),j-=1;G.length=j,G.push(m)}}function v(L,_){var C;return L.a[0]<_.a[0]?C=u(L.a,L.b,_.a):C=u(_.b,_.a,L.a),C||(_.b[0]F[0]&&m.push(new d(F,B,c,P),new d(B,F,f,P))}m.sort(p);for(var U=m[0].a[0]-(1+Math.abs(m[0].a[0]))*Math.pow(2,-52),G=[new h([U,1],[U,0],-1,[],[],[],[])],j=[],P=0,H=m.length;P=0}}(),l.removeTriangle=function(h,d,p){var x=this.stars;f(x[h],d,p),f(x[d],p,h),f(x[p],h,d)},l.addTriangle=function(h,d,p){var x=this.stars;x[h].push(d,p),x[d].push(p,h),x[p].push(h,d)},l.opposite=function(h,d){for(var p=this.stars[d],x=1,b=p.length;x=0;--N){var ke=j[N];W=ke[0];var Ee=U[W],Me=Ee[0],Ue=Ee[1],Fe=F[Me],me=F[Ue];if((Fe[0]-me[0]||Fe[1]-me[1])<0){var Ne=Me;Me=Ue,Ue=Ne}Ee[0]=Me;var ce=Ee[1]=ke[1],Ke;for(H&&(Ke=Ee[2]);N>0&&j[N-1][0]===W;){var ke=j[--N],it=ke[1];H?U.push([ce,it,Ke]):U.push([ce,it]),ce=it}H?U.push([ce,Ue,Ke]):U.push([ce,Ue])}return re}function _(F,U,G){for(var j=U.length,H=new s(j),N=[],W=0;WU[2]?1:0)}function m(F,U,G){if(F.length!==0){if(U)for(var j=0;j0||W.length>0}function B(F,U,G){var j;if(G){j=U;for(var H=new Array(U.length),N=0;NL+1)throw new Error(E+" map requires nshades to be at least size "+k.length);Array.isArray(d.alpha)?d.alpha.length!==2?_=[1,1]:_=d.alpha.slice():typeof d.alpha=="number"?_=[d.alpha,d.alpha]:_=[1,1],p=k.map(function(B){return Math.round(B.index*L)}),_[0]=Math.min(Math.max(_[0],0),1),_[1]=Math.min(Math.max(_[1],0),1);var S=k.map(function(B,F){var U=k[F].index,G=k[F].rgb.slice();return G.length===4&&G[3]>=0&&G[3]<=1||(G[3]=_[0]+(_[1]-_[0])*U),G}),m=[];for(C=0;C=0}function d(p,x,b,v){var k=s(x,b,v);if(k===0){var E=u(s(p,x,b)),T=u(s(p,x,v));if(E===T){if(E===0){var L=h(p,x,b),_=h(p,x,v);return L===_?0:L?1:-1}return 0}else{if(T===0)return E>0||h(p,x,v)?-1:1;if(E===0)return T>0||h(p,x,b)?1:-1}return u(T-E)}var C=s(p,x,b);if(C>0)return k>0&&s(p,x,v)>0?1:-1;if(C<0)return k>0||s(p,x,v)>0?1:-1;var S=s(p,x,v);return S>0||h(p,x,b)?1:-1}},8572:function(i){"use strict";i.exports=function(o){return o<0?-1:o>0?1:0}},8507:function(i){i.exports=s;var a=Math.min;function o(u,l){return u-l}function s(u,l){var f=u.length,c=u.length-l.length;if(c)return c;switch(f){case 0:return 0;case 1:return u[0]-l[0];case 2:return u[0]+u[1]-l[0]-l[1]||a(u[0],u[1])-a(l[0],l[1]);case 3:var h=u[0]+u[1],d=l[0]+l[1];if(c=h+u[2]-(d+l[2]),c)return c;var p=a(u[0],u[1]),x=a(l[0],l[1]);return a(p,u[2])-a(x,l[2])||a(p+u[2],h)-a(x+l[2],d);case 4:var b=u[0],v=u[1],k=u[2],E=u[3],T=l[0],L=l[1],_=l[2],C=l[3];return b+v+k+E-(T+L+_+C)||a(b,v,k,E)-a(T,L,_,C,T)||a(b+v,b+k,b+E,v+k,v+E,k+E)-a(T+L,T+_,T+C,L+_,L+C,_+C)||a(b+v+k,b+v+E,b+k+E,v+k+E)-a(T+L+_,T+L+C,T+_+C,L+_+C);default:for(var S=u.slice().sort(o),m=l.slice().sort(o),P=0;Po[u][0]&&(u=l);return su?[[u],[s]]:[[s]]}},4750:function(i,a,o){"use strict";i.exports=u;var s=o(3090);function u(l){var f=s(l),c=f.length;if(c<=2)return[];for(var h=new Array(c),d=f[c-1],p=0;p=d[T]&&(E+=1);v[k]=E}}return h}function c(h,d){try{return s(h,!0)}catch(v){var p=u(h);if(p.length<=d)return[];var x=l(h,p),b=s(x,!0);return f(b,p)}}},4769:function(i){"use strict";function a(s,u,l,f,c,h){var d=6*c*c-6*c,p=3*c*c-4*c+1,x=-6*c*c+6*c,b=3*c*c-2*c;if(s.length){h||(h=new Array(s.length));for(var v=s.length-1;v>=0;--v)h[v]=d*s[v]+p*u[v]+x*l[v]+b*f[v];return h}return d*s+p*u+x*l[v]+b*f}function o(s,u,l,f,c,h){var d=c-1,p=c*c,x=d*d,b=(1+2*c)*x,v=c*x,k=p*(3-2*c),E=p*d;if(s.length){h||(h=new Array(s.length));for(var T=s.length-1;T>=0;--T)h[T]=b*s[T]+v*u[T]+k*l[T]+E*f[T];return h}return b*s+v*u+k*l+E*f}i.exports=o,i.exports.derivative=a},7642:function(i,a,o){"use strict";var s=o(8954),u=o(1682);i.exports=h;function l(d,p){this.point=d,this.index=p}function f(d,p){for(var x=d.point,b=p.point,v=x.length,k=0;k=2)return!1;G[H]=N}return!0}):U=U.filter(function(G){for(var j=0;j<=b;++j){var H=P[G[j]];if(H<0)return!1;G[j]=H}return!0}),b&1)for(var E=0;E>>31},i.exports.exponent=function(k){var E=i.exports.hi(k);return(E<<1>>>21)-1023},i.exports.fraction=function(k){var E=i.exports.lo(k),T=i.exports.hi(k),L=T&(1<<20)-1;return T&2146435072&&(L+=1048576),[E,L]},i.exports.denormalized=function(k){var E=i.exports.hi(k);return!(E&2146435072)}},1338:function(i){"use strict";function a(u,l,f){var c=u[f]|0;if(c<=0)return[];var h=new Array(c),d;if(f===u.length-1)for(d=0;d0)return o(u|0,l);break;case"object":if(typeof u.length=="number")return a(u,l,0);break}return[]}i.exports=s},3134:function(i,a,o){"use strict";i.exports=u;var s=o(1682);function u(l,f){var c=l.length;if(typeof f!="number"){f=0;for(var h=0;h=b-1)for(var C=E.length-1,m=p-x[b-1],S=0;S=b-1)for(var _=E.length-1,C=p-x[b-1],S=0;S=0;--b)if(p[--x])return!1;return!0},c.jump=function(p){var x=this.lastT(),b=this.dimension;if(!(p0;--S)v.push(l(L[S-1],_[S-1],arguments[S])),k.push(0)}},c.push=function(p){var x=this.lastT(),b=this.dimension;if(!(p1e-6?1/T:0;this._time.push(p);for(var m=b;m>0;--m){var P=l(_[m-1],C[m-1],arguments[m]);v.push(P),k.push((P-v[E++])*S)}}},c.set=function(p){var x=this.dimension;if(!(p0;--L)b.push(l(E[L-1],T[L-1],arguments[L])),v.push(0)}},c.move=function(p){var x=this.lastT(),b=this.dimension;if(!(p<=x||arguments.length!==b+1)){var v=this._state,k=this._velocity,E=v.length-this.dimension,T=this.bounds,L=T[0],_=T[1],C=p-x,S=C>1e-6?1/C:0;this._time.push(p);for(var m=b;m>0;--m){var P=arguments[m];v.push(l(L[m-1],_[m-1],v[E++]+P)),k.push(P*S)}}},c.idle=function(p){var x=this.lastT();if(!(p=0;--S)v.push(l(L[S],_[S],v[E]+C*k[E])),k.push(0),E+=1}};function h(p){for(var x=new Array(p),b=0;b=0;--F){var m=P[F];A[F]<=0?P[F]=new s(m._color,m.key,m.value,P[F+1],m.right,m._count+1):P[F]=new s(m._color,m.key,m.value,m.left,P[F+1],m._count+1)}for(var F=P.length-1;F>1;--F){var U=P[F-1],m=P[F];if(U._color===o||m._color===o)break;var G=P[F-2];if(G.left===U)if(U.left===m){var j=G.right;if(j&&j._color===a)U._color=o,G.right=l(o,j),G._color=a,F-=1;else{if(G._color=a,G.left=U.right,U._color=o,U.right=G,P[F-2]=U,P[F-1]=m,f(G),f(U),F>=3){var H=P[F-3];H.left===G?H.left=U:H.right=U}break}}else{var j=G.right;if(j&&j._color===a)U._color=o,G.right=l(o,j),G._color=a,F-=1;else{if(U.right=m.left,G._color=a,G.left=m.right,m._color=o,m.left=U,m.right=G,P[F-2]=m,P[F-1]=U,f(G),f(U),f(m),F>=3){var H=P[F-3];H.left===G?H.left=m:H.right=m}break}}else if(U.right===m){var j=G.left;if(j&&j._color===a)U._color=o,G.left=l(o,j),G._color=a,F-=1;else{if(G._color=a,G.right=U.left,U._color=o,U.left=G,P[F-2]=U,P[F-1]=m,f(G),f(U),F>=3){var H=P[F-3];H.right===G?H.right=U:H.left=U}break}}else{var j=G.left;if(j&&j._color===a)U._color=o,G.left=l(o,j),G._color=a,F-=1;else{if(U.left=m.right,G._color=a,G.right=m.left,m._color=o,m.right=U,m.left=G,P[F-2]=m,P[F-1]=U,f(G),f(U),f(m),F>=3){var H=P[F-3];H.right===G?H.right=m:H.left=m}break}}}return P[0]._color=o,new c(S,P[0])};function d(_,C){if(C.left){var S=d(_,C.left);if(S)return S}var S=_(C.key,C.value);if(S)return S;if(C.right)return d(_,C.right)}function p(_,C,S,m){var P=C(_,m.key);if(P<=0){if(m.left){var A=p(_,C,S,m.left);if(A)return A}var A=S(m.key,m.value);if(A)return A}if(m.right)return p(_,C,S,m.right)}function x(_,C,S,m,P){var A=S(_,P.key),B=S(C,P.key),F;if(A<=0&&(P.left&&(F=x(_,C,S,m,P.left),F)||B>0&&(F=m(P.key,P.value),F)))return F;if(B>0&&P.right)return x(_,C,S,m,P.right)}h.forEach=function(C,S,m){if(this.root)switch(arguments.length){case 1:return d(C,this.root);case 2:return p(S,this._compare,C,this.root);case 3:return this._compare(S,m)>=0?void 0:x(S,m,this._compare,C,this.root)}},Object.defineProperty(h,"begin",{get:function(){for(var _=[],C=this.root;C;)_.push(C),C=C.left;return new b(this,_)}}),Object.defineProperty(h,"end",{get:function(){for(var _=[],C=this.root;C;)_.push(C),C=C.right;return new b(this,_)}}),h.at=function(_){if(_<0)return new b(this,[]);for(var C=this.root,S=[];;){if(S.push(C),C.left){if(_=C.right._count)break;C=C.right}else break}return new b(this,[])},h.ge=function(_){for(var C=this._compare,S=this.root,m=[],P=0;S;){var A=C(_,S.key);m.push(S),A<=0&&(P=m.length),A<=0?S=S.left:S=S.right}return m.length=P,new b(this,m)},h.gt=function(_){for(var C=this._compare,S=this.root,m=[],P=0;S;){var A=C(_,S.key);m.push(S),A<0&&(P=m.length),A<0?S=S.left:S=S.right}return m.length=P,new b(this,m)},h.lt=function(_){for(var C=this._compare,S=this.root,m=[],P=0;S;){var A=C(_,S.key);m.push(S),A>0&&(P=m.length),A<=0?S=S.left:S=S.right}return m.length=P,new b(this,m)},h.le=function(_){for(var C=this._compare,S=this.root,m=[],P=0;S;){var A=C(_,S.key);m.push(S),A>=0&&(P=m.length),A<0?S=S.left:S=S.right}return m.length=P,new b(this,m)},h.find=function(_){for(var C=this._compare,S=this.root,m=[];S;){var P=C(_,S.key);if(m.push(S),P===0)return new b(this,m);P<=0?S=S.left:S=S.right}return new b(this,[])},h.remove=function(_){var C=this.find(_);return C?C.remove():this},h.get=function(_){for(var C=this._compare,S=this.root;S;){var m=C(_,S.key);if(m===0)return S.value;m<=0?S=S.left:S=S.right}};function b(_,C){this.tree=_,this._stack=C}var v=b.prototype;Object.defineProperty(v,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(v,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),v.clone=function(){return new b(this.tree,this._stack.slice())};function k(_,C){_.key=C.key,_.value=C.value,_.left=C.left,_.right=C.right,_._color=C._color,_._count=C._count}function E(_){for(var C,S,m,P,A=_.length-1;A>=0;--A){if(C=_[A],A===0){C._color=o;return}if(S=_[A-1],S.left===C){if(m=S.right,m.right&&m.right._color===a){if(m=S.right=u(m),P=m.right=u(m.right),S.right=m.left,m.left=S,m.right=P,m._color=S._color,C._color=o,S._color=o,P._color=o,f(S),f(m),A>1){var B=_[A-2];B.left===S?B.left=m:B.right=m}_[A-1]=m;return}else if(m.left&&m.left._color===a){if(m=S.right=u(m),P=m.left=u(m.left),S.right=P.left,m.left=P.right,P.left=S,P.right=m,P._color=S._color,S._color=o,m._color=o,C._color=o,f(S),f(m),f(P),A>1){var B=_[A-2];B.left===S?B.left=P:B.right=P}_[A-1]=P;return}if(m._color===o)if(S._color===a){S._color=o,S.right=l(a,m);return}else{S.right=l(a,m);continue}else{if(m=u(m),S.right=m.left,m.left=S,m._color=S._color,S._color=a,f(S),f(m),A>1){var B=_[A-2];B.left===S?B.left=m:B.right=m}_[A-1]=m,_[A]=S,A+1<_.length?_[A+1]=C:_.push(C),A=A+2}}else{if(m=S.left,m.left&&m.left._color===a){if(m=S.left=u(m),P=m.left=u(m.left),S.left=m.right,m.right=S,m.left=P,m._color=S._color,C._color=o,S._color=o,P._color=o,f(S),f(m),A>1){var B=_[A-2];B.right===S?B.right=m:B.left=m}_[A-1]=m;return}else if(m.right&&m.right._color===a){if(m=S.left=u(m),P=m.right=u(m.right),S.left=P.right,m.right=P.left,P.right=S,P.left=m,P._color=S._color,S._color=o,m._color=o,C._color=o,f(S),f(m),f(P),A>1){var B=_[A-2];B.right===S?B.right=P:B.left=P}_[A-1]=P;return}if(m._color===o)if(S._color===a){S._color=o,S.left=l(a,m);return}else{S.left=l(a,m);continue}else{if(m=u(m),S.left=m.right,m.right=S,m._color=S._color,S._color=a,f(S),f(m),A>1){var B=_[A-2];B.right===S?B.right=m:B.left=m}_[A-1]=m,_[A]=S,A+1<_.length?_[A+1]=C:_.push(C),A=A+2}}}}v.remove=function(){var _=this._stack;if(_.length===0)return this.tree;var C=new Array(_.length),S=_[_.length-1];C[C.length-1]=new s(S._color,S.key,S.value,S.left,S.right,S._count);for(var m=_.length-2;m>=0;--m){var S=_[m];S.left===_[m+1]?C[m]=new s(S._color,S.key,S.value,C[m+1],S.right,S._count):C[m]=new s(S._color,S.key,S.value,S.left,C[m+1],S._count)}if(S=C[C.length-1],S.left&&S.right){var P=C.length;for(S=S.left;S.right;)C.push(S),S=S.right;var A=C[P-1];C.push(new s(S._color,A.key,A.value,S.left,S.right,S._count)),C[P-1].key=S.key,C[P-1].value=S.value;for(var m=C.length-2;m>=P;--m)S=C[m],C[m]=new s(S._color,S.key,S.value,S.left,C[m+1],S._count);C[P-1].left=C[P]}if(S=C[C.length-1],S._color===a){var B=C[C.length-2];B.left===S?B.left=null:B.right===S&&(B.right=null),C.pop();for(var m=0;m0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(v,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(v,"index",{get:function(){var _=0,C=this._stack;if(C.length===0){var S=this.tree.root;return S?S._count:0}else C[C.length-1].left&&(_=C[C.length-1].left._count);for(var m=C.length-2;m>=0;--m)C[m+1]===C[m].right&&(++_,C[m].left&&(_+=C[m].left._count));return _},enumerable:!0}),v.next=function(){var _=this._stack;if(_.length!==0){var C=_[_.length-1];if(C.right)for(C=C.right;C;)_.push(C),C=C.left;else for(_.pop();_.length>0&&_[_.length-1].right===C;)C=_[_.length-1],_.pop()}},Object.defineProperty(v,"hasNext",{get:function(){var _=this._stack;if(_.length===0)return!1;if(_[_.length-1].right)return!0;for(var C=_.length-1;C>0;--C)if(_[C-1].left===_[C])return!0;return!1}}),v.update=function(_){var C=this._stack;if(C.length===0)throw new Error("Can't update empty node!");var S=new Array(C.length),m=C[C.length-1];S[S.length-1]=new s(m._color,m.key,_,m.left,m.right,m._count);for(var P=C.length-2;P>=0;--P)m=C[P],m.left===C[P+1]?S[P]=new s(m._color,m.key,m.value,S[P+1],m.right,m._count):S[P]=new s(m._color,m.key,m.value,m.left,S[P+1],m._count);return new c(this.tree._compare,S[0])},v.prev=function(){var _=this._stack;if(_.length!==0){var C=_[_.length-1];if(C.left)for(C=C.left;C;)_.push(C),C=C.right;else for(_.pop();_.length>0&&_[_.length-1].left===C;)C=_[_.length-1],_.pop()}},Object.defineProperty(v,"hasPrev",{get:function(){var _=this._stack;if(_.length===0)return!1;if(_[_.length-1].left)return!0;for(var C=_.length-1;C>0;--C)if(_[C-1].right===_[C])return!0;return!1}});function T(_,C){return _C?1:0}function L(_){return new c(_||T,null)}},3837:function(i,a,o){"use strict";i.exports=F;var s=o(4935),u=o(501),l=o(5304),f=o(6429),c=o(6444),h=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),d=ArrayBuffer,p=DataView;function x(U){return d.isView(U)&&!(U instanceof p)}function b(U){return Array.isArray(U)||x(U)}function v(U,G){return U[0]=G[0],U[1]=G[1],U[2]=G[2],U}function k(U){this.gl=U,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=l(U)}var E=k.prototype;E.update=function(U){U=U||{};function G(Me,Ue,Fe){if(Fe in U){var me=U[Fe],Ne=this[Fe],ce;(Me?b(me)&&b(me[0]):b(me))?this[Fe]=ce=[Ue(me[0]),Ue(me[1]),Ue(me[2])]:this[Fe]=ce=[Ue(me),Ue(me),Ue(me)];for(var Ke=0;Ke<3;++Ke)if(ce[Ke]!==Ne[Ke])return!0}return!1}var j=G.bind(this,!1,Number),H=G.bind(this,!1,Boolean),N=G.bind(this,!1,String),W=G.bind(this,!0,function(Me){if(b(Me)){if(Me.length===3)return[+Me[0],+Me[1],+Me[2],1];if(Me.length===4)return[+Me[0],+Me[1],+Me[2],+Me[3]]}return[0,0,0,1]}),re,ae=!1,be=!1;if("bounds"in U)for(var Pe=U.bounds,Ce=0;Ce<2;++Ce)for(var de=0;de<3;++de)Pe[Ce][de]!==this.bounds[Ce][de]&&(be=!0),this.bounds[Ce][de]=Pe[Ce][de];if("ticks"in U){re=U.ticks,ae=!0,this.autoTicks=!1;for(var Ce=0;Ce<3;++Ce)this.tickSpacing[Ce]=0}else j("tickSpacing")&&(this.autoTicks=!0,be=!0);if(this._firstInit&&("ticks"in U||"tickSpacing"in U||(this.autoTicks=!0),be=!0,ae=!0,this._firstInit=!1),be&&this.autoTicks&&(re=c.create(this.bounds,this.tickSpacing),ae=!0),ae){for(var Ce=0;Ce<3;++Ce)re[Ce].sort(function(Ue,Fe){return Ue.x-Fe.x});c.equal(re,this.ticks)?ae=!1:this.ticks=re}H("tickEnable"),N("tickFont")&&(ae=!0),N("tickFontStyle")&&(ae=!0),N("tickFontWeight")&&(ae=!0),N("tickFontVariant")&&(ae=!0),j("tickSize"),j("tickAngle"),j("tickPad"),W("tickColor");var te=N("labels");N("labelFont")&&(te=!0),N("labelFontStyle")&&(te=!0),N("labelFontWeight")&&(te=!0),N("labelFontVariant")&&(te=!0),H("labelEnable"),j("labelSize"),j("labelPad"),W("labelColor"),H("lineEnable"),H("lineMirror"),j("lineWidth"),W("lineColor"),H("lineTickEnable"),H("lineTickMirror"),j("lineTickLength"),j("lineTickWidth"),W("lineTickColor"),H("gridEnable"),j("gridWidth"),W("gridColor"),H("zeroEnable"),W("zeroLineColor"),j("zeroLineWidth"),H("backgroundEnable"),W("backgroundColor");var ke=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],Ee=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(te||ae)&&this._text.update(this.bounds,this.labels,ke,this.ticks,Ee):this._text=s(this.gl,this.bounds,this.labels,ke,this.ticks,Ee),this._lines&&ae&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=u(this.gl,this.bounds,this.ticks))};function T(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var L=[new T,new T,new T];function _(U,G,j,H,N){for(var W=U.primalOffset,re=U.primalMinor,ae=U.mirrorOffset,be=U.mirrorMinor,Pe=H[G],Ce=0;Ce<3;++Ce)if(G!==Ce){var de=W,te=ae,ke=re,Ee=be;Pe&1<0?(ke[Ce]=-1,Ee[Ce]=0):(ke[Ce]=0,Ee[Ce]=1)}}var C=[0,0,0],S={model:h,view:h,projection:h,_ortho:!1};E.isOpaque=function(){return!0},E.isTransparent=function(){return!1},E.drawTransparent=function(U){};var m=0,P=[0,0,0],A=[0,0,0],B=[0,0,0];E.draw=function(U){U=U||S;for(var Fe=this.gl,G=U.model||h,j=U.view||h,H=U.projection||h,N=this.bounds,W=U._ortho||!1,re=f(G,j,H,N,W),ae=re.cubeEdges,be=re.axis,Pe=j[12],Ce=j[13],de=j[14],te=j[15],ke=W?2:1,Ee=ke*this.pixelRatio*(H[3]*Pe+H[7]*Ce+H[11]*de+H[15]*te)/Fe.drawingBufferHeight,Me=0;Me<3;++Me)this.lastCubeProps.cubeEdges[Me]=ae[Me],this.lastCubeProps.axis[Me]=be[Me];for(var Ue=L,Me=0;Me<3;++Me)_(L[Me],Me,this.bounds,ae,be);for(var Fe=this.gl,me=C,Me=0;Me<3;++Me)this.backgroundEnable[Me]?me[Me]=be[Me]:me[Me]=0;this._background.draw(G,j,H,N,me,this.backgroundColor),this._lines.bind(G,j,H,this);for(var Me=0;Me<3;++Me){var Ne=[0,0,0];be[Me]>0?Ne[Me]=N[1][Me]:Ne[Me]=N[0][Me];for(var ce=0;ce<2;++ce){var Ke=(Me+1+ce)%3,it=(Me+1+(ce^1))%3;this.gridEnable[Ke]&&this._lines.drawGrid(Ke,it,this.bounds,Ne,this.gridColor[Ke],this.gridWidth[Ke]*this.pixelRatio)}for(var ce=0;ce<2;++ce){var Ke=(Me+1+ce)%3,it=(Me+1+(ce^1))%3;this.zeroEnable[it]&&Math.min(N[0][it],N[1][it])<=0&&Math.max(N[0][it],N[1][it])>=0&&this._lines.drawZero(Ke,it,this.bounds,Ne,this.zeroLineColor[it],this.zeroLineWidth[it]*this.pixelRatio)}}for(var Me=0;Me<3;++Me){this.lineEnable[Me]&&this._lines.drawAxisLine(Me,this.bounds,Ue[Me].primalOffset,this.lineColor[Me],this.lineWidth[Me]*this.pixelRatio),this.lineMirror[Me]&&this._lines.drawAxisLine(Me,this.bounds,Ue[Me].mirrorOffset,this.lineColor[Me],this.lineWidth[Me]*this.pixelRatio);for(var bt=v(P,Ue[Me].primalMinor),Nt=v(A,Ue[Me].mirrorMinor),nt=this.lineTickLength,ce=0;ce<3;++ce){var Ye=Ee/G[5*ce];bt[ce]*=nt[ce]*Ye,Nt[ce]*=nt[ce]*Ye}this.lineTickEnable[Me]&&this._lines.drawAxisTicks(Me,Ue[Me].primalOffset,bt,this.lineTickColor[Me],this.lineTickWidth[Me]*this.pixelRatio),this.lineTickMirror[Me]&&this._lines.drawAxisTicks(Me,Ue[Me].mirrorOffset,Nt,this.lineTickColor[Me],this.lineTickWidth[Me]*this.pixelRatio)}this._lines.unbind(),this._text.bind(G,j,H,this.pixelRatio);var kt,At=.5,St,Bt;function Zt(at){Bt=[0,0,0],Bt[at]=1}function Et(at,Xe,rt){var Qe=(at+1)%3,zt=(at+2)%3,Yt=Xe[Qe],lr=Xe[zt],mr=rt[Qe],_r=rt[zt];if(Yt>0&&_r>0){Zt(Qe);return}else if(Yt>0&&_r<0){Zt(Qe);return}else if(Yt<0&&_r>0){Zt(Qe);return}else if(Yt<0&&_r<0){Zt(Qe);return}else if(lr>0&&mr>0){Zt(zt);return}else if(lr>0&&mr<0){Zt(zt);return}else if(lr<0&&mr>0){Zt(zt);return}else if(lr<0&&mr<0){Zt(zt);return}}for(var Me=0;Me<3;++Me){for(var Ae=Ue[Me].primalMinor,ot=Ue[Me].mirrorMinor,dt=v(B,Ue[Me].primalOffset),ce=0;ce<3;++ce)this.lineTickEnable[Me]&&(dt[ce]+=Ee*Ae[ce]*Math.max(this.lineTickLength[ce],0)/G[5*ce]);var pt=[0,0,0];if(pt[Me]=1,this.tickEnable[Me]){this.tickAngle[Me]===-3600?(this.tickAngle[Me]=0,this.tickAlign[Me]="auto"):this.tickAlign[Me]=-1,St=1,kt=[this.tickAlign[Me],At,St],kt[0]==="auto"?kt[0]=m:kt[0]=parseInt(""+kt[0]),Bt=[0,0,0],Et(Me,Ae,ot);for(var ce=0;ce<3;++ce)dt[ce]+=Ee*Ae[ce]*this.tickPad[ce]/G[5*ce];this._text.drawTicks(Me,this.tickSize[Me],this.tickAngle[Me],dt,this.tickColor[Me],pt,Bt,kt)}if(this.labelEnable[Me]){St=0,Bt=[0,0,0],this.labels[Me].length>4&&(Zt(Me),St=1),kt=[this.labelAlign[Me],At,St],kt[0]==="auto"?kt[0]=m:kt[0]=parseInt(""+kt[0]);for(var ce=0;ce<3;++ce)dt[ce]+=Ee*Ae[ce]*this.labelPad[ce]/G[5*ce];dt[Me]+=.5*(N[0][Me]+N[1][Me]),this._text.drawLabel(Me,this.labelSize[Me],this.labelAngle[Me],dt,this.labelColor[Me],[0,0,0],Bt,kt)}}this._text.unbind()},E.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function F(U,G){var j=new k(U);return j.update(G),j}},5304:function(i,a,o){"use strict";i.exports=h;var s=o(2762),u=o(8116),l=o(1879).bg;function f(d,p,x,b){this.gl=d,this.buffer=p,this.vao=x,this.shader=b}var c=f.prototype;c.draw=function(d,p,x,b,v,k){for(var E=!1,T=0;T<3;++T)E=E||v[T];if(E){var L=this.gl;L.enable(L.POLYGON_OFFSET_FILL),L.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:d,view:p,projection:x,bounds:b,enable:v,colors:k},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),L.disable(L.POLYGON_OFFSET_FILL)}},c.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function h(d){for(var p=[],x=[],b=0,v=0;v<3;++v)for(var k=(v+1)%3,E=(v+2)%3,T=[0,0,0],L=[0,0,0],_=-1;_<=1;_+=2){x.push(b,b+2,b+1,b+1,b+2,b+3),T[v]=_,L[v]=_;for(var C=-1;C<=1;C+=2){T[k]=C;for(var S=-1;S<=1;S+=2)T[E]=S,p.push(T[0],T[1],T[2],L[0],L[1],L[2]),b+=1}var m=k;k=E,E=m}var P=s(d,new Float32Array(p)),A=s(d,new Uint16Array(x),d.ELEMENT_ARRAY_BUFFER),B=u(d,[{buffer:P,type:d.FLOAT,size:3,offset:0,stride:24},{buffer:P,type:d.FLOAT,size:3,offset:12,stride:24}],A),F=l(d);return F.attributes.position.location=0,F.attributes.normal.location=1,new f(d,P,B,F)}},6429:function(i,a,o){"use strict";i.exports=_;var s=o(8828),u=o(6760),l=o(5202),f=o(3250),c=new Array(16),h=new Array(8),d=new Array(8),p=new Array(3),x=[0,0,0];(function(){for(var C=0;C<8;++C)h[C]=[1,1,1,1],d[C]=[1,1,1]})();function b(C,S,m){for(var P=0;P<4;++P){C[P]=m[12+P];for(var A=0;A<3;++A)C[P]+=S[A]*m[4*A+P]}}var v=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function k(C){for(var S=0;Sbe&&(j|=1<be){j|=1<d[F][1])&&(Ue=F);for(var Fe=-1,F=0;F<3;++F){var me=Ue^1<d[Ne][0]&&(Ne=me)}}var ce=E;ce[0]=ce[1]=ce[2]=0,ce[s.log2(Fe^Ue)]=Ue&Fe,ce[s.log2(Ue^Ne)]=Ue&Ne;var Ke=Ne^7;Ke===j||Ke===Me?(Ke=Fe^7,ce[s.log2(Ne^Ke)]=Ke&Ne):ce[s.log2(Fe^Ke)]=Ke&Fe;for(var it=T,bt=j,W=0;W<3;++W)bt&1<{});function Vy(){}function tCe(){return this.rgb().formatHex()}function NLt(){return this.rgb().formatHex8()}function ULt(){return lCe(this).formatHsl()}function rCe(){return this.rgb().formatRgb()}function j_(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ILt.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?iCe(t):r===3?new xd(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?g6(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?g6(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=RLt.exec(e))?new xd(t[1],t[2],t[3],1):(t=DLt.exec(e))?new xd(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=FLt.exec(e))?g6(t[1],t[2],t[3],t[4]):(t=BLt.exec(e))?g6(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=OLt.exec(e))?oCe(t[1],t[2]/100,t[3]/100,1):(t=qLt.exec(e))?oCe(t[1],t[2]/100,t[3]/100,t[4]):eCe.hasOwnProperty(e)?iCe(eCe[e]):e==="transparent"?new xd(NaN,NaN,NaN,0):null}function iCe(e){return new xd(e>>16&255,e>>8&255,e&255,1)}function g6(e,t,r,n){return n<=0&&(e=t=r=NaN),new xd(e,t,r,n)}function R4(e){return e instanceof Vy||(e=j_(e)),e?(e=e.rgb(),new xd(e.r,e.g,e.b,e.opacity)):new xd}function TT(e,t,r,n){return arguments.length===1?R4(e):new xd(e,t,r,n==null?1:n)}function xd(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function nCe(){return`#${M2(this.r)}${M2(this.g)}${M2(this.b)}`}function VLt(){return`#${M2(this.r)}${M2(this.g)}${M2(this.b)}${M2((isNaN(this.opacity)?1:this.opacity)*255)}`}function aCe(){let e=x6(this.opacity);return`${e===1?"rgb(":"rgba("}${E2(this.r)}, ${E2(this.g)}, ${E2(this.b)}${e===1?")":`, ${e})`}`}function x6(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function E2(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function M2(e){return e=E2(e),(e<16?"0":"")+e.toString(16)}function oCe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Xm(e,t,r,n)}function lCe(e){if(e instanceof Xm)return new Xm(e.h,e.s,e.l,e.opacity);if(e instanceof Vy||(e=j_(e)),!e)return new Xm;if(e instanceof Xm)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,u=(a+i)/2;return s?(t===a?o=(r-n)/s+(r0&&u<1?0:o,new Xm(o,s,u,e.opacity)}function D4(e,t,r,n){return arguments.length===1?lCe(e):new Xm(e,t,r,n==null?1:n)}function Xm(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function sCe(e){return e=(e||0)%360,e<0?e+360:e}function _6(e){return Math.max(0,Math.min(1,e||0))}function Mj(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var W_,k2,AT,I4,Uy,ILt,RLt,DLt,FLt,BLt,OLt,qLt,eCe,b6=Xf(()=>{y6();W_=.7,k2=1/W_,AT="\\s*([+-]?\\d+)\\s*",I4="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Uy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ILt=/^#([0-9a-f]{3,8})$/,RLt=new RegExp(`^rgb\\(${AT},${AT},${AT}\\)$`),DLt=new RegExp(`^rgb\\(${Uy},${Uy},${Uy}\\)$`),FLt=new RegExp(`^rgba\\(${AT},${AT},${AT},${I4}\\)$`),BLt=new RegExp(`^rgba\\(${Uy},${Uy},${Uy},${I4}\\)$`),OLt=new RegExp(`^hsl\\(${I4},${Uy},${Uy}\\)$`),qLt=new RegExp(`^hsla\\(${I4},${Uy},${Uy},${I4}\\)$`),eCe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Zg(Vy,j_,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:tCe,formatHex:tCe,formatHex8:NLt,formatHsl:ULt,formatRgb:rCe,toString:rCe});Zg(xd,TT,H_(Vy,{brighter(e){return e=e==null?k2:Math.pow(k2,e),new xd(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?W_:Math.pow(W_,e),new xd(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new xd(E2(this.r),E2(this.g),E2(this.b),x6(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:nCe,formatHex:nCe,formatHex8:VLt,formatRgb:aCe,toString:aCe}));Zg(Xm,D4,H_(Vy,{brighter(e){return e=e==null?k2:Math.pow(k2,e),new Xm(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?W_:Math.pow(W_,e),new Xm(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new xd(Mj(e>=240?e-240:e+120,i,n),Mj(e,i,n),Mj(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Xm(sCe(this.h),_6(this.s),_6(this.l),x6(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=x6(this.opacity);return`${e===1?"hsl(":"hsla("}${sCe(this.h)}, ${_6(this.s)*100}%, ${_6(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var w6,A6,Ej=Xf(()=>{w6=Math.PI/180,A6=180/Math.PI});function pCe(e){if(e instanceof Gy)return new Gy(e.l,e.a,e.b,e.opacity);if(e instanceof Yg)return vCe(e);e instanceof xd||(e=R4(e));var t=Pj(e.r),r=Pj(e.g),n=Pj(e.b),i=kj((.2225045*t+.7168786*r+.0606169*n)/fCe),a,o;return t===r&&r===n?a=o=i:(a=kj((.4360747*t+.3850649*r+.1430804*n)/uCe),o=kj((.0139322*t+.0971045*r+.7141733*n)/cCe)),new Gy(116*i-16,500*(a-i),200*(i-o),e.opacity)}function MT(e,t,r,n){return arguments.length===1?pCe(e):new Gy(e,t,r,n==null?1:n)}function Gy(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function kj(e){return e>GLt?Math.pow(e,1/3):e/dCe+hCe}function Cj(e){return e>ST?e*e*e:dCe*(e-hCe)}function Lj(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Pj(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function HLt(e){if(e instanceof Yg)return new Yg(e.h,e.c,e.l,e.opacity);if(e instanceof Gy||(e=pCe(e)),e.a===0&&e.b===0)return new Yg(NaN,0{y6();b6();Ej();T6=18,uCe=.96422,fCe=1,cCe=.82521,hCe=4/29,ST=6/29,dCe=3*ST*ST,GLt=ST*ST*ST;Zg(Gy,MT,H_(Vy,{brighter(e){return new Gy(this.l+T6*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Gy(this.l-T6*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=uCe*Cj(t),e=fCe*Cj(e),r=cCe*Cj(r),new xd(Lj(3.1338561*t-1.6168667*e-.4906146*r),Lj(-.9787684*t+1.9161415*e+.033454*r),Lj(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));Zg(Yg,F4,H_(Vy,{brighter(e){return new Yg(this.h,this.c,this.l+T6*(e==null?1:e),this.opacity)},darker(e){return new Yg(this.h,this.c,this.l-T6*(e==null?1:e),this.opacity)},rgb(){return vCe(this).rgb()}}))});function WLt(e){if(e instanceof C2)return new C2(e.h,e.s,e.l,e.opacity);e instanceof xd||(e=R4(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(_Ce*n+yCe*t-gCe*r)/(_Ce+yCe-gCe),a=n-i,o=(B4*(r-i)-Ij*a)/S6,s=Math.sqrt(o*o+a*a)/(B4*i*(1-i)),u=s?Math.atan2(o,a)*A6-120:NaN;return new C2(u<0?u+360:u,s,i,e.opacity)}function ET(e,t,r,n){return arguments.length===1?WLt(e):new C2(e,t,r,n==null?1:n)}function C2(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}var xCe,zj,Ij,S6,B4,yCe,gCe,_Ce,bCe=Xf(()=>{y6();b6();Ej();xCe=-.14861,zj=1.78277,Ij=-.29227,S6=-.90649,B4=1.97294,yCe=B4*S6,gCe=B4*zj,_Ce=zj*Ij-S6*xCe;Zg(C2,ET,H_(Vy,{brighter(e){return e=e==null?k2:Math.pow(k2,e),new C2(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?W_:Math.pow(W_,e),new C2(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*w6,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new xd(255*(t+r*(xCe*n+zj*i)),255*(t+r*(Ij*n+S6*i)),255*(t+r*(B4*n)),this.opacity)}}))});var L2=Xf(()=>{b6();mCe();bCe()});function Rj(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function M6(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,s=n{});function k6(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],s=e[(n+2)%t];return Rj((r-n/t)*t,i,a,o,s)}}var Dj=Xf(()=>{E6()});var kT,Fj=Xf(()=>{kT=e=>()=>e});function wCe(e,t){return function(r){return e+r*t}}function jLt(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function X_(e,t){var r=t-e;return r?wCe(e,r>180||r<-180?r-360*Math.round(r/360):r):kT(isNaN(e)?t:e)}function ACe(e){return(e=+e)==1?ph:function(t,r){return r-t?jLt(t,r,e):kT(isNaN(t)?r:t)}}function ph(e,t){var r=t-e;return r?wCe(e,r):kT(isNaN(e)?t:e)}var P2=Xf(()=>{Fj()});function TCe(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,s;for(o=0;o{L2();E6();Dj();P2();O4=function e(t){var r=ACe(t);function n(i,a){var o=r((i=TT(i)).r,(a=TT(a)).r),s=r(i.g,a.g),u=r(i.b,a.b),l=ph(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=s(f),i.b=u(f),i.opacity=l(f),i+""}}return n.gamma=e,n}(1);SCe=TCe(M6),MCe=TCe(k6)});function CT(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i{});function ECe(e,t){return(C6(t)?CT:Oj)(e,t)}function Oj(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o{q4();L6()});function P6(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}var Nj=Xf(()=>{});function Dv(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var N4=Xf(()=>{});function z6(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Z_(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Uj=Xf(()=>{q4()});function XLt(e){return function(){return e}}function ZLt(e){return function(t){return e(t)+""}}function I6(e,t){var r=Gj.lastIndex=Vj.lastIndex=0,n,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(n=Gj.exec(e))&&(i=Vj.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:Dv(n,i)})),r=Vj.lastIndex;return r{N4();Gj=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vj=new RegExp(Gj.source,"g")});function Z_(e,t){var r=typeof t,n;return t==null||r==="boolean"?kT(t):(r==="number"?Dv:r==="string"?(n=j_(t))?(t=n,O4):I6:t instanceof j_?O4:t instanceof Date?P6:C6(t)?CT:Array.isArray(t)?Oj:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?z6:Dv)(e,t)}var q4=Xf(()=>{L2();Bj();qj();Nj();N4();Uj();Hj();Fj();L6()});function kCe(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var CCe=Xf(()=>{});function LCe(e,t){var r=X_(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}var PCe=Xf(()=>{P2()});function zCe(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var ICe=Xf(()=>{});function Wj(e,t,r,n,i,a){var o,s,u;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(u=e*r+t*n)&&(r-=e*u,n-=t*u),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,u/=s),e*n{RCe=180/Math.PI,R6={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function FCe(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?R6:Wj(t.a,t.b,t.c,t.d,t.e,t.f)}function BCe(e){return e==null?R6:(D6||(D6=document.createElementNS("http://www.w3.org/2000/svg","g")),D6.setAttribute("transform",e),(e=D6.transform.baseVal.consolidate())?(e=e.matrix,Wj(e.a,e.b,e.c,e.d,e.e,e.f)):R6)}var D6,OCe=Xf(()=>{DCe()});function qCe(e,t,r,n){function i(l){return l.length?l.pop()+" ":""}function a(l,f,c,h,d,p){if(l!==c||f!==h){var x=d.push("translate(",null,t,null,r);p.push({i:x-4,x:Dv(l,c)},{i:x-2,x:Dv(f,h)})}else(c||h)&&d.push("translate("+c+t+h+r)}function o(l,f,c,h){l!==f?(l-f>180?f+=360:f-l>180&&(l+=360),h.push({i:c.push(i(c)+"rotate(",null,n)-2,x:Dv(l,f)})):f&&c.push(i(c)+"rotate("+f+n)}function s(l,f,c,h){l!==f?h.push({i:c.push(i(c)+"skewX(",null,n)-2,x:Dv(l,f)}):f&&c.push(i(c)+"skewX("+f+n)}function u(l,f,c,h,d,p){if(l!==c||f!==h){var x=d.push(i(d)+"scale(",null,",",null,")");p.push({i:x-4,x:Dv(l,c)},{i:x-2,x:Dv(f,h)})}else(c!==1||h!==1)&&d.push(i(d)+"scale("+c+","+h+")")}return function(l,f){var c=[],h=[];return l=e(l),f=e(f),a(l.translateX,l.translateY,f.translateX,f.translateY,c,h),o(l.rotate,f.rotate,c,h),s(l.skewX,f.skewX,c,h),u(l.scaleX,l.scaleY,f.scaleX,f.scaleY,c,h),l=f=null,function(d){for(var p=-1,x=h.length,b;++p{N4();OCe();NCe=qCe(FCe,"px, ","px)","deg)"),UCe=qCe(BCe,", ",")",")")});function GCe(e){return((e=Math.exp(e))+1/e)/2}function KLt(e){return((e=Math.exp(e))-1/e)/2}function JLt(e){return((e=Math.exp(2*e))-1)/(e+1)}var YLt,HCe,WCe=Xf(()=>{YLt=1e-12;HCe=function e(t,r,n){function i(a,o){var s=a[0],u=a[1],l=a[2],f=o[0],c=o[1],h=o[2],d=f-s,p=c-u,x=d*d+p*p,b,v;if(x{L2();P2();XCe=jCe(X_),ZCe=jCe(ph)});function jj(e,t){var r=ph((e=MT(e)).l,(t=MT(t)).l),n=ph(e.a,t.a),i=ph(e.b,t.b),a=ph(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}var KCe=Xf(()=>{L2();P2()});function JCe(e){return function(t,r){var n=e((t=F4(t)).h,(r=F4(r)).h),i=ph(t.c,r.c),a=ph(t.l,r.l),o=ph(t.opacity,r.opacity);return function(s){return t.h=n(s),t.c=i(s),t.l=a(s),t.opacity=o(s),t+""}}}var $Ce,QCe,eLe=Xf(()=>{L2();P2();$Ce=JCe(X_),QCe=JCe(ph)});function tLe(e){return function t(r){r=+r;function n(i,a){var o=e((i=ET(i)).h,(a=ET(a)).h),s=ph(i.s,a.s),u=ph(i.l,a.l),l=ph(i.opacity,a.opacity);return function(f){return i.h=o(f),i.s=s(f),i.l=u(Math.pow(f,r)),i.opacity=l(f),i+""}}return n.gamma=t,n}(1)}var rLe,iLe,nLe=Xf(()=>{L2();P2();rLe=tLe(X_),iLe=tLe(ph)});function Xj(e,t){t===void 0&&(t=e,e=Z_);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r{q4()});function oLe(e,t){for(var r=new Array(t),n=0;n{});var z2={};bee(z2,{interpolate:()=>Z_,interpolateArray:()=>ECe,interpolateBasis:()=>M6,interpolateBasisClosed:()=>k6,interpolateCubehelix:()=>rLe,interpolateCubehelixLong:()=>iLe,interpolateDate:()=>P6,interpolateDiscrete:()=>kCe,interpolateHcl:()=>$Ce,interpolateHclLong:()=>QCe,interpolateHsl:()=>XCe,interpolateHslLong:()=>ZCe,interpolateHue:()=>LCe,interpolateLab:()=>jj,interpolateNumber:()=>Dv,interpolateNumberArray:()=>CT,interpolateObject:()=>z6,interpolateRgb:()=>O4,interpolateRgbBasis:()=>SCe,interpolateRgbBasisClosed:()=>MCe,interpolateRound:()=>zCe,interpolateString:()=>I6,interpolateTransformCss:()=>NCe,interpolateTransformSvg:()=>UCe,interpolateZoom:()=>HCe,piecewise:()=>Xj,quantize:()=>oLe});var I2=Xf(()=>{q4();qj();E6();Dj();Nj();CCe();PCe();N4();L6();Uj();ICe();Hj();VCe();WCe();Bj();YCe();KCe();eLe();nLe();aLe();sLe()});var F6=Te((v0r,lLe)=>{"use strict";var $Lt=Mu(),QLt=jl();lLe.exports=function(t,r,n,i,a){var o=r.data.data,s=o.i,u=a||o.color;if(s>=0){r.i=o.i;var l=n.marker;l.pattern?(!l.colors||!l.pattern.shape)&&(l.color=u,r.color=u):(l.color=u,r.color=u),$Lt.pointStyle(t,n,i,r)}else QLt.fill(t,u)}});var Zj=Te((m0r,dLe)=>{"use strict";var uLe=Jl(),fLe=jl(),cLe=ei(),ePt=bp().resizeText,tPt=F6();function rPt(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");ePt(e,t,"sunburst"),t.each(function(r){var n=uLe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){uLe.select(this).call(hLe,o,a,e)})})}function hLe(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=cLe.castOption(r,o,"marker.line.color")||fLe.defaultLine,u=cLe.castOption(r,o,"marker.line.width")||0;e.call(tPt,t,r,n).style("stroke-width",u).call(fLe.stroke,s).style("opacity",a?r.leaf.opacity:null)}dLe.exports={style:rPt,styleOne:hLe}});var Kg=Te(gf=>{"use strict";var R2=ei(),iPt=jl(),nPt=Am(),pLe=u_();gf.findEntryWithLevel=function(e,t){var r;return t&&e.eachAfter(function(n){if(gf.getPtId(n)===t)return r=n.copy()}),r||e};gf.findEntryWithChild=function(e,t){var r;return e.eachAfter(function(n){for(var i=n.children||[],a=0;a0)};gf.getMaxDepth=function(e){return e.maxdepth>=0?e.maxdepth:1/0};gf.isHeader=function(e,t){return!(gf.isLeaf(e)||e.depth===t._maxDepth-1)};function vLe(e){return e.data.data.pid}gf.getParent=function(e,t){return gf.findEntryWithLevel(e,vLe(t))};gf.listPath=function(e,t){var r=e.parent;if(!r)return[];var n=t?[r.data[t]]:[r];return gf.listPath(r,t).concat(n)};gf.getPath=function(e){return gf.listPath(e,"label").join("/")+"/"};gf.formatValue=pLe.formatPieValue;gf.formatPercent=function(e,t){var r=R2.formatPercent(e,0);return r==="0%"&&(r=pLe.formatPiePercent(e,t)),r}});var G4=Te((g0r,gLe)=>{"use strict";var LT=Jl(),mLe=$l(),sPt=rv().appendArrayPointValue,U4=Xc(),yLe=ei(),lPt=m3(),ad=Kg(),uPt=u_(),fPt=uPt.formatPieValue;gLe.exports=function(t,r,n,i,a){var o=i[0],s=o.trace,u=o.hierarchy,l=s.type==="sunburst",f=s.type==="treemap"||s.type==="icicle";"_hasHoverLabel"in s||(s._hasHoverLabel=!1),"_hasHoverEvent"in s||(s._hasHoverEvent=!1);var c=function(p){var x=n._fullLayout;if(!(n._dragging||x.hovermode===!1)){var b=n._fullData[s.index],v=p.data.data,k=v.i,E=ad.isHierarchyRoot(p),T=ad.getParent(u,p),L=ad.getValue(p),_=function(Ce){return yLe.castOption(b,k,Ce)},C=_("hovertemplate"),S=U4.castHoverinfo(b,x,k),m=x.separators,P;if(C||S&&S!=="none"&&S!=="skip"){var A,B;l&&(A=o.cx+p.pxmid[0]*(1-p.rInscribed),B=o.cy+p.pxmid[1]*(1-p.rInscribed)),f&&(A=p._hoverX,B=p._hoverY);var F={},U=[],G=[],j=function(Ce){return U.indexOf(Ce)!==-1};S&&(U=S==="all"?b._module.attributes.hoverinfo.flags:S.split("+")),F.label=v.label,j("label")&&F.label&&G.push(F.label),v.hasOwnProperty("v")&&(F.value=v.v,F.valueLabel=fPt(F.value,m),j("value")&&G.push(F.valueLabel)),F.currentPath=p.currentPath=ad.getPath(p.data),j("current path")&&!E&&G.push(F.currentPath);var H,N=[],W=function(){N.indexOf(H)===-1&&(G.push(H),N.push(H))};F.percentParent=p.percentParent=L/ad.getValue(T),F.parent=p.parentString=ad.getPtLabel(T),j("percent parent")&&(H=ad.formatPercent(F.percentParent,m)+" of "+F.parent,W()),F.percentEntry=p.percentEntry=L/ad.getValue(r),F.entry=p.entry=ad.getPtLabel(r),j("percent entry")&&!E&&!p.onPathbar&&(H=ad.formatPercent(F.percentEntry,m)+" of "+F.entry,W()),F.percentRoot=p.percentRoot=L/ad.getValue(u),F.root=p.root=ad.getPtLabel(u),j("percent root")&&!E&&(H=ad.formatPercent(F.percentRoot,m)+" of "+F.root,W()),F.text=_("hovertext")||_("text"),j("text")&&(H=F.text,yLe.isValidTextValue(H)&&G.push(H)),P=[V4(p,b,a.eventDataKeys)];var re={trace:b,y:B,_x0:p._x0,_x1:p._x1,_y0:p._y0,_y1:p._y1,text:G.join("
"),name:C||j("name")?b.name:void 0,color:_("hoverlabel.bgcolor")||v.color,borderColor:_("hoverlabel.bordercolor"),fontFamily:_("hoverlabel.font.family"),fontSize:_("hoverlabel.font.size"),fontColor:_("hoverlabel.font.color"),fontWeight:_("hoverlabel.font.weight"),fontStyle:_("hoverlabel.font.style"),fontVariant:_("hoverlabel.font.variant"),nameLength:_("hoverlabel.namelength"),textAlign:_("hoverlabel.align"),hovertemplate:C,hovertemplateLabels:F,eventData:P};l&&(re.x0=A-p.rInscribed*p.rpx1,re.x1=A+p.rInscribed*p.rpx1,re.idealAlign=p.pxmid[0]<0?"left":"right"),f&&(re.x=A,re.idealAlign=A<0?"left":"right");var ae=[];U4.loneHover(re,{container:x._hoverlayer.node(),outerContainer:x._paper.node(),gd:n,inOut_bbox:ae}),P[0].bbox=ae[0],s._hasHoverLabel=!0}if(f){var be=t.select("path.surface");a.styleOne(be,p,b,n,{hovered:!0})}s._hasHoverEvent=!0,n.emit("plotly_hover",{points:P||[V4(p,b,a.eventDataKeys)],event:LT.event})}},h=function(p){var x=n._fullLayout,b=n._fullData[s.index],v=LT.select(this).datum();if(s._hasHoverEvent&&(p.originalEvent=LT.event,n.emit("plotly_unhover",{points:[V4(v,b,a.eventDataKeys)],event:LT.event}),s._hasHoverEvent=!1),s._hasHoverLabel&&(U4.loneUnhover(x._hoverlayer.node()),s._hasHoverLabel=!1),f){var k=t.select("path.surface");a.styleOne(k,v,b,n,{hovered:!1})}},d=function(p){var x=n._fullLayout,b=n._fullData[s.index],v=l&&(ad.isHierarchyRoot(p)||ad.isLeaf(p)),k=ad.getPtId(p),E=ad.isEntry(p)?ad.findEntryWithChild(u,k):ad.findEntryWithLevel(u,k),T=ad.getPtId(E),L={points:[V4(p,b,a.eventDataKeys)],event:LT.event};v||(L.nextLevel=T);var _=lPt.triggerHandler(n,"plotly_"+s.type+"click",L);if(_!==!1&&x.hovermode&&(n._hoverdata=[V4(p,b,a.eventDataKeys)],U4.click(n,LT.event)),!v&&_!==!1&&!n._dragging&&!n._transitioning){mLe.call("_storeDirectGUIEdit",b,x._tracePreGUI[b.uid],{level:b.level});var C={data:[{level:T}],traces:[s.index]},S={frame:{redraw:!1,duration:a.transitionTime},transition:{duration:a.transitionTime,easing:a.transitionEasing},mode:"immediate",fromcurrent:!0};U4.loneUnhover(x._hoverlayer.node()),mLe.call("animate",n,C,S)}};t.on("mouseover",c),t.on("mouseout",h),t.on("click",d)};function V4(e,t,r){for(var n=e.data.data,i={curveNumber:t.index,pointNumber:n.i,data:t._input,fullData:t},a=0;a{"use strict";var H4=Jl(),cPt=L4(),Zm=(I2(),q1(z2)).interpolate,_Le=Mu(),Ap=ei(),hPt=Zf(),ALe=bp(),xLe=ALe.recordMinTextSize,dPt=ALe.clearMinTextSize,TLe=v6(),pPt=u_().getRotationAngle,vPt=TLe.computeTransform,mPt=TLe.transformInsideText,yPt=Zj().styleOne,gPt=N0().resizeText,_Pt=G4(),Yj=Tj(),Of=Kg();B6.plot=function(e,t,r,n){var i=e._fullLayout,a=i._sunburstlayer,o,s,u=!r,l=!i.uniformtext.mode&&Of.hasTransition(r);if(dPt("sunburst",i),o=a.selectAll("g.trace.sunburst").data(t,function(c){return c[0].trace.uid}),o.enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),o.order(),l){n&&(s=n());var f=H4.transition().duration(r.duration).ease(r.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});f.each(function(){a.selectAll("g.trace").each(function(c){bLe(e,c,this,r)})})}else o.each(function(c){bLe(e,c,this,r)}),i.uniformtext.mode&&gPt(e,i._sunburstlayer.selectAll(".trace"),"sunburst");u&&o.exit().remove()};function bLe(e,t,r,n){var i=e._context.staticPlot,a=e._fullLayout,o=!a.uniformtext.mode&&Of.hasTransition(n),s=H4.select(r),u=s.selectAll("g.slice"),l=t[0],f=l.trace,c=l.hierarchy,h=Of.findEntryWithLevel(c,f.level),d=Of.getMaxDepth(f),p=a._size,x=f.domain,b=p.w*(x.x[1]-x.x[0]),v=p.h*(x.y[1]-x.y[0]),k=.5*Math.min(b,v),E=l.cx=p.l+p.w*(x.x[1]+x.x[0])/2,T=l.cy=p.t+p.h*(1-x.y[0])-v/2;if(!h)return u.remove();var L=null,_={};o&&u.each(function(pe){_[Of.getPtId(pe)]={rpx0:pe.rpx0,rpx1:pe.rpx1,x0:pe.x0,x1:pe.x1,transform:pe.transform},!L&&Of.isEntry(pe)&&(L=pe)});var C=xPt(h).descendants(),S=h.height+1,m=0,P=d;l.hasMultipleRoots&&Of.isHierarchyRoot(h)&&(C=C.slice(1),S-=1,m=1,P+=1),C=C.filter(function(pe){return pe.y1<=P});var A=pPt(f.rotation);A&&C.forEach(function(pe){pe.x0+=A,pe.x1+=A});var B=Math.min(S,d),F=function(pe){return(pe-m)/B*k},U=function(pe,te){return[pe*Math.cos(te),-pe*Math.sin(te)]},G=function(pe){return Ap.pathAnnulus(pe.rpx0,pe.rpx1,pe.x0,pe.x1,E,T)},j=function(pe){return E+wLe(pe)[0]*(pe.transform.rCenter||0)+(pe.transform.x||0)},H=function(pe){return T+wLe(pe)[1]*(pe.transform.rCenter||0)+(pe.transform.y||0)};u=u.data(C,Of.getPtId),u.enter().append("g").classed("slice",!0),o?u.exit().transition().each(function(){var pe=H4.select(this),te=pe.select("path.surface");te.transition().attrTween("d",function(Ee){var Me=ae(Ee);return function(Ne){return G(Me(Ne))}});var ke=pe.select("g.slicetext");ke.attr("opacity",0)}).remove():u.exit().remove(),u.order();var N=null;if(o&&L){var W=Of.getPtId(L);u.each(function(pe){N===null&&Of.getPtId(pe)===W&&(N=pe.x1)})}var re=u;o&&(re=re.transition().each("end",function(){var pe=H4.select(this);Of.setSliceCursor(pe,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),re.each(function(pe){var te=H4.select(this),ke=Ap.ensureSingle(te,"path","surface",function(Ve){Ve.style("pointer-events",i?"none":"all")});pe.rpx0=F(pe.y0),pe.rpx1=F(pe.y1),pe.xmid=(pe.x0+pe.x1)/2,pe.pxmid=U(pe.rpx1,pe.xmid),pe.midangle=-(pe.xmid-Math.PI/2),pe.startangle=-(pe.x0-Math.PI/2),pe.stopangle=-(pe.x1-Math.PI/2),pe.halfangle=.5*Math.min(Ap.angleDelta(pe.x0,pe.x1)||Math.PI,Math.PI),pe.ring=1-pe.rpx0/pe.rpx1,pe.rInscribed=bPt(pe,f),o?ke.transition().attrTween("d",function(Ve){var ce=be(Ve);return function(Je){return G(ce(Je))}}):ke.attr("d",G),te.call(_Pt,h,e,t,{eventDataKeys:Yj.eventDataKeys,transitionTime:Yj.CLICK_TRANSITION_TIME,transitionEasing:Yj.CLICK_TRANSITION_EASING}).call(Of.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),ke.call(yPt,pe,f,e);var Ee=Ap.ensureSingle(te,"g","slicetext"),Me=Ap.ensureSingle(Ee,"text","",function(Ve){Ve.attr("data-notex",1)}),Ne=Ap.ensureUniformFontSize(e,Of.determineTextFont(f,pe,a.font));Me.text(B6.formatSliceLabel(pe,h,f,t,a)).classed("slicetext",!0).attr("text-anchor","middle").call(_Le.font,Ne).call(hPt.convertToTspans,e);var Fe=_Le.bBox(Me.node());pe.transform=mPt(Fe,pe,l),pe.transform.targetX=j(pe),pe.transform.targetY=H(pe);var ye=function(Ve,ce){var Je=Ve.transform;return vPt(Je,ce),Je.fontSize=Ne.size,xLe(f.type,Je,a),Ap.getTextTransform(Je)};o?Me.transition().attrTween("transform",function(Ve){var ce=Ce(Ve);return function(Je){return ye(ce(Je),Fe)}}):Me.attr("transform",ye(pe,Fe))});function ae(pe){var te=Of.getPtId(pe),ke=_[te],Ee=_[Of.getPtId(h)],Me;if(Ee){var Ne=(pe.x1>Ee.x1?2*Math.PI:0)+A;Me=pe.rpx1N?2*Math.PI:0)+A;ke={x0:Me,x1:Me}}else ke={rpx0:k,rpx1:k},Ap.extendFlat(ke,Le(pe));else ke={rpx0:0,rpx1:0};else ke={x0:A,x1:A};return Zm(ke,Ee)}function Ce(pe){var te=_[Of.getPtId(pe)],ke,Ee=pe.transform;if(te)ke=te;else if(ke={rpx1:pe.rpx1,transform:{textPosAngle:Ee.textPosAngle,scale:0,rotate:Ee.rotate,rCenter:Ee.rCenter,x:Ee.x,y:Ee.y}},L)if(pe.parent)if(N){var Me=pe.x1>N?2*Math.PI:0;ke.x0=ke.x1=Me}else Ap.extendFlat(ke,Le(pe));else ke.x0=ke.x1=A;else ke.x0=ke.x1=A;var Ne=Zm(ke.transform.textPosAngle,pe.transform.textPosAngle),Fe=Zm(ke.rpx1,pe.rpx1),ye=Zm(ke.x0,pe.x0),Ve=Zm(ke.x1,pe.x1),ce=Zm(ke.transform.scale,Ee.scale),Je=Zm(ke.transform.rotate,Ee.rotate),nt=Ee.rCenter===0?3:ke.transform.rCenter===0?1/3:1,gt=Zm(ke.transform.rCenter,Ee.rCenter),Nt=function(it){return gt(Math.pow(it,nt))};return function(it){var Ye=Fe(it),kt=ye(it),Tt=Ve(it),St=Nt(it),Dt=U(Ye,(kt+Tt)/2),Zt=Ne(it),Et={pxmid:Dt,rpx1:Ye,transform:{textPosAngle:Zt,rCenter:St,x:Ee.x,y:Ee.y}};return xLe(f.type,Ee,a),{transform:{targetX:j(Et),targetY:H(Et),scale:ce(it),rotate:Je(it),rCenter:St}}}}function Le(pe){var te=pe.parent,ke=_[Of.getPtId(te)],Ee={};if(ke){var Me=te.children,Ne=Me.indexOf(pe),Fe=Me.length,ye=Zm(ke.x0,ke.x1);Ee.x0=ye(Ne/Fe),Ee.x1=ye(Ne/Fe)}else Ee.x0=Ee.x1=0;return Ee}}function xPt(e){return cPt.partition().size([2*Math.PI,e.height+1])(e)}B6.formatSliceLabel=function(e,t,r,n,i){var a=r.texttemplate,o=r.textinfo;if(!a&&(!o||o==="none"))return"";var s=i.separators,u=n[0],l=e.data.data,f=u.hierarchy,c=Of.isHierarchyRoot(e),h=Of.getParent(f,e),d=Of.getValue(e);if(!a){var p=o.split("+"),x=function(m){return p.indexOf(m)!==-1},b=[],v;if(x("label")&&l.label&&b.push(l.label),l.hasOwnProperty("v")&&x("value")&&b.push(Of.formatValue(l.v,s)),!c){x("current path")&&b.push(Of.getPath(e.data));var k=0;x("percent parent")&&k++,x("percent entry")&&k++,x("percent root")&&k++;var E=k>1;if(k){var T,L=function(m){v=Of.formatPercent(T,s),E&&(v+=" of "+m),b.push(v)};x("percent parent")&&!c&&(T=d/Of.getValue(h),L("parent")),x("percent entry")&&(T=d/Of.getValue(t),L("entry")),x("percent root")&&(T=d/Of.getValue(f),L("root"))}}return x("text")&&(v=Ap.castOption(r,l.i,"text"),Ap.isValidTextValue(v)&&b.push(v)),b.join("
")}var _=Ap.castOption(r,l.i,"texttemplate");if(!_)return"";var C={};l.label&&(C.label=l.label),l.hasOwnProperty("v")&&(C.value=l.v,C.valueLabel=Of.formatValue(l.v,s)),C.currentPath=Of.getPath(e.data),c||(C.percentParent=d/Of.getValue(h),C.percentParentLabel=Of.formatPercent(C.percentParent,s),C.parent=Of.getPtLabel(h)),C.percentEntry=d/Of.getValue(t),C.percentEntryLabel=Of.formatPercent(C.percentEntry,s),C.entry=Of.getPtLabel(t),C.percentRoot=d/Of.getValue(f),C.percentRootLabel=Of.formatPercent(C.percentRoot,s),C.root=Of.getPtLabel(f),l.hasOwnProperty("color")&&(C.color=l.color);var S=Ap.castOption(r,l.i,"text");return(Ap.isValidTextValue(S)||S==="")&&(C.text=S),C.customdata=Ap.castOption(r,l.i,"customdata"),Ap.texttemplateString(_,C,i._d3locale,C,r._meta||{})};function bPt(e){return e.rpx0===0&&Ap.isFullCircle([e.x0,e.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2))}function wLe(e){return wPt(e.rpx1,e.transform.textPosAngle)}function wPt(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}});var MLe=Te((x0r,SLe)=>{"use strict";SLe.exports={moduleType:"trace",name:"sunburst",basePlotModule:Nke(),categories:[],animatable:!0,attributes:C4(),layoutAttributes:Sj(),supplyDefaults:Zke(),supplyLayoutDefaults:Kke(),calc:z4().calc,crossTraceCalc:z4().crossTraceCalc,plot:O6().plot,style:Zj().style,colorbar:ep(),meta:{}}});var kLe=Te((b0r,ELe)=>{"use strict";ELe.exports=MLe()});var LLe=Te(PT=>{"use strict";var CLe=Cc();PT.name="treemap";PT.plot=function(e,t,r,n){CLe.plotBasePlot(PT.name,e,t,r,n)};PT.clean=function(e,t,r,n){CLe.cleanBasePlot(PT.name,e,t,r,n)}});var D2=Te((A0r,PLe)=>{"use strict";PLe.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}});var q6=Te((T0r,ILe)=>{"use strict";var APt=Nu().hovertemplateAttrs,TPt=Nu().texttemplateAttrs,SPt=nc(),MPt=zc().attributes,F2=T2(),Q0=C4(),zLe=D2(),Kj=Su().extendFlat,EPt=Id().pattern;ILe.exports={labels:Q0.labels,parents:Q0.parents,values:Q0.values,branchvalues:Q0.branchvalues,count:Q0.count,level:Q0.level,maxdepth:Q0.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",editType:"plot"},squarifyratio:{valType:"number",min:1,dflt:1,editType:"plot"},flip:{valType:"flaglist",flags:["x","y"],dflt:"",editType:"plot"},pad:{valType:"number",min:0,dflt:3,editType:"plot"},editType:"calc"},marker:Kj({pad:{t:{valType:"number",min:0,editType:"plot"},l:{valType:"number",min:0,editType:"plot"},r:{valType:"number",min:0,editType:"plot"},b:{valType:"number",min:0,editType:"plot"},editType:"calc"},colors:Q0.marker.colors,pattern:EPt,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:Q0.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},SPt("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,editType:"plot"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:Kj({},F2.textfont,{}),editType:"calc"},text:F2.text,textinfo:Q0.textinfo,texttemplate:TPt({editType:"plot"},{keys:zLe.eventDataKeys.concat(["label","value"])}),hovertext:F2.hovertext,hoverinfo:Q0.hoverinfo,hovertemplate:APt({},{keys:zLe.eventDataKeys}),textfont:F2.textfont,insidetextfont:F2.insidetextfont,outsidetextfont:Kj({},F2.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:F2.sort,root:Q0.root,domain:MPt({name:"treemap",trace:!0,editType:"calc"})}});var Jj=Te((S0r,RLe)=>{"use strict";RLe.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var OLe=Te((M0r,BLe)=>{"use strict";var DLe=ei(),kPt=q6(),CPt=jl(),LPt=zc().defaults,PPt=r0().handleText,zPt=Qb().TEXTPAD,IPt=S2().handleMarkerDefaults,FLe=_c(),RPt=FLe.hasColorscale,DPt=FLe.handleDefaults;BLe.exports=function(t,r,n,i){function a(b,v){return DLe.coerce(t,r,kPt,b,v)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var u=a("values");u&&u.length?a("branchvalues"):a("count"),a("level"),a("maxdepth");var l=a("tiling.packing");l==="squarify"&&a("tiling.squarifyratio"),a("tiling.flip"),a("tiling.pad");var f=a("text");a("texttemplate"),r.texttemplate||a("textinfo",DLe.isArrayOrTypedArray(f)?"text+label":"label"),a("hovertext"),a("hovertemplate");var c=a("pathbar.visible"),h="auto";PPt(t,r,i,a,h,{hasPathbar:c,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition");var d=r.textposition.indexOf("bottom")!==-1;IPt(t,r,i,a);var p=r._hasColorscale=RPt(t,"marker","colors")||(t.marker||{}).coloraxis;p?DPt(t,r,i,a,{prefix:"marker.",cLetter:"c"}):a("marker.depthfade",!(r.marker.colors||[]).length);var x=r.textfont.size*2;a("marker.pad.t",d?x/4:x),a("marker.pad.l",x/4),a("marker.pad.r",x/4),a("marker.pad.b",d?x:x/4),a("marker.cornerradius"),r._hovered={marker:{line:{width:2,color:CPt.contrast(i.paper_bgcolor)}}},c&&(a("pathbar.thickness",r.pathbar.textfont.size+2*zPt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),LPt(r,i,a),r._length=null}});var NLe=Te((E0r,qLe)=>{"use strict";var FPt=ei(),BPt=Jj();qLe.exports=function(t,r){function n(i,a){return FPt.coerce(t,r,BPt,i,a)}n("treemapcolorway",r.colorway),n("extendtreemapcolors")}});var Qj=Te($j=>{"use strict";var ULe=z4();$j.calc=function(e,t){return ULe.calc(e,t)};$j.crossTraceCalc=function(e){return ULe._runCrossTraceCalc("treemap",e)}});var eX=Te((C0r,VLe)=>{"use strict";VLe.exports=function e(t,r,n){var i;n.swapXY&&(i=t.x0,t.x0=t.y0,t.y0=i,i=t.x1,t.x1=t.y1,t.y1=i),n.flipX&&(i=t.x0,t.x0=r[0]-t.x1,t.x1=r[0]-i),n.flipY&&(i=t.y0,t.y0=r[1]-t.y1,t.y1=r[1]-i);var a=t.children;if(a)for(var o=0;o{"use strict";var zT=L4(),OPt=eX();GLe.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.packing==="dice-slice",s=n.pad[a?"bottom":"top"],u=n.pad[i?"right":"left"],l=n.pad[i?"left":"right"],f=n.pad[a?"top":"bottom"],c;o&&(c=u,u=s,s=c,c=l,l=f,f=c);var h=zT.treemap().tile(qPt(n.packing,n.squarifyratio)).paddingInner(n.pad.inner).paddingLeft(u).paddingRight(l).paddingTop(s).paddingBottom(f).size(o?[r[1],r[0]]:r)(t);return(o||i||a)&&OPt(h,r,{swapXY:o,flipX:i,flipY:a}),h};function qPt(e,t){switch(e){case"squarify":return zT.treemapSquarify.ratio(t);case"binary":return zT.treemapBinary;case"dice":return zT.treemapDice;case"slice":return zT.treemapSlice;default:return zT.treemapSliceDice}}});var N6=Te((P0r,XLe)=>{"use strict";var HLe=Jl(),IT=jl(),WLe=ei(),rX=Kg(),NPt=bp().resizeText,UPt=F6();function VPt(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");NPt(e,t,"treemap"),t.each(function(r){var n=HLe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){HLe.select(this).call(jLe,o,a,e,{hovered:!1})})})}function jLe(e,t,r,n,i){var a=(i||{}).hovered,o=t.data.data,s=o.i,u,l,f=o.color,c=rX.isHierarchyRoot(t),h=1;if(a)u=r._hovered.marker.line.color,l=r._hovered.marker.line.width;else if(c&&f===r.root.color)h=100,u="rgba(0,0,0,0)",l=0;else if(u=WLe.castOption(r,s,"marker.line.color")||IT.defaultLine,l=WLe.castOption(r,s,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var d=r.marker.depthfade;if(d){var p=IT.combine(IT.addOpacity(r._backgroundColor,.75),f),x;if(d===!0){var b=rX.getMaxDepth(r);isFinite(b)?rX.isLeaf(t)?x=0:x=r._maxVisibleLayers-(t.data.depth-r._entryDepth):x=t.data.height+1}else x=t.data.depth-r._entryDepth,r._atRootLevel||x++;if(x>0)for(var v=0;v{"use strict";var ZLe=Jl(),U6=ei(),YLe=Mu(),GPt=Zf(),HPt=tX(),KLe=N6().styleOne,iX=D2(),RT=Kg(),WPt=G4(),nX=!0;JLe.exports=function(t,r,n,i,a){var o=a.barDifY,s=a.width,u=a.height,l=a.viewX,f=a.viewY,c=a.pathSlice,h=a.toMoveInsideSlice,d=a.strTransform,p=a.hasTransition,x=a.handleSlicesExit,b=a.makeUpdateSliceInterpolator,v=a.makeUpdateTextInterpolator,k={},E=t._context.staticPlot,T=t._fullLayout,L=r[0],_=L.trace,C=L.hierarchy,S=s/_._entryDepth,m=RT.listPath(n.data,"id"),P=HPt(C.copy(),[s,u],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();P=P.filter(function(B){var F=m.indexOf(B.data.id);return F===-1?!1:(B.x0=S*F,B.x1=S*(F+1),B.y0=o,B.y1=o+u,B.onPathbar=!0,!0)}),P.reverse(),i=i.data(P,RT.getPtId),i.enter().append("g").classed("pathbar",!0),x(i,nX,k,[s,u],c),i.order();var A=i;p&&(A=A.transition().each("end",function(){var B=ZLe.select(this);RT.setSliceCursor(B,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),A.each(function(B){B._x0=l(B.x0),B._x1=l(B.x1),B._y0=f(B.y0),B._y1=f(B.y1),B._hoverX=l(B.x1-Math.min(s,u)/2),B._hoverY=f(B.y1-u/2);var F=ZLe.select(this),U=U6.ensureSingle(F,"path","surface",function(N){N.style("pointer-events",E?"none":"all")});p?U.transition().attrTween("d",function(N){var W=b(N,nX,k,[s,u]);return function(re){return c(W(re))}}):U.attr("d",c),F.call(WPt,n,t,r,{styleOne:KLe,eventDataKeys:iX.eventDataKeys,transitionTime:iX.CLICK_TRANSITION_TIME,transitionEasing:iX.CLICK_TRANSITION_EASING}).call(RT.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),U.call(KLe,B,_,t,{hovered:!1}),B._text=(RT.getPtLabel(B)||"").split("
").join(" ")||"";var G=U6.ensureSingle(F,"g","slicetext"),j=U6.ensureSingle(G,"text","",function(N){N.attr("data-notex",1)}),H=U6.ensureUniformFontSize(t,RT.determineTextFont(_,B,T.font,{onPathbar:!0}));j.text(B._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(YLe.font,H).call(GPt.convertToTspans,t),B.textBB=YLe.bBox(j.node()),B.transform=h(B,{fontSize:H.size,onPathbar:!0}),B.transform.fontSize=H.size,p?j.transition().attrTween("transform",function(N){var W=v(N,nX,k,[s,u]);return function(re){return d(W(re))}}):j.attr("transform",d(B))})}});var rPe=Te((I0r,tPe)=>{"use strict";var QLe=Jl(),aX=(I2(),q1(z2)).interpolate,Y_=Kg(),W4=ei(),ePe=Qb().TEXTPAD,jPt=i2(),XPt=jPt.toMoveInsideBar,ZPt=bp(),oX=ZPt.recordMinTextSize,YPt=D2(),KPt=$Le();function B2(e){return Y_.isHierarchyRoot(e)?"":Y_.getPtId(e)}tPe.exports=function(t,r,n,i,a){var o=t._fullLayout,s=r[0],u=s.trace,l=u.type,f=l==="icicle",c=s.hierarchy,h=Y_.findEntryWithLevel(c,u.level),d=QLe.select(n),p=d.selectAll("g.pathbar"),x=d.selectAll("g.slice");if(!h){p.remove(),x.remove();return}var b=Y_.isHierarchyRoot(h),v=!o.uniformtext.mode&&Y_.hasTransition(i),k=Y_.getMaxDepth(u),E=function(Ae){return Ae.data.depth-h.data.depth-1?C+P:-(m+P):0,B={x0:S,x1:S,y0:A,y1:A+m},F=function(Ae,at,wt){var vt=u.tiling.pad,st=function(zt){return zt-vt<=at.x0},Ue=function(zt){return zt+vt>=at.x1},rt=function(zt){return zt-vt<=at.y0},$e=function(zt){return zt+vt>=at.y1};return Ae.x0===at.x0&&Ae.x1===at.x1&&Ae.y0===at.y0&&Ae.y1===at.y1?{x0:Ae.x0,x1:Ae.x1,y0:Ae.y0,y1:Ae.y1}:{x0:st(Ae.x0-vt)?0:Ue(Ae.x0-vt)?wt[0]:Ae.x0,x1:st(Ae.x1+vt)?0:Ue(Ae.x1+vt)?wt[0]:Ae.x1,y0:rt(Ae.y0-vt)?0:$e(Ae.y0-vt)?wt[1]:Ae.y0,y1:rt(Ae.y1+vt)?0:$e(Ae.y1+vt)?wt[1]:Ae.y1}},U=null,G={},j={},H=null,N=function(Ae,at){return at?G[B2(Ae)]:j[B2(Ae)]},W=function(Ae,at,wt,vt){if(at)return G[B2(c)]||B;var st=j[u.level]||wt;return E(Ae)?F(Ae,st,vt):{}};s.hasMultipleRoots&&b&&k++,u._maxDepth=k,u._backgroundColor=o.paper_bgcolor,u._entryDepth=h.data.depth,u._atRootLevel=b;var re=-_/2+T.l+T.w*(L.x[1]+L.x[0])/2,ae=-C/2+T.t+T.h*(1-(L.y[1]+L.y[0])/2),be=function(Ae){return re+Ae},Ce=function(Ae){return ae+Ae},Le=Ce(0),pe=be(0),te=function(Ae){return pe+Ae},ke=function(Ae){return Le+Ae};function Ee(Ae,at){return Ae+","+at}var Me=te(0),Ne=function(Ae){Ae.x=Math.max(Me,Ae.x)},Fe=u.pathbar.edgeshape,ye=function(Ae){var at=te(Math.max(Math.min(Ae.x0,Ae.x0),0)),wt=te(Math.min(Math.max(Ae.x1,Ae.x1),S)),vt=ke(Ae.y0),st=ke(Ae.y1),Ue=m/2,rt={},$e={};rt.x=at,$e.x=wt,rt.y=$e.y=(vt+st)/2;var zt={x:at,y:vt},Yt={x:wt,y:vt},hr={x:wt,y:st},yr={x:at,y:st};return Fe===">"?(zt.x-=Ue,Yt.x-=Ue,hr.x-=Ue,yr.x-=Ue):Fe==="/"?(hr.x-=Ue,yr.x-=Ue,rt.x-=Ue/2,$e.x-=Ue/2):Fe==="\\"?(zt.x-=Ue,Yt.x-=Ue,rt.x-=Ue/2,$e.x-=Ue/2):Fe==="<"&&(rt.x-=Ue,$e.x-=Ue),Ne(zt),Ne(yr),Ne(rt),Ne(Yt),Ne(hr),Ne($e),"M"+Ee(zt.x,zt.y)+"L"+Ee(Yt.x,Yt.y)+"L"+Ee($e.x,$e.y)+"L"+Ee(hr.x,hr.y)+"L"+Ee(yr.x,yr.y)+"L"+Ee(rt.x,rt.y)+"Z"},Ve=u[f?"tiling":"marker"].pad,ce=function(Ae){return u.textposition.indexOf(Ae)!==-1},Je=ce("top"),nt=ce("left"),gt=ce("right"),Nt=ce("bottom"),it=function(Ae){var at=be(Ae.x0),wt=be(Ae.x1),vt=Ce(Ae.y0),st=Ce(Ae.y1),Ue=wt-at,rt=st-vt;if(!Ue||!rt)return"";var $e=u.marker.cornerradius||0,zt=Math.min($e,Ue/2,rt/2);zt&&Ae.data&&Ae.data.data&&Ae.data.data.label&&(Je&&(zt=Math.min(zt,Ve.t)),nt&&(zt=Math.min(zt,Ve.l)),gt&&(zt=Math.min(zt,Ve.r)),Nt&&(zt=Math.min(zt,Ve.b)));var Yt=function(hr,yr){return zt?"a"+Ee(zt,zt)+" 0 0 1 "+Ee(hr,yr):""};return"M"+Ee(at,vt+zt)+Yt(zt,-zt)+"L"+Ee(wt-zt,vt)+Yt(zt,zt)+"L"+Ee(wt,st-zt)+Yt(-zt,zt)+"L"+Ee(at+zt,st)+Yt(-zt,-zt)+"Z"},Ye=function(Ae,at){var wt=Ae.x0,vt=Ae.x1,st=Ae.y0,Ue=Ae.y1,rt=Ae.textBB,$e=Je||at.isHeader&&!Nt,zt=$e?"start":Nt?"end":"middle",Yt=ce("right"),hr=ce("left")||at.onPathbar,yr=hr?-1:Yt?1:0;if(at.isHeader){if(wt+=(f?Ve:Ve.l)-ePe,vt-=(f?Ve:Ve.r)-ePe,wt>=vt){var br=(wt+vt)/2;wt=br,vt=br}var Ut;Nt?(Ut=Ue-(f?Ve:Ve.b),st{"use strict";var JPt=Jl(),$Pt=Kg(),QPt=bp(),ezt=QPt.clearMinTextSize,tzt=N0().resizeText,iPe=rPe();nPe.exports=function(t,r,n,i,a){var o=a.type,s=a.drawDescendants,u=t._fullLayout,l=u["_"+o+"layer"],f,c,h=!n;if(ezt(o,u),f=l.selectAll("g.trace."+o).data(r,function(p){return p[0].trace.uid}),f.enter().append("g").classed("trace",!0).classed(o,!0),f.order(),!u.uniformtext.mode&&$Pt.hasTransition(n)){i&&(c=i());var d=JPt.transition().duration(n.duration).ease(n.easing).each("end",function(){c&&c()}).each("interrupt",function(){c&&c()});d.each(function(){l.selectAll("g.trace").each(function(p){iPe(t,p,this,n,s)})})}else f.each(function(p){iPe(t,p,this,n,s)}),u.uniformtext.mode&&tzt(t,l.selectAll(".trace"),o);h&&f.exit().remove()}});var uPe=Te((D0r,lPe)=>{"use strict";var aPe=Jl(),V6=ei(),oPe=Mu(),rzt=Zf(),izt=tX(),sPe=N6().styleOne,lX=D2(),K_=Kg(),nzt=G4(),azt=O6().formatSliceLabel,uX=!1;lPe.exports=function(t,r,n,i,a){var o=a.width,s=a.height,u=a.viewX,l=a.viewY,f=a.pathSlice,c=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,p=a.handleSlicesExit,x=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,v=a.prevEntry,k={},E=t._context.staticPlot,T=t._fullLayout,L=r[0],_=L.trace,C=_.textposition.indexOf("left")!==-1,S=_.textposition.indexOf("right")!==-1,m=_.textposition.indexOf("bottom")!==-1,P=!m&&!_.marker.pad.t||m&&!_.marker.pad.b,A=izt(n,[o,s],{packing:_.tiling.packing,squarifyratio:_.tiling.squarifyratio,flipX:_.tiling.flip.indexOf("x")>-1,flipY:_.tiling.flip.indexOf("y")>-1,pad:{inner:_.tiling.pad,top:_.marker.pad.t,left:_.marker.pad.l,right:_.marker.pad.r,bottom:_.marker.pad.b}}),B=A.descendants(),F=1/0,U=-1/0;B.forEach(function(W){var re=W.depth;re>=_._maxDepth?(W.x0=W.x1=(W.x0+W.x1)/2,W.y0=W.y1=(W.y0+W.y1)/2):(F=Math.min(F,re),U=Math.max(U,re))}),i=i.data(B,K_.getPtId),_._maxVisibleLayers=isFinite(U)?U-F+1:0,i.enter().append("g").classed("slice",!0),p(i,uX,k,[o,s],f),i.order();var G=null;if(d&&v){var j=K_.getPtId(v);i.each(function(W){G===null&&K_.getPtId(W)===j&&(G={x0:W.x0,x1:W.x1,y0:W.y0,y1:W.y1})})}var H=function(){return G||{x0:0,x1:o,y0:0,y1:s}},N=i;return d&&(N=N.transition().each("end",function(){var W=aPe.select(this);K_.setSliceCursor(W,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),N.each(function(W){var re=K_.isHeader(W,_);W._x0=u(W.x0),W._x1=u(W.x1),W._y0=l(W.y0),W._y1=l(W.y1),W._hoverX=u(W.x1-_.marker.pad.r),W._hoverY=l(m?W.y1-_.marker.pad.b/2:W.y0+_.marker.pad.t/2);var ae=aPe.select(this),be=V6.ensureSingle(ae,"path","surface",function(Ee){Ee.style("pointer-events",E?"none":"all")});d?be.transition().attrTween("d",function(Ee){var Me=x(Ee,uX,H(),[o,s]);return function(Ne){return f(Me(Ne))}}):be.attr("d",f),ae.call(nzt,n,t,r,{styleOne:sPe,eventDataKeys:lX.eventDataKeys,transitionTime:lX.CLICK_TRANSITION_TIME,transitionEasing:lX.CLICK_TRANSITION_EASING}).call(K_.setSliceCursor,t,{isTransitioning:t._transitioning}),be.call(sPe,W,_,t,{hovered:!1}),W.x0===W.x1||W.y0===W.y1?W._text="":re?W._text=P?"":K_.getPtLabel(W)||"":W._text=azt(W,n,_,r,T)||"";var Ce=V6.ensureSingle(ae,"g","slicetext"),Le=V6.ensureSingle(Ce,"text","",function(Ee){Ee.attr("data-notex",1)}),pe=V6.ensureUniformFontSize(t,K_.determineTextFont(_,W,T.font)),te=W._text||" ",ke=re&&te.indexOf("
")===-1;Le.text(te).classed("slicetext",!0).attr("text-anchor",S?"end":C||ke?"start":"middle").call(oPe.font,pe).call(rzt.convertToTspans,t),W.textBB=oPe.bBox(Le.node()),W.transform=c(W,{fontSize:pe.size,isHeader:re}),W.transform.fontSize=pe.size,d?Le.transition().attrTween("transform",function(Ee){var Me=b(Ee,uX,H(),[o,s]);return function(Ne){return h(Me(Ne))}}):Le.attr("transform",h(W))}),G}});var cPe=Te((F0r,fPe)=>{"use strict";var ozt=sX(),szt=uPe();fPe.exports=function(t,r,n,i){return ozt(t,r,n,i,{type:"treemap",drawDescendants:szt})}});var dPe=Te((B0r,hPe)=>{"use strict";hPe.exports={moduleType:"trace",name:"treemap",basePlotModule:LLe(),categories:[],animatable:!0,attributes:q6(),layoutAttributes:Jj(),supplyDefaults:OLe(),supplyLayoutDefaults:NLe(),calc:Qj().calc,crossTraceCalc:Qj().crossTraceCalc,plot:cPe(),style:N6().style,colorbar:ep(),meta:{}}});var vPe=Te((O0r,pPe)=>{"use strict";pPe.exports=dPe()});var yPe=Te(DT=>{"use strict";var mPe=Cc();DT.name="icicle";DT.plot=function(e,t,r,n){mPe.plotBasePlot(DT.name,e,t,r,n)};DT.clean=function(e,t,r,n){mPe.cleanBasePlot(DT.name,e,t,r,n)}});var fX=Te((N0r,_Pe)=>{"use strict";var lzt=Nu().hovertemplateAttrs,uzt=Nu().texttemplateAttrs,fzt=nc(),czt=zc().attributes,j4=T2(),o0=C4(),G6=q6(),gPe=D2(),hzt=Su().extendFlat,dzt=Id().pattern;_Pe.exports={labels:o0.labels,parents:o0.parents,values:o0.values,branchvalues:o0.branchvalues,count:o0.count,level:o0.level,maxdepth:o0.maxdepth,tiling:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"plot"},flip:G6.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:hzt({colors:o0.marker.colors,line:o0.marker.line,pattern:dzt,editType:"calc"},fzt("marker",{colorAttr:"colors",anim:!1})),leaf:o0.leaf,pathbar:G6.pathbar,text:j4.text,textinfo:o0.textinfo,texttemplate:uzt({editType:"plot"},{keys:gPe.eventDataKeys.concat(["label","value"])}),hovertext:j4.hovertext,hoverinfo:o0.hoverinfo,hovertemplate:lzt({},{keys:gPe.eventDataKeys}),textfont:j4.textfont,insidetextfont:j4.insidetextfont,outsidetextfont:G6.outsidetextfont,textposition:G6.textposition,sort:j4.sort,root:o0.root,domain:czt({name:"icicle",trace:!0,editType:"calc"})}});var cX=Te((U0r,xPe)=>{"use strict";xPe.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var TPe=Te((V0r,APe)=>{"use strict";var bPe=ei(),pzt=fX(),vzt=jl(),mzt=zc().defaults,yzt=r0().handleText,gzt=Qb().TEXTPAD,_zt=S2().handleMarkerDefaults,wPe=_c(),xzt=wPe.hasColorscale,bzt=wPe.handleDefaults;APe.exports=function(t,r,n,i){function a(d,p){return bPe.coerce(t,r,pzt,d,p)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var u=a("values");u&&u.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),a("tiling.orientation"),a("tiling.flip"),a("tiling.pad");var l=a("text");a("texttemplate"),r.texttemplate||a("textinfo",bPe.isArrayOrTypedArray(l)?"text+label":"label"),a("hovertext"),a("hovertemplate");var f=a("pathbar.visible"),c="auto";yzt(t,r,i,a,c,{hasPathbar:f,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition"),_zt(t,r,i,a);var h=r._hasColorscale=xzt(t,"marker","colors")||(t.marker||{}).coloraxis;h&&bzt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",h?1:.7),r._hovered={marker:{line:{width:2,color:vzt.contrast(i.paper_bgcolor)}}},f&&(a("pathbar.thickness",r.pathbar.textfont.size+2*gzt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),mzt(r,i,a),r._length=null}});var MPe=Te((G0r,SPe)=>{"use strict";var wzt=ei(),Azt=cX();SPe.exports=function(t,r){function n(i,a){return wzt.coerce(t,r,Azt,i,a)}n("iciclecolorway",r.colorway),n("extendiciclecolors")}});var dX=Te(hX=>{"use strict";var EPe=z4();hX.calc=function(e,t){return EPe.calc(e,t)};hX.crossTraceCalc=function(e){return EPe._runCrossTraceCalc("icicle",e)}});var CPe=Te((W0r,kPe)=>{"use strict";var Tzt=L4(),Szt=eX();kPe.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.orientation==="h",s=n.maxDepth,u=r[0],l=r[1];s&&(u=(t.height+1)*r[0]/Math.min(t.height+1,s),l=(t.height+1)*r[1]/Math.min(t.height+1,s));var f=Tzt.partition().padding(n.pad.inner).size(o?[r[1],u]:[r[0],l])(t);return(o||i||a)&&Szt(f,r,{swapXY:o,flipX:i,flipY:a}),f}});var pX=Te((j0r,RPe)=>{"use strict";var LPe=Jl(),PPe=jl(),zPe=ei(),Mzt=bp().resizeText,Ezt=F6();function kzt(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");Mzt(e,t,"icicle"),t.each(function(r){var n=LPe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){LPe.select(this).call(IPe,o,a,e)})})}function IPe(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=zPe.castOption(r,o,"marker.line.color")||PPe.defaultLine,u=zPe.castOption(r,o,"marker.line.width")||0;e.call(Ezt,t,r,n).style("stroke-width",u).call(PPe.stroke,s).style("opacity",a?r.leaf.opacity:null)}RPe.exports={style:kzt,styleOne:IPe}});var qPe=Te((X0r,OPe)=>{"use strict";var DPe=Jl(),H6=ei(),FPe=Mu(),Czt=Zf(),Lzt=CPe(),BPe=pX().styleOne,vX=D2(),FT=Kg(),Pzt=G4(),zzt=O6().formatSliceLabel,mX=!1;OPe.exports=function(t,r,n,i,a){var o=a.width,s=a.height,u=a.viewX,l=a.viewY,f=a.pathSlice,c=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,p=a.handleSlicesExit,x=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,v=a.prevEntry,k={},E=t._context.staticPlot,T=t._fullLayout,L=r[0],_=L.trace,C=_.textposition.indexOf("left")!==-1,S=_.textposition.indexOf("right")!==-1,m=_.textposition.indexOf("bottom")!==-1,P=Lzt(n,[o,s],{flipX:_.tiling.flip.indexOf("x")>-1,flipY:_.tiling.flip.indexOf("y")>-1,orientation:_.tiling.orientation,pad:{inner:_.tiling.pad},maxDepth:_._maxDepth}),A=P.descendants(),B=1/0,F=-1/0;A.forEach(function(N){var W=N.depth;W>=_._maxDepth?(N.x0=N.x1=(N.x0+N.x1)/2,N.y0=N.y1=(N.y0+N.y1)/2):(B=Math.min(B,W),F=Math.max(F,W))}),i=i.data(A,FT.getPtId),_._maxVisibleLayers=isFinite(F)?F-B+1:0,i.enter().append("g").classed("slice",!0),p(i,mX,k,[o,s],f),i.order();var U=null;if(d&&v){var G=FT.getPtId(v);i.each(function(N){U===null&&FT.getPtId(N)===G&&(U={x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1})})}var j=function(){return U||{x0:0,x1:o,y0:0,y1:s}},H=i;return d&&(H=H.transition().each("end",function(){var N=DPe.select(this);FT.setSliceCursor(N,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),H.each(function(N){N._x0=u(N.x0),N._x1=u(N.x1),N._y0=l(N.y0),N._y1=l(N.y1),N._hoverX=u(N.x1-_.tiling.pad),N._hoverY=l(m?N.y1-_.tiling.pad/2:N.y0+_.tiling.pad/2);var W=DPe.select(this),re=H6.ensureSingle(W,"path","surface",function(Le){Le.style("pointer-events",E?"none":"all")});d?re.transition().attrTween("d",function(Le){var pe=x(Le,mX,j(),[o,s],{orientation:_.tiling.orientation,flipX:_.tiling.flip.indexOf("x")>-1,flipY:_.tiling.flip.indexOf("y")>-1});return function(te){return f(pe(te))}}):re.attr("d",f),W.call(Pzt,n,t,r,{styleOne:BPe,eventDataKeys:vX.eventDataKeys,transitionTime:vX.CLICK_TRANSITION_TIME,transitionEasing:vX.CLICK_TRANSITION_EASING}).call(FT.setSliceCursor,t,{isTransitioning:t._transitioning}),re.call(BPe,N,_,t,{hovered:!1}),N.x0===N.x1||N.y0===N.y1?N._text="":N._text=zzt(N,n,_,r,T)||"";var ae=H6.ensureSingle(W,"g","slicetext"),be=H6.ensureSingle(ae,"text","",function(Le){Le.attr("data-notex",1)}),Ce=H6.ensureUniformFontSize(t,FT.determineTextFont(_,N,T.font));be.text(N._text||" ").classed("slicetext",!0).attr("text-anchor",S?"end":C?"start":"middle").call(FPe.font,Ce).call(Czt.convertToTspans,t),N.textBB=FPe.bBox(be.node()),N.transform=c(N,{fontSize:Ce.size}),N.transform.fontSize=Ce.size,d?be.transition().attrTween("transform",function(Le){var pe=b(Le,mX,j(),[o,s]);return function(te){return h(pe(te))}}):be.attr("transform",h(N))}),U}});var UPe=Te((Z0r,NPe)=>{"use strict";var Izt=sX(),Rzt=qPe();NPe.exports=function(t,r,n,i){return Izt(t,r,n,i,{type:"icicle",drawDescendants:Rzt})}});var GPe=Te((Y0r,VPe)=>{"use strict";VPe.exports={moduleType:"trace",name:"icicle",basePlotModule:yPe(),categories:[],animatable:!0,attributes:fX(),layoutAttributes:cX(),supplyDefaults:TPe(),supplyLayoutDefaults:MPe(),calc:dX().calc,crossTraceCalc:dX().crossTraceCalc,plot:UPe(),style:pX().style,colorbar:ep(),meta:{}}});var WPe=Te((K0r,HPe)=>{"use strict";HPe.exports=GPe()});var XPe=Te(BT=>{"use strict";var jPe=Cc();BT.name="funnelarea";BT.plot=function(e,t,r,n){jPe.plotBasePlot(BT.name,e,t,r,n)};BT.clean=function(e,t,r,n){jPe.cleanBasePlot(BT.name,e,t,r,n)}});var yX=Te(($0r,ZPe)=>{"use strict";var ap=T2(),Dzt=Vf(),Fzt=zc().attributes,Bzt=Nu().hovertemplateAttrs,Ozt=Nu().texttemplateAttrs,O2=Su().extendFlat;ZPe.exports={labels:ap.labels,label0:ap.label0,dlabel:ap.dlabel,values:ap.values,marker:{colors:ap.marker.colors,line:{color:O2({},ap.marker.line.color,{dflt:null}),width:O2({},ap.marker.line.width,{dflt:1}),editType:"calc"},pattern:ap.marker.pattern,editType:"calc"},text:ap.text,hovertext:ap.hovertext,scalegroup:O2({},ap.scalegroup,{}),textinfo:O2({},ap.textinfo,{flags:["label","text","value","percent"]}),texttemplate:Ozt({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:O2({},Dzt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Bzt({},{keys:["label","color","value","text","percent"]}),textposition:O2({},ap.textposition,{values:["inside","none"],dflt:"inside"}),textfont:ap.textfont,insidetextfont:ap.insidetextfont,title:{text:ap.title.text,font:ap.title.font,position:O2({},ap.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:Fzt({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}});var gX=Te((Q0r,YPe)=>{"use strict";var qzt=c6().hiddenlabels;YPe.exports={hiddenlabels:qzt,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var $Pe=Te((emr,JPe)=>{"use strict";var KPe=ei(),Nzt=yX(),Uzt=zc().defaults,Vzt=r0().handleText,Gzt=S2().handleLabelsAndValues,Hzt=S2().handleMarkerDefaults;JPe.exports=function(t,r,n,i){function a(x,b){return KPe.coerce(t,r,Nzt,x,b)}var o=a("labels"),s=a("values"),u=Gzt(o,s),l=u.len;if(r._hasLabels=u.hasLabels,r._hasValues=u.hasValues,!r._hasLabels&&r._hasValues&&(a("label0"),a("dlabel")),!l){r.visible=!1;return}r._length=l,Hzt(t,r,i,a),a("scalegroup");var f=a("text"),c=a("texttemplate"),h;if(c||(h=a("textinfo",Array.isArray(f)?"text+percent":"percent")),a("hovertext"),a("hovertemplate"),c||h&&h!=="none"){var d=a("textposition");Vzt(t,r,i,a,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&a("textposition","none");Uzt(r,i,a);var p=a("title.text");p&&(a("title.position"),KPe.coerceFont(a,"title.font",i.font)),a("aspectratio"),a("baseratio")}});var eze=Te((tmr,QPe)=>{"use strict";var Wzt=ei(),jzt=gX();QPe.exports=function(t,r){function n(i,a){return Wzt.coerce(t,r,jzt,i,a)}n("hiddenlabels"),n("funnelareacolorway",r.colorway),n("extendfunnelareacolors")}});var _X=Te((rmr,rze)=>{"use strict";var tze=_T();function Xzt(e,t){return tze.calc(e,t)}function Zzt(e){tze.crossTraceCalc(e,{type:"funnelarea"})}rze.exports={calc:Xzt,crossTraceCalc:Zzt}});var sze=Te((imr,oze)=>{"use strict";var q2=Jl(),xX=Mu(),J_=ei(),Yzt=J_.strScale,ize=J_.strTranslate,nze=Zf(),Kzt=i2(),Jzt=Kzt.toMoveInsideBar,aze=bp(),$zt=aze.recordMinTextSize,Qzt=aze.clearMinTextSize,eIt=u_(),OT=v6(),tIt=OT.attachFxHandlers,rIt=OT.determineInsideTextFont,iIt=OT.layoutAreas,nIt=OT.prerenderTitles,aIt=OT.positionTitleOutside,oIt=OT.formatSliceLabel;oze.exports=function(t,r){var n=t._context.staticPlot,i=t._fullLayout;Qzt("funnelarea",i),nIt(r,t),iIt(r,i._size),J_.makeTraceGroups(i._funnelarealayer,r,"trace").each(function(a){var o=q2.select(this),s=a[0],u=s.trace;lIt(a),o.each(function(){var l=q2.select(this).selectAll("g.slice").data(a);l.enter().append("g").classed("slice",!0),l.exit().remove(),l.each(function(c,h){if(c.hidden){q2.select(this).selectAll("path,g").remove();return}c.pointNumber=c.i,c.curveNumber=u.index;var d=s.cx,p=s.cy,x=q2.select(this),b=x.selectAll("path.surface").data([c]);b.enter().append("path").classed("surface",!0).style({"pointer-events":n?"none":"all"}),x.call(tIt,t,a);var v="M"+(d+c.TR[0])+","+(p+c.TR[1])+bX(c.TR,c.BR)+bX(c.BR,c.BL)+bX(c.BL,c.TL)+"Z";b.attr("d",v),oIt(t,c,s);var k=eIt.castOption(u.textposition,c.pts),E=x.selectAll("g.slicetext").data(c.text&&k!=="none"?[0]:[]);E.enter().append("g").classed("slicetext",!0),E.exit().remove(),E.each(function(){var T=J_.ensureSingle(q2.select(this),"text","",function(B){B.attr("data-notex",1)}),L=J_.ensureUniformFontSize(t,rIt(u,c,i.font));T.text(c.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(xX.font,L).call(nze.convertToTspans,t);var _=xX.bBox(T.node()),C,S,m,P=Math.min(c.BL[1],c.BR[1])+p,A=Math.max(c.TL[1],c.TR[1])+p;S=Math.max(c.TL[0],c.BL[0])+d,m=Math.min(c.TR[0],c.BR[0])+d,C=Jzt(S,m,P,A,_,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),C.fontSize=L.size,$zt(u.type,C,i),a[h].transform=C,J_.setTransormAndDisplay(T,C)})});var f=q2.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);f.enter().append("g").classed("titletext",!0),f.exit().remove(),f.each(function(){var c=J_.ensureSingle(q2.select(this),"text","",function(p){p.attr("data-notex",1)}),h=u.title.text;u._meta&&(h=J_.templateString(h,u._meta)),c.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(xX.font,u.title.font).call(nze.convertToTspans,t);var d=aIt(s,i._size);c.attr("transform",ize(d.x,d.y)+Yzt(Math.min(1,d.scale))+ize(d.tx,d.ty))})})})};function bX(e,t){var r=t[0]-e[0],n=t[1]-e[1];return"l"+r+","+n}function sIt(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function lIt(e){if(!e.length)return;var t=e[0],r=t.trace,n=r.aspectratio,i=r.baseratio;i>.999&&(i=.999);var a=Math.pow(i,2),o=t.vTotal,s=o*a/(1-a),u=o,l=s/o;function f(){var F=Math.sqrt(l);return{x:F,y:-F}}function c(){var F=f();return[F.x,F.y]}var h,d=[];d.push(c());var p,x;for(p=e.length-1;p>-1;p--)if(x=e[p],!x.hidden){var b=x.v/u;l+=b,d.push(c())}var v=1/0,k=-1/0;for(p=0;p-1;p--)if(x=e[p],!x.hidden){P+=1;var A=d[P][0],B=d[P][1];x.TL=[-A,B],x.TR=[A,B],x.BL=S,x.BR=m,x.pxmid=sIt(x.TR,x.BR),S=x.TL,m=x.TR}}});var fze=Te((nmr,uze)=>{"use strict";var lze=Jl(),uIt=D3(),fIt=bp().resizeText;uze.exports=function(t){var r=t._fullLayout._funnelarealayer.selectAll(".trace");fIt(t,r,"funnelarea"),r.each(function(n){var i=n[0],a=i.trace,o=lze.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){lze.select(this).call(uIt,s,a,t)})})}});var hze=Te((amr,cze)=>{"use strict";cze.exports={moduleType:"trace",name:"funnelarea",basePlotModule:XPe(),categories:["pie-like","funnelarea","showLegend"],attributes:yX(),layoutAttributes:gX(),supplyDefaults:$Pe(),supplyLayoutDefaults:eze(),calc:_X().calc,crossTraceCalc:_X().crossTraceCalc,plot:sze(),style:fze(),styleOne:D3(),meta:{}}});var pze=Te((omr,dze)=>{"use strict";dze.exports=hze()});var qd=Te((smr,vze)=>{(function(){var e={1964:function(i,a,o){i.exports={alpha_shape:o(3502),convex_hull:o(7352),delaunay_triangulate:o(7642),gl_cone3d:o(6405),gl_error3d:o(9165),gl_line3d:o(5714),gl_mesh3d:o(7201),gl_plot3d:o(4100),gl_scatter3d:o(8418),gl_streamtube3d:o(7815),gl_surface3d:o(9499),ndarray:o(9618),ndarray_linear_interpolate:o(4317)}},4793:function(i,a,o){"use strict";var s;function u(ge,fe){if(!(ge instanceof fe))throw new TypeError("Cannot call a class as a function")}function l(ge,fe){for(var de=0;deS)throw new RangeError('The value "'+ge+'" is invalid for option "size"');var fe=new Uint8Array(ge);return Object.setPrototypeOf(fe,A.prototype),fe}function A(ge,fe,de){if(typeof ge=="number"){if(typeof fe=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return G(ge)}return B(ge,fe,de)}A.poolSize=8192;function B(ge,fe,de){if(typeof ge=="string")return j(ge,fe);if(ArrayBuffer.isView(ge))return N(ge);if(ge==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+T(ge));if(xe(ge,ArrayBuffer)||ge&&xe(ge.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(xe(ge,SharedArrayBuffer)||ge&&xe(ge.buffer,SharedArrayBuffer)))return W(ge,fe,de);if(typeof ge=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var dt=ge.valueOf&&ge.valueOf();if(dt!=null&&dt!==ge)return A.from(dt,fe,de);var It=re(ge);if(It)return It;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof ge[Symbol.toPrimitive]=="function")return A.from(ge[Symbol.toPrimitive]("string"),fe,de);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+T(ge))}A.from=function(ge,fe,de){return B(ge,fe,de)},Object.setPrototypeOf(A.prototype,Uint8Array.prototype),Object.setPrototypeOf(A,Uint8Array);function F(ge){if(typeof ge!="number")throw new TypeError('"size" argument must be of type number');if(ge<0)throw new RangeError('The value "'+ge+'" is invalid for option "size"')}function U(ge,fe,de){return F(ge),ge<=0?P(ge):fe!==void 0?typeof de=="string"?P(ge).fill(fe,de):P(ge).fill(fe):P(ge)}A.alloc=function(ge,fe,de){return U(ge,fe,de)};function G(ge){return F(ge),P(ge<0?0:ae(ge)|0)}A.allocUnsafe=function(ge){return G(ge)},A.allocUnsafeSlow=function(ge){return G(ge)};function j(ge,fe){if((typeof fe!="string"||fe==="")&&(fe="utf8"),!A.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe);var de=Ce(ge,fe)|0,dt=P(de),It=dt.write(ge,fe);return It!==de&&(dt=dt.slice(0,It)),dt}function H(ge){for(var fe=ge.length<0?0:ae(ge.length)|0,de=P(fe),dt=0;dt=S)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+S.toString(16)+" bytes");return ge|0}function be(ge){return+ge!=ge&&(ge=0),A.alloc(+ge)}A.isBuffer=function(fe){return fe!=null&&fe._isBuffer===!0&&fe!==A.prototype},A.compare=function(fe,de){if(xe(fe,Uint8Array)&&(fe=A.from(fe,fe.offset,fe.byteLength)),xe(de,Uint8Array)&&(de=A.from(de,de.offset,de.byteLength)),!A.isBuffer(fe)||!A.isBuffer(de))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(fe===de)return 0;for(var dt=fe.length,It=de.length,Pt=0,rr=Math.min(dt,It);PtIt.length?(A.isBuffer(rr)||(rr=A.from(rr)),rr.copy(It,Pt)):Uint8Array.prototype.set.call(It,rr,Pt);else if(A.isBuffer(rr))rr.copy(It,Pt);else throw new TypeError('"list" argument must be an Array of Buffers');Pt+=rr.length}return It};function Ce(ge,fe){if(A.isBuffer(ge))return ge.length;if(ArrayBuffer.isView(ge)||xe(ge,ArrayBuffer))return ge.byteLength;if(typeof ge!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+T(ge));var de=ge.length,dt=arguments.length>2&&arguments[2]===!0;if(!dt&&de===0)return 0;for(var It=!1;;)switch(fe){case"ascii":case"latin1":case"binary":return de;case"utf8":case"utf-8":return hr(ge).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de*2;case"hex":return de>>>1;case"base64":return Ut(ge).length;default:if(It)return dt?-1:hr(ge).length;fe=(""+fe).toLowerCase(),It=!0}}A.byteLength=Ce;function Le(ge,fe,de){var dt=!1;if((fe===void 0||fe<0)&&(fe=0),fe>this.length||((de===void 0||de>this.length)&&(de=this.length),de<=0)||(de>>>=0,fe>>>=0,de<=fe))return"";for(ge||(ge="utf8");;)switch(ge){case"hex":return it(this,fe,de);case"utf8":case"utf-8":return ce(this,fe,de);case"ascii":return gt(this,fe,de);case"latin1":case"binary":return Nt(this,fe,de);case"base64":return Ve(this,fe,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ye(this,fe,de);default:if(dt)throw new TypeError("Unknown encoding: "+ge);ge=(ge+"").toLowerCase(),dt=!0}}A.prototype._isBuffer=!0;function pe(ge,fe,de){var dt=ge[fe];ge[fe]=ge[de],ge[de]=dt}A.prototype.swap16=function(){var fe=this.length;if(fe%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var de=0;dede&&(fe+=" ... "),""},C&&(A.prototype[C]=A.prototype.inspect),A.prototype.compare=function(fe,de,dt,It,Pt){if(xe(fe,Uint8Array)&&(fe=A.from(fe,fe.offset,fe.byteLength)),!A.isBuffer(fe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+T(fe));if(de===void 0&&(de=0),dt===void 0&&(dt=fe?fe.length:0),It===void 0&&(It=0),Pt===void 0&&(Pt=this.length),de<0||dt>fe.length||It<0||Pt>this.length)throw new RangeError("out of range index");if(It>=Pt&&de>=dt)return 0;if(It>=Pt)return-1;if(de>=dt)return 1;if(de>>>=0,dt>>>=0,It>>>=0,Pt>>>=0,this===fe)return 0;for(var rr=Pt-It,Hr=dt-de,Dr=Math.min(rr,Hr),Mr=this.slice(It,Pt),Fr=fe.slice(de,dt),di=0;di2147483647?de=2147483647:de<-2147483648&&(de=-2147483648),de=+de,Oe(de)&&(de=It?0:ge.length-1),de<0&&(de=ge.length+de),de>=ge.length){if(It)return-1;de=ge.length-1}else if(de<0)if(It)de=0;else return-1;if(typeof fe=="string"&&(fe=A.from(fe,dt)),A.isBuffer(fe))return fe.length===0?-1:ke(ge,fe,de,dt,It);if(typeof fe=="number")return fe=fe&255,typeof Uint8Array.prototype.indexOf=="function"?It?Uint8Array.prototype.indexOf.call(ge,fe,de):Uint8Array.prototype.lastIndexOf.call(ge,fe,de):ke(ge,[fe],de,dt,It);throw new TypeError("val must be string, number or Buffer")}function ke(ge,fe,de,dt,It){var Pt=1,rr=ge.length,Hr=fe.length;if(dt!==void 0&&(dt=String(dt).toLowerCase(),dt==="ucs2"||dt==="ucs-2"||dt==="utf16le"||dt==="utf-16le")){if(ge.length<2||fe.length<2)return-1;Pt=2,rr/=2,Hr/=2,de/=2}function Dr(Ii,Ci){return Pt===1?Ii[Ci]:Ii.readUInt16BE(Ci*Pt)}var Mr;if(It){var Fr=-1;for(Mr=de;Mrrr&&(de=rr-Hr),Mr=de;Mr>=0;Mr--){for(var di=!0,Di=0;DiIt&&(dt=It)):dt=It;var Pt=fe.length;dt>Pt/2&&(dt=Pt/2);var rr;for(rr=0;rr>>0,isFinite(dt)?(dt=dt>>>0,It===void 0&&(It="utf8")):(It=dt,dt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Pt=this.length-de;if((dt===void 0||dt>Pt)&&(dt=Pt),fe.length>0&&(dt<0||de<0)||de>this.length)throw new RangeError("Attempt to write outside buffer bounds");It||(It="utf8");for(var rr=!1;;)switch(It){case"hex":return Ee(this,fe,de,dt);case"utf8":case"utf-8":return Me(this,fe,de,dt);case"ascii":case"latin1":case"binary":return Ne(this,fe,de,dt);case"base64":return Fe(this,fe,de,dt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ye(this,fe,de,dt);default:if(rr)throw new TypeError("Unknown encoding: "+It);It=(""+It).toLowerCase(),rr=!0}},A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ve(ge,fe,de){return fe===0&&de===ge.length?L.fromByteArray(ge):L.fromByteArray(ge.slice(fe,de))}function ce(ge,fe,de){de=Math.min(ge.length,de);for(var dt=[],It=fe;It239?4:Pt>223?3:Pt>191?2:1;if(It+Hr<=de){var Dr=void 0,Mr=void 0,Fr=void 0,di=void 0;switch(Hr){case 1:Pt<128&&(rr=Pt);break;case 2:Dr=ge[It+1],(Dr&192)===128&&(di=(Pt&31)<<6|Dr&63,di>127&&(rr=di));break;case 3:Dr=ge[It+1],Mr=ge[It+2],(Dr&192)===128&&(Mr&192)===128&&(di=(Pt&15)<<12|(Dr&63)<<6|Mr&63,di>2047&&(di<55296||di>57343)&&(rr=di));break;case 4:Dr=ge[It+1],Mr=ge[It+2],Fr=ge[It+3],(Dr&192)===128&&(Mr&192)===128&&(Fr&192)===128&&(di=(Pt&15)<<18|(Dr&63)<<12|(Mr&63)<<6|Fr&63,di>65535&&di<1114112&&(rr=di))}}rr===null?(rr=65533,Hr=1):rr>65535&&(rr-=65536,dt.push(rr>>>10&1023|55296),rr=56320|rr&1023),dt.push(rr),It+=Hr}return nt(dt)}var Je=4096;function nt(ge){var fe=ge.length;if(fe<=Je)return String.fromCharCode.apply(String,ge);for(var de="",dt=0;dtdt)&&(de=dt);for(var It="",Pt=fe;Ptdt&&(fe=dt),de<0?(de+=dt,de<0&&(de=0)):de>dt&&(de=dt),dede)throw new RangeError("Trying to access beyond buffer length")}A.prototype.readUintLE=A.prototype.readUIntLE=function(fe,de,dt){fe=fe>>>0,de=de>>>0,dt||kt(fe,de,this.length);for(var It=this[fe],Pt=1,rr=0;++rr>>0,de=de>>>0,dt||kt(fe,de,this.length);for(var It=this[fe+--de],Pt=1;de>0&&(Pt*=256);)It+=this[fe+--de]*Pt;return It},A.prototype.readUint8=A.prototype.readUInt8=function(fe,de){return fe=fe>>>0,de||kt(fe,1,this.length),this[fe]},A.prototype.readUint16LE=A.prototype.readUInt16LE=function(fe,de){return fe=fe>>>0,de||kt(fe,2,this.length),this[fe]|this[fe+1]<<8},A.prototype.readUint16BE=A.prototype.readUInt16BE=function(fe,de){return fe=fe>>>0,de||kt(fe,2,this.length),this[fe]<<8|this[fe+1]},A.prototype.readUint32LE=A.prototype.readUInt32LE=function(fe,de){return fe=fe>>>0,de||kt(fe,4,this.length),(this[fe]|this[fe+1]<<8|this[fe+2]<<16)+this[fe+3]*16777216},A.prototype.readUint32BE=A.prototype.readUInt32BE=function(fe,de){return fe=fe>>>0,de||kt(fe,4,this.length),this[fe]*16777216+(this[fe+1]<<16|this[fe+2]<<8|this[fe+3])},A.prototype.readBigUInt64LE=De(function(fe){fe=fe>>>0,rt(fe,"offset");var de=this[fe],dt=this[fe+7];(de===void 0||dt===void 0)&&$e(fe,this.length-8);var It=de+this[++fe]*Math.pow(2,8)+this[++fe]*Math.pow(2,16)+this[++fe]*Math.pow(2,24),Pt=this[++fe]+this[++fe]*Math.pow(2,8)+this[++fe]*Math.pow(2,16)+dt*Math.pow(2,24);return BigInt(It)+(BigInt(Pt)<>>0,rt(fe,"offset");var de=this[fe],dt=this[fe+7];(de===void 0||dt===void 0)&&$e(fe,this.length-8);var It=de*Math.pow(2,24)+this[++fe]*Math.pow(2,16)+this[++fe]*Math.pow(2,8)+this[++fe],Pt=this[++fe]*Math.pow(2,24)+this[++fe]*Math.pow(2,16)+this[++fe]*Math.pow(2,8)+dt;return(BigInt(It)<>>0,de=de>>>0,dt||kt(fe,de,this.length);for(var It=this[fe],Pt=1,rr=0;++rr=Pt&&(It-=Math.pow(2,8*de)),It},A.prototype.readIntBE=function(fe,de,dt){fe=fe>>>0,de=de>>>0,dt||kt(fe,de,this.length);for(var It=de,Pt=1,rr=this[fe+--It];It>0&&(Pt*=256);)rr+=this[fe+--It]*Pt;return Pt*=128,rr>=Pt&&(rr-=Math.pow(2,8*de)),rr},A.prototype.readInt8=function(fe,de){return fe=fe>>>0,de||kt(fe,1,this.length),this[fe]&128?(255-this[fe]+1)*-1:this[fe]},A.prototype.readInt16LE=function(fe,de){fe=fe>>>0,de||kt(fe,2,this.length);var dt=this[fe]|this[fe+1]<<8;return dt&32768?dt|4294901760:dt},A.prototype.readInt16BE=function(fe,de){fe=fe>>>0,de||kt(fe,2,this.length);var dt=this[fe+1]|this[fe]<<8;return dt&32768?dt|4294901760:dt},A.prototype.readInt32LE=function(fe,de){return fe=fe>>>0,de||kt(fe,4,this.length),this[fe]|this[fe+1]<<8|this[fe+2]<<16|this[fe+3]<<24},A.prototype.readInt32BE=function(fe,de){return fe=fe>>>0,de||kt(fe,4,this.length),this[fe]<<24|this[fe+1]<<16|this[fe+2]<<8|this[fe+3]},A.prototype.readBigInt64LE=De(function(fe){fe=fe>>>0,rt(fe,"offset");var de=this[fe],dt=this[fe+7];(de===void 0||dt===void 0)&&$e(fe,this.length-8);var It=this[fe+4]+this[fe+5]*Math.pow(2,8)+this[fe+6]*Math.pow(2,16)+(dt<<24);return(BigInt(It)<>>0,rt(fe,"offset");var de=this[fe],dt=this[fe+7];(de===void 0||dt===void 0)&&$e(fe,this.length-8);var It=(de<<24)+this[++fe]*Math.pow(2,16)+this[++fe]*Math.pow(2,8)+this[++fe];return(BigInt(It)<>>0,de||kt(fe,4,this.length),_.read(this,fe,!0,23,4)},A.prototype.readFloatBE=function(fe,de){return fe=fe>>>0,de||kt(fe,4,this.length),_.read(this,fe,!1,23,4)},A.prototype.readDoubleLE=function(fe,de){return fe=fe>>>0,de||kt(fe,8,this.length),_.read(this,fe,!0,52,8)},A.prototype.readDoubleBE=function(fe,de){return fe=fe>>>0,de||kt(fe,8,this.length),_.read(this,fe,!1,52,8)};function Tt(ge,fe,de,dt,It,Pt){if(!A.isBuffer(ge))throw new TypeError('"buffer" argument must be a Buffer instance');if(fe>It||fege.length)throw new RangeError("Index out of range")}A.prototype.writeUintLE=A.prototype.writeUIntLE=function(fe,de,dt,It){if(fe=+fe,de=de>>>0,dt=dt>>>0,!It){var Pt=Math.pow(2,8*dt)-1;Tt(this,fe,de,dt,Pt,0)}var rr=1,Hr=0;for(this[de]=fe&255;++Hr>>0,dt=dt>>>0,!It){var Pt=Math.pow(2,8*dt)-1;Tt(this,fe,de,dt,Pt,0)}var rr=dt-1,Hr=1;for(this[de+rr]=fe&255;--rr>=0&&(Hr*=256);)this[de+rr]=fe/Hr&255;return de+dt},A.prototype.writeUint8=A.prototype.writeUInt8=function(fe,de,dt){return fe=+fe,de=de>>>0,dt||Tt(this,fe,de,1,255,0),this[de]=fe&255,de+1},A.prototype.writeUint16LE=A.prototype.writeUInt16LE=function(fe,de,dt){return fe=+fe,de=de>>>0,dt||Tt(this,fe,de,2,65535,0),this[de]=fe&255,this[de+1]=fe>>>8,de+2},A.prototype.writeUint16BE=A.prototype.writeUInt16BE=function(fe,de,dt){return fe=+fe,de=de>>>0,dt||Tt(this,fe,de,2,65535,0),this[de]=fe>>>8,this[de+1]=fe&255,de+2},A.prototype.writeUint32LE=A.prototype.writeUInt32LE=function(fe,de,dt){return fe=+fe,de=de>>>0,dt||Tt(this,fe,de,4,4294967295,0),this[de+3]=fe>>>24,this[de+2]=fe>>>16,this[de+1]=fe>>>8,this[de]=fe&255,de+4},A.prototype.writeUint32BE=A.prototype.writeUInt32BE=function(fe,de,dt){return fe=+fe,de=de>>>0,dt||Tt(this,fe,de,4,4294967295,0),this[de]=fe>>>24,this[de+1]=fe>>>16,this[de+2]=fe>>>8,this[de+3]=fe&255,de+4};function St(ge,fe,de,dt,It){Ue(fe,dt,It,ge,de,7);var Pt=Number(fe&BigInt(4294967295));ge[de++]=Pt,Pt=Pt>>8,ge[de++]=Pt,Pt=Pt>>8,ge[de++]=Pt,Pt=Pt>>8,ge[de++]=Pt;var rr=Number(fe>>BigInt(32)&BigInt(4294967295));return ge[de++]=rr,rr=rr>>8,ge[de++]=rr,rr=rr>>8,ge[de++]=rr,rr=rr>>8,ge[de++]=rr,de}function Dt(ge,fe,de,dt,It){Ue(fe,dt,It,ge,de,7);var Pt=Number(fe&BigInt(4294967295));ge[de+7]=Pt,Pt=Pt>>8,ge[de+6]=Pt,Pt=Pt>>8,ge[de+5]=Pt,Pt=Pt>>8,ge[de+4]=Pt;var rr=Number(fe>>BigInt(32)&BigInt(4294967295));return ge[de+3]=rr,rr=rr>>8,ge[de+2]=rr,rr=rr>>8,ge[de+1]=rr,rr=rr>>8,ge[de]=rr,de+8}A.prototype.writeBigUInt64LE=De(function(fe){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return St(this,fe,de,BigInt(0),BigInt("0xffffffffffffffff"))}),A.prototype.writeBigUInt64BE=De(function(fe){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Dt(this,fe,de,BigInt(0),BigInt("0xffffffffffffffff"))}),A.prototype.writeIntLE=function(fe,de,dt,It){if(fe=+fe,de=de>>>0,!It){var Pt=Math.pow(2,8*dt-1);Tt(this,fe,de,dt,Pt-1,-Pt)}var rr=0,Hr=1,Dr=0;for(this[de]=fe&255;++rr>0)-Dr&255;return de+dt},A.prototype.writeIntBE=function(fe,de,dt,It){if(fe=+fe,de=de>>>0,!It){var Pt=Math.pow(2,8*dt-1);Tt(this,fe,de,dt,Pt-1,-Pt)}var rr=dt-1,Hr=1,Dr=0;for(this[de+rr]=fe&255;--rr>=0&&(Hr*=256);)fe<0&&Dr===0&&this[de+rr+1]!==0&&(Dr=1),this[de+rr]=(fe/Hr>>0)-Dr&255;return de+dt},A.prototype.writeInt8=function(fe,de,dt){return fe=+fe,de=de>>>0,dt||Tt(this,fe,de,1,127,-128),fe<0&&(fe=255+fe+1),this[de]=fe&255,de+1},A.prototype.writeInt16LE=function(fe,de,dt){return fe=+fe,de=de>>>0,dt||Tt(this,fe,de,2,32767,-32768),this[de]=fe&255,this[de+1]=fe>>>8,de+2},A.prototype.writeInt16BE=function(fe,de,dt){return fe=+fe,de=de>>>0,dt||Tt(this,fe,de,2,32767,-32768),this[de]=fe>>>8,this[de+1]=fe&255,de+2},A.prototype.writeInt32LE=function(fe,de,dt){return fe=+fe,de=de>>>0,dt||Tt(this,fe,de,4,2147483647,-2147483648),this[de]=fe&255,this[de+1]=fe>>>8,this[de+2]=fe>>>16,this[de+3]=fe>>>24,de+4},A.prototype.writeInt32BE=function(fe,de,dt){return fe=+fe,de=de>>>0,dt||Tt(this,fe,de,4,2147483647,-2147483648),fe<0&&(fe=4294967295+fe+1),this[de]=fe>>>24,this[de+1]=fe>>>16,this[de+2]=fe>>>8,this[de+3]=fe&255,de+4},A.prototype.writeBigInt64LE=De(function(fe){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return St(this,fe,de,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),A.prototype.writeBigInt64BE=De(function(fe){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Dt(this,fe,de,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Zt(ge,fe,de,dt,It,Pt){if(de+dt>ge.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("Index out of range")}function Et(ge,fe,de,dt,It){return fe=+fe,de=de>>>0,It||Zt(ge,fe,de,4,34028234663852886e22,-34028234663852886e22),_.write(ge,fe,de,dt,23,4),de+4}A.prototype.writeFloatLE=function(fe,de,dt){return Et(this,fe,de,!0,dt)},A.prototype.writeFloatBE=function(fe,de,dt){return Et(this,fe,de,!1,dt)};function Ae(ge,fe,de,dt,It){return fe=+fe,de=de>>>0,It||Zt(ge,fe,de,8,17976931348623157e292,-17976931348623157e292),_.write(ge,fe,de,dt,52,8),de+8}A.prototype.writeDoubleLE=function(fe,de,dt){return Ae(this,fe,de,!0,dt)},A.prototype.writeDoubleBE=function(fe,de,dt){return Ae(this,fe,de,!1,dt)},A.prototype.copy=function(fe,de,dt,It){if(!A.isBuffer(fe))throw new TypeError("argument should be a Buffer");if(dt||(dt=0),!It&&It!==0&&(It=this.length),de>=fe.length&&(de=fe.length),de||(de=0),It>0&&It=this.length)throw new RangeError("Index out of range");if(It<0)throw new RangeError("sourceEnd out of bounds");It>this.length&&(It=this.length),fe.length-de>>0,dt=dt===void 0?this.length:dt>>>0,fe||(fe=0);var rr;if(typeof fe=="number")for(rr=de;rrMath.pow(2,32)?It=vt(String(de)):typeof de=="bigint"&&(It=String(de),(de>Math.pow(BigInt(2),BigInt(32))||de<-Math.pow(BigInt(2),BigInt(32)))&&(It=vt(It)),It+="n"),dt+=" It must be ".concat(fe,". Received ").concat(It),dt},RangeError);function vt(ge){for(var fe="",de=ge.length,dt=ge[0]==="-"?1:0;de>=dt+4;de-=3)fe="_".concat(ge.slice(de-3,de)).concat(fe);return"".concat(ge.slice(0,de)).concat(fe)}function st(ge,fe,de){rt(fe,"offset"),(ge[fe]===void 0||ge[fe+de]===void 0)&&$e(fe,ge.length-(de+1))}function Ue(ge,fe,de,dt,It,Pt){if(ge>de||ge3?fe===0||fe===BigInt(0)?Hr=">= 0".concat(rr," and < 2").concat(rr," ** ").concat((Pt+1)*8).concat(rr):Hr=">= -(2".concat(rr," ** ").concat((Pt+1)*8-1).concat(rr,") and < 2 ** ")+"".concat((Pt+1)*8-1).concat(rr):Hr=">= ".concat(fe).concat(rr," and <= ").concat(de).concat(rr),new at.ERR_OUT_OF_RANGE("value",Hr,ge)}st(dt,It,Pt)}function rt(ge,fe){if(typeof ge!="number")throw new at.ERR_INVALID_ARG_TYPE(fe,"number",ge)}function $e(ge,fe,de){throw Math.floor(ge)!==ge?(rt(ge,de),new at.ERR_OUT_OF_RANGE(de||"offset","an integer",ge)):fe<0?new at.ERR_BUFFER_OUT_OF_BOUNDS:new at.ERR_OUT_OF_RANGE(de||"offset",">= ".concat(de?1:0," and <= ").concat(fe),ge)}var zt=/[^+/0-9A-Za-z-_]/g;function Yt(ge){if(ge=ge.split("=")[0],ge=ge.trim().replace(zt,""),ge.length<2)return"";for(;ge.length%4!==0;)ge=ge+"=";return ge}function hr(ge,fe){fe=fe||1/0;for(var de,dt=ge.length,It=null,Pt=[],rr=0;rr55295&&de<57344){if(!It){if(de>56319){(fe-=3)>-1&&Pt.push(239,191,189);continue}else if(rr+1===dt){(fe-=3)>-1&&Pt.push(239,191,189);continue}It=de;continue}if(de<56320){(fe-=3)>-1&&Pt.push(239,191,189),It=de;continue}de=(It-55296<<10|de-56320)+65536}else It&&(fe-=3)>-1&&Pt.push(239,191,189);if(It=null,de<128){if((fe-=1)<0)break;Pt.push(de)}else if(de<2048){if((fe-=2)<0)break;Pt.push(de>>6|192,de&63|128)}else if(de<65536){if((fe-=3)<0)break;Pt.push(de>>12|224,de>>6&63|128,de&63|128)}else if(de<1114112){if((fe-=4)<0)break;Pt.push(de>>18|240,de>>12&63|128,de>>6&63|128,de&63|128)}else throw new Error("Invalid code point")}return Pt}function yr(ge){for(var fe=[],de=0;de>8,It=de%256,Pt.push(It),Pt.push(dt);return Pt}function Ut(ge){return L.toByteArray(Yt(ge))}function Ie(ge,fe,de,dt){var It;for(It=0;It=fe.length||It>=ge.length);++It)fe[It+de]=ge[It];return It}function xe(ge,fe){return ge instanceof fe||ge!=null&&ge.constructor!=null&&ge.constructor.name!=null&&ge.constructor.name===fe.name}function Oe(ge){return ge!==ge}var Re=function(){for(var ge="0123456789abcdef",fe=new Array(256),de=0;de<16;++de)for(var dt=de*16,It=0;It<16;++It)fe[dt+It]=ge[de]+ge[It];return fe}();function De(ge){return typeof BigInt=="undefined"?ct:ge}function ct(){throw new Error("BigInt not supported")}},9216:function(i){"use strict";i.exports=u,i.exports.isMobile=u,i.exports.default=u;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,o=/CrOS/,s=/android|ipad|playbook|silk/i;function u(l){l||(l={});var f=l.ua;if(!f&&typeof navigator!="undefined"&&(f=navigator.userAgent),f&&f.headers&&typeof f.headers["user-agent"]=="string"&&(f=f.headers["user-agent"]),typeof f!="string")return!1;var c=a.test(f)&&!o.test(f)||!!l.tablet&&s.test(f);return!c&&l.tablet&&l.featureDetect&&navigator&&navigator.maxTouchPoints>1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(c=!0),c}},6296:function(i,a,o){"use strict";i.exports=h;var s=o(7261),u=o(9977),l=o(1811);function f(d,p){this._controllerNames=Object.keys(d),this._controllerList=this._controllerNames.map(function(x){return d[x]}),this._mode=p,this._active=d[p],this._active||(this._mode="turntable",this._active=d.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var c=f.prototype;c.flush=function(d){for(var p=this._controllerList,x=0;x0)throw new Error("Invalid string. Length must be a multiple of 4");var L=E.indexOf("=");L===-1&&(L=T);var _=L===T?0:4-L%4;return[L,_]}function d(E){var T=h(E),L=T[0],_=T[1];return(L+_)*3/4-_}function p(E,T,L){return(T+L)*3/4-L}function x(E){var T,L=h(E),_=L[0],C=L[1],S=new u(p(E,_,C)),m=0,P=C>0?_-4:_,A;for(A=0;A>16&255,S[m++]=T>>8&255,S[m++]=T&255;return C===2&&(T=s[E.charCodeAt(A)]<<2|s[E.charCodeAt(A+1)]>>4,S[m++]=T&255),C===1&&(T=s[E.charCodeAt(A)]<<10|s[E.charCodeAt(A+1)]<<4|s[E.charCodeAt(A+2)]>>2,S[m++]=T>>8&255,S[m++]=T&255),S}function b(E){return o[E>>18&63]+o[E>>12&63]+o[E>>6&63]+o[E&63]}function v(E,T,L){for(var _,C=[],S=T;SP?P:m+S));return _===1?(T=E[L-1],C.push(o[T>>2]+o[T<<4&63]+"==")):_===2&&(T=(E[L-2]<<8)+E[L-1],C.push(o[T>>10]+o[T>>4&63]+o[T<<2&63]+"=")),C.join("")}},3865:function(i,a,o){"use strict";var s=o(869);i.exports=u;function u(l,f){return s(l[0].mul(f[1]).add(f[0].mul(l[1])),l[1].mul(f[1]))}},1318:function(i){"use strict";i.exports=a;function a(o,s){return o[0].mul(s[1]).cmp(s[0].mul(o[1]))}},8697:function(i,a,o){"use strict";var s=o(869);i.exports=u;function u(l,f){return s(l[0].mul(f[1]),l[1].mul(f[0]))}},7842:function(i,a,o){"use strict";var s=o(6330),u=o(1533),l=o(2651),f=o(6768),c=o(869),h=o(8697);i.exports=d;function d(p,x){if(s(p))return x?h(p,d(x)):[p[0].clone(),p[1].clone()];var b=0,v,k;if(u(p))v=p.clone();else if(typeof p=="string")v=f(p);else{if(p===0)return[l(0),l(1)];if(p===Math.floor(p))v=l(p);else{for(;p!==Math.floor(p);)p=p*Math.pow(2,256),b-=256;v=l(p)}}if(s(x))v.mul(x[1]),k=x[0].clone();else if(u(x))k=x.clone();else if(typeof x=="string")k=f(x);else if(!x)k=l(1);else if(x===Math.floor(x))k=l(x);else{for(;x!==Math.floor(x);)x=x*Math.pow(2,256),b+=256;k=l(x)}return b>0?v=v.ushln(b):b<0&&(k=k.ushln(-b)),c(v,k)}},6330:function(i,a,o){"use strict";var s=o(1533);i.exports=u;function u(l){return Array.isArray(l)&&l.length===2&&s(l[0])&&s(l[1])}},5716:function(i,a,o){"use strict";var s=o(6859);i.exports=u;function u(l){return l.cmp(new s(0))}},1369:function(i,a,o){"use strict";var s=o(5716);i.exports=u;function u(l){var f=l.length,c=l.words,h=0;if(f===1)h=c[0];else if(f===2)h=c[0]+c[1]*67108864;else for(var d=0;d20?52:h+32}},1533:function(i,a,o){"use strict";var s=o(6859);i.exports=u;function u(l){return l&&typeof l=="object"&&!!l.words}},2651:function(i,a,o){"use strict";var s=o(6859),u=o(2361);i.exports=l;function l(f){var c=u.exponent(f);return c<52?new s(f):new s(f*Math.pow(2,52-c)).ushln(c-52)}},869:function(i,a,o){"use strict";var s=o(2651),u=o(5716);i.exports=l;function l(f,c){var h=u(f),d=u(c);if(h===0)return[s(0),s(1)];if(d===0)return[s(0),s(0)];d<0&&(f=f.neg(),c=c.neg());var p=f.gcd(c);return p.cmpn(1)?[f.div(p),c.div(p)]:[f,c]}},6768:function(i,a,o){"use strict";var s=o(6859);i.exports=u;function u(l){return new s(l)}},6504:function(i,a,o){"use strict";var s=o(869);i.exports=u;function u(l,f){return s(l[0].mul(f[0]),l[1].mul(f[1]))}},7721:function(i,a,o){"use strict";var s=o(5716);i.exports=u;function u(l){return s(l[0])*s(l[1])}},5572:function(i,a,o){"use strict";var s=o(869);i.exports=u;function u(l,f){return s(l[0].mul(f[1]).sub(l[1].mul(f[0])),l[1].mul(f[1]))}},946:function(i,a,o){"use strict";var s=o(1369),u=o(4025);i.exports=l;function l(f){var c=f[0],h=f[1];if(c.cmpn(0)===0)return 0;var d=c.abs().divmod(h.abs()),p=d.div,x=s(p),b=d.mod,v=c.negative!==h.negative?-1:1;if(b.cmpn(0)===0)return v*x;if(x){var k=u(x)+4,E=s(b.ushln(k).divRound(h));return v*(x+E*Math.pow(2,-k))}else{var T=h.bitLength()-b.bitLength()+53,E=s(b.ushln(T).divRound(h));return T<1023?v*E*Math.pow(2,-T):(E*=Math.pow(2,-1023),v*E*Math.pow(2,1023-T))}}},2478:function(i){"use strict";function a(c,h,d,p,x){for(var b=x+1;p<=x;){var v=p+x>>>1,k=c[v],E=d!==void 0?d(k,h):k-h;E>=0?(b=v,x=v-1):p=v+1}return b}function o(c,h,d,p,x){for(var b=x+1;p<=x;){var v=p+x>>>1,k=c[v],E=d!==void 0?d(k,h):k-h;E>0?(b=v,x=v-1):p=v+1}return b}function s(c,h,d,p,x){for(var b=p-1;p<=x;){var v=p+x>>>1,k=c[v],E=d!==void 0?d(k,h):k-h;E<0?(b=v,p=v+1):x=v-1}return b}function u(c,h,d,p,x){for(var b=p-1;p<=x;){var v=p+x>>>1,k=c[v],E=d!==void 0?d(k,h):k-h;E<=0?(b=v,p=v+1):x=v-1}return b}function l(c,h,d,p,x){for(;p<=x;){var b=p+x>>>1,v=c[b],k=d!==void 0?d(v,h):v-h;if(k===0)return b;k<=0?p=b+1:x=b-1}return-1}function f(c,h,d,p,x,b){return typeof d=="function"?b(c,h,d,p===void 0?0:p|0,x===void 0?c.length-1:x|0):b(c,h,void 0,d===void 0?0:d|0,p===void 0?c.length-1:p|0)}i.exports={ge:function(c,h,d,p,x){return f(c,h,d,p,x,a)},gt:function(c,h,d,p,x){return f(c,h,d,p,x,o)},lt:function(c,h,d,p,x){return f(c,h,d,p,x,s)},le:function(c,h,d,p,x){return f(c,h,d,p,x,u)},eq:function(c,h,d,p,x){return f(c,h,d,p,x,l)}}},8828:function(i,a){"use strict";"use restrict";var o=32;a.INT_BITS=o,a.INT_MAX=2147483647,a.INT_MIN=-1<0)-(l<0)},a.abs=function(l){var f=l>>o-1;return(l^f)-f},a.min=function(l,f){return f^(l^f)&-(l65535)<<4,l>>>=f,c=(l>255)<<3,l>>>=c,f|=c,c=(l>15)<<2,l>>>=c,f|=c,c=(l>3)<<1,l>>>=c,f|=c,f|l>>1},a.log10=function(l){return l>=1e9?9:l>=1e8?8:l>=1e7?7:l>=1e6?6:l>=1e5?5:l>=1e4?4:l>=1e3?3:l>=100?2:l>=10?1:0},a.popCount=function(l){return l=l-(l>>>1&1431655765),l=(l&858993459)+(l>>>2&858993459),(l+(l>>>4)&252645135)*16843009>>>24};function s(l){var f=32;return l&=-l,l&&f--,l&65535&&(f-=16),l&16711935&&(f-=8),l&252645135&&(f-=4),l&858993459&&(f-=2),l&1431655765&&(f-=1),f}a.countTrailingZeros=s,a.nextPow2=function(l){return l+=l===0,--l,l|=l>>>1,l|=l>>>2,l|=l>>>4,l|=l>>>8,l|=l>>>16,l+1},a.prevPow2=function(l){return l|=l>>>1,l|=l>>>2,l|=l>>>4,l|=l>>>8,l|=l>>>16,l-(l>>>1)},a.parity=function(l){return l^=l>>>16,l^=l>>>8,l^=l>>>4,l&=15,27030>>>l&1};var u=new Array(256);(function(l){for(var f=0;f<256;++f){var c=f,h=f,d=7;for(c>>>=1;c;c>>>=1)h<<=1,h|=c&1,--d;l[f]=h<>>8&255]<<16|u[l>>>16&255]<<8|u[l>>>24&255]},a.interleave2=function(l,f){return l&=65535,l=(l|l<<8)&16711935,l=(l|l<<4)&252645135,l=(l|l<<2)&858993459,l=(l|l<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,l|f<<1},a.deinterleave2=function(l,f){return l=l>>>f&1431655765,l=(l|l>>>1)&858993459,l=(l|l>>>2)&252645135,l=(l|l>>>4)&16711935,l=(l|l>>>16)&65535,l<<16>>16},a.interleave3=function(l,f,c){return l&=1023,l=(l|l<<16)&4278190335,l=(l|l<<8)&251719695,l=(l|l<<4)&3272356035,l=(l|l<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,l|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,l|c<<2},a.deinterleave3=function(l,f){return l=l>>>f&1227133513,l=(l|l>>>2)&3272356035,l=(l|l>>>4)&251719695,l=(l|l>>>8)&4278190335,l=(l|l>>>16)&1023,l<<22>>22},a.nextCombination=function(l){var f=l|l-1;return f+1|(~f&-~f)-1>>>s(l)+1}},6859:function(i,a,o){i=o.nmd(i),function(s,u){"use strict";function l(H,N){if(!H)throw new Error(N||"Assertion failed")}function f(H,N){H.super_=N;var W=function(){};W.prototype=N.prototype,H.prototype=new W,H.prototype.constructor=H}function c(H,N,W){if(c.isBN(H))return H;this.negative=0,this.words=null,this.length=0,this.red=null,H!==null&&((N==="le"||N==="be")&&(W=N,N=10),this._init(H||0,N||10,W||"be"))}typeof s=="object"?s.exports=c:u.BN=c,c.BN=c,c.wordSize=26;var h;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?h=window.Buffer:h=o(7790).Buffer}catch(H){}c.isBN=function(N){return N instanceof c?!0:N!==null&&typeof N=="object"&&N.constructor.wordSize===c.wordSize&&Array.isArray(N.words)},c.max=function(N,W){return N.cmp(W)>0?N:W},c.min=function(N,W){return N.cmp(W)<0?N:W},c.prototype._init=function(N,W,re){if(typeof N=="number")return this._initNumber(N,W,re);if(typeof N=="object")return this._initArray(N,W,re);W==="hex"&&(W=16),l(W===(W|0)&&W>=2&&W<=36),N=N.toString().replace(/\s+/g,"");var ae=0;N[0]==="-"&&(ae++,this.negative=1),ae=0;ae-=3)Ce=N[ae]|N[ae-1]<<8|N[ae-2]<<16,this.words[be]|=Ce<>>26-Le&67108863,Le+=24,Le>=26&&(Le-=26,be++);else if(re==="le")for(ae=0,be=0;ae>>26-Le&67108863,Le+=24,Le>=26&&(Le-=26,be++);return this.strip()};function d(H,N){var W=H.charCodeAt(N);return W>=65&&W<=70?W-55:W>=97&&W<=102?W-87:W-48&15}function p(H,N,W){var re=d(H,W);return W-1>=N&&(re|=d(H,W-1)<<4),re}c.prototype._parseHex=function(N,W,re){this.length=Math.ceil((N.length-W)/6),this.words=new Array(this.length);for(var ae=0;ae=W;ae-=2)Le=p(N,W,ae)<=18?(be-=18,Ce+=1,this.words[Ce]|=Le>>>26):be+=8;else{var pe=N.length-W;for(ae=pe%2===0?W+1:W;ae=18?(be-=18,Ce+=1,this.words[Ce]|=Le>>>26):be+=8}this.strip()};function x(H,N,W,re){for(var ae=0,be=Math.min(H.length,W),Ce=N;Ce=49?ae+=Le-49+10:Le>=17?ae+=Le-17+10:ae+=Le}return ae}c.prototype._parseBase=function(N,W,re){this.words=[0],this.length=1;for(var ae=0,be=1;be<=67108863;be*=W)ae++;ae--,be=be/W|0;for(var Ce=N.length-re,Le=Ce%ae,pe=Math.min(Ce,Ce-Le)+re,te=0,ke=re;ke1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},c.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},c.prototype.inspect=function(){return(this.red?""};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],v=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];c.prototype.toString=function(N,W){N=N||10,W=W|0||1;var re;if(N===16||N==="hex"){re="";for(var ae=0,be=0,Ce=0;Ce>>24-ae&16777215,be!==0||Ce!==this.length-1?re=b[6-pe.length]+pe+re:re=pe+re,ae+=2,ae>=26&&(ae-=26,Ce--)}for(be!==0&&(re=be.toString(16)+re);re.length%W!==0;)re="0"+re;return this.negative!==0&&(re="-"+re),re}if(N===(N|0)&&N>=2&&N<=36){var te=v[N],ke=k[N];re="";var Ee=this.clone();for(Ee.negative=0;!Ee.isZero();){var Me=Ee.modn(ke).toString(N);Ee=Ee.idivn(ke),Ee.isZero()?re=Me+re:re=b[te-Me.length]+Me+re}for(this.isZero()&&(re="0"+re);re.length%W!==0;)re="0"+re;return this.negative!==0&&(re="-"+re),re}l(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var N=this.words[0];return this.length===2?N+=this.words[1]*67108864:this.length===3&&this.words[2]===1?N+=4503599627370496+this.words[1]*67108864:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-N:N},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(N,W){return l(typeof h!="undefined"),this.toArrayLike(h,N,W)},c.prototype.toArray=function(N,W){return this.toArrayLike(Array,N,W)},c.prototype.toArrayLike=function(N,W,re){var ae=this.byteLength(),be=re||Math.max(1,ae);l(ae<=be,"byte array longer than desired length"),l(be>0,"Requested array length <= 0"),this.strip();var Ce=W==="le",Le=new N(be),pe,te,ke=this.clone();if(Ce){for(te=0;!ke.isZero();te++)pe=ke.andln(255),ke.iushrn(8),Le[te]=pe;for(;te=4096&&(re+=13,W>>>=13),W>=64&&(re+=7,W>>>=7),W>=8&&(re+=4,W>>>=4),W>=2&&(re+=2,W>>>=2),re+W},c.prototype._zeroBits=function(N){if(N===0)return 26;var W=N,re=0;return(W&8191)===0&&(re+=13,W>>>=13),(W&127)===0&&(re+=7,W>>>=7),(W&15)===0&&(re+=4,W>>>=4),(W&3)===0&&(re+=2,W>>>=2),(W&1)===0&&re++,re},c.prototype.bitLength=function(){var N=this.words[this.length-1],W=this._countBits(N);return(this.length-1)*26+W};function E(H){for(var N=new Array(H.bitLength()),W=0;W>>ae}return N}c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var N=0,W=0;WN.length?this.clone().ior(N):N.clone().ior(this)},c.prototype.uor=function(N){return this.length>N.length?this.clone().iuor(N):N.clone().iuor(this)},c.prototype.iuand=function(N){var W;this.length>N.length?W=N:W=this;for(var re=0;reN.length?this.clone().iand(N):N.clone().iand(this)},c.prototype.uand=function(N){return this.length>N.length?this.clone().iuand(N):N.clone().iuand(this)},c.prototype.iuxor=function(N){var W,re;this.length>N.length?(W=this,re=N):(W=N,re=this);for(var ae=0;aeN.length?this.clone().ixor(N):N.clone().ixor(this)},c.prototype.uxor=function(N){return this.length>N.length?this.clone().iuxor(N):N.clone().iuxor(this)},c.prototype.inotn=function(N){l(typeof N=="number"&&N>=0);var W=Math.ceil(N/26)|0,re=N%26;this._expand(W),re>0&&W--;for(var ae=0;ae0&&(this.words[ae]=~this.words[ae]&67108863>>26-re),this.strip()},c.prototype.notn=function(N){return this.clone().inotn(N)},c.prototype.setn=function(N,W){l(typeof N=="number"&&N>=0);var re=N/26|0,ae=N%26;return this._expand(re+1),W?this.words[re]=this.words[re]|1<N.length?(re=this,ae=N):(re=N,ae=this);for(var be=0,Ce=0;Ce>>26;for(;be!==0&&Ce>>26;if(this.length=re.length,be!==0)this.words[this.length]=be,this.length++;else if(re!==this)for(;CeN.length?this.clone().iadd(N):N.clone().iadd(this)},c.prototype.isub=function(N){if(N.negative!==0){N.negative=0;var W=this.iadd(N);return N.negative=1,W._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(N),this.negative=1,this._normSign();var re=this.cmp(N);if(re===0)return this.negative=0,this.length=1,this.words[0]=0,this;var ae,be;re>0?(ae=this,be=N):(ae=N,be=this);for(var Ce=0,Le=0;Le>26,this.words[Le]=W&67108863;for(;Ce!==0&&Le>26,this.words[Le]=W&67108863;if(Ce===0&&Le>>26,Ee=pe&67108863,Me=Math.min(te,N.length-1),Ne=Math.max(0,te-H.length+1);Ne<=Me;Ne++){var Fe=te-Ne|0;ae=H.words[Fe]|0,be=N.words[Ne]|0,Ce=ae*be+Ee,ke+=Ce/67108864|0,Ee=Ce&67108863}W.words[te]=Ee|0,pe=ke|0}return pe!==0?W.words[te]=pe|0:W.length--,W.strip()}var L=function(N,W,re){var ae=N.words,be=W.words,Ce=re.words,Le=0,pe,te,ke,Ee=ae[0]|0,Me=Ee&8191,Ne=Ee>>>13,Fe=ae[1]|0,ye=Fe&8191,Ve=Fe>>>13,ce=ae[2]|0,Je=ce&8191,nt=ce>>>13,gt=ae[3]|0,Nt=gt&8191,it=gt>>>13,Ye=ae[4]|0,kt=Ye&8191,Tt=Ye>>>13,St=ae[5]|0,Dt=St&8191,Zt=St>>>13,Et=ae[6]|0,Ae=Et&8191,at=Et>>>13,wt=ae[7]|0,vt=wt&8191,st=wt>>>13,Ue=ae[8]|0,rt=Ue&8191,$e=Ue>>>13,zt=ae[9]|0,Yt=zt&8191,hr=zt>>>13,yr=be[0]|0,br=yr&8191,Ut=yr>>>13,Ie=be[1]|0,xe=Ie&8191,Oe=Ie>>>13,Re=be[2]|0,De=Re&8191,ct=Re>>>13,ge=be[3]|0,fe=ge&8191,de=ge>>>13,dt=be[4]|0,It=dt&8191,Pt=dt>>>13,rr=be[5]|0,Hr=rr&8191,Dr=rr>>>13,Mr=be[6]|0,Fr=Mr&8191,di=Mr>>>13,Di=be[7]|0,Ii=Di&8191,Ci=Di>>>13,nn=be[8]|0,ii=nn&8191,wi=nn>>>13,Gi=be[9]|0,Bt=Gi&8191,yt=Gi>>>13;re.negative=N.negative^W.negative,re.length=19,pe=Math.imul(Me,br),te=Math.imul(Me,Ut),te=te+Math.imul(Ne,br)|0,ke=Math.imul(Ne,Ut);var Vt=(Le+pe|0)+((te&8191)<<13)|0;Le=(ke+(te>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,pe=Math.imul(ye,br),te=Math.imul(ye,Ut),te=te+Math.imul(Ve,br)|0,ke=Math.imul(Ve,Ut),pe=pe+Math.imul(Me,xe)|0,te=te+Math.imul(Me,Oe)|0,te=te+Math.imul(Ne,xe)|0,ke=ke+Math.imul(Ne,Oe)|0;var Wt=(Le+pe|0)+((te&8191)<<13)|0;Le=(ke+(te>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,pe=Math.imul(Je,br),te=Math.imul(Je,Ut),te=te+Math.imul(nt,br)|0,ke=Math.imul(nt,Ut),pe=pe+Math.imul(ye,xe)|0,te=te+Math.imul(ye,Oe)|0,te=te+Math.imul(Ve,xe)|0,ke=ke+Math.imul(Ve,Oe)|0,pe=pe+Math.imul(Me,De)|0,te=te+Math.imul(Me,ct)|0,te=te+Math.imul(Ne,De)|0,ke=ke+Math.imul(Ne,ct)|0;var _r=(Le+pe|0)+((te&8191)<<13)|0;Le=(ke+(te>>>13)|0)+(_r>>>26)|0,_r&=67108863,pe=Math.imul(Nt,br),te=Math.imul(Nt,Ut),te=te+Math.imul(it,br)|0,ke=Math.imul(it,Ut),pe=pe+Math.imul(Je,xe)|0,te=te+Math.imul(Je,Oe)|0,te=te+Math.imul(nt,xe)|0,ke=ke+Math.imul(nt,Oe)|0,pe=pe+Math.imul(ye,De)|0,te=te+Math.imul(ye,ct)|0,te=te+Math.imul(Ve,De)|0,ke=ke+Math.imul(Ve,ct)|0,pe=pe+Math.imul(Me,fe)|0,te=te+Math.imul(Me,de)|0,te=te+Math.imul(Ne,fe)|0,ke=ke+Math.imul(Ne,de)|0;var Lr=(Le+pe|0)+((te&8191)<<13)|0;Le=(ke+(te>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,pe=Math.imul(kt,br),te=Math.imul(kt,Ut),te=te+Math.imul(Tt,br)|0,ke=Math.imul(Tt,Ut),pe=pe+Math.imul(Nt,xe)|0,te=te+Math.imul(Nt,Oe)|0,te=te+Math.imul(it,xe)|0,ke=ke+Math.imul(it,Oe)|0,pe=pe+Math.imul(Je,De)|0,te=te+Math.imul(Je,ct)|0,te=te+Math.imul(nt,De)|0,ke=ke+Math.imul(nt,ct)|0,pe=pe+Math.imul(ye,fe)|0,te=te+Math.imul(ye,de)|0,te=te+Math.imul(Ve,fe)|0,ke=ke+Math.imul(Ve,de)|0,pe=pe+Math.imul(Me,It)|0,te=te+Math.imul(Me,Pt)|0,te=te+Math.imul(Ne,It)|0,ke=ke+Math.imul(Ne,Pt)|0;var Ur=(Le+pe|0)+((te&8191)<<13)|0;Le=(ke+(te>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,pe=Math.imul(Dt,br),te=Math.imul(Dt,Ut),te=te+Math.imul(Zt,br)|0,ke=Math.imul(Zt,Ut),pe=pe+Math.imul(kt,xe)|0,te=te+Math.imul(kt,Oe)|0,te=te+Math.imul(Tt,xe)|0,ke=ke+Math.imul(Tt,Oe)|0,pe=pe+Math.imul(Nt,De)|0,te=te+Math.imul(Nt,ct)|0,te=te+Math.imul(it,De)|0,ke=ke+Math.imul(it,ct)|0,pe=pe+Math.imul(Je,fe)|0,te=te+Math.imul(Je,de)|0,te=te+Math.imul(nt,fe)|0,ke=ke+Math.imul(nt,de)|0,pe=pe+Math.imul(ye,It)|0,te=te+Math.imul(ye,Pt)|0,te=te+Math.imul(Ve,It)|0,ke=ke+Math.imul(Ve,Pt)|0,pe=pe+Math.imul(Me,Hr)|0,te=te+Math.imul(Me,Dr)|0,te=te+Math.imul(Ne,Hr)|0,ke=ke+Math.imul(Ne,Dr)|0;var Ir=(Le+pe|0)+((te&8191)<<13)|0;Le=(ke+(te>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,pe=Math.imul(Ae,br),te=Math.imul(Ae,Ut),te=te+Math.imul(at,br)|0,ke=Math.imul(at,Ut),pe=pe+Math.imul(Dt,xe)|0,te=te+Math.imul(Dt,Oe)|0,te=te+Math.imul(Zt,xe)|0,ke=ke+Math.imul(Zt,Oe)|0,pe=pe+Math.imul(kt,De)|0,te=te+Math.imul(kt,ct)|0,te=te+Math.imul(Tt,De)|0,ke=ke+Math.imul(Tt,ct)|0,pe=pe+Math.imul(Nt,fe)|0,te=te+Math.imul(Nt,de)|0,te=te+Math.imul(it,fe)|0,ke=ke+Math.imul(it,de)|0,pe=pe+Math.imul(Je,It)|0,te=te+Math.imul(Je,Pt)|0,te=te+Math.imul(nt,It)|0,ke=ke+Math.imul(nt,Pt)|0,pe=pe+Math.imul(ye,Hr)|0,te=te+Math.imul(ye,Dr)|0,te=te+Math.imul(Ve,Hr)|0,ke=ke+Math.imul(Ve,Dr)|0,pe=pe+Math.imul(Me,Fr)|0,te=te+Math.imul(Me,di)|0,te=te+Math.imul(Ne,Fr)|0,ke=ke+Math.imul(Ne,di)|0;var Gr=(Le+pe|0)+((te&8191)<<13)|0;Le=(ke+(te>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,pe=Math.imul(vt,br),te=Math.imul(vt,Ut),te=te+Math.imul(st,br)|0,ke=Math.imul(st,Ut),pe=pe+Math.imul(Ae,xe)|0,te=te+Math.imul(Ae,Oe)|0,te=te+Math.imul(at,xe)|0,ke=ke+Math.imul(at,Oe)|0,pe=pe+Math.imul(Dt,De)|0,te=te+Math.imul(Dt,ct)|0,te=te+Math.imul(Zt,De)|0,ke=ke+Math.imul(Zt,ct)|0,pe=pe+Math.imul(kt,fe)|0,te=te+Math.imul(kt,de)|0,te=te+Math.imul(Tt,fe)|0,ke=ke+Math.imul(Tt,de)|0,pe=pe+Math.imul(Nt,It)|0,te=te+Math.imul(Nt,Pt)|0,te=te+Math.imul(it,It)|0,ke=ke+Math.imul(it,Pt)|0,pe=pe+Math.imul(Je,Hr)|0,te=te+Math.imul(Je,Dr)|0,te=te+Math.imul(nt,Hr)|0,ke=ke+Math.imul(nt,Dr)|0,pe=pe+Math.imul(ye,Fr)|0,te=te+Math.imul(ye,di)|0,te=te+Math.imul(Ve,Fr)|0,ke=ke+Math.imul(Ve,di)|0,pe=pe+Math.imul(Me,Ii)|0,te=te+Math.imul(Me,Ci)|0,te=te+Math.imul(Ne,Ii)|0,ke=ke+Math.imul(Ne,Ci)|0;var jr=(Le+pe|0)+((te&8191)<<13)|0;Le=(ke+(te>>>13)|0)+(jr>>>26)|0,jr&=67108863,pe=Math.imul(rt,br),te=Math.imul(rt,Ut),te=te+Math.imul($e,br)|0,ke=Math.imul($e,Ut),pe=pe+Math.imul(vt,xe)|0,te=te+Math.imul(vt,Oe)|0,te=te+Math.imul(st,xe)|0,ke=ke+Math.imul(st,Oe)|0,pe=pe+Math.imul(Ae,De)|0,te=te+Math.imul(Ae,ct)|0,te=te+Math.imul(at,De)|0,ke=ke+Math.imul(at,ct)|0,pe=pe+Math.imul(Dt,fe)|0,te=te+Math.imul(Dt,de)|0,te=te+Math.imul(Zt,fe)|0,ke=ke+Math.imul(Zt,de)|0,pe=pe+Math.imul(kt,It)|0,te=te+Math.imul(kt,Pt)|0,te=te+Math.imul(Tt,It)|0,ke=ke+Math.imul(Tt,Pt)|0,pe=pe+Math.imul(Nt,Hr)|0,te=te+Math.imul(Nt,Dr)|0,te=te+Math.imul(it,Hr)|0,ke=ke+Math.imul(it,Dr)|0,pe=pe+Math.imul(Je,Fr)|0,te=te+Math.imul(Je,di)|0,te=te+Math.imul(nt,Fr)|0,ke=ke+Math.imul(nt,di)|0,pe=pe+Math.imul(ye,Ii)|0,te=te+Math.imul(ye,Ci)|0,te=te+Math.imul(Ve,Ii)|0,ke=ke+Math.imul(Ve,Ci)|0,pe=pe+Math.imul(Me,ii)|0,te=te+Math.imul(Me,wi)|0,te=te+Math.imul(Ne,ii)|0,ke=ke+Math.imul(Ne,wi)|0;var yi=(Le+pe|0)+((te&8191)<<13)|0;Le=(ke+(te>>>13)|0)+(yi>>>26)|0,yi&=67108863,pe=Math.imul(Yt,br),te=Math.imul(Yt,Ut),te=te+Math.imul(hr,br)|0,ke=Math.imul(hr,Ut),pe=pe+Math.imul(rt,xe)|0,te=te+Math.imul(rt,Oe)|0,te=te+Math.imul($e,xe)|0,ke=ke+Math.imul($e,Oe)|0,pe=pe+Math.imul(vt,De)|0,te=te+Math.imul(vt,ct)|0,te=te+Math.imul(st,De)|0,ke=ke+Math.imul(st,ct)|0,pe=pe+Math.imul(Ae,fe)|0,te=te+Math.imul(Ae,de)|0,te=te+Math.imul(at,fe)|0,ke=ke+Math.imul(at,de)|0,pe=pe+Math.imul(Dt,It)|0,te=te+Math.imul(Dt,Pt)|0,te=te+Math.imul(Zt,It)|0,ke=ke+Math.imul(Zt,Pt)|0,pe=pe+Math.imul(kt,Hr)|0,te=te+Math.imul(kt,Dr)|0,te=te+Math.imul(Tt,Hr)|0,ke=ke+Math.imul(Tt,Dr)|0,pe=pe+Math.imul(Nt,Fr)|0,te=te+Math.imul(Nt,di)|0,te=te+Math.imul(it,Fr)|0,ke=ke+Math.imul(it,di)|0,pe=pe+Math.imul(Je,Ii)|0,te=te+Math.imul(Je,Ci)|0,te=te+Math.imul(nt,Ii)|0,ke=ke+Math.imul(nt,Ci)|0,pe=pe+Math.imul(ye,ii)|0,te=te+Math.imul(ye,wi)|0,te=te+Math.imul(Ve,ii)|0,ke=ke+Math.imul(Ve,wi)|0,pe=pe+Math.imul(Me,Bt)|0,te=te+Math.imul(Me,yt)|0,te=te+Math.imul(Ne,Bt)|0,ke=ke+Math.imul(Ne,yt)|0;var Ei=(Le+pe|0)+((te&8191)<<13)|0;Le=(ke+(te>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,pe=Math.imul(Yt,xe),te=Math.imul(Yt,Oe),te=te+Math.imul(hr,xe)|0,ke=Math.imul(hr,Oe),pe=pe+Math.imul(rt,De)|0,te=te+Math.imul(rt,ct)|0,te=te+Math.imul($e,De)|0,ke=ke+Math.imul($e,ct)|0,pe=pe+Math.imul(vt,fe)|0,te=te+Math.imul(vt,de)|0,te=te+Math.imul(st,fe)|0,ke=ke+Math.imul(st,de)|0,pe=pe+Math.imul(Ae,It)|0,te=te+Math.imul(Ae,Pt)|0,te=te+Math.imul(at,It)|0,ke=ke+Math.imul(at,Pt)|0,pe=pe+Math.imul(Dt,Hr)|0,te=te+Math.imul(Dt,Dr)|0,te=te+Math.imul(Zt,Hr)|0,ke=ke+Math.imul(Zt,Dr)|0,pe=pe+Math.imul(kt,Fr)|0,te=te+Math.imul(kt,di)|0,te=te+Math.imul(Tt,Fr)|0,ke=ke+Math.imul(Tt,di)|0,pe=pe+Math.imul(Nt,Ii)|0,te=te+Math.imul(Nt,Ci)|0,te=te+Math.imul(it,Ii)|0,ke=ke+Math.imul(it,Ci)|0,pe=pe+Math.imul(Je,ii)|0,te=te+Math.imul(Je,wi)|0,te=te+Math.imul(nt,ii)|0,ke=ke+Math.imul(nt,wi)|0,pe=pe+Math.imul(ye,Bt)|0,te=te+Math.imul(ye,yt)|0,te=te+Math.imul(Ve,Bt)|0,ke=ke+Math.imul(Ve,yt)|0;var Vi=(Le+pe|0)+((te&8191)<<13)|0;Le=(ke+(te>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,pe=Math.imul(Yt,De),te=Math.imul(Yt,ct),te=te+Math.imul(hr,De)|0,ke=Math.imul(hr,ct),pe=pe+Math.imul(rt,fe)|0,te=te+Math.imul(rt,de)|0,te=te+Math.imul($e,fe)|0,ke=ke+Math.imul($e,de)|0,pe=pe+Math.imul(vt,It)|0,te=te+Math.imul(vt,Pt)|0,te=te+Math.imul(st,It)|0,ke=ke+Math.imul(st,Pt)|0,pe=pe+Math.imul(Ae,Hr)|0,te=te+Math.imul(Ae,Dr)|0,te=te+Math.imul(at,Hr)|0,ke=ke+Math.imul(at,Dr)|0,pe=pe+Math.imul(Dt,Fr)|0,te=te+Math.imul(Dt,di)|0,te=te+Math.imul(Zt,Fr)|0,ke=ke+Math.imul(Zt,di)|0,pe=pe+Math.imul(kt,Ii)|0,te=te+Math.imul(kt,Ci)|0,te=te+Math.imul(Tt,Ii)|0,ke=ke+Math.imul(Tt,Ci)|0,pe=pe+Math.imul(Nt,ii)|0,te=te+Math.imul(Nt,wi)|0,te=te+Math.imul(it,ii)|0,ke=ke+Math.imul(it,wi)|0,pe=pe+Math.imul(Je,Bt)|0,te=te+Math.imul(Je,yt)|0,te=te+Math.imul(nt,Bt)|0,ke=ke+Math.imul(nt,yt)|0;var ti=(Le+pe|0)+((te&8191)<<13)|0;Le=(ke+(te>>>13)|0)+(ti>>>26)|0,ti&=67108863,pe=Math.imul(Yt,fe),te=Math.imul(Yt,de),te=te+Math.imul(hr,fe)|0,ke=Math.imul(hr,de),pe=pe+Math.imul(rt,It)|0,te=te+Math.imul(rt,Pt)|0,te=te+Math.imul($e,It)|0,ke=ke+Math.imul($e,Pt)|0,pe=pe+Math.imul(vt,Hr)|0,te=te+Math.imul(vt,Dr)|0,te=te+Math.imul(st,Hr)|0,ke=ke+Math.imul(st,Dr)|0,pe=pe+Math.imul(Ae,Fr)|0,te=te+Math.imul(Ae,di)|0,te=te+Math.imul(at,Fr)|0,ke=ke+Math.imul(at,di)|0,pe=pe+Math.imul(Dt,Ii)|0,te=te+Math.imul(Dt,Ci)|0,te=te+Math.imul(Zt,Ii)|0,ke=ke+Math.imul(Zt,Ci)|0,pe=pe+Math.imul(kt,ii)|0,te=te+Math.imul(kt,wi)|0,te=te+Math.imul(Tt,ii)|0,ke=ke+Math.imul(Tt,wi)|0,pe=pe+Math.imul(Nt,Bt)|0,te=te+Math.imul(Nt,yt)|0,te=te+Math.imul(it,Bt)|0,ke=ke+Math.imul(it,yt)|0;var en=(Le+pe|0)+((te&8191)<<13)|0;Le=(ke+(te>>>13)|0)+(en>>>26)|0,en&=67108863,pe=Math.imul(Yt,It),te=Math.imul(Yt,Pt),te=te+Math.imul(hr,It)|0,ke=Math.imul(hr,Pt),pe=pe+Math.imul(rt,Hr)|0,te=te+Math.imul(rt,Dr)|0,te=te+Math.imul($e,Hr)|0,ke=ke+Math.imul($e,Dr)|0,pe=pe+Math.imul(vt,Fr)|0,te=te+Math.imul(vt,di)|0,te=te+Math.imul(st,Fr)|0,ke=ke+Math.imul(st,di)|0,pe=pe+Math.imul(Ae,Ii)|0,te=te+Math.imul(Ae,Ci)|0,te=te+Math.imul(at,Ii)|0,ke=ke+Math.imul(at,Ci)|0,pe=pe+Math.imul(Dt,ii)|0,te=te+Math.imul(Dt,wi)|0,te=te+Math.imul(Zt,ii)|0,ke=ke+Math.imul(Zt,wi)|0,pe=pe+Math.imul(kt,Bt)|0,te=te+Math.imul(kt,yt)|0,te=te+Math.imul(Tt,Bt)|0,ke=ke+Math.imul(Tt,yt)|0;var Yr=(Le+pe|0)+((te&8191)<<13)|0;Le=(ke+(te>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,pe=Math.imul(Yt,Hr),te=Math.imul(Yt,Dr),te=te+Math.imul(hr,Hr)|0,ke=Math.imul(hr,Dr),pe=pe+Math.imul(rt,Fr)|0,te=te+Math.imul(rt,di)|0,te=te+Math.imul($e,Fr)|0,ke=ke+Math.imul($e,di)|0,pe=pe+Math.imul(vt,Ii)|0,te=te+Math.imul(vt,Ci)|0,te=te+Math.imul(st,Ii)|0,ke=ke+Math.imul(st,Ci)|0,pe=pe+Math.imul(Ae,ii)|0,te=te+Math.imul(Ae,wi)|0,te=te+Math.imul(at,ii)|0,ke=ke+Math.imul(at,wi)|0,pe=pe+Math.imul(Dt,Bt)|0,te=te+Math.imul(Dt,yt)|0,te=te+Math.imul(Zt,Bt)|0,ke=ke+Math.imul(Zt,yt)|0;var oi=(Le+pe|0)+((te&8191)<<13)|0;Le=(ke+(te>>>13)|0)+(oi>>>26)|0,oi&=67108863,pe=Math.imul(Yt,Fr),te=Math.imul(Yt,di),te=te+Math.imul(hr,Fr)|0,ke=Math.imul(hr,di),pe=pe+Math.imul(rt,Ii)|0,te=te+Math.imul(rt,Ci)|0,te=te+Math.imul($e,Ii)|0,ke=ke+Math.imul($e,Ci)|0,pe=pe+Math.imul(vt,ii)|0,te=te+Math.imul(vt,wi)|0,te=te+Math.imul(st,ii)|0,ke=ke+Math.imul(st,wi)|0,pe=pe+Math.imul(Ae,Bt)|0,te=te+Math.imul(Ae,yt)|0,te=te+Math.imul(at,Bt)|0,ke=ke+Math.imul(at,yt)|0;var Bi=(Le+pe|0)+((te&8191)<<13)|0;Le=(ke+(te>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,pe=Math.imul(Yt,Ii),te=Math.imul(Yt,Ci),te=te+Math.imul(hr,Ii)|0,ke=Math.imul(hr,Ci),pe=pe+Math.imul(rt,ii)|0,te=te+Math.imul(rt,wi)|0,te=te+Math.imul($e,ii)|0,ke=ke+Math.imul($e,wi)|0,pe=pe+Math.imul(vt,Bt)|0,te=te+Math.imul(vt,yt)|0,te=te+Math.imul(st,Bt)|0,ke=ke+Math.imul(st,yt)|0;var an=(Le+pe|0)+((te&8191)<<13)|0;Le=(ke+(te>>>13)|0)+(an>>>26)|0,an&=67108863,pe=Math.imul(Yt,ii),te=Math.imul(Yt,wi),te=te+Math.imul(hr,ii)|0,ke=Math.imul(hr,wi),pe=pe+Math.imul(rt,Bt)|0,te=te+Math.imul(rt,yt)|0,te=te+Math.imul($e,Bt)|0,ke=ke+Math.imul($e,yt)|0;var rn=(Le+pe|0)+((te&8191)<<13)|0;Le=(ke+(te>>>13)|0)+(rn>>>26)|0,rn&=67108863,pe=Math.imul(Yt,Bt),te=Math.imul(Yt,yt),te=te+Math.imul(hr,Bt)|0,ke=Math.imul(hr,yt);var Fi=(Le+pe|0)+((te&8191)<<13)|0;return Le=(ke+(te>>>13)|0)+(Fi>>>26)|0,Fi&=67108863,Ce[0]=Vt,Ce[1]=Wt,Ce[2]=_r,Ce[3]=Lr,Ce[4]=Ur,Ce[5]=Ir,Ce[6]=Gr,Ce[7]=jr,Ce[8]=yi,Ce[9]=Ei,Ce[10]=Vi,Ce[11]=ti,Ce[12]=en,Ce[13]=Yr,Ce[14]=oi,Ce[15]=Bi,Ce[16]=an,Ce[17]=rn,Ce[18]=Fi,Le!==0&&(Ce[19]=Le,re.length++),re};Math.imul||(L=T);function _(H,N,W){W.negative=N.negative^H.negative,W.length=H.length+N.length;for(var re=0,ae=0,be=0;be>>26)|0,ae+=Ce>>>26,Ce&=67108863}W.words[be]=Le,re=Ce,Ce=ae}return re!==0?W.words[be]=re:W.length--,W.strip()}function C(H,N,W){var re=new S;return re.mulp(H,N,W)}c.prototype.mulTo=function(N,W){var re,ae=this.length+N.length;return this.length===10&&N.length===10?re=L(this,N,W):ae<63?re=T(this,N,W):ae<1024?re=_(this,N,W):re=C(this,N,W),re};function S(H,N){this.x=H,this.y=N}S.prototype.makeRBT=function(N){for(var W=new Array(N),re=c.prototype._countBits(N)-1,ae=0;ae>=1;return ae},S.prototype.permute=function(N,W,re,ae,be,Ce){for(var Le=0;Le>>1)be++;return 1<>>13,re[2*Ce+1]=be&8191,be=be>>>13;for(Ce=2*W;Ce>=26,W+=ae/67108864|0,W+=be>>>26,this.words[re]=be&67108863}return W!==0&&(this.words[re]=W,this.length++),this},c.prototype.muln=function(N){return this.clone().imuln(N)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(N){var W=E(N);if(W.length===0)return new c(1);for(var re=this,ae=0;ae=0);var W=N%26,re=(N-W)/26,ae=67108863>>>26-W<<26-W,be;if(W!==0){var Ce=0;for(be=0;be>>26-W}Ce&&(this.words[be]=Ce,this.length++)}if(re!==0){for(be=this.length-1;be>=0;be--)this.words[be+re]=this.words[be];for(be=0;be=0);var ae;W?ae=(W-W%26)/26:ae=0;var be=N%26,Ce=Math.min((N-be)/26,this.length),Le=67108863^67108863>>>be<Ce)for(this.length-=Ce,te=0;te=0&&(ke!==0||te>=ae);te--){var Ee=this.words[te]|0;this.words[te]=ke<<26-be|Ee>>>be,ke=Ee&Le}return pe&&ke!==0&&(pe.words[pe.length++]=ke),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(N,W,re){return l(this.negative===0),this.iushrn(N,W,re)},c.prototype.shln=function(N){return this.clone().ishln(N)},c.prototype.ushln=function(N){return this.clone().iushln(N)},c.prototype.shrn=function(N){return this.clone().ishrn(N)},c.prototype.ushrn=function(N){return this.clone().iushrn(N)},c.prototype.testn=function(N){l(typeof N=="number"&&N>=0);var W=N%26,re=(N-W)/26,ae=1<=0);var W=N%26,re=(N-W)/26;if(l(this.negative===0,"imaskn works only with positive numbers"),this.length<=re)return this;if(W!==0&&re++,this.length=Math.min(re,this.length),W!==0){var ae=67108863^67108863>>>W<=67108864;W++)this.words[W]-=67108864,W===this.length-1?this.words[W+1]=1:this.words[W+1]++;return this.length=Math.max(this.length,W+1),this},c.prototype.isubn=function(N){if(l(typeof N=="number"),l(N<67108864),N<0)return this.iaddn(-N);if(this.negative!==0)return this.negative=0,this.iaddn(N),this.negative=1,this;if(this.words[0]-=N,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var W=0;W>26)-(pe/67108864|0),this.words[be+re]=Ce&67108863}for(;be>26,this.words[be+re]=Ce&67108863;if(Le===0)return this.strip();for(l(Le===-1),Le=0,be=0;be>26,this.words[be]=Ce&67108863;return this.negative=1,this.strip()},c.prototype._wordDiv=function(N,W){var re=this.length-N.length,ae=this.clone(),be=N,Ce=be.words[be.length-1]|0,Le=this._countBits(Ce);re=26-Le,re!==0&&(be=be.ushln(re),ae.iushln(re),Ce=be.words[be.length-1]|0);var pe=ae.length-be.length,te;if(W!=="mod"){te=new c(null),te.length=pe+1,te.words=new Array(te.length);for(var ke=0;ke=0;Me--){var Ne=(ae.words[be.length+Me]|0)*67108864+(ae.words[be.length+Me-1]|0);for(Ne=Math.min(Ne/Ce|0,67108863),ae._ishlnsubmul(be,Ne,Me);ae.negative!==0;)Ne--,ae.negative=0,ae._ishlnsubmul(be,1,Me),ae.isZero()||(ae.negative^=1);te&&(te.words[Me]=Ne)}return te&&te.strip(),ae.strip(),W!=="div"&&re!==0&&ae.iushrn(re),{div:te||null,mod:ae}},c.prototype.divmod=function(N,W,re){if(l(!N.isZero()),this.isZero())return{div:new c(0),mod:new c(0)};var ae,be,Ce;return this.negative!==0&&N.negative===0?(Ce=this.neg().divmod(N,W),W!=="mod"&&(ae=Ce.div.neg()),W!=="div"&&(be=Ce.mod.neg(),re&&be.negative!==0&&be.iadd(N)),{div:ae,mod:be}):this.negative===0&&N.negative!==0?(Ce=this.divmod(N.neg(),W),W!=="mod"&&(ae=Ce.div.neg()),{div:ae,mod:Ce.mod}):(this.negative&N.negative)!==0?(Ce=this.neg().divmod(N.neg(),W),W!=="div"&&(be=Ce.mod.neg(),re&&be.negative!==0&&be.isub(N)),{div:Ce.div,mod:be}):N.length>this.length||this.cmp(N)<0?{div:new c(0),mod:this}:N.length===1?W==="div"?{div:this.divn(N.words[0]),mod:null}:W==="mod"?{div:null,mod:new c(this.modn(N.words[0]))}:{div:this.divn(N.words[0]),mod:new c(this.modn(N.words[0]))}:this._wordDiv(N,W)},c.prototype.div=function(N){return this.divmod(N,"div",!1).div},c.prototype.mod=function(N){return this.divmod(N,"mod",!1).mod},c.prototype.umod=function(N){return this.divmod(N,"mod",!0).mod},c.prototype.divRound=function(N){var W=this.divmod(N);if(W.mod.isZero())return W.div;var re=W.div.negative!==0?W.mod.isub(N):W.mod,ae=N.ushrn(1),be=N.andln(1),Ce=re.cmp(ae);return Ce<0||be===1&&Ce===0?W.div:W.div.negative!==0?W.div.isubn(1):W.div.iaddn(1)},c.prototype.modn=function(N){l(N<=67108863);for(var W=(1<<26)%N,re=0,ae=this.length-1;ae>=0;ae--)re=(W*re+(this.words[ae]|0))%N;return re},c.prototype.idivn=function(N){l(N<=67108863);for(var W=0,re=this.length-1;re>=0;re--){var ae=(this.words[re]|0)+W*67108864;this.words[re]=ae/N|0,W=ae%N}return this.strip()},c.prototype.divn=function(N){return this.clone().idivn(N)},c.prototype.egcd=function(N){l(N.negative===0),l(!N.isZero());var W=this,re=N.clone();W.negative!==0?W=W.umod(N):W=W.clone();for(var ae=new c(1),be=new c(0),Ce=new c(0),Le=new c(1),pe=0;W.isEven()&&re.isEven();)W.iushrn(1),re.iushrn(1),++pe;for(var te=re.clone(),ke=W.clone();!W.isZero();){for(var Ee=0,Me=1;(W.words[0]&Me)===0&&Ee<26;++Ee,Me<<=1);if(Ee>0)for(W.iushrn(Ee);Ee-- >0;)(ae.isOdd()||be.isOdd())&&(ae.iadd(te),be.isub(ke)),ae.iushrn(1),be.iushrn(1);for(var Ne=0,Fe=1;(re.words[0]&Fe)===0&&Ne<26;++Ne,Fe<<=1);if(Ne>0)for(re.iushrn(Ne);Ne-- >0;)(Ce.isOdd()||Le.isOdd())&&(Ce.iadd(te),Le.isub(ke)),Ce.iushrn(1),Le.iushrn(1);W.cmp(re)>=0?(W.isub(re),ae.isub(Ce),be.isub(Le)):(re.isub(W),Ce.isub(ae),Le.isub(be))}return{a:Ce,b:Le,gcd:re.iushln(pe)}},c.prototype._invmp=function(N){l(N.negative===0),l(!N.isZero());var W=this,re=N.clone();W.negative!==0?W=W.umod(N):W=W.clone();for(var ae=new c(1),be=new c(0),Ce=re.clone();W.cmpn(1)>0&&re.cmpn(1)>0;){for(var Le=0,pe=1;(W.words[0]&pe)===0&&Le<26;++Le,pe<<=1);if(Le>0)for(W.iushrn(Le);Le-- >0;)ae.isOdd()&&ae.iadd(Ce),ae.iushrn(1);for(var te=0,ke=1;(re.words[0]&ke)===0&&te<26;++te,ke<<=1);if(te>0)for(re.iushrn(te);te-- >0;)be.isOdd()&&be.iadd(Ce),be.iushrn(1);W.cmp(re)>=0?(W.isub(re),ae.isub(be)):(re.isub(W),be.isub(ae))}var Ee;return W.cmpn(1)===0?Ee=ae:Ee=be,Ee.cmpn(0)<0&&Ee.iadd(N),Ee},c.prototype.gcd=function(N){if(this.isZero())return N.abs();if(N.isZero())return this.abs();var W=this.clone(),re=N.clone();W.negative=0,re.negative=0;for(var ae=0;W.isEven()&&re.isEven();ae++)W.iushrn(1),re.iushrn(1);do{for(;W.isEven();)W.iushrn(1);for(;re.isEven();)re.iushrn(1);var be=W.cmp(re);if(be<0){var Ce=W;W=re,re=Ce}else if(be===0||re.cmpn(1)===0)break;W.isub(re)}while(!0);return re.iushln(ae)},c.prototype.invm=function(N){return this.egcd(N).a.umod(N)},c.prototype.isEven=function(){return(this.words[0]&1)===0},c.prototype.isOdd=function(){return(this.words[0]&1)===1},c.prototype.andln=function(N){return this.words[0]&N},c.prototype.bincn=function(N){l(typeof N=="number");var W=N%26,re=(N-W)/26,ae=1<>>26,Le&=67108863,this.words[Ce]=Le}return be!==0&&(this.words[Ce]=be,this.length++),this},c.prototype.isZero=function(){return this.length===1&&this.words[0]===0},c.prototype.cmpn=function(N){var W=N<0;if(this.negative!==0&&!W)return-1;if(this.negative===0&&W)return 1;this.strip();var re;if(this.length>1)re=1;else{W&&(N=-N),l(N<=67108863,"Number is too big");var ae=this.words[0]|0;re=ae===N?0:aeN.length)return 1;if(this.length=0;re--){var ae=this.words[re]|0,be=N.words[re]|0;if(ae!==be){aebe&&(W=1);break}}return W},c.prototype.gtn=function(N){return this.cmpn(N)===1},c.prototype.gt=function(N){return this.cmp(N)===1},c.prototype.gten=function(N){return this.cmpn(N)>=0},c.prototype.gte=function(N){return this.cmp(N)>=0},c.prototype.ltn=function(N){return this.cmpn(N)===-1},c.prototype.lt=function(N){return this.cmp(N)===-1},c.prototype.lten=function(N){return this.cmpn(N)<=0},c.prototype.lte=function(N){return this.cmp(N)<=0},c.prototype.eqn=function(N){return this.cmpn(N)===0},c.prototype.eq=function(N){return this.cmp(N)===0},c.red=function(N){return new G(N)},c.prototype.toRed=function(N){return l(!this.red,"Already a number in reduction context"),l(this.negative===0,"red works only with positives"),N.convertTo(this)._forceRed(N)},c.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(N){return this.red=N,this},c.prototype.forceRed=function(N){return l(!this.red,"Already a number in reduction context"),this._forceRed(N)},c.prototype.redAdd=function(N){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,N)},c.prototype.redIAdd=function(N){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,N)},c.prototype.redSub=function(N){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,N)},c.prototype.redISub=function(N){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,N)},c.prototype.redShl=function(N){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,N)},c.prototype.redMul=function(N){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.mul(this,N)},c.prototype.redIMul=function(N){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.imul(this,N)},c.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(N){return l(this.red&&!N.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,N)};var m={k256:null,p224:null,p192:null,p25519:null};function P(H,N){this.name=H,this.p=new c(N,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}P.prototype._tmp=function(){var N=new c(null);return N.words=new Array(Math.ceil(this.n/13)),N},P.prototype.ireduce=function(N){var W=N,re;do this.split(W,this.tmp),W=this.imulK(W),W=W.iadd(this.tmp),re=W.bitLength();while(re>this.n);var ae=re0?W.isub(this.p):W.strip!==void 0?W.strip():W._strip(),W},P.prototype.split=function(N,W){N.iushrn(this.n,0,W)},P.prototype.imulK=function(N){return N.imul(this.k)};function A(){P.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(A,P),A.prototype.split=function(N,W){for(var re=4194303,ae=Math.min(N.length,9),be=0;be>>22,Ce=Le}Ce>>>=22,N.words[be-10]=Ce,Ce===0&&N.length>10?N.length-=10:N.length-=9},A.prototype.imulK=function(N){N.words[N.length]=0,N.words[N.length+1]=0,N.length+=2;for(var W=0,re=0;re>>=26,N.words[re]=be,W=ae}return W!==0&&(N.words[N.length++]=W),N},c._prime=function(N){if(m[N])return m[N];var W;if(N==="k256")W=new A;else if(N==="p224")W=new B;else if(N==="p192")W=new F;else if(N==="p25519")W=new U;else throw new Error("Unknown prime "+N);return m[N]=W,W};function G(H){if(typeof H=="string"){var N=c._prime(H);this.m=N.p,this.prime=N}else l(H.gtn(1),"modulus must be greater than 1"),this.m=H,this.prime=null}G.prototype._verify1=function(N){l(N.negative===0,"red works only with positives"),l(N.red,"red works only with red numbers")},G.prototype._verify2=function(N,W){l((N.negative|W.negative)===0,"red works only with positives"),l(N.red&&N.red===W.red,"red works only with red numbers")},G.prototype.imod=function(N){return this.prime?this.prime.ireduce(N)._forceRed(this):N.umod(this.m)._forceRed(this)},G.prototype.neg=function(N){return N.isZero()?N.clone():this.m.sub(N)._forceRed(this)},G.prototype.add=function(N,W){this._verify2(N,W);var re=N.add(W);return re.cmp(this.m)>=0&&re.isub(this.m),re._forceRed(this)},G.prototype.iadd=function(N,W){this._verify2(N,W);var re=N.iadd(W);return re.cmp(this.m)>=0&&re.isub(this.m),re},G.prototype.sub=function(N,W){this._verify2(N,W);var re=N.sub(W);return re.cmpn(0)<0&&re.iadd(this.m),re._forceRed(this)},G.prototype.isub=function(N,W){this._verify2(N,W);var re=N.isub(W);return re.cmpn(0)<0&&re.iadd(this.m),re},G.prototype.shl=function(N,W){return this._verify1(N),this.imod(N.ushln(W))},G.prototype.imul=function(N,W){return this._verify2(N,W),this.imod(N.imul(W))},G.prototype.mul=function(N,W){return this._verify2(N,W),this.imod(N.mul(W))},G.prototype.isqr=function(N){return this.imul(N,N.clone())},G.prototype.sqr=function(N){return this.mul(N,N)},G.prototype.sqrt=function(N){if(N.isZero())return N.clone();var W=this.m.andln(3);if(l(W%2===1),W===3){var re=this.m.add(new c(1)).iushrn(2);return this.pow(N,re)}for(var ae=this.m.subn(1),be=0;!ae.isZero()&&ae.andln(1)===0;)be++,ae.iushrn(1);l(!ae.isZero());var Ce=new c(1).toRed(this),Le=Ce.redNeg(),pe=this.m.subn(1).iushrn(1),te=this.m.bitLength();for(te=new c(2*te*te).toRed(this);this.pow(te,pe).cmp(Le)!==0;)te.redIAdd(Le);for(var ke=this.pow(te,ae),Ee=this.pow(N,ae.addn(1).iushrn(1)),Me=this.pow(N,ae),Ne=be;Me.cmp(Ce)!==0;){for(var Fe=Me,ye=0;Fe.cmp(Ce)!==0;ye++)Fe=Fe.redSqr();l(ye=0;be--){for(var ke=W.words[be],Ee=te-1;Ee>=0;Ee--){var Me=ke>>Ee&1;if(Ce!==ae[0]&&(Ce=this.sqr(Ce)),Me===0&&Le===0){pe=0;continue}Le<<=1,Le|=Me,pe++,!(pe!==re&&(be!==0||Ee!==0))&&(Ce=this.mul(Ce,ae[Le]),pe=0,Le=0)}te=26}return Ce},G.prototype.convertTo=function(N){var W=N.umod(this.m);return W===N?W.clone():W},G.prototype.convertFrom=function(N){var W=N.clone();return W.red=null,W},c.mont=function(N){return new j(N)};function j(H){G.call(this,H),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new c(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}f(j,G),j.prototype.convertTo=function(N){return this.imod(N.ushln(this.shift))},j.prototype.convertFrom=function(N){var W=this.imod(N.mul(this.rinv));return W.red=null,W},j.prototype.imul=function(N,W){if(N.isZero()||W.isZero())return N.words[0]=0,N.length=1,N;var re=N.imul(W),ae=re.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),be=re.isub(ae).iushrn(this.shift),Ce=be;return be.cmp(this.m)>=0?Ce=be.isub(this.m):be.cmpn(0)<0&&(Ce=be.iadd(this.m)),Ce._forceRed(this)},j.prototype.mul=function(N,W){if(N.isZero()||W.isZero())return new c(0)._forceRed(this);var re=N.mul(W),ae=re.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),be=re.isub(ae).iushrn(this.shift),Ce=be;return be.cmp(this.m)>=0?Ce=be.isub(this.m):be.cmpn(0)<0&&(Ce=be.iadd(this.m)),Ce._forceRed(this)},j.prototype.invm=function(N){var W=this.imod(N._invmp(this.m).mul(this.r2));return W._forceRed(this)}}(i,this)},6204:function(i){"use strict";i.exports=a;function a(o){var s,u,l,f=o.length,c=0;for(s=0;s>>1;if(!(S<=0)){var m,P=s.mallocDouble(2*S*_),A=s.mallocInt32(_);if(_=c(k,S,P,A),_>0){if(S===1&&L)u.init(_),m=u.sweepComplete(S,T,0,_,P,A,0,_,P,A);else{var B=s.mallocDouble(2*S*C),F=s.mallocInt32(C);C=c(E,S,B,F),C>0&&(u.init(_+C),S===1?m=u.sweepBipartite(S,T,0,_,P,A,0,C,B,F):m=l(S,T,L,_,P,A,C,B,F),s.free(B),s.free(F))}s.free(P),s.free(A)}return m}}}var d;function p(k,E){d.push([k,E])}function x(k){return d=[],h(k,k,p,!0),d}function b(k,E){return d=[],h(k,E,p,!1),d}function v(k,E,T){switch(arguments.length){case 1:return x(k);case 2:return typeof E=="function"?h(k,k,E,!0):b(k,E);case 3:return h(k,E,T,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455:function(i,a){"use strict";function o(){function l(h,d,p,x,b,v,k,E,T,L,_){for(var C=2*h,S=x,m=C*x;ST-E?l(h,d,p,x,b,v,k,E,T,L,_):f(h,d,p,x,b,v,k,E,T,L,_)}return c}function s(){function l(p,x,b,v,k,E,T,L,_,C,S){for(var m=2*p,P=v,A=m*v;PC-_?v?l(p,x,b,k,E,T,L,_,C,S,m):f(p,x,b,k,E,T,L,_,C,S,m):v?c(p,x,b,k,E,T,L,_,C,S,m):h(p,x,b,k,E,T,L,_,C,S,m)}return d}function u(l){return l?o():s()}a.partial=u(!1),a.full=u(!0)},7150:function(i,a,o){"use strict";i.exports=H;var s=o(1888),u=o(8828),l=o(2455),f=l.partial,c=l.full,h=o(855),d=o(3545),p=o(8105),x=128,b=1<<22,v=1<<22,k=p("!(lo>=p0)&&!(p1>=hi)"),E=p("lo===p0"),T=p("lo0;){ke-=1;var Ne=ke*S,Fe=A[Ne],ye=A[Ne+1],Ve=A[Ne+2],ce=A[Ne+3],Je=A[Ne+4],nt=A[Ne+5],gt=ke*m,Nt=B[gt],it=B[gt+1],Ye=nt&1,kt=!!(nt&16),Tt=be,St=Ce,Dt=pe,Zt=te;if(Ye&&(Tt=pe,St=te,Dt=be,Zt=Ce),!(nt&2&&(Ve=T(N,Fe,ye,Ve,Tt,St,it),ye>=Ve))&&!(nt&4&&(ye=L(N,Fe,ye,Ve,Tt,St,Nt),ye>=Ve))){var Et=Ve-ye,Ae=Je-ce;if(kt){if(N*Et*(Et+Ae)p&&b[C+d]>L;--_,C-=k){for(var S=C,m=C+k,P=0;P>>1,L=2*h,_=T,C=b[L*T+d];k=B?(_=A,C=B):P>=U?(_=m,C=P):(_=F,C=U):B>=U?(_=A,C=B):U>=P?(_=m,C=P):(_=F,C=U);for(var H=L*(E-1),N=L*_,G=0;G=p0)&&!(p1>=hi)":d};function o(p){return a[p]}function s(p,x,b,v,k,E,T){for(var L=2*p,_=L*b,C=_,S=b,m=x,P=p+x,A=b;v>A;++A,_+=L){var B=k[_+m];if(B===T)if(S===A)S+=1,C+=L;else{for(var F=0;L>F;++F){var U=k[_+F];k[_+F]=k[C],k[C++]=U}var G=E[A];E[A]=E[S],E[S++]=G}}return S}function u(p,x,b,v,k,E,T){for(var L=2*p,_=L*b,C=_,S=b,m=x,P=p+x,A=b;v>A;++A,_+=L){var B=k[_+m];if(BF;++F){var U=k[_+F];k[_+F]=k[C],k[C++]=U}var G=E[A];E[A]=E[S],E[S++]=G}}return S}function l(p,x,b,v,k,E,T){for(var L=2*p,_=L*b,C=_,S=b,m=x,P=p+x,A=b;v>A;++A,_+=L){var B=k[_+P];if(B<=T)if(S===A)S+=1,C+=L;else{for(var F=0;L>F;++F){var U=k[_+F];k[_+F]=k[C],k[C++]=U}var G=E[A];E[A]=E[S],E[S++]=G}}return S}function f(p,x,b,v,k,E,T){for(var L=2*p,_=L*b,C=_,S=b,m=x,P=p+x,A=b;v>A;++A,_+=L){var B=k[_+P];if(B<=T)if(S===A)S+=1,C+=L;else{for(var F=0;L>F;++F){var U=k[_+F];k[_+F]=k[C],k[C++]=U}var G=E[A];E[A]=E[S],E[S++]=G}}return S}function c(p,x,b,v,k,E,T){for(var L=2*p,_=L*b,C=_,S=b,m=x,P=p+x,A=b;v>A;++A,_+=L){var B=k[_+m],F=k[_+P];if(B<=T&&T<=F)if(S===A)S+=1,C+=L;else{for(var U=0;L>U;++U){var G=k[_+U];k[_+U]=k[C],k[C++]=G}var j=E[A];E[A]=E[S],E[S++]=j}}return S}function h(p,x,b,v,k,E,T){for(var L=2*p,_=L*b,C=_,S=b,m=x,P=p+x,A=b;v>A;++A,_+=L){var B=k[_+m],F=k[_+P];if(BU;++U){var G=k[_+U];k[_+U]=k[C],k[C++]=G}var j=E[A];E[A]=E[S],E[S++]=j}}return S}function d(p,x,b,v,k,E,T,L){for(var _=2*p,C=_*b,S=C,m=b,P=x,A=p+x,B=b;v>B;++B,C+=_){var F=k[C+P],U=k[C+A];if(!(F>=T)&&!(L>=U))if(m===B)m+=1,S+=_;else{for(var G=0;_>G;++G){var j=k[C+G];k[C+G]=k[S],k[S++]=j}var H=E[B];E[B]=E[m],E[m++]=H}}return m}},4192:function(i){"use strict";i.exports=o;var a=32;function o(x,b){b<=4*a?s(0,b-1,x):p(0,b-1,x)}function s(x,b,v){for(var k=2*(x+1),E=x+1;E<=b;++E){for(var T=v[k++],L=v[k++],_=E,C=k-2;_-- >x;){var S=v[C-2],m=v[C-1];if(Sv[b+1]:!0}function d(x,b,v,k){x*=2;var E=k[x];return E>1,_=L-k,C=L+k,S=E,m=_,P=L,A=C,B=T,F=x+1,U=b-1,G=0;h(S,m,v)&&(G=S,S=m,m=G),h(A,B,v)&&(G=A,A=B,B=G),h(S,P,v)&&(G=S,S=P,P=G),h(m,P,v)&&(G=m,m=P,P=G),h(S,A,v)&&(G=S,S=A,A=G),h(P,A,v)&&(G=P,P=A,A=G),h(m,B,v)&&(G=m,m=B,B=G),h(m,P,v)&&(G=m,m=P,P=G),h(A,B,v)&&(G=A,A=B,B=G);for(var j=v[2*m],H=v[2*m+1],N=v[2*A],W=v[2*A+1],re=2*S,ae=2*P,be=2*B,Ce=2*E,Le=2*L,pe=2*T,te=0;te<2;++te){var ke=v[re+te],Ee=v[ae+te],Me=v[be+te];v[Ce+te]=ke,v[Le+te]=Ee,v[pe+te]=Me}l(_,x,v),l(C,b,v);for(var Ne=F;Ne<=U;++Ne)if(d(Ne,j,H,v))Ne!==F&&u(Ne,F,v),++F;else if(!d(Ne,N,W,v))for(;;)if(d(U,N,W,v)){d(U,j,H,v)?(f(Ne,F,U,v),++F,--U):(u(Ne,U,v),--U);break}else{if(--U>>1;l(k,Ee);for(var Me=0,Ne=0,Le=0;Le=f)Fe=Fe-f|0,T(p,x,Ne--,Fe);else if(Fe>=0)T(h,d,Me--,Fe);else if(Fe<=-f){Fe=-Fe-f|0;for(var ye=0;ye>>1;l(k,Ee);for(var Me=0,Ne=0,Fe=0,Le=0;Le>1===k[2*Le+3]>>1&&(Ve=2,Le+=1),ye<0){for(var ce=-(ye>>1)-1,Je=0;Je>1)-1;Ve===0?T(h,d,Me--,ce):Ve===1?T(p,x,Ne--,ce):Ve===2&&T(b,v,Fe--,ce)}}}function S(P,A,B,F,U,G,j,H,N,W,re,ae){var be=0,Ce=2*P,Le=A,pe=A+P,te=1,ke=1;F?ke=f:te=f;for(var Ee=U;Ee>>1;l(k,ye);for(var Ve=0,Ee=0;Ee=f?(Je=!F,Me-=f):(Je=!!F,Me-=1),Je)L(h,d,Ve++,Me);else{var nt=ae[Me],gt=Ce*Me,Nt=re[gt+A+1],it=re[gt+A+1+P];e:for(var Ye=0;Ye>>1;l(k,Me);for(var Ne=0,pe=0;pe=f)h[Ne++]=te-f;else{te-=1;var ye=re[te],Ve=be*te,ce=W[Ve+A+1],Je=W[Ve+A+1+P];e:for(var nt=0;nt=0;--nt)if(h[nt]===te){for(var Ye=nt+1;Ye0;){for(var E=d.pop(),b=d.pop(),T=-1,L=-1,v=x[b],C=1;C=0||(h.flip(b,E),l(c,h,d,T,b,L),l(c,h,d,b,L,T),l(c,h,d,L,E,T),l(c,h,d,E,T,L))}}},5023:function(i,a,o){"use strict";var s=o(2478);i.exports=d;function u(p,x,b,v,k,E,T){this.cells=p,this.neighbor=x,this.flags=v,this.constraint=b,this.active=k,this.next=E,this.boundary=T}var l=u.prototype;function f(p,x){return p[0]-x[0]||p[1]-x[1]||p[2]-x[2]}l.locate=function(){var p=[0,0,0];return function(x,b,v){var k=x,E=b,T=v;return b0||T.length>0;){for(;E.length>0;){var m=E.pop();if(L[m]!==-k){L[m]=k;for(var P=_[m],A=0;A<3;++A){var B=S[3*m+A];B>=0&&L[B]===0&&(C[3*m+A]?T.push(B):(E.push(B),L[B]=k))}}}var F=T;T=E,E=F,T.length=0,k=-k}var U=h(_,L,x);return b?U.concat(v.boundary):U}},8902:function(i,a,o){"use strict";var s=o(2478),u=o(3250)[3],l=0,f=1,c=2;i.exports=T;function h(L,_,C,S,m){this.a=L,this.b=_,this.idx=C,this.lowerIds=S,this.upperIds=m}function d(L,_,C,S){this.a=L,this.b=_,this.type=C,this.idx=S}function p(L,_){var C=L.a[0]-_.a[0]||L.a[1]-_.a[1]||L.type-_.type;return C||L.type!==l&&(C=u(L.a,L.b,_.b),C)?C:L.idx-_.idx}function x(L,_){return u(L.a,L.b,_)}function b(L,_,C,S,m){for(var P=s.lt(_,S,x),A=s.gt(_,S,x),B=P;B1&&u(C[U[j-2]],C[U[j-1]],S)>0;)L.push([U[j-1],U[j-2],m]),j-=1;U.length=j,U.push(m);for(var G=F.upperIds,j=G.length;j>1&&u(C[G[j-2]],C[G[j-1]],S)<0;)L.push([G[j-2],G[j-1],m]),j-=1;G.length=j,G.push(m)}}function v(L,_){var C;return L.a[0]<_.a[0]?C=u(L.a,L.b,_.a):C=u(_.b,_.a,L.a),C||(_.b[0]F[0]&&m.push(new d(F,B,c,P),new d(B,F,f,P))}m.sort(p);for(var U=m[0].a[0]-(1+Math.abs(m[0].a[0]))*Math.pow(2,-52),G=[new h([U,1],[U,0],-1,[],[],[],[])],j=[],P=0,H=m.length;P=0}}(),l.removeTriangle=function(h,d,p){var x=this.stars;f(x[h],d,p),f(x[d],p,h),f(x[p],h,d)},l.addTriangle=function(h,d,p){var x=this.stars;x[h].push(d,p),x[d].push(p,h),x[p].push(h,d)},l.opposite=function(h,d){for(var p=this.stars[d],x=1,b=p.length;x=0;--N){var ke=j[N];W=ke[0];var Ee=U[W],Me=Ee[0],Ne=Ee[1],Fe=F[Me],ye=F[Ne];if((Fe[0]-ye[0]||Fe[1]-ye[1])<0){var Ve=Me;Me=Ne,Ne=Ve}Ee[0]=Me;var ce=Ee[1]=ke[1],Je;for(H&&(Je=Ee[2]);N>0&&j[N-1][0]===W;){var ke=j[--N],nt=ke[1];H?U.push([ce,nt,Je]):U.push([ce,nt]),ce=nt}H?U.push([ce,Ne,Je]):U.push([ce,Ne])}return re}function _(F,U,G){for(var j=U.length,H=new s(j),N=[],W=0;WU[2]?1:0)}function m(F,U,G){if(F.length!==0){if(U)for(var j=0;j0||W.length>0}function B(F,U,G){var j;if(G){j=U;for(var H=new Array(U.length),N=0;NL+1)throw new Error(E+" map requires nshades to be at least size "+k.length);Array.isArray(d.alpha)?d.alpha.length!==2?_=[1,1]:_=d.alpha.slice():typeof d.alpha=="number"?_=[d.alpha,d.alpha]:_=[1,1],p=k.map(function(B){return Math.round(B.index*L)}),_[0]=Math.min(Math.max(_[0],0),1),_[1]=Math.min(Math.max(_[1],0),1);var S=k.map(function(B,F){var U=k[F].index,G=k[F].rgb.slice();return G.length===4&&G[3]>=0&&G[3]<=1||(G[3]=_[0]+(_[1]-_[0])*U),G}),m=[];for(C=0;C=0}function d(p,x,b,v){var k=s(x,b,v);if(k===0){var E=u(s(p,x,b)),T=u(s(p,x,v));if(E===T){if(E===0){var L=h(p,x,b),_=h(p,x,v);return L===_?0:L?1:-1}return 0}else{if(T===0)return E>0||h(p,x,v)?-1:1;if(E===0)return T>0||h(p,x,b)?1:-1}return u(T-E)}var C=s(p,x,b);if(C>0)return k>0&&s(p,x,v)>0?1:-1;if(C<0)return k>0||s(p,x,v)>0?1:-1;var S=s(p,x,v);return S>0||h(p,x,b)?1:-1}},8572:function(i){"use strict";i.exports=function(o){return o<0?-1:o>0?1:0}},8507:function(i){i.exports=s;var a=Math.min;function o(u,l){return u-l}function s(u,l){var f=u.length,c=u.length-l.length;if(c)return c;switch(f){case 0:return 0;case 1:return u[0]-l[0];case 2:return u[0]+u[1]-l[0]-l[1]||a(u[0],u[1])-a(l[0],l[1]);case 3:var h=u[0]+u[1],d=l[0]+l[1];if(c=h+u[2]-(d+l[2]),c)return c;var p=a(u[0],u[1]),x=a(l[0],l[1]);return a(p,u[2])-a(x,l[2])||a(p+u[2],h)-a(x+l[2],d);case 4:var b=u[0],v=u[1],k=u[2],E=u[3],T=l[0],L=l[1],_=l[2],C=l[3];return b+v+k+E-(T+L+_+C)||a(b,v,k,E)-a(T,L,_,C,T)||a(b+v,b+k,b+E,v+k,v+E,k+E)-a(T+L,T+_,T+C,L+_,L+C,_+C)||a(b+v+k,b+v+E,b+k+E,v+k+E)-a(T+L+_,T+L+C,T+_+C,L+_+C);default:for(var S=u.slice().sort(o),m=l.slice().sort(o),P=0;Po[u][0]&&(u=l);return su?[[u],[s]]:[[s]]}},4750:function(i,a,o){"use strict";i.exports=u;var s=o(3090);function u(l){var f=s(l),c=f.length;if(c<=2)return[];for(var h=new Array(c),d=f[c-1],p=0;p=d[T]&&(E+=1);v[k]=E}}return h}function c(h,d){try{return s(h,!0)}catch(v){var p=u(h);if(p.length<=d)return[];var x=l(h,p),b=s(x,!0);return f(b,p)}}},4769:function(i){"use strict";function a(s,u,l,f,c,h){var d=6*c*c-6*c,p=3*c*c-4*c+1,x=-6*c*c+6*c,b=3*c*c-2*c;if(s.length){h||(h=new Array(s.length));for(var v=s.length-1;v>=0;--v)h[v]=d*s[v]+p*u[v]+x*l[v]+b*f[v];return h}return d*s+p*u+x*l[v]+b*f}function o(s,u,l,f,c,h){var d=c-1,p=c*c,x=d*d,b=(1+2*c)*x,v=c*x,k=p*(3-2*c),E=p*d;if(s.length){h||(h=new Array(s.length));for(var T=s.length-1;T>=0;--T)h[T]=b*s[T]+v*u[T]+k*l[T]+E*f[T];return h}return b*s+v*u+k*l+E*f}i.exports=o,i.exports.derivative=a},7642:function(i,a,o){"use strict";var s=o(8954),u=o(1682);i.exports=h;function l(d,p){this.point=d,this.index=p}function f(d,p){for(var x=d.point,b=p.point,v=x.length,k=0;k=2)return!1;G[H]=N}return!0}):U=U.filter(function(G){for(var j=0;j<=b;++j){var H=P[G[j]];if(H<0)return!1;G[j]=H}return!0}),b&1)for(var E=0;E>>31},i.exports.exponent=function(k){var E=i.exports.hi(k);return(E<<1>>>21)-1023},i.exports.fraction=function(k){var E=i.exports.lo(k),T=i.exports.hi(k),L=T&(1<<20)-1;return T&2146435072&&(L+=1048576),[E,L]},i.exports.denormalized=function(k){var E=i.exports.hi(k);return!(E&2146435072)}},1338:function(i){"use strict";function a(u,l,f){var c=u[f]|0;if(c<=0)return[];var h=new Array(c),d;if(f===u.length-1)for(d=0;d0)return o(u|0,l);break;case"object":if(typeof u.length=="number")return a(u,l,0);break}return[]}i.exports=s},3134:function(i,a,o){"use strict";i.exports=u;var s=o(1682);function u(l,f){var c=l.length;if(typeof f!="number"){f=0;for(var h=0;h=b-1)for(var C=E.length-1,m=p-x[b-1],S=0;S=b-1)for(var _=E.length-1,C=p-x[b-1],S=0;S=0;--b)if(p[--x])return!1;return!0},c.jump=function(p){var x=this.lastT(),b=this.dimension;if(!(p0;--S)v.push(l(L[S-1],_[S-1],arguments[S])),k.push(0)}},c.push=function(p){var x=this.lastT(),b=this.dimension;if(!(p1e-6?1/T:0;this._time.push(p);for(var m=b;m>0;--m){var P=l(_[m-1],C[m-1],arguments[m]);v.push(P),k.push((P-v[E++])*S)}}},c.set=function(p){var x=this.dimension;if(!(p0;--L)b.push(l(E[L-1],T[L-1],arguments[L])),v.push(0)}},c.move=function(p){var x=this.lastT(),b=this.dimension;if(!(p<=x||arguments.length!==b+1)){var v=this._state,k=this._velocity,E=v.length-this.dimension,T=this.bounds,L=T[0],_=T[1],C=p-x,S=C>1e-6?1/C:0;this._time.push(p);for(var m=b;m>0;--m){var P=arguments[m];v.push(l(L[m-1],_[m-1],v[E++]+P)),k.push(P*S)}}},c.idle=function(p){var x=this.lastT();if(!(p=0;--S)v.push(l(L[S],_[S],v[E]+C*k[E])),k.push(0),E+=1}};function h(p){for(var x=new Array(p),b=0;b=0;--F){var m=P[F];A[F]<=0?P[F]=new s(m._color,m.key,m.value,P[F+1],m.right,m._count+1):P[F]=new s(m._color,m.key,m.value,m.left,P[F+1],m._count+1)}for(var F=P.length-1;F>1;--F){var U=P[F-1],m=P[F];if(U._color===o||m._color===o)break;var G=P[F-2];if(G.left===U)if(U.left===m){var j=G.right;if(j&&j._color===a)U._color=o,G.right=l(o,j),G._color=a,F-=1;else{if(G._color=a,G.left=U.right,U._color=o,U.right=G,P[F-2]=U,P[F-1]=m,f(G),f(U),F>=3){var H=P[F-3];H.left===G?H.left=U:H.right=U}break}}else{var j=G.right;if(j&&j._color===a)U._color=o,G.right=l(o,j),G._color=a,F-=1;else{if(U.right=m.left,G._color=a,G.left=m.right,m._color=o,m.left=U,m.right=G,P[F-2]=m,P[F-1]=U,f(G),f(U),f(m),F>=3){var H=P[F-3];H.left===G?H.left=m:H.right=m}break}}else if(U.right===m){var j=G.left;if(j&&j._color===a)U._color=o,G.left=l(o,j),G._color=a,F-=1;else{if(G._color=a,G.right=U.left,U._color=o,U.left=G,P[F-2]=U,P[F-1]=m,f(G),f(U),F>=3){var H=P[F-3];H.right===G?H.right=U:H.left=U}break}}else{var j=G.left;if(j&&j._color===a)U._color=o,G.left=l(o,j),G._color=a,F-=1;else{if(U.left=m.right,G._color=a,G.right=m.left,m._color=o,m.right=U,m.left=G,P[F-2]=m,P[F-1]=U,f(G),f(U),f(m),F>=3){var H=P[F-3];H.right===G?H.right=m:H.left=m}break}}}return P[0]._color=o,new c(S,P[0])};function d(_,C){if(C.left){var S=d(_,C.left);if(S)return S}var S=_(C.key,C.value);if(S)return S;if(C.right)return d(_,C.right)}function p(_,C,S,m){var P=C(_,m.key);if(P<=0){if(m.left){var A=p(_,C,S,m.left);if(A)return A}var A=S(m.key,m.value);if(A)return A}if(m.right)return p(_,C,S,m.right)}function x(_,C,S,m,P){var A=S(_,P.key),B=S(C,P.key),F;if(A<=0&&(P.left&&(F=x(_,C,S,m,P.left),F)||B>0&&(F=m(P.key,P.value),F)))return F;if(B>0&&P.right)return x(_,C,S,m,P.right)}h.forEach=function(C,S,m){if(this.root)switch(arguments.length){case 1:return d(C,this.root);case 2:return p(S,this._compare,C,this.root);case 3:return this._compare(S,m)>=0?void 0:x(S,m,this._compare,C,this.root)}},Object.defineProperty(h,"begin",{get:function(){for(var _=[],C=this.root;C;)_.push(C),C=C.left;return new b(this,_)}}),Object.defineProperty(h,"end",{get:function(){for(var _=[],C=this.root;C;)_.push(C),C=C.right;return new b(this,_)}}),h.at=function(_){if(_<0)return new b(this,[]);for(var C=this.root,S=[];;){if(S.push(C),C.left){if(_=C.right._count)break;C=C.right}else break}return new b(this,[])},h.ge=function(_){for(var C=this._compare,S=this.root,m=[],P=0;S;){var A=C(_,S.key);m.push(S),A<=0&&(P=m.length),A<=0?S=S.left:S=S.right}return m.length=P,new b(this,m)},h.gt=function(_){for(var C=this._compare,S=this.root,m=[],P=0;S;){var A=C(_,S.key);m.push(S),A<0&&(P=m.length),A<0?S=S.left:S=S.right}return m.length=P,new b(this,m)},h.lt=function(_){for(var C=this._compare,S=this.root,m=[],P=0;S;){var A=C(_,S.key);m.push(S),A>0&&(P=m.length),A<=0?S=S.left:S=S.right}return m.length=P,new b(this,m)},h.le=function(_){for(var C=this._compare,S=this.root,m=[],P=0;S;){var A=C(_,S.key);m.push(S),A>=0&&(P=m.length),A<0?S=S.left:S=S.right}return m.length=P,new b(this,m)},h.find=function(_){for(var C=this._compare,S=this.root,m=[];S;){var P=C(_,S.key);if(m.push(S),P===0)return new b(this,m);P<=0?S=S.left:S=S.right}return new b(this,[])},h.remove=function(_){var C=this.find(_);return C?C.remove():this},h.get=function(_){for(var C=this._compare,S=this.root;S;){var m=C(_,S.key);if(m===0)return S.value;m<=0?S=S.left:S=S.right}};function b(_,C){this.tree=_,this._stack=C}var v=b.prototype;Object.defineProperty(v,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(v,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),v.clone=function(){return new b(this.tree,this._stack.slice())};function k(_,C){_.key=C.key,_.value=C.value,_.left=C.left,_.right=C.right,_._color=C._color,_._count=C._count}function E(_){for(var C,S,m,P,A=_.length-1;A>=0;--A){if(C=_[A],A===0){C._color=o;return}if(S=_[A-1],S.left===C){if(m=S.right,m.right&&m.right._color===a){if(m=S.right=u(m),P=m.right=u(m.right),S.right=m.left,m.left=S,m.right=P,m._color=S._color,C._color=o,S._color=o,P._color=o,f(S),f(m),A>1){var B=_[A-2];B.left===S?B.left=m:B.right=m}_[A-1]=m;return}else if(m.left&&m.left._color===a){if(m=S.right=u(m),P=m.left=u(m.left),S.right=P.left,m.left=P.right,P.left=S,P.right=m,P._color=S._color,S._color=o,m._color=o,C._color=o,f(S),f(m),f(P),A>1){var B=_[A-2];B.left===S?B.left=P:B.right=P}_[A-1]=P;return}if(m._color===o)if(S._color===a){S._color=o,S.right=l(a,m);return}else{S.right=l(a,m);continue}else{if(m=u(m),S.right=m.left,m.left=S,m._color=S._color,S._color=a,f(S),f(m),A>1){var B=_[A-2];B.left===S?B.left=m:B.right=m}_[A-1]=m,_[A]=S,A+1<_.length?_[A+1]=C:_.push(C),A=A+2}}else{if(m=S.left,m.left&&m.left._color===a){if(m=S.left=u(m),P=m.left=u(m.left),S.left=m.right,m.right=S,m.left=P,m._color=S._color,C._color=o,S._color=o,P._color=o,f(S),f(m),A>1){var B=_[A-2];B.right===S?B.right=m:B.left=m}_[A-1]=m;return}else if(m.right&&m.right._color===a){if(m=S.left=u(m),P=m.right=u(m.right),S.left=P.right,m.right=P.left,P.right=S,P.left=m,P._color=S._color,S._color=o,m._color=o,C._color=o,f(S),f(m),f(P),A>1){var B=_[A-2];B.right===S?B.right=P:B.left=P}_[A-1]=P;return}if(m._color===o)if(S._color===a){S._color=o,S.left=l(a,m);return}else{S.left=l(a,m);continue}else{if(m=u(m),S.left=m.right,m.right=S,m._color=S._color,S._color=a,f(S),f(m),A>1){var B=_[A-2];B.right===S?B.right=m:B.left=m}_[A-1]=m,_[A]=S,A+1<_.length?_[A+1]=C:_.push(C),A=A+2}}}}v.remove=function(){var _=this._stack;if(_.length===0)return this.tree;var C=new Array(_.length),S=_[_.length-1];C[C.length-1]=new s(S._color,S.key,S.value,S.left,S.right,S._count);for(var m=_.length-2;m>=0;--m){var S=_[m];S.left===_[m+1]?C[m]=new s(S._color,S.key,S.value,C[m+1],S.right,S._count):C[m]=new s(S._color,S.key,S.value,S.left,C[m+1],S._count)}if(S=C[C.length-1],S.left&&S.right){var P=C.length;for(S=S.left;S.right;)C.push(S),S=S.right;var A=C[P-1];C.push(new s(S._color,A.key,A.value,S.left,S.right,S._count)),C[P-1].key=S.key,C[P-1].value=S.value;for(var m=C.length-2;m>=P;--m)S=C[m],C[m]=new s(S._color,S.key,S.value,S.left,C[m+1],S._count);C[P-1].left=C[P]}if(S=C[C.length-1],S._color===a){var B=C[C.length-2];B.left===S?B.left=null:B.right===S&&(B.right=null),C.pop();for(var m=0;m0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(v,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(v,"index",{get:function(){var _=0,C=this._stack;if(C.length===0){var S=this.tree.root;return S?S._count:0}else C[C.length-1].left&&(_=C[C.length-1].left._count);for(var m=C.length-2;m>=0;--m)C[m+1]===C[m].right&&(++_,C[m].left&&(_+=C[m].left._count));return _},enumerable:!0}),v.next=function(){var _=this._stack;if(_.length!==0){var C=_[_.length-1];if(C.right)for(C=C.right;C;)_.push(C),C=C.left;else for(_.pop();_.length>0&&_[_.length-1].right===C;)C=_[_.length-1],_.pop()}},Object.defineProperty(v,"hasNext",{get:function(){var _=this._stack;if(_.length===0)return!1;if(_[_.length-1].right)return!0;for(var C=_.length-1;C>0;--C)if(_[C-1].left===_[C])return!0;return!1}}),v.update=function(_){var C=this._stack;if(C.length===0)throw new Error("Can't update empty node!");var S=new Array(C.length),m=C[C.length-1];S[S.length-1]=new s(m._color,m.key,_,m.left,m.right,m._count);for(var P=C.length-2;P>=0;--P)m=C[P],m.left===C[P+1]?S[P]=new s(m._color,m.key,m.value,S[P+1],m.right,m._count):S[P]=new s(m._color,m.key,m.value,m.left,S[P+1],m._count);return new c(this.tree._compare,S[0])},v.prev=function(){var _=this._stack;if(_.length!==0){var C=_[_.length-1];if(C.left)for(C=C.left;C;)_.push(C),C=C.right;else for(_.pop();_.length>0&&_[_.length-1].left===C;)C=_[_.length-1],_.pop()}},Object.defineProperty(v,"hasPrev",{get:function(){var _=this._stack;if(_.length===0)return!1;if(_[_.length-1].left)return!0;for(var C=_.length-1;C>0;--C)if(_[C-1].right===_[C])return!0;return!1}});function T(_,C){return _C?1:0}function L(_){return new c(_||T,null)}},3837:function(i,a,o){"use strict";i.exports=F;var s=o(4935),u=o(501),l=o(5304),f=o(6429),c=o(6444),h=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),d=ArrayBuffer,p=DataView;function x(U){return d.isView(U)&&!(U instanceof p)}function b(U){return Array.isArray(U)||x(U)}function v(U,G){return U[0]=G[0],U[1]=G[1],U[2]=G[2],U}function k(U){this.gl=U,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=l(U)}var E=k.prototype;E.update=function(U){U=U||{};function G(Me,Ne,Fe){if(Fe in U){var ye=U[Fe],Ve=this[Fe],ce;(Me?b(ye)&&b(ye[0]):b(ye))?this[Fe]=ce=[Ne(ye[0]),Ne(ye[1]),Ne(ye[2])]:this[Fe]=ce=[Ne(ye),Ne(ye),Ne(ye)];for(var Je=0;Je<3;++Je)if(ce[Je]!==Ve[Je])return!0}return!1}var j=G.bind(this,!1,Number),H=G.bind(this,!1,Boolean),N=G.bind(this,!1,String),W=G.bind(this,!0,function(Me){if(b(Me)){if(Me.length===3)return[+Me[0],+Me[1],+Me[2],1];if(Me.length===4)return[+Me[0],+Me[1],+Me[2],+Me[3]]}return[0,0,0,1]}),re,ae=!1,be=!1;if("bounds"in U)for(var Ce=U.bounds,Le=0;Le<2;++Le)for(var pe=0;pe<3;++pe)Ce[Le][pe]!==this.bounds[Le][pe]&&(be=!0),this.bounds[Le][pe]=Ce[Le][pe];if("ticks"in U){re=U.ticks,ae=!0,this.autoTicks=!1;for(var Le=0;Le<3;++Le)this.tickSpacing[Le]=0}else j("tickSpacing")&&(this.autoTicks=!0,be=!0);if(this._firstInit&&("ticks"in U||"tickSpacing"in U||(this.autoTicks=!0),be=!0,ae=!0,this._firstInit=!1),be&&this.autoTicks&&(re=c.create(this.bounds,this.tickSpacing),ae=!0),ae){for(var Le=0;Le<3;++Le)re[Le].sort(function(Ne,Fe){return Ne.x-Fe.x});c.equal(re,this.ticks)?ae=!1:this.ticks=re}H("tickEnable"),N("tickFont")&&(ae=!0),N("tickFontStyle")&&(ae=!0),N("tickFontWeight")&&(ae=!0),N("tickFontVariant")&&(ae=!0),j("tickSize"),j("tickAngle"),j("tickPad"),W("tickColor");var te=N("labels");N("labelFont")&&(te=!0),N("labelFontStyle")&&(te=!0),N("labelFontWeight")&&(te=!0),N("labelFontVariant")&&(te=!0),H("labelEnable"),j("labelSize"),j("labelPad"),W("labelColor"),H("lineEnable"),H("lineMirror"),j("lineWidth"),W("lineColor"),H("lineTickEnable"),H("lineTickMirror"),j("lineTickLength"),j("lineTickWidth"),W("lineTickColor"),H("gridEnable"),j("gridWidth"),W("gridColor"),H("zeroEnable"),W("zeroLineColor"),j("zeroLineWidth"),H("backgroundEnable"),W("backgroundColor");var ke=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],Ee=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(te||ae)&&this._text.update(this.bounds,this.labels,ke,this.ticks,Ee):this._text=s(this.gl,this.bounds,this.labels,ke,this.ticks,Ee),this._lines&&ae&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=u(this.gl,this.bounds,this.ticks))};function T(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var L=[new T,new T,new T];function _(U,G,j,H,N){for(var W=U.primalOffset,re=U.primalMinor,ae=U.mirrorOffset,be=U.mirrorMinor,Ce=H[G],Le=0;Le<3;++Le)if(G!==Le){var pe=W,te=ae,ke=re,Ee=be;Ce&1<0?(ke[Le]=-1,Ee[Le]=0):(ke[Le]=0,Ee[Le]=1)}}var C=[0,0,0],S={model:h,view:h,projection:h,_ortho:!1};E.isOpaque=function(){return!0},E.isTransparent=function(){return!1},E.drawTransparent=function(U){};var m=0,P=[0,0,0],A=[0,0,0],B=[0,0,0];E.draw=function(U){U=U||S;for(var Fe=this.gl,G=U.model||h,j=U.view||h,H=U.projection||h,N=this.bounds,W=U._ortho||!1,re=f(G,j,H,N,W),ae=re.cubeEdges,be=re.axis,Ce=j[12],Le=j[13],pe=j[14],te=j[15],ke=W?2:1,Ee=ke*this.pixelRatio*(H[3]*Ce+H[7]*Le+H[11]*pe+H[15]*te)/Fe.drawingBufferHeight,Me=0;Me<3;++Me)this.lastCubeProps.cubeEdges[Me]=ae[Me],this.lastCubeProps.axis[Me]=be[Me];for(var Ne=L,Me=0;Me<3;++Me)_(L[Me],Me,this.bounds,ae,be);for(var Fe=this.gl,ye=C,Me=0;Me<3;++Me)this.backgroundEnable[Me]?ye[Me]=be[Me]:ye[Me]=0;this._background.draw(G,j,H,N,ye,this.backgroundColor),this._lines.bind(G,j,H,this);for(var Me=0;Me<3;++Me){var Ve=[0,0,0];be[Me]>0?Ve[Me]=N[1][Me]:Ve[Me]=N[0][Me];for(var ce=0;ce<2;++ce){var Je=(Me+1+ce)%3,nt=(Me+1+(ce^1))%3;this.gridEnable[Je]&&this._lines.drawGrid(Je,nt,this.bounds,Ve,this.gridColor[Je],this.gridWidth[Je]*this.pixelRatio)}for(var ce=0;ce<2;++ce){var Je=(Me+1+ce)%3,nt=(Me+1+(ce^1))%3;this.zeroEnable[nt]&&Math.min(N[0][nt],N[1][nt])<=0&&Math.max(N[0][nt],N[1][nt])>=0&&this._lines.drawZero(Je,nt,this.bounds,Ve,this.zeroLineColor[nt],this.zeroLineWidth[nt]*this.pixelRatio)}}for(var Me=0;Me<3;++Me){this.lineEnable[Me]&&this._lines.drawAxisLine(Me,this.bounds,Ne[Me].primalOffset,this.lineColor[Me],this.lineWidth[Me]*this.pixelRatio),this.lineMirror[Me]&&this._lines.drawAxisLine(Me,this.bounds,Ne[Me].mirrorOffset,this.lineColor[Me],this.lineWidth[Me]*this.pixelRatio);for(var gt=v(P,Ne[Me].primalMinor),Nt=v(A,Ne[Me].mirrorMinor),it=this.lineTickLength,ce=0;ce<3;++ce){var Ye=Ee/G[5*ce];gt[ce]*=it[ce]*Ye,Nt[ce]*=it[ce]*Ye}this.lineTickEnable[Me]&&this._lines.drawAxisTicks(Me,Ne[Me].primalOffset,gt,this.lineTickColor[Me],this.lineTickWidth[Me]*this.pixelRatio),this.lineTickMirror[Me]&&this._lines.drawAxisTicks(Me,Ne[Me].mirrorOffset,Nt,this.lineTickColor[Me],this.lineTickWidth[Me]*this.pixelRatio)}this._lines.unbind(),this._text.bind(G,j,H,this.pixelRatio);var kt,Tt=.5,St,Dt;function Zt(st){Dt=[0,0,0],Dt[st]=1}function Et(st,Ue,rt){var $e=(st+1)%3,zt=(st+2)%3,Yt=Ue[$e],hr=Ue[zt],yr=rt[$e],br=rt[zt];if(Yt>0&&br>0){Zt($e);return}else if(Yt>0&&br<0){Zt($e);return}else if(Yt<0&&br>0){Zt($e);return}else if(Yt<0&&br<0){Zt($e);return}else if(hr>0&&yr>0){Zt(zt);return}else if(hr>0&&yr<0){Zt(zt);return}else if(hr<0&&yr>0){Zt(zt);return}else if(hr<0&&yr<0){Zt(zt);return}}for(var Me=0;Me<3;++Me){for(var Ae=Ne[Me].primalMinor,at=Ne[Me].mirrorMinor,wt=v(B,Ne[Me].primalOffset),ce=0;ce<3;++ce)this.lineTickEnable[Me]&&(wt[ce]+=Ee*Ae[ce]*Math.max(this.lineTickLength[ce],0)/G[5*ce]);var vt=[0,0,0];if(vt[Me]=1,this.tickEnable[Me]){this.tickAngle[Me]===-3600?(this.tickAngle[Me]=0,this.tickAlign[Me]="auto"):this.tickAlign[Me]=-1,St=1,kt=[this.tickAlign[Me],Tt,St],kt[0]==="auto"?kt[0]=m:kt[0]=parseInt(""+kt[0]),Dt=[0,0,0],Et(Me,Ae,at);for(var ce=0;ce<3;++ce)wt[ce]+=Ee*Ae[ce]*this.tickPad[ce]/G[5*ce];this._text.drawTicks(Me,this.tickSize[Me],this.tickAngle[Me],wt,this.tickColor[Me],vt,Dt,kt)}if(this.labelEnable[Me]){St=0,Dt=[0,0,0],this.labels[Me].length>4&&(Zt(Me),St=1),kt=[this.labelAlign[Me],Tt,St],kt[0]==="auto"?kt[0]=m:kt[0]=parseInt(""+kt[0]);for(var ce=0;ce<3;++ce)wt[ce]+=Ee*Ae[ce]*this.labelPad[ce]/G[5*ce];wt[Me]+=.5*(N[0][Me]+N[1][Me]),this._text.drawLabel(Me,this.labelSize[Me],this.labelAngle[Me],wt,this.labelColor[Me],[0,0,0],Dt,kt)}}this._text.unbind()},E.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function F(U,G){var j=new k(U);return j.update(G),j}},5304:function(i,a,o){"use strict";i.exports=h;var s=o(2762),u=o(8116),l=o(1879).bg;function f(d,p,x,b){this.gl=d,this.buffer=p,this.vao=x,this.shader=b}var c=f.prototype;c.draw=function(d,p,x,b,v,k){for(var E=!1,T=0;T<3;++T)E=E||v[T];if(E){var L=this.gl;L.enable(L.POLYGON_OFFSET_FILL),L.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:d,view:p,projection:x,bounds:b,enable:v,colors:k},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),L.disable(L.POLYGON_OFFSET_FILL)}},c.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function h(d){for(var p=[],x=[],b=0,v=0;v<3;++v)for(var k=(v+1)%3,E=(v+2)%3,T=[0,0,0],L=[0,0,0],_=-1;_<=1;_+=2){x.push(b,b+2,b+1,b+1,b+2,b+3),T[v]=_,L[v]=_;for(var C=-1;C<=1;C+=2){T[k]=C;for(var S=-1;S<=1;S+=2)T[E]=S,p.push(T[0],T[1],T[2],L[0],L[1],L[2]),b+=1}var m=k;k=E,E=m}var P=s(d,new Float32Array(p)),A=s(d,new Uint16Array(x),d.ELEMENT_ARRAY_BUFFER),B=u(d,[{buffer:P,type:d.FLOAT,size:3,offset:0,stride:24},{buffer:P,type:d.FLOAT,size:3,offset:12,stride:24}],A),F=l(d);return F.attributes.position.location=0,F.attributes.normal.location=1,new f(d,P,B,F)}},6429:function(i,a,o){"use strict";i.exports=_;var s=o(8828),u=o(6760),l=o(5202),f=o(3250),c=new Array(16),h=new Array(8),d=new Array(8),p=new Array(3),x=[0,0,0];(function(){for(var C=0;C<8;++C)h[C]=[1,1,1,1],d[C]=[1,1,1]})();function b(C,S,m){for(var P=0;P<4;++P){C[P]=m[12+P];for(var A=0;A<3;++A)C[P]+=S[A]*m[4*A+P]}}var v=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function k(C){for(var S=0;Sbe&&(j|=1<be){j|=1<d[F][1])&&(Ne=F);for(var Fe=-1,F=0;F<3;++F){var ye=Ne^1<d[Ve][0]&&(Ve=ye)}}var ce=E;ce[0]=ce[1]=ce[2]=0,ce[s.log2(Fe^Ne)]=Ne&Fe,ce[s.log2(Ne^Ve)]=Ne&Ve;var Je=Ve^7;Je===j||Je===Me?(Je=Fe^7,ce[s.log2(Ve^Je)]=Je&Ve):ce[s.log2(Fe^Je)]=Je&Fe;for(var nt=T,gt=j,W=0;W<3;++W)gt&1<=0;--ce){var Ke=Me[Ne[ce]];S.push(Ee*Ke[0],-Ee*Ke[1],W)}}for(var P=[0,0,0],A=[0,0,0],B=[0,0,0],F=[0,0,0],U=1.25,G={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},j=0;j<3;++j){B[j]=S.length/d|0,m(.5*(E[0][j]+E[1][j]),T[j],L[j],12,U,G),F[j]=(S.length/d|0)-B[j],P[j]=S.length/d|0;for(var H=0;H<_[j].length;++H)if(_[j][H].text){var N={family:_[j][H].font||C[j].family,style:C[j].fontStyle||C[j].style,weight:C[j].fontWeight||C[j].weight,variant:C[j].fontVariant||C[j].variant};m(_[j][H].x,_[j][H].text,N,_[j][H].fontSize||12,U,G)}A[j]=(S.length/d|0)-P[j]}this.buffer.update(S),this.tickOffset=P,this.tickCount=A,this.labelOffset=B,this.labelCount=F},x.drawTicks=function(E,T,L,_,C,S,m,P){this.tickCount[E]&&(this.shader.uniforms.axis=S,this.shader.uniforms.color=C,this.shader.uniforms.angle=L,this.shader.uniforms.scale=T,this.shader.uniforms.offset=_,this.shader.uniforms.alignDir=m,this.shader.uniforms.alignOpt=P,this.vao.draw(this.gl.TRIANGLES,this.tickCount[E],this.tickOffset[E]))},x.drawLabel=function(E,T,L,_,C,S,m,P){this.labelCount[E]&&(this.shader.uniforms.axis=S,this.shader.uniforms.color=C,this.shader.uniforms.angle=L,this.shader.uniforms.scale=T,this.shader.uniforms.offset=_,this.shader.uniforms.alignDir=m,this.shader.uniforms.alignOpt=P,this.vao.draw(this.gl.TRIANGLES,this.labelCount[E],this.labelOffset[E]))},x.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()};function v(E,T){try{return l(E,T)}catch(L){return console.warn('error vectorizing text:"'+E+'" error:',L),{cells:[],positions:[]}}}function k(E,T,L,_,C,S){var m=s(E),P=u(E,[{buffer:m,size:3}]),A=f(E);A.attributes.position.location=0;var B=new p(E,A,m,P);return B.update(T,L,_,C,S),B}},6444:function(i,a){"use strict";a.create=s,a.equal=u;function o(l,f){var c=l+"",h=c.indexOf("."),d=0;h>=0&&(d=c.length-h-1);var p=Math.pow(10,d),x=Math.round(l*f*p),b=x+"";if(b.indexOf("e")>=0)return b;var v=x/p,k=x%p;x<0?(v=-Math.ceil(v)|0,k=-k|0):(v=Math.floor(v)|0,k=k|0);var E=""+v;if(x<0&&(E="-"+E),d){for(var T=""+k;T.length=l[0][h];--x)d.push({x:x*f[h],text:o(f[h],x)});c.push(d)}return c}function u(l,f){for(var c=0;c<3;++c){if(l[c].length!==f[c].length)return!1;for(var h=0;hE)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return v.bufferSubData(k,_,L),E}function p(v,k){for(var E=s.malloc(v.length,k),T=v.length,L=0;L=0;--T){if(k[T]!==E)return!1;E*=v[T]}return!0}h.update=function(v,k){if(typeof k!="number"&&(k=-1),this.bind(),typeof v=="object"&&typeof v.shape!="undefined"){var E=v.dtype;if(f.indexOf(E)<0&&(E="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var T=gl.getExtension("OES_element_index_uint");T&&E!=="uint16"?E="uint32":E="uint16"}if(E===v.dtype&&x(v.shape,v.stride))v.offset===0&&v.data.length===v.shape[0]?this.length=d(this.gl,this.type,this.length,this.usage,v.data,k):this.length=d(this.gl,this.type,this.length,this.usage,v.data.subarray(v.offset,v.shape[0]),k);else{var L=s.malloc(v.size,E),_=l(L,v.shape);u.assign(_,v),k<0?this.length=d(this.gl,this.type,this.length,this.usage,L,k):this.length=d(this.gl,this.type,this.length,this.usage,L.subarray(0,v.size),k),s.free(L)}}else if(Array.isArray(v)){var C;this.type===this.gl.ELEMENT_ARRAY_BUFFER?C=p(v,"uint16"):C=p(v,"float32"),k<0?this.length=d(this.gl,this.type,this.length,this.usage,C,k):this.length=d(this.gl,this.type,this.length,this.usage,C.subarray(0,v.length),k),s.free(C)}else if(typeof v=="object"&&typeof v.length=="number")this.length=d(this.gl,this.type,this.length,this.usage,v,k);else if(typeof v=="number"||v===void 0){if(k>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");v=v|0,v<=0&&(v=1),this.gl.bufferData(this.type,v|0,this.usage),this.length=v}else throw new Error("gl-buffer: Invalid data type")};function b(v,k,E,T){if(E=E||v.ARRAY_BUFFER,T=T||v.DYNAMIC_DRAW,E!==v.ARRAY_BUFFER&&E!==v.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(T!==v.DYNAMIC_DRAW&&T!==v.STATIC_DRAW&&T!==v.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var L=v.createBuffer(),_=new c(v,E,L,0,T);return _.update(k),_}i.exports=b},6405:function(i,a,o){"use strict";var s=o(2931);i.exports=function(l,f){var c=l.positions,h=l.vectors,d={positions:[],vertexIntensity:[],vertexIntensityBounds:l.vertexIntensityBounds,vectors:[],cells:[],coneOffset:l.coneOffset,colormap:l.colormap};if(l.positions.length===0)return f&&(f[0]=[0,0,0],f[1]=[0,0,0]),d;for(var p=0,x=1/0,b=-1/0,v=1/0,k=-1/0,E=1/0,T=-1/0,L=null,_=null,C=[],S=1/0,m=!1,P=l.coneSizemode==="raw",A=0;Ap&&(p=s.length(F)),A&&!P){var U=2*s.distance(L,B)/(s.length(_)+s.length(F));U?(S=Math.min(S,U),m=!1):m=!0}m||(L=B,_=F),C.push(F)}var G=[x,v,E],j=[b,k,T];f&&(f[0]=G,f[1]=j),p===0&&(p=1);var H=1/p;isFinite(S)||(S=1),d.vectorScale=S;var N=l.coneSize||(P?1:.5);l.absoluteConeSize&&(N=l.absoluteConeSize*H),d.coneScale=N;for(var A=0,W=0;A=1},v.isTransparent=function(){return this.opacity<1},v.pickSlots=1,v.setPickBase=function(C){this.pickId=C};function k(C){for(var S=p({colormap:C,nshades:256,format:"rgba"}),m=new Uint8Array(256*4),P=0;P<256;++P){for(var A=S[P],B=0;B<3;++B)m[4*P+B]=A[B];m[4*P+3]=A[3]*255}return d(m,[256,256,4],[4,0,1])}function E(C){for(var S=C.length,m=new Array(S),P=0;P0){var W=this.triShader;W.bind(),W.uniforms=U,this.triangleVAO.bind(),S.drawArrays(S.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},v.drawPick=function(C){C=C||{};for(var S=this.gl,m=C.model||x,P=C.view||x,A=C.projection||x,B=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],F=0;F<3;++F)B[0][F]=Math.max(B[0][F],this.clipBounds[0][F]),B[1][F]=Math.min(B[1][F],this.clipBounds[1][F]);this._model=[].slice.call(m),this._view=[].slice.call(P),this._projection=[].slice.call(A),this._resolution=[S.drawingBufferWidth,S.drawingBufferHeight];var U={model:m,view:P,projection:A,clipBounds:B,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},G=this.pickShader;G.bind(),G.uniforms=U,this.triangleCount>0&&(this.triangleVAO.bind(),S.drawArrays(S.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},v.pick=function(C){if(!C||C.id!==this.pickId)return null;var S=C.value[0]+256*C.value[1]+65536*C.value[2],m=this.cells[S],P=this.positions[m[1]].slice(0,3),A={position:P,dataCoordinate:P,index:Math.floor(m[1]/48)};return this.traceType==="cone"?A.index=Math.floor(m[1]/48):this.traceType==="streamtube"&&(A.intensity=this.intensity[m[1]],A.velocity=this.vectors[m[1]].slice(0,3),A.divergence=this.vectors[m[1]][3],A.index=S),A},v.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function T(C,S){var m=s(C,S.meshShader.vertex,S.meshShader.fragment,null,S.meshShader.attributes);return m.attributes.position.location=0,m.attributes.color.location=2,m.attributes.uv.location=3,m.attributes.vector.location=4,m}function L(C,S){var m=s(C,S.pickShader.vertex,S.pickShader.fragment,null,S.pickShader.attributes);return m.attributes.position.location=0,m.attributes.id.location=1,m.attributes.vector.location=4,m}function _(C,S,m){var P=m.shaders;arguments.length===1&&(S=C,C=S.gl);var A=T(C,P),B=L(C,P),F=f(C,d(new Uint8Array([255,255,255,255]),[1,1,4]));F.generateMipmap(),F.minFilter=C.LINEAR_MIPMAP_LINEAR,F.magFilter=C.LINEAR;var U=u(C),G=u(C),j=u(C),H=u(C),N=u(C),W=l(C,[{buffer:U,type:C.FLOAT,size:4},{buffer:N,type:C.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:j,type:C.FLOAT,size:4},{buffer:H,type:C.FLOAT,size:2},{buffer:G,type:C.FLOAT,size:4}]),re=new b(C,F,A,B,U,G,N,j,H,W,m.traceType||"cone");return re.update(S),re}i.exports=_},614:function(i,a,o){var s=o(3236),u=s([`precision highp float; +}`]);a.bg=function(x){return u(x,d,p,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},4935:function(i,a,o){"use strict";i.exports=k;var s=o(2762),u=o(8116),l=o(4359),f=o(1879).Q,c=window||process.global||{},h=c.__TEXT_CACHE||{};c.__TEXT_CACHE={};var d=3;function p(E,T,L,_){this.gl=E,this.shader=T,this.buffer=L,this.vao=_,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var x=p.prototype,b=[0,0];x.bind=function(E,T,L,_){this.vao.bind(),this.shader.bind();var C=this.shader.uniforms;C.model=E,C.view=T,C.projection=L,C.pixelScale=_,b[0]=this.gl.drawingBufferWidth,b[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=b},x.unbind=function(){this.vao.unbind()},x.update=function(E,T,L,_,C){var S=[];function m(W,re,ae,be,Ce,Le){var pe=[ae.style,ae.weight,ae.variant,ae.family].join("_"),te=h[pe];te||(te=h[pe]={});var ke=te[re];ke||(ke=te[re]=v(re,{triangles:!0,font:ae.family,fontStyle:ae.style,fontWeight:ae.weight,fontVariant:ae.variant,textAlign:"center",textBaseline:"middle",lineSpacing:Ce,styletags:Le}));for(var Ee=(be||12)/12,Me=ke.positions,Ne=ke.cells,Fe=0,ye=Ne.length;Fe=0;--ce){var Je=Me[Ve[ce]];S.push(Ee*Je[0],-Ee*Je[1],W)}}for(var P=[0,0,0],A=[0,0,0],B=[0,0,0],F=[0,0,0],U=1.25,G={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},j=0;j<3;++j){B[j]=S.length/d|0,m(.5*(E[0][j]+E[1][j]),T[j],L[j],12,U,G),F[j]=(S.length/d|0)-B[j],P[j]=S.length/d|0;for(var H=0;H<_[j].length;++H)if(_[j][H].text){var N={family:_[j][H].font||C[j].family,style:C[j].fontStyle||C[j].style,weight:C[j].fontWeight||C[j].weight,variant:C[j].fontVariant||C[j].variant};m(_[j][H].x,_[j][H].text,N,_[j][H].fontSize||12,U,G)}A[j]=(S.length/d|0)-P[j]}this.buffer.update(S),this.tickOffset=P,this.tickCount=A,this.labelOffset=B,this.labelCount=F},x.drawTicks=function(E,T,L,_,C,S,m,P){this.tickCount[E]&&(this.shader.uniforms.axis=S,this.shader.uniforms.color=C,this.shader.uniforms.angle=L,this.shader.uniforms.scale=T,this.shader.uniforms.offset=_,this.shader.uniforms.alignDir=m,this.shader.uniforms.alignOpt=P,this.vao.draw(this.gl.TRIANGLES,this.tickCount[E],this.tickOffset[E]))},x.drawLabel=function(E,T,L,_,C,S,m,P){this.labelCount[E]&&(this.shader.uniforms.axis=S,this.shader.uniforms.color=C,this.shader.uniforms.angle=L,this.shader.uniforms.scale=T,this.shader.uniforms.offset=_,this.shader.uniforms.alignDir=m,this.shader.uniforms.alignOpt=P,this.vao.draw(this.gl.TRIANGLES,this.labelCount[E],this.labelOffset[E]))},x.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()};function v(E,T){try{return l(E,T)}catch(L){return console.warn('error vectorizing text:"'+E+'" error:',L),{cells:[],positions:[]}}}function k(E,T,L,_,C,S){var m=s(E),P=u(E,[{buffer:m,size:3}]),A=f(E);A.attributes.position.location=0;var B=new p(E,A,m,P);return B.update(T,L,_,C,S),B}},6444:function(i,a){"use strict";a.create=s,a.equal=u;function o(l,f){var c=l+"",h=c.indexOf("."),d=0;h>=0&&(d=c.length-h-1);var p=Math.pow(10,d),x=Math.round(l*f*p),b=x+"";if(b.indexOf("e")>=0)return b;var v=x/p,k=x%p;x<0?(v=-Math.ceil(v)|0,k=-k|0):(v=Math.floor(v)|0,k=k|0);var E=""+v;if(x<0&&(E="-"+E),d){for(var T=""+k;T.length=l[0][h];--x)d.push({x:x*f[h],text:o(f[h],x)});c.push(d)}return c}function u(l,f){for(var c=0;c<3;++c){if(l[c].length!==f[c].length)return!1;for(var h=0;hE)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return v.bufferSubData(k,_,L),E}function p(v,k){for(var E=s.malloc(v.length,k),T=v.length,L=0;L=0;--T){if(k[T]!==E)return!1;E*=v[T]}return!0}h.update=function(v,k){if(typeof k!="number"&&(k=-1),this.bind(),typeof v=="object"&&typeof v.shape!="undefined"){var E=v.dtype;if(f.indexOf(E)<0&&(E="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var T=gl.getExtension("OES_element_index_uint");T&&E!=="uint16"?E="uint32":E="uint16"}if(E===v.dtype&&x(v.shape,v.stride))v.offset===0&&v.data.length===v.shape[0]?this.length=d(this.gl,this.type,this.length,this.usage,v.data,k):this.length=d(this.gl,this.type,this.length,this.usage,v.data.subarray(v.offset,v.shape[0]),k);else{var L=s.malloc(v.size,E),_=l(L,v.shape);u.assign(_,v),k<0?this.length=d(this.gl,this.type,this.length,this.usage,L,k):this.length=d(this.gl,this.type,this.length,this.usage,L.subarray(0,v.size),k),s.free(L)}}else if(Array.isArray(v)){var C;this.type===this.gl.ELEMENT_ARRAY_BUFFER?C=p(v,"uint16"):C=p(v,"float32"),k<0?this.length=d(this.gl,this.type,this.length,this.usage,C,k):this.length=d(this.gl,this.type,this.length,this.usage,C.subarray(0,v.length),k),s.free(C)}else if(typeof v=="object"&&typeof v.length=="number")this.length=d(this.gl,this.type,this.length,this.usage,v,k);else if(typeof v=="number"||v===void 0){if(k>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");v=v|0,v<=0&&(v=1),this.gl.bufferData(this.type,v|0,this.usage),this.length=v}else throw new Error("gl-buffer: Invalid data type")};function b(v,k,E,T){if(E=E||v.ARRAY_BUFFER,T=T||v.DYNAMIC_DRAW,E!==v.ARRAY_BUFFER&&E!==v.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(T!==v.DYNAMIC_DRAW&&T!==v.STATIC_DRAW&&T!==v.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var L=v.createBuffer(),_=new c(v,E,L,0,T);return _.update(k),_}i.exports=b},6405:function(i,a,o){"use strict";var s=o(2931);i.exports=function(l,f){var c=l.positions,h=l.vectors,d={positions:[],vertexIntensity:[],vertexIntensityBounds:l.vertexIntensityBounds,vectors:[],cells:[],coneOffset:l.coneOffset,colormap:l.colormap};if(l.positions.length===0)return f&&(f[0]=[0,0,0],f[1]=[0,0,0]),d;for(var p=0,x=1/0,b=-1/0,v=1/0,k=-1/0,E=1/0,T=-1/0,L=null,_=null,C=[],S=1/0,m=!1,P=l.coneSizemode==="raw",A=0;Ap&&(p=s.length(F)),A&&!P){var U=2*s.distance(L,B)/(s.length(_)+s.length(F));U?(S=Math.min(S,U),m=!1):m=!0}m||(L=B,_=F),C.push(F)}var G=[x,v,E],j=[b,k,T];f&&(f[0]=G,f[1]=j),p===0&&(p=1);var H=1/p;isFinite(S)||(S=1),d.vectorScale=S;var N=l.coneSize||(P?1:.5);l.absoluteConeSize&&(N=l.absoluteConeSize*H),d.coneScale=N;for(var A=0,W=0;A=1},v.isTransparent=function(){return this.opacity<1},v.pickSlots=1,v.setPickBase=function(C){this.pickId=C};function k(C){for(var S=p({colormap:C,nshades:256,format:"rgba"}),m=new Uint8Array(256*4),P=0;P<256;++P){for(var A=S[P],B=0;B<3;++B)m[4*P+B]=A[B];m[4*P+3]=A[3]*255}return d(m,[256,256,4],[4,0,1])}function E(C){for(var S=C.length,m=new Array(S),P=0;P0){var W=this.triShader;W.bind(),W.uniforms=U,this.triangleVAO.bind(),S.drawArrays(S.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},v.drawPick=function(C){C=C||{};for(var S=this.gl,m=C.model||x,P=C.view||x,A=C.projection||x,B=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],F=0;F<3;++F)B[0][F]=Math.max(B[0][F],this.clipBounds[0][F]),B[1][F]=Math.min(B[1][F],this.clipBounds[1][F]);this._model=[].slice.call(m),this._view=[].slice.call(P),this._projection=[].slice.call(A),this._resolution=[S.drawingBufferWidth,S.drawingBufferHeight];var U={model:m,view:P,projection:A,clipBounds:B,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},G=this.pickShader;G.bind(),G.uniforms=U,this.triangleCount>0&&(this.triangleVAO.bind(),S.drawArrays(S.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},v.pick=function(C){if(!C||C.id!==this.pickId)return null;var S=C.value[0]+256*C.value[1]+65536*C.value[2],m=this.cells[S],P=this.positions[m[1]].slice(0,3),A={position:P,dataCoordinate:P,index:Math.floor(m[1]/48)};return this.traceType==="cone"?A.index=Math.floor(m[1]/48):this.traceType==="streamtube"&&(A.intensity=this.intensity[m[1]],A.velocity=this.vectors[m[1]].slice(0,3),A.divergence=this.vectors[m[1]][3],A.index=S),A},v.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function T(C,S){var m=s(C,S.meshShader.vertex,S.meshShader.fragment,null,S.meshShader.attributes);return m.attributes.position.location=0,m.attributes.color.location=2,m.attributes.uv.location=3,m.attributes.vector.location=4,m}function L(C,S){var m=s(C,S.pickShader.vertex,S.pickShader.fragment,null,S.pickShader.attributes);return m.attributes.position.location=0,m.attributes.id.location=1,m.attributes.vector.location=4,m}function _(C,S,m){var P=m.shaders;arguments.length===1&&(S=C,C=S.gl);var A=T(C,P),B=L(C,P),F=f(C,d(new Uint8Array([255,255,255,255]),[1,1,4]));F.generateMipmap(),F.minFilter=C.LINEAR_MIPMAP_LINEAR,F.magFilter=C.LINEAR;var U=u(C),G=u(C),j=u(C),H=u(C),N=u(C),W=l(C,[{buffer:U,type:C.FLOAT,size:4},{buffer:N,type:C.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:j,type:C.FLOAT,size:4},{buffer:H,type:C.FLOAT,size:2},{buffer:G,type:C.FLOAT,size:4}]),re=new b(C,F,A,B,U,G,N,j,H,W,m.traceType||"cone");return re.update(S),re}i.exports=_},614:function(i,a,o){var s=o(3236),u=s([`precision highp float; precision highp float; #define GLSLIFY 1 @@ -872,7 +872,7 @@ void main() { if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard; gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz); -}`]),h=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];a.createShader=function(d){return u(d,l,f,null,h)},a.createPickShader=function(d){return u(d,l,c,null,h)}},5714:function(i,a,o){"use strict";i.exports=S;var s=o(2762),u=o(8116),l=o(7766),f=new Uint8Array(4),c=new Float32Array(f.buffer);function h(m,P,A,B){return f[0]=B,f[1]=A,f[2]=P,f[3]=m,c[0]}var d=o(2478),p=o(9618),x=o(7319),b=x.createShader,v=x.createPickShader,k=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function E(m,P){for(var A=0,B=0;B<3;++B){var F=m[B]-P[B];A+=F*F}return Math.sqrt(A)}function T(m){for(var P=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],A=0;A<3;++A)P[0][A]=Math.max(m[0][A],P[0][A]),P[1][A]=Math.min(m[1][A],P[1][A]);return P}function L(m,P,A,B){this.arcLength=m,this.position=P,this.index=A,this.dataCoordinate=B}function _(m,P,A,B,F,U){this.gl=m,this.shader=P,this.pickShader=A,this.buffer=B,this.vao=F,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=U,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var C=_.prototype;C.isTransparent=function(){return this.hasAlpha},C.isOpaque=function(){return!this.hasAlpha},C.pickSlots=1,C.setPickBase=function(m){this.pickId=m},C.drawTransparent=C.draw=function(m){if(this.vertexCount){var P=this.gl,A=this.shader,B=this.vao;A.bind(),A.uniforms={model:m.model||k,view:m.view||k,projection:m.projection||k,clipBounds:T(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[P.drawingBufferWidth,P.drawingBufferHeight],pixelRatio:this.pixelRatio},B.bind(),B.draw(P.TRIANGLE_STRIP,this.vertexCount),B.unbind()}},C.drawPick=function(m){if(this.vertexCount){var P=this.gl,A=this.pickShader,B=this.vao;A.bind(),A.uniforms={model:m.model||k,view:m.view||k,projection:m.projection||k,pickId:this.pickId,clipBounds:T(this.clipBounds),screenShape:[P.drawingBufferWidth,P.drawingBufferHeight],pixelRatio:this.pixelRatio},B.bind(),B.draw(P.TRIANGLE_STRIP,this.vertexCount),B.unbind()}},C.update=function(m){var P,A;this.dirty=!0;var B=!!m.connectGaps;"dashScale"in m&&(this.dashScale=m.dashScale),this.hasAlpha=!1,"opacity"in m&&(this.opacity=+m.opacity,this.opacity<1&&(this.hasAlpha=!0));var F=[],U=[],G=[],j=0,H=0,N=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],W=m.position||m.positions;if(W){var re=m.color||m.colors||[0,0,0,1],ae=m.lineWidth||1,be=!1;e:for(P=1;P0){for(var de=0;de<24;++de)F.push(F[F.length-12]);H+=2,be=!0}continue e}N[0][A]=Math.min(N[0][A],Pe[A],Ce[A]),N[1][A]=Math.max(N[1][A],Pe[A],Ce[A])}var te,ke;Array.isArray(re[0])?(te=re.length>P-1?re[P-1]:re.length>0?re[re.length-1]:[0,0,0,1],ke=re.length>P?re[P]:re.length>0?re[re.length-1]:[0,0,0,1]):te=ke=re,te.length===3&&(te=[te[0],te[1],te[2],1]),ke.length===3&&(ke=[ke[0],ke[1],ke[2],1]),!this.hasAlpha&&te[3]<1&&(this.hasAlpha=!0);var Ee;Array.isArray(ae)?Ee=ae.length>P-1?ae[P-1]:ae.length>0?ae[ae.length-1]:[0,0,0,1]:Ee=ae;var Me=j;if(j+=E(Pe,Ce),be){for(A=0;A<2;++A)F.push(Pe[0],Pe[1],Pe[2],Ce[0],Ce[1],Ce[2],Me,Ee,te[0],te[1],te[2],te[3]);H+=2,be=!1}F.push(Pe[0],Pe[1],Pe[2],Ce[0],Ce[1],Ce[2],Me,Ee,te[0],te[1],te[2],te[3],Pe[0],Pe[1],Pe[2],Ce[0],Ce[1],Ce[2],Me,-Ee,te[0],te[1],te[2],te[3],Ce[0],Ce[1],Ce[2],Pe[0],Pe[1],Pe[2],j,-Ee,ke[0],ke[1],ke[2],ke[3],Ce[0],Ce[1],Ce[2],Pe[0],Pe[1],Pe[2],j,Ee,ke[0],ke[1],ke[2],ke[3]),H+=4}}if(this.buffer.update(F),U.push(j),G.push(W[W.length-1].slice()),this.bounds=N,this.vertexCount=H,this.points=G,this.arcLength=U,"dashes"in m){var Ue=m.dashes,Fe=Ue.slice();for(Fe.unshift(0),P=1;P1.0001)return null;A+=P[L]}return Math.abs(A-1)>.001?null:[_,h(p,P),P]}},840:function(i,a,o){var s=o(3236),u=s([`precision highp float; +}`]),h=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];a.createShader=function(d){return u(d,l,f,null,h)},a.createPickShader=function(d){return u(d,l,c,null,h)}},5714:function(i,a,o){"use strict";i.exports=S;var s=o(2762),u=o(8116),l=o(7766),f=new Uint8Array(4),c=new Float32Array(f.buffer);function h(m,P,A,B){return f[0]=B,f[1]=A,f[2]=P,f[3]=m,c[0]}var d=o(2478),p=o(9618),x=o(7319),b=x.createShader,v=x.createPickShader,k=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function E(m,P){for(var A=0,B=0;B<3;++B){var F=m[B]-P[B];A+=F*F}return Math.sqrt(A)}function T(m){for(var P=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],A=0;A<3;++A)P[0][A]=Math.max(m[0][A],P[0][A]),P[1][A]=Math.min(m[1][A],P[1][A]);return P}function L(m,P,A,B){this.arcLength=m,this.position=P,this.index=A,this.dataCoordinate=B}function _(m,P,A,B,F,U){this.gl=m,this.shader=P,this.pickShader=A,this.buffer=B,this.vao=F,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=U,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var C=_.prototype;C.isTransparent=function(){return this.hasAlpha},C.isOpaque=function(){return!this.hasAlpha},C.pickSlots=1,C.setPickBase=function(m){this.pickId=m},C.drawTransparent=C.draw=function(m){if(this.vertexCount){var P=this.gl,A=this.shader,B=this.vao;A.bind(),A.uniforms={model:m.model||k,view:m.view||k,projection:m.projection||k,clipBounds:T(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[P.drawingBufferWidth,P.drawingBufferHeight],pixelRatio:this.pixelRatio},B.bind(),B.draw(P.TRIANGLE_STRIP,this.vertexCount),B.unbind()}},C.drawPick=function(m){if(this.vertexCount){var P=this.gl,A=this.pickShader,B=this.vao;A.bind(),A.uniforms={model:m.model||k,view:m.view||k,projection:m.projection||k,pickId:this.pickId,clipBounds:T(this.clipBounds),screenShape:[P.drawingBufferWidth,P.drawingBufferHeight],pixelRatio:this.pixelRatio},B.bind(),B.draw(P.TRIANGLE_STRIP,this.vertexCount),B.unbind()}},C.update=function(m){var P,A;this.dirty=!0;var B=!!m.connectGaps;"dashScale"in m&&(this.dashScale=m.dashScale),this.hasAlpha=!1,"opacity"in m&&(this.opacity=+m.opacity,this.opacity<1&&(this.hasAlpha=!0));var F=[],U=[],G=[],j=0,H=0,N=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],W=m.position||m.positions;if(W){var re=m.color||m.colors||[0,0,0,1],ae=m.lineWidth||1,be=!1;e:for(P=1;P0){for(var pe=0;pe<24;++pe)F.push(F[F.length-12]);H+=2,be=!0}continue e}N[0][A]=Math.min(N[0][A],Ce[A],Le[A]),N[1][A]=Math.max(N[1][A],Ce[A],Le[A])}var te,ke;Array.isArray(re[0])?(te=re.length>P-1?re[P-1]:re.length>0?re[re.length-1]:[0,0,0,1],ke=re.length>P?re[P]:re.length>0?re[re.length-1]:[0,0,0,1]):te=ke=re,te.length===3&&(te=[te[0],te[1],te[2],1]),ke.length===3&&(ke=[ke[0],ke[1],ke[2],1]),!this.hasAlpha&&te[3]<1&&(this.hasAlpha=!0);var Ee;Array.isArray(ae)?Ee=ae.length>P-1?ae[P-1]:ae.length>0?ae[ae.length-1]:[0,0,0,1]:Ee=ae;var Me=j;if(j+=E(Ce,Le),be){for(A=0;A<2;++A)F.push(Ce[0],Ce[1],Ce[2],Le[0],Le[1],Le[2],Me,Ee,te[0],te[1],te[2],te[3]);H+=2,be=!1}F.push(Ce[0],Ce[1],Ce[2],Le[0],Le[1],Le[2],Me,Ee,te[0],te[1],te[2],te[3],Ce[0],Ce[1],Ce[2],Le[0],Le[1],Le[2],Me,-Ee,te[0],te[1],te[2],te[3],Le[0],Le[1],Le[2],Ce[0],Ce[1],Ce[2],j,-Ee,ke[0],ke[1],ke[2],ke[3],Le[0],Le[1],Le[2],Ce[0],Ce[1],Ce[2],j,Ee,ke[0],ke[1],ke[2],ke[3]),H+=4}}if(this.buffer.update(F),U.push(j),G.push(W[W.length-1].slice()),this.bounds=N,this.vertexCount=H,this.points=G,this.arcLength=U,"dashes"in m){var Ne=m.dashes,Fe=Ne.slice();for(Fe.unshift(0),P=1;P1.0001)return null;A+=P[L]}return Math.abs(A-1)>.001?null:[_,h(p,P),P]}},840:function(i,a,o){var s=o(3236),u=s([`precision highp float; #define GLSLIFY 1 attribute vec3 position, normal; @@ -1236,7 +1236,7 @@ uniform vec3 contourColor; void main() { gl_FragColor = vec4(contourColor, 1.0); } -`]);a.meshShader={vertex:u,fragment:l,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.wireShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.pointShader={vertex:h,fragment:d,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},a.pickShader={vertex:p,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},a.pointPickShader={vertex:b,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},a.contourShader={vertex:v,fragment:k,attributes:[{name:"position",type:"vec3"}]}},7201:function(i,a,o){"use strict";var s=1e-6,u=1e-6,l=o(9405),f=o(2762),c=o(8116),h=o(7766),d=o(8406),p=o(6760),x=o(7608),b=o(9618),v=o(6729),k=o(7765),E=o(1888),T=o(840),L=o(7626),_=T.meshShader,C=T.wireShader,S=T.pointShader,m=T.pickShader,P=T.pointPickShader,A=T.contourShader,B=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function F(de,te,ke,Ee,Me,Ue,Fe,me,Ne,ce,Ke,it,bt,Nt,nt,Ye,kt,At,St,Bt,Zt,Et,Ae,ot,dt,pt,at){this.gl=de,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=te,this.dirty=!0,this.triShader=ke,this.lineShader=Ee,this.pointShader=Me,this.pickShader=Ue,this.pointPickShader=Fe,this.contourShader=me,this.trianglePositions=Ne,this.triangleColors=Ke,this.triangleNormals=bt,this.triangleUVs=it,this.triangleIds=ce,this.triangleVAO=Nt,this.triangleCount=0,this.lineWidth=1,this.edgePositions=nt,this.edgeColors=kt,this.edgeUVs=At,this.edgeIds=Ye,this.edgeVAO=St,this.edgeCount=0,this.pointPositions=Bt,this.pointColors=Et,this.pointUVs=Ae,this.pointSizes=ot,this.pointIds=Zt,this.pointVAO=dt,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=pt,this.contourVAO=at,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=B,this._view=B,this._projection=B,this._resolution=[1,1]}var U=F.prototype;U.isOpaque=function(){return!this.hasAlpha},U.isTransparent=function(){return this.hasAlpha},U.pickSlots=1,U.setPickBase=function(de){this.pickId=de};function G(de,te){if(!te||!te.length)return 1;for(var ke=0;kede&&ke>0){var Ee=(te[ke][0]-de)/(te[ke][0]-te[ke-1][0]);return te[ke][1]*(1-Ee)+Ee*te[ke-1][1]}}return 1}function j(de,te){for(var ke=v({colormap:de,nshades:256,format:"rgba"}),Ee=new Uint8Array(256*4),Me=0;Me<256;++Me){for(var Ue=ke[Me],Fe=0;Fe<3;++Fe)Ee[4*Me+Fe]=Ue[Fe];te?Ee[4*Me+3]=255*G(Me/255,te):Ee[4*Me+3]=255*Ue[3]}return b(Ee,[256,256,4],[4,0,1])}function H(de){for(var te=de.length,ke=new Array(te),Ee=0;Ee0){var bt=this.triShader;bt.bind(),bt.uniforms=me,this.triangleVAO.bind(),te.drawArrays(te.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var bt=this.lineShader;bt.bind(),bt.uniforms=me,this.edgeVAO.bind(),te.lineWidth(this.lineWidth*this.pixelRatio),te.drawArrays(te.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var bt=this.pointShader;bt.bind(),bt.uniforms=me,this.pointVAO.bind(),te.drawArrays(te.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var bt=this.contourShader;bt.bind(),bt.uniforms=me,this.contourVAO.bind(),te.drawArrays(te.LINES,0,this.contourCount),this.contourVAO.unbind()}},U.drawPick=function(de){de=de||{};for(var te=this.gl,ke=de.model||B,Ee=de.view||B,Me=de.projection||B,Ue=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Fe=0;Fe<3;++Fe)Ue[0][Fe]=Math.max(Ue[0][Fe],this.clipBounds[0][Fe]),Ue[1][Fe]=Math.min(Ue[1][Fe],this.clipBounds[1][Fe]);this._model=[].slice.call(ke),this._view=[].slice.call(Ee),this._projection=[].slice.call(Me),this._resolution=[te.drawingBufferWidth,te.drawingBufferHeight];var me={model:ke,view:Ee,projection:Me,clipBounds:Ue,pickId:this.pickId/255},Ne=this.pickShader;if(Ne.bind(),Ne.uniforms=me,this.triangleCount>0&&(this.triangleVAO.bind(),te.drawArrays(te.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),te.lineWidth(this.lineWidth*this.pixelRatio),te.drawArrays(te.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var Ne=this.pointPickShader;Ne.bind(),Ne.uniforms=me,this.pointVAO.bind(),te.drawArrays(te.POINTS,0,this.pointCount),this.pointVAO.unbind()}},U.pick=function(de){if(!de||de.id!==this.pickId)return null;for(var te=de.value[0]+256*de.value[1]+65536*de.value[2],ke=this.cells[te],Ee=this.positions,Me=new Array(ke.length),Ue=0;UeMath.abs(m))v.rotate(B,0,0,-S*P*Math.PI*_.rotateSpeed/window.innerWidth);else if(!_._ortho){var F=-_.zoomSpeed*A*m/window.innerHeight*(B-v.lastT())/20;v.pan(B,0,0,E*(Math.exp(F)-1))}}},!0)},_.enableMouseListeners(),_}},799:function(i,a,o){var s=o(3236),u=o(9405),l=s([`precision mediump float; +`]);a.meshShader={vertex:u,fragment:l,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.wireShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.pointShader={vertex:h,fragment:d,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},a.pickShader={vertex:p,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},a.pointPickShader={vertex:b,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},a.contourShader={vertex:v,fragment:k,attributes:[{name:"position",type:"vec3"}]}},7201:function(i,a,o){"use strict";var s=1e-6,u=1e-6,l=o(9405),f=o(2762),c=o(8116),h=o(7766),d=o(8406),p=o(6760),x=o(7608),b=o(9618),v=o(6729),k=o(7765),E=o(1888),T=o(840),L=o(7626),_=T.meshShader,C=T.wireShader,S=T.pointShader,m=T.pickShader,P=T.pointPickShader,A=T.contourShader,B=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function F(pe,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Je,nt,gt,Nt,it,Ye,kt,Tt,St,Dt,Zt,Et,Ae,at,wt,vt,st){this.gl=pe,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=te,this.dirty=!0,this.triShader=ke,this.lineShader=Ee,this.pointShader=Me,this.pickShader=Ne,this.pointPickShader=Fe,this.contourShader=ye,this.trianglePositions=Ve,this.triangleColors=Je,this.triangleNormals=gt,this.triangleUVs=nt,this.triangleIds=ce,this.triangleVAO=Nt,this.triangleCount=0,this.lineWidth=1,this.edgePositions=it,this.edgeColors=kt,this.edgeUVs=Tt,this.edgeIds=Ye,this.edgeVAO=St,this.edgeCount=0,this.pointPositions=Dt,this.pointColors=Et,this.pointUVs=Ae,this.pointSizes=at,this.pointIds=Zt,this.pointVAO=wt,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=vt,this.contourVAO=st,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=B,this._view=B,this._projection=B,this._resolution=[1,1]}var U=F.prototype;U.isOpaque=function(){return!this.hasAlpha},U.isTransparent=function(){return this.hasAlpha},U.pickSlots=1,U.setPickBase=function(pe){this.pickId=pe};function G(pe,te){if(!te||!te.length)return 1;for(var ke=0;kepe&&ke>0){var Ee=(te[ke][0]-pe)/(te[ke][0]-te[ke-1][0]);return te[ke][1]*(1-Ee)+Ee*te[ke-1][1]}}return 1}function j(pe,te){for(var ke=v({colormap:pe,nshades:256,format:"rgba"}),Ee=new Uint8Array(256*4),Me=0;Me<256;++Me){for(var Ne=ke[Me],Fe=0;Fe<3;++Fe)Ee[4*Me+Fe]=Ne[Fe];te?Ee[4*Me+3]=255*G(Me/255,te):Ee[4*Me+3]=255*Ne[3]}return b(Ee,[256,256,4],[4,0,1])}function H(pe){for(var te=pe.length,ke=new Array(te),Ee=0;Ee0){var gt=this.triShader;gt.bind(),gt.uniforms=ye,this.triangleVAO.bind(),te.drawArrays(te.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var gt=this.lineShader;gt.bind(),gt.uniforms=ye,this.edgeVAO.bind(),te.lineWidth(this.lineWidth*this.pixelRatio),te.drawArrays(te.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var gt=this.pointShader;gt.bind(),gt.uniforms=ye,this.pointVAO.bind(),te.drawArrays(te.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var gt=this.contourShader;gt.bind(),gt.uniforms=ye,this.contourVAO.bind(),te.drawArrays(te.LINES,0,this.contourCount),this.contourVAO.unbind()}},U.drawPick=function(pe){pe=pe||{};for(var te=this.gl,ke=pe.model||B,Ee=pe.view||B,Me=pe.projection||B,Ne=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Fe=0;Fe<3;++Fe)Ne[0][Fe]=Math.max(Ne[0][Fe],this.clipBounds[0][Fe]),Ne[1][Fe]=Math.min(Ne[1][Fe],this.clipBounds[1][Fe]);this._model=[].slice.call(ke),this._view=[].slice.call(Ee),this._projection=[].slice.call(Me),this._resolution=[te.drawingBufferWidth,te.drawingBufferHeight];var ye={model:ke,view:Ee,projection:Me,clipBounds:Ne,pickId:this.pickId/255},Ve=this.pickShader;if(Ve.bind(),Ve.uniforms=ye,this.triangleCount>0&&(this.triangleVAO.bind(),te.drawArrays(te.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),te.lineWidth(this.lineWidth*this.pixelRatio),te.drawArrays(te.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var Ve=this.pointPickShader;Ve.bind(),Ve.uniforms=ye,this.pointVAO.bind(),te.drawArrays(te.POINTS,0,this.pointCount),this.pointVAO.unbind()}},U.pick=function(pe){if(!pe||pe.id!==this.pickId)return null;for(var te=pe.value[0]+256*pe.value[1]+65536*pe.value[2],ke=this.cells[te],Ee=this.positions,Me=new Array(ke.length),Ne=0;NeMath.abs(m))v.rotate(B,0,0,-S*P*Math.PI*_.rotateSpeed/window.innerWidth);else if(!_._ortho){var F=-_.zoomSpeed*A*m/window.innerHeight*(B-v.lastT())/20;v.pan(B,0,0,E*(Math.exp(F)-1))}}},!0)},_.enableMouseListeners(),_}},799:function(i,a,o){var s=o(3236),u=o(9405),l=s([`precision mediump float; #define GLSLIFY 1 attribute vec2 position; varying vec2 uv; @@ -1252,7 +1252,7 @@ varying vec2 uv; void main() { vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0)); gl_FragColor = min(vec4(1,1,1,1), accum); -}`]);i.exports=function(c){return u(c,l,f,null,[{name:"position",type:"vec2"}])}},4100:function(i,a,o){"use strict";var s=o(4437),u=o(3837),l=o(5445),f=o(4449),c=o(3589),h=o(2260),d=o(7169),p=o(351),x=o(4772),b=o(4040),v=o(799),k=o(9216)({tablet:!0,featureDetect:!0});i.exports={createScene:C,createCamera:s};function E(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function T(m,P){var A=null;try{A=m.getContext("webgl",P),A||(A=m.getContext("experimental-webgl",P))}catch(B){return null}return A}function L(m){var P=Math.round(Math.log(Math.abs(m))/Math.log(10));if(P<0){var A=Math.round(Math.pow(10,-P));return Math.ceil(m*A)/A}else if(P>0){var A=Math.round(Math.pow(10,P));return Math.ceil(m/A)*A}return Math.ceil(m)}function _(m){return typeof m=="boolean"?m:!0}function C(m){m=m||{},m.camera=m.camera||{};var P=m.canvas;if(!P)if(P=document.createElement("canvas"),m.container){var A=m.container;A.appendChild(P)}else document.body.appendChild(P);var B=m.gl;if(B||(m.glOptions&&(k=!!m.glOptions.preserveDrawingBuffer),B=T(P,m.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:k})),!B)throw new Error("webgl not supported");var F=m.bounds||[[-10,-10,-10],[10,10,10]],U=new E,G=h(B,B.drawingBufferWidth,B.drawingBufferHeight,{preferFloat:!k}),j=v(B),H=m.cameraObject&&m.cameraObject._ortho===!0||m.camera.projection&&m.camera.projection.type==="orthographic"||!1,N={eye:m.camera.eye||[2,0,0],center:m.camera.center||[0,0,0],up:m.camera.up||[0,1,0],zoomMin:m.camera.zoomMax||.1,zoomMax:m.camera.zoomMin||100,mode:m.camera.mode||"turntable",_ortho:H},W=m.axes||{},re=u(B,W);re.enable=!W.disable;var ae=m.spikes||{},be=f(B,ae),Pe=[],Ce=[],de=[],te=[],ke=!0,Fe=!0,Ee=new Array(16),Me=new Array(16),Ue={view:null,projection:Ee,model:Me,_ortho:!1},Fe=!0,me=[B.drawingBufferWidth,B.drawingBufferHeight],Ne=m.cameraObject||s(P,N),ce={gl:B,contextLost:!1,pixelRatio:m.pixelRatio||1,canvas:P,selection:U,camera:Ne,axes:re,axesPixels:null,spikes:be,bounds:F,objects:Pe,shape:me,aspect:m.aspectRatio||[1,1,1],pickRadius:m.pickRadius||10,zNear:m.zNear||.01,zFar:m.zFar||1e3,fovy:m.fovy||Math.PI/4,clearColor:m.clearColor||[0,0,0,0],autoResize:_(m.autoResize),autoBounds:_(m.autoBounds),autoScale:!!m.autoScale,autoCenter:_(m.autoCenter),clipToBounds:_(m.clipToBounds),snapToData:!!m.snapToData,onselect:m.onselect||null,onrender:m.onrender||null,onclick:m.onclick||null,cameraParams:Ue,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(Bt){this.aspect[0]=Bt.x,this.aspect[1]=Bt.y,this.aspect[2]=Bt.z,Fe=!0},setBounds:function(Bt,Zt){this.bounds[0][Bt]=Zt.min,this.bounds[1][Bt]=Zt.max},setClearColor:function(Bt){this.clearColor=Bt},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},Ke=[B.drawingBufferWidth/ce.pixelRatio|0,B.drawingBufferHeight/ce.pixelRatio|0];function it(){if(!ce._stopped&&ce.autoResize){var Bt=P.parentNode,Zt=1,Et=1;Bt&&Bt!==document.body?(Zt=Bt.clientWidth,Et=Bt.clientHeight):(Zt=window.innerWidth,Et=window.innerHeight);var Ae=Math.ceil(Zt*ce.pixelRatio)|0,ot=Math.ceil(Et*ce.pixelRatio)|0;if(Ae!==P.width||ot!==P.height){P.width=Ae,P.height=ot;var dt=P.style;dt.position=dt.position||"absolute",dt.left="0px",dt.top="0px",dt.width=Zt+"px",dt.height=Et+"px",ke=!0}}}ce.autoResize&&it(),window.addEventListener("resize",it);function bt(){for(var Bt=Pe.length,Zt=te.length,Et=0;Et0&&de[Zt-1]===0;)de.pop(),te.pop().dispose()}ce.update=function(Bt){ce._stopped||(Bt=Bt||{},ke=!0,Fe=!0)},ce.add=function(Bt){ce._stopped||(Bt.axes=re,Pe.push(Bt),Ce.push(-1),ke=!0,Fe=!0,bt())},ce.remove=function(Bt){if(!ce._stopped){var Zt=Pe.indexOf(Bt);Zt<0||(Pe.splice(Zt,1),Ce.pop(),ke=!0,Fe=!0,bt())}},ce.dispose=function(){if(!ce._stopped&&(ce._stopped=!0,window.removeEventListener("resize",it),P.removeEventListener("webglcontextlost",Nt),ce.mouseListener.enabled=!1,!ce.contextLost)){re.dispose(),be.dispose();for(var Bt=0;BtU.distance)continue;for(var rt=0;rt1e-6?(k=Math.acos(E),T=Math.sin(k),L=Math.sin((1-l)*k)/T,_=Math.sin(l*k)/T):(L=1-l,_=l),o[0]=L*f+_*p,o[1]=L*c+_*x,o[2]=L*h+_*b,o[3]=L*d+_*v,o}},5964:function(i){"use strict";i.exports=function(a){return!a&&a!==0?"":a.toString()}},9366:function(i,a,o){"use strict";var s=o(4359);i.exports=l;var u={};function l(f,c,h){var d=[c.style,c.weight,c.variant,c.family].join("_"),p=u[d];if(p||(p=u[d]={}),f in p)return p[f];var x={textAlign:"center",textBaseline:"middle",lineHeight:1,font:c.family,fontStyle:c.style,fontWeight:c.weight,fontVariant:c.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};x.triangles=!0;var b=s(f,x);x.triangles=!1;var v=s(f,x),k,E;if(h&&h!==1){for(k=0;k0){var A=Math.round(Math.pow(10,P));return Math.ceil(m/A)*A}return Math.ceil(m)}function _(m){return typeof m=="boolean"?m:!0}function C(m){m=m||{},m.camera=m.camera||{};var P=m.canvas;if(!P)if(P=document.createElement("canvas"),m.container){var A=m.container;A.appendChild(P)}else document.body.appendChild(P);var B=m.gl;if(B||(m.glOptions&&(k=!!m.glOptions.preserveDrawingBuffer),B=T(P,m.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:k})),!B)throw new Error("webgl not supported");var F=m.bounds||[[-10,-10,-10],[10,10,10]],U=new E,G=h(B,B.drawingBufferWidth,B.drawingBufferHeight,{preferFloat:!k}),j=v(B),H=m.cameraObject&&m.cameraObject._ortho===!0||m.camera.projection&&m.camera.projection.type==="orthographic"||!1,N={eye:m.camera.eye||[2,0,0],center:m.camera.center||[0,0,0],up:m.camera.up||[0,1,0],zoomMin:m.camera.zoomMax||.1,zoomMax:m.camera.zoomMin||100,mode:m.camera.mode||"turntable",_ortho:H},W=m.axes||{},re=u(B,W);re.enable=!W.disable;var ae=m.spikes||{},be=f(B,ae),Ce=[],Le=[],pe=[],te=[],ke=!0,Fe=!0,Ee=new Array(16),Me=new Array(16),Ne={view:null,projection:Ee,model:Me,_ortho:!1},Fe=!0,ye=[B.drawingBufferWidth,B.drawingBufferHeight],Ve=m.cameraObject||s(P,N),ce={gl:B,contextLost:!1,pixelRatio:m.pixelRatio||1,canvas:P,selection:U,camera:Ve,axes:re,axesPixels:null,spikes:be,bounds:F,objects:Ce,shape:ye,aspect:m.aspectRatio||[1,1,1],pickRadius:m.pickRadius||10,zNear:m.zNear||.01,zFar:m.zFar||1e3,fovy:m.fovy||Math.PI/4,clearColor:m.clearColor||[0,0,0,0],autoResize:_(m.autoResize),autoBounds:_(m.autoBounds),autoScale:!!m.autoScale,autoCenter:_(m.autoCenter),clipToBounds:_(m.clipToBounds),snapToData:!!m.snapToData,onselect:m.onselect||null,onrender:m.onrender||null,onclick:m.onclick||null,cameraParams:Ne,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(Dt){this.aspect[0]=Dt.x,this.aspect[1]=Dt.y,this.aspect[2]=Dt.z,Fe=!0},setBounds:function(Dt,Zt){this.bounds[0][Dt]=Zt.min,this.bounds[1][Dt]=Zt.max},setClearColor:function(Dt){this.clearColor=Dt},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},Je=[B.drawingBufferWidth/ce.pixelRatio|0,B.drawingBufferHeight/ce.pixelRatio|0];function nt(){if(!ce._stopped&&ce.autoResize){var Dt=P.parentNode,Zt=1,Et=1;Dt&&Dt!==document.body?(Zt=Dt.clientWidth,Et=Dt.clientHeight):(Zt=window.innerWidth,Et=window.innerHeight);var Ae=Math.ceil(Zt*ce.pixelRatio)|0,at=Math.ceil(Et*ce.pixelRatio)|0;if(Ae!==P.width||at!==P.height){P.width=Ae,P.height=at;var wt=P.style;wt.position=wt.position||"absolute",wt.left="0px",wt.top="0px",wt.width=Zt+"px",wt.height=Et+"px",ke=!0}}}ce.autoResize&&nt(),window.addEventListener("resize",nt);function gt(){for(var Dt=Ce.length,Zt=te.length,Et=0;Et0&&pe[Zt-1]===0;)pe.pop(),te.pop().dispose()}ce.update=function(Dt){ce._stopped||(Dt=Dt||{},ke=!0,Fe=!0)},ce.add=function(Dt){ce._stopped||(Dt.axes=re,Ce.push(Dt),Le.push(-1),ke=!0,Fe=!0,gt())},ce.remove=function(Dt){if(!ce._stopped){var Zt=Ce.indexOf(Dt);Zt<0||(Ce.splice(Zt,1),Le.pop(),ke=!0,Fe=!0,gt())}},ce.dispose=function(){if(!ce._stopped&&(ce._stopped=!0,window.removeEventListener("resize",nt),P.removeEventListener("webglcontextlost",Nt),ce.mouseListener.enabled=!1,!ce.contextLost)){re.dispose(),be.dispose();for(var Dt=0;DtU.distance)continue;for(var rt=0;rt1e-6?(k=Math.acos(E),T=Math.sin(k),L=Math.sin((1-l)*k)/T,_=Math.sin(l*k)/T):(L=1-l,_=l),o[0]=L*f+_*p,o[1]=L*c+_*x,o[2]=L*h+_*b,o[3]=L*d+_*v,o}},5964:function(i){"use strict";i.exports=function(a){return!a&&a!==0?"":a.toString()}},9366:function(i,a,o){"use strict";var s=o(4359);i.exports=l;var u={};function l(f,c,h){var d=[c.style,c.weight,c.variant,c.family].join("_"),p=u[d];if(p||(p=u[d]={}),f in p)return p[f];var x={textAlign:"center",textBaseline:"middle",lineHeight:1,font:c.family,fontStyle:c.style,fontWeight:c.weight,fontVariant:c.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};x.triangles=!0;var b=s(f,x);x.triangles=!1;var v=s(f,x),k,E;if(h&&h!==1){for(k=0;k1?1:Me}function S(Me,Ue,Fe,me,Ne,ce,Ke,it,bt,Nt,nt,Ye){this.gl=Me,this.pixelRatio=1,this.shader=Ue,this.orthoShader=Fe,this.projectShader=me,this.pointBuffer=Ne,this.colorBuffer=ce,this.glyphBuffer=Ke,this.idBuffer=it,this.vao=bt,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=Nt,this.pickOrthoShader=nt,this.pickProjectShader=Ye,this.points=[],this._selectResult=new _(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var m=S.prototype;m.pickSlots=1,m.setPickBase=function(Me){this.pickId=Me},m.isTransparent=function(){if(this.hasAlpha)return!0;for(var Me=0;Me<3;++Me)if(this.axesProject[Me]&&this.projectHasAlpha)return!0;return!1},m.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Me=0;Me<3;++Me)if(this.axesProject[Me]&&!this.projectHasAlpha)return!0;return!1};var P=[0,0],A=[0,0,0],B=[0,0,0],F=[0,0,0,1],U=[0,0,0,1],G=x.slice(),j=[0,0,0],H=[[0,0,0],[0,0,0]];function N(Me){return Me[0]=Me[1]=Me[2]=0,Me}function W(Me,Ue){return Me[0]=Ue[0],Me[1]=Ue[1],Me[2]=Ue[2],Me[3]=1,Me}function re(Me,Ue,Fe,me){return Me[0]=Ue[0],Me[1]=Ue[1],Me[2]=Ue[2],Me[Fe]=me,Me}function ae(Me){for(var Ue=H,Fe=0;Fe<2;++Fe)for(var me=0;me<3;++me)Ue[Fe][me]=Math.max(Math.min(Me[Fe][me],1e8),-1e8);return Ue}function be(Me,Ue,Fe,me){var Ne=Ue.axesProject,ce=Ue.gl,Ke=Me.uniforms,it=Fe.model||x,bt=Fe.view||x,Nt=Fe.projection||x,nt=Ue.axesBounds,Ye=ae(Ue.clipBounds),kt;Ue.axes&&Ue.axes.lastCubeProps?kt=Ue.axes.lastCubeProps.axis:kt=[1,1,1],P[0]=2/ce.drawingBufferWidth,P[1]=2/ce.drawingBufferHeight,Me.bind(),Ke.view=bt,Ke.projection=Nt,Ke.screenSize=P,Ke.highlightId=Ue.highlightId,Ke.highlightScale=Ue.highlightScale,Ke.clipBounds=Ye,Ke.pickGroup=Ue.pickId/255,Ke.pixelRatio=me;for(var At=0;At<3;++At)if(Ne[At]){Ke.scale=Ue.projectScale[At],Ke.opacity=Ue.projectOpacity[At];for(var St=G,Bt=0;Bt<16;++Bt)St[Bt]=0;for(var Bt=0;Bt<4;++Bt)St[5*Bt]=1;St[5*At]=0,kt[At]<0?St[12+At]=nt[0][At]:St[12+At]=nt[1][At],c(St,it,St),Ke.model=St;var Zt=(At+1)%3,Et=(At+2)%3,Ae=N(A),ot=N(B);Ae[Zt]=1,ot[Et]=1;var dt=L(Nt,bt,it,W(F,Ae)),pt=L(Nt,bt,it,W(U,ot));if(Math.abs(dt[1])>Math.abs(pt[1])){var at=dt;dt=pt,pt=at,at=Ae,Ae=ot,ot=at;var Xe=Zt;Zt=Et,Et=Xe}dt[0]<0&&(Ae[Zt]=-1),pt[1]>0&&(ot[Et]=-1);for(var rt=0,Qe=0,Bt=0;Bt<4;++Bt)rt+=Math.pow(it[4*Zt+Bt],2),Qe+=Math.pow(it[4*Et+Bt],2);Ae[Zt]/=Math.sqrt(rt),ot[Et]/=Math.sqrt(Qe),Ke.axes[0]=Ae,Ke.axes[1]=ot,Ke.fragClipBounds[0]=re(j,Ye[0],At,-1e8),Ke.fragClipBounds[1]=re(j,Ye[1],At,1e8),Ue.vao.bind(),Ue.vao.draw(ce.TRIANGLES,Ue.vertexCount),Ue.lineWidth>0&&(ce.lineWidth(Ue.lineWidth*me),Ue.vao.draw(ce.LINES,Ue.lineVertexCount,Ue.vertexCount)),Ue.vao.unbind()}}var Pe=[-1e8,-1e8,-1e8],Ce=[1e8,1e8,1e8],de=[Pe,Ce];function te(Me,Ue,Fe,me,Ne,ce,Ke){var it=Fe.gl;if((ce===Fe.projectHasAlpha||Ke)&&be(Ue,Fe,me,Ne),ce===Fe.hasAlpha||Ke){Me.bind();var bt=Me.uniforms;bt.model=me.model||x,bt.view=me.view||x,bt.projection=me.projection||x,P[0]=2/it.drawingBufferWidth,P[1]=2/it.drawingBufferHeight,bt.screenSize=P,bt.highlightId=Fe.highlightId,bt.highlightScale=Fe.highlightScale,bt.fragClipBounds=de,bt.clipBounds=Fe.axes.bounds,bt.opacity=Fe.opacity,bt.pickGroup=Fe.pickId/255,bt.pixelRatio=Ne,Fe.vao.bind(),Fe.vao.draw(it.TRIANGLES,Fe.vertexCount),Fe.lineWidth>0&&(it.lineWidth(Fe.lineWidth*Ne),Fe.vao.draw(it.LINES,Fe.lineVertexCount,Fe.vertexCount)),Fe.vao.unbind()}}m.draw=function(Me){var Ue=this.useOrtho?this.orthoShader:this.shader;te(Ue,this.projectShader,this,Me,this.pixelRatio,!1,!1)},m.drawTransparent=function(Me){var Ue=this.useOrtho?this.orthoShader:this.shader;te(Ue,this.projectShader,this,Me,this.pixelRatio,!0,!1)},m.drawPick=function(Me){var Ue=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;te(Ue,this.pickProjectShader,this,Me,1,!0,!0)},m.pick=function(Me){if(!Me||Me.id!==this.pickId)return null;var Ue=Me.value[2]+(Me.value[1]<<8)+(Me.value[0]<<16);if(Ue>=this.pointCount||Ue<0)return null;var Fe=this.points[Ue],me=this._selectResult;me.index=Ue;for(var Ne=0;Ne<3;++Ne)me.position[Ne]=me.dataCoordinate[Ne]=Fe[Ne];return me},m.highlight=function(Me){if(!Me)this.highlightId=[1,1,1,1];else{var Ue=Me.index,Fe=Ue&255,me=Ue>>8&255,Ne=Ue>>16&255;this.highlightId=[Fe/255,me/255,Ne/255,0]}};function ke(Me,Ue,Fe,me){var Ne;E(Me)?Ue0){var Ht=0,Re=Et,xe=[0,0,0,1],Oe=[0,0,0,1],Ie=E(kt)&&E(kt[0]),De=E(Bt)&&E(Bt[0]);e:for(var me=0;me0?1-Qe[0][0]:Pt<0?1+Qe[1][0]:1,rr*=rr>0?1-Qe[0][1]:rr<0?1+Qe[1][1]:1;for(var Wr=[Pt,rr],Di=Xe.cells||[],Ii=Xe.positions||[],pt=0;ptthis.buffer.length){u.free(this.buffer);for(var E=this.buffer=u.mallocUint8(f(k*v*4)),T=0;TE)for(v=E;vk)for(v=k;v=0){for(var H=j.type.charAt(j.type.length-1)|0,N=new Array(H),W=0;W=0;)re+=1;U[G]=re}var ae=new Array(E.length);function be(){_.program=f.program(C,_._vref,_._fref,F,U);for(var Pe=0;Pe1?1:Me}function S(Me,Ne,Fe,ye,Ve,ce,Je,nt,gt,Nt,it,Ye){this.gl=Me,this.pixelRatio=1,this.shader=Ne,this.orthoShader=Fe,this.projectShader=ye,this.pointBuffer=Ve,this.colorBuffer=ce,this.glyphBuffer=Je,this.idBuffer=nt,this.vao=gt,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=Nt,this.pickOrthoShader=it,this.pickProjectShader=Ye,this.points=[],this._selectResult=new _(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var m=S.prototype;m.pickSlots=1,m.setPickBase=function(Me){this.pickId=Me},m.isTransparent=function(){if(this.hasAlpha)return!0;for(var Me=0;Me<3;++Me)if(this.axesProject[Me]&&this.projectHasAlpha)return!0;return!1},m.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Me=0;Me<3;++Me)if(this.axesProject[Me]&&!this.projectHasAlpha)return!0;return!1};var P=[0,0],A=[0,0,0],B=[0,0,0],F=[0,0,0,1],U=[0,0,0,1],G=x.slice(),j=[0,0,0],H=[[0,0,0],[0,0,0]];function N(Me){return Me[0]=Me[1]=Me[2]=0,Me}function W(Me,Ne){return Me[0]=Ne[0],Me[1]=Ne[1],Me[2]=Ne[2],Me[3]=1,Me}function re(Me,Ne,Fe,ye){return Me[0]=Ne[0],Me[1]=Ne[1],Me[2]=Ne[2],Me[Fe]=ye,Me}function ae(Me){for(var Ne=H,Fe=0;Fe<2;++Fe)for(var ye=0;ye<3;++ye)Ne[Fe][ye]=Math.max(Math.min(Me[Fe][ye],1e8),-1e8);return Ne}function be(Me,Ne,Fe,ye){var Ve=Ne.axesProject,ce=Ne.gl,Je=Me.uniforms,nt=Fe.model||x,gt=Fe.view||x,Nt=Fe.projection||x,it=Ne.axesBounds,Ye=ae(Ne.clipBounds),kt;Ne.axes&&Ne.axes.lastCubeProps?kt=Ne.axes.lastCubeProps.axis:kt=[1,1,1],P[0]=2/ce.drawingBufferWidth,P[1]=2/ce.drawingBufferHeight,Me.bind(),Je.view=gt,Je.projection=Nt,Je.screenSize=P,Je.highlightId=Ne.highlightId,Je.highlightScale=Ne.highlightScale,Je.clipBounds=Ye,Je.pickGroup=Ne.pickId/255,Je.pixelRatio=ye;for(var Tt=0;Tt<3;++Tt)if(Ve[Tt]){Je.scale=Ne.projectScale[Tt],Je.opacity=Ne.projectOpacity[Tt];for(var St=G,Dt=0;Dt<16;++Dt)St[Dt]=0;for(var Dt=0;Dt<4;++Dt)St[5*Dt]=1;St[5*Tt]=0,kt[Tt]<0?St[12+Tt]=it[0][Tt]:St[12+Tt]=it[1][Tt],c(St,nt,St),Je.model=St;var Zt=(Tt+1)%3,Et=(Tt+2)%3,Ae=N(A),at=N(B);Ae[Zt]=1,at[Et]=1;var wt=L(Nt,gt,nt,W(F,Ae)),vt=L(Nt,gt,nt,W(U,at));if(Math.abs(wt[1])>Math.abs(vt[1])){var st=wt;wt=vt,vt=st,st=Ae,Ae=at,at=st;var Ue=Zt;Zt=Et,Et=Ue}wt[0]<0&&(Ae[Zt]=-1),vt[1]>0&&(at[Et]=-1);for(var rt=0,$e=0,Dt=0;Dt<4;++Dt)rt+=Math.pow(nt[4*Zt+Dt],2),$e+=Math.pow(nt[4*Et+Dt],2);Ae[Zt]/=Math.sqrt(rt),at[Et]/=Math.sqrt($e),Je.axes[0]=Ae,Je.axes[1]=at,Je.fragClipBounds[0]=re(j,Ye[0],Tt,-1e8),Je.fragClipBounds[1]=re(j,Ye[1],Tt,1e8),Ne.vao.bind(),Ne.vao.draw(ce.TRIANGLES,Ne.vertexCount),Ne.lineWidth>0&&(ce.lineWidth(Ne.lineWidth*ye),Ne.vao.draw(ce.LINES,Ne.lineVertexCount,Ne.vertexCount)),Ne.vao.unbind()}}var Ce=[-1e8,-1e8,-1e8],Le=[1e8,1e8,1e8],pe=[Ce,Le];function te(Me,Ne,Fe,ye,Ve,ce,Je){var nt=Fe.gl;if((ce===Fe.projectHasAlpha||Je)&&be(Ne,Fe,ye,Ve),ce===Fe.hasAlpha||Je){Me.bind();var gt=Me.uniforms;gt.model=ye.model||x,gt.view=ye.view||x,gt.projection=ye.projection||x,P[0]=2/nt.drawingBufferWidth,P[1]=2/nt.drawingBufferHeight,gt.screenSize=P,gt.highlightId=Fe.highlightId,gt.highlightScale=Fe.highlightScale,gt.fragClipBounds=pe,gt.clipBounds=Fe.axes.bounds,gt.opacity=Fe.opacity,gt.pickGroup=Fe.pickId/255,gt.pixelRatio=Ve,Fe.vao.bind(),Fe.vao.draw(nt.TRIANGLES,Fe.vertexCount),Fe.lineWidth>0&&(nt.lineWidth(Fe.lineWidth*Ve),Fe.vao.draw(nt.LINES,Fe.lineVertexCount,Fe.vertexCount)),Fe.vao.unbind()}}m.draw=function(Me){var Ne=this.useOrtho?this.orthoShader:this.shader;te(Ne,this.projectShader,this,Me,this.pixelRatio,!1,!1)},m.drawTransparent=function(Me){var Ne=this.useOrtho?this.orthoShader:this.shader;te(Ne,this.projectShader,this,Me,this.pixelRatio,!0,!1)},m.drawPick=function(Me){var Ne=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;te(Ne,this.pickProjectShader,this,Me,1,!0,!0)},m.pick=function(Me){if(!Me||Me.id!==this.pickId)return null;var Ne=Me.value[2]+(Me.value[1]<<8)+(Me.value[0]<<16);if(Ne>=this.pointCount||Ne<0)return null;var Fe=this.points[Ne],ye=this._selectResult;ye.index=Ne;for(var Ve=0;Ve<3;++Ve)ye.position[Ve]=ye.dataCoordinate[Ve]=Fe[Ve];return ye},m.highlight=function(Me){if(!Me)this.highlightId=[1,1,1,1];else{var Ne=Me.index,Fe=Ne&255,ye=Ne>>8&255,Ve=Ne>>16&255;this.highlightId=[Fe/255,ye/255,Ve/255,0]}};function ke(Me,Ne,Fe,ye){var Ve;E(Me)?Ne0){var Ut=0,Ie=Et,xe=[0,0,0,1],Oe=[0,0,0,1],Re=E(kt)&&E(kt[0]),De=E(Dt)&&E(Dt[0]);e:for(var ye=0;ye0?1-$e[0][0]:Pt<0?1+$e[1][0]:1,rr*=rr>0?1-$e[0][1]:rr<0?1+$e[1][1]:1;for(var Hr=[Pt,rr],Di=Ue.cells||[],Ii=Ue.positions||[],vt=0;vtthis.buffer.length){u.free(this.buffer);for(var E=this.buffer=u.mallocUint8(f(k*v*4)),T=0;TE)for(v=E;vk)for(v=k;v=0){for(var H=j.type.charAt(j.type.length-1)|0,N=new Array(H),W=0;W=0;)re+=1;U[G]=re}var ae=new Array(E.length);function be(){_.program=f.program(C,_._vref,_._fref,F,U);for(var Ce=0;Ce=0){var m=C.charCodeAt(C.length-1)-48;if(m<2||m>4)throw new s("","Invalid data type for attribute "+_+": "+C);c(p,x,S[0],v,m,k,_)}else if(C.indexOf("mat")>=0){var m=C.charCodeAt(C.length-1)-48;if(m<2||m>4)throw new s("","Invalid data type for attribute "+_+": "+C);h(p,x,S,v,m,k,_)}else throw new s("","Unknown data type for attribute "+_+": "+C);break}}return k}},3327:function(i,a,o){"use strict";var s=o(216),u=o(8866);i.exports=c;function l(h){return function(){return h}}function f(h,d){for(var p=new Array(h),x=0;x4)throw new u("","Invalid data type");switch(re.charAt(0)){case"b":case"i":h["uniform"+ae+"iv"](x[U],G);break;case"v":h["uniform"+ae+"fv"](x[U],G);break;default:throw new u("","Unrecognized data type for vector "+name+": "+re)}}else if(re.indexOf("mat")===0&&re.length===4){if(ae=re.charCodeAt(re.length-1)-48,ae<2||ae>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+re);h["uniformMatrix"+ae+"fv"](x[U],!1,G);break}else throw new u("","Unknown uniform data type for "+name+": "+re)}}}}}function k(C,S){if(typeof S!="object")return[[C,S]];var m=[];for(var P in S){var A=S[P],B=C;parseInt(P)+""===P?B+="["+P+"]":B+="."+P,typeof A=="object"?m.push.apply(m,k(B,A)):m.push([B,A])}return m}function E(C){switch(C){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var S=C.indexOf("vec");if(0<=S&&S<=1&&C.length===4+S){var m=C.charCodeAt(C.length-1)-48;if(m<2||m>4)throw new u("","Invalid data type");return C.charAt(0)==="b"?f(m,!1):f(m,0)}else if(C.indexOf("mat")===0&&C.length===4){var m=C.charCodeAt(C.length-1)-48;if(m<2||m>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+C);return f(m*m,0)}else throw new u("","Unknown uniform data type for "+name+": "+C)}}function T(C,S,m){if(typeof m=="object"){var P=L(m);Object.defineProperty(C,S,{get:l(P),set:v(m),enumerable:!0,configurable:!1})}else x[m]?Object.defineProperty(C,S,{get:b(m),set:v(m),enumerable:!0,configurable:!1}):C[S]=E(p[m].type)}function L(C){var S;if(Array.isArray(C)){S=new Array(C.length);for(var m=0;m1){p[0]in h||(h[p[0]]=[]),h=h[p[0]];for(var x=1;x1)for(var k=0;k0)for(var te=0;teL)return C-1}return C},d=function(T,L,_){return T_?_:T},p=function(T,L,_){var C=L.vectors,S=L.meshgrid,m=T[0],P=T[1],A=T[2],B=S[0].length,F=S[1].length,U=S[2].length,G=h(S[0],m),j=h(S[1],P),H=h(S[2],A),N=G+1,W=j+1,re=H+1;if(G=d(G,0,B-1),N=d(N,0,B-1),j=d(j,0,F-1),W=d(W,0,F-1),H=d(H,0,U-1),re=d(re,0,U-1),G<0||j<0||H<0||N>B-1||W>F-1||re>U-1)return s.create();var ae=S[0][G],be=S[0][N],Pe=S[1][j],Ce=S[1][W],de=S[2][H],te=S[2][re],ke=(m-ae)/(be-ae),Ee=(P-Pe)/(Ce-Pe),Me=(A-de)/(te-de);isFinite(ke)||(ke=.5),isFinite(Ee)||(Ee=.5),isFinite(Me)||(Me=.5);var Ue,Fe,me,Ne,ce,Ke;switch(_.reversedX&&(G=B-1-G,N=B-1-N),_.reversedY&&(j=F-1-j,W=F-1-W),_.reversedZ&&(H=U-1-H,re=U-1-re),_.filled){case 5:ce=H,Ke=re,me=j*U,Ne=W*U,Ue=G*U*F,Fe=N*U*F;break;case 4:ce=H,Ke=re,Ue=G*U,Fe=N*U,me=j*U*B,Ne=W*U*B;break;case 3:me=j,Ne=W,ce=H*F,Ke=re*F,Ue=G*F*U,Fe=N*F*U;break;case 2:me=j,Ne=W,Ue=G*F,Fe=N*F,ce=H*F*B,Ke=re*F*B;break;case 1:Ue=G,Fe=N,ce=H*B,Ke=re*B,me=j*B*U,Ne=W*B*U;break;default:Ue=G,Fe=N,me=j*B,Ne=W*B,ce=H*B*F,Ke=re*B*F;break}var it=C[Ue+me+ce],bt=C[Ue+me+Ke],Nt=C[Ue+Ne+ce],nt=C[Ue+Ne+Ke],Ye=C[Fe+me+ce],kt=C[Fe+me+Ke],At=C[Fe+Ne+ce],St=C[Fe+Ne+Ke],Bt=s.create(),Zt=s.create(),Et=s.create(),Ae=s.create();s.lerp(Bt,it,Ye,ke),s.lerp(Zt,bt,kt,ke),s.lerp(Et,Nt,At,ke),s.lerp(Ae,nt,St,ke);var ot=s.create(),dt=s.create();s.lerp(ot,Bt,Et,Ee),s.lerp(dt,Zt,Ae,Ee);var pt=s.create();return s.lerp(pt,ot,dt,Me),pt},x=function(T,L){var _=L[0],C=L[1],S=L[2];return T[0]=_<0?-_:_,T[1]=C<0?-C:C,T[2]=S<0?-S:S,T},b=function(T){var L=1/0;T.sort(function(m,P){return m-P});for(var _=T.length,C=1;C<_;C++){var S=Math.abs(T[C]-T[C-1]);SN||StW||Btre)},be=s.distance(L[0],L[1]),Pe=10*be/C,Ce=Pe*Pe,de=1,te=0,ke=_.length;ke>1&&(de=v(_));for(var Ee=0;Eete&&(te=it),ce.push(it),U.push({points:Ue,velocities:Fe,divergences:ce});for(var bt=0;btCe&&s.scale(Nt,Nt,Pe/Math.sqrt(nt)),s.add(Nt,Nt,Me),me=B(Nt),s.squaredDistance(Ne,Nt)-Ce>-1e-4*Ce){Ue.push(Nt),Ne=Nt,Fe.push(me);var Ke=F(Nt,me),it=s.length(Ke);isFinite(it)&&it>te&&(te=it),ce.push(it)}Me=Nt}}var Ye=c(U,T.colormap,te,de);return m?Ye.tubeScale=m:(te===0&&(te=1),Ye.tubeScale=S*.5*de/te),Ye};var k=o(6740),E=o(6405).createMesh;i.exports.createTubeMesh=function(T,L){return E(T,L,{shaders:k,traceType:"streamtube"})}},990:function(i,a,o){var s=o(9405),u=o(3236),l=u([`precision highp float; +}`]);a.meshShader={vertex:u,fragment:l,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},a.pickShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},7815:function(i,a,o){"use strict";var s=o(2931),u=o(9970),l=["xyz","xzy","yxz","yzx","zxy","zyx"],f=function(T,L,_,C){for(var S=T.points,m=T.velocities,P=T.divergences,A=[],B=[],F=[],U=[],G=[],j=[],H=0,N=0,W=u.create(),re=u.create(),ae=8,be=0;be0)for(var te=0;teL)return C-1}return C},d=function(T,L,_){return T_?_:T},p=function(T,L,_){var C=L.vectors,S=L.meshgrid,m=T[0],P=T[1],A=T[2],B=S[0].length,F=S[1].length,U=S[2].length,G=h(S[0],m),j=h(S[1],P),H=h(S[2],A),N=G+1,W=j+1,re=H+1;if(G=d(G,0,B-1),N=d(N,0,B-1),j=d(j,0,F-1),W=d(W,0,F-1),H=d(H,0,U-1),re=d(re,0,U-1),G<0||j<0||H<0||N>B-1||W>F-1||re>U-1)return s.create();var ae=S[0][G],be=S[0][N],Ce=S[1][j],Le=S[1][W],pe=S[2][H],te=S[2][re],ke=(m-ae)/(be-ae),Ee=(P-Ce)/(Le-Ce),Me=(A-pe)/(te-pe);isFinite(ke)||(ke=.5),isFinite(Ee)||(Ee=.5),isFinite(Me)||(Me=.5);var Ne,Fe,ye,Ve,ce,Je;switch(_.reversedX&&(G=B-1-G,N=B-1-N),_.reversedY&&(j=F-1-j,W=F-1-W),_.reversedZ&&(H=U-1-H,re=U-1-re),_.filled){case 5:ce=H,Je=re,ye=j*U,Ve=W*U,Ne=G*U*F,Fe=N*U*F;break;case 4:ce=H,Je=re,Ne=G*U,Fe=N*U,ye=j*U*B,Ve=W*U*B;break;case 3:ye=j,Ve=W,ce=H*F,Je=re*F,Ne=G*F*U,Fe=N*F*U;break;case 2:ye=j,Ve=W,Ne=G*F,Fe=N*F,ce=H*F*B,Je=re*F*B;break;case 1:Ne=G,Fe=N,ce=H*B,Je=re*B,ye=j*B*U,Ve=W*B*U;break;default:Ne=G,Fe=N,ye=j*B,Ve=W*B,ce=H*B*F,Je=re*B*F;break}var nt=C[Ne+ye+ce],gt=C[Ne+ye+Je],Nt=C[Ne+Ve+ce],it=C[Ne+Ve+Je],Ye=C[Fe+ye+ce],kt=C[Fe+ye+Je],Tt=C[Fe+Ve+ce],St=C[Fe+Ve+Je],Dt=s.create(),Zt=s.create(),Et=s.create(),Ae=s.create();s.lerp(Dt,nt,Ye,ke),s.lerp(Zt,gt,kt,ke),s.lerp(Et,Nt,Tt,ke),s.lerp(Ae,it,St,ke);var at=s.create(),wt=s.create();s.lerp(at,Dt,Et,Ee),s.lerp(wt,Zt,Ae,Ee);var vt=s.create();return s.lerp(vt,at,wt,Me),vt},x=function(T,L){var _=L[0],C=L[1],S=L[2];return T[0]=_<0?-_:_,T[1]=C<0?-C:C,T[2]=S<0?-S:S,T},b=function(T){var L=1/0;T.sort(function(m,P){return m-P});for(var _=T.length,C=1;C<_;C++){var S=Math.abs(T[C]-T[C-1]);SN||StW||Dtre)},be=s.distance(L[0],L[1]),Ce=10*be/C,Le=Ce*Ce,pe=1,te=0,ke=_.length;ke>1&&(pe=v(_));for(var Ee=0;Eete&&(te=nt),ce.push(nt),U.push({points:Ne,velocities:Fe,divergences:ce});for(var gt=0;gtLe&&s.scale(Nt,Nt,Ce/Math.sqrt(it)),s.add(Nt,Nt,Me),ye=B(Nt),s.squaredDistance(Ve,Nt)-Le>-1e-4*Le){Ne.push(Nt),Ve=Nt,Fe.push(ye);var Je=F(Nt,ye),nt=s.length(Je);isFinite(nt)&&nt>te&&(te=nt),ce.push(nt)}Me=Nt}}var Ye=c(U,T.colormap,te,pe);return m?Ye.tubeScale=m:(te===0&&(te=1),Ye.tubeScale=S*.5*pe/te),Ye};var k=o(6740),E=o(6405).createMesh;i.exports.createTubeMesh=function(T,L){return E(T,L,{shaders:k,traceType:"streamtube"})}},990:function(i,a,o){var s=o(9405),u=o(3236),l=u([`precision highp float; #define GLSLIFY 1 attribute vec4 uv; @@ -1999,15 +1999,15 @@ void main() { vec2 uy = splitFloat(planeCoordinate.y / shape.y); gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0)); } -`]);a.createShader=function(d){var p=s(d,l,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p.attributes.normal.location=2,p},a.createPickShader=function(d){var p=s(d,l,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p.attributes.normal.location=2,p},a.createContourShader=function(d){var p=s(d,c,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p},a.createPickContourShader=function(d){var p=s(d,c,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p}},9499:function(i,a,o){"use strict";i.exports=Ue;var s=o(8828),u=o(2762),l=o(8116),f=o(7766),c=o(1888),h=o(6729),d=o(5298),p=o(9994),x=o(9618),b=o(3711),v=o(6760),k=o(7608),E=o(2478),T=o(6199),L=o(990),_=L.createShader,C=L.createContourShader,S=L.createPickShader,m=L.createPickContourShader,P=4*10,A=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],B=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],F=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];(function(){for(var Fe=0;Fe<3;++Fe){var me=F[Fe],Ne=(Fe+1)%3,ce=(Fe+2)%3;me[Ne+0]=1,me[ce+3]=1,me[Fe+6]=1}})();function U(Fe,me,Ne,ce,Ke){this.position=Fe,this.index=me,this.uv=Ne,this.level=ce,this.dataCoordinate=Ke}var G=256;function j(Fe,me,Ne,ce,Ke,it,bt,Nt,nt,Ye,kt,At,St,Bt,Zt){this.gl=Fe,this.shape=me,this.bounds=Ne,this.objectOffset=Zt,this.intensityBounds=[],this._shader=ce,this._pickShader=Ke,this._coordinateBuffer=it,this._vao=bt,this._colorMap=Nt,this._contourShader=nt,this._contourPickShader=Ye,this._contourBuffer=kt,this._contourVAO=At,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new U([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=St,this._dynamicVAO=Bt,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[x(c.mallocFloat(1024),[0,0]),x(c.mallocFloat(1024),[0,0]),x(c.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var H=j.prototype;H.genColormap=function(Fe,me){var Ne=!1,ce=p([h({colormap:Fe,nshades:G,format:"rgba"}).map(function(Ke,it){var bt=me?N(it/255,me):Ke[3];return bt<1&&(Ne=!0),[Ke[0],Ke[1],Ke[2],255*bt]})]);return d.divseq(ce,255),this.hasAlphaScale=Ne,ce},H.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},H.isOpaque=function(){return!this.isTransparent()},H.pickSlots=1,H.setPickBase=function(Fe){this.pickId=Fe};function N(Fe,me){if(!me||!me.length)return 1;for(var Ne=0;NeFe&&Ne>0){var ce=(me[Ne][0]-Fe)/(me[Ne][0]-me[Ne-1][0]);return me[Ne][1]*(1-ce)+ce*me[Ne-1][1]}}return 1}var W=[0,0,0],re={showSurface:!1,showContour:!1,projections:[A.slice(),A.slice(),A.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function ae(Fe,me){var Ne,ce,Ke,it=me.axes&&me.axes.lastCubeProps.axis||W,bt=me.showSurface,Nt=me.showContour;for(Ne=0;Ne<3;++Ne)for(bt=bt||me.surfaceProject[Ne],ce=0;ce<3;++ce)Nt=Nt||me.contourProject[Ne][ce];for(Ne=0;Ne<3;++Ne){var nt=re.projections[Ne];for(ce=0;ce<16;++ce)nt[ce]=0;for(ce=0;ce<4;++ce)nt[5*ce]=1;nt[5*Ne]=0,nt[12+Ne]=me.axesBounds[+(it[Ne]>0)][Ne],v(nt,Fe.model,nt);var Ye=re.clipBounds[Ne];for(Ke=0;Ke<2;++Ke)for(ce=0;ce<3;++ce)Ye[Ke][ce]=Fe.clipBounds[Ke][ce];Ye[0][Ne]=-1e8,Ye[1][Ne]=1e8}return re.showSurface=bt,re.showContour=Nt,re}var be={model:A,view:A,projection:A,inverseModel:A.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},Pe=A.slice(),Ce=[1,0,0,0,1,0,0,0,1];function de(Fe,me){Fe=Fe||{};var Ne=this.gl;Ne.disable(Ne.CULL_FACE),this._colorMap.bind(0);var ce=be;ce.model=Fe.model||A,ce.view=Fe.view||A,ce.projection=Fe.projection||A,ce.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],ce.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],ce.objectOffset=this.objectOffset,ce.contourColor=this.contourColor[0],ce.inverseModel=k(ce.inverseModel,ce.model);for(var Ke=0;Ke<2;++Ke)for(var it=ce.clipBounds[Ke],bt=0;bt<3;++bt)it[bt]=Math.min(Math.max(this.clipBounds[Ke][bt],-1e8),1e8);ce.kambient=this.ambientLight,ce.kdiffuse=this.diffuseLight,ce.kspecular=this.specularLight,ce.roughness=this.roughness,ce.fresnel=this.fresnel,ce.opacity=this.opacity,ce.height=0,ce.permutation=Ce,ce.vertexColor=this.vertexColor;var Nt=Pe;for(v(Nt,ce.view,ce.model),v(Nt,ce.projection,Nt),k(Nt,Nt),Ke=0;Ke<3;++Ke)ce.eyePosition[Ke]=Nt[12+Ke]/Nt[15];var nt=Nt[15];for(Ke=0;Ke<3;++Ke)nt+=this.lightPosition[Ke]*Nt[4*Ke+3];for(Ke=0;Ke<3;++Ke){var Ye=Nt[12+Ke];for(bt=0;bt<3;++bt)Ye+=Nt[4*bt+Ke]*this.lightPosition[bt];ce.lightPosition[Ke]=Ye/nt}var kt=ae(ce,this);if(kt.showSurface){for(this._shader.bind(),this._shader.uniforms=ce,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(Ne.TRIANGLES,this._vertexCount),Ke=0;Ke<3;++Ke)!this.surfaceProject[Ke]||!this.vertexCount||(this._shader.uniforms.model=kt.projections[Ke],this._shader.uniforms.clipBounds=kt.clipBounds[Ke],this._vao.draw(Ne.TRIANGLES,this._vertexCount));this._vao.unbind()}if(kt.showContour){var At=this._contourShader;ce.kambient=1,ce.kdiffuse=0,ce.kspecular=0,ce.opacity=1,At.bind(),At.uniforms=ce;var St=this._contourVAO;for(St.bind(),Ke=0;Ke<3;++Ke)for(At.uniforms.permutation=F[Ke],Ne.lineWidth(this.contourWidth[Ke]*this.pixelRatio),bt=0;bt>4)/16)/255,Ke=Math.floor(ce),it=ce-Ke,bt=me[1]*(Fe.value[1]+(Fe.value[2]&15)/16)/255,Nt=Math.floor(bt),nt=bt-Nt;Ke+=1,Nt+=1;var Ye=Ne.position;Ye[0]=Ye[1]=Ye[2]=0;for(var kt=0;kt<2;++kt)for(var At=kt?it:1-it,St=0;St<2;++St)for(var Bt=St?nt:1-nt,Zt=Ke+kt,Et=Nt+St,Ae=At*Bt,ot=0;ot<3;++ot)Ye[ot]+=this._field[ot].get(Zt,Et)*Ae;for(var dt=this._pickResult.level,pt=0;pt<3;++pt)if(dt[pt]=E.le(this.contourLevels[pt],Ye[pt]),dt[pt]<0)this.contourLevels[pt].length>0&&(dt[pt]=0);else if(dt[pt]Math.abs(Xe-Ye[pt])&&(dt[pt]+=1)}for(Ne.index[0]=it<.5?Ke:Ke+1,Ne.index[1]=nt<.5?Nt:Nt+1,Ne.uv[0]=ce/me[0],Ne.uv[1]=bt/me[1],ot=0;ot<3;++ot)Ne.dataCoordinate[ot]=this._field[ot].get(Ne.index[0],Ne.index[1]);return Ne},H.padField=function(Fe,me){var Ne=me.shape.slice(),ce=Fe.shape.slice();d.assign(Fe.lo(1,1).hi(Ne[0],Ne[1]),me),d.assign(Fe.lo(1).hi(Ne[0],1),me.hi(Ne[0],1)),d.assign(Fe.lo(1,ce[1]-1).hi(Ne[0],1),me.lo(0,Ne[1]-1).hi(Ne[0],1)),d.assign(Fe.lo(0,1).hi(1,Ne[1]),me.hi(1)),d.assign(Fe.lo(ce[0]-1,1).hi(1,Ne[1]),me.lo(Ne[0]-1)),Fe.set(0,0,me.get(0,0)),Fe.set(0,ce[1]-1,me.get(0,Ne[1]-1)),Fe.set(ce[0]-1,0,me.get(Ne[0]-1,0)),Fe.set(ce[0]-1,ce[1]-1,me.get(Ne[0]-1,Ne[1]-1))};function ke(Fe,me){return Array.isArray(Fe)?[me(Fe[0]),me(Fe[1]),me(Fe[2])]:[me(Fe),me(Fe),me(Fe)]}function Ee(Fe){return Array.isArray(Fe)?Fe.length===3?[Fe[0],Fe[1],Fe[2],1]:[Fe[0],Fe[1],Fe[2],Fe[3]]:[0,0,0,1]}function Me(Fe){if(Array.isArray(Fe)){if(Array.isArray(Fe))return[Ee(Fe[0]),Ee(Fe[1]),Ee(Fe[2])];var me=Ee(Fe);return[me.slice(),me.slice(),me.slice()]}}H.update=function(Fe){Fe=Fe||{},this.objectOffset=Fe.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in Fe&&(this.contourWidth=ke(Fe.contourWidth,Number)),"showContour"in Fe&&(this.showContour=ke(Fe.showContour,Boolean)),"showSurface"in Fe&&(this.showSurface=!!Fe.showSurface),"contourTint"in Fe&&(this.contourTint=ke(Fe.contourTint,Boolean)),"contourColor"in Fe&&(this.contourColor=Me(Fe.contourColor)),"contourProject"in Fe&&(this.contourProject=ke(Fe.contourProject,function(Vi){return ke(Vi,Boolean)})),"surfaceProject"in Fe&&(this.surfaceProject=Fe.surfaceProject),"dynamicColor"in Fe&&(this.dynamicColor=Me(Fe.dynamicColor)),"dynamicTint"in Fe&&(this.dynamicTint=ke(Fe.dynamicTint,Number)),"dynamicWidth"in Fe&&(this.dynamicWidth=ke(Fe.dynamicWidth,Number)),"opacity"in Fe&&(this.opacity=Fe.opacity),"opacityscale"in Fe&&(this.opacityscale=Fe.opacityscale),"colorBounds"in Fe&&(this.colorBounds=Fe.colorBounds),"vertexColor"in Fe&&(this.vertexColor=Fe.vertexColor?1:0),"colormap"in Fe&&this._colorMap.setPixels(this.genColormap(Fe.colormap,this.opacityscale));var me=Fe.field||Fe.coords&&Fe.coords[2]||null,Ne=!1;if(me||(this._field[2].shape[0]||this._field[2].shape[2]?me=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):me=this._field[2].hi(0,0)),"field"in Fe||"coords"in Fe){var ce=(me.shape[0]+2)*(me.shape[1]+2);ce>this._field[2].data.length&&(c.freeFloat(this._field[2].data),this._field[2].data=c.mallocFloat(s.nextPow2(ce))),this._field[2]=x(this._field[2].data,[me.shape[0]+2,me.shape[1]+2]),this.padField(this._field[2],me),this.shape=me.shape.slice();for(var Ke=this.shape,it=0;it<2;++it)this._field[2].size>this._field[it].data.length&&(c.freeFloat(this._field[it].data),this._field[it].data=c.mallocFloat(this._field[2].size)),this._field[it]=x(this._field[it].data,[Ke[0]+2,Ke[1]+2]);if(Fe.coords){var bt=Fe.coords;if(!Array.isArray(bt)||bt.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(it=0;it<2;++it){var Nt=bt[it];for(St=0;St<2;++St)if(Nt.shape[St]!==Ke[St])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[it],Nt)}}else if(Fe.ticks){var nt=Fe.ticks;if(!Array.isArray(nt)||nt.length!==2)throw new Error("gl-surface: invalid ticks");for(it=0;it<2;++it){var Ye=nt[it];if((Array.isArray(Ye)||Ye.length)&&(Ye=x(Ye)),Ye.shape[0]!==Ke[it])throw new Error("gl-surface: invalid tick length");var kt=x(Ye.data,Ke);kt.stride[it]=Ye.stride[0],kt.stride[it^1]=0,this.padField(this._field[it],kt)}}else{for(it=0;it<2;++it){var At=[0,0];At[it]=1,this._field[it]=x(this._field[it].data,[Ke[0]+2,Ke[1]+2],At,0)}this._field[0].set(0,0,0);for(var St=0;St0){for(var yi=0;yi<5;++yi)Nr.pop();Ie-=1}continue e}}}Di.push(Ie)}this._contourOffsets[Er]=mi,this._contourCounts[Er]=Di}var Ei=c.mallocFloat(Nr.length);for(it=0;itU||B<0||B>U)throw new Error("gl-texture2d: Invalid texture size");return P._shape=[A,B],P.bind(),F.texImage2D(F.TEXTURE_2D,0,P.format,A,B,0,P.format,P.type,null),P._mipLevels=[0],P}function v(P,A,B,F,U,G){this.gl=P,this.handle=A,this.format=U,this.type=G,this._shape=[B,F],this._mipLevels=[0],this._magFilter=P.NEAREST,this._minFilter=P.NEAREST,this._wrapS=P.CLAMP_TO_EDGE,this._wrapT=P.CLAMP_TO_EDGE,this._anisoSamples=1;var j=this,H=[this._wrapS,this._wrapT];Object.defineProperties(H,[{get:function(){return j._wrapS},set:function(W){return j.wrapS=W}},{get:function(){return j._wrapT},set:function(W){return j.wrapT=W}}]),this._wrapVector=H;var N=[this._shape[0],this._shape[1]];Object.defineProperties(N,[{get:function(){return j._shape[0]},set:function(W){return j.width=W}},{get:function(){return j._shape[1]},set:function(W){return j.height=W}}]),this._shapeVector=N}var k=v.prototype;Object.defineProperties(k,{minFilter:{get:function(){return this._minFilter},set:function(P){this.bind();var A=this.gl;if(this.type===A.FLOAT&&f.indexOf(P)>=0&&(A.getExtension("OES_texture_float_linear")||(P=A.NEAREST)),c.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MIN_FILTER,P),this._minFilter=P}},magFilter:{get:function(){return this._magFilter},set:function(P){this.bind();var A=this.gl;if(this.type===A.FLOAT&&f.indexOf(P)>=0&&(A.getExtension("OES_texture_float_linear")||(P=A.NEAREST)),c.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MAG_FILTER,P),this._magFilter=P}},mipSamples:{get:function(){return this._anisoSamples},set:function(P){var A=this._anisoSamples;if(this._anisoSamples=Math.max(P,1)|0,A!==this._anisoSamples){var B=this.gl.getExtension("EXT_texture_filter_anisotropic");B&&this.gl.texParameterf(this.gl.TEXTURE_2D,B.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,P),this._wrapS=P}},wrapT:{get:function(){return this._wrapT},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,P),this._wrapT=P}},wrap:{get:function(){return this._wrapVector},set:function(P){if(Array.isArray(P)||(P=[P,P]),P.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var A=0;A<2;++A)if(h.indexOf(P[A])<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);this._wrapS=P[0],this._wrapT=P[1];var B=this.gl;return this.bind(),B.texParameteri(B.TEXTURE_2D,B.TEXTURE_WRAP_S,this._wrapS),B.texParameteri(B.TEXTURE_2D,B.TEXTURE_WRAP_T,this._wrapT),P}},shape:{get:function(){return this._shapeVector},set:function(P){if(!Array.isArray(P))P=[P|0,P|0];else if(P.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return b(this,P[0]|0,P[1]|0),[P[0]|0,P[1]|0]}},width:{get:function(){return this._shape[0]},set:function(P){return P=P|0,b(this,P,this._shape[1]),P}},height:{get:function(){return this._shape[1]},set:function(P){return P=P|0,b(this,this._shape[0],P),P}}}),k.bind=function(P){var A=this.gl;return P!==void 0&&A.activeTexture(A.TEXTURE0+(P|0)),A.bindTexture(A.TEXTURE_2D,this.handle),P!==void 0?P|0:A.getParameter(A.ACTIVE_TEXTURE)-A.TEXTURE0},k.dispose=function(){this.gl.deleteTexture(this.handle)},k.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var P=Math.min(this._shape[0],this._shape[1]),A=0;P>0;++A,P>>>=1)this._mipLevels.indexOf(A)<0&&this._mipLevels.push(A)},k.setPixels=function(P,A,B,F){var U=this.gl;this.bind(),Array.isArray(A)?(F=B,B=A[1]|0,A=A[0]|0):(A=A||0,B=B||0),F=F||0;var G=p(P)?P:P.raw;if(G){var j=this._mipLevels.indexOf(F)<0;j?(U.texImage2D(U.TEXTURE_2D,0,this.format,this.format,this.type,G),this._mipLevels.push(F)):U.texSubImage2D(U.TEXTURE_2D,F,A,B,this.format,this.type,G)}else if(P.shape&&P.stride&&P.data){if(P.shape.length<2||A+P.shape[1]>this._shape[1]>>>F||B+P.shape[0]>this._shape[0]>>>F||A<0||B<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");T(U,A,B,F,this.format,this.type,this._mipLevels,P)}else throw new Error("gl-texture2d: Unsupported data type")};function E(P,A){return P.length===3?A[2]===1&&A[1]===P[0]*P[2]&&A[0]===P[2]:A[0]===1&&A[1]===P[0]}function T(P,A,B,F,U,G,j,H){var N=H.dtype,W=H.shape.slice();if(W.length<2||W.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var re=0,ae=0,be=E(W,H.stride.slice());N==="float32"?re=P.FLOAT:N==="float64"?(re=P.FLOAT,be=!1,N="float32"):N==="uint8"?re=P.UNSIGNED_BYTE:(re=P.UNSIGNED_BYTE,be=!1,N="uint8");var Pe=1;if(W.length===2)ae=P.LUMINANCE,W=[W[0],W[1],1],H=s(H.data,W,[H.stride[0],H.stride[1],1],H.offset);else if(W.length===3){if(W[2]===1)ae=P.ALPHA;else if(W[2]===2)ae=P.LUMINANCE_ALPHA;else if(W[2]===3)ae=P.RGB;else if(W[2]===4)ae=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");Pe=W[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((ae===P.LUMINANCE||ae===P.ALPHA)&&(U===P.LUMINANCE||U===P.ALPHA)&&(ae=U),ae!==U)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var Ce=H.size,de=j.indexOf(F)<0;if(de&&j.push(F),re===G&&be)H.offset===0&&H.data.length===Ce?de?P.texImage2D(P.TEXTURE_2D,F,U,W[0],W[1],0,U,G,H.data):P.texSubImage2D(P.TEXTURE_2D,F,A,B,W[0],W[1],U,G,H.data):de?P.texImage2D(P.TEXTURE_2D,F,U,W[0],W[1],0,U,G,H.data.subarray(H.offset,H.offset+Ce)):P.texSubImage2D(P.TEXTURE_2D,F,A,B,W[0],W[1],U,G,H.data.subarray(H.offset,H.offset+Ce));else{var te;G===P.FLOAT?te=l.mallocFloat32(Ce):te=l.mallocUint8(Ce);var ke=s(te,W,[W[2],W[2]*W[0],1]);re===P.FLOAT&&G===P.UNSIGNED_BYTE?x(ke,H):u.assign(ke,H),de?P.texImage2D(P.TEXTURE_2D,F,U,W[0],W[1],0,U,G,te.subarray(0,Ce)):P.texSubImage2D(P.TEXTURE_2D,F,A,B,W[0],W[1],U,G,te.subarray(0,Ce)),G===P.FLOAT?l.freeFloat32(te):l.freeUint8(te)}}function L(P){var A=P.createTexture();return P.bindTexture(P.TEXTURE_2D,A),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MIN_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MAG_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_S,P.CLAMP_TO_EDGE),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_T,P.CLAMP_TO_EDGE),A}function _(P,A,B,F,U){var G=P.getParameter(P.MAX_TEXTURE_SIZE);if(A<0||A>G||B<0||B>G)throw new Error("gl-texture2d: Invalid texture shape");if(U===P.FLOAT&&!P.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var j=L(P);return P.texImage2D(P.TEXTURE_2D,0,F,A,B,0,F,U,null),new v(P,j,A,B,F,U)}function C(P,A,B,F,U,G){var j=L(P);return P.texImage2D(P.TEXTURE_2D,0,U,U,G,A),new v(P,j,B,F,U,G)}function S(P,A){var B=A.dtype,F=A.shape.slice(),U=P.getParameter(P.MAX_TEXTURE_SIZE);if(F[0]<0||F[0]>U||F[1]<0||F[1]>U)throw new Error("gl-texture2d: Invalid texture size");var G=E(F,A.stride.slice()),j=0;B==="float32"?j=P.FLOAT:B==="float64"?(j=P.FLOAT,G=!1,B="float32"):B==="uint8"?j=P.UNSIGNED_BYTE:(j=P.UNSIGNED_BYTE,G=!1,B="uint8");var H=0;if(F.length===2)H=P.LUMINANCE,F=[F[0],F[1],1],A=s(A.data,F,[A.stride[0],A.stride[1],1],A.offset);else if(F.length===3)if(F[2]===1)H=P.ALPHA;else if(F[2]===2)H=P.LUMINANCE_ALPHA;else if(F[2]===3)H=P.RGB;else if(F[2]===4)H=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");j===P.FLOAT&&!P.getExtension("OES_texture_float")&&(j=P.UNSIGNED_BYTE,G=!1);var N,W,re=A.size;if(G)A.offset===0&&A.data.length===re?N=A.data:N=A.data.subarray(A.offset,A.offset+re);else{var ae=[F[2],F[2]*F[0],1];W=l.malloc(re,B);var be=s(W,F,ae,0);(B==="float32"||B==="float64")&&j===P.UNSIGNED_BYTE?x(be,A):u.assign(be,A),N=W.subarray(0,re)}var Pe=L(P);return P.texImage2D(P.TEXTURE_2D,0,H,F[0],F[1],0,H,j,N),G||l.free(W),new v(P,Pe,F[0],F[1],H,j)}function m(P){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(f||d(P),typeof arguments[1]=="number")return _(P,arguments[1],arguments[2],arguments[3]||P.RGBA,arguments[4]||P.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return _(P,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var A=arguments[1],B=p(A)?A:A.raw;if(B)return C(P,B,A.width|0,A.height|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(A.shape&&A.data&&A.stride)return S(P,A)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433:function(i){"use strict";function a(o,s,u){s?s.bind():o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,null);var l=o.getParameter(o.MAX_VERTEX_ATTRIBS)|0;if(u){if(u.length>l)throw new Error("gl-vao: Too many vertex attributes");for(var f=0;f1?0:Math.acos(x)}},9226:function(i){i.exports=a;function a(o,s){return o[0]=Math.ceil(s[0]),o[1]=Math.ceil(s[1]),o[2]=Math.ceil(s[2]),o}},3126:function(i){i.exports=a;function a(o){var s=new Float32Array(3);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s}},3990:function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o}},1091:function(i){i.exports=a;function a(){var o=new Float32Array(3);return o[0]=0,o[1]=0,o[2]=0,o}},5911:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=u[0],d=u[1],p=u[2];return o[0]=f*p-c*d,o[1]=c*h-l*p,o[2]=l*d-f*h,o}},5455:function(i,a,o){i.exports=o(7056)},7056:function(i){i.exports=a;function a(o,s){var u=s[0]-o[0],l=s[1]-o[1],f=s[2]-o[2];return Math.sqrt(u*u+l*l+f*f)}},4008:function(i,a,o){i.exports=o(6690)},6690:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]/u[0],o[1]=s[1]/u[1],o[2]=s[2]/u[2],o}},244:function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]}},2613:function(i){i.exports=1e-6},9922:function(i,a,o){i.exports=u;var s=o(2613);function u(l,f){var c=l[0],h=l[1],d=l[2],p=f[0],x=f[1],b=f[2];return Math.abs(c-p)<=s*Math.max(1,Math.abs(c),Math.abs(p))&&Math.abs(h-x)<=s*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(d-b)<=s*Math.max(1,Math.abs(d),Math.abs(b))}},9265:function(i){i.exports=a;function a(o,s){return o[0]===s[0]&&o[1]===s[1]&&o[2]===s[2]}},2681:function(i){i.exports=a;function a(o,s){return o[0]=Math.floor(s[0]),o[1]=Math.floor(s[1]),o[2]=Math.floor(s[2]),o}},5137:function(i,a,o){i.exports=u;var s=o(1091)();function u(l,f,c,h,d,p){var x,b;for(f||(f=3),c||(c=0),h?b=Math.min(h*f+c,l.length):b=l.length,x=c;x0&&(c=1/Math.sqrt(c),o[0]=s[0]*c,o[1]=s[1]*c,o[2]=s[2]*c),o}},7636:function(i){i.exports=a;function a(o,s){s=s||1;var u=Math.random()*2*Math.PI,l=Math.random()*2-1,f=Math.sqrt(1-l*l)*s;return o[0]=Math.cos(u)*f,o[1]=Math.sin(u)*f,o[2]=l*s,o}},6894:function(i){i.exports=a;function a(o,s,u,l){var f=u[1],c=u[2],h=s[1]-f,d=s[2]-c,p=Math.sin(l),x=Math.cos(l);return o[0]=s[0],o[1]=f+h*x-d*p,o[2]=c+h*p+d*x,o}},109:function(i){i.exports=a;function a(o,s,u,l){var f=u[0],c=u[2],h=s[0]-f,d=s[2]-c,p=Math.sin(l),x=Math.cos(l);return o[0]=f+d*p+h*x,o[1]=s[1],o[2]=c+d*x-h*p,o}},8692:function(i){i.exports=a;function a(o,s,u,l){var f=u[0],c=u[1],h=s[0]-f,d=s[1]-c,p=Math.sin(l),x=Math.cos(l);return o[0]=f+h*x-d*p,o[1]=c+h*p+d*x,o[2]=s[2],o}},2447:function(i){i.exports=a;function a(o,s){return o[0]=Math.round(s[0]),o[1]=Math.round(s[1]),o[2]=Math.round(s[2]),o}},6621:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]*u,o[1]=s[1]*u,o[2]=s[2]*u,o}},8489:function(i){i.exports=a;function a(o,s,u,l){return o[0]=s[0]+u[0]*l,o[1]=s[1]+u[1]*l,o[2]=s[2]+u[2]*l,o}},1463:function(i){i.exports=a;function a(o,s,u,l){return o[0]=s,o[1]=u,o[2]=l,o}},6141:function(i,a,o){i.exports=o(2953)},5486:function(i,a,o){i.exports=o(3066)},2953:function(i){i.exports=a;function a(o,s){var u=s[0]-o[0],l=s[1]-o[1],f=s[2]-o[2];return u*u+l*l+f*f}},3066:function(i){i.exports=a;function a(o){var s=o[0],u=o[1],l=o[2];return s*s+u*u+l*l}},2229:function(i,a,o){i.exports=o(6843)},6843:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]-u[0],o[1]=s[1]-u[1],o[2]=s[2]-u[2],o}},492:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2];return o[0]=l*u[0]+f*u[3]+c*u[6],o[1]=l*u[1]+f*u[4]+c*u[7],o[2]=l*u[2]+f*u[5]+c*u[8],o}},5673:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=u[3]*l+u[7]*f+u[11]*c+u[15];return h=h||1,o[0]=(u[0]*l+u[4]*f+u[8]*c+u[12])/h,o[1]=(u[1]*l+u[5]*f+u[9]*c+u[13])/h,o[2]=(u[2]*l+u[6]*f+u[10]*c+u[14])/h,o}},264:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=u[0],d=u[1],p=u[2],x=u[3],b=x*l+d*c-p*f,v=x*f+p*l-h*c,k=x*c+h*f-d*l,E=-h*l-d*f-p*c;return o[0]=b*x+E*-h+v*-p-k*-d,o[1]=v*x+E*-d+k*-h-b*-p,o[2]=k*x+E*-p+b*-d-v*-h,o}},4361:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]+u[0],o[1]=s[1]+u[1],o[2]=s[2]+u[2],o[3]=s[3]+u[3],o}},2335:function(i){i.exports=a;function a(o){var s=new Float32Array(4);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s[3]=o[3],s}},2933:function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o[3]=s[3],o}},7536:function(i){i.exports=a;function a(){var o=new Float32Array(4);return o[0]=0,o[1]=0,o[2]=0,o[3]=0,o}},4691:function(i){i.exports=a;function a(o,s){var u=s[0]-o[0],l=s[1]-o[1],f=s[2]-o[2],c=s[3]-o[3];return Math.sqrt(u*u+l*l+f*f+c*c)}},1373:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]/u[0],o[1]=s[1]/u[1],o[2]=s[2]/u[2],o[3]=s[3]/u[3],o}},3750:function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]+o[3]*s[3]}},3390:function(i){i.exports=a;function a(o,s,u,l){var f=new Float32Array(4);return f[0]=o,f[1]=s,f[2]=u,f[3]=l,f}},9970:function(i,a,o){i.exports={create:o(7536),clone:o(2335),fromValues:o(3390),copy:o(2933),set:o(4578),add:o(4361),subtract:o(6860),multiply:o(3576),divide:o(1373),min:o(2334),max:o(160),scale:o(9288),scaleAndAdd:o(4844),distance:o(4691),squaredDistance:o(7960),length:o(6808),squaredLength:o(483),negate:o(1498),inverse:o(4494),normalize:o(5177),dot:o(3750),lerp:o(2573),random:o(9131),transformMat4:o(5352),transformQuat:o(4041)}},4494:function(i){i.exports=a;function a(o,s){return o[0]=1/s[0],o[1]=1/s[1],o[2]=1/s[2],o[3]=1/s[3],o}},6808:function(i){i.exports=a;function a(o){var s=o[0],u=o[1],l=o[2],f=o[3];return Math.sqrt(s*s+u*u+l*l+f*f)}},2573:function(i){i.exports=a;function a(o,s,u,l){var f=s[0],c=s[1],h=s[2],d=s[3];return o[0]=f+l*(u[0]-f),o[1]=c+l*(u[1]-c),o[2]=h+l*(u[2]-h),o[3]=d+l*(u[3]-d),o}},160:function(i){i.exports=a;function a(o,s,u){return o[0]=Math.max(s[0],u[0]),o[1]=Math.max(s[1],u[1]),o[2]=Math.max(s[2],u[2]),o[3]=Math.max(s[3],u[3]),o}},2334:function(i){i.exports=a;function a(o,s,u){return o[0]=Math.min(s[0],u[0]),o[1]=Math.min(s[1],u[1]),o[2]=Math.min(s[2],u[2]),o[3]=Math.min(s[3],u[3]),o}},3576:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]*u[0],o[1]=s[1]*u[1],o[2]=s[2]*u[2],o[3]=s[3]*u[3],o}},1498:function(i){i.exports=a;function a(o,s){return o[0]=-s[0],o[1]=-s[1],o[2]=-s[2],o[3]=-s[3],o}},5177:function(i){i.exports=a;function a(o,s){var u=s[0],l=s[1],f=s[2],c=s[3],h=u*u+l*l+f*f+c*c;return h>0&&(h=1/Math.sqrt(h),o[0]=u*h,o[1]=l*h,o[2]=f*h,o[3]=c*h),o}},9131:function(i,a,o){var s=o(5177),u=o(9288);i.exports=l;function l(f,c){return c=c||1,f[0]=Math.random(),f[1]=Math.random(),f[2]=Math.random(),f[3]=Math.random(),s(f,f),u(f,f,c),f}},9288:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]*u,o[1]=s[1]*u,o[2]=s[2]*u,o[3]=s[3]*u,o}},4844:function(i){i.exports=a;function a(o,s,u,l){return o[0]=s[0]+u[0]*l,o[1]=s[1]+u[1]*l,o[2]=s[2]+u[2]*l,o[3]=s[3]+u[3]*l,o}},4578:function(i){i.exports=a;function a(o,s,u,l,f){return o[0]=s,o[1]=u,o[2]=l,o[3]=f,o}},7960:function(i){i.exports=a;function a(o,s){var u=s[0]-o[0],l=s[1]-o[1],f=s[2]-o[2],c=s[3]-o[3];return u*u+l*l+f*f+c*c}},483:function(i){i.exports=a;function a(o){var s=o[0],u=o[1],l=o[2],f=o[3];return s*s+u*u+l*l+f*f}},6860:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]-u[0],o[1]=s[1]-u[1],o[2]=s[2]-u[2],o[3]=s[3]-u[3],o}},5352:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=s[3];return o[0]=u[0]*l+u[4]*f+u[8]*c+u[12]*h,o[1]=u[1]*l+u[5]*f+u[9]*c+u[13]*h,o[2]=u[2]*l+u[6]*f+u[10]*c+u[14]*h,o[3]=u[3]*l+u[7]*f+u[11]*c+u[15]*h,o}},4041:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=u[0],d=u[1],p=u[2],x=u[3],b=x*l+d*c-p*f,v=x*f+p*l-h*c,k=x*c+h*f-d*l,E=-h*l-d*f-p*c;return o[0]=b*x+E*-h+v*-p-k*-d,o[1]=v*x+E*-d+k*-h-b*-p,o[2]=k*x+E*-p+b*-d-v*-h,o[3]=s[3],o}},1848:function(i,a,o){var s=o(4905),u=o(6468);i.exports=l;function l(f){for(var c=Array.isArray(f)?f:s(f),h=0;h0)continue;pt=Ae.slice(0,1).join("")}return Ne(pt),Ce+=pt.length,N=N.slice(pt.length),N.length}while(!0)}function St(){return/[^a-fA-F0-9]/.test(j)?(Ne(N.join("")),G=h,F):(N.push(j),H=j,F+1)}function Bt(){return j==="."||/[eE]/.test(j)?(N.push(j),G=E,H=j,F+1):j==="x"&&N.length===1&&N[0]==="0"?(G=m,N.push(j),H=j,F+1):/[^\d]/.test(j)?(Ne(N.join("")),G=h,F):(N.push(j),H=j,F+1)}function Zt(){return j==="f"&&(N.push(j),H=j,F+=1),/[eE]/.test(j)||(j==="-"||j==="+")&&/[eE]/.test(H)?(N.push(j),H=j,F+1):/[^\d]/.test(j)?(Ne(N.join("")),G=h,F):(N.push(j),H=j,F+1)}function Et(){if(/[^\d\w_]/.test(j)){var Ae=N.join("");return me[Ae]?G=_:Fe[Ae]?G=L:G=T,Ne(N.join("")),G=h,F}return N.push(j),H=j,F+1}}},3508:function(i,a,o){var s=o(6852);s=s.slice().filter(function(u){return!/^(gl\_|texture)/.test(u)}),i.exports=s.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},6852:function(i){i.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},7932:function(i,a,o){var s=o(620);i.exports=s.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},620:function(i){i.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},7827:function(i){i.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905:function(i,a,o){var s=o(5874);i.exports=u;function u(l,f){var c=s(f),h=[];return h=h.concat(c(l)),h=h.concat(c(null)),h}},3236:function(i){i.exports=function(a){typeof a=="string"&&(a=[a]);for(var o=[].slice.call(arguments,1),s=[],u=0;u>1,b=-7,v=u?f-1:0,k=u?-1:1,E=o[s+v];for(v+=k,c=E&(1<<-b)-1,E>>=-b,b+=d;b>0;c=c*256+o[s+v],v+=k,b-=8);for(h=c&(1<<-b)-1,c>>=-b,b+=l;b>0;h=h*256+o[s+v],v+=k,b-=8);if(c===0)c=1-x;else{if(c===p)return h?NaN:(E?-1:1)*(1/0);h=h+Math.pow(2,l),c=c-x}return(E?-1:1)*h*Math.pow(2,c-l)},a.write=function(o,s,u,l,f,c){var h,d,p,x=c*8-f-1,b=(1<>1,k=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=l?0:c-1,T=l?1:-1,L=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(d=isNaN(s)?1:0,h=b):(h=Math.floor(Math.log(s)/Math.LN2),s*(p=Math.pow(2,-h))<1&&(h--,p*=2),h+v>=1?s+=k/p:s+=k*Math.pow(2,1-v),s*p>=2&&(h++,p/=2),h+v>=b?(d=0,h=b):h+v>=1?(d=(s*p-1)*Math.pow(2,f),h=h+v):(d=s*Math.pow(2,v-1)*Math.pow(2,f),h=0));f>=8;o[u+E]=d&255,E+=T,d/=256,f-=8);for(h=h<0;o[u+E]=h&255,E+=T,h/=256,x-=8);o[u+E-T]|=L*128}},8954:function(i,a,o){"use strict";i.exports=v;var s=o(3250),u=o(6803).Fw;function l(k,E,T){this.vertices=k,this.adjacent=E,this.boundary=T,this.lastVisited=-1}l.prototype.flip=function(){var k=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=k;var E=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=E};function f(k,E,T){this.vertices=k,this.cell=E,this.index=T}function c(k,E){return u(k.vertices,E.vertices)}function h(k){return function(){var E=this.tuple;return k.apply(this,E)}}function d(k){var E=s[k+1];return E||(E=s),h(E)}var p=[];function x(k,E,T){this.dimension=k,this.vertices=E,this.simplices=T,this.interior=T.filter(function(C){return!C.boundary}),this.tuple=new Array(k+1);for(var L=0;L<=k;++L)this.tuple[L]=this.vertices[L];var _=p[k];_||(_=p[k]=d(k)),this.orient=_}var b=x.prototype;b.handleBoundaryDegeneracy=function(k,E){var T=this.dimension,L=this.vertices.length-1,_=this.tuple,C=this.vertices,S=[k];for(k.lastVisited=-L;S.length>0;){k=S.pop();for(var m=k.adjacent,P=0;P<=T;++P){var A=m[P];if(!(!A.boundary||A.lastVisited<=-L)){for(var B=A.vertices,F=0;F<=T;++F){var U=B[F];U<0?_[F]=E:_[F]=C[U]}var G=this.orient();if(G>0)return A;A.lastVisited=-L,G===0&&S.push(A)}}}return null},b.walk=function(k,E){var T=this.vertices.length-1,L=this.dimension,_=this.vertices,C=this.tuple,S=E?this.interior.length*Math.random()|0:this.interior.length-1,m=this.interior[S];e:for(;!m.boundary;){for(var P=m.vertices,A=m.adjacent,B=0;B<=L;++B)C[B]=_[P[B]];m.lastVisited=T;for(var B=0;B<=L;++B){var F=A[B];if(!(F.lastVisited>=T)){var U=C[B];C[B]=k;var G=this.orient();if(C[B]=U,G<0){m=F;continue e}else F.boundary?F.lastVisited=-T:F.lastVisited=T}}return}return m},b.addPeaks=function(k,E){var T=this.vertices.length-1,L=this.dimension,_=this.vertices,C=this.tuple,S=this.interior,m=this.simplices,P=[E];E.lastVisited=T,E.vertices[E.vertices.indexOf(-1)]=T,E.boundary=!1,S.push(E);for(var A=[];P.length>0;){var E=P.pop(),B=E.vertices,F=E.adjacent,U=B.indexOf(T);if(!(U<0)){for(var G=0;G<=L;++G)if(G!==U){var j=F[G];if(!(!j.boundary||j.lastVisited>=T)){var H=j.vertices;if(j.lastVisited!==-T){for(var N=0,W=0;W<=L;++W)H[W]<0?(N=W,C[W]=k):C[W]=_[H[W]];var re=this.orient();if(re>0){H[N]=T,j.boundary=!1,S.push(j),P.push(j),j.lastVisited=T;continue}else j.lastVisited=-T}var ae=j.adjacent,be=B.slice(),Pe=F.slice(),Ce=new l(be,Pe,!0);m.push(Ce);var de=ae.indexOf(E);if(!(de<0)){ae[de]=Ce,Pe[U]=j,be[G]=-1,Pe[G]=E,F[G]=Ce,Ce.flip();for(var W=0;W<=L;++W){var te=be[W];if(!(te<0||te===T)){for(var ke=new Array(L-1),Ee=0,Me=0;Me<=L;++Me){var Ue=be[Me];Ue<0||Me===W||(ke[Ee++]=Ue)}A.push(new f(ke,Ce,W))}}}}}}}A.sort(c);for(var G=0;G+1=0?S[P++]=m[B]:A=B&1;if(A===(k&1)){var F=S[0];S[0]=S[1],S[1]=F}E.push(S)}}return E};function v(k,E){var T=k.length;if(T===0)throw new Error("Must have at least d+1 points");var L=k[0].length;if(T<=L)throw new Error("Must input at least d+1 points");var _=k.slice(0,L+1),C=s.apply(void 0,_);if(C===0)throw new Error("Input not in general position");for(var S=new Array(L+1),m=0;m<=L;++m)S[m]=m;C<0&&(S[0]=1,S[1]=0);for(var P=new l(S,new Array(L+1),!1),A=P.adjacent,B=new Array(L+2),m=0;m<=L;++m){for(var F=S.slice(),U=0;U<=L;++U)U===m&&(F[U]=-1);var G=F[0];F[0]=F[1],F[1]=G;var j=new l(F,new Array(L+1),!0);A[m]=j,B[m]=j}B[L+1]=P;for(var m=0;m<=L;++m)for(var F=A[m].vertices,H=A[m].adjacent,U=0;U<=L;++U){var N=F[U];if(N<0){H[U]=P;continue}for(var W=0;W<=L;++W)A[W].vertices.indexOf(N)<0&&(H[U]=A[W])}for(var re=new x(L,_,B),ae=!!E,m=L+1;m3*(B+1)?x(this,A):this.left.insert(A):this.left=C([A]);else if(A[0]>this.mid)this.right?4*(this.right.count+1)>3*(B+1)?x(this,A):this.right.insert(A):this.right=C([A]);else{var F=s.ge(this.leftPoints,A,L),U=s.ge(this.rightPoints,A,_);this.leftPoints.splice(F,0,A),this.rightPoints.splice(U,0,A)}},h.remove=function(A){var B=this.count-this.leftPoints;if(A[1]3*(B-1))return b(this,A);var U=this.left.remove(A);return U===f?(this.left=null,this.count-=1,l):(U===l&&(this.count-=1),U)}else if(A[0]>this.mid){if(!this.right)return u;var G=this.left?this.left.count:0;if(4*G>3*(B-1))return b(this,A);var U=this.right.remove(A);return U===f?(this.right=null,this.count-=1,l):(U===l&&(this.count-=1),U)}else{if(this.count===1)return this.leftPoints[0]===A?f:u;if(this.leftPoints.length===1&&this.leftPoints[0]===A){if(this.left&&this.right){for(var j=this,H=this.left;H.right;)j=H,H=H.right;if(j===this)H.right=this.right;else{var N=this.left,U=this.right;j.count-=H.count,j.right=H.left,H.left=N,H.right=U}d(this,H),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?d(this,this.left):d(this,this.right);return l}for(var N=s.ge(this.leftPoints,A,L);N=0&&A[U][1]>=B;--U){var G=F(A[U]);if(G)return G}}function E(A,B){for(var F=0;Fthis.mid){if(this.right){var F=this.right.queryPoint(A,B);if(F)return F}return k(this.rightPoints,A,B)}else return E(this.leftPoints,B)},h.queryInterval=function(A,B,F){if(Athis.mid&&this.right){var U=this.right.queryInterval(A,B,F);if(U)return U}return Bthis.mid?k(this.rightPoints,A,F):E(this.leftPoints,F)};function T(A,B){return A-B}function L(A,B){var F=A[0]-B[0];return F||A[1]-B[1]}function _(A,B){var F=A[1]-B[1];return F||A[0]-B[0]}function C(A){if(A.length===0)return null;for(var B=[],F=0;F>1],G=[],j=[],H=[],F=0;F13)&&s!==32&&s!==133&&s!==160&&s!==5760&&s!==6158&&(s<8192||s>8205)&&s!==8232&&s!==8233&&s!==8239&&s!==8287&&s!==8288&&s!==12288&&s!==65279)return!1;return!0}},395:function(i){function a(o,s,u){return o*(1-u)+s*u}i.exports=a},2652:function(i,a,o){var s=o(4335),u=o(6864),l=o(1903),f=o(9921),c=o(7608),h=o(5665),d={length:o(1387),normalize:o(3536),dot:o(244),cross:o(5911)},p=u(),x=u(),b=[0,0,0,0],v=[[0,0,0],[0,0,0],[0,0,0]],k=[0,0,0];i.exports=function(C,S,m,P,A,B){if(S||(S=[0,0,0]),m||(m=[0,0,0]),P||(P=[0,0,0]),A||(A=[0,0,0,1]),B||(B=[0,0,0,1]),!s(p,C)||(l(x,p),x[3]=0,x[7]=0,x[11]=0,x[15]=1,Math.abs(f(x)<1e-8)))return!1;var F=p[3],U=p[7],G=p[11],j=p[12],H=p[13],N=p[14],W=p[15];if(F!==0||U!==0||G!==0){b[0]=F,b[1]=U,b[2]=G,b[3]=W;var re=c(x,x);if(!re)return!1;h(x,x),E(A,b,x)}else A[0]=A[1]=A[2]=0,A[3]=1;if(S[0]=j,S[1]=H,S[2]=N,T(v,p),m[0]=d.length(v[0]),d.normalize(v[0],v[0]),P[0]=d.dot(v[0],v[1]),L(v[1],v[1],v[0],1,-P[0]),m[1]=d.length(v[1]),d.normalize(v[1],v[1]),P[0]/=m[1],P[1]=d.dot(v[0],v[2]),L(v[2],v[2],v[0],1,-P[1]),P[2]=d.dot(v[1],v[2]),L(v[2],v[2],v[1],1,-P[2]),m[2]=d.length(v[2]),d.normalize(v[2],v[2]),P[1]/=m[2],P[2]/=m[2],d.cross(k,v[1],v[2]),d.dot(v[0],k)<0)for(var ae=0;ae<3;ae++)m[ae]*=-1,v[ae][0]*=-1,v[ae][1]*=-1,v[ae][2]*=-1;return B[0]=.5*Math.sqrt(Math.max(1+v[0][0]-v[1][1]-v[2][2],0)),B[1]=.5*Math.sqrt(Math.max(1-v[0][0]+v[1][1]-v[2][2],0)),B[2]=.5*Math.sqrt(Math.max(1-v[0][0]-v[1][1]+v[2][2],0)),B[3]=.5*Math.sqrt(Math.max(1+v[0][0]+v[1][1]+v[2][2],0)),v[2][1]>v[1][2]&&(B[0]=-B[0]),v[0][2]>v[2][0]&&(B[1]=-B[1]),v[1][0]>v[0][1]&&(B[2]=-B[2]),!0};function E(_,C,S){var m=C[0],P=C[1],A=C[2],B=C[3];return _[0]=S[0]*m+S[4]*P+S[8]*A+S[12]*B,_[1]=S[1]*m+S[5]*P+S[9]*A+S[13]*B,_[2]=S[2]*m+S[6]*P+S[10]*A+S[14]*B,_[3]=S[3]*m+S[7]*P+S[11]*A+S[15]*B,_}function T(_,C){_[0][0]=C[0],_[0][1]=C[1],_[0][2]=C[2],_[1][0]=C[4],_[1][1]=C[5],_[1][2]=C[6],_[2][0]=C[8],_[2][1]=C[9],_[2][2]=C[10]}function L(_,C,S,m,P){_[0]=C[0]*m+S[0]*P,_[1]=C[1]*m+S[1]*P,_[2]=C[2]*m+S[2]*P}},4335:function(i){i.exports=function(o,s){var u=s[15];if(u===0)return!1;for(var l=1/u,f=0;f<16;f++)o[f]=s[f]*l;return!0}},7442:function(i,a,o){var s=o(6658),u=o(7182),l=o(2652),f=o(9921),c=o(8648),h=b(),d=b(),p=b();i.exports=x;function x(E,T,L,_){if(f(T)===0||f(L)===0)return!1;var C=l(T,h.translate,h.scale,h.skew,h.perspective,h.quaternion),S=l(L,d.translate,d.scale,d.skew,d.perspective,d.quaternion);return!C||!S?!1:(s(p.translate,h.translate,d.translate,_),s(p.skew,h.skew,d.skew,_),s(p.scale,h.scale,d.scale,_),s(p.perspective,h.perspective,d.perspective,_),c(p.quaternion,h.quaternion,d.quaternion,_),u(E,p.translate,p.scale,p.skew,p.perspective,p.quaternion),!0)}function b(){return{translate:v(),scale:v(1),skew:v(),perspective:k(),quaternion:k()}}function v(E){return[E||0,E||0,E||0]}function k(){return[0,0,0,1]}},7182:function(i,a,o){var s={identity:o(7894),translate:o(7656),multiply:o(6760),create:o(6864),scale:o(2504),fromRotationTranslation:o(6743)},u=s.create(),l=s.create();i.exports=function(c,h,d,p,x,b){return s.identity(c),s.fromRotationTranslation(c,b,h),c[3]=x[0],c[7]=x[1],c[11]=x[2],c[15]=x[3],s.identity(l),p[2]!==0&&(l[9]=p[2],s.multiply(c,c,l)),p[1]!==0&&(l[9]=0,l[8]=p[1],s.multiply(c,c,l)),p[0]!==0&&(l[8]=0,l[4]=p[0],s.multiply(c,c,l)),s.scale(c,c,d),c}},1811:function(i,a,o){"use strict";var s=o(2478),u=o(7442),l=o(7608),f=o(5567),c=o(2408),h=o(7089),d=o(6582),p=o(7656),x=o(2504),b=o(3536),v=[0,0,0];i.exports=L;function k(_){this._components=_.slice(),this._time=[0],this.prevMatrix=_.slice(),this.nextMatrix=_.slice(),this.computedMatrix=_.slice(),this.computedInverse=_.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var E=k.prototype;E.recalcMatrix=function(_){var C=this._time,S=s.le(C,_),m=this.computedMatrix;if(!(S<0)){var P=this._components;if(S===C.length-1)for(var A=16*S,B=0;B<16;++B)m[B]=P[A++];else{for(var F=C[S+1]-C[S],A=16*S,U=this.prevMatrix,G=!0,B=0;B<16;++B)U[B]=P[A++];for(var j=this.nextMatrix,B=0;B<16;++B)j[B]=P[A++],G=G&&U[B]===j[B];if(F<1e-6||G)for(var B=0;B<16;++B)m[B]=U[B];else u(m,U,j,(_-C[S])/F)}var H=this.computedUp;H[0]=m[1],H[1]=m[5],H[2]=m[9],b(H,H);var N=this.computedInverse;l(N,m);var W=this.computedEye,re=N[15];W[0]=N[12]/re,W[1]=N[13]/re,W[2]=N[14]/re;for(var ae=this.computedCenter,be=Math.exp(this.computedRadius[0]),B=0;B<3;++B)ae[B]=W[B]-m[2+4*B]*be}},E.idle=function(_){if(!(_1&&s(l[d[v-2]],l[d[v-1]],b)<=0;)v-=1,d.pop();for(d.push(x),v=p.length;v>1&&s(l[p[v-2]],l[p[v-1]],b)>=0;)v-=1,p.pop();p.push(x)}for(var k=new Array(p.length+d.length-2),E=0,c=0,T=d.length;c0;--L)k[E++]=p[L];return k}},351:function(i,a,o){"use strict";i.exports=u;var s=o(4687);function u(l,f){f||(f=l,l=window);var c=0,h=0,d=0,p={shift:!1,alt:!1,control:!1,meta:!1},x=!1;function b(A){var B=!1;return"altKey"in A&&(B=B||A.altKey!==p.alt,p.alt=!!A.altKey),"shiftKey"in A&&(B=B||A.shiftKey!==p.shift,p.shift=!!A.shiftKey),"ctrlKey"in A&&(B=B||A.ctrlKey!==p.control,p.control=!!A.ctrlKey),"metaKey"in A&&(B=B||A.metaKey!==p.meta,p.meta=!!A.metaKey),B}function v(A,B){var F=s.x(B),U=s.y(B);"buttons"in B&&(A=B.buttons|0),(A!==c||F!==h||U!==d||b(B))&&(c=A|0,h=F||0,d=U||0,f&&f(c,h,d,p))}function k(A){v(0,A)}function E(){(c||h||d||p.shift||p.alt||p.meta||p.control)&&(h=d=0,c=0,p.shift=p.alt=p.control=p.meta=!1,f&&f(0,0,0,p))}function T(A){b(A)&&f&&f(c,h,d,p)}function L(A){s.buttons(A)===0?v(0,A):v(c,A)}function _(A){v(c|s.buttons(A),A)}function C(A){v(c&~s.buttons(A),A)}function S(){x||(x=!0,l.addEventListener("mousemove",L),l.addEventListener("mousedown",_),l.addEventListener("mouseup",C),l.addEventListener("mouseleave",k),l.addEventListener("mouseenter",k),l.addEventListener("mouseout",k),l.addEventListener("mouseover",k),l.addEventListener("blur",E),l.addEventListener("keyup",T),l.addEventListener("keydown",T),l.addEventListener("keypress",T),l!==window&&(window.addEventListener("blur",E),window.addEventListener("keyup",T),window.addEventListener("keydown",T),window.addEventListener("keypress",T)))}function m(){x&&(x=!1,l.removeEventListener("mousemove",L),l.removeEventListener("mousedown",_),l.removeEventListener("mouseup",C),l.removeEventListener("mouseleave",k),l.removeEventListener("mouseenter",k),l.removeEventListener("mouseout",k),l.removeEventListener("mouseover",k),l.removeEventListener("blur",E),l.removeEventListener("keyup",T),l.removeEventListener("keydown",T),l.removeEventListener("keypress",T),l!==window&&(window.removeEventListener("blur",E),window.removeEventListener("keyup",T),window.removeEventListener("keydown",T),window.removeEventListener("keypress",T)))}S();var P={element:l};return Object.defineProperties(P,{enabled:{get:function(){return x},set:function(A){A?S():m()},enumerable:!0},buttons:{get:function(){return c},enumerable:!0},x:{get:function(){return h},enumerable:!0},y:{get:function(){return d},enumerable:!0},mods:{get:function(){return p},enumerable:!0}}),P}},24:function(i){var a={left:0,top:0};i.exports=o;function o(u,l,f){l=l||u.currentTarget||u.srcElement,Array.isArray(f)||(f=[0,0]);var c=u.clientX||0,h=u.clientY||0,d=s(l);return f[0]=c-d.left,f[1]=h-d.top,f}function s(u){return u===window||u===document||u===document.body?a:u.getBoundingClientRect()}},4687:function(i,a){"use strict";function o(f){if(typeof f=="object"){if("buttons"in f)return f.buttons;if("which"in f){var c=f.which;if(c===2)return 4;if(c===3)return 2;if(c>0)return 1<=0)return 1<0){if(Pe=1,te[Ee++]=p(S[B],E,T,L),B+=re,_>0)for(be=1,F=S[B],Me=te[Ee]=p(F,E,T,L),me=te[Ee+Ue],Ke=te[Ee+Ne],Nt=te[Ee+it],(Me!==me||Me!==Ke||Me!==Nt)&&(G=S[B+U],H=S[B+j],W=S[B+N],h(be,Pe,F,G,H,W,Me,me,Ke,Nt,E,T,L),nt=ke[Ee]=Ce++),Ee+=1,B+=re,be=2;be<_;++be)F=S[B],Me=te[Ee]=p(F,E,T,L),me=te[Ee+Ue],Ke=te[Ee+Ne],Nt=te[Ee+it],(Me!==me||Me!==Ke||Me!==Nt)&&(G=S[B+U],H=S[B+j],W=S[B+N],h(be,Pe,F,G,H,W,Me,me,Ke,Nt,E,T,L),nt=ke[Ee]=Ce++,Nt!==me&&d(ke[Ee+Ue],nt,W,G,Nt,me,E,T,L)),Ee+=1,B+=re;for(B+=ae,Ee=0,Ye=Ue,Ue=Fe,Fe=Ye,Ye=Ne,Ne=ce,ce=Ye,Ye=it,it=bt,bt=Ye,Pe=2;Pe0)for(be=1,F=S[B],Me=te[Ee]=p(F,E,T,L),me=te[Ee+Ue],Ke=te[Ee+Ne],Nt=te[Ee+it],(Me!==me||Me!==Ke||Me!==Nt)&&(G=S[B+U],H=S[B+j],W=S[B+N],h(be,Pe,F,G,H,W,Me,me,Ke,Nt,E,T,L),nt=ke[Ee]=Ce++,Nt!==Ke&&d(ke[Ee+Ne],nt,H,W,Ke,Nt,E,T,L)),Ee+=1,B+=re,be=2;be<_;++be)F=S[B],Me=te[Ee]=p(F,E,T,L),me=te[Ee+Ue],Ke=te[Ee+Ne],Nt=te[Ee+it],(Me!==me||Me!==Ke||Me!==Nt)&&(G=S[B+U],H=S[B+j],W=S[B+N],h(be,Pe,F,G,H,W,Me,me,Ke,Nt,E,T,L),nt=ke[Ee]=Ce++,Nt!==Ke&&d(ke[Ee+Ne],nt,H,W,Ke,Nt,E,T,L),Nt!==me&&d(ke[Ee+Ue],nt,W,G,Nt,me,E,T,L)),Ee+=1,B+=re;Pe&1&&(Ee=0),Ye=Ue,Ue=Fe,Fe=Ye,Ye=Ne,Ne=ce,ce=Ye,Ye=it,it=bt,bt=Ye,B+=ae}}b(ke),b(te)}},"false,1,0":function(h,d,p,x,b){return function(k,E,T,L){var _=k.shape[0]|0,C=k.shape[1]|0,S=k.data,m=k.offset|0,P=k.stride[0]|0,A=k.stride[1]|0,B=m,F,U=-P|0,G=0,j=-A|0,H=0,N=-P-A|0,W=0,re=A|0,ae=P-A*C|0,be=0,Pe=0,Ce=0,de=2*C|0,te=x(de),ke=x(de),Ee=0,Me=0,Ue=-1,Fe=-1,me=0,Ne=-C|0,ce=C|0,Ke=0,it=-C-1|0,bt=C-1|0,Nt=0,nt=0,Ye=0;for(Pe=0;Pe0){if(be=1,te[Ee++]=p(S[B],E,T,L),B+=re,C>0)for(Pe=1,F=S[B],Me=te[Ee]=p(F,E,T,L),Ke=te[Ee+Ne],me=te[Ee+Ue],Nt=te[Ee+it],(Me!==Ke||Me!==me||Me!==Nt)&&(G=S[B+U],H=S[B+j],W=S[B+N],h(be,Pe,F,G,H,W,Me,Ke,me,Nt,E,T,L),nt=ke[Ee]=Ce++),Ee+=1,B+=re,Pe=2;Pe0)for(Pe=1,F=S[B],Me=te[Ee]=p(F,E,T,L),Ke=te[Ee+Ne],me=te[Ee+Ue],Nt=te[Ee+it],(Me!==Ke||Me!==me||Me!==Nt)&&(G=S[B+U],H=S[B+j],W=S[B+N],h(be,Pe,F,G,H,W,Me,Ke,me,Nt,E,T,L),nt=ke[Ee]=Ce++,Nt!==Ke&&d(ke[Ee+Ne],nt,W,G,Nt,Ke,E,T,L)),Ee+=1,B+=re,Pe=2;Pe 0"),typeof c.vertex!="function"&&h("Must specify vertex creation function"),typeof c.cell!="function"&&h("Must specify cell creation function"),typeof c.phase!="function"&&h("Must specify phase function");for(var b=c.getters||[],v=new Array(p),k=0;k=0?v[k]=!0:v[k]=!1;return l(c.vertex,c.cell,c.phase,x,d,v)}},6199:function(i,a,o){"use strict";var s=o(1338),u={zero:function(L,_,C,S){var m=L[0],P=C[0];S|=0;var A=0,B=P;for(A=0;A2&&A[1]>2&&S(P.pick(-1,-1).lo(1,1).hi(A[0]-2,A[1]-2),m.pick(-1,-1,0).lo(1,1).hi(A[0]-2,A[1]-2),m.pick(-1,-1,1).lo(1,1).hi(A[0]-2,A[1]-2)),A[1]>2&&(C(P.pick(0,-1).lo(1).hi(A[1]-2),m.pick(0,-1,1).lo(1).hi(A[1]-2)),_(m.pick(0,-1,0).lo(1).hi(A[1]-2))),A[1]>2&&(C(P.pick(A[0]-1,-1).lo(1).hi(A[1]-2),m.pick(A[0]-1,-1,1).lo(1).hi(A[1]-2)),_(m.pick(A[0]-1,-1,0).lo(1).hi(A[1]-2))),A[0]>2&&(C(P.pick(-1,0).lo(1).hi(A[0]-2),m.pick(-1,0,0).lo(1).hi(A[0]-2)),_(m.pick(-1,0,1).lo(1).hi(A[0]-2))),A[0]>2&&(C(P.pick(-1,A[1]-1).lo(1).hi(A[0]-2),m.pick(-1,A[1]-1,0).lo(1).hi(A[0]-2)),_(m.pick(-1,A[1]-1,1).lo(1).hi(A[0]-2))),m.set(0,0,0,0),m.set(0,0,1,0),m.set(A[0]-1,0,0,0),m.set(A[0]-1,0,1,0),m.set(0,A[1]-1,0,0),m.set(0,A[1]-1,1,0),m.set(A[0]-1,A[1]-1,0,0),m.set(A[0]-1,A[1]-1,1,0),m}}function T(L){var _=L.join(),A=p[_];if(A)return A;for(var C=L.length,S=[b,v],m=1;m<=C;++m)S.push(k(m));var P=E,A=P.apply(void 0,S);return p[_]=A,A}i.exports=function(_,C,S){if(Array.isArray(S)||(typeof S=="string"?S=s(C.dimension,S):S=s(C.dimension,"clamp")),C.size===0)return _;if(C.dimension===0)return _.set(0),_;var m=T(S);return m(_,C)}},4317:function(i){"use strict";function a(f,c){var h=Math.floor(c),d=c-h,p=0<=h&&h0;){H<64?(_=H,H=0):(_=64,H-=64);for(var N=p[1]|0;N>0;){N<64?(C=N,N=0):(C=64,N-=64),v=G+H*m+N*P,T=j+H*B+N*F;var W=0,re=0,ae=0,be=A,Pe=m-S*A,Ce=P-_*m,de=U,te=B-S*U,ke=F-_*B;for(ae=0;ae0;){F<64?(_=F,F=0):(_=64,F-=64);for(var U=p[0]|0;U>0;){U<64?(L=U,U=0):(L=64,U-=64),v=A+F*S+U*C,T=B+F*P+U*m;var G=0,j=0,H=S,N=C-_*S,W=P,re=m-_*P;for(j=0;j0;){j<64?(C=j,j=0):(C=64,j-=64);for(var H=p[0]|0;H>0;){H<64?(L=H,H=0):(L=64,H-=64);for(var N=p[1]|0;N>0;){N<64?(_=N,N=0):(_=64,N-=64),v=U+j*P+H*S+N*m,T=G+j*F+H*A+N*B;var W=0,re=0,ae=0,be=P,Pe=S-C*P,Ce=m-L*S,de=F,te=A-C*F,ke=B-L*A;for(ae=0;ae<_;++ae){for(re=0;rek;){W=0,re=G-_;t:for(H=0;Hbe)break t;re+=A,W+=B}for(W=G,re=G-_,H=0;H>1,N=H-U,W=H+U,re=G,ae=N,be=H,Pe=W,Ce=j,de=E+1,te=T-1,ke=!0,Ee,Me,Ue,Fe,me,Ne,ce,Ke,it,bt=0,Nt=0,nt=0,Ye,kt,At,St,Bt,Zt,Et,Ae,ot,dt,pt,at,Xe,rt,Qe,zt,Yt=P,lr=b(Yt),mr=b(Yt);kt=C*re,At=C*ae,zt=_;e:for(Ye=0;Ye0){Me=re,re=ae,ae=Me;break e}if(nt<0)break e;zt+=B}kt=C*Pe,At=C*Ce,zt=_;e:for(Ye=0;Ye0){Me=Pe,Pe=Ce,Ce=Me;break e}if(nt<0)break e;zt+=B}kt=C*re,At=C*be,zt=_;e:for(Ye=0;Ye0){Me=re,re=be,be=Me;break e}if(nt<0)break e;zt+=B}kt=C*ae,At=C*be,zt=_;e:for(Ye=0;Ye0){Me=ae,ae=be,be=Me;break e}if(nt<0)break e;zt+=B}kt=C*re,At=C*Pe,zt=_;e:for(Ye=0;Ye0){Me=re,re=Pe,Pe=Me;break e}if(nt<0)break e;zt+=B}kt=C*be,At=C*Pe,zt=_;e:for(Ye=0;Ye0){Me=be,be=Pe,Pe=Me;break e}if(nt<0)break e;zt+=B}kt=C*ae,At=C*Ce,zt=_;e:for(Ye=0;Ye0){Me=ae,ae=Ce,Ce=Me;break e}if(nt<0)break e;zt+=B}kt=C*ae,At=C*be,zt=_;e:for(Ye=0;Ye0){Me=ae,ae=be,be=Me;break e}if(nt<0)break e;zt+=B}kt=C*Pe,At=C*Ce,zt=_;e:for(Ye=0;Ye0){Me=Pe,Pe=Ce,Ce=Me;break e}if(nt<0)break e;zt+=B}for(kt=C*re,At=C*ae,St=C*be,Bt=C*Pe,Zt=C*Ce,Et=C*G,Ae=C*H,ot=C*j,Qe=0,zt=_,Ye=0;Ye0)te--;else if(nt<0){for(kt=C*Ne,At=C*de,St=C*te,zt=_,Ye=0;Ye0)for(;;){ce=_+te*C,Qe=0;e:for(Ye=0;Ye0){if(--tej){e:for(;;){for(ce=_+de*C,Qe=0,zt=_,Ye=0;Ye1&&k?T(v,k[0],k[1]):T(v)}var d={"uint32,1,0":function(x,b){return function(v){var k=v.data,E=v.offset|0,T=v.shape,L=v.stride,_=L[0]|0,C=T[0]|0,S=L[1]|0,m=T[1]|0,P=S,A=S,B=1;C<=32?x(0,C-1,k,E,_,S,C,m,P,A,B):b(0,C-1,k,E,_,S,C,m,P,A,B)}}};function p(x,b){var v=[b,x].join(","),k=d[v],E=f(x,b),T=h(x,b,E);return k(E,T)}i.exports=p},446:function(i,a,o){"use strict";var s=o(7640),u={};function l(f){var c=f.order,h=f.dtype,d=[c,h],p=d.join(":"),x=u[p];return x||(u[p]=x=s(c,h)),x(f),f}i.exports=l},9618:function(i,a,o){var s=o(7163),u=typeof Float64Array!="undefined";function l(b,v){return b[0]-v[0]}function f(){var b=this.stride,v=new Array(b.length),k;for(k=0;k=0&&(S=_|0,C+=P*S,m-=S),new E(this.data,m,P,C)},T.step=function(_){var C=this.shape[0],S=this.stride[0],m=this.offset,P=0,A=Math.ceil;return typeof _=="number"&&(P=_|0,P<0?(m+=S*(C-1),C=A(-C/P)):C=A(C/P),S*=P),new E(this.data,C,S,m)},T.transpose=function(_){_=_===void 0?0:_|0;var C=this.shape,S=this.stride;return new E(this.data,C[_],S[_],this.offset)},T.pick=function(_){var C=[],S=[],m=this.offset;typeof _=="number"&&_>=0?m=m+this.stride[0]*_|0:(C.push(this.shape[0]),S.push(this.stride[0]));var P=v[C.length+1];return P(this.data,C,S,m)},function(_,C,S,m){return new E(_,C[0],S[0],m)}},2:function(b,v,k){function E(L,_,C,S,m,P){this.data=L,this.shape=[_,C],this.stride=[S,m],this.offset=P|0}var T=E.prototype;return T.dtype=b,T.dimension=2,Object.defineProperty(T,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(T,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),T.set=function(_,C,S){return b==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*C,S):this.data[this.offset+this.stride[0]*_+this.stride[1]*C]=S},T.get=function(_,C){return b==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*C):this.data[this.offset+this.stride[0]*_+this.stride[1]*C]},T.index=function(_,C){return this.offset+this.stride[0]*_+this.stride[1]*C},T.hi=function(_,C){return new E(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof C!="number"||C<0?this.shape[1]:C|0,this.stride[0],this.stride[1],this.offset)},T.lo=function(_,C){var S=this.offset,m=0,P=this.shape[0],A=this.shape[1],B=this.stride[0],F=this.stride[1];return typeof _=="number"&&_>=0&&(m=_|0,S+=B*m,P-=m),typeof C=="number"&&C>=0&&(m=C|0,S+=F*m,A-=m),new E(this.data,P,A,B,F,S)},T.step=function(_,C){var S=this.shape[0],m=this.shape[1],P=this.stride[0],A=this.stride[1],B=this.offset,F=0,U=Math.ceil;return typeof _=="number"&&(F=_|0,F<0?(B+=P*(S-1),S=U(-S/F)):S=U(S/F),P*=F),typeof C=="number"&&(F=C|0,F<0?(B+=A*(m-1),m=U(-m/F)):m=U(m/F),A*=F),new E(this.data,S,m,P,A,B)},T.transpose=function(_,C){_=_===void 0?0:_|0,C=C===void 0?1:C|0;var S=this.shape,m=this.stride;return new E(this.data,S[_],S[C],m[_],m[C],this.offset)},T.pick=function(_,C){var S=[],m=[],P=this.offset;typeof _=="number"&&_>=0?P=P+this.stride[0]*_|0:(S.push(this.shape[0]),m.push(this.stride[0])),typeof C=="number"&&C>=0?P=P+this.stride[1]*C|0:(S.push(this.shape[1]),m.push(this.stride[1]));var A=v[S.length+1];return A(this.data,S,m,P)},function(_,C,S,m){return new E(_,C[0],C[1],S[0],S[1],m)}},3:function(b,v,k){function E(L,_,C,S,m,P,A,B){this.data=L,this.shape=[_,C,S],this.stride=[m,P,A],this.offset=B|0}var T=E.prototype;return T.dtype=b,T.dimension=3,Object.defineProperty(T,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(T,"order",{get:function(){var _=Math.abs(this.stride[0]),C=Math.abs(this.stride[1]),S=Math.abs(this.stride[2]);return _>C?C>S?[2,1,0]:_>S?[1,2,0]:[1,0,2]:_>S?[2,0,1]:S>C?[0,1,2]:[0,2,1]}}),T.set=function(_,C,S,m){return b==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S,m):this.data[this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S]=m},T.get=function(_,C,S){return b==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S):this.data[this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S]},T.index=function(_,C,S){return this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S},T.hi=function(_,C,S){return new E(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof C!="number"||C<0?this.shape[1]:C|0,typeof S!="number"||S<0?this.shape[2]:S|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},T.lo=function(_,C,S){var m=this.offset,P=0,A=this.shape[0],B=this.shape[1],F=this.shape[2],U=this.stride[0],G=this.stride[1],j=this.stride[2];return typeof _=="number"&&_>=0&&(P=_|0,m+=U*P,A-=P),typeof C=="number"&&C>=0&&(P=C|0,m+=G*P,B-=P),typeof S=="number"&&S>=0&&(P=S|0,m+=j*P,F-=P),new E(this.data,A,B,F,U,G,j,m)},T.step=function(_,C,S){var m=this.shape[0],P=this.shape[1],A=this.shape[2],B=this.stride[0],F=this.stride[1],U=this.stride[2],G=this.offset,j=0,H=Math.ceil;return typeof _=="number"&&(j=_|0,j<0?(G+=B*(m-1),m=H(-m/j)):m=H(m/j),B*=j),typeof C=="number"&&(j=C|0,j<0?(G+=F*(P-1),P=H(-P/j)):P=H(P/j),F*=j),typeof S=="number"&&(j=S|0,j<0?(G+=U*(A-1),A=H(-A/j)):A=H(A/j),U*=j),new E(this.data,m,P,A,B,F,U,G)},T.transpose=function(_,C,S){_=_===void 0?0:_|0,C=C===void 0?1:C|0,S=S===void 0?2:S|0;var m=this.shape,P=this.stride;return new E(this.data,m[_],m[C],m[S],P[_],P[C],P[S],this.offset)},T.pick=function(_,C,S){var m=[],P=[],A=this.offset;typeof _=="number"&&_>=0?A=A+this.stride[0]*_|0:(m.push(this.shape[0]),P.push(this.stride[0])),typeof C=="number"&&C>=0?A=A+this.stride[1]*C|0:(m.push(this.shape[1]),P.push(this.stride[1])),typeof S=="number"&&S>=0?A=A+this.stride[2]*S|0:(m.push(this.shape[2]),P.push(this.stride[2]));var B=v[m.length+1];return B(this.data,m,P,A)},function(_,C,S,m){return new E(_,C[0],C[1],C[2],S[0],S[1],S[2],m)}},4:function(b,v,k){function E(L,_,C,S,m,P,A,B,F,U){this.data=L,this.shape=[_,C,S,m],this.stride=[P,A,B,F],this.offset=U|0}var T=E.prototype;return T.dtype=b,T.dimension=4,Object.defineProperty(T,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(T,"order",{get:k}),T.set=function(_,C,S,m,P){return b==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S+this.stride[3]*m,P):this.data[this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S+this.stride[3]*m]=P},T.get=function(_,C,S,m){return b==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S+this.stride[3]*m):this.data[this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S+this.stride[3]*m]},T.index=function(_,C,S,m){return this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S+this.stride[3]*m},T.hi=function(_,C,S,m){return new E(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof C!="number"||C<0?this.shape[1]:C|0,typeof S!="number"||S<0?this.shape[2]:S|0,typeof m!="number"||m<0?this.shape[3]:m|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},T.lo=function(_,C,S,m){var P=this.offset,A=0,B=this.shape[0],F=this.shape[1],U=this.shape[2],G=this.shape[3],j=this.stride[0],H=this.stride[1],N=this.stride[2],W=this.stride[3];return typeof _=="number"&&_>=0&&(A=_|0,P+=j*A,B-=A),typeof C=="number"&&C>=0&&(A=C|0,P+=H*A,F-=A),typeof S=="number"&&S>=0&&(A=S|0,P+=N*A,U-=A),typeof m=="number"&&m>=0&&(A=m|0,P+=W*A,G-=A),new E(this.data,B,F,U,G,j,H,N,W,P)},T.step=function(_,C,S,m){var P=this.shape[0],A=this.shape[1],B=this.shape[2],F=this.shape[3],U=this.stride[0],G=this.stride[1],j=this.stride[2],H=this.stride[3],N=this.offset,W=0,re=Math.ceil;return typeof _=="number"&&(W=_|0,W<0?(N+=U*(P-1),P=re(-P/W)):P=re(P/W),U*=W),typeof C=="number"&&(W=C|0,W<0?(N+=G*(A-1),A=re(-A/W)):A=re(A/W),G*=W),typeof S=="number"&&(W=S|0,W<0?(N+=j*(B-1),B=re(-B/W)):B=re(B/W),j*=W),typeof m=="number"&&(W=m|0,W<0?(N+=H*(F-1),F=re(-F/W)):F=re(F/W),H*=W),new E(this.data,P,A,B,F,U,G,j,H,N)},T.transpose=function(_,C,S,m){_=_===void 0?0:_|0,C=C===void 0?1:C|0,S=S===void 0?2:S|0,m=m===void 0?3:m|0;var P=this.shape,A=this.stride;return new E(this.data,P[_],P[C],P[S],P[m],A[_],A[C],A[S],A[m],this.offset)},T.pick=function(_,C,S,m){var P=[],A=[],B=this.offset;typeof _=="number"&&_>=0?B=B+this.stride[0]*_|0:(P.push(this.shape[0]),A.push(this.stride[0])),typeof C=="number"&&C>=0?B=B+this.stride[1]*C|0:(P.push(this.shape[1]),A.push(this.stride[1])),typeof S=="number"&&S>=0?B=B+this.stride[2]*S|0:(P.push(this.shape[2]),A.push(this.stride[2])),typeof m=="number"&&m>=0?B=B+this.stride[3]*m|0:(P.push(this.shape[3]),A.push(this.stride[3]));var F=v[P.length+1];return F(this.data,P,A,B)},function(_,C,S,m){return new E(_,C[0],C[1],C[2],C[3],S[0],S[1],S[2],S[3],m)}},5:function(v,k,E){function T(_,C,S,m,P,A,B,F,U,G,j,H){this.data=_,this.shape=[C,S,m,P,A],this.stride=[B,F,U,G,j],this.offset=H|0}var L=T.prototype;return L.dtype=v,L.dimension=5,Object.defineProperty(L,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(L,"order",{get:E}),L.set=function(C,S,m,P,A,B){return v==="generic"?this.data.set(this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A,B):this.data[this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A]=B},L.get=function(C,S,m,P,A){return v==="generic"?this.data.get(this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A):this.data[this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A]},L.index=function(C,S,m,P,A){return this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A},L.hi=function(C,S,m,P,A){return new T(this.data,typeof C!="number"||C<0?this.shape[0]:C|0,typeof S!="number"||S<0?this.shape[1]:S|0,typeof m!="number"||m<0?this.shape[2]:m|0,typeof P!="number"||P<0?this.shape[3]:P|0,typeof A!="number"||A<0?this.shape[4]:A|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},L.lo=function(C,S,m,P,A){var B=this.offset,F=0,U=this.shape[0],G=this.shape[1],j=this.shape[2],H=this.shape[3],N=this.shape[4],W=this.stride[0],re=this.stride[1],ae=this.stride[2],be=this.stride[3],Pe=this.stride[4];return typeof C=="number"&&C>=0&&(F=C|0,B+=W*F,U-=F),typeof S=="number"&&S>=0&&(F=S|0,B+=re*F,G-=F),typeof m=="number"&&m>=0&&(F=m|0,B+=ae*F,j-=F),typeof P=="number"&&P>=0&&(F=P|0,B+=be*F,H-=F),typeof A=="number"&&A>=0&&(F=A|0,B+=Pe*F,N-=F),new T(this.data,U,G,j,H,N,W,re,ae,be,Pe,B)},L.step=function(C,S,m,P,A){var B=this.shape[0],F=this.shape[1],U=this.shape[2],G=this.shape[3],j=this.shape[4],H=this.stride[0],N=this.stride[1],W=this.stride[2],re=this.stride[3],ae=this.stride[4],be=this.offset,Pe=0,Ce=Math.ceil;return typeof C=="number"&&(Pe=C|0,Pe<0?(be+=H*(B-1),B=Ce(-B/Pe)):B=Ce(B/Pe),H*=Pe),typeof S=="number"&&(Pe=S|0,Pe<0?(be+=N*(F-1),F=Ce(-F/Pe)):F=Ce(F/Pe),N*=Pe),typeof m=="number"&&(Pe=m|0,Pe<0?(be+=W*(U-1),U=Ce(-U/Pe)):U=Ce(U/Pe),W*=Pe),typeof P=="number"&&(Pe=P|0,Pe<0?(be+=re*(G-1),G=Ce(-G/Pe)):G=Ce(G/Pe),re*=Pe),typeof A=="number"&&(Pe=A|0,Pe<0?(be+=ae*(j-1),j=Ce(-j/Pe)):j=Ce(j/Pe),ae*=Pe),new T(this.data,B,F,U,G,j,H,N,W,re,ae,be)},L.transpose=function(C,S,m,P,A){C=C===void 0?0:C|0,S=S===void 0?1:S|0,m=m===void 0?2:m|0,P=P===void 0?3:P|0,A=A===void 0?4:A|0;var B=this.shape,F=this.stride;return new T(this.data,B[C],B[S],B[m],B[P],B[A],F[C],F[S],F[m],F[P],F[A],this.offset)},L.pick=function(C,S,m,P,A){var B=[],F=[],U=this.offset;typeof C=="number"&&C>=0?U=U+this.stride[0]*C|0:(B.push(this.shape[0]),F.push(this.stride[0])),typeof S=="number"&&S>=0?U=U+this.stride[1]*S|0:(B.push(this.shape[1]),F.push(this.stride[1])),typeof m=="number"&&m>=0?U=U+this.stride[2]*m|0:(B.push(this.shape[2]),F.push(this.stride[2])),typeof P=="number"&&P>=0?U=U+this.stride[3]*P|0:(B.push(this.shape[3]),F.push(this.stride[3])),typeof A=="number"&&A>=0?U=U+this.stride[4]*A|0:(B.push(this.shape[4]),F.push(this.stride[4]));var G=k[B.length+1];return G(this.data,B,F,U)},function(C,S,m,P){return new T(C,S[0],S[1],S[2],S[3],S[4],m[0],m[1],m[2],m[3],m[4],P)}}};function h(b,v){var k=v===-1?"T":String(v),E=c[k];return v===-1?E(b):v===0?E(b,p[b][0]):E(b,p[b],f)}function d(b){if(s(b))return"buffer";if(u)switch(Object.prototype.toString.call(b)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(b)?"array":"generic"}var p={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function x(b,v,k,E){if(b===void 0){var m=p.array[0];return m([])}else typeof b=="number"&&(b=[b]);v===void 0&&(v=[b.length]);var T=v.length;if(k===void 0){k=new Array(T);for(var L=T-1,_=1;L>=0;--L)k[L]=_,_*=v[L]}if(E===void 0){E=0;for(var L=0;L>>0;i.exports=f;function f(c,h){if(isNaN(c)||isNaN(h))return NaN;if(c===h)return c;if(c===0)return h<0?-u:u;var d=s.hi(c),p=s.lo(c);return h>c==c>0?p===l?(d+=1,p=0):p+=1:p===0?(p=l,d-=1):p-=1,s.pack(p,d)}},8406:function(i,a){var o=1e-6,s=1e-6;a.vertexNormals=function(u,l,f){for(var c=l.length,h=new Array(c),d=f===void 0?o:f,p=0;pd)for(var B=h[v],F=1/Math.sqrt(S*P),A=0;A<3;++A){var U=(A+1)%3,G=(A+2)%3;B[A]+=F*(m[U]*C[G]-m[G]*C[U])}}for(var p=0;pd)for(var F=1/Math.sqrt(j),A=0;A<3;++A)B[A]*=F;else for(var A=0;A<3;++A)B[A]=0}return h},a.faceNormals=function(u,l,f){for(var c=u.length,h=new Array(c),d=f===void 0?s:f,p=0;pd?L=1/Math.sqrt(L):L=0;for(var v=0;v<3;++v)T[v]*=L;h[p]=T}return h}},4081:function(i){"use strict";i.exports=a;function a(o,s,u,l,f,c,h,d,p,x){var b=s+c+x;if(v>0){var v=Math.sqrt(b+1);o[0]=.5*(h-p)/v,o[1]=.5*(d-l)/v,o[2]=.5*(u-c)/v,o[3]=.5*v}else{var k=Math.max(s,c,x),v=Math.sqrt(2*k-b+1);s>=k?(o[0]=.5*v,o[1]=.5*(f+u)/v,o[2]=.5*(d+l)/v,o[3]=.5*(h-p)/v):c>=k?(o[0]=.5*(u+f)/v,o[1]=.5*v,o[2]=.5*(p+h)/v,o[3]=.5*(d-l)/v):(o[0]=.5*(l+d)/v,o[1]=.5*(h+p)/v,o[2]=.5*v,o[3]=.5*(u-f)/v)}return o}},9977:function(i,a,o){"use strict";i.exports=v;var s=o(9215),u=o(6582),l=o(7399),f=o(7608),c=o(4081);function h(k,E,T){return Math.sqrt(Math.pow(k,2)+Math.pow(E,2)+Math.pow(T,2))}function d(k,E,T,L){return Math.sqrt(Math.pow(k,2)+Math.pow(E,2)+Math.pow(T,2)+Math.pow(L,2))}function p(k,E){var T=E[0],L=E[1],_=E[2],C=E[3],S=d(T,L,_,C);S>1e-6?(k[0]=T/S,k[1]=L/S,k[2]=_/S,k[3]=C/S):(k[0]=k[1]=k[2]=0,k[3]=1)}function x(k,E,T){this.radius=s([T]),this.center=s(E),this.rotation=s(k),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var b=x.prototype;b.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},b.recalcMatrix=function(k){this.radius.curve(k),this.center.curve(k),this.rotation.curve(k);var E=this.computedRotation;p(E,E);var T=this.computedMatrix;l(T,E);var L=this.computedCenter,_=this.computedEye,C=this.computedUp,S=Math.exp(this.computedRadius[0]);_[0]=L[0]+S*T[2],_[1]=L[1]+S*T[6],_[2]=L[2]+S*T[10],C[0]=T[1],C[1]=T[5],C[2]=T[9];for(var m=0;m<3;++m){for(var P=0,A=0;A<3;++A)P+=T[m+4*A]*_[A];T[12+m]=-P}},b.getMatrix=function(k,E){this.recalcMatrix(k);var T=this.computedMatrix;if(E){for(var L=0;L<16;++L)E[L]=T[L];return E}return T},b.idle=function(k){this.center.idle(k),this.radius.idle(k),this.rotation.idle(k)},b.flush=function(k){this.center.flush(k),this.radius.flush(k),this.rotation.flush(k)},b.pan=function(k,E,T,L){E=E||0,T=T||0,L=L||0,this.recalcMatrix(k);var _=this.computedMatrix,C=_[1],S=_[5],m=_[9],P=h(C,S,m);C/=P,S/=P,m/=P;var A=_[0],B=_[4],F=_[8],U=A*C+B*S+F*m;A-=C*U,B-=S*U,F-=m*U;var G=h(A,B,F);A/=G,B/=G,F/=G;var j=_[2],H=_[6],N=_[10],W=j*C+H*S+N*m,re=j*A+H*B+N*F;j-=W*C+re*A,H-=W*S+re*B,N-=W*m+re*F;var ae=h(j,H,N);j/=ae,H/=ae,N/=ae;var be=A*E+C*T,Pe=B*E+S*T,Ce=F*E+m*T;this.center.move(k,be,Pe,Ce);var de=Math.exp(this.computedRadius[0]);de=Math.max(1e-4,de+L),this.radius.set(k,Math.log(de))},b.rotate=function(k,E,T,L){this.recalcMatrix(k),E=E||0,T=T||0;var _=this.computedMatrix,C=_[0],S=_[4],m=_[8],P=_[1],A=_[5],B=_[9],F=_[2],U=_[6],G=_[10],j=E*C+T*P,H=E*S+T*A,N=E*m+T*B,W=-(U*N-G*H),re=-(G*j-F*N),ae=-(F*H-U*j),be=Math.sqrt(Math.max(0,1-Math.pow(W,2)-Math.pow(re,2)-Math.pow(ae,2))),Pe=d(W,re,ae,be);Pe>1e-6?(W/=Pe,re/=Pe,ae/=Pe,be/=Pe):(W=re=ae=0,be=1);var Ce=this.computedRotation,de=Ce[0],te=Ce[1],ke=Ce[2],Ee=Ce[3],Me=de*be+Ee*W+te*ae-ke*re,Ue=te*be+Ee*re+ke*W-de*ae,Fe=ke*be+Ee*ae+de*re-te*W,me=Ee*be-de*W-te*re-ke*ae;if(L){W=F,re=U,ae=G;var Ne=Math.sin(L)/h(W,re,ae);W*=Ne,re*=Ne,ae*=Ne,be=Math.cos(E),Me=Me*be+me*W+Ue*ae-Fe*re,Ue=Ue*be+me*re+Fe*W-Me*ae,Fe=Fe*be+me*ae+Me*re-Ue*W,me=me*be-Me*W-Ue*re-Fe*ae}var ce=d(Me,Ue,Fe,me);ce>1e-6?(Me/=ce,Ue/=ce,Fe/=ce,me/=ce):(Me=Ue=Fe=0,me=1),this.rotation.set(k,Me,Ue,Fe,me)},b.lookAt=function(k,E,T,L){this.recalcMatrix(k),T=T||this.computedCenter,E=E||this.computedEye,L=L||this.computedUp;var _=this.computedMatrix;u(_,E,T,L);var C=this.computedRotation;c(C,_[0],_[1],_[2],_[4],_[5],_[6],_[8],_[9],_[10]),p(C,C),this.rotation.set(k,C[0],C[1],C[2],C[3]);for(var S=0,m=0;m<3;++m)S+=Math.pow(T[m]-E[m],2);this.radius.set(k,.5*Math.log(Math.max(S,1e-6))),this.center.set(k,T[0],T[1],T[2])},b.translate=function(k,E,T,L){this.center.move(k,E||0,T||0,L||0)},b.setMatrix=function(k,E){var T=this.computedRotation;c(T,E[0],E[1],E[2],E[4],E[5],E[6],E[8],E[9],E[10]),p(T,T),this.rotation.set(k,T[0],T[1],T[2],T[3]);var L=this.computedMatrix;f(L,E);var _=L[15];if(Math.abs(_)>1e-6){var C=L[12]/_,S=L[13]/_,m=L[14]/_;this.recalcMatrix(k);var P=Math.exp(this.computedRadius[0]);this.center.set(k,C-L[2]*P,S-L[6]*P,m-L[10]*P),this.radius.idle(k)}else this.center.idle(k),this.radius.idle(k)},b.setDistance=function(k,E){E>0&&this.radius.set(k,Math.log(E))},b.setDistanceLimits=function(k,E){k>0?k=Math.log(k):k=-1/0,E>0?E=Math.log(E):E=1/0,E=Math.max(E,k),this.radius.bounds[0][0]=k,this.radius.bounds[1][0]=E},b.getDistanceLimits=function(k){var E=this.radius.bounds;return k?(k[0]=Math.exp(E[0][0]),k[1]=Math.exp(E[1][0]),k):[Math.exp(E[0][0]),Math.exp(E[1][0])]},b.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},b.fromJSON=function(k){var E=this.lastT(),T=k.center;T&&this.center.set(E,T[0],T[1],T[2]);var L=k.rotation;L&&this.rotation.set(E,L[0],L[1],L[2],L[3]);var _=k.distance;_&&_>0&&this.radius.set(E,Math.log(_)),this.setDistanceLimits(k.zoomMin,k.zoomMax)};function v(k){k=k||{};var E=k.center||[0,0,0],T=k.rotation||[0,0,0,1],L=k.radius||1;E=[].slice.call(E,0,3),T=[].slice.call(T,0,4),p(T,T);var _=new x(T,E,Math.log(L));return _.setDistanceLimits(k.zoomMin,k.zoomMax),("eye"in k||"up"in k)&&_.lookAt(0,k.eye,k.center,k.up),_}},1371:function(i,a,o){"use strict";var s=o(3233);i.exports=function(l,f,c){return c=typeof c!="undefined"?c+"":" ",s(c,f)+l}},3202:function(i){i.exports=function(o,s){s||(s=[0,""]),o=String(o);var u=parseFloat(o,10);return s[0]=u,s[1]=o.match(/[\d.\-\+]*\s*(.*)/)[1]||"",s}},3088:function(i,a,o){"use strict";i.exports=u;var s=o(3140);function u(l,f){for(var c=f.length|0,h=l.length,d=[new Array(c),new Array(c)],p=0;p0){B=d[G][P][0],U=G;break}F=B[U^1];for(var j=0;j<2;++j)for(var H=d[j][P],N=0;N0&&(B=W,F=re,U=j)}return A||B&&v(B,U),F}function E(m,P){var A=d[P][m][0],B=[m];v(A,P);for(var F=A[P^1],U=P;;){for(;F!==m;)B.push(F),F=k(B[B.length-2],F,!1);if(d[0][m].length+d[1][m].length===0)break;var G=B[B.length-1],j=m,H=B[1],N=k(G,j,!0);if(s(f[G],f[j],f[H],f[N])<0)break;B.push(m),F=k(G,j)}return B}function T(m,P){return P[1]===P[P.length-1]}for(var p=0;p0;){var C=d[0][p].length,S=E(p,L);T(_,S)?_.push.apply(_,S):(_.length>0&&b.push(_),_=S)}_.length>0&&b.push(_)}return b}},5609:function(i,a,o){"use strict";i.exports=u;var s=o(3134);function u(l,f){for(var c=s(l,f.length),h=new Array(f.length),d=new Array(f.length),p=[],x=0;x0;){var v=p.pop();h[v]=!1;for(var k=c[v],x=0;x0}C=C.filter(S);for(var m=C.length,P=new Array(m),A=new Array(m),_=0;_0;){var ce=Fe.pop(),Ke=Pe[ce];h(Ke,function(Ye,kt){return Ye-kt});var it=Ke.length,bt=me[ce],Nt;if(bt===0){var H=C[ce];Nt=[H]}for(var _=0;_=0)&&(me[nt]=bt^1,Fe.push(nt),bt===0)){var H=C[nt];Ue(H)||(H.reverse(),Nt.push(H))}}bt===0&&Ne.push(Nt)}return Ne}},5085:function(i,a,o){i.exports=k;var s=o(3250)[3],u=o(4209),l=o(3352),f=o(2478);function c(){return!0}function h(E){return function(T,L){var _=E[T];return _?!!_.queryPoint(L,c):!1}}function d(E){for(var T={},L=0;L0&&T[_]===L[0])C=E[_-1];else return 1;for(var S=1;C;){var m=C.key,P=s(L,m[0],m[1]);if(m[0][0]0)S=-1,C=C.right;else return 0;else if(P>0)C=C.left;else if(P<0)S=1,C=C.right;else return 0}return S}}function x(E){return 1}function b(E){return function(L){return E(L[0],L[1])?0:1}}function v(E,T){return function(_){return E(_[0],_[1])?0:T(_)}}function k(E){for(var T=E.length,L=[],_=[],C=0,S=0;S=x?(m=1,A=x+2*k+T):(m=-k/x,A=k*m+T)):(m=0,E>=0?(P=0,A=T):-E>=v?(P=1,A=v+2*E+T):(P=-E/v,A=E*P+T));else if(P<0)P=0,k>=0?(m=0,A=T):-k>=x?(m=1,A=x+2*k+T):(m=-k/x,A=k*m+T);else{var B=1/S;m*=B,P*=B,A=m*(x*m+b*P+2*k)+P*(b*m+v*P+2*E)+T}else{var F,U,G,j;m<0?(F=b+k,U=v+E,U>F?(G=U-F,j=x-2*b+v,G>=j?(m=1,P=0,A=x+2*k+T):(m=G/j,P=1-m,A=m*(x*m+b*P+2*k)+P*(b*m+v*P+2*E)+T)):(m=0,U<=0?(P=1,A=v+2*E+T):E>=0?(P=0,A=T):(P=-E/v,A=E*P+T))):P<0?(F=b+E,U=x+k,U>F?(G=U-F,j=x-2*b+v,G>=j?(P=1,m=0,A=v+2*E+T):(P=G/j,m=1-P,A=m*(x*m+b*P+2*k)+P*(b*m+v*P+2*E)+T)):(P=0,U<=0?(m=1,A=x+2*k+T):k>=0?(m=0,A=T):(m=-k/x,A=k*m+T))):(G=v+E-b-k,G<=0?(m=0,P=1,A=v+2*E+T):(j=x-2*b+v,G>=j?(m=1,P=0,A=x+2*k+T):(m=G/j,P=1-m,A=m*(x*m+b*P+2*k)+P*(b*m+v*P+2*E)+T)))}for(var H=1-m-P,p=0;p0){var v=c[d-1];if(s(x,v)===0&&l(v)!==b){d-=1;continue}}c[d++]=x}}return c.length=d,c}},3233:function(i){"use strict";var a="",o;i.exports=s;function s(u,l){if(typeof u!="string")throw new TypeError("expected a string");if(l===1)return u;if(l===2)return u+u;var f=u.length*l;if(o!==u||typeof o=="undefined")o=u,a="";else if(a.length>=f)return a.substr(0,f);for(;f>a.length&&l>1;)l&1&&(a+=u),l>>=1,u+=u;return a+=u,a=a.substr(0,f),a}},3025:function(i,a,o){i.exports=o.g.performance&&o.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004:function(i){"use strict";i.exports=a;function a(o){for(var s=o.length,u=o[o.length-1],l=s,f=s-2;f>=0;--f){var c=u,h=o[f];u=c+h;var d=u-c,p=h-d;p&&(o[--l]=u,u=p)}for(var x=0,f=l;f0){if(U<=0)return G;j=F+U}else if(F<0){if(U>=0)return G;j=-(F+U)}else return G;var H=d*j;return G>=H||G<=-H?G:E(P,A,B)},function(P,A,B,F){var U=P[0]-F[0],G=A[0]-F[0],j=B[0]-F[0],H=P[1]-F[1],N=A[1]-F[1],W=B[1]-F[1],re=P[2]-F[2],ae=A[2]-F[2],be=B[2]-F[2],Pe=G*W,Ce=j*N,de=j*H,te=U*W,ke=U*N,Ee=G*H,Me=re*(Pe-Ce)+ae*(de-te)+be*(ke-Ee),Ue=(Math.abs(Pe)+Math.abs(Ce))*Math.abs(re)+(Math.abs(de)+Math.abs(te))*Math.abs(ae)+(Math.abs(ke)+Math.abs(Ee))*Math.abs(be),Fe=p*Ue;return Me>Fe||-Me>Fe?Me:T(P,A,B,F)}];function _(m){var P=L[m.length];return P||(P=L[m.length]=k(m.length)),P.apply(void 0,m)}function C(m,P,A,B,F,U,G){return function(H,N,W,re,ae){switch(arguments.length){case 0:case 1:return 0;case 2:return B(H,N);case 3:return F(H,N,W);case 4:return U(H,N,W,re);case 5:return G(H,N,W,re,ae)}for(var be=new Array(arguments.length),Pe=0;Pe0&&x>0||p<0&&x<0)return!1;var b=s(h,f,c),v=s(d,f,c);return b>0&&v>0||b<0&&v<0?!1:p===0&&x===0&&b===0&&v===0?u(f,c,h,d):!0}},8545:function(i){"use strict";i.exports=o;function a(s,u){var l=s+u,f=l-s,c=l-f,h=u-f,d=s-c,p=d+h;return p?[p,l]:[l]}function o(s,u){var l=s.length|0,f=u.length|0;if(l===1&&f===1)return a(s[0],-u[0]);var c=l+f,h=new Array(c),d=0,p=0,x=0,b=Math.abs,v=s[p],k=b(v),E=-u[x],T=b(E),L,_;k=f?(L=v,p+=1,p=f?(L=v,p+=1,p>1,E=c[2*k+1];if(E===x)return k;x>1,E=c[2*k+1];if(E===x)return k;x>1,E=c[2*k+1];if(E===x)return k;x>1,E=c[2*k+1];if(E===x)return k;x>1,j=d(P[G],A);j<=0?(j===0&&(U=G),B=G+1):j>0&&(F=G-1)}return U}s=v;function k(P,A){for(var B=new Array(P.length),F=0,U=B.length;F=P.length||d(P[Pe],G)!==0););}return B}s=k;function E(P,A){if(!A)return k(b(L(P,0)),P,0);for(var B=new Array(A),F=0;F>>W&1&&N.push(U[W]);A.push(N)}return x(A)}s=T;function L(P,A){if(A<0)return[];for(var B=[],F=(1<0)-(l<0)},a.abs=function(l){var f=l>>o-1;return(l^f)-f},a.min=function(l,f){return f^(l^f)&-(l65535)<<4,l>>>=f,c=(l>255)<<3,l>>>=c,f|=c,c=(l>15)<<2,l>>>=c,f|=c,c=(l>3)<<1,l>>>=c,f|=c,f|l>>1},a.log10=function(l){return l>=1e9?9:l>=1e8?8:l>=1e7?7:l>=1e6?6:l>=1e5?5:l>=1e4?4:l>=1e3?3:l>=100?2:l>=10?1:0},a.popCount=function(l){return l=l-(l>>>1&1431655765),l=(l&858993459)+(l>>>2&858993459),(l+(l>>>4)&252645135)*16843009>>>24};function s(l){var f=32;return l&=-l,l&&f--,l&65535&&(f-=16),l&16711935&&(f-=8),l&252645135&&(f-=4),l&858993459&&(f-=2),l&1431655765&&(f-=1),f}a.countTrailingZeros=s,a.nextPow2=function(l){return l+=l===0,--l,l|=l>>>1,l|=l>>>2,l|=l>>>4,l|=l>>>8,l|=l>>>16,l+1},a.prevPow2=function(l){return l|=l>>>1,l|=l>>>2,l|=l>>>4,l|=l>>>8,l|=l>>>16,l-(l>>>1)},a.parity=function(l){return l^=l>>>16,l^=l>>>8,l^=l>>>4,l&=15,27030>>>l&1};var u=new Array(256);(function(l){for(var f=0;f<256;++f){var c=f,h=f,d=7;for(c>>>=1;c;c>>>=1)h<<=1,h|=c&1,--d;l[f]=h<>>8&255]<<16|u[l>>>16&255]<<8|u[l>>>24&255]},a.interleave2=function(l,f){return l&=65535,l=(l|l<<8)&16711935,l=(l|l<<4)&252645135,l=(l|l<<2)&858993459,l=(l|l<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,l|f<<1},a.deinterleave2=function(l,f){return l=l>>>f&1431655765,l=(l|l>>>1)&858993459,l=(l|l>>>2)&252645135,l=(l|l>>>4)&16711935,l=(l|l>>>16)&65535,l<<16>>16},a.interleave3=function(l,f,c){return l&=1023,l=(l|l<<16)&4278190335,l=(l|l<<8)&251719695,l=(l|l<<4)&3272356035,l=(l|l<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,l|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,l|c<<2},a.deinterleave3=function(l,f){return l=l>>>f&1227133513,l=(l|l>>>2)&3272356035,l=(l|l>>>4)&251719695,l=(l|l>>>8)&4278190335,l=(l|l>>>16)&1023,l<<22>>22},a.nextCombination=function(l){var f=l|l-1;return f+1|(~f&-~f)-1>>>s(l)+1}},2014:function(i,a,o){"use strict";"use restrict";var s=o(3105),u=o(4623);function l(m){for(var P=0,A=Math.max,B=0,F=m.length;B>1,G=h(m[U],P);G<=0?(G===0&&(F=U),A=U+1):G>0&&(B=U-1)}return F}a.findCell=b;function v(m,P){for(var A=new Array(m.length),B=0,F=A.length;B=m.length||h(m[be],U)!==0););}return A}a.incidence=v;function k(m,P){if(!P)return v(x(T(m,0)),m,0);for(var A=new Array(P),B=0;B>>N&1&&H.push(F[N]);P.push(H)}return p(P)}a.explode=E;function T(m,P){if(P<0)return[];for(var A=[],B=(1<>1:(te>>1)-1}function B(te){for(var ke=P(te);;){var Ee=ke,Me=2*te+1,Ue=2*(te+1),Fe=te;if(Me0;){var Ee=A(te);if(Ee>=0){var Me=P(Ee);if(ke0){var te=H[0];return m(0,re-1),re-=1,B(0),te}return-1}function G(te,ke){var Ee=H[te];return k[Ee]===ke?te:(k[Ee]=-1/0,F(te),U(),k[Ee]=ke,re+=1,F(re-1))}function j(te){if(!E[te]){E[te]=!0;var ke=b[te],Ee=v[te];b[Ee]>=0&&(b[Ee]=ke),v[ke]>=0&&(v[ke]=Ee),N[ke]>=0&&G(N[ke],S(ke)),N[Ee]>=0&&G(N[Ee],S(Ee))}}for(var H=[],N=new Array(p),T=0;T>1;T>=0;--T)B(T);for(;;){var ae=U();if(ae<0||k[ae]>d)break;j(ae)}for(var be=[],T=0;T=0&&Ee>=0&&ke!==Ee){var Me=N[ke],Ue=N[Ee];Me!==Ue&&de.push([Me,Ue])}}),u.unique(u.normalize(de)),{positions:be,edges:de}}},1303:function(i,a,o){"use strict";i.exports=l;var s=o(3250);function u(f,c){var h,d;if(c[0][0]c[1][0])h=c[1],d=c[0];else{var p=Math.min(f[0][1],f[1][1]),x=Math.max(f[0][1],f[1][1]),b=Math.min(c[0][1],c[1][1]),v=Math.max(c[0][1],c[1][1]);return xv?p-v:x-v}var k,E;f[0][1]c[1][0])h=c[1],d=c[0];else return u(c,f);var p,x;if(f[0][0]f[1][0])p=f[1],x=f[0];else return-u(f,c);var b=s(h,d,x),v=s(h,d,p);if(b<0){if(v<=0)return b}else if(b>0){if(v>=0)return b}else if(v)return v;if(b=s(x,p,d),v=s(x,p,h),b<0){if(v<=0)return b}else if(b>0){if(v>=0)return b}else if(v)return v;return d[0]-x[0]}},4209:function(i,a,o){"use strict";i.exports=v;var s=o(2478),u=o(3840),l=o(3250),f=o(1303);function c(k,E,T){this.slabs=k,this.coordinates=E,this.horizontal=T}var h=c.prototype;function d(k,E){return k.y-E}function p(k,E){for(var T=null;k;){var L=k.key,_,C;L[0][0]0)if(E[0]!==L[1][0])T=k,k=k.right;else{var m=p(k.right,E);if(m)return m;k=k.left}else{if(E[0]!==L[1][0])return k;var m=p(k.right,E);if(m)return m;k=k.left}}return T}h.castUp=function(k){var E=s.le(this.coordinates,k[0]);if(E<0)return-1;var T=this.slabs[E],L=p(this.slabs[E],k),_=-1;if(L&&(_=L.value),this.coordinates[E]===k[0]){var C=null;if(L&&(C=L.key),E>0){var S=p(this.slabs[E-1],k);S&&(C?f(S.key,C)>0&&(C=S.key,_=S.value):(_=S.value,C=S.key))}var m=this.horizontal[E];if(m.length>0){var P=s.ge(m,k[1],d);if(P=m.length)return _;A=m[P]}}if(A.start)if(C){var B=l(C[0],C[1],[k[0],A.y]);C[0][0]>C[1][0]&&(B=-B),B>0&&(_=A.index)}else _=A.index;else A.y!==k[1]&&(_=A.index)}}}return _};function x(k,E,T,L){this.y=k,this.index=E,this.start=T,this.closed=L}function b(k,E,T,L){this.x=k,this.segment=E,this.create=T,this.index=L}function v(k){for(var E=k.length,T=2*E,L=new Array(T),_=0;_1&&(E=1);for(var T=1-E,L=p.length,_=new Array(L),C=0;C0||k>0&&_<0){var C=f(E,_,T,k);b.push(C),v.push(C.slice())}_<0?v.push(T.slice()):_>0?b.push(T.slice()):(b.push(T.slice()),v.push(T.slice())),k=_}return{positive:b,negative:v}}function h(p,x){for(var b=[],v=l(p[p.length-1],x),k=p[p.length-1],E=p[0],T=0;T0||v>0&&L<0)&&b.push(f(k,L,E,v)),L>=0&&b.push(E.slice()),v=L}return b}function d(p,x){for(var b=[],v=l(p[p.length-1],x),k=p[p.length-1],E=p[0],T=0;T0||v>0&&L<0)&&b.push(f(k,L,E,v)),L<=0&&b.push(E.slice()),v=L}return b}},3387:function(i,a,o){var s;(function(){"use strict";var u={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function l(p){return c(d(p),arguments)}function f(p,x){return l.apply(null,[p].concat(x||[]))}function c(p,x){var b=1,v=p.length,k,E="",T,L,_,C,S,m,P,A;for(T=0;T=0),_.type){case"b":k=parseInt(k,10).toString(2);break;case"c":k=String.fromCharCode(parseInt(k,10));break;case"d":case"i":k=parseInt(k,10);break;case"j":k=JSON.stringify(k,null,_.width?parseInt(_.width):0);break;case"e":k=_.precision?parseFloat(k).toExponential(_.precision):parseFloat(k).toExponential();break;case"f":k=_.precision?parseFloat(k).toFixed(_.precision):parseFloat(k);break;case"g":k=_.precision?String(Number(k.toPrecision(_.precision))):parseFloat(k);break;case"o":k=(parseInt(k,10)>>>0).toString(8);break;case"s":k=String(k),k=_.precision?k.substring(0,_.precision):k;break;case"t":k=String(!!k),k=_.precision?k.substring(0,_.precision):k;break;case"T":k=Object.prototype.toString.call(k).slice(8,-1).toLowerCase(),k=_.precision?k.substring(0,_.precision):k;break;case"u":k=parseInt(k,10)>>>0;break;case"v":k=k.valueOf(),k=_.precision?k.substring(0,_.precision):k;break;case"x":k=(parseInt(k,10)>>>0).toString(16);break;case"X":k=(parseInt(k,10)>>>0).toString(16).toUpperCase();break}u.json.test(_.type)?E+=k:(u.number.test(_.type)&&(!P||_.sign)?(A=P?"+":"-",k=k.toString().replace(u.sign,"")):A="",S=_.pad_char?_.pad_char==="0"?"0":_.pad_char.charAt(1):" ",m=_.width-(A+k).length,C=_.width&&m>0?S.repeat(m):"",E+=_.align?A+k+C:S==="0"?A+C+k:C+A+k)}return E}var h=Object.create(null);function d(p){if(h[p])return h[p];for(var x=p,b,v=[],k=0;x;){if((b=u.text.exec(x))!==null)v.push(b[0]);else if((b=u.modulo.exec(x))!==null)v.push("%");else if((b=u.placeholder.exec(x))!==null){if(b[2]){k|=1;var E=[],T=b[2],L=[];if((L=u.key.exec(T))!==null)for(E.push(L[1]);(T=T.substring(L[0].length))!=="";)if((L=u.key_access.exec(T))!==null)E.push(L[1]);else if((L=u.index_access.exec(T))!==null)E.push(L[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");b[2]=E}else k|=2;if(k===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");v.push({placeholder:b[0],param_no:b[1],keys:b[2],sign:b[3],pad_char:b[4],align:b[5],width:b[6],precision:b[7],type:b[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");x=x.substring(b[0].length)}return h[p]=v}a.sprintf=l,a.vsprintf=f,typeof window!="undefined"&&(window.sprintf=l,window.vsprintf=f,s=function(){return{sprintf:l,vsprintf:f}}.call(a,o,a,i),s!==void 0&&(i.exports=s))})()},3711:function(i,a,o){"use strict";i.exports=d;var s=o(2640),u=o(781),l={"2d":function(p,x,b){var v=p({order:x,scalarArguments:3,getters:b==="generic"?[0]:void 0,phase:function(E,T,L,_){return E>_|0},vertex:function(E,T,L,_,C,S,m,P,A,B,F,U,G){var j=(m<<0)+(P<<1)+(A<<2)+(B<<3)|0;if(!(j===0||j===15))switch(j){case 0:F.push([E-.5,T-.5]);break;case 1:F.push([E-.25-.25*(_+L-2*G)/(L-_),T-.25-.25*(C+L-2*G)/(L-C)]);break;case 2:F.push([E-.75-.25*(-_-L+2*G)/(_-L),T-.25-.25*(S+_-2*G)/(_-S)]);break;case 3:F.push([E-.5,T-.5-.5*(C+L+S+_-4*G)/(L-C+_-S)]);break;case 4:F.push([E-.25-.25*(S+C-2*G)/(C-S),T-.75-.25*(-C-L+2*G)/(C-L)]);break;case 5:F.push([E-.5-.5*(_+L+S+C-4*G)/(L-_+C-S),T-.5]);break;case 6:F.push([E-.5-.25*(-_-L+S+C)/(_-L+C-S),T-.5-.25*(-C-L+S+_)/(C-L+_-S)]);break;case 7:F.push([E-.75-.25*(S+C-2*G)/(C-S),T-.75-.25*(S+_-2*G)/(_-S)]);break;case 8:F.push([E-.75-.25*(-S-C+2*G)/(S-C),T-.75-.25*(-S-_+2*G)/(S-_)]);break;case 9:F.push([E-.5-.25*(_+L+-S-C)/(L-_+S-C),T-.5-.25*(C+L+-S-_)/(L-C+S-_)]);break;case 10:F.push([E-.5-.5*(-_-L+-S-C+4*G)/(_-L+S-C),T-.5]);break;case 11:F.push([E-.25-.25*(-S-C+2*G)/(S-C),T-.75-.25*(C+L-2*G)/(L-C)]);break;case 12:F.push([E-.5,T-.5-.5*(-C-L+-S-_+4*G)/(C-L+S-_)]);break;case 13:F.push([E-.75-.25*(_+L-2*G)/(L-_),T-.25-.25*(-S-_+2*G)/(S-_)]);break;case 14:F.push([E-.25-.25*(-_-L+2*G)/(_-L),T-.25-.25*(-C-L+2*G)/(C-L)]);break;case 15:F.push([E-.5,T-.5]);break}},cell:function(E,T,L,_,C,S,m,P,A){C?P.push([E,T]):P.push([T,E])}});return function(k,E){var T=[],L=[];return v(k,T,L,E),{positions:T,cells:L}}}};function f(p,x){var b=p.length+"d",v=l[b];if(v)return v(s,p,x)}function c(p,x){for(var b=u(p,x),v=b.length,k=new Array(v),E=new Array(v),T=0;TMath.max(_,C)?S[2]=1:_>Math.max(L,C)?S[0]=1:S[1]=1;for(var m=0,P=0,A=0;A<3;++A)m+=T[A]*T[A],P+=S[A]*T[A];for(var A=0;A<3;++A)S[A]-=P/m*T[A];return c(S,S),S}function b(T,L,_,C,S,m,P,A){this.center=s(_),this.up=s(C),this.right=s(S),this.radius=s([m]),this.angle=s([P,A]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(T,L),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var B=0;B<16;++B)this.computedMatrix[B]=.5;this.recalcMatrix(0)}var v=b.prototype;v.setDistanceLimits=function(T,L){T>0?T=Math.log(T):T=-1/0,L>0?L=Math.log(L):L=1/0,L=Math.max(L,T),this.radius.bounds[0][0]=T,this.radius.bounds[1][0]=L},v.getDistanceLimits=function(T){var L=this.radius.bounds[0];return T?(T[0]=Math.exp(L[0][0]),T[1]=Math.exp(L[1][0]),T):[Math.exp(L[0][0]),Math.exp(L[1][0])]},v.recalcMatrix=function(T){this.center.curve(T),this.up.curve(T),this.right.curve(T),this.radius.curve(T),this.angle.curve(T);for(var L=this.computedUp,_=this.computedRight,C=0,S=0,m=0;m<3;++m)S+=L[m]*_[m],C+=L[m]*L[m];for(var P=Math.sqrt(C),A=0,m=0;m<3;++m)_[m]-=L[m]*S/C,A+=_[m]*_[m],L[m]/=P;for(var B=Math.sqrt(A),m=0;m<3;++m)_[m]/=B;var F=this.computedToward;f(F,L,_),c(F,F);for(var U=Math.exp(this.computedRadius[0]),G=this.computedAngle[0],j=this.computedAngle[1],H=Math.cos(G),N=Math.sin(G),W=Math.cos(j),re=Math.sin(j),ae=this.computedCenter,be=H*W,Pe=N*W,Ce=re,de=-H*re,te=-N*re,ke=W,Ee=this.computedEye,Me=this.computedMatrix,m=0;m<3;++m){var Ue=be*_[m]+Pe*F[m]+Ce*L[m];Me[4*m+1]=de*_[m]+te*F[m]+ke*L[m],Me[4*m+2]=Ue,Me[4*m+3]=0}var Fe=Me[1],me=Me[5],Ne=Me[9],ce=Me[2],Ke=Me[6],it=Me[10],bt=me*it-Ne*Ke,Nt=Ne*ce-Fe*it,nt=Fe*Ke-me*ce,Ye=d(bt,Nt,nt);bt/=Ye,Nt/=Ye,nt/=Ye,Me[0]=bt,Me[4]=Nt,Me[8]=nt;for(var m=0;m<3;++m)Ee[m]=ae[m]+Me[2+4*m]*U;for(var m=0;m<3;++m){for(var A=0,kt=0;kt<3;++kt)A+=Me[m+4*kt]*Ee[kt];Me[12+m]=-A}Me[15]=1},v.getMatrix=function(T,L){this.recalcMatrix(T);var _=this.computedMatrix;if(L){for(var C=0;C<16;++C)L[C]=_[C];return L}return _};var k=[0,0,0];v.rotate=function(T,L,_,C){if(this.angle.move(T,L,_),C){this.recalcMatrix(T);var S=this.computedMatrix;k[0]=S[2],k[1]=S[6],k[2]=S[10];for(var m=this.computedUp,P=this.computedRight,A=this.computedToward,B=0;B<3;++B)S[4*B]=m[B],S[4*B+1]=P[B],S[4*B+2]=A[B];l(S,S,C,k);for(var B=0;B<3;++B)m[B]=S[4*B],P[B]=S[4*B+1];this.up.set(T,m[0],m[1],m[2]),this.right.set(T,P[0],P[1],P[2])}},v.pan=function(T,L,_,C){L=L||0,_=_||0,C=C||0,this.recalcMatrix(T);var S=this.computedMatrix,m=Math.exp(this.computedRadius[0]),P=S[1],A=S[5],B=S[9],F=d(P,A,B);P/=F,A/=F,B/=F;var U=S[0],G=S[4],j=S[8],H=U*P+G*A+j*B;U-=P*H,G-=A*H,j-=B*H;var N=d(U,G,j);U/=N,G/=N,j/=N;var W=U*L+P*_,re=G*L+A*_,ae=j*L+B*_;this.center.move(T,W,re,ae);var be=Math.exp(this.computedRadius[0]);be=Math.max(1e-4,be+C),this.radius.set(T,Math.log(be))},v.translate=function(T,L,_,C){this.center.move(T,L||0,_||0,C||0)},v.setMatrix=function(T,L,_,C){var S=1;typeof _=="number"&&(S=_|0),(S<0||S>3)&&(S=1);var m=(S+2)%3,P=(S+1)%3;L||(this.recalcMatrix(T),L=this.computedMatrix);var A=L[S],B=L[S+4],F=L[S+8];if(C){var G=Math.abs(A),j=Math.abs(B),H=Math.abs(F),N=Math.max(G,j,H);G===N?(A=A<0?-1:1,B=F=0):H===N?(F=F<0?-1:1,A=B=0):(B=B<0?-1:1,A=F=0)}else{var U=d(A,B,F);A/=U,B/=U,F/=U}var W=L[m],re=L[m+4],ae=L[m+8],be=W*A+re*B+ae*F;W-=A*be,re-=B*be,ae-=F*be;var Pe=d(W,re,ae);W/=Pe,re/=Pe,ae/=Pe;var Ce=B*ae-F*re,de=F*W-A*ae,te=A*re-B*W,ke=d(Ce,de,te);Ce/=ke,de/=ke,te/=ke,this.center.jump(T,Et,Ae,ot),this.radius.idle(T),this.up.jump(T,A,B,F),this.right.jump(T,W,re,ae);var Ee,Me;if(S===2){var Ue=L[1],Fe=L[5],me=L[9],Ne=Ue*W+Fe*re+me*ae,ce=Ue*Ce+Fe*de+me*te;Nt<0?Ee=-Math.PI/2:Ee=Math.PI/2,Me=Math.atan2(ce,Ne)}else{var Ke=L[2],it=L[6],bt=L[10],Nt=Ke*A+it*B+bt*F,nt=Ke*W+it*re+bt*ae,Ye=Ke*Ce+it*de+bt*te;Ee=Math.asin(p(Nt)),Me=Math.atan2(Ye,nt)}this.angle.jump(T,Me,Ee),this.recalcMatrix(T);var kt=L[2],At=L[6],St=L[10],Bt=this.computedMatrix;u(Bt,L);var Zt=Bt[15],Et=Bt[12]/Zt,Ae=Bt[13]/Zt,ot=Bt[14]/Zt,dt=Math.exp(this.computedRadius[0]);this.center.jump(T,Et-kt*dt,Ae-At*dt,ot-St*dt)},v.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},v.idle=function(T){this.center.idle(T),this.up.idle(T),this.right.idle(T),this.radius.idle(T),this.angle.idle(T)},v.flush=function(T){this.center.flush(T),this.up.flush(T),this.right.flush(T),this.radius.flush(T),this.angle.flush(T)},v.setDistance=function(T,L){L>0&&this.radius.set(T,Math.log(L))},v.lookAt=function(T,L,_,C){this.recalcMatrix(T),L=L||this.computedEye,_=_||this.computedCenter,C=C||this.computedUp;var S=C[0],m=C[1],P=C[2],A=d(S,m,P);if(!(A<1e-6)){S/=A,m/=A,P/=A;var B=L[0]-_[0],F=L[1]-_[1],U=L[2]-_[2],G=d(B,F,U);if(!(G<1e-6)){B/=G,F/=G,U/=G;var j=this.computedRight,H=j[0],N=j[1],W=j[2],re=S*H+m*N+P*W;H-=re*S,N-=re*m,W-=re*P;var ae=d(H,N,W);if(!(ae<.01&&(H=m*U-P*F,N=P*B-S*U,W=S*F-m*B,ae=d(H,N,W),ae<1e-6))){H/=ae,N/=ae,W/=ae,this.up.set(T,S,m,P),this.right.set(T,H,N,W),this.center.set(T,_[0],_[1],_[2]),this.radius.set(T,Math.log(G));var be=m*W-P*N,Pe=P*H-S*W,Ce=S*N-m*H,de=d(be,Pe,Ce);be/=de,Pe/=de,Ce/=de;var te=S*B+m*F+P*U,ke=H*B+N*F+W*U,Ee=be*B+Pe*F+Ce*U,Me=Math.asin(p(te)),Ue=Math.atan2(Ee,ke),Fe=this.angle._state,me=Fe[Fe.length-1],Ne=Fe[Fe.length-2];me=me%(2*Math.PI);var ce=Math.abs(me+2*Math.PI-Ue),Ke=Math.abs(me-Ue),it=Math.abs(me-2*Math.PI-Ue);ce0?W.pop():new ArrayBuffer(H)}a.mallocArrayBuffer=k;function E(j){return new Uint8Array(k(j),0,j)}a.mallocUint8=E;function T(j){return new Uint16Array(k(2*j),0,j)}a.mallocUint16=T;function L(j){return new Uint32Array(k(4*j),0,j)}a.mallocUint32=L;function _(j){return new Int8Array(k(j),0,j)}a.mallocInt8=_;function C(j){return new Int16Array(k(2*j),0,j)}a.mallocInt16=C;function S(j){return new Int32Array(k(4*j),0,j)}a.mallocInt32=S;function m(j){return new Float32Array(k(4*j),0,j)}a.mallocFloat32=a.mallocFloat=m;function P(j){return new Float64Array(k(8*j),0,j)}a.mallocFloat64=a.mallocDouble=P;function A(j){return f?new Uint8ClampedArray(k(j),0,j):E(j)}a.mallocUint8Clamped=A;function B(j){return c?new BigUint64Array(k(8*j),0,j):null}a.mallocBigUint64=B;function F(j){return h?new BigInt64Array(k(8*j),0,j):null}a.mallocBigInt64=F;function U(j){return new DataView(k(j),0,j)}a.mallocDataView=U;function G(j){j=s.nextPow2(j);var H=s.log2(j),N=x[H];return N.length>0?N.pop():new l(j)}a.mallocBuffer=G,a.clearCache=function(){for(var H=0;H<32;++H)d.UINT8[H].length=0,d.UINT16[H].length=0,d.UINT32[H].length=0,d.INT8[H].length=0,d.INT16[H].length=0,d.INT32[H].length=0,d.FLOAT[H].length=0,d.DOUBLE[H].length=0,d.BIGUINT64[H].length=0,d.BIGINT64[H].length=0,d.UINT8C[H].length=0,p[H].length=0,x[H].length=0}},1755:function(i){"use strict";"use restrict";i.exports=a;function a(s){this.roots=new Array(s),this.ranks=new Array(s);for(var u=0;u",W="",re=N.length,ae=W.length,be=G[0]===k||G[0]===L,Pe=0,Ce=-ae;Pe>-1&&(Pe=j.indexOf(N,Pe),!(Pe===-1||(Ce=j.indexOf(W,Pe+re),Ce===-1)||Ce<=Pe));){for(var de=Pe;de=Ce)H[de]=null,j=j.substr(0,de)+" "+j.substr(de+1);else if(H[de]!==null){var te=H[de].indexOf(G[0]);te===-1?H[de]+=G:be&&(H[de]=H[de].substr(0,te+1)+(1+parseInt(H[de][te+1]))+H[de].substr(te+2))}var ke=Pe+re,Ee=j.substr(ke,Ce-ke),Me=Ee.indexOf(N);Me!==-1?Pe=Me:Pe=Ce+ae}return H}function S(U,G,j){for(var H=G.textAlign||"start",N=G.textBaseline||"alphabetic",W=[1<<30,1<<30],re=[0,0],ae=U.length,be=0;be/g,` -`):j=j.replace(/\/g," ");var re="",ae=[];for(me=0;me-1?parseInt(Ae[1+pt]):0,rt=at>-1?parseInt(ot[1+at]):0;Xe!==rt&&(dt=dt.replace(nt(),"?px "),Ke*=Math.pow(.75,rt-Xe),dt=dt.replace("?px ",nt())),ce+=.25*te*(rt-Xe)}if(W.superscripts===!0){var Qe=Ae.indexOf(k),zt=ot.indexOf(k),Yt=Qe>-1?parseInt(Ae[1+Qe]):0,lr=zt>-1?parseInt(ot[1+zt]):0;Yt!==lr&&(dt=dt.replace(nt(),"?px "),Ke*=Math.pow(.75,lr-Yt),dt=dt.replace("?px ",nt())),ce-=.25*te*(lr-Yt)}if(W.bolds===!0){var mr=Ae.indexOf(p)>-1,_r=ot.indexOf(p)>-1;!mr&&_r&&(Ht?dt=dt.replace("italic ","italic bold "):dt="bold "+dt),mr&&!_r&&(dt=dt.replace("bold ",""))}if(W.italics===!0){var Ht=Ae.indexOf(b)>-1,Re=ot.indexOf(b)>-1;!Ht&&Re&&(dt="italic "+dt),Ht&&!Re&&(dt=dt.replace("italic ",""))}G.font=dt}for(Fe=0;Fe0&&(N=H.size),H.lineSpacing&&H.lineSpacing>0&&(W=H.lineSpacing),H.styletags&&H.styletags.breaklines&&(re.breaklines=!!H.styletags.breaklines),H.styletags&&H.styletags.bolds&&(re.bolds=!!H.styletags.bolds),H.styletags&&H.styletags.italics&&(re.italics=!!H.styletags.italics),H.styletags&&H.styletags.subscripts&&(re.subscripts=!!H.styletags.subscripts),H.styletags&&H.styletags.superscripts&&(re.superscripts=!!H.styletags.superscripts)),j.font=[H.fontStyle,H.fontVariant,H.fontWeight,N+"px",H.font].filter(function(be){return be}).join(" "),j.textAlign="start",j.textBaseline="alphabetic",j.direction="ltr";var ae=m(G,j,U,N,W,re);return B(ae,H,N)}},1538:function(i){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function o(A){A.permitHostObjects___&&A.permitHostObjects___(o)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=o);var s=!1;if(typeof WeakMap=="function"){var u=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var l=new u,f=Object.freeze({});if(l.set(f,1),l.get(f)!==1)s=!0;else{i.exports=WeakMap;return}}}var c=Object.prototype.hasOwnProperty,h=Object.getOwnPropertyNames,d=Object.defineProperty,p=Object.isExtensible,x="weakmap:",b=x+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var v=new ArrayBuffer(25),k=new Uint8Array(v);crypto.getRandomValues(k),b=x+"rand:"+Array.prototype.map.call(k,function(A){return(A%36).toString(36)}).join("")+"___"}function E(A){return!(A.substr(0,x.length)==x&&A.substr(A.length-3)==="___")}if(d(Object,"getOwnPropertyNames",{value:function(B){return h(B).filter(E)}}),"getPropertyNames"in Object){var T=Object.getPropertyNames;d(Object,"getPropertyNames",{value:function(B){return T(B).filter(E)}})}function L(A){if(A!==Object(A))throw new TypeError("Not an object: "+A);var B=A[b];if(B&&B.key===A)return B;if(p(A)){B={key:A};try{return d(A,b,{value:B,writable:!1,enumerable:!1,configurable:!1}),B}catch(F){return}}}(function(){var A=Object.freeze;d(Object,"freeze",{value:function(G){return L(G),A(G)}});var B=Object.seal;d(Object,"seal",{value:function(G){return L(G),B(G)}});var F=Object.preventExtensions;d(Object,"preventExtensions",{value:function(G){return L(G),F(G)}})})();function _(A){return A.prototype=null,Object.freeze(A)}var C=!1;function S(){!C&&typeof console!="undefined"&&(C=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var m=0,P=function(){this instanceof P||S();var A=[],B=[],F=m++;function U(N,W){var re,ae=L(N);return ae?F in ae?ae[F]:W:(re=A.indexOf(N),re>=0?B[re]:W)}function G(N){var W=L(N);return W?F in W:A.indexOf(N)>=0}function j(N,W){var re,ae=L(N);return ae?ae[F]=W:(re=A.indexOf(N),re>=0?B[re]=W:(re=A.length,B[re]=W,A[re]=N)),this}function H(N){var W=L(N),re,ae;return W?F in W&&delete W[F]:(re=A.indexOf(N),re<0?!1:(ae=A.length-1,A[re]=void 0,B[re]=B[ae],A[re]=A[ae],A.length=ae,B.length=ae,!0))}return Object.create(P.prototype,{get___:{value:_(U)},has___:{value:_(G)},set___:{value:_(j)},delete___:{value:_(H)}})};P.prototype=Object.create(Object.prototype,{get:{value:function(B,F){return this.get___(B,F)},writable:!0,configurable:!0},has:{value:function(B){return this.has___(B)},writable:!0,configurable:!0},set:{value:function(B,F){return this.set___(B,F)},writable:!0,configurable:!0},delete:{value:function(B){return this.delete___(B)},writable:!0,configurable:!0}}),typeof u=="function"?function(){s&&typeof Proxy!="undefined"&&(Proxy=void 0);function A(){this instanceof P||S();var B=new u,F=void 0,U=!1;function G(W,re){return F?B.has(W)?B.get(W):F.get___(W,re):B.get(W,re)}function j(W){return B.has(W)||(F?F.has___(W):!1)}var H;s?H=function(W,re){return B.set(W,re),B.has(W)||(F||(F=new P),F.set(W,re)),this}:H=function(W,re){if(U)try{B.set(W,re)}catch(ae){F||(F=new P),F.set___(W,re)}else B.set(W,re);return this};function N(W){var re=!!B.delete(W);return F&&F.delete___(W)||re}return Object.create(P.prototype,{get___:{value:_(G)},has___:{value:_(j)},set___:{value:_(H)},delete___:{value:_(N)},permitHostObjects___:{value:_(function(W){if(W===o)U=!0;else throw new Error("bogus call to permitHostObjects___")})}})}A.prototype=P.prototype,i.exports=A,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy!="undefined"&&(Proxy=void 0),i.exports=P)})()},236:function(i,a,o){var s=o(8284);i.exports=u;function u(){var l={};return function(f){if((typeof f!="object"||f===null)&&typeof f!="function")throw new Error("Weakmap-shim: Key must be object");var c=f.valueOf(l);return c&&c.identity===l?c:s(f,l)}}},8284:function(i){i.exports=a;function a(o,s){var u={identity:s},l=o.valueOf;return Object.defineProperty(o,"valueOf",{value:function(f){return f!==s?l.apply(this,arguments):u},writable:!0}),u}},606:function(i,a,o){var s=o(236);i.exports=u;function u(){var l=s();return{get:function(f,c){var h=l(f);return h.hasOwnProperty("value")?h.value:c},set:function(f,c){return l(f).value=c,this},has:function(f){return"value"in l(f)},delete:function(f){return delete l(f).value}}}},3349:function(i){"use strict";function a(){return function(c,h,d,p,x,b){var v=c[0],k=d[0],E=[0],T=k;p|=0;var L=0,_=k;for(L=0;L=0!=S>=0&&x.push(E[0]+.5+.5*(C+S)/(C-S))}p+=_,++E[0]}}}function o(){return a()}var s=o;function u(c){var h={};return function(p,x,b){var v=p.dtype,k=p.order,E=[v,k.join()].join(),T=h[E];return T||(h[E]=T=c([v,k])),T(p.shape.slice(0),p.data,p.stride,p.offset|0,x,b)}}function l(c){return u(s.bind(void 0,c))}function f(c){return l({funcName:c.funcName})}i.exports=f({funcName:"zeroCrossings"})},781:function(i,a,o){"use strict";i.exports=u;var s=o(3349);function u(l,f){var c=[];return f=+f||0,s(l.hi(l.shape[0]-1),c,f),c}},7790:function(){}},t={};function r(i){var a=t[i];if(a!==void 0)return a.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}(function(){r.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(i){if(typeof window=="object")return window}}()})(),function(){r.nmd=function(i){return i.paths=[],i.children||(i.children=[]),i}}();var n=r(1964);pze.exports=n})()});var bX=Te((nmr,vze)=>{"use strict";vze.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var _ze=Te((amr,gze)=>{"use strict";var mze=bX();gze.exports=oIt;var yze={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function oIt(e){var t,r=[],n=1,i;if(typeof e=="string")if(e=e.toLowerCase(),mze[e])r=mze[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var u=t[1],l=u==="rgb",a=u.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(h,d){if(/%$/.test(h))return d===o?parseFloat(h)/100:a==="rgb"?parseFloat(h)*255/100:parseFloat(h);if(a[d]==="h"){if(/deg$/.test(h))return parseFloat(h);if(yze[h]!==void 0)return yze[h]}return parseFloat(h)}),u===a&&r.push(1),n=l||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(f){return parseFloat(f)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(i="rgb",r=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(i="hsl",r=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(i="rgb",r=[e>>>16,(e&65280)>>>8,e&255]);return{space:i,values:r,alpha:n}}});var bze=Te((omr,xze)=>{"use strict";var sIt=_ze();xze.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,n,i,a=sIt(t);if(!a.space)return[];var o=[0,0,0],s=a.space[0]==="h"?[360,100,100]:[255,255,255];return r=Array(3),r[0]=Math.min(Math.max(a.values[0],o[0]),s[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),s[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),s[2]),a.space[0]==="h"&&(r=lIt(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function lIt(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,u,l=0;if(r===0)return u=n*255,[u,u,u];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];l<3;)o=t+1/3*-(l-1),o<0?o++:o>1&&o--,u=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[l++]=u*255;return s}});var H4=Te((smr,wze)=>{wze.exports=uIt;function uIt(e,t,r){return tr?r:e:et?t:e}});var W6=Te((lmr,Aze)=>{Aze.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var $_=Te((umr,Tze)=>{"use strict";var fIt=bze(),j6=H4(),cIt=W6();Tze.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=cIt(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=fIt(t),t[0]/=255,t[1]/=255,t[2]/=255),hIt(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,a&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(a?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=j6(Math.floor(t[0]*255),0,255),i[1]=j6(Math.floor(t[1]*255),0,255),i[2]=j6(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:j6(Math.floor(t[3]*255),0,255)),i)};function hIt(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var Jg=Te((fmr,Sze)=>{"use strict";var dIt=$_();function pIt(e){return e?dIt(e):[0,0,0,1]}Sze.exports=pIt});var $g=Te((cmr,zze)=>{"use strict";var Lze=ku(),vIt=cd(),X6=$_(),Z6=_c(),mIt=Ih().defaultLine,Mze=mp().isArrayOrTypedArray,wX=X6(mIt),Pze=1;function Eze(e,t){var r=e;return r[3]*=t,r}function kze(e){if(Lze(e))return wX;var t=X6(e);return t.length?t:wX}function Cze(e){return Lze(e)?e:Pze}function yIt(e,t,r){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var i=Mze(n),a=Mze(t),o=Z6.extractOpts(e),s=[],u,l,f,c,h;if(o.colorscale!==void 0?u=Z6.makeColorScaleFuncFromTrace(e):u=kze,i?l=function(p,x){return p[x]===void 0?wX:X6(u(p[x]))}:l=kze,a?f=function(p,x){return p[x]===void 0?Pze:Cze(p[x])}:f=Cze,i||a)for(var d=0;d{"use strict";Ize.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}});var Y6=Te((dmr,Rze)=>{"use strict";Rze.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var Fze=Te((pmr,Dze)=>{"use strict";var _It=$l();function TX(e,t,r,n){if(!t||!t.visible)return null;for(var i=_It.getComponentMethod("errorbars","makeComputeError")(t),a=new Array(e.length),o=0;o0){var c=n.c2l(l);n._lowerLogErrorBound||(n._lowerLogErrorBound=c),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,c)}}else a[o]=[-s[0]*r,s[1]*r]}return a}function xIt(e){for(var t=0;t{"use strict";var wIt=qd().gl_line3d,Bze=qd().gl_scatter3d,AIt=qd().gl_error3d,TIt=qd().gl_mesh3d,SIt=qd().delaunay_triangulate,Qg=ei(),Vze=Jg(),K6=$g().formatColor,MIt=S3(),SX=AX(),EIt=Y6(),kIt=wu(),CIt=rv().appendArrayPointValue,LIt=Fze();function Gze(e,t){this.scene=e,this.uid=t,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var EX=Gze.prototype;EX.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var t=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(Qg.isArrayOrTypedArray(this.textLabels)?(this.textLabels[t]||this.textLabels[t]===0)&&(e.textLabel=this.textLabels[t]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]],!0}};function PIt(e,t,r){var n=(r+1)%3,i=(r+2)%3,a=[],o=[],s;for(s=0;s-1?-1:e.indexOf("right")>-1?1:0}function qze(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function IIt(e){var t=0,r=0,n=[t,r];if(Array.isArray(e))for(var i=0;i=0){var l=PIt(s.position,s.delaunayColor,s.delaunayAxis);l.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(l):(l.gl=t,this.delaunayMesh=TIt(l),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)};EX.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function BIt(e,t){var r=new Gze(e,t.uid);return r.update(t),r}Hze.exports=BIt});var zX=Te((mmr,Zze)=>{"use strict";var e1=Xc(),OIt=gc(),PX=nc(),kX=Hc().axisHoverFormat,qIt=Hu().hovertemplateAttrs,NIt=Hu().texttemplateAttrs,jze=Vf(),UIt=AX(),VIt=Y6(),Ym=Su().extendFlat,GIt=Sc().overrideAll,Xze=Y1(),HIt=e1.line,N2=e1.marker,WIt=N2.line,jIt=Ym({width:HIt.width,dash:{valType:"enumerated",values:Xze(UIt),dflt:"solid"}},PX("line"));function CX(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var LX=Zze.exports=GIt({x:e1.x,y:e1.y,z:{valType:"data_array"},text:Ym({},e1.text,{}),texttemplate:NIt({},{}),hovertext:Ym({},e1.hovertext,{}),hovertemplate:qIt(),xhoverformat:kX("x"),yhoverformat:kX("y"),zhoverformat:kX("z"),mode:Ym({},e1.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:CX("x"),y:CX("y"),z:CX("z")},connectgaps:e1.connectgaps,line:jIt,marker:Ym({symbol:{valType:"enumerated",values:Xze(VIt),dflt:"circle",arrayOk:!0},size:Ym({},N2.size,{dflt:8}),sizeref:N2.sizeref,sizemin:N2.sizemin,sizemode:N2.sizemode,opacity:Ym({},N2.opacity,{arrayOk:!1}),colorbar:N2.colorbar,line:Ym({width:Ym({},WIt.width,{arrayOk:!1})},PX("marker.line"))},PX("marker")),textposition:Ym({},e1.textposition,{dflt:"top center"}),textfont:OIt({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:jze.opacity,hoverinfo:Ym({},jze.hoverinfo)},"calc","nested");LX.x.editType=LX.y.editType=LX.z.editType="calc+clearAxisTypes"});var Jze=Te((ymr,Kze)=>{"use strict";var Yze=$l(),XIt=ei(),IX=lc(),ZIt=$v(),YIt=I0(),KIt=R0(),JIt=zX();Kze.exports=function(t,r,n,i){function a(d,p){return XIt.coerce(t,r,JIt,d,p)}var o=$It(t,r,a,i);if(!o){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),a("mode"),IX.hasMarkers(r)&&ZIt(t,r,n,i,a,{noSelect:!0,noAngle:!0}),IX.hasLines(r)&&(a("connectgaps"),YIt(t,r,n,i,a)),IX.hasText(r)&&(a("texttemplate"),KIt(t,r,i,a,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var s=(r.line||{}).color,u=(r.marker||{}).color;a("surfaceaxis")>=0&&a("surfacecolor",s||u);for(var l=["x","y","z"],f=0;f<3;++f){var c="projection."+l[f];a(c+".show")&&(a(c+".opacity"),a(c+".scale"))}var h=Yze.getComponentMethod("errorbars","supplyDefaults");h(t,r,s||u||n,{axis:"z"}),h(t,r,s||u||n,{axis:"y",inherit:"z"}),h(t,r,s||u||n,{axis:"x",inherit:"z"})};function $It(e,t,r,n){var i=0,a=r("x"),o=r("y"),s=r("z"),u=Yze.getComponentMethod("calendars","handleTraceDefaults");return u(e,t,["x","y","z"],n),a&&o&&s&&(i=Math.min(a.length,o.length,s.length),t._length=t._xlength=t._ylength=t._zlength=i),i}});var Qze=Te((gmr,$ze)=>{"use strict";var QIt=ky(),eRt=D0();$ze.exports=function(t,r){var n=[{x:!1,y:!1,trace:r,t:{}}];return QIt(n,r),eRt(t,r),n}});var tIe=Te((_mr,eIe)=>{eIe.exports=tRt;function tRt(e,t){if(typeof e!="string")throw new TypeError("must specify type string");if(t=t||{},typeof document=="undefined"&&!t.canvas)return null;var r=t.canvas||document.createElement("canvas");typeof t.width=="number"&&(r.width=t.width),typeof t.height=="number"&&(r.height=t.height);var n=t,i;try{var a=[e];e.indexOf("webgl")===0&&a.push("experimental-"+e);for(var o=0;o{var rRt=tIe();rIe.exports=function(t){return rRt("webgl",t)}});var RX=Te((bmr,aIe)=>{"use strict";var nIe=jl(),iRt=function(){};aIe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=iRt);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=nIe.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=nIe.lightLine,n.style["z-index"]=30;var i=document.createElement("p");return i.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",i.style.position="relative",i.style.top="50%",i.style.left="50%",i.style.height="30%",i.style.width="50%",i.style.margin="-15% 0 0 -25%",n.appendChild(i),t.container.appendChild(n),t.container.style.background="#FFFFFF",t.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var lIe=Te((wmr,sIe)=>{"use strict";var U2=Jg(),nRt=ei(),aRt=["xaxis","yaxis","zaxis"];function oIe(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var oRt=oIe.prototype;oRt.merge=function(e,t){for(var r=this,n=0;n<3;++n){var i=t[aRt[n]];if(!i.visible){r.tickEnable[n]=!1,r.labelEnable[n]=!1,r.lineEnable[n]=!1,r.lineTickEnable[n]=!1,r.gridEnable[n]=!1,r.zeroEnable[n]=!1,r.backgroundEnable[n]=!1;continue}r.labels[n]=e._meta?nRt.templateString(i.title.text,e._meta):i.title.text,"font"in i.title&&(i.title.font.color&&(r.labelColor[n]=U2(i.title.font.color)),i.title.font.family&&(r.labelFont[n]=i.title.font.family),i.title.font.size&&(r.labelSize[n]=i.title.font.size),i.title.font.weight&&(r.labelFontWeight[n]=i.title.font.weight),i.title.font.style&&(r.labelFontStyle[n]=i.title.font.style),i.title.font.variant&&(r.labelFontVariant[n]=i.title.font.variant)),"showline"in i&&(r.lineEnable[n]=i.showline),"linecolor"in i&&(r.lineColor[n]=U2(i.linecolor)),"linewidth"in i&&(r.lineWidth[n]=i.linewidth),"showgrid"in i&&(r.gridEnable[n]=i.showgrid),"gridcolor"in i&&(r.gridColor[n]=U2(i.gridcolor)),"gridwidth"in i&&(r.gridWidth[n]=i.gridwidth),i.type==="log"?r.zeroEnable[n]=!1:"zeroline"in i&&(r.zeroEnable[n]=i.zeroline),"zerolinecolor"in i&&(r.zeroLineColor[n]=U2(i.zerolinecolor)),"zerolinewidth"in i&&(r.zeroLineWidth[n]=i.zerolinewidth),"ticks"in i&&i.ticks?r.lineTickEnable[n]=!0:r.lineTickEnable[n]=!1,"ticklen"in i&&(r.lineTickLength[n]=r._defaultLineTickLength[n]=i.ticklen),"tickcolor"in i&&(r.lineTickColor[n]=U2(i.tickcolor)),"tickwidth"in i&&(r.lineTickWidth[n]=i.tickwidth),"tickangle"in i&&(r.tickAngle[n]=i.tickangle==="auto"?-3600:Math.PI*-i.tickangle/180),"showticklabels"in i&&(r.tickEnable[n]=i.showticklabels),"tickfont"in i&&(i.tickfont.color&&(r.tickColor[n]=U2(i.tickfont.color)),i.tickfont.family&&(r.tickFont[n]=i.tickfont.family),i.tickfont.size&&(r.tickSize[n]=i.tickfont.size),i.tickfont.weight&&(r.tickFontWeight[n]=i.tickfont.weight),i.tickfont.style&&(r.tickFontStyle[n]=i.tickfont.style),i.tickfont.variant&&(r.tickFontVariant[n]=i.tickfont.variant)),"mirror"in i?["ticks","all","allticks"].indexOf(i.mirror)!==-1?(r.lineTickMirror[n]=!0,r.lineMirror[n]=!0):i.mirror===!0?(r.lineTickMirror[n]=!1,r.lineMirror[n]=!0):(r.lineTickMirror[n]=!1,r.lineMirror[n]=!1):r.lineMirror[n]=!1,"showbackground"in i&&i.showbackground!==!1?(r.backgroundEnable[n]=!0,r.backgroundColor[n]=U2(i.backgroundcolor)):r.backgroundEnable[n]=!1}};function sRt(e,t){var r=new oIe;return r.merge(e,t),r}sIe.exports=sRt});var cIe=Te((Amr,fIe)=>{"use strict";var lRt=Jg(),uRt=["xaxis","yaxis","zaxis"];function uIe(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var fRt=uIe.prototype;fRt.merge=function(e){for(var t=0;t<3;++t){var r=e[uRt[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=lRt(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function cRt(e){var t=new uIe;return t.merge(e),t}fIe.exports=cRt});var pIe=Te((Tmr,dIe)=>{"use strict";dIe.exports=mRt;var hIe=wu(),hRt=ei(),dRt=["xaxis","yaxis","zaxis"],pRt=[0,0,0];function vRt(e){for(var t=new Array(3),r=0;r<3;++r){for(var n=e[r],i=new Array(n.length),a=0;a/g," "));i[a]=l,o.tickmode=s}}t.ticks=i;for(var a=0;a<3;++a){pRt[a]=.5*(e.glplot.bounds[0][a]+e.glplot.bounds[1][a]);for(var f=0;f<2;++f)t.bounds[f][a]=e.glplot.bounds[f][a]}e.contourLevels=vRt(i)}});var bIe=Te((Smr,xIe)=>{"use strict";var yIe=qd().gl_plot3d,yRt=yIe.createCamera,vIe=yIe.createScene,gRt=iIe(),_Rt=LP(),Q6=$l(),lv=ei(),$6=lv.preserveDrawingBuffer(),eF=wu(),Km=jc(),xRt=Jg(),bRt=RX(),wRt=ZU(),ARt=lIe(),TRt=cIe(),SRt=pIe(),MRt=wm().applyAutorangeOptions,W4,J6,gIe=!1;function _Ie(e,t){var r=document.createElement("div"),n=e.container;this.graphDiv=e.graphDiv;var i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.style.position="absolute",i.style.top=i.style.left="0px",i.style.width=i.style.height="100%",i.style["z-index"]=20,i.style["pointer-events"]="none",r.appendChild(i),this.svgContainer=i,r.id=e.id,r.style.position="absolute",r.style.top=r.style.left="0px",r.style.width=r.style.height="100%",n.appendChild(r),this.fullLayout=t,this.id=e.id||"scene",this.fullSceneLayout=t[this.id],this.plotArgs=[[],{},{}],this.axesOptions=ARt(t,t[this.id]),this.spikeOptions=TRt(t[this.id]),this.container=r,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=Q6.getComponentMethod("annotations3d","convert"),this.drawAnnotations=Q6.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Tp=_Ie.prototype;Tp.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:$6,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!J6&&(W4=document.createElement("canvas"),J6=gRt({canvas:W4,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!J6))throw new Error("error creating static canvas/context for image server");t.gl=J6,t.canvas=W4}return t};var mIe=!0;Tp.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=vIe(t)}catch(n){if(e.staticMode||!mIe||$6)r=!1;else{lv.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{$6=t.glOptions.preserveDrawingBuffer=!0,e.glplot=vIe(t)}catch(i){$6=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return mIe=!1,r};Tp.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=yRt(e.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:r,zoomMin:.01,zoomMax:100,mode:"orbit"})};Tp.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var t=e.tryCreatePlot();if(!t)return bRt(e);e.traces={},e.make4thDimension();var r=e.graphDiv,n=r.layout,i=function(){var o={};return e.isCameraChanged(n)&&(o[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(o[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=o[e.id+".aspectmode"]="manual")),o},a=function(o){if(o.fullSceneLayout.dragmode!==!1){var s=i();o.saveLayout(n),o.graphDiv.emit("plotly_relayout",s)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){a(e)}),e.glplot.canvas.addEventListener("touchstart",function(){gIe=!0}),e.glplot.canvas.addEventListener("wheel",function(o){if(r._context._scrollZoom.gl3d){if(e.camera._ortho){var s=o.deltaX>o.deltaY?1.1:.9090909090909091,u=e.glplot.getAspectratio();e.glplot.setAspectratio({x:s*u.x,y:s*u.y,z:s*u.z})}a(e)}},_Rt?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var o=i();e.graphDiv.emit("plotly_relayouting",o)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(o){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:o,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};Tp.render=function(){var e=this,t=e.graphDiv,r,n=e.svgContainer,i=e.container.getBoundingClientRect();t._fullLayout._calcInverseTransform(t);var a=t._fullLayout._invScaleX,o=t._fullLayout._invScaleY,s=i.width*a,u=i.height*o;n.setAttributeNS(null,"viewBox","0 0 "+s+" "+u),n.setAttributeNS(null,"width",s),n.setAttributeNS(null,"height",u),SRt(e),e.glplot.axes.update(e.axesOptions);for(var l=Object.keys(e.traces),f=null,c=e.glplot.selection,h=0;h")):r.type==="isosurface"||r.type==="volume"?(v.valueLabel=eF.hoverLabelText(e._mockAxis,e._mockAxis.d2l(c.traceCoordinate[3]),r.valuehoverformat),_.push("value: "+v.valueLabel),c.textLabel&&_.push(c.textLabel),L=_.join("
")):L=c.textLabel;var C={x:c.traceCoordinate[0],y:c.traceCoordinate[1],z:c.traceCoordinate[2],data:x._input,fullData:x,curveNumber:x.index,pointNumber:b};Km.appendArrayPointValue(C,x,b),r._module.eventData&&(C=x._module.eventData(C,c,x,{},b));var S={points:[C]};if(e.fullSceneLayout.hovermode){var m=[];Km.loneHover({trace:x,x:(.5+.5*p[0]/p[3])*s,y:(.5-.5*p[1]/p[3])*u,xLabel:v.xLabel,yLabel:v.yLabel,zLabel:v.zLabel,text:L,name:f.name,color:Km.castHoverOption(x,b,"bgcolor")||f.color,borderColor:Km.castHoverOption(x,b,"bordercolor"),fontFamily:Km.castHoverOption(x,b,"font.family"),fontSize:Km.castHoverOption(x,b,"font.size"),fontColor:Km.castHoverOption(x,b,"font.color"),nameLength:Km.castHoverOption(x,b,"namelength"),textAlign:Km.castHoverOption(x,b,"align"),hovertemplate:lv.castOption(x,b,"hovertemplate"),hovertemplateLabels:lv.extendFlat({},C,v),eventData:[C]},{container:n,gd:t,inOut_bbox:m}),C.bbox=m[0]}c.distance<5&&(c.buttons||gIe)?t.emit("plotly_click",S):t.emit("plotly_hover",S),this.oldEventData=S}else Km.loneUnhover(n),this.oldEventData&&t.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};Tp.recoverContext=function(){var e=this;e.glplot.dispose();var t=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(t);return}if(!e.initializeGLPlot()){lv.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(t)};var j4=["xaxis","yaxis","zaxis"];function ERt(e,t,r){for(var n=e.fullSceneLayout,i=0;i<3;i++){var a=j4[i],o=a.charAt(0),s=n[a],u=t[o],l=t[o+"calendar"],f=t["_"+o+"length"];if(!lv.isArrayOrTypedArray(u))r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],f-1);else for(var c,h=0;h<(f||u.length);h++)if(lv.isArrayOrTypedArray(u[h]))for(var d=0;dx[1][o])x[0][o]=-1,x[1][o]=1;else{var A=x[1][o]-x[0][o];x[0][o]-=A/32,x[1][o]+=A/32}if(k=[x[0][o],x[1][o]],k=MRt(k,u),x[0][o]=k[0],x[1][o]=k[1],u.isReversed()){var B=x[0][o];x[0][o]=x[1][o],x[1][o]=B}}else k=u.range,x[0][o]=u.r2l(k[0]),x[1][o]=u.r2l(k[1]);x[0][o]===x[1][o]&&(x[0][o]-=1,x[1][o]+=1),b[o]=x[1][o]-x[0][o],u.range=[x[0][o],x[1][o]],u.limitRange(),n.glplot.setBounds(o,{min:u.range[0]*d[o],max:u.range[1]*d[o]})}var F,U=f.aspectmode;if(U==="cube")F=[1,1,1];else if(U==="manual"){var G=f.aspectratio;F=[G.x,G.y,G.z]}else if(U==="auto"||U==="data"){var j=[1,1,1];for(o=0;o<3;++o){u=f[j4[o]],l=u.type;var H=v[l];j[o]=Math.pow(H.acc,1/H.count)/d[o]}U==="data"||Math.max.apply(null,j)/Math.min.apply(null,j)<=4?F=j:F=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");f.aspectratio.x=c.aspectratio.x=F[0],f.aspectratio.y=c.aspectratio.y=F[1],f.aspectratio.z=c.aspectratio.z=F[2],n.glplot.setAspectratio(f.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:f.aspectratio.x,y:f.aspectratio.y,z:f.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=f.aspectmode);var N=f.domain||null,W=t._size||null;if(N&&W){var re=n.container.style;re.position="absolute",re.left=W.l+N.x[0]*W.w+"px",re.top=W.t+(1-N.y[1])*W.h+"px",re.width=W.w*(N.x[1]-N.x[0])+"px",re.height=W.h*(N.y[1]-N.y[0])+"px"}n.glplot.redraw()}};Tp.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function CRt(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function LRt(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}Tp.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),LRt(e.camera)};Tp.setViewport=function(e){var t=this,r=e.camera;t.camera.lookAt.apply(this,CRt(r)),t.glplot.setAspectratio(e.aspectratio);var n=r.projection.type==="orthographic",i=t.camera._ortho;n!==i&&(t.glplot.redraw(),t.glplot.clearRGBA(),t.glplot.dispose(),t.initializeGLPlot())};Tp.isCameraChanged=function(e){var t=this,r=t.getCamera(),n=lv.nestedProperty(e,t.id+".camera"),i=n.get();function a(l,f,c,h){var d=["up","center","eye"],p=["x","y","z"];return f[d[c]]&&l[d[c]][p[h]]===f[d[c]][p[h]]}var o=!1;if(i===void 0)o=!0;else{for(var s=0;s<3;s++)for(var u=0;u<3;u++)if(!a(r,i,s,u)){o=!0;break}(!i.projection||r.projection&&r.projection.type!==i.projection.type)&&(o=!0)}return o};Tp.isAspectChanged=function(e){var t=this,r=t.glplot.getAspectratio(),n=lv.nestedProperty(e,t.id+".aspectratio"),i=n.get();return i===void 0||i.x!==r.x||i.y!==r.y||i.z!==r.z};Tp.saveLayout=function(e){var t=this,r=t.fullLayout,n,i,a,o,s,u,l=t.isCameraChanged(e),f=t.isAspectChanged(e),c=l||f;if(c){var h={};if(l&&(n=t.getCamera(),i=lv.nestedProperty(e,t.id+".camera"),a=i.get(),h[t.id+".camera"]=a),f&&(o=t.glplot.getAspectratio(),s=lv.nestedProperty(e,t.id+".aspectratio"),u=s.get(),h[t.id+".aspectratio"]=u),Q6.call("_storeDirectGUIEdit",e,r._preGUI,h),l){i.set(n);var d=lv.nestedProperty(r,t.id+".camera");d.set(n)}if(f){s.set(o);var p=lv.nestedProperty(r,t.id+".aspectratio");p.set(o),t.glplot.redraw()}}return c};Tp.updateFx=function(e,t){var r=this,n=r.camera;if(n)if(e==="orbit")n.mode="orbit",n.keyBindingMode="rotate";else if(e==="turntable"){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var i=r.graphDiv,a=i._fullLayout,o=r.fullSceneLayout.camera,s=o.up.x,u=o.up.y,l=o.up.z;if(l/Math.sqrt(s*s+u*u+l*l)<.999){var f=r.id+".camera.up",c={x:0,y:0,z:1},h={};h[f]=c;var d=i.layout;Q6.call("_storeDirectGUIEdit",d,a._preGUI,h),o.up=c,lv.nestedProperty(d,f).set(c)}}else n.keyBindingMode=e;r.fullSceneLayout.hovermode=t};function PRt(e,t,r){for(var n=0,i=r-1;n0)for(var s=255/o,u=0;u<3;++u)e[a+u]=Math.min(s*e[a+u],255)}}Tp.toImage=function(e){var t=this;e||(e="png"),t.staticMode&&t.container.appendChild(W4),t.glplot.redraw();var r=t.glplot.gl,n=r.drawingBufferWidth,i=r.drawingBufferHeight;r.bindFramebuffer(r.FRAMEBUFFER,null);var a=new Uint8Array(n*i*4);r.readPixels(0,0,n,i,r.RGBA,r.UNSIGNED_BYTE,a),PRt(a,n,i),zRt(a,n,i);var o=document.createElement("canvas");o.width=n,o.height=i;var s=o.getContext("2d",{willReadFrequently:!0}),u=s.createImageData(n,i);u.data.set(a),s.putImageData(u,0,0);var l;switch(e){case"jpeg":l=o.toDataURL("image/jpeg");break;case"webp":l=o.toDataURL("image/webp");break;default:l=o.toDataURL("image/png")}return t.staticMode&&t.container.removeChild(W4),l};Tp.setConvert=function(){for(var e=this,t=0;t<3;t++){var r=e.fullSceneLayout[j4[t]];eF.setConvert(r,e.fullLayout),r.setScale=lv.noop}};Tp.make4thDimension=function(){var e=this,t=e.graphDiv,r=t._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},eF.setConvert(e._mockAxis,r)};xIe.exports=_Ie});var AIe=Te((Mmr,wIe)=>{"use strict";wIe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var FX=Te((Emr,TIe)=>{"use strict";var IRt=jl(),cf=Dd(),DX=Su().extendFlat,RRt=Sc().overrideAll;TIe.exports=RRt({visible:cf.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:IRt.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:cf.color,categoryorder:cf.categoryorder,categoryarray:cf.categoryarray,title:{text:cf.title.text,font:cf.title.font},type:DX({},cf.type,{values:["-","linear","log","date","category"]}),autotypenumbers:cf.autotypenumbers,autorange:cf.autorange,autorangeoptions:{minallowed:cf.autorangeoptions.minallowed,maxallowed:cf.autorangeoptions.maxallowed,clipmin:cf.autorangeoptions.clipmin,clipmax:cf.autorangeoptions.clipmax,include:cf.autorangeoptions.include,editType:"plot"},rangemode:cf.rangemode,minallowed:cf.minallowed,maxallowed:cf.maxallowed,range:DX({},cf.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:cf.minor.tickmode,nticks:cf.nticks,tick0:cf.tick0,dtick:cf.dtick,tickvals:cf.tickvals,ticktext:cf.ticktext,ticks:cf.ticks,mirror:cf.mirror,ticklen:cf.ticklen,tickwidth:cf.tickwidth,tickcolor:cf.tickcolor,showticklabels:cf.showticklabels,labelalias:cf.labelalias,tickfont:cf.tickfont,tickangle:cf.tickangle,tickprefix:cf.tickprefix,showtickprefix:cf.showtickprefix,ticksuffix:cf.ticksuffix,showticksuffix:cf.showticksuffix,showexponent:cf.showexponent,exponentformat:cf.exponentformat,minexponent:cf.minexponent,separatethousands:cf.separatethousands,tickformat:cf.tickformat,tickformatstops:cf.tickformatstops,hoverformat:cf.hoverformat,showline:cf.showline,linecolor:cf.linecolor,linewidth:cf.linewidth,showgrid:cf.showgrid,gridcolor:DX({},cf.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:cf.gridwidth,zeroline:cf.zeroline,zerolinecolor:cf.zerolinecolor,zerolinewidth:cf.zerolinewidth},"plot","from-root")});var NX=Te((kmr,SIe)=>{"use strict";var BX=FX(),DRt=zc().attributes,OX=Su().extendFlat,FRt=ei().counterRegex;function qX(e,t,r){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:t,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}SIe.exports={_arrayAttrRegexps:[FRt("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:OX(qX(0,0,1),{}),center:OX(qX(0,0,0),{}),eye:OX(qX(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:DRt({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:BX,yaxis:BX,zaxis:BX,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot"}});var CIe=Te((Cmr,kIe)=>{"use strict";var BRt=cd().mix,MIe=ei(),ORt=Pf(),qRt=FX(),NRt=zU(),URt=$5(),EIe=["xaxis","yaxis","zaxis"],VRt=100*136/187;kIe.exports=function(t,r,n){var i,a;function o(l,f){return MIe.coerce(i,a,qRt,l,f)}for(var s=0;s{"use strict";var GRt=ei(),HRt=jl(),WRt=$l(),jRt=C_(),XRt=CIe(),LIe=NX(),ZRt=Rd().getSubplotData,PIe="gl3d";zIe.exports=function(t,r,n){var i=r._basePlotModules.length>1;function a(o){if(!i){var s=GRt.validate(t[o],LIe[o]);if(s)return t[o]}}jRt(t,r,n,{type:PIe,attributes:LIe,handleDefaults:YRt,fullLayout:r,font:r.font,fullData:n,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function YRt(e,t,r,n){for(var i=r("bgcolor"),a=HRt.combine(i,n.paper_bgcolor),o=["up","center","eye"],s=0;s.999)&&(h="turntable")}else h="turntable";r("dragmode",h),r("hovermode",n.getDfltFromLayout("hovermode"))}});var Q_=Te(uv=>{"use strict";var KRt=Sc().overrideAll,JRt=N1(),$Rt=bIe(),QRt=Rd().getSubplotData,eDt=ei(),tDt=jv(),qT="gl3d",UX="scene";uv.name=qT;uv.attr=UX;uv.idRoot=UX;uv.idRegex=uv.attrRegex=eDt.counterRegex("scene");uv.attributes=AIe();uv.layoutAttributes=NX();uv.baseLayoutAttrOverrides=KRt({hoverlabel:JRt.hoverlabel},"plot","nested");uv.supplyLayoutDefaults=IIe();uv.plot=function(t){for(var r=t._fullLayout,n=t._fullData,i=r._subplots[qT],a=0;a{"use strict";RIe.exports={plot:Wze(),attributes:zX(),markerSymbols:Y6(),supplyDefaults:Jze(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:Qze(),moduleType:"trace",name:"scatter3d",basePlotModule:Q_(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var BIe=Te((Imr,FIe)=>{"use strict";FIe.exports=DIe()});var X4=Te((Rmr,NIe)=>{"use strict";var OIe=jl(),rDt=nc(),VX=Hc().axisHoverFormat,iDt=Hu().hovertemplateAttrs,qIe=Vf(),GX=Su().extendFlat,nDt=Sc().overrideAll;function HX(e){return{valType:"boolean",dflt:!1}}function WX(e){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:HX("x"),y:HX("y"),z:HX("z")},color:{valType:"color",dflt:OIe.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:OIe.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var jX=NIe.exports=nDt(GX({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:iDt(),xhoverformat:VX("x"),yhoverformat:VX("y"),zhoverformat:VX("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},rDt("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:WX("x"),y:WX("y"),z:WX("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:GX({},qIe.hoverinfo),showlegend:GX({},qIe.showlegend,{dflt:!1})}),"calc","nested");jX.x.editType=jX.y.editType=jX.z.editType="calc+clearAxisTypes"});var ZX=Te((Dmr,GIe)=>{"use strict";var aDt=$l(),UIe=ei(),oDt=ed(),sDt=X4(),XX=.1;function lDt(e,t){for(var r=[],n=32,i=0;i{"use strict";var HIe=Dp();WIe.exports=function(t,r){r.surfacecolor?HIe(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):HIe(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var $Ie=Te((Bmr,JIe)=>{"use strict";var cDt=qd().gl_surface3d,NT=qd().ndarray,hDt=qd().ndarray_linear_interpolate.d2,dDt=rR(),pDt=iR(),Z4=ei().isArrayOrTypedArray,vDt=$g().parseColorScale,XIe=Jg(),mDt=_c().extractOpts;function YIe(e,t,r){this.scene=e,this.uid=r,this.surface=t,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var Jm=YIe.prototype;Jm.getXat=function(e,t,r,n){var i=Z4(this.data.x)?Z4(this.data.x[0])?this.data.x[t][e]:this.data.x[e]:e;return r===void 0?i:n.d2l(i,0,r)};Jm.getYat=function(e,t,r,n){var i=Z4(this.data.y)?Z4(this.data.y[0])?this.data.y[t][e]:this.data.y[t]:t;return r===void 0?i:n.d2l(i,0,r)};Jm.getZat=function(e,t,r,n){var i=this.data.z[t][e];return i===null&&this.data.connectgaps&&this.data._interpolatedZ&&(i=this.data._interpolatedZ[t][e]),r===void 0?i:n.d2l(i,0,r)};Jm.handlePick=function(e){if(e.object===this.surface){var t=(e.data.index[0]-1)/this.dataScaleX-1,r=(e.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(t),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);e.index=[n,i],e.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],e.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a<3;a++){var o=e.dataCoordinate[a];o!=null&&(e.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return Z4(s)&&s[i]&&s[i][n]!==void 0?e.textLabel=s[i][n]:s?e.textLabel=s:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function yDt(e){var t=e[0].rgb,r=e[e.length-1].rgb;return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]&&t[3]===r[3]}var UT=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function gDt(e,t){if(e0){r=UT[n];break}return r}function xDt(e,t){if(!(e<1||t<1)){for(var r=YX(e),n=YX(t),i=1,a=0;atF;)n--,n/=_Dt(n),n++,n1?i:1};function wDt(e,t,r){var n=r[8]+r[2]*t[0]+r[5]*t[1];return e[0]=(r[6]+r[0]*t[0]+r[3]*t[1])/n,e[1]=(r[7]+r[1]*t[0]+r[4]*t[1])/n,e}function ADt(e,t,r){return TDt(e,t,wDt,r),e}function TDt(e,t,r,n){for(var i=[0,0],a=e.shape[0],o=e.shape[1],s=0;s0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(t[n]=!0,i=this.contourStart[n];ih&&(this.minValues[l]=h),this.maxValues[l]{"use strict";QIe.exports={attributes:X4(),supplyDefaults:ZX().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:jIe(),plot:$Ie(),moduleType:"trace",name:"surface",basePlotModule:Q_(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var rRe=Te((qmr,tRe)=>{"use strict";tRe.exports=eRe()});var VT=Te((Nmr,nRe)=>{"use strict";var EDt=nc(),KX=Hc().axisHoverFormat,kDt=Hu().hovertemplateAttrs,ex=X4(),iRe=Vf(),tx=Su().extendFlat;nRe.exports=tx({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:kDt({editType:"calc"}),xhoverformat:KX("x"),yhoverformat:KX("y"),zhoverformat:KX("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"}},EDt("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:ex.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:tx({},ex.contours.x.show,{}),color:ex.contours.x.color,width:ex.contours.x.width,editType:"calc"},lightposition:{x:tx({},ex.lightposition.x,{dflt:1e5}),y:tx({},ex.lightposition.y,{dflt:1e5}),z:tx({},ex.lightposition.z,{dflt:0}),editType:"calc"},lighting:tx({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},ex.lighting),hoverinfo:tx({},iRe.hoverinfo,{editType:"calc"}),showlegend:tx({},iRe.showlegend,{dflt:!1})})});var iF=Te((Umr,oRe)=>{"use strict";var CDt=nc(),rF=Hc().axisHoverFormat,LDt=Hu().hovertemplateAttrs,Y4=VT(),aRe=Vf(),JX=Su().extendFlat,PDt=Sc().overrideAll;function $X(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function QX(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var GT=oRe.exports=PDt(JX({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:$X("x"),y:$X("y"),z:$X("z")},caps:{x:QX("x"),y:QX("y"),z:QX("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:LDt(),xhoverformat:rF("x"),yhoverformat:rF("y"),zhoverformat:rF("z"),valuehoverformat:rF("value",1),showlegend:JX({},aRe.showlegend,{dflt:!1})},CDt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:Y4.opacity,lightposition:Y4.lightposition,lighting:Y4.lighting,flatshading:Y4.flatshading,contour:Y4.contour,hoverinfo:JX({},aRe.hoverinfo)}),"calc","nested");GT.flatshading.dflt=!0;GT.lighting.facenormalsepsilon.dflt=0;GT.x.editType=GT.y.editType=GT.z.editType=GT.value.editType="calc+clearAxisTypes"});var eZ=Te((Vmr,lRe)=>{"use strict";var zDt=ei(),IDt=$l(),RDt=iF(),DDt=ed();function FDt(e,t,r,n){function i(a,o){return zDt.coerce(e,t,RDt,a,o)}sRe(e,t,r,n,i)}function sRe(e,t,r,n,i){var a=i("isomin"),o=i("isomax");o!=null&&a!==void 0&&a!==null&&a>o&&(t.isomin=null,t.isomax=null);var s=i("x"),u=i("y"),l=i("z"),f=i("value");if(!s||!s.length||!u||!u.length||!l||!l.length||!f||!f.length){t.visible=!1;return}var c=IDt.getComponentMethod("calendars","handleTraceDefaults");c(e,t,["x","y","z"],n),i("valuehoverformat"),["x","y","z"].forEach(function(x){i(x+"hoverformat");var b="caps."+x,v=i(b+".show");v&&i(b+".fill");var k="slices."+x,E=i(k+".show");E&&(i(k+".fill"),i(k+".locations"))});var h=i("spaceframe.show");h&&i("spaceframe.fill");var d=i("surface.show");d&&(i("surface.count"),i("surface.fill"),i("surface.pattern"));var p=i("contour.show");p&&(i("contour.color"),i("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(x){i(x)}),DDt(e,t,n,i,{prefix:"",cLetter:"c"}),t._length=null}lRe.exports={supplyDefaults:FDt,supplyIsoDefaults:sRe}});var nF=Te((Gmr,fRe)=>{"use strict";var rZ=ei(),BDt=Dp();function ODt(e,t){t._len=Math.min(t.u.length,t.v.length,t.w.length,t.x.length,t.y.length,t.z.length),t._u=Hy(t.u,t._len),t._v=Hy(t.v,t._len),t._w=Hy(t.w,t._len),t._x=Hy(t.x,t._len),t._y=Hy(t.y,t._len),t._z=Hy(t.z,t._len);var r=uRe(t);t._gridFill=r.fill,t._Xs=r.Xs,t._Ys=r.Ys,t._Zs=r.Zs,t._len=r.len;var n=0,i,a,o;t.starts&&(i=Hy(t.starts.x||[]),a=Hy(t.starts.y||[]),o=Hy(t.starts.z||[]),n=Math.min(i.length,a.length,o.length)),t._startsX=i||[],t._startsY=a||[],t._startsZ=o||[];var s=0,u=1/0,l;for(l=0;l1&&(E=t[i-1],L=r[i-1],C=n[i-1]),a=0;aE?"-":"+")+"x"),p=p.replace("y",(T>L?"-":"+")+"y"),p=p.replace("z",(_>C?"-":"+")+"z");var A=function(){i=0,S=[],m=[],P=[]};(!i||i{"use strict";var qDt=Dp(),NDt=nF().processGrid,aF=nF().filter;cRe.exports=function(t,r){r._len=Math.min(r.x.length,r.y.length,r.z.length,r.value.length),r._x=aF(r.x,r._len),r._y=aF(r.y,r._len),r._z=aF(r.z,r._len),r._value=aF(r.value,r._len);var n=NDt(r);r._gridFill=n.fill,r._Xs=n.Xs,r._Ys=n.Ys,r._Zs=n.Zs,r._len=n.len;for(var i=1/0,a=-1/0,o=0;o{"use strict";hRe.exports=function(t,r,n,i){i=i||t.length;for(var a=new Array(i),o=0;o{"use strict";var UDt=qd().gl_mesh3d,VDt=$g().parseColorScale,GDt=ei().isArrayOrTypedArray,HDt=Jg(),WDt=_c().extractOpts,dRe=HT(),K4=function(e,t){for(var r=t.length-1;r>0;r--){var n=Math.min(t[r],t[r-1]),i=Math.max(t[r],t[r-1]);if(i>n&&n-1}function ae(dt,pt){return dt===null?pt:dt}function be(dt,pt,at){A();var Xe=[pt],rt=[at];if(H>=1)Xe=[pt],rt=[at];else if(H>0){var Qe=W(pt,at);Xe=Qe.xyzv,rt=Qe.abc}for(var zt=0;zt-1?at[lr]:P(mr,_r,Ht);xe>-1?Yt[lr]=xe:Yt[lr]=F(mr,_r,Ht,ae(dt,Re))}U(Yt[0],Yt[1],Yt[2])}}function Pe(dt,pt,at){var Xe=function(rt,Qe,zt){be(dt,[pt[rt],pt[Qe],pt[zt]],[at[rt],at[Qe],at[zt]])};Xe(0,1,2),Xe(2,3,0)}function Ce(dt,pt,at){var Xe=function(rt,Qe,zt){be(dt,[pt[rt],pt[Qe],pt[zt]],[at[rt],at[Qe],at[zt]])};Xe(0,1,2),Xe(3,0,1),Xe(2,3,0),Xe(1,2,3)}function de(dt,pt,at,Xe){var rt=dt[3];rtXe&&(rt=Xe);for(var Qe=(dt[3]-rt)/(dt[3]-pt[3]+1e-9),zt=[],Yt=0;Yt<4;Yt++)zt[Yt]=(1-Qe)*dt[Yt]+Qe*pt[Yt];return zt}function te(dt,pt,at){return dt>=pt&&dt<=at}function ke(dt){var pt=.001*(L-T);return dt>=T-pt&&dt<=L+pt}function Ee(dt){for(var pt=[],at=0;at<4;at++){var Xe=dt[at];pt.push([e._x[Xe],e._y[Xe],e._z[Xe],e._value[Xe]])}return pt}var Me=3;function Ue(dt,pt,at,Xe,rt,Qe){Qe||(Qe=1),at=[-1,-1,-1];var zt=!1,Yt=[te(pt[0][3],Xe,rt),te(pt[1][3],Xe,rt),te(pt[2][3],Xe,rt)];if(!Yt[0]&&!Yt[1]&&!Yt[2])return!1;var lr=function(_r,Ht,Re){return ke(Ht[0][3])&&ke(Ht[1][3])&&ke(Ht[2][3])?(be(_r,Ht,Re),!0):QeYt?[k,Qe]:[Qe,E];At(pt,lr[0],lr[1])}}var mr=[[Math.min(T,E),Math.max(T,E)],[Math.min(k,L),Math.max(k,L)]];["x","y","z"].forEach(function(_r){for(var Ht=[],Re=0;Re0&&(_e.push(mt.id),_r==="x"?fe.push([mt.distRatio,0,0]):_r==="y"?fe.push([0,mt.distRatio,0]):fe.push([0,0,mt.distRatio]))}else _r==="x"?ct=Et(1,d-1):_r==="y"?ct=Et(1,p-1):ct=Et(1,x-1);_e.length>0&&(_r==="x"?Ht[xe]=St(dt,_e,Oe,Ie,fe,Ht[xe]):_r==="y"?Ht[xe]=Bt(dt,_e,Oe,Ie,fe,Ht[xe]):Ht[xe]=Zt(dt,_e,Oe,Ie,fe,Ht[xe]),xe++),ct.length>0&&(_r==="x"?Ht[xe]=bt(dt,ct,Oe,Ie,Ht[xe]):_r==="y"?Ht[xe]=Nt(dt,ct,Oe,Ie,Ht[xe]):Ht[xe]=nt(dt,ct,Oe,Ie,Ht[xe]),xe++)}var It=e.caps[_r];It.show&&It.fill&&(N(It.fill),_r==="x"?Ht[xe]=bt(dt,[0,d-1],Oe,Ie,Ht[xe]):_r==="y"?Ht[xe]=Nt(dt,[0,p-1],Oe,Ie,Ht[xe]):Ht[xe]=nt(dt,[0,x-1],Oe,Ie,Ht[xe]),xe++)}}),s===0&&B(),e._meshX=_,e._meshY=C,e._meshZ=S,e._meshIntensity=m,e._Xs=f,e._Ys=c,e._Zs=h}return ot(),e}function XDt(e,t){var r=e.glplot.gl,n=UDt({gl:r}),i=new pRe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}mRe.exports={findNearestOnAxis:K4,generateIsoMeshes:vRe,createIsosurfaceTrace:XDt}});var gRe=Te((Xmr,yRe)=>{"use strict";yRe.exports={attributes:iF(),supplyDefaults:eZ().supplyDefaults,calc:iZ(),colorbar:{min:"cmin",max:"cmax"},plot:oF().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:Q_(),categories:["gl3d","showLegend"],meta:{}}});var xRe=Te((Zmr,_Re)=>{"use strict";_Re.exports=gRe()});var oZ=Te((Ymr,wRe)=>{"use strict";var ZDt=nc(),Nh=iF(),YDt=X4(),bRe=Vf(),aZ=Su().extendFlat,KDt=Sc().overrideAll,sF=wRe.exports=KDt(aZ({x:Nh.x,y:Nh.y,z:Nh.z,value:Nh.value,isomin:Nh.isomin,isomax:Nh.isomax,surface:Nh.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:Nh.slices,caps:Nh.caps,text:Nh.text,hovertext:Nh.hovertext,xhoverformat:Nh.xhoverformat,yhoverformat:Nh.yhoverformat,zhoverformat:Nh.zhoverformat,valuehoverformat:Nh.valuehoverformat,hovertemplate:Nh.hovertemplate},ZDt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Nh.colorbar,opacity:Nh.opacity,opacityscale:YDt.opacityscale,lightposition:Nh.lightposition,lighting:Nh.lighting,flatshading:Nh.flatshading,contour:Nh.contour,hoverinfo:aZ({},bRe.hoverinfo),showlegend:aZ({},bRe.showlegend,{dflt:!1})}),"calc","nested");sF.x.editType=sF.y.editType=sF.z.editType=sF.value.editType="calc+clearAxisTypes"});var TRe=Te((Kmr,ARe)=>{"use strict";var JDt=ei(),$Dt=oZ(),QDt=eZ().supplyIsoDefaults,e6t=ZX().opacityscaleDefaults;ARe.exports=function(t,r,n,i){function a(o,s){return JDt.coerce(t,r,$Dt,o,s)}QDt(t,r,n,i,a),e6t(t,r,i,a)}});var kRe=Te((Jmr,ERe)=>{"use strict";var t6t=qd().gl_mesh3d,r6t=$g().parseColorScale,i6t=ei().isArrayOrTypedArray,n6t=Jg(),a6t=_c().extractOpts,SRe=HT(),sZ=oF().findNearestOnAxis,o6t=oF().generateIsoMeshes;function MRe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var lZ=MRe.prototype;lZ.handlePick=function(e){if(e.object===this.mesh){var t=e.data.index,r=this.data._meshX[t],n=this.data._meshY[t],i=this.data._meshZ[t],a=this.data._Ys.length,o=this.data._Zs.length,s=sZ(r,this.data._Xs).id,u=sZ(n,this.data._Ys).id,l=sZ(i,this.data._Zs).id,f=e.index=l+o*u+o*a*s;e.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var c=this.data.hovertext||this.data.text;return i6t(c)&&c[f]!==void 0?e.textLabel=c[f]:c&&(e.textLabel=c),!0}};lZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=o6t(e);function n(u,l,f,c){return l.map(function(h){return u.d2l(h,0,c)*f})}var i=SRe(n(r.xaxis,e._meshX,t.dataScale[0],e.xcalendar),n(r.yaxis,e._meshY,t.dataScale[1],e.ycalendar),n(r.zaxis,e._meshZ,t.dataScale[2],e.zcalendar)),a=SRe(e._meshI,e._meshJ,e._meshK),o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:n6t(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=a6t(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=r6t(e),this.mesh.update(o)};lZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function s6t(e,t){var r=e.glplot.gl,n=t6t({gl:r}),i=new MRe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}ERe.exports=s6t});var LRe=Te(($mr,CRe)=>{"use strict";CRe.exports={attributes:oZ(),supplyDefaults:TRe(),calc:iZ(),colorbar:{min:"cmin",max:"cmax"},plot:kRe(),moduleType:"trace",name:"volume",basePlotModule:Q_(),categories:["gl3d","showLegend"],meta:{}}});var zRe=Te((Qmr,PRe)=>{"use strict";PRe.exports=LRe()});var DRe=Te((eyr,RRe)=>{"use strict";var l6t=$l(),IRe=ei(),u6t=ed(),f6t=VT();RRe.exports=function(t,r,n,i){function a(f,c){return IRe.coerce(t,r,f6t,f,c)}function o(f){var c=f.map(function(h){var d=a(h);return d&&IRe.isArrayOrTypedArray(d)?d:null});return c.every(function(h){return h&&h.length===c[0].length})&&c}var s=o(["x","y","z"]);if(!s){r.visible=!1;return}if(o(["i","j","k"]),r.i&&(!r.j||!r.k)||r.j&&(!r.k||!r.i)||r.k&&(!r.i||!r.j)){r.visible=!1;return}var u=l6t.getComponentMethod("calendars","handleTraceDefaults");u(t,r,["x","y","z"],i),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(f){a(f)});var l=a("contour.show");l&&(a("contour.color"),a("contour.width")),"intensity"in t?(a("intensity"),a("intensitymode"),u6t(t,r,i,a,{prefix:"",cLetter:"c"})):(r.showscale=!1,"facecolor"in t?a("facecolor"):"vertexcolor"in t?a("vertexcolor"):a("color",n)),a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var BRe=Te((tyr,FRe)=>{"use strict";var c6t=Dp();FRe.exports=function(t,r){r.intensity&&c6t(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var VRe=Te((ryr,URe)=>{"use strict";var h6t=qd().gl_mesh3d,d6t=qd().delaunay_triangulate,p6t=qd().alpha_shape,v6t=qd().convex_hull,m6t=$g().parseColorScale,y6t=ei().isArrayOrTypedArray,hZ=Jg(),g6t=_c().extractOpts,ORe=HT();function NRe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var dZ=NRe.prototype;dZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]];var r=this.data.hovertext||this.data.text;return y6t(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function qRe(e){for(var t=[],r=e.length,n=0;n=t-.5)return!1;return!0}dZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=e;var n=e.x.length,i=ORe(uZ(r.xaxis,e.x,t.dataScale[0],e.xcalendar),uZ(r.yaxis,e.y,t.dataScale[1],e.ycalendar),uZ(r.zaxis,e.z,t.dataScale[2],e.zcalendar)),a;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!cZ(e.i,n)||!cZ(e.j,n)||!cZ(e.k,n))return;a=ORe(fZ(e.i),fZ(e.j),fZ(e.k))}else e.alphahull===0?a=v6t(i):e.alphahull>0?a=p6t(e.alphahull,i):a=_6t(e.delaunayaxis,i);var o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:hZ(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var s=g6t(e);this.color="#fff";var u=e.intensitymode;o[u+"Intensity"]=e.intensity,o[u+"IntensityBounds"]=[s.min,s.max],o.colormap=m6t(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=qRe(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=qRe(e.facecolor)):(this.color=e.color,o.meshColor=hZ(e.color));this.mesh.update(o)};dZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function x6t(e,t){var r=e.glplot.gl,n=h6t({gl:r}),i=new NRe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}URe.exports=x6t});var HRe=Te((iyr,GRe)=>{"use strict";GRe.exports={attributes:VT(),supplyDefaults:DRe(),calc:BRe(),colorbar:{min:"cmin",max:"cmax"},plot:VRe(),moduleType:"trace",name:"mesh3d",basePlotModule:Q_(),categories:["gl3d","showLegend"],meta:{}}});var jRe=Te((nyr,WRe)=>{"use strict";WRe.exports=HRe()});var vZ=Te((ayr,ZRe)=>{"use strict";var b6t=nc(),WT=Hc().axisHoverFormat,w6t=Hu().hovertemplateAttrs,A6t=VT(),XRe=Vf(),pZ=Su().extendFlat,lF={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:w6t({editType:"calc"},{keys:["norm"]}),uhoverformat:WT("u",1),vhoverformat:WT("v",1),whoverformat:WT("w",1),xhoverformat:WT("x"),yhoverformat:WT("y"),zhoverformat:WT("z"),showlegend:pZ({},XRe.showlegend,{dflt:!1})};pZ(lF,b6t("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var T6t=["opacity","lightposition","lighting"];T6t.forEach(function(e){lF[e]=A6t[e]});lF.hoverinfo=pZ({},XRe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});ZRe.exports=lF});var KRe=Te((oyr,YRe)=>{"use strict";var S6t=ei(),M6t=ed(),E6t=vZ();YRe.exports=function(t,r,n,i){function a(d,p){return S6t.coerce(t,r,E6t,d,p)}var o=a("u"),s=a("v"),u=a("w"),l=a("x"),f=a("y"),c=a("z");if(!o||!o.length||!s||!s.length||!u||!u.length||!l||!l.length||!f||!f.length||!c||!c.length){r.visible=!1;return}var h=a("sizemode");a("sizeref",h==="raw"?1:.5),a("anchor"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),M6t(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var $Re=Te((syr,JRe)=>{"use strict";var k6t=Dp();JRe.exports=function(t,r){for(var n=r.u,i=r.v,a=r.w,o=Math.min(r.x.length,r.y.length,r.z.length,n.length,i.length,a.length),s=-1/0,u=1/0,l=0;l{"use strict";var C6t=qd().gl_cone3d,L6t=qd().gl_cone3d.createConeMesh,P6t=ei().simpleMap,z6t=$g().parseColorScale,I6t=_c().extractOpts,R6t=ei().isArrayOrTypedArray,QRe=HT();function eDe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var mZ=eDe.prototype;mZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index,r=this.data.x[t],n=this.data.y[t],i=this.data.z[t],a=this.data.u[t],o=this.data.v[t],s=this.data.w[t];e.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var u=this.data.hovertext||this.data.text;return R6t(u)&&u[t]!==void 0?e.textLabel=u[t]:u&&(e.textLabel=u),!0}};var D6t={xaxis:0,yaxis:1,zaxis:2},F6t={tip:1,tail:0,cm:.25,center:.5},B6t={tip:1,tail:1,cm:.75,center:.5};function tDe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i={};function a(f,c){var h=r[c],d=n[D6t[c]];return P6t(f,function(p){return h.d2l(p)*d})}i.vectors=QRe(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),i.positions=QRe(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=I6t(t);i.colormap=z6t(t),i.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],i.coneOffset=F6t[t.anchor];var s=t.sizemode;s==="scaled"?i.coneSize=t.sizeref||.5:s==="absolute"?i.coneSize=t.sizeref&&t._normMax?t.sizeref/t._normMax:.5:s==="raw"&&(i.coneSize=t.sizeref),i.coneSizemode=s;var u=C6t(i),l=t.lightposition;return u.lightPosition=[l.x,l.y,l.z],u.ambient=t.lighting.ambient,u.diffuse=t.lighting.diffuse,u.specular=t.lighting.specular,u.roughness=t.lighting.roughness,u.fresnel=t.lighting.fresnel,u.opacity=t.opacity,t._pad=B6t[t.anchor]*u.vectorScale*u.coneScale*t._normMax,u}mZ.update=function(e){this.data=e;var t=tDe(this.scene,e);this.mesh.update(t)};mZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function O6t(e,t){var r=e.glplot.gl,n=tDe(e,t),i=L6t(r,n),a=new eDe(e,t.uid);return a.mesh=i,a.data=t,i._trace=a,e.glplot.add(i),a}rDe.exports=O6t});var aDe=Te((uyr,nDe)=>{"use strict";nDe.exports={moduleType:"trace",name:"cone",basePlotModule:Q_(),categories:["gl3d","showLegend"],attributes:vZ(),supplyDefaults:KRe(),colorbar:{min:"cmin",max:"cmax"},calc:$Re(),plot:iDe(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var sDe=Te((fyr,oDe)=>{"use strict";oDe.exports=aDe()});var gZ=Te((cyr,uDe)=>{"use strict";var q6t=nc(),jT=Hc().axisHoverFormat,N6t=Hu().hovertemplateAttrs,U6t=VT(),lDe=Vf(),yZ=Su().extendFlat,uF={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:N6t({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),uhoverformat:jT("u",1),vhoverformat:jT("v",1),whoverformat:jT("w",1),xhoverformat:jT("x"),yhoverformat:jT("y"),zhoverformat:jT("z"),showlegend:yZ({},lDe.showlegend,{dflt:!1})};yZ(uF,q6t("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var V6t=["opacity","lightposition","lighting"];V6t.forEach(function(e){uF[e]=U6t[e]});uF.hoverinfo=yZ({},lDe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});uDe.exports=uF});var cDe=Te((hyr,fDe)=>{"use strict";var G6t=ei(),H6t=ed(),W6t=gZ();fDe.exports=function(t,r,n,i){function a(h,d){return G6t.coerce(t,r,W6t,h,d)}var o=a("u"),s=a("v"),u=a("w"),l=a("x"),f=a("y"),c=a("z");if(!o||!o.length||!s||!s.length||!u||!u.length||!l||!l.length||!f||!f.length||!c||!c.length){r.visible=!1;return}a("starts.x"),a("starts.y"),a("starts.z"),a("maxdisplayed"),a("sizeref"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),H6t(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var _De=Te((dyr,gDe)=>{"use strict";var pDe=qd().gl_streamtube3d,j6t=pDe.createTubeMesh,X6t=ei(),Z6t=$g().parseColorScale,Y6t=_c().extractOpts,hDe=HT(),vDe={xaxis:0,yaxis:1,zaxis:2};function mDe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var xZ=mDe.prototype;xZ.handlePick=function(e){var t=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(o,s){var u=t[s],l=r[vDe[s]];return u.l2c(o)/l}if(e.object===this.mesh){var i=e.data.position,a=e.data.velocity;return e.traceCoordinate=[n(i[0],"xaxis"),n(i[1],"yaxis"),n(i[2],"zaxis"),n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function dDe(e){var t=e.length,r;return t>2?r=e.slice(1,t-1):t===2?r=[(e[0]+e[1])/2]:r=e,r}function _Z(e){var t=e.length;return t===1?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function yDe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i=t._len,a={};function o(B,F){var U=r[F],G=n[vDe[F]];return X6t.simpleMap(B,function(j){return U.d2l(j)*G})}if(a.vectors=hDe(o(t._u,"xaxis"),o(t._v,"yaxis"),o(t._w,"zaxis"),i),!i)return{positions:[],cells:[]};var s=o(t._Xs,"xaxis"),u=o(t._Ys,"yaxis"),l=o(t._Zs,"zaxis");a.meshgrid=[s,u,l],a.gridFill=t._gridFill;var f=t._slen;if(f)a.startingPositions=hDe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var c=u[0],h=dDe(s),d=dDe(l),p=new Array(h.length*d.length),x=0,b=0;b{"use strict";xDe.exports={moduleType:"trace",name:"streamtube",basePlotModule:Q_(),categories:["gl3d","showLegend"],attributes:gZ(),supplyDefaults:cDe(),colorbar:{min:"cmin",max:"cmax"},calc:nF().calc,plot:_De(),eventData:function(e,t){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=t.traceCoordinate[3],e.tubev=t.traceCoordinate[4],e.tubew=t.traceCoordinate[5],e.norm=t.traceCoordinate[6],e.divergence=t.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var ADe=Te((vyr,wDe)=>{"use strict";wDe.exports=bDe()});var G2=Te((myr,MDe)=>{"use strict";var J6t=Hu().hovertemplateAttrs,$6t=Hu().texttemplateAttrs,Q6t=Em(),Wy=Xc(),eFt=Vf(),TDe=nc(),tFt=Id().dash,V2=Su().extendFlat,rFt=Sc().overrideAll,em=Wy.marker,SDe=Wy.line,iFt=em.line;MDe.exports=rFt({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:V2({},Wy.mode,{dflt:"markers"}),text:V2({},Wy.text,{}),texttemplate:$6t({editType:"plot"},{keys:["lat","lon","location","text"]}),hovertext:V2({},Wy.hovertext,{}),textfont:Wy.textfont,textposition:Wy.textposition,line:{color:SDe.color,width:SDe.width,dash:tFt},connectgaps:Wy.connectgaps,marker:V2({symbol:em.symbol,opacity:em.opacity,angle:em.angle,angleref:V2({},em.angleref,{values:["previous","up","north"]}),standoff:em.standoff,size:em.size,sizeref:em.sizeref,sizemin:em.sizemin,sizemode:em.sizemode,colorbar:em.colorbar,line:V2({width:iFt.width},TDe("marker.line")),gradient:em.gradient},TDe("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:Q6t(),selected:Wy.selected,unselected:Wy.unselected,hoverinfo:V2({},eFt.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:J6t()},"calc","nested")});var kDe=Te((yyr,EDe)=>{"use strict";var bZ=ei(),wZ=lc(),nFt=$v(),aFt=I0(),oFt=R0(),sFt=zm(),lFt=G2();EDe.exports=function(t,r,n,i){function a(d,p){return bZ.coerce(t,r,lFt,d,p)}var o=a("locations"),s;if(o&&o.length){var u=a("geojson"),l;(typeof u=="string"&&u!==""||bZ.isPlainObject(u))&&(l="geojson-id");var f=a("locationmode",l);f==="geojson-id"&&a("featureidkey"),s=o.length}else{var c=a("lon")||[],h=a("lat")||[];s=Math.min(c.length,h.length)}if(!s){r.visible=!1;return}r._length=s,a("text"),a("hovertext"),a("hovertemplate"),a("mode"),wZ.hasMarkers(r)&&nFt(t,r,n,i,a,{gradient:!0}),wZ.hasLines(r)&&(aFt(t,r,n,i,a),a("connectgaps")),wZ.hasText(r)&&(a("texttemplate"),oFt(t,r,i,a)),a("fill"),r.fill!=="none"&&sFt(t,r,n,a),bZ.coerceSelectionMarkerOpacity(r,a)}});var PDe=Te((gyr,LDe)=>{"use strict";var CDe=wu();LDe.exports=function(t,r,n){var i={},a=n[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=CDe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=CDe.tickText(o,o.c2l(s[1]),!0).text,i}});var fF=Te((_yr,DDe)=>{"use strict";var AZ=ku(),zDe=nf().BADNUM,uFt=D0(),fFt=ky(),cFt=F0(),hFt=ei().isArrayOrTypedArray,IDe=ei()._;function RDe(e){return e&&typeof e=="string"}DDe.exports=function(t,r){var n=hFt(r.locations),i=n?r.locations.length:r._length,a=new Array(i),o;r.geojson?o=function(h){return RDe(h)||AZ(h)}:o=RDe;for(var s=0;s{"use strict";Sp.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"};Sp.axesNames=["lonaxis","lataxis"];Sp.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};Sp.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};Sp.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}};Sp.clipPad=.001;Sp.precision=.1;Sp.landColor="#F0DC82";Sp.waterColor="#3399FF";Sp.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};Sp.sphereSVG={type:"Sphere"};Sp.fillLayers={ocean:1,land:1,lakes:1};Sp.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};Sp.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];Sp.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];Sp.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var TZ=Te((cF,FDe)=>{(function(e,t){typeof cF=="object"&&typeof FDe!="undefined"?t(cF):(e=e||self,t(e.topojson=e.topojson||{}))})(cF,function(e){"use strict";function t(E){return E}function r(E){if(E==null)return t;var T,L,_=E.scale[0],C=E.scale[1],S=E.translate[0],m=E.translate[1];return function(P,A){A||(T=L=0);var B=2,F=P.length,U=new Array(F);for(U[0]=(T+=P[0])*_+S,U[1]=(L+=P[1])*C+m;BS&&(S=B[0]),B[1]m&&(m=B[1])}function A(B){switch(B.type){case"GeometryCollection":B.geometries.forEach(A);break;case"Point":P(B.coordinates);break;case"MultiPoint":B.coordinates.forEach(P);break}}E.arcs.forEach(function(B){for(var F=-1,U=B.length,G;++FS&&(S=G[0]),G[1]m&&(m=G[1])});for(L in E.objects)A(E.objects[L]);return[_,C,S,m]}function i(E,T){for(var L,_=E.length,C=_-T;C<--_;)L=E[C],E[C++]=E[_],E[_]=L}function a(E,T){return typeof T=="string"&&(T=E.objects[T]),T.type==="GeometryCollection"?{type:"FeatureCollection",features:T.geometries.map(function(L){return o(E,L)})}:o(E,T)}function o(E,T){var L=T.id,_=T.bbox,C=T.properties==null?{}:T.properties,S=s(E,T);return L==null&&_==null?{type:"Feature",properties:C,geometry:S}:_==null?{type:"Feature",id:L,properties:C,geometry:S}:{type:"Feature",id:L,bbox:_,properties:C,geometry:S}}function s(E,T){var L=r(E.transform),_=E.arcs;function C(F,U){U.length&&U.pop();for(var G=_[F<0?~F:F],j=0,H=G.length;j1)_=c(E,T,L);else for(C=0,_=new Array(S=E.arcs.length);C1)for(var U=1,G=P(B[0]),j,H;UG&&(H=B[0],B[0]=B[U],B[U]=H,G=j);return B}).filter(function(A){return A.length>0})}}function x(E,T){for(var L=0,_=E.length;L<_;){var C=L+_>>>1;E[C]=2))throw new Error("n must be \u22652");A=E.bbox||n(E);var L=A[0],_=A[1],C=A[2],S=A[3],m;T={scale:[C-L?(C-L)/(m-1):1,S-_?(S-_)/(m-1):1],translate:[L,_]}}else A=E.bbox;var P=v(T),A,B,F=E.objects,U={};function G(N){return P(N)}function j(N){var W;switch(N.type){case"GeometryCollection":W={type:"GeometryCollection",geometries:N.geometries.map(j)};break;case"Point":W={type:"Point",coordinates:G(N.coordinates)};break;case"MultiPoint":W={type:"MultiPoint",coordinates:N.coordinates.map(G)};break;default:return N}return N.id!=null&&(W.id=N.id),N.bbox!=null&&(W.bbox=N.bbox),N.properties!=null&&(W.properties=N.properties),W}function H(N){var W=0,re=1,ae=N.length,be,Pe=new Array(ae);for(Pe[0]=P(N[0],0);++W{"use strict";var SZ=BDe.exports={},dFt=J4().locationmodeToLayer,pFt=TZ().feature;SZ.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};SZ.getTopojsonPath=function(e,t){return e+=e.endsWith("/")?"":"/",`${e}${t}.json`};SZ.getTopojsonFeatures=function(e,t){var r=dFt[e.locationmode],n=t.objects[r];return pFt(t,n).features}});var rx=Te($4=>{"use strict";var vFt=nf().BADNUM;$4.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,n=[],i=[],a=0;a0&&(n.push(i),i=[])}return i.length>0&&n.push(i),n};$4.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};$4.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{ODe.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var vF=Te(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});var Fv=63710088e-1,EZ={centimeters:Fv*100,centimetres:Fv*100,degrees:360/(2*Math.PI),feet:Fv*3.28084,inches:Fv*39.37,kilometers:Fv/1e3,kilometres:Fv/1e3,meters:Fv,metres:Fv,miles:Fv/1609.344,millimeters:Fv*1e3,millimetres:Fv*1e3,nauticalmiles:Fv/1852,radians:1,yards:Fv*1.0936},MZ={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function ix(e,t,r={}){let n={type:"Feature"};return(r.id===0||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=t||{},n.geometry=e,n}function mFt(e,t,r={}){switch(e){case"Point":return kZ(t).geometry;case"LineString":return LZ(t).geometry;case"Polygon":return CZ(t).geometry;case"MultiPoint":return UDe(t).geometry;case"MultiLineString":return NDe(t).geometry;case"MultiPolygon":return VDe(t).geometry;default:throw new Error(e+" is invalid")}}function kZ(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!dF(e[0])||!dF(e[1]))throw new Error("coordinates must contain numbers");return ix({type:"Point",coordinates:e},t,r)}function yFt(e,t,r={}){return pF(e.map(n=>kZ(n,t)),r)}function CZ(e,t,r={}){for(let i of e){if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(i[i.length-1].length!==i[0].length)throw new Error("First and last Position are not equivalent.");for(let a=0;aCZ(n,t)),r)}function LZ(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return ix({type:"LineString",coordinates:e},t,r)}function _Ft(e,t,r={}){return pF(e.map(n=>LZ(n,t)),r)}function pF(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function NDe(e,t,r={}){return ix({type:"MultiLineString",coordinates:e},t,r)}function UDe(e,t,r={}){return ix({type:"MultiPoint",coordinates:e},t,r)}function VDe(e,t,r={}){return ix({type:"MultiPolygon",coordinates:e},t,r)}function xFt(e,t,r={}){return ix({type:"GeometryCollection",geometries:e},t,r)}function bFt(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function GDe(e,t="kilometers"){let r=EZ[t];if(!r)throw new Error(t+" units is invalid");return e*r}function PZ(e,t="kilometers"){let r=EZ[t];if(!r)throw new Error(t+" units is invalid");return e/r}function wFt(e,t){return HDe(PZ(e,t))}function AFt(e){let t=e%360;return t<0&&(t+=360),t}function TFt(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function HDe(e){return e%(2*Math.PI)*180/Math.PI}function SFt(e){return e%360*Math.PI/180}function MFt(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return GDe(PZ(e,t),r)}function EFt(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=MZ[t];if(!n)throw new Error("invalid original units");let i=MZ[r];if(!i)throw new Error("invalid final units");return e/n*i}function dF(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function kFt(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function CFt(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!dF(t))throw new Error("bbox must only contain numbers")})}function LFt(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}bc.areaFactors=MZ;bc.azimuthToBearing=TFt;bc.bearingToAzimuth=AFt;bc.convertArea=EFt;bc.convertLength=MFt;bc.degreesToRadians=SFt;bc.earthRadius=Fv;bc.factors=EZ;bc.feature=ix;bc.featureCollection=pF;bc.geometry=mFt;bc.geometryCollection=xFt;bc.isNumber=dF;bc.isObject=kFt;bc.lengthToDegrees=wFt;bc.lengthToRadians=PZ;bc.lineString=LZ;bc.lineStrings=_Ft;bc.multiLineString=NDe;bc.multiPoint=UDe;bc.multiPolygon=VDe;bc.point=kZ;bc.points=yFt;bc.polygon=CZ;bc.polygons=gFt;bc.radiansToDegrees=HDe;bc.radiansToLength=GDe;bc.round=bFt;bc.validateBBox=CFt;bc.validateId=LFt});var yF=Te(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});var Wp=vF();function Q4(e,t,r){if(e!==null)for(var n,i,a,o,s,u,l,f=0,c=0,h,d=e.type,p=d==="FeatureCollection",x=d==="Feature",b=p?e.features.length:1,v=0;vu||p>l||x>f){s=c,u=n,l=p,f=x,a=0;return}var b=Wp.lineString.call(void 0,[s,c],r.properties);if(t(b,n,i,x,a)===!1)return!1;a++,s=c})===!1)return!1}}})}function BFt(e,t,r){var n=r,i=!1;return XDe(e,function(a,o,s,u,l){i===!1&&r===void 0?n=a:n=t(n,a,o,s,u,l),i=!0}),n}function ZDe(e,t){if(!e)throw new Error("geojson is required");mF(e,function(r,n,i){if(r.geometry!==null){var a=r.geometry.type,o=r.geometry.coordinates;switch(a){case"LineString":if(t(r,n,i,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s{"use strict";Object.defineProperty(gF,"__esModule",{value:!0});var YDe=vF(),UFt=yF();function $De(e){return UFt.geomReduce.call(void 0,e,(t,r)=>t+VFt(r),0)}function VFt(e){let t=0,r;switch(e.type){case"Polygon":return KDe(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(JDe(e[0]));for(let r=1;r=t?(n+2)%t:n+2],s=i[0]*IZ,u=a[1]*IZ,l=o[0]*IZ;r+=(l-s)*Math.sin(u),n++}return r*GFt}var HFt=$De;gF.area=$De;gF.default=HFt});var t6e=Te(_F=>{"use strict";Object.defineProperty(_F,"__esModule",{value:!0});var WFt=vF(),jFt=yF();function e6e(e,t={}){let r=0,n=0,i=0;return jFt.coordEach.call(void 0,e,function(a){r+=a[0],n+=a[1],i++},!0),WFt.point.call(void 0,[r/i,n/i],t.properties)}var XFt=e6e;_F.centroid=e6e;_F.default=XFt});var i6e=Te(xF=>{"use strict";Object.defineProperty(xF,"__esModule",{value:!0});var ZFt=yF();function r6e(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return ZFt.coordEach.call(void 0,e,n=>{r[0]>n[0]&&(r[0]=n[0]),r[1]>n[1]&&(r[1]=n[1]),r[2]{"use strict";var KFt=Jl(),o6e=qDe(),{area:JFt}=QDe(),{centroid:$Ft}=t6e(),{bbox:QFt}=i6e(),n6e=qM(),XT=H1(),e8t=mg(),t8t=kM(),bF=A5(),a6e=Object.keys(o6e),r8t={"ISO-3":n6e,"USA-states":n6e,"country names":i8t};function i8t(e){for(var t=0;t0&&f[c+1][0]<0)return c;return null}switch(n==="RUS"||n==="FJI"?a=function(f){var c;if(l(f)===null)c=f;else for(c=new Array(f.length),u=0;uc?h[d++]=[f[u][0]+360,f[u][1]]:u===c?(h[d++]=f[u],h[d++]=[f[u][0],-90]):h[d++]=f[u];var p=bF.tester(h);p.pts.pop(),i.push(p)}:a=function(f){i.push(bF.tester(f))},t.type){case"MultiPolygon":for(o=0;o0?p.properties.ct=s8t(p):p.properties.ct=[NaN,NaN],h.fIn=f,h.fOut=p,i.push(p)}else XT.log(["Location",h.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete n[c]}switch(r.type){case"FeatureCollection":var u=r.features;for(a=0;ai&&(i=s,r=o)}else r=t;return $Ft(r).geometry.coordinates}function l8t(e){var t=window.PlotlyGeoAssets||{},r=[];function n(u){return new Promise(function(l,f){KFt.json(u,function(c,h){if(c){delete t[u];var d=c.status===404?'GeoJSON at URL "'+u+'" does not exist.':"Unexpected error while fetching from "+u;return f(new Error(d))}return t[u]=h,l(h)})})}function i(u){return new Promise(function(l,f){var c=0,h=setInterval(function(){if(t[u]&&t[u]!=="pending")return clearInterval(h),l(t[u]);if(c>100)return clearInterval(h),f("Unexpected error while fetching from "+u);c++},50)})}for(var a=0;a{"use strict";var f8t=Jl(),c8t=Mu(),u6e=jl(),f6e=av(),h8t=f6e.stylePoints,d8t=f6e.styleText;c6e.exports=function(t,r){r&&p8t(t,r)};function p8t(e,t){var r=t[0].trace,n=t[0].node3;n.style("opacity",t[0].trace.opacity),h8t(n,r,e),d8t(n,r,e),n.selectAll("path.js-line").style("fill","none").each(function(i){var a=f8t.select(this),o=i.trace,s=o.line||{};a.call(u6e.stroke,s.color).call(c8t.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call(u6e.fill,o.fillcolor)})}});var OZ=Te((Pyr,p6e)=>{"use strict";var h6e=Jl(),AF=ei(),v8t=hF().getTopojsonFeatures,DZ=rx(),wF=nx(),d6e=wm().findExtremes,BZ=nf().BADNUM,m8t=B0().calcMarkerSize,FZ=lc(),y8t=RZ();function g8t(e,t,r){var n=t.layers.frontplot.select(".scatterlayer"),i=AF.makeTraceGroups(n,r,"trace scattergeo");function a(o,s){o.lonlat[0]===BZ&&h6e.select(s).remove()}i.selectAll("*").remove(),i.each(function(o){var s=h6e.select(this),u=o[0].trace;if(FZ.hasLines(u)||u.fill!=="none"){var l=DZ.calcTraceToLineCoords(o),f=u.fill!=="none"?DZ.makePolygon(l):DZ.makeLine(l);s.selectAll("path.js-line").data([{geojson:f,trace:u}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}FZ.hasMarkers(u)&&s.selectAll("path.point").data(AF.identity).enter().append("path").classed("point",!0).each(function(c){a(c,this)}),FZ.hasText(u)&&s.selectAll("g").data(AF.identity).enter().append("g").append("text").each(function(c){a(c,this)}),y8t(e,o)})}function _8t(e,t){var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r._length,o,s;if(AF.isArrayOrTypedArray(r.locations)){var u=r.locationmode,l=u==="geojson-id"?wF.extractTraceFeature(e):v8t(r,i.topojson);for(o=0;o{"use strict";var x8t=jc(),b8t=nf().BADNUM,w8t=oA(),A8t=ei().fillText,T8t=G2();v6e.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.xa,s=t.ya,u=t.subplot,l=u.projection.isLonLatOverEdges,f=u.project;function c(k){var E=k.lonlat;if(E[0]===b8t||l(E))return 1/0;var T=f(E),L=f([r,n]),_=Math.abs(T[0]-L[0]),C=Math.abs(T[1]-L[1]),S=Math.max(3,k.mrc||0);return Math.max(Math.sqrt(_*_+C*C)-S,1-3/S)}if(x8t.getClosest(i,c,t),t.index!==!1){var h=i[t.index],d=h.lonlat,p=[o.c2p(d),s.c2p(d)],x=h.mrc||1;t.x0=p[0]-x,t.x1=p[0]+x,t.y0=p[1]-x,t.y1=p[1]+x,t.loc=h.loc,t.lon=d[0],t.lat=d[1];var b={};b[a.geo]={_subplot:u};var v=a._module.formatLabels(h,a,b);return t.lonLabel=v.lonLabel,t.latLabel=v.latLabel,t.color=w8t(a,h),t.extraText=S8t(a,h,t,i[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function S8t(e,t,r,n){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i==="all"?T8t.hoverinfo.flags:i.split("+"),o=a.indexOf("location")!==-1&&Array.isArray(e.locations),s=a.indexOf("lon")!==-1,u=a.indexOf("lat")!==-1,l=a.indexOf("text")!==-1,f=[];function c(h){return h+"\xB0"}return o?f.push(t.loc):s&&u?f.push("("+c(r.latLabel)+", "+c(r.lonLabel)+")"):s?f.push(n.lon+c(r.lonLabel)):u&&f.push(n.lat+c(r.latLabel)),l&&A8t(t,e,f),f.join("
")}});var g6e=Te((Iyr,y6e)=>{"use strict";y6e.exports=function(t,r,n,i,a){t.lon=r.lon,t.lat=r.lat,t.location=r.loc?r.loc:null;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t}});var b6e=Te((Ryr,x6e)=>{"use strict";var _6e=lc(),M8t=nf().BADNUM;x6e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u,l,f,c,h,d=!_6e.hasMarkers(s)&&!_6e.hasText(s);if(d)return[];if(r===!1)for(h=0;h{(function(e,t){t(typeof TF=="object"&&typeof w6e!="undefined"?TF:e.d3=e.d3||{})})(TF,function(e){"use strict";function t(Ee,Me){return EeMe?1:Ee>=Me?0:NaN}function r(Ee){return Ee.length===1&&(Ee=n(Ee)),{left:function(Me,Ue,Fe,me){for(Fe==null&&(Fe=0),me==null&&(me=Me.length);Fe>>1;Ee(Me[Ne],Ue)<0?Fe=Ne+1:me=Ne}return Fe},right:function(Me,Ue,Fe,me){for(Fe==null&&(Fe=0),me==null&&(me=Me.length);Fe>>1;Ee(Me[Ne],Ue)>0?me=Ne:Fe=Ne+1}return Fe}}}function n(Ee){return function(Me,Ue){return t(Ee(Me),Ue)}}var i=r(t),a=i.right,o=i.left;function s(Ee,Me){Me==null&&(Me=u);for(var Ue=0,Fe=Ee.length-1,me=Ee[0],Ne=new Array(Fe<0?0:Fe);UeEe?1:Me>=Ee?0:NaN}function c(Ee){return Ee===null?NaN:+Ee}function h(Ee,Me){var Ue=Ee.length,Fe=0,me=-1,Ne=0,ce,Ke,it=0;if(Me==null)for(;++me1)return it/(Fe-1)}function d(Ee,Me){var Ue=h(Ee,Me);return Ue&&Math.sqrt(Ue)}function p(Ee,Me){var Ue=Ee.length,Fe=-1,me,Ne,ce;if(Me==null){for(;++Fe=me)for(Ne=ce=me;++Feme&&(Ne=me),ce=me)for(Ne=ce=me;++Feme&&(Ne=me),ce0)return[Ee];if((Fe=Me0)for(Ee=Math.ceil(Ee/Ke),Me=Math.floor(Me/Ke),ce=new Array(Ne=Math.ceil(Me-Ee+1));++me=0?(Ne>=L?10:Ne>=_?5:Ne>=C?2:1)*Math.pow(10,me):-Math.pow(10,-me)/(Ne>=L?10:Ne>=_?5:Ne>=C?2:1)}function P(Ee,Me,Ue){var Fe=Math.abs(Me-Ee)/Math.max(0,Ue),me=Math.pow(10,Math.floor(Math.log(Fe)/Math.LN10)),Ne=Fe/me;return Ne>=L?me*=10:Ne>=_?me*=5:Ne>=C&&(me*=2),Ment;)Ye.pop(),--kt;var At=new Array(kt+1),St;for(Ne=0;Ne<=kt;++Ne)St=At[Ne]=[],St.x0=Ne>0?Ye[Ne-1]:Nt,St.x1=Ne=1)return+Ue(Ee[Fe-1],Fe-1,Ee);var Fe,me=(Fe-1)*Me,Ne=Math.floor(me),ce=+Ue(Ee[Ne],Ne,Ee),Ke=+Ue(Ee[Ne+1],Ne+1,Ee);return ce+(Ke-ce)*(me-Ne)}}function U(Ee,Me,Ue){return Ee=v.call(Ee,c).sort(t),Math.ceil((Ue-Me)/(2*(F(Ee,.75)-F(Ee,.25))*Math.pow(Ee.length,-1/3)))}function G(Ee,Me,Ue){return Math.ceil((Ue-Me)/(3.5*d(Ee)*Math.pow(Ee.length,-1/3)))}function j(Ee,Me){var Ue=Ee.length,Fe=-1,me,Ne;if(Me==null){for(;++Fe=me)for(Ne=me;++FeNe&&(Ne=me)}else for(;++Fe=me)for(Ne=me;++FeNe&&(Ne=me);return Ne}function H(Ee,Me){var Ue=Ee.length,Fe=Ue,me=-1,Ne,ce=0;if(Me==null)for(;++me=0;)for(ce=Ee[Me],Ue=ce.length;--Ue>=0;)Ne[--me]=ce[Ue];return Ne}function re(Ee,Me){var Ue=Ee.length,Fe=-1,me,Ne;if(Me==null){for(;++Fe=me)for(Ne=me;++Feme&&(Ne=me)}else for(;++Fe=me)for(Ne=me;++Feme&&(Ne=me);return Ne}function ae(Ee,Me){for(var Ue=Me.length,Fe=new Array(Ue);Ue--;)Fe[Ue]=Ee[Me[Ue]];return Fe}function be(Ee,Me){if(Ue=Ee.length){var Ue,Fe=0,me=0,Ne,ce=Ee[me];for(Me==null&&(Me=t);++Fe{(function(e,t){typeof SF=="object"&&typeof A6e!="undefined"?t(SF,ek()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(SF,function(e,t){"use strict";function r(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(Tt){a(i,Tt,this.t),a(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new n;function a(Tt,Vt,wr){var yr=Tt.s=Vt+wr,Fr=yr-Vt,gi=yr-Fr;Tt.t=Vt-gi+(wr-Fr)}var o=1e-6,s=1e-12,u=Math.PI,l=u/2,f=u/4,c=u*2,h=180/u,d=u/180,p=Math.abs,x=Math.atan,b=Math.atan2,v=Math.cos,k=Math.ceil,E=Math.exp,T=Math.log,L=Math.pow,_=Math.sin,C=Math.sign||function(Tt){return Tt>0?1:Tt<0?-1:0},S=Math.sqrt,m=Math.tan;function P(Tt){return Tt>1?0:Tt<-1?u:Math.acos(Tt)}function A(Tt){return Tt>1?l:Tt<-1?-l:Math.asin(Tt)}function B(Tt){return(Tt=_(Tt/2))*Tt}function F(){}function U(Tt,Vt){Tt&&j.hasOwnProperty(Tt.type)&&j[Tt.type](Tt,Vt)}var G={Feature:function(Tt,Vt){U(Tt.geometry,Vt)},FeatureCollection:function(Tt,Vt){for(var wr=Tt.features,yr=-1,Fr=wr.length;++yr=0?1:-1,Fr=yr*wr,gi=v(Vt),Ti=_(Vt),ki=te*Ti,Ji=de*gi+ki*v(Fr),Fn=ki*yr*_(Fr);re.add(b(Fn,Ji)),Ce=Tt,de=gi,te=Ti}function me(Tt){return ae.reset(),W(Tt,ke),ae*2}function Ne(Tt){return[b(Tt[1],Tt[0]),A(Tt[2])]}function ce(Tt){var Vt=Tt[0],wr=Tt[1],yr=v(wr);return[yr*v(Vt),yr*_(Vt),_(wr)]}function Ke(Tt,Vt){return Tt[0]*Vt[0]+Tt[1]*Vt[1]+Tt[2]*Vt[2]}function it(Tt,Vt){return[Tt[1]*Vt[2]-Tt[2]*Vt[1],Tt[2]*Vt[0]-Tt[0]*Vt[2],Tt[0]*Vt[1]-Tt[1]*Vt[0]]}function bt(Tt,Vt){Tt[0]+=Vt[0],Tt[1]+=Vt[1],Tt[2]+=Vt[2]}function Nt(Tt,Vt){return[Tt[0]*Vt,Tt[1]*Vt,Tt[2]*Vt]}function nt(Tt){var Vt=S(Tt[0]*Tt[0]+Tt[1]*Tt[1]+Tt[2]*Tt[2]);Tt[0]/=Vt,Tt[1]/=Vt,Tt[2]/=Vt}var Ye,kt,At,St,Bt,Zt,Et,Ae,ot=r(),dt,pt,at={point:Xe,lineStart:Qe,lineEnd:zt,polygonStart:function(){at.point=Yt,at.lineStart=lr,at.lineEnd=mr,ot.reset(),ke.polygonStart()},polygonEnd:function(){ke.polygonEnd(),at.point=Xe,at.lineStart=Qe,at.lineEnd=zt,re<0?(Ye=-(At=180),kt=-(St=90)):ot>o?St=90:ot<-o&&(kt=-90),pt[0]=Ye,pt[1]=At},sphere:function(){Ye=-(At=180),kt=-(St=90)}};function Xe(Tt,Vt){dt.push(pt=[Ye=Tt,At=Tt]),VtSt&&(St=Vt)}function rt(Tt,Vt){var wr=ce([Tt*d,Vt*d]);if(Ae){var yr=it(Ae,wr),Fr=[yr[1],-yr[0],0],gi=it(Fr,yr);nt(gi),gi=Ne(gi);var Ti=Tt-Bt,ki=Ti>0?1:-1,Ji=gi[0]*h*ki,Fn,Pi=p(Ti)>180;Pi^(ki*BtSt&&(St=Fn)):(Ji=(Ji+360)%360-180,Pi^(ki*BtSt&&(St=Vt))),Pi?Tt_r(Ye,At)&&(At=Tt):_r(Tt,At)>_r(Ye,At)&&(Ye=Tt):At>=Ye?(TtAt&&(At=Tt)):Tt>Bt?_r(Ye,Tt)>_r(Ye,At)&&(At=Tt):_r(Tt,At)>_r(Ye,At)&&(Ye=Tt)}else dt.push(pt=[Ye=Tt,At=Tt]);VtSt&&(St=Vt),Ae=wr,Bt=Tt}function Qe(){at.point=rt}function zt(){pt[0]=Ye,pt[1]=At,at.point=Xe,Ae=null}function Yt(Tt,Vt){if(Ae){var wr=Tt-Bt;ot.add(p(wr)>180?wr+(wr>0?360:-360):wr)}else Zt=Tt,Et=Vt;ke.point(Tt,Vt),rt(Tt,Vt)}function lr(){ke.lineStart()}function mr(){Yt(Zt,Et),ke.lineEnd(),p(ot)>o&&(Ye=-(At=180)),pt[0]=Ye,pt[1]=At,Ae=null}function _r(Tt,Vt){return(Vt-=Tt)<0?Vt+360:Vt}function Ht(Tt,Vt){return Tt[0]-Vt[0]}function Re(Tt,Vt){return Tt[0]<=Tt[1]?Tt[0]<=Vt&&Vt<=Tt[1]:Vt_r(yr[0],yr[1])&&(yr[1]=Fr[1]),_r(Fr[0],yr[1])>_r(yr[0],yr[1])&&(yr[0]=Fr[0])):gi.push(yr=Fr);for(Ti=-1/0,wr=gi.length-1,Vt=0,yr=gi[wr];Vt<=wr;yr=Fr,++Vt)Fr=gi[Vt],(ki=_r(yr[1],Fr[0]))>Ti&&(Ti=ki,Ye=Fr[0],At=yr[1])}return dt=pt=null,Ye===1/0||kt===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ye,kt],[At,St]]}var Oe,Ie,De,ct,_e,fe,pe,mt,It,Pt,rr,Wr,Nr,Er,Br,mi,Di={sphere:F,point:Ii,lineStart:nn,lineEnd:Gi,polygonStart:function(){Di.lineStart=Ft,Di.lineEnd=gt},polygonEnd:function(){Di.lineStart=nn,Di.lineEnd=Gi}};function Ii(Tt,Vt){Tt*=d,Vt*=d;var wr=v(Vt);Ci(wr*v(Tt),wr*_(Tt),_(Vt))}function Ci(Tt,Vt,wr){++Oe,De+=(Tt-De)/Oe,ct+=(Vt-ct)/Oe,_e+=(wr-_e)/Oe}function nn(){Di.point=ii}function ii(Tt,Vt){Tt*=d,Vt*=d;var wr=v(Vt);Er=wr*v(Tt),Br=wr*_(Tt),mi=_(Vt),Di.point=wi,Ci(Er,Br,mi)}function wi(Tt,Vt){Tt*=d,Vt*=d;var wr=v(Vt),yr=wr*v(Tt),Fr=wr*_(Tt),gi=_(Vt),Ti=b(S((Ti=Br*gi-mi*Fr)*Ti+(Ti=mi*yr-Er*gi)*Ti+(Ti=Er*Fr-Br*yr)*Ti),Er*yr+Br*Fr+mi*gi);Ie+=Ti,fe+=Ti*(Er+(Er=yr)),pe+=Ti*(Br+(Br=Fr)),mt+=Ti*(mi+(mi=gi)),Ci(Er,Br,mi)}function Gi(){Di.point=Ii}function Ft(){Di.point=Ut}function gt(){Wt(Wr,Nr),Di.point=Ii}function Ut(Tt,Vt){Wr=Tt,Nr=Vt,Tt*=d,Vt*=d,Di.point=Wt;var wr=v(Vt);Er=wr*v(Tt),Br=wr*_(Tt),mi=_(Vt),Ci(Er,Br,mi)}function Wt(Tt,Vt){Tt*=d,Vt*=d;var wr=v(Vt),yr=wr*v(Tt),Fr=wr*_(Tt),gi=_(Vt),Ti=Br*gi-mi*Fr,ki=mi*yr-Er*gi,Ji=Er*Fr-Br*yr,Fn=S(Ti*Ti+ki*ki+Ji*Ji),Pi=A(Fn),hi=Fn&&-Pi/Fn;It+=hi*Ti,Pt+=hi*ki,rr+=hi*Ji,Ie+=Pi,fe+=Pi*(Er+(Er=yr)),pe+=Pi*(Br+(Br=Fr)),mt+=Pi*(mi+(mi=gi)),Ci(Er,Br,mi)}function xr(Tt){Oe=Ie=De=ct=_e=fe=pe=mt=It=Pt=rr=0,W(Tt,Di);var Vt=It,wr=Pt,yr=rr,Fr=Vt*Vt+wr*wr+yr*yr;return Fru?Tt+Math.round(-Tt/c)*c:Tt,Vt]}Ir.invert=Ir;function Gr(Tt,Vt,wr){return(Tt%=c)?Vt||wr?Ur(yi(Tt),Ei(Vt,wr)):yi(Tt):Vt||wr?Ei(Vt,wr):Ir}function jr(Tt){return function(Vt,wr){return Vt+=Tt,[Vt>u?Vt-c:Vt<-u?Vt+c:Vt,wr]}}function yi(Tt){var Vt=jr(Tt);return Vt.invert=jr(-Tt),Vt}function Ei(Tt,Vt){var wr=v(Tt),yr=_(Tt),Fr=v(Vt),gi=_(Vt);function Ti(ki,Ji){var Fn=v(Ji),Pi=v(ki)*Fn,hi=_(ki)*Fn,Li=_(Ji),Si=Li*wr+Pi*yr;return[b(hi*Fr-Si*gi,Pi*wr-Li*yr),A(Si*Fr+hi*gi)]}return Ti.invert=function(ki,Ji){var Fn=v(Ji),Pi=v(ki)*Fn,hi=_(ki)*Fn,Li=_(Ji),Si=Li*Fr-hi*gi;return[b(hi*Fr+Li*gi,Pi*wr+Si*yr),A(Si*wr-Pi*yr)]},Ti}function Vi(Tt){Tt=Gr(Tt[0]*d,Tt[1]*d,Tt.length>2?Tt[2]*d:0);function Vt(wr){return wr=Tt(wr[0]*d,wr[1]*d),wr[0]*=h,wr[1]*=h,wr}return Vt.invert=function(wr){return wr=Tt.invert(wr[0]*d,wr[1]*d),wr[0]*=h,wr[1]*=h,wr},Vt}function ti(Tt,Vt,wr,yr,Fr,gi){if(wr){var Ti=v(Vt),ki=_(Vt),Ji=yr*wr;Fr==null?(Fr=Vt+yr*c,gi=Vt-Ji/2):(Fr=en(Ti,Fr),gi=en(Ti,gi),(yr>0?Frgi)&&(Fr+=yr*c));for(var Fn,Pi=Fr;yr>0?Pi>gi:Pi1&&Tt.push(Tt.pop().concat(Tt.shift()))},result:function(){var wr=Tt;return Tt=[],Vt=null,wr}}}function Bi(Tt,Vt){return p(Tt[0]-Vt[0])=0;--ki)Fr.point((hi=Pi[ki])[0],hi[1]);else yr(Li.x,Li.p.x,-1,Fr);Li=Li.p}Li=Li.o,Pi=Li.z,Si=!Si}while(!Li.v);Fr.lineEnd()}}}function Fi(Tt){if(Vt=Tt.length){for(var Vt,wr=0,yr=Tt[0],Fr;++wr=0?1:-1,xl=dl*Ks,Ol=xl>u,bl=ta*is;if(Ri.add(b(bl*dl*_(xl),ya*Cs+bl*v(xl))),Ti+=Ol?Ks+dl*c:Ks,Ol^Si>=wr^va>=wr){var eu=it(ce(Li),ce(pa));nt(eu);var Zl=it(gi,eu);nt(Zl);var Vl=(Ol^Ks>=0?-1:1)*A(Zl[2]);(yr>Vl||yr===Vl&&(eu[0]||eu[1]))&&(ki+=Ol^Ks>=0?1:-1)}}return(Ti<-o||Ti0){for(Ji||(Fr.polygonStart(),Ji=!0),Fr.lineStart(),Cs=0;Cs1&&zn&2&&is.push(is.pop().concat(is.shift())),Pi.push(is.filter(ft))}}return Li}}function ft(Tt){return Tt.length>1}function tr(Tt,Vt){return((Tt=Tt.x)[0]<0?Tt[1]-l-o:l-Tt[1])-((Vt=Vt.x)[0]<0?Vt[1]-l-o:l-Vt[1])}var pr=Xr(function(){return!0},gr,Ai,[-u,-l]);function gr(Tt){var Vt=NaN,wr=NaN,yr=NaN,Fr;return{lineStart:function(){Tt.lineStart(),Fr=1},point:function(gi,Ti){var ki=gi>0?u:-u,Ji=p(gi-Vt);p(Ji-u)0?l:-l),Tt.point(yr,wr),Tt.lineEnd(),Tt.lineStart(),Tt.point(ki,wr),Tt.point(gi,wr),Fr=0):yr!==ki&&Ji>=u&&(p(Vt-yr)o?x((_(Vt)*(gi=v(yr))*_(wr)-_(yr)*(Fr=v(Vt))*_(Tt))/(Fr*gi*Ti)):(Vt+yr)/2}function Ai(Tt,Vt,wr,yr){var Fr;if(Tt==null)Fr=wr*l,yr.point(-u,Fr),yr.point(0,Fr),yr.point(u,Fr),yr.point(u,0),yr.point(u,-Fr),yr.point(0,-Fr),yr.point(-u,-Fr),yr.point(-u,0),yr.point(-u,Fr);else if(p(Tt[0]-Vt[0])>o){var gi=Tt[0]0,Fr=p(Vt)>o;function gi(Pi,hi,Li,Si){ti(Si,Tt,wr,Li,Pi,hi)}function Ti(Pi,hi){return v(Pi)*v(hi)>Vt}function ki(Pi){var hi,Li,Si,Gn,ta;return{lineStart:function(){Gn=Si=!1,ta=1},point:function(ya,ia){var pa=[ya,ia],va,zn=Ti(ya,ia),is=yr?zn?0:Fn(ya,ia):zn?Fn(ya+(ya<0?u:-u),ia):0;if(!hi&&(Gn=Si=zn)&&Pi.lineStart(),zn!==Si&&(va=Ji(hi,pa),(!va||Bi(hi,va)||Bi(pa,va))&&(pa[2]=1)),zn!==Si)ta=0,zn?(Pi.lineStart(),va=Ji(pa,hi),Pi.point(va[0],va[1])):(va=Ji(hi,pa),Pi.point(va[0],va[1],2),Pi.lineEnd()),hi=va;else if(Fr&&hi&&yr^zn){var Cs;!(is&Li)&&(Cs=Ji(pa,hi,!0))&&(ta=0,yr?(Pi.lineStart(),Pi.point(Cs[0][0],Cs[0][1]),Pi.point(Cs[1][0],Cs[1][1]),Pi.lineEnd()):(Pi.point(Cs[1][0],Cs[1][1]),Pi.lineEnd(),Pi.lineStart(),Pi.point(Cs[0][0],Cs[0][1],3)))}zn&&(!hi||!Bi(hi,pa))&&Pi.point(pa[0],pa[1]),hi=pa,Si=zn,Li=is},lineEnd:function(){Si&&Pi.lineEnd(),hi=null},clean:function(){return ta|(Gn&&Si)<<1}}}function Ji(Pi,hi,Li){var Si=ce(Pi),Gn=ce(hi),ta=[1,0,0],ya=it(Si,Gn),ia=Ke(ya,ya),pa=ya[0],va=ia-pa*pa;if(!va)return!Li&Πvar zn=Vt*ia/va,is=-Vt*pa/va,Cs=it(ta,ya),Ks=Nt(ta,zn),dl=Nt(ya,is);bt(Ks,dl);var xl=Cs,Ol=Ke(Ks,xl),bl=Ke(xl,xl),eu=Ol*Ol-bl*(Ke(Ks,Ks)-1);if(!(eu<0)){var Zl=S(eu),Vl=Nt(xl,(-Ol-Zl)/bl);if(bt(Vl,Ks),Vl=Ne(Vl),!Li)return Vl;var ja=Pi[0],ns=hi[0],Js=Pi[1],cs=hi[1],sl;ns0^Vl[1]<(p(Vl[0]-ja)u^(ja<=Vl[0]&&Vl[0]<=ns)){var Ml=Nt(xl,(-Ol+Zl)/bl);return bt(Ml,Ks),[Vl,Ne(Ml)]}}}function Fn(Pi,hi){var Li=yr?Tt:u-Tt,Si=0;return Pi<-Li?Si|=1:Pi>Li&&(Si|=2),hi<-Li?Si|=4:hi>Li&&(Si|=8),Si}return Xr(Ti,ki,gi,yr?[0,-Tt]:[-u,Tt-u])}function ni(Tt,Vt,wr,yr,Fr,gi){var Ti=Tt[0],ki=Tt[1],Ji=Vt[0],Fn=Vt[1],Pi=0,hi=1,Li=Ji-Ti,Si=Fn-ki,Gn;if(Gn=wr-Ti,!(!Li&&Gn>0)){if(Gn/=Li,Li<0){if(Gn0){if(Gn>hi)return;Gn>Pi&&(Pi=Gn)}if(Gn=Fr-Ti,!(!Li&&Gn<0)){if(Gn/=Li,Li<0){if(Gn>hi)return;Gn>Pi&&(Pi=Gn)}else if(Li>0){if(Gn0)){if(Gn/=Si,Si<0){if(Gn0){if(Gn>hi)return;Gn>Pi&&(Pi=Gn)}if(Gn=gi-ki,!(!Si&&Gn<0)){if(Gn/=Si,Si<0){if(Gn>hi)return;Gn>Pi&&(Pi=Gn)}else if(Si>0){if(Gn0&&(Tt[0]=Ti+Pi*Li,Tt[1]=ki+Pi*Si),hi<1&&(Vt[0]=Ti+hi*Li,Vt[1]=ki+hi*Si),!0}}}}}var Zi=1e9,aa=-Zi;function Mn(Tt,Vt,wr,yr){function Fr(Fn,Pi){return Tt<=Fn&&Fn<=wr&&Vt<=Pi&&Pi<=yr}function gi(Fn,Pi,hi,Li){var Si=0,Gn=0;if(Fn==null||(Si=Ti(Fn,hi))!==(Gn=Ti(Pi,hi))||Ji(Fn,Pi)<0^hi>0)do Li.point(Si===0||Si===3?Tt:wr,Si>1?yr:Vt);while((Si=(Si+hi+4)%4)!==Gn);else Li.point(Pi[0],Pi[1])}function Ti(Fn,Pi){return p(Fn[0]-Tt)0?0:3:p(Fn[0]-wr)0?2:1:p(Fn[1]-Vt)0?1:0:Pi>0?3:2}function ki(Fn,Pi){return Ji(Fn.x,Pi.x)}function Ji(Fn,Pi){var hi=Ti(Fn,1),Li=Ti(Pi,1);return hi!==Li?hi-Li:hi===0?Pi[1]-Fn[1]:hi===1?Fn[0]-Pi[0]:hi===2?Fn[1]-Pi[1]:Pi[0]-Fn[0]}return function(Fn){var Pi=Fn,hi=oi(),Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks={point:dl,lineStart:eu,lineEnd:Zl,polygonStart:Ol,polygonEnd:bl};function dl(ja,ns){Fr(ja,ns)&&Pi.point(ja,ns)}function xl(){for(var ja=0,ns=0,Js=Si.length;nsyr&&(Rl-zl)*(yr-Ml)>(Al-Ml)*(Tt-zl)&&++ja:Al<=yr&&(Rl-zl)*(yr-Ml)<(Al-Ml)*(Tt-zl)&&--ja;return ja}function Ol(){Pi=hi,Li=[],Si=[],Cs=!0}function bl(){var ja=xl(),ns=Cs&&ja,Js=(Li=t.merge(Li)).length;(ns||Js)&&(Fn.polygonStart(),ns&&(Fn.lineStart(),gi(null,null,1,Fn),Fn.lineEnd()),Js&&rn(Li,ki,ja,gi,Fn),Fn.polygonEnd()),Pi=Fn,Li=Si=Gn=null}function eu(){Ks.point=Vl,Si&&Si.push(Gn=[]),is=!0,zn=!1,pa=va=NaN}function Zl(){Li&&(Vl(ta,ya),ia&&zn&&hi.rejoin(),Li.push(hi.result())),Ks.point=dl,zn&&Pi.lineEnd()}function Vl(ja,ns){var Js=Fr(ja,ns);if(Si&&Gn.push([ja,ns]),is)ta=ja,ya=ns,ia=Js,is=!1,Js&&(Pi.lineStart(),Pi.point(ja,ns));else if(Js&&zn)Pi.point(ja,ns);else{var cs=[pa=Math.max(aa,Math.min(Zi,pa)),va=Math.max(aa,Math.min(Zi,va))],sl=[ja=Math.max(aa,Math.min(Zi,ja)),ns=Math.max(aa,Math.min(Zi,ns))];ni(cs,sl,Tt,Vt,wr,yr)?(zn||(Pi.lineStart(),Pi.point(cs[0],cs[1])),Pi.point(sl[0],sl[1]),Js||Pi.lineEnd(),Cs=!1):Js&&(Pi.lineStart(),Pi.point(ja,ns),Cs=!1)}pa=ja,va=ns,zn=Js}return Ks}}function Un(){var Tt=0,Vt=0,wr=960,yr=500,Fr,gi,Ti;return Ti={stream:function(ki){return Fr&&gi===ki?Fr:Fr=Mn(Tt,Vt,wr,yr)(gi=ki)},extent:function(ki){return arguments.length?(Tt=+ki[0][0],Vt=+ki[0][1],wr=+ki[1][0],yr=+ki[1][1],Fr=gi=null,Ti):[[Tt,Vt],[wr,yr]]}}}var Ga=r(),ma,oa,ka,so={sphere:F,point:F,lineStart:Kr,lineEnd:F,polygonStart:F,polygonEnd:F};function Kr(){so.point=Yo,so.lineEnd=Ia}function Ia(){so.point=so.lineEnd=F}function Yo(Tt,Vt){Tt*=d,Vt*=d,ma=Tt,oa=_(Vt),ka=v(Vt),so.point=fa}function fa(Tt,Vt){Tt*=d,Vt*=d;var wr=_(Vt),yr=v(Vt),Fr=p(Tt-ma),gi=v(Fr),Ti=_(Fr),ki=yr*Ti,Ji=ka*wr-oa*yr*gi,Fn=oa*wr+ka*yr*gi;Ga.add(b(S(ki*ki+Ji*Ji),Fn)),ma=Tt,oa=wr,ka=yr}function kn(Tt){return Ga.reset(),W(Tt,so),+Ga}var Ta=[null,null],ys={type:"LineString",coordinates:Ta};function uo(Tt,Vt){return Ta[0]=Tt,Ta[1]=Vt,kn(ys)}var ls={Feature:function(Tt,Vt){return fo(Tt.geometry,Vt)},FeatureCollection:function(Tt,Vt){for(var wr=Tt.features,yr=-1,Fr=wr.length;++yr0&&(Fr=uo(Tt[gi],Tt[gi-1]),Fr>0&&wr<=Fr&&yr<=Fr&&(wr+yr-Fr)*(1-Math.pow((wr-yr)/Fr,2))o}).map(Li)).concat(t.range(k(gi/Fn)*Fn,Fr,Fn).filter(function(va){return p(va%hi)>o}).map(Si))}return ia.lines=function(){return pa().map(function(va){return{type:"LineString",coordinates:va}})},ia.outline=function(){return{type:"Polygon",coordinates:[Gn(yr).concat(ta(Ti).slice(1),Gn(wr).reverse().slice(1),ta(ki).reverse().slice(1))]}},ia.extent=function(va){return arguments.length?ia.extentMajor(va).extentMinor(va):ia.extentMinor()},ia.extentMajor=function(va){return arguments.length?(yr=+va[0][0],wr=+va[1][0],ki=+va[0][1],Ti=+va[1][1],yr>wr&&(va=yr,yr=wr,wr=va),ki>Ti&&(va=ki,ki=Ti,Ti=va),ia.precision(ya)):[[yr,ki],[wr,Ti]]},ia.extentMinor=function(va){return arguments.length?(Vt=+va[0][0],Tt=+va[1][0],gi=+va[0][1],Fr=+va[1][1],Vt>Tt&&(va=Vt,Vt=Tt,Tt=va),gi>Fr&&(va=gi,gi=Fr,Fr=va),ia.precision(ya)):[[Vt,gi],[Tt,Fr]]},ia.step=function(va){return arguments.length?ia.stepMajor(va).stepMinor(va):ia.stepMinor()},ia.stepMajor=function(va){return arguments.length?(Pi=+va[0],hi=+va[1],ia):[Pi,hi]},ia.stepMinor=function(va){return arguments.length?(Ji=+va[0],Fn=+va[1],ia):[Ji,Fn]},ia.precision=function(va){return arguments.length?(ya=+va,Li=ji(gi,Fr,90),Si=gn(Vt,Tt,ya),Gn=ji(ki,Ti,90),ta=gn(yr,wr,ya),ia):ya},ia.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Ha(){return Ps()()}function Sn(Tt,Vt){var wr=Tt[0]*d,yr=Tt[1]*d,Fr=Vt[0]*d,gi=Vt[1]*d,Ti=v(yr),ki=_(yr),Ji=v(gi),Fn=_(gi),Pi=Ti*v(wr),hi=Ti*_(wr),Li=Ji*v(Fr),Si=Ji*_(Fr),Gn=2*A(S(B(gi-yr)+Ti*Ji*B(Fr-wr))),ta=_(Gn),ya=Gn?function(ia){var pa=_(ia*=Gn)/ta,va=_(Gn-ia)/ta,zn=va*Pi+pa*Li,is=va*hi+pa*Si,Cs=va*ki+pa*Fn;return[b(is,zn)*h,b(Cs,S(zn*zn+is*is))*h]}:function(){return[wr*h,yr*h]};return ya.distance=Gn,ya}function ao(Tt){return Tt}var Ba=r(),Ko=r(),Qo,Wi,Sa,Qa,vn={point:F,lineStart:F,lineEnd:F,polygonStart:function(){vn.lineStart=da,vn.lineEnd=As},polygonEnd:function(){vn.lineStart=vn.lineEnd=vn.point=F,Ba.add(p(Ko)),Ko.reset()},result:function(){var Tt=Ba/2;return Ba.reset(),Tt}};function da(){vn.point=la}function la(Tt,Vt){vn.point=vo,Qo=Sa=Tt,Wi=Qa=Vt}function vo(Tt,Vt){Ko.add(Qa*Tt-Sa*Vt),Sa=Tt,Qa=Vt}function As(){vo(Qo,Wi)}var ps=1/0,co=ps,mo=-ps,No=mo,jn={point:Go,lineStart:F,lineEnd:F,polygonStart:F,polygonEnd:F,result:function(){var Tt=[[ps,co],[mo,No]];return mo=No=-(co=ps=1/0),Tt}};function Go(Tt,Vt){Ttmo&&(mo=Tt),VtNo&&(No=Vt)}var Ys=0,qs=0,Ns=0,Oa=0,ha=0,Vs=0,Ya=0,_n=0,Vn=0,wo,Ra,Xn,un,$n={point:Ka,lineStart:qn,lineEnd:lo,polygonStart:function(){$n.lineStart=eo,$n.lineEnd=sa},polygonEnd:function(){$n.point=Ka,$n.lineStart=qn,$n.lineEnd=lo},result:function(){var Tt=Vn?[Ya/Vn,_n/Vn]:Vs?[Oa/Vs,ha/Vs]:Ns?[Ys/Ns,qs/Ns]:[NaN,NaN];return Ys=qs=Ns=Oa=ha=Vs=Ya=_n=Vn=0,Tt}};function Ka(Tt,Vt){Ys+=Tt,qs+=Vt,++Ns}function qn(){$n.point=Eo}function Eo(Tt,Vt){$n.point=Ja,Ka(Xn=Tt,un=Vt)}function Ja(Tt,Vt){var wr=Tt-Xn,yr=Vt-un,Fr=S(wr*wr+yr*yr);Oa+=Fr*(Xn+Tt)/2,ha+=Fr*(un+Vt)/2,Vs+=Fr,Ka(Xn=Tt,un=Vt)}function lo(){$n.point=Ka}function eo(){$n.point=es}function sa(){Na(wo,Ra)}function es(Tt,Vt){$n.point=Na,Ka(wo=Xn=Tt,Ra=un=Vt)}function Na(Tt,Vt){var wr=Tt-Xn,yr=Vt-un,Fr=S(wr*wr+yr*yr);Oa+=Fr*(Xn+Tt)/2,ha+=Fr*(un+Vt)/2,Vs+=Fr,Fr=un*Tt-Xn*Vt,Ya+=Fr*(Xn+Tt),_n+=Fr*(un+Vt),Vn+=Fr*3,Ka(Xn=Tt,un=Vt)}function tn(Tt){this._context=Tt}tn.prototype={_radius:4.5,pointRadius:function(Tt){return this._radius=Tt,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(Tt,Vt){switch(this._point){case 0:{this._context.moveTo(Tt,Vt),this._point=1;break}case 1:{this._context.lineTo(Tt,Vt);break}default:{this._context.moveTo(Tt+this._radius,Vt),this._context.arc(Tt,Vt,this._radius,0,c);break}}},result:F};var Pa=r(),to,yo,Jo,Ao,Dn,_a={point:F,lineStart:function(){_a.point=Ws},lineEnd:function(){to&&Ca(yo,Jo),_a.point=F},polygonStart:function(){to=!0},polygonEnd:function(){to=null},result:function(){var Tt=+Pa;return Pa.reset(),Tt}};function Ws(Tt,Vt){_a.point=Ca,yo=Ao=Tt,Jo=Dn=Vt}function Ca(Tt,Vt){Ao-=Tt,Dn-=Vt,Pa.add(S(Ao*Ao+Dn*Dn)),Ao=Tt,Dn=Vt}function Es(){this._string=[]}Es.prototype={_radius:4.5,_circle:Ts(4.5),pointRadius:function(Tt){return(Tt=+Tt)!==this._radius&&(this._radius=Tt,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(Tt,Vt){switch(this._point){case 0:{this._string.push("M",Tt,",",Vt),this._point=1;break}case 1:{this._string.push("L",Tt,",",Vt);break}default:{this._circle==null&&(this._circle=Ts(this._radius)),this._string.push("M",Tt,",",Vt,this._circle);break}}},result:function(){if(this._string.length){var Tt=this._string.join("");return this._string=[],Tt}else return null}};function Ts(Tt){return"m0,"+Tt+"a"+Tt+","+Tt+" 0 1,1 0,"+-2*Tt+"a"+Tt+","+Tt+" 0 1,1 0,"+2*Tt+"z"}function Ho(Tt,Vt){var wr=4.5,yr,Fr;function gi(Ti){return Ti&&(typeof wr=="function"&&Fr.pointRadius(+wr.apply(this,arguments)),W(Ti,yr(Fr))),Fr.result()}return gi.area=function(Ti){return W(Ti,yr(vn)),vn.result()},gi.measure=function(Ti){return W(Ti,yr(_a)),_a.result()},gi.bounds=function(Ti){return W(Ti,yr(jn)),jn.result()},gi.centroid=function(Ti){return W(Ti,yr($n)),$n.result()},gi.projection=function(Ti){return arguments.length?(yr=Ti==null?(Tt=null,ao):(Tt=Ti).stream,gi):Tt},gi.context=function(Ti){return arguments.length?(Fr=Ti==null?(Vt=null,new Es):new tn(Vt=Ti),typeof wr!="function"&&Fr.pointRadius(wr),gi):Vt},gi.pointRadius=function(Ti){return arguments.length?(wr=typeof Ti=="function"?Ti:(Fr.pointRadius(+Ti),+Ti),gi):wr},gi.projection(Tt).context(Vt)}function Wa(Tt){return{stream:To(Tt)}}function To(Tt){return function(Vt){var wr=new ts;for(var yr in Tt)wr[yr]=Tt[yr];return wr.stream=Vt,wr}}function ts(){}ts.prototype={constructor:ts,point:function(Tt,Vt){this.stream.point(Tt,Vt)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Wo(Tt,Vt,wr){var yr=Tt.clipExtent&&Tt.clipExtent();return Tt.scale(150).translate([0,0]),yr!=null&&Tt.clipExtent(null),W(wr,Tt.stream(jn)),Vt(jn.result()),yr!=null&&Tt.clipExtent(yr),Tt}function qa(Tt,Vt,wr){return Wo(Tt,function(yr){var Fr=Vt[1][0]-Vt[0][0],gi=Vt[1][1]-Vt[0][1],Ti=Math.min(Fr/(yr[1][0]-yr[0][0]),gi/(yr[1][1]-yr[0][1])),ki=+Vt[0][0]+(Fr-Ti*(yr[1][0]+yr[0][0]))/2,Ji=+Vt[0][1]+(gi-Ti*(yr[1][1]+yr[0][1]))/2;Tt.scale(150*Ti).translate([ki,Ji])},wr)}function ln(Tt,Vt,wr){return qa(Tt,[[0,0],Vt],wr)}function Bo(Tt,Vt,wr){return Wo(Tt,function(yr){var Fr=+Vt,gi=Fr/(yr[1][0]-yr[0][0]),Ti=(Fr-gi*(yr[1][0]+yr[0][0]))/2,ki=-gi*yr[0][1];Tt.scale(150*gi).translate([Ti,ki])},wr)}function ko(Tt,Vt,wr){return Wo(Tt,function(yr){var Fr=+Vt,gi=Fr/(yr[1][1]-yr[0][1]),Ti=-gi*yr[0][0],ki=(Fr-gi*(yr[1][1]+yr[0][1]))/2;Tt.scale(150*gi).translate([Ti,ki])},wr)}var oo=16,za=v(30*d);function ea(Tt,Vt){return+Vt?$s(Tt,Vt):rs(Tt)}function rs(Tt){return To({point:function(Vt,wr){Vt=Tt(Vt,wr),this.stream.point(Vt[0],Vt[1])}})}function $s(Tt,Vt){function wr(yr,Fr,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya){var ia=Fn-yr,pa=Pi-Fr,va=ia*ia+pa*pa;if(va>4*Vt&&ta--){var zn=Ti+Li,is=ki+Si,Cs=Ji+Gn,Ks=S(zn*zn+is*is+Cs*Cs),dl=A(Cs/=Ks),xl=p(p(Cs)-1)Vt||p((ia*Zl+pa*Vl)/va-.5)>.3||Ti*Li+ki*Si+Ji*Gn2?ja[2]%360*d:0,Zl()):[ki*h,Ji*h,Fn*h]},bl.angle=function(ja){return arguments.length?(hi=ja%360*d,Zl()):hi*h},bl.reflectX=function(ja){return arguments.length?(Li=ja?-1:1,Zl()):Li<0},bl.reflectY=function(ja){return arguments.length?(Si=ja?-1:1,Zl()):Si<0},bl.precision=function(ja){return arguments.length?(Cs=ea(Ks,is=ja*ja),Vl()):S(is)},bl.fitExtent=function(ja,ns){return qa(bl,ja,ns)},bl.fitSize=function(ja,ns){return ln(bl,ja,ns)},bl.fitWidth=function(ja,ns){return Bo(bl,ja,ns)},bl.fitHeight=function(ja,ns){return ko(bl,ja,ns)};function Zl(){var ja=as(wr,0,0,Li,Si,hi).apply(null,Vt(gi,Ti)),ns=(hi?as:fl)(wr,yr-ja[0],Fr-ja[1],Li,Si,hi);return Pi=Gr(ki,Ji,Fn),Ks=Ur(Vt,ns),dl=Ur(Pi,Ks),Cs=ea(Ks,is),Vl()}function Vl(){return xl=Ol=null,bl}return function(){return Vt=Tt.apply(this,arguments),bl.invert=Vt.invert&&eu,Zl()}}function ho(Tt){var Vt=0,wr=u/3,yr=Qs(Tt),Fr=yr(Vt,wr);return Fr.parallels=function(gi){return arguments.length?yr(Vt=gi[0]*d,wr=gi[1]*d):[Vt*h,wr*h]},Fr}function gs(Tt){var Vt=v(Tt);function wr(yr,Fr){return[yr*Vt,_(Fr)/Vt]}return wr.invert=function(yr,Fr){return[yr/Vt,A(Fr*Vt)]},wr}function Vo(Tt,Vt){var wr=_(Tt),yr=(wr+_(Vt))/2;if(p(yr)=.12&&ya<.234&&ta>=-.425&&ta<-.214?Fr:ya>=.166&&ya<.234&&ta>=-.214&&ta<-.115?Ti:wr).invert(Li)},Pi.stream=function(Li){return Tt&&Vt===Li?Tt:Tt=xs([wr.stream(Vt=Li),Fr.stream(Li),Ti.stream(Li)])},Pi.precision=function(Li){return arguments.length?(wr.precision(Li),Fr.precision(Li),Ti.precision(Li),hi()):wr.precision()},Pi.scale=function(Li){return arguments.length?(wr.scale(Li),Fr.scale(Li*.35),Ti.scale(Li),Pi.translate(wr.translate())):wr.scale()},Pi.translate=function(Li){if(!arguments.length)return wr.translate();var Si=wr.scale(),Gn=+Li[0],ta=+Li[1];return yr=wr.translate(Li).clipExtent([[Gn-.455*Si,ta-.238*Si],[Gn+.455*Si,ta+.238*Si]]).stream(Fn),gi=Fr.translate([Gn-.307*Si,ta+.201*Si]).clipExtent([[Gn-.425*Si+o,ta+.12*Si+o],[Gn-.214*Si-o,ta+.234*Si-o]]).stream(Fn),ki=Ti.translate([Gn-.205*Si,ta+.212*Si]).clipExtent([[Gn-.214*Si+o,ta+.166*Si+o],[Gn-.115*Si-o,ta+.234*Si-o]]).stream(Fn),hi()},Pi.fitExtent=function(Li,Si){return qa(Pi,Li,Si)},Pi.fitSize=function(Li,Si){return ln(Pi,Li,Si)},Pi.fitWidth=function(Li,Si){return Bo(Pi,Li,Si)},Pi.fitHeight=function(Li,Si){return ko(Pi,Li,Si)};function hi(){return Tt=Vt=null,Pi}return Pi.scale(1070)}function Ea(Tt){return function(Vt,wr){var yr=v(Vt),Fr=v(wr),gi=Tt(yr*Fr);return[gi*Fr*_(Vt),gi*_(wr)]}}function Jn(Tt){return function(Vt,wr){var yr=S(Vt*Vt+wr*wr),Fr=Tt(yr),gi=_(Fr),Ti=v(Fr);return[b(Vt*gi,yr*Ti),A(yr&&wr*gi/yr)]}}var Oo=Ea(function(Tt){return S(2/(1+Tt))});Oo.invert=Jn(function(Tt){return 2*A(Tt/2)});function rl(){return Ma(Oo).scale(124.75).clipAngle(180-.001)}var Gs=Ea(function(Tt){return(Tt=P(Tt))&&Tt/_(Tt)});Gs.invert=Jn(function(Tt){return Tt});function bs(){return Ma(Gs).scale(79.4188).clipAngle(180-.001)}function zs(Tt,Vt){return[Tt,T(m((l+Vt)/2))]}zs.invert=function(Tt,Vt){return[Tt,2*x(E(Vt))-l]};function $o(){return Aa(zs).scale(961/c)}function Aa(Tt){var Vt=Ma(Tt),wr=Vt.center,yr=Vt.scale,Fr=Vt.translate,gi=Vt.clipExtent,Ti=null,ki,Ji,Fn;Vt.scale=function(hi){return arguments.length?(yr(hi),Pi()):yr()},Vt.translate=function(hi){return arguments.length?(Fr(hi),Pi()):Fr()},Vt.center=function(hi){return arguments.length?(wr(hi),Pi()):wr()},Vt.clipExtent=function(hi){return arguments.length?(hi==null?Ti=ki=Ji=Fn=null:(Ti=+hi[0][0],ki=+hi[0][1],Ji=+hi[1][0],Fn=+hi[1][1]),Pi()):Ti==null?null:[[Ti,ki],[Ji,Fn]]};function Pi(){var hi=u*yr(),Li=Vt(Vi(Vt.rotate()).invert([0,0]));return gi(Ti==null?[[Li[0]-hi,Li[1]-hi],[Li[0]+hi,Li[1]+hi]]:Tt===zs?[[Math.max(Li[0]-hi,Ti),ki],[Math.min(Li[0]+hi,Ji),Fn]]:[[Ti,Math.max(Li[1]-hi,ki)],[Ji,Math.min(Li[1]+hi,Fn)]])}return Pi()}function os(Tt){return m((l+Tt)/2)}function _l(Tt,Vt){var wr=v(Tt),yr=Tt===Vt?_(Tt):T(wr/v(Vt))/T(os(Vt)/os(Tt)),Fr=wr*L(os(Tt),yr)/yr;if(!yr)return zs;function gi(Ti,ki){Fr>0?ki<-l+o&&(ki=-l+o):ki>l-o&&(ki=l-o);var Ji=Fr/L(os(ki),yr);return[Ji*_(yr*Ti),Fr-Ji*v(yr*Ti)]}return gi.invert=function(Ti,ki){var Ji=Fr-ki,Fn=C(yr)*S(Ti*Ti+Ji*Ji),Pi=b(Ti,p(Ji))*C(Ji);return Ji*yr<0&&(Pi-=u*C(Ti)*C(Ji)),[Pi/yr,2*x(L(Fr/Fn,1/yr))-l]},gi}function Ss(){return ho(_l).scale(109.5).parallels([30,30])}function po(Tt,Vt){return[Tt,Vt]}po.invert=po;function go(){return Ma(po).scale(152.63)}function ss(Tt,Vt){var wr=v(Tt),yr=Tt===Vt?_(Tt):(wr-v(Vt))/(Vt-Tt),Fr=wr/yr+Tt;if(p(yr)o&&--yr>0);return[Tt/(.8707+(gi=wr*wr)*(-.131979+gi*(-.013791+gi*gi*gi*(.003971-.001529*gi)))),wr]};function hl(){return Ma(Fs).scale(175.295)}function Fa(Tt,Vt){return[v(Vt)*_(Tt),_(Vt)]}Fa.invert=Jn(A);function Ms(){return Ma(Fa).scale(249.5).clipAngle(90+o)}function jo(Tt,Vt){var wr=v(Vt),yr=1+v(Tt)*wr;return[wr*_(Tt)/yr,_(Vt)/yr]}jo.invert=Jn(function(Tt){return 2*x(Tt)});function Rs(){return Ma(jo).scale(250).clipAngle(142)}function Is(Tt,Vt){return[T(m((l+Vt)/2)),-Tt]}Is.invert=function(Tt,Vt){return[-Vt,2*x(E(Tt))-l]};function Bs(){var Tt=Aa(Is),Vt=Tt.center,wr=Tt.rotate;return Tt.center=function(yr){return arguments.length?Vt([-yr[1],yr[0]]):(yr=Vt(),[yr[1],-yr[0]])},Tt.rotate=function(yr){return arguments.length?wr([yr[0],yr[1],yr.length>2?yr[2]+90:90]):(yr=wr(),[yr[0],yr[1],yr[2]-90])},wr([0,0,90]).scale(159.155)}e.geoAlbers=Lo,e.geoAlbersUsa=ks,e.geoArea=me,e.geoAzimuthalEqualArea=rl,e.geoAzimuthalEqualAreaRaw=Oo,e.geoAzimuthalEquidistant=bs,e.geoAzimuthalEquidistantRaw=Gs,e.geoBounds=xe,e.geoCentroid=xr,e.geoCircle=Yr,e.geoClipAntimeridian=pr,e.geoClipCircle=Qi,e.geoClipExtent=Un,e.geoClipRectangle=Mn,e.geoConicConformal=Ss,e.geoConicConformalRaw=_l,e.geoConicEqualArea=Do,e.geoConicEqualAreaRaw=Vo,e.geoConicEquidistant=qo,e.geoConicEquidistantRaw=ss,e.geoContains=Po,e.geoDistance=uo,e.geoEqualEarth=el,e.geoEqualEarthRaw=cl,e.geoEquirectangular=go,e.geoEquirectangularRaw=po,e.geoGnomonic=Ro,e.geoGnomonicRaw=Hs,e.geoGraticule=Ps,e.geoGraticule10=Ha,e.geoIdentity=tl,e.geoInterpolate=Sn,e.geoLength=kn,e.geoMercator=$o,e.geoMercatorRaw=zs,e.geoNaturalEarth1=hl,e.geoNaturalEarth1Raw=Fs,e.geoOrthographic=Ms,e.geoOrthographicRaw=Fa,e.geoPath=Ho,e.geoProjection=Ma,e.geoProjectionMutator=Qs,e.geoRotation=Vi,e.geoStereographic=Rs,e.geoStereographicRaw=jo,e.geoStream=W,e.geoTransform=Wa,e.geoTransverseMercator=Bs,e.geoTransverseMercatorRaw=Is,Object.defineProperty(e,"__esModule",{value:!0})})});var S6e=Te((MF,T6e)=>{(function(e,t){typeof MF=="object"&&typeof T6e!="undefined"?t(MF,qZ(),ek()):t(e.d3=e.d3||{},e.d3,e.d3)})(MF,function(e,t,r){"use strict";var n=Math.abs,i=Math.atan,a=Math.atan2,o=Math.cos,s=Math.exp,u=Math.floor,l=Math.log,f=Math.max,c=Math.min,h=Math.pow,d=Math.round,p=Math.sign||function(he){return he>0?1:he<0?-1:0},x=Math.sin,b=Math.tan,v=1e-6,k=1e-12,E=Math.PI,T=E/2,L=E/4,_=Math.SQRT1_2,C=G(2),S=G(E),m=E*2,P=180/E,A=E/180;function B(he){return he?he/Math.sin(he):1}function F(he){return he>1?T:he<-1?-T:Math.asin(he)}function U(he){return he>1?0:he<-1?E:Math.acos(he)}function G(he){return he>0?Math.sqrt(he):0}function j(he){return he=s(2*he),(he-1)/(he+1)}function H(he){return(s(he)-s(-he))/2}function N(he){return(s(he)+s(-he))/2}function W(he){return l(he+G(he*he+1))}function re(he){return l(he+G(he*he-1))}function ae(he){var Se=b(he/2),qe=2*l(o(he/2))/(Se*Se);function Ge(lt,tt){var vt=o(lt),Gt=o(tt),nr=x(tt),cr=Gt*vt,Ar=-((1-cr?l((1+cr)/2)/(1-cr):-.5)+qe/(1+cr));return[Ar*Gt*x(lt),Ar*nr]}return Ge.invert=function(lt,tt){var vt=G(lt*lt+tt*tt),Gt=-he/2,nr=50,cr;if(!vt)return[0,0];do{var Ar=Gt/2,Rr=o(Ar),ri=x(Ar),si=ri/Rr,Mi=-l(n(Rr));Gt-=cr=(2/si*Mi-qe*si-vt)/(-Mi/(ri*ri)+1-qe/(2*Rr*Rr))*(Rr<0?.7:1)}while(n(cr)>v&&--nr>0);var hn=x(Gt);return[a(lt*hn,vt*o(Gt)),F(tt*hn/vt)]},Ge}function be(){var he=T,Se=t.geoProjectionMutator(ae),qe=Se(he);return qe.radius=function(Ge){return arguments.length?Se(he=Ge*A):he*P},qe.scale(179.976).clipAngle(147)}function Pe(he,Se){var qe=o(Se),Ge=B(U(qe*o(he/=2)));return[2*qe*x(he)*Ge,x(Se)*Ge]}Pe.invert=function(he,Se){if(!(he*he+4*Se*Se>E*E+v)){var qe=he,Ge=Se,lt=25;do{var tt=x(qe),vt=x(qe/2),Gt=o(qe/2),nr=x(Ge),cr=o(Ge),Ar=x(2*Ge),Rr=nr*nr,ri=cr*cr,si=vt*vt,Mi=1-ri*Gt*Gt,hn=Mi?U(cr*Gt)*G(Zn=1/Mi):Zn=0,Zn,Yn=2*hn*cr*vt-he,Ua=hn*nr-Se,Fo=Zn*(ri*si+hn*cr*Gt*Rr),vl=Zn*(.5*tt*Ar-hn*2*nr*vt),Us=Zn*.25*(Ar*vt-hn*nr*ri*tt),ml=Zn*(Rr*Gt+hn*si*cr),au=vl*Us-ml*Fo;if(!au)break;var Sl=(Ua*vl-Yn*ml)/au,Yl=(Yn*Us-Ua*Fo)/au;qe-=Sl,Ge-=Yl}while((n(Sl)>v||n(Yl)>v)&&--lt>0);return[qe,Ge]}};function Ce(){return t.geoProjection(Pe).scale(152.63)}function de(he){var Se=x(he),qe=o(he),Ge=he>=0?1:-1,lt=b(Ge*he),tt=(1+Se-qe)/2;function vt(Gt,nr){var cr=o(nr),Ar=o(Gt/=2);return[(1+cr)*x(Gt),(Ge*nr>-a(Ar,lt)-.001?0:-Ge*10)+tt+x(nr)*qe-(1+cr)*Se*Ar]}return vt.invert=function(Gt,nr){var cr=0,Ar=0,Rr=50;do{var ri=o(cr),si=x(cr),Mi=o(Ar),hn=x(Ar),Zn=1+Mi,Yn=Zn*si-Gt,Ua=tt+hn*qe-Zn*Se*ri-nr,Fo=Zn*ri/2,vl=-si*hn,Us=Se*Zn*si/2,ml=qe*Mi+Se*ri*hn,au=vl*Us-ml*Fo,Sl=(Ua*vl-Yn*ml)/au/2,Yl=(Yn*Us-Ua*Fo)/au;n(Yl)>2&&(Yl/=2),cr-=Sl,Ar-=Yl}while((n(Sl)>v||n(Yl)>v)&&--Rr>0);return Ge*Ar>-a(o(cr),lt)-.001?[cr*2,Ar]:null},vt}function te(){var he=20*A,Se=he>=0?1:-1,qe=b(Se*he),Ge=t.geoProjectionMutator(de),lt=Ge(he),tt=lt.stream;return lt.parallel=function(vt){return arguments.length?(qe=b((Se=(he=vt*A)>=0?1:-1)*he),Ge(he)):he*P},lt.stream=function(vt){var Gt=lt.rotate(),nr=tt(vt),cr=(lt.rotate([0,0]),tt(vt)),Ar=lt.precision();return lt.rotate(Gt),nr.sphere=function(){cr.polygonStart(),cr.lineStart();for(var Rr=Se*-180;Se*Rr<180;Rr+=Se*90)cr.point(Rr,Se*90);if(he)for(;Se*(Rr-=3*Se*Ar)>=-180;)cr.point(Rr,Se*-a(o(Rr*A/2),qe)*P);cr.lineEnd(),cr.polygonEnd()},nr},lt.scale(218.695).center([0,28.0974])}function ke(he,Se){var qe=b(Se/2),Ge=G(1-qe*qe),lt=1+Ge*o(he/=2),tt=x(he)*Ge/lt,vt=qe/lt,Gt=tt*tt,nr=vt*vt;return[4/3*tt*(3+Gt-3*nr),4/3*vt*(3+3*Gt-nr)]}ke.invert=function(he,Se){if(he*=3/8,Se*=3/8,!he&&n(Se)>1)return null;var qe=he*he,Ge=Se*Se,lt=1+qe+Ge,tt=G((lt-G(lt*lt-4*Se*Se))/2),vt=F(tt)/3,Gt=tt?re(n(Se/tt))/3:W(n(he))/3,nr=o(vt),cr=N(Gt),Ar=cr*cr-nr*nr;return[p(he)*2*a(H(Gt)*nr,.25-Ar),p(Se)*2*a(cr*x(vt),.25+Ar)]};function Ee(){return t.geoProjection(ke).scale(66.1603)}var Me=G(8),Ue=l(1+C);function Fe(he,Se){var qe=n(Se);return qek&&--Ge>0);return[he/(o(qe)*(Me-1/x(qe))),p(Se)*qe]};function me(){return t.geoProjection(Fe).scale(112.314)}function Ne(he){var Se=2*E/he;function qe(Ge,lt){var tt=t.geoAzimuthalEquidistantRaw(Ge,lt);if(n(Ge)>T){var vt=a(tt[1],tt[0]),Gt=G(tt[0]*tt[0]+tt[1]*tt[1]),nr=Se*d((vt-T)/Se)+T,cr=a(x(vt-=nr),2-o(vt));vt=nr+F(E/Gt*x(cr))-cr,tt[0]=Gt*o(vt),tt[1]=Gt*x(vt)}return tt}return qe.invert=function(Ge,lt){var tt=G(Ge*Ge+lt*lt);if(tt>T){var vt=a(lt,Ge),Gt=Se*d((vt-T)/Se)+T,nr=vt>Gt?-1:1,cr=tt*o(Gt-vt),Ar=1/b(nr*U((cr-E)/G(E*(E-2*cr)+tt*tt)));vt=Gt+2*i((Ar+nr*G(Ar*Ar-3))/3),Ge=tt*o(vt),lt=tt*x(vt)}return t.geoAzimuthalEquidistantRaw.invert(Ge,lt)},qe}function ce(){var he=5,Se=t.geoProjectionMutator(Ne),qe=Se(he),Ge=qe.stream,lt=.01,tt=-o(lt*A),vt=x(lt*A);return qe.lobes=function(Gt){return arguments.length?Se(he=+Gt):he},qe.stream=function(Gt){var nr=qe.rotate(),cr=Ge(Gt),Ar=(qe.rotate([0,0]),Ge(Gt));return qe.rotate(nr),cr.sphere=function(){Ar.polygonStart(),Ar.lineStart();for(var Rr=0,ri=360/he,si=2*E/he,Mi=90-180/he,hn=T;Rr0&&n(lt)>v);return Ge<0?NaN:qe}function nt(he,Se,qe){return Se===void 0&&(Se=40),qe===void 0&&(qe=k),function(Ge,lt,tt,vt){var Gt,nr,cr;tt=tt===void 0?0:+tt,vt=vt===void 0?0:+vt;for(var Ar=0;ArGt){tt-=nr/=2,vt-=cr/=2;continue}Gt=Mi;var hn=(tt>0?-1:1)*qe,Zn=(vt>0?-1:1)*qe,Yn=he(tt+hn,vt),Ua=he(tt,vt+Zn),Fo=(Yn[0]-Rr[0])/hn,vl=(Yn[1]-Rr[1])/hn,Us=(Ua[0]-Rr[0])/Zn,ml=(Ua[1]-Rr[1])/Zn,au=ml*Fo-vl*Us,Sl=(n(au)<.5?.5:1)/au;if(nr=(si*Us-ri*ml)*Sl,cr=(ri*vl-si*Fo)*Sl,tt+=nr,vt+=cr,n(nr)0&&(Gt[1]*=1+nr/1.5*Gt[0]*Gt[0]),Gt}return Ge.invert=nt(Ge),Ge}function kt(){return t.geoProjection(Ye()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function At(he,Se){var qe=he*x(Se),Ge=30,lt;do Se-=lt=(Se+x(Se)-qe)/(1+o(Se));while(n(lt)>v&&--Ge>0);return Se/2}function St(he,Se,qe){function Ge(lt,tt){return[he*lt*o(tt=At(qe,tt)),Se*x(tt)]}return Ge.invert=function(lt,tt){return tt=F(tt/Se),[lt/(he*o(tt)),F((2*tt+x(2*tt))/qe)]},Ge}var Bt=St(C/T,C,E);function Zt(){return t.geoProjection(Bt).scale(169.529)}var Et=2.00276,Ae=1.11072;function ot(he,Se){var qe=At(E,Se);return[Et*he/(1/o(Se)+Ae/o(qe)),(Se+C*x(qe))/Et]}ot.invert=function(he,Se){var qe=Et*Se,Ge=Se<0?-L:L,lt=25,tt,vt;do vt=qe-C*x(Ge),Ge-=tt=(x(2*Ge)+2*Ge-E*x(vt))/(2*o(2*Ge)+2+E*o(vt)*C*o(Ge));while(n(tt)>v&&--lt>0);return vt=qe-C*x(Ge),[he*(1/o(vt)+Ae/o(Ge))/Et,vt]};function dt(){return t.geoProjection(ot).scale(160.857)}function pt(he){var Se=0,qe=t.geoProjectionMutator(he),Ge=qe(Se);return Ge.parallel=function(lt){return arguments.length?qe(Se=lt*A):Se*P},Ge}function at(he,Se){return[he*o(Se),Se]}at.invert=function(he,Se){return[he/o(Se),Se]};function Xe(){return t.geoProjection(at).scale(152.63)}function rt(he){if(!he)return at;var Se=1/b(he);function qe(Ge,lt){var tt=Se+he-lt,vt=tt&&Ge*o(lt)/tt;return[tt*x(vt),Se-tt*o(vt)]}return qe.invert=function(Ge,lt){var tt=G(Ge*Ge+(lt=Se-lt)*lt),vt=Se+he-tt;return[tt/o(vt)*a(Ge,lt),vt]},qe}function Qe(){return pt(rt).scale(123.082).center([0,26.1441]).parallel(45)}function zt(he){function Se(qe,Ge){var lt=T-Ge,tt=lt&&qe*he*x(lt)/lt;return[lt*x(tt)/he,T-lt*o(tt)]}return Se.invert=function(qe,Ge){var lt=qe*he,tt=T-Ge,vt=G(lt*lt+tt*tt),Gt=a(lt,tt);return[(vt?vt/x(vt):1)*Gt/he,T-vt]},Se}function Yt(){var he=.5,Se=t.geoProjectionMutator(zt),qe=Se(he);return qe.fraction=function(Ge){return arguments.length?Se(he=+Ge):he},qe.scale(158.837)}var lr=St(1,4/E,E);function mr(){return t.geoProjection(lr).scale(152.63)}function _r(he,Se,qe,Ge,lt,tt){var vt=o(tt),Gt;if(n(he)>1||n(tt)>1)Gt=U(qe*lt+Se*Ge*vt);else{var nr=x(he/2),cr=x(tt/2);Gt=2*F(G(nr*nr+Se*Ge*cr*cr))}return n(Gt)>v?[Gt,a(Ge*x(tt),Se*lt-qe*Ge*vt)]:[0,0]}function Ht(he,Se,qe){return U((he*he+Se*Se-qe*qe)/(2*he*Se))}function Re(he){return he-2*E*u((he+E)/(2*E))}function xe(he,Se,qe){for(var Ge=[[he[0],he[1],x(he[1]),o(he[1])],[Se[0],Se[1],x(Se[1]),o(Se[1])],[qe[0],qe[1],x(qe[1]),o(qe[1])]],lt=Ge[2],tt,vt=0;vt<3;++vt,lt=tt)tt=Ge[vt],lt.v=_r(tt[1]-lt[1],lt[3],lt[2],tt[3],tt[2],tt[0]-lt[0]),lt.point=[0,0];var Gt=Ht(Ge[0].v[0],Ge[2].v[0],Ge[1].v[0]),nr=Ht(Ge[0].v[0],Ge[1].v[0],Ge[2].v[0]),cr=E-Gt;Ge[2].point[1]=0,Ge[0].point[0]=-(Ge[1].point[0]=Ge[0].v[0]/2);var Ar=[Ge[2].point[0]=Ge[0].point[0]+Ge[2].v[0]*o(Gt),2*(Ge[0].point[1]=Ge[1].point[1]=Ge[2].v[0]*x(Gt))];function Rr(ri,si){var Mi=x(si),hn=o(si),Zn=new Array(3),Yn;for(Yn=0;Yn<3;++Yn){var Ua=Ge[Yn];if(Zn[Yn]=_r(si-Ua[1],Ua[3],Ua[2],hn,Mi,ri-Ua[0]),!Zn[Yn][0])return Ua.point;Zn[Yn][1]=Re(Zn[Yn][1]-Ua.v[1])}var Fo=Ar.slice();for(Yn=0;Yn<3;++Yn){var vl=Yn==2?0:Yn+1,Us=Ht(Ge[Yn].v[0],Zn[Yn][0],Zn[vl][0]);Zn[Yn][1]<0&&(Us=-Us),Yn?Yn==1?(Us=nr-Us,Fo[0]-=Zn[Yn][0]*o(Us),Fo[1]-=Zn[Yn][0]*x(Us)):(Us=cr-Us,Fo[0]+=Zn[Yn][0]*o(Us),Fo[1]+=Zn[Yn][0]*x(Us)):(Fo[0]+=Zn[Yn][0]*o(Us),Fo[1]-=Zn[Yn][0]*x(Us))}return Fo[0]/=3,Fo[1]/=3,Fo}return Rr}function Oe(he){return he[0]*=A,he[1]*=A,he}function Ie(){return De([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function De(he,Se,qe){var Ge=t.geoCentroid({type:"MultiPoint",coordinates:[he,Se,qe]}),lt=[-Ge[0],-Ge[1]],tt=t.geoRotation(lt),vt=xe(Oe(tt(he)),Oe(tt(Se)),Oe(tt(qe)));vt.invert=nt(vt);var Gt=t.geoProjection(vt).rotate(lt),nr=Gt.center;return delete Gt.rotate,Gt.center=function(cr){return arguments.length?nr(tt(cr)):tt.invert(nr())},Gt.clipAngle(90)}function ct(he,Se){var qe=G(1-x(Se));return[2/S*he*qe,S*(1-qe)]}ct.invert=function(he,Se){var qe=(qe=Se/S-1)*qe;return[qe>0?he*G(E/qe)/2:0,F(1-qe)]};function _e(){return t.geoProjection(ct).scale(95.6464).center([0,30])}function fe(he){var Se=b(he);function qe(Ge,lt){return[Ge,(Ge?Ge/x(Ge):1)*(x(lt)*o(Ge)-Se*o(lt))]}return qe.invert=Se?function(Ge,lt){Ge&&(lt*=x(Ge)/Ge);var tt=o(Ge);return[Ge,2*a(G(tt*tt+Se*Se-lt*lt)-tt,Se-lt)]}:function(Ge,lt){return[Ge,F(Ge?lt*b(Ge)/Ge:lt)]},qe}function pe(){return pt(fe).scale(249.828).clipAngle(90)}var mt=G(3);function It(he,Se){return[mt*he*(2*o(2*Se/3)-1)/S,mt*S*x(Se/3)]}It.invert=function(he,Se){var qe=3*F(Se/(mt*S));return[S*he/(mt*(2*o(2*qe/3)-1)),qe]};function Pt(){return t.geoProjection(It).scale(156.19)}function rr(he){var Se=o(he);function qe(Ge,lt){return[Ge*Se,x(lt)/Se]}return qe.invert=function(Ge,lt){return[Ge/Se,F(lt*Se)]},qe}function Wr(){return pt(rr).parallel(38.58).scale(195.044)}function Nr(he){var Se=o(he);function qe(Ge,lt){return[Ge*Se,(1+Se)*b(lt/2)]}return qe.invert=function(Ge,lt){return[Ge/Se,i(lt/(1+Se))*2]},qe}function Er(){return pt(Nr).scale(124.75)}function Br(he,Se){var qe=G(8/(3*E));return[qe*he*(1-n(Se)/E),qe*Se]}Br.invert=function(he,Se){var qe=G(8/(3*E)),Ge=Se/qe;return[he/(qe*(1-n(Ge)/E)),Ge]};function mi(){return t.geoProjection(Br).scale(165.664)}function Di(he,Se){var qe=G(4-3*x(n(Se)));return[2/G(6*E)*he*qe,p(Se)*G(2*E/3)*(2-qe)]}Di.invert=function(he,Se){var qe=2-n(Se)/G(2*E/3);return[he*G(6*E)/(2*qe),p(Se)*F((4-qe*qe)/3)]};function Ii(){return t.geoProjection(Di).scale(165.664)}function Ci(he,Se){var qe=G(E*(4+E));return[2/qe*he*(1+G(1-4*Se*Se/(E*E))),4/qe*Se]}Ci.invert=function(he,Se){var qe=G(E*(4+E))/2;return[he*qe/(1+G(1-Se*Se*(4+E)/(4*E))),Se*qe/2]};function nn(){return t.geoProjection(Ci).scale(180.739)}function ii(he,Se){var qe=(2+T)*x(Se);Se/=2;for(var Ge=0,lt=1/0;Ge<10&&n(lt)>v;Ge++){var tt=o(Se);Se-=lt=(Se+x(Se)*(tt+2)-qe)/(2*tt*(1+tt))}return[2/G(E*(4+E))*he*(1+o(Se)),2*G(E/(4+E))*x(Se)]}ii.invert=function(he,Se){var qe=Se*G((4+E)/E)/2,Ge=F(qe),lt=o(Ge);return[he/(2/G(E*(4+E))*(1+lt)),F((Ge+qe*(lt+2))/(2+T))]};function wi(){return t.geoProjection(ii).scale(180.739)}function Gi(he,Se){return[he*(1+o(Se))/G(2+E),2*Se/G(2+E)]}Gi.invert=function(he,Se){var qe=G(2+E),Ge=Se*qe/2;return[qe*he/(1+o(Ge)),Ge]};function Ft(){return t.geoProjection(Gi).scale(173.044)}function gt(he,Se){for(var qe=(1+T)*x(Se),Ge=0,lt=1/0;Ge<10&&n(lt)>v;Ge++)Se-=lt=(Se+x(Se)-qe)/(1+o(Se));return qe=G(2+E),[he*(1+o(Se))/qe,2*Se/qe]}gt.invert=function(he,Se){var qe=1+T,Ge=G(qe/2);return[he*2*Ge/(1+o(Se*=Ge)),F((Se+x(Se))/qe)]};function Ut(){return t.geoProjection(gt).scale(173.044)}var Wt=3+2*C;function xr(he,Se){var qe=x(he/=2),Ge=o(he),lt=G(o(Se)),tt=o(Se/=2),vt=x(Se)/(tt+C*Ge*lt),Gt=G(2/(1+vt*vt)),nr=G((C*tt+(Ge+qe)*lt)/(C*tt+(Ge-qe)*lt));return[Wt*(Gt*(nr-1/nr)-2*l(nr)),Wt*(Gt*vt*(nr+1/nr)-2*i(vt))]}xr.invert=function(he,Se){if(!(tt=ke.invert(he/1.2,Se*1.065)))return null;var qe=tt[0],Ge=tt[1],lt=20,tt;he/=Wt,Se/=Wt;do{var vt=qe/2,Gt=Ge/2,nr=x(vt),cr=o(vt),Ar=x(Gt),Rr=o(Gt),ri=o(Ge),si=G(ri),Mi=Ar/(Rr+C*cr*si),hn=Mi*Mi,Zn=G(2/(1+hn)),Yn=C*Rr+(cr+nr)*si,Ua=C*Rr+(cr-nr)*si,Fo=Yn/Ua,vl=G(Fo),Us=vl-1/vl,ml=vl+1/vl,au=Zn*Us-2*l(vl)-he,Sl=Zn*Mi*ml-2*i(Mi)-Se,Yl=Ar&&_*si*nr*hn/Ar,ql=(C*cr*Rr+si)/(2*(Rr+C*cr*si)*(Rr+C*cr*si)*si),ou=-.5*Mi*Zn*Zn*Zn,Pu=ou*Yl,iu=ou*ql,tu=(tu=2*Rr+C*si*(cr-nr))*tu*vl,Wu=(C*cr*Rr*si+ri)/tu,Qu=-(C*nr*Ar)/(si*tu),Ku=Us*Pu-2*Wu/vl+Zn*(Wu+Wu/Fo),ju=Us*iu-2*Qu/vl+Zn*(Qu+Qu/Fo),Xu=Mi*ml*Pu-2*Yl/(1+hn)+Zn*ml*Yl+Zn*Mi*(Wu-Wu/Fo),lf=Mi*ml*iu-2*ql/(1+hn)+Zn*ml*ql+Zn*Mi*(Qu-Qu/Fo),xf=ju*Xu-lf*Ku;if(!xf)break;var ef=(Sl*ju-au*lf)/xf,tf=(au*Xu-Sl*Ku)/xf;qe-=ef,Ge=f(-T,c(T,Ge-tf))}while((n(ef)>v||n(tf)>v)&&--lt>0);return n(n(Ge)-T)Ge){var Rr=G(Ar),ri=a(cr,nr),si=qe*d(ri/qe),Mi=ri-si,hn=he*o(Mi),Zn=(he*x(Mi)-Mi*x(hn))/(T-hn),Yn=Bi(Mi,Zn),Ua=(E-he)/an(Yn,hn,E);nr=Rr;var Fo=50,vl;do nr-=vl=(he+an(Yn,hn,nr)*Ua-Rr)/(Yn(nr)*Ua);while(n(vl)>v&&--Fo>0);cr=Mi*x(nr),nrGe){var nr=G(Gt),cr=a(vt,tt),Ar=qe*d(cr/qe),Rr=cr-Ar;tt=nr*o(Rr),vt=nr*x(Rr);for(var ri=tt-T,si=x(tt),Mi=vt/si,hn=ttv||n(Mi)>v)&&--hn>0);return[Rr,ri]},nr}var Ri=Fi(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function xn(){return t.geoProjection(Ri).scale(149.995)}var xi=Fi(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Xr(){return t.geoProjection(xi).scale(153.93)}var ft=Fi(5/6*E,-.62636,-.0344,0,1.3493,-.05524,0,.045);function tr(){return t.geoProjection(ft).scale(130.945)}function pr(he,Se){var qe=he*he,Ge=Se*Se;return[he*(1-.162388*Ge)*(.87-952426e-9*qe*qe),Se*(1+Ge/12)]}pr.invert=function(he,Se){var qe=he,Ge=Se,lt=50,tt;do{var vt=Ge*Ge;Ge-=tt=(Ge*(1+vt/12)-Se)/(1+vt/4)}while(n(tt)>v&&--lt>0);lt=50,he/=1-.162388*vt;do{var Gt=(Gt=qe*qe)*Gt;qe-=tt=(qe*(.87-952426e-9*Gt)-he)/(.87-.00476213*Gt)}while(n(tt)>v&&--lt>0);return[qe,Ge]};function gr(){return t.geoProjection(pr).scale(131.747)}var Zr=Fi(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Ai(){return t.geoProjection(Zr).scale(131.087)}function Qi(he){var Se=he(T,0)[0]-he(-T,0)[0];function qe(Ge,lt){var tt=Ge>0?-.5:.5,vt=he(Ge+tt*E,lt);return vt[0]-=tt*Se,vt}return he.invert&&(qe.invert=function(Ge,lt){var tt=Ge>0?-.5:.5,vt=he.invert(Ge+tt*Se,lt),Gt=vt[0]-tt*E;return Gt<-E?Gt+=2*E:Gt>E&&(Gt-=2*E),vt[0]=Gt,vt}),qe}function ni(he,Se){var qe=p(he),Ge=p(Se),lt=o(Se),tt=o(he)*lt,vt=x(he)*lt,Gt=x(Ge*Se);he=n(a(vt,Gt)),Se=F(tt),n(he-T)>v&&(he%=T);var nr=Zi(he>E/4?T-he:he,Se);return he>E/4&&(Gt=nr[0],nr[0]=-nr[1],nr[1]=-Gt),nr[0]*=qe,nr[1]*=-Ge,nr}ni.invert=function(he,Se){n(he)>1&&(he=p(he)*2-he),n(Se)>1&&(Se=p(Se)*2-Se);var qe=p(he),Ge=p(Se),lt=-qe*he,tt=-Ge*Se,vt=tt/lt<1,Gt=aa(vt?tt:lt,vt?lt:tt),nr=Gt[0],cr=Gt[1],Ar=o(cr);return vt&&(nr=-T-nr),[qe*(a(x(nr)*Ar,-x(cr))+E),Ge*F(o(nr)*Ar)]};function Zi(he,Se){if(Se===T)return[0,0];var qe=x(Se),Ge=qe*qe,lt=Ge*Ge,tt=1+lt,vt=1+3*lt,Gt=1-lt,nr=F(1/G(tt)),cr=Gt+Ge*tt*nr,Ar=(1-qe)/cr,Rr=G(Ar),ri=Ar*tt,si=G(ri),Mi=Rr*Gt,hn,Zn;if(he===0)return[0,-(Mi+Ge*si)];var Yn=o(Se),Ua=1/Yn,Fo=2*qe*Yn,vl=(-3*Ge+nr*vt)*Fo,Us=(-cr*Yn-(1-qe)*vl)/(cr*cr),ml=.5*Us/Rr,au=Gt*ml-2*Ge*Rr*Fo,Sl=Ge*tt*Us+Ar*vt*Fo,Yl=-Ua*Fo,ql=-Ua*Sl,ou=-2*Ua*au,Pu=4*he/E,iu;if(he>.222*E||Se.175*E){if(hn=(Mi+Ge*G(ri*(1+lt)-Mi*Mi))/(1+lt),he>E/4)return[hn,hn];var tu=hn,Wu=.5*hn;hn=.5*(Wu+tu),Zn=50;do{var Qu=G(ri-hn*hn),Ku=hn*(ou+Yl*Qu)+ql*F(hn/si)-Pu;if(!Ku)break;Ku<0?Wu=hn:tu=hn,hn=.5*(Wu+tu)}while(n(tu-Wu)>v&&--Zn>0)}else{hn=v,Zn=25;do{var ju=hn*hn,Xu=G(ri-ju),lf=ou+Yl*Xu,xf=hn*lf+ql*F(hn/si)-Pu,ef=lf+(ql-Yl*ju)/Xu;hn-=iu=Xu?xf/ef:0}while(n(iu)>v&&--Zn>0)}return[hn,-Mi-Ge*G(ri-hn*hn)]}function aa(he,Se){for(var qe=0,Ge=1,lt=.5,tt=50;;){var vt=lt*lt,Gt=G(lt),nr=F(1/G(1+vt)),cr=1-vt+lt*(1+vt)*nr,Ar=(1-Gt)/cr,Rr=G(Ar),ri=Ar*(1+vt),si=Rr*(1-vt),Mi=ri-he*he,hn=G(Mi),Zn=Se+si+lt*hn;if(n(Ge-qe)0?qe=lt:Ge=lt,lt=.5*(qe+Ge)}if(!tt)return null;var Yn=F(Gt),Ua=o(Yn),Fo=1/Ua,vl=2*Gt*Ua,Us=(-3*lt+nr*(1+3*vt))*vl,ml=(-cr*Ua-(1-Gt)*Us)/(cr*cr),au=.5*ml/Rr,Sl=(1-vt)*au-2*lt*Rr*vl,Yl=-2*Fo*Sl,ql=-Fo*vl,ou=-Fo*(lt*(1+vt)*ml+Ar*(1+3*vt)*vl);return[E/4*(he*(Yl+ql*hn)+ou*F(he/G(ri))),Yn]}function Mn(){return t.geoProjection(Qi(ni)).scale(239.75)}function Un(he,Se,qe){var Ge,lt,tt;return he?(Ge=Ga(he,qe),Se?(lt=Ga(Se,1-qe),tt=lt[1]*lt[1]+qe*Ge[0]*Ge[0]*lt[0]*lt[0],[[Ge[0]*lt[2]/tt,Ge[1]*Ge[2]*lt[0]*lt[1]/tt],[Ge[1]*lt[1]/tt,-Ge[0]*Ge[2]*lt[0]*lt[2]/tt],[Ge[2]*lt[1]*lt[2]/tt,-qe*Ge[0]*Ge[1]*lt[0]/tt]]):[[Ge[0],0],[Ge[1],0],[Ge[2],0]]):(lt=Ga(Se,1-qe),[[0,lt[0]/lt[1]],[1/lt[1],0],[lt[2]/lt[1],0]])}function Ga(he,Se){var qe,Ge,lt,tt,vt;if(Se=1-v)return qe=(1-Se)/4,Ge=N(he),tt=j(he),lt=1/Ge,vt=Ge*H(he),[tt+qe*(vt-he)/(Ge*Ge),lt-qe*tt*lt*(vt-he),lt+qe*tt*lt*(vt+he),2*i(s(he))-T+qe*(vt-he)/Ge];var Gt=[1,0,0,0,0,0,0,0,0],nr=[G(Se),0,0,0,0,0,0,0,0],cr=0;for(Ge=G(1-Se),vt=1;n(nr[cr]/Gt[cr])>v&&cr<8;)qe=Gt[cr++],nr[cr]=(qe-Ge)/2,Gt[cr]=(qe+Ge)/2,Ge=G(qe*Ge),vt*=2;lt=vt*Gt[cr]*he;do tt=nr[cr]*x(Ge=lt)/Gt[cr],lt=(F(tt)+lt)/2;while(--cr);return[x(lt),tt=o(lt),tt/o(lt-Ge),lt]}function ma(he,Se,qe){var Ge=n(he),lt=n(Se),tt=H(lt);if(Ge){var vt=1/x(Ge),Gt=1/(b(Ge)*b(Ge)),nr=-(Gt+qe*(tt*tt*vt*vt)-1+qe),cr=(qe-1)*Gt,Ar=(-nr+G(nr*nr-4*cr))/2;return[oa(i(1/G(Ar)),qe)*p(he),oa(i(G((Ar/Gt-1)/qe)),1-qe)*p(Se)]}return[0,oa(i(tt),1-qe)*p(Se)]}function oa(he,Se){if(!Se)return he;if(Se===1)return l(b(he/2+L));for(var qe=1,Ge=G(1-Se),lt=G(Se),tt=0;n(lt)>v;tt++){if(he%E){var vt=i(Ge*b(he)/qe);vt<0&&(vt+=E),he+=vt+~~(he/E)*E}else he+=he;lt=(qe+Ge)/2,Ge=G(qe*Ge),lt=((qe=lt)-Ge)/2}return he/(h(2,tt)*qe)}function ka(he,Se){var qe=(C-1)/(C+1),Ge=G(1-qe*qe),lt=oa(T,Ge*Ge),tt=-1,vt=l(b(E/4+n(Se)/2)),Gt=s(tt*vt)/G(qe),nr=so(Gt*o(tt*he),Gt*x(tt*he)),cr=ma(nr[0],nr[1],Ge*Ge);return[-cr[1],(Se>=0?1:-1)*(.5*lt-cr[0])]}function so(he,Se){var qe=he*he,Ge=Se+1,lt=1-qe-Se*Se;return[.5*((he>=0?T:-T)-a(lt,2*he)),-.25*l(lt*lt+4*qe)+.5*l(Ge*Ge+qe)]}function Kr(he,Se){var qe=Se[0]*Se[0]+Se[1]*Se[1];return[(he[0]*Se[0]+he[1]*Se[1])/qe,(he[1]*Se[0]-he[0]*Se[1])/qe]}ka.invert=function(he,Se){var qe=(C-1)/(C+1),Ge=G(1-qe*qe),lt=oa(T,Ge*Ge),tt=-1,vt=Un(.5*lt-Se,-he,Ge*Ge),Gt=Kr(vt[0],vt[1]),nr=a(Gt[1],Gt[0])/tt;return[nr,2*i(s(.5/tt*l(qe*Gt[0]*Gt[0]+qe*Gt[1]*Gt[1])))-T]};function Ia(){return t.geoProjection(Qi(ka)).scale(151.496)}function Yo(he){var Se=x(he),qe=o(he),Ge=fa(he);Ge.invert=fa(-he);function lt(tt,vt){var Gt=Ge(tt,vt);tt=Gt[0],vt=Gt[1];var nr=x(vt),cr=o(vt),Ar=o(tt),Rr=U(Se*nr+qe*cr*Ar),ri=x(Rr),si=n(ri)>v?Rr/ri:1;return[si*qe*x(tt),(n(tt)>T?si:-si)*(Se*cr-qe*nr*Ar)]}return lt.invert=function(tt,vt){var Gt=G(tt*tt+vt*vt),nr=-x(Gt),cr=o(Gt),Ar=Gt*cr,Rr=-vt*nr,ri=Gt*Se,si=G(Ar*Ar+Rr*Rr-ri*ri),Mi=a(Ar*ri+Rr*si,Rr*ri-Ar*si),hn=(Gt>T?-1:1)*a(tt*nr,Gt*o(Mi)*cr+vt*x(Mi)*nr);return Ge.invert(hn,Mi)},lt}function fa(he){var Se=x(he),qe=o(he);return function(Ge,lt){var tt=o(lt),vt=o(Ge)*tt,Gt=x(Ge)*tt,nr=x(lt);return[a(Gt,vt*qe-nr*Se),F(nr*qe+vt*Se)]}}function kn(){var he=0,Se=t.geoProjectionMutator(Yo),qe=Se(he),Ge=qe.rotate,lt=qe.stream,tt=t.geoCircle();return qe.parallel=function(vt){if(!arguments.length)return he*P;var Gt=qe.rotate();return Se(he=vt*A).rotate(Gt)},qe.rotate=function(vt){return arguments.length?(Ge.call(qe,[vt[0],vt[1]-he*P]),tt.center([-vt[0],-vt[1]]),qe):(vt=Ge.call(qe),vt[1]+=he*P,vt)},qe.stream=function(vt){return vt=lt(vt),vt.sphere=function(){vt.polygonStart();var Gt=.01,nr=tt.radius(90-Gt)().coordinates[0],cr=nr.length-1,Ar=-1,Rr;for(vt.lineStart();++Ar=0;)vt.point((Rr=nr[Ar])[0],Rr[1]);vt.lineEnd(),vt.polygonEnd()},vt},qe.scale(79.4187).parallel(45).clipAngle(180-.001)}var Ta=3,ys=F(1-1/Ta)*P,uo=rr(0);function ls(he){var Se=ys*A,qe=ct(E,Se)[0]-ct(-E,Se)[0],Ge=uo(0,Se)[1],lt=ct(0,Se)[1],tt=S-lt,vt=m/he,Gt=4/m,nr=Ge+tt*tt*4/m;function cr(Ar,Rr){var ri,si=n(Rr);if(si>Se){var Mi=c(he-1,f(0,u((Ar+E)/vt)));Ar+=E*(he-1)/he-Mi*vt,ri=ct(Ar,si),ri[0]=ri[0]*m/qe-m*(he-1)/(2*he)+Mi*m/he,ri[1]=Ge+(ri[1]-lt)*4*tt/m,Rr<0&&(ri[1]=-ri[1])}else ri=uo(Ar,Rr);return ri[0]*=Gt,ri[1]/=nr,ri}return cr.invert=function(Ar,Rr){Ar/=Gt,Rr*=nr;var ri=n(Rr);if(ri>Ge){var si=c(he-1,f(0,u((Ar+E)/vt)));Ar=(Ar+E*(he-1)/he-si*vt)*qe/m;var Mi=ct.invert(Ar,.25*(ri-Ge)*m/tt+lt);return Mi[0]-=E*(he-1)/he-si*vt,Rr<0&&(Mi[1]=-Mi[1]),Mi}return uo.invert(Ar,Rr)},cr}function $a(he,Se){return[he,Se&1?90-v:ys]}function fo(he,Se){return[he,Se&1?-90+v:-ys]}function mn(he){return[he[0]*(1-v),he[1]]}function ra(he){var Se=[].concat(r.range(-180,180+he/2,he).map($a),r.range(180,-180-he/2,-he).map(fo));return{type:"Polygon",coordinates:[he===180?Se.map(mn):Se]}}function wa(){var he=4,Se=t.geoProjectionMutator(ls),qe=Se(he),Ge=qe.stream;return qe.lobes=function(lt){return arguments.length?Se(he=+lt):he},qe.stream=function(lt){var tt=qe.rotate(),vt=Ge(lt),Gt=(qe.rotate([0,0]),Ge(lt));return qe.rotate(tt),vt.sphere=function(){t.geoStream(ra(180/he),Gt)},vt},qe.scale(239.75)}function ws(he){var Se=1+he,qe=x(1/Se),Ge=F(qe),lt=2*G(E/(tt=E+4*Ge*Se)),tt,vt=.5*lt*(Se+G(he*(2+he))),Gt=he*he,nr=Se*Se;function cr(Ar,Rr){var ri=1-x(Rr),si,Mi;if(ri&&ri<2){var hn=T-Rr,Zn=25,Yn;do{var Ua=x(hn),Fo=o(hn),vl=Ge+a(Ua,Se-Fo),Us=1+nr-2*Se*Fo;hn-=Yn=(hn-Gt*Ge-Se*Ua+Us*vl-.5*ri*tt)/(2*Se*Ua*vl)}while(n(Yn)>k&&--Zn>0);si=lt*G(Us),Mi=Ar*vl/E}else si=lt*(he+ri),Mi=Ar*Ge/E;return[si*x(Mi),vt-si*o(Mi)]}return cr.invert=function(Ar,Rr){var ri=Ar*Ar+(Rr-=vt)*Rr,si=(1+nr-ri/(lt*lt))/(2*Se),Mi=U(si),hn=x(Mi),Zn=Ge+a(hn,Se-si);return[F(Ar/G(ri))*E/Zn,F(1-2*(Mi-Gt*Ge-Se*hn+(1+nr-2*Se*si)*Zn)/tt)]},cr}function Co(){var he=1,Se=t.geoProjectionMutator(ws),qe=Se(he);return qe.ratio=function(Ge){return arguments.length?Se(he=+Ge):he},qe.scale(167.774).center([0,18.67])}var Po=.7109889596207567,ji=.0528035274542;function gn(he,Se){return Se>-Po?(he=Bt(he,Se),he[1]+=ji,he):at(he,Se)}gn.invert=function(he,Se){return Se>-Po?Bt.invert(he,Se-ji):at.invert(he,Se)};function Ps(){return t.geoProjection(gn).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Ha(he,Se){return n(Se)>Po?(he=Bt(he,Se),he[1]-=Se>0?ji:-ji,he):at(he,Se)}Ha.invert=function(he,Se){return n(Se)>Po?Bt.invert(he,Se+(Se>0?ji:-ji)):at.invert(he,Se)};function Sn(){return t.geoProjection(Ha).scale(152.63)}function ao(he,Se,qe,Ge){var lt=G(4*E/(2*qe+(1+he-Se/2)*x(2*qe)+(he+Se)/2*x(4*qe)+Se/2*x(6*qe))),tt=G(Ge*x(qe)*G((1+he*o(2*qe)+Se*o(4*qe))/(1+he+Se))),vt=qe*nr(1);function Gt(Rr){return G(1+he*o(2*Rr)+Se*o(4*Rr))}function nr(Rr){var ri=Rr*qe;return(2*ri+(1+he-Se/2)*x(2*ri)+(he+Se)/2*x(4*ri)+Se/2*x(6*ri))/qe}function cr(Rr){return Gt(Rr)*x(Rr)}var Ar=function(Rr,ri){var si=qe*Nt(nr,vt*x(ri)/qe,ri/E);isNaN(si)&&(si=qe*p(ri));var Mi=lt*Gt(si);return[Mi*tt*Rr/E*o(si),Mi/tt*x(si)]};return Ar.invert=function(Rr,ri){var si=Nt(cr,ri*tt/lt);return[Rr*E/(o(si)*lt*tt*Gt(si)),F(qe*nr(si/qe)/vt)]},qe===0&&(lt=G(Ge/E),Ar=function(Rr,ri){return[Rr*lt,x(ri)/lt]},Ar.invert=function(Rr,ri){return[Rr/lt,F(ri*lt)]}),Ar}function Ba(){var he=1,Se=0,qe=45*A,Ge=2,lt=t.geoProjectionMutator(ao),tt=lt(he,Se,qe,Ge);return tt.a=function(vt){return arguments.length?lt(he=+vt,Se,qe,Ge):he},tt.b=function(vt){return arguments.length?lt(he,Se=+vt,qe,Ge):Se},tt.psiMax=function(vt){return arguments.length?lt(he,Se,qe=+vt*A,Ge):qe*P},tt.ratio=function(vt){return arguments.length?lt(he,Se,qe,Ge=+vt):Ge},tt.scale(180.739)}function Ko(he,Se,qe,Ge,lt,tt,vt,Gt,nr,cr,Ar){if(Ar.nanEncountered)return NaN;var Rr,ri,si,Mi,hn,Zn,Yn,Ua,Fo,vl;if(Rr=qe-Se,ri=he(Se+Rr*.25),si=he(qe-Rr*.25),isNaN(ri)){Ar.nanEncountered=!0;return}if(isNaN(si)){Ar.nanEncountered=!0;return}return Mi=Rr*(Ge+4*ri+lt)/12,hn=Rr*(lt+4*si+tt)/12,Zn=Mi+hn,vl=(Zn-vt)/15,cr>nr?(Ar.maxDepthCount++,Zn+vl):Math.abs(vl)>1;do nr[Zn]>si?hn=Zn:Mi=Zn,Zn=Mi+hn>>1;while(Zn>Mi);var Yn=nr[Zn+1]-nr[Zn];return Yn&&(Yn=(si-nr[Zn+1])/Yn),(Zn+1+Yn)/vt}var Rr=2*Ar(1)/E*tt/qe,ri=function(si,Mi){var hn=Ar(n(x(Mi))),Zn=Ge(hn)*si;return hn/=Rr,[Zn,Mi>=0?hn:-hn]};return ri.invert=function(si,Mi){var hn;return Mi*=Rr,n(Mi)<1&&(hn=p(Mi)*F(lt(n(Mi))*tt)),[si/Ge(n(Mi)),hn]},ri}function Sa(){var he=0,Se=2.5,qe=1.183136,Ge=t.geoProjectionMutator(Wi),lt=Ge(he,Se,qe);return lt.alpha=function(tt){return arguments.length?Ge(he=+tt,Se,qe):he},lt.k=function(tt){return arguments.length?Ge(he,Se=+tt,qe):Se},lt.gamma=function(tt){return arguments.length?Ge(he,Se,qe=+tt):qe},lt.scale(152.63)}function Qa(he,Se){return n(he[0]-Se[0])=0;--nr)qe=he[1][nr],Ge=qe[0][0],lt=qe[0][1],tt=qe[1][1],vt=qe[2][0],Gt=qe[2][1],Se.push(vn([[vt-v,Gt-v],[vt-v,tt+v],[Ge+v,tt+v],[Ge+v,lt-v]],30));return{type:"Polygon",coordinates:[r.merge(Se)]}}function la(he,Se,qe){var Ge,lt;function tt(nr,cr){for(var Ar=cr<0?-1:1,Rr=Se[+(cr<0)],ri=0,si=Rr.length-1;riRr[ri][2][0];++ri);var Mi=he(nr-Rr[ri][1][0],cr);return Mi[0]+=he(Rr[ri][1][0],Ar*cr>Ar*Rr[ri][0][1]?Rr[ri][0][1]:cr)[0],Mi}qe?tt.invert=qe(tt):he.invert&&(tt.invert=function(nr,cr){for(var Ar=lt[+(cr<0)],Rr=Se[+(cr<0)],ri=0,si=Ar.length;riMi&&(hn=si,si=Mi,Mi=hn),[[Rr,si],[ri,Mi]]})}),vt):Se.map(function(cr){return cr.map(function(Ar){return[[Ar[0][0]*P,Ar[0][1]*P],[Ar[1][0]*P,Ar[1][1]*P],[Ar[2][0]*P,Ar[2][1]*P]]})})},Se!=null&&vt.lobes(Se),vt}var vo=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function As(){return la(ot,vo).scale(160.857)}var ps=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function co(){return la(Ha,ps).scale(152.63)}var mo=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function No(){return la(Bt,mo).scale(169.529)}var jn=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Go(){return la(Bt,jn).scale(169.529).rotate([20,0])}var Ys=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function qs(){return la(gn,Ys,nt).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Ns=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function Oa(){return la(at,Ns).scale(152.63).rotate([-20,0])}function ha(he,Se){return[3/m*he*G(E*E/3-Se*Se),Se]}ha.invert=function(he,Se){return[m/3*he/G(E*E/3-Se*Se),Se]};function Vs(){return t.geoProjection(ha).scale(158.837)}function Ya(he){function Se(qe,Ge){if(n(n(Ge)-T)2)return null;qe/=2,Ge/=2;var tt=qe*qe,vt=Ge*Ge,Gt=2*Ge/(1+tt+vt);return Gt=h((1+Gt)/(1-Gt),1/he),[a(2*qe,1-tt-vt)/he,F((Gt-1)/(Gt+1))]},Se}function _n(){var he=.5,Se=t.geoProjectionMutator(Ya),qe=Se(he);return qe.spacing=function(Ge){return arguments.length?Se(he=+Ge):he},qe.scale(124.75)}var Vn=E/C;function wo(he,Se){return[he*(1+G(o(Se)))/2,Se/(o(Se/2)*o(he/6))]}wo.invert=function(he,Se){var qe=n(he),Ge=n(Se),lt=v,tt=T;Gev||n(Zn)>v)&&--lt>0);return lt&&[qe,Ge]};function un(){return t.geoProjection(Xn).scale(139.98)}function $n(he,Se){return[x(he)/o(Se),b(Se)*o(he)]}$n.invert=function(he,Se){var qe=he*he,Ge=Se*Se,lt=Ge+1,tt=qe+lt,vt=he?_*G((tt-G(tt*tt-4*qe))/qe):1/G(lt);return[F(he*vt),p(Se)*U(vt)]};function Ka(){return t.geoProjection($n).scale(144.049).clipAngle(90-.001)}function qn(he){var Se=o(he),qe=b(L+he/2);function Ge(lt,tt){var vt=tt-he,Gt=n(vt)=0;)Ar=he[cr],Rr=Ar[0]+Gt*(si=Rr)-nr*ri,ri=Ar[1]+Gt*ri+nr*si;return Rr=Gt*(si=Rr)-nr*ri,ri=Gt*ri+nr*si,[Rr,ri]}return qe.invert=function(Ge,lt){var tt=20,vt=Ge,Gt=lt;do{for(var nr=Se,cr=he[nr],Ar=cr[0],Rr=cr[1],ri=0,si=0,Mi;--nr>=0;)cr=he[nr],ri=Ar+vt*(Mi=ri)-Gt*si,si=Rr+vt*si+Gt*Mi,Ar=cr[0]+vt*(Mi=Ar)-Gt*Rr,Rr=cr[1]+vt*Rr+Gt*Mi;ri=Ar+vt*(Mi=ri)-Gt*si,si=Rr+vt*si+Gt*Mi,Ar=vt*(Mi=Ar)-Gt*Rr-Ge,Rr=vt*Rr+Gt*Mi-lt;var hn=ri*ri+si*si,Zn,Yn;vt-=Zn=(Ar*ri+Rr*si)/hn,Gt-=Yn=(Rr*ri-Ar*si)/hn}while(n(Zn)+n(Yn)>v*v&&--tt>0);if(tt){var Ua=G(vt*vt+Gt*Gt),Fo=2*i(Ua*.5),vl=x(Fo);return[a(vt*vl,Ua*o(Fo)),Ua?F(Gt*vl/Ua):0]}},qe}var sa=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],es=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Na=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],tn=[[.9245,0],[0,0],[.01943,0]],Pa=[[.721316,0],[0,0],[-.00881625,-.00617325]];function to(){return _a(sa,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function yo(){return _a(es,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Jo(){return _a(Na,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Ao(){return _a(tn,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Dn(){return _a(Pa,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function _a(he,Se){var qe=t.geoProjection(eo(he)).rotate(Se).clipAngle(90),Ge=t.geoRotation(Se),lt=qe.center;return delete qe.rotate,qe.center=function(tt){return arguments.length?lt(Ge(tt)):Ge.invert(lt())},qe}var Ws=G(6),Ca=G(7);function Es(he,Se){var qe=F(7*x(Se)/(3*Ws));return[Ws*he*(2*o(2*qe/3)-1)/Ca,9*x(qe/3)/Ca]}Es.invert=function(he,Se){var qe=3*F(Se*Ca/9);return[he*Ca/(Ws*(2*o(2*qe/3)-1)),F(x(qe)*3*Ws/7)]};function Ts(){return t.geoProjection(Es).scale(164.859)}function Ho(he,Se){for(var qe=(1+_)*x(Se),Ge=Se,lt=0,tt;lt<25&&(Ge-=tt=(x(Ge/2)+x(Ge)-qe)/(.5*o(Ge/2)+o(Ge)),!(n(tt)k&&--Ge>0);return tt=qe*qe,vt=tt*tt,Gt=tt*vt,[he/(.84719-.13063*tt+Gt*Gt*(-.04515+.05494*tt-.02326*vt+.00331*Gt)),qe]};function qa(){return t.geoProjection(Wo).scale(175.295)}function ln(he,Se){return[he*(1+o(Se))/2,2*(Se-b(Se/2))]}ln.invert=function(he,Se){for(var qe=Se/2,Ge=0,lt=1/0;Ge<10&&n(lt)>v;++Ge){var tt=o(Se/2);Se-=lt=(Se-b(Se/2)-qe)/(1-.5/(tt*tt))}return[2*he/(1+o(Se)),Se]};function Bo(){return t.geoProjection(ln).scale(152.63)}var ko=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function oo(){return la(Ke(1/0),ko).rotate([20,0]).scale(152.63)}function za(he,Se){var qe=x(Se),Ge=o(Se),lt=p(he);if(he===0||n(Se)===T)return[0,Se];if(Se===0)return[he,0];if(n(he)===T)return[he*Ge,T*qe];var tt=E/(2*he)-2*he/E,vt=2*Se/E,Gt=(1-vt*vt)/(qe-vt),nr=tt*tt,cr=Gt*Gt,Ar=1+nr/cr,Rr=1+cr/nr,ri=(tt*qe/Gt-tt/2)/Ar,si=(cr*qe/nr+Gt/2)/Rr,Mi=ri*ri+Ge*Ge/Ar,hn=si*si-(cr*qe*qe/nr+Gt*qe-1)/Rr;return[T*(ri+G(Mi)*lt),T*(si+G(hn<0?0:hn)*p(-Se*tt)*lt)]}za.invert=function(he,Se){he/=T,Se/=T;var qe=he*he,Ge=Se*Se,lt=qe+Ge,tt=E*E;return[he?(lt-1+G((1-lt)*(1-lt)+4*qe))/(2*he)*T:0,Nt(function(vt){return lt*(E*x(vt)-2*vt)*E+4*vt*vt*(Se-x(vt))+2*E*vt-tt*Se},0)]};function ea(){return t.geoProjection(za).scale(127.267)}var rs=1.0148,$s=.23185,us=-.14499,Ds=.02406,fl=rs,as=5*$s,Ma=7*us,Qs=9*Ds,ho=1.790857183;function gs(he,Se){var qe=Se*Se;return[he,Se*(rs+qe*qe*($s+qe*(us+Ds*qe)))]}gs.invert=function(he,Se){Se>ho?Se=ho:Se<-ho&&(Se=-ho);var qe=Se,Ge;do{var lt=qe*qe;qe-=Ge=(qe*(rs+lt*lt*($s+lt*(us+Ds*lt)))-Se)/(fl+lt*lt*(as+lt*(Ma+Qs*lt)))}while(n(Ge)>v);return[he,qe]};function Vo(){return t.geoProjection(gs).scale(139.319)}function Do(he,Se){if(n(Se)v&&--lt>0);return vt=b(Ge),[(n(Se)=0;)if(Ge=Se[Gt],qe[0]===Ge[0]&&qe[1]===Ge[1]){if(tt)return[tt,qe];tt=qe}}}function Aa(he){for(var Se=he.length,qe=[],Ge=he[Se-1],lt=0;lt0?[-Ge[0],0]:[180-Ge[0],180])};var Se=Ss.map(function(qe){return{face:qe,project:he(qe)}});return[-1,0,0,1,0,1,4,5].forEach(function(qe,Ge){var lt=Se[qe];lt&&(lt.children||(lt.children=[])).push(Se[Ge])}),Gs(Se[0],function(qe,Ge){return Se[qe<-E/2?Ge<0?6:4:qe<0?Ge<0?2:0:qeGe^si>Ge&&qe<(ri-cr)*(Ge-Ar)/(si-Ar)+cr&&(lt=!lt)}return lt}function Hs(he,Se){var qe=Se.stream,Ge;if(!qe)throw new Error("invalid projection");switch(he&&he.type){case"Feature":Ge=tl;break;case"FeatureCollection":Ge=Ro;break;default:Ge=hl;break}return Ge(he,qe)}function Ro(he,Se){return{type:"FeatureCollection",features:he.features.map(function(qe){return tl(qe,Se)})}}function tl(he,Se){return{type:"Feature",id:he.id,properties:he.properties,geometry:hl(he.geometry,Se)}}function Fs(he,Se){return{type:"GeometryCollection",geometries:he.geometries.map(function(qe){return hl(qe,Se)})}}function hl(he,Se){if(!he)return null;if(he.type==="GeometryCollection")return Fs(he,Se);var qe;switch(he.type){case"Point":qe=jo;break;case"MultiPoint":qe=jo;break;case"LineString":qe=Rs;break;case"MultiLineString":qe=Rs;break;case"Polygon":qe=Is;break;case"MultiPolygon":qe=Is;break;case"Sphere":qe=Is;break;default:return null}return t.geoStream(he,Se(qe)),qe.result()}var Fa=[],Ms=[],jo={point:function(he,Se){Fa.push([he,Se])},result:function(){var he=Fa.length?Fa.length<2?{type:"Point",coordinates:Fa[0]}:{type:"MultiPoint",coordinates:Fa}:null;return Fa=[],he}},Rs={lineStart:fs,point:function(he,Se){Fa.push([he,Se])},lineEnd:function(){Fa.length&&(Ms.push(Fa),Fa=[])},result:function(){var he=Ms.length?Ms.length<2?{type:"LineString",coordinates:Ms[0]}:{type:"MultiLineString",coordinates:Ms}:null;return Ms=[],he}},Is={polygonStart:fs,lineStart:fs,point:function(he,Se){Fa.push([he,Se])},lineEnd:function(){var he=Fa.length;if(he){do Fa.push(Fa[0].slice());while(++he<4);Ms.push(Fa),Fa=[]}},polygonEnd:fs,result:function(){if(!Ms.length)return null;var he=[],Se=[];return Ms.forEach(function(qe){cl(qe)?he.push([qe]):Se.push(qe)}),Se.forEach(function(qe){var Ge=qe[0];he.some(function(lt){if(el(lt[0],Ge))return lt.push(qe),!0})||he.push([qe])}),Ms=[],he.length?he.length>1?{type:"MultiPolygon",coordinates:he}:{type:"Polygon",coordinates:he[0]}:null}};function Bs(he){var Se=he(T,0)[0]-he(-T,0)[0];function qe(Ge,lt){var tt=n(Ge)0?Ge-E:Ge+E,lt),Gt=(vt[0]-vt[1])*_,nr=(vt[0]+vt[1])*_;if(tt)return[Gt,nr];var cr=Se*_,Ar=Gt>0^nr>0?-1:1;return[Ar*Gt-p(nr)*cr,Ar*nr-p(Gt)*cr]}return he.invert&&(qe.invert=function(Ge,lt){var tt=(Ge+lt)*_,vt=(lt-Ge)*_,Gt=n(tt)<.5*Se&&n(vt)<.5*Se;if(!Gt){var nr=Se*_,cr=tt>0^vt>0?-1:1,Ar=-cr*Ge+(vt>0?1:-1)*nr,Rr=-cr*lt+(tt>0?1:-1)*nr;tt=(-Ar-Rr)*_,vt=(Ar-Rr)*_}var ri=he.invert(tt,vt);return Gt||(ri[0]+=tt>0?E:-E),ri}),t.geoProjection(qe).rotate([-90,-90,45]).clipAngle(180-.001)}function Tt(){return Bs(ni).scale(176.423)}function Vt(){return Bs(ka).scale(111.48)}function wr(he,Se){if(!(0<=(Se=+Se)&&Se<=20))throw new Error("invalid digits");function qe(cr){var Ar=cr.length,Rr=2,ri=new Array(Ar);for(ri[0]=+cr[0].toFixed(Se),ri[1]=+cr[1].toFixed(Se);Rr2||si[0]!=Ar[0]||si[1]!=Ar[1])&&(Rr.push(si),Ar=si)}return Rr.length===1&&cr.length>1&&Rr.push(qe(cr[cr.length-1])),Rr}function tt(cr){return cr.map(lt)}function vt(cr){if(cr==null)return cr;var Ar;switch(cr.type){case"GeometryCollection":Ar={type:"GeometryCollection",geometries:cr.geometries.map(vt)};break;case"Point":Ar={type:"Point",coordinates:qe(cr.coordinates)};break;case"MultiPoint":Ar={type:cr.type,coordinates:Ge(cr.coordinates)};break;case"LineString":Ar={type:cr.type,coordinates:lt(cr.coordinates)};break;case"MultiLineString":case"Polygon":Ar={type:cr.type,coordinates:tt(cr.coordinates)};break;case"MultiPolygon":Ar={type:"MultiPolygon",coordinates:cr.coordinates.map(tt)};break;default:return cr}return cr.bbox!=null&&(Ar.bbox=cr.bbox),Ar}function Gt(cr){var Ar={type:"Feature",properties:cr.properties,geometry:vt(cr.geometry)};return cr.id!=null&&(Ar.id=cr.id),cr.bbox!=null&&(Ar.bbox=cr.bbox),Ar}if(he!=null)switch(he.type){case"Feature":return Gt(he);case"FeatureCollection":{var nr={type:"FeatureCollection",features:he.features.map(Gt)};return he.bbox!=null&&(nr.bbox=he.bbox),nr}default:return vt(he)}return he}function yr(he){var Se=x(he);function qe(Ge,lt){var tt=Se?b(Ge*Se/2)/Se:Ge/2;if(!lt)return[2*tt,-he];var vt=2*i(tt*x(lt)),Gt=1/b(lt);return[x(vt)*Gt,lt+(1-o(vt))*Gt-he]}return qe.invert=function(Ge,lt){if(n(lt+=he)v&&--Gt>0);var ri=Ge*(cr=b(vt)),si=b(n(lt)0?T:-T)*(nr+lt*(Ar-vt)/2+lt*lt*(Ar-2*nr+vt)/2)]}Ti.invert=function(he,Se){var qe=Se/T,Ge=qe*90,lt=c(18,n(Ge/5)),tt=f(0,u(lt));do{var vt=gi[tt][1],Gt=gi[tt+1][1],nr=gi[c(19,tt+2)][1],cr=nr-vt,Ar=nr-2*Gt+vt,Rr=2*(n(qe)-Gt)/cr,ri=Ar/cr,si=Rr*(1-ri*Rr*(1-2*ri*Rr));if(si>=0||tt===1){Ge=(Se>=0?5:-5)*(si+lt);var Mi=50,hn;do lt=c(18,n(Ge)/5),tt=u(lt),si=lt-tt,vt=gi[tt][1],Gt=gi[tt+1][1],nr=gi[c(19,tt+2)][1],Ge-=(hn=(Se>=0?T:-T)*(Gt+si*(nr-vt)/2+si*si*(nr-2*Gt+vt)/2)-Se)*P;while(n(hn)>k&&--Mi>0);break}}while(--tt>=0);var Zn=gi[tt][0],Yn=gi[tt+1][0],Ua=gi[c(19,tt+2)][0];return[he/(Yn+si*(Ua-Zn)/2+si*si*(Ua-2*Yn+Zn)/2),Ge*A]};function ki(){return t.geoProjection(Ti).scale(152.63)}function Ji(he){function Se(qe,Ge){var lt=o(Ge),tt=(he-1)/(he-lt*o(qe));return[tt*lt*x(qe),tt*x(Ge)]}return Se.invert=function(qe,Ge){var lt=qe*qe+Ge*Ge,tt=G(lt),vt=(he-G(1-lt*(he+1)/(he-1)))/((he-1)/tt+tt/(he-1));return[a(qe*vt,tt*G(1-vt*vt)),tt?F(Ge*vt/tt):0]},Se}function Fn(he,Se){var qe=Ji(he);if(!Se)return qe;var Ge=o(Se),lt=x(Se);function tt(vt,Gt){var nr=qe(vt,Gt),cr=nr[1],Ar=cr*lt/(he-1)+Ge;return[nr[0]*Ge/Ar,cr/Ar]}return tt.invert=function(vt,Gt){var nr=(he-1)/(he-1-Gt*lt);return qe.invert(nr*vt,nr*Gt*Ge)},tt}function Pi(){var he=2,Se=0,qe=t.geoProjectionMutator(Fn),Ge=qe(he,Se);return Ge.distance=function(lt){return arguments.length?qe(he=+lt,Se):he},Ge.tilt=function(lt){return arguments.length?qe(he,Se=lt*A):Se*P},Ge.scale(432.147).clipAngle(U(1/he)*P-1e-6)}var hi=1e-4,Li=1e4,Si=-180,Gn=Si+hi,ta=180,ya=ta-hi,ia=-90,pa=ia+hi,va=90,zn=va-hi;function is(he){return he.length>0}function Cs(he){return Math.floor(he*Li)/Li}function Ks(he){return he===ia||he===va?[0,he]:[Si,Cs(he)]}function dl(he){var Se=he[0],qe=he[1],Ge=!1;return Se<=Gn?(Se=Si,Ge=!0):Se>=ya&&(Se=ta,Ge=!0),qe<=pa?(qe=ia,Ge=!0):qe>=zn&&(qe=va,Ge=!0),Ge?[Se,qe]:he}function xl(he){return he.map(dl)}function Ol(he,Se,qe){for(var Ge=0,lt=he.length;Ge=ya||Ar<=pa||Ar>=zn){tt[vt]=dl(nr);for(var Rr=vt+1;RrGn&&sipa&&Mi=Gt)break;qe.push({index:-1,polygon:Se,ring:tt=tt.slice(Rr-1)}),tt[0]=Ks(tt[0][1]),vt=-1,Gt=tt.length}}}}function bl(he){var Se,qe=he.length,Ge={},lt={},tt,vt,Gt,nr,cr;for(Se=0;Se0?E-Gt:Gt)*P],cr=t.geoProjection(he(vt)).rotate(nr),Ar=t.geoRotation(nr),Rr=cr.center;return delete cr.rotate,cr.center=function(ri){return arguments.length?Rr(Ar(ri)):Ar.invert(Rr())},cr.clipAngle(90)}function cs(he){var Se=o(he);function qe(Ge,lt){var tt=t.geoGnomonicRaw(Ge,lt);return tt[0]*=Se,tt}return qe.invert=function(Ge,lt){return t.geoGnomonicRaw.invert(Ge/Se,lt)},qe}function sl(){return ll([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function ll(he,Se){return Js(cs,he,Se)}function il(he){if(!(he*=2))return t.geoAzimuthalEquidistantRaw;var Se=-he/2,qe=-Se,Ge=he*he,lt=b(qe),tt=.5/x(qe);function vt(Gt,nr){var cr=U(o(nr)*o(Gt-Se)),Ar=U(o(nr)*o(Gt-qe)),Rr=nr<0?-1:1;return cr*=cr,Ar*=Ar,[(cr-Ar)/(2*he),Rr*G(4*Ge*Ar-(Ge-cr+Ar)*(Ge-cr+Ar))/(2*he)]}return vt.invert=function(Gt,nr){var cr=nr*nr,Ar=o(G(cr+(ri=Gt+Se)*ri)),Rr=o(G(cr+(ri=Gt+qe)*ri)),ri,si;return[a(si=Ar-Rr,ri=(Ar+Rr)*lt),(nr<0?-1:1)*U(G(ri*ri+si*si)*tt)]},vt}function zl(){return Ml([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Ml(he,Se){return Js(il,he,Se)}function Rl(he,Se){if(n(Se)v&&--Gt>0);return[p(he)*(G(lt*lt+4)+lt)*E/4,T*vt]};function Ul(){return t.geoProjection(Gl).scale(127.16)}function le(he,Se,qe,Ge,lt){function tt(vt,Gt){var nr=qe*x(Ge*Gt),cr=G(1-nr*nr),Ar=G(2/(1+cr*o(vt*=lt)));return[he*cr*Ar*x(vt),Se*nr*Ar]}return tt.invert=function(vt,Gt){var nr=vt/he,cr=Gt/Se,Ar=G(nr*nr+cr*cr),Rr=2*F(Ar/2);return[a(vt*b(Rr),he*Ar)/lt,Ar&&F(Gt*x(Rr)/(Se*qe*Ar))/Ge]},tt}function w(he,Se,qe,Ge){var lt=E/3;he=f(he,v),Se=f(Se,v),he=c(he,T),Se=c(Se,E-v),qe=f(qe,0),qe=c(qe,100-v),Ge=f(Ge,v);var tt=qe/100+1,vt=Ge/100,Gt=U(tt*o(lt))/lt,nr=x(he)/x(Gt*T),cr=Se/E,Ar=G(vt*x(he/2)/x(Se/2)),Rr=Ar/G(cr*nr*Gt),ri=1/(Ar*G(cr*nr*Gt));return le(Rr,ri,nr,Gt,cr)}function q(){var he=65*A,Se=60*A,qe=20,Ge=200,lt=t.geoProjectionMutator(w),tt=lt(he,Se,qe,Ge);return tt.poleline=function(vt){return arguments.length?lt(he=+vt*A,Se,qe,Ge):he*P},tt.parallels=function(vt){return arguments.length?lt(he,Se=+vt*A,qe,Ge):Se*P},tt.inflation=function(vt){return arguments.length?lt(he,Se,qe=+vt,Ge):qe},tt.ratio=function(vt){return arguments.length?lt(he,Se,qe,Ge=+vt):Ge},tt.scale(163.775)}function Q(){return q().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var ee=4*E+3*G(3),ue=2*G(2*E*G(3)/ee),Ve=St(ue*G(3)/E,ue,ee/6);function et(){return t.geoProjection(Ve).scale(176.84)}function yt(he,Se){return[he*G(1-3*Se*Se/(E*E)),Se]}yt.invert=function(he,Se){return[he/G(1-3*Se*Se/(E*E)),Se]};function Dt(){return t.geoProjection(yt).scale(152.63)}function ir(he,Se){var qe=o(Se),Ge=o(he)*qe,lt=1-Ge,tt=o(he=a(x(he)*qe,-x(Se))),vt=x(he);return qe=G(1-Ge*Ge),[vt*qe-tt*lt,-tt*qe-vt*lt]}ir.invert=function(he,Se){var qe=(he*he+Se*Se)/-2,Ge=G(-qe*(2+qe)),lt=Se*qe+he*Ge,tt=he*qe-Se*Ge,vt=G(tt*tt+lt*lt);return[a(Ge*lt,vt*(1+qe)),vt?-F(Ge*tt/vt):0]};function or(){return t.geoProjection(ir).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function kr(he,Se){var qe=Pe(he,Se);return[(qe[0]+he/T)/2,(qe[1]+Se)/2]}kr.invert=function(he,Se){var qe=he,Ge=Se,lt=25;do{var tt=o(Ge),vt=x(Ge),Gt=x(2*Ge),nr=vt*vt,cr=tt*tt,Ar=x(qe),Rr=o(qe/2),ri=x(qe/2),si=ri*ri,Mi=1-cr*Rr*Rr,hn=Mi?U(tt*Rr)*G(Zn=1/Mi):Zn=0,Zn,Yn=.5*(2*hn*tt*ri+qe/T)-he,Ua=.5*(hn*vt+Ge)-Se,Fo=.5*Zn*(cr*si+hn*tt*Rr*nr)+.5/T,vl=Zn*(Ar*Gt/4-hn*vt*ri),Us=.125*Zn*(Gt*ri-hn*vt*cr*Ar),ml=.5*Zn*(nr*Rr+hn*si*tt)+.5,au=vl*Us-ml*Fo,Sl=(Ua*vl-Yn*ml)/au,Yl=(Yn*Us-Ua*Fo)/au;qe-=Sl,Ge-=Yl}while((n(Sl)>v||n(Yl)>v)&&--lt>0);return[qe,Ge]};function Vr(){return t.geoProjection(kr).scale(158.837)}e.geoNaturalEarth=t.geoNaturalEarth1,e.geoNaturalEarthRaw=t.geoNaturalEarth1Raw,e.geoAiry=be,e.geoAiryRaw=ae,e.geoAitoff=Ce,e.geoAitoffRaw=Pe,e.geoArmadillo=te,e.geoArmadilloRaw=de,e.geoAugust=Ee,e.geoAugustRaw=ke,e.geoBaker=me,e.geoBakerRaw=Fe,e.geoBerghaus=ce,e.geoBerghausRaw=Ne,e.geoBertin1953=kt,e.geoBertin1953Raw=Ye,e.geoBoggs=dt,e.geoBoggsRaw=ot,e.geoBonne=Qe,e.geoBonneRaw=rt,e.geoBottomley=Yt,e.geoBottomleyRaw=zt,e.geoBromley=mr,e.geoBromleyRaw=lr,e.geoChamberlin=De,e.geoChamberlinRaw=xe,e.geoChamberlinAfrica=Ie,e.geoCollignon=_e,e.geoCollignonRaw=ct,e.geoCraig=pe,e.geoCraigRaw=fe,e.geoCraster=Pt,e.geoCrasterRaw=It,e.geoCylindricalEqualArea=Wr,e.geoCylindricalEqualAreaRaw=rr,e.geoCylindricalStereographic=Er,e.geoCylindricalStereographicRaw=Nr,e.geoEckert1=mi,e.geoEckert1Raw=Br,e.geoEckert2=Ii,e.geoEckert2Raw=Di,e.geoEckert3=nn,e.geoEckert3Raw=Ci,e.geoEckert4=wi,e.geoEckert4Raw=ii,e.geoEckert5=Ft,e.geoEckert5Raw=Gi,e.geoEckert6=Ut,e.geoEckert6Raw=gt,e.geoEisenlohr=Lr,e.geoEisenlohrRaw=xr,e.geoFahey=Gr,e.geoFaheyRaw=Ir,e.geoFoucaut=yi,e.geoFoucautRaw=jr,e.geoFoucautSinusoidal=Vi,e.geoFoucautSinusoidalRaw=Ei,e.geoGilbert=Yr,e.geoGingery=rn,e.geoGingeryRaw=oi,e.geoGinzburg4=xn,e.geoGinzburg4Raw=Ri,e.geoGinzburg5=Xr,e.geoGinzburg5Raw=xi,e.geoGinzburg6=tr,e.geoGinzburg6Raw=ft,e.geoGinzburg8=gr,e.geoGinzburg8Raw=pr,e.geoGinzburg9=Ai,e.geoGinzburg9Raw=Zr,e.geoGringorten=Mn,e.geoGringortenRaw=ni,e.geoGuyou=Ia,e.geoGuyouRaw=ka,e.geoHammer=bt,e.geoHammerRaw=Ke,e.geoHammerRetroazimuthal=kn,e.geoHammerRetroazimuthalRaw=Yo,e.geoHealpix=wa,e.geoHealpixRaw=ls,e.geoHill=Co,e.geoHillRaw=ws,e.geoHomolosine=Sn,e.geoHomolosineRaw=Ha,e.geoHufnagel=Ba,e.geoHufnagelRaw=ao,e.geoHyperelliptical=Sa,e.geoHyperellipticalRaw=Wi,e.geoInterrupt=la,e.geoInterruptedBoggs=As,e.geoInterruptedHomolosine=co,e.geoInterruptedMollweide=No,e.geoInterruptedMollweideHemispheres=Go,e.geoInterruptedSinuMollweide=qs,e.geoInterruptedSinusoidal=Oa,e.geoKavrayskiy7=Vs,e.geoKavrayskiy7Raw=ha,e.geoLagrange=_n,e.geoLagrangeRaw=Ya,e.geoLarrivee=Ra,e.geoLarriveeRaw=wo,e.geoLaskowski=un,e.geoLaskowskiRaw=Xn,e.geoLittrow=Ka,e.geoLittrowRaw=$n,e.geoLoximuthal=Eo,e.geoLoximuthalRaw=qn,e.geoMiller=lo,e.geoMillerRaw=Ja,e.geoModifiedStereographic=_a,e.geoModifiedStereographicRaw=eo,e.geoModifiedStereographicAlaska=to,e.geoModifiedStereographicGs48=yo,e.geoModifiedStereographicGs50=Jo,e.geoModifiedStereographicMiller=Ao,e.geoModifiedStereographicLee=Dn,e.geoMollweide=Zt,e.geoMollweideRaw=Bt,e.geoMtFlatPolarParabolic=Ts,e.geoMtFlatPolarParabolicRaw=Es,e.geoMtFlatPolarQuartic=Wa,e.geoMtFlatPolarQuarticRaw=Ho,e.geoMtFlatPolarSinusoidal=ts,e.geoMtFlatPolarSinusoidalRaw=To,e.geoNaturalEarth2=qa,e.geoNaturalEarth2Raw=Wo,e.geoNellHammer=Bo,e.geoNellHammerRaw=ln,e.geoInterruptedQuarticAuthalic=oo,e.geoNicolosi=ea,e.geoNicolosiRaw=za,e.geoPatterson=Vo,e.geoPattersonRaw=gs,e.geoPolyconic=Lo,e.geoPolyconicRaw=Do,e.geoPolyhedral=Gs,e.geoPolyhedralButterfly=po,e.geoPolyhedralCollignon=qo,e.geoPolyhedralWaterman=zo,e.geoProject=Hs,e.geoGringortenQuincuncial=Tt,e.geoPeirceQuincuncial=Vt,e.geoPierceQuincuncial=Vt,e.geoQuantize=wr,e.geoQuincuncial=Bs,e.geoRectangularPolyconic=Fr,e.geoRectangularPolyconicRaw=yr,e.geoRobinson=ki,e.geoRobinsonRaw=Ti,e.geoSatellite=Pi,e.geoSatelliteRaw=Fn,e.geoSinuMollweide=Ps,e.geoSinuMollweideRaw=gn,e.geoSinusoidal=Xe,e.geoSinusoidalRaw=at,e.geoStitch=Vl,e.geoTimes=ns,e.geoTimesRaw=ja,e.geoTwoPointAzimuthal=ll,e.geoTwoPointAzimuthalRaw=cs,e.geoTwoPointAzimuthalUsa=sl,e.geoTwoPointEquidistant=Ml,e.geoTwoPointEquidistantRaw=il,e.geoTwoPointEquidistantUsa=zl,e.geoVanDerGrinten=Al,e.geoVanDerGrintenRaw=Rl,e.geoVanDerGrinten2=ms,e.geoVanDerGrinten2Raw=Ll,e.geoVanDerGrinten3=Xl,e.geoVanDerGrinten3Raw=Os,e.geoVanDerGrinten4=Ul,e.geoVanDerGrinten4Raw=Gl,e.geoWagner=q,e.geoWagner7=Q,e.geoWagnerRaw=w,e.geoWagner4=et,e.geoWagner4Raw=Ve,e.geoWagner6=Dt,e.geoWagner6Raw=yt,e.geoWiechel=or,e.geoWiechelRaw=ir,e.geoWinkel3=Vr,e.geoWinkel3Raw=kr,Object.defineProperty(e,"__esModule",{value:!0})})});var L6e=Te((Dyr,C6e)=>{"use strict";var od=Jl(),NZ=ei(),E8t=$l(),ZT=Math.PI/180,H2=180/Math.PI,VZ={cursor:"pointer"},GZ={cursor:"auto"};function k8t(e,t){var r=e.projection,n;return t._isScoped?n=C8t:t._isClipped?n=P8t:n=L8t,n(e,r)}C6e.exports=k8t;function HZ(e,t){return od.behavior.zoom().translate(t.translate()).scale(t.scale())}function WZ(e,t,r){var n=e.id,i=e.graphDiv,a=i.layout,o=a[n],s=i._fullLayout,u=s[n],l={},f={};function c(h,d){l[n+"."+h]=NZ.nestedProperty(o,h).get(),E8t.call("_storeDirectGUIEdit",a,s._preGUI,l);var p=NZ.nestedProperty(u,h);p.get()!==d&&(p.set(d),NZ.nestedProperty(o,h).set(d),f[n+"."+h]=d)}r(c),c("projection.scale",t.scale()/e.fitScale),c("fitbounds",!1),i.emit("plotly_relayout",f)}function C8t(e,t){var r=HZ(e,t);function n(){od.select(this).style(VZ)}function i(){t.scale(od.event.scale).translate(od.event.translate),e.render(!0);var s=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":s[0],"geo.center.lat":s[1]})}function a(s){var u=t.invert(e.midPt);s("center.lon",u[0]),s("center.lat",u[1])}function o(){od.select(this).style(GZ),WZ(e,t,a)}return r.on("zoomstart",n).on("zoom",i).on("zoomend",o),r}function L8t(e,t){var r=HZ(e,t),n=2,i,a,o,s,u,l,f,c,h;function d(E){return t.invert(E)}function p(E){var T=d(E);if(!T)return!0;var L=t(T);return Math.abs(L[0]-E[0])>n||Math.abs(L[1]-E[1])>n}function x(){od.select(this).style(VZ),i=od.mouse(this),a=t.rotate(),o=t.translate(),s=a,u=d(i)}function b(){if(l=od.mouse(this),p(i)){r.scale(t.scale()),r.translate(t.translate());return}t.scale(od.event.scale),t.translate([o[0],od.event.translate[1]]),u?d(l)&&(c=d(l),f=[s[0]+(c[0]-u[0]),a[1],a[2]],t.rotate(f),s=f):(i=l,u=d(i)),h=!0,e.render(!0);var E=t.rotate(),T=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":T[0],"geo.center.lat":T[1],"geo.projection.rotation.lon":-E[0]})}function v(){od.select(this).style(GZ),h&&WZ(e,t,k)}function k(E){var T=t.rotate(),L=t.invert(e.midPt);E("projection.rotation.lon",-T[0]),E("center.lon",L[0]),E("center.lat",L[1])}return r.on("zoomstart",x).on("zoom",b).on("zoomend",v),r}function P8t(e,t){var r={r:t.rotate(),k:t.scale()},n=HZ(e,t),i=q8t(n,"zoomstart","zoom","zoomend"),a=0,o=n.on,s;n.on("zoomstart",function(){od.select(this).style(VZ);var h=od.mouse(this),d=t.rotate(),p=d,x=t.translate(),b=z8t(d);s=EF(t,h),o.call(n,"zoom",function(){var v=od.mouse(this);if(t.scale(r.k=od.event.scale),!s)h=v,s=EF(t,h);else if(EF(t,v)){t.rotate(d).translate(x);var k=EF(t,v),E=R8t(s,k),T=F8t(I8t(b,E)),L=r.r=D8t(T,s,p);(!isFinite(L[0])||!isFinite(L[1])||!isFinite(L[2]))&&(L=p),t.rotate(L),p=L}l(i.of(this,arguments))}),u(i.of(this,arguments))}).on("zoomend",function(){od.select(this).style(GZ),o.call(n,"zoom",null),f(i.of(this,arguments)),WZ(e,t,c)}).on("zoom.redraw",function(){e.render(!0);var h=t.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function u(h){a++||h({type:"zoomstart"})}function l(h){h({type:"zoom"})}function f(h){--a||h({type:"zoomend"})}function c(h){var d=t.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return od.rebind(n,i,"on")}function EF(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&B8t(r)}function z8t(e){var t=.5*e[0]*ZT,r=.5*e[1]*ZT,n=.5*e[2]*ZT,i=Math.sin(t),a=Math.cos(t),o=Math.sin(r),s=Math.cos(r),u=Math.sin(n),l=Math.cos(n);return[a*s*l+i*o*u,i*s*l-a*o*u,a*o*l+i*s*u,a*s*u-i*o*l]}function I8t(e,t){var r=e[0],n=e[1],i=e[2],a=e[3],o=t[0],s=t[1],u=t[2],l=t[3];return[r*o-n*s-i*u-a*l,r*s+n*o+i*l-a*u,r*u-n*l+i*o+a*s,r*l+n*u-i*s+a*o]}function R8t(e,t){if(!(!e||!t)){var r=O8t(e,t),n=Math.sqrt(k6e(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,k6e(e,t)))),a=Math.sin(i)/n;return n&&[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function D8t(e,t,r){var n=UZ(t,2,e[0]);n=UZ(n,1,e[1]),n=UZ(n,0,e[2]-r[2]);var i=t[0],a=t[1],o=t[2],s=n[0],u=n[1],l=n[2],f=Math.atan2(a,i)*H2,c=Math.sqrt(i*i+a*a),h,d;Math.abs(u)>c?(d=(u>0?90:-90)-f,h=0):(d=Math.asin(u/c)*H2-f,h=Math.sqrt(c*c-u*u));var p=180-d-2*f,x=(Math.atan2(l,s)-Math.atan2(o,h))*H2,b=(Math.atan2(l,s)-Math.atan2(o,-h))*H2,v=M6e(r[0],r[1],d,x),k=M6e(r[0],r[1],p,b);return v<=k?[d,x,r[2]]:[p,b,r[2]]}function M6e(e,t,r,n){var i=E6e(r-e),a=E6e(n-t);return Math.sqrt(i*i+a*a)}function E6e(e){return(e%360+540)%360-180}function UZ(e,t,r){var n=r*ZT,i=e.slice(),a=t===0?1:0,o=t===2?1:2,s=Math.cos(n),u=Math.sin(n);return i[a]=e[a]*s-e[o]*u,i[o]=e[o]*s+e[a]*u,i}function F8t(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*H2,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*H2,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*H2]}function B8t(e){var t=e[0]*ZT,r=e[1]*ZT,n=Math.cos(r);return[n*Math.cos(t),n*Math.sin(t),Math.sin(r)]}function k6e(e,t){for(var r=0,n=0,i=e.length;n{"use strict";var t1=Jl(),ZZ=qZ(),N8t=ZZ.geoPath,U8t=ZZ.geoDistance,V8t=S6e(),G8t=$l(),rk=ei(),H8t=rk.strTranslate,kF=jl(),tk=Mu(),P6e=jc(),W8t=Cc(),XZ=wu(),z6e=wm().getAutoRange,jZ=gp(),j8t=nh().prepSelect,X8t=nh().clearOutline,Z8t=nh().selectOnClick,Y8t=L6e(),fv=J4(),K8t=nx(),R6e=hF(),J8t=TZ().feature;function D6e(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var $m=D6e.prototype;F6e.exports=function(t){return new D6e(t)};$m.plot=function(e,t,r,n){var i=this;if(n)return i.update(e,t,!0);i._geoCalcData=e,i._fullLayout=t;var a=t[this.id],o=[],s=!1;for(var u in fv.layerNameToAdjective)if(u!=="frame"&&a["show"+u]){s=!0;break}for(var l=!1,f=0;f0&&o._module.calcGeoJSON(a,t)}if(!r){var s=this.updateProjection(e,t);if(s)return;(!this.viewInitial||this.scope!==n.scope)&&this.saveViewInitial(n)}this.scope=n.scope,this.updateBaseLayers(t,n),this.updateDims(t,n),this.updateFx(t,n),W8t.generalUpdatePerTraceModule(this.graphDiv,this,e,n);var u=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=u.selectAll(".point"),this.dataPoints.text=u.selectAll("text"),this.dataPaths.line=u.selectAll(".js-line");var l=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=l.selectAll("path"),this._render()};$m.updateProjection=function(e,t){var r=this.graphDiv,n=t[this.id],i=t._size,a=n.domain,o=n.projection,s=n.lonaxis,u=n.lataxis,l=s._ax,f=u._ax,c=this.projection=$8t(n),h=[[i.l+i.w*a.x[0],i.t+i.h*(1-a.y[1])],[i.l+i.w*a.x[1],i.t+i.h*(1-a.y[0])]],d=n.center||{},p=o.rotation||{},x=s.range||[],b=u.range||[];if(n.fitbounds){l._length=h[1][0]-h[0][0],f._length=h[1][1]-h[0][1],l.range=z6e(r,l),f.range=z6e(r,f);var v=(l.range[0]+l.range[1])/2,k=(f.range[0]+f.range[1])/2;if(n._isScoped)d={lon:v,lat:k};else if(n._isClipped){d={lon:v,lat:k},p={lon:v,lat:k,roll:p.roll};var E=o.type,T=fv.lonaxisSpan[E]/2||180,L=fv.lataxisSpan[E]/2||90;x=[v-T,v+T],b=[k-L,k+L]}else d={lon:v,lat:k},p={lon:v,lat:p.lat,roll:p.roll}}c.center([d.lon-p.lon,d.lat-p.lat]).rotate([-p.lon,-p.lat,p.roll]).parallels(o.parallels);var _=I6e(x,b);c.fitExtent(h,_);var C=this.bounds=c.getBounds(_),S=this.fitScale=c.scale(),m=c.translate();if(n.fitbounds){var P=c.getBounds(I6e(l.range,f.range)),A=Math.min((C[1][0]-C[0][0])/(P[1][0]-P[0][0]),(C[1][1]-C[0][1])/(P[1][1]-P[0][1]));isFinite(A)?c.scale(A*S):rk.warn("Something went wrong during"+this.id+"fitbounds computations.")}else c.scale(o.scale*S);var B=this.midPt=[(C[0][0]+C[1][0])/2,(C[0][1]+C[1][1])/2];if(c.translate([m[0]+(B[0]-m[0]),m[1]+(B[1]-m[1])]).clipExtent(C),n._isAlbersUsa){var F=c([d.lon,d.lat]),U=c.translate();c.translate([U[0]-(F[0]-U[0]),U[1]-(F[1]-U[1])])}};$m.updateBaseLayers=function(e,t){var r=this,n=r.topojson,i=r.layers,a=r.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function s(h){return!!fv.lineLayers[h]}function u(h){return!!fv.fillLayers[h]}var l=this.hasChoropleth?fv.layersForChoropleth:fv.layers,f=l.filter(function(h){return s(h)||u(h)?t["show"+h]:o(h)?t[h].showgrid:!0}),c=r.framework.selectAll(".layer").data(f,String);c.exit().each(function(h){delete i[h],delete a[h],t1.select(this).remove()}),c.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=i[h]=t1.select(this);h==="bg"?r.bgRect=d.append("rect").style("pointer-events","all"):o(h)?a[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):s(h)?a[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):u(h)&&(a[h]=d.append("path").style("stroke","none"))}),c.order(),c.each(function(h){var d=a[h],p=fv.layerNameToAdjective[h];h==="frame"?d.datum(fv.sphereSVG):s(h)||u(h)?d.datum(J8t(n,n.objects[h])):o(h)&&d.datum(Q8t(h,t,e)).call(kF.stroke,t[h].gridcolor).call(tk.dashLine,t[h].griddash,t[h].gridwidth),s(h)?d.call(kF.stroke,t[p+"color"]).call(tk.dashLine,"",t[p+"width"]):u(h)&&d.call(kF.fill,t[p+"color"])})};$m.updateDims=function(e,t){var r=this.bounds,n=(t.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,s=r[1][1]-a+n;tk.setRect(this.clipRect,i,a,o,s),this.bgRect.call(tk.setRect,i,a,o,s).call(kF.fill,t.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s};$m.updateFx=function(e,t){var r=this,n=r.graphDiv,i=r.bgRect,a=e.dragmode,o=e.clickmode;if(r.isStatic)return;function s(){var c=r.viewInitial,h={};for(var d in c)h[r.id+"."+d]=c[d];G8t.call("_guiRelayout",n,h),n.emit("plotly_doubleclick",null)}function u(c){return r.projection.invert([c[0]+r.xaxis._offset,c[1]+r.yaxis._offset])}var l=function(c,h){if(h.isRect){var d=c.range={};d[r.id]=[u([h.xmin,h.ymin]),u([h.xmax,h.ymax])]}else{var p=c.lassoPoints={};p[r.id]=h.map(u)}},f={element:r.bgRect.node(),gd:n,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:l},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(c){c===2&&X8t(n)}};a==="pan"?(i.node().onmousedown=null,i.call(Y8t(r,t)),i.on("dblclick.zoom",s),n._context._scrollZoom.geo||i.on("wheel.zoom",null)):(a==="select"||a==="lasso")&&(i.on(".zoom",null),f.prepFn=function(c,h,d){j8t(c,h,d,f,a)},jZ.init(f)),i.on("mousemove",function(){var c=r.projection.invert(rk.getPositionFromD3Event());if(!c)return jZ.unhover(n,t1.event);r.xaxis.p2c=function(){return c[0]},r.yaxis.p2c=function(){return c[1]},P6e.hover(n,t1.event,r.id)}),i.on("mouseout",function(){n._dragging||jZ.unhover(n,t1.event)}),i.on("click",function(){a!=="select"&&a!=="lasso"&&(o.indexOf("select")>-1&&Z8t(t1.event,n,[r.xaxis],[r.yaxis],r.id,f),o.indexOf("event")>-1&&P6e.click(n,t1.event))})};$m.makeFramework=function(){var e=this,t=e.graphDiv,r=t._fullLayout,n="clip"+r._uid+e.id;e.clipDef=r._clips.append("clipPath").attr("id",n),e.clipRect=e.clipDef.append("rect"),e.framework=t1.select(e.container).append("g").attr("class","geo "+e.id).call(tk.setClipUrl,n,t),e.project=function(i){var a=e.projection(i);return a?[a[0]-e.xaxis._offset,a[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(i){return e.project(i)[0]}},e.yaxis={_id:"y",c2p:function(i){return e.project(i)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},XZ.setConvert(e.mockAxis,r)};$m.saveViewInitial=function(e){var t=e.center||{},r=e.projection,n=r.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":r.scale};var i;e._isScoped?i={"center.lon":t.lon,"center.lat":t.lat}:e._isClipped?i={"projection.rotation.lon":n.lon,"projection.rotation.lat":n.lat}:i={"center.lon":t.lon,"center.lat":t.lat,"projection.rotation.lon":n.lon},rk.extendFlat(this.viewInitial,i)};$m.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};$m._render=function(){var e=this.projection,t=e.getPath(),r;function n(a){var o=e(a.lonlat);return o?H8t(o[0],o[1]):null}function i(a){return e.isLonLatOverEdges(a.lonlat)?"none":null}for(r in this.basePaths)this.basePaths[r].attr("d",t);for(r in this.dataPaths)this.dataPaths[r].attr("d",function(a){return t(a.geojson)});for(r in this.dataPoints)this.dataPoints[r].attr("display",i).attr("transform",n)};function $8t(e){var t=e.projection,r=t.type,n=fv.projNames[r];n="geo"+rk.titleCase(n);for(var i=ZZ[n]||V8t[n],a=i(),o=e._isSatellite?Math.acos(1/t.distance)*180/Math.PI:e._isClipped?fv.lonaxisSpan[r]/2:null,s=["center","rotate","parallels","clipExtent"],u=function(c){return c?a:[]},l=0;lp}else return!1},a.getPath=function(){return N8t().projection(a)},a.getBounds=function(c){return a.getPath().bounds(c)},a.precision(fv.precision),e._isSatellite&&a.tilt(t.tilt).distance(t.distance),o&&a.clipAngle(o-fv.clipPad),a}function Q8t(e,t,r){var n=1e-6,i=2.5,a=t[e],o=fv.scopeDefaults[t.scope],s,u,l;e==="lonaxis"?(s=o.lonaxisRange,u=o.lataxisRange,l=function(k,E){return[k,E]}):e==="lataxis"&&(s=o.lataxisRange,u=o.lonaxisRange,l=function(k,E){return[E,k]});var f={type:"linear",range:[s[0],s[1]-n],tick0:a.tick0,dtick:a.dtick};XZ.setConvert(f,r);var c=XZ.calcTicks(f);!t.isScoped&&e==="lonaxis"&&c.pop();for(var h=c.length,d=new Array(h),p=0;p0&&i<0&&(i+=360);var s=(i-n)/4;return{type:"Polygon",coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}});var YZ=Te((Byr,N6e)=>{"use strict";var KT=Ih(),eBt=zc().attributes,tBt=Id().dash,YT=J4(),rBt=Sc().overrideAll,O6e=Y1(),q6e={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:KT.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:tBt},iBt=N6e.exports=rBt({domain:eBt({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:O6e(YT.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:O6e(YT.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:KT.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:YT.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:YT.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:YT.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:YT.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:KT.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:KT.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:KT.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:KT.background},lonaxis:q6e,lataxis:q6e},"plot","from-root");iBt.uirevision={valType:"any",editType:"none"}});var G6e=Te((Oyr,V6e)=>{"use strict";var CF=ei(),nBt=C_(),aBt=Rd().getSubplotData,LF=J4(),oBt=YZ(),U6e=LF.axesNames;V6e.exports=function(t,r,n){nBt(t,r,n,{type:"geo",attributes:oBt,handleDefaults:sBt,fullData:n,partition:"y"})};function sBt(e,t,r,n){var i=aBt(n.fullData,"geo",n.id),a=i.map(function(ae){return ae.index}),o=r("resolution"),s=r("scope"),u=LF.scopeDefaults[s],l=r("projection.type",u.projType),f=t._isAlbersUsa=l==="albers usa";f&&(s=t.scope="usa");var c=t._isScoped=s!=="world",h=t._isSatellite=l==="satellite",d=t._isConic=l.indexOf("conic")!==-1||l==="albers",p=t._isClipped=!!LF.lonaxisSpan[l];if(e.visible===!1){var x=CF.extendDeep({},t._template);x.showcoastlines=!1,x.showcountries=!1,x.showframe=!1,x.showlakes=!1,x.showland=!1,x.showocean=!1,x.showrivers=!1,x.showsubunits=!1,x.lonaxis&&(x.lonaxis.showgrid=!1),x.lataxis&&(x.lataxis.showgrid=!1),t._template=x}for(var b=r("visible"),v,k=0;k0&&F<0&&(F+=360);var U=(B+F)/2,G;if(!f){var j=c?u.projRotate:[U,0,0];G=r("projection.rotation.lon",j[0]),r("projection.rotation.lat",j[1]),r("projection.rotation.roll",j[2]),v=r("showcoastlines",!c&&b),v&&(r("coastlinecolor"),r("coastlinewidth")),v=r("showocean",b?void 0:!1),v&&r("oceancolor")}var H,N;if(f?(H=-96.6,N=38.7):(H=c?U:G,N=(A[0]+A[1])/2),r("center.lon",H),r("center.lat",N),h&&(r("projection.tilt"),r("projection.distance")),d){var W=u.projParallels||[0,60];r("projection.parallels",W)}r("projection.scale"),v=r("showland",b?void 0:!1),v&&r("landcolor"),v=r("showlakes",b?void 0:!1),v&&r("lakecolor"),v=r("showrivers",b?void 0:!1),v&&(r("rivercolor"),r("riverwidth")),v=r("showcountries",c&&s!=="usa"&&b),v&&(r("countrycolor"),r("countrywidth")),(s==="usa"||s==="north america"&&o===50)&&(r("showsubunits",b),r("subunitcolor"),r("subunitwidth")),c||(v=r("showframe",b),v&&(r("framecolor"),r("framewidth"))),r("bgcolor");var re=r("fitbounds");re&&(delete t.projection.scale,c?(delete t.center.lon,delete t.center.lat):p?(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon,delete t.projection.rotation.lat,delete t.lonaxis.range,delete t.lataxis.range):(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon))}});var KZ=Te((qyr,j6e)=>{"use strict";var lBt=Rd().getSubplotCalcData,uBt=ei().counterRegex,fBt=B6e(),jy="geo",H6e=uBt(jy),W6e={};W6e[jy]={valType:"subplotid",dflt:jy,editType:"calc"};function cBt(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[jy],i=0;i{"use strict";X6e.exports={attributes:G2(),supplyDefaults:kDe(),colorbar:ep(),formatLabels:PDe(),calc:fF(),calcGeoJSON:OZ().calcGeoJSON,plot:OZ().plot,style:RZ(),styleOnSelect:av().styleOnSelect,hoverPoints:m6e(),eventData:g6e(),selectPoints:b6e(),moduleType:"trace",name:"scattergeo",basePlotModule:KZ(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var K6e=Te((Uyr,Y6e)=>{"use strict";Y6e.exports=Z6e()});var JT=Te((Vyr,Q6e)=>{"use strict";var pBt=Hu().hovertemplateAttrs,ox=G2(),vBt=nc(),J6e=Vf(),mBt=Ih().defaultLine,ax=Su().extendFlat,$6e=ox.marker.line;Q6e.exports=ax({locations:{valType:"data_array",editType:"calc"},locationmode:ox.locationmode,z:{valType:"data_array",editType:"calc"},geojson:ax({},ox.geojson,{}),featureidkey:ox.featureidkey,text:ax({},ox.text,{}),hovertext:ax({},ox.hovertext,{}),marker:{line:{color:ax({},$6e.color,{dflt:mBt}),width:ax({},$6e.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:ox.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:ox.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:ax({},J6e.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:pBt(),showlegend:ax({},J6e.showlegend,{dflt:!1})},vBt("",{cLetter:"z",editTypeOverride:"calc"}))});var tFe=Te((Gyr,eFe)=>{"use strict";var PF=ei(),yBt=ed(),gBt=JT();eFe.exports=function(t,r,n,i){function a(h,d){return PF.coerce(t,r,gBt,h,d)}var o=a("locations"),s=a("z");if(!(o&&o.length&&PF.isArrayOrTypedArray(s)&&s.length)){r.visible=!1;return}r._length=Math.min(o.length,s.length);var u=a("geojson"),l;(typeof u=="string"&&u!==""||PF.isPlainObject(u))&&(l="geojson-id");var f=a("locationmode",l);f==="geojson-id"&&a("featureidkey"),a("text"),a("hovertext"),a("hovertemplate");var c=a("marker.line.width");c&&a("marker.line.color"),a("marker.opacity"),yBt(t,r,i,a,{prefix:"",cLetter:"z"}),PF.coerceSelectionMarkerOpacity(r,a)}});var zF=Te((Hyr,nFe)=>{"use strict";var rFe=ku(),_Bt=nf().BADNUM,xBt=Dp(),bBt=ky(),wBt=F0();function iFe(e){return e&&typeof e=="string"}nFe.exports=function(t,r){var n=r._length,i=new Array(n),a;r.geojson?a=function(f){return iFe(f)||rFe(f)}:a=iFe;for(var o=0;o{"use strict";var ABt=Jl(),TBt=jl(),JZ=Mu(),SBt=_c();function MBt(e,t){t&&aFe(e,t)}function aFe(e,t){var r=t[0].trace,n=t[0].node3,i=n.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=SBt.makeColorScaleFuncFromTrace(r);i.each(function(u){ABt.select(this).attr("fill",s(u.z)).call(TBt.stroke,u.mlc||o.color).call(JZ.dashLine,"",u.mlw||o.width||0).style("opacity",a.opacity)}),JZ.selectedPointStyle(i,r)}function EBt(e,t){var r=t[0].node3,n=t[0].trace;n.selectedpoints?JZ.selectedPointStyle(r.selectAll(".choroplethlocation"),n):aFe(e,t)}oFe.exports={style:MBt,styleOnSelect:EBt}});var $Z=Te((jyr,uFe)=>{"use strict";var kBt=Jl(),sFe=ei(),$T=nx(),CBt=hF().getTopojsonFeatures,lFe=wm().findExtremes,LBt=IF().style;function PBt(e,t,r){var n=t.layers.backplot.select(".choroplethlayer");sFe.makeTraceGroups(n,r,"trace choropleth").each(function(i){var a=kBt.select(this),o=a.selectAll("path.choroplethlocation").data(sFe.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),LBt(e,i)})}function zBt(e,t){for(var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r.locationmode,o=r._length,s=a==="geojson-id"?$T.extractTraceFeature(e):CBt(r,i.topojson),u=[],l=[],f=0;f{"use strict";var IBt=wu(),RBt=JT(),DBt=ei().fillText;fFe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s,u,l,f,c=[r,n],h=[r+360,n];for(u=0;u")}}});var DF=Te((Zyr,cFe)=>{"use strict";cFe.exports=function(t,r,n,i,a){t.location=r.location,t.z=r.z;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t.ct=o.ct,t}});var FF=Te((Yyr,hFe)=>{"use strict";hFe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,u,l,f,c;if(r===!1)for(s=0;s{"use strict";dFe.exports={attributes:JT(),supplyDefaults:tFe(),colorbar:M_(),calc:zF(),calcGeoJSON:$Z().calcGeoJSON,plot:$Z().plot,style:IF().style,styleOnSelect:IF().styleOnSelect,hoverPoints:RF(),eventData:DF(),selectPoints:FF(),moduleType:"trace",name:"choropleth",basePlotModule:KZ(),categories:["geo","noOpacity","showLegend"],meta:{}}});var mFe=Te((Jyr,vFe)=>{"use strict";vFe.exports=pFe()});var BF=Te(($yr,gFe)=>{"use strict";var BBt=$l(),s0=ei(),OBt=oA();function qBt(e,t,r,n){var i=e.cd,a=i[0].t,o=i[0].trace,s=e.xa,u=e.ya,l=a.x,f=a.y,c=s.c2p(t),h=u.c2p(r),d=e.distance,p;if(a.tree){var x=s.p2c(c-d),b=s.p2c(c+d),v=u.p2c(h-d),k=u.p2c(h+d);n==="x"?p=a.tree.range(Math.min(x,b),Math.min(u._rl[0],u._rl[1]),Math.max(x,b),Math.max(u._rl[0],u._rl[1])):p=a.tree.range(Math.min(x,b),Math.min(v,k),Math.max(x,b),Math.max(v,k))}else p=a.ids;var E,T,L,_,C,S,m,P,A,B=d;if(n==="x"){var F=!!o.xperiodalignment,U=!!o.yperiodalignment;for(C=0;C=Math.min(G,j)&&c<=Math.max(G,j)?0:1/0}if(S=Math.min(H,N)&&h<=Math.max(H,N)?0:1/0}A=Math.sqrt(S*S+m*m),T=p[C]}}}else for(C=p.length-1;C>-1;C--)E=p[C],L=l[E],_=f[E],S=s.c2p(L)-c,m=u.c2p(_)-h,P=Math.sqrt(S*S+m*m),P{"use strict";var _Fe=20;xFe.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:_Fe,SYMBOL_STROKE:_Fe/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}});var ik=Te((egr,TFe)=>{"use strict";var NBt=Vf(),UBt=gc(),VBt=Em(),oh=Xc(),bFe=Hc().axisHoverFormat,wFe=nc(),GBt=Y1(),QZ=Su().extendFlat,HBt=Sc().overrideAll,WBt=sx().DASHES,AFe=oh.line,r1=oh.marker,jBt=r1.line,QT=TFe.exports=HBt({x:oh.x,x0:oh.x0,dx:oh.dx,y:oh.y,y0:oh.y0,dy:oh.dy,xperiod:oh.xperiod,yperiod:oh.yperiod,xperiod0:oh.xperiod0,yperiod0:oh.yperiod0,xperiodalignment:oh.xperiodalignment,yperiodalignment:oh.yperiodalignment,xhoverformat:bFe("x"),yhoverformat:bFe("y"),text:oh.text,hovertext:oh.hovertext,textposition:oh.textposition,textfont:UBt({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:AFe.color,width:AFe.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:GBt(WBt),dflt:"solid"}},marker:QZ({},wFe("marker"),{symbol:r1.symbol,angle:r1.angle,size:r1.size,sizeref:r1.sizeref,sizemin:r1.sizemin,sizemode:r1.sizemode,opacity:r1.opacity,colorbar:r1.colorbar,line:QZ({},wFe("marker.line"),{width:jBt.width})}),connectgaps:oh.connectgaps,fill:QZ({},oh.fill,{dflt:"none"}),fillcolor:VBt(),selected:{marker:oh.selected.marker,textfont:oh.selected.textfont},unselected:{marker:oh.unselected.marker,textfont:oh.unselected.textfont},opacity:NBt.opacity},"calc","nested");QT.x.editType=QT.y.editType=QT.x0.editType=QT.y0.editType="calc+clearAxisTypes";QT.hovertemplate=oh.hovertemplate;QT.texttemplate=oh.texttemplate});var OF=Te(eY=>{"use strict";var SFe=sx();eY.isOpenSymbol=function(e){return typeof e=="string"?SFe.OPEN_RE.test(e):e%200>100};eY.isDotSymbol=function(e){return typeof e=="string"?SFe.DOT_RE.test(e):e>200}});var kFe=Te((rgr,EFe)=>{"use strict";var MFe=ei(),XBt=$l(),ZBt=OF(),YBt=ik(),KBt=Sy(),qF=lc(),JBt=K3(),$Bt=Pm(),QBt=$v(),eOt=I0(),tOt=zm(),rOt=R0();EFe.exports=function(t,r,n,i){function a(d,p){return MFe.coerce(t,r,YBt,d,p)}var o=t.marker?ZBt.isOpenSymbol(t.marker.symbol):!1,s=qF.isBubble(t),u=JBt(t,r,i,a);if(!u){r.visible=!1;return}$Bt(t,r,i,a),a("xhoverformat"),a("yhoverformat");var l=u{"use strict";var iOt=eI();CFe.exports=function(t,r,n){var i=t.i;return"x"in t||(t.x=r._x[i]),"y"in t||(t.y=r._y[i]),iOt(t,r,n)}});var zFe=Te((ngr,PFe)=>{"use strict";function nOt(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u>=0?(a=o,i=o-1):n=o+1}return a}function aOt(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u>0?(a=o,i=o-1):n=o+1}return a}function oOt(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u<0?(a=o,n=o+1):i=o-1}return a}function sOt(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u<=0?(a=o,n=o+1):i=o-1}return a}function lOt(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],s=r!==void 0?r(o,t):o-t;if(s===0)return a;s<=0?n=a+1:i=a-1}return-1}function nk(e,t,r,n,i,a){return typeof r=="function"?a(e,t,r,n===void 0?0:n|0,i===void 0?e.length-1:i|0):a(e,t,void 0,r===void 0?0:r|0,n===void 0?e.length-1:n|0)}PFe.exports={ge:function(e,t,r,n,i){return nk(e,t,r,n,i,nOt)},gt:function(e,t,r,n,i){return nk(e,t,r,n,i,aOt)},lt:function(e,t,r,n,i){return nk(e,t,r,n,i,oOt)},le:function(e,t,r,n,i){return nk(e,t,r,n,i,sOt)},eq:function(e,t,r,n,i){return nk(e,t,r,n,i,lOt)}}});var Xy=Te((agr,RFe)=>{"use strict";RFe.exports=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=IFe(r)),Array.isArray(r)){var s={};for(o=0;o{"use strict";var uOt=Xy();DFe.exports=fOt;function fOt(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=uOt(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}});var W2=Te((sgr,FFe)=>{"use strict";FFe.exports=cOt;function cOt(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;ni&&(i=e[o]),e[o]{BFe.exports=function(){for(var e=0;e{var qFe=W6();NFe.exports=hOt;function hOt(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,o,s,u;(!t||typeof t=="string")&&(t=new(qFe(t||"float32"))(i+r));var l=t.length-r;if(i!==l)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+l);for(a=0,s=r;a{"use strict";UFe.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var HFe=Te((cgr,GFe)=>{"use strict";GFe.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var JFe=Te((hgr,KFe)=>{"use strict";var WFe=zFe(),jFe=H4(),dOt=eS(),pOt=W2(),XFe=Xy(),rY=OFe(),vOt=j2(),mOt=VFe(),yOt=W6(),ZFe=HFe(),gOt=1073741824;KFe.exports=function(t,r){r||(r={}),t=vOt(t,"float64"),r=XFe(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=rY(r.maxDepth,255),i=rY(r.bounds,pOt(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=YFe(t,i),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(yOt(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let v=0;vn||_>gOt){for(let N=0;Nbe||m>Pe||P=B||re===ae)return;let Ce=u[W];ae===void 0&&(ae=Ce.length);for(let Ne=re;Ne=T&&Ke<=_&&it>=L&&it<=C&&F.push(ce)}let de=l[W],te=de[re*4+0],ke=de[re*4+1],Ee=de[re*4+2],Me=de[re*4+3],Ue=G(de,re+1),Fe=N*.5,me=W+1;U(j,H,Fe,me,te,ke||Ee||Me||Ue),U(j,H+Fe,Fe,me,ke,Ee||Me||Ue),U(j+Fe,H,Fe,me,Ee,Me||Ue),U(j+Fe,H+Fe,Fe,me,Me,Ue)}function G(j,H){let N=null,W=0;for(;N===null;)if(N=j[H*4+W],W++,W>j.length)return null;return N}return F}function x(v,k,E,T,L){let _=[];for(let C=0;C{"use strict";$Fe.exports=JFe()});var iY=Te((pgr,QFe)=>{QFe.exports=_Ot;function _Ot(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],s=o.toUpperCase();if(o!=s)switch(a[0]=s,o){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var u=1;u{"use strict";Object.defineProperty(UF,"__esModule",{value:!0});var xOt=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var s=t[Symbol.iterator](),u;!(i=(u=s.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(l){a=!0,o=l}finally{try{!i&&s.return&&s.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ak=Math.PI*2,nY=function(t,r,n,i,a,o,s){var u=t.x,l=t.y;u*=r,l*=n;var f=i*u-a*l,c=a*u+i*l;return{x:f+o,y:c+s}},bOt=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),s=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+s*n,y:s-o*n},{x:o,y:s}]},e8e=function(t,r,n,i){var a=t*i-r*n<0?-1:1,o=t*n+r*i;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},wOt=function(t,r,n,i,a,o,s,u,l,f,c,h){var d=Math.pow(a,2),p=Math.pow(o,2),x=Math.pow(c,2),b=Math.pow(h,2),v=d*p-d*b-p*x;v<0&&(v=0),v/=d*b+p*x,v=Math.sqrt(v)*(s===u?-1:1);var k=v*a/o*h,E=v*-o/a*c,T=f*k-l*E+(t+n)/2,L=l*k+f*E+(r+i)/2,_=(c-k)/a,C=(h-E)/o,S=(-c-k)/a,m=(-h-E)/o,P=e8e(1,0,_,C),A=e8e(_,C,S,m);return u===0&&A>0&&(A-=ak),u===1&&A<0&&(A+=ak),[T,L,P,A]},AOt=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,s=t.ry,u=t.xAxisRotation,l=u===void 0?0:u,f=t.largeArcFlag,c=f===void 0?0:f,h=t.sweepFlag,d=h===void 0?0:h,p=[];if(o===0||s===0)return[];var x=Math.sin(l*ak/360),b=Math.cos(l*ak/360),v=b*(r-i)/2+x*(n-a)/2,k=-x*(r-i)/2+b*(n-a)/2;if(v===0&&k===0)return[];o=Math.abs(o),s=Math.abs(s);var E=Math.pow(v,2)/Math.pow(o,2)+Math.pow(k,2)/Math.pow(s,2);E>1&&(o*=Math.sqrt(E),s*=Math.sqrt(E));var T=wOt(r,n,i,a,o,s,c,d,x,b,v,k),L=xOt(T,4),_=L[0],C=L[1],S=L[2],m=L[3],P=Math.abs(m)/(ak/4);Math.abs(1-P)<1e-7&&(P=1);var A=Math.max(Math.ceil(P),1);m/=A;for(var B=0;B{"use strict";n8e.exports=SOt;var TOt=r8e();function SOt(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,u=null,l=0,f=0,c=0,h=e.length;c4?(n=d[d.length-4],i=d[d.length-3]):(n=l,i=f),r.push(d)}return r}function VF(e,t,r,n){return["C",e,t,r,n,r,n]}function i8e(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}});var aY=Te((mgr,o8e)=>{"use strict";o8e.exports=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}});var u8e=Te((ygr,l8e)=>{"use strict";var MOt=YM(),EOt=iY(),kOt=a8e(),COt=aY(),s8e=i4();l8e.exports=LOt;function LOt(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(s8e(COt(e),"String is not an SVG path."),e=MOt(e)),s8e(Array.isArray(e),"Argument should be a string or an array of path segments."),e=EOt(e),e=kOt(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,n=e.length;rt[2]&&(t[2]=i[a+0]),i[a+1]>t[3]&&(t[3]=i[a+1]);return t}});var v8e=Te((ggr,p8e)=>{var X2=Math.PI,f8e=d8e(120);p8e.exports=POt;function POt(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,u=null,l=0,f=0,c=0,h=e.length;c7&&(r.push(d.splice(0,7)),d.unshift("C"));break;case"S":var x=l,b=f;(t=="C"||t=="S")&&(x+=x-n,b+=b-i),d=["C",x,b,d[1],d[2],d[3],d[4]];break;case"T":t=="Q"||t=="T"?(s=l*2-s,u=f*2-u):(s=l,u=f),d=c8e(l,f,s,u,d[1],d[2]);break;case"Q":s=d[1],u=d[2],d=c8e(l,f,d[1],d[2],d[3],d[4]);break;case"L":d=GF(l,f,d[1],d[2]);break;case"H":d=GF(l,f,d[1],f);break;case"V":d=GF(l,f,l,d[1]);break;case"Z":d=GF(l,f,a,o);break}t=p,l=d[d.length-2],f=d[d.length-1],d.length>4?(n=d[d.length-4],i=d[d.length-3]):(n=l,i=f),r.push(d)}return r}function GF(e,t,r,n){return["C",e,t,r,n,r,n]}function c8e(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function h8e(e,t,r,n,i,a,o,s,u,l){if(l)E=l[0],T=l[1],v=l[2],k=l[3];else{var f=oY(e,t,-i);e=f.x,t=f.y,f=oY(s,u,-i),s=f.x,u=f.y;var c=(e-s)/2,h=(t-u)/2,d=c*c/(r*r)+h*h/(n*n);d>1&&(d=Math.sqrt(d),r=d*r,n=d*n);var p=r*r,x=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((p*x-p*h*h-x*c*c)/(p*h*h+x*c*c)));b==1/0&&(b=1);var v=b*r*h/n+(e+s)/2,k=b*-n*c/r+(t+u)/2,E=Math.asin(((t-k)/n).toFixed(9)),T=Math.asin(((u-k)/n).toFixed(9));E=eT&&(E=E-X2*2),!o&&T>E&&(T=T-X2*2)}if(Math.abs(T-E)>f8e){var L=T,_=s,C=u;T=E+f8e*(o&&T>E?1:-1),s=v+r*Math.cos(T),u=k+n*Math.sin(T);var S=h8e(s,u,r,n,i,0,o,_,C,[T,L,v,k])}var m=Math.tan((T-E)/4),P=4/3*r*m,A=4/3*n*m,B=[2*e-(e+P*Math.sin(E)),2*t-(t-A*Math.cos(E)),s+P*Math.sin(T),u-A*Math.cos(T),s,u];if(l)return B;S&&(B=B.concat(S));for(var F=0;F{var zOt=iY(),IOt=v8e(),ROt={M:"moveTo",C:"bezierCurveTo"};m8e.exports=function(e,t){e.beginPath(),IOt(zOt(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[ROt[n]].apply(e,i)}),e.closePath()}});var b8e=Te((xgr,x8e)=>{"use strict";var DOt=H4();x8e.exports=FOt;var ok=1e20;function FOt(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,o,s,u,l,f,c,h,d,p,x;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,u=e,t.stride?f=t.stride:f=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(h=e,c=h.getContext("2d"),a=h.width,o=h.height,d=c.getImageData(0,0,a,o),u=d.data,f=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(h=e.canvas,c=e,a=h.width,o=h.height,d=c.getImageData(0,0,a,o),u=d.data,f=4):window.ImageData&&e instanceof window.ImageData&&(d=e,a=e.width,o=e.height,u=d.data,f=4);if(s=Math.max(a,o),window.Uint8ClampedArray&&u instanceof window.Uint8ClampedArray||window.Uint8Array&&u instanceof window.Uint8Array)for(l=u,u=Array(a*o),p=0,x=l.length;p{"use strict";var BOt=u8e(),OOt=YM(),qOt=y8e(),NOt=aY(),UOt=b8e(),sY=document.createElement("canvas"),cv=sY.getContext("2d");w8e.exports=VOt;function VOt(e,t){if(!NOt(e))throw Error("Argument should be valid svg path string");t||(t={});var r,n;t.shape?(r=t.shape[0],n=t.shape[1]):(r=sY.width=t.w||t.width||200,n=sY.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||BOt(e),s=[r/(o[2]-o[0]),n/(o[3]-o[1])],u=Math.min(s[0]||0,s[1]||0)/2;if(cv.fillStyle="black",cv.fillRect(0,0,r,n),cv.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?cv.strokeStyle="white":cv.strokeStyle="black",cv.lineWidth=Math.abs(a)),cv.translate(r*.5,n*.5),cv.scale(u,u),GOt()){var l=new Path2D(e);cv.fill(l),a&&cv.stroke(l)}else{var f=OOt(e);qOt(cv,f),cv.fill(),a&&cv.stroke()}cv.setTransform(1,0,0,1,0,0);var c=UOt(cv,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return c}var HF;function GOt(){if(HF!=null)return HF;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return HF=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return HF=r&&r.data&&r.data[3]===255}});var Y2=Te((wgr,R8e)=>{"use strict";var jF=ku(),HOt=A8e(),WF=$_(),WOt=$l(),iS=ei(),Sh=iS.isArrayOrTypedArray,tS=Mu(),T8e=$c(),S8e=$g().formatColor,rS=lc(),jOt=S3(),uY=OF(),sk=sx(),XOt=U1().DESELECTDIM,M8e={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},ZOt=rv().appendArrayPointValue;function YOt(e,t){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},i=e._context.plotGlPixelRatio;if(t.visible!==!0)return n;if(rS.hasText(t)&&(n.text=I8e(e,t),n.textSel=k8e(e,t,t.selected),n.textUnsel=k8e(e,t,t.unselected)),rS.hasMarkers(t)&&(n.marker=cY(e,t),n.markerSel=fY(e,t,t.selected),n.markerUnsel=fY(e,t,t.unselected),!t.unselected&&Sh(t.marker.opacity))){var a=t.marker.opacity;for(n.markerUnsel.opacity=new Array(a.length),r=0;r500?"bold":"normal":e}function cY(e,t){var r=t._length,n=t.marker,i={},a,o=Sh(n.symbol),s=Sh(n.angle),u=Sh(n.color),l=Sh(n.line.color),f=Sh(n.opacity),c=Sh(n.size),h=Sh(n.line.width),d;if(o||(d=uY.isOpenSymbol(n.symbol)),o||u||l||f||s){i.symbols=new Array(r),i.angles=new Array(r),i.colors=new Array(r),i.borderColors=new Array(r);var p=n.symbol,x=n.angle,b=S8e(n,n.opacity,r),v=S8e(n.line,n.opacity,r);if(!Sh(v[0])){var k=v;for(v=Array(r),a=0;ask.TOO_MANY_POINTS||rS.hasMarkers(t)?"rect":"round";if(l&&t.connectgaps){var c=a[0],h=a[1];for(o=0;o1?u[o]:u[0]:u,d=Sh(l)?l.length>1?l[o]:l[0]:l,p=M8e[h],x=M8e[d],b=f?f/.8+1:0,v=-x*b-x*.5;a.offset[o]=[p*b/c,v/c]}}return a}R8e.exports={style:YOt,markerStyle:cY,markerSelection:fY,linePositions:JOt,errorBarPositions:$Ot,textPosition:QOt}});var hY=Te((Agr,D8e)=>{"use strict";var XF=ei();D8e.exports=function(t,r){var n=r._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return r._scene||(n=r._scene={},n.init=function(){XF.extendFlat(n,a,i)},n.init(),n.update=function(s){var u=XF.repeat(s,n.count);if(n.fill2d&&n.fill2d.update(u),n.scatter2d&&n.scatter2d.update(u),n.line2d&&n.line2d.update(u),n.error2d&&n.error2d.update(u.concat(u)),n.select2d&&n.select2d.update(u),n.glText)for(var l=0;l{"use strict";var e9t=NF(),nS=ei(),F8e=$c(),t9t=wm().findExtremes,B8e=Im(),dY=B0(),r9t=dY.calcMarkerSize,i9t=dY.calcAxisExpansion,n9t=dY.setFirstScatter,a9t=D0(),aS=Y2(),o9t=hY(),O8e=nf().BADNUM,s9t=sx().TOO_MANY_POINTS;N8e.exports=function(t,r){var n=t._fullLayout,i=r._xA=F8e.getFromId(t,r.xaxis,"x"),a=r._yA=F8e.getFromId(t,r.yaxis,"y"),o=n._plots[r.xaxis+r.yaxis],s=r._length,u=s>=s9t,l=s*2,f={},c,h=i.makeCalcdata(r,"x"),d=a.makeCalcdata(r,"y"),p=B8e(r,i,"x",h),x=B8e(r,a,"y",d),b=p.vals,v=x.vals;r._x=b,r._y=v,r.xperiodalignment&&(r._origX=h,r._xStarts=p.starts,r._xEnds=p.ends),r.yperiodalignment&&(r._origY=d,r._yStarts=x.starts,r._yEnds=x.ends);var k=new Array(l),E=new Array(s);for(c=0;c1&&nS.extendFlat(o.line,aS.linePositions(e,r,n)),o.errorX||o.errorY){var s=aS.errorBarPositions(e,r,n,i,a);o.errorX&&nS.extendFlat(o.errorX,s.x),o.errorY&&nS.extendFlat(o.errorY,s.y)}return o.text&&(nS.extendFlat(o.text,{positions:n},aS.textPosition(e,r,o.text,o.marker)),nS.extendFlat(o.textSel,{positions:n},aS.textPosition(e,r,o.text,o.markerSel)),nS.extendFlat(o.textUnsel,{positions:n},aS.textPosition(e,r,o.text,o.markerUnsel))),o}});var pY=Te((Sgr,G8e)=>{"use strict";var V8e=ei(),u9t=jl(),f9t=U1().DESELECTDIM;function c9t(e){var t=e[0],r=t.trace,n=t.t,i=n._scene,a=n.index,o=i.selectBatch[a],s=i.unselectBatch[a],u=i.textOptions[a],l=i.textSelectedOptions[a]||{},f=i.textUnselectedOptions[a]||{},c=V8e.extendFlat({},u),h,d;if(o.length||s.length){var p=l.color,x=f.color,b=u.color,v=V8e.isArrayOrTypedArray(b);for(c.color=new Array(r._length),h=0;h{"use strict";var H8e=lc(),h9t=pY().styleTextSelection;W8e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u=n[0].t,l=s._length,f=u.x,c=u.y,h=u._scene,d=u.index;if(!h)return o;var p=H8e.hasText(s),x=H8e.hasMarkers(s),b=!x&&!p;if(s.visible!==!0||b)return o;var v=[],k=[];if(r!==!1&&!r.degenerate)for(var E=0;E{"use strict";var d9t=BF();j8e.exports={moduleType:"trace",name:"scattergl",basePlotModule:Ah(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:ik(),supplyDefaults:kFe(),crossTraceDefaults:hU(),colorbar:ep(),formatLabels:LFe(),calc:U8e(),hoverPoints:d9t.hoverPoints,selectPoints:vY(),meta:{}}});var Y8e=Te((kgr,YF)=>{"use strict";var ZF=H4();YF.exports=Z8e;YF.exports.to=Z8e;YF.exports.from=p9t;function Z8e(e,t){t==null&&(t=!0);var r=e[0],n=e[1],i=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,n*=255,i*=255,a*=255),r=ZF(r,0,255)&255,n=ZF(n,0,255)&255,i=ZF(i,0,255)&255,a=ZF(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function p9t(e,t){e=+e;var r=e>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=e&255;return t===!1?[r,n,i,a]:[r/255,n/255,i/255,a/255]}});var Uh=Te((Cgr,J8e)=>{"use strict";var K8e=Object.getOwnPropertySymbols,v9t=Object.prototype.hasOwnProperty,m9t=Object.prototype.propertyIsEnumerable;function y9t(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function g9t(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}J8e.exports=g9t()?Object.assign:function(e,t){for(var r,n=y9t(e),i,a=1;a{$8e.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n{"use strict";eBe.exports=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i{"use strict";tBe.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var KF=Te((Igr,oS)=>{"use strict";oS.exports=lk;oS.exports.float32=oS.exports.float=lk;oS.exports.fract32=oS.exports.fract=_9t;var iBe=new Float32Array(1);function _9t(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=lk(e));for(var r=0,n=t.length;r{"use strict";function x9t(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){l=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function b9t(e,t){return T9t(e)||x9t(e,t)||aBe(e,t)||E9t()}function w9t(e){return A9t(e)||S9t(e)||aBe(e)||M9t()}function A9t(e){if(Array.isArray(e))return yY(e)}function T9t(e){if(Array.isArray(e))return e}function S9t(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aBe(e,t){if(e){if(typeof e=="string")return yY(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yY(e,t)}}function yY(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rFe&&Ve>0){var ce=(ye[Ve][0]-Fe)/(ye[Ve][0]-ye[Ve-1][0]);return ye[Ve][1]*(1-ce)+ce*ye[Ve-1][1]}}return 1}var W=[0,0,0],re={showSurface:!1,showContour:!1,projections:[A.slice(),A.slice(),A.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function ae(Fe,ye){var Ve,ce,Je,nt=ye.axes&&ye.axes.lastCubeProps.axis||W,gt=ye.showSurface,Nt=ye.showContour;for(Ve=0;Ve<3;++Ve)for(gt=gt||ye.surfaceProject[Ve],ce=0;ce<3;++ce)Nt=Nt||ye.contourProject[Ve][ce];for(Ve=0;Ve<3;++Ve){var it=re.projections[Ve];for(ce=0;ce<16;++ce)it[ce]=0;for(ce=0;ce<4;++ce)it[5*ce]=1;it[5*Ve]=0,it[12+Ve]=ye.axesBounds[+(nt[Ve]>0)][Ve],v(it,Fe.model,it);var Ye=re.clipBounds[Ve];for(Je=0;Je<2;++Je)for(ce=0;ce<3;++ce)Ye[Je][ce]=Fe.clipBounds[Je][ce];Ye[0][Ve]=-1e8,Ye[1][Ve]=1e8}return re.showSurface=gt,re.showContour=Nt,re}var be={model:A,view:A,projection:A,inverseModel:A.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},Ce=A.slice(),Le=[1,0,0,0,1,0,0,0,1];function pe(Fe,ye){Fe=Fe||{};var Ve=this.gl;Ve.disable(Ve.CULL_FACE),this._colorMap.bind(0);var ce=be;ce.model=Fe.model||A,ce.view=Fe.view||A,ce.projection=Fe.projection||A,ce.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],ce.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],ce.objectOffset=this.objectOffset,ce.contourColor=this.contourColor[0],ce.inverseModel=k(ce.inverseModel,ce.model);for(var Je=0;Je<2;++Je)for(var nt=ce.clipBounds[Je],gt=0;gt<3;++gt)nt[gt]=Math.min(Math.max(this.clipBounds[Je][gt],-1e8),1e8);ce.kambient=this.ambientLight,ce.kdiffuse=this.diffuseLight,ce.kspecular=this.specularLight,ce.roughness=this.roughness,ce.fresnel=this.fresnel,ce.opacity=this.opacity,ce.height=0,ce.permutation=Le,ce.vertexColor=this.vertexColor;var Nt=Ce;for(v(Nt,ce.view,ce.model),v(Nt,ce.projection,Nt),k(Nt,Nt),Je=0;Je<3;++Je)ce.eyePosition[Je]=Nt[12+Je]/Nt[15];var it=Nt[15];for(Je=0;Je<3;++Je)it+=this.lightPosition[Je]*Nt[4*Je+3];for(Je=0;Je<3;++Je){var Ye=Nt[12+Je];for(gt=0;gt<3;++gt)Ye+=Nt[4*gt+Je]*this.lightPosition[gt];ce.lightPosition[Je]=Ye/it}var kt=ae(ce,this);if(kt.showSurface){for(this._shader.bind(),this._shader.uniforms=ce,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(Ve.TRIANGLES,this._vertexCount),Je=0;Je<3;++Je)!this.surfaceProject[Je]||!this.vertexCount||(this._shader.uniforms.model=kt.projections[Je],this._shader.uniforms.clipBounds=kt.clipBounds[Je],this._vao.draw(Ve.TRIANGLES,this._vertexCount));this._vao.unbind()}if(kt.showContour){var Tt=this._contourShader;ce.kambient=1,ce.kdiffuse=0,ce.kspecular=0,ce.opacity=1,Tt.bind(),Tt.uniforms=ce;var St=this._contourVAO;for(St.bind(),Je=0;Je<3;++Je)for(Tt.uniforms.permutation=F[Je],Ve.lineWidth(this.contourWidth[Je]*this.pixelRatio),gt=0;gt>4)/16)/255,Je=Math.floor(ce),nt=ce-Je,gt=ye[1]*(Fe.value[1]+(Fe.value[2]&15)/16)/255,Nt=Math.floor(gt),it=gt-Nt;Je+=1,Nt+=1;var Ye=Ve.position;Ye[0]=Ye[1]=Ye[2]=0;for(var kt=0;kt<2;++kt)for(var Tt=kt?nt:1-nt,St=0;St<2;++St)for(var Dt=St?it:1-it,Zt=Je+kt,Et=Nt+St,Ae=Tt*Dt,at=0;at<3;++at)Ye[at]+=this._field[at].get(Zt,Et)*Ae;for(var wt=this._pickResult.level,vt=0;vt<3;++vt)if(wt[vt]=E.le(this.contourLevels[vt],Ye[vt]),wt[vt]<0)this.contourLevels[vt].length>0&&(wt[vt]=0);else if(wt[vt]Math.abs(Ue-Ye[vt])&&(wt[vt]+=1)}for(Ve.index[0]=nt<.5?Je:Je+1,Ve.index[1]=it<.5?Nt:Nt+1,Ve.uv[0]=ce/ye[0],Ve.uv[1]=gt/ye[1],at=0;at<3;++at)Ve.dataCoordinate[at]=this._field[at].get(Ve.index[0],Ve.index[1]);return Ve},H.padField=function(Fe,ye){var Ve=ye.shape.slice(),ce=Fe.shape.slice();d.assign(Fe.lo(1,1).hi(Ve[0],Ve[1]),ye),d.assign(Fe.lo(1).hi(Ve[0],1),ye.hi(Ve[0],1)),d.assign(Fe.lo(1,ce[1]-1).hi(Ve[0],1),ye.lo(0,Ve[1]-1).hi(Ve[0],1)),d.assign(Fe.lo(0,1).hi(1,Ve[1]),ye.hi(1)),d.assign(Fe.lo(ce[0]-1,1).hi(1,Ve[1]),ye.lo(Ve[0]-1)),Fe.set(0,0,ye.get(0,0)),Fe.set(0,ce[1]-1,ye.get(0,Ve[1]-1)),Fe.set(ce[0]-1,0,ye.get(Ve[0]-1,0)),Fe.set(ce[0]-1,ce[1]-1,ye.get(Ve[0]-1,Ve[1]-1))};function ke(Fe,ye){return Array.isArray(Fe)?[ye(Fe[0]),ye(Fe[1]),ye(Fe[2])]:[ye(Fe),ye(Fe),ye(Fe)]}function Ee(Fe){return Array.isArray(Fe)?Fe.length===3?[Fe[0],Fe[1],Fe[2],1]:[Fe[0],Fe[1],Fe[2],Fe[3]]:[0,0,0,1]}function Me(Fe){if(Array.isArray(Fe)){if(Array.isArray(Fe))return[Ee(Fe[0]),Ee(Fe[1]),Ee(Fe[2])];var ye=Ee(Fe);return[ye.slice(),ye.slice(),ye.slice()]}}H.update=function(Fe){Fe=Fe||{},this.objectOffset=Fe.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in Fe&&(this.contourWidth=ke(Fe.contourWidth,Number)),"showContour"in Fe&&(this.showContour=ke(Fe.showContour,Boolean)),"showSurface"in Fe&&(this.showSurface=!!Fe.showSurface),"contourTint"in Fe&&(this.contourTint=ke(Fe.contourTint,Boolean)),"contourColor"in Fe&&(this.contourColor=Me(Fe.contourColor)),"contourProject"in Fe&&(this.contourProject=ke(Fe.contourProject,function(Vi){return ke(Vi,Boolean)})),"surfaceProject"in Fe&&(this.surfaceProject=Fe.surfaceProject),"dynamicColor"in Fe&&(this.dynamicColor=Me(Fe.dynamicColor)),"dynamicTint"in Fe&&(this.dynamicTint=ke(Fe.dynamicTint,Number)),"dynamicWidth"in Fe&&(this.dynamicWidth=ke(Fe.dynamicWidth,Number)),"opacity"in Fe&&(this.opacity=Fe.opacity),"opacityscale"in Fe&&(this.opacityscale=Fe.opacityscale),"colorBounds"in Fe&&(this.colorBounds=Fe.colorBounds),"vertexColor"in Fe&&(this.vertexColor=Fe.vertexColor?1:0),"colormap"in Fe&&this._colorMap.setPixels(this.genColormap(Fe.colormap,this.opacityscale));var ye=Fe.field||Fe.coords&&Fe.coords[2]||null,Ve=!1;if(ye||(this._field[2].shape[0]||this._field[2].shape[2]?ye=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):ye=this._field[2].hi(0,0)),"field"in Fe||"coords"in Fe){var ce=(ye.shape[0]+2)*(ye.shape[1]+2);ce>this._field[2].data.length&&(c.freeFloat(this._field[2].data),this._field[2].data=c.mallocFloat(s.nextPow2(ce))),this._field[2]=x(this._field[2].data,[ye.shape[0]+2,ye.shape[1]+2]),this.padField(this._field[2],ye),this.shape=ye.shape.slice();for(var Je=this.shape,nt=0;nt<2;++nt)this._field[2].size>this._field[nt].data.length&&(c.freeFloat(this._field[nt].data),this._field[nt].data=c.mallocFloat(this._field[2].size)),this._field[nt]=x(this._field[nt].data,[Je[0]+2,Je[1]+2]);if(Fe.coords){var gt=Fe.coords;if(!Array.isArray(gt)||gt.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(nt=0;nt<2;++nt){var Nt=gt[nt];for(St=0;St<2;++St)if(Nt.shape[St]!==Je[St])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[nt],Nt)}}else if(Fe.ticks){var it=Fe.ticks;if(!Array.isArray(it)||it.length!==2)throw new Error("gl-surface: invalid ticks");for(nt=0;nt<2;++nt){var Ye=it[nt];if((Array.isArray(Ye)||Ye.length)&&(Ye=x(Ye)),Ye.shape[0]!==Je[nt])throw new Error("gl-surface: invalid tick length");var kt=x(Ye.data,Je);kt.stride[nt]=Ye.stride[0],kt.stride[nt^1]=0,this.padField(this._field[nt],kt)}}else{for(nt=0;nt<2;++nt){var Tt=[0,0];Tt[nt]=1,this._field[nt]=x(this._field[nt].data,[Je[0]+2,Je[1]+2],Tt,0)}this._field[0].set(0,0,0);for(var St=0;St0){for(var yi=0;yi<5;++yi)Dr.pop();Re-=1}continue e}}}Di.push(Re)}this._contourOffsets[Mr]=di,this._contourCounts[Mr]=Di}var Ei=c.mallocFloat(Dr.length);for(nt=0;ntU||B<0||B>U)throw new Error("gl-texture2d: Invalid texture size");return P._shape=[A,B],P.bind(),F.texImage2D(F.TEXTURE_2D,0,P.format,A,B,0,P.format,P.type,null),P._mipLevels=[0],P}function v(P,A,B,F,U,G){this.gl=P,this.handle=A,this.format=U,this.type=G,this._shape=[B,F],this._mipLevels=[0],this._magFilter=P.NEAREST,this._minFilter=P.NEAREST,this._wrapS=P.CLAMP_TO_EDGE,this._wrapT=P.CLAMP_TO_EDGE,this._anisoSamples=1;var j=this,H=[this._wrapS,this._wrapT];Object.defineProperties(H,[{get:function(){return j._wrapS},set:function(W){return j.wrapS=W}},{get:function(){return j._wrapT},set:function(W){return j.wrapT=W}}]),this._wrapVector=H;var N=[this._shape[0],this._shape[1]];Object.defineProperties(N,[{get:function(){return j._shape[0]},set:function(W){return j.width=W}},{get:function(){return j._shape[1]},set:function(W){return j.height=W}}]),this._shapeVector=N}var k=v.prototype;Object.defineProperties(k,{minFilter:{get:function(){return this._minFilter},set:function(P){this.bind();var A=this.gl;if(this.type===A.FLOAT&&f.indexOf(P)>=0&&(A.getExtension("OES_texture_float_linear")||(P=A.NEAREST)),c.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MIN_FILTER,P),this._minFilter=P}},magFilter:{get:function(){return this._magFilter},set:function(P){this.bind();var A=this.gl;if(this.type===A.FLOAT&&f.indexOf(P)>=0&&(A.getExtension("OES_texture_float_linear")||(P=A.NEAREST)),c.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MAG_FILTER,P),this._magFilter=P}},mipSamples:{get:function(){return this._anisoSamples},set:function(P){var A=this._anisoSamples;if(this._anisoSamples=Math.max(P,1)|0,A!==this._anisoSamples){var B=this.gl.getExtension("EXT_texture_filter_anisotropic");B&&this.gl.texParameterf(this.gl.TEXTURE_2D,B.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,P),this._wrapS=P}},wrapT:{get:function(){return this._wrapT},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,P),this._wrapT=P}},wrap:{get:function(){return this._wrapVector},set:function(P){if(Array.isArray(P)||(P=[P,P]),P.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var A=0;A<2;++A)if(h.indexOf(P[A])<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);this._wrapS=P[0],this._wrapT=P[1];var B=this.gl;return this.bind(),B.texParameteri(B.TEXTURE_2D,B.TEXTURE_WRAP_S,this._wrapS),B.texParameteri(B.TEXTURE_2D,B.TEXTURE_WRAP_T,this._wrapT),P}},shape:{get:function(){return this._shapeVector},set:function(P){if(!Array.isArray(P))P=[P|0,P|0];else if(P.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return b(this,P[0]|0,P[1]|0),[P[0]|0,P[1]|0]}},width:{get:function(){return this._shape[0]},set:function(P){return P=P|0,b(this,P,this._shape[1]),P}},height:{get:function(){return this._shape[1]},set:function(P){return P=P|0,b(this,this._shape[0],P),P}}}),k.bind=function(P){var A=this.gl;return P!==void 0&&A.activeTexture(A.TEXTURE0+(P|0)),A.bindTexture(A.TEXTURE_2D,this.handle),P!==void 0?P|0:A.getParameter(A.ACTIVE_TEXTURE)-A.TEXTURE0},k.dispose=function(){this.gl.deleteTexture(this.handle)},k.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var P=Math.min(this._shape[0],this._shape[1]),A=0;P>0;++A,P>>>=1)this._mipLevels.indexOf(A)<0&&this._mipLevels.push(A)},k.setPixels=function(P,A,B,F){var U=this.gl;this.bind(),Array.isArray(A)?(F=B,B=A[1]|0,A=A[0]|0):(A=A||0,B=B||0),F=F||0;var G=p(P)?P:P.raw;if(G){var j=this._mipLevels.indexOf(F)<0;j?(U.texImage2D(U.TEXTURE_2D,0,this.format,this.format,this.type,G),this._mipLevels.push(F)):U.texSubImage2D(U.TEXTURE_2D,F,A,B,this.format,this.type,G)}else if(P.shape&&P.stride&&P.data){if(P.shape.length<2||A+P.shape[1]>this._shape[1]>>>F||B+P.shape[0]>this._shape[0]>>>F||A<0||B<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");T(U,A,B,F,this.format,this.type,this._mipLevels,P)}else throw new Error("gl-texture2d: Unsupported data type")};function E(P,A){return P.length===3?A[2]===1&&A[1]===P[0]*P[2]&&A[0]===P[2]:A[0]===1&&A[1]===P[0]}function T(P,A,B,F,U,G,j,H){var N=H.dtype,W=H.shape.slice();if(W.length<2||W.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var re=0,ae=0,be=E(W,H.stride.slice());N==="float32"?re=P.FLOAT:N==="float64"?(re=P.FLOAT,be=!1,N="float32"):N==="uint8"?re=P.UNSIGNED_BYTE:(re=P.UNSIGNED_BYTE,be=!1,N="uint8");var Ce=1;if(W.length===2)ae=P.LUMINANCE,W=[W[0],W[1],1],H=s(H.data,W,[H.stride[0],H.stride[1],1],H.offset);else if(W.length===3){if(W[2]===1)ae=P.ALPHA;else if(W[2]===2)ae=P.LUMINANCE_ALPHA;else if(W[2]===3)ae=P.RGB;else if(W[2]===4)ae=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");Ce=W[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((ae===P.LUMINANCE||ae===P.ALPHA)&&(U===P.LUMINANCE||U===P.ALPHA)&&(ae=U),ae!==U)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var Le=H.size,pe=j.indexOf(F)<0;if(pe&&j.push(F),re===G&&be)H.offset===0&&H.data.length===Le?pe?P.texImage2D(P.TEXTURE_2D,F,U,W[0],W[1],0,U,G,H.data):P.texSubImage2D(P.TEXTURE_2D,F,A,B,W[0],W[1],U,G,H.data):pe?P.texImage2D(P.TEXTURE_2D,F,U,W[0],W[1],0,U,G,H.data.subarray(H.offset,H.offset+Le)):P.texSubImage2D(P.TEXTURE_2D,F,A,B,W[0],W[1],U,G,H.data.subarray(H.offset,H.offset+Le));else{var te;G===P.FLOAT?te=l.mallocFloat32(Le):te=l.mallocUint8(Le);var ke=s(te,W,[W[2],W[2]*W[0],1]);re===P.FLOAT&&G===P.UNSIGNED_BYTE?x(ke,H):u.assign(ke,H),pe?P.texImage2D(P.TEXTURE_2D,F,U,W[0],W[1],0,U,G,te.subarray(0,Le)):P.texSubImage2D(P.TEXTURE_2D,F,A,B,W[0],W[1],U,G,te.subarray(0,Le)),G===P.FLOAT?l.freeFloat32(te):l.freeUint8(te)}}function L(P){var A=P.createTexture();return P.bindTexture(P.TEXTURE_2D,A),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MIN_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MAG_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_S,P.CLAMP_TO_EDGE),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_T,P.CLAMP_TO_EDGE),A}function _(P,A,B,F,U){var G=P.getParameter(P.MAX_TEXTURE_SIZE);if(A<0||A>G||B<0||B>G)throw new Error("gl-texture2d: Invalid texture shape");if(U===P.FLOAT&&!P.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var j=L(P);return P.texImage2D(P.TEXTURE_2D,0,F,A,B,0,F,U,null),new v(P,j,A,B,F,U)}function C(P,A,B,F,U,G){var j=L(P);return P.texImage2D(P.TEXTURE_2D,0,U,U,G,A),new v(P,j,B,F,U,G)}function S(P,A){var B=A.dtype,F=A.shape.slice(),U=P.getParameter(P.MAX_TEXTURE_SIZE);if(F[0]<0||F[0]>U||F[1]<0||F[1]>U)throw new Error("gl-texture2d: Invalid texture size");var G=E(F,A.stride.slice()),j=0;B==="float32"?j=P.FLOAT:B==="float64"?(j=P.FLOAT,G=!1,B="float32"):B==="uint8"?j=P.UNSIGNED_BYTE:(j=P.UNSIGNED_BYTE,G=!1,B="uint8");var H=0;if(F.length===2)H=P.LUMINANCE,F=[F[0],F[1],1],A=s(A.data,F,[A.stride[0],A.stride[1],1],A.offset);else if(F.length===3)if(F[2]===1)H=P.ALPHA;else if(F[2]===2)H=P.LUMINANCE_ALPHA;else if(F[2]===3)H=P.RGB;else if(F[2]===4)H=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");j===P.FLOAT&&!P.getExtension("OES_texture_float")&&(j=P.UNSIGNED_BYTE,G=!1);var N,W,re=A.size;if(G)A.offset===0&&A.data.length===re?N=A.data:N=A.data.subarray(A.offset,A.offset+re);else{var ae=[F[2],F[2]*F[0],1];W=l.malloc(re,B);var be=s(W,F,ae,0);(B==="float32"||B==="float64")&&j===P.UNSIGNED_BYTE?x(be,A):u.assign(be,A),N=W.subarray(0,re)}var Ce=L(P);return P.texImage2D(P.TEXTURE_2D,0,H,F[0],F[1],0,H,j,N),G||l.free(W),new v(P,Ce,F[0],F[1],H,j)}function m(P){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(f||d(P),typeof arguments[1]=="number")return _(P,arguments[1],arguments[2],arguments[3]||P.RGBA,arguments[4]||P.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return _(P,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var A=arguments[1],B=p(A)?A:A.raw;if(B)return C(P,B,A.width|0,A.height|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(A.shape&&A.data&&A.stride)return S(P,A)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433:function(i){"use strict";function a(o,s,u){s?s.bind():o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,null);var l=o.getParameter(o.MAX_VERTEX_ATTRIBS)|0;if(u){if(u.length>l)throw new Error("gl-vao: Too many vertex attributes");for(var f=0;f1?0:Math.acos(x)}},9226:function(i){i.exports=a;function a(o,s){return o[0]=Math.ceil(s[0]),o[1]=Math.ceil(s[1]),o[2]=Math.ceil(s[2]),o}},3126:function(i){i.exports=a;function a(o){var s=new Float32Array(3);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s}},3990:function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o}},1091:function(i){i.exports=a;function a(){var o=new Float32Array(3);return o[0]=0,o[1]=0,o[2]=0,o}},5911:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=u[0],d=u[1],p=u[2];return o[0]=f*p-c*d,o[1]=c*h-l*p,o[2]=l*d-f*h,o}},5455:function(i,a,o){i.exports=o(7056)},7056:function(i){i.exports=a;function a(o,s){var u=s[0]-o[0],l=s[1]-o[1],f=s[2]-o[2];return Math.sqrt(u*u+l*l+f*f)}},4008:function(i,a,o){i.exports=o(6690)},6690:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]/u[0],o[1]=s[1]/u[1],o[2]=s[2]/u[2],o}},244:function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]}},2613:function(i){i.exports=1e-6},9922:function(i,a,o){i.exports=u;var s=o(2613);function u(l,f){var c=l[0],h=l[1],d=l[2],p=f[0],x=f[1],b=f[2];return Math.abs(c-p)<=s*Math.max(1,Math.abs(c),Math.abs(p))&&Math.abs(h-x)<=s*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(d-b)<=s*Math.max(1,Math.abs(d),Math.abs(b))}},9265:function(i){i.exports=a;function a(o,s){return o[0]===s[0]&&o[1]===s[1]&&o[2]===s[2]}},2681:function(i){i.exports=a;function a(o,s){return o[0]=Math.floor(s[0]),o[1]=Math.floor(s[1]),o[2]=Math.floor(s[2]),o}},5137:function(i,a,o){i.exports=u;var s=o(1091)();function u(l,f,c,h,d,p){var x,b;for(f||(f=3),c||(c=0),h?b=Math.min(h*f+c,l.length):b=l.length,x=c;x0&&(c=1/Math.sqrt(c),o[0]=s[0]*c,o[1]=s[1]*c,o[2]=s[2]*c),o}},7636:function(i){i.exports=a;function a(o,s){s=s||1;var u=Math.random()*2*Math.PI,l=Math.random()*2-1,f=Math.sqrt(1-l*l)*s;return o[0]=Math.cos(u)*f,o[1]=Math.sin(u)*f,o[2]=l*s,o}},6894:function(i){i.exports=a;function a(o,s,u,l){var f=u[1],c=u[2],h=s[1]-f,d=s[2]-c,p=Math.sin(l),x=Math.cos(l);return o[0]=s[0],o[1]=f+h*x-d*p,o[2]=c+h*p+d*x,o}},109:function(i){i.exports=a;function a(o,s,u,l){var f=u[0],c=u[2],h=s[0]-f,d=s[2]-c,p=Math.sin(l),x=Math.cos(l);return o[0]=f+d*p+h*x,o[1]=s[1],o[2]=c+d*x-h*p,o}},8692:function(i){i.exports=a;function a(o,s,u,l){var f=u[0],c=u[1],h=s[0]-f,d=s[1]-c,p=Math.sin(l),x=Math.cos(l);return o[0]=f+h*x-d*p,o[1]=c+h*p+d*x,o[2]=s[2],o}},2447:function(i){i.exports=a;function a(o,s){return o[0]=Math.round(s[0]),o[1]=Math.round(s[1]),o[2]=Math.round(s[2]),o}},6621:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]*u,o[1]=s[1]*u,o[2]=s[2]*u,o}},8489:function(i){i.exports=a;function a(o,s,u,l){return o[0]=s[0]+u[0]*l,o[1]=s[1]+u[1]*l,o[2]=s[2]+u[2]*l,o}},1463:function(i){i.exports=a;function a(o,s,u,l){return o[0]=s,o[1]=u,o[2]=l,o}},6141:function(i,a,o){i.exports=o(2953)},5486:function(i,a,o){i.exports=o(3066)},2953:function(i){i.exports=a;function a(o,s){var u=s[0]-o[0],l=s[1]-o[1],f=s[2]-o[2];return u*u+l*l+f*f}},3066:function(i){i.exports=a;function a(o){var s=o[0],u=o[1],l=o[2];return s*s+u*u+l*l}},2229:function(i,a,o){i.exports=o(6843)},6843:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]-u[0],o[1]=s[1]-u[1],o[2]=s[2]-u[2],o}},492:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2];return o[0]=l*u[0]+f*u[3]+c*u[6],o[1]=l*u[1]+f*u[4]+c*u[7],o[2]=l*u[2]+f*u[5]+c*u[8],o}},5673:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=u[3]*l+u[7]*f+u[11]*c+u[15];return h=h||1,o[0]=(u[0]*l+u[4]*f+u[8]*c+u[12])/h,o[1]=(u[1]*l+u[5]*f+u[9]*c+u[13])/h,o[2]=(u[2]*l+u[6]*f+u[10]*c+u[14])/h,o}},264:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=u[0],d=u[1],p=u[2],x=u[3],b=x*l+d*c-p*f,v=x*f+p*l-h*c,k=x*c+h*f-d*l,E=-h*l-d*f-p*c;return o[0]=b*x+E*-h+v*-p-k*-d,o[1]=v*x+E*-d+k*-h-b*-p,o[2]=k*x+E*-p+b*-d-v*-h,o}},4361:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]+u[0],o[1]=s[1]+u[1],o[2]=s[2]+u[2],o[3]=s[3]+u[3],o}},2335:function(i){i.exports=a;function a(o){var s=new Float32Array(4);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s[3]=o[3],s}},2933:function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o[3]=s[3],o}},7536:function(i){i.exports=a;function a(){var o=new Float32Array(4);return o[0]=0,o[1]=0,o[2]=0,o[3]=0,o}},4691:function(i){i.exports=a;function a(o,s){var u=s[0]-o[0],l=s[1]-o[1],f=s[2]-o[2],c=s[3]-o[3];return Math.sqrt(u*u+l*l+f*f+c*c)}},1373:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]/u[0],o[1]=s[1]/u[1],o[2]=s[2]/u[2],o[3]=s[3]/u[3],o}},3750:function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]+o[3]*s[3]}},3390:function(i){i.exports=a;function a(o,s,u,l){var f=new Float32Array(4);return f[0]=o,f[1]=s,f[2]=u,f[3]=l,f}},9970:function(i,a,o){i.exports={create:o(7536),clone:o(2335),fromValues:o(3390),copy:o(2933),set:o(4578),add:o(4361),subtract:o(6860),multiply:o(3576),divide:o(1373),min:o(2334),max:o(160),scale:o(9288),scaleAndAdd:o(4844),distance:o(4691),squaredDistance:o(7960),length:o(6808),squaredLength:o(483),negate:o(1498),inverse:o(4494),normalize:o(5177),dot:o(3750),lerp:o(2573),random:o(9131),transformMat4:o(5352),transformQuat:o(4041)}},4494:function(i){i.exports=a;function a(o,s){return o[0]=1/s[0],o[1]=1/s[1],o[2]=1/s[2],o[3]=1/s[3],o}},6808:function(i){i.exports=a;function a(o){var s=o[0],u=o[1],l=o[2],f=o[3];return Math.sqrt(s*s+u*u+l*l+f*f)}},2573:function(i){i.exports=a;function a(o,s,u,l){var f=s[0],c=s[1],h=s[2],d=s[3];return o[0]=f+l*(u[0]-f),o[1]=c+l*(u[1]-c),o[2]=h+l*(u[2]-h),o[3]=d+l*(u[3]-d),o}},160:function(i){i.exports=a;function a(o,s,u){return o[0]=Math.max(s[0],u[0]),o[1]=Math.max(s[1],u[1]),o[2]=Math.max(s[2],u[2]),o[3]=Math.max(s[3],u[3]),o}},2334:function(i){i.exports=a;function a(o,s,u){return o[0]=Math.min(s[0],u[0]),o[1]=Math.min(s[1],u[1]),o[2]=Math.min(s[2],u[2]),o[3]=Math.min(s[3],u[3]),o}},3576:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]*u[0],o[1]=s[1]*u[1],o[2]=s[2]*u[2],o[3]=s[3]*u[3],o}},1498:function(i){i.exports=a;function a(o,s){return o[0]=-s[0],o[1]=-s[1],o[2]=-s[2],o[3]=-s[3],o}},5177:function(i){i.exports=a;function a(o,s){var u=s[0],l=s[1],f=s[2],c=s[3],h=u*u+l*l+f*f+c*c;return h>0&&(h=1/Math.sqrt(h),o[0]=u*h,o[1]=l*h,o[2]=f*h,o[3]=c*h),o}},9131:function(i,a,o){var s=o(5177),u=o(9288);i.exports=l;function l(f,c){return c=c||1,f[0]=Math.random(),f[1]=Math.random(),f[2]=Math.random(),f[3]=Math.random(),s(f,f),u(f,f,c),f}},9288:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]*u,o[1]=s[1]*u,o[2]=s[2]*u,o[3]=s[3]*u,o}},4844:function(i){i.exports=a;function a(o,s,u,l){return o[0]=s[0]+u[0]*l,o[1]=s[1]+u[1]*l,o[2]=s[2]+u[2]*l,o[3]=s[3]+u[3]*l,o}},4578:function(i){i.exports=a;function a(o,s,u,l,f){return o[0]=s,o[1]=u,o[2]=l,o[3]=f,o}},7960:function(i){i.exports=a;function a(o,s){var u=s[0]-o[0],l=s[1]-o[1],f=s[2]-o[2],c=s[3]-o[3];return u*u+l*l+f*f+c*c}},483:function(i){i.exports=a;function a(o){var s=o[0],u=o[1],l=o[2],f=o[3];return s*s+u*u+l*l+f*f}},6860:function(i){i.exports=a;function a(o,s,u){return o[0]=s[0]-u[0],o[1]=s[1]-u[1],o[2]=s[2]-u[2],o[3]=s[3]-u[3],o}},5352:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=s[3];return o[0]=u[0]*l+u[4]*f+u[8]*c+u[12]*h,o[1]=u[1]*l+u[5]*f+u[9]*c+u[13]*h,o[2]=u[2]*l+u[6]*f+u[10]*c+u[14]*h,o[3]=u[3]*l+u[7]*f+u[11]*c+u[15]*h,o}},4041:function(i){i.exports=a;function a(o,s,u){var l=s[0],f=s[1],c=s[2],h=u[0],d=u[1],p=u[2],x=u[3],b=x*l+d*c-p*f,v=x*f+p*l-h*c,k=x*c+h*f-d*l,E=-h*l-d*f-p*c;return o[0]=b*x+E*-h+v*-p-k*-d,o[1]=v*x+E*-d+k*-h-b*-p,o[2]=k*x+E*-p+b*-d-v*-h,o[3]=s[3],o}},1848:function(i,a,o){var s=o(4905),u=o(6468);i.exports=l;function l(f){for(var c=Array.isArray(f)?f:s(f),h=0;h0)continue;vt=Ae.slice(0,1).join("")}return Ve(vt),Le+=vt.length,N=N.slice(vt.length),N.length}while(!0)}function St(){return/[^a-fA-F0-9]/.test(j)?(Ve(N.join("")),G=h,F):(N.push(j),H=j,F+1)}function Dt(){return j==="."||/[eE]/.test(j)?(N.push(j),G=E,H=j,F+1):j==="x"&&N.length===1&&N[0]==="0"?(G=m,N.push(j),H=j,F+1):/[^\d]/.test(j)?(Ve(N.join("")),G=h,F):(N.push(j),H=j,F+1)}function Zt(){return j==="f"&&(N.push(j),H=j,F+=1),/[eE]/.test(j)||(j==="-"||j==="+")&&/[eE]/.test(H)?(N.push(j),H=j,F+1):/[^\d]/.test(j)?(Ve(N.join("")),G=h,F):(N.push(j),H=j,F+1)}function Et(){if(/[^\d\w_]/.test(j)){var Ae=N.join("");return ye[Ae]?G=_:Fe[Ae]?G=L:G=T,Ve(N.join("")),G=h,F}return N.push(j),H=j,F+1}}},3508:function(i,a,o){var s=o(6852);s=s.slice().filter(function(u){return!/^(gl\_|texture)/.test(u)}),i.exports=s.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},6852:function(i){i.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},7932:function(i,a,o){var s=o(620);i.exports=s.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},620:function(i){i.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},7827:function(i){i.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905:function(i,a,o){var s=o(5874);i.exports=u;function u(l,f){var c=s(f),h=[];return h=h.concat(c(l)),h=h.concat(c(null)),h}},3236:function(i){i.exports=function(a){typeof a=="string"&&(a=[a]);for(var o=[].slice.call(arguments,1),s=[],u=0;u>1,b=-7,v=u?f-1:0,k=u?-1:1,E=o[s+v];for(v+=k,c=E&(1<<-b)-1,E>>=-b,b+=d;b>0;c=c*256+o[s+v],v+=k,b-=8);for(h=c&(1<<-b)-1,c>>=-b,b+=l;b>0;h=h*256+o[s+v],v+=k,b-=8);if(c===0)c=1-x;else{if(c===p)return h?NaN:(E?-1:1)*(1/0);h=h+Math.pow(2,l),c=c-x}return(E?-1:1)*h*Math.pow(2,c-l)},a.write=function(o,s,u,l,f,c){var h,d,p,x=c*8-f-1,b=(1<>1,k=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=l?0:c-1,T=l?1:-1,L=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(d=isNaN(s)?1:0,h=b):(h=Math.floor(Math.log(s)/Math.LN2),s*(p=Math.pow(2,-h))<1&&(h--,p*=2),h+v>=1?s+=k/p:s+=k*Math.pow(2,1-v),s*p>=2&&(h++,p/=2),h+v>=b?(d=0,h=b):h+v>=1?(d=(s*p-1)*Math.pow(2,f),h=h+v):(d=s*Math.pow(2,v-1)*Math.pow(2,f),h=0));f>=8;o[u+E]=d&255,E+=T,d/=256,f-=8);for(h=h<0;o[u+E]=h&255,E+=T,h/=256,x-=8);o[u+E-T]|=L*128}},8954:function(i,a,o){"use strict";i.exports=v;var s=o(3250),u=o(6803).Fw;function l(k,E,T){this.vertices=k,this.adjacent=E,this.boundary=T,this.lastVisited=-1}l.prototype.flip=function(){var k=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=k;var E=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=E};function f(k,E,T){this.vertices=k,this.cell=E,this.index=T}function c(k,E){return u(k.vertices,E.vertices)}function h(k){return function(){var E=this.tuple;return k.apply(this,E)}}function d(k){var E=s[k+1];return E||(E=s),h(E)}var p=[];function x(k,E,T){this.dimension=k,this.vertices=E,this.simplices=T,this.interior=T.filter(function(C){return!C.boundary}),this.tuple=new Array(k+1);for(var L=0;L<=k;++L)this.tuple[L]=this.vertices[L];var _=p[k];_||(_=p[k]=d(k)),this.orient=_}var b=x.prototype;b.handleBoundaryDegeneracy=function(k,E){var T=this.dimension,L=this.vertices.length-1,_=this.tuple,C=this.vertices,S=[k];for(k.lastVisited=-L;S.length>0;){k=S.pop();for(var m=k.adjacent,P=0;P<=T;++P){var A=m[P];if(!(!A.boundary||A.lastVisited<=-L)){for(var B=A.vertices,F=0;F<=T;++F){var U=B[F];U<0?_[F]=E:_[F]=C[U]}var G=this.orient();if(G>0)return A;A.lastVisited=-L,G===0&&S.push(A)}}}return null},b.walk=function(k,E){var T=this.vertices.length-1,L=this.dimension,_=this.vertices,C=this.tuple,S=E?this.interior.length*Math.random()|0:this.interior.length-1,m=this.interior[S];e:for(;!m.boundary;){for(var P=m.vertices,A=m.adjacent,B=0;B<=L;++B)C[B]=_[P[B]];m.lastVisited=T;for(var B=0;B<=L;++B){var F=A[B];if(!(F.lastVisited>=T)){var U=C[B];C[B]=k;var G=this.orient();if(C[B]=U,G<0){m=F;continue e}else F.boundary?F.lastVisited=-T:F.lastVisited=T}}return}return m},b.addPeaks=function(k,E){var T=this.vertices.length-1,L=this.dimension,_=this.vertices,C=this.tuple,S=this.interior,m=this.simplices,P=[E];E.lastVisited=T,E.vertices[E.vertices.indexOf(-1)]=T,E.boundary=!1,S.push(E);for(var A=[];P.length>0;){var E=P.pop(),B=E.vertices,F=E.adjacent,U=B.indexOf(T);if(!(U<0)){for(var G=0;G<=L;++G)if(G!==U){var j=F[G];if(!(!j.boundary||j.lastVisited>=T)){var H=j.vertices;if(j.lastVisited!==-T){for(var N=0,W=0;W<=L;++W)H[W]<0?(N=W,C[W]=k):C[W]=_[H[W]];var re=this.orient();if(re>0){H[N]=T,j.boundary=!1,S.push(j),P.push(j),j.lastVisited=T;continue}else j.lastVisited=-T}var ae=j.adjacent,be=B.slice(),Ce=F.slice(),Le=new l(be,Ce,!0);m.push(Le);var pe=ae.indexOf(E);if(!(pe<0)){ae[pe]=Le,Ce[U]=j,be[G]=-1,Ce[G]=E,F[G]=Le,Le.flip();for(var W=0;W<=L;++W){var te=be[W];if(!(te<0||te===T)){for(var ke=new Array(L-1),Ee=0,Me=0;Me<=L;++Me){var Ne=be[Me];Ne<0||Me===W||(ke[Ee++]=Ne)}A.push(new f(ke,Le,W))}}}}}}}A.sort(c);for(var G=0;G+1=0?S[P++]=m[B]:A=B&1;if(A===(k&1)){var F=S[0];S[0]=S[1],S[1]=F}E.push(S)}}return E};function v(k,E){var T=k.length;if(T===0)throw new Error("Must have at least d+1 points");var L=k[0].length;if(T<=L)throw new Error("Must input at least d+1 points");var _=k.slice(0,L+1),C=s.apply(void 0,_);if(C===0)throw new Error("Input not in general position");for(var S=new Array(L+1),m=0;m<=L;++m)S[m]=m;C<0&&(S[0]=1,S[1]=0);for(var P=new l(S,new Array(L+1),!1),A=P.adjacent,B=new Array(L+2),m=0;m<=L;++m){for(var F=S.slice(),U=0;U<=L;++U)U===m&&(F[U]=-1);var G=F[0];F[0]=F[1],F[1]=G;var j=new l(F,new Array(L+1),!0);A[m]=j,B[m]=j}B[L+1]=P;for(var m=0;m<=L;++m)for(var F=A[m].vertices,H=A[m].adjacent,U=0;U<=L;++U){var N=F[U];if(N<0){H[U]=P;continue}for(var W=0;W<=L;++W)A[W].vertices.indexOf(N)<0&&(H[U]=A[W])}for(var re=new x(L,_,B),ae=!!E,m=L+1;m3*(B+1)?x(this,A):this.left.insert(A):this.left=C([A]);else if(A[0]>this.mid)this.right?4*(this.right.count+1)>3*(B+1)?x(this,A):this.right.insert(A):this.right=C([A]);else{var F=s.ge(this.leftPoints,A,L),U=s.ge(this.rightPoints,A,_);this.leftPoints.splice(F,0,A),this.rightPoints.splice(U,0,A)}},h.remove=function(A){var B=this.count-this.leftPoints;if(A[1]3*(B-1))return b(this,A);var U=this.left.remove(A);return U===f?(this.left=null,this.count-=1,l):(U===l&&(this.count-=1),U)}else if(A[0]>this.mid){if(!this.right)return u;var G=this.left?this.left.count:0;if(4*G>3*(B-1))return b(this,A);var U=this.right.remove(A);return U===f?(this.right=null,this.count-=1,l):(U===l&&(this.count-=1),U)}else{if(this.count===1)return this.leftPoints[0]===A?f:u;if(this.leftPoints.length===1&&this.leftPoints[0]===A){if(this.left&&this.right){for(var j=this,H=this.left;H.right;)j=H,H=H.right;if(j===this)H.right=this.right;else{var N=this.left,U=this.right;j.count-=H.count,j.right=H.left,H.left=N,H.right=U}d(this,H),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?d(this,this.left):d(this,this.right);return l}for(var N=s.ge(this.leftPoints,A,L);N=0&&A[U][1]>=B;--U){var G=F(A[U]);if(G)return G}}function E(A,B){for(var F=0;Fthis.mid){if(this.right){var F=this.right.queryPoint(A,B);if(F)return F}return k(this.rightPoints,A,B)}else return E(this.leftPoints,B)},h.queryInterval=function(A,B,F){if(Athis.mid&&this.right){var U=this.right.queryInterval(A,B,F);if(U)return U}return Bthis.mid?k(this.rightPoints,A,F):E(this.leftPoints,F)};function T(A,B){return A-B}function L(A,B){var F=A[0]-B[0];return F||A[1]-B[1]}function _(A,B){var F=A[1]-B[1];return F||A[0]-B[0]}function C(A){if(A.length===0)return null;for(var B=[],F=0;F>1],G=[],j=[],H=[],F=0;F13)&&s!==32&&s!==133&&s!==160&&s!==5760&&s!==6158&&(s<8192||s>8205)&&s!==8232&&s!==8233&&s!==8239&&s!==8287&&s!==8288&&s!==12288&&s!==65279)return!1;return!0}},395:function(i){function a(o,s,u){return o*(1-u)+s*u}i.exports=a},2652:function(i,a,o){var s=o(4335),u=o(6864),l=o(1903),f=o(9921),c=o(7608),h=o(5665),d={length:o(1387),normalize:o(3536),dot:o(244),cross:o(5911)},p=u(),x=u(),b=[0,0,0,0],v=[[0,0,0],[0,0,0],[0,0,0]],k=[0,0,0];i.exports=function(C,S,m,P,A,B){if(S||(S=[0,0,0]),m||(m=[0,0,0]),P||(P=[0,0,0]),A||(A=[0,0,0,1]),B||(B=[0,0,0,1]),!s(p,C)||(l(x,p),x[3]=0,x[7]=0,x[11]=0,x[15]=1,Math.abs(f(x)<1e-8)))return!1;var F=p[3],U=p[7],G=p[11],j=p[12],H=p[13],N=p[14],W=p[15];if(F!==0||U!==0||G!==0){b[0]=F,b[1]=U,b[2]=G,b[3]=W;var re=c(x,x);if(!re)return!1;h(x,x),E(A,b,x)}else A[0]=A[1]=A[2]=0,A[3]=1;if(S[0]=j,S[1]=H,S[2]=N,T(v,p),m[0]=d.length(v[0]),d.normalize(v[0],v[0]),P[0]=d.dot(v[0],v[1]),L(v[1],v[1],v[0],1,-P[0]),m[1]=d.length(v[1]),d.normalize(v[1],v[1]),P[0]/=m[1],P[1]=d.dot(v[0],v[2]),L(v[2],v[2],v[0],1,-P[1]),P[2]=d.dot(v[1],v[2]),L(v[2],v[2],v[1],1,-P[2]),m[2]=d.length(v[2]),d.normalize(v[2],v[2]),P[1]/=m[2],P[2]/=m[2],d.cross(k,v[1],v[2]),d.dot(v[0],k)<0)for(var ae=0;ae<3;ae++)m[ae]*=-1,v[ae][0]*=-1,v[ae][1]*=-1,v[ae][2]*=-1;return B[0]=.5*Math.sqrt(Math.max(1+v[0][0]-v[1][1]-v[2][2],0)),B[1]=.5*Math.sqrt(Math.max(1-v[0][0]+v[1][1]-v[2][2],0)),B[2]=.5*Math.sqrt(Math.max(1-v[0][0]-v[1][1]+v[2][2],0)),B[3]=.5*Math.sqrt(Math.max(1+v[0][0]+v[1][1]+v[2][2],0)),v[2][1]>v[1][2]&&(B[0]=-B[0]),v[0][2]>v[2][0]&&(B[1]=-B[1]),v[1][0]>v[0][1]&&(B[2]=-B[2]),!0};function E(_,C,S){var m=C[0],P=C[1],A=C[2],B=C[3];return _[0]=S[0]*m+S[4]*P+S[8]*A+S[12]*B,_[1]=S[1]*m+S[5]*P+S[9]*A+S[13]*B,_[2]=S[2]*m+S[6]*P+S[10]*A+S[14]*B,_[3]=S[3]*m+S[7]*P+S[11]*A+S[15]*B,_}function T(_,C){_[0][0]=C[0],_[0][1]=C[1],_[0][2]=C[2],_[1][0]=C[4],_[1][1]=C[5],_[1][2]=C[6],_[2][0]=C[8],_[2][1]=C[9],_[2][2]=C[10]}function L(_,C,S,m,P){_[0]=C[0]*m+S[0]*P,_[1]=C[1]*m+S[1]*P,_[2]=C[2]*m+S[2]*P}},4335:function(i){i.exports=function(o,s){var u=s[15];if(u===0)return!1;for(var l=1/u,f=0;f<16;f++)o[f]=s[f]*l;return!0}},7442:function(i,a,o){var s=o(6658),u=o(7182),l=o(2652),f=o(9921),c=o(8648),h=b(),d=b(),p=b();i.exports=x;function x(E,T,L,_){if(f(T)===0||f(L)===0)return!1;var C=l(T,h.translate,h.scale,h.skew,h.perspective,h.quaternion),S=l(L,d.translate,d.scale,d.skew,d.perspective,d.quaternion);return!C||!S?!1:(s(p.translate,h.translate,d.translate,_),s(p.skew,h.skew,d.skew,_),s(p.scale,h.scale,d.scale,_),s(p.perspective,h.perspective,d.perspective,_),c(p.quaternion,h.quaternion,d.quaternion,_),u(E,p.translate,p.scale,p.skew,p.perspective,p.quaternion),!0)}function b(){return{translate:v(),scale:v(1),skew:v(),perspective:k(),quaternion:k()}}function v(E){return[E||0,E||0,E||0]}function k(){return[0,0,0,1]}},7182:function(i,a,o){var s={identity:o(7894),translate:o(7656),multiply:o(6760),create:o(6864),scale:o(2504),fromRotationTranslation:o(6743)},u=s.create(),l=s.create();i.exports=function(c,h,d,p,x,b){return s.identity(c),s.fromRotationTranslation(c,b,h),c[3]=x[0],c[7]=x[1],c[11]=x[2],c[15]=x[3],s.identity(l),p[2]!==0&&(l[9]=p[2],s.multiply(c,c,l)),p[1]!==0&&(l[9]=0,l[8]=p[1],s.multiply(c,c,l)),p[0]!==0&&(l[8]=0,l[4]=p[0],s.multiply(c,c,l)),s.scale(c,c,d),c}},1811:function(i,a,o){"use strict";var s=o(2478),u=o(7442),l=o(7608),f=o(5567),c=o(2408),h=o(7089),d=o(6582),p=o(7656),x=o(2504),b=o(3536),v=[0,0,0];i.exports=L;function k(_){this._components=_.slice(),this._time=[0],this.prevMatrix=_.slice(),this.nextMatrix=_.slice(),this.computedMatrix=_.slice(),this.computedInverse=_.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var E=k.prototype;E.recalcMatrix=function(_){var C=this._time,S=s.le(C,_),m=this.computedMatrix;if(!(S<0)){var P=this._components;if(S===C.length-1)for(var A=16*S,B=0;B<16;++B)m[B]=P[A++];else{for(var F=C[S+1]-C[S],A=16*S,U=this.prevMatrix,G=!0,B=0;B<16;++B)U[B]=P[A++];for(var j=this.nextMatrix,B=0;B<16;++B)j[B]=P[A++],G=G&&U[B]===j[B];if(F<1e-6||G)for(var B=0;B<16;++B)m[B]=U[B];else u(m,U,j,(_-C[S])/F)}var H=this.computedUp;H[0]=m[1],H[1]=m[5],H[2]=m[9],b(H,H);var N=this.computedInverse;l(N,m);var W=this.computedEye,re=N[15];W[0]=N[12]/re,W[1]=N[13]/re,W[2]=N[14]/re;for(var ae=this.computedCenter,be=Math.exp(this.computedRadius[0]),B=0;B<3;++B)ae[B]=W[B]-m[2+4*B]*be}},E.idle=function(_){if(!(_1&&s(l[d[v-2]],l[d[v-1]],b)<=0;)v-=1,d.pop();for(d.push(x),v=p.length;v>1&&s(l[p[v-2]],l[p[v-1]],b)>=0;)v-=1,p.pop();p.push(x)}for(var k=new Array(p.length+d.length-2),E=0,c=0,T=d.length;c0;--L)k[E++]=p[L];return k}},351:function(i,a,o){"use strict";i.exports=u;var s=o(4687);function u(l,f){f||(f=l,l=window);var c=0,h=0,d=0,p={shift:!1,alt:!1,control:!1,meta:!1},x=!1;function b(A){var B=!1;return"altKey"in A&&(B=B||A.altKey!==p.alt,p.alt=!!A.altKey),"shiftKey"in A&&(B=B||A.shiftKey!==p.shift,p.shift=!!A.shiftKey),"ctrlKey"in A&&(B=B||A.ctrlKey!==p.control,p.control=!!A.ctrlKey),"metaKey"in A&&(B=B||A.metaKey!==p.meta,p.meta=!!A.metaKey),B}function v(A,B){var F=s.x(B),U=s.y(B);"buttons"in B&&(A=B.buttons|0),(A!==c||F!==h||U!==d||b(B))&&(c=A|0,h=F||0,d=U||0,f&&f(c,h,d,p))}function k(A){v(0,A)}function E(){(c||h||d||p.shift||p.alt||p.meta||p.control)&&(h=d=0,c=0,p.shift=p.alt=p.control=p.meta=!1,f&&f(0,0,0,p))}function T(A){b(A)&&f&&f(c,h,d,p)}function L(A){s.buttons(A)===0?v(0,A):v(c,A)}function _(A){v(c|s.buttons(A),A)}function C(A){v(c&~s.buttons(A),A)}function S(){x||(x=!0,l.addEventListener("mousemove",L),l.addEventListener("mousedown",_),l.addEventListener("mouseup",C),l.addEventListener("mouseleave",k),l.addEventListener("mouseenter",k),l.addEventListener("mouseout",k),l.addEventListener("mouseover",k),l.addEventListener("blur",E),l.addEventListener("keyup",T),l.addEventListener("keydown",T),l.addEventListener("keypress",T),l!==window&&(window.addEventListener("blur",E),window.addEventListener("keyup",T),window.addEventListener("keydown",T),window.addEventListener("keypress",T)))}function m(){x&&(x=!1,l.removeEventListener("mousemove",L),l.removeEventListener("mousedown",_),l.removeEventListener("mouseup",C),l.removeEventListener("mouseleave",k),l.removeEventListener("mouseenter",k),l.removeEventListener("mouseout",k),l.removeEventListener("mouseover",k),l.removeEventListener("blur",E),l.removeEventListener("keyup",T),l.removeEventListener("keydown",T),l.removeEventListener("keypress",T),l!==window&&(window.removeEventListener("blur",E),window.removeEventListener("keyup",T),window.removeEventListener("keydown",T),window.removeEventListener("keypress",T)))}S();var P={element:l};return Object.defineProperties(P,{enabled:{get:function(){return x},set:function(A){A?S():m()},enumerable:!0},buttons:{get:function(){return c},enumerable:!0},x:{get:function(){return h},enumerable:!0},y:{get:function(){return d},enumerable:!0},mods:{get:function(){return p},enumerable:!0}}),P}},24:function(i){var a={left:0,top:0};i.exports=o;function o(u,l,f){l=l||u.currentTarget||u.srcElement,Array.isArray(f)||(f=[0,0]);var c=u.clientX||0,h=u.clientY||0,d=s(l);return f[0]=c-d.left,f[1]=h-d.top,f}function s(u){return u===window||u===document||u===document.body?a:u.getBoundingClientRect()}},4687:function(i,a){"use strict";function o(f){if(typeof f=="object"){if("buttons"in f)return f.buttons;if("which"in f){var c=f.which;if(c===2)return 4;if(c===3)return 2;if(c>0)return 1<=0)return 1<0){if(Ce=1,te[Ee++]=p(S[B],E,T,L),B+=re,_>0)for(be=1,F=S[B],Me=te[Ee]=p(F,E,T,L),ye=te[Ee+Ne],Je=te[Ee+Ve],Nt=te[Ee+nt],(Me!==ye||Me!==Je||Me!==Nt)&&(G=S[B+U],H=S[B+j],W=S[B+N],h(be,Ce,F,G,H,W,Me,ye,Je,Nt,E,T,L),it=ke[Ee]=Le++),Ee+=1,B+=re,be=2;be<_;++be)F=S[B],Me=te[Ee]=p(F,E,T,L),ye=te[Ee+Ne],Je=te[Ee+Ve],Nt=te[Ee+nt],(Me!==ye||Me!==Je||Me!==Nt)&&(G=S[B+U],H=S[B+j],W=S[B+N],h(be,Ce,F,G,H,W,Me,ye,Je,Nt,E,T,L),it=ke[Ee]=Le++,Nt!==ye&&d(ke[Ee+Ne],it,W,G,Nt,ye,E,T,L)),Ee+=1,B+=re;for(B+=ae,Ee=0,Ye=Ne,Ne=Fe,Fe=Ye,Ye=Ve,Ve=ce,ce=Ye,Ye=nt,nt=gt,gt=Ye,Ce=2;Ce0)for(be=1,F=S[B],Me=te[Ee]=p(F,E,T,L),ye=te[Ee+Ne],Je=te[Ee+Ve],Nt=te[Ee+nt],(Me!==ye||Me!==Je||Me!==Nt)&&(G=S[B+U],H=S[B+j],W=S[B+N],h(be,Ce,F,G,H,W,Me,ye,Je,Nt,E,T,L),it=ke[Ee]=Le++,Nt!==Je&&d(ke[Ee+Ve],it,H,W,Je,Nt,E,T,L)),Ee+=1,B+=re,be=2;be<_;++be)F=S[B],Me=te[Ee]=p(F,E,T,L),ye=te[Ee+Ne],Je=te[Ee+Ve],Nt=te[Ee+nt],(Me!==ye||Me!==Je||Me!==Nt)&&(G=S[B+U],H=S[B+j],W=S[B+N],h(be,Ce,F,G,H,W,Me,ye,Je,Nt,E,T,L),it=ke[Ee]=Le++,Nt!==Je&&d(ke[Ee+Ve],it,H,W,Je,Nt,E,T,L),Nt!==ye&&d(ke[Ee+Ne],it,W,G,Nt,ye,E,T,L)),Ee+=1,B+=re;Ce&1&&(Ee=0),Ye=Ne,Ne=Fe,Fe=Ye,Ye=Ve,Ve=ce,ce=Ye,Ye=nt,nt=gt,gt=Ye,B+=ae}}b(ke),b(te)}},"false,1,0":function(h,d,p,x,b){return function(k,E,T,L){var _=k.shape[0]|0,C=k.shape[1]|0,S=k.data,m=k.offset|0,P=k.stride[0]|0,A=k.stride[1]|0,B=m,F,U=-P|0,G=0,j=-A|0,H=0,N=-P-A|0,W=0,re=A|0,ae=P-A*C|0,be=0,Ce=0,Le=0,pe=2*C|0,te=x(pe),ke=x(pe),Ee=0,Me=0,Ne=-1,Fe=-1,ye=0,Ve=-C|0,ce=C|0,Je=0,nt=-C-1|0,gt=C-1|0,Nt=0,it=0,Ye=0;for(Ce=0;Ce0){if(be=1,te[Ee++]=p(S[B],E,T,L),B+=re,C>0)for(Ce=1,F=S[B],Me=te[Ee]=p(F,E,T,L),Je=te[Ee+Ve],ye=te[Ee+Ne],Nt=te[Ee+nt],(Me!==Je||Me!==ye||Me!==Nt)&&(G=S[B+U],H=S[B+j],W=S[B+N],h(be,Ce,F,G,H,W,Me,Je,ye,Nt,E,T,L),it=ke[Ee]=Le++),Ee+=1,B+=re,Ce=2;Ce0)for(Ce=1,F=S[B],Me=te[Ee]=p(F,E,T,L),Je=te[Ee+Ve],ye=te[Ee+Ne],Nt=te[Ee+nt],(Me!==Je||Me!==ye||Me!==Nt)&&(G=S[B+U],H=S[B+j],W=S[B+N],h(be,Ce,F,G,H,W,Me,Je,ye,Nt,E,T,L),it=ke[Ee]=Le++,Nt!==Je&&d(ke[Ee+Ve],it,W,G,Nt,Je,E,T,L)),Ee+=1,B+=re,Ce=2;Ce 0"),typeof c.vertex!="function"&&h("Must specify vertex creation function"),typeof c.cell!="function"&&h("Must specify cell creation function"),typeof c.phase!="function"&&h("Must specify phase function");for(var b=c.getters||[],v=new Array(p),k=0;k=0?v[k]=!0:v[k]=!1;return l(c.vertex,c.cell,c.phase,x,d,v)}},6199:function(i,a,o){"use strict";var s=o(1338),u={zero:function(L,_,C,S){var m=L[0],P=C[0];S|=0;var A=0,B=P;for(A=0;A2&&A[1]>2&&S(P.pick(-1,-1).lo(1,1).hi(A[0]-2,A[1]-2),m.pick(-1,-1,0).lo(1,1).hi(A[0]-2,A[1]-2),m.pick(-1,-1,1).lo(1,1).hi(A[0]-2,A[1]-2)),A[1]>2&&(C(P.pick(0,-1).lo(1).hi(A[1]-2),m.pick(0,-1,1).lo(1).hi(A[1]-2)),_(m.pick(0,-1,0).lo(1).hi(A[1]-2))),A[1]>2&&(C(P.pick(A[0]-1,-1).lo(1).hi(A[1]-2),m.pick(A[0]-1,-1,1).lo(1).hi(A[1]-2)),_(m.pick(A[0]-1,-1,0).lo(1).hi(A[1]-2))),A[0]>2&&(C(P.pick(-1,0).lo(1).hi(A[0]-2),m.pick(-1,0,0).lo(1).hi(A[0]-2)),_(m.pick(-1,0,1).lo(1).hi(A[0]-2))),A[0]>2&&(C(P.pick(-1,A[1]-1).lo(1).hi(A[0]-2),m.pick(-1,A[1]-1,0).lo(1).hi(A[0]-2)),_(m.pick(-1,A[1]-1,1).lo(1).hi(A[0]-2))),m.set(0,0,0,0),m.set(0,0,1,0),m.set(A[0]-1,0,0,0),m.set(A[0]-1,0,1,0),m.set(0,A[1]-1,0,0),m.set(0,A[1]-1,1,0),m.set(A[0]-1,A[1]-1,0,0),m.set(A[0]-1,A[1]-1,1,0),m}}function T(L){var _=L.join(),A=p[_];if(A)return A;for(var C=L.length,S=[b,v],m=1;m<=C;++m)S.push(k(m));var P=E,A=P.apply(void 0,S);return p[_]=A,A}i.exports=function(_,C,S){if(Array.isArray(S)||(typeof S=="string"?S=s(C.dimension,S):S=s(C.dimension,"clamp")),C.size===0)return _;if(C.dimension===0)return _.set(0),_;var m=T(S);return m(_,C)}},4317:function(i){"use strict";function a(f,c){var h=Math.floor(c),d=c-h,p=0<=h&&h0;){H<64?(_=H,H=0):(_=64,H-=64);for(var N=p[1]|0;N>0;){N<64?(C=N,N=0):(C=64,N-=64),v=G+H*m+N*P,T=j+H*B+N*F;var W=0,re=0,ae=0,be=A,Ce=m-S*A,Le=P-_*m,pe=U,te=B-S*U,ke=F-_*B;for(ae=0;ae0;){F<64?(_=F,F=0):(_=64,F-=64);for(var U=p[0]|0;U>0;){U<64?(L=U,U=0):(L=64,U-=64),v=A+F*S+U*C,T=B+F*P+U*m;var G=0,j=0,H=S,N=C-_*S,W=P,re=m-_*P;for(j=0;j0;){j<64?(C=j,j=0):(C=64,j-=64);for(var H=p[0]|0;H>0;){H<64?(L=H,H=0):(L=64,H-=64);for(var N=p[1]|0;N>0;){N<64?(_=N,N=0):(_=64,N-=64),v=U+j*P+H*S+N*m,T=G+j*F+H*A+N*B;var W=0,re=0,ae=0,be=P,Ce=S-C*P,Le=m-L*S,pe=F,te=A-C*F,ke=B-L*A;for(ae=0;ae<_;++ae){for(re=0;rek;){W=0,re=G-_;t:for(H=0;Hbe)break t;re+=A,W+=B}for(W=G,re=G-_,H=0;H>1,N=H-U,W=H+U,re=G,ae=N,be=H,Ce=W,Le=j,pe=E+1,te=T-1,ke=!0,Ee,Me,Ne,Fe,ye,Ve,ce,Je,nt,gt=0,Nt=0,it=0,Ye,kt,Tt,St,Dt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt=P,hr=b(Yt),yr=b(Yt);kt=C*re,Tt=C*ae,zt=_;e:for(Ye=0;Ye0){Me=re,re=ae,ae=Me;break e}if(it<0)break e;zt+=B}kt=C*Ce,Tt=C*Le,zt=_;e:for(Ye=0;Ye0){Me=Ce,Ce=Le,Le=Me;break e}if(it<0)break e;zt+=B}kt=C*re,Tt=C*be,zt=_;e:for(Ye=0;Ye0){Me=re,re=be,be=Me;break e}if(it<0)break e;zt+=B}kt=C*ae,Tt=C*be,zt=_;e:for(Ye=0;Ye0){Me=ae,ae=be,be=Me;break e}if(it<0)break e;zt+=B}kt=C*re,Tt=C*Ce,zt=_;e:for(Ye=0;Ye0){Me=re,re=Ce,Ce=Me;break e}if(it<0)break e;zt+=B}kt=C*be,Tt=C*Ce,zt=_;e:for(Ye=0;Ye0){Me=be,be=Ce,Ce=Me;break e}if(it<0)break e;zt+=B}kt=C*ae,Tt=C*Le,zt=_;e:for(Ye=0;Ye0){Me=ae,ae=Le,Le=Me;break e}if(it<0)break e;zt+=B}kt=C*ae,Tt=C*be,zt=_;e:for(Ye=0;Ye0){Me=ae,ae=be,be=Me;break e}if(it<0)break e;zt+=B}kt=C*Ce,Tt=C*Le,zt=_;e:for(Ye=0;Ye0){Me=Ce,Ce=Le,Le=Me;break e}if(it<0)break e;zt+=B}for(kt=C*re,Tt=C*ae,St=C*be,Dt=C*Ce,Zt=C*Le,Et=C*G,Ae=C*H,at=C*j,$e=0,zt=_,Ye=0;Ye0)te--;else if(it<0){for(kt=C*Ve,Tt=C*pe,St=C*te,zt=_,Ye=0;Ye0)for(;;){ce=_+te*C,$e=0;e:for(Ye=0;Ye0){if(--tej){e:for(;;){for(ce=_+pe*C,$e=0,zt=_,Ye=0;Ye1&&k?T(v,k[0],k[1]):T(v)}var d={"uint32,1,0":function(x,b){return function(v){var k=v.data,E=v.offset|0,T=v.shape,L=v.stride,_=L[0]|0,C=T[0]|0,S=L[1]|0,m=T[1]|0,P=S,A=S,B=1;C<=32?x(0,C-1,k,E,_,S,C,m,P,A,B):b(0,C-1,k,E,_,S,C,m,P,A,B)}}};function p(x,b){var v=[b,x].join(","),k=d[v],E=f(x,b),T=h(x,b,E);return k(E,T)}i.exports=p},446:function(i,a,o){"use strict";var s=o(7640),u={};function l(f){var c=f.order,h=f.dtype,d=[c,h],p=d.join(":"),x=u[p];return x||(u[p]=x=s(c,h)),x(f),f}i.exports=l},9618:function(i,a,o){var s=o(7163),u=typeof Float64Array!="undefined";function l(b,v){return b[0]-v[0]}function f(){var b=this.stride,v=new Array(b.length),k;for(k=0;k=0&&(S=_|0,C+=P*S,m-=S),new E(this.data,m,P,C)},T.step=function(_){var C=this.shape[0],S=this.stride[0],m=this.offset,P=0,A=Math.ceil;return typeof _=="number"&&(P=_|0,P<0?(m+=S*(C-1),C=A(-C/P)):C=A(C/P),S*=P),new E(this.data,C,S,m)},T.transpose=function(_){_=_===void 0?0:_|0;var C=this.shape,S=this.stride;return new E(this.data,C[_],S[_],this.offset)},T.pick=function(_){var C=[],S=[],m=this.offset;typeof _=="number"&&_>=0?m=m+this.stride[0]*_|0:(C.push(this.shape[0]),S.push(this.stride[0]));var P=v[C.length+1];return P(this.data,C,S,m)},function(_,C,S,m){return new E(_,C[0],S[0],m)}},2:function(b,v,k){function E(L,_,C,S,m,P){this.data=L,this.shape=[_,C],this.stride=[S,m],this.offset=P|0}var T=E.prototype;return T.dtype=b,T.dimension=2,Object.defineProperty(T,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(T,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),T.set=function(_,C,S){return b==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*C,S):this.data[this.offset+this.stride[0]*_+this.stride[1]*C]=S},T.get=function(_,C){return b==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*C):this.data[this.offset+this.stride[0]*_+this.stride[1]*C]},T.index=function(_,C){return this.offset+this.stride[0]*_+this.stride[1]*C},T.hi=function(_,C){return new E(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof C!="number"||C<0?this.shape[1]:C|0,this.stride[0],this.stride[1],this.offset)},T.lo=function(_,C){var S=this.offset,m=0,P=this.shape[0],A=this.shape[1],B=this.stride[0],F=this.stride[1];return typeof _=="number"&&_>=0&&(m=_|0,S+=B*m,P-=m),typeof C=="number"&&C>=0&&(m=C|0,S+=F*m,A-=m),new E(this.data,P,A,B,F,S)},T.step=function(_,C){var S=this.shape[0],m=this.shape[1],P=this.stride[0],A=this.stride[1],B=this.offset,F=0,U=Math.ceil;return typeof _=="number"&&(F=_|0,F<0?(B+=P*(S-1),S=U(-S/F)):S=U(S/F),P*=F),typeof C=="number"&&(F=C|0,F<0?(B+=A*(m-1),m=U(-m/F)):m=U(m/F),A*=F),new E(this.data,S,m,P,A,B)},T.transpose=function(_,C){_=_===void 0?0:_|0,C=C===void 0?1:C|0;var S=this.shape,m=this.stride;return new E(this.data,S[_],S[C],m[_],m[C],this.offset)},T.pick=function(_,C){var S=[],m=[],P=this.offset;typeof _=="number"&&_>=0?P=P+this.stride[0]*_|0:(S.push(this.shape[0]),m.push(this.stride[0])),typeof C=="number"&&C>=0?P=P+this.stride[1]*C|0:(S.push(this.shape[1]),m.push(this.stride[1]));var A=v[S.length+1];return A(this.data,S,m,P)},function(_,C,S,m){return new E(_,C[0],C[1],S[0],S[1],m)}},3:function(b,v,k){function E(L,_,C,S,m,P,A,B){this.data=L,this.shape=[_,C,S],this.stride=[m,P,A],this.offset=B|0}var T=E.prototype;return T.dtype=b,T.dimension=3,Object.defineProperty(T,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(T,"order",{get:function(){var _=Math.abs(this.stride[0]),C=Math.abs(this.stride[1]),S=Math.abs(this.stride[2]);return _>C?C>S?[2,1,0]:_>S?[1,2,0]:[1,0,2]:_>S?[2,0,1]:S>C?[0,1,2]:[0,2,1]}}),T.set=function(_,C,S,m){return b==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S,m):this.data[this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S]=m},T.get=function(_,C,S){return b==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S):this.data[this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S]},T.index=function(_,C,S){return this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S},T.hi=function(_,C,S){return new E(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof C!="number"||C<0?this.shape[1]:C|0,typeof S!="number"||S<0?this.shape[2]:S|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},T.lo=function(_,C,S){var m=this.offset,P=0,A=this.shape[0],B=this.shape[1],F=this.shape[2],U=this.stride[0],G=this.stride[1],j=this.stride[2];return typeof _=="number"&&_>=0&&(P=_|0,m+=U*P,A-=P),typeof C=="number"&&C>=0&&(P=C|0,m+=G*P,B-=P),typeof S=="number"&&S>=0&&(P=S|0,m+=j*P,F-=P),new E(this.data,A,B,F,U,G,j,m)},T.step=function(_,C,S){var m=this.shape[0],P=this.shape[1],A=this.shape[2],B=this.stride[0],F=this.stride[1],U=this.stride[2],G=this.offset,j=0,H=Math.ceil;return typeof _=="number"&&(j=_|0,j<0?(G+=B*(m-1),m=H(-m/j)):m=H(m/j),B*=j),typeof C=="number"&&(j=C|0,j<0?(G+=F*(P-1),P=H(-P/j)):P=H(P/j),F*=j),typeof S=="number"&&(j=S|0,j<0?(G+=U*(A-1),A=H(-A/j)):A=H(A/j),U*=j),new E(this.data,m,P,A,B,F,U,G)},T.transpose=function(_,C,S){_=_===void 0?0:_|0,C=C===void 0?1:C|0,S=S===void 0?2:S|0;var m=this.shape,P=this.stride;return new E(this.data,m[_],m[C],m[S],P[_],P[C],P[S],this.offset)},T.pick=function(_,C,S){var m=[],P=[],A=this.offset;typeof _=="number"&&_>=0?A=A+this.stride[0]*_|0:(m.push(this.shape[0]),P.push(this.stride[0])),typeof C=="number"&&C>=0?A=A+this.stride[1]*C|0:(m.push(this.shape[1]),P.push(this.stride[1])),typeof S=="number"&&S>=0?A=A+this.stride[2]*S|0:(m.push(this.shape[2]),P.push(this.stride[2]));var B=v[m.length+1];return B(this.data,m,P,A)},function(_,C,S,m){return new E(_,C[0],C[1],C[2],S[0],S[1],S[2],m)}},4:function(b,v,k){function E(L,_,C,S,m,P,A,B,F,U){this.data=L,this.shape=[_,C,S,m],this.stride=[P,A,B,F],this.offset=U|0}var T=E.prototype;return T.dtype=b,T.dimension=4,Object.defineProperty(T,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(T,"order",{get:k}),T.set=function(_,C,S,m,P){return b==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S+this.stride[3]*m,P):this.data[this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S+this.stride[3]*m]=P},T.get=function(_,C,S,m){return b==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S+this.stride[3]*m):this.data[this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S+this.stride[3]*m]},T.index=function(_,C,S,m){return this.offset+this.stride[0]*_+this.stride[1]*C+this.stride[2]*S+this.stride[3]*m},T.hi=function(_,C,S,m){return new E(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof C!="number"||C<0?this.shape[1]:C|0,typeof S!="number"||S<0?this.shape[2]:S|0,typeof m!="number"||m<0?this.shape[3]:m|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},T.lo=function(_,C,S,m){var P=this.offset,A=0,B=this.shape[0],F=this.shape[1],U=this.shape[2],G=this.shape[3],j=this.stride[0],H=this.stride[1],N=this.stride[2],W=this.stride[3];return typeof _=="number"&&_>=0&&(A=_|0,P+=j*A,B-=A),typeof C=="number"&&C>=0&&(A=C|0,P+=H*A,F-=A),typeof S=="number"&&S>=0&&(A=S|0,P+=N*A,U-=A),typeof m=="number"&&m>=0&&(A=m|0,P+=W*A,G-=A),new E(this.data,B,F,U,G,j,H,N,W,P)},T.step=function(_,C,S,m){var P=this.shape[0],A=this.shape[1],B=this.shape[2],F=this.shape[3],U=this.stride[0],G=this.stride[1],j=this.stride[2],H=this.stride[3],N=this.offset,W=0,re=Math.ceil;return typeof _=="number"&&(W=_|0,W<0?(N+=U*(P-1),P=re(-P/W)):P=re(P/W),U*=W),typeof C=="number"&&(W=C|0,W<0?(N+=G*(A-1),A=re(-A/W)):A=re(A/W),G*=W),typeof S=="number"&&(W=S|0,W<0?(N+=j*(B-1),B=re(-B/W)):B=re(B/W),j*=W),typeof m=="number"&&(W=m|0,W<0?(N+=H*(F-1),F=re(-F/W)):F=re(F/W),H*=W),new E(this.data,P,A,B,F,U,G,j,H,N)},T.transpose=function(_,C,S,m){_=_===void 0?0:_|0,C=C===void 0?1:C|0,S=S===void 0?2:S|0,m=m===void 0?3:m|0;var P=this.shape,A=this.stride;return new E(this.data,P[_],P[C],P[S],P[m],A[_],A[C],A[S],A[m],this.offset)},T.pick=function(_,C,S,m){var P=[],A=[],B=this.offset;typeof _=="number"&&_>=0?B=B+this.stride[0]*_|0:(P.push(this.shape[0]),A.push(this.stride[0])),typeof C=="number"&&C>=0?B=B+this.stride[1]*C|0:(P.push(this.shape[1]),A.push(this.stride[1])),typeof S=="number"&&S>=0?B=B+this.stride[2]*S|0:(P.push(this.shape[2]),A.push(this.stride[2])),typeof m=="number"&&m>=0?B=B+this.stride[3]*m|0:(P.push(this.shape[3]),A.push(this.stride[3]));var F=v[P.length+1];return F(this.data,P,A,B)},function(_,C,S,m){return new E(_,C[0],C[1],C[2],C[3],S[0],S[1],S[2],S[3],m)}},5:function(v,k,E){function T(_,C,S,m,P,A,B,F,U,G,j,H){this.data=_,this.shape=[C,S,m,P,A],this.stride=[B,F,U,G,j],this.offset=H|0}var L=T.prototype;return L.dtype=v,L.dimension=5,Object.defineProperty(L,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(L,"order",{get:E}),L.set=function(C,S,m,P,A,B){return v==="generic"?this.data.set(this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A,B):this.data[this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A]=B},L.get=function(C,S,m,P,A){return v==="generic"?this.data.get(this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A):this.data[this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A]},L.index=function(C,S,m,P,A){return this.offset+this.stride[0]*C+this.stride[1]*S+this.stride[2]*m+this.stride[3]*P+this.stride[4]*A},L.hi=function(C,S,m,P,A){return new T(this.data,typeof C!="number"||C<0?this.shape[0]:C|0,typeof S!="number"||S<0?this.shape[1]:S|0,typeof m!="number"||m<0?this.shape[2]:m|0,typeof P!="number"||P<0?this.shape[3]:P|0,typeof A!="number"||A<0?this.shape[4]:A|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},L.lo=function(C,S,m,P,A){var B=this.offset,F=0,U=this.shape[0],G=this.shape[1],j=this.shape[2],H=this.shape[3],N=this.shape[4],W=this.stride[0],re=this.stride[1],ae=this.stride[2],be=this.stride[3],Ce=this.stride[4];return typeof C=="number"&&C>=0&&(F=C|0,B+=W*F,U-=F),typeof S=="number"&&S>=0&&(F=S|0,B+=re*F,G-=F),typeof m=="number"&&m>=0&&(F=m|0,B+=ae*F,j-=F),typeof P=="number"&&P>=0&&(F=P|0,B+=be*F,H-=F),typeof A=="number"&&A>=0&&(F=A|0,B+=Ce*F,N-=F),new T(this.data,U,G,j,H,N,W,re,ae,be,Ce,B)},L.step=function(C,S,m,P,A){var B=this.shape[0],F=this.shape[1],U=this.shape[2],G=this.shape[3],j=this.shape[4],H=this.stride[0],N=this.stride[1],W=this.stride[2],re=this.stride[3],ae=this.stride[4],be=this.offset,Ce=0,Le=Math.ceil;return typeof C=="number"&&(Ce=C|0,Ce<0?(be+=H*(B-1),B=Le(-B/Ce)):B=Le(B/Ce),H*=Ce),typeof S=="number"&&(Ce=S|0,Ce<0?(be+=N*(F-1),F=Le(-F/Ce)):F=Le(F/Ce),N*=Ce),typeof m=="number"&&(Ce=m|0,Ce<0?(be+=W*(U-1),U=Le(-U/Ce)):U=Le(U/Ce),W*=Ce),typeof P=="number"&&(Ce=P|0,Ce<0?(be+=re*(G-1),G=Le(-G/Ce)):G=Le(G/Ce),re*=Ce),typeof A=="number"&&(Ce=A|0,Ce<0?(be+=ae*(j-1),j=Le(-j/Ce)):j=Le(j/Ce),ae*=Ce),new T(this.data,B,F,U,G,j,H,N,W,re,ae,be)},L.transpose=function(C,S,m,P,A){C=C===void 0?0:C|0,S=S===void 0?1:S|0,m=m===void 0?2:m|0,P=P===void 0?3:P|0,A=A===void 0?4:A|0;var B=this.shape,F=this.stride;return new T(this.data,B[C],B[S],B[m],B[P],B[A],F[C],F[S],F[m],F[P],F[A],this.offset)},L.pick=function(C,S,m,P,A){var B=[],F=[],U=this.offset;typeof C=="number"&&C>=0?U=U+this.stride[0]*C|0:(B.push(this.shape[0]),F.push(this.stride[0])),typeof S=="number"&&S>=0?U=U+this.stride[1]*S|0:(B.push(this.shape[1]),F.push(this.stride[1])),typeof m=="number"&&m>=0?U=U+this.stride[2]*m|0:(B.push(this.shape[2]),F.push(this.stride[2])),typeof P=="number"&&P>=0?U=U+this.stride[3]*P|0:(B.push(this.shape[3]),F.push(this.stride[3])),typeof A=="number"&&A>=0?U=U+this.stride[4]*A|0:(B.push(this.shape[4]),F.push(this.stride[4]));var G=k[B.length+1];return G(this.data,B,F,U)},function(C,S,m,P){return new T(C,S[0],S[1],S[2],S[3],S[4],m[0],m[1],m[2],m[3],m[4],P)}}};function h(b,v){var k=v===-1?"T":String(v),E=c[k];return v===-1?E(b):v===0?E(b,p[b][0]):E(b,p[b],f)}function d(b){if(s(b))return"buffer";if(u)switch(Object.prototype.toString.call(b)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(b)?"array":"generic"}var p={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function x(b,v,k,E){if(b===void 0){var m=p.array[0];return m([])}else typeof b=="number"&&(b=[b]);v===void 0&&(v=[b.length]);var T=v.length;if(k===void 0){k=new Array(T);for(var L=T-1,_=1;L>=0;--L)k[L]=_,_*=v[L]}if(E===void 0){E=0;for(var L=0;L>>0;i.exports=f;function f(c,h){if(isNaN(c)||isNaN(h))return NaN;if(c===h)return c;if(c===0)return h<0?-u:u;var d=s.hi(c),p=s.lo(c);return h>c==c>0?p===l?(d+=1,p=0):p+=1:p===0?(p=l,d-=1):p-=1,s.pack(p,d)}},8406:function(i,a){var o=1e-6,s=1e-6;a.vertexNormals=function(u,l,f){for(var c=l.length,h=new Array(c),d=f===void 0?o:f,p=0;pd)for(var B=h[v],F=1/Math.sqrt(S*P),A=0;A<3;++A){var U=(A+1)%3,G=(A+2)%3;B[A]+=F*(m[U]*C[G]-m[G]*C[U])}}for(var p=0;pd)for(var F=1/Math.sqrt(j),A=0;A<3;++A)B[A]*=F;else for(var A=0;A<3;++A)B[A]=0}return h},a.faceNormals=function(u,l,f){for(var c=u.length,h=new Array(c),d=f===void 0?s:f,p=0;pd?L=1/Math.sqrt(L):L=0;for(var v=0;v<3;++v)T[v]*=L;h[p]=T}return h}},4081:function(i){"use strict";i.exports=a;function a(o,s,u,l,f,c,h,d,p,x){var b=s+c+x;if(v>0){var v=Math.sqrt(b+1);o[0]=.5*(h-p)/v,o[1]=.5*(d-l)/v,o[2]=.5*(u-c)/v,o[3]=.5*v}else{var k=Math.max(s,c,x),v=Math.sqrt(2*k-b+1);s>=k?(o[0]=.5*v,o[1]=.5*(f+u)/v,o[2]=.5*(d+l)/v,o[3]=.5*(h-p)/v):c>=k?(o[0]=.5*(u+f)/v,o[1]=.5*v,o[2]=.5*(p+h)/v,o[3]=.5*(d-l)/v):(o[0]=.5*(l+d)/v,o[1]=.5*(h+p)/v,o[2]=.5*v,o[3]=.5*(u-f)/v)}return o}},9977:function(i,a,o){"use strict";i.exports=v;var s=o(9215),u=o(6582),l=o(7399),f=o(7608),c=o(4081);function h(k,E,T){return Math.sqrt(Math.pow(k,2)+Math.pow(E,2)+Math.pow(T,2))}function d(k,E,T,L){return Math.sqrt(Math.pow(k,2)+Math.pow(E,2)+Math.pow(T,2)+Math.pow(L,2))}function p(k,E){var T=E[0],L=E[1],_=E[2],C=E[3],S=d(T,L,_,C);S>1e-6?(k[0]=T/S,k[1]=L/S,k[2]=_/S,k[3]=C/S):(k[0]=k[1]=k[2]=0,k[3]=1)}function x(k,E,T){this.radius=s([T]),this.center=s(E),this.rotation=s(k),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var b=x.prototype;b.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},b.recalcMatrix=function(k){this.radius.curve(k),this.center.curve(k),this.rotation.curve(k);var E=this.computedRotation;p(E,E);var T=this.computedMatrix;l(T,E);var L=this.computedCenter,_=this.computedEye,C=this.computedUp,S=Math.exp(this.computedRadius[0]);_[0]=L[0]+S*T[2],_[1]=L[1]+S*T[6],_[2]=L[2]+S*T[10],C[0]=T[1],C[1]=T[5],C[2]=T[9];for(var m=0;m<3;++m){for(var P=0,A=0;A<3;++A)P+=T[m+4*A]*_[A];T[12+m]=-P}},b.getMatrix=function(k,E){this.recalcMatrix(k);var T=this.computedMatrix;if(E){for(var L=0;L<16;++L)E[L]=T[L];return E}return T},b.idle=function(k){this.center.idle(k),this.radius.idle(k),this.rotation.idle(k)},b.flush=function(k){this.center.flush(k),this.radius.flush(k),this.rotation.flush(k)},b.pan=function(k,E,T,L){E=E||0,T=T||0,L=L||0,this.recalcMatrix(k);var _=this.computedMatrix,C=_[1],S=_[5],m=_[9],P=h(C,S,m);C/=P,S/=P,m/=P;var A=_[0],B=_[4],F=_[8],U=A*C+B*S+F*m;A-=C*U,B-=S*U,F-=m*U;var G=h(A,B,F);A/=G,B/=G,F/=G;var j=_[2],H=_[6],N=_[10],W=j*C+H*S+N*m,re=j*A+H*B+N*F;j-=W*C+re*A,H-=W*S+re*B,N-=W*m+re*F;var ae=h(j,H,N);j/=ae,H/=ae,N/=ae;var be=A*E+C*T,Ce=B*E+S*T,Le=F*E+m*T;this.center.move(k,be,Ce,Le);var pe=Math.exp(this.computedRadius[0]);pe=Math.max(1e-4,pe+L),this.radius.set(k,Math.log(pe))},b.rotate=function(k,E,T,L){this.recalcMatrix(k),E=E||0,T=T||0;var _=this.computedMatrix,C=_[0],S=_[4],m=_[8],P=_[1],A=_[5],B=_[9],F=_[2],U=_[6],G=_[10],j=E*C+T*P,H=E*S+T*A,N=E*m+T*B,W=-(U*N-G*H),re=-(G*j-F*N),ae=-(F*H-U*j),be=Math.sqrt(Math.max(0,1-Math.pow(W,2)-Math.pow(re,2)-Math.pow(ae,2))),Ce=d(W,re,ae,be);Ce>1e-6?(W/=Ce,re/=Ce,ae/=Ce,be/=Ce):(W=re=ae=0,be=1);var Le=this.computedRotation,pe=Le[0],te=Le[1],ke=Le[2],Ee=Le[3],Me=pe*be+Ee*W+te*ae-ke*re,Ne=te*be+Ee*re+ke*W-pe*ae,Fe=ke*be+Ee*ae+pe*re-te*W,ye=Ee*be-pe*W-te*re-ke*ae;if(L){W=F,re=U,ae=G;var Ve=Math.sin(L)/h(W,re,ae);W*=Ve,re*=Ve,ae*=Ve,be=Math.cos(E),Me=Me*be+ye*W+Ne*ae-Fe*re,Ne=Ne*be+ye*re+Fe*W-Me*ae,Fe=Fe*be+ye*ae+Me*re-Ne*W,ye=ye*be-Me*W-Ne*re-Fe*ae}var ce=d(Me,Ne,Fe,ye);ce>1e-6?(Me/=ce,Ne/=ce,Fe/=ce,ye/=ce):(Me=Ne=Fe=0,ye=1),this.rotation.set(k,Me,Ne,Fe,ye)},b.lookAt=function(k,E,T,L){this.recalcMatrix(k),T=T||this.computedCenter,E=E||this.computedEye,L=L||this.computedUp;var _=this.computedMatrix;u(_,E,T,L);var C=this.computedRotation;c(C,_[0],_[1],_[2],_[4],_[5],_[6],_[8],_[9],_[10]),p(C,C),this.rotation.set(k,C[0],C[1],C[2],C[3]);for(var S=0,m=0;m<3;++m)S+=Math.pow(T[m]-E[m],2);this.radius.set(k,.5*Math.log(Math.max(S,1e-6))),this.center.set(k,T[0],T[1],T[2])},b.translate=function(k,E,T,L){this.center.move(k,E||0,T||0,L||0)},b.setMatrix=function(k,E){var T=this.computedRotation;c(T,E[0],E[1],E[2],E[4],E[5],E[6],E[8],E[9],E[10]),p(T,T),this.rotation.set(k,T[0],T[1],T[2],T[3]);var L=this.computedMatrix;f(L,E);var _=L[15];if(Math.abs(_)>1e-6){var C=L[12]/_,S=L[13]/_,m=L[14]/_;this.recalcMatrix(k);var P=Math.exp(this.computedRadius[0]);this.center.set(k,C-L[2]*P,S-L[6]*P,m-L[10]*P),this.radius.idle(k)}else this.center.idle(k),this.radius.idle(k)},b.setDistance=function(k,E){E>0&&this.radius.set(k,Math.log(E))},b.setDistanceLimits=function(k,E){k>0?k=Math.log(k):k=-1/0,E>0?E=Math.log(E):E=1/0,E=Math.max(E,k),this.radius.bounds[0][0]=k,this.radius.bounds[1][0]=E},b.getDistanceLimits=function(k){var E=this.radius.bounds;return k?(k[0]=Math.exp(E[0][0]),k[1]=Math.exp(E[1][0]),k):[Math.exp(E[0][0]),Math.exp(E[1][0])]},b.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},b.fromJSON=function(k){var E=this.lastT(),T=k.center;T&&this.center.set(E,T[0],T[1],T[2]);var L=k.rotation;L&&this.rotation.set(E,L[0],L[1],L[2],L[3]);var _=k.distance;_&&_>0&&this.radius.set(E,Math.log(_)),this.setDistanceLimits(k.zoomMin,k.zoomMax)};function v(k){k=k||{};var E=k.center||[0,0,0],T=k.rotation||[0,0,0,1],L=k.radius||1;E=[].slice.call(E,0,3),T=[].slice.call(T,0,4),p(T,T);var _=new x(T,E,Math.log(L));return _.setDistanceLimits(k.zoomMin,k.zoomMax),("eye"in k||"up"in k)&&_.lookAt(0,k.eye,k.center,k.up),_}},1371:function(i,a,o){"use strict";var s=o(3233);i.exports=function(l,f,c){return c=typeof c!="undefined"?c+"":" ",s(c,f)+l}},3202:function(i){i.exports=function(o,s){s||(s=[0,""]),o=String(o);var u=parseFloat(o,10);return s[0]=u,s[1]=o.match(/[\d.\-\+]*\s*(.*)/)[1]||"",s}},3088:function(i,a,o){"use strict";i.exports=u;var s=o(3140);function u(l,f){for(var c=f.length|0,h=l.length,d=[new Array(c),new Array(c)],p=0;p0){B=d[G][P][0],U=G;break}F=B[U^1];for(var j=0;j<2;++j)for(var H=d[j][P],N=0;N0&&(B=W,F=re,U=j)}return A||B&&v(B,U),F}function E(m,P){var A=d[P][m][0],B=[m];v(A,P);for(var F=A[P^1],U=P;;){for(;F!==m;)B.push(F),F=k(B[B.length-2],F,!1);if(d[0][m].length+d[1][m].length===0)break;var G=B[B.length-1],j=m,H=B[1],N=k(G,j,!0);if(s(f[G],f[j],f[H],f[N])<0)break;B.push(m),F=k(G,j)}return B}function T(m,P){return P[1]===P[P.length-1]}for(var p=0;p0;){var C=d[0][p].length,S=E(p,L);T(_,S)?_.push.apply(_,S):(_.length>0&&b.push(_),_=S)}_.length>0&&b.push(_)}return b}},5609:function(i,a,o){"use strict";i.exports=u;var s=o(3134);function u(l,f){for(var c=s(l,f.length),h=new Array(f.length),d=new Array(f.length),p=[],x=0;x0;){var v=p.pop();h[v]=!1;for(var k=c[v],x=0;x0}C=C.filter(S);for(var m=C.length,P=new Array(m),A=new Array(m),_=0;_0;){var ce=Fe.pop(),Je=Ce[ce];h(Je,function(Ye,kt){return Ye-kt});var nt=Je.length,gt=ye[ce],Nt;if(gt===0){var H=C[ce];Nt=[H]}for(var _=0;_=0)&&(ye[it]=gt^1,Fe.push(it),gt===0)){var H=C[it];Ne(H)||(H.reverse(),Nt.push(H))}}gt===0&&Ve.push(Nt)}return Ve}},5085:function(i,a,o){i.exports=k;var s=o(3250)[3],u=o(4209),l=o(3352),f=o(2478);function c(){return!0}function h(E){return function(T,L){var _=E[T];return _?!!_.queryPoint(L,c):!1}}function d(E){for(var T={},L=0;L0&&T[_]===L[0])C=E[_-1];else return 1;for(var S=1;C;){var m=C.key,P=s(L,m[0],m[1]);if(m[0][0]0)S=-1,C=C.right;else return 0;else if(P>0)C=C.left;else if(P<0)S=1,C=C.right;else return 0}return S}}function x(E){return 1}function b(E){return function(L){return E(L[0],L[1])?0:1}}function v(E,T){return function(_){return E(_[0],_[1])?0:T(_)}}function k(E){for(var T=E.length,L=[],_=[],C=0,S=0;S=x?(m=1,A=x+2*k+T):(m=-k/x,A=k*m+T)):(m=0,E>=0?(P=0,A=T):-E>=v?(P=1,A=v+2*E+T):(P=-E/v,A=E*P+T));else if(P<0)P=0,k>=0?(m=0,A=T):-k>=x?(m=1,A=x+2*k+T):(m=-k/x,A=k*m+T);else{var B=1/S;m*=B,P*=B,A=m*(x*m+b*P+2*k)+P*(b*m+v*P+2*E)+T}else{var F,U,G,j;m<0?(F=b+k,U=v+E,U>F?(G=U-F,j=x-2*b+v,G>=j?(m=1,P=0,A=x+2*k+T):(m=G/j,P=1-m,A=m*(x*m+b*P+2*k)+P*(b*m+v*P+2*E)+T)):(m=0,U<=0?(P=1,A=v+2*E+T):E>=0?(P=0,A=T):(P=-E/v,A=E*P+T))):P<0?(F=b+E,U=x+k,U>F?(G=U-F,j=x-2*b+v,G>=j?(P=1,m=0,A=v+2*E+T):(P=G/j,m=1-P,A=m*(x*m+b*P+2*k)+P*(b*m+v*P+2*E)+T)):(P=0,U<=0?(m=1,A=x+2*k+T):k>=0?(m=0,A=T):(m=-k/x,A=k*m+T))):(G=v+E-b-k,G<=0?(m=0,P=1,A=v+2*E+T):(j=x-2*b+v,G>=j?(m=1,P=0,A=x+2*k+T):(m=G/j,P=1-m,A=m*(x*m+b*P+2*k)+P*(b*m+v*P+2*E)+T)))}for(var H=1-m-P,p=0;p0){var v=c[d-1];if(s(x,v)===0&&l(v)!==b){d-=1;continue}}c[d++]=x}}return c.length=d,c}},3233:function(i){"use strict";var a="",o;i.exports=s;function s(u,l){if(typeof u!="string")throw new TypeError("expected a string");if(l===1)return u;if(l===2)return u+u;var f=u.length*l;if(o!==u||typeof o=="undefined")o=u,a="";else if(a.length>=f)return a.substr(0,f);for(;f>a.length&&l>1;)l&1&&(a+=u),l>>=1,u+=u;return a+=u,a=a.substr(0,f),a}},3025:function(i,a,o){i.exports=o.g.performance&&o.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004:function(i){"use strict";i.exports=a;function a(o){for(var s=o.length,u=o[o.length-1],l=s,f=s-2;f>=0;--f){var c=u,h=o[f];u=c+h;var d=u-c,p=h-d;p&&(o[--l]=u,u=p)}for(var x=0,f=l;f0){if(U<=0)return G;j=F+U}else if(F<0){if(U>=0)return G;j=-(F+U)}else return G;var H=d*j;return G>=H||G<=-H?G:E(P,A,B)},function(P,A,B,F){var U=P[0]-F[0],G=A[0]-F[0],j=B[0]-F[0],H=P[1]-F[1],N=A[1]-F[1],W=B[1]-F[1],re=P[2]-F[2],ae=A[2]-F[2],be=B[2]-F[2],Ce=G*W,Le=j*N,pe=j*H,te=U*W,ke=U*N,Ee=G*H,Me=re*(Ce-Le)+ae*(pe-te)+be*(ke-Ee),Ne=(Math.abs(Ce)+Math.abs(Le))*Math.abs(re)+(Math.abs(pe)+Math.abs(te))*Math.abs(ae)+(Math.abs(ke)+Math.abs(Ee))*Math.abs(be),Fe=p*Ne;return Me>Fe||-Me>Fe?Me:T(P,A,B,F)}];function _(m){var P=L[m.length];return P||(P=L[m.length]=k(m.length)),P.apply(void 0,m)}function C(m,P,A,B,F,U,G){return function(H,N,W,re,ae){switch(arguments.length){case 0:case 1:return 0;case 2:return B(H,N);case 3:return F(H,N,W);case 4:return U(H,N,W,re);case 5:return G(H,N,W,re,ae)}for(var be=new Array(arguments.length),Ce=0;Ce0&&x>0||p<0&&x<0)return!1;var b=s(h,f,c),v=s(d,f,c);return b>0&&v>0||b<0&&v<0?!1:p===0&&x===0&&b===0&&v===0?u(f,c,h,d):!0}},8545:function(i){"use strict";i.exports=o;function a(s,u){var l=s+u,f=l-s,c=l-f,h=u-f,d=s-c,p=d+h;return p?[p,l]:[l]}function o(s,u){var l=s.length|0,f=u.length|0;if(l===1&&f===1)return a(s[0],-u[0]);var c=l+f,h=new Array(c),d=0,p=0,x=0,b=Math.abs,v=s[p],k=b(v),E=-u[x],T=b(E),L,_;k=f?(L=v,p+=1,p=f?(L=v,p+=1,p>1,E=c[2*k+1];if(E===x)return k;x>1,E=c[2*k+1];if(E===x)return k;x>1,E=c[2*k+1];if(E===x)return k;x>1,E=c[2*k+1];if(E===x)return k;x>1,j=d(P[G],A);j<=0?(j===0&&(U=G),B=G+1):j>0&&(F=G-1)}return U}s=v;function k(P,A){for(var B=new Array(P.length),F=0,U=B.length;F=P.length||d(P[Ce],G)!==0););}return B}s=k;function E(P,A){if(!A)return k(b(L(P,0)),P,0);for(var B=new Array(A),F=0;F>>W&1&&N.push(U[W]);A.push(N)}return x(A)}s=T;function L(P,A){if(A<0)return[];for(var B=[],F=(1<0)-(l<0)},a.abs=function(l){var f=l>>o-1;return(l^f)-f},a.min=function(l,f){return f^(l^f)&-(l65535)<<4,l>>>=f,c=(l>255)<<3,l>>>=c,f|=c,c=(l>15)<<2,l>>>=c,f|=c,c=(l>3)<<1,l>>>=c,f|=c,f|l>>1},a.log10=function(l){return l>=1e9?9:l>=1e8?8:l>=1e7?7:l>=1e6?6:l>=1e5?5:l>=1e4?4:l>=1e3?3:l>=100?2:l>=10?1:0},a.popCount=function(l){return l=l-(l>>>1&1431655765),l=(l&858993459)+(l>>>2&858993459),(l+(l>>>4)&252645135)*16843009>>>24};function s(l){var f=32;return l&=-l,l&&f--,l&65535&&(f-=16),l&16711935&&(f-=8),l&252645135&&(f-=4),l&858993459&&(f-=2),l&1431655765&&(f-=1),f}a.countTrailingZeros=s,a.nextPow2=function(l){return l+=l===0,--l,l|=l>>>1,l|=l>>>2,l|=l>>>4,l|=l>>>8,l|=l>>>16,l+1},a.prevPow2=function(l){return l|=l>>>1,l|=l>>>2,l|=l>>>4,l|=l>>>8,l|=l>>>16,l-(l>>>1)},a.parity=function(l){return l^=l>>>16,l^=l>>>8,l^=l>>>4,l&=15,27030>>>l&1};var u=new Array(256);(function(l){for(var f=0;f<256;++f){var c=f,h=f,d=7;for(c>>>=1;c;c>>>=1)h<<=1,h|=c&1,--d;l[f]=h<>>8&255]<<16|u[l>>>16&255]<<8|u[l>>>24&255]},a.interleave2=function(l,f){return l&=65535,l=(l|l<<8)&16711935,l=(l|l<<4)&252645135,l=(l|l<<2)&858993459,l=(l|l<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,l|f<<1},a.deinterleave2=function(l,f){return l=l>>>f&1431655765,l=(l|l>>>1)&858993459,l=(l|l>>>2)&252645135,l=(l|l>>>4)&16711935,l=(l|l>>>16)&65535,l<<16>>16},a.interleave3=function(l,f,c){return l&=1023,l=(l|l<<16)&4278190335,l=(l|l<<8)&251719695,l=(l|l<<4)&3272356035,l=(l|l<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,l|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,l|c<<2},a.deinterleave3=function(l,f){return l=l>>>f&1227133513,l=(l|l>>>2)&3272356035,l=(l|l>>>4)&251719695,l=(l|l>>>8)&4278190335,l=(l|l>>>16)&1023,l<<22>>22},a.nextCombination=function(l){var f=l|l-1;return f+1|(~f&-~f)-1>>>s(l)+1}},2014:function(i,a,o){"use strict";"use restrict";var s=o(3105),u=o(4623);function l(m){for(var P=0,A=Math.max,B=0,F=m.length;B>1,G=h(m[U],P);G<=0?(G===0&&(F=U),A=U+1):G>0&&(B=U-1)}return F}a.findCell=b;function v(m,P){for(var A=new Array(m.length),B=0,F=A.length;B=m.length||h(m[be],U)!==0););}return A}a.incidence=v;function k(m,P){if(!P)return v(x(T(m,0)),m,0);for(var A=new Array(P),B=0;B>>N&1&&H.push(F[N]);P.push(H)}return p(P)}a.explode=E;function T(m,P){if(P<0)return[];for(var A=[],B=(1<>1:(te>>1)-1}function B(te){for(var ke=P(te);;){var Ee=ke,Me=2*te+1,Ne=2*(te+1),Fe=te;if(Me0;){var Ee=A(te);if(Ee>=0){var Me=P(Ee);if(ke0){var te=H[0];return m(0,re-1),re-=1,B(0),te}return-1}function G(te,ke){var Ee=H[te];return k[Ee]===ke?te:(k[Ee]=-1/0,F(te),U(),k[Ee]=ke,re+=1,F(re-1))}function j(te){if(!E[te]){E[te]=!0;var ke=b[te],Ee=v[te];b[Ee]>=0&&(b[Ee]=ke),v[ke]>=0&&(v[ke]=Ee),N[ke]>=0&&G(N[ke],S(ke)),N[Ee]>=0&&G(N[Ee],S(Ee))}}for(var H=[],N=new Array(p),T=0;T>1;T>=0;--T)B(T);for(;;){var ae=U();if(ae<0||k[ae]>d)break;j(ae)}for(var be=[],T=0;T=0&&Ee>=0&&ke!==Ee){var Me=N[ke],Ne=N[Ee];Me!==Ne&&pe.push([Me,Ne])}}),u.unique(u.normalize(pe)),{positions:be,edges:pe}}},1303:function(i,a,o){"use strict";i.exports=l;var s=o(3250);function u(f,c){var h,d;if(c[0][0]c[1][0])h=c[1],d=c[0];else{var p=Math.min(f[0][1],f[1][1]),x=Math.max(f[0][1],f[1][1]),b=Math.min(c[0][1],c[1][1]),v=Math.max(c[0][1],c[1][1]);return xv?p-v:x-v}var k,E;f[0][1]c[1][0])h=c[1],d=c[0];else return u(c,f);var p,x;if(f[0][0]f[1][0])p=f[1],x=f[0];else return-u(f,c);var b=s(h,d,x),v=s(h,d,p);if(b<0){if(v<=0)return b}else if(b>0){if(v>=0)return b}else if(v)return v;if(b=s(x,p,d),v=s(x,p,h),b<0){if(v<=0)return b}else if(b>0){if(v>=0)return b}else if(v)return v;return d[0]-x[0]}},4209:function(i,a,o){"use strict";i.exports=v;var s=o(2478),u=o(3840),l=o(3250),f=o(1303);function c(k,E,T){this.slabs=k,this.coordinates=E,this.horizontal=T}var h=c.prototype;function d(k,E){return k.y-E}function p(k,E){for(var T=null;k;){var L=k.key,_,C;L[0][0]0)if(E[0]!==L[1][0])T=k,k=k.right;else{var m=p(k.right,E);if(m)return m;k=k.left}else{if(E[0]!==L[1][0])return k;var m=p(k.right,E);if(m)return m;k=k.left}}return T}h.castUp=function(k){var E=s.le(this.coordinates,k[0]);if(E<0)return-1;var T=this.slabs[E],L=p(this.slabs[E],k),_=-1;if(L&&(_=L.value),this.coordinates[E]===k[0]){var C=null;if(L&&(C=L.key),E>0){var S=p(this.slabs[E-1],k);S&&(C?f(S.key,C)>0&&(C=S.key,_=S.value):(_=S.value,C=S.key))}var m=this.horizontal[E];if(m.length>0){var P=s.ge(m,k[1],d);if(P=m.length)return _;A=m[P]}}if(A.start)if(C){var B=l(C[0],C[1],[k[0],A.y]);C[0][0]>C[1][0]&&(B=-B),B>0&&(_=A.index)}else _=A.index;else A.y!==k[1]&&(_=A.index)}}}return _};function x(k,E,T,L){this.y=k,this.index=E,this.start=T,this.closed=L}function b(k,E,T,L){this.x=k,this.segment=E,this.create=T,this.index=L}function v(k){for(var E=k.length,T=2*E,L=new Array(T),_=0;_1&&(E=1);for(var T=1-E,L=p.length,_=new Array(L),C=0;C0||k>0&&_<0){var C=f(E,_,T,k);b.push(C),v.push(C.slice())}_<0?v.push(T.slice()):_>0?b.push(T.slice()):(b.push(T.slice()),v.push(T.slice())),k=_}return{positive:b,negative:v}}function h(p,x){for(var b=[],v=l(p[p.length-1],x),k=p[p.length-1],E=p[0],T=0;T0||v>0&&L<0)&&b.push(f(k,L,E,v)),L>=0&&b.push(E.slice()),v=L}return b}function d(p,x){for(var b=[],v=l(p[p.length-1],x),k=p[p.length-1],E=p[0],T=0;T0||v>0&&L<0)&&b.push(f(k,L,E,v)),L<=0&&b.push(E.slice()),v=L}return b}},3387:function(i,a,o){var s;(function(){"use strict";var u={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function l(p){return c(d(p),arguments)}function f(p,x){return l.apply(null,[p].concat(x||[]))}function c(p,x){var b=1,v=p.length,k,E="",T,L,_,C,S,m,P,A;for(T=0;T=0),_.type){case"b":k=parseInt(k,10).toString(2);break;case"c":k=String.fromCharCode(parseInt(k,10));break;case"d":case"i":k=parseInt(k,10);break;case"j":k=JSON.stringify(k,null,_.width?parseInt(_.width):0);break;case"e":k=_.precision?parseFloat(k).toExponential(_.precision):parseFloat(k).toExponential();break;case"f":k=_.precision?parseFloat(k).toFixed(_.precision):parseFloat(k);break;case"g":k=_.precision?String(Number(k.toPrecision(_.precision))):parseFloat(k);break;case"o":k=(parseInt(k,10)>>>0).toString(8);break;case"s":k=String(k),k=_.precision?k.substring(0,_.precision):k;break;case"t":k=String(!!k),k=_.precision?k.substring(0,_.precision):k;break;case"T":k=Object.prototype.toString.call(k).slice(8,-1).toLowerCase(),k=_.precision?k.substring(0,_.precision):k;break;case"u":k=parseInt(k,10)>>>0;break;case"v":k=k.valueOf(),k=_.precision?k.substring(0,_.precision):k;break;case"x":k=(parseInt(k,10)>>>0).toString(16);break;case"X":k=(parseInt(k,10)>>>0).toString(16).toUpperCase();break}u.json.test(_.type)?E+=k:(u.number.test(_.type)&&(!P||_.sign)?(A=P?"+":"-",k=k.toString().replace(u.sign,"")):A="",S=_.pad_char?_.pad_char==="0"?"0":_.pad_char.charAt(1):" ",m=_.width-(A+k).length,C=_.width&&m>0?S.repeat(m):"",E+=_.align?A+k+C:S==="0"?A+C+k:C+A+k)}return E}var h=Object.create(null);function d(p){if(h[p])return h[p];for(var x=p,b,v=[],k=0;x;){if((b=u.text.exec(x))!==null)v.push(b[0]);else if((b=u.modulo.exec(x))!==null)v.push("%");else if((b=u.placeholder.exec(x))!==null){if(b[2]){k|=1;var E=[],T=b[2],L=[];if((L=u.key.exec(T))!==null)for(E.push(L[1]);(T=T.substring(L[0].length))!=="";)if((L=u.key_access.exec(T))!==null)E.push(L[1]);else if((L=u.index_access.exec(T))!==null)E.push(L[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");b[2]=E}else k|=2;if(k===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");v.push({placeholder:b[0],param_no:b[1],keys:b[2],sign:b[3],pad_char:b[4],align:b[5],width:b[6],precision:b[7],type:b[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");x=x.substring(b[0].length)}return h[p]=v}a.sprintf=l,a.vsprintf=f,typeof window!="undefined"&&(window.sprintf=l,window.vsprintf=f,s=function(){return{sprintf:l,vsprintf:f}}.call(a,o,a,i),s!==void 0&&(i.exports=s))})()},3711:function(i,a,o){"use strict";i.exports=d;var s=o(2640),u=o(781),l={"2d":function(p,x,b){var v=p({order:x,scalarArguments:3,getters:b==="generic"?[0]:void 0,phase:function(E,T,L,_){return E>_|0},vertex:function(E,T,L,_,C,S,m,P,A,B,F,U,G){var j=(m<<0)+(P<<1)+(A<<2)+(B<<3)|0;if(!(j===0||j===15))switch(j){case 0:F.push([E-.5,T-.5]);break;case 1:F.push([E-.25-.25*(_+L-2*G)/(L-_),T-.25-.25*(C+L-2*G)/(L-C)]);break;case 2:F.push([E-.75-.25*(-_-L+2*G)/(_-L),T-.25-.25*(S+_-2*G)/(_-S)]);break;case 3:F.push([E-.5,T-.5-.5*(C+L+S+_-4*G)/(L-C+_-S)]);break;case 4:F.push([E-.25-.25*(S+C-2*G)/(C-S),T-.75-.25*(-C-L+2*G)/(C-L)]);break;case 5:F.push([E-.5-.5*(_+L+S+C-4*G)/(L-_+C-S),T-.5]);break;case 6:F.push([E-.5-.25*(-_-L+S+C)/(_-L+C-S),T-.5-.25*(-C-L+S+_)/(C-L+_-S)]);break;case 7:F.push([E-.75-.25*(S+C-2*G)/(C-S),T-.75-.25*(S+_-2*G)/(_-S)]);break;case 8:F.push([E-.75-.25*(-S-C+2*G)/(S-C),T-.75-.25*(-S-_+2*G)/(S-_)]);break;case 9:F.push([E-.5-.25*(_+L+-S-C)/(L-_+S-C),T-.5-.25*(C+L+-S-_)/(L-C+S-_)]);break;case 10:F.push([E-.5-.5*(-_-L+-S-C+4*G)/(_-L+S-C),T-.5]);break;case 11:F.push([E-.25-.25*(-S-C+2*G)/(S-C),T-.75-.25*(C+L-2*G)/(L-C)]);break;case 12:F.push([E-.5,T-.5-.5*(-C-L+-S-_+4*G)/(C-L+S-_)]);break;case 13:F.push([E-.75-.25*(_+L-2*G)/(L-_),T-.25-.25*(-S-_+2*G)/(S-_)]);break;case 14:F.push([E-.25-.25*(-_-L+2*G)/(_-L),T-.25-.25*(-C-L+2*G)/(C-L)]);break;case 15:F.push([E-.5,T-.5]);break}},cell:function(E,T,L,_,C,S,m,P,A){C?P.push([E,T]):P.push([T,E])}});return function(k,E){var T=[],L=[];return v(k,T,L,E),{positions:T,cells:L}}}};function f(p,x){var b=p.length+"d",v=l[b];if(v)return v(s,p,x)}function c(p,x){for(var b=u(p,x),v=b.length,k=new Array(v),E=new Array(v),T=0;TMath.max(_,C)?S[2]=1:_>Math.max(L,C)?S[0]=1:S[1]=1;for(var m=0,P=0,A=0;A<3;++A)m+=T[A]*T[A],P+=S[A]*T[A];for(var A=0;A<3;++A)S[A]-=P/m*T[A];return c(S,S),S}function b(T,L,_,C,S,m,P,A){this.center=s(_),this.up=s(C),this.right=s(S),this.radius=s([m]),this.angle=s([P,A]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(T,L),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var B=0;B<16;++B)this.computedMatrix[B]=.5;this.recalcMatrix(0)}var v=b.prototype;v.setDistanceLimits=function(T,L){T>0?T=Math.log(T):T=-1/0,L>0?L=Math.log(L):L=1/0,L=Math.max(L,T),this.radius.bounds[0][0]=T,this.radius.bounds[1][0]=L},v.getDistanceLimits=function(T){var L=this.radius.bounds[0];return T?(T[0]=Math.exp(L[0][0]),T[1]=Math.exp(L[1][0]),T):[Math.exp(L[0][0]),Math.exp(L[1][0])]},v.recalcMatrix=function(T){this.center.curve(T),this.up.curve(T),this.right.curve(T),this.radius.curve(T),this.angle.curve(T);for(var L=this.computedUp,_=this.computedRight,C=0,S=0,m=0;m<3;++m)S+=L[m]*_[m],C+=L[m]*L[m];for(var P=Math.sqrt(C),A=0,m=0;m<3;++m)_[m]-=L[m]*S/C,A+=_[m]*_[m],L[m]/=P;for(var B=Math.sqrt(A),m=0;m<3;++m)_[m]/=B;var F=this.computedToward;f(F,L,_),c(F,F);for(var U=Math.exp(this.computedRadius[0]),G=this.computedAngle[0],j=this.computedAngle[1],H=Math.cos(G),N=Math.sin(G),W=Math.cos(j),re=Math.sin(j),ae=this.computedCenter,be=H*W,Ce=N*W,Le=re,pe=-H*re,te=-N*re,ke=W,Ee=this.computedEye,Me=this.computedMatrix,m=0;m<3;++m){var Ne=be*_[m]+Ce*F[m]+Le*L[m];Me[4*m+1]=pe*_[m]+te*F[m]+ke*L[m],Me[4*m+2]=Ne,Me[4*m+3]=0}var Fe=Me[1],ye=Me[5],Ve=Me[9],ce=Me[2],Je=Me[6],nt=Me[10],gt=ye*nt-Ve*Je,Nt=Ve*ce-Fe*nt,it=Fe*Je-ye*ce,Ye=d(gt,Nt,it);gt/=Ye,Nt/=Ye,it/=Ye,Me[0]=gt,Me[4]=Nt,Me[8]=it;for(var m=0;m<3;++m)Ee[m]=ae[m]+Me[2+4*m]*U;for(var m=0;m<3;++m){for(var A=0,kt=0;kt<3;++kt)A+=Me[m+4*kt]*Ee[kt];Me[12+m]=-A}Me[15]=1},v.getMatrix=function(T,L){this.recalcMatrix(T);var _=this.computedMatrix;if(L){for(var C=0;C<16;++C)L[C]=_[C];return L}return _};var k=[0,0,0];v.rotate=function(T,L,_,C){if(this.angle.move(T,L,_),C){this.recalcMatrix(T);var S=this.computedMatrix;k[0]=S[2],k[1]=S[6],k[2]=S[10];for(var m=this.computedUp,P=this.computedRight,A=this.computedToward,B=0;B<3;++B)S[4*B]=m[B],S[4*B+1]=P[B],S[4*B+2]=A[B];l(S,S,C,k);for(var B=0;B<3;++B)m[B]=S[4*B],P[B]=S[4*B+1];this.up.set(T,m[0],m[1],m[2]),this.right.set(T,P[0],P[1],P[2])}},v.pan=function(T,L,_,C){L=L||0,_=_||0,C=C||0,this.recalcMatrix(T);var S=this.computedMatrix,m=Math.exp(this.computedRadius[0]),P=S[1],A=S[5],B=S[9],F=d(P,A,B);P/=F,A/=F,B/=F;var U=S[0],G=S[4],j=S[8],H=U*P+G*A+j*B;U-=P*H,G-=A*H,j-=B*H;var N=d(U,G,j);U/=N,G/=N,j/=N;var W=U*L+P*_,re=G*L+A*_,ae=j*L+B*_;this.center.move(T,W,re,ae);var be=Math.exp(this.computedRadius[0]);be=Math.max(1e-4,be+C),this.radius.set(T,Math.log(be))},v.translate=function(T,L,_,C){this.center.move(T,L||0,_||0,C||0)},v.setMatrix=function(T,L,_,C){var S=1;typeof _=="number"&&(S=_|0),(S<0||S>3)&&(S=1);var m=(S+2)%3,P=(S+1)%3;L||(this.recalcMatrix(T),L=this.computedMatrix);var A=L[S],B=L[S+4],F=L[S+8];if(C){var G=Math.abs(A),j=Math.abs(B),H=Math.abs(F),N=Math.max(G,j,H);G===N?(A=A<0?-1:1,B=F=0):H===N?(F=F<0?-1:1,A=B=0):(B=B<0?-1:1,A=F=0)}else{var U=d(A,B,F);A/=U,B/=U,F/=U}var W=L[m],re=L[m+4],ae=L[m+8],be=W*A+re*B+ae*F;W-=A*be,re-=B*be,ae-=F*be;var Ce=d(W,re,ae);W/=Ce,re/=Ce,ae/=Ce;var Le=B*ae-F*re,pe=F*W-A*ae,te=A*re-B*W,ke=d(Le,pe,te);Le/=ke,pe/=ke,te/=ke,this.center.jump(T,Et,Ae,at),this.radius.idle(T),this.up.jump(T,A,B,F),this.right.jump(T,W,re,ae);var Ee,Me;if(S===2){var Ne=L[1],Fe=L[5],ye=L[9],Ve=Ne*W+Fe*re+ye*ae,ce=Ne*Le+Fe*pe+ye*te;Nt<0?Ee=-Math.PI/2:Ee=Math.PI/2,Me=Math.atan2(ce,Ve)}else{var Je=L[2],nt=L[6],gt=L[10],Nt=Je*A+nt*B+gt*F,it=Je*W+nt*re+gt*ae,Ye=Je*Le+nt*pe+gt*te;Ee=Math.asin(p(Nt)),Me=Math.atan2(Ye,it)}this.angle.jump(T,Me,Ee),this.recalcMatrix(T);var kt=L[2],Tt=L[6],St=L[10],Dt=this.computedMatrix;u(Dt,L);var Zt=Dt[15],Et=Dt[12]/Zt,Ae=Dt[13]/Zt,at=Dt[14]/Zt,wt=Math.exp(this.computedRadius[0]);this.center.jump(T,Et-kt*wt,Ae-Tt*wt,at-St*wt)},v.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},v.idle=function(T){this.center.idle(T),this.up.idle(T),this.right.idle(T),this.radius.idle(T),this.angle.idle(T)},v.flush=function(T){this.center.flush(T),this.up.flush(T),this.right.flush(T),this.radius.flush(T),this.angle.flush(T)},v.setDistance=function(T,L){L>0&&this.radius.set(T,Math.log(L))},v.lookAt=function(T,L,_,C){this.recalcMatrix(T),L=L||this.computedEye,_=_||this.computedCenter,C=C||this.computedUp;var S=C[0],m=C[1],P=C[2],A=d(S,m,P);if(!(A<1e-6)){S/=A,m/=A,P/=A;var B=L[0]-_[0],F=L[1]-_[1],U=L[2]-_[2],G=d(B,F,U);if(!(G<1e-6)){B/=G,F/=G,U/=G;var j=this.computedRight,H=j[0],N=j[1],W=j[2],re=S*H+m*N+P*W;H-=re*S,N-=re*m,W-=re*P;var ae=d(H,N,W);if(!(ae<.01&&(H=m*U-P*F,N=P*B-S*U,W=S*F-m*B,ae=d(H,N,W),ae<1e-6))){H/=ae,N/=ae,W/=ae,this.up.set(T,S,m,P),this.right.set(T,H,N,W),this.center.set(T,_[0],_[1],_[2]),this.radius.set(T,Math.log(G));var be=m*W-P*N,Ce=P*H-S*W,Le=S*N-m*H,pe=d(be,Ce,Le);be/=pe,Ce/=pe,Le/=pe;var te=S*B+m*F+P*U,ke=H*B+N*F+W*U,Ee=be*B+Ce*F+Le*U,Me=Math.asin(p(te)),Ne=Math.atan2(Ee,ke),Fe=this.angle._state,ye=Fe[Fe.length-1],Ve=Fe[Fe.length-2];ye=ye%(2*Math.PI);var ce=Math.abs(ye+2*Math.PI-Ne),Je=Math.abs(ye-Ne),nt=Math.abs(ye-2*Math.PI-Ne);ce0?W.pop():new ArrayBuffer(H)}a.mallocArrayBuffer=k;function E(j){return new Uint8Array(k(j),0,j)}a.mallocUint8=E;function T(j){return new Uint16Array(k(2*j),0,j)}a.mallocUint16=T;function L(j){return new Uint32Array(k(4*j),0,j)}a.mallocUint32=L;function _(j){return new Int8Array(k(j),0,j)}a.mallocInt8=_;function C(j){return new Int16Array(k(2*j),0,j)}a.mallocInt16=C;function S(j){return new Int32Array(k(4*j),0,j)}a.mallocInt32=S;function m(j){return new Float32Array(k(4*j),0,j)}a.mallocFloat32=a.mallocFloat=m;function P(j){return new Float64Array(k(8*j),0,j)}a.mallocFloat64=a.mallocDouble=P;function A(j){return f?new Uint8ClampedArray(k(j),0,j):E(j)}a.mallocUint8Clamped=A;function B(j){return c?new BigUint64Array(k(8*j),0,j):null}a.mallocBigUint64=B;function F(j){return h?new BigInt64Array(k(8*j),0,j):null}a.mallocBigInt64=F;function U(j){return new DataView(k(j),0,j)}a.mallocDataView=U;function G(j){j=s.nextPow2(j);var H=s.log2(j),N=x[H];return N.length>0?N.pop():new l(j)}a.mallocBuffer=G,a.clearCache=function(){for(var H=0;H<32;++H)d.UINT8[H].length=0,d.UINT16[H].length=0,d.UINT32[H].length=0,d.INT8[H].length=0,d.INT16[H].length=0,d.INT32[H].length=0,d.FLOAT[H].length=0,d.DOUBLE[H].length=0,d.BIGUINT64[H].length=0,d.BIGINT64[H].length=0,d.UINT8C[H].length=0,p[H].length=0,x[H].length=0}},1755:function(i){"use strict";"use restrict";i.exports=a;function a(s){this.roots=new Array(s),this.ranks=new Array(s);for(var u=0;u",W="",re=N.length,ae=W.length,be=G[0]===k||G[0]===L,Ce=0,Le=-ae;Ce>-1&&(Ce=j.indexOf(N,Ce),!(Ce===-1||(Le=j.indexOf(W,Ce+re),Le===-1)||Le<=Ce));){for(var pe=Ce;pe=Le)H[pe]=null,j=j.substr(0,pe)+" "+j.substr(pe+1);else if(H[pe]!==null){var te=H[pe].indexOf(G[0]);te===-1?H[pe]+=G:be&&(H[pe]=H[pe].substr(0,te+1)+(1+parseInt(H[pe][te+1]))+H[pe].substr(te+2))}var ke=Ce+re,Ee=j.substr(ke,Le-ke),Me=Ee.indexOf(N);Me!==-1?Ce=Me:Ce=Le+ae}return H}function S(U,G,j){for(var H=G.textAlign||"start",N=G.textBaseline||"alphabetic",W=[1<<30,1<<30],re=[0,0],ae=U.length,be=0;be/g,` +`):j=j.replace(/\/g," ");var re="",ae=[];for(ye=0;ye-1?parseInt(Ae[1+vt]):0,rt=st>-1?parseInt(at[1+st]):0;Ue!==rt&&(wt=wt.replace(it(),"?px "),Je*=Math.pow(.75,rt-Ue),wt=wt.replace("?px ",it())),ce+=.25*te*(rt-Ue)}if(W.superscripts===!0){var $e=Ae.indexOf(k),zt=at.indexOf(k),Yt=$e>-1?parseInt(Ae[1+$e]):0,hr=zt>-1?parseInt(at[1+zt]):0;Yt!==hr&&(wt=wt.replace(it(),"?px "),Je*=Math.pow(.75,hr-Yt),wt=wt.replace("?px ",it())),ce-=.25*te*(hr-Yt)}if(W.bolds===!0){var yr=Ae.indexOf(p)>-1,br=at.indexOf(p)>-1;!yr&&br&&(Ut?wt=wt.replace("italic ","italic bold "):wt="bold "+wt),yr&&!br&&(wt=wt.replace("bold ",""))}if(W.italics===!0){var Ut=Ae.indexOf(b)>-1,Ie=at.indexOf(b)>-1;!Ut&&Ie&&(wt="italic "+wt),Ut&&!Ie&&(wt=wt.replace("italic ",""))}G.font=wt}for(Fe=0;Fe0&&(N=H.size),H.lineSpacing&&H.lineSpacing>0&&(W=H.lineSpacing),H.styletags&&H.styletags.breaklines&&(re.breaklines=!!H.styletags.breaklines),H.styletags&&H.styletags.bolds&&(re.bolds=!!H.styletags.bolds),H.styletags&&H.styletags.italics&&(re.italics=!!H.styletags.italics),H.styletags&&H.styletags.subscripts&&(re.subscripts=!!H.styletags.subscripts),H.styletags&&H.styletags.superscripts&&(re.superscripts=!!H.styletags.superscripts)),j.font=[H.fontStyle,H.fontVariant,H.fontWeight,N+"px",H.font].filter(function(be){return be}).join(" "),j.textAlign="start",j.textBaseline="alphabetic",j.direction="ltr";var ae=m(G,j,U,N,W,re);return B(ae,H,N)}},1538:function(i){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function o(A){A.permitHostObjects___&&A.permitHostObjects___(o)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=o);var s=!1;if(typeof WeakMap=="function"){var u=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var l=new u,f=Object.freeze({});if(l.set(f,1),l.get(f)!==1)s=!0;else{i.exports=WeakMap;return}}}var c=Object.prototype.hasOwnProperty,h=Object.getOwnPropertyNames,d=Object.defineProperty,p=Object.isExtensible,x="weakmap:",b=x+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var v=new ArrayBuffer(25),k=new Uint8Array(v);crypto.getRandomValues(k),b=x+"rand:"+Array.prototype.map.call(k,function(A){return(A%36).toString(36)}).join("")+"___"}function E(A){return!(A.substr(0,x.length)==x&&A.substr(A.length-3)==="___")}if(d(Object,"getOwnPropertyNames",{value:function(B){return h(B).filter(E)}}),"getPropertyNames"in Object){var T=Object.getPropertyNames;d(Object,"getPropertyNames",{value:function(B){return T(B).filter(E)}})}function L(A){if(A!==Object(A))throw new TypeError("Not an object: "+A);var B=A[b];if(B&&B.key===A)return B;if(p(A)){B={key:A};try{return d(A,b,{value:B,writable:!1,enumerable:!1,configurable:!1}),B}catch(F){return}}}(function(){var A=Object.freeze;d(Object,"freeze",{value:function(G){return L(G),A(G)}});var B=Object.seal;d(Object,"seal",{value:function(G){return L(G),B(G)}});var F=Object.preventExtensions;d(Object,"preventExtensions",{value:function(G){return L(G),F(G)}})})();function _(A){return A.prototype=null,Object.freeze(A)}var C=!1;function S(){!C&&typeof console!="undefined"&&(C=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var m=0,P=function(){this instanceof P||S();var A=[],B=[],F=m++;function U(N,W){var re,ae=L(N);return ae?F in ae?ae[F]:W:(re=A.indexOf(N),re>=0?B[re]:W)}function G(N){var W=L(N);return W?F in W:A.indexOf(N)>=0}function j(N,W){var re,ae=L(N);return ae?ae[F]=W:(re=A.indexOf(N),re>=0?B[re]=W:(re=A.length,B[re]=W,A[re]=N)),this}function H(N){var W=L(N),re,ae;return W?F in W&&delete W[F]:(re=A.indexOf(N),re<0?!1:(ae=A.length-1,A[re]=void 0,B[re]=B[ae],A[re]=A[ae],A.length=ae,B.length=ae,!0))}return Object.create(P.prototype,{get___:{value:_(U)},has___:{value:_(G)},set___:{value:_(j)},delete___:{value:_(H)}})};P.prototype=Object.create(Object.prototype,{get:{value:function(B,F){return this.get___(B,F)},writable:!0,configurable:!0},has:{value:function(B){return this.has___(B)},writable:!0,configurable:!0},set:{value:function(B,F){return this.set___(B,F)},writable:!0,configurable:!0},delete:{value:function(B){return this.delete___(B)},writable:!0,configurable:!0}}),typeof u=="function"?function(){s&&typeof Proxy!="undefined"&&(Proxy=void 0);function A(){this instanceof P||S();var B=new u,F=void 0,U=!1;function G(W,re){return F?B.has(W)?B.get(W):F.get___(W,re):B.get(W,re)}function j(W){return B.has(W)||(F?F.has___(W):!1)}var H;s?H=function(W,re){return B.set(W,re),B.has(W)||(F||(F=new P),F.set(W,re)),this}:H=function(W,re){if(U)try{B.set(W,re)}catch(ae){F||(F=new P),F.set___(W,re)}else B.set(W,re);return this};function N(W){var re=!!B.delete(W);return F&&F.delete___(W)||re}return Object.create(P.prototype,{get___:{value:_(G)},has___:{value:_(j)},set___:{value:_(H)},delete___:{value:_(N)},permitHostObjects___:{value:_(function(W){if(W===o)U=!0;else throw new Error("bogus call to permitHostObjects___")})}})}A.prototype=P.prototype,i.exports=A,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy!="undefined"&&(Proxy=void 0),i.exports=P)})()},236:function(i,a,o){var s=o(8284);i.exports=u;function u(){var l={};return function(f){if((typeof f!="object"||f===null)&&typeof f!="function")throw new Error("Weakmap-shim: Key must be object");var c=f.valueOf(l);return c&&c.identity===l?c:s(f,l)}}},8284:function(i){i.exports=a;function a(o,s){var u={identity:s},l=o.valueOf;return Object.defineProperty(o,"valueOf",{value:function(f){return f!==s?l.apply(this,arguments):u},writable:!0}),u}},606:function(i,a,o){var s=o(236);i.exports=u;function u(){var l=s();return{get:function(f,c){var h=l(f);return h.hasOwnProperty("value")?h.value:c},set:function(f,c){return l(f).value=c,this},has:function(f){return"value"in l(f)},delete:function(f){return delete l(f).value}}}},3349:function(i){"use strict";function a(){return function(c,h,d,p,x,b){var v=c[0],k=d[0],E=[0],T=k;p|=0;var L=0,_=k;for(L=0;L=0!=S>=0&&x.push(E[0]+.5+.5*(C+S)/(C-S))}p+=_,++E[0]}}}function o(){return a()}var s=o;function u(c){var h={};return function(p,x,b){var v=p.dtype,k=p.order,E=[v,k.join()].join(),T=h[E];return T||(h[E]=T=c([v,k])),T(p.shape.slice(0),p.data,p.stride,p.offset|0,x,b)}}function l(c){return u(s.bind(void 0,c))}function f(c){return l({funcName:c.funcName})}i.exports=f({funcName:"zeroCrossings"})},781:function(i,a,o){"use strict";i.exports=u;var s=o(3349);function u(l,f){var c=[];return f=+f||0,s(l.hi(l.shape[0]-1),c,f),c}},7790:function(){}},t={};function r(i){var a=t[i];if(a!==void 0)return a.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}(function(){r.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(i){if(typeof window=="object")return window}}()})(),function(){r.nmd=function(i){return i.paths=[],i.children||(i.children=[]),i}}();var n=r(1964);vze.exports=n})()});var wX=Te((lmr,mze)=>{"use strict";mze.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var xze=Te((umr,_ze)=>{"use strict";var yze=wX();_ze.exports=cIt;var gze={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function cIt(e){var t,r=[],n=1,i;if(typeof e=="string")if(e=e.toLowerCase(),yze[e])r=yze[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var u=t[1],l=u==="rgb",a=u.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(h,d){if(/%$/.test(h))return d===o?parseFloat(h)/100:a==="rgb"?parseFloat(h)*255/100:parseFloat(h);if(a[d]==="h"){if(/deg$/.test(h))return parseFloat(h);if(gze[h]!==void 0)return gze[h]}return parseFloat(h)}),u===a&&r.push(1),n=l||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(f){return parseFloat(f)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(i="rgb",r=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(i="hsl",r=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(i="rgb",r=[e>>>16,(e&65280)>>>8,e&255]);return{space:i,values:r,alpha:n}}});var wze=Te((fmr,bze)=>{"use strict";var hIt=xze();bze.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,n,i,a=hIt(t);if(!a.space)return[];var o=[0,0,0],s=a.space[0]==="h"?[360,100,100]:[255,255,255];return r=Array(3),r[0]=Math.min(Math.max(a.values[0],o[0]),s[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),s[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),s[2]),a.space[0]==="h"&&(r=dIt(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function dIt(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,u,l=0;if(r===0)return u=n*255,[u,u,u];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];l<3;)o=t+1/3*-(l-1),o<0?o++:o>1&&o--,u=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[l++]=u*255;return s}});var X4=Te((cmr,Aze)=>{Aze.exports=pIt;function pIt(e,t,r){return tr?r:e:et?t:e}});var W6=Te((hmr,Tze)=>{Tze.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var $_=Te((dmr,Sze)=>{"use strict";var vIt=wze(),j6=X4(),mIt=W6();Sze.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=mIt(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=vIt(t),t[0]/=255,t[1]/=255,t[2]/=255),yIt(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,a&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(a?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=j6(Math.floor(t[0]*255),0,255),i[1]=j6(Math.floor(t[1]*255),0,255),i[2]=j6(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:j6(Math.floor(t[3]*255),0,255)),i)};function yIt(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var Jg=Te((pmr,Mze)=>{"use strict";var gIt=$_();function _It(e){return e?gIt(e):[0,0,0,1]}Mze.exports=_It});var $g=Te((vmr,Ize)=>{"use strict";var Pze=ku(),xIt=cd(),X6=$_(),Z6=_c(),bIt=Ih().defaultLine,Eze=mp().isArrayOrTypedArray,AX=X6(bIt),zze=1;function kze(e,t){var r=e;return r[3]*=t,r}function Cze(e){if(Pze(e))return AX;var t=X6(e);return t.length?t:AX}function Lze(e){return Pze(e)?e:zze}function wIt(e,t,r){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var i=Eze(n),a=Eze(t),o=Z6.extractOpts(e),s=[],u,l,f,c,h;if(o.colorscale!==void 0?u=Z6.makeColorScaleFuncFromTrace(e):u=Cze,i?l=function(p,x){return p[x]===void 0?AX:X6(u(p[x]))}:l=Cze,a?f=function(p,x){return p[x]===void 0?zze:Lze(p[x])}:f=Lze,i||a)for(var d=0;d{"use strict";Rze.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}});var Y6=Te((ymr,Dze)=>{"use strict";Dze.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var Bze=Te((gmr,Fze)=>{"use strict";var TIt=$l();function SX(e,t,r,n){if(!t||!t.visible)return null;for(var i=TIt.getComponentMethod("errorbars","makeComputeError")(t),a=new Array(e.length),o=0;o0){var c=n.c2l(l);n._lowerLogErrorBound||(n._lowerLogErrorBound=c),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,c)}}else a[o]=[-s[0]*r,s[1]*r]}return a}function SIt(e){for(var t=0;t{"use strict";var EIt=qd().gl_line3d,Oze=qd().gl_scatter3d,kIt=qd().gl_error3d,CIt=qd().gl_mesh3d,LIt=qd().delaunay_triangulate,Qg=ei(),Gze=Jg(),K6=$g().formatColor,PIt=S3(),MX=TX(),zIt=Y6(),IIt=wu(),RIt=rv().appendArrayPointValue,DIt=Bze();function Hze(e,t){this.scene=e,this.uid=t,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var kX=Hze.prototype;kX.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var t=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(Qg.isArrayOrTypedArray(this.textLabels)?(this.textLabels[t]||this.textLabels[t]===0)&&(e.textLabel=this.textLabels[t]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]],!0}};function FIt(e,t,r){var n=(r+1)%3,i=(r+2)%3,a=[],o=[],s;for(s=0;s-1?-1:e.indexOf("right")>-1?1:0}function Nze(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function OIt(e){var t=0,r=0,n=[t,r];if(Array.isArray(e))for(var i=0;i=0){var l=FIt(s.position,s.delaunayColor,s.delaunayAxis);l.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(l):(l.gl=t,this.delaunayMesh=CIt(l),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)};kX.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function VIt(e,t){var r=new Hze(e,t.uid);return r.update(t),r}Wze.exports=VIt});var IX=Te((xmr,Yze)=>{"use strict";var e1=Zc(),GIt=gc(),zX=nc(),CX=jc().axisHoverFormat,HIt=Nu().hovertemplateAttrs,WIt=Nu().texttemplateAttrs,Xze=Vf(),jIt=TX(),XIt=Y6(),Ym=Su().extendFlat,ZIt=Sc().overrideAll,Zze=Y1(),YIt=e1.line,N2=e1.marker,KIt=N2.line,JIt=Ym({width:YIt.width,dash:{valType:"enumerated",values:Zze(jIt),dflt:"solid"}},zX("line"));function LX(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var PX=Yze.exports=ZIt({x:e1.x,y:e1.y,z:{valType:"data_array"},text:Ym({},e1.text,{}),texttemplate:WIt({},{}),hovertext:Ym({},e1.hovertext,{}),hovertemplate:HIt(),xhoverformat:CX("x"),yhoverformat:CX("y"),zhoverformat:CX("z"),mode:Ym({},e1.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:LX("x"),y:LX("y"),z:LX("z")},connectgaps:e1.connectgaps,line:JIt,marker:Ym({symbol:{valType:"enumerated",values:Zze(XIt),dflt:"circle",arrayOk:!0},size:Ym({},N2.size,{dflt:8}),sizeref:N2.sizeref,sizemin:N2.sizemin,sizemode:N2.sizemode,opacity:Ym({},N2.opacity,{arrayOk:!1}),colorbar:N2.colorbar,line:Ym({width:Ym({},KIt.width,{arrayOk:!1})},zX("marker.line"))},zX("marker")),textposition:Ym({},e1.textposition,{dflt:"top center"}),textfont:GIt({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:Xze.opacity,hoverinfo:Ym({},Xze.hoverinfo)},"calc","nested");PX.x.editType=PX.y.editType=PX.z.editType="calc+clearAxisTypes"});var $ze=Te((bmr,Jze)=>{"use strict";var Kze=$l(),$It=ei(),RX=lc(),QIt=$v(),eRt=I0(),tRt=R0(),rRt=IX();Jze.exports=function(t,r,n,i){function a(d,p){return $It.coerce(t,r,rRt,d,p)}var o=iRt(t,r,a,i);if(!o){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),a("mode"),RX.hasMarkers(r)&&QIt(t,r,n,i,a,{noSelect:!0,noAngle:!0}),RX.hasLines(r)&&(a("connectgaps"),eRt(t,r,n,i,a)),RX.hasText(r)&&(a("texttemplate"),tRt(t,r,i,a,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var s=(r.line||{}).color,u=(r.marker||{}).color;a("surfaceaxis")>=0&&a("surfacecolor",s||u);for(var l=["x","y","z"],f=0;f<3;++f){var c="projection."+l[f];a(c+".show")&&(a(c+".opacity"),a(c+".scale"))}var h=Kze.getComponentMethod("errorbars","supplyDefaults");h(t,r,s||u||n,{axis:"z"}),h(t,r,s||u||n,{axis:"y",inherit:"z"}),h(t,r,s||u||n,{axis:"x",inherit:"z"})};function iRt(e,t,r,n){var i=0,a=r("x"),o=r("y"),s=r("z"),u=Kze.getComponentMethod("calendars","handleTraceDefaults");return u(e,t,["x","y","z"],n),a&&o&&s&&(i=Math.min(a.length,o.length,s.length),t._length=t._xlength=t._ylength=t._zlength=i),i}});var eIe=Te((wmr,Qze)=>{"use strict";var nRt=ky(),aRt=D0();Qze.exports=function(t,r){var n=[{x:!1,y:!1,trace:r,t:{}}];return nRt(n,r),aRt(t,r),n}});var rIe=Te((Amr,tIe)=>{tIe.exports=oRt;function oRt(e,t){if(typeof e!="string")throw new TypeError("must specify type string");if(t=t||{},typeof document=="undefined"&&!t.canvas)return null;var r=t.canvas||document.createElement("canvas");typeof t.width=="number"&&(r.width=t.width),typeof t.height=="number"&&(r.height=t.height);var n=t,i;try{var a=[e];e.indexOf("webgl")===0&&a.push("experimental-"+e);for(var o=0;o{var sRt=rIe();iIe.exports=function(t){return sRt("webgl",t)}});var DX=Te((Smr,oIe)=>{"use strict";var aIe=jl(),lRt=function(){};oIe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=lRt);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=aIe.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=aIe.lightLine,n.style["z-index"]=30;var i=document.createElement("p");return i.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",i.style.position="relative",i.style.top="50%",i.style.left="50%",i.style.height="30%",i.style.width="50%",i.style.margin="-15% 0 0 -25%",n.appendChild(i),t.container.appendChild(n),t.container.style.background="#FFFFFF",t.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var uIe=Te((Mmr,lIe)=>{"use strict";var U2=Jg(),uRt=ei(),fRt=["xaxis","yaxis","zaxis"];function sIe(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var cRt=sIe.prototype;cRt.merge=function(e,t){for(var r=this,n=0;n<3;++n){var i=t[fRt[n]];if(!i.visible){r.tickEnable[n]=!1,r.labelEnable[n]=!1,r.lineEnable[n]=!1,r.lineTickEnable[n]=!1,r.gridEnable[n]=!1,r.zeroEnable[n]=!1,r.backgroundEnable[n]=!1;continue}r.labels[n]=e._meta?uRt.templateString(i.title.text,e._meta):i.title.text,"font"in i.title&&(i.title.font.color&&(r.labelColor[n]=U2(i.title.font.color)),i.title.font.family&&(r.labelFont[n]=i.title.font.family),i.title.font.size&&(r.labelSize[n]=i.title.font.size),i.title.font.weight&&(r.labelFontWeight[n]=i.title.font.weight),i.title.font.style&&(r.labelFontStyle[n]=i.title.font.style),i.title.font.variant&&(r.labelFontVariant[n]=i.title.font.variant)),"showline"in i&&(r.lineEnable[n]=i.showline),"linecolor"in i&&(r.lineColor[n]=U2(i.linecolor)),"linewidth"in i&&(r.lineWidth[n]=i.linewidth),"showgrid"in i&&(r.gridEnable[n]=i.showgrid),"gridcolor"in i&&(r.gridColor[n]=U2(i.gridcolor)),"gridwidth"in i&&(r.gridWidth[n]=i.gridwidth),i.type==="log"?r.zeroEnable[n]=!1:"zeroline"in i&&(r.zeroEnable[n]=i.zeroline),"zerolinecolor"in i&&(r.zeroLineColor[n]=U2(i.zerolinecolor)),"zerolinewidth"in i&&(r.zeroLineWidth[n]=i.zerolinewidth),"ticks"in i&&i.ticks?r.lineTickEnable[n]=!0:r.lineTickEnable[n]=!1,"ticklen"in i&&(r.lineTickLength[n]=r._defaultLineTickLength[n]=i.ticklen),"tickcolor"in i&&(r.lineTickColor[n]=U2(i.tickcolor)),"tickwidth"in i&&(r.lineTickWidth[n]=i.tickwidth),"tickangle"in i&&(r.tickAngle[n]=i.tickangle==="auto"?-3600:Math.PI*-i.tickangle/180),"showticklabels"in i&&(r.tickEnable[n]=i.showticklabels),"tickfont"in i&&(i.tickfont.color&&(r.tickColor[n]=U2(i.tickfont.color)),i.tickfont.family&&(r.tickFont[n]=i.tickfont.family),i.tickfont.size&&(r.tickSize[n]=i.tickfont.size),i.tickfont.weight&&(r.tickFontWeight[n]=i.tickfont.weight),i.tickfont.style&&(r.tickFontStyle[n]=i.tickfont.style),i.tickfont.variant&&(r.tickFontVariant[n]=i.tickfont.variant)),"mirror"in i?["ticks","all","allticks"].indexOf(i.mirror)!==-1?(r.lineTickMirror[n]=!0,r.lineMirror[n]=!0):i.mirror===!0?(r.lineTickMirror[n]=!1,r.lineMirror[n]=!0):(r.lineTickMirror[n]=!1,r.lineMirror[n]=!1):r.lineMirror[n]=!1,"showbackground"in i&&i.showbackground!==!1?(r.backgroundEnable[n]=!0,r.backgroundColor[n]=U2(i.backgroundcolor)):r.backgroundEnable[n]=!1}};function hRt(e,t){var r=new sIe;return r.merge(e,t),r}lIe.exports=hRt});var hIe=Te((Emr,cIe)=>{"use strict";var dRt=Jg(),pRt=["xaxis","yaxis","zaxis"];function fIe(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var vRt=fIe.prototype;vRt.merge=function(e){for(var t=0;t<3;++t){var r=e[pRt[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=dRt(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function mRt(e){var t=new fIe;return t.merge(e),t}cIe.exports=mRt});var vIe=Te((kmr,pIe)=>{"use strict";pIe.exports=bRt;var dIe=wu(),yRt=ei(),gRt=["xaxis","yaxis","zaxis"],_Rt=[0,0,0];function xRt(e){for(var t=new Array(3),r=0;r<3;++r){for(var n=e[r],i=new Array(n.length),a=0;a/g," "));i[a]=l,o.tickmode=s}}t.ticks=i;for(var a=0;a<3;++a){_Rt[a]=.5*(e.glplot.bounds[0][a]+e.glplot.bounds[1][a]);for(var f=0;f<2;++f)t.bounds[f][a]=e.glplot.bounds[f][a]}e.contourLevels=xRt(i)}});var wIe=Te((Cmr,bIe)=>{"use strict";var gIe=qd().gl_plot3d,wRt=gIe.createCamera,mIe=gIe.createScene,ARt=nIe(),TRt=LP(),Q6=$l(),lv=ei(),$6=lv.preserveDrawingBuffer(),eF=wu(),Km=Xc(),SRt=Jg(),MRt=DX(),ERt=ZU(),kRt=uIe(),CRt=hIe(),LRt=vIe(),PRt=wm().applyAutorangeOptions,Z4,J6,_Ie=!1;function xIe(e,t){var r=document.createElement("div"),n=e.container;this.graphDiv=e.graphDiv;var i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.style.position="absolute",i.style.top=i.style.left="0px",i.style.width=i.style.height="100%",i.style["z-index"]=20,i.style["pointer-events"]="none",r.appendChild(i),this.svgContainer=i,r.id=e.id,r.style.position="absolute",r.style.top=r.style.left="0px",r.style.width=r.style.height="100%",n.appendChild(r),this.fullLayout=t,this.id=e.id||"scene",this.fullSceneLayout=t[this.id],this.plotArgs=[[],{},{}],this.axesOptions=kRt(t,t[this.id]),this.spikeOptions=CRt(t[this.id]),this.container=r,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=Q6.getComponentMethod("annotations3d","convert"),this.drawAnnotations=Q6.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var Tp=xIe.prototype;Tp.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:$6,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!J6&&(Z4=document.createElement("canvas"),J6=ARt({canvas:Z4,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!J6))throw new Error("error creating static canvas/context for image server");t.gl=J6,t.canvas=Z4}return t};var yIe=!0;Tp.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=mIe(t)}catch(n){if(e.staticMode||!yIe||$6)r=!1;else{lv.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{$6=t.glOptions.preserveDrawingBuffer=!0,e.glplot=mIe(t)}catch(i){$6=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return yIe=!1,r};Tp.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=wRt(e.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:r,zoomMin:.01,zoomMax:100,mode:"orbit"})};Tp.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var t=e.tryCreatePlot();if(!t)return MRt(e);e.traces={},e.make4thDimension();var r=e.graphDiv,n=r.layout,i=function(){var o={};return e.isCameraChanged(n)&&(o[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(o[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=o[e.id+".aspectmode"]="manual")),o},a=function(o){if(o.fullSceneLayout.dragmode!==!1){var s=i();o.saveLayout(n),o.graphDiv.emit("plotly_relayout",s)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){a(e)}),e.glplot.canvas.addEventListener("touchstart",function(){_Ie=!0}),e.glplot.canvas.addEventListener("wheel",function(o){if(r._context._scrollZoom.gl3d){if(e.camera._ortho){var s=o.deltaX>o.deltaY?1.1:.9090909090909091,u=e.glplot.getAspectratio();e.glplot.setAspectratio({x:s*u.x,y:s*u.y,z:s*u.z})}a(e)}},TRt?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var o=i();e.graphDiv.emit("plotly_relayouting",o)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(o){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:o,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};Tp.render=function(){var e=this,t=e.graphDiv,r,n=e.svgContainer,i=e.container.getBoundingClientRect();t._fullLayout._calcInverseTransform(t);var a=t._fullLayout._invScaleX,o=t._fullLayout._invScaleY,s=i.width*a,u=i.height*o;n.setAttributeNS(null,"viewBox","0 0 "+s+" "+u),n.setAttributeNS(null,"width",s),n.setAttributeNS(null,"height",u),LRt(e),e.glplot.axes.update(e.axesOptions);for(var l=Object.keys(e.traces),f=null,c=e.glplot.selection,h=0;h")):r.type==="isosurface"||r.type==="volume"?(v.valueLabel=eF.hoverLabelText(e._mockAxis,e._mockAxis.d2l(c.traceCoordinate[3]),r.valuehoverformat),_.push("value: "+v.valueLabel),c.textLabel&&_.push(c.textLabel),L=_.join("
")):L=c.textLabel;var C={x:c.traceCoordinate[0],y:c.traceCoordinate[1],z:c.traceCoordinate[2],data:x._input,fullData:x,curveNumber:x.index,pointNumber:b};Km.appendArrayPointValue(C,x,b),r._module.eventData&&(C=x._module.eventData(C,c,x,{},b));var S={points:[C]};if(e.fullSceneLayout.hovermode){var m=[];Km.loneHover({trace:x,x:(.5+.5*p[0]/p[3])*s,y:(.5-.5*p[1]/p[3])*u,xLabel:v.xLabel,yLabel:v.yLabel,zLabel:v.zLabel,text:L,name:f.name,color:Km.castHoverOption(x,b,"bgcolor")||f.color,borderColor:Km.castHoverOption(x,b,"bordercolor"),fontFamily:Km.castHoverOption(x,b,"font.family"),fontSize:Km.castHoverOption(x,b,"font.size"),fontColor:Km.castHoverOption(x,b,"font.color"),nameLength:Km.castHoverOption(x,b,"namelength"),textAlign:Km.castHoverOption(x,b,"align"),hovertemplate:lv.castOption(x,b,"hovertemplate"),hovertemplateLabels:lv.extendFlat({},C,v),eventData:[C]},{container:n,gd:t,inOut_bbox:m}),C.bbox=m[0]}c.distance<5&&(c.buttons||_Ie)?t.emit("plotly_click",S):t.emit("plotly_hover",S),this.oldEventData=S}else Km.loneUnhover(n),this.oldEventData&&t.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};Tp.recoverContext=function(){var e=this;e.glplot.dispose();var t=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(t);return}if(!e.initializeGLPlot()){lv.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(t)};var Y4=["xaxis","yaxis","zaxis"];function zRt(e,t,r){for(var n=e.fullSceneLayout,i=0;i<3;i++){var a=Y4[i],o=a.charAt(0),s=n[a],u=t[o],l=t[o+"calendar"],f=t["_"+o+"length"];if(!lv.isArrayOrTypedArray(u))r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],f-1);else for(var c,h=0;h<(f||u.length);h++)if(lv.isArrayOrTypedArray(u[h]))for(var d=0;dx[1][o])x[0][o]=-1,x[1][o]=1;else{var A=x[1][o]-x[0][o];x[0][o]-=A/32,x[1][o]+=A/32}if(k=[x[0][o],x[1][o]],k=PRt(k,u),x[0][o]=k[0],x[1][o]=k[1],u.isReversed()){var B=x[0][o];x[0][o]=x[1][o],x[1][o]=B}}else k=u.range,x[0][o]=u.r2l(k[0]),x[1][o]=u.r2l(k[1]);x[0][o]===x[1][o]&&(x[0][o]-=1,x[1][o]+=1),b[o]=x[1][o]-x[0][o],u.range=[x[0][o],x[1][o]],u.limitRange(),n.glplot.setBounds(o,{min:u.range[0]*d[o],max:u.range[1]*d[o]})}var F,U=f.aspectmode;if(U==="cube")F=[1,1,1];else if(U==="manual"){var G=f.aspectratio;F=[G.x,G.y,G.z]}else if(U==="auto"||U==="data"){var j=[1,1,1];for(o=0;o<3;++o){u=f[Y4[o]],l=u.type;var H=v[l];j[o]=Math.pow(H.acc,1/H.count)/d[o]}U==="data"||Math.max.apply(null,j)/Math.min.apply(null,j)<=4?F=j:F=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");f.aspectratio.x=c.aspectratio.x=F[0],f.aspectratio.y=c.aspectratio.y=F[1],f.aspectratio.z=c.aspectratio.z=F[2],n.glplot.setAspectratio(f.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:f.aspectratio.x,y:f.aspectratio.y,z:f.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=f.aspectmode);var N=f.domain||null,W=t._size||null;if(N&&W){var re=n.container.style;re.position="absolute",re.left=W.l+N.x[0]*W.w+"px",re.top=W.t+(1-N.y[1])*W.h+"px",re.width=W.w*(N.x[1]-N.x[0])+"px",re.height=W.h*(N.y[1]-N.y[0])+"px"}n.glplot.redraw()}};Tp.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function RRt(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function DRt(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}Tp.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),DRt(e.camera)};Tp.setViewport=function(e){var t=this,r=e.camera;t.camera.lookAt.apply(this,RRt(r)),t.glplot.setAspectratio(e.aspectratio);var n=r.projection.type==="orthographic",i=t.camera._ortho;n!==i&&(t.glplot.redraw(),t.glplot.clearRGBA(),t.glplot.dispose(),t.initializeGLPlot())};Tp.isCameraChanged=function(e){var t=this,r=t.getCamera(),n=lv.nestedProperty(e,t.id+".camera"),i=n.get();function a(l,f,c,h){var d=["up","center","eye"],p=["x","y","z"];return f[d[c]]&&l[d[c]][p[h]]===f[d[c]][p[h]]}var o=!1;if(i===void 0)o=!0;else{for(var s=0;s<3;s++)for(var u=0;u<3;u++)if(!a(r,i,s,u)){o=!0;break}(!i.projection||r.projection&&r.projection.type!==i.projection.type)&&(o=!0)}return o};Tp.isAspectChanged=function(e){var t=this,r=t.glplot.getAspectratio(),n=lv.nestedProperty(e,t.id+".aspectratio"),i=n.get();return i===void 0||i.x!==r.x||i.y!==r.y||i.z!==r.z};Tp.saveLayout=function(e){var t=this,r=t.fullLayout,n,i,a,o,s,u,l=t.isCameraChanged(e),f=t.isAspectChanged(e),c=l||f;if(c){var h={};if(l&&(n=t.getCamera(),i=lv.nestedProperty(e,t.id+".camera"),a=i.get(),h[t.id+".camera"]=a),f&&(o=t.glplot.getAspectratio(),s=lv.nestedProperty(e,t.id+".aspectratio"),u=s.get(),h[t.id+".aspectratio"]=u),Q6.call("_storeDirectGUIEdit",e,r._preGUI,h),l){i.set(n);var d=lv.nestedProperty(r,t.id+".camera");d.set(n)}if(f){s.set(o);var p=lv.nestedProperty(r,t.id+".aspectratio");p.set(o),t.glplot.redraw()}}return c};Tp.updateFx=function(e,t){var r=this,n=r.camera;if(n)if(e==="orbit")n.mode="orbit",n.keyBindingMode="rotate";else if(e==="turntable"){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var i=r.graphDiv,a=i._fullLayout,o=r.fullSceneLayout.camera,s=o.up.x,u=o.up.y,l=o.up.z;if(l/Math.sqrt(s*s+u*u+l*l)<.999){var f=r.id+".camera.up",c={x:0,y:0,z:1},h={};h[f]=c;var d=i.layout;Q6.call("_storeDirectGUIEdit",d,a._preGUI,h),o.up=c,lv.nestedProperty(d,f).set(c)}}else n.keyBindingMode=e;r.fullSceneLayout.hovermode=t};function FRt(e,t,r){for(var n=0,i=r-1;n0)for(var s=255/o,u=0;u<3;++u)e[a+u]=Math.min(s*e[a+u],255)}}Tp.toImage=function(e){var t=this;e||(e="png"),t.staticMode&&t.container.appendChild(Z4),t.glplot.redraw();var r=t.glplot.gl,n=r.drawingBufferWidth,i=r.drawingBufferHeight;r.bindFramebuffer(r.FRAMEBUFFER,null);var a=new Uint8Array(n*i*4);r.readPixels(0,0,n,i,r.RGBA,r.UNSIGNED_BYTE,a),FRt(a,n,i),BRt(a,n,i);var o=document.createElement("canvas");o.width=n,o.height=i;var s=o.getContext("2d",{willReadFrequently:!0}),u=s.createImageData(n,i);u.data.set(a),s.putImageData(u,0,0);var l;switch(e){case"jpeg":l=o.toDataURL("image/jpeg");break;case"webp":l=o.toDataURL("image/webp");break;default:l=o.toDataURL("image/png")}return t.staticMode&&t.container.removeChild(Z4),l};Tp.setConvert=function(){for(var e=this,t=0;t<3;t++){var r=e.fullSceneLayout[Y4[t]];eF.setConvert(r,e.fullLayout),r.setScale=lv.noop}};Tp.make4thDimension=function(){var e=this,t=e.graphDiv,r=t._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},eF.setConvert(e._mockAxis,r)};bIe.exports=xIe});var TIe=Te((Lmr,AIe)=>{"use strict";AIe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var BX=Te((Pmr,SIe)=>{"use strict";var ORt=jl(),cf=Dd(),FX=Su().extendFlat,qRt=Sc().overrideAll;SIe.exports=qRt({visible:cf.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:ORt.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:cf.color,categoryorder:cf.categoryorder,categoryarray:cf.categoryarray,title:{text:cf.title.text,font:cf.title.font},type:FX({},cf.type,{values:["-","linear","log","date","category"]}),autotypenumbers:cf.autotypenumbers,autorange:cf.autorange,autorangeoptions:{minallowed:cf.autorangeoptions.minallowed,maxallowed:cf.autorangeoptions.maxallowed,clipmin:cf.autorangeoptions.clipmin,clipmax:cf.autorangeoptions.clipmax,include:cf.autorangeoptions.include,editType:"plot"},rangemode:cf.rangemode,minallowed:cf.minallowed,maxallowed:cf.maxallowed,range:FX({},cf.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:cf.minor.tickmode,nticks:cf.nticks,tick0:cf.tick0,dtick:cf.dtick,tickvals:cf.tickvals,ticktext:cf.ticktext,ticks:cf.ticks,mirror:cf.mirror,ticklen:cf.ticklen,tickwidth:cf.tickwidth,tickcolor:cf.tickcolor,showticklabels:cf.showticklabels,labelalias:cf.labelalias,tickfont:cf.tickfont,tickangle:cf.tickangle,tickprefix:cf.tickprefix,showtickprefix:cf.showtickprefix,ticksuffix:cf.ticksuffix,showticksuffix:cf.showticksuffix,showexponent:cf.showexponent,exponentformat:cf.exponentformat,minexponent:cf.minexponent,separatethousands:cf.separatethousands,tickformat:cf.tickformat,tickformatstops:cf.tickformatstops,hoverformat:cf.hoverformat,showline:cf.showline,linecolor:cf.linecolor,linewidth:cf.linewidth,showgrid:cf.showgrid,gridcolor:FX({},cf.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:cf.gridwidth,zeroline:cf.zeroline,zerolinecolor:cf.zerolinecolor,zerolinewidth:cf.zerolinewidth},"plot","from-root")});var UX=Te((zmr,MIe)=>{"use strict";var OX=BX(),NRt=zc().attributes,qX=Su().extendFlat,URt=ei().counterRegex;function NX(e,t,r){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:t,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}MIe.exports={_arrayAttrRegexps:[URt("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:qX(NX(0,0,1),{}),center:qX(NX(0,0,0),{}),eye:qX(NX(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:NRt({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:OX,yaxis:OX,zaxis:OX,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot"}});var LIe=Te((Imr,CIe)=>{"use strict";var VRt=cd().mix,EIe=ei(),GRt=Pf(),HRt=BX(),WRt=zU(),jRt=tE(),kIe=["xaxis","yaxis","zaxis"],XRt=100*136/187;CIe.exports=function(t,r,n){var i,a;function o(l,f){return EIe.coerce(i,a,HRt,l,f)}for(var s=0;s{"use strict";var ZRt=ei(),YRt=jl(),KRt=$l(),JRt=C_(),$Rt=LIe(),PIe=UX(),QRt=Rd().getSubplotData,zIe="gl3d";IIe.exports=function(t,r,n){var i=r._basePlotModules.length>1;function a(o){if(!i){var s=ZRt.validate(t[o],PIe[o]);if(s)return t[o]}}JRt(t,r,n,{type:zIe,attributes:PIe,handleDefaults:eDt,fullLayout:r,font:r.font,fullData:n,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function eDt(e,t,r,n){for(var i=r("bgcolor"),a=YRt.combine(i,n.paper_bgcolor),o=["up","center","eye"],s=0;s.999)&&(h="turntable")}else h="turntable";r("dragmode",h),r("hovermode",n.getDfltFromLayout("hovermode"))}});var Q_=Te(uv=>{"use strict";var tDt=Sc().overrideAll,rDt=N1(),iDt=wIe(),nDt=Rd().getSubplotData,aDt=ei(),oDt=jv(),qT="gl3d",VX="scene";uv.name=qT;uv.attr=VX;uv.idRoot=VX;uv.idRegex=uv.attrRegex=aDt.counterRegex("scene");uv.attributes=TIe();uv.layoutAttributes=UX();uv.baseLayoutAttrOverrides=tDt({hoverlabel:rDt.hoverlabel},"plot","nested");uv.supplyLayoutDefaults=RIe();uv.plot=function(t){for(var r=t._fullLayout,n=t._fullData,i=r._subplots[qT],a=0;a{"use strict";DIe.exports={plot:jze(),attributes:IX(),markerSymbols:Y6(),supplyDefaults:$ze(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:eIe(),moduleType:"trace",name:"scatter3d",basePlotModule:Q_(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var OIe=Te((Bmr,BIe)=>{"use strict";BIe.exports=FIe()});var K4=Te((Omr,UIe)=>{"use strict";var qIe=jl(),sDt=nc(),GX=jc().axisHoverFormat,lDt=Nu().hovertemplateAttrs,NIe=Vf(),HX=Su().extendFlat,uDt=Sc().overrideAll;function WX(e){return{valType:"boolean",dflt:!1}}function jX(e){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:WX("x"),y:WX("y"),z:WX("z")},color:{valType:"color",dflt:qIe.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:qIe.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var XX=UIe.exports=uDt(HX({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:lDt(),xhoverformat:GX("x"),yhoverformat:GX("y"),zhoverformat:GX("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},sDt("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:jX("x"),y:jX("y"),z:jX("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:HX({},NIe.hoverinfo),showlegend:HX({},NIe.showlegend,{dflt:!1})}),"calc","nested");XX.x.editType=XX.y.editType=XX.z.editType="calc+clearAxisTypes"});var YX=Te((qmr,HIe)=>{"use strict";var fDt=$l(),VIe=ei(),cDt=ed(),hDt=K4(),ZX=.1;function dDt(e,t){for(var r=[],n=32,i=0;i{"use strict";var WIe=Dp();jIe.exports=function(t,r){r.surfacecolor?WIe(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):WIe(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var QIe=Te((Umr,$Ie)=>{"use strict";var mDt=qd().gl_surface3d,NT=qd().ndarray,yDt=qd().ndarray_linear_interpolate.d2,gDt=rR(),_Dt=iR(),J4=ei().isArrayOrTypedArray,xDt=$g().parseColorScale,ZIe=Jg(),bDt=_c().extractOpts;function KIe(e,t,r){this.scene=e,this.uid=r,this.surface=t,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var Jm=KIe.prototype;Jm.getXat=function(e,t,r,n){var i=J4(this.data.x)?J4(this.data.x[0])?this.data.x[t][e]:this.data.x[e]:e;return r===void 0?i:n.d2l(i,0,r)};Jm.getYat=function(e,t,r,n){var i=J4(this.data.y)?J4(this.data.y[0])?this.data.y[t][e]:this.data.y[t]:t;return r===void 0?i:n.d2l(i,0,r)};Jm.getZat=function(e,t,r,n){var i=this.data.z[t][e];return i===null&&this.data.connectgaps&&this.data._interpolatedZ&&(i=this.data._interpolatedZ[t][e]),r===void 0?i:n.d2l(i,0,r)};Jm.handlePick=function(e){if(e.object===this.surface){var t=(e.data.index[0]-1)/this.dataScaleX-1,r=(e.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(t),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);e.index=[n,i],e.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],e.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a<3;a++){var o=e.dataCoordinate[a];o!=null&&(e.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return J4(s)&&s[i]&&s[i][n]!==void 0?e.textLabel=s[i][n]:s?e.textLabel=s:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function wDt(e){var t=e[0].rgb,r=e[e.length-1].rgb;return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]&&t[3]===r[3]}var UT=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function ADt(e,t){if(e0){r=UT[n];break}return r}function SDt(e,t){if(!(e<1||t<1)){for(var r=KX(e),n=KX(t),i=1,a=0;atF;)n--,n/=TDt(n),n++,n1?i:1};function EDt(e,t,r){var n=r[8]+r[2]*t[0]+r[5]*t[1];return e[0]=(r[6]+r[0]*t[0]+r[3]*t[1])/n,e[1]=(r[7]+r[1]*t[0]+r[4]*t[1])/n,e}function kDt(e,t,r){return CDt(e,t,EDt,r),e}function CDt(e,t,r,n){for(var i=[0,0],a=e.shape[0],o=e.shape[1],s=0;s0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(t[n]=!0,i=this.contourStart[n];ih&&(this.minValues[l]=h),this.maxValues[l]{"use strict";eRe.exports={attributes:K4(),supplyDefaults:YX().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:XIe(),plot:QIe(),moduleType:"trace",name:"surface",basePlotModule:Q_(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var iRe=Te((Gmr,rRe)=>{"use strict";rRe.exports=tRe()});var VT=Te((Hmr,aRe)=>{"use strict";var zDt=nc(),JX=jc().axisHoverFormat,IDt=Nu().hovertemplateAttrs,ex=K4(),nRe=Vf(),tx=Su().extendFlat;aRe.exports=tx({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:IDt({editType:"calc"}),xhoverformat:JX("x"),yhoverformat:JX("y"),zhoverformat:JX("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"}},zDt("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:ex.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:tx({},ex.contours.x.show,{}),color:ex.contours.x.color,width:ex.contours.x.width,editType:"calc"},lightposition:{x:tx({},ex.lightposition.x,{dflt:1e5}),y:tx({},ex.lightposition.y,{dflt:1e5}),z:tx({},ex.lightposition.z,{dflt:0}),editType:"calc"},lighting:tx({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},ex.lighting),hoverinfo:tx({},nRe.hoverinfo,{editType:"calc"}),showlegend:tx({},nRe.showlegend,{dflt:!1})})});var iF=Te((Wmr,sRe)=>{"use strict";var RDt=nc(),rF=jc().axisHoverFormat,DDt=Nu().hovertemplateAttrs,$4=VT(),oRe=Vf(),$X=Su().extendFlat,FDt=Sc().overrideAll;function QX(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function eZ(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var GT=sRe.exports=FDt($X({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:QX("x"),y:QX("y"),z:QX("z")},caps:{x:eZ("x"),y:eZ("y"),z:eZ("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:DDt(),xhoverformat:rF("x"),yhoverformat:rF("y"),zhoverformat:rF("z"),valuehoverformat:rF("value",1),showlegend:$X({},oRe.showlegend,{dflt:!1})},RDt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:$4.opacity,lightposition:$4.lightposition,lighting:$4.lighting,flatshading:$4.flatshading,contour:$4.contour,hoverinfo:$X({},oRe.hoverinfo)}),"calc","nested");GT.flatshading.dflt=!0;GT.lighting.facenormalsepsilon.dflt=0;GT.x.editType=GT.y.editType=GT.z.editType=GT.value.editType="calc+clearAxisTypes"});var tZ=Te((jmr,uRe)=>{"use strict";var BDt=ei(),ODt=$l(),qDt=iF(),NDt=ed();function UDt(e,t,r,n){function i(a,o){return BDt.coerce(e,t,qDt,a,o)}lRe(e,t,r,n,i)}function lRe(e,t,r,n,i){var a=i("isomin"),o=i("isomax");o!=null&&a!==void 0&&a!==null&&a>o&&(t.isomin=null,t.isomax=null);var s=i("x"),u=i("y"),l=i("z"),f=i("value");if(!s||!s.length||!u||!u.length||!l||!l.length||!f||!f.length){t.visible=!1;return}var c=ODt.getComponentMethod("calendars","handleTraceDefaults");c(e,t,["x","y","z"],n),i("valuehoverformat"),["x","y","z"].forEach(function(x){i(x+"hoverformat");var b="caps."+x,v=i(b+".show");v&&i(b+".fill");var k="slices."+x,E=i(k+".show");E&&(i(k+".fill"),i(k+".locations"))});var h=i("spaceframe.show");h&&i("spaceframe.fill");var d=i("surface.show");d&&(i("surface.count"),i("surface.fill"),i("surface.pattern"));var p=i("contour.show");p&&(i("contour.color"),i("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(x){i(x)}),NDt(e,t,n,i,{prefix:"",cLetter:"c"}),t._length=null}uRe.exports={supplyDefaults:UDt,supplyIsoDefaults:lRe}});var nF=Te((Xmr,cRe)=>{"use strict";var iZ=ei(),VDt=Dp();function GDt(e,t){t._len=Math.min(t.u.length,t.v.length,t.w.length,t.x.length,t.y.length,t.z.length),t._u=Hy(t.u,t._len),t._v=Hy(t.v,t._len),t._w=Hy(t.w,t._len),t._x=Hy(t.x,t._len),t._y=Hy(t.y,t._len),t._z=Hy(t.z,t._len);var r=fRe(t);t._gridFill=r.fill,t._Xs=r.Xs,t._Ys=r.Ys,t._Zs=r.Zs,t._len=r.len;var n=0,i,a,o;t.starts&&(i=Hy(t.starts.x||[]),a=Hy(t.starts.y||[]),o=Hy(t.starts.z||[]),n=Math.min(i.length,a.length,o.length)),t._startsX=i||[],t._startsY=a||[],t._startsZ=o||[];var s=0,u=1/0,l;for(l=0;l1&&(E=t[i-1],L=r[i-1],C=n[i-1]),a=0;aE?"-":"+")+"x"),p=p.replace("y",(T>L?"-":"+")+"y"),p=p.replace("z",(_>C?"-":"+")+"z");var A=function(){i=0,S=[],m=[],P=[]};(!i||i{"use strict";var HDt=Dp(),WDt=nF().processGrid,aF=nF().filter;hRe.exports=function(t,r){r._len=Math.min(r.x.length,r.y.length,r.z.length,r.value.length),r._x=aF(r.x,r._len),r._y=aF(r.y,r._len),r._z=aF(r.z,r._len),r._value=aF(r.value,r._len);var n=WDt(r);r._gridFill=n.fill,r._Xs=n.Xs,r._Ys=n.Ys,r._Zs=n.Zs,r._len=n.len;for(var i=1/0,a=-1/0,o=0;o{"use strict";dRe.exports=function(t,r,n,i){i=i||t.length;for(var a=new Array(i),o=0;o{"use strict";var jDt=qd().gl_mesh3d,XDt=$g().parseColorScale,ZDt=ei().isArrayOrTypedArray,YDt=Jg(),KDt=_c().extractOpts,pRe=HT(),Q4=function(e,t){for(var r=t.length-1;r>0;r--){var n=Math.min(t[r],t[r-1]),i=Math.max(t[r],t[r-1]);if(i>n&&n-1}function ae(wt,vt){return wt===null?vt:wt}function be(wt,vt,st){A();var Ue=[vt],rt=[st];if(H>=1)Ue=[vt],rt=[st];else if(H>0){var $e=W(vt,st);Ue=$e.xyzv,rt=$e.abc}for(var zt=0;zt-1?st[hr]:P(yr,br,Ut);xe>-1?Yt[hr]=xe:Yt[hr]=F(yr,br,Ut,ae(wt,Ie))}U(Yt[0],Yt[1],Yt[2])}}function Ce(wt,vt,st){var Ue=function(rt,$e,zt){be(wt,[vt[rt],vt[$e],vt[zt]],[st[rt],st[$e],st[zt]])};Ue(0,1,2),Ue(2,3,0)}function Le(wt,vt,st){var Ue=function(rt,$e,zt){be(wt,[vt[rt],vt[$e],vt[zt]],[st[rt],st[$e],st[zt]])};Ue(0,1,2),Ue(3,0,1),Ue(2,3,0),Ue(1,2,3)}function pe(wt,vt,st,Ue){var rt=wt[3];rtUe&&(rt=Ue);for(var $e=(wt[3]-rt)/(wt[3]-vt[3]+1e-9),zt=[],Yt=0;Yt<4;Yt++)zt[Yt]=(1-$e)*wt[Yt]+$e*vt[Yt];return zt}function te(wt,vt,st){return wt>=vt&&wt<=st}function ke(wt){var vt=.001*(L-T);return wt>=T-vt&&wt<=L+vt}function Ee(wt){for(var vt=[],st=0;st<4;st++){var Ue=wt[st];vt.push([e._x[Ue],e._y[Ue],e._z[Ue],e._value[Ue]])}return vt}var Me=3;function Ne(wt,vt,st,Ue,rt,$e){$e||($e=1),st=[-1,-1,-1];var zt=!1,Yt=[te(vt[0][3],Ue,rt),te(vt[1][3],Ue,rt),te(vt[2][3],Ue,rt)];if(!Yt[0]&&!Yt[1]&&!Yt[2])return!1;var hr=function(br,Ut,Ie){return ke(Ut[0][3])&&ke(Ut[1][3])&&ke(Ut[2][3])?(be(br,Ut,Ie),!0):$eYt?[k,$e]:[$e,E];Tt(vt,hr[0],hr[1])}}var yr=[[Math.min(T,E),Math.max(T,E)],[Math.min(k,L),Math.max(k,L)]];["x","y","z"].forEach(function(br){for(var Ut=[],Ie=0;Ie0&&(ge.push(dt.id),br==="x"?fe.push([dt.distRatio,0,0]):br==="y"?fe.push([0,dt.distRatio,0]):fe.push([0,0,dt.distRatio]))}else br==="x"?ct=Et(1,d-1):br==="y"?ct=Et(1,p-1):ct=Et(1,x-1);ge.length>0&&(br==="x"?Ut[xe]=St(wt,ge,Oe,Re,fe,Ut[xe]):br==="y"?Ut[xe]=Dt(wt,ge,Oe,Re,fe,Ut[xe]):Ut[xe]=Zt(wt,ge,Oe,Re,fe,Ut[xe]),xe++),ct.length>0&&(br==="x"?Ut[xe]=gt(wt,ct,Oe,Re,Ut[xe]):br==="y"?Ut[xe]=Nt(wt,ct,Oe,Re,Ut[xe]):Ut[xe]=it(wt,ct,Oe,Re,Ut[xe]),xe++)}var It=e.caps[br];It.show&&It.fill&&(N(It.fill),br==="x"?Ut[xe]=gt(wt,[0,d-1],Oe,Re,Ut[xe]):br==="y"?Ut[xe]=Nt(wt,[0,p-1],Oe,Re,Ut[xe]):Ut[xe]=it(wt,[0,x-1],Oe,Re,Ut[xe]),xe++)}}),s===0&&B(),e._meshX=_,e._meshY=C,e._meshZ=S,e._meshIntensity=m,e._Xs=f,e._Ys=c,e._Zs=h}return at(),e}function $Dt(e,t){var r=e.glplot.gl,n=jDt({gl:r}),i=new vRe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}yRe.exports={findNearestOnAxis:Q4,generateIsoMeshes:mRe,createIsosurfaceTrace:$Dt}});var _Re=Te((Jmr,gRe)=>{"use strict";gRe.exports={attributes:iF(),supplyDefaults:tZ().supplyDefaults,calc:nZ(),colorbar:{min:"cmin",max:"cmax"},plot:oF().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:Q_(),categories:["gl3d","showLegend"],meta:{}}});var bRe=Te(($mr,xRe)=>{"use strict";xRe.exports=_Re()});var sZ=Te((Qmr,ARe)=>{"use strict";var QDt=nc(),Nh=iF(),e6t=K4(),wRe=Vf(),oZ=Su().extendFlat,t6t=Sc().overrideAll,sF=ARe.exports=t6t(oZ({x:Nh.x,y:Nh.y,z:Nh.z,value:Nh.value,isomin:Nh.isomin,isomax:Nh.isomax,surface:Nh.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:Nh.slices,caps:Nh.caps,text:Nh.text,hovertext:Nh.hovertext,xhoverformat:Nh.xhoverformat,yhoverformat:Nh.yhoverformat,zhoverformat:Nh.zhoverformat,valuehoverformat:Nh.valuehoverformat,hovertemplate:Nh.hovertemplate},QDt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Nh.colorbar,opacity:Nh.opacity,opacityscale:e6t.opacityscale,lightposition:Nh.lightposition,lighting:Nh.lighting,flatshading:Nh.flatshading,contour:Nh.contour,hoverinfo:oZ({},wRe.hoverinfo),showlegend:oZ({},wRe.showlegend,{dflt:!1})}),"calc","nested");sF.x.editType=sF.y.editType=sF.z.editType=sF.value.editType="calc+clearAxisTypes"});var SRe=Te((eyr,TRe)=>{"use strict";var r6t=ei(),i6t=sZ(),n6t=tZ().supplyIsoDefaults,a6t=YX().opacityscaleDefaults;TRe.exports=function(t,r,n,i){function a(o,s){return r6t.coerce(t,r,i6t,o,s)}n6t(t,r,n,i,a),a6t(t,r,i,a)}});var CRe=Te((tyr,kRe)=>{"use strict";var o6t=qd().gl_mesh3d,s6t=$g().parseColorScale,l6t=ei().isArrayOrTypedArray,u6t=Jg(),f6t=_c().extractOpts,MRe=HT(),lZ=oF().findNearestOnAxis,c6t=oF().generateIsoMeshes;function ERe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var uZ=ERe.prototype;uZ.handlePick=function(e){if(e.object===this.mesh){var t=e.data.index,r=this.data._meshX[t],n=this.data._meshY[t],i=this.data._meshZ[t],a=this.data._Ys.length,o=this.data._Zs.length,s=lZ(r,this.data._Xs).id,u=lZ(n,this.data._Ys).id,l=lZ(i,this.data._Zs).id,f=e.index=l+o*u+o*a*s;e.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var c=this.data.hovertext||this.data.text;return l6t(c)&&c[f]!==void 0?e.textLabel=c[f]:c&&(e.textLabel=c),!0}};uZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=c6t(e);function n(u,l,f,c){return l.map(function(h){return u.d2l(h,0,c)*f})}var i=MRe(n(r.xaxis,e._meshX,t.dataScale[0],e.xcalendar),n(r.yaxis,e._meshY,t.dataScale[1],e.ycalendar),n(r.zaxis,e._meshZ,t.dataScale[2],e.zcalendar)),a=MRe(e._meshI,e._meshJ,e._meshK),o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:u6t(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=f6t(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=s6t(e),this.mesh.update(o)};uZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function h6t(e,t){var r=e.glplot.gl,n=o6t({gl:r}),i=new ERe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}kRe.exports=h6t});var PRe=Te((ryr,LRe)=>{"use strict";LRe.exports={attributes:sZ(),supplyDefaults:SRe(),calc:nZ(),colorbar:{min:"cmin",max:"cmax"},plot:CRe(),moduleType:"trace",name:"volume",basePlotModule:Q_(),categories:["gl3d","showLegend"],meta:{}}});var IRe=Te((iyr,zRe)=>{"use strict";zRe.exports=PRe()});var FRe=Te((nyr,DRe)=>{"use strict";var d6t=$l(),RRe=ei(),p6t=ed(),v6t=VT();DRe.exports=function(t,r,n,i){function a(f,c){return RRe.coerce(t,r,v6t,f,c)}function o(f){var c=f.map(function(h){var d=a(h);return d&&RRe.isArrayOrTypedArray(d)?d:null});return c.every(function(h){return h&&h.length===c[0].length})&&c}var s=o(["x","y","z"]);if(!s){r.visible=!1;return}if(o(["i","j","k"]),r.i&&(!r.j||!r.k)||r.j&&(!r.k||!r.i)||r.k&&(!r.i||!r.j)){r.visible=!1;return}var u=d6t.getComponentMethod("calendars","handleTraceDefaults");u(t,r,["x","y","z"],i),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(f){a(f)});var l=a("contour.show");l&&(a("contour.color"),a("contour.width")),"intensity"in t?(a("intensity"),a("intensitymode"),p6t(t,r,i,a,{prefix:"",cLetter:"c"})):(r.showscale=!1,"facecolor"in t?a("facecolor"):"vertexcolor"in t?a("vertexcolor"):a("color",n)),a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var ORe=Te((ayr,BRe)=>{"use strict";var m6t=Dp();BRe.exports=function(t,r){r.intensity&&m6t(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var GRe=Te((oyr,VRe)=>{"use strict";var y6t=qd().gl_mesh3d,g6t=qd().delaunay_triangulate,_6t=qd().alpha_shape,x6t=qd().convex_hull,b6t=$g().parseColorScale,w6t=ei().isArrayOrTypedArray,dZ=Jg(),A6t=_c().extractOpts,qRe=HT();function URe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var pZ=URe.prototype;pZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]];var r=this.data.hovertext||this.data.text;return w6t(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function NRe(e){for(var t=[],r=e.length,n=0;n=t-.5)return!1;return!0}pZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=e;var n=e.x.length,i=qRe(fZ(r.xaxis,e.x,t.dataScale[0],e.xcalendar),fZ(r.yaxis,e.y,t.dataScale[1],e.ycalendar),fZ(r.zaxis,e.z,t.dataScale[2],e.zcalendar)),a;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!hZ(e.i,n)||!hZ(e.j,n)||!hZ(e.k,n))return;a=qRe(cZ(e.i),cZ(e.j),cZ(e.k))}else e.alphahull===0?a=x6t(i):e.alphahull>0?a=_6t(e.alphahull,i):a=T6t(e.delaunayaxis,i);var o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:dZ(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var s=A6t(e);this.color="#fff";var u=e.intensitymode;o[u+"Intensity"]=e.intensity,o[u+"IntensityBounds"]=[s.min,s.max],o.colormap=b6t(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=NRe(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=NRe(e.facecolor)):(this.color=e.color,o.meshColor=dZ(e.color));this.mesh.update(o)};pZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function S6t(e,t){var r=e.glplot.gl,n=y6t({gl:r}),i=new URe(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}VRe.exports=S6t});var WRe=Te((syr,HRe)=>{"use strict";HRe.exports={attributes:VT(),supplyDefaults:FRe(),calc:ORe(),colorbar:{min:"cmin",max:"cmax"},plot:GRe(),moduleType:"trace",name:"mesh3d",basePlotModule:Q_(),categories:["gl3d","showLegend"],meta:{}}});var XRe=Te((lyr,jRe)=>{"use strict";jRe.exports=WRe()});var mZ=Te((uyr,YRe)=>{"use strict";var M6t=nc(),WT=jc().axisHoverFormat,E6t=Nu().hovertemplateAttrs,k6t=VT(),ZRe=Vf(),vZ=Su().extendFlat,lF={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:E6t({editType:"calc"},{keys:["norm"]}),uhoverformat:WT("u",1),vhoverformat:WT("v",1),whoverformat:WT("w",1),xhoverformat:WT("x"),yhoverformat:WT("y"),zhoverformat:WT("z"),showlegend:vZ({},ZRe.showlegend,{dflt:!1})};vZ(lF,M6t("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var C6t=["opacity","lightposition","lighting"];C6t.forEach(function(e){lF[e]=k6t[e]});lF.hoverinfo=vZ({},ZRe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});YRe.exports=lF});var JRe=Te((fyr,KRe)=>{"use strict";var L6t=ei(),P6t=ed(),z6t=mZ();KRe.exports=function(t,r,n,i){function a(d,p){return L6t.coerce(t,r,z6t,d,p)}var o=a("u"),s=a("v"),u=a("w"),l=a("x"),f=a("y"),c=a("z");if(!o||!o.length||!s||!s.length||!u||!u.length||!l||!l.length||!f||!f.length||!c||!c.length){r.visible=!1;return}var h=a("sizemode");a("sizeref",h==="raw"?1:.5),a("anchor"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),P6t(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var QRe=Te((cyr,$Re)=>{"use strict";var I6t=Dp();$Re.exports=function(t,r){for(var n=r.u,i=r.v,a=r.w,o=Math.min(r.x.length,r.y.length,r.z.length,n.length,i.length,a.length),s=-1/0,u=1/0,l=0;l{"use strict";var R6t=qd().gl_cone3d,D6t=qd().gl_cone3d.createConeMesh,F6t=ei().simpleMap,B6t=$g().parseColorScale,O6t=_c().extractOpts,q6t=ei().isArrayOrTypedArray,eDe=HT();function tDe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var yZ=tDe.prototype;yZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index,r=this.data.x[t],n=this.data.y[t],i=this.data.z[t],a=this.data.u[t],o=this.data.v[t],s=this.data.w[t];e.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var u=this.data.hovertext||this.data.text;return q6t(u)&&u[t]!==void 0?e.textLabel=u[t]:u&&(e.textLabel=u),!0}};var N6t={xaxis:0,yaxis:1,zaxis:2},U6t={tip:1,tail:0,cm:.25,center:.5},V6t={tip:1,tail:1,cm:.75,center:.5};function rDe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i={};function a(f,c){var h=r[c],d=n[N6t[c]];return F6t(f,function(p){return h.d2l(p)*d})}i.vectors=eDe(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),i.positions=eDe(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=O6t(t);i.colormap=B6t(t),i.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],i.coneOffset=U6t[t.anchor];var s=t.sizemode;s==="scaled"?i.coneSize=t.sizeref||.5:s==="absolute"?i.coneSize=t.sizeref&&t._normMax?t.sizeref/t._normMax:.5:s==="raw"&&(i.coneSize=t.sizeref),i.coneSizemode=s;var u=R6t(i),l=t.lightposition;return u.lightPosition=[l.x,l.y,l.z],u.ambient=t.lighting.ambient,u.diffuse=t.lighting.diffuse,u.specular=t.lighting.specular,u.roughness=t.lighting.roughness,u.fresnel=t.lighting.fresnel,u.opacity=t.opacity,t._pad=V6t[t.anchor]*u.vectorScale*u.coneScale*t._normMax,u}yZ.update=function(e){this.data=e;var t=rDe(this.scene,e);this.mesh.update(t)};yZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function G6t(e,t){var r=e.glplot.gl,n=rDe(e,t),i=D6t(r,n),a=new tDe(e,t.uid);return a.mesh=i,a.data=t,i._trace=a,e.glplot.add(i),a}iDe.exports=G6t});var oDe=Te((dyr,aDe)=>{"use strict";aDe.exports={moduleType:"trace",name:"cone",basePlotModule:Q_(),categories:["gl3d","showLegend"],attributes:mZ(),supplyDefaults:JRe(),colorbar:{min:"cmin",max:"cmax"},calc:QRe(),plot:nDe(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var lDe=Te((pyr,sDe)=>{"use strict";sDe.exports=oDe()});var _Z=Te((vyr,fDe)=>{"use strict";var H6t=nc(),jT=jc().axisHoverFormat,W6t=Nu().hovertemplateAttrs,j6t=VT(),uDe=Vf(),gZ=Su().extendFlat,uF={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:W6t({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),uhoverformat:jT("u",1),vhoverformat:jT("v",1),whoverformat:jT("w",1),xhoverformat:jT("x"),yhoverformat:jT("y"),zhoverformat:jT("z"),showlegend:gZ({},uDe.showlegend,{dflt:!1})};gZ(uF,H6t("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var X6t=["opacity","lightposition","lighting"];X6t.forEach(function(e){uF[e]=j6t[e]});uF.hoverinfo=gZ({},uDe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});fDe.exports=uF});var hDe=Te((myr,cDe)=>{"use strict";var Z6t=ei(),Y6t=ed(),K6t=_Z();cDe.exports=function(t,r,n,i){function a(h,d){return Z6t.coerce(t,r,K6t,h,d)}var o=a("u"),s=a("v"),u=a("w"),l=a("x"),f=a("y"),c=a("z");if(!o||!o.length||!s||!s.length||!u||!u.length||!l||!l.length||!f||!f.length||!c||!c.length){r.visible=!1;return}a("starts.x"),a("starts.y"),a("starts.z"),a("maxdisplayed"),a("sizeref"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),Y6t(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var xDe=Te((yyr,_De)=>{"use strict";var vDe=qd().gl_streamtube3d,J6t=vDe.createTubeMesh,$6t=ei(),Q6t=$g().parseColorScale,eFt=_c().extractOpts,dDe=HT(),mDe={xaxis:0,yaxis:1,zaxis:2};function yDe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var bZ=yDe.prototype;bZ.handlePick=function(e){var t=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(o,s){var u=t[s],l=r[mDe[s]];return u.l2c(o)/l}if(e.object===this.mesh){var i=e.data.position,a=e.data.velocity;return e.traceCoordinate=[n(i[0],"xaxis"),n(i[1],"yaxis"),n(i[2],"zaxis"),n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function pDe(e){var t=e.length,r;return t>2?r=e.slice(1,t-1):t===2?r=[(e[0]+e[1])/2]:r=e,r}function xZ(e){var t=e.length;return t===1?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function gDe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i=t._len,a={};function o(B,F){var U=r[F],G=n[mDe[F]];return $6t.simpleMap(B,function(j){return U.d2l(j)*G})}if(a.vectors=dDe(o(t._u,"xaxis"),o(t._v,"yaxis"),o(t._w,"zaxis"),i),!i)return{positions:[],cells:[]};var s=o(t._Xs,"xaxis"),u=o(t._Ys,"yaxis"),l=o(t._Zs,"zaxis");a.meshgrid=[s,u,l],a.gridFill=t._gridFill;var f=t._slen;if(f)a.startingPositions=dDe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var c=u[0],h=pDe(s),d=pDe(l),p=new Array(h.length*d.length),x=0,b=0;b{"use strict";bDe.exports={moduleType:"trace",name:"streamtube",basePlotModule:Q_(),categories:["gl3d","showLegend"],attributes:_Z(),supplyDefaults:hDe(),colorbar:{min:"cmin",max:"cmax"},calc:nF().calc,plot:xDe(),eventData:function(e,t){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=t.traceCoordinate[3],e.tubev=t.traceCoordinate[4],e.tubew=t.traceCoordinate[5],e.norm=t.traceCoordinate[6],e.divergence=t.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var TDe=Te((_yr,ADe)=>{"use strict";ADe.exports=wDe()});var G2=Te((xyr,EDe)=>{"use strict";var rFt=Nu().hovertemplateAttrs,iFt=Nu().texttemplateAttrs,nFt=Em(),Wy=Zc(),aFt=Vf(),SDe=nc(),oFt=Id().dash,V2=Su().extendFlat,sFt=Sc().overrideAll,em=Wy.marker,MDe=Wy.line,lFt=em.line;EDe.exports=sFt({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:V2({},Wy.mode,{dflt:"markers"}),text:V2({},Wy.text,{}),texttemplate:iFt({editType:"plot"},{keys:["lat","lon","location","text"]}),hovertext:V2({},Wy.hovertext,{}),textfont:Wy.textfont,textposition:Wy.textposition,line:{color:MDe.color,width:MDe.width,dash:oFt},connectgaps:Wy.connectgaps,marker:V2({symbol:em.symbol,opacity:em.opacity,angle:em.angle,angleref:V2({},em.angleref,{values:["previous","up","north"]}),standoff:em.standoff,size:em.size,sizeref:em.sizeref,sizemin:em.sizemin,sizemode:em.sizemode,colorbar:em.colorbar,line:V2({width:lFt.width},SDe("marker.line")),gradient:em.gradient},SDe("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:nFt(),selected:Wy.selected,unselected:Wy.unselected,hoverinfo:V2({},aFt.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:rFt()},"calc","nested")});var CDe=Te((byr,kDe)=>{"use strict";var wZ=ei(),AZ=lc(),uFt=$v(),fFt=I0(),cFt=R0(),hFt=zm(),dFt=G2();kDe.exports=function(t,r,n,i){function a(d,p){return wZ.coerce(t,r,dFt,d,p)}var o=a("locations"),s;if(o&&o.length){var u=a("geojson"),l;(typeof u=="string"&&u!==""||wZ.isPlainObject(u))&&(l="geojson-id");var f=a("locationmode",l);f==="geojson-id"&&a("featureidkey"),s=o.length}else{var c=a("lon")||[],h=a("lat")||[];s=Math.min(c.length,h.length)}if(!s){r.visible=!1;return}r._length=s,a("text"),a("hovertext"),a("hovertemplate"),a("mode"),AZ.hasMarkers(r)&&uFt(t,r,n,i,a,{gradient:!0}),AZ.hasLines(r)&&(fFt(t,r,n,i,a),a("connectgaps")),AZ.hasText(r)&&(a("texttemplate"),cFt(t,r,i,a)),a("fill"),r.fill!=="none"&&hFt(t,r,n,a),wZ.coerceSelectionMarkerOpacity(r,a)}});var zDe=Te((wyr,PDe)=>{"use strict";var LDe=wu();PDe.exports=function(t,r,n){var i={},a=n[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=LDe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=LDe.tickText(o,o.c2l(s[1]),!0).text,i}});var fF=Te((Ayr,FDe)=>{"use strict";var TZ=ku(),IDe=nf().BADNUM,pFt=D0(),vFt=ky(),mFt=F0(),yFt=ei().isArrayOrTypedArray,RDe=ei()._;function DDe(e){return e&&typeof e=="string"}FDe.exports=function(t,r){var n=yFt(r.locations),i=n?r.locations.length:r._length,a=new Array(i),o;r.geojson?o=function(h){return DDe(h)||TZ(h)}:o=DDe;for(var s=0;s{"use strict";Sp.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"};Sp.axesNames=["lonaxis","lataxis"];Sp.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};Sp.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};Sp.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}};Sp.clipPad=.001;Sp.precision=.1;Sp.landColor="#F0DC82";Sp.waterColor="#3399FF";Sp.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};Sp.sphereSVG={type:"Sphere"};Sp.fillLayers={ocean:1,land:1,lakes:1};Sp.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};Sp.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];Sp.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];Sp.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var SZ=Te((cF,BDe)=>{(function(e,t){typeof cF=="object"&&typeof BDe!="undefined"?t(cF):(e=e||self,t(e.topojson=e.topojson||{}))})(cF,function(e){"use strict";function t(E){return E}function r(E){if(E==null)return t;var T,L,_=E.scale[0],C=E.scale[1],S=E.translate[0],m=E.translate[1];return function(P,A){A||(T=L=0);var B=2,F=P.length,U=new Array(F);for(U[0]=(T+=P[0])*_+S,U[1]=(L+=P[1])*C+m;BS&&(S=B[0]),B[1]m&&(m=B[1])}function A(B){switch(B.type){case"GeometryCollection":B.geometries.forEach(A);break;case"Point":P(B.coordinates);break;case"MultiPoint":B.coordinates.forEach(P);break}}E.arcs.forEach(function(B){for(var F=-1,U=B.length,G;++FS&&(S=G[0]),G[1]m&&(m=G[1])});for(L in E.objects)A(E.objects[L]);return[_,C,S,m]}function i(E,T){for(var L,_=E.length,C=_-T;C<--_;)L=E[C],E[C++]=E[_],E[_]=L}function a(E,T){return typeof T=="string"&&(T=E.objects[T]),T.type==="GeometryCollection"?{type:"FeatureCollection",features:T.geometries.map(function(L){return o(E,L)})}:o(E,T)}function o(E,T){var L=T.id,_=T.bbox,C=T.properties==null?{}:T.properties,S=s(E,T);return L==null&&_==null?{type:"Feature",properties:C,geometry:S}:_==null?{type:"Feature",id:L,properties:C,geometry:S}:{type:"Feature",id:L,bbox:_,properties:C,geometry:S}}function s(E,T){var L=r(E.transform),_=E.arcs;function C(F,U){U.length&&U.pop();for(var G=_[F<0?~F:F],j=0,H=G.length;j1)_=c(E,T,L);else for(C=0,_=new Array(S=E.arcs.length);C1)for(var U=1,G=P(B[0]),j,H;UG&&(H=B[0],B[0]=B[U],B[U]=H,G=j);return B}).filter(function(A){return A.length>0})}}function x(E,T){for(var L=0,_=E.length;L<_;){var C=L+_>>>1;E[C]=2))throw new Error("n must be \u22652");A=E.bbox||n(E);var L=A[0],_=A[1],C=A[2],S=A[3],m;T={scale:[C-L?(C-L)/(m-1):1,S-_?(S-_)/(m-1):1],translate:[L,_]}}else A=E.bbox;var P=v(T),A,B,F=E.objects,U={};function G(N){return P(N)}function j(N){var W;switch(N.type){case"GeometryCollection":W={type:"GeometryCollection",geometries:N.geometries.map(j)};break;case"Point":W={type:"Point",coordinates:G(N.coordinates)};break;case"MultiPoint":W={type:"MultiPoint",coordinates:N.coordinates.map(G)};break;default:return N}return N.id!=null&&(W.id=N.id),N.bbox!=null&&(W.bbox=N.bbox),N.properties!=null&&(W.properties=N.properties),W}function H(N){var W=0,re=1,ae=N.length,be,Ce=new Array(ae);for(Ce[0]=P(N[0],0);++W{"use strict";var MZ=ODe.exports={},gFt=ek().locationmodeToLayer,_Ft=SZ().feature;MZ.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};MZ.getTopojsonPath=function(e,t){return e+=e.endsWith("/")?"":"/",`${e}${t}.json`};MZ.getTopojsonFeatures=function(e,t){var r=gFt[e.locationmode],n=t.objects[r];return _Ft(t,n).features}});var rx=Te(tk=>{"use strict";var xFt=nf().BADNUM;tk.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,n=[],i=[],a=0;a0&&(n.push(i),i=[])}return i.length>0&&n.push(i),n};tk.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};tk.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{qDe.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var vF=Te(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});var Fv=63710088e-1,kZ={centimeters:Fv*100,centimetres:Fv*100,degrees:360/(2*Math.PI),feet:Fv*3.28084,inches:Fv*39.37,kilometers:Fv/1e3,kilometres:Fv/1e3,meters:Fv,metres:Fv,miles:Fv/1609.344,millimeters:Fv*1e3,millimetres:Fv*1e3,nauticalmiles:Fv/1852,radians:1,yards:Fv*1.0936},EZ={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function ix(e,t,r={}){let n={type:"Feature"};return(r.id===0||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=t||{},n.geometry=e,n}function bFt(e,t,r={}){switch(e){case"Point":return CZ(t).geometry;case"LineString":return PZ(t).geometry;case"Polygon":return LZ(t).geometry;case"MultiPoint":return VDe(t).geometry;case"MultiLineString":return UDe(t).geometry;case"MultiPolygon":return GDe(t).geometry;default:throw new Error(e+" is invalid")}}function CZ(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!dF(e[0])||!dF(e[1]))throw new Error("coordinates must contain numbers");return ix({type:"Point",coordinates:e},t,r)}function wFt(e,t,r={}){return pF(e.map(n=>CZ(n,t)),r)}function LZ(e,t,r={}){for(let i of e){if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(i[i.length-1].length!==i[0].length)throw new Error("First and last Position are not equivalent.");for(let a=0;aLZ(n,t)),r)}function PZ(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return ix({type:"LineString",coordinates:e},t,r)}function TFt(e,t,r={}){return pF(e.map(n=>PZ(n,t)),r)}function pF(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function UDe(e,t,r={}){return ix({type:"MultiLineString",coordinates:e},t,r)}function VDe(e,t,r={}){return ix({type:"MultiPoint",coordinates:e},t,r)}function GDe(e,t,r={}){return ix({type:"MultiPolygon",coordinates:e},t,r)}function SFt(e,t,r={}){return ix({type:"GeometryCollection",geometries:e},t,r)}function MFt(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function HDe(e,t="kilometers"){let r=kZ[t];if(!r)throw new Error(t+" units is invalid");return e*r}function zZ(e,t="kilometers"){let r=kZ[t];if(!r)throw new Error(t+" units is invalid");return e/r}function EFt(e,t){return WDe(zZ(e,t))}function kFt(e){let t=e%360;return t<0&&(t+=360),t}function CFt(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function WDe(e){return e%(2*Math.PI)*180/Math.PI}function LFt(e){return e%360*Math.PI/180}function PFt(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return HDe(zZ(e,t),r)}function zFt(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=EZ[t];if(!n)throw new Error("invalid original units");let i=EZ[r];if(!i)throw new Error("invalid final units");return e/n*i}function dF(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function IFt(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function RFt(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!dF(t))throw new Error("bbox must only contain numbers")})}function DFt(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}bc.areaFactors=EZ;bc.azimuthToBearing=CFt;bc.bearingToAzimuth=kFt;bc.convertArea=zFt;bc.convertLength=PFt;bc.degreesToRadians=LFt;bc.earthRadius=Fv;bc.factors=kZ;bc.feature=ix;bc.featureCollection=pF;bc.geometry=bFt;bc.geometryCollection=SFt;bc.isNumber=dF;bc.isObject=IFt;bc.lengthToDegrees=EFt;bc.lengthToRadians=zZ;bc.lineString=PZ;bc.lineStrings=TFt;bc.multiLineString=UDe;bc.multiPoint=VDe;bc.multiPolygon=GDe;bc.point=CZ;bc.points=wFt;bc.polygon=LZ;bc.polygons=AFt;bc.radiansToDegrees=WDe;bc.radiansToLength=HDe;bc.round=MFt;bc.validateBBox=RFt;bc.validateId=DFt});var yF=Te(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});var Wp=vF();function rk(e,t,r){if(e!==null)for(var n,i,a,o,s,u,l,f=0,c=0,h,d=e.type,p=d==="FeatureCollection",x=d==="Feature",b=p?e.features.length:1,v=0;vu||p>l||x>f){s=c,u=n,l=p,f=x,a=0;return}var b=Wp.lineString.call(void 0,[s,c],r.properties);if(t(b,n,i,x,a)===!1)return!1;a++,s=c})===!1)return!1}}})}function VFt(e,t,r){var n=r,i=!1;return ZDe(e,function(a,o,s,u,l){i===!1&&r===void 0?n=a:n=t(n,a,o,s,u,l),i=!0}),n}function YDe(e,t){if(!e)throw new Error("geojson is required");mF(e,function(r,n,i){if(r.geometry!==null){var a=r.geometry.type,o=r.geometry.coordinates;switch(a){case"LineString":if(t(r,n,i,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s{"use strict";Object.defineProperty(gF,"__esModule",{value:!0});var KDe=vF(),jFt=yF();function QDe(e){return jFt.geomReduce.call(void 0,e,(t,r)=>t+XFt(r),0)}function XFt(e){let t=0,r;switch(e.type){case"Polygon":return JDe(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs($De(e[0]));for(let r=1;r=t?(n+2)%t:n+2],s=i[0]*RZ,u=a[1]*RZ,l=o[0]*RZ;r+=(l-s)*Math.sin(u),n++}return r*ZFt}var YFt=QDe;gF.area=QDe;gF.default=YFt});var r6e=Te(_F=>{"use strict";Object.defineProperty(_F,"__esModule",{value:!0});var KFt=vF(),JFt=yF();function t6e(e,t={}){let r=0,n=0,i=0;return JFt.coordEach.call(void 0,e,function(a){r+=a[0],n+=a[1],i++},!0),KFt.point.call(void 0,[r/i,n/i],t.properties)}var $Ft=t6e;_F.centroid=t6e;_F.default=$Ft});var n6e=Te(xF=>{"use strict";Object.defineProperty(xF,"__esModule",{value:!0});var QFt=yF();function i6e(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return QFt.coordEach.call(void 0,e,n=>{r[0]>n[0]&&(r[0]=n[0]),r[1]>n[1]&&(r[1]=n[1]),r[2]{"use strict";var t8t=Jl(),s6e=NDe(),{area:r8t}=e6e(),{centroid:i8t}=r6e(),{bbox:n8t}=n6e(),a6e=VM(),XT=H1(),a8t=mg(),o8t=kM(),bF=M5(),o6e=Object.keys(s6e),s8t={"ISO-3":a6e,"USA-states":a6e,"country names":l8t};function l8t(e){for(var t=0;t0&&f[c+1][0]<0)return c;return null}switch(n==="RUS"||n==="FJI"?a=function(f){var c;if(l(f)===null)c=f;else for(c=new Array(f.length),u=0;uc?h[d++]=[f[u][0]+360,f[u][1]]:u===c?(h[d++]=f[u],h[d++]=[f[u][0],-90]):h[d++]=f[u];var p=bF.tester(h);p.pts.pop(),i.push(p)}:a=function(f){i.push(bF.tester(f))},t.type){case"MultiPolygon":for(o=0;o0?p.properties.ct=h8t(p):p.properties.ct=[NaN,NaN],h.fIn=f,h.fOut=p,i.push(p)}else XT.log(["Location",h.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete n[c]}switch(r.type){case"FeatureCollection":var u=r.features;for(a=0;ai&&(i=s,r=o)}else r=t;return i8t(r).geometry.coordinates}function d8t(e){var t=window.PlotlyGeoAssets||{},r=[];function n(u){return new Promise(function(l,f){t8t.json(u,function(c,h){if(c){delete t[u];var d=c.status===404?'GeoJSON at URL "'+u+'" does not exist.':"Unexpected error while fetching from "+u;return f(new Error(d))}return t[u]=h,l(h)})})}function i(u){return new Promise(function(l,f){var c=0,h=setInterval(function(){if(t[u]&&t[u]!=="pending")return clearInterval(h),l(t[u]);if(c>100)return clearInterval(h),f("Unexpected error while fetching from "+u);c++},50)})}for(var a=0;a{"use strict";var v8t=Jl(),m8t=Mu(),f6e=jl(),c6e=av(),y8t=c6e.stylePoints,g8t=c6e.styleText;h6e.exports=function(t,r){r&&_8t(t,r)};function _8t(e,t){var r=t[0].trace,n=t[0].node3;n.style("opacity",t[0].trace.opacity),y8t(n,r,e),g8t(n,r,e),n.selectAll("path.js-line").style("fill","none").each(function(i){var a=v8t.select(this),o=i.trace,s=o.line||{};a.call(f6e.stroke,s.color).call(m8t.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call(f6e.fill,o.fillcolor)})}});var qZ=Te((Dyr,v6e)=>{"use strict";var d6e=Jl(),AF=ei(),x8t=hF().getTopojsonFeatures,FZ=rx(),wF=nx(),p6e=wm().findExtremes,OZ=nf().BADNUM,b8t=B0().calcMarkerSize,BZ=lc(),w8t=DZ();function A8t(e,t,r){var n=t.layers.frontplot.select(".scatterlayer"),i=AF.makeTraceGroups(n,r,"trace scattergeo");function a(o,s){o.lonlat[0]===OZ&&d6e.select(s).remove()}i.selectAll("*").remove(),i.each(function(o){var s=d6e.select(this),u=o[0].trace;if(BZ.hasLines(u)||u.fill!=="none"){var l=FZ.calcTraceToLineCoords(o),f=u.fill!=="none"?FZ.makePolygon(l):FZ.makeLine(l);s.selectAll("path.js-line").data([{geojson:f,trace:u}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}BZ.hasMarkers(u)&&s.selectAll("path.point").data(AF.identity).enter().append("path").classed("point",!0).each(function(c){a(c,this)}),BZ.hasText(u)&&s.selectAll("g").data(AF.identity).enter().append("g").append("text").each(function(c){a(c,this)}),w8t(e,o)})}function T8t(e,t){var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r._length,o,s;if(AF.isArrayOrTypedArray(r.locations)){var u=r.locationmode,l=u==="geojson-id"?wF.extractTraceFeature(e):x8t(r,i.topojson);for(o=0;o{"use strict";var S8t=Xc(),M8t=nf().BADNUM,E8t=oA(),k8t=ei().fillText,C8t=G2();m6e.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.xa,s=t.ya,u=t.subplot,l=u.projection.isLonLatOverEdges,f=u.project;function c(k){var E=k.lonlat;if(E[0]===M8t||l(E))return 1/0;var T=f(E),L=f([r,n]),_=Math.abs(T[0]-L[0]),C=Math.abs(T[1]-L[1]),S=Math.max(3,k.mrc||0);return Math.max(Math.sqrt(_*_+C*C)-S,1-3/S)}if(S8t.getClosest(i,c,t),t.index!==!1){var h=i[t.index],d=h.lonlat,p=[o.c2p(d),s.c2p(d)],x=h.mrc||1;t.x0=p[0]-x,t.x1=p[0]+x,t.y0=p[1]-x,t.y1=p[1]+x,t.loc=h.loc,t.lon=d[0],t.lat=d[1];var b={};b[a.geo]={_subplot:u};var v=a._module.formatLabels(h,a,b);return t.lonLabel=v.lonLabel,t.latLabel=v.latLabel,t.color=E8t(a,h),t.extraText=L8t(a,h,t,i[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function L8t(e,t,r,n){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i==="all"?C8t.hoverinfo.flags:i.split("+"),o=a.indexOf("location")!==-1&&Array.isArray(e.locations),s=a.indexOf("lon")!==-1,u=a.indexOf("lat")!==-1,l=a.indexOf("text")!==-1,f=[];function c(h){return h+"\xB0"}return o?f.push(t.loc):s&&u?f.push("("+c(r.latLabel)+", "+c(r.lonLabel)+")"):s?f.push(n.lon+c(r.lonLabel)):u&&f.push(n.lat+c(r.latLabel)),l&&k8t(t,e,f),f.join("
")}});var _6e=Te((Byr,g6e)=>{"use strict";g6e.exports=function(t,r,n,i,a){t.lon=r.lon,t.lat=r.lat,t.location=r.loc?r.loc:null;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t}});var w6e=Te((Oyr,b6e)=>{"use strict";var x6e=lc(),P8t=nf().BADNUM;b6e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u,l,f,c,h,d=!x6e.hasMarkers(s)&&!x6e.hasText(s);if(d)return[];if(r===!1)for(h=0;h{(function(e,t){t(typeof TF=="object"&&typeof A6e!="undefined"?TF:e.d3=e.d3||{})})(TF,function(e){"use strict";function t(Ee,Me){return EeMe?1:Ee>=Me?0:NaN}function r(Ee){return Ee.length===1&&(Ee=n(Ee)),{left:function(Me,Ne,Fe,ye){for(Fe==null&&(Fe=0),ye==null&&(ye=Me.length);Fe>>1;Ee(Me[Ve],Ne)<0?Fe=Ve+1:ye=Ve}return Fe},right:function(Me,Ne,Fe,ye){for(Fe==null&&(Fe=0),ye==null&&(ye=Me.length);Fe>>1;Ee(Me[Ve],Ne)>0?ye=Ve:Fe=Ve+1}return Fe}}}function n(Ee){return function(Me,Ne){return t(Ee(Me),Ne)}}var i=r(t),a=i.right,o=i.left;function s(Ee,Me){Me==null&&(Me=u);for(var Ne=0,Fe=Ee.length-1,ye=Ee[0],Ve=new Array(Fe<0?0:Fe);NeEe?1:Me>=Ee?0:NaN}function c(Ee){return Ee===null?NaN:+Ee}function h(Ee,Me){var Ne=Ee.length,Fe=0,ye=-1,Ve=0,ce,Je,nt=0;if(Me==null)for(;++ye1)return nt/(Fe-1)}function d(Ee,Me){var Ne=h(Ee,Me);return Ne&&Math.sqrt(Ne)}function p(Ee,Me){var Ne=Ee.length,Fe=-1,ye,Ve,ce;if(Me==null){for(;++Fe=ye)for(Ve=ce=ye;++Feye&&(Ve=ye),ce=ye)for(Ve=ce=ye;++Feye&&(Ve=ye),ce0)return[Ee];if((Fe=Me0)for(Ee=Math.ceil(Ee/Je),Me=Math.floor(Me/Je),ce=new Array(Ve=Math.ceil(Me-Ee+1));++ye=0?(Ve>=L?10:Ve>=_?5:Ve>=C?2:1)*Math.pow(10,ye):-Math.pow(10,-ye)/(Ve>=L?10:Ve>=_?5:Ve>=C?2:1)}function P(Ee,Me,Ne){var Fe=Math.abs(Me-Ee)/Math.max(0,Ne),ye=Math.pow(10,Math.floor(Math.log(Fe)/Math.LN10)),Ve=Fe/ye;return Ve>=L?ye*=10:Ve>=_?ye*=5:Ve>=C&&(ye*=2),Meit;)Ye.pop(),--kt;var Tt=new Array(kt+1),St;for(Ve=0;Ve<=kt;++Ve)St=Tt[Ve]=[],St.x0=Ve>0?Ye[Ve-1]:Nt,St.x1=Ve=1)return+Ne(Ee[Fe-1],Fe-1,Ee);var Fe,ye=(Fe-1)*Me,Ve=Math.floor(ye),ce=+Ne(Ee[Ve],Ve,Ee),Je=+Ne(Ee[Ve+1],Ve+1,Ee);return ce+(Je-ce)*(ye-Ve)}}function U(Ee,Me,Ne){return Ee=v.call(Ee,c).sort(t),Math.ceil((Ne-Me)/(2*(F(Ee,.75)-F(Ee,.25))*Math.pow(Ee.length,-1/3)))}function G(Ee,Me,Ne){return Math.ceil((Ne-Me)/(3.5*d(Ee)*Math.pow(Ee.length,-1/3)))}function j(Ee,Me){var Ne=Ee.length,Fe=-1,ye,Ve;if(Me==null){for(;++Fe=ye)for(Ve=ye;++FeVe&&(Ve=ye)}else for(;++Fe=ye)for(Ve=ye;++FeVe&&(Ve=ye);return Ve}function H(Ee,Me){var Ne=Ee.length,Fe=Ne,ye=-1,Ve,ce=0;if(Me==null)for(;++ye=0;)for(ce=Ee[Me],Ne=ce.length;--Ne>=0;)Ve[--ye]=ce[Ne];return Ve}function re(Ee,Me){var Ne=Ee.length,Fe=-1,ye,Ve;if(Me==null){for(;++Fe=ye)for(Ve=ye;++Feye&&(Ve=ye)}else for(;++Fe=ye)for(Ve=ye;++Feye&&(Ve=ye);return Ve}function ae(Ee,Me){for(var Ne=Me.length,Fe=new Array(Ne);Ne--;)Fe[Ne]=Ee[Me[Ne]];return Fe}function be(Ee,Me){if(Ne=Ee.length){var Ne,Fe=0,ye=0,Ve,ce=Ee[ye];for(Me==null&&(Me=t);++Fe{(function(e,t){typeof SF=="object"&&typeof T6e!="undefined"?t(SF,ik()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(SF,function(e,t){"use strict";function r(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(At){a(i,At,this.t),a(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new n;function a(At,Gt,wr){var mr=At.s=Gt+wr,Or=mr-Gt,gi=mr-Or;At.t=Gt-gi+(wr-Or)}var o=1e-6,s=1e-12,u=Math.PI,l=u/2,f=u/4,c=u*2,h=180/u,d=u/180,p=Math.abs,x=Math.atan,b=Math.atan2,v=Math.cos,k=Math.ceil,E=Math.exp,T=Math.log,L=Math.pow,_=Math.sin,C=Math.sign||function(At){return At>0?1:At<0?-1:0},S=Math.sqrt,m=Math.tan;function P(At){return At>1?0:At<-1?u:Math.acos(At)}function A(At){return At>1?l:At<-1?-l:Math.asin(At)}function B(At){return(At=_(At/2))*At}function F(){}function U(At,Gt){At&&j.hasOwnProperty(At.type)&&j[At.type](At,Gt)}var G={Feature:function(At,Gt){U(At.geometry,Gt)},FeatureCollection:function(At,Gt){for(var wr=At.features,mr=-1,Or=wr.length;++mr=0?1:-1,Or=mr*wr,gi=v(Gt),Ti=_(Gt),ki=te*Ti,Ji=pe*gi+ki*v(Or),Fn=ki*mr*_(Or);re.add(b(Fn,Ji)),Le=At,pe=gi,te=Ti}function ye(At){return ae.reset(),W(At,ke),ae*2}function Ve(At){return[b(At[1],At[0]),A(At[2])]}function ce(At){var Gt=At[0],wr=At[1],mr=v(wr);return[mr*v(Gt),mr*_(Gt),_(wr)]}function Je(At,Gt){return At[0]*Gt[0]+At[1]*Gt[1]+At[2]*Gt[2]}function nt(At,Gt){return[At[1]*Gt[2]-At[2]*Gt[1],At[2]*Gt[0]-At[0]*Gt[2],At[0]*Gt[1]-At[1]*Gt[0]]}function gt(At,Gt){At[0]+=Gt[0],At[1]+=Gt[1],At[2]+=Gt[2]}function Nt(At,Gt){return[At[0]*Gt,At[1]*Gt,At[2]*Gt]}function it(At){var Gt=S(At[0]*At[0]+At[1]*At[1]+At[2]*At[2]);At[0]/=Gt,At[1]/=Gt,At[2]/=Gt}var Ye,kt,Tt,St,Dt,Zt,Et,Ae,at=r(),wt,vt,st={point:Ue,lineStart:$e,lineEnd:zt,polygonStart:function(){st.point=Yt,st.lineStart=hr,st.lineEnd=yr,at.reset(),ke.polygonStart()},polygonEnd:function(){ke.polygonEnd(),st.point=Ue,st.lineStart=$e,st.lineEnd=zt,re<0?(Ye=-(Tt=180),kt=-(St=90)):at>o?St=90:at<-o&&(kt=-90),vt[0]=Ye,vt[1]=Tt},sphere:function(){Ye=-(Tt=180),kt=-(St=90)}};function Ue(At,Gt){wt.push(vt=[Ye=At,Tt=At]),GtSt&&(St=Gt)}function rt(At,Gt){var wr=ce([At*d,Gt*d]);if(Ae){var mr=nt(Ae,wr),Or=[mr[1],-mr[0],0],gi=nt(Or,mr);it(gi),gi=Ve(gi);var Ti=At-Dt,ki=Ti>0?1:-1,Ji=gi[0]*h*ki,Fn,Pi=p(Ti)>180;Pi^(ki*DtSt&&(St=Fn)):(Ji=(Ji+360)%360-180,Pi^(ki*DtSt&&(St=Gt))),Pi?Atbr(Ye,Tt)&&(Tt=At):br(At,Tt)>br(Ye,Tt)&&(Ye=At):Tt>=Ye?(AtTt&&(Tt=At)):At>Dt?br(Ye,At)>br(Ye,Tt)&&(Tt=At):br(At,Tt)>br(Ye,Tt)&&(Ye=At)}else wt.push(vt=[Ye=At,Tt=At]);GtSt&&(St=Gt),Ae=wr,Dt=At}function $e(){st.point=rt}function zt(){vt[0]=Ye,vt[1]=Tt,st.point=Ue,Ae=null}function Yt(At,Gt){if(Ae){var wr=At-Dt;at.add(p(wr)>180?wr+(wr>0?360:-360):wr)}else Zt=At,Et=Gt;ke.point(At,Gt),rt(At,Gt)}function hr(){ke.lineStart()}function yr(){Yt(Zt,Et),ke.lineEnd(),p(at)>o&&(Ye=-(Tt=180)),vt[0]=Ye,vt[1]=Tt,Ae=null}function br(At,Gt){return(Gt-=At)<0?Gt+360:Gt}function Ut(At,Gt){return At[0]-Gt[0]}function Ie(At,Gt){return At[0]<=At[1]?At[0]<=Gt&&Gt<=At[1]:Gtbr(mr[0],mr[1])&&(mr[1]=Or[1]),br(Or[0],mr[1])>br(mr[0],mr[1])&&(mr[0]=Or[0])):gi.push(mr=Or);for(Ti=-1/0,wr=gi.length-1,Gt=0,mr=gi[wr];Gt<=wr;mr=Or,++Gt)Or=gi[Gt],(ki=br(mr[1],Or[0]))>Ti&&(Ti=ki,Ye=Or[0],Tt=mr[1])}return wt=vt=null,Ye===1/0||kt===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ye,kt],[Tt,St]]}var Oe,Re,De,ct,ge,fe,de,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di={sphere:F,point:Ii,lineStart:nn,lineEnd:Gi,polygonStart:function(){Di.lineStart=Bt,Di.lineEnd=yt},polygonEnd:function(){Di.lineStart=nn,Di.lineEnd=Gi}};function Ii(At,Gt){At*=d,Gt*=d;var wr=v(Gt);Ci(wr*v(At),wr*_(At),_(Gt))}function Ci(At,Gt,wr){++Oe,De+=(At-De)/Oe,ct+=(Gt-ct)/Oe,ge+=(wr-ge)/Oe}function nn(){Di.point=ii}function ii(At,Gt){At*=d,Gt*=d;var wr=v(Gt);Mr=wr*v(At),Fr=wr*_(At),di=_(Gt),Di.point=wi,Ci(Mr,Fr,di)}function wi(At,Gt){At*=d,Gt*=d;var wr=v(Gt),mr=wr*v(At),Or=wr*_(At),gi=_(Gt),Ti=b(S((Ti=Fr*gi-di*Or)*Ti+(Ti=di*mr-Mr*gi)*Ti+(Ti=Mr*Or-Fr*mr)*Ti),Mr*mr+Fr*Or+di*gi);Re+=Ti,fe+=Ti*(Mr+(Mr=mr)),de+=Ti*(Fr+(Fr=Or)),dt+=Ti*(di+(di=gi)),Ci(Mr,Fr,di)}function Gi(){Di.point=Ii}function Bt(){Di.point=Vt}function yt(){Wt(Hr,Dr),Di.point=Ii}function Vt(At,Gt){Hr=At,Dr=Gt,At*=d,Gt*=d,Di.point=Wt;var wr=v(Gt);Mr=wr*v(At),Fr=wr*_(At),di=_(Gt),Ci(Mr,Fr,di)}function Wt(At,Gt){At*=d,Gt*=d;var wr=v(Gt),mr=wr*v(At),Or=wr*_(At),gi=_(Gt),Ti=Fr*gi-di*Or,ki=di*mr-Mr*gi,Ji=Mr*Or-Fr*mr,Fn=S(Ti*Ti+ki*ki+Ji*Ji),Pi=A(Fn),hi=Fn&&-Pi/Fn;It+=hi*Ti,Pt+=hi*ki,rr+=hi*Ji,Re+=Pi,fe+=Pi*(Mr+(Mr=mr)),de+=Pi*(Fr+(Fr=Or)),dt+=Pi*(di+(di=gi)),Ci(Mr,Fr,di)}function _r(At){Oe=Re=De=ct=ge=fe=de=dt=It=Pt=rr=0,W(At,Di);var Gt=It,wr=Pt,mr=rr,Or=Gt*Gt+wr*wr+mr*mr;return Oru?At+Math.round(-At/c)*c:At,Gt]}Ir.invert=Ir;function Gr(At,Gt,wr){return(At%=c)?Gt||wr?Ur(yi(At),Ei(Gt,wr)):yi(At):Gt||wr?Ei(Gt,wr):Ir}function jr(At){return function(Gt,wr){return Gt+=At,[Gt>u?Gt-c:Gt<-u?Gt+c:Gt,wr]}}function yi(At){var Gt=jr(At);return Gt.invert=jr(-At),Gt}function Ei(At,Gt){var wr=v(At),mr=_(At),Or=v(Gt),gi=_(Gt);function Ti(ki,Ji){var Fn=v(Ji),Pi=v(ki)*Fn,hi=_(ki)*Fn,Li=_(Ji),Si=Li*wr+Pi*mr;return[b(hi*Or-Si*gi,Pi*wr-Li*mr),A(Si*Or+hi*gi)]}return Ti.invert=function(ki,Ji){var Fn=v(Ji),Pi=v(ki)*Fn,hi=_(ki)*Fn,Li=_(Ji),Si=Li*Or-hi*gi;return[b(hi*Or+Li*gi,Pi*wr+Si*mr),A(Si*wr-Pi*mr)]},Ti}function Vi(At){At=Gr(At[0]*d,At[1]*d,At.length>2?At[2]*d:0);function Gt(wr){return wr=At(wr[0]*d,wr[1]*d),wr[0]*=h,wr[1]*=h,wr}return Gt.invert=function(wr){return wr=At.invert(wr[0]*d,wr[1]*d),wr[0]*=h,wr[1]*=h,wr},Gt}function ti(At,Gt,wr,mr,Or,gi){if(wr){var Ti=v(Gt),ki=_(Gt),Ji=mr*wr;Or==null?(Or=Gt+mr*c,gi=Gt-Ji/2):(Or=en(Ti,Or),gi=en(Ti,gi),(mr>0?Orgi)&&(Or+=mr*c));for(var Fn,Pi=Or;mr>0?Pi>gi:Pi1&&At.push(At.pop().concat(At.shift()))},result:function(){var wr=At;return At=[],Gt=null,wr}}}function Bi(At,Gt){return p(At[0]-Gt[0])=0;--ki)Or.point((hi=Pi[ki])[0],hi[1]);else mr(Li.x,Li.p.x,-1,Or);Li=Li.p}Li=Li.o,Pi=Li.z,Si=!Si}while(!Li.v);Or.lineEnd()}}}function Fi(At){if(Gt=At.length){for(var Gt,wr=0,mr=At[0],Or;++wr=0?1:-1,xl=dl*Ks,Ol=xl>u,bl=ta*is;if(Ri.add(b(bl*dl*_(xl),ya*Cs+bl*v(xl))),Ti+=Ol?Ks+dl*c:Ks,Ol^Si>=wr^va>=wr){var eu=nt(ce(Li),ce(pa));it(eu);var Zl=nt(gi,eu);it(Zl);var Vl=(Ol^Ks>=0?-1:1)*A(Zl[2]);(mr>Vl||mr===Vl&&(eu[0]||eu[1]))&&(ki+=Ol^Ks>=0?1:-1)}}return(Ti<-o||Ti0){for(Ji||(Or.polygonStart(),Ji=!0),Or.lineStart(),Cs=0;Cs1&&zn&2&&is.push(is.pop().concat(is.shift())),Pi.push(is.filter(ft))}}return Li}}function ft(At){return At.length>1}function tr(At,Gt){return((At=At.x)[0]<0?At[1]-l-o:l-At[1])-((Gt=Gt.x)[0]<0?Gt[1]-l-o:l-Gt[1])}var pr=Xr(function(){return!0},gr,Ai,[-u,-l]);function gr(At){var Gt=NaN,wr=NaN,mr=NaN,Or;return{lineStart:function(){At.lineStart(),Or=1},point:function(gi,Ti){var ki=gi>0?u:-u,Ji=p(gi-Gt);p(Ji-u)0?l:-l),At.point(mr,wr),At.lineEnd(),At.lineStart(),At.point(ki,wr),At.point(gi,wr),Or=0):mr!==ki&&Ji>=u&&(p(Gt-mr)o?x((_(Gt)*(gi=v(mr))*_(wr)-_(mr)*(Or=v(Gt))*_(At))/(Or*gi*Ti)):(Gt+mr)/2}function Ai(At,Gt,wr,mr){var Or;if(At==null)Or=wr*l,mr.point(-u,Or),mr.point(0,Or),mr.point(u,Or),mr.point(u,0),mr.point(u,-Or),mr.point(0,-Or),mr.point(-u,-Or),mr.point(-u,0),mr.point(-u,Or);else if(p(At[0]-Gt[0])>o){var gi=At[0]0,Or=p(Gt)>o;function gi(Pi,hi,Li,Si){ti(Si,At,wr,Li,Pi,hi)}function Ti(Pi,hi){return v(Pi)*v(hi)>Gt}function ki(Pi){var hi,Li,Si,Gn,ta;return{lineStart:function(){Gn=Si=!1,ta=1},point:function(ya,ia){var pa=[ya,ia],va,zn=Ti(ya,ia),is=mr?zn?0:Fn(ya,ia):zn?Fn(ya+(ya<0?u:-u),ia):0;if(!hi&&(Gn=Si=zn)&&Pi.lineStart(),zn!==Si&&(va=Ji(hi,pa),(!va||Bi(hi,va)||Bi(pa,va))&&(pa[2]=1)),zn!==Si)ta=0,zn?(Pi.lineStart(),va=Ji(pa,hi),Pi.point(va[0],va[1])):(va=Ji(hi,pa),Pi.point(va[0],va[1],2),Pi.lineEnd()),hi=va;else if(Or&&hi&&mr^zn){var Cs;!(is&Li)&&(Cs=Ji(pa,hi,!0))&&(ta=0,mr?(Pi.lineStart(),Pi.point(Cs[0][0],Cs[0][1]),Pi.point(Cs[1][0],Cs[1][1]),Pi.lineEnd()):(Pi.point(Cs[1][0],Cs[1][1]),Pi.lineEnd(),Pi.lineStart(),Pi.point(Cs[0][0],Cs[0][1],3)))}zn&&(!hi||!Bi(hi,pa))&&Pi.point(pa[0],pa[1]),hi=pa,Si=zn,Li=is},lineEnd:function(){Si&&Pi.lineEnd(),hi=null},clean:function(){return ta|(Gn&&Si)<<1}}}function Ji(Pi,hi,Li){var Si=ce(Pi),Gn=ce(hi),ta=[1,0,0],ya=nt(Si,Gn),ia=Je(ya,ya),pa=ya[0],va=ia-pa*pa;if(!va)return!Li&Πvar zn=Gt*ia/va,is=-Gt*pa/va,Cs=nt(ta,ya),Ks=Nt(ta,zn),dl=Nt(ya,is);gt(Ks,dl);var xl=Cs,Ol=Je(Ks,xl),bl=Je(xl,xl),eu=Ol*Ol-bl*(Je(Ks,Ks)-1);if(!(eu<0)){var Zl=S(eu),Vl=Nt(xl,(-Ol-Zl)/bl);if(gt(Vl,Ks),Vl=Ve(Vl),!Li)return Vl;var ja=Pi[0],ns=hi[0],Js=Pi[1],cs=hi[1],sl;ns0^Vl[1]<(p(Vl[0]-ja)u^(ja<=Vl[0]&&Vl[0]<=ns)){var Ml=Nt(xl,(-Ol+Zl)/bl);return gt(Ml,Ks),[Vl,Ve(Ml)]}}}function Fn(Pi,hi){var Li=mr?At:u-At,Si=0;return Pi<-Li?Si|=1:Pi>Li&&(Si|=2),hi<-Li?Si|=4:hi>Li&&(Si|=8),Si}return Xr(Ti,ki,gi,mr?[0,-At]:[-u,At-u])}function ni(At,Gt,wr,mr,Or,gi){var Ti=At[0],ki=At[1],Ji=Gt[0],Fn=Gt[1],Pi=0,hi=1,Li=Ji-Ti,Si=Fn-ki,Gn;if(Gn=wr-Ti,!(!Li&&Gn>0)){if(Gn/=Li,Li<0){if(Gn0){if(Gn>hi)return;Gn>Pi&&(Pi=Gn)}if(Gn=Or-Ti,!(!Li&&Gn<0)){if(Gn/=Li,Li<0){if(Gn>hi)return;Gn>Pi&&(Pi=Gn)}else if(Li>0){if(Gn0)){if(Gn/=Si,Si<0){if(Gn0){if(Gn>hi)return;Gn>Pi&&(Pi=Gn)}if(Gn=gi-ki,!(!Si&&Gn<0)){if(Gn/=Si,Si<0){if(Gn>hi)return;Gn>Pi&&(Pi=Gn)}else if(Si>0){if(Gn0&&(At[0]=Ti+Pi*Li,At[1]=ki+Pi*Si),hi<1&&(Gt[0]=Ti+hi*Li,Gt[1]=ki+hi*Si),!0}}}}}var Zi=1e9,aa=-Zi;function Mn(At,Gt,wr,mr){function Or(Fn,Pi){return At<=Fn&&Fn<=wr&&Gt<=Pi&&Pi<=mr}function gi(Fn,Pi,hi,Li){var Si=0,Gn=0;if(Fn==null||(Si=Ti(Fn,hi))!==(Gn=Ti(Pi,hi))||Ji(Fn,Pi)<0^hi>0)do Li.point(Si===0||Si===3?At:wr,Si>1?mr:Gt);while((Si=(Si+hi+4)%4)!==Gn);else Li.point(Pi[0],Pi[1])}function Ti(Fn,Pi){return p(Fn[0]-At)0?0:3:p(Fn[0]-wr)0?2:1:p(Fn[1]-Gt)0?1:0:Pi>0?3:2}function ki(Fn,Pi){return Ji(Fn.x,Pi.x)}function Ji(Fn,Pi){var hi=Ti(Fn,1),Li=Ti(Pi,1);return hi!==Li?hi-Li:hi===0?Pi[1]-Fn[1]:hi===1?Fn[0]-Pi[0]:hi===2?Fn[1]-Pi[1]:Pi[0]-Fn[0]}return function(Fn){var Pi=Fn,hi=oi(),Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks={point:dl,lineStart:eu,lineEnd:Zl,polygonStart:Ol,polygonEnd:bl};function dl(ja,ns){Or(ja,ns)&&Pi.point(ja,ns)}function xl(){for(var ja=0,ns=0,Js=Si.length;nsmr&&(Rl-zl)*(mr-Ml)>(Al-Ml)*(At-zl)&&++ja:Al<=mr&&(Rl-zl)*(mr-Ml)<(Al-Ml)*(At-zl)&&--ja;return ja}function Ol(){Pi=hi,Li=[],Si=[],Cs=!0}function bl(){var ja=xl(),ns=Cs&&ja,Js=(Li=t.merge(Li)).length;(ns||Js)&&(Fn.polygonStart(),ns&&(Fn.lineStart(),gi(null,null,1,Fn),Fn.lineEnd()),Js&&rn(Li,ki,ja,gi,Fn),Fn.polygonEnd()),Pi=Fn,Li=Si=Gn=null}function eu(){Ks.point=Vl,Si&&Si.push(Gn=[]),is=!0,zn=!1,pa=va=NaN}function Zl(){Li&&(Vl(ta,ya),ia&&zn&&hi.rejoin(),Li.push(hi.result())),Ks.point=dl,zn&&Pi.lineEnd()}function Vl(ja,ns){var Js=Or(ja,ns);if(Si&&Gn.push([ja,ns]),is)ta=ja,ya=ns,ia=Js,is=!1,Js&&(Pi.lineStart(),Pi.point(ja,ns));else if(Js&&zn)Pi.point(ja,ns);else{var cs=[pa=Math.max(aa,Math.min(Zi,pa)),va=Math.max(aa,Math.min(Zi,va))],sl=[ja=Math.max(aa,Math.min(Zi,ja)),ns=Math.max(aa,Math.min(Zi,ns))];ni(cs,sl,At,Gt,wr,mr)?(zn||(Pi.lineStart(),Pi.point(cs[0],cs[1])),Pi.point(sl[0],sl[1]),Js||Pi.lineEnd(),Cs=!1):Js&&(Pi.lineStart(),Pi.point(ja,ns),Cs=!1)}pa=ja,va=ns,zn=Js}return Ks}}function Un(){var At=0,Gt=0,wr=960,mr=500,Or,gi,Ti;return Ti={stream:function(ki){return Or&&gi===ki?Or:Or=Mn(At,Gt,wr,mr)(gi=ki)},extent:function(ki){return arguments.length?(At=+ki[0][0],Gt=+ki[0][1],wr=+ki[1][0],mr=+ki[1][1],Or=gi=null,Ti):[[At,Gt],[wr,mr]]}}}var Ga=r(),ma,oa,ka,so={sphere:F,point:F,lineStart:Kr,lineEnd:F,polygonStart:F,polygonEnd:F};function Kr(){so.point=Yo,so.lineEnd=Ia}function Ia(){so.point=so.lineEnd=F}function Yo(At,Gt){At*=d,Gt*=d,ma=At,oa=_(Gt),ka=v(Gt),so.point=fa}function fa(At,Gt){At*=d,Gt*=d;var wr=_(Gt),mr=v(Gt),Or=p(At-ma),gi=v(Or),Ti=_(Or),ki=mr*Ti,Ji=ka*wr-oa*mr*gi,Fn=oa*wr+ka*mr*gi;Ga.add(b(S(ki*ki+Ji*Ji),Fn)),ma=At,oa=wr,ka=mr}function kn(At){return Ga.reset(),W(At,so),+Ga}var Ta=[null,null],ys={type:"LineString",coordinates:Ta};function uo(At,Gt){return Ta[0]=At,Ta[1]=Gt,kn(ys)}var ls={Feature:function(At,Gt){return fo(At.geometry,Gt)},FeatureCollection:function(At,Gt){for(var wr=At.features,mr=-1,Or=wr.length;++mr0&&(Or=uo(At[gi],At[gi-1]),Or>0&&wr<=Or&&mr<=Or&&(wr+mr-Or)*(1-Math.pow((wr-mr)/Or,2))o}).map(Li)).concat(t.range(k(gi/Fn)*Fn,Or,Fn).filter(function(va){return p(va%hi)>o}).map(Si))}return ia.lines=function(){return pa().map(function(va){return{type:"LineString",coordinates:va}})},ia.outline=function(){return{type:"Polygon",coordinates:[Gn(mr).concat(ta(Ti).slice(1),Gn(wr).reverse().slice(1),ta(ki).reverse().slice(1))]}},ia.extent=function(va){return arguments.length?ia.extentMajor(va).extentMinor(va):ia.extentMinor()},ia.extentMajor=function(va){return arguments.length?(mr=+va[0][0],wr=+va[1][0],ki=+va[0][1],Ti=+va[1][1],mr>wr&&(va=mr,mr=wr,wr=va),ki>Ti&&(va=ki,ki=Ti,Ti=va),ia.precision(ya)):[[mr,ki],[wr,Ti]]},ia.extentMinor=function(va){return arguments.length?(Gt=+va[0][0],At=+va[1][0],gi=+va[0][1],Or=+va[1][1],Gt>At&&(va=Gt,Gt=At,At=va),gi>Or&&(va=gi,gi=Or,Or=va),ia.precision(ya)):[[Gt,gi],[At,Or]]},ia.step=function(va){return arguments.length?ia.stepMajor(va).stepMinor(va):ia.stepMinor()},ia.stepMajor=function(va){return arguments.length?(Pi=+va[0],hi=+va[1],ia):[Pi,hi]},ia.stepMinor=function(va){return arguments.length?(Ji=+va[0],Fn=+va[1],ia):[Ji,Fn]},ia.precision=function(va){return arguments.length?(ya=+va,Li=ji(gi,Or,90),Si=gn(Gt,At,ya),Gn=ji(ki,Ti,90),ta=gn(mr,wr,ya),ia):ya},ia.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Ha(){return Ps()()}function Sn(At,Gt){var wr=At[0]*d,mr=At[1]*d,Or=Gt[0]*d,gi=Gt[1]*d,Ti=v(mr),ki=_(mr),Ji=v(gi),Fn=_(gi),Pi=Ti*v(wr),hi=Ti*_(wr),Li=Ji*v(Or),Si=Ji*_(Or),Gn=2*A(S(B(gi-mr)+Ti*Ji*B(Or-wr))),ta=_(Gn),ya=Gn?function(ia){var pa=_(ia*=Gn)/ta,va=_(Gn-ia)/ta,zn=va*Pi+pa*Li,is=va*hi+pa*Si,Cs=va*ki+pa*Fn;return[b(is,zn)*h,b(Cs,S(zn*zn+is*is))*h]}:function(){return[wr*h,mr*h]};return ya.distance=Gn,ya}function ao(At){return At}var Ba=r(),Ko=r(),Qo,Wi,Sa,Qa,vn={point:F,lineStart:F,lineEnd:F,polygonStart:function(){vn.lineStart=da,vn.lineEnd=As},polygonEnd:function(){vn.lineStart=vn.lineEnd=vn.point=F,Ba.add(p(Ko)),Ko.reset()},result:function(){var At=Ba/2;return Ba.reset(),At}};function da(){vn.point=la}function la(At,Gt){vn.point=vo,Qo=Sa=At,Wi=Qa=Gt}function vo(At,Gt){Ko.add(Qa*At-Sa*Gt),Sa=At,Qa=Gt}function As(){vo(Qo,Wi)}var ps=1/0,co=ps,mo=-ps,No=mo,jn={point:Go,lineStart:F,lineEnd:F,polygonStart:F,polygonEnd:F,result:function(){var At=[[ps,co],[mo,No]];return mo=No=-(co=ps=1/0),At}};function Go(At,Gt){Atmo&&(mo=At),GtNo&&(No=Gt)}var Ys=0,qs=0,Ns=0,Oa=0,ha=0,Vs=0,Ya=0,_n=0,Vn=0,wo,Ra,Xn,un,$n={point:Ka,lineStart:qn,lineEnd:lo,polygonStart:function(){$n.lineStart=eo,$n.lineEnd=sa},polygonEnd:function(){$n.point=Ka,$n.lineStart=qn,$n.lineEnd=lo},result:function(){var At=Vn?[Ya/Vn,_n/Vn]:Vs?[Oa/Vs,ha/Vs]:Ns?[Ys/Ns,qs/Ns]:[NaN,NaN];return Ys=qs=Ns=Oa=ha=Vs=Ya=_n=Vn=0,At}};function Ka(At,Gt){Ys+=At,qs+=Gt,++Ns}function qn(){$n.point=Eo}function Eo(At,Gt){$n.point=Ja,Ka(Xn=At,un=Gt)}function Ja(At,Gt){var wr=At-Xn,mr=Gt-un,Or=S(wr*wr+mr*mr);Oa+=Or*(Xn+At)/2,ha+=Or*(un+Gt)/2,Vs+=Or,Ka(Xn=At,un=Gt)}function lo(){$n.point=Ka}function eo(){$n.point=es}function sa(){Na(wo,Ra)}function es(At,Gt){$n.point=Na,Ka(wo=Xn=At,Ra=un=Gt)}function Na(At,Gt){var wr=At-Xn,mr=Gt-un,Or=S(wr*wr+mr*mr);Oa+=Or*(Xn+At)/2,ha+=Or*(un+Gt)/2,Vs+=Or,Or=un*At-Xn*Gt,Ya+=Or*(Xn+At),_n+=Or*(un+Gt),Vn+=Or*3,Ka(Xn=At,un=Gt)}function tn(At){this._context=At}tn.prototype={_radius:4.5,pointRadius:function(At){return this._radius=At,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(At,Gt){switch(this._point){case 0:{this._context.moveTo(At,Gt),this._point=1;break}case 1:{this._context.lineTo(At,Gt);break}default:{this._context.moveTo(At+this._radius,Gt),this._context.arc(At,Gt,this._radius,0,c);break}}},result:F};var Pa=r(),to,yo,Jo,Ao,Dn,_a={point:F,lineStart:function(){_a.point=Ws},lineEnd:function(){to&&Ca(yo,Jo),_a.point=F},polygonStart:function(){to=!0},polygonEnd:function(){to=null},result:function(){var At=+Pa;return Pa.reset(),At}};function Ws(At,Gt){_a.point=Ca,yo=Ao=At,Jo=Dn=Gt}function Ca(At,Gt){Ao-=At,Dn-=Gt,Pa.add(S(Ao*Ao+Dn*Dn)),Ao=At,Dn=Gt}function Es(){this._string=[]}Es.prototype={_radius:4.5,_circle:Ts(4.5),pointRadius:function(At){return(At=+At)!==this._radius&&(this._radius=At,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(At,Gt){switch(this._point){case 0:{this._string.push("M",At,",",Gt),this._point=1;break}case 1:{this._string.push("L",At,",",Gt);break}default:{this._circle==null&&(this._circle=Ts(this._radius)),this._string.push("M",At,",",Gt,this._circle);break}}},result:function(){if(this._string.length){var At=this._string.join("");return this._string=[],At}else return null}};function Ts(At){return"m0,"+At+"a"+At+","+At+" 0 1,1 0,"+-2*At+"a"+At+","+At+" 0 1,1 0,"+2*At+"z"}function Ho(At,Gt){var wr=4.5,mr,Or;function gi(Ti){return Ti&&(typeof wr=="function"&&Or.pointRadius(+wr.apply(this,arguments)),W(Ti,mr(Or))),Or.result()}return gi.area=function(Ti){return W(Ti,mr(vn)),vn.result()},gi.measure=function(Ti){return W(Ti,mr(_a)),_a.result()},gi.bounds=function(Ti){return W(Ti,mr(jn)),jn.result()},gi.centroid=function(Ti){return W(Ti,mr($n)),$n.result()},gi.projection=function(Ti){return arguments.length?(mr=Ti==null?(At=null,ao):(At=Ti).stream,gi):At},gi.context=function(Ti){return arguments.length?(Or=Ti==null?(Gt=null,new Es):new tn(Gt=Ti),typeof wr!="function"&&Or.pointRadius(wr),gi):Gt},gi.pointRadius=function(Ti){return arguments.length?(wr=typeof Ti=="function"?Ti:(Or.pointRadius(+Ti),+Ti),gi):wr},gi.projection(At).context(Gt)}function Wa(At){return{stream:To(At)}}function To(At){return function(Gt){var wr=new ts;for(var mr in At)wr[mr]=At[mr];return wr.stream=Gt,wr}}function ts(){}ts.prototype={constructor:ts,point:function(At,Gt){this.stream.point(At,Gt)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Wo(At,Gt,wr){var mr=At.clipExtent&&At.clipExtent();return At.scale(150).translate([0,0]),mr!=null&&At.clipExtent(null),W(wr,At.stream(jn)),Gt(jn.result()),mr!=null&&At.clipExtent(mr),At}function qa(At,Gt,wr){return Wo(At,function(mr){var Or=Gt[1][0]-Gt[0][0],gi=Gt[1][1]-Gt[0][1],Ti=Math.min(Or/(mr[1][0]-mr[0][0]),gi/(mr[1][1]-mr[0][1])),ki=+Gt[0][0]+(Or-Ti*(mr[1][0]+mr[0][0]))/2,Ji=+Gt[0][1]+(gi-Ti*(mr[1][1]+mr[0][1]))/2;At.scale(150*Ti).translate([ki,Ji])},wr)}function ln(At,Gt,wr){return qa(At,[[0,0],Gt],wr)}function Bo(At,Gt,wr){return Wo(At,function(mr){var Or=+Gt,gi=Or/(mr[1][0]-mr[0][0]),Ti=(Or-gi*(mr[1][0]+mr[0][0]))/2,ki=-gi*mr[0][1];At.scale(150*gi).translate([Ti,ki])},wr)}function ko(At,Gt,wr){return Wo(At,function(mr){var Or=+Gt,gi=Or/(mr[1][1]-mr[0][1]),Ti=-gi*mr[0][0],ki=(Or-gi*(mr[1][1]+mr[0][1]))/2;At.scale(150*gi).translate([Ti,ki])},wr)}var oo=16,za=v(30*d);function ea(At,Gt){return+Gt?$s(At,Gt):rs(At)}function rs(At){return To({point:function(Gt,wr){Gt=At(Gt,wr),this.stream.point(Gt[0],Gt[1])}})}function $s(At,Gt){function wr(mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya){var ia=Fn-mr,pa=Pi-Or,va=ia*ia+pa*pa;if(va>4*Gt&&ta--){var zn=Ti+Li,is=ki+Si,Cs=Ji+Gn,Ks=S(zn*zn+is*is+Cs*Cs),dl=A(Cs/=Ks),xl=p(p(Cs)-1)Gt||p((ia*Zl+pa*Vl)/va-.5)>.3||Ti*Li+ki*Si+Ji*Gn2?ja[2]%360*d:0,Zl()):[ki*h,Ji*h,Fn*h]},bl.angle=function(ja){return arguments.length?(hi=ja%360*d,Zl()):hi*h},bl.reflectX=function(ja){return arguments.length?(Li=ja?-1:1,Zl()):Li<0},bl.reflectY=function(ja){return arguments.length?(Si=ja?-1:1,Zl()):Si<0},bl.precision=function(ja){return arguments.length?(Cs=ea(Ks,is=ja*ja),Vl()):S(is)},bl.fitExtent=function(ja,ns){return qa(bl,ja,ns)},bl.fitSize=function(ja,ns){return ln(bl,ja,ns)},bl.fitWidth=function(ja,ns){return Bo(bl,ja,ns)},bl.fitHeight=function(ja,ns){return ko(bl,ja,ns)};function Zl(){var ja=as(wr,0,0,Li,Si,hi).apply(null,Gt(gi,Ti)),ns=(hi?as:fl)(wr,mr-ja[0],Or-ja[1],Li,Si,hi);return Pi=Gr(ki,Ji,Fn),Ks=Ur(Gt,ns),dl=Ur(Pi,Ks),Cs=ea(Ks,is),Vl()}function Vl(){return xl=Ol=null,bl}return function(){return Gt=At.apply(this,arguments),bl.invert=Gt.invert&&eu,Zl()}}function ho(At){var Gt=0,wr=u/3,mr=Qs(At),Or=mr(Gt,wr);return Or.parallels=function(gi){return arguments.length?mr(Gt=gi[0]*d,wr=gi[1]*d):[Gt*h,wr*h]},Or}function gs(At){var Gt=v(At);function wr(mr,Or){return[mr*Gt,_(Or)/Gt]}return wr.invert=function(mr,Or){return[mr/Gt,A(Or*Gt)]},wr}function Vo(At,Gt){var wr=_(At),mr=(wr+_(Gt))/2;if(p(mr)=.12&&ya<.234&&ta>=-.425&&ta<-.214?Or:ya>=.166&&ya<.234&&ta>=-.214&&ta<-.115?Ti:wr).invert(Li)},Pi.stream=function(Li){return At&&Gt===Li?At:At=xs([wr.stream(Gt=Li),Or.stream(Li),Ti.stream(Li)])},Pi.precision=function(Li){return arguments.length?(wr.precision(Li),Or.precision(Li),Ti.precision(Li),hi()):wr.precision()},Pi.scale=function(Li){return arguments.length?(wr.scale(Li),Or.scale(Li*.35),Ti.scale(Li),Pi.translate(wr.translate())):wr.scale()},Pi.translate=function(Li){if(!arguments.length)return wr.translate();var Si=wr.scale(),Gn=+Li[0],ta=+Li[1];return mr=wr.translate(Li).clipExtent([[Gn-.455*Si,ta-.238*Si],[Gn+.455*Si,ta+.238*Si]]).stream(Fn),gi=Or.translate([Gn-.307*Si,ta+.201*Si]).clipExtent([[Gn-.425*Si+o,ta+.12*Si+o],[Gn-.214*Si-o,ta+.234*Si-o]]).stream(Fn),ki=Ti.translate([Gn-.205*Si,ta+.212*Si]).clipExtent([[Gn-.214*Si+o,ta+.166*Si+o],[Gn-.115*Si-o,ta+.234*Si-o]]).stream(Fn),hi()},Pi.fitExtent=function(Li,Si){return qa(Pi,Li,Si)},Pi.fitSize=function(Li,Si){return ln(Pi,Li,Si)},Pi.fitWidth=function(Li,Si){return Bo(Pi,Li,Si)},Pi.fitHeight=function(Li,Si){return ko(Pi,Li,Si)};function hi(){return At=Gt=null,Pi}return Pi.scale(1070)}function Ea(At){return function(Gt,wr){var mr=v(Gt),Or=v(wr),gi=At(mr*Or);return[gi*Or*_(Gt),gi*_(wr)]}}function Jn(At){return function(Gt,wr){var mr=S(Gt*Gt+wr*wr),Or=At(mr),gi=_(Or),Ti=v(Or);return[b(Gt*gi,mr*Ti),A(mr&&wr*gi/mr)]}}var Oo=Ea(function(At){return S(2/(1+At))});Oo.invert=Jn(function(At){return 2*A(At/2)});function rl(){return Ma(Oo).scale(124.75).clipAngle(180-.001)}var Gs=Ea(function(At){return(At=P(At))&&At/_(At)});Gs.invert=Jn(function(At){return At});function bs(){return Ma(Gs).scale(79.4188).clipAngle(180-.001)}function zs(At,Gt){return[At,T(m((l+Gt)/2))]}zs.invert=function(At,Gt){return[At,2*x(E(Gt))-l]};function $o(){return Aa(zs).scale(961/c)}function Aa(At){var Gt=Ma(At),wr=Gt.center,mr=Gt.scale,Or=Gt.translate,gi=Gt.clipExtent,Ti=null,ki,Ji,Fn;Gt.scale=function(hi){return arguments.length?(mr(hi),Pi()):mr()},Gt.translate=function(hi){return arguments.length?(Or(hi),Pi()):Or()},Gt.center=function(hi){return arguments.length?(wr(hi),Pi()):wr()},Gt.clipExtent=function(hi){return arguments.length?(hi==null?Ti=ki=Ji=Fn=null:(Ti=+hi[0][0],ki=+hi[0][1],Ji=+hi[1][0],Fn=+hi[1][1]),Pi()):Ti==null?null:[[Ti,ki],[Ji,Fn]]};function Pi(){var hi=u*mr(),Li=Gt(Vi(Gt.rotate()).invert([0,0]));return gi(Ti==null?[[Li[0]-hi,Li[1]-hi],[Li[0]+hi,Li[1]+hi]]:At===zs?[[Math.max(Li[0]-hi,Ti),ki],[Math.min(Li[0]+hi,Ji),Fn]]:[[Ti,Math.max(Li[1]-hi,ki)],[Ji,Math.min(Li[1]+hi,Fn)]])}return Pi()}function os(At){return m((l+At)/2)}function _l(At,Gt){var wr=v(At),mr=At===Gt?_(At):T(wr/v(Gt))/T(os(Gt)/os(At)),Or=wr*L(os(At),mr)/mr;if(!mr)return zs;function gi(Ti,ki){Or>0?ki<-l+o&&(ki=-l+o):ki>l-o&&(ki=l-o);var Ji=Or/L(os(ki),mr);return[Ji*_(mr*Ti),Or-Ji*v(mr*Ti)]}return gi.invert=function(Ti,ki){var Ji=Or-ki,Fn=C(mr)*S(Ti*Ti+Ji*Ji),Pi=b(Ti,p(Ji))*C(Ji);return Ji*mr<0&&(Pi-=u*C(Ti)*C(Ji)),[Pi/mr,2*x(L(Or/Fn,1/mr))-l]},gi}function Ss(){return ho(_l).scale(109.5).parallels([30,30])}function po(At,Gt){return[At,Gt]}po.invert=po;function go(){return Ma(po).scale(152.63)}function ss(At,Gt){var wr=v(At),mr=At===Gt?_(At):(wr-v(Gt))/(Gt-At),Or=wr/mr+At;if(p(mr)o&&--mr>0);return[At/(.8707+(gi=wr*wr)*(-.131979+gi*(-.013791+gi*gi*gi*(.003971-.001529*gi)))),wr]};function hl(){return Ma(Fs).scale(175.295)}function Fa(At,Gt){return[v(Gt)*_(At),_(Gt)]}Fa.invert=Jn(A);function Ms(){return Ma(Fa).scale(249.5).clipAngle(90+o)}function jo(At,Gt){var wr=v(Gt),mr=1+v(At)*wr;return[wr*_(At)/mr,_(Gt)/mr]}jo.invert=Jn(function(At){return 2*x(At)});function Rs(){return Ma(jo).scale(250).clipAngle(142)}function Is(At,Gt){return[T(m((l+Gt)/2)),-At]}Is.invert=function(At,Gt){return[-Gt,2*x(E(At))-l]};function Bs(){var At=Aa(Is),Gt=At.center,wr=At.rotate;return At.center=function(mr){return arguments.length?Gt([-mr[1],mr[0]]):(mr=Gt(),[mr[1],-mr[0]])},At.rotate=function(mr){return arguments.length?wr([mr[0],mr[1],mr.length>2?mr[2]+90:90]):(mr=wr(),[mr[0],mr[1],mr[2]-90])},wr([0,0,90]).scale(159.155)}e.geoAlbers=Lo,e.geoAlbersUsa=ks,e.geoArea=ye,e.geoAzimuthalEqualArea=rl,e.geoAzimuthalEqualAreaRaw=Oo,e.geoAzimuthalEquidistant=bs,e.geoAzimuthalEquidistantRaw=Gs,e.geoBounds=xe,e.geoCentroid=_r,e.geoCircle=Yr,e.geoClipAntimeridian=pr,e.geoClipCircle=Qi,e.geoClipExtent=Un,e.geoClipRectangle=Mn,e.geoConicConformal=Ss,e.geoConicConformalRaw=_l,e.geoConicEqualArea=Do,e.geoConicEqualAreaRaw=Vo,e.geoConicEquidistant=qo,e.geoConicEquidistantRaw=ss,e.geoContains=Po,e.geoDistance=uo,e.geoEqualEarth=el,e.geoEqualEarthRaw=cl,e.geoEquirectangular=go,e.geoEquirectangularRaw=po,e.geoGnomonic=Ro,e.geoGnomonicRaw=Hs,e.geoGraticule=Ps,e.geoGraticule10=Ha,e.geoIdentity=tl,e.geoInterpolate=Sn,e.geoLength=kn,e.geoMercator=$o,e.geoMercatorRaw=zs,e.geoNaturalEarth1=hl,e.geoNaturalEarth1Raw=Fs,e.geoOrthographic=Ms,e.geoOrthographicRaw=Fa,e.geoPath=Ho,e.geoProjection=Ma,e.geoProjectionMutator=Qs,e.geoRotation=Vi,e.geoStereographic=Rs,e.geoStereographicRaw=jo,e.geoStream=W,e.geoTransform=Wa,e.geoTransverseMercator=Bs,e.geoTransverseMercatorRaw=Is,Object.defineProperty(e,"__esModule",{value:!0})})});var M6e=Te((MF,S6e)=>{(function(e,t){typeof MF=="object"&&typeof S6e!="undefined"?t(MF,NZ(),ik()):t(e.d3=e.d3||{},e.d3,e.d3)})(MF,function(e,t,r){"use strict";var n=Math.abs,i=Math.atan,a=Math.atan2,o=Math.cos,s=Math.exp,u=Math.floor,l=Math.log,f=Math.max,c=Math.min,h=Math.pow,d=Math.round,p=Math.sign||function(he){return he>0?1:he<0?-1:0},x=Math.sin,b=Math.tan,v=1e-6,k=1e-12,E=Math.PI,T=E/2,L=E/4,_=Math.SQRT1_2,C=G(2),S=G(E),m=E*2,P=180/E,A=E/180;function B(he){return he?he/Math.sin(he):1}function F(he){return he>1?T:he<-1?-T:Math.asin(he)}function U(he){return he>1?0:he<-1?E:Math.acos(he)}function G(he){return he>0?Math.sqrt(he):0}function j(he){return he=s(2*he),(he-1)/(he+1)}function H(he){return(s(he)-s(-he))/2}function N(he){return(s(he)+s(-he))/2}function W(he){return l(he+G(he*he+1))}function re(he){return l(he+G(he*he-1))}function ae(he){var Se=b(he/2),qe=2*l(o(he/2))/(Se*Se);function He(lt,tt){var pt=o(lt),Ht=o(tt),nr=x(tt),fr=Ht*pt,Ar=-((1-fr?l((1+fr)/2)/(1-fr):-.5)+qe/(1+fr));return[Ar*Ht*x(lt),Ar*nr]}return He.invert=function(lt,tt){var pt=G(lt*lt+tt*tt),Ht=-he/2,nr=50,fr;if(!pt)return[0,0];do{var Ar=Ht/2,Rr=o(Ar),ri=x(Ar),si=ri/Rr,Mi=-l(n(Rr));Ht-=fr=(2/si*Mi-qe*si-pt)/(-Mi/(ri*ri)+1-qe/(2*Rr*Rr))*(Rr<0?.7:1)}while(n(fr)>v&&--nr>0);var hn=x(Ht);return[a(lt*hn,pt*o(Ht)),F(tt*hn/pt)]},He}function be(){var he=T,Se=t.geoProjectionMutator(ae),qe=Se(he);return qe.radius=function(He){return arguments.length?Se(he=He*A):he*P},qe.scale(179.976).clipAngle(147)}function Ce(he,Se){var qe=o(Se),He=B(U(qe*o(he/=2)));return[2*qe*x(he)*He,x(Se)*He]}Ce.invert=function(he,Se){if(!(he*he+4*Se*Se>E*E+v)){var qe=he,He=Se,lt=25;do{var tt=x(qe),pt=x(qe/2),Ht=o(qe/2),nr=x(He),fr=o(He),Ar=x(2*He),Rr=nr*nr,ri=fr*fr,si=pt*pt,Mi=1-ri*Ht*Ht,hn=Mi?U(fr*Ht)*G(Zn=1/Mi):Zn=0,Zn,Yn=2*hn*fr*pt-he,Ua=hn*nr-Se,Fo=Zn*(ri*si+hn*fr*Ht*Rr),vl=Zn*(.5*tt*Ar-hn*2*nr*pt),Us=Zn*.25*(Ar*pt-hn*nr*ri*tt),ml=Zn*(Rr*Ht+hn*si*fr),au=vl*Us-ml*Fo;if(!au)break;var Sl=(Ua*vl-Yn*ml)/au,Yl=(Yn*Us-Ua*Fo)/au;qe-=Sl,He-=Yl}while((n(Sl)>v||n(Yl)>v)&&--lt>0);return[qe,He]}};function Le(){return t.geoProjection(Ce).scale(152.63)}function pe(he){var Se=x(he),qe=o(he),He=he>=0?1:-1,lt=b(He*he),tt=(1+Se-qe)/2;function pt(Ht,nr){var fr=o(nr),Ar=o(Ht/=2);return[(1+fr)*x(Ht),(He*nr>-a(Ar,lt)-.001?0:-He*10)+tt+x(nr)*qe-(1+fr)*Se*Ar]}return pt.invert=function(Ht,nr){var fr=0,Ar=0,Rr=50;do{var ri=o(fr),si=x(fr),Mi=o(Ar),hn=x(Ar),Zn=1+Mi,Yn=Zn*si-Ht,Ua=tt+hn*qe-Zn*Se*ri-nr,Fo=Zn*ri/2,vl=-si*hn,Us=Se*Zn*si/2,ml=qe*Mi+Se*ri*hn,au=vl*Us-ml*Fo,Sl=(Ua*vl-Yn*ml)/au/2,Yl=(Yn*Us-Ua*Fo)/au;n(Yl)>2&&(Yl/=2),fr-=Sl,Ar-=Yl}while((n(Sl)>v||n(Yl)>v)&&--Rr>0);return He*Ar>-a(o(fr),lt)-.001?[fr*2,Ar]:null},pt}function te(){var he=20*A,Se=he>=0?1:-1,qe=b(Se*he),He=t.geoProjectionMutator(pe),lt=He(he),tt=lt.stream;return lt.parallel=function(pt){return arguments.length?(qe=b((Se=(he=pt*A)>=0?1:-1)*he),He(he)):he*P},lt.stream=function(pt){var Ht=lt.rotate(),nr=tt(pt),fr=(lt.rotate([0,0]),tt(pt)),Ar=lt.precision();return lt.rotate(Ht),nr.sphere=function(){fr.polygonStart(),fr.lineStart();for(var Rr=Se*-180;Se*Rr<180;Rr+=Se*90)fr.point(Rr,Se*90);if(he)for(;Se*(Rr-=3*Se*Ar)>=-180;)fr.point(Rr,Se*-a(o(Rr*A/2),qe)*P);fr.lineEnd(),fr.polygonEnd()},nr},lt.scale(218.695).center([0,28.0974])}function ke(he,Se){var qe=b(Se/2),He=G(1-qe*qe),lt=1+He*o(he/=2),tt=x(he)*He/lt,pt=qe/lt,Ht=tt*tt,nr=pt*pt;return[4/3*tt*(3+Ht-3*nr),4/3*pt*(3+3*Ht-nr)]}ke.invert=function(he,Se){if(he*=3/8,Se*=3/8,!he&&n(Se)>1)return null;var qe=he*he,He=Se*Se,lt=1+qe+He,tt=G((lt-G(lt*lt-4*Se*Se))/2),pt=F(tt)/3,Ht=tt?re(n(Se/tt))/3:W(n(he))/3,nr=o(pt),fr=N(Ht),Ar=fr*fr-nr*nr;return[p(he)*2*a(H(Ht)*nr,.25-Ar),p(Se)*2*a(fr*x(pt),.25+Ar)]};function Ee(){return t.geoProjection(ke).scale(66.1603)}var Me=G(8),Ne=l(1+C);function Fe(he,Se){var qe=n(Se);return qek&&--He>0);return[he/(o(qe)*(Me-1/x(qe))),p(Se)*qe]};function ye(){return t.geoProjection(Fe).scale(112.314)}function Ve(he){var Se=2*E/he;function qe(He,lt){var tt=t.geoAzimuthalEquidistantRaw(He,lt);if(n(He)>T){var pt=a(tt[1],tt[0]),Ht=G(tt[0]*tt[0]+tt[1]*tt[1]),nr=Se*d((pt-T)/Se)+T,fr=a(x(pt-=nr),2-o(pt));pt=nr+F(E/Ht*x(fr))-fr,tt[0]=Ht*o(pt),tt[1]=Ht*x(pt)}return tt}return qe.invert=function(He,lt){var tt=G(He*He+lt*lt);if(tt>T){var pt=a(lt,He),Ht=Se*d((pt-T)/Se)+T,nr=pt>Ht?-1:1,fr=tt*o(Ht-pt),Ar=1/b(nr*U((fr-E)/G(E*(E-2*fr)+tt*tt)));pt=Ht+2*i((Ar+nr*G(Ar*Ar-3))/3),He=tt*o(pt),lt=tt*x(pt)}return t.geoAzimuthalEquidistantRaw.invert(He,lt)},qe}function ce(){var he=5,Se=t.geoProjectionMutator(Ve),qe=Se(he),He=qe.stream,lt=.01,tt=-o(lt*A),pt=x(lt*A);return qe.lobes=function(Ht){return arguments.length?Se(he=+Ht):he},qe.stream=function(Ht){var nr=qe.rotate(),fr=He(Ht),Ar=(qe.rotate([0,0]),He(Ht));return qe.rotate(nr),fr.sphere=function(){Ar.polygonStart(),Ar.lineStart();for(var Rr=0,ri=360/he,si=2*E/he,Mi=90-180/he,hn=T;Rr0&&n(lt)>v);return He<0?NaN:qe}function it(he,Se,qe){return Se===void 0&&(Se=40),qe===void 0&&(qe=k),function(He,lt,tt,pt){var Ht,nr,fr;tt=tt===void 0?0:+tt,pt=pt===void 0?0:+pt;for(var Ar=0;ArHt){tt-=nr/=2,pt-=fr/=2;continue}Ht=Mi;var hn=(tt>0?-1:1)*qe,Zn=(pt>0?-1:1)*qe,Yn=he(tt+hn,pt),Ua=he(tt,pt+Zn),Fo=(Yn[0]-Rr[0])/hn,vl=(Yn[1]-Rr[1])/hn,Us=(Ua[0]-Rr[0])/Zn,ml=(Ua[1]-Rr[1])/Zn,au=ml*Fo-vl*Us,Sl=(n(au)<.5?.5:1)/au;if(nr=(si*Us-ri*ml)*Sl,fr=(ri*vl-si*Fo)*Sl,tt+=nr,pt+=fr,n(nr)0&&(Ht[1]*=1+nr/1.5*Ht[0]*Ht[0]),Ht}return He.invert=it(He),He}function kt(){return t.geoProjection(Ye()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Tt(he,Se){var qe=he*x(Se),He=30,lt;do Se-=lt=(Se+x(Se)-qe)/(1+o(Se));while(n(lt)>v&&--He>0);return Se/2}function St(he,Se,qe){function He(lt,tt){return[he*lt*o(tt=Tt(qe,tt)),Se*x(tt)]}return He.invert=function(lt,tt){return tt=F(tt/Se),[lt/(he*o(tt)),F((2*tt+x(2*tt))/qe)]},He}var Dt=St(C/T,C,E);function Zt(){return t.geoProjection(Dt).scale(169.529)}var Et=2.00276,Ae=1.11072;function at(he,Se){var qe=Tt(E,Se);return[Et*he/(1/o(Se)+Ae/o(qe)),(Se+C*x(qe))/Et]}at.invert=function(he,Se){var qe=Et*Se,He=Se<0?-L:L,lt=25,tt,pt;do pt=qe-C*x(He),He-=tt=(x(2*He)+2*He-E*x(pt))/(2*o(2*He)+2+E*o(pt)*C*o(He));while(n(tt)>v&&--lt>0);return pt=qe-C*x(He),[he*(1/o(pt)+Ae/o(He))/Et,pt]};function wt(){return t.geoProjection(at).scale(160.857)}function vt(he){var Se=0,qe=t.geoProjectionMutator(he),He=qe(Se);return He.parallel=function(lt){return arguments.length?qe(Se=lt*A):Se*P},He}function st(he,Se){return[he*o(Se),Se]}st.invert=function(he,Se){return[he/o(Se),Se]};function Ue(){return t.geoProjection(st).scale(152.63)}function rt(he){if(!he)return st;var Se=1/b(he);function qe(He,lt){var tt=Se+he-lt,pt=tt&&He*o(lt)/tt;return[tt*x(pt),Se-tt*o(pt)]}return qe.invert=function(He,lt){var tt=G(He*He+(lt=Se-lt)*lt),pt=Se+he-tt;return[tt/o(pt)*a(He,lt),pt]},qe}function $e(){return vt(rt).scale(123.082).center([0,26.1441]).parallel(45)}function zt(he){function Se(qe,He){var lt=T-He,tt=lt&&qe*he*x(lt)/lt;return[lt*x(tt)/he,T-lt*o(tt)]}return Se.invert=function(qe,He){var lt=qe*he,tt=T-He,pt=G(lt*lt+tt*tt),Ht=a(lt,tt);return[(pt?pt/x(pt):1)*Ht/he,T-pt]},Se}function Yt(){var he=.5,Se=t.geoProjectionMutator(zt),qe=Se(he);return qe.fraction=function(He){return arguments.length?Se(he=+He):he},qe.scale(158.837)}var hr=St(1,4/E,E);function yr(){return t.geoProjection(hr).scale(152.63)}function br(he,Se,qe,He,lt,tt){var pt=o(tt),Ht;if(n(he)>1||n(tt)>1)Ht=U(qe*lt+Se*He*pt);else{var nr=x(he/2),fr=x(tt/2);Ht=2*F(G(nr*nr+Se*He*fr*fr))}return n(Ht)>v?[Ht,a(He*x(tt),Se*lt-qe*He*pt)]:[0,0]}function Ut(he,Se,qe){return U((he*he+Se*Se-qe*qe)/(2*he*Se))}function Ie(he){return he-2*E*u((he+E)/(2*E))}function xe(he,Se,qe){for(var He=[[he[0],he[1],x(he[1]),o(he[1])],[Se[0],Se[1],x(Se[1]),o(Se[1])],[qe[0],qe[1],x(qe[1]),o(qe[1])]],lt=He[2],tt,pt=0;pt<3;++pt,lt=tt)tt=He[pt],lt.v=br(tt[1]-lt[1],lt[3],lt[2],tt[3],tt[2],tt[0]-lt[0]),lt.point=[0,0];var Ht=Ut(He[0].v[0],He[2].v[0],He[1].v[0]),nr=Ut(He[0].v[0],He[1].v[0],He[2].v[0]),fr=E-Ht;He[2].point[1]=0,He[0].point[0]=-(He[1].point[0]=He[0].v[0]/2);var Ar=[He[2].point[0]=He[0].point[0]+He[2].v[0]*o(Ht),2*(He[0].point[1]=He[1].point[1]=He[2].v[0]*x(Ht))];function Rr(ri,si){var Mi=x(si),hn=o(si),Zn=new Array(3),Yn;for(Yn=0;Yn<3;++Yn){var Ua=He[Yn];if(Zn[Yn]=br(si-Ua[1],Ua[3],Ua[2],hn,Mi,ri-Ua[0]),!Zn[Yn][0])return Ua.point;Zn[Yn][1]=Ie(Zn[Yn][1]-Ua.v[1])}var Fo=Ar.slice();for(Yn=0;Yn<3;++Yn){var vl=Yn==2?0:Yn+1,Us=Ut(He[Yn].v[0],Zn[Yn][0],Zn[vl][0]);Zn[Yn][1]<0&&(Us=-Us),Yn?Yn==1?(Us=nr-Us,Fo[0]-=Zn[Yn][0]*o(Us),Fo[1]-=Zn[Yn][0]*x(Us)):(Us=fr-Us,Fo[0]+=Zn[Yn][0]*o(Us),Fo[1]+=Zn[Yn][0]*x(Us)):(Fo[0]+=Zn[Yn][0]*o(Us),Fo[1]-=Zn[Yn][0]*x(Us))}return Fo[0]/=3,Fo[1]/=3,Fo}return Rr}function Oe(he){return he[0]*=A,he[1]*=A,he}function Re(){return De([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function De(he,Se,qe){var He=t.geoCentroid({type:"MultiPoint",coordinates:[he,Se,qe]}),lt=[-He[0],-He[1]],tt=t.geoRotation(lt),pt=xe(Oe(tt(he)),Oe(tt(Se)),Oe(tt(qe)));pt.invert=it(pt);var Ht=t.geoProjection(pt).rotate(lt),nr=Ht.center;return delete Ht.rotate,Ht.center=function(fr){return arguments.length?nr(tt(fr)):tt.invert(nr())},Ht.clipAngle(90)}function ct(he,Se){var qe=G(1-x(Se));return[2/S*he*qe,S*(1-qe)]}ct.invert=function(he,Se){var qe=(qe=Se/S-1)*qe;return[qe>0?he*G(E/qe)/2:0,F(1-qe)]};function ge(){return t.geoProjection(ct).scale(95.6464).center([0,30])}function fe(he){var Se=b(he);function qe(He,lt){return[He,(He?He/x(He):1)*(x(lt)*o(He)-Se*o(lt))]}return qe.invert=Se?function(He,lt){He&&(lt*=x(He)/He);var tt=o(He);return[He,2*a(G(tt*tt+Se*Se-lt*lt)-tt,Se-lt)]}:function(He,lt){return[He,F(He?lt*b(He)/He:lt)]},qe}function de(){return vt(fe).scale(249.828).clipAngle(90)}var dt=G(3);function It(he,Se){return[dt*he*(2*o(2*Se/3)-1)/S,dt*S*x(Se/3)]}It.invert=function(he,Se){var qe=3*F(Se/(dt*S));return[S*he/(dt*(2*o(2*qe/3)-1)),qe]};function Pt(){return t.geoProjection(It).scale(156.19)}function rr(he){var Se=o(he);function qe(He,lt){return[He*Se,x(lt)/Se]}return qe.invert=function(He,lt){return[He/Se,F(lt*Se)]},qe}function Hr(){return vt(rr).parallel(38.58).scale(195.044)}function Dr(he){var Se=o(he);function qe(He,lt){return[He*Se,(1+Se)*b(lt/2)]}return qe.invert=function(He,lt){return[He/Se,i(lt/(1+Se))*2]},qe}function Mr(){return vt(Dr).scale(124.75)}function Fr(he,Se){var qe=G(8/(3*E));return[qe*he*(1-n(Se)/E),qe*Se]}Fr.invert=function(he,Se){var qe=G(8/(3*E)),He=Se/qe;return[he/(qe*(1-n(He)/E)),He]};function di(){return t.geoProjection(Fr).scale(165.664)}function Di(he,Se){var qe=G(4-3*x(n(Se)));return[2/G(6*E)*he*qe,p(Se)*G(2*E/3)*(2-qe)]}Di.invert=function(he,Se){var qe=2-n(Se)/G(2*E/3);return[he*G(6*E)/(2*qe),p(Se)*F((4-qe*qe)/3)]};function Ii(){return t.geoProjection(Di).scale(165.664)}function Ci(he,Se){var qe=G(E*(4+E));return[2/qe*he*(1+G(1-4*Se*Se/(E*E))),4/qe*Se]}Ci.invert=function(he,Se){var qe=G(E*(4+E))/2;return[he*qe/(1+G(1-Se*Se*(4+E)/(4*E))),Se*qe/2]};function nn(){return t.geoProjection(Ci).scale(180.739)}function ii(he,Se){var qe=(2+T)*x(Se);Se/=2;for(var He=0,lt=1/0;He<10&&n(lt)>v;He++){var tt=o(Se);Se-=lt=(Se+x(Se)*(tt+2)-qe)/(2*tt*(1+tt))}return[2/G(E*(4+E))*he*(1+o(Se)),2*G(E/(4+E))*x(Se)]}ii.invert=function(he,Se){var qe=Se*G((4+E)/E)/2,He=F(qe),lt=o(He);return[he/(2/G(E*(4+E))*(1+lt)),F((He+qe*(lt+2))/(2+T))]};function wi(){return t.geoProjection(ii).scale(180.739)}function Gi(he,Se){return[he*(1+o(Se))/G(2+E),2*Se/G(2+E)]}Gi.invert=function(he,Se){var qe=G(2+E),He=Se*qe/2;return[qe*he/(1+o(He)),He]};function Bt(){return t.geoProjection(Gi).scale(173.044)}function yt(he,Se){for(var qe=(1+T)*x(Se),He=0,lt=1/0;He<10&&n(lt)>v;He++)Se-=lt=(Se+x(Se)-qe)/(1+o(Se));return qe=G(2+E),[he*(1+o(Se))/qe,2*Se/qe]}yt.invert=function(he,Se){var qe=1+T,He=G(qe/2);return[he*2*He/(1+o(Se*=He)),F((Se+x(Se))/qe)]};function Vt(){return t.geoProjection(yt).scale(173.044)}var Wt=3+2*C;function _r(he,Se){var qe=x(he/=2),He=o(he),lt=G(o(Se)),tt=o(Se/=2),pt=x(Se)/(tt+C*He*lt),Ht=G(2/(1+pt*pt)),nr=G((C*tt+(He+qe)*lt)/(C*tt+(He-qe)*lt));return[Wt*(Ht*(nr-1/nr)-2*l(nr)),Wt*(Ht*pt*(nr+1/nr)-2*i(pt))]}_r.invert=function(he,Se){if(!(tt=ke.invert(he/1.2,Se*1.065)))return null;var qe=tt[0],He=tt[1],lt=20,tt;he/=Wt,Se/=Wt;do{var pt=qe/2,Ht=He/2,nr=x(pt),fr=o(pt),Ar=x(Ht),Rr=o(Ht),ri=o(He),si=G(ri),Mi=Ar/(Rr+C*fr*si),hn=Mi*Mi,Zn=G(2/(1+hn)),Yn=C*Rr+(fr+nr)*si,Ua=C*Rr+(fr-nr)*si,Fo=Yn/Ua,vl=G(Fo),Us=vl-1/vl,ml=vl+1/vl,au=Zn*Us-2*l(vl)-he,Sl=Zn*Mi*ml-2*i(Mi)-Se,Yl=Ar&&_*si*nr*hn/Ar,ql=(C*fr*Rr+si)/(2*(Rr+C*fr*si)*(Rr+C*fr*si)*si),ou=-.5*Mi*Zn*Zn*Zn,Pu=ou*Yl,iu=ou*ql,tu=(tu=2*Rr+C*si*(fr-nr))*tu*vl,Wu=(C*fr*Rr*si+ri)/tu,Qu=-(C*nr*Ar)/(si*tu),Ju=Us*Pu-2*Wu/vl+Zn*(Wu+Wu/Fo),ju=Us*iu-2*Qu/vl+Zn*(Qu+Qu/Fo),Xu=Mi*ml*Pu-2*Yl/(1+hn)+Zn*ml*Yl+Zn*Mi*(Wu-Wu/Fo),lf=Mi*ml*iu-2*ql/(1+hn)+Zn*ml*ql+Zn*Mi*(Qu-Qu/Fo),xf=ju*Xu-lf*Ju;if(!xf)break;var ef=(Sl*ju-au*lf)/xf,tf=(au*Xu-Sl*Ju)/xf;qe-=ef,He=f(-T,c(T,He-tf))}while((n(ef)>v||n(tf)>v)&&--lt>0);return n(n(He)-T)He){var Rr=G(Ar),ri=a(fr,nr),si=qe*d(ri/qe),Mi=ri-si,hn=he*o(Mi),Zn=(he*x(Mi)-Mi*x(hn))/(T-hn),Yn=Bi(Mi,Zn),Ua=(E-he)/an(Yn,hn,E);nr=Rr;var Fo=50,vl;do nr-=vl=(he+an(Yn,hn,nr)*Ua-Rr)/(Yn(nr)*Ua);while(n(vl)>v&&--Fo>0);fr=Mi*x(nr),nrHe){var nr=G(Ht),fr=a(pt,tt),Ar=qe*d(fr/qe),Rr=fr-Ar;tt=nr*o(Rr),pt=nr*x(Rr);for(var ri=tt-T,si=x(tt),Mi=pt/si,hn=ttv||n(Mi)>v)&&--hn>0);return[Rr,ri]},nr}var Ri=Fi(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function xn(){return t.geoProjection(Ri).scale(149.995)}var xi=Fi(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Xr(){return t.geoProjection(xi).scale(153.93)}var ft=Fi(5/6*E,-.62636,-.0344,0,1.3493,-.05524,0,.045);function tr(){return t.geoProjection(ft).scale(130.945)}function pr(he,Se){var qe=he*he,He=Se*Se;return[he*(1-.162388*He)*(.87-952426e-9*qe*qe),Se*(1+He/12)]}pr.invert=function(he,Se){var qe=he,He=Se,lt=50,tt;do{var pt=He*He;He-=tt=(He*(1+pt/12)-Se)/(1+pt/4)}while(n(tt)>v&&--lt>0);lt=50,he/=1-.162388*pt;do{var Ht=(Ht=qe*qe)*Ht;qe-=tt=(qe*(.87-952426e-9*Ht)-he)/(.87-.00476213*Ht)}while(n(tt)>v&&--lt>0);return[qe,He]};function gr(){return t.geoProjection(pr).scale(131.747)}var Zr=Fi(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Ai(){return t.geoProjection(Zr).scale(131.087)}function Qi(he){var Se=he(T,0)[0]-he(-T,0)[0];function qe(He,lt){var tt=He>0?-.5:.5,pt=he(He+tt*E,lt);return pt[0]-=tt*Se,pt}return he.invert&&(qe.invert=function(He,lt){var tt=He>0?-.5:.5,pt=he.invert(He+tt*Se,lt),Ht=pt[0]-tt*E;return Ht<-E?Ht+=2*E:Ht>E&&(Ht-=2*E),pt[0]=Ht,pt}),qe}function ni(he,Se){var qe=p(he),He=p(Se),lt=o(Se),tt=o(he)*lt,pt=x(he)*lt,Ht=x(He*Se);he=n(a(pt,Ht)),Se=F(tt),n(he-T)>v&&(he%=T);var nr=Zi(he>E/4?T-he:he,Se);return he>E/4&&(Ht=nr[0],nr[0]=-nr[1],nr[1]=-Ht),nr[0]*=qe,nr[1]*=-He,nr}ni.invert=function(he,Se){n(he)>1&&(he=p(he)*2-he),n(Se)>1&&(Se=p(Se)*2-Se);var qe=p(he),He=p(Se),lt=-qe*he,tt=-He*Se,pt=tt/lt<1,Ht=aa(pt?tt:lt,pt?lt:tt),nr=Ht[0],fr=Ht[1],Ar=o(fr);return pt&&(nr=-T-nr),[qe*(a(x(nr)*Ar,-x(fr))+E),He*F(o(nr)*Ar)]};function Zi(he,Se){if(Se===T)return[0,0];var qe=x(Se),He=qe*qe,lt=He*He,tt=1+lt,pt=1+3*lt,Ht=1-lt,nr=F(1/G(tt)),fr=Ht+He*tt*nr,Ar=(1-qe)/fr,Rr=G(Ar),ri=Ar*tt,si=G(ri),Mi=Rr*Ht,hn,Zn;if(he===0)return[0,-(Mi+He*si)];var Yn=o(Se),Ua=1/Yn,Fo=2*qe*Yn,vl=(-3*He+nr*pt)*Fo,Us=(-fr*Yn-(1-qe)*vl)/(fr*fr),ml=.5*Us/Rr,au=Ht*ml-2*He*Rr*Fo,Sl=He*tt*Us+Ar*pt*Fo,Yl=-Ua*Fo,ql=-Ua*Sl,ou=-2*Ua*au,Pu=4*he/E,iu;if(he>.222*E||Se.175*E){if(hn=(Mi+He*G(ri*(1+lt)-Mi*Mi))/(1+lt),he>E/4)return[hn,hn];var tu=hn,Wu=.5*hn;hn=.5*(Wu+tu),Zn=50;do{var Qu=G(ri-hn*hn),Ju=hn*(ou+Yl*Qu)+ql*F(hn/si)-Pu;if(!Ju)break;Ju<0?Wu=hn:tu=hn,hn=.5*(Wu+tu)}while(n(tu-Wu)>v&&--Zn>0)}else{hn=v,Zn=25;do{var ju=hn*hn,Xu=G(ri-ju),lf=ou+Yl*Xu,xf=hn*lf+ql*F(hn/si)-Pu,ef=lf+(ql-Yl*ju)/Xu;hn-=iu=Xu?xf/ef:0}while(n(iu)>v&&--Zn>0)}return[hn,-Mi-He*G(ri-hn*hn)]}function aa(he,Se){for(var qe=0,He=1,lt=.5,tt=50;;){var pt=lt*lt,Ht=G(lt),nr=F(1/G(1+pt)),fr=1-pt+lt*(1+pt)*nr,Ar=(1-Ht)/fr,Rr=G(Ar),ri=Ar*(1+pt),si=Rr*(1-pt),Mi=ri-he*he,hn=G(Mi),Zn=Se+si+lt*hn;if(n(He-qe)0?qe=lt:He=lt,lt=.5*(qe+He)}if(!tt)return null;var Yn=F(Ht),Ua=o(Yn),Fo=1/Ua,vl=2*Ht*Ua,Us=(-3*lt+nr*(1+3*pt))*vl,ml=(-fr*Ua-(1-Ht)*Us)/(fr*fr),au=.5*ml/Rr,Sl=(1-pt)*au-2*lt*Rr*vl,Yl=-2*Fo*Sl,ql=-Fo*vl,ou=-Fo*(lt*(1+pt)*ml+Ar*(1+3*pt)*vl);return[E/4*(he*(Yl+ql*hn)+ou*F(he/G(ri))),Yn]}function Mn(){return t.geoProjection(Qi(ni)).scale(239.75)}function Un(he,Se,qe){var He,lt,tt;return he?(He=Ga(he,qe),Se?(lt=Ga(Se,1-qe),tt=lt[1]*lt[1]+qe*He[0]*He[0]*lt[0]*lt[0],[[He[0]*lt[2]/tt,He[1]*He[2]*lt[0]*lt[1]/tt],[He[1]*lt[1]/tt,-He[0]*He[2]*lt[0]*lt[2]/tt],[He[2]*lt[1]*lt[2]/tt,-qe*He[0]*He[1]*lt[0]/tt]]):[[He[0],0],[He[1],0],[He[2],0]]):(lt=Ga(Se,1-qe),[[0,lt[0]/lt[1]],[1/lt[1],0],[lt[2]/lt[1],0]])}function Ga(he,Se){var qe,He,lt,tt,pt;if(Se=1-v)return qe=(1-Se)/4,He=N(he),tt=j(he),lt=1/He,pt=He*H(he),[tt+qe*(pt-he)/(He*He),lt-qe*tt*lt*(pt-he),lt+qe*tt*lt*(pt+he),2*i(s(he))-T+qe*(pt-he)/He];var Ht=[1,0,0,0,0,0,0,0,0],nr=[G(Se),0,0,0,0,0,0,0,0],fr=0;for(He=G(1-Se),pt=1;n(nr[fr]/Ht[fr])>v&&fr<8;)qe=Ht[fr++],nr[fr]=(qe-He)/2,Ht[fr]=(qe+He)/2,He=G(qe*He),pt*=2;lt=pt*Ht[fr]*he;do tt=nr[fr]*x(He=lt)/Ht[fr],lt=(F(tt)+lt)/2;while(--fr);return[x(lt),tt=o(lt),tt/o(lt-He),lt]}function ma(he,Se,qe){var He=n(he),lt=n(Se),tt=H(lt);if(He){var pt=1/x(He),Ht=1/(b(He)*b(He)),nr=-(Ht+qe*(tt*tt*pt*pt)-1+qe),fr=(qe-1)*Ht,Ar=(-nr+G(nr*nr-4*fr))/2;return[oa(i(1/G(Ar)),qe)*p(he),oa(i(G((Ar/Ht-1)/qe)),1-qe)*p(Se)]}return[0,oa(i(tt),1-qe)*p(Se)]}function oa(he,Se){if(!Se)return he;if(Se===1)return l(b(he/2+L));for(var qe=1,He=G(1-Se),lt=G(Se),tt=0;n(lt)>v;tt++){if(he%E){var pt=i(He*b(he)/qe);pt<0&&(pt+=E),he+=pt+~~(he/E)*E}else he+=he;lt=(qe+He)/2,He=G(qe*He),lt=((qe=lt)-He)/2}return he/(h(2,tt)*qe)}function ka(he,Se){var qe=(C-1)/(C+1),He=G(1-qe*qe),lt=oa(T,He*He),tt=-1,pt=l(b(E/4+n(Se)/2)),Ht=s(tt*pt)/G(qe),nr=so(Ht*o(tt*he),Ht*x(tt*he)),fr=ma(nr[0],nr[1],He*He);return[-fr[1],(Se>=0?1:-1)*(.5*lt-fr[0])]}function so(he,Se){var qe=he*he,He=Se+1,lt=1-qe-Se*Se;return[.5*((he>=0?T:-T)-a(lt,2*he)),-.25*l(lt*lt+4*qe)+.5*l(He*He+qe)]}function Kr(he,Se){var qe=Se[0]*Se[0]+Se[1]*Se[1];return[(he[0]*Se[0]+he[1]*Se[1])/qe,(he[1]*Se[0]-he[0]*Se[1])/qe]}ka.invert=function(he,Se){var qe=(C-1)/(C+1),He=G(1-qe*qe),lt=oa(T,He*He),tt=-1,pt=Un(.5*lt-Se,-he,He*He),Ht=Kr(pt[0],pt[1]),nr=a(Ht[1],Ht[0])/tt;return[nr,2*i(s(.5/tt*l(qe*Ht[0]*Ht[0]+qe*Ht[1]*Ht[1])))-T]};function Ia(){return t.geoProjection(Qi(ka)).scale(151.496)}function Yo(he){var Se=x(he),qe=o(he),He=fa(he);He.invert=fa(-he);function lt(tt,pt){var Ht=He(tt,pt);tt=Ht[0],pt=Ht[1];var nr=x(pt),fr=o(pt),Ar=o(tt),Rr=U(Se*nr+qe*fr*Ar),ri=x(Rr),si=n(ri)>v?Rr/ri:1;return[si*qe*x(tt),(n(tt)>T?si:-si)*(Se*fr-qe*nr*Ar)]}return lt.invert=function(tt,pt){var Ht=G(tt*tt+pt*pt),nr=-x(Ht),fr=o(Ht),Ar=Ht*fr,Rr=-pt*nr,ri=Ht*Se,si=G(Ar*Ar+Rr*Rr-ri*ri),Mi=a(Ar*ri+Rr*si,Rr*ri-Ar*si),hn=(Ht>T?-1:1)*a(tt*nr,Ht*o(Mi)*fr+pt*x(Mi)*nr);return He.invert(hn,Mi)},lt}function fa(he){var Se=x(he),qe=o(he);return function(He,lt){var tt=o(lt),pt=o(He)*tt,Ht=x(He)*tt,nr=x(lt);return[a(Ht,pt*qe-nr*Se),F(nr*qe+pt*Se)]}}function kn(){var he=0,Se=t.geoProjectionMutator(Yo),qe=Se(he),He=qe.rotate,lt=qe.stream,tt=t.geoCircle();return qe.parallel=function(pt){if(!arguments.length)return he*P;var Ht=qe.rotate();return Se(he=pt*A).rotate(Ht)},qe.rotate=function(pt){return arguments.length?(He.call(qe,[pt[0],pt[1]-he*P]),tt.center([-pt[0],-pt[1]]),qe):(pt=He.call(qe),pt[1]+=he*P,pt)},qe.stream=function(pt){return pt=lt(pt),pt.sphere=function(){pt.polygonStart();var Ht=.01,nr=tt.radius(90-Ht)().coordinates[0],fr=nr.length-1,Ar=-1,Rr;for(pt.lineStart();++Ar=0;)pt.point((Rr=nr[Ar])[0],Rr[1]);pt.lineEnd(),pt.polygonEnd()},pt},qe.scale(79.4187).parallel(45).clipAngle(180-.001)}var Ta=3,ys=F(1-1/Ta)*P,uo=rr(0);function ls(he){var Se=ys*A,qe=ct(E,Se)[0]-ct(-E,Se)[0],He=uo(0,Se)[1],lt=ct(0,Se)[1],tt=S-lt,pt=m/he,Ht=4/m,nr=He+tt*tt*4/m;function fr(Ar,Rr){var ri,si=n(Rr);if(si>Se){var Mi=c(he-1,f(0,u((Ar+E)/pt)));Ar+=E*(he-1)/he-Mi*pt,ri=ct(Ar,si),ri[0]=ri[0]*m/qe-m*(he-1)/(2*he)+Mi*m/he,ri[1]=He+(ri[1]-lt)*4*tt/m,Rr<0&&(ri[1]=-ri[1])}else ri=uo(Ar,Rr);return ri[0]*=Ht,ri[1]/=nr,ri}return fr.invert=function(Ar,Rr){Ar/=Ht,Rr*=nr;var ri=n(Rr);if(ri>He){var si=c(he-1,f(0,u((Ar+E)/pt)));Ar=(Ar+E*(he-1)/he-si*pt)*qe/m;var Mi=ct.invert(Ar,.25*(ri-He)*m/tt+lt);return Mi[0]-=E*(he-1)/he-si*pt,Rr<0&&(Mi[1]=-Mi[1]),Mi}return uo.invert(Ar,Rr)},fr}function $a(he,Se){return[he,Se&1?90-v:ys]}function fo(he,Se){return[he,Se&1?-90+v:-ys]}function mn(he){return[he[0]*(1-v),he[1]]}function ra(he){var Se=[].concat(r.range(-180,180+he/2,he).map($a),r.range(180,-180-he/2,-he).map(fo));return{type:"Polygon",coordinates:[he===180?Se.map(mn):Se]}}function wa(){var he=4,Se=t.geoProjectionMutator(ls),qe=Se(he),He=qe.stream;return qe.lobes=function(lt){return arguments.length?Se(he=+lt):he},qe.stream=function(lt){var tt=qe.rotate(),pt=He(lt),Ht=(qe.rotate([0,0]),He(lt));return qe.rotate(tt),pt.sphere=function(){t.geoStream(ra(180/he),Ht)},pt},qe.scale(239.75)}function ws(he){var Se=1+he,qe=x(1/Se),He=F(qe),lt=2*G(E/(tt=E+4*He*Se)),tt,pt=.5*lt*(Se+G(he*(2+he))),Ht=he*he,nr=Se*Se;function fr(Ar,Rr){var ri=1-x(Rr),si,Mi;if(ri&&ri<2){var hn=T-Rr,Zn=25,Yn;do{var Ua=x(hn),Fo=o(hn),vl=He+a(Ua,Se-Fo),Us=1+nr-2*Se*Fo;hn-=Yn=(hn-Ht*He-Se*Ua+Us*vl-.5*ri*tt)/(2*Se*Ua*vl)}while(n(Yn)>k&&--Zn>0);si=lt*G(Us),Mi=Ar*vl/E}else si=lt*(he+ri),Mi=Ar*He/E;return[si*x(Mi),pt-si*o(Mi)]}return fr.invert=function(Ar,Rr){var ri=Ar*Ar+(Rr-=pt)*Rr,si=(1+nr-ri/(lt*lt))/(2*Se),Mi=U(si),hn=x(Mi),Zn=He+a(hn,Se-si);return[F(Ar/G(ri))*E/Zn,F(1-2*(Mi-Ht*He-Se*hn+(1+nr-2*Se*si)*Zn)/tt)]},fr}function Co(){var he=1,Se=t.geoProjectionMutator(ws),qe=Se(he);return qe.ratio=function(He){return arguments.length?Se(he=+He):he},qe.scale(167.774).center([0,18.67])}var Po=.7109889596207567,ji=.0528035274542;function gn(he,Se){return Se>-Po?(he=Dt(he,Se),he[1]+=ji,he):st(he,Se)}gn.invert=function(he,Se){return Se>-Po?Dt.invert(he,Se-ji):st.invert(he,Se)};function Ps(){return t.geoProjection(gn).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Ha(he,Se){return n(Se)>Po?(he=Dt(he,Se),he[1]-=Se>0?ji:-ji,he):st(he,Se)}Ha.invert=function(he,Se){return n(Se)>Po?Dt.invert(he,Se+(Se>0?ji:-ji)):st.invert(he,Se)};function Sn(){return t.geoProjection(Ha).scale(152.63)}function ao(he,Se,qe,He){var lt=G(4*E/(2*qe+(1+he-Se/2)*x(2*qe)+(he+Se)/2*x(4*qe)+Se/2*x(6*qe))),tt=G(He*x(qe)*G((1+he*o(2*qe)+Se*o(4*qe))/(1+he+Se))),pt=qe*nr(1);function Ht(Rr){return G(1+he*o(2*Rr)+Se*o(4*Rr))}function nr(Rr){var ri=Rr*qe;return(2*ri+(1+he-Se/2)*x(2*ri)+(he+Se)/2*x(4*ri)+Se/2*x(6*ri))/qe}function fr(Rr){return Ht(Rr)*x(Rr)}var Ar=function(Rr,ri){var si=qe*Nt(nr,pt*x(ri)/qe,ri/E);isNaN(si)&&(si=qe*p(ri));var Mi=lt*Ht(si);return[Mi*tt*Rr/E*o(si),Mi/tt*x(si)]};return Ar.invert=function(Rr,ri){var si=Nt(fr,ri*tt/lt);return[Rr*E/(o(si)*lt*tt*Ht(si)),F(qe*nr(si/qe)/pt)]},qe===0&&(lt=G(He/E),Ar=function(Rr,ri){return[Rr*lt,x(ri)/lt]},Ar.invert=function(Rr,ri){return[Rr/lt,F(ri*lt)]}),Ar}function Ba(){var he=1,Se=0,qe=45*A,He=2,lt=t.geoProjectionMutator(ao),tt=lt(he,Se,qe,He);return tt.a=function(pt){return arguments.length?lt(he=+pt,Se,qe,He):he},tt.b=function(pt){return arguments.length?lt(he,Se=+pt,qe,He):Se},tt.psiMax=function(pt){return arguments.length?lt(he,Se,qe=+pt*A,He):qe*P},tt.ratio=function(pt){return arguments.length?lt(he,Se,qe,He=+pt):He},tt.scale(180.739)}function Ko(he,Se,qe,He,lt,tt,pt,Ht,nr,fr,Ar){if(Ar.nanEncountered)return NaN;var Rr,ri,si,Mi,hn,Zn,Yn,Ua,Fo,vl;if(Rr=qe-Se,ri=he(Se+Rr*.25),si=he(qe-Rr*.25),isNaN(ri)){Ar.nanEncountered=!0;return}if(isNaN(si)){Ar.nanEncountered=!0;return}return Mi=Rr*(He+4*ri+lt)/12,hn=Rr*(lt+4*si+tt)/12,Zn=Mi+hn,vl=(Zn-pt)/15,fr>nr?(Ar.maxDepthCount++,Zn+vl):Math.abs(vl)>1;do nr[Zn]>si?hn=Zn:Mi=Zn,Zn=Mi+hn>>1;while(Zn>Mi);var Yn=nr[Zn+1]-nr[Zn];return Yn&&(Yn=(si-nr[Zn+1])/Yn),(Zn+1+Yn)/pt}var Rr=2*Ar(1)/E*tt/qe,ri=function(si,Mi){var hn=Ar(n(x(Mi))),Zn=He(hn)*si;return hn/=Rr,[Zn,Mi>=0?hn:-hn]};return ri.invert=function(si,Mi){var hn;return Mi*=Rr,n(Mi)<1&&(hn=p(Mi)*F(lt(n(Mi))*tt)),[si/He(n(Mi)),hn]},ri}function Sa(){var he=0,Se=2.5,qe=1.183136,He=t.geoProjectionMutator(Wi),lt=He(he,Se,qe);return lt.alpha=function(tt){return arguments.length?He(he=+tt,Se,qe):he},lt.k=function(tt){return arguments.length?He(he,Se=+tt,qe):Se},lt.gamma=function(tt){return arguments.length?He(he,Se,qe=+tt):qe},lt.scale(152.63)}function Qa(he,Se){return n(he[0]-Se[0])=0;--nr)qe=he[1][nr],He=qe[0][0],lt=qe[0][1],tt=qe[1][1],pt=qe[2][0],Ht=qe[2][1],Se.push(vn([[pt-v,Ht-v],[pt-v,tt+v],[He+v,tt+v],[He+v,lt-v]],30));return{type:"Polygon",coordinates:[r.merge(Se)]}}function la(he,Se,qe){var He,lt;function tt(nr,fr){for(var Ar=fr<0?-1:1,Rr=Se[+(fr<0)],ri=0,si=Rr.length-1;riRr[ri][2][0];++ri);var Mi=he(nr-Rr[ri][1][0],fr);return Mi[0]+=he(Rr[ri][1][0],Ar*fr>Ar*Rr[ri][0][1]?Rr[ri][0][1]:fr)[0],Mi}qe?tt.invert=qe(tt):he.invert&&(tt.invert=function(nr,fr){for(var Ar=lt[+(fr<0)],Rr=Se[+(fr<0)],ri=0,si=Ar.length;riMi&&(hn=si,si=Mi,Mi=hn),[[Rr,si],[ri,Mi]]})}),pt):Se.map(function(fr){return fr.map(function(Ar){return[[Ar[0][0]*P,Ar[0][1]*P],[Ar[1][0]*P,Ar[1][1]*P],[Ar[2][0]*P,Ar[2][1]*P]]})})},Se!=null&&pt.lobes(Se),pt}var vo=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function As(){return la(at,vo).scale(160.857)}var ps=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function co(){return la(Ha,ps).scale(152.63)}var mo=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function No(){return la(Dt,mo).scale(169.529)}var jn=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Go(){return la(Dt,jn).scale(169.529).rotate([20,0])}var Ys=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function qs(){return la(gn,Ys,it).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Ns=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function Oa(){return la(st,Ns).scale(152.63).rotate([-20,0])}function ha(he,Se){return[3/m*he*G(E*E/3-Se*Se),Se]}ha.invert=function(he,Se){return[m/3*he/G(E*E/3-Se*Se),Se]};function Vs(){return t.geoProjection(ha).scale(158.837)}function Ya(he){function Se(qe,He){if(n(n(He)-T)2)return null;qe/=2,He/=2;var tt=qe*qe,pt=He*He,Ht=2*He/(1+tt+pt);return Ht=h((1+Ht)/(1-Ht),1/he),[a(2*qe,1-tt-pt)/he,F((Ht-1)/(Ht+1))]},Se}function _n(){var he=.5,Se=t.geoProjectionMutator(Ya),qe=Se(he);return qe.spacing=function(He){return arguments.length?Se(he=+He):he},qe.scale(124.75)}var Vn=E/C;function wo(he,Se){return[he*(1+G(o(Se)))/2,Se/(o(Se/2)*o(he/6))]}wo.invert=function(he,Se){var qe=n(he),He=n(Se),lt=v,tt=T;Hev||n(Zn)>v)&&--lt>0);return lt&&[qe,He]};function un(){return t.geoProjection(Xn).scale(139.98)}function $n(he,Se){return[x(he)/o(Se),b(Se)*o(he)]}$n.invert=function(he,Se){var qe=he*he,He=Se*Se,lt=He+1,tt=qe+lt,pt=he?_*G((tt-G(tt*tt-4*qe))/qe):1/G(lt);return[F(he*pt),p(Se)*U(pt)]};function Ka(){return t.geoProjection($n).scale(144.049).clipAngle(90-.001)}function qn(he){var Se=o(he),qe=b(L+he/2);function He(lt,tt){var pt=tt-he,Ht=n(pt)=0;)Ar=he[fr],Rr=Ar[0]+Ht*(si=Rr)-nr*ri,ri=Ar[1]+Ht*ri+nr*si;return Rr=Ht*(si=Rr)-nr*ri,ri=Ht*ri+nr*si,[Rr,ri]}return qe.invert=function(He,lt){var tt=20,pt=He,Ht=lt;do{for(var nr=Se,fr=he[nr],Ar=fr[0],Rr=fr[1],ri=0,si=0,Mi;--nr>=0;)fr=he[nr],ri=Ar+pt*(Mi=ri)-Ht*si,si=Rr+pt*si+Ht*Mi,Ar=fr[0]+pt*(Mi=Ar)-Ht*Rr,Rr=fr[1]+pt*Rr+Ht*Mi;ri=Ar+pt*(Mi=ri)-Ht*si,si=Rr+pt*si+Ht*Mi,Ar=pt*(Mi=Ar)-Ht*Rr-He,Rr=pt*Rr+Ht*Mi-lt;var hn=ri*ri+si*si,Zn,Yn;pt-=Zn=(Ar*ri+Rr*si)/hn,Ht-=Yn=(Rr*ri-Ar*si)/hn}while(n(Zn)+n(Yn)>v*v&&--tt>0);if(tt){var Ua=G(pt*pt+Ht*Ht),Fo=2*i(Ua*.5),vl=x(Fo);return[a(pt*vl,Ua*o(Fo)),Ua?F(Ht*vl/Ua):0]}},qe}var sa=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],es=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Na=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],tn=[[.9245,0],[0,0],[.01943,0]],Pa=[[.721316,0],[0,0],[-.00881625,-.00617325]];function to(){return _a(sa,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function yo(){return _a(es,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Jo(){return _a(Na,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Ao(){return _a(tn,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Dn(){return _a(Pa,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function _a(he,Se){var qe=t.geoProjection(eo(he)).rotate(Se).clipAngle(90),He=t.geoRotation(Se),lt=qe.center;return delete qe.rotate,qe.center=function(tt){return arguments.length?lt(He(tt)):He.invert(lt())},qe}var Ws=G(6),Ca=G(7);function Es(he,Se){var qe=F(7*x(Se)/(3*Ws));return[Ws*he*(2*o(2*qe/3)-1)/Ca,9*x(qe/3)/Ca]}Es.invert=function(he,Se){var qe=3*F(Se*Ca/9);return[he*Ca/(Ws*(2*o(2*qe/3)-1)),F(x(qe)*3*Ws/7)]};function Ts(){return t.geoProjection(Es).scale(164.859)}function Ho(he,Se){for(var qe=(1+_)*x(Se),He=Se,lt=0,tt;lt<25&&(He-=tt=(x(He/2)+x(He)-qe)/(.5*o(He/2)+o(He)),!(n(tt)k&&--He>0);return tt=qe*qe,pt=tt*tt,Ht=tt*pt,[he/(.84719-.13063*tt+Ht*Ht*(-.04515+.05494*tt-.02326*pt+.00331*Ht)),qe]};function qa(){return t.geoProjection(Wo).scale(175.295)}function ln(he,Se){return[he*(1+o(Se))/2,2*(Se-b(Se/2))]}ln.invert=function(he,Se){for(var qe=Se/2,He=0,lt=1/0;He<10&&n(lt)>v;++He){var tt=o(Se/2);Se-=lt=(Se-b(Se/2)-qe)/(1-.5/(tt*tt))}return[2*he/(1+o(Se)),Se]};function Bo(){return t.geoProjection(ln).scale(152.63)}var ko=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function oo(){return la(Je(1/0),ko).rotate([20,0]).scale(152.63)}function za(he,Se){var qe=x(Se),He=o(Se),lt=p(he);if(he===0||n(Se)===T)return[0,Se];if(Se===0)return[he,0];if(n(he)===T)return[he*He,T*qe];var tt=E/(2*he)-2*he/E,pt=2*Se/E,Ht=(1-pt*pt)/(qe-pt),nr=tt*tt,fr=Ht*Ht,Ar=1+nr/fr,Rr=1+fr/nr,ri=(tt*qe/Ht-tt/2)/Ar,si=(fr*qe/nr+Ht/2)/Rr,Mi=ri*ri+He*He/Ar,hn=si*si-(fr*qe*qe/nr+Ht*qe-1)/Rr;return[T*(ri+G(Mi)*lt),T*(si+G(hn<0?0:hn)*p(-Se*tt)*lt)]}za.invert=function(he,Se){he/=T,Se/=T;var qe=he*he,He=Se*Se,lt=qe+He,tt=E*E;return[he?(lt-1+G((1-lt)*(1-lt)+4*qe))/(2*he)*T:0,Nt(function(pt){return lt*(E*x(pt)-2*pt)*E+4*pt*pt*(Se-x(pt))+2*E*pt-tt*Se},0)]};function ea(){return t.geoProjection(za).scale(127.267)}var rs=1.0148,$s=.23185,us=-.14499,Ds=.02406,fl=rs,as=5*$s,Ma=7*us,Qs=9*Ds,ho=1.790857183;function gs(he,Se){var qe=Se*Se;return[he,Se*(rs+qe*qe*($s+qe*(us+Ds*qe)))]}gs.invert=function(he,Se){Se>ho?Se=ho:Se<-ho&&(Se=-ho);var qe=Se,He;do{var lt=qe*qe;qe-=He=(qe*(rs+lt*lt*($s+lt*(us+Ds*lt)))-Se)/(fl+lt*lt*(as+lt*(Ma+Qs*lt)))}while(n(He)>v);return[he,qe]};function Vo(){return t.geoProjection(gs).scale(139.319)}function Do(he,Se){if(n(Se)v&&--lt>0);return pt=b(He),[(n(Se)=0;)if(He=Se[Ht],qe[0]===He[0]&&qe[1]===He[1]){if(tt)return[tt,qe];tt=qe}}}function Aa(he){for(var Se=he.length,qe=[],He=he[Se-1],lt=0;lt0?[-He[0],0]:[180-He[0],180])};var Se=Ss.map(function(qe){return{face:qe,project:he(qe)}});return[-1,0,0,1,0,1,4,5].forEach(function(qe,He){var lt=Se[qe];lt&&(lt.children||(lt.children=[])).push(Se[He])}),Gs(Se[0],function(qe,He){return Se[qe<-E/2?He<0?6:4:qe<0?He<0?2:0:qeHe^si>He&&qe<(ri-fr)*(He-Ar)/(si-Ar)+fr&&(lt=!lt)}return lt}function Hs(he,Se){var qe=Se.stream,He;if(!qe)throw new Error("invalid projection");switch(he&&he.type){case"Feature":He=tl;break;case"FeatureCollection":He=Ro;break;default:He=hl;break}return He(he,qe)}function Ro(he,Se){return{type:"FeatureCollection",features:he.features.map(function(qe){return tl(qe,Se)})}}function tl(he,Se){return{type:"Feature",id:he.id,properties:he.properties,geometry:hl(he.geometry,Se)}}function Fs(he,Se){return{type:"GeometryCollection",geometries:he.geometries.map(function(qe){return hl(qe,Se)})}}function hl(he,Se){if(!he)return null;if(he.type==="GeometryCollection")return Fs(he,Se);var qe;switch(he.type){case"Point":qe=jo;break;case"MultiPoint":qe=jo;break;case"LineString":qe=Rs;break;case"MultiLineString":qe=Rs;break;case"Polygon":qe=Is;break;case"MultiPolygon":qe=Is;break;case"Sphere":qe=Is;break;default:return null}return t.geoStream(he,Se(qe)),qe.result()}var Fa=[],Ms=[],jo={point:function(he,Se){Fa.push([he,Se])},result:function(){var he=Fa.length?Fa.length<2?{type:"Point",coordinates:Fa[0]}:{type:"MultiPoint",coordinates:Fa}:null;return Fa=[],he}},Rs={lineStart:fs,point:function(he,Se){Fa.push([he,Se])},lineEnd:function(){Fa.length&&(Ms.push(Fa),Fa=[])},result:function(){var he=Ms.length?Ms.length<2?{type:"LineString",coordinates:Ms[0]}:{type:"MultiLineString",coordinates:Ms}:null;return Ms=[],he}},Is={polygonStart:fs,lineStart:fs,point:function(he,Se){Fa.push([he,Se])},lineEnd:function(){var he=Fa.length;if(he){do Fa.push(Fa[0].slice());while(++he<4);Ms.push(Fa),Fa=[]}},polygonEnd:fs,result:function(){if(!Ms.length)return null;var he=[],Se=[];return Ms.forEach(function(qe){cl(qe)?he.push([qe]):Se.push(qe)}),Se.forEach(function(qe){var He=qe[0];he.some(function(lt){if(el(lt[0],He))return lt.push(qe),!0})||he.push([qe])}),Ms=[],he.length?he.length>1?{type:"MultiPolygon",coordinates:he}:{type:"Polygon",coordinates:he[0]}:null}};function Bs(he){var Se=he(T,0)[0]-he(-T,0)[0];function qe(He,lt){var tt=n(He)0?He-E:He+E,lt),Ht=(pt[0]-pt[1])*_,nr=(pt[0]+pt[1])*_;if(tt)return[Ht,nr];var fr=Se*_,Ar=Ht>0^nr>0?-1:1;return[Ar*Ht-p(nr)*fr,Ar*nr-p(Ht)*fr]}return he.invert&&(qe.invert=function(He,lt){var tt=(He+lt)*_,pt=(lt-He)*_,Ht=n(tt)<.5*Se&&n(pt)<.5*Se;if(!Ht){var nr=Se*_,fr=tt>0^pt>0?-1:1,Ar=-fr*He+(pt>0?1:-1)*nr,Rr=-fr*lt+(tt>0?1:-1)*nr;tt=(-Ar-Rr)*_,pt=(Ar-Rr)*_}var ri=he.invert(tt,pt);return Ht||(ri[0]+=tt>0?E:-E),ri}),t.geoProjection(qe).rotate([-90,-90,45]).clipAngle(180-.001)}function At(){return Bs(ni).scale(176.423)}function Gt(){return Bs(ka).scale(111.48)}function wr(he,Se){if(!(0<=(Se=+Se)&&Se<=20))throw new Error("invalid digits");function qe(fr){var Ar=fr.length,Rr=2,ri=new Array(Ar);for(ri[0]=+fr[0].toFixed(Se),ri[1]=+fr[1].toFixed(Se);Rr2||si[0]!=Ar[0]||si[1]!=Ar[1])&&(Rr.push(si),Ar=si)}return Rr.length===1&&fr.length>1&&Rr.push(qe(fr[fr.length-1])),Rr}function tt(fr){return fr.map(lt)}function pt(fr){if(fr==null)return fr;var Ar;switch(fr.type){case"GeometryCollection":Ar={type:"GeometryCollection",geometries:fr.geometries.map(pt)};break;case"Point":Ar={type:"Point",coordinates:qe(fr.coordinates)};break;case"MultiPoint":Ar={type:fr.type,coordinates:He(fr.coordinates)};break;case"LineString":Ar={type:fr.type,coordinates:lt(fr.coordinates)};break;case"MultiLineString":case"Polygon":Ar={type:fr.type,coordinates:tt(fr.coordinates)};break;case"MultiPolygon":Ar={type:"MultiPolygon",coordinates:fr.coordinates.map(tt)};break;default:return fr}return fr.bbox!=null&&(Ar.bbox=fr.bbox),Ar}function Ht(fr){var Ar={type:"Feature",properties:fr.properties,geometry:pt(fr.geometry)};return fr.id!=null&&(Ar.id=fr.id),fr.bbox!=null&&(Ar.bbox=fr.bbox),Ar}if(he!=null)switch(he.type){case"Feature":return Ht(he);case"FeatureCollection":{var nr={type:"FeatureCollection",features:he.features.map(Ht)};return he.bbox!=null&&(nr.bbox=he.bbox),nr}default:return pt(he)}return he}function mr(he){var Se=x(he);function qe(He,lt){var tt=Se?b(He*Se/2)/Se:He/2;if(!lt)return[2*tt,-he];var pt=2*i(tt*x(lt)),Ht=1/b(lt);return[x(pt)*Ht,lt+(1-o(pt))*Ht-he]}return qe.invert=function(He,lt){if(n(lt+=he)v&&--Ht>0);var ri=He*(fr=b(pt)),si=b(n(lt)0?T:-T)*(nr+lt*(Ar-pt)/2+lt*lt*(Ar-2*nr+pt)/2)]}Ti.invert=function(he,Se){var qe=Se/T,He=qe*90,lt=c(18,n(He/5)),tt=f(0,u(lt));do{var pt=gi[tt][1],Ht=gi[tt+1][1],nr=gi[c(19,tt+2)][1],fr=nr-pt,Ar=nr-2*Ht+pt,Rr=2*(n(qe)-Ht)/fr,ri=Ar/fr,si=Rr*(1-ri*Rr*(1-2*ri*Rr));if(si>=0||tt===1){He=(Se>=0?5:-5)*(si+lt);var Mi=50,hn;do lt=c(18,n(He)/5),tt=u(lt),si=lt-tt,pt=gi[tt][1],Ht=gi[tt+1][1],nr=gi[c(19,tt+2)][1],He-=(hn=(Se>=0?T:-T)*(Ht+si*(nr-pt)/2+si*si*(nr-2*Ht+pt)/2)-Se)*P;while(n(hn)>k&&--Mi>0);break}}while(--tt>=0);var Zn=gi[tt][0],Yn=gi[tt+1][0],Ua=gi[c(19,tt+2)][0];return[he/(Yn+si*(Ua-Zn)/2+si*si*(Ua-2*Yn+Zn)/2),He*A]};function ki(){return t.geoProjection(Ti).scale(152.63)}function Ji(he){function Se(qe,He){var lt=o(He),tt=(he-1)/(he-lt*o(qe));return[tt*lt*x(qe),tt*x(He)]}return Se.invert=function(qe,He){var lt=qe*qe+He*He,tt=G(lt),pt=(he-G(1-lt*(he+1)/(he-1)))/((he-1)/tt+tt/(he-1));return[a(qe*pt,tt*G(1-pt*pt)),tt?F(He*pt/tt):0]},Se}function Fn(he,Se){var qe=Ji(he);if(!Se)return qe;var He=o(Se),lt=x(Se);function tt(pt,Ht){var nr=qe(pt,Ht),fr=nr[1],Ar=fr*lt/(he-1)+He;return[nr[0]*He/Ar,fr/Ar]}return tt.invert=function(pt,Ht){var nr=(he-1)/(he-1-Ht*lt);return qe.invert(nr*pt,nr*Ht*He)},tt}function Pi(){var he=2,Se=0,qe=t.geoProjectionMutator(Fn),He=qe(he,Se);return He.distance=function(lt){return arguments.length?qe(he=+lt,Se):he},He.tilt=function(lt){return arguments.length?qe(he,Se=lt*A):Se*P},He.scale(432.147).clipAngle(U(1/he)*P-1e-6)}var hi=1e-4,Li=1e4,Si=-180,Gn=Si+hi,ta=180,ya=ta-hi,ia=-90,pa=ia+hi,va=90,zn=va-hi;function is(he){return he.length>0}function Cs(he){return Math.floor(he*Li)/Li}function Ks(he){return he===ia||he===va?[0,he]:[Si,Cs(he)]}function dl(he){var Se=he[0],qe=he[1],He=!1;return Se<=Gn?(Se=Si,He=!0):Se>=ya&&(Se=ta,He=!0),qe<=pa?(qe=ia,He=!0):qe>=zn&&(qe=va,He=!0),He?[Se,qe]:he}function xl(he){return he.map(dl)}function Ol(he,Se,qe){for(var He=0,lt=he.length;He=ya||Ar<=pa||Ar>=zn){tt[pt]=dl(nr);for(var Rr=pt+1;RrGn&&sipa&&Mi=Ht)break;qe.push({index:-1,polygon:Se,ring:tt=tt.slice(Rr-1)}),tt[0]=Ks(tt[0][1]),pt=-1,Ht=tt.length}}}}function bl(he){var Se,qe=he.length,He={},lt={},tt,pt,Ht,nr,fr;for(Se=0;Se0?E-Ht:Ht)*P],fr=t.geoProjection(he(pt)).rotate(nr),Ar=t.geoRotation(nr),Rr=fr.center;return delete fr.rotate,fr.center=function(ri){return arguments.length?Rr(Ar(ri)):Ar.invert(Rr())},fr.clipAngle(90)}function cs(he){var Se=o(he);function qe(He,lt){var tt=t.geoGnomonicRaw(He,lt);return tt[0]*=Se,tt}return qe.invert=function(He,lt){return t.geoGnomonicRaw.invert(He/Se,lt)},qe}function sl(){return ll([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function ll(he,Se){return Js(cs,he,Se)}function il(he){if(!(he*=2))return t.geoAzimuthalEquidistantRaw;var Se=-he/2,qe=-Se,He=he*he,lt=b(qe),tt=.5/x(qe);function pt(Ht,nr){var fr=U(o(nr)*o(Ht-Se)),Ar=U(o(nr)*o(Ht-qe)),Rr=nr<0?-1:1;return fr*=fr,Ar*=Ar,[(fr-Ar)/(2*he),Rr*G(4*He*Ar-(He-fr+Ar)*(He-fr+Ar))/(2*he)]}return pt.invert=function(Ht,nr){var fr=nr*nr,Ar=o(G(fr+(ri=Ht+Se)*ri)),Rr=o(G(fr+(ri=Ht+qe)*ri)),ri,si;return[a(si=Ar-Rr,ri=(Ar+Rr)*lt),(nr<0?-1:1)*U(G(ri*ri+si*si)*tt)]},pt}function zl(){return Ml([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Ml(he,Se){return Js(il,he,Se)}function Rl(he,Se){if(n(Se)v&&--Ht>0);return[p(he)*(G(lt*lt+4)+lt)*E/4,T*pt]};function Ul(){return t.geoProjection(Gl).scale(127.16)}function le(he,Se,qe,He,lt){function tt(pt,Ht){var nr=qe*x(He*Ht),fr=G(1-nr*nr),Ar=G(2/(1+fr*o(pt*=lt)));return[he*fr*Ar*x(pt),Se*nr*Ar]}return tt.invert=function(pt,Ht){var nr=pt/he,fr=Ht/Se,Ar=G(nr*nr+fr*fr),Rr=2*F(Ar/2);return[a(pt*b(Rr),he*Ar)/lt,Ar&&F(Ht*x(Rr)/(Se*qe*Ar))/He]},tt}function w(he,Se,qe,He){var lt=E/3;he=f(he,v),Se=f(Se,v),he=c(he,T),Se=c(Se,E-v),qe=f(qe,0),qe=c(qe,100-v),He=f(He,v);var tt=qe/100+1,pt=He/100,Ht=U(tt*o(lt))/lt,nr=x(he)/x(Ht*T),fr=Se/E,Ar=G(pt*x(he/2)/x(Se/2)),Rr=Ar/G(fr*nr*Ht),ri=1/(Ar*G(fr*nr*Ht));return le(Rr,ri,nr,Ht,fr)}function q(){var he=65*A,Se=60*A,qe=20,He=200,lt=t.geoProjectionMutator(w),tt=lt(he,Se,qe,He);return tt.poleline=function(pt){return arguments.length?lt(he=+pt*A,Se,qe,He):he*P},tt.parallels=function(pt){return arguments.length?lt(he,Se=+pt*A,qe,He):Se*P},tt.inflation=function(pt){return arguments.length?lt(he,Se,qe=+pt,He):qe},tt.ratio=function(pt){return arguments.length?lt(he,Se,qe,He=+pt):He},tt.scale(163.775)}function Q(){return q().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var ee=4*E+3*G(3),ue=2*G(2*E*G(3)/ee),Ge=St(ue*G(3)/E,ue,ee/6);function et(){return t.geoProjection(Ge).scale(176.84)}function mt(he,Se){return[he*G(1-3*Se*Se/(E*E)),Se]}mt.invert=function(he,Se){return[he/G(1-3*Se*Se/(E*E)),Se]};function Ft(){return t.geoProjection(mt).scale(152.63)}function ir(he,Se){var qe=o(Se),He=o(he)*qe,lt=1-He,tt=o(he=a(x(he)*qe,-x(Se))),pt=x(he);return qe=G(1-He*He),[pt*qe-tt*lt,-tt*qe-pt*lt]}ir.invert=function(he,Se){var qe=(he*he+Se*Se)/-2,He=G(-qe*(2+qe)),lt=Se*qe+he*He,tt=he*qe-Se*He,pt=G(tt*tt+lt*lt);return[a(He*lt,pt*(1+qe)),pt?-F(He*tt/pt):0]};function or(){return t.geoProjection(ir).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function kr(he,Se){var qe=Ce(he,Se);return[(qe[0]+he/T)/2,(qe[1]+Se)/2]}kr.invert=function(he,Se){var qe=he,He=Se,lt=25;do{var tt=o(He),pt=x(He),Ht=x(2*He),nr=pt*pt,fr=tt*tt,Ar=x(qe),Rr=o(qe/2),ri=x(qe/2),si=ri*ri,Mi=1-fr*Rr*Rr,hn=Mi?U(tt*Rr)*G(Zn=1/Mi):Zn=0,Zn,Yn=.5*(2*hn*tt*ri+qe/T)-he,Ua=.5*(hn*pt+He)-Se,Fo=.5*Zn*(fr*si+hn*tt*Rr*nr)+.5/T,vl=Zn*(Ar*Ht/4-hn*pt*ri),Us=.125*Zn*(Ht*ri-hn*pt*fr*Ar),ml=.5*Zn*(nr*Rr+hn*si*tt)+.5,au=vl*Us-ml*Fo,Sl=(Ua*vl-Yn*ml)/au,Yl=(Yn*Us-Ua*Fo)/au;qe-=Sl,He-=Yl}while((n(Sl)>v||n(Yl)>v)&&--lt>0);return[qe,He]};function Vr(){return t.geoProjection(kr).scale(158.837)}e.geoNaturalEarth=t.geoNaturalEarth1,e.geoNaturalEarthRaw=t.geoNaturalEarth1Raw,e.geoAiry=be,e.geoAiryRaw=ae,e.geoAitoff=Le,e.geoAitoffRaw=Ce,e.geoArmadillo=te,e.geoArmadilloRaw=pe,e.geoAugust=Ee,e.geoAugustRaw=ke,e.geoBaker=ye,e.geoBakerRaw=Fe,e.geoBerghaus=ce,e.geoBerghausRaw=Ve,e.geoBertin1953=kt,e.geoBertin1953Raw=Ye,e.geoBoggs=wt,e.geoBoggsRaw=at,e.geoBonne=$e,e.geoBonneRaw=rt,e.geoBottomley=Yt,e.geoBottomleyRaw=zt,e.geoBromley=yr,e.geoBromleyRaw=hr,e.geoChamberlin=De,e.geoChamberlinRaw=xe,e.geoChamberlinAfrica=Re,e.geoCollignon=ge,e.geoCollignonRaw=ct,e.geoCraig=de,e.geoCraigRaw=fe,e.geoCraster=Pt,e.geoCrasterRaw=It,e.geoCylindricalEqualArea=Hr,e.geoCylindricalEqualAreaRaw=rr,e.geoCylindricalStereographic=Mr,e.geoCylindricalStereographicRaw=Dr,e.geoEckert1=di,e.geoEckert1Raw=Fr,e.geoEckert2=Ii,e.geoEckert2Raw=Di,e.geoEckert3=nn,e.geoEckert3Raw=Ci,e.geoEckert4=wi,e.geoEckert4Raw=ii,e.geoEckert5=Bt,e.geoEckert5Raw=Gi,e.geoEckert6=Vt,e.geoEckert6Raw=yt,e.geoEisenlohr=Lr,e.geoEisenlohrRaw=_r,e.geoFahey=Gr,e.geoFaheyRaw=Ir,e.geoFoucaut=yi,e.geoFoucautRaw=jr,e.geoFoucautSinusoidal=Vi,e.geoFoucautSinusoidalRaw=Ei,e.geoGilbert=Yr,e.geoGingery=rn,e.geoGingeryRaw=oi,e.geoGinzburg4=xn,e.geoGinzburg4Raw=Ri,e.geoGinzburg5=Xr,e.geoGinzburg5Raw=xi,e.geoGinzburg6=tr,e.geoGinzburg6Raw=ft,e.geoGinzburg8=gr,e.geoGinzburg8Raw=pr,e.geoGinzburg9=Ai,e.geoGinzburg9Raw=Zr,e.geoGringorten=Mn,e.geoGringortenRaw=ni,e.geoGuyou=Ia,e.geoGuyouRaw=ka,e.geoHammer=gt,e.geoHammerRaw=Je,e.geoHammerRetroazimuthal=kn,e.geoHammerRetroazimuthalRaw=Yo,e.geoHealpix=wa,e.geoHealpixRaw=ls,e.geoHill=Co,e.geoHillRaw=ws,e.geoHomolosine=Sn,e.geoHomolosineRaw=Ha,e.geoHufnagel=Ba,e.geoHufnagelRaw=ao,e.geoHyperelliptical=Sa,e.geoHyperellipticalRaw=Wi,e.geoInterrupt=la,e.geoInterruptedBoggs=As,e.geoInterruptedHomolosine=co,e.geoInterruptedMollweide=No,e.geoInterruptedMollweideHemispheres=Go,e.geoInterruptedSinuMollweide=qs,e.geoInterruptedSinusoidal=Oa,e.geoKavrayskiy7=Vs,e.geoKavrayskiy7Raw=ha,e.geoLagrange=_n,e.geoLagrangeRaw=Ya,e.geoLarrivee=Ra,e.geoLarriveeRaw=wo,e.geoLaskowski=un,e.geoLaskowskiRaw=Xn,e.geoLittrow=Ka,e.geoLittrowRaw=$n,e.geoLoximuthal=Eo,e.geoLoximuthalRaw=qn,e.geoMiller=lo,e.geoMillerRaw=Ja,e.geoModifiedStereographic=_a,e.geoModifiedStereographicRaw=eo,e.geoModifiedStereographicAlaska=to,e.geoModifiedStereographicGs48=yo,e.geoModifiedStereographicGs50=Jo,e.geoModifiedStereographicMiller=Ao,e.geoModifiedStereographicLee=Dn,e.geoMollweide=Zt,e.geoMollweideRaw=Dt,e.geoMtFlatPolarParabolic=Ts,e.geoMtFlatPolarParabolicRaw=Es,e.geoMtFlatPolarQuartic=Wa,e.geoMtFlatPolarQuarticRaw=Ho,e.geoMtFlatPolarSinusoidal=ts,e.geoMtFlatPolarSinusoidalRaw=To,e.geoNaturalEarth2=qa,e.geoNaturalEarth2Raw=Wo,e.geoNellHammer=Bo,e.geoNellHammerRaw=ln,e.geoInterruptedQuarticAuthalic=oo,e.geoNicolosi=ea,e.geoNicolosiRaw=za,e.geoPatterson=Vo,e.geoPattersonRaw=gs,e.geoPolyconic=Lo,e.geoPolyconicRaw=Do,e.geoPolyhedral=Gs,e.geoPolyhedralButterfly=po,e.geoPolyhedralCollignon=qo,e.geoPolyhedralWaterman=zo,e.geoProject=Hs,e.geoGringortenQuincuncial=At,e.geoPeirceQuincuncial=Gt,e.geoPierceQuincuncial=Gt,e.geoQuantize=wr,e.geoQuincuncial=Bs,e.geoRectangularPolyconic=Or,e.geoRectangularPolyconicRaw=mr,e.geoRobinson=ki,e.geoRobinsonRaw=Ti,e.geoSatellite=Pi,e.geoSatelliteRaw=Fn,e.geoSinuMollweide=Ps,e.geoSinuMollweideRaw=gn,e.geoSinusoidal=Ue,e.geoSinusoidalRaw=st,e.geoStitch=Vl,e.geoTimes=ns,e.geoTimesRaw=ja,e.geoTwoPointAzimuthal=ll,e.geoTwoPointAzimuthalRaw=cs,e.geoTwoPointAzimuthalUsa=sl,e.geoTwoPointEquidistant=Ml,e.geoTwoPointEquidistantRaw=il,e.geoTwoPointEquidistantUsa=zl,e.geoVanDerGrinten=Al,e.geoVanDerGrintenRaw=Rl,e.geoVanDerGrinten2=ms,e.geoVanDerGrinten2Raw=Ll,e.geoVanDerGrinten3=Xl,e.geoVanDerGrinten3Raw=Os,e.geoVanDerGrinten4=Ul,e.geoVanDerGrinten4Raw=Gl,e.geoWagner=q,e.geoWagner7=Q,e.geoWagnerRaw=w,e.geoWagner4=et,e.geoWagner4Raw=Ge,e.geoWagner6=Ft,e.geoWagner6Raw=mt,e.geoWiechel=or,e.geoWiechelRaw=ir,e.geoWinkel3=Vr,e.geoWinkel3Raw=kr,Object.defineProperty(e,"__esModule",{value:!0})})});var P6e=Te((qyr,L6e)=>{"use strict";var od=Jl(),UZ=ei(),z8t=$l(),ZT=Math.PI/180,H2=180/Math.PI,GZ={cursor:"pointer"},HZ={cursor:"auto"};function I8t(e,t){var r=e.projection,n;return t._isScoped?n=R8t:t._isClipped?n=F8t:n=D8t,n(e,r)}L6e.exports=I8t;function WZ(e,t){return od.behavior.zoom().translate(t.translate()).scale(t.scale())}function jZ(e,t,r){var n=e.id,i=e.graphDiv,a=i.layout,o=a[n],s=i._fullLayout,u=s[n],l={},f={};function c(h,d){l[n+"."+h]=UZ.nestedProperty(o,h).get(),z8t.call("_storeDirectGUIEdit",a,s._preGUI,l);var p=UZ.nestedProperty(u,h);p.get()!==d&&(p.set(d),UZ.nestedProperty(o,h).set(d),f[n+"."+h]=d)}r(c),c("projection.scale",t.scale()/e.fitScale),c("fitbounds",!1),i.emit("plotly_relayout",f)}function R8t(e,t){var r=WZ(e,t);function n(){od.select(this).style(GZ)}function i(){t.scale(od.event.scale).translate(od.event.translate),e.render(!0);var s=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":s[0],"geo.center.lat":s[1]})}function a(s){var u=t.invert(e.midPt);s("center.lon",u[0]),s("center.lat",u[1])}function o(){od.select(this).style(HZ),jZ(e,t,a)}return r.on("zoomstart",n).on("zoom",i).on("zoomend",o),r}function D8t(e,t){var r=WZ(e,t),n=2,i,a,o,s,u,l,f,c,h;function d(E){return t.invert(E)}function p(E){var T=d(E);if(!T)return!0;var L=t(T);return Math.abs(L[0]-E[0])>n||Math.abs(L[1]-E[1])>n}function x(){od.select(this).style(GZ),i=od.mouse(this),a=t.rotate(),o=t.translate(),s=a,u=d(i)}function b(){if(l=od.mouse(this),p(i)){r.scale(t.scale()),r.translate(t.translate());return}t.scale(od.event.scale),t.translate([o[0],od.event.translate[1]]),u?d(l)&&(c=d(l),f=[s[0]+(c[0]-u[0]),a[1],a[2]],t.rotate(f),s=f):(i=l,u=d(i)),h=!0,e.render(!0);var E=t.rotate(),T=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":T[0],"geo.center.lat":T[1],"geo.projection.rotation.lon":-E[0]})}function v(){od.select(this).style(HZ),h&&jZ(e,t,k)}function k(E){var T=t.rotate(),L=t.invert(e.midPt);E("projection.rotation.lon",-T[0]),E("center.lon",L[0]),E("center.lat",L[1])}return r.on("zoomstart",x).on("zoom",b).on("zoomend",v),r}function F8t(e,t){var r={r:t.rotate(),k:t.scale()},n=WZ(e,t),i=H8t(n,"zoomstart","zoom","zoomend"),a=0,o=n.on,s;n.on("zoomstart",function(){od.select(this).style(GZ);var h=od.mouse(this),d=t.rotate(),p=d,x=t.translate(),b=B8t(d);s=EF(t,h),o.call(n,"zoom",function(){var v=od.mouse(this);if(t.scale(r.k=od.event.scale),!s)h=v,s=EF(t,h);else if(EF(t,v)){t.rotate(d).translate(x);var k=EF(t,v),E=q8t(s,k),T=U8t(O8t(b,E)),L=r.r=N8t(T,s,p);(!isFinite(L[0])||!isFinite(L[1])||!isFinite(L[2]))&&(L=p),t.rotate(L),p=L}l(i.of(this,arguments))}),u(i.of(this,arguments))}).on("zoomend",function(){od.select(this).style(HZ),o.call(n,"zoom",null),f(i.of(this,arguments)),jZ(e,t,c)}).on("zoom.redraw",function(){e.render(!0);var h=t.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function u(h){a++||h({type:"zoomstart"})}function l(h){h({type:"zoom"})}function f(h){--a||h({type:"zoomend"})}function c(h){var d=t.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return od.rebind(n,i,"on")}function EF(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&V8t(r)}function B8t(e){var t=.5*e[0]*ZT,r=.5*e[1]*ZT,n=.5*e[2]*ZT,i=Math.sin(t),a=Math.cos(t),o=Math.sin(r),s=Math.cos(r),u=Math.sin(n),l=Math.cos(n);return[a*s*l+i*o*u,i*s*l-a*o*u,a*o*l+i*s*u,a*s*u-i*o*l]}function O8t(e,t){var r=e[0],n=e[1],i=e[2],a=e[3],o=t[0],s=t[1],u=t[2],l=t[3];return[r*o-n*s-i*u-a*l,r*s+n*o+i*l-a*u,r*u-n*l+i*o+a*s,r*l+n*u-i*s+a*o]}function q8t(e,t){if(!(!e||!t)){var r=G8t(e,t),n=Math.sqrt(C6e(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,C6e(e,t)))),a=Math.sin(i)/n;return n&&[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function N8t(e,t,r){var n=VZ(t,2,e[0]);n=VZ(n,1,e[1]),n=VZ(n,0,e[2]-r[2]);var i=t[0],a=t[1],o=t[2],s=n[0],u=n[1],l=n[2],f=Math.atan2(a,i)*H2,c=Math.sqrt(i*i+a*a),h,d;Math.abs(u)>c?(d=(u>0?90:-90)-f,h=0):(d=Math.asin(u/c)*H2-f,h=Math.sqrt(c*c-u*u));var p=180-d-2*f,x=(Math.atan2(l,s)-Math.atan2(o,h))*H2,b=(Math.atan2(l,s)-Math.atan2(o,-h))*H2,v=E6e(r[0],r[1],d,x),k=E6e(r[0],r[1],p,b);return v<=k?[d,x,r[2]]:[p,b,r[2]]}function E6e(e,t,r,n){var i=k6e(r-e),a=k6e(n-t);return Math.sqrt(i*i+a*a)}function k6e(e){return(e%360+540)%360-180}function VZ(e,t,r){var n=r*ZT,i=e.slice(),a=t===0?1:0,o=t===2?1:2,s=Math.cos(n),u=Math.sin(n);return i[a]=e[a]*s-e[o]*u,i[o]=e[o]*s+e[a]*u,i}function U8t(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*H2,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*H2,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*H2]}function V8t(e){var t=e[0]*ZT,r=e[1]*ZT,n=Math.cos(r);return[n*Math.cos(t),n*Math.sin(t),Math.sin(r)]}function C6e(e,t){for(var r=0,n=0,i=e.length;n{"use strict";var t1=Jl(),YZ=NZ(),W8t=YZ.geoPath,j8t=YZ.geoDistance,X8t=M6e(),Z8t=$l(),ak=ei(),Y8t=ak.strTranslate,kF=jl(),nk=Mu(),z6e=Xc(),K8t=Cc(),ZZ=wu(),I6e=wm().getAutoRange,XZ=gp(),J8t=ah().prepSelect,$8t=ah().clearOutline,Q8t=ah().selectOnClick,eBt=P6e(),fv=ek(),tBt=nx(),D6e=hF(),rBt=SZ().feature;function F6e(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var $m=F6e.prototype;B6e.exports=function(t){return new F6e(t)};$m.plot=function(e,t,r,n){var i=this;if(n)return i.update(e,t,!0);i._geoCalcData=e,i._fullLayout=t;var a=t[this.id],o=[],s=!1;for(var u in fv.layerNameToAdjective)if(u!=="frame"&&a["show"+u]){s=!0;break}for(var l=!1,f=0;f0&&o._module.calcGeoJSON(a,t)}if(!r){var s=this.updateProjection(e,t);if(s)return;(!this.viewInitial||this.scope!==n.scope)&&this.saveViewInitial(n)}this.scope=n.scope,this.updateBaseLayers(t,n),this.updateDims(t,n),this.updateFx(t,n),K8t.generalUpdatePerTraceModule(this.graphDiv,this,e,n);var u=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=u.selectAll(".point"),this.dataPoints.text=u.selectAll("text"),this.dataPaths.line=u.selectAll(".js-line");var l=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=l.selectAll("path"),this._render()};$m.updateProjection=function(e,t){var r=this.graphDiv,n=t[this.id],i=t._size,a=n.domain,o=n.projection,s=n.lonaxis,u=n.lataxis,l=s._ax,f=u._ax,c=this.projection=iBt(n),h=[[i.l+i.w*a.x[0],i.t+i.h*(1-a.y[1])],[i.l+i.w*a.x[1],i.t+i.h*(1-a.y[0])]],d=n.center||{},p=o.rotation||{},x=s.range||[],b=u.range||[];if(n.fitbounds){l._length=h[1][0]-h[0][0],f._length=h[1][1]-h[0][1],l.range=I6e(r,l),f.range=I6e(r,f);var v=(l.range[0]+l.range[1])/2,k=(f.range[0]+f.range[1])/2;if(n._isScoped)d={lon:v,lat:k};else if(n._isClipped){d={lon:v,lat:k},p={lon:v,lat:k,roll:p.roll};var E=o.type,T=fv.lonaxisSpan[E]/2||180,L=fv.lataxisSpan[E]/2||90;x=[v-T,v+T],b=[k-L,k+L]}else d={lon:v,lat:k},p={lon:v,lat:p.lat,roll:p.roll}}c.center([d.lon-p.lon,d.lat-p.lat]).rotate([-p.lon,-p.lat,p.roll]).parallels(o.parallels);var _=R6e(x,b);c.fitExtent(h,_);var C=this.bounds=c.getBounds(_),S=this.fitScale=c.scale(),m=c.translate();if(n.fitbounds){var P=c.getBounds(R6e(l.range,f.range)),A=Math.min((C[1][0]-C[0][0])/(P[1][0]-P[0][0]),(C[1][1]-C[0][1])/(P[1][1]-P[0][1]));isFinite(A)?c.scale(A*S):ak.warn("Something went wrong during"+this.id+"fitbounds computations.")}else c.scale(o.scale*S);var B=this.midPt=[(C[0][0]+C[1][0])/2,(C[0][1]+C[1][1])/2];if(c.translate([m[0]+(B[0]-m[0]),m[1]+(B[1]-m[1])]).clipExtent(C),n._isAlbersUsa){var F=c([d.lon,d.lat]),U=c.translate();c.translate([U[0]-(F[0]-U[0]),U[1]-(F[1]-U[1])])}};$m.updateBaseLayers=function(e,t){var r=this,n=r.topojson,i=r.layers,a=r.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function s(h){return!!fv.lineLayers[h]}function u(h){return!!fv.fillLayers[h]}var l=this.hasChoropleth?fv.layersForChoropleth:fv.layers,f=l.filter(function(h){return s(h)||u(h)?t["show"+h]:o(h)?t[h].showgrid:!0}),c=r.framework.selectAll(".layer").data(f,String);c.exit().each(function(h){delete i[h],delete a[h],t1.select(this).remove()}),c.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=i[h]=t1.select(this);h==="bg"?r.bgRect=d.append("rect").style("pointer-events","all"):o(h)?a[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):s(h)?a[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):u(h)&&(a[h]=d.append("path").style("stroke","none"))}),c.order(),c.each(function(h){var d=a[h],p=fv.layerNameToAdjective[h];h==="frame"?d.datum(fv.sphereSVG):s(h)||u(h)?d.datum(rBt(n,n.objects[h])):o(h)&&d.datum(nBt(h,t,e)).call(kF.stroke,t[h].gridcolor).call(nk.dashLine,t[h].griddash,t[h].gridwidth),s(h)?d.call(kF.stroke,t[p+"color"]).call(nk.dashLine,"",t[p+"width"]):u(h)&&d.call(kF.fill,t[p+"color"])})};$m.updateDims=function(e,t){var r=this.bounds,n=(t.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,s=r[1][1]-a+n;nk.setRect(this.clipRect,i,a,o,s),this.bgRect.call(nk.setRect,i,a,o,s).call(kF.fill,t.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s};$m.updateFx=function(e,t){var r=this,n=r.graphDiv,i=r.bgRect,a=e.dragmode,o=e.clickmode;if(r.isStatic)return;function s(){var c=r.viewInitial,h={};for(var d in c)h[r.id+"."+d]=c[d];Z8t.call("_guiRelayout",n,h),n.emit("plotly_doubleclick",null)}function u(c){return r.projection.invert([c[0]+r.xaxis._offset,c[1]+r.yaxis._offset])}var l=function(c,h){if(h.isRect){var d=c.range={};d[r.id]=[u([h.xmin,h.ymin]),u([h.xmax,h.ymax])]}else{var p=c.lassoPoints={};p[r.id]=h.map(u)}},f={element:r.bgRect.node(),gd:n,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:l},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(c){c===2&&$8t(n)}};a==="pan"?(i.node().onmousedown=null,i.call(eBt(r,t)),i.on("dblclick.zoom",s),n._context._scrollZoom.geo||i.on("wheel.zoom",null)):(a==="select"||a==="lasso")&&(i.on(".zoom",null),f.prepFn=function(c,h,d){J8t(c,h,d,f,a)},XZ.init(f)),i.on("mousemove",function(){var c=r.projection.invert(ak.getPositionFromD3Event());if(!c)return XZ.unhover(n,t1.event);r.xaxis.p2c=function(){return c[0]},r.yaxis.p2c=function(){return c[1]},z6e.hover(n,t1.event,r.id)}),i.on("mouseout",function(){n._dragging||XZ.unhover(n,t1.event)}),i.on("click",function(){a!=="select"&&a!=="lasso"&&(o.indexOf("select")>-1&&Q8t(t1.event,n,[r.xaxis],[r.yaxis],r.id,f),o.indexOf("event")>-1&&z6e.click(n,t1.event))})};$m.makeFramework=function(){var e=this,t=e.graphDiv,r=t._fullLayout,n="clip"+r._uid+e.id;e.clipDef=r._clips.append("clipPath").attr("id",n),e.clipRect=e.clipDef.append("rect"),e.framework=t1.select(e.container).append("g").attr("class","geo "+e.id).call(nk.setClipUrl,n,t),e.project=function(i){var a=e.projection(i);return a?[a[0]-e.xaxis._offset,a[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(i){return e.project(i)[0]}},e.yaxis={_id:"y",c2p:function(i){return e.project(i)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},ZZ.setConvert(e.mockAxis,r)};$m.saveViewInitial=function(e){var t=e.center||{},r=e.projection,n=r.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":r.scale};var i;e._isScoped?i={"center.lon":t.lon,"center.lat":t.lat}:e._isClipped?i={"projection.rotation.lon":n.lon,"projection.rotation.lat":n.lat}:i={"center.lon":t.lon,"center.lat":t.lat,"projection.rotation.lon":n.lon},ak.extendFlat(this.viewInitial,i)};$m.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};$m._render=function(){var e=this.projection,t=e.getPath(),r;function n(a){var o=e(a.lonlat);return o?Y8t(o[0],o[1]):null}function i(a){return e.isLonLatOverEdges(a.lonlat)?"none":null}for(r in this.basePaths)this.basePaths[r].attr("d",t);for(r in this.dataPaths)this.dataPaths[r].attr("d",function(a){return t(a.geojson)});for(r in this.dataPoints)this.dataPoints[r].attr("display",i).attr("transform",n)};function iBt(e){var t=e.projection,r=t.type,n=fv.projNames[r];n="geo"+ak.titleCase(n);for(var i=YZ[n]||X8t[n],a=i(),o=e._isSatellite?Math.acos(1/t.distance)*180/Math.PI:e._isClipped?fv.lonaxisSpan[r]/2:null,s=["center","rotate","parallels","clipExtent"],u=function(c){return c?a:[]},l=0;lp}else return!1},a.getPath=function(){return W8t().projection(a)},a.getBounds=function(c){return a.getPath().bounds(c)},a.precision(fv.precision),e._isSatellite&&a.tilt(t.tilt).distance(t.distance),o&&a.clipAngle(o-fv.clipPad),a}function nBt(e,t,r){var n=1e-6,i=2.5,a=t[e],o=fv.scopeDefaults[t.scope],s,u,l;e==="lonaxis"?(s=o.lonaxisRange,u=o.lataxisRange,l=function(k,E){return[k,E]}):e==="lataxis"&&(s=o.lataxisRange,u=o.lonaxisRange,l=function(k,E){return[E,k]});var f={type:"linear",range:[s[0],s[1]-n],tick0:a.tick0,dtick:a.dtick};ZZ.setConvert(f,r);var c=ZZ.calcTicks(f);!t.isScoped&&e==="lonaxis"&&c.pop();for(var h=c.length,d=new Array(h),p=0;p0&&i<0&&(i+=360);var s=(i-n)/4;return{type:"Polygon",coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}});var KZ=Te((Uyr,U6e)=>{"use strict";var KT=Ih(),aBt=zc().attributes,oBt=Id().dash,YT=ek(),sBt=Sc().overrideAll,q6e=Y1(),N6e={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:KT.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:oBt},lBt=U6e.exports=sBt({domain:aBt({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:q6e(YT.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:q6e(YT.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:KT.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:YT.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:YT.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:YT.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:YT.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:KT.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:KT.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:KT.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:KT.background},lonaxis:N6e,lataxis:N6e},"plot","from-root");lBt.uirevision={valType:"any",editType:"none"}});var H6e=Te((Vyr,G6e)=>{"use strict";var CF=ei(),uBt=C_(),fBt=Rd().getSubplotData,LF=ek(),cBt=KZ(),V6e=LF.axesNames;G6e.exports=function(t,r,n){uBt(t,r,n,{type:"geo",attributes:cBt,handleDefaults:hBt,fullData:n,partition:"y"})};function hBt(e,t,r,n){var i=fBt(n.fullData,"geo",n.id),a=i.map(function(ae){return ae.index}),o=r("resolution"),s=r("scope"),u=LF.scopeDefaults[s],l=r("projection.type",u.projType),f=t._isAlbersUsa=l==="albers usa";f&&(s=t.scope="usa");var c=t._isScoped=s!=="world",h=t._isSatellite=l==="satellite",d=t._isConic=l.indexOf("conic")!==-1||l==="albers",p=t._isClipped=!!LF.lonaxisSpan[l];if(e.visible===!1){var x=CF.extendDeep({},t._template);x.showcoastlines=!1,x.showcountries=!1,x.showframe=!1,x.showlakes=!1,x.showland=!1,x.showocean=!1,x.showrivers=!1,x.showsubunits=!1,x.lonaxis&&(x.lonaxis.showgrid=!1),x.lataxis&&(x.lataxis.showgrid=!1),t._template=x}for(var b=r("visible"),v,k=0;k0&&F<0&&(F+=360);var U=(B+F)/2,G;if(!f){var j=c?u.projRotate:[U,0,0];G=r("projection.rotation.lon",j[0]),r("projection.rotation.lat",j[1]),r("projection.rotation.roll",j[2]),v=r("showcoastlines",!c&&b),v&&(r("coastlinecolor"),r("coastlinewidth")),v=r("showocean",b?void 0:!1),v&&r("oceancolor")}var H,N;if(f?(H=-96.6,N=38.7):(H=c?U:G,N=(A[0]+A[1])/2),r("center.lon",H),r("center.lat",N),h&&(r("projection.tilt"),r("projection.distance")),d){var W=u.projParallels||[0,60];r("projection.parallels",W)}r("projection.scale"),v=r("showland",b?void 0:!1),v&&r("landcolor"),v=r("showlakes",b?void 0:!1),v&&r("lakecolor"),v=r("showrivers",b?void 0:!1),v&&(r("rivercolor"),r("riverwidth")),v=r("showcountries",c&&s!=="usa"&&b),v&&(r("countrycolor"),r("countrywidth")),(s==="usa"||s==="north america"&&o===50)&&(r("showsubunits",b),r("subunitcolor"),r("subunitwidth")),c||(v=r("showframe",b),v&&(r("framecolor"),r("framewidth"))),r("bgcolor");var re=r("fitbounds");re&&(delete t.projection.scale,c?(delete t.center.lon,delete t.center.lat):p?(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon,delete t.projection.rotation.lat,delete t.lonaxis.range,delete t.lataxis.range):(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon))}});var JZ=Te((Gyr,X6e)=>{"use strict";var dBt=Rd().getSubplotCalcData,pBt=ei().counterRegex,vBt=O6e(),jy="geo",W6e=pBt(jy),j6e={};j6e[jy]={valType:"subplotid",dflt:jy,editType:"calc"};function mBt(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[jy],i=0;i{"use strict";Z6e.exports={attributes:G2(),supplyDefaults:CDe(),colorbar:ep(),formatLabels:zDe(),calc:fF(),calcGeoJSON:qZ().calcGeoJSON,plot:qZ().plot,style:DZ(),styleOnSelect:av().styleOnSelect,hoverPoints:y6e(),eventData:_6e(),selectPoints:w6e(),moduleType:"trace",name:"scattergeo",basePlotModule:JZ(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var J6e=Te((Wyr,K6e)=>{"use strict";K6e.exports=Y6e()});var JT=Te((jyr,eFe)=>{"use strict";var _Bt=Nu().hovertemplateAttrs,ox=G2(),xBt=nc(),$6e=Vf(),bBt=Ih().defaultLine,ax=Su().extendFlat,Q6e=ox.marker.line;eFe.exports=ax({locations:{valType:"data_array",editType:"calc"},locationmode:ox.locationmode,z:{valType:"data_array",editType:"calc"},geojson:ax({},ox.geojson,{}),featureidkey:ox.featureidkey,text:ax({},ox.text,{}),hovertext:ax({},ox.hovertext,{}),marker:{line:{color:ax({},Q6e.color,{dflt:bBt}),width:ax({},Q6e.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:ox.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:ox.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:ax({},$6e.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:_Bt(),showlegend:ax({},$6e.showlegend,{dflt:!1})},xBt("",{cLetter:"z",editTypeOverride:"calc"}))});var rFe=Te((Xyr,tFe)=>{"use strict";var PF=ei(),wBt=ed(),ABt=JT();tFe.exports=function(t,r,n,i){function a(h,d){return PF.coerce(t,r,ABt,h,d)}var o=a("locations"),s=a("z");if(!(o&&o.length&&PF.isArrayOrTypedArray(s)&&s.length)){r.visible=!1;return}r._length=Math.min(o.length,s.length);var u=a("geojson"),l;(typeof u=="string"&&u!==""||PF.isPlainObject(u))&&(l="geojson-id");var f=a("locationmode",l);f==="geojson-id"&&a("featureidkey"),a("text"),a("hovertext"),a("hovertemplate");var c=a("marker.line.width");c&&a("marker.line.color"),a("marker.opacity"),wBt(t,r,i,a,{prefix:"",cLetter:"z"}),PF.coerceSelectionMarkerOpacity(r,a)}});var zF=Te((Zyr,aFe)=>{"use strict";var iFe=ku(),TBt=nf().BADNUM,SBt=Dp(),MBt=ky(),EBt=F0();function nFe(e){return e&&typeof e=="string"}aFe.exports=function(t,r){var n=r._length,i=new Array(n),a;r.geojson?a=function(f){return nFe(f)||iFe(f)}:a=nFe;for(var o=0;o{"use strict";var kBt=Jl(),CBt=jl(),$Z=Mu(),LBt=_c();function PBt(e,t){t&&oFe(e,t)}function oFe(e,t){var r=t[0].trace,n=t[0].node3,i=n.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=LBt.makeColorScaleFuncFromTrace(r);i.each(function(u){kBt.select(this).attr("fill",s(u.z)).call(CBt.stroke,u.mlc||o.color).call($Z.dashLine,"",u.mlw||o.width||0).style("opacity",a.opacity)}),$Z.selectedPointStyle(i,r)}function zBt(e,t){var r=t[0].node3,n=t[0].trace;n.selectedpoints?$Z.selectedPointStyle(r.selectAll(".choroplethlocation"),n):oFe(e,t)}sFe.exports={style:PBt,styleOnSelect:zBt}});var QZ=Te((Kyr,fFe)=>{"use strict";var IBt=Jl(),lFe=ei(),$T=nx(),RBt=hF().getTopojsonFeatures,uFe=wm().findExtremes,DBt=IF().style;function FBt(e,t,r){var n=t.layers.backplot.select(".choroplethlayer");lFe.makeTraceGroups(n,r,"trace choropleth").each(function(i){var a=IBt.select(this),o=a.selectAll("path.choroplethlocation").data(lFe.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),DBt(e,i)})}function BBt(e,t){for(var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r.locationmode,o=r._length,s=a==="geojson-id"?$T.extractTraceFeature(e):RBt(r,i.topojson),u=[],l=[],f=0;f{"use strict";var OBt=wu(),qBt=JT(),NBt=ei().fillText;cFe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s,u,l,f,c=[r,n],h=[r+360,n];for(u=0;u")}}});var DF=Te(($yr,hFe)=>{"use strict";hFe.exports=function(t,r,n,i,a){t.location=r.location,t.z=r.z;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t.ct=o.ct,t}});var FF=Te((Qyr,dFe)=>{"use strict";dFe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,u,l,f,c;if(r===!1)for(s=0;s{"use strict";pFe.exports={attributes:JT(),supplyDefaults:rFe(),colorbar:M_(),calc:zF(),calcGeoJSON:QZ().calcGeoJSON,plot:QZ().plot,style:IF().style,styleOnSelect:IF().styleOnSelect,hoverPoints:RF(),eventData:DF(),selectPoints:FF(),moduleType:"trace",name:"choropleth",basePlotModule:JZ(),categories:["geo","noOpacity","showLegend"],meta:{}}});var yFe=Te((tgr,mFe)=>{"use strict";mFe.exports=vFe()});var BF=Te((rgr,_Fe)=>{"use strict";var VBt=$l(),s0=ei(),GBt=oA();function HBt(e,t,r,n){var i=e.cd,a=i[0].t,o=i[0].trace,s=e.xa,u=e.ya,l=a.x,f=a.y,c=s.c2p(t),h=u.c2p(r),d=e.distance,p;if(a.tree){var x=s.p2c(c-d),b=s.p2c(c+d),v=u.p2c(h-d),k=u.p2c(h+d);n==="x"?p=a.tree.range(Math.min(x,b),Math.min(u._rl[0],u._rl[1]),Math.max(x,b),Math.max(u._rl[0],u._rl[1])):p=a.tree.range(Math.min(x,b),Math.min(v,k),Math.max(x,b),Math.max(v,k))}else p=a.ids;var E,T,L,_,C,S,m,P,A,B=d;if(n==="x"){var F=!!o.xperiodalignment,U=!!o.yperiodalignment;for(C=0;C=Math.min(G,j)&&c<=Math.max(G,j)?0:1/0}if(S=Math.min(H,N)&&h<=Math.max(H,N)?0:1/0}A=Math.sqrt(S*S+m*m),T=p[C]}}}else for(C=p.length-1;C>-1;C--)E=p[C],L=l[E],_=f[E],S=s.c2p(L)-c,m=u.c2p(_)-h,P=Math.sqrt(S*S+m*m),P{"use strict";var xFe=20;bFe.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:xFe,SYMBOL_STROKE:xFe/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}});var ok=Te((ngr,SFe)=>{"use strict";var WBt=Vf(),jBt=gc(),XBt=Em(),sh=Zc(),wFe=jc().axisHoverFormat,AFe=nc(),ZBt=Y1(),eY=Su().extendFlat,YBt=Sc().overrideAll,KBt=sx().DASHES,TFe=sh.line,r1=sh.marker,JBt=r1.line,QT=SFe.exports=YBt({x:sh.x,x0:sh.x0,dx:sh.dx,y:sh.y,y0:sh.y0,dy:sh.dy,xperiod:sh.xperiod,yperiod:sh.yperiod,xperiod0:sh.xperiod0,yperiod0:sh.yperiod0,xperiodalignment:sh.xperiodalignment,yperiodalignment:sh.yperiodalignment,xhoverformat:wFe("x"),yhoverformat:wFe("y"),text:sh.text,hovertext:sh.hovertext,textposition:sh.textposition,textfont:jBt({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:TFe.color,width:TFe.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:ZBt(KBt),dflt:"solid"}},marker:eY({},AFe("marker"),{symbol:r1.symbol,angle:r1.angle,size:r1.size,sizeref:r1.sizeref,sizemin:r1.sizemin,sizemode:r1.sizemode,opacity:r1.opacity,colorbar:r1.colorbar,line:eY({},AFe("marker.line"),{width:JBt.width})}),connectgaps:sh.connectgaps,fill:eY({},sh.fill,{dflt:"none"}),fillcolor:XBt(),selected:{marker:sh.selected.marker,textfont:sh.selected.textfont},unselected:{marker:sh.unselected.marker,textfont:sh.unselected.textfont},opacity:WBt.opacity},"calc","nested");QT.x.editType=QT.y.editType=QT.x0.editType=QT.y0.editType="calc+clearAxisTypes";QT.hovertemplate=sh.hovertemplate;QT.texttemplate=sh.texttemplate});var OF=Te(tY=>{"use strict";var MFe=sx();tY.isOpenSymbol=function(e){return typeof e=="string"?MFe.OPEN_RE.test(e):e%200>100};tY.isDotSymbol=function(e){return typeof e=="string"?MFe.DOT_RE.test(e):e>200}});var CFe=Te((ogr,kFe)=>{"use strict";var EFe=ei(),$Bt=$l(),QBt=OF(),eOt=ok(),tOt=Sy(),qF=lc(),rOt=K3(),iOt=Pm(),nOt=$v(),aOt=I0(),oOt=zm(),sOt=R0();kFe.exports=function(t,r,n,i){function a(d,p){return EFe.coerce(t,r,eOt,d,p)}var o=t.marker?QBt.isOpenSymbol(t.marker.symbol):!1,s=qF.isBubble(t),u=rOt(t,r,i,a);if(!u){r.visible=!1;return}iOt(t,r,i,a),a("xhoverformat"),a("yhoverformat");var l=u{"use strict";var lOt=eI();LFe.exports=function(t,r,n){var i=t.i;return"x"in t||(t.x=r._x[i]),"y"in t||(t.y=r._y[i]),lOt(t,r,n)}});var IFe=Te((lgr,zFe)=>{"use strict";function uOt(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u>=0?(a=o,i=o-1):n=o+1}return a}function fOt(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u>0?(a=o,i=o-1):n=o+1}return a}function cOt(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u<0?(a=o,n=o+1):i=o-1}return a}function hOt(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],u=r!==void 0?r(s,t):s-t;u<=0?(a=o,n=o+1):i=o-1}return a}function dOt(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],s=r!==void 0?r(o,t):o-t;if(s===0)return a;s<=0?n=a+1:i=a-1}return-1}function sk(e,t,r,n,i,a){return typeof r=="function"?a(e,t,r,n===void 0?0:n|0,i===void 0?e.length-1:i|0):a(e,t,void 0,r===void 0?0:r|0,n===void 0?e.length-1:n|0)}zFe.exports={ge:function(e,t,r,n,i){return sk(e,t,r,n,i,uOt)},gt:function(e,t,r,n,i){return sk(e,t,r,n,i,fOt)},lt:function(e,t,r,n,i){return sk(e,t,r,n,i,cOt)},le:function(e,t,r,n,i){return sk(e,t,r,n,i,hOt)},eq:function(e,t,r,n,i){return sk(e,t,r,n,i,dOt)}}});var Xy=Te((ugr,DFe)=>{"use strict";DFe.exports=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=RFe(r)),Array.isArray(r)){var s={};for(o=0;o{"use strict";var pOt=Xy();FFe.exports=vOt;function vOt(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=pOt(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}});var W2=Te((cgr,BFe)=>{"use strict";BFe.exports=mOt;function mOt(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;ni&&(i=e[o]),e[o]{OFe.exports=function(){for(var e=0;e{var NFe=W6();UFe.exports=yOt;function yOt(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,o,s,u;(!t||typeof t=="string")&&(t=new(NFe(t||"float32"))(i+r));var l=t.length-r;if(i!==l)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+l);for(a=0,s=r;a{"use strict";VFe.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var WFe=Te((vgr,HFe)=>{"use strict";HFe.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var $Fe=Te((mgr,JFe)=>{"use strict";var jFe=IFe(),XFe=X4(),gOt=eS(),_Ot=W2(),ZFe=Xy(),iY=qFe(),xOt=j2(),bOt=GFe(),wOt=W6(),YFe=WFe(),AOt=1073741824;JFe.exports=function(t,r){r||(r={}),t=xOt(t,"float64"),r=ZFe(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=iY(r.maxDepth,255),i=iY(r.bounds,_Ot(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=KFe(t,i),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(wOt(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let v=0;vn||_>AOt){for(let N=0;Nbe||m>Ce||P=B||re===ae)return;let Le=u[W];ae===void 0&&(ae=Le.length);for(let Ve=re;Ve=T&&Je<=_&&nt>=L&&nt<=C&&F.push(ce)}let pe=l[W],te=pe[re*4+0],ke=pe[re*4+1],Ee=pe[re*4+2],Me=pe[re*4+3],Ne=G(pe,re+1),Fe=N*.5,ye=W+1;U(j,H,Fe,ye,te,ke||Ee||Me||Ne),U(j,H+Fe,Fe,ye,ke,Ee||Me||Ne),U(j+Fe,H,Fe,ye,Ee,Me||Ne),U(j+Fe,H+Fe,Fe,ye,Me,Ne)}function G(j,H){let N=null,W=0;for(;N===null;)if(N=j[H*4+W],W++,W>j.length)return null;return N}return F}function x(v,k,E,T,L){let _=[];for(let C=0;C{"use strict";QFe.exports=$Fe()});var nY=Te((ggr,e8e)=>{e8e.exports=TOt;function TOt(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],s=o.toUpperCase();if(o!=s)switch(a[0]=s,o){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var u=1;u{"use strict";Object.defineProperty(UF,"__esModule",{value:!0});var SOt=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var s=t[Symbol.iterator](),u;!(i=(u=s.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(l){a=!0,o=l}finally{try{!i&&s.return&&s.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),lk=Math.PI*2,aY=function(t,r,n,i,a,o,s){var u=t.x,l=t.y;u*=r,l*=n;var f=i*u-a*l,c=a*u+i*l;return{x:f+o,y:c+s}},MOt=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),s=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+s*n,y:s-o*n},{x:o,y:s}]},t8e=function(t,r,n,i){var a=t*i-r*n<0?-1:1,o=t*n+r*i;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},EOt=function(t,r,n,i,a,o,s,u,l,f,c,h){var d=Math.pow(a,2),p=Math.pow(o,2),x=Math.pow(c,2),b=Math.pow(h,2),v=d*p-d*b-p*x;v<0&&(v=0),v/=d*b+p*x,v=Math.sqrt(v)*(s===u?-1:1);var k=v*a/o*h,E=v*-o/a*c,T=f*k-l*E+(t+n)/2,L=l*k+f*E+(r+i)/2,_=(c-k)/a,C=(h-E)/o,S=(-c-k)/a,m=(-h-E)/o,P=t8e(1,0,_,C),A=t8e(_,C,S,m);return u===0&&A>0&&(A-=lk),u===1&&A<0&&(A+=lk),[T,L,P,A]},kOt=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,s=t.ry,u=t.xAxisRotation,l=u===void 0?0:u,f=t.largeArcFlag,c=f===void 0?0:f,h=t.sweepFlag,d=h===void 0?0:h,p=[];if(o===0||s===0)return[];var x=Math.sin(l*lk/360),b=Math.cos(l*lk/360),v=b*(r-i)/2+x*(n-a)/2,k=-x*(r-i)/2+b*(n-a)/2;if(v===0&&k===0)return[];o=Math.abs(o),s=Math.abs(s);var E=Math.pow(v,2)/Math.pow(o,2)+Math.pow(k,2)/Math.pow(s,2);E>1&&(o*=Math.sqrt(E),s*=Math.sqrt(E));var T=EOt(r,n,i,a,o,s,c,d,x,b,v,k),L=SOt(T,4),_=L[0],C=L[1],S=L[2],m=L[3],P=Math.abs(m)/(lk/4);Math.abs(1-P)<1e-7&&(P=1);var A=Math.max(Math.ceil(P),1);m/=A;for(var B=0;B{"use strict";a8e.exports=LOt;var COt=i8e();function LOt(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,u=null,l=0,f=0,c=0,h=e.length;c4?(n=d[d.length-4],i=d[d.length-3]):(n=l,i=f),r.push(d)}return r}function VF(e,t,r,n){return["C",e,t,r,n,r,n]}function n8e(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}});var oY=Te((xgr,s8e)=>{"use strict";s8e.exports=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}});var f8e=Te((bgr,u8e)=>{"use strict";var POt=$M(),zOt=nY(),IOt=o8e(),ROt=oY(),l8e=o4();u8e.exports=DOt;function DOt(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(l8e(ROt(e),"String is not an SVG path."),e=POt(e)),l8e(Array.isArray(e),"Argument should be a string or an array of path segments."),e=zOt(e),e=IOt(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,n=e.length;rt[2]&&(t[2]=i[a+0]),i[a+1]>t[3]&&(t[3]=i[a+1]);return t}});var m8e=Te((wgr,v8e)=>{var X2=Math.PI,c8e=p8e(120);v8e.exports=FOt;function FOt(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,u=null,l=0,f=0,c=0,h=e.length;c7&&(r.push(d.splice(0,7)),d.unshift("C"));break;case"S":var x=l,b=f;(t=="C"||t=="S")&&(x+=x-n,b+=b-i),d=["C",x,b,d[1],d[2],d[3],d[4]];break;case"T":t=="Q"||t=="T"?(s=l*2-s,u=f*2-u):(s=l,u=f),d=h8e(l,f,s,u,d[1],d[2]);break;case"Q":s=d[1],u=d[2],d=h8e(l,f,d[1],d[2],d[3],d[4]);break;case"L":d=GF(l,f,d[1],d[2]);break;case"H":d=GF(l,f,d[1],f);break;case"V":d=GF(l,f,l,d[1]);break;case"Z":d=GF(l,f,a,o);break}t=p,l=d[d.length-2],f=d[d.length-1],d.length>4?(n=d[d.length-4],i=d[d.length-3]):(n=l,i=f),r.push(d)}return r}function GF(e,t,r,n){return["C",e,t,r,n,r,n]}function h8e(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function d8e(e,t,r,n,i,a,o,s,u,l){if(l)E=l[0],T=l[1],v=l[2],k=l[3];else{var f=sY(e,t,-i);e=f.x,t=f.y,f=sY(s,u,-i),s=f.x,u=f.y;var c=(e-s)/2,h=(t-u)/2,d=c*c/(r*r)+h*h/(n*n);d>1&&(d=Math.sqrt(d),r=d*r,n=d*n);var p=r*r,x=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((p*x-p*h*h-x*c*c)/(p*h*h+x*c*c)));b==1/0&&(b=1);var v=b*r*h/n+(e+s)/2,k=b*-n*c/r+(t+u)/2,E=Math.asin(((t-k)/n).toFixed(9)),T=Math.asin(((u-k)/n).toFixed(9));E=eT&&(E=E-X2*2),!o&&T>E&&(T=T-X2*2)}if(Math.abs(T-E)>c8e){var L=T,_=s,C=u;T=E+c8e*(o&&T>E?1:-1),s=v+r*Math.cos(T),u=k+n*Math.sin(T);var S=d8e(s,u,r,n,i,0,o,_,C,[T,L,v,k])}var m=Math.tan((T-E)/4),P=4/3*r*m,A=4/3*n*m,B=[2*e-(e+P*Math.sin(E)),2*t-(t-A*Math.cos(E)),s+P*Math.sin(T),u-A*Math.cos(T),s,u];if(l)return B;S&&(B=B.concat(S));for(var F=0;F{var BOt=nY(),OOt=m8e(),qOt={M:"moveTo",C:"bezierCurveTo"};y8e.exports=function(e,t){e.beginPath(),OOt(BOt(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[qOt[n]].apply(e,i)}),e.closePath()}});var w8e=Te((Tgr,b8e)=>{"use strict";var NOt=X4();b8e.exports=UOt;var uk=1e20;function UOt(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,o,s,u,l,f,c,h,d,p,x;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,u=e,t.stride?f=t.stride:f=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(h=e,c=h.getContext("2d"),a=h.width,o=h.height,d=c.getImageData(0,0,a,o),u=d.data,f=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(h=e.canvas,c=e,a=h.width,o=h.height,d=c.getImageData(0,0,a,o),u=d.data,f=4):window.ImageData&&e instanceof window.ImageData&&(d=e,a=e.width,o=e.height,u=d.data,f=4);if(s=Math.max(a,o),window.Uint8ClampedArray&&u instanceof window.Uint8ClampedArray||window.Uint8Array&&u instanceof window.Uint8Array)for(l=u,u=Array(a*o),p=0,x=l.length;p{"use strict";var VOt=f8e(),GOt=$M(),HOt=g8e(),WOt=oY(),jOt=w8e(),lY=document.createElement("canvas"),cv=lY.getContext("2d");A8e.exports=XOt;function XOt(e,t){if(!WOt(e))throw Error("Argument should be valid svg path string");t||(t={});var r,n;t.shape?(r=t.shape[0],n=t.shape[1]):(r=lY.width=t.w||t.width||200,n=lY.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||VOt(e),s=[r/(o[2]-o[0]),n/(o[3]-o[1])],u=Math.min(s[0]||0,s[1]||0)/2;if(cv.fillStyle="black",cv.fillRect(0,0,r,n),cv.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?cv.strokeStyle="white":cv.strokeStyle="black",cv.lineWidth=Math.abs(a)),cv.translate(r*.5,n*.5),cv.scale(u,u),ZOt()){var l=new Path2D(e);cv.fill(l),a&&cv.stroke(l)}else{var f=GOt(e);HOt(cv,f),cv.fill(),a&&cv.stroke()}cv.setTransform(1,0,0,1,0,0);var c=jOt(cv,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return c}var HF;function ZOt(){if(HF!=null)return HF;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return HF=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return HF=r&&r.data&&r.data[3]===255}});var Y2=Te((Mgr,D8e)=>{"use strict";var jF=ku(),YOt=T8e(),WF=$_(),KOt=$l(),iS=ei(),Sh=iS.isArrayOrTypedArray,tS=Mu(),S8e=Wc(),M8e=$g().formatColor,rS=lc(),JOt=S3(),fY=OF(),fk=sx(),$Ot=U1().DESELECTDIM,E8e={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},QOt=rv().appendArrayPointValue;function e9t(e,t){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},i=e._context.plotGlPixelRatio;if(t.visible!==!0)return n;if(rS.hasText(t)&&(n.text=R8e(e,t),n.textSel=C8e(e,t,t.selected),n.textUnsel=C8e(e,t,t.unselected)),rS.hasMarkers(t)&&(n.marker=hY(e,t),n.markerSel=cY(e,t,t.selected),n.markerUnsel=cY(e,t,t.unselected),!t.unselected&&Sh(t.marker.opacity))){var a=t.marker.opacity;for(n.markerUnsel.opacity=new Array(a.length),r=0;r500?"bold":"normal":e}function hY(e,t){var r=t._length,n=t.marker,i={},a,o=Sh(n.symbol),s=Sh(n.angle),u=Sh(n.color),l=Sh(n.line.color),f=Sh(n.opacity),c=Sh(n.size),h=Sh(n.line.width),d;if(o||(d=fY.isOpenSymbol(n.symbol)),o||u||l||f||s){i.symbols=new Array(r),i.angles=new Array(r),i.colors=new Array(r),i.borderColors=new Array(r);var p=n.symbol,x=n.angle,b=M8e(n,n.opacity,r),v=M8e(n.line,n.opacity,r);if(!Sh(v[0])){var k=v;for(v=Array(r),a=0;afk.TOO_MANY_POINTS||rS.hasMarkers(t)?"rect":"round";if(l&&t.connectgaps){var c=a[0],h=a[1];for(o=0;o1?u[o]:u[0]:u,d=Sh(l)?l.length>1?l[o]:l[0]:l,p=E8e[h],x=E8e[d],b=f?f/.8+1:0,v=-x*b-x*.5;a.offset[o]=[p*b/c,v/c]}}return a}D8e.exports={style:e9t,markerStyle:hY,markerSelection:cY,linePositions:r9t,errorBarPositions:i9t,textPosition:n9t}});var dY=Te((Egr,F8e)=>{"use strict";var XF=ei();F8e.exports=function(t,r){var n=r._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return r._scene||(n=r._scene={},n.init=function(){XF.extendFlat(n,a,i)},n.init(),n.update=function(s){var u=XF.repeat(s,n.count);if(n.fill2d&&n.fill2d.update(u),n.scatter2d&&n.scatter2d.update(u),n.line2d&&n.line2d.update(u),n.error2d&&n.error2d.update(u.concat(u)),n.select2d&&n.select2d.update(u),n.glText)for(var l=0;l{"use strict";var a9t=NF(),nS=ei(),B8e=Wc(),o9t=wm().findExtremes,O8e=Im(),pY=B0(),s9t=pY.calcMarkerSize,l9t=pY.calcAxisExpansion,u9t=pY.setFirstScatter,f9t=D0(),aS=Y2(),c9t=dY(),q8e=nf().BADNUM,h9t=sx().TOO_MANY_POINTS;U8e.exports=function(t,r){var n=t._fullLayout,i=r._xA=B8e.getFromId(t,r.xaxis,"x"),a=r._yA=B8e.getFromId(t,r.yaxis,"y"),o=n._plots[r.xaxis+r.yaxis],s=r._length,u=s>=h9t,l=s*2,f={},c,h=i.makeCalcdata(r,"x"),d=a.makeCalcdata(r,"y"),p=O8e(r,i,"x",h),x=O8e(r,a,"y",d),b=p.vals,v=x.vals;r._x=b,r._y=v,r.xperiodalignment&&(r._origX=h,r._xStarts=p.starts,r._xEnds=p.ends),r.yperiodalignment&&(r._origY=d,r._yStarts=x.starts,r._yEnds=x.ends);var k=new Array(l),E=new Array(s);for(c=0;c1&&nS.extendFlat(o.line,aS.linePositions(e,r,n)),o.errorX||o.errorY){var s=aS.errorBarPositions(e,r,n,i,a);o.errorX&&nS.extendFlat(o.errorX,s.x),o.errorY&&nS.extendFlat(o.errorY,s.y)}return o.text&&(nS.extendFlat(o.text,{positions:n},aS.textPosition(e,r,o.text,o.marker)),nS.extendFlat(o.textSel,{positions:n},aS.textPosition(e,r,o.text,o.markerSel)),nS.extendFlat(o.textUnsel,{positions:n},aS.textPosition(e,r,o.text,o.markerUnsel))),o}});var vY=Te((Cgr,H8e)=>{"use strict";var G8e=ei(),p9t=jl(),v9t=U1().DESELECTDIM;function m9t(e){var t=e[0],r=t.trace,n=t.t,i=n._scene,a=n.index,o=i.selectBatch[a],s=i.unselectBatch[a],u=i.textOptions[a],l=i.textSelectedOptions[a]||{},f=i.textUnselectedOptions[a]||{},c=G8e.extendFlat({},u),h,d;if(o.length||s.length){var p=l.color,x=f.color,b=u.color,v=G8e.isArrayOrTypedArray(b);for(c.color=new Array(r._length),h=0;h{"use strict";var W8e=lc(),y9t=vY().styleTextSelection;j8e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u=n[0].t,l=s._length,f=u.x,c=u.y,h=u._scene,d=u.index;if(!h)return o;var p=W8e.hasText(s),x=W8e.hasMarkers(s),b=!x&&!p;if(s.visible!==!0||b)return o;var v=[],k=[];if(r!==!1&&!r.degenerate)for(var E=0;E{"use strict";var g9t=BF();X8e.exports={moduleType:"trace",name:"scattergl",basePlotModule:Ah(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:ok(),supplyDefaults:CFe(),crossTraceDefaults:hU(),colorbar:ep(),formatLabels:PFe(),calc:V8e(),hoverPoints:g9t.hoverPoints,selectPoints:mY(),meta:{}}});var K8e=Te((zgr,YF)=>{"use strict";var ZF=X4();YF.exports=Y8e;YF.exports.to=Y8e;YF.exports.from=_9t;function Y8e(e,t){t==null&&(t=!0);var r=e[0],n=e[1],i=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,n*=255,i*=255,a*=255),r=ZF(r,0,255)&255,n=ZF(n,0,255)&255,i=ZF(i,0,255)&255,a=ZF(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function _9t(e,t){e=+e;var r=e>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=e&255;return t===!1?[r,n,i,a]:[r/255,n/255,i/255,a/255]}});var Uh=Te((Igr,$8e)=>{"use strict";var J8e=Object.getOwnPropertySymbols,x9t=Object.prototype.hasOwnProperty,b9t=Object.prototype.propertyIsEnumerable;function w9t(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function A9t(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}$8e.exports=A9t()?Object.assign:function(e,t){for(var r,n=w9t(e),i,a=1;a{Q8e.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n{"use strict";tBe.exports=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i{"use strict";rBe.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var KF=Te((Bgr,oS)=>{"use strict";oS.exports=ck;oS.exports.float32=oS.exports.float=ck;oS.exports.fract32=oS.exports.fract=T9t;var nBe=new Float32Array(1);function T9t(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=ck(e));for(var r=0,n=t.length;r{"use strict";function S9t(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){l=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function M9t(e,t){return C9t(e)||S9t(e,t)||oBe(e,t)||z9t()}function E9t(e){return k9t(e)||L9t(e)||oBe(e)||P9t()}function k9t(e){if(Array.isArray(e))return gY(e)}function C9t(e){if(Array.isArray(e))return e}function L9t(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oBe(e,t){if(e){if(typeof e=="string")return gY(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gY(e,t)}}function gY(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rre)?N.tree=P9t(H,{bounds:de}):re&&re.length&&(N.tree=re),N.tree){var te={primitive:"points",usage:"static",data:N.tree,type:"uint32"};N.elements?N.elements(te):N.elements=o.elements(te)}var ke=$F.float32(H);ae({data:ke,usage:"dynamic"});var Ee=$F.fract32(H,ke);return be({data:Ee,usage:"dynamic"}),Pe({data:new Uint8Array(Ce),type:"uint8",usage:"stream"}),H}},{marker:function(H,N,W){var re=N.activation;if(re.forEach(function(Ee){return Ee&&Ee.destroy&&Ee.destroy()}),re.length=0,!H||typeof H[0]=="number"){var ae=e.addMarker(H);re[ae]=!0}else{for(var be=[],Pe=0,Ce=Math.min(H.length,N.count);Pe=0)return i;var a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(var o=0,s=e.length;on*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};op.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,r=this.paletteTexture,n=Math.ceil(e.length*.25/t);if(n>1){e=e.slice();for(var i=e.length*.25%t;i{"use strict";wY.exports=t8;wY.exports.default=t8;function t8(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=lBe(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var s,u,l,f,c,h,d;if(n&&(a=G9t(e,t,a,r)),e.length>80*r){s=l=e[0],u=f=e[1];for(var p=r;pl&&(l=c),h>f&&(f=h);d=Math.max(l-s,f-u),d=d!==0?32767/d:0}return uk(a,o,r,s,u,d,0),o}function lBe(e,t,r,n,i){var a,o;if(i===bY(e,t,r,n)>0)for(a=t;a=t;a-=n)o=sBe(a,e[a],e[a+1],o);return o&&r8(o,o.next)&&(ck(o),o=o.next),o}function J2(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(r8(r,r.next)||Mh(r.prev,r,r.next)===0)){if(ck(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function uk(e,t,r,n,i,a,o){if(e){!o&&a&&Z9t(e,n,i,a);for(var s=e,u,l;e.prev!==e.next;){if(u=e.prev,l=e.next,a?N9t(e,n,i,a):q9t(e)){t.push(u.i/r|0),t.push(e.i/r|0),t.push(l.i/r|0),ck(e),e=l.next,s=l.next;continue}if(e=l,e===s){o?o===1?(e=U9t(J2(e),t,r),uk(e,t,r,n,i,a,2)):o===2&&V9t(e,t,r,n,i,a):uk(J2(e),t,r,n,i,a,1);break}}}}function q9t(e){var t=e.prev,r=e,n=e.next;if(Mh(t,r,n)>=0)return!1;for(var i=t.x,a=r.x,o=n.x,s=t.y,u=r.y,l=n.y,f=ia?i>o?i:o:a>o?a:o,d=s>u?s>l?s:l:u>l?u:l,p=n.next;p!==t;){if(p.x>=f&&p.x<=h&&p.y>=c&&p.y<=d&&sS(i,s,a,u,o,l,p.x,p.y)&&Mh(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function N9t(e,t,r,n){var i=e.prev,a=e,o=e.next;if(Mh(i,a,o)>=0)return!1;for(var s=i.x,u=a.x,l=o.x,f=i.y,c=a.y,h=o.y,d=su?s>l?s:l:u>l?u:l,b=f>c?f>h?f:h:c>h?c:h,v=_Y(d,p,t,r,n),k=_Y(x,b,t,r,n),E=e.prevZ,T=e.nextZ;E&&E.z>=v&&T&&T.z<=k;){if(E.x>=d&&E.x<=x&&E.y>=p&&E.y<=b&&E!==i&&E!==o&&sS(s,f,u,c,l,h,E.x,E.y)&&Mh(E.prev,E,E.next)>=0||(E=E.prevZ,T.x>=d&&T.x<=x&&T.y>=p&&T.y<=b&&T!==i&&T!==o&&sS(s,f,u,c,l,h,T.x,T.y)&&Mh(T.prev,T,T.next)>=0))return!1;T=T.nextZ}for(;E&&E.z>=v;){if(E.x>=d&&E.x<=x&&E.y>=p&&E.y<=b&&E!==i&&E!==o&&sS(s,f,u,c,l,h,E.x,E.y)&&Mh(E.prev,E,E.next)>=0)return!1;E=E.prevZ}for(;T&&T.z<=k;){if(T.x>=d&&T.x<=x&&T.y>=p&&T.y<=b&&T!==i&&T!==o&&sS(s,f,u,c,l,h,T.x,T.y)&&Mh(T.prev,T,T.next)>=0)return!1;T=T.nextZ}return!0}function U9t(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!r8(i,a)&&uBe(i,n,n.next,a)&&fk(i,a)&&fk(a,i)&&(t.push(i.i/r|0),t.push(n.i/r|0),t.push(a.i/r|0),ck(n),ck(n.next),n=e=a),n=n.next}while(n!==e);return J2(n)}function V9t(e,t,r,n,i,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&J9t(o,s)){var u=fBe(o,s);o=J2(o,o.next),u=J2(u,u.next),uk(o,t,r,n,i,a,0),uk(u,t,r,n,i,a,0);return}s=s.next}o=o.next}while(o!==e)}function G9t(e,t,r,n){var i=[],a,o,s,u,l;for(a=0,o=t.length;a=r.next.y&&r.next.y!==r.y){var s=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=n&&s>a&&(a=s,o=r.x=r.x&&r.x>=l&&n!==r.x&&sS(io.x||r.x===o.x&&X9t(o,r)))&&(o=r,c=h)),r=r.next;while(r!==u);return o}function X9t(e,t){return Mh(e.prev,e,t.prev)<0&&Mh(t.next,e,e.next)<0}function Z9t(e,t,r,n){var i=e;do i.z===0&&(i.z=_Y(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,Y9t(i)}function Y9t(e){var t,r,n,i,a,o,s,u,l=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,s=0,t=0;t0||u>0&&n;)s!==0&&(u===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,u--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,l*=2}while(o>1);return e}function _Y(e,t,r,n,i){return e=(e-r)*i|0,t=(t-n)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function K9t(e){var t=e,r=e;do(t.x=(e-o)*(a-s)&&(e-o)*(n-s)>=(r-o)*(t-s)&&(r-o)*(a-s)>=(i-o)*(n-s)}function J9t(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!$9t(e,t)&&(fk(e,t)&&fk(t,e)&&Q9t(e,t)&&(Mh(e.prev,e,t.prev)||Mh(e,t.prev,t))||r8(e,t)&&Mh(e.prev,e,e.next)>0&&Mh(t.prev,t,t.next)>0)}function Mh(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function r8(e,t){return e.x===t.x&&e.y===t.y}function uBe(e,t,r,n){var i=e8(Mh(e,t,r)),a=e8(Mh(e,t,n)),o=e8(Mh(r,n,e)),s=e8(Mh(r,n,t));return!!(i!==a&&o!==s||i===0&&QF(e,r,t)||a===0&&QF(e,n,t)||o===0&&QF(r,e,n)||s===0&&QF(r,t,n))}function QF(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function e8(e){return e>0?1:e<0?-1:0}function $9t(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&uBe(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function fk(e,t){return Mh(e.prev,e,e.next)<0?Mh(e,t,e.next)>=0&&Mh(e,e.prev,t)>=0:Mh(e,t,e.prev)<0||Mh(e,e.next,t)<0}function Q9t(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function fBe(e,t){var r=new xY(e.i,e.x,e.y),n=new xY(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function sBe(e,t,r,n){var i=new xY(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function ck(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function xY(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}t8.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(bY(e,0,a,r));if(i)for(var s=0,u=t.length;s0&&(n+=e[i-1].length,r.holes.push(n))}return r}});var dBe=Te((Fgr,hBe)=>{"use strict";var eqt=W2();hBe.exports=tqt;function tqt(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=eqt(e,t));for(var n=0;n{"use strict";pBe.exports=function(){var e,t;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch(r){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(t)!=="one")}});var yBe=Te((Ogr,mBe)=>{"use strict";mBe.exports=function(){}});var lx=Te((qgr,gBe)=>{"use strict";var rqt=yBe()();gBe.exports=function(e){return e!==rqt&&e!==null}});var AY=Te((Ngr,xBe)=>{"use strict";var iqt=Object.create,nqt=Object.getPrototypeOf,_Be={};xBe.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||iqt;return typeof e!="function"?!1:nqt(e(t(null),_Be))===_Be}});var TY=Te((Ugr,bBe)=>{"use strict";var aqt=lx(),oqt={function:!0,object:!0};bBe.exports=function(e){return aqt(e)&&oqt[typeof e]||!1}});var i1=Te((Vgr,wBe)=>{"use strict";var sqt=lx();wBe.exports=function(e){if(!sqt(e))throw new TypeError("Cannot use null or undefined");return e}});var TBe=Te((Ggr,ABe)=>{"use strict";var SY=Object.create,i8;AY()()||(i8=MY());ABe.exports=function(){var e,t,r;return!i8||i8.level!==1?SY:(e={},t={},r={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(n){if(n==="__proto__"){t[n]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}t[n]=r}),Object.defineProperties(e,t),Object.defineProperty(i8,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(n,i){return SY(n===null?e:n,i)})}()});var MY=Te((Hgr,SBe)=>{"use strict";var lqt=TY(),uqt=i1(),fqt=Object.prototype.isPrototypeOf,cqt=Object.defineProperty,hqt={configurable:!0,enumerable:!1,writable:!0,value:void 0},n8;n8=function(e,t){if(uqt(e),t===null||lqt(t))return e;throw new TypeError("Prototype must be null or an object")};SBe.exports=function(e){var t,r;return e?(e.level===2?e.set?(r=e.set,t=function(n,i){return r.call(n8(n,i),i),n}):t=function(n,i){return n8(n,i).__proto__=i,n}:t=function n(i,a){var o;return n8(i,a),o=fqt.call(n.nullPolyfill,i),o&&delete n.nullPolyfill.__proto__,a===null&&(a=n.nullPolyfill),i.__proto__=a,o&&cqt(n.nullPolyfill,"__proto__",hqt),i},Object.defineProperty(t,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null}(function(){var e=Object.create(null),t={},r,n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(n){try{r=n.set,r.call(e,t)}catch(i){}if(Object.getPrototypeOf(e)===t)return{set:r,level:2}}return e.__proto__=t,Object.getPrototypeOf(e)===t?{level:2}:(e={},e.__proto__=t,Object.getPrototypeOf(e)===t?{level:1}:!1)}());TBe()});var a8=Te((Wgr,MBe)=>{"use strict";MBe.exports=AY()()?Object.setPrototypeOf:MY()});var kBe=Te((jgr,EBe)=>{"use strict";var dqt=TY();EBe.exports=function(e){if(!dqt(e))throw new TypeError(e+" is not an Object");return e}});var LBe=Te((Xgr,CBe)=>{"use strict";var pqt=Object.create(null),vqt=Math.random;CBe.exports=function(){var e;do e=vqt().toString(36).slice(2);while(pqt[e]);return e}});var $2=Te((Zgr,PBe)=>{"use strict";var mqt=void 0;PBe.exports=function(e){return e!==mqt&&e!==null}});var o8=Te((Ygr,zBe)=>{"use strict";var yqt=$2(),gqt={object:!0,function:!0,undefined:!0};zBe.exports=function(e){return yqt(e)?hasOwnProperty.call(gqt,typeof e):!1}});var RBe=Te((Kgr,IBe)=>{"use strict";var _qt=o8();IBe.exports=function(e){if(!_qt(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(t){return!1}}});var FBe=Te((Jgr,DBe)=>{"use strict";var xqt=RBe();DBe.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(t){return!1}return!xqt(e)}});var EY=Te(($gr,BBe)=>{"use strict";var bqt=FBe(),wqt=/^\s*class[\s{/}]/,Aqt=Function.prototype.toString;BBe.exports=function(e){return!(!bqt(e)||wqt.test(Aqt.call(e)))}});var qBe=Te((Qgr,OBe)=>{"use strict";OBe.exports=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}});var UBe=Te((e1r,NBe)=>{"use strict";NBe.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var GBe=Te((t1r,VBe)=>{"use strict";var Tqt=lx(),Sqt=Object.keys;VBe.exports=function(e){return Sqt(Tqt(e)?Object(e):e)}});var WBe=Te((r1r,HBe)=>{"use strict";HBe.exports=UBe()()?Object.keys:GBe()});var XBe=Te((i1r,jBe)=>{"use strict";var Mqt=WBe(),Eqt=i1(),kqt=Math.max;jBe.exports=function(e,t){var r,n,i=kqt(arguments.length,2),a;for(e=Object(Eqt(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},n=1;n{"use strict";ZBe.exports=qBe()()?Object.assign:XBe()});var kY=Te((a1r,YBe)=>{"use strict";var Cqt=lx(),Lqt=Array.prototype.forEach,Pqt=Object.create,zqt=function(e,t){var r;for(r in e)t[r]=e[r]};YBe.exports=function(e){var t=Pqt(null);return Lqt.call(arguments,function(r){Cqt(r)&&zqt(Object(r),t)}),t}});var JBe=Te((o1r,KBe)=>{"use strict";var CY="razdwatrzy";KBe.exports=function(){return typeof CY.contains!="function"?!1:CY.contains("dwa")===!0&&CY.contains("foo")===!1}});var QBe=Te((s1r,$Be)=>{"use strict";var Iqt=String.prototype.indexOf;$Be.exports=function(e){return Iqt.call(this,e,arguments[1])>-1}});var LY=Te((l1r,eOe)=>{"use strict";eOe.exports=JBe()()?String.prototype.contains:QBe()});var n1=Te((u1r,nOe)=>{"use strict";var l8=$2(),tOe=EY(),rOe=s8(),iOe=kY(),hk=LY(),Rqt=nOe.exports=function(e,t){var r,n,i,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],l8(e)?(r=hk.call(e,"c"),n=hk.call(e,"e"),i=hk.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?rOe(iOe(a),o):o};Rqt.gs=function(e,t,r){var n,i,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],l8(t)?tOe(t)?l8(r)?tOe(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,l8(e)?(n=hk.call(e,"c"),i=hk.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?rOe(iOe(a),o):o}});var dk=Te((f1r,oOe)=>{"use strict";var aOe=Object.prototype.toString,Dqt=aOe.call(function(){return arguments}());oOe.exports=function(e){return aOe.call(e)===Dqt}});var pk=Te((c1r,lOe)=>{"use strict";var sOe=Object.prototype.toString,Fqt=sOe.call("");lOe.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||sOe.call(e)===Fqt)||!1}});var fOe=Te((h1r,uOe)=>{"use strict";uOe.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var dOe=Te((d1r,hOe)=>{var cOe=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};hOe.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return cOe()}try{return __global__||cOe()}finally{delete Object.prototype.__global__}}()});var vk=Te((p1r,pOe)=>{"use strict";pOe.exports=fOe()()?globalThis:dOe()});var mOe=Te((v1r,vOe)=>{"use strict";var Bqt=vk(),PY={object:!0,symbol:!0};vOe.exports=function(){var e=Bqt.Symbol,t;if(typeof e!="function")return!1;t=e("test symbol");try{String(t)}catch(r){return!1}return!(!PY[typeof e.iterator]||!PY[typeof e.toPrimitive]||!PY[typeof e.toStringTag])}});var gOe=Te((m1r,yOe)=>{"use strict";yOe.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var zY=Te((y1r,_Oe)=>{"use strict";var Oqt=gOe();_Oe.exports=function(e){if(!Oqt(e))throw new TypeError(e+" is not a symbol");return e}});var TOe=Te((g1r,AOe)=>{"use strict";var xOe=n1(),qqt=Object.create,bOe=Object.defineProperty,Nqt=Object.prototype,wOe=qqt(null);AOe.exports=function(e){for(var t=0,r,n;wOe[e+(t||"")];)++t;return e+=t||"",wOe[e]=!0,r="@@"+e,bOe(Nqt,r,xOe.gs(null,function(i){n||(n=!0,bOe(this,r,xOe(i)),n=!1)})),r}});var MOe=Te((_1r,SOe)=>{"use strict";var Qm=n1(),Vh=vk().Symbol;SOe.exports=function(e){return Object.defineProperties(e,{hasInstance:Qm("",Vh&&Vh.hasInstance||e("hasInstance")),isConcatSpreadable:Qm("",Vh&&Vh.isConcatSpreadable||e("isConcatSpreadable")),iterator:Qm("",Vh&&Vh.iterator||e("iterator")),match:Qm("",Vh&&Vh.match||e("match")),replace:Qm("",Vh&&Vh.replace||e("replace")),search:Qm("",Vh&&Vh.search||e("search")),species:Qm("",Vh&&Vh.species||e("species")),split:Qm("",Vh&&Vh.split||e("split")),toPrimitive:Qm("",Vh&&Vh.toPrimitive||e("toPrimitive")),toStringTag:Qm("",Vh&&Vh.toStringTag||e("toStringTag")),unscopables:Qm("",Vh&&Vh.unscopables||e("unscopables"))})}});var COe=Te((x1r,kOe)=>{"use strict";var EOe=n1(),Uqt=zY(),mk=Object.create(null);kOe.exports=function(e){return Object.defineProperties(e,{for:EOe(function(t){return mk[t]?mk[t]:mk[t]=e(String(t))}),keyFor:EOe(function(t){var r;Uqt(t);for(r in mk)if(mk[r]===t)return r})})}});var zOe=Te((b1r,POe)=>{"use strict";var Zy=n1(),IY=zY(),u8=vk().Symbol,Vqt=TOe(),Gqt=MOe(),Hqt=COe(),Wqt=Object.create,RY=Object.defineProperties,f8=Object.defineProperty,jp,lS,LOe;if(typeof u8=="function")try{String(u8()),LOe=!0}catch(e){}else u8=null;lS=function(t){if(this instanceof lS)throw new TypeError("Symbol is not a constructor");return jp(t)};POe.exports=jp=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return LOe?u8(t):(r=Wqt(lS.prototype),t=t===void 0?"":String(t),RY(r,{__description__:Zy("",t),__name__:Zy("",Vqt(t))}))};Gqt(jp);Hqt(jp);RY(lS.prototype,{constructor:Zy(jp),toString:Zy("",function(){return this.__name__})});RY(jp.prototype,{toString:Zy(function(){return"Symbol ("+IY(this).__description__+")"}),valueOf:Zy(function(){return IY(this)})});f8(jp.prototype,jp.toPrimitive,Zy("",function(){var e=IY(this);return typeof e=="symbol"?e:e.toString()}));f8(jp.prototype,jp.toStringTag,Zy("c","Symbol"));f8(lS.prototype,jp.toStringTag,Zy("c",jp.prototype[jp.toStringTag]));f8(lS.prototype,jp.toPrimitive,Zy("c",jp.prototype[jp.toPrimitive]))});var ux=Te((w1r,IOe)=>{"use strict";IOe.exports=mOe()()?vk().Symbol:zOe()});var DOe=Te((A1r,ROe)=>{"use strict";var jqt=i1();ROe.exports=function(){return jqt(this).length=0,this}});var uS=Te((T1r,FOe)=>{"use strict";FOe.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var OOe=Te((S1r,BOe)=>{"use strict";var Xqt=$2(),Zqt=o8(),Yqt=Object.prototype.toString;BOe.exports=function(e){if(!Xqt(e))return null;if(Zqt(e)){var t=e.toString;if(typeof t!="function"||t===Yqt)return null}try{return""+e}catch(r){return null}}});var NOe=Te((M1r,qOe)=>{"use strict";qOe.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}});var VOe=Te((E1r,UOe)=>{"use strict";var Kqt=NOe(),Jqt=/[\n\r\u2028\u2029]/g;UOe.exports=function(e){var t=Kqt(e);return t===null?"":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(Jqt,function(r){switch(r){case` -`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),t)}});var DY=Te((k1r,WOe)=>{"use strict";var GOe=$2(),$qt=o8(),Qqt=OOe(),eNt=VOe(),HOe=function(e,t){return e.replace("%v",eNt(t))};WOe.exports=function(e,t,r){if(!$qt(r))throw new TypeError(HOe(t,e));if(!GOe(e)){if("default"in r)return r.default;if(r.isOptional)return null}var n=Qqt(r.errorMessage);throw GOe(n)||(n=t),new TypeError(HOe(n,e))}});var XOe=Te((C1r,jOe)=>{"use strict";var tNt=DY(),rNt=$2();jOe.exports=function(e){return rNt(e)?e:tNt(e,"Cannot use %v",arguments[1])}});var YOe=Te((L1r,ZOe)=>{"use strict";var iNt=DY(),nNt=EY();ZOe.exports=function(e){return nNt(e)?e:iNt(e,"%v is not a plain function",arguments[1])}});var JOe=Te((P1r,KOe)=>{"use strict";KOe.exports=function(){var e=Array.from,t,r;return typeof e!="function"?!1:(t=["raz","dwa"],r=e(t),!!(r&&r!==t&&r[1]==="dwa"))}});var QOe=Te((z1r,$Oe)=>{"use strict";var aNt=Object.prototype.toString,oNt=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);$Oe.exports=function(e){return typeof e=="function"&&oNt(aNt.call(e))}});var t9e=Te((I1r,e9e)=>{"use strict";e9e.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var i9e=Te((R1r,r9e)=>{"use strict";r9e.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var a9e=Te((D1r,n9e)=>{"use strict";n9e.exports=t9e()()?Math.sign:i9e()});var s9e=Te((F1r,o9e)=>{"use strict";var sNt=a9e(),lNt=Math.abs,uNt=Math.floor;o9e.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:sNt(e)*uNt(lNt(e)))}});var u9e=Te((B1r,l9e)=>{"use strict";var fNt=s9e(),cNt=Math.max;l9e.exports=function(e){return cNt(0,fNt(e))}});var d9e=Te((O1r,h9e)=>{"use strict";var hNt=ux().iterator,dNt=dk(),pNt=QOe(),vNt=u9e(),f9e=uS(),mNt=i1(),yNt=lx(),gNt=pk(),c9e=Array.isArray,FY=Function.prototype.call,Q2={configurable:!0,enumerable:!0,writable:!0,value:null},BY=Object.defineProperty;h9e.exports=function(e){var t=arguments[1],r=arguments[2],n,i,a,o,s,u,l,f,c,h;if(e=Object(mNt(e)),yNt(t)&&f9e(t),!this||this===Array||!pNt(this)){if(!t){if(dNt(e))return s=e.length,s!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(c9e(e)){for(o=new Array(s=e.length),i=0;i=55296&&u<=56319&&(h+=e[++i])),h=t?FY.call(t,r,h,a):h,n?(Q2.value=h,BY(o,a,Q2)):o[a]=h,++a;s=a}}if(s===void 0)for(s=vNt(e.length),n&&(o=new n(s)),i=0;i{"use strict";p9e.exports=JOe()()?Array.from:d9e()});var y9e=Te((N1r,m9e)=>{"use strict";var _Nt=v9e(),xNt=s8(),bNt=i1();m9e.exports=function(e){var t=Object(bNt(e)),r=arguments[1],n=Object(arguments[2]);if(t!==e&&!r)return t;var i={};return r?_Nt(r,function(a){(n.ensure||a in e)&&(i[a]=e[a])}):xNt(i,e),i}});var x9e=Te((U1r,_9e)=>{"use strict";var wNt=uS(),ANt=i1(),TNt=Function.prototype.bind,g9e=Function.prototype.call,SNt=Object.keys,MNt=Object.prototype.propertyIsEnumerable;_9e.exports=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(ANt(r)),wNt(n),i=SNt(r),o&&i.sort(typeof o=="function"?TNt.call(o,r):void 0),typeof e!="function"&&(e=i[e]),g9e.call(e,i,function(s,u){return MNt.call(r,s)?g9e.call(n,a,r[s],s,r,u):t})}}});var w9e=Te((V1r,b9e)=>{"use strict";b9e.exports=x9e()("forEach")});var T9e=Te((G1r,A9e)=>{"use strict";var ENt=uS(),kNt=w9e(),CNt=Function.prototype.call;A9e.exports=function(e,t){var r={},n=arguments[2];return ENt(t),kNt(e,function(i,a,o,s){r[a]=CNt.call(t,n,i,a,o,s)}),r}});var k9e=Te((H1r,E9e)=>{"use strict";var LNt=$2(),PNt=XOe(),S9e=YOe(),zNt=y9e(),INt=kY(),RNt=T9e(),DNt=Function.prototype.bind,FNt=Object.defineProperty,BNt=Object.prototype.hasOwnProperty,M9e;M9e=function(e,t,r){var n=PNt(t)&&S9e(t.value),i;return i=zNt(t),delete i.writable,delete i.value,i.get=function(){return!r.overwriteDefinition&&BNt.call(this,e)?n:(t.value=DNt.call(n,r.resolveContext?r.resolveContext(this):this),FNt(this,e,t),this[e])},i};E9e.exports=function(e){var t=INt(arguments[1]);return LNt(t.resolveContext)&&S9e(t.resolveContext),RNt(e,function(r,n){return M9e(n,r,t)})}});var OY=Te((W1r,z9e)=>{"use strict";var ONt=DOe(),qNt=s8(),NNt=uS(),UNt=i1(),Bv=n1(),VNt=k9e(),C9e=ux(),L9e=Object.defineProperty,P9e=Object.defineProperties,yk;z9e.exports=yk=function(e,t){if(!(this instanceof yk))throw new TypeError("Constructor requires 'new'");P9e(this,{__list__:Bv("w",UNt(e)),__context__:Bv("w",t),__nextIndex__:Bv("w",0)}),t&&(NNt(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))};delete yk.prototype.constructor;P9e(yk.prototype,qNt({_next:Bv(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){L9e(this,"__redo__",Bv("c",[e]));return}this.__redo__.forEach(function(t,r){t>=e&&(this.__redo__[r]=++t)},this),this.__redo__.push(e)}}),_onDelete:Bv(function(e){var t;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(t=this.__redo__.indexOf(e),t!==-1&&this.__redo__.splice(t,1),this.__redo__.forEach(function(r,n){r>e&&(this.__redo__[n]=--r)},this)))}),_onClear:Bv(function(){this.__redo__&&ONt.call(this.__redo__),this.__nextIndex__=0})})));L9e(yk.prototype,C9e.iterator,Bv(function(){return this}))});var B9e=Te((j1r,F9e)=>{"use strict";var I9e=a8(),R9e=LY(),qY=n1(),GNt=ux(),NY=OY(),D9e=Object.defineProperty,fS;fS=F9e.exports=function(e,t){if(!(this instanceof fS))throw new TypeError("Constructor requires 'new'");NY.call(this,e),t?R9e.call(t,"key+value")?t="key+value":R9e.call(t,"key")?t="key":t="value":t="value",D9e(this,"__kind__",qY("",t))};I9e&&I9e(fS,NY);delete fS.prototype.constructor;fS.prototype=Object.create(NY.prototype,{_resolve:qY(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});D9e(fS.prototype,GNt.toStringTag,qY("c","Array Iterator"))});var U9e=Te((X1r,N9e)=>{"use strict";var O9e=a8(),c8=n1(),HNt=ux(),UY=OY(),q9e=Object.defineProperty,cS;cS=N9e.exports=function(e){if(!(this instanceof cS))throw new TypeError("Constructor requires 'new'");e=String(e),UY.call(this,e),q9e(this,"__length__",c8("",e.length))};O9e&&O9e(cS,UY);delete cS.prototype.constructor;cS.prototype=Object.create(UY.prototype,{_next:c8(function(){if(this.__list__){if(this.__nextIndex__=55296&&r<=56319?t+this.__list__[this.__nextIndex__++]:t)})});q9e(cS.prototype,HNt.toStringTag,c8("c","String Iterator"))});var G9e=Te((Z1r,V9e)=>{"use strict";var WNt=dk(),jNt=lx(),XNt=pk(),ZNt=ux().iterator,YNt=Array.isArray;V9e.exports=function(e){return jNt(e)?YNt(e)||XNt(e)||WNt(e)?!0:typeof e[ZNt]=="function":!1}});var W9e=Te((Y1r,H9e)=>{"use strict";var KNt=G9e();H9e.exports=function(e){if(!KNt(e))throw new TypeError(e+" is not iterable");return e}});var VY=Te((K1r,Z9e)=>{"use strict";var JNt=dk(),$Nt=pk(),j9e=B9e(),QNt=U9e(),e7t=W9e(),X9e=ux().iterator;Z9e.exports=function(e){return typeof e7t(e)[X9e]=="function"?e[X9e]():JNt(e)?new j9e(e):$Nt(e)?new QNt(e):new j9e(e)}});var K9e=Te((J1r,Y9e)=>{"use strict";var t7t=dk(),r7t=uS(),i7t=pk(),n7t=VY(),a7t=Array.isArray,GY=Function.prototype.call,o7t=Array.prototype.some;Y9e.exports=function(e,t){var r,n=arguments[2],i,a,o,s,u,l,f;if(a7t(e)||t7t(e)?r="array":i7t(e)?r="string":e=n7t(e),r7t(t),a=function(){o=!0},r==="array"){o7t.call(e,function(c){return GY.call(t,n,c,a),o});return}if(r==="string"){for(u=e.length,s=0;s=55296&&f<=56319&&(l+=e[++s])),GY.call(t,n,l,a),!o);++s);return}for(i=e.next();!i.done;){if(GY.call(t,n,i.value,a),o)return;i=e.next()}}});var $9e=Te(($1r,J9e)=>{"use strict";J9e.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()});var tqe=Te((Q1r,eqe)=>{"use strict";var s7t=lx(),d8=a8(),h8=kBe(),l7t=i1(),u7t=LBe(),a1=n1(),f7t=VY(),c7t=K9e(),h7t=ux().toStringTag,Q9e=$9e(),d7t=Array.isArray,WY=Object.defineProperty,HY=Object.prototype.hasOwnProperty,p7t=Object.getPrototypeOf,fx;eqe.exports=fx=function(){var e=arguments[0],t;if(!(this instanceof fx))throw new TypeError("Constructor requires 'new'");return t=Q9e&&d8&&WeakMap!==fx?d8(new WeakMap,p7t(this)):this,s7t(e)&&(d7t(e)||(e=f7t(e))),WY(t,"__weakMapData__",a1("c","$weakMap$"+u7t())),e&&c7t(e,function(r){l7t(r),t.set(r[0],r[1])}),t};Q9e&&(d8&&d8(fx,WeakMap),fx.prototype=Object.create(WeakMap.prototype,{constructor:a1(fx)}));Object.defineProperties(fx.prototype,{delete:a1(function(e){return HY.call(h8(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:a1(function(e){if(HY.call(h8(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:a1(function(e){return HY.call(h8(e),this.__weakMapData__)}),set:a1(function(e,t){return WY(h8(e),this.__weakMapData__,a1("c",t)),this}),toString:a1(function(){return"[object WeakMap]"})});WY(fx.prototype,h7t,a1("c","WeakMap"))});var jY=Te((e_r,rqe)=>{"use strict";rqe.exports=vBe()()?WeakMap:tqe()});var nqe=Te((t_r,iqe)=>{"use strict";iqe.exports=function(e,t,r){if(typeof Array.prototype.findIndex=="function")return e.findIndex(t,r);if(typeof t!="function")throw new TypeError("predicate must be a function");var n=Object(e),i=n.length;if(i===0)return-1;for(var a=0;a{"use strict";var p8=$_(),v7t=W2(),ZY=Uh(),m7t=Xy(),y7t=j2(),aqe=cBe(),g7t=dBe(),{float32:_7t,fract32:XY}=KF(),x7t=jY(),oqe=eS(),b7t=nqe(),w7t=` +`]),aBe&&(p.frag=p.frag.replace("smoothstep","smoothStep"),d.frag=d.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(p)}op.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4};op.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};op.prototype.draw=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;nre)?N.tree=F9t(H,{bounds:pe}):re&&re.length&&(N.tree=re),N.tree){var te={primitive:"points",usage:"static",data:N.tree,type:"uint32"};N.elements?N.elements(te):N.elements=o.elements(te)}var ke=$F.float32(H);ae({data:ke,usage:"dynamic"});var Ee=$F.fract32(H,ke);return be({data:Ee,usage:"dynamic"}),Ce({data:new Uint8Array(Le),type:"uint8",usage:"stream"}),H}},{marker:function(H,N,W){var re=N.activation;if(re.forEach(function(Ee){return Ee&&Ee.destroy&&Ee.destroy()}),re.length=0,!H||typeof H[0]=="number"){var ae=e.addMarker(H);re[ae]=!0}else{for(var be=[],Ce=0,Le=Math.min(H.length,N.count);Ce=0)return i;var a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(var o=0,s=e.length;on*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};op.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,r=this.paletteTexture,n=Math.ceil(e.length*.25/t);if(n>1){e=e.slice();for(var i=e.length*.25%t;i{"use strict";AY.exports=t8;AY.exports.default=t8;function t8(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=uBe(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var s,u,l,f,c,h,d;if(n&&(a=Z9t(e,t,a,r)),e.length>80*r){s=l=e[0],u=f=e[1];for(var p=r;pl&&(l=c),h>f&&(f=h);d=Math.max(l-s,f-u),d=d!==0?32767/d:0}return hk(a,o,r,s,u,d,0),o}function uBe(e,t,r,n,i){var a,o;if(i===wY(e,t,r,n)>0)for(a=t;a=t;a-=n)o=lBe(a,e[a],e[a+1],o);return o&&r8(o,o.next)&&(pk(o),o=o.next),o}function J2(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(r8(r,r.next)||Mh(r.prev,r,r.next)===0)){if(pk(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function hk(e,t,r,n,i,a,o){if(e){!o&&a&&Q9t(e,n,i,a);for(var s=e,u,l;e.prev!==e.next;){if(u=e.prev,l=e.next,a?W9t(e,n,i,a):H9t(e)){t.push(u.i/r|0),t.push(e.i/r|0),t.push(l.i/r|0),pk(e),e=l.next,s=l.next;continue}if(e=l,e===s){o?o===1?(e=j9t(J2(e),t,r),hk(e,t,r,n,i,a,2)):o===2&&X9t(e,t,r,n,i,a):hk(J2(e),t,r,n,i,a,1);break}}}}function H9t(e){var t=e.prev,r=e,n=e.next;if(Mh(t,r,n)>=0)return!1;for(var i=t.x,a=r.x,o=n.x,s=t.y,u=r.y,l=n.y,f=ia?i>o?i:o:a>o?a:o,d=s>u?s>l?s:l:u>l?u:l,p=n.next;p!==t;){if(p.x>=f&&p.x<=h&&p.y>=c&&p.y<=d&&sS(i,s,a,u,o,l,p.x,p.y)&&Mh(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function W9t(e,t,r,n){var i=e.prev,a=e,o=e.next;if(Mh(i,a,o)>=0)return!1;for(var s=i.x,u=a.x,l=o.x,f=i.y,c=a.y,h=o.y,d=su?s>l?s:l:u>l?u:l,b=f>c?f>h?f:h:c>h?c:h,v=xY(d,p,t,r,n),k=xY(x,b,t,r,n),E=e.prevZ,T=e.nextZ;E&&E.z>=v&&T&&T.z<=k;){if(E.x>=d&&E.x<=x&&E.y>=p&&E.y<=b&&E!==i&&E!==o&&sS(s,f,u,c,l,h,E.x,E.y)&&Mh(E.prev,E,E.next)>=0||(E=E.prevZ,T.x>=d&&T.x<=x&&T.y>=p&&T.y<=b&&T!==i&&T!==o&&sS(s,f,u,c,l,h,T.x,T.y)&&Mh(T.prev,T,T.next)>=0))return!1;T=T.nextZ}for(;E&&E.z>=v;){if(E.x>=d&&E.x<=x&&E.y>=p&&E.y<=b&&E!==i&&E!==o&&sS(s,f,u,c,l,h,E.x,E.y)&&Mh(E.prev,E,E.next)>=0)return!1;E=E.prevZ}for(;T&&T.z<=k;){if(T.x>=d&&T.x<=x&&T.y>=p&&T.y<=b&&T!==i&&T!==o&&sS(s,f,u,c,l,h,T.x,T.y)&&Mh(T.prev,T,T.next)>=0)return!1;T=T.nextZ}return!0}function j9t(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!r8(i,a)&&fBe(i,n,n.next,a)&&dk(i,a)&&dk(a,i)&&(t.push(i.i/r|0),t.push(n.i/r|0),t.push(a.i/r|0),pk(n),pk(n.next),n=e=a),n=n.next}while(n!==e);return J2(n)}function X9t(e,t,r,n,i,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&rqt(o,s)){var u=cBe(o,s);o=J2(o,o.next),u=J2(u,u.next),hk(o,t,r,n,i,a,0),hk(u,t,r,n,i,a,0);return}s=s.next}o=o.next}while(o!==e)}function Z9t(e,t,r,n){var i=[],a,o,s,u,l;for(a=0,o=t.length;a=r.next.y&&r.next.y!==r.y){var s=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=n&&s>a&&(a=s,o=r.x=r.x&&r.x>=l&&n!==r.x&&sS(io.x||r.x===o.x&&$9t(o,r)))&&(o=r,c=h)),r=r.next;while(r!==u);return o}function $9t(e,t){return Mh(e.prev,e,t.prev)<0&&Mh(t.next,e,e.next)<0}function Q9t(e,t,r,n){var i=e;do i.z===0&&(i.z=xY(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,eqt(i)}function eqt(e){var t,r,n,i,a,o,s,u,l=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,s=0,t=0;t0||u>0&&n;)s!==0&&(u===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,u--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,l*=2}while(o>1);return e}function xY(e,t,r,n,i){return e=(e-r)*i|0,t=(t-n)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function tqt(e){var t=e,r=e;do(t.x=(e-o)*(a-s)&&(e-o)*(n-s)>=(r-o)*(t-s)&&(r-o)*(a-s)>=(i-o)*(n-s)}function rqt(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!iqt(e,t)&&(dk(e,t)&&dk(t,e)&&nqt(e,t)&&(Mh(e.prev,e,t.prev)||Mh(e,t.prev,t))||r8(e,t)&&Mh(e.prev,e,e.next)>0&&Mh(t.prev,t,t.next)>0)}function Mh(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function r8(e,t){return e.x===t.x&&e.y===t.y}function fBe(e,t,r,n){var i=e8(Mh(e,t,r)),a=e8(Mh(e,t,n)),o=e8(Mh(r,n,e)),s=e8(Mh(r,n,t));return!!(i!==a&&o!==s||i===0&&QF(e,r,t)||a===0&&QF(e,n,t)||o===0&&QF(r,e,n)||s===0&&QF(r,t,n))}function QF(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function e8(e){return e>0?1:e<0?-1:0}function iqt(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&fBe(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function dk(e,t){return Mh(e.prev,e,e.next)<0?Mh(e,t,e.next)>=0&&Mh(e,e.prev,t)>=0:Mh(e,t,e.prev)<0||Mh(e,e.next,t)<0}function nqt(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function cBe(e,t){var r=new bY(e.i,e.x,e.y),n=new bY(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function lBe(e,t,r,n){var i=new bY(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function pk(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function bY(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}t8.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(wY(e,0,a,r));if(i)for(var s=0,u=t.length;s0&&(n+=e[i-1].length,r.holes.push(n))}return r}});var pBe=Te((Ngr,dBe)=>{"use strict";var aqt=W2();dBe.exports=oqt;function oqt(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=aqt(e,t));for(var n=0;n{"use strict";vBe.exports=function(){var e,t;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch(r){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(t)!=="one")}});var gBe=Te((Vgr,yBe)=>{"use strict";yBe.exports=function(){}});var lx=Te((Ggr,_Be)=>{"use strict";var sqt=gBe()();_Be.exports=function(e){return e!==sqt&&e!==null}});var TY=Te((Hgr,bBe)=>{"use strict";var lqt=Object.create,uqt=Object.getPrototypeOf,xBe={};bBe.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||lqt;return typeof e!="function"?!1:uqt(e(t(null),xBe))===xBe}});var SY=Te((Wgr,wBe)=>{"use strict";var fqt=lx(),cqt={function:!0,object:!0};wBe.exports=function(e){return fqt(e)&&cqt[typeof e]||!1}});var i1=Te((jgr,ABe)=>{"use strict";var hqt=lx();ABe.exports=function(e){if(!hqt(e))throw new TypeError("Cannot use null or undefined");return e}});var SBe=Te((Xgr,TBe)=>{"use strict";var MY=Object.create,i8;TY()()||(i8=EY());TBe.exports=function(){var e,t,r;return!i8||i8.level!==1?MY:(e={},t={},r={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(n){if(n==="__proto__"){t[n]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}t[n]=r}),Object.defineProperties(e,t),Object.defineProperty(i8,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(n,i){return MY(n===null?e:n,i)})}()});var EY=Te((Zgr,MBe)=>{"use strict";var dqt=SY(),pqt=i1(),vqt=Object.prototype.isPrototypeOf,mqt=Object.defineProperty,yqt={configurable:!0,enumerable:!1,writable:!0,value:void 0},n8;n8=function(e,t){if(pqt(e),t===null||dqt(t))return e;throw new TypeError("Prototype must be null or an object")};MBe.exports=function(e){var t,r;return e?(e.level===2?e.set?(r=e.set,t=function(n,i){return r.call(n8(n,i),i),n}):t=function(n,i){return n8(n,i).__proto__=i,n}:t=function n(i,a){var o;return n8(i,a),o=vqt.call(n.nullPolyfill,i),o&&delete n.nullPolyfill.__proto__,a===null&&(a=n.nullPolyfill),i.__proto__=a,o&&mqt(n.nullPolyfill,"__proto__",yqt),i},Object.defineProperty(t,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null}(function(){var e=Object.create(null),t={},r,n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(n){try{r=n.set,r.call(e,t)}catch(i){}if(Object.getPrototypeOf(e)===t)return{set:r,level:2}}return e.__proto__=t,Object.getPrototypeOf(e)===t?{level:2}:(e={},e.__proto__=t,Object.getPrototypeOf(e)===t?{level:1}:!1)}());SBe()});var a8=Te((Ygr,EBe)=>{"use strict";EBe.exports=TY()()?Object.setPrototypeOf:EY()});var CBe=Te((Kgr,kBe)=>{"use strict";var gqt=SY();kBe.exports=function(e){if(!gqt(e))throw new TypeError(e+" is not an Object");return e}});var PBe=Te((Jgr,LBe)=>{"use strict";var _qt=Object.create(null),xqt=Math.random;LBe.exports=function(){var e;do e=xqt().toString(36).slice(2);while(_qt[e]);return e}});var $2=Te(($gr,zBe)=>{"use strict";var bqt=void 0;zBe.exports=function(e){return e!==bqt&&e!==null}});var o8=Te((Qgr,IBe)=>{"use strict";var wqt=$2(),Aqt={object:!0,function:!0,undefined:!0};IBe.exports=function(e){return wqt(e)?hasOwnProperty.call(Aqt,typeof e):!1}});var DBe=Te((e1r,RBe)=>{"use strict";var Tqt=o8();RBe.exports=function(e){if(!Tqt(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(t){return!1}}});var BBe=Te((t1r,FBe)=>{"use strict";var Sqt=DBe();FBe.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(t){return!1}return!Sqt(e)}});var kY=Te((r1r,OBe)=>{"use strict";var Mqt=BBe(),Eqt=/^\s*class[\s{/}]/,kqt=Function.prototype.toString;OBe.exports=function(e){return!(!Mqt(e)||Eqt.test(kqt.call(e)))}});var NBe=Te((i1r,qBe)=>{"use strict";qBe.exports=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}});var VBe=Te((n1r,UBe)=>{"use strict";UBe.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var HBe=Te((a1r,GBe)=>{"use strict";var Cqt=lx(),Lqt=Object.keys;GBe.exports=function(e){return Lqt(Cqt(e)?Object(e):e)}});var jBe=Te((o1r,WBe)=>{"use strict";WBe.exports=VBe()()?Object.keys:HBe()});var ZBe=Te((s1r,XBe)=>{"use strict";var Pqt=jBe(),zqt=i1(),Iqt=Math.max;XBe.exports=function(e,t){var r,n,i=Iqt(arguments.length,2),a;for(e=Object(zqt(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},n=1;n{"use strict";YBe.exports=NBe()()?Object.assign:ZBe()});var CY=Te((u1r,KBe)=>{"use strict";var Rqt=lx(),Dqt=Array.prototype.forEach,Fqt=Object.create,Bqt=function(e,t){var r;for(r in e)t[r]=e[r]};KBe.exports=function(e){var t=Fqt(null);return Dqt.call(arguments,function(r){Rqt(r)&&Bqt(Object(r),t)}),t}});var $Be=Te((f1r,JBe)=>{"use strict";var LY="razdwatrzy";JBe.exports=function(){return typeof LY.contains!="function"?!1:LY.contains("dwa")===!0&&LY.contains("foo")===!1}});var eOe=Te((c1r,QBe)=>{"use strict";var Oqt=String.prototype.indexOf;QBe.exports=function(e){return Oqt.call(this,e,arguments[1])>-1}});var PY=Te((h1r,tOe)=>{"use strict";tOe.exports=$Be()()?String.prototype.contains:eOe()});var n1=Te((d1r,aOe)=>{"use strict";var l8=$2(),rOe=kY(),iOe=s8(),nOe=CY(),vk=PY(),qqt=aOe.exports=function(e,t){var r,n,i,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],l8(e)?(r=vk.call(e,"c"),n=vk.call(e,"e"),i=vk.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?iOe(nOe(a),o):o};qqt.gs=function(e,t,r){var n,i,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],l8(t)?rOe(t)?l8(r)?rOe(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,l8(e)?(n=vk.call(e,"c"),i=vk.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?iOe(nOe(a),o):o}});var mk=Te((p1r,sOe)=>{"use strict";var oOe=Object.prototype.toString,Nqt=oOe.call(function(){return arguments}());sOe.exports=function(e){return oOe.call(e)===Nqt}});var yk=Te((v1r,uOe)=>{"use strict";var lOe=Object.prototype.toString,Uqt=lOe.call("");uOe.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||lOe.call(e)===Uqt)||!1}});var cOe=Te((m1r,fOe)=>{"use strict";fOe.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var pOe=Te((y1r,dOe)=>{var hOe=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};dOe.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return hOe()}try{return __global__||hOe()}finally{delete Object.prototype.__global__}}()});var gk=Te((g1r,vOe)=>{"use strict";vOe.exports=cOe()()?globalThis:pOe()});var yOe=Te((_1r,mOe)=>{"use strict";var Vqt=gk(),zY={object:!0,symbol:!0};mOe.exports=function(){var e=Vqt.Symbol,t;if(typeof e!="function")return!1;t=e("test symbol");try{String(t)}catch(r){return!1}return!(!zY[typeof e.iterator]||!zY[typeof e.toPrimitive]||!zY[typeof e.toStringTag])}});var _Oe=Te((x1r,gOe)=>{"use strict";gOe.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var IY=Te((b1r,xOe)=>{"use strict";var Gqt=_Oe();xOe.exports=function(e){if(!Gqt(e))throw new TypeError(e+" is not a symbol");return e}});var SOe=Te((w1r,TOe)=>{"use strict";var bOe=n1(),Hqt=Object.create,wOe=Object.defineProperty,Wqt=Object.prototype,AOe=Hqt(null);TOe.exports=function(e){for(var t=0,r,n;AOe[e+(t||"")];)++t;return e+=t||"",AOe[e]=!0,r="@@"+e,wOe(Wqt,r,bOe.gs(null,function(i){n||(n=!0,wOe(this,r,bOe(i)),n=!1)})),r}});var EOe=Te((A1r,MOe)=>{"use strict";var Qm=n1(),Vh=gk().Symbol;MOe.exports=function(e){return Object.defineProperties(e,{hasInstance:Qm("",Vh&&Vh.hasInstance||e("hasInstance")),isConcatSpreadable:Qm("",Vh&&Vh.isConcatSpreadable||e("isConcatSpreadable")),iterator:Qm("",Vh&&Vh.iterator||e("iterator")),match:Qm("",Vh&&Vh.match||e("match")),replace:Qm("",Vh&&Vh.replace||e("replace")),search:Qm("",Vh&&Vh.search||e("search")),species:Qm("",Vh&&Vh.species||e("species")),split:Qm("",Vh&&Vh.split||e("split")),toPrimitive:Qm("",Vh&&Vh.toPrimitive||e("toPrimitive")),toStringTag:Qm("",Vh&&Vh.toStringTag||e("toStringTag")),unscopables:Qm("",Vh&&Vh.unscopables||e("unscopables"))})}});var LOe=Te((T1r,COe)=>{"use strict";var kOe=n1(),jqt=IY(),_k=Object.create(null);COe.exports=function(e){return Object.defineProperties(e,{for:kOe(function(t){return _k[t]?_k[t]:_k[t]=e(String(t))}),keyFor:kOe(function(t){var r;jqt(t);for(r in _k)if(_k[r]===t)return r})})}});var IOe=Te((S1r,zOe)=>{"use strict";var Zy=n1(),RY=IY(),u8=gk().Symbol,Xqt=SOe(),Zqt=EOe(),Yqt=LOe(),Kqt=Object.create,DY=Object.defineProperties,f8=Object.defineProperty,jp,lS,POe;if(typeof u8=="function")try{String(u8()),POe=!0}catch(e){}else u8=null;lS=function(t){if(this instanceof lS)throw new TypeError("Symbol is not a constructor");return jp(t)};zOe.exports=jp=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return POe?u8(t):(r=Kqt(lS.prototype),t=t===void 0?"":String(t),DY(r,{__description__:Zy("",t),__name__:Zy("",Xqt(t))}))};Zqt(jp);Yqt(jp);DY(lS.prototype,{constructor:Zy(jp),toString:Zy("",function(){return this.__name__})});DY(jp.prototype,{toString:Zy(function(){return"Symbol ("+RY(this).__description__+")"}),valueOf:Zy(function(){return RY(this)})});f8(jp.prototype,jp.toPrimitive,Zy("",function(){var e=RY(this);return typeof e=="symbol"?e:e.toString()}));f8(jp.prototype,jp.toStringTag,Zy("c","Symbol"));f8(lS.prototype,jp.toStringTag,Zy("c",jp.prototype[jp.toStringTag]));f8(lS.prototype,jp.toPrimitive,Zy("c",jp.prototype[jp.toPrimitive]))});var ux=Te((M1r,ROe)=>{"use strict";ROe.exports=yOe()()?gk().Symbol:IOe()});var FOe=Te((E1r,DOe)=>{"use strict";var Jqt=i1();DOe.exports=function(){return Jqt(this).length=0,this}});var uS=Te((k1r,BOe)=>{"use strict";BOe.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var qOe=Te((C1r,OOe)=>{"use strict";var $qt=$2(),Qqt=o8(),eNt=Object.prototype.toString;OOe.exports=function(e){if(!$qt(e))return null;if(Qqt(e)){var t=e.toString;if(typeof t!="function"||t===eNt)return null}try{return""+e}catch(r){return null}}});var UOe=Te((L1r,NOe)=>{"use strict";NOe.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}});var GOe=Te((P1r,VOe)=>{"use strict";var tNt=UOe(),rNt=/[\n\r\u2028\u2029]/g;VOe.exports=function(e){var t=tNt(e);return t===null?"":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(rNt,function(r){switch(r){case` +`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),t)}});var FY=Te((z1r,jOe)=>{"use strict";var HOe=$2(),iNt=o8(),nNt=qOe(),aNt=GOe(),WOe=function(e,t){return e.replace("%v",aNt(t))};jOe.exports=function(e,t,r){if(!iNt(r))throw new TypeError(WOe(t,e));if(!HOe(e)){if("default"in r)return r.default;if(r.isOptional)return null}var n=nNt(r.errorMessage);throw HOe(n)||(n=t),new TypeError(WOe(n,e))}});var ZOe=Te((I1r,XOe)=>{"use strict";var oNt=FY(),sNt=$2();XOe.exports=function(e){return sNt(e)?e:oNt(e,"Cannot use %v",arguments[1])}});var KOe=Te((R1r,YOe)=>{"use strict";var lNt=FY(),uNt=kY();YOe.exports=function(e){return uNt(e)?e:lNt(e,"%v is not a plain function",arguments[1])}});var $Oe=Te((D1r,JOe)=>{"use strict";JOe.exports=function(){var e=Array.from,t,r;return typeof e!="function"?!1:(t=["raz","dwa"],r=e(t),!!(r&&r!==t&&r[1]==="dwa"))}});var e9e=Te((F1r,QOe)=>{"use strict";var fNt=Object.prototype.toString,cNt=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);QOe.exports=function(e){return typeof e=="function"&&cNt(fNt.call(e))}});var r9e=Te((B1r,t9e)=>{"use strict";t9e.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var n9e=Te((O1r,i9e)=>{"use strict";i9e.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var o9e=Te((q1r,a9e)=>{"use strict";a9e.exports=r9e()()?Math.sign:n9e()});var l9e=Te((N1r,s9e)=>{"use strict";var hNt=o9e(),dNt=Math.abs,pNt=Math.floor;s9e.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:hNt(e)*pNt(dNt(e)))}});var f9e=Te((U1r,u9e)=>{"use strict";var vNt=l9e(),mNt=Math.max;u9e.exports=function(e){return mNt(0,vNt(e))}});var p9e=Te((V1r,d9e)=>{"use strict";var yNt=ux().iterator,gNt=mk(),_Nt=e9e(),xNt=f9e(),c9e=uS(),bNt=i1(),wNt=lx(),ANt=yk(),h9e=Array.isArray,BY=Function.prototype.call,Q2={configurable:!0,enumerable:!0,writable:!0,value:null},OY=Object.defineProperty;d9e.exports=function(e){var t=arguments[1],r=arguments[2],n,i,a,o,s,u,l,f,c,h;if(e=Object(bNt(e)),wNt(t)&&c9e(t),!this||this===Array||!_Nt(this)){if(!t){if(gNt(e))return s=e.length,s!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(h9e(e)){for(o=new Array(s=e.length),i=0;i=55296&&u<=56319&&(h+=e[++i])),h=t?BY.call(t,r,h,a):h,n?(Q2.value=h,OY(o,a,Q2)):o[a]=h,++a;s=a}}if(s===void 0)for(s=xNt(e.length),n&&(o=new n(s)),i=0;i{"use strict";v9e.exports=$Oe()()?Array.from:p9e()});var g9e=Te((H1r,y9e)=>{"use strict";var TNt=m9e(),SNt=s8(),MNt=i1();y9e.exports=function(e){var t=Object(MNt(e)),r=arguments[1],n=Object(arguments[2]);if(t!==e&&!r)return t;var i={};return r?TNt(r,function(a){(n.ensure||a in e)&&(i[a]=e[a])}):SNt(i,e),i}});var b9e=Te((W1r,x9e)=>{"use strict";var ENt=uS(),kNt=i1(),CNt=Function.prototype.bind,_9e=Function.prototype.call,LNt=Object.keys,PNt=Object.prototype.propertyIsEnumerable;x9e.exports=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(kNt(r)),ENt(n),i=LNt(r),o&&i.sort(typeof o=="function"?CNt.call(o,r):void 0),typeof e!="function"&&(e=i[e]),_9e.call(e,i,function(s,u){return PNt.call(r,s)?_9e.call(n,a,r[s],s,r,u):t})}}});var A9e=Te((j1r,w9e)=>{"use strict";w9e.exports=b9e()("forEach")});var S9e=Te((X1r,T9e)=>{"use strict";var zNt=uS(),INt=A9e(),RNt=Function.prototype.call;T9e.exports=function(e,t){var r={},n=arguments[2];return zNt(t),INt(e,function(i,a,o,s){r[a]=RNt.call(t,n,i,a,o,s)}),r}});var C9e=Te((Z1r,k9e)=>{"use strict";var DNt=$2(),FNt=ZOe(),M9e=KOe(),BNt=g9e(),ONt=CY(),qNt=S9e(),NNt=Function.prototype.bind,UNt=Object.defineProperty,VNt=Object.prototype.hasOwnProperty,E9e;E9e=function(e,t,r){var n=FNt(t)&&M9e(t.value),i;return i=BNt(t),delete i.writable,delete i.value,i.get=function(){return!r.overwriteDefinition&&VNt.call(this,e)?n:(t.value=NNt.call(n,r.resolveContext?r.resolveContext(this):this),UNt(this,e,t),this[e])},i};k9e.exports=function(e){var t=ONt(arguments[1]);return DNt(t.resolveContext)&&M9e(t.resolveContext),qNt(e,function(r,n){return E9e(n,r,t)})}});var qY=Te((Y1r,I9e)=>{"use strict";var GNt=FOe(),HNt=s8(),WNt=uS(),jNt=i1(),Bv=n1(),XNt=C9e(),L9e=ux(),P9e=Object.defineProperty,z9e=Object.defineProperties,xk;I9e.exports=xk=function(e,t){if(!(this instanceof xk))throw new TypeError("Constructor requires 'new'");z9e(this,{__list__:Bv("w",jNt(e)),__context__:Bv("w",t),__nextIndex__:Bv("w",0)}),t&&(WNt(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))};delete xk.prototype.constructor;z9e(xk.prototype,HNt({_next:Bv(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){P9e(this,"__redo__",Bv("c",[e]));return}this.__redo__.forEach(function(t,r){t>=e&&(this.__redo__[r]=++t)},this),this.__redo__.push(e)}}),_onDelete:Bv(function(e){var t;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(t=this.__redo__.indexOf(e),t!==-1&&this.__redo__.splice(t,1),this.__redo__.forEach(function(r,n){r>e&&(this.__redo__[n]=--r)},this)))}),_onClear:Bv(function(){this.__redo__&&GNt.call(this.__redo__),this.__nextIndex__=0})})));P9e(xk.prototype,L9e.iterator,Bv(function(){return this}))});var O9e=Te((K1r,B9e)=>{"use strict";var R9e=a8(),D9e=PY(),NY=n1(),ZNt=ux(),UY=qY(),F9e=Object.defineProperty,fS;fS=B9e.exports=function(e,t){if(!(this instanceof fS))throw new TypeError("Constructor requires 'new'");UY.call(this,e),t?D9e.call(t,"key+value")?t="key+value":D9e.call(t,"key")?t="key":t="value":t="value",F9e(this,"__kind__",NY("",t))};R9e&&R9e(fS,UY);delete fS.prototype.constructor;fS.prototype=Object.create(UY.prototype,{_resolve:NY(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});F9e(fS.prototype,ZNt.toStringTag,NY("c","Array Iterator"))});var V9e=Te((J1r,U9e)=>{"use strict";var q9e=a8(),c8=n1(),YNt=ux(),VY=qY(),N9e=Object.defineProperty,cS;cS=U9e.exports=function(e){if(!(this instanceof cS))throw new TypeError("Constructor requires 'new'");e=String(e),VY.call(this,e),N9e(this,"__length__",c8("",e.length))};q9e&&q9e(cS,VY);delete cS.prototype.constructor;cS.prototype=Object.create(VY.prototype,{_next:c8(function(){if(this.__list__){if(this.__nextIndex__=55296&&r<=56319?t+this.__list__[this.__nextIndex__++]:t)})});N9e(cS.prototype,YNt.toStringTag,c8("c","String Iterator"))});var H9e=Te(($1r,G9e)=>{"use strict";var KNt=mk(),JNt=lx(),$Nt=yk(),QNt=ux().iterator,e7t=Array.isArray;G9e.exports=function(e){return JNt(e)?e7t(e)||$Nt(e)||KNt(e)?!0:typeof e[QNt]=="function":!1}});var j9e=Te((Q1r,W9e)=>{"use strict";var t7t=H9e();W9e.exports=function(e){if(!t7t(e))throw new TypeError(e+" is not iterable");return e}});var GY=Te((e_r,Y9e)=>{"use strict";var r7t=mk(),i7t=yk(),X9e=O9e(),n7t=V9e(),a7t=j9e(),Z9e=ux().iterator;Y9e.exports=function(e){return typeof a7t(e)[Z9e]=="function"?e[Z9e]():r7t(e)?new X9e(e):i7t(e)?new n7t(e):new X9e(e)}});var J9e=Te((t_r,K9e)=>{"use strict";var o7t=mk(),s7t=uS(),l7t=yk(),u7t=GY(),f7t=Array.isArray,HY=Function.prototype.call,c7t=Array.prototype.some;K9e.exports=function(e,t){var r,n=arguments[2],i,a,o,s,u,l,f;if(f7t(e)||o7t(e)?r="array":l7t(e)?r="string":e=u7t(e),s7t(t),a=function(){o=!0},r==="array"){c7t.call(e,function(c){return HY.call(t,n,c,a),o});return}if(r==="string"){for(u=e.length,s=0;s=55296&&f<=56319&&(l+=e[++s])),HY.call(t,n,l,a),!o);++s);return}for(i=e.next();!i.done;){if(HY.call(t,n,i.value,a),o)return;i=e.next()}}});var Q9e=Te((r_r,$9e)=>{"use strict";$9e.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()});var rqe=Te((i_r,tqe)=>{"use strict";var h7t=lx(),d8=a8(),h8=CBe(),d7t=i1(),p7t=PBe(),a1=n1(),v7t=GY(),m7t=J9e(),y7t=ux().toStringTag,eqe=Q9e(),g7t=Array.isArray,jY=Object.defineProperty,WY=Object.prototype.hasOwnProperty,_7t=Object.getPrototypeOf,fx;tqe.exports=fx=function(){var e=arguments[0],t;if(!(this instanceof fx))throw new TypeError("Constructor requires 'new'");return t=eqe&&d8&&WeakMap!==fx?d8(new WeakMap,_7t(this)):this,h7t(e)&&(g7t(e)||(e=v7t(e))),jY(t,"__weakMapData__",a1("c","$weakMap$"+p7t())),e&&m7t(e,function(r){d7t(r),t.set(r[0],r[1])}),t};eqe&&(d8&&d8(fx,WeakMap),fx.prototype=Object.create(WeakMap.prototype,{constructor:a1(fx)}));Object.defineProperties(fx.prototype,{delete:a1(function(e){return WY.call(h8(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:a1(function(e){if(WY.call(h8(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:a1(function(e){return WY.call(h8(e),this.__weakMapData__)}),set:a1(function(e,t){return jY(h8(e),this.__weakMapData__,a1("c",t)),this}),toString:a1(function(){return"[object WeakMap]"})});jY(fx.prototype,y7t,a1("c","WeakMap"))});var XY=Te((n_r,iqe)=>{"use strict";iqe.exports=mBe()()?WeakMap:rqe()});var aqe=Te((a_r,nqe)=>{"use strict";nqe.exports=function(e,t,r){if(typeof Array.prototype.findIndex=="function")return e.findIndex(t,r);if(typeof t!="function")throw new TypeError("predicate must be a function");var n=Object(e),i=n.length;if(i===0)return-1;for(var a=0;a{"use strict";var p8=$_(),x7t=W2(),YY=Uh(),b7t=Xy(),w7t=j2(),oqe=hBe(),A7t=pBe(),{float32:T7t,fract32:ZY}=KF(),S7t=XY(),sqe=eS(),M7t=aqe(),E7t=` precision highp float; attribute vec2 aCoord, bCoord, aCoordFract, bCoordFract; @@ -2247,7 +2247,7 @@ void main() { fragColor = color / 255.; } -`,A7t=` +`,k7t=` precision highp float; uniform float dashLength, pixelRatio, thickness, opacity, id; @@ -2265,7 +2265,7 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= alpha * opacity * dash; } -`,T7t=` +`,C7t=` precision highp float; attribute vec2 position, positionFract; @@ -2293,14 +2293,14 @@ void main() { fragColor = color / 255.; fragColor.a *= opacity; } -`,S7t=` +`,L7t=` precision highp float; varying vec4 fragColor; void main() { gl_FragColor = fragColor; } -`,M7t=` +`,P7t=` precision highp float; attribute vec2 aCoord, bCoord, nextCoord, prevCoord; @@ -2504,7 +2504,7 @@ void main() { } } } -`,E7t=` +`,z7t=` precision highp float; uniform float dashLength, pixelRatio, thickness, opacity, id, miterMode; @@ -2584,7 +2584,7 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= alpha * opacity * dash; } -`;sqe.exports=Bc;function Bc(e,t){if(!(this instanceof Bc))return new Bc(e,t);if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=Bc.shaders.has(e)?Bc.shaders.get(e):Bc.shaders.set(e,Bc.createShaders(e)).get(e),this.update(t)}Bc.dashMult=2;Bc.maxPatternLength=256;Bc.precisionThreshold=3e6;Bc.maxPoints=1e4;Bc.maxLines=2048;Bc.shaders=new x7t;Bc.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,s)=>s.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,s)=>!s.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(ZY({vert:w7t,frag:A7t,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r)),i;try{i=e(ZY({cull:{enable:!0,face:"back"},vert:M7t,frag:E7t,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch(o){i=n}return{fill:e({primitive:"triangle",elements:(o,s)=>s.triangles,offset:0,vert:T7t,frag:S7t,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:n,miter:i}};Bc.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};Bc.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Bc.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((t,r)=>{if(t&&Array.isArray(t))return this.draw(...t);typeof t=="number"&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>Bc.precisionThreshold||t.scale[1]*t.viewport.height>Bc.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=Bc.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};Bc.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((i,a)=>{let o=this.passes[a];if(i!==void 0){if(i===null){this.passes[a]=null;return}if(typeof i[0]=="number"&&(i={positions:i}),i=m7t(i,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},i=ZY({},Bc.defaults,i)),i.thickness!=null&&(o.thickness=parseFloat(i.thickness)),i.opacity!=null&&(o.opacity=parseFloat(i.opacity)),i.miterLimit!=null&&(o.miterLimit=parseFloat(i.miterLimit)),i.overlay!=null&&(o.overlay=!!i.overlay,aL-_),k=[],E=0,T=o.hole!=null?o.hole[0]:null;if(T!=null){let L=b7t(v,_=>_>=T);v=v.slice(0,L),v.push(T)}for(let L=0;Lm-T+(v[L]-E)),S=aqe(_,C);S=S.map(m=>m+E+(m+E{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var hqe=Te((i_r,cqe)=>{"use strict";var k7t=W2(),C7t=$_(),L7t=mY(),P7t=Xy(),lqe=Uh(),uqe=j2(),{float32:z7t,fract32:KY}=KF();cqe.exports=I7t;var fqe=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function I7t(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,n,i,a,o,s,u,l={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},f=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),u=e.buffer({usage:"static",type:"float",data:fqe}),p(t),n=e({vert:` +`;lqe.exports=Bc;function Bc(e,t){if(!(this instanceof Bc))return new Bc(e,t);if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=Bc.shaders.has(e)?Bc.shaders.get(e):Bc.shaders.set(e,Bc.createShaders(e)).get(e),this.update(t)}Bc.dashMult=2;Bc.maxPatternLength=256;Bc.precisionThreshold=3e6;Bc.maxPoints=1e4;Bc.maxLines=2048;Bc.shaders=new S7t;Bc.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,s)=>s.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,s)=>!s.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(YY({vert:E7t,frag:k7t,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r)),i;try{i=e(YY({cull:{enable:!0,face:"back"},vert:P7t,frag:z7t,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch(o){i=n}return{fill:e({primitive:"triangle",elements:(o,s)=>s.triangles,offset:0,vert:C7t,frag:L7t,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:n,miter:i}};Bc.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};Bc.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Bc.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((t,r)=>{if(t&&Array.isArray(t))return this.draw(...t);typeof t=="number"&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>Bc.precisionThreshold||t.scale[1]*t.viewport.height>Bc.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=Bc.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};Bc.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((i,a)=>{let o=this.passes[a];if(i!==void 0){if(i===null){this.passes[a]=null;return}if(typeof i[0]=="number"&&(i={positions:i}),i=b7t(i,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},i=YY({},Bc.defaults,i)),i.thickness!=null&&(o.thickness=parseFloat(i.thickness)),i.opacity!=null&&(o.opacity=parseFloat(i.opacity)),i.miterLimit!=null&&(o.miterLimit=parseFloat(i.miterLimit)),i.overlay!=null&&(o.overlay=!!i.overlay,aL-_),k=[],E=0,T=o.hole!=null?o.hole[0]:null;if(T!=null){let L=M7t(v,_=>_>=T);v=v.slice(0,L),v.push(T)}for(let L=0;Lm-T+(v[L]-E)),S=oqe(_,C);S=S.map(m=>m+E+(m+E{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var dqe=Te((s_r,hqe)=>{"use strict";var I7t=W2(),R7t=$_(),D7t=yY(),F7t=Xy(),uqe=Uh(),fqe=j2(),{float32:B7t,fract32:JY}=KF();hqe.exports=O7t;var cqe=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function O7t(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,n,i,a,o,s,u,l={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},f=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),u=e.buffer({usage:"static",type:"float",data:cqe}),p(t),n=e({vert:` precision highp float; attribute vec2 position, positionFract; @@ -2628,10 +2628,10 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= opacity; } - `,uniforms:{range:e.prop("range"),lineWidth:e.prop("lineWidth"),capSize:e.prop("capSize"),opacity:e.prop("opacity"),scale:e.prop("scale"),translate:e.prop("translate"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),viewport:(b,v)=>[v.viewport.x,v.viewport.y,b.viewportWidth,b.viewportHeight]},attributes:{color:{buffer:o,offset:(b,v)=>v.offset*4,divisor:1},position:{buffer:i,offset:(b,v)=>v.offset*8,divisor:1},positionFract:{buffer:a,offset:(b,v)=>v.offset*8,divisor:1},error:{buffer:s,offset:(b,v)=>v.offset*16,divisor:1},direction:{buffer:u,stride:24,offset:0},lineOffset:{buffer:u,stride:24,offset:8},capOffset:{buffer:u,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:fqe.length}),lqe(c,{update:p,draw:h,destroy:x,regl:e,gl:r,canvas:r.canvas,groups:f}),c;function c(b){b?p(b):b===null&&x(),h()}function h(b){if(typeof b=="number")return d(b);b&&!Array.isArray(b)&&(b=[b]),e._refresh(),f.forEach((v,k)=>{if(v){if(b&&(b[k]?v.draw=!0:v.draw=!1),!v.draw){v.draw=!0;return}d(k)}})}function d(b){typeof b=="number"&&(b=f[b]),b!=null&&b&&b.count&&b.color&&b.opacity&&b.positions&&b.positions.length>1&&(b.scaleRatio=[b.scale[0]*b.viewport.width,b.scale[1]*b.viewport.height],n(b),b.after&&b.after(b))}function p(b){if(!b)return;b.length!=null?typeof b[0]=="number"&&(b=[{positions:b}]):Array.isArray(b)||(b=[b]);let v=0,k=0;if(c.groups=f=b.map((L,_)=>{let C=f[_];if(L)typeof L=="function"?L={after:L}:typeof L[0]=="number"&&(L={positions:L});else return C;return L=P7t(L,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),C||(f[_]=C={id:_,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},L=lqe({},l,L)),L7t(C,L,[{lineWidth:S=>+S*.5,capSize:S=>+S*.5,opacity:parseFloat,errors:S=>(S=uqe(S),k+=S.length,S),positions:(S,m)=>(S=uqe(S,"float64"),m.count=Math.floor(S.length/2),m.bounds=k7t(S,2),m.offset=v,v+=m.count,S)},{color:(S,m)=>{let P=m.count;if(S||(S="transparent"),!Array.isArray(S)||typeof S[0]=="number"){let B=S;S=Array(P);for(let F=0;F{let A=m.bounds;return S||(S=A),m.scale=[1/(S[2]-S[0]),1/(S[3]-S[1])],m.translate=[-S[0],-S[1]],m.scaleFract=KY(m.scale),m.translateFract=KY(m.translate),S},viewport:S=>{let m;return Array.isArray(S)?m={x:S[0],y:S[1],width:S[2]-S[0],height:S[3]-S[1]}:S?(m={x:S.x||S.left||0,y:S.y||S.top||0},S.right?m.width=S.right-m.x:m.width=S.w||S.width||0,S.bottom?m.height=S.bottom-m.y:m.height=S.h||S.height||0):m={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},m}}]),C}),v||k){let L=f.reduce((m,P,A)=>m+(P?P.count:0),0),_=new Float64Array(L*2),C=new Uint8Array(L*4),S=new Float32Array(L*4);f.forEach((m,P)=>{if(!m)return;let{positions:A,count:B,offset:F,color:U,errors:G}=m;B&&(C.set(U,F*4),S.set(G,F*4),_.set(A,F*2))});var E=z7t(_);i(E);var T=KY(_,E);a(T),o(C),s(S)}}function x(){i.destroy(),a.destroy(),o.destroy(),s.destroy(),u.destroy()}}});var vqe=Te((n_r,pqe)=>{var dqe=/[\'\"]/;pqe.exports=function(t){return t?(dqe.test(t.charAt(0))&&(t=t.substr(1)),dqe.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}});var JY=Te(()=>{});var $Y=Te(()=>{});var QY=Te(()=>{});var eK=Te(()=>{});var tK=Te(()=>{});var _qe=Te((v_r,gqe)=>{"use strict";function mqe(e,t){if(typeof e!="string")return[e];var r=[e];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var n=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],i=t.escape||"___",a=!!t.flat;n.forEach(function(u){var l=new RegExp(["\\",u[0],"[^\\",u[0],"\\",u[1],"]*\\",u[1]].join("")),f=[];function c(h,d,p){var x=r.push(h.slice(u[0].length,-u[1].length))-1;return f.push(x),i+x+i}r.forEach(function(h,d){for(var p,x=0;h!=p;)if(p=h,h=h.replace(l,c),x++>1e4)throw Error("References have circular dependency. Please, check them.");r[d]=h}),f=f.reverse(),r=r.map(function(h){return f.forEach(function(d){h=h.replace(new RegExp("(\\"+i+d+"\\"+i+")","g"),u[0]+"$1"+u[1])}),h})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function s(u,l,f){for(var c=[],h,d=0;h=o.exec(u);){if(d++>1e4)throw Error("Circular references in parenthesis");c.push(u.slice(0,h.index)),c.push(s(l[h[1]],l)),u=u.slice(h.index+h[0].length)}return c.push(u),c}return a?r:s(r[0],r)}function yqe(e,t){if(t&&t.flat){var r=t&&t.escape||"___",n=e[0],i;if(!n)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;n!=i;){if(o++>1e4)throw Error("Circular references in "+e);i=n,n=n.replace(a,s)}return n}return e.reduce(function u(l,f){return Array.isArray(f)&&(f=f.reduce(u,"")),l+f},"");function s(u,l){if(e[l]==null)throw Error("Reference "+l+"is undefined");return e[l]}}function rK(e,t){return Array.isArray(e)?yqe(e,t):mqe(e,t)}rK.parse=mqe;rK.stringify=yqe;gqe.exports=rK});var wqe=Te((m_r,bqe)=>{"use strict";var xqe=_qe();bqe.exports=function(t,r,n){if(t==null)throw Error("First argument should be a string");if(r==null)throw Error("Separator should be a string or a RegExp");n?(typeof n=="string"||Array.isArray(n))&&(n={ignore:n}):n={},n.escape==null&&(n.escape=!0),n.ignore==null?n.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof n.ignore=="string"&&(n.ignore=[n.ignore]),n.ignore=n.ignore.map(function(c){return c.length===1&&(c=c+c),c}));var i=xqe.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var s=[],u=0;u{});var iK=Te((__r,Tqe)=>{"use strict";var R7t=Aqe();Tqe.exports={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||R7t.indexOf(t)!==-1}}});var kqe=Te((x_r,Eqe)=>{"use strict";var D7t=vqe(),F7t=JY(),B7t=$Y(),O7t=QY(),q7t=eK(),N7t=tK(),nK=wqe(),U7t=iK().isSize;Eqe.exports=Mqe;var gk=Mqe.cache={};function Mqe(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(gk[e])return gk[e];if(e==="")throw new Error("Cannot parse an empty string.");if(B7t.indexOf(e)!==-1)return gk[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=nK(e,/\s+/),n;n=r.shift();){if(F7t.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),gk[e]=t;if(q7t.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(N7t.indexOf(n)!==-1){t.stretch=n;continue}if(O7t.indexOf(n)!==-1){t.weight=n;continue}if(U7t(n)){var i=nK(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=Sqe(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=Sqe(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=nK(r.join(" "),/\s*,\s*/).map(D7t),gk[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function Sqe(e){var t=parseFloat(e);return t.toString()===e?t:e}});var oK=Te((b_r,Cqe)=>{"use strict";var V7t=Xy(),G7t=iK().isSize,H7t=xk(JY()),W7t=xk($Y()),j7t=xk(QY()),X7t=xk(eK()),Z7t=xk(tK()),Y7t={normal:1,"small-caps":1},K7t={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},aK={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};Cqe.exports=function(t){if(t=V7t(t,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),t.system)return t.system&&_k(t.system,W7t),t.system;if(_k(t.style,X7t),_k(t.variant,Y7t),_k(t.weight,j7t),_k(t.stretch,Z7t),t.size==null&&(t.size=aK.size),typeof t.size=="number"&&(t.size+="px"),!G7t)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=aK.family),Array.isArray(t.family)&&(t.family.length||(t.family=[aK.family]),t.family=t.family.map(function(n){return K7t[n]?n:'"'+n+'"'}).join(", "));var r=[];return r.push(t.style),t.variant!==t.style&&r.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&r.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&r.push(t.stretch),r.push(t.size+(t.lineHeight==null||t.lineHeight==="normal"||t.lineHeight+""=="1"?"":"/"+t.lineHeight)),r.push(t.family),r.filter(Boolean).join(" ")};function _k(e,t){if(e&&!t[e]&&!H7t[e])throw Error("Unknown keyword `"+e+"`");return e}function xk(e){for(var t={},r=0;r{"use strict";Lqe.exports={parse:kqe(),stringify:oK()}});var zqe=Te((sK,lK)=>{(function(e,t){typeof sK=="object"&&typeof lK!="undefined"?lK.exports=t():e.createREGL=t()})(sK,function(){"use strict";var e=function(Be,qt){for(var ar=Object.keys(qt),Qr=0;Qr1&&qt===ar&&(qt==='"'||qt==="'"))return['"'+o(Be.substr(1,Be.length-2))+'"'];var Qr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Be);if(Qr)return s(Be.substr(0,Qr.index)).concat(s(Qr[1])).concat(s(Be.substr(Qr.index+Qr[0].length)));var vi=Be.split(".");if(vi.length===1)return['"'+o(Be)+'"'];for(var fi=[],di=0;di65535)<<4,Be>>>=qt,ar=(Be>255)<<3,Be>>>=ar,qt|=ar,ar=(Be>15)<<2,Be>>>=ar,qt|=ar,ar=(Be>3)<<1,Be>>>=ar,qt|=ar,qt|Be>>1}function N(){var Be=S(8,function(){return[]});function qt(fi){var di=j(fi),on=Be[H(di)>>2];return on.length>0?on.pop():new ArrayBuffer(di)}function ar(fi){Be[H(fi.byteLength)>>2].push(fi)}function Qr(fi,di){var on=null;switch(fi){case m:on=new Int8Array(qt(di),0,di);break;case P:on=new Uint8Array(qt(di),0,di);break;case A:on=new Int16Array(qt(2*di),0,di);break;case B:on=new Uint16Array(qt(2*di),0,di);break;case F:on=new Int32Array(qt(4*di),0,di);break;case U:on=new Uint32Array(qt(4*di),0,di);break;case G:on=new Float32Array(qt(4*di),0,di);break;default:return null}return on.length!==di?on.subarray(0,di):on}function vi(fi){ar(fi.buffer)}return{alloc:qt,free:ar,allocType:Qr,freeType:vi}}var W=N();W.zero=N();var re=3408,ae=3410,be=3411,Pe=3412,Ce=3413,de=3414,te=3415,ke=33901,Ee=33902,Me=3379,Ue=3386,Fe=34921,me=36347,Ne=36348,ce=35661,Ke=35660,it=34930,bt=36349,Nt=34076,nt=34024,Ye=7936,kt=7937,At=7938,St=35724,Bt=34047,Zt=36063,Et=34852,Ae=3553,ot=34067,dt=34069,pt=33984,at=6408,Xe=5126,rt=5121,Qe=36160,zt=36053,Yt=36064,lr=16384,mr=function(Be,qt){var ar=1;qt.ext_texture_filter_anisotropic&&(ar=Be.getParameter(Bt));var Qr=1,vi=1;qt.webgl_draw_buffers&&(Qr=Be.getParameter(Et),vi=Be.getParameter(Zt));var fi=!!qt.oes_texture_float;if(fi){var di=Be.createTexture();Be.bindTexture(Ae,di),Be.texImage2D(Ae,0,at,1,1,0,at,Xe,null);var on=Be.createFramebuffer();if(Be.bindFramebuffer(Qe,on),Be.framebufferTexture2D(Qe,Yt,Ae,di,0),Be.bindTexture(Ae,null),Be.checkFramebufferStatus(Qe)!==zt)fi=!1;else{Be.viewport(0,0,1,1),Be.clearColor(1,0,0,1),Be.clear(lr);var Bn=W.allocType(Xe,4);Be.readPixels(0,0,1,1,at,Xe,Bn),Be.getError()?fi=!1:(Be.deleteFramebuffer(on),Be.deleteTexture(di),fi=Bn[0]===1),W.freeType(Bn)}}var Ln=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),wn=!0;if(!Ln){var Ls=Be.createTexture(),ua=W.allocType(rt,36);Be.activeTexture(pt),Be.bindTexture(ot,Ls),Be.texImage2D(dt,0,at,3,3,0,at,rt,ua),W.freeType(ua),Be.bindTexture(ot,null),Be.deleteTexture(Ls),wn=!Be.getError()}return{colorBits:[Be.getParameter(ae),Be.getParameter(be),Be.getParameter(Pe),Be.getParameter(Ce)],depthBits:Be.getParameter(de),stencilBits:Be.getParameter(te),subpixelBits:Be.getParameter(re),extensions:Object.keys(qt).filter(function(Hn){return!!qt[Hn]}),maxAnisotropic:ar,maxDrawbuffers:Qr,maxColorAttachments:vi,pointSizeDims:Be.getParameter(ke),lineWidthDims:Be.getParameter(Ee),maxViewportDims:Be.getParameter(Ue),maxCombinedTextureUnits:Be.getParameter(ce),maxCubeMapSize:Be.getParameter(Nt),maxRenderbufferSize:Be.getParameter(nt),maxTextureUnits:Be.getParameter(it),maxTextureSize:Be.getParameter(Me),maxAttributes:Be.getParameter(Fe),maxVertexUniforms:Be.getParameter(me),maxVertexTextureUnits:Be.getParameter(Ke),maxVaryingVectors:Be.getParameter(Ne),maxFragmentUniforms:Be.getParameter(bt),glsl:Be.getParameter(St),renderer:Be.getParameter(kt),vendor:Be.getParameter(Ye),version:Be.getParameter(At),readFloat:fi,npotTextureCube:wn}},_r=function(Be){return Be instanceof Uint8Array||Be instanceof Uint16Array||Be instanceof Uint32Array||Be instanceof Int8Array||Be instanceof Int16Array||Be instanceof Int32Array||Be instanceof Float32Array||Be instanceof Float64Array||Be instanceof Uint8ClampedArray};function Ht(Be){return!!Be&&typeof Be=="object"&&Array.isArray(Be.shape)&&Array.isArray(Be.stride)&&typeof Be.offset=="number"&&Be.shape.length===Be.stride.length&&(Array.isArray(Be.data)||_r(Be.data))}var Re=function(Be){return Object.keys(Be).map(function(qt){return Be[qt]})},xe={shape:fe,flatten:_e};function Oe(Be,qt,ar){for(var Qr=0;Qr0){var hs;if(Array.isArray(_i[0])){Kn=ii(_i);for(var $i=1,Ui=1;Ui0){if(typeof $i[0]=="number"){var On=W.allocType(Yi.dtype,$i.length);xr(On,$i),Kn(On,ro),W.freeType(On)}else if(Array.isArray($i[0])||_r($i[0])){na=ii($i);var In=nn($i,na,Yi.dtype);Kn(In,ro),W.freeType(In)}}}else if(Ht($i)){na=$i.shape;var Va=$i.stride,_s=0,ul=0,Qn=0,Mo=0;na.length===1?(_s=na[0],ul=1,Qn=Va[0],Mo=0):na.length===2&&(_s=na[0],ul=na[1],Qn=Va[0],Mo=Va[1]);var nl=Array.isArray($i.data)?Yi.dtype:Wt($i.data),pl=W.allocType(nl,_s*ul);Lr(pl,$i.data,_s,ul,Qn,Mo,$i.offset),Kn(pl,ro),W.freeType(pl)}return ga}return dn||ga(Hr),ga._reglType="buffer",ga._buffer=Yi,ga.subdata=hs,ar.profile&&(ga.stats=Yi.stats),ga.destroy=function(){ua(Yi)},ga}function Ni(){Re(fi).forEach(function(Hr){Hr.buffer=Be.createBuffer(),Be.bindBuffer(Hr.type,Hr.buffer),Be.bufferData(Hr.type,Hr.persistentData||Hr.byteLength,Hr.usage)})}return ar.profile&&(qt.getTotalBufferSize=function(){var Hr=0;return Object.keys(fi).forEach(function(_i){Hr+=fi[_i].stats.size}),Hr}),{create:Hn,createStream:Bn,destroyStream:Ln,clear:function(){Re(fi).forEach(ua),on.forEach(ua)},getBuffer:function(Hr){return Hr&&Hr._buffer instanceof di?Hr._buffer:null},restore:Ni,_initBuffer:Ls}}var Ir=0,Gr=0,jr=1,yi=1,Ei=4,Vi=4,ti={points:Ir,point:Gr,lines:jr,line:yi,triangles:Ei,triangle:Vi,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},en=0,Yr=1,oi=4,Bi=5120,an=5121,rn=5122,Fi=5123,Ri=5124,xn=5125,xi=34963,Xr=35040,ft=35044;function tr(Be,qt,ar,Qr){var vi={},fi=0,di={uint8:an,uint16:Fi};qt.oes_element_index_uint&&(di.uint32=xn);function on(Ni){this.id=fi++,vi[this.id]=this,this.buffer=Ni,this.primType=oi,this.vertCount=0,this.type=0}on.prototype.bind=function(){this.buffer.bind()};var Bn=[];function Ln(Ni){var Hr=Bn.pop();return Hr||(Hr=new on(ar.create(null,xi,!0,!1)._buffer)),Ls(Hr,Ni,Xr,-1,-1,0,0),Hr}function wn(Ni){Bn.push(Ni)}function Ls(Ni,Hr,_i,dn,En,Yi,ga){Ni.buffer.bind();var Kn;if(Hr){var hs=ga;!ga&&(!_r(Hr)||Ht(Hr)&&!_r(Hr.data))&&(hs=qt.oes_element_index_uint?xn:Fi),ar._initBuffer(Ni.buffer,Hr,_i,hs,3)}else Be.bufferData(xi,Yi,_i),Ni.buffer.dtype=Kn||an,Ni.buffer.usage=_i,Ni.buffer.dimension=3,Ni.buffer.byteLength=Yi;if(Kn=ga,!ga){switch(Ni.buffer.dtype){case an:case Bi:Kn=an;break;case Fi:case rn:Kn=Fi;break;case xn:case Ri:Kn=xn;break;default:}Ni.buffer.dtype=Kn}Ni.type=Kn;var $i=En;$i<0&&($i=Ni.buffer.byteLength,Kn===Fi?$i>>=1:Kn===xn&&($i>>=2)),Ni.vertCount=$i;var Ui=dn;if(dn<0){Ui=oi;var ro=Ni.buffer.dimension;ro===1&&(Ui=en),ro===2&&(Ui=Yr),ro===3&&(Ui=oi)}Ni.primType=Ui}function ua(Ni){Qr.elementsCount--,delete vi[Ni.id],Ni.buffer.destroy(),Ni.buffer=null}function Hn(Ni,Hr){var _i=ar.create(null,xi,!0),dn=new on(_i._buffer);Qr.elementsCount++;function En(Yi){if(!Yi)_i(),dn.primType=oi,dn.vertCount=0,dn.type=an;else if(typeof Yi=="number")_i(Yi),dn.primType=oi,dn.vertCount=Yi|0,dn.type=an;else{var ga=null,Kn=ft,hs=-1,$i=-1,Ui=0,ro=0;Array.isArray(Yi)||_r(Yi)||Ht(Yi)?ga=Yi:("data"in Yi&&(ga=Yi.data),"usage"in Yi&&(Kn=Ci[Yi.usage]),"primitive"in Yi&&(hs=ti[Yi.primitive]),"count"in Yi&&($i=Yi.count|0),"type"in Yi&&(ro=di[Yi.type]),"length"in Yi?Ui=Yi.length|0:(Ui=$i,ro===Fi||ro===rn?Ui*=2:(ro===xn||ro===Ri)&&(Ui*=4))),Ls(dn,ga,Kn,hs,$i,Ui,ro)}return En}return En(Ni),En._reglType="elements",En._elements=dn,En.subdata=function(Yi,ga){return _i.subdata(Yi,ga),En},En.destroy=function(){ua(dn)},En}return{create:Hn,createStream:Ln,destroyStream:wn,getElements:function(Ni){return typeof Ni=="function"&&Ni._elements instanceof on?Ni._elements:null},clear:function(){Re(vi).forEach(ua)}}}var pr=new Float32Array(1),gr=new Uint32Array(pr.buffer),Zr=5123;function Ai(Be){for(var qt=W.allocType(Zr,Be.length),ar=0;ar>>31<<15,fi=(Qr<<1>>>24)-127,di=Qr>>13&1023;if(fi<-24)qt[ar]=vi;else if(fi<-14){var on=-14-fi;qt[ar]=vi+(di+1024>>on)}else fi>15?qt[ar]=vi+31744:qt[ar]=vi+(fi+15<<10)+di}return qt}function Qi(Be){return Array.isArray(Be)||_r(Be)}var ni=34467,Zi=3553,aa=34067,Mn=34069,Un=6408,Ga=6406,ma=6407,oa=6409,ka=6410,so=32854,Kr=32855,Ia=36194,Yo=32819,fa=32820,kn=33635,Ta=34042,ys=6402,uo=34041,ls=35904,$a=35906,fo=36193,mn=33776,ra=33777,wa=33778,ws=33779,Co=35986,Po=35987,ji=34798,gn=35840,Ps=35841,Ha=35842,Sn=35843,ao=36196,Ba=5121,Ko=5123,Qo=5125,Wi=5126,Sa=10242,Qa=10243,vn=10497,da=33071,la=33648,vo=10240,As=10241,ps=9728,co=9729,mo=9984,No=9985,jn=9986,Go=9987,Ys=33170,qs=4352,Ns=4353,Oa=4354,ha=34046,Vs=3317,Ya=37440,_n=37441,Vn=37443,wo=37444,Ra=33984,Xn=[mo,jn,No,Go],un=[0,oa,ka,ma,Un],$n={};$n[oa]=$n[Ga]=$n[ys]=1,$n[uo]=$n[ka]=2,$n[ma]=$n[ls]=3,$n[Un]=$n[$a]=4;function Ka(Be){return"[object "+Be+"]"}var qn=Ka("HTMLCanvasElement"),Eo=Ka("OffscreenCanvas"),Ja=Ka("CanvasRenderingContext2D"),lo=Ka("ImageBitmap"),eo=Ka("HTMLImageElement"),sa=Ka("HTMLVideoElement"),es=Object.keys(pe).concat([qn,Eo,Ja,lo,eo,sa]),Na=[];Na[Ba]=1,Na[Wi]=4,Na[fo]=2,Na[Ko]=2,Na[Qo]=4;var tn=[];tn[so]=2,tn[Kr]=2,tn[Ia]=2,tn[uo]=4,tn[mn]=.5,tn[ra]=.5,tn[wa]=1,tn[ws]=1,tn[Co]=.5,tn[Po]=1,tn[ji]=1,tn[gn]=.5,tn[Ps]=.25,tn[Ha]=.5,tn[Sn]=.25,tn[ao]=.5;function Pa(Be){return Array.isArray(Be)&&(Be.length===0||typeof Be[0]=="number")}function to(Be){if(!Array.isArray(Be))return!1;var qt=Be.length;return!(qt===0||!Qi(Be[0]))}function yo(Be){return Object.prototype.toString.call(Be)}function Jo(Be){return yo(Be)===qn}function Ao(Be){return yo(Be)===Eo}function Dn(Be){return yo(Be)===Ja}function _a(Be){return yo(Be)===lo}function Ws(Be){return yo(Be)===eo}function Ca(Be){return yo(Be)===sa}function Es(Be){if(!Be)return!1;var qt=yo(Be);return es.indexOf(qt)>=0?!0:Pa(Be)||to(Be)||Ht(Be)}function Ts(Be){return pe[Object.prototype.toString.call(Be)]|0}function Ho(Be,qt){var ar=qt.length;switch(Be.type){case Ba:case Ko:case Qo:case Wi:var Qr=W.allocType(Be.type,ar);Qr.set(qt),Be.data=Qr;break;case fo:Be.data=Ai(qt);break;default:}}function Wa(Be,qt){return W.allocType(Be.type===fo?Wi:Be.type,qt)}function To(Be,qt){Be.type===fo?(Be.data=Ai(qt),W.freeType(qt)):Be.data=qt}function ts(Be,qt,ar,Qr,vi,fi){for(var di=Be.width,on=Be.height,Bn=Be.channels,Ln=di*on*Bn,wn=Wa(Be,Ln),Ls=0,ua=0;ua=1;)on+=di*Bn*Bn,Bn/=2;return on}else return di*ar*Qr}function qa(Be,qt,ar,Qr,vi,fi,di){var on={"don't care":qs,"dont care":qs,nice:Oa,fast:Ns},Bn={repeat:vn,clamp:da,mirror:la},Ln={nearest:ps,linear:co},wn=e({mipmap:Go,"nearest mipmap nearest":mo,"linear mipmap nearest":No,"nearest mipmap linear":jn,"linear mipmap linear":Go},Ln),Ls={none:0,browser:wo},ua={uint8:Ba,rgba4:Yo,rgb565:kn,"rgb5 a1":fa},Hn={alpha:Ga,luminance:oa,"luminance alpha":ka,rgb:ma,rgba:Un,rgba4:so,"rgb5 a1":Kr,rgb565:Ia},Ni={};qt.ext_srgb&&(Hn.srgb=ls,Hn.srgba=$a),qt.oes_texture_float&&(ua.float32=ua.float=Wi),qt.oes_texture_half_float&&(ua.float16=ua["half float"]=fo),qt.webgl_depth_texture&&(e(Hn,{depth:ys,"depth stencil":uo}),e(ua,{uint16:Ko,uint32:Qo,"depth stencil":Ta})),qt.webgl_compressed_texture_s3tc&&e(Ni,{"rgb s3tc dxt1":mn,"rgba s3tc dxt1":ra,"rgba s3tc dxt3":wa,"rgba s3tc dxt5":ws}),qt.webgl_compressed_texture_atc&&e(Ni,{"rgb atc":Co,"rgba atc explicit alpha":Po,"rgba atc interpolated alpha":ji}),qt.webgl_compressed_texture_pvrtc&&e(Ni,{"rgb pvrtc 4bppv1":gn,"rgb pvrtc 2bppv1":Ps,"rgba pvrtc 4bppv1":Ha,"rgba pvrtc 2bppv1":Sn}),qt.webgl_compressed_texture_etc1&&(Ni["rgb etc1"]=ao);var Hr=Array.prototype.slice.call(Be.getParameter(ni));Object.keys(Ni).forEach(function(ne){var Le=Ni[ne];Hr.indexOf(Le)>=0&&(Hn[ne]=Le)});var _i=Object.keys(Hn);ar.textureFormats=_i;var dn=[];Object.keys(Hn).forEach(function(ne){var Le=Hn[ne];dn[Le]=ne});var En=[];Object.keys(ua).forEach(function(ne){var Le=ua[ne];En[Le]=ne});var Yi=[];Object.keys(Ln).forEach(function(ne){var Le=Ln[ne];Yi[Le]=ne});var ga=[];Object.keys(wn).forEach(function(ne){var Le=wn[ne];ga[Le]=ne});var Kn=[];Object.keys(Bn).forEach(function(ne){var Le=Bn[ne];Kn[Le]=ne});var hs=_i.reduce(function(ne,Le){var Ze=Hn[Le];return Ze===oa||Ze===Ga||Ze===oa||Ze===ka||Ze===ys||Ze===uo||qt.ext_srgb&&(Ze===ls||Ze===$a)?ne[Ze]=Ze:Ze===Kr||Le.indexOf("rgba")>=0?ne[Ze]=Un:ne[Ze]=ma,ne},{});function $i(){this.internalformat=Un,this.format=Un,this.type=Ba,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=wo,this.width=0,this.height=0,this.channels=0}function Ui(ne,Le){ne.internalformat=Le.internalformat,ne.format=Le.format,ne.type=Le.type,ne.compressed=Le.compressed,ne.premultiplyAlpha=Le.premultiplyAlpha,ne.flipY=Le.flipY,ne.unpackAlignment=Le.unpackAlignment,ne.colorSpace=Le.colorSpace,ne.width=Le.width,ne.height=Le.height,ne.channels=Le.channels}function ro(ne,Le){if(!(typeof Le!="object"||!Le)){if("premultiplyAlpha"in Le&&(ne.premultiplyAlpha=Le.premultiplyAlpha),"flipY"in Le&&(ne.flipY=Le.flipY),"alignment"in Le&&(ne.unpackAlignment=Le.alignment),"colorSpace"in Le&&(ne.colorSpace=Ls[Le.colorSpace]),"type"in Le){var Ze=Le.type;ne.type=ua[Ze]}var Ct=ne.width,dr=ne.height,Mr=ne.channels,ur=!1;"shape"in Le?(Ct=Le.shape[0],dr=Le.shape[1],Le.shape.length===3&&(Mr=Le.shape[2],ur=!0)):("radius"in Le&&(Ct=dr=Le.radius),"width"in Le&&(Ct=Le.width),"height"in Le&&(dr=Le.height),"channels"in Le&&(Mr=Le.channels,ur=!0)),ne.width=Ct|0,ne.height=dr|0,ne.channels=Mr|0;var Je=!1;if("format"in Le){var ht=Le.format,wt=ne.internalformat=Hn[ht];ne.format=hs[wt],ht in ua&&("type"in Le||(ne.type=ua[ht])),ht in Ni&&(ne.compressed=!0),Je=!0}!ur&&Je?ne.channels=$n[ne.format]:ur&&!Je&&ne.channels!==un[ne.format]&&(ne.format=ne.internalformat=un[ne.channels])}}function na(ne){Be.pixelStorei(Ya,ne.flipY),Be.pixelStorei(_n,ne.premultiplyAlpha),Be.pixelStorei(Vn,ne.colorSpace),Be.pixelStorei(Vs,ne.unpackAlignment)}function On(){$i.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function In(ne,Le){var Ze=null;if(Es(Le)?Ze=Le:Le&&(ro(ne,Le),"x"in Le&&(ne.xOffset=Le.x|0),"y"in Le&&(ne.yOffset=Le.y|0),Es(Le.data)&&(Ze=Le.data)),Le.copy){var Ct=vi.viewportWidth,dr=vi.viewportHeight;ne.width=ne.width||Ct-ne.xOffset,ne.height=ne.height||dr-ne.yOffset,ne.needsCopy=!0}else if(!Ze)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(_r(Ze))ne.channels=ne.channels||4,ne.data=Ze,!("type"in Le)&&ne.type===Ba&&(ne.type=Ts(Ze));else if(Pa(Ze))ne.channels=ne.channels||4,Ho(ne,Ze),ne.alignment=1,ne.needsFree=!0;else if(Ht(Ze)){var Mr=Ze.data;!Array.isArray(Mr)&&ne.type===Ba&&(ne.type=Ts(Mr));var ur=Ze.shape,Je=Ze.stride,ht,wt,Kt,sr,Qt,fr;ur.length===3?(Kt=ur[2],fr=Je[2]):(Kt=1,fr=1),ht=ur[0],wt=ur[1],sr=Je[0],Qt=Je[1],ne.alignment=1,ne.width=ht,ne.height=wt,ne.channels=Kt,ne.format=ne.internalformat=un[Kt],ne.needsFree=!0,ts(ne,Mr,sr,Qt,fr,Ze.offset)}else if(Jo(Ze)||Ao(Ze)||Dn(Ze))Jo(Ze)||Ao(Ze)?ne.element=Ze:ne.element=Ze.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(_a(Ze))ne.element=Ze,ne.width=Ze.width,ne.height=Ze.height,ne.channels=4;else if(Ws(Ze))ne.element=Ze,ne.width=Ze.naturalWidth,ne.height=Ze.naturalHeight,ne.channels=4;else if(Ca(Ze))ne.element=Ze,ne.width=Ze.videoWidth,ne.height=Ze.videoHeight,ne.channels=4;else if(to(Ze)){var er=ne.width||Ze[0].length,Ot=ne.height||Ze.length,Jt=ne.channels;Qi(Ze[0][0])?Jt=Jt||Ze[0][0].length:Jt=Jt||1;for(var Lt=xe.shape(Ze),Tr=1,qr=0;qr>=dr,Ze.height>>=dr,In(Ze,Ct[dr]),ne.mipmask|=1<=0&&!("faces"in Le)&&(ne.genMipmaps=!0)}if("mag"in Le){var Ct=Le.mag;ne.magFilter=Ln[Ct]}var dr=ne.wrapS,Mr=ne.wrapT;if("wrap"in Le){var ur=Le.wrap;typeof ur=="string"?dr=Mr=Bn[ur]:Array.isArray(ur)&&(dr=Bn[ur[0]],Mr=Bn[ur[1]])}else{if("wrapS"in Le){var Je=Le.wrapS;dr=Bn[Je]}if("wrapT"in Le){var ht=Le.wrapT;Mr=Bn[ht]}}if(ne.wrapS=dr,ne.wrapT=Mr,"anisotropic"in Le){var wt=Le.anisotropic;ne.anisotropic=Le.anisotropic}if("mipmap"in Le){var Kt=!1;switch(typeof Le.mipmap){case"string":ne.mipmapHint=on[Le.mipmap],ne.genMipmaps=!0,Kt=!0;break;case"boolean":Kt=ne.genMipmaps=Le.mipmap;break;case"object":ne.genMipmaps=!1,Kt=!0;break;default:}Kt&&!("min"in Le)&&(ne.minFilter=mo)}}function bf(ne,Le){Be.texParameteri(Le,As,ne.minFilter),Be.texParameteri(Le,vo,ne.magFilter),Be.texParameteri(Le,Sa,ne.wrapS),Be.texParameteri(Le,Qa,ne.wrapT),qt.ext_texture_filter_anisotropic&&Be.texParameteri(Le,ha,ne.anisotropic),ne.genMipmaps&&(Be.hint(Ys,ne.mipmapHint),Be.generateMipmap(Le))}var Lf=0,Gu={},hf=ar.maxTextureUnits,yf=Array(hf).map(function(){return null});function Fl(ne){$i.call(this),this.mipmask=0,this.internalformat=Un,this.id=Lf++,this.refCount=1,this.target=ne,this.texture=Be.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Cu,di.profile&&(this.stats={size:0})}function wf(ne){Be.activeTexture(Ra),Be.bindTexture(ne.target,ne.texture)}function cu(){var ne=yf[0];ne?Be.bindTexture(ne.target,ne.texture):Be.bindTexture(Zi,null)}function Y(ne){var Le=ne.texture,Ze=ne.unit,Ct=ne.target;Ze>=0&&(Be.activeTexture(Ra+Ze),Be.bindTexture(Ct,null),yf[Ze]=null),Be.deleteTexture(Le),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete Gu[ne.id],fi.textureCount--}e(Fl.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var Le=ne.unit;if(Le<0){for(var Ze=0;Ze0)continue;Ct.unit=-1}yf[Ze]=ne,Le=Ze;break}Le>=hf,di.profile&&fi.maxTextureUnits>Qt)-Kt,fr.height=fr.height||(Ze.height>>Qt)-sr,wf(Ze),_s(fr,Zi,Kt,sr,Qt),cu(),Mo(fr),Ct}function Mr(ur,Je){var ht=ur|0,wt=Je|0||ht;if(ht===Ze.width&&wt===Ze.height)return Ct;Ct.width=Ze.width=ht,Ct.height=Ze.height=wt,wf(Ze);for(var Kt=0;Ze.mipmask>>Kt;++Kt){var sr=ht>>Kt,Qt=wt>>Kt;if(!sr||!Qt)break;Be.texImage2D(Zi,Kt,Ze.format,sr,Qt,0,Ze.format,Ze.type,null)}return cu(),di.profile&&(Ze.stats.size=Wo(Ze.internalformat,Ze.type,ht,wt,!1,!1)),Ct}return Ct(ne,Le),Ct.subimage=dr,Ct.resize=Mr,Ct._reglType="texture2d",Ct._texture=Ze,di.profile&&(Ct.stats=Ze.stats),Ct.destroy=function(){Ze.decRef()},Ct}function J(ne,Le,Ze,Ct,dr,Mr){var ur=new Fl(aa);Gu[ur.id]=ur,fi.cubeCount++;var Je=new Array(6);function ht(sr,Qt,fr,er,Ot,Jt){var Lt,Tr=ur.texInfo;for(Cu.call(Tr),Lt=0;Lt<6;++Lt)Je[Lt]=Ql();if(typeof sr=="number"||!sr){var qr=sr|0||1;for(Lt=0;Lt<6;++Lt)pl(Je[Lt],qr,qr)}else if(typeof sr=="object")if(Qt)Dl(Je[0],sr),Dl(Je[1],Qt),Dl(Je[2],fr),Dl(Je[3],er),Dl(Je[4],Ot),Dl(Je[5],Jt);else if(_f(Tr,sr),ro(ur,sr),"faces"in sr){var ci=sr.faces;for(Lt=0;Lt<6;++Lt)Ui(Je[Lt],ur),Dl(Je[Lt],ci[Lt])}else for(Lt=0;Lt<6;++Lt)Dl(Je[Lt],sr);for(Ui(ur,Je[0]),Tr.genMipmaps?ur.mipmask=(Je[0].width<<1)-1:ur.mipmask=Je[0].mipmask,ur.internalformat=Je[0].internalformat,ht.width=Je[0].width,ht.height=Je[0].height,wf(ur),Lt=0;Lt<6;++Lt)Fu(Je[Lt],Mn+Lt);for(bf(Tr,aa),cu(),di.profile&&(ur.stats.size=Wo(ur.internalformat,ur.type,ht.width,ht.height,Tr.genMipmaps,!0)),ht.format=dn[ur.internalformat],ht.type=En[ur.type],ht.mag=Yi[Tr.magFilter],ht.min=ga[Tr.minFilter],ht.wrapS=Kn[Tr.wrapS],ht.wrapT=Kn[Tr.wrapT],Lt=0;Lt<6;++Lt)kf(Je[Lt]);return ht}function wt(sr,Qt,fr,er,Ot){var Jt=fr|0,Lt=er|0,Tr=Ot|0,qr=Qn();return Ui(qr,ur),qr.width=0,qr.height=0,In(qr,Qt),qr.width=qr.width||(ur.width>>Tr)-Jt,qr.height=qr.height||(ur.height>>Tr)-Lt,wf(ur),_s(qr,Mn+sr,Jt,Lt,Tr),cu(),Mo(qr),ht}function Kt(sr){var Qt=sr|0;if(Qt!==ur.width){ht.width=ur.width=Qt,ht.height=ur.height=Qt,wf(ur);for(var fr=0;fr<6;++fr)for(var er=0;ur.mipmask>>er;++er)Be.texImage2D(Mn+fr,er,ur.format,Qt>>er,Qt>>er,0,ur.format,ur.type,null);return cu(),di.profile&&(ur.stats.size=Wo(ur.internalformat,ur.type,ht.width,ht.height,!1,!0)),ht}}return ht(ne,Le,Ze,Ct,dr,Mr),ht.subimage=wt,ht.resize=Kt,ht._reglType="textureCube",ht._texture=ur,di.profile&&(ht.stats=ur.stats),ht.destroy=function(){ur.decRef()},ht}function O(){for(var ne=0;ne>Ct,Ze.height>>Ct,0,Ze.internalformat,Ze.type,null);else for(var dr=0;dr<6;++dr)Be.texImage2D(Mn+dr,Ct,Ze.internalformat,Ze.width>>Ct,Ze.height>>Ct,0,Ze.internalformat,Ze.type,null);bf(Ze.texInfo,Ze.target)})}function ge(){for(var ne=0;ne=0?kf=!0:Bn.indexOf(Cu)>=0&&(kf=!1))),("depthTexture"in Fl||"depthStencilTexture"in Fl)&&(yf=!!(Fl.depthTexture||Fl.depthStencilTexture)),"depth"in Fl&&(typeof Fl.depth=="boolean"?Fu=Fl.depth:(Lf=Fl.depth,mf=!1)),"stencil"in Fl&&(typeof Fl.stencil=="boolean"?mf=Fl.stencil:(Gu=Fl.stencil,Fu=!1)),"depthStencil"in Fl&&(typeof Fl.depthStencil=="boolean"?Fu=mf=Fl.depthStencil:(hf=Fl.depthStencil,Fu=!1,mf=!1))}var cu=null,Y=null,R=null,J=null;if(Array.isArray(Ql))cu=Ql.map(Ni);else if(Ql)cu=[Ni(Ql)];else for(cu=new Array(bf),nl=0;nl0&&(Mo.depth=In[0].depth,Mo.stencil=In[0].stencil,Mo.depthStencil=In[0].depthStencil),In[Qn]?In[Qn](Mo):In[Qn]=Ui(Mo)}return e(Va,{width:nl,height:nl,color:Cu})}function _s(ul){var Qn,Mo=ul|0;if(Mo===Va.width)return Va;var nl=Va.color;for(Qn=0;Qn=nl.byteLength?pl.subdata(nl):(pl.destroy(),Ui.buffers[ul]=null)),Ui.buffers[ul]||(pl=Ui.buffers[ul]=vi.create(Qn,Ss,!1,!0)),Mo.buffer=vi.getBuffer(pl),Mo.size=Mo.buffer.dimension|0,Mo.normalized=!1,Mo.type=Mo.buffer.dtype,Mo.offset=0,Mo.stride=0,Mo.divisor=0,Mo.state=1,Va[ul]=1}else vi.getBuffer(Qn)?(Mo.buffer=vi.getBuffer(Qn),Mo.size=Mo.buffer.dimension|0,Mo.normalized=!1,Mo.type=Mo.buffer.dtype,Mo.offset=0,Mo.stride=0,Mo.divisor=0,Mo.state=1):vi.getBuffer(Qn.buffer)?(Mo.buffer=vi.getBuffer(Qn.buffer),Mo.size=(+Qn.size||Mo.buffer.dimension)|0,Mo.normalized=!!Qn.normalized||!1,"type"in Qn?Mo.type=mi[Qn.type]:Mo.type=Mo.buffer.dtype,Mo.offset=(Qn.offset||0)|0,Mo.stride=(Qn.stride||0)|0,Mo.divisor=(Qn.divisor||0)|0,Mo.state=1):"x"in Qn&&(Mo.x=+Qn.x||0,Mo.y=+Qn.y||0,Mo.z=+Qn.z||0,Mo.w=+Qn.w||0,Mo.state=2)}for(var Dl=0;Dl1)for(var na=0;naHr&&(Hr=_i.stats.uniformsCount)}),Hr},ar.getMaxAttributesCount=function(){var Hr=0;return wn.forEach(function(_i){_i.stats.attributesCount>Hr&&(Hr=_i.stats.attributesCount)}),Hr});function Ni(){vi={},fi={};for(var Hr=0;Hr16&&(ar=Pi(ar,Be.length*8));for(var Qr=Array(16),vi=Array(16),fi=0;fi<16;fi++)Qr[fi]=ar[fi]^909522486,vi[fi]=ar[fi]^1549556828;var di=Pi(Qr.concat(Bs(qt)),512+qt.length*8);return Tt(Pi(vi.concat(di),768))}function Ms(Be){for(var qt=Ro?"0123456789ABCDEF":"0123456789abcdef",ar="",Qr,vi=0;vi>>4&15)+qt.charAt(Qr&15);return ar}function jo(Be){for(var qt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ar="",Qr=Be.length,vi=0;viBe.length*8?ar+=tl:ar+=qt.charAt(fi>>>6*(3-di)&63);return ar}function Rs(Be,qt){var ar=qt.length,Qr=Array(),vi,fi,di,on,Bn=Array(Math.ceil(Be.length/2));for(vi=0;vi0;){for(on=Array(),di=0,vi=0;vi0||fi>0)&&(on[on.length]=fi);Qr[Qr.length]=di,Bn=on}var Ln="";for(vi=Qr.length-1;vi>=0;vi--)Ln+=qt.charAt(Qr[vi]);var wn=Math.ceil(Be.length*8/(Math.log(qt.length)/Math.log(2)));for(vi=Ln.length;vi>>6&31,128|Qr&63):Qr<=65535?qt+=String.fromCharCode(224|Qr>>>12&15,128|Qr>>>6&63,128|Qr&63):Qr<=2097151&&(qt+=String.fromCharCode(240|Qr>>>18&7,128|Qr>>>12&63,128|Qr>>>6&63,128|Qr&63));return qt}function Bs(Be){for(var qt=Array(Be.length>>2),ar=0;ar>5]|=(Be.charCodeAt(ar/8)&255)<<24-ar%32;return qt}function Tt(Be){for(var qt="",ar=0;ar>5]>>>24-ar%32&255);return qt}function Vt(Be,qt){return Be>>>qt|Be<<32-qt}function wr(Be,qt){return Be>>>qt}function yr(Be,qt,ar){return Be&qt^~Be&ar}function Fr(Be,qt,ar){return Be&qt^Be&ar^qt&ar}function gi(Be){return Vt(Be,2)^Vt(Be,13)^Vt(Be,22)}function Ti(Be){return Vt(Be,6)^Vt(Be,11)^Vt(Be,25)}function ki(Be){return Vt(Be,7)^Vt(Be,18)^wr(Be,3)}function Ji(Be){return Vt(Be,17)^Vt(Be,19)^wr(Be,10)}var Fn=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Pi(Be,qt){var ar=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Qr=new Array(64),vi,fi,di,on,Bn,Ln,wn,Ls,ua,Hn,Ni,Hr;for(Be[qt>>5]|=128<<24-qt%32,Be[(qt+64>>9<<4)+15]=qt,ua=0;ua>16)+(qt>>16)+(ar>>16);return Qr<<16|ar&65535}function Li(Be){return Array.prototype.slice.call(Be)}function Si(Be){return Li(Be).join("")}function Gn(Be){var qt=Be&&Be.cache,ar=0,Qr=[],vi=[],fi=[];function di(Ni,Hr){var _i=Hr&&Hr.stable;if(!_i){for(var dn=0;dn0&&(Ni.push(En,"="),Ni.push.apply(Ni,Li(arguments)),Ni.push(";")),En}return e(Hr,{def:dn,toString:function(){return Si([_i.length>0?"var "+_i.join(",")+";":"",Si(Ni)])}})}function Bn(){var Ni=on(),Hr=on(),_i=Ni.toString,dn=Hr.toString;function En(Yi,ga){Hr(Yi,ga,"=",Ni.def(Yi,ga),";")}return e(function(){Ni.apply(Ni,Li(arguments))},{def:Ni.def,entry:Ni,exit:Hr,save:En,set:function(Yi,ga,Kn){En(Yi,ga),Ni(Yi,ga,"=",Kn,";")},toString:function(){return _i()+dn()}})}function Ln(){var Ni=Si(arguments),Hr=Bn(),_i=Bn(),dn=Hr.toString,En=_i.toString;return e(Hr,{then:function(){return Hr.apply(Hr,Li(arguments)),this},else:function(){return _i.apply(_i,Li(arguments)),this},toString:function(){var Yi=En();return Yi&&(Yi="else{"+Yi+"}"),Si(["if(",Ni,"){",dn(),"}",Yi])}})}var wn=on(),Ls={};function ua(Ni,Hr){var _i=[];function dn(){var hs="a"+_i.length;return _i.push(hs),hs}Hr=Hr||0;for(var En=0;En[v.viewport.x,v.viewport.y,b.viewportWidth,b.viewportHeight]},attributes:{color:{buffer:o,offset:(b,v)=>v.offset*4,divisor:1},position:{buffer:i,offset:(b,v)=>v.offset*8,divisor:1},positionFract:{buffer:a,offset:(b,v)=>v.offset*8,divisor:1},error:{buffer:s,offset:(b,v)=>v.offset*16,divisor:1},direction:{buffer:u,stride:24,offset:0},lineOffset:{buffer:u,stride:24,offset:8},capOffset:{buffer:u,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:cqe.length}),uqe(c,{update:p,draw:h,destroy:x,regl:e,gl:r,canvas:r.canvas,groups:f}),c;function c(b){b?p(b):b===null&&x(),h()}function h(b){if(typeof b=="number")return d(b);b&&!Array.isArray(b)&&(b=[b]),e._refresh(),f.forEach((v,k)=>{if(v){if(b&&(b[k]?v.draw=!0:v.draw=!1),!v.draw){v.draw=!0;return}d(k)}})}function d(b){typeof b=="number"&&(b=f[b]),b!=null&&b&&b.count&&b.color&&b.opacity&&b.positions&&b.positions.length>1&&(b.scaleRatio=[b.scale[0]*b.viewport.width,b.scale[1]*b.viewport.height],n(b),b.after&&b.after(b))}function p(b){if(!b)return;b.length!=null?typeof b[0]=="number"&&(b=[{positions:b}]):Array.isArray(b)||(b=[b]);let v=0,k=0;if(c.groups=f=b.map((L,_)=>{let C=f[_];if(L)typeof L=="function"?L={after:L}:typeof L[0]=="number"&&(L={positions:L});else return C;return L=F7t(L,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),C||(f[_]=C={id:_,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},L=uqe({},l,L)),D7t(C,L,[{lineWidth:S=>+S*.5,capSize:S=>+S*.5,opacity:parseFloat,errors:S=>(S=fqe(S),k+=S.length,S),positions:(S,m)=>(S=fqe(S,"float64"),m.count=Math.floor(S.length/2),m.bounds=I7t(S,2),m.offset=v,v+=m.count,S)},{color:(S,m)=>{let P=m.count;if(S||(S="transparent"),!Array.isArray(S)||typeof S[0]=="number"){let B=S;S=Array(P);for(let F=0;F{let A=m.bounds;return S||(S=A),m.scale=[1/(S[2]-S[0]),1/(S[3]-S[1])],m.translate=[-S[0],-S[1]],m.scaleFract=JY(m.scale),m.translateFract=JY(m.translate),S},viewport:S=>{let m;return Array.isArray(S)?m={x:S[0],y:S[1],width:S[2]-S[0],height:S[3]-S[1]}:S?(m={x:S.x||S.left||0,y:S.y||S.top||0},S.right?m.width=S.right-m.x:m.width=S.w||S.width||0,S.bottom?m.height=S.bottom-m.y:m.height=S.h||S.height||0):m={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},m}}]),C}),v||k){let L=f.reduce((m,P,A)=>m+(P?P.count:0),0),_=new Float64Array(L*2),C=new Uint8Array(L*4),S=new Float32Array(L*4);f.forEach((m,P)=>{if(!m)return;let{positions:A,count:B,offset:F,color:U,errors:G}=m;B&&(C.set(U,F*4),S.set(G,F*4),_.set(A,F*2))});var E=B7t(_);i(E);var T=JY(_,E);a(T),o(C),s(S)}}function x(){i.destroy(),a.destroy(),o.destroy(),s.destroy(),u.destroy()}}});var mqe=Te((l_r,vqe)=>{var pqe=/[\'\"]/;vqe.exports=function(t){return t?(pqe.test(t.charAt(0))&&(t=t.substr(1)),pqe.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}});var $Y=Te(()=>{});var QY=Te(()=>{});var eK=Te(()=>{});var tK=Te(()=>{});var rK=Te(()=>{});var xqe=Te((__r,_qe)=>{"use strict";function yqe(e,t){if(typeof e!="string")return[e];var r=[e];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var n=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],i=t.escape||"___",a=!!t.flat;n.forEach(function(u){var l=new RegExp(["\\",u[0],"[^\\",u[0],"\\",u[1],"]*\\",u[1]].join("")),f=[];function c(h,d,p){var x=r.push(h.slice(u[0].length,-u[1].length))-1;return f.push(x),i+x+i}r.forEach(function(h,d){for(var p,x=0;h!=p;)if(p=h,h=h.replace(l,c),x++>1e4)throw Error("References have circular dependency. Please, check them.");r[d]=h}),f=f.reverse(),r=r.map(function(h){return f.forEach(function(d){h=h.replace(new RegExp("(\\"+i+d+"\\"+i+")","g"),u[0]+"$1"+u[1])}),h})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function s(u,l,f){for(var c=[],h,d=0;h=o.exec(u);){if(d++>1e4)throw Error("Circular references in parenthesis");c.push(u.slice(0,h.index)),c.push(s(l[h[1]],l)),u=u.slice(h.index+h[0].length)}return c.push(u),c}return a?r:s(r[0],r)}function gqe(e,t){if(t&&t.flat){var r=t&&t.escape||"___",n=e[0],i;if(!n)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;n!=i;){if(o++>1e4)throw Error("Circular references in "+e);i=n,n=n.replace(a,s)}return n}return e.reduce(function u(l,f){return Array.isArray(f)&&(f=f.reduce(u,"")),l+f},"");function s(u,l){if(e[l]==null)throw Error("Reference "+l+"is undefined");return e[l]}}function iK(e,t){return Array.isArray(e)?gqe(e,t):yqe(e,t)}iK.parse=yqe;iK.stringify=gqe;_qe.exports=iK});var Aqe=Te((x_r,wqe)=>{"use strict";var bqe=xqe();wqe.exports=function(t,r,n){if(t==null)throw Error("First argument should be a string");if(r==null)throw Error("Separator should be a string or a RegExp");n?(typeof n=="string"||Array.isArray(n))&&(n={ignore:n}):n={},n.escape==null&&(n.escape=!0),n.ignore==null?n.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof n.ignore=="string"&&(n.ignore=[n.ignore]),n.ignore=n.ignore.map(function(c){return c.length===1&&(c=c+c),c}));var i=bqe.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var s=[],u=0;u{});var nK=Te((A_r,Sqe)=>{"use strict";var q7t=Tqe();Sqe.exports={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||q7t.indexOf(t)!==-1}}});var Cqe=Te((T_r,kqe)=>{"use strict";var N7t=mqe(),U7t=$Y(),V7t=QY(),G7t=eK(),H7t=tK(),W7t=rK(),aK=Aqe(),j7t=nK().isSize;kqe.exports=Eqe;var bk=Eqe.cache={};function Eqe(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(bk[e])return bk[e];if(e==="")throw new Error("Cannot parse an empty string.");if(V7t.indexOf(e)!==-1)return bk[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=aK(e,/\s+/),n;n=r.shift();){if(U7t.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),bk[e]=t;if(H7t.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(W7t.indexOf(n)!==-1){t.stretch=n;continue}if(G7t.indexOf(n)!==-1){t.weight=n;continue}if(j7t(n)){var i=aK(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=Mqe(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=Mqe(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=aK(r.join(" "),/\s*,\s*/).map(N7t),bk[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function Mqe(e){var t=parseFloat(e);return t.toString()===e?t:e}});var sK=Te((S_r,Lqe)=>{"use strict";var X7t=Xy(),Z7t=nK().isSize,Y7t=Ak($Y()),K7t=Ak(QY()),J7t=Ak(eK()),$7t=Ak(tK()),Q7t=Ak(rK()),eUt={normal:1,"small-caps":1},tUt={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},oK={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};Lqe.exports=function(t){if(t=X7t(t,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),t.system)return t.system&&wk(t.system,K7t),t.system;if(wk(t.style,$7t),wk(t.variant,eUt),wk(t.weight,J7t),wk(t.stretch,Q7t),t.size==null&&(t.size=oK.size),typeof t.size=="number"&&(t.size+="px"),!Z7t)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=oK.family),Array.isArray(t.family)&&(t.family.length||(t.family=[oK.family]),t.family=t.family.map(function(n){return tUt[n]?n:'"'+n+'"'}).join(", "));var r=[];return r.push(t.style),t.variant!==t.style&&r.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&r.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&r.push(t.stretch),r.push(t.size+(t.lineHeight==null||t.lineHeight==="normal"||t.lineHeight+""=="1"?"":"/"+t.lineHeight)),r.push(t.family),r.filter(Boolean).join(" ")};function wk(e,t){if(e&&!t[e]&&!Y7t[e])throw Error("Unknown keyword `"+e+"`");return e}function Ak(e){for(var t={},r=0;r{"use strict";Pqe.exports={parse:Cqe(),stringify:sK()}});var Iqe=Te((lK,uK)=>{(function(e,t){typeof lK=="object"&&typeof uK!="undefined"?uK.exports=t():e.createREGL=t()})(lK,function(){"use strict";var e=function(Be,qt){for(var ar=Object.keys(qt),Qr=0;Qr1&&qt===ar&&(qt==='"'||qt==="'"))return['"'+o(Be.substr(1,Be.length-2))+'"'];var Qr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Be);if(Qr)return s(Be.substr(0,Qr.index)).concat(s(Qr[1])).concat(s(Be.substr(Qr.index+Qr[0].length)));var mi=Be.split(".");if(mi.length===1)return['"'+o(Be)+'"'];for(var fi=[],pi=0;pi65535)<<4,Be>>>=qt,ar=(Be>255)<<3,Be>>>=ar,qt|=ar,ar=(Be>15)<<2,Be>>>=ar,qt|=ar,ar=(Be>3)<<1,Be>>>=ar,qt|=ar,qt|Be>>1}function N(){var Be=S(8,function(){return[]});function qt(fi){var pi=j(fi),on=Be[H(pi)>>2];return on.length>0?on.pop():new ArrayBuffer(pi)}function ar(fi){Be[H(fi.byteLength)>>2].push(fi)}function Qr(fi,pi){var on=null;switch(fi){case m:on=new Int8Array(qt(pi),0,pi);break;case P:on=new Uint8Array(qt(pi),0,pi);break;case A:on=new Int16Array(qt(2*pi),0,pi);break;case B:on=new Uint16Array(qt(2*pi),0,pi);break;case F:on=new Int32Array(qt(4*pi),0,pi);break;case U:on=new Uint32Array(qt(4*pi),0,pi);break;case G:on=new Float32Array(qt(4*pi),0,pi);break;default:return null}return on.length!==pi?on.subarray(0,pi):on}function mi(fi){ar(fi.buffer)}return{alloc:qt,free:ar,allocType:Qr,freeType:mi}}var W=N();W.zero=N();var re=3408,ae=3410,be=3411,Ce=3412,Le=3413,pe=3414,te=3415,ke=33901,Ee=33902,Me=3379,Ne=3386,Fe=34921,ye=36347,Ve=36348,ce=35661,Je=35660,nt=34930,gt=36349,Nt=34076,it=34024,Ye=7936,kt=7937,Tt=7938,St=35724,Dt=34047,Zt=36063,Et=34852,Ae=3553,at=34067,wt=34069,vt=33984,st=6408,Ue=5126,rt=5121,$e=36160,zt=36053,Yt=36064,hr=16384,yr=function(Be,qt){var ar=1;qt.ext_texture_filter_anisotropic&&(ar=Be.getParameter(Dt));var Qr=1,mi=1;qt.webgl_draw_buffers&&(Qr=Be.getParameter(Et),mi=Be.getParameter(Zt));var fi=!!qt.oes_texture_float;if(fi){var pi=Be.createTexture();Be.bindTexture(Ae,pi),Be.texImage2D(Ae,0,st,1,1,0,st,Ue,null);var on=Be.createFramebuffer();if(Be.bindFramebuffer($e,on),Be.framebufferTexture2D($e,Yt,Ae,pi,0),Be.bindTexture(Ae,null),Be.checkFramebufferStatus($e)!==zt)fi=!1;else{Be.viewport(0,0,1,1),Be.clearColor(1,0,0,1),Be.clear(hr);var Bn=W.allocType(Ue,4);Be.readPixels(0,0,1,1,st,Ue,Bn),Be.getError()?fi=!1:(Be.deleteFramebuffer(on),Be.deleteTexture(pi),fi=Bn[0]===1),W.freeType(Bn)}}var Ln=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),wn=!0;if(!Ln){var Ls=Be.createTexture(),ua=W.allocType(rt,36);Be.activeTexture(vt),Be.bindTexture(at,Ls),Be.texImage2D(wt,0,st,3,3,0,st,rt,ua),W.freeType(ua),Be.bindTexture(at,null),Be.deleteTexture(Ls),wn=!Be.getError()}return{colorBits:[Be.getParameter(ae),Be.getParameter(be),Be.getParameter(Ce),Be.getParameter(Le)],depthBits:Be.getParameter(pe),stencilBits:Be.getParameter(te),subpixelBits:Be.getParameter(re),extensions:Object.keys(qt).filter(function(Hn){return!!qt[Hn]}),maxAnisotropic:ar,maxDrawbuffers:Qr,maxColorAttachments:mi,pointSizeDims:Be.getParameter(ke),lineWidthDims:Be.getParameter(Ee),maxViewportDims:Be.getParameter(Ne),maxCombinedTextureUnits:Be.getParameter(ce),maxCubeMapSize:Be.getParameter(Nt),maxRenderbufferSize:Be.getParameter(it),maxTextureUnits:Be.getParameter(nt),maxTextureSize:Be.getParameter(Me),maxAttributes:Be.getParameter(Fe),maxVertexUniforms:Be.getParameter(ye),maxVertexTextureUnits:Be.getParameter(Je),maxVaryingVectors:Be.getParameter(Ve),maxFragmentUniforms:Be.getParameter(gt),glsl:Be.getParameter(St),renderer:Be.getParameter(kt),vendor:Be.getParameter(Ye),version:Be.getParameter(Tt),readFloat:fi,npotTextureCube:wn}},br=function(Be){return Be instanceof Uint8Array||Be instanceof Uint16Array||Be instanceof Uint32Array||Be instanceof Int8Array||Be instanceof Int16Array||Be instanceof Int32Array||Be instanceof Float32Array||Be instanceof Float64Array||Be instanceof Uint8ClampedArray};function Ut(Be){return!!Be&&typeof Be=="object"&&Array.isArray(Be.shape)&&Array.isArray(Be.stride)&&typeof Be.offset=="number"&&Be.shape.length===Be.stride.length&&(Array.isArray(Be.data)||br(Be.data))}var Ie=function(Be){return Object.keys(Be).map(function(qt){return Be[qt]})},xe={shape:fe,flatten:ge};function Oe(Be,qt,ar){for(var Qr=0;Qr0){var hs;if(Array.isArray(_i[0])){Kn=ii(_i);for(var $i=1,Ui=1;Ui0){if(typeof $i[0]=="number"){var On=W.allocType(Yi.dtype,$i.length);_r(On,$i),Kn(On,ro),W.freeType(On)}else if(Array.isArray($i[0])||br($i[0])){na=ii($i);var In=nn($i,na,Yi.dtype);Kn(In,ro),W.freeType(In)}}}else if(Ut($i)){na=$i.shape;var Va=$i.stride,_s=0,ul=0,Qn=0,Mo=0;na.length===1?(_s=na[0],ul=1,Qn=Va[0],Mo=0):na.length===2&&(_s=na[0],ul=na[1],Qn=Va[0],Mo=Va[1]);var nl=Array.isArray($i.data)?Yi.dtype:Wt($i.data),pl=W.allocType(nl,_s*ul);Lr(pl,$i.data,_s,ul,Qn,Mo,$i.offset),Kn(pl,ro),W.freeType(pl)}return ga}return dn||ga(Wr),ga._reglType="buffer",ga._buffer=Yi,ga.subdata=hs,ar.profile&&(ga.stats=Yi.stats),ga.destroy=function(){ua(Yi)},ga}function Ni(){Ie(fi).forEach(function(Wr){Wr.buffer=Be.createBuffer(),Be.bindBuffer(Wr.type,Wr.buffer),Be.bufferData(Wr.type,Wr.persistentData||Wr.byteLength,Wr.usage)})}return ar.profile&&(qt.getTotalBufferSize=function(){var Wr=0;return Object.keys(fi).forEach(function(_i){Wr+=fi[_i].stats.size}),Wr}),{create:Hn,createStream:Bn,destroyStream:Ln,clear:function(){Ie(fi).forEach(ua),on.forEach(ua)},getBuffer:function(Wr){return Wr&&Wr._buffer instanceof pi?Wr._buffer:null},restore:Ni,_initBuffer:Ls}}var Ir=0,Gr=0,jr=1,yi=1,Ei=4,Vi=4,ti={points:Ir,point:Gr,lines:jr,line:yi,triangles:Ei,triangle:Vi,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},en=0,Yr=1,oi=4,Bi=5120,an=5121,rn=5122,Fi=5123,Ri=5124,xn=5125,xi=34963,Xr=35040,ft=35044;function tr(Be,qt,ar,Qr){var mi={},fi=0,pi={uint8:an,uint16:Fi};qt.oes_element_index_uint&&(pi.uint32=xn);function on(Ni){this.id=fi++,mi[this.id]=this,this.buffer=Ni,this.primType=oi,this.vertCount=0,this.type=0}on.prototype.bind=function(){this.buffer.bind()};var Bn=[];function Ln(Ni){var Wr=Bn.pop();return Wr||(Wr=new on(ar.create(null,xi,!0,!1)._buffer)),Ls(Wr,Ni,Xr,-1,-1,0,0),Wr}function wn(Ni){Bn.push(Ni)}function Ls(Ni,Wr,_i,dn,En,Yi,ga){Ni.buffer.bind();var Kn;if(Wr){var hs=ga;!ga&&(!br(Wr)||Ut(Wr)&&!br(Wr.data))&&(hs=qt.oes_element_index_uint?xn:Fi),ar._initBuffer(Ni.buffer,Wr,_i,hs,3)}else Be.bufferData(xi,Yi,_i),Ni.buffer.dtype=Kn||an,Ni.buffer.usage=_i,Ni.buffer.dimension=3,Ni.buffer.byteLength=Yi;if(Kn=ga,!ga){switch(Ni.buffer.dtype){case an:case Bi:Kn=an;break;case Fi:case rn:Kn=Fi;break;case xn:case Ri:Kn=xn;break;default:}Ni.buffer.dtype=Kn}Ni.type=Kn;var $i=En;$i<0&&($i=Ni.buffer.byteLength,Kn===Fi?$i>>=1:Kn===xn&&($i>>=2)),Ni.vertCount=$i;var Ui=dn;if(dn<0){Ui=oi;var ro=Ni.buffer.dimension;ro===1&&(Ui=en),ro===2&&(Ui=Yr),ro===3&&(Ui=oi)}Ni.primType=Ui}function ua(Ni){Qr.elementsCount--,delete mi[Ni.id],Ni.buffer.destroy(),Ni.buffer=null}function Hn(Ni,Wr){var _i=ar.create(null,xi,!0),dn=new on(_i._buffer);Qr.elementsCount++;function En(Yi){if(!Yi)_i(),dn.primType=oi,dn.vertCount=0,dn.type=an;else if(typeof Yi=="number")_i(Yi),dn.primType=oi,dn.vertCount=Yi|0,dn.type=an;else{var ga=null,Kn=ft,hs=-1,$i=-1,Ui=0,ro=0;Array.isArray(Yi)||br(Yi)||Ut(Yi)?ga=Yi:("data"in Yi&&(ga=Yi.data),"usage"in Yi&&(Kn=Ci[Yi.usage]),"primitive"in Yi&&(hs=ti[Yi.primitive]),"count"in Yi&&($i=Yi.count|0),"type"in Yi&&(ro=pi[Yi.type]),"length"in Yi?Ui=Yi.length|0:(Ui=$i,ro===Fi||ro===rn?Ui*=2:(ro===xn||ro===Ri)&&(Ui*=4))),Ls(dn,ga,Kn,hs,$i,Ui,ro)}return En}return En(Ni),En._reglType="elements",En._elements=dn,En.subdata=function(Yi,ga){return _i.subdata(Yi,ga),En},En.destroy=function(){ua(dn)},En}return{create:Hn,createStream:Ln,destroyStream:wn,getElements:function(Ni){return typeof Ni=="function"&&Ni._elements instanceof on?Ni._elements:null},clear:function(){Ie(mi).forEach(ua)}}}var pr=new Float32Array(1),gr=new Uint32Array(pr.buffer),Zr=5123;function Ai(Be){for(var qt=W.allocType(Zr,Be.length),ar=0;ar>>31<<15,fi=(Qr<<1>>>24)-127,pi=Qr>>13&1023;if(fi<-24)qt[ar]=mi;else if(fi<-14){var on=-14-fi;qt[ar]=mi+(pi+1024>>on)}else fi>15?qt[ar]=mi+31744:qt[ar]=mi+(fi+15<<10)+pi}return qt}function Qi(Be){return Array.isArray(Be)||br(Be)}var ni=34467,Zi=3553,aa=34067,Mn=34069,Un=6408,Ga=6406,ma=6407,oa=6409,ka=6410,so=32854,Kr=32855,Ia=36194,Yo=32819,fa=32820,kn=33635,Ta=34042,ys=6402,uo=34041,ls=35904,$a=35906,fo=36193,mn=33776,ra=33777,wa=33778,ws=33779,Co=35986,Po=35987,ji=34798,gn=35840,Ps=35841,Ha=35842,Sn=35843,ao=36196,Ba=5121,Ko=5123,Qo=5125,Wi=5126,Sa=10242,Qa=10243,vn=10497,da=33071,la=33648,vo=10240,As=10241,ps=9728,co=9729,mo=9984,No=9985,jn=9986,Go=9987,Ys=33170,qs=4352,Ns=4353,Oa=4354,ha=34046,Vs=3317,Ya=37440,_n=37441,Vn=37443,wo=37444,Ra=33984,Xn=[mo,jn,No,Go],un=[0,oa,ka,ma,Un],$n={};$n[oa]=$n[Ga]=$n[ys]=1,$n[uo]=$n[ka]=2,$n[ma]=$n[ls]=3,$n[Un]=$n[$a]=4;function Ka(Be){return"[object "+Be+"]"}var qn=Ka("HTMLCanvasElement"),Eo=Ka("OffscreenCanvas"),Ja=Ka("CanvasRenderingContext2D"),lo=Ka("ImageBitmap"),eo=Ka("HTMLImageElement"),sa=Ka("HTMLVideoElement"),es=Object.keys(de).concat([qn,Eo,Ja,lo,eo,sa]),Na=[];Na[Ba]=1,Na[Wi]=4,Na[fo]=2,Na[Ko]=2,Na[Qo]=4;var tn=[];tn[so]=2,tn[Kr]=2,tn[Ia]=2,tn[uo]=4,tn[mn]=.5,tn[ra]=.5,tn[wa]=1,tn[ws]=1,tn[Co]=.5,tn[Po]=1,tn[ji]=1,tn[gn]=.5,tn[Ps]=.25,tn[Ha]=.5,tn[Sn]=.25,tn[ao]=.5;function Pa(Be){return Array.isArray(Be)&&(Be.length===0||typeof Be[0]=="number")}function to(Be){if(!Array.isArray(Be))return!1;var qt=Be.length;return!(qt===0||!Qi(Be[0]))}function yo(Be){return Object.prototype.toString.call(Be)}function Jo(Be){return yo(Be)===qn}function Ao(Be){return yo(Be)===Eo}function Dn(Be){return yo(Be)===Ja}function _a(Be){return yo(Be)===lo}function Ws(Be){return yo(Be)===eo}function Ca(Be){return yo(Be)===sa}function Es(Be){if(!Be)return!1;var qt=yo(Be);return es.indexOf(qt)>=0?!0:Pa(Be)||to(Be)||Ut(Be)}function Ts(Be){return de[Object.prototype.toString.call(Be)]|0}function Ho(Be,qt){var ar=qt.length;switch(Be.type){case Ba:case Ko:case Qo:case Wi:var Qr=W.allocType(Be.type,ar);Qr.set(qt),Be.data=Qr;break;case fo:Be.data=Ai(qt);break;default:}}function Wa(Be,qt){return W.allocType(Be.type===fo?Wi:Be.type,qt)}function To(Be,qt){Be.type===fo?(Be.data=Ai(qt),W.freeType(qt)):Be.data=qt}function ts(Be,qt,ar,Qr,mi,fi){for(var pi=Be.width,on=Be.height,Bn=Be.channels,Ln=pi*on*Bn,wn=Wa(Be,Ln),Ls=0,ua=0;ua=1;)on+=pi*Bn*Bn,Bn/=2;return on}else return pi*ar*Qr}function qa(Be,qt,ar,Qr,mi,fi,pi){var on={"don't care":qs,"dont care":qs,nice:Oa,fast:Ns},Bn={repeat:vn,clamp:da,mirror:la},Ln={nearest:ps,linear:co},wn=e({mipmap:Go,"nearest mipmap nearest":mo,"linear mipmap nearest":No,"nearest mipmap linear":jn,"linear mipmap linear":Go},Ln),Ls={none:0,browser:wo},ua={uint8:Ba,rgba4:Yo,rgb565:kn,"rgb5 a1":fa},Hn={alpha:Ga,luminance:oa,"luminance alpha":ka,rgb:ma,rgba:Un,rgba4:so,"rgb5 a1":Kr,rgb565:Ia},Ni={};qt.ext_srgb&&(Hn.srgb=ls,Hn.srgba=$a),qt.oes_texture_float&&(ua.float32=ua.float=Wi),qt.oes_texture_half_float&&(ua.float16=ua["half float"]=fo),qt.webgl_depth_texture&&(e(Hn,{depth:ys,"depth stencil":uo}),e(ua,{uint16:Ko,uint32:Qo,"depth stencil":Ta})),qt.webgl_compressed_texture_s3tc&&e(Ni,{"rgb s3tc dxt1":mn,"rgba s3tc dxt1":ra,"rgba s3tc dxt3":wa,"rgba s3tc dxt5":ws}),qt.webgl_compressed_texture_atc&&e(Ni,{"rgb atc":Co,"rgba atc explicit alpha":Po,"rgba atc interpolated alpha":ji}),qt.webgl_compressed_texture_pvrtc&&e(Ni,{"rgb pvrtc 4bppv1":gn,"rgb pvrtc 2bppv1":Ps,"rgba pvrtc 4bppv1":Ha,"rgba pvrtc 2bppv1":Sn}),qt.webgl_compressed_texture_etc1&&(Ni["rgb etc1"]=ao);var Wr=Array.prototype.slice.call(Be.getParameter(ni));Object.keys(Ni).forEach(function(ne){var Pe=Ni[ne];Wr.indexOf(Pe)>=0&&(Hn[ne]=Pe)});var _i=Object.keys(Hn);ar.textureFormats=_i;var dn=[];Object.keys(Hn).forEach(function(ne){var Pe=Hn[ne];dn[Pe]=ne});var En=[];Object.keys(ua).forEach(function(ne){var Pe=ua[ne];En[Pe]=ne});var Yi=[];Object.keys(Ln).forEach(function(ne){var Pe=Ln[ne];Yi[Pe]=ne});var ga=[];Object.keys(wn).forEach(function(ne){var Pe=wn[ne];ga[Pe]=ne});var Kn=[];Object.keys(Bn).forEach(function(ne){var Pe=Bn[ne];Kn[Pe]=ne});var hs=_i.reduce(function(ne,Pe){var Ze=Hn[Pe];return Ze===oa||Ze===Ga||Ze===oa||Ze===ka||Ze===ys||Ze===uo||qt.ext_srgb&&(Ze===ls||Ze===$a)?ne[Ze]=Ze:Ze===Kr||Pe.indexOf("rgba")>=0?ne[Ze]=Un:ne[Ze]=ma,ne},{});function $i(){this.internalformat=Un,this.format=Un,this.type=Ba,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=wo,this.width=0,this.height=0,this.channels=0}function Ui(ne,Pe){ne.internalformat=Pe.internalformat,ne.format=Pe.format,ne.type=Pe.type,ne.compressed=Pe.compressed,ne.premultiplyAlpha=Pe.premultiplyAlpha,ne.flipY=Pe.flipY,ne.unpackAlignment=Pe.unpackAlignment,ne.colorSpace=Pe.colorSpace,ne.width=Pe.width,ne.height=Pe.height,ne.channels=Pe.channels}function ro(ne,Pe){if(!(typeof Pe!="object"||!Pe)){if("premultiplyAlpha"in Pe&&(ne.premultiplyAlpha=Pe.premultiplyAlpha),"flipY"in Pe&&(ne.flipY=Pe.flipY),"alignment"in Pe&&(ne.unpackAlignment=Pe.alignment),"colorSpace"in Pe&&(ne.colorSpace=Ls[Pe.colorSpace]),"type"in Pe){var Ze=Pe.type;ne.type=ua[Ze]}var Ct=ne.width,dr=ne.height,Er=ne.channels,lr=!1;"shape"in Pe?(Ct=Pe.shape[0],dr=Pe.shape[1],Pe.shape.length===3&&(Er=Pe.shape[2],lr=!0)):("radius"in Pe&&(Ct=dr=Pe.radius),"width"in Pe&&(Ct=Pe.width),"height"in Pe&&(dr=Pe.height),"channels"in Pe&&(Er=Pe.channels,lr=!0)),ne.width=Ct|0,ne.height=dr|0,ne.channels=Er|0;var Ke=!1;if("format"in Pe){var ht=Pe.format,bt=ne.internalformat=Hn[ht];ne.format=hs[bt],ht in ua&&("type"in Pe||(ne.type=ua[ht])),ht in Ni&&(ne.compressed=!0),Ke=!0}!lr&&Ke?ne.channels=$n[ne.format]:lr&&!Ke&&ne.channels!==un[ne.format]&&(ne.format=ne.internalformat=un[ne.channels])}}function na(ne){Be.pixelStorei(Ya,ne.flipY),Be.pixelStorei(_n,ne.premultiplyAlpha),Be.pixelStorei(Vn,ne.colorSpace),Be.pixelStorei(Vs,ne.unpackAlignment)}function On(){$i.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function In(ne,Pe){var Ze=null;if(Es(Pe)?Ze=Pe:Pe&&(ro(ne,Pe),"x"in Pe&&(ne.xOffset=Pe.x|0),"y"in Pe&&(ne.yOffset=Pe.y|0),Es(Pe.data)&&(Ze=Pe.data)),Pe.copy){var Ct=mi.viewportWidth,dr=mi.viewportHeight;ne.width=ne.width||Ct-ne.xOffset,ne.height=ne.height||dr-ne.yOffset,ne.needsCopy=!0}else if(!Ze)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(br(Ze))ne.channels=ne.channels||4,ne.data=Ze,!("type"in Pe)&&ne.type===Ba&&(ne.type=Ts(Ze));else if(Pa(Ze))ne.channels=ne.channels||4,Ho(ne,Ze),ne.alignment=1,ne.needsFree=!0;else if(Ut(Ze)){var Er=Ze.data;!Array.isArray(Er)&&ne.type===Ba&&(ne.type=Ts(Er));var lr=Ze.shape,Ke=Ze.stride,ht,bt,Kt,sr,Qt,ur;lr.length===3?(Kt=lr[2],ur=Ke[2]):(Kt=1,ur=1),ht=lr[0],bt=lr[1],sr=Ke[0],Qt=Ke[1],ne.alignment=1,ne.width=ht,ne.height=bt,ne.channels=Kt,ne.format=ne.internalformat=un[Kt],ne.needsFree=!0,ts(ne,Er,sr,Qt,ur,Ze.offset)}else if(Jo(Ze)||Ao(Ze)||Dn(Ze))Jo(Ze)||Ao(Ze)?ne.element=Ze:ne.element=Ze.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(_a(Ze))ne.element=Ze,ne.width=Ze.width,ne.height=Ze.height,ne.channels=4;else if(Ws(Ze))ne.element=Ze,ne.width=Ze.naturalWidth,ne.height=Ze.naturalHeight,ne.channels=4;else if(Ca(Ze))ne.element=Ze,ne.width=Ze.videoWidth,ne.height=Ze.videoHeight,ne.channels=4;else if(to(Ze)){var er=ne.width||Ze[0].length,Ot=ne.height||Ze.length,Jt=ne.channels;Qi(Ze[0][0])?Jt=Jt||Ze[0][0].length:Jt=Jt||1;for(var Lt=xe.shape(Ze),Tr=1,Nr=0;Nr>=dr,Ze.height>>=dr,In(Ze,Ct[dr]),ne.mipmask|=1<=0&&!("faces"in Pe)&&(ne.genMipmaps=!0)}if("mag"in Pe){var Ct=Pe.mag;ne.magFilter=Ln[Ct]}var dr=ne.wrapS,Er=ne.wrapT;if("wrap"in Pe){var lr=Pe.wrap;typeof lr=="string"?dr=Er=Bn[lr]:Array.isArray(lr)&&(dr=Bn[lr[0]],Er=Bn[lr[1]])}else{if("wrapS"in Pe){var Ke=Pe.wrapS;dr=Bn[Ke]}if("wrapT"in Pe){var ht=Pe.wrapT;Er=Bn[ht]}}if(ne.wrapS=dr,ne.wrapT=Er,"anisotropic"in Pe){var bt=Pe.anisotropic;ne.anisotropic=Pe.anisotropic}if("mipmap"in Pe){var Kt=!1;switch(typeof Pe.mipmap){case"string":ne.mipmapHint=on[Pe.mipmap],ne.genMipmaps=!0,Kt=!0;break;case"boolean":Kt=ne.genMipmaps=Pe.mipmap;break;case"object":ne.genMipmaps=!1,Kt=!0;break;default:}Kt&&!("min"in Pe)&&(ne.minFilter=mo)}}function bf(ne,Pe){Be.texParameteri(Pe,As,ne.minFilter),Be.texParameteri(Pe,vo,ne.magFilter),Be.texParameteri(Pe,Sa,ne.wrapS),Be.texParameteri(Pe,Qa,ne.wrapT),qt.ext_texture_filter_anisotropic&&Be.texParameteri(Pe,ha,ne.anisotropic),ne.genMipmaps&&(Be.hint(Ys,ne.mipmapHint),Be.generateMipmap(Pe))}var Lf=0,Hu={},hf=ar.maxTextureUnits,yf=Array(hf).map(function(){return null});function Fl(ne){$i.call(this),this.mipmask=0,this.internalformat=Un,this.id=Lf++,this.refCount=1,this.target=ne,this.texture=Be.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Cu,pi.profile&&(this.stats={size:0})}function wf(ne){Be.activeTexture(Ra),Be.bindTexture(ne.target,ne.texture)}function cu(){var ne=yf[0];ne?Be.bindTexture(ne.target,ne.texture):Be.bindTexture(Zi,null)}function Y(ne){var Pe=ne.texture,Ze=ne.unit,Ct=ne.target;Ze>=0&&(Be.activeTexture(Ra+Ze),Be.bindTexture(Ct,null),yf[Ze]=null),Be.deleteTexture(Pe),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete Hu[ne.id],fi.textureCount--}e(Fl.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var Pe=ne.unit;if(Pe<0){for(var Ze=0;Ze0)continue;Ct.unit=-1}yf[Ze]=ne,Pe=Ze;break}Pe>=hf,pi.profile&&fi.maxTextureUnits>Qt)-Kt,ur.height=ur.height||(Ze.height>>Qt)-sr,wf(Ze),_s(ur,Zi,Kt,sr,Qt),cu(),Mo(ur),Ct}function Er(lr,Ke){var ht=lr|0,bt=Ke|0||ht;if(ht===Ze.width&&bt===Ze.height)return Ct;Ct.width=Ze.width=ht,Ct.height=Ze.height=bt,wf(Ze);for(var Kt=0;Ze.mipmask>>Kt;++Kt){var sr=ht>>Kt,Qt=bt>>Kt;if(!sr||!Qt)break;Be.texImage2D(Zi,Kt,Ze.format,sr,Qt,0,Ze.format,Ze.type,null)}return cu(),pi.profile&&(Ze.stats.size=Wo(Ze.internalformat,Ze.type,ht,bt,!1,!1)),Ct}return Ct(ne,Pe),Ct.subimage=dr,Ct.resize=Er,Ct._reglType="texture2d",Ct._texture=Ze,pi.profile&&(Ct.stats=Ze.stats),Ct.destroy=function(){Ze.decRef()},Ct}function J(ne,Pe,Ze,Ct,dr,Er){var lr=new Fl(aa);Hu[lr.id]=lr,fi.cubeCount++;var Ke=new Array(6);function ht(sr,Qt,ur,er,Ot,Jt){var Lt,Tr=lr.texInfo;for(Cu.call(Tr),Lt=0;Lt<6;++Lt)Ke[Lt]=Ql();if(typeof sr=="number"||!sr){var Nr=sr|0||1;for(Lt=0;Lt<6;++Lt)pl(Ke[Lt],Nr,Nr)}else if(typeof sr=="object")if(Qt)Dl(Ke[0],sr),Dl(Ke[1],Qt),Dl(Ke[2],ur),Dl(Ke[3],er),Dl(Ke[4],Ot),Dl(Ke[5],Jt);else if(_f(Tr,sr),ro(lr,sr),"faces"in sr){var ci=sr.faces;for(Lt=0;Lt<6;++Lt)Ui(Ke[Lt],lr),Dl(Ke[Lt],ci[Lt])}else for(Lt=0;Lt<6;++Lt)Dl(Ke[Lt],sr);for(Ui(lr,Ke[0]),Tr.genMipmaps?lr.mipmask=(Ke[0].width<<1)-1:lr.mipmask=Ke[0].mipmask,lr.internalformat=Ke[0].internalformat,ht.width=Ke[0].width,ht.height=Ke[0].height,wf(lr),Lt=0;Lt<6;++Lt)Fu(Ke[Lt],Mn+Lt);for(bf(Tr,aa),cu(),pi.profile&&(lr.stats.size=Wo(lr.internalformat,lr.type,ht.width,ht.height,Tr.genMipmaps,!0)),ht.format=dn[lr.internalformat],ht.type=En[lr.type],ht.mag=Yi[Tr.magFilter],ht.min=ga[Tr.minFilter],ht.wrapS=Kn[Tr.wrapS],ht.wrapT=Kn[Tr.wrapT],Lt=0;Lt<6;++Lt)kf(Ke[Lt]);return ht}function bt(sr,Qt,ur,er,Ot){var Jt=ur|0,Lt=er|0,Tr=Ot|0,Nr=Qn();return Ui(Nr,lr),Nr.width=0,Nr.height=0,In(Nr,Qt),Nr.width=Nr.width||(lr.width>>Tr)-Jt,Nr.height=Nr.height||(lr.height>>Tr)-Lt,wf(lr),_s(Nr,Mn+sr,Jt,Lt,Tr),cu(),Mo(Nr),ht}function Kt(sr){var Qt=sr|0;if(Qt!==lr.width){ht.width=lr.width=Qt,ht.height=lr.height=Qt,wf(lr);for(var ur=0;ur<6;++ur)for(var er=0;lr.mipmask>>er;++er)Be.texImage2D(Mn+ur,er,lr.format,Qt>>er,Qt>>er,0,lr.format,lr.type,null);return cu(),pi.profile&&(lr.stats.size=Wo(lr.internalformat,lr.type,ht.width,ht.height,!1,!0)),ht}}return ht(ne,Pe,Ze,Ct,dr,Er),ht.subimage=bt,ht.resize=Kt,ht._reglType="textureCube",ht._texture=lr,pi.profile&&(ht.stats=lr.stats),ht.destroy=function(){lr.decRef()},ht}function O(){for(var ne=0;ne>Ct,Ze.height>>Ct,0,Ze.internalformat,Ze.type,null);else for(var dr=0;dr<6;++dr)Be.texImage2D(Mn+dr,Ct,Ze.internalformat,Ze.width>>Ct,Ze.height>>Ct,0,Ze.internalformat,Ze.type,null);bf(Ze.texInfo,Ze.target)})}function _e(){for(var ne=0;ne=0?kf=!0:Bn.indexOf(Cu)>=0&&(kf=!1))),("depthTexture"in Fl||"depthStencilTexture"in Fl)&&(yf=!!(Fl.depthTexture||Fl.depthStencilTexture)),"depth"in Fl&&(typeof Fl.depth=="boolean"?Fu=Fl.depth:(Lf=Fl.depth,mf=!1)),"stencil"in Fl&&(typeof Fl.stencil=="boolean"?mf=Fl.stencil:(Hu=Fl.stencil,Fu=!1)),"depthStencil"in Fl&&(typeof Fl.depthStencil=="boolean"?Fu=mf=Fl.depthStencil:(hf=Fl.depthStencil,Fu=!1,mf=!1))}var cu=null,Y=null,R=null,J=null;if(Array.isArray(Ql))cu=Ql.map(Ni);else if(Ql)cu=[Ni(Ql)];else for(cu=new Array(bf),nl=0;nl0&&(Mo.depth=In[0].depth,Mo.stencil=In[0].stencil,Mo.depthStencil=In[0].depthStencil),In[Qn]?In[Qn](Mo):In[Qn]=Ui(Mo)}return e(Va,{width:nl,height:nl,color:Cu})}function _s(ul){var Qn,Mo=ul|0;if(Mo===Va.width)return Va;var nl=Va.color;for(Qn=0;Qn=nl.byteLength?pl.subdata(nl):(pl.destroy(),Ui.buffers[ul]=null)),Ui.buffers[ul]||(pl=Ui.buffers[ul]=mi.create(Qn,Ss,!1,!0)),Mo.buffer=mi.getBuffer(pl),Mo.size=Mo.buffer.dimension|0,Mo.normalized=!1,Mo.type=Mo.buffer.dtype,Mo.offset=0,Mo.stride=0,Mo.divisor=0,Mo.state=1,Va[ul]=1}else mi.getBuffer(Qn)?(Mo.buffer=mi.getBuffer(Qn),Mo.size=Mo.buffer.dimension|0,Mo.normalized=!1,Mo.type=Mo.buffer.dtype,Mo.offset=0,Mo.stride=0,Mo.divisor=0,Mo.state=1):mi.getBuffer(Qn.buffer)?(Mo.buffer=mi.getBuffer(Qn.buffer),Mo.size=(+Qn.size||Mo.buffer.dimension)|0,Mo.normalized=!!Qn.normalized||!1,"type"in Qn?Mo.type=di[Qn.type]:Mo.type=Mo.buffer.dtype,Mo.offset=(Qn.offset||0)|0,Mo.stride=(Qn.stride||0)|0,Mo.divisor=(Qn.divisor||0)|0,Mo.state=1):"x"in Qn&&(Mo.x=+Qn.x||0,Mo.y=+Qn.y||0,Mo.z=+Qn.z||0,Mo.w=+Qn.w||0,Mo.state=2)}for(var Dl=0;Dl1)for(var na=0;naWr&&(Wr=_i.stats.uniformsCount)}),Wr},ar.getMaxAttributesCount=function(){var Wr=0;return wn.forEach(function(_i){_i.stats.attributesCount>Wr&&(Wr=_i.stats.attributesCount)}),Wr});function Ni(){mi={},fi={};for(var Wr=0;Wr16&&(ar=Pi(ar,Be.length*8));for(var Qr=Array(16),mi=Array(16),fi=0;fi<16;fi++)Qr[fi]=ar[fi]^909522486,mi[fi]=ar[fi]^1549556828;var pi=Pi(Qr.concat(Bs(qt)),512+qt.length*8);return At(Pi(mi.concat(pi),768))}function Ms(Be){for(var qt=Ro?"0123456789ABCDEF":"0123456789abcdef",ar="",Qr,mi=0;mi>>4&15)+qt.charAt(Qr&15);return ar}function jo(Be){for(var qt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ar="",Qr=Be.length,mi=0;miBe.length*8?ar+=tl:ar+=qt.charAt(fi>>>6*(3-pi)&63);return ar}function Rs(Be,qt){var ar=qt.length,Qr=Array(),mi,fi,pi,on,Bn=Array(Math.ceil(Be.length/2));for(mi=0;mi0;){for(on=Array(),pi=0,mi=0;mi0||fi>0)&&(on[on.length]=fi);Qr[Qr.length]=pi,Bn=on}var Ln="";for(mi=Qr.length-1;mi>=0;mi--)Ln+=qt.charAt(Qr[mi]);var wn=Math.ceil(Be.length*8/(Math.log(qt.length)/Math.log(2)));for(mi=Ln.length;mi>>6&31,128|Qr&63):Qr<=65535?qt+=String.fromCharCode(224|Qr>>>12&15,128|Qr>>>6&63,128|Qr&63):Qr<=2097151&&(qt+=String.fromCharCode(240|Qr>>>18&7,128|Qr>>>12&63,128|Qr>>>6&63,128|Qr&63));return qt}function Bs(Be){for(var qt=Array(Be.length>>2),ar=0;ar>5]|=(Be.charCodeAt(ar/8)&255)<<24-ar%32;return qt}function At(Be){for(var qt="",ar=0;ar>5]>>>24-ar%32&255);return qt}function Gt(Be,qt){return Be>>>qt|Be<<32-qt}function wr(Be,qt){return Be>>>qt}function mr(Be,qt,ar){return Be&qt^~Be&ar}function Or(Be,qt,ar){return Be&qt^Be&ar^qt&ar}function gi(Be){return Gt(Be,2)^Gt(Be,13)^Gt(Be,22)}function Ti(Be){return Gt(Be,6)^Gt(Be,11)^Gt(Be,25)}function ki(Be){return Gt(Be,7)^Gt(Be,18)^wr(Be,3)}function Ji(Be){return Gt(Be,17)^Gt(Be,19)^wr(Be,10)}var Fn=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Pi(Be,qt){var ar=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Qr=new Array(64),mi,fi,pi,on,Bn,Ln,wn,Ls,ua,Hn,Ni,Wr;for(Be[qt>>5]|=128<<24-qt%32,Be[(qt+64>>9<<4)+15]=qt,ua=0;ua>16)+(qt>>16)+(ar>>16);return Qr<<16|ar&65535}function Li(Be){return Array.prototype.slice.call(Be)}function Si(Be){return Li(Be).join("")}function Gn(Be){var qt=Be&&Be.cache,ar=0,Qr=[],mi=[],fi=[];function pi(Ni,Wr){var _i=Wr&&Wr.stable;if(!_i){for(var dn=0;dn0&&(Ni.push(En,"="),Ni.push.apply(Ni,Li(arguments)),Ni.push(";")),En}return e(Wr,{def:dn,toString:function(){return Si([_i.length>0?"var "+_i.join(",")+";":"",Si(Ni)])}})}function Bn(){var Ni=on(),Wr=on(),_i=Ni.toString,dn=Wr.toString;function En(Yi,ga){Wr(Yi,ga,"=",Ni.def(Yi,ga),";")}return e(function(){Ni.apply(Ni,Li(arguments))},{def:Ni.def,entry:Ni,exit:Wr,save:En,set:function(Yi,ga,Kn){En(Yi,ga),Ni(Yi,ga,"=",Kn,";")},toString:function(){return _i()+dn()}})}function Ln(){var Ni=Si(arguments),Wr=Bn(),_i=Bn(),dn=Wr.toString,En=_i.toString;return e(Wr,{then:function(){return Wr.apply(Wr,Li(arguments)),this},else:function(){return _i.apply(_i,Li(arguments)),this},toString:function(){var Yi=En();return Yi&&(Yi="else{"+Yi+"}"),Si(["if(",Ni,"){",dn(),"}",Yi])}})}var wn=on(),Ls={};function ua(Ni,Wr){var _i=[];function dn(){var hs="a"+_i.length;return _i.push(hs),hs}Wr=Wr||0;for(var En=0;En":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},zi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Xi={cw:ze,ccw:je};function pn(Be){return Array.isArray(Be)||_r(Be)||Ht(Be)}function sn(Be){return Be.sort(function(qt,ar){return qt===ee?-1:ar===ee?1:qt=1,Qr>=2,qt)}else if(ar===Ks){var vi=Be.data;return new bi(vi.thisDep,vi.contextDep,vi.propDep,qt)}else{if(ar===dl)return new bi(!1,!1,!1,qt);if(ar===xl){for(var fi=!1,di=!1,on=!1,Bn=0;Bn=1&&(di=!0),wn>=2&&(on=!0)}else Ln.type===Ks&&(fi=fi||Ln.data.thisDep,di=di||Ln.data.contextDep,on=on||Ln.data.propDep)}return new bi(fi,di,on,qt)}else return new bi(ar===Cs,ar===is,ar===zn,qt)}}var js=new bi(!1,!1,!1,function(){});function El(Be,qt,ar,Qr,vi,fi,di,on,Bn,Ln,wn,Ls,ua,Hn,Ni,Hr){var _i=Ln.Record,dn={add:32774,subtract:32778,"reverse subtract":32779};ar.ext_blend_minmax&&(dn.min=$e,dn.max=st);var En=ar.angle_instanced_arrays,Yi=ar.webgl_draw_buffers,ga=ar.oes_vertex_array_object,Kn={dirty:!0,profile:Hr.profile},hs={},$i=[],Ui={},ro={};function na(Je){return Je.replace(".","_")}function On(Je,ht,wt){var Kt=na(Je);$i.push(Je),hs[Kt]=Kn[Kt]=!!wt,Ui[Kt]=ht}function In(Je,ht,wt){var Kt=na(Je);$i.push(Je),Array.isArray(wt)?(Kn[Kt]=wt.slice(),hs[Kt]=wt.slice()):Kn[Kt]=hs[Kt]=wt,ro[Kt]=ht}function Va(Je){return!!isNaN(Je)}On(Ol,hn),On(bl,Mi),In(eu,"blendColor",[0,0,0,0]),In(Zl,"blendEquationSeparate",[zr,zr]),In(Vl,"blendFuncSeparate",[Cr,hr,Cr,hr]),On(ja,Yn,!0),In(ns,"depthFunc",ui),In(Js,"depthRange",[0,1]),In(cs,"depthMask",!0),In(sl,sl,[!0,!0,!0,!0]),On(ll,si),In(il,"cullFace",se),In(zl,zl,je),In(Ml,Ml,1),On(Rl,Fo),In(Al,"polygonOffset",[0,0]),On(Ll,vl),On(ms,Us),In(Os,"sampleCoverage",[1,!1]),On(Xl,Zn),In(Gl,"stencilMask",-1),In(Ul,"stencilFunc",[jt,0,-1]),In(le,"stencilOpSeparate",[Z,_t,_t,_t]),In(w,"stencilOpSeparate",[se,_t,_t,_t]),On(q,Ua),In(Q,"scissor",[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]),In(ee,ee,[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]);var _s={gl:Be,context:ua,strings:qt,next:hs,current:Kn,draw:Ls,elements:fi,buffer:vi,shader:wn,attributes:Ln.state,vao:Ln,uniforms:Bn,framebuffer:on,extensions:ar,timer:Hn,isBufferArgs:pn},ul={primTypes:ti,compareFuncs:pi,blendFuncs:fn,blendEquations:dn,stencilOps:zi,glTypes:mi,orientationType:Xi};Yi&&(ul.backBuffer=[se],ul.drawBuffer=S(Qr.maxDrawbuffers,function(Je){return Je===0?[0]:S(Je,function(ht){return Oi+ht})}));var Qn=0;function Mo(){var Je=Gn({cache:Ni}),ht=Je.link,wt=Je.global;Je.id=Qn++,Je.batchId="0";var Kt=ht(_s),sr=Je.shared={props:"a0"};Object.keys(_s).forEach(function(Jt){sr[Jt]=wt.def(Kt,".",Jt)});var Qt=Je.next={},fr=Je.current={};Object.keys(ro).forEach(function(Jt){Array.isArray(Kn[Jt])&&(Qt[Jt]=wt.def(sr.next,".",Jt),fr[Jt]=wt.def(sr.current,".",Jt))});var er=Je.constants={};Object.keys(ul).forEach(function(Jt){er[Jt]=wt.def(JSON.stringify(ul[Jt]))}),Je.invoke=function(Jt,Lt){switch(Lt.type){case va:var Tr=["this",sr.context,sr.props,Je.batchId];return Jt.def(ht(Lt.data),".call(",Tr.slice(0,Math.max(Lt.data.length+1,4)),")");case zn:return Jt.def(sr.props,Lt.data);case is:return Jt.def(sr.context,Lt.data);case Cs:return Jt.def("this",Lt.data);case Ks:return Lt.data.append(Je,Jt),Lt.data.ref;case dl:return Lt.data.toString();case xl:return Lt.data.map(function(qr){return Je.invoke(Jt,qr)})}},Je.attribCache={};var Ot={};return Je.scopeAttrib=function(Jt){var Lt=qt.id(Jt);if(Lt in Ot)return Ot[Lt];var Tr=Ln.scope[Lt];Tr||(Tr=Ln.scope[Lt]=new _i);var qr=Ot[Lt]=ht(Tr);return qr},Je}function nl(Je){var ht=Je.static,wt=Je.dynamic,Kt;if(ue in ht){var sr=!!ht[ue];Kt=no(function(fr,er){return sr}),Kt.enable=sr}else if(ue in wt){var Qt=wt[ue];Kt=Xo(Qt,function(fr,er){return fr.invoke(er,Qt)})}return Kt}function pl(Je,ht){var wt=Je.static,Kt=Je.dynamic;if(Ve in wt){var sr=wt[Ve];return sr?(sr=on.getFramebuffer(sr),no(function(fr,er){var Ot=fr.link(sr),Jt=fr.shared;er.set(Jt.framebuffer,".next",Ot);var Lt=Jt.context;return er.set(Lt,"."+Ge,Ot+".width"),er.set(Lt,"."+lt,Ot+".height"),Ot})):no(function(fr,er){var Ot=fr.shared;er.set(Ot.framebuffer,".next","null");var Jt=Ot.context;return er.set(Jt,"."+Ge,Jt+"."+nr),er.set(Jt,"."+lt,Jt+"."+cr),"null"})}else if(Ve in Kt){var Qt=Kt[Ve];return Xo(Qt,function(fr,er){var Ot=fr.invoke(er,Qt),Jt=fr.shared,Lt=Jt.framebuffer,Tr=er.def(Lt,".getFramebuffer(",Ot,")");er.set(Lt,".next",Tr);var qr=Jt.context;return er.set(qr,"."+Ge,Tr+"?"+Tr+".width:"+qr+"."+nr),er.set(qr,"."+lt,Tr+"?"+Tr+".height:"+qr+"."+cr),Tr})}else return null}function Dl(Je,ht,wt){var Kt=Je.static,sr=Je.dynamic;function Qt(Ot){if(Ot in Kt){var Jt=Kt[Ot],Lt=!0,Tr=Jt.x|0,qr=Jt.y|0,ci,Cn;return"width"in Jt?ci=Jt.width|0:Lt=!1,"height"in Jt?Cn=Jt.height|0:Lt=!1,new bi(!Lt&&ht&&ht.thisDep,!Lt&&ht&&ht.contextDep,!Lt&&ht&&ht.propDep,function(Xa,ca){var An=Xa.shared.context,Pn=ci;"width"in Jt||(Pn=ca.def(An,".",Ge,"-",Tr));var Nn=Cn;return"height"in Jt||(Nn=ca.def(An,".",lt,"-",qr)),[Tr,qr,Pn,Nn]})}else if(Ot in sr){var Ki=sr[Ot],yn=Xo(Ki,function(Xa,ca){var An=Xa.invoke(ca,Ki),Pn=Xa.shared.context,Nn=ca.def(An,".x|0"),xa=ca.def(An,".y|0"),Zo=ca.def('"width" in ',An,"?",An,".width|0:","(",Pn,".",Ge,"-",Nn,")"),ru=ca.def('"height" in ',An,"?",An,".height|0:","(",Pn,".",lt,"-",xa,")");return[Nn,xa,Zo,ru]});return ht&&(yn.thisDep=yn.thisDep||ht.thisDep,yn.contextDep=yn.contextDep||ht.contextDep,yn.propDep=yn.propDep||ht.propDep),yn}else return ht?new bi(ht.thisDep,ht.contextDep,ht.propDep,function(Xa,ca){var An=Xa.shared.context;return[0,0,ca.def(An,".",Ge),ca.def(An,".",lt)]}):null}var fr=Qt(ee);if(fr){var er=fr;fr=new bi(fr.thisDep,fr.contextDep,fr.propDep,function(Ot,Jt){var Lt=er.append(Ot,Jt),Tr=Ot.shared.context;return Jt.set(Tr,"."+tt,Lt[2]),Jt.set(Tr,"."+vt,Lt[3]),Lt})}return{viewport:fr,scissor_box:Qt(Q)}}function Fu(Je,ht){var wt=Je.static,Kt=typeof wt[yt]=="string"&&typeof wt[et]=="string";if(Kt){if(Object.keys(ht.dynamic).length>0)return null;var sr=ht.static,Qt=Object.keys(sr);if(Qt.length>0&&typeof sr[Qt[0]]=="number"){for(var fr=[],er=0;er"+Nn+"?"+Lt+".constant["+Nn+"]:0;"}).join(""),"}}else{","if(",ci,"(",Lt,".buffer)){",Xa,"=",Cn,".createStream(",Rr,",",Lt,".buffer);","}else{",Xa,"=",Cn,".getBuffer(",Lt,".buffer);","}",ca,'="type" in ',Lt,"?",qr.glTypes,"[",Lt,".type]:",Xa,".dtype;",Ki.normalized,"=!!",Lt,".normalized;");function An(Pn){Jt(Ki[Pn],"=",Lt,".",Pn,"|0;")}return An("size"),An("offset"),An("stride"),An("divisor"),Jt("}}"),Jt.exit("if(",Ki.isStream,"){",Cn,".destroyStream(",Xa,");","}"),Ki}sr[Qt]=Xo(fr,er)}),sr}function bf(Je){var ht=Je.static,wt=Je.dynamic,Kt={};return Object.keys(ht).forEach(function(sr){var Qt=ht[sr];Kt[sr]=no(function(fr,er){return typeof Qt=="number"||typeof Qt=="boolean"?""+Qt:fr.link(Qt)})}),Object.keys(wt).forEach(function(sr){var Qt=wt[sr];Kt[sr]=Xo(Qt,function(fr,er){return fr.invoke(er,Qt)})}),Kt}function Lf(Je,ht,wt,Kt,sr){var Qt=Je.static,fr=Je.dynamic,er=Fu(Je,ht),Ot=pl(Je,sr),Jt=Dl(Je,Ot,sr),Lt=Ql(Je,sr),Tr=kf(Je,sr),qr=mf(Je,sr,er);function ci(An){var Pn=Jt[An];Pn&&(Tr[An]=Pn)}ci(ee),ci(na(Q));var Cn=Object.keys(Tr).length>0,Ki={framebuffer:Ot,draw:Lt,shader:qr,state:Tr,dirty:Cn,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Ki.profile=nl(Je,sr),Ki.uniforms=Cu(wt,sr),Ki.drawVAO=Ki.scopeVAO=Lt.vao,!Ki.drawVAO&&qr.program&&!er&&ar.angle_instanced_arrays&&Lt.static.elements){var yn=!0,Xa=qr.program.attributes.map(function(An){var Pn=ht.static[An];return yn=yn&&!!Pn,Pn});if(yn&&Xa.length>0){var ca=Ln.getVAO(Ln.createVAO({attributes:Xa,elements:Lt.static.elements}));Ki.drawVAO=new bi(null,null,null,function(An,Pn){return An.link(ca)}),Ki.useVAO=!0}}return er?Ki.useVAO=!0:Ki.attributes=_f(ht,sr),Ki.context=bf(Kt,sr),Ki}function Gu(Je,ht,wt){var Kt=Je.shared,sr=Kt.context,Qt=Je.scope();Object.keys(wt).forEach(function(fr){ht.save(sr,"."+fr);var er=wt[fr],Ot=er.append(Je,ht);Array.isArray(Ot)?Qt(sr,".",fr,"=[",Ot.join(),"];"):Qt(sr,".",fr,"=",Ot,";")}),ht(Qt)}function hf(Je,ht,wt,Kt){var sr=Je.shared,Qt=sr.gl,fr=sr.framebuffer,er;Yi&&(er=ht.def(sr.extensions,".webgl_draw_buffers"));var Ot=Je.constants,Jt=Ot.drawBuffer,Lt=Ot.backBuffer,Tr;wt?Tr=wt.append(Je,ht):Tr=ht.def(fr,".next"),Kt||ht("if(",Tr,"!==",fr,".cur){"),ht("if(",Tr,"){",Qt,".bindFramebuffer(",$r,",",Tr,".framebuffer);"),Yi&&ht(er,".drawBuffersWEBGL(",Jt,"[",Tr,".colorAttachments.length]);"),ht("}else{",Qt,".bindFramebuffer(",$r,",null);"),Yi&&ht(er,".drawBuffersWEBGL(",Lt,");"),ht("}",fr,".cur=",Tr,";"),Kt||ht("}")}function yf(Je,ht,wt){var Kt=Je.shared,sr=Kt.gl,Qt=Je.current,fr=Je.next,er=Kt.current,Ot=Kt.next,Jt=Je.cond(er,".dirty");$i.forEach(function(Lt){var Tr=na(Lt);if(!(Tr in wt.state)){var qr,ci;if(Tr in fr){qr=fr[Tr],ci=Qt[Tr];var Cn=S(Kn[Tr].length,function(yn){return Jt.def(qr,"[",yn,"]")});Jt(Je.cond(Cn.map(function(yn,Xa){return yn+"!=="+ci+"["+Xa+"]"}).join("||")).then(sr,".",ro[Tr],"(",Cn,");",Cn.map(function(yn,Xa){return ci+"["+Xa+"]="+yn}).join(";"),";"))}else{qr=Jt.def(Ot,".",Tr);var Ki=Je.cond(qr,"!==",er,".",Tr);Jt(Ki),Tr in Ui?Ki(Je.cond(qr).then(sr,".enable(",Ui[Tr],");").else(sr,".disable(",Ui[Tr],");"),er,".",Tr,"=",qr,";"):Ki(sr,".",ro[Tr],"(",qr,");",er,".",Tr,"=",qr,";")}}}),Object.keys(wt.state).length===0&&Jt(er,".dirty=false;"),ht(Jt)}function Fl(Je,ht,wt,Kt){var sr=Je.shared,Qt=Je.current,fr=sr.current,er=sr.gl,Ot;sn(Object.keys(wt)).forEach(function(Jt){var Lt=wt[Jt];if(!(Kt&&!Kt(Lt))){var Tr=Lt.append(Je,ht);if(Ui[Jt]){var qr=Ui[Jt];xo(Lt)?(Ot=Je.link(Tr,{stable:!0}),ht(Je.cond(Ot).then(er,".enable(",qr,");").else(er,".disable(",qr,");")),ht(fr,".",Jt,"=",Ot,";")):(ht(Je.cond(Tr).then(er,".enable(",qr,");").else(er,".disable(",qr,");")),ht(fr,".",Jt,"=",Tr,";"))}else if(Qi(Tr)){var ci=Qt[Jt];ht(er,".",ro[Jt],"(",Tr,");",Tr.map(function(Cn,Ki){return ci+"["+Ki+"]="+Cn}).join(";"),";")}else xo(Lt)?(Ot=Je.link(Tr,{stable:!0}),ht(er,".",ro[Jt],"(",Ot,");",fr,".",Jt,"=",Ot,";")):ht(er,".",ro[Jt],"(",Tr,");",fr,".",Jt,"=",Tr,";")}})}function wf(Je,ht){En&&(Je.instancing=ht.def(Je.shared.extensions,".angle_instanced_arrays"))}function cu(Je,ht,wt,Kt,sr){var Qt=Je.shared,fr=Je.stats,er=Qt.current,Ot=Qt.timer,Jt=wt.profile;function Lt(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var Tr,qr;function ci(An){Tr=ht.def(),An(Tr,"=",Lt(),";"),typeof sr=="string"?An(fr,".count+=",sr,";"):An(fr,".count++;"),Hn&&(Kt?(qr=ht.def(),An(qr,"=",Ot,".getNumPendingQueries();")):An(Ot,".beginQuery(",fr,");"))}function Cn(An){An(fr,".cpuTime+=",Lt(),"-",Tr,";"),Hn&&(Kt?An(Ot,".pushScopeStats(",qr,",",Ot,".getNumPendingQueries(),",fr,");"):An(Ot,".endQuery();"))}function Ki(An){var Pn=ht.def(er,".profile");ht(er,".profile=",An,";"),ht.exit(er,".profile=",Pn,";")}var yn;if(Jt){if(xo(Jt)){Jt.enable?(ci(ht),Cn(ht.exit),Ki("true")):Ki("false");return}yn=Jt.append(Je,ht),Ki(yn)}else yn=ht.def(er,".profile");var Xa=Je.block();ci(Xa),ht("if(",yn,"){",Xa,"}");var ca=Je.block();Cn(ca),ht.exit("if(",yn,"){",ca,"}")}function Y(Je,ht,wt,Kt,sr){var Qt=Je.shared;function fr(Ot){switch(Ot){case au:case ou:case Wu:return 2;case Sl:case Pu:case Qu:return 3;case Yl:case iu:case Ku:return 4;default:return 1}}function er(Ot,Jt,Lt){var Tr=Qt.gl,qr=ht.def(Ot,".location"),ci=ht.def(Qt.attributes,"[",qr,"]"),Cn=Lt.state,Ki=Lt.buffer,yn=[Lt.x,Lt.y,Lt.z,Lt.w],Xa=["buffer","normalized","offset","stride"];function ca(){ht("if(!",ci,".buffer){",Tr,".enableVertexAttribArray(",qr,");}");var Pn=Lt.type,Nn;if(Lt.size?Nn=ht.def(Lt.size,"||",Jt):Nn=Jt,ht("if(",ci,".type!==",Pn,"||",ci,".size!==",Nn,"||",Xa.map(function(Zo){return ci+"."+Zo+"!=="+Lt[Zo]}).join("||"),"){",Tr,".bindBuffer(",Rr,",",Ki,".buffer);",Tr,".vertexAttribPointer(",[qr,Nn,Pn,Lt.normalized,Lt.stride,Lt.offset],");",ci,".type=",Pn,";",ci,".size=",Nn,";",Xa.map(function(Zo){return ci+"."+Zo+"="+Lt[Zo]+";"}).join(""),"}"),En){var xa=Lt.divisor;ht("if(",ci,".divisor!==",xa,"){",Je.instancing,".vertexAttribDivisorANGLE(",[qr,xa],");",ci,".divisor=",xa,";}")}}function An(){ht("if(",ci,".buffer){",Tr,".disableVertexAttribArray(",qr,");",ci,".buffer=null;","}if(",ta.map(function(Pn,Nn){return ci+"."+Pn+"!=="+yn[Nn]}).join("||"),"){",Tr,".vertexAttrib4f(",qr,",",yn,");",ta.map(function(Pn,Nn){return ci+"."+Pn+"="+yn[Nn]+";"}).join(""),"}")}Cn===ia?ca():Cn===pa?An():(ht("if(",Cn,"===",ia,"){"),ca(),ht("}else{"),An(),ht("}"))}Kt.forEach(function(Ot){var Jt=Ot.name,Lt=wt.attributes[Jt],Tr;if(Lt){if(!sr(Lt))return;Tr=Lt.append(Je,ht)}else{if(!sr(js))return;var qr=Je.scopeAttrib(Jt);Tr={},Object.keys(new _i).forEach(function(ci){Tr[ci]=ht.def(qr,".",ci)})}er(Je.link(Ot),fr(Ot.info.type),Tr)})}function R(Je,ht,wt,Kt,sr,Qt){for(var fr=Je.shared,er=fr.gl,Ot,Jt=0;Jt1){for(var yu=[],Du=[],vu=0;vu>1)",Ki],");")}function xa(){wt(yn,".drawArraysInstancedANGLE(",[qr,ci,Cn,Ki],");")}Lt&&Lt!=="null"?ca?Nn():(wt("if(",Lt,"){"),Nn(),wt("}else{"),xa(),wt("}")):xa()}function Pn(){function Nn(){wt(Qt+".drawElements("+[qr,Cn,Xa,ci+"<<(("+Xa+"-"+ya+")>>1)"]+");")}function xa(){wt(Qt+".drawArrays("+[qr,ci,Cn]+");")}Lt&&Lt!=="null"?ca?Nn():(wt("if(",Lt,"){"),Nn(),wt("}else{"),xa(),wt("}")):xa()}En&&(typeof Ki!="number"||Ki>=0)?typeof Ki=="string"?(wt("if(",Ki,">0){"),An(),wt("}else if(",Ki,"<0){"),Pn(),wt("}")):An():Pn()}function O(Je,ht,wt,Kt,sr){var Qt=Mo(),fr=Qt.proc("body",sr);return En&&(Qt.instancing=fr.def(Qt.shared.extensions,".angle_instanced_arrays")),Je(Qt,fr,wt,Kt),Qt.compile().body}function K(Je,ht,wt,Kt){wf(Je,ht),wt.useVAO?wt.drawVAO?ht(Je.shared.vao,".setVAO(",wt.drawVAO.append(Je,ht),");"):ht(Je.shared.vao,".setVAO(",Je.shared.vao,".targetVAO);"):(ht(Je.shared.vao,".setVAO(null);"),Y(Je,ht,wt,Kt.attributes,function(){return!0})),R(Je,ht,wt,Kt.uniforms,function(){return!0},!1),J(Je,ht,ht,wt)}function ge(Je,ht){var wt=Je.proc("draw",1);wf(Je,wt),Gu(Je,wt,ht.context),hf(Je,wt,ht.framebuffer),yf(Je,wt,ht),Fl(Je,wt,ht.state),cu(Je,wt,ht,!1,!0);var Kt=ht.shader.progVar.append(Je,wt);if(wt(Je.shared.gl,".useProgram(",Kt,".program);"),ht.shader.program)K(Je,wt,ht,ht.shader.program);else{wt(Je.shared.vao,".setVAO(null);");var sr=Je.global.def("{}"),Qt=wt.def(Kt,".id"),fr=wt.def(sr,"[",Qt,"]");wt(Je.cond(fr).then(fr,".call(this,a0);").else(fr,"=",sr,"[",Qt,"]=",Je.link(function(er){return O(K,Je,ht,er,1)}),"(",Kt,");",fr,".call(this,a0);"))}Object.keys(ht.state).length>0&&wt(Je.shared.current,".dirty=true;"),Je.shared.vao&&wt(Je.shared.vao,".setVAO(null);")}function ne(Je,ht,wt,Kt){Je.batchId="a1",wf(Je,ht);function sr(){return!0}Y(Je,ht,wt,Kt.attributes,sr),R(Je,ht,wt,Kt.uniforms,sr,!1),J(Je,ht,ht,wt)}function Le(Je,ht,wt,Kt){wf(Je,ht);var sr=wt.contextDep,Qt=ht.def(),fr="a0",er="a1",Ot=ht.def();Je.shared.props=Ot,Je.batchId=Qt;var Jt=Je.scope(),Lt=Je.scope();ht(Jt.entry,"for(",Qt,"=0;",Qt,"<",er,";++",Qt,"){",Ot,"=",fr,"[",Qt,"];",Lt,"}",Jt.exit);function Tr(Xa){return Xa.contextDep&&sr||Xa.propDep}function qr(Xa){return!Tr(Xa)}if(wt.needsContext&&Gu(Je,Lt,wt.context),wt.needsFramebuffer&&hf(Je,Lt,wt.framebuffer),Fl(Je,Lt,wt.state,Tr),wt.profile&&Tr(wt.profile)&&cu(Je,Lt,wt,!1,!0),Kt)wt.useVAO?wt.drawVAO?Tr(wt.drawVAO)?Lt(Je.shared.vao,".setVAO(",wt.drawVAO.append(Je,Lt),");"):Jt(Je.shared.vao,".setVAO(",wt.drawVAO.append(Je,Jt),");"):Jt(Je.shared.vao,".setVAO(",Je.shared.vao,".targetVAO);"):(Jt(Je.shared.vao,".setVAO(null);"),Y(Je,Jt,wt,Kt.attributes,qr),Y(Je,Lt,wt,Kt.attributes,Tr)),R(Je,Jt,wt,Kt.uniforms,qr,!1),R(Je,Lt,wt,Kt.uniforms,Tr,!0),J(Je,Jt,Lt,wt);else{var ci=Je.global.def("{}"),Cn=wt.shader.progVar.append(Je,Lt),Ki=Lt.def(Cn,".id"),yn=Lt.def(ci,"[",Ki,"]");Lt(Je.shared.gl,".useProgram(",Cn,".program);","if(!",yn,"){",yn,"=",ci,"[",Ki,"]=",Je.link(function(Xa){return O(ne,Je,wt,Xa,2)}),"(",Cn,");}",yn,".call(this,a0[",Qt,"],",Qt,");")}}function Ze(Je,ht){var wt=Je.proc("batch",2);Je.batchId="0",wf(Je,wt);var Kt=!1,sr=!0;Object.keys(ht.context).forEach(function(ci){Kt=Kt||ht.context[ci].propDep}),Kt||(Gu(Je,wt,ht.context),sr=!1);var Qt=ht.framebuffer,fr=!1;Qt?(Qt.propDep?Kt=fr=!0:Qt.contextDep&&Kt&&(fr=!0),fr||hf(Je,wt,Qt)):hf(Je,wt,null),ht.state.viewport&&ht.state.viewport.propDep&&(Kt=!0);function er(ci){return ci.contextDep&&Kt||ci.propDep}yf(Je,wt,ht),Fl(Je,wt,ht.state,function(ci){return!er(ci)}),(!ht.profile||!er(ht.profile))&&cu(Je,wt,ht,!1,"a1"),ht.contextDep=Kt,ht.needsContext=sr,ht.needsFramebuffer=fr;var Ot=ht.shader.progVar;if(Ot.contextDep&&Kt||Ot.propDep)Le(Je,wt,ht,null);else{var Jt=Ot.append(Je,wt);if(wt(Je.shared.gl,".useProgram(",Jt,".program);"),ht.shader.program)Le(Je,wt,ht,ht.shader.program);else{wt(Je.shared.vao,".setVAO(null);");var Lt=Je.global.def("{}"),Tr=wt.def(Jt,".id"),qr=wt.def(Lt,"[",Tr,"]");wt(Je.cond(qr).then(qr,".call(this,a0,a1);").else(qr,"=",Lt,"[",Tr,"]=",Je.link(function(ci){return O(Le,Je,ht,ci,2)}),"(",Jt,");",qr,".call(this,a0,a1);"))}}Object.keys(ht.state).length>0&&wt(Je.shared.current,".dirty=true;"),Je.shared.vao&&wt(Je.shared.vao,".setVAO(null);")}function Ct(Je,ht){var wt=Je.proc("scope",3);Je.batchId="a2";var Kt=Je.shared,sr=Kt.current;if(Gu(Je,wt,ht.context),ht.framebuffer&&ht.framebuffer.append(Je,wt),sn(Object.keys(ht.state)).forEach(function(er){var Ot=ht.state[er],Jt=Ot.append(Je,wt);Qi(Jt)?Jt.forEach(function(Lt,Tr){Va(Lt)?wt.set(Je.next[er],"["+Tr+"]",Lt):wt.set(Je.next[er],"["+Tr+"]",Je.link(Lt,{stable:!0}))}):xo(Ot)?wt.set(Kt.next,"."+er,Je.link(Jt,{stable:!0})):wt.set(Kt.next,"."+er,Jt)}),cu(Je,wt,ht,!0,!0),[Dt,kr,or,Vr,ir].forEach(function(er){var Ot=ht.draw[er];if(Ot){var Jt=Ot.append(Je,wt);Va(Jt)?wt.set(Kt.draw,"."+er,Jt):wt.set(Kt.draw,"."+er,Je.link(Jt),{stable:!0})}}),Object.keys(ht.uniforms).forEach(function(er){var Ot=ht.uniforms[er].append(Je,wt);Array.isArray(Ot)&&(Ot="["+Ot.map(function(Jt){return Va(Jt)?Jt:Je.link(Jt,{stable:!0})})+"]"),wt.set(Kt.uniforms,"["+Je.link(qt.id(er),{stable:!0})+"]",Ot)}),Object.keys(ht.attributes).forEach(function(er){var Ot=ht.attributes[er].append(Je,wt),Jt=Je.scopeAttrib(er);Object.keys(new _i).forEach(function(Lt){wt.set(Jt,"."+Lt,Ot[Lt])})}),ht.scopeVAO){var Qt=ht.scopeVAO.append(Je,wt);Va(Qt)?wt.set(Kt.vao,".targetVAO",Qt):wt.set(Kt.vao,".targetVAO",Je.link(Qt,{stable:!0}))}function fr(er){var Ot=ht.shader[er];if(Ot){var Jt=Ot.append(Je,wt);Va(Jt)?wt.set(Kt.shader,"."+er,Jt):wt.set(Kt.shader,"."+er,Je.link(Jt,{stable:!0}))}}fr(et),fr(yt),Object.keys(ht.state).length>0&&(wt(sr,".dirty=true;"),wt.exit(sr,".dirty=true;")),wt("a1(",Je.shared.context,",a0,",Je.batchId,");")}function dr(Je){if(!(typeof Je!="object"||Qi(Je))){for(var ht=Object.keys(Je),wt=0;wt=0;--O){var K=_s[O];K&&K(Ni,null,0)}ar.flush(),wn&&wn.update()}function Dl(){!nl&&_s.length>0&&(nl=d.next(pl))}function Fu(){nl&&(d.cancel(pl),nl=null)}function mf(O){O.preventDefault(),vi=!0,Fu(),ul.forEach(function(K){K()})}function Ql(O){ar.getError(),vi=!1,fi.restore(),hs.restore(),En.restore(),$i.restore(),Ui.restore(),ro.restore(),ga.restore(),wn&&wn.restore(),na.procs.refresh(),Dl(),Qn.forEach(function(K){K()})}Va&&(Va.addEventListener(Au,mf,!1),Va.addEventListener(Tu,Ql,!1));function kf(){_s.length=0,Fu(),Va&&(Va.removeEventListener(Au,mf),Va.removeEventListener(Tu,Ql)),hs.clear(),ro.clear(),Ui.clear(),ga.clear(),$i.clear(),Yi.clear(),En.clear(),wn&&wn.clear(),Mo.forEach(function(O){O()})}function Cu(O){function K(Qt){var fr=e({},Qt);delete fr.uniforms,delete fr.attributes,delete fr.context,delete fr.vao,"stencil"in fr&&fr.stencil.op&&(fr.stencil.opBack=fr.stencil.opFront=fr.stencil.op,delete fr.stencil.op);function er(Ot){if(Ot in fr){var Jt=fr[Ot];delete fr[Ot],Object.keys(Jt).forEach(function(Lt){fr[Ot+"."+Lt]=Jt[Lt]})}}return er("blend"),er("depth"),er("cull"),er("stencil"),er("polygonOffset"),er("scissor"),er("sample"),"vao"in Qt&&(fr.vao=Qt.vao),fr}function ge(Qt,fr){var er={},Ot={};return Object.keys(Qt).forEach(function(Jt){var Lt=Qt[Jt];if(h.isDynamic(Lt)){Ot[Jt]=h.unbox(Lt,Jt);return}else if(fr&&Array.isArray(Lt)){for(var Tr=0;Tr0)return Je.call(this,Kt(Qt|0),Qt|0)}else if(Array.isArray(Qt)){if(Qt.length)return Je.call(this,Qt,Qt.length)}else return ur.call(this,Qt)}return e(sr,{stats:dr,destroy:function(){Mr.destroy()}})}var _f=ro.setFBO=Cu({framebuffer:h.define.call(null,uf,"framebuffer")});function bf(O,K){var ge=0;na.procs.poll();var ne=K.color;ne&&(ar.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),ge|=Vu),"depth"in K&&(ar.clearDepth(+K.depth),ge|=rf),"stencil"in K&&(ar.clearStencil(K.stencil|0),ge|=ds),ar.clear(ge)}function Lf(O){if("framebuffer"in O)if(O.framebuffer&&O.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)_f(e({framebuffer:O.framebuffer.faces[K]},O),bf);else _f(O,bf);else bf(null,O)}function Gu(O){_s.push(O);function K(){var ge=vf(_s,O);function ne(){var Le=vf(_s,ne);_s[Le]=_s[_s.length-1],_s.length-=1,_s.length<=0&&Fu()}_s[ge]=ne}return Dl(),{cancel:K}}function hf(){var O=In.viewport,K=In.scissor_box;O[0]=O[1]=K[0]=K[1]=0,Ni.viewportWidth=Ni.framebufferWidth=Ni.drawingBufferWidth=O[2]=K[2]=ar.drawingBufferWidth,Ni.viewportHeight=Ni.framebufferHeight=Ni.drawingBufferHeight=O[3]=K[3]=ar.drawingBufferHeight}function yf(){Ni.tick+=1,Ni.time=wf(),hf(),na.procs.poll()}function Fl(){$i.refresh(),hf(),na.procs.refresh(),wn&&wn.update()}function wf(){return(p()-Ls)/1e3}Fl();function cu(O,K){var ge;switch(O){case"frame":return Gu(K);case"lost":ge=ul;break;case"restore":ge=Qn;break;case"destroy":ge=Mo;break;default:}return ge.push(K),{cancel:function(){for(var ne=0;ne=0},read:On,destroy:kf,_gl:ar,_refresh:Fl,poll:function(){yf(),wn&&wn.update()},now:wf,stats:on,getCachedCode:Y,preloadCachedCode:R});return qt.onDone(null,J),J}return fc})});var Bqe=Te((A_r,Fqe)=>{"use strict";var J7t=Xy();Fqe.exports=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},Rqe(t)?t={container:t}:$7t(t)?t={container:t}:Q7t(t)?t={gl:t}:t=J7t(t,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),t.pixelRatio||(t.pixelRatio=window.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(typeof t.container=="string"){var r=document.querySelector(t.container);if(!r)throw Error("Element "+t.container+" is not found");t.container=r}Rqe(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=Dqe(),t.container.appendChild(t.canvas),Iqe(t))}else if(!t.canvas)if(typeof document!="undefined")t.container=document.body||document.documentElement,t.canvas=Dqe(),t.container.appendChild(t.canvas),Iqe(t);else throw Error("Not DOM environment. Use headless-gl.");return t.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(n){try{t.gl=t.canvas.getContext(n,t.attrs)}catch(i){}return t.gl}),t.gl};function Iqe(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function Rqe(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function $7t(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function Q7t(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function Dqe(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var qqe=Te((T_r,Oqe)=>{"use strict";var eUt=oK(),tUt=[32,126];Oqe.exports=rUt;function rUt(e){e=e||{};var t=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],r=e.canvas||document.createElement("canvas"),n=e.font,i=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],a=e.chars||tUt;if(n&&typeof n!="string"&&(n=eUt(n)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],s=a[0],u=0;s<=a[1];s++)o[u++]=String.fromCharCode(s);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var l=r.getContext("2d");l.fillStyle="#000",l.fillRect(0,0,r.width,r.height),l.font=n,l.textAlign="center",l.textBaseline="middle",l.fillStyle="#fff";for(var f=i[0]/2,c=i[1]/2,s=0;st[0]-i[0]/2&&(f=i[0]/2,c+=i[1]);return r}});var fK=Te(Gh=>{"use strict";"use restrict";var uK=32;Gh.INT_BITS=uK;Gh.INT_MAX=2147483647;Gh.INT_MIN=-1<0)-(e<0)};Gh.abs=function(e){var t=e>>uK-1;return(e^t)-t};Gh.min=function(e,t){return t^(e^t)&-(e65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,t|=r,t|e>>1};Gh.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};Gh.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function Nqe(e){var t=32;return e&=-e,e&&t--,e&65535&&(t-=16),e&16711935&&(t-=8),e&252645135&&(t-=4),e&858993459&&(t-=2),e&1431655765&&(t-=1),t}Gh.countTrailingZeros=Nqe;Gh.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};Gh.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};Gh.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var bk=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,n=t,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=r&1,--i;e[t]=n<>>8&255]<<16|bk[e>>>16&255]<<8|bk[e>>>24&255]};Gh.interleave2=function(e,t){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1};Gh.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};Gh.interleave3=function(e,t,r){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|=t<<1,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|r<<2};Gh.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};Gh.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>Nqe(e)+1}});var Gqe=Te((M_r,Vqe)=>{"use strict";function Uqe(e,t,r){var n=e[r]|0;if(n<=0)return[];var i=new Array(n),a;if(r===e.length-1)for(a=0;a0)return iUt(e|0,t);break;case"object":if(typeof e.length=="number")return Uqe(e,t,0);break}return[]}Vqe.exports=nUt});var nNe=Te(rc=>{"use strict";var cx=fK(),Mp=Gqe(),Hqe=u2().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:Mp([32,0]),UINT16:Mp([32,0]),UINT32:Mp([32,0]),BIGUINT64:Mp([32,0]),INT8:Mp([32,0]),INT16:Mp([32,0]),INT32:Mp([32,0]),BIGINT64:Mp([32,0]),FLOAT:Mp([32,0]),DOUBLE:Mp([32,0]),DATA:Mp([32,0]),UINT8C:Mp([32,0]),BUFFER:Mp([32,0])});var aUt=typeof Uint8ClampedArray!="undefined",oUt=typeof BigUint64Array!="undefined",sUt=typeof BigInt64Array!="undefined",sd=window.__TYPEDARRAY_POOL;sd.UINT8C||(sd.UINT8C=Mp([32,0]));sd.BIGUINT64||(sd.BIGUINT64=Mp([32,0]));sd.BIGINT64||(sd.BIGINT64=Mp([32,0]));sd.BUFFER||(sd.BUFFER=Mp([32,0]));var v8=sd.DATA,m8=sd.BUFFER;rc.free=function(t){if(Hqe.isBuffer(t))m8[cx.log2(t.length)].push(t);else{if(Object.prototype.toString.call(t)!=="[object ArrayBuffer]"&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,n=cx.log2(r)|0;v8[n].push(t)}};function Wqe(e){if(e){var t=e.length||e.byteLength,r=cx.log2(t);v8[r].push(e)}}function lUt(e){Wqe(e.buffer)}rc.freeUint8=rc.freeUint16=rc.freeUint32=rc.freeBigUint64=rc.freeInt8=rc.freeInt16=rc.freeInt32=rc.freeBigInt64=rc.freeFloat32=rc.freeFloat=rc.freeFloat64=rc.freeDouble=rc.freeUint8Clamped=rc.freeDataView=lUt;rc.freeArrayBuffer=Wqe;rc.freeBuffer=function(t){m8[cx.log2(t.length)].push(t)};rc.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return Ov(t);switch(r){case"uint8":return cK(t);case"uint16":return jqe(t);case"uint32":return Xqe(t);case"int8":return Zqe(t);case"int16":return Yqe(t);case"int32":return Kqe(t);case"float":case"float32":return Jqe(t);case"double":case"float64":return $qe(t);case"uint8_clamped":return Qqe(t);case"bigint64":return tNe(t);case"biguint64":return eNe(t);case"buffer":return iNe(t);case"data":case"dataview":return rNe(t);default:return null}return null};function Ov(t){var t=cx.nextPow2(t),r=cx.log2(t),n=v8[r];return n.length>0?n.pop():new ArrayBuffer(t)}rc.mallocArrayBuffer=Ov;function cK(e){return new Uint8Array(Ov(e),0,e)}rc.mallocUint8=cK;function jqe(e){return new Uint16Array(Ov(2*e),0,e)}rc.mallocUint16=jqe;function Xqe(e){return new Uint32Array(Ov(4*e),0,e)}rc.mallocUint32=Xqe;function Zqe(e){return new Int8Array(Ov(e),0,e)}rc.mallocInt8=Zqe;function Yqe(e){return new Int16Array(Ov(2*e),0,e)}rc.mallocInt16=Yqe;function Kqe(e){return new Int32Array(Ov(4*e),0,e)}rc.mallocInt32=Kqe;function Jqe(e){return new Float32Array(Ov(4*e),0,e)}rc.mallocFloat32=rc.mallocFloat=Jqe;function $qe(e){return new Float64Array(Ov(8*e),0,e)}rc.mallocFloat64=rc.mallocDouble=$qe;function Qqe(e){return aUt?new Uint8ClampedArray(Ov(e),0,e):cK(e)}rc.mallocUint8Clamped=Qqe;function eNe(e){return oUt?new BigUint64Array(Ov(8*e),0,e):null}rc.mallocBigUint64=eNe;function tNe(e){return sUt?new BigInt64Array(Ov(8*e),0,e):null}rc.mallocBigInt64=tNe;function rNe(e){return new DataView(Ov(e),0,e)}rc.mallocDataView=rNe;function iNe(e){e=cx.nextPow2(e);var t=cx.log2(e),r=m8[t];return r.length>0?r.pop():new Hqe(e)}rc.mallocBuffer=iNe;rc.clearCache=function(){for(var t=0;t<32;++t)sd.UINT8[t].length=0,sd.UINT16[t].length=0,sd.UINT32[t].length=0,sd.INT8[t].length=0,sd.INT16[t].length=0,sd.INT32[t].length=0,sd.FLOAT[t].length=0,sd.DOUBLE[t].length=0,sd.BIGUINT64[t].length=0,sd.BIGINT64[t].length=0,sd.UINT8C[t].length=0,v8[t].length=0,m8[t].length=0}});var oNe=Te((k_r,aNe)=>{"use strict";var uUt=Object.prototype.toString;aNe.exports=function(e){var t;return uUt.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var hK=Te((C_r,sNe)=>{sNe.exports=function(t,r){r||(r=[0,""]),t=String(t);var n=parseFloat(t,10);return r[0]=n,r[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",r}});var fNe=Te((L_r,uNe)=>{"use strict";var fUt=hK();uNe.exports=lNe;var wk=96;function dK(e,t){var r=fUt(getComputedStyle(e).getPropertyValue(t));return r[0]*lNe(r[1],e)}function cUt(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=dK(r,"font-size")/128;return t.removeChild(r),n}function lNe(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),(t===window||t===document)&&(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return cUt(e,t);case"em":return dK(t,"font-size");case"rem":return dK(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return wk;case"cm":return wk/2.54;case"mm":return wk/25.4;case"pt":return wk/72;case"pc":return wk/6}return 1}});var dNe=Te((P_r,hNe)=>{"use strict";hNe.exports=_8;var hUt=_8.canvas=document.createElement("canvas"),y8=hUt.getContext("2d"),cNe=g8([32,126]);_8.createPairs=g8;_8.ascii=cNe;function _8(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=g8(t):Array.isArray(t)?n=t:(t.o?n=g8(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=cNe),y8.font=i+"px "+e;for(var o=0;oi*a){var f=(l-u)/i;r[s]=f*1e3}}return r}function g8(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i{"use strict";mNe.exports=hx;hx.canvas=document.createElement("canvas");hx.cache={};function hx(o,t){t||(t={}),(typeof o=="string"||Array.isArray(o))&&(t.family=o);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var n=t.size||t.fontSize||t.em||48,i=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,i,n].join(" ")+"px "+r,s=t.origin||"top";if(hx.cache[r]&&n<=hx.cache[r].em)return pNe(hx.cache[r],s);var u=t.canvas||hx.canvas,l=u.getContext("2d"),f={upper:t.upper!==void 0?t.upper:"H",lower:t.lower!==void 0?t.lower:"x",descent:t.descent!==void 0?t.descent:"p",ascent:t.ascent!==void 0?t.ascent:"h",tittle:t.tittle!==void 0?t.tittle:"i",overshoot:t.overshoot!==void 0?t.overshoot:"O"},c=Math.ceil(n*1.5);u.height=c,u.width=c*.5,l.font=o;var h="H",d={top:0};l.clearRect(0,0,c,c),l.textBaseline="top",l.fillStyle="black",l.fillText(h,0,0);var p=Yy(l.getImageData(0,0,c,c));l.clearRect(0,0,c,c),l.textBaseline="bottom",l.fillText(h,0,c);var x=Yy(l.getImageData(0,0,c,c));d.lineHeight=d.bottom=c-x+p,l.clearRect(0,0,c,c),l.textBaseline="alphabetic",l.fillText(h,0,c);var b=Yy(l.getImageData(0,0,c,c)),v=c-b-1+p;d.baseline=d.alphabetic=v,l.clearRect(0,0,c,c),l.textBaseline="middle",l.fillText(h,0,c*.5);var k=Yy(l.getImageData(0,0,c,c));d.median=d.middle=c-k-1+p-c*.5,l.clearRect(0,0,c,c),l.textBaseline="hanging",l.fillText(h,0,c*.5);var E=Yy(l.getImageData(0,0,c,c));d.hanging=c-E-1+p-c*.5,l.clearRect(0,0,c,c),l.textBaseline="ideographic",l.fillText(h,0,c);var T=Yy(l.getImageData(0,0,c,c));if(d.ideographic=c-T-1+p,f.upper&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.upper,0,0),d.upper=Yy(l.getImageData(0,0,c,c)),d.capHeight=d.baseline-d.upper),f.lower&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.lower,0,0),d.lower=Yy(l.getImageData(0,0,c,c)),d.xHeight=d.baseline-d.lower),f.tittle&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.tittle,0,0),d.tittle=Yy(l.getImageData(0,0,c,c))),f.ascent&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.ascent,0,0),d.ascent=Yy(l.getImageData(0,0,c,c))),f.descent&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.descent,0,0),d.descent=vNe(l.getImageData(0,0,c,c))),f.overshoot){l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.overshoot,0,0);var L=vNe(l.getImageData(0,0,c,c));d.overshoot=L-v}for(var _ in d)d[_]/=n;return d.em=n,hx.cache[r]=d,pNe(d,s)}function pNe(e,t){var r={};typeof t=="string"&&(t=e[t]);for(var n in e)n!=="em"&&(r[n]=e[n]-t);return r}function Yy(e){for(var t=e.height,r=e.data,n=3;n0;n-=4)if(r[n]!==0)return Math.floor((n-3)*.25/t)}});var bNe=Te((I_r,xNe)=>{"use strict";var hS=Pqe(),dUt=Xy(),pUt=zqe(),vUt=Bqe(),mUt=jY(),pK=$_(),yUt=qqe(),dx=nNe(),gUt=eS(),_Ut=oNe(),xUt=hK(),bUt=fNe(),wUt=dNe(),AUt=Uh(),TUt=yNe(),SUt=j2(),MUt=fK(),gNe=MUt.nextPow2,_Ne=new mUt,b8=!1;document.body&&(x8=document.body.appendChild(document.createElement("div")),x8.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(x8).fontStretch&&(b8=!0),document.body.removeChild(x8));var x8,kc=function(t){EUt(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=vUt(t),this.shader=_Ne.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||pUt({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),_Ne.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(_Ut(t)?t:{})};kc.prototype.createShader=function(){var t=this.regl,r=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:t.prop("count"),offset:t.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this("sizeBuffer")},width:{offset:0,stride:8,buffer:t.this("sizeBuffer")},char:t.this("charBuffer"),position:t.this("position")},uniforms:{atlasSize:function(i,a){return[a.atlas.width,a.atlas.height]},atlasDim:function(i,a){return[a.atlas.cols,a.atlas.rows]},atlas:function(i,a){return a.atlas.texture},charStep:function(i,a){return a.atlas.step},em:function(i,a){return a.atlas.em},color:t.prop("color"),opacity:t.prop("opacity"),viewport:t.this("viewportArray"),scale:t.this("scale"),align:t.prop("align"),baseline:t.prop("baseline"),translate:t.this("translate"),positionOffset:t.prop("positionOffset")},primitive:"points",viewport:t.this("viewport"),vert:` +`),_i;if(qt&&(_i=Fs(Wr),qt[_i]))return qt[_i].apply(null,mi);var dn=Function.apply(null,Qr.concat(Wr));return qt&&(qt[_i]=dn),dn.apply(null,mi)}return{global:wn,link:pi,block:on,proc:ua,scope:Bn,cond:Ln,compile:Hn}}var ta="xyzw".split(""),ya=5121,ia=1,pa=2,va=0,zn=1,is=2,Cs=3,Ks=4,dl=5,xl=6,Ol="dither",bl="blend.enable",eu="blend.color",Zl="blend.equation",Vl="blend.func",ja="depth.enable",ns="depth.func",Js="depth.range",cs="depth.mask",sl="colorMask",ll="cull.enable",il="cull.face",zl="frontFace",Ml="lineWidth",Rl="polygonOffset.enable",Al="polygonOffset.offset",Ll="sample.alpha",ms="sample.enable",Os="sample.coverage",Xl="stencil.enable",Gl="stencil.mask",Ul="stencil.func",le="stencil.opFront",w="stencil.opBack",q="scissor.enable",Q="scissor.box",ee="viewport",ue="profile",Ge="framebuffer",et="vert",mt="frag",Ft="elements",ir="primitive",or="count",kr="offset",Vr="instances",he="vao",Se="Width",qe="Height",He=Ge+Se,lt=Ge+qe,tt=ee+Se,pt=ee+qe,Ht="drawingBuffer",nr=Ht+Se,fr=Ht+qe,Ar=[Vl,Zl,Ul,le,w,Os,ee,Q,Al],Rr=34962,ri=34963,si=2884,Mi=3042,hn=3024,Zn=2960,Yn=2929,Ua=3089,Fo=32823,vl=32926,Us=32928,ml=5126,au=35664,Sl=35665,Yl=35666,ql=5124,ou=35667,Pu=35668,iu=35669,tu=35670,Wu=35671,Qu=35672,Ju=35673,ju=35674,Xu=35675,lf=35676,xf=35678,ef=35680,tf=4,Z=1028,se=1029,ze=2304,Xe=2305,Qe=32775,ot=32776,jt=519,_t=7680,cr=0,Cr=1,zr=32774,ui=513,$r=36160,Oi=36064,fn={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},vi={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},zi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Xi={cw:ze,ccw:Xe};function pn(Be){return Array.isArray(Be)||br(Be)||Ut(Be)}function sn(Be){return Be.sort(function(qt,ar){return qt===ee?-1:ar===ee?1:qt=1,Qr>=2,qt)}else if(ar===Ks){var mi=Be.data;return new bi(mi.thisDep,mi.contextDep,mi.propDep,qt)}else{if(ar===dl)return new bi(!1,!1,!1,qt);if(ar===xl){for(var fi=!1,pi=!1,on=!1,Bn=0;Bn=1&&(pi=!0),wn>=2&&(on=!0)}else Ln.type===Ks&&(fi=fi||Ln.data.thisDep,pi=pi||Ln.data.contextDep,on=on||Ln.data.propDep)}return new bi(fi,pi,on,qt)}else return new bi(ar===Cs,ar===is,ar===zn,qt)}}var js=new bi(!1,!1,!1,function(){});function El(Be,qt,ar,Qr,mi,fi,pi,on,Bn,Ln,wn,Ls,ua,Hn,Ni,Wr){var _i=Ln.Record,dn={add:32774,subtract:32778,"reverse subtract":32779};ar.ext_blend_minmax&&(dn.min=Qe,dn.max=ot);var En=ar.angle_instanced_arrays,Yi=ar.webgl_draw_buffers,ga=ar.oes_vertex_array_object,Kn={dirty:!0,profile:Wr.profile},hs={},$i=[],Ui={},ro={};function na(Ke){return Ke.replace(".","_")}function On(Ke,ht,bt){var Kt=na(Ke);$i.push(Ke),hs[Kt]=Kn[Kt]=!!bt,Ui[Kt]=ht}function In(Ke,ht,bt){var Kt=na(Ke);$i.push(Ke),Array.isArray(bt)?(Kn[Kt]=bt.slice(),hs[Kt]=bt.slice()):Kn[Kt]=hs[Kt]=bt,ro[Kt]=ht}function Va(Ke){return!!isNaN(Ke)}On(Ol,hn),On(bl,Mi),In(eu,"blendColor",[0,0,0,0]),In(Zl,"blendEquationSeparate",[zr,zr]),In(Vl,"blendFuncSeparate",[Cr,cr,Cr,cr]),On(ja,Yn,!0),In(ns,"depthFunc",ui),In(Js,"depthRange",[0,1]),In(cs,"depthMask",!0),In(sl,sl,[!0,!0,!0,!0]),On(ll,si),In(il,"cullFace",se),In(zl,zl,Xe),In(Ml,Ml,1),On(Rl,Fo),In(Al,"polygonOffset",[0,0]),On(Ll,vl),On(ms,Us),In(Os,"sampleCoverage",[1,!1]),On(Xl,Zn),In(Gl,"stencilMask",-1),In(Ul,"stencilFunc",[jt,0,-1]),In(le,"stencilOpSeparate",[Z,_t,_t,_t]),In(w,"stencilOpSeparate",[se,_t,_t,_t]),On(q,Ua),In(Q,"scissor",[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]),In(ee,ee,[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]);var _s={gl:Be,context:ua,strings:qt,next:hs,current:Kn,draw:Ls,elements:fi,buffer:mi,shader:wn,attributes:Ln.state,vao:Ln,uniforms:Bn,framebuffer:on,extensions:ar,timer:Hn,isBufferArgs:pn},ul={primTypes:ti,compareFuncs:vi,blendFuncs:fn,blendEquations:dn,stencilOps:zi,glTypes:di,orientationType:Xi};Yi&&(ul.backBuffer=[se],ul.drawBuffer=S(Qr.maxDrawbuffers,function(Ke){return Ke===0?[0]:S(Ke,function(ht){return Oi+ht})}));var Qn=0;function Mo(){var Ke=Gn({cache:Ni}),ht=Ke.link,bt=Ke.global;Ke.id=Qn++,Ke.batchId="0";var Kt=ht(_s),sr=Ke.shared={props:"a0"};Object.keys(_s).forEach(function(Jt){sr[Jt]=bt.def(Kt,".",Jt)});var Qt=Ke.next={},ur=Ke.current={};Object.keys(ro).forEach(function(Jt){Array.isArray(Kn[Jt])&&(Qt[Jt]=bt.def(sr.next,".",Jt),ur[Jt]=bt.def(sr.current,".",Jt))});var er=Ke.constants={};Object.keys(ul).forEach(function(Jt){er[Jt]=bt.def(JSON.stringify(ul[Jt]))}),Ke.invoke=function(Jt,Lt){switch(Lt.type){case va:var Tr=["this",sr.context,sr.props,Ke.batchId];return Jt.def(ht(Lt.data),".call(",Tr.slice(0,Math.max(Lt.data.length+1,4)),")");case zn:return Jt.def(sr.props,Lt.data);case is:return Jt.def(sr.context,Lt.data);case Cs:return Jt.def("this",Lt.data);case Ks:return Lt.data.append(Ke,Jt),Lt.data.ref;case dl:return Lt.data.toString();case xl:return Lt.data.map(function(Nr){return Ke.invoke(Jt,Nr)})}},Ke.attribCache={};var Ot={};return Ke.scopeAttrib=function(Jt){var Lt=qt.id(Jt);if(Lt in Ot)return Ot[Lt];var Tr=Ln.scope[Lt];Tr||(Tr=Ln.scope[Lt]=new _i);var Nr=Ot[Lt]=ht(Tr);return Nr},Ke}function nl(Ke){var ht=Ke.static,bt=Ke.dynamic,Kt;if(ue in ht){var sr=!!ht[ue];Kt=no(function(ur,er){return sr}),Kt.enable=sr}else if(ue in bt){var Qt=bt[ue];Kt=Xo(Qt,function(ur,er){return ur.invoke(er,Qt)})}return Kt}function pl(Ke,ht){var bt=Ke.static,Kt=Ke.dynamic;if(Ge in bt){var sr=bt[Ge];return sr?(sr=on.getFramebuffer(sr),no(function(ur,er){var Ot=ur.link(sr),Jt=ur.shared;er.set(Jt.framebuffer,".next",Ot);var Lt=Jt.context;return er.set(Lt,"."+He,Ot+".width"),er.set(Lt,"."+lt,Ot+".height"),Ot})):no(function(ur,er){var Ot=ur.shared;er.set(Ot.framebuffer,".next","null");var Jt=Ot.context;return er.set(Jt,"."+He,Jt+"."+nr),er.set(Jt,"."+lt,Jt+"."+fr),"null"})}else if(Ge in Kt){var Qt=Kt[Ge];return Xo(Qt,function(ur,er){var Ot=ur.invoke(er,Qt),Jt=ur.shared,Lt=Jt.framebuffer,Tr=er.def(Lt,".getFramebuffer(",Ot,")");er.set(Lt,".next",Tr);var Nr=Jt.context;return er.set(Nr,"."+He,Tr+"?"+Tr+".width:"+Nr+"."+nr),er.set(Nr,"."+lt,Tr+"?"+Tr+".height:"+Nr+"."+fr),Tr})}else return null}function Dl(Ke,ht,bt){var Kt=Ke.static,sr=Ke.dynamic;function Qt(Ot){if(Ot in Kt){var Jt=Kt[Ot],Lt=!0,Tr=Jt.x|0,Nr=Jt.y|0,ci,Cn;return"width"in Jt?ci=Jt.width|0:Lt=!1,"height"in Jt?Cn=Jt.height|0:Lt=!1,new bi(!Lt&&ht&&ht.thisDep,!Lt&&ht&&ht.contextDep,!Lt&&ht&&ht.propDep,function(Xa,ca){var Tn=Xa.shared.context,Pn=ci;"width"in Jt||(Pn=ca.def(Tn,".",He,"-",Tr));var Nn=Cn;return"height"in Jt||(Nn=ca.def(Tn,".",lt,"-",Nr)),[Tr,Nr,Pn,Nn]})}else if(Ot in sr){var Ki=sr[Ot],yn=Xo(Ki,function(Xa,ca){var Tn=Xa.invoke(ca,Ki),Pn=Xa.shared.context,Nn=ca.def(Tn,".x|0"),xa=ca.def(Tn,".y|0"),Zo=ca.def('"width" in ',Tn,"?",Tn,".width|0:","(",Pn,".",He,"-",Nn,")"),ru=ca.def('"height" in ',Tn,"?",Tn,".height|0:","(",Pn,".",lt,"-",xa,")");return[Nn,xa,Zo,ru]});return ht&&(yn.thisDep=yn.thisDep||ht.thisDep,yn.contextDep=yn.contextDep||ht.contextDep,yn.propDep=yn.propDep||ht.propDep),yn}else return ht?new bi(ht.thisDep,ht.contextDep,ht.propDep,function(Xa,ca){var Tn=Xa.shared.context;return[0,0,ca.def(Tn,".",He),ca.def(Tn,".",lt)]}):null}var ur=Qt(ee);if(ur){var er=ur;ur=new bi(ur.thisDep,ur.contextDep,ur.propDep,function(Ot,Jt){var Lt=er.append(Ot,Jt),Tr=Ot.shared.context;return Jt.set(Tr,"."+tt,Lt[2]),Jt.set(Tr,"."+pt,Lt[3]),Lt})}return{viewport:ur,scissor_box:Qt(Q)}}function Fu(Ke,ht){var bt=Ke.static,Kt=typeof bt[mt]=="string"&&typeof bt[et]=="string";if(Kt){if(Object.keys(ht.dynamic).length>0)return null;var sr=ht.static,Qt=Object.keys(sr);if(Qt.length>0&&typeof sr[Qt[0]]=="number"){for(var ur=[],er=0;er"+Nn+"?"+Lt+".constant["+Nn+"]:0;"}).join(""),"}}else{","if(",ci,"(",Lt,".buffer)){",Xa,"=",Cn,".createStream(",Rr,",",Lt,".buffer);","}else{",Xa,"=",Cn,".getBuffer(",Lt,".buffer);","}",ca,'="type" in ',Lt,"?",Nr.glTypes,"[",Lt,".type]:",Xa,".dtype;",Ki.normalized,"=!!",Lt,".normalized;");function Tn(Pn){Jt(Ki[Pn],"=",Lt,".",Pn,"|0;")}return Tn("size"),Tn("offset"),Tn("stride"),Tn("divisor"),Jt("}}"),Jt.exit("if(",Ki.isStream,"){",Cn,".destroyStream(",Xa,");","}"),Ki}sr[Qt]=Xo(ur,er)}),sr}function bf(Ke){var ht=Ke.static,bt=Ke.dynamic,Kt={};return Object.keys(ht).forEach(function(sr){var Qt=ht[sr];Kt[sr]=no(function(ur,er){return typeof Qt=="number"||typeof Qt=="boolean"?""+Qt:ur.link(Qt)})}),Object.keys(bt).forEach(function(sr){var Qt=bt[sr];Kt[sr]=Xo(Qt,function(ur,er){return ur.invoke(er,Qt)})}),Kt}function Lf(Ke,ht,bt,Kt,sr){var Qt=Ke.static,ur=Ke.dynamic,er=Fu(Ke,ht),Ot=pl(Ke,sr),Jt=Dl(Ke,Ot,sr),Lt=Ql(Ke,sr),Tr=kf(Ke,sr),Nr=mf(Ke,sr,er);function ci(Tn){var Pn=Jt[Tn];Pn&&(Tr[Tn]=Pn)}ci(ee),ci(na(Q));var Cn=Object.keys(Tr).length>0,Ki={framebuffer:Ot,draw:Lt,shader:Nr,state:Tr,dirty:Cn,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Ki.profile=nl(Ke,sr),Ki.uniforms=Cu(bt,sr),Ki.drawVAO=Ki.scopeVAO=Lt.vao,!Ki.drawVAO&&Nr.program&&!er&&ar.angle_instanced_arrays&&Lt.static.elements){var yn=!0,Xa=Nr.program.attributes.map(function(Tn){var Pn=ht.static[Tn];return yn=yn&&!!Pn,Pn});if(yn&&Xa.length>0){var ca=Ln.getVAO(Ln.createVAO({attributes:Xa,elements:Lt.static.elements}));Ki.drawVAO=new bi(null,null,null,function(Tn,Pn){return Tn.link(ca)}),Ki.useVAO=!0}}return er?Ki.useVAO=!0:Ki.attributes=_f(ht,sr),Ki.context=bf(Kt,sr),Ki}function Hu(Ke,ht,bt){var Kt=Ke.shared,sr=Kt.context,Qt=Ke.scope();Object.keys(bt).forEach(function(ur){ht.save(sr,"."+ur);var er=bt[ur],Ot=er.append(Ke,ht);Array.isArray(Ot)?Qt(sr,".",ur,"=[",Ot.join(),"];"):Qt(sr,".",ur,"=",Ot,";")}),ht(Qt)}function hf(Ke,ht,bt,Kt){var sr=Ke.shared,Qt=sr.gl,ur=sr.framebuffer,er;Yi&&(er=ht.def(sr.extensions,".webgl_draw_buffers"));var Ot=Ke.constants,Jt=Ot.drawBuffer,Lt=Ot.backBuffer,Tr;bt?Tr=bt.append(Ke,ht):Tr=ht.def(ur,".next"),Kt||ht("if(",Tr,"!==",ur,".cur){"),ht("if(",Tr,"){",Qt,".bindFramebuffer(",$r,",",Tr,".framebuffer);"),Yi&&ht(er,".drawBuffersWEBGL(",Jt,"[",Tr,".colorAttachments.length]);"),ht("}else{",Qt,".bindFramebuffer(",$r,",null);"),Yi&&ht(er,".drawBuffersWEBGL(",Lt,");"),ht("}",ur,".cur=",Tr,";"),Kt||ht("}")}function yf(Ke,ht,bt){var Kt=Ke.shared,sr=Kt.gl,Qt=Ke.current,ur=Ke.next,er=Kt.current,Ot=Kt.next,Jt=Ke.cond(er,".dirty");$i.forEach(function(Lt){var Tr=na(Lt);if(!(Tr in bt.state)){var Nr,ci;if(Tr in ur){Nr=ur[Tr],ci=Qt[Tr];var Cn=S(Kn[Tr].length,function(yn){return Jt.def(Nr,"[",yn,"]")});Jt(Ke.cond(Cn.map(function(yn,Xa){return yn+"!=="+ci+"["+Xa+"]"}).join("||")).then(sr,".",ro[Tr],"(",Cn,");",Cn.map(function(yn,Xa){return ci+"["+Xa+"]="+yn}).join(";"),";"))}else{Nr=Jt.def(Ot,".",Tr);var Ki=Ke.cond(Nr,"!==",er,".",Tr);Jt(Ki),Tr in Ui?Ki(Ke.cond(Nr).then(sr,".enable(",Ui[Tr],");").else(sr,".disable(",Ui[Tr],");"),er,".",Tr,"=",Nr,";"):Ki(sr,".",ro[Tr],"(",Nr,");",er,".",Tr,"=",Nr,";")}}}),Object.keys(bt.state).length===0&&Jt(er,".dirty=false;"),ht(Jt)}function Fl(Ke,ht,bt,Kt){var sr=Ke.shared,Qt=Ke.current,ur=sr.current,er=sr.gl,Ot;sn(Object.keys(bt)).forEach(function(Jt){var Lt=bt[Jt];if(!(Kt&&!Kt(Lt))){var Tr=Lt.append(Ke,ht);if(Ui[Jt]){var Nr=Ui[Jt];xo(Lt)?(Ot=Ke.link(Tr,{stable:!0}),ht(Ke.cond(Ot).then(er,".enable(",Nr,");").else(er,".disable(",Nr,");")),ht(ur,".",Jt,"=",Ot,";")):(ht(Ke.cond(Tr).then(er,".enable(",Nr,");").else(er,".disable(",Nr,");")),ht(ur,".",Jt,"=",Tr,";"))}else if(Qi(Tr)){var ci=Qt[Jt];ht(er,".",ro[Jt],"(",Tr,");",Tr.map(function(Cn,Ki){return ci+"["+Ki+"]="+Cn}).join(";"),";")}else xo(Lt)?(Ot=Ke.link(Tr,{stable:!0}),ht(er,".",ro[Jt],"(",Ot,");",ur,".",Jt,"=",Ot,";")):ht(er,".",ro[Jt],"(",Tr,");",ur,".",Jt,"=",Tr,";")}})}function wf(Ke,ht){En&&(Ke.instancing=ht.def(Ke.shared.extensions,".angle_instanced_arrays"))}function cu(Ke,ht,bt,Kt,sr){var Qt=Ke.shared,ur=Ke.stats,er=Qt.current,Ot=Qt.timer,Jt=bt.profile;function Lt(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var Tr,Nr;function ci(Tn){Tr=ht.def(),Tn(Tr,"=",Lt(),";"),typeof sr=="string"?Tn(ur,".count+=",sr,";"):Tn(ur,".count++;"),Hn&&(Kt?(Nr=ht.def(),Tn(Nr,"=",Ot,".getNumPendingQueries();")):Tn(Ot,".beginQuery(",ur,");"))}function Cn(Tn){Tn(ur,".cpuTime+=",Lt(),"-",Tr,";"),Hn&&(Kt?Tn(Ot,".pushScopeStats(",Nr,",",Ot,".getNumPendingQueries(),",ur,");"):Tn(Ot,".endQuery();"))}function Ki(Tn){var Pn=ht.def(er,".profile");ht(er,".profile=",Tn,";"),ht.exit(er,".profile=",Pn,";")}var yn;if(Jt){if(xo(Jt)){Jt.enable?(ci(ht),Cn(ht.exit),Ki("true")):Ki("false");return}yn=Jt.append(Ke,ht),Ki(yn)}else yn=ht.def(er,".profile");var Xa=Ke.block();ci(Xa),ht("if(",yn,"){",Xa,"}");var ca=Ke.block();Cn(ca),ht.exit("if(",yn,"){",ca,"}")}function Y(Ke,ht,bt,Kt,sr){var Qt=Ke.shared;function ur(Ot){switch(Ot){case au:case ou:case Wu:return 2;case Sl:case Pu:case Qu:return 3;case Yl:case iu:case Ju:return 4;default:return 1}}function er(Ot,Jt,Lt){var Tr=Qt.gl,Nr=ht.def(Ot,".location"),ci=ht.def(Qt.attributes,"[",Nr,"]"),Cn=Lt.state,Ki=Lt.buffer,yn=[Lt.x,Lt.y,Lt.z,Lt.w],Xa=["buffer","normalized","offset","stride"];function ca(){ht("if(!",ci,".buffer){",Tr,".enableVertexAttribArray(",Nr,");}");var Pn=Lt.type,Nn;if(Lt.size?Nn=ht.def(Lt.size,"||",Jt):Nn=Jt,ht("if(",ci,".type!==",Pn,"||",ci,".size!==",Nn,"||",Xa.map(function(Zo){return ci+"."+Zo+"!=="+Lt[Zo]}).join("||"),"){",Tr,".bindBuffer(",Rr,",",Ki,".buffer);",Tr,".vertexAttribPointer(",[Nr,Nn,Pn,Lt.normalized,Lt.stride,Lt.offset],");",ci,".type=",Pn,";",ci,".size=",Nn,";",Xa.map(function(Zo){return ci+"."+Zo+"="+Lt[Zo]+";"}).join(""),"}"),En){var xa=Lt.divisor;ht("if(",ci,".divisor!==",xa,"){",Ke.instancing,".vertexAttribDivisorANGLE(",[Nr,xa],");",ci,".divisor=",xa,";}")}}function Tn(){ht("if(",ci,".buffer){",Tr,".disableVertexAttribArray(",Nr,");",ci,".buffer=null;","}if(",ta.map(function(Pn,Nn){return ci+"."+Pn+"!=="+yn[Nn]}).join("||"),"){",Tr,".vertexAttrib4f(",Nr,",",yn,");",ta.map(function(Pn,Nn){return ci+"."+Pn+"="+yn[Nn]+";"}).join(""),"}")}Cn===ia?ca():Cn===pa?Tn():(ht("if(",Cn,"===",ia,"){"),ca(),ht("}else{"),Tn(),ht("}"))}Kt.forEach(function(Ot){var Jt=Ot.name,Lt=bt.attributes[Jt],Tr;if(Lt){if(!sr(Lt))return;Tr=Lt.append(Ke,ht)}else{if(!sr(js))return;var Nr=Ke.scopeAttrib(Jt);Tr={},Object.keys(new _i).forEach(function(ci){Tr[ci]=ht.def(Nr,".",ci)})}er(Ke.link(Ot),ur(Ot.info.type),Tr)})}function R(Ke,ht,bt,Kt,sr,Qt){for(var ur=Ke.shared,er=ur.gl,Ot,Jt=0;Jt1){for(var yu=[],Du=[],vu=0;vu>1)",Ki],");")}function xa(){bt(yn,".drawArraysInstancedANGLE(",[Nr,ci,Cn,Ki],");")}Lt&&Lt!=="null"?ca?Nn():(bt("if(",Lt,"){"),Nn(),bt("}else{"),xa(),bt("}")):xa()}function Pn(){function Nn(){bt(Qt+".drawElements("+[Nr,Cn,Xa,ci+"<<(("+Xa+"-"+ya+")>>1)"]+");")}function xa(){bt(Qt+".drawArrays("+[Nr,ci,Cn]+");")}Lt&&Lt!=="null"?ca?Nn():(bt("if(",Lt,"){"),Nn(),bt("}else{"),xa(),bt("}")):xa()}En&&(typeof Ki!="number"||Ki>=0)?typeof Ki=="string"?(bt("if(",Ki,">0){"),Tn(),bt("}else if(",Ki,"<0){"),Pn(),bt("}")):Tn():Pn()}function O(Ke,ht,bt,Kt,sr){var Qt=Mo(),ur=Qt.proc("body",sr);return En&&(Qt.instancing=ur.def(Qt.shared.extensions,".angle_instanced_arrays")),Ke(Qt,ur,bt,Kt),Qt.compile().body}function K(Ke,ht,bt,Kt){wf(Ke,ht),bt.useVAO?bt.drawVAO?ht(Ke.shared.vao,".setVAO(",bt.drawVAO.append(Ke,ht),");"):ht(Ke.shared.vao,".setVAO(",Ke.shared.vao,".targetVAO);"):(ht(Ke.shared.vao,".setVAO(null);"),Y(Ke,ht,bt,Kt.attributes,function(){return!0})),R(Ke,ht,bt,Kt.uniforms,function(){return!0},!1),J(Ke,ht,ht,bt)}function _e(Ke,ht){var bt=Ke.proc("draw",1);wf(Ke,bt),Hu(Ke,bt,ht.context),hf(Ke,bt,ht.framebuffer),yf(Ke,bt,ht),Fl(Ke,bt,ht.state),cu(Ke,bt,ht,!1,!0);var Kt=ht.shader.progVar.append(Ke,bt);if(bt(Ke.shared.gl,".useProgram(",Kt,".program);"),ht.shader.program)K(Ke,bt,ht,ht.shader.program);else{bt(Ke.shared.vao,".setVAO(null);");var sr=Ke.global.def("{}"),Qt=bt.def(Kt,".id"),ur=bt.def(sr,"[",Qt,"]");bt(Ke.cond(ur).then(ur,".call(this,a0);").else(ur,"=",sr,"[",Qt,"]=",Ke.link(function(er){return O(K,Ke,ht,er,1)}),"(",Kt,");",ur,".call(this,a0);"))}Object.keys(ht.state).length>0&&bt(Ke.shared.current,".dirty=true;"),Ke.shared.vao&&bt(Ke.shared.vao,".setVAO(null);")}function ne(Ke,ht,bt,Kt){Ke.batchId="a1",wf(Ke,ht);function sr(){return!0}Y(Ke,ht,bt,Kt.attributes,sr),R(Ke,ht,bt,Kt.uniforms,sr,!1),J(Ke,ht,ht,bt)}function Pe(Ke,ht,bt,Kt){wf(Ke,ht);var sr=bt.contextDep,Qt=ht.def(),ur="a0",er="a1",Ot=ht.def();Ke.shared.props=Ot,Ke.batchId=Qt;var Jt=Ke.scope(),Lt=Ke.scope();ht(Jt.entry,"for(",Qt,"=0;",Qt,"<",er,";++",Qt,"){",Ot,"=",ur,"[",Qt,"];",Lt,"}",Jt.exit);function Tr(Xa){return Xa.contextDep&&sr||Xa.propDep}function Nr(Xa){return!Tr(Xa)}if(bt.needsContext&&Hu(Ke,Lt,bt.context),bt.needsFramebuffer&&hf(Ke,Lt,bt.framebuffer),Fl(Ke,Lt,bt.state,Tr),bt.profile&&Tr(bt.profile)&&cu(Ke,Lt,bt,!1,!0),Kt)bt.useVAO?bt.drawVAO?Tr(bt.drawVAO)?Lt(Ke.shared.vao,".setVAO(",bt.drawVAO.append(Ke,Lt),");"):Jt(Ke.shared.vao,".setVAO(",bt.drawVAO.append(Ke,Jt),");"):Jt(Ke.shared.vao,".setVAO(",Ke.shared.vao,".targetVAO);"):(Jt(Ke.shared.vao,".setVAO(null);"),Y(Ke,Jt,bt,Kt.attributes,Nr),Y(Ke,Lt,bt,Kt.attributes,Tr)),R(Ke,Jt,bt,Kt.uniforms,Nr,!1),R(Ke,Lt,bt,Kt.uniforms,Tr,!0),J(Ke,Jt,Lt,bt);else{var ci=Ke.global.def("{}"),Cn=bt.shader.progVar.append(Ke,Lt),Ki=Lt.def(Cn,".id"),yn=Lt.def(ci,"[",Ki,"]");Lt(Ke.shared.gl,".useProgram(",Cn,".program);","if(!",yn,"){",yn,"=",ci,"[",Ki,"]=",Ke.link(function(Xa){return O(ne,Ke,bt,Xa,2)}),"(",Cn,");}",yn,".call(this,a0[",Qt,"],",Qt,");")}}function Ze(Ke,ht){var bt=Ke.proc("batch",2);Ke.batchId="0",wf(Ke,bt);var Kt=!1,sr=!0;Object.keys(ht.context).forEach(function(ci){Kt=Kt||ht.context[ci].propDep}),Kt||(Hu(Ke,bt,ht.context),sr=!1);var Qt=ht.framebuffer,ur=!1;Qt?(Qt.propDep?Kt=ur=!0:Qt.contextDep&&Kt&&(ur=!0),ur||hf(Ke,bt,Qt)):hf(Ke,bt,null),ht.state.viewport&&ht.state.viewport.propDep&&(Kt=!0);function er(ci){return ci.contextDep&&Kt||ci.propDep}yf(Ke,bt,ht),Fl(Ke,bt,ht.state,function(ci){return!er(ci)}),(!ht.profile||!er(ht.profile))&&cu(Ke,bt,ht,!1,"a1"),ht.contextDep=Kt,ht.needsContext=sr,ht.needsFramebuffer=ur;var Ot=ht.shader.progVar;if(Ot.contextDep&&Kt||Ot.propDep)Pe(Ke,bt,ht,null);else{var Jt=Ot.append(Ke,bt);if(bt(Ke.shared.gl,".useProgram(",Jt,".program);"),ht.shader.program)Pe(Ke,bt,ht,ht.shader.program);else{bt(Ke.shared.vao,".setVAO(null);");var Lt=Ke.global.def("{}"),Tr=bt.def(Jt,".id"),Nr=bt.def(Lt,"[",Tr,"]");bt(Ke.cond(Nr).then(Nr,".call(this,a0,a1);").else(Nr,"=",Lt,"[",Tr,"]=",Ke.link(function(ci){return O(Pe,Ke,ht,ci,2)}),"(",Jt,");",Nr,".call(this,a0,a1);"))}}Object.keys(ht.state).length>0&&bt(Ke.shared.current,".dirty=true;"),Ke.shared.vao&&bt(Ke.shared.vao,".setVAO(null);")}function Ct(Ke,ht){var bt=Ke.proc("scope",3);Ke.batchId="a2";var Kt=Ke.shared,sr=Kt.current;if(Hu(Ke,bt,ht.context),ht.framebuffer&&ht.framebuffer.append(Ke,bt),sn(Object.keys(ht.state)).forEach(function(er){var Ot=ht.state[er],Jt=Ot.append(Ke,bt);Qi(Jt)?Jt.forEach(function(Lt,Tr){Va(Lt)?bt.set(Ke.next[er],"["+Tr+"]",Lt):bt.set(Ke.next[er],"["+Tr+"]",Ke.link(Lt,{stable:!0}))}):xo(Ot)?bt.set(Kt.next,"."+er,Ke.link(Jt,{stable:!0})):bt.set(Kt.next,"."+er,Jt)}),cu(Ke,bt,ht,!0,!0),[Ft,kr,or,Vr,ir].forEach(function(er){var Ot=ht.draw[er];if(Ot){var Jt=Ot.append(Ke,bt);Va(Jt)?bt.set(Kt.draw,"."+er,Jt):bt.set(Kt.draw,"."+er,Ke.link(Jt),{stable:!0})}}),Object.keys(ht.uniforms).forEach(function(er){var Ot=ht.uniforms[er].append(Ke,bt);Array.isArray(Ot)&&(Ot="["+Ot.map(function(Jt){return Va(Jt)?Jt:Ke.link(Jt,{stable:!0})})+"]"),bt.set(Kt.uniforms,"["+Ke.link(qt.id(er),{stable:!0})+"]",Ot)}),Object.keys(ht.attributes).forEach(function(er){var Ot=ht.attributes[er].append(Ke,bt),Jt=Ke.scopeAttrib(er);Object.keys(new _i).forEach(function(Lt){bt.set(Jt,"."+Lt,Ot[Lt])})}),ht.scopeVAO){var Qt=ht.scopeVAO.append(Ke,bt);Va(Qt)?bt.set(Kt.vao,".targetVAO",Qt):bt.set(Kt.vao,".targetVAO",Ke.link(Qt,{stable:!0}))}function ur(er){var Ot=ht.shader[er];if(Ot){var Jt=Ot.append(Ke,bt);Va(Jt)?bt.set(Kt.shader,"."+er,Jt):bt.set(Kt.shader,"."+er,Ke.link(Jt,{stable:!0}))}}ur(et),ur(mt),Object.keys(ht.state).length>0&&(bt(sr,".dirty=true;"),bt.exit(sr,".dirty=true;")),bt("a1(",Ke.shared.context,",a0,",Ke.batchId,");")}function dr(Ke){if(!(typeof Ke!="object"||Qi(Ke))){for(var ht=Object.keys(Ke),bt=0;bt=0;--O){var K=_s[O];K&&K(Ni,null,0)}ar.flush(),wn&&wn.update()}function Dl(){!nl&&_s.length>0&&(nl=d.next(pl))}function Fu(){nl&&(d.cancel(pl),nl=null)}function mf(O){O.preventDefault(),mi=!0,Fu(),ul.forEach(function(K){K()})}function Ql(O){ar.getError(),mi=!1,fi.restore(),hs.restore(),En.restore(),$i.restore(),Ui.restore(),ro.restore(),ga.restore(),wn&&wn.restore(),na.procs.refresh(),Dl(),Qn.forEach(function(K){K()})}Va&&(Va.addEventListener(Au,mf,!1),Va.addEventListener(Tu,Ql,!1));function kf(){_s.length=0,Fu(),Va&&(Va.removeEventListener(Au,mf),Va.removeEventListener(Tu,Ql)),hs.clear(),ro.clear(),Ui.clear(),ga.clear(),$i.clear(),Yi.clear(),En.clear(),wn&&wn.clear(),Mo.forEach(function(O){O()})}function Cu(O){function K(Qt){var ur=e({},Qt);delete ur.uniforms,delete ur.attributes,delete ur.context,delete ur.vao,"stencil"in ur&&ur.stencil.op&&(ur.stencil.opBack=ur.stencil.opFront=ur.stencil.op,delete ur.stencil.op);function er(Ot){if(Ot in ur){var Jt=ur[Ot];delete ur[Ot],Object.keys(Jt).forEach(function(Lt){ur[Ot+"."+Lt]=Jt[Lt]})}}return er("blend"),er("depth"),er("cull"),er("stencil"),er("polygonOffset"),er("scissor"),er("sample"),"vao"in Qt&&(ur.vao=Qt.vao),ur}function _e(Qt,ur){var er={},Ot={};return Object.keys(Qt).forEach(function(Jt){var Lt=Qt[Jt];if(h.isDynamic(Lt)){Ot[Jt]=h.unbox(Lt,Jt);return}else if(ur&&Array.isArray(Lt)){for(var Tr=0;Tr0)return Ke.call(this,Kt(Qt|0),Qt|0)}else if(Array.isArray(Qt)){if(Qt.length)return Ke.call(this,Qt,Qt.length)}else return lr.call(this,Qt)}return e(sr,{stats:dr,destroy:function(){Er.destroy()}})}var _f=ro.setFBO=Cu({framebuffer:h.define.call(null,uf,"framebuffer")});function bf(O,K){var _e=0;na.procs.poll();var ne=K.color;ne&&(ar.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),_e|=Gu),"depth"in K&&(ar.clearDepth(+K.depth),_e|=rf),"stencil"in K&&(ar.clearStencil(K.stencil|0),_e|=ds),ar.clear(_e)}function Lf(O){if("framebuffer"in O)if(O.framebuffer&&O.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)_f(e({framebuffer:O.framebuffer.faces[K]},O),bf);else _f(O,bf);else bf(null,O)}function Hu(O){_s.push(O);function K(){var _e=vf(_s,O);function ne(){var Pe=vf(_s,ne);_s[Pe]=_s[_s.length-1],_s.length-=1,_s.length<=0&&Fu()}_s[_e]=ne}return Dl(),{cancel:K}}function hf(){var O=In.viewport,K=In.scissor_box;O[0]=O[1]=K[0]=K[1]=0,Ni.viewportWidth=Ni.framebufferWidth=Ni.drawingBufferWidth=O[2]=K[2]=ar.drawingBufferWidth,Ni.viewportHeight=Ni.framebufferHeight=Ni.drawingBufferHeight=O[3]=K[3]=ar.drawingBufferHeight}function yf(){Ni.tick+=1,Ni.time=wf(),hf(),na.procs.poll()}function Fl(){$i.refresh(),hf(),na.procs.refresh(),wn&&wn.update()}function wf(){return(p()-Ls)/1e3}Fl();function cu(O,K){var _e;switch(O){case"frame":return Hu(K);case"lost":_e=ul;break;case"restore":_e=Qn;break;case"destroy":_e=Mo;break;default:}return _e.push(K),{cancel:function(){for(var ne=0;ne<_e.length;++ne)if(_e[ne]===K){_e[ne]=_e[_e.length-1],_e.pop();return}}}}function Y(){return Bn}function R(O){Object.entries(O).forEach(function(K){Bn[K[0]]=K[1]})}var J=e(Cu,{clear:Lf,prop:h.define.bind(null,uf),context:h.define.bind(null,df),this:h.define.bind(null,Ef),draw:Cu({}),buffer:function(O){return En.create(O,Wl,!1,!1)},elements:function(O){return Yi.create(O,!1)},texture:$i.create2D,cube:$i.createCube,renderbuffer:Ui.create,framebuffer:ro.create,framebufferCube:ro.createCube,vao:ga.createVAO,attributes:Qr,frame:Hu,on:cu,limits:dn,hasExtension:function(O){return dn.extensions.indexOf(O.toLowerCase())>=0},read:On,destroy:kf,_gl:ar,_refresh:Fl,poll:function(){yf(),wn&&wn.update()},now:wf,stats:on,getCachedCode:Y,preloadCachedCode:R});return qt.onDone(null,J),J}return fc})});var Oqe=Te((E_r,Bqe)=>{"use strict";var rUt=Xy();Bqe.exports=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},Dqe(t)?t={container:t}:iUt(t)?t={container:t}:nUt(t)?t={gl:t}:t=rUt(t,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),t.pixelRatio||(t.pixelRatio=window.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(typeof t.container=="string"){var r=document.querySelector(t.container);if(!r)throw Error("Element "+t.container+" is not found");t.container=r}Dqe(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=Fqe(),t.container.appendChild(t.canvas),Rqe(t))}else if(!t.canvas)if(typeof document!="undefined")t.container=document.body||document.documentElement,t.canvas=Fqe(),t.container.appendChild(t.canvas),Rqe(t);else throw Error("Not DOM environment. Use headless-gl.");return t.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(n){try{t.gl=t.canvas.getContext(n,t.attrs)}catch(i){}return t.gl}),t.gl};function Rqe(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function Dqe(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function iUt(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function nUt(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function Fqe(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var Nqe=Te((k_r,qqe)=>{"use strict";var aUt=sK(),oUt=[32,126];qqe.exports=sUt;function sUt(e){e=e||{};var t=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],r=e.canvas||document.createElement("canvas"),n=e.font,i=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],a=e.chars||oUt;if(n&&typeof n!="string"&&(n=aUt(n)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],s=a[0],u=0;s<=a[1];s++)o[u++]=String.fromCharCode(s);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var l=r.getContext("2d");l.fillStyle="#000",l.fillRect(0,0,r.width,r.height),l.font=n,l.textAlign="center",l.textBaseline="middle",l.fillStyle="#fff";for(var f=i[0]/2,c=i[1]/2,s=0;st[0]-i[0]/2&&(f=i[0]/2,c+=i[1]);return r}});var cK=Te(Gh=>{"use strict";"use restrict";var fK=32;Gh.INT_BITS=fK;Gh.INT_MAX=2147483647;Gh.INT_MIN=-1<0)-(e<0)};Gh.abs=function(e){var t=e>>fK-1;return(e^t)-t};Gh.min=function(e,t){return t^(e^t)&-(e65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,t|=r,t|e>>1};Gh.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};Gh.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function Uqe(e){var t=32;return e&=-e,e&&t--,e&65535&&(t-=16),e&16711935&&(t-=8),e&252645135&&(t-=4),e&858993459&&(t-=2),e&1431655765&&(t-=1),t}Gh.countTrailingZeros=Uqe;Gh.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};Gh.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};Gh.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var Tk=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,n=t,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=r&1,--i;e[t]=n<>>8&255]<<16|Tk[e>>>16&255]<<8|Tk[e>>>24&255]};Gh.interleave2=function(e,t){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1};Gh.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};Gh.interleave3=function(e,t,r){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|=t<<1,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|r<<2};Gh.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};Gh.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>Uqe(e)+1}});var Hqe=Te((L_r,Gqe)=>{"use strict";function Vqe(e,t,r){var n=e[r]|0;if(n<=0)return[];var i=new Array(n),a;if(r===e.length-1)for(a=0;a0)return lUt(e|0,t);break;case"object":if(typeof e.length=="number")return Vqe(e,t,0);break}return[]}Gqe.exports=uUt});var aNe=Te(rc=>{"use strict";var cx=cK(),Mp=Hqe(),Wqe=u2().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:Mp([32,0]),UINT16:Mp([32,0]),UINT32:Mp([32,0]),BIGUINT64:Mp([32,0]),INT8:Mp([32,0]),INT16:Mp([32,0]),INT32:Mp([32,0]),BIGINT64:Mp([32,0]),FLOAT:Mp([32,0]),DOUBLE:Mp([32,0]),DATA:Mp([32,0]),UINT8C:Mp([32,0]),BUFFER:Mp([32,0])});var fUt=typeof Uint8ClampedArray!="undefined",cUt=typeof BigUint64Array!="undefined",hUt=typeof BigInt64Array!="undefined",sd=window.__TYPEDARRAY_POOL;sd.UINT8C||(sd.UINT8C=Mp([32,0]));sd.BIGUINT64||(sd.BIGUINT64=Mp([32,0]));sd.BIGINT64||(sd.BIGINT64=Mp([32,0]));sd.BUFFER||(sd.BUFFER=Mp([32,0]));var v8=sd.DATA,m8=sd.BUFFER;rc.free=function(t){if(Wqe.isBuffer(t))m8[cx.log2(t.length)].push(t);else{if(Object.prototype.toString.call(t)!=="[object ArrayBuffer]"&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,n=cx.log2(r)|0;v8[n].push(t)}};function jqe(e){if(e){var t=e.length||e.byteLength,r=cx.log2(t);v8[r].push(e)}}function dUt(e){jqe(e.buffer)}rc.freeUint8=rc.freeUint16=rc.freeUint32=rc.freeBigUint64=rc.freeInt8=rc.freeInt16=rc.freeInt32=rc.freeBigInt64=rc.freeFloat32=rc.freeFloat=rc.freeFloat64=rc.freeDouble=rc.freeUint8Clamped=rc.freeDataView=dUt;rc.freeArrayBuffer=jqe;rc.freeBuffer=function(t){m8[cx.log2(t.length)].push(t)};rc.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return Ov(t);switch(r){case"uint8":return hK(t);case"uint16":return Xqe(t);case"uint32":return Zqe(t);case"int8":return Yqe(t);case"int16":return Kqe(t);case"int32":return Jqe(t);case"float":case"float32":return $qe(t);case"double":case"float64":return Qqe(t);case"uint8_clamped":return eNe(t);case"bigint64":return rNe(t);case"biguint64":return tNe(t);case"buffer":return nNe(t);case"data":case"dataview":return iNe(t);default:return null}return null};function Ov(t){var t=cx.nextPow2(t),r=cx.log2(t),n=v8[r];return n.length>0?n.pop():new ArrayBuffer(t)}rc.mallocArrayBuffer=Ov;function hK(e){return new Uint8Array(Ov(e),0,e)}rc.mallocUint8=hK;function Xqe(e){return new Uint16Array(Ov(2*e),0,e)}rc.mallocUint16=Xqe;function Zqe(e){return new Uint32Array(Ov(4*e),0,e)}rc.mallocUint32=Zqe;function Yqe(e){return new Int8Array(Ov(e),0,e)}rc.mallocInt8=Yqe;function Kqe(e){return new Int16Array(Ov(2*e),0,e)}rc.mallocInt16=Kqe;function Jqe(e){return new Int32Array(Ov(4*e),0,e)}rc.mallocInt32=Jqe;function $qe(e){return new Float32Array(Ov(4*e),0,e)}rc.mallocFloat32=rc.mallocFloat=$qe;function Qqe(e){return new Float64Array(Ov(8*e),0,e)}rc.mallocFloat64=rc.mallocDouble=Qqe;function eNe(e){return fUt?new Uint8ClampedArray(Ov(e),0,e):hK(e)}rc.mallocUint8Clamped=eNe;function tNe(e){return cUt?new BigUint64Array(Ov(8*e),0,e):null}rc.mallocBigUint64=tNe;function rNe(e){return hUt?new BigInt64Array(Ov(8*e),0,e):null}rc.mallocBigInt64=rNe;function iNe(e){return new DataView(Ov(e),0,e)}rc.mallocDataView=iNe;function nNe(e){e=cx.nextPow2(e);var t=cx.log2(e),r=m8[t];return r.length>0?r.pop():new Wqe(e)}rc.mallocBuffer=nNe;rc.clearCache=function(){for(var t=0;t<32;++t)sd.UINT8[t].length=0,sd.UINT16[t].length=0,sd.UINT32[t].length=0,sd.INT8[t].length=0,sd.INT16[t].length=0,sd.INT32[t].length=0,sd.FLOAT[t].length=0,sd.DOUBLE[t].length=0,sd.BIGUINT64[t].length=0,sd.BIGINT64[t].length=0,sd.UINT8C[t].length=0,v8[t].length=0,m8[t].length=0}});var sNe=Te((z_r,oNe)=>{"use strict";var pUt=Object.prototype.toString;oNe.exports=function(e){var t;return pUt.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var dK=Te((I_r,lNe)=>{lNe.exports=function(t,r){r||(r=[0,""]),t=String(t);var n=parseFloat(t,10);return r[0]=n,r[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",r}});var cNe=Te((R_r,fNe)=>{"use strict";var vUt=dK();fNe.exports=uNe;var Sk=96;function pK(e,t){var r=vUt(getComputedStyle(e).getPropertyValue(t));return r[0]*uNe(r[1],e)}function mUt(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=pK(r,"font-size")/128;return t.removeChild(r),n}function uNe(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),(t===window||t===document)&&(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return mUt(e,t);case"em":return pK(t,"font-size");case"rem":return pK(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return Sk;case"cm":return Sk/2.54;case"mm":return Sk/25.4;case"pt":return Sk/72;case"pc":return Sk/6}return 1}});var pNe=Te((D_r,dNe)=>{"use strict";dNe.exports=_8;var yUt=_8.canvas=document.createElement("canvas"),y8=yUt.getContext("2d"),hNe=g8([32,126]);_8.createPairs=g8;_8.ascii=hNe;function _8(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=g8(t):Array.isArray(t)?n=t:(t.o?n=g8(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=hNe),y8.font=i+"px "+e;for(var o=0;oi*a){var f=(l-u)/i;r[s]=f*1e3}}return r}function g8(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i{"use strict";yNe.exports=hx;hx.canvas=document.createElement("canvas");hx.cache={};function hx(o,t){t||(t={}),(typeof o=="string"||Array.isArray(o))&&(t.family=o);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var n=t.size||t.fontSize||t.em||48,i=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,i,n].join(" ")+"px "+r,s=t.origin||"top";if(hx.cache[r]&&n<=hx.cache[r].em)return vNe(hx.cache[r],s);var u=t.canvas||hx.canvas,l=u.getContext("2d"),f={upper:t.upper!==void 0?t.upper:"H",lower:t.lower!==void 0?t.lower:"x",descent:t.descent!==void 0?t.descent:"p",ascent:t.ascent!==void 0?t.ascent:"h",tittle:t.tittle!==void 0?t.tittle:"i",overshoot:t.overshoot!==void 0?t.overshoot:"O"},c=Math.ceil(n*1.5);u.height=c,u.width=c*.5,l.font=o;var h="H",d={top:0};l.clearRect(0,0,c,c),l.textBaseline="top",l.fillStyle="black",l.fillText(h,0,0);var p=Yy(l.getImageData(0,0,c,c));l.clearRect(0,0,c,c),l.textBaseline="bottom",l.fillText(h,0,c);var x=Yy(l.getImageData(0,0,c,c));d.lineHeight=d.bottom=c-x+p,l.clearRect(0,0,c,c),l.textBaseline="alphabetic",l.fillText(h,0,c);var b=Yy(l.getImageData(0,0,c,c)),v=c-b-1+p;d.baseline=d.alphabetic=v,l.clearRect(0,0,c,c),l.textBaseline="middle",l.fillText(h,0,c*.5);var k=Yy(l.getImageData(0,0,c,c));d.median=d.middle=c-k-1+p-c*.5,l.clearRect(0,0,c,c),l.textBaseline="hanging",l.fillText(h,0,c*.5);var E=Yy(l.getImageData(0,0,c,c));d.hanging=c-E-1+p-c*.5,l.clearRect(0,0,c,c),l.textBaseline="ideographic",l.fillText(h,0,c);var T=Yy(l.getImageData(0,0,c,c));if(d.ideographic=c-T-1+p,f.upper&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.upper,0,0),d.upper=Yy(l.getImageData(0,0,c,c)),d.capHeight=d.baseline-d.upper),f.lower&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.lower,0,0),d.lower=Yy(l.getImageData(0,0,c,c)),d.xHeight=d.baseline-d.lower),f.tittle&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.tittle,0,0),d.tittle=Yy(l.getImageData(0,0,c,c))),f.ascent&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.ascent,0,0),d.ascent=Yy(l.getImageData(0,0,c,c))),f.descent&&(l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.descent,0,0),d.descent=mNe(l.getImageData(0,0,c,c))),f.overshoot){l.clearRect(0,0,c,c),l.textBaseline="top",l.fillText(f.overshoot,0,0);var L=mNe(l.getImageData(0,0,c,c));d.overshoot=L-v}for(var _ in d)d[_]/=n;return d.em=n,hx.cache[r]=d,vNe(d,s)}function vNe(e,t){var r={};typeof t=="string"&&(t=e[t]);for(var n in e)n!=="em"&&(r[n]=e[n]-t);return r}function Yy(e){for(var t=e.height,r=e.data,n=3;n0;n-=4)if(r[n]!==0)return Math.floor((n-3)*.25/t)}});var wNe=Te((B_r,bNe)=>{"use strict";var hS=zqe(),gUt=Xy(),_Ut=Iqe(),xUt=Oqe(),bUt=XY(),vK=$_(),wUt=Nqe(),dx=aNe(),AUt=eS(),TUt=sNe(),SUt=dK(),MUt=cNe(),EUt=pNe(),kUt=Uh(),CUt=gNe(),LUt=j2(),PUt=cK(),_Ne=PUt.nextPow2,xNe=new bUt,b8=!1;document.body&&(x8=document.body.appendChild(document.createElement("div")),x8.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(x8).fontStretch&&(b8=!0),document.body.removeChild(x8));var x8,kc=function(t){zUt(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=xUt(t),this.shader=xNe.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||_Ut({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),xNe.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(TUt(t)?t:{})};kc.prototype.createShader=function(){var t=this.regl,r=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:t.prop("count"),offset:t.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this("sizeBuffer")},width:{offset:0,stride:8,buffer:t.this("sizeBuffer")},char:t.this("charBuffer"),position:t.this("position")},uniforms:{atlasSize:function(i,a){return[a.atlas.width,a.atlas.height]},atlasDim:function(i,a){return[a.atlas.cols,a.atlas.rows]},atlas:function(i,a){return a.atlas.texture},charStep:function(i,a){return a.atlas.step},em:function(i,a){return a.atlas.em},color:t.prop("color"),opacity:t.prop("opacity"),viewport:t.this("viewportArray"),scale:t.this("scale"),align:t.prop("align"),baseline:t.prop("baseline"),translate:t.this("translate"),positionOffset:t.prop("positionOffset")},primitive:"points",viewport:t.this("viewport"),vert:` precision highp float; attribute float width, charOffset, char; attribute vec2 position; @@ -2705,17 +2705,17 @@ void main() { // color.rgb += (1. - color.rgb) * (1. - mask.rgb); gl_FragColor = color; - }`}),n={};return{regl:t,draw:r,atlas:n}};kc.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=dUt(t,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),t.opacity!=null&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map(function(Ce){return parseFloat(Ce)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=gUt(t.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),t.kerning!=null&&(this.kerning=t.kerning),t.offset!=null&&(typeof t.offset=="number"&&(t.offset=[t.offset,0]),this.positionOffset=SUt(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!t.font&&(t.font=kc.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(Ce,de){if(typeof Ce=="string")try{Ce=hS.parse(Ce)}catch(Ke){Ce=hS.parse(kc.baseFontSize+"px "+Ce)}else{var te=Ce.style,ke=Ce.weight,Ee=Ce.stretch,Me=Ce.variant;Ce=hS.parse(hS.stringify(Ce)),te&&(Ce.style=te),ke&&(Ce.weight=ke),Ee&&(Ce.stretch=Ee),Me&&(Ce.variant=Me)}var Ue=hS.stringify({size:kc.baseFontSize,family:Ce.family,stretch:b8?Ce.stretch:void 0,variant:Ce.variant,weight:Ce.weight,style:Ce.style}),Fe=xUt(Ce.size),me=Math.round(Fe[0]*bUt(Fe[1]));if(me!==r.fontSize[de]&&(i=!0,r.fontSize[de]=me),(!r.font[de]||Ue!=r.font[de].baseString)&&(n=!0,r.font[de]=kc.fonts[Ue],!r.font[de])){var Ne=Ce.family.join(", "),ce=[Ce.style];Ce.style!=Ce.variant&&ce.push(Ce.variant),Ce.variant!=Ce.weight&&ce.push(Ce.weight),b8&&Ce.weight!=Ce.stretch&&ce.push(Ce.stretch),r.font[de]={baseString:Ue,family:Ne,weight:Ce.weight,stretch:Ce.stretch,style:Ce.style,variant:Ce.variant,width:{},kerning:{},metrics:TUt(Ne,{origin:"top",fontSize:kc.baseFontSize,fontStyle:ce.join(" ")})},kc.fonts[Ue]=r.font[de]}}),(n||i)&&this.font.forEach(function(Ce,de){var te=hS.stringify({size:r.fontSize[de],family:Ce.family,stretch:b8?Ce.stretch:void 0,variant:Ce.variant,weight:Ce.weight,style:Ce.style});if(r.fontAtlas[de]=r.shader.atlas[te],!r.fontAtlas[de]){var ke=Ce.metrics;r.shader.atlas[te]=r.fontAtlas[de]={fontString:te,step:Math.ceil(r.fontSize[de]*ke.bottom*.5)*2,em:r.fontSize[de],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:r.regl.texture()}}t.text==null&&(t.text=r.text)}),typeof t.text=="string"&&t.position&&t.position.length>2){for(var a=Array(t.position.length*.5),o=0;o2){for(var l=!t.position[0].length,f=dx.mallocFloat(this.count*2),c=0,h=0;c1?r.align[de]:r.align[0]:r.align;if(typeof te=="number")return te;switch(te){case"right":case"end":return-Ce;case"center":case"centre":case"middle":return-Ce*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(Ce,de){var te=(r.font[de]||r.font[0]).metrics,ke=0;return ke+=te.bottom*.5,typeof Ce=="number"?ke+=Ce-te.baseline:ke+=-te[Ce],ke*=-1,ke})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=pK(t.color,"uint8");else{var G;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var j=t.color.length;G=dx.mallocUint8(j);for(var H=(t.color.subarray||t.color.slice).bind(t.color),N=0;N4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(ae){var be=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(be);for(var Pe=0;Pe1?this.counts[Pe]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Pe]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Pe*4,Pe*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Pe]:this.opacity,baseline:this.baselineOffset[Pe]!=null?this.baselineOffset[Pe]:this.baselineOffset[0],align:this.align?this.alignOffset[Pe]!=null?this.alignOffset[Pe]:this.alignOffset[0]:0,atlas:this.fontAtlas[Pe]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Pe*2,Pe*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};kc.prototype.destroy=function(){};kc.prototype.kerning=!0;kc.prototype.position={constant:new Float32Array(2)};kc.prototype.translate=null;kc.prototype.scale=null;kc.prototype.font=null;kc.prototype.text="";kc.prototype.positionOffset=[0,0];kc.prototype.opacity=1;kc.prototype.color=new Uint8Array([0,0,0,255]);kc.prototype.alignOffset=[0,0];kc.maxAtlasSize=1024;kc.atlasCanvas=document.createElement("canvas");kc.atlasContext=kc.atlasCanvas.getContext("2d",{alpha:!1});kc.baseFontSize=64;kc.fonts={};function EUt(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}xNe.exports=kc});var wNe=Te((vK,mK)=>{(function(e,t){typeof vK=="object"&&typeof mK!="undefined"?mK.exports=t():e.createREGL=t()})(vK,function(){"use strict";var e=function(Be,qt){for(var ar=Object.keys(qt),Qr=0;Qr1&&qt===ar&&(qt==='"'||qt==="'"))return['"'+o(Be.substr(1,Be.length-2))+'"'];var Qr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Be);if(Qr)return s(Be.substr(0,Qr.index)).concat(s(Qr[1])).concat(s(Be.substr(Qr.index+Qr[0].length)));var vi=Be.split(".");if(vi.length===1)return['"'+o(Be)+'"'];for(var fi=[],di=0;di65535)<<4,Be>>>=qt,ar=(Be>255)<<3,Be>>>=ar,qt|=ar,ar=(Be>15)<<2,Be>>>=ar,qt|=ar,ar=(Be>3)<<1,Be>>>=ar,qt|=ar,qt|Be>>1}function N(){var Be=S(8,function(){return[]});function qt(fi){var di=j(fi),on=Be[H(di)>>2];return on.length>0?on.pop():new ArrayBuffer(di)}function ar(fi){Be[H(fi.byteLength)>>2].push(fi)}function Qr(fi,di){var on=null;switch(fi){case m:on=new Int8Array(qt(di),0,di);break;case P:on=new Uint8Array(qt(di),0,di);break;case A:on=new Int16Array(qt(2*di),0,di);break;case B:on=new Uint16Array(qt(2*di),0,di);break;case F:on=new Int32Array(qt(4*di),0,di);break;case U:on=new Uint32Array(qt(4*di),0,di);break;case G:on=new Float32Array(qt(4*di),0,di);break;default:return null}return on.length!==di?on.subarray(0,di):on}function vi(fi){ar(fi.buffer)}return{alloc:qt,free:ar,allocType:Qr,freeType:vi}}var W=N();W.zero=N();var re=3408,ae=3410,be=3411,Pe=3412,Ce=3413,de=3414,te=3415,ke=33901,Ee=33902,Me=3379,Ue=3386,Fe=34921,me=36347,Ne=36348,ce=35661,Ke=35660,it=34930,bt=36349,Nt=34076,nt=34024,Ye=7936,kt=7937,At=7938,St=35724,Bt=34047,Zt=36063,Et=34852,Ae=3553,ot=34067,dt=34069,pt=33984,at=6408,Xe=5126,rt=5121,Qe=36160,zt=36053,Yt=36064,lr=16384,mr=function(Be,qt){var ar=1;qt.ext_texture_filter_anisotropic&&(ar=Be.getParameter(Bt));var Qr=1,vi=1;qt.webgl_draw_buffers&&(Qr=Be.getParameter(Et),vi=Be.getParameter(Zt));var fi=!!qt.oes_texture_float;if(fi){var di=Be.createTexture();Be.bindTexture(Ae,di),Be.texImage2D(Ae,0,at,1,1,0,at,Xe,null);var on=Be.createFramebuffer();if(Be.bindFramebuffer(Qe,on),Be.framebufferTexture2D(Qe,Yt,Ae,di,0),Be.bindTexture(Ae,null),Be.checkFramebufferStatus(Qe)!==zt)fi=!1;else{Be.viewport(0,0,1,1),Be.clearColor(1,0,0,1),Be.clear(lr);var Bn=W.allocType(Xe,4);Be.readPixels(0,0,1,1,at,Xe,Bn),Be.getError()?fi=!1:(Be.deleteFramebuffer(on),Be.deleteTexture(di),fi=Bn[0]===1),W.freeType(Bn)}}var Ln=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),wn=!0;if(!Ln){var Ls=Be.createTexture(),ua=W.allocType(rt,36);Be.activeTexture(pt),Be.bindTexture(ot,Ls),Be.texImage2D(dt,0,at,3,3,0,at,rt,ua),W.freeType(ua),Be.bindTexture(ot,null),Be.deleteTexture(Ls),wn=!Be.getError()}return{colorBits:[Be.getParameter(ae),Be.getParameter(be),Be.getParameter(Pe),Be.getParameter(Ce)],depthBits:Be.getParameter(de),stencilBits:Be.getParameter(te),subpixelBits:Be.getParameter(re),extensions:Object.keys(qt).filter(function(Hn){return!!qt[Hn]}),maxAnisotropic:ar,maxDrawbuffers:Qr,maxColorAttachments:vi,pointSizeDims:Be.getParameter(ke),lineWidthDims:Be.getParameter(Ee),maxViewportDims:Be.getParameter(Ue),maxCombinedTextureUnits:Be.getParameter(ce),maxCubeMapSize:Be.getParameter(Nt),maxRenderbufferSize:Be.getParameter(nt),maxTextureUnits:Be.getParameter(it),maxTextureSize:Be.getParameter(Me),maxAttributes:Be.getParameter(Fe),maxVertexUniforms:Be.getParameter(me),maxVertexTextureUnits:Be.getParameter(Ke),maxVaryingVectors:Be.getParameter(Ne),maxFragmentUniforms:Be.getParameter(bt),glsl:Be.getParameter(St),renderer:Be.getParameter(kt),vendor:Be.getParameter(Ye),version:Be.getParameter(At),readFloat:fi,npotTextureCube:wn}},_r=function(Be){return Be instanceof Uint8Array||Be instanceof Uint16Array||Be instanceof Uint32Array||Be instanceof Int8Array||Be instanceof Int16Array||Be instanceof Int32Array||Be instanceof Float32Array||Be instanceof Float64Array||Be instanceof Uint8ClampedArray};function Ht(Be){return!!Be&&typeof Be=="object"&&Array.isArray(Be.shape)&&Array.isArray(Be.stride)&&typeof Be.offset=="number"&&Be.shape.length===Be.stride.length&&(Array.isArray(Be.data)||_r(Be.data))}var Re=function(Be){return Object.keys(Be).map(function(qt){return Be[qt]})},xe={shape:fe,flatten:_e};function Oe(Be,qt,ar){for(var Qr=0;Qr0){var hs;if(Array.isArray(_i[0])){Kn=ii(_i);for(var $i=1,Ui=1;Ui0){if(typeof $i[0]=="number"){var On=W.allocType(Yi.dtype,$i.length);xr(On,$i),Kn(On,ro),W.freeType(On)}else if(Array.isArray($i[0])||_r($i[0])){na=ii($i);var In=nn($i,na,Yi.dtype);Kn(In,ro),W.freeType(In)}}}else if(Ht($i)){na=$i.shape;var Va=$i.stride,_s=0,ul=0,Qn=0,Mo=0;na.length===1?(_s=na[0],ul=1,Qn=Va[0],Mo=0):na.length===2&&(_s=na[0],ul=na[1],Qn=Va[0],Mo=Va[1]);var nl=Array.isArray($i.data)?Yi.dtype:Wt($i.data),pl=W.allocType(nl,_s*ul);Lr(pl,$i.data,_s,ul,Qn,Mo,$i.offset),Kn(pl,ro),W.freeType(pl)}return ga}return dn||ga(Hr),ga._reglType="buffer",ga._buffer=Yi,ga.subdata=hs,ar.profile&&(ga.stats=Yi.stats),ga.destroy=function(){ua(Yi)},ga}function Ni(){Re(fi).forEach(function(Hr){Hr.buffer=Be.createBuffer(),Be.bindBuffer(Hr.type,Hr.buffer),Be.bufferData(Hr.type,Hr.persistentData||Hr.byteLength,Hr.usage)})}return ar.profile&&(qt.getTotalBufferSize=function(){var Hr=0;return Object.keys(fi).forEach(function(_i){Hr+=fi[_i].stats.size}),Hr}),{create:Hn,createStream:Bn,destroyStream:Ln,clear:function(){Re(fi).forEach(ua),on.forEach(ua)},getBuffer:function(Hr){return Hr&&Hr._buffer instanceof di?Hr._buffer:null},restore:Ni,_initBuffer:Ls}}var Ir=0,Gr=0,jr=1,yi=1,Ei=4,Vi=4,ti={points:Ir,point:Gr,lines:jr,line:yi,triangles:Ei,triangle:Vi,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},en=0,Yr=1,oi=4,Bi=5120,an=5121,rn=5122,Fi=5123,Ri=5124,xn=5125,xi=34963,Xr=35040,ft=35044;function tr(Be,qt,ar,Qr){var vi={},fi=0,di={uint8:an,uint16:Fi};qt.oes_element_index_uint&&(di.uint32=xn);function on(Ni){this.id=fi++,vi[this.id]=this,this.buffer=Ni,this.primType=oi,this.vertCount=0,this.type=0}on.prototype.bind=function(){this.buffer.bind()};var Bn=[];function Ln(Ni){var Hr=Bn.pop();return Hr||(Hr=new on(ar.create(null,xi,!0,!1)._buffer)),Ls(Hr,Ni,Xr,-1,-1,0,0),Hr}function wn(Ni){Bn.push(Ni)}function Ls(Ni,Hr,_i,dn,En,Yi,ga){Ni.buffer.bind();var Kn;if(Hr){var hs=ga;!ga&&(!_r(Hr)||Ht(Hr)&&!_r(Hr.data))&&(hs=qt.oes_element_index_uint?xn:Fi),ar._initBuffer(Ni.buffer,Hr,_i,hs,3)}else Be.bufferData(xi,Yi,_i),Ni.buffer.dtype=Kn||an,Ni.buffer.usage=_i,Ni.buffer.dimension=3,Ni.buffer.byteLength=Yi;if(Kn=ga,!ga){switch(Ni.buffer.dtype){case an:case Bi:Kn=an;break;case Fi:case rn:Kn=Fi;break;case xn:case Ri:Kn=xn;break;default:}Ni.buffer.dtype=Kn}Ni.type=Kn;var $i=En;$i<0&&($i=Ni.buffer.byteLength,Kn===Fi?$i>>=1:Kn===xn&&($i>>=2)),Ni.vertCount=$i;var Ui=dn;if(dn<0){Ui=oi;var ro=Ni.buffer.dimension;ro===1&&(Ui=en),ro===2&&(Ui=Yr),ro===3&&(Ui=oi)}Ni.primType=Ui}function ua(Ni){Qr.elementsCount--,delete vi[Ni.id],Ni.buffer.destroy(),Ni.buffer=null}function Hn(Ni,Hr){var _i=ar.create(null,xi,!0),dn=new on(_i._buffer);Qr.elementsCount++;function En(Yi){if(!Yi)_i(),dn.primType=oi,dn.vertCount=0,dn.type=an;else if(typeof Yi=="number")_i(Yi),dn.primType=oi,dn.vertCount=Yi|0,dn.type=an;else{var ga=null,Kn=ft,hs=-1,$i=-1,Ui=0,ro=0;Array.isArray(Yi)||_r(Yi)||Ht(Yi)?ga=Yi:("data"in Yi&&(ga=Yi.data),"usage"in Yi&&(Kn=Ci[Yi.usage]),"primitive"in Yi&&(hs=ti[Yi.primitive]),"count"in Yi&&($i=Yi.count|0),"type"in Yi&&(ro=di[Yi.type]),"length"in Yi?Ui=Yi.length|0:(Ui=$i,ro===Fi||ro===rn?Ui*=2:(ro===xn||ro===Ri)&&(Ui*=4))),Ls(dn,ga,Kn,hs,$i,Ui,ro)}return En}return En(Ni),En._reglType="elements",En._elements=dn,En.subdata=function(Yi,ga){return _i.subdata(Yi,ga),En},En.destroy=function(){ua(dn)},En}return{create:Hn,createStream:Ln,destroyStream:wn,getElements:function(Ni){return typeof Ni=="function"&&Ni._elements instanceof on?Ni._elements:null},clear:function(){Re(vi).forEach(ua)}}}var pr=new Float32Array(1),gr=new Uint32Array(pr.buffer),Zr=5123;function Ai(Be){for(var qt=W.allocType(Zr,Be.length),ar=0;ar>>31<<15,fi=(Qr<<1>>>24)-127,di=Qr>>13&1023;if(fi<-24)qt[ar]=vi;else if(fi<-14){var on=-14-fi;qt[ar]=vi+(di+1024>>on)}else fi>15?qt[ar]=vi+31744:qt[ar]=vi+(fi+15<<10)+di}return qt}function Qi(Be){return Array.isArray(Be)||_r(Be)}var ni=34467,Zi=3553,aa=34067,Mn=34069,Un=6408,Ga=6406,ma=6407,oa=6409,ka=6410,so=32854,Kr=32855,Ia=36194,Yo=32819,fa=32820,kn=33635,Ta=34042,ys=6402,uo=34041,ls=35904,$a=35906,fo=36193,mn=33776,ra=33777,wa=33778,ws=33779,Co=35986,Po=35987,ji=34798,gn=35840,Ps=35841,Ha=35842,Sn=35843,ao=36196,Ba=5121,Ko=5123,Qo=5125,Wi=5126,Sa=10242,Qa=10243,vn=10497,da=33071,la=33648,vo=10240,As=10241,ps=9728,co=9729,mo=9984,No=9985,jn=9986,Go=9987,Ys=33170,qs=4352,Ns=4353,Oa=4354,ha=34046,Vs=3317,Ya=37440,_n=37441,Vn=37443,wo=37444,Ra=33984,Xn=[mo,jn,No,Go],un=[0,oa,ka,ma,Un],$n={};$n[oa]=$n[Ga]=$n[ys]=1,$n[uo]=$n[ka]=2,$n[ma]=$n[ls]=3,$n[Un]=$n[$a]=4;function Ka(Be){return"[object "+Be+"]"}var qn=Ka("HTMLCanvasElement"),Eo=Ka("OffscreenCanvas"),Ja=Ka("CanvasRenderingContext2D"),lo=Ka("ImageBitmap"),eo=Ka("HTMLImageElement"),sa=Ka("HTMLVideoElement"),es=Object.keys(pe).concat([qn,Eo,Ja,lo,eo,sa]),Na=[];Na[Ba]=1,Na[Wi]=4,Na[fo]=2,Na[Ko]=2,Na[Qo]=4;var tn=[];tn[so]=2,tn[Kr]=2,tn[Ia]=2,tn[uo]=4,tn[mn]=.5,tn[ra]=.5,tn[wa]=1,tn[ws]=1,tn[Co]=.5,tn[Po]=1,tn[ji]=1,tn[gn]=.5,tn[Ps]=.25,tn[Ha]=.5,tn[Sn]=.25,tn[ao]=.5;function Pa(Be){return Array.isArray(Be)&&(Be.length===0||typeof Be[0]=="number")}function to(Be){if(!Array.isArray(Be))return!1;var qt=Be.length;return!(qt===0||!Qi(Be[0]))}function yo(Be){return Object.prototype.toString.call(Be)}function Jo(Be){return yo(Be)===qn}function Ao(Be){return yo(Be)===Eo}function Dn(Be){return yo(Be)===Ja}function _a(Be){return yo(Be)===lo}function Ws(Be){return yo(Be)===eo}function Ca(Be){return yo(Be)===sa}function Es(Be){if(!Be)return!1;var qt=yo(Be);return es.indexOf(qt)>=0?!0:Pa(Be)||to(Be)||Ht(Be)}function Ts(Be){return pe[Object.prototype.toString.call(Be)]|0}function Ho(Be,qt){var ar=qt.length;switch(Be.type){case Ba:case Ko:case Qo:case Wi:var Qr=W.allocType(Be.type,ar);Qr.set(qt),Be.data=Qr;break;case fo:Be.data=Ai(qt);break;default:}}function Wa(Be,qt){return W.allocType(Be.type===fo?Wi:Be.type,qt)}function To(Be,qt){Be.type===fo?(Be.data=Ai(qt),W.freeType(qt)):Be.data=qt}function ts(Be,qt,ar,Qr,vi,fi){for(var di=Be.width,on=Be.height,Bn=Be.channels,Ln=di*on*Bn,wn=Wa(Be,Ln),Ls=0,ua=0;ua=1;)on+=di*Bn*Bn,Bn/=2;return on}else return di*ar*Qr}function qa(Be,qt,ar,Qr,vi,fi,di){var on={"don't care":qs,"dont care":qs,nice:Oa,fast:Ns},Bn={repeat:vn,clamp:da,mirror:la},Ln={nearest:ps,linear:co},wn=e({mipmap:Go,"nearest mipmap nearest":mo,"linear mipmap nearest":No,"nearest mipmap linear":jn,"linear mipmap linear":Go},Ln),Ls={none:0,browser:wo},ua={uint8:Ba,rgba4:Yo,rgb565:kn,"rgb5 a1":fa},Hn={alpha:Ga,luminance:oa,"luminance alpha":ka,rgb:ma,rgba:Un,rgba4:so,"rgb5 a1":Kr,rgb565:Ia},Ni={};qt.ext_srgb&&(Hn.srgb=ls,Hn.srgba=$a),qt.oes_texture_float&&(ua.float32=ua.float=Wi),qt.oes_texture_half_float&&(ua.float16=ua["half float"]=fo),qt.webgl_depth_texture&&(e(Hn,{depth:ys,"depth stencil":uo}),e(ua,{uint16:Ko,uint32:Qo,"depth stencil":Ta})),qt.webgl_compressed_texture_s3tc&&e(Ni,{"rgb s3tc dxt1":mn,"rgba s3tc dxt1":ra,"rgba s3tc dxt3":wa,"rgba s3tc dxt5":ws}),qt.webgl_compressed_texture_atc&&e(Ni,{"rgb atc":Co,"rgba atc explicit alpha":Po,"rgba atc interpolated alpha":ji}),qt.webgl_compressed_texture_pvrtc&&e(Ni,{"rgb pvrtc 4bppv1":gn,"rgb pvrtc 2bppv1":Ps,"rgba pvrtc 4bppv1":Ha,"rgba pvrtc 2bppv1":Sn}),qt.webgl_compressed_texture_etc1&&(Ni["rgb etc1"]=ao);var Hr=Array.prototype.slice.call(Be.getParameter(ni));Object.keys(Ni).forEach(function(ne){var Le=Ni[ne];Hr.indexOf(Le)>=0&&(Hn[ne]=Le)});var _i=Object.keys(Hn);ar.textureFormats=_i;var dn=[];Object.keys(Hn).forEach(function(ne){var Le=Hn[ne];dn[Le]=ne});var En=[];Object.keys(ua).forEach(function(ne){var Le=ua[ne];En[Le]=ne});var Yi=[];Object.keys(Ln).forEach(function(ne){var Le=Ln[ne];Yi[Le]=ne});var ga=[];Object.keys(wn).forEach(function(ne){var Le=wn[ne];ga[Le]=ne});var Kn=[];Object.keys(Bn).forEach(function(ne){var Le=Bn[ne];Kn[Le]=ne});var hs=_i.reduce(function(ne,Le){var Ze=Hn[Le];return Ze===oa||Ze===Ga||Ze===oa||Ze===ka||Ze===ys||Ze===uo||qt.ext_srgb&&(Ze===ls||Ze===$a)?ne[Ze]=Ze:Ze===Kr||Le.indexOf("rgba")>=0?ne[Ze]=Un:ne[Ze]=ma,ne},{});function $i(){this.internalformat=Un,this.format=Un,this.type=Ba,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=wo,this.width=0,this.height=0,this.channels=0}function Ui(ne,Le){ne.internalformat=Le.internalformat,ne.format=Le.format,ne.type=Le.type,ne.compressed=Le.compressed,ne.premultiplyAlpha=Le.premultiplyAlpha,ne.flipY=Le.flipY,ne.unpackAlignment=Le.unpackAlignment,ne.colorSpace=Le.colorSpace,ne.width=Le.width,ne.height=Le.height,ne.channels=Le.channels}function ro(ne,Le){if(!(typeof Le!="object"||!Le)){if("premultiplyAlpha"in Le&&(ne.premultiplyAlpha=Le.premultiplyAlpha),"flipY"in Le&&(ne.flipY=Le.flipY),"alignment"in Le&&(ne.unpackAlignment=Le.alignment),"colorSpace"in Le&&(ne.colorSpace=Ls[Le.colorSpace]),"type"in Le){var Ze=Le.type;ne.type=ua[Ze]}var Ct=ne.width,dr=ne.height,Mr=ne.channels,ur=!1;"shape"in Le?(Ct=Le.shape[0],dr=Le.shape[1],Le.shape.length===3&&(Mr=Le.shape[2],ur=!0)):("radius"in Le&&(Ct=dr=Le.radius),"width"in Le&&(Ct=Le.width),"height"in Le&&(dr=Le.height),"channels"in Le&&(Mr=Le.channels,ur=!0)),ne.width=Ct|0,ne.height=dr|0,ne.channels=Mr|0;var Je=!1;if("format"in Le){var ht=Le.format,wt=ne.internalformat=Hn[ht];ne.format=hs[wt],ht in ua&&("type"in Le||(ne.type=ua[ht])),ht in Ni&&(ne.compressed=!0),Je=!0}!ur&&Je?ne.channels=$n[ne.format]:ur&&!Je&&ne.channels!==un[ne.format]&&(ne.format=ne.internalformat=un[ne.channels])}}function na(ne){Be.pixelStorei(Ya,ne.flipY),Be.pixelStorei(_n,ne.premultiplyAlpha),Be.pixelStorei(Vn,ne.colorSpace),Be.pixelStorei(Vs,ne.unpackAlignment)}function On(){$i.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function In(ne,Le){var Ze=null;if(Es(Le)?Ze=Le:Le&&(ro(ne,Le),"x"in Le&&(ne.xOffset=Le.x|0),"y"in Le&&(ne.yOffset=Le.y|0),Es(Le.data)&&(Ze=Le.data)),Le.copy){var Ct=vi.viewportWidth,dr=vi.viewportHeight;ne.width=ne.width||Ct-ne.xOffset,ne.height=ne.height||dr-ne.yOffset,ne.needsCopy=!0}else if(!Ze)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(_r(Ze))ne.channels=ne.channels||4,ne.data=Ze,!("type"in Le)&&ne.type===Ba&&(ne.type=Ts(Ze));else if(Pa(Ze))ne.channels=ne.channels||4,Ho(ne,Ze),ne.alignment=1,ne.needsFree=!0;else if(Ht(Ze)){var Mr=Ze.data;!Array.isArray(Mr)&&ne.type===Ba&&(ne.type=Ts(Mr));var ur=Ze.shape,Je=Ze.stride,ht,wt,Kt,sr,Qt,fr;ur.length===3?(Kt=ur[2],fr=Je[2]):(Kt=1,fr=1),ht=ur[0],wt=ur[1],sr=Je[0],Qt=Je[1],ne.alignment=1,ne.width=ht,ne.height=wt,ne.channels=Kt,ne.format=ne.internalformat=un[Kt],ne.needsFree=!0,ts(ne,Mr,sr,Qt,fr,Ze.offset)}else if(Jo(Ze)||Ao(Ze)||Dn(Ze))Jo(Ze)||Ao(Ze)?ne.element=Ze:ne.element=Ze.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(_a(Ze))ne.element=Ze,ne.width=Ze.width,ne.height=Ze.height,ne.channels=4;else if(Ws(Ze))ne.element=Ze,ne.width=Ze.naturalWidth,ne.height=Ze.naturalHeight,ne.channels=4;else if(Ca(Ze))ne.element=Ze,ne.width=Ze.videoWidth,ne.height=Ze.videoHeight,ne.channels=4;else if(to(Ze)){var er=ne.width||Ze[0].length,Ot=ne.height||Ze.length,Jt=ne.channels;Qi(Ze[0][0])?Jt=Jt||Ze[0][0].length:Jt=Jt||1;for(var Lt=xe.shape(Ze),Tr=1,qr=0;qr>=dr,Ze.height>>=dr,In(Ze,Ct[dr]),ne.mipmask|=1<=0&&!("faces"in Le)&&(ne.genMipmaps=!0)}if("mag"in Le){var Ct=Le.mag;ne.magFilter=Ln[Ct]}var dr=ne.wrapS,Mr=ne.wrapT;if("wrap"in Le){var ur=Le.wrap;typeof ur=="string"?dr=Mr=Bn[ur]:Array.isArray(ur)&&(dr=Bn[ur[0]],Mr=Bn[ur[1]])}else{if("wrapS"in Le){var Je=Le.wrapS;dr=Bn[Je]}if("wrapT"in Le){var ht=Le.wrapT;Mr=Bn[ht]}}if(ne.wrapS=dr,ne.wrapT=Mr,"anisotropic"in Le){var wt=Le.anisotropic;ne.anisotropic=Le.anisotropic}if("mipmap"in Le){var Kt=!1;switch(typeof Le.mipmap){case"string":ne.mipmapHint=on[Le.mipmap],ne.genMipmaps=!0,Kt=!0;break;case"boolean":Kt=ne.genMipmaps=Le.mipmap;break;case"object":ne.genMipmaps=!1,Kt=!0;break;default:}Kt&&!("min"in Le)&&(ne.minFilter=mo)}}function bf(ne,Le){Be.texParameteri(Le,As,ne.minFilter),Be.texParameteri(Le,vo,ne.magFilter),Be.texParameteri(Le,Sa,ne.wrapS),Be.texParameteri(Le,Qa,ne.wrapT),qt.ext_texture_filter_anisotropic&&Be.texParameteri(Le,ha,ne.anisotropic),ne.genMipmaps&&(Be.hint(Ys,ne.mipmapHint),Be.generateMipmap(Le))}var Lf=0,Gu={},hf=ar.maxTextureUnits,yf=Array(hf).map(function(){return null});function Fl(ne){$i.call(this),this.mipmask=0,this.internalformat=Un,this.id=Lf++,this.refCount=1,this.target=ne,this.texture=Be.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Cu,di.profile&&(this.stats={size:0})}function wf(ne){Be.activeTexture(Ra),Be.bindTexture(ne.target,ne.texture)}function cu(){var ne=yf[0];ne?Be.bindTexture(ne.target,ne.texture):Be.bindTexture(Zi,null)}function Y(ne){var Le=ne.texture,Ze=ne.unit,Ct=ne.target;Ze>=0&&(Be.activeTexture(Ra+Ze),Be.bindTexture(Ct,null),yf[Ze]=null),Be.deleteTexture(Le),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete Gu[ne.id],fi.textureCount--}e(Fl.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var Le=ne.unit;if(Le<0){for(var Ze=0;Ze0)continue;Ct.unit=-1}yf[Ze]=ne,Le=Ze;break}Le>=hf,di.profile&&fi.maxTextureUnits>Qt)-Kt,fr.height=fr.height||(Ze.height>>Qt)-sr,wf(Ze),_s(fr,Zi,Kt,sr,Qt),cu(),Mo(fr),Ct}function Mr(ur,Je){var ht=ur|0,wt=Je|0||ht;if(ht===Ze.width&&wt===Ze.height)return Ct;Ct.width=Ze.width=ht,Ct.height=Ze.height=wt,wf(Ze);for(var Kt=0;Ze.mipmask>>Kt;++Kt){var sr=ht>>Kt,Qt=wt>>Kt;if(!sr||!Qt)break;Be.texImage2D(Zi,Kt,Ze.format,sr,Qt,0,Ze.format,Ze.type,null)}return cu(),di.profile&&(Ze.stats.size=Wo(Ze.internalformat,Ze.type,ht,wt,!1,!1)),Ct}return Ct(ne,Le),Ct.subimage=dr,Ct.resize=Mr,Ct._reglType="texture2d",Ct._texture=Ze,di.profile&&(Ct.stats=Ze.stats),Ct.destroy=function(){Ze.decRef()},Ct}function J(ne,Le,Ze,Ct,dr,Mr){var ur=new Fl(aa);Gu[ur.id]=ur,fi.cubeCount++;var Je=new Array(6);function ht(sr,Qt,fr,er,Ot,Jt){var Lt,Tr=ur.texInfo;for(Cu.call(Tr),Lt=0;Lt<6;++Lt)Je[Lt]=Ql();if(typeof sr=="number"||!sr){var qr=sr|0||1;for(Lt=0;Lt<6;++Lt)pl(Je[Lt],qr,qr)}else if(typeof sr=="object")if(Qt)Dl(Je[0],sr),Dl(Je[1],Qt),Dl(Je[2],fr),Dl(Je[3],er),Dl(Je[4],Ot),Dl(Je[5],Jt);else if(_f(Tr,sr),ro(ur,sr),"faces"in sr){var ci=sr.faces;for(Lt=0;Lt<6;++Lt)Ui(Je[Lt],ur),Dl(Je[Lt],ci[Lt])}else for(Lt=0;Lt<6;++Lt)Dl(Je[Lt],sr);for(Ui(ur,Je[0]),Tr.genMipmaps?ur.mipmask=(Je[0].width<<1)-1:ur.mipmask=Je[0].mipmask,ur.internalformat=Je[0].internalformat,ht.width=Je[0].width,ht.height=Je[0].height,wf(ur),Lt=0;Lt<6;++Lt)Fu(Je[Lt],Mn+Lt);for(bf(Tr,aa),cu(),di.profile&&(ur.stats.size=Wo(ur.internalformat,ur.type,ht.width,ht.height,Tr.genMipmaps,!0)),ht.format=dn[ur.internalformat],ht.type=En[ur.type],ht.mag=Yi[Tr.magFilter],ht.min=ga[Tr.minFilter],ht.wrapS=Kn[Tr.wrapS],ht.wrapT=Kn[Tr.wrapT],Lt=0;Lt<6;++Lt)kf(Je[Lt]);return ht}function wt(sr,Qt,fr,er,Ot){var Jt=fr|0,Lt=er|0,Tr=Ot|0,qr=Qn();return Ui(qr,ur),qr.width=0,qr.height=0,In(qr,Qt),qr.width=qr.width||(ur.width>>Tr)-Jt,qr.height=qr.height||(ur.height>>Tr)-Lt,wf(ur),_s(qr,Mn+sr,Jt,Lt,Tr),cu(),Mo(qr),ht}function Kt(sr){var Qt=sr|0;if(Qt!==ur.width){ht.width=ur.width=Qt,ht.height=ur.height=Qt,wf(ur);for(var fr=0;fr<6;++fr)for(var er=0;ur.mipmask>>er;++er)Be.texImage2D(Mn+fr,er,ur.format,Qt>>er,Qt>>er,0,ur.format,ur.type,null);return cu(),di.profile&&(ur.stats.size=Wo(ur.internalformat,ur.type,ht.width,ht.height,!1,!0)),ht}}return ht(ne,Le,Ze,Ct,dr,Mr),ht.subimage=wt,ht.resize=Kt,ht._reglType="textureCube",ht._texture=ur,di.profile&&(ht.stats=ur.stats),ht.destroy=function(){ur.decRef()},ht}function O(){for(var ne=0;ne>Ct,Ze.height>>Ct,0,Ze.internalformat,Ze.type,null);else for(var dr=0;dr<6;++dr)Be.texImage2D(Mn+dr,Ct,Ze.internalformat,Ze.width>>Ct,Ze.height>>Ct,0,Ze.internalformat,Ze.type,null);bf(Ze.texInfo,Ze.target)})}function ge(){for(var ne=0;ne=0?kf=!0:Bn.indexOf(Cu)>=0&&(kf=!1))),("depthTexture"in Fl||"depthStencilTexture"in Fl)&&(yf=!!(Fl.depthTexture||Fl.depthStencilTexture)),"depth"in Fl&&(typeof Fl.depth=="boolean"?Fu=Fl.depth:(Lf=Fl.depth,mf=!1)),"stencil"in Fl&&(typeof Fl.stencil=="boolean"?mf=Fl.stencil:(Gu=Fl.stencil,Fu=!1)),"depthStencil"in Fl&&(typeof Fl.depthStencil=="boolean"?Fu=mf=Fl.depthStencil:(hf=Fl.depthStencil,Fu=!1,mf=!1))}var cu=null,Y=null,R=null,J=null;if(Array.isArray(Ql))cu=Ql.map(Ni);else if(Ql)cu=[Ni(Ql)];else for(cu=new Array(bf),nl=0;nl0&&(Mo.depth=In[0].depth,Mo.stencil=In[0].stencil,Mo.depthStencil=In[0].depthStencil),In[Qn]?In[Qn](Mo):In[Qn]=Ui(Mo)}return e(Va,{width:nl,height:nl,color:Cu})}function _s(ul){var Qn,Mo=ul|0;if(Mo===Va.width)return Va;var nl=Va.color;for(Qn=0;Qn=nl.byteLength?pl.subdata(nl):(pl.destroy(),Ui.buffers[ul]=null)),Ui.buffers[ul]||(pl=Ui.buffers[ul]=vi.create(Qn,Ss,!1,!0)),Mo.buffer=vi.getBuffer(pl),Mo.size=Mo.buffer.dimension|0,Mo.normalized=!1,Mo.type=Mo.buffer.dtype,Mo.offset=0,Mo.stride=0,Mo.divisor=0,Mo.state=1,Va[ul]=1}else vi.getBuffer(Qn)?(Mo.buffer=vi.getBuffer(Qn),Mo.size=Mo.buffer.dimension|0,Mo.normalized=!1,Mo.type=Mo.buffer.dtype,Mo.offset=0,Mo.stride=0,Mo.divisor=0,Mo.state=1):vi.getBuffer(Qn.buffer)?(Mo.buffer=vi.getBuffer(Qn.buffer),Mo.size=(+Qn.size||Mo.buffer.dimension)|0,Mo.normalized=!!Qn.normalized||!1,"type"in Qn?Mo.type=mi[Qn.type]:Mo.type=Mo.buffer.dtype,Mo.offset=(Qn.offset||0)|0,Mo.stride=(Qn.stride||0)|0,Mo.divisor=(Qn.divisor||0)|0,Mo.state=1):"x"in Qn&&(Mo.x=+Qn.x||0,Mo.y=+Qn.y||0,Mo.z=+Qn.z||0,Mo.w=+Qn.w||0,Mo.state=2)}for(var Dl=0;Dl1)for(var na=0;naHr&&(Hr=_i.stats.uniformsCount)}),Hr},ar.getMaxAttributesCount=function(){var Hr=0;return wn.forEach(function(_i){_i.stats.attributesCount>Hr&&(Hr=_i.stats.attributesCount)}),Hr});function Ni(){vi={},fi={};for(var Hr=0;Hr16&&(ar=Pi(ar,Be.length*8));for(var Qr=Array(16),vi=Array(16),fi=0;fi<16;fi++)Qr[fi]=ar[fi]^909522486,vi[fi]=ar[fi]^1549556828;var di=Pi(Qr.concat(Bs(qt)),512+qt.length*8);return Tt(Pi(vi.concat(di),768))}function Ms(Be){for(var qt=Ro?"0123456789ABCDEF":"0123456789abcdef",ar="",Qr,vi=0;vi>>4&15)+qt.charAt(Qr&15);return ar}function jo(Be){for(var qt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ar="",Qr=Be.length,vi=0;viBe.length*8?ar+=tl:ar+=qt.charAt(fi>>>6*(3-di)&63);return ar}function Rs(Be,qt){var ar=qt.length,Qr=Array(),vi,fi,di,on,Bn=Array(Math.ceil(Be.length/2));for(vi=0;vi0;){for(on=Array(),di=0,vi=0;vi0||fi>0)&&(on[on.length]=fi);Qr[Qr.length]=di,Bn=on}var Ln="";for(vi=Qr.length-1;vi>=0;vi--)Ln+=qt.charAt(Qr[vi]);var wn=Math.ceil(Be.length*8/(Math.log(qt.length)/Math.log(2)));for(vi=Ln.length;vi>>6&31,128|Qr&63):Qr<=65535?qt+=String.fromCharCode(224|Qr>>>12&15,128|Qr>>>6&63,128|Qr&63):Qr<=2097151&&(qt+=String.fromCharCode(240|Qr>>>18&7,128|Qr>>>12&63,128|Qr>>>6&63,128|Qr&63));return qt}function Bs(Be){for(var qt=Array(Be.length>>2),ar=0;ar>5]|=(Be.charCodeAt(ar/8)&255)<<24-ar%32;return qt}function Tt(Be){for(var qt="",ar=0;ar>5]>>>24-ar%32&255);return qt}function Vt(Be,qt){return Be>>>qt|Be<<32-qt}function wr(Be,qt){return Be>>>qt}function yr(Be,qt,ar){return Be&qt^~Be&ar}function Fr(Be,qt,ar){return Be&qt^Be&ar^qt&ar}function gi(Be){return Vt(Be,2)^Vt(Be,13)^Vt(Be,22)}function Ti(Be){return Vt(Be,6)^Vt(Be,11)^Vt(Be,25)}function ki(Be){return Vt(Be,7)^Vt(Be,18)^wr(Be,3)}function Ji(Be){return Vt(Be,17)^Vt(Be,19)^wr(Be,10)}var Fn=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Pi(Be,qt){var ar=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Qr=new Array(64),vi,fi,di,on,Bn,Ln,wn,Ls,ua,Hn,Ni,Hr;for(Be[qt>>5]|=128<<24-qt%32,Be[(qt+64>>9<<4)+15]=qt,ua=0;ua>16)+(qt>>16)+(ar>>16);return Qr<<16|ar&65535}function Li(Be){return Array.prototype.slice.call(Be)}function Si(Be){return Li(Be).join("")}function Gn(Be){var qt=Be&&Be.cache,ar=0,Qr=[],vi=[],fi=[];function di(Ni,Hr){var _i=Hr&&Hr.stable;if(!_i){for(var dn=0;dn0&&(Ni.push(En,"="),Ni.push.apply(Ni,Li(arguments)),Ni.push(";")),En}return e(Hr,{def:dn,toString:function(){return Si([_i.length>0?"var "+_i.join(",")+";":"",Si(Ni)])}})}function Bn(){var Ni=on(),Hr=on(),_i=Ni.toString,dn=Hr.toString;function En(Yi,ga){Hr(Yi,ga,"=",Ni.def(Yi,ga),";")}return e(function(){Ni.apply(Ni,Li(arguments))},{def:Ni.def,entry:Ni,exit:Hr,save:En,set:function(Yi,ga,Kn){En(Yi,ga),Ni(Yi,ga,"=",Kn,";")},toString:function(){return _i()+dn()}})}function Ln(){var Ni=Si(arguments),Hr=Bn(),_i=Bn(),dn=Hr.toString,En=_i.toString;return e(Hr,{then:function(){return Hr.apply(Hr,Li(arguments)),this},else:function(){return _i.apply(_i,Li(arguments)),this},toString:function(){var Yi=En();return Yi&&(Yi="else{"+Yi+"}"),Si(["if(",Ni,"){",dn(),"}",Yi])}})}var wn=on(),Ls={};function ua(Ni,Hr){var _i=[];function dn(){var hs="a"+_i.length;return _i.push(hs),hs}Hr=Hr||0;for(var En=0;En2){for(var a=Array(t.position.length*.5),o=0;o2){for(var l=!t.position[0].length,f=dx.mallocFloat(this.count*2),c=0,h=0;c1?r.align[pe]:r.align[0]:r.align;if(typeof te=="number")return te;switch(te){case"right":case"end":return-Le;case"center":case"centre":case"middle":return-Le*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(Le,pe){var te=(r.font[pe]||r.font[0]).metrics,ke=0;return ke+=te.bottom*.5,typeof Le=="number"?ke+=Le-te.baseline:ke+=-te[Le],ke*=-1,ke})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=vK(t.color,"uint8");else{var G;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var j=t.color.length;G=dx.mallocUint8(j);for(var H=(t.color.subarray||t.color.slice).bind(t.color),N=0;N4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(ae){var be=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(be);for(var Ce=0;Ce1?this.counts[Ce]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Ce]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Ce*4,Ce*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Ce]:this.opacity,baseline:this.baselineOffset[Ce]!=null?this.baselineOffset[Ce]:this.baselineOffset[0],align:this.align?this.alignOffset[Ce]!=null?this.alignOffset[Ce]:this.alignOffset[0]:0,atlas:this.fontAtlas[Ce]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Ce*2,Ce*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};kc.prototype.destroy=function(){};kc.prototype.kerning=!0;kc.prototype.position={constant:new Float32Array(2)};kc.prototype.translate=null;kc.prototype.scale=null;kc.prototype.font=null;kc.prototype.text="";kc.prototype.positionOffset=[0,0];kc.prototype.opacity=1;kc.prototype.color=new Uint8Array([0,0,0,255]);kc.prototype.alignOffset=[0,0];kc.maxAtlasSize=1024;kc.atlasCanvas=document.createElement("canvas");kc.atlasContext=kc.atlasCanvas.getContext("2d",{alpha:!1});kc.baseFontSize=64;kc.fonts={};function zUt(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}bNe.exports=kc});var ANe=Te((mK,yK)=>{(function(e,t){typeof mK=="object"&&typeof yK!="undefined"?yK.exports=t():e.createREGL=t()})(mK,function(){"use strict";var e=function(Be,qt){for(var ar=Object.keys(qt),Qr=0;Qr1&&qt===ar&&(qt==='"'||qt==="'"))return['"'+o(Be.substr(1,Be.length-2))+'"'];var Qr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Be);if(Qr)return s(Be.substr(0,Qr.index)).concat(s(Qr[1])).concat(s(Be.substr(Qr.index+Qr[0].length)));var mi=Be.split(".");if(mi.length===1)return['"'+o(Be)+'"'];for(var fi=[],pi=0;pi65535)<<4,Be>>>=qt,ar=(Be>255)<<3,Be>>>=ar,qt|=ar,ar=(Be>15)<<2,Be>>>=ar,qt|=ar,ar=(Be>3)<<1,Be>>>=ar,qt|=ar,qt|Be>>1}function N(){var Be=S(8,function(){return[]});function qt(fi){var pi=j(fi),on=Be[H(pi)>>2];return on.length>0?on.pop():new ArrayBuffer(pi)}function ar(fi){Be[H(fi.byteLength)>>2].push(fi)}function Qr(fi,pi){var on=null;switch(fi){case m:on=new Int8Array(qt(pi),0,pi);break;case P:on=new Uint8Array(qt(pi),0,pi);break;case A:on=new Int16Array(qt(2*pi),0,pi);break;case B:on=new Uint16Array(qt(2*pi),0,pi);break;case F:on=new Int32Array(qt(4*pi),0,pi);break;case U:on=new Uint32Array(qt(4*pi),0,pi);break;case G:on=new Float32Array(qt(4*pi),0,pi);break;default:return null}return on.length!==pi?on.subarray(0,pi):on}function mi(fi){ar(fi.buffer)}return{alloc:qt,free:ar,allocType:Qr,freeType:mi}}var W=N();W.zero=N();var re=3408,ae=3410,be=3411,Ce=3412,Le=3413,pe=3414,te=3415,ke=33901,Ee=33902,Me=3379,Ne=3386,Fe=34921,ye=36347,Ve=36348,ce=35661,Je=35660,nt=34930,gt=36349,Nt=34076,it=34024,Ye=7936,kt=7937,Tt=7938,St=35724,Dt=34047,Zt=36063,Et=34852,Ae=3553,at=34067,wt=34069,vt=33984,st=6408,Ue=5126,rt=5121,$e=36160,zt=36053,Yt=36064,hr=16384,yr=function(Be,qt){var ar=1;qt.ext_texture_filter_anisotropic&&(ar=Be.getParameter(Dt));var Qr=1,mi=1;qt.webgl_draw_buffers&&(Qr=Be.getParameter(Et),mi=Be.getParameter(Zt));var fi=!!qt.oes_texture_float;if(fi){var pi=Be.createTexture();Be.bindTexture(Ae,pi),Be.texImage2D(Ae,0,st,1,1,0,st,Ue,null);var on=Be.createFramebuffer();if(Be.bindFramebuffer($e,on),Be.framebufferTexture2D($e,Yt,Ae,pi,0),Be.bindTexture(Ae,null),Be.checkFramebufferStatus($e)!==zt)fi=!1;else{Be.viewport(0,0,1,1),Be.clearColor(1,0,0,1),Be.clear(hr);var Bn=W.allocType(Ue,4);Be.readPixels(0,0,1,1,st,Ue,Bn),Be.getError()?fi=!1:(Be.deleteFramebuffer(on),Be.deleteTexture(pi),fi=Bn[0]===1),W.freeType(Bn)}}var Ln=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),wn=!0;if(!Ln){var Ls=Be.createTexture(),ua=W.allocType(rt,36);Be.activeTexture(vt),Be.bindTexture(at,Ls),Be.texImage2D(wt,0,st,3,3,0,st,rt,ua),W.freeType(ua),Be.bindTexture(at,null),Be.deleteTexture(Ls),wn=!Be.getError()}return{colorBits:[Be.getParameter(ae),Be.getParameter(be),Be.getParameter(Ce),Be.getParameter(Le)],depthBits:Be.getParameter(pe),stencilBits:Be.getParameter(te),subpixelBits:Be.getParameter(re),extensions:Object.keys(qt).filter(function(Hn){return!!qt[Hn]}),maxAnisotropic:ar,maxDrawbuffers:Qr,maxColorAttachments:mi,pointSizeDims:Be.getParameter(ke),lineWidthDims:Be.getParameter(Ee),maxViewportDims:Be.getParameter(Ne),maxCombinedTextureUnits:Be.getParameter(ce),maxCubeMapSize:Be.getParameter(Nt),maxRenderbufferSize:Be.getParameter(it),maxTextureUnits:Be.getParameter(nt),maxTextureSize:Be.getParameter(Me),maxAttributes:Be.getParameter(Fe),maxVertexUniforms:Be.getParameter(ye),maxVertexTextureUnits:Be.getParameter(Je),maxVaryingVectors:Be.getParameter(Ve),maxFragmentUniforms:Be.getParameter(gt),glsl:Be.getParameter(St),renderer:Be.getParameter(kt),vendor:Be.getParameter(Ye),version:Be.getParameter(Tt),readFloat:fi,npotTextureCube:wn}},br=function(Be){return Be instanceof Uint8Array||Be instanceof Uint16Array||Be instanceof Uint32Array||Be instanceof Int8Array||Be instanceof Int16Array||Be instanceof Int32Array||Be instanceof Float32Array||Be instanceof Float64Array||Be instanceof Uint8ClampedArray};function Ut(Be){return!!Be&&typeof Be=="object"&&Array.isArray(Be.shape)&&Array.isArray(Be.stride)&&typeof Be.offset=="number"&&Be.shape.length===Be.stride.length&&(Array.isArray(Be.data)||br(Be.data))}var Ie=function(Be){return Object.keys(Be).map(function(qt){return Be[qt]})},xe={shape:fe,flatten:ge};function Oe(Be,qt,ar){for(var Qr=0;Qr0){var hs;if(Array.isArray(_i[0])){Kn=ii(_i);for(var $i=1,Ui=1;Ui0){if(typeof $i[0]=="number"){var On=W.allocType(Yi.dtype,$i.length);_r(On,$i),Kn(On,ro),W.freeType(On)}else if(Array.isArray($i[0])||br($i[0])){na=ii($i);var In=nn($i,na,Yi.dtype);Kn(In,ro),W.freeType(In)}}}else if(Ut($i)){na=$i.shape;var Va=$i.stride,_s=0,ul=0,Qn=0,Mo=0;na.length===1?(_s=na[0],ul=1,Qn=Va[0],Mo=0):na.length===2&&(_s=na[0],ul=na[1],Qn=Va[0],Mo=Va[1]);var nl=Array.isArray($i.data)?Yi.dtype:Wt($i.data),pl=W.allocType(nl,_s*ul);Lr(pl,$i.data,_s,ul,Qn,Mo,$i.offset),Kn(pl,ro),W.freeType(pl)}return ga}return dn||ga(Wr),ga._reglType="buffer",ga._buffer=Yi,ga.subdata=hs,ar.profile&&(ga.stats=Yi.stats),ga.destroy=function(){ua(Yi)},ga}function Ni(){Ie(fi).forEach(function(Wr){Wr.buffer=Be.createBuffer(),Be.bindBuffer(Wr.type,Wr.buffer),Be.bufferData(Wr.type,Wr.persistentData||Wr.byteLength,Wr.usage)})}return ar.profile&&(qt.getTotalBufferSize=function(){var Wr=0;return Object.keys(fi).forEach(function(_i){Wr+=fi[_i].stats.size}),Wr}),{create:Hn,createStream:Bn,destroyStream:Ln,clear:function(){Ie(fi).forEach(ua),on.forEach(ua)},getBuffer:function(Wr){return Wr&&Wr._buffer instanceof pi?Wr._buffer:null},restore:Ni,_initBuffer:Ls}}var Ir=0,Gr=0,jr=1,yi=1,Ei=4,Vi=4,ti={points:Ir,point:Gr,lines:jr,line:yi,triangles:Ei,triangle:Vi,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},en=0,Yr=1,oi=4,Bi=5120,an=5121,rn=5122,Fi=5123,Ri=5124,xn=5125,xi=34963,Xr=35040,ft=35044;function tr(Be,qt,ar,Qr){var mi={},fi=0,pi={uint8:an,uint16:Fi};qt.oes_element_index_uint&&(pi.uint32=xn);function on(Ni){this.id=fi++,mi[this.id]=this,this.buffer=Ni,this.primType=oi,this.vertCount=0,this.type=0}on.prototype.bind=function(){this.buffer.bind()};var Bn=[];function Ln(Ni){var Wr=Bn.pop();return Wr||(Wr=new on(ar.create(null,xi,!0,!1)._buffer)),Ls(Wr,Ni,Xr,-1,-1,0,0),Wr}function wn(Ni){Bn.push(Ni)}function Ls(Ni,Wr,_i,dn,En,Yi,ga){Ni.buffer.bind();var Kn;if(Wr){var hs=ga;!ga&&(!br(Wr)||Ut(Wr)&&!br(Wr.data))&&(hs=qt.oes_element_index_uint?xn:Fi),ar._initBuffer(Ni.buffer,Wr,_i,hs,3)}else Be.bufferData(xi,Yi,_i),Ni.buffer.dtype=Kn||an,Ni.buffer.usage=_i,Ni.buffer.dimension=3,Ni.buffer.byteLength=Yi;if(Kn=ga,!ga){switch(Ni.buffer.dtype){case an:case Bi:Kn=an;break;case Fi:case rn:Kn=Fi;break;case xn:case Ri:Kn=xn;break;default:}Ni.buffer.dtype=Kn}Ni.type=Kn;var $i=En;$i<0&&($i=Ni.buffer.byteLength,Kn===Fi?$i>>=1:Kn===xn&&($i>>=2)),Ni.vertCount=$i;var Ui=dn;if(dn<0){Ui=oi;var ro=Ni.buffer.dimension;ro===1&&(Ui=en),ro===2&&(Ui=Yr),ro===3&&(Ui=oi)}Ni.primType=Ui}function ua(Ni){Qr.elementsCount--,delete mi[Ni.id],Ni.buffer.destroy(),Ni.buffer=null}function Hn(Ni,Wr){var _i=ar.create(null,xi,!0),dn=new on(_i._buffer);Qr.elementsCount++;function En(Yi){if(!Yi)_i(),dn.primType=oi,dn.vertCount=0,dn.type=an;else if(typeof Yi=="number")_i(Yi),dn.primType=oi,dn.vertCount=Yi|0,dn.type=an;else{var ga=null,Kn=ft,hs=-1,$i=-1,Ui=0,ro=0;Array.isArray(Yi)||br(Yi)||Ut(Yi)?ga=Yi:("data"in Yi&&(ga=Yi.data),"usage"in Yi&&(Kn=Ci[Yi.usage]),"primitive"in Yi&&(hs=ti[Yi.primitive]),"count"in Yi&&($i=Yi.count|0),"type"in Yi&&(ro=pi[Yi.type]),"length"in Yi?Ui=Yi.length|0:(Ui=$i,ro===Fi||ro===rn?Ui*=2:(ro===xn||ro===Ri)&&(Ui*=4))),Ls(dn,ga,Kn,hs,$i,Ui,ro)}return En}return En(Ni),En._reglType="elements",En._elements=dn,En.subdata=function(Yi,ga){return _i.subdata(Yi,ga),En},En.destroy=function(){ua(dn)},En}return{create:Hn,createStream:Ln,destroyStream:wn,getElements:function(Ni){return typeof Ni=="function"&&Ni._elements instanceof on?Ni._elements:null},clear:function(){Ie(mi).forEach(ua)}}}var pr=new Float32Array(1),gr=new Uint32Array(pr.buffer),Zr=5123;function Ai(Be){for(var qt=W.allocType(Zr,Be.length),ar=0;ar>>31<<15,fi=(Qr<<1>>>24)-127,pi=Qr>>13&1023;if(fi<-24)qt[ar]=mi;else if(fi<-14){var on=-14-fi;qt[ar]=mi+(pi+1024>>on)}else fi>15?qt[ar]=mi+31744:qt[ar]=mi+(fi+15<<10)+pi}return qt}function Qi(Be){return Array.isArray(Be)||br(Be)}var ni=34467,Zi=3553,aa=34067,Mn=34069,Un=6408,Ga=6406,ma=6407,oa=6409,ka=6410,so=32854,Kr=32855,Ia=36194,Yo=32819,fa=32820,kn=33635,Ta=34042,ys=6402,uo=34041,ls=35904,$a=35906,fo=36193,mn=33776,ra=33777,wa=33778,ws=33779,Co=35986,Po=35987,ji=34798,gn=35840,Ps=35841,Ha=35842,Sn=35843,ao=36196,Ba=5121,Ko=5123,Qo=5125,Wi=5126,Sa=10242,Qa=10243,vn=10497,da=33071,la=33648,vo=10240,As=10241,ps=9728,co=9729,mo=9984,No=9985,jn=9986,Go=9987,Ys=33170,qs=4352,Ns=4353,Oa=4354,ha=34046,Vs=3317,Ya=37440,_n=37441,Vn=37443,wo=37444,Ra=33984,Xn=[mo,jn,No,Go],un=[0,oa,ka,ma,Un],$n={};$n[oa]=$n[Ga]=$n[ys]=1,$n[uo]=$n[ka]=2,$n[ma]=$n[ls]=3,$n[Un]=$n[$a]=4;function Ka(Be){return"[object "+Be+"]"}var qn=Ka("HTMLCanvasElement"),Eo=Ka("OffscreenCanvas"),Ja=Ka("CanvasRenderingContext2D"),lo=Ka("ImageBitmap"),eo=Ka("HTMLImageElement"),sa=Ka("HTMLVideoElement"),es=Object.keys(de).concat([qn,Eo,Ja,lo,eo,sa]),Na=[];Na[Ba]=1,Na[Wi]=4,Na[fo]=2,Na[Ko]=2,Na[Qo]=4;var tn=[];tn[so]=2,tn[Kr]=2,tn[Ia]=2,tn[uo]=4,tn[mn]=.5,tn[ra]=.5,tn[wa]=1,tn[ws]=1,tn[Co]=.5,tn[Po]=1,tn[ji]=1,tn[gn]=.5,tn[Ps]=.25,tn[Ha]=.5,tn[Sn]=.25,tn[ao]=.5;function Pa(Be){return Array.isArray(Be)&&(Be.length===0||typeof Be[0]=="number")}function to(Be){if(!Array.isArray(Be))return!1;var qt=Be.length;return!(qt===0||!Qi(Be[0]))}function yo(Be){return Object.prototype.toString.call(Be)}function Jo(Be){return yo(Be)===qn}function Ao(Be){return yo(Be)===Eo}function Dn(Be){return yo(Be)===Ja}function _a(Be){return yo(Be)===lo}function Ws(Be){return yo(Be)===eo}function Ca(Be){return yo(Be)===sa}function Es(Be){if(!Be)return!1;var qt=yo(Be);return es.indexOf(qt)>=0?!0:Pa(Be)||to(Be)||Ut(Be)}function Ts(Be){return de[Object.prototype.toString.call(Be)]|0}function Ho(Be,qt){var ar=qt.length;switch(Be.type){case Ba:case Ko:case Qo:case Wi:var Qr=W.allocType(Be.type,ar);Qr.set(qt),Be.data=Qr;break;case fo:Be.data=Ai(qt);break;default:}}function Wa(Be,qt){return W.allocType(Be.type===fo?Wi:Be.type,qt)}function To(Be,qt){Be.type===fo?(Be.data=Ai(qt),W.freeType(qt)):Be.data=qt}function ts(Be,qt,ar,Qr,mi,fi){for(var pi=Be.width,on=Be.height,Bn=Be.channels,Ln=pi*on*Bn,wn=Wa(Be,Ln),Ls=0,ua=0;ua=1;)on+=pi*Bn*Bn,Bn/=2;return on}else return pi*ar*Qr}function qa(Be,qt,ar,Qr,mi,fi,pi){var on={"don't care":qs,"dont care":qs,nice:Oa,fast:Ns},Bn={repeat:vn,clamp:da,mirror:la},Ln={nearest:ps,linear:co},wn=e({mipmap:Go,"nearest mipmap nearest":mo,"linear mipmap nearest":No,"nearest mipmap linear":jn,"linear mipmap linear":Go},Ln),Ls={none:0,browser:wo},ua={uint8:Ba,rgba4:Yo,rgb565:kn,"rgb5 a1":fa},Hn={alpha:Ga,luminance:oa,"luminance alpha":ka,rgb:ma,rgba:Un,rgba4:so,"rgb5 a1":Kr,rgb565:Ia},Ni={};qt.ext_srgb&&(Hn.srgb=ls,Hn.srgba=$a),qt.oes_texture_float&&(ua.float32=ua.float=Wi),qt.oes_texture_half_float&&(ua.float16=ua["half float"]=fo),qt.webgl_depth_texture&&(e(Hn,{depth:ys,"depth stencil":uo}),e(ua,{uint16:Ko,uint32:Qo,"depth stencil":Ta})),qt.webgl_compressed_texture_s3tc&&e(Ni,{"rgb s3tc dxt1":mn,"rgba s3tc dxt1":ra,"rgba s3tc dxt3":wa,"rgba s3tc dxt5":ws}),qt.webgl_compressed_texture_atc&&e(Ni,{"rgb atc":Co,"rgba atc explicit alpha":Po,"rgba atc interpolated alpha":ji}),qt.webgl_compressed_texture_pvrtc&&e(Ni,{"rgb pvrtc 4bppv1":gn,"rgb pvrtc 2bppv1":Ps,"rgba pvrtc 4bppv1":Ha,"rgba pvrtc 2bppv1":Sn}),qt.webgl_compressed_texture_etc1&&(Ni["rgb etc1"]=ao);var Wr=Array.prototype.slice.call(Be.getParameter(ni));Object.keys(Ni).forEach(function(ne){var Pe=Ni[ne];Wr.indexOf(Pe)>=0&&(Hn[ne]=Pe)});var _i=Object.keys(Hn);ar.textureFormats=_i;var dn=[];Object.keys(Hn).forEach(function(ne){var Pe=Hn[ne];dn[Pe]=ne});var En=[];Object.keys(ua).forEach(function(ne){var Pe=ua[ne];En[Pe]=ne});var Yi=[];Object.keys(Ln).forEach(function(ne){var Pe=Ln[ne];Yi[Pe]=ne});var ga=[];Object.keys(wn).forEach(function(ne){var Pe=wn[ne];ga[Pe]=ne});var Kn=[];Object.keys(Bn).forEach(function(ne){var Pe=Bn[ne];Kn[Pe]=ne});var hs=_i.reduce(function(ne,Pe){var Ze=Hn[Pe];return Ze===oa||Ze===Ga||Ze===oa||Ze===ka||Ze===ys||Ze===uo||qt.ext_srgb&&(Ze===ls||Ze===$a)?ne[Ze]=Ze:Ze===Kr||Pe.indexOf("rgba")>=0?ne[Ze]=Un:ne[Ze]=ma,ne},{});function $i(){this.internalformat=Un,this.format=Un,this.type=Ba,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=wo,this.width=0,this.height=0,this.channels=0}function Ui(ne,Pe){ne.internalformat=Pe.internalformat,ne.format=Pe.format,ne.type=Pe.type,ne.compressed=Pe.compressed,ne.premultiplyAlpha=Pe.premultiplyAlpha,ne.flipY=Pe.flipY,ne.unpackAlignment=Pe.unpackAlignment,ne.colorSpace=Pe.colorSpace,ne.width=Pe.width,ne.height=Pe.height,ne.channels=Pe.channels}function ro(ne,Pe){if(!(typeof Pe!="object"||!Pe)){if("premultiplyAlpha"in Pe&&(ne.premultiplyAlpha=Pe.premultiplyAlpha),"flipY"in Pe&&(ne.flipY=Pe.flipY),"alignment"in Pe&&(ne.unpackAlignment=Pe.alignment),"colorSpace"in Pe&&(ne.colorSpace=Ls[Pe.colorSpace]),"type"in Pe){var Ze=Pe.type;ne.type=ua[Ze]}var Ct=ne.width,dr=ne.height,Er=ne.channels,lr=!1;"shape"in Pe?(Ct=Pe.shape[0],dr=Pe.shape[1],Pe.shape.length===3&&(Er=Pe.shape[2],lr=!0)):("radius"in Pe&&(Ct=dr=Pe.radius),"width"in Pe&&(Ct=Pe.width),"height"in Pe&&(dr=Pe.height),"channels"in Pe&&(Er=Pe.channels,lr=!0)),ne.width=Ct|0,ne.height=dr|0,ne.channels=Er|0;var Ke=!1;if("format"in Pe){var ht=Pe.format,bt=ne.internalformat=Hn[ht];ne.format=hs[bt],ht in ua&&("type"in Pe||(ne.type=ua[ht])),ht in Ni&&(ne.compressed=!0),Ke=!0}!lr&&Ke?ne.channels=$n[ne.format]:lr&&!Ke&&ne.channels!==un[ne.format]&&(ne.format=ne.internalformat=un[ne.channels])}}function na(ne){Be.pixelStorei(Ya,ne.flipY),Be.pixelStorei(_n,ne.premultiplyAlpha),Be.pixelStorei(Vn,ne.colorSpace),Be.pixelStorei(Vs,ne.unpackAlignment)}function On(){$i.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function In(ne,Pe){var Ze=null;if(Es(Pe)?Ze=Pe:Pe&&(ro(ne,Pe),"x"in Pe&&(ne.xOffset=Pe.x|0),"y"in Pe&&(ne.yOffset=Pe.y|0),Es(Pe.data)&&(Ze=Pe.data)),Pe.copy){var Ct=mi.viewportWidth,dr=mi.viewportHeight;ne.width=ne.width||Ct-ne.xOffset,ne.height=ne.height||dr-ne.yOffset,ne.needsCopy=!0}else if(!Ze)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(br(Ze))ne.channels=ne.channels||4,ne.data=Ze,!("type"in Pe)&&ne.type===Ba&&(ne.type=Ts(Ze));else if(Pa(Ze))ne.channels=ne.channels||4,Ho(ne,Ze),ne.alignment=1,ne.needsFree=!0;else if(Ut(Ze)){var Er=Ze.data;!Array.isArray(Er)&&ne.type===Ba&&(ne.type=Ts(Er));var lr=Ze.shape,Ke=Ze.stride,ht,bt,Kt,sr,Qt,ur;lr.length===3?(Kt=lr[2],ur=Ke[2]):(Kt=1,ur=1),ht=lr[0],bt=lr[1],sr=Ke[0],Qt=Ke[1],ne.alignment=1,ne.width=ht,ne.height=bt,ne.channels=Kt,ne.format=ne.internalformat=un[Kt],ne.needsFree=!0,ts(ne,Er,sr,Qt,ur,Ze.offset)}else if(Jo(Ze)||Ao(Ze)||Dn(Ze))Jo(Ze)||Ao(Ze)?ne.element=Ze:ne.element=Ze.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(_a(Ze))ne.element=Ze,ne.width=Ze.width,ne.height=Ze.height,ne.channels=4;else if(Ws(Ze))ne.element=Ze,ne.width=Ze.naturalWidth,ne.height=Ze.naturalHeight,ne.channels=4;else if(Ca(Ze))ne.element=Ze,ne.width=Ze.videoWidth,ne.height=Ze.videoHeight,ne.channels=4;else if(to(Ze)){var er=ne.width||Ze[0].length,Ot=ne.height||Ze.length,Jt=ne.channels;Qi(Ze[0][0])?Jt=Jt||Ze[0][0].length:Jt=Jt||1;for(var Lt=xe.shape(Ze),Tr=1,Nr=0;Nr>=dr,Ze.height>>=dr,In(Ze,Ct[dr]),ne.mipmask|=1<=0&&!("faces"in Pe)&&(ne.genMipmaps=!0)}if("mag"in Pe){var Ct=Pe.mag;ne.magFilter=Ln[Ct]}var dr=ne.wrapS,Er=ne.wrapT;if("wrap"in Pe){var lr=Pe.wrap;typeof lr=="string"?dr=Er=Bn[lr]:Array.isArray(lr)&&(dr=Bn[lr[0]],Er=Bn[lr[1]])}else{if("wrapS"in Pe){var Ke=Pe.wrapS;dr=Bn[Ke]}if("wrapT"in Pe){var ht=Pe.wrapT;Er=Bn[ht]}}if(ne.wrapS=dr,ne.wrapT=Er,"anisotropic"in Pe){var bt=Pe.anisotropic;ne.anisotropic=Pe.anisotropic}if("mipmap"in Pe){var Kt=!1;switch(typeof Pe.mipmap){case"string":ne.mipmapHint=on[Pe.mipmap],ne.genMipmaps=!0,Kt=!0;break;case"boolean":Kt=ne.genMipmaps=Pe.mipmap;break;case"object":ne.genMipmaps=!1,Kt=!0;break;default:}Kt&&!("min"in Pe)&&(ne.minFilter=mo)}}function bf(ne,Pe){Be.texParameteri(Pe,As,ne.minFilter),Be.texParameteri(Pe,vo,ne.magFilter),Be.texParameteri(Pe,Sa,ne.wrapS),Be.texParameteri(Pe,Qa,ne.wrapT),qt.ext_texture_filter_anisotropic&&Be.texParameteri(Pe,ha,ne.anisotropic),ne.genMipmaps&&(Be.hint(Ys,ne.mipmapHint),Be.generateMipmap(Pe))}var Lf=0,Hu={},hf=ar.maxTextureUnits,yf=Array(hf).map(function(){return null});function Fl(ne){$i.call(this),this.mipmask=0,this.internalformat=Un,this.id=Lf++,this.refCount=1,this.target=ne,this.texture=Be.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Cu,pi.profile&&(this.stats={size:0})}function wf(ne){Be.activeTexture(Ra),Be.bindTexture(ne.target,ne.texture)}function cu(){var ne=yf[0];ne?Be.bindTexture(ne.target,ne.texture):Be.bindTexture(Zi,null)}function Y(ne){var Pe=ne.texture,Ze=ne.unit,Ct=ne.target;Ze>=0&&(Be.activeTexture(Ra+Ze),Be.bindTexture(Ct,null),yf[Ze]=null),Be.deleteTexture(Pe),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete Hu[ne.id],fi.textureCount--}e(Fl.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var Pe=ne.unit;if(Pe<0){for(var Ze=0;Ze0)continue;Ct.unit=-1}yf[Ze]=ne,Pe=Ze;break}Pe>=hf,pi.profile&&fi.maxTextureUnits>Qt)-Kt,ur.height=ur.height||(Ze.height>>Qt)-sr,wf(Ze),_s(ur,Zi,Kt,sr,Qt),cu(),Mo(ur),Ct}function Er(lr,Ke){var ht=lr|0,bt=Ke|0||ht;if(ht===Ze.width&&bt===Ze.height)return Ct;Ct.width=Ze.width=ht,Ct.height=Ze.height=bt,wf(Ze);for(var Kt=0;Ze.mipmask>>Kt;++Kt){var sr=ht>>Kt,Qt=bt>>Kt;if(!sr||!Qt)break;Be.texImage2D(Zi,Kt,Ze.format,sr,Qt,0,Ze.format,Ze.type,null)}return cu(),pi.profile&&(Ze.stats.size=Wo(Ze.internalformat,Ze.type,ht,bt,!1,!1)),Ct}return Ct(ne,Pe),Ct.subimage=dr,Ct.resize=Er,Ct._reglType="texture2d",Ct._texture=Ze,pi.profile&&(Ct.stats=Ze.stats),Ct.destroy=function(){Ze.decRef()},Ct}function J(ne,Pe,Ze,Ct,dr,Er){var lr=new Fl(aa);Hu[lr.id]=lr,fi.cubeCount++;var Ke=new Array(6);function ht(sr,Qt,ur,er,Ot,Jt){var Lt,Tr=lr.texInfo;for(Cu.call(Tr),Lt=0;Lt<6;++Lt)Ke[Lt]=Ql();if(typeof sr=="number"||!sr){var Nr=sr|0||1;for(Lt=0;Lt<6;++Lt)pl(Ke[Lt],Nr,Nr)}else if(typeof sr=="object")if(Qt)Dl(Ke[0],sr),Dl(Ke[1],Qt),Dl(Ke[2],ur),Dl(Ke[3],er),Dl(Ke[4],Ot),Dl(Ke[5],Jt);else if(_f(Tr,sr),ro(lr,sr),"faces"in sr){var ci=sr.faces;for(Lt=0;Lt<6;++Lt)Ui(Ke[Lt],lr),Dl(Ke[Lt],ci[Lt])}else for(Lt=0;Lt<6;++Lt)Dl(Ke[Lt],sr);for(Ui(lr,Ke[0]),Tr.genMipmaps?lr.mipmask=(Ke[0].width<<1)-1:lr.mipmask=Ke[0].mipmask,lr.internalformat=Ke[0].internalformat,ht.width=Ke[0].width,ht.height=Ke[0].height,wf(lr),Lt=0;Lt<6;++Lt)Fu(Ke[Lt],Mn+Lt);for(bf(Tr,aa),cu(),pi.profile&&(lr.stats.size=Wo(lr.internalformat,lr.type,ht.width,ht.height,Tr.genMipmaps,!0)),ht.format=dn[lr.internalformat],ht.type=En[lr.type],ht.mag=Yi[Tr.magFilter],ht.min=ga[Tr.minFilter],ht.wrapS=Kn[Tr.wrapS],ht.wrapT=Kn[Tr.wrapT],Lt=0;Lt<6;++Lt)kf(Ke[Lt]);return ht}function bt(sr,Qt,ur,er,Ot){var Jt=ur|0,Lt=er|0,Tr=Ot|0,Nr=Qn();return Ui(Nr,lr),Nr.width=0,Nr.height=0,In(Nr,Qt),Nr.width=Nr.width||(lr.width>>Tr)-Jt,Nr.height=Nr.height||(lr.height>>Tr)-Lt,wf(lr),_s(Nr,Mn+sr,Jt,Lt,Tr),cu(),Mo(Nr),ht}function Kt(sr){var Qt=sr|0;if(Qt!==lr.width){ht.width=lr.width=Qt,ht.height=lr.height=Qt,wf(lr);for(var ur=0;ur<6;++ur)for(var er=0;lr.mipmask>>er;++er)Be.texImage2D(Mn+ur,er,lr.format,Qt>>er,Qt>>er,0,lr.format,lr.type,null);return cu(),pi.profile&&(lr.stats.size=Wo(lr.internalformat,lr.type,ht.width,ht.height,!1,!0)),ht}}return ht(ne,Pe,Ze,Ct,dr,Er),ht.subimage=bt,ht.resize=Kt,ht._reglType="textureCube",ht._texture=lr,pi.profile&&(ht.stats=lr.stats),ht.destroy=function(){lr.decRef()},ht}function O(){for(var ne=0;ne>Ct,Ze.height>>Ct,0,Ze.internalformat,Ze.type,null);else for(var dr=0;dr<6;++dr)Be.texImage2D(Mn+dr,Ct,Ze.internalformat,Ze.width>>Ct,Ze.height>>Ct,0,Ze.internalformat,Ze.type,null);bf(Ze.texInfo,Ze.target)})}function _e(){for(var ne=0;ne=0?kf=!0:Bn.indexOf(Cu)>=0&&(kf=!1))),("depthTexture"in Fl||"depthStencilTexture"in Fl)&&(yf=!!(Fl.depthTexture||Fl.depthStencilTexture)),"depth"in Fl&&(typeof Fl.depth=="boolean"?Fu=Fl.depth:(Lf=Fl.depth,mf=!1)),"stencil"in Fl&&(typeof Fl.stencil=="boolean"?mf=Fl.stencil:(Hu=Fl.stencil,Fu=!1)),"depthStencil"in Fl&&(typeof Fl.depthStencil=="boolean"?Fu=mf=Fl.depthStencil:(hf=Fl.depthStencil,Fu=!1,mf=!1))}var cu=null,Y=null,R=null,J=null;if(Array.isArray(Ql))cu=Ql.map(Ni);else if(Ql)cu=[Ni(Ql)];else for(cu=new Array(bf),nl=0;nl0&&(Mo.depth=In[0].depth,Mo.stencil=In[0].stencil,Mo.depthStencil=In[0].depthStencil),In[Qn]?In[Qn](Mo):In[Qn]=Ui(Mo)}return e(Va,{width:nl,height:nl,color:Cu})}function _s(ul){var Qn,Mo=ul|0;if(Mo===Va.width)return Va;var nl=Va.color;for(Qn=0;Qn=nl.byteLength?pl.subdata(nl):(pl.destroy(),Ui.buffers[ul]=null)),Ui.buffers[ul]||(pl=Ui.buffers[ul]=mi.create(Qn,Ss,!1,!0)),Mo.buffer=mi.getBuffer(pl),Mo.size=Mo.buffer.dimension|0,Mo.normalized=!1,Mo.type=Mo.buffer.dtype,Mo.offset=0,Mo.stride=0,Mo.divisor=0,Mo.state=1,Va[ul]=1}else mi.getBuffer(Qn)?(Mo.buffer=mi.getBuffer(Qn),Mo.size=Mo.buffer.dimension|0,Mo.normalized=!1,Mo.type=Mo.buffer.dtype,Mo.offset=0,Mo.stride=0,Mo.divisor=0,Mo.state=1):mi.getBuffer(Qn.buffer)?(Mo.buffer=mi.getBuffer(Qn.buffer),Mo.size=(+Qn.size||Mo.buffer.dimension)|0,Mo.normalized=!!Qn.normalized||!1,"type"in Qn?Mo.type=di[Qn.type]:Mo.type=Mo.buffer.dtype,Mo.offset=(Qn.offset||0)|0,Mo.stride=(Qn.stride||0)|0,Mo.divisor=(Qn.divisor||0)|0,Mo.state=1):"x"in Qn&&(Mo.x=+Qn.x||0,Mo.y=+Qn.y||0,Mo.z=+Qn.z||0,Mo.w=+Qn.w||0,Mo.state=2)}for(var Dl=0;Dl1)for(var na=0;naWr&&(Wr=_i.stats.uniformsCount)}),Wr},ar.getMaxAttributesCount=function(){var Wr=0;return wn.forEach(function(_i){_i.stats.attributesCount>Wr&&(Wr=_i.stats.attributesCount)}),Wr});function Ni(){mi={},fi={};for(var Wr=0;Wr16&&(ar=Pi(ar,Be.length*8));for(var Qr=Array(16),mi=Array(16),fi=0;fi<16;fi++)Qr[fi]=ar[fi]^909522486,mi[fi]=ar[fi]^1549556828;var pi=Pi(Qr.concat(Bs(qt)),512+qt.length*8);return At(Pi(mi.concat(pi),768))}function Ms(Be){for(var qt=Ro?"0123456789ABCDEF":"0123456789abcdef",ar="",Qr,mi=0;mi>>4&15)+qt.charAt(Qr&15);return ar}function jo(Be){for(var qt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ar="",Qr=Be.length,mi=0;miBe.length*8?ar+=tl:ar+=qt.charAt(fi>>>6*(3-pi)&63);return ar}function Rs(Be,qt){var ar=qt.length,Qr=Array(),mi,fi,pi,on,Bn=Array(Math.ceil(Be.length/2));for(mi=0;mi0;){for(on=Array(),pi=0,mi=0;mi0||fi>0)&&(on[on.length]=fi);Qr[Qr.length]=pi,Bn=on}var Ln="";for(mi=Qr.length-1;mi>=0;mi--)Ln+=qt.charAt(Qr[mi]);var wn=Math.ceil(Be.length*8/(Math.log(qt.length)/Math.log(2)));for(mi=Ln.length;mi>>6&31,128|Qr&63):Qr<=65535?qt+=String.fromCharCode(224|Qr>>>12&15,128|Qr>>>6&63,128|Qr&63):Qr<=2097151&&(qt+=String.fromCharCode(240|Qr>>>18&7,128|Qr>>>12&63,128|Qr>>>6&63,128|Qr&63));return qt}function Bs(Be){for(var qt=Array(Be.length>>2),ar=0;ar>5]|=(Be.charCodeAt(ar/8)&255)<<24-ar%32;return qt}function At(Be){for(var qt="",ar=0;ar>5]>>>24-ar%32&255);return qt}function Gt(Be,qt){return Be>>>qt|Be<<32-qt}function wr(Be,qt){return Be>>>qt}function mr(Be,qt,ar){return Be&qt^~Be&ar}function Or(Be,qt,ar){return Be&qt^Be&ar^qt&ar}function gi(Be){return Gt(Be,2)^Gt(Be,13)^Gt(Be,22)}function Ti(Be){return Gt(Be,6)^Gt(Be,11)^Gt(Be,25)}function ki(Be){return Gt(Be,7)^Gt(Be,18)^wr(Be,3)}function Ji(Be){return Gt(Be,17)^Gt(Be,19)^wr(Be,10)}var Fn=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Pi(Be,qt){var ar=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Qr=new Array(64),mi,fi,pi,on,Bn,Ln,wn,Ls,ua,Hn,Ni,Wr;for(Be[qt>>5]|=128<<24-qt%32,Be[(qt+64>>9<<4)+15]=qt,ua=0;ua>16)+(qt>>16)+(ar>>16);return Qr<<16|ar&65535}function Li(Be){return Array.prototype.slice.call(Be)}function Si(Be){return Li(Be).join("")}function Gn(Be){var qt=Be&&Be.cache,ar=0,Qr=[],mi=[],fi=[];function pi(Ni,Wr){var _i=Wr&&Wr.stable;if(!_i){for(var dn=0;dn0&&(Ni.push(En,"="),Ni.push.apply(Ni,Li(arguments)),Ni.push(";")),En}return e(Wr,{def:dn,toString:function(){return Si([_i.length>0?"var "+_i.join(",")+";":"",Si(Ni)])}})}function Bn(){var Ni=on(),Wr=on(),_i=Ni.toString,dn=Wr.toString;function En(Yi,ga){Wr(Yi,ga,"=",Ni.def(Yi,ga),";")}return e(function(){Ni.apply(Ni,Li(arguments))},{def:Ni.def,entry:Ni,exit:Wr,save:En,set:function(Yi,ga,Kn){En(Yi,ga),Ni(Yi,ga,"=",Kn,";")},toString:function(){return _i()+dn()}})}function Ln(){var Ni=Si(arguments),Wr=Bn(),_i=Bn(),dn=Wr.toString,En=_i.toString;return e(Wr,{then:function(){return Wr.apply(Wr,Li(arguments)),this},else:function(){return _i.apply(_i,Li(arguments)),this},toString:function(){var Yi=En();return Yi&&(Yi="else{"+Yi+"}"),Si(["if(",Ni,"){",dn(),"}",Yi])}})}var wn=on(),Ls={};function ua(Ni,Wr){var _i=[];function dn(){var hs="a"+_i.length;return _i.push(hs),hs}Wr=Wr||0;for(var En=0;En":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},zi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Xi={cw:ze,ccw:je};function pn(Be){return Array.isArray(Be)||_r(Be)||Ht(Be)}function sn(Be){return Be.sort(function(qt,ar){return qt===ee?-1:ar===ee?1:qt=1,Qr>=2,qt)}else if(ar===Ks){var vi=Be.data;return new bi(vi.thisDep,vi.contextDep,vi.propDep,qt)}else{if(ar===dl)return new bi(!1,!1,!1,qt);if(ar===xl){for(var fi=!1,di=!1,on=!1,Bn=0;Bn=1&&(di=!0),wn>=2&&(on=!0)}else Ln.type===Ks&&(fi=fi||Ln.data.thisDep,di=di||Ln.data.contextDep,on=on||Ln.data.propDep)}return new bi(fi,di,on,qt)}else return new bi(ar===Cs,ar===is,ar===zn,qt)}}var js=new bi(!1,!1,!1,function(){});function El(Be,qt,ar,Qr,vi,fi,di,on,Bn,Ln,wn,Ls,ua,Hn,Ni,Hr){var _i=Ln.Record,dn={add:32774,subtract:32778,"reverse subtract":32779};ar.ext_blend_minmax&&(dn.min=$e,dn.max=st);var En=ar.angle_instanced_arrays,Yi=ar.webgl_draw_buffers,ga=ar.oes_vertex_array_object,Kn={dirty:!0,profile:Hr.profile},hs={},$i=[],Ui={},ro={};function na(Je){return Je.replace(".","_")}function On(Je,ht,wt){var Kt=na(Je);$i.push(Je),hs[Kt]=Kn[Kt]=!!wt,Ui[Kt]=ht}function In(Je,ht,wt){var Kt=na(Je);$i.push(Je),Array.isArray(wt)?(Kn[Kt]=wt.slice(),hs[Kt]=wt.slice()):Kn[Kt]=hs[Kt]=wt,ro[Kt]=ht}function Va(Je){return!!isNaN(Je)}On(Ol,hn),On(bl,Mi),In(eu,"blendColor",[0,0,0,0]),In(Zl,"blendEquationSeparate",[zr,zr]),In(Vl,"blendFuncSeparate",[Cr,hr,Cr,hr]),On(ja,Yn,!0),In(ns,"depthFunc",ui),In(Js,"depthRange",[0,1]),In(cs,"depthMask",!0),In(sl,sl,[!0,!0,!0,!0]),On(ll,si),In(il,"cullFace",se),In(zl,zl,je),In(Ml,Ml,1),On(Rl,Fo),In(Al,"polygonOffset",[0,0]),On(Ll,vl),On(ms,Us),In(Os,"sampleCoverage",[1,!1]),On(Xl,Zn),In(Gl,"stencilMask",-1),In(Ul,"stencilFunc",[jt,0,-1]),In(le,"stencilOpSeparate",[Z,_t,_t,_t]),In(w,"stencilOpSeparate",[se,_t,_t,_t]),On(q,Ua),In(Q,"scissor",[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]),In(ee,ee,[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]);var _s={gl:Be,context:ua,strings:qt,next:hs,current:Kn,draw:Ls,elements:fi,buffer:vi,shader:wn,attributes:Ln.state,vao:Ln,uniforms:Bn,framebuffer:on,extensions:ar,timer:Hn,isBufferArgs:pn},ul={primTypes:ti,compareFuncs:pi,blendFuncs:fn,blendEquations:dn,stencilOps:zi,glTypes:mi,orientationType:Xi};Yi&&(ul.backBuffer=[se],ul.drawBuffer=S(Qr.maxDrawbuffers,function(Je){return Je===0?[0]:S(Je,function(ht){return Oi+ht})}));var Qn=0;function Mo(){var Je=Gn({cache:Ni}),ht=Je.link,wt=Je.global;Je.id=Qn++,Je.batchId="0";var Kt=ht(_s),sr=Je.shared={props:"a0"};Object.keys(_s).forEach(function(Jt){sr[Jt]=wt.def(Kt,".",Jt)});var Qt=Je.next={},fr=Je.current={};Object.keys(ro).forEach(function(Jt){Array.isArray(Kn[Jt])&&(Qt[Jt]=wt.def(sr.next,".",Jt),fr[Jt]=wt.def(sr.current,".",Jt))});var er=Je.constants={};Object.keys(ul).forEach(function(Jt){er[Jt]=wt.def(JSON.stringify(ul[Jt]))}),Je.invoke=function(Jt,Lt){switch(Lt.type){case va:var Tr=["this",sr.context,sr.props,Je.batchId];return Jt.def(ht(Lt.data),".call(",Tr.slice(0,Math.max(Lt.data.length+1,4)),")");case zn:return Jt.def(sr.props,Lt.data);case is:return Jt.def(sr.context,Lt.data);case Cs:return Jt.def("this",Lt.data);case Ks:return Lt.data.append(Je,Jt),Lt.data.ref;case dl:return Lt.data.toString();case xl:return Lt.data.map(function(qr){return Je.invoke(Jt,qr)})}},Je.attribCache={};var Ot={};return Je.scopeAttrib=function(Jt){var Lt=qt.id(Jt);if(Lt in Ot)return Ot[Lt];var Tr=Ln.scope[Lt];Tr||(Tr=Ln.scope[Lt]=new _i);var qr=Ot[Lt]=ht(Tr);return qr},Je}function nl(Je){var ht=Je.static,wt=Je.dynamic,Kt;if(ue in ht){var sr=!!ht[ue];Kt=no(function(fr,er){return sr}),Kt.enable=sr}else if(ue in wt){var Qt=wt[ue];Kt=Xo(Qt,function(fr,er){return fr.invoke(er,Qt)})}return Kt}function pl(Je,ht){var wt=Je.static,Kt=Je.dynamic;if(Ve in wt){var sr=wt[Ve];return sr?(sr=on.getFramebuffer(sr),no(function(fr,er){var Ot=fr.link(sr),Jt=fr.shared;er.set(Jt.framebuffer,".next",Ot);var Lt=Jt.context;return er.set(Lt,"."+Ge,Ot+".width"),er.set(Lt,"."+lt,Ot+".height"),Ot})):no(function(fr,er){var Ot=fr.shared;er.set(Ot.framebuffer,".next","null");var Jt=Ot.context;return er.set(Jt,"."+Ge,Jt+"."+nr),er.set(Jt,"."+lt,Jt+"."+cr),"null"})}else if(Ve in Kt){var Qt=Kt[Ve];return Xo(Qt,function(fr,er){var Ot=fr.invoke(er,Qt),Jt=fr.shared,Lt=Jt.framebuffer,Tr=er.def(Lt,".getFramebuffer(",Ot,")");er.set(Lt,".next",Tr);var qr=Jt.context;return er.set(qr,"."+Ge,Tr+"?"+Tr+".width:"+qr+"."+nr),er.set(qr,"."+lt,Tr+"?"+Tr+".height:"+qr+"."+cr),Tr})}else return null}function Dl(Je,ht,wt){var Kt=Je.static,sr=Je.dynamic;function Qt(Ot){if(Ot in Kt){var Jt=Kt[Ot],Lt=!0,Tr=Jt.x|0,qr=Jt.y|0,ci,Cn;return"width"in Jt?ci=Jt.width|0:Lt=!1,"height"in Jt?Cn=Jt.height|0:Lt=!1,new bi(!Lt&&ht&&ht.thisDep,!Lt&&ht&&ht.contextDep,!Lt&&ht&&ht.propDep,function(Xa,ca){var An=Xa.shared.context,Pn=ci;"width"in Jt||(Pn=ca.def(An,".",Ge,"-",Tr));var Nn=Cn;return"height"in Jt||(Nn=ca.def(An,".",lt,"-",qr)),[Tr,qr,Pn,Nn]})}else if(Ot in sr){var Ki=sr[Ot],yn=Xo(Ki,function(Xa,ca){var An=Xa.invoke(ca,Ki),Pn=Xa.shared.context,Nn=ca.def(An,".x|0"),xa=ca.def(An,".y|0"),Zo=ca.def('"width" in ',An,"?",An,".width|0:","(",Pn,".",Ge,"-",Nn,")"),ru=ca.def('"height" in ',An,"?",An,".height|0:","(",Pn,".",lt,"-",xa,")");return[Nn,xa,Zo,ru]});return ht&&(yn.thisDep=yn.thisDep||ht.thisDep,yn.contextDep=yn.contextDep||ht.contextDep,yn.propDep=yn.propDep||ht.propDep),yn}else return ht?new bi(ht.thisDep,ht.contextDep,ht.propDep,function(Xa,ca){var An=Xa.shared.context;return[0,0,ca.def(An,".",Ge),ca.def(An,".",lt)]}):null}var fr=Qt(ee);if(fr){var er=fr;fr=new bi(fr.thisDep,fr.contextDep,fr.propDep,function(Ot,Jt){var Lt=er.append(Ot,Jt),Tr=Ot.shared.context;return Jt.set(Tr,"."+tt,Lt[2]),Jt.set(Tr,"."+vt,Lt[3]),Lt})}return{viewport:fr,scissor_box:Qt(Q)}}function Fu(Je,ht){var wt=Je.static,Kt=typeof wt[yt]=="string"&&typeof wt[et]=="string";if(Kt){if(Object.keys(ht.dynamic).length>0)return null;var sr=ht.static,Qt=Object.keys(sr);if(Qt.length>0&&typeof sr[Qt[0]]=="number"){for(var fr=[],er=0;er"+Nn+"?"+Lt+".constant["+Nn+"]:0;"}).join(""),"}}else{","if(",ci,"(",Lt,".buffer)){",Xa,"=",Cn,".createStream(",Rr,",",Lt,".buffer);","}else{",Xa,"=",Cn,".getBuffer(",Lt,".buffer);","}",ca,'="type" in ',Lt,"?",qr.glTypes,"[",Lt,".type]:",Xa,".dtype;",Ki.normalized,"=!!",Lt,".normalized;");function An(Pn){Jt(Ki[Pn],"=",Lt,".",Pn,"|0;")}return An("size"),An("offset"),An("stride"),An("divisor"),Jt("}}"),Jt.exit("if(",Ki.isStream,"){",Cn,".destroyStream(",Xa,");","}"),Ki}sr[Qt]=Xo(fr,er)}),sr}function bf(Je){var ht=Je.static,wt=Je.dynamic,Kt={};return Object.keys(ht).forEach(function(sr){var Qt=ht[sr];Kt[sr]=no(function(fr,er){return typeof Qt=="number"||typeof Qt=="boolean"?""+Qt:fr.link(Qt)})}),Object.keys(wt).forEach(function(sr){var Qt=wt[sr];Kt[sr]=Xo(Qt,function(fr,er){return fr.invoke(er,Qt)})}),Kt}function Lf(Je,ht,wt,Kt,sr){var Qt=Je.static,fr=Je.dynamic,er=Fu(Je,ht),Ot=pl(Je,sr),Jt=Dl(Je,Ot,sr),Lt=Ql(Je,sr),Tr=kf(Je,sr),qr=mf(Je,sr,er);function ci(An){var Pn=Jt[An];Pn&&(Tr[An]=Pn)}ci(ee),ci(na(Q));var Cn=Object.keys(Tr).length>0,Ki={framebuffer:Ot,draw:Lt,shader:qr,state:Tr,dirty:Cn,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Ki.profile=nl(Je,sr),Ki.uniforms=Cu(wt,sr),Ki.drawVAO=Ki.scopeVAO=Lt.vao,!Ki.drawVAO&&qr.program&&!er&&ar.angle_instanced_arrays&&Lt.static.elements){var yn=!0,Xa=qr.program.attributes.map(function(An){var Pn=ht.static[An];return yn=yn&&!!Pn,Pn});if(yn&&Xa.length>0){var ca=Ln.getVAO(Ln.createVAO({attributes:Xa,elements:Lt.static.elements}));Ki.drawVAO=new bi(null,null,null,function(An,Pn){return An.link(ca)}),Ki.useVAO=!0}}return er?Ki.useVAO=!0:Ki.attributes=_f(ht,sr),Ki.context=bf(Kt,sr),Ki}function Gu(Je,ht,wt){var Kt=Je.shared,sr=Kt.context,Qt=Je.scope();Object.keys(wt).forEach(function(fr){ht.save(sr,"."+fr);var er=wt[fr],Ot=er.append(Je,ht);Array.isArray(Ot)?Qt(sr,".",fr,"=[",Ot.join(),"];"):Qt(sr,".",fr,"=",Ot,";")}),ht(Qt)}function hf(Je,ht,wt,Kt){var sr=Je.shared,Qt=sr.gl,fr=sr.framebuffer,er;Yi&&(er=ht.def(sr.extensions,".webgl_draw_buffers"));var Ot=Je.constants,Jt=Ot.drawBuffer,Lt=Ot.backBuffer,Tr;wt?Tr=wt.append(Je,ht):Tr=ht.def(fr,".next"),Kt||ht("if(",Tr,"!==",fr,".cur){"),ht("if(",Tr,"){",Qt,".bindFramebuffer(",$r,",",Tr,".framebuffer);"),Yi&&ht(er,".drawBuffersWEBGL(",Jt,"[",Tr,".colorAttachments.length]);"),ht("}else{",Qt,".bindFramebuffer(",$r,",null);"),Yi&&ht(er,".drawBuffersWEBGL(",Lt,");"),ht("}",fr,".cur=",Tr,";"),Kt||ht("}")}function yf(Je,ht,wt){var Kt=Je.shared,sr=Kt.gl,Qt=Je.current,fr=Je.next,er=Kt.current,Ot=Kt.next,Jt=Je.cond(er,".dirty");$i.forEach(function(Lt){var Tr=na(Lt);if(!(Tr in wt.state)){var qr,ci;if(Tr in fr){qr=fr[Tr],ci=Qt[Tr];var Cn=S(Kn[Tr].length,function(yn){return Jt.def(qr,"[",yn,"]")});Jt(Je.cond(Cn.map(function(yn,Xa){return yn+"!=="+ci+"["+Xa+"]"}).join("||")).then(sr,".",ro[Tr],"(",Cn,");",Cn.map(function(yn,Xa){return ci+"["+Xa+"]="+yn}).join(";"),";"))}else{qr=Jt.def(Ot,".",Tr);var Ki=Je.cond(qr,"!==",er,".",Tr);Jt(Ki),Tr in Ui?Ki(Je.cond(qr).then(sr,".enable(",Ui[Tr],");").else(sr,".disable(",Ui[Tr],");"),er,".",Tr,"=",qr,";"):Ki(sr,".",ro[Tr],"(",qr,");",er,".",Tr,"=",qr,";")}}}),Object.keys(wt.state).length===0&&Jt(er,".dirty=false;"),ht(Jt)}function Fl(Je,ht,wt,Kt){var sr=Je.shared,Qt=Je.current,fr=sr.current,er=sr.gl,Ot;sn(Object.keys(wt)).forEach(function(Jt){var Lt=wt[Jt];if(!(Kt&&!Kt(Lt))){var Tr=Lt.append(Je,ht);if(Ui[Jt]){var qr=Ui[Jt];xo(Lt)?(Ot=Je.link(Tr,{stable:!0}),ht(Je.cond(Ot).then(er,".enable(",qr,");").else(er,".disable(",qr,");")),ht(fr,".",Jt,"=",Ot,";")):(ht(Je.cond(Tr).then(er,".enable(",qr,");").else(er,".disable(",qr,");")),ht(fr,".",Jt,"=",Tr,";"))}else if(Qi(Tr)){var ci=Qt[Jt];ht(er,".",ro[Jt],"(",Tr,");",Tr.map(function(Cn,Ki){return ci+"["+Ki+"]="+Cn}).join(";"),";")}else xo(Lt)?(Ot=Je.link(Tr,{stable:!0}),ht(er,".",ro[Jt],"(",Ot,");",fr,".",Jt,"=",Ot,";")):ht(er,".",ro[Jt],"(",Tr,");",fr,".",Jt,"=",Tr,";")}})}function wf(Je,ht){En&&(Je.instancing=ht.def(Je.shared.extensions,".angle_instanced_arrays"))}function cu(Je,ht,wt,Kt,sr){var Qt=Je.shared,fr=Je.stats,er=Qt.current,Ot=Qt.timer,Jt=wt.profile;function Lt(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var Tr,qr;function ci(An){Tr=ht.def(),An(Tr,"=",Lt(),";"),typeof sr=="string"?An(fr,".count+=",sr,";"):An(fr,".count++;"),Hn&&(Kt?(qr=ht.def(),An(qr,"=",Ot,".getNumPendingQueries();")):An(Ot,".beginQuery(",fr,");"))}function Cn(An){An(fr,".cpuTime+=",Lt(),"-",Tr,";"),Hn&&(Kt?An(Ot,".pushScopeStats(",qr,",",Ot,".getNumPendingQueries(),",fr,");"):An(Ot,".endQuery();"))}function Ki(An){var Pn=ht.def(er,".profile");ht(er,".profile=",An,";"),ht.exit(er,".profile=",Pn,";")}var yn;if(Jt){if(xo(Jt)){Jt.enable?(ci(ht),Cn(ht.exit),Ki("true")):Ki("false");return}yn=Jt.append(Je,ht),Ki(yn)}else yn=ht.def(er,".profile");var Xa=Je.block();ci(Xa),ht("if(",yn,"){",Xa,"}");var ca=Je.block();Cn(ca),ht.exit("if(",yn,"){",ca,"}")}function Y(Je,ht,wt,Kt,sr){var Qt=Je.shared;function fr(Ot){switch(Ot){case au:case ou:case Wu:return 2;case Sl:case Pu:case Qu:return 3;case Yl:case iu:case Ku:return 4;default:return 1}}function er(Ot,Jt,Lt){var Tr=Qt.gl,qr=ht.def(Ot,".location"),ci=ht.def(Qt.attributes,"[",qr,"]"),Cn=Lt.state,Ki=Lt.buffer,yn=[Lt.x,Lt.y,Lt.z,Lt.w],Xa=["buffer","normalized","offset","stride"];function ca(){ht("if(!",ci,".buffer){",Tr,".enableVertexAttribArray(",qr,");}");var Pn=Lt.type,Nn;if(Lt.size?Nn=ht.def(Lt.size,"||",Jt):Nn=Jt,ht("if(",ci,".type!==",Pn,"||",ci,".size!==",Nn,"||",Xa.map(function(Zo){return ci+"."+Zo+"!=="+Lt[Zo]}).join("||"),"){",Tr,".bindBuffer(",Rr,",",Ki,".buffer);",Tr,".vertexAttribPointer(",[qr,Nn,Pn,Lt.normalized,Lt.stride,Lt.offset],");",ci,".type=",Pn,";",ci,".size=",Nn,";",Xa.map(function(Zo){return ci+"."+Zo+"="+Lt[Zo]+";"}).join(""),"}"),En){var xa=Lt.divisor;ht("if(",ci,".divisor!==",xa,"){",Je.instancing,".vertexAttribDivisorANGLE(",[qr,xa],");",ci,".divisor=",xa,";}")}}function An(){ht("if(",ci,".buffer){",Tr,".disableVertexAttribArray(",qr,");",ci,".buffer=null;","}if(",ta.map(function(Pn,Nn){return ci+"."+Pn+"!=="+yn[Nn]}).join("||"),"){",Tr,".vertexAttrib4f(",qr,",",yn,");",ta.map(function(Pn,Nn){return ci+"."+Pn+"="+yn[Nn]+";"}).join(""),"}")}Cn===ia?ca():Cn===pa?An():(ht("if(",Cn,"===",ia,"){"),ca(),ht("}else{"),An(),ht("}"))}Kt.forEach(function(Ot){var Jt=Ot.name,Lt=wt.attributes[Jt],Tr;if(Lt){if(!sr(Lt))return;Tr=Lt.append(Je,ht)}else{if(!sr(js))return;var qr=Je.scopeAttrib(Jt);Tr={},Object.keys(new _i).forEach(function(ci){Tr[ci]=ht.def(qr,".",ci)})}er(Je.link(Ot),fr(Ot.info.type),Tr)})}function R(Je,ht,wt,Kt,sr,Qt){for(var fr=Je.shared,er=fr.gl,Ot,Jt=0;Jt1){for(var yu=[],Du=[],vu=0;vu>1)",Ki],");")}function xa(){wt(yn,".drawArraysInstancedANGLE(",[qr,ci,Cn,Ki],");")}Lt&&Lt!=="null"?ca?Nn():(wt("if(",Lt,"){"),Nn(),wt("}else{"),xa(),wt("}")):xa()}function Pn(){function Nn(){wt(Qt+".drawElements("+[qr,Cn,Xa,ci+"<<(("+Xa+"-"+ya+")>>1)"]+");")}function xa(){wt(Qt+".drawArrays("+[qr,ci,Cn]+");")}Lt&&Lt!=="null"?ca?Nn():(wt("if(",Lt,"){"),Nn(),wt("}else{"),xa(),wt("}")):xa()}En&&(typeof Ki!="number"||Ki>=0)?typeof Ki=="string"?(wt("if(",Ki,">0){"),An(),wt("}else if(",Ki,"<0){"),Pn(),wt("}")):An():Pn()}function O(Je,ht,wt,Kt,sr){var Qt=Mo(),fr=Qt.proc("body",sr);return En&&(Qt.instancing=fr.def(Qt.shared.extensions,".angle_instanced_arrays")),Je(Qt,fr,wt,Kt),Qt.compile().body}function K(Je,ht,wt,Kt){wf(Je,ht),wt.useVAO?wt.drawVAO?ht(Je.shared.vao,".setVAO(",wt.drawVAO.append(Je,ht),");"):ht(Je.shared.vao,".setVAO(",Je.shared.vao,".targetVAO);"):(ht(Je.shared.vao,".setVAO(null);"),Y(Je,ht,wt,Kt.attributes,function(){return!0})),R(Je,ht,wt,Kt.uniforms,function(){return!0},!1),J(Je,ht,ht,wt)}function ge(Je,ht){var wt=Je.proc("draw",1);wf(Je,wt),Gu(Je,wt,ht.context),hf(Je,wt,ht.framebuffer),yf(Je,wt,ht),Fl(Je,wt,ht.state),cu(Je,wt,ht,!1,!0);var Kt=ht.shader.progVar.append(Je,wt);if(wt(Je.shared.gl,".useProgram(",Kt,".program);"),ht.shader.program)K(Je,wt,ht,ht.shader.program);else{wt(Je.shared.vao,".setVAO(null);");var sr=Je.global.def("{}"),Qt=wt.def(Kt,".id"),fr=wt.def(sr,"[",Qt,"]");wt(Je.cond(fr).then(fr,".call(this,a0);").else(fr,"=",sr,"[",Qt,"]=",Je.link(function(er){return O(K,Je,ht,er,1)}),"(",Kt,");",fr,".call(this,a0);"))}Object.keys(ht.state).length>0&&wt(Je.shared.current,".dirty=true;"),Je.shared.vao&&wt(Je.shared.vao,".setVAO(null);")}function ne(Je,ht,wt,Kt){Je.batchId="a1",wf(Je,ht);function sr(){return!0}Y(Je,ht,wt,Kt.attributes,sr),R(Je,ht,wt,Kt.uniforms,sr,!1),J(Je,ht,ht,wt)}function Le(Je,ht,wt,Kt){wf(Je,ht);var sr=wt.contextDep,Qt=ht.def(),fr="a0",er="a1",Ot=ht.def();Je.shared.props=Ot,Je.batchId=Qt;var Jt=Je.scope(),Lt=Je.scope();ht(Jt.entry,"for(",Qt,"=0;",Qt,"<",er,";++",Qt,"){",Ot,"=",fr,"[",Qt,"];",Lt,"}",Jt.exit);function Tr(Xa){return Xa.contextDep&&sr||Xa.propDep}function qr(Xa){return!Tr(Xa)}if(wt.needsContext&&Gu(Je,Lt,wt.context),wt.needsFramebuffer&&hf(Je,Lt,wt.framebuffer),Fl(Je,Lt,wt.state,Tr),wt.profile&&Tr(wt.profile)&&cu(Je,Lt,wt,!1,!0),Kt)wt.useVAO?wt.drawVAO?Tr(wt.drawVAO)?Lt(Je.shared.vao,".setVAO(",wt.drawVAO.append(Je,Lt),");"):Jt(Je.shared.vao,".setVAO(",wt.drawVAO.append(Je,Jt),");"):Jt(Je.shared.vao,".setVAO(",Je.shared.vao,".targetVAO);"):(Jt(Je.shared.vao,".setVAO(null);"),Y(Je,Jt,wt,Kt.attributes,qr),Y(Je,Lt,wt,Kt.attributes,Tr)),R(Je,Jt,wt,Kt.uniforms,qr,!1),R(Je,Lt,wt,Kt.uniforms,Tr,!0),J(Je,Jt,Lt,wt);else{var ci=Je.global.def("{}"),Cn=wt.shader.progVar.append(Je,Lt),Ki=Lt.def(Cn,".id"),yn=Lt.def(ci,"[",Ki,"]");Lt(Je.shared.gl,".useProgram(",Cn,".program);","if(!",yn,"){",yn,"=",ci,"[",Ki,"]=",Je.link(function(Xa){return O(ne,Je,wt,Xa,2)}),"(",Cn,");}",yn,".call(this,a0[",Qt,"],",Qt,");")}}function Ze(Je,ht){var wt=Je.proc("batch",2);Je.batchId="0",wf(Je,wt);var Kt=!1,sr=!0;Object.keys(ht.context).forEach(function(ci){Kt=Kt||ht.context[ci].propDep}),Kt||(Gu(Je,wt,ht.context),sr=!1);var Qt=ht.framebuffer,fr=!1;Qt?(Qt.propDep?Kt=fr=!0:Qt.contextDep&&Kt&&(fr=!0),fr||hf(Je,wt,Qt)):hf(Je,wt,null),ht.state.viewport&&ht.state.viewport.propDep&&(Kt=!0);function er(ci){return ci.contextDep&&Kt||ci.propDep}yf(Je,wt,ht),Fl(Je,wt,ht.state,function(ci){return!er(ci)}),(!ht.profile||!er(ht.profile))&&cu(Je,wt,ht,!1,"a1"),ht.contextDep=Kt,ht.needsContext=sr,ht.needsFramebuffer=fr;var Ot=ht.shader.progVar;if(Ot.contextDep&&Kt||Ot.propDep)Le(Je,wt,ht,null);else{var Jt=Ot.append(Je,wt);if(wt(Je.shared.gl,".useProgram(",Jt,".program);"),ht.shader.program)Le(Je,wt,ht,ht.shader.program);else{wt(Je.shared.vao,".setVAO(null);");var Lt=Je.global.def("{}"),Tr=wt.def(Jt,".id"),qr=wt.def(Lt,"[",Tr,"]");wt(Je.cond(qr).then(qr,".call(this,a0,a1);").else(qr,"=",Lt,"[",Tr,"]=",Je.link(function(ci){return O(Le,Je,ht,ci,2)}),"(",Jt,");",qr,".call(this,a0,a1);"))}}Object.keys(ht.state).length>0&&wt(Je.shared.current,".dirty=true;"),Je.shared.vao&&wt(Je.shared.vao,".setVAO(null);")}function Ct(Je,ht){var wt=Je.proc("scope",3);Je.batchId="a2";var Kt=Je.shared,sr=Kt.current;if(Gu(Je,wt,ht.context),ht.framebuffer&&ht.framebuffer.append(Je,wt),sn(Object.keys(ht.state)).forEach(function(er){var Ot=ht.state[er],Jt=Ot.append(Je,wt);Qi(Jt)?Jt.forEach(function(Lt,Tr){Va(Lt)?wt.set(Je.next[er],"["+Tr+"]",Lt):wt.set(Je.next[er],"["+Tr+"]",Je.link(Lt,{stable:!0}))}):xo(Ot)?wt.set(Kt.next,"."+er,Je.link(Jt,{stable:!0})):wt.set(Kt.next,"."+er,Jt)}),cu(Je,wt,ht,!0,!0),[Dt,kr,or,Vr,ir].forEach(function(er){var Ot=ht.draw[er];if(Ot){var Jt=Ot.append(Je,wt);Va(Jt)?wt.set(Kt.draw,"."+er,Jt):wt.set(Kt.draw,"."+er,Je.link(Jt),{stable:!0})}}),Object.keys(ht.uniforms).forEach(function(er){var Ot=ht.uniforms[er].append(Je,wt);Array.isArray(Ot)&&(Ot="["+Ot.map(function(Jt){return Va(Jt)?Jt:Je.link(Jt,{stable:!0})})+"]"),wt.set(Kt.uniforms,"["+Je.link(qt.id(er),{stable:!0})+"]",Ot)}),Object.keys(ht.attributes).forEach(function(er){var Ot=ht.attributes[er].append(Je,wt),Jt=Je.scopeAttrib(er);Object.keys(new _i).forEach(function(Lt){wt.set(Jt,"."+Lt,Ot[Lt])})}),ht.scopeVAO){var Qt=ht.scopeVAO.append(Je,wt);Va(Qt)?wt.set(Kt.vao,".targetVAO",Qt):wt.set(Kt.vao,".targetVAO",Je.link(Qt,{stable:!0}))}function fr(er){var Ot=ht.shader[er];if(Ot){var Jt=Ot.append(Je,wt);Va(Jt)?wt.set(Kt.shader,"."+er,Jt):wt.set(Kt.shader,"."+er,Je.link(Jt,{stable:!0}))}}fr(et),fr(yt),Object.keys(ht.state).length>0&&(wt(sr,".dirty=true;"),wt.exit(sr,".dirty=true;")),wt("a1(",Je.shared.context,",a0,",Je.batchId,");")}function dr(Je){if(!(typeof Je!="object"||Qi(Je))){for(var ht=Object.keys(Je),wt=0;wt=0;--O){var K=_s[O];K&&K(Ni,null,0)}ar.flush(),wn&&wn.update()}function Dl(){!nl&&_s.length>0&&(nl=d.next(pl))}function Fu(){nl&&(d.cancel(pl),nl=null)}function mf(O){O.preventDefault(),vi=!0,Fu(),ul.forEach(function(K){K()})}function Ql(O){ar.getError(),vi=!1,fi.restore(),hs.restore(),En.restore(),$i.restore(),Ui.restore(),ro.restore(),ga.restore(),wn&&wn.restore(),na.procs.refresh(),Dl(),Qn.forEach(function(K){K()})}Va&&(Va.addEventListener(Au,mf,!1),Va.addEventListener(Tu,Ql,!1));function kf(){_s.length=0,Fu(),Va&&(Va.removeEventListener(Au,mf),Va.removeEventListener(Tu,Ql)),hs.clear(),ro.clear(),Ui.clear(),ga.clear(),$i.clear(),Yi.clear(),En.clear(),wn&&wn.clear(),Mo.forEach(function(O){O()})}function Cu(O){function K(Qt){var fr=e({},Qt);delete fr.uniforms,delete fr.attributes,delete fr.context,delete fr.vao,"stencil"in fr&&fr.stencil.op&&(fr.stencil.opBack=fr.stencil.opFront=fr.stencil.op,delete fr.stencil.op);function er(Ot){if(Ot in fr){var Jt=fr[Ot];delete fr[Ot],Object.keys(Jt).forEach(function(Lt){fr[Ot+"."+Lt]=Jt[Lt]})}}return er("blend"),er("depth"),er("cull"),er("stencil"),er("polygonOffset"),er("scissor"),er("sample"),"vao"in Qt&&(fr.vao=Qt.vao),fr}function ge(Qt,fr){var er={},Ot={};return Object.keys(Qt).forEach(function(Jt){var Lt=Qt[Jt];if(h.isDynamic(Lt)){Ot[Jt]=h.unbox(Lt,Jt);return}else if(fr&&Array.isArray(Lt)){for(var Tr=0;Tr0)return Je.call(this,Kt(Qt|0),Qt|0)}else if(Array.isArray(Qt)){if(Qt.length)return Je.call(this,Qt,Qt.length)}else return ur.call(this,Qt)}return e(sr,{stats:dr,destroy:function(){Mr.destroy()}})}var _f=ro.setFBO=Cu({framebuffer:h.define.call(null,uf,"framebuffer")});function bf(O,K){var ge=0;na.procs.poll();var ne=K.color;ne&&(ar.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),ge|=Vu),"depth"in K&&(ar.clearDepth(+K.depth),ge|=rf),"stencil"in K&&(ar.clearStencil(K.stencil|0),ge|=ds),ar.clear(ge)}function Lf(O){if("framebuffer"in O)if(O.framebuffer&&O.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)_f(e({framebuffer:O.framebuffer.faces[K]},O),bf);else _f(O,bf);else bf(null,O)}function Gu(O){_s.push(O);function K(){var ge=vf(_s,O);function ne(){var Le=vf(_s,ne);_s[Le]=_s[_s.length-1],_s.length-=1,_s.length<=0&&Fu()}_s[ge]=ne}return Dl(),{cancel:K}}function hf(){var O=In.viewport,K=In.scissor_box;O[0]=O[1]=K[0]=K[1]=0,Ni.viewportWidth=Ni.framebufferWidth=Ni.drawingBufferWidth=O[2]=K[2]=ar.drawingBufferWidth,Ni.viewportHeight=Ni.framebufferHeight=Ni.drawingBufferHeight=O[3]=K[3]=ar.drawingBufferHeight}function yf(){Ni.tick+=1,Ni.time=wf(),hf(),na.procs.poll()}function Fl(){$i.refresh(),hf(),na.procs.refresh(),wn&&wn.update()}function wf(){return(p()-Ls)/1e3}Fl();function cu(O,K){var ge;switch(O){case"frame":return Gu(K);case"lost":ge=ul;break;case"restore":ge=Qn;break;case"destroy":ge=Mo;break;default:}return ge.push(K),{cancel:function(){for(var ne=0;ne=0},read:On,destroy:kf,_gl:ar,_refresh:Fl,poll:function(){yf(),wn&&wn.update()},now:wf,stats:on,getCachedCode:Y,preloadCachedCode:R});return qt.onDone(null,J),J}return fc})});var w8=Te((R_r,ANe)=>{"use strict";var kUt=RX(),CUt=wNe();ANe.exports=function(t,r,n){var i=t._fullLayout,a=!0;return i._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(n);return}if(!(o.pick&&!i._has("parcoords"))){try{o.regl=CUt({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||window.devicePixelRatio,extensions:r||[],cachedCode:n||{}})}catch(s){a=!1}o.regl||(a=!1),a&&this.addEventListener("webglcontextlost",function(s){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:s,layer:o.key})},!1)}}),a||kUt({container:i._glcontainer.node()}),a}});var _K=Te((gK,kNe)=>{"use strict";var TNe=gY(),SNe=YY(),LUt=hqe(),MNe=bNe(),yK=ei(),PUt=Sm().selectMode,zUt=w8(),IUt=lc(),RUt=MU(),DUt=pY().styleTextSelection,ENe={};function FUt(e,t,r,n){var i=e._size,a=e.width*n,o=e.height*n,s=i.l*n,u=i.b*n,l=i.r*n,f=i.t*n,c=i.w*n,h=i.h*n;return[s+t.domain[0]*c,u+r.domain[0]*h,a-l-(1-t.domain[1])*c,o-f-(1-r.domain[1])*h]}var gK=kNe.exports=function(t,r,n){if(n.length){var i=t._fullLayout,a=r._scene,o=r.xaxis,s=r.yaxis,u,l;if(a){var f=zUt(t,["ANGLE_instanced_arrays","OES_element_index_uint"],ENe);if(!f){a.init();return}var c=a.count,h=i._glcanvas.data()[0].regl;if(RUt(t,r,n),a.dirty){if((a.line2d||a.error2d)&&!(a.scatter2d||a.fill2d||a.glText)&&h.clear({color:!0,depth:!0}),a.error2d===!0&&(a.error2d=LUt(h)),a.line2d===!0&&(a.line2d=SNe(h)),a.scatter2d===!0&&(a.scatter2d=TNe(h)),a.fill2d===!0&&(a.fill2d=SNe(h)),a.glText===!0)for(a.glText=new Array(c),u=0;ua.glText.length){var d=c-a.glText.length;for(u=0;uae&&(isNaN(re[be])||isNaN(re[be+1]));)be-=2;W.positions=re.slice(ae,be+2)}return W}),a.line2d.update(a.lineOptions)),a.error2d){var b=(a.errorXOptions||[]).concat(a.errorYOptions||[]);a.error2d.update(b)}a.scatter2d&&a.scatter2d.update(a.markerOptions),a.fillOrder=yK.repeat(null,c),a.fill2d&&(a.fillOptions=a.fillOptions.map(function(W,re){var ae=n[re];if(!(!W||!ae||!ae[0]||!ae[0].trace)){var be=ae[0],Pe=be.trace,Ce=be.t,de=a.lineOptions[re],te,ke,Ee=[];Pe._ownfill&&Ee.push(re),Pe._nexttrace&&Ee.push(re+1),Ee.length&&(a.fillOrder[re]=Ee);var Me=[],Ue=de&&de.positions||Ce.positions,Fe,me;if(Pe.fill==="tozeroy"){for(Fe=0;FeFe&&isNaN(Ue[me+1]);)me-=2;Ue[Fe+1]!==0&&(Me=[Ue[Fe],0]),Me=Me.concat(Ue.slice(Fe,me+2)),Ue[me+1]!==0&&(Me=Me.concat([Ue[me],0]))}else if(Pe.fill==="tozerox"){for(Fe=0;FeFe&&isNaN(Ue[me]);)me-=2;Ue[Fe]!==0&&(Me=[0,Ue[Fe+1]]),Me=Me.concat(Ue.slice(Fe,me+2)),Ue[me]!==0&&(Me=Me.concat([0,Ue[me+1]]))}else if(Pe.fill==="toself"||Pe.fill==="tonext"){for(Me=[],te=0,W.splitNull=!0,ke=0;ke-1;for(u=0;u{CNe.exports=function(t,r,n){"use strict";var i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ue,Fe,me,Ne,ce,Ke,it,bt,Nt,nt,Ye,kt,At,St,Bt,Zt,Et,Ae,ot,dt,pt,at,Xe,rt,Qe,zt,Yt,lr,mr;return i=t.gl,a=t.context,o=t.strings,s=t.next,u=t.current,l=t.draw,f=t.elements,c=t.buffer,h=t.shader,d=t.attributes,p=t.vao,x=t.uniforms,b=t.framebuffer,v=t.extensions,k=t.timer,E=t.isBufferArgs,T=s.blend_color,L=u.blend_color,_=s.blend_equation,C=u.blend_equation,S=s.blend_func,m=u.blend_func,P=s.depth_range,A=u.depth_range,B=s.colorMask,F=u.colorMask,U=s.polygonOffset_offset,G=u.polygonOffset_offset,j=s.sample_coverage,H=u.sample_coverage,N=s.stencil_func,W=u.stencil_func,re=s.stencil_opFront,ae=u.stencil_opFront,be=s.stencil_opBack,Pe=u.stencil_opBack,Ce=s.scissor_box,de=u.scissor_box,te=s.viewport,ke=u.viewport,Ee={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Me={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ue={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Fe={add:32774,subtract:32778,"reverse subtract":32779},me={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ne={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},ce={cw:2304,ccw:2305},Ke=s.blend_color,it=u.blend_color,bt=s.blend_equation,Nt=u.blend_equation,nt=s.blend_func,Ye=u.blend_func,kt=s.depth_range,At=u.depth_range,St=s.colorMask,Bt=u.colorMask,Zt=s.polygonOffset_offset,Et=u.polygonOffset_offset,Ae=s.sample_coverage,ot=u.sample_coverage,dt=s.stencil_func,pt=u.stencil_func,at=s.stencil_opFront,Xe=u.stencil_opFront,rt=s.stencil_opBack,Qe=u.stencil_opBack,zt=s.scissor_box,Yt=u.scissor_box,lr=s.viewport,mr=u.viewport,{poll:function(){var _r,Ht,Re,xe,Oe,Ie,De,ct,_e,fe,pe,mt,It,Pt,rr,Wr,Nr,Er,Br,mi,Di,Ii;u.dirty=!1,Ht=s.dither,Re=s.blend_enable,xe=s.depth_enable,Oe=s.cull_enable,Ie=s.polygonOffset_enable,De=s.sample_alpha,ct=s.sample_enable,_e=s.stencil_enable,fe=s.scissor_enable,pe=s.depth_func,mt=u.depth_func,It=s.depth_mask,Pt=u.depth_mask,rr=s.cull_face,Wr=u.cull_face,Nr=s.frontFace,Er=u.frontFace,Br=s.lineWidth,mi=u.lineWidth,Di=s.stencil_mask,Ii=u.stencil_mask,_r=b.next,_r!==b.cur&&(_r?i.bindFramebuffer(36160,_r.framebuffer):i.bindFramebuffer(36160,null),b.cur=_r),Ht!==u.dither&&(Ht?i.enable(3024):i.disable(3024),u.dither=Ht),Re!==u.blend_enable&&(Re?i.enable(3042):i.disable(3042),u.blend_enable=Re),xe!==u.depth_enable&&(xe?i.enable(2929):i.disable(2929),u.depth_enable=xe),Oe!==u.cull_enable&&(Oe?i.enable(2884):i.disable(2884),u.cull_enable=Oe),Ie!==u.polygonOffset_enable&&(Ie?i.enable(32823):i.disable(32823),u.polygonOffset_enable=Ie),De!==u.sample_alpha&&(De?i.enable(32926):i.disable(32926),u.sample_alpha=De),ct!==u.sample_enable&&(ct?i.enable(32928):i.disable(32928),u.sample_enable=ct),_e!==u.stencil_enable&&(_e?i.enable(2960):i.disable(2960),u.stencil_enable=_e),fe!==u.scissor_enable&&(fe?i.enable(3089):i.disable(3089),u.scissor_enable=fe),(Ke[0]!==it[0]||Ke[1]!==it[1]||Ke[2]!==it[2]||Ke[3]!==it[3])&&(i.blendColor(Ke[0],Ke[1],Ke[2],Ke[3]),it[0]=Ke[0],it[1]=Ke[1],it[2]=Ke[2],it[3]=Ke[3]),(bt[0]!==Nt[0]||bt[1]!==Nt[1])&&(i.blendEquationSeparate(bt[0],bt[1]),Nt[0]=bt[0],Nt[1]=bt[1]),(nt[0]!==Ye[0]||nt[1]!==Ye[1]||nt[2]!==Ye[2]||nt[3]!==Ye[3])&&(i.blendFuncSeparate(nt[0],nt[1],nt[2],nt[3]),Ye[0]=nt[0],Ye[1]=nt[1],Ye[2]=nt[2],Ye[3]=nt[3]),pe!==mt&&(i.depthFunc(pe),u.depth_func=pe),(kt[0]!==At[0]||kt[1]!==At[1])&&(i.depthRange(kt[0],kt[1]),At[0]=kt[0],At[1]=kt[1]),It!==Pt&&(i.depthMask(It),u.depth_mask=It),(St[0]!==Bt[0]||St[1]!==Bt[1]||St[2]!==Bt[2]||St[3]!==Bt[3])&&(i.colorMask(St[0],St[1],St[2],St[3]),Bt[0]=St[0],Bt[1]=St[1],Bt[2]=St[2],Bt[3]=St[3]),rr!==Wr&&(i.cullFace(rr),u.cull_face=rr),Nr!==Er&&(i.frontFace(Nr),u.frontFace=Nr),Br!==mi&&(i.lineWidth(Br),u.lineWidth=Br),(Zt[0]!==Et[0]||Zt[1]!==Et[1])&&(i.polygonOffset(Zt[0],Zt[1]),Et[0]=Zt[0],Et[1]=Zt[1]),(Ae[0]!==ot[0]||Ae[1]!==ot[1])&&(i.sampleCoverage(Ae[0],Ae[1]),ot[0]=Ae[0],ot[1]=Ae[1]),Di!==Ii&&(i.stencilMask(Di),u.stencil_mask=Di),(dt[0]!==pt[0]||dt[1]!==pt[1]||dt[2]!==pt[2])&&(i.stencilFunc(dt[0],dt[1],dt[2]),pt[0]=dt[0],pt[1]=dt[1],pt[2]=dt[2]),(at[0]!==Xe[0]||at[1]!==Xe[1]||at[2]!==Xe[2]||at[3]!==Xe[3])&&(i.stencilOpSeparate(at[0],at[1],at[2],at[3]),Xe[0]=at[0],Xe[1]=at[1],Xe[2]=at[2],Xe[3]=at[3]),(rt[0]!==Qe[0]||rt[1]!==Qe[1]||rt[2]!==Qe[2]||rt[3]!==Qe[3])&&(i.stencilOpSeparate(rt[0],rt[1],rt[2],rt[3]),Qe[0]=rt[0],Qe[1]=rt[1],Qe[2]=rt[2],Qe[3]=rt[3]),(zt[0]!==Yt[0]||zt[1]!==Yt[1]||zt[2]!==Yt[2]||zt[3]!==Yt[3])&&(i.scissor(zt[0],zt[1],zt[2],zt[3]),Yt[0]=zt[0],Yt[1]=zt[1],Yt[2]=zt[2],Yt[3]=zt[3]),(lr[0]!==mr[0]||lr[1]!==mr[1]||lr[2]!==mr[2]||lr[3]!==mr[3])&&(i.viewport(lr[0],lr[1],lr[2],lr[3]),mr[0]=lr[0],mr[1]=lr[1],mr[2]=lr[2],mr[3]=lr[3])},refresh:function(){var _r,Ht,Re,xe,Oe,Ie,De,ct,_e,fe,pe,mt,It,Pt,rr,Wr,Nr,Er,Br,mi,Di,Ii,Ci,nn;u.dirty=!1,xe=s.dither,Oe=s.blend_enable,Ie=s.depth_enable,De=s.cull_enable,ct=s.polygonOffset_enable,_e=s.sample_alpha,fe=s.sample_enable,pe=s.stencil_enable,mt=s.scissor_enable,It=s.depth_func,Pt=u.depth_func,rr=s.depth_mask,Wr=u.depth_mask,Nr=s.cull_face,Er=u.cull_face,Br=s.frontFace,mi=u.frontFace,Di=s.lineWidth,Ii=u.lineWidth,Ci=s.stencil_mask,nn=u.stencil_mask,_r=b.next,_r?i.bindFramebuffer(36160,_r.framebuffer):i.bindFramebuffer(36160,null),b.cur=_r,Ht=d,Re=0;for(var ii=0;ii{LNe.exports=function(t,r,n,i,a,o,s,u){"use strict";var l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ue,Fe,me,Ne,ce,Ke,it,bt,Nt,nt,Ye,kt;return l=t.gl,f=t.context,c=t.strings,h=t.next,d=t.current,p=t.draw,x=t.elements,b=t.buffer,v=t.shader,k=t.attributes,E=t.vao,T=t.uniforms,L=t.framebuffer,_=t.extensions,C=t.timer,S=t.isBufferArgs,m=h.blend_color,P=d.blend_color,A=h.blend_equation,B=d.blend_equation,F=h.blend_func,U=d.blend_func,G=h.depth_range,j=d.depth_range,H=h.colorMask,N=d.colorMask,W=h.polygonOffset_offset,re=d.polygonOffset_offset,ae=h.sample_coverage,be=d.sample_coverage,Pe=h.stencil_func,Ce=d.stencil_func,de=h.stencil_opFront,te=d.stencil_opFront,ke=h.stencil_opBack,Ee=d.stencil_opBack,Me=h.scissor_box,Ue=d.scissor_box,Fe=h.viewport,me=d.viewport,Ne={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},ce={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ke={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},it={add:32774,subtract:32778,"reverse subtract":32779},bt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Nt={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},nt={cw:2304,ccw:2305},Ye={},kt={},{draw:function(At){var St,Bt,Zt,Et,Ae,ot,dt,pt,at,Xe,rt,Qe,zt,Yt,lr,mr,_r,Ht,Re;if(St=_.angle_instanced_arrays,Bt=At.framebuffer,Zt=L.getFramebuffer(Bt),Et=L.next,L.next=Zt,Ae=f.framebufferWidth,f.framebufferWidth=Zt?Zt.width:f.drawingBufferWidth,ot=f.framebufferHeight,f.framebufferHeight=Zt?Zt.height:f.drawingBufferHeight,Zt!==L.cur&&(Zt?l.bindFramebuffer(36160,Zt.framebuffer):l.bindFramebuffer(36160,null),L.cur=Zt),d.dirty){var xe,Oe,Ie,De,ct,_e,fe,pe,mt,It,Pt,rr,Wr,Nr,Er,Br,mi,Di,Ii,Ci,nn,ii,wi,Gi,Ft,gt,Ut,Wt,xr,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri;xe=h.dither,xe!==d.dither&&(xe?l.enable(3024):l.disable(3024),d.dither=xe),Oe=h.blend_enable,Oe!==d.blend_enable&&(Oe?l.enable(3042):l.disable(3042),d.blend_enable=Oe),Ie=m[0],De=m[1],ct=m[2],_e=m[3],(Ie!==P[0]||De!==P[1]||ct!==P[2]||_e!==P[3])&&(l.blendColor(Ie,De,ct,_e),P[0]=Ie,P[1]=De,P[2]=ct,P[3]=_e),fe=A[0],pe=A[1],(fe!==B[0]||pe!==B[1])&&(l.blendEquationSeparate(fe,pe),B[0]=fe,B[1]=pe),mt=F[0],It=F[1],Pt=F[2],rr=F[3],(mt!==U[0]||It!==U[1]||Pt!==U[2]||rr!==U[3])&&(l.blendFuncSeparate(mt,It,Pt,rr),U[0]=mt,U[1]=It,U[2]=Pt,U[3]=rr),Wr=h.depth_enable,Wr!==d.depth_enable&&(Wr?l.enable(2929):l.disable(2929),d.depth_enable=Wr),Nr=h.depth_func,Nr!==d.depth_func&&(l.depthFunc(Nr),d.depth_func=Nr),Er=G[0],Br=G[1],(Er!==j[0]||Br!==j[1])&&(l.depthRange(Er,Br),j[0]=Er,j[1]=Br),mi=h.depth_mask,mi!==d.depth_mask&&(l.depthMask(mi),d.depth_mask=mi),Di=H[0],Ii=H[1],Ci=H[2],nn=H[3],(Di!==N[0]||Ii!==N[1]||Ci!==N[2]||nn!==N[3])&&(l.colorMask(Di,Ii,Ci,nn),N[0]=Di,N[1]=Ii,N[2]=Ci,N[3]=nn),ii=h.cull_enable,ii!==d.cull_enable&&(ii?l.enable(2884):l.disable(2884),d.cull_enable=ii),wi=h.cull_face,wi!==d.cull_face&&(l.cullFace(wi),d.cull_face=wi),Gi=h.frontFace,Gi!==d.frontFace&&(l.frontFace(Gi),d.frontFace=Gi),Ft=h.lineWidth,Ft!==d.lineWidth&&(l.lineWidth(Ft),d.lineWidth=Ft),gt=h.polygonOffset_enable,gt!==d.polygonOffset_enable&&(gt?l.enable(32823):l.disable(32823),d.polygonOffset_enable=gt),Ut=W[0],Wt=W[1],(Ut!==re[0]||Wt!==re[1])&&(l.polygonOffset(Ut,Wt),re[0]=Ut,re[1]=Wt),xr=h.sample_alpha,xr!==d.sample_alpha&&(xr?l.enable(32926):l.disable(32926),d.sample_alpha=xr),Lr=h.sample_enable,Lr!==d.sample_enable&&(Lr?l.enable(32928):l.disable(32928),d.sample_enable=Lr),Ur=ae[0],Ir=ae[1],(Ur!==be[0]||Ir!==be[1])&&(l.sampleCoverage(Ur,Ir),be[0]=Ur,be[1]=Ir),Gr=h.stencil_enable,Gr!==d.stencil_enable&&(Gr?l.enable(2960):l.disable(2960),d.stencil_enable=Gr),jr=h.stencil_mask,jr!==d.stencil_mask&&(l.stencilMask(jr),d.stencil_mask=jr),yi=Pe[0],Ei=Pe[1],Vi=Pe[2],(yi!==Ce[0]||Ei!==Ce[1]||Vi!==Ce[2])&&(l.stencilFunc(yi,Ei,Vi),Ce[0]=yi,Ce[1]=Ei,Ce[2]=Vi),ti=de[0],en=de[1],Yr=de[2],oi=de[3],(ti!==te[0]||en!==te[1]||Yr!==te[2]||oi!==te[3])&&(l.stencilOpSeparate(ti,en,Yr,oi),te[0]=ti,te[1]=en,te[2]=Yr,te[3]=oi),Bi=ke[0],an=ke[1],rn=ke[2],Fi=ke[3],(Bi!==Ee[0]||an!==Ee[1]||rn!==Ee[2]||Fi!==Ee[3])&&(l.stencilOpSeparate(Bi,an,rn,Fi),Ee[0]=Bi,Ee[1]=an,Ee[2]=rn,Ee[3]=Fi),Ri=h.scissor_enable,Ri!==d.scissor_enable&&(Ri?l.enable(3089):l.disable(3089),d.scissor_enable=Ri)}dt=f.framebufferWidth,pt=f.framebufferHeight,at=f.viewportWidth,f.viewportWidth=dt,Xe=f.viewportHeight,f.viewportHeight=pt,l.viewport(0,0,dt,pt),me[0]=0,me[1]=0,me[2]=dt,me[3]=pt,rt=f.framebufferWidth,Qe=f.framebufferHeight,l.scissor(0,0,rt,Qe),Ue[0]=0,Ue[1]=0,Ue[2]=rt,Ue[3]=Qe,zt=d.profile,zt&&(Yt=performance.now(),r.count++),lr=v.frag,mr=v.vert,_r=v.program(mr,lr),l.useProgram(_r.program),E.setVAO(null),Ht=_r.id,Re=Ye[Ht],Re?Re.call(this,At):(Re=Ye[Ht]=n(_r),Re.call(this,At)),d.dirty=!0,E.setVAO(null),L.next=Et,f.framebufferWidth=Ae,f.framebufferHeight=ot,f.viewportWidth=at,f.viewportHeight=Xe,zt&&(r.cpuTime+=performance.now()-Yt)},scope:function(At,St,Bt){var Zt,Et,Ae,ot,dt,pt,at,Xe,rt,Qe,zt,Yt,lr,mr,_r,Ht,Re,xe,Oe,Ie,De;Zt=At.framebuffer,Et=L.getFramebuffer(Zt),Ae=L.next,L.next=Et,ot=f.framebufferWidth,f.framebufferWidth=Et?Et.width:f.drawingBufferWidth,dt=f.framebufferHeight,f.framebufferHeight=Et?Et.height:f.drawingBufferHeight,pt=f.framebufferWidth,at=f.framebufferHeight,Xe=f.viewportWidth,f.viewportWidth=pt,rt=f.viewportHeight,f.viewportHeight=at,Qe=Fe[0],Fe[0]=i,zt=Fe[1],Fe[1]=a,Yt=Fe[2],Fe[2]=pt,lr=Fe[3],Fe[3]=at,mr=f.framebufferWidth,_r=f.framebufferHeight,Ht=Me[0],Me[0]=o,Re=Me[1],Me[1]=s,xe=Me[2],Me[2]=mr,Oe=Me[3],Me[3]=_r,Ie=d.profile,Ie&&(De=performance.now(),r.count++),d.dirty=!0,St(f,At,Bt),L.next=Ae,f.framebufferWidth=ot,f.framebufferHeight=dt,f.viewportWidth=Xe,f.viewportHeight=rt,Fe[0]=Qe,Fe[1]=zt,Fe[2]=Yt,Fe[3]=lr,Me[0]=Ht,Me[1]=Re,Me[2]=xe,Me[3]=Oe,Ie&&(r.cpuTime+=performance.now()-De),d.dirty=!0},batch:function(At,St){var Bt,Zt,Et,Ae,ot,dt,pt,at;if(Bt=_.angle_instanced_arrays,d.dirty){var Xe,rt,Qe,zt,Yt,lr,mr,_r,Ht,Re,xe,Oe,Ie,De,ct,_e,fe,pe,mt,It,Pt,rr,Wr,Nr,Er,Br,mi,Di,Ii,Ci,nn,ii,wi,Gi,Ft,gt,Ut,Wt,xr,Lr,Ur,Ir,Gr,jr,yi,Ei;Xe=h.dither,Xe!==d.dither&&(Xe?l.enable(3024):l.disable(3024),d.dither=Xe),rt=h.blend_enable,rt!==d.blend_enable&&(rt?l.enable(3042):l.disable(3042),d.blend_enable=rt),Qe=m[0],zt=m[1],Yt=m[2],lr=m[3],(Qe!==P[0]||zt!==P[1]||Yt!==P[2]||lr!==P[3])&&(l.blendColor(Qe,zt,Yt,lr),P[0]=Qe,P[1]=zt,P[2]=Yt,P[3]=lr),mr=A[0],_r=A[1],(mr!==B[0]||_r!==B[1])&&(l.blendEquationSeparate(mr,_r),B[0]=mr,B[1]=_r),Ht=F[0],Re=F[1],xe=F[2],Oe=F[3],(Ht!==U[0]||Re!==U[1]||xe!==U[2]||Oe!==U[3])&&(l.blendFuncSeparate(Ht,Re,xe,Oe),U[0]=Ht,U[1]=Re,U[2]=xe,U[3]=Oe),Ie=h.depth_enable,Ie!==d.depth_enable&&(Ie?l.enable(2929):l.disable(2929),d.depth_enable=Ie),De=h.depth_func,De!==d.depth_func&&(l.depthFunc(De),d.depth_func=De),ct=G[0],_e=G[1],(ct!==j[0]||_e!==j[1])&&(l.depthRange(ct,_e),j[0]=ct,j[1]=_e),fe=h.depth_mask,fe!==d.depth_mask&&(l.depthMask(fe),d.depth_mask=fe),pe=H[0],mt=H[1],It=H[2],Pt=H[3],(pe!==N[0]||mt!==N[1]||It!==N[2]||Pt!==N[3])&&(l.colorMask(pe,mt,It,Pt),N[0]=pe,N[1]=mt,N[2]=It,N[3]=Pt),rr=h.cull_enable,rr!==d.cull_enable&&(rr?l.enable(2884):l.disable(2884),d.cull_enable=rr),Wr=h.cull_face,Wr!==d.cull_face&&(l.cullFace(Wr),d.cull_face=Wr),Nr=h.frontFace,Nr!==d.frontFace&&(l.frontFace(Nr),d.frontFace=Nr),Er=h.lineWidth,Er!==d.lineWidth&&(l.lineWidth(Er),d.lineWidth=Er),Br=h.polygonOffset_enable,Br!==d.polygonOffset_enable&&(Br?l.enable(32823):l.disable(32823),d.polygonOffset_enable=Br),mi=W[0],Di=W[1],(mi!==re[0]||Di!==re[1])&&(l.polygonOffset(mi,Di),re[0]=mi,re[1]=Di),Ii=h.sample_alpha,Ii!==d.sample_alpha&&(Ii?l.enable(32926):l.disable(32926),d.sample_alpha=Ii),Ci=h.sample_enable,Ci!==d.sample_enable&&(Ci?l.enable(32928):l.disable(32928),d.sample_enable=Ci),nn=ae[0],ii=ae[1],(nn!==be[0]||ii!==be[1])&&(l.sampleCoverage(nn,ii),be[0]=nn,be[1]=ii),wi=h.stencil_enable,wi!==d.stencil_enable&&(wi?l.enable(2960):l.disable(2960),d.stencil_enable=wi),Gi=h.stencil_mask,Gi!==d.stencil_mask&&(l.stencilMask(Gi),d.stencil_mask=Gi),Ft=Pe[0],gt=Pe[1],Ut=Pe[2],(Ft!==Ce[0]||gt!==Ce[1]||Ut!==Ce[2])&&(l.stencilFunc(Ft,gt,Ut),Ce[0]=Ft,Ce[1]=gt,Ce[2]=Ut),Wt=de[0],xr=de[1],Lr=de[2],Ur=de[3],(Wt!==te[0]||xr!==te[1]||Lr!==te[2]||Ur!==te[3])&&(l.stencilOpSeparate(Wt,xr,Lr,Ur),te[0]=Wt,te[1]=xr,te[2]=Lr,te[3]=Ur),Ir=ke[0],Gr=ke[1],jr=ke[2],yi=ke[3],(Ir!==Ee[0]||Gr!==Ee[1]||jr!==Ee[2]||yi!==Ee[3])&&(l.stencilOpSeparate(Ir,Gr,jr,yi),Ee[0]=Ir,Ee[1]=Gr,Ee[2]=jr,Ee[3]=yi),Ei=h.scissor_enable,Ei!==d.scissor_enable&&(Ei?l.enable(3089):l.disable(3089),d.scissor_enable=Ei)}Zt=d.profile,Zt&&(Et=performance.now(),r.count+=St),Ae=v.frag,ot=v.vert,dt=v.program(ot,Ae),l.useProgram(dt.program),E.setVAO(null),pt=dt.id,at=kt[pt],at?at.call(this,At,St):(at=kt[pt]=u(dt),at.call(this,At,St)),d.dirty=!0,E.setVAO(null),Zt&&(r.cpuTime+=performance.now()-Et)}}}});var S8=Te((B_r,PNe)=>{PNe.exports=function(t,r,n,i){"use strict";var a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ue,Fe,me,Ne,ce,Ke,it,bt;return a=t.gl,o=t.context,s=t.strings,u=t.next,l=t.current,f=t.draw,c=t.elements,h=t.buffer,d=t.shader,p=t.attributes,x=t.vao,b=t.uniforms,v=t.framebuffer,k=t.extensions,E=t.timer,T=t.isBufferArgs,L=u.blend_color,_=l.blend_color,C=u.blend_equation,S=l.blend_equation,m=u.blend_func,P=l.blend_func,A=u.depth_range,B=l.depth_range,F=u.colorMask,U=l.colorMask,G=u.polygonOffset_offset,j=l.polygonOffset_offset,H=u.sample_coverage,N=l.sample_coverage,W=u.stencil_func,re=l.stencil_func,ae=u.stencil_opFront,be=l.stencil_opFront,Pe=u.stencil_opBack,Ce=l.stencil_opBack,de=u.scissor_box,te=l.scissor_box,ke=u.viewport,Ee=l.viewport,Me={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ue={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Fe={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},me={add:32774,subtract:32778,"reverse subtract":32779},Ne={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ce={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ke={cw:2304,ccw:2305},it={},bt={},{draw:function(Nt){var nt,Ye,kt,At,St,Bt,Zt,Et,Ae;if(nt=k.angle_instanced_arrays,Ye=v.next,Ye!==v.cur&&(Ye?a.bindFramebuffer(36160,Ye.framebuffer):a.bindFramebuffer(36160,null),v.cur=Ye),l.dirty){var ot,dt,pt,at,Xe,rt,Qe,zt,Yt,lr,mr,_r,Ht,Re,xe,Oe,Ie,De,ct,_e,fe,pe,mt,It,Pt,rr,Wr,Nr,Er,Br,mi,Di,Ii,Ci,nn,ii,wi,Gi,Ft,gt,Ut,Wt,xr,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr;ot=u.dither,ot!==l.dither&&(ot?a.enable(3024):a.disable(3024),l.dither=ot),dt=u.blend_enable,dt!==l.blend_enable&&(dt?a.enable(3042):a.disable(3042),l.blend_enable=dt),pt=L[0],at=L[1],Xe=L[2],rt=L[3],(pt!==_[0]||at!==_[1]||Xe!==_[2]||rt!==_[3])&&(a.blendColor(pt,at,Xe,rt),_[0]=pt,_[1]=at,_[2]=Xe,_[3]=rt),Qe=C[0],zt=C[1],(Qe!==S[0]||zt!==S[1])&&(a.blendEquationSeparate(Qe,zt),S[0]=Qe,S[1]=zt),Yt=m[0],lr=m[1],mr=m[2],_r=m[3],(Yt!==P[0]||lr!==P[1]||mr!==P[2]||_r!==P[3])&&(a.blendFuncSeparate(Yt,lr,mr,_r),P[0]=Yt,P[1]=lr,P[2]=mr,P[3]=_r),Ht=u.depth_enable,Ht!==l.depth_enable&&(Ht?a.enable(2929):a.disable(2929),l.depth_enable=Ht),Re=u.depth_func,Re!==l.depth_func&&(a.depthFunc(Re),l.depth_func=Re),xe=A[0],Oe=A[1],(xe!==B[0]||Oe!==B[1])&&(a.depthRange(xe,Oe),B[0]=xe,B[1]=Oe),Ie=u.depth_mask,Ie!==l.depth_mask&&(a.depthMask(Ie),l.depth_mask=Ie),De=F[0],ct=F[1],_e=F[2],fe=F[3],(De!==U[0]||ct!==U[1]||_e!==U[2]||fe!==U[3])&&(a.colorMask(De,ct,_e,fe),U[0]=De,U[1]=ct,U[2]=_e,U[3]=fe),pe=u.cull_enable,pe!==l.cull_enable&&(pe?a.enable(2884):a.disable(2884),l.cull_enable=pe),mt=u.cull_face,mt!==l.cull_face&&(a.cullFace(mt),l.cull_face=mt),It=u.frontFace,It!==l.frontFace&&(a.frontFace(It),l.frontFace=It),Pt=u.lineWidth,Pt!==l.lineWidth&&(a.lineWidth(Pt),l.lineWidth=Pt),rr=u.polygonOffset_enable,rr!==l.polygonOffset_enable&&(rr?a.enable(32823):a.disable(32823),l.polygonOffset_enable=rr),Wr=G[0],Nr=G[1],(Wr!==j[0]||Nr!==j[1])&&(a.polygonOffset(Wr,Nr),j[0]=Wr,j[1]=Nr),Er=u.sample_alpha,Er!==l.sample_alpha&&(Er?a.enable(32926):a.disable(32926),l.sample_alpha=Er),Br=u.sample_enable,Br!==l.sample_enable&&(Br?a.enable(32928):a.disable(32928),l.sample_enable=Br),mi=H[0],Di=H[1],(mi!==N[0]||Di!==N[1])&&(a.sampleCoverage(mi,Di),N[0]=mi,N[1]=Di),Ii=u.stencil_enable,Ii!==l.stencil_enable&&(Ii?a.enable(2960):a.disable(2960),l.stencil_enable=Ii),Ci=u.stencil_mask,Ci!==l.stencil_mask&&(a.stencilMask(Ci),l.stencil_mask=Ci),nn=W[0],ii=W[1],wi=W[2],(nn!==re[0]||ii!==re[1]||wi!==re[2])&&(a.stencilFunc(nn,ii,wi),re[0]=nn,re[1]=ii,re[2]=wi),Gi=ae[0],Ft=ae[1],gt=ae[2],Ut=ae[3],(Gi!==be[0]||Ft!==be[1]||gt!==be[2]||Ut!==be[3])&&(a.stencilOpSeparate(Gi,Ft,gt,Ut),be[0]=Gi,be[1]=Ft,be[2]=gt,be[3]=Ut),Wt=Pe[0],xr=Pe[1],Lr=Pe[2],Ur=Pe[3],(Wt!==Ce[0]||xr!==Ce[1]||Lr!==Ce[2]||Ur!==Ce[3])&&(a.stencilOpSeparate(Wt,xr,Lr,Ur),Ce[0]=Wt,Ce[1]=xr,Ce[2]=Lr,Ce[3]=Ur),Ir=u.scissor_enable,Ir!==l.scissor_enable&&(Ir?a.enable(3089):a.disable(3089),l.scissor_enable=Ir),Gr=de[0],jr=de[1],yi=de[2],Ei=de[3],(Gr!==te[0]||jr!==te[1]||yi!==te[2]||Ei!==te[3])&&(a.scissor(Gr,jr,yi,Ei),te[0]=Gr,te[1]=jr,te[2]=yi,te[3]=Ei),Vi=ke[0],ti=ke[1],en=ke[2],Yr=ke[3],(Vi!==Ee[0]||ti!==Ee[1]||en!==Ee[2]||Yr!==Ee[3])&&(a.viewport(Vi,ti,en,Yr),Ee[0]=Vi,Ee[1]=ti,Ee[2]=en,Ee[3]=Yr),l.dirty=!1}kt=l.profile,kt&&(At=performance.now(),r.count++),St=d.frag,Bt=d.vert,Zt=d.program(Bt,St),a.useProgram(Zt.program),x.setVAO(null),Et=Zt.id,Ae=it[Et],Ae?Ae.call(this,Nt):(Ae=it[Et]=n(Zt),Ae.call(this,Nt)),x.setVAO(null),kt&&(r.cpuTime+=performance.now()-At)},scope:function(Nt,nt,Ye){var kt,At;kt=l.profile,kt&&(At=performance.now(),r.count++),nt(o,Nt,Ye),kt&&(r.cpuTime+=performance.now()-At)},batch:function(Nt,nt){var Ye,kt,At,St,Bt,Zt,Et,Ae,ot;if(Ye=k.angle_instanced_arrays,kt=v.next,kt!==v.cur&&(kt?a.bindFramebuffer(36160,kt.framebuffer):a.bindFramebuffer(36160,null),v.cur=kt),l.dirty){var dt,pt,at,Xe,rt,Qe,zt,Yt,lr,mr,_r,Ht,Re,xe,Oe,Ie,De,ct,_e,fe,pe,mt,It,Pt,rr,Wr,Nr,Er,Br,mi,Di,Ii,Ci,nn,ii,wi,Gi,Ft,gt,Ut,Wt,xr,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi;dt=u.dither,dt!==l.dither&&(dt?a.enable(3024):a.disable(3024),l.dither=dt),pt=u.blend_enable,pt!==l.blend_enable&&(pt?a.enable(3042):a.disable(3042),l.blend_enable=pt),at=L[0],Xe=L[1],rt=L[2],Qe=L[3],(at!==_[0]||Xe!==_[1]||rt!==_[2]||Qe!==_[3])&&(a.blendColor(at,Xe,rt,Qe),_[0]=at,_[1]=Xe,_[2]=rt,_[3]=Qe),zt=C[0],Yt=C[1],(zt!==S[0]||Yt!==S[1])&&(a.blendEquationSeparate(zt,Yt),S[0]=zt,S[1]=Yt),lr=m[0],mr=m[1],_r=m[2],Ht=m[3],(lr!==P[0]||mr!==P[1]||_r!==P[2]||Ht!==P[3])&&(a.blendFuncSeparate(lr,mr,_r,Ht),P[0]=lr,P[1]=mr,P[2]=_r,P[3]=Ht),Re=u.depth_enable,Re!==l.depth_enable&&(Re?a.enable(2929):a.disable(2929),l.depth_enable=Re),xe=u.depth_func,xe!==l.depth_func&&(a.depthFunc(xe),l.depth_func=xe),Oe=A[0],Ie=A[1],(Oe!==B[0]||Ie!==B[1])&&(a.depthRange(Oe,Ie),B[0]=Oe,B[1]=Ie),De=u.depth_mask,De!==l.depth_mask&&(a.depthMask(De),l.depth_mask=De),ct=F[0],_e=F[1],fe=F[2],pe=F[3],(ct!==U[0]||_e!==U[1]||fe!==U[2]||pe!==U[3])&&(a.colorMask(ct,_e,fe,pe),U[0]=ct,U[1]=_e,U[2]=fe,U[3]=pe),mt=u.cull_enable,mt!==l.cull_enable&&(mt?a.enable(2884):a.disable(2884),l.cull_enable=mt),It=u.cull_face,It!==l.cull_face&&(a.cullFace(It),l.cull_face=It),Pt=u.frontFace,Pt!==l.frontFace&&(a.frontFace(Pt),l.frontFace=Pt),rr=u.lineWidth,rr!==l.lineWidth&&(a.lineWidth(rr),l.lineWidth=rr),Wr=u.polygonOffset_enable,Wr!==l.polygonOffset_enable&&(Wr?a.enable(32823):a.disable(32823),l.polygonOffset_enable=Wr),Nr=G[0],Er=G[1],(Nr!==j[0]||Er!==j[1])&&(a.polygonOffset(Nr,Er),j[0]=Nr,j[1]=Er),Br=u.sample_alpha,Br!==l.sample_alpha&&(Br?a.enable(32926):a.disable(32926),l.sample_alpha=Br),mi=u.sample_enable,mi!==l.sample_enable&&(mi?a.enable(32928):a.disable(32928),l.sample_enable=mi),Di=H[0],Ii=H[1],(Di!==N[0]||Ii!==N[1])&&(a.sampleCoverage(Di,Ii),N[0]=Di,N[1]=Ii),Ci=u.stencil_enable,Ci!==l.stencil_enable&&(Ci?a.enable(2960):a.disable(2960),l.stencil_enable=Ci),nn=u.stencil_mask,nn!==l.stencil_mask&&(a.stencilMask(nn),l.stencil_mask=nn),ii=W[0],wi=W[1],Gi=W[2],(ii!==re[0]||wi!==re[1]||Gi!==re[2])&&(a.stencilFunc(ii,wi,Gi),re[0]=ii,re[1]=wi,re[2]=Gi),Ft=ae[0],gt=ae[1],Ut=ae[2],Wt=ae[3],(Ft!==be[0]||gt!==be[1]||Ut!==be[2]||Wt!==be[3])&&(a.stencilOpSeparate(Ft,gt,Ut,Wt),be[0]=Ft,be[1]=gt,be[2]=Ut,be[3]=Wt),xr=Pe[0],Lr=Pe[1],Ur=Pe[2],Ir=Pe[3],(xr!==Ce[0]||Lr!==Ce[1]||Ur!==Ce[2]||Ir!==Ce[3])&&(a.stencilOpSeparate(xr,Lr,Ur,Ir),Ce[0]=xr,Ce[1]=Lr,Ce[2]=Ur,Ce[3]=Ir),Gr=u.scissor_enable,Gr!==l.scissor_enable&&(Gr?a.enable(3089):a.disable(3089),l.scissor_enable=Gr),jr=de[0],yi=de[1],Ei=de[2],Vi=de[3],(jr!==te[0]||yi!==te[1]||Ei!==te[2]||Vi!==te[3])&&(a.scissor(jr,yi,Ei,Vi),te[0]=jr,te[1]=yi,te[2]=Ei,te[3]=Vi),ti=ke[0],en=ke[1],Yr=ke[2],oi=ke[3],(ti!==Ee[0]||en!==Ee[1]||Yr!==Ee[2]||oi!==Ee[3])&&(a.viewport(ti,en,Yr,oi),Ee[0]=ti,Ee[1]=en,Ee[2]=Yr,Ee[3]=oi),l.dirty=!1}At=l.profile,At&&(St=performance.now(),r.count+=nt),Bt=d.frag,Zt=d.vert,Et=d.program(Zt,Bt),a.useProgram(Et.program),x.setVAO(null),Ae=Et.id,ot=bt[Ae],ot?ot.call(this,Nt,nt):(ot=bt[Ae]=i(Et),ot.call(this,Nt,nt)),x.setVAO(null),At&&(r.cpuTime+=performance.now()-St)}}}});var M8=Te((O_r,zNe)=>{zNe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ue,Fe,me,Ne,ce,Ke,it,bt,Nt,nt,Ye,kt,At,St,Bt,Zt,Et,Ae,ot,dt,pt,at,Xe,rt){"use strict";var Qe,zt,Yt,lr,mr,_r,Ht,Re,xe,Oe,Ie,De,ct,_e,fe,pe,mt,It,Pt,rr,Wr,Nr,Er,Br,mi,Di,Ii,Ci,nn,ii,wi,Gi,Ft,gt,Ut,Wt,xr,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn;return Qe=t.gl,zt=t.context,Yt=t.strings,lr=t.next,mr=t.current,_r=t.draw,Ht=t.elements,Re=t.buffer,xe=t.shader,Oe=t.attributes,Ie=t.vao,De=t.uniforms,ct=t.framebuffer,_e=t.extensions,fe=t.timer,pe=t.isBufferArgs,mt=lr.blend_color,It=mr.blend_color,Pt=lr.blend_equation,rr=mr.blend_equation,Wr=lr.blend_func,Nr=mr.blend_func,Er=lr.depth_range,Br=mr.depth_range,mi=lr.colorMask,Di=mr.colorMask,Ii=lr.polygonOffset_offset,Ci=mr.polygonOffset_offset,nn=lr.sample_coverage,ii=mr.sample_coverage,wi=lr.stencil_func,Gi=mr.stencil_func,Ft=lr.stencil_opFront,gt=mr.stencil_opFront,Ut=lr.stencil_opBack,Wt=mr.stencil_opBack,xr=lr.scissor_box,Lr=mr.scissor_box,Ur=lr.viewport,Ir=mr.viewport,Gr={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},jr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},yi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Ei={add:32774,subtract:32778,"reverse subtract":32779},Vi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ti={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},en={cw:2304,ccw:2305},Yr={},Yr.stride=8,Yr.offset=8,Yr.divisor=1,oi={},oi.stride=8,oi.offset=16,oi.divisor=1,Bi={},Bi.stride=8,Bi.offset=8,Bi.divisor=1,an={},an.stride=8,an.offset=16,an.divisor=1,rn={},rn.stride=4,rn.offset=0,rn.divisor=1,{draw:function(Fi){var Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa;if(Ri=_e.angle_instanced_arrays,xn=ct.next,xn!==ct.cur&&(xn?Qe.bindFramebuffer(36160,xn.framebuffer):Qe.bindFramebuffer(36160,null),ct.cur=xn),mr.dirty){var os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,Tt,Vt,wr,yr,Fr,gi;os=lr.dither,os!==mr.dither&&(os?Qe.enable(3024):Qe.disable(3024),mr.dither=os),_l=lr.depth_func,_l!==mr.depth_func&&(Qe.depthFunc(_l),mr.depth_func=_l),Ss=Er[0],po=Er[1],(Ss!==Br[0]||po!==Br[1])&&(Qe.depthRange(Ss,po),Br[0]=Ss,Br[1]=po),go=lr.depth_mask,go!==mr.depth_mask&&(Qe.depthMask(go),mr.depth_mask=go),ss=mi[0],qo=mi[1],zo=mi[2],io=mi[3],(ss!==Di[0]||qo!==Di[1]||zo!==Di[2]||io!==Di[3])&&(Qe.colorMask(ss,qo,zo,io),Di[0]=ss,Di[1]=qo,Di[2]=zo,Di[3]=io),Io=lr.cull_enable,Io!==mr.cull_enable&&(Io?Qe.enable(2884):Qe.disable(2884),mr.cull_enable=Io),Da=lr.cull_face,Da!==mr.cull_face&&(Qe.cullFace(Da),mr.cull_face=Da),vs=lr.frontFace,vs!==mr.frontFace&&(Qe.frontFace(vs),mr.frontFace=vs),fs=lr.lineWidth,fs!==mr.lineWidth&&(Qe.lineWidth(fs),mr.lineWidth=fs),cl=lr.polygonOffset_enable,cl!==mr.polygonOffset_enable&&(cl?Qe.enable(32823):Qe.disable(32823),mr.polygonOffset_enable=cl),el=Ii[0],Hs=Ii[1],(el!==Ci[0]||Hs!==Ci[1])&&(Qe.polygonOffset(el,Hs),Ci[0]=el,Ci[1]=Hs),Ro=lr.sample_alpha,Ro!==mr.sample_alpha&&(Ro?Qe.enable(32926):Qe.disable(32926),mr.sample_alpha=Ro),tl=lr.sample_enable,tl!==mr.sample_enable&&(tl?Qe.enable(32928):Qe.disable(32928),mr.sample_enable=tl),Fs=nn[0],hl=nn[1],(Fs!==ii[0]||hl!==ii[1])&&(Qe.sampleCoverage(Fs,hl),ii[0]=Fs,ii[1]=hl),Fa=lr.stencil_mask,Fa!==mr.stencil_mask&&(Qe.stencilMask(Fa),mr.stencil_mask=Fa),Ms=wi[0],jo=wi[1],Rs=wi[2],(Ms!==Gi[0]||jo!==Gi[1]||Rs!==Gi[2])&&(Qe.stencilFunc(Ms,jo,Rs),Gi[0]=Ms,Gi[1]=jo,Gi[2]=Rs),Is=Ft[0],Bs=Ft[1],Tt=Ft[2],Vt=Ft[3],(Is!==gt[0]||Bs!==gt[1]||Tt!==gt[2]||Vt!==gt[3])&&(Qe.stencilOpSeparate(Is,Bs,Tt,Vt),gt[0]=Is,gt[1]=Bs,gt[2]=Tt,gt[3]=Vt),wr=Ut[0],yr=Ut[1],Fr=Ut[2],gi=Ut[3],(wr!==Wt[0]||yr!==Wt[1]||Fr!==Wt[2]||gi!==Wt[3])&&(Qe.stencilOpSeparate(wr,yr,Fr,gi),Wt[0]=wr,Wt[1]=yr,Wt[2]=Fr,Wt[3]=gi)}xi=Fi.viewport,Xr=xi.x|0,ft=xi.y|0,tr="width"in xi?xi.width|0:zt.framebufferWidth-Xr,pr="height"in xi?xi.height|0:zt.framebufferHeight-ft,gr=zt.viewportWidth,zt.viewportWidth=tr,Zr=zt.viewportHeight,zt.viewportHeight=pr,Qe.viewport(Xr,ft,tr,pr),Ir[0]=Xr,Ir[1]=ft,Ir[2]=tr,Ir[3]=pr,Qe.blendColor(0,0,0,0),It[0]=0,It[1]=0,It[2]=0,It[3]=0,n?Qe.enable(3042):Qe.disable(3042),mr.blend_enable=n,Qe.blendEquationSeparate(32774,32774),rr[0]=32774,rr[1]=32774,Qe.blendFuncSeparate(770,771,773,1),Nr[0]=770,Nr[1]=771,Nr[2]=773,Nr[3]=1,Ai=i.call(this,zt,Fi,0),Ai?Qe.enable(2929):Qe.disable(2929),mr.depth_enable=Ai,Qi=Fi.viewport,ni=Qi.x|0,Zi=Qi.y|0,aa="width"in Qi?Qi.width|0:zt.framebufferWidth-ni,Mn="height"in Qi?Qi.height|0:zt.framebufferHeight-Zi,Qe.scissor(ni,Zi,aa,Mn),Lr[0]=ni,Lr[1]=Zi,Lr[2]=aa,Lr[3]=Mn,a?Qe.enable(3089):Qe.disable(3089),mr.scissor_enable=a,o?Qe.enable(2960):Qe.disable(2960),mr.stencil_enable=o,Un=mr.profile,Un&&(Ga=performance.now(),r.count++),Qe.useProgram(s.program),ma=_e.angle_instanced_arrays,Ie.setVAO(null),oa=Fi.positionBuffer,Yr.buffer=oa,ka=!1,so=1,Kr=0,Ia=0,Yo=0,fa=0,kn=null,Ta=0,ys=!1,uo=5126,ls=0,$a=0,fo=0,pe(Yr)?(ka=!0,kn=Re.createStream(34962,Yr),uo=kn.dtype):(kn=Re.getBuffer(Yr),kn?uo=kn.dtype:"constant"in Yr?(so=2,typeof Yr.constant=="number"?(Kr=Yr.constant,Ia=Yo=fa=0):(Kr=Yr.constant.length>0?Yr.constant[0]:0,Ia=Yr.constant.length>1?Yr.constant[1]:0,Yo=Yr.constant.length>2?Yr.constant[2]:0,fa=Yr.constant.length>3?Yr.constant[3]:0)):(pe(Yr.buffer)?kn=Re.createStream(34962,Yr.buffer):kn=Re.getBuffer(Yr.buffer),uo="type"in Yr?ti[Yr.type]:kn.dtype,ys=!!Yr.normalized,Ta=Yr.size|0,ls=Yr.offset|0,$a=Yr.stride|0,fo=Yr.divisor|0)),mn=u.location,ra=Oe[mn],so===1?(ra.buffer||Qe.enableVertexAttribArray(mn),wa=Ta||2,(ra.type!==uo||ra.size!==wa||ra.buffer!==kn||ra.normalized!==ys||ra.offset!==ls||ra.stride!==$a)&&(Qe.bindBuffer(34962,kn.buffer),Qe.vertexAttribPointer(mn,wa,uo,ys,$a,ls),ra.type=uo,ra.size=wa,ra.buffer=kn,ra.normalized=ys,ra.offset=ls,ra.stride=$a),ra.divisor!==fo&&(ma.vertexAttribDivisorANGLE(mn,fo),ra.divisor=fo)):(ra.buffer&&(Qe.disableVertexAttribArray(mn),ra.buffer=null),(ra.x!==Kr||ra.y!==Ia||ra.z!==Yo||ra.w!==fa)&&(Qe.vertexAttrib4f(mn,Kr,Ia,Yo,fa),ra.x=Kr,ra.y=Ia,ra.z=Yo,ra.w=fa)),ws=Fi.positionFractBuffer,Bi.buffer=ws,Co=!1,Po=1,ji=0,gn=0,Ps=0,Ha=0,Sn=null,ao=0,Ba=!1,Ko=5126,Qo=0,Wi=0,Sa=0,pe(Bi)?(Co=!0,Sn=Re.createStream(34962,Bi),Ko=Sn.dtype):(Sn=Re.getBuffer(Bi),Sn?Ko=Sn.dtype:"constant"in Bi?(Po=2,typeof Bi.constant=="number"?(ji=Bi.constant,gn=Ps=Ha=0):(ji=Bi.constant.length>0?Bi.constant[0]:0,gn=Bi.constant.length>1?Bi.constant[1]:0,Ps=Bi.constant.length>2?Bi.constant[2]:0,Ha=Bi.constant.length>3?Bi.constant[3]:0)):(pe(Bi.buffer)?Sn=Re.createStream(34962,Bi.buffer):Sn=Re.getBuffer(Bi.buffer),Ko="type"in Bi?ti[Bi.type]:Sn.dtype,Ba=!!Bi.normalized,ao=Bi.size|0,Qo=Bi.offset|0,Wi=Bi.stride|0,Sa=Bi.divisor|0)),Qa=l.location,vn=Oe[Qa],Po===1?(vn.buffer||Qe.enableVertexAttribArray(Qa),da=ao||2,(vn.type!==Ko||vn.size!==da||vn.buffer!==Sn||vn.normalized!==Ba||vn.offset!==Qo||vn.stride!==Wi)&&(Qe.bindBuffer(34962,Sn.buffer),Qe.vertexAttribPointer(Qa,da,Ko,Ba,Wi,Qo),vn.type=Ko,vn.size=da,vn.buffer=Sn,vn.normalized=Ba,vn.offset=Qo,vn.stride=Wi),vn.divisor!==Sa&&(ma.vertexAttribDivisorANGLE(Qa,Sa),vn.divisor=Sa)):(vn.buffer&&(Qe.disableVertexAttribArray(Qa),vn.buffer=null),(vn.x!==ji||vn.y!==gn||vn.z!==Ps||vn.w!==Ha)&&(Qe.vertexAttrib4f(Qa,ji,gn,Ps,Ha),vn.x=ji,vn.y=gn,vn.z=Ps,vn.w=Ha)),la=Fi.positionBuffer,oi.buffer=la,vo=!1,As=1,ps=0,co=0,mo=0,No=0,jn=null,Go=0,Ys=!1,qs=5126,Ns=0,Oa=0,ha=0,pe(oi)?(vo=!0,jn=Re.createStream(34962,oi),qs=jn.dtype):(jn=Re.getBuffer(oi),jn?qs=jn.dtype:"constant"in oi?(As=2,typeof oi.constant=="number"?(ps=oi.constant,co=mo=No=0):(ps=oi.constant.length>0?oi.constant[0]:0,co=oi.constant.length>1?oi.constant[1]:0,mo=oi.constant.length>2?oi.constant[2]:0,No=oi.constant.length>3?oi.constant[3]:0)):(pe(oi.buffer)?jn=Re.createStream(34962,oi.buffer):jn=Re.getBuffer(oi.buffer),qs="type"in oi?ti[oi.type]:jn.dtype,Ys=!!oi.normalized,Go=oi.size|0,Ns=oi.offset|0,Oa=oi.stride|0,ha=oi.divisor|0)),Vs=f.location,Ya=Oe[Vs],As===1?(Ya.buffer||Qe.enableVertexAttribArray(Vs),_n=Go||2,(Ya.type!==qs||Ya.size!==_n||Ya.buffer!==jn||Ya.normalized!==Ys||Ya.offset!==Ns||Ya.stride!==Oa)&&(Qe.bindBuffer(34962,jn.buffer),Qe.vertexAttribPointer(Vs,_n,qs,Ys,Oa,Ns),Ya.type=qs,Ya.size=_n,Ya.buffer=jn,Ya.normalized=Ys,Ya.offset=Ns,Ya.stride=Oa),Ya.divisor!==ha&&(ma.vertexAttribDivisorANGLE(Vs,ha),Ya.divisor=ha)):(Ya.buffer&&(Qe.disableVertexAttribArray(Vs),Ya.buffer=null),(Ya.x!==ps||Ya.y!==co||Ya.z!==mo||Ya.w!==No)&&(Qe.vertexAttrib4f(Vs,ps,co,mo,No),Ya.x=ps,Ya.y=co,Ya.z=mo,Ya.w=No)),Vn=Fi.positionFractBuffer,an.buffer=Vn,wo=!1,Ra=1,Xn=0,un=0,$n=0,Ka=0,qn=null,Eo=0,Ja=!1,lo=5126,eo=0,sa=0,es=0,pe(an)?(wo=!0,qn=Re.createStream(34962,an),lo=qn.dtype):(qn=Re.getBuffer(an),qn?lo=qn.dtype:"constant"in an?(Ra=2,typeof an.constant=="number"?(Xn=an.constant,un=$n=Ka=0):(Xn=an.constant.length>0?an.constant[0]:0,un=an.constant.length>1?an.constant[1]:0,$n=an.constant.length>2?an.constant[2]:0,Ka=an.constant.length>3?an.constant[3]:0)):(pe(an.buffer)?qn=Re.createStream(34962,an.buffer):qn=Re.getBuffer(an.buffer),lo="type"in an?ti[an.type]:qn.dtype,Ja=!!an.normalized,Eo=an.size|0,eo=an.offset|0,sa=an.stride|0,es=an.divisor|0)),Na=c.location,tn=Oe[Na],Ra===1?(tn.buffer||Qe.enableVertexAttribArray(Na),Pa=Eo||2,(tn.type!==lo||tn.size!==Pa||tn.buffer!==qn||tn.normalized!==Ja||tn.offset!==eo||tn.stride!==sa)&&(Qe.bindBuffer(34962,qn.buffer),Qe.vertexAttribPointer(Na,Pa,lo,Ja,sa,eo),tn.type=lo,tn.size=Pa,tn.buffer=qn,tn.normalized=Ja,tn.offset=eo,tn.stride=sa),tn.divisor!==es&&(ma.vertexAttribDivisorANGLE(Na,es),tn.divisor=es)):(tn.buffer&&(Qe.disableVertexAttribArray(Na),tn.buffer=null),(tn.x!==Xn||tn.y!==un||tn.z!==$n||tn.w!==Ka)&&(Qe.vertexAttrib4f(Na,Xn,un,$n,Ka),tn.x=Xn,tn.y=un,tn.z=$n,tn.w=Ka)),to=Fi.colorBuffer,rn.buffer=to,yo=!1,Jo=1,Ao=0,Dn=0,_a=0,Ws=0,Ca=null,Es=0,Ts=!1,Ho=5126,Wa=0,To=0,ts=0,pe(rn)?(yo=!0,Ca=Re.createStream(34962,rn),Ho=Ca.dtype):(Ca=Re.getBuffer(rn),Ca?Ho=Ca.dtype:"constant"in rn?(Jo=2,typeof rn.constant=="number"?(Ao=rn.constant,Dn=_a=Ws=0):(Ao=rn.constant.length>0?rn.constant[0]:0,Dn=rn.constant.length>1?rn.constant[1]:0,_a=rn.constant.length>2?rn.constant[2]:0,Ws=rn.constant.length>3?rn.constant[3]:0)):(pe(rn.buffer)?Ca=Re.createStream(34962,rn.buffer):Ca=Re.getBuffer(rn.buffer),Ho="type"in rn?ti[rn.type]:Ca.dtype,Ts=!!rn.normalized,Es=rn.size|0,Wa=rn.offset|0,To=rn.stride|0,ts=rn.divisor|0)),Wo=h.location,qa=Oe[Wo],Jo===1?(qa.buffer||Qe.enableVertexAttribArray(Wo),ln=Es||4,(qa.type!==Ho||qa.size!==ln||qa.buffer!==Ca||qa.normalized!==Ts||qa.offset!==Wa||qa.stride!==To)&&(Qe.bindBuffer(34962,Ca.buffer),Qe.vertexAttribPointer(Wo,ln,Ho,Ts,To,Wa),qa.type=Ho,qa.size=ln,qa.buffer=Ca,qa.normalized=Ts,qa.offset=Wa,qa.stride=To),qa.divisor!==ts&&(ma.vertexAttribDivisorANGLE(Wo,ts),qa.divisor=ts)):(qa.buffer&&(Qe.disableVertexAttribArray(Wo),qa.buffer=null),(qa.x!==Ao||qa.y!==Dn||qa.z!==_a||qa.w!==Ws)&&(Qe.vertexAttrib4f(Wo,Ao,Dn,_a,Ws),qa.x=Ao,qa.y=Dn,qa.z=_a,qa.w=Ws)),Bo=p.location,ko=Oe[Bo],ko.buffer||Qe.enableVertexAttribArray(Bo),(ko.type!==5126||ko.size!==1||ko.buffer!==d||ko.normalized!==!1||ko.offset!==0||ko.stride!==8)&&(Qe.bindBuffer(34962,d.buffer),Qe.vertexAttribPointer(Bo,1,5126,!1,8,0),ko.type=5126,ko.size=1,ko.buffer=d,ko.normalized=!1,ko.offset=0,ko.stride=8),ko.divisor!==0&&(ma.vertexAttribDivisorANGLE(Bo,0),ko.divisor=0),oo=x.location,za=Oe[oo],za.buffer||Qe.enableVertexAttribArray(oo),(za.type!==5126||za.size!==1||za.buffer!==d||za.normalized!==!1||za.offset!==4||za.stride!==8)&&(Qe.bindBuffer(34962,d.buffer),Qe.vertexAttribPointer(oo,1,5126,!1,8,4),za.type=5126,za.size=1,za.buffer=d,za.normalized=!1,za.offset=4,za.stride=8),za.divisor!==0&&(ma.vertexAttribDivisorANGLE(oo,0),za.divisor=0),ea=Fi.dashLength,Qe.uniform1f(b.location,ea),rs=Fi.dashTexture,rs&&rs._reglType==="framebuffer"&&(rs=rs.color[0]),$s=rs._texture,Qe.uniform1i(v.location,$s.bind()),us=Fi.depth,Qe.uniform1f(k.location,us),Ds=Fi.opacity,Qe.uniform1f(E.location,Ds),fl=Fi.scale,as=fl[0],Ma=fl[1],Qe.uniform2f(T.location,as,Ma),Qs=Fi.scaleFract,ho=Qs[0],gs=Qs[1],Qe.uniform2f(L.location,ho,gs),Vo=Fi.thickness,Qe.uniform1f(_.location,Vo),Do=Fi.translate,Lo=Do[0],xs=Do[1],Qe.uniform2f(C.location,Lo,xs),ks=Fi.translateFract,Ea=ks[0],Jn=ks[1],Qe.uniform2f(S.location,Ea,Jn),Oo=P.call(this,zt,Fi,0),rl=Oo[0],Gs=Oo[1],bs=Oo[2],zs=Oo[3],Qe.uniform4f(m.location,rl,Gs,bs,zs),$o=_r.elements,$o?Qe.bindBuffer(34963,$o.buffer.buffer):Ie.currentVAO&&($o=Ht.getElements(Ie.currentVAO.elements),$o&&Qe.bindBuffer(34963,$o.buffer.buffer)),Aa=Fi.count,Aa>0?$o?ma.drawElementsInstancedANGLE(5,4,$o.type,0<<($o.type-5121>>1),Aa):ma.drawArraysInstancedANGLE(5,0,4,Aa):Aa<0&&($o?Qe.drawElements(5,4,$o.type,0<<($o.type-5121>>1)):Qe.drawArrays(5,0,4)),mr.dirty=!0,Ie.setVAO(null),zt.viewportWidth=gr,zt.viewportHeight=Zr,Un&&(r.cpuTime+=performance.now()-Ga),ka&&Re.destroyStream(kn),Co&&Re.destroyStream(Sn),vo&&Re.destroyStream(jn),wo&&Re.destroyStream(qn),yo&&Re.destroyStream(Ca),$s.unbind()},scope:function(Fi,Ri,xn){var xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,Tt,Vt,wr,yr,Fr,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Ul,le,w,q,Q,ee,ue,Ve,et,yt,Dt,ir,or,kr,Vr,he,Se,qe,Ge,lt,tt,vt,Gt;xi=Fi.viewport,Xr=xi.x|0,ft=xi.y|0,tr="width"in xi?xi.width|0:zt.framebufferWidth-Xr,pr="height"in xi?xi.height|0:zt.framebufferHeight-ft,gr=zt.viewportWidth,zt.viewportWidth=tr,Zr=zt.viewportHeight,zt.viewportHeight=pr,Ai=Ur[0],Ur[0]=Xr,Qi=Ur[1],Ur[1]=ft,ni=Ur[2],Ur[2]=tr,Zi=Ur[3],Ur[3]=pr,aa=mt[0],mt[0]=A,Mn=mt[1],mt[1]=B,Un=mt[2],mt[2]=F,Ga=mt[3],mt[3]=U,ma=lr.blend_enable,lr.blend_enable=G,oa=Pt[0],Pt[0]=j,ka=Pt[1],Pt[1]=H,so=Wr[0],Wr[0]=N,Kr=Wr[1],Wr[1]=W,Ia=Wr[2],Wr[2]=re,Yo=Wr[3],Wr[3]=ae,fa=i.call(this,zt,Fi,xn),kn=lr.depth_enable,lr.depth_enable=fa,Ta=Fi.viewport,ys=Ta.x|0,uo=Ta.y|0,ls="width"in Ta?Ta.width|0:zt.framebufferWidth-ys,$a="height"in Ta?Ta.height|0:zt.framebufferHeight-uo,fo=xr[0],xr[0]=ys,mn=xr[1],xr[1]=uo,ra=xr[2],xr[2]=ls,wa=xr[3],xr[3]=$a,ws=lr.scissor_enable,lr.scissor_enable=be,Co=lr.stencil_enable,lr.stencil_enable=Pe,Po=mr.profile,Po&&(ji=performance.now(),r.count++),gn=_r.offset,_r.offset=Ce,Ps=_r.count,_r.count=de,Ha=Fi.count,Sn=_r.instances,_r.instances=Ha,ao=_r.primitive,_r.primitive=te,Ba=ke.call(this,zt,Fi,xn),Ko=De[Ee],De[Ee]=Ba,Qo=Fi.miterLimit,Wi=De[Me],De[Me]=Qo,Sa=Fi.scale,Qa=De[Ue],De[Ue]=Sa,vn=Fi.scaleFract,da=De[Fe],De[Fe]=vn,la=Fi.translateFract,vo=De[me],De[me]=la,As=Fi.translate,ps=De[Ne],De[Ne]=As,co=Fi.thickness,mo=De[ce],De[ce]=co,No=Fi.dashTexture,jn=De[Ke],De[Ke]=No,Go=Fi.opacity,Ys=De[it],De[it]=Go,qs=zt.pixelRatio,Ns=De[bt],De[bt]=qs,Oa=Fi.id,ha=De[Nt],De[Nt]=Oa,Vs=Fi.dashLength,Ya=De[nt],De[nt]=Vs,_n=P.call(this,zt,Fi,xn),Vn=De[Ye],De[Ye]=_n,wo=Fi.depth,Ra=De[kt],De[kt]=wo,Xn=At.state,At.state=1,un=At.x,At.x=0,$n=At.y,At.y=0,Ka=At.z,At.z=0,qn=At.w,At.w=0,Eo=At.buffer,At.buffer=d,Ja=At.size,At.size=0,lo=At.normalized,At.normalized=!1,eo=At.type,At.type=5126,sa=At.offset,At.offset=0,es=At.stride,At.stride=8,Na=At.divisor,At.divisor=0,tn=St.state,St.state=1,Pa=St.x,St.x=0,to=St.y,St.y=0,yo=St.z,St.z=0,Jo=St.w,St.w=0,Ao=St.buffer,St.buffer=d,Dn=St.size,St.size=0,_a=St.normalized,St.normalized=!1,Ws=St.type,St.type=5126,Ca=St.offset,St.offset=4,Es=St.stride,St.stride=8,Ts=St.divisor,St.divisor=0,Ho=Fi.positionBuffer,Yr.buffer=Ho,Wa=!1,To=1,ts=0,Wo=0,qa=0,ln=0,Bo=null,ko=0,oo=!1,za=5126,ea=0,rs=0,$s=0,pe(Yr)?(Wa=!0,Bo=Re.createStream(34962,Yr),za=Bo.dtype):(Bo=Re.getBuffer(Yr),Bo?za=Bo.dtype:"constant"in Yr?(To=2,typeof Yr.constant=="number"?(ts=Yr.constant,Wo=qa=ln=0):(ts=Yr.constant.length>0?Yr.constant[0]:0,Wo=Yr.constant.length>1?Yr.constant[1]:0,qa=Yr.constant.length>2?Yr.constant[2]:0,ln=Yr.constant.length>3?Yr.constant[3]:0)):(pe(Yr.buffer)?Bo=Re.createStream(34962,Yr.buffer):Bo=Re.getBuffer(Yr.buffer),za="type"in Yr?ti[Yr.type]:Bo.dtype,oo=!!Yr.normalized,ko=Yr.size|0,ea=Yr.offset|0,rs=Yr.stride|0,$s=Yr.divisor|0)),us=Bt.state,Bt.state=To,Ds=Bt.x,Bt.x=ts,fl=Bt.y,Bt.y=Wo,as=Bt.z,Bt.z=qa,Ma=Bt.w,Bt.w=ln,Qs=Bt.buffer,Bt.buffer=Bo,ho=Bt.size,Bt.size=ko,gs=Bt.normalized,Bt.normalized=oo,Vo=Bt.type,Bt.type=za,Do=Bt.offset,Bt.offset=ea,Lo=Bt.stride,Bt.stride=rs,xs=Bt.divisor,Bt.divisor=$s,ks=Fi.positionBuffer,oi.buffer=ks,Ea=!1,Jn=1,Oo=0,rl=0,Gs=0,bs=0,zs=null,$o=0,Aa=!1,os=5126,_l=0,Ss=0,po=0,pe(oi)?(Ea=!0,zs=Re.createStream(34962,oi),os=zs.dtype):(zs=Re.getBuffer(oi),zs?os=zs.dtype:"constant"in oi?(Jn=2,typeof oi.constant=="number"?(Oo=oi.constant,rl=Gs=bs=0):(Oo=oi.constant.length>0?oi.constant[0]:0,rl=oi.constant.length>1?oi.constant[1]:0,Gs=oi.constant.length>2?oi.constant[2]:0,bs=oi.constant.length>3?oi.constant[3]:0)):(pe(oi.buffer)?zs=Re.createStream(34962,oi.buffer):zs=Re.getBuffer(oi.buffer),os="type"in oi?ti[oi.type]:zs.dtype,Aa=!!oi.normalized,$o=oi.size|0,_l=oi.offset|0,Ss=oi.stride|0,po=oi.divisor|0)),go=Zt.state,Zt.state=Jn,ss=Zt.x,Zt.x=Oo,qo=Zt.y,Zt.y=rl,zo=Zt.z,Zt.z=Gs,io=Zt.w,Zt.w=bs,Io=Zt.buffer,Zt.buffer=zs,Da=Zt.size,Zt.size=$o,vs=Zt.normalized,Zt.normalized=Aa,fs=Zt.type,Zt.type=os,cl=Zt.offset,Zt.offset=_l,el=Zt.stride,Zt.stride=Ss,Hs=Zt.divisor,Zt.divisor=po,Ro=Fi.positionFractBuffer,Bi.buffer=Ro,tl=!1,Fs=1,hl=0,Fa=0,Ms=0,jo=0,Rs=null,Is=0,Bs=!1,Tt=5126,Vt=0,wr=0,yr=0,pe(Bi)?(tl=!0,Rs=Re.createStream(34962,Bi),Tt=Rs.dtype):(Rs=Re.getBuffer(Bi),Rs?Tt=Rs.dtype:"constant"in Bi?(Fs=2,typeof Bi.constant=="number"?(hl=Bi.constant,Fa=Ms=jo=0):(hl=Bi.constant.length>0?Bi.constant[0]:0,Fa=Bi.constant.length>1?Bi.constant[1]:0,Ms=Bi.constant.length>2?Bi.constant[2]:0,jo=Bi.constant.length>3?Bi.constant[3]:0)):(pe(Bi.buffer)?Rs=Re.createStream(34962,Bi.buffer):Rs=Re.getBuffer(Bi.buffer),Tt="type"in Bi?ti[Bi.type]:Rs.dtype,Bs=!!Bi.normalized,Is=Bi.size|0,Vt=Bi.offset|0,wr=Bi.stride|0,yr=Bi.divisor|0)),Fr=Et.state,Et.state=Fs,gi=Et.x,Et.x=hl,Ti=Et.y,Et.y=Fa,ki=Et.z,Et.z=Ms,Ji=Et.w,Et.w=jo,Fn=Et.buffer,Et.buffer=Rs,Pi=Et.size,Et.size=Is,hi=Et.normalized,Et.normalized=Bs,Li=Et.type,Et.type=Tt,Si=Et.offset,Et.offset=Vt,Gn=Et.stride,Et.stride=wr,ta=Et.divisor,Et.divisor=yr,ya=Fi.positionFractBuffer,an.buffer=ya,ia=!1,pa=1,va=0,zn=0,is=0,Cs=0,Ks=null,dl=0,xl=!1,Ol=5126,bl=0,eu=0,Zl=0,pe(an)?(ia=!0,Ks=Re.createStream(34962,an),Ol=Ks.dtype):(Ks=Re.getBuffer(an),Ks?Ol=Ks.dtype:"constant"in an?(pa=2,typeof an.constant=="number"?(va=an.constant,zn=is=Cs=0):(va=an.constant.length>0?an.constant[0]:0,zn=an.constant.length>1?an.constant[1]:0,is=an.constant.length>2?an.constant[2]:0,Cs=an.constant.length>3?an.constant[3]:0)):(pe(an.buffer)?Ks=Re.createStream(34962,an.buffer):Ks=Re.getBuffer(an.buffer),Ol="type"in an?ti[an.type]:Ks.dtype,xl=!!an.normalized,dl=an.size|0,bl=an.offset|0,eu=an.stride|0,Zl=an.divisor|0)),Vl=Ae.state,Ae.state=pa,ja=Ae.x,Ae.x=va,ns=Ae.y,Ae.y=zn,Js=Ae.z,Ae.z=is,cs=Ae.w,Ae.w=Cs,sl=Ae.buffer,Ae.buffer=Ks,ll=Ae.size,Ae.size=dl,il=Ae.normalized,Ae.normalized=xl,zl=Ae.type,Ae.type=Ol,Ml=Ae.offset,Ae.offset=bl,Rl=Ae.stride,Ae.stride=eu,Al=Ae.divisor,Ae.divisor=Zl,Ll=Fi.colorBuffer,rn.buffer=Ll,ms=!1,Os=1,Xl=0,Gl=0,Ul=0,le=0,w=null,q=0,Q=!1,ee=5126,ue=0,Ve=0,et=0,pe(rn)?(ms=!0,w=Re.createStream(34962,rn),ee=w.dtype):(w=Re.getBuffer(rn),w?ee=w.dtype:"constant"in rn?(Os=2,typeof rn.constant=="number"?(Xl=rn.constant,Gl=Ul=le=0):(Xl=rn.constant.length>0?rn.constant[0]:0,Gl=rn.constant.length>1?rn.constant[1]:0,Ul=rn.constant.length>2?rn.constant[2]:0,le=rn.constant.length>3?rn.constant[3]:0)):(pe(rn.buffer)?w=Re.createStream(34962,rn.buffer):w=Re.getBuffer(rn.buffer),ee="type"in rn?ti[rn.type]:w.dtype,Q=!!rn.normalized,q=rn.size|0,ue=rn.offset|0,Ve=rn.stride|0,et=rn.divisor|0)),yt=ot.state,ot.state=Os,Dt=ot.x,ot.x=Xl,ir=ot.y,ot.y=Gl,or=ot.z,ot.z=Ul,kr=ot.w,ot.w=le,Vr=ot.buffer,ot.buffer=w,he=ot.size,ot.size=q,Se=ot.normalized,ot.normalized=Q,qe=ot.type,ot.type=ee,Ge=ot.offset,ot.offset=ue,lt=ot.stride,ot.stride=Ve,tt=ot.divisor,ot.divisor=et,vt=xe.vert,xe.vert=dt,Gt=xe.frag,xe.frag=pt,mr.dirty=!0,Ri(zt,Fi,xn),zt.viewportWidth=gr,zt.viewportHeight=Zr,Ur[0]=Ai,Ur[1]=Qi,Ur[2]=ni,Ur[3]=Zi,mt[0]=aa,mt[1]=Mn,mt[2]=Un,mt[3]=Ga,lr.blend_enable=ma,Pt[0]=oa,Pt[1]=ka,Wr[0]=so,Wr[1]=Kr,Wr[2]=Ia,Wr[3]=Yo,lr.depth_enable=kn,xr[0]=fo,xr[1]=mn,xr[2]=ra,xr[3]=wa,lr.scissor_enable=ws,lr.stencil_enable=Co,Po&&(r.cpuTime+=performance.now()-ji),_r.offset=gn,_r.count=Ps,_r.instances=Sn,_r.primitive=ao,De[Ee]=Ko,De[Me]=Wi,De[Ue]=Qa,De[Fe]=da,De[me]=vo,De[Ne]=ps,De[ce]=mo,De[Ke]=jn,De[it]=Ys,De[bt]=Ns,De[Nt]=ha,De[nt]=Ya,De[Ye]=Vn,De[kt]=Ra,At.state=Xn,At.x=un,At.y=$n,At.z=Ka,At.w=qn,At.buffer=Eo,At.size=Ja,At.normalized=lo,At.type=eo,At.offset=sa,At.stride=es,At.divisor=Na,St.state=tn,St.x=Pa,St.y=to,St.z=yo,St.w=Jo,St.buffer=Ao,St.size=Dn,St.normalized=_a,St.type=Ws,St.offset=Ca,St.stride=Es,St.divisor=Ts,Wa&&Re.destroyStream(Bo),Bt.state=us,Bt.x=Ds,Bt.y=fl,Bt.z=as,Bt.w=Ma,Bt.buffer=Qs,Bt.size=ho,Bt.normalized=gs,Bt.type=Vo,Bt.offset=Do,Bt.stride=Lo,Bt.divisor=xs,Ea&&Re.destroyStream(zs),Zt.state=go,Zt.x=ss,Zt.y=qo,Zt.z=zo,Zt.w=io,Zt.buffer=Io,Zt.size=Da,Zt.normalized=vs,Zt.type=fs,Zt.offset=cl,Zt.stride=el,Zt.divisor=Hs,tl&&Re.destroyStream(Rs),Et.state=Fr,Et.x=gi,Et.y=Ti,Et.z=ki,Et.w=Ji,Et.buffer=Fn,Et.size=Pi,Et.normalized=hi,Et.type=Li,Et.offset=Si,Et.stride=Gn,Et.divisor=ta,ia&&Re.destroyStream(Ks),Ae.state=Vl,Ae.x=ja,Ae.y=ns,Ae.z=Js,Ae.w=cs,Ae.buffer=sl,Ae.size=ll,Ae.normalized=il,Ae.type=zl,Ae.offset=Ml,Ae.stride=Rl,Ae.divisor=Al,ms&&Re.destroyStream(w),ot.state=yt,ot.x=Dt,ot.y=ir,ot.z=or,ot.w=kr,ot.buffer=Vr,ot.size=he,ot.normalized=Se,ot.type=qe,ot.offset=Ge,ot.stride=lt,ot.divisor=tt,xe.vert=vt,xe.frag=Gt,mr.dirty=!0},batch:function(Fi,Ri){var xn,xi,Xr,ft,tr,pr,gr;if(xn=_e.angle_instanced_arrays,xi=ct.next,xi!==ct.cur&&(xi?Qe.bindFramebuffer(36160,xi.framebuffer):Qe.bindFramebuffer(36160,null),ct.cur=xi),mr.dirty){var Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn;Zr=lr.dither,Zr!==mr.dither&&(Zr?Qe.enable(3024):Qe.disable(3024),mr.dither=Zr),Ai=lr.depth_func,Ai!==mr.depth_func&&(Qe.depthFunc(Ai),mr.depth_func=Ai),Qi=Er[0],ni=Er[1],(Qi!==Br[0]||ni!==Br[1])&&(Qe.depthRange(Qi,ni),Br[0]=Qi,Br[1]=ni),Zi=lr.depth_mask,Zi!==mr.depth_mask&&(Qe.depthMask(Zi),mr.depth_mask=Zi),aa=mi[0],Mn=mi[1],Un=mi[2],Ga=mi[3],(aa!==Di[0]||Mn!==Di[1]||Un!==Di[2]||Ga!==Di[3])&&(Qe.colorMask(aa,Mn,Un,Ga),Di[0]=aa,Di[1]=Mn,Di[2]=Un,Di[3]=Ga),ma=lr.cull_enable,ma!==mr.cull_enable&&(ma?Qe.enable(2884):Qe.disable(2884),mr.cull_enable=ma),oa=lr.cull_face,oa!==mr.cull_face&&(Qe.cullFace(oa),mr.cull_face=oa),ka=lr.frontFace,ka!==mr.frontFace&&(Qe.frontFace(ka),mr.frontFace=ka),so=lr.lineWidth,so!==mr.lineWidth&&(Qe.lineWidth(so),mr.lineWidth=so),Kr=lr.polygonOffset_enable,Kr!==mr.polygonOffset_enable&&(Kr?Qe.enable(32823):Qe.disable(32823),mr.polygonOffset_enable=Kr),Ia=Ii[0],Yo=Ii[1],(Ia!==Ci[0]||Yo!==Ci[1])&&(Qe.polygonOffset(Ia,Yo),Ci[0]=Ia,Ci[1]=Yo),fa=lr.sample_alpha,fa!==mr.sample_alpha&&(fa?Qe.enable(32926):Qe.disable(32926),mr.sample_alpha=fa),kn=lr.sample_enable,kn!==mr.sample_enable&&(kn?Qe.enable(32928):Qe.disable(32928),mr.sample_enable=kn),Ta=nn[0],ys=nn[1],(Ta!==ii[0]||ys!==ii[1])&&(Qe.sampleCoverage(Ta,ys),ii[0]=Ta,ii[1]=ys),uo=lr.stencil_mask,uo!==mr.stencil_mask&&(Qe.stencilMask(uo),mr.stencil_mask=uo),ls=wi[0],$a=wi[1],fo=wi[2],(ls!==Gi[0]||$a!==Gi[1]||fo!==Gi[2])&&(Qe.stencilFunc(ls,$a,fo),Gi[0]=ls,Gi[1]=$a,Gi[2]=fo),mn=Ft[0],ra=Ft[1],wa=Ft[2],ws=Ft[3],(mn!==gt[0]||ra!==gt[1]||wa!==gt[2]||ws!==gt[3])&&(Qe.stencilOpSeparate(mn,ra,wa,ws),gt[0]=mn,gt[1]=ra,gt[2]=wa,gt[3]=ws),Co=Ut[0],Po=Ut[1],ji=Ut[2],gn=Ut[3],(Co!==Wt[0]||Po!==Wt[1]||ji!==Wt[2]||gn!==Wt[3])&&(Qe.stencilOpSeparate(Co,Po,ji,gn),Wt[0]=Co,Wt[1]=Po,Wt[2]=ji,Wt[3]=gn)}Qe.blendColor(0,0,0,0),It[0]=0,It[1]=0,It[2]=0,It[3]=0,at?Qe.enable(3042):Qe.disable(3042),mr.blend_enable=at,Qe.blendEquationSeparate(32774,32774),rr[0]=32774,rr[1]=32774,Qe.blendFuncSeparate(770,771,773,1),Nr[0]=770,Nr[1]=771,Nr[2]=773,Nr[3]=1,Xe?Qe.enable(3089):Qe.disable(3089),mr.scissor_enable=Xe,rt?Qe.enable(2960):Qe.disable(2960),mr.stencil_enable=rt,Xr=mr.profile,Xr&&(ft=performance.now(),r.count+=Ri),Qe.useProgram(s.program),tr=_e.angle_instanced_arrays;var Ps,Ha,Sn,ao,Ba;for(Ie.setVAO(null),Ps=p.location,Ha=Oe[Ps],Ha.buffer||Qe.enableVertexAttribArray(Ps),(Ha.type!==5126||Ha.size!==1||Ha.buffer!==d||Ha.normalized!==!1||Ha.offset!==0||Ha.stride!==8)&&(Qe.bindBuffer(34962,d.buffer),Qe.vertexAttribPointer(Ps,1,5126,!1,8,0),Ha.type=5126,Ha.size=1,Ha.buffer=d,Ha.normalized=!1,Ha.offset=0,Ha.stride=8),Ha.divisor!==0&&(tr.vertexAttribDivisorANGLE(Ps,0),Ha.divisor=0),Sn=x.location,ao=Oe[Sn],ao.buffer||Qe.enableVertexAttribArray(Sn),(ao.type!==5126||ao.size!==1||ao.buffer!==d||ao.normalized!==!1||ao.offset!==4||ao.stride!==8)&&(Qe.bindBuffer(34962,d.buffer),Qe.vertexAttribPointer(Sn,1,5126,!1,8,4),ao.type=5126,ao.size=1,ao.buffer=d,ao.normalized=!1,ao.offset=4,ao.stride=8),ao.divisor!==0&&(tr.vertexAttribDivisorANGLE(Sn,0),ao.divisor=0),Ba=_r.elements,Ba?Qe.bindBuffer(34963,Ba.buffer.buffer):Ie.currentVAO&&(Ba=Ht.getElements(Ie.currentVAO.elements),Ba&&Qe.bindBuffer(34963,Ba.buffer.buffer)),pr=0;pr0?Yr.constant[0]:0,qs=Yr.constant.length>1?Yr.constant[1]:0,Ns=Yr.constant.length>2?Yr.constant[2]:0,Oa=Yr.constant.length>3?Yr.constant[3]:0)):(pe(Yr.buffer)?ha=Re.createStream(34962,Yr.buffer):ha=Re.getBuffer(Yr.buffer),_n="type"in Yr?ti[Yr.type]:ha.dtype,Ya=!!Yr.normalized,Vs=Yr.size|0,Vn=Yr.offset|0,wo=Yr.stride|0,Ra=Yr.divisor|0)),Xn=u.location,un=Oe[Xn],Go===1?(un.buffer||Qe.enableVertexAttribArray(Xn),$n=Vs||2,(un.type!==_n||un.size!==$n||un.buffer!==ha||un.normalized!==Ya||un.offset!==Vn||un.stride!==wo)&&(Qe.bindBuffer(34962,ha.buffer),Qe.vertexAttribPointer(Xn,$n,_n,Ya,wo,Vn),un.type=_n,un.size=$n,un.buffer=ha,un.normalized=Ya,un.offset=Vn,un.stride=wo),un.divisor!==Ra&&(tr.vertexAttribDivisorANGLE(Xn,Ra),un.divisor=Ra)):(un.buffer&&(Qe.disableVertexAttribArray(Xn),un.buffer=null),(un.x!==Ys||un.y!==qs||un.z!==Ns||un.w!==Oa)&&(Qe.vertexAttrib4f(Xn,Ys,qs,Ns,Oa),un.x=Ys,un.y=qs,un.z=Ns,un.w=Oa)),Ka=gr.positionFractBuffer,Bi.buffer=Ka,qn=!1,Eo=1,Ja=0,lo=0,eo=0,sa=0,es=null,Na=0,tn=!1,Pa=5126,to=0,yo=0,Jo=0,pe(Bi)?(qn=!0,es=Re.createStream(34962,Bi),Pa=es.dtype):(es=Re.getBuffer(Bi),es?Pa=es.dtype:"constant"in Bi?(Eo=2,typeof Bi.constant=="number"?(Ja=Bi.constant,lo=eo=sa=0):(Ja=Bi.constant.length>0?Bi.constant[0]:0,lo=Bi.constant.length>1?Bi.constant[1]:0,eo=Bi.constant.length>2?Bi.constant[2]:0,sa=Bi.constant.length>3?Bi.constant[3]:0)):(pe(Bi.buffer)?es=Re.createStream(34962,Bi.buffer):es=Re.getBuffer(Bi.buffer),Pa="type"in Bi?ti[Bi.type]:es.dtype,tn=!!Bi.normalized,Na=Bi.size|0,to=Bi.offset|0,yo=Bi.stride|0,Jo=Bi.divisor|0)),Ao=l.location,Dn=Oe[Ao],Eo===1?(Dn.buffer||Qe.enableVertexAttribArray(Ao),_a=Na||2,(Dn.type!==Pa||Dn.size!==_a||Dn.buffer!==es||Dn.normalized!==tn||Dn.offset!==to||Dn.stride!==yo)&&(Qe.bindBuffer(34962,es.buffer),Qe.vertexAttribPointer(Ao,_a,Pa,tn,yo,to),Dn.type=Pa,Dn.size=_a,Dn.buffer=es,Dn.normalized=tn,Dn.offset=to,Dn.stride=yo),Dn.divisor!==Jo&&(tr.vertexAttribDivisorANGLE(Ao,Jo),Dn.divisor=Jo)):(Dn.buffer&&(Qe.disableVertexAttribArray(Ao),Dn.buffer=null),(Dn.x!==Ja||Dn.y!==lo||Dn.z!==eo||Dn.w!==sa)&&(Qe.vertexAttrib4f(Ao,Ja,lo,eo,sa),Dn.x=Ja,Dn.y=lo,Dn.z=eo,Dn.w=sa)),Ws=gr.positionBuffer,oi.buffer=Ws,Ca=!1,Es=1,Ts=0,Ho=0,Wa=0,To=0,ts=null,Wo=0,qa=!1,ln=5126,Bo=0,ko=0,oo=0,pe(oi)?(Ca=!0,ts=Re.createStream(34962,oi),ln=ts.dtype):(ts=Re.getBuffer(oi),ts?ln=ts.dtype:"constant"in oi?(Es=2,typeof oi.constant=="number"?(Ts=oi.constant,Ho=Wa=To=0):(Ts=oi.constant.length>0?oi.constant[0]:0,Ho=oi.constant.length>1?oi.constant[1]:0,Wa=oi.constant.length>2?oi.constant[2]:0,To=oi.constant.length>3?oi.constant[3]:0)):(pe(oi.buffer)?ts=Re.createStream(34962,oi.buffer):ts=Re.getBuffer(oi.buffer),ln="type"in oi?ti[oi.type]:ts.dtype,qa=!!oi.normalized,Wo=oi.size|0,Bo=oi.offset|0,ko=oi.stride|0,oo=oi.divisor|0)),za=f.location,ea=Oe[za],Es===1?(ea.buffer||Qe.enableVertexAttribArray(za),rs=Wo||2,(ea.type!==ln||ea.size!==rs||ea.buffer!==ts||ea.normalized!==qa||ea.offset!==Bo||ea.stride!==ko)&&(Qe.bindBuffer(34962,ts.buffer),Qe.vertexAttribPointer(za,rs,ln,qa,ko,Bo),ea.type=ln,ea.size=rs,ea.buffer=ts,ea.normalized=qa,ea.offset=Bo,ea.stride=ko),ea.divisor!==oo&&(tr.vertexAttribDivisorANGLE(za,oo),ea.divisor=oo)):(ea.buffer&&(Qe.disableVertexAttribArray(za),ea.buffer=null),(ea.x!==Ts||ea.y!==Ho||ea.z!==Wa||ea.w!==To)&&(Qe.vertexAttrib4f(za,Ts,Ho,Wa,To),ea.x=Ts,ea.y=Ho,ea.z=Wa,ea.w=To)),$s=gr.positionFractBuffer,an.buffer=$s,us=!1,Ds=1,fl=0,as=0,Ma=0,Qs=0,ho=null,gs=0,Vo=!1,Do=5126,Lo=0,xs=0,ks=0,pe(an)?(us=!0,ho=Re.createStream(34962,an),Do=ho.dtype):(ho=Re.getBuffer(an),ho?Do=ho.dtype:"constant"in an?(Ds=2,typeof an.constant=="number"?(fl=an.constant,as=Ma=Qs=0):(fl=an.constant.length>0?an.constant[0]:0,as=an.constant.length>1?an.constant[1]:0,Ma=an.constant.length>2?an.constant[2]:0,Qs=an.constant.length>3?an.constant[3]:0)):(pe(an.buffer)?ho=Re.createStream(34962,an.buffer):ho=Re.getBuffer(an.buffer),Do="type"in an?ti[an.type]:ho.dtype,Vo=!!an.normalized,gs=an.size|0,Lo=an.offset|0,xs=an.stride|0,ks=an.divisor|0)),Ea=c.location,Jn=Oe[Ea],Ds===1?(Jn.buffer||Qe.enableVertexAttribArray(Ea),Oo=gs||2,(Jn.type!==Do||Jn.size!==Oo||Jn.buffer!==ho||Jn.normalized!==Vo||Jn.offset!==Lo||Jn.stride!==xs)&&(Qe.bindBuffer(34962,ho.buffer),Qe.vertexAttribPointer(Ea,Oo,Do,Vo,xs,Lo),Jn.type=Do,Jn.size=Oo,Jn.buffer=ho,Jn.normalized=Vo,Jn.offset=Lo,Jn.stride=xs),Jn.divisor!==ks&&(tr.vertexAttribDivisorANGLE(Ea,ks),Jn.divisor=ks)):(Jn.buffer&&(Qe.disableVertexAttribArray(Ea),Jn.buffer=null),(Jn.x!==fl||Jn.y!==as||Jn.z!==Ma||Jn.w!==Qs)&&(Qe.vertexAttrib4f(Ea,fl,as,Ma,Qs),Jn.x=fl,Jn.y=as,Jn.z=Ma,Jn.w=Qs)),rl=gr.colorBuffer,rn.buffer=rl,Gs=!1,bs=1,zs=0,$o=0,Aa=0,os=0,_l=null,Ss=0,po=!1,go=5126,ss=0,qo=0,zo=0,pe(rn)?(Gs=!0,_l=Re.createStream(34962,rn),go=_l.dtype):(_l=Re.getBuffer(rn),_l?go=_l.dtype:"constant"in rn?(bs=2,typeof rn.constant=="number"?(zs=rn.constant,$o=Aa=os=0):(zs=rn.constant.length>0?rn.constant[0]:0,$o=rn.constant.length>1?rn.constant[1]:0,Aa=rn.constant.length>2?rn.constant[2]:0,os=rn.constant.length>3?rn.constant[3]:0)):(pe(rn.buffer)?_l=Re.createStream(34962,rn.buffer):_l=Re.getBuffer(rn.buffer),go="type"in rn?ti[rn.type]:_l.dtype,po=!!rn.normalized,Ss=rn.size|0,ss=rn.offset|0,qo=rn.stride|0,zo=rn.divisor|0)),io=h.location,Io=Oe[io],bs===1?(Io.buffer||Qe.enableVertexAttribArray(io),Da=Ss||4,(Io.type!==go||Io.size!==Da||Io.buffer!==_l||Io.normalized!==po||Io.offset!==ss||Io.stride!==qo)&&(Qe.bindBuffer(34962,_l.buffer),Qe.vertexAttribPointer(io,Da,go,po,qo,ss),Io.type=go,Io.size=Da,Io.buffer=_l,Io.normalized=po,Io.offset=ss,Io.stride=qo),Io.divisor!==zo&&(tr.vertexAttribDivisorANGLE(io,zo),Io.divisor=zo)):(Io.buffer&&(Qe.disableVertexAttribArray(io),Io.buffer=null),(Io.x!==zs||Io.y!==$o||Io.z!==Aa||Io.w!==os)&&(Qe.vertexAttrib4f(io,zs,$o,Aa,os),Io.x=zs,Io.y=$o,Io.z=Aa,Io.w=os)),vs=gr.dashLength,(!pr||fs!==vs)&&(fs=vs,Qe.uniform1f(b.location,vs)),cl=gr.dashTexture,cl&&cl._reglType==="framebuffer"&&(cl=cl.color[0]),el=cl._texture,Qe.uniform1i(v.location,el.bind()),Hs=gr.depth,(!pr||Ro!==Hs)&&(Ro=Hs,Qe.uniform1f(k.location,Hs)),tl=gr.opacity,(!pr||Fs!==tl)&&(Fs=tl,Qe.uniform1f(E.location,tl)),hl=gr.scale,Fa=hl[0],jo=hl[1],(!pr||Ms!==Fa||Rs!==jo)&&(Ms=Fa,Rs=jo,Qe.uniform2f(T.location,Fa,jo)),Is=gr.scaleFract,Bs=Is[0],Vt=Is[1],(!pr||Tt!==Bs||wr!==Vt)&&(Tt=Bs,wr=Vt,Qe.uniform2f(L.location,Bs,Vt)),yr=gr.thickness,(!pr||Fr!==yr)&&(Fr=yr,Qe.uniform1f(_.location,yr)),gi=gr.translate,Ti=gi[0],Ji=gi[1],(!pr||ki!==Ti||Fn!==Ji)&&(ki=Ti,Fn=Ji,Qe.uniform2f(C.location,Ti,Ji)),Pi=gr.translateFract,hi=Pi[0],Si=Pi[1],(!pr||Li!==hi||Gn!==Si)&&(Li=hi,Gn=Si,Qe.uniform2f(S.location,hi,Si)),ta=P.call(this,zt,gr,pr),ya=ta[0],pa=ta[1],zn=ta[2],Cs=ta[3],(!pr||ia!==ya||va!==pa||is!==zn||Ks!==Cs)&&(ia=ya,va=pa,is=zn,Ks=Cs,Qe.uniform4f(m.location,ya,pa,zn,Cs)),dl=gr.count,dl>0?Ba?tr.drawElementsInstancedANGLE(5,4,Ba.type,0<<(Ba.type-5121>>1),dl):tr.drawArraysInstancedANGLE(5,0,4,dl):dl<0&&(Ba?Qe.drawElements(5,4,Ba.type,0<<(Ba.type-5121>>1)):Qe.drawArrays(5,0,4)),zt.viewportWidth=vn,zt.viewportHeight=da,jn&&Re.destroyStream(ha),qn&&Re.destroyStream(es),Ca&&Re.destroyStream(ts),us&&Re.destroyStream(ho),Gs&&Re.destroyStream(_l),el.unbind()}mr.dirty=!0,Ie.setVAO(null),Xr&&(r.cpuTime+=performance.now()-ft)}}}});var E8=Te((q_r,INe)=>{INe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ue,Fe,me,Ne,ce,Ke,it,bt,Nt,nt,Ye,kt,At,St,Bt,Zt,Et,Ae,ot,dt,pt,at,Xe,rt,Qe,zt,Yt,lr,mr,_r,Ht,Re){"use strict";var xe,Oe,Ie,De,ct,_e,fe,pe,mt,It,Pt,rr,Wr,Nr,Er,Br,mi,Di,Ii,Ci,nn,ii,wi,Gi,Ft,gt,Ut,Wt,xr,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr;return xe=t.gl,Oe=t.context,Ie=t.strings,De=t.next,ct=t.current,_e=t.draw,fe=t.elements,pe=t.buffer,mt=t.shader,It=t.attributes,Pt=t.vao,rr=t.uniforms,Wr=t.framebuffer,Nr=t.extensions,Er=t.timer,Br=t.isBufferArgs,mi=De.blend_color,Di=ct.blend_color,Ii=De.blend_equation,Ci=ct.blend_equation,nn=De.blend_func,ii=ct.blend_func,wi=De.depth_range,Gi=ct.depth_range,Ft=De.colorMask,gt=ct.colorMask,Ut=De.polygonOffset_offset,Wt=ct.polygonOffset_offset,xr=De.sample_coverage,Lr=ct.sample_coverage,Ur=De.stencil_func,Ir=ct.stencil_func,Gr=De.stencil_opFront,jr=ct.stencil_opFront,yi=De.stencil_opBack,Ei=ct.stencil_opBack,Vi=De.scissor_box,ti=ct.scissor_box,en=De.viewport,Yr=ct.viewport,oi={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Bi={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},an={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},rn={add:32774,subtract:32778,"reverse subtract":32779},Fi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ri={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},xn={cw:2304,ccw:2305},xi={},xi.stride=4,xi.offset=0,xi.divisor=1,Xr={},Xr.stride=4,Xr.offset=4,Xr.divisor=1,ft={},ft.stride=8,ft.offset=0,ft.divisor=1,tr={},tr.stride=8,tr.offset=8,tr.divisor=1,pr={},pr.stride=8,pr.offset=16,pr.divisor=1,gr={},gr.stride=8,gr.offset=24,gr.divisor=1,{draw:function(Zr){var Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms;if(Ai=Nr.angle_instanced_arrays,Qi=Wr.next,Qi!==Wr.cur&&(Qi?xe.bindFramebuffer(36160,Qi.framebuffer):xe.bindFramebuffer(36160,null),Wr.cur=Qi),ct.dirty){var jo,Rs,Is,Bs,Tt,Vt,wr,yr,Fr,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl;jo=De.dither,jo!==ct.dither&&(jo?xe.enable(3024):xe.disable(3024),ct.dither=jo),Rs=De.depth_func,Rs!==ct.depth_func&&(xe.depthFunc(Rs),ct.depth_func=Rs),Is=wi[0],Bs=wi[1],(Is!==Gi[0]||Bs!==Gi[1])&&(xe.depthRange(Is,Bs),Gi[0]=Is,Gi[1]=Bs),Tt=De.depth_mask,Tt!==ct.depth_mask&&(xe.depthMask(Tt),ct.depth_mask=Tt),Vt=Ft[0],wr=Ft[1],yr=Ft[2],Fr=Ft[3],(Vt!==gt[0]||wr!==gt[1]||yr!==gt[2]||Fr!==gt[3])&&(xe.colorMask(Vt,wr,yr,Fr),gt[0]=Vt,gt[1]=wr,gt[2]=yr,gt[3]=Fr),gi=De.frontFace,gi!==ct.frontFace&&(xe.frontFace(gi),ct.frontFace=gi),Ti=De.lineWidth,Ti!==ct.lineWidth&&(xe.lineWidth(Ti),ct.lineWidth=Ti),ki=De.polygonOffset_enable,ki!==ct.polygonOffset_enable&&(ki?xe.enable(32823):xe.disable(32823),ct.polygonOffset_enable=ki),Ji=Ut[0],Fn=Ut[1],(Ji!==Wt[0]||Fn!==Wt[1])&&(xe.polygonOffset(Ji,Fn),Wt[0]=Ji,Wt[1]=Fn),Pi=De.sample_alpha,Pi!==ct.sample_alpha&&(Pi?xe.enable(32926):xe.disable(32926),ct.sample_alpha=Pi),hi=De.sample_enable,hi!==ct.sample_enable&&(hi?xe.enable(32928):xe.disable(32928),ct.sample_enable=hi),Li=xr[0],Si=xr[1],(Li!==Lr[0]||Si!==Lr[1])&&(xe.sampleCoverage(Li,Si),Lr[0]=Li,Lr[1]=Si),Gn=De.stencil_mask,Gn!==ct.stencil_mask&&(xe.stencilMask(Gn),ct.stencil_mask=Gn),ta=Ur[0],ya=Ur[1],ia=Ur[2],(ta!==Ir[0]||ya!==Ir[1]||ia!==Ir[2])&&(xe.stencilFunc(ta,ya,ia),Ir[0]=ta,Ir[1]=ya,Ir[2]=ia),pa=Gr[0],va=Gr[1],zn=Gr[2],is=Gr[3],(pa!==jr[0]||va!==jr[1]||zn!==jr[2]||is!==jr[3])&&(xe.stencilOpSeparate(pa,va,zn,is),jr[0]=pa,jr[1]=va,jr[2]=zn,jr[3]=is),Cs=yi[0],Ks=yi[1],dl=yi[2],xl=yi[3],(Cs!==Ei[0]||Ks!==Ei[1]||dl!==Ei[2]||xl!==Ei[3])&&(xe.stencilOpSeparate(Cs,Ks,dl,xl),Ei[0]=Cs,Ei[1]=Ks,Ei[2]=dl,Ei[3]=xl)}ni=Zr.viewport,Zi=ni.x|0,aa=ni.y|0,Mn="width"in ni?ni.width|0:Oe.framebufferWidth-Zi,Un="height"in ni?ni.height|0:Oe.framebufferHeight-aa,Ga=Oe.viewportWidth,Oe.viewportWidth=Mn,ma=Oe.viewportHeight,Oe.viewportHeight=Un,xe.viewport(Zi,aa,Mn,Un),Yr[0]=Zi,Yr[1]=aa,Yr[2]=Mn,Yr[3]=Un,xe.blendColor(0,0,0,0),Di[0]=0,Di[1]=0,Di[2]=0,Di[3]=0,n?xe.enable(3042):xe.disable(3042),ct.blend_enable=n,xe.blendEquationSeparate(32774,32774),Ci[0]=32774,Ci[1]=32774,xe.blendFuncSeparate(770,771,773,1),ii[0]=770,ii[1]=771,ii[2]=773,ii[3]=1,i?xe.enable(2884):xe.disable(2884),ct.cull_enable=i,xe.cullFace(a),ct.cull_face=a,oa=o.call(this,Oe,Zr,0),oa?xe.enable(2929):xe.disable(2929),ct.depth_enable=oa,ka=Zr.viewport,so=ka.x|0,Kr=ka.y|0,Ia="width"in ka?ka.width|0:Oe.framebufferWidth-so,Yo="height"in ka?ka.height|0:Oe.framebufferHeight-Kr,xe.scissor(so,Kr,Ia,Yo),ti[0]=so,ti[1]=Kr,ti[2]=Ia,ti[3]=Yo,s?xe.enable(3089):xe.disable(3089),ct.scissor_enable=s,u?xe.enable(2960):xe.disable(2960),ct.stencil_enable=u,fa=ct.profile,fa&&(kn=performance.now(),r.count++),xe.useProgram(l.program),Ta=Nr.angle_instanced_arrays,Pt.setVAO(null),ys=Zr.colorBuffer,xi.buffer=ys,uo=!1,ls=1,$a=0,fo=0,mn=0,ra=0,wa=null,ws=0,Co=!1,Po=5126,ji=0,gn=0,Ps=0,Br(xi)?(uo=!0,wa=pe.createStream(34962,xi),Po=wa.dtype):(wa=pe.getBuffer(xi),wa?Po=wa.dtype:"constant"in xi?(ls=2,typeof xi.constant=="number"?($a=xi.constant,fo=mn=ra=0):($a=xi.constant.length>0?xi.constant[0]:0,fo=xi.constant.length>1?xi.constant[1]:0,mn=xi.constant.length>2?xi.constant[2]:0,ra=xi.constant.length>3?xi.constant[3]:0)):(Br(xi.buffer)?wa=pe.createStream(34962,xi.buffer):wa=pe.getBuffer(xi.buffer),Po="type"in xi?Ri[xi.type]:wa.dtype,Co=!!xi.normalized,ws=xi.size|0,ji=xi.offset|0,gn=xi.stride|0,Ps=xi.divisor|0)),Ha=f.location,Sn=It[Ha],ls===1?(Sn.buffer||xe.enableVertexAttribArray(Ha),ao=ws||4,(Sn.type!==Po||Sn.size!==ao||Sn.buffer!==wa||Sn.normalized!==Co||Sn.offset!==ji||Sn.stride!==gn)&&(xe.bindBuffer(34962,wa.buffer),xe.vertexAttribPointer(Ha,ao,Po,Co,gn,ji),Sn.type=Po,Sn.size=ao,Sn.buffer=wa,Sn.normalized=Co,Sn.offset=ji,Sn.stride=gn),Sn.divisor!==Ps&&(Ta.vertexAttribDivisorANGLE(Ha,Ps),Sn.divisor=Ps)):(Sn.buffer&&(xe.disableVertexAttribArray(Ha),Sn.buffer=null),(Sn.x!==$a||Sn.y!==fo||Sn.z!==mn||Sn.w!==ra)&&(xe.vertexAttrib4f(Ha,$a,fo,mn,ra),Sn.x=$a,Sn.y=fo,Sn.z=mn,Sn.w=ra)),Ba=Zr.positionBuffer,tr.buffer=Ba,Ko=!1,Qo=1,Wi=0,Sa=0,Qa=0,vn=0,da=null,la=0,vo=!1,As=5126,ps=0,co=0,mo=0,Br(tr)?(Ko=!0,da=pe.createStream(34962,tr),As=da.dtype):(da=pe.getBuffer(tr),da?As=da.dtype:"constant"in tr?(Qo=2,typeof tr.constant=="number"?(Wi=tr.constant,Sa=Qa=vn=0):(Wi=tr.constant.length>0?tr.constant[0]:0,Sa=tr.constant.length>1?tr.constant[1]:0,Qa=tr.constant.length>2?tr.constant[2]:0,vn=tr.constant.length>3?tr.constant[3]:0)):(Br(tr.buffer)?da=pe.createStream(34962,tr.buffer):da=pe.getBuffer(tr.buffer),As="type"in tr?Ri[tr.type]:da.dtype,vo=!!tr.normalized,la=tr.size|0,ps=tr.offset|0,co=tr.stride|0,mo=tr.divisor|0)),No=c.location,jn=It[No],Qo===1?(jn.buffer||xe.enableVertexAttribArray(No),Go=la||2,(jn.type!==As||jn.size!==Go||jn.buffer!==da||jn.normalized!==vo||jn.offset!==ps||jn.stride!==co)&&(xe.bindBuffer(34962,da.buffer),xe.vertexAttribPointer(No,Go,As,vo,co,ps),jn.type=As,jn.size=Go,jn.buffer=da,jn.normalized=vo,jn.offset=ps,jn.stride=co),jn.divisor!==mo&&(Ta.vertexAttribDivisorANGLE(No,mo),jn.divisor=mo)):(jn.buffer&&(xe.disableVertexAttribArray(No),jn.buffer=null),(jn.x!==Wi||jn.y!==Sa||jn.z!==Qa||jn.w!==vn)&&(xe.vertexAttrib4f(No,Wi,Sa,Qa,vn),jn.x=Wi,jn.y=Sa,jn.z=Qa,jn.w=vn)),Ys=Zr.colorBuffer,Xr.buffer=Ys,qs=!1,Ns=1,Oa=0,ha=0,Vs=0,Ya=0,_n=null,Vn=0,wo=!1,Ra=5126,Xn=0,un=0,$n=0,Br(Xr)?(qs=!0,_n=pe.createStream(34962,Xr),Ra=_n.dtype):(_n=pe.getBuffer(Xr),_n?Ra=_n.dtype:"constant"in Xr?(Ns=2,typeof Xr.constant=="number"?(Oa=Xr.constant,ha=Vs=Ya=0):(Oa=Xr.constant.length>0?Xr.constant[0]:0,ha=Xr.constant.length>1?Xr.constant[1]:0,Vs=Xr.constant.length>2?Xr.constant[2]:0,Ya=Xr.constant.length>3?Xr.constant[3]:0)):(Br(Xr.buffer)?_n=pe.createStream(34962,Xr.buffer):_n=pe.getBuffer(Xr.buffer),Ra="type"in Xr?Ri[Xr.type]:_n.dtype,wo=!!Xr.normalized,Vn=Xr.size|0,Xn=Xr.offset|0,un=Xr.stride|0,$n=Xr.divisor|0)),Ka=h.location,qn=It[Ka],Ns===1?(qn.buffer||xe.enableVertexAttribArray(Ka),Eo=Vn||4,(qn.type!==Ra||qn.size!==Eo||qn.buffer!==_n||qn.normalized!==wo||qn.offset!==Xn||qn.stride!==un)&&(xe.bindBuffer(34962,_n.buffer),xe.vertexAttribPointer(Ka,Eo,Ra,wo,un,Xn),qn.type=Ra,qn.size=Eo,qn.buffer=_n,qn.normalized=wo,qn.offset=Xn,qn.stride=un),qn.divisor!==$n&&(Ta.vertexAttribDivisorANGLE(Ka,$n),qn.divisor=$n)):(qn.buffer&&(xe.disableVertexAttribArray(Ka),qn.buffer=null),(qn.x!==Oa||qn.y!==ha||qn.z!==Vs||qn.w!==Ya)&&(xe.vertexAttrib4f(Ka,Oa,ha,Vs,Ya),qn.x=Oa,qn.y=ha,qn.z=Vs,qn.w=Ya)),Ja=Zr.positionBuffer,pr.buffer=Ja,lo=!1,eo=1,sa=0,es=0,Na=0,tn=0,Pa=null,to=0,yo=!1,Jo=5126,Ao=0,Dn=0,_a=0,Br(pr)?(lo=!0,Pa=pe.createStream(34962,pr),Jo=Pa.dtype):(Pa=pe.getBuffer(pr),Pa?Jo=Pa.dtype:"constant"in pr?(eo=2,typeof pr.constant=="number"?(sa=pr.constant,es=Na=tn=0):(sa=pr.constant.length>0?pr.constant[0]:0,es=pr.constant.length>1?pr.constant[1]:0,Na=pr.constant.length>2?pr.constant[2]:0,tn=pr.constant.length>3?pr.constant[3]:0)):(Br(pr.buffer)?Pa=pe.createStream(34962,pr.buffer):Pa=pe.getBuffer(pr.buffer),Jo="type"in pr?Ri[pr.type]:Pa.dtype,yo=!!pr.normalized,to=pr.size|0,Ao=pr.offset|0,Dn=pr.stride|0,_a=pr.divisor|0)),Ws=d.location,Ca=It[Ws],eo===1?(Ca.buffer||xe.enableVertexAttribArray(Ws),Es=to||2,(Ca.type!==Jo||Ca.size!==Es||Ca.buffer!==Pa||Ca.normalized!==yo||Ca.offset!==Ao||Ca.stride!==Dn)&&(xe.bindBuffer(34962,Pa.buffer),xe.vertexAttribPointer(Ws,Es,Jo,yo,Dn,Ao),Ca.type=Jo,Ca.size=Es,Ca.buffer=Pa,Ca.normalized=yo,Ca.offset=Ao,Ca.stride=Dn),Ca.divisor!==_a&&(Ta.vertexAttribDivisorANGLE(Ws,_a),Ca.divisor=_a)):(Ca.buffer&&(xe.disableVertexAttribArray(Ws),Ca.buffer=null),(Ca.x!==sa||Ca.y!==es||Ca.z!==Na||Ca.w!==tn)&&(xe.vertexAttrib4f(Ws,sa,es,Na,tn),Ca.x=sa,Ca.y=es,Ca.z=Na,Ca.w=tn)),Ts=x.location,Ho=It[Ts],Ho.buffer||xe.enableVertexAttribArray(Ts),(Ho.type!==5126||Ho.size!==1||Ho.buffer!==p||Ho.normalized!==!1||Ho.offset!==0||Ho.stride!==8)&&(xe.bindBuffer(34962,p.buffer),xe.vertexAttribPointer(Ts,1,5126,!1,8,0),Ho.type=5126,Ho.size=1,Ho.buffer=p,Ho.normalized=!1,Ho.offset=0,Ho.stride=8),Ho.divisor!==0&&(Ta.vertexAttribDivisorANGLE(Ts,0),Ho.divisor=0),Wa=b.location,To=It[Wa],To.buffer||xe.enableVertexAttribArray(Wa),(To.type!==5126||To.size!==1||To.buffer!==p||To.normalized!==!1||To.offset!==4||To.stride!==8)&&(xe.bindBuffer(34962,p.buffer),xe.vertexAttribPointer(Wa,1,5126,!1,8,4),To.type=5126,To.size=1,To.buffer=p,To.normalized=!1,To.offset=4,To.stride=8),To.divisor!==0&&(Ta.vertexAttribDivisorANGLE(Wa,0),To.divisor=0),ts=Zr.positionBuffer,gr.buffer=ts,Wo=!1,qa=1,ln=0,Bo=0,ko=0,oo=0,za=null,ea=0,rs=!1,$s=5126,us=0,Ds=0,fl=0,Br(gr)?(Wo=!0,za=pe.createStream(34962,gr),$s=za.dtype):(za=pe.getBuffer(gr),za?$s=za.dtype:"constant"in gr?(qa=2,typeof gr.constant=="number"?(ln=gr.constant,Bo=ko=oo=0):(ln=gr.constant.length>0?gr.constant[0]:0,Bo=gr.constant.length>1?gr.constant[1]:0,ko=gr.constant.length>2?gr.constant[2]:0,oo=gr.constant.length>3?gr.constant[3]:0)):(Br(gr.buffer)?za=pe.createStream(34962,gr.buffer):za=pe.getBuffer(gr.buffer),$s="type"in gr?Ri[gr.type]:za.dtype,rs=!!gr.normalized,ea=gr.size|0,us=gr.offset|0,Ds=gr.stride|0,fl=gr.divisor|0)),as=v.location,Ma=It[as],qa===1?(Ma.buffer||xe.enableVertexAttribArray(as),Qs=ea||2,(Ma.type!==$s||Ma.size!==Qs||Ma.buffer!==za||Ma.normalized!==rs||Ma.offset!==us||Ma.stride!==Ds)&&(xe.bindBuffer(34962,za.buffer),xe.vertexAttribPointer(as,Qs,$s,rs,Ds,us),Ma.type=$s,Ma.size=Qs,Ma.buffer=za,Ma.normalized=rs,Ma.offset=us,Ma.stride=Ds),Ma.divisor!==fl&&(Ta.vertexAttribDivisorANGLE(as,fl),Ma.divisor=fl)):(Ma.buffer&&(xe.disableVertexAttribArray(as),Ma.buffer=null),(Ma.x!==ln||Ma.y!==Bo||Ma.z!==ko||Ma.w!==oo)&&(xe.vertexAttrib4f(as,ln,Bo,ko,oo),Ma.x=ln,Ma.y=Bo,Ma.z=ko,Ma.w=oo)),ho=Zr.positionBuffer,ft.buffer=ho,gs=!1,Vo=1,Do=0,Lo=0,xs=0,ks=0,Ea=null,Jn=0,Oo=!1,rl=5126,Gs=0,bs=0,zs=0,Br(ft)?(gs=!0,Ea=pe.createStream(34962,ft),rl=Ea.dtype):(Ea=pe.getBuffer(ft),Ea?rl=Ea.dtype:"constant"in ft?(Vo=2,typeof ft.constant=="number"?(Do=ft.constant,Lo=xs=ks=0):(Do=ft.constant.length>0?ft.constant[0]:0,Lo=ft.constant.length>1?ft.constant[1]:0,xs=ft.constant.length>2?ft.constant[2]:0,ks=ft.constant.length>3?ft.constant[3]:0)):(Br(ft.buffer)?Ea=pe.createStream(34962,ft.buffer):Ea=pe.getBuffer(ft.buffer),rl="type"in ft?Ri[ft.type]:Ea.dtype,Oo=!!ft.normalized,Jn=ft.size|0,Gs=ft.offset|0,bs=ft.stride|0,zs=ft.divisor|0)),$o=k.location,Aa=It[$o],Vo===1?(Aa.buffer||xe.enableVertexAttribArray($o),os=Jn||2,(Aa.type!==rl||Aa.size!==os||Aa.buffer!==Ea||Aa.normalized!==Oo||Aa.offset!==Gs||Aa.stride!==bs)&&(xe.bindBuffer(34962,Ea.buffer),xe.vertexAttribPointer($o,os,rl,Oo,bs,Gs),Aa.type=rl,Aa.size=os,Aa.buffer=Ea,Aa.normalized=Oo,Aa.offset=Gs,Aa.stride=bs),Aa.divisor!==zs&&(Ta.vertexAttribDivisorANGLE($o,zs),Aa.divisor=zs)):(Aa.buffer&&(xe.disableVertexAttribArray($o),Aa.buffer=null),(Aa.x!==Do||Aa.y!==Lo||Aa.z!==xs||Aa.w!==ks)&&(xe.vertexAttrib4f($o,Do,Lo,xs,ks),Aa.x=Do,Aa.y=Lo,Aa.z=xs,Aa.w=ks)),_l=Zr.dashLength,xe.uniform1f(E.location,_l),Ss=Zr.dashTexture,Ss&&Ss._reglType==="framebuffer"&&(Ss=Ss.color[0]),po=Ss._texture,xe.uniform1i(T.location,po.bind()),go=Zr.depth,xe.uniform1f(L.location,go),ss=Zr.miterLimit,xe.uniform1f(_.location,ss),qo=S.call(this,Oe,Zr,0),xe.uniform1f(C.location,qo),zo=Zr.opacity,xe.uniform1f(m.location,zo),io=Zr.scale,Io=io[0],Da=io[1],xe.uniform2f(P.location,Io,Da),vs=Zr.thickness,xe.uniform1f(A.location,vs),fs=Zr.translate,cl=fs[0],el=fs[1],xe.uniform2f(B.location,cl,el),Hs=U.call(this,Oe,Zr,0),Ro=Hs[0],tl=Hs[1],Fs=Hs[2],hl=Hs[3],xe.uniform4f(F.location,Ro,tl,Fs,hl),Fa=_e.elements,Fa?xe.bindBuffer(34963,Fa.buffer.buffer):Pt.currentVAO&&(Fa=fe.getElements(Pt.currentVAO.elements),Fa&&xe.bindBuffer(34963,Fa.buffer.buffer)),Ms=Zr.count,Ms>0?Fa?Ta.drawElementsInstancedANGLE(5,4,Fa.type,0<<(Fa.type-5121>>1),Ms):Ta.drawArraysInstancedANGLE(5,0,4,Ms):Ms<0&&(Fa?xe.drawElements(5,4,Fa.type,0<<(Fa.type-5121>>1)):xe.drawArrays(5,0,4)),ct.dirty=!0,Pt.setVAO(null),Oe.viewportWidth=Ga,Oe.viewportHeight=ma,fa&&(r.cpuTime+=performance.now()-kn),uo&&pe.destroyStream(wa),Ko&&pe.destroyStream(da),qs&&pe.destroyStream(_n),lo&&pe.destroyStream(Pa),Wo&&pe.destroyStream(za),gs&&pe.destroyStream(Ea),po.unbind()},scope:function(Zr,Ai,Qi){var ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,Tt,Vt,wr,yr,Fr,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Ul,le,w,q,Q,ee,ue,Ve,et,yt,Dt,ir,or,kr,Vr,he,Se,qe,Ge,lt,tt,vt,Gt,nr,cr,Ar,Rr,ri,si,Mi,hn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,ql,ou,Pu,iu,tu,Wu,Qu,Ku,ju,Xu,lf,xf,ef,tf,Z,se,ze,je,$e;ni=Zr.viewport,Zi=ni.x|0,aa=ni.y|0,Mn="width"in ni?ni.width|0:Oe.framebufferWidth-Zi,Un="height"in ni?ni.height|0:Oe.framebufferHeight-aa,Ga=Oe.viewportWidth,Oe.viewportWidth=Mn,ma=Oe.viewportHeight,Oe.viewportHeight=Un,oa=en[0],en[0]=Zi,ka=en[1],en[1]=aa,so=en[2],en[2]=Mn,Kr=en[3],en[3]=Un,Ia=mi[0],mi[0]=G,Yo=mi[1],mi[1]=j,fa=mi[2],mi[2]=H,kn=mi[3],mi[3]=N,Ta=De.blend_enable,De.blend_enable=W,ys=Ii[0],Ii[0]=re,uo=Ii[1],Ii[1]=ae,ls=nn[0],nn[0]=be,$a=nn[1],nn[1]=Pe,fo=nn[2],nn[2]=Ce,mn=nn[3],nn[3]=de,ra=De.cull_enable,De.cull_enable=te,wa=De.cull_face,De.cull_face=ke,ws=o.call(this,Oe,Zr,Qi),Co=De.depth_enable,De.depth_enable=ws,Po=Zr.viewport,ji=Po.x|0,gn=Po.y|0,Ps="width"in Po?Po.width|0:Oe.framebufferWidth-ji,Ha="height"in Po?Po.height|0:Oe.framebufferHeight-gn,Sn=Vi[0],Vi[0]=ji,ao=Vi[1],Vi[1]=gn,Ba=Vi[2],Vi[2]=Ps,Ko=Vi[3],Vi[3]=Ha,Qo=De.scissor_enable,De.scissor_enable=Ee,Wi=De.stencil_enable,De.stencil_enable=Me,Sa=ct.profile,Sa&&(Qa=performance.now(),r.count++),vn=_e.offset,_e.offset=Ue,da=_e.count,_e.count=Fe,la=Zr.count,vo=_e.instances,_e.instances=la,As=_e.primitive,_e.primitive=me,ps=S.call(this,Oe,Zr,Qi),co=rr[Ne],rr[Ne]=ps,mo=Zr.miterLimit,No=rr[ce],rr[ce]=mo,jn=Zr.scale,Go=rr[Ke],rr[Ke]=jn,Ys=Zr.scaleFract,qs=rr[it],rr[it]=Ys,Ns=Zr.translateFract,Oa=rr[bt],rr[bt]=Ns,ha=Zr.translate,Vs=rr[Nt],rr[Nt]=ha,Ya=Zr.thickness,_n=rr[nt],rr[nt]=Ya,Vn=Zr.dashTexture,wo=rr[Ye],rr[Ye]=Vn,Ra=Zr.opacity,Xn=rr[kt],rr[kt]=Ra,un=Oe.pixelRatio,$n=rr[At],rr[At]=un,Ka=Zr.id,qn=rr[St],rr[St]=Ka,Eo=Zr.dashLength,Ja=rr[Bt],rr[Bt]=Eo,lo=U.call(this,Oe,Zr,Qi),eo=rr[Zt],rr[Zt]=lo,sa=Zr.depth,es=rr[Et],rr[Et]=sa,Na=Ae.state,Ae.state=1,tn=Ae.x,Ae.x=0,Pa=Ae.y,Ae.y=0,to=Ae.z,Ae.z=0,yo=Ae.w,Ae.w=0,Jo=Ae.buffer,Ae.buffer=p,Ao=Ae.size,Ae.size=0,Dn=Ae.normalized,Ae.normalized=!1,_a=Ae.type,Ae.type=5126,Ws=Ae.offset,Ae.offset=0,Ca=Ae.stride,Ae.stride=8,Es=Ae.divisor,Ae.divisor=0,Ts=ot.state,ot.state=1,Ho=ot.x,ot.x=0,Wa=ot.y,ot.y=0,To=ot.z,ot.z=0,ts=ot.w,ot.w=0,Wo=ot.buffer,ot.buffer=p,qa=ot.size,ot.size=0,ln=ot.normalized,ot.normalized=!1,Bo=ot.type,ot.type=5126,ko=ot.offset,ot.offset=4,oo=ot.stride,ot.stride=8,za=ot.divisor,ot.divisor=0,ea=Zr.colorBuffer,xi.buffer=ea,rs=!1,$s=1,us=0,Ds=0,fl=0,as=0,Ma=null,Qs=0,ho=!1,gs=5126,Vo=0,Do=0,Lo=0,Br(xi)?(rs=!0,Ma=pe.createStream(34962,xi),gs=Ma.dtype):(Ma=pe.getBuffer(xi),Ma?gs=Ma.dtype:"constant"in xi?($s=2,typeof xi.constant=="number"?(us=xi.constant,Ds=fl=as=0):(us=xi.constant.length>0?xi.constant[0]:0,Ds=xi.constant.length>1?xi.constant[1]:0,fl=xi.constant.length>2?xi.constant[2]:0,as=xi.constant.length>3?xi.constant[3]:0)):(Br(xi.buffer)?Ma=pe.createStream(34962,xi.buffer):Ma=pe.getBuffer(xi.buffer),gs="type"in xi?Ri[xi.type]:Ma.dtype,ho=!!xi.normalized,Qs=xi.size|0,Vo=xi.offset|0,Do=xi.stride|0,Lo=xi.divisor|0)),xs=dt.state,dt.state=$s,ks=dt.x,dt.x=us,Ea=dt.y,dt.y=Ds,Jn=dt.z,dt.z=fl,Oo=dt.w,dt.w=as,rl=dt.buffer,dt.buffer=Ma,Gs=dt.size,dt.size=Qs,bs=dt.normalized,dt.normalized=ho,zs=dt.type,dt.type=gs,$o=dt.offset,dt.offset=Vo,Aa=dt.stride,dt.stride=Do,os=dt.divisor,dt.divisor=Lo,_l=Zr.colorBuffer,Xr.buffer=_l,Ss=!1,po=1,go=0,ss=0,qo=0,zo=0,io=null,Io=0,Da=!1,vs=5126,fs=0,cl=0,el=0,Br(Xr)?(Ss=!0,io=pe.createStream(34962,Xr),vs=io.dtype):(io=pe.getBuffer(Xr),io?vs=io.dtype:"constant"in Xr?(po=2,typeof Xr.constant=="number"?(go=Xr.constant,ss=qo=zo=0):(go=Xr.constant.length>0?Xr.constant[0]:0,ss=Xr.constant.length>1?Xr.constant[1]:0,qo=Xr.constant.length>2?Xr.constant[2]:0,zo=Xr.constant.length>3?Xr.constant[3]:0)):(Br(Xr.buffer)?io=pe.createStream(34962,Xr.buffer):io=pe.getBuffer(Xr.buffer),vs="type"in Xr?Ri[Xr.type]:io.dtype,Da=!!Xr.normalized,Io=Xr.size|0,fs=Xr.offset|0,cl=Xr.stride|0,el=Xr.divisor|0)),Hs=pt.state,pt.state=po,Ro=pt.x,pt.x=go,tl=pt.y,pt.y=ss,Fs=pt.z,pt.z=qo,hl=pt.w,pt.w=zo,Fa=pt.buffer,pt.buffer=io,Ms=pt.size,pt.size=Io,jo=pt.normalized,pt.normalized=Da,Rs=pt.type,pt.type=vs,Is=pt.offset,pt.offset=fs,Bs=pt.stride,pt.stride=cl,Tt=pt.divisor,pt.divisor=el,Vt=Zr.positionBuffer,ft.buffer=Vt,wr=!1,yr=1,Fr=0,gi=0,Ti=0,ki=0,Ji=null,Fn=0,Pi=!1,hi=5126,Li=0,Si=0,Gn=0,Br(ft)?(wr=!0,Ji=pe.createStream(34962,ft),hi=Ji.dtype):(Ji=pe.getBuffer(ft),Ji?hi=Ji.dtype:"constant"in ft?(yr=2,typeof ft.constant=="number"?(Fr=ft.constant,gi=Ti=ki=0):(Fr=ft.constant.length>0?ft.constant[0]:0,gi=ft.constant.length>1?ft.constant[1]:0,Ti=ft.constant.length>2?ft.constant[2]:0,ki=ft.constant.length>3?ft.constant[3]:0)):(Br(ft.buffer)?Ji=pe.createStream(34962,ft.buffer):Ji=pe.getBuffer(ft.buffer),hi="type"in ft?Ri[ft.type]:Ji.dtype,Pi=!!ft.normalized,Fn=ft.size|0,Li=ft.offset|0,Si=ft.stride|0,Gn=ft.divisor|0)),ta=at.state,at.state=yr,ya=at.x,at.x=Fr,ia=at.y,at.y=gi,pa=at.z,at.z=Ti,va=at.w,at.w=ki,zn=at.buffer,at.buffer=Ji,is=at.size,at.size=Fn,Cs=at.normalized,at.normalized=Pi,Ks=at.type,at.type=hi,dl=at.offset,at.offset=Li,xl=at.stride,at.stride=Si,Ol=at.divisor,at.divisor=Gn,bl=Zr.positionBuffer,tr.buffer=bl,eu=!1,Zl=1,Vl=0,ja=0,ns=0,Js=0,cs=null,sl=0,ll=!1,il=5126,zl=0,Ml=0,Rl=0,Br(tr)?(eu=!0,cs=pe.createStream(34962,tr),il=cs.dtype):(cs=pe.getBuffer(tr),cs?il=cs.dtype:"constant"in tr?(Zl=2,typeof tr.constant=="number"?(Vl=tr.constant,ja=ns=Js=0):(Vl=tr.constant.length>0?tr.constant[0]:0,ja=tr.constant.length>1?tr.constant[1]:0,ns=tr.constant.length>2?tr.constant[2]:0,Js=tr.constant.length>3?tr.constant[3]:0)):(Br(tr.buffer)?cs=pe.createStream(34962,tr.buffer):cs=pe.getBuffer(tr.buffer),il="type"in tr?Ri[tr.type]:cs.dtype,ll=!!tr.normalized,sl=tr.size|0,zl=tr.offset|0,Ml=tr.stride|0,Rl=tr.divisor|0)),Al=Xe.state,Xe.state=Zl,Ll=Xe.x,Xe.x=Vl,ms=Xe.y,Xe.y=ja,Os=Xe.z,Xe.z=ns,Xl=Xe.w,Xe.w=Js,Gl=Xe.buffer,Xe.buffer=cs,Ul=Xe.size,Xe.size=sl,le=Xe.normalized,Xe.normalized=ll,w=Xe.type,Xe.type=il,q=Xe.offset,Xe.offset=zl,Q=Xe.stride,Xe.stride=Ml,ee=Xe.divisor,Xe.divisor=Rl,ue=Zr.positionBuffer,pr.buffer=ue,Ve=!1,et=1,yt=0,Dt=0,ir=0,or=0,kr=null,Vr=0,he=!1,Se=5126,qe=0,Ge=0,lt=0,Br(pr)?(Ve=!0,kr=pe.createStream(34962,pr),Se=kr.dtype):(kr=pe.getBuffer(pr),kr?Se=kr.dtype:"constant"in pr?(et=2,typeof pr.constant=="number"?(yt=pr.constant,Dt=ir=or=0):(yt=pr.constant.length>0?pr.constant[0]:0,Dt=pr.constant.length>1?pr.constant[1]:0,ir=pr.constant.length>2?pr.constant[2]:0,or=pr.constant.length>3?pr.constant[3]:0)):(Br(pr.buffer)?kr=pe.createStream(34962,pr.buffer):kr=pe.getBuffer(pr.buffer),Se="type"in pr?Ri[pr.type]:kr.dtype,he=!!pr.normalized,Vr=pr.size|0,qe=pr.offset|0,Ge=pr.stride|0,lt=pr.divisor|0)),tt=rt.state,rt.state=et,vt=rt.x,rt.x=yt,Gt=rt.y,rt.y=Dt,nr=rt.z,rt.z=ir,cr=rt.w,rt.w=or,Ar=rt.buffer,rt.buffer=kr,Rr=rt.size,rt.size=Vr,ri=rt.normalized,rt.normalized=he,si=rt.type,rt.type=Se,Mi=rt.offset,rt.offset=qe,hn=rt.stride,rt.stride=Ge,Zn=rt.divisor,rt.divisor=lt,Yn=Zr.positionBuffer,gr.buffer=Yn,Ua=!1,Fo=1,vl=0,Us=0,ml=0,au=0,Sl=null,Yl=0,ql=!1,ou=5126,Pu=0,iu=0,tu=0,Br(gr)?(Ua=!0,Sl=pe.createStream(34962,gr),ou=Sl.dtype):(Sl=pe.getBuffer(gr),Sl?ou=Sl.dtype:"constant"in gr?(Fo=2,typeof gr.constant=="number"?(vl=gr.constant,Us=ml=au=0):(vl=gr.constant.length>0?gr.constant[0]:0,Us=gr.constant.length>1?gr.constant[1]:0,ml=gr.constant.length>2?gr.constant[2]:0,au=gr.constant.length>3?gr.constant[3]:0)):(Br(gr.buffer)?Sl=pe.createStream(34962,gr.buffer):Sl=pe.getBuffer(gr.buffer),ou="type"in gr?Ri[gr.type]:Sl.dtype,ql=!!gr.normalized,Yl=gr.size|0,Pu=gr.offset|0,iu=gr.stride|0,tu=gr.divisor|0)),Wu=Qe.state,Qe.state=Fo,Qu=Qe.x,Qe.x=vl,Ku=Qe.y,Qe.y=Us,ju=Qe.z,Qe.z=ml,Xu=Qe.w,Qe.w=au,lf=Qe.buffer,Qe.buffer=Sl,xf=Qe.size,Qe.size=Yl,ef=Qe.normalized,Qe.normalized=ql,tf=Qe.type,Qe.type=ou,Z=Qe.offset,Qe.offset=Pu,se=Qe.stride,Qe.stride=iu,ze=Qe.divisor,Qe.divisor=tu,je=mt.vert,mt.vert=zt,$e=mt.frag,mt.frag=Yt,ct.dirty=!0,Ai(Oe,Zr,Qi),Oe.viewportWidth=Ga,Oe.viewportHeight=ma,en[0]=oa,en[1]=ka,en[2]=so,en[3]=Kr,mi[0]=Ia,mi[1]=Yo,mi[2]=fa,mi[3]=kn,De.blend_enable=Ta,Ii[0]=ys,Ii[1]=uo,nn[0]=ls,nn[1]=$a,nn[2]=fo,nn[3]=mn,De.cull_enable=ra,De.cull_face=wa,De.depth_enable=Co,Vi[0]=Sn,Vi[1]=ao,Vi[2]=Ba,Vi[3]=Ko,De.scissor_enable=Qo,De.stencil_enable=Wi,Sa&&(r.cpuTime+=performance.now()-Qa),_e.offset=vn,_e.count=da,_e.instances=vo,_e.primitive=As,rr[Ne]=co,rr[ce]=No,rr[Ke]=Go,rr[it]=qs,rr[bt]=Oa,rr[Nt]=Vs,rr[nt]=_n,rr[Ye]=wo,rr[kt]=Xn,rr[At]=$n,rr[St]=qn,rr[Bt]=Ja,rr[Zt]=eo,rr[Et]=es,Ae.state=Na,Ae.x=tn,Ae.y=Pa,Ae.z=to,Ae.w=yo,Ae.buffer=Jo,Ae.size=Ao,Ae.normalized=Dn,Ae.type=_a,Ae.offset=Ws,Ae.stride=Ca,Ae.divisor=Es,ot.state=Ts,ot.x=Ho,ot.y=Wa,ot.z=To,ot.w=ts,ot.buffer=Wo,ot.size=qa,ot.normalized=ln,ot.type=Bo,ot.offset=ko,ot.stride=oo,ot.divisor=za,rs&&pe.destroyStream(Ma),dt.state=xs,dt.x=ks,dt.y=Ea,dt.z=Jn,dt.w=Oo,dt.buffer=rl,dt.size=Gs,dt.normalized=bs,dt.type=zs,dt.offset=$o,dt.stride=Aa,dt.divisor=os,Ss&&pe.destroyStream(io),pt.state=Hs,pt.x=Ro,pt.y=tl,pt.z=Fs,pt.w=hl,pt.buffer=Fa,pt.size=Ms,pt.normalized=jo,pt.type=Rs,pt.offset=Is,pt.stride=Bs,pt.divisor=Tt,wr&&pe.destroyStream(Ji),at.state=ta,at.x=ya,at.y=ia,at.z=pa,at.w=va,at.buffer=zn,at.size=is,at.normalized=Cs,at.type=Ks,at.offset=dl,at.stride=xl,at.divisor=Ol,eu&&pe.destroyStream(cs),Xe.state=Al,Xe.x=Ll,Xe.y=ms,Xe.z=Os,Xe.w=Xl,Xe.buffer=Gl,Xe.size=Ul,Xe.normalized=le,Xe.type=w,Xe.offset=q,Xe.stride=Q,Xe.divisor=ee,Ve&&pe.destroyStream(kr),rt.state=tt,rt.x=vt,rt.y=Gt,rt.z=nr,rt.w=cr,rt.buffer=Ar,rt.size=Rr,rt.normalized=ri,rt.type=si,rt.offset=Mi,rt.stride=hn,rt.divisor=Zn,Ua&&pe.destroyStream(Sl),Qe.state=Wu,Qe.x=Qu,Qe.y=Ku,Qe.z=ju,Qe.w=Xu,Qe.buffer=lf,Qe.size=xf,Qe.normalized=ef,Qe.type=tf,Qe.offset=Z,Qe.stride=se,Qe.divisor=ze,mt.vert=je,mt.frag=$e,ct.dirty=!0},batch:function(Zr,Ai){var Qi,ni,Zi,aa,Mn,Un,Ga;if(Qi=Nr.angle_instanced_arrays,ni=Wr.next,ni!==Wr.cur&&(ni?xe.bindFramebuffer(36160,ni.framebuffer):xe.bindFramebuffer(36160,null),Wr.cur=ni),ct.dirty){var ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo;ma=De.dither,ma!==ct.dither&&(ma?xe.enable(3024):xe.disable(3024),ct.dither=ma),oa=De.depth_func,oa!==ct.depth_func&&(xe.depthFunc(oa),ct.depth_func=oa),ka=wi[0],so=wi[1],(ka!==Gi[0]||so!==Gi[1])&&(xe.depthRange(ka,so),Gi[0]=ka,Gi[1]=so),Kr=De.depth_mask,Kr!==ct.depth_mask&&(xe.depthMask(Kr),ct.depth_mask=Kr),Ia=Ft[0],Yo=Ft[1],fa=Ft[2],kn=Ft[3],(Ia!==gt[0]||Yo!==gt[1]||fa!==gt[2]||kn!==gt[3])&&(xe.colorMask(Ia,Yo,fa,kn),gt[0]=Ia,gt[1]=Yo,gt[2]=fa,gt[3]=kn),Ta=De.frontFace,Ta!==ct.frontFace&&(xe.frontFace(Ta),ct.frontFace=Ta),ys=De.lineWidth,ys!==ct.lineWidth&&(xe.lineWidth(ys),ct.lineWidth=ys),uo=De.polygonOffset_enable,uo!==ct.polygonOffset_enable&&(uo?xe.enable(32823):xe.disable(32823),ct.polygonOffset_enable=uo),ls=Ut[0],$a=Ut[1],(ls!==Wt[0]||$a!==Wt[1])&&(xe.polygonOffset(ls,$a),Wt[0]=ls,Wt[1]=$a),fo=De.sample_alpha,fo!==ct.sample_alpha&&(fo?xe.enable(32926):xe.disable(32926),ct.sample_alpha=fo),mn=De.sample_enable,mn!==ct.sample_enable&&(mn?xe.enable(32928):xe.disable(32928),ct.sample_enable=mn),ra=xr[0],wa=xr[1],(ra!==Lr[0]||wa!==Lr[1])&&(xe.sampleCoverage(ra,wa),Lr[0]=ra,Lr[1]=wa),ws=De.stencil_mask,ws!==ct.stencil_mask&&(xe.stencilMask(ws),ct.stencil_mask=ws),Co=Ur[0],Po=Ur[1],ji=Ur[2],(Co!==Ir[0]||Po!==Ir[1]||ji!==Ir[2])&&(xe.stencilFunc(Co,Po,ji),Ir[0]=Co,Ir[1]=Po,Ir[2]=ji),gn=Gr[0],Ps=Gr[1],Ha=Gr[2],Sn=Gr[3],(gn!==jr[0]||Ps!==jr[1]||Ha!==jr[2]||Sn!==jr[3])&&(xe.stencilOpSeparate(gn,Ps,Ha,Sn),jr[0]=gn,jr[1]=Ps,jr[2]=Ha,jr[3]=Sn),ao=yi[0],Ba=yi[1],Ko=yi[2],Qo=yi[3],(ao!==Ei[0]||Ba!==Ei[1]||Ko!==Ei[2]||Qo!==Ei[3])&&(xe.stencilOpSeparate(ao,Ba,Ko,Qo),Ei[0]=ao,Ei[1]=Ba,Ei[2]=Ko,Ei[3]=Qo)}xe.blendColor(0,0,0,0),Di[0]=0,Di[1]=0,Di[2]=0,Di[3]=0,lr?xe.enable(3042):xe.disable(3042),ct.blend_enable=lr,xe.blendEquationSeparate(32774,32774),Ci[0]=32774,Ci[1]=32774,xe.blendFuncSeparate(770,771,773,1),ii[0]=770,ii[1]=771,ii[2]=773,ii[3]=1,mr?xe.enable(2884):xe.disable(2884),ct.cull_enable=mr,xe.cullFace(_r),ct.cull_face=_r,Ht?xe.enable(3089):xe.disable(3089),ct.scissor_enable=Ht,Re?xe.enable(2960):xe.disable(2960),ct.stencil_enable=Re,Zi=ct.profile,Zi&&(aa=performance.now(),r.count+=Ai),xe.useProgram(l.program),Mn=Nr.angle_instanced_arrays;var Wi,Sa,Qa,vn,da;for(Pt.setVAO(null),Wi=x.location,Sa=It[Wi],Sa.buffer||xe.enableVertexAttribArray(Wi),(Sa.type!==5126||Sa.size!==1||Sa.buffer!==p||Sa.normalized!==!1||Sa.offset!==0||Sa.stride!==8)&&(xe.bindBuffer(34962,p.buffer),xe.vertexAttribPointer(Wi,1,5126,!1,8,0),Sa.type=5126,Sa.size=1,Sa.buffer=p,Sa.normalized=!1,Sa.offset=0,Sa.stride=8),Sa.divisor!==0&&(Mn.vertexAttribDivisorANGLE(Wi,0),Sa.divisor=0),Qa=b.location,vn=It[Qa],vn.buffer||xe.enableVertexAttribArray(Qa),(vn.type!==5126||vn.size!==1||vn.buffer!==p||vn.normalized!==!1||vn.offset!==4||vn.stride!==8)&&(xe.bindBuffer(34962,p.buffer),xe.vertexAttribPointer(Qa,1,5126,!1,8,4),vn.type=5126,vn.size=1,vn.buffer=p,vn.normalized=!1,vn.offset=4,vn.stride=8),vn.divisor!==0&&(Mn.vertexAttribDivisorANGLE(Qa,0),vn.divisor=0),da=_e.elements,da?xe.bindBuffer(34963,da.buffer.buffer):Pt.currentVAO&&(da=fe.getElements(Pt.currentVAO.elements),da&&xe.bindBuffer(34963,da.buffer.buffer)),Un=0;Un0?xi.constant[0]:0,Vn=xi.constant.length>1?xi.constant[1]:0,wo=xi.constant.length>2?xi.constant[2]:0,Ra=xi.constant.length>3?xi.constant[3]:0)):(Br(xi.buffer)?Xn=pe.createStream(34962,xi.buffer):Xn=pe.getBuffer(xi.buffer),Ka="type"in xi?Ri[xi.type]:Xn.dtype,$n=!!xi.normalized,un=xi.size|0,qn=xi.offset|0,Eo=xi.stride|0,Ja=xi.divisor|0)),lo=f.location,eo=It[lo],Ya===1?(eo.buffer||xe.enableVertexAttribArray(lo),sa=un||4,(eo.type!==Ka||eo.size!==sa||eo.buffer!==Xn||eo.normalized!==$n||eo.offset!==qn||eo.stride!==Eo)&&(xe.bindBuffer(34962,Xn.buffer),xe.vertexAttribPointer(lo,sa,Ka,$n,Eo,qn),eo.type=Ka,eo.size=sa,eo.buffer=Xn,eo.normalized=$n,eo.offset=qn,eo.stride=Eo),eo.divisor!==Ja&&(Mn.vertexAttribDivisorANGLE(lo,Ja),eo.divisor=Ja)):(eo.buffer&&(xe.disableVertexAttribArray(lo),eo.buffer=null),(eo.x!==_n||eo.y!==Vn||eo.z!==wo||eo.w!==Ra)&&(xe.vertexAttrib4f(lo,_n,Vn,wo,Ra),eo.x=_n,eo.y=Vn,eo.z=wo,eo.w=Ra)),es=Ga.positionBuffer,tr.buffer=es,Na=!1,tn=1,Pa=0,to=0,yo=0,Jo=0,Ao=null,Dn=0,_a=!1,Ws=5126,Ca=0,Es=0,Ts=0,Br(tr)?(Na=!0,Ao=pe.createStream(34962,tr),Ws=Ao.dtype):(Ao=pe.getBuffer(tr),Ao?Ws=Ao.dtype:"constant"in tr?(tn=2,typeof tr.constant=="number"?(Pa=tr.constant,to=yo=Jo=0):(Pa=tr.constant.length>0?tr.constant[0]:0,to=tr.constant.length>1?tr.constant[1]:0,yo=tr.constant.length>2?tr.constant[2]:0,Jo=tr.constant.length>3?tr.constant[3]:0)):(Br(tr.buffer)?Ao=pe.createStream(34962,tr.buffer):Ao=pe.getBuffer(tr.buffer),Ws="type"in tr?Ri[tr.type]:Ao.dtype,_a=!!tr.normalized,Dn=tr.size|0,Ca=tr.offset|0,Es=tr.stride|0,Ts=tr.divisor|0)),Ho=c.location,Wa=It[Ho],tn===1?(Wa.buffer||xe.enableVertexAttribArray(Ho),To=Dn||2,(Wa.type!==Ws||Wa.size!==To||Wa.buffer!==Ao||Wa.normalized!==_a||Wa.offset!==Ca||Wa.stride!==Es)&&(xe.bindBuffer(34962,Ao.buffer),xe.vertexAttribPointer(Ho,To,Ws,_a,Es,Ca),Wa.type=Ws,Wa.size=To,Wa.buffer=Ao,Wa.normalized=_a,Wa.offset=Ca,Wa.stride=Es),Wa.divisor!==Ts&&(Mn.vertexAttribDivisorANGLE(Ho,Ts),Wa.divisor=Ts)):(Wa.buffer&&(xe.disableVertexAttribArray(Ho),Wa.buffer=null),(Wa.x!==Pa||Wa.y!==to||Wa.z!==yo||Wa.w!==Jo)&&(xe.vertexAttrib4f(Ho,Pa,to,yo,Jo),Wa.x=Pa,Wa.y=to,Wa.z=yo,Wa.w=Jo)),ts=Ga.colorBuffer,Xr.buffer=ts,Wo=!1,qa=1,ln=0,Bo=0,ko=0,oo=0,za=null,ea=0,rs=!1,$s=5126,us=0,Ds=0,fl=0,Br(Xr)?(Wo=!0,za=pe.createStream(34962,Xr),$s=za.dtype):(za=pe.getBuffer(Xr),za?$s=za.dtype:"constant"in Xr?(qa=2,typeof Xr.constant=="number"?(ln=Xr.constant,Bo=ko=oo=0):(ln=Xr.constant.length>0?Xr.constant[0]:0,Bo=Xr.constant.length>1?Xr.constant[1]:0,ko=Xr.constant.length>2?Xr.constant[2]:0,oo=Xr.constant.length>3?Xr.constant[3]:0)):(Br(Xr.buffer)?za=pe.createStream(34962,Xr.buffer):za=pe.getBuffer(Xr.buffer),$s="type"in Xr?Ri[Xr.type]:za.dtype,rs=!!Xr.normalized,ea=Xr.size|0,us=Xr.offset|0,Ds=Xr.stride|0,fl=Xr.divisor|0)),as=h.location,Ma=It[as],qa===1?(Ma.buffer||xe.enableVertexAttribArray(as),Qs=ea||4,(Ma.type!==$s||Ma.size!==Qs||Ma.buffer!==za||Ma.normalized!==rs||Ma.offset!==us||Ma.stride!==Ds)&&(xe.bindBuffer(34962,za.buffer),xe.vertexAttribPointer(as,Qs,$s,rs,Ds,us),Ma.type=$s,Ma.size=Qs,Ma.buffer=za,Ma.normalized=rs,Ma.offset=us,Ma.stride=Ds),Ma.divisor!==fl&&(Mn.vertexAttribDivisorANGLE(as,fl),Ma.divisor=fl)):(Ma.buffer&&(xe.disableVertexAttribArray(as),Ma.buffer=null),(Ma.x!==ln||Ma.y!==Bo||Ma.z!==ko||Ma.w!==oo)&&(xe.vertexAttrib4f(as,ln,Bo,ko,oo),Ma.x=ln,Ma.y=Bo,Ma.z=ko,Ma.w=oo)),ho=Ga.positionBuffer,pr.buffer=ho,gs=!1,Vo=1,Do=0,Lo=0,xs=0,ks=0,Ea=null,Jn=0,Oo=!1,rl=5126,Gs=0,bs=0,zs=0,Br(pr)?(gs=!0,Ea=pe.createStream(34962,pr),rl=Ea.dtype):(Ea=pe.getBuffer(pr),Ea?rl=Ea.dtype:"constant"in pr?(Vo=2,typeof pr.constant=="number"?(Do=pr.constant,Lo=xs=ks=0):(Do=pr.constant.length>0?pr.constant[0]:0,Lo=pr.constant.length>1?pr.constant[1]:0,xs=pr.constant.length>2?pr.constant[2]:0,ks=pr.constant.length>3?pr.constant[3]:0)):(Br(pr.buffer)?Ea=pe.createStream(34962,pr.buffer):Ea=pe.getBuffer(pr.buffer),rl="type"in pr?Ri[pr.type]:Ea.dtype,Oo=!!pr.normalized,Jn=pr.size|0,Gs=pr.offset|0,bs=pr.stride|0,zs=pr.divisor|0)),$o=d.location,Aa=It[$o],Vo===1?(Aa.buffer||xe.enableVertexAttribArray($o),os=Jn||2,(Aa.type!==rl||Aa.size!==os||Aa.buffer!==Ea||Aa.normalized!==Oo||Aa.offset!==Gs||Aa.stride!==bs)&&(xe.bindBuffer(34962,Ea.buffer),xe.vertexAttribPointer($o,os,rl,Oo,bs,Gs),Aa.type=rl,Aa.size=os,Aa.buffer=Ea,Aa.normalized=Oo,Aa.offset=Gs,Aa.stride=bs),Aa.divisor!==zs&&(Mn.vertexAttribDivisorANGLE($o,zs),Aa.divisor=zs)):(Aa.buffer&&(xe.disableVertexAttribArray($o),Aa.buffer=null),(Aa.x!==Do||Aa.y!==Lo||Aa.z!==xs||Aa.w!==ks)&&(xe.vertexAttrib4f($o,Do,Lo,xs,ks),Aa.x=Do,Aa.y=Lo,Aa.z=xs,Aa.w=ks)),_l=Ga.positionBuffer,gr.buffer=_l,Ss=!1,po=1,go=0,ss=0,qo=0,zo=0,io=null,Io=0,Da=!1,vs=5126,fs=0,cl=0,el=0,Br(gr)?(Ss=!0,io=pe.createStream(34962,gr),vs=io.dtype):(io=pe.getBuffer(gr),io?vs=io.dtype:"constant"in gr?(po=2,typeof gr.constant=="number"?(go=gr.constant,ss=qo=zo=0):(go=gr.constant.length>0?gr.constant[0]:0,ss=gr.constant.length>1?gr.constant[1]:0,qo=gr.constant.length>2?gr.constant[2]:0,zo=gr.constant.length>3?gr.constant[3]:0)):(Br(gr.buffer)?io=pe.createStream(34962,gr.buffer):io=pe.getBuffer(gr.buffer),vs="type"in gr?Ri[gr.type]:io.dtype,Da=!!gr.normalized,Io=gr.size|0,fs=gr.offset|0,cl=gr.stride|0,el=gr.divisor|0)),Hs=v.location,Ro=It[Hs],po===1?(Ro.buffer||xe.enableVertexAttribArray(Hs),tl=Io||2,(Ro.type!==vs||Ro.size!==tl||Ro.buffer!==io||Ro.normalized!==Da||Ro.offset!==fs||Ro.stride!==cl)&&(xe.bindBuffer(34962,io.buffer),xe.vertexAttribPointer(Hs,tl,vs,Da,cl,fs),Ro.type=vs,Ro.size=tl,Ro.buffer=io,Ro.normalized=Da,Ro.offset=fs,Ro.stride=cl),Ro.divisor!==el&&(Mn.vertexAttribDivisorANGLE(Hs,el),Ro.divisor=el)):(Ro.buffer&&(xe.disableVertexAttribArray(Hs),Ro.buffer=null),(Ro.x!==go||Ro.y!==ss||Ro.z!==qo||Ro.w!==zo)&&(xe.vertexAttrib4f(Hs,go,ss,qo,zo),Ro.x=go,Ro.y=ss,Ro.z=qo,Ro.w=zo)),Fs=Ga.positionBuffer,ft.buffer=Fs,hl=!1,Fa=1,Ms=0,jo=0,Rs=0,Is=0,Bs=null,Tt=0,Vt=!1,wr=5126,yr=0,Fr=0,gi=0,Br(ft)?(hl=!0,Bs=pe.createStream(34962,ft),wr=Bs.dtype):(Bs=pe.getBuffer(ft),Bs?wr=Bs.dtype:"constant"in ft?(Fa=2,typeof ft.constant=="number"?(Ms=ft.constant,jo=Rs=Is=0):(Ms=ft.constant.length>0?ft.constant[0]:0,jo=ft.constant.length>1?ft.constant[1]:0,Rs=ft.constant.length>2?ft.constant[2]:0,Is=ft.constant.length>3?ft.constant[3]:0)):(Br(ft.buffer)?Bs=pe.createStream(34962,ft.buffer):Bs=pe.getBuffer(ft.buffer),wr="type"in ft?Ri[ft.type]:Bs.dtype,Vt=!!ft.normalized,Tt=ft.size|0,yr=ft.offset|0,Fr=ft.stride|0,gi=ft.divisor|0)),Ti=k.location,ki=It[Ti],Fa===1?(ki.buffer||xe.enableVertexAttribArray(Ti),Ji=Tt||2,(ki.type!==wr||ki.size!==Ji||ki.buffer!==Bs||ki.normalized!==Vt||ki.offset!==yr||ki.stride!==Fr)&&(xe.bindBuffer(34962,Bs.buffer),xe.vertexAttribPointer(Ti,Ji,wr,Vt,Fr,yr),ki.type=wr,ki.size=Ji,ki.buffer=Bs,ki.normalized=Vt,ki.offset=yr,ki.stride=Fr),ki.divisor!==gi&&(Mn.vertexAttribDivisorANGLE(Ti,gi),ki.divisor=gi)):(ki.buffer&&(xe.disableVertexAttribArray(Ti),ki.buffer=null),(ki.x!==Ms||ki.y!==jo||ki.z!==Rs||ki.w!==Is)&&(xe.vertexAttrib4f(Ti,Ms,jo,Rs,Is),ki.x=Ms,ki.y=jo,ki.z=Rs,ki.w=Is)),Fn=Ga.dashLength,(!Un||Pi!==Fn)&&(Pi=Fn,xe.uniform1f(E.location,Fn)),hi=Ga.dashTexture,hi&&hi._reglType==="framebuffer"&&(hi=hi.color[0]),Li=hi._texture,xe.uniform1i(T.location,Li.bind()),Si=Ga.depth,(!Un||Gn!==Si)&&(Gn=Si,xe.uniform1f(L.location,Si)),ta=Ga.miterLimit,(!Un||ya!==ta)&&(ya=ta,xe.uniform1f(_.location,ta)),ia=S.call(this,Oe,Ga,Un),(!Un||pa!==ia)&&(pa=ia,xe.uniform1f(C.location,ia)),va=Ga.opacity,(!Un||zn!==va)&&(zn=va,xe.uniform1f(m.location,va)),is=Ga.scale,Cs=is[0],dl=is[1],(!Un||Ks!==Cs||xl!==dl)&&(Ks=Cs,xl=dl,xe.uniform2f(P.location,Cs,dl)),Ol=Ga.thickness,(!Un||bl!==Ol)&&(bl=Ol,xe.uniform1f(A.location,Ol)),eu=Ga.translate,Zl=eu[0],ja=eu[1],(!Un||Vl!==Zl||ns!==ja)&&(Vl=Zl,ns=ja,xe.uniform2f(B.location,Zl,ja)),Js=U.call(this,Oe,Ga,Un),cs=Js[0],ll=Js[1],zl=Js[2],Rl=Js[3],(!Un||sl!==cs||il!==ll||Ml!==zl||Al!==Rl)&&(sl=cs,il=ll,Ml=zl,Al=Rl,xe.uniform4f(F.location,cs,ll,zl,Rl)),Ll=Ga.count,Ll>0?da?Mn.drawElementsInstancedANGLE(5,4,da.type,0<<(da.type-5121>>1),Ll):Mn.drawArraysInstancedANGLE(5,0,4,Ll):Ll<0&&(da?xe.drawElements(5,4,da.type,0<<(da.type-5121>>1)):xe.drawArrays(5,0,4)),Oe.viewportWidth=mo,Oe.viewportHeight=No,Vs&&pe.destroyStream(Xn),Na&&pe.destroyStream(Ao),Wo&&pe.destroyStream(za),gs&&pe.destroyStream(Ea),Ss&&pe.destroyStream(io),hl&&pe.destroyStream(Bs),Li.unbind()}ct.dirty=!0,Pt.setVAO(null),Zi&&(r.cpuTime+=performance.now()-aa)}}}});var k8=Te((N_r,RNe)=>{RNe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ue,Fe,me,Ne,ce,Ke){"use strict";var it,bt,Nt,nt,Ye,kt,At,St,Bt,Zt,Et,Ae,ot,dt,pt,at,Xe,rt,Qe,zt,Yt,lr,mr,_r,Ht,Re,xe,Oe,Ie,De,ct,_e,fe,pe,mt,It,Pt,rr,Wr,Nr,Er,Br,mi,Di,Ii,Ci,nn,ii,wi;return it=t.gl,bt=t.context,Nt=t.strings,nt=t.next,Ye=t.current,kt=t.draw,At=t.elements,St=t.buffer,Bt=t.shader,Zt=t.attributes,Et=t.vao,Ae=t.uniforms,ot=t.framebuffer,dt=t.extensions,pt=t.timer,at=t.isBufferArgs,Xe=nt.blend_color,rt=Ye.blend_color,Qe=nt.blend_equation,zt=Ye.blend_equation,Yt=nt.blend_func,lr=Ye.blend_func,mr=nt.depth_range,_r=Ye.depth_range,Ht=nt.colorMask,Re=Ye.colorMask,xe=nt.polygonOffset_offset,Oe=Ye.polygonOffset_offset,Ie=nt.sample_coverage,De=Ye.sample_coverage,ct=nt.stencil_func,_e=Ye.stencil_func,fe=nt.stencil_opFront,pe=Ye.stencil_opFront,mt=nt.stencil_opBack,It=Ye.stencil_opBack,Pt=nt.scissor_box,rr=Ye.scissor_box,Wr=nt.viewport,Nr=Ye.viewport,Er={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Br={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},mi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Di={add:32774,subtract:32778,"reverse subtract":32779},Ii={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ci={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},nn={cw:2304,ccw:2305},ii={},ii.stride=8,ii.offset=8,wi={},wi.stride=8,wi.offset=8,{draw:function(Gi){var Ft,gt,Ut,Wt,xr,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo;if(Ft=dt.angle_instanced_arrays,gt=ot.next,gt!==ot.cur&&(gt?it.bindFramebuffer(36160,gt.framebuffer):it.bindFramebuffer(36160,null),ot.cur=gt),Ye.dirty){var As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa;As=nt.dither,As!==Ye.dither&&(As?it.enable(3024):it.disable(3024),Ye.dither=As),ps=nt.depth_func,ps!==Ye.depth_func&&(it.depthFunc(ps),Ye.depth_func=ps),co=mr[0],mo=mr[1],(co!==_r[0]||mo!==_r[1])&&(it.depthRange(co,mo),_r[0]=co,_r[1]=mo),No=nt.depth_mask,No!==Ye.depth_mask&&(it.depthMask(No),Ye.depth_mask=No),jn=Ht[0],Go=Ht[1],Ys=Ht[2],qs=Ht[3],(jn!==Re[0]||Go!==Re[1]||Ys!==Re[2]||qs!==Re[3])&&(it.colorMask(jn,Go,Ys,qs),Re[0]=jn,Re[1]=Go,Re[2]=Ys,Re[3]=qs),Ns=nt.cull_enable,Ns!==Ye.cull_enable&&(Ns?it.enable(2884):it.disable(2884),Ye.cull_enable=Ns),Oa=nt.cull_face,Oa!==Ye.cull_face&&(it.cullFace(Oa),Ye.cull_face=Oa),ha=nt.frontFace,ha!==Ye.frontFace&&(it.frontFace(ha),Ye.frontFace=ha),Vs=nt.lineWidth,Vs!==Ye.lineWidth&&(it.lineWidth(Vs),Ye.lineWidth=Vs),Ya=nt.polygonOffset_enable,Ya!==Ye.polygonOffset_enable&&(Ya?it.enable(32823):it.disable(32823),Ye.polygonOffset_enable=Ya),_n=xe[0],Vn=xe[1],(_n!==Oe[0]||Vn!==Oe[1])&&(it.polygonOffset(_n,Vn),Oe[0]=_n,Oe[1]=Vn),wo=nt.sample_alpha,wo!==Ye.sample_alpha&&(wo?it.enable(32926):it.disable(32926),Ye.sample_alpha=wo),Ra=nt.sample_enable,Ra!==Ye.sample_enable&&(Ra?it.enable(32928):it.disable(32928),Ye.sample_enable=Ra),Xn=Ie[0],un=Ie[1],(Xn!==De[0]||un!==De[1])&&(it.sampleCoverage(Xn,un),De[0]=Xn,De[1]=un),$n=nt.stencil_mask,$n!==Ye.stencil_mask&&(it.stencilMask($n),Ye.stencil_mask=$n),Ka=ct[0],qn=ct[1],Eo=ct[2],(Ka!==_e[0]||qn!==_e[1]||Eo!==_e[2])&&(it.stencilFunc(Ka,qn,Eo),_e[0]=Ka,_e[1]=qn,_e[2]=Eo),Ja=fe[0],lo=fe[1],eo=fe[2],sa=fe[3],(Ja!==pe[0]||lo!==pe[1]||eo!==pe[2]||sa!==pe[3])&&(it.stencilOpSeparate(Ja,lo,eo,sa),pe[0]=Ja,pe[1]=lo,pe[2]=eo,pe[3]=sa),es=mt[0],Na=mt[1],tn=mt[2],Pa=mt[3],(es!==It[0]||Na!==It[1]||tn!==It[2]||Pa!==It[3])&&(it.stencilOpSeparate(es,Na,tn,Pa),It[0]=es,It[1]=Na,It[2]=tn,It[3]=Pa)}Ut=Gi.viewport,Wt=Ut.x|0,xr=Ut.y|0,Lr="width"in Ut?Ut.width|0:bt.framebufferWidth-Wt,Ur="height"in Ut?Ut.height|0:bt.framebufferHeight-xr,Ir=bt.viewportWidth,bt.viewportWidth=Lr,Gr=bt.viewportHeight,bt.viewportHeight=Ur,it.viewport(Wt,xr,Lr,Ur),Nr[0]=Wt,Nr[1]=xr,Nr[2]=Lr,Nr[3]=Ur,it.blendColor(0,0,0,0),rt[0]=0,rt[1]=0,rt[2]=0,rt[3]=0,n?it.enable(3042):it.disable(3042),Ye.blend_enable=n,it.blendEquationSeparate(32774,32774),zt[0]=32774,zt[1]=32774,it.blendFuncSeparate(770,771,773,1),lr[0]=770,lr[1]=771,lr[2]=773,lr[3]=1,i?it.enable(2929):it.disable(2929),Ye.depth_enable=i,jr=Gi.viewport,yi=jr.x|0,Ei=jr.y|0,Vi="width"in jr?jr.width|0:bt.framebufferWidth-yi,ti="height"in jr?jr.height|0:bt.framebufferHeight-Ei,it.scissor(yi,Ei,Vi,ti),rr[0]=yi,rr[1]=Ei,rr[2]=Vi,rr[3]=ti,a?it.enable(3089):it.disable(3089),Ye.scissor_enable=a,o?it.enable(2960):it.disable(2960),Ye.stencil_enable=o,en=Ye.profile,en&&(Yr=performance.now(),r.count++),it.useProgram(s.program),oi=dt.angle_instanced_arrays,Et.setVAO(null),Bi=Gi.positionBuffer,ii.buffer=Bi,an=!1,rn=1,Fi=0,Ri=0,xn=0,xi=0,Xr=null,ft=0,tr=!1,pr=5126,gr=0,Zr=0,Ai=0,at(ii)?(an=!0,Xr=St.createStream(34962,ii),pr=Xr.dtype):(Xr=St.getBuffer(ii),Xr?pr=Xr.dtype:"constant"in ii?(rn=2,typeof ii.constant=="number"?(Fi=ii.constant,Ri=xn=xi=0):(Fi=ii.constant.length>0?ii.constant[0]:0,Ri=ii.constant.length>1?ii.constant[1]:0,xn=ii.constant.length>2?ii.constant[2]:0,xi=ii.constant.length>3?ii.constant[3]:0)):(at(ii.buffer)?Xr=St.createStream(34962,ii.buffer):Xr=St.getBuffer(ii.buffer),pr="type"in ii?Ci[ii.type]:Xr.dtype,tr=!!ii.normalized,ft=ii.size|0,gr=ii.offset|0,Zr=ii.stride|0,Ai=ii.divisor|0)),Qi=u.location,ni=Zt[Qi],rn===1?(ni.buffer||it.enableVertexAttribArray(Qi),Zi=ft||2,(ni.type!==pr||ni.size!==Zi||ni.buffer!==Xr||ni.normalized!==tr||ni.offset!==gr||ni.stride!==Zr)&&(it.bindBuffer(34962,Xr.buffer),it.vertexAttribPointer(Qi,Zi,pr,tr,Zr,gr),ni.type=pr,ni.size=Zi,ni.buffer=Xr,ni.normalized=tr,ni.offset=gr,ni.stride=Zr),ni.divisor!==Ai&&(oi.vertexAttribDivisorANGLE(Qi,Ai),ni.divisor=Ai)):(ni.buffer&&(it.disableVertexAttribArray(Qi),ni.buffer=null),(ni.x!==Fi||ni.y!==Ri||ni.z!==xn||ni.w!==xi)&&(it.vertexAttrib4f(Qi,Fi,Ri,xn,xi),ni.x=Fi,ni.y=Ri,ni.z=xn,ni.w=xi)),aa=Gi.positionFractBuffer,wi.buffer=aa,Mn=!1,Un=1,Ga=0,ma=0,oa=0,ka=0,so=null,Kr=0,Ia=!1,Yo=5126,fa=0,kn=0,Ta=0,at(wi)?(Mn=!0,so=St.createStream(34962,wi),Yo=so.dtype):(so=St.getBuffer(wi),so?Yo=so.dtype:"constant"in wi?(Un=2,typeof wi.constant=="number"?(Ga=wi.constant,ma=oa=ka=0):(Ga=wi.constant.length>0?wi.constant[0]:0,ma=wi.constant.length>1?wi.constant[1]:0,oa=wi.constant.length>2?wi.constant[2]:0,ka=wi.constant.length>3?wi.constant[3]:0)):(at(wi.buffer)?so=St.createStream(34962,wi.buffer):so=St.getBuffer(wi.buffer),Yo="type"in wi?Ci[wi.type]:so.dtype,Ia=!!wi.normalized,Kr=wi.size|0,fa=wi.offset|0,kn=wi.stride|0,Ta=wi.divisor|0)),ys=l.location,uo=Zt[ys],Un===1?(uo.buffer||it.enableVertexAttribArray(ys),ls=Kr||2,(uo.type!==Yo||uo.size!==ls||uo.buffer!==so||uo.normalized!==Ia||uo.offset!==fa||uo.stride!==kn)&&(it.bindBuffer(34962,so.buffer),it.vertexAttribPointer(ys,ls,Yo,Ia,kn,fa),uo.type=Yo,uo.size=ls,uo.buffer=so,uo.normalized=Ia,uo.offset=fa,uo.stride=kn),uo.divisor!==Ta&&(oi.vertexAttribDivisorANGLE(ys,Ta),uo.divisor=Ta)):(uo.buffer&&(it.disableVertexAttribArray(ys),uo.buffer=null),(uo.x!==Ga||uo.y!==ma||uo.z!==oa||uo.w!==ka)&&(it.vertexAttrib4f(ys,Ga,ma,oa,ka),uo.x=Ga,uo.y=ma,uo.z=oa,uo.w=ka)),$a=Gi.fill,fo=$a[0],mn=$a[1],ra=$a[2],wa=$a[3],it.uniform4f(f.location,fo,mn,ra,wa),ws=Gi.id,it.uniform1f(c.location,ws),Co=Gi.opacity,it.uniform1f(h.location,Co),Po=Gi.scale,ji=Po[0],gn=Po[1],it.uniform2f(d.location,ji,gn),Ps=Gi.scaleFract,Ha=Ps[0],Sn=Ps[1],it.uniform2f(p.location,Ha,Sn),ao=Gi.translate,Ba=ao[0],Ko=ao[1],it.uniform2f(x.location,Ba,Ko),Qo=Gi.translateFract,Wi=Qo[0],Sa=Qo[1],it.uniform2f(b.location,Wi,Sa),Qa=v.call(this,bt,Gi,0),vn=null,da=at(Qa),da?vn=At.createStream(Qa):vn=At.getElements(Qa),vn&&it.bindBuffer(34963,vn.buffer.buffer),la=vn?vn.vertCount:-1,la&&(vo=kt.instances,vo>0?vn?oi.drawElementsInstancedANGLE(4,la,vn.type,0<<(vn.type-5121>>1),vo):oi.drawArraysInstancedANGLE(4,0,la,vo):vo<0&&(vn?it.drawElements(4,la,vn.type,0<<(vn.type-5121>>1)):it.drawArrays(4,0,la)),Ye.dirty=!0,Et.setVAO(null),bt.viewportWidth=Ir,bt.viewportHeight=Gr,en&&(r.cpuTime+=performance.now()-Yr),an&&St.destroyStream(Xr),Mn&&St.destroyStream(so),da&&At.destroyStream(vn))},scope:function(Gi,Ft,gt){var Ut,Wt,xr,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho;Ut=Gi.viewport,Wt=Ut.x|0,xr=Ut.y|0,Lr="width"in Ut?Ut.width|0:bt.framebufferWidth-Wt,Ur="height"in Ut?Ut.height|0:bt.framebufferHeight-xr,Ir=bt.viewportWidth,bt.viewportWidth=Lr,Gr=bt.viewportHeight,bt.viewportHeight=Ur,jr=Wr[0],Wr[0]=Wt,yi=Wr[1],Wr[1]=xr,Ei=Wr[2],Wr[2]=Lr,Vi=Wr[3],Wr[3]=Ur,ti=Xe[0],Xe[0]=k,en=Xe[1],Xe[1]=E,Yr=Xe[2],Xe[2]=T,oi=Xe[3],Xe[3]=L,Bi=nt.blend_enable,nt.blend_enable=_,an=Qe[0],Qe[0]=C,rn=Qe[1],Qe[1]=S,Fi=Yt[0],Yt[0]=m,Ri=Yt[1],Yt[1]=P,xn=Yt[2],Yt[2]=A,xi=Yt[3],Yt[3]=B,Xr=nt.depth_enable,nt.depth_enable=F,ft=Gi.viewport,tr=ft.x|0,pr=ft.y|0,gr="width"in ft?ft.width|0:bt.framebufferWidth-tr,Zr="height"in ft?ft.height|0:bt.framebufferHeight-pr,Ai=Pt[0],Pt[0]=tr,Qi=Pt[1],Pt[1]=pr,ni=Pt[2],Pt[2]=gr,Zi=Pt[3],Pt[3]=Zr,aa=nt.scissor_enable,nt.scissor_enable=U,Mn=nt.stencil_enable,nt.stencil_enable=G,Un=Ye.profile,Un&&(Ga=performance.now(),r.count++),ma=v.call(this,bt,Gi,gt),oa=null,ka=at(ma),ka?oa=At.createStream(ma):oa=At.getElements(ma),so=kt.elements,kt.elements=oa,Kr=kt.offset,kt.offset=j,Ia=oa?oa.vertCount:-1,Yo=kt.count,kt.count=Ia,fa=kt.primitive,kt.primitive=H,kn=Gi.scale,Ta=Ae[N],Ae[N]=kn,ys=Gi.fill,uo=Ae[W],Ae[W]=ys,ls=Gi.scaleFract,$a=Ae[re],Ae[re]=ls,fo=Gi.translateFract,mn=Ae[ae],Ae[ae]=fo,ra=Gi.translate,wa=Ae[be],Ae[be]=ra,ws=Gi.opacity,Co=Ae[Pe],Ae[Pe]=ws,Po=bt.pixelRatio,ji=Ae[Ce],Ae[Ce]=Po,gn=Gi.id,Ps=Ae[de],Ae[de]=gn,Ha=te.call(this,bt,Gi,gt),Sn=Ae[ke],Ae[ke]=Ha,ao=Gi.positionBuffer,ii.buffer=ao,Ba=!1,Ko=1,Qo=0,Wi=0,Sa=0,Qa=0,vn=null,da=0,la=!1,vo=5126,As=0,ps=0,co=0,at(ii)?(Ba=!0,vn=St.createStream(34962,ii),vo=vn.dtype):(vn=St.getBuffer(ii),vn?vo=vn.dtype:"constant"in ii?(Ko=2,typeof ii.constant=="number"?(Qo=ii.constant,Wi=Sa=Qa=0):(Qo=ii.constant.length>0?ii.constant[0]:0,Wi=ii.constant.length>1?ii.constant[1]:0,Sa=ii.constant.length>2?ii.constant[2]:0,Qa=ii.constant.length>3?ii.constant[3]:0)):(at(ii.buffer)?vn=St.createStream(34962,ii.buffer):vn=St.getBuffer(ii.buffer),vo="type"in ii?Ci[ii.type]:vn.dtype,la=!!ii.normalized,da=ii.size|0,As=ii.offset|0,ps=ii.stride|0,co=ii.divisor|0)),mo=Ee.state,Ee.state=Ko,No=Ee.x,Ee.x=Qo,jn=Ee.y,Ee.y=Wi,Go=Ee.z,Ee.z=Sa,Ys=Ee.w,Ee.w=Qa,qs=Ee.buffer,Ee.buffer=vn,Ns=Ee.size,Ee.size=da,Oa=Ee.normalized,Ee.normalized=la,ha=Ee.type,Ee.type=vo,Vs=Ee.offset,Ee.offset=As,Ya=Ee.stride,Ee.stride=ps,_n=Ee.divisor,Ee.divisor=co,Vn=Gi.positionFractBuffer,wi.buffer=Vn,wo=!1,Ra=1,Xn=0,un=0,$n=0,Ka=0,qn=null,Eo=0,Ja=!1,lo=5126,eo=0,sa=0,es=0,at(wi)?(wo=!0,qn=St.createStream(34962,wi),lo=qn.dtype):(qn=St.getBuffer(wi),qn?lo=qn.dtype:"constant"in wi?(Ra=2,typeof wi.constant=="number"?(Xn=wi.constant,un=$n=Ka=0):(Xn=wi.constant.length>0?wi.constant[0]:0,un=wi.constant.length>1?wi.constant[1]:0,$n=wi.constant.length>2?wi.constant[2]:0,Ka=wi.constant.length>3?wi.constant[3]:0)):(at(wi.buffer)?qn=St.createStream(34962,wi.buffer):qn=St.getBuffer(wi.buffer),lo="type"in wi?Ci[wi.type]:qn.dtype,Ja=!!wi.normalized,Eo=wi.size|0,eo=wi.offset|0,sa=wi.stride|0,es=wi.divisor|0)),Na=Me.state,Me.state=Ra,tn=Me.x,Me.x=Xn,Pa=Me.y,Me.y=un,to=Me.z,Me.z=$n,yo=Me.w,Me.w=Ka,Jo=Me.buffer,Me.buffer=qn,Ao=Me.size,Me.size=Eo,Dn=Me.normalized,Me.normalized=Ja,_a=Me.type,Me.type=lo,Ws=Me.offset,Me.offset=eo,Ca=Me.stride,Me.stride=sa,Es=Me.divisor,Me.divisor=es,Ts=Bt.vert,Bt.vert=Ue,Ho=Bt.frag,Bt.frag=Fe,Ye.dirty=!0,Ft(bt,Gi,gt),bt.viewportWidth=Ir,bt.viewportHeight=Gr,Wr[0]=jr,Wr[1]=yi,Wr[2]=Ei,Wr[3]=Vi,Xe[0]=ti,Xe[1]=en,Xe[2]=Yr,Xe[3]=oi,nt.blend_enable=Bi,Qe[0]=an,Qe[1]=rn,Yt[0]=Fi,Yt[1]=Ri,Yt[2]=xn,Yt[3]=xi,nt.depth_enable=Xr,Pt[0]=Ai,Pt[1]=Qi,Pt[2]=ni,Pt[3]=Zi,nt.scissor_enable=aa,nt.stencil_enable=Mn,Un&&(r.cpuTime+=performance.now()-Ga),ka&&At.destroyStream(oa),kt.elements=so,kt.offset=Kr,kt.count=Yo,kt.primitive=fa,Ae[N]=Ta,Ae[W]=uo,Ae[re]=$a,Ae[ae]=mn,Ae[be]=wa,Ae[Pe]=Co,Ae[Ce]=ji,Ae[de]=Ps,Ae[ke]=Sn,Ba&&St.destroyStream(vn),Ee.state=mo,Ee.x=No,Ee.y=jn,Ee.z=Go,Ee.w=Ys,Ee.buffer=qs,Ee.size=Ns,Ee.normalized=Oa,Ee.type=ha,Ee.offset=Vs,Ee.stride=Ya,Ee.divisor=_n,wo&&St.destroyStream(qn),Me.state=Na,Me.x=tn,Me.y=Pa,Me.z=to,Me.w=yo,Me.buffer=Jo,Me.size=Ao,Me.normalized=Dn,Me.type=_a,Me.offset=Ws,Me.stride=Ca,Me.divisor=Es,Bt.vert=Ts,Bt.frag=Ho,Ye.dirty=!0},batch:function(Gi,Ft){var gt,Ut,Wt,xr,Lr,Ur,Ir;if(gt=dt.angle_instanced_arrays,Ut=ot.next,Ut!==ot.cur&&(Ut?it.bindFramebuffer(36160,Ut.framebuffer):it.bindFramebuffer(36160,null),ot.cur=Ut),Ye.dirty){var Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa;Gr=nt.dither,Gr!==Ye.dither&&(Gr?it.enable(3024):it.disable(3024),Ye.dither=Gr),jr=nt.depth_func,jr!==Ye.depth_func&&(it.depthFunc(jr),Ye.depth_func=jr),yi=mr[0],Ei=mr[1],(yi!==_r[0]||Ei!==_r[1])&&(it.depthRange(yi,Ei),_r[0]=yi,_r[1]=Ei),Vi=nt.depth_mask,Vi!==Ye.depth_mask&&(it.depthMask(Vi),Ye.depth_mask=Vi),ti=Ht[0],en=Ht[1],Yr=Ht[2],oi=Ht[3],(ti!==Re[0]||en!==Re[1]||Yr!==Re[2]||oi!==Re[3])&&(it.colorMask(ti,en,Yr,oi),Re[0]=ti,Re[1]=en,Re[2]=Yr,Re[3]=oi),Bi=nt.cull_enable,Bi!==Ye.cull_enable&&(Bi?it.enable(2884):it.disable(2884),Ye.cull_enable=Bi),an=nt.cull_face,an!==Ye.cull_face&&(it.cullFace(an),Ye.cull_face=an),rn=nt.frontFace,rn!==Ye.frontFace&&(it.frontFace(rn),Ye.frontFace=rn),Fi=nt.lineWidth,Fi!==Ye.lineWidth&&(it.lineWidth(Fi),Ye.lineWidth=Fi),Ri=nt.polygonOffset_enable,Ri!==Ye.polygonOffset_enable&&(Ri?it.enable(32823):it.disable(32823),Ye.polygonOffset_enable=Ri),xn=xe[0],xi=xe[1],(xn!==Oe[0]||xi!==Oe[1])&&(it.polygonOffset(xn,xi),Oe[0]=xn,Oe[1]=xi),Xr=nt.sample_alpha,Xr!==Ye.sample_alpha&&(Xr?it.enable(32926):it.disable(32926),Ye.sample_alpha=Xr),ft=nt.sample_enable,ft!==Ye.sample_enable&&(ft?it.enable(32928):it.disable(32928),Ye.sample_enable=ft),tr=Ie[0],pr=Ie[1],(tr!==De[0]||pr!==De[1])&&(it.sampleCoverage(tr,pr),De[0]=tr,De[1]=pr),gr=nt.stencil_mask,gr!==Ye.stencil_mask&&(it.stencilMask(gr),Ye.stencil_mask=gr),Zr=ct[0],Ai=ct[1],Qi=ct[2],(Zr!==_e[0]||Ai!==_e[1]||Qi!==_e[2])&&(it.stencilFunc(Zr,Ai,Qi),_e[0]=Zr,_e[1]=Ai,_e[2]=Qi),ni=fe[0],Zi=fe[1],aa=fe[2],Mn=fe[3],(ni!==pe[0]||Zi!==pe[1]||aa!==pe[2]||Mn!==pe[3])&&(it.stencilOpSeparate(ni,Zi,aa,Mn),pe[0]=ni,pe[1]=Zi,pe[2]=aa,pe[3]=Mn),Un=mt[0],Ga=mt[1],ma=mt[2],oa=mt[3],(Un!==It[0]||Ga!==It[1]||ma!==It[2]||oa!==It[3])&&(it.stencilOpSeparate(Un,Ga,ma,oa),It[0]=Un,It[1]=Ga,It[2]=ma,It[3]=oa)}it.blendColor(0,0,0,0),rt[0]=0,rt[1]=0,rt[2]=0,rt[3]=0,me?it.enable(3042):it.disable(3042),Ye.blend_enable=me,it.blendEquationSeparate(32774,32774),zt[0]=32774,zt[1]=32774,it.blendFuncSeparate(770,771,773,1),lr[0]=770,lr[1]=771,lr[2]=773,lr[3]=1,Ne?it.enable(2929):it.disable(2929),Ye.depth_enable=Ne,ce?it.enable(3089):it.disable(3089),Ye.scissor_enable=ce,Ke?it.enable(2960):it.disable(2960),Ye.stencil_enable=Ke,Wt=Ye.profile,Wt&&(xr=performance.now(),r.count+=Ft),it.useProgram(s.program),Lr=dt.angle_instanced_arrays;var ka;for(Et.setVAO(null),ka=kt.instances,Ur=0;Ur0?ii.constant[0]:0,Co=ii.constant.length>1?ii.constant[1]:0,Po=ii.constant.length>2?ii.constant[2]:0,ji=ii.constant.length>3?ii.constant[3]:0)):(at(ii.buffer)?gn=St.createStream(34962,ii.buffer):gn=St.getBuffer(ii.buffer),Sn="type"in ii?Ci[ii.type]:gn.dtype,Ha=!!ii.normalized,Ps=ii.size|0,ao=ii.offset|0,Ba=ii.stride|0,Ko=ii.divisor|0)),Qo=u.location,Wi=Zt[Qo],wa===1?(Wi.buffer||it.enableVertexAttribArray(Qo),Sa=Ps||2,(Wi.type!==Sn||Wi.size!==Sa||Wi.buffer!==gn||Wi.normalized!==Ha||Wi.offset!==ao||Wi.stride!==Ba)&&(it.bindBuffer(34962,gn.buffer),it.vertexAttribPointer(Qo,Sa,Sn,Ha,Ba,ao),Wi.type=Sn,Wi.size=Sa,Wi.buffer=gn,Wi.normalized=Ha,Wi.offset=ao,Wi.stride=Ba),Wi.divisor!==Ko&&(Lr.vertexAttribDivisorANGLE(Qo,Ko),Wi.divisor=Ko)):(Wi.buffer&&(it.disableVertexAttribArray(Qo),Wi.buffer=null),(Wi.x!==ws||Wi.y!==Co||Wi.z!==Po||Wi.w!==ji)&&(it.vertexAttrib4f(Qo,ws,Co,Po,ji),Wi.x=ws,Wi.y=Co,Wi.z=Po,Wi.w=ji)),Qa=Ir.positionFractBuffer,wi.buffer=Qa,vn=!1,da=1,la=0,vo=0,As=0,ps=0,co=null,mo=0,No=!1,jn=5126,Go=0,Ys=0,qs=0,at(wi)?(vn=!0,co=St.createStream(34962,wi),jn=co.dtype):(co=St.getBuffer(wi),co?jn=co.dtype:"constant"in wi?(da=2,typeof wi.constant=="number"?(la=wi.constant,vo=As=ps=0):(la=wi.constant.length>0?wi.constant[0]:0,vo=wi.constant.length>1?wi.constant[1]:0,As=wi.constant.length>2?wi.constant[2]:0,ps=wi.constant.length>3?wi.constant[3]:0)):(at(wi.buffer)?co=St.createStream(34962,wi.buffer):co=St.getBuffer(wi.buffer),jn="type"in wi?Ci[wi.type]:co.dtype,No=!!wi.normalized,mo=wi.size|0,Go=wi.offset|0,Ys=wi.stride|0,qs=wi.divisor|0)),Ns=l.location,Oa=Zt[Ns],da===1?(Oa.buffer||it.enableVertexAttribArray(Ns),ha=mo||2,(Oa.type!==jn||Oa.size!==ha||Oa.buffer!==co||Oa.normalized!==No||Oa.offset!==Go||Oa.stride!==Ys)&&(it.bindBuffer(34962,co.buffer),it.vertexAttribPointer(Ns,ha,jn,No,Ys,Go),Oa.type=jn,Oa.size=ha,Oa.buffer=co,Oa.normalized=No,Oa.offset=Go,Oa.stride=Ys),Oa.divisor!==qs&&(Lr.vertexAttribDivisorANGLE(Ns,qs),Oa.divisor=qs)):(Oa.buffer&&(it.disableVertexAttribArray(Ns),Oa.buffer=null),(Oa.x!==la||Oa.y!==vo||Oa.z!==As||Oa.w!==ps)&&(it.vertexAttrib4f(Ns,la,vo,As,ps),Oa.x=la,Oa.y=vo,Oa.z=As,Oa.w=ps)),Vs=Ir.fill,Ya=Vs[0],Vn=Vs[1],Ra=Vs[2],un=Vs[3],(!Ur||_n!==Ya||wo!==Vn||Xn!==Ra||$n!==un)&&(_n=Ya,wo=Vn,Xn=Ra,$n=un,it.uniform4f(f.location,Ya,Vn,Ra,un)),Ka=Ir.id,(!Ur||qn!==Ka)&&(qn=Ka,it.uniform1f(c.location,Ka)),Eo=Ir.opacity,(!Ur||Ja!==Eo)&&(Ja=Eo,it.uniform1f(h.location,Eo)),lo=Ir.scale,eo=lo[0],es=lo[1],(!Ur||sa!==eo||Na!==es)&&(sa=eo,Na=es,it.uniform2f(d.location,eo,es)),tn=Ir.scaleFract,Pa=tn[0],yo=tn[1],(!Ur||to!==Pa||Jo!==yo)&&(to=Pa,Jo=yo,it.uniform2f(p.location,Pa,yo)),Ao=Ir.translate,Dn=Ao[0],Ws=Ao[1],(!Ur||_a!==Dn||Ca!==Ws)&&(_a=Dn,Ca=Ws,it.uniform2f(x.location,Dn,Ws)),Es=Ir.translateFract,Ts=Es[0],Wa=Es[1],(!Ur||Ho!==Ts||To!==Wa)&&(Ho=Ts,To=Wa,it.uniform2f(b.location,Ts,Wa)),ts=v.call(this,bt,Ir,Ur),Wo=null,qa=at(ts),qa?Wo=At.createStream(ts):Wo=At.getElements(ts),Wo&&it.bindBuffer(34963,Wo.buffer.buffer),ln=Wo?Wo.vertCount:-1,ln&&(ka>0?Wo?Lr.drawElementsInstancedANGLE(4,ln,Wo.type,0<<(Wo.type-5121>>1),ka):Lr.drawArraysInstancedANGLE(4,0,ln,ka):ka<0&&(Wo?it.drawElements(4,ln,Wo.type,0<<(Wo.type-5121>>1)):it.drawArrays(4,0,ln)),bt.viewportWidth=kn,bt.viewportHeight=Ta,ra&&St.destroyStream(gn),vn&&St.destroyStream(co),qa&&At.destroyStream(Wo))}Ye.dirty=!0,Et.setVAO(null),Wt&&(r.cpuTime+=performance.now()-xr)}}}});var C8=Te((U_r,DNe)=>{DNe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ue,Fe,me,Ne,ce,Ke,it,bt,Nt,nt,Ye,kt,At,St,Bt,Zt,Et,Ae,ot,dt,pt,at,Xe,rt,Qe,zt,Yt,lr,mr,_r,Ht){"use strict";var Re,xe,Oe,Ie,De,ct,_e,fe,pe,mt,It,Pt,rr,Wr,Nr,Er,Br,mi,Di,Ii,Ci,nn,ii,wi,Gi,Ft,gt,Ut,Wt,xr,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri;return Re=t.gl,xe=t.context,Oe=t.strings,Ie=t.next,De=t.current,ct=t.draw,_e=t.elements,fe=t.buffer,pe=t.shader,mt=t.attributes,It=t.vao,Pt=t.uniforms,rr=t.framebuffer,Wr=t.extensions,Nr=t.timer,Er=t.isBufferArgs,Br=Ie.blend_color,mi=De.blend_color,Di=Ie.blend_equation,Ii=De.blend_equation,Ci=Ie.blend_func,nn=De.blend_func,ii=Ie.depth_range,wi=De.depth_range,Gi=Ie.colorMask,Ft=De.colorMask,gt=Ie.polygonOffset_offset,Ut=De.polygonOffset_offset,Wt=Ie.sample_coverage,xr=De.sample_coverage,Lr=Ie.stencil_func,Ur=De.stencil_func,Ir=Ie.stencil_opFront,Gr=De.stencil_opFront,jr=Ie.stencil_opBack,yi=De.stencil_opBack,Ei=Ie.scissor_box,Vi=De.scissor_box,ti=Ie.viewport,en=De.viewport,Yr={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},oi={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Bi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},an={add:32774,subtract:32778,"reverse subtract":32779},rn={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Fi={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ri={cw:2304,ccw:2305},{draw:function(xn){var xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,Tt,Vt,wr,yr,Fr,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,il,zl;if(xi=Wr.angle_instanced_arrays,Xr=rr.next,Xr!==rr.cur&&(Xr?Re.bindFramebuffer(36160,Xr.framebuffer):Re.bindFramebuffer(36160,null),rr.cur=Xr),De.dirty){var Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Ul,le,w,q,Q,ee,ue,Ve,et,yt,Dt,ir,or,kr,Vr,he,Se,qe,Ge,lt,tt,vt,Gt,nr,cr,Ar;Ml=Ie.dither,Ml!==De.dither&&(Ml?Re.enable(3024):Re.disable(3024),De.dither=Ml),Rl=Di[0],Al=Di[1],(Rl!==Ii[0]||Al!==Ii[1])&&(Re.blendEquationSeparate(Rl,Al),Ii[0]=Rl,Ii[1]=Al),Ll=Ie.depth_func,Ll!==De.depth_func&&(Re.depthFunc(Ll),De.depth_func=Ll),ms=ii[0],Os=ii[1],(ms!==wi[0]||Os!==wi[1])&&(Re.depthRange(ms,Os),wi[0]=ms,wi[1]=Os),Xl=Ie.depth_mask,Xl!==De.depth_mask&&(Re.depthMask(Xl),De.depth_mask=Xl),Gl=Gi[0],Ul=Gi[1],le=Gi[2],w=Gi[3],(Gl!==Ft[0]||Ul!==Ft[1]||le!==Ft[2]||w!==Ft[3])&&(Re.colorMask(Gl,Ul,le,w),Ft[0]=Gl,Ft[1]=Ul,Ft[2]=le,Ft[3]=w),q=Ie.cull_enable,q!==De.cull_enable&&(q?Re.enable(2884):Re.disable(2884),De.cull_enable=q),Q=Ie.cull_face,Q!==De.cull_face&&(Re.cullFace(Q),De.cull_face=Q),ee=Ie.frontFace,ee!==De.frontFace&&(Re.frontFace(ee),De.frontFace=ee),ue=Ie.lineWidth,ue!==De.lineWidth&&(Re.lineWidth(ue),De.lineWidth=ue),Ve=Ie.polygonOffset_enable,Ve!==De.polygonOffset_enable&&(Ve?Re.enable(32823):Re.disable(32823),De.polygonOffset_enable=Ve),et=gt[0],yt=gt[1],(et!==Ut[0]||yt!==Ut[1])&&(Re.polygonOffset(et,yt),Ut[0]=et,Ut[1]=yt),Dt=Ie.sample_alpha,Dt!==De.sample_alpha&&(Dt?Re.enable(32926):Re.disable(32926),De.sample_alpha=Dt),ir=Ie.sample_enable,ir!==De.sample_enable&&(ir?Re.enable(32928):Re.disable(32928),De.sample_enable=ir),or=Wt[0],kr=Wt[1],(or!==xr[0]||kr!==xr[1])&&(Re.sampleCoverage(or,kr),xr[0]=or,xr[1]=kr),Vr=Ie.stencil_mask,Vr!==De.stencil_mask&&(Re.stencilMask(Vr),De.stencil_mask=Vr),he=Lr[0],Se=Lr[1],qe=Lr[2],(he!==Ur[0]||Se!==Ur[1]||qe!==Ur[2])&&(Re.stencilFunc(he,Se,qe),Ur[0]=he,Ur[1]=Se,Ur[2]=qe),Ge=Ir[0],lt=Ir[1],tt=Ir[2],vt=Ir[3],(Ge!==Gr[0]||lt!==Gr[1]||tt!==Gr[2]||vt!==Gr[3])&&(Re.stencilOpSeparate(Ge,lt,tt,vt),Gr[0]=Ge,Gr[1]=lt,Gr[2]=tt,Gr[3]=vt),Gt=jr[0],nr=jr[1],cr=jr[2],Ar=jr[3],(Gt!==yi[0]||nr!==yi[1]||cr!==yi[2]||Ar!==yi[3])&&(Re.stencilOpSeparate(Gt,nr,cr,Ar),yi[0]=Gt,yi[1]=nr,yi[2]=cr,yi[3]=Ar)}ft=xn.viewport,tr=ft.x|0,pr=ft.y|0,gr="width"in ft?ft.width|0:xe.framebufferWidth-tr,Zr="height"in ft?ft.height|0:xe.framebufferHeight-pr,Ai=xe.viewportWidth,xe.viewportWidth=gr,Qi=xe.viewportHeight,xe.viewportHeight=Zr,Re.viewport(tr,pr,gr,Zr),en[0]=tr,en[1]=pr,en[2]=gr,en[3]=Zr,Re.blendColor(0,0,0,1),mi[0]=0,mi[1]=0,mi[2]=0,mi[3]=1,n?Re.enable(3042):Re.disable(3042),De.blend_enable=n,Re.blendFuncSeparate(770,771,773,1),nn[0]=770,nn[1]=771,nn[2]=773,nn[3]=1,i?Re.enable(2929):Re.disable(2929),De.depth_enable=i,ni=xn.viewport,Zi=ni.x|0,aa=ni.y|0,Mn="width"in ni?ni.width|0:xe.framebufferWidth-Zi,Un="height"in ni?ni.height|0:xe.framebufferHeight-aa,Re.scissor(Zi,aa,Mn,Un),Vi[0]=Zi,Vi[1]=aa,Vi[2]=Mn,Vi[3]=Un,a?Re.enable(3089):Re.disable(3089),De.scissor_enable=a,o?Re.enable(2960):Re.disable(2960),De.stencil_enable=o,Ga=De.profile,Ga&&(ma=performance.now(),r.count++),Re.useProgram(s.program),oa=Wr.angle_instanced_arrays,It.setVAO(null),ka=u.call(this,xe,xn,0),so=!1,Kr=1,Ia=0,Yo=0,fa=0,kn=0,Ta=null,ys=0,uo=!1,ls=5126,$a=0,fo=0,mn=0,Er(ka)?(so=!0,Ta=fe.createStream(34962,ka),ls=Ta.dtype):(Ta=fe.getBuffer(ka),Ta?ls=Ta.dtype:"constant"in ka?(Kr=2,typeof ka.constant=="number"?(Ia=ka.constant,Yo=fa=kn=0):(Ia=ka.constant.length>0?ka.constant[0]:0,Yo=ka.constant.length>1?ka.constant[1]:0,fa=ka.constant.length>2?ka.constant[2]:0,kn=ka.constant.length>3?ka.constant[3]:0)):(Er(ka.buffer)?Ta=fe.createStream(34962,ka.buffer):Ta=fe.getBuffer(ka.buffer),ls="type"in ka?Fi[ka.type]:Ta.dtype,uo=!!ka.normalized,ys=ka.size|0,$a=ka.offset|0,fo=ka.stride|0,mn=ka.divisor|0)),ra=l.location,wa=mt[ra],Kr===1?(wa.buffer||Re.enableVertexAttribArray(ra),ws=ys||4,(wa.type!==ls||wa.size!==ws||wa.buffer!==Ta||wa.normalized!==uo||wa.offset!==$a||wa.stride!==fo)&&(Re.bindBuffer(34962,Ta.buffer),Re.vertexAttribPointer(ra,ws,ls,uo,fo,$a),wa.type=ls,wa.size=ws,wa.buffer=Ta,wa.normalized=uo,wa.offset=$a,wa.stride=fo),wa.divisor!==mn&&(oa.vertexAttribDivisorANGLE(ra,mn),wa.divisor=mn)):(wa.buffer&&(Re.disableVertexAttribArray(ra),wa.buffer=null),(wa.x!==Ia||wa.y!==Yo||wa.z!==fa||wa.w!==kn)&&(Re.vertexAttrib4f(ra,Ia,Yo,fa,kn),wa.x=Ia,wa.y=Yo,wa.z=fa,wa.w=kn)),Co=f.call(this,xe,xn,0),Po=!1,ji=1,gn=0,Ps=0,Ha=0,Sn=0,ao=null,Ba=0,Ko=!1,Qo=5126,Wi=0,Sa=0,Qa=0,Er(Co)?(Po=!0,ao=fe.createStream(34962,Co),Qo=ao.dtype):(ao=fe.getBuffer(Co),ao?Qo=ao.dtype:"constant"in Co?(ji=2,typeof Co.constant=="number"?(gn=Co.constant,Ps=Ha=Sn=0):(gn=Co.constant.length>0?Co.constant[0]:0,Ps=Co.constant.length>1?Co.constant[1]:0,Ha=Co.constant.length>2?Co.constant[2]:0,Sn=Co.constant.length>3?Co.constant[3]:0)):(Er(Co.buffer)?ao=fe.createStream(34962,Co.buffer):ao=fe.getBuffer(Co.buffer),Qo="type"in Co?Fi[Co.type]:ao.dtype,Ko=!!Co.normalized,Ba=Co.size|0,Wi=Co.offset|0,Sa=Co.stride|0,Qa=Co.divisor|0)),vn=c.location,da=mt[vn],ji===1?(da.buffer||Re.enableVertexAttribArray(vn),la=Ba||1,(da.type!==Qo||da.size!==la||da.buffer!==ao||da.normalized!==Ko||da.offset!==Wi||da.stride!==Sa)&&(Re.bindBuffer(34962,ao.buffer),Re.vertexAttribPointer(vn,la,Qo,Ko,Sa,Wi),da.type=Qo,da.size=la,da.buffer=ao,da.normalized=Ko,da.offset=Wi,da.stride=Sa),da.divisor!==Qa&&(oa.vertexAttribDivisorANGLE(vn,Qa),da.divisor=Qa)):(da.buffer&&(Re.disableVertexAttribArray(vn),da.buffer=null),(da.x!==gn||da.y!==Ps||da.z!==Ha||da.w!==Sn)&&(Re.vertexAttrib4f(vn,gn,Ps,Ha,Sn),da.x=gn,da.y=Ps,da.z=Ha,da.w=Sn)),vo=h.call(this,xe,xn,0),As=!1,ps=1,co=0,mo=0,No=0,jn=0,Go=null,Ys=0,qs=!1,Ns=5126,Oa=0,ha=0,Vs=0,Er(vo)?(As=!0,Go=fe.createStream(34962,vo),Ns=Go.dtype):(Go=fe.getBuffer(vo),Go?Ns=Go.dtype:"constant"in vo?(ps=2,typeof vo.constant=="number"?(co=vo.constant,mo=No=jn=0):(co=vo.constant.length>0?vo.constant[0]:0,mo=vo.constant.length>1?vo.constant[1]:0,No=vo.constant.length>2?vo.constant[2]:0,jn=vo.constant.length>3?vo.constant[3]:0)):(Er(vo.buffer)?Go=fe.createStream(34962,vo.buffer):Go=fe.getBuffer(vo.buffer),Ns="type"in vo?Fi[vo.type]:Go.dtype,qs=!!vo.normalized,Ys=vo.size|0,Oa=vo.offset|0,ha=vo.stride|0,Vs=vo.divisor|0)),Ya=d.location,_n=mt[Ya],ps===1?(_n.buffer||Re.enableVertexAttribArray(Ya),Vn=Ys||4,(_n.type!==Ns||_n.size!==Vn||_n.buffer!==Go||_n.normalized!==qs||_n.offset!==Oa||_n.stride!==ha)&&(Re.bindBuffer(34962,Go.buffer),Re.vertexAttribPointer(Ya,Vn,Ns,qs,ha,Oa),_n.type=Ns,_n.size=Vn,_n.buffer=Go,_n.normalized=qs,_n.offset=Oa,_n.stride=ha),_n.divisor!==Vs&&(oa.vertexAttribDivisorANGLE(Ya,Vs),_n.divisor=Vs)):(_n.buffer&&(Re.disableVertexAttribArray(Ya),_n.buffer=null),(_n.x!==co||_n.y!==mo||_n.z!==No||_n.w!==jn)&&(Re.vertexAttrib4f(Ya,co,mo,No,jn),_n.x=co,_n.y=mo,_n.z=No,_n.w=jn)),wo=p.call(this,xe,xn,0),Ra=!1,Xn=1,un=0,$n=0,Ka=0,qn=0,Eo=null,Ja=0,lo=!1,eo=5126,sa=0,es=0,Na=0,Er(wo)?(Ra=!0,Eo=fe.createStream(34962,wo),eo=Eo.dtype):(Eo=fe.getBuffer(wo),Eo?eo=Eo.dtype:"constant"in wo?(Xn=2,typeof wo.constant=="number"?(un=wo.constant,$n=Ka=qn=0):(un=wo.constant.length>0?wo.constant[0]:0,$n=wo.constant.length>1?wo.constant[1]:0,Ka=wo.constant.length>2?wo.constant[2]:0,qn=wo.constant.length>3?wo.constant[3]:0)):(Er(wo.buffer)?Eo=fe.createStream(34962,wo.buffer):Eo=fe.getBuffer(wo.buffer),eo="type"in wo?Fi[wo.type]:Eo.dtype,lo=!!wo.normalized,Ja=wo.size|0,sa=wo.offset|0,es=wo.stride|0,Na=wo.divisor|0)),tn=x.location,Pa=mt[tn],Xn===1?(Pa.buffer||Re.enableVertexAttribArray(tn),to=Ja||1,(Pa.type!==eo||Pa.size!==to||Pa.buffer!==Eo||Pa.normalized!==lo||Pa.offset!==sa||Pa.stride!==es)&&(Re.bindBuffer(34962,Eo.buffer),Re.vertexAttribPointer(tn,to,eo,lo,es,sa),Pa.type=eo,Pa.size=to,Pa.buffer=Eo,Pa.normalized=lo,Pa.offset=sa,Pa.stride=es),Pa.divisor!==Na&&(oa.vertexAttribDivisorANGLE(tn,Na),Pa.divisor=Na)):(Pa.buffer&&(Re.disableVertexAttribArray(tn),Pa.buffer=null),(Pa.x!==un||Pa.y!==$n||Pa.z!==Ka||Pa.w!==qn)&&(Re.vertexAttrib4f(tn,un,$n,Ka,qn),Pa.x=un,Pa.y=$n,Pa.z=Ka,Pa.w=qn)),yo=b.call(this,xe,xn,0),Jo=!1,Ao=1,Dn=0,_a=0,Ws=0,Ca=0,Es=null,Ts=0,Ho=!1,Wa=5126,To=0,ts=0,Wo=0,Er(yo)?(Jo=!0,Es=fe.createStream(34962,yo),Wa=Es.dtype):(Es=fe.getBuffer(yo),Es?Wa=Es.dtype:"constant"in yo?(Ao=2,typeof yo.constant=="number"?(Dn=yo.constant,_a=Ws=Ca=0):(Dn=yo.constant.length>0?yo.constant[0]:0,_a=yo.constant.length>1?yo.constant[1]:0,Ws=yo.constant.length>2?yo.constant[2]:0,Ca=yo.constant.length>3?yo.constant[3]:0)):(Er(yo.buffer)?Es=fe.createStream(34962,yo.buffer):Es=fe.getBuffer(yo.buffer),Wa="type"in yo?Fi[yo.type]:Es.dtype,Ho=!!yo.normalized,Ts=yo.size|0,To=yo.offset|0,ts=yo.stride|0,Wo=yo.divisor|0)),qa=v.location,ln=mt[qa],Ao===1?(ln.buffer||Re.enableVertexAttribArray(qa),Bo=Ts||1,(ln.type!==Wa||ln.size!==Bo||ln.buffer!==Es||ln.normalized!==Ho||ln.offset!==To||ln.stride!==ts)&&(Re.bindBuffer(34962,Es.buffer),Re.vertexAttribPointer(qa,Bo,Wa,Ho,ts,To),ln.type=Wa,ln.size=Bo,ln.buffer=Es,ln.normalized=Ho,ln.offset=To,ln.stride=ts),ln.divisor!==Wo&&(oa.vertexAttribDivisorANGLE(qa,Wo),ln.divisor=Wo)):(ln.buffer&&(Re.disableVertexAttribArray(qa),ln.buffer=null),(ln.x!==Dn||ln.y!==_a||ln.z!==Ws||ln.w!==Ca)&&(Re.vertexAttrib4f(qa,Dn,_a,Ws,Ca),ln.x=Dn,ln.y=_a,ln.z=Ws,ln.w=Ca)),ko=k.call(this,xe,xn,0),oo=!1,za=1,ea=0,rs=0,$s=0,us=0,Ds=null,fl=0,as=!1,Ma=5126,Qs=0,ho=0,gs=0,Er(ko)?(oo=!0,Ds=fe.createStream(34962,ko),Ma=Ds.dtype):(Ds=fe.getBuffer(ko),Ds?Ma=Ds.dtype:"constant"in ko?(za=2,typeof ko.constant=="number"?(ea=ko.constant,rs=$s=us=0):(ea=ko.constant.length>0?ko.constant[0]:0,rs=ko.constant.length>1?ko.constant[1]:0,$s=ko.constant.length>2?ko.constant[2]:0,us=ko.constant.length>3?ko.constant[3]:0)):(Er(ko.buffer)?Ds=fe.createStream(34962,ko.buffer):Ds=fe.getBuffer(ko.buffer),Ma="type"in ko?Fi[ko.type]:Ds.dtype,as=!!ko.normalized,fl=ko.size|0,Qs=ko.offset|0,ho=ko.stride|0,gs=ko.divisor|0)),Vo=E.location,Do=mt[Vo],za===1?(Do.buffer||Re.enableVertexAttribArray(Vo),Lo=fl||1,(Do.type!==Ma||Do.size!==Lo||Do.buffer!==Ds||Do.normalized!==as||Do.offset!==Qs||Do.stride!==ho)&&(Re.bindBuffer(34962,Ds.buffer),Re.vertexAttribPointer(Vo,Lo,Ma,as,ho,Qs),Do.type=Ma,Do.size=Lo,Do.buffer=Ds,Do.normalized=as,Do.offset=Qs,Do.stride=ho),Do.divisor!==gs&&(oa.vertexAttribDivisorANGLE(Vo,gs),Do.divisor=gs)):(Do.buffer&&(Re.disableVertexAttribArray(Vo),Do.buffer=null),(Do.x!==ea||Do.y!==rs||Do.z!==$s||Do.w!==us)&&(Re.vertexAttrib4f(Vo,ea,rs,$s,us),Do.x=ea,Do.y=rs,Do.z=$s,Do.w=us)),xs=T.call(this,xe,xn,0),ks=!1,Ea=1,Jn=0,Oo=0,rl=0,Gs=0,bs=null,zs=0,$o=!1,Aa=5126,os=0,_l=0,Ss=0,Er(xs)?(ks=!0,bs=fe.createStream(34962,xs),Aa=bs.dtype):(bs=fe.getBuffer(xs),bs?Aa=bs.dtype:"constant"in xs?(Ea=2,typeof xs.constant=="number"?(Jn=xs.constant,Oo=rl=Gs=0):(Jn=xs.constant.length>0?xs.constant[0]:0,Oo=xs.constant.length>1?xs.constant[1]:0,rl=xs.constant.length>2?xs.constant[2]:0,Gs=xs.constant.length>3?xs.constant[3]:0)):(Er(xs.buffer)?bs=fe.createStream(34962,xs.buffer):bs=fe.getBuffer(xs.buffer),Aa="type"in xs?Fi[xs.type]:bs.dtype,$o=!!xs.normalized,zs=xs.size|0,os=xs.offset|0,_l=xs.stride|0,Ss=xs.divisor|0)),po=L.location,go=mt[po],Ea===1?(go.buffer||Re.enableVertexAttribArray(po),ss=zs||1,(go.type!==Aa||go.size!==ss||go.buffer!==bs||go.normalized!==$o||go.offset!==os||go.stride!==_l)&&(Re.bindBuffer(34962,bs.buffer),Re.vertexAttribPointer(po,ss,Aa,$o,_l,os),go.type=Aa,go.size=ss,go.buffer=bs,go.normalized=$o,go.offset=os,go.stride=_l),go.divisor!==Ss&&(oa.vertexAttribDivisorANGLE(po,Ss),go.divisor=Ss)):(go.buffer&&(Re.disableVertexAttribArray(po),go.buffer=null),(go.x!==Jn||go.y!==Oo||go.z!==rl||go.w!==Gs)&&(Re.vertexAttrib4f(po,Jn,Oo,rl,Gs),go.x=Jn,go.y=Oo,go.z=rl,go.w=Gs)),qo=_.call(this,xe,xn,0),zo=!1,io=1,Io=0,Da=0,vs=0,fs=0,cl=null,el=0,Hs=!1,Ro=5126,tl=0,Fs=0,hl=0,Er(qo)?(zo=!0,cl=fe.createStream(34962,qo),Ro=cl.dtype):(cl=fe.getBuffer(qo),cl?Ro=cl.dtype:"constant"in qo?(io=2,typeof qo.constant=="number"?(Io=qo.constant,Da=vs=fs=0):(Io=qo.constant.length>0?qo.constant[0]:0,Da=qo.constant.length>1?qo.constant[1]:0,vs=qo.constant.length>2?qo.constant[2]:0,fs=qo.constant.length>3?qo.constant[3]:0)):(Er(qo.buffer)?cl=fe.createStream(34962,qo.buffer):cl=fe.getBuffer(qo.buffer),Ro="type"in qo?Fi[qo.type]:cl.dtype,Hs=!!qo.normalized,el=qo.size|0,tl=qo.offset|0,Fs=qo.stride|0,hl=qo.divisor|0)),Fa=C.location,Ms=mt[Fa],io===1?(Ms.buffer||Re.enableVertexAttribArray(Fa),jo=el||1,(Ms.type!==Ro||Ms.size!==jo||Ms.buffer!==cl||Ms.normalized!==Hs||Ms.offset!==tl||Ms.stride!==Fs)&&(Re.bindBuffer(34962,cl.buffer),Re.vertexAttribPointer(Fa,jo,Ro,Hs,Fs,tl),Ms.type=Ro,Ms.size=jo,Ms.buffer=cl,Ms.normalized=Hs,Ms.offset=tl,Ms.stride=Fs),Ms.divisor!==hl&&(oa.vertexAttribDivisorANGLE(Fa,hl),Ms.divisor=hl)):(Ms.buffer&&(Re.disableVertexAttribArray(Fa),Ms.buffer=null),(Ms.x!==Io||Ms.y!==Da||Ms.z!==vs||Ms.w!==fs)&&(Re.vertexAttrib4f(Fa,Io,Da,vs,fs),Ms.x=Io,Ms.y=Da,Ms.z=vs,Ms.w=fs)),Rs=S.call(this,xe,xn,0),Is=!1,Bs=1,Tt=0,Vt=0,wr=0,yr=0,Fr=null,gi=0,Ti=!1,ki=5126,Ji=0,Fn=0,Pi=0,Er(Rs)?(Is=!0,Fr=fe.createStream(34962,Rs),ki=Fr.dtype):(Fr=fe.getBuffer(Rs),Fr?ki=Fr.dtype:"constant"in Rs?(Bs=2,typeof Rs.constant=="number"?(Tt=Rs.constant,Vt=wr=yr=0):(Tt=Rs.constant.length>0?Rs.constant[0]:0,Vt=Rs.constant.length>1?Rs.constant[1]:0,wr=Rs.constant.length>2?Rs.constant[2]:0,yr=Rs.constant.length>3?Rs.constant[3]:0)):(Er(Rs.buffer)?Fr=fe.createStream(34962,Rs.buffer):Fr=fe.getBuffer(Rs.buffer),ki="type"in Rs?Fi[Rs.type]:Fr.dtype,Ti=!!Rs.normalized,gi=Rs.size|0,Ji=Rs.offset|0,Fn=Rs.stride|0,Pi=Rs.divisor|0)),hi=m.location,Li=mt[hi],Bs===1?(Li.buffer||Re.enableVertexAttribArray(hi),Si=gi||1,(Li.type!==ki||Li.size!==Si||Li.buffer!==Fr||Li.normalized!==Ti||Li.offset!==Ji||Li.stride!==Fn)&&(Re.bindBuffer(34962,Fr.buffer),Re.vertexAttribPointer(hi,Si,ki,Ti,Fn,Ji),Li.type=ki,Li.size=Si,Li.buffer=Fr,Li.normalized=Ti,Li.offset=Ji,Li.stride=Fn),Li.divisor!==Pi&&(oa.vertexAttribDivisorANGLE(hi,Pi),Li.divisor=Pi)):(Li.buffer&&(Re.disableVertexAttribArray(hi),Li.buffer=null),(Li.x!==Tt||Li.y!==Vt||Li.z!==wr||Li.w!==yr)&&(Re.vertexAttrib4f(hi,Tt,Vt,wr,yr),Li.x=Tt,Li.y=Vt,Li.z=wr,Li.w=yr)),Re.uniform1i(P.location,!1),Gn=xn.markerTexture,Gn&&Gn._reglType==="framebuffer"&&(Gn=Gn.color[0]),ta=Gn._texture,Re.uniform1i(A.location,ta.bind()),ya=xn.opacity,Re.uniform1f(B.location,ya),ia=U.call(this,xe,xn,0),pa=ia[0],va=ia[1],Re.uniform2f(F.location,pa,va),Re.uniform1i(G.location,j.bind()),zn=xe.pixelRatio,Re.uniform1f(H.location,zn),is=xn.scale,Cs=is[0],Ks=is[1],Re.uniform2f(N.location,Cs,Ks),dl=xn.scaleFract,xl=dl[0],Ol=dl[1],Re.uniform2f(W.location,xl,Ol),bl=xn.translate,eu=bl[0],Zl=bl[1],Re.uniform2f(re.location,eu,Zl),Vl=xn.translateFract,ja=Vl[0],ns=Vl[1],Re.uniform2f(ae.location,ja,ns),Js=xn.elements,cs=null,sl=Er(Js),sl?cs=_e.createStream(Js):cs=_e.getElements(Js),cs&&Re.bindBuffer(34963,cs.buffer.buffer),ll=xn.offset,il=xn.count,il&&(zl=ct.instances,zl>0?cs?oa.drawElementsInstancedANGLE(0,il,cs.type,ll<<(cs.type-5121>>1),zl):oa.drawArraysInstancedANGLE(0,ll,il,zl):zl<0&&(cs?Re.drawElements(0,il,cs.type,ll<<(cs.type-5121>>1)):Re.drawArrays(0,ll,il)),De.dirty=!0,It.setVAO(null),xe.viewportWidth=Ai,xe.viewportHeight=Qi,Ga&&(r.cpuTime+=performance.now()-ma),so&&fe.destroyStream(Ta),Po&&fe.destroyStream(ao),As&&fe.destroyStream(Go),Ra&&fe.destroyStream(Eo),Jo&&fe.destroyStream(Es),oo&&fe.destroyStream(Ds),ks&&fe.destroyStream(bs),zo&&fe.destroyStream(cl),Is&&fe.destroyStream(Fr),ta.unbind(),j.unbind(),sl&&_e.destroyStream(cs))},scope:function(xn,xi,Xr){var ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,Tt,Vt,wr,yr,Fr,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Ul,le,w,q,Q,ee,ue,Ve,et,yt,Dt,ir,or,kr,Vr,he,Se,qe,Ge,lt,tt,vt,Gt,nr,cr,Ar,Rr,ri,si,Mi,hn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,ql,ou,Pu,iu,tu,Wu,Qu,Ku,ju,Xu,lf,xf,ef,tf,Z,se,ze,je,$e,st,jt,_t,hr,Cr,zr,ui,$r,Oi,fn,pi,zi,Xi,pn,sn,bi,xo,no,Xo,js,El,Pl,pu,Il,fu,Zu,Vu,rf,ds,Wl,Au,Tu,uf,df,Ef,vf;ft=xn.viewport,tr=ft.x|0,pr=ft.y|0,gr="width"in ft?ft.width|0:xe.framebufferWidth-tr,Zr="height"in ft?ft.height|0:xe.framebufferHeight-pr,Ai=xe.viewportWidth,xe.viewportWidth=gr,Qi=xe.viewportHeight,xe.viewportHeight=Zr,ni=ti[0],ti[0]=tr,Zi=ti[1],ti[1]=pr,aa=ti[2],ti[2]=gr,Mn=ti[3],ti[3]=Zr,Un=Br[0],Br[0]=be,Ga=Br[1],Br[1]=Pe,ma=Br[2],Br[2]=Ce,oa=Br[3],Br[3]=de,ka=Ie.blend_enable,Ie.blend_enable=te,so=Ci[0],Ci[0]=ke,Kr=Ci[1],Ci[1]=Ee,Ia=Ci[2],Ci[2]=Me,Yo=Ci[3],Ci[3]=Ue,fa=Ie.depth_enable,Ie.depth_enable=Fe,kn=xn.viewport,Ta=kn.x|0,ys=kn.y|0,uo="width"in kn?kn.width|0:xe.framebufferWidth-Ta,ls="height"in kn?kn.height|0:xe.framebufferHeight-ys,$a=Ei[0],Ei[0]=Ta,fo=Ei[1],Ei[1]=ys,mn=Ei[2],Ei[2]=uo,ra=Ei[3],Ei[3]=ls,wa=Ie.scissor_enable,Ie.scissor_enable=me,ws=Ie.stencil_enable,Ie.stencil_enable=Ne,Co=De.profile,Co&&(Po=performance.now(),r.count++),ji=xn.elements,gn=null,Ps=Er(ji),Ps?gn=_e.createStream(ji):gn=_e.getElements(ji),Ha=ct.elements,ct.elements=gn,Sn=xn.offset,ao=ct.offset,ct.offset=Sn,Ba=xn.count,Ko=ct.count,ct.count=Ba,Qo=ct.primitive,ct.primitive=ce,Wi=Pt[Ke],Pt[Ke]=!1,Sa=Pt[bt],Pt[bt]=it,Qa=xn.opacity,vn=Pt[Nt],Pt[Nt]=Qa,da=U.call(this,xe,xn,Xr),la=Pt[nt],Pt[nt]=da,vo=xe.pixelRatio,As=Pt[Ye],Pt[Ye]=vo,ps=xn.scale,co=Pt[kt],Pt[kt]=ps,mo=xn.scaleFract,No=Pt[At],Pt[At]=mo,jn=xn.translate,Go=Pt[St],Pt[St]=jn,Ys=xn.translateFract,qs=Pt[Bt],Pt[Bt]=Ys,Ns=xn.markerTexture,Oa=Pt[Zt],Pt[Zt]=Ns,ha=k.call(this,xe,xn,Xr),Vs=!1,Ya=1,_n=0,Vn=0,wo=0,Ra=0,Xn=null,un=0,$n=!1,Ka=5126,qn=0,Eo=0,Ja=0,Er(ha)?(Vs=!0,Xn=fe.createStream(34962,ha),Ka=Xn.dtype):(Xn=fe.getBuffer(ha),Xn?Ka=Xn.dtype:"constant"in ha?(Ya=2,typeof ha.constant=="number"?(_n=ha.constant,Vn=wo=Ra=0):(_n=ha.constant.length>0?ha.constant[0]:0,Vn=ha.constant.length>1?ha.constant[1]:0,wo=ha.constant.length>2?ha.constant[2]:0,Ra=ha.constant.length>3?ha.constant[3]:0)):(Er(ha.buffer)?Xn=fe.createStream(34962,ha.buffer):Xn=fe.getBuffer(ha.buffer),Ka="type"in ha?Fi[ha.type]:Xn.dtype,$n=!!ha.normalized,un=ha.size|0,qn=ha.offset|0,Eo=ha.stride|0,Ja=ha.divisor|0)),lo=Et.state,Et.state=Ya,eo=Et.x,Et.x=_n,sa=Et.y,Et.y=Vn,es=Et.z,Et.z=wo,Na=Et.w,Et.w=Ra,tn=Et.buffer,Et.buffer=Xn,Pa=Et.size,Et.size=un,to=Et.normalized,Et.normalized=$n,yo=Et.type,Et.type=Ka,Jo=Et.offset,Et.offset=qn,Ao=Et.stride,Et.stride=Eo,Dn=Et.divisor,Et.divisor=Ja,_a=_.call(this,xe,xn,Xr),Ws=!1,Ca=1,Es=0,Ts=0,Ho=0,Wa=0,To=null,ts=0,Wo=!1,qa=5126,ln=0,Bo=0,ko=0,Er(_a)?(Ws=!0,To=fe.createStream(34962,_a),qa=To.dtype):(To=fe.getBuffer(_a),To?qa=To.dtype:"constant"in _a?(Ca=2,typeof _a.constant=="number"?(Es=_a.constant,Ts=Ho=Wa=0):(Es=_a.constant.length>0?_a.constant[0]:0,Ts=_a.constant.length>1?_a.constant[1]:0,Ho=_a.constant.length>2?_a.constant[2]:0,Wa=_a.constant.length>3?_a.constant[3]:0)):(Er(_a.buffer)?To=fe.createStream(34962,_a.buffer):To=fe.getBuffer(_a.buffer),qa="type"in _a?Fi[_a.type]:To.dtype,Wo=!!_a.normalized,ts=_a.size|0,ln=_a.offset|0,Bo=_a.stride|0,ko=_a.divisor|0)),oo=Ae.state,Ae.state=Ca,za=Ae.x,Ae.x=Es,ea=Ae.y,Ae.y=Ts,rs=Ae.z,Ae.z=Ho,$s=Ae.w,Ae.w=Wa,us=Ae.buffer,Ae.buffer=To,Ds=Ae.size,Ae.size=ts,fl=Ae.normalized,Ae.normalized=Wo,as=Ae.type,Ae.type=qa,Ma=Ae.offset,Ae.offset=ln,Qs=Ae.stride,Ae.stride=Bo,ho=Ae.divisor,Ae.divisor=ko,gs=T.call(this,xe,xn,Xr),Vo=!1,Do=1,Lo=0,xs=0,ks=0,Ea=0,Jn=null,Oo=0,rl=!1,Gs=5126,bs=0,zs=0,$o=0,Er(gs)?(Vo=!0,Jn=fe.createStream(34962,gs),Gs=Jn.dtype):(Jn=fe.getBuffer(gs),Jn?Gs=Jn.dtype:"constant"in gs?(Do=2,typeof gs.constant=="number"?(Lo=gs.constant,xs=ks=Ea=0):(Lo=gs.constant.length>0?gs.constant[0]:0,xs=gs.constant.length>1?gs.constant[1]:0,ks=gs.constant.length>2?gs.constant[2]:0,Ea=gs.constant.length>3?gs.constant[3]:0)):(Er(gs.buffer)?Jn=fe.createStream(34962,gs.buffer):Jn=fe.getBuffer(gs.buffer),Gs="type"in gs?Fi[gs.type]:Jn.dtype,rl=!!gs.normalized,Oo=gs.size|0,bs=gs.offset|0,zs=gs.stride|0,$o=gs.divisor|0)),Aa=ot.state,ot.state=Do,os=ot.x,ot.x=Lo,_l=ot.y,ot.y=xs,Ss=ot.z,ot.z=ks,po=ot.w,ot.w=Ea,go=ot.buffer,ot.buffer=Jn,ss=ot.size,ot.size=Oo,qo=ot.normalized,ot.normalized=rl,zo=ot.type,ot.type=Gs,io=ot.offset,ot.offset=bs,Io=ot.stride,ot.stride=zs,Da=ot.divisor,ot.divisor=$o,vs=S.call(this,xe,xn,Xr),fs=!1,cl=1,el=0,Hs=0,Ro=0,tl=0,Fs=null,hl=0,Fa=!1,Ms=5126,jo=0,Rs=0,Is=0,Er(vs)?(fs=!0,Fs=fe.createStream(34962,vs),Ms=Fs.dtype):(Fs=fe.getBuffer(vs),Fs?Ms=Fs.dtype:"constant"in vs?(cl=2,typeof vs.constant=="number"?(el=vs.constant,Hs=Ro=tl=0):(el=vs.constant.length>0?vs.constant[0]:0,Hs=vs.constant.length>1?vs.constant[1]:0,Ro=vs.constant.length>2?vs.constant[2]:0,tl=vs.constant.length>3?vs.constant[3]:0)):(Er(vs.buffer)?Fs=fe.createStream(34962,vs.buffer):Fs=fe.getBuffer(vs.buffer),Ms="type"in vs?Fi[vs.type]:Fs.dtype,Fa=!!vs.normalized,hl=vs.size|0,jo=vs.offset|0,Rs=vs.stride|0,Is=vs.divisor|0)),Bs=dt.state,dt.state=cl,Tt=dt.x,dt.x=el,Vt=dt.y,dt.y=Hs,wr=dt.z,dt.z=Ro,yr=dt.w,dt.w=tl,Fr=dt.buffer,dt.buffer=Fs,gi=dt.size,dt.size=hl,Ti=dt.normalized,dt.normalized=Fa,ki=dt.type,dt.type=Ms,Ji=dt.offset,dt.offset=jo,Fn=dt.stride,dt.stride=Rs,Pi=dt.divisor,dt.divisor=Is,hi=b.call(this,xe,xn,Xr),Li=!1,Si=1,Gn=0,ta=0,ya=0,ia=0,pa=null,va=0,zn=!1,is=5126,Cs=0,Ks=0,dl=0,Er(hi)?(Li=!0,pa=fe.createStream(34962,hi),is=pa.dtype):(pa=fe.getBuffer(hi),pa?is=pa.dtype:"constant"in hi?(Si=2,typeof hi.constant=="number"?(Gn=hi.constant,ta=ya=ia=0):(Gn=hi.constant.length>0?hi.constant[0]:0,ta=hi.constant.length>1?hi.constant[1]:0,ya=hi.constant.length>2?hi.constant[2]:0,ia=hi.constant.length>3?hi.constant[3]:0)):(Er(hi.buffer)?pa=fe.createStream(34962,hi.buffer):pa=fe.getBuffer(hi.buffer),is="type"in hi?Fi[hi.type]:pa.dtype,zn=!!hi.normalized,va=hi.size|0,Cs=hi.offset|0,Ks=hi.stride|0,dl=hi.divisor|0)),xl=pt.state,pt.state=Si,Ol=pt.x,pt.x=Gn,bl=pt.y,pt.y=ta,eu=pt.z,pt.z=ya,Zl=pt.w,pt.w=ia,Vl=pt.buffer,pt.buffer=pa,ja=pt.size,pt.size=va,ns=pt.normalized,pt.normalized=zn,Js=pt.type,pt.type=is,cs=pt.offset,pt.offset=Cs,sl=pt.stride,pt.stride=Ks,ll=pt.divisor,pt.divisor=dl,il=f.call(this,xe,xn,Xr),zl=!1,Ml=1,Rl=0,Al=0,Ll=0,ms=0,Os=null,Xl=0,Gl=!1,Ul=5126,le=0,w=0,q=0,Er(il)?(zl=!0,Os=fe.createStream(34962,il),Ul=Os.dtype):(Os=fe.getBuffer(il),Os?Ul=Os.dtype:"constant"in il?(Ml=2,typeof il.constant=="number"?(Rl=il.constant,Al=Ll=ms=0):(Rl=il.constant.length>0?il.constant[0]:0,Al=il.constant.length>1?il.constant[1]:0,Ll=il.constant.length>2?il.constant[2]:0,ms=il.constant.length>3?il.constant[3]:0)):(Er(il.buffer)?Os=fe.createStream(34962,il.buffer):Os=fe.getBuffer(il.buffer),Ul="type"in il?Fi[il.type]:Os.dtype,Gl=!!il.normalized,Xl=il.size|0,le=il.offset|0,w=il.stride|0,q=il.divisor|0)),Q=at.state,at.state=Ml,ee=at.x,at.x=Rl,ue=at.y,at.y=Al,Ve=at.z,at.z=Ll,et=at.w,at.w=ms,yt=at.buffer,at.buffer=Os,Dt=at.size,at.size=Xl,ir=at.normalized,at.normalized=Gl,or=at.type,at.type=Ul,kr=at.offset,at.offset=le,Vr=at.stride,at.stride=w,he=at.divisor,at.divisor=q,Se=h.call(this,xe,xn,Xr),qe=!1,Ge=1,lt=0,tt=0,vt=0,Gt=0,nr=null,cr=0,Ar=!1,Rr=5126,ri=0,si=0,Mi=0,Er(Se)?(qe=!0,nr=fe.createStream(34962,Se),Rr=nr.dtype):(nr=fe.getBuffer(Se),nr?Rr=nr.dtype:"constant"in Se?(Ge=2,typeof Se.constant=="number"?(lt=Se.constant,tt=vt=Gt=0):(lt=Se.constant.length>0?Se.constant[0]:0,tt=Se.constant.length>1?Se.constant[1]:0,vt=Se.constant.length>2?Se.constant[2]:0,Gt=Se.constant.length>3?Se.constant[3]:0)):(Er(Se.buffer)?nr=fe.createStream(34962,Se.buffer):nr=fe.getBuffer(Se.buffer),Rr="type"in Se?Fi[Se.type]:nr.dtype,Ar=!!Se.normalized,cr=Se.size|0,ri=Se.offset|0,si=Se.stride|0,Mi=Se.divisor|0)),hn=Xe.state,Xe.state=Ge,Zn=Xe.x,Xe.x=lt,Yn=Xe.y,Xe.y=tt,Ua=Xe.z,Xe.z=vt,Fo=Xe.w,Xe.w=Gt,vl=Xe.buffer,Xe.buffer=nr,Us=Xe.size,Xe.size=cr,ml=Xe.normalized,Xe.normalized=Ar,au=Xe.type,Xe.type=Rr,Sl=Xe.offset,Xe.offset=ri,Yl=Xe.stride,Xe.stride=si,ql=Xe.divisor,Xe.divisor=Mi,ou=u.call(this,xe,xn,Xr),Pu=!1,iu=1,tu=0,Wu=0,Qu=0,Ku=0,ju=null,Xu=0,lf=!1,xf=5126,ef=0,tf=0,Z=0,Er(ou)?(Pu=!0,ju=fe.createStream(34962,ou),xf=ju.dtype):(ju=fe.getBuffer(ou),ju?xf=ju.dtype:"constant"in ou?(iu=2,typeof ou.constant=="number"?(tu=ou.constant,Wu=Qu=Ku=0):(tu=ou.constant.length>0?ou.constant[0]:0,Wu=ou.constant.length>1?ou.constant[1]:0,Qu=ou.constant.length>2?ou.constant[2]:0,Ku=ou.constant.length>3?ou.constant[3]:0)):(Er(ou.buffer)?ju=fe.createStream(34962,ou.buffer):ju=fe.getBuffer(ou.buffer),xf="type"in ou?Fi[ou.type]:ju.dtype,lf=!!ou.normalized,Xu=ou.size|0,ef=ou.offset|0,tf=ou.stride|0,Z=ou.divisor|0)),se=rt.state,rt.state=iu,ze=rt.x,rt.x=tu,je=rt.y,rt.y=Wu,$e=rt.z,rt.z=Qu,st=rt.w,rt.w=Ku,jt=rt.buffer,rt.buffer=ju,_t=rt.size,rt.size=Xu,hr=rt.normalized,rt.normalized=lf,Cr=rt.type,rt.type=xf,zr=rt.offset,rt.offset=ef,ui=rt.stride,rt.stride=tf,$r=rt.divisor,rt.divisor=Z,Oi=p.call(this,xe,xn,Xr),fn=!1,pi=1,zi=0,Xi=0,pn=0,sn=0,bi=null,xo=0,no=!1,Xo=5126,js=0,El=0,Pl=0,Er(Oi)?(fn=!0,bi=fe.createStream(34962,Oi),Xo=bi.dtype):(bi=fe.getBuffer(Oi),bi?Xo=bi.dtype:"constant"in Oi?(pi=2,typeof Oi.constant=="number"?(zi=Oi.constant,Xi=pn=sn=0):(zi=Oi.constant.length>0?Oi.constant[0]:0,Xi=Oi.constant.length>1?Oi.constant[1]:0,pn=Oi.constant.length>2?Oi.constant[2]:0,sn=Oi.constant.length>3?Oi.constant[3]:0)):(Er(Oi.buffer)?bi=fe.createStream(34962,Oi.buffer):bi=fe.getBuffer(Oi.buffer),Xo="type"in Oi?Fi[Oi.type]:bi.dtype,no=!!Oi.normalized,xo=Oi.size|0,js=Oi.offset|0,El=Oi.stride|0,Pl=Oi.divisor|0)),pu=Qe.state,Qe.state=pi,Il=Qe.x,Qe.x=zi,fu=Qe.y,Qe.y=Xi,Zu=Qe.z,Qe.z=pn,Vu=Qe.w,Qe.w=sn,rf=Qe.buffer,Qe.buffer=bi,ds=Qe.size,Qe.size=xo,Wl=Qe.normalized,Qe.normalized=no,Au=Qe.type,Qe.type=Xo,Tu=Qe.offset,Qe.offset=js,uf=Qe.stride,Qe.stride=El,df=Qe.divisor,Qe.divisor=Pl,Ef=pe.vert,pe.vert=zt,vf=pe.frag,pe.frag=Yt,De.dirty=!0,xi(xe,xn,Xr),xe.viewportWidth=Ai,xe.viewportHeight=Qi,ti[0]=ni,ti[1]=Zi,ti[2]=aa,ti[3]=Mn,Br[0]=Un,Br[1]=Ga,Br[2]=ma,Br[3]=oa,Ie.blend_enable=ka,Ci[0]=so,Ci[1]=Kr,Ci[2]=Ia,Ci[3]=Yo,Ie.depth_enable=fa,Ei[0]=$a,Ei[1]=fo,Ei[2]=mn,Ei[3]=ra,Ie.scissor_enable=wa,Ie.stencil_enable=ws,Co&&(r.cpuTime+=performance.now()-Po),Ps&&_e.destroyStream(gn),ct.elements=Ha,ct.offset=ao,ct.count=Ko,ct.primitive=Qo,Pt[Ke]=Wi,Pt[bt]=Sa,Pt[Nt]=vn,Pt[nt]=la,Pt[Ye]=As,Pt[kt]=co,Pt[At]=No,Pt[St]=Go,Pt[Bt]=qs,Pt[Zt]=Oa,Vs&&fe.destroyStream(Xn),Et.state=lo,Et.x=eo,Et.y=sa,Et.z=es,Et.w=Na,Et.buffer=tn,Et.size=Pa,Et.normalized=to,Et.type=yo,Et.offset=Jo,Et.stride=Ao,Et.divisor=Dn,Ws&&fe.destroyStream(To),Ae.state=oo,Ae.x=za,Ae.y=ea,Ae.z=rs,Ae.w=$s,Ae.buffer=us,Ae.size=Ds,Ae.normalized=fl,Ae.type=as,Ae.offset=Ma,Ae.stride=Qs,Ae.divisor=ho,Vo&&fe.destroyStream(Jn),ot.state=Aa,ot.x=os,ot.y=_l,ot.z=Ss,ot.w=po,ot.buffer=go,ot.size=ss,ot.normalized=qo,ot.type=zo,ot.offset=io,ot.stride=Io,ot.divisor=Da,fs&&fe.destroyStream(Fs),dt.state=Bs,dt.x=Tt,dt.y=Vt,dt.z=wr,dt.w=yr,dt.buffer=Fr,dt.size=gi,dt.normalized=Ti,dt.type=ki,dt.offset=Ji,dt.stride=Fn,dt.divisor=Pi,Li&&fe.destroyStream(pa),pt.state=xl,pt.x=Ol,pt.y=bl,pt.z=eu,pt.w=Zl,pt.buffer=Vl,pt.size=ja,pt.normalized=ns,pt.type=Js,pt.offset=cs,pt.stride=sl,pt.divisor=ll,zl&&fe.destroyStream(Os),at.state=Q,at.x=ee,at.y=ue,at.z=Ve,at.w=et,at.buffer=yt,at.size=Dt,at.normalized=ir,at.type=or,at.offset=kr,at.stride=Vr,at.divisor=he,qe&&fe.destroyStream(nr),Xe.state=hn,Xe.x=Zn,Xe.y=Yn,Xe.z=Ua,Xe.w=Fo,Xe.buffer=vl,Xe.size=Us,Xe.normalized=ml,Xe.type=au,Xe.offset=Sl,Xe.stride=Yl,Xe.divisor=ql,Pu&&fe.destroyStream(ju),rt.state=se,rt.x=ze,rt.y=je,rt.z=$e,rt.w=st,rt.buffer=jt,rt.size=_t,rt.normalized=hr,rt.type=Cr,rt.offset=zr,rt.stride=ui,rt.divisor=$r,fn&&fe.destroyStream(bi),Qe.state=pu,Qe.x=Il,Qe.y=fu,Qe.z=Zu,Qe.w=Vu,Qe.buffer=rf,Qe.size=ds,Qe.normalized=Wl,Qe.type=Au,Qe.offset=Tu,Qe.stride=uf,Qe.divisor=df,pe.vert=Ef,pe.frag=vf,De.dirty=!0},batch:function(xn,xi){var Xr,ft,tr,pr,gr,Zr,Ai;if(Xr=Wr.angle_instanced_arrays,ft=rr.next,ft!==rr.cur&&(ft?Re.bindFramebuffer(36160,ft.framebuffer):Re.bindFramebuffer(36160,null),rr.cur=ft),De.dirty){var Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao;Qi=Ie.dither,Qi!==De.dither&&(Qi?Re.enable(3024):Re.disable(3024),De.dither=Qi),ni=Di[0],Zi=Di[1],(ni!==Ii[0]||Zi!==Ii[1])&&(Re.blendEquationSeparate(ni,Zi),Ii[0]=ni,Ii[1]=Zi),aa=Ie.depth_func,aa!==De.depth_func&&(Re.depthFunc(aa),De.depth_func=aa),Mn=ii[0],Un=ii[1],(Mn!==wi[0]||Un!==wi[1])&&(Re.depthRange(Mn,Un),wi[0]=Mn,wi[1]=Un),Ga=Ie.depth_mask,Ga!==De.depth_mask&&(Re.depthMask(Ga),De.depth_mask=Ga),ma=Gi[0],oa=Gi[1],ka=Gi[2],so=Gi[3],(ma!==Ft[0]||oa!==Ft[1]||ka!==Ft[2]||so!==Ft[3])&&(Re.colorMask(ma,oa,ka,so),Ft[0]=ma,Ft[1]=oa,Ft[2]=ka,Ft[3]=so),Kr=Ie.cull_enable,Kr!==De.cull_enable&&(Kr?Re.enable(2884):Re.disable(2884),De.cull_enable=Kr),Ia=Ie.cull_face,Ia!==De.cull_face&&(Re.cullFace(Ia),De.cull_face=Ia),Yo=Ie.frontFace,Yo!==De.frontFace&&(Re.frontFace(Yo),De.frontFace=Yo),fa=Ie.lineWidth,fa!==De.lineWidth&&(Re.lineWidth(fa),De.lineWidth=fa),kn=Ie.polygonOffset_enable,kn!==De.polygonOffset_enable&&(kn?Re.enable(32823):Re.disable(32823),De.polygonOffset_enable=kn),Ta=gt[0],ys=gt[1],(Ta!==Ut[0]||ys!==Ut[1])&&(Re.polygonOffset(Ta,ys),Ut[0]=Ta,Ut[1]=ys),uo=Ie.sample_alpha,uo!==De.sample_alpha&&(uo?Re.enable(32926):Re.disable(32926),De.sample_alpha=uo),ls=Ie.sample_enable,ls!==De.sample_enable&&(ls?Re.enable(32928):Re.disable(32928),De.sample_enable=ls),$a=Wt[0],fo=Wt[1],($a!==xr[0]||fo!==xr[1])&&(Re.sampleCoverage($a,fo),xr[0]=$a,xr[1]=fo),mn=Ie.stencil_mask,mn!==De.stencil_mask&&(Re.stencilMask(mn),De.stencil_mask=mn),ra=Lr[0],wa=Lr[1],ws=Lr[2],(ra!==Ur[0]||wa!==Ur[1]||ws!==Ur[2])&&(Re.stencilFunc(ra,wa,ws),Ur[0]=ra,Ur[1]=wa,Ur[2]=ws),Co=Ir[0],Po=Ir[1],ji=Ir[2],gn=Ir[3],(Co!==Gr[0]||Po!==Gr[1]||ji!==Gr[2]||gn!==Gr[3])&&(Re.stencilOpSeparate(Co,Po,ji,gn),Gr[0]=Co,Gr[1]=Po,Gr[2]=ji,Gr[3]=gn),Ps=jr[0],Ha=jr[1],Sn=jr[2],ao=jr[3],(Ps!==yi[0]||Ha!==yi[1]||Sn!==yi[2]||ao!==yi[3])&&(Re.stencilOpSeparate(Ps,Ha,Sn,ao),yi[0]=Ps,yi[1]=Ha,yi[2]=Sn,yi[3]=ao)}Re.blendColor(0,0,0,1),mi[0]=0,mi[1]=0,mi[2]=0,mi[3]=1,lr?Re.enable(3042):Re.disable(3042),De.blend_enable=lr,Re.blendFuncSeparate(770,771,773,1),nn[0]=770,nn[1]=771,nn[2]=773,nn[3]=1,mr?Re.enable(2929):Re.disable(2929),De.depth_enable=mr,_r?Re.enable(3089):Re.disable(3089),De.scissor_enable=_r,Ht?Re.enable(2960):Re.disable(2960),De.stencil_enable=Ht,tr=De.profile,tr&&(pr=performance.now(),r.count+=xi),Re.useProgram(s.program),gr=Wr.angle_instanced_arrays;var Ba;for(It.setVAO(null),Re.uniform1i(P.location,!1),Re.uniform1i(G.location,j.bind()),Ba=ct.instances,Zr=0;Zr0?mo.constant[0]:0,Ys=mo.constant.length>1?mo.constant[1]:0,qs=mo.constant.length>2?mo.constant[2]:0,Ns=mo.constant.length>3?mo.constant[3]:0)):(Er(mo.buffer)?Oa=fe.createStream(34962,mo.buffer):Oa=fe.getBuffer(mo.buffer),Ya="type"in mo?Fi[mo.type]:Oa.dtype,Vs=!!mo.normalized,ha=mo.size|0,_n=mo.offset|0,Vn=mo.stride|0,wo=mo.divisor|0)),Ra=l.location,Xn=mt[Ra],jn===1?(Xn.buffer||Re.enableVertexAttribArray(Ra),un=ha||4,(Xn.type!==Ya||Xn.size!==un||Xn.buffer!==Oa||Xn.normalized!==Vs||Xn.offset!==_n||Xn.stride!==Vn)&&(Re.bindBuffer(34962,Oa.buffer),Re.vertexAttribPointer(Ra,un,Ya,Vs,Vn,_n),Xn.type=Ya,Xn.size=un,Xn.buffer=Oa,Xn.normalized=Vs,Xn.offset=_n,Xn.stride=Vn),Xn.divisor!==wo&&(gr.vertexAttribDivisorANGLE(Ra,wo),Xn.divisor=wo)):(Xn.buffer&&(Re.disableVertexAttribArray(Ra),Xn.buffer=null),(Xn.x!==Go||Xn.y!==Ys||Xn.z!==qs||Xn.w!==Ns)&&(Re.vertexAttrib4f(Ra,Go,Ys,qs,Ns),Xn.x=Go,Xn.y=Ys,Xn.z=qs,Xn.w=Ns)),$n=f.call(this,xe,Ai,Zr),Ka=!1,qn=1,Eo=0,Ja=0,lo=0,eo=0,sa=null,es=0,Na=!1,tn=5126,Pa=0,to=0,yo=0,Er($n)?(Ka=!0,sa=fe.createStream(34962,$n),tn=sa.dtype):(sa=fe.getBuffer($n),sa?tn=sa.dtype:"constant"in $n?(qn=2,typeof $n.constant=="number"?(Eo=$n.constant,Ja=lo=eo=0):(Eo=$n.constant.length>0?$n.constant[0]:0,Ja=$n.constant.length>1?$n.constant[1]:0,lo=$n.constant.length>2?$n.constant[2]:0,eo=$n.constant.length>3?$n.constant[3]:0)):(Er($n.buffer)?sa=fe.createStream(34962,$n.buffer):sa=fe.getBuffer($n.buffer),tn="type"in $n?Fi[$n.type]:sa.dtype,Na=!!$n.normalized,es=$n.size|0,Pa=$n.offset|0,to=$n.stride|0,yo=$n.divisor|0)),Jo=c.location,Ao=mt[Jo],qn===1?(Ao.buffer||Re.enableVertexAttribArray(Jo),Dn=es||1,(Ao.type!==tn||Ao.size!==Dn||Ao.buffer!==sa||Ao.normalized!==Na||Ao.offset!==Pa||Ao.stride!==to)&&(Re.bindBuffer(34962,sa.buffer),Re.vertexAttribPointer(Jo,Dn,tn,Na,to,Pa),Ao.type=tn,Ao.size=Dn,Ao.buffer=sa,Ao.normalized=Na,Ao.offset=Pa,Ao.stride=to),Ao.divisor!==yo&&(gr.vertexAttribDivisorANGLE(Jo,yo),Ao.divisor=yo)):(Ao.buffer&&(Re.disableVertexAttribArray(Jo),Ao.buffer=null),(Ao.x!==Eo||Ao.y!==Ja||Ao.z!==lo||Ao.w!==eo)&&(Re.vertexAttrib4f(Jo,Eo,Ja,lo,eo),Ao.x=Eo,Ao.y=Ja,Ao.z=lo,Ao.w=eo)),_a=h.call(this,xe,Ai,Zr),Ws=!1,Ca=1,Es=0,Ts=0,Ho=0,Wa=0,To=null,ts=0,Wo=!1,qa=5126,ln=0,Bo=0,ko=0,Er(_a)?(Ws=!0,To=fe.createStream(34962,_a),qa=To.dtype):(To=fe.getBuffer(_a),To?qa=To.dtype:"constant"in _a?(Ca=2,typeof _a.constant=="number"?(Es=_a.constant,Ts=Ho=Wa=0):(Es=_a.constant.length>0?_a.constant[0]:0,Ts=_a.constant.length>1?_a.constant[1]:0,Ho=_a.constant.length>2?_a.constant[2]:0,Wa=_a.constant.length>3?_a.constant[3]:0)):(Er(_a.buffer)?To=fe.createStream(34962,_a.buffer):To=fe.getBuffer(_a.buffer),qa="type"in _a?Fi[_a.type]:To.dtype,Wo=!!_a.normalized,ts=_a.size|0,ln=_a.offset|0,Bo=_a.stride|0,ko=_a.divisor|0)),oo=d.location,za=mt[oo],Ca===1?(za.buffer||Re.enableVertexAttribArray(oo),ea=ts||4,(za.type!==qa||za.size!==ea||za.buffer!==To||za.normalized!==Wo||za.offset!==ln||za.stride!==Bo)&&(Re.bindBuffer(34962,To.buffer),Re.vertexAttribPointer(oo,ea,qa,Wo,Bo,ln),za.type=qa,za.size=ea,za.buffer=To,za.normalized=Wo,za.offset=ln,za.stride=Bo),za.divisor!==ko&&(gr.vertexAttribDivisorANGLE(oo,ko),za.divisor=ko)):(za.buffer&&(Re.disableVertexAttribArray(oo),za.buffer=null),(za.x!==Es||za.y!==Ts||za.z!==Ho||za.w!==Wa)&&(Re.vertexAttrib4f(oo,Es,Ts,Ho,Wa),za.x=Es,za.y=Ts,za.z=Ho,za.w=Wa)),rs=p.call(this,xe,Ai,Zr),$s=!1,us=1,Ds=0,fl=0,as=0,Ma=0,Qs=null,ho=0,gs=!1,Vo=5126,Do=0,Lo=0,xs=0,Er(rs)?($s=!0,Qs=fe.createStream(34962,rs),Vo=Qs.dtype):(Qs=fe.getBuffer(rs),Qs?Vo=Qs.dtype:"constant"in rs?(us=2,typeof rs.constant=="number"?(Ds=rs.constant,fl=as=Ma=0):(Ds=rs.constant.length>0?rs.constant[0]:0,fl=rs.constant.length>1?rs.constant[1]:0,as=rs.constant.length>2?rs.constant[2]:0,Ma=rs.constant.length>3?rs.constant[3]:0)):(Er(rs.buffer)?Qs=fe.createStream(34962,rs.buffer):Qs=fe.getBuffer(rs.buffer),Vo="type"in rs?Fi[rs.type]:Qs.dtype,gs=!!rs.normalized,ho=rs.size|0,Do=rs.offset|0,Lo=rs.stride|0,xs=rs.divisor|0)),ks=x.location,Ea=mt[ks],us===1?(Ea.buffer||Re.enableVertexAttribArray(ks),Jn=ho||1,(Ea.type!==Vo||Ea.size!==Jn||Ea.buffer!==Qs||Ea.normalized!==gs||Ea.offset!==Do||Ea.stride!==Lo)&&(Re.bindBuffer(34962,Qs.buffer),Re.vertexAttribPointer(ks,Jn,Vo,gs,Lo,Do),Ea.type=Vo,Ea.size=Jn,Ea.buffer=Qs,Ea.normalized=gs,Ea.offset=Do,Ea.stride=Lo),Ea.divisor!==xs&&(gr.vertexAttribDivisorANGLE(ks,xs),Ea.divisor=xs)):(Ea.buffer&&(Re.disableVertexAttribArray(ks),Ea.buffer=null),(Ea.x!==Ds||Ea.y!==fl||Ea.z!==as||Ea.w!==Ma)&&(Re.vertexAttrib4f(ks,Ds,fl,as,Ma),Ea.x=Ds,Ea.y=fl,Ea.z=as,Ea.w=Ma)),Oo=b.call(this,xe,Ai,Zr),rl=!1,Gs=1,bs=0,zs=0,$o=0,Aa=0,os=null,_l=0,Ss=!1,po=5126,go=0,ss=0,qo=0,Er(Oo)?(rl=!0,os=fe.createStream(34962,Oo),po=os.dtype):(os=fe.getBuffer(Oo),os?po=os.dtype:"constant"in Oo?(Gs=2,typeof Oo.constant=="number"?(bs=Oo.constant,zs=$o=Aa=0):(bs=Oo.constant.length>0?Oo.constant[0]:0,zs=Oo.constant.length>1?Oo.constant[1]:0,$o=Oo.constant.length>2?Oo.constant[2]:0,Aa=Oo.constant.length>3?Oo.constant[3]:0)):(Er(Oo.buffer)?os=fe.createStream(34962,Oo.buffer):os=fe.getBuffer(Oo.buffer),po="type"in Oo?Fi[Oo.type]:os.dtype,Ss=!!Oo.normalized,_l=Oo.size|0,go=Oo.offset|0,ss=Oo.stride|0,qo=Oo.divisor|0)),zo=v.location,io=mt[zo],Gs===1?(io.buffer||Re.enableVertexAttribArray(zo),Io=_l||1,(io.type!==po||io.size!==Io||io.buffer!==os||io.normalized!==Ss||io.offset!==go||io.stride!==ss)&&(Re.bindBuffer(34962,os.buffer),Re.vertexAttribPointer(zo,Io,po,Ss,ss,go),io.type=po,io.size=Io,io.buffer=os,io.normalized=Ss,io.offset=go,io.stride=ss),io.divisor!==qo&&(gr.vertexAttribDivisorANGLE(zo,qo),io.divisor=qo)):(io.buffer&&(Re.disableVertexAttribArray(zo),io.buffer=null),(io.x!==bs||io.y!==zs||io.z!==$o||io.w!==Aa)&&(Re.vertexAttrib4f(zo,bs,zs,$o,Aa),io.x=bs,io.y=zs,io.z=$o,io.w=Aa)),Da=k.call(this,xe,Ai,Zr),vs=!1,fs=1,cl=0,el=0,Hs=0,Ro=0,tl=null,Fs=0,hl=!1,Fa=5126,Ms=0,jo=0,Rs=0,Er(Da)?(vs=!0,tl=fe.createStream(34962,Da),Fa=tl.dtype):(tl=fe.getBuffer(Da),tl?Fa=tl.dtype:"constant"in Da?(fs=2,typeof Da.constant=="number"?(cl=Da.constant,el=Hs=Ro=0):(cl=Da.constant.length>0?Da.constant[0]:0,el=Da.constant.length>1?Da.constant[1]:0,Hs=Da.constant.length>2?Da.constant[2]:0,Ro=Da.constant.length>3?Da.constant[3]:0)):(Er(Da.buffer)?tl=fe.createStream(34962,Da.buffer):tl=fe.getBuffer(Da.buffer),Fa="type"in Da?Fi[Da.type]:tl.dtype,hl=!!Da.normalized,Fs=Da.size|0,Ms=Da.offset|0,jo=Da.stride|0,Rs=Da.divisor|0)),Is=E.location,Bs=mt[Is],fs===1?(Bs.buffer||Re.enableVertexAttribArray(Is),Tt=Fs||1,(Bs.type!==Fa||Bs.size!==Tt||Bs.buffer!==tl||Bs.normalized!==hl||Bs.offset!==Ms||Bs.stride!==jo)&&(Re.bindBuffer(34962,tl.buffer),Re.vertexAttribPointer(Is,Tt,Fa,hl,jo,Ms),Bs.type=Fa,Bs.size=Tt,Bs.buffer=tl,Bs.normalized=hl,Bs.offset=Ms,Bs.stride=jo),Bs.divisor!==Rs&&(gr.vertexAttribDivisorANGLE(Is,Rs),Bs.divisor=Rs)):(Bs.buffer&&(Re.disableVertexAttribArray(Is),Bs.buffer=null),(Bs.x!==cl||Bs.y!==el||Bs.z!==Hs||Bs.w!==Ro)&&(Re.vertexAttrib4f(Is,cl,el,Hs,Ro),Bs.x=cl,Bs.y=el,Bs.z=Hs,Bs.w=Ro)),Vt=T.call(this,xe,Ai,Zr),wr=!1,yr=1,Fr=0,gi=0,Ti=0,ki=0,Ji=null,Fn=0,Pi=!1,hi=5126,Li=0,Si=0,Gn=0,Er(Vt)?(wr=!0,Ji=fe.createStream(34962,Vt),hi=Ji.dtype):(Ji=fe.getBuffer(Vt),Ji?hi=Ji.dtype:"constant"in Vt?(yr=2,typeof Vt.constant=="number"?(Fr=Vt.constant,gi=Ti=ki=0):(Fr=Vt.constant.length>0?Vt.constant[0]:0,gi=Vt.constant.length>1?Vt.constant[1]:0,Ti=Vt.constant.length>2?Vt.constant[2]:0,ki=Vt.constant.length>3?Vt.constant[3]:0)):(Er(Vt.buffer)?Ji=fe.createStream(34962,Vt.buffer):Ji=fe.getBuffer(Vt.buffer),hi="type"in Vt?Fi[Vt.type]:Ji.dtype,Pi=!!Vt.normalized,Fn=Vt.size|0,Li=Vt.offset|0,Si=Vt.stride|0,Gn=Vt.divisor|0)),ta=L.location,ya=mt[ta],yr===1?(ya.buffer||Re.enableVertexAttribArray(ta),ia=Fn||1,(ya.type!==hi||ya.size!==ia||ya.buffer!==Ji||ya.normalized!==Pi||ya.offset!==Li||ya.stride!==Si)&&(Re.bindBuffer(34962,Ji.buffer),Re.vertexAttribPointer(ta,ia,hi,Pi,Si,Li),ya.type=hi,ya.size=ia,ya.buffer=Ji,ya.normalized=Pi,ya.offset=Li,ya.stride=Si),ya.divisor!==Gn&&(gr.vertexAttribDivisorANGLE(ta,Gn),ya.divisor=Gn)):(ya.buffer&&(Re.disableVertexAttribArray(ta),ya.buffer=null),(ya.x!==Fr||ya.y!==gi||ya.z!==Ti||ya.w!==ki)&&(Re.vertexAttrib4f(ta,Fr,gi,Ti,ki),ya.x=Fr,ya.y=gi,ya.z=Ti,ya.w=ki)),pa=_.call(this,xe,Ai,Zr),va=!1,zn=1,is=0,Cs=0,Ks=0,dl=0,xl=null,Ol=0,bl=!1,eu=5126,Zl=0,Vl=0,ja=0,Er(pa)?(va=!0,xl=fe.createStream(34962,pa),eu=xl.dtype):(xl=fe.getBuffer(pa),xl?eu=xl.dtype:"constant"in pa?(zn=2,typeof pa.constant=="number"?(is=pa.constant,Cs=Ks=dl=0):(is=pa.constant.length>0?pa.constant[0]:0,Cs=pa.constant.length>1?pa.constant[1]:0,Ks=pa.constant.length>2?pa.constant[2]:0,dl=pa.constant.length>3?pa.constant[3]:0)):(Er(pa.buffer)?xl=fe.createStream(34962,pa.buffer):xl=fe.getBuffer(pa.buffer),eu="type"in pa?Fi[pa.type]:xl.dtype,bl=!!pa.normalized,Ol=pa.size|0,Zl=pa.offset|0,Vl=pa.stride|0,ja=pa.divisor|0)),ns=C.location,Js=mt[ns],zn===1?(Js.buffer||Re.enableVertexAttribArray(ns),cs=Ol||1,(Js.type!==eu||Js.size!==cs||Js.buffer!==xl||Js.normalized!==bl||Js.offset!==Zl||Js.stride!==Vl)&&(Re.bindBuffer(34962,xl.buffer),Re.vertexAttribPointer(ns,cs,eu,bl,Vl,Zl),Js.type=eu,Js.size=cs,Js.buffer=xl,Js.normalized=bl,Js.offset=Zl,Js.stride=Vl),Js.divisor!==ja&&(gr.vertexAttribDivisorANGLE(ns,ja),Js.divisor=ja)):(Js.buffer&&(Re.disableVertexAttribArray(ns),Js.buffer=null),(Js.x!==is||Js.y!==Cs||Js.z!==Ks||Js.w!==dl)&&(Re.vertexAttrib4f(ns,is,Cs,Ks,dl),Js.x=is,Js.y=Cs,Js.z=Ks,Js.w=dl)),sl=S.call(this,xe,Ai,Zr),ll=!1,il=1,zl=0,Ml=0,Rl=0,Al=0,Ll=null,ms=0,Os=!1,Xl=5126,Gl=0,Ul=0,le=0,Er(sl)?(ll=!0,Ll=fe.createStream(34962,sl),Xl=Ll.dtype):(Ll=fe.getBuffer(sl),Ll?Xl=Ll.dtype:"constant"in sl?(il=2,typeof sl.constant=="number"?(zl=sl.constant,Ml=Rl=Al=0):(zl=sl.constant.length>0?sl.constant[0]:0,Ml=sl.constant.length>1?sl.constant[1]:0,Rl=sl.constant.length>2?sl.constant[2]:0,Al=sl.constant.length>3?sl.constant[3]:0)):(Er(sl.buffer)?Ll=fe.createStream(34962,sl.buffer):Ll=fe.getBuffer(sl.buffer),Xl="type"in sl?Fi[sl.type]:Ll.dtype,Os=!!sl.normalized,ms=sl.size|0,Gl=sl.offset|0,Ul=sl.stride|0,le=sl.divisor|0)),w=m.location,q=mt[w],il===1?(q.buffer||Re.enableVertexAttribArray(w),Q=ms||1,(q.type!==Xl||q.size!==Q||q.buffer!==Ll||q.normalized!==Os||q.offset!==Gl||q.stride!==Ul)&&(Re.bindBuffer(34962,Ll.buffer),Re.vertexAttribPointer(w,Q,Xl,Os,Ul,Gl),q.type=Xl,q.size=Q,q.buffer=Ll,q.normalized=Os,q.offset=Gl,q.stride=Ul),q.divisor!==le&&(gr.vertexAttribDivisorANGLE(w,le),q.divisor=le)):(q.buffer&&(Re.disableVertexAttribArray(w),q.buffer=null),(q.x!==zl||q.y!==Ml||q.z!==Rl||q.w!==Al)&&(Re.vertexAttrib4f(w,zl,Ml,Rl,Al),q.x=zl,q.y=Ml,q.z=Rl,q.w=Al)),ee=Ai.markerTexture,ee&&ee._reglType==="framebuffer"&&(ee=ee.color[0]),ue=ee._texture,Re.uniform1i(A.location,ue.bind()),Ve=Ai.opacity,(!Zr||et!==Ve)&&(et=Ve,Re.uniform1f(B.location,Ve)),yt=U.call(this,xe,Ai,Zr),Dt=yt[0],or=yt[1],(!Zr||ir!==Dt||kr!==or)&&(ir=Dt,kr=or,Re.uniform2f(F.location,Dt,or)),Vr=xe.pixelRatio,(!Zr||he!==Vr)&&(he=Vr,Re.uniform1f(H.location,Vr)),Se=Ai.scale,qe=Se[0],lt=Se[1],(!Zr||Ge!==qe||tt!==lt)&&(Ge=qe,tt=lt,Re.uniform2f(N.location,qe,lt)),vt=Ai.scaleFract,Gt=vt[0],cr=vt[1],(!Zr||nr!==Gt||Ar!==cr)&&(nr=Gt,Ar=cr,Re.uniform2f(W.location,Gt,cr)),Rr=Ai.translate,ri=Rr[0],Mi=Rr[1],(!Zr||si!==ri||hn!==Mi)&&(si=ri,hn=Mi,Re.uniform2f(re.location,ri,Mi)),Zn=Ai.translateFract,Yn=Zn[0],Fo=Zn[1],(!Zr||Ua!==Yn||vl!==Fo)&&(Ua=Yn,vl=Fo,Re.uniform2f(ae.location,Yn,Fo)),Us=Ai.elements,ml=null,au=Er(Us),au?ml=_e.createStream(Us):ml=_e.getElements(Us),ml&&Re.bindBuffer(34963,ml.buffer.buffer),Sl=Ai.offset,Yl=Ai.count,Yl&&(Ba>0?ml?gr.drawElementsInstancedANGLE(0,Yl,ml.type,Sl<<(ml.type-5121>>1),Ba):gr.drawArraysInstancedANGLE(0,Sl,Yl,Ba):Ba<0&&(ml?Re.drawElements(0,Yl,ml.type,Sl<<(ml.type-5121>>1)):Re.drawArrays(0,Sl,Yl)),xe.viewportWidth=vn,xe.viewportHeight=da,No&&fe.destroyStream(Oa),Ka&&fe.destroyStream(sa),Ws&&fe.destroyStream(To),$s&&fe.destroyStream(Qs),rl&&fe.destroyStream(os),vs&&fe.destroyStream(tl),wr&&fe.destroyStream(Ji),va&&fe.destroyStream(xl),ll&&fe.destroyStream(Ll),ue.unbind(),au&&_e.destroyStream(ml))}j.unbind(),De.dirty=!0,It.setVAO(null),tr&&(r.cpuTime+=performance.now()-pr)}}}});var L8=Te((V_r,FNe)=>{FNe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ue,Fe,me,Ne,ce,Ke,it,bt,Nt,nt,Ye,kt,At,St,Bt,Zt,Et,Ae,ot,dt,pt,at,Xe,rt,Qe,zt,Yt,lr,mr,_r){"use strict";var Ht,Re,xe,Oe,Ie,De,ct,_e,fe,pe,mt,It,Pt,rr,Wr,Nr,Er,Br,mi,Di,Ii,Ci,nn,ii,wi,Gi,Ft,gt,Ut,Wt,xr,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi;return Ht=t.gl,Re=t.context,xe=t.strings,Oe=t.next,Ie=t.current,De=t.draw,ct=t.elements,_e=t.buffer,fe=t.shader,pe=t.attributes,mt=t.vao,It=t.uniforms,Pt=t.framebuffer,rr=t.extensions,Wr=t.timer,Nr=t.isBufferArgs,Er=Oe.blend_color,Br=Ie.blend_color,mi=Oe.blend_equation,Di=Ie.blend_equation,Ii=Oe.blend_func,Ci=Ie.blend_func,nn=Oe.depth_range,ii=Ie.depth_range,wi=Oe.colorMask,Gi=Ie.colorMask,Ft=Oe.polygonOffset_offset,gt=Ie.polygonOffset_offset,Ut=Oe.sample_coverage,Wt=Ie.sample_coverage,xr=Oe.stencil_func,Lr=Ie.stencil_func,Ur=Oe.stencil_opFront,Ir=Ie.stencil_opFront,Gr=Oe.stencil_opBack,jr=Ie.stencil_opBack,yi=Oe.scissor_box,Ei=Ie.scissor_box,Vi=Oe.viewport,ti=Ie.viewport,en={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Yr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},oi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Bi={add:32774,subtract:32778,"reverse subtract":32779},an={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},rn={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Fi={cw:2304,ccw:2305},{draw:function(Ri){var xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,Tt,Vt,wr,yr,Fr,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js,cs,sl;if(xn=rr.angle_instanced_arrays,xi=Pt.next,xi!==Pt.cur&&(xi?Ht.bindFramebuffer(36160,xi.framebuffer):Ht.bindFramebuffer(36160,null),Pt.cur=xi),Ie.dirty){var ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Ul,le,w,q,Q,ee,ue,Ve,et,yt,Dt,ir,or,kr,Vr,he,Se,qe,Ge,lt,tt,vt,Gt;ll=Oe.dither,ll!==Ie.dither&&(ll?Ht.enable(3024):Ht.disable(3024),Ie.dither=ll),il=mi[0],zl=mi[1],(il!==Di[0]||zl!==Di[1])&&(Ht.blendEquationSeparate(il,zl),Di[0]=il,Di[1]=zl),Ml=Oe.depth_func,Ml!==Ie.depth_func&&(Ht.depthFunc(Ml),Ie.depth_func=Ml),Rl=nn[0],Al=nn[1],(Rl!==ii[0]||Al!==ii[1])&&(Ht.depthRange(Rl,Al),ii[0]=Rl,ii[1]=Al),Ll=Oe.depth_mask,Ll!==Ie.depth_mask&&(Ht.depthMask(Ll),Ie.depth_mask=Ll),ms=wi[0],Os=wi[1],Xl=wi[2],Gl=wi[3],(ms!==Gi[0]||Os!==Gi[1]||Xl!==Gi[2]||Gl!==Gi[3])&&(Ht.colorMask(ms,Os,Xl,Gl),Gi[0]=ms,Gi[1]=Os,Gi[2]=Xl,Gi[3]=Gl),Ul=Oe.cull_enable,Ul!==Ie.cull_enable&&(Ul?Ht.enable(2884):Ht.disable(2884),Ie.cull_enable=Ul),le=Oe.cull_face,le!==Ie.cull_face&&(Ht.cullFace(le),Ie.cull_face=le),w=Oe.frontFace,w!==Ie.frontFace&&(Ht.frontFace(w),Ie.frontFace=w),q=Oe.lineWidth,q!==Ie.lineWidth&&(Ht.lineWidth(q),Ie.lineWidth=q),Q=Oe.polygonOffset_enable,Q!==Ie.polygonOffset_enable&&(Q?Ht.enable(32823):Ht.disable(32823),Ie.polygonOffset_enable=Q),ee=Ft[0],ue=Ft[1],(ee!==gt[0]||ue!==gt[1])&&(Ht.polygonOffset(ee,ue),gt[0]=ee,gt[1]=ue),Ve=Oe.sample_alpha,Ve!==Ie.sample_alpha&&(Ve?Ht.enable(32926):Ht.disable(32926),Ie.sample_alpha=Ve),et=Oe.sample_enable,et!==Ie.sample_enable&&(et?Ht.enable(32928):Ht.disable(32928),Ie.sample_enable=et),yt=Ut[0],Dt=Ut[1],(yt!==Wt[0]||Dt!==Wt[1])&&(Ht.sampleCoverage(yt,Dt),Wt[0]=yt,Wt[1]=Dt),ir=Oe.stencil_mask,ir!==Ie.stencil_mask&&(Ht.stencilMask(ir),Ie.stencil_mask=ir),or=xr[0],kr=xr[1],Vr=xr[2],(or!==Lr[0]||kr!==Lr[1]||Vr!==Lr[2])&&(Ht.stencilFunc(or,kr,Vr),Lr[0]=or,Lr[1]=kr,Lr[2]=Vr),he=Ur[0],Se=Ur[1],qe=Ur[2],Ge=Ur[3],(he!==Ir[0]||Se!==Ir[1]||qe!==Ir[2]||Ge!==Ir[3])&&(Ht.stencilOpSeparate(he,Se,qe,Ge),Ir[0]=he,Ir[1]=Se,Ir[2]=qe,Ir[3]=Ge),lt=Gr[0],tt=Gr[1],vt=Gr[2],Gt=Gr[3],(lt!==jr[0]||tt!==jr[1]||vt!==jr[2]||Gt!==jr[3])&&(Ht.stencilOpSeparate(lt,tt,vt,Gt),jr[0]=lt,jr[1]=tt,jr[2]=vt,jr[3]=Gt)}Xr=Ri.viewport,ft=Xr.x|0,tr=Xr.y|0,pr="width"in Xr?Xr.width|0:Re.framebufferWidth-ft,gr="height"in Xr?Xr.height|0:Re.framebufferHeight-tr,Zr=Re.viewportWidth,Re.viewportWidth=pr,Ai=Re.viewportHeight,Re.viewportHeight=gr,Ht.viewport(ft,tr,pr,gr),ti[0]=ft,ti[1]=tr,ti[2]=pr,ti[3]=gr,Ht.blendColor(0,0,0,1),Br[0]=0,Br[1]=0,Br[2]=0,Br[3]=1,n?Ht.enable(3042):Ht.disable(3042),Ie.blend_enable=n,Ht.blendFuncSeparate(770,771,773,1),Ci[0]=770,Ci[1]=771,Ci[2]=773,Ci[3]=1,i?Ht.enable(2929):Ht.disable(2929),Ie.depth_enable=i,Qi=Ri.viewport,ni=Qi.x|0,Zi=Qi.y|0,aa="width"in Qi?Qi.width|0:Re.framebufferWidth-ni,Mn="height"in Qi?Qi.height|0:Re.framebufferHeight-Zi,Ht.scissor(ni,Zi,aa,Mn),Ei[0]=ni,Ei[1]=Zi,Ei[2]=aa,Ei[3]=Mn,a?Ht.enable(3089):Ht.disable(3089),Ie.scissor_enable=a,o?Ht.enable(2960):Ht.disable(2960),Ie.stencil_enable=o,Un=Ie.profile,Un&&(Ga=performance.now(),r.count++),Ht.useProgram(s.program),ma=rr.angle_instanced_arrays,mt.setVAO(null),oa=u.call(this,Re,Ri,0),ka=!1,so=1,Kr=0,Ia=0,Yo=0,fa=0,kn=null,Ta=0,ys=!1,uo=5126,ls=0,$a=0,fo=0,Nr(oa)?(ka=!0,kn=_e.createStream(34962,oa),uo=kn.dtype):(kn=_e.getBuffer(oa),kn?uo=kn.dtype:"constant"in oa?(so=2,typeof oa.constant=="number"?(Kr=oa.constant,Ia=Yo=fa=0):(Kr=oa.constant.length>0?oa.constant[0]:0,Ia=oa.constant.length>1?oa.constant[1]:0,Yo=oa.constant.length>2?oa.constant[2]:0,fa=oa.constant.length>3?oa.constant[3]:0)):(Nr(oa.buffer)?kn=_e.createStream(34962,oa.buffer):kn=_e.getBuffer(oa.buffer),uo="type"in oa?rn[oa.type]:kn.dtype,ys=!!oa.normalized,Ta=oa.size|0,ls=oa.offset|0,$a=oa.stride|0,fo=oa.divisor|0)),mn=l.location,ra=pe[mn],so===1?(ra.buffer||Ht.enableVertexAttribArray(mn),wa=Ta||4,(ra.type!==uo||ra.size!==wa||ra.buffer!==kn||ra.normalized!==ys||ra.offset!==ls||ra.stride!==$a)&&(Ht.bindBuffer(34962,kn.buffer),Ht.vertexAttribPointer(mn,wa,uo,ys,$a,ls),ra.type=uo,ra.size=wa,ra.buffer=kn,ra.normalized=ys,ra.offset=ls,ra.stride=$a),ra.divisor!==fo&&(ma.vertexAttribDivisorANGLE(mn,fo),ra.divisor=fo)):(ra.buffer&&(Ht.disableVertexAttribArray(mn),ra.buffer=null),(ra.x!==Kr||ra.y!==Ia||ra.z!==Yo||ra.w!==fa)&&(Ht.vertexAttrib4f(mn,Kr,Ia,Yo,fa),ra.x=Kr,ra.y=Ia,ra.z=Yo,ra.w=fa)),ws=f.call(this,Re,Ri,0),Co=!1,Po=1,ji=0,gn=0,Ps=0,Ha=0,Sn=null,ao=0,Ba=!1,Ko=5126,Qo=0,Wi=0,Sa=0,Nr(ws)?(Co=!0,Sn=_e.createStream(34962,ws),Ko=Sn.dtype):(Sn=_e.getBuffer(ws),Sn?Ko=Sn.dtype:"constant"in ws?(Po=2,typeof ws.constant=="number"?(ji=ws.constant,gn=Ps=Ha=0):(ji=ws.constant.length>0?ws.constant[0]:0,gn=ws.constant.length>1?ws.constant[1]:0,Ps=ws.constant.length>2?ws.constant[2]:0,Ha=ws.constant.length>3?ws.constant[3]:0)):(Nr(ws.buffer)?Sn=_e.createStream(34962,ws.buffer):Sn=_e.getBuffer(ws.buffer),Ko="type"in ws?rn[ws.type]:Sn.dtype,Ba=!!ws.normalized,ao=ws.size|0,Qo=ws.offset|0,Wi=ws.stride|0,Sa=ws.divisor|0)),Qa=c.location,vn=pe[Qa],Po===1?(vn.buffer||Ht.enableVertexAttribArray(Qa),da=ao||1,(vn.type!==Ko||vn.size!==da||vn.buffer!==Sn||vn.normalized!==Ba||vn.offset!==Qo||vn.stride!==Wi)&&(Ht.bindBuffer(34962,Sn.buffer),Ht.vertexAttribPointer(Qa,da,Ko,Ba,Wi,Qo),vn.type=Ko,vn.size=da,vn.buffer=Sn,vn.normalized=Ba,vn.offset=Qo,vn.stride=Wi),vn.divisor!==Sa&&(ma.vertexAttribDivisorANGLE(Qa,Sa),vn.divisor=Sa)):(vn.buffer&&(Ht.disableVertexAttribArray(Qa),vn.buffer=null),(vn.x!==ji||vn.y!==gn||vn.z!==Ps||vn.w!==Ha)&&(Ht.vertexAttrib4f(Qa,ji,gn,Ps,Ha),vn.x=ji,vn.y=gn,vn.z=Ps,vn.w=Ha)),la=h.call(this,Re,Ri,0),vo=!1,As=1,ps=0,co=0,mo=0,No=0,jn=null,Go=0,Ys=!1,qs=5126,Ns=0,Oa=0,ha=0,Nr(la)?(vo=!0,jn=_e.createStream(34962,la),qs=jn.dtype):(jn=_e.getBuffer(la),jn?qs=jn.dtype:"constant"in la?(As=2,typeof la.constant=="number"?(ps=la.constant,co=mo=No=0):(ps=la.constant.length>0?la.constant[0]:0,co=la.constant.length>1?la.constant[1]:0,mo=la.constant.length>2?la.constant[2]:0,No=la.constant.length>3?la.constant[3]:0)):(Nr(la.buffer)?jn=_e.createStream(34962,la.buffer):jn=_e.getBuffer(la.buffer),qs="type"in la?rn[la.type]:jn.dtype,Ys=!!la.normalized,Go=la.size|0,Ns=la.offset|0,Oa=la.stride|0,ha=la.divisor|0)),Vs=d.location,Ya=pe[Vs],As===1?(Ya.buffer||Ht.enableVertexAttribArray(Vs),_n=Go||4,(Ya.type!==qs||Ya.size!==_n||Ya.buffer!==jn||Ya.normalized!==Ys||Ya.offset!==Ns||Ya.stride!==Oa)&&(Ht.bindBuffer(34962,jn.buffer),Ht.vertexAttribPointer(Vs,_n,qs,Ys,Oa,Ns),Ya.type=qs,Ya.size=_n,Ya.buffer=jn,Ya.normalized=Ys,Ya.offset=Ns,Ya.stride=Oa),Ya.divisor!==ha&&(ma.vertexAttribDivisorANGLE(Vs,ha),Ya.divisor=ha)):(Ya.buffer&&(Ht.disableVertexAttribArray(Vs),Ya.buffer=null),(Ya.x!==ps||Ya.y!==co||Ya.z!==mo||Ya.w!==No)&&(Ht.vertexAttrib4f(Vs,ps,co,mo,No),Ya.x=ps,Ya.y=co,Ya.z=mo,Ya.w=No)),Vn=p.call(this,Re,Ri,0),wo=!1,Ra=1,Xn=0,un=0,$n=0,Ka=0,qn=null,Eo=0,Ja=!1,lo=5126,eo=0,sa=0,es=0,Nr(Vn)?(wo=!0,qn=_e.createStream(34962,Vn),lo=qn.dtype):(qn=_e.getBuffer(Vn),qn?lo=qn.dtype:"constant"in Vn?(Ra=2,typeof Vn.constant=="number"?(Xn=Vn.constant,un=$n=Ka=0):(Xn=Vn.constant.length>0?Vn.constant[0]:0,un=Vn.constant.length>1?Vn.constant[1]:0,$n=Vn.constant.length>2?Vn.constant[2]:0,Ka=Vn.constant.length>3?Vn.constant[3]:0)):(Nr(Vn.buffer)?qn=_e.createStream(34962,Vn.buffer):qn=_e.getBuffer(Vn.buffer),lo="type"in Vn?rn[Vn.type]:qn.dtype,Ja=!!Vn.normalized,Eo=Vn.size|0,eo=Vn.offset|0,sa=Vn.stride|0,es=Vn.divisor|0)),Na=x.location,tn=pe[Na],Ra===1?(tn.buffer||Ht.enableVertexAttribArray(Na),Pa=Eo||1,(tn.type!==lo||tn.size!==Pa||tn.buffer!==qn||tn.normalized!==Ja||tn.offset!==eo||tn.stride!==sa)&&(Ht.bindBuffer(34962,qn.buffer),Ht.vertexAttribPointer(Na,Pa,lo,Ja,sa,eo),tn.type=lo,tn.size=Pa,tn.buffer=qn,tn.normalized=Ja,tn.offset=eo,tn.stride=sa),tn.divisor!==es&&(ma.vertexAttribDivisorANGLE(Na,es),tn.divisor=es)):(tn.buffer&&(Ht.disableVertexAttribArray(Na),tn.buffer=null),(tn.x!==Xn||tn.y!==un||tn.z!==$n||tn.w!==Ka)&&(Ht.vertexAttrib4f(Na,Xn,un,$n,Ka),tn.x=Xn,tn.y=un,tn.z=$n,tn.w=Ka)),to=b.call(this,Re,Ri,0),yo=!1,Jo=1,Ao=0,Dn=0,_a=0,Ws=0,Ca=null,Es=0,Ts=!1,Ho=5126,Wa=0,To=0,ts=0,Nr(to)?(yo=!0,Ca=_e.createStream(34962,to),Ho=Ca.dtype):(Ca=_e.getBuffer(to),Ca?Ho=Ca.dtype:"constant"in to?(Jo=2,typeof to.constant=="number"?(Ao=to.constant,Dn=_a=Ws=0):(Ao=to.constant.length>0?to.constant[0]:0,Dn=to.constant.length>1?to.constant[1]:0,_a=to.constant.length>2?to.constant[2]:0,Ws=to.constant.length>3?to.constant[3]:0)):(Nr(to.buffer)?Ca=_e.createStream(34962,to.buffer):Ca=_e.getBuffer(to.buffer),Ho="type"in to?rn[to.type]:Ca.dtype,Ts=!!to.normalized,Es=to.size|0,Wa=to.offset|0,To=to.stride|0,ts=to.divisor|0)),Wo=v.location,qa=pe[Wo],Jo===1?(qa.buffer||Ht.enableVertexAttribArray(Wo),ln=Es||1,(qa.type!==Ho||qa.size!==ln||qa.buffer!==Ca||qa.normalized!==Ts||qa.offset!==Wa||qa.stride!==To)&&(Ht.bindBuffer(34962,Ca.buffer),Ht.vertexAttribPointer(Wo,ln,Ho,Ts,To,Wa),qa.type=Ho,qa.size=ln,qa.buffer=Ca,qa.normalized=Ts,qa.offset=Wa,qa.stride=To),qa.divisor!==ts&&(ma.vertexAttribDivisorANGLE(Wo,ts),qa.divisor=ts)):(qa.buffer&&(Ht.disableVertexAttribArray(Wo),qa.buffer=null),(qa.x!==Ao||qa.y!==Dn||qa.z!==_a||qa.w!==Ws)&&(Ht.vertexAttrib4f(Wo,Ao,Dn,_a,Ws),qa.x=Ao,qa.y=Dn,qa.z=_a,qa.w=Ws)),Bo=k.call(this,Re,Ri,0),ko=!1,oo=1,za=0,ea=0,rs=0,$s=0,us=null,Ds=0,fl=!1,as=5126,Ma=0,Qs=0,ho=0,Nr(Bo)?(ko=!0,us=_e.createStream(34962,Bo),as=us.dtype):(us=_e.getBuffer(Bo),us?as=us.dtype:"constant"in Bo?(oo=2,typeof Bo.constant=="number"?(za=Bo.constant,ea=rs=$s=0):(za=Bo.constant.length>0?Bo.constant[0]:0,ea=Bo.constant.length>1?Bo.constant[1]:0,rs=Bo.constant.length>2?Bo.constant[2]:0,$s=Bo.constant.length>3?Bo.constant[3]:0)):(Nr(Bo.buffer)?us=_e.createStream(34962,Bo.buffer):us=_e.getBuffer(Bo.buffer),as="type"in Bo?rn[Bo.type]:us.dtype,fl=!!Bo.normalized,Ds=Bo.size|0,Ma=Bo.offset|0,Qs=Bo.stride|0,ho=Bo.divisor|0)),gs=E.location,Vo=pe[gs],oo===1?(Vo.buffer||Ht.enableVertexAttribArray(gs),Do=Ds||1,(Vo.type!==as||Vo.size!==Do||Vo.buffer!==us||Vo.normalized!==fl||Vo.offset!==Ma||Vo.stride!==Qs)&&(Ht.bindBuffer(34962,us.buffer),Ht.vertexAttribPointer(gs,Do,as,fl,Qs,Ma),Vo.type=as,Vo.size=Do,Vo.buffer=us,Vo.normalized=fl,Vo.offset=Ma,Vo.stride=Qs),Vo.divisor!==ho&&(ma.vertexAttribDivisorANGLE(gs,ho),Vo.divisor=ho)):(Vo.buffer&&(Ht.disableVertexAttribArray(gs),Vo.buffer=null),(Vo.x!==za||Vo.y!==ea||Vo.z!==rs||Vo.w!==$s)&&(Ht.vertexAttrib4f(gs,za,ea,rs,$s),Vo.x=za,Vo.y=ea,Vo.z=rs,Vo.w=$s)),Lo=T.call(this,Re,Ri,0),xs=!1,ks=1,Ea=0,Jn=0,Oo=0,rl=0,Gs=null,bs=0,zs=!1,$o=5126,Aa=0,os=0,_l=0,Nr(Lo)?(xs=!0,Gs=_e.createStream(34962,Lo),$o=Gs.dtype):(Gs=_e.getBuffer(Lo),Gs?$o=Gs.dtype:"constant"in Lo?(ks=2,typeof Lo.constant=="number"?(Ea=Lo.constant,Jn=Oo=rl=0):(Ea=Lo.constant.length>0?Lo.constant[0]:0,Jn=Lo.constant.length>1?Lo.constant[1]:0,Oo=Lo.constant.length>2?Lo.constant[2]:0,rl=Lo.constant.length>3?Lo.constant[3]:0)):(Nr(Lo.buffer)?Gs=_e.createStream(34962,Lo.buffer):Gs=_e.getBuffer(Lo.buffer),$o="type"in Lo?rn[Lo.type]:Gs.dtype,zs=!!Lo.normalized,bs=Lo.size|0,Aa=Lo.offset|0,os=Lo.stride|0,_l=Lo.divisor|0)),Ss=L.location,po=pe[Ss],ks===1?(po.buffer||Ht.enableVertexAttribArray(Ss),go=bs||1,(po.type!==$o||po.size!==go||po.buffer!==Gs||po.normalized!==zs||po.offset!==Aa||po.stride!==os)&&(Ht.bindBuffer(34962,Gs.buffer),Ht.vertexAttribPointer(Ss,go,$o,zs,os,Aa),po.type=$o,po.size=go,po.buffer=Gs,po.normalized=zs,po.offset=Aa,po.stride=os),po.divisor!==_l&&(ma.vertexAttribDivisorANGLE(Ss,_l),po.divisor=_l)):(po.buffer&&(Ht.disableVertexAttribArray(Ss),po.buffer=null),(po.x!==Ea||po.y!==Jn||po.z!==Oo||po.w!==rl)&&(Ht.vertexAttrib4f(Ss,Ea,Jn,Oo,rl),po.x=Ea,po.y=Jn,po.z=Oo,po.w=rl)),ss=_.call(this,Re,Ri,0),qo=!1,zo=1,io=0,Io=0,Da=0,vs=0,fs=null,cl=0,el=!1,Hs=5126,Ro=0,tl=0,Fs=0,Nr(ss)?(qo=!0,fs=_e.createStream(34962,ss),Hs=fs.dtype):(fs=_e.getBuffer(ss),fs?Hs=fs.dtype:"constant"in ss?(zo=2,typeof ss.constant=="number"?(io=ss.constant,Io=Da=vs=0):(io=ss.constant.length>0?ss.constant[0]:0,Io=ss.constant.length>1?ss.constant[1]:0,Da=ss.constant.length>2?ss.constant[2]:0,vs=ss.constant.length>3?ss.constant[3]:0)):(Nr(ss.buffer)?fs=_e.createStream(34962,ss.buffer):fs=_e.getBuffer(ss.buffer),Hs="type"in ss?rn[ss.type]:fs.dtype,el=!!ss.normalized,cl=ss.size|0,Ro=ss.offset|0,tl=ss.stride|0,Fs=ss.divisor|0)),hl=C.location,Fa=pe[hl],zo===1?(Fa.buffer||Ht.enableVertexAttribArray(hl),Ms=cl||1,(Fa.type!==Hs||Fa.size!==Ms||Fa.buffer!==fs||Fa.normalized!==el||Fa.offset!==Ro||Fa.stride!==tl)&&(Ht.bindBuffer(34962,fs.buffer),Ht.vertexAttribPointer(hl,Ms,Hs,el,tl,Ro),Fa.type=Hs,Fa.size=Ms,Fa.buffer=fs,Fa.normalized=el,Fa.offset=Ro,Fa.stride=tl),Fa.divisor!==Fs&&(ma.vertexAttribDivisorANGLE(hl,Fs),Fa.divisor=Fs)):(Fa.buffer&&(Ht.disableVertexAttribArray(hl),Fa.buffer=null),(Fa.x!==io||Fa.y!==Io||Fa.z!==Da||Fa.w!==vs)&&(Ht.vertexAttrib4f(hl,io,Io,Da,vs),Fa.x=io,Fa.y=Io,Fa.z=Da,Fa.w=vs)),jo=S.call(this,Re,Ri,0),Rs=!1,Is=1,Bs=0,Tt=0,Vt=0,wr=0,yr=null,Fr=0,gi=!1,Ti=5126,ki=0,Ji=0,Fn=0,Nr(jo)?(Rs=!0,yr=_e.createStream(34962,jo),Ti=yr.dtype):(yr=_e.getBuffer(jo),yr?Ti=yr.dtype:"constant"in jo?(Is=2,typeof jo.constant=="number"?(Bs=jo.constant,Tt=Vt=wr=0):(Bs=jo.constant.length>0?jo.constant[0]:0,Tt=jo.constant.length>1?jo.constant[1]:0,Vt=jo.constant.length>2?jo.constant[2]:0,wr=jo.constant.length>3?jo.constant[3]:0)):(Nr(jo.buffer)?yr=_e.createStream(34962,jo.buffer):yr=_e.getBuffer(jo.buffer),Ti="type"in jo?rn[jo.type]:yr.dtype,gi=!!jo.normalized,Fr=jo.size|0,ki=jo.offset|0,Ji=jo.stride|0,Fn=jo.divisor|0)),Pi=m.location,hi=pe[Pi],Is===1?(hi.buffer||Ht.enableVertexAttribArray(Pi),Li=Fr||1,(hi.type!==Ti||hi.size!==Li||hi.buffer!==yr||hi.normalized!==gi||hi.offset!==ki||hi.stride!==Ji)&&(Ht.bindBuffer(34962,yr.buffer),Ht.vertexAttribPointer(Pi,Li,Ti,gi,Ji,ki),hi.type=Ti,hi.size=Li,hi.buffer=yr,hi.normalized=gi,hi.offset=ki,hi.stride=Ji),hi.divisor!==Fn&&(ma.vertexAttribDivisorANGLE(Pi,Fn),hi.divisor=Fn)):(hi.buffer&&(Ht.disableVertexAttribArray(Pi),hi.buffer=null),(hi.x!==Bs||hi.y!==Tt||hi.z!==Vt||hi.w!==wr)&&(Ht.vertexAttrib4f(Pi,Bs,Tt,Vt,wr),hi.x=Bs,hi.y=Tt,hi.z=Vt,hi.w=wr)),Ht.uniform1i(P.location,!1),Si=Ri.opacity,Ht.uniform1f(A.location,Si),Gn=F.call(this,Re,Ri,0),ta=Gn[0],ya=Gn[1],Ht.uniform2f(B.location,ta,ya),Ht.uniform1i(U.location,G.bind()),ia=Re.pixelRatio,Ht.uniform1f(j.location,ia),pa=Ri.scale,va=pa[0],zn=pa[1],Ht.uniform2f(H.location,va,zn),is=Ri.scaleFract,Cs=is[0],Ks=is[1],Ht.uniform2f(N.location,Cs,Ks),dl=Ri.translate,xl=dl[0],Ol=dl[1],Ht.uniform2f(W.location,xl,Ol),bl=Ri.translateFract,eu=bl[0],Zl=bl[1],Ht.uniform2f(re.location,eu,Zl),Vl=Ri.elements,ja=null,ns=Nr(Vl),ns?ja=ct.createStream(Vl):ja=ct.getElements(Vl),ja&&Ht.bindBuffer(34963,ja.buffer.buffer),Js=Ri.offset,cs=Ri.count,cs&&(sl=De.instances,sl>0?ja?ma.drawElementsInstancedANGLE(0,cs,ja.type,Js<<(ja.type-5121>>1),sl):ma.drawArraysInstancedANGLE(0,Js,cs,sl):sl<0&&(ja?Ht.drawElements(0,cs,ja.type,Js<<(ja.type-5121>>1)):Ht.drawArrays(0,Js,cs)),Ie.dirty=!0,mt.setVAO(null),Re.viewportWidth=Zr,Re.viewportHeight=Ai,Un&&(r.cpuTime+=performance.now()-Ga),ka&&_e.destroyStream(kn),Co&&_e.destroyStream(Sn),vo&&_e.destroyStream(jn),wo&&_e.destroyStream(qn),yo&&_e.destroyStream(Ca),ko&&_e.destroyStream(us),xs&&_e.destroyStream(Gs),qo&&_e.destroyStream(fs),Rs&&_e.destroyStream(yr),G.unbind(),ns&&ct.destroyStream(ja))},scope:function(Ri,xn,xi){var Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,Tt,Vt,wr,yr,Fr,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Ul,le,w,q,Q,ee,ue,Ve,et,yt,Dt,ir,or,kr,Vr,he,Se,qe,Ge,lt,tt,vt,Gt,nr,cr,Ar,Rr,ri,si,Mi,hn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,ql,ou,Pu,iu,tu,Wu,Qu,Ku,ju,Xu,lf,xf,ef,tf,Z,se,ze,je,$e,st,jt,_t,hr,Cr,zr,ui,$r,Oi,fn,pi,zi,Xi,pn,sn,bi,xo,no,Xo,js,El,Pl,pu,Il,fu,Zu,Vu,rf,ds,Wl,Au,Tu,uf,df,Ef;Xr=Ri.viewport,ft=Xr.x|0,tr=Xr.y|0,pr="width"in Xr?Xr.width|0:Re.framebufferWidth-ft,gr="height"in Xr?Xr.height|0:Re.framebufferHeight-tr,Zr=Re.viewportWidth,Re.viewportWidth=pr,Ai=Re.viewportHeight,Re.viewportHeight=gr,Qi=Vi[0],Vi[0]=ft,ni=Vi[1],Vi[1]=tr,Zi=Vi[2],Vi[2]=pr,aa=Vi[3],Vi[3]=gr,Mn=Er[0],Er[0]=ae,Un=Er[1],Er[1]=be,Ga=Er[2],Er[2]=Pe,ma=Er[3],Er[3]=Ce,oa=Oe.blend_enable,Oe.blend_enable=de,ka=Ii[0],Ii[0]=te,so=Ii[1],Ii[1]=ke,Kr=Ii[2],Ii[2]=Ee,Ia=Ii[3],Ii[3]=Me,Yo=Oe.depth_enable,Oe.depth_enable=Ue,fa=Ri.viewport,kn=fa.x|0,Ta=fa.y|0,ys="width"in fa?fa.width|0:Re.framebufferWidth-kn,uo="height"in fa?fa.height|0:Re.framebufferHeight-Ta,ls=yi[0],yi[0]=kn,$a=yi[1],yi[1]=Ta,fo=yi[2],yi[2]=ys,mn=yi[3],yi[3]=uo,ra=Oe.scissor_enable,Oe.scissor_enable=Fe,wa=Oe.stencil_enable,Oe.stencil_enable=me,ws=Ie.profile,ws&&(Co=performance.now(),r.count++),Po=Ri.elements,ji=null,gn=Nr(Po),gn?ji=ct.createStream(Po):ji=ct.getElements(Po),Ps=De.elements,De.elements=ji,Ha=Ri.offset,Sn=De.offset,De.offset=Ha,ao=Ri.count,Ba=De.count,De.count=ao,Ko=De.primitive,De.primitive=Ne,Qo=It[ce],It[ce]=!1,Wi=It[it],It[it]=Ke,Sa=Ri.opacity,Qa=It[bt],It[bt]=Sa,vn=F.call(this,Re,Ri,xi),da=It[Nt],It[Nt]=vn,la=Re.pixelRatio,vo=It[nt],It[nt]=la,As=Ri.scale,ps=It[Ye],It[Ye]=As,co=Ri.scaleFract,mo=It[kt],It[kt]=co,No=Ri.translate,jn=It[At],It[At]=No,Go=Ri.translateFract,Ys=It[St],It[St]=Go,qs=Ri.markerTexture,Ns=It[Bt],It[Bt]=qs,Oa=k.call(this,Re,Ri,xi),ha=!1,Vs=1,Ya=0,_n=0,Vn=0,wo=0,Ra=null,Xn=0,un=!1,$n=5126,Ka=0,qn=0,Eo=0,Nr(Oa)?(ha=!0,Ra=_e.createStream(34962,Oa),$n=Ra.dtype):(Ra=_e.getBuffer(Oa),Ra?$n=Ra.dtype:"constant"in Oa?(Vs=2,typeof Oa.constant=="number"?(Ya=Oa.constant,_n=Vn=wo=0):(Ya=Oa.constant.length>0?Oa.constant[0]:0,_n=Oa.constant.length>1?Oa.constant[1]:0,Vn=Oa.constant.length>2?Oa.constant[2]:0,wo=Oa.constant.length>3?Oa.constant[3]:0)):(Nr(Oa.buffer)?Ra=_e.createStream(34962,Oa.buffer):Ra=_e.getBuffer(Oa.buffer),$n="type"in Oa?rn[Oa.type]:Ra.dtype,un=!!Oa.normalized,Xn=Oa.size|0,Ka=Oa.offset|0,qn=Oa.stride|0,Eo=Oa.divisor|0)),Ja=Zt.state,Zt.state=Vs,lo=Zt.x,Zt.x=Ya,eo=Zt.y,Zt.y=_n,sa=Zt.z,Zt.z=Vn,es=Zt.w,Zt.w=wo,Na=Zt.buffer,Zt.buffer=Ra,tn=Zt.size,Zt.size=Xn,Pa=Zt.normalized,Zt.normalized=un,to=Zt.type,Zt.type=$n,yo=Zt.offset,Zt.offset=Ka,Jo=Zt.stride,Zt.stride=qn,Ao=Zt.divisor,Zt.divisor=Eo,Dn=_.call(this,Re,Ri,xi),_a=!1,Ws=1,Ca=0,Es=0,Ts=0,Ho=0,Wa=null,To=0,ts=!1,Wo=5126,qa=0,ln=0,Bo=0,Nr(Dn)?(_a=!0,Wa=_e.createStream(34962,Dn),Wo=Wa.dtype):(Wa=_e.getBuffer(Dn),Wa?Wo=Wa.dtype:"constant"in Dn?(Ws=2,typeof Dn.constant=="number"?(Ca=Dn.constant,Es=Ts=Ho=0):(Ca=Dn.constant.length>0?Dn.constant[0]:0,Es=Dn.constant.length>1?Dn.constant[1]:0,Ts=Dn.constant.length>2?Dn.constant[2]:0,Ho=Dn.constant.length>3?Dn.constant[3]:0)):(Nr(Dn.buffer)?Wa=_e.createStream(34962,Dn.buffer):Wa=_e.getBuffer(Dn.buffer),Wo="type"in Dn?rn[Dn.type]:Wa.dtype,ts=!!Dn.normalized,To=Dn.size|0,qa=Dn.offset|0,ln=Dn.stride|0,Bo=Dn.divisor|0)),ko=Et.state,Et.state=Ws,oo=Et.x,Et.x=Ca,za=Et.y,Et.y=Es,ea=Et.z,Et.z=Ts,rs=Et.w,Et.w=Ho,$s=Et.buffer,Et.buffer=Wa,us=Et.size,Et.size=To,Ds=Et.normalized,Et.normalized=ts,fl=Et.type,Et.type=Wo,as=Et.offset,Et.offset=qa,Ma=Et.stride,Et.stride=ln,Qs=Et.divisor,Et.divisor=Bo,ho=T.call(this,Re,Ri,xi),gs=!1,Vo=1,Do=0,Lo=0,xs=0,ks=0,Ea=null,Jn=0,Oo=!1,rl=5126,Gs=0,bs=0,zs=0,Nr(ho)?(gs=!0,Ea=_e.createStream(34962,ho),rl=Ea.dtype):(Ea=_e.getBuffer(ho),Ea?rl=Ea.dtype:"constant"in ho?(Vo=2,typeof ho.constant=="number"?(Do=ho.constant,Lo=xs=ks=0):(Do=ho.constant.length>0?ho.constant[0]:0,Lo=ho.constant.length>1?ho.constant[1]:0,xs=ho.constant.length>2?ho.constant[2]:0,ks=ho.constant.length>3?ho.constant[3]:0)):(Nr(ho.buffer)?Ea=_e.createStream(34962,ho.buffer):Ea=_e.getBuffer(ho.buffer),rl="type"in ho?rn[ho.type]:Ea.dtype,Oo=!!ho.normalized,Jn=ho.size|0,Gs=ho.offset|0,bs=ho.stride|0,zs=ho.divisor|0)),$o=Ae.state,Ae.state=Vo,Aa=Ae.x,Ae.x=Do,os=Ae.y,Ae.y=Lo,_l=Ae.z,Ae.z=xs,Ss=Ae.w,Ae.w=ks,po=Ae.buffer,Ae.buffer=Ea,go=Ae.size,Ae.size=Jn,ss=Ae.normalized,Ae.normalized=Oo,qo=Ae.type,Ae.type=rl,zo=Ae.offset,Ae.offset=Gs,io=Ae.stride,Ae.stride=bs,Io=Ae.divisor,Ae.divisor=zs,Da=S.call(this,Re,Ri,xi),vs=!1,fs=1,cl=0,el=0,Hs=0,Ro=0,tl=null,Fs=0,hl=!1,Fa=5126,Ms=0,jo=0,Rs=0,Nr(Da)?(vs=!0,tl=_e.createStream(34962,Da),Fa=tl.dtype):(tl=_e.getBuffer(Da),tl?Fa=tl.dtype:"constant"in Da?(fs=2,typeof Da.constant=="number"?(cl=Da.constant,el=Hs=Ro=0):(cl=Da.constant.length>0?Da.constant[0]:0,el=Da.constant.length>1?Da.constant[1]:0,Hs=Da.constant.length>2?Da.constant[2]:0,Ro=Da.constant.length>3?Da.constant[3]:0)):(Nr(Da.buffer)?tl=_e.createStream(34962,Da.buffer):tl=_e.getBuffer(Da.buffer),Fa="type"in Da?rn[Da.type]:tl.dtype,hl=!!Da.normalized,Fs=Da.size|0,Ms=Da.offset|0,jo=Da.stride|0,Rs=Da.divisor|0)),Is=ot.state,ot.state=fs,Bs=ot.x,ot.x=cl,Tt=ot.y,ot.y=el,Vt=ot.z,ot.z=Hs,wr=ot.w,ot.w=Ro,yr=ot.buffer,ot.buffer=tl,Fr=ot.size,ot.size=Fs,gi=ot.normalized,ot.normalized=hl,Ti=ot.type,ot.type=Fa,ki=ot.offset,ot.offset=Ms,Ji=ot.stride,ot.stride=jo,Fn=ot.divisor,ot.divisor=Rs,Pi=b.call(this,Re,Ri,xi),hi=!1,Li=1,Si=0,Gn=0,ta=0,ya=0,ia=null,pa=0,va=!1,zn=5126,is=0,Cs=0,Ks=0,Nr(Pi)?(hi=!0,ia=_e.createStream(34962,Pi),zn=ia.dtype):(ia=_e.getBuffer(Pi),ia?zn=ia.dtype:"constant"in Pi?(Li=2,typeof Pi.constant=="number"?(Si=Pi.constant,Gn=ta=ya=0):(Si=Pi.constant.length>0?Pi.constant[0]:0,Gn=Pi.constant.length>1?Pi.constant[1]:0,ta=Pi.constant.length>2?Pi.constant[2]:0,ya=Pi.constant.length>3?Pi.constant[3]:0)):(Nr(Pi.buffer)?ia=_e.createStream(34962,Pi.buffer):ia=_e.getBuffer(Pi.buffer),zn="type"in Pi?rn[Pi.type]:ia.dtype,va=!!Pi.normalized,pa=Pi.size|0,is=Pi.offset|0,Cs=Pi.stride|0,Ks=Pi.divisor|0)),dl=dt.state,dt.state=Li,xl=dt.x,dt.x=Si,Ol=dt.y,dt.y=Gn,bl=dt.z,dt.z=ta,eu=dt.w,dt.w=ya,Zl=dt.buffer,dt.buffer=ia,Vl=dt.size,dt.size=pa,ja=dt.normalized,dt.normalized=va,ns=dt.type,dt.type=zn,Js=dt.offset,dt.offset=is,cs=dt.stride,dt.stride=Cs,sl=dt.divisor,dt.divisor=Ks,ll=f.call(this,Re,Ri,xi),il=!1,zl=1,Ml=0,Rl=0,Al=0,Ll=0,ms=null,Os=0,Xl=!1,Gl=5126,Ul=0,le=0,w=0,Nr(ll)?(il=!0,ms=_e.createStream(34962,ll),Gl=ms.dtype):(ms=_e.getBuffer(ll),ms?Gl=ms.dtype:"constant"in ll?(zl=2,typeof ll.constant=="number"?(Ml=ll.constant,Rl=Al=Ll=0):(Ml=ll.constant.length>0?ll.constant[0]:0,Rl=ll.constant.length>1?ll.constant[1]:0,Al=ll.constant.length>2?ll.constant[2]:0,Ll=ll.constant.length>3?ll.constant[3]:0)):(Nr(ll.buffer)?ms=_e.createStream(34962,ll.buffer):ms=_e.getBuffer(ll.buffer),Gl="type"in ll?rn[ll.type]:ms.dtype,Xl=!!ll.normalized,Os=ll.size|0,Ul=ll.offset|0,le=ll.stride|0,w=ll.divisor|0)),q=pt.state,pt.state=zl,Q=pt.x,pt.x=Ml,ee=pt.y,pt.y=Rl,ue=pt.z,pt.z=Al,Ve=pt.w,pt.w=Ll,et=pt.buffer,pt.buffer=ms,yt=pt.size,pt.size=Os,Dt=pt.normalized,pt.normalized=Xl,ir=pt.type,pt.type=Gl,or=pt.offset,pt.offset=Ul,kr=pt.stride,pt.stride=le,Vr=pt.divisor,pt.divisor=w,he=h.call(this,Re,Ri,xi),Se=!1,qe=1,Ge=0,lt=0,tt=0,vt=0,Gt=null,nr=0,cr=!1,Ar=5126,Rr=0,ri=0,si=0,Nr(he)?(Se=!0,Gt=_e.createStream(34962,he),Ar=Gt.dtype):(Gt=_e.getBuffer(he),Gt?Ar=Gt.dtype:"constant"in he?(qe=2,typeof he.constant=="number"?(Ge=he.constant,lt=tt=vt=0):(Ge=he.constant.length>0?he.constant[0]:0,lt=he.constant.length>1?he.constant[1]:0,tt=he.constant.length>2?he.constant[2]:0,vt=he.constant.length>3?he.constant[3]:0)):(Nr(he.buffer)?Gt=_e.createStream(34962,he.buffer):Gt=_e.getBuffer(he.buffer),Ar="type"in he?rn[he.type]:Gt.dtype,cr=!!he.normalized,nr=he.size|0,Rr=he.offset|0,ri=he.stride|0,si=he.divisor|0)),Mi=at.state,at.state=qe,hn=at.x,at.x=Ge,Zn=at.y,at.y=lt,Yn=at.z,at.z=tt,Ua=at.w,at.w=vt,Fo=at.buffer,at.buffer=Gt,vl=at.size,at.size=nr,Us=at.normalized,at.normalized=cr,ml=at.type,at.type=Ar,au=at.offset,at.offset=Rr,Sl=at.stride,at.stride=ri,Yl=at.divisor,at.divisor=si,ql=u.call(this,Re,Ri,xi),ou=!1,Pu=1,iu=0,tu=0,Wu=0,Qu=0,Ku=null,ju=0,Xu=!1,lf=5126,xf=0,ef=0,tf=0,Nr(ql)?(ou=!0,Ku=_e.createStream(34962,ql),lf=Ku.dtype):(Ku=_e.getBuffer(ql),Ku?lf=Ku.dtype:"constant"in ql?(Pu=2,typeof ql.constant=="number"?(iu=ql.constant,tu=Wu=Qu=0):(iu=ql.constant.length>0?ql.constant[0]:0,tu=ql.constant.length>1?ql.constant[1]:0,Wu=ql.constant.length>2?ql.constant[2]:0,Qu=ql.constant.length>3?ql.constant[3]:0)):(Nr(ql.buffer)?Ku=_e.createStream(34962,ql.buffer):Ku=_e.getBuffer(ql.buffer),lf="type"in ql?rn[ql.type]:Ku.dtype,Xu=!!ql.normalized,ju=ql.size|0,xf=ql.offset|0,ef=ql.stride|0,tf=ql.divisor|0)),Z=Xe.state,Xe.state=Pu,se=Xe.x,Xe.x=iu,ze=Xe.y,Xe.y=tu,je=Xe.z,Xe.z=Wu,$e=Xe.w,Xe.w=Qu,st=Xe.buffer,Xe.buffer=Ku,jt=Xe.size,Xe.size=ju,_t=Xe.normalized,Xe.normalized=Xu,hr=Xe.type,Xe.type=lf,Cr=Xe.offset,Xe.offset=xf,zr=Xe.stride,Xe.stride=ef,ui=Xe.divisor,Xe.divisor=tf,$r=p.call(this,Re,Ri,xi),Oi=!1,fn=1,pi=0,zi=0,Xi=0,pn=0,sn=null,bi=0,xo=!1,no=5126,Xo=0,js=0,El=0,Nr($r)?(Oi=!0,sn=_e.createStream(34962,$r),no=sn.dtype):(sn=_e.getBuffer($r),sn?no=sn.dtype:"constant"in $r?(fn=2,typeof $r.constant=="number"?(pi=$r.constant,zi=Xi=pn=0):(pi=$r.constant.length>0?$r.constant[0]:0,zi=$r.constant.length>1?$r.constant[1]:0,Xi=$r.constant.length>2?$r.constant[2]:0,pn=$r.constant.length>3?$r.constant[3]:0)):(Nr($r.buffer)?sn=_e.createStream(34962,$r.buffer):sn=_e.getBuffer($r.buffer),no="type"in $r?rn[$r.type]:sn.dtype,xo=!!$r.normalized,bi=$r.size|0,Xo=$r.offset|0,js=$r.stride|0,El=$r.divisor|0)),Pl=rt.state,rt.state=fn,pu=rt.x,rt.x=pi,Il=rt.y,rt.y=zi,fu=rt.z,rt.z=Xi,Zu=rt.w,rt.w=pn,Vu=rt.buffer,rt.buffer=sn,rf=rt.size,rt.size=bi,ds=rt.normalized,rt.normalized=xo,Wl=rt.type,rt.type=no,Au=rt.offset,rt.offset=Xo,Tu=rt.stride,rt.stride=js,uf=rt.divisor,rt.divisor=El,df=fe.vert,fe.vert=Qe,Ef=fe.frag,fe.frag=zt,Ie.dirty=!0,xn(Re,Ri,xi),Re.viewportWidth=Zr,Re.viewportHeight=Ai,Vi[0]=Qi,Vi[1]=ni,Vi[2]=Zi,Vi[3]=aa,Er[0]=Mn,Er[1]=Un,Er[2]=Ga,Er[3]=ma,Oe.blend_enable=oa,Ii[0]=ka,Ii[1]=so,Ii[2]=Kr,Ii[3]=Ia,Oe.depth_enable=Yo,yi[0]=ls,yi[1]=$a,yi[2]=fo,yi[3]=mn,Oe.scissor_enable=ra,Oe.stencil_enable=wa,ws&&(r.cpuTime+=performance.now()-Co),gn&&ct.destroyStream(ji),De.elements=Ps,De.offset=Sn,De.count=Ba,De.primitive=Ko,It[ce]=Qo,It[it]=Wi,It[bt]=Qa,It[Nt]=da,It[nt]=vo,It[Ye]=ps,It[kt]=mo,It[At]=jn,It[St]=Ys,It[Bt]=Ns,ha&&_e.destroyStream(Ra),Zt.state=Ja,Zt.x=lo,Zt.y=eo,Zt.z=sa,Zt.w=es,Zt.buffer=Na,Zt.size=tn,Zt.normalized=Pa,Zt.type=to,Zt.offset=yo,Zt.stride=Jo,Zt.divisor=Ao,_a&&_e.destroyStream(Wa),Et.state=ko,Et.x=oo,Et.y=za,Et.z=ea,Et.w=rs,Et.buffer=$s,Et.size=us,Et.normalized=Ds,Et.type=fl,Et.offset=as,Et.stride=Ma,Et.divisor=Qs,gs&&_e.destroyStream(Ea),Ae.state=$o,Ae.x=Aa,Ae.y=os,Ae.z=_l,Ae.w=Ss,Ae.buffer=po,Ae.size=go,Ae.normalized=ss,Ae.type=qo,Ae.offset=zo,Ae.stride=io,Ae.divisor=Io,vs&&_e.destroyStream(tl),ot.state=Is,ot.x=Bs,ot.y=Tt,ot.z=Vt,ot.w=wr,ot.buffer=yr,ot.size=Fr,ot.normalized=gi,ot.type=Ti,ot.offset=ki,ot.stride=Ji,ot.divisor=Fn,hi&&_e.destroyStream(ia),dt.state=dl,dt.x=xl,dt.y=Ol,dt.z=bl,dt.w=eu,dt.buffer=Zl,dt.size=Vl,dt.normalized=ja,dt.type=ns,dt.offset=Js,dt.stride=cs,dt.divisor=sl,il&&_e.destroyStream(ms),pt.state=q,pt.x=Q,pt.y=ee,pt.z=ue,pt.w=Ve,pt.buffer=et,pt.size=yt,pt.normalized=Dt,pt.type=ir,pt.offset=or,pt.stride=kr,pt.divisor=Vr,Se&&_e.destroyStream(Gt),at.state=Mi,at.x=hn,at.y=Zn,at.z=Yn,at.w=Ua,at.buffer=Fo,at.size=vl,at.normalized=Us,at.type=ml,at.offset=au,at.stride=Sl,at.divisor=Yl,ou&&_e.destroyStream(Ku),Xe.state=Z,Xe.x=se,Xe.y=ze,Xe.z=je,Xe.w=$e,Xe.buffer=st,Xe.size=jt,Xe.normalized=_t,Xe.type=hr,Xe.offset=Cr,Xe.stride=zr,Xe.divisor=ui,Oi&&_e.destroyStream(sn),rt.state=Pl,rt.x=pu,rt.y=Il,rt.z=fu,rt.w=Zu,rt.buffer=Vu,rt.size=rf,rt.normalized=ds,rt.type=Wl,rt.offset=Au,rt.stride=Tu,rt.divisor=uf,fe.vert=df,fe.frag=Ef,Ie.dirty=!0},batch:function(Ri,xn){var xi,Xr,ft,tr,pr,gr,Zr;if(xi=rr.angle_instanced_arrays,Xr=Pt.next,Xr!==Pt.cur&&(Xr?Ht.bindFramebuffer(36160,Xr.framebuffer):Ht.bindFramebuffer(36160,null),Pt.cur=Xr),Ie.dirty){var Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn;Ai=Oe.dither,Ai!==Ie.dither&&(Ai?Ht.enable(3024):Ht.disable(3024),Ie.dither=Ai),Qi=mi[0],ni=mi[1],(Qi!==Di[0]||ni!==Di[1])&&(Ht.blendEquationSeparate(Qi,ni),Di[0]=Qi,Di[1]=ni),Zi=Oe.depth_func,Zi!==Ie.depth_func&&(Ht.depthFunc(Zi),Ie.depth_func=Zi),aa=nn[0],Mn=nn[1],(aa!==ii[0]||Mn!==ii[1])&&(Ht.depthRange(aa,Mn),ii[0]=aa,ii[1]=Mn),Un=Oe.depth_mask,Un!==Ie.depth_mask&&(Ht.depthMask(Un),Ie.depth_mask=Un),Ga=wi[0],ma=wi[1],oa=wi[2],ka=wi[3],(Ga!==Gi[0]||ma!==Gi[1]||oa!==Gi[2]||ka!==Gi[3])&&(Ht.colorMask(Ga,ma,oa,ka),Gi[0]=Ga,Gi[1]=ma,Gi[2]=oa,Gi[3]=ka),so=Oe.cull_enable,so!==Ie.cull_enable&&(so?Ht.enable(2884):Ht.disable(2884),Ie.cull_enable=so),Kr=Oe.cull_face,Kr!==Ie.cull_face&&(Ht.cullFace(Kr),Ie.cull_face=Kr),Ia=Oe.frontFace,Ia!==Ie.frontFace&&(Ht.frontFace(Ia),Ie.frontFace=Ia),Yo=Oe.lineWidth,Yo!==Ie.lineWidth&&(Ht.lineWidth(Yo),Ie.lineWidth=Yo),fa=Oe.polygonOffset_enable,fa!==Ie.polygonOffset_enable&&(fa?Ht.enable(32823):Ht.disable(32823),Ie.polygonOffset_enable=fa),kn=Ft[0],Ta=Ft[1],(kn!==gt[0]||Ta!==gt[1])&&(Ht.polygonOffset(kn,Ta),gt[0]=kn,gt[1]=Ta),ys=Oe.sample_alpha,ys!==Ie.sample_alpha&&(ys?Ht.enable(32926):Ht.disable(32926),Ie.sample_alpha=ys),uo=Oe.sample_enable,uo!==Ie.sample_enable&&(uo?Ht.enable(32928):Ht.disable(32928),Ie.sample_enable=uo),ls=Ut[0],$a=Ut[1],(ls!==Wt[0]||$a!==Wt[1])&&(Ht.sampleCoverage(ls,$a),Wt[0]=ls,Wt[1]=$a),fo=Oe.stencil_mask,fo!==Ie.stencil_mask&&(Ht.stencilMask(fo),Ie.stencil_mask=fo),mn=xr[0],ra=xr[1],wa=xr[2],(mn!==Lr[0]||ra!==Lr[1]||wa!==Lr[2])&&(Ht.stencilFunc(mn,ra,wa),Lr[0]=mn,Lr[1]=ra,Lr[2]=wa),ws=Ur[0],Co=Ur[1],Po=Ur[2],ji=Ur[3],(ws!==Ir[0]||Co!==Ir[1]||Po!==Ir[2]||ji!==Ir[3])&&(Ht.stencilOpSeparate(ws,Co,Po,ji),Ir[0]=ws,Ir[1]=Co,Ir[2]=Po,Ir[3]=ji),gn=Gr[0],Ps=Gr[1],Ha=Gr[2],Sn=Gr[3],(gn!==jr[0]||Ps!==jr[1]||Ha!==jr[2]||Sn!==jr[3])&&(Ht.stencilOpSeparate(gn,Ps,Ha,Sn),jr[0]=gn,jr[1]=Ps,jr[2]=Ha,jr[3]=Sn)}Ht.blendColor(0,0,0,1),Br[0]=0,Br[1]=0,Br[2]=0,Br[3]=1,Yt?Ht.enable(3042):Ht.disable(3042),Ie.blend_enable=Yt,Ht.blendFuncSeparate(770,771,773,1),Ci[0]=770,Ci[1]=771,Ci[2]=773,Ci[3]=1,lr?Ht.enable(2929):Ht.disable(2929),Ie.depth_enable=lr,mr?Ht.enable(3089):Ht.disable(3089),Ie.scissor_enable=mr,_r?Ht.enable(2960):Ht.disable(2960),Ie.stencil_enable=_r,ft=Ie.profile,ft&&(tr=performance.now(),r.count+=xn),Ht.useProgram(s.program),pr=rr.angle_instanced_arrays;var ao;for(mt.setVAO(null),Ht.uniform1i(P.location,!1),Ht.uniform1i(U.location,G.bind()),ao=De.instances,gr=0;gr0?co.constant[0]:0,Go=co.constant.length>1?co.constant[1]:0,Ys=co.constant.length>2?co.constant[2]:0,qs=co.constant.length>3?co.constant[3]:0)):(Nr(co.buffer)?Ns=_e.createStream(34962,co.buffer):Ns=_e.getBuffer(co.buffer),Vs="type"in co?rn[co.type]:Ns.dtype,ha=!!co.normalized,Oa=co.size|0,Ya=co.offset|0,_n=co.stride|0,Vn=co.divisor|0)),wo=l.location,Ra=pe[wo],No===1?(Ra.buffer||Ht.enableVertexAttribArray(wo),Xn=Oa||4,(Ra.type!==Vs||Ra.size!==Xn||Ra.buffer!==Ns||Ra.normalized!==ha||Ra.offset!==Ya||Ra.stride!==_n)&&(Ht.bindBuffer(34962,Ns.buffer),Ht.vertexAttribPointer(wo,Xn,Vs,ha,_n,Ya),Ra.type=Vs,Ra.size=Xn,Ra.buffer=Ns,Ra.normalized=ha,Ra.offset=Ya,Ra.stride=_n),Ra.divisor!==Vn&&(pr.vertexAttribDivisorANGLE(wo,Vn),Ra.divisor=Vn)):(Ra.buffer&&(Ht.disableVertexAttribArray(wo),Ra.buffer=null),(Ra.x!==jn||Ra.y!==Go||Ra.z!==Ys||Ra.w!==qs)&&(Ht.vertexAttrib4f(wo,jn,Go,Ys,qs),Ra.x=jn,Ra.y=Go,Ra.z=Ys,Ra.w=qs)),un=f.call(this,Re,Zr,gr),$n=!1,Ka=1,qn=0,Eo=0,Ja=0,lo=0,eo=null,sa=0,es=!1,Na=5126,tn=0,Pa=0,to=0,Nr(un)?($n=!0,eo=_e.createStream(34962,un),Na=eo.dtype):(eo=_e.getBuffer(un),eo?Na=eo.dtype:"constant"in un?(Ka=2,typeof un.constant=="number"?(qn=un.constant,Eo=Ja=lo=0):(qn=un.constant.length>0?un.constant[0]:0,Eo=un.constant.length>1?un.constant[1]:0,Ja=un.constant.length>2?un.constant[2]:0,lo=un.constant.length>3?un.constant[3]:0)):(Nr(un.buffer)?eo=_e.createStream(34962,un.buffer):eo=_e.getBuffer(un.buffer),Na="type"in un?rn[un.type]:eo.dtype,es=!!un.normalized,sa=un.size|0,tn=un.offset|0,Pa=un.stride|0,to=un.divisor|0)),yo=c.location,Jo=pe[yo],Ka===1?(Jo.buffer||Ht.enableVertexAttribArray(yo),Ao=sa||1,(Jo.type!==Na||Jo.size!==Ao||Jo.buffer!==eo||Jo.normalized!==es||Jo.offset!==tn||Jo.stride!==Pa)&&(Ht.bindBuffer(34962,eo.buffer),Ht.vertexAttribPointer(yo,Ao,Na,es,Pa,tn),Jo.type=Na,Jo.size=Ao,Jo.buffer=eo,Jo.normalized=es,Jo.offset=tn,Jo.stride=Pa),Jo.divisor!==to&&(pr.vertexAttribDivisorANGLE(yo,to),Jo.divisor=to)):(Jo.buffer&&(Ht.disableVertexAttribArray(yo),Jo.buffer=null),(Jo.x!==qn||Jo.y!==Eo||Jo.z!==Ja||Jo.w!==lo)&&(Ht.vertexAttrib4f(yo,qn,Eo,Ja,lo),Jo.x=qn,Jo.y=Eo,Jo.z=Ja,Jo.w=lo)),Dn=h.call(this,Re,Zr,gr),_a=!1,Ws=1,Ca=0,Es=0,Ts=0,Ho=0,Wa=null,To=0,ts=!1,Wo=5126,qa=0,ln=0,Bo=0,Nr(Dn)?(_a=!0,Wa=_e.createStream(34962,Dn),Wo=Wa.dtype):(Wa=_e.getBuffer(Dn),Wa?Wo=Wa.dtype:"constant"in Dn?(Ws=2,typeof Dn.constant=="number"?(Ca=Dn.constant,Es=Ts=Ho=0):(Ca=Dn.constant.length>0?Dn.constant[0]:0,Es=Dn.constant.length>1?Dn.constant[1]:0,Ts=Dn.constant.length>2?Dn.constant[2]:0,Ho=Dn.constant.length>3?Dn.constant[3]:0)):(Nr(Dn.buffer)?Wa=_e.createStream(34962,Dn.buffer):Wa=_e.getBuffer(Dn.buffer),Wo="type"in Dn?rn[Dn.type]:Wa.dtype,ts=!!Dn.normalized,To=Dn.size|0,qa=Dn.offset|0,ln=Dn.stride|0,Bo=Dn.divisor|0)),ko=d.location,oo=pe[ko],Ws===1?(oo.buffer||Ht.enableVertexAttribArray(ko),za=To||4,(oo.type!==Wo||oo.size!==za||oo.buffer!==Wa||oo.normalized!==ts||oo.offset!==qa||oo.stride!==ln)&&(Ht.bindBuffer(34962,Wa.buffer),Ht.vertexAttribPointer(ko,za,Wo,ts,ln,qa),oo.type=Wo,oo.size=za,oo.buffer=Wa,oo.normalized=ts,oo.offset=qa,oo.stride=ln),oo.divisor!==Bo&&(pr.vertexAttribDivisorANGLE(ko,Bo),oo.divisor=Bo)):(oo.buffer&&(Ht.disableVertexAttribArray(ko),oo.buffer=null),(oo.x!==Ca||oo.y!==Es||oo.z!==Ts||oo.w!==Ho)&&(Ht.vertexAttrib4f(ko,Ca,Es,Ts,Ho),oo.x=Ca,oo.y=Es,oo.z=Ts,oo.w=Ho)),ea=p.call(this,Re,Zr,gr),rs=!1,$s=1,us=0,Ds=0,fl=0,as=0,Ma=null,Qs=0,ho=!1,gs=5126,Vo=0,Do=0,Lo=0,Nr(ea)?(rs=!0,Ma=_e.createStream(34962,ea),gs=Ma.dtype):(Ma=_e.getBuffer(ea),Ma?gs=Ma.dtype:"constant"in ea?($s=2,typeof ea.constant=="number"?(us=ea.constant,Ds=fl=as=0):(us=ea.constant.length>0?ea.constant[0]:0,Ds=ea.constant.length>1?ea.constant[1]:0,fl=ea.constant.length>2?ea.constant[2]:0,as=ea.constant.length>3?ea.constant[3]:0)):(Nr(ea.buffer)?Ma=_e.createStream(34962,ea.buffer):Ma=_e.getBuffer(ea.buffer),gs="type"in ea?rn[ea.type]:Ma.dtype,ho=!!ea.normalized,Qs=ea.size|0,Vo=ea.offset|0,Do=ea.stride|0,Lo=ea.divisor|0)),xs=x.location,ks=pe[xs],$s===1?(ks.buffer||Ht.enableVertexAttribArray(xs),Ea=Qs||1,(ks.type!==gs||ks.size!==Ea||ks.buffer!==Ma||ks.normalized!==ho||ks.offset!==Vo||ks.stride!==Do)&&(Ht.bindBuffer(34962,Ma.buffer),Ht.vertexAttribPointer(xs,Ea,gs,ho,Do,Vo),ks.type=gs,ks.size=Ea,ks.buffer=Ma,ks.normalized=ho,ks.offset=Vo,ks.stride=Do),ks.divisor!==Lo&&(pr.vertexAttribDivisorANGLE(xs,Lo),ks.divisor=Lo)):(ks.buffer&&(Ht.disableVertexAttribArray(xs),ks.buffer=null),(ks.x!==us||ks.y!==Ds||ks.z!==fl||ks.w!==as)&&(Ht.vertexAttrib4f(xs,us,Ds,fl,as),ks.x=us,ks.y=Ds,ks.z=fl,ks.w=as)),Jn=b.call(this,Re,Zr,gr),Oo=!1,rl=1,Gs=0,bs=0,zs=0,$o=0,Aa=null,os=0,_l=!1,Ss=5126,po=0,go=0,ss=0,Nr(Jn)?(Oo=!0,Aa=_e.createStream(34962,Jn),Ss=Aa.dtype):(Aa=_e.getBuffer(Jn),Aa?Ss=Aa.dtype:"constant"in Jn?(rl=2,typeof Jn.constant=="number"?(Gs=Jn.constant,bs=zs=$o=0):(Gs=Jn.constant.length>0?Jn.constant[0]:0,bs=Jn.constant.length>1?Jn.constant[1]:0,zs=Jn.constant.length>2?Jn.constant[2]:0,$o=Jn.constant.length>3?Jn.constant[3]:0)):(Nr(Jn.buffer)?Aa=_e.createStream(34962,Jn.buffer):Aa=_e.getBuffer(Jn.buffer),Ss="type"in Jn?rn[Jn.type]:Aa.dtype,_l=!!Jn.normalized,os=Jn.size|0,po=Jn.offset|0,go=Jn.stride|0,ss=Jn.divisor|0)),qo=v.location,zo=pe[qo],rl===1?(zo.buffer||Ht.enableVertexAttribArray(qo),io=os||1,(zo.type!==Ss||zo.size!==io||zo.buffer!==Aa||zo.normalized!==_l||zo.offset!==po||zo.stride!==go)&&(Ht.bindBuffer(34962,Aa.buffer),Ht.vertexAttribPointer(qo,io,Ss,_l,go,po),zo.type=Ss,zo.size=io,zo.buffer=Aa,zo.normalized=_l,zo.offset=po,zo.stride=go),zo.divisor!==ss&&(pr.vertexAttribDivisorANGLE(qo,ss),zo.divisor=ss)):(zo.buffer&&(Ht.disableVertexAttribArray(qo),zo.buffer=null),(zo.x!==Gs||zo.y!==bs||zo.z!==zs||zo.w!==$o)&&(Ht.vertexAttrib4f(qo,Gs,bs,zs,$o),zo.x=Gs,zo.y=bs,zo.z=zs,zo.w=$o)),Io=k.call(this,Re,Zr,gr),Da=!1,vs=1,fs=0,cl=0,el=0,Hs=0,Ro=null,tl=0,Fs=!1,hl=5126,Fa=0,Ms=0,jo=0,Nr(Io)?(Da=!0,Ro=_e.createStream(34962,Io),hl=Ro.dtype):(Ro=_e.getBuffer(Io),Ro?hl=Ro.dtype:"constant"in Io?(vs=2,typeof Io.constant=="number"?(fs=Io.constant,cl=el=Hs=0):(fs=Io.constant.length>0?Io.constant[0]:0,cl=Io.constant.length>1?Io.constant[1]:0,el=Io.constant.length>2?Io.constant[2]:0,Hs=Io.constant.length>3?Io.constant[3]:0)):(Nr(Io.buffer)?Ro=_e.createStream(34962,Io.buffer):Ro=_e.getBuffer(Io.buffer),hl="type"in Io?rn[Io.type]:Ro.dtype,Fs=!!Io.normalized,tl=Io.size|0,Fa=Io.offset|0,Ms=Io.stride|0,jo=Io.divisor|0)),Rs=E.location,Is=pe[Rs],vs===1?(Is.buffer||Ht.enableVertexAttribArray(Rs),Bs=tl||1,(Is.type!==hl||Is.size!==Bs||Is.buffer!==Ro||Is.normalized!==Fs||Is.offset!==Fa||Is.stride!==Ms)&&(Ht.bindBuffer(34962,Ro.buffer),Ht.vertexAttribPointer(Rs,Bs,hl,Fs,Ms,Fa),Is.type=hl,Is.size=Bs,Is.buffer=Ro,Is.normalized=Fs,Is.offset=Fa,Is.stride=Ms),Is.divisor!==jo&&(pr.vertexAttribDivisorANGLE(Rs,jo),Is.divisor=jo)):(Is.buffer&&(Ht.disableVertexAttribArray(Rs),Is.buffer=null),(Is.x!==fs||Is.y!==cl||Is.z!==el||Is.w!==Hs)&&(Ht.vertexAttrib4f(Rs,fs,cl,el,Hs),Is.x=fs,Is.y=cl,Is.z=el,Is.w=Hs)),Tt=T.call(this,Re,Zr,gr),Vt=!1,wr=1,yr=0,Fr=0,gi=0,Ti=0,ki=null,Ji=0,Fn=!1,Pi=5126,hi=0,Li=0,Si=0,Nr(Tt)?(Vt=!0,ki=_e.createStream(34962,Tt),Pi=ki.dtype):(ki=_e.getBuffer(Tt),ki?Pi=ki.dtype:"constant"in Tt?(wr=2,typeof Tt.constant=="number"?(yr=Tt.constant,Fr=gi=Ti=0):(yr=Tt.constant.length>0?Tt.constant[0]:0,Fr=Tt.constant.length>1?Tt.constant[1]:0,gi=Tt.constant.length>2?Tt.constant[2]:0,Ti=Tt.constant.length>3?Tt.constant[3]:0)):(Nr(Tt.buffer)?ki=_e.createStream(34962,Tt.buffer):ki=_e.getBuffer(Tt.buffer),Pi="type"in Tt?rn[Tt.type]:ki.dtype,Fn=!!Tt.normalized,Ji=Tt.size|0,hi=Tt.offset|0,Li=Tt.stride|0,Si=Tt.divisor|0)),Gn=L.location,ta=pe[Gn],wr===1?(ta.buffer||Ht.enableVertexAttribArray(Gn),ya=Ji||1,(ta.type!==Pi||ta.size!==ya||ta.buffer!==ki||ta.normalized!==Fn||ta.offset!==hi||ta.stride!==Li)&&(Ht.bindBuffer(34962,ki.buffer),Ht.vertexAttribPointer(Gn,ya,Pi,Fn,Li,hi),ta.type=Pi,ta.size=ya,ta.buffer=ki,ta.normalized=Fn,ta.offset=hi,ta.stride=Li),ta.divisor!==Si&&(pr.vertexAttribDivisorANGLE(Gn,Si),ta.divisor=Si)):(ta.buffer&&(Ht.disableVertexAttribArray(Gn),ta.buffer=null),(ta.x!==yr||ta.y!==Fr||ta.z!==gi||ta.w!==Ti)&&(Ht.vertexAttrib4f(Gn,yr,Fr,gi,Ti),ta.x=yr,ta.y=Fr,ta.z=gi,ta.w=Ti)),ia=_.call(this,Re,Zr,gr),pa=!1,va=1,zn=0,is=0,Cs=0,Ks=0,dl=null,xl=0,Ol=!1,bl=5126,eu=0,Zl=0,Vl=0,Nr(ia)?(pa=!0,dl=_e.createStream(34962,ia),bl=dl.dtype):(dl=_e.getBuffer(ia),dl?bl=dl.dtype:"constant"in ia?(va=2,typeof ia.constant=="number"?(zn=ia.constant,is=Cs=Ks=0):(zn=ia.constant.length>0?ia.constant[0]:0,is=ia.constant.length>1?ia.constant[1]:0,Cs=ia.constant.length>2?ia.constant[2]:0,Ks=ia.constant.length>3?ia.constant[3]:0)):(Nr(ia.buffer)?dl=_e.createStream(34962,ia.buffer):dl=_e.getBuffer(ia.buffer),bl="type"in ia?rn[ia.type]:dl.dtype,Ol=!!ia.normalized,xl=ia.size|0,eu=ia.offset|0,Zl=ia.stride|0,Vl=ia.divisor|0)),ja=C.location,ns=pe[ja],va===1?(ns.buffer||Ht.enableVertexAttribArray(ja),Js=xl||1,(ns.type!==bl||ns.size!==Js||ns.buffer!==dl||ns.normalized!==Ol||ns.offset!==eu||ns.stride!==Zl)&&(Ht.bindBuffer(34962,dl.buffer),Ht.vertexAttribPointer(ja,Js,bl,Ol,Zl,eu),ns.type=bl,ns.size=Js,ns.buffer=dl,ns.normalized=Ol,ns.offset=eu,ns.stride=Zl),ns.divisor!==Vl&&(pr.vertexAttribDivisorANGLE(ja,Vl),ns.divisor=Vl)):(ns.buffer&&(Ht.disableVertexAttribArray(ja),ns.buffer=null),(ns.x!==zn||ns.y!==is||ns.z!==Cs||ns.w!==Ks)&&(Ht.vertexAttrib4f(ja,zn,is,Cs,Ks),ns.x=zn,ns.y=is,ns.z=Cs,ns.w=Ks)),cs=S.call(this,Re,Zr,gr),sl=!1,ll=1,il=0,zl=0,Ml=0,Rl=0,Al=null,Ll=0,ms=!1,Os=5126,Xl=0,Gl=0,Ul=0,Nr(cs)?(sl=!0,Al=_e.createStream(34962,cs),Os=Al.dtype):(Al=_e.getBuffer(cs),Al?Os=Al.dtype:"constant"in cs?(ll=2,typeof cs.constant=="number"?(il=cs.constant,zl=Ml=Rl=0):(il=cs.constant.length>0?cs.constant[0]:0,zl=cs.constant.length>1?cs.constant[1]:0,Ml=cs.constant.length>2?cs.constant[2]:0,Rl=cs.constant.length>3?cs.constant[3]:0)):(Nr(cs.buffer)?Al=_e.createStream(34962,cs.buffer):Al=_e.getBuffer(cs.buffer),Os="type"in cs?rn[cs.type]:Al.dtype,ms=!!cs.normalized,Ll=cs.size|0,Xl=cs.offset|0,Gl=cs.stride|0,Ul=cs.divisor|0)),le=m.location,w=pe[le],ll===1?(w.buffer||Ht.enableVertexAttribArray(le),q=Ll||1,(w.type!==Os||w.size!==q||w.buffer!==Al||w.normalized!==ms||w.offset!==Xl||w.stride!==Gl)&&(Ht.bindBuffer(34962,Al.buffer),Ht.vertexAttribPointer(le,q,Os,ms,Gl,Xl),w.type=Os,w.size=q,w.buffer=Al,w.normalized=ms,w.offset=Xl,w.stride=Gl),w.divisor!==Ul&&(pr.vertexAttribDivisorANGLE(le,Ul),w.divisor=Ul)):(w.buffer&&(Ht.disableVertexAttribArray(le),w.buffer=null),(w.x!==il||w.y!==zl||w.z!==Ml||w.w!==Rl)&&(Ht.vertexAttrib4f(le,il,zl,Ml,Rl),w.x=il,w.y=zl,w.z=Ml,w.w=Rl)),Q=Zr.opacity,(!gr||ee!==Q)&&(ee=Q,Ht.uniform1f(A.location,Q)),ue=F.call(this,Re,Zr,gr),Ve=ue[0],yt=ue[1],(!gr||et!==Ve||Dt!==yt)&&(et=Ve,Dt=yt,Ht.uniform2f(B.location,Ve,yt)),ir=Re.pixelRatio,(!gr||or!==ir)&&(or=ir,Ht.uniform1f(j.location,ir)),kr=Zr.scale,Vr=kr[0],Se=kr[1],(!gr||he!==Vr||qe!==Se)&&(he=Vr,qe=Se,Ht.uniform2f(H.location,Vr,Se)),Ge=Zr.scaleFract,lt=Ge[0],vt=Ge[1],(!gr||tt!==lt||Gt!==vt)&&(tt=lt,Gt=vt,Ht.uniform2f(N.location,lt,vt)),nr=Zr.translate,cr=nr[0],Rr=nr[1],(!gr||Ar!==cr||ri!==Rr)&&(Ar=cr,ri=Rr,Ht.uniform2f(W.location,cr,Rr)),si=Zr.translateFract,Mi=si[0],Zn=si[1],(!gr||hn!==Mi||Yn!==Zn)&&(hn=Mi,Yn=Zn,Ht.uniform2f(re.location,Mi,Zn)),Ua=Zr.elements,Fo=null,vl=Nr(Ua),vl?Fo=ct.createStream(Ua):Fo=ct.getElements(Ua),Fo&&Ht.bindBuffer(34963,Fo.buffer.buffer),Us=Zr.offset,ml=Zr.count,ml&&(ao>0?Fo?pr.drawElementsInstancedANGLE(0,ml,Fo.type,Us<<(Fo.type-5121>>1),ao):pr.drawArraysInstancedANGLE(0,Us,ml,ao):ao<0&&(Fo?Ht.drawElements(0,ml,Fo.type,Us<<(Fo.type-5121>>1)):Ht.drawArrays(0,Us,ml)),Re.viewportWidth=Qa,Re.viewportHeight=vn,mo&&_e.destroyStream(Ns),$n&&_e.destroyStream(eo),_a&&_e.destroyStream(Wa),rs&&_e.destroyStream(Ma),Oo&&_e.destroyStream(Aa),Da&&_e.destroyStream(Ro),Vt&&_e.destroyStream(ki),pa&&_e.destroyStream(dl),sl&&_e.destroyStream(Al),vl&&ct.destroyStream(Fo))}G.unbind(),Ie.dirty=!0,mt.setVAO(null),ft&&(r.cpuTime+=performance.now()-tr)}}}});var P8=Te((G_r,BNe)=>{BNe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ue,Fe,me,Ne,ce,Ke,it,bt,Nt,nt,Ye,kt,At,St,Bt,Zt,Et,Ae,ot,dt,pt,at){"use strict";var Xe,rt,Qe,zt,Yt,lr,mr,_r,Ht,Re,xe,Oe,Ie,De,ct,_e,fe,pe,mt,It,Pt,rr,Wr,Nr,Er,Br,mi,Di,Ii,Ci,nn,ii,wi,Gi,Ft,gt,Ut,Wt,xr,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi;return Xe=t.gl,rt=t.context,Qe=t.strings,zt=t.next,Yt=t.current,lr=t.draw,mr=t.elements,_r=t.buffer,Ht=t.shader,Re=t.attributes,xe=t.vao,Oe=t.uniforms,Ie=t.framebuffer,De=t.extensions,ct=t.timer,_e=t.isBufferArgs,fe=zt.blend_color,pe=Yt.blend_color,mt=zt.blend_equation,It=Yt.blend_equation,Pt=zt.blend_func,rr=Yt.blend_func,Wr=zt.depth_range,Nr=Yt.depth_range,Er=zt.colorMask,Br=Yt.colorMask,mi=zt.polygonOffset_offset,Di=Yt.polygonOffset_offset,Ii=zt.sample_coverage,Ci=Yt.sample_coverage,nn=zt.stencil_func,ii=Yt.stencil_func,wi=zt.stencil_opFront,Gi=Yt.stencil_opFront,Ft=zt.stencil_opBack,gt=Yt.stencil_opBack,Ut=zt.scissor_box,Wt=Yt.scissor_box,xr=zt.viewport,Lr=Yt.viewport,Ur={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ir={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Gr={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},jr={add:32774,subtract:32778,"reverse subtract":32779},yi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ei={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Vi={cw:2304,ccw:2305},ti={},ti.buffer=n,ti.divisor=1,en={},en.buffer=i,en.divisor=1,Yr={},Yr.buffer=a,Yr.divisor=1,oi={},oi.buffer=o,oi.divisor=1,{draw:function(Bi){var an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us;if(an=De.angle_instanced_arrays,rn=Ie.next,rn!==Ie.cur&&(rn?Xe.bindFramebuffer(36160,rn.framebuffer):Xe.bindFramebuffer(36160,null),Ie.cur=rn),Yt.dirty){var Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs;Ds=zt.dither,Ds!==Yt.dither&&(Ds?Xe.enable(3024):Xe.disable(3024),Yt.dither=Ds),fl=zt.depth_func,fl!==Yt.depth_func&&(Xe.depthFunc(fl),Yt.depth_func=fl),as=Wr[0],Ma=Wr[1],(as!==Nr[0]||Ma!==Nr[1])&&(Xe.depthRange(as,Ma),Nr[0]=as,Nr[1]=Ma),Qs=zt.depth_mask,Qs!==Yt.depth_mask&&(Xe.depthMask(Qs),Yt.depth_mask=Qs),ho=Er[0],gs=Er[1],Vo=Er[2],Do=Er[3],(ho!==Br[0]||gs!==Br[1]||Vo!==Br[2]||Do!==Br[3])&&(Xe.colorMask(ho,gs,Vo,Do),Br[0]=ho,Br[1]=gs,Br[2]=Vo,Br[3]=Do),Lo=zt.cull_enable,Lo!==Yt.cull_enable&&(Lo?Xe.enable(2884):Xe.disable(2884),Yt.cull_enable=Lo),xs=zt.cull_face,xs!==Yt.cull_face&&(Xe.cullFace(xs),Yt.cull_face=xs),ks=zt.frontFace,ks!==Yt.frontFace&&(Xe.frontFace(ks),Yt.frontFace=ks),Ea=zt.lineWidth,Ea!==Yt.lineWidth&&(Xe.lineWidth(Ea),Yt.lineWidth=Ea),Jn=zt.polygonOffset_enable,Jn!==Yt.polygonOffset_enable&&(Jn?Xe.enable(32823):Xe.disable(32823),Yt.polygonOffset_enable=Jn),Oo=mi[0],rl=mi[1],(Oo!==Di[0]||rl!==Di[1])&&(Xe.polygonOffset(Oo,rl),Di[0]=Oo,Di[1]=rl),Gs=zt.sample_alpha,Gs!==Yt.sample_alpha&&(Gs?Xe.enable(32926):Xe.disable(32926),Yt.sample_alpha=Gs),bs=zt.sample_enable,bs!==Yt.sample_enable&&(bs?Xe.enable(32928):Xe.disable(32928),Yt.sample_enable=bs),zs=Ii[0],$o=Ii[1],(zs!==Ci[0]||$o!==Ci[1])&&(Xe.sampleCoverage(zs,$o),Ci[0]=zs,Ci[1]=$o),Aa=zt.stencil_enable,Aa!==Yt.stencil_enable&&(Aa?Xe.enable(2960):Xe.disable(2960),Yt.stencil_enable=Aa),os=zt.stencil_mask,os!==Yt.stencil_mask&&(Xe.stencilMask(os),Yt.stencil_mask=os),_l=nn[0],Ss=nn[1],po=nn[2],(_l!==ii[0]||Ss!==ii[1]||po!==ii[2])&&(Xe.stencilFunc(_l,Ss,po),ii[0]=_l,ii[1]=Ss,ii[2]=po),go=wi[0],ss=wi[1],qo=wi[2],zo=wi[3],(go!==Gi[0]||ss!==Gi[1]||qo!==Gi[2]||zo!==Gi[3])&&(Xe.stencilOpSeparate(go,ss,qo,zo),Gi[0]=go,Gi[1]=ss,Gi[2]=qo,Gi[3]=zo),io=Ft[0],Io=Ft[1],Da=Ft[2],vs=Ft[3],(io!==gt[0]||Io!==gt[1]||Da!==gt[2]||vs!==gt[3])&&(Xe.stencilOpSeparate(io,Io,Da,vs),gt[0]=io,gt[1]=Io,gt[2]=Da,gt[3]=vs)}Fi=Bi.viewport,Ri=Fi.x|0,xn=Fi.y|0,xi="width"in Fi?Fi.width|0:rt.framebufferWidth-Ri,Xr="height"in Fi?Fi.height|0:rt.framebufferHeight-xn,ft=rt.viewportWidth,rt.viewportWidth=xi,tr=rt.viewportHeight,rt.viewportHeight=Xr,Xe.viewport(Ri,xn,xi,Xr),Lr[0]=Ri,Lr[1]=xn,Lr[2]=xi,Lr[3]=Xr,Xe.blendColor(0,0,0,0),pe[0]=0,pe[1]=0,pe[2]=0,pe[3]=0,s?Xe.enable(3042):Xe.disable(3042),Yt.blend_enable=s,Xe.blendEquationSeparate(32774,32774),It[0]=32774,It[1]=32774,Xe.blendFuncSeparate(770,771,773,1),rr[0]=770,rr[1]=771,rr[2]=773,rr[3]=1,u?Xe.enable(2929):Xe.disable(2929),Yt.depth_enable=u,pr=Bi.viewport,gr=pr.x|0,Zr=pr.y|0,Ai="width"in pr?pr.width|0:rt.framebufferWidth-gr,Qi="height"in pr?pr.height|0:rt.framebufferHeight-Zr,Xe.scissor(gr,Zr,Ai,Qi),Wt[0]=gr,Wt[1]=Zr,Wt[2]=Ai,Wt[3]=Qi,l?Xe.enable(3089):Xe.disable(3089),Yt.scissor_enable=l,ni=Yt.profile,ni&&(Zi=performance.now(),r.count++),Xe.useProgram(f.program),aa=De.angle_instanced_arrays,xe.setVAO(null),Mn=h.location,Un=Re[Mn],Un.buffer||Xe.enableVertexAttribArray(Mn),(Un.type!==5126||Un.size!==2||Un.buffer!==c||Un.normalized!==!1||Un.offset!==16||Un.stride!==24)&&(Xe.bindBuffer(34962,c.buffer),Xe.vertexAttribPointer(Mn,2,5126,!1,24,16),Un.type=5126,Un.size=2,Un.buffer=c,Un.normalized=!1,Un.offset=16,Un.stride=24),Un.divisor!==0&&(aa.vertexAttribDivisorANGLE(Mn,0),Un.divisor=0),Ga=d.call(this,rt,Bi,0),ti.offset=Ga,ma=!1,oa=1,ka=0,so=0,Kr=0,Ia=0,Yo=null,fa=0,kn=!1,Ta=5126,ys=0,uo=0,ls=0,_e(ti)?(ma=!0,Yo=_r.createStream(34962,ti),Ta=Yo.dtype):(Yo=_r.getBuffer(ti),Yo?Ta=Yo.dtype:"constant"in ti?(oa=2,typeof ti.constant=="number"?(ka=ti.constant,so=Kr=Ia=0):(ka=ti.constant.length>0?ti.constant[0]:0,so=ti.constant.length>1?ti.constant[1]:0,Kr=ti.constant.length>2?ti.constant[2]:0,Ia=ti.constant.length>3?ti.constant[3]:0)):(_e(ti.buffer)?Yo=_r.createStream(34962,ti.buffer):Yo=_r.getBuffer(ti.buffer),Ta="type"in ti?Ei[ti.type]:Yo.dtype,kn=!!ti.normalized,fa=ti.size|0,ys=ti.offset|0,uo=ti.stride|0,ls=ti.divisor|0)),$a=p.location,fo=Re[$a],oa===1?(fo.buffer||Xe.enableVertexAttribArray($a),mn=fa||4,(fo.type!==Ta||fo.size!==mn||fo.buffer!==Yo||fo.normalized!==kn||fo.offset!==ys||fo.stride!==uo)&&(Xe.bindBuffer(34962,Yo.buffer),Xe.vertexAttribPointer($a,mn,Ta,kn,uo,ys),fo.type=Ta,fo.size=mn,fo.buffer=Yo,fo.normalized=kn,fo.offset=ys,fo.stride=uo),fo.divisor!==ls&&(aa.vertexAttribDivisorANGLE($a,ls),fo.divisor=ls)):(fo.buffer&&(Xe.disableVertexAttribArray($a),fo.buffer=null),(fo.x!==ka||fo.y!==so||fo.z!==Kr||fo.w!==Ia)&&(Xe.vertexAttrib4f($a,ka,so,Kr,Ia),fo.x=ka,fo.y=so,fo.z=Kr,fo.w=Ia)),ra=x.location,wa=Re[ra],wa.buffer||Xe.enableVertexAttribArray(ra),(wa.type!==5126||wa.size!==2||wa.buffer!==c||wa.normalized!==!1||wa.offset!==0||wa.stride!==24)&&(Xe.bindBuffer(34962,c.buffer),Xe.vertexAttribPointer(ra,2,5126,!1,24,0),wa.type=5126,wa.size=2,wa.buffer=c,wa.normalized=!1,wa.offset=0,wa.stride=24),wa.divisor!==0&&(aa.vertexAttribDivisorANGLE(ra,0),wa.divisor=0),ws=b.call(this,rt,Bi,0),oi.offset=ws,Co=!1,Po=1,ji=0,gn=0,Ps=0,Ha=0,Sn=null,ao=0,Ba=!1,Ko=5126,Qo=0,Wi=0,Sa=0,_e(oi)?(Co=!0,Sn=_r.createStream(34962,oi),Ko=Sn.dtype):(Sn=_r.getBuffer(oi),Sn?Ko=Sn.dtype:"constant"in oi?(Po=2,typeof oi.constant=="number"?(ji=oi.constant,gn=Ps=Ha=0):(ji=oi.constant.length>0?oi.constant[0]:0,gn=oi.constant.length>1?oi.constant[1]:0,Ps=oi.constant.length>2?oi.constant[2]:0,Ha=oi.constant.length>3?oi.constant[3]:0)):(_e(oi.buffer)?Sn=_r.createStream(34962,oi.buffer):Sn=_r.getBuffer(oi.buffer),Ko="type"in oi?Ei[oi.type]:Sn.dtype,Ba=!!oi.normalized,ao=oi.size|0,Qo=oi.offset|0,Wi=oi.stride|0,Sa=oi.divisor|0)),Qa=v.location,vn=Re[Qa],Po===1?(vn.buffer||Xe.enableVertexAttribArray(Qa),da=ao||4,(vn.type!==Ko||vn.size!==da||vn.buffer!==Sn||vn.normalized!==Ba||vn.offset!==Qo||vn.stride!==Wi)&&(Xe.bindBuffer(34962,Sn.buffer),Xe.vertexAttribPointer(Qa,da,Ko,Ba,Wi,Qo),vn.type=Ko,vn.size=da,vn.buffer=Sn,vn.normalized=Ba,vn.offset=Qo,vn.stride=Wi),vn.divisor!==Sa&&(aa.vertexAttribDivisorANGLE(Qa,Sa),vn.divisor=Sa)):(vn.buffer&&(Xe.disableVertexAttribArray(Qa),vn.buffer=null),(vn.x!==ji||vn.y!==gn||vn.z!==Ps||vn.w!==Ha)&&(Xe.vertexAttrib4f(Qa,ji,gn,Ps,Ha),vn.x=ji,vn.y=gn,vn.z=Ps,vn.w=Ha)),la=k.location,vo=Re[la],vo.buffer||Xe.enableVertexAttribArray(la),(vo.type!==5126||vo.size!==2||vo.buffer!==c||vo.normalized!==!1||vo.offset!==8||vo.stride!==24)&&(Xe.bindBuffer(34962,c.buffer),Xe.vertexAttribPointer(la,2,5126,!1,24,8),vo.type=5126,vo.size=2,vo.buffer=c,vo.normalized=!1,vo.offset=8,vo.stride=24),vo.divisor!==0&&(aa.vertexAttribDivisorANGLE(la,0),vo.divisor=0),As=E.call(this,rt,Bi,0),en.offset=As,ps=!1,co=1,mo=0,No=0,jn=0,Go=0,Ys=null,qs=0,Ns=!1,Oa=5126,ha=0,Vs=0,Ya=0,_e(en)?(ps=!0,Ys=_r.createStream(34962,en),Oa=Ys.dtype):(Ys=_r.getBuffer(en),Ys?Oa=Ys.dtype:"constant"in en?(co=2,typeof en.constant=="number"?(mo=en.constant,No=jn=Go=0):(mo=en.constant.length>0?en.constant[0]:0,No=en.constant.length>1?en.constant[1]:0,jn=en.constant.length>2?en.constant[2]:0,Go=en.constant.length>3?en.constant[3]:0)):(_e(en.buffer)?Ys=_r.createStream(34962,en.buffer):Ys=_r.getBuffer(en.buffer),Oa="type"in en?Ei[en.type]:Ys.dtype,Ns=!!en.normalized,qs=en.size|0,ha=en.offset|0,Vs=en.stride|0,Ya=en.divisor|0)),_n=T.location,Vn=Re[_n],co===1?(Vn.buffer||Xe.enableVertexAttribArray(_n),wo=qs||2,(Vn.type!==Oa||Vn.size!==wo||Vn.buffer!==Ys||Vn.normalized!==Ns||Vn.offset!==ha||Vn.stride!==Vs)&&(Xe.bindBuffer(34962,Ys.buffer),Xe.vertexAttribPointer(_n,wo,Oa,Ns,Vs,ha),Vn.type=Oa,Vn.size=wo,Vn.buffer=Ys,Vn.normalized=Ns,Vn.offset=ha,Vn.stride=Vs),Vn.divisor!==Ya&&(aa.vertexAttribDivisorANGLE(_n,Ya),Vn.divisor=Ya)):(Vn.buffer&&(Xe.disableVertexAttribArray(_n),Vn.buffer=null),(Vn.x!==mo||Vn.y!==No||Vn.z!==jn||Vn.w!==Go)&&(Xe.vertexAttrib4f(_n,mo,No,jn,Go),Vn.x=mo,Vn.y=No,Vn.z=jn,Vn.w=Go)),Ra=L.call(this,rt,Bi,0),Yr.offset=Ra,Xn=!1,un=1,$n=0,Ka=0,qn=0,Eo=0,Ja=null,lo=0,eo=!1,sa=5126,es=0,Na=0,tn=0,_e(Yr)?(Xn=!0,Ja=_r.createStream(34962,Yr),sa=Ja.dtype):(Ja=_r.getBuffer(Yr),Ja?sa=Ja.dtype:"constant"in Yr?(un=2,typeof Yr.constant=="number"?($n=Yr.constant,Ka=qn=Eo=0):($n=Yr.constant.length>0?Yr.constant[0]:0,Ka=Yr.constant.length>1?Yr.constant[1]:0,qn=Yr.constant.length>2?Yr.constant[2]:0,Eo=Yr.constant.length>3?Yr.constant[3]:0)):(_e(Yr.buffer)?Ja=_r.createStream(34962,Yr.buffer):Ja=_r.getBuffer(Yr.buffer),sa="type"in Yr?Ei[Yr.type]:Ja.dtype,eo=!!Yr.normalized,lo=Yr.size|0,es=Yr.offset|0,Na=Yr.stride|0,tn=Yr.divisor|0)),Pa=_.location,to=Re[Pa],un===1?(to.buffer||Xe.enableVertexAttribArray(Pa),yo=lo||2,(to.type!==sa||to.size!==yo||to.buffer!==Ja||to.normalized!==eo||to.offset!==es||to.stride!==Na)&&(Xe.bindBuffer(34962,Ja.buffer),Xe.vertexAttribPointer(Pa,yo,sa,eo,Na,es),to.type=sa,to.size=yo,to.buffer=Ja,to.normalized=eo,to.offset=es,to.stride=Na),to.divisor!==tn&&(aa.vertexAttribDivisorANGLE(Pa,tn),to.divisor=tn)):(to.buffer&&(Xe.disableVertexAttribArray(Pa),to.buffer=null),(to.x!==$n||to.y!==Ka||to.z!==qn||to.w!==Eo)&&(Xe.vertexAttrib4f(Pa,$n,Ka,qn,Eo),to.x=$n,to.y=Ka,to.z=qn,to.w=Eo)),Jo=Bi.capSize,Xe.uniform1f(C.location,Jo),Ao=Bi.lineWidth,Xe.uniform1f(S.location,Ao),Dn=Bi.opacity,Xe.uniform1f(m.location,Dn),_a=Bi.scale,Ws=_a[0],Ca=_a[1],Xe.uniform2f(P.location,Ws,Ca),Es=Bi.scaleFract,Ts=Es[0],Ho=Es[1],Xe.uniform2f(A.location,Ts,Ho),Wa=Bi.translate,To=Wa[0],ts=Wa[1],Xe.uniform2f(B.location,To,ts),Wo=Bi.translateFract,qa=Wo[0],ln=Wo[1],Xe.uniform2f(F.location,qa,ln),Bo=G.call(this,rt,Bi,0),ko=Bo[0],oo=Bo[1],za=Bo[2],ea=Bo[3],Xe.uniform4f(U.location,ko,oo,za,ea),rs=lr.elements,rs?Xe.bindBuffer(34963,rs.buffer.buffer):xe.currentVAO&&(rs=mr.getElements(xe.currentVAO.elements),rs&&Xe.bindBuffer(34963,rs.buffer.buffer)),$s=lr.offset,us=Bi.count,us>0?rs?aa.drawElementsInstancedANGLE(4,36,rs.type,$s<<(rs.type-5121>>1),us):aa.drawArraysInstancedANGLE(4,$s,36,us):us<0&&(rs?Xe.drawElements(4,36,rs.type,$s<<(rs.type-5121>>1)):Xe.drawArrays(4,$s,36)),Yt.dirty=!0,xe.setVAO(null),rt.viewportWidth=ft,rt.viewportHeight=tr,ni&&(r.cpuTime+=performance.now()-Zi),ma&&_r.destroyStream(Yo),Co&&_r.destroyStream(Sn),ps&&_r.destroyStream(Ys),Xn&&_r.destroyStream(Ja)},scope:function(Bi,an,rn){var Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,Tt,Vt,wr,yr,Fr,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,il,zl,Ml;Fi=Bi.viewport,Ri=Fi.x|0,xn=Fi.y|0,xi="width"in Fi?Fi.width|0:rt.framebufferWidth-Ri,Xr="height"in Fi?Fi.height|0:rt.framebufferHeight-xn,ft=rt.viewportWidth,rt.viewportWidth=xi,tr=rt.viewportHeight,rt.viewportHeight=Xr,pr=xr[0],xr[0]=Ri,gr=xr[1],xr[1]=xn,Zr=xr[2],xr[2]=xi,Ai=xr[3],xr[3]=Xr,Qi=fe[0],fe[0]=j,ni=fe[1],fe[1]=H,Zi=fe[2],fe[2]=N,aa=fe[3],fe[3]=W,Mn=zt.blend_enable,zt.blend_enable=re,Un=mt[0],mt[0]=ae,Ga=mt[1],mt[1]=be,ma=Pt[0],Pt[0]=Pe,oa=Pt[1],Pt[1]=Ce,ka=Pt[2],Pt[2]=de,so=Pt[3],Pt[3]=te,Kr=zt.depth_enable,zt.depth_enable=ke,Ia=Bi.viewport,Yo=Ia.x|0,fa=Ia.y|0,kn="width"in Ia?Ia.width|0:rt.framebufferWidth-Yo,Ta="height"in Ia?Ia.height|0:rt.framebufferHeight-fa,ys=Ut[0],Ut[0]=Yo,uo=Ut[1],Ut[1]=fa,ls=Ut[2],Ut[2]=kn,$a=Ut[3],Ut[3]=Ta,fo=zt.scissor_enable,zt.scissor_enable=Ee,mn=Yt.profile,mn&&(ra=performance.now(),r.count++),wa=lr.count,lr.count=Me,ws=Bi.count,Co=lr.instances,lr.instances=ws,Po=lr.primitive,lr.primitive=Ue,ji=Bi.range,gn=Oe[Fe],Oe[Fe]=ji,Ps=Bi.lineWidth,Ha=Oe[me],Oe[me]=Ps,Sn=Bi.capSize,ao=Oe[Ne],Oe[Ne]=Sn,Ba=Bi.opacity,Ko=Oe[ce],Oe[ce]=Ba,Qo=Bi.scale,Wi=Oe[Ke],Oe[Ke]=Qo,Sa=Bi.translate,Qa=Oe[it],Oe[it]=Sa,vn=Bi.scaleFract,da=Oe[bt],Oe[bt]=vn,la=Bi.translateFract,vo=Oe[Nt],Oe[Nt]=la,As=G.call(this,rt,Bi,rn),ps=Oe[nt],Oe[nt]=As,co=Ye.state,Ye.state=1,mo=Ye.x,Ye.x=0,No=Ye.y,Ye.y=0,jn=Ye.z,Ye.z=0,Go=Ye.w,Ye.w=0,Ys=Ye.buffer,Ye.buffer=c,qs=Ye.size,Ye.size=0,Ns=Ye.normalized,Ye.normalized=!1,Oa=Ye.type,Ye.type=5126,ha=Ye.offset,Ye.offset=0,Vs=Ye.stride,Ye.stride=24,Ya=Ye.divisor,Ye.divisor=0,_n=kt.state,kt.state=1,Vn=kt.x,kt.x=0,wo=kt.y,kt.y=0,Ra=kt.z,kt.z=0,Xn=kt.w,kt.w=0,un=kt.buffer,kt.buffer=c,$n=kt.size,kt.size=0,Ka=kt.normalized,kt.normalized=!1,qn=kt.type,kt.type=5126,Eo=kt.offset,kt.offset=8,Ja=kt.stride,kt.stride=24,lo=kt.divisor,kt.divisor=0,eo=At.state,At.state=1,sa=At.x,At.x=0,es=At.y,At.y=0,Na=At.z,At.z=0,tn=At.w,At.w=0,Pa=At.buffer,At.buffer=c,to=At.size,At.size=0,yo=At.normalized,At.normalized=!1,Jo=At.type,At.type=5126,Ao=At.offset,At.offset=16,Dn=At.stride,At.stride=24,_a=At.divisor,At.divisor=0,Ws=d.call(this,rt,Bi,rn),ti.offset=Ws,Ca=!1,Es=1,Ts=0,Ho=0,Wa=0,To=0,ts=null,Wo=0,qa=!1,ln=5126,Bo=0,ko=0,oo=0,_e(ti)?(Ca=!0,ts=_r.createStream(34962,ti),ln=ts.dtype):(ts=_r.getBuffer(ti),ts?ln=ts.dtype:"constant"in ti?(Es=2,typeof ti.constant=="number"?(Ts=ti.constant,Ho=Wa=To=0):(Ts=ti.constant.length>0?ti.constant[0]:0,Ho=ti.constant.length>1?ti.constant[1]:0,Wa=ti.constant.length>2?ti.constant[2]:0,To=ti.constant.length>3?ti.constant[3]:0)):(_e(ti.buffer)?ts=_r.createStream(34962,ti.buffer):ts=_r.getBuffer(ti.buffer),ln="type"in ti?Ei[ti.type]:ts.dtype,qa=!!ti.normalized,Wo=ti.size|0,Bo=ti.offset|0,ko=ti.stride|0,oo=ti.divisor|0)),za=St.state,St.state=Es,ea=St.x,St.x=Ts,rs=St.y,St.y=Ho,$s=St.z,St.z=Wa,us=St.w,St.w=To,Ds=St.buffer,St.buffer=ts,fl=St.size,St.size=Wo,as=St.normalized,St.normalized=qa,Ma=St.type,St.type=ln,Qs=St.offset,St.offset=Bo,ho=St.stride,St.stride=ko,gs=St.divisor,St.divisor=oo,Vo=E.call(this,rt,Bi,rn),en.offset=Vo,Do=!1,Lo=1,xs=0,ks=0,Ea=0,Jn=0,Oo=null,rl=0,Gs=!1,bs=5126,zs=0,$o=0,Aa=0,_e(en)?(Do=!0,Oo=_r.createStream(34962,en),bs=Oo.dtype):(Oo=_r.getBuffer(en),Oo?bs=Oo.dtype:"constant"in en?(Lo=2,typeof en.constant=="number"?(xs=en.constant,ks=Ea=Jn=0):(xs=en.constant.length>0?en.constant[0]:0,ks=en.constant.length>1?en.constant[1]:0,Ea=en.constant.length>2?en.constant[2]:0,Jn=en.constant.length>3?en.constant[3]:0)):(_e(en.buffer)?Oo=_r.createStream(34962,en.buffer):Oo=_r.getBuffer(en.buffer),bs="type"in en?Ei[en.type]:Oo.dtype,Gs=!!en.normalized,rl=en.size|0,zs=en.offset|0,$o=en.stride|0,Aa=en.divisor|0)),os=Bt.state,Bt.state=Lo,_l=Bt.x,Bt.x=xs,Ss=Bt.y,Bt.y=ks,po=Bt.z,Bt.z=Ea,go=Bt.w,Bt.w=Jn,ss=Bt.buffer,Bt.buffer=Oo,qo=Bt.size,Bt.size=rl,zo=Bt.normalized,Bt.normalized=Gs,io=Bt.type,Bt.type=bs,Io=Bt.offset,Bt.offset=zs,Da=Bt.stride,Bt.stride=$o,vs=Bt.divisor,Bt.divisor=Aa,fs=L.call(this,rt,Bi,rn),Yr.offset=fs,cl=!1,el=1,Hs=0,Ro=0,tl=0,Fs=0,hl=null,Fa=0,Ms=!1,jo=5126,Rs=0,Is=0,Bs=0,_e(Yr)?(cl=!0,hl=_r.createStream(34962,Yr),jo=hl.dtype):(hl=_r.getBuffer(Yr),hl?jo=hl.dtype:"constant"in Yr?(el=2,typeof Yr.constant=="number"?(Hs=Yr.constant,Ro=tl=Fs=0):(Hs=Yr.constant.length>0?Yr.constant[0]:0,Ro=Yr.constant.length>1?Yr.constant[1]:0,tl=Yr.constant.length>2?Yr.constant[2]:0,Fs=Yr.constant.length>3?Yr.constant[3]:0)):(_e(Yr.buffer)?hl=_r.createStream(34962,Yr.buffer):hl=_r.getBuffer(Yr.buffer),jo="type"in Yr?Ei[Yr.type]:hl.dtype,Ms=!!Yr.normalized,Fa=Yr.size|0,Rs=Yr.offset|0,Is=Yr.stride|0,Bs=Yr.divisor|0)),Tt=Zt.state,Zt.state=el,Vt=Zt.x,Zt.x=Hs,wr=Zt.y,Zt.y=Ro,yr=Zt.z,Zt.z=tl,Fr=Zt.w,Zt.w=Fs,gi=Zt.buffer,Zt.buffer=hl,Ti=Zt.size,Zt.size=Fa,ki=Zt.normalized,Zt.normalized=Ms,Ji=Zt.type,Zt.type=jo,Fn=Zt.offset,Zt.offset=Rs,Pi=Zt.stride,Zt.stride=Is,hi=Zt.divisor,Zt.divisor=Bs,Li=b.call(this,rt,Bi,rn),oi.offset=Li,Si=!1,Gn=1,ta=0,ya=0,ia=0,pa=0,va=null,zn=0,is=!1,Cs=5126,Ks=0,dl=0,xl=0,_e(oi)?(Si=!0,va=_r.createStream(34962,oi),Cs=va.dtype):(va=_r.getBuffer(oi),va?Cs=va.dtype:"constant"in oi?(Gn=2,typeof oi.constant=="number"?(ta=oi.constant,ya=ia=pa=0):(ta=oi.constant.length>0?oi.constant[0]:0,ya=oi.constant.length>1?oi.constant[1]:0,ia=oi.constant.length>2?oi.constant[2]:0,pa=oi.constant.length>3?oi.constant[3]:0)):(_e(oi.buffer)?va=_r.createStream(34962,oi.buffer):va=_r.getBuffer(oi.buffer),Cs="type"in oi?Ei[oi.type]:va.dtype,is=!!oi.normalized,zn=oi.size|0,Ks=oi.offset|0,dl=oi.stride|0,xl=oi.divisor|0)),Ol=Et.state,Et.state=Gn,bl=Et.x,Et.x=ta,eu=Et.y,Et.y=ya,Zl=Et.z,Et.z=ia,Vl=Et.w,Et.w=pa,ja=Et.buffer,Et.buffer=va,ns=Et.size,Et.size=zn,Js=Et.normalized,Et.normalized=is,cs=Et.type,Et.type=Cs,sl=Et.offset,Et.offset=Ks,ll=Et.stride,Et.stride=dl,il=Et.divisor,Et.divisor=xl,zl=Ht.vert,Ht.vert=Ae,Ml=Ht.frag,Ht.frag=ot,Yt.dirty=!0,an(rt,Bi,rn),rt.viewportWidth=ft,rt.viewportHeight=tr,xr[0]=pr,xr[1]=gr,xr[2]=Zr,xr[3]=Ai,fe[0]=Qi,fe[1]=ni,fe[2]=Zi,fe[3]=aa,zt.blend_enable=Mn,mt[0]=Un,mt[1]=Ga,Pt[0]=ma,Pt[1]=oa,Pt[2]=ka,Pt[3]=so,zt.depth_enable=Kr,Ut[0]=ys,Ut[1]=uo,Ut[2]=ls,Ut[3]=$a,zt.scissor_enable=fo,mn&&(r.cpuTime+=performance.now()-ra),lr.count=wa,lr.instances=Co,lr.primitive=Po,Oe[Fe]=gn,Oe[me]=Ha,Oe[Ne]=ao,Oe[ce]=Ko,Oe[Ke]=Wi,Oe[it]=Qa,Oe[bt]=da,Oe[Nt]=vo,Oe[nt]=ps,Ye.state=co,Ye.x=mo,Ye.y=No,Ye.z=jn,Ye.w=Go,Ye.buffer=Ys,Ye.size=qs,Ye.normalized=Ns,Ye.type=Oa,Ye.offset=ha,Ye.stride=Vs,Ye.divisor=Ya,kt.state=_n,kt.x=Vn,kt.y=wo,kt.z=Ra,kt.w=Xn,kt.buffer=un,kt.size=$n,kt.normalized=Ka,kt.type=qn,kt.offset=Eo,kt.stride=Ja,kt.divisor=lo,At.state=eo,At.x=sa,At.y=es,At.z=Na,At.w=tn,At.buffer=Pa,At.size=to,At.normalized=yo,At.type=Jo,At.offset=Ao,At.stride=Dn,At.divisor=_a,Ca&&_r.destroyStream(ts),St.state=za,St.x=ea,St.y=rs,St.z=$s,St.w=us,St.buffer=Ds,St.size=fl,St.normalized=as,St.type=Ma,St.offset=Qs,St.stride=ho,St.divisor=gs,Do&&_r.destroyStream(Oo),Bt.state=os,Bt.x=_l,Bt.y=Ss,Bt.z=po,Bt.w=go,Bt.buffer=ss,Bt.size=qo,Bt.normalized=zo,Bt.type=io,Bt.offset=Io,Bt.stride=Da,Bt.divisor=vs,cl&&_r.destroyStream(hl),Zt.state=Tt,Zt.x=Vt,Zt.y=wr,Zt.z=yr,Zt.w=Fr,Zt.buffer=gi,Zt.size=Ti,Zt.normalized=ki,Zt.type=Ji,Zt.offset=Fn,Zt.stride=Pi,Zt.divisor=hi,Si&&_r.destroyStream(va),Et.state=Ol,Et.x=bl,Et.y=eu,Et.z=Zl,Et.w=Vl,Et.buffer=ja,Et.size=ns,Et.normalized=Js,Et.type=cs,Et.offset=sl,Et.stride=ll,Et.divisor=il,Ht.vert=zl,Ht.frag=Ml,Yt.dirty=!0},batch:function(Bi,an){var rn,Fi,Ri,xn,xi,Xr,ft;if(rn=De.angle_instanced_arrays,Fi=Ie.next,Fi!==Ie.cur&&(Fi?Xe.bindFramebuffer(36160,Fi.framebuffer):Xe.bindFramebuffer(36160,null),Ie.cur=Fi),Yt.dirty){var tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po;tr=zt.dither,tr!==Yt.dither&&(tr?Xe.enable(3024):Xe.disable(3024),Yt.dither=tr),pr=zt.depth_func,pr!==Yt.depth_func&&(Xe.depthFunc(pr),Yt.depth_func=pr),gr=Wr[0],Zr=Wr[1],(gr!==Nr[0]||Zr!==Nr[1])&&(Xe.depthRange(gr,Zr),Nr[0]=gr,Nr[1]=Zr),Ai=zt.depth_mask,Ai!==Yt.depth_mask&&(Xe.depthMask(Ai),Yt.depth_mask=Ai),Qi=Er[0],ni=Er[1],Zi=Er[2],aa=Er[3],(Qi!==Br[0]||ni!==Br[1]||Zi!==Br[2]||aa!==Br[3])&&(Xe.colorMask(Qi,ni,Zi,aa),Br[0]=Qi,Br[1]=ni,Br[2]=Zi,Br[3]=aa),Mn=zt.cull_enable,Mn!==Yt.cull_enable&&(Mn?Xe.enable(2884):Xe.disable(2884),Yt.cull_enable=Mn),Un=zt.cull_face,Un!==Yt.cull_face&&(Xe.cullFace(Un),Yt.cull_face=Un),Ga=zt.frontFace,Ga!==Yt.frontFace&&(Xe.frontFace(Ga),Yt.frontFace=Ga),ma=zt.lineWidth,ma!==Yt.lineWidth&&(Xe.lineWidth(ma),Yt.lineWidth=ma),oa=zt.polygonOffset_enable,oa!==Yt.polygonOffset_enable&&(oa?Xe.enable(32823):Xe.disable(32823),Yt.polygonOffset_enable=oa),ka=mi[0],so=mi[1],(ka!==Di[0]||so!==Di[1])&&(Xe.polygonOffset(ka,so),Di[0]=ka,Di[1]=so),Kr=zt.sample_alpha,Kr!==Yt.sample_alpha&&(Kr?Xe.enable(32926):Xe.disable(32926),Yt.sample_alpha=Kr),Ia=zt.sample_enable,Ia!==Yt.sample_enable&&(Ia?Xe.enable(32928):Xe.disable(32928),Yt.sample_enable=Ia),Yo=Ii[0],fa=Ii[1],(Yo!==Ci[0]||fa!==Ci[1])&&(Xe.sampleCoverage(Yo,fa),Ci[0]=Yo,Ci[1]=fa),kn=zt.stencil_enable,kn!==Yt.stencil_enable&&(kn?Xe.enable(2960):Xe.disable(2960),Yt.stencil_enable=kn),Ta=zt.stencil_mask,Ta!==Yt.stencil_mask&&(Xe.stencilMask(Ta),Yt.stencil_mask=Ta),ys=nn[0],uo=nn[1],ls=nn[2],(ys!==ii[0]||uo!==ii[1]||ls!==ii[2])&&(Xe.stencilFunc(ys,uo,ls),ii[0]=ys,ii[1]=uo,ii[2]=ls),$a=wi[0],fo=wi[1],mn=wi[2],ra=wi[3],($a!==Gi[0]||fo!==Gi[1]||mn!==Gi[2]||ra!==Gi[3])&&(Xe.stencilOpSeparate($a,fo,mn,ra),Gi[0]=$a,Gi[1]=fo,Gi[2]=mn,Gi[3]=ra),wa=Ft[0],ws=Ft[1],Co=Ft[2],Po=Ft[3],(wa!==gt[0]||ws!==gt[1]||Co!==gt[2]||Po!==gt[3])&&(Xe.stencilOpSeparate(wa,ws,Co,Po),gt[0]=wa,gt[1]=ws,gt[2]=Co,gt[3]=Po)}Xe.blendColor(0,0,0,0),pe[0]=0,pe[1]=0,pe[2]=0,pe[3]=0,dt?Xe.enable(3042):Xe.disable(3042),Yt.blend_enable=dt,Xe.blendEquationSeparate(32774,32774),It[0]=32774,It[1]=32774,Xe.blendFuncSeparate(770,771,773,1),rr[0]=770,rr[1]=771,rr[2]=773,rr[3]=1,pt?Xe.enable(2929):Xe.disable(2929),Yt.depth_enable=pt,at?Xe.enable(3089):Xe.disable(3089),Yt.scissor_enable=at,Ri=Yt.profile,Ri&&(xn=performance.now(),r.count+=an),Xe.useProgram(f.program),xi=De.angle_instanced_arrays;var ji,gn,Ps,Ha,Sn,ao,Ba,Ko;for(xe.setVAO(null),ji=h.location,gn=Re[ji],gn.buffer||Xe.enableVertexAttribArray(ji),(gn.type!==5126||gn.size!==2||gn.buffer!==c||gn.normalized!==!1||gn.offset!==16||gn.stride!==24)&&(Xe.bindBuffer(34962,c.buffer),Xe.vertexAttribPointer(ji,2,5126,!1,24,16),gn.type=5126,gn.size=2,gn.buffer=c,gn.normalized=!1,gn.offset=16,gn.stride=24),gn.divisor!==0&&(xi.vertexAttribDivisorANGLE(ji,0),gn.divisor=0),Ps=x.location,Ha=Re[Ps],Ha.buffer||Xe.enableVertexAttribArray(Ps),(Ha.type!==5126||Ha.size!==2||Ha.buffer!==c||Ha.normalized!==!1||Ha.offset!==0||Ha.stride!==24)&&(Xe.bindBuffer(34962,c.buffer),Xe.vertexAttribPointer(Ps,2,5126,!1,24,0),Ha.type=5126,Ha.size=2,Ha.buffer=c,Ha.normalized=!1,Ha.offset=0,Ha.stride=24),Ha.divisor!==0&&(xi.vertexAttribDivisorANGLE(Ps,0),Ha.divisor=0),Sn=k.location,ao=Re[Sn],ao.buffer||Xe.enableVertexAttribArray(Sn),(ao.type!==5126||ao.size!==2||ao.buffer!==c||ao.normalized!==!1||ao.offset!==8||ao.stride!==24)&&(Xe.bindBuffer(34962,c.buffer),Xe.vertexAttribPointer(Sn,2,5126,!1,24,8),ao.type=5126,ao.size=2,ao.buffer=c,ao.normalized=!1,ao.offset=8,ao.stride=24),ao.divisor!==0&&(xi.vertexAttribDivisorANGLE(Sn,0),ao.divisor=0),Ba=lr.elements,Ba?Xe.bindBuffer(34963,Ba.buffer.buffer):xe.currentVAO&&(Ba=mr.getElements(xe.currentVAO.elements),Ba&&Xe.bindBuffer(34963,Ba.buffer.buffer)),Ko=lr.offset,Xr=0;Xr0?ti.constant[0]:0,qs=ti.constant.length>1?ti.constant[1]:0,Ns=ti.constant.length>2?ti.constant[2]:0,Oa=ti.constant.length>3?ti.constant[3]:0)):(_e(ti.buffer)?ha=_r.createStream(34962,ti.buffer):ha=_r.getBuffer(ti.buffer),_n="type"in ti?Ei[ti.type]:ha.dtype,Ya=!!ti.normalized,Vs=ti.size|0,Vn=ti.offset|0,wo=ti.stride|0,Ra=ti.divisor|0)),Xn=p.location,un=Re[Xn],Go===1?(un.buffer||Xe.enableVertexAttribArray(Xn),$n=Vs||4,(un.type!==_n||un.size!==$n||un.buffer!==ha||un.normalized!==Ya||un.offset!==Vn||un.stride!==wo)&&(Xe.bindBuffer(34962,ha.buffer),Xe.vertexAttribPointer(Xn,$n,_n,Ya,wo,Vn),un.type=_n,un.size=$n,un.buffer=ha,un.normalized=Ya,un.offset=Vn,un.stride=wo),un.divisor!==Ra&&(xi.vertexAttribDivisorANGLE(Xn,Ra),un.divisor=Ra)):(un.buffer&&(Xe.disableVertexAttribArray(Xn),un.buffer=null),(un.x!==Ys||un.y!==qs||un.z!==Ns||un.w!==Oa)&&(Xe.vertexAttrib4f(Xn,Ys,qs,Ns,Oa),un.x=Ys,un.y=qs,un.z=Ns,un.w=Oa)),Ka=b.call(this,rt,ft,Xr),oi.offset=Ka,qn=!1,Eo=1,Ja=0,lo=0,eo=0,sa=0,es=null,Na=0,tn=!1,Pa=5126,to=0,yo=0,Jo=0,_e(oi)?(qn=!0,es=_r.createStream(34962,oi),Pa=es.dtype):(es=_r.getBuffer(oi),es?Pa=es.dtype:"constant"in oi?(Eo=2,typeof oi.constant=="number"?(Ja=oi.constant,lo=eo=sa=0):(Ja=oi.constant.length>0?oi.constant[0]:0,lo=oi.constant.length>1?oi.constant[1]:0,eo=oi.constant.length>2?oi.constant[2]:0,sa=oi.constant.length>3?oi.constant[3]:0)):(_e(oi.buffer)?es=_r.createStream(34962,oi.buffer):es=_r.getBuffer(oi.buffer),Pa="type"in oi?Ei[oi.type]:es.dtype,tn=!!oi.normalized,Na=oi.size|0,to=oi.offset|0,yo=oi.stride|0,Jo=oi.divisor|0)),Ao=v.location,Dn=Re[Ao],Eo===1?(Dn.buffer||Xe.enableVertexAttribArray(Ao),_a=Na||4,(Dn.type!==Pa||Dn.size!==_a||Dn.buffer!==es||Dn.normalized!==tn||Dn.offset!==to||Dn.stride!==yo)&&(Xe.bindBuffer(34962,es.buffer),Xe.vertexAttribPointer(Ao,_a,Pa,tn,yo,to),Dn.type=Pa,Dn.size=_a,Dn.buffer=es,Dn.normalized=tn,Dn.offset=to,Dn.stride=yo),Dn.divisor!==Jo&&(xi.vertexAttribDivisorANGLE(Ao,Jo),Dn.divisor=Jo)):(Dn.buffer&&(Xe.disableVertexAttribArray(Ao),Dn.buffer=null),(Dn.x!==Ja||Dn.y!==lo||Dn.z!==eo||Dn.w!==sa)&&(Xe.vertexAttrib4f(Ao,Ja,lo,eo,sa),Dn.x=Ja,Dn.y=lo,Dn.z=eo,Dn.w=sa)),Ws=E.call(this,rt,ft,Xr),en.offset=Ws,Ca=!1,Es=1,Ts=0,Ho=0,Wa=0,To=0,ts=null,Wo=0,qa=!1,ln=5126,Bo=0,ko=0,oo=0,_e(en)?(Ca=!0,ts=_r.createStream(34962,en),ln=ts.dtype):(ts=_r.getBuffer(en),ts?ln=ts.dtype:"constant"in en?(Es=2,typeof en.constant=="number"?(Ts=en.constant,Ho=Wa=To=0):(Ts=en.constant.length>0?en.constant[0]:0,Ho=en.constant.length>1?en.constant[1]:0,Wa=en.constant.length>2?en.constant[2]:0,To=en.constant.length>3?en.constant[3]:0)):(_e(en.buffer)?ts=_r.createStream(34962,en.buffer):ts=_r.getBuffer(en.buffer),ln="type"in en?Ei[en.type]:ts.dtype,qa=!!en.normalized,Wo=en.size|0,Bo=en.offset|0,ko=en.stride|0,oo=en.divisor|0)),za=T.location,ea=Re[za],Es===1?(ea.buffer||Xe.enableVertexAttribArray(za),rs=Wo||2,(ea.type!==ln||ea.size!==rs||ea.buffer!==ts||ea.normalized!==qa||ea.offset!==Bo||ea.stride!==ko)&&(Xe.bindBuffer(34962,ts.buffer),Xe.vertexAttribPointer(za,rs,ln,qa,ko,Bo),ea.type=ln,ea.size=rs,ea.buffer=ts,ea.normalized=qa,ea.offset=Bo,ea.stride=ko),ea.divisor!==oo&&(xi.vertexAttribDivisorANGLE(za,oo),ea.divisor=oo)):(ea.buffer&&(Xe.disableVertexAttribArray(za),ea.buffer=null),(ea.x!==Ts||ea.y!==Ho||ea.z!==Wa||ea.w!==To)&&(Xe.vertexAttrib4f(za,Ts,Ho,Wa,To),ea.x=Ts,ea.y=Ho,ea.z=Wa,ea.w=To)),$s=L.call(this,rt,ft,Xr),Yr.offset=$s,us=!1,Ds=1,fl=0,as=0,Ma=0,Qs=0,ho=null,gs=0,Vo=!1,Do=5126,Lo=0,xs=0,ks=0,_e(Yr)?(us=!0,ho=_r.createStream(34962,Yr),Do=ho.dtype):(ho=_r.getBuffer(Yr),ho?Do=ho.dtype:"constant"in Yr?(Ds=2,typeof Yr.constant=="number"?(fl=Yr.constant,as=Ma=Qs=0):(fl=Yr.constant.length>0?Yr.constant[0]:0,as=Yr.constant.length>1?Yr.constant[1]:0,Ma=Yr.constant.length>2?Yr.constant[2]:0,Qs=Yr.constant.length>3?Yr.constant[3]:0)):(_e(Yr.buffer)?ho=_r.createStream(34962,Yr.buffer):ho=_r.getBuffer(Yr.buffer),Do="type"in Yr?Ei[Yr.type]:ho.dtype,Vo=!!Yr.normalized,gs=Yr.size|0,Lo=Yr.offset|0,xs=Yr.stride|0,ks=Yr.divisor|0)),Ea=_.location,Jn=Re[Ea],Ds===1?(Jn.buffer||Xe.enableVertexAttribArray(Ea),Oo=gs||2,(Jn.type!==Do||Jn.size!==Oo||Jn.buffer!==ho||Jn.normalized!==Vo||Jn.offset!==Lo||Jn.stride!==xs)&&(Xe.bindBuffer(34962,ho.buffer),Xe.vertexAttribPointer(Ea,Oo,Do,Vo,xs,Lo),Jn.type=Do,Jn.size=Oo,Jn.buffer=ho,Jn.normalized=Vo,Jn.offset=Lo,Jn.stride=xs),Jn.divisor!==ks&&(xi.vertexAttribDivisorANGLE(Ea,ks),Jn.divisor=ks)):(Jn.buffer&&(Xe.disableVertexAttribArray(Ea),Jn.buffer=null),(Jn.x!==fl||Jn.y!==as||Jn.z!==Ma||Jn.w!==Qs)&&(Xe.vertexAttrib4f(Ea,fl,as,Ma,Qs),Jn.x=fl,Jn.y=as,Jn.z=Ma,Jn.w=Qs)),rl=ft.capSize,(!Xr||Gs!==rl)&&(Gs=rl,Xe.uniform1f(C.location,rl)),bs=ft.lineWidth,(!Xr||zs!==bs)&&(zs=bs,Xe.uniform1f(S.location,bs)),$o=ft.opacity,(!Xr||Aa!==$o)&&(Aa=$o,Xe.uniform1f(m.location,$o)),os=ft.scale,_l=os[0],po=os[1],(!Xr||Ss!==_l||go!==po)&&(Ss=_l,go=po,Xe.uniform2f(P.location,_l,po)),ss=ft.scaleFract,qo=ss[0],io=ss[1],(!Xr||zo!==qo||Io!==io)&&(zo=qo,Io=io,Xe.uniform2f(A.location,qo,io)),Da=ft.translate,vs=Da[0],cl=Da[1],(!Xr||fs!==vs||el!==cl)&&(fs=vs,el=cl,Xe.uniform2f(B.location,vs,cl)),Hs=ft.translateFract,Ro=Hs[0],Fs=Hs[1],(!Xr||tl!==Ro||hl!==Fs)&&(tl=Ro,hl=Fs,Xe.uniform2f(F.location,Ro,Fs)),Fa=G.call(this,rt,ft,Xr),Ms=Fa[0],Rs=Fa[1],Bs=Fa[2],Vt=Fa[3],(!Xr||jo!==Ms||Is!==Rs||Tt!==Bs||wr!==Vt)&&(jo=Ms,Is=Rs,Tt=Bs,wr=Vt,Xe.uniform4f(U.location,Ms,Rs,Bs,Vt)),yr=ft.count,yr>0?Ba?xi.drawElementsInstancedANGLE(4,36,Ba.type,Ko<<(Ba.type-5121>>1),yr):xi.drawArraysInstancedANGLE(4,Ko,36,yr):yr<0&&(Ba?Xe.drawElements(4,36,Ba.type,Ko<<(Ba.type-5121>>1)):Xe.drawArrays(4,Ko,36)),rt.viewportWidth=da,rt.viewportHeight=la,jn&&_r.destroyStream(ha),qn&&_r.destroyStream(es),Ca&&_r.destroyStream(ts),us&&_r.destroyStream(ho)}Yt.dirty=!0,xe.setVAO(null),Ri&&(r.cpuTime+=performance.now()-xn)}}}});var z8=Te((H_r,ONe)=>{ONe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ue,Fe,me,Ne,ce,Ke,it,bt,Nt,nt,Ye,kt,At,St,Bt,Zt,Et){"use strict";var Ae,ot,dt,pt,at,Xe,rt,Qe,zt,Yt,lr,mr,_r,Ht,Re,xe,Oe,Ie,De,ct,_e,fe,pe,mt,It,Pt,rr,Wr,Nr,Er,Br,mi,Di,Ii,Ci,nn,ii,wi,Gi,Ft,gt,Ut,Wt,xr,Lr,Ur,Ir,Gr,jr;return Ae=t.gl,ot=t.context,dt=t.strings,pt=t.next,at=t.current,Xe=t.draw,rt=t.elements,Qe=t.buffer,zt=t.shader,Yt=t.attributes,lr=t.vao,mr=t.uniforms,_r=t.framebuffer,Ht=t.extensions,Re=t.timer,xe=t.isBufferArgs,Oe=pt.blend_color,Ie=at.blend_color,De=pt.blend_equation,ct=at.blend_equation,_e=pt.blend_func,fe=at.blend_func,pe=pt.depth_range,mt=at.depth_range,It=pt.colorMask,Pt=at.colorMask,rr=pt.polygonOffset_offset,Wr=at.polygonOffset_offset,Nr=pt.sample_coverage,Er=at.sample_coverage,Br=pt.stencil_func,mi=at.stencil_func,Di=pt.stencil_opFront,Ii=at.stencil_opFront,Ci=pt.stencil_opBack,nn=at.stencil_opBack,ii=pt.scissor_box,wi=at.scissor_box,Gi=pt.viewport,Ft=at.viewport,gt={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ut={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Wt={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},xr={add:32774,subtract:32778,"reverse subtract":32779},Lr={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ur={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ir={cw:2304,ccw:2305},Gr={},Gr.offset=4,Gr.stride=8,jr={},jr.offset=0,jr.stride=8,{draw:function(yi){var Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo;if(Ei=Ht.angle_instanced_arrays,Vi=_r.next,Vi!==_r.cur&&(Vi?Ae.bindFramebuffer(36160,Vi.framebuffer):Ae.bindFramebuffer(36160,null),_r.cur=Vi),at.dirty){var za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs;za=pt.dither,za!==at.dither&&(za?Ae.enable(3024):Ae.disable(3024),at.dither=za),ea=De[0],rs=De[1],(ea!==ct[0]||rs!==ct[1])&&(Ae.blendEquationSeparate(ea,rs),ct[0]=ea,ct[1]=rs),$s=pt.depth_func,$s!==at.depth_func&&(Ae.depthFunc($s),at.depth_func=$s),us=pe[0],Ds=pe[1],(us!==mt[0]||Ds!==mt[1])&&(Ae.depthRange(us,Ds),mt[0]=us,mt[1]=Ds),fl=pt.depth_mask,fl!==at.depth_mask&&(Ae.depthMask(fl),at.depth_mask=fl),as=It[0],Ma=It[1],Qs=It[2],ho=It[3],(as!==Pt[0]||Ma!==Pt[1]||Qs!==Pt[2]||ho!==Pt[3])&&(Ae.colorMask(as,Ma,Qs,ho),Pt[0]=as,Pt[1]=Ma,Pt[2]=Qs,Pt[3]=ho),gs=pt.cull_enable,gs!==at.cull_enable&&(gs?Ae.enable(2884):Ae.disable(2884),at.cull_enable=gs),Vo=pt.cull_face,Vo!==at.cull_face&&(Ae.cullFace(Vo),at.cull_face=Vo),Do=pt.frontFace,Do!==at.frontFace&&(Ae.frontFace(Do),at.frontFace=Do),Lo=pt.lineWidth,Lo!==at.lineWidth&&(Ae.lineWidth(Lo),at.lineWidth=Lo),xs=pt.polygonOffset_enable,xs!==at.polygonOffset_enable&&(xs?Ae.enable(32823):Ae.disable(32823),at.polygonOffset_enable=xs),ks=rr[0],Ea=rr[1],(ks!==Wr[0]||Ea!==Wr[1])&&(Ae.polygonOffset(ks,Ea),Wr[0]=ks,Wr[1]=Ea),Jn=pt.sample_alpha,Jn!==at.sample_alpha&&(Jn?Ae.enable(32926):Ae.disable(32926),at.sample_alpha=Jn),Oo=pt.sample_enable,Oo!==at.sample_enable&&(Oo?Ae.enable(32928):Ae.disable(32928),at.sample_enable=Oo),rl=Nr[0],Gs=Nr[1],(rl!==Er[0]||Gs!==Er[1])&&(Ae.sampleCoverage(rl,Gs),Er[0]=rl,Er[1]=Gs),bs=pt.stencil_mask,bs!==at.stencil_mask&&(Ae.stencilMask(bs),at.stencil_mask=bs),zs=Br[0],$o=Br[1],Aa=Br[2],(zs!==mi[0]||$o!==mi[1]||Aa!==mi[2])&&(Ae.stencilFunc(zs,$o,Aa),mi[0]=zs,mi[1]=$o,mi[2]=Aa),os=Di[0],_l=Di[1],Ss=Di[2],po=Di[3],(os!==Ii[0]||_l!==Ii[1]||Ss!==Ii[2]||po!==Ii[3])&&(Ae.stencilOpSeparate(os,_l,Ss,po),Ii[0]=os,Ii[1]=_l,Ii[2]=Ss,Ii[3]=po),go=Ci[0],ss=Ci[1],qo=Ci[2],zo=Ci[3],(go!==nn[0]||ss!==nn[1]||qo!==nn[2]||zo!==nn[3])&&(Ae.stencilOpSeparate(go,ss,qo,zo),nn[0]=go,nn[1]=ss,nn[2]=qo,nn[3]=zo),io=pt.scissor_enable,io!==at.scissor_enable&&(io?Ae.enable(3089):Ae.disable(3089),at.scissor_enable=io),Io=ii[0],Da=ii[1],vs=ii[2],fs=ii[3],(Io!==wi[0]||Da!==wi[1]||vs!==wi[2]||fs!==wi[3])&&(Ae.scissor(Io,Da,vs,fs),wi[0]=Io,wi[1]=Da,wi[2]=vs,wi[3]=fs)}ti=this.viewport,en=ti.x|0,Yr=ti.y|0,oi="width"in ti?ti.width|0:ot.framebufferWidth-en,Bi="height"in ti?ti.height|0:ot.framebufferHeight-Yr,an=ot.viewportWidth,ot.viewportWidth=oi,rn=ot.viewportHeight,ot.viewportHeight=Bi,Ae.viewport(en,Yr,oi,Bi),Ft[0]=en,Ft[1]=Yr,Ft[2]=oi,Ft[3]=Bi,Ae.blendColor(0,0,0,1),Ie[0]=0,Ie[1]=0,Ie[2]=0,Ie[3]=1,n?Ae.enable(3042):Ae.disable(3042),at.blend_enable=n,Ae.blendFuncSeparate(770,771,773,1),fe[0]=770,fe[1]=771,fe[2]=773,fe[3]=1,i?Ae.enable(2929):Ae.disable(2929),at.depth_enable=i,a?Ae.enable(2960):Ae.disable(2960),at.stencil_enable=a,Fi=at.profile,Fi&&(Ri=performance.now(),r.count++),Ae.useProgram(o.program),xn=Ht.angle_instanced_arrays,lr.setVAO(null),xi=this.charBuffer,Xr=!1,ft=1,tr=0,pr=0,gr=0,Zr=0,Ai=null,Qi=0,ni=!1,Zi=5126,aa=0,Mn=0,Un=0,xe(xi)?(Xr=!0,Ai=Qe.createStream(34962,xi),Zi=Ai.dtype):(Ai=Qe.getBuffer(xi),Ai?Zi=Ai.dtype:"constant"in xi?(ft=2,typeof xi.constant=="number"?(tr=xi.constant,pr=gr=Zr=0):(tr=xi.constant.length>0?xi.constant[0]:0,pr=xi.constant.length>1?xi.constant[1]:0,gr=xi.constant.length>2?xi.constant[2]:0,Zr=xi.constant.length>3?xi.constant[3]:0)):(xe(xi.buffer)?Ai=Qe.createStream(34962,xi.buffer):Ai=Qe.getBuffer(xi.buffer),Zi="type"in xi?Ur[xi.type]:Ai.dtype,ni=!!xi.normalized,Qi=xi.size|0,aa=xi.offset|0,Mn=xi.stride|0,Un=xi.divisor|0)),Ga=s.location,ma=Yt[Ga],ft===1?(ma.buffer||Ae.enableVertexAttribArray(Ga),oa=Qi||1,(ma.type!==Zi||ma.size!==oa||ma.buffer!==Ai||ma.normalized!==ni||ma.offset!==aa||ma.stride!==Mn)&&(Ae.bindBuffer(34962,Ai.buffer),Ae.vertexAttribPointer(Ga,oa,Zi,ni,Mn,aa),ma.type=Zi,ma.size=oa,ma.buffer=Ai,ma.normalized=ni,ma.offset=aa,ma.stride=Mn),ma.divisor!==Un&&(xn.vertexAttribDivisorANGLE(Ga,Un),ma.divisor=Un)):(ma.buffer&&(Ae.disableVertexAttribArray(Ga),ma.buffer=null),(ma.x!==tr||ma.y!==pr||ma.z!==gr||ma.w!==Zr)&&(Ae.vertexAttrib4f(Ga,tr,pr,gr,Zr),ma.x=tr,ma.y=pr,ma.z=gr,ma.w=Zr)),ka=this.sizeBuffer,Gr.buffer=ka,so=!1,Kr=1,Ia=0,Yo=0,fa=0,kn=0,Ta=null,ys=0,uo=!1,ls=5126,$a=0,fo=0,mn=0,xe(Gr)?(so=!0,Ta=Qe.createStream(34962,Gr),ls=Ta.dtype):(Ta=Qe.getBuffer(Gr),Ta?ls=Ta.dtype:"constant"in Gr?(Kr=2,typeof Gr.constant=="number"?(Ia=Gr.constant,Yo=fa=kn=0):(Ia=Gr.constant.length>0?Gr.constant[0]:0,Yo=Gr.constant.length>1?Gr.constant[1]:0,fa=Gr.constant.length>2?Gr.constant[2]:0,kn=Gr.constant.length>3?Gr.constant[3]:0)):(xe(Gr.buffer)?Ta=Qe.createStream(34962,Gr.buffer):Ta=Qe.getBuffer(Gr.buffer),ls="type"in Gr?Ur[Gr.type]:Ta.dtype,uo=!!Gr.normalized,ys=Gr.size|0,$a=Gr.offset|0,fo=Gr.stride|0,mn=Gr.divisor|0)),ra=u.location,wa=Yt[ra],Kr===1?(wa.buffer||Ae.enableVertexAttribArray(ra),ws=ys||1,(wa.type!==ls||wa.size!==ws||wa.buffer!==Ta||wa.normalized!==uo||wa.offset!==$a||wa.stride!==fo)&&(Ae.bindBuffer(34962,Ta.buffer),Ae.vertexAttribPointer(ra,ws,ls,uo,fo,$a),wa.type=ls,wa.size=ws,wa.buffer=Ta,wa.normalized=uo,wa.offset=$a,wa.stride=fo),wa.divisor!==mn&&(xn.vertexAttribDivisorANGLE(ra,mn),wa.divisor=mn)):(wa.buffer&&(Ae.disableVertexAttribArray(ra),wa.buffer=null),(wa.x!==Ia||wa.y!==Yo||wa.z!==fa||wa.w!==kn)&&(Ae.vertexAttrib4f(ra,Ia,Yo,fa,kn),wa.x=Ia,wa.y=Yo,wa.z=fa,wa.w=kn)),Co=this.position,Po=!1,ji=1,gn=0,Ps=0,Ha=0,Sn=0,ao=null,Ba=0,Ko=!1,Qo=5126,Wi=0,Sa=0,Qa=0,xe(Co)?(Po=!0,ao=Qe.createStream(34962,Co),Qo=ao.dtype):(ao=Qe.getBuffer(Co),ao?Qo=ao.dtype:"constant"in Co?(ji=2,typeof Co.constant=="number"?(gn=Co.constant,Ps=Ha=Sn=0):(gn=Co.constant.length>0?Co.constant[0]:0,Ps=Co.constant.length>1?Co.constant[1]:0,Ha=Co.constant.length>2?Co.constant[2]:0,Sn=Co.constant.length>3?Co.constant[3]:0)):(xe(Co.buffer)?ao=Qe.createStream(34962,Co.buffer):ao=Qe.getBuffer(Co.buffer),Qo="type"in Co?Ur[Co.type]:ao.dtype,Ko=!!Co.normalized,Ba=Co.size|0,Wi=Co.offset|0,Sa=Co.stride|0,Qa=Co.divisor|0)),vn=l.location,da=Yt[vn],ji===1?(da.buffer||Ae.enableVertexAttribArray(vn),la=Ba||2,(da.type!==Qo||da.size!==la||da.buffer!==ao||da.normalized!==Ko||da.offset!==Wi||da.stride!==Sa)&&(Ae.bindBuffer(34962,ao.buffer),Ae.vertexAttribPointer(vn,la,Qo,Ko,Sa,Wi),da.type=Qo,da.size=la,da.buffer=ao,da.normalized=Ko,da.offset=Wi,da.stride=Sa),da.divisor!==Qa&&(xn.vertexAttribDivisorANGLE(vn,Qa),da.divisor=Qa)):(da.buffer&&(Ae.disableVertexAttribArray(vn),da.buffer=null),(da.x!==gn||da.y!==Ps||da.z!==Ha||da.w!==Sn)&&(Ae.vertexAttrib4f(vn,gn,Ps,Ha,Sn),da.x=gn,da.y=Ps,da.z=Ha,da.w=Sn)),vo=this.sizeBuffer,jr.buffer=vo,As=!1,ps=1,co=0,mo=0,No=0,jn=0,Go=null,Ys=0,qs=!1,Ns=5126,Oa=0,ha=0,Vs=0,xe(jr)?(As=!0,Go=Qe.createStream(34962,jr),Ns=Go.dtype):(Go=Qe.getBuffer(jr),Go?Ns=Go.dtype:"constant"in jr?(ps=2,typeof jr.constant=="number"?(co=jr.constant,mo=No=jn=0):(co=jr.constant.length>0?jr.constant[0]:0,mo=jr.constant.length>1?jr.constant[1]:0,No=jr.constant.length>2?jr.constant[2]:0,jn=jr.constant.length>3?jr.constant[3]:0)):(xe(jr.buffer)?Go=Qe.createStream(34962,jr.buffer):Go=Qe.getBuffer(jr.buffer),Ns="type"in jr?Ur[jr.type]:Go.dtype,qs=!!jr.normalized,Ys=jr.size|0,Oa=jr.offset|0,ha=jr.stride|0,Vs=jr.divisor|0)),Ya=f.location,_n=Yt[Ya],ps===1?(_n.buffer||Ae.enableVertexAttribArray(Ya),Vn=Ys||1,(_n.type!==Ns||_n.size!==Vn||_n.buffer!==Go||_n.normalized!==qs||_n.offset!==Oa||_n.stride!==ha)&&(Ae.bindBuffer(34962,Go.buffer),Ae.vertexAttribPointer(Ya,Vn,Ns,qs,ha,Oa),_n.type=Ns,_n.size=Vn,_n.buffer=Go,_n.normalized=qs,_n.offset=Oa,_n.stride=ha),_n.divisor!==Vs&&(xn.vertexAttribDivisorANGLE(Ya,Vs),_n.divisor=Vs)):(_n.buffer&&(Ae.disableVertexAttribArray(Ya),_n.buffer=null),(_n.x!==co||_n.y!==mo||_n.z!==No||_n.w!==jn)&&(Ae.vertexAttrib4f(Ya,co,mo,No,jn),_n.x=co,_n.y=mo,_n.z=No,_n.w=jn)),wo=yi.align,Ae.uniform1f(c.location,wo),Ra=d.call(this,ot,yi,0),Ra&&Ra._reglType==="framebuffer"&&(Ra=Ra.color[0]),Xn=Ra._texture,Ae.uniform1i(h.location,Xn.bind()),un=x.call(this,ot,yi,0),$n=un[0],Ka=un[1],Ae.uniform2f(p.location,$n,Ka),qn=v.call(this,ot,yi,0),Eo=qn[0],Ja=qn[1],Ae.uniform2f(b.location,Eo,Ja),lo=yi.baseline,Ae.uniform1f(k.location,lo),eo=T.call(this,ot,yi,0),Ae.uniform1f(E.location,eo),sa=yi.color,es=sa[0],Na=sa[1],tn=sa[2],Pa=sa[3],Ae.uniform4f(L.location,es,Na,tn,Pa),to=C.call(this,ot,yi,0),Ae.uniform1f(_.location,to),yo=yi.opacity,Ae.uniform1f(S.location,yo),Jo=yi.positionOffset,Ao=Jo[0],Dn=Jo[1],Ae.uniform2f(m.location,Ao,Dn),_a=this.scale,Ws=_a[0],Ca=_a[1],Ae.uniform2f(P.location,Ws,Ca),Es=this.translate,Ts=Es[0],Ho=Es[1],Ae.uniform2f(A.location,Ts,Ho),Wa=this.viewportArray,To=Wa[0],ts=Wa[1],Wo=Wa[2],qa=Wa[3],Ae.uniform4f(B.location,To,ts,Wo,qa),ln=Xe.elements,ln?Ae.bindBuffer(34963,ln.buffer.buffer):lr.currentVAO&&(ln=rt.getElements(lr.currentVAO.elements),ln&&Ae.bindBuffer(34963,ln.buffer.buffer)),Bo=yi.offset,ko=yi.count,ko&&(oo=Xe.instances,oo>0?ln?xn.drawElementsInstancedANGLE(0,ko,ln.type,Bo<<(ln.type-5121>>1),oo):xn.drawArraysInstancedANGLE(0,Bo,ko,oo):oo<0&&(ln?Ae.drawElements(0,ko,ln.type,Bo<<(ln.type-5121>>1)):Ae.drawArrays(0,Bo,ko)),at.dirty=!0,lr.setVAO(null),ot.viewportWidth=an,ot.viewportHeight=rn,Fi&&(r.cpuTime+=performance.now()-Ri),Xr&&Qe.destroyStream(Ai),so&&Qe.destroyStream(Ta),Po&&Qe.destroyStream(ao),As&&Qe.destroyStream(Go),Xn.unbind())},scope:function(yi,Ei,Vi){var ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa;ti=this.viewport,en=ti.x|0,Yr=ti.y|0,oi="width"in ti?ti.width|0:ot.framebufferWidth-en,Bi="height"in ti?ti.height|0:ot.framebufferHeight-Yr,an=ot.viewportWidth,ot.viewportWidth=oi,rn=ot.viewportHeight,ot.viewportHeight=Bi,Fi=Gi[0],Gi[0]=en,Ri=Gi[1],Gi[1]=Yr,xn=Gi[2],Gi[2]=oi,xi=Gi[3],Gi[3]=Bi,Xr=Oe[0],Oe[0]=F,ft=Oe[1],Oe[1]=U,tr=Oe[2],Oe[2]=G,pr=Oe[3],Oe[3]=j,gr=pt.blend_enable,pt.blend_enable=H,Zr=_e[0],_e[0]=N,Ai=_e[1],_e[1]=W,Qi=_e[2],_e[2]=re,ni=_e[3],_e[3]=ae,Zi=pt.depth_enable,pt.depth_enable=be,aa=pt.stencil_enable,pt.stencil_enable=Pe,Mn=at.profile,Mn&&(Un=performance.now(),r.count++),Ga=yi.offset,ma=Xe.offset,Xe.offset=Ga,oa=yi.count,ka=Xe.count,Xe.count=oa,so=Xe.primitive,Xe.primitive=Ce,Kr=v.call(this,ot,yi,Vi),Ia=mr[de],mr[de]=Kr,Yo=x.call(this,ot,yi,Vi),fa=mr[te],mr[te]=Yo,kn=d.call(this,ot,yi,Vi),Ta=mr[ke],mr[ke]=kn,ys=T.call(this,ot,yi,Vi),uo=mr[Ee],mr[Ee]=ys,ls=C.call(this,ot,yi,Vi),$a=mr[Me],mr[Me]=ls,fo=yi.color,mn=mr[Ue],mr[Ue]=fo,ra=yi.opacity,wa=mr[Fe],mr[Fe]=ra,ws=this.viewportArray,Co=mr[me],mr[me]=ws,Po=this.scale,ji=mr[Ne],mr[Ne]=Po,gn=yi.align,Ps=mr[ce],mr[ce]=gn,Ha=yi.baseline,Sn=mr[Ke],mr[Ke]=Ha,ao=this.translate,Ba=mr[it],mr[it]=ao,Ko=yi.positionOffset,Qo=mr[bt],mr[bt]=Ko,Wi=this.charBuffer,Sa=!1,Qa=1,vn=0,da=0,la=0,vo=0,As=null,ps=0,co=!1,mo=5126,No=0,jn=0,Go=0,xe(Wi)?(Sa=!0,As=Qe.createStream(34962,Wi),mo=As.dtype):(As=Qe.getBuffer(Wi),As?mo=As.dtype:"constant"in Wi?(Qa=2,typeof Wi.constant=="number"?(vn=Wi.constant,da=la=vo=0):(vn=Wi.constant.length>0?Wi.constant[0]:0,da=Wi.constant.length>1?Wi.constant[1]:0,la=Wi.constant.length>2?Wi.constant[2]:0,vo=Wi.constant.length>3?Wi.constant[3]:0)):(xe(Wi.buffer)?As=Qe.createStream(34962,Wi.buffer):As=Qe.getBuffer(Wi.buffer),mo="type"in Wi?Ur[Wi.type]:As.dtype,co=!!Wi.normalized,ps=Wi.size|0,No=Wi.offset|0,jn=Wi.stride|0,Go=Wi.divisor|0)),Ys=Nt.state,Nt.state=Qa,qs=Nt.x,Nt.x=vn,Ns=Nt.y,Nt.y=da,Oa=Nt.z,Nt.z=la,ha=Nt.w,Nt.w=vo,Vs=Nt.buffer,Nt.buffer=As,Ya=Nt.size,Nt.size=ps,_n=Nt.normalized,Nt.normalized=co,Vn=Nt.type,Nt.type=mo,wo=Nt.offset,Nt.offset=No,Ra=Nt.stride,Nt.stride=jn,Xn=Nt.divisor,Nt.divisor=Go,un=this.position,$n=!1,Ka=1,qn=0,Eo=0,Ja=0,lo=0,eo=null,sa=0,es=!1,Na=5126,tn=0,Pa=0,to=0,xe(un)?($n=!0,eo=Qe.createStream(34962,un),Na=eo.dtype):(eo=Qe.getBuffer(un),eo?Na=eo.dtype:"constant"in un?(Ka=2,typeof un.constant=="number"?(qn=un.constant,Eo=Ja=lo=0):(qn=un.constant.length>0?un.constant[0]:0,Eo=un.constant.length>1?un.constant[1]:0,Ja=un.constant.length>2?un.constant[2]:0,lo=un.constant.length>3?un.constant[3]:0)):(xe(un.buffer)?eo=Qe.createStream(34962,un.buffer):eo=Qe.getBuffer(un.buffer),Na="type"in un?Ur[un.type]:eo.dtype,es=!!un.normalized,sa=un.size|0,tn=un.offset|0,Pa=un.stride|0,to=un.divisor|0)),yo=nt.state,nt.state=Ka,Jo=nt.x,nt.x=qn,Ao=nt.y,nt.y=Eo,Dn=nt.z,nt.z=Ja,_a=nt.w,nt.w=lo,Ws=nt.buffer,nt.buffer=eo,Ca=nt.size,nt.size=sa,Es=nt.normalized,nt.normalized=es,Ts=nt.type,nt.type=Na,Ho=nt.offset,nt.offset=tn,Wa=nt.stride,nt.stride=Pa,To=nt.divisor,nt.divisor=to,ts=this.sizeBuffer,Gr.buffer=ts,Wo=!1,qa=1,ln=0,Bo=0,ko=0,oo=0,za=null,ea=0,rs=!1,$s=5126,us=0,Ds=0,fl=0,xe(Gr)?(Wo=!0,za=Qe.createStream(34962,Gr),$s=za.dtype):(za=Qe.getBuffer(Gr),za?$s=za.dtype:"constant"in Gr?(qa=2,typeof Gr.constant=="number"?(ln=Gr.constant,Bo=ko=oo=0):(ln=Gr.constant.length>0?Gr.constant[0]:0,Bo=Gr.constant.length>1?Gr.constant[1]:0,ko=Gr.constant.length>2?Gr.constant[2]:0,oo=Gr.constant.length>3?Gr.constant[3]:0)):(xe(Gr.buffer)?za=Qe.createStream(34962,Gr.buffer):za=Qe.getBuffer(Gr.buffer),$s="type"in Gr?Ur[Gr.type]:za.dtype,rs=!!Gr.normalized,ea=Gr.size|0,us=Gr.offset|0,Ds=Gr.stride|0,fl=Gr.divisor|0)),as=Ye.state,Ye.state=qa,Ma=Ye.x,Ye.x=ln,Qs=Ye.y,Ye.y=Bo,ho=Ye.z,Ye.z=ko,gs=Ye.w,Ye.w=oo,Vo=Ye.buffer,Ye.buffer=za,Do=Ye.size,Ye.size=ea,Lo=Ye.normalized,Ye.normalized=rs,xs=Ye.type,Ye.type=$s,ks=Ye.offset,Ye.offset=us,Ea=Ye.stride,Ye.stride=Ds,Jn=Ye.divisor,Ye.divisor=fl,Oo=this.sizeBuffer,jr.buffer=Oo,rl=!1,Gs=1,bs=0,zs=0,$o=0,Aa=0,os=null,_l=0,Ss=!1,po=5126,go=0,ss=0,qo=0,xe(jr)?(rl=!0,os=Qe.createStream(34962,jr),po=os.dtype):(os=Qe.getBuffer(jr),os?po=os.dtype:"constant"in jr?(Gs=2,typeof jr.constant=="number"?(bs=jr.constant,zs=$o=Aa=0):(bs=jr.constant.length>0?jr.constant[0]:0,zs=jr.constant.length>1?jr.constant[1]:0,$o=jr.constant.length>2?jr.constant[2]:0,Aa=jr.constant.length>3?jr.constant[3]:0)):(xe(jr.buffer)?os=Qe.createStream(34962,jr.buffer):os=Qe.getBuffer(jr.buffer),po="type"in jr?Ur[jr.type]:os.dtype,Ss=!!jr.normalized,_l=jr.size|0,go=jr.offset|0,ss=jr.stride|0,qo=jr.divisor|0)),zo=kt.state,kt.state=Gs,io=kt.x,kt.x=bs,Io=kt.y,kt.y=zs,Da=kt.z,kt.z=$o,vs=kt.w,kt.w=Aa,fs=kt.buffer,kt.buffer=os,cl=kt.size,kt.size=_l,el=kt.normalized,kt.normalized=Ss,Hs=kt.type,kt.type=po,Ro=kt.offset,kt.offset=go,tl=kt.stride,kt.stride=ss,Fs=kt.divisor,kt.divisor=qo,hl=zt.vert,zt.vert=At,Fa=zt.frag,zt.frag=St,at.dirty=!0,Ei(ot,yi,Vi),ot.viewportWidth=an,ot.viewportHeight=rn,Gi[0]=Fi,Gi[1]=Ri,Gi[2]=xn,Gi[3]=xi,Oe[0]=Xr,Oe[1]=ft,Oe[2]=tr,Oe[3]=pr,pt.blend_enable=gr,_e[0]=Zr,_e[1]=Ai,_e[2]=Qi,_e[3]=ni,pt.depth_enable=Zi,pt.stencil_enable=aa,Mn&&(r.cpuTime+=performance.now()-Un),Xe.offset=ma,Xe.count=ka,Xe.primitive=so,mr[de]=Ia,mr[te]=fa,mr[ke]=Ta,mr[Ee]=uo,mr[Me]=$a,mr[Ue]=mn,mr[Fe]=wa,mr[me]=Co,mr[Ne]=ji,mr[ce]=Ps,mr[Ke]=Sn,mr[it]=Ba,mr[bt]=Qo,Sa&&Qe.destroyStream(As),Nt.state=Ys,Nt.x=qs,Nt.y=Ns,Nt.z=Oa,Nt.w=ha,Nt.buffer=Vs,Nt.size=Ya,Nt.normalized=_n,Nt.type=Vn,Nt.offset=wo,Nt.stride=Ra,Nt.divisor=Xn,$n&&Qe.destroyStream(eo),nt.state=yo,nt.x=Jo,nt.y=Ao,nt.z=Dn,nt.w=_a,nt.buffer=Ws,nt.size=Ca,nt.normalized=Es,nt.type=Ts,nt.offset=Ho,nt.stride=Wa,nt.divisor=To,Wo&&Qe.destroyStream(za),Ye.state=as,Ye.x=Ma,Ye.y=Qs,Ye.z=ho,Ye.w=gs,Ye.buffer=Vo,Ye.size=Do,Ye.normalized=Lo,Ye.type=xs,Ye.offset=ks,Ye.stride=Ea,Ye.divisor=Jn,rl&&Qe.destroyStream(os),kt.state=zo,kt.x=io,kt.y=Io,kt.z=Da,kt.w=vs,kt.buffer=fs,kt.size=cl,kt.normalized=el,kt.type=Hs,kt.offset=Ro,kt.stride=tl,kt.divisor=Fs,zt.vert=hl,zt.frag=Fa,at.dirty=!0},batch:function(yi,Ei){var Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft;if(Vi=Ht.angle_instanced_arrays,ti=_r.next,ti!==_r.cur&&(ti?Ae.bindFramebuffer(36160,ti.framebuffer):Ae.bindFramebuffer(36160,null),_r.cur=ti),at.dirty){var tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao;tr=pt.dither,tr!==at.dither&&(tr?Ae.enable(3024):Ae.disable(3024),at.dither=tr),pr=De[0],gr=De[1],(pr!==ct[0]||gr!==ct[1])&&(Ae.blendEquationSeparate(pr,gr),ct[0]=pr,ct[1]=gr),Zr=pt.depth_func,Zr!==at.depth_func&&(Ae.depthFunc(Zr),at.depth_func=Zr),Ai=pe[0],Qi=pe[1],(Ai!==mt[0]||Qi!==mt[1])&&(Ae.depthRange(Ai,Qi),mt[0]=Ai,mt[1]=Qi),ni=pt.depth_mask,ni!==at.depth_mask&&(Ae.depthMask(ni),at.depth_mask=ni),Zi=It[0],aa=It[1],Mn=It[2],Un=It[3],(Zi!==Pt[0]||aa!==Pt[1]||Mn!==Pt[2]||Un!==Pt[3])&&(Ae.colorMask(Zi,aa,Mn,Un),Pt[0]=Zi,Pt[1]=aa,Pt[2]=Mn,Pt[3]=Un),Ga=pt.cull_enable,Ga!==at.cull_enable&&(Ga?Ae.enable(2884):Ae.disable(2884),at.cull_enable=Ga),ma=pt.cull_face,ma!==at.cull_face&&(Ae.cullFace(ma),at.cull_face=ma),oa=pt.frontFace,oa!==at.frontFace&&(Ae.frontFace(oa),at.frontFace=oa),ka=pt.lineWidth,ka!==at.lineWidth&&(Ae.lineWidth(ka),at.lineWidth=ka),so=pt.polygonOffset_enable,so!==at.polygonOffset_enable&&(so?Ae.enable(32823):Ae.disable(32823),at.polygonOffset_enable=so),Kr=rr[0],Ia=rr[1],(Kr!==Wr[0]||Ia!==Wr[1])&&(Ae.polygonOffset(Kr,Ia),Wr[0]=Kr,Wr[1]=Ia),Yo=pt.sample_alpha,Yo!==at.sample_alpha&&(Yo?Ae.enable(32926):Ae.disable(32926),at.sample_alpha=Yo),fa=pt.sample_enable,fa!==at.sample_enable&&(fa?Ae.enable(32928):Ae.disable(32928),at.sample_enable=fa),kn=Nr[0],Ta=Nr[1],(kn!==Er[0]||Ta!==Er[1])&&(Ae.sampleCoverage(kn,Ta),Er[0]=kn,Er[1]=Ta),ys=pt.stencil_mask,ys!==at.stencil_mask&&(Ae.stencilMask(ys),at.stencil_mask=ys),uo=Br[0],ls=Br[1],$a=Br[2],(uo!==mi[0]||ls!==mi[1]||$a!==mi[2])&&(Ae.stencilFunc(uo,ls,$a),mi[0]=uo,mi[1]=ls,mi[2]=$a),fo=Di[0],mn=Di[1],ra=Di[2],wa=Di[3],(fo!==Ii[0]||mn!==Ii[1]||ra!==Ii[2]||wa!==Ii[3])&&(Ae.stencilOpSeparate(fo,mn,ra,wa),Ii[0]=fo,Ii[1]=mn,Ii[2]=ra,Ii[3]=wa),ws=Ci[0],Co=Ci[1],Po=Ci[2],ji=Ci[3],(ws!==nn[0]||Co!==nn[1]||Po!==nn[2]||ji!==nn[3])&&(Ae.stencilOpSeparate(ws,Co,Po,ji),nn[0]=ws,nn[1]=Co,nn[2]=Po,nn[3]=ji),gn=pt.scissor_enable,gn!==at.scissor_enable&&(gn?Ae.enable(3089):Ae.disable(3089),at.scissor_enable=gn),Ps=ii[0],Ha=ii[1],Sn=ii[2],ao=ii[3],(Ps!==wi[0]||Ha!==wi[1]||Sn!==wi[2]||ao!==wi[3])&&(Ae.scissor(Ps,Ha,Sn,ao),wi[0]=Ps,wi[1]=Ha,wi[2]=Sn,wi[3]=ao)}en=this.viewport,Yr=en.x|0,oi=en.y|0,Bi="width"in en?en.width|0:ot.framebufferWidth-Yr,an="height"in en?en.height|0:ot.framebufferHeight-oi,rn=ot.viewportWidth,ot.viewportWidth=Bi,Fi=ot.viewportHeight,ot.viewportHeight=an,Ae.viewport(Yr,oi,Bi,an),Ft[0]=Yr,Ft[1]=oi,Ft[2]=Bi,Ft[3]=an,Ae.blendColor(0,0,0,1),Ie[0]=0,Ie[1]=0,Ie[2]=0,Ie[3]=1,Bt?Ae.enable(3042):Ae.disable(3042),at.blend_enable=Bt,Ae.blendFuncSeparate(770,771,773,1),fe[0]=770,fe[1]=771,fe[2]=773,fe[3]=1,Zt?Ae.enable(2929):Ae.disable(2929),at.depth_enable=Zt,Et?Ae.enable(2960):Ae.disable(2960),at.stencil_enable=Et,Ri=at.profile,Ri&&(xn=performance.now(),r.count+=Ei),Ae.useProgram(o.program),xi=Ht.angle_instanced_arrays;var Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn;for(lr.setVAO(null),Ba=this.charBuffer,Ko=!1,Qo=1,Wi=0,Sa=0,Qa=0,vn=0,da=null,la=0,vo=!1,As=5126,ps=0,co=0,mo=0,xe(Ba)?(Ko=!0,da=Qe.createStream(34962,Ba),As=da.dtype):(da=Qe.getBuffer(Ba),da?As=da.dtype:"constant"in Ba?(Qo=2,typeof Ba.constant=="number"?(Wi=Ba.constant,Sa=Qa=vn=0):(Wi=Ba.constant.length>0?Ba.constant[0]:0,Sa=Ba.constant.length>1?Ba.constant[1]:0,Qa=Ba.constant.length>2?Ba.constant[2]:0,vn=Ba.constant.length>3?Ba.constant[3]:0)):(xe(Ba.buffer)?da=Qe.createStream(34962,Ba.buffer):da=Qe.getBuffer(Ba.buffer),As="type"in Ba?Ur[Ba.type]:da.dtype,vo=!!Ba.normalized,la=Ba.size|0,ps=Ba.offset|0,co=Ba.stride|0,mo=Ba.divisor|0)),No=s.location,jn=Yt[No],Qo===1?(jn.buffer||Ae.enableVertexAttribArray(No),Go=la||1,(jn.type!==As||jn.size!==Go||jn.buffer!==da||jn.normalized!==vo||jn.offset!==ps||jn.stride!==co)&&(Ae.bindBuffer(34962,da.buffer),Ae.vertexAttribPointer(No,Go,As,vo,co,ps),jn.type=As,jn.size=Go,jn.buffer=da,jn.normalized=vo,jn.offset=ps,jn.stride=co),jn.divisor!==mo&&(xi.vertexAttribDivisorANGLE(No,mo),jn.divisor=mo)):(jn.buffer&&(Ae.disableVertexAttribArray(No),jn.buffer=null),(jn.x!==Wi||jn.y!==Sa||jn.z!==Qa||jn.w!==vn)&&(Ae.vertexAttrib4f(No,Wi,Sa,Qa,vn),jn.x=Wi,jn.y=Sa,jn.z=Qa,jn.w=vn)),Ys=this.sizeBuffer,Gr.buffer=Ys,qs=!1,Ns=1,Oa=0,ha=0,Vs=0,Ya=0,_n=null,Vn=0,wo=!1,Ra=5126,Xn=0,un=0,$n=0,xe(Gr)?(qs=!0,_n=Qe.createStream(34962,Gr),Ra=_n.dtype):(_n=Qe.getBuffer(Gr),_n?Ra=_n.dtype:"constant"in Gr?(Ns=2,typeof Gr.constant=="number"?(Oa=Gr.constant,ha=Vs=Ya=0):(Oa=Gr.constant.length>0?Gr.constant[0]:0,ha=Gr.constant.length>1?Gr.constant[1]:0,Vs=Gr.constant.length>2?Gr.constant[2]:0,Ya=Gr.constant.length>3?Gr.constant[3]:0)):(xe(Gr.buffer)?_n=Qe.createStream(34962,Gr.buffer):_n=Qe.getBuffer(Gr.buffer),Ra="type"in Gr?Ur[Gr.type]:_n.dtype,wo=!!Gr.normalized,Vn=Gr.size|0,Xn=Gr.offset|0,un=Gr.stride|0,$n=Gr.divisor|0)),Ka=u.location,qn=Yt[Ka],Ns===1?(qn.buffer||Ae.enableVertexAttribArray(Ka),Eo=Vn||1,(qn.type!==Ra||qn.size!==Eo||qn.buffer!==_n||qn.normalized!==wo||qn.offset!==Xn||qn.stride!==un)&&(Ae.bindBuffer(34962,_n.buffer),Ae.vertexAttribPointer(Ka,Eo,Ra,wo,un,Xn),qn.type=Ra,qn.size=Eo,qn.buffer=_n,qn.normalized=wo,qn.offset=Xn,qn.stride=un),qn.divisor!==$n&&(xi.vertexAttribDivisorANGLE(Ka,$n),qn.divisor=$n)):(qn.buffer&&(Ae.disableVertexAttribArray(Ka),qn.buffer=null),(qn.x!==Oa||qn.y!==ha||qn.z!==Vs||qn.w!==Ya)&&(Ae.vertexAttrib4f(Ka,Oa,ha,Vs,Ya),qn.x=Oa,qn.y=ha,qn.z=Vs,qn.w=Ya)),Ja=this.position,lo=!1,eo=1,sa=0,es=0,Na=0,tn=0,Pa=null,to=0,yo=!1,Jo=5126,Ao=0,Dn=0,_a=0,xe(Ja)?(lo=!0,Pa=Qe.createStream(34962,Ja),Jo=Pa.dtype):(Pa=Qe.getBuffer(Ja),Pa?Jo=Pa.dtype:"constant"in Ja?(eo=2,typeof Ja.constant=="number"?(sa=Ja.constant,es=Na=tn=0):(sa=Ja.constant.length>0?Ja.constant[0]:0,es=Ja.constant.length>1?Ja.constant[1]:0,Na=Ja.constant.length>2?Ja.constant[2]:0,tn=Ja.constant.length>3?Ja.constant[3]:0)):(xe(Ja.buffer)?Pa=Qe.createStream(34962,Ja.buffer):Pa=Qe.getBuffer(Ja.buffer),Jo="type"in Ja?Ur[Ja.type]:Pa.dtype,yo=!!Ja.normalized,to=Ja.size|0,Ao=Ja.offset|0,Dn=Ja.stride|0,_a=Ja.divisor|0)),Ws=l.location,Ca=Yt[Ws],eo===1?(Ca.buffer||Ae.enableVertexAttribArray(Ws),Es=to||2,(Ca.type!==Jo||Ca.size!==Es||Ca.buffer!==Pa||Ca.normalized!==yo||Ca.offset!==Ao||Ca.stride!==Dn)&&(Ae.bindBuffer(34962,Pa.buffer),Ae.vertexAttribPointer(Ws,Es,Jo,yo,Dn,Ao),Ca.type=Jo,Ca.size=Es,Ca.buffer=Pa,Ca.normalized=yo,Ca.offset=Ao,Ca.stride=Dn),Ca.divisor!==_a&&(xi.vertexAttribDivisorANGLE(Ws,_a),Ca.divisor=_a)):(Ca.buffer&&(Ae.disableVertexAttribArray(Ws),Ca.buffer=null),(Ca.x!==sa||Ca.y!==es||Ca.z!==Na||Ca.w!==tn)&&(Ae.vertexAttrib4f(Ws,sa,es,Na,tn),Ca.x=sa,Ca.y=es,Ca.z=Na,Ca.w=tn)),Ts=this.sizeBuffer,jr.buffer=Ts,Ho=!1,Wa=1,To=0,ts=0,Wo=0,qa=0,ln=null,Bo=0,ko=!1,oo=5126,za=0,ea=0,rs=0,xe(jr)?(Ho=!0,ln=Qe.createStream(34962,jr),oo=ln.dtype):(ln=Qe.getBuffer(jr),ln?oo=ln.dtype:"constant"in jr?(Wa=2,typeof jr.constant=="number"?(To=jr.constant,ts=Wo=qa=0):(To=jr.constant.length>0?jr.constant[0]:0,ts=jr.constant.length>1?jr.constant[1]:0,Wo=jr.constant.length>2?jr.constant[2]:0,qa=jr.constant.length>3?jr.constant[3]:0)):(xe(jr.buffer)?ln=Qe.createStream(34962,jr.buffer):ln=Qe.getBuffer(jr.buffer),oo="type"in jr?Ur[jr.type]:ln.dtype,ko=!!jr.normalized,Bo=jr.size|0,za=jr.offset|0,ea=jr.stride|0,rs=jr.divisor|0)),$s=f.location,us=Yt[$s],Wa===1?(us.buffer||Ae.enableVertexAttribArray($s),Ds=Bo||1,(us.type!==oo||us.size!==Ds||us.buffer!==ln||us.normalized!==ko||us.offset!==za||us.stride!==ea)&&(Ae.bindBuffer(34962,ln.buffer),Ae.vertexAttribPointer($s,Ds,oo,ko,ea,za),us.type=oo,us.size=Ds,us.buffer=ln,us.normalized=ko,us.offset=za,us.stride=ea),us.divisor!==rs&&(xi.vertexAttribDivisorANGLE($s,rs),us.divisor=rs)):(us.buffer&&(Ae.disableVertexAttribArray($s),us.buffer=null),(us.x!==To||us.y!==ts||us.z!==Wo||us.w!==qa)&&(Ae.vertexAttrib4f($s,To,ts,Wo,qa),us.x=To,us.y=ts,us.z=Wo,us.w=qa)),fl=this.scale,as=fl[0],Ma=fl[1],Ae.uniform2f(P.location,as,Ma),Qs=this.translate,ho=Qs[0],gs=Qs[1],Ae.uniform2f(A.location,ho,gs),Vo=this.viewportArray,Do=Vo[0],Lo=Vo[1],xs=Vo[2],ks=Vo[3],Ae.uniform4f(B.location,Do,Lo,xs,ks),Ea=Xe.elements,Ea?Ae.bindBuffer(34963,Ea.buffer.buffer):lr.currentVAO&&(Ea=rt.getElements(lr.currentVAO.elements),Ea&&Ae.bindBuffer(34963,Ea.buffer.buffer)),Jn=Xe.instances,Xr=0;Xr0?Ea?xi.drawElementsInstancedANGLE(0,Fr,Ea.type,yr<<(Ea.type-5121>>1),Jn):xi.drawArraysInstancedANGLE(0,yr,Fr,Jn):Jn<0&&(Ea?Ae.drawElements(0,Fr,Ea.type,yr<<(Ea.type-5121>>1)):Ae.drawArrays(0,yr,Fr)),bs.unbind())}Ko&&Qe.destroyStream(da),qs&&Qe.destroyStream(_n),lo&&Qe.destroyStream(Pa),Ho&&Qe.destroyStream(ln),at.dirty=!0,lr.setVAO(null),ot.viewportWidth=rn,ot.viewportHeight=Fi,Ri&&(r.cpuTime+=performance.now()-xn)}}}});var xK=Te((W_r,qNe)=>{"use strict";var BUt=A8(),OUt=T8(),qUt=S8(),NUt=M8(),UUt=E8(),VUt=k8(),GUt=C8(),HUt=L8(),WUt=P8(),jUt=z8();qNe.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":BUt,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:OUt,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":qUt,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:NUt,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:UUt,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":VUt,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:GUt,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:HUt,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":WUt,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":jUt}});var VNe=Te((j_r,UNe)=>{"use strict";var NNe=_K(),XUt=xK();Object.assign(NNe.reglPrecompiled,XUt);UNe.exports=NNe});var WNe=Te((X_r,HNe)=>{"use strict";var GNe=X8e();GNe.plot=VNe();HNe.exports=GNe});var bK=Te((Z_r,YNe)=>{"use strict";var ZUt=Xc(),ZNe=nc(),jNe=Hc().axisHoverFormat,YUt=Hu().hovertemplateAttrs,Ak=ik(),KUt=dd().idRegex,JUt=Pf().templatedArray,dS=Su().extendFlat,o1=ZUt.marker,$Ut=o1.line,QUt=dS(ZNe("marker.line",{editTypeOverride:"calc"}),{width:dS({},$Ut.width,{editType:"calc"}),editType:"calc"}),I8=dS(ZNe("marker"),{symbol:o1.symbol,angle:o1.angle,size:dS({},o1.size,{editType:"markerSize"}),sizeref:o1.sizeref,sizemin:o1.sizemin,sizemode:o1.sizemode,opacity:o1.opacity,colorbar:o1.colorbar,line:QUt,editType:"calc"});I8.color.editType=I8.cmin.editType=I8.cmax.editType="style";function XNe(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:KUt[e],editType:"plot"}}}YNe.exports={dimensions:JUt("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:dS({},Ak.text,{}),hovertext:dS({},Ak.hovertext,{}),hovertemplate:YUt(),xhoverformat:jNe("x"),yhoverformat:jNe("y"),marker:I8,xaxes:XNe("x"),yaxes:XNe("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:Ak.selected.marker,editType:"calc"},unselected:{marker:Ak.unselected.marker,editType:"calc"},opacity:Ak.opacity}});var R8=Te((Y_r,KNe)=>{"use strict";KNe.exports=function(e,t,r,n){n||(n=1/0);var i,a;for(i=0;i{"use strict";var wK=ei(),eVt=Jd(),JNe=bK(),tVt=lc(),rVt=$v(),iVt=R8(),nVt=OF().isOpenSymbol;$Ne.exports=function(t,r,n,i){function a(d,p){return wK.coerce(t,r,JNe,d,p)}var o=eVt(t,r,{name:"dimensions",handleItemDefaults:aVt}),s=a("diagonal.visible"),u=a("showupperhalf"),l=a("showlowerhalf"),f=iVt(r,o,"values");if(!f||!s&&!u&&!l){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),rVt(t,r,n,i,a,{noAngleRef:!0,noStandOff:!0});var c=nVt(r.marker.symbol),h=tVt.isBubble(r);a("marker.line.width",c||h?1:0),oVt(t,r,i,a),wK.coerceSelectionMarkerOpacity(r,a)};function aVt(e,t){function r(i,a){return wK.coerce(e,t,JNe.dimensions,i,a)}r("label");var n=r("values");n&&n.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}function oVt(e,t,r,n){var i=t.dimensions,a=i.length,o=t.showupperhalf,s=t.showlowerhalf,u=t.diagonal.visible,l,f,c=new Array(a),h=new Array(a);for(l=0;lf&&o||l{"use strict";var e7e=ei();t7e.exports=function(t,r){var n=t._fullLayout,i=r.uid,a=n._splomScenes;a||(a=n._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s={matrix:!1,selectBatch:[],unselectBatch:[]},u=a[r.uid];return u||(u=a[i]=e7e.extendFlat({},o,s),u.draw=function(){u.matrix&&u.matrix.draw&&(u.selectBatch.length||u.unselectBatch.length?u.matrix.draw(u.unselectBatch,u.selectBatch):u.matrix.draw()),u.dirty=!1},u.destroy=function(){u.matrix&&u.matrix.destroy&&u.matrix.destroy(),u.matrixOptions=null,u.selectBatch=null,u.unselectBatch=null,u=null}),u.dirty||e7e.extendFlat(u,o),u}});var a7e=Te(($_r,n7e)=>{"use strict";var AK=ei(),D8=$c(),sVt=B0().calcMarkerSize,lVt=B0().calcAxisExpansion,uVt=D0(),i7e=Y2().markerSelection,fVt=Y2().markerStyle,cVt=r7e(),hVt=nf().BADNUM,dVt=sx().TOO_MANY_POINTS;n7e.exports=function(t,r){var n=r.dimensions,i=r._length,a={},o=a.cdata=[],s=a.data=[],u=r._visibleDims=[],l,f,c,h,d;function p(E,T){for(var L=E.makeCalcdata({v:T.values,vcalendar:r.calendar},"v"),_=0;_dVt,v;for(b?v=a.sizeAvg||Math.max(a.size,3):v=sVt(r,i),f=0;f{(function(){var e,t,r,n,i,a;typeof performance!="undefined"&&performance!==null&&performance.now?Tk.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(Tk.exports=function(){return(e()-i)/1e6},t=process.hrtime,e=function(){var o;return o=t(),o[0]*1e9+o[1]},n=e(),a=process.uptime()*1e9,i=n-a):Date.now?(Tk.exports=function(){return Date.now()-r},r=Date.now()):(Tk.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(o7e)});var u7e=Te((Q_r,O8)=>{var pVt=s7e(),s1=window,F8=["moz","webkit"],vS="AnimationFrame",mS=s1["request"+vS],Sk=s1["cancel"+vS]||s1["cancelRequest"+vS];for(pS=0;!mS&&pS{f7e.exports=function(t,r){var n=typeof t=="number",i=typeof r=="number";n&&!i?(r=t,t=0):!n&&!i&&(t=0,r=0),t=t|0,r=r|0;var a=r-t;if(a<0)throw new Error("array length must be positive");for(var o=new Array(a),s=0,u=t;s{"use strict";var vVt=gY(),mVt=Xy(),yVt=W2(),h7e=u7e(),gVt=c7e(),SK=eS(),_Vt=j2();p7e.exports=vx;function vx(e,t){if(!(this instanceof vx))return new vx(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=vVt(e),this.canvas=this.scatter.canvas}vx.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=h7e(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,h7e(()=>{this.dirty=!1})),this)};vx.prototype.update=function(...e){if(!e.length)return;for(let n=0;nb||!i.lower&&x{t[a+s]=n})}this.scatter.draw(...t)}return this};vx.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function xVt(e,t,r){let n=e.id!=null?e.id:e,i=t,a=r;return n<<16|(i&255)<<8|a&255}function q8(e,t,r){let n,i,a,o,s,u,l,f,c=e[t],h=e[r];return c.length>2?(n=c[0],a=c[2],i=c[1],o=c[3]):c.length?(n=i=c[0],a=o=c[1]):(n=c.x,i=c.y,a=c.x+c.width,o=c.y+c.height),h.length>2?(s=h[0],l=h[2],u=h[1],f=h[3]):h.length?(s=u=h[0],l=f=h[1]):(s=h.x,u=h.y,l=h.x+h.width,f=h.y+h.height),[s,i,l,o]}function d7e(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let t=SK(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}}});var y7e=Te((rxr,m7e)=>{"use strict";var bVt=v7e(),MK=ei(),N8=$c(),wVt=Sm().selectMode;m7e.exports=function(t,r,n){if(n.length)for(var i=0;i-1,A=wVt(f)||!!i.selectedpoints||P,B=!0;if(A){var F=i._length;if(i.selectedpoints){o.selectBatch=i.selectedpoints;var U=i.selectedpoints,G={};for(d=0;d{"use strict";g7e.getDimIndex=function(t,r){for(var n=r._id,i=n.charAt(0),a={x:0,y:1}[i],o=t._visibleDims,s=0;s{"use strict";var _7e=EK(),TVt=BF().calcHover,x7e=wu().getFromId,SVt=Su().extendFlat;function MVt(e,t,r,n,i){i||(i={});var a=(n||"").charAt(0)==="x",o=(n||"").charAt(0)==="y",s=b7e(e,t,r);if((a||o)&&i.hoversubplots==="axis"&&s[0])for(var u=(a?e.xa:e.ya)._subplotsWith,l=i.gd,f=SVt({},e),c=0;c{"use strict";var E7e=ei(),T7e=E7e.pushUnique,S7e=lc(),M7e=EK();k7e.exports=function(t,r){var n=t.cd,i=n[0].trace,a=n[0].t,o=t.scene,s=o.matrixOptions.cdata,u=t.xaxis,l=t.yaxis,f=[];if(!o)return f;var c=!S7e.hasMarkers(i)&&!S7e.hasText(i);if(i.visible!==!0||c)return f;var h=M7e.getDimIndex(i,u),d=M7e.getDimIndex(i,l);if(h===!1||d===!1)return f;var p=a.xpx[h],x=a.ypx[d],b=s[h],v=s[d],k=(t.scene.selectBatch||[]).slice(),E=[];if(r!==!1&&!r.degenerate)for(var T=0;T{"use strict";var L7e=ei(),EVt=D0(),kVt=Y2().markerStyle;P7e.exports=function(t,r){var n=r.trace,i=t._fullLayout._splomScenes[n.uid];if(i){EVt(t,n),L7e.extendFlat(i.matrixOptions,kVt(t,n));var a=L7e.extendFlat({},i.matrixOptions,i.viewOpts);i.matrix.update(a,null)}}});var R7e=Te((sxr,I7e)=>{"use strict";var CVt=$l(),LVt=gV();I7e.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:bK(),supplyDefaults:QNe(),colorbar:ep(),calc:a7e(),plot:y7e(),hoverPoints:A7e().hoverPoints,selectPoints:C7e(),editStyle:z7e(),meta:{}};CVt.register(LVt)});var N7e=Te((lxr,q7e)=>{"use strict";var PVt=YY(),zVt=$l(),IVt=w8(),RVt=Rd().getModuleCalcData,mx=Ah(),D7e=$c().getFromId,F7e=wu().shouldShowZeroLine,B7e="splom",O7e={};function DVt(e){var t=e._fullLayout,r=zVt.getModule(B7e),n=RVt(e.calcdata,r)[0],i=IVt(e,["ANGLE_instanced_arrays","OES_element_index_uint"],O7e);i&&(t._hasOnlyLargeSploms&&kK(e),r.plot(e,{},n))}function FVt(e){var t=e.calcdata,r=e._fullLayout;r._hasOnlyLargeSploms&&kK(e);for(var n=0;n{"use strict";var NVt=A8(),UVt=T8(),VVt=S8(),GVt=C8(),HVt=L8(),WVt=M8(),jVt=E8(),XVt=k8(),ZVt=P8(),YVt=z8();U7e.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":NVt,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:UVt,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":VVt,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:GVt,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:HVt,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:WVt,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:jVt,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":XVt,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":ZVt,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":YVt}});var W7e=Te((fxr,H7e)=>{"use strict";var G7e=N7e(),KVt=V7e();Object.assign(G7e.reglPrecompiled,KVt);H7e.exports=G7e});var Z7e=Te((cxr,X7e)=>{"use strict";var j7e=R7e();j7e.basePlotModule=W7e(),X7e.exports=j7e});var PK=Te((hxr,Y7e)=>{"use strict";var JVt=nc(),CK=Dd(),LK=gc(),$Vt=zc().attributes,U8=Su().extendFlat,QVt=Pf().templatedArray;Y7e.exports={domain:$Vt({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:LK({editType:"plot"}),tickfont:LK({autoShadowDflt:!0,editType:"plot"}),rangefont:LK({editType:"plot"}),dimensions:QVt("dimension",{label:{valType:"string",editType:"plot"},tickvals:U8({},CK.tickvals,{editType:"plot"}),ticktext:U8({},CK.ticktext,{editType:"plot"}),tickformat:U8({},CK.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:U8({editType:"calc"},JVt("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}});var Mk=Te((dxr,K7e)=>{"use strict";K7e.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:["contextLineLayer","focusLineLayer","pickLineLayer"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},id:{filterBarPattern:"filter-bar-pattern"}}});var Ky=Te((pxr,$7e)=>{"use strict";var eGt=qM();function J7e(e){return[e]}$7e.exports={keyFun:function(e){return e.key},repeat:J7e,descend:eGt,wrap:J7e,unwrap:function(e){return e[0]}}});var RK=Te((vxr,uUe)=>{"use strict";var Eh=Mk(),ey=Jl(),tGt=Ky().keyFun,V8=Ky().repeat,yS=ei().sorterAsc,rGt=ei().strTranslate,Q7e=Eh.bar.snapRatio;function eUe(e,t){return e*(1-Q7e)+t*Q7e}var tUe=Eh.bar.snapClose;function iGt(e,t){return e*(1-tUe)+t*tUe}function H8(e,t,r,n){if(nGt(r,n))return r;var i=e?-1:1,a=0,o=t.length-1;if(i<0){var s=a;a=o,o=s}for(var u=t[a],l=u,f=a;i*f=t[r][0]&&e<=t[r][1])return!0;return!1}function aGt(e){e.attr("x",-Eh.bar.captureWidth/2).attr("width",Eh.bar.captureWidth)}function oGt(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function sGt(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t=rUe(e.brush.filter.getConsolidated(),e.height),r=[0],n,i,a,o=t.length?t[0][0]:null,s=0;se[1]+r||t=.9*e[1]+.1*e[0]?"n":t<=.9*e[0]+.1*e[1]?"s":"ns"}function iUe(){ey.select(document.body).style("cursor",null)}function IK(e){e.attr("stroke-dasharray",sGt)}function G8(e,t){var r=ey.select(e).selectAll(".highlight, .highlight-shadow"),n=t?r.transition().duration(Eh.bar.snapDuration).each("end",t):r;IK(n)}function nUe(e,t){var r=e.brush,n=r.filterSpecified,i=NaN,a={},o;if(n){var s=e.height,u=r.filter.getConsolidated(),l=rUe(u,s),f=NaN,c=NaN,h=NaN;for(o=0;o<=l.length;o++){var d=l[o];if(d&&d[0]<=t&&t<=d[1]){f=o;break}else if(c=o?o-1:NaN,d&&d[0]>t){h=o;break}}if(i=f,isNaN(i)&&(isNaN(c)||isNaN(h)?i=isNaN(c)?h:c:i=t-l[c][1]=k[0]&&v<=k[1]){a.clickableOrdinalRange=k;break}}}return a}function uGt(e,t){ey.event.sourceEvent.stopPropagation();var r=t.height-ey.mouse(e)[1]-2*Eh.verticalPadding,n=t.unitToPaddedPx.invert(r),i=t.brush,a=nUe(t,r),o=a.interval,s=i.svgBrush;if(s.wasDragged=!1,s.grabbingBar=a.region==="ns",s.grabbingBar){var u=o.map(t.unitToPaddedPx);s.grabPoint=r-u[0]-Eh.verticalPadding,s.barLength=u[1]-u[0]}s.clickableOrdinalRange=a.clickableOrdinalRange,s.stayingIntervals=t.multiselect&&i.filterSpecified?i.filter.getConsolidated():[],o&&(s.stayingIntervals=s.stayingIntervals.filter(function(l){return l[0]!==o[0]&&l[1]!==o[1]})),s.startExtent=a.region?o[a.region==="s"?1:0]:n,t.parent.inBrushDrag=!0,s.brushStartCallback()}function aUe(e,t){ey.event.sourceEvent.stopPropagation();var r=t.height-ey.mouse(e)[1]-2*Eh.verticalPadding,n=t.brush.svgBrush;n.wasDragged=!0,n._dragging=!0,n.grabbingBar?n.newExtent=[r-n.grabPoint,r+n.barLength-n.grabPoint].map(t.unitToPaddedPx.invert):n.newExtent=[n.startExtent,t.unitToPaddedPx.invert(r)].sort(yS),t.brush.filterSpecified=!0,n.extent=n.stayingIntervals.concat([n.newExtent]),n.brushCallback(t),G8(e.parentNode)}function fGt(e,t){var r=t.brush,n=r.filter,i=r.svgBrush;i._dragging||(oUe(e,t),aUe(e,t),t.brush.svgBrush.wasDragged=!1),i._dragging=!1;var a=ey.event;a.sourceEvent.stopPropagation();var o=i.grabbingBar;if(i.grabbingBar=!1,i.grabLocation=void 0,t.parent.inBrushDrag=!1,iUe(),!i.wasDragged){i.wasDragged=void 0,i.clickableOrdinalRange?r.filterSpecified&&t.multiselect?i.extent.push(i.clickableOrdinalRange):(i.extent=[i.clickableOrdinalRange],r.filterSpecified=!0):o?(i.extent=i.stayingIntervals,i.extent.length===0&&zK(r)):zK(r),i.brushCallback(t),G8(e.parentNode),i.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);return}var s=function(){n.set(n.getConsolidated())};if(t.ordinal){var u=t.unitTickvals;u[u.length-1]i.newExtent[0];i.extent=i.stayingIntervals.concat(l?[i.newExtent]:[]),i.extent.length||zK(r),i.brushCallback(t),l?G8(e.parentNode,s):(s(),G8(e.parentNode))}else s();i.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}function oUe(e,t){var r=t.height-ey.mouse(e)[1]-2*Eh.verticalPadding,n=nUe(t,r),i="crosshair";n.clickableOrdinalRange?i="pointer":n.region&&(i=n.region+"-resize"),ey.select(document.body).style("cursor",i)}function cGt(e){e.on("mousemove",function(t){ey.event.preventDefault(),t.parent.inBrushDrag||oUe(this,t)}).on("mouseleave",function(t){t.parent.inBrushDrag||iUe()}).call(ey.behavior.drag().on("dragstart",function(t){uGt(this,t)}).on("drag",function(t){aUe(this,t)}).on("dragend",function(t){fGt(this,t)}))}function sUe(e,t){return e[0]-t[0]}function hGt(e,t,r){var n=r._context.staticPlot,i=e.selectAll(".background").data(V8);i.enter().append("rect").classed("background",!0).call(aGt).call(oGt).style("pointer-events",n?"none":"auto").attr("transform",rGt(0,Eh.verticalPadding)),i.call(cGt).attr("height",function(s){return s.height-Eh.verticalPadding});var a=e.selectAll(".highlight-shadow").data(V8);a.enter().append("line").classed("highlight-shadow",!0).attr("x",-Eh.bar.width/2).attr("stroke-width",Eh.bar.width+Eh.bar.strokeWidth).attr("stroke",t).attr("opacity",Eh.bar.strokeOpacity).attr("stroke-linecap","butt"),a.attr("y1",function(s){return s.height}).call(IK);var o=e.selectAll(".highlight").data(V8);o.enter().append("line").classed("highlight",!0).attr("x",-Eh.bar.width/2).attr("stroke-width",Eh.bar.width-Eh.bar.strokeWidth).attr("stroke",Eh.bar.fillColor).attr("opacity",Eh.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(s){return s.height}).call(IK)}function dGt(e,t,r){var n=e.selectAll("."+Eh.cn.axisBrush).data(V8,tGt);n.enter().append("g").classed(Eh.cn.axisBrush,!0),hGt(n,t,r)}function pGt(e){return e.svgBrush.extent.map(function(t){return t.slice()})}function zK(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function vGt(e){return function(r){var n=r.brush,i=pGt(n),a=i.slice();n.filter.set(a),e()}}function lUe(e){for(var t=e.slice(),r=[],n,i=t.shift();i;){for(n=i.slice();(i=t.shift())&&i[0]<=n[1];)n[1]=Math.max(n[1],i[1]);r.push(n)}return r.length===1&&r[0][0]>r[0][1]&&(r=[]),r}function mGt(){var e=[],t,r;return{set:function(n){e=n.map(function(i){return i.slice().sort(yS)}).sort(sUe),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),t=lUe(e),r=e.reduce(function(i,a){return[Math.min(i[0],a[0]),Math.max(i[1],a[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return t},getBounds:function(){return r}}}function yGt(e,t,r,n,i,a){var o=mGt();return o.set(r),{filter:o,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:n,brushCallback:vGt(i),brushEndCallback:a}}}function gGt(e,t){if(Array.isArray(e[0])?(e=e.map(function(n){return n.sort(yS)}),t.multiselect?e=lUe(e.sort(sUe)):e=[e[0]]):e=[e.sort(yS)],t.tickvals){var r=t.tickvals.slice().sort(yS);if(e=e.map(function(n){var i=[H8(0,r,n[0],[]),H8(1,r,n[1],[])];if(i[1]>i[0])return i}).filter(function(n){return n}),!e.length)return}return e.length>1?e:e[0]}uUe.exports={makeBrush:yGt,ensureAxisBrush:dGt,cleanRanges:gGt}});var hUe=Te((mxr,cUe)=>{"use strict";var yx=ei(),_Gt=Rp().hasColorscale,xGt=ed(),bGt=zc().defaults,wGt=Jd(),AGt=wu(),fUe=PK(),TGt=RK(),DK=Mk().maxDimensionCount,SGt=R8();function MGt(e,t,r,n,i){var a=i("line.color",r);if(_Gt(e,"line")&&yx.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),xGt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function EGt(e,t,r,n){function i(l,f){return yx.coerce(e,t,fUe.dimensions,l,f)}var a=i("values"),o=i("visible");if(a&&a.length||(o=t.visible=!1),o){i("label"),i("tickvals"),i("ticktext"),i("tickformat");var s=i("range");t._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:s},AGt.setConvert(t._ax,n.layout),i("multiselect");var u=i("constraintrange");u&&(t.constraintrange=TGt.cleanRanges(u,t))}}cUe.exports=function(t,r,n,i){function a(f,c){return yx.coerce(t,r,fUe,f,c)}var o=t.dimensions;Array.isArray(o)&&o.length>DK&&(yx.log("parcoords traces support up to "+DK+" dimensions at the moment"),o.splice(DK));var s=wGt(t,r,{name:"dimensions",layout:i,handleItemDefaults:EGt}),u=MGt(t,r,n,i,a);bGt(r,i,a),(!Array.isArray(s)||!s.length)&&(r.visible=!1),SGt(r,s,"values",u);var l=yx.extendFlat({},i.font,{size:Math.round(i.font.size/1.2)});yx.coerceFont(a,"labelfont",l),yx.coerceFont(a,"tickfont",l,{autoShadowDflt:!0}),yx.coerceFont(a,"rangefont",l),a("labelangle"),a("labelside"),a("unselected.line.color"),a("unselected.line.opacity")}});var pUe=Te((yxr,dUe)=>{"use strict";var kGt=ei().isArrayOrTypedArray,FK=_c(),CGt=Ky().wrap;dUe.exports=function(t,r){var n,i;return FK.hasColorscale(r,"line")&&kGt(r.line.color)?(n=r.line.color,i=FK.extractOpts(r.line).colorscale,FK.calc(t,r,{vals:n,containerStr:"line",cLetter:"c"})):(n=LGt(r._length),i=[[0,r.line.color],[1,r.line.color]]),CGt({lineColor:n,cscale:i})};function LGt(e){for(var t=new Array(e),r=0;r>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),BK.default[e])r=BK.default[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(e[0]==="#"){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var u=t[1];i=u.replace(/a$/,"");var l=i==="cmyk"?4:i==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/),i==="color"&&(i=r.shift()),r=r.map(function(h,d){if(h[h.length-1]==="%")return h=parseFloat(h)/100,d===3?h:i==="rgb"?h*255:i[0]==="h"||i[0]==="l"&&!d?h*100:i==="lab"?h*125:i==="lch"?d<2?h*150:h*360:i[0]==="o"&&!d?h:i==="oklab"?h*.4:i==="oklch"?d<2?h*.4:h*360:h;if(i[d]==="h"||d===2&&i[i.length-1]==="h"){if(vUe[h]!==void 0)return vUe[h];if(h.endsWith("deg"))return parseFloat(h);if(h.endsWith("turn"))return parseFloat(h)*360;if(h.endsWith("grad"))return parseFloat(h)*360/400;if(h.endsWith("rad"))return parseFloat(h)*180/Math.PI}return h==="none"?0:parseFloat(h)}),n=r.length>l?r.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(h){return parseFloat(h)}),i=((c=(f=e.match(/([a-z])/ig))==null?void 0:f.join(""))==null?void 0:c.toLowerCase())||"rgb");return{space:i,values:r,alpha:n}}var BK,mUe,vUe,yUe=Xf(()=>{BK=Ptt(bX(),1),mUe=PGt,vUe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var Ek,OK=Xf(()=>{Ek={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var W8,gUe=Xf(()=>{OK();W8={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,u,l=0;if(r===0)return u=n*255,[u,u,u];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];l<3;)o=t+1/3*-(l-1),o<0?o++:o>1&&o--,u=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[l++]=u*255;return s}};Ek.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s,u,l;return a===i?s=0:t===a?s=(r-n)/o:r===a?s=2+(n-t)/o:n===a&&(s=4+(t-r)/o),s=Math.min(s*60,360),s<0&&(s+=360),l=(i+a)/2,a===i?u=0:l<=.5?u=o/(a+i):u=o/(2-a-i),[s,u*100,l*100]}});var xUe={};xee(xUe,{default:()=>_Ue});function _Ue(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var t,r,n,i=mUe(e);if(!i.space)return[];let a=i.space[0]==="h"?W8.min:Ek.min,o=i.space[0]==="h"?W8.max:Ek.max;return t=Array(3),t[0]=Math.min(Math.max(i.values[0],a[0]),o[0]),t[1]=Math.min(Math.max(i.values[1],a[1]),o[1]),t[2]=Math.min(Math.max(i.values[2],a[2]),o[2]),i.space[0]==="h"&&(t=W8.rgb(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t}var bUe=Xf(()=>{yUe();OK();gUe()});var qK=Te(j8=>{"use strict";var zGt=ei().isTypedArray;j8.convertTypedArray=function(e){return zGt(e)?Array.prototype.slice.call(e):e};j8.isOrdinal=function(e){return!!e.tickvals};j8.isVisible=function(e){return e.visible||!("visible"in e)}});var PUe=Te((Mxr,LUe)=>{"use strict";var IGt=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` -`),RGt=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` -`),kk=Mk().maxDimensionCount,EUe=ei(),wUe=1e-6,X8=2048,DGt=new Uint8Array(4),AUe=new Uint8Array(4),TUe={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function FGt(e){e.read({x:0,y:0,width:1,height:1,data:DGt})}function kUe(e,t,r,n,i){var a=e._gl;a.enable(a.SCISSOR_TEST),a.scissor(t,r,n,i),e.clear({color:[0,0,0,0],depth:1})}function BGt(e,t,r,n,i,a){var o=a.key;function s(u){var l=Math.min(n,i-u*n);u===0&&(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],kUe(e,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),!r.clearOnly&&(a.count=2*l,a.offset=2*u*n,t(a),u*n+l>>8*t)%256/255}function NGt(e,t,r){for(var n=new Array(e*(kk+4)),i=0,a=0;aj&&(j=S[B].dim1.canvasX,U=B);A===0&&kUe(i,0,0,l.canvasWidth,l.canvasHeight);var H=E(r);for(B=0;B{"use strict";var Ud=Jl(),l1=ei(),UK=l1.isArrayOrTypedArray,BUe=l1.numberFormat,OUe=(bUe(),q1(xUe)).default,qUe=wu(),WGt=l1.strRotate,Jy=l1.strTranslate,jGt=Zf(),Z8=Mu(),zUe=_c(),HK=Ky(),tm=HK.keyFun,$y=HK.repeat,NUe=HK.unwrap,gS=qK(),qf=Mk(),UUe=RK(),XGt=PUe();function IUe(e,t,r){return l1.aggNums(e,null,t,r)}function VUe(e,t){return WK(IUe(Math.min,e,t),IUe(Math.max,e,t))}function Y8(e){var t=e.range;return t?WK(t[0],t[1]):VUe(e.values,e._length)}function WK(e,t){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(t)||!isFinite(t))&&(t=0),e===t&&(e===0?(e-=1,t+=1):(e*=.9,t*=1.1)),[e,t]}function ZGt(e,t){return t?function(r,n){var i=t[n];return i==null?e(r):i}:e}function YGt(e,t,r,n,i){var a=Y8(r);return n?Ud.scale.ordinal().domain(n.map(ZGt(BUe(r.tickformat),i))).range(n.map(function(o){var s=(o-a[0])/(a[1]-a[0]);return e-t+s*(2*t-e)})):Ud.scale.linear().domain(a).range([e-t,t])}function KGt(e,t){return Ud.scale.linear().range([t,e-t])}function JGt(e,t){return Ud.scale.linear().domain(Y8(e)).range([t,1-t])}function $Gt(e){if(e.tickvals){var t=Y8(e);return Ud.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(r){return(r-t[0])/(t[1]-t[0])}))}}function QGt(e){var t=e.map(function(a){return a[0]}),r=e.map(function(a){var o=OUe(a[1]);return Ud.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),n=function(a){return function(o){return o[a]}},i="rgb".split("").map(function(a){return Ud.scale.linear().clamp(!0).domain(t).range(r.map(n(a)))});return function(a){return i.map(function(o){return o(a)})}}function GK(e){return e.dimensions.some(function(t){return t.brush.filterSpecified})}function eHt(e,t,r){var n=NUe(t),i=n.trace,a=gS.convertTypedArray(n.lineColor),o=i.line,s={color:OUe(i.unselected.line.color),opacity:i.unselected.line.opacity},u=zUe.extractOpts(o),l=u.reversescale?zUe.flipScale(n.cscale):n.cscale,f=i.domain,c=i.dimensions,h=e.width,d=i.labelangle,p=i.labelside,x=i.labelfont,b=i.tickfont,v=i.rangefont,k=l1.extendDeepNoArrays({},o,{color:a.map(Ud.scale.linear().domain(Y8({values:a,range:[u.min,u.max],_length:i._length}))),blockLineCount:qf.blockLineCount,canvasOverdrag:qf.overdrag*qf.canvasPixelRatio}),E=Math.floor(h*(f.x[1]-f.x[0])),T=Math.floor(e.height*(f.y[1]-f.y[0])),L=e.margin||{l:80,r:80,t:100,b:80},_=E,C=T;return{key:r,colCount:c.filter(gS.isVisible).length,dimensions:c,tickDistance:qf.tickDistance,unitToColor:QGt(l),lines:k,deselectedLines:s,labelAngle:d,labelSide:p,labelFont:x,tickFont:b,rangeFont:v,layoutWidth:h,layoutHeight:e.height,domain:f,translateX:f.x[0]*h,translateY:e.height-f.y[1]*e.height,pad:L,canvasWidth:_*qf.canvasPixelRatio+2*k.canvasOverdrag,canvasHeight:C*qf.canvasPixelRatio,width:_,height:C,canvasPixelRatio:qf.canvasPixelRatio}}function tHt(e,t,r){var n=r.width,i=r.height,a=r.dimensions,o=r.canvasPixelRatio,s=function(h){return n*h/Math.max(1,r.colCount-1)},u=qf.verticalPadding/i,l=KGt(i,qf.verticalPadding),f={key:r.key,xScale:s,model:r,inBrushDrag:!1},c={};return f.dimensions=a.filter(gS.isVisible).map(function(h,d){var p=JGt(h,u),x=c[h.label];c[h.label]=(x||0)+1;var b=h.label+(x?"__"+x:""),v=h.constraintrange,k=v&&v.length;k&&!UK(v[0])&&(v=[v]);var E=k?v.map(function(F){return F.map(p)}):[[-1/0,1/0]],T=function(){var F=f;F.focusLayer&&F.focusLayer.render(F.panels,!0);var U=GK(F);!e.contextShown()&&U?(F.contextLayer&&F.contextLayer.render(F.panels,!0),e.contextShown(!0)):e.contextShown()&&!U&&(F.contextLayer&&F.contextLayer.render(F.panels,!0,!0),e.contextShown(!1))},L=h.values;L.length>h._length&&(L=L.slice(0,h._length));var _=h.tickvals,C;function S(F,U){return{val:F,text:C[U]}}function m(F,U){return F.val-U.val}if(UK(_)&&_.length){l1.isTypedArray(_)&&(_=Array.from(_)),C=h.ticktext,!UK(C)||!C.length?C=_.map(BUe(h.tickformat)):C.length>_.length?C=C.slice(0,_.length):_.length>C.length&&(_=_.slice(0,C.length));for(var P=1;P<_.length;P++)if(_[P]<_[P-1]){for(var A=_.map(S).sort(m),B=0;B<_.length;B++)_[B]=A[B].val,C[B]=A[B].text;break}}else _=void 0;return L=gS.convertTypedArray(L),{key:b,label:h.label,tickFormat:h.tickformat,tickvals:_,ticktext:C,ordinal:gS.isOrdinal(h),multiselect:h.multiselect,xIndex:d,crossfilterDimensionIndex:d,visibleIndex:h._index,height:i,values:L,paddedUnitValues:L.map(p),unitTickvals:_&&_.map(p),xScale:s,x:s(d),canvasX:s(d)*o,unitToPaddedPx:l,domainScale:YGt(i,qf.verticalPadding,h,_,C),ordinalScale:$Gt(h),parent:f,model:r,brush:UUe.makeBrush(e,k,E,function(){e.linePickActive(!1)},T,function(F){if(f.focusLayer.render(f.panels,!0),f.pickLayer&&f.pickLayer.render(f.panels,!0),e.linePickActive(!0),t&&t.filterChanged){var U=p.invert,G=F.map(function(j){return j.map(U).sort(l1.sorterAsc)}).sort(function(j,H){return j[0]-H[0]});t.filterChanged(f.key,h._index,G)}})}}),f}function RUe(e){e.classed(qf.cn.axisExtentText,!0).attr("text-anchor","middle").style("cursor","default")}function rHt(){var e=!0,t=!1;return{linePickActive:function(r){return arguments.length?e=!!r:e},contextShown:function(r){return arguments.length?t=!!r:t}}}function DUe(e,t){var r=t==="top"?1:-1,n=e*Math.PI/180,i=Math.sin(n),a=Math.cos(n);return{dir:r,dx:i,dy:a,degrees:e}}function VK(e,t,r){for(var n=t.panels||(t.panels=[]),i=e.data(),a=0;a=U||N>=G)return;var W=B.lineLayer.readPixel(H,G-1-N),re=W[3]!==0,ae=re?W[2]+256*(W[1]+256*W[0]):null,be={x:H,y:N,clientX:F.clientX,clientY:F.clientY,dataIndex:B.model.key,curveNumber:ae};ae!==p&&(re?i.hover(be):i.unhover&&i.unhover(be),p=ae)}}),d.style("opacity",function(B){return B.pick?0:1}),s.style("background","rgba(255, 255, 255, 0)");var b=s.selectAll("."+qf.cn.parcoords).data(h,tm);b.exit().remove(),b.enter().append("g").classed(qf.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),b.attr("transform",function(B){return Jy(B.model.translateX,B.model.translateY)});var v=b.selectAll("."+qf.cn.parcoordsControlView).data($y,tm);v.enter().append("g").classed(qf.cn.parcoordsControlView,!0),v.attr("transform",function(B){return Jy(B.model.pad.l,B.model.pad.t)});var k=v.selectAll("."+qf.cn.yAxis).data(function(B){return B.dimensions},tm);k.enter().append("g").classed(qf.cn.yAxis,!0),v.each(function(B){VK(k,B,l)}),d.each(function(B){if(B.viewModel){!B.lineLayer||i?B.lineLayer=XGt(this,B):B.lineLayer.update(B),(B.key||B.key===0)&&(B.viewModel[B.key]=B.lineLayer);var F=!B.context||i;B.lineLayer.render(B.viewModel.panels,F)}}),k.attr("transform",function(B){return Jy(B.xScale(B.xIndex),0)}),k.call(Ud.behavior.drag().origin(function(B){return B}).on("drag",function(B){var F=B.parent;c.linePickActive(!1),B.x=Math.max(-qf.overdrag,Math.min(B.model.width+qf.overdrag,Ud.event.x)),B.canvasX=B.x*B.model.canvasPixelRatio,k.sort(function(U,G){return U.x-G.x}).each(function(U,G){U.xIndex=G,U.x=B===U?U.x:U.xScale(U.xIndex),U.canvasX=U.x*U.model.canvasPixelRatio}),VK(k,F,l),k.filter(function(U){return Math.abs(B.xIndex-U.xIndex)!==0}).attr("transform",function(U){return Jy(U.xScale(U.xIndex),0)}),Ud.select(this).attr("transform",Jy(B.x,0)),k.each(function(U,G,j){j===B.parent.key&&(F.dimensions[G]=U)}),F.contextLayer&&F.contextLayer.render(F.panels,!1,!GK(F)),F.focusLayer.render&&F.focusLayer.render(F.panels)}).on("dragend",function(B){var F=B.parent;B.x=B.xScale(B.xIndex),B.canvasX=B.x*B.model.canvasPixelRatio,VK(k,F,l),Ud.select(this).attr("transform",function(U){return Jy(U.x,0)}),F.contextLayer&&F.contextLayer.render(F.panels,!1,!GK(F)),F.focusLayer&&F.focusLayer.render(F.panels),F.pickLayer&&F.pickLayer.render(F.panels,!0),c.linePickActive(!0),i&&i.axesMoved&&i.axesMoved(F.key,F.dimensions.map(function(U){return U.crossfilterDimensionIndex}))})),k.exit().remove();var E=k.selectAll("."+qf.cn.axisOverlays).data($y,tm);E.enter().append("g").classed(qf.cn.axisOverlays,!0),E.selectAll("."+qf.cn.axis).remove();var T=E.selectAll("."+qf.cn.axis).data($y,tm);T.enter().append("g").classed(qf.cn.axis,!0),T.each(function(B){var F=B.model.height/B.model.tickDistance,U=B.domainScale,G=U.domain();Ud.select(this).call(Ud.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(F,B.tickFormat).tickValues(B.ordinal?G:null).tickFormat(function(j){return gS.isOrdinal(B)?j:GUe(B.model.dimensions[B.visibleIndex],j)}).scale(U)),Z8.font(T.selectAll("text"),B.model.tickFont)}),T.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),T.selectAll("text").style("cursor","default");var L=E.selectAll("."+qf.cn.axisHeading).data($y,tm);L.enter().append("g").classed(qf.cn.axisHeading,!0);var _=L.selectAll("."+qf.cn.axisTitle).data($y,tm);_.enter().append("text").classed(qf.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",a?"none":"auto"),_.text(function(B){return B.label}).each(function(B){var F=Ud.select(this);Z8.font(F,B.model.labelFont),jGt.convertToTspans(F,t)}).attr("transform",function(B){var F=DUe(B.model.labelAngle,B.model.labelSide),U=qf.axisTitleOffset;return(F.dir>0?"":Jy(0,2*U+B.model.height))+WGt(F.degrees)+Jy(-U*F.dx,-U*F.dy)}).attr("text-anchor",function(B){var F=DUe(B.model.labelAngle,B.model.labelSide),U=Math.abs(F.dx),G=Math.abs(F.dy);return 2*U>G?F.dir*F.dx<0?"start":"end":"middle"});var C=E.selectAll("."+qf.cn.axisExtent).data($y,tm);C.enter().append("g").classed(qf.cn.axisExtent,!0);var S=C.selectAll("."+qf.cn.axisExtentTop).data($y,tm);S.enter().append("g").classed(qf.cn.axisExtentTop,!0),S.attr("transform",Jy(0,-qf.axisExtentOffset));var m=S.selectAll("."+qf.cn.axisExtentTopText).data($y,tm);m.enter().append("text").classed(qf.cn.axisExtentTopText,!0).call(RUe),m.text(function(B){return FUe(B,!0)}).each(function(B){Z8.font(Ud.select(this),B.model.rangeFont)});var P=C.selectAll("."+qf.cn.axisExtentBottom).data($y,tm);P.enter().append("g").classed(qf.cn.axisExtentBottom,!0),P.attr("transform",function(B){return Jy(0,B.model.height+qf.axisExtentOffset)});var A=P.selectAll("."+qf.cn.axisExtentBottomText).data($y,tm);A.enter().append("text").classed(qf.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(RUe),A.text(function(B){return FUe(B,!1)}).each(function(B){Z8.font(Ud.select(this),B.model.rangeFont)}),UUe.ensureAxisBrush(E,f,t)}});var XK=Te((jK,YUe)=>{"use strict";var nHt=WUe(),aHt=w8(),jUe=qK().isVisible,ZUe={};function XUe(e,t,r){var n=t.indexOf(r),i=e.indexOf(n);return i===-1&&(i+=t.length),i}function oHt(e,t){return function(n,i){return XUe(e,t,n)-XUe(e,t,i)}}var jK=YUe.exports=function(t,r){var n=t._fullLayout,i=aHt(t,[],ZUe);if(i){var a={},o={},s={},u={},l=n._size;r.forEach(function(p,x){var b=p[0].trace;s[x]=b.index;var v=u[x]=b.index;a[x]=t.data[v].dimensions,o[x]=t.data[v].dimensions.slice()});var f=function(p,x,b){var v=o[p][x],k=b.map(function(S){return S.slice()}),E="dimensions["+x+"].constraintrange",T=n._tracePreGUI[t._fullData[s[p]]._fullInput.uid];if(T[E]===void 0){var L=v.constraintrange;T[E]=L||null}var _=t._fullData[s[p]].dimensions[x];k.length?(k.length===1&&(k=k[0]),v.constraintrange=k,_.constraintrange=k.slice(),k=[k]):(delete v.constraintrange,delete _.constraintrange,k=null);var C={};C[E]=k,t.emit("plotly_restyle",[C,[u[p]]])},c=function(p){t.emit("plotly_hover",p)},h=function(p){t.emit("plotly_unhover",p)},d=function(p,x){var b=oHt(x,o[p].filter(jUe));a[p].sort(b),o[p].filter(function(v){return!jUe(v)}).sort(function(v){return o[p].indexOf(v)}).forEach(function(v){a[p].splice(a[p].indexOf(v),1),a[p].splice(o[p].indexOf(v),0,v)}),t.emit("plotly_restyle",[{dimensions:[a[p]]},[u[p]]])};nHt(t,r,{width:l.w,height:l.h,margin:{t:l.t,r:l.r,b:l.b,l:l.l}},{filterChanged:f,hover:c,unhover:h,axesMoved:d})}};jK.reglPrecompiled=ZUe});var JUe=Te(Ck=>{"use strict";var KUe=Jl(),sHt=Rd().getModuleCalcData,lHt=XK(),uHt=jv();Ck.name="parcoords";Ck.plot=function(e){var t=sHt(e.calcdata,"parcoords")[0];t.length&&lHt(e,t)};Ck.clean=function(e,t,r,n){var i=n._has&&n._has("parcoords"),a=t._has&&t._has("parcoords");i&&!a&&(n._paperdiv.selectAll(".parcoords").remove(),n._glimages.selectAll("*").remove())};Ck.toSVG=function(e){var t=e._fullLayout._glimages,r=KUe.select(e).selectAll(".svg-container"),n=r.filter(function(a,o){return o===r.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function i(){var a=this,o=a.toDataURL("image/png"),s=t.append("svg:image");s.attr({xmlns:uHt.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}n.each(i),window.setTimeout(function(){KUe.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var QUe=Te((Cxr,$Ue)=>{"use strict";$Ue.exports={attributes:PK(),supplyDefaults:hUe(),calc:pUe(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:JUe(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var tVe=Te((Lxr,eVe)=>{eVe.exports=function(t,r){"use strict";var n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ue,Fe,me,Ne,ce,Ke,it,bt,Nt,nt,Ye,kt,At,St,Bt,Zt,Et,Ae,ot,dt,pt,at,Xe,rt,Qe,zt,Yt,lr;return n=t.gl,i=t.context,a=t.strings,o=t.next,s=t.current,u=t.draw,l=t.elements,f=t.buffer,c=t.shader,h=t.attributes,d=t.vao,p=t.uniforms,x=t.framebuffer,b=t.extensions,v=t.timer,k=t.isBufferArgs,E=o.blend_color,T=s.blend_color,L=o.blend_equation,_=s.blend_equation,C=o.blend_func,S=s.blend_func,m=o.depth_range,P=s.depth_range,A=o.colorMask,B=s.colorMask,F=o.polygonOffset_offset,U=s.polygonOffset_offset,G=o.sample_coverage,j=s.sample_coverage,H=o.stencil_func,N=s.stencil_func,W=o.stencil_opFront,re=s.stencil_opFront,ae=o.stencil_opBack,be=s.stencil_opBack,Pe=o.scissor_box,Ce=s.scissor_box,de=o.viewport,te=s.viewport,ke={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ee={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Me={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Ue={add:32774,subtract:32778,"reverse subtract":32779},Fe={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},me={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ne={cw:2304,ccw:2305},ce=o.blend_color,Ke=s.blend_color,it=o.blend_equation,bt=s.blend_equation,Nt=o.blend_func,nt=s.blend_func,Ye=o.depth_range,kt=s.depth_range,At=o.colorMask,St=s.colorMask,Bt=o.polygonOffset_offset,Zt=s.polygonOffset_offset,Et=o.sample_coverage,Ae=s.sample_coverage,ot=o.stencil_func,dt=s.stencil_func,pt=o.stencil_opFront,at=s.stencil_opFront,Xe=o.stencil_opBack,rt=s.stencil_opBack,Qe=o.scissor_box,zt=s.scissor_box,Yt=o.viewport,lr=s.viewport,{poll:function(){var mr,_r,Ht,Re,xe,Oe,Ie,De,ct,_e,fe,pe,mt,It,Pt,rr,Wr,Nr,Er,Br,mi,Di;s.dirty=!1,_r=o.dither,Ht=o.blend_enable,Re=o.depth_enable,xe=o.cull_enable,Oe=o.polygonOffset_enable,Ie=o.sample_alpha,De=o.sample_enable,ct=o.stencil_enable,_e=o.scissor_enable,fe=o.depth_func,pe=s.depth_func,mt=o.depth_mask,It=s.depth_mask,Pt=o.cull_face,rr=s.cull_face,Wr=o.frontFace,Nr=s.frontFace,Er=o.lineWidth,Br=s.lineWidth,mi=o.stencil_mask,Di=s.stencil_mask,mr=x.next,mr!==x.cur&&(mr?n.bindFramebuffer(36160,mr.framebuffer):n.bindFramebuffer(36160,null),x.cur=mr),_r!==s.dither&&(_r?n.enable(3024):n.disable(3024),s.dither=_r),Ht!==s.blend_enable&&(Ht?n.enable(3042):n.disable(3042),s.blend_enable=Ht),Re!==s.depth_enable&&(Re?n.enable(2929):n.disable(2929),s.depth_enable=Re),xe!==s.cull_enable&&(xe?n.enable(2884):n.disable(2884),s.cull_enable=xe),Oe!==s.polygonOffset_enable&&(Oe?n.enable(32823):n.disable(32823),s.polygonOffset_enable=Oe),Ie!==s.sample_alpha&&(Ie?n.enable(32926):n.disable(32926),s.sample_alpha=Ie),De!==s.sample_enable&&(De?n.enable(32928):n.disable(32928),s.sample_enable=De),ct!==s.stencil_enable&&(ct?n.enable(2960):n.disable(2960),s.stencil_enable=ct),_e!==s.scissor_enable&&(_e?n.enable(3089):n.disable(3089),s.scissor_enable=_e),(ce[0]!==Ke[0]||ce[1]!==Ke[1]||ce[2]!==Ke[2]||ce[3]!==Ke[3])&&(n.blendColor(ce[0],ce[1],ce[2],ce[3]),Ke[0]=ce[0],Ke[1]=ce[1],Ke[2]=ce[2],Ke[3]=ce[3]),(it[0]!==bt[0]||it[1]!==bt[1])&&(n.blendEquationSeparate(it[0],it[1]),bt[0]=it[0],bt[1]=it[1]),(Nt[0]!==nt[0]||Nt[1]!==nt[1]||Nt[2]!==nt[2]||Nt[3]!==nt[3])&&(n.blendFuncSeparate(Nt[0],Nt[1],Nt[2],Nt[3]),nt[0]=Nt[0],nt[1]=Nt[1],nt[2]=Nt[2],nt[3]=Nt[3]),fe!==pe&&(n.depthFunc(fe),s.depth_func=fe),(Ye[0]!==kt[0]||Ye[1]!==kt[1])&&(n.depthRange(Ye[0],Ye[1]),kt[0]=Ye[0],kt[1]=Ye[1]),mt!==It&&(n.depthMask(mt),s.depth_mask=mt),(At[0]!==St[0]||At[1]!==St[1]||At[2]!==St[2]||At[3]!==St[3])&&(n.colorMask(At[0],At[1],At[2],At[3]),St[0]=At[0],St[1]=At[1],St[2]=At[2],St[3]=At[3]),Pt!==rr&&(n.cullFace(Pt),s.cull_face=Pt),Wr!==Nr&&(n.frontFace(Wr),s.frontFace=Wr),Er!==Br&&(n.lineWidth(Er),s.lineWidth=Er),(Bt[0]!==Zt[0]||Bt[1]!==Zt[1])&&(n.polygonOffset(Bt[0],Bt[1]),Zt[0]=Bt[0],Zt[1]=Bt[1]),(Et[0]!==Ae[0]||Et[1]!==Ae[1])&&(n.sampleCoverage(Et[0],Et[1]),Ae[0]=Et[0],Ae[1]=Et[1]),mi!==Di&&(n.stencilMask(mi),s.stencil_mask=mi),(ot[0]!==dt[0]||ot[1]!==dt[1]||ot[2]!==dt[2])&&(n.stencilFunc(ot[0],ot[1],ot[2]),dt[0]=ot[0],dt[1]=ot[1],dt[2]=ot[2]),(pt[0]!==at[0]||pt[1]!==at[1]||pt[2]!==at[2]||pt[3]!==at[3])&&(n.stencilOpSeparate(pt[0],pt[1],pt[2],pt[3]),at[0]=pt[0],at[1]=pt[1],at[2]=pt[2],at[3]=pt[3]),(Xe[0]!==rt[0]||Xe[1]!==rt[1]||Xe[2]!==rt[2]||Xe[3]!==rt[3])&&(n.stencilOpSeparate(Xe[0],Xe[1],Xe[2],Xe[3]),rt[0]=Xe[0],rt[1]=Xe[1],rt[2]=Xe[2],rt[3]=Xe[3]),(Qe[0]!==zt[0]||Qe[1]!==zt[1]||Qe[2]!==zt[2]||Qe[3]!==zt[3])&&(n.scissor(Qe[0],Qe[1],Qe[2],Qe[3]),zt[0]=Qe[0],zt[1]=Qe[1],zt[2]=Qe[2],zt[3]=Qe[3]),(Yt[0]!==lr[0]||Yt[1]!==lr[1]||Yt[2]!==lr[2]||Yt[3]!==lr[3])&&(n.viewport(Yt[0],Yt[1],Yt[2],Yt[3]),lr[0]=Yt[0],lr[1]=Yt[1],lr[2]=Yt[2],lr[3]=Yt[3])},refresh:function(){var mr,_r,Ht,Re,xe,Oe,Ie,De,ct,_e,fe,pe,mt,It,Pt,rr,Wr,Nr,Er,Br,mi,Di,Ii,Ci;s.dirty=!1,Re=o.dither,xe=o.blend_enable,Oe=o.depth_enable,Ie=o.cull_enable,De=o.polygonOffset_enable,ct=o.sample_alpha,_e=o.sample_enable,fe=o.stencil_enable,pe=o.scissor_enable,mt=o.depth_func,It=s.depth_func,Pt=o.depth_mask,rr=s.depth_mask,Wr=o.cull_face,Nr=s.cull_face,Er=o.frontFace,Br=s.frontFace,mi=o.lineWidth,Di=s.lineWidth,Ii=o.stencil_mask,Ci=s.stencil_mask,mr=x.next,mr?n.bindFramebuffer(36160,mr.framebuffer):n.bindFramebuffer(36160,null),x.cur=mr,_r=h,Ht=0;for(var nn=0;nn{rVe.exports=function(t,r,n,i,a,o,s,u){"use strict";var l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ue,Fe,me,Ne,ce,Ke,it,bt,Nt,nt,Ye,kt;return l=t.gl,f=t.context,c=t.strings,h=t.next,d=t.current,p=t.draw,x=t.elements,b=t.buffer,v=t.shader,k=t.attributes,E=t.vao,T=t.uniforms,L=t.framebuffer,_=t.extensions,C=t.timer,S=t.isBufferArgs,m=h.blend_color,P=d.blend_color,A=h.blend_equation,B=d.blend_equation,F=h.blend_func,U=d.blend_func,G=h.depth_range,j=d.depth_range,H=h.colorMask,N=d.colorMask,W=h.polygonOffset_offset,re=d.polygonOffset_offset,ae=h.sample_coverage,be=d.sample_coverage,Pe=h.stencil_func,Ce=d.stencil_func,de=h.stencil_opFront,te=d.stencil_opFront,ke=h.stencil_opBack,Ee=d.stencil_opBack,Me=h.scissor_box,Ue=d.scissor_box,Fe=h.viewport,me=d.viewport,Ne={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},ce={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ke={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},it={add:32774,subtract:32778,"reverse subtract":32779},bt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Nt={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},nt={cw:2304,ccw:2305},Ye={},kt={},{draw:function(At){var St,Bt,Zt,Et,Ae,ot,dt,pt,at,Xe,rt,Qe,zt,Yt,lr,mr,_r,Ht;if(St=At.framebuffer,Bt=L.getFramebuffer(St),Zt=L.next,L.next=Bt,Et=f.framebufferWidth,f.framebufferWidth=Bt?Bt.width:f.drawingBufferWidth,Ae=f.framebufferHeight,f.framebufferHeight=Bt?Bt.height:f.drawingBufferHeight,Bt!==L.cur&&(Bt?l.bindFramebuffer(36160,Bt.framebuffer):l.bindFramebuffer(36160,null),L.cur=Bt),d.dirty){var Re,xe,Oe,Ie,De,ct,_e,fe,pe,mt,It,Pt,rr,Wr,Nr,Er,Br,mi,Di,Ii,Ci,nn,ii,wi,Gi,Ft,gt,Ut,Wt,xr,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi;Re=h.dither,Re!==d.dither&&(Re?l.enable(3024):l.disable(3024),d.dither=Re),xe=h.blend_enable,xe!==d.blend_enable&&(xe?l.enable(3042):l.disable(3042),d.blend_enable=xe),Oe=m[0],Ie=m[1],De=m[2],ct=m[3],(Oe!==P[0]||Ie!==P[1]||De!==P[2]||ct!==P[3])&&(l.blendColor(Oe,Ie,De,ct),P[0]=Oe,P[1]=Ie,P[2]=De,P[3]=ct),_e=A[0],fe=A[1],(_e!==B[0]||fe!==B[1])&&(l.blendEquationSeparate(_e,fe),B[0]=_e,B[1]=fe),pe=F[0],mt=F[1],It=F[2],Pt=F[3],(pe!==U[0]||mt!==U[1]||It!==U[2]||Pt!==U[3])&&(l.blendFuncSeparate(pe,mt,It,Pt),U[0]=pe,U[1]=mt,U[2]=It,U[3]=Pt),rr=h.depth_enable,rr!==d.depth_enable&&(rr?l.enable(2929):l.disable(2929),d.depth_enable=rr),Wr=h.depth_func,Wr!==d.depth_func&&(l.depthFunc(Wr),d.depth_func=Wr),Nr=G[0],Er=G[1],(Nr!==j[0]||Er!==j[1])&&(l.depthRange(Nr,Er),j[0]=Nr,j[1]=Er),Br=h.depth_mask,Br!==d.depth_mask&&(l.depthMask(Br),d.depth_mask=Br),mi=H[0],Di=H[1],Ii=H[2],Ci=H[3],(mi!==N[0]||Di!==N[1]||Ii!==N[2]||Ci!==N[3])&&(l.colorMask(mi,Di,Ii,Ci),N[0]=mi,N[1]=Di,N[2]=Ii,N[3]=Ci),nn=h.cull_enable,nn!==d.cull_enable&&(nn?l.enable(2884):l.disable(2884),d.cull_enable=nn),ii=h.cull_face,ii!==d.cull_face&&(l.cullFace(ii),d.cull_face=ii),wi=h.frontFace,wi!==d.frontFace&&(l.frontFace(wi),d.frontFace=wi),Gi=h.lineWidth,Gi!==d.lineWidth&&(l.lineWidth(Gi),d.lineWidth=Gi),Ft=h.polygonOffset_enable,Ft!==d.polygonOffset_enable&&(Ft?l.enable(32823):l.disable(32823),d.polygonOffset_enable=Ft),gt=W[0],Ut=W[1],(gt!==re[0]||Ut!==re[1])&&(l.polygonOffset(gt,Ut),re[0]=gt,re[1]=Ut),Wt=h.sample_alpha,Wt!==d.sample_alpha&&(Wt?l.enable(32926):l.disable(32926),d.sample_alpha=Wt),xr=h.sample_enable,xr!==d.sample_enable&&(xr?l.enable(32928):l.disable(32928),d.sample_enable=xr),Lr=ae[0],Ur=ae[1],(Lr!==be[0]||Ur!==be[1])&&(l.sampleCoverage(Lr,Ur),be[0]=Lr,be[1]=Ur),Ir=h.stencil_enable,Ir!==d.stencil_enable&&(Ir?l.enable(2960):l.disable(2960),d.stencil_enable=Ir),Gr=h.stencil_mask,Gr!==d.stencil_mask&&(l.stencilMask(Gr),d.stencil_mask=Gr),jr=Pe[0],yi=Pe[1],Ei=Pe[2],(jr!==Ce[0]||yi!==Ce[1]||Ei!==Ce[2])&&(l.stencilFunc(jr,yi,Ei),Ce[0]=jr,Ce[1]=yi,Ce[2]=Ei),Vi=de[0],ti=de[1],en=de[2],Yr=de[3],(Vi!==te[0]||ti!==te[1]||en!==te[2]||Yr!==te[3])&&(l.stencilOpSeparate(Vi,ti,en,Yr),te[0]=Vi,te[1]=ti,te[2]=en,te[3]=Yr),oi=ke[0],Bi=ke[1],an=ke[2],rn=ke[3],(oi!==Ee[0]||Bi!==Ee[1]||an!==Ee[2]||rn!==Ee[3])&&(l.stencilOpSeparate(oi,Bi,an,rn),Ee[0]=oi,Ee[1]=Bi,Ee[2]=an,Ee[3]=rn),Fi=h.scissor_enable,Fi!==d.scissor_enable&&(Fi?l.enable(3089):l.disable(3089),d.scissor_enable=Fi)}ot=f.framebufferWidth,dt=f.framebufferHeight,pt=f.viewportWidth,f.viewportWidth=ot,at=f.viewportHeight,f.viewportHeight=dt,l.viewport(0,0,ot,dt),me[0]=0,me[1]=0,me[2]=ot,me[3]=dt,Xe=f.framebufferWidth,rt=f.framebufferHeight,l.scissor(0,0,Xe,rt),Ue[0]=0,Ue[1]=0,Ue[2]=Xe,Ue[3]=rt,Qe=d.profile,Qe&&(zt=performance.now(),r.count++),Yt=v.frag,lr=v.vert,mr=v.program(lr,Yt),l.useProgram(mr.program),E.setVAO(null),_r=mr.id,Ht=Ye[_r],Ht?Ht.call(this,At):(Ht=Ye[_r]=n(mr),Ht.call(this,At)),d.dirty=!0,E.setVAO(null),L.next=Zt,f.framebufferWidth=Et,f.framebufferHeight=Ae,f.viewportWidth=pt,f.viewportHeight=at,Qe&&(r.cpuTime+=performance.now()-zt)},scope:function(At,St,Bt){var Zt,Et,Ae,ot,dt,pt,at,Xe,rt,Qe,zt,Yt,lr,mr,_r,Ht,Re,xe,Oe,Ie,De;Zt=At.framebuffer,Et=L.getFramebuffer(Zt),Ae=L.next,L.next=Et,ot=f.framebufferWidth,f.framebufferWidth=Et?Et.width:f.drawingBufferWidth,dt=f.framebufferHeight,f.framebufferHeight=Et?Et.height:f.drawingBufferHeight,pt=f.framebufferWidth,at=f.framebufferHeight,Xe=f.viewportWidth,f.viewportWidth=pt,rt=f.viewportHeight,f.viewportHeight=at,Qe=Fe[0],Fe[0]=i,zt=Fe[1],Fe[1]=a,Yt=Fe[2],Fe[2]=pt,lr=Fe[3],Fe[3]=at,mr=f.framebufferWidth,_r=f.framebufferHeight,Ht=Me[0],Me[0]=o,Re=Me[1],Me[1]=s,xe=Me[2],Me[2]=mr,Oe=Me[3],Me[3]=_r,Ie=d.profile,Ie&&(De=performance.now(),r.count++),d.dirty=!0,St(f,At,Bt),L.next=Ae,f.framebufferWidth=ot,f.framebufferHeight=dt,f.viewportWidth=Xe,f.viewportHeight=rt,Fe[0]=Qe,Fe[1]=zt,Fe[2]=Yt,Fe[3]=lr,Me[0]=Ht,Me[1]=Re,Me[2]=xe,Me[3]=Oe,Ie&&(r.cpuTime+=performance.now()-De),d.dirty=!0},batch:function(At,St){var Bt,Zt,Et,Ae,ot,dt,pt;if(d.dirty){var at,Xe,rt,Qe,zt,Yt,lr,mr,_r,Ht,Re,xe,Oe,Ie,De,ct,_e,fe,pe,mt,It,Pt,rr,Wr,Nr,Er,Br,mi,Di,Ii,Ci,nn,ii,wi,Gi,Ft,gt,Ut,Wt,xr,Lr,Ur,Ir,Gr,jr,yi;at=h.dither,at!==d.dither&&(at?l.enable(3024):l.disable(3024),d.dither=at),Xe=h.blend_enable,Xe!==d.blend_enable&&(Xe?l.enable(3042):l.disable(3042),d.blend_enable=Xe),rt=m[0],Qe=m[1],zt=m[2],Yt=m[3],(rt!==P[0]||Qe!==P[1]||zt!==P[2]||Yt!==P[3])&&(l.blendColor(rt,Qe,zt,Yt),P[0]=rt,P[1]=Qe,P[2]=zt,P[3]=Yt),lr=A[0],mr=A[1],(lr!==B[0]||mr!==B[1])&&(l.blendEquationSeparate(lr,mr),B[0]=lr,B[1]=mr),_r=F[0],Ht=F[1],Re=F[2],xe=F[3],(_r!==U[0]||Ht!==U[1]||Re!==U[2]||xe!==U[3])&&(l.blendFuncSeparate(_r,Ht,Re,xe),U[0]=_r,U[1]=Ht,U[2]=Re,U[3]=xe),Oe=h.depth_enable,Oe!==d.depth_enable&&(Oe?l.enable(2929):l.disable(2929),d.depth_enable=Oe),Ie=h.depth_func,Ie!==d.depth_func&&(l.depthFunc(Ie),d.depth_func=Ie),De=G[0],ct=G[1],(De!==j[0]||ct!==j[1])&&(l.depthRange(De,ct),j[0]=De,j[1]=ct),_e=h.depth_mask,_e!==d.depth_mask&&(l.depthMask(_e),d.depth_mask=_e),fe=H[0],pe=H[1],mt=H[2],It=H[3],(fe!==N[0]||pe!==N[1]||mt!==N[2]||It!==N[3])&&(l.colorMask(fe,pe,mt,It),N[0]=fe,N[1]=pe,N[2]=mt,N[3]=It),Pt=h.cull_enable,Pt!==d.cull_enable&&(Pt?l.enable(2884):l.disable(2884),d.cull_enable=Pt),rr=h.cull_face,rr!==d.cull_face&&(l.cullFace(rr),d.cull_face=rr),Wr=h.frontFace,Wr!==d.frontFace&&(l.frontFace(Wr),d.frontFace=Wr),Nr=h.lineWidth,Nr!==d.lineWidth&&(l.lineWidth(Nr),d.lineWidth=Nr),Er=h.polygonOffset_enable,Er!==d.polygonOffset_enable&&(Er?l.enable(32823):l.disable(32823),d.polygonOffset_enable=Er),Br=W[0],mi=W[1],(Br!==re[0]||mi!==re[1])&&(l.polygonOffset(Br,mi),re[0]=Br,re[1]=mi),Di=h.sample_alpha,Di!==d.sample_alpha&&(Di?l.enable(32926):l.disable(32926),d.sample_alpha=Di),Ii=h.sample_enable,Ii!==d.sample_enable&&(Ii?l.enable(32928):l.disable(32928),d.sample_enable=Ii),Ci=ae[0],nn=ae[1],(Ci!==be[0]||nn!==be[1])&&(l.sampleCoverage(Ci,nn),be[0]=Ci,be[1]=nn),ii=h.stencil_enable,ii!==d.stencil_enable&&(ii?l.enable(2960):l.disable(2960),d.stencil_enable=ii),wi=h.stencil_mask,wi!==d.stencil_mask&&(l.stencilMask(wi),d.stencil_mask=wi),Gi=Pe[0],Ft=Pe[1],gt=Pe[2],(Gi!==Ce[0]||Ft!==Ce[1]||gt!==Ce[2])&&(l.stencilFunc(Gi,Ft,gt),Ce[0]=Gi,Ce[1]=Ft,Ce[2]=gt),Ut=de[0],Wt=de[1],xr=de[2],Lr=de[3],(Ut!==te[0]||Wt!==te[1]||xr!==te[2]||Lr!==te[3])&&(l.stencilOpSeparate(Ut,Wt,xr,Lr),te[0]=Ut,te[1]=Wt,te[2]=xr,te[3]=Lr),Ur=ke[0],Ir=ke[1],Gr=ke[2],jr=ke[3],(Ur!==Ee[0]||Ir!==Ee[1]||Gr!==Ee[2]||jr!==Ee[3])&&(l.stencilOpSeparate(Ur,Ir,Gr,jr),Ee[0]=Ur,Ee[1]=Ir,Ee[2]=Gr,Ee[3]=jr),yi=h.scissor_enable,yi!==d.scissor_enable&&(yi?l.enable(3089):l.disable(3089),d.scissor_enable=yi)}Bt=d.profile,Bt&&(Zt=performance.now(),r.count+=St),Et=v.frag,Ae=v.vert,ot=v.program(Ae,Et),l.useProgram(ot.program),E.setVAO(null),dt=ot.id,pt=kt[dt],pt?pt.call(this,At,St):(pt=kt[dt]=u(ot),pt.call(this,At,St)),d.dirty=!0,E.setVAO(null),Bt&&(r.cpuTime+=performance.now()-Zt)}}}});var aVe=Te((zxr,nVe)=>{nVe.exports=function(t,r,n,i){"use strict";var a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ue,Fe,me,Ne,ce,Ke,it,bt;return a=t.gl,o=t.context,s=t.strings,u=t.next,l=t.current,f=t.draw,c=t.elements,h=t.buffer,d=t.shader,p=t.attributes,x=t.vao,b=t.uniforms,v=t.framebuffer,k=t.extensions,E=t.timer,T=t.isBufferArgs,L=u.blend_color,_=l.blend_color,C=u.blend_equation,S=l.blend_equation,m=u.blend_func,P=l.blend_func,A=u.depth_range,B=l.depth_range,F=u.colorMask,U=l.colorMask,G=u.polygonOffset_offset,j=l.polygonOffset_offset,H=u.sample_coverage,N=l.sample_coverage,W=u.stencil_func,re=l.stencil_func,ae=u.stencil_opFront,be=l.stencil_opFront,Pe=u.stencil_opBack,Ce=l.stencil_opBack,de=u.scissor_box,te=l.scissor_box,ke=u.viewport,Ee=l.viewport,Me={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ue={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Fe={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},me={add:32774,subtract:32778,"reverse subtract":32779},Ne={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ce={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ke={cw:2304,ccw:2305},it={},bt={},{draw:function(Nt){var nt,Ye,kt,At,St,Bt,Zt,Et;if(nt=v.next,nt!==v.cur&&(nt?a.bindFramebuffer(36160,nt.framebuffer):a.bindFramebuffer(36160,null),v.cur=nt),l.dirty){var Ae,ot,dt,pt,at,Xe,rt,Qe,zt,Yt,lr,mr,_r,Ht,Re,xe,Oe,Ie,De,ct,_e,fe,pe,mt,It,Pt,rr,Wr,Nr,Er,Br,mi,Di,Ii,Ci,nn,ii,wi,Gi,Ft,gt,Ut,Wt,xr,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en;Ae=u.dither,Ae!==l.dither&&(Ae?a.enable(3024):a.disable(3024),l.dither=Ae),ot=u.blend_enable,ot!==l.blend_enable&&(ot?a.enable(3042):a.disable(3042),l.blend_enable=ot),dt=L[0],pt=L[1],at=L[2],Xe=L[3],(dt!==_[0]||pt!==_[1]||at!==_[2]||Xe!==_[3])&&(a.blendColor(dt,pt,at,Xe),_[0]=dt,_[1]=pt,_[2]=at,_[3]=Xe),rt=C[0],Qe=C[1],(rt!==S[0]||Qe!==S[1])&&(a.blendEquationSeparate(rt,Qe),S[0]=rt,S[1]=Qe),zt=m[0],Yt=m[1],lr=m[2],mr=m[3],(zt!==P[0]||Yt!==P[1]||lr!==P[2]||mr!==P[3])&&(a.blendFuncSeparate(zt,Yt,lr,mr),P[0]=zt,P[1]=Yt,P[2]=lr,P[3]=mr),_r=u.depth_enable,_r!==l.depth_enable&&(_r?a.enable(2929):a.disable(2929),l.depth_enable=_r),Ht=u.depth_func,Ht!==l.depth_func&&(a.depthFunc(Ht),l.depth_func=Ht),Re=A[0],xe=A[1],(Re!==B[0]||xe!==B[1])&&(a.depthRange(Re,xe),B[0]=Re,B[1]=xe),Oe=u.depth_mask,Oe!==l.depth_mask&&(a.depthMask(Oe),l.depth_mask=Oe),Ie=F[0],De=F[1],ct=F[2],_e=F[3],(Ie!==U[0]||De!==U[1]||ct!==U[2]||_e!==U[3])&&(a.colorMask(Ie,De,ct,_e),U[0]=Ie,U[1]=De,U[2]=ct,U[3]=_e),fe=u.cull_enable,fe!==l.cull_enable&&(fe?a.enable(2884):a.disable(2884),l.cull_enable=fe),pe=u.cull_face,pe!==l.cull_face&&(a.cullFace(pe),l.cull_face=pe),mt=u.frontFace,mt!==l.frontFace&&(a.frontFace(mt),l.frontFace=mt),It=u.lineWidth,It!==l.lineWidth&&(a.lineWidth(It),l.lineWidth=It),Pt=u.polygonOffset_enable,Pt!==l.polygonOffset_enable&&(Pt?a.enable(32823):a.disable(32823),l.polygonOffset_enable=Pt),rr=G[0],Wr=G[1],(rr!==j[0]||Wr!==j[1])&&(a.polygonOffset(rr,Wr),j[0]=rr,j[1]=Wr),Nr=u.sample_alpha,Nr!==l.sample_alpha&&(Nr?a.enable(32926):a.disable(32926),l.sample_alpha=Nr),Er=u.sample_enable,Er!==l.sample_enable&&(Er?a.enable(32928):a.disable(32928),l.sample_enable=Er),Br=H[0],mi=H[1],(Br!==N[0]||mi!==N[1])&&(a.sampleCoverage(Br,mi),N[0]=Br,N[1]=mi),Di=u.stencil_enable,Di!==l.stencil_enable&&(Di?a.enable(2960):a.disable(2960),l.stencil_enable=Di),Ii=u.stencil_mask,Ii!==l.stencil_mask&&(a.stencilMask(Ii),l.stencil_mask=Ii),Ci=W[0],nn=W[1],ii=W[2],(Ci!==re[0]||nn!==re[1]||ii!==re[2])&&(a.stencilFunc(Ci,nn,ii),re[0]=Ci,re[1]=nn,re[2]=ii),wi=ae[0],Gi=ae[1],Ft=ae[2],gt=ae[3],(wi!==be[0]||Gi!==be[1]||Ft!==be[2]||gt!==be[3])&&(a.stencilOpSeparate(wi,Gi,Ft,gt),be[0]=wi,be[1]=Gi,be[2]=Ft,be[3]=gt),Ut=Pe[0],Wt=Pe[1],xr=Pe[2],Lr=Pe[3],(Ut!==Ce[0]||Wt!==Ce[1]||xr!==Ce[2]||Lr!==Ce[3])&&(a.stencilOpSeparate(Ut,Wt,xr,Lr),Ce[0]=Ut,Ce[1]=Wt,Ce[2]=xr,Ce[3]=Lr),Ur=u.scissor_enable,Ur!==l.scissor_enable&&(Ur?a.enable(3089):a.disable(3089),l.scissor_enable=Ur),Ir=de[0],Gr=de[1],jr=de[2],yi=de[3],(Ir!==te[0]||Gr!==te[1]||jr!==te[2]||yi!==te[3])&&(a.scissor(Ir,Gr,jr,yi),te[0]=Ir,te[1]=Gr,te[2]=jr,te[3]=yi),Ei=ke[0],Vi=ke[1],ti=ke[2],en=ke[3],(Ei!==Ee[0]||Vi!==Ee[1]||ti!==Ee[2]||en!==Ee[3])&&(a.viewport(Ei,Vi,ti,en),Ee[0]=Ei,Ee[1]=Vi,Ee[2]=ti,Ee[3]=en),l.dirty=!1}Ye=l.profile,Ye&&(kt=performance.now(),r.count++),At=d.frag,St=d.vert,Bt=d.program(St,At),a.useProgram(Bt.program),x.setVAO(null),Zt=Bt.id,Et=it[Zt],Et?Et.call(this,Nt):(Et=it[Zt]=n(Bt),Et.call(this,Nt)),x.setVAO(null),Ye&&(r.cpuTime+=performance.now()-kt)},scope:function(Nt,nt,Ye){var kt,At;kt=l.profile,kt&&(At=performance.now(),r.count++),nt(o,Nt,Ye),kt&&(r.cpuTime+=performance.now()-At)},batch:function(Nt,nt){var Ye,kt,At,St,Bt,Zt,Et,Ae;if(Ye=v.next,Ye!==v.cur&&(Ye?a.bindFramebuffer(36160,Ye.framebuffer):a.bindFramebuffer(36160,null),v.cur=Ye),l.dirty){var ot,dt,pt,at,Xe,rt,Qe,zt,Yt,lr,mr,_r,Ht,Re,xe,Oe,Ie,De,ct,_e,fe,pe,mt,It,Pt,rr,Wr,Nr,Er,Br,mi,Di,Ii,Ci,nn,ii,wi,Gi,Ft,gt,Ut,Wt,xr,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr;ot=u.dither,ot!==l.dither&&(ot?a.enable(3024):a.disable(3024),l.dither=ot),dt=u.blend_enable,dt!==l.blend_enable&&(dt?a.enable(3042):a.disable(3042),l.blend_enable=dt),pt=L[0],at=L[1],Xe=L[2],rt=L[3],(pt!==_[0]||at!==_[1]||Xe!==_[2]||rt!==_[3])&&(a.blendColor(pt,at,Xe,rt),_[0]=pt,_[1]=at,_[2]=Xe,_[3]=rt),Qe=C[0],zt=C[1],(Qe!==S[0]||zt!==S[1])&&(a.blendEquationSeparate(Qe,zt),S[0]=Qe,S[1]=zt),Yt=m[0],lr=m[1],mr=m[2],_r=m[3],(Yt!==P[0]||lr!==P[1]||mr!==P[2]||_r!==P[3])&&(a.blendFuncSeparate(Yt,lr,mr,_r),P[0]=Yt,P[1]=lr,P[2]=mr,P[3]=_r),Ht=u.depth_enable,Ht!==l.depth_enable&&(Ht?a.enable(2929):a.disable(2929),l.depth_enable=Ht),Re=u.depth_func,Re!==l.depth_func&&(a.depthFunc(Re),l.depth_func=Re),xe=A[0],Oe=A[1],(xe!==B[0]||Oe!==B[1])&&(a.depthRange(xe,Oe),B[0]=xe,B[1]=Oe),Ie=u.depth_mask,Ie!==l.depth_mask&&(a.depthMask(Ie),l.depth_mask=Ie),De=F[0],ct=F[1],_e=F[2],fe=F[3],(De!==U[0]||ct!==U[1]||_e!==U[2]||fe!==U[3])&&(a.colorMask(De,ct,_e,fe),U[0]=De,U[1]=ct,U[2]=_e,U[3]=fe),pe=u.cull_enable,pe!==l.cull_enable&&(pe?a.enable(2884):a.disable(2884),l.cull_enable=pe),mt=u.cull_face,mt!==l.cull_face&&(a.cullFace(mt),l.cull_face=mt),It=u.frontFace,It!==l.frontFace&&(a.frontFace(It),l.frontFace=It),Pt=u.lineWidth,Pt!==l.lineWidth&&(a.lineWidth(Pt),l.lineWidth=Pt),rr=u.polygonOffset_enable,rr!==l.polygonOffset_enable&&(rr?a.enable(32823):a.disable(32823),l.polygonOffset_enable=rr),Wr=G[0],Nr=G[1],(Wr!==j[0]||Nr!==j[1])&&(a.polygonOffset(Wr,Nr),j[0]=Wr,j[1]=Nr),Er=u.sample_alpha,Er!==l.sample_alpha&&(Er?a.enable(32926):a.disable(32926),l.sample_alpha=Er),Br=u.sample_enable,Br!==l.sample_enable&&(Br?a.enable(32928):a.disable(32928),l.sample_enable=Br),mi=H[0],Di=H[1],(mi!==N[0]||Di!==N[1])&&(a.sampleCoverage(mi,Di),N[0]=mi,N[1]=Di),Ii=u.stencil_enable,Ii!==l.stencil_enable&&(Ii?a.enable(2960):a.disable(2960),l.stencil_enable=Ii),Ci=u.stencil_mask,Ci!==l.stencil_mask&&(a.stencilMask(Ci),l.stencil_mask=Ci),nn=W[0],ii=W[1],wi=W[2],(nn!==re[0]||ii!==re[1]||wi!==re[2])&&(a.stencilFunc(nn,ii,wi),re[0]=nn,re[1]=ii,re[2]=wi),Gi=ae[0],Ft=ae[1],gt=ae[2],Ut=ae[3],(Gi!==be[0]||Ft!==be[1]||gt!==be[2]||Ut!==be[3])&&(a.stencilOpSeparate(Gi,Ft,gt,Ut),be[0]=Gi,be[1]=Ft,be[2]=gt,be[3]=Ut),Wt=Pe[0],xr=Pe[1],Lr=Pe[2],Ur=Pe[3],(Wt!==Ce[0]||xr!==Ce[1]||Lr!==Ce[2]||Ur!==Ce[3])&&(a.stencilOpSeparate(Wt,xr,Lr,Ur),Ce[0]=Wt,Ce[1]=xr,Ce[2]=Lr,Ce[3]=Ur),Ir=u.scissor_enable,Ir!==l.scissor_enable&&(Ir?a.enable(3089):a.disable(3089),l.scissor_enable=Ir),Gr=de[0],jr=de[1],yi=de[2],Ei=de[3],(Gr!==te[0]||jr!==te[1]||yi!==te[2]||Ei!==te[3])&&(a.scissor(Gr,jr,yi,Ei),te[0]=Gr,te[1]=jr,te[2]=yi,te[3]=Ei),Vi=ke[0],ti=ke[1],en=ke[2],Yr=ke[3],(Vi!==Ee[0]||ti!==Ee[1]||en!==Ee[2]||Yr!==Ee[3])&&(a.viewport(Vi,ti,en,Yr),Ee[0]=Vi,Ee[1]=ti,Ee[2]=en,Ee[3]=Yr),l.dirty=!1}kt=l.profile,kt&&(At=performance.now(),r.count+=nt),St=d.frag,Bt=d.vert,Zt=d.program(Bt,St),a.useProgram(Zt.program),x.setVAO(null),Et=Zt.id,Ae=bt[Et],Ae?Ae.call(this,Nt,nt):(Ae=bt[Et]=i(Zt),Ae.call(this,Nt,nt)),x.setVAO(null),kt&&(r.cpuTime+=performance.now()-At)}}}});var sVe=Te((Ixr,oVe)=>{oVe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ue,Fe,me,Ne,ce,Ke,it,bt,Nt,nt,Ye,kt,At,St,Bt,Zt,Et,Ae,ot,dt,pt,at,Xe,rt,Qe,zt,Yt,lr,mr,_r,Ht,Re,xe,Oe,Ie,De,ct,_e,fe,pe,mt,It,Pt,rr,Wr,Nr,Er,Br,mi,Di,Ii,Ci,nn,ii,wi,Gi,Ft,gt,Ut,Wt,xr,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so){"use strict";var Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa;return Kr=t.gl,Ia=t.context,Yo=t.strings,fa=t.next,kn=t.current,Ta=t.draw,ys=t.elements,uo=t.buffer,ls=t.shader,$a=t.attributes,fo=t.vao,mn=t.uniforms,ra=t.framebuffer,wa=t.extensions,ws=t.timer,Co=t.isBufferArgs,Po=fa.blend_color,ji=kn.blend_color,gn=fa.blend_equation,Ps=kn.blend_equation,Ha=fa.blend_func,Sn=kn.blend_func,ao=fa.depth_range,Ba=kn.depth_range,Ko=fa.colorMask,Qo=kn.colorMask,Wi=fa.polygonOffset_offset,Sa=kn.polygonOffset_offset,Qa=fa.sample_coverage,vn=kn.sample_coverage,da=fa.stencil_func,la=kn.stencil_func,vo=fa.stencil_opFront,As=kn.stencil_opFront,ps=fa.stencil_opBack,co=kn.stencil_opBack,mo=fa.scissor_box,No=kn.scissor_box,jn=fa.viewport,Go=kn.viewport,Ys={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},qs={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ns={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Oa={add:32774,subtract:32778,"reverse subtract":32779},ha={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Vs={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ya={cw:2304,ccw:2305},_n={},Vn={},wo=new Float32Array(16),Ra=new Float32Array(16),Xn=new Float32Array(16),un=new Float32Array(16),$n=new Float32Array(16),Ka=new Float32Array(16),qn=new Float32Array(16),Eo=new Float32Array(16),Ja=new Float32Array(16),lo=new Float32Array(16),eo=new Float32Array(16),sa=new Float32Array(16),es=new Float32Array(16),Na=new Float32Array(16),tn=new Float32Array(16),Pa=new Float32Array(16),to=new Float32Array(16),yo=new Float32Array(16),Jo=new Float32Array(16),Ao=new Float32Array(16),Dn=new Float32Array(16),_a=new Float32Array(16),Ws=new Float32Array(16),Ca=new Float32Array(16),Es=new Float32Array(16),Ts=new Float32Array(16),Ho=new Float32Array(16),Wa=new Float32Array(16),To=new Float32Array(16),ts=new Float32Array(16),Wo=new Float32Array(16),qa=new Float32Array(16),{draw:function(ln){var Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,Tt,Vt,wr,yr,Fr,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js;if(Bo=ra.next,Bo!==ra.cur&&(Bo?Kr.bindFramebuffer(36160,Bo.framebuffer):Kr.bindFramebuffer(36160,null),ra.cur=Bo),kn.dirty){var cs,sl,ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Ul,le,w,q,Q,ee,ue,Ve,et,yt,Dt,ir;cs=Ko[0],sl=Ko[1],ll=Ko[2],il=Ko[3],(cs!==Qo[0]||sl!==Qo[1]||ll!==Qo[2]||il!==Qo[3])&&(Kr.colorMask(cs,sl,ll,il),Qo[0]=cs,Qo[1]=sl,Qo[2]=ll,Qo[3]=il),zl=fa.frontFace,zl!==kn.frontFace&&(Kr.frontFace(zl),kn.frontFace=zl),Ml=fa.polygonOffset_enable,Ml!==kn.polygonOffset_enable&&(Ml?Kr.enable(32823):Kr.disable(32823),kn.polygonOffset_enable=Ml),Rl=Wi[0],Al=Wi[1],(Rl!==Sa[0]||Al!==Sa[1])&&(Kr.polygonOffset(Rl,Al),Sa[0]=Rl,Sa[1]=Al),Ll=fa.sample_alpha,Ll!==kn.sample_alpha&&(Ll?Kr.enable(32926):Kr.disable(32926),kn.sample_alpha=Ll),ms=fa.sample_enable,ms!==kn.sample_enable&&(ms?Kr.enable(32928):Kr.disable(32928),kn.sample_enable=ms),Os=Qa[0],Xl=Qa[1],(Os!==vn[0]||Xl!==vn[1])&&(Kr.sampleCoverage(Os,Xl),vn[0]=Os,vn[1]=Xl),Gl=fa.stencil_enable,Gl!==kn.stencil_enable&&(Gl?Kr.enable(2960):Kr.disable(2960),kn.stencil_enable=Gl),Ul=fa.stencil_mask,Ul!==kn.stencil_mask&&(Kr.stencilMask(Ul),kn.stencil_mask=Ul),le=da[0],w=da[1],q=da[2],(le!==la[0]||w!==la[1]||q!==la[2])&&(Kr.stencilFunc(le,w,q),la[0]=le,la[1]=w,la[2]=q),Q=vo[0],ee=vo[1],ue=vo[2],Ve=vo[3],(Q!==As[0]||ee!==As[1]||ue!==As[2]||Ve!==As[3])&&(Kr.stencilOpSeparate(Q,ee,ue,Ve),As[0]=Q,As[1]=ee,As[2]=ue,As[3]=Ve),et=ps[0],yt=ps[1],Dt=ps[2],ir=ps[3],(et!==co[0]||yt!==co[1]||Dt!==co[2]||ir!==co[3])&&(Kr.stencilOpSeparate(et,yt,Dt,ir),co[0]=et,co[1]=yt,co[2]=Dt,co[3]=ir)}ko=ln.viewportX,_n.x=ko,oo=ln.viewportY,_n.y=oo,za=ln.viewportWidth,_n.width=za,ea=ln.viewportHeight,_n.height=ea,rs=_n.x|0,$s=_n.y|0,us="width"in _n?_n.width|0:Ia.framebufferWidth-rs,Ds="height"in _n?_n.height|0:Ia.framebufferHeight-$s,fl=Ia.viewportWidth,Ia.viewportWidth=us,as=Ia.viewportHeight,Ia.viewportHeight=Ds,Kr.viewport(rs,$s,us,Ds),Go[0]=rs,Go[1]=$s,Go[2]=us,Go[3]=Ds,Kr.blendColor(0,0,0,0),ji[0]=0,ji[1]=0,ji[2]=0,ji[3]=0,n?Kr.enable(3042):Kr.disable(3042),kn.blend_enable=n,Kr.blendEquationSeparate(32774,32774),Ps[0]=32774,Ps[1]=32774,Kr.blendFuncSeparate(770,771,1,1),Sn[0]=770,Sn[1]=771,Sn[2]=1,Sn[3]=1,i?Kr.enable(2884):Kr.disable(2884),kn.cull_enable=i,Kr.cullFace(a),kn.cull_face=a,o?Kr.enable(2929):Kr.disable(2929),kn.depth_enable=o,Kr.depthFunc(s),kn.depth_func=s,Kr.depthMask(u),kn.depth_mask=u,Kr.depthRange(0,1),Ba[0]=0,Ba[1]=1,l?Kr.enable(3024):Kr.disable(3024),kn.dither=l,Kr.lineWidth(f),kn.lineWidth=f,Ma=ln.scissorX,Vn.x=Ma,Qs=ln.scissorY,Vn.y=Qs,ho=ln.scissorWidth,Vn.width=ho,gs=ln.scissorHeight,Vn.height=gs,Vo=Vn.x|0,Do=Vn.y|0,Lo="width"in Vn?Vn.width|0:Ia.framebufferWidth-Vo,xs="height"in Vn?Vn.height|0:Ia.framebufferHeight-Do,Kr.scissor(Vo,Do,Lo,xs),No[0]=Vo,No[1]=Do,No[2]=Lo,No[3]=xs,c?Kr.enable(3089):Kr.disable(3089),kn.scissor_enable=c,ks=kn.profile,kn.profile=!1,Kr.useProgram(h.program),fo.setVAO(null),Ea=p.location,Jn=$a[Ea],Jn.buffer||Kr.enableVertexAttribArray(Ea),(Jn.type!==d.dtype||Jn.size!==4||Jn.buffer!==d||Jn.normalized!==!1||Jn.offset!==0||Jn.stride!==0)&&(Kr.bindBuffer(34962,d.buffer),Kr.vertexAttribPointer(Ea,4,d.dtype,!1,0,0),Jn.type=d.dtype,Jn.size=4,Jn.buffer=d,Jn.normalized=!1,Jn.offset=0,Jn.stride=0),Oo=b.location,rl=$a[Oo],rl.buffer||Kr.enableVertexAttribArray(Oo),(rl.type!==x.dtype||rl.size!==4||rl.buffer!==x||rl.normalized!==!1||rl.offset!==0||rl.stride!==0)&&(Kr.bindBuffer(34962,x.buffer),Kr.vertexAttribPointer(Oo,4,x.dtype,!1,0,0),rl.type=x.dtype,rl.size=4,rl.buffer=x,rl.normalized=!1,rl.offset=0,rl.stride=0),Gs=k.location,bs=$a[Gs],bs.buffer||Kr.enableVertexAttribArray(Gs),(bs.type!==v.dtype||bs.size!==4||bs.buffer!==v||bs.normalized!==!1||bs.offset!==0||bs.stride!==0)&&(Kr.bindBuffer(34962,v.buffer),Kr.vertexAttribPointer(Gs,4,v.dtype,!1,0,0),bs.type=v.dtype,bs.size=4,bs.buffer=v,bs.normalized=!1,bs.offset=0,bs.stride=0),zs=T.location,$o=$a[zs],$o.buffer||Kr.enableVertexAttribArray(zs),($o.type!==E.dtype||$o.size!==4||$o.buffer!==E||$o.normalized!==!1||$o.offset!==0||$o.stride!==0)&&(Kr.bindBuffer(34962,E.buffer),Kr.vertexAttribPointer(zs,4,E.dtype,!1,0,0),$o.type=E.dtype,$o.size=4,$o.buffer=E,$o.normalized=!1,$o.offset=0,$o.stride=0),Aa=_.location,os=$a[Aa],os.buffer||Kr.enableVertexAttribArray(Aa),(os.type!==L.dtype||os.size!==4||os.buffer!==L||os.normalized!==!1||os.offset!==0||os.stride!==0)&&(Kr.bindBuffer(34962,L.buffer),Kr.vertexAttribPointer(Aa,4,L.dtype,!1,0,0),os.type=L.dtype,os.size=4,os.buffer=L,os.normalized=!1,os.offset=0,os.stride=0),_l=S.location,Ss=$a[_l],Ss.buffer||Kr.enableVertexAttribArray(_l),(Ss.type!==C.dtype||Ss.size!==4||Ss.buffer!==C||Ss.normalized!==!1||Ss.offset!==0||Ss.stride!==0)&&(Kr.bindBuffer(34962,C.buffer),Kr.vertexAttribPointer(_l,4,C.dtype,!1,0,0),Ss.type=C.dtype,Ss.size=4,Ss.buffer=C,Ss.normalized=!1,Ss.offset=0,Ss.stride=0),po=P.location,go=$a[po],go.buffer||Kr.enableVertexAttribArray(po),(go.type!==m.dtype||go.size!==4||go.buffer!==m||go.normalized!==!1||go.offset!==0||go.stride!==0)&&(Kr.bindBuffer(34962,m.buffer),Kr.vertexAttribPointer(po,4,m.dtype,!1,0,0),go.type=m.dtype,go.size=4,go.buffer=m,go.normalized=!1,go.offset=0,go.stride=0),ss=B.location,qo=$a[ss],qo.buffer||Kr.enableVertexAttribArray(ss),(qo.type!==A.dtype||qo.size!==4||qo.buffer!==A||qo.normalized!==!1||qo.offset!==0||qo.stride!==0)&&(Kr.bindBuffer(34962,A.buffer),Kr.vertexAttribPointer(ss,4,A.dtype,!1,0,0),qo.type=A.dtype,qo.size=4,qo.buffer=A,qo.normalized=!1,qo.offset=0,qo.stride=0),zo=U.location,io=$a[zo],io.buffer||Kr.enableVertexAttribArray(zo),(io.type!==F.dtype||io.size!==4||io.buffer!==F||io.normalized!==!1||io.offset!==0||io.stride!==0)&&(Kr.bindBuffer(34962,F.buffer),Kr.vertexAttribPointer(zo,4,F.dtype,!1,0,0),io.type=F.dtype,io.size=4,io.buffer=F,io.normalized=!1,io.offset=0,io.stride=0),Io=j.location,Da=$a[Io],Da.buffer||Kr.enableVertexAttribArray(Io),(Da.type!==G.dtype||Da.size!==4||Da.buffer!==G||Da.normalized!==!1||Da.offset!==0||Da.stride!==0)&&(Kr.bindBuffer(34962,G.buffer),Kr.vertexAttribPointer(Io,4,G.dtype,!1,0,0),Da.type=G.dtype,Da.size=4,Da.buffer=G,Da.normalized=!1,Da.offset=0,Da.stride=0),vs=N.location,fs=$a[vs],fs.buffer||Kr.enableVertexAttribArray(vs),(fs.type!==H.dtype||fs.size!==4||fs.buffer!==H||fs.normalized!==!1||fs.offset!==0||fs.stride!==0)&&(Kr.bindBuffer(34962,H.buffer),Kr.vertexAttribPointer(vs,4,H.dtype,!1,0,0),fs.type=H.dtype,fs.size=4,fs.buffer=H,fs.normalized=!1,fs.offset=0,fs.stride=0),cl=re.location,el=$a[cl],el.buffer||Kr.enableVertexAttribArray(cl),(el.type!==W.dtype||el.size!==4||el.buffer!==W||el.normalized!==!1||el.offset!==0||el.stride!==0)&&(Kr.bindBuffer(34962,W.buffer),Kr.vertexAttribPointer(cl,4,W.dtype,!1,0,0),el.type=W.dtype,el.size=4,el.buffer=W,el.normalized=!1,el.offset=0,el.stride=0),Hs=be.location,Ro=$a[Hs],Ro.buffer||Kr.enableVertexAttribArray(Hs),(Ro.type!==ae.dtype||Ro.size!==4||Ro.buffer!==ae||Ro.normalized!==!1||Ro.offset!==0||Ro.stride!==0)&&(Kr.bindBuffer(34962,ae.buffer),Kr.vertexAttribPointer(Hs,4,ae.dtype,!1,0,0),Ro.type=ae.dtype,Ro.size=4,Ro.buffer=ae,Ro.normalized=!1,Ro.offset=0,Ro.stride=0),tl=Ce.location,Fs=$a[tl],Fs.buffer||Kr.enableVertexAttribArray(tl),(Fs.type!==Pe.dtype||Fs.size!==4||Fs.buffer!==Pe||Fs.normalized!==!1||Fs.offset!==0||Fs.stride!==0)&&(Kr.bindBuffer(34962,Pe.buffer),Kr.vertexAttribPointer(tl,4,Pe.dtype,!1,0,0),Fs.type=Pe.dtype,Fs.size=4,Fs.buffer=Pe,Fs.normalized=!1,Fs.offset=0,Fs.stride=0),hl=te.location,Fa=$a[hl],Fa.buffer||Kr.enableVertexAttribArray(hl),(Fa.type!==de.dtype||Fa.size!==4||Fa.buffer!==de||Fa.normalized!==!1||Fa.offset!==0||Fa.stride!==0)&&(Kr.bindBuffer(34962,de.buffer),Kr.vertexAttribPointer(hl,4,de.dtype,!1,0,0),Fa.type=de.dtype,Fa.size=4,Fa.buffer=de,Fa.normalized=!1,Fa.offset=0,Fa.stride=0),Ms=Ee.location,jo=$a[Ms],jo.buffer||Kr.enableVertexAttribArray(Ms),(jo.type!==ke.dtype||jo.size!==4||jo.buffer!==ke||jo.normalized!==!1||jo.offset!==0||jo.stride!==0)&&(Kr.bindBuffer(34962,ke.buffer),Kr.vertexAttribPointer(Ms,4,ke.dtype,!1,0,0),jo.type=ke.dtype,jo.size=4,jo.buffer=ke,jo.normalized=!1,jo.offset=0,jo.stride=0),Rs=ln.contextColor,Is=Rs[0],Bs=Rs[1],Tt=Rs[2],Vt=Rs[3],Kr.uniform4f(Me.location,Is,Bs,Tt,Vt),wr=ln.dim0A,Kr.uniformMatrix4fv(Ue.location,!1,Array.isArray(wr)||wr instanceof Float32Array?wr:(wo[0]=wr[0],wo[1]=wr[1],wo[2]=wr[2],wo[3]=wr[3],wo[4]=wr[4],wo[5]=wr[5],wo[6]=wr[6],wo[7]=wr[7],wo[8]=wr[8],wo[9]=wr[9],wo[10]=wr[10],wo[11]=wr[11],wo[12]=wr[12],wo[13]=wr[13],wo[14]=wr[14],wo[15]=wr[15],wo)),yr=ln.dim0B,Kr.uniformMatrix4fv(Fe.location,!1,Array.isArray(yr)||yr instanceof Float32Array?yr:(Ra[0]=yr[0],Ra[1]=yr[1],Ra[2]=yr[2],Ra[3]=yr[3],Ra[4]=yr[4],Ra[5]=yr[5],Ra[6]=yr[6],Ra[7]=yr[7],Ra[8]=yr[8],Ra[9]=yr[9],Ra[10]=yr[10],Ra[11]=yr[11],Ra[12]=yr[12],Ra[13]=yr[13],Ra[14]=yr[14],Ra[15]=yr[15],Ra)),Fr=ln.dim0C,Kr.uniformMatrix4fv(me.location,!1,Array.isArray(Fr)||Fr instanceof Float32Array?Fr:(Xn[0]=Fr[0],Xn[1]=Fr[1],Xn[2]=Fr[2],Xn[3]=Fr[3],Xn[4]=Fr[4],Xn[5]=Fr[5],Xn[6]=Fr[6],Xn[7]=Fr[7],Xn[8]=Fr[8],Xn[9]=Fr[9],Xn[10]=Fr[10],Xn[11]=Fr[11],Xn[12]=Fr[12],Xn[13]=Fr[13],Xn[14]=Fr[14],Xn[15]=Fr[15],Xn)),gi=ln.dim0D,Kr.uniformMatrix4fv(Ne.location,!1,Array.isArray(gi)||gi instanceof Float32Array?gi:(un[0]=gi[0],un[1]=gi[1],un[2]=gi[2],un[3]=gi[3],un[4]=gi[4],un[5]=gi[5],un[6]=gi[6],un[7]=gi[7],un[8]=gi[8],un[9]=gi[9],un[10]=gi[10],un[11]=gi[11],un[12]=gi[12],un[13]=gi[13],un[14]=gi[14],un[15]=gi[15],un)),Ti=ln.dim1A,Kr.uniformMatrix4fv(ce.location,!1,Array.isArray(Ti)||Ti instanceof Float32Array?Ti:($n[0]=Ti[0],$n[1]=Ti[1],$n[2]=Ti[2],$n[3]=Ti[3],$n[4]=Ti[4],$n[5]=Ti[5],$n[6]=Ti[6],$n[7]=Ti[7],$n[8]=Ti[8],$n[9]=Ti[9],$n[10]=Ti[10],$n[11]=Ti[11],$n[12]=Ti[12],$n[13]=Ti[13],$n[14]=Ti[14],$n[15]=Ti[15],$n)),ki=ln.dim1B,Kr.uniformMatrix4fv(Ke.location,!1,Array.isArray(ki)||ki instanceof Float32Array?ki:(Ka[0]=ki[0],Ka[1]=ki[1],Ka[2]=ki[2],Ka[3]=ki[3],Ka[4]=ki[4],Ka[5]=ki[5],Ka[6]=ki[6],Ka[7]=ki[7],Ka[8]=ki[8],Ka[9]=ki[9],Ka[10]=ki[10],Ka[11]=ki[11],Ka[12]=ki[12],Ka[13]=ki[13],Ka[14]=ki[14],Ka[15]=ki[15],Ka)),Ji=ln.dim1C,Kr.uniformMatrix4fv(it.location,!1,Array.isArray(Ji)||Ji instanceof Float32Array?Ji:(qn[0]=Ji[0],qn[1]=Ji[1],qn[2]=Ji[2],qn[3]=Ji[3],qn[4]=Ji[4],qn[5]=Ji[5],qn[6]=Ji[6],qn[7]=Ji[7],qn[8]=Ji[8],qn[9]=Ji[9],qn[10]=Ji[10],qn[11]=Ji[11],qn[12]=Ji[12],qn[13]=Ji[13],qn[14]=Ji[14],qn[15]=Ji[15],qn)),Fn=ln.dim1D,Kr.uniformMatrix4fv(bt.location,!1,Array.isArray(Fn)||Fn instanceof Float32Array?Fn:(Eo[0]=Fn[0],Eo[1]=Fn[1],Eo[2]=Fn[2],Eo[3]=Fn[3],Eo[4]=Fn[4],Eo[5]=Fn[5],Eo[6]=Fn[6],Eo[7]=Fn[7],Eo[8]=Fn[8],Eo[9]=Fn[9],Eo[10]=Fn[10],Eo[11]=Fn[11],Eo[12]=Fn[12],Eo[13]=Fn[13],Eo[14]=Fn[14],Eo[15]=Fn[15],Eo)),Pi=ln.drwLayer,Kr.uniform1f(Nt.location,Pi),hi=ln.hiA,Kr.uniformMatrix4fv(nt.location,!1,Array.isArray(hi)||hi instanceof Float32Array?hi:(Ja[0]=hi[0],Ja[1]=hi[1],Ja[2]=hi[2],Ja[3]=hi[3],Ja[4]=hi[4],Ja[5]=hi[5],Ja[6]=hi[6],Ja[7]=hi[7],Ja[8]=hi[8],Ja[9]=hi[9],Ja[10]=hi[10],Ja[11]=hi[11],Ja[12]=hi[12],Ja[13]=hi[13],Ja[14]=hi[14],Ja[15]=hi[15],Ja)),Li=ln.hiB,Kr.uniformMatrix4fv(Ye.location,!1,Array.isArray(Li)||Li instanceof Float32Array?Li:(lo[0]=Li[0],lo[1]=Li[1],lo[2]=Li[2],lo[3]=Li[3],lo[4]=Li[4],lo[5]=Li[5],lo[6]=Li[6],lo[7]=Li[7],lo[8]=Li[8],lo[9]=Li[9],lo[10]=Li[10],lo[11]=Li[11],lo[12]=Li[12],lo[13]=Li[13],lo[14]=Li[14],lo[15]=Li[15],lo)),Si=ln.hiC,Kr.uniformMatrix4fv(kt.location,!1,Array.isArray(Si)||Si instanceof Float32Array?Si:(eo[0]=Si[0],eo[1]=Si[1],eo[2]=Si[2],eo[3]=Si[3],eo[4]=Si[4],eo[5]=Si[5],eo[6]=Si[6],eo[7]=Si[7],eo[8]=Si[8],eo[9]=Si[9],eo[10]=Si[10],eo[11]=Si[11],eo[12]=Si[12],eo[13]=Si[13],eo[14]=Si[14],eo[15]=Si[15],eo)),Gn=ln.hiD,Kr.uniformMatrix4fv(At.location,!1,Array.isArray(Gn)||Gn instanceof Float32Array?Gn:(sa[0]=Gn[0],sa[1]=Gn[1],sa[2]=Gn[2],sa[3]=Gn[3],sa[4]=Gn[4],sa[5]=Gn[5],sa[6]=Gn[6],sa[7]=Gn[7],sa[8]=Gn[8],sa[9]=Gn[9],sa[10]=Gn[10],sa[11]=Gn[11],sa[12]=Gn[12],sa[13]=Gn[13],sa[14]=Gn[14],sa[15]=Gn[15],sa)),ta=ln.loA,Kr.uniformMatrix4fv(St.location,!1,Array.isArray(ta)||ta instanceof Float32Array?ta:(es[0]=ta[0],es[1]=ta[1],es[2]=ta[2],es[3]=ta[3],es[4]=ta[4],es[5]=ta[5],es[6]=ta[6],es[7]=ta[7],es[8]=ta[8],es[9]=ta[9],es[10]=ta[10],es[11]=ta[11],es[12]=ta[12],es[13]=ta[13],es[14]=ta[14],es[15]=ta[15],es)),ya=ln.loB,Kr.uniformMatrix4fv(Bt.location,!1,Array.isArray(ya)||ya instanceof Float32Array?ya:(Na[0]=ya[0],Na[1]=ya[1],Na[2]=ya[2],Na[3]=ya[3],Na[4]=ya[4],Na[5]=ya[5],Na[6]=ya[6],Na[7]=ya[7],Na[8]=ya[8],Na[9]=ya[9],Na[10]=ya[10],Na[11]=ya[11],Na[12]=ya[12],Na[13]=ya[13],Na[14]=ya[14],Na[15]=ya[15],Na)),ia=ln.loC,Kr.uniformMatrix4fv(Zt.location,!1,Array.isArray(ia)||ia instanceof Float32Array?ia:(tn[0]=ia[0],tn[1]=ia[1],tn[2]=ia[2],tn[3]=ia[3],tn[4]=ia[4],tn[5]=ia[5],tn[6]=ia[6],tn[7]=ia[7],tn[8]=ia[8],tn[9]=ia[9],tn[10]=ia[10],tn[11]=ia[11],tn[12]=ia[12],tn[13]=ia[13],tn[14]=ia[14],tn[15]=ia[15],tn)),pa=ln.loD,Kr.uniformMatrix4fv(Et.location,!1,Array.isArray(pa)||pa instanceof Float32Array?pa:(Pa[0]=pa[0],Pa[1]=pa[1],Pa[2]=pa[2],Pa[3]=pa[3],Pa[4]=pa[4],Pa[5]=pa[5],Pa[6]=pa[6],Pa[7]=pa[7],Pa[8]=pa[8],Pa[9]=pa[9],Pa[10]=pa[10],Pa[11]=pa[11],Pa[12]=pa[12],Pa[13]=pa[13],Pa[14]=pa[14],Pa[15]=pa[15],Pa)),va=ln.maskHeight,Kr.uniform1f(Ae.location,va),zn=ln.maskTexture,zn&&zn._reglType==="framebuffer"&&(zn=zn.color[0]),is=zn._texture,Kr.uniform1i(ot.location,is.bind()),Kr.uniform1i(dt.location,pt.bind()),Cs=ln.resolution,Ks=Cs[0],dl=Cs[1],Kr.uniform2f(at.location,Ks,dl),xl=ln.viewBoxPos,Ol=xl[0],bl=xl[1],Kr.uniform2f(Xe.location,Ol,bl),eu=ln.viewBoxSize,Zl=eu[0],Vl=eu[1],Kr.uniform2f(rt.location,Zl,Vl),ja=Ta.elements,ja?Kr.bindBuffer(34963,ja.buffer.buffer):fo.currentVAO&&(ja=ys.getElements(fo.currentVAO.elements),ja&&Kr.bindBuffer(34963,ja.buffer.buffer)),ns=ln.offset,Js=ln.count,Js&&(ja?Kr.drawElements(1,Js,ja.type,ns<<(ja.type-5121>>1)):Kr.drawArrays(1,ns,Js),kn.dirty=!0,fo.setVAO(null),Ia.viewportWidth=fl,Ia.viewportHeight=as,kn.profile=ks,is.unbind(),pt.unbind())},scope:function(ln,Bo,ko){var oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,Tt,Vt,wr,yr,Fr,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Ul,le,w,q,Q,ee,ue,Ve,et,yt,Dt,ir,or,kr,Vr,he,Se,qe,Ge,lt,tt,vt,Gt,nr,cr,Ar,Rr,ri,si,Mi,hn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,ql,ou,Pu,iu,tu,Wu,Qu,Ku,ju,Xu,lf,xf,ef,tf,Z,se,ze,je,$e,st,jt,_t,hr,Cr,zr,ui,$r,Oi,fn,pi,zi,Xi,pn,sn,bi,xo,no,Xo,js,El,Pl,pu,Il,fu,Zu,Vu,rf,ds,Wl,Au,Tu,uf,df,Ef,vf,fc,Be,qt,ar,Qr,vi,fi,di,on,Bn,Ln,wn,Ls,ua,Hn,Ni,Hr,_i,dn,En,Yi,ga,Kn,hs,$i,Ui,ro,na,On,In,Va,_s,ul,Qn,Mo,nl,pl,Dl,Fu,mf,Ql,kf,Cu,_f,bf,Lf,Gu,hf,yf,Fl,wf,cu,Y,R,J,O,K,ge,ne,Le,Ze,Ct,dr,Mr,ur,Je,ht,wt,Kt,sr,Qt,fr,er,Ot,Jt,Lt,Tr,qr,ci,Cn,Ki,yn,Xa,ca,An,Pn,Nn,xa,Zo,ru,yu,Du,vu,zu,Ju,Uf,wd,Ad;oo=ln.viewportX,_n.x=oo,za=ln.viewportY,_n.y=za,ea=ln.viewportWidth,_n.width=ea,rs=ln.viewportHeight,_n.height=rs,$s=_n.x|0,us=_n.y|0,Ds="width"in _n?_n.width|0:Ia.framebufferWidth-$s,fl="height"in _n?_n.height|0:Ia.framebufferHeight-us,as=Ia.viewportWidth,Ia.viewportWidth=Ds,Ma=Ia.viewportHeight,Ia.viewportHeight=fl,Qs=jn[0],jn[0]=$s,ho=jn[1],jn[1]=us,gs=jn[2],jn[2]=Ds,Vo=jn[3],jn[3]=fl,Do=Po[0],Po[0]=Qe,Lo=Po[1],Po[1]=zt,xs=Po[2],Po[2]=Yt,ks=Po[3],Po[3]=lr,Ea=fa.blend_enable,fa.blend_enable=mr,Jn=gn[0],gn[0]=_r,Oo=gn[1],gn[1]=Ht,rl=Ha[0],Ha[0]=Re,Gs=Ha[1],Ha[1]=xe,bs=Ha[2],Ha[2]=Oe,zs=Ha[3],Ha[3]=Ie,$o=fa.cull_enable,fa.cull_enable=De,Aa=fa.cull_face,fa.cull_face=ct,os=fa.depth_enable,fa.depth_enable=_e,_l=fa.depth_func,fa.depth_func=fe,Ss=fa.depth_mask,fa.depth_mask=pe,po=ao[0],ao[0]=mt,go=ao[1],ao[1]=It,ss=fa.dither,fa.dither=Pt,qo=fa.lineWidth,fa.lineWidth=rr,zo=ln.scissorX,Vn.x=zo,io=ln.scissorY,Vn.y=io,Io=ln.scissorWidth,Vn.width=Io,Da=ln.scissorHeight,Vn.height=Da,vs=Vn.x|0,fs=Vn.y|0,cl="width"in Vn?Vn.width|0:Ia.framebufferWidth-vs,el="height"in Vn?Vn.height|0:Ia.framebufferHeight-fs,Hs=mo[0],mo[0]=vs,Ro=mo[1],mo[1]=fs,tl=mo[2],mo[2]=cl,Fs=mo[3],mo[3]=el,hl=fa.scissor_enable,fa.scissor_enable=Wr,Fa=kn.profile,kn.profile=!1,Ms=ln.offset,jo=Ta.offset,Ta.offset=Ms,Rs=ln.count,Is=Ta.count,Ta.count=Rs,Bs=Ta.primitive,Ta.primitive=Nr,Tt=mn[Br],mn[Br]=Er,Vt=ln.resolution,wr=mn[mi],mn[mi]=Vt,yr=ln.viewBoxPos,Fr=mn[Di],mn[Di]=yr,gi=ln.viewBoxSize,Ti=mn[Ii],mn[Ii]=gi,ki=ln.dim0A,Ji=mn[Ci],mn[Ci]=ki,Fn=ln.dim1A,Pi=mn[nn],mn[nn]=Fn,hi=ln.dim0B,Li=mn[ii],mn[ii]=hi,Si=ln.dim1B,Gn=mn[wi],mn[wi]=Si,ta=ln.dim0C,ya=mn[Gi],mn[Gi]=ta,ia=ln.dim1C,pa=mn[Ft],mn[Ft]=ia,va=ln.dim0D,zn=mn[gt],mn[gt]=va,is=ln.dim1D,Cs=mn[Ut],mn[Ut]=is,Ks=ln.loA,dl=mn[Wt],mn[Wt]=Ks,xl=ln.hiA,Ol=mn[xr],mn[xr]=xl,bl=ln.loB,eu=mn[Lr],mn[Lr]=bl,Zl=ln.hiB,Vl=mn[Ur],mn[Ur]=Zl,ja=ln.loC,ns=mn[Ir],mn[Ir]=ja,Js=ln.hiC,cs=mn[Gr],mn[Gr]=Js,sl=ln.loD,ll=mn[jr],mn[jr]=sl,il=ln.hiD,zl=mn[yi],mn[yi]=il,Ml=ln.contextColor,Rl=mn[Ei],mn[Ei]=Ml,Al=ln.maskTexture,Ll=mn[Vi],mn[Vi]=Al,ms=ln.drwLayer,Os=mn[ti],mn[ti]=ms,Xl=ln.maskHeight,Gl=mn[en],mn[en]=Xl,Ul=Yr.state,Yr.state=1,le=Yr.x,Yr.x=0,w=Yr.y,Yr.y=0,q=Yr.z,Yr.z=0,Q=Yr.w,Yr.w=0,ee=Yr.buffer,Yr.buffer=x,ue=Yr.size,Yr.size=0,Ve=Yr.normalized,Yr.normalized=!1,et=Yr.type,Yr.type=x.dtype,yt=Yr.offset,Yr.offset=0,Dt=Yr.stride,Yr.stride=0,ir=Yr.divisor,Yr.divisor=0,or=oi.state,oi.state=1,kr=oi.x,oi.x=0,Vr=oi.y,oi.y=0,he=oi.z,oi.z=0,Se=oi.w,oi.w=0,qe=oi.buffer,oi.buffer=v,Ge=oi.size,oi.size=0,lt=oi.normalized,oi.normalized=!1,tt=oi.type,oi.type=v.dtype,vt=oi.offset,oi.offset=0,Gt=oi.stride,oi.stride=0,nr=oi.divisor,oi.divisor=0,cr=Bi.state,Bi.state=1,Ar=Bi.x,Bi.x=0,Rr=Bi.y,Bi.y=0,ri=Bi.z,Bi.z=0,si=Bi.w,Bi.w=0,Mi=Bi.buffer,Bi.buffer=E,hn=Bi.size,Bi.size=0,Zn=Bi.normalized,Bi.normalized=!1,Yn=Bi.type,Bi.type=E.dtype,Ua=Bi.offset,Bi.offset=0,Fo=Bi.stride,Bi.stride=0,vl=Bi.divisor,Bi.divisor=0,Us=an.state,an.state=1,ml=an.x,an.x=0,au=an.y,an.y=0,Sl=an.z,an.z=0,Yl=an.w,an.w=0,ql=an.buffer,an.buffer=L,ou=an.size,an.size=0,Pu=an.normalized,an.normalized=!1,iu=an.type,an.type=L.dtype,tu=an.offset,an.offset=0,Wu=an.stride,an.stride=0,Qu=an.divisor,an.divisor=0,Ku=rn.state,rn.state=1,ju=rn.x,rn.x=0,Xu=rn.y,rn.y=0,lf=rn.z,rn.z=0,xf=rn.w,rn.w=0,ef=rn.buffer,rn.buffer=C,tf=rn.size,rn.size=0,Z=rn.normalized,rn.normalized=!1,se=rn.type,rn.type=C.dtype,ze=rn.offset,rn.offset=0,je=rn.stride,rn.stride=0,$e=rn.divisor,rn.divisor=0,st=Fi.state,Fi.state=1,jt=Fi.x,Fi.x=0,_t=Fi.y,Fi.y=0,hr=Fi.z,Fi.z=0,Cr=Fi.w,Fi.w=0,zr=Fi.buffer,Fi.buffer=m,ui=Fi.size,Fi.size=0,$r=Fi.normalized,Fi.normalized=!1,Oi=Fi.type,Fi.type=m.dtype,fn=Fi.offset,Fi.offset=0,pi=Fi.stride,Fi.stride=0,zi=Fi.divisor,Fi.divisor=0,Xi=Ri.state,Ri.state=1,pn=Ri.x,Ri.x=0,sn=Ri.y,Ri.y=0,bi=Ri.z,Ri.z=0,xo=Ri.w,Ri.w=0,no=Ri.buffer,Ri.buffer=A,Xo=Ri.size,Ri.size=0,js=Ri.normalized,Ri.normalized=!1,El=Ri.type,Ri.type=A.dtype,Pl=Ri.offset,Ri.offset=0,pu=Ri.stride,Ri.stride=0,Il=Ri.divisor,Ri.divisor=0,fu=xn.state,xn.state=1,Zu=xn.x,xn.x=0,Vu=xn.y,xn.y=0,rf=xn.z,xn.z=0,ds=xn.w,xn.w=0,Wl=xn.buffer,xn.buffer=F,Au=xn.size,xn.size=0,Tu=xn.normalized,xn.normalized=!1,uf=xn.type,xn.type=F.dtype,df=xn.offset,xn.offset=0,Ef=xn.stride,xn.stride=0,vf=xn.divisor,xn.divisor=0,fc=xi.state,xi.state=1,Be=xi.x,xi.x=0,qt=xi.y,xi.y=0,ar=xi.z,xi.z=0,Qr=xi.w,xi.w=0,vi=xi.buffer,xi.buffer=G,fi=xi.size,xi.size=0,di=xi.normalized,xi.normalized=!1,on=xi.type,xi.type=G.dtype,Bn=xi.offset,xi.offset=0,Ln=xi.stride,xi.stride=0,wn=xi.divisor,xi.divisor=0,Ls=Xr.state,Xr.state=1,ua=Xr.x,Xr.x=0,Hn=Xr.y,Xr.y=0,Ni=Xr.z,Xr.z=0,Hr=Xr.w,Xr.w=0,_i=Xr.buffer,Xr.buffer=H,dn=Xr.size,Xr.size=0,En=Xr.normalized,Xr.normalized=!1,Yi=Xr.type,Xr.type=H.dtype,ga=Xr.offset,Xr.offset=0,Kn=Xr.stride,Xr.stride=0,hs=Xr.divisor,Xr.divisor=0,$i=ft.state,ft.state=1,Ui=ft.x,ft.x=0,ro=ft.y,ft.y=0,na=ft.z,ft.z=0,On=ft.w,ft.w=0,In=ft.buffer,ft.buffer=W,Va=ft.size,ft.size=0,_s=ft.normalized,ft.normalized=!1,ul=ft.type,ft.type=W.dtype,Qn=ft.offset,ft.offset=0,Mo=ft.stride,ft.stride=0,nl=ft.divisor,ft.divisor=0,pl=tr.state,tr.state=1,Dl=tr.x,tr.x=0,Fu=tr.y,tr.y=0,mf=tr.z,tr.z=0,Ql=tr.w,tr.w=0,kf=tr.buffer,tr.buffer=ae,Cu=tr.size,tr.size=0,_f=tr.normalized,tr.normalized=!1,bf=tr.type,tr.type=ae.dtype,Lf=tr.offset,tr.offset=0,Gu=tr.stride,tr.stride=0,hf=tr.divisor,tr.divisor=0,yf=pr.state,pr.state=1,Fl=pr.x,pr.x=0,wf=pr.y,pr.y=0,cu=pr.z,pr.z=0,Y=pr.w,pr.w=0,R=pr.buffer,pr.buffer=Pe,J=pr.size,pr.size=0,O=pr.normalized,pr.normalized=!1,K=pr.type,pr.type=Pe.dtype,ge=pr.offset,pr.offset=0,ne=pr.stride,pr.stride=0,Le=pr.divisor,pr.divisor=0,Ze=gr.state,gr.state=1,Ct=gr.x,gr.x=0,dr=gr.y,gr.y=0,Mr=gr.z,gr.z=0,ur=gr.w,gr.w=0,Je=gr.buffer,gr.buffer=de,ht=gr.size,gr.size=0,wt=gr.normalized,gr.normalized=!1,Kt=gr.type,gr.type=de.dtype,sr=gr.offset,gr.offset=0,Qt=gr.stride,gr.stride=0,fr=gr.divisor,gr.divisor=0,er=Zr.state,Zr.state=1,Ot=Zr.x,Zr.x=0,Jt=Zr.y,Zr.y=0,Lt=Zr.z,Zr.z=0,Tr=Zr.w,Zr.w=0,qr=Zr.buffer,Zr.buffer=ke,ci=Zr.size,Zr.size=0,Cn=Zr.normalized,Zr.normalized=!1,Ki=Zr.type,Zr.type=ke.dtype,yn=Zr.offset,Zr.offset=0,Xa=Zr.stride,Zr.stride=0,ca=Zr.divisor,Zr.divisor=0,An=Ai.state,Ai.state=1,Pn=Ai.x,Ai.x=0,Nn=Ai.y,Ai.y=0,xa=Ai.z,Ai.z=0,Zo=Ai.w,Ai.w=0,ru=Ai.buffer,Ai.buffer=d,yu=Ai.size,Ai.size=0,Du=Ai.normalized,Ai.normalized=!1,vu=Ai.type,Ai.type=d.dtype,zu=Ai.offset,Ai.offset=0,Ju=Ai.stride,Ai.stride=0,Uf=Ai.divisor,Ai.divisor=0,wd=ls.vert,ls.vert=Qi,Ad=ls.frag,ls.frag=ni,kn.dirty=!0,Bo(Ia,ln,ko),Ia.viewportWidth=as,Ia.viewportHeight=Ma,jn[0]=Qs,jn[1]=ho,jn[2]=gs,jn[3]=Vo,Po[0]=Do,Po[1]=Lo,Po[2]=xs,Po[3]=ks,fa.blend_enable=Ea,gn[0]=Jn,gn[1]=Oo,Ha[0]=rl,Ha[1]=Gs,Ha[2]=bs,Ha[3]=zs,fa.cull_enable=$o,fa.cull_face=Aa,fa.depth_enable=os,fa.depth_func=_l,fa.depth_mask=Ss,ao[0]=po,ao[1]=go,fa.dither=ss,fa.lineWidth=qo,mo[0]=Hs,mo[1]=Ro,mo[2]=tl,mo[3]=Fs,fa.scissor_enable=hl,kn.profile=Fa,Ta.offset=jo,Ta.count=Is,Ta.primitive=Bs,mn[Br]=Tt,mn[mi]=wr,mn[Di]=Fr,mn[Ii]=Ti,mn[Ci]=Ji,mn[nn]=Pi,mn[ii]=Li,mn[wi]=Gn,mn[Gi]=ya,mn[Ft]=pa,mn[gt]=zn,mn[Ut]=Cs,mn[Wt]=dl,mn[xr]=Ol,mn[Lr]=eu,mn[Ur]=Vl,mn[Ir]=ns,mn[Gr]=cs,mn[jr]=ll,mn[yi]=zl,mn[Ei]=Rl,mn[Vi]=Ll,mn[ti]=Os,mn[en]=Gl,Yr.state=Ul,Yr.x=le,Yr.y=w,Yr.z=q,Yr.w=Q,Yr.buffer=ee,Yr.size=ue,Yr.normalized=Ve,Yr.type=et,Yr.offset=yt,Yr.stride=Dt,Yr.divisor=ir,oi.state=or,oi.x=kr,oi.y=Vr,oi.z=he,oi.w=Se,oi.buffer=qe,oi.size=Ge,oi.normalized=lt,oi.type=tt,oi.offset=vt,oi.stride=Gt,oi.divisor=nr,Bi.state=cr,Bi.x=Ar,Bi.y=Rr,Bi.z=ri,Bi.w=si,Bi.buffer=Mi,Bi.size=hn,Bi.normalized=Zn,Bi.type=Yn,Bi.offset=Ua,Bi.stride=Fo,Bi.divisor=vl,an.state=Us,an.x=ml,an.y=au,an.z=Sl,an.w=Yl,an.buffer=ql,an.size=ou,an.normalized=Pu,an.type=iu,an.offset=tu,an.stride=Wu,an.divisor=Qu,rn.state=Ku,rn.x=ju,rn.y=Xu,rn.z=lf,rn.w=xf,rn.buffer=ef,rn.size=tf,rn.normalized=Z,rn.type=se,rn.offset=ze,rn.stride=je,rn.divisor=$e,Fi.state=st,Fi.x=jt,Fi.y=_t,Fi.z=hr,Fi.w=Cr,Fi.buffer=zr,Fi.size=ui,Fi.normalized=$r,Fi.type=Oi,Fi.offset=fn,Fi.stride=pi,Fi.divisor=zi,Ri.state=Xi,Ri.x=pn,Ri.y=sn,Ri.z=bi,Ri.w=xo,Ri.buffer=no,Ri.size=Xo,Ri.normalized=js,Ri.type=El,Ri.offset=Pl,Ri.stride=pu,Ri.divisor=Il,xn.state=fu,xn.x=Zu,xn.y=Vu,xn.z=rf,xn.w=ds,xn.buffer=Wl,xn.size=Au,xn.normalized=Tu,xn.type=uf,xn.offset=df,xn.stride=Ef,xn.divisor=vf,xi.state=fc,xi.x=Be,xi.y=qt,xi.z=ar,xi.w=Qr,xi.buffer=vi,xi.size=fi,xi.normalized=di,xi.type=on,xi.offset=Bn,xi.stride=Ln,xi.divisor=wn,Xr.state=Ls,Xr.x=ua,Xr.y=Hn,Xr.z=Ni,Xr.w=Hr,Xr.buffer=_i,Xr.size=dn,Xr.normalized=En,Xr.type=Yi,Xr.offset=ga,Xr.stride=Kn,Xr.divisor=hs,ft.state=$i,ft.x=Ui,ft.y=ro,ft.z=na,ft.w=On,ft.buffer=In,ft.size=Va,ft.normalized=_s,ft.type=ul,ft.offset=Qn,ft.stride=Mo,ft.divisor=nl,tr.state=pl,tr.x=Dl,tr.y=Fu,tr.z=mf,tr.w=Ql,tr.buffer=kf,tr.size=Cu,tr.normalized=_f,tr.type=bf,tr.offset=Lf,tr.stride=Gu,tr.divisor=hf,pr.state=yf,pr.x=Fl,pr.y=wf,pr.z=cu,pr.w=Y,pr.buffer=R,pr.size=J,pr.normalized=O,pr.type=K,pr.offset=ge,pr.stride=ne,pr.divisor=Le,gr.state=Ze,gr.x=Ct,gr.y=dr,gr.z=Mr,gr.w=ur,gr.buffer=Je,gr.size=ht,gr.normalized=wt,gr.type=Kt,gr.offset=sr,gr.stride=Qt,gr.divisor=fr,Zr.state=er,Zr.x=Ot,Zr.y=Jt,Zr.z=Lt,Zr.w=Tr,Zr.buffer=qr,Zr.size=ci,Zr.normalized=Cn,Zr.type=Ki,Zr.offset=yn,Zr.stride=Xa,Zr.divisor=ca,Ai.state=An,Ai.x=Pn,Ai.y=Nn,Ai.z=xa,Ai.w=Zo,Ai.buffer=ru,Ai.size=yu,Ai.normalized=Du,Ai.type=vu,Ai.offset=zu,Ai.stride=Ju,Ai.divisor=Uf,ls.vert=wd,ls.frag=Ad,kn.dirty=!0},batch:function(ln,Bo){var ko,oo,za,ea;if(ko=ra.next,ko!==ra.cur&&(ko?Kr.bindFramebuffer(36160,ko.framebuffer):Kr.bindFramebuffer(36160,null),ra.cur=ko),kn.dirty){var rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os;rs=Ko[0],$s=Ko[1],us=Ko[2],Ds=Ko[3],(rs!==Qo[0]||$s!==Qo[1]||us!==Qo[2]||Ds!==Qo[3])&&(Kr.colorMask(rs,$s,us,Ds),Qo[0]=rs,Qo[1]=$s,Qo[2]=us,Qo[3]=Ds),fl=fa.frontFace,fl!==kn.frontFace&&(Kr.frontFace(fl),kn.frontFace=fl),as=fa.polygonOffset_enable,as!==kn.polygonOffset_enable&&(as?Kr.enable(32823):Kr.disable(32823),kn.polygonOffset_enable=as),Ma=Wi[0],Qs=Wi[1],(Ma!==Sa[0]||Qs!==Sa[1])&&(Kr.polygonOffset(Ma,Qs),Sa[0]=Ma,Sa[1]=Qs),ho=fa.sample_alpha,ho!==kn.sample_alpha&&(ho?Kr.enable(32926):Kr.disable(32926),kn.sample_alpha=ho),gs=fa.sample_enable,gs!==kn.sample_enable&&(gs?Kr.enable(32928):Kr.disable(32928),kn.sample_enable=gs),Vo=Qa[0],Do=Qa[1],(Vo!==vn[0]||Do!==vn[1])&&(Kr.sampleCoverage(Vo,Do),vn[0]=Vo,vn[1]=Do),Lo=fa.stencil_enable,Lo!==kn.stencil_enable&&(Lo?Kr.enable(2960):Kr.disable(2960),kn.stencil_enable=Lo),xs=fa.stencil_mask,xs!==kn.stencil_mask&&(Kr.stencilMask(xs),kn.stencil_mask=xs),ks=da[0],Ea=da[1],Jn=da[2],(ks!==la[0]||Ea!==la[1]||Jn!==la[2])&&(Kr.stencilFunc(ks,Ea,Jn),la[0]=ks,la[1]=Ea,la[2]=Jn),Oo=vo[0],rl=vo[1],Gs=vo[2],bs=vo[3],(Oo!==As[0]||rl!==As[1]||Gs!==As[2]||bs!==As[3])&&(Kr.stencilOpSeparate(Oo,rl,Gs,bs),As[0]=Oo,As[1]=rl,As[2]=Gs,As[3]=bs),zs=ps[0],$o=ps[1],Aa=ps[2],os=ps[3],(zs!==co[0]||$o!==co[1]||Aa!==co[2]||os!==co[3])&&(Kr.stencilOpSeparate(zs,$o,Aa,os),co[0]=zs,co[1]=$o,co[2]=Aa,co[3]=os)}Kr.blendColor(0,0,0,0),ji[0]=0,ji[1]=0,ji[2]=0,ji[3]=0,Zi?Kr.enable(3042):Kr.disable(3042),kn.blend_enable=Zi,Kr.blendEquationSeparate(32774,32774),Ps[0]=32774,Ps[1]=32774,Kr.blendFuncSeparate(770,771,1,1),Sn[0]=770,Sn[1]=771,Sn[2]=1,Sn[3]=1,aa?Kr.enable(2884):Kr.disable(2884),kn.cull_enable=aa,Kr.cullFace(Mn),kn.cull_face=Mn,Un?Kr.enable(2929):Kr.disable(2929),kn.depth_enable=Un,Kr.depthFunc(Ga),kn.depth_func=Ga,Kr.depthMask(ma),kn.depth_mask=ma,Kr.depthRange(0,1),Ba[0]=0,Ba[1]=1,oa?Kr.enable(3024):Kr.disable(3024),kn.dither=oa,Kr.lineWidth(ka),kn.lineWidth=ka,so?Kr.enable(3089):Kr.disable(3089),kn.scissor_enable=so,oo=kn.profile,kn.profile=!1,Kr.useProgram(h.program);var _l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,Tt,Vt,wr,yr,Fr,gi,Ti,ki;for(fo.setVAO(null),_l=p.location,Ss=$a[_l],Ss.buffer||Kr.enableVertexAttribArray(_l),(Ss.type!==d.dtype||Ss.size!==4||Ss.buffer!==d||Ss.normalized!==!1||Ss.offset!==0||Ss.stride!==0)&&(Kr.bindBuffer(34962,d.buffer),Kr.vertexAttribPointer(_l,4,d.dtype,!1,0,0),Ss.type=d.dtype,Ss.size=4,Ss.buffer=d,Ss.normalized=!1,Ss.offset=0,Ss.stride=0),po=b.location,go=$a[po],go.buffer||Kr.enableVertexAttribArray(po),(go.type!==x.dtype||go.size!==4||go.buffer!==x||go.normalized!==!1||go.offset!==0||go.stride!==0)&&(Kr.bindBuffer(34962,x.buffer),Kr.vertexAttribPointer(po,4,x.dtype,!1,0,0),go.type=x.dtype,go.size=4,go.buffer=x,go.normalized=!1,go.offset=0,go.stride=0),ss=k.location,qo=$a[ss],qo.buffer||Kr.enableVertexAttribArray(ss),(qo.type!==v.dtype||qo.size!==4||qo.buffer!==v||qo.normalized!==!1||qo.offset!==0||qo.stride!==0)&&(Kr.bindBuffer(34962,v.buffer),Kr.vertexAttribPointer(ss,4,v.dtype,!1,0,0),qo.type=v.dtype,qo.size=4,qo.buffer=v,qo.normalized=!1,qo.offset=0,qo.stride=0),zo=T.location,io=$a[zo],io.buffer||Kr.enableVertexAttribArray(zo),(io.type!==E.dtype||io.size!==4||io.buffer!==E||io.normalized!==!1||io.offset!==0||io.stride!==0)&&(Kr.bindBuffer(34962,E.buffer),Kr.vertexAttribPointer(zo,4,E.dtype,!1,0,0),io.type=E.dtype,io.size=4,io.buffer=E,io.normalized=!1,io.offset=0,io.stride=0),Io=_.location,Da=$a[Io],Da.buffer||Kr.enableVertexAttribArray(Io),(Da.type!==L.dtype||Da.size!==4||Da.buffer!==L||Da.normalized!==!1||Da.offset!==0||Da.stride!==0)&&(Kr.bindBuffer(34962,L.buffer),Kr.vertexAttribPointer(Io,4,L.dtype,!1,0,0),Da.type=L.dtype,Da.size=4,Da.buffer=L,Da.normalized=!1,Da.offset=0,Da.stride=0),vs=S.location,fs=$a[vs],fs.buffer||Kr.enableVertexAttribArray(vs),(fs.type!==C.dtype||fs.size!==4||fs.buffer!==C||fs.normalized!==!1||fs.offset!==0||fs.stride!==0)&&(Kr.bindBuffer(34962,C.buffer),Kr.vertexAttribPointer(vs,4,C.dtype,!1,0,0),fs.type=C.dtype,fs.size=4,fs.buffer=C,fs.normalized=!1,fs.offset=0,fs.stride=0),cl=P.location,el=$a[cl],el.buffer||Kr.enableVertexAttribArray(cl),(el.type!==m.dtype||el.size!==4||el.buffer!==m||el.normalized!==!1||el.offset!==0||el.stride!==0)&&(Kr.bindBuffer(34962,m.buffer),Kr.vertexAttribPointer(cl,4,m.dtype,!1,0,0),el.type=m.dtype,el.size=4,el.buffer=m,el.normalized=!1,el.offset=0,el.stride=0),Hs=B.location,Ro=$a[Hs],Ro.buffer||Kr.enableVertexAttribArray(Hs),(Ro.type!==A.dtype||Ro.size!==4||Ro.buffer!==A||Ro.normalized!==!1||Ro.offset!==0||Ro.stride!==0)&&(Kr.bindBuffer(34962,A.buffer),Kr.vertexAttribPointer(Hs,4,A.dtype,!1,0,0),Ro.type=A.dtype,Ro.size=4,Ro.buffer=A,Ro.normalized=!1,Ro.offset=0,Ro.stride=0),tl=U.location,Fs=$a[tl],Fs.buffer||Kr.enableVertexAttribArray(tl),(Fs.type!==F.dtype||Fs.size!==4||Fs.buffer!==F||Fs.normalized!==!1||Fs.offset!==0||Fs.stride!==0)&&(Kr.bindBuffer(34962,F.buffer),Kr.vertexAttribPointer(tl,4,F.dtype,!1,0,0),Fs.type=F.dtype,Fs.size=4,Fs.buffer=F,Fs.normalized=!1,Fs.offset=0,Fs.stride=0),hl=j.location,Fa=$a[hl],Fa.buffer||Kr.enableVertexAttribArray(hl),(Fa.type!==G.dtype||Fa.size!==4||Fa.buffer!==G||Fa.normalized!==!1||Fa.offset!==0||Fa.stride!==0)&&(Kr.bindBuffer(34962,G.buffer),Kr.vertexAttribPointer(hl,4,G.dtype,!1,0,0),Fa.type=G.dtype,Fa.size=4,Fa.buffer=G,Fa.normalized=!1,Fa.offset=0,Fa.stride=0),Ms=N.location,jo=$a[Ms],jo.buffer||Kr.enableVertexAttribArray(Ms),(jo.type!==H.dtype||jo.size!==4||jo.buffer!==H||jo.normalized!==!1||jo.offset!==0||jo.stride!==0)&&(Kr.bindBuffer(34962,H.buffer),Kr.vertexAttribPointer(Ms,4,H.dtype,!1,0,0),jo.type=H.dtype,jo.size=4,jo.buffer=H,jo.normalized=!1,jo.offset=0,jo.stride=0),Rs=re.location,Is=$a[Rs],Is.buffer||Kr.enableVertexAttribArray(Rs),(Is.type!==W.dtype||Is.size!==4||Is.buffer!==W||Is.normalized!==!1||Is.offset!==0||Is.stride!==0)&&(Kr.bindBuffer(34962,W.buffer),Kr.vertexAttribPointer(Rs,4,W.dtype,!1,0,0),Is.type=W.dtype,Is.size=4,Is.buffer=W,Is.normalized=!1,Is.offset=0,Is.stride=0),Bs=be.location,Tt=$a[Bs],Tt.buffer||Kr.enableVertexAttribArray(Bs),(Tt.type!==ae.dtype||Tt.size!==4||Tt.buffer!==ae||Tt.normalized!==!1||Tt.offset!==0||Tt.stride!==0)&&(Kr.bindBuffer(34962,ae.buffer),Kr.vertexAttribPointer(Bs,4,ae.dtype,!1,0,0),Tt.type=ae.dtype,Tt.size=4,Tt.buffer=ae,Tt.normalized=!1,Tt.offset=0,Tt.stride=0),Vt=Ce.location,wr=$a[Vt],wr.buffer||Kr.enableVertexAttribArray(Vt),(wr.type!==Pe.dtype||wr.size!==4||wr.buffer!==Pe||wr.normalized!==!1||wr.offset!==0||wr.stride!==0)&&(Kr.bindBuffer(34962,Pe.buffer),Kr.vertexAttribPointer(Vt,4,Pe.dtype,!1,0,0),wr.type=Pe.dtype,wr.size=4,wr.buffer=Pe,wr.normalized=!1,wr.offset=0,wr.stride=0),yr=te.location,Fr=$a[yr],Fr.buffer||Kr.enableVertexAttribArray(yr),(Fr.type!==de.dtype||Fr.size!==4||Fr.buffer!==de||Fr.normalized!==!1||Fr.offset!==0||Fr.stride!==0)&&(Kr.bindBuffer(34962,de.buffer),Kr.vertexAttribPointer(yr,4,de.dtype,!1,0,0),Fr.type=de.dtype,Fr.size=4,Fr.buffer=de,Fr.normalized=!1,Fr.offset=0,Fr.stride=0),gi=Ee.location,Ti=$a[gi],Ti.buffer||Kr.enableVertexAttribArray(gi),(Ti.type!==ke.dtype||Ti.size!==4||Ti.buffer!==ke||Ti.normalized!==!1||Ti.offset!==0||Ti.stride!==0)&&(Kr.bindBuffer(34962,ke.buffer),Kr.vertexAttribPointer(gi,4,ke.dtype,!1,0,0),Ti.type=ke.dtype,Ti.size=4,Ti.buffer=ke,Ti.normalized=!1,Ti.offset=0,Ti.stride=0),Kr.uniform1i(dt.location,pt.bind()),ki=Ta.elements,ki?Kr.bindBuffer(34963,ki.buffer.buffer):fo.currentVAO&&(ki=ys.getElements(fo.currentVAO.elements),ki&&Kr.bindBuffer(34963,ki.buffer.buffer)),za=0;za>1)):Kr.drawArrays(1,Ar,Rr),Ia.viewportWidth=ya,Ia.viewportHeight=ia,yt.unbind())}pt.unbind(),kn.dirty=!0,fo.setVAO(null),kn.profile=oo}}}});var uVe=Te((Rxr,lVe)=>{"use strict";var fHt=tVe(),cHt=iVe(),hHt=aVe(),dHt=sVe();lVe.exports={"453a70fefa48db31713162aeb1ac438cb8579f54504f3b23acf32128df3dfd45":fHt,"30680f8f6712ef1af5cf7547e0af35b036fb300c67b07967cf448492ff4de4d0":cHt,a3970baf1d8cac9305ee830c7026550387343d4dde2353dd86a4d082c97d3470:hHt,"3fd666968f3ce90d1c048b7a9aab515f3ce387a5401a10f8b66121c9469d1c0d":dHt}});var hVe=Te((Dxr,cVe)=>{"use strict";var fVe=XK(),pHt=uVe();Object.assign(fVe.reglPrecompiled,pHt);cVe.exports=fVe});var vVe=Te((Fxr,pVe)=>{"use strict";var dVe=QUe();dVe.plot=hVe();pVe.exports=dVe});var ZK=Te((Bxr,_Ve)=>{"use strict";var yVe=Su().extendFlat,vHt=Vf(),mVe=gc(),mHt=nc(),gVe=Hu().hovertemplateAttrs,yHt=zc().attributes,gHt=yVe({editType:"calc"},mHt("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:gVe({editType:"plot",arrayOk:!1},{keys:["count","probability"]})});_Ve.exports={domain:yHt({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:yVe({},vHt.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:gVe({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),arrangement:{valType:"enumerated",values:["perpendicular","freeform","fixed"],dflt:"perpendicular",editType:"plot"},bundlecolors:{valType:"boolean",dflt:!0,editType:"plot"},sortpaths:{valType:"enumerated",values:["forward","backward"],dflt:"forward",editType:"plot"},labelfont:mVe({editType:"calc"}),tickfont:mVe({autoShadowDflt:!0,editType:"calc"}),dimensions:{_isLinkedToArray:"dimension",label:{valType:"string",editType:"calc"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},values:{valType:"data_array",dflt:[],editType:"calc"},displayindex:{valType:"integer",editType:"calc"},editType:"calc",visible:{valType:"boolean",dflt:!0,editType:"calc"}},line:gHt,counts:{valType:"number",min:0,dflt:1,arrayOk:!0,editType:"calc"},customdata:void 0,hoverlabel:void 0,ids:void 0,legend:void 0,legendgroup:void 0,legendrank:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}});var wVe=Te((Oxr,bVe)=>{"use strict";var _S=ei(),_Ht=Rp().hasColorscale,xHt=ed(),bHt=zc().defaults,wHt=Jd(),xVe=ZK(),AHt=R8(),THt=mp().isTypedArraySpec;function SHt(e,t,r,n,i){i("line.shape"),i("line.hovertemplate");var a=i("line.color",n.colorway[0]);if(_Ht(e,"line")&&_S.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),xHt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function MHt(e,t){function r(l,f){return _S.coerce(e,t,xVe.dimensions,l,f)}var n=r("values"),i=r("visible");if(n&&n.length||(i=t.visible=!1),i){r("label"),r("displayindex",t._index);var a=e.categoryarray,o=_S.isArrayOrTypedArray(a)&&a.length>0||THt(a),s;o&&(s="array");var u=r("categoryorder",s);u==="array"?(r("categoryarray"),r("ticktext")):(delete e.categoryarray,delete e.ticktext),!o&&u==="array"&&(t.categoryorder="trace")}}bVe.exports=function(t,r,n,i){function a(l,f){return _S.coerce(t,r,xVe,l,f)}var o=wHt(t,r,{name:"dimensions",handleItemDefaults:MHt}),s=SHt(t,r,n,i,a);bHt(r,i,a),(!Array.isArray(o)||!o.length)&&(r.visible=!1),AHt(r,o,"values",s),a("hoveron"),a("hovertemplate"),a("arrangement"),a("bundlecolors"),a("sortpaths"),a("counts");var u=i.font;_S.coerceFont(a,"labelfont",u,{overrideDflt:{size:Math.round(u.size)}}),_S.coerceFont(a,"tickfont",u,{autoShadowDflt:!0,overrideDflt:{size:Math.round(u.size/1.2)}})}});var TVe=Te((qxr,AVe)=>{"use strict";var EHt=Ky().wrap,kHt=Rp().hasColorscale,CHt=Dp(),LHt=nq(),PHt=Mu(),Lk=ei(),zHt=ku();AVe.exports=function(t,r){var n=Lk.filterVisible(r.dimensions);if(n.length===0)return[];var i=n.map(function(m){var P;if(m.categoryorder==="trace")P=null;else if(m.categoryorder==="array")P=m.categoryarray;else{P=LHt(m.values);for(var A=!0,B=0;B=e.length||t[e[r]]!==void 0)return!1;t[e[r]]=!0}return!0}});var IVe=Te((Nxr,zVe)=>{"use strict";var Nf=Jl(),GHt=(I2(),q1(z2)).interpolateNumber,HHt=Nz(),Ik=jc(),gx=ei(),Pk=gx.strTranslate,SVe=Mu(),YK=cd(),WHt=Zf();function jHt(e,t,r,n){var i=t._context.staticPlot,a=e.map(sWt.bind(0,t,r)),o=n.selectAll("g.parcatslayer").data([null]);o.enter().append("g").attr("class","parcatslayer").style("pointer-events",i?"none":"all");var s=o.selectAll("g.trace.parcats").data(a,u1),u=s.enter().append("g").attr("class","trace parcats");s.attr("transform",function(k){return Pk(k.x,k.y)}),u.append("g").attr("class","paths");var l=s.select("g.paths"),f=l.selectAll("path.path").data(function(k){return k.paths},u1);f.attr("fill",function(k){return k.model.color});var c=f.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(k){return k.model.color}).attr("fill-opacity",0);$K(c),f.attr("d",function(k){return k.svgD}),c.empty()||f.sort(KK),f.exit().remove(),f.on("mouseover",XHt).on("mouseout",ZHt).on("click",YHt),u.append("g").attr("class","dimensions");var h=s.select("g.dimensions"),d=h.selectAll("g.dimension").data(function(k){return k.dimensions},u1);d.enter().append("g").attr("class","dimension"),d.attr("transform",function(k){return Pk(k.x,0)}),d.exit().remove();var p=d.selectAll("g.category").data(function(k){return k.categories},u1),x=p.enter().append("g").attr("class","category");p.attr("transform",function(k){return Pk(0,k.y)}),x.append("rect").attr("class","catrect").attr("pointer-events","none"),p.select("rect.catrect").attr("fill","none").attr("width",function(k){return k.width}).attr("height",function(k){return k.height}),EVe(x);var b=p.selectAll("rect.bandrect").data(function(k){return k.bands},u1);b.each(function(){gx.raiseToTop(this)}),b.attr("fill",function(k){return k.color});var v=b.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(k){return k.color}).attr("fill-opacity",0);b.attr("fill",function(k){return k.color}).attr("width",function(k){return k.width}).attr("height",function(k){return k.height}).attr("y",function(k){return k.y}).attr("cursor",function(k){return k.parcatsViewModel.arrangement==="fixed"?"default":k.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),eJ(v),b.exit().remove(),x.append("text").attr("class","catlabel").attr("pointer-events","none"),p.select("text.catlabel").attr("text-anchor",function(k){return zk(k)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(k){return zk(k)?k.width+5:-5}).attr("y",function(k){return k.height/2}).text(function(k){return k.model.categoryLabel}).each(function(k){SVe.font(Nf.select(this),k.parcatsViewModel.categorylabelfont),WHt.convertToTspans(Nf.select(this),t)}),x.append("text").attr("class","dimlabel"),p.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(k){return k.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(k){return k.width/2}).attr("y",-5).text(function(k,E){return E===0?k.parcatsViewModel.model.dimensions[k.model.dimensionInd].dimensionLabel:null}).each(function(k){SVe.font(Nf.select(this),k.parcatsViewModel.labelfont)}),p.selectAll("rect.bandrect").on("mouseover",rWt).on("mouseout",iWt),p.exit().remove(),d.call(Nf.behavior.drag().origin(function(k){return{x:k.x,y:0}}).on("dragstart",nWt).on("drag",aWt).on("dragend",oWt)),s.each(function(k){k.traceSelection=Nf.select(this),k.pathSelection=Nf.select(this).selectAll("g.paths").selectAll("path.path"),k.dimensionSelection=Nf.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),s.exit().remove()}zVe.exports=function(e,t,r,n){jHt(r,e,n,t)};function u1(e){return e.key}function zk(e){var t=e.parcatsViewModel.dimensions.length,r=e.parcatsViewModel.dimensions[t-1].model.dimensionInd;return e.model.dimensionInd===r}function KK(e,t){return e.model.rawColor>t.model.rawColor?1:e.model.rawColor"),_=Nf.mouse(i)[0];Ik.loneHover({trace:a,x:p-s.left+u.left,y:x-s.top+u.top,text:L,color:e.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:b,idealAlign:_1&&l.displayInd===u.dimensions.length-1?(h=o.left,d="left"):(h=o.left+o.width,d="right");var p=s.model.count,x=s.model.categoryLabel,b=p/s.parcatsViewModel.model.count,v={countLabel:p,categoryLabel:x,probabilityLabel:b.toFixed(3)},k=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&k.push(["Count:",v.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&k.push(["P("+v.categoryLabel+"):",v.probabilityLabel].join(" "));var E=k.join("
");return{trace:f,x:n*(h-t.left),y:i*(c-t.top),text:E,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:d,hovertemplate:f.hovertemplate,hovertemplateLabels:v,eventData:[{data:f._input,fullData:f,count:p,category:x,probability:b}]}}function eWt(e,t,r){var n=[];return Nf.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var i=this;n.push(kVe(e,t,i))}),n}function tWt(e,t,r){e._fullLayout._calcInverseTransform(e);var n=e._fullLayout._invScaleX,i=e._fullLayout._invScaleY,a=r.getBoundingClientRect(),o=Nf.select(r).datum(),s=o.categoryViewModel,u=s.parcatsViewModel,l=u.model.dimensions[s.model.dimensionInd],f=u.trace,c=a.y+a.height/2,h,d;u.dimensions.length>1&&l.displayInd===u.dimensions.length-1?(h=a.left,d="left"):(h=a.left+a.width,d="right");var p=s.model.categoryLabel,x=o.parcatsViewModel.model.count,b=0;o.categoryViewModel.bands.forEach(function(P){P.color===o.color&&(b+=P.count)});var v=s.model.count,k=0;u.pathSelection.each(function(P){P.model.color===o.color&&(k+=P.model.count)});var E=b/x,T=b/k,L=b/v,_={countLabel:b,categoryLabel:p,probabilityLabel:E.toFixed(3)},C=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&C.push(["Count:",_.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(C.push("P(color \u2229 "+p+"): "+_.probabilityLabel),C.push("P("+p+" | color): "+T.toFixed(3)),C.push("P(color | "+p+"): "+L.toFixed(3)));var S=C.join("
"),m=YK.mostReadable(o.color,["black","white"]);return{trace:f,x:n*(h-t.left),y:i*(c-t.top),text:S,color:o.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:m,fontSize:10,idealAlign:d,hovertemplate:f.hovertemplate,hovertemplateLabels:_,eventData:[{data:f._input,fullData:f,category:p,count:x,probability:E,categorycount:v,colorcount:k,bandcolorcount:b}]}}function rWt(e){if(!e.parcatsViewModel.dragDimension&&e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var t=Nf.mouse(this)[1];if(t<-1)return;var r=e.parcatsViewModel.graphDiv,n=r._fullLayout,i=n._paperdiv.node().getBoundingClientRect(),a=e.parcatsViewModel.hoveron,o=this;if(a==="color"?(QHt(o),rJ(o,"plotly_hover",Nf.event)):($Ht(o),tJ(o,"plotly_hover",Nf.event)),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var s;a==="category"?s=kVe(r,i,o):a==="color"?s=tWt(r,i,o):a==="dimension"&&(s=eWt(r,i,o)),s&&Ik.loneHover(s,{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:r})}}}function iWt(e){var t=e.parcatsViewModel;if(!t.dragDimension&&($K(t.pathSelection),EVe(t.dimensionSelection.selectAll("g.category")),eJ(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),Ik.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(KK),t.hoverinfoItems.indexOf("skip")===-1)){var r=e.parcatsViewModel.hoveron,n=this;r==="color"?rJ(n,"plotly_unhover",Nf.event):tJ(n,"plotly_unhover",Nf.event)}}function nWt(e){e.parcatsViewModel.arrangement!=="fixed"&&(e.dragDimensionDisplayInd=e.model.displayInd,e.initialDragDimensionDisplayInds=e.parcatsViewModel.model.dimensions.map(function(t){return t.displayInd}),e.dragHasMoved=!1,e.dragCategoryDisplayInd=null,Nf.select(this).selectAll("g.category").select("rect.catrect").each(function(t){var r=Nf.mouse(this)[0],n=Nf.mouse(this)[1];-2<=r&&r<=t.width+2&&-2<=n&&n<=t.height+2&&(e.dragCategoryDisplayInd=t.model.displayInd,e.initialDragCategoryDisplayInds=e.model.categories.map(function(i){return i.displayInd}),t.model.dragY=t.y,gx.raiseToTop(this.parentNode),Nf.select(this.parentNode).selectAll("rect.bandrect").each(function(i){i.yf.y+f.height/2&&(a.model.displayInd=f.model.displayInd,f.model.displayInd=s),e.dragCategoryDisplayInd=a.model.displayInd}if(e.dragCategoryDisplayInd===null||e.parcatsViewModel.arrangement==="freeform"){i.model.dragX=Nf.event.x;var c=e.parcatsViewModel.dimensions[r],h=e.parcatsViewModel.dimensions[n];c!==void 0&&i.model.dragXh.x&&(i.model.displayInd=h.model.displayInd,h.model.displayInd=e.dragDimensionDisplayInd),e.dragDimensionDisplayInd=i.model.displayInd}nJ(e.parcatsViewModel),iJ(e.parcatsViewModel),PVe(e.parcatsViewModel),LVe(e.parcatsViewModel)}}function oWt(e){if(e.parcatsViewModel.arrangement!=="fixed"&&e.dragDimensionDisplayInd!==null){Nf.select(this).selectAll("text").attr("font-weight","normal");var t={},r=CVe(e.parcatsViewModel),n=e.parcatsViewModel.model.dimensions.map(function(h){return h.displayInd}),i=e.initialDragDimensionDisplayInds.some(function(h,d){return h!==n[d]});i&&n.forEach(function(h,d){var p=e.parcatsViewModel.model.dimensions[d].containerInd;t["dimensions["+p+"].displayindex"]=h});var a=!1;if(e.dragCategoryDisplayInd!==null){var o=e.model.categories.map(function(h){return h.displayInd});if(a=e.initialDragCategoryDisplayInds.some(function(h,d){return h!==o[d]}),a){var s=e.model.categories.slice().sort(function(h,d){return h.displayInd-d.displayInd}),u=s.map(function(h){return h.categoryValue}),l=s.map(function(h){return h.categoryLabel});t["dimensions["+e.model.containerInd+"].categoryarray"]=[u],t["dimensions["+e.model.containerInd+"].ticktext"]=[l],t["dimensions["+e.model.containerInd+"].categoryorder"]="array"}}if(e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!e.dragHasMoved&&e.potentialClickBand&&(e.parcatsViewModel.hoveron==="color"?rJ(e.potentialClickBand,"plotly_click",Nf.event.sourceEvent):tJ(e.potentialClickBand,"plotly_click",Nf.event.sourceEvent)),e.model.dragX=null,e.dragCategoryDisplayInd!==null){var f=e.parcatsViewModel.dimensions[e.dragDimensionDisplayInd].categories[e.dragCategoryDisplayInd];f.model.dragY=null,e.dragCategoryDisplayInd=null}e.dragDimensionDisplayInd=null,e.parcatsViewModel.dragDimension=null,e.dragHasMoved=null,e.potentialClickBand=null,nJ(e.parcatsViewModel),iJ(e.parcatsViewModel);var c=Nf.transition().duration(300).ease("cubic-in-out");c.each(function(){PVe(e.parcatsViewModel,!0),LVe(e.parcatsViewModel,!0)}).each("end",function(){(i||a)&&HHt.restyle(e.parcatsViewModel.graphDiv,t,[r])})}}function CVe(e){for(var t,r=e.graphDiv._fullData,n=0;n=0;u--)l+="C"+o[u]+","+(t[u+1]+n)+" "+a[u]+","+(t[u]+n)+" "+(e[u]+r[u])+","+(t[u]+n),l+="l-"+r[u]+",0 ";return l+="Z",l}function iJ(e){var t=e.dimensions,r=e.model,n=t.map(function(F){return F.categories.map(function(U){return U.y})}),i=e.model.dimensions.map(function(F){return F.categories.map(function(U){return U.displayInd})}),a=e.model.dimensions.map(function(F){return F.displayInd}),o=e.dimensions.map(function(F){return F.model.dimensionInd}),s=t.map(function(F){return F.x}),u=t.map(function(F){return F.width}),l=[];for(var f in r.paths)r.paths.hasOwnProperty(f)&&l.push(r.paths[f]);function c(F){var U=F.categoryInds.map(function(j,H){return i[H][j]}),G=o.map(function(j){return U[j]});return G}l.sort(function(F,U){var G=c(F),j=c(U);return e.sortpaths==="backward"&&(G.reverse(),j.reverse()),G.push(F.valueInds[0]),j.push(U.valueInds[0]),e.bundlecolors&&(G.unshift(F.rawColor),j.unshift(U.rawColor)),Gj?1:0});for(var h=new Array(l.length),d=t[0].model.count,p=t[0].categories.map(function(F){return F.height}).reduce(function(F,U){return F+U}),x=0;x0?v=p*(b.count/d):v=0;for(var k=new Array(n.length),E=0;E1?o=(e.width-2*r-n)/(i-1):o=0,s=r,u=s+o*a;var l=[],f=e.model.maxCats,c=t.categories.length,h=8,d=t.count,p=e.height-h*(f-1),x,b,v,k,E,T=(f-c)*h/2,L=t.categories.map(function(_){return{displayInd:_.displayInd,categoryInd:_.categoryInd}});for(L.sort(function(_,C){return _.displayInd-C.displayInd}),E=0;E0?x=b.count/d*p:x=0,v={key:b.valueInds[0],model:b,width:n,height:x,y:b.dragY!==null?b.dragY:T,bands:[],parcatsViewModel:e},T=T+x+h,l.push(v);return{key:t.dimensionInd,x:t.dragX!==null?t.dragX:u,y:0,width:n,model:t,categories:l,parcatsViewModel:e,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}});var aJ=Te((Uxr,RVe)=>{"use strict";var uWt=IVe();RVe.exports=function(t,r,n,i){var a=t._fullLayout,o=a._paper,s=a._size;uWt(t,o,r,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},n,i)}});var FVe=Te(J8=>{"use strict";var fWt=Rd().getModuleCalcData,cWt=aJ(),DVe="parcats";J8.name=DVe;J8.plot=function(e,t,r,n){var i=fWt(e.calcdata,DVe);if(i.length){var a=i[0];cWt(e,a,r,n)}};J8.clean=function(e,t,r,n){var i=n._has&&n._has("parcats"),a=t._has&&t._has("parcats");i&&!a&&n._paperdiv.selectAll(".parcats").remove()}});var OVe=Te((Gxr,BVe)=>{"use strict";BVe.exports={attributes:ZK(),supplyDefaults:wVe(),calc:TVe(),plot:aJ(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:FVe(),categories:["noOpacity"],meta:{}}});var NVe=Te((Hxr,qVe)=>{"use strict";qVe.exports=OVe()});var f1=Te((Wxr,XVe)=>{"use strict";var hWt=Y1(),UVe="1.13.4",WVe='\xA9 OpenStreetMap contributors',VVe=['\xA9 Carto',WVe].join(" "),GVe=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),dWt=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),jVe={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:WVe,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:VVe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:VVe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:GVe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:GVe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:dWt,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},HVe=hWt(jVe);XVe.exports={requiredVersion:UVe,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:jVe,styleValuesNonMapbox:HVe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+UVe+"."].join(` +`),_i;if(qt&&(_i=Fs(Wr),qt[_i]))return qt[_i].apply(null,mi);var dn=Function.apply(null,Qr.concat(Wr));return qt&&(qt[_i]=dn),dn.apply(null,mi)}return{global:wn,link:pi,block:on,proc:ua,scope:Bn,cond:Ln,compile:Hn}}var ta="xyzw".split(""),ya=5121,ia=1,pa=2,va=0,zn=1,is=2,Cs=3,Ks=4,dl=5,xl=6,Ol="dither",bl="blend.enable",eu="blend.color",Zl="blend.equation",Vl="blend.func",ja="depth.enable",ns="depth.func",Js="depth.range",cs="depth.mask",sl="colorMask",ll="cull.enable",il="cull.face",zl="frontFace",Ml="lineWidth",Rl="polygonOffset.enable",Al="polygonOffset.offset",Ll="sample.alpha",ms="sample.enable",Os="sample.coverage",Xl="stencil.enable",Gl="stencil.mask",Ul="stencil.func",le="stencil.opFront",w="stencil.opBack",q="scissor.enable",Q="scissor.box",ee="viewport",ue="profile",Ge="framebuffer",et="vert",mt="frag",Ft="elements",ir="primitive",or="count",kr="offset",Vr="instances",he="vao",Se="Width",qe="Height",He=Ge+Se,lt=Ge+qe,tt=ee+Se,pt=ee+qe,Ht="drawingBuffer",nr=Ht+Se,fr=Ht+qe,Ar=[Vl,Zl,Ul,le,w,Os,ee,Q,Al],Rr=34962,ri=34963,si=2884,Mi=3042,hn=3024,Zn=2960,Yn=2929,Ua=3089,Fo=32823,vl=32926,Us=32928,ml=5126,au=35664,Sl=35665,Yl=35666,ql=5124,ou=35667,Pu=35668,iu=35669,tu=35670,Wu=35671,Qu=35672,Ju=35673,ju=35674,Xu=35675,lf=35676,xf=35678,ef=35680,tf=4,Z=1028,se=1029,ze=2304,Xe=2305,Qe=32775,ot=32776,jt=519,_t=7680,cr=0,Cr=1,zr=32774,ui=513,$r=36160,Oi=36064,fn={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},vi={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},zi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Xi={cw:ze,ccw:Xe};function pn(Be){return Array.isArray(Be)||br(Be)||Ut(Be)}function sn(Be){return Be.sort(function(qt,ar){return qt===ee?-1:ar===ee?1:qt=1,Qr>=2,qt)}else if(ar===Ks){var mi=Be.data;return new bi(mi.thisDep,mi.contextDep,mi.propDep,qt)}else{if(ar===dl)return new bi(!1,!1,!1,qt);if(ar===xl){for(var fi=!1,pi=!1,on=!1,Bn=0;Bn=1&&(pi=!0),wn>=2&&(on=!0)}else Ln.type===Ks&&(fi=fi||Ln.data.thisDep,pi=pi||Ln.data.contextDep,on=on||Ln.data.propDep)}return new bi(fi,pi,on,qt)}else return new bi(ar===Cs,ar===is,ar===zn,qt)}}var js=new bi(!1,!1,!1,function(){});function El(Be,qt,ar,Qr,mi,fi,pi,on,Bn,Ln,wn,Ls,ua,Hn,Ni,Wr){var _i=Ln.Record,dn={add:32774,subtract:32778,"reverse subtract":32779};ar.ext_blend_minmax&&(dn.min=Qe,dn.max=ot);var En=ar.angle_instanced_arrays,Yi=ar.webgl_draw_buffers,ga=ar.oes_vertex_array_object,Kn={dirty:!0,profile:Wr.profile},hs={},$i=[],Ui={},ro={};function na(Ke){return Ke.replace(".","_")}function On(Ke,ht,bt){var Kt=na(Ke);$i.push(Ke),hs[Kt]=Kn[Kt]=!!bt,Ui[Kt]=ht}function In(Ke,ht,bt){var Kt=na(Ke);$i.push(Ke),Array.isArray(bt)?(Kn[Kt]=bt.slice(),hs[Kt]=bt.slice()):Kn[Kt]=hs[Kt]=bt,ro[Kt]=ht}function Va(Ke){return!!isNaN(Ke)}On(Ol,hn),On(bl,Mi),In(eu,"blendColor",[0,0,0,0]),In(Zl,"blendEquationSeparate",[zr,zr]),In(Vl,"blendFuncSeparate",[Cr,cr,Cr,cr]),On(ja,Yn,!0),In(ns,"depthFunc",ui),In(Js,"depthRange",[0,1]),In(cs,"depthMask",!0),In(sl,sl,[!0,!0,!0,!0]),On(ll,si),In(il,"cullFace",se),In(zl,zl,Xe),In(Ml,Ml,1),On(Rl,Fo),In(Al,"polygonOffset",[0,0]),On(Ll,vl),On(ms,Us),In(Os,"sampleCoverage",[1,!1]),On(Xl,Zn),In(Gl,"stencilMask",-1),In(Ul,"stencilFunc",[jt,0,-1]),In(le,"stencilOpSeparate",[Z,_t,_t,_t]),In(w,"stencilOpSeparate",[se,_t,_t,_t]),On(q,Ua),In(Q,"scissor",[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]),In(ee,ee,[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]);var _s={gl:Be,context:ua,strings:qt,next:hs,current:Kn,draw:Ls,elements:fi,buffer:mi,shader:wn,attributes:Ln.state,vao:Ln,uniforms:Bn,framebuffer:on,extensions:ar,timer:Hn,isBufferArgs:pn},ul={primTypes:ti,compareFuncs:vi,blendFuncs:fn,blendEquations:dn,stencilOps:zi,glTypes:di,orientationType:Xi};Yi&&(ul.backBuffer=[se],ul.drawBuffer=S(Qr.maxDrawbuffers,function(Ke){return Ke===0?[0]:S(Ke,function(ht){return Oi+ht})}));var Qn=0;function Mo(){var Ke=Gn({cache:Ni}),ht=Ke.link,bt=Ke.global;Ke.id=Qn++,Ke.batchId="0";var Kt=ht(_s),sr=Ke.shared={props:"a0"};Object.keys(_s).forEach(function(Jt){sr[Jt]=bt.def(Kt,".",Jt)});var Qt=Ke.next={},ur=Ke.current={};Object.keys(ro).forEach(function(Jt){Array.isArray(Kn[Jt])&&(Qt[Jt]=bt.def(sr.next,".",Jt),ur[Jt]=bt.def(sr.current,".",Jt))});var er=Ke.constants={};Object.keys(ul).forEach(function(Jt){er[Jt]=bt.def(JSON.stringify(ul[Jt]))}),Ke.invoke=function(Jt,Lt){switch(Lt.type){case va:var Tr=["this",sr.context,sr.props,Ke.batchId];return Jt.def(ht(Lt.data),".call(",Tr.slice(0,Math.max(Lt.data.length+1,4)),")");case zn:return Jt.def(sr.props,Lt.data);case is:return Jt.def(sr.context,Lt.data);case Cs:return Jt.def("this",Lt.data);case Ks:return Lt.data.append(Ke,Jt),Lt.data.ref;case dl:return Lt.data.toString();case xl:return Lt.data.map(function(Nr){return Ke.invoke(Jt,Nr)})}},Ke.attribCache={};var Ot={};return Ke.scopeAttrib=function(Jt){var Lt=qt.id(Jt);if(Lt in Ot)return Ot[Lt];var Tr=Ln.scope[Lt];Tr||(Tr=Ln.scope[Lt]=new _i);var Nr=Ot[Lt]=ht(Tr);return Nr},Ke}function nl(Ke){var ht=Ke.static,bt=Ke.dynamic,Kt;if(ue in ht){var sr=!!ht[ue];Kt=no(function(ur,er){return sr}),Kt.enable=sr}else if(ue in bt){var Qt=bt[ue];Kt=Xo(Qt,function(ur,er){return ur.invoke(er,Qt)})}return Kt}function pl(Ke,ht){var bt=Ke.static,Kt=Ke.dynamic;if(Ge in bt){var sr=bt[Ge];return sr?(sr=on.getFramebuffer(sr),no(function(ur,er){var Ot=ur.link(sr),Jt=ur.shared;er.set(Jt.framebuffer,".next",Ot);var Lt=Jt.context;return er.set(Lt,"."+He,Ot+".width"),er.set(Lt,"."+lt,Ot+".height"),Ot})):no(function(ur,er){var Ot=ur.shared;er.set(Ot.framebuffer,".next","null");var Jt=Ot.context;return er.set(Jt,"."+He,Jt+"."+nr),er.set(Jt,"."+lt,Jt+"."+fr),"null"})}else if(Ge in Kt){var Qt=Kt[Ge];return Xo(Qt,function(ur,er){var Ot=ur.invoke(er,Qt),Jt=ur.shared,Lt=Jt.framebuffer,Tr=er.def(Lt,".getFramebuffer(",Ot,")");er.set(Lt,".next",Tr);var Nr=Jt.context;return er.set(Nr,"."+He,Tr+"?"+Tr+".width:"+Nr+"."+nr),er.set(Nr,"."+lt,Tr+"?"+Tr+".height:"+Nr+"."+fr),Tr})}else return null}function Dl(Ke,ht,bt){var Kt=Ke.static,sr=Ke.dynamic;function Qt(Ot){if(Ot in Kt){var Jt=Kt[Ot],Lt=!0,Tr=Jt.x|0,Nr=Jt.y|0,ci,Cn;return"width"in Jt?ci=Jt.width|0:Lt=!1,"height"in Jt?Cn=Jt.height|0:Lt=!1,new bi(!Lt&&ht&&ht.thisDep,!Lt&&ht&&ht.contextDep,!Lt&&ht&&ht.propDep,function(Xa,ca){var Tn=Xa.shared.context,Pn=ci;"width"in Jt||(Pn=ca.def(Tn,".",He,"-",Tr));var Nn=Cn;return"height"in Jt||(Nn=ca.def(Tn,".",lt,"-",Nr)),[Tr,Nr,Pn,Nn]})}else if(Ot in sr){var Ki=sr[Ot],yn=Xo(Ki,function(Xa,ca){var Tn=Xa.invoke(ca,Ki),Pn=Xa.shared.context,Nn=ca.def(Tn,".x|0"),xa=ca.def(Tn,".y|0"),Zo=ca.def('"width" in ',Tn,"?",Tn,".width|0:","(",Pn,".",He,"-",Nn,")"),ru=ca.def('"height" in ',Tn,"?",Tn,".height|0:","(",Pn,".",lt,"-",xa,")");return[Nn,xa,Zo,ru]});return ht&&(yn.thisDep=yn.thisDep||ht.thisDep,yn.contextDep=yn.contextDep||ht.contextDep,yn.propDep=yn.propDep||ht.propDep),yn}else return ht?new bi(ht.thisDep,ht.contextDep,ht.propDep,function(Xa,ca){var Tn=Xa.shared.context;return[0,0,ca.def(Tn,".",He),ca.def(Tn,".",lt)]}):null}var ur=Qt(ee);if(ur){var er=ur;ur=new bi(ur.thisDep,ur.contextDep,ur.propDep,function(Ot,Jt){var Lt=er.append(Ot,Jt),Tr=Ot.shared.context;return Jt.set(Tr,"."+tt,Lt[2]),Jt.set(Tr,"."+pt,Lt[3]),Lt})}return{viewport:ur,scissor_box:Qt(Q)}}function Fu(Ke,ht){var bt=Ke.static,Kt=typeof bt[mt]=="string"&&typeof bt[et]=="string";if(Kt){if(Object.keys(ht.dynamic).length>0)return null;var sr=ht.static,Qt=Object.keys(sr);if(Qt.length>0&&typeof sr[Qt[0]]=="number"){for(var ur=[],er=0;er"+Nn+"?"+Lt+".constant["+Nn+"]:0;"}).join(""),"}}else{","if(",ci,"(",Lt,".buffer)){",Xa,"=",Cn,".createStream(",Rr,",",Lt,".buffer);","}else{",Xa,"=",Cn,".getBuffer(",Lt,".buffer);","}",ca,'="type" in ',Lt,"?",Nr.glTypes,"[",Lt,".type]:",Xa,".dtype;",Ki.normalized,"=!!",Lt,".normalized;");function Tn(Pn){Jt(Ki[Pn],"=",Lt,".",Pn,"|0;")}return Tn("size"),Tn("offset"),Tn("stride"),Tn("divisor"),Jt("}}"),Jt.exit("if(",Ki.isStream,"){",Cn,".destroyStream(",Xa,");","}"),Ki}sr[Qt]=Xo(ur,er)}),sr}function bf(Ke){var ht=Ke.static,bt=Ke.dynamic,Kt={};return Object.keys(ht).forEach(function(sr){var Qt=ht[sr];Kt[sr]=no(function(ur,er){return typeof Qt=="number"||typeof Qt=="boolean"?""+Qt:ur.link(Qt)})}),Object.keys(bt).forEach(function(sr){var Qt=bt[sr];Kt[sr]=Xo(Qt,function(ur,er){return ur.invoke(er,Qt)})}),Kt}function Lf(Ke,ht,bt,Kt,sr){var Qt=Ke.static,ur=Ke.dynamic,er=Fu(Ke,ht),Ot=pl(Ke,sr),Jt=Dl(Ke,Ot,sr),Lt=Ql(Ke,sr),Tr=kf(Ke,sr),Nr=mf(Ke,sr,er);function ci(Tn){var Pn=Jt[Tn];Pn&&(Tr[Tn]=Pn)}ci(ee),ci(na(Q));var Cn=Object.keys(Tr).length>0,Ki={framebuffer:Ot,draw:Lt,shader:Nr,state:Tr,dirty:Cn,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Ki.profile=nl(Ke,sr),Ki.uniforms=Cu(bt,sr),Ki.drawVAO=Ki.scopeVAO=Lt.vao,!Ki.drawVAO&&Nr.program&&!er&&ar.angle_instanced_arrays&&Lt.static.elements){var yn=!0,Xa=Nr.program.attributes.map(function(Tn){var Pn=ht.static[Tn];return yn=yn&&!!Pn,Pn});if(yn&&Xa.length>0){var ca=Ln.getVAO(Ln.createVAO({attributes:Xa,elements:Lt.static.elements}));Ki.drawVAO=new bi(null,null,null,function(Tn,Pn){return Tn.link(ca)}),Ki.useVAO=!0}}return er?Ki.useVAO=!0:Ki.attributes=_f(ht,sr),Ki.context=bf(Kt,sr),Ki}function Hu(Ke,ht,bt){var Kt=Ke.shared,sr=Kt.context,Qt=Ke.scope();Object.keys(bt).forEach(function(ur){ht.save(sr,"."+ur);var er=bt[ur],Ot=er.append(Ke,ht);Array.isArray(Ot)?Qt(sr,".",ur,"=[",Ot.join(),"];"):Qt(sr,".",ur,"=",Ot,";")}),ht(Qt)}function hf(Ke,ht,bt,Kt){var sr=Ke.shared,Qt=sr.gl,ur=sr.framebuffer,er;Yi&&(er=ht.def(sr.extensions,".webgl_draw_buffers"));var Ot=Ke.constants,Jt=Ot.drawBuffer,Lt=Ot.backBuffer,Tr;bt?Tr=bt.append(Ke,ht):Tr=ht.def(ur,".next"),Kt||ht("if(",Tr,"!==",ur,".cur){"),ht("if(",Tr,"){",Qt,".bindFramebuffer(",$r,",",Tr,".framebuffer);"),Yi&&ht(er,".drawBuffersWEBGL(",Jt,"[",Tr,".colorAttachments.length]);"),ht("}else{",Qt,".bindFramebuffer(",$r,",null);"),Yi&&ht(er,".drawBuffersWEBGL(",Lt,");"),ht("}",ur,".cur=",Tr,";"),Kt||ht("}")}function yf(Ke,ht,bt){var Kt=Ke.shared,sr=Kt.gl,Qt=Ke.current,ur=Ke.next,er=Kt.current,Ot=Kt.next,Jt=Ke.cond(er,".dirty");$i.forEach(function(Lt){var Tr=na(Lt);if(!(Tr in bt.state)){var Nr,ci;if(Tr in ur){Nr=ur[Tr],ci=Qt[Tr];var Cn=S(Kn[Tr].length,function(yn){return Jt.def(Nr,"[",yn,"]")});Jt(Ke.cond(Cn.map(function(yn,Xa){return yn+"!=="+ci+"["+Xa+"]"}).join("||")).then(sr,".",ro[Tr],"(",Cn,");",Cn.map(function(yn,Xa){return ci+"["+Xa+"]="+yn}).join(";"),";"))}else{Nr=Jt.def(Ot,".",Tr);var Ki=Ke.cond(Nr,"!==",er,".",Tr);Jt(Ki),Tr in Ui?Ki(Ke.cond(Nr).then(sr,".enable(",Ui[Tr],");").else(sr,".disable(",Ui[Tr],");"),er,".",Tr,"=",Nr,";"):Ki(sr,".",ro[Tr],"(",Nr,");",er,".",Tr,"=",Nr,";")}}}),Object.keys(bt.state).length===0&&Jt(er,".dirty=false;"),ht(Jt)}function Fl(Ke,ht,bt,Kt){var sr=Ke.shared,Qt=Ke.current,ur=sr.current,er=sr.gl,Ot;sn(Object.keys(bt)).forEach(function(Jt){var Lt=bt[Jt];if(!(Kt&&!Kt(Lt))){var Tr=Lt.append(Ke,ht);if(Ui[Jt]){var Nr=Ui[Jt];xo(Lt)?(Ot=Ke.link(Tr,{stable:!0}),ht(Ke.cond(Ot).then(er,".enable(",Nr,");").else(er,".disable(",Nr,");")),ht(ur,".",Jt,"=",Ot,";")):(ht(Ke.cond(Tr).then(er,".enable(",Nr,");").else(er,".disable(",Nr,");")),ht(ur,".",Jt,"=",Tr,";"))}else if(Qi(Tr)){var ci=Qt[Jt];ht(er,".",ro[Jt],"(",Tr,");",Tr.map(function(Cn,Ki){return ci+"["+Ki+"]="+Cn}).join(";"),";")}else xo(Lt)?(Ot=Ke.link(Tr,{stable:!0}),ht(er,".",ro[Jt],"(",Ot,");",ur,".",Jt,"=",Ot,";")):ht(er,".",ro[Jt],"(",Tr,");",ur,".",Jt,"=",Tr,";")}})}function wf(Ke,ht){En&&(Ke.instancing=ht.def(Ke.shared.extensions,".angle_instanced_arrays"))}function cu(Ke,ht,bt,Kt,sr){var Qt=Ke.shared,ur=Ke.stats,er=Qt.current,Ot=Qt.timer,Jt=bt.profile;function Lt(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var Tr,Nr;function ci(Tn){Tr=ht.def(),Tn(Tr,"=",Lt(),";"),typeof sr=="string"?Tn(ur,".count+=",sr,";"):Tn(ur,".count++;"),Hn&&(Kt?(Nr=ht.def(),Tn(Nr,"=",Ot,".getNumPendingQueries();")):Tn(Ot,".beginQuery(",ur,");"))}function Cn(Tn){Tn(ur,".cpuTime+=",Lt(),"-",Tr,";"),Hn&&(Kt?Tn(Ot,".pushScopeStats(",Nr,",",Ot,".getNumPendingQueries(),",ur,");"):Tn(Ot,".endQuery();"))}function Ki(Tn){var Pn=ht.def(er,".profile");ht(er,".profile=",Tn,";"),ht.exit(er,".profile=",Pn,";")}var yn;if(Jt){if(xo(Jt)){Jt.enable?(ci(ht),Cn(ht.exit),Ki("true")):Ki("false");return}yn=Jt.append(Ke,ht),Ki(yn)}else yn=ht.def(er,".profile");var Xa=Ke.block();ci(Xa),ht("if(",yn,"){",Xa,"}");var ca=Ke.block();Cn(ca),ht.exit("if(",yn,"){",ca,"}")}function Y(Ke,ht,bt,Kt,sr){var Qt=Ke.shared;function ur(Ot){switch(Ot){case au:case ou:case Wu:return 2;case Sl:case Pu:case Qu:return 3;case Yl:case iu:case Ju:return 4;default:return 1}}function er(Ot,Jt,Lt){var Tr=Qt.gl,Nr=ht.def(Ot,".location"),ci=ht.def(Qt.attributes,"[",Nr,"]"),Cn=Lt.state,Ki=Lt.buffer,yn=[Lt.x,Lt.y,Lt.z,Lt.w],Xa=["buffer","normalized","offset","stride"];function ca(){ht("if(!",ci,".buffer){",Tr,".enableVertexAttribArray(",Nr,");}");var Pn=Lt.type,Nn;if(Lt.size?Nn=ht.def(Lt.size,"||",Jt):Nn=Jt,ht("if(",ci,".type!==",Pn,"||",ci,".size!==",Nn,"||",Xa.map(function(Zo){return ci+"."+Zo+"!=="+Lt[Zo]}).join("||"),"){",Tr,".bindBuffer(",Rr,",",Ki,".buffer);",Tr,".vertexAttribPointer(",[Nr,Nn,Pn,Lt.normalized,Lt.stride,Lt.offset],");",ci,".type=",Pn,";",ci,".size=",Nn,";",Xa.map(function(Zo){return ci+"."+Zo+"="+Lt[Zo]+";"}).join(""),"}"),En){var xa=Lt.divisor;ht("if(",ci,".divisor!==",xa,"){",Ke.instancing,".vertexAttribDivisorANGLE(",[Nr,xa],");",ci,".divisor=",xa,";}")}}function Tn(){ht("if(",ci,".buffer){",Tr,".disableVertexAttribArray(",Nr,");",ci,".buffer=null;","}if(",ta.map(function(Pn,Nn){return ci+"."+Pn+"!=="+yn[Nn]}).join("||"),"){",Tr,".vertexAttrib4f(",Nr,",",yn,");",ta.map(function(Pn,Nn){return ci+"."+Pn+"="+yn[Nn]+";"}).join(""),"}")}Cn===ia?ca():Cn===pa?Tn():(ht("if(",Cn,"===",ia,"){"),ca(),ht("}else{"),Tn(),ht("}"))}Kt.forEach(function(Ot){var Jt=Ot.name,Lt=bt.attributes[Jt],Tr;if(Lt){if(!sr(Lt))return;Tr=Lt.append(Ke,ht)}else{if(!sr(js))return;var Nr=Ke.scopeAttrib(Jt);Tr={},Object.keys(new _i).forEach(function(ci){Tr[ci]=ht.def(Nr,".",ci)})}er(Ke.link(Ot),ur(Ot.info.type),Tr)})}function R(Ke,ht,bt,Kt,sr,Qt){for(var ur=Ke.shared,er=ur.gl,Ot,Jt=0;Jt1){for(var yu=[],Du=[],vu=0;vu>1)",Ki],");")}function xa(){bt(yn,".drawArraysInstancedANGLE(",[Nr,ci,Cn,Ki],");")}Lt&&Lt!=="null"?ca?Nn():(bt("if(",Lt,"){"),Nn(),bt("}else{"),xa(),bt("}")):xa()}function Pn(){function Nn(){bt(Qt+".drawElements("+[Nr,Cn,Xa,ci+"<<(("+Xa+"-"+ya+")>>1)"]+");")}function xa(){bt(Qt+".drawArrays("+[Nr,ci,Cn]+");")}Lt&&Lt!=="null"?ca?Nn():(bt("if(",Lt,"){"),Nn(),bt("}else{"),xa(),bt("}")):xa()}En&&(typeof Ki!="number"||Ki>=0)?typeof Ki=="string"?(bt("if(",Ki,">0){"),Tn(),bt("}else if(",Ki,"<0){"),Pn(),bt("}")):Tn():Pn()}function O(Ke,ht,bt,Kt,sr){var Qt=Mo(),ur=Qt.proc("body",sr);return En&&(Qt.instancing=ur.def(Qt.shared.extensions,".angle_instanced_arrays")),Ke(Qt,ur,bt,Kt),Qt.compile().body}function K(Ke,ht,bt,Kt){wf(Ke,ht),bt.useVAO?bt.drawVAO?ht(Ke.shared.vao,".setVAO(",bt.drawVAO.append(Ke,ht),");"):ht(Ke.shared.vao,".setVAO(",Ke.shared.vao,".targetVAO);"):(ht(Ke.shared.vao,".setVAO(null);"),Y(Ke,ht,bt,Kt.attributes,function(){return!0})),R(Ke,ht,bt,Kt.uniforms,function(){return!0},!1),J(Ke,ht,ht,bt)}function _e(Ke,ht){var bt=Ke.proc("draw",1);wf(Ke,bt),Hu(Ke,bt,ht.context),hf(Ke,bt,ht.framebuffer),yf(Ke,bt,ht),Fl(Ke,bt,ht.state),cu(Ke,bt,ht,!1,!0);var Kt=ht.shader.progVar.append(Ke,bt);if(bt(Ke.shared.gl,".useProgram(",Kt,".program);"),ht.shader.program)K(Ke,bt,ht,ht.shader.program);else{bt(Ke.shared.vao,".setVAO(null);");var sr=Ke.global.def("{}"),Qt=bt.def(Kt,".id"),ur=bt.def(sr,"[",Qt,"]");bt(Ke.cond(ur).then(ur,".call(this,a0);").else(ur,"=",sr,"[",Qt,"]=",Ke.link(function(er){return O(K,Ke,ht,er,1)}),"(",Kt,");",ur,".call(this,a0);"))}Object.keys(ht.state).length>0&&bt(Ke.shared.current,".dirty=true;"),Ke.shared.vao&&bt(Ke.shared.vao,".setVAO(null);")}function ne(Ke,ht,bt,Kt){Ke.batchId="a1",wf(Ke,ht);function sr(){return!0}Y(Ke,ht,bt,Kt.attributes,sr),R(Ke,ht,bt,Kt.uniforms,sr,!1),J(Ke,ht,ht,bt)}function Pe(Ke,ht,bt,Kt){wf(Ke,ht);var sr=bt.contextDep,Qt=ht.def(),ur="a0",er="a1",Ot=ht.def();Ke.shared.props=Ot,Ke.batchId=Qt;var Jt=Ke.scope(),Lt=Ke.scope();ht(Jt.entry,"for(",Qt,"=0;",Qt,"<",er,";++",Qt,"){",Ot,"=",ur,"[",Qt,"];",Lt,"}",Jt.exit);function Tr(Xa){return Xa.contextDep&&sr||Xa.propDep}function Nr(Xa){return!Tr(Xa)}if(bt.needsContext&&Hu(Ke,Lt,bt.context),bt.needsFramebuffer&&hf(Ke,Lt,bt.framebuffer),Fl(Ke,Lt,bt.state,Tr),bt.profile&&Tr(bt.profile)&&cu(Ke,Lt,bt,!1,!0),Kt)bt.useVAO?bt.drawVAO?Tr(bt.drawVAO)?Lt(Ke.shared.vao,".setVAO(",bt.drawVAO.append(Ke,Lt),");"):Jt(Ke.shared.vao,".setVAO(",bt.drawVAO.append(Ke,Jt),");"):Jt(Ke.shared.vao,".setVAO(",Ke.shared.vao,".targetVAO);"):(Jt(Ke.shared.vao,".setVAO(null);"),Y(Ke,Jt,bt,Kt.attributes,Nr),Y(Ke,Lt,bt,Kt.attributes,Tr)),R(Ke,Jt,bt,Kt.uniforms,Nr,!1),R(Ke,Lt,bt,Kt.uniforms,Tr,!0),J(Ke,Jt,Lt,bt);else{var ci=Ke.global.def("{}"),Cn=bt.shader.progVar.append(Ke,Lt),Ki=Lt.def(Cn,".id"),yn=Lt.def(ci,"[",Ki,"]");Lt(Ke.shared.gl,".useProgram(",Cn,".program);","if(!",yn,"){",yn,"=",ci,"[",Ki,"]=",Ke.link(function(Xa){return O(ne,Ke,bt,Xa,2)}),"(",Cn,");}",yn,".call(this,a0[",Qt,"],",Qt,");")}}function Ze(Ke,ht){var bt=Ke.proc("batch",2);Ke.batchId="0",wf(Ke,bt);var Kt=!1,sr=!0;Object.keys(ht.context).forEach(function(ci){Kt=Kt||ht.context[ci].propDep}),Kt||(Hu(Ke,bt,ht.context),sr=!1);var Qt=ht.framebuffer,ur=!1;Qt?(Qt.propDep?Kt=ur=!0:Qt.contextDep&&Kt&&(ur=!0),ur||hf(Ke,bt,Qt)):hf(Ke,bt,null),ht.state.viewport&&ht.state.viewport.propDep&&(Kt=!0);function er(ci){return ci.contextDep&&Kt||ci.propDep}yf(Ke,bt,ht),Fl(Ke,bt,ht.state,function(ci){return!er(ci)}),(!ht.profile||!er(ht.profile))&&cu(Ke,bt,ht,!1,"a1"),ht.contextDep=Kt,ht.needsContext=sr,ht.needsFramebuffer=ur;var Ot=ht.shader.progVar;if(Ot.contextDep&&Kt||Ot.propDep)Pe(Ke,bt,ht,null);else{var Jt=Ot.append(Ke,bt);if(bt(Ke.shared.gl,".useProgram(",Jt,".program);"),ht.shader.program)Pe(Ke,bt,ht,ht.shader.program);else{bt(Ke.shared.vao,".setVAO(null);");var Lt=Ke.global.def("{}"),Tr=bt.def(Jt,".id"),Nr=bt.def(Lt,"[",Tr,"]");bt(Ke.cond(Nr).then(Nr,".call(this,a0,a1);").else(Nr,"=",Lt,"[",Tr,"]=",Ke.link(function(ci){return O(Pe,Ke,ht,ci,2)}),"(",Jt,");",Nr,".call(this,a0,a1);"))}}Object.keys(ht.state).length>0&&bt(Ke.shared.current,".dirty=true;"),Ke.shared.vao&&bt(Ke.shared.vao,".setVAO(null);")}function Ct(Ke,ht){var bt=Ke.proc("scope",3);Ke.batchId="a2";var Kt=Ke.shared,sr=Kt.current;if(Hu(Ke,bt,ht.context),ht.framebuffer&&ht.framebuffer.append(Ke,bt),sn(Object.keys(ht.state)).forEach(function(er){var Ot=ht.state[er],Jt=Ot.append(Ke,bt);Qi(Jt)?Jt.forEach(function(Lt,Tr){Va(Lt)?bt.set(Ke.next[er],"["+Tr+"]",Lt):bt.set(Ke.next[er],"["+Tr+"]",Ke.link(Lt,{stable:!0}))}):xo(Ot)?bt.set(Kt.next,"."+er,Ke.link(Jt,{stable:!0})):bt.set(Kt.next,"."+er,Jt)}),cu(Ke,bt,ht,!0,!0),[Ft,kr,or,Vr,ir].forEach(function(er){var Ot=ht.draw[er];if(Ot){var Jt=Ot.append(Ke,bt);Va(Jt)?bt.set(Kt.draw,"."+er,Jt):bt.set(Kt.draw,"."+er,Ke.link(Jt),{stable:!0})}}),Object.keys(ht.uniforms).forEach(function(er){var Ot=ht.uniforms[er].append(Ke,bt);Array.isArray(Ot)&&(Ot="["+Ot.map(function(Jt){return Va(Jt)?Jt:Ke.link(Jt,{stable:!0})})+"]"),bt.set(Kt.uniforms,"["+Ke.link(qt.id(er),{stable:!0})+"]",Ot)}),Object.keys(ht.attributes).forEach(function(er){var Ot=ht.attributes[er].append(Ke,bt),Jt=Ke.scopeAttrib(er);Object.keys(new _i).forEach(function(Lt){bt.set(Jt,"."+Lt,Ot[Lt])})}),ht.scopeVAO){var Qt=ht.scopeVAO.append(Ke,bt);Va(Qt)?bt.set(Kt.vao,".targetVAO",Qt):bt.set(Kt.vao,".targetVAO",Ke.link(Qt,{stable:!0}))}function ur(er){var Ot=ht.shader[er];if(Ot){var Jt=Ot.append(Ke,bt);Va(Jt)?bt.set(Kt.shader,"."+er,Jt):bt.set(Kt.shader,"."+er,Ke.link(Jt,{stable:!0}))}}ur(et),ur(mt),Object.keys(ht.state).length>0&&(bt(sr,".dirty=true;"),bt.exit(sr,".dirty=true;")),bt("a1(",Ke.shared.context,",a0,",Ke.batchId,");")}function dr(Ke){if(!(typeof Ke!="object"||Qi(Ke))){for(var ht=Object.keys(Ke),bt=0;bt=0;--O){var K=_s[O];K&&K(Ni,null,0)}ar.flush(),wn&&wn.update()}function Dl(){!nl&&_s.length>0&&(nl=d.next(pl))}function Fu(){nl&&(d.cancel(pl),nl=null)}function mf(O){O.preventDefault(),mi=!0,Fu(),ul.forEach(function(K){K()})}function Ql(O){ar.getError(),mi=!1,fi.restore(),hs.restore(),En.restore(),$i.restore(),Ui.restore(),ro.restore(),ga.restore(),wn&&wn.restore(),na.procs.refresh(),Dl(),Qn.forEach(function(K){K()})}Va&&(Va.addEventListener(Au,mf,!1),Va.addEventListener(Tu,Ql,!1));function kf(){_s.length=0,Fu(),Va&&(Va.removeEventListener(Au,mf),Va.removeEventListener(Tu,Ql)),hs.clear(),ro.clear(),Ui.clear(),ga.clear(),$i.clear(),Yi.clear(),En.clear(),wn&&wn.clear(),Mo.forEach(function(O){O()})}function Cu(O){function K(Qt){var ur=e({},Qt);delete ur.uniforms,delete ur.attributes,delete ur.context,delete ur.vao,"stencil"in ur&&ur.stencil.op&&(ur.stencil.opBack=ur.stencil.opFront=ur.stencil.op,delete ur.stencil.op);function er(Ot){if(Ot in ur){var Jt=ur[Ot];delete ur[Ot],Object.keys(Jt).forEach(function(Lt){ur[Ot+"."+Lt]=Jt[Lt]})}}return er("blend"),er("depth"),er("cull"),er("stencil"),er("polygonOffset"),er("scissor"),er("sample"),"vao"in Qt&&(ur.vao=Qt.vao),ur}function _e(Qt,ur){var er={},Ot={};return Object.keys(Qt).forEach(function(Jt){var Lt=Qt[Jt];if(h.isDynamic(Lt)){Ot[Jt]=h.unbox(Lt,Jt);return}else if(ur&&Array.isArray(Lt)){for(var Tr=0;Tr0)return Ke.call(this,Kt(Qt|0),Qt|0)}else if(Array.isArray(Qt)){if(Qt.length)return Ke.call(this,Qt,Qt.length)}else return lr.call(this,Qt)}return e(sr,{stats:dr,destroy:function(){Er.destroy()}})}var _f=ro.setFBO=Cu({framebuffer:h.define.call(null,uf,"framebuffer")});function bf(O,K){var _e=0;na.procs.poll();var ne=K.color;ne&&(ar.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),_e|=Gu),"depth"in K&&(ar.clearDepth(+K.depth),_e|=rf),"stencil"in K&&(ar.clearStencil(K.stencil|0),_e|=ds),ar.clear(_e)}function Lf(O){if("framebuffer"in O)if(O.framebuffer&&O.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)_f(e({framebuffer:O.framebuffer.faces[K]},O),bf);else _f(O,bf);else bf(null,O)}function Hu(O){_s.push(O);function K(){var _e=vf(_s,O);function ne(){var Pe=vf(_s,ne);_s[Pe]=_s[_s.length-1],_s.length-=1,_s.length<=0&&Fu()}_s[_e]=ne}return Dl(),{cancel:K}}function hf(){var O=In.viewport,K=In.scissor_box;O[0]=O[1]=K[0]=K[1]=0,Ni.viewportWidth=Ni.framebufferWidth=Ni.drawingBufferWidth=O[2]=K[2]=ar.drawingBufferWidth,Ni.viewportHeight=Ni.framebufferHeight=Ni.drawingBufferHeight=O[3]=K[3]=ar.drawingBufferHeight}function yf(){Ni.tick+=1,Ni.time=wf(),hf(),na.procs.poll()}function Fl(){$i.refresh(),hf(),na.procs.refresh(),wn&&wn.update()}function wf(){return(p()-Ls)/1e3}Fl();function cu(O,K){var _e;switch(O){case"frame":return Hu(K);case"lost":_e=ul;break;case"restore":_e=Qn;break;case"destroy":_e=Mo;break;default:}return _e.push(K),{cancel:function(){for(var ne=0;ne<_e.length;++ne)if(_e[ne]===K){_e[ne]=_e[_e.length-1],_e.pop();return}}}}function Y(){return Bn}function R(O){Object.entries(O).forEach(function(K){Bn[K[0]]=K[1]})}var J=e(Cu,{clear:Lf,prop:h.define.bind(null,uf),context:h.define.bind(null,df),this:h.define.bind(null,Ef),draw:Cu({}),buffer:function(O){return En.create(O,Wl,!1,!1)},elements:function(O){return Yi.create(O,!1)},texture:$i.create2D,cube:$i.createCube,renderbuffer:Ui.create,framebuffer:ro.create,framebufferCube:ro.createCube,vao:ga.createVAO,attributes:Qr,frame:Hu,on:cu,limits:dn,hasExtension:function(O){return dn.extensions.indexOf(O.toLowerCase())>=0},read:On,destroy:kf,_gl:ar,_refresh:Fl,poll:function(){yf(),wn&&wn.update()},now:wf,stats:on,getCachedCode:Y,preloadCachedCode:R});return qt.onDone(null,J),J}return fc})});var w8=Te((O_r,TNe)=>{"use strict";var IUt=DX(),RUt=ANe();TNe.exports=function(t,r,n){var i=t._fullLayout,a=!0;return i._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(n);return}if(!(o.pick&&!i._has("parcoords"))){try{o.regl=RUt({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||window.devicePixelRatio,extensions:r||[],cachedCode:n||{}})}catch(s){a=!1}o.regl||(a=!1),a&&this.addEventListener("webglcontextlost",function(s){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:s,layer:o.key})},!1)}}),a||IUt({container:i._glcontainer.node()}),a}});var xK=Te((_K,CNe)=>{"use strict";var SNe=_Y(),MNe=KY(),DUt=dqe(),ENe=wNe(),gK=ei(),FUt=Sm().selectMode,BUt=w8(),OUt=lc(),qUt=MU(),NUt=vY().styleTextSelection,kNe={};function UUt(e,t,r,n){var i=e._size,a=e.width*n,o=e.height*n,s=i.l*n,u=i.b*n,l=i.r*n,f=i.t*n,c=i.w*n,h=i.h*n;return[s+t.domain[0]*c,u+r.domain[0]*h,a-l-(1-t.domain[1])*c,o-f-(1-r.domain[1])*h]}var _K=CNe.exports=function(t,r,n){if(n.length){var i=t._fullLayout,a=r._scene,o=r.xaxis,s=r.yaxis,u,l;if(a){var f=BUt(t,["ANGLE_instanced_arrays","OES_element_index_uint"],kNe);if(!f){a.init();return}var c=a.count,h=i._glcanvas.data()[0].regl;if(qUt(t,r,n),a.dirty){if((a.line2d||a.error2d)&&!(a.scatter2d||a.fill2d||a.glText)&&h.clear({color:!0,depth:!0}),a.error2d===!0&&(a.error2d=DUt(h)),a.line2d===!0&&(a.line2d=MNe(h)),a.scatter2d===!0&&(a.scatter2d=SNe(h)),a.fill2d===!0&&(a.fill2d=MNe(h)),a.glText===!0)for(a.glText=new Array(c),u=0;ua.glText.length){var d=c-a.glText.length;for(u=0;uae&&(isNaN(re[be])||isNaN(re[be+1]));)be-=2;W.positions=re.slice(ae,be+2)}return W}),a.line2d.update(a.lineOptions)),a.error2d){var b=(a.errorXOptions||[]).concat(a.errorYOptions||[]);a.error2d.update(b)}a.scatter2d&&a.scatter2d.update(a.markerOptions),a.fillOrder=gK.repeat(null,c),a.fill2d&&(a.fillOptions=a.fillOptions.map(function(W,re){var ae=n[re];if(!(!W||!ae||!ae[0]||!ae[0].trace)){var be=ae[0],Ce=be.trace,Le=be.t,pe=a.lineOptions[re],te,ke,Ee=[];Ce._ownfill&&Ee.push(re),Ce._nexttrace&&Ee.push(re+1),Ee.length&&(a.fillOrder[re]=Ee);var Me=[],Ne=pe&&pe.positions||Le.positions,Fe,ye;if(Ce.fill==="tozeroy"){for(Fe=0;FeFe&&isNaN(Ne[ye+1]);)ye-=2;Ne[Fe+1]!==0&&(Me=[Ne[Fe],0]),Me=Me.concat(Ne.slice(Fe,ye+2)),Ne[ye+1]!==0&&(Me=Me.concat([Ne[ye],0]))}else if(Ce.fill==="tozerox"){for(Fe=0;FeFe&&isNaN(Ne[ye]);)ye-=2;Ne[Fe]!==0&&(Me=[0,Ne[Fe+1]]),Me=Me.concat(Ne.slice(Fe,ye+2)),Ne[ye]!==0&&(Me=Me.concat([0,Ne[ye+1]]))}else if(Ce.fill==="toself"||Ce.fill==="tonext"){for(Me=[],te=0,W.splitNull=!0,ke=0;ke-1;for(u=0;u{LNe.exports=function(t,r,n){"use strict";var i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Ce,Le,pe,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Je,nt,gt,Nt,it,Ye,kt,Tt,St,Dt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr;return i=t.gl,a=t.context,o=t.strings,s=t.next,u=t.current,l=t.draw,f=t.elements,c=t.buffer,h=t.shader,d=t.attributes,p=t.vao,x=t.uniforms,b=t.framebuffer,v=t.extensions,k=t.timer,E=t.isBufferArgs,T=s.blend_color,L=u.blend_color,_=s.blend_equation,C=u.blend_equation,S=s.blend_func,m=u.blend_func,P=s.depth_range,A=u.depth_range,B=s.colorMask,F=u.colorMask,U=s.polygonOffset_offset,G=u.polygonOffset_offset,j=s.sample_coverage,H=u.sample_coverage,N=s.stencil_func,W=u.stencil_func,re=s.stencil_opFront,ae=u.stencil_opFront,be=s.stencil_opBack,Ce=u.stencil_opBack,Le=s.scissor_box,pe=u.scissor_box,te=s.viewport,ke=u.viewport,Ee={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Me={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ne={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Fe={add:32774,subtract:32778,"reverse subtract":32779},ye={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ve={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},ce={cw:2304,ccw:2305},Je=s.blend_color,nt=u.blend_color,gt=s.blend_equation,Nt=u.blend_equation,it=s.blend_func,Ye=u.blend_func,kt=s.depth_range,Tt=u.depth_range,St=s.colorMask,Dt=u.colorMask,Zt=s.polygonOffset_offset,Et=u.polygonOffset_offset,Ae=s.sample_coverage,at=u.sample_coverage,wt=s.stencil_func,vt=u.stencil_func,st=s.stencil_opFront,Ue=u.stencil_opFront,rt=s.stencil_opBack,$e=u.stencil_opBack,zt=s.scissor_box,Yt=u.scissor_box,hr=s.viewport,yr=u.viewport,{poll:function(){var br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,de,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii;u.dirty=!1,Ut=s.dither,Ie=s.blend_enable,xe=s.depth_enable,Oe=s.cull_enable,Re=s.polygonOffset_enable,De=s.sample_alpha,ct=s.sample_enable,ge=s.stencil_enable,fe=s.scissor_enable,de=s.depth_func,dt=u.depth_func,It=s.depth_mask,Pt=u.depth_mask,rr=s.cull_face,Hr=u.cull_face,Dr=s.frontFace,Mr=u.frontFace,Fr=s.lineWidth,di=u.lineWidth,Di=s.stencil_mask,Ii=u.stencil_mask,br=b.next,br!==b.cur&&(br?i.bindFramebuffer(36160,br.framebuffer):i.bindFramebuffer(36160,null),b.cur=br),Ut!==u.dither&&(Ut?i.enable(3024):i.disable(3024),u.dither=Ut),Ie!==u.blend_enable&&(Ie?i.enable(3042):i.disable(3042),u.blend_enable=Ie),xe!==u.depth_enable&&(xe?i.enable(2929):i.disable(2929),u.depth_enable=xe),Oe!==u.cull_enable&&(Oe?i.enable(2884):i.disable(2884),u.cull_enable=Oe),Re!==u.polygonOffset_enable&&(Re?i.enable(32823):i.disable(32823),u.polygonOffset_enable=Re),De!==u.sample_alpha&&(De?i.enable(32926):i.disable(32926),u.sample_alpha=De),ct!==u.sample_enable&&(ct?i.enable(32928):i.disable(32928),u.sample_enable=ct),ge!==u.stencil_enable&&(ge?i.enable(2960):i.disable(2960),u.stencil_enable=ge),fe!==u.scissor_enable&&(fe?i.enable(3089):i.disable(3089),u.scissor_enable=fe),(Je[0]!==nt[0]||Je[1]!==nt[1]||Je[2]!==nt[2]||Je[3]!==nt[3])&&(i.blendColor(Je[0],Je[1],Je[2],Je[3]),nt[0]=Je[0],nt[1]=Je[1],nt[2]=Je[2],nt[3]=Je[3]),(gt[0]!==Nt[0]||gt[1]!==Nt[1])&&(i.blendEquationSeparate(gt[0],gt[1]),Nt[0]=gt[0],Nt[1]=gt[1]),(it[0]!==Ye[0]||it[1]!==Ye[1]||it[2]!==Ye[2]||it[3]!==Ye[3])&&(i.blendFuncSeparate(it[0],it[1],it[2],it[3]),Ye[0]=it[0],Ye[1]=it[1],Ye[2]=it[2],Ye[3]=it[3]),de!==dt&&(i.depthFunc(de),u.depth_func=de),(kt[0]!==Tt[0]||kt[1]!==Tt[1])&&(i.depthRange(kt[0],kt[1]),Tt[0]=kt[0],Tt[1]=kt[1]),It!==Pt&&(i.depthMask(It),u.depth_mask=It),(St[0]!==Dt[0]||St[1]!==Dt[1]||St[2]!==Dt[2]||St[3]!==Dt[3])&&(i.colorMask(St[0],St[1],St[2],St[3]),Dt[0]=St[0],Dt[1]=St[1],Dt[2]=St[2],Dt[3]=St[3]),rr!==Hr&&(i.cullFace(rr),u.cull_face=rr),Dr!==Mr&&(i.frontFace(Dr),u.frontFace=Dr),Fr!==di&&(i.lineWidth(Fr),u.lineWidth=Fr),(Zt[0]!==Et[0]||Zt[1]!==Et[1])&&(i.polygonOffset(Zt[0],Zt[1]),Et[0]=Zt[0],Et[1]=Zt[1]),(Ae[0]!==at[0]||Ae[1]!==at[1])&&(i.sampleCoverage(Ae[0],Ae[1]),at[0]=Ae[0],at[1]=Ae[1]),Di!==Ii&&(i.stencilMask(Di),u.stencil_mask=Di),(wt[0]!==vt[0]||wt[1]!==vt[1]||wt[2]!==vt[2])&&(i.stencilFunc(wt[0],wt[1],wt[2]),vt[0]=wt[0],vt[1]=wt[1],vt[2]=wt[2]),(st[0]!==Ue[0]||st[1]!==Ue[1]||st[2]!==Ue[2]||st[3]!==Ue[3])&&(i.stencilOpSeparate(st[0],st[1],st[2],st[3]),Ue[0]=st[0],Ue[1]=st[1],Ue[2]=st[2],Ue[3]=st[3]),(rt[0]!==$e[0]||rt[1]!==$e[1]||rt[2]!==$e[2]||rt[3]!==$e[3])&&(i.stencilOpSeparate(rt[0],rt[1],rt[2],rt[3]),$e[0]=rt[0],$e[1]=rt[1],$e[2]=rt[2],$e[3]=rt[3]),(zt[0]!==Yt[0]||zt[1]!==Yt[1]||zt[2]!==Yt[2]||zt[3]!==Yt[3])&&(i.scissor(zt[0],zt[1],zt[2],zt[3]),Yt[0]=zt[0],Yt[1]=zt[1],Yt[2]=zt[2],Yt[3]=zt[3]),(hr[0]!==yr[0]||hr[1]!==yr[1]||hr[2]!==yr[2]||hr[3]!==yr[3])&&(i.viewport(hr[0],hr[1],hr[2],hr[3]),yr[0]=hr[0],yr[1]=hr[1],yr[2]=hr[2],yr[3]=hr[3])},refresh:function(){var br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,de,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn;u.dirty=!1,xe=s.dither,Oe=s.blend_enable,Re=s.depth_enable,De=s.cull_enable,ct=s.polygonOffset_enable,ge=s.sample_alpha,fe=s.sample_enable,de=s.stencil_enable,dt=s.scissor_enable,It=s.depth_func,Pt=u.depth_func,rr=s.depth_mask,Hr=u.depth_mask,Dr=s.cull_face,Mr=u.cull_face,Fr=s.frontFace,di=u.frontFace,Di=s.lineWidth,Ii=u.lineWidth,Ci=s.stencil_mask,nn=u.stencil_mask,br=b.next,br?i.bindFramebuffer(36160,br.framebuffer):i.bindFramebuffer(36160,null),b.cur=br,Ut=d,Ie=0;for(var ii=0;ii{PNe.exports=function(t,r,n,i,a,o,s,u){"use strict";var l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Ce,Le,pe,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Je,nt,gt,Nt,it,Ye,kt;return l=t.gl,f=t.context,c=t.strings,h=t.next,d=t.current,p=t.draw,x=t.elements,b=t.buffer,v=t.shader,k=t.attributes,E=t.vao,T=t.uniforms,L=t.framebuffer,_=t.extensions,C=t.timer,S=t.isBufferArgs,m=h.blend_color,P=d.blend_color,A=h.blend_equation,B=d.blend_equation,F=h.blend_func,U=d.blend_func,G=h.depth_range,j=d.depth_range,H=h.colorMask,N=d.colorMask,W=h.polygonOffset_offset,re=d.polygonOffset_offset,ae=h.sample_coverage,be=d.sample_coverage,Ce=h.stencil_func,Le=d.stencil_func,pe=h.stencil_opFront,te=d.stencil_opFront,ke=h.stencil_opBack,Ee=d.stencil_opBack,Me=h.scissor_box,Ne=d.scissor_box,Fe=h.viewport,ye=d.viewport,Ve={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},ce={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Je={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},nt={add:32774,subtract:32778,"reverse subtract":32779},gt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Nt={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},it={cw:2304,ccw:2305},Ye={},kt={},{draw:function(Tt){var St,Dt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie;if(St=_.angle_instanced_arrays,Dt=Tt.framebuffer,Zt=L.getFramebuffer(Dt),Et=L.next,L.next=Zt,Ae=f.framebufferWidth,f.framebufferWidth=Zt?Zt.width:f.drawingBufferWidth,at=f.framebufferHeight,f.framebufferHeight=Zt?Zt.height:f.drawingBufferHeight,Zt!==L.cur&&(Zt?l.bindFramebuffer(36160,Zt.framebuffer):l.bindFramebuffer(36160,null),L.cur=Zt),d.dirty){var xe,Oe,Re,De,ct,ge,fe,de,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri;xe=h.dither,xe!==d.dither&&(xe?l.enable(3024):l.disable(3024),d.dither=xe),Oe=h.blend_enable,Oe!==d.blend_enable&&(Oe?l.enable(3042):l.disable(3042),d.blend_enable=Oe),Re=m[0],De=m[1],ct=m[2],ge=m[3],(Re!==P[0]||De!==P[1]||ct!==P[2]||ge!==P[3])&&(l.blendColor(Re,De,ct,ge),P[0]=Re,P[1]=De,P[2]=ct,P[3]=ge),fe=A[0],de=A[1],(fe!==B[0]||de!==B[1])&&(l.blendEquationSeparate(fe,de),B[0]=fe,B[1]=de),dt=F[0],It=F[1],Pt=F[2],rr=F[3],(dt!==U[0]||It!==U[1]||Pt!==U[2]||rr!==U[3])&&(l.blendFuncSeparate(dt,It,Pt,rr),U[0]=dt,U[1]=It,U[2]=Pt,U[3]=rr),Hr=h.depth_enable,Hr!==d.depth_enable&&(Hr?l.enable(2929):l.disable(2929),d.depth_enable=Hr),Dr=h.depth_func,Dr!==d.depth_func&&(l.depthFunc(Dr),d.depth_func=Dr),Mr=G[0],Fr=G[1],(Mr!==j[0]||Fr!==j[1])&&(l.depthRange(Mr,Fr),j[0]=Mr,j[1]=Fr),di=h.depth_mask,di!==d.depth_mask&&(l.depthMask(di),d.depth_mask=di),Di=H[0],Ii=H[1],Ci=H[2],nn=H[3],(Di!==N[0]||Ii!==N[1]||Ci!==N[2]||nn!==N[3])&&(l.colorMask(Di,Ii,Ci,nn),N[0]=Di,N[1]=Ii,N[2]=Ci,N[3]=nn),ii=h.cull_enable,ii!==d.cull_enable&&(ii?l.enable(2884):l.disable(2884),d.cull_enable=ii),wi=h.cull_face,wi!==d.cull_face&&(l.cullFace(wi),d.cull_face=wi),Gi=h.frontFace,Gi!==d.frontFace&&(l.frontFace(Gi),d.frontFace=Gi),Bt=h.lineWidth,Bt!==d.lineWidth&&(l.lineWidth(Bt),d.lineWidth=Bt),yt=h.polygonOffset_enable,yt!==d.polygonOffset_enable&&(yt?l.enable(32823):l.disable(32823),d.polygonOffset_enable=yt),Vt=W[0],Wt=W[1],(Vt!==re[0]||Wt!==re[1])&&(l.polygonOffset(Vt,Wt),re[0]=Vt,re[1]=Wt),_r=h.sample_alpha,_r!==d.sample_alpha&&(_r?l.enable(32926):l.disable(32926),d.sample_alpha=_r),Lr=h.sample_enable,Lr!==d.sample_enable&&(Lr?l.enable(32928):l.disable(32928),d.sample_enable=Lr),Ur=ae[0],Ir=ae[1],(Ur!==be[0]||Ir!==be[1])&&(l.sampleCoverage(Ur,Ir),be[0]=Ur,be[1]=Ir),Gr=h.stencil_enable,Gr!==d.stencil_enable&&(Gr?l.enable(2960):l.disable(2960),d.stencil_enable=Gr),jr=h.stencil_mask,jr!==d.stencil_mask&&(l.stencilMask(jr),d.stencil_mask=jr),yi=Ce[0],Ei=Ce[1],Vi=Ce[2],(yi!==Le[0]||Ei!==Le[1]||Vi!==Le[2])&&(l.stencilFunc(yi,Ei,Vi),Le[0]=yi,Le[1]=Ei,Le[2]=Vi),ti=pe[0],en=pe[1],Yr=pe[2],oi=pe[3],(ti!==te[0]||en!==te[1]||Yr!==te[2]||oi!==te[3])&&(l.stencilOpSeparate(ti,en,Yr,oi),te[0]=ti,te[1]=en,te[2]=Yr,te[3]=oi),Bi=ke[0],an=ke[1],rn=ke[2],Fi=ke[3],(Bi!==Ee[0]||an!==Ee[1]||rn!==Ee[2]||Fi!==Ee[3])&&(l.stencilOpSeparate(Bi,an,rn,Fi),Ee[0]=Bi,Ee[1]=an,Ee[2]=rn,Ee[3]=Fi),Ri=h.scissor_enable,Ri!==d.scissor_enable&&(Ri?l.enable(3089):l.disable(3089),d.scissor_enable=Ri)}wt=f.framebufferWidth,vt=f.framebufferHeight,st=f.viewportWidth,f.viewportWidth=wt,Ue=f.viewportHeight,f.viewportHeight=vt,l.viewport(0,0,wt,vt),ye[0]=0,ye[1]=0,ye[2]=wt,ye[3]=vt,rt=f.framebufferWidth,$e=f.framebufferHeight,l.scissor(0,0,rt,$e),Ne[0]=0,Ne[1]=0,Ne[2]=rt,Ne[3]=$e,zt=d.profile,zt&&(Yt=performance.now(),r.count++),hr=v.frag,yr=v.vert,br=v.program(yr,hr),l.useProgram(br.program),E.setVAO(null),Ut=br.id,Ie=Ye[Ut],Ie?Ie.call(this,Tt):(Ie=Ye[Ut]=n(br),Ie.call(this,Tt)),d.dirty=!0,E.setVAO(null),L.next=Et,f.framebufferWidth=Ae,f.framebufferHeight=at,f.viewportWidth=st,f.viewportHeight=Ue,zt&&(r.cpuTime+=performance.now()-Yt)},scope:function(Tt,St,Dt){var Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De;Zt=Tt.framebuffer,Et=L.getFramebuffer(Zt),Ae=L.next,L.next=Et,at=f.framebufferWidth,f.framebufferWidth=Et?Et.width:f.drawingBufferWidth,wt=f.framebufferHeight,f.framebufferHeight=Et?Et.height:f.drawingBufferHeight,vt=f.framebufferWidth,st=f.framebufferHeight,Ue=f.viewportWidth,f.viewportWidth=vt,rt=f.viewportHeight,f.viewportHeight=st,$e=Fe[0],Fe[0]=i,zt=Fe[1],Fe[1]=a,Yt=Fe[2],Fe[2]=vt,hr=Fe[3],Fe[3]=st,yr=f.framebufferWidth,br=f.framebufferHeight,Ut=Me[0],Me[0]=o,Ie=Me[1],Me[1]=s,xe=Me[2],Me[2]=yr,Oe=Me[3],Me[3]=br,Re=d.profile,Re&&(De=performance.now(),r.count++),d.dirty=!0,St(f,Tt,Dt),L.next=Ae,f.framebufferWidth=at,f.framebufferHeight=wt,f.viewportWidth=Ue,f.viewportHeight=rt,Fe[0]=$e,Fe[1]=zt,Fe[2]=Yt,Fe[3]=hr,Me[0]=Ut,Me[1]=Ie,Me[2]=xe,Me[3]=Oe,Re&&(r.cpuTime+=performance.now()-De),d.dirty=!0},batch:function(Tt,St){var Dt,Zt,Et,Ae,at,wt,vt,st;if(Dt=_.angle_instanced_arrays,d.dirty){var Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,de,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei;Ue=h.dither,Ue!==d.dither&&(Ue?l.enable(3024):l.disable(3024),d.dither=Ue),rt=h.blend_enable,rt!==d.blend_enable&&(rt?l.enable(3042):l.disable(3042),d.blend_enable=rt),$e=m[0],zt=m[1],Yt=m[2],hr=m[3],($e!==P[0]||zt!==P[1]||Yt!==P[2]||hr!==P[3])&&(l.blendColor($e,zt,Yt,hr),P[0]=$e,P[1]=zt,P[2]=Yt,P[3]=hr),yr=A[0],br=A[1],(yr!==B[0]||br!==B[1])&&(l.blendEquationSeparate(yr,br),B[0]=yr,B[1]=br),Ut=F[0],Ie=F[1],xe=F[2],Oe=F[3],(Ut!==U[0]||Ie!==U[1]||xe!==U[2]||Oe!==U[3])&&(l.blendFuncSeparate(Ut,Ie,xe,Oe),U[0]=Ut,U[1]=Ie,U[2]=xe,U[3]=Oe),Re=h.depth_enable,Re!==d.depth_enable&&(Re?l.enable(2929):l.disable(2929),d.depth_enable=Re),De=h.depth_func,De!==d.depth_func&&(l.depthFunc(De),d.depth_func=De),ct=G[0],ge=G[1],(ct!==j[0]||ge!==j[1])&&(l.depthRange(ct,ge),j[0]=ct,j[1]=ge),fe=h.depth_mask,fe!==d.depth_mask&&(l.depthMask(fe),d.depth_mask=fe),de=H[0],dt=H[1],It=H[2],Pt=H[3],(de!==N[0]||dt!==N[1]||It!==N[2]||Pt!==N[3])&&(l.colorMask(de,dt,It,Pt),N[0]=de,N[1]=dt,N[2]=It,N[3]=Pt),rr=h.cull_enable,rr!==d.cull_enable&&(rr?l.enable(2884):l.disable(2884),d.cull_enable=rr),Hr=h.cull_face,Hr!==d.cull_face&&(l.cullFace(Hr),d.cull_face=Hr),Dr=h.frontFace,Dr!==d.frontFace&&(l.frontFace(Dr),d.frontFace=Dr),Mr=h.lineWidth,Mr!==d.lineWidth&&(l.lineWidth(Mr),d.lineWidth=Mr),Fr=h.polygonOffset_enable,Fr!==d.polygonOffset_enable&&(Fr?l.enable(32823):l.disable(32823),d.polygonOffset_enable=Fr),di=W[0],Di=W[1],(di!==re[0]||Di!==re[1])&&(l.polygonOffset(di,Di),re[0]=di,re[1]=Di),Ii=h.sample_alpha,Ii!==d.sample_alpha&&(Ii?l.enable(32926):l.disable(32926),d.sample_alpha=Ii),Ci=h.sample_enable,Ci!==d.sample_enable&&(Ci?l.enable(32928):l.disable(32928),d.sample_enable=Ci),nn=ae[0],ii=ae[1],(nn!==be[0]||ii!==be[1])&&(l.sampleCoverage(nn,ii),be[0]=nn,be[1]=ii),wi=h.stencil_enable,wi!==d.stencil_enable&&(wi?l.enable(2960):l.disable(2960),d.stencil_enable=wi),Gi=h.stencil_mask,Gi!==d.stencil_mask&&(l.stencilMask(Gi),d.stencil_mask=Gi),Bt=Ce[0],yt=Ce[1],Vt=Ce[2],(Bt!==Le[0]||yt!==Le[1]||Vt!==Le[2])&&(l.stencilFunc(Bt,yt,Vt),Le[0]=Bt,Le[1]=yt,Le[2]=Vt),Wt=pe[0],_r=pe[1],Lr=pe[2],Ur=pe[3],(Wt!==te[0]||_r!==te[1]||Lr!==te[2]||Ur!==te[3])&&(l.stencilOpSeparate(Wt,_r,Lr,Ur),te[0]=Wt,te[1]=_r,te[2]=Lr,te[3]=Ur),Ir=ke[0],Gr=ke[1],jr=ke[2],yi=ke[3],(Ir!==Ee[0]||Gr!==Ee[1]||jr!==Ee[2]||yi!==Ee[3])&&(l.stencilOpSeparate(Ir,Gr,jr,yi),Ee[0]=Ir,Ee[1]=Gr,Ee[2]=jr,Ee[3]=yi),Ei=h.scissor_enable,Ei!==d.scissor_enable&&(Ei?l.enable(3089):l.disable(3089),d.scissor_enable=Ei)}Zt=d.profile,Zt&&(Et=performance.now(),r.count+=St),Ae=v.frag,at=v.vert,wt=v.program(at,Ae),l.useProgram(wt.program),E.setVAO(null),vt=wt.id,st=kt[vt],st?st.call(this,Tt,St):(st=kt[vt]=u(wt),st.call(this,Tt,St)),d.dirty=!0,E.setVAO(null),Zt&&(r.cpuTime+=performance.now()-Et)}}}});var S8=Te((U_r,zNe)=>{zNe.exports=function(t,r,n,i){"use strict";var a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Ce,Le,pe,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Je,nt,gt;return a=t.gl,o=t.context,s=t.strings,u=t.next,l=t.current,f=t.draw,c=t.elements,h=t.buffer,d=t.shader,p=t.attributes,x=t.vao,b=t.uniforms,v=t.framebuffer,k=t.extensions,E=t.timer,T=t.isBufferArgs,L=u.blend_color,_=l.blend_color,C=u.blend_equation,S=l.blend_equation,m=u.blend_func,P=l.blend_func,A=u.depth_range,B=l.depth_range,F=u.colorMask,U=l.colorMask,G=u.polygonOffset_offset,j=l.polygonOffset_offset,H=u.sample_coverage,N=l.sample_coverage,W=u.stencil_func,re=l.stencil_func,ae=u.stencil_opFront,be=l.stencil_opFront,Ce=u.stencil_opBack,Le=l.stencil_opBack,pe=u.scissor_box,te=l.scissor_box,ke=u.viewport,Ee=l.viewport,Me={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ne={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Fe={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},ye={add:32774,subtract:32778,"reverse subtract":32779},Ve={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ce={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Je={cw:2304,ccw:2305},nt={},gt={},{draw:function(Nt){var it,Ye,kt,Tt,St,Dt,Zt,Et,Ae;if(it=k.angle_instanced_arrays,Ye=v.next,Ye!==v.cur&&(Ye?a.bindFramebuffer(36160,Ye.framebuffer):a.bindFramebuffer(36160,null),v.cur=Ye),l.dirty){var at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,de,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr;at=u.dither,at!==l.dither&&(at?a.enable(3024):a.disable(3024),l.dither=at),wt=u.blend_enable,wt!==l.blend_enable&&(wt?a.enable(3042):a.disable(3042),l.blend_enable=wt),vt=L[0],st=L[1],Ue=L[2],rt=L[3],(vt!==_[0]||st!==_[1]||Ue!==_[2]||rt!==_[3])&&(a.blendColor(vt,st,Ue,rt),_[0]=vt,_[1]=st,_[2]=Ue,_[3]=rt),$e=C[0],zt=C[1],($e!==S[0]||zt!==S[1])&&(a.blendEquationSeparate($e,zt),S[0]=$e,S[1]=zt),Yt=m[0],hr=m[1],yr=m[2],br=m[3],(Yt!==P[0]||hr!==P[1]||yr!==P[2]||br!==P[3])&&(a.blendFuncSeparate(Yt,hr,yr,br),P[0]=Yt,P[1]=hr,P[2]=yr,P[3]=br),Ut=u.depth_enable,Ut!==l.depth_enable&&(Ut?a.enable(2929):a.disable(2929),l.depth_enable=Ut),Ie=u.depth_func,Ie!==l.depth_func&&(a.depthFunc(Ie),l.depth_func=Ie),xe=A[0],Oe=A[1],(xe!==B[0]||Oe!==B[1])&&(a.depthRange(xe,Oe),B[0]=xe,B[1]=Oe),Re=u.depth_mask,Re!==l.depth_mask&&(a.depthMask(Re),l.depth_mask=Re),De=F[0],ct=F[1],ge=F[2],fe=F[3],(De!==U[0]||ct!==U[1]||ge!==U[2]||fe!==U[3])&&(a.colorMask(De,ct,ge,fe),U[0]=De,U[1]=ct,U[2]=ge,U[3]=fe),de=u.cull_enable,de!==l.cull_enable&&(de?a.enable(2884):a.disable(2884),l.cull_enable=de),dt=u.cull_face,dt!==l.cull_face&&(a.cullFace(dt),l.cull_face=dt),It=u.frontFace,It!==l.frontFace&&(a.frontFace(It),l.frontFace=It),Pt=u.lineWidth,Pt!==l.lineWidth&&(a.lineWidth(Pt),l.lineWidth=Pt),rr=u.polygonOffset_enable,rr!==l.polygonOffset_enable&&(rr?a.enable(32823):a.disable(32823),l.polygonOffset_enable=rr),Hr=G[0],Dr=G[1],(Hr!==j[0]||Dr!==j[1])&&(a.polygonOffset(Hr,Dr),j[0]=Hr,j[1]=Dr),Mr=u.sample_alpha,Mr!==l.sample_alpha&&(Mr?a.enable(32926):a.disable(32926),l.sample_alpha=Mr),Fr=u.sample_enable,Fr!==l.sample_enable&&(Fr?a.enable(32928):a.disable(32928),l.sample_enable=Fr),di=H[0],Di=H[1],(di!==N[0]||Di!==N[1])&&(a.sampleCoverage(di,Di),N[0]=di,N[1]=Di),Ii=u.stencil_enable,Ii!==l.stencil_enable&&(Ii?a.enable(2960):a.disable(2960),l.stencil_enable=Ii),Ci=u.stencil_mask,Ci!==l.stencil_mask&&(a.stencilMask(Ci),l.stencil_mask=Ci),nn=W[0],ii=W[1],wi=W[2],(nn!==re[0]||ii!==re[1]||wi!==re[2])&&(a.stencilFunc(nn,ii,wi),re[0]=nn,re[1]=ii,re[2]=wi),Gi=ae[0],Bt=ae[1],yt=ae[2],Vt=ae[3],(Gi!==be[0]||Bt!==be[1]||yt!==be[2]||Vt!==be[3])&&(a.stencilOpSeparate(Gi,Bt,yt,Vt),be[0]=Gi,be[1]=Bt,be[2]=yt,be[3]=Vt),Wt=Ce[0],_r=Ce[1],Lr=Ce[2],Ur=Ce[3],(Wt!==Le[0]||_r!==Le[1]||Lr!==Le[2]||Ur!==Le[3])&&(a.stencilOpSeparate(Wt,_r,Lr,Ur),Le[0]=Wt,Le[1]=_r,Le[2]=Lr,Le[3]=Ur),Ir=u.scissor_enable,Ir!==l.scissor_enable&&(Ir?a.enable(3089):a.disable(3089),l.scissor_enable=Ir),Gr=pe[0],jr=pe[1],yi=pe[2],Ei=pe[3],(Gr!==te[0]||jr!==te[1]||yi!==te[2]||Ei!==te[3])&&(a.scissor(Gr,jr,yi,Ei),te[0]=Gr,te[1]=jr,te[2]=yi,te[3]=Ei),Vi=ke[0],ti=ke[1],en=ke[2],Yr=ke[3],(Vi!==Ee[0]||ti!==Ee[1]||en!==Ee[2]||Yr!==Ee[3])&&(a.viewport(Vi,ti,en,Yr),Ee[0]=Vi,Ee[1]=ti,Ee[2]=en,Ee[3]=Yr),l.dirty=!1}kt=l.profile,kt&&(Tt=performance.now(),r.count++),St=d.frag,Dt=d.vert,Zt=d.program(Dt,St),a.useProgram(Zt.program),x.setVAO(null),Et=Zt.id,Ae=nt[Et],Ae?Ae.call(this,Nt):(Ae=nt[Et]=n(Zt),Ae.call(this,Nt)),x.setVAO(null),kt&&(r.cpuTime+=performance.now()-Tt)},scope:function(Nt,it,Ye){var kt,Tt;kt=l.profile,kt&&(Tt=performance.now(),r.count++),it(o,Nt,Ye),kt&&(r.cpuTime+=performance.now()-Tt)},batch:function(Nt,it){var Ye,kt,Tt,St,Dt,Zt,Et,Ae,at;if(Ye=k.angle_instanced_arrays,kt=v.next,kt!==v.cur&&(kt?a.bindFramebuffer(36160,kt.framebuffer):a.bindFramebuffer(36160,null),v.cur=kt),l.dirty){var wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,de,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi;wt=u.dither,wt!==l.dither&&(wt?a.enable(3024):a.disable(3024),l.dither=wt),vt=u.blend_enable,vt!==l.blend_enable&&(vt?a.enable(3042):a.disable(3042),l.blend_enable=vt),st=L[0],Ue=L[1],rt=L[2],$e=L[3],(st!==_[0]||Ue!==_[1]||rt!==_[2]||$e!==_[3])&&(a.blendColor(st,Ue,rt,$e),_[0]=st,_[1]=Ue,_[2]=rt,_[3]=$e),zt=C[0],Yt=C[1],(zt!==S[0]||Yt!==S[1])&&(a.blendEquationSeparate(zt,Yt),S[0]=zt,S[1]=Yt),hr=m[0],yr=m[1],br=m[2],Ut=m[3],(hr!==P[0]||yr!==P[1]||br!==P[2]||Ut!==P[3])&&(a.blendFuncSeparate(hr,yr,br,Ut),P[0]=hr,P[1]=yr,P[2]=br,P[3]=Ut),Ie=u.depth_enable,Ie!==l.depth_enable&&(Ie?a.enable(2929):a.disable(2929),l.depth_enable=Ie),xe=u.depth_func,xe!==l.depth_func&&(a.depthFunc(xe),l.depth_func=xe),Oe=A[0],Re=A[1],(Oe!==B[0]||Re!==B[1])&&(a.depthRange(Oe,Re),B[0]=Oe,B[1]=Re),De=u.depth_mask,De!==l.depth_mask&&(a.depthMask(De),l.depth_mask=De),ct=F[0],ge=F[1],fe=F[2],de=F[3],(ct!==U[0]||ge!==U[1]||fe!==U[2]||de!==U[3])&&(a.colorMask(ct,ge,fe,de),U[0]=ct,U[1]=ge,U[2]=fe,U[3]=de),dt=u.cull_enable,dt!==l.cull_enable&&(dt?a.enable(2884):a.disable(2884),l.cull_enable=dt),It=u.cull_face,It!==l.cull_face&&(a.cullFace(It),l.cull_face=It),Pt=u.frontFace,Pt!==l.frontFace&&(a.frontFace(Pt),l.frontFace=Pt),rr=u.lineWidth,rr!==l.lineWidth&&(a.lineWidth(rr),l.lineWidth=rr),Hr=u.polygonOffset_enable,Hr!==l.polygonOffset_enable&&(Hr?a.enable(32823):a.disable(32823),l.polygonOffset_enable=Hr),Dr=G[0],Mr=G[1],(Dr!==j[0]||Mr!==j[1])&&(a.polygonOffset(Dr,Mr),j[0]=Dr,j[1]=Mr),Fr=u.sample_alpha,Fr!==l.sample_alpha&&(Fr?a.enable(32926):a.disable(32926),l.sample_alpha=Fr),di=u.sample_enable,di!==l.sample_enable&&(di?a.enable(32928):a.disable(32928),l.sample_enable=di),Di=H[0],Ii=H[1],(Di!==N[0]||Ii!==N[1])&&(a.sampleCoverage(Di,Ii),N[0]=Di,N[1]=Ii),Ci=u.stencil_enable,Ci!==l.stencil_enable&&(Ci?a.enable(2960):a.disable(2960),l.stencil_enable=Ci),nn=u.stencil_mask,nn!==l.stencil_mask&&(a.stencilMask(nn),l.stencil_mask=nn),ii=W[0],wi=W[1],Gi=W[2],(ii!==re[0]||wi!==re[1]||Gi!==re[2])&&(a.stencilFunc(ii,wi,Gi),re[0]=ii,re[1]=wi,re[2]=Gi),Bt=ae[0],yt=ae[1],Vt=ae[2],Wt=ae[3],(Bt!==be[0]||yt!==be[1]||Vt!==be[2]||Wt!==be[3])&&(a.stencilOpSeparate(Bt,yt,Vt,Wt),be[0]=Bt,be[1]=yt,be[2]=Vt,be[3]=Wt),_r=Ce[0],Lr=Ce[1],Ur=Ce[2],Ir=Ce[3],(_r!==Le[0]||Lr!==Le[1]||Ur!==Le[2]||Ir!==Le[3])&&(a.stencilOpSeparate(_r,Lr,Ur,Ir),Le[0]=_r,Le[1]=Lr,Le[2]=Ur,Le[3]=Ir),Gr=u.scissor_enable,Gr!==l.scissor_enable&&(Gr?a.enable(3089):a.disable(3089),l.scissor_enable=Gr),jr=pe[0],yi=pe[1],Ei=pe[2],Vi=pe[3],(jr!==te[0]||yi!==te[1]||Ei!==te[2]||Vi!==te[3])&&(a.scissor(jr,yi,Ei,Vi),te[0]=jr,te[1]=yi,te[2]=Ei,te[3]=Vi),ti=ke[0],en=ke[1],Yr=ke[2],oi=ke[3],(ti!==Ee[0]||en!==Ee[1]||Yr!==Ee[2]||oi!==Ee[3])&&(a.viewport(ti,en,Yr,oi),Ee[0]=ti,Ee[1]=en,Ee[2]=Yr,Ee[3]=oi),l.dirty=!1}Tt=l.profile,Tt&&(St=performance.now(),r.count+=it),Dt=d.frag,Zt=d.vert,Et=d.program(Zt,Dt),a.useProgram(Et.program),x.setVAO(null),Ae=Et.id,at=gt[Ae],at?at.call(this,Nt,it):(at=gt[Ae]=i(Et),at.call(this,Nt,it)),x.setVAO(null),Tt&&(r.cpuTime+=performance.now()-St)}}}});var M8=Te((V_r,INe)=>{INe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Ce,Le,pe,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Je,nt,gt,Nt,it,Ye,kt,Tt,St,Dt,Zt,Et,Ae,at,wt,vt,st,Ue,rt){"use strict";var $e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,de,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn;return $e=t.gl,zt=t.context,Yt=t.strings,hr=t.next,yr=t.current,br=t.draw,Ut=t.elements,Ie=t.buffer,xe=t.shader,Oe=t.attributes,Re=t.vao,De=t.uniforms,ct=t.framebuffer,ge=t.extensions,fe=t.timer,de=t.isBufferArgs,dt=hr.blend_color,It=yr.blend_color,Pt=hr.blend_equation,rr=yr.blend_equation,Hr=hr.blend_func,Dr=yr.blend_func,Mr=hr.depth_range,Fr=yr.depth_range,di=hr.colorMask,Di=yr.colorMask,Ii=hr.polygonOffset_offset,Ci=yr.polygonOffset_offset,nn=hr.sample_coverage,ii=yr.sample_coverage,wi=hr.stencil_func,Gi=yr.stencil_func,Bt=hr.stencil_opFront,yt=yr.stencil_opFront,Vt=hr.stencil_opBack,Wt=yr.stencil_opBack,_r=hr.scissor_box,Lr=yr.scissor_box,Ur=hr.viewport,Ir=yr.viewport,Gr={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},jr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},yi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Ei={add:32774,subtract:32778,"reverse subtract":32779},Vi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ti={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},en={cw:2304,ccw:2305},Yr={},Yr.stride=8,Yr.offset=8,Yr.divisor=1,oi={},oi.stride=8,oi.offset=16,oi.divisor=1,Bi={},Bi.stride=8,Bi.offset=8,Bi.divisor=1,an={},an.stride=8,an.offset=16,an.divisor=1,rn={},rn.stride=4,rn.offset=0,rn.divisor=1,{draw:function(Fi){var Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa;if(Ri=ge.angle_instanced_arrays,xn=ct.next,xn!==ct.cur&&(xn?$e.bindFramebuffer(36160,xn.framebuffer):$e.bindFramebuffer(36160,null),ct.cur=xn),yr.dirty){var os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi;os=hr.dither,os!==yr.dither&&(os?$e.enable(3024):$e.disable(3024),yr.dither=os),_l=hr.depth_func,_l!==yr.depth_func&&($e.depthFunc(_l),yr.depth_func=_l),Ss=Mr[0],po=Mr[1],(Ss!==Fr[0]||po!==Fr[1])&&($e.depthRange(Ss,po),Fr[0]=Ss,Fr[1]=po),go=hr.depth_mask,go!==yr.depth_mask&&($e.depthMask(go),yr.depth_mask=go),ss=di[0],qo=di[1],zo=di[2],io=di[3],(ss!==Di[0]||qo!==Di[1]||zo!==Di[2]||io!==Di[3])&&($e.colorMask(ss,qo,zo,io),Di[0]=ss,Di[1]=qo,Di[2]=zo,Di[3]=io),Io=hr.cull_enable,Io!==yr.cull_enable&&(Io?$e.enable(2884):$e.disable(2884),yr.cull_enable=Io),Da=hr.cull_face,Da!==yr.cull_face&&($e.cullFace(Da),yr.cull_face=Da),vs=hr.frontFace,vs!==yr.frontFace&&($e.frontFace(vs),yr.frontFace=vs),fs=hr.lineWidth,fs!==yr.lineWidth&&($e.lineWidth(fs),yr.lineWidth=fs),cl=hr.polygonOffset_enable,cl!==yr.polygonOffset_enable&&(cl?$e.enable(32823):$e.disable(32823),yr.polygonOffset_enable=cl),el=Ii[0],Hs=Ii[1],(el!==Ci[0]||Hs!==Ci[1])&&($e.polygonOffset(el,Hs),Ci[0]=el,Ci[1]=Hs),Ro=hr.sample_alpha,Ro!==yr.sample_alpha&&(Ro?$e.enable(32926):$e.disable(32926),yr.sample_alpha=Ro),tl=hr.sample_enable,tl!==yr.sample_enable&&(tl?$e.enable(32928):$e.disable(32928),yr.sample_enable=tl),Fs=nn[0],hl=nn[1],(Fs!==ii[0]||hl!==ii[1])&&($e.sampleCoverage(Fs,hl),ii[0]=Fs,ii[1]=hl),Fa=hr.stencil_mask,Fa!==yr.stencil_mask&&($e.stencilMask(Fa),yr.stencil_mask=Fa),Ms=wi[0],jo=wi[1],Rs=wi[2],(Ms!==Gi[0]||jo!==Gi[1]||Rs!==Gi[2])&&($e.stencilFunc(Ms,jo,Rs),Gi[0]=Ms,Gi[1]=jo,Gi[2]=Rs),Is=Bt[0],Bs=Bt[1],At=Bt[2],Gt=Bt[3],(Is!==yt[0]||Bs!==yt[1]||At!==yt[2]||Gt!==yt[3])&&($e.stencilOpSeparate(Is,Bs,At,Gt),yt[0]=Is,yt[1]=Bs,yt[2]=At,yt[3]=Gt),wr=Vt[0],mr=Vt[1],Or=Vt[2],gi=Vt[3],(wr!==Wt[0]||mr!==Wt[1]||Or!==Wt[2]||gi!==Wt[3])&&($e.stencilOpSeparate(wr,mr,Or,gi),Wt[0]=wr,Wt[1]=mr,Wt[2]=Or,Wt[3]=gi)}xi=Fi.viewport,Xr=xi.x|0,ft=xi.y|0,tr="width"in xi?xi.width|0:zt.framebufferWidth-Xr,pr="height"in xi?xi.height|0:zt.framebufferHeight-ft,gr=zt.viewportWidth,zt.viewportWidth=tr,Zr=zt.viewportHeight,zt.viewportHeight=pr,$e.viewport(Xr,ft,tr,pr),Ir[0]=Xr,Ir[1]=ft,Ir[2]=tr,Ir[3]=pr,$e.blendColor(0,0,0,0),It[0]=0,It[1]=0,It[2]=0,It[3]=0,n?$e.enable(3042):$e.disable(3042),yr.blend_enable=n,$e.blendEquationSeparate(32774,32774),rr[0]=32774,rr[1]=32774,$e.blendFuncSeparate(770,771,773,1),Dr[0]=770,Dr[1]=771,Dr[2]=773,Dr[3]=1,Ai=i.call(this,zt,Fi,0),Ai?$e.enable(2929):$e.disable(2929),yr.depth_enable=Ai,Qi=Fi.viewport,ni=Qi.x|0,Zi=Qi.y|0,aa="width"in Qi?Qi.width|0:zt.framebufferWidth-ni,Mn="height"in Qi?Qi.height|0:zt.framebufferHeight-Zi,$e.scissor(ni,Zi,aa,Mn),Lr[0]=ni,Lr[1]=Zi,Lr[2]=aa,Lr[3]=Mn,a?$e.enable(3089):$e.disable(3089),yr.scissor_enable=a,o?$e.enable(2960):$e.disable(2960),yr.stencil_enable=o,Un=yr.profile,Un&&(Ga=performance.now(),r.count++),$e.useProgram(s.program),ma=ge.angle_instanced_arrays,Re.setVAO(null),oa=Fi.positionBuffer,Yr.buffer=oa,ka=!1,so=1,Kr=0,Ia=0,Yo=0,fa=0,kn=null,Ta=0,ys=!1,uo=5126,ls=0,$a=0,fo=0,de(Yr)?(ka=!0,kn=Ie.createStream(34962,Yr),uo=kn.dtype):(kn=Ie.getBuffer(Yr),kn?uo=kn.dtype:"constant"in Yr?(so=2,typeof Yr.constant=="number"?(Kr=Yr.constant,Ia=Yo=fa=0):(Kr=Yr.constant.length>0?Yr.constant[0]:0,Ia=Yr.constant.length>1?Yr.constant[1]:0,Yo=Yr.constant.length>2?Yr.constant[2]:0,fa=Yr.constant.length>3?Yr.constant[3]:0)):(de(Yr.buffer)?kn=Ie.createStream(34962,Yr.buffer):kn=Ie.getBuffer(Yr.buffer),uo="type"in Yr?ti[Yr.type]:kn.dtype,ys=!!Yr.normalized,Ta=Yr.size|0,ls=Yr.offset|0,$a=Yr.stride|0,fo=Yr.divisor|0)),mn=u.location,ra=Oe[mn],so===1?(ra.buffer||$e.enableVertexAttribArray(mn),wa=Ta||2,(ra.type!==uo||ra.size!==wa||ra.buffer!==kn||ra.normalized!==ys||ra.offset!==ls||ra.stride!==$a)&&($e.bindBuffer(34962,kn.buffer),$e.vertexAttribPointer(mn,wa,uo,ys,$a,ls),ra.type=uo,ra.size=wa,ra.buffer=kn,ra.normalized=ys,ra.offset=ls,ra.stride=$a),ra.divisor!==fo&&(ma.vertexAttribDivisorANGLE(mn,fo),ra.divisor=fo)):(ra.buffer&&($e.disableVertexAttribArray(mn),ra.buffer=null),(ra.x!==Kr||ra.y!==Ia||ra.z!==Yo||ra.w!==fa)&&($e.vertexAttrib4f(mn,Kr,Ia,Yo,fa),ra.x=Kr,ra.y=Ia,ra.z=Yo,ra.w=fa)),ws=Fi.positionFractBuffer,Bi.buffer=ws,Co=!1,Po=1,ji=0,gn=0,Ps=0,Ha=0,Sn=null,ao=0,Ba=!1,Ko=5126,Qo=0,Wi=0,Sa=0,de(Bi)?(Co=!0,Sn=Ie.createStream(34962,Bi),Ko=Sn.dtype):(Sn=Ie.getBuffer(Bi),Sn?Ko=Sn.dtype:"constant"in Bi?(Po=2,typeof Bi.constant=="number"?(ji=Bi.constant,gn=Ps=Ha=0):(ji=Bi.constant.length>0?Bi.constant[0]:0,gn=Bi.constant.length>1?Bi.constant[1]:0,Ps=Bi.constant.length>2?Bi.constant[2]:0,Ha=Bi.constant.length>3?Bi.constant[3]:0)):(de(Bi.buffer)?Sn=Ie.createStream(34962,Bi.buffer):Sn=Ie.getBuffer(Bi.buffer),Ko="type"in Bi?ti[Bi.type]:Sn.dtype,Ba=!!Bi.normalized,ao=Bi.size|0,Qo=Bi.offset|0,Wi=Bi.stride|0,Sa=Bi.divisor|0)),Qa=l.location,vn=Oe[Qa],Po===1?(vn.buffer||$e.enableVertexAttribArray(Qa),da=ao||2,(vn.type!==Ko||vn.size!==da||vn.buffer!==Sn||vn.normalized!==Ba||vn.offset!==Qo||vn.stride!==Wi)&&($e.bindBuffer(34962,Sn.buffer),$e.vertexAttribPointer(Qa,da,Ko,Ba,Wi,Qo),vn.type=Ko,vn.size=da,vn.buffer=Sn,vn.normalized=Ba,vn.offset=Qo,vn.stride=Wi),vn.divisor!==Sa&&(ma.vertexAttribDivisorANGLE(Qa,Sa),vn.divisor=Sa)):(vn.buffer&&($e.disableVertexAttribArray(Qa),vn.buffer=null),(vn.x!==ji||vn.y!==gn||vn.z!==Ps||vn.w!==Ha)&&($e.vertexAttrib4f(Qa,ji,gn,Ps,Ha),vn.x=ji,vn.y=gn,vn.z=Ps,vn.w=Ha)),la=Fi.positionBuffer,oi.buffer=la,vo=!1,As=1,ps=0,co=0,mo=0,No=0,jn=null,Go=0,Ys=!1,qs=5126,Ns=0,Oa=0,ha=0,de(oi)?(vo=!0,jn=Ie.createStream(34962,oi),qs=jn.dtype):(jn=Ie.getBuffer(oi),jn?qs=jn.dtype:"constant"in oi?(As=2,typeof oi.constant=="number"?(ps=oi.constant,co=mo=No=0):(ps=oi.constant.length>0?oi.constant[0]:0,co=oi.constant.length>1?oi.constant[1]:0,mo=oi.constant.length>2?oi.constant[2]:0,No=oi.constant.length>3?oi.constant[3]:0)):(de(oi.buffer)?jn=Ie.createStream(34962,oi.buffer):jn=Ie.getBuffer(oi.buffer),qs="type"in oi?ti[oi.type]:jn.dtype,Ys=!!oi.normalized,Go=oi.size|0,Ns=oi.offset|0,Oa=oi.stride|0,ha=oi.divisor|0)),Vs=f.location,Ya=Oe[Vs],As===1?(Ya.buffer||$e.enableVertexAttribArray(Vs),_n=Go||2,(Ya.type!==qs||Ya.size!==_n||Ya.buffer!==jn||Ya.normalized!==Ys||Ya.offset!==Ns||Ya.stride!==Oa)&&($e.bindBuffer(34962,jn.buffer),$e.vertexAttribPointer(Vs,_n,qs,Ys,Oa,Ns),Ya.type=qs,Ya.size=_n,Ya.buffer=jn,Ya.normalized=Ys,Ya.offset=Ns,Ya.stride=Oa),Ya.divisor!==ha&&(ma.vertexAttribDivisorANGLE(Vs,ha),Ya.divisor=ha)):(Ya.buffer&&($e.disableVertexAttribArray(Vs),Ya.buffer=null),(Ya.x!==ps||Ya.y!==co||Ya.z!==mo||Ya.w!==No)&&($e.vertexAttrib4f(Vs,ps,co,mo,No),Ya.x=ps,Ya.y=co,Ya.z=mo,Ya.w=No)),Vn=Fi.positionFractBuffer,an.buffer=Vn,wo=!1,Ra=1,Xn=0,un=0,$n=0,Ka=0,qn=null,Eo=0,Ja=!1,lo=5126,eo=0,sa=0,es=0,de(an)?(wo=!0,qn=Ie.createStream(34962,an),lo=qn.dtype):(qn=Ie.getBuffer(an),qn?lo=qn.dtype:"constant"in an?(Ra=2,typeof an.constant=="number"?(Xn=an.constant,un=$n=Ka=0):(Xn=an.constant.length>0?an.constant[0]:0,un=an.constant.length>1?an.constant[1]:0,$n=an.constant.length>2?an.constant[2]:0,Ka=an.constant.length>3?an.constant[3]:0)):(de(an.buffer)?qn=Ie.createStream(34962,an.buffer):qn=Ie.getBuffer(an.buffer),lo="type"in an?ti[an.type]:qn.dtype,Ja=!!an.normalized,Eo=an.size|0,eo=an.offset|0,sa=an.stride|0,es=an.divisor|0)),Na=c.location,tn=Oe[Na],Ra===1?(tn.buffer||$e.enableVertexAttribArray(Na),Pa=Eo||2,(tn.type!==lo||tn.size!==Pa||tn.buffer!==qn||tn.normalized!==Ja||tn.offset!==eo||tn.stride!==sa)&&($e.bindBuffer(34962,qn.buffer),$e.vertexAttribPointer(Na,Pa,lo,Ja,sa,eo),tn.type=lo,tn.size=Pa,tn.buffer=qn,tn.normalized=Ja,tn.offset=eo,tn.stride=sa),tn.divisor!==es&&(ma.vertexAttribDivisorANGLE(Na,es),tn.divisor=es)):(tn.buffer&&($e.disableVertexAttribArray(Na),tn.buffer=null),(tn.x!==Xn||tn.y!==un||tn.z!==$n||tn.w!==Ka)&&($e.vertexAttrib4f(Na,Xn,un,$n,Ka),tn.x=Xn,tn.y=un,tn.z=$n,tn.w=Ka)),to=Fi.colorBuffer,rn.buffer=to,yo=!1,Jo=1,Ao=0,Dn=0,_a=0,Ws=0,Ca=null,Es=0,Ts=!1,Ho=5126,Wa=0,To=0,ts=0,de(rn)?(yo=!0,Ca=Ie.createStream(34962,rn),Ho=Ca.dtype):(Ca=Ie.getBuffer(rn),Ca?Ho=Ca.dtype:"constant"in rn?(Jo=2,typeof rn.constant=="number"?(Ao=rn.constant,Dn=_a=Ws=0):(Ao=rn.constant.length>0?rn.constant[0]:0,Dn=rn.constant.length>1?rn.constant[1]:0,_a=rn.constant.length>2?rn.constant[2]:0,Ws=rn.constant.length>3?rn.constant[3]:0)):(de(rn.buffer)?Ca=Ie.createStream(34962,rn.buffer):Ca=Ie.getBuffer(rn.buffer),Ho="type"in rn?ti[rn.type]:Ca.dtype,Ts=!!rn.normalized,Es=rn.size|0,Wa=rn.offset|0,To=rn.stride|0,ts=rn.divisor|0)),Wo=h.location,qa=Oe[Wo],Jo===1?(qa.buffer||$e.enableVertexAttribArray(Wo),ln=Es||4,(qa.type!==Ho||qa.size!==ln||qa.buffer!==Ca||qa.normalized!==Ts||qa.offset!==Wa||qa.stride!==To)&&($e.bindBuffer(34962,Ca.buffer),$e.vertexAttribPointer(Wo,ln,Ho,Ts,To,Wa),qa.type=Ho,qa.size=ln,qa.buffer=Ca,qa.normalized=Ts,qa.offset=Wa,qa.stride=To),qa.divisor!==ts&&(ma.vertexAttribDivisorANGLE(Wo,ts),qa.divisor=ts)):(qa.buffer&&($e.disableVertexAttribArray(Wo),qa.buffer=null),(qa.x!==Ao||qa.y!==Dn||qa.z!==_a||qa.w!==Ws)&&($e.vertexAttrib4f(Wo,Ao,Dn,_a,Ws),qa.x=Ao,qa.y=Dn,qa.z=_a,qa.w=Ws)),Bo=p.location,ko=Oe[Bo],ko.buffer||$e.enableVertexAttribArray(Bo),(ko.type!==5126||ko.size!==1||ko.buffer!==d||ko.normalized!==!1||ko.offset!==0||ko.stride!==8)&&($e.bindBuffer(34962,d.buffer),$e.vertexAttribPointer(Bo,1,5126,!1,8,0),ko.type=5126,ko.size=1,ko.buffer=d,ko.normalized=!1,ko.offset=0,ko.stride=8),ko.divisor!==0&&(ma.vertexAttribDivisorANGLE(Bo,0),ko.divisor=0),oo=x.location,za=Oe[oo],za.buffer||$e.enableVertexAttribArray(oo),(za.type!==5126||za.size!==1||za.buffer!==d||za.normalized!==!1||za.offset!==4||za.stride!==8)&&($e.bindBuffer(34962,d.buffer),$e.vertexAttribPointer(oo,1,5126,!1,8,4),za.type=5126,za.size=1,za.buffer=d,za.normalized=!1,za.offset=4,za.stride=8),za.divisor!==0&&(ma.vertexAttribDivisorANGLE(oo,0),za.divisor=0),ea=Fi.dashLength,$e.uniform1f(b.location,ea),rs=Fi.dashTexture,rs&&rs._reglType==="framebuffer"&&(rs=rs.color[0]),$s=rs._texture,$e.uniform1i(v.location,$s.bind()),us=Fi.depth,$e.uniform1f(k.location,us),Ds=Fi.opacity,$e.uniform1f(E.location,Ds),fl=Fi.scale,as=fl[0],Ma=fl[1],$e.uniform2f(T.location,as,Ma),Qs=Fi.scaleFract,ho=Qs[0],gs=Qs[1],$e.uniform2f(L.location,ho,gs),Vo=Fi.thickness,$e.uniform1f(_.location,Vo),Do=Fi.translate,Lo=Do[0],xs=Do[1],$e.uniform2f(C.location,Lo,xs),ks=Fi.translateFract,Ea=ks[0],Jn=ks[1],$e.uniform2f(S.location,Ea,Jn),Oo=P.call(this,zt,Fi,0),rl=Oo[0],Gs=Oo[1],bs=Oo[2],zs=Oo[3],$e.uniform4f(m.location,rl,Gs,bs,zs),$o=br.elements,$o?$e.bindBuffer(34963,$o.buffer.buffer):Re.currentVAO&&($o=Ut.getElements(Re.currentVAO.elements),$o&&$e.bindBuffer(34963,$o.buffer.buffer)),Aa=Fi.count,Aa>0?$o?ma.drawElementsInstancedANGLE(5,4,$o.type,0<<($o.type-5121>>1),Aa):ma.drawArraysInstancedANGLE(5,0,4,Aa):Aa<0&&($o?$e.drawElements(5,4,$o.type,0<<($o.type-5121>>1)):$e.drawArrays(5,0,4)),yr.dirty=!0,Re.setVAO(null),zt.viewportWidth=gr,zt.viewportHeight=Zr,Un&&(r.cpuTime+=performance.now()-Ga),ka&&Ie.destroyStream(kn),Co&&Ie.destroyStream(Sn),vo&&Ie.destroyStream(jn),wo&&Ie.destroyStream(qn),yo&&Ie.destroyStream(Ca),$s.unbind()},scope:function(Fi,Ri,xn){var xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Ul,le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt,tt,pt,Ht;xi=Fi.viewport,Xr=xi.x|0,ft=xi.y|0,tr="width"in xi?xi.width|0:zt.framebufferWidth-Xr,pr="height"in xi?xi.height|0:zt.framebufferHeight-ft,gr=zt.viewportWidth,zt.viewportWidth=tr,Zr=zt.viewportHeight,zt.viewportHeight=pr,Ai=Ur[0],Ur[0]=Xr,Qi=Ur[1],Ur[1]=ft,ni=Ur[2],Ur[2]=tr,Zi=Ur[3],Ur[3]=pr,aa=dt[0],dt[0]=A,Mn=dt[1],dt[1]=B,Un=dt[2],dt[2]=F,Ga=dt[3],dt[3]=U,ma=hr.blend_enable,hr.blend_enable=G,oa=Pt[0],Pt[0]=j,ka=Pt[1],Pt[1]=H,so=Hr[0],Hr[0]=N,Kr=Hr[1],Hr[1]=W,Ia=Hr[2],Hr[2]=re,Yo=Hr[3],Hr[3]=ae,fa=i.call(this,zt,Fi,xn),kn=hr.depth_enable,hr.depth_enable=fa,Ta=Fi.viewport,ys=Ta.x|0,uo=Ta.y|0,ls="width"in Ta?Ta.width|0:zt.framebufferWidth-ys,$a="height"in Ta?Ta.height|0:zt.framebufferHeight-uo,fo=_r[0],_r[0]=ys,mn=_r[1],_r[1]=uo,ra=_r[2],_r[2]=ls,wa=_r[3],_r[3]=$a,ws=hr.scissor_enable,hr.scissor_enable=be,Co=hr.stencil_enable,hr.stencil_enable=Ce,Po=yr.profile,Po&&(ji=performance.now(),r.count++),gn=br.offset,br.offset=Le,Ps=br.count,br.count=pe,Ha=Fi.count,Sn=br.instances,br.instances=Ha,ao=br.primitive,br.primitive=te,Ba=ke.call(this,zt,Fi,xn),Ko=De[Ee],De[Ee]=Ba,Qo=Fi.miterLimit,Wi=De[Me],De[Me]=Qo,Sa=Fi.scale,Qa=De[Ne],De[Ne]=Sa,vn=Fi.scaleFract,da=De[Fe],De[Fe]=vn,la=Fi.translateFract,vo=De[ye],De[ye]=la,As=Fi.translate,ps=De[Ve],De[Ve]=As,co=Fi.thickness,mo=De[ce],De[ce]=co,No=Fi.dashTexture,jn=De[Je],De[Je]=No,Go=Fi.opacity,Ys=De[nt],De[nt]=Go,qs=zt.pixelRatio,Ns=De[gt],De[gt]=qs,Oa=Fi.id,ha=De[Nt],De[Nt]=Oa,Vs=Fi.dashLength,Ya=De[it],De[it]=Vs,_n=P.call(this,zt,Fi,xn),Vn=De[Ye],De[Ye]=_n,wo=Fi.depth,Ra=De[kt],De[kt]=wo,Xn=Tt.state,Tt.state=1,un=Tt.x,Tt.x=0,$n=Tt.y,Tt.y=0,Ka=Tt.z,Tt.z=0,qn=Tt.w,Tt.w=0,Eo=Tt.buffer,Tt.buffer=d,Ja=Tt.size,Tt.size=0,lo=Tt.normalized,Tt.normalized=!1,eo=Tt.type,Tt.type=5126,sa=Tt.offset,Tt.offset=0,es=Tt.stride,Tt.stride=8,Na=Tt.divisor,Tt.divisor=0,tn=St.state,St.state=1,Pa=St.x,St.x=0,to=St.y,St.y=0,yo=St.z,St.z=0,Jo=St.w,St.w=0,Ao=St.buffer,St.buffer=d,Dn=St.size,St.size=0,_a=St.normalized,St.normalized=!1,Ws=St.type,St.type=5126,Ca=St.offset,St.offset=4,Es=St.stride,St.stride=8,Ts=St.divisor,St.divisor=0,Ho=Fi.positionBuffer,Yr.buffer=Ho,Wa=!1,To=1,ts=0,Wo=0,qa=0,ln=0,Bo=null,ko=0,oo=!1,za=5126,ea=0,rs=0,$s=0,de(Yr)?(Wa=!0,Bo=Ie.createStream(34962,Yr),za=Bo.dtype):(Bo=Ie.getBuffer(Yr),Bo?za=Bo.dtype:"constant"in Yr?(To=2,typeof Yr.constant=="number"?(ts=Yr.constant,Wo=qa=ln=0):(ts=Yr.constant.length>0?Yr.constant[0]:0,Wo=Yr.constant.length>1?Yr.constant[1]:0,qa=Yr.constant.length>2?Yr.constant[2]:0,ln=Yr.constant.length>3?Yr.constant[3]:0)):(de(Yr.buffer)?Bo=Ie.createStream(34962,Yr.buffer):Bo=Ie.getBuffer(Yr.buffer),za="type"in Yr?ti[Yr.type]:Bo.dtype,oo=!!Yr.normalized,ko=Yr.size|0,ea=Yr.offset|0,rs=Yr.stride|0,$s=Yr.divisor|0)),us=Dt.state,Dt.state=To,Ds=Dt.x,Dt.x=ts,fl=Dt.y,Dt.y=Wo,as=Dt.z,Dt.z=qa,Ma=Dt.w,Dt.w=ln,Qs=Dt.buffer,Dt.buffer=Bo,ho=Dt.size,Dt.size=ko,gs=Dt.normalized,Dt.normalized=oo,Vo=Dt.type,Dt.type=za,Do=Dt.offset,Dt.offset=ea,Lo=Dt.stride,Dt.stride=rs,xs=Dt.divisor,Dt.divisor=$s,ks=Fi.positionBuffer,oi.buffer=ks,Ea=!1,Jn=1,Oo=0,rl=0,Gs=0,bs=0,zs=null,$o=0,Aa=!1,os=5126,_l=0,Ss=0,po=0,de(oi)?(Ea=!0,zs=Ie.createStream(34962,oi),os=zs.dtype):(zs=Ie.getBuffer(oi),zs?os=zs.dtype:"constant"in oi?(Jn=2,typeof oi.constant=="number"?(Oo=oi.constant,rl=Gs=bs=0):(Oo=oi.constant.length>0?oi.constant[0]:0,rl=oi.constant.length>1?oi.constant[1]:0,Gs=oi.constant.length>2?oi.constant[2]:0,bs=oi.constant.length>3?oi.constant[3]:0)):(de(oi.buffer)?zs=Ie.createStream(34962,oi.buffer):zs=Ie.getBuffer(oi.buffer),os="type"in oi?ti[oi.type]:zs.dtype,Aa=!!oi.normalized,$o=oi.size|0,_l=oi.offset|0,Ss=oi.stride|0,po=oi.divisor|0)),go=Zt.state,Zt.state=Jn,ss=Zt.x,Zt.x=Oo,qo=Zt.y,Zt.y=rl,zo=Zt.z,Zt.z=Gs,io=Zt.w,Zt.w=bs,Io=Zt.buffer,Zt.buffer=zs,Da=Zt.size,Zt.size=$o,vs=Zt.normalized,Zt.normalized=Aa,fs=Zt.type,Zt.type=os,cl=Zt.offset,Zt.offset=_l,el=Zt.stride,Zt.stride=Ss,Hs=Zt.divisor,Zt.divisor=po,Ro=Fi.positionFractBuffer,Bi.buffer=Ro,tl=!1,Fs=1,hl=0,Fa=0,Ms=0,jo=0,Rs=null,Is=0,Bs=!1,At=5126,Gt=0,wr=0,mr=0,de(Bi)?(tl=!0,Rs=Ie.createStream(34962,Bi),At=Rs.dtype):(Rs=Ie.getBuffer(Bi),Rs?At=Rs.dtype:"constant"in Bi?(Fs=2,typeof Bi.constant=="number"?(hl=Bi.constant,Fa=Ms=jo=0):(hl=Bi.constant.length>0?Bi.constant[0]:0,Fa=Bi.constant.length>1?Bi.constant[1]:0,Ms=Bi.constant.length>2?Bi.constant[2]:0,jo=Bi.constant.length>3?Bi.constant[3]:0)):(de(Bi.buffer)?Rs=Ie.createStream(34962,Bi.buffer):Rs=Ie.getBuffer(Bi.buffer),At="type"in Bi?ti[Bi.type]:Rs.dtype,Bs=!!Bi.normalized,Is=Bi.size|0,Gt=Bi.offset|0,wr=Bi.stride|0,mr=Bi.divisor|0)),Or=Et.state,Et.state=Fs,gi=Et.x,Et.x=hl,Ti=Et.y,Et.y=Fa,ki=Et.z,Et.z=Ms,Ji=Et.w,Et.w=jo,Fn=Et.buffer,Et.buffer=Rs,Pi=Et.size,Et.size=Is,hi=Et.normalized,Et.normalized=Bs,Li=Et.type,Et.type=At,Si=Et.offset,Et.offset=Gt,Gn=Et.stride,Et.stride=wr,ta=Et.divisor,Et.divisor=mr,ya=Fi.positionFractBuffer,an.buffer=ya,ia=!1,pa=1,va=0,zn=0,is=0,Cs=0,Ks=null,dl=0,xl=!1,Ol=5126,bl=0,eu=0,Zl=0,de(an)?(ia=!0,Ks=Ie.createStream(34962,an),Ol=Ks.dtype):(Ks=Ie.getBuffer(an),Ks?Ol=Ks.dtype:"constant"in an?(pa=2,typeof an.constant=="number"?(va=an.constant,zn=is=Cs=0):(va=an.constant.length>0?an.constant[0]:0,zn=an.constant.length>1?an.constant[1]:0,is=an.constant.length>2?an.constant[2]:0,Cs=an.constant.length>3?an.constant[3]:0)):(de(an.buffer)?Ks=Ie.createStream(34962,an.buffer):Ks=Ie.getBuffer(an.buffer),Ol="type"in an?ti[an.type]:Ks.dtype,xl=!!an.normalized,dl=an.size|0,bl=an.offset|0,eu=an.stride|0,Zl=an.divisor|0)),Vl=Ae.state,Ae.state=pa,ja=Ae.x,Ae.x=va,ns=Ae.y,Ae.y=zn,Js=Ae.z,Ae.z=is,cs=Ae.w,Ae.w=Cs,sl=Ae.buffer,Ae.buffer=Ks,ll=Ae.size,Ae.size=dl,il=Ae.normalized,Ae.normalized=xl,zl=Ae.type,Ae.type=Ol,Ml=Ae.offset,Ae.offset=bl,Rl=Ae.stride,Ae.stride=eu,Al=Ae.divisor,Ae.divisor=Zl,Ll=Fi.colorBuffer,rn.buffer=Ll,ms=!1,Os=1,Xl=0,Gl=0,Ul=0,le=0,w=null,q=0,Q=!1,ee=5126,ue=0,Ge=0,et=0,de(rn)?(ms=!0,w=Ie.createStream(34962,rn),ee=w.dtype):(w=Ie.getBuffer(rn),w?ee=w.dtype:"constant"in rn?(Os=2,typeof rn.constant=="number"?(Xl=rn.constant,Gl=Ul=le=0):(Xl=rn.constant.length>0?rn.constant[0]:0,Gl=rn.constant.length>1?rn.constant[1]:0,Ul=rn.constant.length>2?rn.constant[2]:0,le=rn.constant.length>3?rn.constant[3]:0)):(de(rn.buffer)?w=Ie.createStream(34962,rn.buffer):w=Ie.getBuffer(rn.buffer),ee="type"in rn?ti[rn.type]:w.dtype,Q=!!rn.normalized,q=rn.size|0,ue=rn.offset|0,Ge=rn.stride|0,et=rn.divisor|0)),mt=at.state,at.state=Os,Ft=at.x,at.x=Xl,ir=at.y,at.y=Gl,or=at.z,at.z=Ul,kr=at.w,at.w=le,Vr=at.buffer,at.buffer=w,he=at.size,at.size=q,Se=at.normalized,at.normalized=Q,qe=at.type,at.type=ee,He=at.offset,at.offset=ue,lt=at.stride,at.stride=Ge,tt=at.divisor,at.divisor=et,pt=xe.vert,xe.vert=wt,Ht=xe.frag,xe.frag=vt,yr.dirty=!0,Ri(zt,Fi,xn),zt.viewportWidth=gr,zt.viewportHeight=Zr,Ur[0]=Ai,Ur[1]=Qi,Ur[2]=ni,Ur[3]=Zi,dt[0]=aa,dt[1]=Mn,dt[2]=Un,dt[3]=Ga,hr.blend_enable=ma,Pt[0]=oa,Pt[1]=ka,Hr[0]=so,Hr[1]=Kr,Hr[2]=Ia,Hr[3]=Yo,hr.depth_enable=kn,_r[0]=fo,_r[1]=mn,_r[2]=ra,_r[3]=wa,hr.scissor_enable=ws,hr.stencil_enable=Co,Po&&(r.cpuTime+=performance.now()-ji),br.offset=gn,br.count=Ps,br.instances=Sn,br.primitive=ao,De[Ee]=Ko,De[Me]=Wi,De[Ne]=Qa,De[Fe]=da,De[ye]=vo,De[Ve]=ps,De[ce]=mo,De[Je]=jn,De[nt]=Ys,De[gt]=Ns,De[Nt]=ha,De[it]=Ya,De[Ye]=Vn,De[kt]=Ra,Tt.state=Xn,Tt.x=un,Tt.y=$n,Tt.z=Ka,Tt.w=qn,Tt.buffer=Eo,Tt.size=Ja,Tt.normalized=lo,Tt.type=eo,Tt.offset=sa,Tt.stride=es,Tt.divisor=Na,St.state=tn,St.x=Pa,St.y=to,St.z=yo,St.w=Jo,St.buffer=Ao,St.size=Dn,St.normalized=_a,St.type=Ws,St.offset=Ca,St.stride=Es,St.divisor=Ts,Wa&&Ie.destroyStream(Bo),Dt.state=us,Dt.x=Ds,Dt.y=fl,Dt.z=as,Dt.w=Ma,Dt.buffer=Qs,Dt.size=ho,Dt.normalized=gs,Dt.type=Vo,Dt.offset=Do,Dt.stride=Lo,Dt.divisor=xs,Ea&&Ie.destroyStream(zs),Zt.state=go,Zt.x=ss,Zt.y=qo,Zt.z=zo,Zt.w=io,Zt.buffer=Io,Zt.size=Da,Zt.normalized=vs,Zt.type=fs,Zt.offset=cl,Zt.stride=el,Zt.divisor=Hs,tl&&Ie.destroyStream(Rs),Et.state=Or,Et.x=gi,Et.y=Ti,Et.z=ki,Et.w=Ji,Et.buffer=Fn,Et.size=Pi,Et.normalized=hi,Et.type=Li,Et.offset=Si,Et.stride=Gn,Et.divisor=ta,ia&&Ie.destroyStream(Ks),Ae.state=Vl,Ae.x=ja,Ae.y=ns,Ae.z=Js,Ae.w=cs,Ae.buffer=sl,Ae.size=ll,Ae.normalized=il,Ae.type=zl,Ae.offset=Ml,Ae.stride=Rl,Ae.divisor=Al,ms&&Ie.destroyStream(w),at.state=mt,at.x=Ft,at.y=ir,at.z=or,at.w=kr,at.buffer=Vr,at.size=he,at.normalized=Se,at.type=qe,at.offset=He,at.stride=lt,at.divisor=tt,xe.vert=pt,xe.frag=Ht,yr.dirty=!0},batch:function(Fi,Ri){var xn,xi,Xr,ft,tr,pr,gr;if(xn=ge.angle_instanced_arrays,xi=ct.next,xi!==ct.cur&&(xi?$e.bindFramebuffer(36160,xi.framebuffer):$e.bindFramebuffer(36160,null),ct.cur=xi),yr.dirty){var Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn;Zr=hr.dither,Zr!==yr.dither&&(Zr?$e.enable(3024):$e.disable(3024),yr.dither=Zr),Ai=hr.depth_func,Ai!==yr.depth_func&&($e.depthFunc(Ai),yr.depth_func=Ai),Qi=Mr[0],ni=Mr[1],(Qi!==Fr[0]||ni!==Fr[1])&&($e.depthRange(Qi,ni),Fr[0]=Qi,Fr[1]=ni),Zi=hr.depth_mask,Zi!==yr.depth_mask&&($e.depthMask(Zi),yr.depth_mask=Zi),aa=di[0],Mn=di[1],Un=di[2],Ga=di[3],(aa!==Di[0]||Mn!==Di[1]||Un!==Di[2]||Ga!==Di[3])&&($e.colorMask(aa,Mn,Un,Ga),Di[0]=aa,Di[1]=Mn,Di[2]=Un,Di[3]=Ga),ma=hr.cull_enable,ma!==yr.cull_enable&&(ma?$e.enable(2884):$e.disable(2884),yr.cull_enable=ma),oa=hr.cull_face,oa!==yr.cull_face&&($e.cullFace(oa),yr.cull_face=oa),ka=hr.frontFace,ka!==yr.frontFace&&($e.frontFace(ka),yr.frontFace=ka),so=hr.lineWidth,so!==yr.lineWidth&&($e.lineWidth(so),yr.lineWidth=so),Kr=hr.polygonOffset_enable,Kr!==yr.polygonOffset_enable&&(Kr?$e.enable(32823):$e.disable(32823),yr.polygonOffset_enable=Kr),Ia=Ii[0],Yo=Ii[1],(Ia!==Ci[0]||Yo!==Ci[1])&&($e.polygonOffset(Ia,Yo),Ci[0]=Ia,Ci[1]=Yo),fa=hr.sample_alpha,fa!==yr.sample_alpha&&(fa?$e.enable(32926):$e.disable(32926),yr.sample_alpha=fa),kn=hr.sample_enable,kn!==yr.sample_enable&&(kn?$e.enable(32928):$e.disable(32928),yr.sample_enable=kn),Ta=nn[0],ys=nn[1],(Ta!==ii[0]||ys!==ii[1])&&($e.sampleCoverage(Ta,ys),ii[0]=Ta,ii[1]=ys),uo=hr.stencil_mask,uo!==yr.stencil_mask&&($e.stencilMask(uo),yr.stencil_mask=uo),ls=wi[0],$a=wi[1],fo=wi[2],(ls!==Gi[0]||$a!==Gi[1]||fo!==Gi[2])&&($e.stencilFunc(ls,$a,fo),Gi[0]=ls,Gi[1]=$a,Gi[2]=fo),mn=Bt[0],ra=Bt[1],wa=Bt[2],ws=Bt[3],(mn!==yt[0]||ra!==yt[1]||wa!==yt[2]||ws!==yt[3])&&($e.stencilOpSeparate(mn,ra,wa,ws),yt[0]=mn,yt[1]=ra,yt[2]=wa,yt[3]=ws),Co=Vt[0],Po=Vt[1],ji=Vt[2],gn=Vt[3],(Co!==Wt[0]||Po!==Wt[1]||ji!==Wt[2]||gn!==Wt[3])&&($e.stencilOpSeparate(Co,Po,ji,gn),Wt[0]=Co,Wt[1]=Po,Wt[2]=ji,Wt[3]=gn)}$e.blendColor(0,0,0,0),It[0]=0,It[1]=0,It[2]=0,It[3]=0,st?$e.enable(3042):$e.disable(3042),yr.blend_enable=st,$e.blendEquationSeparate(32774,32774),rr[0]=32774,rr[1]=32774,$e.blendFuncSeparate(770,771,773,1),Dr[0]=770,Dr[1]=771,Dr[2]=773,Dr[3]=1,Ue?$e.enable(3089):$e.disable(3089),yr.scissor_enable=Ue,rt?$e.enable(2960):$e.disable(2960),yr.stencil_enable=rt,Xr=yr.profile,Xr&&(ft=performance.now(),r.count+=Ri),$e.useProgram(s.program),tr=ge.angle_instanced_arrays;var Ps,Ha,Sn,ao,Ba;for(Re.setVAO(null),Ps=p.location,Ha=Oe[Ps],Ha.buffer||$e.enableVertexAttribArray(Ps),(Ha.type!==5126||Ha.size!==1||Ha.buffer!==d||Ha.normalized!==!1||Ha.offset!==0||Ha.stride!==8)&&($e.bindBuffer(34962,d.buffer),$e.vertexAttribPointer(Ps,1,5126,!1,8,0),Ha.type=5126,Ha.size=1,Ha.buffer=d,Ha.normalized=!1,Ha.offset=0,Ha.stride=8),Ha.divisor!==0&&(tr.vertexAttribDivisorANGLE(Ps,0),Ha.divisor=0),Sn=x.location,ao=Oe[Sn],ao.buffer||$e.enableVertexAttribArray(Sn),(ao.type!==5126||ao.size!==1||ao.buffer!==d||ao.normalized!==!1||ao.offset!==4||ao.stride!==8)&&($e.bindBuffer(34962,d.buffer),$e.vertexAttribPointer(Sn,1,5126,!1,8,4),ao.type=5126,ao.size=1,ao.buffer=d,ao.normalized=!1,ao.offset=4,ao.stride=8),ao.divisor!==0&&(tr.vertexAttribDivisorANGLE(Sn,0),ao.divisor=0),Ba=br.elements,Ba?$e.bindBuffer(34963,Ba.buffer.buffer):Re.currentVAO&&(Ba=Ut.getElements(Re.currentVAO.elements),Ba&&$e.bindBuffer(34963,Ba.buffer.buffer)),pr=0;pr0?Yr.constant[0]:0,qs=Yr.constant.length>1?Yr.constant[1]:0,Ns=Yr.constant.length>2?Yr.constant[2]:0,Oa=Yr.constant.length>3?Yr.constant[3]:0)):(de(Yr.buffer)?ha=Ie.createStream(34962,Yr.buffer):ha=Ie.getBuffer(Yr.buffer),_n="type"in Yr?ti[Yr.type]:ha.dtype,Ya=!!Yr.normalized,Vs=Yr.size|0,Vn=Yr.offset|0,wo=Yr.stride|0,Ra=Yr.divisor|0)),Xn=u.location,un=Oe[Xn],Go===1?(un.buffer||$e.enableVertexAttribArray(Xn),$n=Vs||2,(un.type!==_n||un.size!==$n||un.buffer!==ha||un.normalized!==Ya||un.offset!==Vn||un.stride!==wo)&&($e.bindBuffer(34962,ha.buffer),$e.vertexAttribPointer(Xn,$n,_n,Ya,wo,Vn),un.type=_n,un.size=$n,un.buffer=ha,un.normalized=Ya,un.offset=Vn,un.stride=wo),un.divisor!==Ra&&(tr.vertexAttribDivisorANGLE(Xn,Ra),un.divisor=Ra)):(un.buffer&&($e.disableVertexAttribArray(Xn),un.buffer=null),(un.x!==Ys||un.y!==qs||un.z!==Ns||un.w!==Oa)&&($e.vertexAttrib4f(Xn,Ys,qs,Ns,Oa),un.x=Ys,un.y=qs,un.z=Ns,un.w=Oa)),Ka=gr.positionFractBuffer,Bi.buffer=Ka,qn=!1,Eo=1,Ja=0,lo=0,eo=0,sa=0,es=null,Na=0,tn=!1,Pa=5126,to=0,yo=0,Jo=0,de(Bi)?(qn=!0,es=Ie.createStream(34962,Bi),Pa=es.dtype):(es=Ie.getBuffer(Bi),es?Pa=es.dtype:"constant"in Bi?(Eo=2,typeof Bi.constant=="number"?(Ja=Bi.constant,lo=eo=sa=0):(Ja=Bi.constant.length>0?Bi.constant[0]:0,lo=Bi.constant.length>1?Bi.constant[1]:0,eo=Bi.constant.length>2?Bi.constant[2]:0,sa=Bi.constant.length>3?Bi.constant[3]:0)):(de(Bi.buffer)?es=Ie.createStream(34962,Bi.buffer):es=Ie.getBuffer(Bi.buffer),Pa="type"in Bi?ti[Bi.type]:es.dtype,tn=!!Bi.normalized,Na=Bi.size|0,to=Bi.offset|0,yo=Bi.stride|0,Jo=Bi.divisor|0)),Ao=l.location,Dn=Oe[Ao],Eo===1?(Dn.buffer||$e.enableVertexAttribArray(Ao),_a=Na||2,(Dn.type!==Pa||Dn.size!==_a||Dn.buffer!==es||Dn.normalized!==tn||Dn.offset!==to||Dn.stride!==yo)&&($e.bindBuffer(34962,es.buffer),$e.vertexAttribPointer(Ao,_a,Pa,tn,yo,to),Dn.type=Pa,Dn.size=_a,Dn.buffer=es,Dn.normalized=tn,Dn.offset=to,Dn.stride=yo),Dn.divisor!==Jo&&(tr.vertexAttribDivisorANGLE(Ao,Jo),Dn.divisor=Jo)):(Dn.buffer&&($e.disableVertexAttribArray(Ao),Dn.buffer=null),(Dn.x!==Ja||Dn.y!==lo||Dn.z!==eo||Dn.w!==sa)&&($e.vertexAttrib4f(Ao,Ja,lo,eo,sa),Dn.x=Ja,Dn.y=lo,Dn.z=eo,Dn.w=sa)),Ws=gr.positionBuffer,oi.buffer=Ws,Ca=!1,Es=1,Ts=0,Ho=0,Wa=0,To=0,ts=null,Wo=0,qa=!1,ln=5126,Bo=0,ko=0,oo=0,de(oi)?(Ca=!0,ts=Ie.createStream(34962,oi),ln=ts.dtype):(ts=Ie.getBuffer(oi),ts?ln=ts.dtype:"constant"in oi?(Es=2,typeof oi.constant=="number"?(Ts=oi.constant,Ho=Wa=To=0):(Ts=oi.constant.length>0?oi.constant[0]:0,Ho=oi.constant.length>1?oi.constant[1]:0,Wa=oi.constant.length>2?oi.constant[2]:0,To=oi.constant.length>3?oi.constant[3]:0)):(de(oi.buffer)?ts=Ie.createStream(34962,oi.buffer):ts=Ie.getBuffer(oi.buffer),ln="type"in oi?ti[oi.type]:ts.dtype,qa=!!oi.normalized,Wo=oi.size|0,Bo=oi.offset|0,ko=oi.stride|0,oo=oi.divisor|0)),za=f.location,ea=Oe[za],Es===1?(ea.buffer||$e.enableVertexAttribArray(za),rs=Wo||2,(ea.type!==ln||ea.size!==rs||ea.buffer!==ts||ea.normalized!==qa||ea.offset!==Bo||ea.stride!==ko)&&($e.bindBuffer(34962,ts.buffer),$e.vertexAttribPointer(za,rs,ln,qa,ko,Bo),ea.type=ln,ea.size=rs,ea.buffer=ts,ea.normalized=qa,ea.offset=Bo,ea.stride=ko),ea.divisor!==oo&&(tr.vertexAttribDivisorANGLE(za,oo),ea.divisor=oo)):(ea.buffer&&($e.disableVertexAttribArray(za),ea.buffer=null),(ea.x!==Ts||ea.y!==Ho||ea.z!==Wa||ea.w!==To)&&($e.vertexAttrib4f(za,Ts,Ho,Wa,To),ea.x=Ts,ea.y=Ho,ea.z=Wa,ea.w=To)),$s=gr.positionFractBuffer,an.buffer=$s,us=!1,Ds=1,fl=0,as=0,Ma=0,Qs=0,ho=null,gs=0,Vo=!1,Do=5126,Lo=0,xs=0,ks=0,de(an)?(us=!0,ho=Ie.createStream(34962,an),Do=ho.dtype):(ho=Ie.getBuffer(an),ho?Do=ho.dtype:"constant"in an?(Ds=2,typeof an.constant=="number"?(fl=an.constant,as=Ma=Qs=0):(fl=an.constant.length>0?an.constant[0]:0,as=an.constant.length>1?an.constant[1]:0,Ma=an.constant.length>2?an.constant[2]:0,Qs=an.constant.length>3?an.constant[3]:0)):(de(an.buffer)?ho=Ie.createStream(34962,an.buffer):ho=Ie.getBuffer(an.buffer),Do="type"in an?ti[an.type]:ho.dtype,Vo=!!an.normalized,gs=an.size|0,Lo=an.offset|0,xs=an.stride|0,ks=an.divisor|0)),Ea=c.location,Jn=Oe[Ea],Ds===1?(Jn.buffer||$e.enableVertexAttribArray(Ea),Oo=gs||2,(Jn.type!==Do||Jn.size!==Oo||Jn.buffer!==ho||Jn.normalized!==Vo||Jn.offset!==Lo||Jn.stride!==xs)&&($e.bindBuffer(34962,ho.buffer),$e.vertexAttribPointer(Ea,Oo,Do,Vo,xs,Lo),Jn.type=Do,Jn.size=Oo,Jn.buffer=ho,Jn.normalized=Vo,Jn.offset=Lo,Jn.stride=xs),Jn.divisor!==ks&&(tr.vertexAttribDivisorANGLE(Ea,ks),Jn.divisor=ks)):(Jn.buffer&&($e.disableVertexAttribArray(Ea),Jn.buffer=null),(Jn.x!==fl||Jn.y!==as||Jn.z!==Ma||Jn.w!==Qs)&&($e.vertexAttrib4f(Ea,fl,as,Ma,Qs),Jn.x=fl,Jn.y=as,Jn.z=Ma,Jn.w=Qs)),rl=gr.colorBuffer,rn.buffer=rl,Gs=!1,bs=1,zs=0,$o=0,Aa=0,os=0,_l=null,Ss=0,po=!1,go=5126,ss=0,qo=0,zo=0,de(rn)?(Gs=!0,_l=Ie.createStream(34962,rn),go=_l.dtype):(_l=Ie.getBuffer(rn),_l?go=_l.dtype:"constant"in rn?(bs=2,typeof rn.constant=="number"?(zs=rn.constant,$o=Aa=os=0):(zs=rn.constant.length>0?rn.constant[0]:0,$o=rn.constant.length>1?rn.constant[1]:0,Aa=rn.constant.length>2?rn.constant[2]:0,os=rn.constant.length>3?rn.constant[3]:0)):(de(rn.buffer)?_l=Ie.createStream(34962,rn.buffer):_l=Ie.getBuffer(rn.buffer),go="type"in rn?ti[rn.type]:_l.dtype,po=!!rn.normalized,Ss=rn.size|0,ss=rn.offset|0,qo=rn.stride|0,zo=rn.divisor|0)),io=h.location,Io=Oe[io],bs===1?(Io.buffer||$e.enableVertexAttribArray(io),Da=Ss||4,(Io.type!==go||Io.size!==Da||Io.buffer!==_l||Io.normalized!==po||Io.offset!==ss||Io.stride!==qo)&&($e.bindBuffer(34962,_l.buffer),$e.vertexAttribPointer(io,Da,go,po,qo,ss),Io.type=go,Io.size=Da,Io.buffer=_l,Io.normalized=po,Io.offset=ss,Io.stride=qo),Io.divisor!==zo&&(tr.vertexAttribDivisorANGLE(io,zo),Io.divisor=zo)):(Io.buffer&&($e.disableVertexAttribArray(io),Io.buffer=null),(Io.x!==zs||Io.y!==$o||Io.z!==Aa||Io.w!==os)&&($e.vertexAttrib4f(io,zs,$o,Aa,os),Io.x=zs,Io.y=$o,Io.z=Aa,Io.w=os)),vs=gr.dashLength,(!pr||fs!==vs)&&(fs=vs,$e.uniform1f(b.location,vs)),cl=gr.dashTexture,cl&&cl._reglType==="framebuffer"&&(cl=cl.color[0]),el=cl._texture,$e.uniform1i(v.location,el.bind()),Hs=gr.depth,(!pr||Ro!==Hs)&&(Ro=Hs,$e.uniform1f(k.location,Hs)),tl=gr.opacity,(!pr||Fs!==tl)&&(Fs=tl,$e.uniform1f(E.location,tl)),hl=gr.scale,Fa=hl[0],jo=hl[1],(!pr||Ms!==Fa||Rs!==jo)&&(Ms=Fa,Rs=jo,$e.uniform2f(T.location,Fa,jo)),Is=gr.scaleFract,Bs=Is[0],Gt=Is[1],(!pr||At!==Bs||wr!==Gt)&&(At=Bs,wr=Gt,$e.uniform2f(L.location,Bs,Gt)),mr=gr.thickness,(!pr||Or!==mr)&&(Or=mr,$e.uniform1f(_.location,mr)),gi=gr.translate,Ti=gi[0],Ji=gi[1],(!pr||ki!==Ti||Fn!==Ji)&&(ki=Ti,Fn=Ji,$e.uniform2f(C.location,Ti,Ji)),Pi=gr.translateFract,hi=Pi[0],Si=Pi[1],(!pr||Li!==hi||Gn!==Si)&&(Li=hi,Gn=Si,$e.uniform2f(S.location,hi,Si)),ta=P.call(this,zt,gr,pr),ya=ta[0],pa=ta[1],zn=ta[2],Cs=ta[3],(!pr||ia!==ya||va!==pa||is!==zn||Ks!==Cs)&&(ia=ya,va=pa,is=zn,Ks=Cs,$e.uniform4f(m.location,ya,pa,zn,Cs)),dl=gr.count,dl>0?Ba?tr.drawElementsInstancedANGLE(5,4,Ba.type,0<<(Ba.type-5121>>1),dl):tr.drawArraysInstancedANGLE(5,0,4,dl):dl<0&&(Ba?$e.drawElements(5,4,Ba.type,0<<(Ba.type-5121>>1)):$e.drawArrays(5,0,4)),zt.viewportWidth=vn,zt.viewportHeight=da,jn&&Ie.destroyStream(ha),qn&&Ie.destroyStream(es),Ca&&Ie.destroyStream(ts),us&&Ie.destroyStream(ho),Gs&&Ie.destroyStream(_l),el.unbind()}yr.dirty=!0,Re.setVAO(null),Xr&&(r.cpuTime+=performance.now()-ft)}}}});var E8=Te((G_r,RNe)=>{RNe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Ce,Le,pe,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Je,nt,gt,Nt,it,Ye,kt,Tt,St,Dt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie){"use strict";var xe,Oe,Re,De,ct,ge,fe,de,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr;return xe=t.gl,Oe=t.context,Re=t.strings,De=t.next,ct=t.current,ge=t.draw,fe=t.elements,de=t.buffer,dt=t.shader,It=t.attributes,Pt=t.vao,rr=t.uniforms,Hr=t.framebuffer,Dr=t.extensions,Mr=t.timer,Fr=t.isBufferArgs,di=De.blend_color,Di=ct.blend_color,Ii=De.blend_equation,Ci=ct.blend_equation,nn=De.blend_func,ii=ct.blend_func,wi=De.depth_range,Gi=ct.depth_range,Bt=De.colorMask,yt=ct.colorMask,Vt=De.polygonOffset_offset,Wt=ct.polygonOffset_offset,_r=De.sample_coverage,Lr=ct.sample_coverage,Ur=De.stencil_func,Ir=ct.stencil_func,Gr=De.stencil_opFront,jr=ct.stencil_opFront,yi=De.stencil_opBack,Ei=ct.stencil_opBack,Vi=De.scissor_box,ti=ct.scissor_box,en=De.viewport,Yr=ct.viewport,oi={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Bi={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},an={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},rn={add:32774,subtract:32778,"reverse subtract":32779},Fi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ri={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},xn={cw:2304,ccw:2305},xi={},xi.stride=4,xi.offset=0,xi.divisor=1,Xr={},Xr.stride=4,Xr.offset=4,Xr.divisor=1,ft={},ft.stride=8,ft.offset=0,ft.divisor=1,tr={},tr.stride=8,tr.offset=8,tr.divisor=1,pr={},pr.stride=8,pr.offset=16,pr.divisor=1,gr={},gr.stride=8,gr.offset=24,gr.divisor=1,{draw:function(Zr){var Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms;if(Ai=Dr.angle_instanced_arrays,Qi=Hr.next,Qi!==Hr.cur&&(Qi?xe.bindFramebuffer(36160,Qi.framebuffer):xe.bindFramebuffer(36160,null),Hr.cur=Qi),ct.dirty){var jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl;jo=De.dither,jo!==ct.dither&&(jo?xe.enable(3024):xe.disable(3024),ct.dither=jo),Rs=De.depth_func,Rs!==ct.depth_func&&(xe.depthFunc(Rs),ct.depth_func=Rs),Is=wi[0],Bs=wi[1],(Is!==Gi[0]||Bs!==Gi[1])&&(xe.depthRange(Is,Bs),Gi[0]=Is,Gi[1]=Bs),At=De.depth_mask,At!==ct.depth_mask&&(xe.depthMask(At),ct.depth_mask=At),Gt=Bt[0],wr=Bt[1],mr=Bt[2],Or=Bt[3],(Gt!==yt[0]||wr!==yt[1]||mr!==yt[2]||Or!==yt[3])&&(xe.colorMask(Gt,wr,mr,Or),yt[0]=Gt,yt[1]=wr,yt[2]=mr,yt[3]=Or),gi=De.frontFace,gi!==ct.frontFace&&(xe.frontFace(gi),ct.frontFace=gi),Ti=De.lineWidth,Ti!==ct.lineWidth&&(xe.lineWidth(Ti),ct.lineWidth=Ti),ki=De.polygonOffset_enable,ki!==ct.polygonOffset_enable&&(ki?xe.enable(32823):xe.disable(32823),ct.polygonOffset_enable=ki),Ji=Vt[0],Fn=Vt[1],(Ji!==Wt[0]||Fn!==Wt[1])&&(xe.polygonOffset(Ji,Fn),Wt[0]=Ji,Wt[1]=Fn),Pi=De.sample_alpha,Pi!==ct.sample_alpha&&(Pi?xe.enable(32926):xe.disable(32926),ct.sample_alpha=Pi),hi=De.sample_enable,hi!==ct.sample_enable&&(hi?xe.enable(32928):xe.disable(32928),ct.sample_enable=hi),Li=_r[0],Si=_r[1],(Li!==Lr[0]||Si!==Lr[1])&&(xe.sampleCoverage(Li,Si),Lr[0]=Li,Lr[1]=Si),Gn=De.stencil_mask,Gn!==ct.stencil_mask&&(xe.stencilMask(Gn),ct.stencil_mask=Gn),ta=Ur[0],ya=Ur[1],ia=Ur[2],(ta!==Ir[0]||ya!==Ir[1]||ia!==Ir[2])&&(xe.stencilFunc(ta,ya,ia),Ir[0]=ta,Ir[1]=ya,Ir[2]=ia),pa=Gr[0],va=Gr[1],zn=Gr[2],is=Gr[3],(pa!==jr[0]||va!==jr[1]||zn!==jr[2]||is!==jr[3])&&(xe.stencilOpSeparate(pa,va,zn,is),jr[0]=pa,jr[1]=va,jr[2]=zn,jr[3]=is),Cs=yi[0],Ks=yi[1],dl=yi[2],xl=yi[3],(Cs!==Ei[0]||Ks!==Ei[1]||dl!==Ei[2]||xl!==Ei[3])&&(xe.stencilOpSeparate(Cs,Ks,dl,xl),Ei[0]=Cs,Ei[1]=Ks,Ei[2]=dl,Ei[3]=xl)}ni=Zr.viewport,Zi=ni.x|0,aa=ni.y|0,Mn="width"in ni?ni.width|0:Oe.framebufferWidth-Zi,Un="height"in ni?ni.height|0:Oe.framebufferHeight-aa,Ga=Oe.viewportWidth,Oe.viewportWidth=Mn,ma=Oe.viewportHeight,Oe.viewportHeight=Un,xe.viewport(Zi,aa,Mn,Un),Yr[0]=Zi,Yr[1]=aa,Yr[2]=Mn,Yr[3]=Un,xe.blendColor(0,0,0,0),Di[0]=0,Di[1]=0,Di[2]=0,Di[3]=0,n?xe.enable(3042):xe.disable(3042),ct.blend_enable=n,xe.blendEquationSeparate(32774,32774),Ci[0]=32774,Ci[1]=32774,xe.blendFuncSeparate(770,771,773,1),ii[0]=770,ii[1]=771,ii[2]=773,ii[3]=1,i?xe.enable(2884):xe.disable(2884),ct.cull_enable=i,xe.cullFace(a),ct.cull_face=a,oa=o.call(this,Oe,Zr,0),oa?xe.enable(2929):xe.disable(2929),ct.depth_enable=oa,ka=Zr.viewport,so=ka.x|0,Kr=ka.y|0,Ia="width"in ka?ka.width|0:Oe.framebufferWidth-so,Yo="height"in ka?ka.height|0:Oe.framebufferHeight-Kr,xe.scissor(so,Kr,Ia,Yo),ti[0]=so,ti[1]=Kr,ti[2]=Ia,ti[3]=Yo,s?xe.enable(3089):xe.disable(3089),ct.scissor_enable=s,u?xe.enable(2960):xe.disable(2960),ct.stencil_enable=u,fa=ct.profile,fa&&(kn=performance.now(),r.count++),xe.useProgram(l.program),Ta=Dr.angle_instanced_arrays,Pt.setVAO(null),ys=Zr.colorBuffer,xi.buffer=ys,uo=!1,ls=1,$a=0,fo=0,mn=0,ra=0,wa=null,ws=0,Co=!1,Po=5126,ji=0,gn=0,Ps=0,Fr(xi)?(uo=!0,wa=de.createStream(34962,xi),Po=wa.dtype):(wa=de.getBuffer(xi),wa?Po=wa.dtype:"constant"in xi?(ls=2,typeof xi.constant=="number"?($a=xi.constant,fo=mn=ra=0):($a=xi.constant.length>0?xi.constant[0]:0,fo=xi.constant.length>1?xi.constant[1]:0,mn=xi.constant.length>2?xi.constant[2]:0,ra=xi.constant.length>3?xi.constant[3]:0)):(Fr(xi.buffer)?wa=de.createStream(34962,xi.buffer):wa=de.getBuffer(xi.buffer),Po="type"in xi?Ri[xi.type]:wa.dtype,Co=!!xi.normalized,ws=xi.size|0,ji=xi.offset|0,gn=xi.stride|0,Ps=xi.divisor|0)),Ha=f.location,Sn=It[Ha],ls===1?(Sn.buffer||xe.enableVertexAttribArray(Ha),ao=ws||4,(Sn.type!==Po||Sn.size!==ao||Sn.buffer!==wa||Sn.normalized!==Co||Sn.offset!==ji||Sn.stride!==gn)&&(xe.bindBuffer(34962,wa.buffer),xe.vertexAttribPointer(Ha,ao,Po,Co,gn,ji),Sn.type=Po,Sn.size=ao,Sn.buffer=wa,Sn.normalized=Co,Sn.offset=ji,Sn.stride=gn),Sn.divisor!==Ps&&(Ta.vertexAttribDivisorANGLE(Ha,Ps),Sn.divisor=Ps)):(Sn.buffer&&(xe.disableVertexAttribArray(Ha),Sn.buffer=null),(Sn.x!==$a||Sn.y!==fo||Sn.z!==mn||Sn.w!==ra)&&(xe.vertexAttrib4f(Ha,$a,fo,mn,ra),Sn.x=$a,Sn.y=fo,Sn.z=mn,Sn.w=ra)),Ba=Zr.positionBuffer,tr.buffer=Ba,Ko=!1,Qo=1,Wi=0,Sa=0,Qa=0,vn=0,da=null,la=0,vo=!1,As=5126,ps=0,co=0,mo=0,Fr(tr)?(Ko=!0,da=de.createStream(34962,tr),As=da.dtype):(da=de.getBuffer(tr),da?As=da.dtype:"constant"in tr?(Qo=2,typeof tr.constant=="number"?(Wi=tr.constant,Sa=Qa=vn=0):(Wi=tr.constant.length>0?tr.constant[0]:0,Sa=tr.constant.length>1?tr.constant[1]:0,Qa=tr.constant.length>2?tr.constant[2]:0,vn=tr.constant.length>3?tr.constant[3]:0)):(Fr(tr.buffer)?da=de.createStream(34962,tr.buffer):da=de.getBuffer(tr.buffer),As="type"in tr?Ri[tr.type]:da.dtype,vo=!!tr.normalized,la=tr.size|0,ps=tr.offset|0,co=tr.stride|0,mo=tr.divisor|0)),No=c.location,jn=It[No],Qo===1?(jn.buffer||xe.enableVertexAttribArray(No),Go=la||2,(jn.type!==As||jn.size!==Go||jn.buffer!==da||jn.normalized!==vo||jn.offset!==ps||jn.stride!==co)&&(xe.bindBuffer(34962,da.buffer),xe.vertexAttribPointer(No,Go,As,vo,co,ps),jn.type=As,jn.size=Go,jn.buffer=da,jn.normalized=vo,jn.offset=ps,jn.stride=co),jn.divisor!==mo&&(Ta.vertexAttribDivisorANGLE(No,mo),jn.divisor=mo)):(jn.buffer&&(xe.disableVertexAttribArray(No),jn.buffer=null),(jn.x!==Wi||jn.y!==Sa||jn.z!==Qa||jn.w!==vn)&&(xe.vertexAttrib4f(No,Wi,Sa,Qa,vn),jn.x=Wi,jn.y=Sa,jn.z=Qa,jn.w=vn)),Ys=Zr.colorBuffer,Xr.buffer=Ys,qs=!1,Ns=1,Oa=0,ha=0,Vs=0,Ya=0,_n=null,Vn=0,wo=!1,Ra=5126,Xn=0,un=0,$n=0,Fr(Xr)?(qs=!0,_n=de.createStream(34962,Xr),Ra=_n.dtype):(_n=de.getBuffer(Xr),_n?Ra=_n.dtype:"constant"in Xr?(Ns=2,typeof Xr.constant=="number"?(Oa=Xr.constant,ha=Vs=Ya=0):(Oa=Xr.constant.length>0?Xr.constant[0]:0,ha=Xr.constant.length>1?Xr.constant[1]:0,Vs=Xr.constant.length>2?Xr.constant[2]:0,Ya=Xr.constant.length>3?Xr.constant[3]:0)):(Fr(Xr.buffer)?_n=de.createStream(34962,Xr.buffer):_n=de.getBuffer(Xr.buffer),Ra="type"in Xr?Ri[Xr.type]:_n.dtype,wo=!!Xr.normalized,Vn=Xr.size|0,Xn=Xr.offset|0,un=Xr.stride|0,$n=Xr.divisor|0)),Ka=h.location,qn=It[Ka],Ns===1?(qn.buffer||xe.enableVertexAttribArray(Ka),Eo=Vn||4,(qn.type!==Ra||qn.size!==Eo||qn.buffer!==_n||qn.normalized!==wo||qn.offset!==Xn||qn.stride!==un)&&(xe.bindBuffer(34962,_n.buffer),xe.vertexAttribPointer(Ka,Eo,Ra,wo,un,Xn),qn.type=Ra,qn.size=Eo,qn.buffer=_n,qn.normalized=wo,qn.offset=Xn,qn.stride=un),qn.divisor!==$n&&(Ta.vertexAttribDivisorANGLE(Ka,$n),qn.divisor=$n)):(qn.buffer&&(xe.disableVertexAttribArray(Ka),qn.buffer=null),(qn.x!==Oa||qn.y!==ha||qn.z!==Vs||qn.w!==Ya)&&(xe.vertexAttrib4f(Ka,Oa,ha,Vs,Ya),qn.x=Oa,qn.y=ha,qn.z=Vs,qn.w=Ya)),Ja=Zr.positionBuffer,pr.buffer=Ja,lo=!1,eo=1,sa=0,es=0,Na=0,tn=0,Pa=null,to=0,yo=!1,Jo=5126,Ao=0,Dn=0,_a=0,Fr(pr)?(lo=!0,Pa=de.createStream(34962,pr),Jo=Pa.dtype):(Pa=de.getBuffer(pr),Pa?Jo=Pa.dtype:"constant"in pr?(eo=2,typeof pr.constant=="number"?(sa=pr.constant,es=Na=tn=0):(sa=pr.constant.length>0?pr.constant[0]:0,es=pr.constant.length>1?pr.constant[1]:0,Na=pr.constant.length>2?pr.constant[2]:0,tn=pr.constant.length>3?pr.constant[3]:0)):(Fr(pr.buffer)?Pa=de.createStream(34962,pr.buffer):Pa=de.getBuffer(pr.buffer),Jo="type"in pr?Ri[pr.type]:Pa.dtype,yo=!!pr.normalized,to=pr.size|0,Ao=pr.offset|0,Dn=pr.stride|0,_a=pr.divisor|0)),Ws=d.location,Ca=It[Ws],eo===1?(Ca.buffer||xe.enableVertexAttribArray(Ws),Es=to||2,(Ca.type!==Jo||Ca.size!==Es||Ca.buffer!==Pa||Ca.normalized!==yo||Ca.offset!==Ao||Ca.stride!==Dn)&&(xe.bindBuffer(34962,Pa.buffer),xe.vertexAttribPointer(Ws,Es,Jo,yo,Dn,Ao),Ca.type=Jo,Ca.size=Es,Ca.buffer=Pa,Ca.normalized=yo,Ca.offset=Ao,Ca.stride=Dn),Ca.divisor!==_a&&(Ta.vertexAttribDivisorANGLE(Ws,_a),Ca.divisor=_a)):(Ca.buffer&&(xe.disableVertexAttribArray(Ws),Ca.buffer=null),(Ca.x!==sa||Ca.y!==es||Ca.z!==Na||Ca.w!==tn)&&(xe.vertexAttrib4f(Ws,sa,es,Na,tn),Ca.x=sa,Ca.y=es,Ca.z=Na,Ca.w=tn)),Ts=x.location,Ho=It[Ts],Ho.buffer||xe.enableVertexAttribArray(Ts),(Ho.type!==5126||Ho.size!==1||Ho.buffer!==p||Ho.normalized!==!1||Ho.offset!==0||Ho.stride!==8)&&(xe.bindBuffer(34962,p.buffer),xe.vertexAttribPointer(Ts,1,5126,!1,8,0),Ho.type=5126,Ho.size=1,Ho.buffer=p,Ho.normalized=!1,Ho.offset=0,Ho.stride=8),Ho.divisor!==0&&(Ta.vertexAttribDivisorANGLE(Ts,0),Ho.divisor=0),Wa=b.location,To=It[Wa],To.buffer||xe.enableVertexAttribArray(Wa),(To.type!==5126||To.size!==1||To.buffer!==p||To.normalized!==!1||To.offset!==4||To.stride!==8)&&(xe.bindBuffer(34962,p.buffer),xe.vertexAttribPointer(Wa,1,5126,!1,8,4),To.type=5126,To.size=1,To.buffer=p,To.normalized=!1,To.offset=4,To.stride=8),To.divisor!==0&&(Ta.vertexAttribDivisorANGLE(Wa,0),To.divisor=0),ts=Zr.positionBuffer,gr.buffer=ts,Wo=!1,qa=1,ln=0,Bo=0,ko=0,oo=0,za=null,ea=0,rs=!1,$s=5126,us=0,Ds=0,fl=0,Fr(gr)?(Wo=!0,za=de.createStream(34962,gr),$s=za.dtype):(za=de.getBuffer(gr),za?$s=za.dtype:"constant"in gr?(qa=2,typeof gr.constant=="number"?(ln=gr.constant,Bo=ko=oo=0):(ln=gr.constant.length>0?gr.constant[0]:0,Bo=gr.constant.length>1?gr.constant[1]:0,ko=gr.constant.length>2?gr.constant[2]:0,oo=gr.constant.length>3?gr.constant[3]:0)):(Fr(gr.buffer)?za=de.createStream(34962,gr.buffer):za=de.getBuffer(gr.buffer),$s="type"in gr?Ri[gr.type]:za.dtype,rs=!!gr.normalized,ea=gr.size|0,us=gr.offset|0,Ds=gr.stride|0,fl=gr.divisor|0)),as=v.location,Ma=It[as],qa===1?(Ma.buffer||xe.enableVertexAttribArray(as),Qs=ea||2,(Ma.type!==$s||Ma.size!==Qs||Ma.buffer!==za||Ma.normalized!==rs||Ma.offset!==us||Ma.stride!==Ds)&&(xe.bindBuffer(34962,za.buffer),xe.vertexAttribPointer(as,Qs,$s,rs,Ds,us),Ma.type=$s,Ma.size=Qs,Ma.buffer=za,Ma.normalized=rs,Ma.offset=us,Ma.stride=Ds),Ma.divisor!==fl&&(Ta.vertexAttribDivisorANGLE(as,fl),Ma.divisor=fl)):(Ma.buffer&&(xe.disableVertexAttribArray(as),Ma.buffer=null),(Ma.x!==ln||Ma.y!==Bo||Ma.z!==ko||Ma.w!==oo)&&(xe.vertexAttrib4f(as,ln,Bo,ko,oo),Ma.x=ln,Ma.y=Bo,Ma.z=ko,Ma.w=oo)),ho=Zr.positionBuffer,ft.buffer=ho,gs=!1,Vo=1,Do=0,Lo=0,xs=0,ks=0,Ea=null,Jn=0,Oo=!1,rl=5126,Gs=0,bs=0,zs=0,Fr(ft)?(gs=!0,Ea=de.createStream(34962,ft),rl=Ea.dtype):(Ea=de.getBuffer(ft),Ea?rl=Ea.dtype:"constant"in ft?(Vo=2,typeof ft.constant=="number"?(Do=ft.constant,Lo=xs=ks=0):(Do=ft.constant.length>0?ft.constant[0]:0,Lo=ft.constant.length>1?ft.constant[1]:0,xs=ft.constant.length>2?ft.constant[2]:0,ks=ft.constant.length>3?ft.constant[3]:0)):(Fr(ft.buffer)?Ea=de.createStream(34962,ft.buffer):Ea=de.getBuffer(ft.buffer),rl="type"in ft?Ri[ft.type]:Ea.dtype,Oo=!!ft.normalized,Jn=ft.size|0,Gs=ft.offset|0,bs=ft.stride|0,zs=ft.divisor|0)),$o=k.location,Aa=It[$o],Vo===1?(Aa.buffer||xe.enableVertexAttribArray($o),os=Jn||2,(Aa.type!==rl||Aa.size!==os||Aa.buffer!==Ea||Aa.normalized!==Oo||Aa.offset!==Gs||Aa.stride!==bs)&&(xe.bindBuffer(34962,Ea.buffer),xe.vertexAttribPointer($o,os,rl,Oo,bs,Gs),Aa.type=rl,Aa.size=os,Aa.buffer=Ea,Aa.normalized=Oo,Aa.offset=Gs,Aa.stride=bs),Aa.divisor!==zs&&(Ta.vertexAttribDivisorANGLE($o,zs),Aa.divisor=zs)):(Aa.buffer&&(xe.disableVertexAttribArray($o),Aa.buffer=null),(Aa.x!==Do||Aa.y!==Lo||Aa.z!==xs||Aa.w!==ks)&&(xe.vertexAttrib4f($o,Do,Lo,xs,ks),Aa.x=Do,Aa.y=Lo,Aa.z=xs,Aa.w=ks)),_l=Zr.dashLength,xe.uniform1f(E.location,_l),Ss=Zr.dashTexture,Ss&&Ss._reglType==="framebuffer"&&(Ss=Ss.color[0]),po=Ss._texture,xe.uniform1i(T.location,po.bind()),go=Zr.depth,xe.uniform1f(L.location,go),ss=Zr.miterLimit,xe.uniform1f(_.location,ss),qo=S.call(this,Oe,Zr,0),xe.uniform1f(C.location,qo),zo=Zr.opacity,xe.uniform1f(m.location,zo),io=Zr.scale,Io=io[0],Da=io[1],xe.uniform2f(P.location,Io,Da),vs=Zr.thickness,xe.uniform1f(A.location,vs),fs=Zr.translate,cl=fs[0],el=fs[1],xe.uniform2f(B.location,cl,el),Hs=U.call(this,Oe,Zr,0),Ro=Hs[0],tl=Hs[1],Fs=Hs[2],hl=Hs[3],xe.uniform4f(F.location,Ro,tl,Fs,hl),Fa=ge.elements,Fa?xe.bindBuffer(34963,Fa.buffer.buffer):Pt.currentVAO&&(Fa=fe.getElements(Pt.currentVAO.elements),Fa&&xe.bindBuffer(34963,Fa.buffer.buffer)),Ms=Zr.count,Ms>0?Fa?Ta.drawElementsInstancedANGLE(5,4,Fa.type,0<<(Fa.type-5121>>1),Ms):Ta.drawArraysInstancedANGLE(5,0,4,Ms):Ms<0&&(Fa?xe.drawElements(5,4,Fa.type,0<<(Fa.type-5121>>1)):xe.drawArrays(5,0,4)),ct.dirty=!0,Pt.setVAO(null),Oe.viewportWidth=Ga,Oe.viewportHeight=ma,fa&&(r.cpuTime+=performance.now()-kn),uo&&de.destroyStream(wa),Ko&&de.destroyStream(da),qs&&de.destroyStream(_n),lo&&de.destroyStream(Pa),Wo&&de.destroyStream(za),gs&&de.destroyStream(Ea),po.unbind()},scope:function(Zr,Ai,Qi){var ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Ul,le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt,tt,pt,Ht,nr,fr,Ar,Rr,ri,si,Mi,hn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,ql,ou,Pu,iu,tu,Wu,Qu,Ju,ju,Xu,lf,xf,ef,tf,Z,se,ze,Xe,Qe;ni=Zr.viewport,Zi=ni.x|0,aa=ni.y|0,Mn="width"in ni?ni.width|0:Oe.framebufferWidth-Zi,Un="height"in ni?ni.height|0:Oe.framebufferHeight-aa,Ga=Oe.viewportWidth,Oe.viewportWidth=Mn,ma=Oe.viewportHeight,Oe.viewportHeight=Un,oa=en[0],en[0]=Zi,ka=en[1],en[1]=aa,so=en[2],en[2]=Mn,Kr=en[3],en[3]=Un,Ia=di[0],di[0]=G,Yo=di[1],di[1]=j,fa=di[2],di[2]=H,kn=di[3],di[3]=N,Ta=De.blend_enable,De.blend_enable=W,ys=Ii[0],Ii[0]=re,uo=Ii[1],Ii[1]=ae,ls=nn[0],nn[0]=be,$a=nn[1],nn[1]=Ce,fo=nn[2],nn[2]=Le,mn=nn[3],nn[3]=pe,ra=De.cull_enable,De.cull_enable=te,wa=De.cull_face,De.cull_face=ke,ws=o.call(this,Oe,Zr,Qi),Co=De.depth_enable,De.depth_enable=ws,Po=Zr.viewport,ji=Po.x|0,gn=Po.y|0,Ps="width"in Po?Po.width|0:Oe.framebufferWidth-ji,Ha="height"in Po?Po.height|0:Oe.framebufferHeight-gn,Sn=Vi[0],Vi[0]=ji,ao=Vi[1],Vi[1]=gn,Ba=Vi[2],Vi[2]=Ps,Ko=Vi[3],Vi[3]=Ha,Qo=De.scissor_enable,De.scissor_enable=Ee,Wi=De.stencil_enable,De.stencil_enable=Me,Sa=ct.profile,Sa&&(Qa=performance.now(),r.count++),vn=ge.offset,ge.offset=Ne,da=ge.count,ge.count=Fe,la=Zr.count,vo=ge.instances,ge.instances=la,As=ge.primitive,ge.primitive=ye,ps=S.call(this,Oe,Zr,Qi),co=rr[Ve],rr[Ve]=ps,mo=Zr.miterLimit,No=rr[ce],rr[ce]=mo,jn=Zr.scale,Go=rr[Je],rr[Je]=jn,Ys=Zr.scaleFract,qs=rr[nt],rr[nt]=Ys,Ns=Zr.translateFract,Oa=rr[gt],rr[gt]=Ns,ha=Zr.translate,Vs=rr[Nt],rr[Nt]=ha,Ya=Zr.thickness,_n=rr[it],rr[it]=Ya,Vn=Zr.dashTexture,wo=rr[Ye],rr[Ye]=Vn,Ra=Zr.opacity,Xn=rr[kt],rr[kt]=Ra,un=Oe.pixelRatio,$n=rr[Tt],rr[Tt]=un,Ka=Zr.id,qn=rr[St],rr[St]=Ka,Eo=Zr.dashLength,Ja=rr[Dt],rr[Dt]=Eo,lo=U.call(this,Oe,Zr,Qi),eo=rr[Zt],rr[Zt]=lo,sa=Zr.depth,es=rr[Et],rr[Et]=sa,Na=Ae.state,Ae.state=1,tn=Ae.x,Ae.x=0,Pa=Ae.y,Ae.y=0,to=Ae.z,Ae.z=0,yo=Ae.w,Ae.w=0,Jo=Ae.buffer,Ae.buffer=p,Ao=Ae.size,Ae.size=0,Dn=Ae.normalized,Ae.normalized=!1,_a=Ae.type,Ae.type=5126,Ws=Ae.offset,Ae.offset=0,Ca=Ae.stride,Ae.stride=8,Es=Ae.divisor,Ae.divisor=0,Ts=at.state,at.state=1,Ho=at.x,at.x=0,Wa=at.y,at.y=0,To=at.z,at.z=0,ts=at.w,at.w=0,Wo=at.buffer,at.buffer=p,qa=at.size,at.size=0,ln=at.normalized,at.normalized=!1,Bo=at.type,at.type=5126,ko=at.offset,at.offset=4,oo=at.stride,at.stride=8,za=at.divisor,at.divisor=0,ea=Zr.colorBuffer,xi.buffer=ea,rs=!1,$s=1,us=0,Ds=0,fl=0,as=0,Ma=null,Qs=0,ho=!1,gs=5126,Vo=0,Do=0,Lo=0,Fr(xi)?(rs=!0,Ma=de.createStream(34962,xi),gs=Ma.dtype):(Ma=de.getBuffer(xi),Ma?gs=Ma.dtype:"constant"in xi?($s=2,typeof xi.constant=="number"?(us=xi.constant,Ds=fl=as=0):(us=xi.constant.length>0?xi.constant[0]:0,Ds=xi.constant.length>1?xi.constant[1]:0,fl=xi.constant.length>2?xi.constant[2]:0,as=xi.constant.length>3?xi.constant[3]:0)):(Fr(xi.buffer)?Ma=de.createStream(34962,xi.buffer):Ma=de.getBuffer(xi.buffer),gs="type"in xi?Ri[xi.type]:Ma.dtype,ho=!!xi.normalized,Qs=xi.size|0,Vo=xi.offset|0,Do=xi.stride|0,Lo=xi.divisor|0)),xs=wt.state,wt.state=$s,ks=wt.x,wt.x=us,Ea=wt.y,wt.y=Ds,Jn=wt.z,wt.z=fl,Oo=wt.w,wt.w=as,rl=wt.buffer,wt.buffer=Ma,Gs=wt.size,wt.size=Qs,bs=wt.normalized,wt.normalized=ho,zs=wt.type,wt.type=gs,$o=wt.offset,wt.offset=Vo,Aa=wt.stride,wt.stride=Do,os=wt.divisor,wt.divisor=Lo,_l=Zr.colorBuffer,Xr.buffer=_l,Ss=!1,po=1,go=0,ss=0,qo=0,zo=0,io=null,Io=0,Da=!1,vs=5126,fs=0,cl=0,el=0,Fr(Xr)?(Ss=!0,io=de.createStream(34962,Xr),vs=io.dtype):(io=de.getBuffer(Xr),io?vs=io.dtype:"constant"in Xr?(po=2,typeof Xr.constant=="number"?(go=Xr.constant,ss=qo=zo=0):(go=Xr.constant.length>0?Xr.constant[0]:0,ss=Xr.constant.length>1?Xr.constant[1]:0,qo=Xr.constant.length>2?Xr.constant[2]:0,zo=Xr.constant.length>3?Xr.constant[3]:0)):(Fr(Xr.buffer)?io=de.createStream(34962,Xr.buffer):io=de.getBuffer(Xr.buffer),vs="type"in Xr?Ri[Xr.type]:io.dtype,Da=!!Xr.normalized,Io=Xr.size|0,fs=Xr.offset|0,cl=Xr.stride|0,el=Xr.divisor|0)),Hs=vt.state,vt.state=po,Ro=vt.x,vt.x=go,tl=vt.y,vt.y=ss,Fs=vt.z,vt.z=qo,hl=vt.w,vt.w=zo,Fa=vt.buffer,vt.buffer=io,Ms=vt.size,vt.size=Io,jo=vt.normalized,vt.normalized=Da,Rs=vt.type,vt.type=vs,Is=vt.offset,vt.offset=fs,Bs=vt.stride,vt.stride=cl,At=vt.divisor,vt.divisor=el,Gt=Zr.positionBuffer,ft.buffer=Gt,wr=!1,mr=1,Or=0,gi=0,Ti=0,ki=0,Ji=null,Fn=0,Pi=!1,hi=5126,Li=0,Si=0,Gn=0,Fr(ft)?(wr=!0,Ji=de.createStream(34962,ft),hi=Ji.dtype):(Ji=de.getBuffer(ft),Ji?hi=Ji.dtype:"constant"in ft?(mr=2,typeof ft.constant=="number"?(Or=ft.constant,gi=Ti=ki=0):(Or=ft.constant.length>0?ft.constant[0]:0,gi=ft.constant.length>1?ft.constant[1]:0,Ti=ft.constant.length>2?ft.constant[2]:0,ki=ft.constant.length>3?ft.constant[3]:0)):(Fr(ft.buffer)?Ji=de.createStream(34962,ft.buffer):Ji=de.getBuffer(ft.buffer),hi="type"in ft?Ri[ft.type]:Ji.dtype,Pi=!!ft.normalized,Fn=ft.size|0,Li=ft.offset|0,Si=ft.stride|0,Gn=ft.divisor|0)),ta=st.state,st.state=mr,ya=st.x,st.x=Or,ia=st.y,st.y=gi,pa=st.z,st.z=Ti,va=st.w,st.w=ki,zn=st.buffer,st.buffer=Ji,is=st.size,st.size=Fn,Cs=st.normalized,st.normalized=Pi,Ks=st.type,st.type=hi,dl=st.offset,st.offset=Li,xl=st.stride,st.stride=Si,Ol=st.divisor,st.divisor=Gn,bl=Zr.positionBuffer,tr.buffer=bl,eu=!1,Zl=1,Vl=0,ja=0,ns=0,Js=0,cs=null,sl=0,ll=!1,il=5126,zl=0,Ml=0,Rl=0,Fr(tr)?(eu=!0,cs=de.createStream(34962,tr),il=cs.dtype):(cs=de.getBuffer(tr),cs?il=cs.dtype:"constant"in tr?(Zl=2,typeof tr.constant=="number"?(Vl=tr.constant,ja=ns=Js=0):(Vl=tr.constant.length>0?tr.constant[0]:0,ja=tr.constant.length>1?tr.constant[1]:0,ns=tr.constant.length>2?tr.constant[2]:0,Js=tr.constant.length>3?tr.constant[3]:0)):(Fr(tr.buffer)?cs=de.createStream(34962,tr.buffer):cs=de.getBuffer(tr.buffer),il="type"in tr?Ri[tr.type]:cs.dtype,ll=!!tr.normalized,sl=tr.size|0,zl=tr.offset|0,Ml=tr.stride|0,Rl=tr.divisor|0)),Al=Ue.state,Ue.state=Zl,Ll=Ue.x,Ue.x=Vl,ms=Ue.y,Ue.y=ja,Os=Ue.z,Ue.z=ns,Xl=Ue.w,Ue.w=Js,Gl=Ue.buffer,Ue.buffer=cs,Ul=Ue.size,Ue.size=sl,le=Ue.normalized,Ue.normalized=ll,w=Ue.type,Ue.type=il,q=Ue.offset,Ue.offset=zl,Q=Ue.stride,Ue.stride=Ml,ee=Ue.divisor,Ue.divisor=Rl,ue=Zr.positionBuffer,pr.buffer=ue,Ge=!1,et=1,mt=0,Ft=0,ir=0,or=0,kr=null,Vr=0,he=!1,Se=5126,qe=0,He=0,lt=0,Fr(pr)?(Ge=!0,kr=de.createStream(34962,pr),Se=kr.dtype):(kr=de.getBuffer(pr),kr?Se=kr.dtype:"constant"in pr?(et=2,typeof pr.constant=="number"?(mt=pr.constant,Ft=ir=or=0):(mt=pr.constant.length>0?pr.constant[0]:0,Ft=pr.constant.length>1?pr.constant[1]:0,ir=pr.constant.length>2?pr.constant[2]:0,or=pr.constant.length>3?pr.constant[3]:0)):(Fr(pr.buffer)?kr=de.createStream(34962,pr.buffer):kr=de.getBuffer(pr.buffer),Se="type"in pr?Ri[pr.type]:kr.dtype,he=!!pr.normalized,Vr=pr.size|0,qe=pr.offset|0,He=pr.stride|0,lt=pr.divisor|0)),tt=rt.state,rt.state=et,pt=rt.x,rt.x=mt,Ht=rt.y,rt.y=Ft,nr=rt.z,rt.z=ir,fr=rt.w,rt.w=or,Ar=rt.buffer,rt.buffer=kr,Rr=rt.size,rt.size=Vr,ri=rt.normalized,rt.normalized=he,si=rt.type,rt.type=Se,Mi=rt.offset,rt.offset=qe,hn=rt.stride,rt.stride=He,Zn=rt.divisor,rt.divisor=lt,Yn=Zr.positionBuffer,gr.buffer=Yn,Ua=!1,Fo=1,vl=0,Us=0,ml=0,au=0,Sl=null,Yl=0,ql=!1,ou=5126,Pu=0,iu=0,tu=0,Fr(gr)?(Ua=!0,Sl=de.createStream(34962,gr),ou=Sl.dtype):(Sl=de.getBuffer(gr),Sl?ou=Sl.dtype:"constant"in gr?(Fo=2,typeof gr.constant=="number"?(vl=gr.constant,Us=ml=au=0):(vl=gr.constant.length>0?gr.constant[0]:0,Us=gr.constant.length>1?gr.constant[1]:0,ml=gr.constant.length>2?gr.constant[2]:0,au=gr.constant.length>3?gr.constant[3]:0)):(Fr(gr.buffer)?Sl=de.createStream(34962,gr.buffer):Sl=de.getBuffer(gr.buffer),ou="type"in gr?Ri[gr.type]:Sl.dtype,ql=!!gr.normalized,Yl=gr.size|0,Pu=gr.offset|0,iu=gr.stride|0,tu=gr.divisor|0)),Wu=$e.state,$e.state=Fo,Qu=$e.x,$e.x=vl,Ju=$e.y,$e.y=Us,ju=$e.z,$e.z=ml,Xu=$e.w,$e.w=au,lf=$e.buffer,$e.buffer=Sl,xf=$e.size,$e.size=Yl,ef=$e.normalized,$e.normalized=ql,tf=$e.type,$e.type=ou,Z=$e.offset,$e.offset=Pu,se=$e.stride,$e.stride=iu,ze=$e.divisor,$e.divisor=tu,Xe=dt.vert,dt.vert=zt,Qe=dt.frag,dt.frag=Yt,ct.dirty=!0,Ai(Oe,Zr,Qi),Oe.viewportWidth=Ga,Oe.viewportHeight=ma,en[0]=oa,en[1]=ka,en[2]=so,en[3]=Kr,di[0]=Ia,di[1]=Yo,di[2]=fa,di[3]=kn,De.blend_enable=Ta,Ii[0]=ys,Ii[1]=uo,nn[0]=ls,nn[1]=$a,nn[2]=fo,nn[3]=mn,De.cull_enable=ra,De.cull_face=wa,De.depth_enable=Co,Vi[0]=Sn,Vi[1]=ao,Vi[2]=Ba,Vi[3]=Ko,De.scissor_enable=Qo,De.stencil_enable=Wi,Sa&&(r.cpuTime+=performance.now()-Qa),ge.offset=vn,ge.count=da,ge.instances=vo,ge.primitive=As,rr[Ve]=co,rr[ce]=No,rr[Je]=Go,rr[nt]=qs,rr[gt]=Oa,rr[Nt]=Vs,rr[it]=_n,rr[Ye]=wo,rr[kt]=Xn,rr[Tt]=$n,rr[St]=qn,rr[Dt]=Ja,rr[Zt]=eo,rr[Et]=es,Ae.state=Na,Ae.x=tn,Ae.y=Pa,Ae.z=to,Ae.w=yo,Ae.buffer=Jo,Ae.size=Ao,Ae.normalized=Dn,Ae.type=_a,Ae.offset=Ws,Ae.stride=Ca,Ae.divisor=Es,at.state=Ts,at.x=Ho,at.y=Wa,at.z=To,at.w=ts,at.buffer=Wo,at.size=qa,at.normalized=ln,at.type=Bo,at.offset=ko,at.stride=oo,at.divisor=za,rs&&de.destroyStream(Ma),wt.state=xs,wt.x=ks,wt.y=Ea,wt.z=Jn,wt.w=Oo,wt.buffer=rl,wt.size=Gs,wt.normalized=bs,wt.type=zs,wt.offset=$o,wt.stride=Aa,wt.divisor=os,Ss&&de.destroyStream(io),vt.state=Hs,vt.x=Ro,vt.y=tl,vt.z=Fs,vt.w=hl,vt.buffer=Fa,vt.size=Ms,vt.normalized=jo,vt.type=Rs,vt.offset=Is,vt.stride=Bs,vt.divisor=At,wr&&de.destroyStream(Ji),st.state=ta,st.x=ya,st.y=ia,st.z=pa,st.w=va,st.buffer=zn,st.size=is,st.normalized=Cs,st.type=Ks,st.offset=dl,st.stride=xl,st.divisor=Ol,eu&&de.destroyStream(cs),Ue.state=Al,Ue.x=Ll,Ue.y=ms,Ue.z=Os,Ue.w=Xl,Ue.buffer=Gl,Ue.size=Ul,Ue.normalized=le,Ue.type=w,Ue.offset=q,Ue.stride=Q,Ue.divisor=ee,Ge&&de.destroyStream(kr),rt.state=tt,rt.x=pt,rt.y=Ht,rt.z=nr,rt.w=fr,rt.buffer=Ar,rt.size=Rr,rt.normalized=ri,rt.type=si,rt.offset=Mi,rt.stride=hn,rt.divisor=Zn,Ua&&de.destroyStream(Sl),$e.state=Wu,$e.x=Qu,$e.y=Ju,$e.z=ju,$e.w=Xu,$e.buffer=lf,$e.size=xf,$e.normalized=ef,$e.type=tf,$e.offset=Z,$e.stride=se,$e.divisor=ze,dt.vert=Xe,dt.frag=Qe,ct.dirty=!0},batch:function(Zr,Ai){var Qi,ni,Zi,aa,Mn,Un,Ga;if(Qi=Dr.angle_instanced_arrays,ni=Hr.next,ni!==Hr.cur&&(ni?xe.bindFramebuffer(36160,ni.framebuffer):xe.bindFramebuffer(36160,null),Hr.cur=ni),ct.dirty){var ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo;ma=De.dither,ma!==ct.dither&&(ma?xe.enable(3024):xe.disable(3024),ct.dither=ma),oa=De.depth_func,oa!==ct.depth_func&&(xe.depthFunc(oa),ct.depth_func=oa),ka=wi[0],so=wi[1],(ka!==Gi[0]||so!==Gi[1])&&(xe.depthRange(ka,so),Gi[0]=ka,Gi[1]=so),Kr=De.depth_mask,Kr!==ct.depth_mask&&(xe.depthMask(Kr),ct.depth_mask=Kr),Ia=Bt[0],Yo=Bt[1],fa=Bt[2],kn=Bt[3],(Ia!==yt[0]||Yo!==yt[1]||fa!==yt[2]||kn!==yt[3])&&(xe.colorMask(Ia,Yo,fa,kn),yt[0]=Ia,yt[1]=Yo,yt[2]=fa,yt[3]=kn),Ta=De.frontFace,Ta!==ct.frontFace&&(xe.frontFace(Ta),ct.frontFace=Ta),ys=De.lineWidth,ys!==ct.lineWidth&&(xe.lineWidth(ys),ct.lineWidth=ys),uo=De.polygonOffset_enable,uo!==ct.polygonOffset_enable&&(uo?xe.enable(32823):xe.disable(32823),ct.polygonOffset_enable=uo),ls=Vt[0],$a=Vt[1],(ls!==Wt[0]||$a!==Wt[1])&&(xe.polygonOffset(ls,$a),Wt[0]=ls,Wt[1]=$a),fo=De.sample_alpha,fo!==ct.sample_alpha&&(fo?xe.enable(32926):xe.disable(32926),ct.sample_alpha=fo),mn=De.sample_enable,mn!==ct.sample_enable&&(mn?xe.enable(32928):xe.disable(32928),ct.sample_enable=mn),ra=_r[0],wa=_r[1],(ra!==Lr[0]||wa!==Lr[1])&&(xe.sampleCoverage(ra,wa),Lr[0]=ra,Lr[1]=wa),ws=De.stencil_mask,ws!==ct.stencil_mask&&(xe.stencilMask(ws),ct.stencil_mask=ws),Co=Ur[0],Po=Ur[1],ji=Ur[2],(Co!==Ir[0]||Po!==Ir[1]||ji!==Ir[2])&&(xe.stencilFunc(Co,Po,ji),Ir[0]=Co,Ir[1]=Po,Ir[2]=ji),gn=Gr[0],Ps=Gr[1],Ha=Gr[2],Sn=Gr[3],(gn!==jr[0]||Ps!==jr[1]||Ha!==jr[2]||Sn!==jr[3])&&(xe.stencilOpSeparate(gn,Ps,Ha,Sn),jr[0]=gn,jr[1]=Ps,jr[2]=Ha,jr[3]=Sn),ao=yi[0],Ba=yi[1],Ko=yi[2],Qo=yi[3],(ao!==Ei[0]||Ba!==Ei[1]||Ko!==Ei[2]||Qo!==Ei[3])&&(xe.stencilOpSeparate(ao,Ba,Ko,Qo),Ei[0]=ao,Ei[1]=Ba,Ei[2]=Ko,Ei[3]=Qo)}xe.blendColor(0,0,0,0),Di[0]=0,Di[1]=0,Di[2]=0,Di[3]=0,hr?xe.enable(3042):xe.disable(3042),ct.blend_enable=hr,xe.blendEquationSeparate(32774,32774),Ci[0]=32774,Ci[1]=32774,xe.blendFuncSeparate(770,771,773,1),ii[0]=770,ii[1]=771,ii[2]=773,ii[3]=1,yr?xe.enable(2884):xe.disable(2884),ct.cull_enable=yr,xe.cullFace(br),ct.cull_face=br,Ut?xe.enable(3089):xe.disable(3089),ct.scissor_enable=Ut,Ie?xe.enable(2960):xe.disable(2960),ct.stencil_enable=Ie,Zi=ct.profile,Zi&&(aa=performance.now(),r.count+=Ai),xe.useProgram(l.program),Mn=Dr.angle_instanced_arrays;var Wi,Sa,Qa,vn,da;for(Pt.setVAO(null),Wi=x.location,Sa=It[Wi],Sa.buffer||xe.enableVertexAttribArray(Wi),(Sa.type!==5126||Sa.size!==1||Sa.buffer!==p||Sa.normalized!==!1||Sa.offset!==0||Sa.stride!==8)&&(xe.bindBuffer(34962,p.buffer),xe.vertexAttribPointer(Wi,1,5126,!1,8,0),Sa.type=5126,Sa.size=1,Sa.buffer=p,Sa.normalized=!1,Sa.offset=0,Sa.stride=8),Sa.divisor!==0&&(Mn.vertexAttribDivisorANGLE(Wi,0),Sa.divisor=0),Qa=b.location,vn=It[Qa],vn.buffer||xe.enableVertexAttribArray(Qa),(vn.type!==5126||vn.size!==1||vn.buffer!==p||vn.normalized!==!1||vn.offset!==4||vn.stride!==8)&&(xe.bindBuffer(34962,p.buffer),xe.vertexAttribPointer(Qa,1,5126,!1,8,4),vn.type=5126,vn.size=1,vn.buffer=p,vn.normalized=!1,vn.offset=4,vn.stride=8),vn.divisor!==0&&(Mn.vertexAttribDivisorANGLE(Qa,0),vn.divisor=0),da=ge.elements,da?xe.bindBuffer(34963,da.buffer.buffer):Pt.currentVAO&&(da=fe.getElements(Pt.currentVAO.elements),da&&xe.bindBuffer(34963,da.buffer.buffer)),Un=0;Un0?xi.constant[0]:0,Vn=xi.constant.length>1?xi.constant[1]:0,wo=xi.constant.length>2?xi.constant[2]:0,Ra=xi.constant.length>3?xi.constant[3]:0)):(Fr(xi.buffer)?Xn=de.createStream(34962,xi.buffer):Xn=de.getBuffer(xi.buffer),Ka="type"in xi?Ri[xi.type]:Xn.dtype,$n=!!xi.normalized,un=xi.size|0,qn=xi.offset|0,Eo=xi.stride|0,Ja=xi.divisor|0)),lo=f.location,eo=It[lo],Ya===1?(eo.buffer||xe.enableVertexAttribArray(lo),sa=un||4,(eo.type!==Ka||eo.size!==sa||eo.buffer!==Xn||eo.normalized!==$n||eo.offset!==qn||eo.stride!==Eo)&&(xe.bindBuffer(34962,Xn.buffer),xe.vertexAttribPointer(lo,sa,Ka,$n,Eo,qn),eo.type=Ka,eo.size=sa,eo.buffer=Xn,eo.normalized=$n,eo.offset=qn,eo.stride=Eo),eo.divisor!==Ja&&(Mn.vertexAttribDivisorANGLE(lo,Ja),eo.divisor=Ja)):(eo.buffer&&(xe.disableVertexAttribArray(lo),eo.buffer=null),(eo.x!==_n||eo.y!==Vn||eo.z!==wo||eo.w!==Ra)&&(xe.vertexAttrib4f(lo,_n,Vn,wo,Ra),eo.x=_n,eo.y=Vn,eo.z=wo,eo.w=Ra)),es=Ga.positionBuffer,tr.buffer=es,Na=!1,tn=1,Pa=0,to=0,yo=0,Jo=0,Ao=null,Dn=0,_a=!1,Ws=5126,Ca=0,Es=0,Ts=0,Fr(tr)?(Na=!0,Ao=de.createStream(34962,tr),Ws=Ao.dtype):(Ao=de.getBuffer(tr),Ao?Ws=Ao.dtype:"constant"in tr?(tn=2,typeof tr.constant=="number"?(Pa=tr.constant,to=yo=Jo=0):(Pa=tr.constant.length>0?tr.constant[0]:0,to=tr.constant.length>1?tr.constant[1]:0,yo=tr.constant.length>2?tr.constant[2]:0,Jo=tr.constant.length>3?tr.constant[3]:0)):(Fr(tr.buffer)?Ao=de.createStream(34962,tr.buffer):Ao=de.getBuffer(tr.buffer),Ws="type"in tr?Ri[tr.type]:Ao.dtype,_a=!!tr.normalized,Dn=tr.size|0,Ca=tr.offset|0,Es=tr.stride|0,Ts=tr.divisor|0)),Ho=c.location,Wa=It[Ho],tn===1?(Wa.buffer||xe.enableVertexAttribArray(Ho),To=Dn||2,(Wa.type!==Ws||Wa.size!==To||Wa.buffer!==Ao||Wa.normalized!==_a||Wa.offset!==Ca||Wa.stride!==Es)&&(xe.bindBuffer(34962,Ao.buffer),xe.vertexAttribPointer(Ho,To,Ws,_a,Es,Ca),Wa.type=Ws,Wa.size=To,Wa.buffer=Ao,Wa.normalized=_a,Wa.offset=Ca,Wa.stride=Es),Wa.divisor!==Ts&&(Mn.vertexAttribDivisorANGLE(Ho,Ts),Wa.divisor=Ts)):(Wa.buffer&&(xe.disableVertexAttribArray(Ho),Wa.buffer=null),(Wa.x!==Pa||Wa.y!==to||Wa.z!==yo||Wa.w!==Jo)&&(xe.vertexAttrib4f(Ho,Pa,to,yo,Jo),Wa.x=Pa,Wa.y=to,Wa.z=yo,Wa.w=Jo)),ts=Ga.colorBuffer,Xr.buffer=ts,Wo=!1,qa=1,ln=0,Bo=0,ko=0,oo=0,za=null,ea=0,rs=!1,$s=5126,us=0,Ds=0,fl=0,Fr(Xr)?(Wo=!0,za=de.createStream(34962,Xr),$s=za.dtype):(za=de.getBuffer(Xr),za?$s=za.dtype:"constant"in Xr?(qa=2,typeof Xr.constant=="number"?(ln=Xr.constant,Bo=ko=oo=0):(ln=Xr.constant.length>0?Xr.constant[0]:0,Bo=Xr.constant.length>1?Xr.constant[1]:0,ko=Xr.constant.length>2?Xr.constant[2]:0,oo=Xr.constant.length>3?Xr.constant[3]:0)):(Fr(Xr.buffer)?za=de.createStream(34962,Xr.buffer):za=de.getBuffer(Xr.buffer),$s="type"in Xr?Ri[Xr.type]:za.dtype,rs=!!Xr.normalized,ea=Xr.size|0,us=Xr.offset|0,Ds=Xr.stride|0,fl=Xr.divisor|0)),as=h.location,Ma=It[as],qa===1?(Ma.buffer||xe.enableVertexAttribArray(as),Qs=ea||4,(Ma.type!==$s||Ma.size!==Qs||Ma.buffer!==za||Ma.normalized!==rs||Ma.offset!==us||Ma.stride!==Ds)&&(xe.bindBuffer(34962,za.buffer),xe.vertexAttribPointer(as,Qs,$s,rs,Ds,us),Ma.type=$s,Ma.size=Qs,Ma.buffer=za,Ma.normalized=rs,Ma.offset=us,Ma.stride=Ds),Ma.divisor!==fl&&(Mn.vertexAttribDivisorANGLE(as,fl),Ma.divisor=fl)):(Ma.buffer&&(xe.disableVertexAttribArray(as),Ma.buffer=null),(Ma.x!==ln||Ma.y!==Bo||Ma.z!==ko||Ma.w!==oo)&&(xe.vertexAttrib4f(as,ln,Bo,ko,oo),Ma.x=ln,Ma.y=Bo,Ma.z=ko,Ma.w=oo)),ho=Ga.positionBuffer,pr.buffer=ho,gs=!1,Vo=1,Do=0,Lo=0,xs=0,ks=0,Ea=null,Jn=0,Oo=!1,rl=5126,Gs=0,bs=0,zs=0,Fr(pr)?(gs=!0,Ea=de.createStream(34962,pr),rl=Ea.dtype):(Ea=de.getBuffer(pr),Ea?rl=Ea.dtype:"constant"in pr?(Vo=2,typeof pr.constant=="number"?(Do=pr.constant,Lo=xs=ks=0):(Do=pr.constant.length>0?pr.constant[0]:0,Lo=pr.constant.length>1?pr.constant[1]:0,xs=pr.constant.length>2?pr.constant[2]:0,ks=pr.constant.length>3?pr.constant[3]:0)):(Fr(pr.buffer)?Ea=de.createStream(34962,pr.buffer):Ea=de.getBuffer(pr.buffer),rl="type"in pr?Ri[pr.type]:Ea.dtype,Oo=!!pr.normalized,Jn=pr.size|0,Gs=pr.offset|0,bs=pr.stride|0,zs=pr.divisor|0)),$o=d.location,Aa=It[$o],Vo===1?(Aa.buffer||xe.enableVertexAttribArray($o),os=Jn||2,(Aa.type!==rl||Aa.size!==os||Aa.buffer!==Ea||Aa.normalized!==Oo||Aa.offset!==Gs||Aa.stride!==bs)&&(xe.bindBuffer(34962,Ea.buffer),xe.vertexAttribPointer($o,os,rl,Oo,bs,Gs),Aa.type=rl,Aa.size=os,Aa.buffer=Ea,Aa.normalized=Oo,Aa.offset=Gs,Aa.stride=bs),Aa.divisor!==zs&&(Mn.vertexAttribDivisorANGLE($o,zs),Aa.divisor=zs)):(Aa.buffer&&(xe.disableVertexAttribArray($o),Aa.buffer=null),(Aa.x!==Do||Aa.y!==Lo||Aa.z!==xs||Aa.w!==ks)&&(xe.vertexAttrib4f($o,Do,Lo,xs,ks),Aa.x=Do,Aa.y=Lo,Aa.z=xs,Aa.w=ks)),_l=Ga.positionBuffer,gr.buffer=_l,Ss=!1,po=1,go=0,ss=0,qo=0,zo=0,io=null,Io=0,Da=!1,vs=5126,fs=0,cl=0,el=0,Fr(gr)?(Ss=!0,io=de.createStream(34962,gr),vs=io.dtype):(io=de.getBuffer(gr),io?vs=io.dtype:"constant"in gr?(po=2,typeof gr.constant=="number"?(go=gr.constant,ss=qo=zo=0):(go=gr.constant.length>0?gr.constant[0]:0,ss=gr.constant.length>1?gr.constant[1]:0,qo=gr.constant.length>2?gr.constant[2]:0,zo=gr.constant.length>3?gr.constant[3]:0)):(Fr(gr.buffer)?io=de.createStream(34962,gr.buffer):io=de.getBuffer(gr.buffer),vs="type"in gr?Ri[gr.type]:io.dtype,Da=!!gr.normalized,Io=gr.size|0,fs=gr.offset|0,cl=gr.stride|0,el=gr.divisor|0)),Hs=v.location,Ro=It[Hs],po===1?(Ro.buffer||xe.enableVertexAttribArray(Hs),tl=Io||2,(Ro.type!==vs||Ro.size!==tl||Ro.buffer!==io||Ro.normalized!==Da||Ro.offset!==fs||Ro.stride!==cl)&&(xe.bindBuffer(34962,io.buffer),xe.vertexAttribPointer(Hs,tl,vs,Da,cl,fs),Ro.type=vs,Ro.size=tl,Ro.buffer=io,Ro.normalized=Da,Ro.offset=fs,Ro.stride=cl),Ro.divisor!==el&&(Mn.vertexAttribDivisorANGLE(Hs,el),Ro.divisor=el)):(Ro.buffer&&(xe.disableVertexAttribArray(Hs),Ro.buffer=null),(Ro.x!==go||Ro.y!==ss||Ro.z!==qo||Ro.w!==zo)&&(xe.vertexAttrib4f(Hs,go,ss,qo,zo),Ro.x=go,Ro.y=ss,Ro.z=qo,Ro.w=zo)),Fs=Ga.positionBuffer,ft.buffer=Fs,hl=!1,Fa=1,Ms=0,jo=0,Rs=0,Is=0,Bs=null,At=0,Gt=!1,wr=5126,mr=0,Or=0,gi=0,Fr(ft)?(hl=!0,Bs=de.createStream(34962,ft),wr=Bs.dtype):(Bs=de.getBuffer(ft),Bs?wr=Bs.dtype:"constant"in ft?(Fa=2,typeof ft.constant=="number"?(Ms=ft.constant,jo=Rs=Is=0):(Ms=ft.constant.length>0?ft.constant[0]:0,jo=ft.constant.length>1?ft.constant[1]:0,Rs=ft.constant.length>2?ft.constant[2]:0,Is=ft.constant.length>3?ft.constant[3]:0)):(Fr(ft.buffer)?Bs=de.createStream(34962,ft.buffer):Bs=de.getBuffer(ft.buffer),wr="type"in ft?Ri[ft.type]:Bs.dtype,Gt=!!ft.normalized,At=ft.size|0,mr=ft.offset|0,Or=ft.stride|0,gi=ft.divisor|0)),Ti=k.location,ki=It[Ti],Fa===1?(ki.buffer||xe.enableVertexAttribArray(Ti),Ji=At||2,(ki.type!==wr||ki.size!==Ji||ki.buffer!==Bs||ki.normalized!==Gt||ki.offset!==mr||ki.stride!==Or)&&(xe.bindBuffer(34962,Bs.buffer),xe.vertexAttribPointer(Ti,Ji,wr,Gt,Or,mr),ki.type=wr,ki.size=Ji,ki.buffer=Bs,ki.normalized=Gt,ki.offset=mr,ki.stride=Or),ki.divisor!==gi&&(Mn.vertexAttribDivisorANGLE(Ti,gi),ki.divisor=gi)):(ki.buffer&&(xe.disableVertexAttribArray(Ti),ki.buffer=null),(ki.x!==Ms||ki.y!==jo||ki.z!==Rs||ki.w!==Is)&&(xe.vertexAttrib4f(Ti,Ms,jo,Rs,Is),ki.x=Ms,ki.y=jo,ki.z=Rs,ki.w=Is)),Fn=Ga.dashLength,(!Un||Pi!==Fn)&&(Pi=Fn,xe.uniform1f(E.location,Fn)),hi=Ga.dashTexture,hi&&hi._reglType==="framebuffer"&&(hi=hi.color[0]),Li=hi._texture,xe.uniform1i(T.location,Li.bind()),Si=Ga.depth,(!Un||Gn!==Si)&&(Gn=Si,xe.uniform1f(L.location,Si)),ta=Ga.miterLimit,(!Un||ya!==ta)&&(ya=ta,xe.uniform1f(_.location,ta)),ia=S.call(this,Oe,Ga,Un),(!Un||pa!==ia)&&(pa=ia,xe.uniform1f(C.location,ia)),va=Ga.opacity,(!Un||zn!==va)&&(zn=va,xe.uniform1f(m.location,va)),is=Ga.scale,Cs=is[0],dl=is[1],(!Un||Ks!==Cs||xl!==dl)&&(Ks=Cs,xl=dl,xe.uniform2f(P.location,Cs,dl)),Ol=Ga.thickness,(!Un||bl!==Ol)&&(bl=Ol,xe.uniform1f(A.location,Ol)),eu=Ga.translate,Zl=eu[0],ja=eu[1],(!Un||Vl!==Zl||ns!==ja)&&(Vl=Zl,ns=ja,xe.uniform2f(B.location,Zl,ja)),Js=U.call(this,Oe,Ga,Un),cs=Js[0],ll=Js[1],zl=Js[2],Rl=Js[3],(!Un||sl!==cs||il!==ll||Ml!==zl||Al!==Rl)&&(sl=cs,il=ll,Ml=zl,Al=Rl,xe.uniform4f(F.location,cs,ll,zl,Rl)),Ll=Ga.count,Ll>0?da?Mn.drawElementsInstancedANGLE(5,4,da.type,0<<(da.type-5121>>1),Ll):Mn.drawArraysInstancedANGLE(5,0,4,Ll):Ll<0&&(da?xe.drawElements(5,4,da.type,0<<(da.type-5121>>1)):xe.drawArrays(5,0,4)),Oe.viewportWidth=mo,Oe.viewportHeight=No,Vs&&de.destroyStream(Xn),Na&&de.destroyStream(Ao),Wo&&de.destroyStream(za),gs&&de.destroyStream(Ea),Ss&&de.destroyStream(io),hl&&de.destroyStream(Bs),Li.unbind()}ct.dirty=!0,Pt.setVAO(null),Zi&&(r.cpuTime+=performance.now()-aa)}}}});var k8=Te((H_r,DNe)=>{DNe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Ce,Le,pe,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Je){"use strict";var nt,gt,Nt,it,Ye,kt,Tt,St,Dt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,de,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi;return nt=t.gl,gt=t.context,Nt=t.strings,it=t.next,Ye=t.current,kt=t.draw,Tt=t.elements,St=t.buffer,Dt=t.shader,Zt=t.attributes,Et=t.vao,Ae=t.uniforms,at=t.framebuffer,wt=t.extensions,vt=t.timer,st=t.isBufferArgs,Ue=it.blend_color,rt=Ye.blend_color,$e=it.blend_equation,zt=Ye.blend_equation,Yt=it.blend_func,hr=Ye.blend_func,yr=it.depth_range,br=Ye.depth_range,Ut=it.colorMask,Ie=Ye.colorMask,xe=it.polygonOffset_offset,Oe=Ye.polygonOffset_offset,Re=it.sample_coverage,De=Ye.sample_coverage,ct=it.stencil_func,ge=Ye.stencil_func,fe=it.stencil_opFront,de=Ye.stencil_opFront,dt=it.stencil_opBack,It=Ye.stencil_opBack,Pt=it.scissor_box,rr=Ye.scissor_box,Hr=it.viewport,Dr=Ye.viewport,Mr={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Fr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},di={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Di={add:32774,subtract:32778,"reverse subtract":32779},Ii={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ci={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},nn={cw:2304,ccw:2305},ii={},ii.stride=8,ii.offset=8,wi={},wi.stride=8,wi.offset=8,{draw:function(Gi){var Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo;if(Bt=wt.angle_instanced_arrays,yt=at.next,yt!==at.cur&&(yt?nt.bindFramebuffer(36160,yt.framebuffer):nt.bindFramebuffer(36160,null),at.cur=yt),Ye.dirty){var As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa;As=it.dither,As!==Ye.dither&&(As?nt.enable(3024):nt.disable(3024),Ye.dither=As),ps=it.depth_func,ps!==Ye.depth_func&&(nt.depthFunc(ps),Ye.depth_func=ps),co=yr[0],mo=yr[1],(co!==br[0]||mo!==br[1])&&(nt.depthRange(co,mo),br[0]=co,br[1]=mo),No=it.depth_mask,No!==Ye.depth_mask&&(nt.depthMask(No),Ye.depth_mask=No),jn=Ut[0],Go=Ut[1],Ys=Ut[2],qs=Ut[3],(jn!==Ie[0]||Go!==Ie[1]||Ys!==Ie[2]||qs!==Ie[3])&&(nt.colorMask(jn,Go,Ys,qs),Ie[0]=jn,Ie[1]=Go,Ie[2]=Ys,Ie[3]=qs),Ns=it.cull_enable,Ns!==Ye.cull_enable&&(Ns?nt.enable(2884):nt.disable(2884),Ye.cull_enable=Ns),Oa=it.cull_face,Oa!==Ye.cull_face&&(nt.cullFace(Oa),Ye.cull_face=Oa),ha=it.frontFace,ha!==Ye.frontFace&&(nt.frontFace(ha),Ye.frontFace=ha),Vs=it.lineWidth,Vs!==Ye.lineWidth&&(nt.lineWidth(Vs),Ye.lineWidth=Vs),Ya=it.polygonOffset_enable,Ya!==Ye.polygonOffset_enable&&(Ya?nt.enable(32823):nt.disable(32823),Ye.polygonOffset_enable=Ya),_n=xe[0],Vn=xe[1],(_n!==Oe[0]||Vn!==Oe[1])&&(nt.polygonOffset(_n,Vn),Oe[0]=_n,Oe[1]=Vn),wo=it.sample_alpha,wo!==Ye.sample_alpha&&(wo?nt.enable(32926):nt.disable(32926),Ye.sample_alpha=wo),Ra=it.sample_enable,Ra!==Ye.sample_enable&&(Ra?nt.enable(32928):nt.disable(32928),Ye.sample_enable=Ra),Xn=Re[0],un=Re[1],(Xn!==De[0]||un!==De[1])&&(nt.sampleCoverage(Xn,un),De[0]=Xn,De[1]=un),$n=it.stencil_mask,$n!==Ye.stencil_mask&&(nt.stencilMask($n),Ye.stencil_mask=$n),Ka=ct[0],qn=ct[1],Eo=ct[2],(Ka!==ge[0]||qn!==ge[1]||Eo!==ge[2])&&(nt.stencilFunc(Ka,qn,Eo),ge[0]=Ka,ge[1]=qn,ge[2]=Eo),Ja=fe[0],lo=fe[1],eo=fe[2],sa=fe[3],(Ja!==de[0]||lo!==de[1]||eo!==de[2]||sa!==de[3])&&(nt.stencilOpSeparate(Ja,lo,eo,sa),de[0]=Ja,de[1]=lo,de[2]=eo,de[3]=sa),es=dt[0],Na=dt[1],tn=dt[2],Pa=dt[3],(es!==It[0]||Na!==It[1]||tn!==It[2]||Pa!==It[3])&&(nt.stencilOpSeparate(es,Na,tn,Pa),It[0]=es,It[1]=Na,It[2]=tn,It[3]=Pa)}Vt=Gi.viewport,Wt=Vt.x|0,_r=Vt.y|0,Lr="width"in Vt?Vt.width|0:gt.framebufferWidth-Wt,Ur="height"in Vt?Vt.height|0:gt.framebufferHeight-_r,Ir=gt.viewportWidth,gt.viewportWidth=Lr,Gr=gt.viewportHeight,gt.viewportHeight=Ur,nt.viewport(Wt,_r,Lr,Ur),Dr[0]=Wt,Dr[1]=_r,Dr[2]=Lr,Dr[3]=Ur,nt.blendColor(0,0,0,0),rt[0]=0,rt[1]=0,rt[2]=0,rt[3]=0,n?nt.enable(3042):nt.disable(3042),Ye.blend_enable=n,nt.blendEquationSeparate(32774,32774),zt[0]=32774,zt[1]=32774,nt.blendFuncSeparate(770,771,773,1),hr[0]=770,hr[1]=771,hr[2]=773,hr[3]=1,i?nt.enable(2929):nt.disable(2929),Ye.depth_enable=i,jr=Gi.viewport,yi=jr.x|0,Ei=jr.y|0,Vi="width"in jr?jr.width|0:gt.framebufferWidth-yi,ti="height"in jr?jr.height|0:gt.framebufferHeight-Ei,nt.scissor(yi,Ei,Vi,ti),rr[0]=yi,rr[1]=Ei,rr[2]=Vi,rr[3]=ti,a?nt.enable(3089):nt.disable(3089),Ye.scissor_enable=a,o?nt.enable(2960):nt.disable(2960),Ye.stencil_enable=o,en=Ye.profile,en&&(Yr=performance.now(),r.count++),nt.useProgram(s.program),oi=wt.angle_instanced_arrays,Et.setVAO(null),Bi=Gi.positionBuffer,ii.buffer=Bi,an=!1,rn=1,Fi=0,Ri=0,xn=0,xi=0,Xr=null,ft=0,tr=!1,pr=5126,gr=0,Zr=0,Ai=0,st(ii)?(an=!0,Xr=St.createStream(34962,ii),pr=Xr.dtype):(Xr=St.getBuffer(ii),Xr?pr=Xr.dtype:"constant"in ii?(rn=2,typeof ii.constant=="number"?(Fi=ii.constant,Ri=xn=xi=0):(Fi=ii.constant.length>0?ii.constant[0]:0,Ri=ii.constant.length>1?ii.constant[1]:0,xn=ii.constant.length>2?ii.constant[2]:0,xi=ii.constant.length>3?ii.constant[3]:0)):(st(ii.buffer)?Xr=St.createStream(34962,ii.buffer):Xr=St.getBuffer(ii.buffer),pr="type"in ii?Ci[ii.type]:Xr.dtype,tr=!!ii.normalized,ft=ii.size|0,gr=ii.offset|0,Zr=ii.stride|0,Ai=ii.divisor|0)),Qi=u.location,ni=Zt[Qi],rn===1?(ni.buffer||nt.enableVertexAttribArray(Qi),Zi=ft||2,(ni.type!==pr||ni.size!==Zi||ni.buffer!==Xr||ni.normalized!==tr||ni.offset!==gr||ni.stride!==Zr)&&(nt.bindBuffer(34962,Xr.buffer),nt.vertexAttribPointer(Qi,Zi,pr,tr,Zr,gr),ni.type=pr,ni.size=Zi,ni.buffer=Xr,ni.normalized=tr,ni.offset=gr,ni.stride=Zr),ni.divisor!==Ai&&(oi.vertexAttribDivisorANGLE(Qi,Ai),ni.divisor=Ai)):(ni.buffer&&(nt.disableVertexAttribArray(Qi),ni.buffer=null),(ni.x!==Fi||ni.y!==Ri||ni.z!==xn||ni.w!==xi)&&(nt.vertexAttrib4f(Qi,Fi,Ri,xn,xi),ni.x=Fi,ni.y=Ri,ni.z=xn,ni.w=xi)),aa=Gi.positionFractBuffer,wi.buffer=aa,Mn=!1,Un=1,Ga=0,ma=0,oa=0,ka=0,so=null,Kr=0,Ia=!1,Yo=5126,fa=0,kn=0,Ta=0,st(wi)?(Mn=!0,so=St.createStream(34962,wi),Yo=so.dtype):(so=St.getBuffer(wi),so?Yo=so.dtype:"constant"in wi?(Un=2,typeof wi.constant=="number"?(Ga=wi.constant,ma=oa=ka=0):(Ga=wi.constant.length>0?wi.constant[0]:0,ma=wi.constant.length>1?wi.constant[1]:0,oa=wi.constant.length>2?wi.constant[2]:0,ka=wi.constant.length>3?wi.constant[3]:0)):(st(wi.buffer)?so=St.createStream(34962,wi.buffer):so=St.getBuffer(wi.buffer),Yo="type"in wi?Ci[wi.type]:so.dtype,Ia=!!wi.normalized,Kr=wi.size|0,fa=wi.offset|0,kn=wi.stride|0,Ta=wi.divisor|0)),ys=l.location,uo=Zt[ys],Un===1?(uo.buffer||nt.enableVertexAttribArray(ys),ls=Kr||2,(uo.type!==Yo||uo.size!==ls||uo.buffer!==so||uo.normalized!==Ia||uo.offset!==fa||uo.stride!==kn)&&(nt.bindBuffer(34962,so.buffer),nt.vertexAttribPointer(ys,ls,Yo,Ia,kn,fa),uo.type=Yo,uo.size=ls,uo.buffer=so,uo.normalized=Ia,uo.offset=fa,uo.stride=kn),uo.divisor!==Ta&&(oi.vertexAttribDivisorANGLE(ys,Ta),uo.divisor=Ta)):(uo.buffer&&(nt.disableVertexAttribArray(ys),uo.buffer=null),(uo.x!==Ga||uo.y!==ma||uo.z!==oa||uo.w!==ka)&&(nt.vertexAttrib4f(ys,Ga,ma,oa,ka),uo.x=Ga,uo.y=ma,uo.z=oa,uo.w=ka)),$a=Gi.fill,fo=$a[0],mn=$a[1],ra=$a[2],wa=$a[3],nt.uniform4f(f.location,fo,mn,ra,wa),ws=Gi.id,nt.uniform1f(c.location,ws),Co=Gi.opacity,nt.uniform1f(h.location,Co),Po=Gi.scale,ji=Po[0],gn=Po[1],nt.uniform2f(d.location,ji,gn),Ps=Gi.scaleFract,Ha=Ps[0],Sn=Ps[1],nt.uniform2f(p.location,Ha,Sn),ao=Gi.translate,Ba=ao[0],Ko=ao[1],nt.uniform2f(x.location,Ba,Ko),Qo=Gi.translateFract,Wi=Qo[0],Sa=Qo[1],nt.uniform2f(b.location,Wi,Sa),Qa=v.call(this,gt,Gi,0),vn=null,da=st(Qa),da?vn=Tt.createStream(Qa):vn=Tt.getElements(Qa),vn&&nt.bindBuffer(34963,vn.buffer.buffer),la=vn?vn.vertCount:-1,la&&(vo=kt.instances,vo>0?vn?oi.drawElementsInstancedANGLE(4,la,vn.type,0<<(vn.type-5121>>1),vo):oi.drawArraysInstancedANGLE(4,0,la,vo):vo<0&&(vn?nt.drawElements(4,la,vn.type,0<<(vn.type-5121>>1)):nt.drawArrays(4,0,la)),Ye.dirty=!0,Et.setVAO(null),gt.viewportWidth=Ir,gt.viewportHeight=Gr,en&&(r.cpuTime+=performance.now()-Yr),an&&St.destroyStream(Xr),Mn&&St.destroyStream(so),da&&Tt.destroyStream(vn))},scope:function(Gi,Bt,yt){var Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho;Vt=Gi.viewport,Wt=Vt.x|0,_r=Vt.y|0,Lr="width"in Vt?Vt.width|0:gt.framebufferWidth-Wt,Ur="height"in Vt?Vt.height|0:gt.framebufferHeight-_r,Ir=gt.viewportWidth,gt.viewportWidth=Lr,Gr=gt.viewportHeight,gt.viewportHeight=Ur,jr=Hr[0],Hr[0]=Wt,yi=Hr[1],Hr[1]=_r,Ei=Hr[2],Hr[2]=Lr,Vi=Hr[3],Hr[3]=Ur,ti=Ue[0],Ue[0]=k,en=Ue[1],Ue[1]=E,Yr=Ue[2],Ue[2]=T,oi=Ue[3],Ue[3]=L,Bi=it.blend_enable,it.blend_enable=_,an=$e[0],$e[0]=C,rn=$e[1],$e[1]=S,Fi=Yt[0],Yt[0]=m,Ri=Yt[1],Yt[1]=P,xn=Yt[2],Yt[2]=A,xi=Yt[3],Yt[3]=B,Xr=it.depth_enable,it.depth_enable=F,ft=Gi.viewport,tr=ft.x|0,pr=ft.y|0,gr="width"in ft?ft.width|0:gt.framebufferWidth-tr,Zr="height"in ft?ft.height|0:gt.framebufferHeight-pr,Ai=Pt[0],Pt[0]=tr,Qi=Pt[1],Pt[1]=pr,ni=Pt[2],Pt[2]=gr,Zi=Pt[3],Pt[3]=Zr,aa=it.scissor_enable,it.scissor_enable=U,Mn=it.stencil_enable,it.stencil_enable=G,Un=Ye.profile,Un&&(Ga=performance.now(),r.count++),ma=v.call(this,gt,Gi,yt),oa=null,ka=st(ma),ka?oa=Tt.createStream(ma):oa=Tt.getElements(ma),so=kt.elements,kt.elements=oa,Kr=kt.offset,kt.offset=j,Ia=oa?oa.vertCount:-1,Yo=kt.count,kt.count=Ia,fa=kt.primitive,kt.primitive=H,kn=Gi.scale,Ta=Ae[N],Ae[N]=kn,ys=Gi.fill,uo=Ae[W],Ae[W]=ys,ls=Gi.scaleFract,$a=Ae[re],Ae[re]=ls,fo=Gi.translateFract,mn=Ae[ae],Ae[ae]=fo,ra=Gi.translate,wa=Ae[be],Ae[be]=ra,ws=Gi.opacity,Co=Ae[Ce],Ae[Ce]=ws,Po=gt.pixelRatio,ji=Ae[Le],Ae[Le]=Po,gn=Gi.id,Ps=Ae[pe],Ae[pe]=gn,Ha=te.call(this,gt,Gi,yt),Sn=Ae[ke],Ae[ke]=Ha,ao=Gi.positionBuffer,ii.buffer=ao,Ba=!1,Ko=1,Qo=0,Wi=0,Sa=0,Qa=0,vn=null,da=0,la=!1,vo=5126,As=0,ps=0,co=0,st(ii)?(Ba=!0,vn=St.createStream(34962,ii),vo=vn.dtype):(vn=St.getBuffer(ii),vn?vo=vn.dtype:"constant"in ii?(Ko=2,typeof ii.constant=="number"?(Qo=ii.constant,Wi=Sa=Qa=0):(Qo=ii.constant.length>0?ii.constant[0]:0,Wi=ii.constant.length>1?ii.constant[1]:0,Sa=ii.constant.length>2?ii.constant[2]:0,Qa=ii.constant.length>3?ii.constant[3]:0)):(st(ii.buffer)?vn=St.createStream(34962,ii.buffer):vn=St.getBuffer(ii.buffer),vo="type"in ii?Ci[ii.type]:vn.dtype,la=!!ii.normalized,da=ii.size|0,As=ii.offset|0,ps=ii.stride|0,co=ii.divisor|0)),mo=Ee.state,Ee.state=Ko,No=Ee.x,Ee.x=Qo,jn=Ee.y,Ee.y=Wi,Go=Ee.z,Ee.z=Sa,Ys=Ee.w,Ee.w=Qa,qs=Ee.buffer,Ee.buffer=vn,Ns=Ee.size,Ee.size=da,Oa=Ee.normalized,Ee.normalized=la,ha=Ee.type,Ee.type=vo,Vs=Ee.offset,Ee.offset=As,Ya=Ee.stride,Ee.stride=ps,_n=Ee.divisor,Ee.divisor=co,Vn=Gi.positionFractBuffer,wi.buffer=Vn,wo=!1,Ra=1,Xn=0,un=0,$n=0,Ka=0,qn=null,Eo=0,Ja=!1,lo=5126,eo=0,sa=0,es=0,st(wi)?(wo=!0,qn=St.createStream(34962,wi),lo=qn.dtype):(qn=St.getBuffer(wi),qn?lo=qn.dtype:"constant"in wi?(Ra=2,typeof wi.constant=="number"?(Xn=wi.constant,un=$n=Ka=0):(Xn=wi.constant.length>0?wi.constant[0]:0,un=wi.constant.length>1?wi.constant[1]:0,$n=wi.constant.length>2?wi.constant[2]:0,Ka=wi.constant.length>3?wi.constant[3]:0)):(st(wi.buffer)?qn=St.createStream(34962,wi.buffer):qn=St.getBuffer(wi.buffer),lo="type"in wi?Ci[wi.type]:qn.dtype,Ja=!!wi.normalized,Eo=wi.size|0,eo=wi.offset|0,sa=wi.stride|0,es=wi.divisor|0)),Na=Me.state,Me.state=Ra,tn=Me.x,Me.x=Xn,Pa=Me.y,Me.y=un,to=Me.z,Me.z=$n,yo=Me.w,Me.w=Ka,Jo=Me.buffer,Me.buffer=qn,Ao=Me.size,Me.size=Eo,Dn=Me.normalized,Me.normalized=Ja,_a=Me.type,Me.type=lo,Ws=Me.offset,Me.offset=eo,Ca=Me.stride,Me.stride=sa,Es=Me.divisor,Me.divisor=es,Ts=Dt.vert,Dt.vert=Ne,Ho=Dt.frag,Dt.frag=Fe,Ye.dirty=!0,Bt(gt,Gi,yt),gt.viewportWidth=Ir,gt.viewportHeight=Gr,Hr[0]=jr,Hr[1]=yi,Hr[2]=Ei,Hr[3]=Vi,Ue[0]=ti,Ue[1]=en,Ue[2]=Yr,Ue[3]=oi,it.blend_enable=Bi,$e[0]=an,$e[1]=rn,Yt[0]=Fi,Yt[1]=Ri,Yt[2]=xn,Yt[3]=xi,it.depth_enable=Xr,Pt[0]=Ai,Pt[1]=Qi,Pt[2]=ni,Pt[3]=Zi,it.scissor_enable=aa,it.stencil_enable=Mn,Un&&(r.cpuTime+=performance.now()-Ga),ka&&Tt.destroyStream(oa),kt.elements=so,kt.offset=Kr,kt.count=Yo,kt.primitive=fa,Ae[N]=Ta,Ae[W]=uo,Ae[re]=$a,Ae[ae]=mn,Ae[be]=wa,Ae[Ce]=Co,Ae[Le]=ji,Ae[pe]=Ps,Ae[ke]=Sn,Ba&&St.destroyStream(vn),Ee.state=mo,Ee.x=No,Ee.y=jn,Ee.z=Go,Ee.w=Ys,Ee.buffer=qs,Ee.size=Ns,Ee.normalized=Oa,Ee.type=ha,Ee.offset=Vs,Ee.stride=Ya,Ee.divisor=_n,wo&&St.destroyStream(qn),Me.state=Na,Me.x=tn,Me.y=Pa,Me.z=to,Me.w=yo,Me.buffer=Jo,Me.size=Ao,Me.normalized=Dn,Me.type=_a,Me.offset=Ws,Me.stride=Ca,Me.divisor=Es,Dt.vert=Ts,Dt.frag=Ho,Ye.dirty=!0},batch:function(Gi,Bt){var yt,Vt,Wt,_r,Lr,Ur,Ir;if(yt=wt.angle_instanced_arrays,Vt=at.next,Vt!==at.cur&&(Vt?nt.bindFramebuffer(36160,Vt.framebuffer):nt.bindFramebuffer(36160,null),at.cur=Vt),Ye.dirty){var Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa;Gr=it.dither,Gr!==Ye.dither&&(Gr?nt.enable(3024):nt.disable(3024),Ye.dither=Gr),jr=it.depth_func,jr!==Ye.depth_func&&(nt.depthFunc(jr),Ye.depth_func=jr),yi=yr[0],Ei=yr[1],(yi!==br[0]||Ei!==br[1])&&(nt.depthRange(yi,Ei),br[0]=yi,br[1]=Ei),Vi=it.depth_mask,Vi!==Ye.depth_mask&&(nt.depthMask(Vi),Ye.depth_mask=Vi),ti=Ut[0],en=Ut[1],Yr=Ut[2],oi=Ut[3],(ti!==Ie[0]||en!==Ie[1]||Yr!==Ie[2]||oi!==Ie[3])&&(nt.colorMask(ti,en,Yr,oi),Ie[0]=ti,Ie[1]=en,Ie[2]=Yr,Ie[3]=oi),Bi=it.cull_enable,Bi!==Ye.cull_enable&&(Bi?nt.enable(2884):nt.disable(2884),Ye.cull_enable=Bi),an=it.cull_face,an!==Ye.cull_face&&(nt.cullFace(an),Ye.cull_face=an),rn=it.frontFace,rn!==Ye.frontFace&&(nt.frontFace(rn),Ye.frontFace=rn),Fi=it.lineWidth,Fi!==Ye.lineWidth&&(nt.lineWidth(Fi),Ye.lineWidth=Fi),Ri=it.polygonOffset_enable,Ri!==Ye.polygonOffset_enable&&(Ri?nt.enable(32823):nt.disable(32823),Ye.polygonOffset_enable=Ri),xn=xe[0],xi=xe[1],(xn!==Oe[0]||xi!==Oe[1])&&(nt.polygonOffset(xn,xi),Oe[0]=xn,Oe[1]=xi),Xr=it.sample_alpha,Xr!==Ye.sample_alpha&&(Xr?nt.enable(32926):nt.disable(32926),Ye.sample_alpha=Xr),ft=it.sample_enable,ft!==Ye.sample_enable&&(ft?nt.enable(32928):nt.disable(32928),Ye.sample_enable=ft),tr=Re[0],pr=Re[1],(tr!==De[0]||pr!==De[1])&&(nt.sampleCoverage(tr,pr),De[0]=tr,De[1]=pr),gr=it.stencil_mask,gr!==Ye.stencil_mask&&(nt.stencilMask(gr),Ye.stencil_mask=gr),Zr=ct[0],Ai=ct[1],Qi=ct[2],(Zr!==ge[0]||Ai!==ge[1]||Qi!==ge[2])&&(nt.stencilFunc(Zr,Ai,Qi),ge[0]=Zr,ge[1]=Ai,ge[2]=Qi),ni=fe[0],Zi=fe[1],aa=fe[2],Mn=fe[3],(ni!==de[0]||Zi!==de[1]||aa!==de[2]||Mn!==de[3])&&(nt.stencilOpSeparate(ni,Zi,aa,Mn),de[0]=ni,de[1]=Zi,de[2]=aa,de[3]=Mn),Un=dt[0],Ga=dt[1],ma=dt[2],oa=dt[3],(Un!==It[0]||Ga!==It[1]||ma!==It[2]||oa!==It[3])&&(nt.stencilOpSeparate(Un,Ga,ma,oa),It[0]=Un,It[1]=Ga,It[2]=ma,It[3]=oa)}nt.blendColor(0,0,0,0),rt[0]=0,rt[1]=0,rt[2]=0,rt[3]=0,ye?nt.enable(3042):nt.disable(3042),Ye.blend_enable=ye,nt.blendEquationSeparate(32774,32774),zt[0]=32774,zt[1]=32774,nt.blendFuncSeparate(770,771,773,1),hr[0]=770,hr[1]=771,hr[2]=773,hr[3]=1,Ve?nt.enable(2929):nt.disable(2929),Ye.depth_enable=Ve,ce?nt.enable(3089):nt.disable(3089),Ye.scissor_enable=ce,Je?nt.enable(2960):nt.disable(2960),Ye.stencil_enable=Je,Wt=Ye.profile,Wt&&(_r=performance.now(),r.count+=Bt),nt.useProgram(s.program),Lr=wt.angle_instanced_arrays;var ka;for(Et.setVAO(null),ka=kt.instances,Ur=0;Ur0?ii.constant[0]:0,Co=ii.constant.length>1?ii.constant[1]:0,Po=ii.constant.length>2?ii.constant[2]:0,ji=ii.constant.length>3?ii.constant[3]:0)):(st(ii.buffer)?gn=St.createStream(34962,ii.buffer):gn=St.getBuffer(ii.buffer),Sn="type"in ii?Ci[ii.type]:gn.dtype,Ha=!!ii.normalized,Ps=ii.size|0,ao=ii.offset|0,Ba=ii.stride|0,Ko=ii.divisor|0)),Qo=u.location,Wi=Zt[Qo],wa===1?(Wi.buffer||nt.enableVertexAttribArray(Qo),Sa=Ps||2,(Wi.type!==Sn||Wi.size!==Sa||Wi.buffer!==gn||Wi.normalized!==Ha||Wi.offset!==ao||Wi.stride!==Ba)&&(nt.bindBuffer(34962,gn.buffer),nt.vertexAttribPointer(Qo,Sa,Sn,Ha,Ba,ao),Wi.type=Sn,Wi.size=Sa,Wi.buffer=gn,Wi.normalized=Ha,Wi.offset=ao,Wi.stride=Ba),Wi.divisor!==Ko&&(Lr.vertexAttribDivisorANGLE(Qo,Ko),Wi.divisor=Ko)):(Wi.buffer&&(nt.disableVertexAttribArray(Qo),Wi.buffer=null),(Wi.x!==ws||Wi.y!==Co||Wi.z!==Po||Wi.w!==ji)&&(nt.vertexAttrib4f(Qo,ws,Co,Po,ji),Wi.x=ws,Wi.y=Co,Wi.z=Po,Wi.w=ji)),Qa=Ir.positionFractBuffer,wi.buffer=Qa,vn=!1,da=1,la=0,vo=0,As=0,ps=0,co=null,mo=0,No=!1,jn=5126,Go=0,Ys=0,qs=0,st(wi)?(vn=!0,co=St.createStream(34962,wi),jn=co.dtype):(co=St.getBuffer(wi),co?jn=co.dtype:"constant"in wi?(da=2,typeof wi.constant=="number"?(la=wi.constant,vo=As=ps=0):(la=wi.constant.length>0?wi.constant[0]:0,vo=wi.constant.length>1?wi.constant[1]:0,As=wi.constant.length>2?wi.constant[2]:0,ps=wi.constant.length>3?wi.constant[3]:0)):(st(wi.buffer)?co=St.createStream(34962,wi.buffer):co=St.getBuffer(wi.buffer),jn="type"in wi?Ci[wi.type]:co.dtype,No=!!wi.normalized,mo=wi.size|0,Go=wi.offset|0,Ys=wi.stride|0,qs=wi.divisor|0)),Ns=l.location,Oa=Zt[Ns],da===1?(Oa.buffer||nt.enableVertexAttribArray(Ns),ha=mo||2,(Oa.type!==jn||Oa.size!==ha||Oa.buffer!==co||Oa.normalized!==No||Oa.offset!==Go||Oa.stride!==Ys)&&(nt.bindBuffer(34962,co.buffer),nt.vertexAttribPointer(Ns,ha,jn,No,Ys,Go),Oa.type=jn,Oa.size=ha,Oa.buffer=co,Oa.normalized=No,Oa.offset=Go,Oa.stride=Ys),Oa.divisor!==qs&&(Lr.vertexAttribDivisorANGLE(Ns,qs),Oa.divisor=qs)):(Oa.buffer&&(nt.disableVertexAttribArray(Ns),Oa.buffer=null),(Oa.x!==la||Oa.y!==vo||Oa.z!==As||Oa.w!==ps)&&(nt.vertexAttrib4f(Ns,la,vo,As,ps),Oa.x=la,Oa.y=vo,Oa.z=As,Oa.w=ps)),Vs=Ir.fill,Ya=Vs[0],Vn=Vs[1],Ra=Vs[2],un=Vs[3],(!Ur||_n!==Ya||wo!==Vn||Xn!==Ra||$n!==un)&&(_n=Ya,wo=Vn,Xn=Ra,$n=un,nt.uniform4f(f.location,Ya,Vn,Ra,un)),Ka=Ir.id,(!Ur||qn!==Ka)&&(qn=Ka,nt.uniform1f(c.location,Ka)),Eo=Ir.opacity,(!Ur||Ja!==Eo)&&(Ja=Eo,nt.uniform1f(h.location,Eo)),lo=Ir.scale,eo=lo[0],es=lo[1],(!Ur||sa!==eo||Na!==es)&&(sa=eo,Na=es,nt.uniform2f(d.location,eo,es)),tn=Ir.scaleFract,Pa=tn[0],yo=tn[1],(!Ur||to!==Pa||Jo!==yo)&&(to=Pa,Jo=yo,nt.uniform2f(p.location,Pa,yo)),Ao=Ir.translate,Dn=Ao[0],Ws=Ao[1],(!Ur||_a!==Dn||Ca!==Ws)&&(_a=Dn,Ca=Ws,nt.uniform2f(x.location,Dn,Ws)),Es=Ir.translateFract,Ts=Es[0],Wa=Es[1],(!Ur||Ho!==Ts||To!==Wa)&&(Ho=Ts,To=Wa,nt.uniform2f(b.location,Ts,Wa)),ts=v.call(this,gt,Ir,Ur),Wo=null,qa=st(ts),qa?Wo=Tt.createStream(ts):Wo=Tt.getElements(ts),Wo&&nt.bindBuffer(34963,Wo.buffer.buffer),ln=Wo?Wo.vertCount:-1,ln&&(ka>0?Wo?Lr.drawElementsInstancedANGLE(4,ln,Wo.type,0<<(Wo.type-5121>>1),ka):Lr.drawArraysInstancedANGLE(4,0,ln,ka):ka<0&&(Wo?nt.drawElements(4,ln,Wo.type,0<<(Wo.type-5121>>1)):nt.drawArrays(4,0,ln)),gt.viewportWidth=kn,gt.viewportHeight=Ta,ra&&St.destroyStream(gn),vn&&St.destroyStream(co),qa&&Tt.destroyStream(Wo))}Ye.dirty=!0,Et.setVAO(null),Wt&&(r.cpuTime+=performance.now()-_r)}}}});var C8=Te((W_r,FNe)=>{FNe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Ce,Le,pe,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Je,nt,gt,Nt,it,Ye,kt,Tt,St,Dt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut){"use strict";var Ie,xe,Oe,Re,De,ct,ge,fe,de,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri;return Ie=t.gl,xe=t.context,Oe=t.strings,Re=t.next,De=t.current,ct=t.draw,ge=t.elements,fe=t.buffer,de=t.shader,dt=t.attributes,It=t.vao,Pt=t.uniforms,rr=t.framebuffer,Hr=t.extensions,Dr=t.timer,Mr=t.isBufferArgs,Fr=Re.blend_color,di=De.blend_color,Di=Re.blend_equation,Ii=De.blend_equation,Ci=Re.blend_func,nn=De.blend_func,ii=Re.depth_range,wi=De.depth_range,Gi=Re.colorMask,Bt=De.colorMask,yt=Re.polygonOffset_offset,Vt=De.polygonOffset_offset,Wt=Re.sample_coverage,_r=De.sample_coverage,Lr=Re.stencil_func,Ur=De.stencil_func,Ir=Re.stencil_opFront,Gr=De.stencil_opFront,jr=Re.stencil_opBack,yi=De.stencil_opBack,Ei=Re.scissor_box,Vi=De.scissor_box,ti=Re.viewport,en=De.viewport,Yr={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},oi={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Bi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},an={add:32774,subtract:32778,"reverse subtract":32779},rn={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Fi={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ri={cw:2304,ccw:2305},{draw:function(xn){var xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,il,zl;if(xi=Hr.angle_instanced_arrays,Xr=rr.next,Xr!==rr.cur&&(Xr?Ie.bindFramebuffer(36160,Xr.framebuffer):Ie.bindFramebuffer(36160,null),rr.cur=Xr),De.dirty){var Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Ul,le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt,tt,pt,Ht,nr,fr,Ar;Ml=Re.dither,Ml!==De.dither&&(Ml?Ie.enable(3024):Ie.disable(3024),De.dither=Ml),Rl=Di[0],Al=Di[1],(Rl!==Ii[0]||Al!==Ii[1])&&(Ie.blendEquationSeparate(Rl,Al),Ii[0]=Rl,Ii[1]=Al),Ll=Re.depth_func,Ll!==De.depth_func&&(Ie.depthFunc(Ll),De.depth_func=Ll),ms=ii[0],Os=ii[1],(ms!==wi[0]||Os!==wi[1])&&(Ie.depthRange(ms,Os),wi[0]=ms,wi[1]=Os),Xl=Re.depth_mask,Xl!==De.depth_mask&&(Ie.depthMask(Xl),De.depth_mask=Xl),Gl=Gi[0],Ul=Gi[1],le=Gi[2],w=Gi[3],(Gl!==Bt[0]||Ul!==Bt[1]||le!==Bt[2]||w!==Bt[3])&&(Ie.colorMask(Gl,Ul,le,w),Bt[0]=Gl,Bt[1]=Ul,Bt[2]=le,Bt[3]=w),q=Re.cull_enable,q!==De.cull_enable&&(q?Ie.enable(2884):Ie.disable(2884),De.cull_enable=q),Q=Re.cull_face,Q!==De.cull_face&&(Ie.cullFace(Q),De.cull_face=Q),ee=Re.frontFace,ee!==De.frontFace&&(Ie.frontFace(ee),De.frontFace=ee),ue=Re.lineWidth,ue!==De.lineWidth&&(Ie.lineWidth(ue),De.lineWidth=ue),Ge=Re.polygonOffset_enable,Ge!==De.polygonOffset_enable&&(Ge?Ie.enable(32823):Ie.disable(32823),De.polygonOffset_enable=Ge),et=yt[0],mt=yt[1],(et!==Vt[0]||mt!==Vt[1])&&(Ie.polygonOffset(et,mt),Vt[0]=et,Vt[1]=mt),Ft=Re.sample_alpha,Ft!==De.sample_alpha&&(Ft?Ie.enable(32926):Ie.disable(32926),De.sample_alpha=Ft),ir=Re.sample_enable,ir!==De.sample_enable&&(ir?Ie.enable(32928):Ie.disable(32928),De.sample_enable=ir),or=Wt[0],kr=Wt[1],(or!==_r[0]||kr!==_r[1])&&(Ie.sampleCoverage(or,kr),_r[0]=or,_r[1]=kr),Vr=Re.stencil_mask,Vr!==De.stencil_mask&&(Ie.stencilMask(Vr),De.stencil_mask=Vr),he=Lr[0],Se=Lr[1],qe=Lr[2],(he!==Ur[0]||Se!==Ur[1]||qe!==Ur[2])&&(Ie.stencilFunc(he,Se,qe),Ur[0]=he,Ur[1]=Se,Ur[2]=qe),He=Ir[0],lt=Ir[1],tt=Ir[2],pt=Ir[3],(He!==Gr[0]||lt!==Gr[1]||tt!==Gr[2]||pt!==Gr[3])&&(Ie.stencilOpSeparate(He,lt,tt,pt),Gr[0]=He,Gr[1]=lt,Gr[2]=tt,Gr[3]=pt),Ht=jr[0],nr=jr[1],fr=jr[2],Ar=jr[3],(Ht!==yi[0]||nr!==yi[1]||fr!==yi[2]||Ar!==yi[3])&&(Ie.stencilOpSeparate(Ht,nr,fr,Ar),yi[0]=Ht,yi[1]=nr,yi[2]=fr,yi[3]=Ar)}ft=xn.viewport,tr=ft.x|0,pr=ft.y|0,gr="width"in ft?ft.width|0:xe.framebufferWidth-tr,Zr="height"in ft?ft.height|0:xe.framebufferHeight-pr,Ai=xe.viewportWidth,xe.viewportWidth=gr,Qi=xe.viewportHeight,xe.viewportHeight=Zr,Ie.viewport(tr,pr,gr,Zr),en[0]=tr,en[1]=pr,en[2]=gr,en[3]=Zr,Ie.blendColor(0,0,0,1),di[0]=0,di[1]=0,di[2]=0,di[3]=1,n?Ie.enable(3042):Ie.disable(3042),De.blend_enable=n,Ie.blendFuncSeparate(770,771,773,1),nn[0]=770,nn[1]=771,nn[2]=773,nn[3]=1,i?Ie.enable(2929):Ie.disable(2929),De.depth_enable=i,ni=xn.viewport,Zi=ni.x|0,aa=ni.y|0,Mn="width"in ni?ni.width|0:xe.framebufferWidth-Zi,Un="height"in ni?ni.height|0:xe.framebufferHeight-aa,Ie.scissor(Zi,aa,Mn,Un),Vi[0]=Zi,Vi[1]=aa,Vi[2]=Mn,Vi[3]=Un,a?Ie.enable(3089):Ie.disable(3089),De.scissor_enable=a,o?Ie.enable(2960):Ie.disable(2960),De.stencil_enable=o,Ga=De.profile,Ga&&(ma=performance.now(),r.count++),Ie.useProgram(s.program),oa=Hr.angle_instanced_arrays,It.setVAO(null),ka=u.call(this,xe,xn,0),so=!1,Kr=1,Ia=0,Yo=0,fa=0,kn=0,Ta=null,ys=0,uo=!1,ls=5126,$a=0,fo=0,mn=0,Mr(ka)?(so=!0,Ta=fe.createStream(34962,ka),ls=Ta.dtype):(Ta=fe.getBuffer(ka),Ta?ls=Ta.dtype:"constant"in ka?(Kr=2,typeof ka.constant=="number"?(Ia=ka.constant,Yo=fa=kn=0):(Ia=ka.constant.length>0?ka.constant[0]:0,Yo=ka.constant.length>1?ka.constant[1]:0,fa=ka.constant.length>2?ka.constant[2]:0,kn=ka.constant.length>3?ka.constant[3]:0)):(Mr(ka.buffer)?Ta=fe.createStream(34962,ka.buffer):Ta=fe.getBuffer(ka.buffer),ls="type"in ka?Fi[ka.type]:Ta.dtype,uo=!!ka.normalized,ys=ka.size|0,$a=ka.offset|0,fo=ka.stride|0,mn=ka.divisor|0)),ra=l.location,wa=dt[ra],Kr===1?(wa.buffer||Ie.enableVertexAttribArray(ra),ws=ys||4,(wa.type!==ls||wa.size!==ws||wa.buffer!==Ta||wa.normalized!==uo||wa.offset!==$a||wa.stride!==fo)&&(Ie.bindBuffer(34962,Ta.buffer),Ie.vertexAttribPointer(ra,ws,ls,uo,fo,$a),wa.type=ls,wa.size=ws,wa.buffer=Ta,wa.normalized=uo,wa.offset=$a,wa.stride=fo),wa.divisor!==mn&&(oa.vertexAttribDivisorANGLE(ra,mn),wa.divisor=mn)):(wa.buffer&&(Ie.disableVertexAttribArray(ra),wa.buffer=null),(wa.x!==Ia||wa.y!==Yo||wa.z!==fa||wa.w!==kn)&&(Ie.vertexAttrib4f(ra,Ia,Yo,fa,kn),wa.x=Ia,wa.y=Yo,wa.z=fa,wa.w=kn)),Co=f.call(this,xe,xn,0),Po=!1,ji=1,gn=0,Ps=0,Ha=0,Sn=0,ao=null,Ba=0,Ko=!1,Qo=5126,Wi=0,Sa=0,Qa=0,Mr(Co)?(Po=!0,ao=fe.createStream(34962,Co),Qo=ao.dtype):(ao=fe.getBuffer(Co),ao?Qo=ao.dtype:"constant"in Co?(ji=2,typeof Co.constant=="number"?(gn=Co.constant,Ps=Ha=Sn=0):(gn=Co.constant.length>0?Co.constant[0]:0,Ps=Co.constant.length>1?Co.constant[1]:0,Ha=Co.constant.length>2?Co.constant[2]:0,Sn=Co.constant.length>3?Co.constant[3]:0)):(Mr(Co.buffer)?ao=fe.createStream(34962,Co.buffer):ao=fe.getBuffer(Co.buffer),Qo="type"in Co?Fi[Co.type]:ao.dtype,Ko=!!Co.normalized,Ba=Co.size|0,Wi=Co.offset|0,Sa=Co.stride|0,Qa=Co.divisor|0)),vn=c.location,da=dt[vn],ji===1?(da.buffer||Ie.enableVertexAttribArray(vn),la=Ba||1,(da.type!==Qo||da.size!==la||da.buffer!==ao||da.normalized!==Ko||da.offset!==Wi||da.stride!==Sa)&&(Ie.bindBuffer(34962,ao.buffer),Ie.vertexAttribPointer(vn,la,Qo,Ko,Sa,Wi),da.type=Qo,da.size=la,da.buffer=ao,da.normalized=Ko,da.offset=Wi,da.stride=Sa),da.divisor!==Qa&&(oa.vertexAttribDivisorANGLE(vn,Qa),da.divisor=Qa)):(da.buffer&&(Ie.disableVertexAttribArray(vn),da.buffer=null),(da.x!==gn||da.y!==Ps||da.z!==Ha||da.w!==Sn)&&(Ie.vertexAttrib4f(vn,gn,Ps,Ha,Sn),da.x=gn,da.y=Ps,da.z=Ha,da.w=Sn)),vo=h.call(this,xe,xn,0),As=!1,ps=1,co=0,mo=0,No=0,jn=0,Go=null,Ys=0,qs=!1,Ns=5126,Oa=0,ha=0,Vs=0,Mr(vo)?(As=!0,Go=fe.createStream(34962,vo),Ns=Go.dtype):(Go=fe.getBuffer(vo),Go?Ns=Go.dtype:"constant"in vo?(ps=2,typeof vo.constant=="number"?(co=vo.constant,mo=No=jn=0):(co=vo.constant.length>0?vo.constant[0]:0,mo=vo.constant.length>1?vo.constant[1]:0,No=vo.constant.length>2?vo.constant[2]:0,jn=vo.constant.length>3?vo.constant[3]:0)):(Mr(vo.buffer)?Go=fe.createStream(34962,vo.buffer):Go=fe.getBuffer(vo.buffer),Ns="type"in vo?Fi[vo.type]:Go.dtype,qs=!!vo.normalized,Ys=vo.size|0,Oa=vo.offset|0,ha=vo.stride|0,Vs=vo.divisor|0)),Ya=d.location,_n=dt[Ya],ps===1?(_n.buffer||Ie.enableVertexAttribArray(Ya),Vn=Ys||4,(_n.type!==Ns||_n.size!==Vn||_n.buffer!==Go||_n.normalized!==qs||_n.offset!==Oa||_n.stride!==ha)&&(Ie.bindBuffer(34962,Go.buffer),Ie.vertexAttribPointer(Ya,Vn,Ns,qs,ha,Oa),_n.type=Ns,_n.size=Vn,_n.buffer=Go,_n.normalized=qs,_n.offset=Oa,_n.stride=ha),_n.divisor!==Vs&&(oa.vertexAttribDivisorANGLE(Ya,Vs),_n.divisor=Vs)):(_n.buffer&&(Ie.disableVertexAttribArray(Ya),_n.buffer=null),(_n.x!==co||_n.y!==mo||_n.z!==No||_n.w!==jn)&&(Ie.vertexAttrib4f(Ya,co,mo,No,jn),_n.x=co,_n.y=mo,_n.z=No,_n.w=jn)),wo=p.call(this,xe,xn,0),Ra=!1,Xn=1,un=0,$n=0,Ka=0,qn=0,Eo=null,Ja=0,lo=!1,eo=5126,sa=0,es=0,Na=0,Mr(wo)?(Ra=!0,Eo=fe.createStream(34962,wo),eo=Eo.dtype):(Eo=fe.getBuffer(wo),Eo?eo=Eo.dtype:"constant"in wo?(Xn=2,typeof wo.constant=="number"?(un=wo.constant,$n=Ka=qn=0):(un=wo.constant.length>0?wo.constant[0]:0,$n=wo.constant.length>1?wo.constant[1]:0,Ka=wo.constant.length>2?wo.constant[2]:0,qn=wo.constant.length>3?wo.constant[3]:0)):(Mr(wo.buffer)?Eo=fe.createStream(34962,wo.buffer):Eo=fe.getBuffer(wo.buffer),eo="type"in wo?Fi[wo.type]:Eo.dtype,lo=!!wo.normalized,Ja=wo.size|0,sa=wo.offset|0,es=wo.stride|0,Na=wo.divisor|0)),tn=x.location,Pa=dt[tn],Xn===1?(Pa.buffer||Ie.enableVertexAttribArray(tn),to=Ja||1,(Pa.type!==eo||Pa.size!==to||Pa.buffer!==Eo||Pa.normalized!==lo||Pa.offset!==sa||Pa.stride!==es)&&(Ie.bindBuffer(34962,Eo.buffer),Ie.vertexAttribPointer(tn,to,eo,lo,es,sa),Pa.type=eo,Pa.size=to,Pa.buffer=Eo,Pa.normalized=lo,Pa.offset=sa,Pa.stride=es),Pa.divisor!==Na&&(oa.vertexAttribDivisorANGLE(tn,Na),Pa.divisor=Na)):(Pa.buffer&&(Ie.disableVertexAttribArray(tn),Pa.buffer=null),(Pa.x!==un||Pa.y!==$n||Pa.z!==Ka||Pa.w!==qn)&&(Ie.vertexAttrib4f(tn,un,$n,Ka,qn),Pa.x=un,Pa.y=$n,Pa.z=Ka,Pa.w=qn)),yo=b.call(this,xe,xn,0),Jo=!1,Ao=1,Dn=0,_a=0,Ws=0,Ca=0,Es=null,Ts=0,Ho=!1,Wa=5126,To=0,ts=0,Wo=0,Mr(yo)?(Jo=!0,Es=fe.createStream(34962,yo),Wa=Es.dtype):(Es=fe.getBuffer(yo),Es?Wa=Es.dtype:"constant"in yo?(Ao=2,typeof yo.constant=="number"?(Dn=yo.constant,_a=Ws=Ca=0):(Dn=yo.constant.length>0?yo.constant[0]:0,_a=yo.constant.length>1?yo.constant[1]:0,Ws=yo.constant.length>2?yo.constant[2]:0,Ca=yo.constant.length>3?yo.constant[3]:0)):(Mr(yo.buffer)?Es=fe.createStream(34962,yo.buffer):Es=fe.getBuffer(yo.buffer),Wa="type"in yo?Fi[yo.type]:Es.dtype,Ho=!!yo.normalized,Ts=yo.size|0,To=yo.offset|0,ts=yo.stride|0,Wo=yo.divisor|0)),qa=v.location,ln=dt[qa],Ao===1?(ln.buffer||Ie.enableVertexAttribArray(qa),Bo=Ts||1,(ln.type!==Wa||ln.size!==Bo||ln.buffer!==Es||ln.normalized!==Ho||ln.offset!==To||ln.stride!==ts)&&(Ie.bindBuffer(34962,Es.buffer),Ie.vertexAttribPointer(qa,Bo,Wa,Ho,ts,To),ln.type=Wa,ln.size=Bo,ln.buffer=Es,ln.normalized=Ho,ln.offset=To,ln.stride=ts),ln.divisor!==Wo&&(oa.vertexAttribDivisorANGLE(qa,Wo),ln.divisor=Wo)):(ln.buffer&&(Ie.disableVertexAttribArray(qa),ln.buffer=null),(ln.x!==Dn||ln.y!==_a||ln.z!==Ws||ln.w!==Ca)&&(Ie.vertexAttrib4f(qa,Dn,_a,Ws,Ca),ln.x=Dn,ln.y=_a,ln.z=Ws,ln.w=Ca)),ko=k.call(this,xe,xn,0),oo=!1,za=1,ea=0,rs=0,$s=0,us=0,Ds=null,fl=0,as=!1,Ma=5126,Qs=0,ho=0,gs=0,Mr(ko)?(oo=!0,Ds=fe.createStream(34962,ko),Ma=Ds.dtype):(Ds=fe.getBuffer(ko),Ds?Ma=Ds.dtype:"constant"in ko?(za=2,typeof ko.constant=="number"?(ea=ko.constant,rs=$s=us=0):(ea=ko.constant.length>0?ko.constant[0]:0,rs=ko.constant.length>1?ko.constant[1]:0,$s=ko.constant.length>2?ko.constant[2]:0,us=ko.constant.length>3?ko.constant[3]:0)):(Mr(ko.buffer)?Ds=fe.createStream(34962,ko.buffer):Ds=fe.getBuffer(ko.buffer),Ma="type"in ko?Fi[ko.type]:Ds.dtype,as=!!ko.normalized,fl=ko.size|0,Qs=ko.offset|0,ho=ko.stride|0,gs=ko.divisor|0)),Vo=E.location,Do=dt[Vo],za===1?(Do.buffer||Ie.enableVertexAttribArray(Vo),Lo=fl||1,(Do.type!==Ma||Do.size!==Lo||Do.buffer!==Ds||Do.normalized!==as||Do.offset!==Qs||Do.stride!==ho)&&(Ie.bindBuffer(34962,Ds.buffer),Ie.vertexAttribPointer(Vo,Lo,Ma,as,ho,Qs),Do.type=Ma,Do.size=Lo,Do.buffer=Ds,Do.normalized=as,Do.offset=Qs,Do.stride=ho),Do.divisor!==gs&&(oa.vertexAttribDivisorANGLE(Vo,gs),Do.divisor=gs)):(Do.buffer&&(Ie.disableVertexAttribArray(Vo),Do.buffer=null),(Do.x!==ea||Do.y!==rs||Do.z!==$s||Do.w!==us)&&(Ie.vertexAttrib4f(Vo,ea,rs,$s,us),Do.x=ea,Do.y=rs,Do.z=$s,Do.w=us)),xs=T.call(this,xe,xn,0),ks=!1,Ea=1,Jn=0,Oo=0,rl=0,Gs=0,bs=null,zs=0,$o=!1,Aa=5126,os=0,_l=0,Ss=0,Mr(xs)?(ks=!0,bs=fe.createStream(34962,xs),Aa=bs.dtype):(bs=fe.getBuffer(xs),bs?Aa=bs.dtype:"constant"in xs?(Ea=2,typeof xs.constant=="number"?(Jn=xs.constant,Oo=rl=Gs=0):(Jn=xs.constant.length>0?xs.constant[0]:0,Oo=xs.constant.length>1?xs.constant[1]:0,rl=xs.constant.length>2?xs.constant[2]:0,Gs=xs.constant.length>3?xs.constant[3]:0)):(Mr(xs.buffer)?bs=fe.createStream(34962,xs.buffer):bs=fe.getBuffer(xs.buffer),Aa="type"in xs?Fi[xs.type]:bs.dtype,$o=!!xs.normalized,zs=xs.size|0,os=xs.offset|0,_l=xs.stride|0,Ss=xs.divisor|0)),po=L.location,go=dt[po],Ea===1?(go.buffer||Ie.enableVertexAttribArray(po),ss=zs||1,(go.type!==Aa||go.size!==ss||go.buffer!==bs||go.normalized!==$o||go.offset!==os||go.stride!==_l)&&(Ie.bindBuffer(34962,bs.buffer),Ie.vertexAttribPointer(po,ss,Aa,$o,_l,os),go.type=Aa,go.size=ss,go.buffer=bs,go.normalized=$o,go.offset=os,go.stride=_l),go.divisor!==Ss&&(oa.vertexAttribDivisorANGLE(po,Ss),go.divisor=Ss)):(go.buffer&&(Ie.disableVertexAttribArray(po),go.buffer=null),(go.x!==Jn||go.y!==Oo||go.z!==rl||go.w!==Gs)&&(Ie.vertexAttrib4f(po,Jn,Oo,rl,Gs),go.x=Jn,go.y=Oo,go.z=rl,go.w=Gs)),qo=_.call(this,xe,xn,0),zo=!1,io=1,Io=0,Da=0,vs=0,fs=0,cl=null,el=0,Hs=!1,Ro=5126,tl=0,Fs=0,hl=0,Mr(qo)?(zo=!0,cl=fe.createStream(34962,qo),Ro=cl.dtype):(cl=fe.getBuffer(qo),cl?Ro=cl.dtype:"constant"in qo?(io=2,typeof qo.constant=="number"?(Io=qo.constant,Da=vs=fs=0):(Io=qo.constant.length>0?qo.constant[0]:0,Da=qo.constant.length>1?qo.constant[1]:0,vs=qo.constant.length>2?qo.constant[2]:0,fs=qo.constant.length>3?qo.constant[3]:0)):(Mr(qo.buffer)?cl=fe.createStream(34962,qo.buffer):cl=fe.getBuffer(qo.buffer),Ro="type"in qo?Fi[qo.type]:cl.dtype,Hs=!!qo.normalized,el=qo.size|0,tl=qo.offset|0,Fs=qo.stride|0,hl=qo.divisor|0)),Fa=C.location,Ms=dt[Fa],io===1?(Ms.buffer||Ie.enableVertexAttribArray(Fa),jo=el||1,(Ms.type!==Ro||Ms.size!==jo||Ms.buffer!==cl||Ms.normalized!==Hs||Ms.offset!==tl||Ms.stride!==Fs)&&(Ie.bindBuffer(34962,cl.buffer),Ie.vertexAttribPointer(Fa,jo,Ro,Hs,Fs,tl),Ms.type=Ro,Ms.size=jo,Ms.buffer=cl,Ms.normalized=Hs,Ms.offset=tl,Ms.stride=Fs),Ms.divisor!==hl&&(oa.vertexAttribDivisorANGLE(Fa,hl),Ms.divisor=hl)):(Ms.buffer&&(Ie.disableVertexAttribArray(Fa),Ms.buffer=null),(Ms.x!==Io||Ms.y!==Da||Ms.z!==vs||Ms.w!==fs)&&(Ie.vertexAttrib4f(Fa,Io,Da,vs,fs),Ms.x=Io,Ms.y=Da,Ms.z=vs,Ms.w=fs)),Rs=S.call(this,xe,xn,0),Is=!1,Bs=1,At=0,Gt=0,wr=0,mr=0,Or=null,gi=0,Ti=!1,ki=5126,Ji=0,Fn=0,Pi=0,Mr(Rs)?(Is=!0,Or=fe.createStream(34962,Rs),ki=Or.dtype):(Or=fe.getBuffer(Rs),Or?ki=Or.dtype:"constant"in Rs?(Bs=2,typeof Rs.constant=="number"?(At=Rs.constant,Gt=wr=mr=0):(At=Rs.constant.length>0?Rs.constant[0]:0,Gt=Rs.constant.length>1?Rs.constant[1]:0,wr=Rs.constant.length>2?Rs.constant[2]:0,mr=Rs.constant.length>3?Rs.constant[3]:0)):(Mr(Rs.buffer)?Or=fe.createStream(34962,Rs.buffer):Or=fe.getBuffer(Rs.buffer),ki="type"in Rs?Fi[Rs.type]:Or.dtype,Ti=!!Rs.normalized,gi=Rs.size|0,Ji=Rs.offset|0,Fn=Rs.stride|0,Pi=Rs.divisor|0)),hi=m.location,Li=dt[hi],Bs===1?(Li.buffer||Ie.enableVertexAttribArray(hi),Si=gi||1,(Li.type!==ki||Li.size!==Si||Li.buffer!==Or||Li.normalized!==Ti||Li.offset!==Ji||Li.stride!==Fn)&&(Ie.bindBuffer(34962,Or.buffer),Ie.vertexAttribPointer(hi,Si,ki,Ti,Fn,Ji),Li.type=ki,Li.size=Si,Li.buffer=Or,Li.normalized=Ti,Li.offset=Ji,Li.stride=Fn),Li.divisor!==Pi&&(oa.vertexAttribDivisorANGLE(hi,Pi),Li.divisor=Pi)):(Li.buffer&&(Ie.disableVertexAttribArray(hi),Li.buffer=null),(Li.x!==At||Li.y!==Gt||Li.z!==wr||Li.w!==mr)&&(Ie.vertexAttrib4f(hi,At,Gt,wr,mr),Li.x=At,Li.y=Gt,Li.z=wr,Li.w=mr)),Ie.uniform1i(P.location,!1),Gn=xn.markerTexture,Gn&&Gn._reglType==="framebuffer"&&(Gn=Gn.color[0]),ta=Gn._texture,Ie.uniform1i(A.location,ta.bind()),ya=xn.opacity,Ie.uniform1f(B.location,ya),ia=U.call(this,xe,xn,0),pa=ia[0],va=ia[1],Ie.uniform2f(F.location,pa,va),Ie.uniform1i(G.location,j.bind()),zn=xe.pixelRatio,Ie.uniform1f(H.location,zn),is=xn.scale,Cs=is[0],Ks=is[1],Ie.uniform2f(N.location,Cs,Ks),dl=xn.scaleFract,xl=dl[0],Ol=dl[1],Ie.uniform2f(W.location,xl,Ol),bl=xn.translate,eu=bl[0],Zl=bl[1],Ie.uniform2f(re.location,eu,Zl),Vl=xn.translateFract,ja=Vl[0],ns=Vl[1],Ie.uniform2f(ae.location,ja,ns),Js=xn.elements,cs=null,sl=Mr(Js),sl?cs=ge.createStream(Js):cs=ge.getElements(Js),cs&&Ie.bindBuffer(34963,cs.buffer.buffer),ll=xn.offset,il=xn.count,il&&(zl=ct.instances,zl>0?cs?oa.drawElementsInstancedANGLE(0,il,cs.type,ll<<(cs.type-5121>>1),zl):oa.drawArraysInstancedANGLE(0,ll,il,zl):zl<0&&(cs?Ie.drawElements(0,il,cs.type,ll<<(cs.type-5121>>1)):Ie.drawArrays(0,ll,il)),De.dirty=!0,It.setVAO(null),xe.viewportWidth=Ai,xe.viewportHeight=Qi,Ga&&(r.cpuTime+=performance.now()-ma),so&&fe.destroyStream(Ta),Po&&fe.destroyStream(ao),As&&fe.destroyStream(Go),Ra&&fe.destroyStream(Eo),Jo&&fe.destroyStream(Es),oo&&fe.destroyStream(Ds),ks&&fe.destroyStream(bs),zo&&fe.destroyStream(cl),Is&&fe.destroyStream(Or),ta.unbind(),j.unbind(),sl&&ge.destroyStream(cs))},scope:function(xn,xi,Xr){var ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Ul,le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt,tt,pt,Ht,nr,fr,Ar,Rr,ri,si,Mi,hn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,ql,ou,Pu,iu,tu,Wu,Qu,Ju,ju,Xu,lf,xf,ef,tf,Z,se,ze,Xe,Qe,ot,jt,_t,cr,Cr,zr,ui,$r,Oi,fn,vi,zi,Xi,pn,sn,bi,xo,no,Xo,js,El,Pl,pu,Il,fu,Zu,Gu,rf,ds,Wl,Au,Tu,uf,df,Ef,vf;ft=xn.viewport,tr=ft.x|0,pr=ft.y|0,gr="width"in ft?ft.width|0:xe.framebufferWidth-tr,Zr="height"in ft?ft.height|0:xe.framebufferHeight-pr,Ai=xe.viewportWidth,xe.viewportWidth=gr,Qi=xe.viewportHeight,xe.viewportHeight=Zr,ni=ti[0],ti[0]=tr,Zi=ti[1],ti[1]=pr,aa=ti[2],ti[2]=gr,Mn=ti[3],ti[3]=Zr,Un=Fr[0],Fr[0]=be,Ga=Fr[1],Fr[1]=Ce,ma=Fr[2],Fr[2]=Le,oa=Fr[3],Fr[3]=pe,ka=Re.blend_enable,Re.blend_enable=te,so=Ci[0],Ci[0]=ke,Kr=Ci[1],Ci[1]=Ee,Ia=Ci[2],Ci[2]=Me,Yo=Ci[3],Ci[3]=Ne,fa=Re.depth_enable,Re.depth_enable=Fe,kn=xn.viewport,Ta=kn.x|0,ys=kn.y|0,uo="width"in kn?kn.width|0:xe.framebufferWidth-Ta,ls="height"in kn?kn.height|0:xe.framebufferHeight-ys,$a=Ei[0],Ei[0]=Ta,fo=Ei[1],Ei[1]=ys,mn=Ei[2],Ei[2]=uo,ra=Ei[3],Ei[3]=ls,wa=Re.scissor_enable,Re.scissor_enable=ye,ws=Re.stencil_enable,Re.stencil_enable=Ve,Co=De.profile,Co&&(Po=performance.now(),r.count++),ji=xn.elements,gn=null,Ps=Mr(ji),Ps?gn=ge.createStream(ji):gn=ge.getElements(ji),Ha=ct.elements,ct.elements=gn,Sn=xn.offset,ao=ct.offset,ct.offset=Sn,Ba=xn.count,Ko=ct.count,ct.count=Ba,Qo=ct.primitive,ct.primitive=ce,Wi=Pt[Je],Pt[Je]=!1,Sa=Pt[gt],Pt[gt]=nt,Qa=xn.opacity,vn=Pt[Nt],Pt[Nt]=Qa,da=U.call(this,xe,xn,Xr),la=Pt[it],Pt[it]=da,vo=xe.pixelRatio,As=Pt[Ye],Pt[Ye]=vo,ps=xn.scale,co=Pt[kt],Pt[kt]=ps,mo=xn.scaleFract,No=Pt[Tt],Pt[Tt]=mo,jn=xn.translate,Go=Pt[St],Pt[St]=jn,Ys=xn.translateFract,qs=Pt[Dt],Pt[Dt]=Ys,Ns=xn.markerTexture,Oa=Pt[Zt],Pt[Zt]=Ns,ha=k.call(this,xe,xn,Xr),Vs=!1,Ya=1,_n=0,Vn=0,wo=0,Ra=0,Xn=null,un=0,$n=!1,Ka=5126,qn=0,Eo=0,Ja=0,Mr(ha)?(Vs=!0,Xn=fe.createStream(34962,ha),Ka=Xn.dtype):(Xn=fe.getBuffer(ha),Xn?Ka=Xn.dtype:"constant"in ha?(Ya=2,typeof ha.constant=="number"?(_n=ha.constant,Vn=wo=Ra=0):(_n=ha.constant.length>0?ha.constant[0]:0,Vn=ha.constant.length>1?ha.constant[1]:0,wo=ha.constant.length>2?ha.constant[2]:0,Ra=ha.constant.length>3?ha.constant[3]:0)):(Mr(ha.buffer)?Xn=fe.createStream(34962,ha.buffer):Xn=fe.getBuffer(ha.buffer),Ka="type"in ha?Fi[ha.type]:Xn.dtype,$n=!!ha.normalized,un=ha.size|0,qn=ha.offset|0,Eo=ha.stride|0,Ja=ha.divisor|0)),lo=Et.state,Et.state=Ya,eo=Et.x,Et.x=_n,sa=Et.y,Et.y=Vn,es=Et.z,Et.z=wo,Na=Et.w,Et.w=Ra,tn=Et.buffer,Et.buffer=Xn,Pa=Et.size,Et.size=un,to=Et.normalized,Et.normalized=$n,yo=Et.type,Et.type=Ka,Jo=Et.offset,Et.offset=qn,Ao=Et.stride,Et.stride=Eo,Dn=Et.divisor,Et.divisor=Ja,_a=_.call(this,xe,xn,Xr),Ws=!1,Ca=1,Es=0,Ts=0,Ho=0,Wa=0,To=null,ts=0,Wo=!1,qa=5126,ln=0,Bo=0,ko=0,Mr(_a)?(Ws=!0,To=fe.createStream(34962,_a),qa=To.dtype):(To=fe.getBuffer(_a),To?qa=To.dtype:"constant"in _a?(Ca=2,typeof _a.constant=="number"?(Es=_a.constant,Ts=Ho=Wa=0):(Es=_a.constant.length>0?_a.constant[0]:0,Ts=_a.constant.length>1?_a.constant[1]:0,Ho=_a.constant.length>2?_a.constant[2]:0,Wa=_a.constant.length>3?_a.constant[3]:0)):(Mr(_a.buffer)?To=fe.createStream(34962,_a.buffer):To=fe.getBuffer(_a.buffer),qa="type"in _a?Fi[_a.type]:To.dtype,Wo=!!_a.normalized,ts=_a.size|0,ln=_a.offset|0,Bo=_a.stride|0,ko=_a.divisor|0)),oo=Ae.state,Ae.state=Ca,za=Ae.x,Ae.x=Es,ea=Ae.y,Ae.y=Ts,rs=Ae.z,Ae.z=Ho,$s=Ae.w,Ae.w=Wa,us=Ae.buffer,Ae.buffer=To,Ds=Ae.size,Ae.size=ts,fl=Ae.normalized,Ae.normalized=Wo,as=Ae.type,Ae.type=qa,Ma=Ae.offset,Ae.offset=ln,Qs=Ae.stride,Ae.stride=Bo,ho=Ae.divisor,Ae.divisor=ko,gs=T.call(this,xe,xn,Xr),Vo=!1,Do=1,Lo=0,xs=0,ks=0,Ea=0,Jn=null,Oo=0,rl=!1,Gs=5126,bs=0,zs=0,$o=0,Mr(gs)?(Vo=!0,Jn=fe.createStream(34962,gs),Gs=Jn.dtype):(Jn=fe.getBuffer(gs),Jn?Gs=Jn.dtype:"constant"in gs?(Do=2,typeof gs.constant=="number"?(Lo=gs.constant,xs=ks=Ea=0):(Lo=gs.constant.length>0?gs.constant[0]:0,xs=gs.constant.length>1?gs.constant[1]:0,ks=gs.constant.length>2?gs.constant[2]:0,Ea=gs.constant.length>3?gs.constant[3]:0)):(Mr(gs.buffer)?Jn=fe.createStream(34962,gs.buffer):Jn=fe.getBuffer(gs.buffer),Gs="type"in gs?Fi[gs.type]:Jn.dtype,rl=!!gs.normalized,Oo=gs.size|0,bs=gs.offset|0,zs=gs.stride|0,$o=gs.divisor|0)),Aa=at.state,at.state=Do,os=at.x,at.x=Lo,_l=at.y,at.y=xs,Ss=at.z,at.z=ks,po=at.w,at.w=Ea,go=at.buffer,at.buffer=Jn,ss=at.size,at.size=Oo,qo=at.normalized,at.normalized=rl,zo=at.type,at.type=Gs,io=at.offset,at.offset=bs,Io=at.stride,at.stride=zs,Da=at.divisor,at.divisor=$o,vs=S.call(this,xe,xn,Xr),fs=!1,cl=1,el=0,Hs=0,Ro=0,tl=0,Fs=null,hl=0,Fa=!1,Ms=5126,jo=0,Rs=0,Is=0,Mr(vs)?(fs=!0,Fs=fe.createStream(34962,vs),Ms=Fs.dtype):(Fs=fe.getBuffer(vs),Fs?Ms=Fs.dtype:"constant"in vs?(cl=2,typeof vs.constant=="number"?(el=vs.constant,Hs=Ro=tl=0):(el=vs.constant.length>0?vs.constant[0]:0,Hs=vs.constant.length>1?vs.constant[1]:0,Ro=vs.constant.length>2?vs.constant[2]:0,tl=vs.constant.length>3?vs.constant[3]:0)):(Mr(vs.buffer)?Fs=fe.createStream(34962,vs.buffer):Fs=fe.getBuffer(vs.buffer),Ms="type"in vs?Fi[vs.type]:Fs.dtype,Fa=!!vs.normalized,hl=vs.size|0,jo=vs.offset|0,Rs=vs.stride|0,Is=vs.divisor|0)),Bs=wt.state,wt.state=cl,At=wt.x,wt.x=el,Gt=wt.y,wt.y=Hs,wr=wt.z,wt.z=Ro,mr=wt.w,wt.w=tl,Or=wt.buffer,wt.buffer=Fs,gi=wt.size,wt.size=hl,Ti=wt.normalized,wt.normalized=Fa,ki=wt.type,wt.type=Ms,Ji=wt.offset,wt.offset=jo,Fn=wt.stride,wt.stride=Rs,Pi=wt.divisor,wt.divisor=Is,hi=b.call(this,xe,xn,Xr),Li=!1,Si=1,Gn=0,ta=0,ya=0,ia=0,pa=null,va=0,zn=!1,is=5126,Cs=0,Ks=0,dl=0,Mr(hi)?(Li=!0,pa=fe.createStream(34962,hi),is=pa.dtype):(pa=fe.getBuffer(hi),pa?is=pa.dtype:"constant"in hi?(Si=2,typeof hi.constant=="number"?(Gn=hi.constant,ta=ya=ia=0):(Gn=hi.constant.length>0?hi.constant[0]:0,ta=hi.constant.length>1?hi.constant[1]:0,ya=hi.constant.length>2?hi.constant[2]:0,ia=hi.constant.length>3?hi.constant[3]:0)):(Mr(hi.buffer)?pa=fe.createStream(34962,hi.buffer):pa=fe.getBuffer(hi.buffer),is="type"in hi?Fi[hi.type]:pa.dtype,zn=!!hi.normalized,va=hi.size|0,Cs=hi.offset|0,Ks=hi.stride|0,dl=hi.divisor|0)),xl=vt.state,vt.state=Si,Ol=vt.x,vt.x=Gn,bl=vt.y,vt.y=ta,eu=vt.z,vt.z=ya,Zl=vt.w,vt.w=ia,Vl=vt.buffer,vt.buffer=pa,ja=vt.size,vt.size=va,ns=vt.normalized,vt.normalized=zn,Js=vt.type,vt.type=is,cs=vt.offset,vt.offset=Cs,sl=vt.stride,vt.stride=Ks,ll=vt.divisor,vt.divisor=dl,il=f.call(this,xe,xn,Xr),zl=!1,Ml=1,Rl=0,Al=0,Ll=0,ms=0,Os=null,Xl=0,Gl=!1,Ul=5126,le=0,w=0,q=0,Mr(il)?(zl=!0,Os=fe.createStream(34962,il),Ul=Os.dtype):(Os=fe.getBuffer(il),Os?Ul=Os.dtype:"constant"in il?(Ml=2,typeof il.constant=="number"?(Rl=il.constant,Al=Ll=ms=0):(Rl=il.constant.length>0?il.constant[0]:0,Al=il.constant.length>1?il.constant[1]:0,Ll=il.constant.length>2?il.constant[2]:0,ms=il.constant.length>3?il.constant[3]:0)):(Mr(il.buffer)?Os=fe.createStream(34962,il.buffer):Os=fe.getBuffer(il.buffer),Ul="type"in il?Fi[il.type]:Os.dtype,Gl=!!il.normalized,Xl=il.size|0,le=il.offset|0,w=il.stride|0,q=il.divisor|0)),Q=st.state,st.state=Ml,ee=st.x,st.x=Rl,ue=st.y,st.y=Al,Ge=st.z,st.z=Ll,et=st.w,st.w=ms,mt=st.buffer,st.buffer=Os,Ft=st.size,st.size=Xl,ir=st.normalized,st.normalized=Gl,or=st.type,st.type=Ul,kr=st.offset,st.offset=le,Vr=st.stride,st.stride=w,he=st.divisor,st.divisor=q,Se=h.call(this,xe,xn,Xr),qe=!1,He=1,lt=0,tt=0,pt=0,Ht=0,nr=null,fr=0,Ar=!1,Rr=5126,ri=0,si=0,Mi=0,Mr(Se)?(qe=!0,nr=fe.createStream(34962,Se),Rr=nr.dtype):(nr=fe.getBuffer(Se),nr?Rr=nr.dtype:"constant"in Se?(He=2,typeof Se.constant=="number"?(lt=Se.constant,tt=pt=Ht=0):(lt=Se.constant.length>0?Se.constant[0]:0,tt=Se.constant.length>1?Se.constant[1]:0,pt=Se.constant.length>2?Se.constant[2]:0,Ht=Se.constant.length>3?Se.constant[3]:0)):(Mr(Se.buffer)?nr=fe.createStream(34962,Se.buffer):nr=fe.getBuffer(Se.buffer),Rr="type"in Se?Fi[Se.type]:nr.dtype,Ar=!!Se.normalized,fr=Se.size|0,ri=Se.offset|0,si=Se.stride|0,Mi=Se.divisor|0)),hn=Ue.state,Ue.state=He,Zn=Ue.x,Ue.x=lt,Yn=Ue.y,Ue.y=tt,Ua=Ue.z,Ue.z=pt,Fo=Ue.w,Ue.w=Ht,vl=Ue.buffer,Ue.buffer=nr,Us=Ue.size,Ue.size=fr,ml=Ue.normalized,Ue.normalized=Ar,au=Ue.type,Ue.type=Rr,Sl=Ue.offset,Ue.offset=ri,Yl=Ue.stride,Ue.stride=si,ql=Ue.divisor,Ue.divisor=Mi,ou=u.call(this,xe,xn,Xr),Pu=!1,iu=1,tu=0,Wu=0,Qu=0,Ju=0,ju=null,Xu=0,lf=!1,xf=5126,ef=0,tf=0,Z=0,Mr(ou)?(Pu=!0,ju=fe.createStream(34962,ou),xf=ju.dtype):(ju=fe.getBuffer(ou),ju?xf=ju.dtype:"constant"in ou?(iu=2,typeof ou.constant=="number"?(tu=ou.constant,Wu=Qu=Ju=0):(tu=ou.constant.length>0?ou.constant[0]:0,Wu=ou.constant.length>1?ou.constant[1]:0,Qu=ou.constant.length>2?ou.constant[2]:0,Ju=ou.constant.length>3?ou.constant[3]:0)):(Mr(ou.buffer)?ju=fe.createStream(34962,ou.buffer):ju=fe.getBuffer(ou.buffer),xf="type"in ou?Fi[ou.type]:ju.dtype,lf=!!ou.normalized,Xu=ou.size|0,ef=ou.offset|0,tf=ou.stride|0,Z=ou.divisor|0)),se=rt.state,rt.state=iu,ze=rt.x,rt.x=tu,Xe=rt.y,rt.y=Wu,Qe=rt.z,rt.z=Qu,ot=rt.w,rt.w=Ju,jt=rt.buffer,rt.buffer=ju,_t=rt.size,rt.size=Xu,cr=rt.normalized,rt.normalized=lf,Cr=rt.type,rt.type=xf,zr=rt.offset,rt.offset=ef,ui=rt.stride,rt.stride=tf,$r=rt.divisor,rt.divisor=Z,Oi=p.call(this,xe,xn,Xr),fn=!1,vi=1,zi=0,Xi=0,pn=0,sn=0,bi=null,xo=0,no=!1,Xo=5126,js=0,El=0,Pl=0,Mr(Oi)?(fn=!0,bi=fe.createStream(34962,Oi),Xo=bi.dtype):(bi=fe.getBuffer(Oi),bi?Xo=bi.dtype:"constant"in Oi?(vi=2,typeof Oi.constant=="number"?(zi=Oi.constant,Xi=pn=sn=0):(zi=Oi.constant.length>0?Oi.constant[0]:0,Xi=Oi.constant.length>1?Oi.constant[1]:0,pn=Oi.constant.length>2?Oi.constant[2]:0,sn=Oi.constant.length>3?Oi.constant[3]:0)):(Mr(Oi.buffer)?bi=fe.createStream(34962,Oi.buffer):bi=fe.getBuffer(Oi.buffer),Xo="type"in Oi?Fi[Oi.type]:bi.dtype,no=!!Oi.normalized,xo=Oi.size|0,js=Oi.offset|0,El=Oi.stride|0,Pl=Oi.divisor|0)),pu=$e.state,$e.state=vi,Il=$e.x,$e.x=zi,fu=$e.y,$e.y=Xi,Zu=$e.z,$e.z=pn,Gu=$e.w,$e.w=sn,rf=$e.buffer,$e.buffer=bi,ds=$e.size,$e.size=xo,Wl=$e.normalized,$e.normalized=no,Au=$e.type,$e.type=Xo,Tu=$e.offset,$e.offset=js,uf=$e.stride,$e.stride=El,df=$e.divisor,$e.divisor=Pl,Ef=de.vert,de.vert=zt,vf=de.frag,de.frag=Yt,De.dirty=!0,xi(xe,xn,Xr),xe.viewportWidth=Ai,xe.viewportHeight=Qi,ti[0]=ni,ti[1]=Zi,ti[2]=aa,ti[3]=Mn,Fr[0]=Un,Fr[1]=Ga,Fr[2]=ma,Fr[3]=oa,Re.blend_enable=ka,Ci[0]=so,Ci[1]=Kr,Ci[2]=Ia,Ci[3]=Yo,Re.depth_enable=fa,Ei[0]=$a,Ei[1]=fo,Ei[2]=mn,Ei[3]=ra,Re.scissor_enable=wa,Re.stencil_enable=ws,Co&&(r.cpuTime+=performance.now()-Po),Ps&&ge.destroyStream(gn),ct.elements=Ha,ct.offset=ao,ct.count=Ko,ct.primitive=Qo,Pt[Je]=Wi,Pt[gt]=Sa,Pt[Nt]=vn,Pt[it]=la,Pt[Ye]=As,Pt[kt]=co,Pt[Tt]=No,Pt[St]=Go,Pt[Dt]=qs,Pt[Zt]=Oa,Vs&&fe.destroyStream(Xn),Et.state=lo,Et.x=eo,Et.y=sa,Et.z=es,Et.w=Na,Et.buffer=tn,Et.size=Pa,Et.normalized=to,Et.type=yo,Et.offset=Jo,Et.stride=Ao,Et.divisor=Dn,Ws&&fe.destroyStream(To),Ae.state=oo,Ae.x=za,Ae.y=ea,Ae.z=rs,Ae.w=$s,Ae.buffer=us,Ae.size=Ds,Ae.normalized=fl,Ae.type=as,Ae.offset=Ma,Ae.stride=Qs,Ae.divisor=ho,Vo&&fe.destroyStream(Jn),at.state=Aa,at.x=os,at.y=_l,at.z=Ss,at.w=po,at.buffer=go,at.size=ss,at.normalized=qo,at.type=zo,at.offset=io,at.stride=Io,at.divisor=Da,fs&&fe.destroyStream(Fs),wt.state=Bs,wt.x=At,wt.y=Gt,wt.z=wr,wt.w=mr,wt.buffer=Or,wt.size=gi,wt.normalized=Ti,wt.type=ki,wt.offset=Ji,wt.stride=Fn,wt.divisor=Pi,Li&&fe.destroyStream(pa),vt.state=xl,vt.x=Ol,vt.y=bl,vt.z=eu,vt.w=Zl,vt.buffer=Vl,vt.size=ja,vt.normalized=ns,vt.type=Js,vt.offset=cs,vt.stride=sl,vt.divisor=ll,zl&&fe.destroyStream(Os),st.state=Q,st.x=ee,st.y=ue,st.z=Ge,st.w=et,st.buffer=mt,st.size=Ft,st.normalized=ir,st.type=or,st.offset=kr,st.stride=Vr,st.divisor=he,qe&&fe.destroyStream(nr),Ue.state=hn,Ue.x=Zn,Ue.y=Yn,Ue.z=Ua,Ue.w=Fo,Ue.buffer=vl,Ue.size=Us,Ue.normalized=ml,Ue.type=au,Ue.offset=Sl,Ue.stride=Yl,Ue.divisor=ql,Pu&&fe.destroyStream(ju),rt.state=se,rt.x=ze,rt.y=Xe,rt.z=Qe,rt.w=ot,rt.buffer=jt,rt.size=_t,rt.normalized=cr,rt.type=Cr,rt.offset=zr,rt.stride=ui,rt.divisor=$r,fn&&fe.destroyStream(bi),$e.state=pu,$e.x=Il,$e.y=fu,$e.z=Zu,$e.w=Gu,$e.buffer=rf,$e.size=ds,$e.normalized=Wl,$e.type=Au,$e.offset=Tu,$e.stride=uf,$e.divisor=df,de.vert=Ef,de.frag=vf,De.dirty=!0},batch:function(xn,xi){var Xr,ft,tr,pr,gr,Zr,Ai;if(Xr=Hr.angle_instanced_arrays,ft=rr.next,ft!==rr.cur&&(ft?Ie.bindFramebuffer(36160,ft.framebuffer):Ie.bindFramebuffer(36160,null),rr.cur=ft),De.dirty){var Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao;Qi=Re.dither,Qi!==De.dither&&(Qi?Ie.enable(3024):Ie.disable(3024),De.dither=Qi),ni=Di[0],Zi=Di[1],(ni!==Ii[0]||Zi!==Ii[1])&&(Ie.blendEquationSeparate(ni,Zi),Ii[0]=ni,Ii[1]=Zi),aa=Re.depth_func,aa!==De.depth_func&&(Ie.depthFunc(aa),De.depth_func=aa),Mn=ii[0],Un=ii[1],(Mn!==wi[0]||Un!==wi[1])&&(Ie.depthRange(Mn,Un),wi[0]=Mn,wi[1]=Un),Ga=Re.depth_mask,Ga!==De.depth_mask&&(Ie.depthMask(Ga),De.depth_mask=Ga),ma=Gi[0],oa=Gi[1],ka=Gi[2],so=Gi[3],(ma!==Bt[0]||oa!==Bt[1]||ka!==Bt[2]||so!==Bt[3])&&(Ie.colorMask(ma,oa,ka,so),Bt[0]=ma,Bt[1]=oa,Bt[2]=ka,Bt[3]=so),Kr=Re.cull_enable,Kr!==De.cull_enable&&(Kr?Ie.enable(2884):Ie.disable(2884),De.cull_enable=Kr),Ia=Re.cull_face,Ia!==De.cull_face&&(Ie.cullFace(Ia),De.cull_face=Ia),Yo=Re.frontFace,Yo!==De.frontFace&&(Ie.frontFace(Yo),De.frontFace=Yo),fa=Re.lineWidth,fa!==De.lineWidth&&(Ie.lineWidth(fa),De.lineWidth=fa),kn=Re.polygonOffset_enable,kn!==De.polygonOffset_enable&&(kn?Ie.enable(32823):Ie.disable(32823),De.polygonOffset_enable=kn),Ta=yt[0],ys=yt[1],(Ta!==Vt[0]||ys!==Vt[1])&&(Ie.polygonOffset(Ta,ys),Vt[0]=Ta,Vt[1]=ys),uo=Re.sample_alpha,uo!==De.sample_alpha&&(uo?Ie.enable(32926):Ie.disable(32926),De.sample_alpha=uo),ls=Re.sample_enable,ls!==De.sample_enable&&(ls?Ie.enable(32928):Ie.disable(32928),De.sample_enable=ls),$a=Wt[0],fo=Wt[1],($a!==_r[0]||fo!==_r[1])&&(Ie.sampleCoverage($a,fo),_r[0]=$a,_r[1]=fo),mn=Re.stencil_mask,mn!==De.stencil_mask&&(Ie.stencilMask(mn),De.stencil_mask=mn),ra=Lr[0],wa=Lr[1],ws=Lr[2],(ra!==Ur[0]||wa!==Ur[1]||ws!==Ur[2])&&(Ie.stencilFunc(ra,wa,ws),Ur[0]=ra,Ur[1]=wa,Ur[2]=ws),Co=Ir[0],Po=Ir[1],ji=Ir[2],gn=Ir[3],(Co!==Gr[0]||Po!==Gr[1]||ji!==Gr[2]||gn!==Gr[3])&&(Ie.stencilOpSeparate(Co,Po,ji,gn),Gr[0]=Co,Gr[1]=Po,Gr[2]=ji,Gr[3]=gn),Ps=jr[0],Ha=jr[1],Sn=jr[2],ao=jr[3],(Ps!==yi[0]||Ha!==yi[1]||Sn!==yi[2]||ao!==yi[3])&&(Ie.stencilOpSeparate(Ps,Ha,Sn,ao),yi[0]=Ps,yi[1]=Ha,yi[2]=Sn,yi[3]=ao)}Ie.blendColor(0,0,0,1),di[0]=0,di[1]=0,di[2]=0,di[3]=1,hr?Ie.enable(3042):Ie.disable(3042),De.blend_enable=hr,Ie.blendFuncSeparate(770,771,773,1),nn[0]=770,nn[1]=771,nn[2]=773,nn[3]=1,yr?Ie.enable(2929):Ie.disable(2929),De.depth_enable=yr,br?Ie.enable(3089):Ie.disable(3089),De.scissor_enable=br,Ut?Ie.enable(2960):Ie.disable(2960),De.stencil_enable=Ut,tr=De.profile,tr&&(pr=performance.now(),r.count+=xi),Ie.useProgram(s.program),gr=Hr.angle_instanced_arrays;var Ba;for(It.setVAO(null),Ie.uniform1i(P.location,!1),Ie.uniform1i(G.location,j.bind()),Ba=ct.instances,Zr=0;Zr0?mo.constant[0]:0,Ys=mo.constant.length>1?mo.constant[1]:0,qs=mo.constant.length>2?mo.constant[2]:0,Ns=mo.constant.length>3?mo.constant[3]:0)):(Mr(mo.buffer)?Oa=fe.createStream(34962,mo.buffer):Oa=fe.getBuffer(mo.buffer),Ya="type"in mo?Fi[mo.type]:Oa.dtype,Vs=!!mo.normalized,ha=mo.size|0,_n=mo.offset|0,Vn=mo.stride|0,wo=mo.divisor|0)),Ra=l.location,Xn=dt[Ra],jn===1?(Xn.buffer||Ie.enableVertexAttribArray(Ra),un=ha||4,(Xn.type!==Ya||Xn.size!==un||Xn.buffer!==Oa||Xn.normalized!==Vs||Xn.offset!==_n||Xn.stride!==Vn)&&(Ie.bindBuffer(34962,Oa.buffer),Ie.vertexAttribPointer(Ra,un,Ya,Vs,Vn,_n),Xn.type=Ya,Xn.size=un,Xn.buffer=Oa,Xn.normalized=Vs,Xn.offset=_n,Xn.stride=Vn),Xn.divisor!==wo&&(gr.vertexAttribDivisorANGLE(Ra,wo),Xn.divisor=wo)):(Xn.buffer&&(Ie.disableVertexAttribArray(Ra),Xn.buffer=null),(Xn.x!==Go||Xn.y!==Ys||Xn.z!==qs||Xn.w!==Ns)&&(Ie.vertexAttrib4f(Ra,Go,Ys,qs,Ns),Xn.x=Go,Xn.y=Ys,Xn.z=qs,Xn.w=Ns)),$n=f.call(this,xe,Ai,Zr),Ka=!1,qn=1,Eo=0,Ja=0,lo=0,eo=0,sa=null,es=0,Na=!1,tn=5126,Pa=0,to=0,yo=0,Mr($n)?(Ka=!0,sa=fe.createStream(34962,$n),tn=sa.dtype):(sa=fe.getBuffer($n),sa?tn=sa.dtype:"constant"in $n?(qn=2,typeof $n.constant=="number"?(Eo=$n.constant,Ja=lo=eo=0):(Eo=$n.constant.length>0?$n.constant[0]:0,Ja=$n.constant.length>1?$n.constant[1]:0,lo=$n.constant.length>2?$n.constant[2]:0,eo=$n.constant.length>3?$n.constant[3]:0)):(Mr($n.buffer)?sa=fe.createStream(34962,$n.buffer):sa=fe.getBuffer($n.buffer),tn="type"in $n?Fi[$n.type]:sa.dtype,Na=!!$n.normalized,es=$n.size|0,Pa=$n.offset|0,to=$n.stride|0,yo=$n.divisor|0)),Jo=c.location,Ao=dt[Jo],qn===1?(Ao.buffer||Ie.enableVertexAttribArray(Jo),Dn=es||1,(Ao.type!==tn||Ao.size!==Dn||Ao.buffer!==sa||Ao.normalized!==Na||Ao.offset!==Pa||Ao.stride!==to)&&(Ie.bindBuffer(34962,sa.buffer),Ie.vertexAttribPointer(Jo,Dn,tn,Na,to,Pa),Ao.type=tn,Ao.size=Dn,Ao.buffer=sa,Ao.normalized=Na,Ao.offset=Pa,Ao.stride=to),Ao.divisor!==yo&&(gr.vertexAttribDivisorANGLE(Jo,yo),Ao.divisor=yo)):(Ao.buffer&&(Ie.disableVertexAttribArray(Jo),Ao.buffer=null),(Ao.x!==Eo||Ao.y!==Ja||Ao.z!==lo||Ao.w!==eo)&&(Ie.vertexAttrib4f(Jo,Eo,Ja,lo,eo),Ao.x=Eo,Ao.y=Ja,Ao.z=lo,Ao.w=eo)),_a=h.call(this,xe,Ai,Zr),Ws=!1,Ca=1,Es=0,Ts=0,Ho=0,Wa=0,To=null,ts=0,Wo=!1,qa=5126,ln=0,Bo=0,ko=0,Mr(_a)?(Ws=!0,To=fe.createStream(34962,_a),qa=To.dtype):(To=fe.getBuffer(_a),To?qa=To.dtype:"constant"in _a?(Ca=2,typeof _a.constant=="number"?(Es=_a.constant,Ts=Ho=Wa=0):(Es=_a.constant.length>0?_a.constant[0]:0,Ts=_a.constant.length>1?_a.constant[1]:0,Ho=_a.constant.length>2?_a.constant[2]:0,Wa=_a.constant.length>3?_a.constant[3]:0)):(Mr(_a.buffer)?To=fe.createStream(34962,_a.buffer):To=fe.getBuffer(_a.buffer),qa="type"in _a?Fi[_a.type]:To.dtype,Wo=!!_a.normalized,ts=_a.size|0,ln=_a.offset|0,Bo=_a.stride|0,ko=_a.divisor|0)),oo=d.location,za=dt[oo],Ca===1?(za.buffer||Ie.enableVertexAttribArray(oo),ea=ts||4,(za.type!==qa||za.size!==ea||za.buffer!==To||za.normalized!==Wo||za.offset!==ln||za.stride!==Bo)&&(Ie.bindBuffer(34962,To.buffer),Ie.vertexAttribPointer(oo,ea,qa,Wo,Bo,ln),za.type=qa,za.size=ea,za.buffer=To,za.normalized=Wo,za.offset=ln,za.stride=Bo),za.divisor!==ko&&(gr.vertexAttribDivisorANGLE(oo,ko),za.divisor=ko)):(za.buffer&&(Ie.disableVertexAttribArray(oo),za.buffer=null),(za.x!==Es||za.y!==Ts||za.z!==Ho||za.w!==Wa)&&(Ie.vertexAttrib4f(oo,Es,Ts,Ho,Wa),za.x=Es,za.y=Ts,za.z=Ho,za.w=Wa)),rs=p.call(this,xe,Ai,Zr),$s=!1,us=1,Ds=0,fl=0,as=0,Ma=0,Qs=null,ho=0,gs=!1,Vo=5126,Do=0,Lo=0,xs=0,Mr(rs)?($s=!0,Qs=fe.createStream(34962,rs),Vo=Qs.dtype):(Qs=fe.getBuffer(rs),Qs?Vo=Qs.dtype:"constant"in rs?(us=2,typeof rs.constant=="number"?(Ds=rs.constant,fl=as=Ma=0):(Ds=rs.constant.length>0?rs.constant[0]:0,fl=rs.constant.length>1?rs.constant[1]:0,as=rs.constant.length>2?rs.constant[2]:0,Ma=rs.constant.length>3?rs.constant[3]:0)):(Mr(rs.buffer)?Qs=fe.createStream(34962,rs.buffer):Qs=fe.getBuffer(rs.buffer),Vo="type"in rs?Fi[rs.type]:Qs.dtype,gs=!!rs.normalized,ho=rs.size|0,Do=rs.offset|0,Lo=rs.stride|0,xs=rs.divisor|0)),ks=x.location,Ea=dt[ks],us===1?(Ea.buffer||Ie.enableVertexAttribArray(ks),Jn=ho||1,(Ea.type!==Vo||Ea.size!==Jn||Ea.buffer!==Qs||Ea.normalized!==gs||Ea.offset!==Do||Ea.stride!==Lo)&&(Ie.bindBuffer(34962,Qs.buffer),Ie.vertexAttribPointer(ks,Jn,Vo,gs,Lo,Do),Ea.type=Vo,Ea.size=Jn,Ea.buffer=Qs,Ea.normalized=gs,Ea.offset=Do,Ea.stride=Lo),Ea.divisor!==xs&&(gr.vertexAttribDivisorANGLE(ks,xs),Ea.divisor=xs)):(Ea.buffer&&(Ie.disableVertexAttribArray(ks),Ea.buffer=null),(Ea.x!==Ds||Ea.y!==fl||Ea.z!==as||Ea.w!==Ma)&&(Ie.vertexAttrib4f(ks,Ds,fl,as,Ma),Ea.x=Ds,Ea.y=fl,Ea.z=as,Ea.w=Ma)),Oo=b.call(this,xe,Ai,Zr),rl=!1,Gs=1,bs=0,zs=0,$o=0,Aa=0,os=null,_l=0,Ss=!1,po=5126,go=0,ss=0,qo=0,Mr(Oo)?(rl=!0,os=fe.createStream(34962,Oo),po=os.dtype):(os=fe.getBuffer(Oo),os?po=os.dtype:"constant"in Oo?(Gs=2,typeof Oo.constant=="number"?(bs=Oo.constant,zs=$o=Aa=0):(bs=Oo.constant.length>0?Oo.constant[0]:0,zs=Oo.constant.length>1?Oo.constant[1]:0,$o=Oo.constant.length>2?Oo.constant[2]:0,Aa=Oo.constant.length>3?Oo.constant[3]:0)):(Mr(Oo.buffer)?os=fe.createStream(34962,Oo.buffer):os=fe.getBuffer(Oo.buffer),po="type"in Oo?Fi[Oo.type]:os.dtype,Ss=!!Oo.normalized,_l=Oo.size|0,go=Oo.offset|0,ss=Oo.stride|0,qo=Oo.divisor|0)),zo=v.location,io=dt[zo],Gs===1?(io.buffer||Ie.enableVertexAttribArray(zo),Io=_l||1,(io.type!==po||io.size!==Io||io.buffer!==os||io.normalized!==Ss||io.offset!==go||io.stride!==ss)&&(Ie.bindBuffer(34962,os.buffer),Ie.vertexAttribPointer(zo,Io,po,Ss,ss,go),io.type=po,io.size=Io,io.buffer=os,io.normalized=Ss,io.offset=go,io.stride=ss),io.divisor!==qo&&(gr.vertexAttribDivisorANGLE(zo,qo),io.divisor=qo)):(io.buffer&&(Ie.disableVertexAttribArray(zo),io.buffer=null),(io.x!==bs||io.y!==zs||io.z!==$o||io.w!==Aa)&&(Ie.vertexAttrib4f(zo,bs,zs,$o,Aa),io.x=bs,io.y=zs,io.z=$o,io.w=Aa)),Da=k.call(this,xe,Ai,Zr),vs=!1,fs=1,cl=0,el=0,Hs=0,Ro=0,tl=null,Fs=0,hl=!1,Fa=5126,Ms=0,jo=0,Rs=0,Mr(Da)?(vs=!0,tl=fe.createStream(34962,Da),Fa=tl.dtype):(tl=fe.getBuffer(Da),tl?Fa=tl.dtype:"constant"in Da?(fs=2,typeof Da.constant=="number"?(cl=Da.constant,el=Hs=Ro=0):(cl=Da.constant.length>0?Da.constant[0]:0,el=Da.constant.length>1?Da.constant[1]:0,Hs=Da.constant.length>2?Da.constant[2]:0,Ro=Da.constant.length>3?Da.constant[3]:0)):(Mr(Da.buffer)?tl=fe.createStream(34962,Da.buffer):tl=fe.getBuffer(Da.buffer),Fa="type"in Da?Fi[Da.type]:tl.dtype,hl=!!Da.normalized,Fs=Da.size|0,Ms=Da.offset|0,jo=Da.stride|0,Rs=Da.divisor|0)),Is=E.location,Bs=dt[Is],fs===1?(Bs.buffer||Ie.enableVertexAttribArray(Is),At=Fs||1,(Bs.type!==Fa||Bs.size!==At||Bs.buffer!==tl||Bs.normalized!==hl||Bs.offset!==Ms||Bs.stride!==jo)&&(Ie.bindBuffer(34962,tl.buffer),Ie.vertexAttribPointer(Is,At,Fa,hl,jo,Ms),Bs.type=Fa,Bs.size=At,Bs.buffer=tl,Bs.normalized=hl,Bs.offset=Ms,Bs.stride=jo),Bs.divisor!==Rs&&(gr.vertexAttribDivisorANGLE(Is,Rs),Bs.divisor=Rs)):(Bs.buffer&&(Ie.disableVertexAttribArray(Is),Bs.buffer=null),(Bs.x!==cl||Bs.y!==el||Bs.z!==Hs||Bs.w!==Ro)&&(Ie.vertexAttrib4f(Is,cl,el,Hs,Ro),Bs.x=cl,Bs.y=el,Bs.z=Hs,Bs.w=Ro)),Gt=T.call(this,xe,Ai,Zr),wr=!1,mr=1,Or=0,gi=0,Ti=0,ki=0,Ji=null,Fn=0,Pi=!1,hi=5126,Li=0,Si=0,Gn=0,Mr(Gt)?(wr=!0,Ji=fe.createStream(34962,Gt),hi=Ji.dtype):(Ji=fe.getBuffer(Gt),Ji?hi=Ji.dtype:"constant"in Gt?(mr=2,typeof Gt.constant=="number"?(Or=Gt.constant,gi=Ti=ki=0):(Or=Gt.constant.length>0?Gt.constant[0]:0,gi=Gt.constant.length>1?Gt.constant[1]:0,Ti=Gt.constant.length>2?Gt.constant[2]:0,ki=Gt.constant.length>3?Gt.constant[3]:0)):(Mr(Gt.buffer)?Ji=fe.createStream(34962,Gt.buffer):Ji=fe.getBuffer(Gt.buffer),hi="type"in Gt?Fi[Gt.type]:Ji.dtype,Pi=!!Gt.normalized,Fn=Gt.size|0,Li=Gt.offset|0,Si=Gt.stride|0,Gn=Gt.divisor|0)),ta=L.location,ya=dt[ta],mr===1?(ya.buffer||Ie.enableVertexAttribArray(ta),ia=Fn||1,(ya.type!==hi||ya.size!==ia||ya.buffer!==Ji||ya.normalized!==Pi||ya.offset!==Li||ya.stride!==Si)&&(Ie.bindBuffer(34962,Ji.buffer),Ie.vertexAttribPointer(ta,ia,hi,Pi,Si,Li),ya.type=hi,ya.size=ia,ya.buffer=Ji,ya.normalized=Pi,ya.offset=Li,ya.stride=Si),ya.divisor!==Gn&&(gr.vertexAttribDivisorANGLE(ta,Gn),ya.divisor=Gn)):(ya.buffer&&(Ie.disableVertexAttribArray(ta),ya.buffer=null),(ya.x!==Or||ya.y!==gi||ya.z!==Ti||ya.w!==ki)&&(Ie.vertexAttrib4f(ta,Or,gi,Ti,ki),ya.x=Or,ya.y=gi,ya.z=Ti,ya.w=ki)),pa=_.call(this,xe,Ai,Zr),va=!1,zn=1,is=0,Cs=0,Ks=0,dl=0,xl=null,Ol=0,bl=!1,eu=5126,Zl=0,Vl=0,ja=0,Mr(pa)?(va=!0,xl=fe.createStream(34962,pa),eu=xl.dtype):(xl=fe.getBuffer(pa),xl?eu=xl.dtype:"constant"in pa?(zn=2,typeof pa.constant=="number"?(is=pa.constant,Cs=Ks=dl=0):(is=pa.constant.length>0?pa.constant[0]:0,Cs=pa.constant.length>1?pa.constant[1]:0,Ks=pa.constant.length>2?pa.constant[2]:0,dl=pa.constant.length>3?pa.constant[3]:0)):(Mr(pa.buffer)?xl=fe.createStream(34962,pa.buffer):xl=fe.getBuffer(pa.buffer),eu="type"in pa?Fi[pa.type]:xl.dtype,bl=!!pa.normalized,Ol=pa.size|0,Zl=pa.offset|0,Vl=pa.stride|0,ja=pa.divisor|0)),ns=C.location,Js=dt[ns],zn===1?(Js.buffer||Ie.enableVertexAttribArray(ns),cs=Ol||1,(Js.type!==eu||Js.size!==cs||Js.buffer!==xl||Js.normalized!==bl||Js.offset!==Zl||Js.stride!==Vl)&&(Ie.bindBuffer(34962,xl.buffer),Ie.vertexAttribPointer(ns,cs,eu,bl,Vl,Zl),Js.type=eu,Js.size=cs,Js.buffer=xl,Js.normalized=bl,Js.offset=Zl,Js.stride=Vl),Js.divisor!==ja&&(gr.vertexAttribDivisorANGLE(ns,ja),Js.divisor=ja)):(Js.buffer&&(Ie.disableVertexAttribArray(ns),Js.buffer=null),(Js.x!==is||Js.y!==Cs||Js.z!==Ks||Js.w!==dl)&&(Ie.vertexAttrib4f(ns,is,Cs,Ks,dl),Js.x=is,Js.y=Cs,Js.z=Ks,Js.w=dl)),sl=S.call(this,xe,Ai,Zr),ll=!1,il=1,zl=0,Ml=0,Rl=0,Al=0,Ll=null,ms=0,Os=!1,Xl=5126,Gl=0,Ul=0,le=0,Mr(sl)?(ll=!0,Ll=fe.createStream(34962,sl),Xl=Ll.dtype):(Ll=fe.getBuffer(sl),Ll?Xl=Ll.dtype:"constant"in sl?(il=2,typeof sl.constant=="number"?(zl=sl.constant,Ml=Rl=Al=0):(zl=sl.constant.length>0?sl.constant[0]:0,Ml=sl.constant.length>1?sl.constant[1]:0,Rl=sl.constant.length>2?sl.constant[2]:0,Al=sl.constant.length>3?sl.constant[3]:0)):(Mr(sl.buffer)?Ll=fe.createStream(34962,sl.buffer):Ll=fe.getBuffer(sl.buffer),Xl="type"in sl?Fi[sl.type]:Ll.dtype,Os=!!sl.normalized,ms=sl.size|0,Gl=sl.offset|0,Ul=sl.stride|0,le=sl.divisor|0)),w=m.location,q=dt[w],il===1?(q.buffer||Ie.enableVertexAttribArray(w),Q=ms||1,(q.type!==Xl||q.size!==Q||q.buffer!==Ll||q.normalized!==Os||q.offset!==Gl||q.stride!==Ul)&&(Ie.bindBuffer(34962,Ll.buffer),Ie.vertexAttribPointer(w,Q,Xl,Os,Ul,Gl),q.type=Xl,q.size=Q,q.buffer=Ll,q.normalized=Os,q.offset=Gl,q.stride=Ul),q.divisor!==le&&(gr.vertexAttribDivisorANGLE(w,le),q.divisor=le)):(q.buffer&&(Ie.disableVertexAttribArray(w),q.buffer=null),(q.x!==zl||q.y!==Ml||q.z!==Rl||q.w!==Al)&&(Ie.vertexAttrib4f(w,zl,Ml,Rl,Al),q.x=zl,q.y=Ml,q.z=Rl,q.w=Al)),ee=Ai.markerTexture,ee&&ee._reglType==="framebuffer"&&(ee=ee.color[0]),ue=ee._texture,Ie.uniform1i(A.location,ue.bind()),Ge=Ai.opacity,(!Zr||et!==Ge)&&(et=Ge,Ie.uniform1f(B.location,Ge)),mt=U.call(this,xe,Ai,Zr),Ft=mt[0],or=mt[1],(!Zr||ir!==Ft||kr!==or)&&(ir=Ft,kr=or,Ie.uniform2f(F.location,Ft,or)),Vr=xe.pixelRatio,(!Zr||he!==Vr)&&(he=Vr,Ie.uniform1f(H.location,Vr)),Se=Ai.scale,qe=Se[0],lt=Se[1],(!Zr||He!==qe||tt!==lt)&&(He=qe,tt=lt,Ie.uniform2f(N.location,qe,lt)),pt=Ai.scaleFract,Ht=pt[0],fr=pt[1],(!Zr||nr!==Ht||Ar!==fr)&&(nr=Ht,Ar=fr,Ie.uniform2f(W.location,Ht,fr)),Rr=Ai.translate,ri=Rr[0],Mi=Rr[1],(!Zr||si!==ri||hn!==Mi)&&(si=ri,hn=Mi,Ie.uniform2f(re.location,ri,Mi)),Zn=Ai.translateFract,Yn=Zn[0],Fo=Zn[1],(!Zr||Ua!==Yn||vl!==Fo)&&(Ua=Yn,vl=Fo,Ie.uniform2f(ae.location,Yn,Fo)),Us=Ai.elements,ml=null,au=Mr(Us),au?ml=ge.createStream(Us):ml=ge.getElements(Us),ml&&Ie.bindBuffer(34963,ml.buffer.buffer),Sl=Ai.offset,Yl=Ai.count,Yl&&(Ba>0?ml?gr.drawElementsInstancedANGLE(0,Yl,ml.type,Sl<<(ml.type-5121>>1),Ba):gr.drawArraysInstancedANGLE(0,Sl,Yl,Ba):Ba<0&&(ml?Ie.drawElements(0,Yl,ml.type,Sl<<(ml.type-5121>>1)):Ie.drawArrays(0,Sl,Yl)),xe.viewportWidth=vn,xe.viewportHeight=da,No&&fe.destroyStream(Oa),Ka&&fe.destroyStream(sa),Ws&&fe.destroyStream(To),$s&&fe.destroyStream(Qs),rl&&fe.destroyStream(os),vs&&fe.destroyStream(tl),wr&&fe.destroyStream(Ji),va&&fe.destroyStream(xl),ll&&fe.destroyStream(Ll),ue.unbind(),au&&ge.destroyStream(ml))}j.unbind(),De.dirty=!0,It.setVAO(null),tr&&(r.cpuTime+=performance.now()-pr)}}}});var L8=Te((j_r,BNe)=>{BNe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Ce,Le,pe,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Je,nt,gt,Nt,it,Ye,kt,Tt,St,Dt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br){"use strict";var Ut,Ie,xe,Oe,Re,De,ct,ge,fe,de,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi;return Ut=t.gl,Ie=t.context,xe=t.strings,Oe=t.next,Re=t.current,De=t.draw,ct=t.elements,ge=t.buffer,fe=t.shader,de=t.attributes,dt=t.vao,It=t.uniforms,Pt=t.framebuffer,rr=t.extensions,Hr=t.timer,Dr=t.isBufferArgs,Mr=Oe.blend_color,Fr=Re.blend_color,di=Oe.blend_equation,Di=Re.blend_equation,Ii=Oe.blend_func,Ci=Re.blend_func,nn=Oe.depth_range,ii=Re.depth_range,wi=Oe.colorMask,Gi=Re.colorMask,Bt=Oe.polygonOffset_offset,yt=Re.polygonOffset_offset,Vt=Oe.sample_coverage,Wt=Re.sample_coverage,_r=Oe.stencil_func,Lr=Re.stencil_func,Ur=Oe.stencil_opFront,Ir=Re.stencil_opFront,Gr=Oe.stencil_opBack,jr=Re.stencil_opBack,yi=Oe.scissor_box,Ei=Re.scissor_box,Vi=Oe.viewport,ti=Re.viewport,en={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Yr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},oi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Bi={add:32774,subtract:32778,"reverse subtract":32779},an={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},rn={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Fi={cw:2304,ccw:2305},{draw:function(Ri){var xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js,cs,sl;if(xn=rr.angle_instanced_arrays,xi=Pt.next,xi!==Pt.cur&&(xi?Ut.bindFramebuffer(36160,xi.framebuffer):Ut.bindFramebuffer(36160,null),Pt.cur=xi),Re.dirty){var ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Ul,le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt,tt,pt,Ht;ll=Oe.dither,ll!==Re.dither&&(ll?Ut.enable(3024):Ut.disable(3024),Re.dither=ll),il=di[0],zl=di[1],(il!==Di[0]||zl!==Di[1])&&(Ut.blendEquationSeparate(il,zl),Di[0]=il,Di[1]=zl),Ml=Oe.depth_func,Ml!==Re.depth_func&&(Ut.depthFunc(Ml),Re.depth_func=Ml),Rl=nn[0],Al=nn[1],(Rl!==ii[0]||Al!==ii[1])&&(Ut.depthRange(Rl,Al),ii[0]=Rl,ii[1]=Al),Ll=Oe.depth_mask,Ll!==Re.depth_mask&&(Ut.depthMask(Ll),Re.depth_mask=Ll),ms=wi[0],Os=wi[1],Xl=wi[2],Gl=wi[3],(ms!==Gi[0]||Os!==Gi[1]||Xl!==Gi[2]||Gl!==Gi[3])&&(Ut.colorMask(ms,Os,Xl,Gl),Gi[0]=ms,Gi[1]=Os,Gi[2]=Xl,Gi[3]=Gl),Ul=Oe.cull_enable,Ul!==Re.cull_enable&&(Ul?Ut.enable(2884):Ut.disable(2884),Re.cull_enable=Ul),le=Oe.cull_face,le!==Re.cull_face&&(Ut.cullFace(le),Re.cull_face=le),w=Oe.frontFace,w!==Re.frontFace&&(Ut.frontFace(w),Re.frontFace=w),q=Oe.lineWidth,q!==Re.lineWidth&&(Ut.lineWidth(q),Re.lineWidth=q),Q=Oe.polygonOffset_enable,Q!==Re.polygonOffset_enable&&(Q?Ut.enable(32823):Ut.disable(32823),Re.polygonOffset_enable=Q),ee=Bt[0],ue=Bt[1],(ee!==yt[0]||ue!==yt[1])&&(Ut.polygonOffset(ee,ue),yt[0]=ee,yt[1]=ue),Ge=Oe.sample_alpha,Ge!==Re.sample_alpha&&(Ge?Ut.enable(32926):Ut.disable(32926),Re.sample_alpha=Ge),et=Oe.sample_enable,et!==Re.sample_enable&&(et?Ut.enable(32928):Ut.disable(32928),Re.sample_enable=et),mt=Vt[0],Ft=Vt[1],(mt!==Wt[0]||Ft!==Wt[1])&&(Ut.sampleCoverage(mt,Ft),Wt[0]=mt,Wt[1]=Ft),ir=Oe.stencil_mask,ir!==Re.stencil_mask&&(Ut.stencilMask(ir),Re.stencil_mask=ir),or=_r[0],kr=_r[1],Vr=_r[2],(or!==Lr[0]||kr!==Lr[1]||Vr!==Lr[2])&&(Ut.stencilFunc(or,kr,Vr),Lr[0]=or,Lr[1]=kr,Lr[2]=Vr),he=Ur[0],Se=Ur[1],qe=Ur[2],He=Ur[3],(he!==Ir[0]||Se!==Ir[1]||qe!==Ir[2]||He!==Ir[3])&&(Ut.stencilOpSeparate(he,Se,qe,He),Ir[0]=he,Ir[1]=Se,Ir[2]=qe,Ir[3]=He),lt=Gr[0],tt=Gr[1],pt=Gr[2],Ht=Gr[3],(lt!==jr[0]||tt!==jr[1]||pt!==jr[2]||Ht!==jr[3])&&(Ut.stencilOpSeparate(lt,tt,pt,Ht),jr[0]=lt,jr[1]=tt,jr[2]=pt,jr[3]=Ht)}Xr=Ri.viewport,ft=Xr.x|0,tr=Xr.y|0,pr="width"in Xr?Xr.width|0:Ie.framebufferWidth-ft,gr="height"in Xr?Xr.height|0:Ie.framebufferHeight-tr,Zr=Ie.viewportWidth,Ie.viewportWidth=pr,Ai=Ie.viewportHeight,Ie.viewportHeight=gr,Ut.viewport(ft,tr,pr,gr),ti[0]=ft,ti[1]=tr,ti[2]=pr,ti[3]=gr,Ut.blendColor(0,0,0,1),Fr[0]=0,Fr[1]=0,Fr[2]=0,Fr[3]=1,n?Ut.enable(3042):Ut.disable(3042),Re.blend_enable=n,Ut.blendFuncSeparate(770,771,773,1),Ci[0]=770,Ci[1]=771,Ci[2]=773,Ci[3]=1,i?Ut.enable(2929):Ut.disable(2929),Re.depth_enable=i,Qi=Ri.viewport,ni=Qi.x|0,Zi=Qi.y|0,aa="width"in Qi?Qi.width|0:Ie.framebufferWidth-ni,Mn="height"in Qi?Qi.height|0:Ie.framebufferHeight-Zi,Ut.scissor(ni,Zi,aa,Mn),Ei[0]=ni,Ei[1]=Zi,Ei[2]=aa,Ei[3]=Mn,a?Ut.enable(3089):Ut.disable(3089),Re.scissor_enable=a,o?Ut.enable(2960):Ut.disable(2960),Re.stencil_enable=o,Un=Re.profile,Un&&(Ga=performance.now(),r.count++),Ut.useProgram(s.program),ma=rr.angle_instanced_arrays,dt.setVAO(null),oa=u.call(this,Ie,Ri,0),ka=!1,so=1,Kr=0,Ia=0,Yo=0,fa=0,kn=null,Ta=0,ys=!1,uo=5126,ls=0,$a=0,fo=0,Dr(oa)?(ka=!0,kn=ge.createStream(34962,oa),uo=kn.dtype):(kn=ge.getBuffer(oa),kn?uo=kn.dtype:"constant"in oa?(so=2,typeof oa.constant=="number"?(Kr=oa.constant,Ia=Yo=fa=0):(Kr=oa.constant.length>0?oa.constant[0]:0,Ia=oa.constant.length>1?oa.constant[1]:0,Yo=oa.constant.length>2?oa.constant[2]:0,fa=oa.constant.length>3?oa.constant[3]:0)):(Dr(oa.buffer)?kn=ge.createStream(34962,oa.buffer):kn=ge.getBuffer(oa.buffer),uo="type"in oa?rn[oa.type]:kn.dtype,ys=!!oa.normalized,Ta=oa.size|0,ls=oa.offset|0,$a=oa.stride|0,fo=oa.divisor|0)),mn=l.location,ra=de[mn],so===1?(ra.buffer||Ut.enableVertexAttribArray(mn),wa=Ta||4,(ra.type!==uo||ra.size!==wa||ra.buffer!==kn||ra.normalized!==ys||ra.offset!==ls||ra.stride!==$a)&&(Ut.bindBuffer(34962,kn.buffer),Ut.vertexAttribPointer(mn,wa,uo,ys,$a,ls),ra.type=uo,ra.size=wa,ra.buffer=kn,ra.normalized=ys,ra.offset=ls,ra.stride=$a),ra.divisor!==fo&&(ma.vertexAttribDivisorANGLE(mn,fo),ra.divisor=fo)):(ra.buffer&&(Ut.disableVertexAttribArray(mn),ra.buffer=null),(ra.x!==Kr||ra.y!==Ia||ra.z!==Yo||ra.w!==fa)&&(Ut.vertexAttrib4f(mn,Kr,Ia,Yo,fa),ra.x=Kr,ra.y=Ia,ra.z=Yo,ra.w=fa)),ws=f.call(this,Ie,Ri,0),Co=!1,Po=1,ji=0,gn=0,Ps=0,Ha=0,Sn=null,ao=0,Ba=!1,Ko=5126,Qo=0,Wi=0,Sa=0,Dr(ws)?(Co=!0,Sn=ge.createStream(34962,ws),Ko=Sn.dtype):(Sn=ge.getBuffer(ws),Sn?Ko=Sn.dtype:"constant"in ws?(Po=2,typeof ws.constant=="number"?(ji=ws.constant,gn=Ps=Ha=0):(ji=ws.constant.length>0?ws.constant[0]:0,gn=ws.constant.length>1?ws.constant[1]:0,Ps=ws.constant.length>2?ws.constant[2]:0,Ha=ws.constant.length>3?ws.constant[3]:0)):(Dr(ws.buffer)?Sn=ge.createStream(34962,ws.buffer):Sn=ge.getBuffer(ws.buffer),Ko="type"in ws?rn[ws.type]:Sn.dtype,Ba=!!ws.normalized,ao=ws.size|0,Qo=ws.offset|0,Wi=ws.stride|0,Sa=ws.divisor|0)),Qa=c.location,vn=de[Qa],Po===1?(vn.buffer||Ut.enableVertexAttribArray(Qa),da=ao||1,(vn.type!==Ko||vn.size!==da||vn.buffer!==Sn||vn.normalized!==Ba||vn.offset!==Qo||vn.stride!==Wi)&&(Ut.bindBuffer(34962,Sn.buffer),Ut.vertexAttribPointer(Qa,da,Ko,Ba,Wi,Qo),vn.type=Ko,vn.size=da,vn.buffer=Sn,vn.normalized=Ba,vn.offset=Qo,vn.stride=Wi),vn.divisor!==Sa&&(ma.vertexAttribDivisorANGLE(Qa,Sa),vn.divisor=Sa)):(vn.buffer&&(Ut.disableVertexAttribArray(Qa),vn.buffer=null),(vn.x!==ji||vn.y!==gn||vn.z!==Ps||vn.w!==Ha)&&(Ut.vertexAttrib4f(Qa,ji,gn,Ps,Ha),vn.x=ji,vn.y=gn,vn.z=Ps,vn.w=Ha)),la=h.call(this,Ie,Ri,0),vo=!1,As=1,ps=0,co=0,mo=0,No=0,jn=null,Go=0,Ys=!1,qs=5126,Ns=0,Oa=0,ha=0,Dr(la)?(vo=!0,jn=ge.createStream(34962,la),qs=jn.dtype):(jn=ge.getBuffer(la),jn?qs=jn.dtype:"constant"in la?(As=2,typeof la.constant=="number"?(ps=la.constant,co=mo=No=0):(ps=la.constant.length>0?la.constant[0]:0,co=la.constant.length>1?la.constant[1]:0,mo=la.constant.length>2?la.constant[2]:0,No=la.constant.length>3?la.constant[3]:0)):(Dr(la.buffer)?jn=ge.createStream(34962,la.buffer):jn=ge.getBuffer(la.buffer),qs="type"in la?rn[la.type]:jn.dtype,Ys=!!la.normalized,Go=la.size|0,Ns=la.offset|0,Oa=la.stride|0,ha=la.divisor|0)),Vs=d.location,Ya=de[Vs],As===1?(Ya.buffer||Ut.enableVertexAttribArray(Vs),_n=Go||4,(Ya.type!==qs||Ya.size!==_n||Ya.buffer!==jn||Ya.normalized!==Ys||Ya.offset!==Ns||Ya.stride!==Oa)&&(Ut.bindBuffer(34962,jn.buffer),Ut.vertexAttribPointer(Vs,_n,qs,Ys,Oa,Ns),Ya.type=qs,Ya.size=_n,Ya.buffer=jn,Ya.normalized=Ys,Ya.offset=Ns,Ya.stride=Oa),Ya.divisor!==ha&&(ma.vertexAttribDivisorANGLE(Vs,ha),Ya.divisor=ha)):(Ya.buffer&&(Ut.disableVertexAttribArray(Vs),Ya.buffer=null),(Ya.x!==ps||Ya.y!==co||Ya.z!==mo||Ya.w!==No)&&(Ut.vertexAttrib4f(Vs,ps,co,mo,No),Ya.x=ps,Ya.y=co,Ya.z=mo,Ya.w=No)),Vn=p.call(this,Ie,Ri,0),wo=!1,Ra=1,Xn=0,un=0,$n=0,Ka=0,qn=null,Eo=0,Ja=!1,lo=5126,eo=0,sa=0,es=0,Dr(Vn)?(wo=!0,qn=ge.createStream(34962,Vn),lo=qn.dtype):(qn=ge.getBuffer(Vn),qn?lo=qn.dtype:"constant"in Vn?(Ra=2,typeof Vn.constant=="number"?(Xn=Vn.constant,un=$n=Ka=0):(Xn=Vn.constant.length>0?Vn.constant[0]:0,un=Vn.constant.length>1?Vn.constant[1]:0,$n=Vn.constant.length>2?Vn.constant[2]:0,Ka=Vn.constant.length>3?Vn.constant[3]:0)):(Dr(Vn.buffer)?qn=ge.createStream(34962,Vn.buffer):qn=ge.getBuffer(Vn.buffer),lo="type"in Vn?rn[Vn.type]:qn.dtype,Ja=!!Vn.normalized,Eo=Vn.size|0,eo=Vn.offset|0,sa=Vn.stride|0,es=Vn.divisor|0)),Na=x.location,tn=de[Na],Ra===1?(tn.buffer||Ut.enableVertexAttribArray(Na),Pa=Eo||1,(tn.type!==lo||tn.size!==Pa||tn.buffer!==qn||tn.normalized!==Ja||tn.offset!==eo||tn.stride!==sa)&&(Ut.bindBuffer(34962,qn.buffer),Ut.vertexAttribPointer(Na,Pa,lo,Ja,sa,eo),tn.type=lo,tn.size=Pa,tn.buffer=qn,tn.normalized=Ja,tn.offset=eo,tn.stride=sa),tn.divisor!==es&&(ma.vertexAttribDivisorANGLE(Na,es),tn.divisor=es)):(tn.buffer&&(Ut.disableVertexAttribArray(Na),tn.buffer=null),(tn.x!==Xn||tn.y!==un||tn.z!==$n||tn.w!==Ka)&&(Ut.vertexAttrib4f(Na,Xn,un,$n,Ka),tn.x=Xn,tn.y=un,tn.z=$n,tn.w=Ka)),to=b.call(this,Ie,Ri,0),yo=!1,Jo=1,Ao=0,Dn=0,_a=0,Ws=0,Ca=null,Es=0,Ts=!1,Ho=5126,Wa=0,To=0,ts=0,Dr(to)?(yo=!0,Ca=ge.createStream(34962,to),Ho=Ca.dtype):(Ca=ge.getBuffer(to),Ca?Ho=Ca.dtype:"constant"in to?(Jo=2,typeof to.constant=="number"?(Ao=to.constant,Dn=_a=Ws=0):(Ao=to.constant.length>0?to.constant[0]:0,Dn=to.constant.length>1?to.constant[1]:0,_a=to.constant.length>2?to.constant[2]:0,Ws=to.constant.length>3?to.constant[3]:0)):(Dr(to.buffer)?Ca=ge.createStream(34962,to.buffer):Ca=ge.getBuffer(to.buffer),Ho="type"in to?rn[to.type]:Ca.dtype,Ts=!!to.normalized,Es=to.size|0,Wa=to.offset|0,To=to.stride|0,ts=to.divisor|0)),Wo=v.location,qa=de[Wo],Jo===1?(qa.buffer||Ut.enableVertexAttribArray(Wo),ln=Es||1,(qa.type!==Ho||qa.size!==ln||qa.buffer!==Ca||qa.normalized!==Ts||qa.offset!==Wa||qa.stride!==To)&&(Ut.bindBuffer(34962,Ca.buffer),Ut.vertexAttribPointer(Wo,ln,Ho,Ts,To,Wa),qa.type=Ho,qa.size=ln,qa.buffer=Ca,qa.normalized=Ts,qa.offset=Wa,qa.stride=To),qa.divisor!==ts&&(ma.vertexAttribDivisorANGLE(Wo,ts),qa.divisor=ts)):(qa.buffer&&(Ut.disableVertexAttribArray(Wo),qa.buffer=null),(qa.x!==Ao||qa.y!==Dn||qa.z!==_a||qa.w!==Ws)&&(Ut.vertexAttrib4f(Wo,Ao,Dn,_a,Ws),qa.x=Ao,qa.y=Dn,qa.z=_a,qa.w=Ws)),Bo=k.call(this,Ie,Ri,0),ko=!1,oo=1,za=0,ea=0,rs=0,$s=0,us=null,Ds=0,fl=!1,as=5126,Ma=0,Qs=0,ho=0,Dr(Bo)?(ko=!0,us=ge.createStream(34962,Bo),as=us.dtype):(us=ge.getBuffer(Bo),us?as=us.dtype:"constant"in Bo?(oo=2,typeof Bo.constant=="number"?(za=Bo.constant,ea=rs=$s=0):(za=Bo.constant.length>0?Bo.constant[0]:0,ea=Bo.constant.length>1?Bo.constant[1]:0,rs=Bo.constant.length>2?Bo.constant[2]:0,$s=Bo.constant.length>3?Bo.constant[3]:0)):(Dr(Bo.buffer)?us=ge.createStream(34962,Bo.buffer):us=ge.getBuffer(Bo.buffer),as="type"in Bo?rn[Bo.type]:us.dtype,fl=!!Bo.normalized,Ds=Bo.size|0,Ma=Bo.offset|0,Qs=Bo.stride|0,ho=Bo.divisor|0)),gs=E.location,Vo=de[gs],oo===1?(Vo.buffer||Ut.enableVertexAttribArray(gs),Do=Ds||1,(Vo.type!==as||Vo.size!==Do||Vo.buffer!==us||Vo.normalized!==fl||Vo.offset!==Ma||Vo.stride!==Qs)&&(Ut.bindBuffer(34962,us.buffer),Ut.vertexAttribPointer(gs,Do,as,fl,Qs,Ma),Vo.type=as,Vo.size=Do,Vo.buffer=us,Vo.normalized=fl,Vo.offset=Ma,Vo.stride=Qs),Vo.divisor!==ho&&(ma.vertexAttribDivisorANGLE(gs,ho),Vo.divisor=ho)):(Vo.buffer&&(Ut.disableVertexAttribArray(gs),Vo.buffer=null),(Vo.x!==za||Vo.y!==ea||Vo.z!==rs||Vo.w!==$s)&&(Ut.vertexAttrib4f(gs,za,ea,rs,$s),Vo.x=za,Vo.y=ea,Vo.z=rs,Vo.w=$s)),Lo=T.call(this,Ie,Ri,0),xs=!1,ks=1,Ea=0,Jn=0,Oo=0,rl=0,Gs=null,bs=0,zs=!1,$o=5126,Aa=0,os=0,_l=0,Dr(Lo)?(xs=!0,Gs=ge.createStream(34962,Lo),$o=Gs.dtype):(Gs=ge.getBuffer(Lo),Gs?$o=Gs.dtype:"constant"in Lo?(ks=2,typeof Lo.constant=="number"?(Ea=Lo.constant,Jn=Oo=rl=0):(Ea=Lo.constant.length>0?Lo.constant[0]:0,Jn=Lo.constant.length>1?Lo.constant[1]:0,Oo=Lo.constant.length>2?Lo.constant[2]:0,rl=Lo.constant.length>3?Lo.constant[3]:0)):(Dr(Lo.buffer)?Gs=ge.createStream(34962,Lo.buffer):Gs=ge.getBuffer(Lo.buffer),$o="type"in Lo?rn[Lo.type]:Gs.dtype,zs=!!Lo.normalized,bs=Lo.size|0,Aa=Lo.offset|0,os=Lo.stride|0,_l=Lo.divisor|0)),Ss=L.location,po=de[Ss],ks===1?(po.buffer||Ut.enableVertexAttribArray(Ss),go=bs||1,(po.type!==$o||po.size!==go||po.buffer!==Gs||po.normalized!==zs||po.offset!==Aa||po.stride!==os)&&(Ut.bindBuffer(34962,Gs.buffer),Ut.vertexAttribPointer(Ss,go,$o,zs,os,Aa),po.type=$o,po.size=go,po.buffer=Gs,po.normalized=zs,po.offset=Aa,po.stride=os),po.divisor!==_l&&(ma.vertexAttribDivisorANGLE(Ss,_l),po.divisor=_l)):(po.buffer&&(Ut.disableVertexAttribArray(Ss),po.buffer=null),(po.x!==Ea||po.y!==Jn||po.z!==Oo||po.w!==rl)&&(Ut.vertexAttrib4f(Ss,Ea,Jn,Oo,rl),po.x=Ea,po.y=Jn,po.z=Oo,po.w=rl)),ss=_.call(this,Ie,Ri,0),qo=!1,zo=1,io=0,Io=0,Da=0,vs=0,fs=null,cl=0,el=!1,Hs=5126,Ro=0,tl=0,Fs=0,Dr(ss)?(qo=!0,fs=ge.createStream(34962,ss),Hs=fs.dtype):(fs=ge.getBuffer(ss),fs?Hs=fs.dtype:"constant"in ss?(zo=2,typeof ss.constant=="number"?(io=ss.constant,Io=Da=vs=0):(io=ss.constant.length>0?ss.constant[0]:0,Io=ss.constant.length>1?ss.constant[1]:0,Da=ss.constant.length>2?ss.constant[2]:0,vs=ss.constant.length>3?ss.constant[3]:0)):(Dr(ss.buffer)?fs=ge.createStream(34962,ss.buffer):fs=ge.getBuffer(ss.buffer),Hs="type"in ss?rn[ss.type]:fs.dtype,el=!!ss.normalized,cl=ss.size|0,Ro=ss.offset|0,tl=ss.stride|0,Fs=ss.divisor|0)),hl=C.location,Fa=de[hl],zo===1?(Fa.buffer||Ut.enableVertexAttribArray(hl),Ms=cl||1,(Fa.type!==Hs||Fa.size!==Ms||Fa.buffer!==fs||Fa.normalized!==el||Fa.offset!==Ro||Fa.stride!==tl)&&(Ut.bindBuffer(34962,fs.buffer),Ut.vertexAttribPointer(hl,Ms,Hs,el,tl,Ro),Fa.type=Hs,Fa.size=Ms,Fa.buffer=fs,Fa.normalized=el,Fa.offset=Ro,Fa.stride=tl),Fa.divisor!==Fs&&(ma.vertexAttribDivisorANGLE(hl,Fs),Fa.divisor=Fs)):(Fa.buffer&&(Ut.disableVertexAttribArray(hl),Fa.buffer=null),(Fa.x!==io||Fa.y!==Io||Fa.z!==Da||Fa.w!==vs)&&(Ut.vertexAttrib4f(hl,io,Io,Da,vs),Fa.x=io,Fa.y=Io,Fa.z=Da,Fa.w=vs)),jo=S.call(this,Ie,Ri,0),Rs=!1,Is=1,Bs=0,At=0,Gt=0,wr=0,mr=null,Or=0,gi=!1,Ti=5126,ki=0,Ji=0,Fn=0,Dr(jo)?(Rs=!0,mr=ge.createStream(34962,jo),Ti=mr.dtype):(mr=ge.getBuffer(jo),mr?Ti=mr.dtype:"constant"in jo?(Is=2,typeof jo.constant=="number"?(Bs=jo.constant,At=Gt=wr=0):(Bs=jo.constant.length>0?jo.constant[0]:0,At=jo.constant.length>1?jo.constant[1]:0,Gt=jo.constant.length>2?jo.constant[2]:0,wr=jo.constant.length>3?jo.constant[3]:0)):(Dr(jo.buffer)?mr=ge.createStream(34962,jo.buffer):mr=ge.getBuffer(jo.buffer),Ti="type"in jo?rn[jo.type]:mr.dtype,gi=!!jo.normalized,Or=jo.size|0,ki=jo.offset|0,Ji=jo.stride|0,Fn=jo.divisor|0)),Pi=m.location,hi=de[Pi],Is===1?(hi.buffer||Ut.enableVertexAttribArray(Pi),Li=Or||1,(hi.type!==Ti||hi.size!==Li||hi.buffer!==mr||hi.normalized!==gi||hi.offset!==ki||hi.stride!==Ji)&&(Ut.bindBuffer(34962,mr.buffer),Ut.vertexAttribPointer(Pi,Li,Ti,gi,Ji,ki),hi.type=Ti,hi.size=Li,hi.buffer=mr,hi.normalized=gi,hi.offset=ki,hi.stride=Ji),hi.divisor!==Fn&&(ma.vertexAttribDivisorANGLE(Pi,Fn),hi.divisor=Fn)):(hi.buffer&&(Ut.disableVertexAttribArray(Pi),hi.buffer=null),(hi.x!==Bs||hi.y!==At||hi.z!==Gt||hi.w!==wr)&&(Ut.vertexAttrib4f(Pi,Bs,At,Gt,wr),hi.x=Bs,hi.y=At,hi.z=Gt,hi.w=wr)),Ut.uniform1i(P.location,!1),Si=Ri.opacity,Ut.uniform1f(A.location,Si),Gn=F.call(this,Ie,Ri,0),ta=Gn[0],ya=Gn[1],Ut.uniform2f(B.location,ta,ya),Ut.uniform1i(U.location,G.bind()),ia=Ie.pixelRatio,Ut.uniform1f(j.location,ia),pa=Ri.scale,va=pa[0],zn=pa[1],Ut.uniform2f(H.location,va,zn),is=Ri.scaleFract,Cs=is[0],Ks=is[1],Ut.uniform2f(N.location,Cs,Ks),dl=Ri.translate,xl=dl[0],Ol=dl[1],Ut.uniform2f(W.location,xl,Ol),bl=Ri.translateFract,eu=bl[0],Zl=bl[1],Ut.uniform2f(re.location,eu,Zl),Vl=Ri.elements,ja=null,ns=Dr(Vl),ns?ja=ct.createStream(Vl):ja=ct.getElements(Vl),ja&&Ut.bindBuffer(34963,ja.buffer.buffer),Js=Ri.offset,cs=Ri.count,cs&&(sl=De.instances,sl>0?ja?ma.drawElementsInstancedANGLE(0,cs,ja.type,Js<<(ja.type-5121>>1),sl):ma.drawArraysInstancedANGLE(0,Js,cs,sl):sl<0&&(ja?Ut.drawElements(0,cs,ja.type,Js<<(ja.type-5121>>1)):Ut.drawArrays(0,Js,cs)),Re.dirty=!0,dt.setVAO(null),Ie.viewportWidth=Zr,Ie.viewportHeight=Ai,Un&&(r.cpuTime+=performance.now()-Ga),ka&&ge.destroyStream(kn),Co&&ge.destroyStream(Sn),vo&&ge.destroyStream(jn),wo&&ge.destroyStream(qn),yo&&ge.destroyStream(Ca),ko&&ge.destroyStream(us),xs&&ge.destroyStream(Gs),qo&&ge.destroyStream(fs),Rs&&ge.destroyStream(mr),G.unbind(),ns&&ct.destroyStream(ja))},scope:function(Ri,xn,xi){var Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Ul,le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt,tt,pt,Ht,nr,fr,Ar,Rr,ri,si,Mi,hn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,ql,ou,Pu,iu,tu,Wu,Qu,Ju,ju,Xu,lf,xf,ef,tf,Z,se,ze,Xe,Qe,ot,jt,_t,cr,Cr,zr,ui,$r,Oi,fn,vi,zi,Xi,pn,sn,bi,xo,no,Xo,js,El,Pl,pu,Il,fu,Zu,Gu,rf,ds,Wl,Au,Tu,uf,df,Ef;Xr=Ri.viewport,ft=Xr.x|0,tr=Xr.y|0,pr="width"in Xr?Xr.width|0:Ie.framebufferWidth-ft,gr="height"in Xr?Xr.height|0:Ie.framebufferHeight-tr,Zr=Ie.viewportWidth,Ie.viewportWidth=pr,Ai=Ie.viewportHeight,Ie.viewportHeight=gr,Qi=Vi[0],Vi[0]=ft,ni=Vi[1],Vi[1]=tr,Zi=Vi[2],Vi[2]=pr,aa=Vi[3],Vi[3]=gr,Mn=Mr[0],Mr[0]=ae,Un=Mr[1],Mr[1]=be,Ga=Mr[2],Mr[2]=Ce,ma=Mr[3],Mr[3]=Le,oa=Oe.blend_enable,Oe.blend_enable=pe,ka=Ii[0],Ii[0]=te,so=Ii[1],Ii[1]=ke,Kr=Ii[2],Ii[2]=Ee,Ia=Ii[3],Ii[3]=Me,Yo=Oe.depth_enable,Oe.depth_enable=Ne,fa=Ri.viewport,kn=fa.x|0,Ta=fa.y|0,ys="width"in fa?fa.width|0:Ie.framebufferWidth-kn,uo="height"in fa?fa.height|0:Ie.framebufferHeight-Ta,ls=yi[0],yi[0]=kn,$a=yi[1],yi[1]=Ta,fo=yi[2],yi[2]=ys,mn=yi[3],yi[3]=uo,ra=Oe.scissor_enable,Oe.scissor_enable=Fe,wa=Oe.stencil_enable,Oe.stencil_enable=ye,ws=Re.profile,ws&&(Co=performance.now(),r.count++),Po=Ri.elements,ji=null,gn=Dr(Po),gn?ji=ct.createStream(Po):ji=ct.getElements(Po),Ps=De.elements,De.elements=ji,Ha=Ri.offset,Sn=De.offset,De.offset=Ha,ao=Ri.count,Ba=De.count,De.count=ao,Ko=De.primitive,De.primitive=Ve,Qo=It[ce],It[ce]=!1,Wi=It[nt],It[nt]=Je,Sa=Ri.opacity,Qa=It[gt],It[gt]=Sa,vn=F.call(this,Ie,Ri,xi),da=It[Nt],It[Nt]=vn,la=Ie.pixelRatio,vo=It[it],It[it]=la,As=Ri.scale,ps=It[Ye],It[Ye]=As,co=Ri.scaleFract,mo=It[kt],It[kt]=co,No=Ri.translate,jn=It[Tt],It[Tt]=No,Go=Ri.translateFract,Ys=It[St],It[St]=Go,qs=Ri.markerTexture,Ns=It[Dt],It[Dt]=qs,Oa=k.call(this,Ie,Ri,xi),ha=!1,Vs=1,Ya=0,_n=0,Vn=0,wo=0,Ra=null,Xn=0,un=!1,$n=5126,Ka=0,qn=0,Eo=0,Dr(Oa)?(ha=!0,Ra=ge.createStream(34962,Oa),$n=Ra.dtype):(Ra=ge.getBuffer(Oa),Ra?$n=Ra.dtype:"constant"in Oa?(Vs=2,typeof Oa.constant=="number"?(Ya=Oa.constant,_n=Vn=wo=0):(Ya=Oa.constant.length>0?Oa.constant[0]:0,_n=Oa.constant.length>1?Oa.constant[1]:0,Vn=Oa.constant.length>2?Oa.constant[2]:0,wo=Oa.constant.length>3?Oa.constant[3]:0)):(Dr(Oa.buffer)?Ra=ge.createStream(34962,Oa.buffer):Ra=ge.getBuffer(Oa.buffer),$n="type"in Oa?rn[Oa.type]:Ra.dtype,un=!!Oa.normalized,Xn=Oa.size|0,Ka=Oa.offset|0,qn=Oa.stride|0,Eo=Oa.divisor|0)),Ja=Zt.state,Zt.state=Vs,lo=Zt.x,Zt.x=Ya,eo=Zt.y,Zt.y=_n,sa=Zt.z,Zt.z=Vn,es=Zt.w,Zt.w=wo,Na=Zt.buffer,Zt.buffer=Ra,tn=Zt.size,Zt.size=Xn,Pa=Zt.normalized,Zt.normalized=un,to=Zt.type,Zt.type=$n,yo=Zt.offset,Zt.offset=Ka,Jo=Zt.stride,Zt.stride=qn,Ao=Zt.divisor,Zt.divisor=Eo,Dn=_.call(this,Ie,Ri,xi),_a=!1,Ws=1,Ca=0,Es=0,Ts=0,Ho=0,Wa=null,To=0,ts=!1,Wo=5126,qa=0,ln=0,Bo=0,Dr(Dn)?(_a=!0,Wa=ge.createStream(34962,Dn),Wo=Wa.dtype):(Wa=ge.getBuffer(Dn),Wa?Wo=Wa.dtype:"constant"in Dn?(Ws=2,typeof Dn.constant=="number"?(Ca=Dn.constant,Es=Ts=Ho=0):(Ca=Dn.constant.length>0?Dn.constant[0]:0,Es=Dn.constant.length>1?Dn.constant[1]:0,Ts=Dn.constant.length>2?Dn.constant[2]:0,Ho=Dn.constant.length>3?Dn.constant[3]:0)):(Dr(Dn.buffer)?Wa=ge.createStream(34962,Dn.buffer):Wa=ge.getBuffer(Dn.buffer),Wo="type"in Dn?rn[Dn.type]:Wa.dtype,ts=!!Dn.normalized,To=Dn.size|0,qa=Dn.offset|0,ln=Dn.stride|0,Bo=Dn.divisor|0)),ko=Et.state,Et.state=Ws,oo=Et.x,Et.x=Ca,za=Et.y,Et.y=Es,ea=Et.z,Et.z=Ts,rs=Et.w,Et.w=Ho,$s=Et.buffer,Et.buffer=Wa,us=Et.size,Et.size=To,Ds=Et.normalized,Et.normalized=ts,fl=Et.type,Et.type=Wo,as=Et.offset,Et.offset=qa,Ma=Et.stride,Et.stride=ln,Qs=Et.divisor,Et.divisor=Bo,ho=T.call(this,Ie,Ri,xi),gs=!1,Vo=1,Do=0,Lo=0,xs=0,ks=0,Ea=null,Jn=0,Oo=!1,rl=5126,Gs=0,bs=0,zs=0,Dr(ho)?(gs=!0,Ea=ge.createStream(34962,ho),rl=Ea.dtype):(Ea=ge.getBuffer(ho),Ea?rl=Ea.dtype:"constant"in ho?(Vo=2,typeof ho.constant=="number"?(Do=ho.constant,Lo=xs=ks=0):(Do=ho.constant.length>0?ho.constant[0]:0,Lo=ho.constant.length>1?ho.constant[1]:0,xs=ho.constant.length>2?ho.constant[2]:0,ks=ho.constant.length>3?ho.constant[3]:0)):(Dr(ho.buffer)?Ea=ge.createStream(34962,ho.buffer):Ea=ge.getBuffer(ho.buffer),rl="type"in ho?rn[ho.type]:Ea.dtype,Oo=!!ho.normalized,Jn=ho.size|0,Gs=ho.offset|0,bs=ho.stride|0,zs=ho.divisor|0)),$o=Ae.state,Ae.state=Vo,Aa=Ae.x,Ae.x=Do,os=Ae.y,Ae.y=Lo,_l=Ae.z,Ae.z=xs,Ss=Ae.w,Ae.w=ks,po=Ae.buffer,Ae.buffer=Ea,go=Ae.size,Ae.size=Jn,ss=Ae.normalized,Ae.normalized=Oo,qo=Ae.type,Ae.type=rl,zo=Ae.offset,Ae.offset=Gs,io=Ae.stride,Ae.stride=bs,Io=Ae.divisor,Ae.divisor=zs,Da=S.call(this,Ie,Ri,xi),vs=!1,fs=1,cl=0,el=0,Hs=0,Ro=0,tl=null,Fs=0,hl=!1,Fa=5126,Ms=0,jo=0,Rs=0,Dr(Da)?(vs=!0,tl=ge.createStream(34962,Da),Fa=tl.dtype):(tl=ge.getBuffer(Da),tl?Fa=tl.dtype:"constant"in Da?(fs=2,typeof Da.constant=="number"?(cl=Da.constant,el=Hs=Ro=0):(cl=Da.constant.length>0?Da.constant[0]:0,el=Da.constant.length>1?Da.constant[1]:0,Hs=Da.constant.length>2?Da.constant[2]:0,Ro=Da.constant.length>3?Da.constant[3]:0)):(Dr(Da.buffer)?tl=ge.createStream(34962,Da.buffer):tl=ge.getBuffer(Da.buffer),Fa="type"in Da?rn[Da.type]:tl.dtype,hl=!!Da.normalized,Fs=Da.size|0,Ms=Da.offset|0,jo=Da.stride|0,Rs=Da.divisor|0)),Is=at.state,at.state=fs,Bs=at.x,at.x=cl,At=at.y,at.y=el,Gt=at.z,at.z=Hs,wr=at.w,at.w=Ro,mr=at.buffer,at.buffer=tl,Or=at.size,at.size=Fs,gi=at.normalized,at.normalized=hl,Ti=at.type,at.type=Fa,ki=at.offset,at.offset=Ms,Ji=at.stride,at.stride=jo,Fn=at.divisor,at.divisor=Rs,Pi=b.call(this,Ie,Ri,xi),hi=!1,Li=1,Si=0,Gn=0,ta=0,ya=0,ia=null,pa=0,va=!1,zn=5126,is=0,Cs=0,Ks=0,Dr(Pi)?(hi=!0,ia=ge.createStream(34962,Pi),zn=ia.dtype):(ia=ge.getBuffer(Pi),ia?zn=ia.dtype:"constant"in Pi?(Li=2,typeof Pi.constant=="number"?(Si=Pi.constant,Gn=ta=ya=0):(Si=Pi.constant.length>0?Pi.constant[0]:0,Gn=Pi.constant.length>1?Pi.constant[1]:0,ta=Pi.constant.length>2?Pi.constant[2]:0,ya=Pi.constant.length>3?Pi.constant[3]:0)):(Dr(Pi.buffer)?ia=ge.createStream(34962,Pi.buffer):ia=ge.getBuffer(Pi.buffer),zn="type"in Pi?rn[Pi.type]:ia.dtype,va=!!Pi.normalized,pa=Pi.size|0,is=Pi.offset|0,Cs=Pi.stride|0,Ks=Pi.divisor|0)),dl=wt.state,wt.state=Li,xl=wt.x,wt.x=Si,Ol=wt.y,wt.y=Gn,bl=wt.z,wt.z=ta,eu=wt.w,wt.w=ya,Zl=wt.buffer,wt.buffer=ia,Vl=wt.size,wt.size=pa,ja=wt.normalized,wt.normalized=va,ns=wt.type,wt.type=zn,Js=wt.offset,wt.offset=is,cs=wt.stride,wt.stride=Cs,sl=wt.divisor,wt.divisor=Ks,ll=f.call(this,Ie,Ri,xi),il=!1,zl=1,Ml=0,Rl=0,Al=0,Ll=0,ms=null,Os=0,Xl=!1,Gl=5126,Ul=0,le=0,w=0,Dr(ll)?(il=!0,ms=ge.createStream(34962,ll),Gl=ms.dtype):(ms=ge.getBuffer(ll),ms?Gl=ms.dtype:"constant"in ll?(zl=2,typeof ll.constant=="number"?(Ml=ll.constant,Rl=Al=Ll=0):(Ml=ll.constant.length>0?ll.constant[0]:0,Rl=ll.constant.length>1?ll.constant[1]:0,Al=ll.constant.length>2?ll.constant[2]:0,Ll=ll.constant.length>3?ll.constant[3]:0)):(Dr(ll.buffer)?ms=ge.createStream(34962,ll.buffer):ms=ge.getBuffer(ll.buffer),Gl="type"in ll?rn[ll.type]:ms.dtype,Xl=!!ll.normalized,Os=ll.size|0,Ul=ll.offset|0,le=ll.stride|0,w=ll.divisor|0)),q=vt.state,vt.state=zl,Q=vt.x,vt.x=Ml,ee=vt.y,vt.y=Rl,ue=vt.z,vt.z=Al,Ge=vt.w,vt.w=Ll,et=vt.buffer,vt.buffer=ms,mt=vt.size,vt.size=Os,Ft=vt.normalized,vt.normalized=Xl,ir=vt.type,vt.type=Gl,or=vt.offset,vt.offset=Ul,kr=vt.stride,vt.stride=le,Vr=vt.divisor,vt.divisor=w,he=h.call(this,Ie,Ri,xi),Se=!1,qe=1,He=0,lt=0,tt=0,pt=0,Ht=null,nr=0,fr=!1,Ar=5126,Rr=0,ri=0,si=0,Dr(he)?(Se=!0,Ht=ge.createStream(34962,he),Ar=Ht.dtype):(Ht=ge.getBuffer(he),Ht?Ar=Ht.dtype:"constant"in he?(qe=2,typeof he.constant=="number"?(He=he.constant,lt=tt=pt=0):(He=he.constant.length>0?he.constant[0]:0,lt=he.constant.length>1?he.constant[1]:0,tt=he.constant.length>2?he.constant[2]:0,pt=he.constant.length>3?he.constant[3]:0)):(Dr(he.buffer)?Ht=ge.createStream(34962,he.buffer):Ht=ge.getBuffer(he.buffer),Ar="type"in he?rn[he.type]:Ht.dtype,fr=!!he.normalized,nr=he.size|0,Rr=he.offset|0,ri=he.stride|0,si=he.divisor|0)),Mi=st.state,st.state=qe,hn=st.x,st.x=He,Zn=st.y,st.y=lt,Yn=st.z,st.z=tt,Ua=st.w,st.w=pt,Fo=st.buffer,st.buffer=Ht,vl=st.size,st.size=nr,Us=st.normalized,st.normalized=fr,ml=st.type,st.type=Ar,au=st.offset,st.offset=Rr,Sl=st.stride,st.stride=ri,Yl=st.divisor,st.divisor=si,ql=u.call(this,Ie,Ri,xi),ou=!1,Pu=1,iu=0,tu=0,Wu=0,Qu=0,Ju=null,ju=0,Xu=!1,lf=5126,xf=0,ef=0,tf=0,Dr(ql)?(ou=!0,Ju=ge.createStream(34962,ql),lf=Ju.dtype):(Ju=ge.getBuffer(ql),Ju?lf=Ju.dtype:"constant"in ql?(Pu=2,typeof ql.constant=="number"?(iu=ql.constant,tu=Wu=Qu=0):(iu=ql.constant.length>0?ql.constant[0]:0,tu=ql.constant.length>1?ql.constant[1]:0,Wu=ql.constant.length>2?ql.constant[2]:0,Qu=ql.constant.length>3?ql.constant[3]:0)):(Dr(ql.buffer)?Ju=ge.createStream(34962,ql.buffer):Ju=ge.getBuffer(ql.buffer),lf="type"in ql?rn[ql.type]:Ju.dtype,Xu=!!ql.normalized,ju=ql.size|0,xf=ql.offset|0,ef=ql.stride|0,tf=ql.divisor|0)),Z=Ue.state,Ue.state=Pu,se=Ue.x,Ue.x=iu,ze=Ue.y,Ue.y=tu,Xe=Ue.z,Ue.z=Wu,Qe=Ue.w,Ue.w=Qu,ot=Ue.buffer,Ue.buffer=Ju,jt=Ue.size,Ue.size=ju,_t=Ue.normalized,Ue.normalized=Xu,cr=Ue.type,Ue.type=lf,Cr=Ue.offset,Ue.offset=xf,zr=Ue.stride,Ue.stride=ef,ui=Ue.divisor,Ue.divisor=tf,$r=p.call(this,Ie,Ri,xi),Oi=!1,fn=1,vi=0,zi=0,Xi=0,pn=0,sn=null,bi=0,xo=!1,no=5126,Xo=0,js=0,El=0,Dr($r)?(Oi=!0,sn=ge.createStream(34962,$r),no=sn.dtype):(sn=ge.getBuffer($r),sn?no=sn.dtype:"constant"in $r?(fn=2,typeof $r.constant=="number"?(vi=$r.constant,zi=Xi=pn=0):(vi=$r.constant.length>0?$r.constant[0]:0,zi=$r.constant.length>1?$r.constant[1]:0,Xi=$r.constant.length>2?$r.constant[2]:0,pn=$r.constant.length>3?$r.constant[3]:0)):(Dr($r.buffer)?sn=ge.createStream(34962,$r.buffer):sn=ge.getBuffer($r.buffer),no="type"in $r?rn[$r.type]:sn.dtype,xo=!!$r.normalized,bi=$r.size|0,Xo=$r.offset|0,js=$r.stride|0,El=$r.divisor|0)),Pl=rt.state,rt.state=fn,pu=rt.x,rt.x=vi,Il=rt.y,rt.y=zi,fu=rt.z,rt.z=Xi,Zu=rt.w,rt.w=pn,Gu=rt.buffer,rt.buffer=sn,rf=rt.size,rt.size=bi,ds=rt.normalized,rt.normalized=xo,Wl=rt.type,rt.type=no,Au=rt.offset,rt.offset=Xo,Tu=rt.stride,rt.stride=js,uf=rt.divisor,rt.divisor=El,df=fe.vert,fe.vert=$e,Ef=fe.frag,fe.frag=zt,Re.dirty=!0,xn(Ie,Ri,xi),Ie.viewportWidth=Zr,Ie.viewportHeight=Ai,Vi[0]=Qi,Vi[1]=ni,Vi[2]=Zi,Vi[3]=aa,Mr[0]=Mn,Mr[1]=Un,Mr[2]=Ga,Mr[3]=ma,Oe.blend_enable=oa,Ii[0]=ka,Ii[1]=so,Ii[2]=Kr,Ii[3]=Ia,Oe.depth_enable=Yo,yi[0]=ls,yi[1]=$a,yi[2]=fo,yi[3]=mn,Oe.scissor_enable=ra,Oe.stencil_enable=wa,ws&&(r.cpuTime+=performance.now()-Co),gn&&ct.destroyStream(ji),De.elements=Ps,De.offset=Sn,De.count=Ba,De.primitive=Ko,It[ce]=Qo,It[nt]=Wi,It[gt]=Qa,It[Nt]=da,It[it]=vo,It[Ye]=ps,It[kt]=mo,It[Tt]=jn,It[St]=Ys,It[Dt]=Ns,ha&&ge.destroyStream(Ra),Zt.state=Ja,Zt.x=lo,Zt.y=eo,Zt.z=sa,Zt.w=es,Zt.buffer=Na,Zt.size=tn,Zt.normalized=Pa,Zt.type=to,Zt.offset=yo,Zt.stride=Jo,Zt.divisor=Ao,_a&&ge.destroyStream(Wa),Et.state=ko,Et.x=oo,Et.y=za,Et.z=ea,Et.w=rs,Et.buffer=$s,Et.size=us,Et.normalized=Ds,Et.type=fl,Et.offset=as,Et.stride=Ma,Et.divisor=Qs,gs&&ge.destroyStream(Ea),Ae.state=$o,Ae.x=Aa,Ae.y=os,Ae.z=_l,Ae.w=Ss,Ae.buffer=po,Ae.size=go,Ae.normalized=ss,Ae.type=qo,Ae.offset=zo,Ae.stride=io,Ae.divisor=Io,vs&&ge.destroyStream(tl),at.state=Is,at.x=Bs,at.y=At,at.z=Gt,at.w=wr,at.buffer=mr,at.size=Or,at.normalized=gi,at.type=Ti,at.offset=ki,at.stride=Ji,at.divisor=Fn,hi&&ge.destroyStream(ia),wt.state=dl,wt.x=xl,wt.y=Ol,wt.z=bl,wt.w=eu,wt.buffer=Zl,wt.size=Vl,wt.normalized=ja,wt.type=ns,wt.offset=Js,wt.stride=cs,wt.divisor=sl,il&&ge.destroyStream(ms),vt.state=q,vt.x=Q,vt.y=ee,vt.z=ue,vt.w=Ge,vt.buffer=et,vt.size=mt,vt.normalized=Ft,vt.type=ir,vt.offset=or,vt.stride=kr,vt.divisor=Vr,Se&&ge.destroyStream(Ht),st.state=Mi,st.x=hn,st.y=Zn,st.z=Yn,st.w=Ua,st.buffer=Fo,st.size=vl,st.normalized=Us,st.type=ml,st.offset=au,st.stride=Sl,st.divisor=Yl,ou&&ge.destroyStream(Ju),Ue.state=Z,Ue.x=se,Ue.y=ze,Ue.z=Xe,Ue.w=Qe,Ue.buffer=ot,Ue.size=jt,Ue.normalized=_t,Ue.type=cr,Ue.offset=Cr,Ue.stride=zr,Ue.divisor=ui,Oi&&ge.destroyStream(sn),rt.state=Pl,rt.x=pu,rt.y=Il,rt.z=fu,rt.w=Zu,rt.buffer=Gu,rt.size=rf,rt.normalized=ds,rt.type=Wl,rt.offset=Au,rt.stride=Tu,rt.divisor=uf,fe.vert=df,fe.frag=Ef,Re.dirty=!0},batch:function(Ri,xn){var xi,Xr,ft,tr,pr,gr,Zr;if(xi=rr.angle_instanced_arrays,Xr=Pt.next,Xr!==Pt.cur&&(Xr?Ut.bindFramebuffer(36160,Xr.framebuffer):Ut.bindFramebuffer(36160,null),Pt.cur=Xr),Re.dirty){var Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn;Ai=Oe.dither,Ai!==Re.dither&&(Ai?Ut.enable(3024):Ut.disable(3024),Re.dither=Ai),Qi=di[0],ni=di[1],(Qi!==Di[0]||ni!==Di[1])&&(Ut.blendEquationSeparate(Qi,ni),Di[0]=Qi,Di[1]=ni),Zi=Oe.depth_func,Zi!==Re.depth_func&&(Ut.depthFunc(Zi),Re.depth_func=Zi),aa=nn[0],Mn=nn[1],(aa!==ii[0]||Mn!==ii[1])&&(Ut.depthRange(aa,Mn),ii[0]=aa,ii[1]=Mn),Un=Oe.depth_mask,Un!==Re.depth_mask&&(Ut.depthMask(Un),Re.depth_mask=Un),Ga=wi[0],ma=wi[1],oa=wi[2],ka=wi[3],(Ga!==Gi[0]||ma!==Gi[1]||oa!==Gi[2]||ka!==Gi[3])&&(Ut.colorMask(Ga,ma,oa,ka),Gi[0]=Ga,Gi[1]=ma,Gi[2]=oa,Gi[3]=ka),so=Oe.cull_enable,so!==Re.cull_enable&&(so?Ut.enable(2884):Ut.disable(2884),Re.cull_enable=so),Kr=Oe.cull_face,Kr!==Re.cull_face&&(Ut.cullFace(Kr),Re.cull_face=Kr),Ia=Oe.frontFace,Ia!==Re.frontFace&&(Ut.frontFace(Ia),Re.frontFace=Ia),Yo=Oe.lineWidth,Yo!==Re.lineWidth&&(Ut.lineWidth(Yo),Re.lineWidth=Yo),fa=Oe.polygonOffset_enable,fa!==Re.polygonOffset_enable&&(fa?Ut.enable(32823):Ut.disable(32823),Re.polygonOffset_enable=fa),kn=Bt[0],Ta=Bt[1],(kn!==yt[0]||Ta!==yt[1])&&(Ut.polygonOffset(kn,Ta),yt[0]=kn,yt[1]=Ta),ys=Oe.sample_alpha,ys!==Re.sample_alpha&&(ys?Ut.enable(32926):Ut.disable(32926),Re.sample_alpha=ys),uo=Oe.sample_enable,uo!==Re.sample_enable&&(uo?Ut.enable(32928):Ut.disable(32928),Re.sample_enable=uo),ls=Vt[0],$a=Vt[1],(ls!==Wt[0]||$a!==Wt[1])&&(Ut.sampleCoverage(ls,$a),Wt[0]=ls,Wt[1]=$a),fo=Oe.stencil_mask,fo!==Re.stencil_mask&&(Ut.stencilMask(fo),Re.stencil_mask=fo),mn=_r[0],ra=_r[1],wa=_r[2],(mn!==Lr[0]||ra!==Lr[1]||wa!==Lr[2])&&(Ut.stencilFunc(mn,ra,wa),Lr[0]=mn,Lr[1]=ra,Lr[2]=wa),ws=Ur[0],Co=Ur[1],Po=Ur[2],ji=Ur[3],(ws!==Ir[0]||Co!==Ir[1]||Po!==Ir[2]||ji!==Ir[3])&&(Ut.stencilOpSeparate(ws,Co,Po,ji),Ir[0]=ws,Ir[1]=Co,Ir[2]=Po,Ir[3]=ji),gn=Gr[0],Ps=Gr[1],Ha=Gr[2],Sn=Gr[3],(gn!==jr[0]||Ps!==jr[1]||Ha!==jr[2]||Sn!==jr[3])&&(Ut.stencilOpSeparate(gn,Ps,Ha,Sn),jr[0]=gn,jr[1]=Ps,jr[2]=Ha,jr[3]=Sn)}Ut.blendColor(0,0,0,1),Fr[0]=0,Fr[1]=0,Fr[2]=0,Fr[3]=1,Yt?Ut.enable(3042):Ut.disable(3042),Re.blend_enable=Yt,Ut.blendFuncSeparate(770,771,773,1),Ci[0]=770,Ci[1]=771,Ci[2]=773,Ci[3]=1,hr?Ut.enable(2929):Ut.disable(2929),Re.depth_enable=hr,yr?Ut.enable(3089):Ut.disable(3089),Re.scissor_enable=yr,br?Ut.enable(2960):Ut.disable(2960),Re.stencil_enable=br,ft=Re.profile,ft&&(tr=performance.now(),r.count+=xn),Ut.useProgram(s.program),pr=rr.angle_instanced_arrays;var ao;for(dt.setVAO(null),Ut.uniform1i(P.location,!1),Ut.uniform1i(U.location,G.bind()),ao=De.instances,gr=0;gr0?co.constant[0]:0,Go=co.constant.length>1?co.constant[1]:0,Ys=co.constant.length>2?co.constant[2]:0,qs=co.constant.length>3?co.constant[3]:0)):(Dr(co.buffer)?Ns=ge.createStream(34962,co.buffer):Ns=ge.getBuffer(co.buffer),Vs="type"in co?rn[co.type]:Ns.dtype,ha=!!co.normalized,Oa=co.size|0,Ya=co.offset|0,_n=co.stride|0,Vn=co.divisor|0)),wo=l.location,Ra=de[wo],No===1?(Ra.buffer||Ut.enableVertexAttribArray(wo),Xn=Oa||4,(Ra.type!==Vs||Ra.size!==Xn||Ra.buffer!==Ns||Ra.normalized!==ha||Ra.offset!==Ya||Ra.stride!==_n)&&(Ut.bindBuffer(34962,Ns.buffer),Ut.vertexAttribPointer(wo,Xn,Vs,ha,_n,Ya),Ra.type=Vs,Ra.size=Xn,Ra.buffer=Ns,Ra.normalized=ha,Ra.offset=Ya,Ra.stride=_n),Ra.divisor!==Vn&&(pr.vertexAttribDivisorANGLE(wo,Vn),Ra.divisor=Vn)):(Ra.buffer&&(Ut.disableVertexAttribArray(wo),Ra.buffer=null),(Ra.x!==jn||Ra.y!==Go||Ra.z!==Ys||Ra.w!==qs)&&(Ut.vertexAttrib4f(wo,jn,Go,Ys,qs),Ra.x=jn,Ra.y=Go,Ra.z=Ys,Ra.w=qs)),un=f.call(this,Ie,Zr,gr),$n=!1,Ka=1,qn=0,Eo=0,Ja=0,lo=0,eo=null,sa=0,es=!1,Na=5126,tn=0,Pa=0,to=0,Dr(un)?($n=!0,eo=ge.createStream(34962,un),Na=eo.dtype):(eo=ge.getBuffer(un),eo?Na=eo.dtype:"constant"in un?(Ka=2,typeof un.constant=="number"?(qn=un.constant,Eo=Ja=lo=0):(qn=un.constant.length>0?un.constant[0]:0,Eo=un.constant.length>1?un.constant[1]:0,Ja=un.constant.length>2?un.constant[2]:0,lo=un.constant.length>3?un.constant[3]:0)):(Dr(un.buffer)?eo=ge.createStream(34962,un.buffer):eo=ge.getBuffer(un.buffer),Na="type"in un?rn[un.type]:eo.dtype,es=!!un.normalized,sa=un.size|0,tn=un.offset|0,Pa=un.stride|0,to=un.divisor|0)),yo=c.location,Jo=de[yo],Ka===1?(Jo.buffer||Ut.enableVertexAttribArray(yo),Ao=sa||1,(Jo.type!==Na||Jo.size!==Ao||Jo.buffer!==eo||Jo.normalized!==es||Jo.offset!==tn||Jo.stride!==Pa)&&(Ut.bindBuffer(34962,eo.buffer),Ut.vertexAttribPointer(yo,Ao,Na,es,Pa,tn),Jo.type=Na,Jo.size=Ao,Jo.buffer=eo,Jo.normalized=es,Jo.offset=tn,Jo.stride=Pa),Jo.divisor!==to&&(pr.vertexAttribDivisorANGLE(yo,to),Jo.divisor=to)):(Jo.buffer&&(Ut.disableVertexAttribArray(yo),Jo.buffer=null),(Jo.x!==qn||Jo.y!==Eo||Jo.z!==Ja||Jo.w!==lo)&&(Ut.vertexAttrib4f(yo,qn,Eo,Ja,lo),Jo.x=qn,Jo.y=Eo,Jo.z=Ja,Jo.w=lo)),Dn=h.call(this,Ie,Zr,gr),_a=!1,Ws=1,Ca=0,Es=0,Ts=0,Ho=0,Wa=null,To=0,ts=!1,Wo=5126,qa=0,ln=0,Bo=0,Dr(Dn)?(_a=!0,Wa=ge.createStream(34962,Dn),Wo=Wa.dtype):(Wa=ge.getBuffer(Dn),Wa?Wo=Wa.dtype:"constant"in Dn?(Ws=2,typeof Dn.constant=="number"?(Ca=Dn.constant,Es=Ts=Ho=0):(Ca=Dn.constant.length>0?Dn.constant[0]:0,Es=Dn.constant.length>1?Dn.constant[1]:0,Ts=Dn.constant.length>2?Dn.constant[2]:0,Ho=Dn.constant.length>3?Dn.constant[3]:0)):(Dr(Dn.buffer)?Wa=ge.createStream(34962,Dn.buffer):Wa=ge.getBuffer(Dn.buffer),Wo="type"in Dn?rn[Dn.type]:Wa.dtype,ts=!!Dn.normalized,To=Dn.size|0,qa=Dn.offset|0,ln=Dn.stride|0,Bo=Dn.divisor|0)),ko=d.location,oo=de[ko],Ws===1?(oo.buffer||Ut.enableVertexAttribArray(ko),za=To||4,(oo.type!==Wo||oo.size!==za||oo.buffer!==Wa||oo.normalized!==ts||oo.offset!==qa||oo.stride!==ln)&&(Ut.bindBuffer(34962,Wa.buffer),Ut.vertexAttribPointer(ko,za,Wo,ts,ln,qa),oo.type=Wo,oo.size=za,oo.buffer=Wa,oo.normalized=ts,oo.offset=qa,oo.stride=ln),oo.divisor!==Bo&&(pr.vertexAttribDivisorANGLE(ko,Bo),oo.divisor=Bo)):(oo.buffer&&(Ut.disableVertexAttribArray(ko),oo.buffer=null),(oo.x!==Ca||oo.y!==Es||oo.z!==Ts||oo.w!==Ho)&&(Ut.vertexAttrib4f(ko,Ca,Es,Ts,Ho),oo.x=Ca,oo.y=Es,oo.z=Ts,oo.w=Ho)),ea=p.call(this,Ie,Zr,gr),rs=!1,$s=1,us=0,Ds=0,fl=0,as=0,Ma=null,Qs=0,ho=!1,gs=5126,Vo=0,Do=0,Lo=0,Dr(ea)?(rs=!0,Ma=ge.createStream(34962,ea),gs=Ma.dtype):(Ma=ge.getBuffer(ea),Ma?gs=Ma.dtype:"constant"in ea?($s=2,typeof ea.constant=="number"?(us=ea.constant,Ds=fl=as=0):(us=ea.constant.length>0?ea.constant[0]:0,Ds=ea.constant.length>1?ea.constant[1]:0,fl=ea.constant.length>2?ea.constant[2]:0,as=ea.constant.length>3?ea.constant[3]:0)):(Dr(ea.buffer)?Ma=ge.createStream(34962,ea.buffer):Ma=ge.getBuffer(ea.buffer),gs="type"in ea?rn[ea.type]:Ma.dtype,ho=!!ea.normalized,Qs=ea.size|0,Vo=ea.offset|0,Do=ea.stride|0,Lo=ea.divisor|0)),xs=x.location,ks=de[xs],$s===1?(ks.buffer||Ut.enableVertexAttribArray(xs),Ea=Qs||1,(ks.type!==gs||ks.size!==Ea||ks.buffer!==Ma||ks.normalized!==ho||ks.offset!==Vo||ks.stride!==Do)&&(Ut.bindBuffer(34962,Ma.buffer),Ut.vertexAttribPointer(xs,Ea,gs,ho,Do,Vo),ks.type=gs,ks.size=Ea,ks.buffer=Ma,ks.normalized=ho,ks.offset=Vo,ks.stride=Do),ks.divisor!==Lo&&(pr.vertexAttribDivisorANGLE(xs,Lo),ks.divisor=Lo)):(ks.buffer&&(Ut.disableVertexAttribArray(xs),ks.buffer=null),(ks.x!==us||ks.y!==Ds||ks.z!==fl||ks.w!==as)&&(Ut.vertexAttrib4f(xs,us,Ds,fl,as),ks.x=us,ks.y=Ds,ks.z=fl,ks.w=as)),Jn=b.call(this,Ie,Zr,gr),Oo=!1,rl=1,Gs=0,bs=0,zs=0,$o=0,Aa=null,os=0,_l=!1,Ss=5126,po=0,go=0,ss=0,Dr(Jn)?(Oo=!0,Aa=ge.createStream(34962,Jn),Ss=Aa.dtype):(Aa=ge.getBuffer(Jn),Aa?Ss=Aa.dtype:"constant"in Jn?(rl=2,typeof Jn.constant=="number"?(Gs=Jn.constant,bs=zs=$o=0):(Gs=Jn.constant.length>0?Jn.constant[0]:0,bs=Jn.constant.length>1?Jn.constant[1]:0,zs=Jn.constant.length>2?Jn.constant[2]:0,$o=Jn.constant.length>3?Jn.constant[3]:0)):(Dr(Jn.buffer)?Aa=ge.createStream(34962,Jn.buffer):Aa=ge.getBuffer(Jn.buffer),Ss="type"in Jn?rn[Jn.type]:Aa.dtype,_l=!!Jn.normalized,os=Jn.size|0,po=Jn.offset|0,go=Jn.stride|0,ss=Jn.divisor|0)),qo=v.location,zo=de[qo],rl===1?(zo.buffer||Ut.enableVertexAttribArray(qo),io=os||1,(zo.type!==Ss||zo.size!==io||zo.buffer!==Aa||zo.normalized!==_l||zo.offset!==po||zo.stride!==go)&&(Ut.bindBuffer(34962,Aa.buffer),Ut.vertexAttribPointer(qo,io,Ss,_l,go,po),zo.type=Ss,zo.size=io,zo.buffer=Aa,zo.normalized=_l,zo.offset=po,zo.stride=go),zo.divisor!==ss&&(pr.vertexAttribDivisorANGLE(qo,ss),zo.divisor=ss)):(zo.buffer&&(Ut.disableVertexAttribArray(qo),zo.buffer=null),(zo.x!==Gs||zo.y!==bs||zo.z!==zs||zo.w!==$o)&&(Ut.vertexAttrib4f(qo,Gs,bs,zs,$o),zo.x=Gs,zo.y=bs,zo.z=zs,zo.w=$o)),Io=k.call(this,Ie,Zr,gr),Da=!1,vs=1,fs=0,cl=0,el=0,Hs=0,Ro=null,tl=0,Fs=!1,hl=5126,Fa=0,Ms=0,jo=0,Dr(Io)?(Da=!0,Ro=ge.createStream(34962,Io),hl=Ro.dtype):(Ro=ge.getBuffer(Io),Ro?hl=Ro.dtype:"constant"in Io?(vs=2,typeof Io.constant=="number"?(fs=Io.constant,cl=el=Hs=0):(fs=Io.constant.length>0?Io.constant[0]:0,cl=Io.constant.length>1?Io.constant[1]:0,el=Io.constant.length>2?Io.constant[2]:0,Hs=Io.constant.length>3?Io.constant[3]:0)):(Dr(Io.buffer)?Ro=ge.createStream(34962,Io.buffer):Ro=ge.getBuffer(Io.buffer),hl="type"in Io?rn[Io.type]:Ro.dtype,Fs=!!Io.normalized,tl=Io.size|0,Fa=Io.offset|0,Ms=Io.stride|0,jo=Io.divisor|0)),Rs=E.location,Is=de[Rs],vs===1?(Is.buffer||Ut.enableVertexAttribArray(Rs),Bs=tl||1,(Is.type!==hl||Is.size!==Bs||Is.buffer!==Ro||Is.normalized!==Fs||Is.offset!==Fa||Is.stride!==Ms)&&(Ut.bindBuffer(34962,Ro.buffer),Ut.vertexAttribPointer(Rs,Bs,hl,Fs,Ms,Fa),Is.type=hl,Is.size=Bs,Is.buffer=Ro,Is.normalized=Fs,Is.offset=Fa,Is.stride=Ms),Is.divisor!==jo&&(pr.vertexAttribDivisorANGLE(Rs,jo),Is.divisor=jo)):(Is.buffer&&(Ut.disableVertexAttribArray(Rs),Is.buffer=null),(Is.x!==fs||Is.y!==cl||Is.z!==el||Is.w!==Hs)&&(Ut.vertexAttrib4f(Rs,fs,cl,el,Hs),Is.x=fs,Is.y=cl,Is.z=el,Is.w=Hs)),At=T.call(this,Ie,Zr,gr),Gt=!1,wr=1,mr=0,Or=0,gi=0,Ti=0,ki=null,Ji=0,Fn=!1,Pi=5126,hi=0,Li=0,Si=0,Dr(At)?(Gt=!0,ki=ge.createStream(34962,At),Pi=ki.dtype):(ki=ge.getBuffer(At),ki?Pi=ki.dtype:"constant"in At?(wr=2,typeof At.constant=="number"?(mr=At.constant,Or=gi=Ti=0):(mr=At.constant.length>0?At.constant[0]:0,Or=At.constant.length>1?At.constant[1]:0,gi=At.constant.length>2?At.constant[2]:0,Ti=At.constant.length>3?At.constant[3]:0)):(Dr(At.buffer)?ki=ge.createStream(34962,At.buffer):ki=ge.getBuffer(At.buffer),Pi="type"in At?rn[At.type]:ki.dtype,Fn=!!At.normalized,Ji=At.size|0,hi=At.offset|0,Li=At.stride|0,Si=At.divisor|0)),Gn=L.location,ta=de[Gn],wr===1?(ta.buffer||Ut.enableVertexAttribArray(Gn),ya=Ji||1,(ta.type!==Pi||ta.size!==ya||ta.buffer!==ki||ta.normalized!==Fn||ta.offset!==hi||ta.stride!==Li)&&(Ut.bindBuffer(34962,ki.buffer),Ut.vertexAttribPointer(Gn,ya,Pi,Fn,Li,hi),ta.type=Pi,ta.size=ya,ta.buffer=ki,ta.normalized=Fn,ta.offset=hi,ta.stride=Li),ta.divisor!==Si&&(pr.vertexAttribDivisorANGLE(Gn,Si),ta.divisor=Si)):(ta.buffer&&(Ut.disableVertexAttribArray(Gn),ta.buffer=null),(ta.x!==mr||ta.y!==Or||ta.z!==gi||ta.w!==Ti)&&(Ut.vertexAttrib4f(Gn,mr,Or,gi,Ti),ta.x=mr,ta.y=Or,ta.z=gi,ta.w=Ti)),ia=_.call(this,Ie,Zr,gr),pa=!1,va=1,zn=0,is=0,Cs=0,Ks=0,dl=null,xl=0,Ol=!1,bl=5126,eu=0,Zl=0,Vl=0,Dr(ia)?(pa=!0,dl=ge.createStream(34962,ia),bl=dl.dtype):(dl=ge.getBuffer(ia),dl?bl=dl.dtype:"constant"in ia?(va=2,typeof ia.constant=="number"?(zn=ia.constant,is=Cs=Ks=0):(zn=ia.constant.length>0?ia.constant[0]:0,is=ia.constant.length>1?ia.constant[1]:0,Cs=ia.constant.length>2?ia.constant[2]:0,Ks=ia.constant.length>3?ia.constant[3]:0)):(Dr(ia.buffer)?dl=ge.createStream(34962,ia.buffer):dl=ge.getBuffer(ia.buffer),bl="type"in ia?rn[ia.type]:dl.dtype,Ol=!!ia.normalized,xl=ia.size|0,eu=ia.offset|0,Zl=ia.stride|0,Vl=ia.divisor|0)),ja=C.location,ns=de[ja],va===1?(ns.buffer||Ut.enableVertexAttribArray(ja),Js=xl||1,(ns.type!==bl||ns.size!==Js||ns.buffer!==dl||ns.normalized!==Ol||ns.offset!==eu||ns.stride!==Zl)&&(Ut.bindBuffer(34962,dl.buffer),Ut.vertexAttribPointer(ja,Js,bl,Ol,Zl,eu),ns.type=bl,ns.size=Js,ns.buffer=dl,ns.normalized=Ol,ns.offset=eu,ns.stride=Zl),ns.divisor!==Vl&&(pr.vertexAttribDivisorANGLE(ja,Vl),ns.divisor=Vl)):(ns.buffer&&(Ut.disableVertexAttribArray(ja),ns.buffer=null),(ns.x!==zn||ns.y!==is||ns.z!==Cs||ns.w!==Ks)&&(Ut.vertexAttrib4f(ja,zn,is,Cs,Ks),ns.x=zn,ns.y=is,ns.z=Cs,ns.w=Ks)),cs=S.call(this,Ie,Zr,gr),sl=!1,ll=1,il=0,zl=0,Ml=0,Rl=0,Al=null,Ll=0,ms=!1,Os=5126,Xl=0,Gl=0,Ul=0,Dr(cs)?(sl=!0,Al=ge.createStream(34962,cs),Os=Al.dtype):(Al=ge.getBuffer(cs),Al?Os=Al.dtype:"constant"in cs?(ll=2,typeof cs.constant=="number"?(il=cs.constant,zl=Ml=Rl=0):(il=cs.constant.length>0?cs.constant[0]:0,zl=cs.constant.length>1?cs.constant[1]:0,Ml=cs.constant.length>2?cs.constant[2]:0,Rl=cs.constant.length>3?cs.constant[3]:0)):(Dr(cs.buffer)?Al=ge.createStream(34962,cs.buffer):Al=ge.getBuffer(cs.buffer),Os="type"in cs?rn[cs.type]:Al.dtype,ms=!!cs.normalized,Ll=cs.size|0,Xl=cs.offset|0,Gl=cs.stride|0,Ul=cs.divisor|0)),le=m.location,w=de[le],ll===1?(w.buffer||Ut.enableVertexAttribArray(le),q=Ll||1,(w.type!==Os||w.size!==q||w.buffer!==Al||w.normalized!==ms||w.offset!==Xl||w.stride!==Gl)&&(Ut.bindBuffer(34962,Al.buffer),Ut.vertexAttribPointer(le,q,Os,ms,Gl,Xl),w.type=Os,w.size=q,w.buffer=Al,w.normalized=ms,w.offset=Xl,w.stride=Gl),w.divisor!==Ul&&(pr.vertexAttribDivisorANGLE(le,Ul),w.divisor=Ul)):(w.buffer&&(Ut.disableVertexAttribArray(le),w.buffer=null),(w.x!==il||w.y!==zl||w.z!==Ml||w.w!==Rl)&&(Ut.vertexAttrib4f(le,il,zl,Ml,Rl),w.x=il,w.y=zl,w.z=Ml,w.w=Rl)),Q=Zr.opacity,(!gr||ee!==Q)&&(ee=Q,Ut.uniform1f(A.location,Q)),ue=F.call(this,Ie,Zr,gr),Ge=ue[0],mt=ue[1],(!gr||et!==Ge||Ft!==mt)&&(et=Ge,Ft=mt,Ut.uniform2f(B.location,Ge,mt)),ir=Ie.pixelRatio,(!gr||or!==ir)&&(or=ir,Ut.uniform1f(j.location,ir)),kr=Zr.scale,Vr=kr[0],Se=kr[1],(!gr||he!==Vr||qe!==Se)&&(he=Vr,qe=Se,Ut.uniform2f(H.location,Vr,Se)),He=Zr.scaleFract,lt=He[0],pt=He[1],(!gr||tt!==lt||Ht!==pt)&&(tt=lt,Ht=pt,Ut.uniform2f(N.location,lt,pt)),nr=Zr.translate,fr=nr[0],Rr=nr[1],(!gr||Ar!==fr||ri!==Rr)&&(Ar=fr,ri=Rr,Ut.uniform2f(W.location,fr,Rr)),si=Zr.translateFract,Mi=si[0],Zn=si[1],(!gr||hn!==Mi||Yn!==Zn)&&(hn=Mi,Yn=Zn,Ut.uniform2f(re.location,Mi,Zn)),Ua=Zr.elements,Fo=null,vl=Dr(Ua),vl?Fo=ct.createStream(Ua):Fo=ct.getElements(Ua),Fo&&Ut.bindBuffer(34963,Fo.buffer.buffer),Us=Zr.offset,ml=Zr.count,ml&&(ao>0?Fo?pr.drawElementsInstancedANGLE(0,ml,Fo.type,Us<<(Fo.type-5121>>1),ao):pr.drawArraysInstancedANGLE(0,Us,ml,ao):ao<0&&(Fo?Ut.drawElements(0,ml,Fo.type,Us<<(Fo.type-5121>>1)):Ut.drawArrays(0,Us,ml)),Ie.viewportWidth=Qa,Ie.viewportHeight=vn,mo&&ge.destroyStream(Ns),$n&&ge.destroyStream(eo),_a&&ge.destroyStream(Wa),rs&&ge.destroyStream(Ma),Oo&&ge.destroyStream(Aa),Da&&ge.destroyStream(Ro),Gt&&ge.destroyStream(ki),pa&&ge.destroyStream(dl),sl&&ge.destroyStream(Al),vl&&ct.destroyStream(Fo))}G.unbind(),Re.dirty=!0,dt.setVAO(null),ft&&(r.cpuTime+=performance.now()-tr)}}}});var P8=Te((X_r,ONe)=>{ONe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Ce,Le,pe,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Je,nt,gt,Nt,it,Ye,kt,Tt,St,Dt,Zt,Et,Ae,at,wt,vt,st){"use strict";var Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,de,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi;return Ue=t.gl,rt=t.context,$e=t.strings,zt=t.next,Yt=t.current,hr=t.draw,yr=t.elements,br=t.buffer,Ut=t.shader,Ie=t.attributes,xe=t.vao,Oe=t.uniforms,Re=t.framebuffer,De=t.extensions,ct=t.timer,ge=t.isBufferArgs,fe=zt.blend_color,de=Yt.blend_color,dt=zt.blend_equation,It=Yt.blend_equation,Pt=zt.blend_func,rr=Yt.blend_func,Hr=zt.depth_range,Dr=Yt.depth_range,Mr=zt.colorMask,Fr=Yt.colorMask,di=zt.polygonOffset_offset,Di=Yt.polygonOffset_offset,Ii=zt.sample_coverage,Ci=Yt.sample_coverage,nn=zt.stencil_func,ii=Yt.stencil_func,wi=zt.stencil_opFront,Gi=Yt.stencil_opFront,Bt=zt.stencil_opBack,yt=Yt.stencil_opBack,Vt=zt.scissor_box,Wt=Yt.scissor_box,_r=zt.viewport,Lr=Yt.viewport,Ur={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ir={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Gr={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},jr={add:32774,subtract:32778,"reverse subtract":32779},yi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ei={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Vi={cw:2304,ccw:2305},ti={},ti.buffer=n,ti.divisor=1,en={},en.buffer=i,en.divisor=1,Yr={},Yr.buffer=a,Yr.divisor=1,oi={},oi.buffer=o,oi.divisor=1,{draw:function(Bi){var an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us;if(an=De.angle_instanced_arrays,rn=Re.next,rn!==Re.cur&&(rn?Ue.bindFramebuffer(36160,rn.framebuffer):Ue.bindFramebuffer(36160,null),Re.cur=rn),Yt.dirty){var Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs;Ds=zt.dither,Ds!==Yt.dither&&(Ds?Ue.enable(3024):Ue.disable(3024),Yt.dither=Ds),fl=zt.depth_func,fl!==Yt.depth_func&&(Ue.depthFunc(fl),Yt.depth_func=fl),as=Hr[0],Ma=Hr[1],(as!==Dr[0]||Ma!==Dr[1])&&(Ue.depthRange(as,Ma),Dr[0]=as,Dr[1]=Ma),Qs=zt.depth_mask,Qs!==Yt.depth_mask&&(Ue.depthMask(Qs),Yt.depth_mask=Qs),ho=Mr[0],gs=Mr[1],Vo=Mr[2],Do=Mr[3],(ho!==Fr[0]||gs!==Fr[1]||Vo!==Fr[2]||Do!==Fr[3])&&(Ue.colorMask(ho,gs,Vo,Do),Fr[0]=ho,Fr[1]=gs,Fr[2]=Vo,Fr[3]=Do),Lo=zt.cull_enable,Lo!==Yt.cull_enable&&(Lo?Ue.enable(2884):Ue.disable(2884),Yt.cull_enable=Lo),xs=zt.cull_face,xs!==Yt.cull_face&&(Ue.cullFace(xs),Yt.cull_face=xs),ks=zt.frontFace,ks!==Yt.frontFace&&(Ue.frontFace(ks),Yt.frontFace=ks),Ea=zt.lineWidth,Ea!==Yt.lineWidth&&(Ue.lineWidth(Ea),Yt.lineWidth=Ea),Jn=zt.polygonOffset_enable,Jn!==Yt.polygonOffset_enable&&(Jn?Ue.enable(32823):Ue.disable(32823),Yt.polygonOffset_enable=Jn),Oo=di[0],rl=di[1],(Oo!==Di[0]||rl!==Di[1])&&(Ue.polygonOffset(Oo,rl),Di[0]=Oo,Di[1]=rl),Gs=zt.sample_alpha,Gs!==Yt.sample_alpha&&(Gs?Ue.enable(32926):Ue.disable(32926),Yt.sample_alpha=Gs),bs=zt.sample_enable,bs!==Yt.sample_enable&&(bs?Ue.enable(32928):Ue.disable(32928),Yt.sample_enable=bs),zs=Ii[0],$o=Ii[1],(zs!==Ci[0]||$o!==Ci[1])&&(Ue.sampleCoverage(zs,$o),Ci[0]=zs,Ci[1]=$o),Aa=zt.stencil_enable,Aa!==Yt.stencil_enable&&(Aa?Ue.enable(2960):Ue.disable(2960),Yt.stencil_enable=Aa),os=zt.stencil_mask,os!==Yt.stencil_mask&&(Ue.stencilMask(os),Yt.stencil_mask=os),_l=nn[0],Ss=nn[1],po=nn[2],(_l!==ii[0]||Ss!==ii[1]||po!==ii[2])&&(Ue.stencilFunc(_l,Ss,po),ii[0]=_l,ii[1]=Ss,ii[2]=po),go=wi[0],ss=wi[1],qo=wi[2],zo=wi[3],(go!==Gi[0]||ss!==Gi[1]||qo!==Gi[2]||zo!==Gi[3])&&(Ue.stencilOpSeparate(go,ss,qo,zo),Gi[0]=go,Gi[1]=ss,Gi[2]=qo,Gi[3]=zo),io=Bt[0],Io=Bt[1],Da=Bt[2],vs=Bt[3],(io!==yt[0]||Io!==yt[1]||Da!==yt[2]||vs!==yt[3])&&(Ue.stencilOpSeparate(io,Io,Da,vs),yt[0]=io,yt[1]=Io,yt[2]=Da,yt[3]=vs)}Fi=Bi.viewport,Ri=Fi.x|0,xn=Fi.y|0,xi="width"in Fi?Fi.width|0:rt.framebufferWidth-Ri,Xr="height"in Fi?Fi.height|0:rt.framebufferHeight-xn,ft=rt.viewportWidth,rt.viewportWidth=xi,tr=rt.viewportHeight,rt.viewportHeight=Xr,Ue.viewport(Ri,xn,xi,Xr),Lr[0]=Ri,Lr[1]=xn,Lr[2]=xi,Lr[3]=Xr,Ue.blendColor(0,0,0,0),de[0]=0,de[1]=0,de[2]=0,de[3]=0,s?Ue.enable(3042):Ue.disable(3042),Yt.blend_enable=s,Ue.blendEquationSeparate(32774,32774),It[0]=32774,It[1]=32774,Ue.blendFuncSeparate(770,771,773,1),rr[0]=770,rr[1]=771,rr[2]=773,rr[3]=1,u?Ue.enable(2929):Ue.disable(2929),Yt.depth_enable=u,pr=Bi.viewport,gr=pr.x|0,Zr=pr.y|0,Ai="width"in pr?pr.width|0:rt.framebufferWidth-gr,Qi="height"in pr?pr.height|0:rt.framebufferHeight-Zr,Ue.scissor(gr,Zr,Ai,Qi),Wt[0]=gr,Wt[1]=Zr,Wt[2]=Ai,Wt[3]=Qi,l?Ue.enable(3089):Ue.disable(3089),Yt.scissor_enable=l,ni=Yt.profile,ni&&(Zi=performance.now(),r.count++),Ue.useProgram(f.program),aa=De.angle_instanced_arrays,xe.setVAO(null),Mn=h.location,Un=Ie[Mn],Un.buffer||Ue.enableVertexAttribArray(Mn),(Un.type!==5126||Un.size!==2||Un.buffer!==c||Un.normalized!==!1||Un.offset!==16||Un.stride!==24)&&(Ue.bindBuffer(34962,c.buffer),Ue.vertexAttribPointer(Mn,2,5126,!1,24,16),Un.type=5126,Un.size=2,Un.buffer=c,Un.normalized=!1,Un.offset=16,Un.stride=24),Un.divisor!==0&&(aa.vertexAttribDivisorANGLE(Mn,0),Un.divisor=0),Ga=d.call(this,rt,Bi,0),ti.offset=Ga,ma=!1,oa=1,ka=0,so=0,Kr=0,Ia=0,Yo=null,fa=0,kn=!1,Ta=5126,ys=0,uo=0,ls=0,ge(ti)?(ma=!0,Yo=br.createStream(34962,ti),Ta=Yo.dtype):(Yo=br.getBuffer(ti),Yo?Ta=Yo.dtype:"constant"in ti?(oa=2,typeof ti.constant=="number"?(ka=ti.constant,so=Kr=Ia=0):(ka=ti.constant.length>0?ti.constant[0]:0,so=ti.constant.length>1?ti.constant[1]:0,Kr=ti.constant.length>2?ti.constant[2]:0,Ia=ti.constant.length>3?ti.constant[3]:0)):(ge(ti.buffer)?Yo=br.createStream(34962,ti.buffer):Yo=br.getBuffer(ti.buffer),Ta="type"in ti?Ei[ti.type]:Yo.dtype,kn=!!ti.normalized,fa=ti.size|0,ys=ti.offset|0,uo=ti.stride|0,ls=ti.divisor|0)),$a=p.location,fo=Ie[$a],oa===1?(fo.buffer||Ue.enableVertexAttribArray($a),mn=fa||4,(fo.type!==Ta||fo.size!==mn||fo.buffer!==Yo||fo.normalized!==kn||fo.offset!==ys||fo.stride!==uo)&&(Ue.bindBuffer(34962,Yo.buffer),Ue.vertexAttribPointer($a,mn,Ta,kn,uo,ys),fo.type=Ta,fo.size=mn,fo.buffer=Yo,fo.normalized=kn,fo.offset=ys,fo.stride=uo),fo.divisor!==ls&&(aa.vertexAttribDivisorANGLE($a,ls),fo.divisor=ls)):(fo.buffer&&(Ue.disableVertexAttribArray($a),fo.buffer=null),(fo.x!==ka||fo.y!==so||fo.z!==Kr||fo.w!==Ia)&&(Ue.vertexAttrib4f($a,ka,so,Kr,Ia),fo.x=ka,fo.y=so,fo.z=Kr,fo.w=Ia)),ra=x.location,wa=Ie[ra],wa.buffer||Ue.enableVertexAttribArray(ra),(wa.type!==5126||wa.size!==2||wa.buffer!==c||wa.normalized!==!1||wa.offset!==0||wa.stride!==24)&&(Ue.bindBuffer(34962,c.buffer),Ue.vertexAttribPointer(ra,2,5126,!1,24,0),wa.type=5126,wa.size=2,wa.buffer=c,wa.normalized=!1,wa.offset=0,wa.stride=24),wa.divisor!==0&&(aa.vertexAttribDivisorANGLE(ra,0),wa.divisor=0),ws=b.call(this,rt,Bi,0),oi.offset=ws,Co=!1,Po=1,ji=0,gn=0,Ps=0,Ha=0,Sn=null,ao=0,Ba=!1,Ko=5126,Qo=0,Wi=0,Sa=0,ge(oi)?(Co=!0,Sn=br.createStream(34962,oi),Ko=Sn.dtype):(Sn=br.getBuffer(oi),Sn?Ko=Sn.dtype:"constant"in oi?(Po=2,typeof oi.constant=="number"?(ji=oi.constant,gn=Ps=Ha=0):(ji=oi.constant.length>0?oi.constant[0]:0,gn=oi.constant.length>1?oi.constant[1]:0,Ps=oi.constant.length>2?oi.constant[2]:0,Ha=oi.constant.length>3?oi.constant[3]:0)):(ge(oi.buffer)?Sn=br.createStream(34962,oi.buffer):Sn=br.getBuffer(oi.buffer),Ko="type"in oi?Ei[oi.type]:Sn.dtype,Ba=!!oi.normalized,ao=oi.size|0,Qo=oi.offset|0,Wi=oi.stride|0,Sa=oi.divisor|0)),Qa=v.location,vn=Ie[Qa],Po===1?(vn.buffer||Ue.enableVertexAttribArray(Qa),da=ao||4,(vn.type!==Ko||vn.size!==da||vn.buffer!==Sn||vn.normalized!==Ba||vn.offset!==Qo||vn.stride!==Wi)&&(Ue.bindBuffer(34962,Sn.buffer),Ue.vertexAttribPointer(Qa,da,Ko,Ba,Wi,Qo),vn.type=Ko,vn.size=da,vn.buffer=Sn,vn.normalized=Ba,vn.offset=Qo,vn.stride=Wi),vn.divisor!==Sa&&(aa.vertexAttribDivisorANGLE(Qa,Sa),vn.divisor=Sa)):(vn.buffer&&(Ue.disableVertexAttribArray(Qa),vn.buffer=null),(vn.x!==ji||vn.y!==gn||vn.z!==Ps||vn.w!==Ha)&&(Ue.vertexAttrib4f(Qa,ji,gn,Ps,Ha),vn.x=ji,vn.y=gn,vn.z=Ps,vn.w=Ha)),la=k.location,vo=Ie[la],vo.buffer||Ue.enableVertexAttribArray(la),(vo.type!==5126||vo.size!==2||vo.buffer!==c||vo.normalized!==!1||vo.offset!==8||vo.stride!==24)&&(Ue.bindBuffer(34962,c.buffer),Ue.vertexAttribPointer(la,2,5126,!1,24,8),vo.type=5126,vo.size=2,vo.buffer=c,vo.normalized=!1,vo.offset=8,vo.stride=24),vo.divisor!==0&&(aa.vertexAttribDivisorANGLE(la,0),vo.divisor=0),As=E.call(this,rt,Bi,0),en.offset=As,ps=!1,co=1,mo=0,No=0,jn=0,Go=0,Ys=null,qs=0,Ns=!1,Oa=5126,ha=0,Vs=0,Ya=0,ge(en)?(ps=!0,Ys=br.createStream(34962,en),Oa=Ys.dtype):(Ys=br.getBuffer(en),Ys?Oa=Ys.dtype:"constant"in en?(co=2,typeof en.constant=="number"?(mo=en.constant,No=jn=Go=0):(mo=en.constant.length>0?en.constant[0]:0,No=en.constant.length>1?en.constant[1]:0,jn=en.constant.length>2?en.constant[2]:0,Go=en.constant.length>3?en.constant[3]:0)):(ge(en.buffer)?Ys=br.createStream(34962,en.buffer):Ys=br.getBuffer(en.buffer),Oa="type"in en?Ei[en.type]:Ys.dtype,Ns=!!en.normalized,qs=en.size|0,ha=en.offset|0,Vs=en.stride|0,Ya=en.divisor|0)),_n=T.location,Vn=Ie[_n],co===1?(Vn.buffer||Ue.enableVertexAttribArray(_n),wo=qs||2,(Vn.type!==Oa||Vn.size!==wo||Vn.buffer!==Ys||Vn.normalized!==Ns||Vn.offset!==ha||Vn.stride!==Vs)&&(Ue.bindBuffer(34962,Ys.buffer),Ue.vertexAttribPointer(_n,wo,Oa,Ns,Vs,ha),Vn.type=Oa,Vn.size=wo,Vn.buffer=Ys,Vn.normalized=Ns,Vn.offset=ha,Vn.stride=Vs),Vn.divisor!==Ya&&(aa.vertexAttribDivisorANGLE(_n,Ya),Vn.divisor=Ya)):(Vn.buffer&&(Ue.disableVertexAttribArray(_n),Vn.buffer=null),(Vn.x!==mo||Vn.y!==No||Vn.z!==jn||Vn.w!==Go)&&(Ue.vertexAttrib4f(_n,mo,No,jn,Go),Vn.x=mo,Vn.y=No,Vn.z=jn,Vn.w=Go)),Ra=L.call(this,rt,Bi,0),Yr.offset=Ra,Xn=!1,un=1,$n=0,Ka=0,qn=0,Eo=0,Ja=null,lo=0,eo=!1,sa=5126,es=0,Na=0,tn=0,ge(Yr)?(Xn=!0,Ja=br.createStream(34962,Yr),sa=Ja.dtype):(Ja=br.getBuffer(Yr),Ja?sa=Ja.dtype:"constant"in Yr?(un=2,typeof Yr.constant=="number"?($n=Yr.constant,Ka=qn=Eo=0):($n=Yr.constant.length>0?Yr.constant[0]:0,Ka=Yr.constant.length>1?Yr.constant[1]:0,qn=Yr.constant.length>2?Yr.constant[2]:0,Eo=Yr.constant.length>3?Yr.constant[3]:0)):(ge(Yr.buffer)?Ja=br.createStream(34962,Yr.buffer):Ja=br.getBuffer(Yr.buffer),sa="type"in Yr?Ei[Yr.type]:Ja.dtype,eo=!!Yr.normalized,lo=Yr.size|0,es=Yr.offset|0,Na=Yr.stride|0,tn=Yr.divisor|0)),Pa=_.location,to=Ie[Pa],un===1?(to.buffer||Ue.enableVertexAttribArray(Pa),yo=lo||2,(to.type!==sa||to.size!==yo||to.buffer!==Ja||to.normalized!==eo||to.offset!==es||to.stride!==Na)&&(Ue.bindBuffer(34962,Ja.buffer),Ue.vertexAttribPointer(Pa,yo,sa,eo,Na,es),to.type=sa,to.size=yo,to.buffer=Ja,to.normalized=eo,to.offset=es,to.stride=Na),to.divisor!==tn&&(aa.vertexAttribDivisorANGLE(Pa,tn),to.divisor=tn)):(to.buffer&&(Ue.disableVertexAttribArray(Pa),to.buffer=null),(to.x!==$n||to.y!==Ka||to.z!==qn||to.w!==Eo)&&(Ue.vertexAttrib4f(Pa,$n,Ka,qn,Eo),to.x=$n,to.y=Ka,to.z=qn,to.w=Eo)),Jo=Bi.capSize,Ue.uniform1f(C.location,Jo),Ao=Bi.lineWidth,Ue.uniform1f(S.location,Ao),Dn=Bi.opacity,Ue.uniform1f(m.location,Dn),_a=Bi.scale,Ws=_a[0],Ca=_a[1],Ue.uniform2f(P.location,Ws,Ca),Es=Bi.scaleFract,Ts=Es[0],Ho=Es[1],Ue.uniform2f(A.location,Ts,Ho),Wa=Bi.translate,To=Wa[0],ts=Wa[1],Ue.uniform2f(B.location,To,ts),Wo=Bi.translateFract,qa=Wo[0],ln=Wo[1],Ue.uniform2f(F.location,qa,ln),Bo=G.call(this,rt,Bi,0),ko=Bo[0],oo=Bo[1],za=Bo[2],ea=Bo[3],Ue.uniform4f(U.location,ko,oo,za,ea),rs=hr.elements,rs?Ue.bindBuffer(34963,rs.buffer.buffer):xe.currentVAO&&(rs=yr.getElements(xe.currentVAO.elements),rs&&Ue.bindBuffer(34963,rs.buffer.buffer)),$s=hr.offset,us=Bi.count,us>0?rs?aa.drawElementsInstancedANGLE(4,36,rs.type,$s<<(rs.type-5121>>1),us):aa.drawArraysInstancedANGLE(4,$s,36,us):us<0&&(rs?Ue.drawElements(4,36,rs.type,$s<<(rs.type-5121>>1)):Ue.drawArrays(4,$s,36)),Yt.dirty=!0,xe.setVAO(null),rt.viewportWidth=ft,rt.viewportHeight=tr,ni&&(r.cpuTime+=performance.now()-Zi),ma&&br.destroyStream(Yo),Co&&br.destroyStream(Sn),ps&&br.destroyStream(Ys),Xn&&br.destroyStream(Ja)},scope:function(Bi,an,rn){var Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,il,zl,Ml;Fi=Bi.viewport,Ri=Fi.x|0,xn=Fi.y|0,xi="width"in Fi?Fi.width|0:rt.framebufferWidth-Ri,Xr="height"in Fi?Fi.height|0:rt.framebufferHeight-xn,ft=rt.viewportWidth,rt.viewportWidth=xi,tr=rt.viewportHeight,rt.viewportHeight=Xr,pr=_r[0],_r[0]=Ri,gr=_r[1],_r[1]=xn,Zr=_r[2],_r[2]=xi,Ai=_r[3],_r[3]=Xr,Qi=fe[0],fe[0]=j,ni=fe[1],fe[1]=H,Zi=fe[2],fe[2]=N,aa=fe[3],fe[3]=W,Mn=zt.blend_enable,zt.blend_enable=re,Un=dt[0],dt[0]=ae,Ga=dt[1],dt[1]=be,ma=Pt[0],Pt[0]=Ce,oa=Pt[1],Pt[1]=Le,ka=Pt[2],Pt[2]=pe,so=Pt[3],Pt[3]=te,Kr=zt.depth_enable,zt.depth_enable=ke,Ia=Bi.viewport,Yo=Ia.x|0,fa=Ia.y|0,kn="width"in Ia?Ia.width|0:rt.framebufferWidth-Yo,Ta="height"in Ia?Ia.height|0:rt.framebufferHeight-fa,ys=Vt[0],Vt[0]=Yo,uo=Vt[1],Vt[1]=fa,ls=Vt[2],Vt[2]=kn,$a=Vt[3],Vt[3]=Ta,fo=zt.scissor_enable,zt.scissor_enable=Ee,mn=Yt.profile,mn&&(ra=performance.now(),r.count++),wa=hr.count,hr.count=Me,ws=Bi.count,Co=hr.instances,hr.instances=ws,Po=hr.primitive,hr.primitive=Ne,ji=Bi.range,gn=Oe[Fe],Oe[Fe]=ji,Ps=Bi.lineWidth,Ha=Oe[ye],Oe[ye]=Ps,Sn=Bi.capSize,ao=Oe[Ve],Oe[Ve]=Sn,Ba=Bi.opacity,Ko=Oe[ce],Oe[ce]=Ba,Qo=Bi.scale,Wi=Oe[Je],Oe[Je]=Qo,Sa=Bi.translate,Qa=Oe[nt],Oe[nt]=Sa,vn=Bi.scaleFract,da=Oe[gt],Oe[gt]=vn,la=Bi.translateFract,vo=Oe[Nt],Oe[Nt]=la,As=G.call(this,rt,Bi,rn),ps=Oe[it],Oe[it]=As,co=Ye.state,Ye.state=1,mo=Ye.x,Ye.x=0,No=Ye.y,Ye.y=0,jn=Ye.z,Ye.z=0,Go=Ye.w,Ye.w=0,Ys=Ye.buffer,Ye.buffer=c,qs=Ye.size,Ye.size=0,Ns=Ye.normalized,Ye.normalized=!1,Oa=Ye.type,Ye.type=5126,ha=Ye.offset,Ye.offset=0,Vs=Ye.stride,Ye.stride=24,Ya=Ye.divisor,Ye.divisor=0,_n=kt.state,kt.state=1,Vn=kt.x,kt.x=0,wo=kt.y,kt.y=0,Ra=kt.z,kt.z=0,Xn=kt.w,kt.w=0,un=kt.buffer,kt.buffer=c,$n=kt.size,kt.size=0,Ka=kt.normalized,kt.normalized=!1,qn=kt.type,kt.type=5126,Eo=kt.offset,kt.offset=8,Ja=kt.stride,kt.stride=24,lo=kt.divisor,kt.divisor=0,eo=Tt.state,Tt.state=1,sa=Tt.x,Tt.x=0,es=Tt.y,Tt.y=0,Na=Tt.z,Tt.z=0,tn=Tt.w,Tt.w=0,Pa=Tt.buffer,Tt.buffer=c,to=Tt.size,Tt.size=0,yo=Tt.normalized,Tt.normalized=!1,Jo=Tt.type,Tt.type=5126,Ao=Tt.offset,Tt.offset=16,Dn=Tt.stride,Tt.stride=24,_a=Tt.divisor,Tt.divisor=0,Ws=d.call(this,rt,Bi,rn),ti.offset=Ws,Ca=!1,Es=1,Ts=0,Ho=0,Wa=0,To=0,ts=null,Wo=0,qa=!1,ln=5126,Bo=0,ko=0,oo=0,ge(ti)?(Ca=!0,ts=br.createStream(34962,ti),ln=ts.dtype):(ts=br.getBuffer(ti),ts?ln=ts.dtype:"constant"in ti?(Es=2,typeof ti.constant=="number"?(Ts=ti.constant,Ho=Wa=To=0):(Ts=ti.constant.length>0?ti.constant[0]:0,Ho=ti.constant.length>1?ti.constant[1]:0,Wa=ti.constant.length>2?ti.constant[2]:0,To=ti.constant.length>3?ti.constant[3]:0)):(ge(ti.buffer)?ts=br.createStream(34962,ti.buffer):ts=br.getBuffer(ti.buffer),ln="type"in ti?Ei[ti.type]:ts.dtype,qa=!!ti.normalized,Wo=ti.size|0,Bo=ti.offset|0,ko=ti.stride|0,oo=ti.divisor|0)),za=St.state,St.state=Es,ea=St.x,St.x=Ts,rs=St.y,St.y=Ho,$s=St.z,St.z=Wa,us=St.w,St.w=To,Ds=St.buffer,St.buffer=ts,fl=St.size,St.size=Wo,as=St.normalized,St.normalized=qa,Ma=St.type,St.type=ln,Qs=St.offset,St.offset=Bo,ho=St.stride,St.stride=ko,gs=St.divisor,St.divisor=oo,Vo=E.call(this,rt,Bi,rn),en.offset=Vo,Do=!1,Lo=1,xs=0,ks=0,Ea=0,Jn=0,Oo=null,rl=0,Gs=!1,bs=5126,zs=0,$o=0,Aa=0,ge(en)?(Do=!0,Oo=br.createStream(34962,en),bs=Oo.dtype):(Oo=br.getBuffer(en),Oo?bs=Oo.dtype:"constant"in en?(Lo=2,typeof en.constant=="number"?(xs=en.constant,ks=Ea=Jn=0):(xs=en.constant.length>0?en.constant[0]:0,ks=en.constant.length>1?en.constant[1]:0,Ea=en.constant.length>2?en.constant[2]:0,Jn=en.constant.length>3?en.constant[3]:0)):(ge(en.buffer)?Oo=br.createStream(34962,en.buffer):Oo=br.getBuffer(en.buffer),bs="type"in en?Ei[en.type]:Oo.dtype,Gs=!!en.normalized,rl=en.size|0,zs=en.offset|0,$o=en.stride|0,Aa=en.divisor|0)),os=Dt.state,Dt.state=Lo,_l=Dt.x,Dt.x=xs,Ss=Dt.y,Dt.y=ks,po=Dt.z,Dt.z=Ea,go=Dt.w,Dt.w=Jn,ss=Dt.buffer,Dt.buffer=Oo,qo=Dt.size,Dt.size=rl,zo=Dt.normalized,Dt.normalized=Gs,io=Dt.type,Dt.type=bs,Io=Dt.offset,Dt.offset=zs,Da=Dt.stride,Dt.stride=$o,vs=Dt.divisor,Dt.divisor=Aa,fs=L.call(this,rt,Bi,rn),Yr.offset=fs,cl=!1,el=1,Hs=0,Ro=0,tl=0,Fs=0,hl=null,Fa=0,Ms=!1,jo=5126,Rs=0,Is=0,Bs=0,ge(Yr)?(cl=!0,hl=br.createStream(34962,Yr),jo=hl.dtype):(hl=br.getBuffer(Yr),hl?jo=hl.dtype:"constant"in Yr?(el=2,typeof Yr.constant=="number"?(Hs=Yr.constant,Ro=tl=Fs=0):(Hs=Yr.constant.length>0?Yr.constant[0]:0,Ro=Yr.constant.length>1?Yr.constant[1]:0,tl=Yr.constant.length>2?Yr.constant[2]:0,Fs=Yr.constant.length>3?Yr.constant[3]:0)):(ge(Yr.buffer)?hl=br.createStream(34962,Yr.buffer):hl=br.getBuffer(Yr.buffer),jo="type"in Yr?Ei[Yr.type]:hl.dtype,Ms=!!Yr.normalized,Fa=Yr.size|0,Rs=Yr.offset|0,Is=Yr.stride|0,Bs=Yr.divisor|0)),At=Zt.state,Zt.state=el,Gt=Zt.x,Zt.x=Hs,wr=Zt.y,Zt.y=Ro,mr=Zt.z,Zt.z=tl,Or=Zt.w,Zt.w=Fs,gi=Zt.buffer,Zt.buffer=hl,Ti=Zt.size,Zt.size=Fa,ki=Zt.normalized,Zt.normalized=Ms,Ji=Zt.type,Zt.type=jo,Fn=Zt.offset,Zt.offset=Rs,Pi=Zt.stride,Zt.stride=Is,hi=Zt.divisor,Zt.divisor=Bs,Li=b.call(this,rt,Bi,rn),oi.offset=Li,Si=!1,Gn=1,ta=0,ya=0,ia=0,pa=0,va=null,zn=0,is=!1,Cs=5126,Ks=0,dl=0,xl=0,ge(oi)?(Si=!0,va=br.createStream(34962,oi),Cs=va.dtype):(va=br.getBuffer(oi),va?Cs=va.dtype:"constant"in oi?(Gn=2,typeof oi.constant=="number"?(ta=oi.constant,ya=ia=pa=0):(ta=oi.constant.length>0?oi.constant[0]:0,ya=oi.constant.length>1?oi.constant[1]:0,ia=oi.constant.length>2?oi.constant[2]:0,pa=oi.constant.length>3?oi.constant[3]:0)):(ge(oi.buffer)?va=br.createStream(34962,oi.buffer):va=br.getBuffer(oi.buffer),Cs="type"in oi?Ei[oi.type]:va.dtype,is=!!oi.normalized,zn=oi.size|0,Ks=oi.offset|0,dl=oi.stride|0,xl=oi.divisor|0)),Ol=Et.state,Et.state=Gn,bl=Et.x,Et.x=ta,eu=Et.y,Et.y=ya,Zl=Et.z,Et.z=ia,Vl=Et.w,Et.w=pa,ja=Et.buffer,Et.buffer=va,ns=Et.size,Et.size=zn,Js=Et.normalized,Et.normalized=is,cs=Et.type,Et.type=Cs,sl=Et.offset,Et.offset=Ks,ll=Et.stride,Et.stride=dl,il=Et.divisor,Et.divisor=xl,zl=Ut.vert,Ut.vert=Ae,Ml=Ut.frag,Ut.frag=at,Yt.dirty=!0,an(rt,Bi,rn),rt.viewportWidth=ft,rt.viewportHeight=tr,_r[0]=pr,_r[1]=gr,_r[2]=Zr,_r[3]=Ai,fe[0]=Qi,fe[1]=ni,fe[2]=Zi,fe[3]=aa,zt.blend_enable=Mn,dt[0]=Un,dt[1]=Ga,Pt[0]=ma,Pt[1]=oa,Pt[2]=ka,Pt[3]=so,zt.depth_enable=Kr,Vt[0]=ys,Vt[1]=uo,Vt[2]=ls,Vt[3]=$a,zt.scissor_enable=fo,mn&&(r.cpuTime+=performance.now()-ra),hr.count=wa,hr.instances=Co,hr.primitive=Po,Oe[Fe]=gn,Oe[ye]=Ha,Oe[Ve]=ao,Oe[ce]=Ko,Oe[Je]=Wi,Oe[nt]=Qa,Oe[gt]=da,Oe[Nt]=vo,Oe[it]=ps,Ye.state=co,Ye.x=mo,Ye.y=No,Ye.z=jn,Ye.w=Go,Ye.buffer=Ys,Ye.size=qs,Ye.normalized=Ns,Ye.type=Oa,Ye.offset=ha,Ye.stride=Vs,Ye.divisor=Ya,kt.state=_n,kt.x=Vn,kt.y=wo,kt.z=Ra,kt.w=Xn,kt.buffer=un,kt.size=$n,kt.normalized=Ka,kt.type=qn,kt.offset=Eo,kt.stride=Ja,kt.divisor=lo,Tt.state=eo,Tt.x=sa,Tt.y=es,Tt.z=Na,Tt.w=tn,Tt.buffer=Pa,Tt.size=to,Tt.normalized=yo,Tt.type=Jo,Tt.offset=Ao,Tt.stride=Dn,Tt.divisor=_a,Ca&&br.destroyStream(ts),St.state=za,St.x=ea,St.y=rs,St.z=$s,St.w=us,St.buffer=Ds,St.size=fl,St.normalized=as,St.type=Ma,St.offset=Qs,St.stride=ho,St.divisor=gs,Do&&br.destroyStream(Oo),Dt.state=os,Dt.x=_l,Dt.y=Ss,Dt.z=po,Dt.w=go,Dt.buffer=ss,Dt.size=qo,Dt.normalized=zo,Dt.type=io,Dt.offset=Io,Dt.stride=Da,Dt.divisor=vs,cl&&br.destroyStream(hl),Zt.state=At,Zt.x=Gt,Zt.y=wr,Zt.z=mr,Zt.w=Or,Zt.buffer=gi,Zt.size=Ti,Zt.normalized=ki,Zt.type=Ji,Zt.offset=Fn,Zt.stride=Pi,Zt.divisor=hi,Si&&br.destroyStream(va),Et.state=Ol,Et.x=bl,Et.y=eu,Et.z=Zl,Et.w=Vl,Et.buffer=ja,Et.size=ns,Et.normalized=Js,Et.type=cs,Et.offset=sl,Et.stride=ll,Et.divisor=il,Ut.vert=zl,Ut.frag=Ml,Yt.dirty=!0},batch:function(Bi,an){var rn,Fi,Ri,xn,xi,Xr,ft;if(rn=De.angle_instanced_arrays,Fi=Re.next,Fi!==Re.cur&&(Fi?Ue.bindFramebuffer(36160,Fi.framebuffer):Ue.bindFramebuffer(36160,null),Re.cur=Fi),Yt.dirty){var tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po;tr=zt.dither,tr!==Yt.dither&&(tr?Ue.enable(3024):Ue.disable(3024),Yt.dither=tr),pr=zt.depth_func,pr!==Yt.depth_func&&(Ue.depthFunc(pr),Yt.depth_func=pr),gr=Hr[0],Zr=Hr[1],(gr!==Dr[0]||Zr!==Dr[1])&&(Ue.depthRange(gr,Zr),Dr[0]=gr,Dr[1]=Zr),Ai=zt.depth_mask,Ai!==Yt.depth_mask&&(Ue.depthMask(Ai),Yt.depth_mask=Ai),Qi=Mr[0],ni=Mr[1],Zi=Mr[2],aa=Mr[3],(Qi!==Fr[0]||ni!==Fr[1]||Zi!==Fr[2]||aa!==Fr[3])&&(Ue.colorMask(Qi,ni,Zi,aa),Fr[0]=Qi,Fr[1]=ni,Fr[2]=Zi,Fr[3]=aa),Mn=zt.cull_enable,Mn!==Yt.cull_enable&&(Mn?Ue.enable(2884):Ue.disable(2884),Yt.cull_enable=Mn),Un=zt.cull_face,Un!==Yt.cull_face&&(Ue.cullFace(Un),Yt.cull_face=Un),Ga=zt.frontFace,Ga!==Yt.frontFace&&(Ue.frontFace(Ga),Yt.frontFace=Ga),ma=zt.lineWidth,ma!==Yt.lineWidth&&(Ue.lineWidth(ma),Yt.lineWidth=ma),oa=zt.polygonOffset_enable,oa!==Yt.polygonOffset_enable&&(oa?Ue.enable(32823):Ue.disable(32823),Yt.polygonOffset_enable=oa),ka=di[0],so=di[1],(ka!==Di[0]||so!==Di[1])&&(Ue.polygonOffset(ka,so),Di[0]=ka,Di[1]=so),Kr=zt.sample_alpha,Kr!==Yt.sample_alpha&&(Kr?Ue.enable(32926):Ue.disable(32926),Yt.sample_alpha=Kr),Ia=zt.sample_enable,Ia!==Yt.sample_enable&&(Ia?Ue.enable(32928):Ue.disable(32928),Yt.sample_enable=Ia),Yo=Ii[0],fa=Ii[1],(Yo!==Ci[0]||fa!==Ci[1])&&(Ue.sampleCoverage(Yo,fa),Ci[0]=Yo,Ci[1]=fa),kn=zt.stencil_enable,kn!==Yt.stencil_enable&&(kn?Ue.enable(2960):Ue.disable(2960),Yt.stencil_enable=kn),Ta=zt.stencil_mask,Ta!==Yt.stencil_mask&&(Ue.stencilMask(Ta),Yt.stencil_mask=Ta),ys=nn[0],uo=nn[1],ls=nn[2],(ys!==ii[0]||uo!==ii[1]||ls!==ii[2])&&(Ue.stencilFunc(ys,uo,ls),ii[0]=ys,ii[1]=uo,ii[2]=ls),$a=wi[0],fo=wi[1],mn=wi[2],ra=wi[3],($a!==Gi[0]||fo!==Gi[1]||mn!==Gi[2]||ra!==Gi[3])&&(Ue.stencilOpSeparate($a,fo,mn,ra),Gi[0]=$a,Gi[1]=fo,Gi[2]=mn,Gi[3]=ra),wa=Bt[0],ws=Bt[1],Co=Bt[2],Po=Bt[3],(wa!==yt[0]||ws!==yt[1]||Co!==yt[2]||Po!==yt[3])&&(Ue.stencilOpSeparate(wa,ws,Co,Po),yt[0]=wa,yt[1]=ws,yt[2]=Co,yt[3]=Po)}Ue.blendColor(0,0,0,0),de[0]=0,de[1]=0,de[2]=0,de[3]=0,wt?Ue.enable(3042):Ue.disable(3042),Yt.blend_enable=wt,Ue.blendEquationSeparate(32774,32774),It[0]=32774,It[1]=32774,Ue.blendFuncSeparate(770,771,773,1),rr[0]=770,rr[1]=771,rr[2]=773,rr[3]=1,vt?Ue.enable(2929):Ue.disable(2929),Yt.depth_enable=vt,st?Ue.enable(3089):Ue.disable(3089),Yt.scissor_enable=st,Ri=Yt.profile,Ri&&(xn=performance.now(),r.count+=an),Ue.useProgram(f.program),xi=De.angle_instanced_arrays;var ji,gn,Ps,Ha,Sn,ao,Ba,Ko;for(xe.setVAO(null),ji=h.location,gn=Ie[ji],gn.buffer||Ue.enableVertexAttribArray(ji),(gn.type!==5126||gn.size!==2||gn.buffer!==c||gn.normalized!==!1||gn.offset!==16||gn.stride!==24)&&(Ue.bindBuffer(34962,c.buffer),Ue.vertexAttribPointer(ji,2,5126,!1,24,16),gn.type=5126,gn.size=2,gn.buffer=c,gn.normalized=!1,gn.offset=16,gn.stride=24),gn.divisor!==0&&(xi.vertexAttribDivisorANGLE(ji,0),gn.divisor=0),Ps=x.location,Ha=Ie[Ps],Ha.buffer||Ue.enableVertexAttribArray(Ps),(Ha.type!==5126||Ha.size!==2||Ha.buffer!==c||Ha.normalized!==!1||Ha.offset!==0||Ha.stride!==24)&&(Ue.bindBuffer(34962,c.buffer),Ue.vertexAttribPointer(Ps,2,5126,!1,24,0),Ha.type=5126,Ha.size=2,Ha.buffer=c,Ha.normalized=!1,Ha.offset=0,Ha.stride=24),Ha.divisor!==0&&(xi.vertexAttribDivisorANGLE(Ps,0),Ha.divisor=0),Sn=k.location,ao=Ie[Sn],ao.buffer||Ue.enableVertexAttribArray(Sn),(ao.type!==5126||ao.size!==2||ao.buffer!==c||ao.normalized!==!1||ao.offset!==8||ao.stride!==24)&&(Ue.bindBuffer(34962,c.buffer),Ue.vertexAttribPointer(Sn,2,5126,!1,24,8),ao.type=5126,ao.size=2,ao.buffer=c,ao.normalized=!1,ao.offset=8,ao.stride=24),ao.divisor!==0&&(xi.vertexAttribDivisorANGLE(Sn,0),ao.divisor=0),Ba=hr.elements,Ba?Ue.bindBuffer(34963,Ba.buffer.buffer):xe.currentVAO&&(Ba=yr.getElements(xe.currentVAO.elements),Ba&&Ue.bindBuffer(34963,Ba.buffer.buffer)),Ko=hr.offset,Xr=0;Xr0?ti.constant[0]:0,qs=ti.constant.length>1?ti.constant[1]:0,Ns=ti.constant.length>2?ti.constant[2]:0,Oa=ti.constant.length>3?ti.constant[3]:0)):(ge(ti.buffer)?ha=br.createStream(34962,ti.buffer):ha=br.getBuffer(ti.buffer),_n="type"in ti?Ei[ti.type]:ha.dtype,Ya=!!ti.normalized,Vs=ti.size|0,Vn=ti.offset|0,wo=ti.stride|0,Ra=ti.divisor|0)),Xn=p.location,un=Ie[Xn],Go===1?(un.buffer||Ue.enableVertexAttribArray(Xn),$n=Vs||4,(un.type!==_n||un.size!==$n||un.buffer!==ha||un.normalized!==Ya||un.offset!==Vn||un.stride!==wo)&&(Ue.bindBuffer(34962,ha.buffer),Ue.vertexAttribPointer(Xn,$n,_n,Ya,wo,Vn),un.type=_n,un.size=$n,un.buffer=ha,un.normalized=Ya,un.offset=Vn,un.stride=wo),un.divisor!==Ra&&(xi.vertexAttribDivisorANGLE(Xn,Ra),un.divisor=Ra)):(un.buffer&&(Ue.disableVertexAttribArray(Xn),un.buffer=null),(un.x!==Ys||un.y!==qs||un.z!==Ns||un.w!==Oa)&&(Ue.vertexAttrib4f(Xn,Ys,qs,Ns,Oa),un.x=Ys,un.y=qs,un.z=Ns,un.w=Oa)),Ka=b.call(this,rt,ft,Xr),oi.offset=Ka,qn=!1,Eo=1,Ja=0,lo=0,eo=0,sa=0,es=null,Na=0,tn=!1,Pa=5126,to=0,yo=0,Jo=0,ge(oi)?(qn=!0,es=br.createStream(34962,oi),Pa=es.dtype):(es=br.getBuffer(oi),es?Pa=es.dtype:"constant"in oi?(Eo=2,typeof oi.constant=="number"?(Ja=oi.constant,lo=eo=sa=0):(Ja=oi.constant.length>0?oi.constant[0]:0,lo=oi.constant.length>1?oi.constant[1]:0,eo=oi.constant.length>2?oi.constant[2]:0,sa=oi.constant.length>3?oi.constant[3]:0)):(ge(oi.buffer)?es=br.createStream(34962,oi.buffer):es=br.getBuffer(oi.buffer),Pa="type"in oi?Ei[oi.type]:es.dtype,tn=!!oi.normalized,Na=oi.size|0,to=oi.offset|0,yo=oi.stride|0,Jo=oi.divisor|0)),Ao=v.location,Dn=Ie[Ao],Eo===1?(Dn.buffer||Ue.enableVertexAttribArray(Ao),_a=Na||4,(Dn.type!==Pa||Dn.size!==_a||Dn.buffer!==es||Dn.normalized!==tn||Dn.offset!==to||Dn.stride!==yo)&&(Ue.bindBuffer(34962,es.buffer),Ue.vertexAttribPointer(Ao,_a,Pa,tn,yo,to),Dn.type=Pa,Dn.size=_a,Dn.buffer=es,Dn.normalized=tn,Dn.offset=to,Dn.stride=yo),Dn.divisor!==Jo&&(xi.vertexAttribDivisorANGLE(Ao,Jo),Dn.divisor=Jo)):(Dn.buffer&&(Ue.disableVertexAttribArray(Ao),Dn.buffer=null),(Dn.x!==Ja||Dn.y!==lo||Dn.z!==eo||Dn.w!==sa)&&(Ue.vertexAttrib4f(Ao,Ja,lo,eo,sa),Dn.x=Ja,Dn.y=lo,Dn.z=eo,Dn.w=sa)),Ws=E.call(this,rt,ft,Xr),en.offset=Ws,Ca=!1,Es=1,Ts=0,Ho=0,Wa=0,To=0,ts=null,Wo=0,qa=!1,ln=5126,Bo=0,ko=0,oo=0,ge(en)?(Ca=!0,ts=br.createStream(34962,en),ln=ts.dtype):(ts=br.getBuffer(en),ts?ln=ts.dtype:"constant"in en?(Es=2,typeof en.constant=="number"?(Ts=en.constant,Ho=Wa=To=0):(Ts=en.constant.length>0?en.constant[0]:0,Ho=en.constant.length>1?en.constant[1]:0,Wa=en.constant.length>2?en.constant[2]:0,To=en.constant.length>3?en.constant[3]:0)):(ge(en.buffer)?ts=br.createStream(34962,en.buffer):ts=br.getBuffer(en.buffer),ln="type"in en?Ei[en.type]:ts.dtype,qa=!!en.normalized,Wo=en.size|0,Bo=en.offset|0,ko=en.stride|0,oo=en.divisor|0)),za=T.location,ea=Ie[za],Es===1?(ea.buffer||Ue.enableVertexAttribArray(za),rs=Wo||2,(ea.type!==ln||ea.size!==rs||ea.buffer!==ts||ea.normalized!==qa||ea.offset!==Bo||ea.stride!==ko)&&(Ue.bindBuffer(34962,ts.buffer),Ue.vertexAttribPointer(za,rs,ln,qa,ko,Bo),ea.type=ln,ea.size=rs,ea.buffer=ts,ea.normalized=qa,ea.offset=Bo,ea.stride=ko),ea.divisor!==oo&&(xi.vertexAttribDivisorANGLE(za,oo),ea.divisor=oo)):(ea.buffer&&(Ue.disableVertexAttribArray(za),ea.buffer=null),(ea.x!==Ts||ea.y!==Ho||ea.z!==Wa||ea.w!==To)&&(Ue.vertexAttrib4f(za,Ts,Ho,Wa,To),ea.x=Ts,ea.y=Ho,ea.z=Wa,ea.w=To)),$s=L.call(this,rt,ft,Xr),Yr.offset=$s,us=!1,Ds=1,fl=0,as=0,Ma=0,Qs=0,ho=null,gs=0,Vo=!1,Do=5126,Lo=0,xs=0,ks=0,ge(Yr)?(us=!0,ho=br.createStream(34962,Yr),Do=ho.dtype):(ho=br.getBuffer(Yr),ho?Do=ho.dtype:"constant"in Yr?(Ds=2,typeof Yr.constant=="number"?(fl=Yr.constant,as=Ma=Qs=0):(fl=Yr.constant.length>0?Yr.constant[0]:0,as=Yr.constant.length>1?Yr.constant[1]:0,Ma=Yr.constant.length>2?Yr.constant[2]:0,Qs=Yr.constant.length>3?Yr.constant[3]:0)):(ge(Yr.buffer)?ho=br.createStream(34962,Yr.buffer):ho=br.getBuffer(Yr.buffer),Do="type"in Yr?Ei[Yr.type]:ho.dtype,Vo=!!Yr.normalized,gs=Yr.size|0,Lo=Yr.offset|0,xs=Yr.stride|0,ks=Yr.divisor|0)),Ea=_.location,Jn=Ie[Ea],Ds===1?(Jn.buffer||Ue.enableVertexAttribArray(Ea),Oo=gs||2,(Jn.type!==Do||Jn.size!==Oo||Jn.buffer!==ho||Jn.normalized!==Vo||Jn.offset!==Lo||Jn.stride!==xs)&&(Ue.bindBuffer(34962,ho.buffer),Ue.vertexAttribPointer(Ea,Oo,Do,Vo,xs,Lo),Jn.type=Do,Jn.size=Oo,Jn.buffer=ho,Jn.normalized=Vo,Jn.offset=Lo,Jn.stride=xs),Jn.divisor!==ks&&(xi.vertexAttribDivisorANGLE(Ea,ks),Jn.divisor=ks)):(Jn.buffer&&(Ue.disableVertexAttribArray(Ea),Jn.buffer=null),(Jn.x!==fl||Jn.y!==as||Jn.z!==Ma||Jn.w!==Qs)&&(Ue.vertexAttrib4f(Ea,fl,as,Ma,Qs),Jn.x=fl,Jn.y=as,Jn.z=Ma,Jn.w=Qs)),rl=ft.capSize,(!Xr||Gs!==rl)&&(Gs=rl,Ue.uniform1f(C.location,rl)),bs=ft.lineWidth,(!Xr||zs!==bs)&&(zs=bs,Ue.uniform1f(S.location,bs)),$o=ft.opacity,(!Xr||Aa!==$o)&&(Aa=$o,Ue.uniform1f(m.location,$o)),os=ft.scale,_l=os[0],po=os[1],(!Xr||Ss!==_l||go!==po)&&(Ss=_l,go=po,Ue.uniform2f(P.location,_l,po)),ss=ft.scaleFract,qo=ss[0],io=ss[1],(!Xr||zo!==qo||Io!==io)&&(zo=qo,Io=io,Ue.uniform2f(A.location,qo,io)),Da=ft.translate,vs=Da[0],cl=Da[1],(!Xr||fs!==vs||el!==cl)&&(fs=vs,el=cl,Ue.uniform2f(B.location,vs,cl)),Hs=ft.translateFract,Ro=Hs[0],Fs=Hs[1],(!Xr||tl!==Ro||hl!==Fs)&&(tl=Ro,hl=Fs,Ue.uniform2f(F.location,Ro,Fs)),Fa=G.call(this,rt,ft,Xr),Ms=Fa[0],Rs=Fa[1],Bs=Fa[2],Gt=Fa[3],(!Xr||jo!==Ms||Is!==Rs||At!==Bs||wr!==Gt)&&(jo=Ms,Is=Rs,At=Bs,wr=Gt,Ue.uniform4f(U.location,Ms,Rs,Bs,Gt)),mr=ft.count,mr>0?Ba?xi.drawElementsInstancedANGLE(4,36,Ba.type,Ko<<(Ba.type-5121>>1),mr):xi.drawArraysInstancedANGLE(4,Ko,36,mr):mr<0&&(Ba?Ue.drawElements(4,36,Ba.type,Ko<<(Ba.type-5121>>1)):Ue.drawArrays(4,Ko,36)),rt.viewportWidth=da,rt.viewportHeight=la,jn&&br.destroyStream(ha),qn&&br.destroyStream(es),Ca&&br.destroyStream(ts),us&&br.destroyStream(ho)}Yt.dirty=!0,xe.setVAO(null),Ri&&(r.cpuTime+=performance.now()-xn)}}}});var z8=Te((Z_r,qNe)=>{qNe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Ce,Le,pe,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Je,nt,gt,Nt,it,Ye,kt,Tt,St,Dt,Zt,Et){"use strict";var Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,de,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr;return Ae=t.gl,at=t.context,wt=t.strings,vt=t.next,st=t.current,Ue=t.draw,rt=t.elements,$e=t.buffer,zt=t.shader,Yt=t.attributes,hr=t.vao,yr=t.uniforms,br=t.framebuffer,Ut=t.extensions,Ie=t.timer,xe=t.isBufferArgs,Oe=vt.blend_color,Re=st.blend_color,De=vt.blend_equation,ct=st.blend_equation,ge=vt.blend_func,fe=st.blend_func,de=vt.depth_range,dt=st.depth_range,It=vt.colorMask,Pt=st.colorMask,rr=vt.polygonOffset_offset,Hr=st.polygonOffset_offset,Dr=vt.sample_coverage,Mr=st.sample_coverage,Fr=vt.stencil_func,di=st.stencil_func,Di=vt.stencil_opFront,Ii=st.stencil_opFront,Ci=vt.stencil_opBack,nn=st.stencil_opBack,ii=vt.scissor_box,wi=st.scissor_box,Gi=vt.viewport,Bt=st.viewport,yt={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Vt={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Wt={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},_r={add:32774,subtract:32778,"reverse subtract":32779},Lr={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ur={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ir={cw:2304,ccw:2305},Gr={},Gr.offset=4,Gr.stride=8,jr={},jr.offset=0,jr.stride=8,{draw:function(yi){var Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo;if(Ei=Ut.angle_instanced_arrays,Vi=br.next,Vi!==br.cur&&(Vi?Ae.bindFramebuffer(36160,Vi.framebuffer):Ae.bindFramebuffer(36160,null),br.cur=Vi),st.dirty){var za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs;za=vt.dither,za!==st.dither&&(za?Ae.enable(3024):Ae.disable(3024),st.dither=za),ea=De[0],rs=De[1],(ea!==ct[0]||rs!==ct[1])&&(Ae.blendEquationSeparate(ea,rs),ct[0]=ea,ct[1]=rs),$s=vt.depth_func,$s!==st.depth_func&&(Ae.depthFunc($s),st.depth_func=$s),us=de[0],Ds=de[1],(us!==dt[0]||Ds!==dt[1])&&(Ae.depthRange(us,Ds),dt[0]=us,dt[1]=Ds),fl=vt.depth_mask,fl!==st.depth_mask&&(Ae.depthMask(fl),st.depth_mask=fl),as=It[0],Ma=It[1],Qs=It[2],ho=It[3],(as!==Pt[0]||Ma!==Pt[1]||Qs!==Pt[2]||ho!==Pt[3])&&(Ae.colorMask(as,Ma,Qs,ho),Pt[0]=as,Pt[1]=Ma,Pt[2]=Qs,Pt[3]=ho),gs=vt.cull_enable,gs!==st.cull_enable&&(gs?Ae.enable(2884):Ae.disable(2884),st.cull_enable=gs),Vo=vt.cull_face,Vo!==st.cull_face&&(Ae.cullFace(Vo),st.cull_face=Vo),Do=vt.frontFace,Do!==st.frontFace&&(Ae.frontFace(Do),st.frontFace=Do),Lo=vt.lineWidth,Lo!==st.lineWidth&&(Ae.lineWidth(Lo),st.lineWidth=Lo),xs=vt.polygonOffset_enable,xs!==st.polygonOffset_enable&&(xs?Ae.enable(32823):Ae.disable(32823),st.polygonOffset_enable=xs),ks=rr[0],Ea=rr[1],(ks!==Hr[0]||Ea!==Hr[1])&&(Ae.polygonOffset(ks,Ea),Hr[0]=ks,Hr[1]=Ea),Jn=vt.sample_alpha,Jn!==st.sample_alpha&&(Jn?Ae.enable(32926):Ae.disable(32926),st.sample_alpha=Jn),Oo=vt.sample_enable,Oo!==st.sample_enable&&(Oo?Ae.enable(32928):Ae.disable(32928),st.sample_enable=Oo),rl=Dr[0],Gs=Dr[1],(rl!==Mr[0]||Gs!==Mr[1])&&(Ae.sampleCoverage(rl,Gs),Mr[0]=rl,Mr[1]=Gs),bs=vt.stencil_mask,bs!==st.stencil_mask&&(Ae.stencilMask(bs),st.stencil_mask=bs),zs=Fr[0],$o=Fr[1],Aa=Fr[2],(zs!==di[0]||$o!==di[1]||Aa!==di[2])&&(Ae.stencilFunc(zs,$o,Aa),di[0]=zs,di[1]=$o,di[2]=Aa),os=Di[0],_l=Di[1],Ss=Di[2],po=Di[3],(os!==Ii[0]||_l!==Ii[1]||Ss!==Ii[2]||po!==Ii[3])&&(Ae.stencilOpSeparate(os,_l,Ss,po),Ii[0]=os,Ii[1]=_l,Ii[2]=Ss,Ii[3]=po),go=Ci[0],ss=Ci[1],qo=Ci[2],zo=Ci[3],(go!==nn[0]||ss!==nn[1]||qo!==nn[2]||zo!==nn[3])&&(Ae.stencilOpSeparate(go,ss,qo,zo),nn[0]=go,nn[1]=ss,nn[2]=qo,nn[3]=zo),io=vt.scissor_enable,io!==st.scissor_enable&&(io?Ae.enable(3089):Ae.disable(3089),st.scissor_enable=io),Io=ii[0],Da=ii[1],vs=ii[2],fs=ii[3],(Io!==wi[0]||Da!==wi[1]||vs!==wi[2]||fs!==wi[3])&&(Ae.scissor(Io,Da,vs,fs),wi[0]=Io,wi[1]=Da,wi[2]=vs,wi[3]=fs)}ti=this.viewport,en=ti.x|0,Yr=ti.y|0,oi="width"in ti?ti.width|0:at.framebufferWidth-en,Bi="height"in ti?ti.height|0:at.framebufferHeight-Yr,an=at.viewportWidth,at.viewportWidth=oi,rn=at.viewportHeight,at.viewportHeight=Bi,Ae.viewport(en,Yr,oi,Bi),Bt[0]=en,Bt[1]=Yr,Bt[2]=oi,Bt[3]=Bi,Ae.blendColor(0,0,0,1),Re[0]=0,Re[1]=0,Re[2]=0,Re[3]=1,n?Ae.enable(3042):Ae.disable(3042),st.blend_enable=n,Ae.blendFuncSeparate(770,771,773,1),fe[0]=770,fe[1]=771,fe[2]=773,fe[3]=1,i?Ae.enable(2929):Ae.disable(2929),st.depth_enable=i,a?Ae.enable(2960):Ae.disable(2960),st.stencil_enable=a,Fi=st.profile,Fi&&(Ri=performance.now(),r.count++),Ae.useProgram(o.program),xn=Ut.angle_instanced_arrays,hr.setVAO(null),xi=this.charBuffer,Xr=!1,ft=1,tr=0,pr=0,gr=0,Zr=0,Ai=null,Qi=0,ni=!1,Zi=5126,aa=0,Mn=0,Un=0,xe(xi)?(Xr=!0,Ai=$e.createStream(34962,xi),Zi=Ai.dtype):(Ai=$e.getBuffer(xi),Ai?Zi=Ai.dtype:"constant"in xi?(ft=2,typeof xi.constant=="number"?(tr=xi.constant,pr=gr=Zr=0):(tr=xi.constant.length>0?xi.constant[0]:0,pr=xi.constant.length>1?xi.constant[1]:0,gr=xi.constant.length>2?xi.constant[2]:0,Zr=xi.constant.length>3?xi.constant[3]:0)):(xe(xi.buffer)?Ai=$e.createStream(34962,xi.buffer):Ai=$e.getBuffer(xi.buffer),Zi="type"in xi?Ur[xi.type]:Ai.dtype,ni=!!xi.normalized,Qi=xi.size|0,aa=xi.offset|0,Mn=xi.stride|0,Un=xi.divisor|0)),Ga=s.location,ma=Yt[Ga],ft===1?(ma.buffer||Ae.enableVertexAttribArray(Ga),oa=Qi||1,(ma.type!==Zi||ma.size!==oa||ma.buffer!==Ai||ma.normalized!==ni||ma.offset!==aa||ma.stride!==Mn)&&(Ae.bindBuffer(34962,Ai.buffer),Ae.vertexAttribPointer(Ga,oa,Zi,ni,Mn,aa),ma.type=Zi,ma.size=oa,ma.buffer=Ai,ma.normalized=ni,ma.offset=aa,ma.stride=Mn),ma.divisor!==Un&&(xn.vertexAttribDivisorANGLE(Ga,Un),ma.divisor=Un)):(ma.buffer&&(Ae.disableVertexAttribArray(Ga),ma.buffer=null),(ma.x!==tr||ma.y!==pr||ma.z!==gr||ma.w!==Zr)&&(Ae.vertexAttrib4f(Ga,tr,pr,gr,Zr),ma.x=tr,ma.y=pr,ma.z=gr,ma.w=Zr)),ka=this.sizeBuffer,Gr.buffer=ka,so=!1,Kr=1,Ia=0,Yo=0,fa=0,kn=0,Ta=null,ys=0,uo=!1,ls=5126,$a=0,fo=0,mn=0,xe(Gr)?(so=!0,Ta=$e.createStream(34962,Gr),ls=Ta.dtype):(Ta=$e.getBuffer(Gr),Ta?ls=Ta.dtype:"constant"in Gr?(Kr=2,typeof Gr.constant=="number"?(Ia=Gr.constant,Yo=fa=kn=0):(Ia=Gr.constant.length>0?Gr.constant[0]:0,Yo=Gr.constant.length>1?Gr.constant[1]:0,fa=Gr.constant.length>2?Gr.constant[2]:0,kn=Gr.constant.length>3?Gr.constant[3]:0)):(xe(Gr.buffer)?Ta=$e.createStream(34962,Gr.buffer):Ta=$e.getBuffer(Gr.buffer),ls="type"in Gr?Ur[Gr.type]:Ta.dtype,uo=!!Gr.normalized,ys=Gr.size|0,$a=Gr.offset|0,fo=Gr.stride|0,mn=Gr.divisor|0)),ra=u.location,wa=Yt[ra],Kr===1?(wa.buffer||Ae.enableVertexAttribArray(ra),ws=ys||1,(wa.type!==ls||wa.size!==ws||wa.buffer!==Ta||wa.normalized!==uo||wa.offset!==$a||wa.stride!==fo)&&(Ae.bindBuffer(34962,Ta.buffer),Ae.vertexAttribPointer(ra,ws,ls,uo,fo,$a),wa.type=ls,wa.size=ws,wa.buffer=Ta,wa.normalized=uo,wa.offset=$a,wa.stride=fo),wa.divisor!==mn&&(xn.vertexAttribDivisorANGLE(ra,mn),wa.divisor=mn)):(wa.buffer&&(Ae.disableVertexAttribArray(ra),wa.buffer=null),(wa.x!==Ia||wa.y!==Yo||wa.z!==fa||wa.w!==kn)&&(Ae.vertexAttrib4f(ra,Ia,Yo,fa,kn),wa.x=Ia,wa.y=Yo,wa.z=fa,wa.w=kn)),Co=this.position,Po=!1,ji=1,gn=0,Ps=0,Ha=0,Sn=0,ao=null,Ba=0,Ko=!1,Qo=5126,Wi=0,Sa=0,Qa=0,xe(Co)?(Po=!0,ao=$e.createStream(34962,Co),Qo=ao.dtype):(ao=$e.getBuffer(Co),ao?Qo=ao.dtype:"constant"in Co?(ji=2,typeof Co.constant=="number"?(gn=Co.constant,Ps=Ha=Sn=0):(gn=Co.constant.length>0?Co.constant[0]:0,Ps=Co.constant.length>1?Co.constant[1]:0,Ha=Co.constant.length>2?Co.constant[2]:0,Sn=Co.constant.length>3?Co.constant[3]:0)):(xe(Co.buffer)?ao=$e.createStream(34962,Co.buffer):ao=$e.getBuffer(Co.buffer),Qo="type"in Co?Ur[Co.type]:ao.dtype,Ko=!!Co.normalized,Ba=Co.size|0,Wi=Co.offset|0,Sa=Co.stride|0,Qa=Co.divisor|0)),vn=l.location,da=Yt[vn],ji===1?(da.buffer||Ae.enableVertexAttribArray(vn),la=Ba||2,(da.type!==Qo||da.size!==la||da.buffer!==ao||da.normalized!==Ko||da.offset!==Wi||da.stride!==Sa)&&(Ae.bindBuffer(34962,ao.buffer),Ae.vertexAttribPointer(vn,la,Qo,Ko,Sa,Wi),da.type=Qo,da.size=la,da.buffer=ao,da.normalized=Ko,da.offset=Wi,da.stride=Sa),da.divisor!==Qa&&(xn.vertexAttribDivisorANGLE(vn,Qa),da.divisor=Qa)):(da.buffer&&(Ae.disableVertexAttribArray(vn),da.buffer=null),(da.x!==gn||da.y!==Ps||da.z!==Ha||da.w!==Sn)&&(Ae.vertexAttrib4f(vn,gn,Ps,Ha,Sn),da.x=gn,da.y=Ps,da.z=Ha,da.w=Sn)),vo=this.sizeBuffer,jr.buffer=vo,As=!1,ps=1,co=0,mo=0,No=0,jn=0,Go=null,Ys=0,qs=!1,Ns=5126,Oa=0,ha=0,Vs=0,xe(jr)?(As=!0,Go=$e.createStream(34962,jr),Ns=Go.dtype):(Go=$e.getBuffer(jr),Go?Ns=Go.dtype:"constant"in jr?(ps=2,typeof jr.constant=="number"?(co=jr.constant,mo=No=jn=0):(co=jr.constant.length>0?jr.constant[0]:0,mo=jr.constant.length>1?jr.constant[1]:0,No=jr.constant.length>2?jr.constant[2]:0,jn=jr.constant.length>3?jr.constant[3]:0)):(xe(jr.buffer)?Go=$e.createStream(34962,jr.buffer):Go=$e.getBuffer(jr.buffer),Ns="type"in jr?Ur[jr.type]:Go.dtype,qs=!!jr.normalized,Ys=jr.size|0,Oa=jr.offset|0,ha=jr.stride|0,Vs=jr.divisor|0)),Ya=f.location,_n=Yt[Ya],ps===1?(_n.buffer||Ae.enableVertexAttribArray(Ya),Vn=Ys||1,(_n.type!==Ns||_n.size!==Vn||_n.buffer!==Go||_n.normalized!==qs||_n.offset!==Oa||_n.stride!==ha)&&(Ae.bindBuffer(34962,Go.buffer),Ae.vertexAttribPointer(Ya,Vn,Ns,qs,ha,Oa),_n.type=Ns,_n.size=Vn,_n.buffer=Go,_n.normalized=qs,_n.offset=Oa,_n.stride=ha),_n.divisor!==Vs&&(xn.vertexAttribDivisorANGLE(Ya,Vs),_n.divisor=Vs)):(_n.buffer&&(Ae.disableVertexAttribArray(Ya),_n.buffer=null),(_n.x!==co||_n.y!==mo||_n.z!==No||_n.w!==jn)&&(Ae.vertexAttrib4f(Ya,co,mo,No,jn),_n.x=co,_n.y=mo,_n.z=No,_n.w=jn)),wo=yi.align,Ae.uniform1f(c.location,wo),Ra=d.call(this,at,yi,0),Ra&&Ra._reglType==="framebuffer"&&(Ra=Ra.color[0]),Xn=Ra._texture,Ae.uniform1i(h.location,Xn.bind()),un=x.call(this,at,yi,0),$n=un[0],Ka=un[1],Ae.uniform2f(p.location,$n,Ka),qn=v.call(this,at,yi,0),Eo=qn[0],Ja=qn[1],Ae.uniform2f(b.location,Eo,Ja),lo=yi.baseline,Ae.uniform1f(k.location,lo),eo=T.call(this,at,yi,0),Ae.uniform1f(E.location,eo),sa=yi.color,es=sa[0],Na=sa[1],tn=sa[2],Pa=sa[3],Ae.uniform4f(L.location,es,Na,tn,Pa),to=C.call(this,at,yi,0),Ae.uniform1f(_.location,to),yo=yi.opacity,Ae.uniform1f(S.location,yo),Jo=yi.positionOffset,Ao=Jo[0],Dn=Jo[1],Ae.uniform2f(m.location,Ao,Dn),_a=this.scale,Ws=_a[0],Ca=_a[1],Ae.uniform2f(P.location,Ws,Ca),Es=this.translate,Ts=Es[0],Ho=Es[1],Ae.uniform2f(A.location,Ts,Ho),Wa=this.viewportArray,To=Wa[0],ts=Wa[1],Wo=Wa[2],qa=Wa[3],Ae.uniform4f(B.location,To,ts,Wo,qa),ln=Ue.elements,ln?Ae.bindBuffer(34963,ln.buffer.buffer):hr.currentVAO&&(ln=rt.getElements(hr.currentVAO.elements),ln&&Ae.bindBuffer(34963,ln.buffer.buffer)),Bo=yi.offset,ko=yi.count,ko&&(oo=Ue.instances,oo>0?ln?xn.drawElementsInstancedANGLE(0,ko,ln.type,Bo<<(ln.type-5121>>1),oo):xn.drawArraysInstancedANGLE(0,Bo,ko,oo):oo<0&&(ln?Ae.drawElements(0,ko,ln.type,Bo<<(ln.type-5121>>1)):Ae.drawArrays(0,Bo,ko)),st.dirty=!0,hr.setVAO(null),at.viewportWidth=an,at.viewportHeight=rn,Fi&&(r.cpuTime+=performance.now()-Ri),Xr&&$e.destroyStream(Ai),so&&$e.destroyStream(Ta),Po&&$e.destroyStream(ao),As&&$e.destroyStream(Go),Xn.unbind())},scope:function(yi,Ei,Vi){var ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa;ti=this.viewport,en=ti.x|0,Yr=ti.y|0,oi="width"in ti?ti.width|0:at.framebufferWidth-en,Bi="height"in ti?ti.height|0:at.framebufferHeight-Yr,an=at.viewportWidth,at.viewportWidth=oi,rn=at.viewportHeight,at.viewportHeight=Bi,Fi=Gi[0],Gi[0]=en,Ri=Gi[1],Gi[1]=Yr,xn=Gi[2],Gi[2]=oi,xi=Gi[3],Gi[3]=Bi,Xr=Oe[0],Oe[0]=F,ft=Oe[1],Oe[1]=U,tr=Oe[2],Oe[2]=G,pr=Oe[3],Oe[3]=j,gr=vt.blend_enable,vt.blend_enable=H,Zr=ge[0],ge[0]=N,Ai=ge[1],ge[1]=W,Qi=ge[2],ge[2]=re,ni=ge[3],ge[3]=ae,Zi=vt.depth_enable,vt.depth_enable=be,aa=vt.stencil_enable,vt.stencil_enable=Ce,Mn=st.profile,Mn&&(Un=performance.now(),r.count++),Ga=yi.offset,ma=Ue.offset,Ue.offset=Ga,oa=yi.count,ka=Ue.count,Ue.count=oa,so=Ue.primitive,Ue.primitive=Le,Kr=v.call(this,at,yi,Vi),Ia=yr[pe],yr[pe]=Kr,Yo=x.call(this,at,yi,Vi),fa=yr[te],yr[te]=Yo,kn=d.call(this,at,yi,Vi),Ta=yr[ke],yr[ke]=kn,ys=T.call(this,at,yi,Vi),uo=yr[Ee],yr[Ee]=ys,ls=C.call(this,at,yi,Vi),$a=yr[Me],yr[Me]=ls,fo=yi.color,mn=yr[Ne],yr[Ne]=fo,ra=yi.opacity,wa=yr[Fe],yr[Fe]=ra,ws=this.viewportArray,Co=yr[ye],yr[ye]=ws,Po=this.scale,ji=yr[Ve],yr[Ve]=Po,gn=yi.align,Ps=yr[ce],yr[ce]=gn,Ha=yi.baseline,Sn=yr[Je],yr[Je]=Ha,ao=this.translate,Ba=yr[nt],yr[nt]=ao,Ko=yi.positionOffset,Qo=yr[gt],yr[gt]=Ko,Wi=this.charBuffer,Sa=!1,Qa=1,vn=0,da=0,la=0,vo=0,As=null,ps=0,co=!1,mo=5126,No=0,jn=0,Go=0,xe(Wi)?(Sa=!0,As=$e.createStream(34962,Wi),mo=As.dtype):(As=$e.getBuffer(Wi),As?mo=As.dtype:"constant"in Wi?(Qa=2,typeof Wi.constant=="number"?(vn=Wi.constant,da=la=vo=0):(vn=Wi.constant.length>0?Wi.constant[0]:0,da=Wi.constant.length>1?Wi.constant[1]:0,la=Wi.constant.length>2?Wi.constant[2]:0,vo=Wi.constant.length>3?Wi.constant[3]:0)):(xe(Wi.buffer)?As=$e.createStream(34962,Wi.buffer):As=$e.getBuffer(Wi.buffer),mo="type"in Wi?Ur[Wi.type]:As.dtype,co=!!Wi.normalized,ps=Wi.size|0,No=Wi.offset|0,jn=Wi.stride|0,Go=Wi.divisor|0)),Ys=Nt.state,Nt.state=Qa,qs=Nt.x,Nt.x=vn,Ns=Nt.y,Nt.y=da,Oa=Nt.z,Nt.z=la,ha=Nt.w,Nt.w=vo,Vs=Nt.buffer,Nt.buffer=As,Ya=Nt.size,Nt.size=ps,_n=Nt.normalized,Nt.normalized=co,Vn=Nt.type,Nt.type=mo,wo=Nt.offset,Nt.offset=No,Ra=Nt.stride,Nt.stride=jn,Xn=Nt.divisor,Nt.divisor=Go,un=this.position,$n=!1,Ka=1,qn=0,Eo=0,Ja=0,lo=0,eo=null,sa=0,es=!1,Na=5126,tn=0,Pa=0,to=0,xe(un)?($n=!0,eo=$e.createStream(34962,un),Na=eo.dtype):(eo=$e.getBuffer(un),eo?Na=eo.dtype:"constant"in un?(Ka=2,typeof un.constant=="number"?(qn=un.constant,Eo=Ja=lo=0):(qn=un.constant.length>0?un.constant[0]:0,Eo=un.constant.length>1?un.constant[1]:0,Ja=un.constant.length>2?un.constant[2]:0,lo=un.constant.length>3?un.constant[3]:0)):(xe(un.buffer)?eo=$e.createStream(34962,un.buffer):eo=$e.getBuffer(un.buffer),Na="type"in un?Ur[un.type]:eo.dtype,es=!!un.normalized,sa=un.size|0,tn=un.offset|0,Pa=un.stride|0,to=un.divisor|0)),yo=it.state,it.state=Ka,Jo=it.x,it.x=qn,Ao=it.y,it.y=Eo,Dn=it.z,it.z=Ja,_a=it.w,it.w=lo,Ws=it.buffer,it.buffer=eo,Ca=it.size,it.size=sa,Es=it.normalized,it.normalized=es,Ts=it.type,it.type=Na,Ho=it.offset,it.offset=tn,Wa=it.stride,it.stride=Pa,To=it.divisor,it.divisor=to,ts=this.sizeBuffer,Gr.buffer=ts,Wo=!1,qa=1,ln=0,Bo=0,ko=0,oo=0,za=null,ea=0,rs=!1,$s=5126,us=0,Ds=0,fl=0,xe(Gr)?(Wo=!0,za=$e.createStream(34962,Gr),$s=za.dtype):(za=$e.getBuffer(Gr),za?$s=za.dtype:"constant"in Gr?(qa=2,typeof Gr.constant=="number"?(ln=Gr.constant,Bo=ko=oo=0):(ln=Gr.constant.length>0?Gr.constant[0]:0,Bo=Gr.constant.length>1?Gr.constant[1]:0,ko=Gr.constant.length>2?Gr.constant[2]:0,oo=Gr.constant.length>3?Gr.constant[3]:0)):(xe(Gr.buffer)?za=$e.createStream(34962,Gr.buffer):za=$e.getBuffer(Gr.buffer),$s="type"in Gr?Ur[Gr.type]:za.dtype,rs=!!Gr.normalized,ea=Gr.size|0,us=Gr.offset|0,Ds=Gr.stride|0,fl=Gr.divisor|0)),as=Ye.state,Ye.state=qa,Ma=Ye.x,Ye.x=ln,Qs=Ye.y,Ye.y=Bo,ho=Ye.z,Ye.z=ko,gs=Ye.w,Ye.w=oo,Vo=Ye.buffer,Ye.buffer=za,Do=Ye.size,Ye.size=ea,Lo=Ye.normalized,Ye.normalized=rs,xs=Ye.type,Ye.type=$s,ks=Ye.offset,Ye.offset=us,Ea=Ye.stride,Ye.stride=Ds,Jn=Ye.divisor,Ye.divisor=fl,Oo=this.sizeBuffer,jr.buffer=Oo,rl=!1,Gs=1,bs=0,zs=0,$o=0,Aa=0,os=null,_l=0,Ss=!1,po=5126,go=0,ss=0,qo=0,xe(jr)?(rl=!0,os=$e.createStream(34962,jr),po=os.dtype):(os=$e.getBuffer(jr),os?po=os.dtype:"constant"in jr?(Gs=2,typeof jr.constant=="number"?(bs=jr.constant,zs=$o=Aa=0):(bs=jr.constant.length>0?jr.constant[0]:0,zs=jr.constant.length>1?jr.constant[1]:0,$o=jr.constant.length>2?jr.constant[2]:0,Aa=jr.constant.length>3?jr.constant[3]:0)):(xe(jr.buffer)?os=$e.createStream(34962,jr.buffer):os=$e.getBuffer(jr.buffer),po="type"in jr?Ur[jr.type]:os.dtype,Ss=!!jr.normalized,_l=jr.size|0,go=jr.offset|0,ss=jr.stride|0,qo=jr.divisor|0)),zo=kt.state,kt.state=Gs,io=kt.x,kt.x=bs,Io=kt.y,kt.y=zs,Da=kt.z,kt.z=$o,vs=kt.w,kt.w=Aa,fs=kt.buffer,kt.buffer=os,cl=kt.size,kt.size=_l,el=kt.normalized,kt.normalized=Ss,Hs=kt.type,kt.type=po,Ro=kt.offset,kt.offset=go,tl=kt.stride,kt.stride=ss,Fs=kt.divisor,kt.divisor=qo,hl=zt.vert,zt.vert=Tt,Fa=zt.frag,zt.frag=St,st.dirty=!0,Ei(at,yi,Vi),at.viewportWidth=an,at.viewportHeight=rn,Gi[0]=Fi,Gi[1]=Ri,Gi[2]=xn,Gi[3]=xi,Oe[0]=Xr,Oe[1]=ft,Oe[2]=tr,Oe[3]=pr,vt.blend_enable=gr,ge[0]=Zr,ge[1]=Ai,ge[2]=Qi,ge[3]=ni,vt.depth_enable=Zi,vt.stencil_enable=aa,Mn&&(r.cpuTime+=performance.now()-Un),Ue.offset=ma,Ue.count=ka,Ue.primitive=so,yr[pe]=Ia,yr[te]=fa,yr[ke]=Ta,yr[Ee]=uo,yr[Me]=$a,yr[Ne]=mn,yr[Fe]=wa,yr[ye]=Co,yr[Ve]=ji,yr[ce]=Ps,yr[Je]=Sn,yr[nt]=Ba,yr[gt]=Qo,Sa&&$e.destroyStream(As),Nt.state=Ys,Nt.x=qs,Nt.y=Ns,Nt.z=Oa,Nt.w=ha,Nt.buffer=Vs,Nt.size=Ya,Nt.normalized=_n,Nt.type=Vn,Nt.offset=wo,Nt.stride=Ra,Nt.divisor=Xn,$n&&$e.destroyStream(eo),it.state=yo,it.x=Jo,it.y=Ao,it.z=Dn,it.w=_a,it.buffer=Ws,it.size=Ca,it.normalized=Es,it.type=Ts,it.offset=Ho,it.stride=Wa,it.divisor=To,Wo&&$e.destroyStream(za),Ye.state=as,Ye.x=Ma,Ye.y=Qs,Ye.z=ho,Ye.w=gs,Ye.buffer=Vo,Ye.size=Do,Ye.normalized=Lo,Ye.type=xs,Ye.offset=ks,Ye.stride=Ea,Ye.divisor=Jn,rl&&$e.destroyStream(os),kt.state=zo,kt.x=io,kt.y=Io,kt.z=Da,kt.w=vs,kt.buffer=fs,kt.size=cl,kt.normalized=el,kt.type=Hs,kt.offset=Ro,kt.stride=tl,kt.divisor=Fs,zt.vert=hl,zt.frag=Fa,st.dirty=!0},batch:function(yi,Ei){var Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft;if(Vi=Ut.angle_instanced_arrays,ti=br.next,ti!==br.cur&&(ti?Ae.bindFramebuffer(36160,ti.framebuffer):Ae.bindFramebuffer(36160,null),br.cur=ti),st.dirty){var tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so,Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao;tr=vt.dither,tr!==st.dither&&(tr?Ae.enable(3024):Ae.disable(3024),st.dither=tr),pr=De[0],gr=De[1],(pr!==ct[0]||gr!==ct[1])&&(Ae.blendEquationSeparate(pr,gr),ct[0]=pr,ct[1]=gr),Zr=vt.depth_func,Zr!==st.depth_func&&(Ae.depthFunc(Zr),st.depth_func=Zr),Ai=de[0],Qi=de[1],(Ai!==dt[0]||Qi!==dt[1])&&(Ae.depthRange(Ai,Qi),dt[0]=Ai,dt[1]=Qi),ni=vt.depth_mask,ni!==st.depth_mask&&(Ae.depthMask(ni),st.depth_mask=ni),Zi=It[0],aa=It[1],Mn=It[2],Un=It[3],(Zi!==Pt[0]||aa!==Pt[1]||Mn!==Pt[2]||Un!==Pt[3])&&(Ae.colorMask(Zi,aa,Mn,Un),Pt[0]=Zi,Pt[1]=aa,Pt[2]=Mn,Pt[3]=Un),Ga=vt.cull_enable,Ga!==st.cull_enable&&(Ga?Ae.enable(2884):Ae.disable(2884),st.cull_enable=Ga),ma=vt.cull_face,ma!==st.cull_face&&(Ae.cullFace(ma),st.cull_face=ma),oa=vt.frontFace,oa!==st.frontFace&&(Ae.frontFace(oa),st.frontFace=oa),ka=vt.lineWidth,ka!==st.lineWidth&&(Ae.lineWidth(ka),st.lineWidth=ka),so=vt.polygonOffset_enable,so!==st.polygonOffset_enable&&(so?Ae.enable(32823):Ae.disable(32823),st.polygonOffset_enable=so),Kr=rr[0],Ia=rr[1],(Kr!==Hr[0]||Ia!==Hr[1])&&(Ae.polygonOffset(Kr,Ia),Hr[0]=Kr,Hr[1]=Ia),Yo=vt.sample_alpha,Yo!==st.sample_alpha&&(Yo?Ae.enable(32926):Ae.disable(32926),st.sample_alpha=Yo),fa=vt.sample_enable,fa!==st.sample_enable&&(fa?Ae.enable(32928):Ae.disable(32928),st.sample_enable=fa),kn=Dr[0],Ta=Dr[1],(kn!==Mr[0]||Ta!==Mr[1])&&(Ae.sampleCoverage(kn,Ta),Mr[0]=kn,Mr[1]=Ta),ys=vt.stencil_mask,ys!==st.stencil_mask&&(Ae.stencilMask(ys),st.stencil_mask=ys),uo=Fr[0],ls=Fr[1],$a=Fr[2],(uo!==di[0]||ls!==di[1]||$a!==di[2])&&(Ae.stencilFunc(uo,ls,$a),di[0]=uo,di[1]=ls,di[2]=$a),fo=Di[0],mn=Di[1],ra=Di[2],wa=Di[3],(fo!==Ii[0]||mn!==Ii[1]||ra!==Ii[2]||wa!==Ii[3])&&(Ae.stencilOpSeparate(fo,mn,ra,wa),Ii[0]=fo,Ii[1]=mn,Ii[2]=ra,Ii[3]=wa),ws=Ci[0],Co=Ci[1],Po=Ci[2],ji=Ci[3],(ws!==nn[0]||Co!==nn[1]||Po!==nn[2]||ji!==nn[3])&&(Ae.stencilOpSeparate(ws,Co,Po,ji),nn[0]=ws,nn[1]=Co,nn[2]=Po,nn[3]=ji),gn=vt.scissor_enable,gn!==st.scissor_enable&&(gn?Ae.enable(3089):Ae.disable(3089),st.scissor_enable=gn),Ps=ii[0],Ha=ii[1],Sn=ii[2],ao=ii[3],(Ps!==wi[0]||Ha!==wi[1]||Sn!==wi[2]||ao!==wi[3])&&(Ae.scissor(Ps,Ha,Sn,ao),wi[0]=Ps,wi[1]=Ha,wi[2]=Sn,wi[3]=ao)}en=this.viewport,Yr=en.x|0,oi=en.y|0,Bi="width"in en?en.width|0:at.framebufferWidth-Yr,an="height"in en?en.height|0:at.framebufferHeight-oi,rn=at.viewportWidth,at.viewportWidth=Bi,Fi=at.viewportHeight,at.viewportHeight=an,Ae.viewport(Yr,oi,Bi,an),Bt[0]=Yr,Bt[1]=oi,Bt[2]=Bi,Bt[3]=an,Ae.blendColor(0,0,0,1),Re[0]=0,Re[1]=0,Re[2]=0,Re[3]=1,Dt?Ae.enable(3042):Ae.disable(3042),st.blend_enable=Dt,Ae.blendFuncSeparate(770,771,773,1),fe[0]=770,fe[1]=771,fe[2]=773,fe[3]=1,Zt?Ae.enable(2929):Ae.disable(2929),st.depth_enable=Zt,Et?Ae.enable(2960):Ae.disable(2960),st.stencil_enable=Et,Ri=st.profile,Ri&&(xn=performance.now(),r.count+=Ei),Ae.useProgram(o.program),xi=Ut.angle_instanced_arrays;var Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa,ln,Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn;for(hr.setVAO(null),Ba=this.charBuffer,Ko=!1,Qo=1,Wi=0,Sa=0,Qa=0,vn=0,da=null,la=0,vo=!1,As=5126,ps=0,co=0,mo=0,xe(Ba)?(Ko=!0,da=$e.createStream(34962,Ba),As=da.dtype):(da=$e.getBuffer(Ba),da?As=da.dtype:"constant"in Ba?(Qo=2,typeof Ba.constant=="number"?(Wi=Ba.constant,Sa=Qa=vn=0):(Wi=Ba.constant.length>0?Ba.constant[0]:0,Sa=Ba.constant.length>1?Ba.constant[1]:0,Qa=Ba.constant.length>2?Ba.constant[2]:0,vn=Ba.constant.length>3?Ba.constant[3]:0)):(xe(Ba.buffer)?da=$e.createStream(34962,Ba.buffer):da=$e.getBuffer(Ba.buffer),As="type"in Ba?Ur[Ba.type]:da.dtype,vo=!!Ba.normalized,la=Ba.size|0,ps=Ba.offset|0,co=Ba.stride|0,mo=Ba.divisor|0)),No=s.location,jn=Yt[No],Qo===1?(jn.buffer||Ae.enableVertexAttribArray(No),Go=la||1,(jn.type!==As||jn.size!==Go||jn.buffer!==da||jn.normalized!==vo||jn.offset!==ps||jn.stride!==co)&&(Ae.bindBuffer(34962,da.buffer),Ae.vertexAttribPointer(No,Go,As,vo,co,ps),jn.type=As,jn.size=Go,jn.buffer=da,jn.normalized=vo,jn.offset=ps,jn.stride=co),jn.divisor!==mo&&(xi.vertexAttribDivisorANGLE(No,mo),jn.divisor=mo)):(jn.buffer&&(Ae.disableVertexAttribArray(No),jn.buffer=null),(jn.x!==Wi||jn.y!==Sa||jn.z!==Qa||jn.w!==vn)&&(Ae.vertexAttrib4f(No,Wi,Sa,Qa,vn),jn.x=Wi,jn.y=Sa,jn.z=Qa,jn.w=vn)),Ys=this.sizeBuffer,Gr.buffer=Ys,qs=!1,Ns=1,Oa=0,ha=0,Vs=0,Ya=0,_n=null,Vn=0,wo=!1,Ra=5126,Xn=0,un=0,$n=0,xe(Gr)?(qs=!0,_n=$e.createStream(34962,Gr),Ra=_n.dtype):(_n=$e.getBuffer(Gr),_n?Ra=_n.dtype:"constant"in Gr?(Ns=2,typeof Gr.constant=="number"?(Oa=Gr.constant,ha=Vs=Ya=0):(Oa=Gr.constant.length>0?Gr.constant[0]:0,ha=Gr.constant.length>1?Gr.constant[1]:0,Vs=Gr.constant.length>2?Gr.constant[2]:0,Ya=Gr.constant.length>3?Gr.constant[3]:0)):(xe(Gr.buffer)?_n=$e.createStream(34962,Gr.buffer):_n=$e.getBuffer(Gr.buffer),Ra="type"in Gr?Ur[Gr.type]:_n.dtype,wo=!!Gr.normalized,Vn=Gr.size|0,Xn=Gr.offset|0,un=Gr.stride|0,$n=Gr.divisor|0)),Ka=u.location,qn=Yt[Ka],Ns===1?(qn.buffer||Ae.enableVertexAttribArray(Ka),Eo=Vn||1,(qn.type!==Ra||qn.size!==Eo||qn.buffer!==_n||qn.normalized!==wo||qn.offset!==Xn||qn.stride!==un)&&(Ae.bindBuffer(34962,_n.buffer),Ae.vertexAttribPointer(Ka,Eo,Ra,wo,un,Xn),qn.type=Ra,qn.size=Eo,qn.buffer=_n,qn.normalized=wo,qn.offset=Xn,qn.stride=un),qn.divisor!==$n&&(xi.vertexAttribDivisorANGLE(Ka,$n),qn.divisor=$n)):(qn.buffer&&(Ae.disableVertexAttribArray(Ka),qn.buffer=null),(qn.x!==Oa||qn.y!==ha||qn.z!==Vs||qn.w!==Ya)&&(Ae.vertexAttrib4f(Ka,Oa,ha,Vs,Ya),qn.x=Oa,qn.y=ha,qn.z=Vs,qn.w=Ya)),Ja=this.position,lo=!1,eo=1,sa=0,es=0,Na=0,tn=0,Pa=null,to=0,yo=!1,Jo=5126,Ao=0,Dn=0,_a=0,xe(Ja)?(lo=!0,Pa=$e.createStream(34962,Ja),Jo=Pa.dtype):(Pa=$e.getBuffer(Ja),Pa?Jo=Pa.dtype:"constant"in Ja?(eo=2,typeof Ja.constant=="number"?(sa=Ja.constant,es=Na=tn=0):(sa=Ja.constant.length>0?Ja.constant[0]:0,es=Ja.constant.length>1?Ja.constant[1]:0,Na=Ja.constant.length>2?Ja.constant[2]:0,tn=Ja.constant.length>3?Ja.constant[3]:0)):(xe(Ja.buffer)?Pa=$e.createStream(34962,Ja.buffer):Pa=$e.getBuffer(Ja.buffer),Jo="type"in Ja?Ur[Ja.type]:Pa.dtype,yo=!!Ja.normalized,to=Ja.size|0,Ao=Ja.offset|0,Dn=Ja.stride|0,_a=Ja.divisor|0)),Ws=l.location,Ca=Yt[Ws],eo===1?(Ca.buffer||Ae.enableVertexAttribArray(Ws),Es=to||2,(Ca.type!==Jo||Ca.size!==Es||Ca.buffer!==Pa||Ca.normalized!==yo||Ca.offset!==Ao||Ca.stride!==Dn)&&(Ae.bindBuffer(34962,Pa.buffer),Ae.vertexAttribPointer(Ws,Es,Jo,yo,Dn,Ao),Ca.type=Jo,Ca.size=Es,Ca.buffer=Pa,Ca.normalized=yo,Ca.offset=Ao,Ca.stride=Dn),Ca.divisor!==_a&&(xi.vertexAttribDivisorANGLE(Ws,_a),Ca.divisor=_a)):(Ca.buffer&&(Ae.disableVertexAttribArray(Ws),Ca.buffer=null),(Ca.x!==sa||Ca.y!==es||Ca.z!==Na||Ca.w!==tn)&&(Ae.vertexAttrib4f(Ws,sa,es,Na,tn),Ca.x=sa,Ca.y=es,Ca.z=Na,Ca.w=tn)),Ts=this.sizeBuffer,jr.buffer=Ts,Ho=!1,Wa=1,To=0,ts=0,Wo=0,qa=0,ln=null,Bo=0,ko=!1,oo=5126,za=0,ea=0,rs=0,xe(jr)?(Ho=!0,ln=$e.createStream(34962,jr),oo=ln.dtype):(ln=$e.getBuffer(jr),ln?oo=ln.dtype:"constant"in jr?(Wa=2,typeof jr.constant=="number"?(To=jr.constant,ts=Wo=qa=0):(To=jr.constant.length>0?jr.constant[0]:0,ts=jr.constant.length>1?jr.constant[1]:0,Wo=jr.constant.length>2?jr.constant[2]:0,qa=jr.constant.length>3?jr.constant[3]:0)):(xe(jr.buffer)?ln=$e.createStream(34962,jr.buffer):ln=$e.getBuffer(jr.buffer),oo="type"in jr?Ur[jr.type]:ln.dtype,ko=!!jr.normalized,Bo=jr.size|0,za=jr.offset|0,ea=jr.stride|0,rs=jr.divisor|0)),$s=f.location,us=Yt[$s],Wa===1?(us.buffer||Ae.enableVertexAttribArray($s),Ds=Bo||1,(us.type!==oo||us.size!==Ds||us.buffer!==ln||us.normalized!==ko||us.offset!==za||us.stride!==ea)&&(Ae.bindBuffer(34962,ln.buffer),Ae.vertexAttribPointer($s,Ds,oo,ko,ea,za),us.type=oo,us.size=Ds,us.buffer=ln,us.normalized=ko,us.offset=za,us.stride=ea),us.divisor!==rs&&(xi.vertexAttribDivisorANGLE($s,rs),us.divisor=rs)):(us.buffer&&(Ae.disableVertexAttribArray($s),us.buffer=null),(us.x!==To||us.y!==ts||us.z!==Wo||us.w!==qa)&&(Ae.vertexAttrib4f($s,To,ts,Wo,qa),us.x=To,us.y=ts,us.z=Wo,us.w=qa)),fl=this.scale,as=fl[0],Ma=fl[1],Ae.uniform2f(P.location,as,Ma),Qs=this.translate,ho=Qs[0],gs=Qs[1],Ae.uniform2f(A.location,ho,gs),Vo=this.viewportArray,Do=Vo[0],Lo=Vo[1],xs=Vo[2],ks=Vo[3],Ae.uniform4f(B.location,Do,Lo,xs,ks),Ea=Ue.elements,Ea?Ae.bindBuffer(34963,Ea.buffer.buffer):hr.currentVAO&&(Ea=rt.getElements(hr.currentVAO.elements),Ea&&Ae.bindBuffer(34963,Ea.buffer.buffer)),Jn=Ue.instances,Xr=0;Xr0?Ea?xi.drawElementsInstancedANGLE(0,Or,Ea.type,mr<<(Ea.type-5121>>1),Jn):xi.drawArraysInstancedANGLE(0,mr,Or,Jn):Jn<0&&(Ea?Ae.drawElements(0,Or,Ea.type,mr<<(Ea.type-5121>>1)):Ae.drawArrays(0,mr,Or)),bs.unbind())}Ko&&$e.destroyStream(da),qs&&$e.destroyStream(_n),lo&&$e.destroyStream(Pa),Ho&&$e.destroyStream(ln),st.dirty=!0,hr.setVAO(null),at.viewportWidth=rn,at.viewportHeight=Fi,Ri&&(r.cpuTime+=performance.now()-xn)}}}});var bK=Te((Y_r,NNe)=>{"use strict";var VUt=A8(),GUt=T8(),HUt=S8(),WUt=M8(),jUt=E8(),XUt=k8(),ZUt=C8(),YUt=L8(),KUt=P8(),JUt=z8();NNe.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":VUt,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:GUt,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":HUt,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:WUt,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:jUt,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":XUt,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:ZUt,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:YUt,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":KUt,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":JUt}});var GNe=Te((K_r,VNe)=>{"use strict";var UNe=xK(),$Ut=bK();Object.assign(UNe.reglPrecompiled,$Ut);VNe.exports=UNe});var jNe=Te((J_r,WNe)=>{"use strict";var HNe=Z8e();HNe.plot=GNe();WNe.exports=HNe});var wK=Te(($_r,KNe)=>{"use strict";var QUt=Zc(),YNe=nc(),XNe=jc().axisHoverFormat,eVt=Nu().hovertemplateAttrs,Mk=ok(),tVt=dd().idRegex,rVt=Pf().templatedArray,dS=Su().extendFlat,o1=QUt.marker,iVt=o1.line,nVt=dS(YNe("marker.line",{editTypeOverride:"calc"}),{width:dS({},iVt.width,{editType:"calc"}),editType:"calc"}),I8=dS(YNe("marker"),{symbol:o1.symbol,angle:o1.angle,size:dS({},o1.size,{editType:"markerSize"}),sizeref:o1.sizeref,sizemin:o1.sizemin,sizemode:o1.sizemode,opacity:o1.opacity,colorbar:o1.colorbar,line:nVt,editType:"calc"});I8.color.editType=I8.cmin.editType=I8.cmax.editType="style";function ZNe(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:tVt[e],editType:"plot"}}}KNe.exports={dimensions:rVt("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:dS({},Mk.text,{}),hovertext:dS({},Mk.hovertext,{}),hovertemplate:eVt(),xhoverformat:XNe("x"),yhoverformat:XNe("y"),marker:I8,xaxes:ZNe("x"),yaxes:ZNe("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:Mk.selected.marker,editType:"calc"},unselected:{marker:Mk.unselected.marker,editType:"calc"},opacity:Mk.opacity}});var R8=Te((Q_r,JNe)=>{"use strict";JNe.exports=function(e,t,r,n){n||(n=1/0);var i,a;for(i=0;i{"use strict";var AK=ei(),aVt=Jd(),$Ne=wK(),oVt=lc(),sVt=$v(),lVt=R8(),uVt=OF().isOpenSymbol;QNe.exports=function(t,r,n,i){function a(d,p){return AK.coerce(t,r,$Ne,d,p)}var o=aVt(t,r,{name:"dimensions",handleItemDefaults:fVt}),s=a("diagonal.visible"),u=a("showupperhalf"),l=a("showlowerhalf"),f=lVt(r,o,"values");if(!f||!s&&!u&&!l){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),sVt(t,r,n,i,a,{noAngleRef:!0,noStandOff:!0});var c=uVt(r.marker.symbol),h=oVt.isBubble(r);a("marker.line.width",c||h?1:0),cVt(t,r,i,a),AK.coerceSelectionMarkerOpacity(r,a)};function fVt(e,t){function r(i,a){return AK.coerce(e,t,$Ne.dimensions,i,a)}r("label");var n=r("values");n&&n.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}function cVt(e,t,r,n){var i=t.dimensions,a=i.length,o=t.showupperhalf,s=t.showlowerhalf,u=t.diagonal.visible,l,f,c=new Array(a),h=new Array(a);for(l=0;lf&&o||l{"use strict";var t7e=ei();r7e.exports=function(t,r){var n=t._fullLayout,i=r.uid,a=n._splomScenes;a||(a=n._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s={matrix:!1,selectBatch:[],unselectBatch:[]},u=a[r.uid];return u||(u=a[i]=t7e.extendFlat({},o,s),u.draw=function(){u.matrix&&u.matrix.draw&&(u.selectBatch.length||u.unselectBatch.length?u.matrix.draw(u.unselectBatch,u.selectBatch):u.matrix.draw()),u.dirty=!1},u.destroy=function(){u.matrix&&u.matrix.destroy&&u.matrix.destroy(),u.matrixOptions=null,u.selectBatch=null,u.unselectBatch=null,u=null}),u.dirty||t7e.extendFlat(u,o),u}});var o7e=Te((rxr,a7e)=>{"use strict";var TK=ei(),D8=Wc(),hVt=B0().calcMarkerSize,dVt=B0().calcAxisExpansion,pVt=D0(),n7e=Y2().markerSelection,vVt=Y2().markerStyle,mVt=i7e(),yVt=nf().BADNUM,gVt=sx().TOO_MANY_POINTS;a7e.exports=function(t,r){var n=r.dimensions,i=r._length,a={},o=a.cdata=[],s=a.data=[],u=r._visibleDims=[],l,f,c,h,d;function p(E,T){for(var L=E.makeCalcdata({v:T.values,vcalendar:r.calendar},"v"),_=0;_gVt,v;for(b?v=a.sizeAvg||Math.max(a.size,3):v=hVt(r,i),f=0;f{(function(){var e,t,r,n,i,a;typeof performance!="undefined"&&performance!==null&&performance.now?Ek.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(Ek.exports=function(){return(e()-i)/1e6},t=process.hrtime,e=function(){var o;return o=t(),o[0]*1e9+o[1]},n=e(),a=process.uptime()*1e9,i=n-a):Date.now?(Ek.exports=function(){return Date.now()-r},r=Date.now()):(Ek.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(s7e)});var f7e=Te((ixr,O8)=>{var _Vt=l7e(),s1=window,F8=["moz","webkit"],vS="AnimationFrame",mS=s1["request"+vS],kk=s1["cancel"+vS]||s1["cancelRequest"+vS];for(pS=0;!mS&&pS{c7e.exports=function(t,r){var n=typeof t=="number",i=typeof r=="number";n&&!i?(r=t,t=0):!n&&!i&&(t=0,r=0),t=t|0,r=r|0;var a=r-t;if(a<0)throw new Error("array length must be positive");for(var o=new Array(a),s=0,u=t;s{"use strict";var xVt=_Y(),bVt=Xy(),wVt=W2(),d7e=f7e(),AVt=h7e(),MK=eS(),TVt=j2();v7e.exports=vx;function vx(e,t){if(!(this instanceof vx))return new vx(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=xVt(e),this.canvas=this.scatter.canvas}vx.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=d7e(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,d7e(()=>{this.dirty=!1})),this)};vx.prototype.update=function(...e){if(!e.length)return;for(let n=0;nb||!i.lower&&x{t[a+s]=n})}this.scatter.draw(...t)}return this};vx.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function SVt(e,t,r){let n=e.id!=null?e.id:e,i=t,a=r;return n<<16|(i&255)<<8|a&255}function q8(e,t,r){let n,i,a,o,s,u,l,f,c=e[t],h=e[r];return c.length>2?(n=c[0],a=c[2],i=c[1],o=c[3]):c.length?(n=i=c[0],a=o=c[1]):(n=c.x,i=c.y,a=c.x+c.width,o=c.y+c.height),h.length>2?(s=h[0],l=h[2],u=h[1],f=h[3]):h.length?(s=u=h[0],l=f=h[1]):(s=h.x,u=h.y,l=h.x+h.width,f=h.y+h.height),[s,i,l,o]}function p7e(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let t=MK(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}}});var g7e=Te((oxr,y7e)=>{"use strict";var MVt=m7e(),EK=ei(),N8=Wc(),EVt=Sm().selectMode;y7e.exports=function(t,r,n){if(n.length)for(var i=0;i-1,A=EVt(f)||!!i.selectedpoints||P,B=!0;if(A){var F=i._length;if(i.selectedpoints){o.selectBatch=i.selectedpoints;var U=i.selectedpoints,G={};for(d=0;d{"use strict";_7e.getDimIndex=function(t,r){for(var n=r._id,i=n.charAt(0),a={x:0,y:1}[i],o=t._visibleDims,s=0;s{"use strict";var x7e=kK(),CVt=BF().calcHover,b7e=wu().getFromId,LVt=Su().extendFlat;function PVt(e,t,r,n,i){i||(i={});var a=(n||"").charAt(0)==="x",o=(n||"").charAt(0)==="y",s=w7e(e,t,r);if((a||o)&&i.hoversubplots==="axis"&&s[0])for(var u=(a?e.xa:e.ya)._subplotsWith,l=i.gd,f=LVt({},e),c=0;c{"use strict";var k7e=ei(),S7e=k7e.pushUnique,M7e=lc(),E7e=kK();C7e.exports=function(t,r){var n=t.cd,i=n[0].trace,a=n[0].t,o=t.scene,s=o.matrixOptions.cdata,u=t.xaxis,l=t.yaxis,f=[];if(!o)return f;var c=!M7e.hasMarkers(i)&&!M7e.hasText(i);if(i.visible!==!0||c)return f;var h=E7e.getDimIndex(i,u),d=E7e.getDimIndex(i,l);if(h===!1||d===!1)return f;var p=a.xpx[h],x=a.ypx[d],b=s[h],v=s[d],k=(t.scene.selectBatch||[]).slice(),E=[];if(r!==!1&&!r.degenerate)for(var T=0;T{"use strict";var P7e=ei(),zVt=D0(),IVt=Y2().markerStyle;z7e.exports=function(t,r){var n=r.trace,i=t._fullLayout._splomScenes[n.uid];if(i){zVt(t,n),P7e.extendFlat(i.matrixOptions,IVt(t,n));var a=P7e.extendFlat({},i.matrixOptions,i.viewOpts);i.matrix.update(a,null)}}});var D7e=Te((cxr,R7e)=>{"use strict";var RVt=$l(),DVt=gV();R7e.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:wK(),supplyDefaults:e7e(),colorbar:ep(),calc:o7e(),plot:g7e(),hoverPoints:T7e().hoverPoints,selectPoints:L7e(),editStyle:I7e(),meta:{}};RVt.register(DVt)});var U7e=Te((hxr,N7e)=>{"use strict";var FVt=KY(),BVt=$l(),OVt=w8(),qVt=Rd().getModuleCalcData,mx=Ah(),F7e=Wc().getFromId,B7e=wu().shouldShowZeroLine,O7e="splom",q7e={};function NVt(e){var t=e._fullLayout,r=BVt.getModule(O7e),n=qVt(e.calcdata,r)[0],i=OVt(e,["ANGLE_instanced_arrays","OES_element_index_uint"],q7e);i&&(t._hasOnlyLargeSploms&&CK(e),r.plot(e,{},n))}function UVt(e){var t=e.calcdata,r=e._fullLayout;r._hasOnlyLargeSploms&&CK(e);for(var n=0;n{"use strict";var WVt=A8(),jVt=T8(),XVt=S8(),ZVt=C8(),YVt=L8(),KVt=M8(),JVt=E8(),$Vt=k8(),QVt=P8(),eGt=z8();V7e.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":WVt,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:jVt,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":XVt,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:ZVt,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:YVt,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:KVt,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:JVt,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":$Vt,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":QVt,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":eGt}});var j7e=Te((pxr,W7e)=>{"use strict";var H7e=U7e(),tGt=G7e();Object.assign(H7e.reglPrecompiled,tGt);W7e.exports=H7e});var Y7e=Te((vxr,Z7e)=>{"use strict";var X7e=D7e();X7e.basePlotModule=j7e(),Z7e.exports=X7e});var zK=Te((mxr,K7e)=>{"use strict";var rGt=nc(),LK=Dd(),PK=gc(),iGt=zc().attributes,U8=Su().extendFlat,nGt=Pf().templatedArray;K7e.exports={domain:iGt({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:PK({editType:"plot"}),tickfont:PK({autoShadowDflt:!0,editType:"plot"}),rangefont:PK({editType:"plot"}),dimensions:nGt("dimension",{label:{valType:"string",editType:"plot"},tickvals:U8({},LK.tickvals,{editType:"plot"}),ticktext:U8({},LK.ticktext,{editType:"plot"}),tickformat:U8({},LK.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:U8({editType:"calc"},rGt("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}});var Ck=Te((yxr,J7e)=>{"use strict";J7e.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:["contextLineLayer","focusLineLayer","pickLineLayer"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},id:{filterBarPattern:"filter-bar-pattern"}}});var Ky=Te((gxr,Q7e)=>{"use strict";var aGt=VM();function $7e(e){return[e]}Q7e.exports={keyFun:function(e){return e.key},repeat:$7e,descend:aGt,wrap:$7e,unwrap:function(e){return e[0]}}});var DK=Te((_xr,fUe)=>{"use strict";var Eh=Ck(),ey=Jl(),oGt=Ky().keyFun,V8=Ky().repeat,yS=ei().sorterAsc,sGt=ei().strTranslate,eUe=Eh.bar.snapRatio;function tUe(e,t){return e*(1-eUe)+t*eUe}var rUe=Eh.bar.snapClose;function lGt(e,t){return e*(1-rUe)+t*rUe}function H8(e,t,r,n){if(uGt(r,n))return r;var i=e?-1:1,a=0,o=t.length-1;if(i<0){var s=a;a=o,o=s}for(var u=t[a],l=u,f=a;i*f=t[r][0]&&e<=t[r][1])return!0;return!1}function fGt(e){e.attr("x",-Eh.bar.captureWidth/2).attr("width",Eh.bar.captureWidth)}function cGt(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function hGt(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t=iUe(e.brush.filter.getConsolidated(),e.height),r=[0],n,i,a,o=t.length?t[0][0]:null,s=0;se[1]+r||t=.9*e[1]+.1*e[0]?"n":t<=.9*e[0]+.1*e[1]?"s":"ns"}function nUe(){ey.select(document.body).style("cursor",null)}function RK(e){e.attr("stroke-dasharray",hGt)}function G8(e,t){var r=ey.select(e).selectAll(".highlight, .highlight-shadow"),n=t?r.transition().duration(Eh.bar.snapDuration).each("end",t):r;RK(n)}function aUe(e,t){var r=e.brush,n=r.filterSpecified,i=NaN,a={},o;if(n){var s=e.height,u=r.filter.getConsolidated(),l=iUe(u,s),f=NaN,c=NaN,h=NaN;for(o=0;o<=l.length;o++){var d=l[o];if(d&&d[0]<=t&&t<=d[1]){f=o;break}else if(c=o?o-1:NaN,d&&d[0]>t){h=o;break}}if(i=f,isNaN(i)&&(isNaN(c)||isNaN(h)?i=isNaN(c)?h:c:i=t-l[c][1]=k[0]&&v<=k[1]){a.clickableOrdinalRange=k;break}}}return a}function pGt(e,t){ey.event.sourceEvent.stopPropagation();var r=t.height-ey.mouse(e)[1]-2*Eh.verticalPadding,n=t.unitToPaddedPx.invert(r),i=t.brush,a=aUe(t,r),o=a.interval,s=i.svgBrush;if(s.wasDragged=!1,s.grabbingBar=a.region==="ns",s.grabbingBar){var u=o.map(t.unitToPaddedPx);s.grabPoint=r-u[0]-Eh.verticalPadding,s.barLength=u[1]-u[0]}s.clickableOrdinalRange=a.clickableOrdinalRange,s.stayingIntervals=t.multiselect&&i.filterSpecified?i.filter.getConsolidated():[],o&&(s.stayingIntervals=s.stayingIntervals.filter(function(l){return l[0]!==o[0]&&l[1]!==o[1]})),s.startExtent=a.region?o[a.region==="s"?1:0]:n,t.parent.inBrushDrag=!0,s.brushStartCallback()}function oUe(e,t){ey.event.sourceEvent.stopPropagation();var r=t.height-ey.mouse(e)[1]-2*Eh.verticalPadding,n=t.brush.svgBrush;n.wasDragged=!0,n._dragging=!0,n.grabbingBar?n.newExtent=[r-n.grabPoint,r+n.barLength-n.grabPoint].map(t.unitToPaddedPx.invert):n.newExtent=[n.startExtent,t.unitToPaddedPx.invert(r)].sort(yS),t.brush.filterSpecified=!0,n.extent=n.stayingIntervals.concat([n.newExtent]),n.brushCallback(t),G8(e.parentNode)}function vGt(e,t){var r=t.brush,n=r.filter,i=r.svgBrush;i._dragging||(sUe(e,t),oUe(e,t),t.brush.svgBrush.wasDragged=!1),i._dragging=!1;var a=ey.event;a.sourceEvent.stopPropagation();var o=i.grabbingBar;if(i.grabbingBar=!1,i.grabLocation=void 0,t.parent.inBrushDrag=!1,nUe(),!i.wasDragged){i.wasDragged=void 0,i.clickableOrdinalRange?r.filterSpecified&&t.multiselect?i.extent.push(i.clickableOrdinalRange):(i.extent=[i.clickableOrdinalRange],r.filterSpecified=!0):o?(i.extent=i.stayingIntervals,i.extent.length===0&&IK(r)):IK(r),i.brushCallback(t),G8(e.parentNode),i.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);return}var s=function(){n.set(n.getConsolidated())};if(t.ordinal){var u=t.unitTickvals;u[u.length-1]i.newExtent[0];i.extent=i.stayingIntervals.concat(l?[i.newExtent]:[]),i.extent.length||IK(r),i.brushCallback(t),l?G8(e.parentNode,s):(s(),G8(e.parentNode))}else s();i.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}function sUe(e,t){var r=t.height-ey.mouse(e)[1]-2*Eh.verticalPadding,n=aUe(t,r),i="crosshair";n.clickableOrdinalRange?i="pointer":n.region&&(i=n.region+"-resize"),ey.select(document.body).style("cursor",i)}function mGt(e){e.on("mousemove",function(t){ey.event.preventDefault(),t.parent.inBrushDrag||sUe(this,t)}).on("mouseleave",function(t){t.parent.inBrushDrag||nUe()}).call(ey.behavior.drag().on("dragstart",function(t){pGt(this,t)}).on("drag",function(t){oUe(this,t)}).on("dragend",function(t){vGt(this,t)}))}function lUe(e,t){return e[0]-t[0]}function yGt(e,t,r){var n=r._context.staticPlot,i=e.selectAll(".background").data(V8);i.enter().append("rect").classed("background",!0).call(fGt).call(cGt).style("pointer-events",n?"none":"auto").attr("transform",sGt(0,Eh.verticalPadding)),i.call(mGt).attr("height",function(s){return s.height-Eh.verticalPadding});var a=e.selectAll(".highlight-shadow").data(V8);a.enter().append("line").classed("highlight-shadow",!0).attr("x",-Eh.bar.width/2).attr("stroke-width",Eh.bar.width+Eh.bar.strokeWidth).attr("stroke",t).attr("opacity",Eh.bar.strokeOpacity).attr("stroke-linecap","butt"),a.attr("y1",function(s){return s.height}).call(RK);var o=e.selectAll(".highlight").data(V8);o.enter().append("line").classed("highlight",!0).attr("x",-Eh.bar.width/2).attr("stroke-width",Eh.bar.width-Eh.bar.strokeWidth).attr("stroke",Eh.bar.fillColor).attr("opacity",Eh.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(s){return s.height}).call(RK)}function gGt(e,t,r){var n=e.selectAll("."+Eh.cn.axisBrush).data(V8,oGt);n.enter().append("g").classed(Eh.cn.axisBrush,!0),yGt(n,t,r)}function _Gt(e){return e.svgBrush.extent.map(function(t){return t.slice()})}function IK(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function xGt(e){return function(r){var n=r.brush,i=_Gt(n),a=i.slice();n.filter.set(a),e()}}function uUe(e){for(var t=e.slice(),r=[],n,i=t.shift();i;){for(n=i.slice();(i=t.shift())&&i[0]<=n[1];)n[1]=Math.max(n[1],i[1]);r.push(n)}return r.length===1&&r[0][0]>r[0][1]&&(r=[]),r}function bGt(){var e=[],t,r;return{set:function(n){e=n.map(function(i){return i.slice().sort(yS)}).sort(lUe),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),t=uUe(e),r=e.reduce(function(i,a){return[Math.min(i[0],a[0]),Math.max(i[1],a[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return t},getBounds:function(){return r}}}function wGt(e,t,r,n,i,a){var o=bGt();return o.set(r),{filter:o,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:n,brushCallback:xGt(i),brushEndCallback:a}}}function AGt(e,t){if(Array.isArray(e[0])?(e=e.map(function(n){return n.sort(yS)}),t.multiselect?e=uUe(e.sort(lUe)):e=[e[0]]):e=[e.sort(yS)],t.tickvals){var r=t.tickvals.slice().sort(yS);if(e=e.map(function(n){var i=[H8(0,r,n[0],[]),H8(1,r,n[1],[])];if(i[1]>i[0])return i}).filter(function(n){return n}),!e.length)return}return e.length>1?e:e[0]}fUe.exports={makeBrush:wGt,ensureAxisBrush:gGt,cleanRanges:AGt}});var dUe=Te((xxr,hUe)=>{"use strict";var yx=ei(),TGt=Rp().hasColorscale,SGt=ed(),MGt=zc().defaults,EGt=Jd(),kGt=wu(),cUe=zK(),CGt=DK(),FK=Ck().maxDimensionCount,LGt=R8();function PGt(e,t,r,n,i){var a=i("line.color",r);if(TGt(e,"line")&&yx.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),SGt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function zGt(e,t,r,n){function i(l,f){return yx.coerce(e,t,cUe.dimensions,l,f)}var a=i("values"),o=i("visible");if(a&&a.length||(o=t.visible=!1),o){i("label"),i("tickvals"),i("ticktext"),i("tickformat");var s=i("range");t._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:s},kGt.setConvert(t._ax,n.layout),i("multiselect");var u=i("constraintrange");u&&(t.constraintrange=CGt.cleanRanges(u,t))}}hUe.exports=function(t,r,n,i){function a(f,c){return yx.coerce(t,r,cUe,f,c)}var o=t.dimensions;Array.isArray(o)&&o.length>FK&&(yx.log("parcoords traces support up to "+FK+" dimensions at the moment"),o.splice(FK));var s=EGt(t,r,{name:"dimensions",layout:i,handleItemDefaults:zGt}),u=PGt(t,r,n,i,a);MGt(r,i,a),(!Array.isArray(s)||!s.length)&&(r.visible=!1),LGt(r,s,"values",u);var l=yx.extendFlat({},i.font,{size:Math.round(i.font.size/1.2)});yx.coerceFont(a,"labelfont",l),yx.coerceFont(a,"tickfont",l,{autoShadowDflt:!0}),yx.coerceFont(a,"rangefont",l),a("labelangle"),a("labelside"),a("unselected.line.color"),a("unselected.line.opacity")}});var vUe=Te((bxr,pUe)=>{"use strict";var IGt=ei().isArrayOrTypedArray,BK=_c(),RGt=Ky().wrap;pUe.exports=function(t,r){var n,i;return BK.hasColorscale(r,"line")&&IGt(r.line.color)?(n=r.line.color,i=BK.extractOpts(r.line).colorscale,BK.calc(t,r,{vals:n,containerStr:"line",cLetter:"c"})):(n=DGt(r._length),i=[[0,r.line.color],[1,r.line.color]]),RGt({lineColor:n,cscale:i})};function DGt(e){for(var t=new Array(e),r=0;r>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),OK.default[e])r=OK.default[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(e[0]==="#"){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var u=t[1];i=u.replace(/a$/,"");var l=i==="cmyk"?4:i==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/),i==="color"&&(i=r.shift()),r=r.map(function(h,d){if(h[h.length-1]==="%")return h=parseFloat(h)/100,d===3?h:i==="rgb"?h*255:i[0]==="h"||i[0]==="l"&&!d?h*100:i==="lab"?h*125:i==="lch"?d<2?h*150:h*360:i[0]==="o"&&!d?h:i==="oklab"?h*.4:i==="oklch"?d<2?h*.4:h*360:h;if(i[d]==="h"||d===2&&i[i.length-1]==="h"){if(mUe[h]!==void 0)return mUe[h];if(h.endsWith("deg"))return parseFloat(h);if(h.endsWith("turn"))return parseFloat(h)*360;if(h.endsWith("grad"))return parseFloat(h)*360/400;if(h.endsWith("rad"))return parseFloat(h)*180/Math.PI}return h==="none"?0:parseFloat(h)}),n=r.length>l?r.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(h){return parseFloat(h)}),i=((c=(f=e.match(/([a-z])/ig))==null?void 0:f.join(""))==null?void 0:c.toLowerCase())||"rgb");return{space:i,values:r,alpha:n}}var OK,yUe,mUe,gUe=Xf(()=>{OK=ztt(wX(),1),yUe=FGt,mUe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var Lk,qK=Xf(()=>{Lk={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var W8,_Ue=Xf(()=>{qK();W8={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,u,l=0;if(r===0)return u=n*255,[u,u,u];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];l<3;)o=t+1/3*-(l-1),o<0?o++:o>1&&o--,u=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[l++]=u*255;return s}};Lk.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s,u,l;return a===i?s=0:t===a?s=(r-n)/o:r===a?s=2+(n-t)/o:n===a&&(s=4+(t-r)/o),s=Math.min(s*60,360),s<0&&(s+=360),l=(i+a)/2,a===i?u=0:l<=.5?u=o/(a+i):u=o/(2-a-i),[s,u*100,l*100]}});var bUe={};bee(bUe,{default:()=>xUe});function xUe(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var t,r,n,i=yUe(e);if(!i.space)return[];let a=i.space[0]==="h"?W8.min:Lk.min,o=i.space[0]==="h"?W8.max:Lk.max;return t=Array(3),t[0]=Math.min(Math.max(i.values[0],a[0]),o[0]),t[1]=Math.min(Math.max(i.values[1],a[1]),o[1]),t[2]=Math.min(Math.max(i.values[2],a[2]),o[2]),i.space[0]==="h"&&(t=W8.rgb(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t}var wUe=Xf(()=>{gUe();qK();_Ue()});var NK=Te(j8=>{"use strict";var BGt=ei().isTypedArray;j8.convertTypedArray=function(e){return BGt(e)?Array.prototype.slice.call(e):e};j8.isOrdinal=function(e){return!!e.tickvals};j8.isVisible=function(e){return e.visible||!("visible"in e)}});var zUe=Te((Lxr,PUe)=>{"use strict";var OGt=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` +`),qGt=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` +`),Pk=Ck().maxDimensionCount,kUe=ei(),AUe=1e-6,X8=2048,NGt=new Uint8Array(4),TUe=new Uint8Array(4),SUe={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function UGt(e){e.read({x:0,y:0,width:1,height:1,data:NGt})}function CUe(e,t,r,n,i){var a=e._gl;a.enable(a.SCISSOR_TEST),a.scissor(t,r,n,i),e.clear({color:[0,0,0,0],depth:1})}function VGt(e,t,r,n,i,a){var o=a.key;function s(u){var l=Math.min(n,i-u*n);u===0&&(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],CUe(e,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),!r.clearOnly&&(a.count=2*l,a.offset=2*u*n,t(a),u*n+l>>8*t)%256/255}function WGt(e,t,r){for(var n=new Array(e*(Pk+4)),i=0,a=0;aj&&(j=S[B].dim1.canvasX,U=B);A===0&&CUe(i,0,0,l.canvasWidth,l.canvasHeight);var H=E(r);for(B=0;B{"use strict";var Ud=Jl(),l1=ei(),VK=l1.isArrayOrTypedArray,OUe=l1.numberFormat,qUe=(wUe(),q1(bUe)).default,NUe=wu(),KGt=l1.strRotate,Jy=l1.strTranslate,JGt=Zf(),Z8=Mu(),IUe=_c(),WK=Ky(),tm=WK.keyFun,$y=WK.repeat,UUe=WK.unwrap,gS=NK(),qf=Ck(),VUe=DK(),$Gt=zUe();function RUe(e,t,r){return l1.aggNums(e,null,t,r)}function GUe(e,t){return jK(RUe(Math.min,e,t),RUe(Math.max,e,t))}function Y8(e){var t=e.range;return t?jK(t[0],t[1]):GUe(e.values,e._length)}function jK(e,t){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(t)||!isFinite(t))&&(t=0),e===t&&(e===0?(e-=1,t+=1):(e*=.9,t*=1.1)),[e,t]}function QGt(e,t){return t?function(r,n){var i=t[n];return i==null?e(r):i}:e}function eHt(e,t,r,n,i){var a=Y8(r);return n?Ud.scale.ordinal().domain(n.map(QGt(OUe(r.tickformat),i))).range(n.map(function(o){var s=(o-a[0])/(a[1]-a[0]);return e-t+s*(2*t-e)})):Ud.scale.linear().domain(a).range([e-t,t])}function tHt(e,t){return Ud.scale.linear().range([t,e-t])}function rHt(e,t){return Ud.scale.linear().domain(Y8(e)).range([t,1-t])}function iHt(e){if(e.tickvals){var t=Y8(e);return Ud.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(r){return(r-t[0])/(t[1]-t[0])}))}}function nHt(e){var t=e.map(function(a){return a[0]}),r=e.map(function(a){var o=qUe(a[1]);return Ud.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),n=function(a){return function(o){return o[a]}},i="rgb".split("").map(function(a){return Ud.scale.linear().clamp(!0).domain(t).range(r.map(n(a)))});return function(a){return i.map(function(o){return o(a)})}}function HK(e){return e.dimensions.some(function(t){return t.brush.filterSpecified})}function aHt(e,t,r){var n=UUe(t),i=n.trace,a=gS.convertTypedArray(n.lineColor),o=i.line,s={color:qUe(i.unselected.line.color),opacity:i.unselected.line.opacity},u=IUe.extractOpts(o),l=u.reversescale?IUe.flipScale(n.cscale):n.cscale,f=i.domain,c=i.dimensions,h=e.width,d=i.labelangle,p=i.labelside,x=i.labelfont,b=i.tickfont,v=i.rangefont,k=l1.extendDeepNoArrays({},o,{color:a.map(Ud.scale.linear().domain(Y8({values:a,range:[u.min,u.max],_length:i._length}))),blockLineCount:qf.blockLineCount,canvasOverdrag:qf.overdrag*qf.canvasPixelRatio}),E=Math.floor(h*(f.x[1]-f.x[0])),T=Math.floor(e.height*(f.y[1]-f.y[0])),L=e.margin||{l:80,r:80,t:100,b:80},_=E,C=T;return{key:r,colCount:c.filter(gS.isVisible).length,dimensions:c,tickDistance:qf.tickDistance,unitToColor:nHt(l),lines:k,deselectedLines:s,labelAngle:d,labelSide:p,labelFont:x,tickFont:b,rangeFont:v,layoutWidth:h,layoutHeight:e.height,domain:f,translateX:f.x[0]*h,translateY:e.height-f.y[1]*e.height,pad:L,canvasWidth:_*qf.canvasPixelRatio+2*k.canvasOverdrag,canvasHeight:C*qf.canvasPixelRatio,width:_,height:C,canvasPixelRatio:qf.canvasPixelRatio}}function oHt(e,t,r){var n=r.width,i=r.height,a=r.dimensions,o=r.canvasPixelRatio,s=function(h){return n*h/Math.max(1,r.colCount-1)},u=qf.verticalPadding/i,l=tHt(i,qf.verticalPadding),f={key:r.key,xScale:s,model:r,inBrushDrag:!1},c={};return f.dimensions=a.filter(gS.isVisible).map(function(h,d){var p=rHt(h,u),x=c[h.label];c[h.label]=(x||0)+1;var b=h.label+(x?"__"+x:""),v=h.constraintrange,k=v&&v.length;k&&!VK(v[0])&&(v=[v]);var E=k?v.map(function(F){return F.map(p)}):[[-1/0,1/0]],T=function(){var F=f;F.focusLayer&&F.focusLayer.render(F.panels,!0);var U=HK(F);!e.contextShown()&&U?(F.contextLayer&&F.contextLayer.render(F.panels,!0),e.contextShown(!0)):e.contextShown()&&!U&&(F.contextLayer&&F.contextLayer.render(F.panels,!0,!0),e.contextShown(!1))},L=h.values;L.length>h._length&&(L=L.slice(0,h._length));var _=h.tickvals,C;function S(F,U){return{val:F,text:C[U]}}function m(F,U){return F.val-U.val}if(VK(_)&&_.length){l1.isTypedArray(_)&&(_=Array.from(_)),C=h.ticktext,!VK(C)||!C.length?C=_.map(OUe(h.tickformat)):C.length>_.length?C=C.slice(0,_.length):_.length>C.length&&(_=_.slice(0,C.length));for(var P=1;P<_.length;P++)if(_[P]<_[P-1]){for(var A=_.map(S).sort(m),B=0;B<_.length;B++)_[B]=A[B].val,C[B]=A[B].text;break}}else _=void 0;return L=gS.convertTypedArray(L),{key:b,label:h.label,tickFormat:h.tickformat,tickvals:_,ticktext:C,ordinal:gS.isOrdinal(h),multiselect:h.multiselect,xIndex:d,crossfilterDimensionIndex:d,visibleIndex:h._index,height:i,values:L,paddedUnitValues:L.map(p),unitTickvals:_&&_.map(p),xScale:s,x:s(d),canvasX:s(d)*o,unitToPaddedPx:l,domainScale:eHt(i,qf.verticalPadding,h,_,C),ordinalScale:iHt(h),parent:f,model:r,brush:VUe.makeBrush(e,k,E,function(){e.linePickActive(!1)},T,function(F){if(f.focusLayer.render(f.panels,!0),f.pickLayer&&f.pickLayer.render(f.panels,!0),e.linePickActive(!0),t&&t.filterChanged){var U=p.invert,G=F.map(function(j){return j.map(U).sort(l1.sorterAsc)}).sort(function(j,H){return j[0]-H[0]});t.filterChanged(f.key,h._index,G)}})}}),f}function DUe(e){e.classed(qf.cn.axisExtentText,!0).attr("text-anchor","middle").style("cursor","default")}function sHt(){var e=!0,t=!1;return{linePickActive:function(r){return arguments.length?e=!!r:e},contextShown:function(r){return arguments.length?t=!!r:t}}}function FUe(e,t){var r=t==="top"?1:-1,n=e*Math.PI/180,i=Math.sin(n),a=Math.cos(n);return{dir:r,dx:i,dy:a,degrees:e}}function GK(e,t,r){for(var n=t.panels||(t.panels=[]),i=e.data(),a=0;a=U||N>=G)return;var W=B.lineLayer.readPixel(H,G-1-N),re=W[3]!==0,ae=re?W[2]+256*(W[1]+256*W[0]):null,be={x:H,y:N,clientX:F.clientX,clientY:F.clientY,dataIndex:B.model.key,curveNumber:ae};ae!==p&&(re?i.hover(be):i.unhover&&i.unhover(be),p=ae)}}),d.style("opacity",function(B){return B.pick?0:1}),s.style("background","rgba(255, 255, 255, 0)");var b=s.selectAll("."+qf.cn.parcoords).data(h,tm);b.exit().remove(),b.enter().append("g").classed(qf.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),b.attr("transform",function(B){return Jy(B.model.translateX,B.model.translateY)});var v=b.selectAll("."+qf.cn.parcoordsControlView).data($y,tm);v.enter().append("g").classed(qf.cn.parcoordsControlView,!0),v.attr("transform",function(B){return Jy(B.model.pad.l,B.model.pad.t)});var k=v.selectAll("."+qf.cn.yAxis).data(function(B){return B.dimensions},tm);k.enter().append("g").classed(qf.cn.yAxis,!0),v.each(function(B){GK(k,B,l)}),d.each(function(B){if(B.viewModel){!B.lineLayer||i?B.lineLayer=$Gt(this,B):B.lineLayer.update(B),(B.key||B.key===0)&&(B.viewModel[B.key]=B.lineLayer);var F=!B.context||i;B.lineLayer.render(B.viewModel.panels,F)}}),k.attr("transform",function(B){return Jy(B.xScale(B.xIndex),0)}),k.call(Ud.behavior.drag().origin(function(B){return B}).on("drag",function(B){var F=B.parent;c.linePickActive(!1),B.x=Math.max(-qf.overdrag,Math.min(B.model.width+qf.overdrag,Ud.event.x)),B.canvasX=B.x*B.model.canvasPixelRatio,k.sort(function(U,G){return U.x-G.x}).each(function(U,G){U.xIndex=G,U.x=B===U?U.x:U.xScale(U.xIndex),U.canvasX=U.x*U.model.canvasPixelRatio}),GK(k,F,l),k.filter(function(U){return Math.abs(B.xIndex-U.xIndex)!==0}).attr("transform",function(U){return Jy(U.xScale(U.xIndex),0)}),Ud.select(this).attr("transform",Jy(B.x,0)),k.each(function(U,G,j){j===B.parent.key&&(F.dimensions[G]=U)}),F.contextLayer&&F.contextLayer.render(F.panels,!1,!HK(F)),F.focusLayer.render&&F.focusLayer.render(F.panels)}).on("dragend",function(B){var F=B.parent;B.x=B.xScale(B.xIndex),B.canvasX=B.x*B.model.canvasPixelRatio,GK(k,F,l),Ud.select(this).attr("transform",function(U){return Jy(U.x,0)}),F.contextLayer&&F.contextLayer.render(F.panels,!1,!HK(F)),F.focusLayer&&F.focusLayer.render(F.panels),F.pickLayer&&F.pickLayer.render(F.panels,!0),c.linePickActive(!0),i&&i.axesMoved&&i.axesMoved(F.key,F.dimensions.map(function(U){return U.crossfilterDimensionIndex}))})),k.exit().remove();var E=k.selectAll("."+qf.cn.axisOverlays).data($y,tm);E.enter().append("g").classed(qf.cn.axisOverlays,!0),E.selectAll("."+qf.cn.axis).remove();var T=E.selectAll("."+qf.cn.axis).data($y,tm);T.enter().append("g").classed(qf.cn.axis,!0),T.each(function(B){var F=B.model.height/B.model.tickDistance,U=B.domainScale,G=U.domain();Ud.select(this).call(Ud.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(F,B.tickFormat).tickValues(B.ordinal?G:null).tickFormat(function(j){return gS.isOrdinal(B)?j:HUe(B.model.dimensions[B.visibleIndex],j)}).scale(U)),Z8.font(T.selectAll("text"),B.model.tickFont)}),T.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),T.selectAll("text").style("cursor","default");var L=E.selectAll("."+qf.cn.axisHeading).data($y,tm);L.enter().append("g").classed(qf.cn.axisHeading,!0);var _=L.selectAll("."+qf.cn.axisTitle).data($y,tm);_.enter().append("text").classed(qf.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",a?"none":"auto"),_.text(function(B){return B.label}).each(function(B){var F=Ud.select(this);Z8.font(F,B.model.labelFont),JGt.convertToTspans(F,t)}).attr("transform",function(B){var F=FUe(B.model.labelAngle,B.model.labelSide),U=qf.axisTitleOffset;return(F.dir>0?"":Jy(0,2*U+B.model.height))+KGt(F.degrees)+Jy(-U*F.dx,-U*F.dy)}).attr("text-anchor",function(B){var F=FUe(B.model.labelAngle,B.model.labelSide),U=Math.abs(F.dx),G=Math.abs(F.dy);return 2*U>G?F.dir*F.dx<0?"start":"end":"middle"});var C=E.selectAll("."+qf.cn.axisExtent).data($y,tm);C.enter().append("g").classed(qf.cn.axisExtent,!0);var S=C.selectAll("."+qf.cn.axisExtentTop).data($y,tm);S.enter().append("g").classed(qf.cn.axisExtentTop,!0),S.attr("transform",Jy(0,-qf.axisExtentOffset));var m=S.selectAll("."+qf.cn.axisExtentTopText).data($y,tm);m.enter().append("text").classed(qf.cn.axisExtentTopText,!0).call(DUe),m.text(function(B){return BUe(B,!0)}).each(function(B){Z8.font(Ud.select(this),B.model.rangeFont)});var P=C.selectAll("."+qf.cn.axisExtentBottom).data($y,tm);P.enter().append("g").classed(qf.cn.axisExtentBottom,!0),P.attr("transform",function(B){return Jy(0,B.model.height+qf.axisExtentOffset)});var A=P.selectAll("."+qf.cn.axisExtentBottomText).data($y,tm);A.enter().append("text").classed(qf.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(DUe),A.text(function(B){return BUe(B,!1)}).each(function(B){Z8.font(Ud.select(this),B.model.rangeFont)}),VUe.ensureAxisBrush(E,f,t)}});var ZK=Te((XK,KUe)=>{"use strict";var uHt=jUe(),fHt=w8(),XUe=NK().isVisible,YUe={};function ZUe(e,t,r){var n=t.indexOf(r),i=e.indexOf(n);return i===-1&&(i+=t.length),i}function cHt(e,t){return function(n,i){return ZUe(e,t,n)-ZUe(e,t,i)}}var XK=KUe.exports=function(t,r){var n=t._fullLayout,i=fHt(t,[],YUe);if(i){var a={},o={},s={},u={},l=n._size;r.forEach(function(p,x){var b=p[0].trace;s[x]=b.index;var v=u[x]=b.index;a[x]=t.data[v].dimensions,o[x]=t.data[v].dimensions.slice()});var f=function(p,x,b){var v=o[p][x],k=b.map(function(S){return S.slice()}),E="dimensions["+x+"].constraintrange",T=n._tracePreGUI[t._fullData[s[p]]._fullInput.uid];if(T[E]===void 0){var L=v.constraintrange;T[E]=L||null}var _=t._fullData[s[p]].dimensions[x];k.length?(k.length===1&&(k=k[0]),v.constraintrange=k,_.constraintrange=k.slice(),k=[k]):(delete v.constraintrange,delete _.constraintrange,k=null);var C={};C[E]=k,t.emit("plotly_restyle",[C,[u[p]]])},c=function(p){t.emit("plotly_hover",p)},h=function(p){t.emit("plotly_unhover",p)},d=function(p,x){var b=cHt(x,o[p].filter(XUe));a[p].sort(b),o[p].filter(function(v){return!XUe(v)}).sort(function(v){return o[p].indexOf(v)}).forEach(function(v){a[p].splice(a[p].indexOf(v),1),a[p].splice(o[p].indexOf(v),0,v)}),t.emit("plotly_restyle",[{dimensions:[a[p]]},[u[p]]])};uHt(t,r,{width:l.w,height:l.h,margin:{t:l.t,r:l.r,b:l.b,l:l.l}},{filterChanged:f,hover:c,unhover:h,axesMoved:d})}};XK.reglPrecompiled=YUe});var $Ue=Te(zk=>{"use strict";var JUe=Jl(),hHt=Rd().getModuleCalcData,dHt=ZK(),pHt=jv();zk.name="parcoords";zk.plot=function(e){var t=hHt(e.calcdata,"parcoords")[0];t.length&&dHt(e,t)};zk.clean=function(e,t,r,n){var i=n._has&&n._has("parcoords"),a=t._has&&t._has("parcoords");i&&!a&&(n._paperdiv.selectAll(".parcoords").remove(),n._glimages.selectAll("*").remove())};zk.toSVG=function(e){var t=e._fullLayout._glimages,r=JUe.select(e).selectAll(".svg-container"),n=r.filter(function(a,o){return o===r.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function i(){var a=this,o=a.toDataURL("image/png"),s=t.append("svg:image");s.attr({xmlns:pHt.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}n.each(i),window.setTimeout(function(){JUe.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var eVe=Te((Ixr,QUe)=>{"use strict";QUe.exports={attributes:zK(),supplyDefaults:dUe(),calc:vUe(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:$Ue(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var rVe=Te((Rxr,tVe)=>{tVe.exports=function(t,r){"use strict";var n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Ce,Le,pe,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Je,nt,gt,Nt,it,Ye,kt,Tt,St,Dt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr;return n=t.gl,i=t.context,a=t.strings,o=t.next,s=t.current,u=t.draw,l=t.elements,f=t.buffer,c=t.shader,h=t.attributes,d=t.vao,p=t.uniforms,x=t.framebuffer,b=t.extensions,v=t.timer,k=t.isBufferArgs,E=o.blend_color,T=s.blend_color,L=o.blend_equation,_=s.blend_equation,C=o.blend_func,S=s.blend_func,m=o.depth_range,P=s.depth_range,A=o.colorMask,B=s.colorMask,F=o.polygonOffset_offset,U=s.polygonOffset_offset,G=o.sample_coverage,j=s.sample_coverage,H=o.stencil_func,N=s.stencil_func,W=o.stencil_opFront,re=s.stencil_opFront,ae=o.stencil_opBack,be=s.stencil_opBack,Ce=o.scissor_box,Le=s.scissor_box,pe=o.viewport,te=s.viewport,ke={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ee={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Me={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Ne={add:32774,subtract:32778,"reverse subtract":32779},Fe={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ye={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ve={cw:2304,ccw:2305},ce=o.blend_color,Je=s.blend_color,nt=o.blend_equation,gt=s.blend_equation,Nt=o.blend_func,it=s.blend_func,Ye=o.depth_range,kt=s.depth_range,Tt=o.colorMask,St=s.colorMask,Dt=o.polygonOffset_offset,Zt=s.polygonOffset_offset,Et=o.sample_coverage,Ae=s.sample_coverage,at=o.stencil_func,wt=s.stencil_func,vt=o.stencil_opFront,st=s.stencil_opFront,Ue=o.stencil_opBack,rt=s.stencil_opBack,$e=o.scissor_box,zt=s.scissor_box,Yt=o.viewport,hr=s.viewport,{poll:function(){var yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,de,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di;s.dirty=!1,br=o.dither,Ut=o.blend_enable,Ie=o.depth_enable,xe=o.cull_enable,Oe=o.polygonOffset_enable,Re=o.sample_alpha,De=o.sample_enable,ct=o.stencil_enable,ge=o.scissor_enable,fe=o.depth_func,de=s.depth_func,dt=o.depth_mask,It=s.depth_mask,Pt=o.cull_face,rr=s.cull_face,Hr=o.frontFace,Dr=s.frontFace,Mr=o.lineWidth,Fr=s.lineWidth,di=o.stencil_mask,Di=s.stencil_mask,yr=x.next,yr!==x.cur&&(yr?n.bindFramebuffer(36160,yr.framebuffer):n.bindFramebuffer(36160,null),x.cur=yr),br!==s.dither&&(br?n.enable(3024):n.disable(3024),s.dither=br),Ut!==s.blend_enable&&(Ut?n.enable(3042):n.disable(3042),s.blend_enable=Ut),Ie!==s.depth_enable&&(Ie?n.enable(2929):n.disable(2929),s.depth_enable=Ie),xe!==s.cull_enable&&(xe?n.enable(2884):n.disable(2884),s.cull_enable=xe),Oe!==s.polygonOffset_enable&&(Oe?n.enable(32823):n.disable(32823),s.polygonOffset_enable=Oe),Re!==s.sample_alpha&&(Re?n.enable(32926):n.disable(32926),s.sample_alpha=Re),De!==s.sample_enable&&(De?n.enable(32928):n.disable(32928),s.sample_enable=De),ct!==s.stencil_enable&&(ct?n.enable(2960):n.disable(2960),s.stencil_enable=ct),ge!==s.scissor_enable&&(ge?n.enable(3089):n.disable(3089),s.scissor_enable=ge),(ce[0]!==Je[0]||ce[1]!==Je[1]||ce[2]!==Je[2]||ce[3]!==Je[3])&&(n.blendColor(ce[0],ce[1],ce[2],ce[3]),Je[0]=ce[0],Je[1]=ce[1],Je[2]=ce[2],Je[3]=ce[3]),(nt[0]!==gt[0]||nt[1]!==gt[1])&&(n.blendEquationSeparate(nt[0],nt[1]),gt[0]=nt[0],gt[1]=nt[1]),(Nt[0]!==it[0]||Nt[1]!==it[1]||Nt[2]!==it[2]||Nt[3]!==it[3])&&(n.blendFuncSeparate(Nt[0],Nt[1],Nt[2],Nt[3]),it[0]=Nt[0],it[1]=Nt[1],it[2]=Nt[2],it[3]=Nt[3]),fe!==de&&(n.depthFunc(fe),s.depth_func=fe),(Ye[0]!==kt[0]||Ye[1]!==kt[1])&&(n.depthRange(Ye[0],Ye[1]),kt[0]=Ye[0],kt[1]=Ye[1]),dt!==It&&(n.depthMask(dt),s.depth_mask=dt),(Tt[0]!==St[0]||Tt[1]!==St[1]||Tt[2]!==St[2]||Tt[3]!==St[3])&&(n.colorMask(Tt[0],Tt[1],Tt[2],Tt[3]),St[0]=Tt[0],St[1]=Tt[1],St[2]=Tt[2],St[3]=Tt[3]),Pt!==rr&&(n.cullFace(Pt),s.cull_face=Pt),Hr!==Dr&&(n.frontFace(Hr),s.frontFace=Hr),Mr!==Fr&&(n.lineWidth(Mr),s.lineWidth=Mr),(Dt[0]!==Zt[0]||Dt[1]!==Zt[1])&&(n.polygonOffset(Dt[0],Dt[1]),Zt[0]=Dt[0],Zt[1]=Dt[1]),(Et[0]!==Ae[0]||Et[1]!==Ae[1])&&(n.sampleCoverage(Et[0],Et[1]),Ae[0]=Et[0],Ae[1]=Et[1]),di!==Di&&(n.stencilMask(di),s.stencil_mask=di),(at[0]!==wt[0]||at[1]!==wt[1]||at[2]!==wt[2])&&(n.stencilFunc(at[0],at[1],at[2]),wt[0]=at[0],wt[1]=at[1],wt[2]=at[2]),(vt[0]!==st[0]||vt[1]!==st[1]||vt[2]!==st[2]||vt[3]!==st[3])&&(n.stencilOpSeparate(vt[0],vt[1],vt[2],vt[3]),st[0]=vt[0],st[1]=vt[1],st[2]=vt[2],st[3]=vt[3]),(Ue[0]!==rt[0]||Ue[1]!==rt[1]||Ue[2]!==rt[2]||Ue[3]!==rt[3])&&(n.stencilOpSeparate(Ue[0],Ue[1],Ue[2],Ue[3]),rt[0]=Ue[0],rt[1]=Ue[1],rt[2]=Ue[2],rt[3]=Ue[3]),($e[0]!==zt[0]||$e[1]!==zt[1]||$e[2]!==zt[2]||$e[3]!==zt[3])&&(n.scissor($e[0],$e[1],$e[2],$e[3]),zt[0]=$e[0],zt[1]=$e[1],zt[2]=$e[2],zt[3]=$e[3]),(Yt[0]!==hr[0]||Yt[1]!==hr[1]||Yt[2]!==hr[2]||Yt[3]!==hr[3])&&(n.viewport(Yt[0],Yt[1],Yt[2],Yt[3]),hr[0]=Yt[0],hr[1]=Yt[1],hr[2]=Yt[2],hr[3]=Yt[3])},refresh:function(){var yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,de,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci;s.dirty=!1,Ie=o.dither,xe=o.blend_enable,Oe=o.depth_enable,Re=o.cull_enable,De=o.polygonOffset_enable,ct=o.sample_alpha,ge=o.sample_enable,fe=o.stencil_enable,de=o.scissor_enable,dt=o.depth_func,It=s.depth_func,Pt=o.depth_mask,rr=s.depth_mask,Hr=o.cull_face,Dr=s.cull_face,Mr=o.frontFace,Fr=s.frontFace,di=o.lineWidth,Di=s.lineWidth,Ii=o.stencil_mask,Ci=s.stencil_mask,yr=x.next,yr?n.bindFramebuffer(36160,yr.framebuffer):n.bindFramebuffer(36160,null),x.cur=yr,br=h,Ut=0;for(var nn=0;nn{iVe.exports=function(t,r,n,i,a,o,s,u){"use strict";var l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Ce,Le,pe,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Je,nt,gt,Nt,it,Ye,kt;return l=t.gl,f=t.context,c=t.strings,h=t.next,d=t.current,p=t.draw,x=t.elements,b=t.buffer,v=t.shader,k=t.attributes,E=t.vao,T=t.uniforms,L=t.framebuffer,_=t.extensions,C=t.timer,S=t.isBufferArgs,m=h.blend_color,P=d.blend_color,A=h.blend_equation,B=d.blend_equation,F=h.blend_func,U=d.blend_func,G=h.depth_range,j=d.depth_range,H=h.colorMask,N=d.colorMask,W=h.polygonOffset_offset,re=d.polygonOffset_offset,ae=h.sample_coverage,be=d.sample_coverage,Ce=h.stencil_func,Le=d.stencil_func,pe=h.stencil_opFront,te=d.stencil_opFront,ke=h.stencil_opBack,Ee=d.stencil_opBack,Me=h.scissor_box,Ne=d.scissor_box,Fe=h.viewport,ye=d.viewport,Ve={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},ce={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Je={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},nt={add:32774,subtract:32778,"reverse subtract":32779},gt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Nt={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},it={cw:2304,ccw:2305},Ye={},kt={},{draw:function(Tt){var St,Dt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut;if(St=Tt.framebuffer,Dt=L.getFramebuffer(St),Zt=L.next,L.next=Dt,Et=f.framebufferWidth,f.framebufferWidth=Dt?Dt.width:f.drawingBufferWidth,Ae=f.framebufferHeight,f.framebufferHeight=Dt?Dt.height:f.drawingBufferHeight,Dt!==L.cur&&(Dt?l.bindFramebuffer(36160,Dt.framebuffer):l.bindFramebuffer(36160,null),L.cur=Dt),d.dirty){var Ie,xe,Oe,Re,De,ct,ge,fe,de,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi;Ie=h.dither,Ie!==d.dither&&(Ie?l.enable(3024):l.disable(3024),d.dither=Ie),xe=h.blend_enable,xe!==d.blend_enable&&(xe?l.enable(3042):l.disable(3042),d.blend_enable=xe),Oe=m[0],Re=m[1],De=m[2],ct=m[3],(Oe!==P[0]||Re!==P[1]||De!==P[2]||ct!==P[3])&&(l.blendColor(Oe,Re,De,ct),P[0]=Oe,P[1]=Re,P[2]=De,P[3]=ct),ge=A[0],fe=A[1],(ge!==B[0]||fe!==B[1])&&(l.blendEquationSeparate(ge,fe),B[0]=ge,B[1]=fe),de=F[0],dt=F[1],It=F[2],Pt=F[3],(de!==U[0]||dt!==U[1]||It!==U[2]||Pt!==U[3])&&(l.blendFuncSeparate(de,dt,It,Pt),U[0]=de,U[1]=dt,U[2]=It,U[3]=Pt),rr=h.depth_enable,rr!==d.depth_enable&&(rr?l.enable(2929):l.disable(2929),d.depth_enable=rr),Hr=h.depth_func,Hr!==d.depth_func&&(l.depthFunc(Hr),d.depth_func=Hr),Dr=G[0],Mr=G[1],(Dr!==j[0]||Mr!==j[1])&&(l.depthRange(Dr,Mr),j[0]=Dr,j[1]=Mr),Fr=h.depth_mask,Fr!==d.depth_mask&&(l.depthMask(Fr),d.depth_mask=Fr),di=H[0],Di=H[1],Ii=H[2],Ci=H[3],(di!==N[0]||Di!==N[1]||Ii!==N[2]||Ci!==N[3])&&(l.colorMask(di,Di,Ii,Ci),N[0]=di,N[1]=Di,N[2]=Ii,N[3]=Ci),nn=h.cull_enable,nn!==d.cull_enable&&(nn?l.enable(2884):l.disable(2884),d.cull_enable=nn),ii=h.cull_face,ii!==d.cull_face&&(l.cullFace(ii),d.cull_face=ii),wi=h.frontFace,wi!==d.frontFace&&(l.frontFace(wi),d.frontFace=wi),Gi=h.lineWidth,Gi!==d.lineWidth&&(l.lineWidth(Gi),d.lineWidth=Gi),Bt=h.polygonOffset_enable,Bt!==d.polygonOffset_enable&&(Bt?l.enable(32823):l.disable(32823),d.polygonOffset_enable=Bt),yt=W[0],Vt=W[1],(yt!==re[0]||Vt!==re[1])&&(l.polygonOffset(yt,Vt),re[0]=yt,re[1]=Vt),Wt=h.sample_alpha,Wt!==d.sample_alpha&&(Wt?l.enable(32926):l.disable(32926),d.sample_alpha=Wt),_r=h.sample_enable,_r!==d.sample_enable&&(_r?l.enable(32928):l.disable(32928),d.sample_enable=_r),Lr=ae[0],Ur=ae[1],(Lr!==be[0]||Ur!==be[1])&&(l.sampleCoverage(Lr,Ur),be[0]=Lr,be[1]=Ur),Ir=h.stencil_enable,Ir!==d.stencil_enable&&(Ir?l.enable(2960):l.disable(2960),d.stencil_enable=Ir),Gr=h.stencil_mask,Gr!==d.stencil_mask&&(l.stencilMask(Gr),d.stencil_mask=Gr),jr=Ce[0],yi=Ce[1],Ei=Ce[2],(jr!==Le[0]||yi!==Le[1]||Ei!==Le[2])&&(l.stencilFunc(jr,yi,Ei),Le[0]=jr,Le[1]=yi,Le[2]=Ei),Vi=pe[0],ti=pe[1],en=pe[2],Yr=pe[3],(Vi!==te[0]||ti!==te[1]||en!==te[2]||Yr!==te[3])&&(l.stencilOpSeparate(Vi,ti,en,Yr),te[0]=Vi,te[1]=ti,te[2]=en,te[3]=Yr),oi=ke[0],Bi=ke[1],an=ke[2],rn=ke[3],(oi!==Ee[0]||Bi!==Ee[1]||an!==Ee[2]||rn!==Ee[3])&&(l.stencilOpSeparate(oi,Bi,an,rn),Ee[0]=oi,Ee[1]=Bi,Ee[2]=an,Ee[3]=rn),Fi=h.scissor_enable,Fi!==d.scissor_enable&&(Fi?l.enable(3089):l.disable(3089),d.scissor_enable=Fi)}at=f.framebufferWidth,wt=f.framebufferHeight,vt=f.viewportWidth,f.viewportWidth=at,st=f.viewportHeight,f.viewportHeight=wt,l.viewport(0,0,at,wt),ye[0]=0,ye[1]=0,ye[2]=at,ye[3]=wt,Ue=f.framebufferWidth,rt=f.framebufferHeight,l.scissor(0,0,Ue,rt),Ne[0]=0,Ne[1]=0,Ne[2]=Ue,Ne[3]=rt,$e=d.profile,$e&&(zt=performance.now(),r.count++),Yt=v.frag,hr=v.vert,yr=v.program(hr,Yt),l.useProgram(yr.program),E.setVAO(null),br=yr.id,Ut=Ye[br],Ut?Ut.call(this,Tt):(Ut=Ye[br]=n(yr),Ut.call(this,Tt)),d.dirty=!0,E.setVAO(null),L.next=Zt,f.framebufferWidth=Et,f.framebufferHeight=Ae,f.viewportWidth=vt,f.viewportHeight=st,$e&&(r.cpuTime+=performance.now()-zt)},scope:function(Tt,St,Dt){var Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De;Zt=Tt.framebuffer,Et=L.getFramebuffer(Zt),Ae=L.next,L.next=Et,at=f.framebufferWidth,f.framebufferWidth=Et?Et.width:f.drawingBufferWidth,wt=f.framebufferHeight,f.framebufferHeight=Et?Et.height:f.drawingBufferHeight,vt=f.framebufferWidth,st=f.framebufferHeight,Ue=f.viewportWidth,f.viewportWidth=vt,rt=f.viewportHeight,f.viewportHeight=st,$e=Fe[0],Fe[0]=i,zt=Fe[1],Fe[1]=a,Yt=Fe[2],Fe[2]=vt,hr=Fe[3],Fe[3]=st,yr=f.framebufferWidth,br=f.framebufferHeight,Ut=Me[0],Me[0]=o,Ie=Me[1],Me[1]=s,xe=Me[2],Me[2]=yr,Oe=Me[3],Me[3]=br,Re=d.profile,Re&&(De=performance.now(),r.count++),d.dirty=!0,St(f,Tt,Dt),L.next=Ae,f.framebufferWidth=at,f.framebufferHeight=wt,f.viewportWidth=Ue,f.viewportHeight=rt,Fe[0]=$e,Fe[1]=zt,Fe[2]=Yt,Fe[3]=hr,Me[0]=Ut,Me[1]=Ie,Me[2]=xe,Me[3]=Oe,Re&&(r.cpuTime+=performance.now()-De),d.dirty=!0},batch:function(Tt,St){var Dt,Zt,Et,Ae,at,wt,vt;if(d.dirty){var st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,de,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi;st=h.dither,st!==d.dither&&(st?l.enable(3024):l.disable(3024),d.dither=st),Ue=h.blend_enable,Ue!==d.blend_enable&&(Ue?l.enable(3042):l.disable(3042),d.blend_enable=Ue),rt=m[0],$e=m[1],zt=m[2],Yt=m[3],(rt!==P[0]||$e!==P[1]||zt!==P[2]||Yt!==P[3])&&(l.blendColor(rt,$e,zt,Yt),P[0]=rt,P[1]=$e,P[2]=zt,P[3]=Yt),hr=A[0],yr=A[1],(hr!==B[0]||yr!==B[1])&&(l.blendEquationSeparate(hr,yr),B[0]=hr,B[1]=yr),br=F[0],Ut=F[1],Ie=F[2],xe=F[3],(br!==U[0]||Ut!==U[1]||Ie!==U[2]||xe!==U[3])&&(l.blendFuncSeparate(br,Ut,Ie,xe),U[0]=br,U[1]=Ut,U[2]=Ie,U[3]=xe),Oe=h.depth_enable,Oe!==d.depth_enable&&(Oe?l.enable(2929):l.disable(2929),d.depth_enable=Oe),Re=h.depth_func,Re!==d.depth_func&&(l.depthFunc(Re),d.depth_func=Re),De=G[0],ct=G[1],(De!==j[0]||ct!==j[1])&&(l.depthRange(De,ct),j[0]=De,j[1]=ct),ge=h.depth_mask,ge!==d.depth_mask&&(l.depthMask(ge),d.depth_mask=ge),fe=H[0],de=H[1],dt=H[2],It=H[3],(fe!==N[0]||de!==N[1]||dt!==N[2]||It!==N[3])&&(l.colorMask(fe,de,dt,It),N[0]=fe,N[1]=de,N[2]=dt,N[3]=It),Pt=h.cull_enable,Pt!==d.cull_enable&&(Pt?l.enable(2884):l.disable(2884),d.cull_enable=Pt),rr=h.cull_face,rr!==d.cull_face&&(l.cullFace(rr),d.cull_face=rr),Hr=h.frontFace,Hr!==d.frontFace&&(l.frontFace(Hr),d.frontFace=Hr),Dr=h.lineWidth,Dr!==d.lineWidth&&(l.lineWidth(Dr),d.lineWidth=Dr),Mr=h.polygonOffset_enable,Mr!==d.polygonOffset_enable&&(Mr?l.enable(32823):l.disable(32823),d.polygonOffset_enable=Mr),Fr=W[0],di=W[1],(Fr!==re[0]||di!==re[1])&&(l.polygonOffset(Fr,di),re[0]=Fr,re[1]=di),Di=h.sample_alpha,Di!==d.sample_alpha&&(Di?l.enable(32926):l.disable(32926),d.sample_alpha=Di),Ii=h.sample_enable,Ii!==d.sample_enable&&(Ii?l.enable(32928):l.disable(32928),d.sample_enable=Ii),Ci=ae[0],nn=ae[1],(Ci!==be[0]||nn!==be[1])&&(l.sampleCoverage(Ci,nn),be[0]=Ci,be[1]=nn),ii=h.stencil_enable,ii!==d.stencil_enable&&(ii?l.enable(2960):l.disable(2960),d.stencil_enable=ii),wi=h.stencil_mask,wi!==d.stencil_mask&&(l.stencilMask(wi),d.stencil_mask=wi),Gi=Ce[0],Bt=Ce[1],yt=Ce[2],(Gi!==Le[0]||Bt!==Le[1]||yt!==Le[2])&&(l.stencilFunc(Gi,Bt,yt),Le[0]=Gi,Le[1]=Bt,Le[2]=yt),Vt=pe[0],Wt=pe[1],_r=pe[2],Lr=pe[3],(Vt!==te[0]||Wt!==te[1]||_r!==te[2]||Lr!==te[3])&&(l.stencilOpSeparate(Vt,Wt,_r,Lr),te[0]=Vt,te[1]=Wt,te[2]=_r,te[3]=Lr),Ur=ke[0],Ir=ke[1],Gr=ke[2],jr=ke[3],(Ur!==Ee[0]||Ir!==Ee[1]||Gr!==Ee[2]||jr!==Ee[3])&&(l.stencilOpSeparate(Ur,Ir,Gr,jr),Ee[0]=Ur,Ee[1]=Ir,Ee[2]=Gr,Ee[3]=jr),yi=h.scissor_enable,yi!==d.scissor_enable&&(yi?l.enable(3089):l.disable(3089),d.scissor_enable=yi)}Dt=d.profile,Dt&&(Zt=performance.now(),r.count+=St),Et=v.frag,Ae=v.vert,at=v.program(Ae,Et),l.useProgram(at.program),E.setVAO(null),wt=at.id,vt=kt[wt],vt?vt.call(this,Tt,St):(vt=kt[wt]=u(at),vt.call(this,Tt,St)),d.dirty=!0,E.setVAO(null),Dt&&(r.cpuTime+=performance.now()-Zt)}}}});var oVe=Te((Fxr,aVe)=>{aVe.exports=function(t,r,n,i){"use strict";var a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Ce,Le,pe,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Je,nt,gt;return a=t.gl,o=t.context,s=t.strings,u=t.next,l=t.current,f=t.draw,c=t.elements,h=t.buffer,d=t.shader,p=t.attributes,x=t.vao,b=t.uniforms,v=t.framebuffer,k=t.extensions,E=t.timer,T=t.isBufferArgs,L=u.blend_color,_=l.blend_color,C=u.blend_equation,S=l.blend_equation,m=u.blend_func,P=l.blend_func,A=u.depth_range,B=l.depth_range,F=u.colorMask,U=l.colorMask,G=u.polygonOffset_offset,j=l.polygonOffset_offset,H=u.sample_coverage,N=l.sample_coverage,W=u.stencil_func,re=l.stencil_func,ae=u.stencil_opFront,be=l.stencil_opFront,Ce=u.stencil_opBack,Le=l.stencil_opBack,pe=u.scissor_box,te=l.scissor_box,ke=u.viewport,Ee=l.viewport,Me={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ne={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Fe={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},ye={add:32774,subtract:32778,"reverse subtract":32779},Ve={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ce={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Je={cw:2304,ccw:2305},nt={},gt={},{draw:function(Nt){var it,Ye,kt,Tt,St,Dt,Zt,Et;if(it=v.next,it!==v.cur&&(it?a.bindFramebuffer(36160,it.framebuffer):a.bindFramebuffer(36160,null),v.cur=it),l.dirty){var Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,de,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en;Ae=u.dither,Ae!==l.dither&&(Ae?a.enable(3024):a.disable(3024),l.dither=Ae),at=u.blend_enable,at!==l.blend_enable&&(at?a.enable(3042):a.disable(3042),l.blend_enable=at),wt=L[0],vt=L[1],st=L[2],Ue=L[3],(wt!==_[0]||vt!==_[1]||st!==_[2]||Ue!==_[3])&&(a.blendColor(wt,vt,st,Ue),_[0]=wt,_[1]=vt,_[2]=st,_[3]=Ue),rt=C[0],$e=C[1],(rt!==S[0]||$e!==S[1])&&(a.blendEquationSeparate(rt,$e),S[0]=rt,S[1]=$e),zt=m[0],Yt=m[1],hr=m[2],yr=m[3],(zt!==P[0]||Yt!==P[1]||hr!==P[2]||yr!==P[3])&&(a.blendFuncSeparate(zt,Yt,hr,yr),P[0]=zt,P[1]=Yt,P[2]=hr,P[3]=yr),br=u.depth_enable,br!==l.depth_enable&&(br?a.enable(2929):a.disable(2929),l.depth_enable=br),Ut=u.depth_func,Ut!==l.depth_func&&(a.depthFunc(Ut),l.depth_func=Ut),Ie=A[0],xe=A[1],(Ie!==B[0]||xe!==B[1])&&(a.depthRange(Ie,xe),B[0]=Ie,B[1]=xe),Oe=u.depth_mask,Oe!==l.depth_mask&&(a.depthMask(Oe),l.depth_mask=Oe),Re=F[0],De=F[1],ct=F[2],ge=F[3],(Re!==U[0]||De!==U[1]||ct!==U[2]||ge!==U[3])&&(a.colorMask(Re,De,ct,ge),U[0]=Re,U[1]=De,U[2]=ct,U[3]=ge),fe=u.cull_enable,fe!==l.cull_enable&&(fe?a.enable(2884):a.disable(2884),l.cull_enable=fe),de=u.cull_face,de!==l.cull_face&&(a.cullFace(de),l.cull_face=de),dt=u.frontFace,dt!==l.frontFace&&(a.frontFace(dt),l.frontFace=dt),It=u.lineWidth,It!==l.lineWidth&&(a.lineWidth(It),l.lineWidth=It),Pt=u.polygonOffset_enable,Pt!==l.polygonOffset_enable&&(Pt?a.enable(32823):a.disable(32823),l.polygonOffset_enable=Pt),rr=G[0],Hr=G[1],(rr!==j[0]||Hr!==j[1])&&(a.polygonOffset(rr,Hr),j[0]=rr,j[1]=Hr),Dr=u.sample_alpha,Dr!==l.sample_alpha&&(Dr?a.enable(32926):a.disable(32926),l.sample_alpha=Dr),Mr=u.sample_enable,Mr!==l.sample_enable&&(Mr?a.enable(32928):a.disable(32928),l.sample_enable=Mr),Fr=H[0],di=H[1],(Fr!==N[0]||di!==N[1])&&(a.sampleCoverage(Fr,di),N[0]=Fr,N[1]=di),Di=u.stencil_enable,Di!==l.stencil_enable&&(Di?a.enable(2960):a.disable(2960),l.stencil_enable=Di),Ii=u.stencil_mask,Ii!==l.stencil_mask&&(a.stencilMask(Ii),l.stencil_mask=Ii),Ci=W[0],nn=W[1],ii=W[2],(Ci!==re[0]||nn!==re[1]||ii!==re[2])&&(a.stencilFunc(Ci,nn,ii),re[0]=Ci,re[1]=nn,re[2]=ii),wi=ae[0],Gi=ae[1],Bt=ae[2],yt=ae[3],(wi!==be[0]||Gi!==be[1]||Bt!==be[2]||yt!==be[3])&&(a.stencilOpSeparate(wi,Gi,Bt,yt),be[0]=wi,be[1]=Gi,be[2]=Bt,be[3]=yt),Vt=Ce[0],Wt=Ce[1],_r=Ce[2],Lr=Ce[3],(Vt!==Le[0]||Wt!==Le[1]||_r!==Le[2]||Lr!==Le[3])&&(a.stencilOpSeparate(Vt,Wt,_r,Lr),Le[0]=Vt,Le[1]=Wt,Le[2]=_r,Le[3]=Lr),Ur=u.scissor_enable,Ur!==l.scissor_enable&&(Ur?a.enable(3089):a.disable(3089),l.scissor_enable=Ur),Ir=pe[0],Gr=pe[1],jr=pe[2],yi=pe[3],(Ir!==te[0]||Gr!==te[1]||jr!==te[2]||yi!==te[3])&&(a.scissor(Ir,Gr,jr,yi),te[0]=Ir,te[1]=Gr,te[2]=jr,te[3]=yi),Ei=ke[0],Vi=ke[1],ti=ke[2],en=ke[3],(Ei!==Ee[0]||Vi!==Ee[1]||ti!==Ee[2]||en!==Ee[3])&&(a.viewport(Ei,Vi,ti,en),Ee[0]=Ei,Ee[1]=Vi,Ee[2]=ti,Ee[3]=en),l.dirty=!1}Ye=l.profile,Ye&&(kt=performance.now(),r.count++),Tt=d.frag,St=d.vert,Dt=d.program(St,Tt),a.useProgram(Dt.program),x.setVAO(null),Zt=Dt.id,Et=nt[Zt],Et?Et.call(this,Nt):(Et=nt[Zt]=n(Dt),Et.call(this,Nt)),x.setVAO(null),Ye&&(r.cpuTime+=performance.now()-kt)},scope:function(Nt,it,Ye){var kt,Tt;kt=l.profile,kt&&(Tt=performance.now(),r.count++),it(o,Nt,Ye),kt&&(r.cpuTime+=performance.now()-Tt)},batch:function(Nt,it){var Ye,kt,Tt,St,Dt,Zt,Et,Ae;if(Ye=v.next,Ye!==v.cur&&(Ye?a.bindFramebuffer(36160,Ye.framebuffer):a.bindFramebuffer(36160,null),v.cur=Ye),l.dirty){var at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,de,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr;at=u.dither,at!==l.dither&&(at?a.enable(3024):a.disable(3024),l.dither=at),wt=u.blend_enable,wt!==l.blend_enable&&(wt?a.enable(3042):a.disable(3042),l.blend_enable=wt),vt=L[0],st=L[1],Ue=L[2],rt=L[3],(vt!==_[0]||st!==_[1]||Ue!==_[2]||rt!==_[3])&&(a.blendColor(vt,st,Ue,rt),_[0]=vt,_[1]=st,_[2]=Ue,_[3]=rt),$e=C[0],zt=C[1],($e!==S[0]||zt!==S[1])&&(a.blendEquationSeparate($e,zt),S[0]=$e,S[1]=zt),Yt=m[0],hr=m[1],yr=m[2],br=m[3],(Yt!==P[0]||hr!==P[1]||yr!==P[2]||br!==P[3])&&(a.blendFuncSeparate(Yt,hr,yr,br),P[0]=Yt,P[1]=hr,P[2]=yr,P[3]=br),Ut=u.depth_enable,Ut!==l.depth_enable&&(Ut?a.enable(2929):a.disable(2929),l.depth_enable=Ut),Ie=u.depth_func,Ie!==l.depth_func&&(a.depthFunc(Ie),l.depth_func=Ie),xe=A[0],Oe=A[1],(xe!==B[0]||Oe!==B[1])&&(a.depthRange(xe,Oe),B[0]=xe,B[1]=Oe),Re=u.depth_mask,Re!==l.depth_mask&&(a.depthMask(Re),l.depth_mask=Re),De=F[0],ct=F[1],ge=F[2],fe=F[3],(De!==U[0]||ct!==U[1]||ge!==U[2]||fe!==U[3])&&(a.colorMask(De,ct,ge,fe),U[0]=De,U[1]=ct,U[2]=ge,U[3]=fe),de=u.cull_enable,de!==l.cull_enable&&(de?a.enable(2884):a.disable(2884),l.cull_enable=de),dt=u.cull_face,dt!==l.cull_face&&(a.cullFace(dt),l.cull_face=dt),It=u.frontFace,It!==l.frontFace&&(a.frontFace(It),l.frontFace=It),Pt=u.lineWidth,Pt!==l.lineWidth&&(a.lineWidth(Pt),l.lineWidth=Pt),rr=u.polygonOffset_enable,rr!==l.polygonOffset_enable&&(rr?a.enable(32823):a.disable(32823),l.polygonOffset_enable=rr),Hr=G[0],Dr=G[1],(Hr!==j[0]||Dr!==j[1])&&(a.polygonOffset(Hr,Dr),j[0]=Hr,j[1]=Dr),Mr=u.sample_alpha,Mr!==l.sample_alpha&&(Mr?a.enable(32926):a.disable(32926),l.sample_alpha=Mr),Fr=u.sample_enable,Fr!==l.sample_enable&&(Fr?a.enable(32928):a.disable(32928),l.sample_enable=Fr),di=H[0],Di=H[1],(di!==N[0]||Di!==N[1])&&(a.sampleCoverage(di,Di),N[0]=di,N[1]=Di),Ii=u.stencil_enable,Ii!==l.stencil_enable&&(Ii?a.enable(2960):a.disable(2960),l.stencil_enable=Ii),Ci=u.stencil_mask,Ci!==l.stencil_mask&&(a.stencilMask(Ci),l.stencil_mask=Ci),nn=W[0],ii=W[1],wi=W[2],(nn!==re[0]||ii!==re[1]||wi!==re[2])&&(a.stencilFunc(nn,ii,wi),re[0]=nn,re[1]=ii,re[2]=wi),Gi=ae[0],Bt=ae[1],yt=ae[2],Vt=ae[3],(Gi!==be[0]||Bt!==be[1]||yt!==be[2]||Vt!==be[3])&&(a.stencilOpSeparate(Gi,Bt,yt,Vt),be[0]=Gi,be[1]=Bt,be[2]=yt,be[3]=Vt),Wt=Ce[0],_r=Ce[1],Lr=Ce[2],Ur=Ce[3],(Wt!==Le[0]||_r!==Le[1]||Lr!==Le[2]||Ur!==Le[3])&&(a.stencilOpSeparate(Wt,_r,Lr,Ur),Le[0]=Wt,Le[1]=_r,Le[2]=Lr,Le[3]=Ur),Ir=u.scissor_enable,Ir!==l.scissor_enable&&(Ir?a.enable(3089):a.disable(3089),l.scissor_enable=Ir),Gr=pe[0],jr=pe[1],yi=pe[2],Ei=pe[3],(Gr!==te[0]||jr!==te[1]||yi!==te[2]||Ei!==te[3])&&(a.scissor(Gr,jr,yi,Ei),te[0]=Gr,te[1]=jr,te[2]=yi,te[3]=Ei),Vi=ke[0],ti=ke[1],en=ke[2],Yr=ke[3],(Vi!==Ee[0]||ti!==Ee[1]||en!==Ee[2]||Yr!==Ee[3])&&(a.viewport(Vi,ti,en,Yr),Ee[0]=Vi,Ee[1]=ti,Ee[2]=en,Ee[3]=Yr),l.dirty=!1}kt=l.profile,kt&&(Tt=performance.now(),r.count+=it),St=d.frag,Dt=d.vert,Zt=d.program(Dt,St),a.useProgram(Zt.program),x.setVAO(null),Et=Zt.id,Ae=gt[Et],Ae?Ae.call(this,Nt,it):(Ae=gt[Et]=i(Zt),Ae.call(this,Nt,it)),x.setVAO(null),kt&&(r.cpuTime+=performance.now()-Tt)}}}});var lVe=Te((Bxr,sVe)=>{sVe.exports=function(t,r,n,i,a,o,s,u,l,f,c,h,d,p,x,b,v,k,E,T,L,_,C,S,m,P,A,B,F,U,G,j,H,N,W,re,ae,be,Ce,Le,pe,te,ke,Ee,Me,Ne,Fe,ye,Ve,ce,Je,nt,gt,Nt,it,Ye,kt,Tt,St,Dt,Zt,Et,Ae,at,wt,vt,st,Ue,rt,$e,zt,Yt,hr,yr,br,Ut,Ie,xe,Oe,Re,De,ct,ge,fe,de,dt,It,Pt,rr,Hr,Dr,Mr,Fr,di,Di,Ii,Ci,nn,ii,wi,Gi,Bt,yt,Vt,Wt,_r,Lr,Ur,Ir,Gr,jr,yi,Ei,Vi,ti,en,Yr,oi,Bi,an,rn,Fi,Ri,xn,xi,Xr,ft,tr,pr,gr,Zr,Ai,Qi,ni,Zi,aa,Mn,Un,Ga,ma,oa,ka,so){"use strict";var Kr,Ia,Yo,fa,kn,Ta,ys,uo,ls,$a,fo,mn,ra,wa,ws,Co,Po,ji,gn,Ps,Ha,Sn,ao,Ba,Ko,Qo,Wi,Sa,Qa,vn,da,la,vo,As,ps,co,mo,No,jn,Go,Ys,qs,Ns,Oa,ha,Vs,Ya,_n,Vn,wo,Ra,Xn,un,$n,Ka,qn,Eo,Ja,lo,eo,sa,es,Na,tn,Pa,to,yo,Jo,Ao,Dn,_a,Ws,Ca,Es,Ts,Ho,Wa,To,ts,Wo,qa;return Kr=t.gl,Ia=t.context,Yo=t.strings,fa=t.next,kn=t.current,Ta=t.draw,ys=t.elements,uo=t.buffer,ls=t.shader,$a=t.attributes,fo=t.vao,mn=t.uniforms,ra=t.framebuffer,wa=t.extensions,ws=t.timer,Co=t.isBufferArgs,Po=fa.blend_color,ji=kn.blend_color,gn=fa.blend_equation,Ps=kn.blend_equation,Ha=fa.blend_func,Sn=kn.blend_func,ao=fa.depth_range,Ba=kn.depth_range,Ko=fa.colorMask,Qo=kn.colorMask,Wi=fa.polygonOffset_offset,Sa=kn.polygonOffset_offset,Qa=fa.sample_coverage,vn=kn.sample_coverage,da=fa.stencil_func,la=kn.stencil_func,vo=fa.stencil_opFront,As=kn.stencil_opFront,ps=fa.stencil_opBack,co=kn.stencil_opBack,mo=fa.scissor_box,No=kn.scissor_box,jn=fa.viewport,Go=kn.viewport,Ys={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},qs={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ns={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Oa={add:32774,subtract:32778,"reverse subtract":32779},ha={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Vs={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Ya={cw:2304,ccw:2305},_n={},Vn={},wo=new Float32Array(16),Ra=new Float32Array(16),Xn=new Float32Array(16),un=new Float32Array(16),$n=new Float32Array(16),Ka=new Float32Array(16),qn=new Float32Array(16),Eo=new Float32Array(16),Ja=new Float32Array(16),lo=new Float32Array(16),eo=new Float32Array(16),sa=new Float32Array(16),es=new Float32Array(16),Na=new Float32Array(16),tn=new Float32Array(16),Pa=new Float32Array(16),to=new Float32Array(16),yo=new Float32Array(16),Jo=new Float32Array(16),Ao=new Float32Array(16),Dn=new Float32Array(16),_a=new Float32Array(16),Ws=new Float32Array(16),Ca=new Float32Array(16),Es=new Float32Array(16),Ts=new Float32Array(16),Ho=new Float32Array(16),Wa=new Float32Array(16),To=new Float32Array(16),ts=new Float32Array(16),Wo=new Float32Array(16),qa=new Float32Array(16),{draw:function(ln){var Bo,ko,oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js;if(Bo=ra.next,Bo!==ra.cur&&(Bo?Kr.bindFramebuffer(36160,Bo.framebuffer):Kr.bindFramebuffer(36160,null),ra.cur=Bo),kn.dirty){var cs,sl,ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Ul,le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir;cs=Ko[0],sl=Ko[1],ll=Ko[2],il=Ko[3],(cs!==Qo[0]||sl!==Qo[1]||ll!==Qo[2]||il!==Qo[3])&&(Kr.colorMask(cs,sl,ll,il),Qo[0]=cs,Qo[1]=sl,Qo[2]=ll,Qo[3]=il),zl=fa.frontFace,zl!==kn.frontFace&&(Kr.frontFace(zl),kn.frontFace=zl),Ml=fa.polygonOffset_enable,Ml!==kn.polygonOffset_enable&&(Ml?Kr.enable(32823):Kr.disable(32823),kn.polygonOffset_enable=Ml),Rl=Wi[0],Al=Wi[1],(Rl!==Sa[0]||Al!==Sa[1])&&(Kr.polygonOffset(Rl,Al),Sa[0]=Rl,Sa[1]=Al),Ll=fa.sample_alpha,Ll!==kn.sample_alpha&&(Ll?Kr.enable(32926):Kr.disable(32926),kn.sample_alpha=Ll),ms=fa.sample_enable,ms!==kn.sample_enable&&(ms?Kr.enable(32928):Kr.disable(32928),kn.sample_enable=ms),Os=Qa[0],Xl=Qa[1],(Os!==vn[0]||Xl!==vn[1])&&(Kr.sampleCoverage(Os,Xl),vn[0]=Os,vn[1]=Xl),Gl=fa.stencil_enable,Gl!==kn.stencil_enable&&(Gl?Kr.enable(2960):Kr.disable(2960),kn.stencil_enable=Gl),Ul=fa.stencil_mask,Ul!==kn.stencil_mask&&(Kr.stencilMask(Ul),kn.stencil_mask=Ul),le=da[0],w=da[1],q=da[2],(le!==la[0]||w!==la[1]||q!==la[2])&&(Kr.stencilFunc(le,w,q),la[0]=le,la[1]=w,la[2]=q),Q=vo[0],ee=vo[1],ue=vo[2],Ge=vo[3],(Q!==As[0]||ee!==As[1]||ue!==As[2]||Ge!==As[3])&&(Kr.stencilOpSeparate(Q,ee,ue,Ge),As[0]=Q,As[1]=ee,As[2]=ue,As[3]=Ge),et=ps[0],mt=ps[1],Ft=ps[2],ir=ps[3],(et!==co[0]||mt!==co[1]||Ft!==co[2]||ir!==co[3])&&(Kr.stencilOpSeparate(et,mt,Ft,ir),co[0]=et,co[1]=mt,co[2]=Ft,co[3]=ir)}ko=ln.viewportX,_n.x=ko,oo=ln.viewportY,_n.y=oo,za=ln.viewportWidth,_n.width=za,ea=ln.viewportHeight,_n.height=ea,rs=_n.x|0,$s=_n.y|0,us="width"in _n?_n.width|0:Ia.framebufferWidth-rs,Ds="height"in _n?_n.height|0:Ia.framebufferHeight-$s,fl=Ia.viewportWidth,Ia.viewportWidth=us,as=Ia.viewportHeight,Ia.viewportHeight=Ds,Kr.viewport(rs,$s,us,Ds),Go[0]=rs,Go[1]=$s,Go[2]=us,Go[3]=Ds,Kr.blendColor(0,0,0,0),ji[0]=0,ji[1]=0,ji[2]=0,ji[3]=0,n?Kr.enable(3042):Kr.disable(3042),kn.blend_enable=n,Kr.blendEquationSeparate(32774,32774),Ps[0]=32774,Ps[1]=32774,Kr.blendFuncSeparate(770,771,1,1),Sn[0]=770,Sn[1]=771,Sn[2]=1,Sn[3]=1,i?Kr.enable(2884):Kr.disable(2884),kn.cull_enable=i,Kr.cullFace(a),kn.cull_face=a,o?Kr.enable(2929):Kr.disable(2929),kn.depth_enable=o,Kr.depthFunc(s),kn.depth_func=s,Kr.depthMask(u),kn.depth_mask=u,Kr.depthRange(0,1),Ba[0]=0,Ba[1]=1,l?Kr.enable(3024):Kr.disable(3024),kn.dither=l,Kr.lineWidth(f),kn.lineWidth=f,Ma=ln.scissorX,Vn.x=Ma,Qs=ln.scissorY,Vn.y=Qs,ho=ln.scissorWidth,Vn.width=ho,gs=ln.scissorHeight,Vn.height=gs,Vo=Vn.x|0,Do=Vn.y|0,Lo="width"in Vn?Vn.width|0:Ia.framebufferWidth-Vo,xs="height"in Vn?Vn.height|0:Ia.framebufferHeight-Do,Kr.scissor(Vo,Do,Lo,xs),No[0]=Vo,No[1]=Do,No[2]=Lo,No[3]=xs,c?Kr.enable(3089):Kr.disable(3089),kn.scissor_enable=c,ks=kn.profile,kn.profile=!1,Kr.useProgram(h.program),fo.setVAO(null),Ea=p.location,Jn=$a[Ea],Jn.buffer||Kr.enableVertexAttribArray(Ea),(Jn.type!==d.dtype||Jn.size!==4||Jn.buffer!==d||Jn.normalized!==!1||Jn.offset!==0||Jn.stride!==0)&&(Kr.bindBuffer(34962,d.buffer),Kr.vertexAttribPointer(Ea,4,d.dtype,!1,0,0),Jn.type=d.dtype,Jn.size=4,Jn.buffer=d,Jn.normalized=!1,Jn.offset=0,Jn.stride=0),Oo=b.location,rl=$a[Oo],rl.buffer||Kr.enableVertexAttribArray(Oo),(rl.type!==x.dtype||rl.size!==4||rl.buffer!==x||rl.normalized!==!1||rl.offset!==0||rl.stride!==0)&&(Kr.bindBuffer(34962,x.buffer),Kr.vertexAttribPointer(Oo,4,x.dtype,!1,0,0),rl.type=x.dtype,rl.size=4,rl.buffer=x,rl.normalized=!1,rl.offset=0,rl.stride=0),Gs=k.location,bs=$a[Gs],bs.buffer||Kr.enableVertexAttribArray(Gs),(bs.type!==v.dtype||bs.size!==4||bs.buffer!==v||bs.normalized!==!1||bs.offset!==0||bs.stride!==0)&&(Kr.bindBuffer(34962,v.buffer),Kr.vertexAttribPointer(Gs,4,v.dtype,!1,0,0),bs.type=v.dtype,bs.size=4,bs.buffer=v,bs.normalized=!1,bs.offset=0,bs.stride=0),zs=T.location,$o=$a[zs],$o.buffer||Kr.enableVertexAttribArray(zs),($o.type!==E.dtype||$o.size!==4||$o.buffer!==E||$o.normalized!==!1||$o.offset!==0||$o.stride!==0)&&(Kr.bindBuffer(34962,E.buffer),Kr.vertexAttribPointer(zs,4,E.dtype,!1,0,0),$o.type=E.dtype,$o.size=4,$o.buffer=E,$o.normalized=!1,$o.offset=0,$o.stride=0),Aa=_.location,os=$a[Aa],os.buffer||Kr.enableVertexAttribArray(Aa),(os.type!==L.dtype||os.size!==4||os.buffer!==L||os.normalized!==!1||os.offset!==0||os.stride!==0)&&(Kr.bindBuffer(34962,L.buffer),Kr.vertexAttribPointer(Aa,4,L.dtype,!1,0,0),os.type=L.dtype,os.size=4,os.buffer=L,os.normalized=!1,os.offset=0,os.stride=0),_l=S.location,Ss=$a[_l],Ss.buffer||Kr.enableVertexAttribArray(_l),(Ss.type!==C.dtype||Ss.size!==4||Ss.buffer!==C||Ss.normalized!==!1||Ss.offset!==0||Ss.stride!==0)&&(Kr.bindBuffer(34962,C.buffer),Kr.vertexAttribPointer(_l,4,C.dtype,!1,0,0),Ss.type=C.dtype,Ss.size=4,Ss.buffer=C,Ss.normalized=!1,Ss.offset=0,Ss.stride=0),po=P.location,go=$a[po],go.buffer||Kr.enableVertexAttribArray(po),(go.type!==m.dtype||go.size!==4||go.buffer!==m||go.normalized!==!1||go.offset!==0||go.stride!==0)&&(Kr.bindBuffer(34962,m.buffer),Kr.vertexAttribPointer(po,4,m.dtype,!1,0,0),go.type=m.dtype,go.size=4,go.buffer=m,go.normalized=!1,go.offset=0,go.stride=0),ss=B.location,qo=$a[ss],qo.buffer||Kr.enableVertexAttribArray(ss),(qo.type!==A.dtype||qo.size!==4||qo.buffer!==A||qo.normalized!==!1||qo.offset!==0||qo.stride!==0)&&(Kr.bindBuffer(34962,A.buffer),Kr.vertexAttribPointer(ss,4,A.dtype,!1,0,0),qo.type=A.dtype,qo.size=4,qo.buffer=A,qo.normalized=!1,qo.offset=0,qo.stride=0),zo=U.location,io=$a[zo],io.buffer||Kr.enableVertexAttribArray(zo),(io.type!==F.dtype||io.size!==4||io.buffer!==F||io.normalized!==!1||io.offset!==0||io.stride!==0)&&(Kr.bindBuffer(34962,F.buffer),Kr.vertexAttribPointer(zo,4,F.dtype,!1,0,0),io.type=F.dtype,io.size=4,io.buffer=F,io.normalized=!1,io.offset=0,io.stride=0),Io=j.location,Da=$a[Io],Da.buffer||Kr.enableVertexAttribArray(Io),(Da.type!==G.dtype||Da.size!==4||Da.buffer!==G||Da.normalized!==!1||Da.offset!==0||Da.stride!==0)&&(Kr.bindBuffer(34962,G.buffer),Kr.vertexAttribPointer(Io,4,G.dtype,!1,0,0),Da.type=G.dtype,Da.size=4,Da.buffer=G,Da.normalized=!1,Da.offset=0,Da.stride=0),vs=N.location,fs=$a[vs],fs.buffer||Kr.enableVertexAttribArray(vs),(fs.type!==H.dtype||fs.size!==4||fs.buffer!==H||fs.normalized!==!1||fs.offset!==0||fs.stride!==0)&&(Kr.bindBuffer(34962,H.buffer),Kr.vertexAttribPointer(vs,4,H.dtype,!1,0,0),fs.type=H.dtype,fs.size=4,fs.buffer=H,fs.normalized=!1,fs.offset=0,fs.stride=0),cl=re.location,el=$a[cl],el.buffer||Kr.enableVertexAttribArray(cl),(el.type!==W.dtype||el.size!==4||el.buffer!==W||el.normalized!==!1||el.offset!==0||el.stride!==0)&&(Kr.bindBuffer(34962,W.buffer),Kr.vertexAttribPointer(cl,4,W.dtype,!1,0,0),el.type=W.dtype,el.size=4,el.buffer=W,el.normalized=!1,el.offset=0,el.stride=0),Hs=be.location,Ro=$a[Hs],Ro.buffer||Kr.enableVertexAttribArray(Hs),(Ro.type!==ae.dtype||Ro.size!==4||Ro.buffer!==ae||Ro.normalized!==!1||Ro.offset!==0||Ro.stride!==0)&&(Kr.bindBuffer(34962,ae.buffer),Kr.vertexAttribPointer(Hs,4,ae.dtype,!1,0,0),Ro.type=ae.dtype,Ro.size=4,Ro.buffer=ae,Ro.normalized=!1,Ro.offset=0,Ro.stride=0),tl=Le.location,Fs=$a[tl],Fs.buffer||Kr.enableVertexAttribArray(tl),(Fs.type!==Ce.dtype||Fs.size!==4||Fs.buffer!==Ce||Fs.normalized!==!1||Fs.offset!==0||Fs.stride!==0)&&(Kr.bindBuffer(34962,Ce.buffer),Kr.vertexAttribPointer(tl,4,Ce.dtype,!1,0,0),Fs.type=Ce.dtype,Fs.size=4,Fs.buffer=Ce,Fs.normalized=!1,Fs.offset=0,Fs.stride=0),hl=te.location,Fa=$a[hl],Fa.buffer||Kr.enableVertexAttribArray(hl),(Fa.type!==pe.dtype||Fa.size!==4||Fa.buffer!==pe||Fa.normalized!==!1||Fa.offset!==0||Fa.stride!==0)&&(Kr.bindBuffer(34962,pe.buffer),Kr.vertexAttribPointer(hl,4,pe.dtype,!1,0,0),Fa.type=pe.dtype,Fa.size=4,Fa.buffer=pe,Fa.normalized=!1,Fa.offset=0,Fa.stride=0),Ms=Ee.location,jo=$a[Ms],jo.buffer||Kr.enableVertexAttribArray(Ms),(jo.type!==ke.dtype||jo.size!==4||jo.buffer!==ke||jo.normalized!==!1||jo.offset!==0||jo.stride!==0)&&(Kr.bindBuffer(34962,ke.buffer),Kr.vertexAttribPointer(Ms,4,ke.dtype,!1,0,0),jo.type=ke.dtype,jo.size=4,jo.buffer=ke,jo.normalized=!1,jo.offset=0,jo.stride=0),Rs=ln.contextColor,Is=Rs[0],Bs=Rs[1],At=Rs[2],Gt=Rs[3],Kr.uniform4f(Me.location,Is,Bs,At,Gt),wr=ln.dim0A,Kr.uniformMatrix4fv(Ne.location,!1,Array.isArray(wr)||wr instanceof Float32Array?wr:(wo[0]=wr[0],wo[1]=wr[1],wo[2]=wr[2],wo[3]=wr[3],wo[4]=wr[4],wo[5]=wr[5],wo[6]=wr[6],wo[7]=wr[7],wo[8]=wr[8],wo[9]=wr[9],wo[10]=wr[10],wo[11]=wr[11],wo[12]=wr[12],wo[13]=wr[13],wo[14]=wr[14],wo[15]=wr[15],wo)),mr=ln.dim0B,Kr.uniformMatrix4fv(Fe.location,!1,Array.isArray(mr)||mr instanceof Float32Array?mr:(Ra[0]=mr[0],Ra[1]=mr[1],Ra[2]=mr[2],Ra[3]=mr[3],Ra[4]=mr[4],Ra[5]=mr[5],Ra[6]=mr[6],Ra[7]=mr[7],Ra[8]=mr[8],Ra[9]=mr[9],Ra[10]=mr[10],Ra[11]=mr[11],Ra[12]=mr[12],Ra[13]=mr[13],Ra[14]=mr[14],Ra[15]=mr[15],Ra)),Or=ln.dim0C,Kr.uniformMatrix4fv(ye.location,!1,Array.isArray(Or)||Or instanceof Float32Array?Or:(Xn[0]=Or[0],Xn[1]=Or[1],Xn[2]=Or[2],Xn[3]=Or[3],Xn[4]=Or[4],Xn[5]=Or[5],Xn[6]=Or[6],Xn[7]=Or[7],Xn[8]=Or[8],Xn[9]=Or[9],Xn[10]=Or[10],Xn[11]=Or[11],Xn[12]=Or[12],Xn[13]=Or[13],Xn[14]=Or[14],Xn[15]=Or[15],Xn)),gi=ln.dim0D,Kr.uniformMatrix4fv(Ve.location,!1,Array.isArray(gi)||gi instanceof Float32Array?gi:(un[0]=gi[0],un[1]=gi[1],un[2]=gi[2],un[3]=gi[3],un[4]=gi[4],un[5]=gi[5],un[6]=gi[6],un[7]=gi[7],un[8]=gi[8],un[9]=gi[9],un[10]=gi[10],un[11]=gi[11],un[12]=gi[12],un[13]=gi[13],un[14]=gi[14],un[15]=gi[15],un)),Ti=ln.dim1A,Kr.uniformMatrix4fv(ce.location,!1,Array.isArray(Ti)||Ti instanceof Float32Array?Ti:($n[0]=Ti[0],$n[1]=Ti[1],$n[2]=Ti[2],$n[3]=Ti[3],$n[4]=Ti[4],$n[5]=Ti[5],$n[6]=Ti[6],$n[7]=Ti[7],$n[8]=Ti[8],$n[9]=Ti[9],$n[10]=Ti[10],$n[11]=Ti[11],$n[12]=Ti[12],$n[13]=Ti[13],$n[14]=Ti[14],$n[15]=Ti[15],$n)),ki=ln.dim1B,Kr.uniformMatrix4fv(Je.location,!1,Array.isArray(ki)||ki instanceof Float32Array?ki:(Ka[0]=ki[0],Ka[1]=ki[1],Ka[2]=ki[2],Ka[3]=ki[3],Ka[4]=ki[4],Ka[5]=ki[5],Ka[6]=ki[6],Ka[7]=ki[7],Ka[8]=ki[8],Ka[9]=ki[9],Ka[10]=ki[10],Ka[11]=ki[11],Ka[12]=ki[12],Ka[13]=ki[13],Ka[14]=ki[14],Ka[15]=ki[15],Ka)),Ji=ln.dim1C,Kr.uniformMatrix4fv(nt.location,!1,Array.isArray(Ji)||Ji instanceof Float32Array?Ji:(qn[0]=Ji[0],qn[1]=Ji[1],qn[2]=Ji[2],qn[3]=Ji[3],qn[4]=Ji[4],qn[5]=Ji[5],qn[6]=Ji[6],qn[7]=Ji[7],qn[8]=Ji[8],qn[9]=Ji[9],qn[10]=Ji[10],qn[11]=Ji[11],qn[12]=Ji[12],qn[13]=Ji[13],qn[14]=Ji[14],qn[15]=Ji[15],qn)),Fn=ln.dim1D,Kr.uniformMatrix4fv(gt.location,!1,Array.isArray(Fn)||Fn instanceof Float32Array?Fn:(Eo[0]=Fn[0],Eo[1]=Fn[1],Eo[2]=Fn[2],Eo[3]=Fn[3],Eo[4]=Fn[4],Eo[5]=Fn[5],Eo[6]=Fn[6],Eo[7]=Fn[7],Eo[8]=Fn[8],Eo[9]=Fn[9],Eo[10]=Fn[10],Eo[11]=Fn[11],Eo[12]=Fn[12],Eo[13]=Fn[13],Eo[14]=Fn[14],Eo[15]=Fn[15],Eo)),Pi=ln.drwLayer,Kr.uniform1f(Nt.location,Pi),hi=ln.hiA,Kr.uniformMatrix4fv(it.location,!1,Array.isArray(hi)||hi instanceof Float32Array?hi:(Ja[0]=hi[0],Ja[1]=hi[1],Ja[2]=hi[2],Ja[3]=hi[3],Ja[4]=hi[4],Ja[5]=hi[5],Ja[6]=hi[6],Ja[7]=hi[7],Ja[8]=hi[8],Ja[9]=hi[9],Ja[10]=hi[10],Ja[11]=hi[11],Ja[12]=hi[12],Ja[13]=hi[13],Ja[14]=hi[14],Ja[15]=hi[15],Ja)),Li=ln.hiB,Kr.uniformMatrix4fv(Ye.location,!1,Array.isArray(Li)||Li instanceof Float32Array?Li:(lo[0]=Li[0],lo[1]=Li[1],lo[2]=Li[2],lo[3]=Li[3],lo[4]=Li[4],lo[5]=Li[5],lo[6]=Li[6],lo[7]=Li[7],lo[8]=Li[8],lo[9]=Li[9],lo[10]=Li[10],lo[11]=Li[11],lo[12]=Li[12],lo[13]=Li[13],lo[14]=Li[14],lo[15]=Li[15],lo)),Si=ln.hiC,Kr.uniformMatrix4fv(kt.location,!1,Array.isArray(Si)||Si instanceof Float32Array?Si:(eo[0]=Si[0],eo[1]=Si[1],eo[2]=Si[2],eo[3]=Si[3],eo[4]=Si[4],eo[5]=Si[5],eo[6]=Si[6],eo[7]=Si[7],eo[8]=Si[8],eo[9]=Si[9],eo[10]=Si[10],eo[11]=Si[11],eo[12]=Si[12],eo[13]=Si[13],eo[14]=Si[14],eo[15]=Si[15],eo)),Gn=ln.hiD,Kr.uniformMatrix4fv(Tt.location,!1,Array.isArray(Gn)||Gn instanceof Float32Array?Gn:(sa[0]=Gn[0],sa[1]=Gn[1],sa[2]=Gn[2],sa[3]=Gn[3],sa[4]=Gn[4],sa[5]=Gn[5],sa[6]=Gn[6],sa[7]=Gn[7],sa[8]=Gn[8],sa[9]=Gn[9],sa[10]=Gn[10],sa[11]=Gn[11],sa[12]=Gn[12],sa[13]=Gn[13],sa[14]=Gn[14],sa[15]=Gn[15],sa)),ta=ln.loA,Kr.uniformMatrix4fv(St.location,!1,Array.isArray(ta)||ta instanceof Float32Array?ta:(es[0]=ta[0],es[1]=ta[1],es[2]=ta[2],es[3]=ta[3],es[4]=ta[4],es[5]=ta[5],es[6]=ta[6],es[7]=ta[7],es[8]=ta[8],es[9]=ta[9],es[10]=ta[10],es[11]=ta[11],es[12]=ta[12],es[13]=ta[13],es[14]=ta[14],es[15]=ta[15],es)),ya=ln.loB,Kr.uniformMatrix4fv(Dt.location,!1,Array.isArray(ya)||ya instanceof Float32Array?ya:(Na[0]=ya[0],Na[1]=ya[1],Na[2]=ya[2],Na[3]=ya[3],Na[4]=ya[4],Na[5]=ya[5],Na[6]=ya[6],Na[7]=ya[7],Na[8]=ya[8],Na[9]=ya[9],Na[10]=ya[10],Na[11]=ya[11],Na[12]=ya[12],Na[13]=ya[13],Na[14]=ya[14],Na[15]=ya[15],Na)),ia=ln.loC,Kr.uniformMatrix4fv(Zt.location,!1,Array.isArray(ia)||ia instanceof Float32Array?ia:(tn[0]=ia[0],tn[1]=ia[1],tn[2]=ia[2],tn[3]=ia[3],tn[4]=ia[4],tn[5]=ia[5],tn[6]=ia[6],tn[7]=ia[7],tn[8]=ia[8],tn[9]=ia[9],tn[10]=ia[10],tn[11]=ia[11],tn[12]=ia[12],tn[13]=ia[13],tn[14]=ia[14],tn[15]=ia[15],tn)),pa=ln.loD,Kr.uniformMatrix4fv(Et.location,!1,Array.isArray(pa)||pa instanceof Float32Array?pa:(Pa[0]=pa[0],Pa[1]=pa[1],Pa[2]=pa[2],Pa[3]=pa[3],Pa[4]=pa[4],Pa[5]=pa[5],Pa[6]=pa[6],Pa[7]=pa[7],Pa[8]=pa[8],Pa[9]=pa[9],Pa[10]=pa[10],Pa[11]=pa[11],Pa[12]=pa[12],Pa[13]=pa[13],Pa[14]=pa[14],Pa[15]=pa[15],Pa)),va=ln.maskHeight,Kr.uniform1f(Ae.location,va),zn=ln.maskTexture,zn&&zn._reglType==="framebuffer"&&(zn=zn.color[0]),is=zn._texture,Kr.uniform1i(at.location,is.bind()),Kr.uniform1i(wt.location,vt.bind()),Cs=ln.resolution,Ks=Cs[0],dl=Cs[1],Kr.uniform2f(st.location,Ks,dl),xl=ln.viewBoxPos,Ol=xl[0],bl=xl[1],Kr.uniform2f(Ue.location,Ol,bl),eu=ln.viewBoxSize,Zl=eu[0],Vl=eu[1],Kr.uniform2f(rt.location,Zl,Vl),ja=Ta.elements,ja?Kr.bindBuffer(34963,ja.buffer.buffer):fo.currentVAO&&(ja=ys.getElements(fo.currentVAO.elements),ja&&Kr.bindBuffer(34963,ja.buffer.buffer)),ns=ln.offset,Js=ln.count,Js&&(ja?Kr.drawElements(1,Js,ja.type,ns<<(ja.type-5121>>1)):Kr.drawArrays(1,ns,Js),kn.dirty=!0,fo.setVAO(null),Ia.viewportWidth=fl,Ia.viewportHeight=as,kn.profile=ks,is.unbind(),vt.unbind())},scope:function(ln,Bo,ko){var oo,za,ea,rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os,_l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki,Ji,Fn,Pi,hi,Li,Si,Gn,ta,ya,ia,pa,va,zn,is,Cs,Ks,dl,xl,Ol,bl,eu,Zl,Vl,ja,ns,Js,cs,sl,ll,il,zl,Ml,Rl,Al,Ll,ms,Os,Xl,Gl,Ul,le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt,tt,pt,Ht,nr,fr,Ar,Rr,ri,si,Mi,hn,Zn,Yn,Ua,Fo,vl,Us,ml,au,Sl,Yl,ql,ou,Pu,iu,tu,Wu,Qu,Ju,ju,Xu,lf,xf,ef,tf,Z,se,ze,Xe,Qe,ot,jt,_t,cr,Cr,zr,ui,$r,Oi,fn,vi,zi,Xi,pn,sn,bi,xo,no,Xo,js,El,Pl,pu,Il,fu,Zu,Gu,rf,ds,Wl,Au,Tu,uf,df,Ef,vf,fc,Be,qt,ar,Qr,mi,fi,pi,on,Bn,Ln,wn,Ls,ua,Hn,Ni,Wr,_i,dn,En,Yi,ga,Kn,hs,$i,Ui,ro,na,On,In,Va,_s,ul,Qn,Mo,nl,pl,Dl,Fu,mf,Ql,kf,Cu,_f,bf,Lf,Hu,hf,yf,Fl,wf,cu,Y,R,J,O,K,_e,ne,Pe,Ze,Ct,dr,Er,lr,Ke,ht,bt,Kt,sr,Qt,ur,er,Ot,Jt,Lt,Tr,Nr,ci,Cn,Ki,yn,Xa,ca,Tn,Pn,Nn,xa,Zo,ru,yu,Du,vu,zu,$u,Uf,wd,Ad;oo=ln.viewportX,_n.x=oo,za=ln.viewportY,_n.y=za,ea=ln.viewportWidth,_n.width=ea,rs=ln.viewportHeight,_n.height=rs,$s=_n.x|0,us=_n.y|0,Ds="width"in _n?_n.width|0:Ia.framebufferWidth-$s,fl="height"in _n?_n.height|0:Ia.framebufferHeight-us,as=Ia.viewportWidth,Ia.viewportWidth=Ds,Ma=Ia.viewportHeight,Ia.viewportHeight=fl,Qs=jn[0],jn[0]=$s,ho=jn[1],jn[1]=us,gs=jn[2],jn[2]=Ds,Vo=jn[3],jn[3]=fl,Do=Po[0],Po[0]=$e,Lo=Po[1],Po[1]=zt,xs=Po[2],Po[2]=Yt,ks=Po[3],Po[3]=hr,Ea=fa.blend_enable,fa.blend_enable=yr,Jn=gn[0],gn[0]=br,Oo=gn[1],gn[1]=Ut,rl=Ha[0],Ha[0]=Ie,Gs=Ha[1],Ha[1]=xe,bs=Ha[2],Ha[2]=Oe,zs=Ha[3],Ha[3]=Re,$o=fa.cull_enable,fa.cull_enable=De,Aa=fa.cull_face,fa.cull_face=ct,os=fa.depth_enable,fa.depth_enable=ge,_l=fa.depth_func,fa.depth_func=fe,Ss=fa.depth_mask,fa.depth_mask=de,po=ao[0],ao[0]=dt,go=ao[1],ao[1]=It,ss=fa.dither,fa.dither=Pt,qo=fa.lineWidth,fa.lineWidth=rr,zo=ln.scissorX,Vn.x=zo,io=ln.scissorY,Vn.y=io,Io=ln.scissorWidth,Vn.width=Io,Da=ln.scissorHeight,Vn.height=Da,vs=Vn.x|0,fs=Vn.y|0,cl="width"in Vn?Vn.width|0:Ia.framebufferWidth-vs,el="height"in Vn?Vn.height|0:Ia.framebufferHeight-fs,Hs=mo[0],mo[0]=vs,Ro=mo[1],mo[1]=fs,tl=mo[2],mo[2]=cl,Fs=mo[3],mo[3]=el,hl=fa.scissor_enable,fa.scissor_enable=Hr,Fa=kn.profile,kn.profile=!1,Ms=ln.offset,jo=Ta.offset,Ta.offset=Ms,Rs=ln.count,Is=Ta.count,Ta.count=Rs,Bs=Ta.primitive,Ta.primitive=Dr,At=mn[Fr],mn[Fr]=Mr,Gt=ln.resolution,wr=mn[di],mn[di]=Gt,mr=ln.viewBoxPos,Or=mn[Di],mn[Di]=mr,gi=ln.viewBoxSize,Ti=mn[Ii],mn[Ii]=gi,ki=ln.dim0A,Ji=mn[Ci],mn[Ci]=ki,Fn=ln.dim1A,Pi=mn[nn],mn[nn]=Fn,hi=ln.dim0B,Li=mn[ii],mn[ii]=hi,Si=ln.dim1B,Gn=mn[wi],mn[wi]=Si,ta=ln.dim0C,ya=mn[Gi],mn[Gi]=ta,ia=ln.dim1C,pa=mn[Bt],mn[Bt]=ia,va=ln.dim0D,zn=mn[yt],mn[yt]=va,is=ln.dim1D,Cs=mn[Vt],mn[Vt]=is,Ks=ln.loA,dl=mn[Wt],mn[Wt]=Ks,xl=ln.hiA,Ol=mn[_r],mn[_r]=xl,bl=ln.loB,eu=mn[Lr],mn[Lr]=bl,Zl=ln.hiB,Vl=mn[Ur],mn[Ur]=Zl,ja=ln.loC,ns=mn[Ir],mn[Ir]=ja,Js=ln.hiC,cs=mn[Gr],mn[Gr]=Js,sl=ln.loD,ll=mn[jr],mn[jr]=sl,il=ln.hiD,zl=mn[yi],mn[yi]=il,Ml=ln.contextColor,Rl=mn[Ei],mn[Ei]=Ml,Al=ln.maskTexture,Ll=mn[Vi],mn[Vi]=Al,ms=ln.drwLayer,Os=mn[ti],mn[ti]=ms,Xl=ln.maskHeight,Gl=mn[en],mn[en]=Xl,Ul=Yr.state,Yr.state=1,le=Yr.x,Yr.x=0,w=Yr.y,Yr.y=0,q=Yr.z,Yr.z=0,Q=Yr.w,Yr.w=0,ee=Yr.buffer,Yr.buffer=x,ue=Yr.size,Yr.size=0,Ge=Yr.normalized,Yr.normalized=!1,et=Yr.type,Yr.type=x.dtype,mt=Yr.offset,Yr.offset=0,Ft=Yr.stride,Yr.stride=0,ir=Yr.divisor,Yr.divisor=0,or=oi.state,oi.state=1,kr=oi.x,oi.x=0,Vr=oi.y,oi.y=0,he=oi.z,oi.z=0,Se=oi.w,oi.w=0,qe=oi.buffer,oi.buffer=v,He=oi.size,oi.size=0,lt=oi.normalized,oi.normalized=!1,tt=oi.type,oi.type=v.dtype,pt=oi.offset,oi.offset=0,Ht=oi.stride,oi.stride=0,nr=oi.divisor,oi.divisor=0,fr=Bi.state,Bi.state=1,Ar=Bi.x,Bi.x=0,Rr=Bi.y,Bi.y=0,ri=Bi.z,Bi.z=0,si=Bi.w,Bi.w=0,Mi=Bi.buffer,Bi.buffer=E,hn=Bi.size,Bi.size=0,Zn=Bi.normalized,Bi.normalized=!1,Yn=Bi.type,Bi.type=E.dtype,Ua=Bi.offset,Bi.offset=0,Fo=Bi.stride,Bi.stride=0,vl=Bi.divisor,Bi.divisor=0,Us=an.state,an.state=1,ml=an.x,an.x=0,au=an.y,an.y=0,Sl=an.z,an.z=0,Yl=an.w,an.w=0,ql=an.buffer,an.buffer=L,ou=an.size,an.size=0,Pu=an.normalized,an.normalized=!1,iu=an.type,an.type=L.dtype,tu=an.offset,an.offset=0,Wu=an.stride,an.stride=0,Qu=an.divisor,an.divisor=0,Ju=rn.state,rn.state=1,ju=rn.x,rn.x=0,Xu=rn.y,rn.y=0,lf=rn.z,rn.z=0,xf=rn.w,rn.w=0,ef=rn.buffer,rn.buffer=C,tf=rn.size,rn.size=0,Z=rn.normalized,rn.normalized=!1,se=rn.type,rn.type=C.dtype,ze=rn.offset,rn.offset=0,Xe=rn.stride,rn.stride=0,Qe=rn.divisor,rn.divisor=0,ot=Fi.state,Fi.state=1,jt=Fi.x,Fi.x=0,_t=Fi.y,Fi.y=0,cr=Fi.z,Fi.z=0,Cr=Fi.w,Fi.w=0,zr=Fi.buffer,Fi.buffer=m,ui=Fi.size,Fi.size=0,$r=Fi.normalized,Fi.normalized=!1,Oi=Fi.type,Fi.type=m.dtype,fn=Fi.offset,Fi.offset=0,vi=Fi.stride,Fi.stride=0,zi=Fi.divisor,Fi.divisor=0,Xi=Ri.state,Ri.state=1,pn=Ri.x,Ri.x=0,sn=Ri.y,Ri.y=0,bi=Ri.z,Ri.z=0,xo=Ri.w,Ri.w=0,no=Ri.buffer,Ri.buffer=A,Xo=Ri.size,Ri.size=0,js=Ri.normalized,Ri.normalized=!1,El=Ri.type,Ri.type=A.dtype,Pl=Ri.offset,Ri.offset=0,pu=Ri.stride,Ri.stride=0,Il=Ri.divisor,Ri.divisor=0,fu=xn.state,xn.state=1,Zu=xn.x,xn.x=0,Gu=xn.y,xn.y=0,rf=xn.z,xn.z=0,ds=xn.w,xn.w=0,Wl=xn.buffer,xn.buffer=F,Au=xn.size,xn.size=0,Tu=xn.normalized,xn.normalized=!1,uf=xn.type,xn.type=F.dtype,df=xn.offset,xn.offset=0,Ef=xn.stride,xn.stride=0,vf=xn.divisor,xn.divisor=0,fc=xi.state,xi.state=1,Be=xi.x,xi.x=0,qt=xi.y,xi.y=0,ar=xi.z,xi.z=0,Qr=xi.w,xi.w=0,mi=xi.buffer,xi.buffer=G,fi=xi.size,xi.size=0,pi=xi.normalized,xi.normalized=!1,on=xi.type,xi.type=G.dtype,Bn=xi.offset,xi.offset=0,Ln=xi.stride,xi.stride=0,wn=xi.divisor,xi.divisor=0,Ls=Xr.state,Xr.state=1,ua=Xr.x,Xr.x=0,Hn=Xr.y,Xr.y=0,Ni=Xr.z,Xr.z=0,Wr=Xr.w,Xr.w=0,_i=Xr.buffer,Xr.buffer=H,dn=Xr.size,Xr.size=0,En=Xr.normalized,Xr.normalized=!1,Yi=Xr.type,Xr.type=H.dtype,ga=Xr.offset,Xr.offset=0,Kn=Xr.stride,Xr.stride=0,hs=Xr.divisor,Xr.divisor=0,$i=ft.state,ft.state=1,Ui=ft.x,ft.x=0,ro=ft.y,ft.y=0,na=ft.z,ft.z=0,On=ft.w,ft.w=0,In=ft.buffer,ft.buffer=W,Va=ft.size,ft.size=0,_s=ft.normalized,ft.normalized=!1,ul=ft.type,ft.type=W.dtype,Qn=ft.offset,ft.offset=0,Mo=ft.stride,ft.stride=0,nl=ft.divisor,ft.divisor=0,pl=tr.state,tr.state=1,Dl=tr.x,tr.x=0,Fu=tr.y,tr.y=0,mf=tr.z,tr.z=0,Ql=tr.w,tr.w=0,kf=tr.buffer,tr.buffer=ae,Cu=tr.size,tr.size=0,_f=tr.normalized,tr.normalized=!1,bf=tr.type,tr.type=ae.dtype,Lf=tr.offset,tr.offset=0,Hu=tr.stride,tr.stride=0,hf=tr.divisor,tr.divisor=0,yf=pr.state,pr.state=1,Fl=pr.x,pr.x=0,wf=pr.y,pr.y=0,cu=pr.z,pr.z=0,Y=pr.w,pr.w=0,R=pr.buffer,pr.buffer=Ce,J=pr.size,pr.size=0,O=pr.normalized,pr.normalized=!1,K=pr.type,pr.type=Ce.dtype,_e=pr.offset,pr.offset=0,ne=pr.stride,pr.stride=0,Pe=pr.divisor,pr.divisor=0,Ze=gr.state,gr.state=1,Ct=gr.x,gr.x=0,dr=gr.y,gr.y=0,Er=gr.z,gr.z=0,lr=gr.w,gr.w=0,Ke=gr.buffer,gr.buffer=pe,ht=gr.size,gr.size=0,bt=gr.normalized,gr.normalized=!1,Kt=gr.type,gr.type=pe.dtype,sr=gr.offset,gr.offset=0,Qt=gr.stride,gr.stride=0,ur=gr.divisor,gr.divisor=0,er=Zr.state,Zr.state=1,Ot=Zr.x,Zr.x=0,Jt=Zr.y,Zr.y=0,Lt=Zr.z,Zr.z=0,Tr=Zr.w,Zr.w=0,Nr=Zr.buffer,Zr.buffer=ke,ci=Zr.size,Zr.size=0,Cn=Zr.normalized,Zr.normalized=!1,Ki=Zr.type,Zr.type=ke.dtype,yn=Zr.offset,Zr.offset=0,Xa=Zr.stride,Zr.stride=0,ca=Zr.divisor,Zr.divisor=0,Tn=Ai.state,Ai.state=1,Pn=Ai.x,Ai.x=0,Nn=Ai.y,Ai.y=0,xa=Ai.z,Ai.z=0,Zo=Ai.w,Ai.w=0,ru=Ai.buffer,Ai.buffer=d,yu=Ai.size,Ai.size=0,Du=Ai.normalized,Ai.normalized=!1,vu=Ai.type,Ai.type=d.dtype,zu=Ai.offset,Ai.offset=0,$u=Ai.stride,Ai.stride=0,Uf=Ai.divisor,Ai.divisor=0,wd=ls.vert,ls.vert=Qi,Ad=ls.frag,ls.frag=ni,kn.dirty=!0,Bo(Ia,ln,ko),Ia.viewportWidth=as,Ia.viewportHeight=Ma,jn[0]=Qs,jn[1]=ho,jn[2]=gs,jn[3]=Vo,Po[0]=Do,Po[1]=Lo,Po[2]=xs,Po[3]=ks,fa.blend_enable=Ea,gn[0]=Jn,gn[1]=Oo,Ha[0]=rl,Ha[1]=Gs,Ha[2]=bs,Ha[3]=zs,fa.cull_enable=$o,fa.cull_face=Aa,fa.depth_enable=os,fa.depth_func=_l,fa.depth_mask=Ss,ao[0]=po,ao[1]=go,fa.dither=ss,fa.lineWidth=qo,mo[0]=Hs,mo[1]=Ro,mo[2]=tl,mo[3]=Fs,fa.scissor_enable=hl,kn.profile=Fa,Ta.offset=jo,Ta.count=Is,Ta.primitive=Bs,mn[Fr]=At,mn[di]=wr,mn[Di]=Or,mn[Ii]=Ti,mn[Ci]=Ji,mn[nn]=Pi,mn[ii]=Li,mn[wi]=Gn,mn[Gi]=ya,mn[Bt]=pa,mn[yt]=zn,mn[Vt]=Cs,mn[Wt]=dl,mn[_r]=Ol,mn[Lr]=eu,mn[Ur]=Vl,mn[Ir]=ns,mn[Gr]=cs,mn[jr]=ll,mn[yi]=zl,mn[Ei]=Rl,mn[Vi]=Ll,mn[ti]=Os,mn[en]=Gl,Yr.state=Ul,Yr.x=le,Yr.y=w,Yr.z=q,Yr.w=Q,Yr.buffer=ee,Yr.size=ue,Yr.normalized=Ge,Yr.type=et,Yr.offset=mt,Yr.stride=Ft,Yr.divisor=ir,oi.state=or,oi.x=kr,oi.y=Vr,oi.z=he,oi.w=Se,oi.buffer=qe,oi.size=He,oi.normalized=lt,oi.type=tt,oi.offset=pt,oi.stride=Ht,oi.divisor=nr,Bi.state=fr,Bi.x=Ar,Bi.y=Rr,Bi.z=ri,Bi.w=si,Bi.buffer=Mi,Bi.size=hn,Bi.normalized=Zn,Bi.type=Yn,Bi.offset=Ua,Bi.stride=Fo,Bi.divisor=vl,an.state=Us,an.x=ml,an.y=au,an.z=Sl,an.w=Yl,an.buffer=ql,an.size=ou,an.normalized=Pu,an.type=iu,an.offset=tu,an.stride=Wu,an.divisor=Qu,rn.state=Ju,rn.x=ju,rn.y=Xu,rn.z=lf,rn.w=xf,rn.buffer=ef,rn.size=tf,rn.normalized=Z,rn.type=se,rn.offset=ze,rn.stride=Xe,rn.divisor=Qe,Fi.state=ot,Fi.x=jt,Fi.y=_t,Fi.z=cr,Fi.w=Cr,Fi.buffer=zr,Fi.size=ui,Fi.normalized=$r,Fi.type=Oi,Fi.offset=fn,Fi.stride=vi,Fi.divisor=zi,Ri.state=Xi,Ri.x=pn,Ri.y=sn,Ri.z=bi,Ri.w=xo,Ri.buffer=no,Ri.size=Xo,Ri.normalized=js,Ri.type=El,Ri.offset=Pl,Ri.stride=pu,Ri.divisor=Il,xn.state=fu,xn.x=Zu,xn.y=Gu,xn.z=rf,xn.w=ds,xn.buffer=Wl,xn.size=Au,xn.normalized=Tu,xn.type=uf,xn.offset=df,xn.stride=Ef,xn.divisor=vf,xi.state=fc,xi.x=Be,xi.y=qt,xi.z=ar,xi.w=Qr,xi.buffer=mi,xi.size=fi,xi.normalized=pi,xi.type=on,xi.offset=Bn,xi.stride=Ln,xi.divisor=wn,Xr.state=Ls,Xr.x=ua,Xr.y=Hn,Xr.z=Ni,Xr.w=Wr,Xr.buffer=_i,Xr.size=dn,Xr.normalized=En,Xr.type=Yi,Xr.offset=ga,Xr.stride=Kn,Xr.divisor=hs,ft.state=$i,ft.x=Ui,ft.y=ro,ft.z=na,ft.w=On,ft.buffer=In,ft.size=Va,ft.normalized=_s,ft.type=ul,ft.offset=Qn,ft.stride=Mo,ft.divisor=nl,tr.state=pl,tr.x=Dl,tr.y=Fu,tr.z=mf,tr.w=Ql,tr.buffer=kf,tr.size=Cu,tr.normalized=_f,tr.type=bf,tr.offset=Lf,tr.stride=Hu,tr.divisor=hf,pr.state=yf,pr.x=Fl,pr.y=wf,pr.z=cu,pr.w=Y,pr.buffer=R,pr.size=J,pr.normalized=O,pr.type=K,pr.offset=_e,pr.stride=ne,pr.divisor=Pe,gr.state=Ze,gr.x=Ct,gr.y=dr,gr.z=Er,gr.w=lr,gr.buffer=Ke,gr.size=ht,gr.normalized=bt,gr.type=Kt,gr.offset=sr,gr.stride=Qt,gr.divisor=ur,Zr.state=er,Zr.x=Ot,Zr.y=Jt,Zr.z=Lt,Zr.w=Tr,Zr.buffer=Nr,Zr.size=ci,Zr.normalized=Cn,Zr.type=Ki,Zr.offset=yn,Zr.stride=Xa,Zr.divisor=ca,Ai.state=Tn,Ai.x=Pn,Ai.y=Nn,Ai.z=xa,Ai.w=Zo,Ai.buffer=ru,Ai.size=yu,Ai.normalized=Du,Ai.type=vu,Ai.offset=zu,Ai.stride=$u,Ai.divisor=Uf,ls.vert=wd,ls.frag=Ad,kn.dirty=!0},batch:function(ln,Bo){var ko,oo,za,ea;if(ko=ra.next,ko!==ra.cur&&(ko?Kr.bindFramebuffer(36160,ko.framebuffer):Kr.bindFramebuffer(36160,null),ra.cur=ko),kn.dirty){var rs,$s,us,Ds,fl,as,Ma,Qs,ho,gs,Vo,Do,Lo,xs,ks,Ea,Jn,Oo,rl,Gs,bs,zs,$o,Aa,os;rs=Ko[0],$s=Ko[1],us=Ko[2],Ds=Ko[3],(rs!==Qo[0]||$s!==Qo[1]||us!==Qo[2]||Ds!==Qo[3])&&(Kr.colorMask(rs,$s,us,Ds),Qo[0]=rs,Qo[1]=$s,Qo[2]=us,Qo[3]=Ds),fl=fa.frontFace,fl!==kn.frontFace&&(Kr.frontFace(fl),kn.frontFace=fl),as=fa.polygonOffset_enable,as!==kn.polygonOffset_enable&&(as?Kr.enable(32823):Kr.disable(32823),kn.polygonOffset_enable=as),Ma=Wi[0],Qs=Wi[1],(Ma!==Sa[0]||Qs!==Sa[1])&&(Kr.polygonOffset(Ma,Qs),Sa[0]=Ma,Sa[1]=Qs),ho=fa.sample_alpha,ho!==kn.sample_alpha&&(ho?Kr.enable(32926):Kr.disable(32926),kn.sample_alpha=ho),gs=fa.sample_enable,gs!==kn.sample_enable&&(gs?Kr.enable(32928):Kr.disable(32928),kn.sample_enable=gs),Vo=Qa[0],Do=Qa[1],(Vo!==vn[0]||Do!==vn[1])&&(Kr.sampleCoverage(Vo,Do),vn[0]=Vo,vn[1]=Do),Lo=fa.stencil_enable,Lo!==kn.stencil_enable&&(Lo?Kr.enable(2960):Kr.disable(2960),kn.stencil_enable=Lo),xs=fa.stencil_mask,xs!==kn.stencil_mask&&(Kr.stencilMask(xs),kn.stencil_mask=xs),ks=da[0],Ea=da[1],Jn=da[2],(ks!==la[0]||Ea!==la[1]||Jn!==la[2])&&(Kr.stencilFunc(ks,Ea,Jn),la[0]=ks,la[1]=Ea,la[2]=Jn),Oo=vo[0],rl=vo[1],Gs=vo[2],bs=vo[3],(Oo!==As[0]||rl!==As[1]||Gs!==As[2]||bs!==As[3])&&(Kr.stencilOpSeparate(Oo,rl,Gs,bs),As[0]=Oo,As[1]=rl,As[2]=Gs,As[3]=bs),zs=ps[0],$o=ps[1],Aa=ps[2],os=ps[3],(zs!==co[0]||$o!==co[1]||Aa!==co[2]||os!==co[3])&&(Kr.stencilOpSeparate(zs,$o,Aa,os),co[0]=zs,co[1]=$o,co[2]=Aa,co[3]=os)}Kr.blendColor(0,0,0,0),ji[0]=0,ji[1]=0,ji[2]=0,ji[3]=0,Zi?Kr.enable(3042):Kr.disable(3042),kn.blend_enable=Zi,Kr.blendEquationSeparate(32774,32774),Ps[0]=32774,Ps[1]=32774,Kr.blendFuncSeparate(770,771,1,1),Sn[0]=770,Sn[1]=771,Sn[2]=1,Sn[3]=1,aa?Kr.enable(2884):Kr.disable(2884),kn.cull_enable=aa,Kr.cullFace(Mn),kn.cull_face=Mn,Un?Kr.enable(2929):Kr.disable(2929),kn.depth_enable=Un,Kr.depthFunc(Ga),kn.depth_func=Ga,Kr.depthMask(ma),kn.depth_mask=ma,Kr.depthRange(0,1),Ba[0]=0,Ba[1]=1,oa?Kr.enable(3024):Kr.disable(3024),kn.dither=oa,Kr.lineWidth(ka),kn.lineWidth=ka,so?Kr.enable(3089):Kr.disable(3089),kn.scissor_enable=so,oo=kn.profile,kn.profile=!1,Kr.useProgram(h.program);var _l,Ss,po,go,ss,qo,zo,io,Io,Da,vs,fs,cl,el,Hs,Ro,tl,Fs,hl,Fa,Ms,jo,Rs,Is,Bs,At,Gt,wr,mr,Or,gi,Ti,ki;for(fo.setVAO(null),_l=p.location,Ss=$a[_l],Ss.buffer||Kr.enableVertexAttribArray(_l),(Ss.type!==d.dtype||Ss.size!==4||Ss.buffer!==d||Ss.normalized!==!1||Ss.offset!==0||Ss.stride!==0)&&(Kr.bindBuffer(34962,d.buffer),Kr.vertexAttribPointer(_l,4,d.dtype,!1,0,0),Ss.type=d.dtype,Ss.size=4,Ss.buffer=d,Ss.normalized=!1,Ss.offset=0,Ss.stride=0),po=b.location,go=$a[po],go.buffer||Kr.enableVertexAttribArray(po),(go.type!==x.dtype||go.size!==4||go.buffer!==x||go.normalized!==!1||go.offset!==0||go.stride!==0)&&(Kr.bindBuffer(34962,x.buffer),Kr.vertexAttribPointer(po,4,x.dtype,!1,0,0),go.type=x.dtype,go.size=4,go.buffer=x,go.normalized=!1,go.offset=0,go.stride=0),ss=k.location,qo=$a[ss],qo.buffer||Kr.enableVertexAttribArray(ss),(qo.type!==v.dtype||qo.size!==4||qo.buffer!==v||qo.normalized!==!1||qo.offset!==0||qo.stride!==0)&&(Kr.bindBuffer(34962,v.buffer),Kr.vertexAttribPointer(ss,4,v.dtype,!1,0,0),qo.type=v.dtype,qo.size=4,qo.buffer=v,qo.normalized=!1,qo.offset=0,qo.stride=0),zo=T.location,io=$a[zo],io.buffer||Kr.enableVertexAttribArray(zo),(io.type!==E.dtype||io.size!==4||io.buffer!==E||io.normalized!==!1||io.offset!==0||io.stride!==0)&&(Kr.bindBuffer(34962,E.buffer),Kr.vertexAttribPointer(zo,4,E.dtype,!1,0,0),io.type=E.dtype,io.size=4,io.buffer=E,io.normalized=!1,io.offset=0,io.stride=0),Io=_.location,Da=$a[Io],Da.buffer||Kr.enableVertexAttribArray(Io),(Da.type!==L.dtype||Da.size!==4||Da.buffer!==L||Da.normalized!==!1||Da.offset!==0||Da.stride!==0)&&(Kr.bindBuffer(34962,L.buffer),Kr.vertexAttribPointer(Io,4,L.dtype,!1,0,0),Da.type=L.dtype,Da.size=4,Da.buffer=L,Da.normalized=!1,Da.offset=0,Da.stride=0),vs=S.location,fs=$a[vs],fs.buffer||Kr.enableVertexAttribArray(vs),(fs.type!==C.dtype||fs.size!==4||fs.buffer!==C||fs.normalized!==!1||fs.offset!==0||fs.stride!==0)&&(Kr.bindBuffer(34962,C.buffer),Kr.vertexAttribPointer(vs,4,C.dtype,!1,0,0),fs.type=C.dtype,fs.size=4,fs.buffer=C,fs.normalized=!1,fs.offset=0,fs.stride=0),cl=P.location,el=$a[cl],el.buffer||Kr.enableVertexAttribArray(cl),(el.type!==m.dtype||el.size!==4||el.buffer!==m||el.normalized!==!1||el.offset!==0||el.stride!==0)&&(Kr.bindBuffer(34962,m.buffer),Kr.vertexAttribPointer(cl,4,m.dtype,!1,0,0),el.type=m.dtype,el.size=4,el.buffer=m,el.normalized=!1,el.offset=0,el.stride=0),Hs=B.location,Ro=$a[Hs],Ro.buffer||Kr.enableVertexAttribArray(Hs),(Ro.type!==A.dtype||Ro.size!==4||Ro.buffer!==A||Ro.normalized!==!1||Ro.offset!==0||Ro.stride!==0)&&(Kr.bindBuffer(34962,A.buffer),Kr.vertexAttribPointer(Hs,4,A.dtype,!1,0,0),Ro.type=A.dtype,Ro.size=4,Ro.buffer=A,Ro.normalized=!1,Ro.offset=0,Ro.stride=0),tl=U.location,Fs=$a[tl],Fs.buffer||Kr.enableVertexAttribArray(tl),(Fs.type!==F.dtype||Fs.size!==4||Fs.buffer!==F||Fs.normalized!==!1||Fs.offset!==0||Fs.stride!==0)&&(Kr.bindBuffer(34962,F.buffer),Kr.vertexAttribPointer(tl,4,F.dtype,!1,0,0),Fs.type=F.dtype,Fs.size=4,Fs.buffer=F,Fs.normalized=!1,Fs.offset=0,Fs.stride=0),hl=j.location,Fa=$a[hl],Fa.buffer||Kr.enableVertexAttribArray(hl),(Fa.type!==G.dtype||Fa.size!==4||Fa.buffer!==G||Fa.normalized!==!1||Fa.offset!==0||Fa.stride!==0)&&(Kr.bindBuffer(34962,G.buffer),Kr.vertexAttribPointer(hl,4,G.dtype,!1,0,0),Fa.type=G.dtype,Fa.size=4,Fa.buffer=G,Fa.normalized=!1,Fa.offset=0,Fa.stride=0),Ms=N.location,jo=$a[Ms],jo.buffer||Kr.enableVertexAttribArray(Ms),(jo.type!==H.dtype||jo.size!==4||jo.buffer!==H||jo.normalized!==!1||jo.offset!==0||jo.stride!==0)&&(Kr.bindBuffer(34962,H.buffer),Kr.vertexAttribPointer(Ms,4,H.dtype,!1,0,0),jo.type=H.dtype,jo.size=4,jo.buffer=H,jo.normalized=!1,jo.offset=0,jo.stride=0),Rs=re.location,Is=$a[Rs],Is.buffer||Kr.enableVertexAttribArray(Rs),(Is.type!==W.dtype||Is.size!==4||Is.buffer!==W||Is.normalized!==!1||Is.offset!==0||Is.stride!==0)&&(Kr.bindBuffer(34962,W.buffer),Kr.vertexAttribPointer(Rs,4,W.dtype,!1,0,0),Is.type=W.dtype,Is.size=4,Is.buffer=W,Is.normalized=!1,Is.offset=0,Is.stride=0),Bs=be.location,At=$a[Bs],At.buffer||Kr.enableVertexAttribArray(Bs),(At.type!==ae.dtype||At.size!==4||At.buffer!==ae||At.normalized!==!1||At.offset!==0||At.stride!==0)&&(Kr.bindBuffer(34962,ae.buffer),Kr.vertexAttribPointer(Bs,4,ae.dtype,!1,0,0),At.type=ae.dtype,At.size=4,At.buffer=ae,At.normalized=!1,At.offset=0,At.stride=0),Gt=Le.location,wr=$a[Gt],wr.buffer||Kr.enableVertexAttribArray(Gt),(wr.type!==Ce.dtype||wr.size!==4||wr.buffer!==Ce||wr.normalized!==!1||wr.offset!==0||wr.stride!==0)&&(Kr.bindBuffer(34962,Ce.buffer),Kr.vertexAttribPointer(Gt,4,Ce.dtype,!1,0,0),wr.type=Ce.dtype,wr.size=4,wr.buffer=Ce,wr.normalized=!1,wr.offset=0,wr.stride=0),mr=te.location,Or=$a[mr],Or.buffer||Kr.enableVertexAttribArray(mr),(Or.type!==pe.dtype||Or.size!==4||Or.buffer!==pe||Or.normalized!==!1||Or.offset!==0||Or.stride!==0)&&(Kr.bindBuffer(34962,pe.buffer),Kr.vertexAttribPointer(mr,4,pe.dtype,!1,0,0),Or.type=pe.dtype,Or.size=4,Or.buffer=pe,Or.normalized=!1,Or.offset=0,Or.stride=0),gi=Ee.location,Ti=$a[gi],Ti.buffer||Kr.enableVertexAttribArray(gi),(Ti.type!==ke.dtype||Ti.size!==4||Ti.buffer!==ke||Ti.normalized!==!1||Ti.offset!==0||Ti.stride!==0)&&(Kr.bindBuffer(34962,ke.buffer),Kr.vertexAttribPointer(gi,4,ke.dtype,!1,0,0),Ti.type=ke.dtype,Ti.size=4,Ti.buffer=ke,Ti.normalized=!1,Ti.offset=0,Ti.stride=0),Kr.uniform1i(wt.location,vt.bind()),ki=Ta.elements,ki?Kr.bindBuffer(34963,ki.buffer.buffer):fo.currentVAO&&(ki=ys.getElements(fo.currentVAO.elements),ki&&Kr.bindBuffer(34963,ki.buffer.buffer)),za=0;za>1)):Kr.drawArrays(1,Ar,Rr),Ia.viewportWidth=ya,Ia.viewportHeight=ia,mt.unbind())}vt.unbind(),kn.dirty=!0,fo.setVAO(null),kn.profile=oo}}}});var fVe=Te((Oxr,uVe)=>{"use strict";var vHt=rVe(),mHt=nVe(),yHt=oVe(),gHt=lVe();uVe.exports={"453a70fefa48db31713162aeb1ac438cb8579f54504f3b23acf32128df3dfd45":vHt,"30680f8f6712ef1af5cf7547e0af35b036fb300c67b07967cf448492ff4de4d0":mHt,a3970baf1d8cac9305ee830c7026550387343d4dde2353dd86a4d082c97d3470:yHt,"3fd666968f3ce90d1c048b7a9aab515f3ce387a5401a10f8b66121c9469d1c0d":gHt}});var dVe=Te((qxr,hVe)=>{"use strict";var cVe=ZK(),_Ht=fVe();Object.assign(cVe.reglPrecompiled,_Ht);hVe.exports=cVe});var mVe=Te((Nxr,vVe)=>{"use strict";var pVe=eVe();pVe.plot=dVe();vVe.exports=pVe});var YK=Te((Uxr,xVe)=>{"use strict";var gVe=Su().extendFlat,xHt=Vf(),yVe=gc(),bHt=nc(),_Ve=Nu().hovertemplateAttrs,wHt=zc().attributes,AHt=gVe({editType:"calc"},bHt("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:_Ve({editType:"plot",arrayOk:!1},{keys:["count","probability"]})});xVe.exports={domain:wHt({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:gVe({},xHt.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:_Ve({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),arrangement:{valType:"enumerated",values:["perpendicular","freeform","fixed"],dflt:"perpendicular",editType:"plot"},bundlecolors:{valType:"boolean",dflt:!0,editType:"plot"},sortpaths:{valType:"enumerated",values:["forward","backward"],dflt:"forward",editType:"plot"},labelfont:yVe({editType:"calc"}),tickfont:yVe({autoShadowDflt:!0,editType:"calc"}),dimensions:{_isLinkedToArray:"dimension",label:{valType:"string",editType:"calc"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},values:{valType:"data_array",dflt:[],editType:"calc"},displayindex:{valType:"integer",editType:"calc"},editType:"calc",visible:{valType:"boolean",dflt:!0,editType:"calc"}},line:AHt,counts:{valType:"number",min:0,dflt:1,arrayOk:!0,editType:"calc"},customdata:void 0,hoverlabel:void 0,ids:void 0,legend:void 0,legendgroup:void 0,legendrank:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}});var AVe=Te((Vxr,wVe)=>{"use strict";var _S=ei(),THt=Rp().hasColorscale,SHt=ed(),MHt=zc().defaults,EHt=Jd(),bVe=YK(),kHt=R8(),CHt=mp().isTypedArraySpec;function LHt(e,t,r,n,i){i("line.shape"),i("line.hovertemplate");var a=i("line.color",n.colorway[0]);if(THt(e,"line")&&_S.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),SHt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function PHt(e,t){function r(l,f){return _S.coerce(e,t,bVe.dimensions,l,f)}var n=r("values"),i=r("visible");if(n&&n.length||(i=t.visible=!1),i){r("label"),r("displayindex",t._index);var a=e.categoryarray,o=_S.isArrayOrTypedArray(a)&&a.length>0||CHt(a),s;o&&(s="array");var u=r("categoryorder",s);u==="array"?(r("categoryarray"),r("ticktext")):(delete e.categoryarray,delete e.ticktext),!o&&u==="array"&&(t.categoryorder="trace")}}wVe.exports=function(t,r,n,i){function a(l,f){return _S.coerce(t,r,bVe,l,f)}var o=EHt(t,r,{name:"dimensions",handleItemDefaults:PHt}),s=LHt(t,r,n,i,a);MHt(r,i,a),(!Array.isArray(o)||!o.length)&&(r.visible=!1),kHt(r,o,"values",s),a("hoveron"),a("hovertemplate"),a("arrangement"),a("bundlecolors"),a("sortpaths"),a("counts");var u=i.font;_S.coerceFont(a,"labelfont",u,{overrideDflt:{size:Math.round(u.size)}}),_S.coerceFont(a,"tickfont",u,{autoShadowDflt:!0,overrideDflt:{size:Math.round(u.size/1.2)}})}});var SVe=Te((Gxr,TVe)=>{"use strict";var zHt=Ky().wrap,IHt=Rp().hasColorscale,RHt=Dp(),DHt=nq(),FHt=Mu(),Ik=ei(),BHt=ku();TVe.exports=function(t,r){var n=Ik.filterVisible(r.dimensions);if(n.length===0)return[];var i=n.map(function(m){var P;if(m.categoryorder==="trace")P=null;else if(m.categoryorder==="array")P=m.categoryarray;else{P=DHt(m.values);for(var A=!0,B=0;B=e.length||t[e[r]]!==void 0)return!1;t[e[r]]=!0}return!0}});var RVe=Te((Hxr,IVe)=>{"use strict";var Nf=Jl(),ZHt=(I2(),q1(z2)).interpolateNumber,YHt=Nz(),Fk=Xc(),gx=ei(),Rk=gx.strTranslate,MVe=Mu(),KK=cd(),KHt=Zf();function JHt(e,t,r,n){var i=t._context.staticPlot,a=e.map(hWt.bind(0,t,r)),o=n.selectAll("g.parcatslayer").data([null]);o.enter().append("g").attr("class","parcatslayer").style("pointer-events",i?"none":"all");var s=o.selectAll("g.trace.parcats").data(a,u1),u=s.enter().append("g").attr("class","trace parcats");s.attr("transform",function(k){return Rk(k.x,k.y)}),u.append("g").attr("class","paths");var l=s.select("g.paths"),f=l.selectAll("path.path").data(function(k){return k.paths},u1);f.attr("fill",function(k){return k.model.color});var c=f.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(k){return k.model.color}).attr("fill-opacity",0);QK(c),f.attr("d",function(k){return k.svgD}),c.empty()||f.sort(JK),f.exit().remove(),f.on("mouseover",$Ht).on("mouseout",QHt).on("click",eWt),u.append("g").attr("class","dimensions");var h=s.select("g.dimensions"),d=h.selectAll("g.dimension").data(function(k){return k.dimensions},u1);d.enter().append("g").attr("class","dimension"),d.attr("transform",function(k){return Rk(k.x,0)}),d.exit().remove();var p=d.selectAll("g.category").data(function(k){return k.categories},u1),x=p.enter().append("g").attr("class","category");p.attr("transform",function(k){return Rk(0,k.y)}),x.append("rect").attr("class","catrect").attr("pointer-events","none"),p.select("rect.catrect").attr("fill","none").attr("width",function(k){return k.width}).attr("height",function(k){return k.height}),kVe(x);var b=p.selectAll("rect.bandrect").data(function(k){return k.bands},u1);b.each(function(){gx.raiseToTop(this)}),b.attr("fill",function(k){return k.color});var v=b.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(k){return k.color}).attr("fill-opacity",0);b.attr("fill",function(k){return k.color}).attr("width",function(k){return k.width}).attr("height",function(k){return k.height}).attr("y",function(k){return k.y}).attr("cursor",function(k){return k.parcatsViewModel.arrangement==="fixed"?"default":k.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),tJ(v),b.exit().remove(),x.append("text").attr("class","catlabel").attr("pointer-events","none"),p.select("text.catlabel").attr("text-anchor",function(k){return Dk(k)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(k){return Dk(k)?k.width+5:-5}).attr("y",function(k){return k.height/2}).text(function(k){return k.model.categoryLabel}).each(function(k){MVe.font(Nf.select(this),k.parcatsViewModel.categorylabelfont),KHt.convertToTspans(Nf.select(this),t)}),x.append("text").attr("class","dimlabel"),p.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(k){return k.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(k){return k.width/2}).attr("y",-5).text(function(k,E){return E===0?k.parcatsViewModel.model.dimensions[k.model.dimensionInd].dimensionLabel:null}).each(function(k){MVe.font(Nf.select(this),k.parcatsViewModel.labelfont)}),p.selectAll("rect.bandrect").on("mouseover",sWt).on("mouseout",lWt),p.exit().remove(),d.call(Nf.behavior.drag().origin(function(k){return{x:k.x,y:0}}).on("dragstart",uWt).on("drag",fWt).on("dragend",cWt)),s.each(function(k){k.traceSelection=Nf.select(this),k.pathSelection=Nf.select(this).selectAll("g.paths").selectAll("path.path"),k.dimensionSelection=Nf.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),s.exit().remove()}IVe.exports=function(e,t,r,n){JHt(r,e,n,t)};function u1(e){return e.key}function Dk(e){var t=e.parcatsViewModel.dimensions.length,r=e.parcatsViewModel.dimensions[t-1].model.dimensionInd;return e.model.dimensionInd===r}function JK(e,t){return e.model.rawColor>t.model.rawColor?1:e.model.rawColor"),_=Nf.mouse(i)[0];Fk.loneHover({trace:a,x:p-s.left+u.left,y:x-s.top+u.top,text:L,color:e.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:b,idealAlign:_1&&l.displayInd===u.dimensions.length-1?(h=o.left,d="left"):(h=o.left+o.width,d="right");var p=s.model.count,x=s.model.categoryLabel,b=p/s.parcatsViewModel.model.count,v={countLabel:p,categoryLabel:x,probabilityLabel:b.toFixed(3)},k=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&k.push(["Count:",v.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&k.push(["P("+v.categoryLabel+"):",v.probabilityLabel].join(" "));var E=k.join("
");return{trace:f,x:n*(h-t.left),y:i*(c-t.top),text:E,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:d,hovertemplate:f.hovertemplate,hovertemplateLabels:v,eventData:[{data:f._input,fullData:f,count:p,category:x,probability:b}]}}function aWt(e,t,r){var n=[];return Nf.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var i=this;n.push(CVe(e,t,i))}),n}function oWt(e,t,r){e._fullLayout._calcInverseTransform(e);var n=e._fullLayout._invScaleX,i=e._fullLayout._invScaleY,a=r.getBoundingClientRect(),o=Nf.select(r).datum(),s=o.categoryViewModel,u=s.parcatsViewModel,l=u.model.dimensions[s.model.dimensionInd],f=u.trace,c=a.y+a.height/2,h,d;u.dimensions.length>1&&l.displayInd===u.dimensions.length-1?(h=a.left,d="left"):(h=a.left+a.width,d="right");var p=s.model.categoryLabel,x=o.parcatsViewModel.model.count,b=0;o.categoryViewModel.bands.forEach(function(P){P.color===o.color&&(b+=P.count)});var v=s.model.count,k=0;u.pathSelection.each(function(P){P.model.color===o.color&&(k+=P.model.count)});var E=b/x,T=b/k,L=b/v,_={countLabel:b,categoryLabel:p,probabilityLabel:E.toFixed(3)},C=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&C.push(["Count:",_.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(C.push("P(color \u2229 "+p+"): "+_.probabilityLabel),C.push("P("+p+" | color): "+T.toFixed(3)),C.push("P(color | "+p+"): "+L.toFixed(3)));var S=C.join("
"),m=KK.mostReadable(o.color,["black","white"]);return{trace:f,x:n*(h-t.left),y:i*(c-t.top),text:S,color:o.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:m,fontSize:10,idealAlign:d,hovertemplate:f.hovertemplate,hovertemplateLabels:_,eventData:[{data:f._input,fullData:f,category:p,count:x,probability:E,categorycount:v,colorcount:k,bandcolorcount:b}]}}function sWt(e){if(!e.parcatsViewModel.dragDimension&&e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var t=Nf.mouse(this)[1];if(t<-1)return;var r=e.parcatsViewModel.graphDiv,n=r._fullLayout,i=n._paperdiv.node().getBoundingClientRect(),a=e.parcatsViewModel.hoveron,o=this;if(a==="color"?(nWt(o),iJ(o,"plotly_hover",Nf.event)):(iWt(o),rJ(o,"plotly_hover",Nf.event)),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var s;a==="category"?s=CVe(r,i,o):a==="color"?s=oWt(r,i,o):a==="dimension"&&(s=aWt(r,i,o)),s&&Fk.loneHover(s,{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:r})}}}function lWt(e){var t=e.parcatsViewModel;if(!t.dragDimension&&(QK(t.pathSelection),kVe(t.dimensionSelection.selectAll("g.category")),tJ(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),Fk.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(JK),t.hoverinfoItems.indexOf("skip")===-1)){var r=e.parcatsViewModel.hoveron,n=this;r==="color"?iJ(n,"plotly_unhover",Nf.event):rJ(n,"plotly_unhover",Nf.event)}}function uWt(e){e.parcatsViewModel.arrangement!=="fixed"&&(e.dragDimensionDisplayInd=e.model.displayInd,e.initialDragDimensionDisplayInds=e.parcatsViewModel.model.dimensions.map(function(t){return t.displayInd}),e.dragHasMoved=!1,e.dragCategoryDisplayInd=null,Nf.select(this).selectAll("g.category").select("rect.catrect").each(function(t){var r=Nf.mouse(this)[0],n=Nf.mouse(this)[1];-2<=r&&r<=t.width+2&&-2<=n&&n<=t.height+2&&(e.dragCategoryDisplayInd=t.model.displayInd,e.initialDragCategoryDisplayInds=e.model.categories.map(function(i){return i.displayInd}),t.model.dragY=t.y,gx.raiseToTop(this.parentNode),Nf.select(this.parentNode).selectAll("rect.bandrect").each(function(i){i.yf.y+f.height/2&&(a.model.displayInd=f.model.displayInd,f.model.displayInd=s),e.dragCategoryDisplayInd=a.model.displayInd}if(e.dragCategoryDisplayInd===null||e.parcatsViewModel.arrangement==="freeform"){i.model.dragX=Nf.event.x;var c=e.parcatsViewModel.dimensions[r],h=e.parcatsViewModel.dimensions[n];c!==void 0&&i.model.dragXh.x&&(i.model.displayInd=h.model.displayInd,h.model.displayInd=e.dragDimensionDisplayInd),e.dragDimensionDisplayInd=i.model.displayInd}aJ(e.parcatsViewModel),nJ(e.parcatsViewModel),zVe(e.parcatsViewModel),PVe(e.parcatsViewModel)}}function cWt(e){if(e.parcatsViewModel.arrangement!=="fixed"&&e.dragDimensionDisplayInd!==null){Nf.select(this).selectAll("text").attr("font-weight","normal");var t={},r=LVe(e.parcatsViewModel),n=e.parcatsViewModel.model.dimensions.map(function(h){return h.displayInd}),i=e.initialDragDimensionDisplayInds.some(function(h,d){return h!==n[d]});i&&n.forEach(function(h,d){var p=e.parcatsViewModel.model.dimensions[d].containerInd;t["dimensions["+p+"].displayindex"]=h});var a=!1;if(e.dragCategoryDisplayInd!==null){var o=e.model.categories.map(function(h){return h.displayInd});if(a=e.initialDragCategoryDisplayInds.some(function(h,d){return h!==o[d]}),a){var s=e.model.categories.slice().sort(function(h,d){return h.displayInd-d.displayInd}),u=s.map(function(h){return h.categoryValue}),l=s.map(function(h){return h.categoryLabel});t["dimensions["+e.model.containerInd+"].categoryarray"]=[u],t["dimensions["+e.model.containerInd+"].ticktext"]=[l],t["dimensions["+e.model.containerInd+"].categoryorder"]="array"}}if(e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!e.dragHasMoved&&e.potentialClickBand&&(e.parcatsViewModel.hoveron==="color"?iJ(e.potentialClickBand,"plotly_click",Nf.event.sourceEvent):rJ(e.potentialClickBand,"plotly_click",Nf.event.sourceEvent)),e.model.dragX=null,e.dragCategoryDisplayInd!==null){var f=e.parcatsViewModel.dimensions[e.dragDimensionDisplayInd].categories[e.dragCategoryDisplayInd];f.model.dragY=null,e.dragCategoryDisplayInd=null}e.dragDimensionDisplayInd=null,e.parcatsViewModel.dragDimension=null,e.dragHasMoved=null,e.potentialClickBand=null,aJ(e.parcatsViewModel),nJ(e.parcatsViewModel);var c=Nf.transition().duration(300).ease("cubic-in-out");c.each(function(){zVe(e.parcatsViewModel,!0),PVe(e.parcatsViewModel,!0)}).each("end",function(){(i||a)&&YHt.restyle(e.parcatsViewModel.graphDiv,t,[r])})}}function LVe(e){for(var t,r=e.graphDiv._fullData,n=0;n=0;u--)l+="C"+o[u]+","+(t[u+1]+n)+" "+a[u]+","+(t[u]+n)+" "+(e[u]+r[u])+","+(t[u]+n),l+="l-"+r[u]+",0 ";return l+="Z",l}function nJ(e){var t=e.dimensions,r=e.model,n=t.map(function(F){return F.categories.map(function(U){return U.y})}),i=e.model.dimensions.map(function(F){return F.categories.map(function(U){return U.displayInd})}),a=e.model.dimensions.map(function(F){return F.displayInd}),o=e.dimensions.map(function(F){return F.model.dimensionInd}),s=t.map(function(F){return F.x}),u=t.map(function(F){return F.width}),l=[];for(var f in r.paths)r.paths.hasOwnProperty(f)&&l.push(r.paths[f]);function c(F){var U=F.categoryInds.map(function(j,H){return i[H][j]}),G=o.map(function(j){return U[j]});return G}l.sort(function(F,U){var G=c(F),j=c(U);return e.sortpaths==="backward"&&(G.reverse(),j.reverse()),G.push(F.valueInds[0]),j.push(U.valueInds[0]),e.bundlecolors&&(G.unshift(F.rawColor),j.unshift(U.rawColor)),Gj?1:0});for(var h=new Array(l.length),d=t[0].model.count,p=t[0].categories.map(function(F){return F.height}).reduce(function(F,U){return F+U}),x=0;x0?v=p*(b.count/d):v=0;for(var k=new Array(n.length),E=0;E1?o=(e.width-2*r-n)/(i-1):o=0,s=r,u=s+o*a;var l=[],f=e.model.maxCats,c=t.categories.length,h=8,d=t.count,p=e.height-h*(f-1),x,b,v,k,E,T=(f-c)*h/2,L=t.categories.map(function(_){return{displayInd:_.displayInd,categoryInd:_.categoryInd}});for(L.sort(function(_,C){return _.displayInd-C.displayInd}),E=0;E0?x=b.count/d*p:x=0,v={key:b.valueInds[0],model:b,width:n,height:x,y:b.dragY!==null?b.dragY:T,bands:[],parcatsViewModel:e},T=T+x+h,l.push(v);return{key:t.dimensionInd,x:t.dragX!==null?t.dragX:u,y:0,width:n,model:t,categories:l,parcatsViewModel:e,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}});var oJ=Te((Wxr,DVe)=>{"use strict";var pWt=RVe();DVe.exports=function(t,r,n,i){var a=t._fullLayout,o=a._paper,s=a._size;pWt(t,o,r,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},n,i)}});var BVe=Te(J8=>{"use strict";var vWt=Rd().getModuleCalcData,mWt=oJ(),FVe="parcats";J8.name=FVe;J8.plot=function(e,t,r,n){var i=vWt(e.calcdata,FVe);if(i.length){var a=i[0];mWt(e,a,r,n)}};J8.clean=function(e,t,r,n){var i=n._has&&n._has("parcats"),a=t._has&&t._has("parcats");i&&!a&&n._paperdiv.selectAll(".parcats").remove()}});var qVe=Te((Xxr,OVe)=>{"use strict";OVe.exports={attributes:YK(),supplyDefaults:AVe(),calc:SVe(),plot:oJ(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:BVe(),categories:["noOpacity"],meta:{}}});var UVe=Te((Zxr,NVe)=>{"use strict";NVe.exports=qVe()});var f1=Te((Yxr,ZVe)=>{"use strict";var yWt=Y1(),VVe="1.13.4",jVe='\xA9 OpenStreetMap contributors',GVe=['\xA9 Carto',jVe].join(" "),HVe=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),gWt=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),XVe={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:jVe,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:GVe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:GVe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:HVe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:HVe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:gWt,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},WVe=yWt(XVe);ZVe.exports={requiredVersion:VVe,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:XVe,styleValuesNonMapbox:WVe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+VVe+"."].join(` `),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join(` -`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",HVe.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` +`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",WVe.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` `),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join(` -`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}});var Dk=Te((jxr,JVe)=>{"use strict";var ZVe=ei(),YVe=jl().defaultLine,pWt=zc().attributes,vWt=gc(),mWt=Xc().textposition,yWt=Sc().overrideAll,gWt=Pf().templatedArray,oJ=f1(),KVe=vWt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});KVe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var _Wt=JVe.exports=yWt({_arrayAttrRegexps:[ZVe.counterRegex("mapbox",".layers",!0)],domain:pWt({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:oJ.styleValuesMapbox.concat(oJ.styleValuesNonMapbox),dflt:oJ.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:gWt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:YVe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:YVe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:KVe,textposition:ZVe.extendFlat({},mWt,{arrayOk:!1})}})},"plot","from-root");_Wt.uirevision={valType:"any",editType:"none"}});var $8=Te((Xxr,eGe)=>{"use strict";var xWt=Hu().hovertemplateAttrs,bWt=Hu().texttemplateAttrs,wWt=Em(),Fk=G2(),xS=Xc(),$Ve=Dk(),AWt=Vf(),TWt=nc(),ew=Su().extendFlat,SWt=Sc().overrideAll,MWt=Dk(),QVe=Fk.line,bS=Fk.marker;eGe.exports=SWt({lon:Fk.lon,lat:Fk.lat,cluster:{enabled:{valType:"boolean"},maxzoom:ew({},MWt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:ew({},bS.opacity,{dflt:1})},mode:ew({},xS.mode,{dflt:"markers"}),text:ew({},xS.text,{}),texttemplate:bWt({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:ew({},xS.hovertext,{}),line:{color:QVe.color,width:QVe.width},connectgaps:xS.connectgaps,marker:ew({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:bS.opacity,size:bS.size,sizeref:bS.sizeref,sizemin:bS.sizemin,sizemode:bS.sizemode},TWt("marker")),fill:Fk.fill,fillcolor:wWt(),textfont:$Ve.layers.symbol.textfont,textposition:$Ve.layers.symbol.textposition,below:{valType:"string"},selected:{marker:xS.selected.marker},unselected:{marker:xS.unselected.marker},hoverinfo:ew({},AWt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:xWt()},"calc","nested")});var sJ=Te((Zxr,tGe)=>{"use strict";var EWt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];tGe.exports={isSupportedFont:function(e){return EWt.indexOf(e)!==-1}}});var nGe=Te((Yxr,iGe)=>{"use strict";var Bk=ei(),lJ=lc(),kWt=$v(),CWt=I0(),LWt=R0(),PWt=zm(),rGe=$8(),zWt=sJ().isSupportedFont;iGe.exports=function(t,r,n,i){function a(v,k){return Bk.coerce(t,r,rGe,v,k)}function o(v,k){return Bk.coerce2(t,r,rGe,v,k)}var s=IWt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("hovertext"),a("hovertemplate"),a("mode"),a("below"),lJ.hasMarkers(r)){kWt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var u=r.marker;u.symbol!=="circle"&&(Bk.isArrayOrTypedArray(u.size)&&(u.size=u.size[0]),Bk.isArrayOrTypedArray(u.color)&&(u.color=u.color[0]))}lJ.hasLines(r)&&(CWt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var l=o("cluster.maxzoom"),f=o("cluster.step"),c=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),p=l!==!1||f!==!1||c!==!1||h!==!1||d!==!1,x=a("cluster.enabled",p);if(x||lJ.hasText(r)){var b=i.font.family;LWt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:zWt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&PWt(t,r,n,a),Bk.coerceSelectionMarkerOpacity(r,a)};function IWt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var uJ=Te((Kxr,oGe)=>{"use strict";var aGe=wu();oGe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=aGe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=aGe.tickText(o,o.c2l(s[1]),!0).text,i}});var fJ=Te((Jxr,lGe)=>{"use strict";var sGe=ei();lGe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=sGe.isArrayOrTypedArray(r)?sGe.mean(r):r,s=.5+o/100,u=1.5+o/100,l=["",""],f=[0,0];switch(i){case"top":l[0]="top",f[1]=-u;break;case"bottom":l[0]="bottom",f[1]=u;break}switch(a){case"left":l[1]="right",f[0]=-s;break;case"right":l[1]="left",f[0]=s;break}var c;return l[0]&&l[1]?c=l.join("-"):l[0]?c=l[0]:l[1]?c=l[1]:c="center",{anchor:c,offset:f}}});var pGe=Te(($xr,dGe)=>{"use strict";var cGe=ku(),sp=ei(),RWt=nf().BADNUM,eB=rx(),uGe=_c(),DWt=Mu(),FWt=S3(),tB=lc(),BWt=sJ().isSupportedFont,OWt=fJ(),qWt=rv().appendArrayPointValue,NWt=Zf().NEWLINES,UWt=Zf().BR_TAG_ALL;dGe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=tB.hasLines(n),s=tB.hasMarkers(n),u=tB.hasText(n),l=s&&n.marker.symbol==="circle",f=s&&n.marker.symbol!=="circle",c=n.cluster&&n.cluster.enabled,h=Q8("fill"),d=Q8("line"),p=Q8("circle"),x=Q8("symbol"),b={fill:h,line:d,circle:p,symbol:x};if(!i)return b;var v;if((a||o)&&(v=eB.calcTraceToLineCoords(r)),a&&(h.geojson=eB.makePolygon(v),h.layout.visibility="visible",sp.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=eB.makeLine(v),d.layout.visibility="visible",sp.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),l){var k=VWt(r);p.geojson=k.geojson,p.layout.visibility="visible",c&&(p.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":hJ(n.cluster.color,n.cluster.step),"circle-radius":hJ(n.cluster.size,n.cluster.step),"circle-opacity":hJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":fGe(n),"text-size":12}}),sp.extendFlat(p.paint,{"circle-color":k.mcc,"circle-radius":k.mrc,"circle-opacity":k.mo})}if(l&&c&&(p.filter=["!",["has","point_count"]]),(f||u)&&(x.geojson=GWt(r,t),sp.extendFlat(x.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),f&&(sp.extendFlat(x.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&sp.extendFlat(x.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),x.layout["icon-allow-overlap"]=n.marker.allowoverlap,sp.extendFlat(x.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),u)){var E=(n.marker||{}).size,T=OWt(n.textposition,E);sp.extendFlat(x.layout,{"text-size":n.textfont.size,"text-anchor":T.anchor,"text-offset":T.offset,"text-font":fGe(n)}),sp.extendFlat(x.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function Q8(e){return{type:e,geojson:eB.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function VWt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=sp.isArrayOrTypedArray(r.color),a=sp.isArrayOrTypedArray(r.size),o=sp.isArrayOrTypedArray(r.opacity),s;function u(E){return t.opacity*E}function l(E){return E/2}var f;i&&(uGe.hasColorscale(t,"marker")?f=uGe.makeColorScaleFuncFromTrace(r):f=sp.identity);var c;a&&(c=FWt(t));var h;o&&(h=function(E){var T=cGe(E)?+sp.constrain(E,0,1):0;return u(T)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),BWt(s)||(s=r);var u=s.split(", ");return u}});var gGe=Te((Qxr,yGe)=>{"use strict";var HWt=ei(),vGe=pGe(),wS=f1().traceLayerPrefix,rm={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function mGe(e,t,r,n){this.type="scattermapbox",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:wS+t+"-fill",line:wS+t+"-line",circle:wS+t+"-circle",symbol:wS+t+"-symbol",cluster:wS+t+"-cluster",clusterCount:wS+t+"-cluster-count"},this.below=null}var Ok=mGe.prototype;Ok.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&HWt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};Ok.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};Ok.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var _=T[L];i.removeLayer(l.layerIds[_])}E||i.removeSource(l.sourceIds.circle)}function h(E){for(var T=rm.nonCluster,L=0;L=0;L--){var _=T[L];i.removeLayer(l.layerIds[_]),E||i.removeSource(l.sourceIds[_])}}function p(E){u?c(E):d(E)}function x(E){s?f(E):h(E)}function b(){for(var E=s?rm.cluster:rm.nonCluster,T=0;T=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};yGe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new mGe(t,n.uid,i,a),s=vGe(t.gd,r),u=o.below=t.belowLookup["trace-"+n.uid],l,f,c;if(i)for(o.addSource("circle",s.circle,n.cluster),l=0;l{"use strict";var WWt=jc(),dJ=ei(),jWt=oA(),XWt=dJ.fillText,ZWt=nf().BADNUM,YWt=f1().traceLayerPrefix;function KWt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,u=[],l=YWt+i.uid+"-circle",f=i.cluster&&i.cluster.enabled;if(f){var c=s.map.queryRenderedFeatures(null,{layers:[l]});u=c.map(function(S){return S.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,p=t-d;function x(S){var m=S.lonlat;if(m[0]===ZWt||f&&u.indexOf(S.i+1)===-1)return 1/0;var P=dJ.modHalf(m[0],360),A=m[1],B=s.project([P,A]),F=B.x-a.c2p([p,A]),U=B.y-o.c2p([P,r]),G=Math.max(3,S.mrc||0);return Math.max(Math.sqrt(F*F+U*U)-G,1-3/G)}if(WWt.getClosest(n,x,e),e.index!==!1){var b=n[e.index],v=b.lonlat,k=[dJ.modHalf(v[0],360)+d,v[1]],E=a.c2p(k),T=o.c2p(k),L=b.mrc||1;e.x0=E-L,e.x1=E+L,e.y0=T-L,e.y1=T+L;var _={};_[i.subplot]={_subplot:s};var C=i._module.formatLabels(b,i,_);return e.lonLabel=C.lonLabel,e.latLabel=C.latLabel,e.color=jWt(i,b),e.extraText=_Ge(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function _Ge(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,u=t.lonlat,l=[];function f(c){return c+"\xB0"}return a||o&&s?l.push("("+f(u[1])+", "+f(u[0])+")"):o?l.push(r.lon+f(u[0])):s&&l.push(r.lat+f(u[1])),(a||i.indexOf("text")!==-1)&&XWt(t,e,l),l.join("
")}xGe.exports={hoverPoints:KWt,getExtraText:_Ge}});var wGe=Te((tbr,bGe)=>{"use strict";bGe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var TGe=Te((rbr,AGe)=>{"use strict";var JWt=ei(),$Wt=lc(),QWt=nf().BADNUM;AGe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u;if(!$Wt.hasMarkers(s))return[];if(r===!1)for(u=0;u{(function(e,t){typeof pJ=="object"&&typeof vJ!="undefined"?vJ.exports=t():(e=e||self,e.mapboxgl=t())})(pJ,function(){"use strict";var e,t,r;function n(i,a){if(!e)e=a;else if(!t)t=a;else{var o="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",s={};e(s),r=a(s),typeof window!="undefined"&&(r.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}}return n(["exports"],function(i){"use strict";function a(y,g){return g={exports:{}},y(g,g.exports),g.exports}var o="1.13.4",s=u;function u(y,g,z,V){this.cx=3*y,this.bx=3*(z-y)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*g,this.by=3*(V-g)-this.cy,this.ay=1-this.cy-this.by,this.p1x=y,this.p1y=V,this.p2x=z,this.p2y=V}u.prototype.sampleCurveX=function(y){return((this.ax*y+this.bx)*y+this.cx)*y},u.prototype.sampleCurveY=function(y){return((this.ay*y+this.by)*y+this.cy)*y},u.prototype.sampleCurveDerivativeX=function(y){return(3*this.ax*y+2*this.bx)*y+this.cx},u.prototype.solveCurveX=function(y,g){typeof g=="undefined"&&(g=1e-6);var z,V,$,oe,ye;for($=y,ye=0;ye<8;ye++){if(oe=this.sampleCurveX($)-y,Math.abs(oe)V)return V;for(;zoe?z=$:V=$,$=(V-z)*.5+z}return $},u.prototype.solve=function(y,g){return this.sampleCurveY(this.solveCurveX(y,g))};var l=f;function f(y,g){this.x=y,this.y=g}f.prototype={clone:function(){return new f(this.x,this.y)},add:function(y){return this.clone()._add(y)},sub:function(y){return this.clone()._sub(y)},multByPoint:function(y){return this.clone()._multByPoint(y)},divByPoint:function(y){return this.clone()._divByPoint(y)},mult:function(y){return this.clone()._mult(y)},div:function(y){return this.clone()._div(y)},rotate:function(y){return this.clone()._rotate(y)},rotateAround:function(y,g){return this.clone()._rotateAround(y,g)},matMult:function(y){return this.clone()._matMult(y)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(y){return this.x===y.x&&this.y===y.y},dist:function(y){return Math.sqrt(this.distSqr(y))},distSqr:function(y){var g=y.x-this.x,z=y.y-this.y;return g*g+z*z},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(y){return Math.atan2(this.y-y.y,this.x-y.x)},angleWith:function(y){return this.angleWithSep(y.x,y.y)},angleWithSep:function(y,g){return Math.atan2(this.x*g-this.y*y,this.x*y+this.y*g)},_matMult:function(y){var g=y[0]*this.x+y[1]*this.y,z=y[2]*this.x+y[3]*this.y;return this.x=g,this.y=z,this},_add:function(y){return this.x+=y.x,this.y+=y.y,this},_sub:function(y){return this.x-=y.x,this.y-=y.y,this},_mult:function(y){return this.x*=y,this.y*=y,this},_div:function(y){return this.x/=y,this.y/=y,this},_multByPoint:function(y){return this.x*=y.x,this.y*=y.y,this},_divByPoint:function(y){return this.x/=y.x,this.y/=y.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var y=this.y;return this.y=this.x,this.x=-y,this},_rotate:function(y){var g=Math.cos(y),z=Math.sin(y),V=g*this.x-z*this.y,$=z*this.x+g*this.y;return this.x=V,this.y=$,this},_rotateAround:function(y,g){var z=Math.cos(y),V=Math.sin(y),$=g.x+z*(this.x-g.x)-V*(this.y-g.y),oe=g.y+V*(this.x-g.x)+z*(this.y-g.y);return this.x=$,this.y=oe,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},f.convert=function(y){return y instanceof f?y:Array.isArray(y)?new f(y[0],y[1]):y};var c=typeof self!="undefined"?self:{};function h(y,g){if(Array.isArray(y)){if(!Array.isArray(g)||y.length!==g.length)return!1;for(var z=0;z=1)return 1;var g=y*y,z=g*y;return 4*(y<.5?z:3*(y-g)+z-.75)}function x(y,g,z,V){var $=new s(y,g,z,V);return function(oe){return $.solve(oe)}}var b=x(.25,.1,.25,1);function v(y,g,z){return Math.min(z,Math.max(g,y))}function k(y,g,z){var V=z-g,$=((y-g)%V+V)%V+g;return $===g?z:$}function E(y,g,z){if(!y.length)return z(null,[]);var V=y.length,$=new Array(y.length),oe=null;y.forEach(function(ye,We){g(ye,function(xt,Rt){xt&&(oe=xt),$[We]=Rt,--V===0&&z(oe,$)})})}function T(y){var g=[];for(var z in y)g.push(y[z]);return g}function L(y,g){var z=[];for(var V in y)V in g||z.push(V);return z}function _(y){for(var g=[],z=arguments.length-1;z-- >0;)g[z]=arguments[z+1];for(var V=0,$=g;V<$.length;V+=1){var oe=$[V];for(var ye in oe)y[ye]=oe[ye]}return y}function C(y,g){for(var z={},V=0;V>g/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,y)}return y()}function A(y){return y<=1?1:Math.pow(2,Math.ceil(Math.log(y)/Math.LN2))}function B(y){return y?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(y):!1}function F(y,g){y.forEach(function(z){g[z]&&(g[z]=g[z].bind(g))})}function U(y,g){return y.indexOf(g,y.length-g.length)!==-1}function G(y,g,z){var V={};for(var $ in y)V[$]=g.call(z||this,y[$],$,y);return V}function j(y,g,z){var V={};for(var $ in y)g.call(z||this,y[$],$,y)&&(V[$]=y[$]);return V}function H(y){return Array.isArray(y)?y.map(H):typeof y=="object"&&y?G(y,H):y}function N(y,g){for(var z=0;z=0)return!0;return!1}var W={};function re(y){W[y]||(typeof console!="undefined"&&console.warn(y),W[y]=!0)}function ae(y,g,z){return(z.y-y.y)*(g.x-y.x)>(g.y-y.y)*(z.x-y.x)}function be(y){for(var g=0,z=0,V=y.length,$=V-1,oe=void 0,ye=void 0;z@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,z={};if(y.replace(g,function($,oe,ye,We){var xt=ye||We;return z[oe]=xt?xt.toLowerCase():!0,""}),z["max-age"]){var V=parseInt(z["max-age"],10);isNaN(V)?delete z["max-age"]:z["max-age"]=V}return z}var te=null;function ke(y){if(te==null){var g=y.navigator?y.navigator.userAgent:null;te=!!y.safari||!!(g&&(/\b(iPad|iPhone|iPod)\b/.test(g)||g.match("Safari")&&!g.match("Chrome")))}return te}function Ee(y){try{var g=c[y];return g.setItem("_mapbox_test_",1),g.removeItem("_mapbox_test_"),!0}catch(z){return!1}}function Me(y){return c.btoa(encodeURIComponent(y).replace(/%([0-9A-F]{2})/g,function(g,z){return String.fromCharCode(+("0x"+z))}))}function Ue(y){return decodeURIComponent(c.atob(y).split("").map(function(g){return"%"+("00"+g.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var Fe=c.performance&&c.performance.now?c.performance.now.bind(c.performance):Date.now.bind(Date),me=c.requestAnimationFrame||c.mozRequestAnimationFrame||c.webkitRequestAnimationFrame||c.msRequestAnimationFrame,Ne=c.cancelAnimationFrame||c.mozCancelAnimationFrame||c.webkitCancelAnimationFrame||c.msCancelAnimationFrame,ce,Ke,it={now:Fe,frame:function(g){var z=me(g);return{cancel:function(){return Ne(z)}}},getImageData:function(g,z){z===void 0&&(z=0);var V=c.document.createElement("canvas"),$=V.getContext("2d");if(!$)throw new Error("failed to create canvas 2d context");return V.width=g.width,V.height=g.height,$.drawImage(g,0,0,g.width,g.height),$.getImageData(-z,-z,g.width+2*z,g.height+2*z)},resolveURL:function(g){return ce||(ce=c.document.createElement("a")),ce.href=g,ce.href},hardwareConcurrency:c.navigator&&c.navigator.hardwareConcurrency||4,get devicePixelRatio(){return c.devicePixelRatio},get prefersReducedMotion(){return c.matchMedia?(Ke==null&&(Ke=c.matchMedia("(prefers-reduced-motion: reduce)")),Ke.matches):!1}},bt={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Nt={supported:!1,testSupport:St},nt,Ye=!1,kt,At=!1;c.document&&(kt=c.document.createElement("img"),kt.onload=function(){nt&&Bt(nt),nt=null,At=!0},kt.onerror=function(){Ye=!0,nt=null},kt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function St(y){Ye||!kt||(At?Bt(y):nt=y)}function Bt(y){var g=y.createTexture();y.bindTexture(y.TEXTURE_2D,g);try{if(y.texImage2D(y.TEXTURE_2D,0,y.RGBA,y.RGBA,y.UNSIGNED_BYTE,kt),y.isContextLost())return;Nt.supported=!0}catch(z){}y.deleteTexture(g),Ye=!0}var Zt="01";function Et(){for(var y="1",g="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",z="",V=0;V<10;V++)z+=g[Math.floor(Math.random()*62)];var $=12*60*60*1e3,oe=[y,Zt,z].join(""),ye=Date.now()+$;return{token:oe,tokenExpiresAt:ye}}var Ae=function(g,z){this._transformRequestFn=g,this._customAccessToken=z,this._createSkuToken()};Ae.prototype._createSkuToken=function(){var g=Et();this._skuToken=g.token,this._skuTokenExpiresAt=g.tokenExpiresAt},Ae.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Ae.prototype.transformRequest=function(g,z){return this._transformRequestFn?this._transformRequestFn(g,z)||{url:g}:{url:g}},Ae.prototype.normalizeStyleURL=function(g,z){if(!ot(g))return g;var V=Qe(g);return V.path="/styles/v1"+V.path,this._makeAPIURL(V,this._customAccessToken||z)},Ae.prototype.normalizeGlyphsURL=function(g,z){if(!ot(g))return g;var V=Qe(g);return V.path="/fonts/v1"+V.path,this._makeAPIURL(V,this._customAccessToken||z)},Ae.prototype.normalizeSourceURL=function(g,z){if(!ot(g))return g;var V=Qe(g);return V.path="/v4/"+V.authority+".json",V.params.push("secure"),this._makeAPIURL(V,this._customAccessToken||z)},Ae.prototype.normalizeSpriteURL=function(g,z,V,$){var oe=Qe(g);return ot(g)?(oe.path="/styles/v1"+oe.path+"/sprite"+z+V,this._makeAPIURL(oe,this._customAccessToken||$)):(oe.path+=""+z+V,zt(oe))},Ae.prototype.normalizeTileURL=function(g,z){if(this._isSkuTokenExpired()&&this._createSkuToken(),g&&!ot(g))return g;var V=Qe(g),$=/(\.(png|jpg)\d*)(?=$)/,oe=/^.+\/v4\//,ye=it.devicePixelRatio>=2||z===512?"@2x":"",We=Nt.supported?".webp":"$1";V.path=V.path.replace($,""+ye+We),V.path=V.path.replace(oe,"/"),V.path="/v4"+V.path;var xt=this._customAccessToken||Xe(V.params)||bt.ACCESS_TOKEN;return bt.REQUIRE_ACCESS_TOKEN&&xt&&this._skuToken&&V.params.push("sku="+this._skuToken),this._makeAPIURL(V,xt)},Ae.prototype.canonicalizeTileURL=function(g,z){var V="/v4/",$=/\.[\w]+$/,oe=Qe(g);if(!oe.path.match(/(^\/v4\/)/)||!oe.path.match($))return g;var ye="mapbox://tiles/";ye+=oe.path.replace(V,"");var We=oe.params;return z&&(We=We.filter(function(xt){return!xt.match(/^access_token=/)})),We.length&&(ye+="?"+We.join("&")),ye},Ae.prototype.canonicalizeTileset=function(g,z){for(var V=z?ot(z):!1,$=[],oe=0,ye=g.tiles||[];oe=0&&g.params.splice(oe,1)}if($.path!=="/"&&(g.path=""+$.path+g.path),!bt.REQUIRE_ACCESS_TOKEN)return zt(g);if(z=z||bt.ACCESS_TOKEN,!z)throw new Error("An API access token is required to use Mapbox GL. "+V);if(z[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+V);return g.params=g.params.filter(function(ye){return ye.indexOf("access_token")===-1}),g.params.push("access_token="+z),zt(g)};function ot(y){return y.indexOf("mapbox:")===0}var dt=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function pt(y){return dt.test(y)}function at(y){return y.indexOf("sku=")>0&&pt(y)}function Xe(y){for(var g=0,z=y;g=1&&c.localStorage.setItem(z,JSON.stringify(this.eventData))}catch($){re("Unable to write to LocalStorage")}},mr.prototype.processRequests=function(g){},mr.prototype.postEvent=function(g,z,V,$){var oe=this;if(bt.EVENTS_URL){var ye=Qe(bt.EVENTS_URL);ye.params.push("access_token="+($||bt.ACCESS_TOKEN||""));var We={event:this.type,created:new Date(g).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:o,skuId:Zt,userId:this.anonId},xt=z?_(We,z):We,Rt={url:zt(ye),headers:{"Content-Type":"text/plain"},body:JSON.stringify([xt])};this.pendingRequest=Ir(Rt,function(Xt){oe.pendingRequest=null,V(Xt),oe.saveEventData(),oe.processRequests($)})}},mr.prototype.queueRequest=function(g,z){this.queue.push(g),this.processRequests(z)};var _r=function(y){function g(){y.call(this,"map.load"),this.success={},this.skuToken=""}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.postMapLoadEvent=function(V,$,oe,ye){this.skuToken=oe,(bt.EVENTS_URL&&ye||bt.ACCESS_TOKEN&&Array.isArray(V)&&V.some(function(We){return ot(We)||pt(We)}))&&this.queueRequest({id:$,timestamp:Date.now()},ye)},g.prototype.processRequests=function(V){var $=this;if(!(this.pendingRequest||this.queue.length===0)){var oe=this.queue.shift(),ye=oe.id,We=oe.timestamp;ye&&this.success[ye]||(this.anonId||this.fetchEventData(),B(this.anonId)||(this.anonId=P()),this.postEvent(We,{skuToken:this.skuToken},function(xt){xt||ye&&($.success[ye]=!0)},V))}},g}(mr),Ht=function(y){function g(z){y.call(this,"appUserTurnstile"),this._customAccessToken=z}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.postTurnstileEvent=function(V,$){bt.EVENTS_URL&&bt.ACCESS_TOKEN&&Array.isArray(V)&&V.some(function(oe){return ot(oe)||pt(oe)})&&this.queueRequest(Date.now(),$)},g.prototype.processRequests=function(V){var $=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var oe=lr(bt.ACCESS_TOKEN),ye=oe?oe.u:bt.ACCESS_TOKEN,We=ye!==this.eventData.tokenU;B(this.anonId)||(this.anonId=P(),We=!0);var xt=this.queue.shift();if(this.eventData.lastSuccess){var Rt=new Date(this.eventData.lastSuccess),Xt=new Date(xt),br=(xt-this.eventData.lastSuccess)/(24*60*60*1e3);We=We||br>=1||br<-1||Rt.getDate()!==Xt.getDate()}else We=!0;if(!We)return this.processRequests();this.postEvent(xt,{"enabled.telemetry":!1},function(Or){Or||($.eventData.lastSuccess=xt,$.eventData.tokenU=ye)},V)}},g}(mr),Re=new Ht,xe=Re.postTurnstileEvent.bind(Re),Oe=new _r,Ie=Oe.postMapLoadEvent.bind(Oe),De="mapbox-tiles",ct=500,_e=50,fe=1e3*60*7,pe;function mt(){c.caches&&!pe&&(pe=c.caches.open(De))}var It;function Pt(y,g){if(It===void 0)try{new Response(new ReadableStream),It=!0}catch(z){It=!1}It?g(y.body):y.blob().then(g)}function rr(y,g,z){if(mt(),!!pe){var V={status:g.status,statusText:g.statusText,headers:new c.Headers};g.headers.forEach(function(ye,We){return V.headers.set(We,ye)});var $=de(g.headers.get("Cache-Control")||"");if(!$["no-store"]){$["max-age"]&&V.headers.set("Expires",new Date(z+$["max-age"]*1e3).toUTCString());var oe=new Date(V.headers.get("Expires")).getTime()-z;oeDate.now()&&!z["no-cache"]}var Br=1/0;function mi(y){Br++,Br>_e&&(y.getActor().send("enforceCacheSizeLimit",ct),Br=0)}function Di(y){mt(),pe&&pe.then(function(g){g.keys().then(function(z){for(var V=0;V=200&&z.status<300||z.status===0)&&z.response!==null){var $=z.response;if(y.type==="json")try{$=JSON.parse(z.response)}catch(oe){return g(oe)}g(null,$,z.getResponseHeader("Cache-Control"),z.getResponseHeader("Expires"))}else g(new Gi(z.statusText,z.status,y.url))},z.send(y.body),{cancel:function(){return z.abort()}}}var xr=function(y,g){if(!gt(y.url)){if(c.fetch&&c.Request&&c.AbortController&&c.Request.prototype.hasOwnProperty("signal"))return Ut(y,g);if(Ce()&&self.worker&&self.worker.actor){var z=!0;return self.worker.actor.send("getResource",y,g,void 0,z)}}return Wt(y,g)},Lr=function(y,g){return xr(_(y,{type:"json"}),g)},Ur=function(y,g){return xr(_(y,{type:"arrayBuffer"}),g)},Ir=function(y,g){return xr(_(y,{method:"POST"}),g)};function Gr(y){var g=c.document.createElement("a");return g.href=y,g.protocol===c.document.location.protocol&&g.host===c.document.location.host}var jr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function yi(y,g,z,V){var $=new c.Image,oe=c.URL;$.onload=function(){g(null,$),oe.revokeObjectURL($.src),$.onload=null,c.requestAnimationFrame(function(){$.src=jr})},$.onerror=function(){return g(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var ye=new c.Blob([new Uint8Array(y)],{type:"image/png"});$.cacheControl=z,$.expires=V,$.src=y.byteLength?oe.createObjectURL(ye):jr}function Ei(y,g){var z=new c.Blob([new Uint8Array(y)],{type:"image/png"});c.createImageBitmap(z).then(function(V){g(null,V)}).catch(function(V){g(new Error("Could not load image because of "+V.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var Vi,ti,en=function(){Vi=[],ti=0};en();var Yr=function(y,g){if(Nt.supported&&(y.headers||(y.headers={}),y.headers.accept="image/webp,*/*"),ti>=bt.MAX_PARALLEL_IMAGE_REQUESTS){var z={requestParameters:y,callback:g,cancelled:!1,cancel:function(){this.cancelled=!0}};return Vi.push(z),z}ti++;var V=!1,$=function(){if(!V)for(V=!0,ti--;Vi.length&&ti0||this._oneTimeListeners&&this._oneTimeListeners[g]&&this._oneTimeListeners[g].length>0||this._eventedParent&&this._eventedParent.listens(g)},Ri.prototype.setEventedParent=function(g,z){return this._eventedParent=g,this._eventedParentData=z,this};var xn=8,xi={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},Xr={"*":{type:"source"}},ft=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],tr={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},pr={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},gr={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Zr={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},Ai={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},Qi={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},ni={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},Zi=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],aa={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Mn={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Un={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Ga={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ma={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},oa={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ka={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},so={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Kr={type:"array",value:"*"},Ia={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},Yo={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},fa={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},kn={type:"array",value:"*",minimum:1},Ta={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},ys=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],uo={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},ls={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},$a={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},fo={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},mn={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},ra={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},wa={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},ws={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Co={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},Po={"*":{type:"string"}},ji={$version:xn,$root:xi,sources:Xr,source:ft,source_vector:tr,source_raster:pr,source_raster_dem:gr,source_geojson:Zr,source_video:Ai,source_image:Qi,layer:ni,layout:Zi,layout_background:aa,layout_fill:Mn,layout_circle:Un,layout_heatmap:Ga,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:ma,layout_symbol:oa,layout_raster:ka,layout_hillshade:so,filter:Kr,filter_operator:Ia,geometry_type:Yo,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:fa,expression:kn,light:Ta,paint:ys,paint_fill:uo,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:ls,paint_circle:$a,paint_heatmap:fo,paint_symbol:mn,paint_raster:ra,paint_hillshade:wa,paint_background:ws,transition:Co,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:Po},gn=function(g,z,V,$){this.message=(g?g+": ":"")+V,$&&(this.identifier=$),z!=null&&z.__line__&&(this.line=z.__line__)};function Ps(y){var g=y.key,z=y.value;return z?[new gn(g,z,"constants have been deprecated as of v8")]:[]}function Ha(y){for(var g=[],z=arguments.length-1;z-- >0;)g[z]=arguments[z+1];for(var V=0,$=g;V<$.length;V+=1){var oe=$[V];for(var ye in oe)y[ye]=oe[ye]}return y}function Sn(y){return y instanceof Number||y instanceof String||y instanceof Boolean?y.valueOf():y}function ao(y){if(Array.isArray(y))return y.map(ao);if(y instanceof Object&&!(y instanceof Number||y instanceof String||y instanceof Boolean)){var g={};for(var z in y)g[z]=ao(y[z]);return g}return Sn(y)}var Ba=function(y){function g(z,V){y.call(this,V),this.message=V,this.key=z}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g}(Error),Ko=function(g,z){z===void 0&&(z=[]),this.parent=g,this.bindings={};for(var V=0,$=z;V<$.length;V+=1){var oe=$[V],ye=oe[0],We=oe[1];this.bindings[ye]=We}};Ko.prototype.concat=function(g){return new Ko(this,g)},Ko.prototype.get=function(g){if(this.bindings[g])return this.bindings[g];if(this.parent)return this.parent.get(g);throw new Error(g+" not found in scope.")},Ko.prototype.has=function(g){return this.bindings[g]?!0:this.parent?this.parent.has(g):!1};var Qo={kind:"null"},Wi={kind:"number"},Sa={kind:"string"},Qa={kind:"boolean"},vn={kind:"color"},da={kind:"object"},la={kind:"value"},vo={kind:"error"},As={kind:"collator"},ps={kind:"formatted"},co={kind:"resolvedImage"};function mo(y,g){return{kind:"array",itemType:y,N:g}}function No(y){if(y.kind==="array"){var g=No(y.itemType);return typeof y.N=="number"?"array<"+g+", "+y.N+">":y.itemType.kind==="value"?"array":"array<"+g+">"}else return y.kind}var jn=[Qo,Wi,Sa,Qa,vn,ps,da,mo(la),co];function Go(y,g){if(g.kind==="error")return null;if(y.kind==="array"){if(g.kind==="array"&&(g.N===0&&g.itemType.kind==="value"||!Go(y.itemType,g.itemType))&&(typeof y.N!="number"||y.N===g.N))return null}else{if(y.kind===g.kind)return null;if(y.kind==="value")for(var z=0,V=jn;z255?255:Rt}function $(Rt){return Rt<0?0:Rt>1?1:Rt}function oe(Rt){return Rt[Rt.length-1]==="%"?V(parseFloat(Rt)/100*255):V(parseInt(Rt))}function ye(Rt){return Rt[Rt.length-1]==="%"?$(parseFloat(Rt)/100):$(parseFloat(Rt))}function We(Rt,Xt,br){return br<0?br+=1:br>1&&(br-=1),br*6<1?Rt+(Xt-Rt)*br*6:br*2<1?Xt:br*3<2?Rt+(Xt-Rt)*(2/3-br)*6:Rt}function xt(Rt){var Xt=Rt.replace(/ /g,"").toLowerCase();if(Xt in z)return z[Xt].slice();if(Xt[0]==="#"){if(Xt.length===4){var br=parseInt(Xt.substr(1),16);return br>=0&&br<=4095?[(br&3840)>>4|(br&3840)>>8,br&240|(br&240)>>4,br&15|(br&15)<<4,1]:null}else if(Xt.length===7){var br=parseInt(Xt.substr(1),16);return br>=0&&br<=16777215?[(br&16711680)>>16,(br&65280)>>8,br&255,1]:null}return null}var Or=Xt.indexOf("("),Pr=Xt.indexOf(")");if(Or!==-1&&Pr+1===Xt.length){var ai=Xt.substr(0,Or),qi=Xt.substr(Or+1,Pr-(Or+1)).split(","),Wn=1;switch(ai){case"rgba":if(qi.length!==4)return null;Wn=ye(qi.pop());case"rgb":return qi.length!==3?null:[oe(qi[0]),oe(qi[1]),oe(qi[2]),Wn];case"hsla":if(qi.length!==4)return null;Wn=ye(qi.pop());case"hsl":if(qi.length!==3)return null;var bn=(parseFloat(qi[0])%360+360)%360/360,bo=ye(qi[1]),ba=ye(qi[2]),_o=ba<=.5?ba*(bo+1):ba+bo-ba*bo,Uo=ba*2-_o;return[V(We(Uo,_o,bn+1/3)*255),V(We(Uo,_o,bn)*255),V(We(Uo,_o,bn-1/3)*255),Wn];default:return null}}return null}try{g.parseCSSColor=xt}catch(Rt){}}),Oa=Ns.parseCSSColor,ha=function(g,z,V,$){$===void 0&&($=1),this.r=g,this.g=z,this.b=V,this.a=$};ha.parse=function(g){if(g){if(g instanceof ha)return g;if(typeof g=="string"){var z=Oa(g);if(z)return new ha(z[0]/255*z[3],z[1]/255*z[3],z[2]/255*z[3],z[3])}}},ha.prototype.toString=function(){var g=this.toArray(),z=g[0],V=g[1],$=g[2],oe=g[3];return"rgba("+Math.round(z)+","+Math.round(V)+","+Math.round($)+","+oe+")"},ha.prototype.toArray=function(){var g=this,z=g.r,V=g.g,$=g.b,oe=g.a;return oe===0?[0,0,0,0]:[z*255/oe,V*255/oe,$*255/oe,oe]},ha.black=new ha(0,0,0,1),ha.white=new ha(1,1,1,1),ha.transparent=new ha(0,0,0,0),ha.red=new ha(1,0,0,1);var Vs=function(g,z,V){g?this.sensitivity=z?"variant":"case":this.sensitivity=z?"accent":"base",this.locale=V,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Vs.prototype.compare=function(g,z){return this.collator.compare(g,z)},Vs.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Ya=function(g,z,V,$,oe){this.text=g,this.image=z,this.scale=V,this.fontStack=$,this.textColor=oe},_n=function(g){this.sections=g};_n.fromString=function(g){return new _n([new Ya(g,null,null,null,null)])},_n.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(g){return g.text.length!==0||g.image&&g.image.name.length!==0})},_n.factory=function(g){return g instanceof _n?g:_n.fromString(g)},_n.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(g){return g.text}).join("")},_n.prototype.serialize=function(){for(var g=["format"],z=0,V=this.sections;z=0&&y<=255&&typeof g=="number"&&g>=0&&g<=255&&typeof z=="number"&&z>=0&&z<=255)){var $=typeof V=="number"?[y,g,z,V]:[y,g,z];return"Invalid rgba value ["+$.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof V=="undefined"||typeof V=="number"&&V>=0&&V<=1?null:"Invalid rgba value ["+[y,g,z,V].join(", ")+"]: 'a' must be between 0 and 1."}function Ra(y){if(y===null)return!0;if(typeof y=="string")return!0;if(typeof y=="boolean")return!0;if(typeof y=="number")return!0;if(y instanceof ha)return!0;if(y instanceof Vs)return!0;if(y instanceof _n)return!0;if(y instanceof Vn)return!0;if(Array.isArray(y)){for(var g=0,z=y;g2){var We=g[1];if(typeof We!="string"||!(We in qn)||We==="object")return z.error('The item type argument of "array" must be one of string, number, boolean',1);ye=qn[We],V++}else ye=la;var xt;if(g.length>3){if(g[2]!==null&&(typeof g[2]!="number"||g[2]<0||g[2]!==Math.floor(g[2])))return z.error('The length argument to "array" must be a positive integer literal',2);xt=g[2],V++}$=mo(ye,xt)}else $=qn[oe];for(var Rt=[];V1)&&z.push($)}}return z.concat(this.args.map(function(oe){return oe.serialize()}))};var Ja=function(g){this.type=ps,this.sections=g};Ja.parse=function(g,z){if(g.length<2)return z.error("Expected at least one argument.");var V=g[1];if(!Array.isArray(V)&&typeof V=="object")return z.error("First argument must be an image or text section.");for(var $=[],oe=!1,ye=1;ye<=g.length-1;++ye){var We=g[ye];if(oe&&typeof We=="object"&&!Array.isArray(We)){oe=!1;var xt=null;if(We["font-scale"]&&(xt=z.parse(We["font-scale"],1,Wi),!xt))return null;var Rt=null;if(We["text-font"]&&(Rt=z.parse(We["text-font"],1,mo(Sa)),!Rt))return null;var Xt=null;if(We["text-color"]&&(Xt=z.parse(We["text-color"],1,vn),!Xt))return null;var br=$[$.length-1];br.scale=xt,br.font=Rt,br.textColor=Xt}else{var Or=z.parse(g[ye],1,la);if(!Or)return null;var Pr=Or.type.kind;if(Pr!=="string"&&Pr!=="value"&&Pr!=="null"&&Pr!=="resolvedImage")return z.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");oe=!0,$.push({content:Or,scale:null,font:null,textColor:null})}}return new Ja($)},Ja.prototype.evaluate=function(g){var z=function(V){var $=V.content.evaluate(g);return Xn($)===co?new Ya("",$,null,null,null):new Ya(un($),null,V.scale?V.scale.evaluate(g):null,V.font?V.font.evaluate(g).join(","):null,V.textColor?V.textColor.evaluate(g):null)};return new _n(this.sections.map(z))},Ja.prototype.eachChild=function(g){for(var z=0,V=this.sections;z-1),V},lo.prototype.eachChild=function(g){g(this.input)},lo.prototype.outputDefined=function(){return!1},lo.prototype.serialize=function(){return["image",this.input.serialize()]};var eo={"to-boolean":Qa,"to-color":vn,"to-number":Wi,"to-string":Sa},sa=function(g,z){this.type=g,this.args=z};sa.parse=function(g,z){if(g.length<2)return z.error("Expected at least one argument.");var V=g[0];if((V==="to-boolean"||V==="to-string")&&g.length!==2)return z.error("Expected one argument.");for(var $=eo[V],oe=[],ye=1;ye4?V="Invalid rbga value "+JSON.stringify(z)+": expected an array containing either three or four numeric values.":V=wo(z[0],z[1],z[2],z[3]),!V))return new ha(z[0]/255,z[1]/255,z[2]/255,z[3])}throw new Ka(V||"Could not parse color from value '"+(typeof z=="string"?z:String(JSON.stringify(z)))+"'")}else if(this.type.kind==="number"){for(var xt=null,Rt=0,Xt=this.args;Rt=g[2]||y[1]<=g[1]||y[3]>=g[3])}function Ws(y,g){var z=Ao(y[0]),V=Dn(y[1]),$=Math.pow(2,g.z);return[Math.round(z*$*yo),Math.round(V*$*yo)]}function Ca(y,g,z){var V=y[0]-g[0],$=y[1]-g[1],oe=y[0]-z[0],ye=y[1]-z[1];return V*ye-oe*$===0&&V*oe<=0&&$*ye<=0}function Es(y,g,z){return g[1]>y[1]!=z[1]>y[1]&&y[0]<(z[0]-g[0])*(y[1]-g[1])/(z[1]-g[1])+g[0]}function Ts(y,g){for(var z=!1,V=0,$=g.length;V<$;V++)for(var oe=g[V],ye=0,We=oe.length;ye0&&br<0||Xt<0&&br>0}function ts(y,g,z,V){var $=[g[0]-y[0],g[1]-y[1]],oe=[V[0]-z[0],V[1]-z[1]];return Wa(oe,$)===0?!1:!!(To(y,g,z,V)&&To(z,V,y,g))}function Wo(y,g,z){for(var V=0,$=z;V<$.length;V+=1)for(var oe=$[V],ye=0;yez[2]){var $=V*.5,oe=y[0]-z[0]>$?-V:z[0]-y[0]>$?V:0;oe===0&&(oe=y[0]-z[2]>$?-V:z[2]-y[0]>$?V:0),y[0]+=oe}Jo(g,y)}function za(y){y[0]=y[1]=1/0,y[2]=y[3]=-1/0}function ea(y,g,z,V){for(var $=Math.pow(2,V.z)*yo,oe=[V.x*yo,V.y*yo],ye=[],We=0,xt=y;We=0)return!1;var z=!0;return y.eachChild(function(V){z&&!Ma(V,g)&&(z=!1)}),z}var Qs=function(g,z){this.type=z.type,this.name=g,this.boundExpression=z};Qs.parse=function(g,z){if(g.length!==2||typeof g[1]!="string")return z.error("'var' expression requires exactly one string literal argument.");var V=g[1];return z.scope.has(V)?new Qs(V,z.scope.get(V)):z.error('Unknown variable "'+V+'". Make sure "'+V+'" has been bound in an enclosing "let" expression before using it.',1)},Qs.prototype.evaluate=function(g){return this.boundExpression.evaluate(g)},Qs.prototype.eachChild=function(){},Qs.prototype.outputDefined=function(){return!1},Qs.prototype.serialize=function(){return["var",this.name]};var ho=function(g,z,V,$,oe){z===void 0&&(z=[]),$===void 0&&($=new Ko),oe===void 0&&(oe=[]),this.registry=g,this.path=z,this.key=z.map(function(ye){return"["+ye+"]"}).join(""),this.scope=$,this.errors=oe,this.expectedType=V};ho.prototype.parse=function(g,z,V,$,oe){return oe===void 0&&(oe={}),z?this.concat(z,V,$)._parse(g,oe):this._parse(g,oe)},ho.prototype._parse=function(g,z){(g===null||typeof g=="string"||typeof g=="boolean"||typeof g=="number")&&(g=["literal",g]);function V(Xt,br,Or){return Or==="assert"?new Eo(br,[Xt]):Or==="coerce"?new sa(br,[Xt]):Xt}if(Array.isArray(g)){if(g.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var $=g[0];if(typeof $!="string")return this.error("Expression name must be a string, but found "+typeof $+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var oe=this.registry[$];if(oe){var ye=oe.parse(g,this);if(!ye)return null;if(this.expectedType){var We=this.expectedType,xt=ye.type;if((We.kind==="string"||We.kind==="number"||We.kind==="boolean"||We.kind==="object"||We.kind==="array")&&xt.kind==="value")ye=V(ye,We,z.typeAnnotation||"assert");else if((We.kind==="color"||We.kind==="formatted"||We.kind==="resolvedImage")&&(xt.kind==="value"||xt.kind==="string"))ye=V(ye,We,z.typeAnnotation||"coerce");else if(this.checkSubtype(We,xt))return null}if(!(ye instanceof $n)&&ye.type.kind!=="resolvedImage"&&gs(ye)){var Rt=new Na;try{ye=new $n(ye.type,ye.evaluate(Rt))}catch(Xt){return this.error(Xt.message),null}}return ye}return this.error('Unknown expression "'+$+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof g=="undefined"?this.error("'undefined' value invalid. Use null instead."):typeof g=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof g+" instead.")},ho.prototype.concat=function(g,z,V){var $=typeof g=="number"?this.path.concat(g):this.path,oe=V?this.scope.concat(V):this.scope;return new ho(this.registry,$,z||null,oe,this.errors)},ho.prototype.error=function(g){for(var z=[],V=arguments.length-1;V-- >0;)z[V]=arguments[V+1];var $=""+this.key+z.map(function(oe){return"["+oe+"]"}).join("");this.errors.push(new Ba($,g))},ho.prototype.checkSubtype=function(g,z){var V=Go(g,z);return V&&this.error(V),V};function gs(y){if(y instanceof Qs)return gs(y.boundExpression);if(y instanceof tn&&y.name==="error")return!1;if(y instanceof to)return!1;if(y instanceof Ds)return!1;var g=y instanceof sa||y instanceof Eo,z=!0;return y.eachChild(function(V){g?z=z&&gs(V):z=z&&V instanceof $n}),z?fl(y)&&Ma(y,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function Vo(y,g){for(var z=y.length-1,V=0,$=z,oe=0,ye,We;V<=$;)if(oe=Math.floor((V+$)/2),ye=y[oe],We=y[oe+1],ye<=g){if(oe===z||gg)$=oe-1;else throw new Ka("Input is not a number.");return 0}var Do=function(g,z,V){this.type=g,this.input=z,this.labels=[],this.outputs=[];for(var $=0,oe=V;$=We)return z.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Rt);var br=z.parse(xt,Xt,oe);if(!br)return null;oe=oe||br.type,$.push([We,br])}return new Do(oe,V,$)},Do.prototype.evaluate=function(g){var z=this.labels,V=this.outputs;if(z.length===1)return V[0].evaluate(g);var $=this.input.evaluate(g);if($<=z[0])return V[0].evaluate(g);var oe=z.length;if($>=z[oe-1])return V[oe-1].evaluate(g);var ye=Vo(z,$);return V[ye].evaluate(g)},Do.prototype.eachChild=function(g){g(this.input);for(var z=0,V=this.outputs;z0&&g.push(this.labels[z]),g.push(this.outputs[z].serialize());return g};function Lo(y,g,z){return y*(1-z)+g*z}function xs(y,g,z){return new ha(Lo(y.r,g.r,z),Lo(y.g,g.g,z),Lo(y.b,g.b,z),Lo(y.a,g.a,z))}function ks(y,g,z){return y.map(function(V,$){return Lo(V,g[$],z)})}var Ea=Object.freeze({__proto__:null,number:Lo,color:xs,array:ks}),Jn=.95047,Oo=1,rl=1.08883,Gs=4/29,bs=6/29,zs=3*bs*bs,$o=bs*bs*bs,Aa=Math.PI/180,os=180/Math.PI;function _l(y){return y>$o?Math.pow(y,1/3):y/zs+Gs}function Ss(y){return y>bs?y*y*y:zs*(y-Gs)}function po(y){return 255*(y<=.0031308?12.92*y:1.055*Math.pow(y,1/2.4)-.055)}function go(y){return y/=255,y<=.04045?y/12.92:Math.pow((y+.055)/1.055,2.4)}function ss(y){var g=go(y.r),z=go(y.g),V=go(y.b),$=_l((.4124564*g+.3575761*z+.1804375*V)/Jn),oe=_l((.2126729*g+.7151522*z+.072175*V)/Oo),ye=_l((.0193339*g+.119192*z+.9503041*V)/rl);return{l:116*oe-16,a:500*($-oe),b:200*(oe-ye),alpha:y.a}}function qo(y){var g=(y.l+16)/116,z=isNaN(y.a)?g:g+y.a/500,V=isNaN(y.b)?g:g-y.b/200;return g=Oo*Ss(g),z=Jn*Ss(z),V=rl*Ss(V),new ha(po(3.2404542*z-1.5371385*g-.4985314*V),po(-.969266*z+1.8760108*g+.041556*V),po(.0556434*z-.2040259*g+1.0572252*V),y.alpha)}function zo(y,g,z){return{l:Lo(y.l,g.l,z),a:Lo(y.a,g.a,z),b:Lo(y.b,g.b,z),alpha:Lo(y.alpha,g.alpha,z)}}function io(y){var g=ss(y),z=g.l,V=g.a,$=g.b,oe=Math.atan2($,V)*os;return{h:oe<0?oe+360:oe,c:Math.sqrt(V*V+$*$),l:z,alpha:y.a}}function Io(y){var g=y.h*Aa,z=y.c,V=y.l;return qo({l:V,a:Math.cos(g)*z,b:Math.sin(g)*z,alpha:y.alpha})}function Da(y,g,z){var V=g-y;return y+z*(V>180||V<-180?V-360*Math.round(V/360):V)}function vs(y,g,z){return{h:Da(y.h,g.h,z),c:Lo(y.c,g.c,z),l:Lo(y.l,g.l,z),alpha:Lo(y.alpha,g.alpha,z)}}var fs={forward:ss,reverse:qo,interpolate:zo},cl={forward:io,reverse:Io,interpolate:vs},el=Object.freeze({__proto__:null,lab:fs,hcl:cl}),Hs=function(g,z,V,$,oe){this.type=g,this.operator=z,this.interpolation=V,this.input=$,this.labels=[],this.outputs=[];for(var ye=0,We=oe;ye1}))return z.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);$={name:"cubic-bezier",controlPoints:xt}}else return z.error("Unknown interpolation type "+String($[0]),1,0);if(g.length-1<4)return z.error("Expected at least 4 arguments, but found only "+(g.length-1)+".");if((g.length-1)%2!==0)return z.error("Expected an even number of arguments.");if(oe=z.parse(oe,2,Wi),!oe)return null;var Rt=[],Xt=null;V==="interpolate-hcl"||V==="interpolate-lab"?Xt=vn:z.expectedType&&z.expectedType.kind!=="value"&&(Xt=z.expectedType);for(var br=0;br=Or)return z.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',ai);var Wn=z.parse(Pr,qi,Xt);if(!Wn)return null;Xt=Xt||Wn.type,Rt.push([Or,Wn])}return Xt.kind!=="number"&&Xt.kind!=="color"&&!(Xt.kind==="array"&&Xt.itemType.kind==="number"&&typeof Xt.N=="number")?z.error("Type "+No(Xt)+" is not interpolatable."):new Hs(Xt,V,$,oe,Rt)},Hs.prototype.evaluate=function(g){var z=this.labels,V=this.outputs;if(z.length===1)return V[0].evaluate(g);var $=this.input.evaluate(g);if($<=z[0])return V[0].evaluate(g);var oe=z.length;if($>=z[oe-1])return V[oe-1].evaluate(g);var ye=Vo(z,$),We=z[ye],xt=z[ye+1],Rt=Hs.interpolationFactor(this.interpolation,$,We,xt),Xt=V[ye].evaluate(g),br=V[ye+1].evaluate(g);return this.operator==="interpolate"?Ea[this.type.kind.toLowerCase()](Xt,br,Rt):this.operator==="interpolate-hcl"?cl.reverse(cl.interpolate(cl.forward(Xt),cl.forward(br),Rt)):fs.reverse(fs.interpolate(fs.forward(Xt),fs.forward(br),Rt))},Hs.prototype.eachChild=function(g){g(this.input);for(var z=0,V=this.outputs;z=V.length)throw new Ka("Array index out of bounds: "+z+" > "+(V.length-1)+".");if(z!==Math.floor(z))throw new Ka("Array index must be an integer, but found "+z+" instead.");return V[z]},hl.prototype.eachChild=function(g){g(this.index),g(this.input)},hl.prototype.outputDefined=function(){return!1},hl.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Fa=function(g,z){this.type=Qa,this.needle=g,this.haystack=z};Fa.parse=function(g,z){if(g.length!==3)return z.error("Expected 2 arguments, but found "+(g.length-1)+" instead.");var V=z.parse(g[1],1,la),$=z.parse(g[2],2,la);return!V||!$?null:Ys(V.type,[Qa,Sa,Wi,Qo,la])?new Fa(V,$):z.error("Expected first argument to be of type boolean, string, number or null, but found "+No(V.type)+" instead")},Fa.prototype.evaluate=function(g){var z=this.needle.evaluate(g),V=this.haystack.evaluate(g);if(!V)return!1;if(!qs(z,["boolean","string","number","null"]))throw new Ka("Expected first argument to be of type boolean, string, number or null, but found "+No(Xn(z))+" instead.");if(!qs(V,["string","array"]))throw new Ka("Expected second argument to be of type array or string, but found "+No(Xn(V))+" instead.");return V.indexOf(z)>=0},Fa.prototype.eachChild=function(g){g(this.needle),g(this.haystack)},Fa.prototype.outputDefined=function(){return!0},Fa.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Ms=function(g,z,V){this.type=Wi,this.needle=g,this.haystack=z,this.fromIndex=V};Ms.parse=function(g,z){if(g.length<=2||g.length>=5)return z.error("Expected 3 or 4 arguments, but found "+(g.length-1)+" instead.");var V=z.parse(g[1],1,la),$=z.parse(g[2],2,la);if(!V||!$)return null;if(!Ys(V.type,[Qa,Sa,Wi,Qo,la]))return z.error("Expected first argument to be of type boolean, string, number or null, but found "+No(V.type)+" instead");if(g.length===4){var oe=z.parse(g[3],3,Wi);return oe?new Ms(V,$,oe):null}else return new Ms(V,$)},Ms.prototype.evaluate=function(g){var z=this.needle.evaluate(g),V=this.haystack.evaluate(g);if(!qs(z,["boolean","string","number","null"]))throw new Ka("Expected first argument to be of type boolean, string, number or null, but found "+No(Xn(z))+" instead.");if(!qs(V,["string","array"]))throw new Ka("Expected second argument to be of type array or string, but found "+No(Xn(V))+" instead.");if(this.fromIndex){var $=this.fromIndex.evaluate(g);return V.indexOf(z,$)}return V.indexOf(z)},Ms.prototype.eachChild=function(g){g(this.needle),g(this.haystack),this.fromIndex&&g(this.fromIndex)},Ms.prototype.outputDefined=function(){return!1},Ms.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var g=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),g]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var jo=function(g,z,V,$,oe,ye){this.inputType=g,this.type=z,this.input=V,this.cases=$,this.outputs=oe,this.otherwise=ye};jo.parse=function(g,z){if(g.length<5)return z.error("Expected at least 4 arguments, but found only "+(g.length-1)+".");if(g.length%2!==1)return z.error("Expected an even number of arguments.");var V,$;z.expectedType&&z.expectedType.kind!=="value"&&($=z.expectedType);for(var oe={},ye=[],We=2;WeNumber.MAX_SAFE_INTEGER)return Xt.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof Pr=="number"&&Math.floor(Pr)!==Pr)return Xt.error("Numeric branch labels must be integer values.");if(!V)V=Xn(Pr);else if(Xt.checkSubtype(V,Xn(Pr)))return null;if(typeof oe[String(Pr)]!="undefined")return Xt.error("Branch labels must be unique.");oe[String(Pr)]=ye.length}var ai=z.parse(Rt,We,$);if(!ai)return null;$=$||ai.type,ye.push(ai)}var qi=z.parse(g[1],1,la);if(!qi)return null;var Wn=z.parse(g[g.length-1],g.length-1,$);return!Wn||qi.type.kind!=="value"&&z.concat(1).checkSubtype(V,qi.type)?null:new jo(V,$,qi,oe,ye,Wn)},jo.prototype.evaluate=function(g){var z=this.input.evaluate(g),V=Xn(z)===this.inputType&&this.outputs[this.cases[z]]||this.otherwise;return V.evaluate(g)},jo.prototype.eachChild=function(g){g(this.input),this.outputs.forEach(g),g(this.otherwise)},jo.prototype.outputDefined=function(){return this.outputs.every(function(g){return g.outputDefined()})&&this.otherwise.outputDefined()},jo.prototype.serialize=function(){for(var g=this,z=["match",this.input.serialize()],V=Object.keys(this.cases).sort(),$=[],oe={},ye=0,We=V;ye=5)return z.error("Expected 3 or 4 arguments, but found "+(g.length-1)+" instead.");var V=z.parse(g[1],1,la),$=z.parse(g[2],2,Wi);if(!V||!$)return null;if(!Ys(V.type,[mo(la),Sa,la]))return z.error("Expected first argument to be of type array or string, but found "+No(V.type)+" instead");if(g.length===4){var oe=z.parse(g[3],3,Wi);return oe?new Is(V.type,V,$,oe):null}else return new Is(V.type,V,$)},Is.prototype.evaluate=function(g){var z=this.input.evaluate(g),V=this.beginIndex.evaluate(g);if(!qs(z,["string","array"]))throw new Ka("Expected first argument to be of type array or string, but found "+No(Xn(z))+" instead.");if(this.endIndex){var $=this.endIndex.evaluate(g);return z.slice(V,$)}return z.slice(V)},Is.prototype.eachChild=function(g){g(this.input),g(this.beginIndex),this.endIndex&&g(this.endIndex)},Is.prototype.outputDefined=function(){return!1},Is.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var g=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),g]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function Bs(y,g){return y==="=="||y==="!="?g.kind==="boolean"||g.kind==="string"||g.kind==="number"||g.kind==="null"||g.kind==="value":g.kind==="string"||g.kind==="number"||g.kind==="value"}function Tt(y,g,z){return g===z}function Vt(y,g,z){return g!==z}function wr(y,g,z){return gz}function Fr(y,g,z){return g<=z}function gi(y,g,z){return g>=z}function Ti(y,g,z,V){return V.compare(g,z)===0}function ki(y,g,z,V){return!Ti(y,g,z,V)}function Ji(y,g,z,V){return V.compare(g,z)<0}function Fn(y,g,z,V){return V.compare(g,z)>0}function Pi(y,g,z,V){return V.compare(g,z)<=0}function hi(y,g,z,V){return V.compare(g,z)>=0}function Li(y,g,z){var V=y!=="=="&&y!=="!=";return function(){function $(oe,ye,We){this.type=Qa,this.lhs=oe,this.rhs=ye,this.collator=We,this.hasUntypedArgument=oe.type.kind==="value"||ye.type.kind==="value"}return $.parse=function(ye,We){if(ye.length!==3&&ye.length!==4)return We.error("Expected two or three arguments.");var xt=ye[0],Rt=We.parse(ye[1],1,la);if(!Rt)return null;if(!Bs(xt,Rt.type))return We.concat(1).error('"'+xt+`" comparisons are not supported for type '`+No(Rt.type)+"'.");var Xt=We.parse(ye[2],2,la);if(!Xt)return null;if(!Bs(xt,Xt.type))return We.concat(2).error('"'+xt+`" comparisons are not supported for type '`+No(Xt.type)+"'.");if(Rt.type.kind!==Xt.type.kind&&Rt.type.kind!=="value"&&Xt.type.kind!=="value")return We.error("Cannot compare types '"+No(Rt.type)+"' and '"+No(Xt.type)+"'.");V&&(Rt.type.kind==="value"&&Xt.type.kind!=="value"?Rt=new Eo(Xt.type,[Rt]):Rt.type.kind!=="value"&&Xt.type.kind==="value"&&(Xt=new Eo(Rt.type,[Xt])));var br=null;if(ye.length===4){if(Rt.type.kind!=="string"&&Xt.type.kind!=="string"&&Rt.type.kind!=="value"&&Xt.type.kind!=="value")return We.error("Cannot use collator to compare non-string types.");if(br=We.parse(ye[3],3,As),!br)return null}return new $(Rt,Xt,br)},$.prototype.evaluate=function(ye){var We=this.lhs.evaluate(ye),xt=this.rhs.evaluate(ye);if(V&&this.hasUntypedArgument){var Rt=Xn(We),Xt=Xn(xt);if(Rt.kind!==Xt.kind||!(Rt.kind==="string"||Rt.kind==="number"))throw new Ka('Expected arguments for "'+y+'" to be (string, string) or (number, number), but found ('+Rt.kind+", "+Xt.kind+") instead.")}if(this.collator&&!V&&this.hasUntypedArgument){var br=Xn(We),Or=Xn(xt);if(br.kind!=="string"||Or.kind!=="string")return g(ye,We,xt)}return this.collator?z(ye,We,xt,this.collator.evaluate(ye)):g(ye,We,xt)},$.prototype.eachChild=function(ye){ye(this.lhs),ye(this.rhs),this.collator&&ye(this.collator)},$.prototype.outputDefined=function(){return!0},$.prototype.serialize=function(){var ye=[y];return this.eachChild(function(We){ye.push(We.serialize())}),ye},$}()}var Si=Li("==",Tt,Ti),Gn=Li("!=",Vt,ki),ta=Li("<",wr,Ji),ya=Li(">",yr,Fn),ia=Li("<=",Fr,Pi),pa=Li(">=",gi,hi),va=function(g,z,V,$,oe){this.type=Sa,this.number=g,this.locale=z,this.currency=V,this.minFractionDigits=$,this.maxFractionDigits=oe};va.parse=function(g,z){if(g.length!==3)return z.error("Expected two arguments.");var V=z.parse(g[1],1,Wi);if(!V)return null;var $=g[2];if(typeof $!="object"||Array.isArray($))return z.error("NumberFormat options argument must be an object.");var oe=null;if($.locale&&(oe=z.parse($.locale,1,Sa),!oe))return null;var ye=null;if($.currency&&(ye=z.parse($.currency,1,Sa),!ye))return null;var We=null;if($["min-fraction-digits"]&&(We=z.parse($["min-fraction-digits"],1,Wi),!We))return null;var xt=null;return $["max-fraction-digits"]&&(xt=z.parse($["max-fraction-digits"],1,Wi),!xt)?null:new va(V,oe,ye,We,xt)},va.prototype.evaluate=function(g){return new Intl.NumberFormat(this.locale?this.locale.evaluate(g):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(g):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(g):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(g):void 0}).format(this.number.evaluate(g))},va.prototype.eachChild=function(g){g(this.number),this.locale&&g(this.locale),this.currency&&g(this.currency),this.minFractionDigits&&g(this.minFractionDigits),this.maxFractionDigits&&g(this.maxFractionDigits)},va.prototype.outputDefined=function(){return!1},va.prototype.serialize=function(){var g={};return this.locale&&(g.locale=this.locale.serialize()),this.currency&&(g.currency=this.currency.serialize()),this.minFractionDigits&&(g["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(g["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),g]};var zn=function(g){this.type=Wi,this.input=g};zn.parse=function(g,z){if(g.length!==2)return z.error("Expected 1 argument, but found "+(g.length-1)+" instead.");var V=z.parse(g[1],1);return V?V.type.kind!=="array"&&V.type.kind!=="string"&&V.type.kind!=="value"?z.error("Expected argument of type string or array, but found "+No(V.type)+" instead."):new zn(V):null},zn.prototype.evaluate=function(g){var z=this.input.evaluate(g);if(typeof z=="string")return z.length;if(Array.isArray(z))return z.length;throw new Ka("Expected value to be of type string or array, but found "+No(Xn(z))+" instead.")},zn.prototype.eachChild=function(g){g(this.input)},zn.prototype.outputDefined=function(){return!1},zn.prototype.serialize=function(){var g=["length"];return this.eachChild(function(z){g.push(z.serialize())}),g};var is={"==":Si,"!=":Gn,">":ya,"<":ta,">=":pa,"<=":ia,array:Eo,at:hl,boolean:Eo,case:Rs,coalesce:tl,collator:to,format:Ja,image:lo,in:Fa,"index-of":Ms,interpolate:Hs,"interpolate-hcl":Hs,"interpolate-lab":Hs,length:zn,let:Fs,literal:$n,match:jo,number:Eo,"number-format":va,object:Eo,slice:Is,step:Do,string:Eo,"to-boolean":sa,"to-color":sa,"to-number":sa,"to-string":sa,var:Qs,within:Ds};function Cs(y,g){var z=g[0],V=g[1],$=g[2],oe=g[3];z=z.evaluate(y),V=V.evaluate(y),$=$.evaluate(y);var ye=oe?oe.evaluate(y):1,We=wo(z,V,$,ye);if(We)throw new Ka(We);return new ha(z/255*ye,V/255*ye,$/255*ye,ye)}function Ks(y,g){return y in g}function dl(y,g){var z=g[y];return typeof z=="undefined"?null:z}function xl(y,g,z,V){for(;z<=V;){var $=z+V>>1;if(g[$]===y)return!0;g[$]>y?V=$-1:z=$+1}return!1}function Ol(y){return{type:y}}tn.register(is,{error:[vo,[Sa],function(y,g){var z=g[0];throw new Ka(z.evaluate(y))}],typeof:[Sa,[la],function(y,g){var z=g[0];return No(Xn(z.evaluate(y)))}],"to-rgba":[mo(Wi,4),[vn],function(y,g){var z=g[0];return z.evaluate(y).toArray()}],rgb:[vn,[Wi,Wi,Wi],Cs],rgba:[vn,[Wi,Wi,Wi,Wi],Cs],has:{type:Qa,overloads:[[[Sa],function(y,g){var z=g[0];return Ks(z.evaluate(y),y.properties())}],[[Sa,da],function(y,g){var z=g[0],V=g[1];return Ks(z.evaluate(y),V.evaluate(y))}]]},get:{type:la,overloads:[[[Sa],function(y,g){var z=g[0];return dl(z.evaluate(y),y.properties())}],[[Sa,da],function(y,g){var z=g[0],V=g[1];return dl(z.evaluate(y),V.evaluate(y))}]]},"feature-state":[la,[Sa],function(y,g){var z=g[0];return dl(z.evaluate(y),y.featureState||{})}],properties:[da,[],function(y){return y.properties()}],"geometry-type":[Sa,[],function(y){return y.geometryType()}],id:[la,[],function(y){return y.id()}],zoom:[Wi,[],function(y){return y.globals.zoom}],"heatmap-density":[Wi,[],function(y){return y.globals.heatmapDensity||0}],"line-progress":[Wi,[],function(y){return y.globals.lineProgress||0}],accumulated:[la,[],function(y){return y.globals.accumulated===void 0?null:y.globals.accumulated}],"+":[Wi,Ol(Wi),function(y,g){for(var z=0,V=0,$=g;V<$.length;V+=1){var oe=$[V];z+=oe.evaluate(y)}return z}],"*":[Wi,Ol(Wi),function(y,g){for(var z=1,V=0,$=g;V<$.length;V+=1){var oe=$[V];z*=oe.evaluate(y)}return z}],"-":{type:Wi,overloads:[[[Wi,Wi],function(y,g){var z=g[0],V=g[1];return z.evaluate(y)-V.evaluate(y)}],[[Wi],function(y,g){var z=g[0];return-z.evaluate(y)}]]},"/":[Wi,[Wi,Wi],function(y,g){var z=g[0],V=g[1];return z.evaluate(y)/V.evaluate(y)}],"%":[Wi,[Wi,Wi],function(y,g){var z=g[0],V=g[1];return z.evaluate(y)%V.evaluate(y)}],ln2:[Wi,[],function(){return Math.LN2}],pi:[Wi,[],function(){return Math.PI}],e:[Wi,[],function(){return Math.E}],"^":[Wi,[Wi,Wi],function(y,g){var z=g[0],V=g[1];return Math.pow(z.evaluate(y),V.evaluate(y))}],sqrt:[Wi,[Wi],function(y,g){var z=g[0];return Math.sqrt(z.evaluate(y))}],log10:[Wi,[Wi],function(y,g){var z=g[0];return Math.log(z.evaluate(y))/Math.LN10}],ln:[Wi,[Wi],function(y,g){var z=g[0];return Math.log(z.evaluate(y))}],log2:[Wi,[Wi],function(y,g){var z=g[0];return Math.log(z.evaluate(y))/Math.LN2}],sin:[Wi,[Wi],function(y,g){var z=g[0];return Math.sin(z.evaluate(y))}],cos:[Wi,[Wi],function(y,g){var z=g[0];return Math.cos(z.evaluate(y))}],tan:[Wi,[Wi],function(y,g){var z=g[0];return Math.tan(z.evaluate(y))}],asin:[Wi,[Wi],function(y,g){var z=g[0];return Math.asin(z.evaluate(y))}],acos:[Wi,[Wi],function(y,g){var z=g[0];return Math.acos(z.evaluate(y))}],atan:[Wi,[Wi],function(y,g){var z=g[0];return Math.atan(z.evaluate(y))}],min:[Wi,Ol(Wi),function(y,g){return Math.min.apply(Math,g.map(function(z){return z.evaluate(y)}))}],max:[Wi,Ol(Wi),function(y,g){return Math.max.apply(Math,g.map(function(z){return z.evaluate(y)}))}],abs:[Wi,[Wi],function(y,g){var z=g[0];return Math.abs(z.evaluate(y))}],round:[Wi,[Wi],function(y,g){var z=g[0],V=z.evaluate(y);return V<0?-Math.round(-V):Math.round(V)}],floor:[Wi,[Wi],function(y,g){var z=g[0];return Math.floor(z.evaluate(y))}],ceil:[Wi,[Wi],function(y,g){var z=g[0];return Math.ceil(z.evaluate(y))}],"filter-==":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1];return y.properties()[z.value]===V.value}],"filter-id-==":[Qa,[la],function(y,g){var z=g[0];return y.id()===z.value}],"filter-type-==":[Qa,[Sa],function(y,g){var z=g[0];return y.geometryType()===z.value}],"filter-<":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1],$=y.properties()[z.value],oe=V.value;return typeof $==typeof oe&&$":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1],$=y.properties()[z.value],oe=V.value;return typeof $==typeof oe&&$>oe}],"filter-id->":[Qa,[la],function(y,g){var z=g[0],V=y.id(),$=z.value;return typeof V==typeof $&&V>$}],"filter-<=":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1],$=y.properties()[z.value],oe=V.value;return typeof $==typeof oe&&$<=oe}],"filter-id-<=":[Qa,[la],function(y,g){var z=g[0],V=y.id(),$=z.value;return typeof V==typeof $&&V<=$}],"filter->=":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1],$=y.properties()[z.value],oe=V.value;return typeof $==typeof oe&&$>=oe}],"filter-id->=":[Qa,[la],function(y,g){var z=g[0],V=y.id(),$=z.value;return typeof V==typeof $&&V>=$}],"filter-has":[Qa,[la],function(y,g){var z=g[0];return z.value in y.properties()}],"filter-has-id":[Qa,[],function(y){return y.id()!==null&&y.id()!==void 0}],"filter-type-in":[Qa,[mo(Sa)],function(y,g){var z=g[0];return z.value.indexOf(y.geometryType())>=0}],"filter-id-in":[Qa,[mo(la)],function(y,g){var z=g[0];return z.value.indexOf(y.id())>=0}],"filter-in-small":[Qa,[Sa,mo(la)],function(y,g){var z=g[0],V=g[1];return V.value.indexOf(y.properties()[z.value])>=0}],"filter-in-large":[Qa,[Sa,mo(la)],function(y,g){var z=g[0],V=g[1];return xl(y.properties()[z.value],V.value,0,V.value.length-1)}],all:{type:Qa,overloads:[[[Qa,Qa],function(y,g){var z=g[0],V=g[1];return z.evaluate(y)&&V.evaluate(y)}],[Ol(Qa),function(y,g){for(var z=0,V=g;z-1}function ja(y){return!!y.expression&&y.expression.interpolated}function ns(y){return y instanceof Number?"number":y instanceof String?"string":y instanceof Boolean?"boolean":Array.isArray(y)?"array":y===null?"null":typeof y}function Js(y){return typeof y=="object"&&y!==null&&!Array.isArray(y)}function cs(y){return y}function sl(y,g){var z=g.type==="color",V=y.stops&&typeof y.stops[0][0]=="object",$=V||y.property!==void 0,oe=V||!$,ye=y.type||(ja(g)?"exponential":"interval");if(z&&(y=Ha({},y),y.stops&&(y.stops=y.stops.map(function(Tl){return[Tl[0],ha.parse(Tl[1])]})),y.default?y.default=ha.parse(y.default):y.default=ha.parse(g.default)),y.colorSpace&&y.colorSpace!=="rgb"&&!el[y.colorSpace])throw new Error("Unknown color space: "+y.colorSpace);var We,xt,Rt;if(ye==="exponential")We=Ml;else if(ye==="interval")We=zl;else if(ye==="categorical"){We=il,xt=Object.create(null);for(var Xt=0,br=y.stops;Xt=y.stops[V-1][0])return y.stops[V-1][1];var $=Vo(y.stops.map(function(oe){return oe[0]}),z);return y.stops[$][1]}function Ml(y,g,z){var V=y.base!==void 0?y.base:1;if(ns(z)!=="number")return ll(y.default,g.default);var $=y.stops.length;if($===1||z<=y.stops[0][0])return y.stops[0][1];if(z>=y.stops[$-1][0])return y.stops[$-1][1];var oe=Vo(y.stops.map(function(br){return br[0]}),z),ye=Al(z,V,y.stops[oe][0],y.stops[oe+1][0]),We=y.stops[oe][1],xt=y.stops[oe+1][1],Rt=Ea[g.type]||cs;if(y.colorSpace&&y.colorSpace!=="rgb"){var Xt=el[y.colorSpace];Rt=function(br,Or){return Xt.reverse(Xt.interpolate(Xt.forward(br),Xt.forward(Or),ye))}}return typeof We.evaluate=="function"?{evaluate:function(){for(var Or=[],Pr=arguments.length;Pr--;)Or[Pr]=arguments[Pr];var ai=We.evaluate.apply(void 0,Or),qi=xt.evaluate.apply(void 0,Or);if(!(ai===void 0||qi===void 0))return Rt(ai,qi,ye)}}:Rt(We,xt,ye)}function Rl(y,g,z){return g.type==="color"?z=ha.parse(z):g.type==="formatted"?z=_n.fromString(z.toString()):g.type==="resolvedImage"?z=Vn.fromString(z.toString()):ns(z)!==g.type&&(g.type!=="enum"||!g.values[z])&&(z=void 0),ll(z,y.default,g.default)}function Al(y,g,z,V){var $=V-z,oe=y-z;return $===0?0:g===1?oe/$:(Math.pow(g,oe)-1)/(Math.pow(g,$)-1)}var Ll=function(g,z){this.expression=g,this._warningHistory={},this._evaluator=new Na,this._defaultValue=z?ee(z):null,this._enumValues=z&&z.type==="enum"?z.values:null};Ll.prototype.evaluateWithoutErrorHandling=function(g,z,V,$,oe,ye){return this._evaluator.globals=g,this._evaluator.feature=z,this._evaluator.featureState=V,this._evaluator.canonical=$,this._evaluator.availableImages=oe||null,this._evaluator.formattedSection=ye,this.expression.evaluate(this._evaluator)},Ll.prototype.evaluate=function(g,z,V,$,oe,ye){this._evaluator.globals=g,this._evaluator.feature=z||null,this._evaluator.featureState=V||null,this._evaluator.canonical=$,this._evaluator.availableImages=oe||null,this._evaluator.formattedSection=ye||null;try{var We=this.expression.evaluate(this._evaluator);if(We==null||typeof We=="number"&&We!==We)return this._defaultValue;if(this._enumValues&&!(We in this._enumValues))throw new Ka("Expected value to be one of "+Object.keys(this._enumValues).map(function(xt){return JSON.stringify(xt)}).join(", ")+", but found "+JSON.stringify(We)+" instead.");return We}catch(xt){return this._warningHistory[xt.message]||(this._warningHistory[xt.message]=!0,typeof console!="undefined"&&console.warn(xt.message)),this._defaultValue}};function ms(y){return Array.isArray(y)&&y.length>0&&typeof y[0]=="string"&&y[0]in is}function Os(y,g){var z=new ho(is,[],g?Q(g):void 0),V=z.parse(y,void 0,void 0,void 0,g&&g.type==="string"?{typeAnnotation:"coerce"}:void 0);return V?bl(new Ll(V,g)):eu(z.errors)}var Xl=function(g,z){this.kind=g,this._styleExpression=z,this.isStateDependent=g!=="constant"&&!as(z.expression)};Xl.prototype.evaluateWithoutErrorHandling=function(g,z,V,$,oe,ye){return this._styleExpression.evaluateWithoutErrorHandling(g,z,V,$,oe,ye)},Xl.prototype.evaluate=function(g,z,V,$,oe,ye){return this._styleExpression.evaluate(g,z,V,$,oe,ye)};var Gl=function(g,z,V,$){this.kind=g,this.zoomStops=V,this._styleExpression=z,this.isStateDependent=g!=="camera"&&!as(z.expression),this.interpolationType=$};Gl.prototype.evaluateWithoutErrorHandling=function(g,z,V,$,oe,ye){return this._styleExpression.evaluateWithoutErrorHandling(g,z,V,$,oe,ye)},Gl.prototype.evaluate=function(g,z,V,$,oe,ye){return this._styleExpression.evaluate(g,z,V,$,oe,ye)},Gl.prototype.interpolationFactor=function(g,z,V){return this.interpolationType?Hs.interpolationFactor(this.interpolationType,g,z,V):0};function Ul(y,g){if(y=Os(y,g),y.result==="error")return y;var z=y.value.expression,V=fl(z);if(!V&&!Zl(g))return eu([new Ba("","data expressions not supported")]);var $=Ma(z,["zoom"]);if(!$&&!Vl(g))return eu([new Ba("","zoom expressions not supported")]);var oe=q(z);if(!oe&&!$)return eu([new Ba("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(oe instanceof Ba)return eu([oe]);if(oe instanceof Hs&&!ja(g))return eu([new Ba("",'"interpolate" expressions cannot be used with this property')]);if(!oe)return bl(V?new Xl("constant",y.value):new Xl("source",y.value));var ye=oe instanceof Hs?oe.interpolation:void 0;return bl(V?new Gl("camera",y.value,oe.labels,ye):new Gl("composite",y.value,oe.labels,ye))}var le=function(g,z){this._parameters=g,this._specification=z,Ha(this,sl(this._parameters,this._specification))};le.deserialize=function(g){return new le(g._parameters,g._specification)},le.serialize=function(g){return{_parameters:g._parameters,_specification:g._specification}};function w(y,g){if(Js(y))return new le(y,g);if(ms(y)){var z=Ul(y,g);if(z.result==="error")throw new Error(z.value.map(function($){return $.key+": "+$.message}).join(", "));return z.value}else{var V=y;return typeof y=="string"&&g.type==="color"&&(V=ha.parse(y)),{kind:"constant",evaluate:function(){return V}}}}function q(y){var g=null;if(y instanceof Fs)g=q(y.result);else if(y instanceof tl)for(var z=0,V=y.args;zV.maximum?[new gn(g,z,z+" is greater than the maximum value "+V.maximum)]:[]}function yt(y){var g=y.valueSpec,z=Sn(y.value.type),V,$={},oe,ye,We=z!=="categorical"&&y.value.property===void 0,xt=!We,Rt=ns(y.value.stops)==="array"&&ns(y.value.stops[0])==="array"&&ns(y.value.stops[0][0])==="object",Xt=ue({key:y.key,value:y.value,valueSpec:y.styleSpec.function,style:y.style,styleSpec:y.styleSpec,objectElementValidators:{stops:br,default:ai}});return z==="identity"&&We&&Xt.push(new gn(y.key,y.value,'missing required property "property"')),z!=="identity"&&!y.value.stops&&Xt.push(new gn(y.key,y.value,'missing required property "stops"')),z==="exponential"&&y.valueSpec.expression&&!ja(y.valueSpec)&&Xt.push(new gn(y.key,y.value,"exponential functions not supported")),y.styleSpec.$version>=8&&(xt&&!Zl(y.valueSpec)?Xt.push(new gn(y.key,y.value,"property functions not supported")):We&&!Vl(y.valueSpec)&&Xt.push(new gn(y.key,y.value,"zoom functions not supported"))),(z==="categorical"||Rt)&&y.value.property===void 0&&Xt.push(new gn(y.key,y.value,'"property" property is required')),Xt;function br(qi){if(z==="identity")return[new gn(qi.key,qi.value,'identity function may not have a "stops" property')];var Wn=[],bn=qi.value;return Wn=Wn.concat(Ve({key:qi.key,value:bn,valueSpec:qi.valueSpec,style:qi.style,styleSpec:qi.styleSpec,arrayElementValidator:Or})),ns(bn)==="array"&&bn.length===0&&Wn.push(new gn(qi.key,bn,"array must have at least one stop")),Wn}function Or(qi){var Wn=[],bn=qi.value,bo=qi.key;if(ns(bn)!=="array")return[new gn(bo,bn,"array expected, "+ns(bn)+" found")];if(bn.length!==2)return[new gn(bo,bn,"array length 2 expected, length "+bn.length+" found")];if(Rt){if(ns(bn[0])!=="object")return[new gn(bo,bn,"object expected, "+ns(bn[0])+" found")];if(bn[0].zoom===void 0)return[new gn(bo,bn,"object stop key must have zoom")];if(bn[0].value===void 0)return[new gn(bo,bn,"object stop key must have value")];if(ye&&ye>Sn(bn[0].zoom))return[new gn(bo,bn[0].zoom,"stop zoom values must appear in ascending order")];Sn(bn[0].zoom)!==ye&&(ye=Sn(bn[0].zoom),oe=void 0,$={}),Wn=Wn.concat(ue({key:bo+"[0]",value:bn[0],valueSpec:{zoom:{}},style:qi.style,styleSpec:qi.styleSpec,objectElementValidators:{zoom:et,value:Pr}}))}else Wn=Wn.concat(Pr({key:bo+"[0]",value:bn[0],valueSpec:{},style:qi.style,styleSpec:qi.styleSpec},bn));return ms(ao(bn[1]))?Wn.concat([new gn(bo+"[1]",bn[1],"expressions are not allowed in function stops.")]):Wn.concat(Sl({key:bo+"[1]",value:bn[1],valueSpec:g,style:qi.style,styleSpec:qi.styleSpec}))}function Pr(qi,Wn){var bn=ns(qi.value),bo=Sn(qi.value),ba=qi.value!==null?qi.value:Wn;if(!V)V=bn;else if(bn!==V)return[new gn(qi.key,ba,bn+" stop domain type must match previous stop domain type "+V)];if(bn!=="number"&&bn!=="string"&&bn!=="boolean")return[new gn(qi.key,ba,"stop domain value must be a number, string, or boolean")];if(bn!=="number"&&z!=="categorical"){var _o="number expected, "+bn+" found";return Zl(g)&&z===void 0&&(_o+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new gn(qi.key,ba,_o)]}return z==="categorical"&&bn==="number"&&(!isFinite(bo)||Math.floor(bo)!==bo)?[new gn(qi.key,ba,"integer expected, found "+bo)]:z!=="categorical"&&bn==="number"&&oe!==void 0&&bo=2&&y[1]!=="$id"&&y[1]!=="$type";case"in":return y.length>=3&&(typeof y[1]!="string"||Array.isArray(y[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return y.length!==3||Array.isArray(y[1])||Array.isArray(y[2]);case"any":case"all":for(var g=0,z=y.slice(1);gg?1:0}function Ge(y){if(!Array.isArray(y))return!1;if(y[0]==="within")return!0;for(var g=1;g"||g==="<="||g===">="?tt(y[1],y[2],g):g==="any"?vt(y.slice(1)):g==="all"?["all"].concat(y.slice(1).map(lt)):g==="none"?["all"].concat(y.slice(1).map(lt).map(cr)):g==="in"?Gt(y[1],y.slice(2)):g==="!in"?cr(Gt(y[1],y.slice(2))):g==="has"?nr(y[1]):g==="!has"?cr(nr(y[1])):g==="within"?y:!0;return z}function tt(y,g,z){switch(y){case"$type":return["filter-type-"+z,g];case"$id":return["filter-id-"+z,g];default:return["filter-"+z,y,g]}}function vt(y){return["any"].concat(y.map(lt))}function Gt(y,g){if(g.length===0)return!1;switch(y){case"$type":return["filter-type-in",["literal",g]];case"$id":return["filter-id-in",["literal",g]];default:return g.length>200&&!g.some(function(z){return typeof z!=typeof g[0]})?["filter-in-large",y,["literal",g.sort(qe)]]:["filter-in-small",y,["literal",g]]}}function nr(y){switch(y){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",y]}}function cr(y){return["!",y]}function Ar(y){return Vr(ao(y.value))?Dt(Ha({},y,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Rr(y)}function Rr(y){var g=y.value,z=y.key;if(ns(g)!=="array")return[new gn(z,g,"array expected, "+ns(g)+" found")];var V=y.styleSpec,$,oe=[];if(g.length<1)return[new gn(z,g,"filter array must have at least 1 element")];switch(oe=oe.concat(kr({key:z+"[0]",value:g[0],valueSpec:V.filter_operator,style:y.style,styleSpec:y.styleSpec})),Sn(g[0])){case"<":case"<=":case">":case">=":g.length>=2&&Sn(g[1])==="$type"&&oe.push(new gn(z,g,'"$type" cannot be use with operator "'+g[0]+'"'));case"==":case"!=":g.length!==3&&oe.push(new gn(z,g,'filter array for operator "'+g[0]+'" must have 3 elements'));case"in":case"!in":g.length>=2&&($=ns(g[1]),$!=="string"&&oe.push(new gn(z+"[1]",g[1],"string expected, "+$+" found")));for(var ye=2;ye=Xt[Pr+0]&&V>=Xt[Pr+1])?(ye[Or]=!0,oe.push(Rt[Or])):ye[Or]=!1}}},lf.prototype._forEachCell=function(y,g,z,V,$,oe,ye,We){for(var xt=this._convertToCellCoord(y),Rt=this._convertToCellCoord(g),Xt=this._convertToCellCoord(z),br=this._convertToCellCoord(V),Or=xt;Or<=Xt;Or++)for(var Pr=Rt;Pr<=br;Pr++){var ai=this.d*Pr+Or;if(!(We&&!We(this._convertFromCellCoord(Or),this._convertFromCellCoord(Pr),this._convertFromCellCoord(Or+1),this._convertFromCellCoord(Pr+1)))&&$.call(this,y,g,z,V,ai,oe,ye,We))return}},lf.prototype._convertFromCellCoord=function(y){return(y-this.padding)/this.scale},lf.prototype._convertToCellCoord=function(y){return Math.max(0,Math.min(this.d-1,Math.floor(y*this.scale)+this.padding))},lf.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var y=this.cells,g=Xu+this.cells.length+1+1,z=0,V=0;V=0)){var br=y[Xt];Rt[Xt]=tf[xt].shallow.indexOf(Xt)>=0?br:$e(br,g)}y instanceof Error&&(Rt.message=y.message)}if(Rt.$name)throw new Error("$name property is reserved for worker serialization logic.");return xt!=="Object"&&(Rt.$name=xt),Rt}throw new Error("can't serialize object of type "+typeof y)}function st(y){if(y==null||typeof y=="boolean"||typeof y=="number"||typeof y=="string"||y instanceof Boolean||y instanceof Number||y instanceof String||y instanceof Date||y instanceof RegExp||ze(y)||je(y)||ArrayBuffer.isView(y)||y instanceof xf)return y;if(Array.isArray(y))return y.map(st);if(typeof y=="object"){var g=y.$name||"Object",z=tf[g],V=z.klass;if(!V)throw new Error("can't deserialize unregistered class "+g);if(V.deserialize)return V.deserialize(y);for(var $=Object.create(V.prototype),oe=0,ye=Object.keys(y);oe=0?xt:st(xt)}}return $}throw new Error("can't deserialize object of type "+typeof y)}var jt=function(){this.first=!0};jt.prototype.update=function(g,z){var V=Math.floor(g);return this.first?(this.first=!1,this.lastIntegerZoom=V,this.lastIntegerZoomTime=0,this.lastZoom=g,this.lastFloorZoom=V,!0):(this.lastFloorZoom>V?(this.lastIntegerZoom=V+1,this.lastIntegerZoomTime=z):this.lastFloorZoom=128&&y<=255},Arabic:function(y){return y>=1536&&y<=1791},"Arabic Supplement":function(y){return y>=1872&&y<=1919},"Arabic Extended-A":function(y){return y>=2208&&y<=2303},"Hangul Jamo":function(y){return y>=4352&&y<=4607},"Unified Canadian Aboriginal Syllabics":function(y){return y>=5120&&y<=5759},Khmer:function(y){return y>=6016&&y<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(y){return y>=6320&&y<=6399},"General Punctuation":function(y){return y>=8192&&y<=8303},"Letterlike Symbols":function(y){return y>=8448&&y<=8527},"Number Forms":function(y){return y>=8528&&y<=8591},"Miscellaneous Technical":function(y){return y>=8960&&y<=9215},"Control Pictures":function(y){return y>=9216&&y<=9279},"Optical Character Recognition":function(y){return y>=9280&&y<=9311},"Enclosed Alphanumerics":function(y){return y>=9312&&y<=9471},"Geometric Shapes":function(y){return y>=9632&&y<=9727},"Miscellaneous Symbols":function(y){return y>=9728&&y<=9983},"Miscellaneous Symbols and Arrows":function(y){return y>=11008&&y<=11263},"CJK Radicals Supplement":function(y){return y>=11904&&y<=12031},"Kangxi Radicals":function(y){return y>=12032&&y<=12255},"Ideographic Description Characters":function(y){return y>=12272&&y<=12287},"CJK Symbols and Punctuation":function(y){return y>=12288&&y<=12351},Hiragana:function(y){return y>=12352&&y<=12447},Katakana:function(y){return y>=12448&&y<=12543},Bopomofo:function(y){return y>=12544&&y<=12591},"Hangul Compatibility Jamo":function(y){return y>=12592&&y<=12687},Kanbun:function(y){return y>=12688&&y<=12703},"Bopomofo Extended":function(y){return y>=12704&&y<=12735},"CJK Strokes":function(y){return y>=12736&&y<=12783},"Katakana Phonetic Extensions":function(y){return y>=12784&&y<=12799},"Enclosed CJK Letters and Months":function(y){return y>=12800&&y<=13055},"CJK Compatibility":function(y){return y>=13056&&y<=13311},"CJK Unified Ideographs Extension A":function(y){return y>=13312&&y<=19903},"Yijing Hexagram Symbols":function(y){return y>=19904&&y<=19967},"CJK Unified Ideographs":function(y){return y>=19968&&y<=40959},"Yi Syllables":function(y){return y>=40960&&y<=42127},"Yi Radicals":function(y){return y>=42128&&y<=42191},"Hangul Jamo Extended-A":function(y){return y>=43360&&y<=43391},"Hangul Syllables":function(y){return y>=44032&&y<=55215},"Hangul Jamo Extended-B":function(y){return y>=55216&&y<=55295},"Private Use Area":function(y){return y>=57344&&y<=63743},"CJK Compatibility Ideographs":function(y){return y>=63744&&y<=64255},"Arabic Presentation Forms-A":function(y){return y>=64336&&y<=65023},"Vertical Forms":function(y){return y>=65040&&y<=65055},"CJK Compatibility Forms":function(y){return y>=65072&&y<=65103},"Small Form Variants":function(y){return y>=65104&&y<=65135},"Arabic Presentation Forms-B":function(y){return y>=65136&&y<=65279},"Halfwidth and Fullwidth Forms":function(y){return y>=65280&&y<=65519}};function hr(y){for(var g=0,z=y;g=65097&&y<=65103)||_t["CJK Compatibility Ideographs"](y)||_t["CJK Compatibility"](y)||_t["CJK Radicals Supplement"](y)||_t["CJK Strokes"](y)||_t["CJK Symbols and Punctuation"](y)&&!(y>=12296&&y<=12305)&&!(y>=12308&&y<=12319)&&y!==12336||_t["CJK Unified Ideographs Extension A"](y)||_t["CJK Unified Ideographs"](y)||_t["Enclosed CJK Letters and Months"](y)||_t["Hangul Compatibility Jamo"](y)||_t["Hangul Jamo Extended-A"](y)||_t["Hangul Jamo Extended-B"](y)||_t["Hangul Jamo"](y)||_t["Hangul Syllables"](y)||_t.Hiragana(y)||_t["Ideographic Description Characters"](y)||_t.Kanbun(y)||_t["Kangxi Radicals"](y)||_t["Katakana Phonetic Extensions"](y)||_t.Katakana(y)&&y!==12540||_t["Halfwidth and Fullwidth Forms"](y)&&y!==65288&&y!==65289&&y!==65293&&!(y>=65306&&y<=65310)&&y!==65339&&y!==65341&&y!==65343&&!(y>=65371&&y<=65503)&&y!==65507&&!(y>=65512&&y<=65519)||_t["Small Form Variants"](y)&&!(y>=65112&&y<=65118)&&!(y>=65123&&y<=65126)||_t["Unified Canadian Aboriginal Syllabics"](y)||_t["Unified Canadian Aboriginal Syllabics Extended"](y)||_t["Vertical Forms"](y)||_t["Yijing Hexagram Symbols"](y)||_t["Yi Syllables"](y)||_t["Yi Radicals"](y))}function Oi(y){return!!(_t["Latin-1 Supplement"](y)&&(y===167||y===169||y===174||y===177||y===188||y===189||y===190||y===215||y===247)||_t["General Punctuation"](y)&&(y===8214||y===8224||y===8225||y===8240||y===8241||y===8251||y===8252||y===8258||y===8263||y===8264||y===8265||y===8273)||_t["Letterlike Symbols"](y)||_t["Number Forms"](y)||_t["Miscellaneous Technical"](y)&&(y>=8960&&y<=8967||y>=8972&&y<=8991||y>=8996&&y<=9e3||y===9003||y>=9085&&y<=9114||y>=9150&&y<=9165||y===9167||y>=9169&&y<=9179||y>=9186&&y<=9215)||_t["Control Pictures"](y)&&y!==9251||_t["Optical Character Recognition"](y)||_t["Enclosed Alphanumerics"](y)||_t["Geometric Shapes"](y)||_t["Miscellaneous Symbols"](y)&&!(y>=9754&&y<=9759)||_t["Miscellaneous Symbols and Arrows"](y)&&(y>=11026&&y<=11055||y>=11088&&y<=11097||y>=11192&&y<=11243)||_t["CJK Symbols and Punctuation"](y)||_t.Katakana(y)||_t["Private Use Area"](y)||_t["CJK Compatibility Forms"](y)||_t["Small Form Variants"](y)||_t["Halfwidth and Fullwidth Forms"](y)||y===8734||y===8756||y===8757||y>=9984&&y<=10087||y>=10102&&y<=10131||y===65532||y===65533)}function fn(y){return!($r(y)||Oi(y))}function pi(y){return _t.Arabic(y)||_t["Arabic Supplement"](y)||_t["Arabic Extended-A"](y)||_t["Arabic Presentation Forms-A"](y)||_t["Arabic Presentation Forms-B"](y)}function zi(y){return y>=1424&&y<=2303||_t["Arabic Presentation Forms-A"](y)||_t["Arabic Presentation Forms-B"](y)}function Xi(y,g){return!(!g&&zi(y)||y>=2304&&y<=3583||y>=3840&&y<=4255||_t.Khmer(y))}function pn(y){for(var g=0,z=y;g-1&&(no=bi.error),xo&&xo(y)};function El(){Pl.fire(new rn("pluginStateChange",{pluginStatus:no,pluginURL:Xo}))}var Pl=new Ri,pu=function(){return no},Il=function(y){return y({pluginStatus:no,pluginURL:Xo}),Pl.on("pluginStateChange",y),y},fu=function(y,g,z){if(z===void 0&&(z=!1),no===bi.deferred||no===bi.loading||no===bi.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");Xo=it.resolveURL(y),no=bi.deferred,xo=g,El(),z||Zu()},Zu=function(){if(no!==bi.deferred||!Xo)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");no=bi.loading,El(),Xo&&Ur({url:Xo},function(y){y?js(y):(no=bi.loaded,El())})},Vu={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return no===bi.loaded||Vu.applyArabicShaping!=null},isLoading:function(){return no===bi.loading},setState:function(g){no=g.pluginStatus,Xo=g.pluginURL},isParsed:function(){return Vu.applyArabicShaping!=null&&Vu.processBidirectionalText!=null&&Vu.processStyledBidirectionalText!=null},getPluginURL:function(){return Xo}},rf=function(){!Vu.isLoading()&&!Vu.isLoaded()&&pu()==="deferred"&&Zu()},ds=function(g,z){this.zoom=g,z?(this.now=z.now,this.fadeDuration=z.fadeDuration,this.zoomHistory=z.zoomHistory,this.transition=z.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new jt,this.transition={})};ds.prototype.isSupportedScript=function(g){return sn(g,Vu.isLoaded())},ds.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},ds.prototype.getCrossfadeParameters=function(){var g=this.zoom,z=g-Math.floor(g),V=this.crossFadingFactor();return g>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:z+(1-z)*V}:{fromScale:.5,toScale:1,t:1-(1-V)*z}};var Wl=function(g,z){this.property=g,this.value=z,this.expression=w(z===void 0?g.specification.default:z,g.specification)};Wl.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Wl.prototype.possiblyEvaluate=function(g,z,V){return this.property.possiblyEvaluate(this,g,z,V)};var Au=function(g){this.property=g,this.value=new Wl(g,void 0)};Au.prototype.transitioned=function(g,z){return new uf(this.property,this.value,z,_({},g.transition,this.transition),g.now)},Au.prototype.untransitioned=function(){return new uf(this.property,this.value,null,{},0)};var Tu=function(g){this._properties=g,this._values=Object.create(g.defaultTransitionablePropertyValues)};Tu.prototype.getValue=function(g){return H(this._values[g].value.value)},Tu.prototype.setValue=function(g,z){this._values.hasOwnProperty(g)||(this._values[g]=new Au(this._values[g].property)),this._values[g].value=new Wl(this._values[g].property,z===null?void 0:H(z))},Tu.prototype.getTransition=function(g){return H(this._values[g].transition)},Tu.prototype.setTransition=function(g,z){this._values.hasOwnProperty(g)||(this._values[g]=new Au(this._values[g].property)),this._values[g].transition=H(z)||void 0},Tu.prototype.serialize=function(){for(var g={},z=0,V=Object.keys(this._values);zthis.end)return this.prior=null,oe;if(this.value.isDataDriven())return this.prior=null,oe;if($ye.zoomHistory.lastIntegerZoom?{from:V,to:$}:{from:oe,to:$}},g.prototype.interpolate=function(V){return V},g}(qt),Qr=function(g){this.specification=g};Qr.prototype.possiblyEvaluate=function(g,z,V,$){if(g.value!==void 0)if(g.expression.kind==="constant"){var oe=g.expression.evaluate(z,null,{},V,$);return this._calculate(oe,oe,oe,z)}else return this._calculate(g.expression.evaluate(new ds(Math.floor(z.zoom-1),z)),g.expression.evaluate(new ds(Math.floor(z.zoom),z)),g.expression.evaluate(new ds(Math.floor(z.zoom+1),z)),z)},Qr.prototype._calculate=function(g,z,V,$){var oe=$.zoom;return oe>$.zoomHistory.lastIntegerZoom?{from:g,to:z}:{from:V,to:z}},Qr.prototype.interpolate=function(g){return g};var vi=function(g){this.specification=g};vi.prototype.possiblyEvaluate=function(g,z,V,$){return!!g.expression.evaluate(z,null,{},V,$)},vi.prototype.interpolate=function(){return!1};var fi=function(g){this.properties=g,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var z in g){var V=g[z];V.specification.overridable&&this.overridableProperties.push(z);var $=this.defaultPropertyValues[z]=new Wl(V,void 0),oe=this.defaultTransitionablePropertyValues[z]=new Au(V);this.defaultTransitioningPropertyValues[z]=oe.untransitioned(),this.defaultPossiblyEvaluatedValues[z]=$.possiblyEvaluate({})}};Z("DataDrivenProperty",qt),Z("DataConstantProperty",Be),Z("CrossFadedDataDrivenProperty",ar),Z("CrossFadedProperty",Qr),Z("ColorRampProperty",vi);var di="-transition",on=function(y){function g(z,V){if(y.call(this),this.id=z.id,this.type=z.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},z.type!=="custom"&&(z=z,this.metadata=z.metadata,this.minzoom=z.minzoom,this.maxzoom=z.maxzoom,z.type!=="background"&&(this.source=z.source,this.sourceLayer=z["source-layer"],this.filter=z.filter),V.layout&&(this._unevaluatedLayout=new Ef(V.layout)),V.paint)){this._transitionablePaint=new Tu(V.paint);for(var $ in z.paint)this.setPaintProperty($,z.paint[$],{validate:!1});for(var oe in z.layout)this.setLayoutProperty(oe,z.layout[oe],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new fc(V.paint)}}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},g.prototype.getLayoutProperty=function(V){return V==="visibility"?this.visibility:this._unevaluatedLayout.getValue(V)},g.prototype.setLayoutProperty=function(V,$,oe){if(oe===void 0&&(oe={}),$!=null){var ye="layers."+this.id+".layout."+V;if(this._validate(Qu,ye,V,$,oe))return}if(V==="visibility"){this.visibility=$;return}this._unevaluatedLayout.setValue(V,$)},g.prototype.getPaintProperty=function(V){return U(V,di)?this._transitionablePaint.getTransition(V.slice(0,-di.length)):this._transitionablePaint.getValue(V)},g.prototype.setPaintProperty=function(V,$,oe){if(oe===void 0&&(oe={}),$!=null){var ye="layers."+this.id+".paint."+V;if(this._validate(Wu,ye,V,$,oe))return!1}if(U(V,di))return this._transitionablePaint.setTransition(V.slice(0,-di.length),$||void 0),!1;var We=this._transitionablePaint._values[V],xt=We.property.specification["property-type"]==="cross-faded-data-driven",Rt=We.value.isDataDriven(),Xt=We.value;this._transitionablePaint.setValue(V,$),this._handleSpecialPaintPropertyUpdate(V);var br=this._transitionablePaint._values[V].value,Or=br.isDataDriven();return Or||Rt||xt||this._handleOverridablePaintPropertyUpdate(V,Xt,br)},g.prototype._handleSpecialPaintPropertyUpdate=function(V){},g.prototype._handleOverridablePaintPropertyUpdate=function(V,$,oe){return!1},g.prototype.isHidden=function(V){return this.minzoom&&V=this.maxzoom?!0:this.visibility==="none"},g.prototype.updateTransitions=function(V){this._transitioningPaint=this._transitionablePaint.transitioned(V,this._transitioningPaint)},g.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},g.prototype.recalculate=function(V,$){V.getCrossfadeParameters&&(this._crossfadeParameters=V.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(V,void 0,$)),this.paint=this._transitioningPaint.possiblyEvaluate(V,void 0,$)},g.prototype.serialize=function(){var V={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(V.layout=V.layout||{},V.layout.visibility=this.visibility),j(V,function($,oe){return $!==void 0&&!(oe==="layout"&&!Object.keys($).length)&&!(oe==="paint"&&!Object.keys($).length)})},g.prototype._validate=function(V,$,oe,ye,We){return We===void 0&&(We={}),We&&We.validate===!1?!1:Ku(this,V.call(iu,{key:$,layerType:this.type,objectKey:oe,value:ye,styleSpec:ji,style:{glyphs:!0,sprite:!0}}))},g.prototype.is3D=function(){return!1},g.prototype.isTileClipped=function(){return!1},g.prototype.hasOffscreenPass=function(){return!1},g.prototype.resize=function(){},g.prototype.isStateDependent=function(){for(var V in this.paint._values){var $=this.paint.get(V);if(!(!($ instanceof vf)||!Zl($.property.specification))&&($.value.kind==="source"||$.value.kind==="composite")&&$.value.isStateDependent)return!0}return!1},g}(Ri),Bn={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Ln=function(g,z){this._structArray=g,this._pos1=z*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},wn=128,Ls=5,ua=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};ua.serialize=function(g,z){return g._trim(),z&&(g.isTransferred=!0,z.push(g.arrayBuffer)),{length:g.length,arrayBuffer:g.arrayBuffer}},ua.deserialize=function(g){var z=Object.create(this.prototype);return z.arrayBuffer=g.arrayBuffer,z.length=g.length,z.capacity=g.arrayBuffer.byteLength/z.bytesPerElement,z._refreshViews(),z},ua.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},ua.prototype.clear=function(){this.length=0},ua.prototype.resize=function(g){this.reserve(g),this.length=g},ua.prototype.reserve=function(g){if(g>this.capacity){this.capacity=Math.max(g,Math.floor(this.capacity*Ls),wn),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var z=this.uint8;this._refreshViews(),z&&this.uint8.set(z)}},ua.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function Hn(y,g){g===void 0&&(g=1);var z=0,V=0,$=y.map(function(ye){var We=Ni(ye.type),xt=z=Hr(z,Math.max(g,We)),Rt=ye.components||1;return V=Math.max(V,We),z+=We*Rt,{name:ye.name,type:ye.type,components:Rt,offset:xt}}),oe=Hr(z,Math.max(V,g));return{members:$,size:oe,alignment:g}}function Ni(y){return Bn[y].BYTES_PER_ELEMENT}function Hr(y,g){return Math.ceil(y/g)*g}var _i=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$){var oe=this.length;return this.resize(oe+1),this.emplace(oe,V,$)},g.prototype.emplace=function(V,$,oe){var ye=V*2;return this.int16[ye+0]=$,this.int16[ye+1]=oe,V},g}(ua);_i.prototype.bytesPerElement=4,Z("StructArrayLayout2i4",_i);var dn=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,ye){var We=this.length;return this.resize(We+1),this.emplace(We,V,$,oe,ye)},g.prototype.emplace=function(V,$,oe,ye,We){var xt=V*4;return this.int16[xt+0]=$,this.int16[xt+1]=oe,this.int16[xt+2]=ye,this.int16[xt+3]=We,V},g}(ua);dn.prototype.bytesPerElement=8,Z("StructArrayLayout4i8",dn);var En=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,ye,We,xt){var Rt=this.length;return this.resize(Rt+1),this.emplace(Rt,V,$,oe,ye,We,xt)},g.prototype.emplace=function(V,$,oe,ye,We,xt,Rt){var Xt=V*6;return this.int16[Xt+0]=$,this.int16[Xt+1]=oe,this.int16[Xt+2]=ye,this.int16[Xt+3]=We,this.int16[Xt+4]=xt,this.int16[Xt+5]=Rt,V},g}(ua);En.prototype.bytesPerElement=12,Z("StructArrayLayout2i4i12",En);var Yi=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,ye,We,xt){var Rt=this.length;return this.resize(Rt+1),this.emplace(Rt,V,$,oe,ye,We,xt)},g.prototype.emplace=function(V,$,oe,ye,We,xt,Rt){var Xt=V*4,br=V*8;return this.int16[Xt+0]=$,this.int16[Xt+1]=oe,this.uint8[br+4]=ye,this.uint8[br+5]=We,this.uint8[br+6]=xt,this.uint8[br+7]=Rt,V},g}(ua);Yi.prototype.bytesPerElement=8,Z("StructArrayLayout2i4ub8",Yi);var ga=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$){var oe=this.length;return this.resize(oe+1),this.emplace(oe,V,$)},g.prototype.emplace=function(V,$,oe){var ye=V*2;return this.float32[ye+0]=$,this.float32[ye+1]=oe,V},g}(ua);ga.prototype.bytesPerElement=8,Z("StructArrayLayout2f8",ga);var Kn=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,ye,We,xt,Rt,Xt,br,Or){var Pr=this.length;return this.resize(Pr+1),this.emplace(Pr,V,$,oe,ye,We,xt,Rt,Xt,br,Or)},g.prototype.emplace=function(V,$,oe,ye,We,xt,Rt,Xt,br,Or,Pr){var ai=V*10;return this.uint16[ai+0]=$,this.uint16[ai+1]=oe,this.uint16[ai+2]=ye,this.uint16[ai+3]=We,this.uint16[ai+4]=xt,this.uint16[ai+5]=Rt,this.uint16[ai+6]=Xt,this.uint16[ai+7]=br,this.uint16[ai+8]=Or,this.uint16[ai+9]=Pr,V},g}(ua);Kn.prototype.bytesPerElement=20,Z("StructArrayLayout10ui20",Kn);var hs=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,ye,We,xt,Rt,Xt,br,Or,Pr,ai){var qi=this.length;return this.resize(qi+1),this.emplace(qi,V,$,oe,ye,We,xt,Rt,Xt,br,Or,Pr,ai)},g.prototype.emplace=function(V,$,oe,ye,We,xt,Rt,Xt,br,Or,Pr,ai,qi){var Wn=V*12;return this.int16[Wn+0]=$,this.int16[Wn+1]=oe,this.int16[Wn+2]=ye,this.int16[Wn+3]=We,this.uint16[Wn+4]=xt,this.uint16[Wn+5]=Rt,this.uint16[Wn+6]=Xt,this.uint16[Wn+7]=br,this.int16[Wn+8]=Or,this.int16[Wn+9]=Pr,this.int16[Wn+10]=ai,this.int16[Wn+11]=qi,V},g}(ua);hs.prototype.bytesPerElement=24,Z("StructArrayLayout4i4ui4i24",hs);var $i=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe){var ye=this.length;return this.resize(ye+1),this.emplace(ye,V,$,oe)},g.prototype.emplace=function(V,$,oe,ye){var We=V*3;return this.float32[We+0]=$,this.float32[We+1]=oe,this.float32[We+2]=ye,V},g}(ua);$i.prototype.bytesPerElement=12,Z("StructArrayLayout3f12",$i);var Ui=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},g.prototype.emplace=function(V,$){var oe=V*1;return this.uint32[oe+0]=$,V},g}(ua);Ui.prototype.bytesPerElement=4,Z("StructArrayLayout1ul4",Ui);var ro=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,ye,We,xt,Rt,Xt,br){var Or=this.length;return this.resize(Or+1),this.emplace(Or,V,$,oe,ye,We,xt,Rt,Xt,br)},g.prototype.emplace=function(V,$,oe,ye,We,xt,Rt,Xt,br,Or){var Pr=V*10,ai=V*5;return this.int16[Pr+0]=$,this.int16[Pr+1]=oe,this.int16[Pr+2]=ye,this.int16[Pr+3]=We,this.int16[Pr+4]=xt,this.int16[Pr+5]=Rt,this.uint32[ai+3]=Xt,this.uint16[Pr+8]=br,this.uint16[Pr+9]=Or,V},g}(ua);ro.prototype.bytesPerElement=20,Z("StructArrayLayout6i1ul2ui20",ro);var na=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,ye,We,xt){var Rt=this.length;return this.resize(Rt+1),this.emplace(Rt,V,$,oe,ye,We,xt)},g.prototype.emplace=function(V,$,oe,ye,We,xt,Rt){var Xt=V*6;return this.int16[Xt+0]=$,this.int16[Xt+1]=oe,this.int16[Xt+2]=ye,this.int16[Xt+3]=We,this.int16[Xt+4]=xt,this.int16[Xt+5]=Rt,V},g}(ua);na.prototype.bytesPerElement=12,Z("StructArrayLayout2i2i2i12",na);var On=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,ye,We){var xt=this.length;return this.resize(xt+1),this.emplace(xt,V,$,oe,ye,We)},g.prototype.emplace=function(V,$,oe,ye,We,xt){var Rt=V*4,Xt=V*8;return this.float32[Rt+0]=$,this.float32[Rt+1]=oe,this.float32[Rt+2]=ye,this.int16[Xt+6]=We,this.int16[Xt+7]=xt,V},g}(ua);On.prototype.bytesPerElement=16,Z("StructArrayLayout2f1f2i16",On);var In=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,ye){var We=this.length;return this.resize(We+1),this.emplace(We,V,$,oe,ye)},g.prototype.emplace=function(V,$,oe,ye,We){var xt=V*12,Rt=V*3;return this.uint8[xt+0]=$,this.uint8[xt+1]=oe,this.float32[Rt+1]=ye,this.float32[Rt+2]=We,V},g}(ua);In.prototype.bytesPerElement=12,Z("StructArrayLayout2ub2f12",In);var Va=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe){var ye=this.length;return this.resize(ye+1),this.emplace(ye,V,$,oe)},g.prototype.emplace=function(V,$,oe,ye){var We=V*3;return this.uint16[We+0]=$,this.uint16[We+1]=oe,this.uint16[We+2]=ye,V},g}(ua);Va.prototype.bytesPerElement=6,Z("StructArrayLayout3ui6",Va);var _s=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,ye,We,xt,Rt,Xt,br,Or,Pr,ai,qi,Wn,bn,bo,ba){var _o=this.length;return this.resize(_o+1),this.emplace(_o,V,$,oe,ye,We,xt,Rt,Xt,br,Or,Pr,ai,qi,Wn,bn,bo,ba)},g.prototype.emplace=function(V,$,oe,ye,We,xt,Rt,Xt,br,Or,Pr,ai,qi,Wn,bn,bo,ba,_o){var Uo=V*24,Zs=V*12,Cl=V*48;return this.int16[Uo+0]=$,this.int16[Uo+1]=oe,this.uint16[Uo+2]=ye,this.uint16[Uo+3]=We,this.uint32[Zs+2]=xt,this.uint32[Zs+3]=Rt,this.uint32[Zs+4]=Xt,this.uint16[Uo+10]=br,this.uint16[Uo+11]=Or,this.uint16[Uo+12]=Pr,this.float32[Zs+7]=ai,this.float32[Zs+8]=qi,this.uint8[Cl+36]=Wn,this.uint8[Cl+37]=bn,this.uint8[Cl+38]=bo,this.uint32[Zs+10]=ba,this.int16[Uo+22]=_o,V},g}(ua);_s.prototype.bytesPerElement=48,Z("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",_s);var ul=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,ye,We,xt,Rt,Xt,br,Or,Pr,ai,qi,Wn,bn,bo,ba,_o,Uo,Zs,Cl,Tl,hu,Kl,lu,Bu,du,gu){var ff=this.length;return this.resize(ff+1),this.emplace(ff,V,$,oe,ye,We,xt,Rt,Xt,br,Or,Pr,ai,qi,Wn,bn,bo,ba,_o,Uo,Zs,Cl,Tl,hu,Kl,lu,Bu,du,gu)},g.prototype.emplace=function(V,$,oe,ye,We,xt,Rt,Xt,br,Or,Pr,ai,qi,Wn,bn,bo,ba,_o,Uo,Zs,Cl,Tl,hu,Kl,lu,Bu,du,gu,ff){var Ru=V*34,If=V*17;return this.int16[Ru+0]=$,this.int16[Ru+1]=oe,this.int16[Ru+2]=ye,this.int16[Ru+3]=We,this.int16[Ru+4]=xt,this.int16[Ru+5]=Rt,this.int16[Ru+6]=Xt,this.int16[Ru+7]=br,this.uint16[Ru+8]=Or,this.uint16[Ru+9]=Pr,this.uint16[Ru+10]=ai,this.uint16[Ru+11]=qi,this.uint16[Ru+12]=Wn,this.uint16[Ru+13]=bn,this.uint16[Ru+14]=bo,this.uint16[Ru+15]=ba,this.uint16[Ru+16]=_o,this.uint16[Ru+17]=Uo,this.uint16[Ru+18]=Zs,this.uint16[Ru+19]=Cl,this.uint16[Ru+20]=Tl,this.uint16[Ru+21]=hu,this.uint16[Ru+22]=Kl,this.uint32[If+12]=lu,this.float32[If+13]=Bu,this.float32[If+14]=du,this.float32[If+15]=gu,this.float32[If+16]=ff,V},g}(ua);ul.prototype.bytesPerElement=68,Z("StructArrayLayout8i15ui1ul4f68",ul);var Qn=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},g.prototype.emplace=function(V,$){var oe=V*1;return this.float32[oe+0]=$,V},g}(ua);Qn.prototype.bytesPerElement=4,Z("StructArrayLayout1f4",Qn);var Mo=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe){var ye=this.length;return this.resize(ye+1),this.emplace(ye,V,$,oe)},g.prototype.emplace=function(V,$,oe,ye){var We=V*3;return this.int16[We+0]=$,this.int16[We+1]=oe,this.int16[We+2]=ye,V},g}(ua);Mo.prototype.bytesPerElement=6,Z("StructArrayLayout3i6",Mo);var nl=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe){var ye=this.length;return this.resize(ye+1),this.emplace(ye,V,$,oe)},g.prototype.emplace=function(V,$,oe,ye){var We=V*2,xt=V*4;return this.uint32[We+0]=$,this.uint16[xt+2]=oe,this.uint16[xt+3]=ye,V},g}(ua);nl.prototype.bytesPerElement=8,Z("StructArrayLayout1ul2ui8",nl);var pl=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$){var oe=this.length;return this.resize(oe+1),this.emplace(oe,V,$)},g.prototype.emplace=function(V,$,oe){var ye=V*2;return this.uint16[ye+0]=$,this.uint16[ye+1]=oe,V},g}(ua);pl.prototype.bytesPerElement=4,Z("StructArrayLayout2ui4",pl);var Dl=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},g.prototype.emplace=function(V,$){var oe=V*1;return this.uint16[oe+0]=$,V},g}(ua);Dl.prototype.bytesPerElement=2,Z("StructArrayLayout1ui2",Dl);var Fu=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,ye){var We=this.length;return this.resize(We+1),this.emplace(We,V,$,oe,ye)},g.prototype.emplace=function(V,$,oe,ye,We){var xt=V*4;return this.float32[xt+0]=$,this.float32[xt+1]=oe,this.float32[xt+2]=ye,this.float32[xt+3]=We,V},g}(ua);Fu.prototype.bytesPerElement=16,Z("StructArrayLayout4f16",Fu);var mf=function(y){function g(){y.apply(this,arguments)}y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g;var z={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return z.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},z.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},z.x1.get=function(){return this._structArray.int16[this._pos2+2]},z.y1.get=function(){return this._structArray.int16[this._pos2+3]},z.x2.get=function(){return this._structArray.int16[this._pos2+4]},z.y2.get=function(){return this._structArray.int16[this._pos2+5]},z.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},z.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},z.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},z.anchorPoint.get=function(){return new l(this.anchorPointX,this.anchorPointY)},Object.defineProperties(g.prototype,z),g}(Ln);mf.prototype.size=20;var Ql=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.get=function(V){return new mf(this,V)},g}(ro);Z("CollisionBoxArray",Ql);var kf=function(y){function g(){y.apply(this,arguments)}y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g;var z={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return z.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},z.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},z.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},z.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},z.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},z.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},z.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},z.segment.get=function(){return this._structArray.uint16[this._pos2+10]},z.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},z.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},z.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},z.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},z.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},z.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},z.placedOrientation.set=function(V){this._structArray.uint8[this._pos1+37]=V},z.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},z.hidden.set=function(V){this._structArray.uint8[this._pos1+38]=V},z.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},z.crossTileID.set=function(V){this._structArray.uint32[this._pos4+10]=V},z.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(g.prototype,z),g}(Ln);kf.prototype.size=48;var Cu=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.get=function(V){return new kf(this,V)},g}(_s);Z("PlacedSymbolArray",Cu);var _f=function(y){function g(){y.apply(this,arguments)}y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g;var z={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return z.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},z.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},z.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},z.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},z.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},z.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},z.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},z.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},z.key.get=function(){return this._structArray.uint16[this._pos2+8]},z.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},z.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},z.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},z.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},z.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},z.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},z.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},z.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},z.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},z.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},z.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},z.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},z.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},z.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},z.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},z.crossTileID.set=function(V){this._structArray.uint32[this._pos4+12]=V},z.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},z.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},z.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},z.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(g.prototype,z),g}(Ln);_f.prototype.size=68;var bf=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.get=function(V){return new _f(this,V)},g}(ul);Z("SymbolInstanceArray",bf);var Lf=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.getoffsetX=function(V){return this.float32[V*1+0]},g}(Qn);Z("GlyphOffsetArray",Lf);var Gu=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.getx=function(V){return this.int16[V*3+0]},g.prototype.gety=function(V){return this.int16[V*3+1]},g.prototype.gettileUnitDistanceFromAnchor=function(V){return this.int16[V*3+2]},g}(Mo);Z("SymbolLineVertexArray",Gu);var hf=function(y){function g(){y.apply(this,arguments)}y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g;var z={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return z.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},z.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},z.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(g.prototype,z),g}(Ln);hf.prototype.size=8;var yf=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.get=function(V){return new hf(this,V)},g}(nl);Z("FeatureIndexArray",yf);var Fl=Hn([{name:"a_pos",components:2,type:"Int16"}],4),wf=Fl.members,cu=function(g){g===void 0&&(g=[]),this.segments=g};cu.prototype.prepareSegment=function(g,z,V,$){var oe=this.segments[this.segments.length-1];return g>cu.MAX_VERTEX_ARRAY_LENGTH&&re("Max vertices per segment is "+cu.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+g),(!oe||oe.vertexLength+g>cu.MAX_VERTEX_ARRAY_LENGTH||oe.sortKey!==$)&&(oe={vertexOffset:z.length,primitiveOffset:V.length,vertexLength:0,primitiveLength:0},$!==void 0&&(oe.sortKey=$),this.segments.push(oe)),oe},cu.prototype.get=function(){return this.segments},cu.prototype.destroy=function(){for(var g=0,z=this.segments;g>>16)*xt&65535)<<16)&4294967295,Xt=Xt<<15|Xt>>>17,Xt=(Xt&65535)*Rt+(((Xt>>>16)*Rt&65535)<<16)&4294967295,ye^=Xt,ye=ye<<13|ye>>>19,We=(ye&65535)*5+(((ye>>>16)*5&65535)<<16)&4294967295,ye=(We&65535)+27492+(((We>>>16)+58964&65535)<<16);switch(Xt=0,$){case 3:Xt^=(z.charCodeAt(br+2)&255)<<16;case 2:Xt^=(z.charCodeAt(br+1)&255)<<8;case 1:Xt^=z.charCodeAt(br)&255,Xt=(Xt&65535)*xt+(((Xt>>>16)*xt&65535)<<16)&4294967295,Xt=Xt<<15|Xt>>>17,Xt=(Xt&65535)*Rt+(((Xt>>>16)*Rt&65535)<<16)&4294967295,ye^=Xt}return ye^=z.length,ye^=ye>>>16,ye=(ye&65535)*2246822507+(((ye>>>16)*2246822507&65535)<<16)&4294967295,ye^=ye>>>13,ye=(ye&65535)*3266489909+(((ye>>>16)*3266489909&65535)<<16)&4294967295,ye^=ye>>>16,ye>>>0}y.exports=g}),O=a(function(y){function g(z,V){for(var $=z.length,oe=V^$,ye=0,We;$>=4;)We=z.charCodeAt(ye)&255|(z.charCodeAt(++ye)&255)<<8|(z.charCodeAt(++ye)&255)<<16|(z.charCodeAt(++ye)&255)<<24,We=(We&65535)*1540483477+(((We>>>16)*1540483477&65535)<<16),We^=We>>>24,We=(We&65535)*1540483477+(((We>>>16)*1540483477&65535)<<16),oe=(oe&65535)*1540483477+(((oe>>>16)*1540483477&65535)<<16)^We,$-=4,++ye;switch($){case 3:oe^=(z.charCodeAt(ye+2)&255)<<16;case 2:oe^=(z.charCodeAt(ye+1)&255)<<8;case 1:oe^=z.charCodeAt(ye)&255,oe=(oe&65535)*1540483477+(((oe>>>16)*1540483477&65535)<<16)}return oe^=oe>>>13,oe=(oe&65535)*1540483477+(((oe>>>16)*1540483477&65535)<<16),oe^=oe>>>15,oe>>>0}y.exports=g}),K=J,ge=J,ne=O;K.murmur3=ge,K.murmur2=ne;var Le=function(){this.ids=[],this.positions=[],this.indexed=!1};Le.prototype.add=function(g,z,V,$){this.ids.push(Ct(g)),this.positions.push(z,V,$)},Le.prototype.getPositions=function(g){for(var z=Ct(g),V=0,$=this.ids.length-1;V<$;){var oe=V+$>>1;this.ids[oe]>=z?$=oe:V=oe+1}for(var ye=[];this.ids[V]===z;){var We=this.positions[3*V],xt=this.positions[3*V+1],Rt=this.positions[3*V+2];ye.push({index:We,start:xt,end:Rt}),V++}return ye},Le.serialize=function(g,z){var V=new Float64Array(g.ids),$=new Uint32Array(g.positions);return dr(V,$,0,V.length-1),z&&z.push(V.buffer,$.buffer),{ids:V,positions:$}},Le.deserialize=function(g){var z=new Le;return z.ids=g.ids,z.positions=g.positions,z.indexed=!0,z};var Ze=Math.pow(2,53)-1;function Ct(y){var g=+y;return!isNaN(g)&&g<=Ze?g:K(String(y))}function dr(y,g,z,V){for(;z>1],oe=z-1,ye=V+1;;){do oe++;while(y[oe]<$);do ye--;while(y[ye]>$);if(oe>=ye)break;Mr(y,oe,ye),Mr(g,3*oe,3*ye),Mr(g,3*oe+1,3*ye+1),Mr(g,3*oe+2,3*ye+2)}ye-zye.x+1||xtye.y+1)&&re("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return z}function ru(y,g){return{type:y.type,id:y.id,properties:y.properties,geometry:g?Zo(y):[]}}function yu(y,g,z,V,$){y.emplaceBack(g*2+(V+1)/2,z*2+($+1)/2)}var Du=function(g){this.zoom=g.zoom,this.overscaling=g.overscaling,this.layers=g.layers,this.layerIds=this.layers.map(function(z){return z.id}),this.index=g.index,this.hasPattern=!1,this.layoutVertexArray=new _i,this.indexArray=new Va,this.segments=new cu,this.programConfigurations=new Ki(g.layers,g.zoom),this.stateDependentLayerIds=this.layers.filter(function(z){return z.isStateDependent()}).map(function(z){return z.id})};Du.prototype.populate=function(g,z,V){var $=this.layers[0],oe=[],ye=null;$.type==="circle"&&(ye=$.layout.get("circle-sort-key"));for(var We=0,xt=g;We=An||Or<0||Or>=An)){var Pr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,g.sortKey),ai=Pr.vertexLength;yu(this.layoutVertexArray,br,Or,-1,-1),yu(this.layoutVertexArray,br,Or,1,-1),yu(this.layoutVertexArray,br,Or,1,1),yu(this.layoutVertexArray,br,Or,-1,1),this.indexArray.emplaceBack(ai,ai+1,ai+2),this.indexArray.emplaceBack(ai,ai+3,ai+2),Pr.vertexLength+=4,Pr.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,g,V,{},$)},Z("CircleBucket",Du,{omit:["layers"]});function vu(y,g){for(var z=0;z=3){for(var oe=0;oe<$.length;oe++)if(Sd(y,$[oe]))return!0}if(wd(y,$,z))return!0}return!1}function wd(y,g,z){if(y.length>1){if(Ad(y,g))return!0;for(var V=0;V1?y.distSqr(z):y.distSqr(z.sub(g)._mult($)._add(g))}function dv(y,g){for(var z=!1,V,$,oe,ye=0;yeg.y!=oe.y>g.y&&g.x<(oe.x-$.x)*(g.y-$.y)/(oe.y-$.y)+$.x&&(z=!z)}return z}function Sd(y,g){for(var z=!1,V=0,$=y.length-1;Vg.y!=ye.y>g.y&&g.x<(ye.x-oe.x)*(g.y-oe.y)/(ye.y-oe.y)+oe.x&&(z=!z)}return z}function pv(y,g,z,V,$){for(var oe=0,ye=y;oe=We.x&&$>=We.y)return!0}var xt=[new l(g,z),new l(g,$),new l(V,$),new l(V,z)];if(y.length>2)for(var Rt=0,Xt=xt;Rt$.x&&g.x>$.x||y.y$.y&&g.y>$.y)return!1;var oe=ae(y,g,z[0]);return oe!==ae(y,g,z[1])||oe!==ae(y,g,z[2])||oe!==ae(y,g,z[3])}function Md(y,g,z){var V=g.paint.get(y).value;return V.kind==="constant"?V.value:z.programConfigurations.get(g.id).getMaxValue(y)}function kp(y){return Math.sqrt(y[0]*y[0]+y[1]*y[1])}function Kp(y,g,z,V,$){if(!g[0]&&!g[1])return y;var oe=l.convert(g)._mult($);z==="viewport"&&oe._rotate(-V);for(var ye=[],We=0;We0&&(oe=1/Math.sqrt(oe)),y[0]=g[0]*oe,y[1]=g[1]*oe,y[2]=g[2]*oe,y}function HO(y,g){return y[0]*g[0]+y[1]*g[1]+y[2]*g[2]}function WO(y,g,z){var V=g[0],$=g[1],oe=g[2],ye=z[0],We=z[1],xt=z[2];return y[0]=$*xt-oe*We,y[1]=oe*ye-V*xt,y[2]=V*We-$*ye,y}function jO(y,g,z){var V=g[0],$=g[1],oe=g[2];return y[0]=V*z[0]+$*z[3]+oe*z[6],y[1]=V*z[1]+$*z[4]+oe*z[7],y[2]=V*z[2]+$*z[5]+oe*z[8],y}var XO=oy,OQ=function(){var y=ay();return function(g,z,V,$,oe,ye){var We,xt;for(z||(z=3),V||(V=0),$?xt=Math.min($*z+V,g.length):xt=g.length,We=V;Wey.width||$.height>y.height||z.x>y.width-$.width||z.y>y.height-$.height)throw new RangeError("out of range source coordinates for image copy");if($.width>g.width||$.height>g.height||V.x>g.width-$.width||V.y>g.height-$.height)throw new RangeError("out of range destination coordinates for image copy");for(var ye=y.data,We=g.data,xt=0;xt<$.height;xt++)for(var Rt=((z.y+xt)*y.width+z.x)*oe,Xt=((V.y+xt)*g.width+V.x)*oe,br=0;br<$.width*oe;br++)We[Xt+br]=ye[Rt+br];return g}var Pp=function(g,z){kd(this,g,1,z)};Pp.prototype.resize=function(g){kw(this,g,1)},Pp.prototype.clone=function(){return new Pp({width:this.width,height:this.height},new Uint8Array(this.data))},Pp.copy=function(g,z,V,$,oe){Cw(g,z,V,$,oe,1)};var kh=function(g,z){kd(this,g,4,z)};kh.prototype.resize=function(g){kw(this,g,4)},kh.prototype.replace=function(g,z){z?this.data.set(g):g instanceof Uint8ClampedArray?this.data=new Uint8Array(g.buffer):this.data=g},kh.prototype.clone=function(){return new kh({width:this.width,height:this.height},new Uint8Array(this.data))},kh.copy=function(g,z,V,$,oe){Cw(g,z,V,$,oe,4)},Z("AlphaImage",Pp),Z("RGBAImage",kh);var Gx=new fi({"heatmap-radius":new qt(ji.paint_heatmap["heatmap-radius"]),"heatmap-weight":new qt(ji.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Be(ji.paint_heatmap["heatmap-intensity"]),"heatmap-color":new vi(ji.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Be(ji.paint_heatmap["heatmap-opacity"])}),S1={paint:Gx};function Hx(y){var g={},z=y.resolution||256,V=y.clips?y.clips.length:1,$=y.image||new kh({width:z,height:V}),oe=function(bo,ba,_o){g[y.evaluationKey]=_o;var Uo=y.expression.evaluate(g);$.data[bo+ba+0]=Math.floor(Uo.r*255/Uo.a),$.data[bo+ba+1]=Math.floor(Uo.g*255/Uo.a),$.data[bo+ba+2]=Math.floor(Uo.b*255/Uo.a),$.data[bo+ba+3]=Math.floor(Uo.a*255)};if(y.clips)for(var Rt=0,Xt=0;Rt80*z){We=Rt=y[0],xt=Xt=y[1];for(var ai=z;ai<$;ai+=z)br=y[ai],Or=y[ai+1],brRt&&(Rt=br),Or>Xt&&(Xt=Or);Pr=Math.max(Rt-We,Xt-xt),Pr=Pr!==0?1/Pr:0}return Wx(oe,ye,z,We,xt,Pr),ye}function zw(y,g,z,V,$){var oe,ye;if($===fM(y,g,z,V)>0)for(oe=g;oe=g;oe-=V)ye=wC(oe,y[oe],y[oe+1],ye);return ye&&Xx(ye,ye.next)&&(Kx(ye),ye=ye.next),ye}function sy(y,g){if(!y)return y;g||(g=y);var z=y,V;do if(V=!1,!z.steiner&&(Xx(z,z.next)||Yc(z.prev,z,z.next)===0)){if(Kx(z),z=g=z.prev,z===z.next)break;V=!0}else z=z.next;while(V||z!==g);return g}function Wx(y,g,z,V,$,oe,ye){if(y){!ye&&oe&&Iw(y,V,$,oe);for(var We=y,xt,Rt;y.prev!==y.next;){if(xt=y.prev,Rt=y.next,oe?_C(y,V,$,oe):gC(y)){g.push(xt.i/z),g.push(y.i/z),g.push(Rt.i/z),Kx(y),y=Rt.next,We=Rt.next;continue}if(y=Rt,y===We){ye?ye===1?(y=jx(sy(y),g,z),Wx(y,g,z,V,$,oe,2)):ye===2&&p0(y,g,z,V,$,oe):Wx(sy(y),g,z,V,$,oe,1);break}}}}function gC(y){var g=y.prev,z=y,V=y.next;if(Yc(g,z,V)>=0)return!1;for(var $=y.next.next;$!==y.prev;){if(uy(g.x,g.y,z.x,z.y,V.x,V.y,$.x,$.y)&&Yc($.prev,$,$.next)>=0)return!1;$=$.next}return!0}function _C(y,g,z,V){var $=y.prev,oe=y,ye=y.next;if(Yc($,oe,ye)>=0)return!1;for(var We=$.xoe.x?$.x>ye.x?$.x:ye.x:oe.x>ye.x?oe.x:ye.x,Xt=$.y>oe.y?$.y>ye.y?$.y:ye.y:oe.y>ye.y?oe.y:ye.y,br=oM(We,xt,g,z,V),Or=oM(Rt,Xt,g,z,V),Pr=y.prevZ,ai=y.nextZ;Pr&&Pr.z>=br&&ai&&ai.z<=Or;){if(Pr!==y.prev&&Pr!==y.next&&uy($.x,$.y,oe.x,oe.y,ye.x,ye.y,Pr.x,Pr.y)&&Yc(Pr.prev,Pr,Pr.next)>=0||(Pr=Pr.prevZ,ai!==y.prev&&ai!==y.next&&uy($.x,$.y,oe.x,oe.y,ye.x,ye.y,ai.x,ai.y)&&Yc(ai.prev,ai,ai.next)>=0))return!1;ai=ai.nextZ}for(;Pr&&Pr.z>=br;){if(Pr!==y.prev&&Pr!==y.next&&uy($.x,$.y,oe.x,oe.y,ye.x,ye.y,Pr.x,Pr.y)&&Yc(Pr.prev,Pr,Pr.next)>=0)return!1;Pr=Pr.prevZ}for(;ai&&ai.z<=Or;){if(ai!==y.prev&&ai!==y.next&&uy($.x,$.y,oe.x,oe.y,ye.x,ye.y,ai.x,ai.y)&&Yc(ai.prev,ai,ai.next)>=0)return!1;ai=ai.nextZ}return!0}function jx(y,g,z){var V=y;do{var $=V.prev,oe=V.next.next;!Xx($,oe)&&Rw($,V,V.next,oe)&&Yx($,oe)&&Yx(oe,$)&&(g.push($.i/z),g.push(V.i/z),g.push(oe.i/z),Kx(V),Kx(V.next),V=y=oe),V=V.next}while(V!==y);return sy(V)}function p0(y,g,z,V,$,oe){var ye=y;do{for(var We=ye.next.next;We!==ye.prev;){if(ye.i!==We.i&&E1(ye,We)){var xt=lM(ye,We);ye=sy(ye,ye.next),xt=sy(xt,xt.next),Wx(ye,g,z,V,$,oe),Wx(xt,g,z,V,$,oe);return}We=We.next}ye=ye.next}while(ye!==y)}function ly(y,g,z,V){var $=[],oe,ye,We,xt,Rt;for(oe=0,ye=g.length;oe=z.next.y&&z.next.y!==z.y){var We=z.x+($-z.y)*(z.next.x-z.x)/(z.next.y-z.y);if(We<=V&&We>oe){if(oe=We,We===V){if($===z.y)return z;if($===z.next.y)return z.next}ye=z.x=z.x&&z.x>=Rt&&V!==z.x&&uy($ye.x||z.x===ye.x&&r9(ye,z)))&&(ye=z,br=Or)),z=z.next;while(z!==xt);return ye}function r9(y,g){return Yc(y.prev,y,g.prev)<0&&Yc(g.next,y,y.next)<0}function Iw(y,g,z,V){var $=y;do $.z===null&&($.z=oM($.x,$.y,g,z,V)),$.prevZ=$.prev,$.nextZ=$.next,$=$.next;while($!==y);$.prevZ.nextZ=null,$.prevZ=null,aM($)}function aM(y){var g,z,V,$,oe,ye,We,xt,Rt=1;do{for(z=y,y=null,oe=null,ye=0;z;){for(ye++,V=z,We=0,g=0;g0||xt>0&&V;)We!==0&&(xt===0||!V||z.z<=V.z)?($=z,z=z.nextZ,We--):($=V,V=V.nextZ,xt--),oe?oe.nextZ=$:y=$,$.prevZ=oe,oe=$;z=V}oe.nextZ=null,Rt*=2}while(ye>1);return y}function oM(y,g,z,V,$){return y=32767*(y-z)*$,g=32767*(g-V)*$,y=(y|y<<8)&16711935,y=(y|y<<4)&252645135,y=(y|y<<2)&858993459,y=(y|y<<1)&1431655765,g=(g|g<<8)&16711935,g=(g|g<<4)&252645135,g=(g|g<<2)&858993459,g=(g|g<<1)&1431655765,y|g<<1}function sM(y){var g=y,z=y;do(g.x=0&&(y-ye)*(V-We)-(z-ye)*(g-We)>=0&&(z-ye)*(oe-We)-($-ye)*(V-We)>=0}function E1(y,g){return y.next.i!==g.i&&y.prev.i!==g.i&&!bC(y,g)&&(Yx(y,g)&&Yx(g,y)&&i9(y,g)&&(Yc(y.prev,y,g.prev)||Yc(y,g.prev,g))||Xx(y,g)&&Yc(y.prev,y,y.next)>0&&Yc(g.prev,g,g.next)>0)}function Yc(y,g,z){return(g.y-y.y)*(z.x-g.x)-(g.x-y.x)*(z.y-g.y)}function Xx(y,g){return y.x===g.x&&y.y===g.y}function Rw(y,g,z,V){var $=ug(Yc(y,g,z)),oe=ug(Yc(y,g,V)),ye=ug(Yc(z,V,y)),We=ug(Yc(z,V,g));return!!($!==oe&&ye!==We||$===0&&Zx(y,z,g)||oe===0&&Zx(y,V,g)||ye===0&&Zx(z,y,V)||We===0&&Zx(z,g,V))}function Zx(y,g,z){return g.x<=Math.max(y.x,z.x)&&g.x>=Math.min(y.x,z.x)&&g.y<=Math.max(y.y,z.y)&&g.y>=Math.min(y.y,z.y)}function ug(y){return y>0?1:y<0?-1:0}function bC(y,g){var z=y;do{if(z.i!==y.i&&z.next.i!==y.i&&z.i!==g.i&&z.next.i!==g.i&&Rw(z,z.next,y,g))return!0;z=z.next}while(z!==y);return!1}function Yx(y,g){return Yc(y.prev,y,y.next)<0?Yc(y,g,y.next)>=0&&Yc(y,y.prev,g)>=0:Yc(y,g,y.prev)<0||Yc(y,y.next,g)<0}function i9(y,g){var z=y,V=!1,$=(y.x+g.x)/2,oe=(y.y+g.y)/2;do z.y>oe!=z.next.y>oe&&z.next.y!==z.y&&$<(z.next.x-z.x)*(oe-z.y)/(z.next.y-z.y)+z.x&&(V=!V),z=z.next;while(z!==y);return V}function lM(y,g){var z=new uM(y.i,y.x,y.y),V=new uM(g.i,g.x,g.y),$=y.next,oe=g.prev;return y.next=g,g.prev=y,z.next=$,$.prev=z,V.next=z,z.prev=V,oe.next=V,V.prev=oe,V}function wC(y,g,z,V){var $=new uM(y,g,z);return V?($.next=V.next,$.prev=V,V.next.prev=$,V.next=$):($.prev=$,$.next=$),$}function Kx(y){y.next.prev=y.prev,y.prev.next=y.next,y.prevZ&&(y.prevZ.nextZ=y.nextZ),y.nextZ&&(y.nextZ.prevZ=y.prevZ)}function uM(y,g,z){this.i=y,this.x=g,this.y=z,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}M1.deviation=function(y,g,z,V){var $=g&&g.length,oe=$?g[0]*z:y.length,ye=Math.abs(fM(y,0,oe,z));if($)for(var We=0,xt=g.length;We0&&(V+=y[$-1].length,z.holes.push(V))}return z},Pw.default=yC;function cM(y,g,z,V,$){dm(y,g,z||0,V||y.length-1,$||AC)}function dm(y,g,z,V,$){for(;V>z;){if(V-z>600){var oe=V-z+1,ye=g-z+1,We=Math.log(oe),xt=.5*Math.exp(2*We/3),Rt=.5*Math.sqrt(We*xt*(oe-xt)/oe)*(ye-oe/2<0?-1:1),Xt=Math.max(z,Math.floor(g-ye*xt/oe+Rt)),br=Math.min(V,Math.floor(g+(oe-ye)*xt/oe+Rt));dm(y,g,Xt,br,$)}var Or=y[g],Pr=z,ai=V;for(k1(y,z,g),$(y[V],Or)>0&&k1(y,z,V);Pr0;)ai--}$(y[z],Or)===0?k1(y,z,ai):(ai++,k1(y,ai,V)),ai<=g&&(z=ai+1),g<=ai&&(V=ai-1)}}function k1(y,g,z){var V=y[g];y[g]=y[z],y[z]=V}function AC(y,g){return yg?1:0}function Dw(y,g){var z=y.length;if(z<=1)return[y];for(var V=[],$,oe,ye=0;ye1)for(var xt=0;xt>3}if(V--,z===1||z===2)$+=y.readSVarint(),oe+=y.readSVarint(),z===1&&(We&&ye.push(We),We=[]),We.push(new l($,oe));else if(z===7)We&&We.push(We[0].clone());else throw new Error("unknown command "+z)}return We&&ye.push(We),ye},fg.prototype.bbox=function(){var y=this._pbf;y.pos=this._geometry;for(var g=y.readVarint()+y.pos,z=1,V=0,$=0,oe=0,ye=1/0,We=-1/0,xt=1/0,Rt=-1/0;y.pos>3}if(V--,z===1||z===2)$+=y.readSVarint(),oe+=y.readSVarint(),$We&&(We=$),oeRt&&(Rt=oe);else if(z!==7)throw new Error("unknown command "+z)}return[ye,xt,We,Rt]},fg.prototype.toGeoJSON=function(y,g,z){var V=this.extent*Math.pow(2,z),$=this.extent*y,oe=this.extent*g,ye=this.loadGeometry(),We=fg.types[this.type],xt,Rt;function Xt(Pr){for(var ai=0;ai>3;g=V===1?y.readString():V===2?y.readFloat():V===3?y.readDouble():V===4?y.readVarint64():V===5?y.readVarint():V===6?y.readSVarint():V===7?y.readBoolean():null}return g}pM.prototype.feature=function(y){if(y<0||y>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[y];var g=this._pbf.readVarint()+this._pbf.pos;return new dM(this._pbf,g,this.extent,this._keys,this._values)};var IC=a9;function a9(y,g){this.layers=y.readFields(o9,{},g)}function o9(y,g,z){if(y===3){var V=new pm(z,z.readVarint()+z.pos);V.length&&(g[V.name]=V)}}var RC=IC,C1=dM,DC=pm,vm={VectorTile:RC,VectorTileFeature:C1,VectorTileLayer:DC},FC=vm.VectorTileFeature.types,Bw=500,L1=Math.pow(2,13);function fy(y,g,z,V,$,oe,ye,We){y.emplaceBack(g,z,Math.floor(V*L1)*2+ye,$*L1*2,oe*L1*2,Math.round(We))}var Vv=function(g){this.zoom=g.zoom,this.overscaling=g.overscaling,this.layers=g.layers,this.layerIds=this.layers.map(function(z){return z.id}),this.index=g.index,this.hasPattern=!1,this.layoutVertexArray=new En,this.indexArray=new Va,this.programConfigurations=new Ki(g.layers,g.zoom),this.segments=new cu,this.stateDependentLayerIds=this.layers.filter(function(z){return z.isStateDependent()}).map(function(z){return z.id})};Vv.prototype.populate=function(g,z,V){this.features=[],this.hasPattern=Fw("fill-extrusion",this.layers,z);for(var $=0,oe=g;$=1){var _o=Wn[bo-1];if(!s9(ba,_o)){Pr.vertexLength+4>cu.MAX_VERTEX_ARRAY_LENGTH&&(Pr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Uo=ba.sub(_o)._perp()._unit(),Zs=_o.dist(ba);bn+Zs>32768&&(bn=0),fy(this.layoutVertexArray,ba.x,ba.y,Uo.x,Uo.y,0,0,bn),fy(this.layoutVertexArray,ba.x,ba.y,Uo.x,Uo.y,0,1,bn),bn+=Zs,fy(this.layoutVertexArray,_o.x,_o.y,Uo.x,Uo.y,0,0,bn),fy(this.layoutVertexArray,_o.x,_o.y,Uo.x,Uo.y,0,1,bn);var Cl=Pr.vertexLength;this.indexArray.emplaceBack(Cl,Cl+2,Cl+1),this.indexArray.emplaceBack(Cl+1,Cl+2,Cl+3),Pr.vertexLength+=4,Pr.primitiveLength+=2}}}}if(Pr.vertexLength+Rt>cu.MAX_VERTEX_ARRAY_LENGTH&&(Pr=this.segments.prepareSegment(Rt,this.layoutVertexArray,this.indexArray)),FC[g.type]==="Polygon"){for(var Tl=[],hu=[],Kl=Pr.vertexLength,lu=0,Bu=xt;luAn)||y.y===g.y&&(y.y<0||y.y>An)}function l9(y){return y.every(function(g){return g.x<0})||y.every(function(g){return g.x>An})||y.every(function(g){return g.y<0})||y.every(function(g){return g.y>An})}var P1=new fi({"fill-extrusion-opacity":new Be(ji["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new qt(ji["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Be(ji["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Be(ji["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new ar(ji["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new qt(ji["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new qt(ji["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Be(ji["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),ld={paint:P1},cy=function(y){function g(z){y.call(this,z,ld)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.createBucket=function(V){return new Vv(V)},g.prototype.queryRadius=function(){return kp(this.paint.get("fill-extrusion-translate"))},g.prototype.is3D=function(){return!0},g.prototype.queryIntersectsFeature=function(V,$,oe,ye,We,xt,Rt,Xt){var br=Kp(V,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),xt.angle,Rt),Or=this.paint.get("fill-extrusion-height").evaluate($,oe),Pr=this.paint.get("fill-extrusion-base").evaluate($,oe),ai=u9(br,Xt,xt,0),qi=mM(ye,Pr,Or,Xt),Wn=qi[0],bn=qi[1];return BC(Wn,bn,ai)},g}(on);function cg(y,g){return y.x*g.x+y.y*g.y}function vM(y,g){if(y.length===1){for(var z=0,V=g[z++],$;!$||V.equals($);)if($=g[z++],!$)return 1/0;for(;z=2&&g[Rt-1].equals(g[Rt-2]);)Rt--;for(var Xt=0;Xt0;if(Tl&&bo>Xt){var Kl=Pr.dist(ai);if(Kl>2*br){var lu=Pr.sub(Pr.sub(ai)._mult(br/Kl)._round());this.updateDistance(ai,lu),this.addCurrentVertex(lu,Wn,0,0,Or),ai=lu}}var Bu=ai&&qi,du=Bu?V:xt?"butt":$;if(Bu&&du==="round"&&(Zsoe&&(du="bevel"),du==="bevel"&&(Zs>2&&(du="flipbevel"),Zs100)ba=bn.mult(-1);else{var gu=Zs*Wn.add(bn).mag()/Wn.sub(bn).mag();ba._perp()._mult(gu*(hu?-1:1))}this.addCurrentVertex(Pr,ba,0,0,Or),this.addCurrentVertex(Pr,ba.mult(-1),0,0,Or)}else if(du==="bevel"||du==="fakeround"){var ff=-Math.sqrt(Zs*Zs-1),Ru=hu?ff:0,If=hu?0:ff;if(ai&&this.addCurrentVertex(Pr,Wn,Ru,If,Or),du==="fakeround")for(var sc=Math.round(Cl*180/Math.PI/gM),Rf=1;Rf2*br){var _h=Pr.add(qi.sub(Pr)._mult(br/Kh)._round());this.updateDistance(Pr,_h),this.addCurrentVertex(_h,bn,0,0,Or),Pr=_h}}}}},mh.prototype.addCurrentVertex=function(g,z,V,$,oe,ye){ye===void 0&&(ye=!1);var We=z.x+z.y*V,xt=z.y-z.x*V,Rt=-z.x+z.y*$,Xt=-z.y-z.x*$;this.addHalfVertex(g,We,xt,ye,!1,V,oe),this.addHalfVertex(g,Rt,Xt,ye,!0,-$,oe),this.distance>tb/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(g,z,V,$,oe,ye))},mh.prototype.addHalfVertex=function(g,z,V,$,oe,ye,We){var xt=g.x,Rt=g.y,Xt=this.lineClips?this.scaledDistance*(tb-1):this.scaledDistance,br=Xt*qw;if(this.layoutVertexArray.emplaceBack((xt<<1)+($?1:0),(Rt<<1)+(oe?1:0),Math.round(Ow*z)+128,Math.round(Ow*V)+128,(ye===0?0:ye<0?-1:1)+1|(br&63)<<2,br>>6),this.lineClips){var Or=this.scaledDistance-this.lineClips.start,Pr=this.lineClips.end-this.lineClips.start,ai=Or/Pr;this.layoutVertexArray2.emplaceBack(ai,this.lineClipsArray.length)}var qi=We.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,qi),We.primitiveLength++),oe?this.e2=qi:this.e1=qi},mh.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},mh.prototype.updateDistance=function(g,z){this.distance+=g.dist(z),this.updateScaledDistance()},Z("LineBucket",mh,{omit:["layers","patternFeatures"]});var _M=new fi({"line-cap":new Be(ji.layout_line["line-cap"]),"line-join":new qt(ji.layout_line["line-join"]),"line-miter-limit":new Be(ji.layout_line["line-miter-limit"]),"line-round-limit":new Be(ji.layout_line["line-round-limit"]),"line-sort-key":new qt(ji.layout_line["line-sort-key"])}),xM=new fi({"line-opacity":new qt(ji.paint_line["line-opacity"]),"line-color":new qt(ji.paint_line["line-color"]),"line-translate":new Be(ji.paint_line["line-translate"]),"line-translate-anchor":new Be(ji.paint_line["line-translate-anchor"]),"line-width":new qt(ji.paint_line["line-width"]),"line-gap-width":new qt(ji.paint_line["line-gap-width"]),"line-offset":new qt(ji.paint_line["line-offset"]),"line-blur":new qt(ji.paint_line["line-blur"]),"line-dasharray":new Qr(ji.paint_line["line-dasharray"]),"line-pattern":new ar(ji.paint_line["line-pattern"]),"line-gradient":new vi(ji.paint_line["line-gradient"])}),Nw={paint:xM,layout:_M},c9=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.possiblyEvaluate=function(V,$){return $=new ds(Math.floor($.zoom),{now:$.now,fadeDuration:$.fadeDuration,zoomHistory:$.zoomHistory,transition:$.transition}),y.prototype.possiblyEvaluate.call(this,V,$)},g.prototype.evaluate=function(V,$,oe,ye){return $=_({},$,{zoom:Math.floor($.zoom)}),y.prototype.evaluate.call(this,V,$,oe,ye)},g}(qt),I=new c9(Nw.paint.properties["line-width"].specification);I.useIntegerZoom=!0;var M=function(y){function g(z){y.call(this,z,Nw),this.gradientVersion=0}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._handleSpecialPaintPropertyUpdate=function(V){if(V==="line-gradient"){var $=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=$._styleExpression.expression instanceof Do,this.gradientVersion=(this.gradientVersion+1)%d}},g.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},g.prototype.recalculate=function(V,$){y.prototype.recalculate.call(this,V,$),this.paint._values["line-floorwidth"]=I.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,V)},g.prototype.createBucket=function(V){return new mh(V)},g.prototype.queryRadius=function(V){var $=V,oe=D(Md("line-width",this,$),Md("line-gap-width",this,$)),ye=Md("line-offset",this,$);return oe/2+Math.abs(ye)+kp(this.paint.get("line-translate"))},g.prototype.queryIntersectsFeature=function(V,$,oe,ye,We,xt,Rt){var Xt=Kp(V,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),xt.angle,Rt),br=Rt/2*D(this.paint.get("line-width").evaluate($,oe),this.paint.get("line-gap-width").evaluate($,oe)),Or=this.paint.get("line-offset").evaluate($,oe);return Or&&(ye=X(ye,Or*Rt)),Uf(Xt,ye,br)},g.prototype.isTileClipped=function(){return!0},g}(on);function D(y,g){return g>0?g+2*y:y}function X(y,g){for(var z=[],V=new l(0,0),$=0;$":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};function La(y){for(var g="",z=0;z>1,Xt=-7,br=z?$-1:0,Or=z?-1:1,Pr=y[g+br];for(br+=Or,oe=Pr&(1<<-Xt)-1,Pr>>=-Xt,Xt+=We;Xt>0;oe=oe*256+y[g+br],br+=Or,Xt-=8);for(ye=oe&(1<<-Xt)-1,oe>>=-Xt,Xt+=V;Xt>0;ye=ye*256+y[g+br],br+=Or,Xt-=8);if(oe===0)oe=1-Rt;else{if(oe===xt)return ye?NaN:(Pr?-1:1)*(1/0);ye=ye+Math.pow(2,V),oe=oe-Rt}return(Pr?-1:1)*ye*Math.pow(2,oe-V)},mu=function(y,g,z,V,$,oe){var ye,We,xt,Rt=oe*8-$-1,Xt=(1<>1,Or=$===23?Math.pow(2,-24)-Math.pow(2,-77):0,Pr=V?0:oe-1,ai=V?1:-1,qi=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===1/0?(We=isNaN(g)?1:0,ye=Xt):(ye=Math.floor(Math.log(g)/Math.LN2),g*(xt=Math.pow(2,-ye))<1&&(ye--,xt*=2),ye+br>=1?g+=Or/xt:g+=Or*Math.pow(2,1-br),g*xt>=2&&(ye++,xt/=2),ye+br>=Xt?(We=0,ye=Xt):ye+br>=1?(We=(g*xt-1)*Math.pow(2,$),ye=ye+br):(We=g*Math.pow(2,br-1)*Math.pow(2,$),ye=0));$>=8;y[z+Pr]=We&255,Pr+=ai,We/=256,$-=8);for(ye=ye<<$|We,Rt+=$;Rt>0;y[z+Pr]=ye&255,Pr+=ai,ye/=256,Rt-=8);y[z+Pr-ai]|=qi*128},Iu={read:kl,write:mu},su=yl;function yl(y){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(y)?y:new Uint8Array(y||0),this.pos=0,this.type=0,this.length=this.buf.length}yl.Varint=0,yl.Fixed64=1,yl.Bytes=2,yl.Fixed32=5;var Eu=65536*65536,bu=1/Eu,_u=12,Xs=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");yl.prototype={destroy:function(){this.buf=null},readFields:function(y,g,z){for(z=z||this.length;this.pos>3,oe=this.pos;this.type=V&7,y($,g,this),this.pos===oe&&this.skip(V)}return g},readMessage:function(y,g){return this.readFields(y,g,this.readVarint()+this.pos)},readFixed32:function(){var y=Xh(this.buf,this.pos);return this.pos+=4,y},readSFixed32:function(){var y=zp(this.buf,this.pos);return this.pos+=4,y},readFixed64:function(){var y=Xh(this.buf,this.pos)+Xh(this.buf,this.pos+4)*Eu;return this.pos+=8,y},readSFixed64:function(){var y=Xh(this.buf,this.pos)+zp(this.buf,this.pos+4)*Eu;return this.pos+=8,y},readFloat:function(){var y=Iu.read(this.buf,this.pos,!0,23,4);return this.pos+=4,y},readDouble:function(){var y=Iu.read(this.buf,this.pos,!0,52,8);return this.pos+=8,y},readVarint:function(y){var g=this.buf,z,V;return V=g[this.pos++],z=V&127,V<128||(V=g[this.pos++],z|=(V&127)<<7,V<128)||(V=g[this.pos++],z|=(V&127)<<14,V<128)||(V=g[this.pos++],z|=(V&127)<<21,V<128)?z:(V=g[this.pos],z|=(V&15)<<28,Lu(z,y,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var y=this.readVarint();return y%2===1?(y+1)/-2:y/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var y=this.readVarint()+this.pos,g=this.pos;return this.pos=y,y-g>=_u&&Xs?jf(this.buf,g,y):fp(this.buf,g,y)},readBytes:function(){var y=this.readVarint()+this.pos,g=this.buf.subarray(this.pos,y);return this.pos=y,g},readPackedVarint:function(y,g){if(this.type!==yl.Bytes)return y.push(this.readVarint(g));var z=xu(this);for(y=y||[];this.pos127;);else if(g===yl.Bytes)this.pos=this.readVarint()+this.pos;else if(g===yl.Fixed32)this.pos+=4;else if(g===yl.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+g)},writeTag:function(y,g){this.writeVarint(y<<3|g)},realloc:function(y){for(var g=this.length||16;g268435455||y<0){vc(y,this);return}this.realloc(4),this.buf[this.pos++]=y&127|(y>127?128:0),!(y<=127)&&(this.buf[this.pos++]=(y>>>=7)&127|(y>127?128:0),!(y<=127)&&(this.buf[this.pos++]=(y>>>=7)&127|(y>127?128:0),!(y<=127)&&(this.buf[this.pos++]=y>>>7&127)))},writeSVarint:function(y){this.writeVarint(y<0?-y*2-1:y*2)},writeBoolean:function(y){this.writeVarint(!!y)},writeString:function(y){y=String(y),this.realloc(y.length*4),this.pos++;var g=this.pos;this.pos=Ac(this.buf,y,this.pos);var z=this.pos-g;z>=128&&$p(g,z,this),this.pos=g-1,this.writeVarint(z),this.pos+=z},writeFloat:function(y){this.realloc(4),Iu.write(this.buf,y,this.pos,!0,23,4),this.pos+=4},writeDouble:function(y){this.realloc(8),Iu.write(this.buf,y,this.pos,!0,52,8),this.pos+=8},writeBytes:function(y){var g=y.length;this.writeVarint(g),this.realloc(g);for(var z=0;z=128&&$p(z,V,this),this.pos=z-1,this.writeVarint(V),this.pos+=V},writeMessage:function(y,g,z){this.writeTag(y,yl.Bytes),this.writeRawMessage(g,z)},writePackedVarint:function(y,g){g.length&&this.writeMessage(y,ud,g)},writePackedSVarint:function(y,g){g.length&&this.writeMessage(y,Lh,g)},writePackedBoolean:function(y,g){g.length&&this.writeMessage(y,Xd,g)},writePackedFloat:function(y,g){g.length&&this.writeMessage(y,Wd,g)},writePackedDouble:function(y,g){g.length&&this.writeMessage(y,jd,g)},writePackedFixed32:function(y,g){g.length&&this.writeMessage(y,Kc,g)},writePackedSFixed32:function(y,g){g.length&&this.writeMessage(y,Ph,g)},writePackedFixed64:function(y,g){g.length&&this.writeMessage(y,Cd,g)},writePackedSFixed64:function(y,g){g.length&&this.writeMessage(y,fd,g)},writeBytesField:function(y,g){this.writeTag(y,yl.Bytes),this.writeBytes(g)},writeFixed32Field:function(y,g){this.writeTag(y,yl.Fixed32),this.writeFixed32(g)},writeSFixed32Field:function(y,g){this.writeTag(y,yl.Fixed32),this.writeSFixed32(g)},writeFixed64Field:function(y,g){this.writeTag(y,yl.Fixed64),this.writeFixed64(g)},writeSFixed64Field:function(y,g){this.writeTag(y,yl.Fixed64),this.writeSFixed64(g)},writeVarintField:function(y,g){this.writeTag(y,yl.Varint),this.writeVarint(g)},writeSVarintField:function(y,g){this.writeTag(y,yl.Varint),this.writeSVarint(g)},writeStringField:function(y,g){this.writeTag(y,yl.Bytes),this.writeString(g)},writeFloatField:function(y,g){this.writeTag(y,yl.Fixed32),this.writeFloat(g)},writeDoubleField:function(y,g){this.writeTag(y,yl.Fixed64),this.writeDouble(g)},writeBooleanField:function(y,g){this.writeVarintField(y,!!g)}};function Lu(y,g,z){var V=z.buf,$,oe;if(oe=V[z.pos++],$=(oe&112)>>4,oe<128||(oe=V[z.pos++],$|=(oe&127)<<3,oe<128)||(oe=V[z.pos++],$|=(oe&127)<<10,oe<128)||(oe=V[z.pos++],$|=(oe&127)<<17,oe<128)||(oe=V[z.pos++],$|=(oe&127)<<24,oe<128)||(oe=V[z.pos++],$|=(oe&1)<<31,oe<128))return Ou(y,$,g);throw new Error("Expected varint not more than 10 bytes")}function xu(y){return y.type===yl.Bytes?y.readVarint()+y.pos:y.pos+1}function Ou(y,g,z){return z?g*4294967296+(y>>>0):(g>>>0)*4294967296+(y>>>0)}function vc(y,g){var z,V;if(y>=0?(z=y%4294967296|0,V=y/4294967296|0):(z=~(-y%4294967296),V=~(-y/4294967296),z^4294967295?z=z+1|0:(z=0,V=V+1|0)),y>=18446744073709552e3||y<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");g.realloc(10),cc(z,V,g),Ch(V,g)}function cc(y,g,z){z.buf[z.pos++]=y&127|128,y>>>=7,z.buf[z.pos++]=y&127|128,y>>>=7,z.buf[z.pos++]=y&127|128,y>>>=7,z.buf[z.pos++]=y&127|128,y>>>=7,z.buf[z.pos]=y&127}function Ch(y,g){var z=(y&7)<<4;g.buf[g.pos++]|=z|((y>>>=3)?128:0),y&&(g.buf[g.pos++]=y&127|((y>>>=7)?128:0),y&&(g.buf[g.pos++]=y&127|((y>>>=7)?128:0),y&&(g.buf[g.pos++]=y&127|((y>>>=7)?128:0),y&&(g.buf[g.pos++]=y&127|((y>>>=7)?128:0),y&&(g.buf[g.pos++]=y&127)))))}function $p(y,g,z){var V=g<=16383?1:g<=2097151?2:g<=268435455?3:Math.floor(Math.log(g)/(Math.LN2*7));z.realloc(V);for(var $=z.pos-1;$>=y;$--)z.buf[$+V]=z.buf[$]}function ud(y,g){for(var z=0;z>>8,y[z+2]=g>>>16,y[z+3]=g>>>24}function zp(y,g){return(y[g]|y[g+1]<<8|y[g+2]<<16)+(y[g+3]<<24)}function fp(y,g,z){for(var V="",$=g;$239?4:oe>223?3:oe>191?2:1;if($+We>z)break;var xt,Rt,Xt;We===1?oe<128&&(ye=oe):We===2?(xt=y[$+1],(xt&192)===128&&(ye=(oe&31)<<6|xt&63,ye<=127&&(ye=null))):We===3?(xt=y[$+1],Rt=y[$+2],(xt&192)===128&&(Rt&192)===128&&(ye=(oe&15)<<12|(xt&63)<<6|Rt&63,(ye<=2047||ye>=55296&&ye<=57343)&&(ye=null))):We===4&&(xt=y[$+1],Rt=y[$+2],Xt=y[$+3],(xt&192)===128&&(Rt&192)===128&&(Xt&192)===128&&(ye=(oe&15)<<18|(xt&63)<<12|(Rt&63)<<6|Xt&63,(ye<=65535||ye>=1114112)&&(ye=null))),ye===null?(ye=65533,We=1):ye>65535&&(ye-=65536,V+=String.fromCharCode(ye>>>10&1023|55296),ye=56320|ye&1023),V+=String.fromCharCode(ye),$+=We}return V}function jf(y,g,z){return Xs.decode(y.subarray(g,z))}function Ac(y,g,z){for(var V=0,$,oe;V55295&&$<57344)if(oe)if($<56320){y[z++]=239,y[z++]=191,y[z++]=189,oe=$;continue}else $=oe-55296<<10|$-56320|65536,oe=null;else{$>56319||V+1===g.length?(y[z++]=239,y[z++]=191,y[z++]=189):oe=$;continue}else oe&&(y[z++]=239,y[z++]=191,y[z++]=189,oe=null);$<128?y[z++]=$:($<2048?y[z++]=$>>6|192:($<65536?y[z++]=$>>12|224:(y[z++]=$>>18|240,y[z++]=$>>12&63|128),y[z++]=$>>6&63|128),y[z++]=$&63|128)}return z}var mc=3;function Ip(y,g,z){y===1&&z.readMessage(Gc,g)}function Gc(y,g,z){if(y===3){var V=z.readMessage(z1,{}),$=V.id,oe=V.bitmap,ye=V.width,We=V.height,xt=V.left,Rt=V.top,Xt=V.advance;g.push({id:$,bitmap:new Pp({width:ye+2*mc,height:We+2*mc},oe),metrics:{width:ye,height:We,left:xt,top:Rt,advance:Xt}})}}function z1(y,g,z){y===1?g.id=z.readVarint():y===2?g.bitmap=z.readBytes():y===3?g.width=z.readVarint():y===4?g.height=z.readVarint():y===5?g.left=z.readSVarint():y===6?g.top=z.readSVarint():y===7&&(g.advance=z.readVarint())}function v0(y){return new su(y).readFields(Ip,[])}var Gv=mc;function Qp(y){for(var g=0,z=0,V=0,$=y;V<$.length;V+=1){var oe=$[V];g+=oe.w*oe.h,z=Math.max(z,oe.w)}y.sort(function(Wn,bn){return bn.h-Wn.h});for(var ye=Math.max(Math.ceil(Math.sqrt(g/.95)),z),We=[{x:0,y:0,w:ye,h:1/0}],xt=0,Rt=0,Xt=0,br=y;Xt=0;Pr--){var ai=We[Pr];if(!(Or.w>ai.w||Or.h>ai.h)){if(Or.x=ai.x,Or.y=ai.y,Rt=Math.max(Rt,Or.y+Or.h),xt=Math.max(xt,Or.x+Or.w),Or.w===ai.w&&Or.h===ai.h){var qi=We.pop();Pr=0&&$>=g&&y0[this.text.charCodeAt($)];$--)V--;this.text=this.text.substring(g,V),this.sectionIndex=this.sectionIndex.slice(g,V)},Zh.prototype.substring=function(g,z){var V=new Zh;return V.text=this.text.substring(g,z),V.sectionIndex=this.sectionIndex.slice(g,z),V.sections=this.sections,V},Zh.prototype.toString=function(){return this.text},Zh.prototype.getMaxScale=function(){var g=this;return this.sectionIndex.reduce(function(z,V){return Math.max(z,g.sections[V].scale)},0)},Zh.prototype.addTextSection=function(g,z){this.text+=g.text,this.sections.push(hg.forText(g.scale,g.fontStack||z));for(var V=this.sections.length-1,$=0;$=m0?null:++this.imageSectionID:(this.imageSectionID=Uw,this.imageSectionID)};function h9(y,g){for(var z=[],V=y.text,$=0,oe=0,ye=g;oe=0,Xt=0,br=0;br0&&_h>hu&&(hu=_h)}else{var Df=z[lu.fontStack],zf=Df&&Df[du];if(zf&&zf.rect)Ru=zf.rect,ff=zf.metrics;else{var yc=g[lu.fontStack],Tc=yc&&yc[du];if(!Tc)continue;ff=Tc.metrics}gu=(Uo-lu.scale)*So}Rf?(y.verticalizable=!0,Tl.push({glyph:du,imageName:If,x:Or,y:Pr+gu,vertical:Rf,scale:lu.scale,fontStack:lu.fontStack,sectionIndex:Bu,metrics:ff,rect:Ru}),Or+=sc*lu.scale+Rt):(Tl.push({glyph:du,imageName:If,x:Or,y:Pr+gu,vertical:Rf,scale:lu.scale,fontStack:lu.fontStack,sectionIndex:Bu,metrics:ff,rect:Ru}),Or+=ff.advance*lu.scale+Rt)}if(Tl.length!==0){var Yd=Or-Rt;ai=Math.max(Yd,ai),m9(Tl,0,Tl.length-1,Wn,hu)}Or=0;var Kd=oe*Uo+hu;Cl.lineOffset=Math.max(hu,Zs),Pr+=Kd,qi=Math.max(Kd,qi),++bn}var Jh=Pr-I1,dp=wM(ye),pp=dp.horizontalAlign,zh=dp.verticalAlign;Ld(y.positionedLines,Wn,pp,zh,ai,qi,oe,Jh,$.length),y.top+=-zh*Jh,y.bottom=y.top+Jh,y.left+=-pp*ai,y.right=y.left+ai}function m9(y,g,z,V,$){if(!(!V&&!$))for(var oe=y[z],ye=oe.metrics.advance*oe.scale,We=(y[z].x+ye)*V,xt=g;xt<=z;xt++)y[xt].x-=We,y[xt].y+=$}function Ld(y,g,z,V,$,oe,ye,We,xt){var Rt=(g-z)*$,Xt=0;oe!==ye?Xt=-We*V-I1:Xt=(-V*xt+.5)*ye;for(var br=0,Or=y;br-z/2;){if(ye--,ye<0)return!1;We-=y[ye].dist(oe),oe=y[ye]}We+=y[ye].dist(y[ye+1]),ye++;for(var xt=[],Rt=0;WeV;)Rt-=xt.shift().angleDelta;if(Rt>$)return!1;ye++,We+=br.dist(Or)}return!0}function GQ(y){for(var g=0,z=0;zRt){var ai=(Rt-xt)/Pr,qi=Lo(br.x,Or.x,ai),Wn=Lo(br.y,Or.y,ai),bn=new Zd(qi,Wn,Or.angleTo(br),Xt);return bn._round(),!ye||VQ(y,bn,We,ye,g)?bn:void 0}xt+=Pr}}function Uet(y,g,z,V,$,oe,ye,We,xt){var Rt=HQ(V,oe,ye),Xt=WQ(V,$),br=Xt*ye,Or=y[0].x===0||y[0].x===xt||y[0].y===0||y[0].y===xt;g-br=0&&_o=0&&Uo=0&&Or+Rt<=Xt){var Zs=new Zd(_o,Uo,bo,ai);Zs._round(),(!V||VQ(y,Zs,oe,V,$))&&Pr.push(Zs)}}br+=bn}return!We&&!Pr.length&&!ye&&(Pr=jQ(y,br/2,z,V,$,oe,ye,!0,xt)),Pr}function XQ(y,g,z,V,$){for(var oe=[],ye=0;ye=V&&br.x>=V)&&(Xt.x>=V?Xt=new l(V,Xt.y+(br.y-Xt.y)*((V-Xt.x)/(br.x-Xt.x)))._round():br.x>=V&&(br=new l(V,Xt.y+(br.y-Xt.y)*((V-Xt.x)/(br.x-Xt.x)))._round()),!(Xt.y>=$&&br.y>=$)&&(Xt.y>=$?Xt=new l(Xt.x+(br.x-Xt.x)*(($-Xt.y)/(br.y-Xt.y)),$)._round():br.y>=$&&(br=new l(Xt.x+(br.x-Xt.x)*(($-Xt.y)/(br.y-Xt.y)),$)._round()),(!xt||!Xt.equals(xt[xt.length-1]))&&(xt=[Xt],oe.push(xt)),xt.push(br)))))}return oe}var Hw=Rc;function ZQ(y,g,z,V){var $=[],oe=y.image,ye=oe.pixelRatio,We=oe.paddedRect.w-2*Hw,xt=oe.paddedRect.h-2*Hw,Rt=y.right-y.left,Xt=y.bottom-y.top,br=oe.stretchX||[[0,We]],Or=oe.stretchY||[[0,xt]],Pr=function(Df,zf){return Df+zf[1]-zf[0]},ai=br.reduce(Pr,0),qi=Or.reduce(Pr,0),Wn=We-ai,bn=xt-qi,bo=0,ba=ai,_o=0,Uo=qi,Zs=0,Cl=Wn,Tl=0,hu=bn;if(oe.content&&V){var Kl=oe.content;bo=WC(br,0,Kl[0]),_o=WC(Or,0,Kl[1]),ba=WC(br,Kl[0],Kl[2]),Uo=WC(Or,Kl[1],Kl[3]),Zs=Kl[0]-bo,Tl=Kl[1]-_o,Cl=Kl[2]-Kl[0]-ba,hu=Kl[3]-Kl[1]-Uo}var lu=function(Df,zf,yc,Tc){var Jc=jC(Df.stretch-bo,ba,Rt,y.left),ih=XC(Df.fixed-Zs,Cl,Df.stretch,ai),Kh=jC(zf.stretch-_o,Uo,Xt,y.top),_h=XC(zf.fixed-Tl,hu,zf.stretch,qi),Yd=jC(yc.stretch-bo,ba,Rt,y.left),Kd=XC(yc.fixed-Zs,Cl,yc.stretch,ai),Jh=jC(Tc.stretch-_o,Uo,Xt,y.top),dp=XC(Tc.fixed-Tl,hu,Tc.stretch,qi),pp=new l(Jc,Kh),zh=new l(Yd,Kh),vp=new l(Yd,Jh),gv=new l(Jc,Jh),vg=new l(ih/ye,_h/ye),F1=new l(Kd/ye,dp/ye),B1=g*Math.PI/180;if(B1){var O1=Math.sin(B1),$w=Math.cos(B1),g0=[$w,-O1,O1,$w];pp._matMult(g0),zh._matMult(g0),gv._matMult(g0),vp._matMult(g0)}var QC=Df.stretch+Df.fixed,T9=yc.stretch+yc.fixed,eL=zf.stretch+zf.fixed,S9=Tc.stretch+Tc.fixed,Hv={x:oe.paddedRect.x+Hw+QC,y:oe.paddedRect.y+Hw+eL,w:T9-QC,h:S9-eL},Qw=Cl/ye/Rt,tL=hu/ye/Xt;return{tl:pp,tr:zh,bl:gv,br:vp,tex:Hv,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:vg,pixelOffsetBR:F1,minFontScaleX:Qw,minFontScaleY:tL,isSDF:z}};if(!V||!oe.stretchX&&!oe.stretchY)$.push(lu({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:We+1},{fixed:0,stretch:xt+1}));else for(var Bu=YQ(br,Wn,ai),du=YQ(Or,bn,qi),gu=0;gu0&&(ai=Math.max(10,ai),this.circleDiameter=ai)}else{var qi=ye.top*We-xt,Wn=ye.bottom*We+xt,bn=ye.left*We-xt,bo=ye.right*We+xt,ba=ye.collisionPadding;if(ba&&(bn-=ba[0]*We,qi-=ba[1]*We,bo+=ba[2]*We,Wn+=ba[3]*We),Xt){var _o=new l(bn,qi),Uo=new l(bo,qi),Zs=new l(bn,Wn),Cl=new l(bo,Wn),Tl=Xt*Math.PI/180;_o._rotate(Tl),Uo._rotate(Tl),Zs._rotate(Tl),Cl._rotate(Tl),bn=Math.min(_o.x,Uo.x,Zs.x,Cl.x),bo=Math.max(_o.x,Uo.x,Zs.x,Cl.x),qi=Math.min(_o.y,Uo.y,Zs.y,Cl.y),Wn=Math.max(_o.y,Uo.y,Zs.y,Cl.y)}g.emplaceBack(z.x,z.y,bn,qi,bo,Wn,V,$,oe)}this.boxEndIndex=g.length},Ww=function(g,z){if(g===void 0&&(g=[]),z===void 0&&(z=Get),this.data=g,this.length=this.data.length,this.compare=z,this.length>0)for(var V=(this.length>>1)-1;V>=0;V--)this._down(V)};Ww.prototype.push=function(g){this.data.push(g),this.length++,this._up(this.length-1)},Ww.prototype.pop=function(){if(this.length!==0){var g=this.data[0],z=this.data.pop();return this.length--,this.length>0&&(this.data[0]=z,this._down(0)),g}},Ww.prototype.peek=function(){return this.data[0]},Ww.prototype._up=function(g){for(var z=this,V=z.data,$=z.compare,oe=V[g];g>0;){var ye=g-1>>1,We=V[ye];if($(oe,We)>=0)break;V[g]=We,g=ye}V[g]=oe},Ww.prototype._down=function(g){for(var z=this,V=z.data,$=z.compare,oe=this.length>>1,ye=V[g];g=0)break;V[g]=xt,g=We}V[g]=ye};function Get(y,g){return yg?1:0}function Het(y,g,z){g===void 0&&(g=1),z===void 0&&(z=!1);for(var V=1/0,$=1/0,oe=-1/0,ye=-1/0,We=y[0],xt=0;xtoe)&&(oe=Rt.x),(!xt||Rt.y>ye)&&(ye=Rt.y)}var Xt=oe-V,br=ye-$,Or=Math.min(Xt,br),Pr=Or/2,ai=new Ww([],Wet);if(Or===0)return new l(V,$);for(var qi=V;qibn.d||!bn.d)&&(bn=ba,z&&console.log("found best %d after %d probes",Math.round(1e4*ba.d)/1e4,bo)),!(ba.max-bn.d<=g)&&(Pr=ba.h/2,ai.push(new jw(ba.p.x-Pr,ba.p.y-Pr,Pr,y)),ai.push(new jw(ba.p.x+Pr,ba.p.y-Pr,Pr,y)),ai.push(new jw(ba.p.x-Pr,ba.p.y+Pr,Pr,y)),ai.push(new jw(ba.p.x+Pr,ba.p.y+Pr,Pr,y)),bo+=4)}return z&&(console.log("num probes: "+bo),console.log("best distance: "+bn.d)),bn.p}function Wet(y,g){return g.max-y.max}function jw(y,g,z,V){this.p=new l(y,g),this.h=z,this.d=jet(this.p,V),this.max=this.d+this.h*Math.SQRT2}function jet(y,g){for(var z=!1,V=1/0,$=0;$y.y!=Xt.y>y.y&&y.x<(Xt.x-Rt.x)*(y.y-Rt.y)/(Xt.y-Rt.y)+Rt.x&&(z=!z),V=Math.min(V,fm(y,Rt,Xt))}return(z?1:-1)*Math.sqrt(V)}function Xet(y){for(var g=0,z=0,V=0,$=y[0],oe=0,ye=$.length,We=ye-1;oe=An||g0.y<0||g0.y>=An||Ket(y,g0,$w,z,V,$,du,y.layers[0],y.collisionBoxArray,g.index,g.sourceLayerIndex,y.index,bn,Uo,Tl,xt,ba,Zs,hu,Pr,g,oe,Rt,Xt,ye)};if(Kl==="line")for(var ff=0,Ru=XQ(g.geometry,0,0,An,An);ff1){var Kh=Net(ih,Cl,z.vertical||ai,V,qi,bo);Kh&&gu(ih,Kh)}}else if(g.type==="Polygon")for(var _h=0,Yd=Dw(g.geometry,0);_hR1&&re(y.layerIds[0]+': Value for "text-size" is >= '+AM+'. Reduce your "text-size".')):Wn.kind==="composite"&&(bn=[Pd*Pr.compositeTextSizes[0].evaluate(ye,{},ai),Pd*Pr.compositeTextSizes[1].evaluate(ye,{},ai)],(bn[0]>R1||bn[1]>R1)&&re(y.layerIds[0]+': Value for "text-size" is >= '+AM+'. Reduce your "text-size".')),y.addSymbols(y.text,qi,bn,We,oe,ye,Rt,g,xt.lineStartIndex,xt.lineLength,Or,ai);for(var bo=0,ba=Xt;boR1&&re(y.layerIds[0]+': Value for "icon-size" is >= '+AM+'. Reduce your "icon-size".')):pp.kind==="composite"&&(zh=[Pd*Uo.compositeIconSizes[0].evaluate(_o,{},Cl),Pd*Uo.compositeIconSizes[1].evaluate(_o,{},Cl)],(zh[0]>R1||zh[1]>R1)&&re(y.layerIds[0]+': Value for "icon-size" is >= '+AM+'. Reduce your "icon-size".')),y.addSymbols(y.icon,Jh,zh,ba,bo,_o,!1,g,Kl.lineStartIndex,Kl.lineLength,-1,Cl),Rf=y.icon.placedSymbolArray.length-1,dp&&(Ru=dp.length*4,y.addSymbols(y.icon,dp,zh,ba,bo,_o,cp.vertical,g,Kl.lineStartIndex,Kl.lineLength,-1,Cl),Df=y.icon.placedSymbolArray.length-1)}for(var vp in V.horizontal){var gv=V.horizontal[vp];if(!lu){yc=K(gv.text);var vg=We.layout.get("text-rotate").evaluate(_o,{},Cl);lu=new ZC(xt,g,Rt,Xt,br,gv,Or,Pr,ai,vg)}var F1=gv.positionedLines.length===1;if(If+=JQ(y,g,gv,oe,We,ai,_o,qi,Kl,V.vertical?cp.horizontal:cp.horizontalOnly,F1?Object.keys(V.horizontal):[vp],zf,Rf,Uo,Cl),F1)break}V.vertical&&(sc+=JQ(y,g,V.vertical,oe,We,ai,_o,qi,Kl,cp.vertical,["vertical"],zf,Df,Uo,Cl));var B1=lu?lu.boxStartIndex:y.collisionBoxArray.length,O1=lu?lu.boxEndIndex:y.collisionBoxArray.length,$w=du?du.boxStartIndex:y.collisionBoxArray.length,g0=du?du.boxEndIndex:y.collisionBoxArray.length,QC=Bu?Bu.boxStartIndex:y.collisionBoxArray.length,T9=Bu?Bu.boxEndIndex:y.collisionBoxArray.length,eL=gu?gu.boxStartIndex:y.collisionBoxArray.length,S9=gu?gu.boxEndIndex:y.collisionBoxArray.length,Hv=-1,Qw=function(MM,pee){return MM&&MM.circleDiameter?Math.max(MM.circleDiameter,pee):pee};Hv=Qw(lu,Hv),Hv=Qw(du,Hv),Hv=Qw(Bu,Hv),Hv=Qw(gu,Hv);var tL=Hv>-1?1:0;tL&&(Hv*=Tl/So),y.glyphOffsetArray.length>=oc.MAX_GLYPHS&&re("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),_o.sortKey!==void 0&&y.addToSortKeyRanges(y.symbolInstances.length,_o.sortKey),y.symbolInstances.emplaceBack(g.x,g.y,zf.right>=0?zf.right:-1,zf.center>=0?zf.center:-1,zf.left>=0?zf.left:-1,zf.vertical||-1,Rf,Df,yc,B1,O1,$w,g0,QC,T9,eL,S9,Rt,If,sc,ff,Ru,tL,0,Or,Tc,Jc,Hv)}function Jet(y,g,z,V){var $=y.compareText;if(!(g in $))$[g]=[];else for(var oe=$[g],ye=oe.length-1;ye>=0;ye--)if(V.dist(oe[ye])0)&&(ye.value.kind!=="constant"||ye.value.value.length>0),Xt=xt.value.kind!=="constant"||!!xt.value.value||Object.keys(xt.parameters).length>0,br=oe.get("symbol-sort-key");if(this.features=[],!(!Rt&&!Xt)){for(var Or=z.iconDependencies,Pr=z.glyphDependencies,ai=z.availableImages,qi=new ds(this.zoom),Wn=0,bn=g;Wn=0;for(var sc=0,Rf=hu.sections;sc=0;xt--)ye[xt]={x:z[xt].x,y:z[xt].y,tileUnitDistanceFromAnchor:oe},xt>0&&(oe+=z[xt-1].dist(z[xt]));for(var Rt=0;Rt0},oc.prototype.hasIconData=function(){return this.icon.segments.get().length>0},oc.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},oc.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},oc.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},oc.prototype.addIndicesForPlacedSymbol=function(g,z){for(var V=g.placedSymbolArray.get(z),$=V.vertexStartIndex+V.numGlyphs*4,oe=V.vertexStartIndex;oe<$;oe+=4)g.indexArray.emplaceBack(oe,oe+1,oe+2),g.indexArray.emplaceBack(oe+1,oe+2,oe+3)},oc.prototype.getSortedSymbolIndexes=function(g){if(this.sortedAngle===g&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;for(var z=Math.sin(g),V=Math.cos(g),$=[],oe=[],ye=[],We=0;We1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(g),this.sortedAngle=g,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var V=0,$=this.symbolInstanceIndexes;V<$.length;V+=1){var oe=$[V],ye=this.symbolInstances.get(oe);this.featureSortOrder.push(ye.featureIndex),[ye.rightJustifiedTextSymbolIndex,ye.centerJustifiedTextSymbolIndex,ye.leftJustifiedTextSymbolIndex].forEach(function(We,xt,Rt){We>=0&&Rt.indexOf(We)===xt&&z.addIndicesForPlacedSymbol(z.text,We)}),ye.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,ye.verticalPlacedTextSymbolIndex),ye.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,ye.placedIconSymbolIndex),ye.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,ye.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Z("SymbolBucket",oc,{omit:["layers","collisionBoxArray","features","compareText"]}),oc.MAX_GLYPHS=65535,oc.addDynamicAttributes=_9;function ttt(y,g){return g.replace(/{([^{}]+)}/g,function(z,V){return V in y?String(y[V]):""})}var rtt=new fi({"symbol-placement":new Be(ji.layout_symbol["symbol-placement"]),"symbol-spacing":new Be(ji.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Be(ji.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new qt(ji.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Be(ji.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Be(ji.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Be(ji.layout_symbol["icon-ignore-placement"]),"icon-optional":new Be(ji.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Be(ji.layout_symbol["icon-rotation-alignment"]),"icon-size":new qt(ji.layout_symbol["icon-size"]),"icon-text-fit":new Be(ji.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Be(ji.layout_symbol["icon-text-fit-padding"]),"icon-image":new qt(ji.layout_symbol["icon-image"]),"icon-rotate":new qt(ji.layout_symbol["icon-rotate"]),"icon-padding":new Be(ji.layout_symbol["icon-padding"]),"icon-keep-upright":new Be(ji.layout_symbol["icon-keep-upright"]),"icon-offset":new qt(ji.layout_symbol["icon-offset"]),"icon-anchor":new qt(ji.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Be(ji.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Be(ji.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Be(ji.layout_symbol["text-rotation-alignment"]),"text-field":new qt(ji.layout_symbol["text-field"]),"text-font":new qt(ji.layout_symbol["text-font"]),"text-size":new qt(ji.layout_symbol["text-size"]),"text-max-width":new qt(ji.layout_symbol["text-max-width"]),"text-line-height":new Be(ji.layout_symbol["text-line-height"]),"text-letter-spacing":new qt(ji.layout_symbol["text-letter-spacing"]),"text-justify":new qt(ji.layout_symbol["text-justify"]),"text-radial-offset":new qt(ji.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Be(ji.layout_symbol["text-variable-anchor"]),"text-anchor":new qt(ji.layout_symbol["text-anchor"]),"text-max-angle":new Be(ji.layout_symbol["text-max-angle"]),"text-writing-mode":new Be(ji.layout_symbol["text-writing-mode"]),"text-rotate":new qt(ji.layout_symbol["text-rotate"]),"text-padding":new Be(ji.layout_symbol["text-padding"]),"text-keep-upright":new Be(ji.layout_symbol["text-keep-upright"]),"text-transform":new qt(ji.layout_symbol["text-transform"]),"text-offset":new qt(ji.layout_symbol["text-offset"]),"text-allow-overlap":new Be(ji.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Be(ji.layout_symbol["text-ignore-placement"]),"text-optional":new Be(ji.layout_symbol["text-optional"])}),itt=new fi({"icon-opacity":new qt(ji.paint_symbol["icon-opacity"]),"icon-color":new qt(ji.paint_symbol["icon-color"]),"icon-halo-color":new qt(ji.paint_symbol["icon-halo-color"]),"icon-halo-width":new qt(ji.paint_symbol["icon-halo-width"]),"icon-halo-blur":new qt(ji.paint_symbol["icon-halo-blur"]),"icon-translate":new Be(ji.paint_symbol["icon-translate"]),"icon-translate-anchor":new Be(ji.paint_symbol["icon-translate-anchor"]),"text-opacity":new qt(ji.paint_symbol["text-opacity"]),"text-color":new qt(ji.paint_symbol["text-color"],{runtimeType:vn,getOverride:function(y){return y.textColor},hasOverride:function(y){return!!y.textColor}}),"text-halo-color":new qt(ji.paint_symbol["text-halo-color"]),"text-halo-width":new qt(ji.paint_symbol["text-halo-width"]),"text-halo-blur":new qt(ji.paint_symbol["text-halo-blur"]),"text-translate":new Be(ji.paint_symbol["text-translate"]),"text-translate-anchor":new Be(ji.paint_symbol["text-translate-anchor"])}),x9={paint:itt,layout:rtt},Yw=function(g){this.type=g.property.overrides?g.property.overrides.runtimeType:Qo,this.defaultValue=g};Yw.prototype.evaluate=function(g){if(g.formattedSection){var z=this.defaultValue.property.overrides;if(z&&z.hasOverride(g.formattedSection))return z.getOverride(g.formattedSection)}return g.feature&&g.featureState?this.defaultValue.evaluate(g.feature,g.featureState):this.defaultValue.property.specification.default},Yw.prototype.eachChild=function(g){if(!this.defaultValue.isConstant()){var z=this.defaultValue.value;g(z._styleExpression.expression)}},Yw.prototype.outputDefined=function(){return!1},Yw.prototype.serialize=function(){return null},Z("FormatSectionOverride",Yw,{omit:["defaultValue"]});var ntt=function(y){function g(z){y.call(this,z,x9)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.recalculate=function(V,$){if(y.prototype.recalculate.call(this,V,$),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var oe=this.layout.get("text-writing-mode");if(oe){for(var ye=[],We=0,xt=oe;We",targetMapId:$,sourceMapId:ye.mapId})}}},Kw.prototype.receive=function(g){var z=g.data,V=z.id;if(V&&!(z.targetMapId&&this.mapId!==z.targetMapId))if(z.type===""){delete this.tasks[V];var $=this.cancelCallbacks[V];delete this.cancelCallbacks[V],$&&$()}else Ce()||z.mustQueue?(this.tasks[V]=z,this.taskQueue.push(V),this.invoker.trigger()):this.processTask(V,z)},Kw.prototype.process=function(){if(this.taskQueue.length){var g=this.taskQueue.shift(),z=this.tasks[g];delete this.tasks[g],this.taskQueue.length&&this.invoker.trigger(),z&&this.processTask(g,z)}},Kw.prototype.processTask=function(g,z){var V=this;if(z.type===""){var $=this.callbacks[g];delete this.callbacks[g],$&&(z.error?$(st(z.error)):$(null,st(z.data)))}else{var oe=!1,ye=ke(this.globalScope)?void 0:[],We=z.hasCallback?function(Or,Pr){oe=!0,delete V.cancelCallbacks[g],V.target.postMessage({id:g,type:"",sourceMapId:V.mapId,error:Or?$e(Or):null,data:$e(Pr,ye)},ye)}:function(Or){oe=!0},xt=null,Rt=st(z.data);if(this.parent[z.type])xt=this.parent[z.type](z.sourceMapId,Rt,We);else if(this.parent.getWorkerSource){var Xt=z.type.split("."),br=this.parent.getWorkerSource(z.sourceMapId,Xt[0],Rt.source);xt=br[Xt[1]](Rt,We)}else We(new Error("Could not find function "+z.type));!oe&&xt&&xt.cancel&&(this.cancelCallbacks[g]=xt.cancel)}},Kw.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function vtt(y,g,z){g=Math.pow(2,z)-g-1;var V=iee(y*256,g*256,z),$=iee((y+1)*256,(g+1)*256,z);return V[0]+","+V[1]+","+$[0]+","+$[1]}function iee(y,g,z){var V=2*Math.PI*6378137/256/Math.pow(2,z),$=y*V-2*Math.PI*6378137/2,oe=g*V-2*Math.PI*6378137/2;return[$,oe]}var yh=function(g,z){g&&(z?this.setSouthWest(g).setNorthEast(z):g.length===4?this.setSouthWest([g[0],g[1]]).setNorthEast([g[2],g[3]]):this.setSouthWest(g[0]).setNorthEast(g[1]))};yh.prototype.setNorthEast=function(g){return this._ne=g instanceof Dc?new Dc(g.lng,g.lat):Dc.convert(g),this},yh.prototype.setSouthWest=function(g){return this._sw=g instanceof Dc?new Dc(g.lng,g.lat):Dc.convert(g),this},yh.prototype.extend=function(g){var z=this._sw,V=this._ne,$,oe;if(g instanceof Dc)$=g,oe=g;else if(g instanceof yh){if($=g._sw,oe=g._ne,!$||!oe)return this}else{if(Array.isArray(g))if(g.length===4||g.every(Array.isArray)){var ye=g;return this.extend(yh.convert(ye))}else{var We=g;return this.extend(Dc.convert(We))}return this}return!z&&!V?(this._sw=new Dc($.lng,$.lat),this._ne=new Dc(oe.lng,oe.lat)):(z.lng=Math.min($.lng,z.lng),z.lat=Math.min($.lat,z.lat),V.lng=Math.max(oe.lng,V.lng),V.lat=Math.max(oe.lat,V.lat)),this},yh.prototype.getCenter=function(){return new Dc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},yh.prototype.getSouthWest=function(){return this._sw},yh.prototype.getNorthEast=function(){return this._ne},yh.prototype.getNorthWest=function(){return new Dc(this.getWest(),this.getNorth())},yh.prototype.getSouthEast=function(){return new Dc(this.getEast(),this.getSouth())},yh.prototype.getWest=function(){return this._sw.lng},yh.prototype.getSouth=function(){return this._sw.lat},yh.prototype.getEast=function(){return this._ne.lng},yh.prototype.getNorth=function(){return this._ne.lat},yh.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},yh.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},yh.prototype.isEmpty=function(){return!(this._sw&&this._ne)},yh.prototype.contains=function(g){var z=Dc.convert(g),V=z.lng,$=z.lat,oe=this._sw.lat<=$&&$<=this._ne.lat,ye=this._sw.lng<=V&&V<=this._ne.lng;return this._sw.lng>this._ne.lng&&(ye=this._sw.lng>=V&&V>=this._ne.lng),oe&&ye},yh.convert=function(g){return!g||g instanceof yh?g:new yh(g)};var nee=63710088e-1,Dc=function(g,z){if(isNaN(g)||isNaN(z))throw new Error("Invalid LngLat object: ("+g+", "+z+")");if(this.lng=+g,this.lat=+z,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Dc.prototype.wrap=function(){return new Dc(k(this.lng,-180,180),this.lat)},Dc.prototype.toArray=function(){return[this.lng,this.lat]},Dc.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Dc.prototype.distanceTo=function(g){var z=Math.PI/180,V=this.lat*z,$=g.lat*z,oe=Math.sin(V)*Math.sin($)+Math.cos(V)*Math.cos($)*Math.cos((g.lng-this.lng)*z),ye=nee*Math.acos(Math.min(oe,1));return ye},Dc.prototype.toBounds=function(g){g===void 0&&(g=0);var z=40075017,V=360*g/z,$=V/Math.cos(Math.PI/180*this.lat);return new yh(new Dc(this.lng-$,this.lat-V),new Dc(this.lng+$,this.lat+V))},Dc.convert=function(g){if(g instanceof Dc)return g;if(Array.isArray(g)&&(g.length===2||g.length===3))return new Dc(Number(g[0]),Number(g[1]));if(!Array.isArray(g)&&typeof g=="object"&&g!==null)return new Dc(Number("lng"in g?g.lng:g.lon),Number(g.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var aee=2*Math.PI*nee;function oee(y){return aee*Math.cos(y*Math.PI/180)}function see(y){return(180+y)/360}function lee(y){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+y*Math.PI/360)))/360}function uee(y,g){return y/oee(g)}function mtt(y){return y*360-180}function w9(y){var g=180-y*360;return 360/Math.PI*Math.atan(Math.exp(g*Math.PI/180))-90}function ytt(y,g){return y*oee(w9(g))}function gtt(y){return 1/Math.cos(y*Math.PI/180)}var nb=function(g,z,V){V===void 0&&(V=0),this.x=+g,this.y=+z,this.z=+V};nb.fromLngLat=function(g,z){z===void 0&&(z=0);var V=Dc.convert(g);return new nb(see(V.lng),lee(V.lat),uee(z,V.lat))},nb.prototype.toLngLat=function(){return new Dc(mtt(this.x),w9(this.y))},nb.prototype.toAltitude=function(){return ytt(this.z,this.y)},nb.prototype.meterInMercatorCoordinateUnits=function(){return 1/aee*gtt(w9(this.y))};var ab=function(g,z,V){this.z=g,this.x=z,this.y=V,this.key=SM(0,g,g,z,V)};ab.prototype.equals=function(g){return this.z===g.z&&this.x===g.x&&this.y===g.y},ab.prototype.url=function(g,z){var V=vtt(this.x,this.y,this.z),$=_tt(this.z,this.x,this.y);return g[(this.x+this.y)%g.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(z==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",$).replace("{bbox-epsg-3857}",V)},ab.prototype.getTilePoint=function(g){var z=Math.pow(2,this.z);return new l((g.x*z-this.x)*An,(g.y*z-this.y)*An)},ab.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var fee=function(g,z){this.wrap=g,this.canonical=z,this.key=SM(g,z.z,z.z,z.x,z.y)},gh=function(g,z,V,$,oe){this.overscaledZ=g,this.wrap=z,this.canonical=new ab(V,+$,+oe),this.key=SM(z,g,V,$,oe)};gh.prototype.equals=function(g){return this.overscaledZ===g.overscaledZ&&this.wrap===g.wrap&&this.canonical.equals(g.canonical)},gh.prototype.scaledTo=function(g){var z=this.canonical.z-g;return g>this.canonical.z?new gh(g,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new gh(g,this.wrap,g,this.canonical.x>>z,this.canonical.y>>z)},gh.prototype.calculateScaledKey=function(g,z){var V=this.canonical.z-g;return g>this.canonical.z?SM(this.wrap*+z,g,this.canonical.z,this.canonical.x,this.canonical.y):SM(this.wrap*+z,g,g,this.canonical.x>>V,this.canonical.y>>V)},gh.prototype.isChildOf=function(g){if(g.wrap!==this.wrap)return!1;var z=this.canonical.z-g.canonical.z;return g.overscaledZ===0||g.overscaledZ>z&&g.canonical.y===this.canonical.y>>z},gh.prototype.children=function(g){if(this.overscaledZ>=g)return[new gh(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var z=this.canonical.z+1,V=this.canonical.x*2,$=this.canonical.y*2;return[new gh(z,this.wrap,z,V,$),new gh(z,this.wrap,z,V+1,$),new gh(z,this.wrap,z,V,$+1),new gh(z,this.wrap,z,V+1,$+1)]},gh.prototype.isLessThan=function(g){return this.wrapg.wrap?!1:this.overscaledZg.overscaledZ?!1:this.canonical.xg.canonical.x?!1:this.canonical.y0;oe--)$=1<=this.dim+1||z<-1||z>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(z+1)*this.stride+(g+1)},dg.prototype._unpackMapbox=function(g,z,V){return(g*256*256+z*256+V)/10-1e4},dg.prototype._unpackTerrarium=function(g,z,V){return g*256+z+V/256-32768},dg.prototype.getPixels=function(){return new kh({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},dg.prototype.backfillBorder=function(g,z,V){if(this.dim!==g.dim)throw new Error("dem dimension mismatch");var $=z*this.dim,oe=z*this.dim+this.dim,ye=V*this.dim,We=V*this.dim+this.dim;switch(z){case-1:$=oe-1;break;case 1:oe=$+1;break}switch(V){case-1:ye=We-1;break;case 1:We=ye+1;break}for(var xt=-z*this.dim,Rt=-V*this.dim,Xt=ye;Xt=0&&br[3]>=0&&xt.insert(We,br[0],br[1],br[2],br[3])}},pg.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new vm.VectorTile(new su(this.rawTileData)).layers,this.sourceLayerCoder=new JC(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},pg.prototype.query=function(g,z,V,$){var oe=this;this.loadVTLayers();for(var ye=g.params||{},We=An/g.tileSize/g.scale,xt=Se(ye.filter),Rt=g.queryGeometry,Xt=g.queryPadding*We,br=hee(Rt),Or=this.grid.query(br.minX-Xt,br.minY-Xt,br.maxX+Xt,br.maxY+Xt),Pr=hee(g.cameraQueryGeometry),ai=this.grid3D.query(Pr.minX-Xt,Pr.minY-Xt,Pr.maxX+Xt,Pr.maxY+Xt,function(Zs,Cl,Tl,hu){return pv(g.cameraQueryGeometry,Zs-Xt,Cl-Xt,Tl+Xt,hu+Xt)}),qi=0,Wn=ai;qi$)oe=!1;else if(!z)oe=!0;else if(this.expirationTime=xn.maxzoom)&&xn.visibility!=="none"){h(Ri,this.zoom,Wt);var xi=jr[xn.id]=xn.createBucket({index:Gr.bucketLayerIDs.length,layers:Ri,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:en,sourceID:this.source});xi.populate(Yr,yi,this.tileID.canonical),Gr.bucketLayerIDs.push(Ri.map(function(ni){return ni.id}))}}}}var Xr,ft,tr,pr,gr=i.mapObject(yi.glyphDependencies,function(ni){return Object.keys(ni).map(Number)});Object.keys(gr).length?xr.send("getGlyphs",{uid:this.uid,stacks:gr},function(ni,Zi){Xr||(Xr=ni,ft=Zi,Qi.call(Ur))}):ft={};var Zr=Object.keys(yi.iconDependencies);Zr.length?xr.send("getImages",{icons:Zr,source:this.source,tileID:this.tileID,type:"icons"},function(ni,Zi){Xr||(Xr=ni,tr=Zi,Qi.call(Ur))}):tr={};var Ai=Object.keys(yi.patternDependencies);Ai.length?xr.send("getImages",{icons:Ai,source:this.source,tileID:this.tileID,type:"patterns"},function(ni,Zi){Xr||(Xr=ni,pr=Zi,Qi.call(Ur))}):pr={},Qi.call(this);function Qi(){if(Xr)return Lr(Xr);if(ft&&tr&&pr){var ni=new f(ft),Zi=new i.ImageAtlas(tr,pr);for(var aa in jr){var Mn=jr[aa];Mn instanceof i.SymbolBucket?(h(Mn.layers,this.zoom,Wt),i.performSymbolLayout(Mn,ft,ni.positions,tr,Zi.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Mn.hasPattern&&(Mn instanceof i.LineBucket||Mn instanceof i.FillBucket||Mn instanceof i.FillExtrusionBucket)&&(h(Mn.layers,this.zoom,Wt),Mn.addFeatures(yi,this.tileID.canonical,Zi.patternPositions))}this.status="done",Lr(null,{buckets:i.values(jr).filter(function(Un){return!Un.isEmpty()}),featureIndex:Gr,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ni.image,imageAtlas:Zi,glyphMap:this.returnDependencies?ft:null,iconMap:this.returnDependencies?tr:null,glyphPositions:this.returnDependencies?ni.positions:null})}}};function h(Ft,gt,Ut){for(var Wt=new i.EvaluationParameters(gt),xr=0,Lr=Ft;xr=0!=!!gt&&Ft.reverse()}var L=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,_=function(gt){this._feature=gt,this.extent=i.EXTENT,this.type=gt.type,this.properties=gt.tags,"id"in gt&&!isNaN(gt.id)&&(this.id=parseInt(gt.id,10))};_.prototype.loadGeometry=function(){if(this._feature.type===1){for(var gt=[],Ut=0,Wt=this._feature.geometry;Ut>31}function Ce(Ft,gt){for(var Ut=Ft.loadGeometry(),Wt=Ft.type,xr=0,Lr=0,Ur=Ut.length,Ir=0;Ir>1;ke(Ft,gt,Ur,Wt,xr,Lr%2),te(Ft,gt,Ut,Wt,Ur-1,Lr+1),te(Ft,gt,Ut,Ur+1,xr,Lr+1)}}function ke(Ft,gt,Ut,Wt,xr,Lr){for(;xr>Wt;){if(xr-Wt>600){var Ur=xr-Wt+1,Ir=Ut-Wt+1,Gr=Math.log(Ur),jr=.5*Math.exp(2*Gr/3),yi=.5*Math.sqrt(Gr*jr*(Ur-jr)/Ur)*(Ir-Ur/2<0?-1:1),Ei=Math.max(Wt,Math.floor(Ut-Ir*jr/Ur+yi)),Vi=Math.min(xr,Math.floor(Ut+(Ur-Ir)*jr/Ur+yi));ke(Ft,gt,Ut,Ei,Vi,Lr)}var ti=gt[2*Ut+Lr],en=Wt,Yr=xr;for(Ee(Ft,gt,Wt,Ut),gt[2*xr+Lr]>ti&&Ee(Ft,gt,Wt,xr);enti;)Yr--}gt[2*Wt+Lr]===ti?Ee(Ft,gt,Wt,Yr):(Yr++,Ee(Ft,gt,Yr,xr)),Yr<=Ut&&(Wt=Yr+1),Ut<=Yr&&(xr=Yr-1)}}function Ee(Ft,gt,Ut,Wt){Me(Ft,Ut,Wt),Me(gt,2*Ut,2*Wt),Me(gt,2*Ut+1,2*Wt+1)}function Me(Ft,gt,Ut){var Wt=Ft[gt];Ft[gt]=Ft[Ut],Ft[Ut]=Wt}function Ue(Ft,gt,Ut,Wt,xr,Lr,Ur){for(var Ir=[0,Ft.length-1,0],Gr=[],jr,yi;Ir.length;){var Ei=Ir.pop(),Vi=Ir.pop(),ti=Ir.pop();if(Vi-ti<=Ur){for(var en=ti;en<=Vi;en++)jr=gt[2*en],yi=gt[2*en+1],jr>=Ut&&jr<=xr&&yi>=Wt&&yi<=Lr&&Gr.push(Ft[en]);continue}var Yr=Math.floor((ti+Vi)/2);jr=gt[2*Yr],yi=gt[2*Yr+1],jr>=Ut&&jr<=xr&&yi>=Wt&&yi<=Lr&&Gr.push(Ft[Yr]);var oi=(Ei+1)%2;(Ei===0?Ut<=jr:Wt<=yi)&&(Ir.push(ti),Ir.push(Yr-1),Ir.push(oi)),(Ei===0?xr>=jr:Lr>=yi)&&(Ir.push(Yr+1),Ir.push(Vi),Ir.push(oi))}return Gr}function Fe(Ft,gt,Ut,Wt,xr,Lr){for(var Ur=[0,Ft.length-1,0],Ir=[],Gr=xr*xr;Ur.length;){var jr=Ur.pop(),yi=Ur.pop(),Ei=Ur.pop();if(yi-Ei<=Lr){for(var Vi=Ei;Vi<=yi;Vi++)me(gt[2*Vi],gt[2*Vi+1],Ut,Wt)<=Gr&&Ir.push(Ft[Vi]);continue}var ti=Math.floor((Ei+yi)/2),en=gt[2*ti],Yr=gt[2*ti+1];me(en,Yr,Ut,Wt)<=Gr&&Ir.push(Ft[ti]);var oi=(jr+1)%2;(jr===0?Ut-xr<=en:Wt-xr<=Yr)&&(Ur.push(Ei),Ur.push(ti-1),Ur.push(oi)),(jr===0?Ut+xr>=en:Wt+xr>=Yr)&&(Ur.push(ti+1),Ur.push(yi),Ur.push(oi))}return Ir}function me(Ft,gt,Ut,Wt){var xr=Ft-Ut,Lr=gt-Wt;return xr*xr+Lr*Lr}var Ne=function(Ft){return Ft[0]},ce=function(Ft){return Ft[1]},Ke=function(gt,Ut,Wt,xr,Lr){Ut===void 0&&(Ut=Ne),Wt===void 0&&(Wt=ce),xr===void 0&&(xr=64),Lr===void 0&&(Lr=Float64Array),this.nodeSize=xr,this.points=gt;for(var Ur=gt.length<65536?Uint16Array:Uint32Array,Ir=this.ids=new Ur(gt.length),Gr=this.coords=new Lr(gt.length*2),jr=0;jr=xr;yi--){var Ei=+Date.now();Gr=this._cluster(Gr,yi),this.trees[yi]=new Ke(Gr,Ae,ot,Ur,Float32Array),Wt&&console.log("z%d: %d clusters in %dms",yi,Gr.length,+Date.now()-Ei)}return Wt&&console.timeEnd("total time"),this},bt.prototype.getClusters=function(gt,Ut){var Wt=((gt[0]+180)%360+360)%360-180,xr=Math.max(-90,Math.min(90,gt[1])),Lr=gt[2]===180?180:((gt[2]+180)%360+360)%360-180,Ur=Math.max(-90,Math.min(90,gt[3]));if(gt[2]-gt[0]>=360)Wt=-180,Lr=180;else if(Wt>Lr){var Ir=this.getClusters([Wt,xr,180,Ur],Ut),Gr=this.getClusters([-180,xr,Lr,Ur],Ut);return Ir.concat(Gr)}for(var jr=this.trees[this._limitZoom(Ut)],yi=jr.range(At(Wt),St(Ur),At(Lr),St(xr)),Ei=[],Vi=0,ti=yi;ViUt&&(Yr+=rn.numPoints||1)}if(Yr>=Gr){for(var Fi=Ei.x*en,Ri=Ei.y*en,xn=Ir&&en>1?this._map(Ei,!0):null,xi=(yi<<5)+(Ut+1)+this.points.length,Xr=0,ft=ti;Xr1)for(var Zr=0,Ai=ti;Zr>5},bt.prototype._getOriginZoom=function(gt){return(gt-this.points.length)%32},bt.prototype._map=function(gt,Ut){if(gt.numPoints)return Ut?Et({},gt.properties):gt.properties;var Wt=this.points[gt.index].properties,xr=this.options.map(Wt);return Ut&&xr===Wt?Et({},xr):xr};function Nt(Ft,gt,Ut,Wt,xr){return{x:Ft,y:gt,zoom:1/0,id:Ut,parentId:-1,numPoints:Wt,properties:xr}}function nt(Ft,gt){var Ut=Ft.geometry.coordinates,Wt=Ut[0],xr=Ut[1];return{x:At(Wt),y:St(xr),zoom:1/0,index:gt,parentId:-1}}function Ye(Ft){return{type:"Feature",id:Ft.id,properties:kt(Ft),geometry:{type:"Point",coordinates:[Bt(Ft.x),Zt(Ft.y)]}}}function kt(Ft){var gt=Ft.numPoints,Ut=gt>=1e4?Math.round(gt/1e3)+"k":gt>=1e3?Math.round(gt/100)/10+"k":gt;return Et(Et({},Ft.properties),{cluster:!0,cluster_id:Ft.id,point_count:gt,point_count_abbreviated:Ut})}function At(Ft){return Ft/360+.5}function St(Ft){var gt=Math.sin(Ft*Math.PI/180),Ut=.5-.25*Math.log((1+gt)/(1-gt))/Math.PI;return Ut<0?0:Ut>1?1:Ut}function Bt(Ft){return(Ft-.5)*360}function Zt(Ft){var gt=(180-Ft*360)*Math.PI/180;return 360*Math.atan(Math.exp(gt))/Math.PI-90}function Et(Ft,gt){for(var Ut in gt)Ft[Ut]=gt[Ut];return Ft}function Ae(Ft){return Ft.x}function ot(Ft){return Ft.y}function dt(Ft,gt,Ut,Wt){for(var xr=Wt,Lr=Ut-gt>>1,Ur=Ut-gt,Ir,Gr=Ft[gt],jr=Ft[gt+1],yi=Ft[Ut],Ei=Ft[Ut+1],Vi=gt+3;Vixr)Ir=Vi,xr=ti;else if(ti===xr){var en=Math.abs(Vi-Lr);enWt&&(Ir-gt>3&&dt(Ft,gt,Ir,Wt),Ft[Ir+2]=xr,Ut-Ir>3&&dt(Ft,Ir,Ut,Wt))}function pt(Ft,gt,Ut,Wt,xr,Lr){var Ur=xr-Ut,Ir=Lr-Wt;if(Ur!==0||Ir!==0){var Gr=((Ft-Ut)*Ur+(gt-Wt)*Ir)/(Ur*Ur+Ir*Ir);Gr>1?(Ut=xr,Wt=Lr):Gr>0&&(Ut+=Ur*Gr,Wt+=Ir*Gr)}return Ur=Ft-Ut,Ir=gt-Wt,Ur*Ur+Ir*Ir}function at(Ft,gt,Ut,Wt){var xr={id:typeof Ft=="undefined"?null:Ft,type:gt,geometry:Ut,tags:Wt,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return Xe(xr),xr}function Xe(Ft){var gt=Ft.geometry,Ut=Ft.type;if(Ut==="Point"||Ut==="MultiPoint"||Ut==="LineString")rt(Ft,gt);else if(Ut==="Polygon"||Ut==="MultiLineString")for(var Wt=0;Wt0&&(Wt?Ur+=(xr*jr-Gr*Lr)/2:Ur+=Math.sqrt(Math.pow(Gr-xr,2)+Math.pow(jr-Lr,2))),xr=Gr,Lr=jr}var yi=gt.length-3;gt[2]=1,dt(gt,0,yi,Ut),gt[yi+2]=1,gt.size=Math.abs(Ur),gt.start=0,gt.end=gt.size}function mr(Ft,gt,Ut,Wt){for(var xr=0;xr1?1:Ut}function Re(Ft,gt,Ut,Wt,xr,Lr,Ur,Ir){if(Ut/=gt,Wt/=gt,Lr>=Ut&&Ur=Wt)return null;for(var Gr=[],jr=0;jr=Ut&&en=Wt)continue;var Yr=[];if(Vi==="Point"||Vi==="MultiPoint")xe(Ei,Yr,Ut,Wt,xr);else if(Vi==="LineString")Oe(Ei,Yr,Ut,Wt,xr,!1,Ir.lineMetrics);else if(Vi==="MultiLineString")De(Ei,Yr,Ut,Wt,xr,!1);else if(Vi==="Polygon")De(Ei,Yr,Ut,Wt,xr,!0);else if(Vi==="MultiPolygon")for(var oi=0;oi=Ut&&Ur<=Wt&&(gt.push(Ft[Lr]),gt.push(Ft[Lr+1]),gt.push(Ft[Lr+2]))}}function Oe(Ft,gt,Ut,Wt,xr,Lr,Ur){for(var Ir=Ie(Ft),Gr=xr===0?_e:fe,jr=Ft.start,yi,Ei,Vi=0;ViUt&&(Ei=Gr(Ir,ti,en,oi,Bi,Ut),Ur&&(Ir.start=jr+yi*Ei)):an>Wt?rn=Ut&&(Ei=Gr(Ir,ti,en,oi,Bi,Ut),Fi=!0),rn>Wt&&an<=Wt&&(Ei=Gr(Ir,ti,en,oi,Bi,Wt),Fi=!0),!Lr&&Fi&&(Ur&&(Ir.end=jr+yi*Ei),gt.push(Ir),Ir=Ie(Ft)),Ur&&(jr+=yi)}var Ri=Ft.length-3;ti=Ft[Ri],en=Ft[Ri+1],Yr=Ft[Ri+2],an=xr===0?ti:en,an>=Ut&&an<=Wt&&ct(Ir,ti,en,Yr),Ri=Ir.length-3,Lr&&Ri>=3&&(Ir[Ri]!==Ir[0]||Ir[Ri+1]!==Ir[1])&&ct(Ir,Ir[0],Ir[1],Ir[2]),Ir.length&>.push(Ir)}function Ie(Ft){var gt=[];return gt.size=Ft.size,gt.start=Ft.start,gt.end=Ft.end,gt}function De(Ft,gt,Ut,Wt,xr,Lr){for(var Ur=0;UrUr.maxX&&(Ur.maxX=yi),Ei>Ur.maxY&&(Ur.maxY=Ei)}return Ur}function Nr(Ft,gt,Ut,Wt){var xr=gt.geometry,Lr=gt.type,Ur=[];if(Lr==="Point"||Lr==="MultiPoint")for(var Ir=0;Ir0&>.size<(xr?Ur:Wt)){Ut.numPoints+=gt.length/3;return}for(var Ir=[],Gr=0;GrUr)&&(Ut.numSimplified++,Ir.push(gt[Gr]),Ir.push(gt[Gr+1])),Ut.numPoints++;xr&&Br(Ir,Lr),Ft.push(Ir)}function Br(Ft,gt){for(var Ut=0,Wt=0,xr=Ft.length,Lr=xr-2;Wt0===gt)for(Wt=0,xr=Ft.length;Wt24)throw new Error("maxZoom should be in the 0-24 range");if(gt.promoteId&>.generateId)throw new Error("promoteId and generateId cannot be used together.");var Wt=Qe(Ft,gt);this.tiles={},this.tileCoords=[],Ut&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",gt.indexMaxZoom,gt.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),Wt=pe(Wt,gt),Wt.length&&this.splitTile(Wt,0,0,0),Ut&&(Wt.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Di.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Di.prototype.splitTile=function(Ft,gt,Ut,Wt,xr,Lr,Ur){for(var Ir=[Ft,gt,Ut,Wt],Gr=this.options,jr=Gr.debug;Ir.length;){Wt=Ir.pop(),Ut=Ir.pop(),gt=Ir.pop(),Ft=Ir.pop();var yi=1<1&&console.time("creation"),Vi=this.tiles[Ei]=Wr(Ft,gt,Ut,Wt,Gr),this.tileCoords.push({z:gt,x:Ut,y:Wt}),jr)){jr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",gt,Ut,Wt,Vi.numFeatures,Vi.numPoints,Vi.numSimplified),console.timeEnd("creation"));var ti="z"+gt;this.stats[ti]=(this.stats[ti]||0)+1,this.total++}if(Vi.source=Ft,xr){if(gt===Gr.maxZoom||gt===xr)continue;var en=1<1&&console.time("clipping");var Yr=.5*Gr.buffer/Gr.extent,oi=.5-Yr,Bi=.5+Yr,an=1+Yr,rn,Fi,Ri,xn,xi,Xr;rn=Fi=Ri=xn=null,xi=Re(Ft,yi,Ut-Yr,Ut+Bi,0,Vi.minX,Vi.maxX,Gr),Xr=Re(Ft,yi,Ut+oi,Ut+an,0,Vi.minX,Vi.maxX,Gr),Ft=null,xi&&(rn=Re(xi,yi,Wt-Yr,Wt+Bi,1,Vi.minY,Vi.maxY,Gr),Fi=Re(xi,yi,Wt+oi,Wt+an,1,Vi.minY,Vi.maxY,Gr),xi=null),Xr&&(Ri=Re(Xr,yi,Wt-Yr,Wt+Bi,1,Vi.minY,Vi.maxY,Gr),xn=Re(Xr,yi,Wt+oi,Wt+an,1,Vi.minY,Vi.maxY,Gr),Xr=null),jr>1&&console.timeEnd("clipping"),Ir.push(rn||[],gt+1,Ut*2,Wt*2),Ir.push(Fi||[],gt+1,Ut*2,Wt*2+1),Ir.push(Ri||[],gt+1,Ut*2+1,Wt*2),Ir.push(xn||[],gt+1,Ut*2+1,Wt*2+1)}}},Di.prototype.getTile=function(Ft,gt,Ut){var Wt=this.options,xr=Wt.extent,Lr=Wt.debug;if(Ft<0||Ft>24)return null;var Ur=1<1&&console.log("drilling down to z%d-%d-%d",Ft,gt,Ut);for(var Gr=Ft,jr=gt,yi=Ut,Ei;!Ei&&Gr>0;)Gr--,jr=Math.floor(jr/2),yi=Math.floor(yi/2),Ei=this.tiles[Ii(Gr,jr,yi)];return!Ei||!Ei.source?null:(Lr>1&&console.log("found parent tile z%d-%d-%d",Gr,jr,yi),Lr>1&&console.time("drilling down"),this.splitTile(Ei.source,Gr,jr,yi,Ft,gt,Ut),Lr>1&&console.timeEnd("drilling down"),this.tiles[Ir]?Pt(this.tiles[Ir],xr):null)};function Ii(Ft,gt,Ut){return((1<=0?0:Y.button},o.remove=function(Y){Y.parentNode&&Y.parentNode.removeChild(Y)};function x(Y,R,J){var O,K,ge,ne=i.browser.devicePixelRatio>1?"@2x":"",Le=i.getJSON(R.transformRequest(R.normalizeSpriteURL(Y,ne,".json"),i.ResourceType.SpriteJSON),function(dr,Mr){Le=null,ge||(ge=dr,O=Mr,Ct())}),Ze=i.getImage(R.transformRequest(R.normalizeSpriteURL(Y,ne,".png"),i.ResourceType.SpriteImage),function(dr,Mr){Ze=null,ge||(ge=dr,K=Mr,Ct())});function Ct(){if(ge)J(ge);else if(O&&K){var dr=i.browser.getImageData(K),Mr={};for(var ur in O){var Je=O[ur],ht=Je.width,wt=Je.height,Kt=Je.x,sr=Je.y,Qt=Je.sdf,fr=Je.pixelRatio,er=Je.stretchX,Ot=Je.stretchY,Jt=Je.content,Lt=new i.RGBAImage({width:ht,height:wt});i.RGBAImage.copy(dr,Lt,{x:Kt,y:sr},{x:0,y:0},{width:ht,height:wt}),Mr[ur]={data:Lt,pixelRatio:fr,sdf:Qt,stretchX:er,stretchY:Ot,content:Jt}}J(null,Mr)}}return{cancel:function(){Le&&(Le.cancel(),Le=null),Ze&&(Ze.cancel(),Ze=null)}}}function b(Y){var R=Y.userImage;if(R&&R.render){var J=R.render();if(J)return Y.data.replace(new Uint8Array(R.data.buffer)),!0}return!1}var v=1,k=function(Y){function R(){Y.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.isLoaded=function(){return this.loaded},R.prototype.setLoaded=function(O){if(this.loaded!==O&&(this.loaded=O,O)){for(var K=0,ge=this.requestors;K=0?1.2:1))}C.prototype.draw=function(Y){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(Y,this.buffer,this.middle);for(var R=this.ctx.getImageData(0,0,this.size,this.size),J=new Uint8ClampedArray(this.size*this.size),O=0;O65535){dr(new Error("glyphs > 65535 not supported"));return}if(Je.ranges[wt]){dr(null,{stack:Mr,id:ur,glyph:ht});return}var Kt=Je.requests[wt];Kt||(Kt=Je.requests[wt]=[],P.loadGlyphRange(Mr,wt,O.url,O.requestManager,function(sr,Qt){if(Qt){for(var fr in Qt)O._doesCharSupportLocalGlyph(+fr)||(Je.glyphs[+fr]=Qt[+fr]);Je.ranges[wt]=!0}for(var er=0,Ot=Kt;er1&&(Ct=R[++Ze]);var Mr=Math.abs(dr-Ct.left),ur=Math.abs(dr-Ct.right),Je=Math.min(Mr,ur),ht=void 0,wt=ge/O*(K+1);if(Ct.isDash){var Kt=K-Math.abs(wt);ht=Math.sqrt(Je*Je+Kt*Kt)}else ht=K-Math.sqrt(Je*Je+wt*wt);this.data[Le+dr]=Math.max(0,Math.min(255,ht+128))}},G.prototype.addRegularDash=function(R){for(var J=R.length-1;J>=0;--J){var O=R[J],K=R[J+1];O.zeroLength?R.splice(J,1):K&&K.isDash===O.isDash&&(K.left=O.left,R.splice(J,1))}var ge=R[0],ne=R[R.length-1];ge.isDash===ne.isDash&&(ge.left=ne.left-this.width,ne.right=ge.right+this.width);for(var Le=this.width*this.nextRow,Ze=0,Ct=R[Ze],dr=0;dr1&&(Ct=R[++Ze]);var Mr=Math.abs(dr-Ct.left),ur=Math.abs(dr-Ct.right),Je=Math.min(Mr,ur),ht=Ct.isDash?Je:-Je;this.data[Le+dr]=Math.max(0,Math.min(255,ht+128))}},G.prototype.addDash=function(R,J){var O=J?7:0,K=2*O+1;if(this.nextRow+K>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var ge=0,ne=0;ne=O.minX&&R.x=O.minY&&R.y0&&(dr[new i.OverscaledTileID(O.overscaledZ,Le,K.z,ne,K.y-1).key]={backfilled:!1},dr[new i.OverscaledTileID(O.overscaledZ,O.wrap,K.z,K.x,K.y-1).key]={backfilled:!1},dr[new i.OverscaledTileID(O.overscaledZ,Ct,K.z,Ze,K.y-1).key]={backfilled:!1}),K.y+10&&(ge.resourceTiming=O._resourceTiming,O._resourceTiming=[]),O.fire(new i.Event("data",ge))})},R.prototype.onAdd=function(O){this.map=O,this.load()},R.prototype.setData=function(O){var K=this;return this._data=O,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(ge){if(ge){K.fire(new i.ErrorEvent(ge));return}var ne={dataType:"source",sourceDataType:"content"};K._collectResourceTiming&&K._resourceTiming&&K._resourceTiming.length>0&&(ne.resourceTiming=K._resourceTiming,K._resourceTiming=[]),K.fire(new i.Event("data",ne))}),this},R.prototype.getClusterExpansionZoom=function(O,K){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:O,source:this.id},K),this},R.prototype.getClusterChildren=function(O,K){return this.actor.send("geojson.getClusterChildren",{clusterId:O,source:this.id},K),this},R.prototype.getClusterLeaves=function(O,K,ge,ne){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:O,limit:K,offset:ge},ne),this},R.prototype._updateWorkerData=function(O){var K=this;this._loaded=!1;var ge=i.extend({},this.workerOptions),ne=this._data;typeof ne=="string"?(ge.request=this.map._requestManager.transformRequest(i.browser.resolveURL(ne),i.ResourceType.Source),ge.request.collectResourceTiming=this._collectResourceTiming):ge.data=JSON.stringify(ne),this.actor.send(this.type+".loadData",ge,function(Le,Ze){K._removed||Ze&&Ze.abandoned||(K._loaded=!0,Ze&&Ze.resourceTiming&&Ze.resourceTiming[K.id]&&(K._resourceTiming=Ze.resourceTiming[K.id].slice(0)),K.actor.send(K.type+".coalesce",{source:ge.source},null),O(Le))})},R.prototype.loaded=function(){return this._loaded},R.prototype.loadTile=function(O,K){var ge=this,ne=O.actor?"reloadTile":"loadTile";O.actor=this.actor;var Le={type:this.type,uid:O.uid,tileID:O.tileID,zoom:O.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};O.request=this.actor.send(ne,Le,function(Ze,Ct){return delete O.request,O.unloadVectorData(),O.aborted?K(null):Ze?K(Ze):(O.loadVectorData(Ct,ge.map.painter,ne==="reloadTile"),K(null))})},R.prototype.abortTile=function(O){O.request&&(O.request.cancel(),delete O.request),O.aborted=!0},R.prototype.unloadTile=function(O){O.unloadVectorData(),this.actor.send("removeTile",{uid:O.uid,type:this.type,source:this.id})},R.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},R.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},R.prototype.hasTransition=function(){return!1},R}(i.Evented),Pe=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Ce=function(Y){function R(J,O,K,ge){Y.call(this),this.id=J,this.dispatcher=K,this.coordinates=O.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ge),this.options=O}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.load=function(O,K){var ge=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(ne,Le){ge._loaded=!0,ne?ge.fire(new i.ErrorEvent(ne)):Le&&(ge.image=Le,O&&(ge.coordinates=O),K&&K(),ge._finishLoading())})},R.prototype.loaded=function(){return this._loaded},R.prototype.updateImage=function(O){var K=this;return!this.image||!O.url?this:(this.options.url=O.url,this.load(O.coordinates,function(){K.texture=null}),this)},R.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},R.prototype.onAdd=function(O){this.map=O,this.load()},R.prototype.setCoordinates=function(O){var K=this;this.coordinates=O;var ge=O.map(i.MercatorCoordinate.fromLngLat);this.tileID=de(ge),this.minzoom=this.maxzoom=this.tileID.z;var ne=ge.map(function(Le){return K.tileID.getTilePoint(Le)._round()});return this._boundsArray=new i.StructArrayLayout4i8,this._boundsArray.emplaceBack(ne[0].x,ne[0].y,0,0),this._boundsArray.emplaceBack(ne[1].x,ne[1].y,i.EXTENT,0),this._boundsArray.emplaceBack(ne[3].x,ne[3].y,0,i.EXTENT),this._boundsArray.emplaceBack(ne[2].x,ne[2].y,i.EXTENT,i.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"content"})),this},R.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var O=this.map.painter.context,K=O.gl;this.boundsBuffer||(this.boundsBuffer=O.createVertexBuffer(this._boundsArray,Pe.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new i.Texture(O,this.image,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var ge in this.tiles){var ne=this.tiles[ge];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},R.prototype.loadTile=function(O,K){this.tileID&&this.tileID.equals(O.tileID.canonical)?(this.tiles[String(O.tileID.wrap)]=O,O.buckets={},K(null)):(O.state="errored",K(null))},R.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},R.prototype.hasTransition=function(){return!1},R}(i.Evented);function de(Y){for(var R=1/0,J=1/0,O=-1/0,K=-1/0,ge=0,ne=Y;geK.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+K.start(0)+" and "+K.end(0)+"-second mark."))):this.video.currentTime=O}},R.prototype.getVideo=function(){return this.video},R.prototype.onAdd=function(O){this.map||(this.map=O,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},R.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var O=this.map.painter.context,K=O.gl;this.boundsBuffer||(this.boundsBuffer=O.createVertexBuffer(this._boundsArray,Pe.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE),K.texSubImage2D(K.TEXTURE_2D,0,0,0,K.RGBA,K.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(O,this.video,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var ge in this.tiles){var ne=this.tiles[ge];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},R.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},R.prototype.hasTransition=function(){return this.video&&!this.video.paused},R}(Ce),ke=function(Y){function R(J,O,K,ge){Y.call(this,J,O,K,ge),O.coordinates?(!Array.isArray(O.coordinates)||O.coordinates.length!==4||O.coordinates.some(function(ne){return!Array.isArray(ne)||ne.length!==2||ne.some(function(Le){return typeof Le!="number"})}))&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "coordinates"'))),O.animate&&typeof O.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'optional "animate" property must be a boolean value'))),O.canvas?typeof O.canvas!="string"&&!(O.canvas instanceof i.window.HTMLCanvasElement)&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "canvas"'))),this.options=O,this.animate=O.animate!==void 0?O.animate:!0}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},R.prototype.getCanvas=function(){return this.canvas},R.prototype.onAdd=function(O){this.map=O,this.load(),this.canvas&&this.animate&&this.play()},R.prototype.onRemove=function(){this.pause()},R.prototype.prepare=function(){var O=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,O=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,O=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var K=this.map.painter.context,ge=K.gl;this.boundsBuffer||(this.boundsBuffer=K.createVertexBuffer(this._boundsArray,Pe.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(O||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(K,this.canvas,ge.RGBA,{premultiply:!0});for(var ne in this.tiles){var Le=this.tiles[ne];Le.state!=="loaded"&&(Le.state="loaded",Le.texture=this.texture)}}},R.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},R.prototype.hasTransition=function(){return this._playing},R.prototype._hasInvalidDimensions=function(){for(var O=0,K=[this.canvas.width,this.canvas.height];Othis.max){var Le=this._getAndRemoveByKey(this.order[0]);Le&&this.onRemove(Le)}return this},nt.prototype.has=function(R){return R.wrapped().key in this.data},nt.prototype.getAndRemove=function(R){return this.has(R)?this._getAndRemoveByKey(R.wrapped().key):null},nt.prototype._getAndRemoveByKey=function(R){var J=this.data[R].shift();return J.timeout&&clearTimeout(J.timeout),this.data[R].length===0&&delete this.data[R],this.order.splice(this.order.indexOf(R),1),J.value},nt.prototype.getByKey=function(R){var J=this.data[R];return J?J[0].value:null},nt.prototype.get=function(R){if(!this.has(R))return null;var J=this.data[R.wrapped().key][0];return J.value},nt.prototype.remove=function(R,J){if(!this.has(R))return this;var O=R.wrapped().key,K=J===void 0?0:this.data[O].indexOf(J),ge=this.data[O][K];return this.data[O].splice(K,1),ge.timeout&&clearTimeout(ge.timeout),this.data[O].length===0&&delete this.data[O],this.onRemove(ge.value),this.order.splice(this.order.indexOf(O),1),this},nt.prototype.setMaxSize=function(R){for(this.max=R;this.order.length>this.max;){var J=this._getAndRemoveByKey(this.order[0]);J&&this.onRemove(J)}return this},nt.prototype.filter=function(R){var J=[];for(var O in this.data)for(var K=0,ge=this.data[O];K1||(Math.abs(Mr)>1&&(Math.abs(Mr+Je)===1?Mr+=Je:Math.abs(Mr-Je)===1&&(Mr-=Je)),!(!dr.dem||!Ct.dem)&&(Ct.dem.backfillBorder(dr.dem,Mr,ur),Ct.neighboringTiles&&Ct.neighboringTiles[ht]&&(Ct.neighboringTiles[ht].backfilled=!0)))}},R.prototype.getTile=function(O){return this.getTileByID(O.key)},R.prototype.getTileByID=function(O){return this._tiles[O]},R.prototype._retainLoadedChildren=function(O,K,ge,ne){for(var Le in this._tiles){var Ze=this._tiles[Le];if(!(ne[Le]||!Ze.hasData()||Ze.tileID.overscaledZ<=K||Ze.tileID.overscaledZ>ge)){for(var Ct=Ze.tileID;Ze&&Ze.tileID.overscaledZ>K+1;){var dr=Ze.tileID.scaledTo(Ze.tileID.overscaledZ-1);Ze=this._tiles[dr.key],Ze&&Ze.hasData()&&(Ct=dr)}for(var Mr=Ct;Mr.overscaledZ>K;)if(Mr=Mr.scaledTo(Mr.overscaledZ-1),O[Mr.key]){ne[Ct.key]=Ct;break}}}},R.prototype.findLoadedParent=function(O,K){if(O.key in this._loadedParentTiles){var ge=this._loadedParentTiles[O.key];return ge&&ge.tileID.overscaledZ>=K?ge:null}for(var ne=O.overscaledZ-1;ne>=K;ne--){var Le=O.scaledTo(ne),Ze=this._getLoadedTile(Le);if(Ze)return Ze}},R.prototype._getLoadedTile=function(O){var K=this._tiles[O.key];if(K&&K.hasData())return K;var ge=this._cache.getByKey(O.wrapped().key);return ge},R.prototype.updateCacheSize=function(O){var K=Math.ceil(O.width/this._source.tileSize)+1,ge=Math.ceil(O.height/this._source.tileSize)+1,ne=K*ge,Le=5,Ze=Math.floor(ne*Le),Ct=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Ze):Ze;this._cache.setMaxSize(Ct)},R.prototype.handleWrapJump=function(O){var K=this._prevLng===void 0?O:this._prevLng,ge=O-K,ne=ge/360,Le=Math.round(ne);if(this._prevLng=O,Le){var Ze={};for(var Ct in this._tiles){var dr=this._tiles[Ct];dr.tileID=dr.tileID.unwrapTo(dr.tileID.wrap+Le),Ze[dr.tileID.key]=dr}this._tiles=Ze;for(var Mr in this._timers)clearTimeout(this._timers[Mr]),delete this._timers[Mr];for(var ur in this._tiles){var Je=this._tiles[ur];this._setTileReloadTimer(ur,Je)}}},R.prototype.update=function(O){var K=this;if(this.transform=O,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(O),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var ge;this.used?this._source.tileID?ge=O.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(ci){return new i.OverscaledTileID(ci.canonical.z,ci.wrap,ci.canonical.z,ci.canonical.x,ci.canonical.y)}):(ge=O.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(ge=ge.filter(function(ci){return K._source.hasTile(ci)}))):ge=[];var ne=O.coveringZoomLevel(this._source),Le=Math.max(ne-R.maxOverzooming,this._source.minzoom),Ze=Math.max(ne+R.maxUnderzooming,this._source.minzoom),Ct=this._updateRetainedTiles(ge,ne);if(Gr(this._source.type)){for(var dr={},Mr={},ur=Object.keys(Ct),Je=0,ht=ur;Jethis._source.maxzoom){var Qt=Kt.children(this._source.maxzoom)[0],fr=this.getTile(Qt);if(fr&&fr.hasData()){ge[Qt.key]=Qt;continue}}else{var er=Kt.children(this._source.maxzoom);if(ge[er[0].key]&&ge[er[1].key]&&ge[er[2].key]&&ge[er[3].key])continue}for(var Ot=sr.wasRequested(),Jt=Kt.overscaledZ-1;Jt>=Le;--Jt){var Lt=Kt.scaledTo(Jt);if(ne[Lt.key]||(ne[Lt.key]=!0,sr=this.getTile(Lt),!sr&&Ot&&(sr=this._addTile(Lt)),sr&&(ge[Lt.key]=Lt,Ot=sr.wasRequested(),sr.hasData())))break}}}return ge},R.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var O in this._tiles){for(var K=[],ge=void 0,ne=this._tiles[O].tileID;ne.overscaledZ>0;){if(ne.key in this._loadedParentTiles){ge=this._loadedParentTiles[ne.key];break}K.push(ne.key);var Le=ne.scaledTo(ne.overscaledZ-1);if(ge=this._getLoadedTile(Le),ge)break;ne=Le}for(var Ze=0,Ct=K;Ze0)&&(K.hasData()&&K.state!=="reloading"?this._cache.add(K.tileID,K,K.getExpiryTimeout()):(K.aborted=!0,this._abortTile(K),this._unloadTile(K))))},R.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var O in this._tiles)this._removeTile(O);this._cache.reset()},R.prototype.tilesIn=function(O,K,ge){var ne=this,Le=[],Ze=this.transform;if(!Ze)return Le;for(var Ct=ge?Ze.getCameraQueryGeometry(O):O,dr=O.map(function(Jt){return Ze.pointCoordinate(Jt)}),Mr=Ct.map(function(Jt){return Ze.pointCoordinate(Jt)}),ur=this.getIds(),Je=1/0,ht=1/0,wt=-1/0,Kt=-1/0,sr=0,Qt=Mr;sr=0&&Cn[1].y+ci>=0){var Ki=dr.map(function(Xa){return Tr.getTilePoint(Xa)}),yn=Mr.map(function(Xa){return Tr.getTilePoint(Xa)});Le.push({tile:Lt,tileID:Tr,queryGeometry:Ki,cameraQueryGeometry:yn,scale:qr})}}},Ot=0;Ot=i.browser.now())return!0}return!1},R.prototype.setFeatureState=function(O,K,ge){O=O||"_geojsonTileLayer",this._state.updateState(O,K,ge)},R.prototype.removeFeatureState=function(O,K,ge){O=O||"_geojsonTileLayer",this._state.removeFeatureState(O,K,ge)},R.prototype.getFeatureState=function(O,K){return O=O||"_geojsonTileLayer",this._state.getState(O,K)},R.prototype.setDependencies=function(O,K,ge){var ne=this._tiles[O];ne&&ne.setDependencies(K,ge)},R.prototype.reloadTilesForDependencies=function(O,K){for(var ge in this._tiles){var ne=this._tiles[ge];ne.hasDependency(O,K)&&this._reloadTile(ge,"reloading")}this._cache.filter(function(Le){return!Le.hasDependency(O,K)})},R}(i.Evented);Ur.maxOverzooming=10,Ur.maxUnderzooming=3;function Ir(Y,R){var J=Math.abs(Y.wrap*2)-+(Y.wrap<0),O=Math.abs(R.wrap*2)-+(R.wrap<0);return Y.overscaledZ-R.overscaledZ||O-J||R.canonical.y-Y.canonical.y||R.canonical.x-Y.canonical.x}function Gr(Y){return Y==="raster"||Y==="image"||Y==="video"}function jr(){return new i.window.Worker(cu.workerUrl)}var yi="mapboxgl_preloaded_worker_pool",Ei=function(){this.active={}};Ei.prototype.acquire=function(R){if(!this.workers)for(this.workers=[];this.workers.length0?(K-ne)/Le:0;return this.points[ge].mult(1-Ze).add(this.points[J].mult(Ze))};var ni=function(R,J,O){var K=this.boxCells=[],ge=this.circleCells=[];this.xCellCount=Math.ceil(R/O),this.yCellCount=Math.ceil(J/O);for(var ne=0;nethis.width||K<0||J>this.height)return ge?!1:[];var Le=[];if(R<=0&&J<=0&&this.width<=O&&this.height<=K){if(ge)return!0;for(var Ze=0;Ze0:Le}},ni.prototype._queryCircle=function(R,J,O,K,ge){var ne=R-O,Le=R+O,Ze=J-O,Ct=J+O;if(Le<0||ne>this.width||Ct<0||Ze>this.height)return K?!1:[];var dr=[],Mr={hitTest:K,circle:{x:R,y:J,radius:O},seenUids:{box:{},circle:{}}};return this._forEachCell(ne,Ze,Le,Ct,this._queryCellCircle,dr,Mr,ge),K?dr.length>0:dr},ni.prototype.query=function(R,J,O,K,ge){return this._query(R,J,O,K,!1,ge)},ni.prototype.hitTest=function(R,J,O,K,ge){return this._query(R,J,O,K,!0,ge)},ni.prototype.hitTestCircle=function(R,J,O,K){return this._queryCircle(R,J,O,!0,K)},ni.prototype._queryCell=function(R,J,O,K,ge,ne,Le,Ze){var Ct=Le.seenUids,dr=this.boxCells[ge];if(dr!==null)for(var Mr=this.bboxes,ur=0,Je=dr;ur=Mr[wt+0]&&K>=Mr[wt+1]&&(!Ze||Ze(this.boxKeys[ht]))){if(Le.hitTest)return ne.push(!0),!0;ne.push({key:this.boxKeys[ht],x1:Mr[wt],y1:Mr[wt+1],x2:Mr[wt+2],y2:Mr[wt+3]})}}}var Kt=this.circleCells[ge];if(Kt!==null)for(var sr=this.circles,Qt=0,fr=Kt;QtLe*Le+Ze*Ze},ni.prototype._circleAndRectCollide=function(R,J,O,K,ge,ne,Le){var Ze=(ne-K)/2,Ct=Math.abs(R-(K+Ze));if(Ct>Ze+O)return!1;var dr=(Le-ge)/2,Mr=Math.abs(J-(ge+dr));if(Mr>dr+O)return!1;if(Ct<=Ze||Mr<=dr)return!0;var ur=Ct-Ze,Je=Mr-dr;return ur*ur+Je*Je<=O*O};function Zi(Y,R,J,O,K){var ge=i.create();return R?(i.scale(ge,ge,[1/K,1/K,1]),J||i.rotateZ(ge,ge,O.angle)):i.multiply(ge,O.labelPlaneMatrix,Y),ge}function aa(Y,R,J,O,K){if(R){var ge=i.clone(Y);return i.scale(ge,ge,[K,K,1]),J||i.rotateZ(ge,ge,-O.angle),ge}else return O.glCoordMatrix}function Mn(Y,R){var J=[Y.x,Y.y,0,1];kn(J,J,R);var O=J[3];return{point:new i.Point(J[0]/O,J[1]/O),signedDistanceFromCamera:O}}function Un(Y,R){return .5+.5*(Y/R)}function Ga(Y,R){var J=Y[0]/Y[3],O=Y[1]/Y[3],K=J>=-R[0]&&J<=R[0]&&O>=-R[1]&&O<=R[1];return K}function ma(Y,R,J,O,K,ge,ne,Le){var Ze=O?Y.textSizeData:Y.iconSizeData,Ct=i.evaluateSizeForZoom(Ze,J.transform.zoom),dr=[256/J.width*2+1,256/J.height*2+1],Mr=O?Y.text.dynamicLayoutVertexArray:Y.icon.dynamicLayoutVertexArray;Mr.clear();for(var ur=Y.lineVertexArray,Je=O?Y.text.placedSymbolArray:Y.icon.placedSymbolArray,ht=J.transform.width/J.transform.height,wt=!1,Kt=0;Ktge)return{useVertical:!0}}return(Y===i.WritingMode.vertical?R.yJ.x)?{needsFlipping:!0}:null}function so(Y,R,J,O,K,ge,ne,Le,Ze,Ct,dr,Mr,ur,Je){var ht=R/24,wt=Y.lineOffsetX*ht,Kt=Y.lineOffsetY*ht,sr;if(Y.numGlyphs>1){var Qt=Y.glyphStartIndex+Y.numGlyphs,fr=Y.lineStartIndex,er=Y.lineStartIndex+Y.lineLength,Ot=oa(ht,Le,wt,Kt,J,dr,Mr,Y,Ze,ge,ur);if(!Ot)return{notEnoughRoom:!0};var Jt=Mn(Ot.first.point,ne).point,Lt=Mn(Ot.last.point,ne).point;if(O&&!J){var Tr=ka(Y.writingMode,Jt,Lt,Je);if(Tr)return Tr}sr=[Ot.first];for(var qr=Y.glyphStartIndex+1;qr0?yn.point:Kr(Mr,Ki,ci,1,K),ca=ka(Y.writingMode,ci,Xa,Je);if(ca)return ca}var An=Ia(ht*Le.getoffsetX(Y.glyphStartIndex),wt,Kt,J,dr,Mr,Y.segment,Y.lineStartIndex,Y.lineStartIndex+Y.lineLength,Ze,ge,ur);if(!An)return{notEnoughRoom:!0};sr=[An]}for(var Pn=0,Nn=sr;Pn0?1:-1,ht=0;O&&(Je*=-1,ht=Math.PI),Je<0&&(ht+=Math.PI);for(var wt=Je>0?Le+ne:Le+ne+1,Kt=K,sr=K,Qt=0,fr=0,er=Math.abs(ur),Ot=[];Qt+fr<=er;){if(wt+=Je,wt=Ze)return null;if(sr=Kt,Ot.push(Kt),Kt=Mr[wt],Kt===void 0){var Jt=new i.Point(Ct.getx(wt),Ct.gety(wt)),Lt=Mn(Jt,dr);if(Lt.signedDistanceFromCamera>0)Kt=Mr[wt]=Lt.point;else{var Tr=wt-Je,qr=Qt===0?ge:new i.Point(Ct.getx(Tr),Ct.gety(Tr));Kt=Kr(qr,Jt,sr,er-Qt+1,dr)}}Qt+=fr,fr=sr.dist(Kt)}var ci=(er-Qt)/fr,Cn=Kt.sub(sr),Ki=Cn.mult(ci)._add(sr);Ki._add(Cn._unit()._perp()._mult(J*Je));var yn=ht+Math.atan2(Kt.y-sr.y,Kt.x-sr.x);return Ot.push(Ki),{point:Ki,angle:yn,path:Ot}}var Yo=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function fa(Y,R){for(var J=0;J=1;xa--)Nn.push(An.path[xa]);for(var Zo=1;Zo0){for(var vu=Nn[0].clone(),zu=Nn[0].clone(),Ju=1;Ju=yn.x&&zu.x<=Xa.x&&vu.y>=yn.y&&zu.y<=Xa.y?Du=[Nn]:zu.xXa.x||zu.yXa.y?Du=[]:Du=i.clipLine([Nn],yn.x,yn.y,Xa.x,Xa.y)}for(var Uf=0,wd=Du;Uf=this.screenRightBoundary||Kthis.screenBottomBoundary},ys.prototype.isInsideGrid=function(R,J,O,K){return O>=0&&R=0&&J0){var er;return this.prevPlacement&&this.prevPlacement.variableOffsets[ur.crossTileID]&&this.prevPlacement.placements[ur.crossTileID]&&this.prevPlacement.placements[ur.crossTileID].text&&(er=this.prevPlacement.variableOffsets[ur.crossTileID].anchor),this.variableOffsets[ur.crossTileID]={textOffset:Kt,width:O,height:K,anchor:R,textBoxScale:ge,prevAnchor:er},this.markUsedJustification(Je,R,ur,ht),Je.allowVerticalPlacement&&(this.markUsedOrientation(Je,ht,ur),this.placedOrientations[ur.crossTileID]=ht),{shift:sr,placedGlyphBoxes:Qt}}},Po.prototype.placeLayerBucketPart=function(R,J,O){var K=this,ge=R.parameters,ne=ge.bucket,Le=ge.layout,Ze=ge.posMatrix,Ct=ge.textLabelPlaneMatrix,dr=ge.labelToScreenMatrix,Mr=ge.textPixelRatio,ur=ge.holdingForFade,Je=ge.collisionBoxArray,ht=ge.partiallyEvaluatedTextSize,wt=ge.collisionGroup,Kt=Le.get("text-optional"),sr=Le.get("icon-optional"),Qt=Le.get("text-allow-overlap"),fr=Le.get("icon-allow-overlap"),er=Le.get("text-rotation-alignment")==="map",Ot=Le.get("text-pitch-alignment")==="map",Jt=Le.get("icon-text-fit")!=="none",Lt=Le.get("symbol-z-order")==="viewport-y",Tr=Qt&&(fr||!ne.hasIconData()||sr),qr=fr&&(Qt||!ne.hasTextData()||Kt);!ne.collisionArrays&&Je&&ne.deserializeCollisionBoxes(Je);var ci=function(An,Pn){if(!J[An.crossTileID]){if(ur){K.placements[An.crossTileID]=new fo(!1,!1,!1);return}var Nn=!1,xa=!1,Zo=!0,ru=null,yu={box:null,offscreen:null},Du={box:null,offscreen:null},vu=null,zu=null,Ju=null,Uf=0,wd=0,Ad=0;Pn.textFeatureIndex?Uf=Pn.textFeatureIndex:An.useRuntimeCollisionCircles&&(Uf=An.featureIndex),Pn.verticalTextFeatureIndex&&(wd=Pn.verticalTextFeatureIndex);var Td=Pn.textBox;if(Td){var Yp=function(wc){var Wf=i.WritingMode.horizontal;if(ne.allowVerticalPlacement&&!wc&&K.prevPlacement){var Ed=K.prevPlacement.placedOrientations[An.crossTileID];Ed&&(K.placedOrientations[An.crossTileID]=Ed,Wf=Ed,K.markUsedOrientation(ne,Wf,An))}return Wf},fm=function(wc,Wf){if(ne.allowVerticalPlacement&&An.numVerticalGlyphVertices>0&&Pn.verticalTextBox)for(var Ed=0,sg=ne.writingModes;Ed0&&(Hd=Hd.filter(function(wc){return wc!==Md.anchor}),Hd.unshift(Md.anchor))}var kp=function(wc,Wf,Ed){for(var sg=wc.x2-wc.x1,T1=wc.y2-wc.y1,ic=An.textBoxScale,Nx=Jt&&!fr?Wf:null,ay={box:[],offscreen:!1},Mw=Qt?Hd.length*2:Hd.length,Lp=0;Lp=Hd.length,Ux=K.attemptAnchorPlacement(oy,wc,sg,T1,ic,er,Ot,Mr,Ze,wt,Ew,An,ne,Ed,Nx);if(Ux&&(ay=Ux.placedGlyphBoxes,ay&&ay.box&&ay.box.length)){Nn=!0,ru=Ux.shift;break}}return ay},Kp=function(){return kp(Td,Pn.iconBox,i.WritingMode.horizontal)},Cp=function(){var wc=Pn.verticalTextBox,Wf=yu&&yu.box&&yu.box.length;return ne.allowVerticalPlacement&&!Wf&&An.numVerticalGlyphVertices>0&&wc?kp(wc,Pn.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}};fm(Kp,Cp),yu&&(Nn=yu.box,Zo=yu.offscreen);var ng=Yp(yu&&yu.box);if(!Nn&&K.prevPlacement){var cm=K.prevPlacement.variableOffsets[An.crossTileID];cm&&(K.variableOffsets[An.crossTileID]=cm,K.markUsedJustification(ne,cm.anchor,An,ng))}}else{var dv=function(wc,Wf){var Ed=K.collisionIndex.placeCollisionBox(wc,Qt,Mr,Ze,wt.predicate);return Ed&&Ed.box&&Ed.box.length&&(K.markUsedOrientation(ne,Wf,An),K.placedOrientations[An.crossTileID]=Wf),Ed},Sd=function(){return dv(Td,i.WritingMode.horizontal)},pv=function(){var wc=Pn.verticalTextBox;return ne.allowVerticalPlacement&&An.numVerticalGlyphVertices>0&&wc?dv(wc,i.WritingMode.vertical):{box:null,offscreen:null}};fm(Sd,pv),Yp(yu&&yu.box&&yu.box.length)}}if(vu=yu,Nn=vu&&vu.box&&vu.box.length>0,Zo=vu&&vu.offscreen,An.useRuntimeCollisionCircles){var vh=ne.text.placedSymbolArray.get(An.centerJustifiedTextSymbolIndex),hm=i.evaluateSizeForFeature(ne.textSizeData,ht,vh),ag=Le.get("text-padding"),jh=An.collisionCircleDiameter;zu=K.collisionIndex.placeCollisionCircles(Qt,vh,ne.lineVertexArray,ne.glyphOffsetArray,hm,Ze,Ct,dr,O,Ot,wt.predicate,jh,ag),Nn=Qt||zu.circles.length>0&&!zu.collisionDetected,Zo=Zo&&zu.offscreen}if(Pn.iconFeatureIndex&&(Ad=Pn.iconFeatureIndex),Pn.iconBox){var ry=function(wc){var Wf=Jt&&ru?Co(wc,ru.x,ru.y,er,Ot,K.transform.angle):wc;return K.collisionIndex.placeCollisionBox(Wf,fr,Mr,Ze,wt.predicate)};Du&&Du.box&&Du.box.length&&Pn.verticalIconBox?(Ju=ry(Pn.verticalIconBox),xa=Ju.box.length>0):(Ju=ry(Pn.iconBox),xa=Ju.box.length>0),Zo=Zo&&Ju.offscreen}var w1=Kt||An.numHorizontalGlyphVertices===0&&An.numVerticalGlyphVertices===0,A1=sr||An.numIconVertices===0;if(!w1&&!A1?xa=Nn=xa&&Nn:A1?w1||(xa=xa&&Nn):Nn=xa&&Nn,Nn&&vu&&vu.box&&(Du&&Du.box&&wd?K.collisionIndex.insertCollisionBox(vu.box,Le.get("text-ignore-placement"),ne.bucketInstanceId,wd,wt.ID):K.collisionIndex.insertCollisionBox(vu.box,Le.get("text-ignore-placement"),ne.bucketInstanceId,Uf,wt.ID)),xa&&Ju&&K.collisionIndex.insertCollisionBox(Ju.box,Le.get("icon-ignore-placement"),ne.bucketInstanceId,Ad,wt.ID),zu&&(Nn&&K.collisionIndex.insertCollisionCircles(zu.circles,Le.get("text-ignore-placement"),ne.bucketInstanceId,Uf,wt.ID),O)){var og=ne.bucketInstanceId,iy=K.collisionCircleArrays[og];iy===void 0&&(iy=K.collisionCircleArrays[og]=new mn);for(var ny=0;ny=0;--Ki){var yn=Cn[Ki];ci(ne.symbolInstances.get(yn),ne.collisionArrays[yn])}else for(var Xa=R.symbolInstanceStart;Xa=0&&(ne>=0&&dr!==ne?R.text.placedSymbolArray.get(dr).crossTileID=0:R.text.placedSymbolArray.get(dr).crossTileID=O.crossTileID)}},Po.prototype.markUsedOrientation=function(R,J,O){for(var K=J===i.WritingMode.horizontal||J===i.WritingMode.horizontalOnly?J:0,ge=J===i.WritingMode.vertical?J:0,ne=[O.leftJustifiedTextSymbolIndex,O.centerJustifiedTextSymbolIndex,O.rightJustifiedTextSymbolIndex],Le=0,Ze=ne;Le0||Ot>0,ci=fr.numIconVertices>0,Cn=K.placedOrientations[fr.crossTileID],Ki=Cn===i.WritingMode.vertical,yn=Cn===i.WritingMode.horizontal||Cn===i.WritingMode.horizontalOnly;if(qr){var Xa=Qo(Tr.text),ca=Ki?Wi:Xa;ht(R.text,er,ca);var An=yn?Wi:Xa;ht(R.text,Ot,An);var Pn=Tr.text.isHidden();[fr.rightJustifiedTextSymbolIndex,fr.centerJustifiedTextSymbolIndex,fr.leftJustifiedTextSymbolIndex].forEach(function(Ad){Ad>=0&&(R.text.placedSymbolArray.get(Ad).hidden=Pn||Ki?1:0)}),fr.verticalPlacedTextSymbolIndex>=0&&(R.text.placedSymbolArray.get(fr.verticalPlacedTextSymbolIndex).hidden=Pn||yn?1:0);var Nn=K.variableOffsets[fr.crossTileID];Nn&&K.markUsedJustification(R,Nn.anchor,fr,Cn);var xa=K.placedOrientations[fr.crossTileID];xa&&(K.markUsedJustification(R,"left",fr,xa),K.markUsedOrientation(R,xa,fr))}if(ci){var Zo=Qo(Tr.icon),ru=!(ur&&fr.verticalPlacedIconSymbolIndex&&Ki);if(fr.placedIconSymbolIndex>=0){var yu=ru?Zo:Wi;ht(R.icon,fr.numIconVertices,yu),R.icon.placedSymbolArray.get(fr.placedIconSymbolIndex).hidden=Tr.icon.isHidden()}if(fr.verticalPlacedIconSymbolIndex>=0){var Du=ru?Wi:Zo;ht(R.icon,fr.numVerticalIconVertices,Du),R.icon.placedSymbolArray.get(fr.verticalPlacedIconSymbolIndex).hidden=Tr.icon.isHidden()}}if(R.hasIconCollisionBoxData()||R.hasTextCollisionBoxData()){var vu=R.collisionArrays[Qt];if(vu){var zu=new i.Point(0,0);if(vu.textBox||vu.verticalTextBox){var Ju=!0;if(Ct){var Uf=K.variableOffsets[Jt];Uf?(zu=ws(Uf.anchor,Uf.width,Uf.height,Uf.textOffset,Uf.textBoxScale),dr&&zu._rotate(Mr?K.transform.angle:-K.transform.angle)):Ju=!1}vu.textBox&&ji(R.textCollisionBox.collisionVertexArray,Tr.text.placed,!Ju||Ki,zu.x,zu.y),vu.verticalTextBox&&ji(R.textCollisionBox.collisionVertexArray,Tr.text.placed,!Ju||yn,zu.x,zu.y)}var wd=!!(!yn&&vu.verticalIconBox);vu.iconBox&&ji(R.iconCollisionBox.collisionVertexArray,Tr.icon.placed,wd,ur?zu.x:0,ur?zu.y:0),vu.verticalIconBox&&ji(R.iconCollisionBox.collisionVertexArray,Tr.icon.placed,!wd,ur?zu.x:0,ur?zu.y:0)}}},Kt=0;KtR},Po.prototype.setStale=function(){this.stale=!0};function ji(Y,R,J,O,K){Y.emplaceBack(R?1:0,J?1:0,O||0,K||0),Y.emplaceBack(R?1:0,J?1:0,O||0,K||0),Y.emplaceBack(R?1:0,J?1:0,O||0,K||0),Y.emplaceBack(R?1:0,J?1:0,O||0,K||0)}var gn=Math.pow(2,25),Ps=Math.pow(2,24),Ha=Math.pow(2,17),Sn=Math.pow(2,16),ao=Math.pow(2,9),Ba=Math.pow(2,8),Ko=Math.pow(2,1);function Qo(Y){if(Y.opacity===0&&!Y.placed)return 0;if(Y.opacity===1&&Y.placed)return 4294967295;var R=Y.placed?1:0,J=Math.floor(Y.opacity*127);return J*gn+R*Ps+J*Ha+R*Sn+J*ao+R*Ba+J*Ko+R}var Wi=0,Sa=function(R){this._sortAcrossTiles=R.layout.get("symbol-z-order")!=="viewport-y"&&R.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Sa.prototype.continuePlacement=function(R,J,O,K,ge){for(var ne=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var Le=R[this._currentPlacementIndex],Ze=J[Le],Ct=this.placement.collisionIndex.transform.zoom;if(Ze.type==="symbol"&&(!Ze.minzoom||Ze.minzoom<=Ct)&&(!Ze.maxzoom||Ze.maxzoom>Ct)){this._inProgressLayer||(this._inProgressLayer=new Sa(Ze));var dr=this._inProgressLayer.continuePlacement(O[Ze.source],this.placement,this._showCollisionBoxes,Ze,ne);if(dr)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Qa.prototype.commit=function(R){return this.placement.commit(R),this.placement};var vn=512/i.EXTENT/2,da=function(R,J,O){this.tileID=R,this.indexedSymbolInstances={},this.bucketInstanceId=O;for(var K=0;KR.overscaledZ)for(var Ct in Ze){var dr=Ze[Ct];dr.tileID.isChildOf(R)&&dr.findMatches(J.symbolInstances,R,ne)}else{var Mr=R.scaledTo(Number(Le)),ur=Ze[Mr.key];ur&&ur.findMatches(J.symbolInstances,R,ne)}}for(var Je=0;Je0)throw new Error("Unimplemented: "+ne.map(function(Le){return Le.command}).join(", ")+".");return ge.forEach(function(Le){Le.command!=="setTransition"&&K[Le.command].apply(K,Le.args)}),this.stylesheet=O,!0},R.prototype.addImage=function(O,K){if(this.getImage(O))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(O,K),this._afterImageUpdated(O)},R.prototype.updateImage=function(O,K){this.imageManager.updateImage(O,K)},R.prototype.getImage=function(O){return this.imageManager.getImage(O)},R.prototype.removeImage=function(O){if(!this.getImage(O))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(O),this._afterImageUpdated(O)},R.prototype._afterImageUpdated=function(O){this._availableImages=this.imageManager.listImages(),this._changedImages[O]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},R.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},R.prototype.addSource=function(O,K,ge){var ne=this;if(ge===void 0&&(ge={}),this._checkLoaded(),this.sourceCaches[O]!==void 0)throw new Error("There is already a source with this ID");if(!K.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(K).join(", ")+".");var Le=["vector","raster","geojson","video","image"],Ze=Le.indexOf(K.type)>=0;if(!(Ze&&this._validate(i.validateStyle.source,"sources."+O,K,null,ge))){this.map&&this.map._collectResourceTiming&&(K.collectResourceTiming=!0);var Ct=this.sourceCaches[O]=new Ur(O,K,this.dispatcher);Ct.style=this,Ct.setEventedParent(this,function(){return{isSourceLoaded:ne.loaded(),source:Ct.serialize(),sourceId:O}}),Ct.onAdd(this.map),this._changed=!0}},R.prototype.removeSource=function(O){if(this._checkLoaded(),this.sourceCaches[O]===void 0)throw new Error("There is no source with this ID");for(var K in this._layers)if(this._layers[K].source===O)return this.fire(new i.ErrorEvent(new Error('Source "'+O+'" cannot be removed while layer "'+K+'" is using it.')));var ge=this.sourceCaches[O];delete this.sourceCaches[O],delete this._updatedSources[O],ge.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:O})),ge.setEventedParent(null),ge.clearTiles(),ge.onRemove&&ge.onRemove(this.map),this._changed=!0},R.prototype.setGeoJSONSourceData=function(O,K){this._checkLoaded();var ge=this.sourceCaches[O].getSource();ge.setData(K),this._changed=!0},R.prototype.getSource=function(O){return this.sourceCaches[O]&&this.sourceCaches[O].getSource()},R.prototype.addLayer=function(O,K,ge){ge===void 0&&(ge={}),this._checkLoaded();var ne=O.id;if(this.getLayer(ne)){this.fire(new i.ErrorEvent(new Error('Layer with id "'+ne+'" already exists on this map')));return}var Le;if(O.type==="custom"){if(ps(this,i.validateCustomStyleLayer(O)))return;Le=i.createStyleLayer(O)}else{if(typeof O.source=="object"&&(this.addSource(ne,O.source),O=i.clone$1(O),O=i.extend(O,{source:ne})),this._validate(i.validateStyle.layer,"layers."+ne,O,{arrayIndex:-1},ge))return;Le=i.createStyleLayer(O),this._validateLayer(Le),Le.setEventedParent(this,{layer:{id:ne}}),this._serializedLayers[Le.id]=Le.serialize()}var Ze=K?this._order.indexOf(K):this._order.length;if(K&&Ze===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}if(this._order.splice(Ze,0,ne),this._layerOrderChanged=!0,this._layers[ne]=Le,this._removedLayers[ne]&&Le.source&&Le.type!=="custom"){var Ct=this._removedLayers[ne];delete this._removedLayers[ne],Ct.type!==Le.type?this._updatedSources[Le.source]="clear":(this._updatedSources[Le.source]="reload",this.sourceCaches[Le.source].pause())}this._updateLayer(Le),Le.onAdd&&Le.onAdd(this.map)},R.prototype.moveLayer=function(O,K){this._checkLoaded(),this._changed=!0;var ge=this._layers[O];if(!ge){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be moved.")));return}if(O!==K){var ne=this._order.indexOf(O);this._order.splice(ne,1);var Le=K?this._order.indexOf(K):this._order.length;if(K&&Le===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}this._order.splice(Le,0,O),this._layerOrderChanged=!0}},R.prototype.removeLayer=function(O){this._checkLoaded();var K=this._layers[O];if(!K){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be removed.")));return}K.setEventedParent(null);var ge=this._order.indexOf(O);this._order.splice(ge,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[O]=K,delete this._layers[O],delete this._serializedLayers[O],delete this._updatedLayers[O],delete this._updatedPaintProps[O],K.onRemove&&K.onRemove(this.map)},R.prototype.getLayer=function(O){return this._layers[O]},R.prototype.hasLayer=function(O){return O in this._layers},R.prototype.setLayerZoomRange=function(O,K,ge){this._checkLoaded();var ne=this.getLayer(O);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot have zoom extent.")));return}ne.minzoom===K&&ne.maxzoom===ge||(K!=null&&(ne.minzoom=K),ge!=null&&(ne.maxzoom=ge),this._updateLayer(ne))},R.prototype.setFilter=function(O,K,ge){ge===void 0&&(ge={}),this._checkLoaded();var ne=this.getLayer(O);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be filtered.")));return}if(!i.deepEqual(ne.filter,K)){if(K==null){ne.filter=void 0,this._updateLayer(ne);return}this._validate(i.validateStyle.filter,"layers."+ne.id+".filter",K,null,ge)||(ne.filter=i.clone$1(K),this._updateLayer(ne))}},R.prototype.getFilter=function(O){return i.clone$1(this.getLayer(O).filter)},R.prototype.setLayoutProperty=function(O,K,ge,ne){ne===void 0&&(ne={}),this._checkLoaded();var Le=this.getLayer(O);if(!Le){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be styled.")));return}i.deepEqual(Le.getLayoutProperty(K),ge)||(Le.setLayoutProperty(K,ge,ne),this._updateLayer(Le))},R.prototype.getLayoutProperty=function(O,K){var ge=this.getLayer(O);if(!ge){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style.")));return}return ge.getLayoutProperty(K)},R.prototype.setPaintProperty=function(O,K,ge,ne){ne===void 0&&(ne={}),this._checkLoaded();var Le=this.getLayer(O);if(!Le){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be styled.")));return}if(!i.deepEqual(Le.getPaintProperty(K),ge)){var Ze=Le.setPaintProperty(K,ge,ne);Ze&&this._updateLayer(Le),this._changed=!0,this._updatedPaintProps[O]=!0}},R.prototype.getPaintProperty=function(O,K){return this.getLayer(O).getPaintProperty(K)},R.prototype.setFeatureState=function(O,K){this._checkLoaded();var ge=O.source,ne=O.sourceLayer,Le=this.sourceCaches[ge];if(Le===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+ge+"' does not exist in the map's style.")));return}var Ze=Le.getSource().type;if(Ze==="geojson"&&ne){this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(Ze==="vector"&&!ne){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}O.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),Le.setFeatureState(ne,O.id,K)},R.prototype.removeFeatureState=function(O,K){this._checkLoaded();var ge=O.source,ne=this.sourceCaches[ge];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+ge+"' does not exist in the map's style.")));return}var Le=ne.getSource().type,Ze=Le==="vector"?O.sourceLayer:void 0;if(Le==="vector"&&!Ze){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(K&&typeof O.id!="string"&&typeof O.id!="number"){this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}ne.removeFeatureState(Ze,O.id,K)},R.prototype.getFeatureState=function(O){this._checkLoaded();var K=O.source,ge=O.sourceLayer,ne=this.sourceCaches[K];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+K+"' does not exist in the map's style.")));return}var Le=ne.getSource().type;if(Le==="vector"&&!ge){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return O.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ne.getFeatureState(ge,O.id)},R.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},R.prototype.serialize=function(){return i.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:i.mapObject(this.sourceCaches,function(O){return O.serialize()}),layers:this._serializeLayers(this._order)},function(O){return O!==void 0})},R.prototype._updateLayer=function(O){this._updatedLayers[O.id]=!0,O.source&&!this._updatedSources[O.source]&&this.sourceCaches[O.source].getSource().type!=="raster"&&(this._updatedSources[O.source]="reload",this.sourceCaches[O.source].pause()),this._changed=!0},R.prototype._flattenAndSortRenderedFeatures=function(O){for(var K=this,ge=function(yn){return K._layers[yn].type==="fill-extrusion"},ne={},Le=[],Ze=this._order.length-1;Ze>=0;Ze--){var Ct=this._order[Ze];if(ge(Ct)){ne[Ct]=Ze;for(var dr=0,Mr=O;dr=0;Qt--){var fr=this._order[Qt];if(ge(fr))for(var er=Le.length-1;er>=0;er--){var Ot=Le[er].feature;if(ne[Ot.layer.id] .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}});var Ok=Te((Kxr,$Ve)=>{"use strict";var YVe=ei(),KVe=jl().defaultLine,_Wt=zc().attributes,xWt=gc(),bWt=Zc().textposition,wWt=Sc().overrideAll,AWt=Pf().templatedArray,sJ=f1(),JVe=xWt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});JVe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var TWt=$Ve.exports=wWt({_arrayAttrRegexps:[YVe.counterRegex("mapbox",".layers",!0)],domain:_Wt({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:sJ.styleValuesMapbox.concat(sJ.styleValuesNonMapbox),dflt:sJ.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:AWt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:KVe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:KVe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:JVe,textposition:YVe.extendFlat({},bWt,{arrayOk:!1})}})},"plot","from-root");TWt.uirevision={valType:"any",editType:"none"}});var $8=Te((Jxr,tGe)=>{"use strict";var SWt=Nu().hovertemplateAttrs,MWt=Nu().texttemplateAttrs,EWt=Em(),qk=G2(),xS=Zc(),QVe=Ok(),kWt=Vf(),CWt=nc(),ew=Su().extendFlat,LWt=Sc().overrideAll,PWt=Ok(),eGe=qk.line,bS=qk.marker;tGe.exports=LWt({lon:qk.lon,lat:qk.lat,cluster:{enabled:{valType:"boolean"},maxzoom:ew({},PWt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:ew({},bS.opacity,{dflt:1})},mode:ew({},xS.mode,{dflt:"markers"}),text:ew({},xS.text,{}),texttemplate:MWt({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:ew({},xS.hovertext,{}),line:{color:eGe.color,width:eGe.width},connectgaps:xS.connectgaps,marker:ew({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:bS.opacity,size:bS.size,sizeref:bS.sizeref,sizemin:bS.sizemin,sizemode:bS.sizemode},CWt("marker")),fill:qk.fill,fillcolor:EWt(),textfont:QVe.layers.symbol.textfont,textposition:QVe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:xS.selected.marker},unselected:{marker:xS.unselected.marker},hoverinfo:ew({},kWt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:SWt()},"calc","nested")});var lJ=Te(($xr,rGe)=>{"use strict";var zWt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];rGe.exports={isSupportedFont:function(e){return zWt.indexOf(e)!==-1}}});var aGe=Te((Qxr,nGe)=>{"use strict";var Nk=ei(),uJ=lc(),IWt=$v(),RWt=I0(),DWt=R0(),FWt=zm(),iGe=$8(),BWt=lJ().isSupportedFont;nGe.exports=function(t,r,n,i){function a(v,k){return Nk.coerce(t,r,iGe,v,k)}function o(v,k){return Nk.coerce2(t,r,iGe,v,k)}var s=OWt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("hovertext"),a("hovertemplate"),a("mode"),a("below"),uJ.hasMarkers(r)){IWt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var u=r.marker;u.symbol!=="circle"&&(Nk.isArrayOrTypedArray(u.size)&&(u.size=u.size[0]),Nk.isArrayOrTypedArray(u.color)&&(u.color=u.color[0]))}uJ.hasLines(r)&&(RWt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var l=o("cluster.maxzoom"),f=o("cluster.step"),c=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),p=l!==!1||f!==!1||c!==!1||h!==!1||d!==!1,x=a("cluster.enabled",p);if(x||uJ.hasText(r)){var b=i.font.family;DWt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:BWt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&FWt(t,r,n,a),Nk.coerceSelectionMarkerOpacity(r,a)};function OWt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var fJ=Te((ebr,sGe)=>{"use strict";var oGe=wu();sGe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=oGe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=oGe.tickText(o,o.c2l(s[1]),!0).text,i}});var cJ=Te((tbr,uGe)=>{"use strict";var lGe=ei();uGe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=lGe.isArrayOrTypedArray(r)?lGe.mean(r):r,s=.5+o/100,u=1.5+o/100,l=["",""],f=[0,0];switch(i){case"top":l[0]="top",f[1]=-u;break;case"bottom":l[0]="bottom",f[1]=u;break}switch(a){case"left":l[1]="right",f[0]=-s;break;case"right":l[1]="left",f[0]=s;break}var c;return l[0]&&l[1]?c=l.join("-"):l[0]?c=l[0]:l[1]?c=l[1]:c="center",{anchor:c,offset:f}}});var vGe=Te((rbr,pGe)=>{"use strict";var hGe=ku(),sp=ei(),qWt=nf().BADNUM,eB=rx(),fGe=_c(),NWt=Mu(),UWt=S3(),tB=lc(),VWt=lJ().isSupportedFont,GWt=cJ(),HWt=rv().appendArrayPointValue,WWt=Zf().NEWLINES,jWt=Zf().BR_TAG_ALL;pGe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=tB.hasLines(n),s=tB.hasMarkers(n),u=tB.hasText(n),l=s&&n.marker.symbol==="circle",f=s&&n.marker.symbol!=="circle",c=n.cluster&&n.cluster.enabled,h=Q8("fill"),d=Q8("line"),p=Q8("circle"),x=Q8("symbol"),b={fill:h,line:d,circle:p,symbol:x};if(!i)return b;var v;if((a||o)&&(v=eB.calcTraceToLineCoords(r)),a&&(h.geojson=eB.makePolygon(v),h.layout.visibility="visible",sp.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=eB.makeLine(v),d.layout.visibility="visible",sp.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),l){var k=XWt(r);p.geojson=k.geojson,p.layout.visibility="visible",c&&(p.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":dJ(n.cluster.color,n.cluster.step),"circle-radius":dJ(n.cluster.size,n.cluster.step),"circle-opacity":dJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":cGe(n),"text-size":12}}),sp.extendFlat(p.paint,{"circle-color":k.mcc,"circle-radius":k.mrc,"circle-opacity":k.mo})}if(l&&c&&(p.filter=["!",["has","point_count"]]),(f||u)&&(x.geojson=ZWt(r,t),sp.extendFlat(x.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),f&&(sp.extendFlat(x.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&sp.extendFlat(x.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),x.layout["icon-allow-overlap"]=n.marker.allowoverlap,sp.extendFlat(x.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),u)){var E=(n.marker||{}).size,T=GWt(n.textposition,E);sp.extendFlat(x.layout,{"text-size":n.textfont.size,"text-anchor":T.anchor,"text-offset":T.offset,"text-font":cGe(n)}),sp.extendFlat(x.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function Q8(e){return{type:e,geojson:eB.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function XWt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=sp.isArrayOrTypedArray(r.color),a=sp.isArrayOrTypedArray(r.size),o=sp.isArrayOrTypedArray(r.opacity),s;function u(E){return t.opacity*E}function l(E){return E/2}var f;i&&(fGe.hasColorscale(t,"marker")?f=fGe.makeColorScaleFuncFromTrace(r):f=sp.identity);var c;a&&(c=UWt(t));var h;o&&(h=function(E){var T=hGe(E)?+sp.constrain(E,0,1):0;return u(T)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),VWt(s)||(s=r);var u=s.split(", ");return u}});var _Ge=Te((ibr,gGe)=>{"use strict";var YWt=ei(),mGe=vGe(),wS=f1().traceLayerPrefix,rm={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function yGe(e,t,r,n){this.type="scattermapbox",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:wS+t+"-fill",line:wS+t+"-line",circle:wS+t+"-circle",symbol:wS+t+"-symbol",cluster:wS+t+"-cluster",clusterCount:wS+t+"-cluster-count"},this.below=null}var Uk=yGe.prototype;Uk.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&YWt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};Uk.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};Uk.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var _=T[L];i.removeLayer(l.layerIds[_])}E||i.removeSource(l.sourceIds.circle)}function h(E){for(var T=rm.nonCluster,L=0;L=0;L--){var _=T[L];i.removeLayer(l.layerIds[_]),E||i.removeSource(l.sourceIds[_])}}function p(E){u?c(E):d(E)}function x(E){s?f(E):h(E)}function b(){for(var E=s?rm.cluster:rm.nonCluster,T=0;T=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};gGe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new yGe(t,n.uid,i,a),s=mGe(t.gd,r),u=o.below=t.belowLookup["trace-"+n.uid],l,f,c;if(i)for(o.addSource("circle",s.circle,n.cluster),l=0;l{"use strict";var KWt=Xc(),pJ=ei(),JWt=oA(),$Wt=pJ.fillText,QWt=nf().BADNUM,ejt=f1().traceLayerPrefix;function tjt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,u=[],l=ejt+i.uid+"-circle",f=i.cluster&&i.cluster.enabled;if(f){var c=s.map.queryRenderedFeatures(null,{layers:[l]});u=c.map(function(S){return S.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,p=t-d;function x(S){var m=S.lonlat;if(m[0]===QWt||f&&u.indexOf(S.i+1)===-1)return 1/0;var P=pJ.modHalf(m[0],360),A=m[1],B=s.project([P,A]),F=B.x-a.c2p([p,A]),U=B.y-o.c2p([P,r]),G=Math.max(3,S.mrc||0);return Math.max(Math.sqrt(F*F+U*U)-G,1-3/G)}if(KWt.getClosest(n,x,e),e.index!==!1){var b=n[e.index],v=b.lonlat,k=[pJ.modHalf(v[0],360)+d,v[1]],E=a.c2p(k),T=o.c2p(k),L=b.mrc||1;e.x0=E-L,e.x1=E+L,e.y0=T-L,e.y1=T+L;var _={};_[i.subplot]={_subplot:s};var C=i._module.formatLabels(b,i,_);return e.lonLabel=C.lonLabel,e.latLabel=C.latLabel,e.color=JWt(i,b),e.extraText=xGe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function xGe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,u=t.lonlat,l=[];function f(c){return c+"\xB0"}return a||o&&s?l.push("("+f(u[1])+", "+f(u[0])+")"):o?l.push(r.lon+f(u[0])):s&&l.push(r.lat+f(u[1])),(a||i.indexOf("text")!==-1)&&$Wt(t,e,l),l.join("
")}bGe.exports={hoverPoints:tjt,getExtraText:xGe}});var AGe=Te((abr,wGe)=>{"use strict";wGe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var SGe=Te((obr,TGe)=>{"use strict";var rjt=ei(),ijt=lc(),njt=nf().BADNUM;TGe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u;if(!ijt.hasMarkers(s))return[];if(r===!1)for(u=0;u{(function(e,t){typeof vJ=="object"&&typeof mJ!="undefined"?mJ.exports=t():(e=e||self,e.mapboxgl=t())})(vJ,function(){"use strict";var e,t,r;function n(i,a){if(!e)e=a;else if(!t)t=a;else{var o="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",s={};e(s),r=a(s),typeof window!="undefined"&&(r.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}}return n(["exports"],function(i){"use strict";function a(y,g){return g={exports:{}},y(g,g.exports),g.exports}var o="1.13.4",s=u;function u(y,g,z,V){this.cx=3*y,this.bx=3*(z-y)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*g,this.by=3*(V-g)-this.cy,this.ay=1-this.cy-this.by,this.p1x=y,this.p1y=V,this.p2x=z,this.p2y=V}u.prototype.sampleCurveX=function(y){return((this.ax*y+this.bx)*y+this.cx)*y},u.prototype.sampleCurveY=function(y){return((this.ay*y+this.by)*y+this.cy)*y},u.prototype.sampleCurveDerivativeX=function(y){return(3*this.ax*y+2*this.bx)*y+this.cx},u.prototype.solveCurveX=function(y,g){typeof g=="undefined"&&(g=1e-6);var z,V,$,oe,me;for($=y,me=0;me<8;me++){if(oe=this.sampleCurveX($)-y,Math.abs(oe)V)return V;for(;zoe?z=$:V=$,$=(V-z)*.5+z}return $},u.prototype.solve=function(y,g){return this.sampleCurveY(this.solveCurveX(y,g))};var l=f;function f(y,g){this.x=y,this.y=g}f.prototype={clone:function(){return new f(this.x,this.y)},add:function(y){return this.clone()._add(y)},sub:function(y){return this.clone()._sub(y)},multByPoint:function(y){return this.clone()._multByPoint(y)},divByPoint:function(y){return this.clone()._divByPoint(y)},mult:function(y){return this.clone()._mult(y)},div:function(y){return this.clone()._div(y)},rotate:function(y){return this.clone()._rotate(y)},rotateAround:function(y,g){return this.clone()._rotateAround(y,g)},matMult:function(y){return this.clone()._matMult(y)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(y){return this.x===y.x&&this.y===y.y},dist:function(y){return Math.sqrt(this.distSqr(y))},distSqr:function(y){var g=y.x-this.x,z=y.y-this.y;return g*g+z*z},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(y){return Math.atan2(this.y-y.y,this.x-y.x)},angleWith:function(y){return this.angleWithSep(y.x,y.y)},angleWithSep:function(y,g){return Math.atan2(this.x*g-this.y*y,this.x*y+this.y*g)},_matMult:function(y){var g=y[0]*this.x+y[1]*this.y,z=y[2]*this.x+y[3]*this.y;return this.x=g,this.y=z,this},_add:function(y){return this.x+=y.x,this.y+=y.y,this},_sub:function(y){return this.x-=y.x,this.y-=y.y,this},_mult:function(y){return this.x*=y,this.y*=y,this},_div:function(y){return this.x/=y,this.y/=y,this},_multByPoint:function(y){return this.x*=y.x,this.y*=y.y,this},_divByPoint:function(y){return this.x/=y.x,this.y/=y.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var y=this.y;return this.y=this.x,this.x=-y,this},_rotate:function(y){var g=Math.cos(y),z=Math.sin(y),V=g*this.x-z*this.y,$=z*this.x+g*this.y;return this.x=V,this.y=$,this},_rotateAround:function(y,g){var z=Math.cos(y),V=Math.sin(y),$=g.x+z*(this.x-g.x)-V*(this.y-g.y),oe=g.y+V*(this.x-g.x)+z*(this.y-g.y);return this.x=$,this.y=oe,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},f.convert=function(y){return y instanceof f?y:Array.isArray(y)?new f(y[0],y[1]):y};var c=typeof self!="undefined"?self:{};function h(y,g){if(Array.isArray(y)){if(!Array.isArray(g)||y.length!==g.length)return!1;for(var z=0;z=1)return 1;var g=y*y,z=g*y;return 4*(y<.5?z:3*(y-g)+z-.75)}function x(y,g,z,V){var $=new s(y,g,z,V);return function(oe){return $.solve(oe)}}var b=x(.25,.1,.25,1);function v(y,g,z){return Math.min(z,Math.max(g,y))}function k(y,g,z){var V=z-g,$=((y-g)%V+V)%V+g;return $===g?z:$}function E(y,g,z){if(!y.length)return z(null,[]);var V=y.length,$=new Array(y.length),oe=null;y.forEach(function(me,je){g(me,function(xt,Rt){xt&&(oe=xt),$[je]=Rt,--V===0&&z(oe,$)})})}function T(y){var g=[];for(var z in y)g.push(y[z]);return g}function L(y,g){var z=[];for(var V in y)V in g||z.push(V);return z}function _(y){for(var g=[],z=arguments.length-1;z-- >0;)g[z]=arguments[z+1];for(var V=0,$=g;V<$.length;V+=1){var oe=$[V];for(var me in oe)y[me]=oe[me]}return y}function C(y,g){for(var z={},V=0;V>g/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,y)}return y()}function A(y){return y<=1?1:Math.pow(2,Math.ceil(Math.log(y)/Math.LN2))}function B(y){return y?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(y):!1}function F(y,g){y.forEach(function(z){g[z]&&(g[z]=g[z].bind(g))})}function U(y,g){return y.indexOf(g,y.length-g.length)!==-1}function G(y,g,z){var V={};for(var $ in y)V[$]=g.call(z||this,y[$],$,y);return V}function j(y,g,z){var V={};for(var $ in y)g.call(z||this,y[$],$,y)&&(V[$]=y[$]);return V}function H(y){return Array.isArray(y)?y.map(H):typeof y=="object"&&y?G(y,H):y}function N(y,g){for(var z=0;z=0)return!0;return!1}var W={};function re(y){W[y]||(typeof console!="undefined"&&console.warn(y),W[y]=!0)}function ae(y,g,z){return(z.y-y.y)*(g.x-y.x)>(g.y-y.y)*(z.x-y.x)}function be(y){for(var g=0,z=0,V=y.length,$=V-1,oe=void 0,me=void 0;z@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,z={};if(y.replace(g,function($,oe,me,je){var xt=me||je;return z[oe]=xt?xt.toLowerCase():!0,""}),z["max-age"]){var V=parseInt(z["max-age"],10);isNaN(V)?delete z["max-age"]:z["max-age"]=V}return z}var te=null;function ke(y){if(te==null){var g=y.navigator?y.navigator.userAgent:null;te=!!y.safari||!!(g&&(/\b(iPad|iPhone|iPod)\b/.test(g)||g.match("Safari")&&!g.match("Chrome")))}return te}function Ee(y){try{var g=c[y];return g.setItem("_mapbox_test_",1),g.removeItem("_mapbox_test_"),!0}catch(z){return!1}}function Me(y){return c.btoa(encodeURIComponent(y).replace(/%([0-9A-F]{2})/g,function(g,z){return String.fromCharCode(+("0x"+z))}))}function Ne(y){return decodeURIComponent(c.atob(y).split("").map(function(g){return"%"+("00"+g.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var Fe=c.performance&&c.performance.now?c.performance.now.bind(c.performance):Date.now.bind(Date),ye=c.requestAnimationFrame||c.mozRequestAnimationFrame||c.webkitRequestAnimationFrame||c.msRequestAnimationFrame,Ve=c.cancelAnimationFrame||c.mozCancelAnimationFrame||c.webkitCancelAnimationFrame||c.msCancelAnimationFrame,ce,Je,nt={now:Fe,frame:function(g){var z=ye(g);return{cancel:function(){return Ve(z)}}},getImageData:function(g,z){z===void 0&&(z=0);var V=c.document.createElement("canvas"),$=V.getContext("2d");if(!$)throw new Error("failed to create canvas 2d context");return V.width=g.width,V.height=g.height,$.drawImage(g,0,0,g.width,g.height),$.getImageData(-z,-z,g.width+2*z,g.height+2*z)},resolveURL:function(g){return ce||(ce=c.document.createElement("a")),ce.href=g,ce.href},hardwareConcurrency:c.navigator&&c.navigator.hardwareConcurrency||4,get devicePixelRatio(){return c.devicePixelRatio},get prefersReducedMotion(){return c.matchMedia?(Je==null&&(Je=c.matchMedia("(prefers-reduced-motion: reduce)")),Je.matches):!1}},gt={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Nt={supported:!1,testSupport:St},it,Ye=!1,kt,Tt=!1;c.document&&(kt=c.document.createElement("img"),kt.onload=function(){it&&Dt(it),it=null,Tt=!0},kt.onerror=function(){Ye=!0,it=null},kt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function St(y){Ye||!kt||(Tt?Dt(y):it=y)}function Dt(y){var g=y.createTexture();y.bindTexture(y.TEXTURE_2D,g);try{if(y.texImage2D(y.TEXTURE_2D,0,y.RGBA,y.RGBA,y.UNSIGNED_BYTE,kt),y.isContextLost())return;Nt.supported=!0}catch(z){}y.deleteTexture(g),Ye=!0}var Zt="01";function Et(){for(var y="1",g="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",z="",V=0;V<10;V++)z+=g[Math.floor(Math.random()*62)];var $=12*60*60*1e3,oe=[y,Zt,z].join(""),me=Date.now()+$;return{token:oe,tokenExpiresAt:me}}var Ae=function(g,z){this._transformRequestFn=g,this._customAccessToken=z,this._createSkuToken()};Ae.prototype._createSkuToken=function(){var g=Et();this._skuToken=g.token,this._skuTokenExpiresAt=g.tokenExpiresAt},Ae.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Ae.prototype.transformRequest=function(g,z){return this._transformRequestFn?this._transformRequestFn(g,z)||{url:g}:{url:g}},Ae.prototype.normalizeStyleURL=function(g,z){if(!at(g))return g;var V=$e(g);return V.path="/styles/v1"+V.path,this._makeAPIURL(V,this._customAccessToken||z)},Ae.prototype.normalizeGlyphsURL=function(g,z){if(!at(g))return g;var V=$e(g);return V.path="/fonts/v1"+V.path,this._makeAPIURL(V,this._customAccessToken||z)},Ae.prototype.normalizeSourceURL=function(g,z){if(!at(g))return g;var V=$e(g);return V.path="/v4/"+V.authority+".json",V.params.push("secure"),this._makeAPIURL(V,this._customAccessToken||z)},Ae.prototype.normalizeSpriteURL=function(g,z,V,$){var oe=$e(g);return at(g)?(oe.path="/styles/v1"+oe.path+"/sprite"+z+V,this._makeAPIURL(oe,this._customAccessToken||$)):(oe.path+=""+z+V,zt(oe))},Ae.prototype.normalizeTileURL=function(g,z){if(this._isSkuTokenExpired()&&this._createSkuToken(),g&&!at(g))return g;var V=$e(g),$=/(\.(png|jpg)\d*)(?=$)/,oe=/^.+\/v4\//,me=nt.devicePixelRatio>=2||z===512?"@2x":"",je=Nt.supported?".webp":"$1";V.path=V.path.replace($,""+me+je),V.path=V.path.replace(oe,"/"),V.path="/v4"+V.path;var xt=this._customAccessToken||Ue(V.params)||gt.ACCESS_TOKEN;return gt.REQUIRE_ACCESS_TOKEN&&xt&&this._skuToken&&V.params.push("sku="+this._skuToken),this._makeAPIURL(V,xt)},Ae.prototype.canonicalizeTileURL=function(g,z){var V="/v4/",$=/\.[\w]+$/,oe=$e(g);if(!oe.path.match(/(^\/v4\/)/)||!oe.path.match($))return g;var me="mapbox://tiles/";me+=oe.path.replace(V,"");var je=oe.params;return z&&(je=je.filter(function(xt){return!xt.match(/^access_token=/)})),je.length&&(me+="?"+je.join("&")),me},Ae.prototype.canonicalizeTileset=function(g,z){for(var V=z?at(z):!1,$=[],oe=0,me=g.tiles||[];oe=0&&g.params.splice(oe,1)}if($.path!=="/"&&(g.path=""+$.path+g.path),!gt.REQUIRE_ACCESS_TOKEN)return zt(g);if(z=z||gt.ACCESS_TOKEN,!z)throw new Error("An API access token is required to use Mapbox GL. "+V);if(z[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+V);return g.params=g.params.filter(function(me){return me.indexOf("access_token")===-1}),g.params.push("access_token="+z),zt(g)};function at(y){return y.indexOf("mapbox:")===0}var wt=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function vt(y){return wt.test(y)}function st(y){return y.indexOf("sku=")>0&&vt(y)}function Ue(y){for(var g=0,z=y;g=1&&c.localStorage.setItem(z,JSON.stringify(this.eventData))}catch($){re("Unable to write to LocalStorage")}},yr.prototype.processRequests=function(g){},yr.prototype.postEvent=function(g,z,V,$){var oe=this;if(gt.EVENTS_URL){var me=$e(gt.EVENTS_URL);me.params.push("access_token="+($||gt.ACCESS_TOKEN||""));var je={event:this.type,created:new Date(g).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:o,skuId:Zt,userId:this.anonId},xt=z?_(je,z):je,Rt={url:zt(me),headers:{"Content-Type":"text/plain"},body:JSON.stringify([xt])};this.pendingRequest=Ir(Rt,function(Xt){oe.pendingRequest=null,V(Xt),oe.saveEventData(),oe.processRequests($)})}},yr.prototype.queueRequest=function(g,z){this.queue.push(g),this.processRequests(z)};var br=function(y){function g(){y.call(this,"map.load"),this.success={},this.skuToken=""}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.postMapLoadEvent=function(V,$,oe,me){this.skuToken=oe,(gt.EVENTS_URL&&me||gt.ACCESS_TOKEN&&Array.isArray(V)&&V.some(function(je){return at(je)||vt(je)}))&&this.queueRequest({id:$,timestamp:Date.now()},me)},g.prototype.processRequests=function(V){var $=this;if(!(this.pendingRequest||this.queue.length===0)){var oe=this.queue.shift(),me=oe.id,je=oe.timestamp;me&&this.success[me]||(this.anonId||this.fetchEventData(),B(this.anonId)||(this.anonId=P()),this.postEvent(je,{skuToken:this.skuToken},function(xt){xt||me&&($.success[me]=!0)},V))}},g}(yr),Ut=function(y){function g(z){y.call(this,"appUserTurnstile"),this._customAccessToken=z}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.postTurnstileEvent=function(V,$){gt.EVENTS_URL&>.ACCESS_TOKEN&&Array.isArray(V)&&V.some(function(oe){return at(oe)||vt(oe)})&&this.queueRequest(Date.now(),$)},g.prototype.processRequests=function(V){var $=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var oe=hr(gt.ACCESS_TOKEN),me=oe?oe.u:gt.ACCESS_TOKEN,je=me!==this.eventData.tokenU;B(this.anonId)||(this.anonId=P(),je=!0);var xt=this.queue.shift();if(this.eventData.lastSuccess){var Rt=new Date(this.eventData.lastSuccess),Xt=new Date(xt),xr=(xt-this.eventData.lastSuccess)/(24*60*60*1e3);je=je||xr>=1||xr<-1||Rt.getDate()!==Xt.getDate()}else je=!0;if(!je)return this.processRequests();this.postEvent(xt,{"enabled.telemetry":!1},function(qr){qr||($.eventData.lastSuccess=xt,$.eventData.tokenU=me)},V)}},g}(yr),Ie=new Ut,xe=Ie.postTurnstileEvent.bind(Ie),Oe=new br,Re=Oe.postMapLoadEvent.bind(Oe),De="mapbox-tiles",ct=500,ge=50,fe=1e3*60*7,de;function dt(){c.caches&&!de&&(de=c.caches.open(De))}var It;function Pt(y,g){if(It===void 0)try{new Response(new ReadableStream),It=!0}catch(z){It=!1}It?g(y.body):y.blob().then(g)}function rr(y,g,z){if(dt(),!!de){var V={status:g.status,statusText:g.statusText,headers:new c.Headers};g.headers.forEach(function(me,je){return V.headers.set(je,me)});var $=pe(g.headers.get("Cache-Control")||"");if(!$["no-store"]){$["max-age"]&&V.headers.set("Expires",new Date(z+$["max-age"]*1e3).toUTCString());var oe=new Date(V.headers.get("Expires")).getTime()-z;oeDate.now()&&!z["no-cache"]}var Fr=1/0;function di(y){Fr++,Fr>ge&&(y.getActor().send("enforceCacheSizeLimit",ct),Fr=0)}function Di(y){dt(),de&&de.then(function(g){g.keys().then(function(z){for(var V=0;V=200&&z.status<300||z.status===0)&&z.response!==null){var $=z.response;if(y.type==="json")try{$=JSON.parse(z.response)}catch(oe){return g(oe)}g(null,$,z.getResponseHeader("Cache-Control"),z.getResponseHeader("Expires"))}else g(new Gi(z.statusText,z.status,y.url))},z.send(y.body),{cancel:function(){return z.abort()}}}var _r=function(y,g){if(!yt(y.url)){if(c.fetch&&c.Request&&c.AbortController&&c.Request.prototype.hasOwnProperty("signal"))return Vt(y,g);if(Le()&&self.worker&&self.worker.actor){var z=!0;return self.worker.actor.send("getResource",y,g,void 0,z)}}return Wt(y,g)},Lr=function(y,g){return _r(_(y,{type:"json"}),g)},Ur=function(y,g){return _r(_(y,{type:"arrayBuffer"}),g)},Ir=function(y,g){return _r(_(y,{method:"POST"}),g)};function Gr(y){var g=c.document.createElement("a");return g.href=y,g.protocol===c.document.location.protocol&&g.host===c.document.location.host}var jr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function yi(y,g,z,V){var $=new c.Image,oe=c.URL;$.onload=function(){g(null,$),oe.revokeObjectURL($.src),$.onload=null,c.requestAnimationFrame(function(){$.src=jr})},$.onerror=function(){return g(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var me=new c.Blob([new Uint8Array(y)],{type:"image/png"});$.cacheControl=z,$.expires=V,$.src=y.byteLength?oe.createObjectURL(me):jr}function Ei(y,g){var z=new c.Blob([new Uint8Array(y)],{type:"image/png"});c.createImageBitmap(z).then(function(V){g(null,V)}).catch(function(V){g(new Error("Could not load image because of "+V.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var Vi,ti,en=function(){Vi=[],ti=0};en();var Yr=function(y,g){if(Nt.supported&&(y.headers||(y.headers={}),y.headers.accept="image/webp,*/*"),ti>=gt.MAX_PARALLEL_IMAGE_REQUESTS){var z={requestParameters:y,callback:g,cancelled:!1,cancel:function(){this.cancelled=!0}};return Vi.push(z),z}ti++;var V=!1,$=function(){if(!V)for(V=!0,ti--;Vi.length&&ti0||this._oneTimeListeners&&this._oneTimeListeners[g]&&this._oneTimeListeners[g].length>0||this._eventedParent&&this._eventedParent.listens(g)},Ri.prototype.setEventedParent=function(g,z){return this._eventedParent=g,this._eventedParentData=z,this};var xn=8,xi={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},Xr={"*":{type:"source"}},ft=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],tr={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},pr={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},gr={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Zr={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},Ai={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},Qi={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},ni={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},Zi=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],aa={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Mn={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Un={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Ga={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ma={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},oa={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ka={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},so={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Kr={type:"array",value:"*"},Ia={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},Yo={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},fa={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},kn={type:"array",value:"*",minimum:1},Ta={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},ys=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],uo={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},ls={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},$a={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},fo={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},mn={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},ra={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},wa={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},ws={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Co={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},Po={"*":{type:"string"}},ji={$version:xn,$root:xi,sources:Xr,source:ft,source_vector:tr,source_raster:pr,source_raster_dem:gr,source_geojson:Zr,source_video:Ai,source_image:Qi,layer:ni,layout:Zi,layout_background:aa,layout_fill:Mn,layout_circle:Un,layout_heatmap:Ga,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:ma,layout_symbol:oa,layout_raster:ka,layout_hillshade:so,filter:Kr,filter_operator:Ia,geometry_type:Yo,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:fa,expression:kn,light:Ta,paint:ys,paint_fill:uo,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:ls,paint_circle:$a,paint_heatmap:fo,paint_symbol:mn,paint_raster:ra,paint_hillshade:wa,paint_background:ws,transition:Co,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:Po},gn=function(g,z,V,$){this.message=(g?g+": ":"")+V,$&&(this.identifier=$),z!=null&&z.__line__&&(this.line=z.__line__)};function Ps(y){var g=y.key,z=y.value;return z?[new gn(g,z,"constants have been deprecated as of v8")]:[]}function Ha(y){for(var g=[],z=arguments.length-1;z-- >0;)g[z]=arguments[z+1];for(var V=0,$=g;V<$.length;V+=1){var oe=$[V];for(var me in oe)y[me]=oe[me]}return y}function Sn(y){return y instanceof Number||y instanceof String||y instanceof Boolean?y.valueOf():y}function ao(y){if(Array.isArray(y))return y.map(ao);if(y instanceof Object&&!(y instanceof Number||y instanceof String||y instanceof Boolean)){var g={};for(var z in y)g[z]=ao(y[z]);return g}return Sn(y)}var Ba=function(y){function g(z,V){y.call(this,V),this.message=V,this.key=z}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g}(Error),Ko=function(g,z){z===void 0&&(z=[]),this.parent=g,this.bindings={};for(var V=0,$=z;V<$.length;V+=1){var oe=$[V],me=oe[0],je=oe[1];this.bindings[me]=je}};Ko.prototype.concat=function(g){return new Ko(this,g)},Ko.prototype.get=function(g){if(this.bindings[g])return this.bindings[g];if(this.parent)return this.parent.get(g);throw new Error(g+" not found in scope.")},Ko.prototype.has=function(g){return this.bindings[g]?!0:this.parent?this.parent.has(g):!1};var Qo={kind:"null"},Wi={kind:"number"},Sa={kind:"string"},Qa={kind:"boolean"},vn={kind:"color"},da={kind:"object"},la={kind:"value"},vo={kind:"error"},As={kind:"collator"},ps={kind:"formatted"},co={kind:"resolvedImage"};function mo(y,g){return{kind:"array",itemType:y,N:g}}function No(y){if(y.kind==="array"){var g=No(y.itemType);return typeof y.N=="number"?"array<"+g+", "+y.N+">":y.itemType.kind==="value"?"array":"array<"+g+">"}else return y.kind}var jn=[Qo,Wi,Sa,Qa,vn,ps,da,mo(la),co];function Go(y,g){if(g.kind==="error")return null;if(y.kind==="array"){if(g.kind==="array"&&(g.N===0&&g.itemType.kind==="value"||!Go(y.itemType,g.itemType))&&(typeof y.N!="number"||y.N===g.N))return null}else{if(y.kind===g.kind)return null;if(y.kind==="value")for(var z=0,V=jn;z255?255:Rt}function $(Rt){return Rt<0?0:Rt>1?1:Rt}function oe(Rt){return Rt[Rt.length-1]==="%"?V(parseFloat(Rt)/100*255):V(parseInt(Rt))}function me(Rt){return Rt[Rt.length-1]==="%"?$(parseFloat(Rt)/100):$(parseFloat(Rt))}function je(Rt,Xt,xr){return xr<0?xr+=1:xr>1&&(xr-=1),xr*6<1?Rt+(Xt-Rt)*xr*6:xr*2<1?Xt:xr*3<2?Rt+(Xt-Rt)*(2/3-xr)*6:Rt}function xt(Rt){var Xt=Rt.replace(/ /g,"").toLowerCase();if(Xt in z)return z[Xt].slice();if(Xt[0]==="#"){if(Xt.length===4){var xr=parseInt(Xt.substr(1),16);return xr>=0&&xr<=4095?[(xr&3840)>>4|(xr&3840)>>8,xr&240|(xr&240)>>4,xr&15|(xr&15)<<4,1]:null}else if(Xt.length===7){var xr=parseInt(Xt.substr(1),16);return xr>=0&&xr<=16777215?[(xr&16711680)>>16,(xr&65280)>>8,xr&255,1]:null}return null}var qr=Xt.indexOf("("),Pr=Xt.indexOf(")");if(qr!==-1&&Pr+1===Xt.length){var ai=Xt.substr(0,qr),qi=Xt.substr(qr+1,Pr-(qr+1)).split(","),Wn=1;switch(ai){case"rgba":if(qi.length!==4)return null;Wn=me(qi.pop());case"rgb":return qi.length!==3?null:[oe(qi[0]),oe(qi[1]),oe(qi[2]),Wn];case"hsla":if(qi.length!==4)return null;Wn=me(qi.pop());case"hsl":if(qi.length!==3)return null;var bn=(parseFloat(qi[0])%360+360)%360/360,bo=me(qi[1]),ba=me(qi[2]),_o=ba<=.5?ba*(bo+1):ba+bo-ba*bo,Uo=ba*2-_o;return[V(je(Uo,_o,bn+1/3)*255),V(je(Uo,_o,bn)*255),V(je(Uo,_o,bn-1/3)*255),Wn];default:return null}}return null}try{g.parseCSSColor=xt}catch(Rt){}}),Oa=Ns.parseCSSColor,ha=function(g,z,V,$){$===void 0&&($=1),this.r=g,this.g=z,this.b=V,this.a=$};ha.parse=function(g){if(g){if(g instanceof ha)return g;if(typeof g=="string"){var z=Oa(g);if(z)return new ha(z[0]/255*z[3],z[1]/255*z[3],z[2]/255*z[3],z[3])}}},ha.prototype.toString=function(){var g=this.toArray(),z=g[0],V=g[1],$=g[2],oe=g[3];return"rgba("+Math.round(z)+","+Math.round(V)+","+Math.round($)+","+oe+")"},ha.prototype.toArray=function(){var g=this,z=g.r,V=g.g,$=g.b,oe=g.a;return oe===0?[0,0,0,0]:[z*255/oe,V*255/oe,$*255/oe,oe]},ha.black=new ha(0,0,0,1),ha.white=new ha(1,1,1,1),ha.transparent=new ha(0,0,0,0),ha.red=new ha(1,0,0,1);var Vs=function(g,z,V){g?this.sensitivity=z?"variant":"case":this.sensitivity=z?"accent":"base",this.locale=V,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Vs.prototype.compare=function(g,z){return this.collator.compare(g,z)},Vs.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Ya=function(g,z,V,$,oe){this.text=g,this.image=z,this.scale=V,this.fontStack=$,this.textColor=oe},_n=function(g){this.sections=g};_n.fromString=function(g){return new _n([new Ya(g,null,null,null,null)])},_n.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(g){return g.text.length!==0||g.image&&g.image.name.length!==0})},_n.factory=function(g){return g instanceof _n?g:_n.fromString(g)},_n.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(g){return g.text}).join("")},_n.prototype.serialize=function(){for(var g=["format"],z=0,V=this.sections;z=0&&y<=255&&typeof g=="number"&&g>=0&&g<=255&&typeof z=="number"&&z>=0&&z<=255)){var $=typeof V=="number"?[y,g,z,V]:[y,g,z];return"Invalid rgba value ["+$.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof V=="undefined"||typeof V=="number"&&V>=0&&V<=1?null:"Invalid rgba value ["+[y,g,z,V].join(", ")+"]: 'a' must be between 0 and 1."}function Ra(y){if(y===null)return!0;if(typeof y=="string")return!0;if(typeof y=="boolean")return!0;if(typeof y=="number")return!0;if(y instanceof ha)return!0;if(y instanceof Vs)return!0;if(y instanceof _n)return!0;if(y instanceof Vn)return!0;if(Array.isArray(y)){for(var g=0,z=y;g2){var je=g[1];if(typeof je!="string"||!(je in qn)||je==="object")return z.error('The item type argument of "array" must be one of string, number, boolean',1);me=qn[je],V++}else me=la;var xt;if(g.length>3){if(g[2]!==null&&(typeof g[2]!="number"||g[2]<0||g[2]!==Math.floor(g[2])))return z.error('The length argument to "array" must be a positive integer literal',2);xt=g[2],V++}$=mo(me,xt)}else $=qn[oe];for(var Rt=[];V1)&&z.push($)}}return z.concat(this.args.map(function(oe){return oe.serialize()}))};var Ja=function(g){this.type=ps,this.sections=g};Ja.parse=function(g,z){if(g.length<2)return z.error("Expected at least one argument.");var V=g[1];if(!Array.isArray(V)&&typeof V=="object")return z.error("First argument must be an image or text section.");for(var $=[],oe=!1,me=1;me<=g.length-1;++me){var je=g[me];if(oe&&typeof je=="object"&&!Array.isArray(je)){oe=!1;var xt=null;if(je["font-scale"]&&(xt=z.parse(je["font-scale"],1,Wi),!xt))return null;var Rt=null;if(je["text-font"]&&(Rt=z.parse(je["text-font"],1,mo(Sa)),!Rt))return null;var Xt=null;if(je["text-color"]&&(Xt=z.parse(je["text-color"],1,vn),!Xt))return null;var xr=$[$.length-1];xr.scale=xt,xr.font=Rt,xr.textColor=Xt}else{var qr=z.parse(g[me],1,la);if(!qr)return null;var Pr=qr.type.kind;if(Pr!=="string"&&Pr!=="value"&&Pr!=="null"&&Pr!=="resolvedImage")return z.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");oe=!0,$.push({content:qr,scale:null,font:null,textColor:null})}}return new Ja($)},Ja.prototype.evaluate=function(g){var z=function(V){var $=V.content.evaluate(g);return Xn($)===co?new Ya("",$,null,null,null):new Ya(un($),null,V.scale?V.scale.evaluate(g):null,V.font?V.font.evaluate(g).join(","):null,V.textColor?V.textColor.evaluate(g):null)};return new _n(this.sections.map(z))},Ja.prototype.eachChild=function(g){for(var z=0,V=this.sections;z-1),V},lo.prototype.eachChild=function(g){g(this.input)},lo.prototype.outputDefined=function(){return!1},lo.prototype.serialize=function(){return["image",this.input.serialize()]};var eo={"to-boolean":Qa,"to-color":vn,"to-number":Wi,"to-string":Sa},sa=function(g,z){this.type=g,this.args=z};sa.parse=function(g,z){if(g.length<2)return z.error("Expected at least one argument.");var V=g[0];if((V==="to-boolean"||V==="to-string")&&g.length!==2)return z.error("Expected one argument.");for(var $=eo[V],oe=[],me=1;me4?V="Invalid rbga value "+JSON.stringify(z)+": expected an array containing either three or four numeric values.":V=wo(z[0],z[1],z[2],z[3]),!V))return new ha(z[0]/255,z[1]/255,z[2]/255,z[3])}throw new Ka(V||"Could not parse color from value '"+(typeof z=="string"?z:String(JSON.stringify(z)))+"'")}else if(this.type.kind==="number"){for(var xt=null,Rt=0,Xt=this.args;Rt=g[2]||y[1]<=g[1]||y[3]>=g[3])}function Ws(y,g){var z=Ao(y[0]),V=Dn(y[1]),$=Math.pow(2,g.z);return[Math.round(z*$*yo),Math.round(V*$*yo)]}function Ca(y,g,z){var V=y[0]-g[0],$=y[1]-g[1],oe=y[0]-z[0],me=y[1]-z[1];return V*me-oe*$===0&&V*oe<=0&&$*me<=0}function Es(y,g,z){return g[1]>y[1]!=z[1]>y[1]&&y[0]<(z[0]-g[0])*(y[1]-g[1])/(z[1]-g[1])+g[0]}function Ts(y,g){for(var z=!1,V=0,$=g.length;V<$;V++)for(var oe=g[V],me=0,je=oe.length;me0&&xr<0||Xt<0&&xr>0}function ts(y,g,z,V){var $=[g[0]-y[0],g[1]-y[1]],oe=[V[0]-z[0],V[1]-z[1]];return Wa(oe,$)===0?!1:!!(To(y,g,z,V)&&To(z,V,y,g))}function Wo(y,g,z){for(var V=0,$=z;V<$.length;V+=1)for(var oe=$[V],me=0;mez[2]){var $=V*.5,oe=y[0]-z[0]>$?-V:z[0]-y[0]>$?V:0;oe===0&&(oe=y[0]-z[2]>$?-V:z[2]-y[0]>$?V:0),y[0]+=oe}Jo(g,y)}function za(y){y[0]=y[1]=1/0,y[2]=y[3]=-1/0}function ea(y,g,z,V){for(var $=Math.pow(2,V.z)*yo,oe=[V.x*yo,V.y*yo],me=[],je=0,xt=y;je=0)return!1;var z=!0;return y.eachChild(function(V){z&&!Ma(V,g)&&(z=!1)}),z}var Qs=function(g,z){this.type=z.type,this.name=g,this.boundExpression=z};Qs.parse=function(g,z){if(g.length!==2||typeof g[1]!="string")return z.error("'var' expression requires exactly one string literal argument.");var V=g[1];return z.scope.has(V)?new Qs(V,z.scope.get(V)):z.error('Unknown variable "'+V+'". Make sure "'+V+'" has been bound in an enclosing "let" expression before using it.',1)},Qs.prototype.evaluate=function(g){return this.boundExpression.evaluate(g)},Qs.prototype.eachChild=function(){},Qs.prototype.outputDefined=function(){return!1},Qs.prototype.serialize=function(){return["var",this.name]};var ho=function(g,z,V,$,oe){z===void 0&&(z=[]),$===void 0&&($=new Ko),oe===void 0&&(oe=[]),this.registry=g,this.path=z,this.key=z.map(function(me){return"["+me+"]"}).join(""),this.scope=$,this.errors=oe,this.expectedType=V};ho.prototype.parse=function(g,z,V,$,oe){return oe===void 0&&(oe={}),z?this.concat(z,V,$)._parse(g,oe):this._parse(g,oe)},ho.prototype._parse=function(g,z){(g===null||typeof g=="string"||typeof g=="boolean"||typeof g=="number")&&(g=["literal",g]);function V(Xt,xr,qr){return qr==="assert"?new Eo(xr,[Xt]):qr==="coerce"?new sa(xr,[Xt]):Xt}if(Array.isArray(g)){if(g.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var $=g[0];if(typeof $!="string")return this.error("Expression name must be a string, but found "+typeof $+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var oe=this.registry[$];if(oe){var me=oe.parse(g,this);if(!me)return null;if(this.expectedType){var je=this.expectedType,xt=me.type;if((je.kind==="string"||je.kind==="number"||je.kind==="boolean"||je.kind==="object"||je.kind==="array")&&xt.kind==="value")me=V(me,je,z.typeAnnotation||"assert");else if((je.kind==="color"||je.kind==="formatted"||je.kind==="resolvedImage")&&(xt.kind==="value"||xt.kind==="string"))me=V(me,je,z.typeAnnotation||"coerce");else if(this.checkSubtype(je,xt))return null}if(!(me instanceof $n)&&me.type.kind!=="resolvedImage"&&gs(me)){var Rt=new Na;try{me=new $n(me.type,me.evaluate(Rt))}catch(Xt){return this.error(Xt.message),null}}return me}return this.error('Unknown expression "'+$+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof g=="undefined"?this.error("'undefined' value invalid. Use null instead."):typeof g=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof g+" instead.")},ho.prototype.concat=function(g,z,V){var $=typeof g=="number"?this.path.concat(g):this.path,oe=V?this.scope.concat(V):this.scope;return new ho(this.registry,$,z||null,oe,this.errors)},ho.prototype.error=function(g){for(var z=[],V=arguments.length-1;V-- >0;)z[V]=arguments[V+1];var $=""+this.key+z.map(function(oe){return"["+oe+"]"}).join("");this.errors.push(new Ba($,g))},ho.prototype.checkSubtype=function(g,z){var V=Go(g,z);return V&&this.error(V),V};function gs(y){if(y instanceof Qs)return gs(y.boundExpression);if(y instanceof tn&&y.name==="error")return!1;if(y instanceof to)return!1;if(y instanceof Ds)return!1;var g=y instanceof sa||y instanceof Eo,z=!0;return y.eachChild(function(V){g?z=z&&gs(V):z=z&&V instanceof $n}),z?fl(y)&&Ma(y,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function Vo(y,g){for(var z=y.length-1,V=0,$=z,oe=0,me,je;V<=$;)if(oe=Math.floor((V+$)/2),me=y[oe],je=y[oe+1],me<=g){if(oe===z||gg)$=oe-1;else throw new Ka("Input is not a number.");return 0}var Do=function(g,z,V){this.type=g,this.input=z,this.labels=[],this.outputs=[];for(var $=0,oe=V;$=je)return z.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Rt);var xr=z.parse(xt,Xt,oe);if(!xr)return null;oe=oe||xr.type,$.push([je,xr])}return new Do(oe,V,$)},Do.prototype.evaluate=function(g){var z=this.labels,V=this.outputs;if(z.length===1)return V[0].evaluate(g);var $=this.input.evaluate(g);if($<=z[0])return V[0].evaluate(g);var oe=z.length;if($>=z[oe-1])return V[oe-1].evaluate(g);var me=Vo(z,$);return V[me].evaluate(g)},Do.prototype.eachChild=function(g){g(this.input);for(var z=0,V=this.outputs;z0&&g.push(this.labels[z]),g.push(this.outputs[z].serialize());return g};function Lo(y,g,z){return y*(1-z)+g*z}function xs(y,g,z){return new ha(Lo(y.r,g.r,z),Lo(y.g,g.g,z),Lo(y.b,g.b,z),Lo(y.a,g.a,z))}function ks(y,g,z){return y.map(function(V,$){return Lo(V,g[$],z)})}var Ea=Object.freeze({__proto__:null,number:Lo,color:xs,array:ks}),Jn=.95047,Oo=1,rl=1.08883,Gs=4/29,bs=6/29,zs=3*bs*bs,$o=bs*bs*bs,Aa=Math.PI/180,os=180/Math.PI;function _l(y){return y>$o?Math.pow(y,1/3):y/zs+Gs}function Ss(y){return y>bs?y*y*y:zs*(y-Gs)}function po(y){return 255*(y<=.0031308?12.92*y:1.055*Math.pow(y,1/2.4)-.055)}function go(y){return y/=255,y<=.04045?y/12.92:Math.pow((y+.055)/1.055,2.4)}function ss(y){var g=go(y.r),z=go(y.g),V=go(y.b),$=_l((.4124564*g+.3575761*z+.1804375*V)/Jn),oe=_l((.2126729*g+.7151522*z+.072175*V)/Oo),me=_l((.0193339*g+.119192*z+.9503041*V)/rl);return{l:116*oe-16,a:500*($-oe),b:200*(oe-me),alpha:y.a}}function qo(y){var g=(y.l+16)/116,z=isNaN(y.a)?g:g+y.a/500,V=isNaN(y.b)?g:g-y.b/200;return g=Oo*Ss(g),z=Jn*Ss(z),V=rl*Ss(V),new ha(po(3.2404542*z-1.5371385*g-.4985314*V),po(-.969266*z+1.8760108*g+.041556*V),po(.0556434*z-.2040259*g+1.0572252*V),y.alpha)}function zo(y,g,z){return{l:Lo(y.l,g.l,z),a:Lo(y.a,g.a,z),b:Lo(y.b,g.b,z),alpha:Lo(y.alpha,g.alpha,z)}}function io(y){var g=ss(y),z=g.l,V=g.a,$=g.b,oe=Math.atan2($,V)*os;return{h:oe<0?oe+360:oe,c:Math.sqrt(V*V+$*$),l:z,alpha:y.a}}function Io(y){var g=y.h*Aa,z=y.c,V=y.l;return qo({l:V,a:Math.cos(g)*z,b:Math.sin(g)*z,alpha:y.alpha})}function Da(y,g,z){var V=g-y;return y+z*(V>180||V<-180?V-360*Math.round(V/360):V)}function vs(y,g,z){return{h:Da(y.h,g.h,z),c:Lo(y.c,g.c,z),l:Lo(y.l,g.l,z),alpha:Lo(y.alpha,g.alpha,z)}}var fs={forward:ss,reverse:qo,interpolate:zo},cl={forward:io,reverse:Io,interpolate:vs},el=Object.freeze({__proto__:null,lab:fs,hcl:cl}),Hs=function(g,z,V,$,oe){this.type=g,this.operator=z,this.interpolation=V,this.input=$,this.labels=[],this.outputs=[];for(var me=0,je=oe;me1}))return z.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);$={name:"cubic-bezier",controlPoints:xt}}else return z.error("Unknown interpolation type "+String($[0]),1,0);if(g.length-1<4)return z.error("Expected at least 4 arguments, but found only "+(g.length-1)+".");if((g.length-1)%2!==0)return z.error("Expected an even number of arguments.");if(oe=z.parse(oe,2,Wi),!oe)return null;var Rt=[],Xt=null;V==="interpolate-hcl"||V==="interpolate-lab"?Xt=vn:z.expectedType&&z.expectedType.kind!=="value"&&(Xt=z.expectedType);for(var xr=0;xr=qr)return z.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',ai);var Wn=z.parse(Pr,qi,Xt);if(!Wn)return null;Xt=Xt||Wn.type,Rt.push([qr,Wn])}return Xt.kind!=="number"&&Xt.kind!=="color"&&!(Xt.kind==="array"&&Xt.itemType.kind==="number"&&typeof Xt.N=="number")?z.error("Type "+No(Xt)+" is not interpolatable."):new Hs(Xt,V,$,oe,Rt)},Hs.prototype.evaluate=function(g){var z=this.labels,V=this.outputs;if(z.length===1)return V[0].evaluate(g);var $=this.input.evaluate(g);if($<=z[0])return V[0].evaluate(g);var oe=z.length;if($>=z[oe-1])return V[oe-1].evaluate(g);var me=Vo(z,$),je=z[me],xt=z[me+1],Rt=Hs.interpolationFactor(this.interpolation,$,je,xt),Xt=V[me].evaluate(g),xr=V[me+1].evaluate(g);return this.operator==="interpolate"?Ea[this.type.kind.toLowerCase()](Xt,xr,Rt):this.operator==="interpolate-hcl"?cl.reverse(cl.interpolate(cl.forward(Xt),cl.forward(xr),Rt)):fs.reverse(fs.interpolate(fs.forward(Xt),fs.forward(xr),Rt))},Hs.prototype.eachChild=function(g){g(this.input);for(var z=0,V=this.outputs;z=V.length)throw new Ka("Array index out of bounds: "+z+" > "+(V.length-1)+".");if(z!==Math.floor(z))throw new Ka("Array index must be an integer, but found "+z+" instead.");return V[z]},hl.prototype.eachChild=function(g){g(this.index),g(this.input)},hl.prototype.outputDefined=function(){return!1},hl.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Fa=function(g,z){this.type=Qa,this.needle=g,this.haystack=z};Fa.parse=function(g,z){if(g.length!==3)return z.error("Expected 2 arguments, but found "+(g.length-1)+" instead.");var V=z.parse(g[1],1,la),$=z.parse(g[2],2,la);return!V||!$?null:Ys(V.type,[Qa,Sa,Wi,Qo,la])?new Fa(V,$):z.error("Expected first argument to be of type boolean, string, number or null, but found "+No(V.type)+" instead")},Fa.prototype.evaluate=function(g){var z=this.needle.evaluate(g),V=this.haystack.evaluate(g);if(!V)return!1;if(!qs(z,["boolean","string","number","null"]))throw new Ka("Expected first argument to be of type boolean, string, number or null, but found "+No(Xn(z))+" instead.");if(!qs(V,["string","array"]))throw new Ka("Expected second argument to be of type array or string, but found "+No(Xn(V))+" instead.");return V.indexOf(z)>=0},Fa.prototype.eachChild=function(g){g(this.needle),g(this.haystack)},Fa.prototype.outputDefined=function(){return!0},Fa.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Ms=function(g,z,V){this.type=Wi,this.needle=g,this.haystack=z,this.fromIndex=V};Ms.parse=function(g,z){if(g.length<=2||g.length>=5)return z.error("Expected 3 or 4 arguments, but found "+(g.length-1)+" instead.");var V=z.parse(g[1],1,la),$=z.parse(g[2],2,la);if(!V||!$)return null;if(!Ys(V.type,[Qa,Sa,Wi,Qo,la]))return z.error("Expected first argument to be of type boolean, string, number or null, but found "+No(V.type)+" instead");if(g.length===4){var oe=z.parse(g[3],3,Wi);return oe?new Ms(V,$,oe):null}else return new Ms(V,$)},Ms.prototype.evaluate=function(g){var z=this.needle.evaluate(g),V=this.haystack.evaluate(g);if(!qs(z,["boolean","string","number","null"]))throw new Ka("Expected first argument to be of type boolean, string, number or null, but found "+No(Xn(z))+" instead.");if(!qs(V,["string","array"]))throw new Ka("Expected second argument to be of type array or string, but found "+No(Xn(V))+" instead.");if(this.fromIndex){var $=this.fromIndex.evaluate(g);return V.indexOf(z,$)}return V.indexOf(z)},Ms.prototype.eachChild=function(g){g(this.needle),g(this.haystack),this.fromIndex&&g(this.fromIndex)},Ms.prototype.outputDefined=function(){return!1},Ms.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var g=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),g]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var jo=function(g,z,V,$,oe,me){this.inputType=g,this.type=z,this.input=V,this.cases=$,this.outputs=oe,this.otherwise=me};jo.parse=function(g,z){if(g.length<5)return z.error("Expected at least 4 arguments, but found only "+(g.length-1)+".");if(g.length%2!==1)return z.error("Expected an even number of arguments.");var V,$;z.expectedType&&z.expectedType.kind!=="value"&&($=z.expectedType);for(var oe={},me=[],je=2;jeNumber.MAX_SAFE_INTEGER)return Xt.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof Pr=="number"&&Math.floor(Pr)!==Pr)return Xt.error("Numeric branch labels must be integer values.");if(!V)V=Xn(Pr);else if(Xt.checkSubtype(V,Xn(Pr)))return null;if(typeof oe[String(Pr)]!="undefined")return Xt.error("Branch labels must be unique.");oe[String(Pr)]=me.length}var ai=z.parse(Rt,je,$);if(!ai)return null;$=$||ai.type,me.push(ai)}var qi=z.parse(g[1],1,la);if(!qi)return null;var Wn=z.parse(g[g.length-1],g.length-1,$);return!Wn||qi.type.kind!=="value"&&z.concat(1).checkSubtype(V,qi.type)?null:new jo(V,$,qi,oe,me,Wn)},jo.prototype.evaluate=function(g){var z=this.input.evaluate(g),V=Xn(z)===this.inputType&&this.outputs[this.cases[z]]||this.otherwise;return V.evaluate(g)},jo.prototype.eachChild=function(g){g(this.input),this.outputs.forEach(g),g(this.otherwise)},jo.prototype.outputDefined=function(){return this.outputs.every(function(g){return g.outputDefined()})&&this.otherwise.outputDefined()},jo.prototype.serialize=function(){for(var g=this,z=["match",this.input.serialize()],V=Object.keys(this.cases).sort(),$=[],oe={},me=0,je=V;me=5)return z.error("Expected 3 or 4 arguments, but found "+(g.length-1)+" instead.");var V=z.parse(g[1],1,la),$=z.parse(g[2],2,Wi);if(!V||!$)return null;if(!Ys(V.type,[mo(la),Sa,la]))return z.error("Expected first argument to be of type array or string, but found "+No(V.type)+" instead");if(g.length===4){var oe=z.parse(g[3],3,Wi);return oe?new Is(V.type,V,$,oe):null}else return new Is(V.type,V,$)},Is.prototype.evaluate=function(g){var z=this.input.evaluate(g),V=this.beginIndex.evaluate(g);if(!qs(z,["string","array"]))throw new Ka("Expected first argument to be of type array or string, but found "+No(Xn(z))+" instead.");if(this.endIndex){var $=this.endIndex.evaluate(g);return z.slice(V,$)}return z.slice(V)},Is.prototype.eachChild=function(g){g(this.input),g(this.beginIndex),this.endIndex&&g(this.endIndex)},Is.prototype.outputDefined=function(){return!1},Is.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var g=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),g]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function Bs(y,g){return y==="=="||y==="!="?g.kind==="boolean"||g.kind==="string"||g.kind==="number"||g.kind==="null"||g.kind==="value":g.kind==="string"||g.kind==="number"||g.kind==="value"}function At(y,g,z){return g===z}function Gt(y,g,z){return g!==z}function wr(y,g,z){return gz}function Or(y,g,z){return g<=z}function gi(y,g,z){return g>=z}function Ti(y,g,z,V){return V.compare(g,z)===0}function ki(y,g,z,V){return!Ti(y,g,z,V)}function Ji(y,g,z,V){return V.compare(g,z)<0}function Fn(y,g,z,V){return V.compare(g,z)>0}function Pi(y,g,z,V){return V.compare(g,z)<=0}function hi(y,g,z,V){return V.compare(g,z)>=0}function Li(y,g,z){var V=y!=="=="&&y!=="!=";return function(){function $(oe,me,je){this.type=Qa,this.lhs=oe,this.rhs=me,this.collator=je,this.hasUntypedArgument=oe.type.kind==="value"||me.type.kind==="value"}return $.parse=function(me,je){if(me.length!==3&&me.length!==4)return je.error("Expected two or three arguments.");var xt=me[0],Rt=je.parse(me[1],1,la);if(!Rt)return null;if(!Bs(xt,Rt.type))return je.concat(1).error('"'+xt+`" comparisons are not supported for type '`+No(Rt.type)+"'.");var Xt=je.parse(me[2],2,la);if(!Xt)return null;if(!Bs(xt,Xt.type))return je.concat(2).error('"'+xt+`" comparisons are not supported for type '`+No(Xt.type)+"'.");if(Rt.type.kind!==Xt.type.kind&&Rt.type.kind!=="value"&&Xt.type.kind!=="value")return je.error("Cannot compare types '"+No(Rt.type)+"' and '"+No(Xt.type)+"'.");V&&(Rt.type.kind==="value"&&Xt.type.kind!=="value"?Rt=new Eo(Xt.type,[Rt]):Rt.type.kind!=="value"&&Xt.type.kind==="value"&&(Xt=new Eo(Rt.type,[Xt])));var xr=null;if(me.length===4){if(Rt.type.kind!=="string"&&Xt.type.kind!=="string"&&Rt.type.kind!=="value"&&Xt.type.kind!=="value")return je.error("Cannot use collator to compare non-string types.");if(xr=je.parse(me[3],3,As),!xr)return null}return new $(Rt,Xt,xr)},$.prototype.evaluate=function(me){var je=this.lhs.evaluate(me),xt=this.rhs.evaluate(me);if(V&&this.hasUntypedArgument){var Rt=Xn(je),Xt=Xn(xt);if(Rt.kind!==Xt.kind||!(Rt.kind==="string"||Rt.kind==="number"))throw new Ka('Expected arguments for "'+y+'" to be (string, string) or (number, number), but found ('+Rt.kind+", "+Xt.kind+") instead.")}if(this.collator&&!V&&this.hasUntypedArgument){var xr=Xn(je),qr=Xn(xt);if(xr.kind!=="string"||qr.kind!=="string")return g(me,je,xt)}return this.collator?z(me,je,xt,this.collator.evaluate(me)):g(me,je,xt)},$.prototype.eachChild=function(me){me(this.lhs),me(this.rhs),this.collator&&me(this.collator)},$.prototype.outputDefined=function(){return!0},$.prototype.serialize=function(){var me=[y];return this.eachChild(function(je){me.push(je.serialize())}),me},$}()}var Si=Li("==",At,Ti),Gn=Li("!=",Gt,ki),ta=Li("<",wr,Ji),ya=Li(">",mr,Fn),ia=Li("<=",Or,Pi),pa=Li(">=",gi,hi),va=function(g,z,V,$,oe){this.type=Sa,this.number=g,this.locale=z,this.currency=V,this.minFractionDigits=$,this.maxFractionDigits=oe};va.parse=function(g,z){if(g.length!==3)return z.error("Expected two arguments.");var V=z.parse(g[1],1,Wi);if(!V)return null;var $=g[2];if(typeof $!="object"||Array.isArray($))return z.error("NumberFormat options argument must be an object.");var oe=null;if($.locale&&(oe=z.parse($.locale,1,Sa),!oe))return null;var me=null;if($.currency&&(me=z.parse($.currency,1,Sa),!me))return null;var je=null;if($["min-fraction-digits"]&&(je=z.parse($["min-fraction-digits"],1,Wi),!je))return null;var xt=null;return $["max-fraction-digits"]&&(xt=z.parse($["max-fraction-digits"],1,Wi),!xt)?null:new va(V,oe,me,je,xt)},va.prototype.evaluate=function(g){return new Intl.NumberFormat(this.locale?this.locale.evaluate(g):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(g):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(g):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(g):void 0}).format(this.number.evaluate(g))},va.prototype.eachChild=function(g){g(this.number),this.locale&&g(this.locale),this.currency&&g(this.currency),this.minFractionDigits&&g(this.minFractionDigits),this.maxFractionDigits&&g(this.maxFractionDigits)},va.prototype.outputDefined=function(){return!1},va.prototype.serialize=function(){var g={};return this.locale&&(g.locale=this.locale.serialize()),this.currency&&(g.currency=this.currency.serialize()),this.minFractionDigits&&(g["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(g["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),g]};var zn=function(g){this.type=Wi,this.input=g};zn.parse=function(g,z){if(g.length!==2)return z.error("Expected 1 argument, but found "+(g.length-1)+" instead.");var V=z.parse(g[1],1);return V?V.type.kind!=="array"&&V.type.kind!=="string"&&V.type.kind!=="value"?z.error("Expected argument of type string or array, but found "+No(V.type)+" instead."):new zn(V):null},zn.prototype.evaluate=function(g){var z=this.input.evaluate(g);if(typeof z=="string")return z.length;if(Array.isArray(z))return z.length;throw new Ka("Expected value to be of type string or array, but found "+No(Xn(z))+" instead.")},zn.prototype.eachChild=function(g){g(this.input)},zn.prototype.outputDefined=function(){return!1},zn.prototype.serialize=function(){var g=["length"];return this.eachChild(function(z){g.push(z.serialize())}),g};var is={"==":Si,"!=":Gn,">":ya,"<":ta,">=":pa,"<=":ia,array:Eo,at:hl,boolean:Eo,case:Rs,coalesce:tl,collator:to,format:Ja,image:lo,in:Fa,"index-of":Ms,interpolate:Hs,"interpolate-hcl":Hs,"interpolate-lab":Hs,length:zn,let:Fs,literal:$n,match:jo,number:Eo,"number-format":va,object:Eo,slice:Is,step:Do,string:Eo,"to-boolean":sa,"to-color":sa,"to-number":sa,"to-string":sa,var:Qs,within:Ds};function Cs(y,g){var z=g[0],V=g[1],$=g[2],oe=g[3];z=z.evaluate(y),V=V.evaluate(y),$=$.evaluate(y);var me=oe?oe.evaluate(y):1,je=wo(z,V,$,me);if(je)throw new Ka(je);return new ha(z/255*me,V/255*me,$/255*me,me)}function Ks(y,g){return y in g}function dl(y,g){var z=g[y];return typeof z=="undefined"?null:z}function xl(y,g,z,V){for(;z<=V;){var $=z+V>>1;if(g[$]===y)return!0;g[$]>y?V=$-1:z=$+1}return!1}function Ol(y){return{type:y}}tn.register(is,{error:[vo,[Sa],function(y,g){var z=g[0];throw new Ka(z.evaluate(y))}],typeof:[Sa,[la],function(y,g){var z=g[0];return No(Xn(z.evaluate(y)))}],"to-rgba":[mo(Wi,4),[vn],function(y,g){var z=g[0];return z.evaluate(y).toArray()}],rgb:[vn,[Wi,Wi,Wi],Cs],rgba:[vn,[Wi,Wi,Wi,Wi],Cs],has:{type:Qa,overloads:[[[Sa],function(y,g){var z=g[0];return Ks(z.evaluate(y),y.properties())}],[[Sa,da],function(y,g){var z=g[0],V=g[1];return Ks(z.evaluate(y),V.evaluate(y))}]]},get:{type:la,overloads:[[[Sa],function(y,g){var z=g[0];return dl(z.evaluate(y),y.properties())}],[[Sa,da],function(y,g){var z=g[0],V=g[1];return dl(z.evaluate(y),V.evaluate(y))}]]},"feature-state":[la,[Sa],function(y,g){var z=g[0];return dl(z.evaluate(y),y.featureState||{})}],properties:[da,[],function(y){return y.properties()}],"geometry-type":[Sa,[],function(y){return y.geometryType()}],id:[la,[],function(y){return y.id()}],zoom:[Wi,[],function(y){return y.globals.zoom}],"heatmap-density":[Wi,[],function(y){return y.globals.heatmapDensity||0}],"line-progress":[Wi,[],function(y){return y.globals.lineProgress||0}],accumulated:[la,[],function(y){return y.globals.accumulated===void 0?null:y.globals.accumulated}],"+":[Wi,Ol(Wi),function(y,g){for(var z=0,V=0,$=g;V<$.length;V+=1){var oe=$[V];z+=oe.evaluate(y)}return z}],"*":[Wi,Ol(Wi),function(y,g){for(var z=1,V=0,$=g;V<$.length;V+=1){var oe=$[V];z*=oe.evaluate(y)}return z}],"-":{type:Wi,overloads:[[[Wi,Wi],function(y,g){var z=g[0],V=g[1];return z.evaluate(y)-V.evaluate(y)}],[[Wi],function(y,g){var z=g[0];return-z.evaluate(y)}]]},"/":[Wi,[Wi,Wi],function(y,g){var z=g[0],V=g[1];return z.evaluate(y)/V.evaluate(y)}],"%":[Wi,[Wi,Wi],function(y,g){var z=g[0],V=g[1];return z.evaluate(y)%V.evaluate(y)}],ln2:[Wi,[],function(){return Math.LN2}],pi:[Wi,[],function(){return Math.PI}],e:[Wi,[],function(){return Math.E}],"^":[Wi,[Wi,Wi],function(y,g){var z=g[0],V=g[1];return Math.pow(z.evaluate(y),V.evaluate(y))}],sqrt:[Wi,[Wi],function(y,g){var z=g[0];return Math.sqrt(z.evaluate(y))}],log10:[Wi,[Wi],function(y,g){var z=g[0];return Math.log(z.evaluate(y))/Math.LN10}],ln:[Wi,[Wi],function(y,g){var z=g[0];return Math.log(z.evaluate(y))}],log2:[Wi,[Wi],function(y,g){var z=g[0];return Math.log(z.evaluate(y))/Math.LN2}],sin:[Wi,[Wi],function(y,g){var z=g[0];return Math.sin(z.evaluate(y))}],cos:[Wi,[Wi],function(y,g){var z=g[0];return Math.cos(z.evaluate(y))}],tan:[Wi,[Wi],function(y,g){var z=g[0];return Math.tan(z.evaluate(y))}],asin:[Wi,[Wi],function(y,g){var z=g[0];return Math.asin(z.evaluate(y))}],acos:[Wi,[Wi],function(y,g){var z=g[0];return Math.acos(z.evaluate(y))}],atan:[Wi,[Wi],function(y,g){var z=g[0];return Math.atan(z.evaluate(y))}],min:[Wi,Ol(Wi),function(y,g){return Math.min.apply(Math,g.map(function(z){return z.evaluate(y)}))}],max:[Wi,Ol(Wi),function(y,g){return Math.max.apply(Math,g.map(function(z){return z.evaluate(y)}))}],abs:[Wi,[Wi],function(y,g){var z=g[0];return Math.abs(z.evaluate(y))}],round:[Wi,[Wi],function(y,g){var z=g[0],V=z.evaluate(y);return V<0?-Math.round(-V):Math.round(V)}],floor:[Wi,[Wi],function(y,g){var z=g[0];return Math.floor(z.evaluate(y))}],ceil:[Wi,[Wi],function(y,g){var z=g[0];return Math.ceil(z.evaluate(y))}],"filter-==":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1];return y.properties()[z.value]===V.value}],"filter-id-==":[Qa,[la],function(y,g){var z=g[0];return y.id()===z.value}],"filter-type-==":[Qa,[Sa],function(y,g){var z=g[0];return y.geometryType()===z.value}],"filter-<":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1],$=y.properties()[z.value],oe=V.value;return typeof $==typeof oe&&$":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1],$=y.properties()[z.value],oe=V.value;return typeof $==typeof oe&&$>oe}],"filter-id->":[Qa,[la],function(y,g){var z=g[0],V=y.id(),$=z.value;return typeof V==typeof $&&V>$}],"filter-<=":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1],$=y.properties()[z.value],oe=V.value;return typeof $==typeof oe&&$<=oe}],"filter-id-<=":[Qa,[la],function(y,g){var z=g[0],V=y.id(),$=z.value;return typeof V==typeof $&&V<=$}],"filter->=":[Qa,[Sa,la],function(y,g){var z=g[0],V=g[1],$=y.properties()[z.value],oe=V.value;return typeof $==typeof oe&&$>=oe}],"filter-id->=":[Qa,[la],function(y,g){var z=g[0],V=y.id(),$=z.value;return typeof V==typeof $&&V>=$}],"filter-has":[Qa,[la],function(y,g){var z=g[0];return z.value in y.properties()}],"filter-has-id":[Qa,[],function(y){return y.id()!==null&&y.id()!==void 0}],"filter-type-in":[Qa,[mo(Sa)],function(y,g){var z=g[0];return z.value.indexOf(y.geometryType())>=0}],"filter-id-in":[Qa,[mo(la)],function(y,g){var z=g[0];return z.value.indexOf(y.id())>=0}],"filter-in-small":[Qa,[Sa,mo(la)],function(y,g){var z=g[0],V=g[1];return V.value.indexOf(y.properties()[z.value])>=0}],"filter-in-large":[Qa,[Sa,mo(la)],function(y,g){var z=g[0],V=g[1];return xl(y.properties()[z.value],V.value,0,V.value.length-1)}],all:{type:Qa,overloads:[[[Qa,Qa],function(y,g){var z=g[0],V=g[1];return z.evaluate(y)&&V.evaluate(y)}],[Ol(Qa),function(y,g){for(var z=0,V=g;z-1}function ja(y){return!!y.expression&&y.expression.interpolated}function ns(y){return y instanceof Number?"number":y instanceof String?"string":y instanceof Boolean?"boolean":Array.isArray(y)?"array":y===null?"null":typeof y}function Js(y){return typeof y=="object"&&y!==null&&!Array.isArray(y)}function cs(y){return y}function sl(y,g){var z=g.type==="color",V=y.stops&&typeof y.stops[0][0]=="object",$=V||y.property!==void 0,oe=V||!$,me=y.type||(ja(g)?"exponential":"interval");if(z&&(y=Ha({},y),y.stops&&(y.stops=y.stops.map(function(Tl){return[Tl[0],ha.parse(Tl[1])]})),y.default?y.default=ha.parse(y.default):y.default=ha.parse(g.default)),y.colorSpace&&y.colorSpace!=="rgb"&&!el[y.colorSpace])throw new Error("Unknown color space: "+y.colorSpace);var je,xt,Rt;if(me==="exponential")je=Ml;else if(me==="interval")je=zl;else if(me==="categorical"){je=il,xt=Object.create(null);for(var Xt=0,xr=y.stops;Xt=y.stops[V-1][0])return y.stops[V-1][1];var $=Vo(y.stops.map(function(oe){return oe[0]}),z);return y.stops[$][1]}function Ml(y,g,z){var V=y.base!==void 0?y.base:1;if(ns(z)!=="number")return ll(y.default,g.default);var $=y.stops.length;if($===1||z<=y.stops[0][0])return y.stops[0][1];if(z>=y.stops[$-1][0])return y.stops[$-1][1];var oe=Vo(y.stops.map(function(xr){return xr[0]}),z),me=Al(z,V,y.stops[oe][0],y.stops[oe+1][0]),je=y.stops[oe][1],xt=y.stops[oe+1][1],Rt=Ea[g.type]||cs;if(y.colorSpace&&y.colorSpace!=="rgb"){var Xt=el[y.colorSpace];Rt=function(xr,qr){return Xt.reverse(Xt.interpolate(Xt.forward(xr),Xt.forward(qr),me))}}return typeof je.evaluate=="function"?{evaluate:function(){for(var qr=[],Pr=arguments.length;Pr--;)qr[Pr]=arguments[Pr];var ai=je.evaluate.apply(void 0,qr),qi=xt.evaluate.apply(void 0,qr);if(!(ai===void 0||qi===void 0))return Rt(ai,qi,me)}}:Rt(je,xt,me)}function Rl(y,g,z){return g.type==="color"?z=ha.parse(z):g.type==="formatted"?z=_n.fromString(z.toString()):g.type==="resolvedImage"?z=Vn.fromString(z.toString()):ns(z)!==g.type&&(g.type!=="enum"||!g.values[z])&&(z=void 0),ll(z,y.default,g.default)}function Al(y,g,z,V){var $=V-z,oe=y-z;return $===0?0:g===1?oe/$:(Math.pow(g,oe)-1)/(Math.pow(g,$)-1)}var Ll=function(g,z){this.expression=g,this._warningHistory={},this._evaluator=new Na,this._defaultValue=z?ee(z):null,this._enumValues=z&&z.type==="enum"?z.values:null};Ll.prototype.evaluateWithoutErrorHandling=function(g,z,V,$,oe,me){return this._evaluator.globals=g,this._evaluator.feature=z,this._evaluator.featureState=V,this._evaluator.canonical=$,this._evaluator.availableImages=oe||null,this._evaluator.formattedSection=me,this.expression.evaluate(this._evaluator)},Ll.prototype.evaluate=function(g,z,V,$,oe,me){this._evaluator.globals=g,this._evaluator.feature=z||null,this._evaluator.featureState=V||null,this._evaluator.canonical=$,this._evaluator.availableImages=oe||null,this._evaluator.formattedSection=me||null;try{var je=this.expression.evaluate(this._evaluator);if(je==null||typeof je=="number"&&je!==je)return this._defaultValue;if(this._enumValues&&!(je in this._enumValues))throw new Ka("Expected value to be one of "+Object.keys(this._enumValues).map(function(xt){return JSON.stringify(xt)}).join(", ")+", but found "+JSON.stringify(je)+" instead.");return je}catch(xt){return this._warningHistory[xt.message]||(this._warningHistory[xt.message]=!0,typeof console!="undefined"&&console.warn(xt.message)),this._defaultValue}};function ms(y){return Array.isArray(y)&&y.length>0&&typeof y[0]=="string"&&y[0]in is}function Os(y,g){var z=new ho(is,[],g?Q(g):void 0),V=z.parse(y,void 0,void 0,void 0,g&&g.type==="string"?{typeAnnotation:"coerce"}:void 0);return V?bl(new Ll(V,g)):eu(z.errors)}var Xl=function(g,z){this.kind=g,this._styleExpression=z,this.isStateDependent=g!=="constant"&&!as(z.expression)};Xl.prototype.evaluateWithoutErrorHandling=function(g,z,V,$,oe,me){return this._styleExpression.evaluateWithoutErrorHandling(g,z,V,$,oe,me)},Xl.prototype.evaluate=function(g,z,V,$,oe,me){return this._styleExpression.evaluate(g,z,V,$,oe,me)};var Gl=function(g,z,V,$){this.kind=g,this.zoomStops=V,this._styleExpression=z,this.isStateDependent=g!=="camera"&&!as(z.expression),this.interpolationType=$};Gl.prototype.evaluateWithoutErrorHandling=function(g,z,V,$,oe,me){return this._styleExpression.evaluateWithoutErrorHandling(g,z,V,$,oe,me)},Gl.prototype.evaluate=function(g,z,V,$,oe,me){return this._styleExpression.evaluate(g,z,V,$,oe,me)},Gl.prototype.interpolationFactor=function(g,z,V){return this.interpolationType?Hs.interpolationFactor(this.interpolationType,g,z,V):0};function Ul(y,g){if(y=Os(y,g),y.result==="error")return y;var z=y.value.expression,V=fl(z);if(!V&&!Zl(g))return eu([new Ba("","data expressions not supported")]);var $=Ma(z,["zoom"]);if(!$&&!Vl(g))return eu([new Ba("","zoom expressions not supported")]);var oe=q(z);if(!oe&&!$)return eu([new Ba("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(oe instanceof Ba)return eu([oe]);if(oe instanceof Hs&&!ja(g))return eu([new Ba("",'"interpolate" expressions cannot be used with this property')]);if(!oe)return bl(V?new Xl("constant",y.value):new Xl("source",y.value));var me=oe instanceof Hs?oe.interpolation:void 0;return bl(V?new Gl("camera",y.value,oe.labels,me):new Gl("composite",y.value,oe.labels,me))}var le=function(g,z){this._parameters=g,this._specification=z,Ha(this,sl(this._parameters,this._specification))};le.deserialize=function(g){return new le(g._parameters,g._specification)},le.serialize=function(g){return{_parameters:g._parameters,_specification:g._specification}};function w(y,g){if(Js(y))return new le(y,g);if(ms(y)){var z=Ul(y,g);if(z.result==="error")throw new Error(z.value.map(function($){return $.key+": "+$.message}).join(", "));return z.value}else{var V=y;return typeof y=="string"&&g.type==="color"&&(V=ha.parse(y)),{kind:"constant",evaluate:function(){return V}}}}function q(y){var g=null;if(y instanceof Fs)g=q(y.result);else if(y instanceof tl)for(var z=0,V=y.args;zV.maximum?[new gn(g,z,z+" is greater than the maximum value "+V.maximum)]:[]}function mt(y){var g=y.valueSpec,z=Sn(y.value.type),V,$={},oe,me,je=z!=="categorical"&&y.value.property===void 0,xt=!je,Rt=ns(y.value.stops)==="array"&&ns(y.value.stops[0])==="array"&&ns(y.value.stops[0][0])==="object",Xt=ue({key:y.key,value:y.value,valueSpec:y.styleSpec.function,style:y.style,styleSpec:y.styleSpec,objectElementValidators:{stops:xr,default:ai}});return z==="identity"&&je&&Xt.push(new gn(y.key,y.value,'missing required property "property"')),z!=="identity"&&!y.value.stops&&Xt.push(new gn(y.key,y.value,'missing required property "stops"')),z==="exponential"&&y.valueSpec.expression&&!ja(y.valueSpec)&&Xt.push(new gn(y.key,y.value,"exponential functions not supported")),y.styleSpec.$version>=8&&(xt&&!Zl(y.valueSpec)?Xt.push(new gn(y.key,y.value,"property functions not supported")):je&&!Vl(y.valueSpec)&&Xt.push(new gn(y.key,y.value,"zoom functions not supported"))),(z==="categorical"||Rt)&&y.value.property===void 0&&Xt.push(new gn(y.key,y.value,'"property" property is required')),Xt;function xr(qi){if(z==="identity")return[new gn(qi.key,qi.value,'identity function may not have a "stops" property')];var Wn=[],bn=qi.value;return Wn=Wn.concat(Ge({key:qi.key,value:bn,valueSpec:qi.valueSpec,style:qi.style,styleSpec:qi.styleSpec,arrayElementValidator:qr})),ns(bn)==="array"&&bn.length===0&&Wn.push(new gn(qi.key,bn,"array must have at least one stop")),Wn}function qr(qi){var Wn=[],bn=qi.value,bo=qi.key;if(ns(bn)!=="array")return[new gn(bo,bn,"array expected, "+ns(bn)+" found")];if(bn.length!==2)return[new gn(bo,bn,"array length 2 expected, length "+bn.length+" found")];if(Rt){if(ns(bn[0])!=="object")return[new gn(bo,bn,"object expected, "+ns(bn[0])+" found")];if(bn[0].zoom===void 0)return[new gn(bo,bn,"object stop key must have zoom")];if(bn[0].value===void 0)return[new gn(bo,bn,"object stop key must have value")];if(me&&me>Sn(bn[0].zoom))return[new gn(bo,bn[0].zoom,"stop zoom values must appear in ascending order")];Sn(bn[0].zoom)!==me&&(me=Sn(bn[0].zoom),oe=void 0,$={}),Wn=Wn.concat(ue({key:bo+"[0]",value:bn[0],valueSpec:{zoom:{}},style:qi.style,styleSpec:qi.styleSpec,objectElementValidators:{zoom:et,value:Pr}}))}else Wn=Wn.concat(Pr({key:bo+"[0]",value:bn[0],valueSpec:{},style:qi.style,styleSpec:qi.styleSpec},bn));return ms(ao(bn[1]))?Wn.concat([new gn(bo+"[1]",bn[1],"expressions are not allowed in function stops.")]):Wn.concat(Sl({key:bo+"[1]",value:bn[1],valueSpec:g,style:qi.style,styleSpec:qi.styleSpec}))}function Pr(qi,Wn){var bn=ns(qi.value),bo=Sn(qi.value),ba=qi.value!==null?qi.value:Wn;if(!V)V=bn;else if(bn!==V)return[new gn(qi.key,ba,bn+" stop domain type must match previous stop domain type "+V)];if(bn!=="number"&&bn!=="string"&&bn!=="boolean")return[new gn(qi.key,ba,"stop domain value must be a number, string, or boolean")];if(bn!=="number"&&z!=="categorical"){var _o="number expected, "+bn+" found";return Zl(g)&&z===void 0&&(_o+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new gn(qi.key,ba,_o)]}return z==="categorical"&&bn==="number"&&(!isFinite(bo)||Math.floor(bo)!==bo)?[new gn(qi.key,ba,"integer expected, found "+bo)]:z!=="categorical"&&bn==="number"&&oe!==void 0&&bo=2&&y[1]!=="$id"&&y[1]!=="$type";case"in":return y.length>=3&&(typeof y[1]!="string"||Array.isArray(y[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return y.length!==3||Array.isArray(y[1])||Array.isArray(y[2]);case"any":case"all":for(var g=0,z=y.slice(1);gg?1:0}function He(y){if(!Array.isArray(y))return!1;if(y[0]==="within")return!0;for(var g=1;g"||g==="<="||g===">="?tt(y[1],y[2],g):g==="any"?pt(y.slice(1)):g==="all"?["all"].concat(y.slice(1).map(lt)):g==="none"?["all"].concat(y.slice(1).map(lt).map(fr)):g==="in"?Ht(y[1],y.slice(2)):g==="!in"?fr(Ht(y[1],y.slice(2))):g==="has"?nr(y[1]):g==="!has"?fr(nr(y[1])):g==="within"?y:!0;return z}function tt(y,g,z){switch(y){case"$type":return["filter-type-"+z,g];case"$id":return["filter-id-"+z,g];default:return["filter-"+z,y,g]}}function pt(y){return["any"].concat(y.map(lt))}function Ht(y,g){if(g.length===0)return!1;switch(y){case"$type":return["filter-type-in",["literal",g]];case"$id":return["filter-id-in",["literal",g]];default:return g.length>200&&!g.some(function(z){return typeof z!=typeof g[0]})?["filter-in-large",y,["literal",g.sort(qe)]]:["filter-in-small",y,["literal",g]]}}function nr(y){switch(y){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",y]}}function fr(y){return["!",y]}function Ar(y){return Vr(ao(y.value))?Ft(Ha({},y,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Rr(y)}function Rr(y){var g=y.value,z=y.key;if(ns(g)!=="array")return[new gn(z,g,"array expected, "+ns(g)+" found")];var V=y.styleSpec,$,oe=[];if(g.length<1)return[new gn(z,g,"filter array must have at least 1 element")];switch(oe=oe.concat(kr({key:z+"[0]",value:g[0],valueSpec:V.filter_operator,style:y.style,styleSpec:y.styleSpec})),Sn(g[0])){case"<":case"<=":case">":case">=":g.length>=2&&Sn(g[1])==="$type"&&oe.push(new gn(z,g,'"$type" cannot be use with operator "'+g[0]+'"'));case"==":case"!=":g.length!==3&&oe.push(new gn(z,g,'filter array for operator "'+g[0]+'" must have 3 elements'));case"in":case"!in":g.length>=2&&($=ns(g[1]),$!=="string"&&oe.push(new gn(z+"[1]",g[1],"string expected, "+$+" found")));for(var me=2;me=Xt[Pr+0]&&V>=Xt[Pr+1])?(me[qr]=!0,oe.push(Rt[qr])):me[qr]=!1}}},lf.prototype._forEachCell=function(y,g,z,V,$,oe,me,je){for(var xt=this._convertToCellCoord(y),Rt=this._convertToCellCoord(g),Xt=this._convertToCellCoord(z),xr=this._convertToCellCoord(V),qr=xt;qr<=Xt;qr++)for(var Pr=Rt;Pr<=xr;Pr++){var ai=this.d*Pr+qr;if(!(je&&!je(this._convertFromCellCoord(qr),this._convertFromCellCoord(Pr),this._convertFromCellCoord(qr+1),this._convertFromCellCoord(Pr+1)))&&$.call(this,y,g,z,V,ai,oe,me,je))return}},lf.prototype._convertFromCellCoord=function(y){return(y-this.padding)/this.scale},lf.prototype._convertToCellCoord=function(y){return Math.max(0,Math.min(this.d-1,Math.floor(y*this.scale)+this.padding))},lf.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var y=this.cells,g=Xu+this.cells.length+1+1,z=0,V=0;V=0)){var xr=y[Xt];Rt[Xt]=tf[xt].shallow.indexOf(Xt)>=0?xr:Qe(xr,g)}y instanceof Error&&(Rt.message=y.message)}if(Rt.$name)throw new Error("$name property is reserved for worker serialization logic.");return xt!=="Object"&&(Rt.$name=xt),Rt}throw new Error("can't serialize object of type "+typeof y)}function ot(y){if(y==null||typeof y=="boolean"||typeof y=="number"||typeof y=="string"||y instanceof Boolean||y instanceof Number||y instanceof String||y instanceof Date||y instanceof RegExp||ze(y)||Xe(y)||ArrayBuffer.isView(y)||y instanceof xf)return y;if(Array.isArray(y))return y.map(ot);if(typeof y=="object"){var g=y.$name||"Object",z=tf[g],V=z.klass;if(!V)throw new Error("can't deserialize unregistered class "+g);if(V.deserialize)return V.deserialize(y);for(var $=Object.create(V.prototype),oe=0,me=Object.keys(y);oe=0?xt:ot(xt)}}return $}throw new Error("can't deserialize object of type "+typeof y)}var jt=function(){this.first=!0};jt.prototype.update=function(g,z){var V=Math.floor(g);return this.first?(this.first=!1,this.lastIntegerZoom=V,this.lastIntegerZoomTime=0,this.lastZoom=g,this.lastFloorZoom=V,!0):(this.lastFloorZoom>V?(this.lastIntegerZoom=V+1,this.lastIntegerZoomTime=z):this.lastFloorZoom=128&&y<=255},Arabic:function(y){return y>=1536&&y<=1791},"Arabic Supplement":function(y){return y>=1872&&y<=1919},"Arabic Extended-A":function(y){return y>=2208&&y<=2303},"Hangul Jamo":function(y){return y>=4352&&y<=4607},"Unified Canadian Aboriginal Syllabics":function(y){return y>=5120&&y<=5759},Khmer:function(y){return y>=6016&&y<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(y){return y>=6320&&y<=6399},"General Punctuation":function(y){return y>=8192&&y<=8303},"Letterlike Symbols":function(y){return y>=8448&&y<=8527},"Number Forms":function(y){return y>=8528&&y<=8591},"Miscellaneous Technical":function(y){return y>=8960&&y<=9215},"Control Pictures":function(y){return y>=9216&&y<=9279},"Optical Character Recognition":function(y){return y>=9280&&y<=9311},"Enclosed Alphanumerics":function(y){return y>=9312&&y<=9471},"Geometric Shapes":function(y){return y>=9632&&y<=9727},"Miscellaneous Symbols":function(y){return y>=9728&&y<=9983},"Miscellaneous Symbols and Arrows":function(y){return y>=11008&&y<=11263},"CJK Radicals Supplement":function(y){return y>=11904&&y<=12031},"Kangxi Radicals":function(y){return y>=12032&&y<=12255},"Ideographic Description Characters":function(y){return y>=12272&&y<=12287},"CJK Symbols and Punctuation":function(y){return y>=12288&&y<=12351},Hiragana:function(y){return y>=12352&&y<=12447},Katakana:function(y){return y>=12448&&y<=12543},Bopomofo:function(y){return y>=12544&&y<=12591},"Hangul Compatibility Jamo":function(y){return y>=12592&&y<=12687},Kanbun:function(y){return y>=12688&&y<=12703},"Bopomofo Extended":function(y){return y>=12704&&y<=12735},"CJK Strokes":function(y){return y>=12736&&y<=12783},"Katakana Phonetic Extensions":function(y){return y>=12784&&y<=12799},"Enclosed CJK Letters and Months":function(y){return y>=12800&&y<=13055},"CJK Compatibility":function(y){return y>=13056&&y<=13311},"CJK Unified Ideographs Extension A":function(y){return y>=13312&&y<=19903},"Yijing Hexagram Symbols":function(y){return y>=19904&&y<=19967},"CJK Unified Ideographs":function(y){return y>=19968&&y<=40959},"Yi Syllables":function(y){return y>=40960&&y<=42127},"Yi Radicals":function(y){return y>=42128&&y<=42191},"Hangul Jamo Extended-A":function(y){return y>=43360&&y<=43391},"Hangul Syllables":function(y){return y>=44032&&y<=55215},"Hangul Jamo Extended-B":function(y){return y>=55216&&y<=55295},"Private Use Area":function(y){return y>=57344&&y<=63743},"CJK Compatibility Ideographs":function(y){return y>=63744&&y<=64255},"Arabic Presentation Forms-A":function(y){return y>=64336&&y<=65023},"Vertical Forms":function(y){return y>=65040&&y<=65055},"CJK Compatibility Forms":function(y){return y>=65072&&y<=65103},"Small Form Variants":function(y){return y>=65104&&y<=65135},"Arabic Presentation Forms-B":function(y){return y>=65136&&y<=65279},"Halfwidth and Fullwidth Forms":function(y){return y>=65280&&y<=65519}};function cr(y){for(var g=0,z=y;g=65097&&y<=65103)||_t["CJK Compatibility Ideographs"](y)||_t["CJK Compatibility"](y)||_t["CJK Radicals Supplement"](y)||_t["CJK Strokes"](y)||_t["CJK Symbols and Punctuation"](y)&&!(y>=12296&&y<=12305)&&!(y>=12308&&y<=12319)&&y!==12336||_t["CJK Unified Ideographs Extension A"](y)||_t["CJK Unified Ideographs"](y)||_t["Enclosed CJK Letters and Months"](y)||_t["Hangul Compatibility Jamo"](y)||_t["Hangul Jamo Extended-A"](y)||_t["Hangul Jamo Extended-B"](y)||_t["Hangul Jamo"](y)||_t["Hangul Syllables"](y)||_t.Hiragana(y)||_t["Ideographic Description Characters"](y)||_t.Kanbun(y)||_t["Kangxi Radicals"](y)||_t["Katakana Phonetic Extensions"](y)||_t.Katakana(y)&&y!==12540||_t["Halfwidth and Fullwidth Forms"](y)&&y!==65288&&y!==65289&&y!==65293&&!(y>=65306&&y<=65310)&&y!==65339&&y!==65341&&y!==65343&&!(y>=65371&&y<=65503)&&y!==65507&&!(y>=65512&&y<=65519)||_t["Small Form Variants"](y)&&!(y>=65112&&y<=65118)&&!(y>=65123&&y<=65126)||_t["Unified Canadian Aboriginal Syllabics"](y)||_t["Unified Canadian Aboriginal Syllabics Extended"](y)||_t["Vertical Forms"](y)||_t["Yijing Hexagram Symbols"](y)||_t["Yi Syllables"](y)||_t["Yi Radicals"](y))}function Oi(y){return!!(_t["Latin-1 Supplement"](y)&&(y===167||y===169||y===174||y===177||y===188||y===189||y===190||y===215||y===247)||_t["General Punctuation"](y)&&(y===8214||y===8224||y===8225||y===8240||y===8241||y===8251||y===8252||y===8258||y===8263||y===8264||y===8265||y===8273)||_t["Letterlike Symbols"](y)||_t["Number Forms"](y)||_t["Miscellaneous Technical"](y)&&(y>=8960&&y<=8967||y>=8972&&y<=8991||y>=8996&&y<=9e3||y===9003||y>=9085&&y<=9114||y>=9150&&y<=9165||y===9167||y>=9169&&y<=9179||y>=9186&&y<=9215)||_t["Control Pictures"](y)&&y!==9251||_t["Optical Character Recognition"](y)||_t["Enclosed Alphanumerics"](y)||_t["Geometric Shapes"](y)||_t["Miscellaneous Symbols"](y)&&!(y>=9754&&y<=9759)||_t["Miscellaneous Symbols and Arrows"](y)&&(y>=11026&&y<=11055||y>=11088&&y<=11097||y>=11192&&y<=11243)||_t["CJK Symbols and Punctuation"](y)||_t.Katakana(y)||_t["Private Use Area"](y)||_t["CJK Compatibility Forms"](y)||_t["Small Form Variants"](y)||_t["Halfwidth and Fullwidth Forms"](y)||y===8734||y===8756||y===8757||y>=9984&&y<=10087||y>=10102&&y<=10131||y===65532||y===65533)}function fn(y){return!($r(y)||Oi(y))}function vi(y){return _t.Arabic(y)||_t["Arabic Supplement"](y)||_t["Arabic Extended-A"](y)||_t["Arabic Presentation Forms-A"](y)||_t["Arabic Presentation Forms-B"](y)}function zi(y){return y>=1424&&y<=2303||_t["Arabic Presentation Forms-A"](y)||_t["Arabic Presentation Forms-B"](y)}function Xi(y,g){return!(!g&&zi(y)||y>=2304&&y<=3583||y>=3840&&y<=4255||_t.Khmer(y))}function pn(y){for(var g=0,z=y;g-1&&(no=bi.error),xo&&xo(y)};function El(){Pl.fire(new rn("pluginStateChange",{pluginStatus:no,pluginURL:Xo}))}var Pl=new Ri,pu=function(){return no},Il=function(y){return y({pluginStatus:no,pluginURL:Xo}),Pl.on("pluginStateChange",y),y},fu=function(y,g,z){if(z===void 0&&(z=!1),no===bi.deferred||no===bi.loading||no===bi.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");Xo=nt.resolveURL(y),no=bi.deferred,xo=g,El(),z||Zu()},Zu=function(){if(no!==bi.deferred||!Xo)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");no=bi.loading,El(),Xo&&Ur({url:Xo},function(y){y?js(y):(no=bi.loaded,El())})},Gu={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return no===bi.loaded||Gu.applyArabicShaping!=null},isLoading:function(){return no===bi.loading},setState:function(g){no=g.pluginStatus,Xo=g.pluginURL},isParsed:function(){return Gu.applyArabicShaping!=null&&Gu.processBidirectionalText!=null&&Gu.processStyledBidirectionalText!=null},getPluginURL:function(){return Xo}},rf=function(){!Gu.isLoading()&&!Gu.isLoaded()&&pu()==="deferred"&&Zu()},ds=function(g,z){this.zoom=g,z?(this.now=z.now,this.fadeDuration=z.fadeDuration,this.zoomHistory=z.zoomHistory,this.transition=z.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new jt,this.transition={})};ds.prototype.isSupportedScript=function(g){return sn(g,Gu.isLoaded())},ds.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},ds.prototype.getCrossfadeParameters=function(){var g=this.zoom,z=g-Math.floor(g),V=this.crossFadingFactor();return g>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:z+(1-z)*V}:{fromScale:.5,toScale:1,t:1-(1-V)*z}};var Wl=function(g,z){this.property=g,this.value=z,this.expression=w(z===void 0?g.specification.default:z,g.specification)};Wl.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Wl.prototype.possiblyEvaluate=function(g,z,V){return this.property.possiblyEvaluate(this,g,z,V)};var Au=function(g){this.property=g,this.value=new Wl(g,void 0)};Au.prototype.transitioned=function(g,z){return new uf(this.property,this.value,z,_({},g.transition,this.transition),g.now)},Au.prototype.untransitioned=function(){return new uf(this.property,this.value,null,{},0)};var Tu=function(g){this._properties=g,this._values=Object.create(g.defaultTransitionablePropertyValues)};Tu.prototype.getValue=function(g){return H(this._values[g].value.value)},Tu.prototype.setValue=function(g,z){this._values.hasOwnProperty(g)||(this._values[g]=new Au(this._values[g].property)),this._values[g].value=new Wl(this._values[g].property,z===null?void 0:H(z))},Tu.prototype.getTransition=function(g){return H(this._values[g].transition)},Tu.prototype.setTransition=function(g,z){this._values.hasOwnProperty(g)||(this._values[g]=new Au(this._values[g].property)),this._values[g].transition=H(z)||void 0},Tu.prototype.serialize=function(){for(var g={},z=0,V=Object.keys(this._values);zthis.end)return this.prior=null,oe;if(this.value.isDataDriven())return this.prior=null,oe;if($me.zoomHistory.lastIntegerZoom?{from:V,to:$}:{from:oe,to:$}},g.prototype.interpolate=function(V){return V},g}(qt),Qr=function(g){this.specification=g};Qr.prototype.possiblyEvaluate=function(g,z,V,$){if(g.value!==void 0)if(g.expression.kind==="constant"){var oe=g.expression.evaluate(z,null,{},V,$);return this._calculate(oe,oe,oe,z)}else return this._calculate(g.expression.evaluate(new ds(Math.floor(z.zoom-1),z)),g.expression.evaluate(new ds(Math.floor(z.zoom),z)),g.expression.evaluate(new ds(Math.floor(z.zoom+1),z)),z)},Qr.prototype._calculate=function(g,z,V,$){var oe=$.zoom;return oe>$.zoomHistory.lastIntegerZoom?{from:g,to:z}:{from:V,to:z}},Qr.prototype.interpolate=function(g){return g};var mi=function(g){this.specification=g};mi.prototype.possiblyEvaluate=function(g,z,V,$){return!!g.expression.evaluate(z,null,{},V,$)},mi.prototype.interpolate=function(){return!1};var fi=function(g){this.properties=g,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var z in g){var V=g[z];V.specification.overridable&&this.overridableProperties.push(z);var $=this.defaultPropertyValues[z]=new Wl(V,void 0),oe=this.defaultTransitionablePropertyValues[z]=new Au(V);this.defaultTransitioningPropertyValues[z]=oe.untransitioned(),this.defaultPossiblyEvaluatedValues[z]=$.possiblyEvaluate({})}};Z("DataDrivenProperty",qt),Z("DataConstantProperty",Be),Z("CrossFadedDataDrivenProperty",ar),Z("CrossFadedProperty",Qr),Z("ColorRampProperty",mi);var pi="-transition",on=function(y){function g(z,V){if(y.call(this),this.id=z.id,this.type=z.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},z.type!=="custom"&&(z=z,this.metadata=z.metadata,this.minzoom=z.minzoom,this.maxzoom=z.maxzoom,z.type!=="background"&&(this.source=z.source,this.sourceLayer=z["source-layer"],this.filter=z.filter),V.layout&&(this._unevaluatedLayout=new Ef(V.layout)),V.paint)){this._transitionablePaint=new Tu(V.paint);for(var $ in z.paint)this.setPaintProperty($,z.paint[$],{validate:!1});for(var oe in z.layout)this.setLayoutProperty(oe,z.layout[oe],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new fc(V.paint)}}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},g.prototype.getLayoutProperty=function(V){return V==="visibility"?this.visibility:this._unevaluatedLayout.getValue(V)},g.prototype.setLayoutProperty=function(V,$,oe){if(oe===void 0&&(oe={}),$!=null){var me="layers."+this.id+".layout."+V;if(this._validate(Qu,me,V,$,oe))return}if(V==="visibility"){this.visibility=$;return}this._unevaluatedLayout.setValue(V,$)},g.prototype.getPaintProperty=function(V){return U(V,pi)?this._transitionablePaint.getTransition(V.slice(0,-pi.length)):this._transitionablePaint.getValue(V)},g.prototype.setPaintProperty=function(V,$,oe){if(oe===void 0&&(oe={}),$!=null){var me="layers."+this.id+".paint."+V;if(this._validate(Wu,me,V,$,oe))return!1}if(U(V,pi))return this._transitionablePaint.setTransition(V.slice(0,-pi.length),$||void 0),!1;var je=this._transitionablePaint._values[V],xt=je.property.specification["property-type"]==="cross-faded-data-driven",Rt=je.value.isDataDriven(),Xt=je.value;this._transitionablePaint.setValue(V,$),this._handleSpecialPaintPropertyUpdate(V);var xr=this._transitionablePaint._values[V].value,qr=xr.isDataDriven();return qr||Rt||xt||this._handleOverridablePaintPropertyUpdate(V,Xt,xr)},g.prototype._handleSpecialPaintPropertyUpdate=function(V){},g.prototype._handleOverridablePaintPropertyUpdate=function(V,$,oe){return!1},g.prototype.isHidden=function(V){return this.minzoom&&V=this.maxzoom?!0:this.visibility==="none"},g.prototype.updateTransitions=function(V){this._transitioningPaint=this._transitionablePaint.transitioned(V,this._transitioningPaint)},g.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},g.prototype.recalculate=function(V,$){V.getCrossfadeParameters&&(this._crossfadeParameters=V.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(V,void 0,$)),this.paint=this._transitioningPaint.possiblyEvaluate(V,void 0,$)},g.prototype.serialize=function(){var V={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(V.layout=V.layout||{},V.layout.visibility=this.visibility),j(V,function($,oe){return $!==void 0&&!(oe==="layout"&&!Object.keys($).length)&&!(oe==="paint"&&!Object.keys($).length)})},g.prototype._validate=function(V,$,oe,me,je){return je===void 0&&(je={}),je&&je.validate===!1?!1:Ju(this,V.call(iu,{key:$,layerType:this.type,objectKey:oe,value:me,styleSpec:ji,style:{glyphs:!0,sprite:!0}}))},g.prototype.is3D=function(){return!1},g.prototype.isTileClipped=function(){return!1},g.prototype.hasOffscreenPass=function(){return!1},g.prototype.resize=function(){},g.prototype.isStateDependent=function(){for(var V in this.paint._values){var $=this.paint.get(V);if(!(!($ instanceof vf)||!Zl($.property.specification))&&($.value.kind==="source"||$.value.kind==="composite")&&$.value.isStateDependent)return!0}return!1},g}(Ri),Bn={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Ln=function(g,z){this._structArray=g,this._pos1=z*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},wn=128,Ls=5,ua=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};ua.serialize=function(g,z){return g._trim(),z&&(g.isTransferred=!0,z.push(g.arrayBuffer)),{length:g.length,arrayBuffer:g.arrayBuffer}},ua.deserialize=function(g){var z=Object.create(this.prototype);return z.arrayBuffer=g.arrayBuffer,z.length=g.length,z.capacity=g.arrayBuffer.byteLength/z.bytesPerElement,z._refreshViews(),z},ua.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},ua.prototype.clear=function(){this.length=0},ua.prototype.resize=function(g){this.reserve(g),this.length=g},ua.prototype.reserve=function(g){if(g>this.capacity){this.capacity=Math.max(g,Math.floor(this.capacity*Ls),wn),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var z=this.uint8;this._refreshViews(),z&&this.uint8.set(z)}},ua.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function Hn(y,g){g===void 0&&(g=1);var z=0,V=0,$=y.map(function(me){var je=Ni(me.type),xt=z=Wr(z,Math.max(g,je)),Rt=me.components||1;return V=Math.max(V,je),z+=je*Rt,{name:me.name,type:me.type,components:Rt,offset:xt}}),oe=Wr(z,Math.max(V,g));return{members:$,size:oe,alignment:g}}function Ni(y){return Bn[y].BYTES_PER_ELEMENT}function Wr(y,g){return Math.ceil(y/g)*g}var _i=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$){var oe=this.length;return this.resize(oe+1),this.emplace(oe,V,$)},g.prototype.emplace=function(V,$,oe){var me=V*2;return this.int16[me+0]=$,this.int16[me+1]=oe,V},g}(ua);_i.prototype.bytesPerElement=4,Z("StructArrayLayout2i4",_i);var dn=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me){var je=this.length;return this.resize(je+1),this.emplace(je,V,$,oe,me)},g.prototype.emplace=function(V,$,oe,me,je){var xt=V*4;return this.int16[xt+0]=$,this.int16[xt+1]=oe,this.int16[xt+2]=me,this.int16[xt+3]=je,V},g}(ua);dn.prototype.bytesPerElement=8,Z("StructArrayLayout4i8",dn);var En=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je,xt){var Rt=this.length;return this.resize(Rt+1),this.emplace(Rt,V,$,oe,me,je,xt)},g.prototype.emplace=function(V,$,oe,me,je,xt,Rt){var Xt=V*6;return this.int16[Xt+0]=$,this.int16[Xt+1]=oe,this.int16[Xt+2]=me,this.int16[Xt+3]=je,this.int16[Xt+4]=xt,this.int16[Xt+5]=Rt,V},g}(ua);En.prototype.bytesPerElement=12,Z("StructArrayLayout2i4i12",En);var Yi=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je,xt){var Rt=this.length;return this.resize(Rt+1),this.emplace(Rt,V,$,oe,me,je,xt)},g.prototype.emplace=function(V,$,oe,me,je,xt,Rt){var Xt=V*4,xr=V*8;return this.int16[Xt+0]=$,this.int16[Xt+1]=oe,this.uint8[xr+4]=me,this.uint8[xr+5]=je,this.uint8[xr+6]=xt,this.uint8[xr+7]=Rt,V},g}(ua);Yi.prototype.bytesPerElement=8,Z("StructArrayLayout2i4ub8",Yi);var ga=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$){var oe=this.length;return this.resize(oe+1),this.emplace(oe,V,$)},g.prototype.emplace=function(V,$,oe){var me=V*2;return this.float32[me+0]=$,this.float32[me+1]=oe,V},g}(ua);ga.prototype.bytesPerElement=8,Z("StructArrayLayout2f8",ga);var Kn=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je,xt,Rt,Xt,xr,qr){var Pr=this.length;return this.resize(Pr+1),this.emplace(Pr,V,$,oe,me,je,xt,Rt,Xt,xr,qr)},g.prototype.emplace=function(V,$,oe,me,je,xt,Rt,Xt,xr,qr,Pr){var ai=V*10;return this.uint16[ai+0]=$,this.uint16[ai+1]=oe,this.uint16[ai+2]=me,this.uint16[ai+3]=je,this.uint16[ai+4]=xt,this.uint16[ai+5]=Rt,this.uint16[ai+6]=Xt,this.uint16[ai+7]=xr,this.uint16[ai+8]=qr,this.uint16[ai+9]=Pr,V},g}(ua);Kn.prototype.bytesPerElement=20,Z("StructArrayLayout10ui20",Kn);var hs=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je,xt,Rt,Xt,xr,qr,Pr,ai){var qi=this.length;return this.resize(qi+1),this.emplace(qi,V,$,oe,me,je,xt,Rt,Xt,xr,qr,Pr,ai)},g.prototype.emplace=function(V,$,oe,me,je,xt,Rt,Xt,xr,qr,Pr,ai,qi){var Wn=V*12;return this.int16[Wn+0]=$,this.int16[Wn+1]=oe,this.int16[Wn+2]=me,this.int16[Wn+3]=je,this.uint16[Wn+4]=xt,this.uint16[Wn+5]=Rt,this.uint16[Wn+6]=Xt,this.uint16[Wn+7]=xr,this.int16[Wn+8]=qr,this.int16[Wn+9]=Pr,this.int16[Wn+10]=ai,this.int16[Wn+11]=qi,V},g}(ua);hs.prototype.bytesPerElement=24,Z("StructArrayLayout4i4ui4i24",hs);var $i=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe){var me=this.length;return this.resize(me+1),this.emplace(me,V,$,oe)},g.prototype.emplace=function(V,$,oe,me){var je=V*3;return this.float32[je+0]=$,this.float32[je+1]=oe,this.float32[je+2]=me,V},g}(ua);$i.prototype.bytesPerElement=12,Z("StructArrayLayout3f12",$i);var Ui=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},g.prototype.emplace=function(V,$){var oe=V*1;return this.uint32[oe+0]=$,V},g}(ua);Ui.prototype.bytesPerElement=4,Z("StructArrayLayout1ul4",Ui);var ro=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je,xt,Rt,Xt,xr){var qr=this.length;return this.resize(qr+1),this.emplace(qr,V,$,oe,me,je,xt,Rt,Xt,xr)},g.prototype.emplace=function(V,$,oe,me,je,xt,Rt,Xt,xr,qr){var Pr=V*10,ai=V*5;return this.int16[Pr+0]=$,this.int16[Pr+1]=oe,this.int16[Pr+2]=me,this.int16[Pr+3]=je,this.int16[Pr+4]=xt,this.int16[Pr+5]=Rt,this.uint32[ai+3]=Xt,this.uint16[Pr+8]=xr,this.uint16[Pr+9]=qr,V},g}(ua);ro.prototype.bytesPerElement=20,Z("StructArrayLayout6i1ul2ui20",ro);var na=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je,xt){var Rt=this.length;return this.resize(Rt+1),this.emplace(Rt,V,$,oe,me,je,xt)},g.prototype.emplace=function(V,$,oe,me,je,xt,Rt){var Xt=V*6;return this.int16[Xt+0]=$,this.int16[Xt+1]=oe,this.int16[Xt+2]=me,this.int16[Xt+3]=je,this.int16[Xt+4]=xt,this.int16[Xt+5]=Rt,V},g}(ua);na.prototype.bytesPerElement=12,Z("StructArrayLayout2i2i2i12",na);var On=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je){var xt=this.length;return this.resize(xt+1),this.emplace(xt,V,$,oe,me,je)},g.prototype.emplace=function(V,$,oe,me,je,xt){var Rt=V*4,Xt=V*8;return this.float32[Rt+0]=$,this.float32[Rt+1]=oe,this.float32[Rt+2]=me,this.int16[Xt+6]=je,this.int16[Xt+7]=xt,V},g}(ua);On.prototype.bytesPerElement=16,Z("StructArrayLayout2f1f2i16",On);var In=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me){var je=this.length;return this.resize(je+1),this.emplace(je,V,$,oe,me)},g.prototype.emplace=function(V,$,oe,me,je){var xt=V*12,Rt=V*3;return this.uint8[xt+0]=$,this.uint8[xt+1]=oe,this.float32[Rt+1]=me,this.float32[Rt+2]=je,V},g}(ua);In.prototype.bytesPerElement=12,Z("StructArrayLayout2ub2f12",In);var Va=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe){var me=this.length;return this.resize(me+1),this.emplace(me,V,$,oe)},g.prototype.emplace=function(V,$,oe,me){var je=V*3;return this.uint16[je+0]=$,this.uint16[je+1]=oe,this.uint16[je+2]=me,V},g}(ua);Va.prototype.bytesPerElement=6,Z("StructArrayLayout3ui6",Va);var _s=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je,xt,Rt,Xt,xr,qr,Pr,ai,qi,Wn,bn,bo,ba){var _o=this.length;return this.resize(_o+1),this.emplace(_o,V,$,oe,me,je,xt,Rt,Xt,xr,qr,Pr,ai,qi,Wn,bn,bo,ba)},g.prototype.emplace=function(V,$,oe,me,je,xt,Rt,Xt,xr,qr,Pr,ai,qi,Wn,bn,bo,ba,_o){var Uo=V*24,Zs=V*12,Cl=V*48;return this.int16[Uo+0]=$,this.int16[Uo+1]=oe,this.uint16[Uo+2]=me,this.uint16[Uo+3]=je,this.uint32[Zs+2]=xt,this.uint32[Zs+3]=Rt,this.uint32[Zs+4]=Xt,this.uint16[Uo+10]=xr,this.uint16[Uo+11]=qr,this.uint16[Uo+12]=Pr,this.float32[Zs+7]=ai,this.float32[Zs+8]=qi,this.uint8[Cl+36]=Wn,this.uint8[Cl+37]=bn,this.uint8[Cl+38]=bo,this.uint32[Zs+10]=ba,this.int16[Uo+22]=_o,V},g}(ua);_s.prototype.bytesPerElement=48,Z("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",_s);var ul=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me,je,xt,Rt,Xt,xr,qr,Pr,ai,qi,Wn,bn,bo,ba,_o,Uo,Zs,Cl,Tl,hu,Kl,lu,Bu,du,gu){var ff=this.length;return this.resize(ff+1),this.emplace(ff,V,$,oe,me,je,xt,Rt,Xt,xr,qr,Pr,ai,qi,Wn,bn,bo,ba,_o,Uo,Zs,Cl,Tl,hu,Kl,lu,Bu,du,gu)},g.prototype.emplace=function(V,$,oe,me,je,xt,Rt,Xt,xr,qr,Pr,ai,qi,Wn,bn,bo,ba,_o,Uo,Zs,Cl,Tl,hu,Kl,lu,Bu,du,gu,ff){var Ru=V*34,If=V*17;return this.int16[Ru+0]=$,this.int16[Ru+1]=oe,this.int16[Ru+2]=me,this.int16[Ru+3]=je,this.int16[Ru+4]=xt,this.int16[Ru+5]=Rt,this.int16[Ru+6]=Xt,this.int16[Ru+7]=xr,this.uint16[Ru+8]=qr,this.uint16[Ru+9]=Pr,this.uint16[Ru+10]=ai,this.uint16[Ru+11]=qi,this.uint16[Ru+12]=Wn,this.uint16[Ru+13]=bn,this.uint16[Ru+14]=bo,this.uint16[Ru+15]=ba,this.uint16[Ru+16]=_o,this.uint16[Ru+17]=Uo,this.uint16[Ru+18]=Zs,this.uint16[Ru+19]=Cl,this.uint16[Ru+20]=Tl,this.uint16[Ru+21]=hu,this.uint16[Ru+22]=Kl,this.uint32[If+12]=lu,this.float32[If+13]=Bu,this.float32[If+14]=du,this.float32[If+15]=gu,this.float32[If+16]=ff,V},g}(ua);ul.prototype.bytesPerElement=68,Z("StructArrayLayout8i15ui1ul4f68",ul);var Qn=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},g.prototype.emplace=function(V,$){var oe=V*1;return this.float32[oe+0]=$,V},g}(ua);Qn.prototype.bytesPerElement=4,Z("StructArrayLayout1f4",Qn);var Mo=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe){var me=this.length;return this.resize(me+1),this.emplace(me,V,$,oe)},g.prototype.emplace=function(V,$,oe,me){var je=V*3;return this.int16[je+0]=$,this.int16[je+1]=oe,this.int16[je+2]=me,V},g}(ua);Mo.prototype.bytesPerElement=6,Z("StructArrayLayout3i6",Mo);var nl=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe){var me=this.length;return this.resize(me+1),this.emplace(me,V,$,oe)},g.prototype.emplace=function(V,$,oe,me){var je=V*2,xt=V*4;return this.uint32[je+0]=$,this.uint16[xt+2]=oe,this.uint16[xt+3]=me,V},g}(ua);nl.prototype.bytesPerElement=8,Z("StructArrayLayout1ul2ui8",nl);var pl=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$){var oe=this.length;return this.resize(oe+1),this.emplace(oe,V,$)},g.prototype.emplace=function(V,$,oe){var me=V*2;return this.uint16[me+0]=$,this.uint16[me+1]=oe,V},g}(ua);pl.prototype.bytesPerElement=4,Z("StructArrayLayout2ui4",pl);var Dl=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V){var $=this.length;return this.resize($+1),this.emplace($,V)},g.prototype.emplace=function(V,$){var oe=V*1;return this.uint16[oe+0]=$,V},g}(ua);Dl.prototype.bytesPerElement=2,Z("StructArrayLayout1ui2",Dl);var Fu=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},g.prototype.emplaceBack=function(V,$,oe,me){var je=this.length;return this.resize(je+1),this.emplace(je,V,$,oe,me)},g.prototype.emplace=function(V,$,oe,me,je){var xt=V*4;return this.float32[xt+0]=$,this.float32[xt+1]=oe,this.float32[xt+2]=me,this.float32[xt+3]=je,V},g}(ua);Fu.prototype.bytesPerElement=16,Z("StructArrayLayout4f16",Fu);var mf=function(y){function g(){y.apply(this,arguments)}y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g;var z={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return z.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},z.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},z.x1.get=function(){return this._structArray.int16[this._pos2+2]},z.y1.get=function(){return this._structArray.int16[this._pos2+3]},z.x2.get=function(){return this._structArray.int16[this._pos2+4]},z.y2.get=function(){return this._structArray.int16[this._pos2+5]},z.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},z.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},z.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},z.anchorPoint.get=function(){return new l(this.anchorPointX,this.anchorPointY)},Object.defineProperties(g.prototype,z),g}(Ln);mf.prototype.size=20;var Ql=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.get=function(V){return new mf(this,V)},g}(ro);Z("CollisionBoxArray",Ql);var kf=function(y){function g(){y.apply(this,arguments)}y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g;var z={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return z.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},z.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},z.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},z.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},z.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},z.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},z.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},z.segment.get=function(){return this._structArray.uint16[this._pos2+10]},z.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},z.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},z.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},z.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},z.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},z.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},z.placedOrientation.set=function(V){this._structArray.uint8[this._pos1+37]=V},z.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},z.hidden.set=function(V){this._structArray.uint8[this._pos1+38]=V},z.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},z.crossTileID.set=function(V){this._structArray.uint32[this._pos4+10]=V},z.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(g.prototype,z),g}(Ln);kf.prototype.size=48;var Cu=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.get=function(V){return new kf(this,V)},g}(_s);Z("PlacedSymbolArray",Cu);var _f=function(y){function g(){y.apply(this,arguments)}y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g;var z={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return z.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},z.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},z.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},z.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},z.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},z.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},z.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},z.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},z.key.get=function(){return this._structArray.uint16[this._pos2+8]},z.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},z.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},z.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},z.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},z.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},z.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},z.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},z.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},z.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},z.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},z.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},z.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},z.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},z.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},z.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},z.crossTileID.set=function(V){this._structArray.uint32[this._pos4+12]=V},z.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},z.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},z.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},z.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(g.prototype,z),g}(Ln);_f.prototype.size=68;var bf=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.get=function(V){return new _f(this,V)},g}(ul);Z("SymbolInstanceArray",bf);var Lf=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.getoffsetX=function(V){return this.float32[V*1+0]},g}(Qn);Z("GlyphOffsetArray",Lf);var Hu=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.getx=function(V){return this.int16[V*3+0]},g.prototype.gety=function(V){return this.int16[V*3+1]},g.prototype.gettileUnitDistanceFromAnchor=function(V){return this.int16[V*3+2]},g}(Mo);Z("SymbolLineVertexArray",Hu);var hf=function(y){function g(){y.apply(this,arguments)}y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g;var z={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return z.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},z.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},z.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(g.prototype,z),g}(Ln);hf.prototype.size=8;var yf=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.get=function(V){return new hf(this,V)},g}(nl);Z("FeatureIndexArray",yf);var Fl=Hn([{name:"a_pos",components:2,type:"Int16"}],4),wf=Fl.members,cu=function(g){g===void 0&&(g=[]),this.segments=g};cu.prototype.prepareSegment=function(g,z,V,$){var oe=this.segments[this.segments.length-1];return g>cu.MAX_VERTEX_ARRAY_LENGTH&&re("Max vertices per segment is "+cu.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+g),(!oe||oe.vertexLength+g>cu.MAX_VERTEX_ARRAY_LENGTH||oe.sortKey!==$)&&(oe={vertexOffset:z.length,primitiveOffset:V.length,vertexLength:0,primitiveLength:0},$!==void 0&&(oe.sortKey=$),this.segments.push(oe)),oe},cu.prototype.get=function(){return this.segments},cu.prototype.destroy=function(){for(var g=0,z=this.segments;g>>16)*xt&65535)<<16)&4294967295,Xt=Xt<<15|Xt>>>17,Xt=(Xt&65535)*Rt+(((Xt>>>16)*Rt&65535)<<16)&4294967295,me^=Xt,me=me<<13|me>>>19,je=(me&65535)*5+(((me>>>16)*5&65535)<<16)&4294967295,me=(je&65535)+27492+(((je>>>16)+58964&65535)<<16);switch(Xt=0,$){case 3:Xt^=(z.charCodeAt(xr+2)&255)<<16;case 2:Xt^=(z.charCodeAt(xr+1)&255)<<8;case 1:Xt^=z.charCodeAt(xr)&255,Xt=(Xt&65535)*xt+(((Xt>>>16)*xt&65535)<<16)&4294967295,Xt=Xt<<15|Xt>>>17,Xt=(Xt&65535)*Rt+(((Xt>>>16)*Rt&65535)<<16)&4294967295,me^=Xt}return me^=z.length,me^=me>>>16,me=(me&65535)*2246822507+(((me>>>16)*2246822507&65535)<<16)&4294967295,me^=me>>>13,me=(me&65535)*3266489909+(((me>>>16)*3266489909&65535)<<16)&4294967295,me^=me>>>16,me>>>0}y.exports=g}),O=a(function(y){function g(z,V){for(var $=z.length,oe=V^$,me=0,je;$>=4;)je=z.charCodeAt(me)&255|(z.charCodeAt(++me)&255)<<8|(z.charCodeAt(++me)&255)<<16|(z.charCodeAt(++me)&255)<<24,je=(je&65535)*1540483477+(((je>>>16)*1540483477&65535)<<16),je^=je>>>24,je=(je&65535)*1540483477+(((je>>>16)*1540483477&65535)<<16),oe=(oe&65535)*1540483477+(((oe>>>16)*1540483477&65535)<<16)^je,$-=4,++me;switch($){case 3:oe^=(z.charCodeAt(me+2)&255)<<16;case 2:oe^=(z.charCodeAt(me+1)&255)<<8;case 1:oe^=z.charCodeAt(me)&255,oe=(oe&65535)*1540483477+(((oe>>>16)*1540483477&65535)<<16)}return oe^=oe>>>13,oe=(oe&65535)*1540483477+(((oe>>>16)*1540483477&65535)<<16),oe^=oe>>>15,oe>>>0}y.exports=g}),K=J,_e=J,ne=O;K.murmur3=_e,K.murmur2=ne;var Pe=function(){this.ids=[],this.positions=[],this.indexed=!1};Pe.prototype.add=function(g,z,V,$){this.ids.push(Ct(g)),this.positions.push(z,V,$)},Pe.prototype.getPositions=function(g){for(var z=Ct(g),V=0,$=this.ids.length-1;V<$;){var oe=V+$>>1;this.ids[oe]>=z?$=oe:V=oe+1}for(var me=[];this.ids[V]===z;){var je=this.positions[3*V],xt=this.positions[3*V+1],Rt=this.positions[3*V+2];me.push({index:je,start:xt,end:Rt}),V++}return me},Pe.serialize=function(g,z){var V=new Float64Array(g.ids),$=new Uint32Array(g.positions);return dr(V,$,0,V.length-1),z&&z.push(V.buffer,$.buffer),{ids:V,positions:$}},Pe.deserialize=function(g){var z=new Pe;return z.ids=g.ids,z.positions=g.positions,z.indexed=!0,z};var Ze=Math.pow(2,53)-1;function Ct(y){var g=+y;return!isNaN(g)&&g<=Ze?g:K(String(y))}function dr(y,g,z,V){for(;z>1],oe=z-1,me=V+1;;){do oe++;while(y[oe]<$);do me--;while(y[me]>$);if(oe>=me)break;Er(y,oe,me),Er(g,3*oe,3*me),Er(g,3*oe+1,3*me+1),Er(g,3*oe+2,3*me+2)}me-zme.x+1||xtme.y+1)&&re("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return z}function ru(y,g){return{type:y.type,id:y.id,properties:y.properties,geometry:g?Zo(y):[]}}function yu(y,g,z,V,$){y.emplaceBack(g*2+(V+1)/2,z*2+($+1)/2)}var Du=function(g){this.zoom=g.zoom,this.overscaling=g.overscaling,this.layers=g.layers,this.layerIds=this.layers.map(function(z){return z.id}),this.index=g.index,this.hasPattern=!1,this.layoutVertexArray=new _i,this.indexArray=new Va,this.segments=new cu,this.programConfigurations=new Ki(g.layers,g.zoom),this.stateDependentLayerIds=this.layers.filter(function(z){return z.isStateDependent()}).map(function(z){return z.id})};Du.prototype.populate=function(g,z,V){var $=this.layers[0],oe=[],me=null;$.type==="circle"&&(me=$.layout.get("circle-sort-key"));for(var je=0,xt=g;je=Tn||qr<0||qr>=Tn)){var Pr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,g.sortKey),ai=Pr.vertexLength;yu(this.layoutVertexArray,xr,qr,-1,-1),yu(this.layoutVertexArray,xr,qr,1,-1),yu(this.layoutVertexArray,xr,qr,1,1),yu(this.layoutVertexArray,xr,qr,-1,1),this.indexArray.emplaceBack(ai,ai+1,ai+2),this.indexArray.emplaceBack(ai,ai+3,ai+2),Pr.vertexLength+=4,Pr.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,g,V,{},$)},Z("CircleBucket",Du,{omit:["layers"]});function vu(y,g){for(var z=0;z=3){for(var oe=0;oe<$.length;oe++)if(Sd(y,$[oe]))return!0}if(wd(y,$,z))return!0}return!1}function wd(y,g,z){if(y.length>1){if(Ad(y,g))return!0;for(var V=0;V1?y.distSqr(z):y.distSqr(z.sub(g)._mult($)._add(g))}function dv(y,g){for(var z=!1,V,$,oe,me=0;meg.y!=oe.y>g.y&&g.x<(oe.x-$.x)*(g.y-$.y)/(oe.y-$.y)+$.x&&(z=!z)}return z}function Sd(y,g){for(var z=!1,V=0,$=y.length-1;Vg.y!=me.y>g.y&&g.x<(me.x-oe.x)*(g.y-oe.y)/(me.y-oe.y)+oe.x&&(z=!z)}return z}function pv(y,g,z,V,$){for(var oe=0,me=y;oe=je.x&&$>=je.y)return!0}var xt=[new l(g,z),new l(g,$),new l(V,$),new l(V,z)];if(y.length>2)for(var Rt=0,Xt=xt;Rt$.x&&g.x>$.x||y.y$.y&&g.y>$.y)return!1;var oe=ae(y,g,z[0]);return oe!==ae(y,g,z[1])||oe!==ae(y,g,z[2])||oe!==ae(y,g,z[3])}function Md(y,g,z){var V=g.paint.get(y).value;return V.kind==="constant"?V.value:z.programConfigurations.get(g.id).getMaxValue(y)}function kp(y){return Math.sqrt(y[0]*y[0]+y[1]*y[1])}function Kp(y,g,z,V,$){if(!g[0]&&!g[1])return y;var oe=l.convert(g)._mult($);z==="viewport"&&oe._rotate(-V);for(var me=[],je=0;je0&&(oe=1/Math.sqrt(oe)),y[0]=g[0]*oe,y[1]=g[1]*oe,y[2]=g[2]*oe,y}function HO(y,g){return y[0]*g[0]+y[1]*g[1]+y[2]*g[2]}function WO(y,g,z){var V=g[0],$=g[1],oe=g[2],me=z[0],je=z[1],xt=z[2];return y[0]=$*xt-oe*je,y[1]=oe*me-V*xt,y[2]=V*je-$*me,y}function jO(y,g,z){var V=g[0],$=g[1],oe=g[2];return y[0]=V*z[0]+$*z[3]+oe*z[6],y[1]=V*z[1]+$*z[4]+oe*z[7],y[2]=V*z[2]+$*z[5]+oe*z[8],y}var XO=oy,qQ=function(){var y=ay();return function(g,z,V,$,oe,me){var je,xt;for(z||(z=3),V||(V=0),$?xt=Math.min($*z+V,g.length):xt=g.length,je=V;jey.width||$.height>y.height||z.x>y.width-$.width||z.y>y.height-$.height)throw new RangeError("out of range source coordinates for image copy");if($.width>g.width||$.height>g.height||V.x>g.width-$.width||V.y>g.height-$.height)throw new RangeError("out of range destination coordinates for image copy");for(var me=y.data,je=g.data,xt=0;xt<$.height;xt++)for(var Rt=((z.y+xt)*y.width+z.x)*oe,Xt=((V.y+xt)*g.width+V.x)*oe,xr=0;xr<$.width*oe;xr++)je[Xt+xr]=me[Rt+xr];return g}var Pp=function(g,z){kd(this,g,1,z)};Pp.prototype.resize=function(g){kw(this,g,1)},Pp.prototype.clone=function(){return new Pp({width:this.width,height:this.height},new Uint8Array(this.data))},Pp.copy=function(g,z,V,$,oe){Cw(g,z,V,$,oe,1)};var kh=function(g,z){kd(this,g,4,z)};kh.prototype.resize=function(g){kw(this,g,4)},kh.prototype.replace=function(g,z){z?this.data.set(g):g instanceof Uint8ClampedArray?this.data=new Uint8Array(g.buffer):this.data=g},kh.prototype.clone=function(){return new kh({width:this.width,height:this.height},new Uint8Array(this.data))},kh.copy=function(g,z,V,$,oe){Cw(g,z,V,$,oe,4)},Z("AlphaImage",Pp),Z("RGBAImage",kh);var Gx=new fi({"heatmap-radius":new qt(ji.paint_heatmap["heatmap-radius"]),"heatmap-weight":new qt(ji.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Be(ji.paint_heatmap["heatmap-intensity"]),"heatmap-color":new mi(ji.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Be(ji.paint_heatmap["heatmap-opacity"])}),S1={paint:Gx};function Hx(y){var g={},z=y.resolution||256,V=y.clips?y.clips.length:1,$=y.image||new kh({width:z,height:V}),oe=function(bo,ba,_o){g[y.evaluationKey]=_o;var Uo=y.expression.evaluate(g);$.data[bo+ba+0]=Math.floor(Uo.r*255/Uo.a),$.data[bo+ba+1]=Math.floor(Uo.g*255/Uo.a),$.data[bo+ba+2]=Math.floor(Uo.b*255/Uo.a),$.data[bo+ba+3]=Math.floor(Uo.a*255)};if(y.clips)for(var Rt=0,Xt=0;Rt80*z){je=Rt=y[0],xt=Xt=y[1];for(var ai=z;ai<$;ai+=z)xr=y[ai],qr=y[ai+1],xrRt&&(Rt=xr),qr>Xt&&(Xt=qr);Pr=Math.max(Rt-je,Xt-xt),Pr=Pr!==0?1/Pr:0}return Wx(oe,me,z,je,xt,Pr),me}function zw(y,g,z,V,$){var oe,me;if($===fM(y,g,z,V)>0)for(oe=g;oe=g;oe-=V)me=SC(oe,y[oe],y[oe+1],me);return me&&Xx(me,me.next)&&(Kx(me),me=me.next),me}function sy(y,g){if(!y)return y;g||(g=y);var z=y,V;do if(V=!1,!z.steiner&&(Xx(z,z.next)||Kc(z.prev,z,z.next)===0)){if(Kx(z),z=g=z.prev,z===z.next)break;V=!0}else z=z.next;while(V||z!==g);return g}function Wx(y,g,z,V,$,oe,me){if(y){!me&&oe&&Iw(y,V,$,oe);for(var je=y,xt,Rt;y.prev!==y.next;){if(xt=y.prev,Rt=y.next,oe?wC(y,V,$,oe):bC(y)){g.push(xt.i/z),g.push(y.i/z),g.push(Rt.i/z),Kx(y),y=Rt.next,je=Rt.next;continue}if(y=Rt,y===je){me?me===1?(y=jx(sy(y),g,z),Wx(y,g,z,V,$,oe,2)):me===2&&p0(y,g,z,V,$,oe):Wx(sy(y),g,z,V,$,oe,1);break}}}}function bC(y){var g=y.prev,z=y,V=y.next;if(Kc(g,z,V)>=0)return!1;for(var $=y.next.next;$!==y.prev;){if(uy(g.x,g.y,z.x,z.y,V.x,V.y,$.x,$.y)&&Kc($.prev,$,$.next)>=0)return!1;$=$.next}return!0}function wC(y,g,z,V){var $=y.prev,oe=y,me=y.next;if(Kc($,oe,me)>=0)return!1;for(var je=$.xoe.x?$.x>me.x?$.x:me.x:oe.x>me.x?oe.x:me.x,Xt=$.y>oe.y?$.y>me.y?$.y:me.y:oe.y>me.y?oe.y:me.y,xr=oM(je,xt,g,z,V),qr=oM(Rt,Xt,g,z,V),Pr=y.prevZ,ai=y.nextZ;Pr&&Pr.z>=xr&&ai&&ai.z<=qr;){if(Pr!==y.prev&&Pr!==y.next&&uy($.x,$.y,oe.x,oe.y,me.x,me.y,Pr.x,Pr.y)&&Kc(Pr.prev,Pr,Pr.next)>=0||(Pr=Pr.prevZ,ai!==y.prev&&ai!==y.next&&uy($.x,$.y,oe.x,oe.y,me.x,me.y,ai.x,ai.y)&&Kc(ai.prev,ai,ai.next)>=0))return!1;ai=ai.nextZ}for(;Pr&&Pr.z>=xr;){if(Pr!==y.prev&&Pr!==y.next&&uy($.x,$.y,oe.x,oe.y,me.x,me.y,Pr.x,Pr.y)&&Kc(Pr.prev,Pr,Pr.next)>=0)return!1;Pr=Pr.prevZ}for(;ai&&ai.z<=qr;){if(ai!==y.prev&&ai!==y.next&&uy($.x,$.y,oe.x,oe.y,me.x,me.y,ai.x,ai.y)&&Kc(ai.prev,ai,ai.next)>=0)return!1;ai=ai.nextZ}return!0}function jx(y,g,z){var V=y;do{var $=V.prev,oe=V.next.next;!Xx($,oe)&&Rw($,V,V.next,oe)&&Yx($,oe)&&Yx(oe,$)&&(g.push($.i/z),g.push(V.i/z),g.push(oe.i/z),Kx(V),Kx(V.next),V=y=oe),V=V.next}while(V!==y);return sy(V)}function p0(y,g,z,V,$,oe){var me=y;do{for(var je=me.next.next;je!==me.prev;){if(me.i!==je.i&&E1(me,je)){var xt=lM(me,je);me=sy(me,me.next),xt=sy(xt,xt.next),Wx(me,g,z,V,$,oe),Wx(xt,g,z,V,$,oe);return}je=je.next}me=me.next}while(me!==y)}function ly(y,g,z,V){var $=[],oe,me,je,xt,Rt;for(oe=0,me=g.length;oe=z.next.y&&z.next.y!==z.y){var je=z.x+($-z.y)*(z.next.x-z.x)/(z.next.y-z.y);if(je<=V&&je>oe){if(oe=je,je===V){if($===z.y)return z;if($===z.next.y)return z.next}me=z.x=z.x&&z.x>=Rt&&V!==z.x&&uy($me.x||z.x===me.x&&r9(me,z)))&&(me=z,xr=qr)),z=z.next;while(z!==xt);return me}function r9(y,g){return Kc(y.prev,y,g.prev)<0&&Kc(g.next,y,y.next)<0}function Iw(y,g,z,V){var $=y;do $.z===null&&($.z=oM($.x,$.y,g,z,V)),$.prevZ=$.prev,$.nextZ=$.next,$=$.next;while($!==y);$.prevZ.nextZ=null,$.prevZ=null,aM($)}function aM(y){var g,z,V,$,oe,me,je,xt,Rt=1;do{for(z=y,y=null,oe=null,me=0;z;){for(me++,V=z,je=0,g=0;g0||xt>0&&V;)je!==0&&(xt===0||!V||z.z<=V.z)?($=z,z=z.nextZ,je--):($=V,V=V.nextZ,xt--),oe?oe.nextZ=$:y=$,$.prevZ=oe,oe=$;z=V}oe.nextZ=null,Rt*=2}while(me>1);return y}function oM(y,g,z,V,$){return y=32767*(y-z)*$,g=32767*(g-V)*$,y=(y|y<<8)&16711935,y=(y|y<<4)&252645135,y=(y|y<<2)&858993459,y=(y|y<<1)&1431655765,g=(g|g<<8)&16711935,g=(g|g<<4)&252645135,g=(g|g<<2)&858993459,g=(g|g<<1)&1431655765,y|g<<1}function sM(y){var g=y,z=y;do(g.x=0&&(y-me)*(V-je)-(z-me)*(g-je)>=0&&(z-me)*(oe-je)-($-me)*(V-je)>=0}function E1(y,g){return y.next.i!==g.i&&y.prev.i!==g.i&&!TC(y,g)&&(Yx(y,g)&&Yx(g,y)&&i9(y,g)&&(Kc(y.prev,y,g.prev)||Kc(y,g.prev,g))||Xx(y,g)&&Kc(y.prev,y,y.next)>0&&Kc(g.prev,g,g.next)>0)}function Kc(y,g,z){return(g.y-y.y)*(z.x-g.x)-(g.x-y.x)*(z.y-g.y)}function Xx(y,g){return y.x===g.x&&y.y===g.y}function Rw(y,g,z,V){var $=ug(Kc(y,g,z)),oe=ug(Kc(y,g,V)),me=ug(Kc(z,V,y)),je=ug(Kc(z,V,g));return!!($!==oe&&me!==je||$===0&&Zx(y,z,g)||oe===0&&Zx(y,V,g)||me===0&&Zx(z,y,V)||je===0&&Zx(z,g,V))}function Zx(y,g,z){return g.x<=Math.max(y.x,z.x)&&g.x>=Math.min(y.x,z.x)&&g.y<=Math.max(y.y,z.y)&&g.y>=Math.min(y.y,z.y)}function ug(y){return y>0?1:y<0?-1:0}function TC(y,g){var z=y;do{if(z.i!==y.i&&z.next.i!==y.i&&z.i!==g.i&&z.next.i!==g.i&&Rw(z,z.next,y,g))return!0;z=z.next}while(z!==y);return!1}function Yx(y,g){return Kc(y.prev,y,y.next)<0?Kc(y,g,y.next)>=0&&Kc(y,y.prev,g)>=0:Kc(y,g,y.prev)<0||Kc(y,y.next,g)<0}function i9(y,g){var z=y,V=!1,$=(y.x+g.x)/2,oe=(y.y+g.y)/2;do z.y>oe!=z.next.y>oe&&z.next.y!==z.y&&$<(z.next.x-z.x)*(oe-z.y)/(z.next.y-z.y)+z.x&&(V=!V),z=z.next;while(z!==y);return V}function lM(y,g){var z=new uM(y.i,y.x,y.y),V=new uM(g.i,g.x,g.y),$=y.next,oe=g.prev;return y.next=g,g.prev=y,z.next=$,$.prev=z,V.next=z,z.prev=V,oe.next=V,V.prev=oe,V}function SC(y,g,z,V){var $=new uM(y,g,z);return V?($.next=V.next,$.prev=V,V.next.prev=$,V.next=$):($.prev=$,$.next=$),$}function Kx(y){y.next.prev=y.prev,y.prev.next=y.next,y.prevZ&&(y.prevZ.nextZ=y.nextZ),y.nextZ&&(y.nextZ.prevZ=y.prevZ)}function uM(y,g,z){this.i=y,this.x=g,this.y=z,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}M1.deviation=function(y,g,z,V){var $=g&&g.length,oe=$?g[0]*z:y.length,me=Math.abs(fM(y,0,oe,z));if($)for(var je=0,xt=g.length;je0&&(V+=y[$-1].length,z.holes.push(V))}return z},Pw.default=xC;function cM(y,g,z,V,$){dm(y,g,z||0,V||y.length-1,$||MC)}function dm(y,g,z,V,$){for(;V>z;){if(V-z>600){var oe=V-z+1,me=g-z+1,je=Math.log(oe),xt=.5*Math.exp(2*je/3),Rt=.5*Math.sqrt(je*xt*(oe-xt)/oe)*(me-oe/2<0?-1:1),Xt=Math.max(z,Math.floor(g-me*xt/oe+Rt)),xr=Math.min(V,Math.floor(g+(oe-me)*xt/oe+Rt));dm(y,g,Xt,xr,$)}var qr=y[g],Pr=z,ai=V;for(k1(y,z,g),$(y[V],qr)>0&&k1(y,z,V);Pr0;)ai--}$(y[z],qr)===0?k1(y,z,ai):(ai++,k1(y,ai,V)),ai<=g&&(z=ai+1),g<=ai&&(V=ai-1)}}function k1(y,g,z){var V=y[g];y[g]=y[z],y[z]=V}function MC(y,g){return yg?1:0}function Dw(y,g){var z=y.length;if(z<=1)return[y];for(var V=[],$,oe,me=0;me1)for(var xt=0;xt>3}if(V--,z===1||z===2)$+=y.readSVarint(),oe+=y.readSVarint(),z===1&&(je&&me.push(je),je=[]),je.push(new l($,oe));else if(z===7)je&&je.push(je[0].clone());else throw new Error("unknown command "+z)}return je&&me.push(je),me},fg.prototype.bbox=function(){var y=this._pbf;y.pos=this._geometry;for(var g=y.readVarint()+y.pos,z=1,V=0,$=0,oe=0,me=1/0,je=-1/0,xt=1/0,Rt=-1/0;y.pos>3}if(V--,z===1||z===2)$+=y.readSVarint(),oe+=y.readSVarint(),$je&&(je=$),oeRt&&(Rt=oe);else if(z!==7)throw new Error("unknown command "+z)}return[me,xt,je,Rt]},fg.prototype.toGeoJSON=function(y,g,z){var V=this.extent*Math.pow(2,z),$=this.extent*y,oe=this.extent*g,me=this.loadGeometry(),je=fg.types[this.type],xt,Rt;function Xt(Pr){for(var ai=0;ai>3;g=V===1?y.readString():V===2?y.readFloat():V===3?y.readDouble():V===4?y.readVarint64():V===5?y.readVarint():V===6?y.readSVarint():V===7?y.readBoolean():null}return g}pM.prototype.feature=function(y){if(y<0||y>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[y];var g=this._pbf.readVarint()+this._pbf.pos;return new dM(this._pbf,g,this.extent,this._keys,this._values)};var FC=a9;function a9(y,g){this.layers=y.readFields(o9,{},g)}function o9(y,g,z){if(y===3){var V=new pm(z,z.readVarint()+z.pos);V.length&&(g[V.name]=V)}}var BC=FC,C1=dM,OC=pm,vm={VectorTile:BC,VectorTileFeature:C1,VectorTileLayer:OC},qC=vm.VectorTileFeature.types,Bw=500,L1=Math.pow(2,13);function fy(y,g,z,V,$,oe,me,je){y.emplaceBack(g,z,Math.floor(V*L1)*2+me,$*L1*2,oe*L1*2,Math.round(je))}var Vv=function(g){this.zoom=g.zoom,this.overscaling=g.overscaling,this.layers=g.layers,this.layerIds=this.layers.map(function(z){return z.id}),this.index=g.index,this.hasPattern=!1,this.layoutVertexArray=new En,this.indexArray=new Va,this.programConfigurations=new Ki(g.layers,g.zoom),this.segments=new cu,this.stateDependentLayerIds=this.layers.filter(function(z){return z.isStateDependent()}).map(function(z){return z.id})};Vv.prototype.populate=function(g,z,V){this.features=[],this.hasPattern=Fw("fill-extrusion",this.layers,z);for(var $=0,oe=g;$=1){var _o=Wn[bo-1];if(!s9(ba,_o)){Pr.vertexLength+4>cu.MAX_VERTEX_ARRAY_LENGTH&&(Pr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Uo=ba.sub(_o)._perp()._unit(),Zs=_o.dist(ba);bn+Zs>32768&&(bn=0),fy(this.layoutVertexArray,ba.x,ba.y,Uo.x,Uo.y,0,0,bn),fy(this.layoutVertexArray,ba.x,ba.y,Uo.x,Uo.y,0,1,bn),bn+=Zs,fy(this.layoutVertexArray,_o.x,_o.y,Uo.x,Uo.y,0,0,bn),fy(this.layoutVertexArray,_o.x,_o.y,Uo.x,Uo.y,0,1,bn);var Cl=Pr.vertexLength;this.indexArray.emplaceBack(Cl,Cl+2,Cl+1),this.indexArray.emplaceBack(Cl+1,Cl+2,Cl+3),Pr.vertexLength+=4,Pr.primitiveLength+=2}}}}if(Pr.vertexLength+Rt>cu.MAX_VERTEX_ARRAY_LENGTH&&(Pr=this.segments.prepareSegment(Rt,this.layoutVertexArray,this.indexArray)),qC[g.type]==="Polygon"){for(var Tl=[],hu=[],Kl=Pr.vertexLength,lu=0,Bu=xt;luTn)||y.y===g.y&&(y.y<0||y.y>Tn)}function l9(y){return y.every(function(g){return g.x<0})||y.every(function(g){return g.x>Tn})||y.every(function(g){return g.y<0})||y.every(function(g){return g.y>Tn})}var P1=new fi({"fill-extrusion-opacity":new Be(ji["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new qt(ji["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Be(ji["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Be(ji["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new ar(ji["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new qt(ji["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new qt(ji["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Be(ji["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),ld={paint:P1},cy=function(y){function g(z){y.call(this,z,ld)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.createBucket=function(V){return new Vv(V)},g.prototype.queryRadius=function(){return kp(this.paint.get("fill-extrusion-translate"))},g.prototype.is3D=function(){return!0},g.prototype.queryIntersectsFeature=function(V,$,oe,me,je,xt,Rt,Xt){var xr=Kp(V,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),xt.angle,Rt),qr=this.paint.get("fill-extrusion-height").evaluate($,oe),Pr=this.paint.get("fill-extrusion-base").evaluate($,oe),ai=u9(xr,Xt,xt,0),qi=mM(me,Pr,qr,Xt),Wn=qi[0],bn=qi[1];return NC(Wn,bn,ai)},g}(on);function cg(y,g){return y.x*g.x+y.y*g.y}function vM(y,g){if(y.length===1){for(var z=0,V=g[z++],$;!$||V.equals($);)if($=g[z++],!$)return 1/0;for(;z=2&&g[Rt-1].equals(g[Rt-2]);)Rt--;for(var Xt=0;Xt0;if(Tl&&bo>Xt){var Kl=Pr.dist(ai);if(Kl>2*xr){var lu=Pr.sub(Pr.sub(ai)._mult(xr/Kl)._round());this.updateDistance(ai,lu),this.addCurrentVertex(lu,Wn,0,0,qr),ai=lu}}var Bu=ai&&qi,du=Bu?V:xt?"butt":$;if(Bu&&du==="round"&&(Zsoe&&(du="bevel"),du==="bevel"&&(Zs>2&&(du="flipbevel"),Zs100)ba=bn.mult(-1);else{var gu=Zs*Wn.add(bn).mag()/Wn.sub(bn).mag();ba._perp()._mult(gu*(hu?-1:1))}this.addCurrentVertex(Pr,ba,0,0,qr),this.addCurrentVertex(Pr,ba.mult(-1),0,0,qr)}else if(du==="bevel"||du==="fakeround"){var ff=-Math.sqrt(Zs*Zs-1),Ru=hu?ff:0,If=hu?0:ff;if(ai&&this.addCurrentVertex(Pr,Wn,Ru,If,qr),du==="fakeround")for(var sc=Math.round(Cl*180/Math.PI/gM),Rf=1;Rf2*xr){var _h=Pr.add(qi.sub(Pr)._mult(xr/Kh)._round());this.updateDistance(Pr,_h),this.addCurrentVertex(_h,bn,0,0,qr),Pr=_h}}}}},mh.prototype.addCurrentVertex=function(g,z,V,$,oe,me){me===void 0&&(me=!1);var je=z.x+z.y*V,xt=z.y-z.x*V,Rt=-z.x+z.y*$,Xt=-z.y-z.x*$;this.addHalfVertex(g,je,xt,me,!1,V,oe),this.addHalfVertex(g,Rt,Xt,me,!0,-$,oe),this.distance>tb/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(g,z,V,$,oe,me))},mh.prototype.addHalfVertex=function(g,z,V,$,oe,me,je){var xt=g.x,Rt=g.y,Xt=this.lineClips?this.scaledDistance*(tb-1):this.scaledDistance,xr=Xt*qw;if(this.layoutVertexArray.emplaceBack((xt<<1)+($?1:0),(Rt<<1)+(oe?1:0),Math.round(Ow*z)+128,Math.round(Ow*V)+128,(me===0?0:me<0?-1:1)+1|(xr&63)<<2,xr>>6),this.lineClips){var qr=this.scaledDistance-this.lineClips.start,Pr=this.lineClips.end-this.lineClips.start,ai=qr/Pr;this.layoutVertexArray2.emplaceBack(ai,this.lineClipsArray.length)}var qi=je.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,qi),je.primitiveLength++),oe?this.e2=qi:this.e1=qi},mh.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},mh.prototype.updateDistance=function(g,z){this.distance+=g.dist(z),this.updateScaledDistance()},Z("LineBucket",mh,{omit:["layers","patternFeatures"]});var _M=new fi({"line-cap":new Be(ji.layout_line["line-cap"]),"line-join":new qt(ji.layout_line["line-join"]),"line-miter-limit":new Be(ji.layout_line["line-miter-limit"]),"line-round-limit":new Be(ji.layout_line["line-round-limit"]),"line-sort-key":new qt(ji.layout_line["line-sort-key"])}),xM=new fi({"line-opacity":new qt(ji.paint_line["line-opacity"]),"line-color":new qt(ji.paint_line["line-color"]),"line-translate":new Be(ji.paint_line["line-translate"]),"line-translate-anchor":new Be(ji.paint_line["line-translate-anchor"]),"line-width":new qt(ji.paint_line["line-width"]),"line-gap-width":new qt(ji.paint_line["line-gap-width"]),"line-offset":new qt(ji.paint_line["line-offset"]),"line-blur":new qt(ji.paint_line["line-blur"]),"line-dasharray":new Qr(ji.paint_line["line-dasharray"]),"line-pattern":new ar(ji.paint_line["line-pattern"]),"line-gradient":new mi(ji.paint_line["line-gradient"])}),Nw={paint:xM,layout:_M},c9=function(y){function g(){y.apply(this,arguments)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.possiblyEvaluate=function(V,$){return $=new ds(Math.floor($.zoom),{now:$.now,fadeDuration:$.fadeDuration,zoomHistory:$.zoomHistory,transition:$.transition}),y.prototype.possiblyEvaluate.call(this,V,$)},g.prototype.evaluate=function(V,$,oe,me){return $=_({},$,{zoom:Math.floor($.zoom)}),y.prototype.evaluate.call(this,V,$,oe,me)},g}(qt),I=new c9(Nw.paint.properties["line-width"].specification);I.useIntegerZoom=!0;var M=function(y){function g(z){y.call(this,z,Nw),this.gradientVersion=0}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype._handleSpecialPaintPropertyUpdate=function(V){if(V==="line-gradient"){var $=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=$._styleExpression.expression instanceof Do,this.gradientVersion=(this.gradientVersion+1)%d}},g.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},g.prototype.recalculate=function(V,$){y.prototype.recalculate.call(this,V,$),this.paint._values["line-floorwidth"]=I.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,V)},g.prototype.createBucket=function(V){return new mh(V)},g.prototype.queryRadius=function(V){var $=V,oe=D(Md("line-width",this,$),Md("line-gap-width",this,$)),me=Md("line-offset",this,$);return oe/2+Math.abs(me)+kp(this.paint.get("line-translate"))},g.prototype.queryIntersectsFeature=function(V,$,oe,me,je,xt,Rt){var Xt=Kp(V,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),xt.angle,Rt),xr=Rt/2*D(this.paint.get("line-width").evaluate($,oe),this.paint.get("line-gap-width").evaluate($,oe)),qr=this.paint.get("line-offset").evaluate($,oe);return qr&&(me=X(me,qr*Rt)),Uf(Xt,me,xr)},g.prototype.isTileClipped=function(){return!0},g}(on);function D(y,g){return g>0?g+2*y:y}function X(y,g){for(var z=[],V=new l(0,0),$=0;$":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};function La(y){for(var g="",z=0;z>1,Xt=-7,xr=z?$-1:0,qr=z?-1:1,Pr=y[g+xr];for(xr+=qr,oe=Pr&(1<<-Xt)-1,Pr>>=-Xt,Xt+=je;Xt>0;oe=oe*256+y[g+xr],xr+=qr,Xt-=8);for(me=oe&(1<<-Xt)-1,oe>>=-Xt,Xt+=V;Xt>0;me=me*256+y[g+xr],xr+=qr,Xt-=8);if(oe===0)oe=1-Rt;else{if(oe===xt)return me?NaN:(Pr?-1:1)*(1/0);me=me+Math.pow(2,V),oe=oe-Rt}return(Pr?-1:1)*me*Math.pow(2,oe-V)},mu=function(y,g,z,V,$,oe){var me,je,xt,Rt=oe*8-$-1,Xt=(1<>1,qr=$===23?Math.pow(2,-24)-Math.pow(2,-77):0,Pr=V?0:oe-1,ai=V?1:-1,qi=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===1/0?(je=isNaN(g)?1:0,me=Xt):(me=Math.floor(Math.log(g)/Math.LN2),g*(xt=Math.pow(2,-me))<1&&(me--,xt*=2),me+xr>=1?g+=qr/xt:g+=qr*Math.pow(2,1-xr),g*xt>=2&&(me++,xt/=2),me+xr>=Xt?(je=0,me=Xt):me+xr>=1?(je=(g*xt-1)*Math.pow(2,$),me=me+xr):(je=g*Math.pow(2,xr-1)*Math.pow(2,$),me=0));$>=8;y[z+Pr]=je&255,Pr+=ai,je/=256,$-=8);for(me=me<<$|je,Rt+=$;Rt>0;y[z+Pr]=me&255,Pr+=ai,me/=256,Rt-=8);y[z+Pr-ai]|=qi*128},Iu={read:kl,write:mu},su=yl;function yl(y){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(y)?y:new Uint8Array(y||0),this.pos=0,this.type=0,this.length=this.buf.length}yl.Varint=0,yl.Fixed64=1,yl.Bytes=2,yl.Fixed32=5;var Eu=65536*65536,bu=1/Eu,_u=12,Xs=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");yl.prototype={destroy:function(){this.buf=null},readFields:function(y,g,z){for(z=z||this.length;this.pos>3,oe=this.pos;this.type=V&7,y($,g,this),this.pos===oe&&this.skip(V)}return g},readMessage:function(y,g){return this.readFields(y,g,this.readVarint()+this.pos)},readFixed32:function(){var y=Xh(this.buf,this.pos);return this.pos+=4,y},readSFixed32:function(){var y=zp(this.buf,this.pos);return this.pos+=4,y},readFixed64:function(){var y=Xh(this.buf,this.pos)+Xh(this.buf,this.pos+4)*Eu;return this.pos+=8,y},readSFixed64:function(){var y=Xh(this.buf,this.pos)+zp(this.buf,this.pos+4)*Eu;return this.pos+=8,y},readFloat:function(){var y=Iu.read(this.buf,this.pos,!0,23,4);return this.pos+=4,y},readDouble:function(){var y=Iu.read(this.buf,this.pos,!0,52,8);return this.pos+=8,y},readVarint:function(y){var g=this.buf,z,V;return V=g[this.pos++],z=V&127,V<128||(V=g[this.pos++],z|=(V&127)<<7,V<128)||(V=g[this.pos++],z|=(V&127)<<14,V<128)||(V=g[this.pos++],z|=(V&127)<<21,V<128)?z:(V=g[this.pos],z|=(V&15)<<28,Lu(z,y,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var y=this.readVarint();return y%2===1?(y+1)/-2:y/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var y=this.readVarint()+this.pos,g=this.pos;return this.pos=y,y-g>=_u&&Xs?jf(this.buf,g,y):fp(this.buf,g,y)},readBytes:function(){var y=this.readVarint()+this.pos,g=this.buf.subarray(this.pos,y);return this.pos=y,g},readPackedVarint:function(y,g){if(this.type!==yl.Bytes)return y.push(this.readVarint(g));var z=xu(this);for(y=y||[];this.pos127;);else if(g===yl.Bytes)this.pos=this.readVarint()+this.pos;else if(g===yl.Fixed32)this.pos+=4;else if(g===yl.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+g)},writeTag:function(y,g){this.writeVarint(y<<3|g)},realloc:function(y){for(var g=this.length||16;g268435455||y<0){vc(y,this);return}this.realloc(4),this.buf[this.pos++]=y&127|(y>127?128:0),!(y<=127)&&(this.buf[this.pos++]=(y>>>=7)&127|(y>127?128:0),!(y<=127)&&(this.buf[this.pos++]=(y>>>=7)&127|(y>127?128:0),!(y<=127)&&(this.buf[this.pos++]=y>>>7&127)))},writeSVarint:function(y){this.writeVarint(y<0?-y*2-1:y*2)},writeBoolean:function(y){this.writeVarint(!!y)},writeString:function(y){y=String(y),this.realloc(y.length*4),this.pos++;var g=this.pos;this.pos=Ac(this.buf,y,this.pos);var z=this.pos-g;z>=128&&$p(g,z,this),this.pos=g-1,this.writeVarint(z),this.pos+=z},writeFloat:function(y){this.realloc(4),Iu.write(this.buf,y,this.pos,!0,23,4),this.pos+=4},writeDouble:function(y){this.realloc(8),Iu.write(this.buf,y,this.pos,!0,52,8),this.pos+=8},writeBytes:function(y){var g=y.length;this.writeVarint(g),this.realloc(g);for(var z=0;z=128&&$p(z,V,this),this.pos=z-1,this.writeVarint(V),this.pos+=V},writeMessage:function(y,g,z){this.writeTag(y,yl.Bytes),this.writeRawMessage(g,z)},writePackedVarint:function(y,g){g.length&&this.writeMessage(y,ud,g)},writePackedSVarint:function(y,g){g.length&&this.writeMessage(y,Lh,g)},writePackedBoolean:function(y,g){g.length&&this.writeMessage(y,Xd,g)},writePackedFloat:function(y,g){g.length&&this.writeMessage(y,Wd,g)},writePackedDouble:function(y,g){g.length&&this.writeMessage(y,jd,g)},writePackedFixed32:function(y,g){g.length&&this.writeMessage(y,Jc,g)},writePackedSFixed32:function(y,g){g.length&&this.writeMessage(y,Ph,g)},writePackedFixed64:function(y,g){g.length&&this.writeMessage(y,Cd,g)},writePackedSFixed64:function(y,g){g.length&&this.writeMessage(y,fd,g)},writeBytesField:function(y,g){this.writeTag(y,yl.Bytes),this.writeBytes(g)},writeFixed32Field:function(y,g){this.writeTag(y,yl.Fixed32),this.writeFixed32(g)},writeSFixed32Field:function(y,g){this.writeTag(y,yl.Fixed32),this.writeSFixed32(g)},writeFixed64Field:function(y,g){this.writeTag(y,yl.Fixed64),this.writeFixed64(g)},writeSFixed64Field:function(y,g){this.writeTag(y,yl.Fixed64),this.writeSFixed64(g)},writeVarintField:function(y,g){this.writeTag(y,yl.Varint),this.writeVarint(g)},writeSVarintField:function(y,g){this.writeTag(y,yl.Varint),this.writeSVarint(g)},writeStringField:function(y,g){this.writeTag(y,yl.Bytes),this.writeString(g)},writeFloatField:function(y,g){this.writeTag(y,yl.Fixed32),this.writeFloat(g)},writeDoubleField:function(y,g){this.writeTag(y,yl.Fixed64),this.writeDouble(g)},writeBooleanField:function(y,g){this.writeVarintField(y,!!g)}};function Lu(y,g,z){var V=z.buf,$,oe;if(oe=V[z.pos++],$=(oe&112)>>4,oe<128||(oe=V[z.pos++],$|=(oe&127)<<3,oe<128)||(oe=V[z.pos++],$|=(oe&127)<<10,oe<128)||(oe=V[z.pos++],$|=(oe&127)<<17,oe<128)||(oe=V[z.pos++],$|=(oe&127)<<24,oe<128)||(oe=V[z.pos++],$|=(oe&1)<<31,oe<128))return qu(y,$,g);throw new Error("Expected varint not more than 10 bytes")}function xu(y){return y.type===yl.Bytes?y.readVarint()+y.pos:y.pos+1}function qu(y,g,z){return z?g*4294967296+(y>>>0):(g>>>0)*4294967296+(y>>>0)}function vc(y,g){var z,V;if(y>=0?(z=y%4294967296|0,V=y/4294967296|0):(z=~(-y%4294967296),V=~(-y/4294967296),z^4294967295?z=z+1|0:(z=0,V=V+1|0)),y>=18446744073709552e3||y<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");g.realloc(10),cc(z,V,g),Ch(V,g)}function cc(y,g,z){z.buf[z.pos++]=y&127|128,y>>>=7,z.buf[z.pos++]=y&127|128,y>>>=7,z.buf[z.pos++]=y&127|128,y>>>=7,z.buf[z.pos++]=y&127|128,y>>>=7,z.buf[z.pos]=y&127}function Ch(y,g){var z=(y&7)<<4;g.buf[g.pos++]|=z|((y>>>=3)?128:0),y&&(g.buf[g.pos++]=y&127|((y>>>=7)?128:0),y&&(g.buf[g.pos++]=y&127|((y>>>=7)?128:0),y&&(g.buf[g.pos++]=y&127|((y>>>=7)?128:0),y&&(g.buf[g.pos++]=y&127|((y>>>=7)?128:0),y&&(g.buf[g.pos++]=y&127)))))}function $p(y,g,z){var V=g<=16383?1:g<=2097151?2:g<=268435455?3:Math.floor(Math.log(g)/(Math.LN2*7));z.realloc(V);for(var $=z.pos-1;$>=y;$--)z.buf[$+V]=z.buf[$]}function ud(y,g){for(var z=0;z>>8,y[z+2]=g>>>16,y[z+3]=g>>>24}function zp(y,g){return(y[g]|y[g+1]<<8|y[g+2]<<16)+(y[g+3]<<24)}function fp(y,g,z){for(var V="",$=g;$239?4:oe>223?3:oe>191?2:1;if($+je>z)break;var xt,Rt,Xt;je===1?oe<128&&(me=oe):je===2?(xt=y[$+1],(xt&192)===128&&(me=(oe&31)<<6|xt&63,me<=127&&(me=null))):je===3?(xt=y[$+1],Rt=y[$+2],(xt&192)===128&&(Rt&192)===128&&(me=(oe&15)<<12|(xt&63)<<6|Rt&63,(me<=2047||me>=55296&&me<=57343)&&(me=null))):je===4&&(xt=y[$+1],Rt=y[$+2],Xt=y[$+3],(xt&192)===128&&(Rt&192)===128&&(Xt&192)===128&&(me=(oe&15)<<18|(xt&63)<<12|(Rt&63)<<6|Xt&63,(me<=65535||me>=1114112)&&(me=null))),me===null?(me=65533,je=1):me>65535&&(me-=65536,V+=String.fromCharCode(me>>>10&1023|55296),me=56320|me&1023),V+=String.fromCharCode(me),$+=je}return V}function jf(y,g,z){return Xs.decode(y.subarray(g,z))}function Ac(y,g,z){for(var V=0,$,oe;V55295&&$<57344)if(oe)if($<56320){y[z++]=239,y[z++]=191,y[z++]=189,oe=$;continue}else $=oe-55296<<10|$-56320|65536,oe=null;else{$>56319||V+1===g.length?(y[z++]=239,y[z++]=191,y[z++]=189):oe=$;continue}else oe&&(y[z++]=239,y[z++]=191,y[z++]=189,oe=null);$<128?y[z++]=$:($<2048?y[z++]=$>>6|192:($<65536?y[z++]=$>>12|224:(y[z++]=$>>18|240,y[z++]=$>>12&63|128),y[z++]=$>>6&63|128),y[z++]=$&63|128)}return z}var mc=3;function Ip(y,g,z){y===1&&z.readMessage(Hc,g)}function Hc(y,g,z){if(y===3){var V=z.readMessage(z1,{}),$=V.id,oe=V.bitmap,me=V.width,je=V.height,xt=V.left,Rt=V.top,Xt=V.advance;g.push({id:$,bitmap:new Pp({width:me+2*mc,height:je+2*mc},oe),metrics:{width:me,height:je,left:xt,top:Rt,advance:Xt}})}}function z1(y,g,z){y===1?g.id=z.readVarint():y===2?g.bitmap=z.readBytes():y===3?g.width=z.readVarint():y===4?g.height=z.readVarint():y===5?g.left=z.readSVarint():y===6?g.top=z.readSVarint():y===7&&(g.advance=z.readVarint())}function v0(y){return new su(y).readFields(Ip,[])}var Gv=mc;function Qp(y){for(var g=0,z=0,V=0,$=y;V<$.length;V+=1){var oe=$[V];g+=oe.w*oe.h,z=Math.max(z,oe.w)}y.sort(function(Wn,bn){return bn.h-Wn.h});for(var me=Math.max(Math.ceil(Math.sqrt(g/.95)),z),je=[{x:0,y:0,w:me,h:1/0}],xt=0,Rt=0,Xt=0,xr=y;Xt=0;Pr--){var ai=je[Pr];if(!(qr.w>ai.w||qr.h>ai.h)){if(qr.x=ai.x,qr.y=ai.y,Rt=Math.max(Rt,qr.y+qr.h),xt=Math.max(xt,qr.x+qr.w),qr.w===ai.w&&qr.h===ai.h){var qi=je.pop();Pr=0&&$>=g&&y0[this.text.charCodeAt($)];$--)V--;this.text=this.text.substring(g,V),this.sectionIndex=this.sectionIndex.slice(g,V)},Zh.prototype.substring=function(g,z){var V=new Zh;return V.text=this.text.substring(g,z),V.sectionIndex=this.sectionIndex.slice(g,z),V.sections=this.sections,V},Zh.prototype.toString=function(){return this.text},Zh.prototype.getMaxScale=function(){var g=this;return this.sectionIndex.reduce(function(z,V){return Math.max(z,g.sections[V].scale)},0)},Zh.prototype.addTextSection=function(g,z){this.text+=g.text,this.sections.push(hg.forText(g.scale,g.fontStack||z));for(var V=this.sections.length-1,$=0;$=m0?null:++this.imageSectionID:(this.imageSectionID=Uw,this.imageSectionID)};function h9(y,g){for(var z=[],V=y.text,$=0,oe=0,me=g;oe=0,Xt=0,xr=0;xr0&&_h>hu&&(hu=_h)}else{var Df=z[lu.fontStack],zf=Df&&Df[du];if(zf&&zf.rect)Ru=zf.rect,ff=zf.metrics;else{var yc=g[lu.fontStack],Tc=yc&&yc[du];if(!Tc)continue;ff=Tc.metrics}gu=(Uo-lu.scale)*So}Rf?(y.verticalizable=!0,Tl.push({glyph:du,imageName:If,x:qr,y:Pr+gu,vertical:Rf,scale:lu.scale,fontStack:lu.fontStack,sectionIndex:Bu,metrics:ff,rect:Ru}),qr+=sc*lu.scale+Rt):(Tl.push({glyph:du,imageName:If,x:qr,y:Pr+gu,vertical:Rf,scale:lu.scale,fontStack:lu.fontStack,sectionIndex:Bu,metrics:ff,rect:Ru}),qr+=ff.advance*lu.scale+Rt)}if(Tl.length!==0){var Yd=qr-Rt;ai=Math.max(Yd,ai),m9(Tl,0,Tl.length-1,Wn,hu)}qr=0;var Kd=oe*Uo+hu;Cl.lineOffset=Math.max(hu,Zs),Pr+=Kd,qi=Math.max(Kd,qi),++bn}var Jh=Pr-I1,dp=wM(me),pp=dp.horizontalAlign,zh=dp.verticalAlign;Ld(y.positionedLines,Wn,pp,zh,ai,qi,oe,Jh,$.length),y.top+=-zh*Jh,y.bottom=y.top+Jh,y.left+=-pp*ai,y.right=y.left+ai}function m9(y,g,z,V,$){if(!(!V&&!$))for(var oe=y[z],me=oe.metrics.advance*oe.scale,je=(y[z].x+me)*V,xt=g;xt<=z;xt++)y[xt].x-=je,y[xt].y+=$}function Ld(y,g,z,V,$,oe,me,je,xt){var Rt=(g-z)*$,Xt=0;oe!==me?Xt=-je*V-I1:Xt=(-V*xt+.5)*me;for(var xr=0,qr=y;xr-z/2;){if(me--,me<0)return!1;je-=y[me].dist(oe),oe=y[me]}je+=y[me].dist(y[me+1]),me++;for(var xt=[],Rt=0;jeV;)Rt-=xt.shift().angleDelta;if(Rt>$)return!1;me++,je+=xr.dist(qr)}return!0}function HQ(y){for(var g=0,z=0;zRt){var ai=(Rt-xt)/Pr,qi=Lo(xr.x,qr.x,ai),Wn=Lo(xr.y,qr.y,ai),bn=new Zd(qi,Wn,qr.angleTo(xr),Xt);return bn._round(),!me||GQ(y,bn,je,me,g)?bn:void 0}xt+=Pr}}function Vet(y,g,z,V,$,oe,me,je,xt){var Rt=WQ(V,oe,me),Xt=jQ(V,$),xr=Xt*me,qr=y[0].x===0||y[0].x===xt||y[0].y===0||y[0].y===xt;g-xr=0&&_o=0&&Uo=0&&qr+Rt<=Xt){var Zs=new Zd(_o,Uo,bo,ai);Zs._round(),(!V||GQ(y,Zs,oe,V,$))&&Pr.push(Zs)}}xr+=bn}return!je&&!Pr.length&&!me&&(Pr=XQ(y,xr/2,z,V,$,oe,me,!0,xt)),Pr}function ZQ(y,g,z,V,$){for(var oe=[],me=0;me=V&&xr.x>=V)&&(Xt.x>=V?Xt=new l(V,Xt.y+(xr.y-Xt.y)*((V-Xt.x)/(xr.x-Xt.x)))._round():xr.x>=V&&(xr=new l(V,Xt.y+(xr.y-Xt.y)*((V-Xt.x)/(xr.x-Xt.x)))._round()),!(Xt.y>=$&&xr.y>=$)&&(Xt.y>=$?Xt=new l(Xt.x+(xr.x-Xt.x)*(($-Xt.y)/(xr.y-Xt.y)),$)._round():xr.y>=$&&(xr=new l(Xt.x+(xr.x-Xt.x)*(($-Xt.y)/(xr.y-Xt.y)),$)._round()),(!xt||!Xt.equals(xt[xt.length-1]))&&(xt=[Xt],oe.push(xt)),xt.push(xr)))))}return oe}var Hw=Rc;function YQ(y,g,z,V){var $=[],oe=y.image,me=oe.pixelRatio,je=oe.paddedRect.w-2*Hw,xt=oe.paddedRect.h-2*Hw,Rt=y.right-y.left,Xt=y.bottom-y.top,xr=oe.stretchX||[[0,je]],qr=oe.stretchY||[[0,xt]],Pr=function(Df,zf){return Df+zf[1]-zf[0]},ai=xr.reduce(Pr,0),qi=qr.reduce(Pr,0),Wn=je-ai,bn=xt-qi,bo=0,ba=ai,_o=0,Uo=qi,Zs=0,Cl=Wn,Tl=0,hu=bn;if(oe.content&&V){var Kl=oe.content;bo=ZC(xr,0,Kl[0]),_o=ZC(qr,0,Kl[1]),ba=ZC(xr,Kl[0],Kl[2]),Uo=ZC(qr,Kl[1],Kl[3]),Zs=Kl[0]-bo,Tl=Kl[1]-_o,Cl=Kl[2]-Kl[0]-ba,hu=Kl[3]-Kl[1]-Uo}var lu=function(Df,zf,yc,Tc){var $c=YC(Df.stretch-bo,ba,Rt,y.left),ih=KC(Df.fixed-Zs,Cl,Df.stretch,ai),Kh=YC(zf.stretch-_o,Uo,Xt,y.top),_h=KC(zf.fixed-Tl,hu,zf.stretch,qi),Yd=YC(yc.stretch-bo,ba,Rt,y.left),Kd=KC(yc.fixed-Zs,Cl,yc.stretch,ai),Jh=YC(Tc.stretch-_o,Uo,Xt,y.top),dp=KC(Tc.fixed-Tl,hu,Tc.stretch,qi),pp=new l($c,Kh),zh=new l(Yd,Kh),vp=new l(Yd,Jh),gv=new l($c,Jh),vg=new l(ih/me,_h/me),F1=new l(Kd/me,dp/me),B1=g*Math.PI/180;if(B1){var O1=Math.sin(B1),$w=Math.cos(B1),g0=[$w,-O1,O1,$w];pp._matMult(g0),zh._matMult(g0),gv._matMult(g0),vp._matMult(g0)}var rL=Df.stretch+Df.fixed,T9=yc.stretch+yc.fixed,iL=zf.stretch+zf.fixed,S9=Tc.stretch+Tc.fixed,Hv={x:oe.paddedRect.x+Hw+rL,y:oe.paddedRect.y+Hw+iL,w:T9-rL,h:S9-iL},Qw=Cl/me/Rt,nL=hu/me/Xt;return{tl:pp,tr:zh,bl:gv,br:vp,tex:Hv,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:vg,pixelOffsetBR:F1,minFontScaleX:Qw,minFontScaleY:nL,isSDF:z}};if(!V||!oe.stretchX&&!oe.stretchY)$.push(lu({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:je+1},{fixed:0,stretch:xt+1}));else for(var Bu=KQ(xr,Wn,ai),du=KQ(qr,bn,qi),gu=0;gu0&&(ai=Math.max(10,ai),this.circleDiameter=ai)}else{var qi=me.top*je-xt,Wn=me.bottom*je+xt,bn=me.left*je-xt,bo=me.right*je+xt,ba=me.collisionPadding;if(ba&&(bn-=ba[0]*je,qi-=ba[1]*je,bo+=ba[2]*je,Wn+=ba[3]*je),Xt){var _o=new l(bn,qi),Uo=new l(bo,qi),Zs=new l(bn,Wn),Cl=new l(bo,Wn),Tl=Xt*Math.PI/180;_o._rotate(Tl),Uo._rotate(Tl),Zs._rotate(Tl),Cl._rotate(Tl),bn=Math.min(_o.x,Uo.x,Zs.x,Cl.x),bo=Math.max(_o.x,Uo.x,Zs.x,Cl.x),qi=Math.min(_o.y,Uo.y,Zs.y,Cl.y),Wn=Math.max(_o.y,Uo.y,Zs.y,Cl.y)}g.emplaceBack(z.x,z.y,bn,qi,bo,Wn,V,$,oe)}this.boxEndIndex=g.length},Ww=function(g,z){if(g===void 0&&(g=[]),z===void 0&&(z=Het),this.data=g,this.length=this.data.length,this.compare=z,this.length>0)for(var V=(this.length>>1)-1;V>=0;V--)this._down(V)};Ww.prototype.push=function(g){this.data.push(g),this.length++,this._up(this.length-1)},Ww.prototype.pop=function(){if(this.length!==0){var g=this.data[0],z=this.data.pop();return this.length--,this.length>0&&(this.data[0]=z,this._down(0)),g}},Ww.prototype.peek=function(){return this.data[0]},Ww.prototype._up=function(g){for(var z=this,V=z.data,$=z.compare,oe=V[g];g>0;){var me=g-1>>1,je=V[me];if($(oe,je)>=0)break;V[g]=je,g=me}V[g]=oe},Ww.prototype._down=function(g){for(var z=this,V=z.data,$=z.compare,oe=this.length>>1,me=V[g];g=0)break;V[g]=xt,g=je}V[g]=me};function Het(y,g){return yg?1:0}function Wet(y,g,z){g===void 0&&(g=1),z===void 0&&(z=!1);for(var V=1/0,$=1/0,oe=-1/0,me=-1/0,je=y[0],xt=0;xtoe)&&(oe=Rt.x),(!xt||Rt.y>me)&&(me=Rt.y)}var Xt=oe-V,xr=me-$,qr=Math.min(Xt,xr),Pr=qr/2,ai=new Ww([],jet);if(qr===0)return new l(V,$);for(var qi=V;qibn.d||!bn.d)&&(bn=ba,z&&console.log("found best %d after %d probes",Math.round(1e4*ba.d)/1e4,bo)),!(ba.max-bn.d<=g)&&(Pr=ba.h/2,ai.push(new jw(ba.p.x-Pr,ba.p.y-Pr,Pr,y)),ai.push(new jw(ba.p.x+Pr,ba.p.y-Pr,Pr,y)),ai.push(new jw(ba.p.x-Pr,ba.p.y+Pr,Pr,y)),ai.push(new jw(ba.p.x+Pr,ba.p.y+Pr,Pr,y)),bo+=4)}return z&&(console.log("num probes: "+bo),console.log("best distance: "+bn.d)),bn.p}function jet(y,g){return g.max-y.max}function jw(y,g,z,V){this.p=new l(y,g),this.h=z,this.d=Xet(this.p,V),this.max=this.d+this.h*Math.SQRT2}function Xet(y,g){for(var z=!1,V=1/0,$=0;$y.y!=Xt.y>y.y&&y.x<(Xt.x-Rt.x)*(y.y-Rt.y)/(Xt.y-Rt.y)+Rt.x&&(z=!z),V=Math.min(V,fm(y,Rt,Xt))}return(z?1:-1)*Math.sqrt(V)}function Zet(y){for(var g=0,z=0,V=0,$=y[0],oe=0,me=$.length,je=me-1;oe=Tn||g0.y<0||g0.y>=Tn||Jet(y,g0,$w,z,V,$,du,y.layers[0],y.collisionBoxArray,g.index,g.sourceLayerIndex,y.index,bn,Uo,Tl,xt,ba,Zs,hu,Pr,g,oe,Rt,Xt,me)};if(Kl==="line")for(var ff=0,Ru=ZQ(g.geometry,0,0,Tn,Tn);ff1){var Kh=Uet(ih,Cl,z.vertical||ai,V,qi,bo);Kh&&gu(ih,Kh)}}else if(g.type==="Polygon")for(var _h=0,Yd=Dw(g.geometry,0);_hR1&&re(y.layerIds[0]+': Value for "text-size" is >= '+AM+'. Reduce your "text-size".')):Wn.kind==="composite"&&(bn=[Pd*Pr.compositeTextSizes[0].evaluate(me,{},ai),Pd*Pr.compositeTextSizes[1].evaluate(me,{},ai)],(bn[0]>R1||bn[1]>R1)&&re(y.layerIds[0]+': Value for "text-size" is >= '+AM+'. Reduce your "text-size".')),y.addSymbols(y.text,qi,bn,je,oe,me,Rt,g,xt.lineStartIndex,xt.lineLength,qr,ai);for(var bo=0,ba=Xt;boR1&&re(y.layerIds[0]+': Value for "icon-size" is >= '+AM+'. Reduce your "icon-size".')):pp.kind==="composite"&&(zh=[Pd*Uo.compositeIconSizes[0].evaluate(_o,{},Cl),Pd*Uo.compositeIconSizes[1].evaluate(_o,{},Cl)],(zh[0]>R1||zh[1]>R1)&&re(y.layerIds[0]+': Value for "icon-size" is >= '+AM+'. Reduce your "icon-size".')),y.addSymbols(y.icon,Jh,zh,ba,bo,_o,!1,g,Kl.lineStartIndex,Kl.lineLength,-1,Cl),Rf=y.icon.placedSymbolArray.length-1,dp&&(Ru=dp.length*4,y.addSymbols(y.icon,dp,zh,ba,bo,_o,cp.vertical,g,Kl.lineStartIndex,Kl.lineLength,-1,Cl),Df=y.icon.placedSymbolArray.length-1)}for(var vp in V.horizontal){var gv=V.horizontal[vp];if(!lu){yc=K(gv.text);var vg=je.layout.get("text-rotate").evaluate(_o,{},Cl);lu=new JC(xt,g,Rt,Xt,xr,gv,qr,Pr,ai,vg)}var F1=gv.positionedLines.length===1;if(If+=$Q(y,g,gv,oe,je,ai,_o,qi,Kl,V.vertical?cp.horizontal:cp.horizontalOnly,F1?Object.keys(V.horizontal):[vp],zf,Rf,Uo,Cl),F1)break}V.vertical&&(sc+=$Q(y,g,V.vertical,oe,je,ai,_o,qi,Kl,cp.vertical,["vertical"],zf,Df,Uo,Cl));var B1=lu?lu.boxStartIndex:y.collisionBoxArray.length,O1=lu?lu.boxEndIndex:y.collisionBoxArray.length,$w=du?du.boxStartIndex:y.collisionBoxArray.length,g0=du?du.boxEndIndex:y.collisionBoxArray.length,rL=Bu?Bu.boxStartIndex:y.collisionBoxArray.length,T9=Bu?Bu.boxEndIndex:y.collisionBoxArray.length,iL=gu?gu.boxStartIndex:y.collisionBoxArray.length,S9=gu?gu.boxEndIndex:y.collisionBoxArray.length,Hv=-1,Qw=function(MM,vee){return MM&&MM.circleDiameter?Math.max(MM.circleDiameter,vee):vee};Hv=Qw(lu,Hv),Hv=Qw(du,Hv),Hv=Qw(Bu,Hv),Hv=Qw(gu,Hv);var nL=Hv>-1?1:0;nL&&(Hv*=Tl/So),y.glyphOffsetArray.length>=oc.MAX_GLYPHS&&re("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),_o.sortKey!==void 0&&y.addToSortKeyRanges(y.symbolInstances.length,_o.sortKey),y.symbolInstances.emplaceBack(g.x,g.y,zf.right>=0?zf.right:-1,zf.center>=0?zf.center:-1,zf.left>=0?zf.left:-1,zf.vertical||-1,Rf,Df,yc,B1,O1,$w,g0,rL,T9,iL,S9,Rt,If,sc,ff,Ru,nL,0,qr,Tc,$c,Hv)}function $et(y,g,z,V){var $=y.compareText;if(!(g in $))$[g]=[];else for(var oe=$[g],me=oe.length-1;me>=0;me--)if(V.dist(oe[me])0)&&(me.value.kind!=="constant"||me.value.value.length>0),Xt=xt.value.kind!=="constant"||!!xt.value.value||Object.keys(xt.parameters).length>0,xr=oe.get("symbol-sort-key");if(this.features=[],!(!Rt&&!Xt)){for(var qr=z.iconDependencies,Pr=z.glyphDependencies,ai=z.availableImages,qi=new ds(this.zoom),Wn=0,bn=g;Wn=0;for(var sc=0,Rf=hu.sections;sc=0;xt--)me[xt]={x:z[xt].x,y:z[xt].y,tileUnitDistanceFromAnchor:oe},xt>0&&(oe+=z[xt-1].dist(z[xt]));for(var Rt=0;Rt0},oc.prototype.hasIconData=function(){return this.icon.segments.get().length>0},oc.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},oc.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},oc.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},oc.prototype.addIndicesForPlacedSymbol=function(g,z){for(var V=g.placedSymbolArray.get(z),$=V.vertexStartIndex+V.numGlyphs*4,oe=V.vertexStartIndex;oe<$;oe+=4)g.indexArray.emplaceBack(oe,oe+1,oe+2),g.indexArray.emplaceBack(oe+1,oe+2,oe+3)},oc.prototype.getSortedSymbolIndexes=function(g){if(this.sortedAngle===g&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;for(var z=Math.sin(g),V=Math.cos(g),$=[],oe=[],me=[],je=0;je1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(g),this.sortedAngle=g,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var V=0,$=this.symbolInstanceIndexes;V<$.length;V+=1){var oe=$[V],me=this.symbolInstances.get(oe);this.featureSortOrder.push(me.featureIndex),[me.rightJustifiedTextSymbolIndex,me.centerJustifiedTextSymbolIndex,me.leftJustifiedTextSymbolIndex].forEach(function(je,xt,Rt){je>=0&&Rt.indexOf(je)===xt&&z.addIndicesForPlacedSymbol(z.text,je)}),me.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,me.verticalPlacedTextSymbolIndex),me.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,me.placedIconSymbolIndex),me.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,me.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Z("SymbolBucket",oc,{omit:["layers","collisionBoxArray","features","compareText"]}),oc.MAX_GLYPHS=65535,oc.addDynamicAttributes=_9;function rtt(y,g){return g.replace(/{([^{}]+)}/g,function(z,V){return V in y?String(y[V]):""})}var itt=new fi({"symbol-placement":new Be(ji.layout_symbol["symbol-placement"]),"symbol-spacing":new Be(ji.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Be(ji.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new qt(ji.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Be(ji.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Be(ji.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Be(ji.layout_symbol["icon-ignore-placement"]),"icon-optional":new Be(ji.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Be(ji.layout_symbol["icon-rotation-alignment"]),"icon-size":new qt(ji.layout_symbol["icon-size"]),"icon-text-fit":new Be(ji.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Be(ji.layout_symbol["icon-text-fit-padding"]),"icon-image":new qt(ji.layout_symbol["icon-image"]),"icon-rotate":new qt(ji.layout_symbol["icon-rotate"]),"icon-padding":new Be(ji.layout_symbol["icon-padding"]),"icon-keep-upright":new Be(ji.layout_symbol["icon-keep-upright"]),"icon-offset":new qt(ji.layout_symbol["icon-offset"]),"icon-anchor":new qt(ji.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Be(ji.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Be(ji.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Be(ji.layout_symbol["text-rotation-alignment"]),"text-field":new qt(ji.layout_symbol["text-field"]),"text-font":new qt(ji.layout_symbol["text-font"]),"text-size":new qt(ji.layout_symbol["text-size"]),"text-max-width":new qt(ji.layout_symbol["text-max-width"]),"text-line-height":new Be(ji.layout_symbol["text-line-height"]),"text-letter-spacing":new qt(ji.layout_symbol["text-letter-spacing"]),"text-justify":new qt(ji.layout_symbol["text-justify"]),"text-radial-offset":new qt(ji.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Be(ji.layout_symbol["text-variable-anchor"]),"text-anchor":new qt(ji.layout_symbol["text-anchor"]),"text-max-angle":new Be(ji.layout_symbol["text-max-angle"]),"text-writing-mode":new Be(ji.layout_symbol["text-writing-mode"]),"text-rotate":new qt(ji.layout_symbol["text-rotate"]),"text-padding":new Be(ji.layout_symbol["text-padding"]),"text-keep-upright":new Be(ji.layout_symbol["text-keep-upright"]),"text-transform":new qt(ji.layout_symbol["text-transform"]),"text-offset":new qt(ji.layout_symbol["text-offset"]),"text-allow-overlap":new Be(ji.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Be(ji.layout_symbol["text-ignore-placement"]),"text-optional":new Be(ji.layout_symbol["text-optional"])}),ntt=new fi({"icon-opacity":new qt(ji.paint_symbol["icon-opacity"]),"icon-color":new qt(ji.paint_symbol["icon-color"]),"icon-halo-color":new qt(ji.paint_symbol["icon-halo-color"]),"icon-halo-width":new qt(ji.paint_symbol["icon-halo-width"]),"icon-halo-blur":new qt(ji.paint_symbol["icon-halo-blur"]),"icon-translate":new Be(ji.paint_symbol["icon-translate"]),"icon-translate-anchor":new Be(ji.paint_symbol["icon-translate-anchor"]),"text-opacity":new qt(ji.paint_symbol["text-opacity"]),"text-color":new qt(ji.paint_symbol["text-color"],{runtimeType:vn,getOverride:function(y){return y.textColor},hasOverride:function(y){return!!y.textColor}}),"text-halo-color":new qt(ji.paint_symbol["text-halo-color"]),"text-halo-width":new qt(ji.paint_symbol["text-halo-width"]),"text-halo-blur":new qt(ji.paint_symbol["text-halo-blur"]),"text-translate":new Be(ji.paint_symbol["text-translate"]),"text-translate-anchor":new Be(ji.paint_symbol["text-translate-anchor"])}),x9={paint:ntt,layout:itt},Yw=function(g){this.type=g.property.overrides?g.property.overrides.runtimeType:Qo,this.defaultValue=g};Yw.prototype.evaluate=function(g){if(g.formattedSection){var z=this.defaultValue.property.overrides;if(z&&z.hasOverride(g.formattedSection))return z.getOverride(g.formattedSection)}return g.feature&&g.featureState?this.defaultValue.evaluate(g.feature,g.featureState):this.defaultValue.property.specification.default},Yw.prototype.eachChild=function(g){if(!this.defaultValue.isConstant()){var z=this.defaultValue.value;g(z._styleExpression.expression)}},Yw.prototype.outputDefined=function(){return!1},Yw.prototype.serialize=function(){return null},Z("FormatSectionOverride",Yw,{omit:["defaultValue"]});var att=function(y){function g(z){y.call(this,z,x9)}return y&&(g.__proto__=y),g.prototype=Object.create(y&&y.prototype),g.prototype.constructor=g,g.prototype.recalculate=function(V,$){if(y.prototype.recalculate.call(this,V,$),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var oe=this.layout.get("text-writing-mode");if(oe){for(var me=[],je=0,xt=oe;je",targetMapId:$,sourceMapId:me.mapId})}}},Kw.prototype.receive=function(g){var z=g.data,V=z.id;if(V&&!(z.targetMapId&&this.mapId!==z.targetMapId))if(z.type===""){delete this.tasks[V];var $=this.cancelCallbacks[V];delete this.cancelCallbacks[V],$&&$()}else Le()||z.mustQueue?(this.tasks[V]=z,this.taskQueue.push(V),this.invoker.trigger()):this.processTask(V,z)},Kw.prototype.process=function(){if(this.taskQueue.length){var g=this.taskQueue.shift(),z=this.tasks[g];delete this.tasks[g],this.taskQueue.length&&this.invoker.trigger(),z&&this.processTask(g,z)}},Kw.prototype.processTask=function(g,z){var V=this;if(z.type===""){var $=this.callbacks[g];delete this.callbacks[g],$&&(z.error?$(ot(z.error)):$(null,ot(z.data)))}else{var oe=!1,me=ke(this.globalScope)?void 0:[],je=z.hasCallback?function(qr,Pr){oe=!0,delete V.cancelCallbacks[g],V.target.postMessage({id:g,type:"",sourceMapId:V.mapId,error:qr?Qe(qr):null,data:Qe(Pr,me)},me)}:function(qr){oe=!0},xt=null,Rt=ot(z.data);if(this.parent[z.type])xt=this.parent[z.type](z.sourceMapId,Rt,je);else if(this.parent.getWorkerSource){var Xt=z.type.split("."),xr=this.parent.getWorkerSource(z.sourceMapId,Xt[0],Rt.source);xt=xr[Xt[1]](Rt,je)}else je(new Error("Could not find function "+z.type));!oe&&xt&&xt.cancel&&(this.cancelCallbacks[g]=xt.cancel)}},Kw.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function mtt(y,g,z){g=Math.pow(2,z)-g-1;var V=nee(y*256,g*256,z),$=nee((y+1)*256,(g+1)*256,z);return V[0]+","+V[1]+","+$[0]+","+$[1]}function nee(y,g,z){var V=2*Math.PI*6378137/256/Math.pow(2,z),$=y*V-2*Math.PI*6378137/2,oe=g*V-2*Math.PI*6378137/2;return[$,oe]}var yh=function(g,z){g&&(z?this.setSouthWest(g).setNorthEast(z):g.length===4?this.setSouthWest([g[0],g[1]]).setNorthEast([g[2],g[3]]):this.setSouthWest(g[0]).setNorthEast(g[1]))};yh.prototype.setNorthEast=function(g){return this._ne=g instanceof Dc?new Dc(g.lng,g.lat):Dc.convert(g),this},yh.prototype.setSouthWest=function(g){return this._sw=g instanceof Dc?new Dc(g.lng,g.lat):Dc.convert(g),this},yh.prototype.extend=function(g){var z=this._sw,V=this._ne,$,oe;if(g instanceof Dc)$=g,oe=g;else if(g instanceof yh){if($=g._sw,oe=g._ne,!$||!oe)return this}else{if(Array.isArray(g))if(g.length===4||g.every(Array.isArray)){var me=g;return this.extend(yh.convert(me))}else{var je=g;return this.extend(Dc.convert(je))}return this}return!z&&!V?(this._sw=new Dc($.lng,$.lat),this._ne=new Dc(oe.lng,oe.lat)):(z.lng=Math.min($.lng,z.lng),z.lat=Math.min($.lat,z.lat),V.lng=Math.max(oe.lng,V.lng),V.lat=Math.max(oe.lat,V.lat)),this},yh.prototype.getCenter=function(){return new Dc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},yh.prototype.getSouthWest=function(){return this._sw},yh.prototype.getNorthEast=function(){return this._ne},yh.prototype.getNorthWest=function(){return new Dc(this.getWest(),this.getNorth())},yh.prototype.getSouthEast=function(){return new Dc(this.getEast(),this.getSouth())},yh.prototype.getWest=function(){return this._sw.lng},yh.prototype.getSouth=function(){return this._sw.lat},yh.prototype.getEast=function(){return this._ne.lng},yh.prototype.getNorth=function(){return this._ne.lat},yh.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},yh.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},yh.prototype.isEmpty=function(){return!(this._sw&&this._ne)},yh.prototype.contains=function(g){var z=Dc.convert(g),V=z.lng,$=z.lat,oe=this._sw.lat<=$&&$<=this._ne.lat,me=this._sw.lng<=V&&V<=this._ne.lng;return this._sw.lng>this._ne.lng&&(me=this._sw.lng>=V&&V>=this._ne.lng),oe&&me},yh.convert=function(g){return!g||g instanceof yh?g:new yh(g)};var aee=63710088e-1,Dc=function(g,z){if(isNaN(g)||isNaN(z))throw new Error("Invalid LngLat object: ("+g+", "+z+")");if(this.lng=+g,this.lat=+z,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Dc.prototype.wrap=function(){return new Dc(k(this.lng,-180,180),this.lat)},Dc.prototype.toArray=function(){return[this.lng,this.lat]},Dc.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Dc.prototype.distanceTo=function(g){var z=Math.PI/180,V=this.lat*z,$=g.lat*z,oe=Math.sin(V)*Math.sin($)+Math.cos(V)*Math.cos($)*Math.cos((g.lng-this.lng)*z),me=aee*Math.acos(Math.min(oe,1));return me},Dc.prototype.toBounds=function(g){g===void 0&&(g=0);var z=40075017,V=360*g/z,$=V/Math.cos(Math.PI/180*this.lat);return new yh(new Dc(this.lng-$,this.lat-V),new Dc(this.lng+$,this.lat+V))},Dc.convert=function(g){if(g instanceof Dc)return g;if(Array.isArray(g)&&(g.length===2||g.length===3))return new Dc(Number(g[0]),Number(g[1]));if(!Array.isArray(g)&&typeof g=="object"&&g!==null)return new Dc(Number("lng"in g?g.lng:g.lon),Number(g.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var oee=2*Math.PI*aee;function see(y){return oee*Math.cos(y*Math.PI/180)}function lee(y){return(180+y)/360}function uee(y){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+y*Math.PI/360)))/360}function fee(y,g){return y/see(g)}function ytt(y){return y*360-180}function w9(y){var g=180-y*360;return 360/Math.PI*Math.atan(Math.exp(g*Math.PI/180))-90}function gtt(y,g){return y*see(w9(g))}function _tt(y){return 1/Math.cos(y*Math.PI/180)}var nb=function(g,z,V){V===void 0&&(V=0),this.x=+g,this.y=+z,this.z=+V};nb.fromLngLat=function(g,z){z===void 0&&(z=0);var V=Dc.convert(g);return new nb(lee(V.lng),uee(V.lat),fee(z,V.lat))},nb.prototype.toLngLat=function(){return new Dc(ytt(this.x),w9(this.y))},nb.prototype.toAltitude=function(){return gtt(this.z,this.y)},nb.prototype.meterInMercatorCoordinateUnits=function(){return 1/oee*_tt(w9(this.y))};var ab=function(g,z,V){this.z=g,this.x=z,this.y=V,this.key=SM(0,g,g,z,V)};ab.prototype.equals=function(g){return this.z===g.z&&this.x===g.x&&this.y===g.y},ab.prototype.url=function(g,z){var V=mtt(this.x,this.y,this.z),$=xtt(this.z,this.x,this.y);return g[(this.x+this.y)%g.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(z==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",$).replace("{bbox-epsg-3857}",V)},ab.prototype.getTilePoint=function(g){var z=Math.pow(2,this.z);return new l((g.x*z-this.x)*Tn,(g.y*z-this.y)*Tn)},ab.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var cee=function(g,z){this.wrap=g,this.canonical=z,this.key=SM(g,z.z,z.z,z.x,z.y)},gh=function(g,z,V,$,oe){this.overscaledZ=g,this.wrap=z,this.canonical=new ab(V,+$,+oe),this.key=SM(z,g,V,$,oe)};gh.prototype.equals=function(g){return this.overscaledZ===g.overscaledZ&&this.wrap===g.wrap&&this.canonical.equals(g.canonical)},gh.prototype.scaledTo=function(g){var z=this.canonical.z-g;return g>this.canonical.z?new gh(g,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new gh(g,this.wrap,g,this.canonical.x>>z,this.canonical.y>>z)},gh.prototype.calculateScaledKey=function(g,z){var V=this.canonical.z-g;return g>this.canonical.z?SM(this.wrap*+z,g,this.canonical.z,this.canonical.x,this.canonical.y):SM(this.wrap*+z,g,g,this.canonical.x>>V,this.canonical.y>>V)},gh.prototype.isChildOf=function(g){if(g.wrap!==this.wrap)return!1;var z=this.canonical.z-g.canonical.z;return g.overscaledZ===0||g.overscaledZ>z&&g.canonical.y===this.canonical.y>>z},gh.prototype.children=function(g){if(this.overscaledZ>=g)return[new gh(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var z=this.canonical.z+1,V=this.canonical.x*2,$=this.canonical.y*2;return[new gh(z,this.wrap,z,V,$),new gh(z,this.wrap,z,V+1,$),new gh(z,this.wrap,z,V,$+1),new gh(z,this.wrap,z,V+1,$+1)]},gh.prototype.isLessThan=function(g){return this.wrapg.wrap?!1:this.overscaledZg.overscaledZ?!1:this.canonical.xg.canonical.x?!1:this.canonical.y0;oe--)$=1<=this.dim+1||z<-1||z>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(z+1)*this.stride+(g+1)},dg.prototype._unpackMapbox=function(g,z,V){return(g*256*256+z*256+V)/10-1e4},dg.prototype._unpackTerrarium=function(g,z,V){return g*256+z+V/256-32768},dg.prototype.getPixels=function(){return new kh({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},dg.prototype.backfillBorder=function(g,z,V){if(this.dim!==g.dim)throw new Error("dem dimension mismatch");var $=z*this.dim,oe=z*this.dim+this.dim,me=V*this.dim,je=V*this.dim+this.dim;switch(z){case-1:$=oe-1;break;case 1:oe=$+1;break}switch(V){case-1:me=je-1;break;case 1:je=me+1;break}for(var xt=-z*this.dim,Rt=-V*this.dim,Xt=me;Xt=0&&xr[3]>=0&&xt.insert(je,xr[0],xr[1],xr[2],xr[3])}},pg.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new vm.VectorTile(new su(this.rawTileData)).layers,this.sourceLayerCoder=new eL(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},pg.prototype.query=function(g,z,V,$){var oe=this;this.loadVTLayers();for(var me=g.params||{},je=Tn/g.tileSize/g.scale,xt=Se(me.filter),Rt=g.queryGeometry,Xt=g.queryPadding*je,xr=dee(Rt),qr=this.grid.query(xr.minX-Xt,xr.minY-Xt,xr.maxX+Xt,xr.maxY+Xt),Pr=dee(g.cameraQueryGeometry),ai=this.grid3D.query(Pr.minX-Xt,Pr.minY-Xt,Pr.maxX+Xt,Pr.maxY+Xt,function(Zs,Cl,Tl,hu){return pv(g.cameraQueryGeometry,Zs-Xt,Cl-Xt,Tl+Xt,hu+Xt)}),qi=0,Wn=ai;qi$)oe=!1;else if(!z)oe=!0;else if(this.expirationTime=xn.maxzoom)&&xn.visibility!=="none"){h(Ri,this.zoom,Wt);var xi=jr[xn.id]=xn.createBucket({index:Gr.bucketLayerIDs.length,layers:Ri,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:en,sourceID:this.source});xi.populate(Yr,yi,this.tileID.canonical),Gr.bucketLayerIDs.push(Ri.map(function(ni){return ni.id}))}}}}var Xr,ft,tr,pr,gr=i.mapObject(yi.glyphDependencies,function(ni){return Object.keys(ni).map(Number)});Object.keys(gr).length?_r.send("getGlyphs",{uid:this.uid,stacks:gr},function(ni,Zi){Xr||(Xr=ni,ft=Zi,Qi.call(Ur))}):ft={};var Zr=Object.keys(yi.iconDependencies);Zr.length?_r.send("getImages",{icons:Zr,source:this.source,tileID:this.tileID,type:"icons"},function(ni,Zi){Xr||(Xr=ni,tr=Zi,Qi.call(Ur))}):tr={};var Ai=Object.keys(yi.patternDependencies);Ai.length?_r.send("getImages",{icons:Ai,source:this.source,tileID:this.tileID,type:"patterns"},function(ni,Zi){Xr||(Xr=ni,pr=Zi,Qi.call(Ur))}):pr={},Qi.call(this);function Qi(){if(Xr)return Lr(Xr);if(ft&&tr&&pr){var ni=new f(ft),Zi=new i.ImageAtlas(tr,pr);for(var aa in jr){var Mn=jr[aa];Mn instanceof i.SymbolBucket?(h(Mn.layers,this.zoom,Wt),i.performSymbolLayout(Mn,ft,ni.positions,tr,Zi.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Mn.hasPattern&&(Mn instanceof i.LineBucket||Mn instanceof i.FillBucket||Mn instanceof i.FillExtrusionBucket)&&(h(Mn.layers,this.zoom,Wt),Mn.addFeatures(yi,this.tileID.canonical,Zi.patternPositions))}this.status="done",Lr(null,{buckets:i.values(jr).filter(function(Un){return!Un.isEmpty()}),featureIndex:Gr,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ni.image,imageAtlas:Zi,glyphMap:this.returnDependencies?ft:null,iconMap:this.returnDependencies?tr:null,glyphPositions:this.returnDependencies?ni.positions:null})}}};function h(Bt,yt,Vt){for(var Wt=new i.EvaluationParameters(yt),_r=0,Lr=Bt;_r=0!=!!yt&&Bt.reverse()}var L=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,_=function(yt){this._feature=yt,this.extent=i.EXTENT,this.type=yt.type,this.properties=yt.tags,"id"in yt&&!isNaN(yt.id)&&(this.id=parseInt(yt.id,10))};_.prototype.loadGeometry=function(){if(this._feature.type===1){for(var yt=[],Vt=0,Wt=this._feature.geometry;Vt>31}function Le(Bt,yt){for(var Vt=Bt.loadGeometry(),Wt=Bt.type,_r=0,Lr=0,Ur=Vt.length,Ir=0;Ir>1;ke(Bt,yt,Ur,Wt,_r,Lr%2),te(Bt,yt,Vt,Wt,Ur-1,Lr+1),te(Bt,yt,Vt,Ur+1,_r,Lr+1)}}function ke(Bt,yt,Vt,Wt,_r,Lr){for(;_r>Wt;){if(_r-Wt>600){var Ur=_r-Wt+1,Ir=Vt-Wt+1,Gr=Math.log(Ur),jr=.5*Math.exp(2*Gr/3),yi=.5*Math.sqrt(Gr*jr*(Ur-jr)/Ur)*(Ir-Ur/2<0?-1:1),Ei=Math.max(Wt,Math.floor(Vt-Ir*jr/Ur+yi)),Vi=Math.min(_r,Math.floor(Vt+(Ur-Ir)*jr/Ur+yi));ke(Bt,yt,Vt,Ei,Vi,Lr)}var ti=yt[2*Vt+Lr],en=Wt,Yr=_r;for(Ee(Bt,yt,Wt,Vt),yt[2*_r+Lr]>ti&&Ee(Bt,yt,Wt,_r);enti;)Yr--}yt[2*Wt+Lr]===ti?Ee(Bt,yt,Wt,Yr):(Yr++,Ee(Bt,yt,Yr,_r)),Yr<=Vt&&(Wt=Yr+1),Vt<=Yr&&(_r=Yr-1)}}function Ee(Bt,yt,Vt,Wt){Me(Bt,Vt,Wt),Me(yt,2*Vt,2*Wt),Me(yt,2*Vt+1,2*Wt+1)}function Me(Bt,yt,Vt){var Wt=Bt[yt];Bt[yt]=Bt[Vt],Bt[Vt]=Wt}function Ne(Bt,yt,Vt,Wt,_r,Lr,Ur){for(var Ir=[0,Bt.length-1,0],Gr=[],jr,yi;Ir.length;){var Ei=Ir.pop(),Vi=Ir.pop(),ti=Ir.pop();if(Vi-ti<=Ur){for(var en=ti;en<=Vi;en++)jr=yt[2*en],yi=yt[2*en+1],jr>=Vt&&jr<=_r&&yi>=Wt&&yi<=Lr&&Gr.push(Bt[en]);continue}var Yr=Math.floor((ti+Vi)/2);jr=yt[2*Yr],yi=yt[2*Yr+1],jr>=Vt&&jr<=_r&&yi>=Wt&&yi<=Lr&&Gr.push(Bt[Yr]);var oi=(Ei+1)%2;(Ei===0?Vt<=jr:Wt<=yi)&&(Ir.push(ti),Ir.push(Yr-1),Ir.push(oi)),(Ei===0?_r>=jr:Lr>=yi)&&(Ir.push(Yr+1),Ir.push(Vi),Ir.push(oi))}return Gr}function Fe(Bt,yt,Vt,Wt,_r,Lr){for(var Ur=[0,Bt.length-1,0],Ir=[],Gr=_r*_r;Ur.length;){var jr=Ur.pop(),yi=Ur.pop(),Ei=Ur.pop();if(yi-Ei<=Lr){for(var Vi=Ei;Vi<=yi;Vi++)ye(yt[2*Vi],yt[2*Vi+1],Vt,Wt)<=Gr&&Ir.push(Bt[Vi]);continue}var ti=Math.floor((Ei+yi)/2),en=yt[2*ti],Yr=yt[2*ti+1];ye(en,Yr,Vt,Wt)<=Gr&&Ir.push(Bt[ti]);var oi=(jr+1)%2;(jr===0?Vt-_r<=en:Wt-_r<=Yr)&&(Ur.push(Ei),Ur.push(ti-1),Ur.push(oi)),(jr===0?Vt+_r>=en:Wt+_r>=Yr)&&(Ur.push(ti+1),Ur.push(yi),Ur.push(oi))}return Ir}function ye(Bt,yt,Vt,Wt){var _r=Bt-Vt,Lr=yt-Wt;return _r*_r+Lr*Lr}var Ve=function(Bt){return Bt[0]},ce=function(Bt){return Bt[1]},Je=function(yt,Vt,Wt,_r,Lr){Vt===void 0&&(Vt=Ve),Wt===void 0&&(Wt=ce),_r===void 0&&(_r=64),Lr===void 0&&(Lr=Float64Array),this.nodeSize=_r,this.points=yt;for(var Ur=yt.length<65536?Uint16Array:Uint32Array,Ir=this.ids=new Ur(yt.length),Gr=this.coords=new Lr(yt.length*2),jr=0;jr=_r;yi--){var Ei=+Date.now();Gr=this._cluster(Gr,yi),this.trees[yi]=new Je(Gr,Ae,at,Ur,Float32Array),Wt&&console.log("z%d: %d clusters in %dms",yi,Gr.length,+Date.now()-Ei)}return Wt&&console.timeEnd("total time"),this},gt.prototype.getClusters=function(yt,Vt){var Wt=((yt[0]+180)%360+360)%360-180,_r=Math.max(-90,Math.min(90,yt[1])),Lr=yt[2]===180?180:((yt[2]+180)%360+360)%360-180,Ur=Math.max(-90,Math.min(90,yt[3]));if(yt[2]-yt[0]>=360)Wt=-180,Lr=180;else if(Wt>Lr){var Ir=this.getClusters([Wt,_r,180,Ur],Vt),Gr=this.getClusters([-180,_r,Lr,Ur],Vt);return Ir.concat(Gr)}for(var jr=this.trees[this._limitZoom(Vt)],yi=jr.range(Tt(Wt),St(Ur),Tt(Lr),St(_r)),Ei=[],Vi=0,ti=yi;ViVt&&(Yr+=rn.numPoints||1)}if(Yr>=Gr){for(var Fi=Ei.x*en,Ri=Ei.y*en,xn=Ir&&en>1?this._map(Ei,!0):null,xi=(yi<<5)+(Vt+1)+this.points.length,Xr=0,ft=ti;Xr1)for(var Zr=0,Ai=ti;Zr>5},gt.prototype._getOriginZoom=function(yt){return(yt-this.points.length)%32},gt.prototype._map=function(yt,Vt){if(yt.numPoints)return Vt?Et({},yt.properties):yt.properties;var Wt=this.points[yt.index].properties,_r=this.options.map(Wt);return Vt&&_r===Wt?Et({},_r):_r};function Nt(Bt,yt,Vt,Wt,_r){return{x:Bt,y:yt,zoom:1/0,id:Vt,parentId:-1,numPoints:Wt,properties:_r}}function it(Bt,yt){var Vt=Bt.geometry.coordinates,Wt=Vt[0],_r=Vt[1];return{x:Tt(Wt),y:St(_r),zoom:1/0,index:yt,parentId:-1}}function Ye(Bt){return{type:"Feature",id:Bt.id,properties:kt(Bt),geometry:{type:"Point",coordinates:[Dt(Bt.x),Zt(Bt.y)]}}}function kt(Bt){var yt=Bt.numPoints,Vt=yt>=1e4?Math.round(yt/1e3)+"k":yt>=1e3?Math.round(yt/100)/10+"k":yt;return Et(Et({},Bt.properties),{cluster:!0,cluster_id:Bt.id,point_count:yt,point_count_abbreviated:Vt})}function Tt(Bt){return Bt/360+.5}function St(Bt){var yt=Math.sin(Bt*Math.PI/180),Vt=.5-.25*Math.log((1+yt)/(1-yt))/Math.PI;return Vt<0?0:Vt>1?1:Vt}function Dt(Bt){return(Bt-.5)*360}function Zt(Bt){var yt=(180-Bt*360)*Math.PI/180;return 360*Math.atan(Math.exp(yt))/Math.PI-90}function Et(Bt,yt){for(var Vt in yt)Bt[Vt]=yt[Vt];return Bt}function Ae(Bt){return Bt.x}function at(Bt){return Bt.y}function wt(Bt,yt,Vt,Wt){for(var _r=Wt,Lr=Vt-yt>>1,Ur=Vt-yt,Ir,Gr=Bt[yt],jr=Bt[yt+1],yi=Bt[Vt],Ei=Bt[Vt+1],Vi=yt+3;Vi_r)Ir=Vi,_r=ti;else if(ti===_r){var en=Math.abs(Vi-Lr);enWt&&(Ir-yt>3&&wt(Bt,yt,Ir,Wt),Bt[Ir+2]=_r,Vt-Ir>3&&wt(Bt,Ir,Vt,Wt))}function vt(Bt,yt,Vt,Wt,_r,Lr){var Ur=_r-Vt,Ir=Lr-Wt;if(Ur!==0||Ir!==0){var Gr=((Bt-Vt)*Ur+(yt-Wt)*Ir)/(Ur*Ur+Ir*Ir);Gr>1?(Vt=_r,Wt=Lr):Gr>0&&(Vt+=Ur*Gr,Wt+=Ir*Gr)}return Ur=Bt-Vt,Ir=yt-Wt,Ur*Ur+Ir*Ir}function st(Bt,yt,Vt,Wt){var _r={id:typeof Bt=="undefined"?null:Bt,type:yt,geometry:Vt,tags:Wt,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return Ue(_r),_r}function Ue(Bt){var yt=Bt.geometry,Vt=Bt.type;if(Vt==="Point"||Vt==="MultiPoint"||Vt==="LineString")rt(Bt,yt);else if(Vt==="Polygon"||Vt==="MultiLineString")for(var Wt=0;Wt0&&(Wt?Ur+=(_r*jr-Gr*Lr)/2:Ur+=Math.sqrt(Math.pow(Gr-_r,2)+Math.pow(jr-Lr,2))),_r=Gr,Lr=jr}var yi=yt.length-3;yt[2]=1,wt(yt,0,yi,Vt),yt[yi+2]=1,yt.size=Math.abs(Ur),yt.start=0,yt.end=yt.size}function yr(Bt,yt,Vt,Wt){for(var _r=0;_r1?1:Vt}function Ie(Bt,yt,Vt,Wt,_r,Lr,Ur,Ir){if(Vt/=yt,Wt/=yt,Lr>=Vt&&Ur=Wt)return null;for(var Gr=[],jr=0;jr=Vt&&en=Wt)continue;var Yr=[];if(Vi==="Point"||Vi==="MultiPoint")xe(Ei,Yr,Vt,Wt,_r);else if(Vi==="LineString")Oe(Ei,Yr,Vt,Wt,_r,!1,Ir.lineMetrics);else if(Vi==="MultiLineString")De(Ei,Yr,Vt,Wt,_r,!1);else if(Vi==="Polygon")De(Ei,Yr,Vt,Wt,_r,!0);else if(Vi==="MultiPolygon")for(var oi=0;oi=Vt&&Ur<=Wt&&(yt.push(Bt[Lr]),yt.push(Bt[Lr+1]),yt.push(Bt[Lr+2]))}}function Oe(Bt,yt,Vt,Wt,_r,Lr,Ur){for(var Ir=Re(Bt),Gr=_r===0?ge:fe,jr=Bt.start,yi,Ei,Vi=0;ViVt&&(Ei=Gr(Ir,ti,en,oi,Bi,Vt),Ur&&(Ir.start=jr+yi*Ei)):an>Wt?rn=Vt&&(Ei=Gr(Ir,ti,en,oi,Bi,Vt),Fi=!0),rn>Wt&&an<=Wt&&(Ei=Gr(Ir,ti,en,oi,Bi,Wt),Fi=!0),!Lr&&Fi&&(Ur&&(Ir.end=jr+yi*Ei),yt.push(Ir),Ir=Re(Bt)),Ur&&(jr+=yi)}var Ri=Bt.length-3;ti=Bt[Ri],en=Bt[Ri+1],Yr=Bt[Ri+2],an=_r===0?ti:en,an>=Vt&&an<=Wt&&ct(Ir,ti,en,Yr),Ri=Ir.length-3,Lr&&Ri>=3&&(Ir[Ri]!==Ir[0]||Ir[Ri+1]!==Ir[1])&&ct(Ir,Ir[0],Ir[1],Ir[2]),Ir.length&&yt.push(Ir)}function Re(Bt){var yt=[];return yt.size=Bt.size,yt.start=Bt.start,yt.end=Bt.end,yt}function De(Bt,yt,Vt,Wt,_r,Lr){for(var Ur=0;UrUr.maxX&&(Ur.maxX=yi),Ei>Ur.maxY&&(Ur.maxY=Ei)}return Ur}function Dr(Bt,yt,Vt,Wt){var _r=yt.geometry,Lr=yt.type,Ur=[];if(Lr==="Point"||Lr==="MultiPoint")for(var Ir=0;Ir<_r.length;Ir+=3)Ur.push(_r[Ir]),Ur.push(_r[Ir+1]),Bt.numPoints++,Bt.numSimplified++;else if(Lr==="LineString")Mr(Ur,_r,Bt,Vt,!1,!1);else if(Lr==="MultiLineString"||Lr==="Polygon")for(Ir=0;Ir<_r.length;Ir++)Mr(Ur,_r[Ir],Bt,Vt,Lr==="Polygon",Ir===0);else if(Lr==="MultiPolygon")for(var Gr=0;Gr<_r.length;Gr++){var jr=_r[Gr];for(Ir=0;Ir0&&yt.size<(_r?Ur:Wt)){Vt.numPoints+=yt.length/3;return}for(var Ir=[],Gr=0;GrUr)&&(Vt.numSimplified++,Ir.push(yt[Gr]),Ir.push(yt[Gr+1])),Vt.numPoints++;_r&&Fr(Ir,Lr),Bt.push(Ir)}function Fr(Bt,yt){for(var Vt=0,Wt=0,_r=Bt.length,Lr=_r-2;Wt<_r;Lr=Wt,Wt+=2)Vt+=(Bt[Wt]-Bt[Lr])*(Bt[Wt+1]+Bt[Lr+1]);if(Vt>0===yt)for(Wt=0,_r=Bt.length;Wt<_r/2;Wt+=2){var Ur=Bt[Wt],Ir=Bt[Wt+1];Bt[Wt]=Bt[_r-2-Wt],Bt[Wt+1]=Bt[_r-1-Wt],Bt[_r-2-Wt]=Ur,Bt[_r-1-Wt]=Ir}}function di(Bt,yt){return new Di(Bt,yt)}function Di(Bt,yt){yt=this.options=Ci(Object.create(this.options),yt);var Vt=yt.debug;if(Vt&&console.time("preprocess data"),yt.maxZoom<0||yt.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(yt.promoteId&&yt.generateId)throw new Error("promoteId and generateId cannot be used together.");var Wt=$e(Bt,yt);this.tiles={},this.tileCoords=[],Vt&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",yt.indexMaxZoom,yt.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),Wt=de(Wt,yt),Wt.length&&this.splitTile(Wt,0,0,0),Vt&&(Wt.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Di.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Di.prototype.splitTile=function(Bt,yt,Vt,Wt,_r,Lr,Ur){for(var Ir=[Bt,yt,Vt,Wt],Gr=this.options,jr=Gr.debug;Ir.length;){Wt=Ir.pop(),Vt=Ir.pop(),yt=Ir.pop(),Bt=Ir.pop();var yi=1<1&&console.time("creation"),Vi=this.tiles[Ei]=Hr(Bt,yt,Vt,Wt,Gr),this.tileCoords.push({z:yt,x:Vt,y:Wt}),jr)){jr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",yt,Vt,Wt,Vi.numFeatures,Vi.numPoints,Vi.numSimplified),console.timeEnd("creation"));var ti="z"+yt;this.stats[ti]=(this.stats[ti]||0)+1,this.total++}if(Vi.source=Bt,_r){if(yt===Gr.maxZoom||yt===_r)continue;var en=1<<_r-yt;if(Vt!==Math.floor(Lr/en)||Wt!==Math.floor(Ur/en))continue}else if(yt===Gr.indexMaxZoom||Vi.numPoints<=Gr.indexMaxPoints)continue;if(Vi.source=null,Bt.length!==0){jr>1&&console.time("clipping");var Yr=.5*Gr.buffer/Gr.extent,oi=.5-Yr,Bi=.5+Yr,an=1+Yr,rn,Fi,Ri,xn,xi,Xr;rn=Fi=Ri=xn=null,xi=Ie(Bt,yi,Vt-Yr,Vt+Bi,0,Vi.minX,Vi.maxX,Gr),Xr=Ie(Bt,yi,Vt+oi,Vt+an,0,Vi.minX,Vi.maxX,Gr),Bt=null,xi&&(rn=Ie(xi,yi,Wt-Yr,Wt+Bi,1,Vi.minY,Vi.maxY,Gr),Fi=Ie(xi,yi,Wt+oi,Wt+an,1,Vi.minY,Vi.maxY,Gr),xi=null),Xr&&(Ri=Ie(Xr,yi,Wt-Yr,Wt+Bi,1,Vi.minY,Vi.maxY,Gr),xn=Ie(Xr,yi,Wt+oi,Wt+an,1,Vi.minY,Vi.maxY,Gr),Xr=null),jr>1&&console.timeEnd("clipping"),Ir.push(rn||[],yt+1,Vt*2,Wt*2),Ir.push(Fi||[],yt+1,Vt*2,Wt*2+1),Ir.push(Ri||[],yt+1,Vt*2+1,Wt*2),Ir.push(xn||[],yt+1,Vt*2+1,Wt*2+1)}}},Di.prototype.getTile=function(Bt,yt,Vt){var Wt=this.options,_r=Wt.extent,Lr=Wt.debug;if(Bt<0||Bt>24)return null;var Ur=1<1&&console.log("drilling down to z%d-%d-%d",Bt,yt,Vt);for(var Gr=Bt,jr=yt,yi=Vt,Ei;!Ei&&Gr>0;)Gr--,jr=Math.floor(jr/2),yi=Math.floor(yi/2),Ei=this.tiles[Ii(Gr,jr,yi)];return!Ei||!Ei.source?null:(Lr>1&&console.log("found parent tile z%d-%d-%d",Gr,jr,yi),Lr>1&&console.time("drilling down"),this.splitTile(Ei.source,Gr,jr,yi,Bt,yt,Vt),Lr>1&&console.timeEnd("drilling down"),this.tiles[Ir]?Pt(this.tiles[Ir],_r):null)};function Ii(Bt,yt,Vt){return((1<=0?0:Y.button},o.remove=function(Y){Y.parentNode&&Y.parentNode.removeChild(Y)};function x(Y,R,J){var O,K,_e,ne=i.browser.devicePixelRatio>1?"@2x":"",Pe=i.getJSON(R.transformRequest(R.normalizeSpriteURL(Y,ne,".json"),i.ResourceType.SpriteJSON),function(dr,Er){Pe=null,_e||(_e=dr,O=Er,Ct())}),Ze=i.getImage(R.transformRequest(R.normalizeSpriteURL(Y,ne,".png"),i.ResourceType.SpriteImage),function(dr,Er){Ze=null,_e||(_e=dr,K=Er,Ct())});function Ct(){if(_e)J(_e);else if(O&&K){var dr=i.browser.getImageData(K),Er={};for(var lr in O){var Ke=O[lr],ht=Ke.width,bt=Ke.height,Kt=Ke.x,sr=Ke.y,Qt=Ke.sdf,ur=Ke.pixelRatio,er=Ke.stretchX,Ot=Ke.stretchY,Jt=Ke.content,Lt=new i.RGBAImage({width:ht,height:bt});i.RGBAImage.copy(dr,Lt,{x:Kt,y:sr},{x:0,y:0},{width:ht,height:bt}),Er[lr]={data:Lt,pixelRatio:ur,sdf:Qt,stretchX:er,stretchY:Ot,content:Jt}}J(null,Er)}}return{cancel:function(){Pe&&(Pe.cancel(),Pe=null),Ze&&(Ze.cancel(),Ze=null)}}}function b(Y){var R=Y.userImage;if(R&&R.render){var J=R.render();if(J)return Y.data.replace(new Uint8Array(R.data.buffer)),!0}return!1}var v=1,k=function(Y){function R(){Y.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.isLoaded=function(){return this.loaded},R.prototype.setLoaded=function(O){if(this.loaded!==O&&(this.loaded=O,O)){for(var K=0,_e=this.requestors;K<_e.length;K+=1){var ne=_e[K],Pe=ne.ids,Ze=ne.callback;this._notify(Pe,Ze)}this.requestors=[]}},R.prototype.getImage=function(O){return this.images[O]},R.prototype.addImage=function(O,K){this._validate(O,K)&&(this.images[O]=K)},R.prototype._validate=function(O,K){var _e=!0;return this._validateStretch(K.stretchX,K.data&&K.data.width)||(this.fire(new i.ErrorEvent(new Error('Image "'+O+'" has invalid "stretchX" value'))),_e=!1),this._validateStretch(K.stretchY,K.data&&K.data.height)||(this.fire(new i.ErrorEvent(new Error('Image "'+O+'" has invalid "stretchY" value'))),_e=!1),this._validateContent(K.content,K)||(this.fire(new i.ErrorEvent(new Error('Image "'+O+'" has invalid "content" value'))),_e=!1),_e},R.prototype._validateStretch=function(O,K){if(!O)return!0;for(var _e=0,ne=0,Pe=O;ne=0?1.2:1))}C.prototype.draw=function(Y){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(Y,this.buffer,this.middle);for(var R=this.ctx.getImageData(0,0,this.size,this.size),J=new Uint8ClampedArray(this.size*this.size),O=0;O65535){dr(new Error("glyphs > 65535 not supported"));return}if(Ke.ranges[bt]){dr(null,{stack:Er,id:lr,glyph:ht});return}var Kt=Ke.requests[bt];Kt||(Kt=Ke.requests[bt]=[],P.loadGlyphRange(Er,bt,O.url,O.requestManager,function(sr,Qt){if(Qt){for(var ur in Qt)O._doesCharSupportLocalGlyph(+ur)||(Ke.glyphs[+ur]=Qt[+ur]);Ke.ranges[bt]=!0}for(var er=0,Ot=Kt;er1&&(Ct=R[++Ze]);var Er=Math.abs(dr-Ct.left),lr=Math.abs(dr-Ct.right),Ke=Math.min(Er,lr),ht=void 0,bt=_e/O*(K+1);if(Ct.isDash){var Kt=K-Math.abs(bt);ht=Math.sqrt(Ke*Ke+Kt*Kt)}else ht=K-Math.sqrt(Ke*Ke+bt*bt);this.data[Pe+dr]=Math.max(0,Math.min(255,ht+128))}},G.prototype.addRegularDash=function(R){for(var J=R.length-1;J>=0;--J){var O=R[J],K=R[J+1];O.zeroLength?R.splice(J,1):K&&K.isDash===O.isDash&&(K.left=O.left,R.splice(J,1))}var _e=R[0],ne=R[R.length-1];_e.isDash===ne.isDash&&(_e.left=ne.left-this.width,ne.right=_e.right+this.width);for(var Pe=this.width*this.nextRow,Ze=0,Ct=R[Ze],dr=0;dr1&&(Ct=R[++Ze]);var Er=Math.abs(dr-Ct.left),lr=Math.abs(dr-Ct.right),Ke=Math.min(Er,lr),ht=Ct.isDash?Ke:-Ke;this.data[Pe+dr]=Math.max(0,Math.min(255,ht+128))}},G.prototype.addDash=function(R,J){var O=J?7:0,K=2*O+1;if(this.nextRow+K>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var _e=0,ne=0;ne=O.minX&&R.x=O.minY&&R.y0&&(dr[new i.OverscaledTileID(O.overscaledZ,Pe,K.z,ne,K.y-1).key]={backfilled:!1},dr[new i.OverscaledTileID(O.overscaledZ,O.wrap,K.z,K.x,K.y-1).key]={backfilled:!1},dr[new i.OverscaledTileID(O.overscaledZ,Ct,K.z,Ze,K.y-1).key]={backfilled:!1}),K.y+1<_e&&(dr[new i.OverscaledTileID(O.overscaledZ,Pe,K.z,ne,K.y+1).key]={backfilled:!1},dr[new i.OverscaledTileID(O.overscaledZ,O.wrap,K.z,K.x,K.y+1).key]={backfilled:!1},dr[new i.OverscaledTileID(O.overscaledZ,Ct,K.z,Ze,K.y+1).key]={backfilled:!1}),dr},R.prototype.unloadTile=function(O){O.demTexture&&this.map.painter.saveTileTexture(O.demTexture),O.fbo&&(O.fbo.destroy(),delete O.fbo),O.dem&&delete O.dem,delete O.neighboringTiles,O.state="unloaded",O.actor&&O.actor.send("removeDEMTile",{uid:O.uid,source:this.id})},R}(re),be=function(Y){function R(J,O,K,_e){Y.call(this),this.id=J,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=K.getActor(),this.setEventedParent(_e),this._data=O.data,this._options=i.extend({},O),this._collectResourceTiming=O.collectResourceTiming,this._resourceTiming=[],O.maxzoom!==void 0&&(this.maxzoom=O.maxzoom),O.type&&(this.type=O.type),O.attribution&&(this.attribution=O.attribution),this.promoteId=O.promoteId;var ne=i.EXTENT/this.tileSize;this.workerOptions=i.extend({source:this.id,cluster:O.cluster||!1,geojsonVtOptions:{buffer:(O.buffer!==void 0?O.buffer:128)*ne,tolerance:(O.tolerance!==void 0?O.tolerance:.375)*ne,extent:i.EXTENT,maxZoom:this.maxzoom,lineMetrics:O.lineMetrics||!1,generateId:O.generateId||!1},superclusterOptions:{maxZoom:O.clusterMaxZoom!==void 0?Math.min(O.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,minPoints:Math.max(2,O.clusterMinPoints||2),extent:i.EXTENT,radius:(O.clusterRadius||50)*ne,log:!1,generateId:O.generateId||!1},clusterProperties:O.clusterProperties,filter:O.filter},O.workerOptions)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.load=function(){var O=this;this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(K){if(K){O.fire(new i.ErrorEvent(K));return}var _e={dataType:"source",sourceDataType:"metadata"};O._collectResourceTiming&&O._resourceTiming&&O._resourceTiming.length>0&&(_e.resourceTiming=O._resourceTiming,O._resourceTiming=[]),O.fire(new i.Event("data",_e))})},R.prototype.onAdd=function(O){this.map=O,this.load()},R.prototype.setData=function(O){var K=this;return this._data=O,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(_e){if(_e){K.fire(new i.ErrorEvent(_e));return}var ne={dataType:"source",sourceDataType:"content"};K._collectResourceTiming&&K._resourceTiming&&K._resourceTiming.length>0&&(ne.resourceTiming=K._resourceTiming,K._resourceTiming=[]),K.fire(new i.Event("data",ne))}),this},R.prototype.getClusterExpansionZoom=function(O,K){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:O,source:this.id},K),this},R.prototype.getClusterChildren=function(O,K){return this.actor.send("geojson.getClusterChildren",{clusterId:O,source:this.id},K),this},R.prototype.getClusterLeaves=function(O,K,_e,ne){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:O,limit:K,offset:_e},ne),this},R.prototype._updateWorkerData=function(O){var K=this;this._loaded=!1;var _e=i.extend({},this.workerOptions),ne=this._data;typeof ne=="string"?(_e.request=this.map._requestManager.transformRequest(i.browser.resolveURL(ne),i.ResourceType.Source),_e.request.collectResourceTiming=this._collectResourceTiming):_e.data=JSON.stringify(ne),this.actor.send(this.type+".loadData",_e,function(Pe,Ze){K._removed||Ze&&Ze.abandoned||(K._loaded=!0,Ze&&Ze.resourceTiming&&Ze.resourceTiming[K.id]&&(K._resourceTiming=Ze.resourceTiming[K.id].slice(0)),K.actor.send(K.type+".coalesce",{source:_e.source},null),O(Pe))})},R.prototype.loaded=function(){return this._loaded},R.prototype.loadTile=function(O,K){var _e=this,ne=O.actor?"reloadTile":"loadTile";O.actor=this.actor;var Pe={type:this.type,uid:O.uid,tileID:O.tileID,zoom:O.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};O.request=this.actor.send(ne,Pe,function(Ze,Ct){return delete O.request,O.unloadVectorData(),O.aborted?K(null):Ze?K(Ze):(O.loadVectorData(Ct,_e.map.painter,ne==="reloadTile"),K(null))})},R.prototype.abortTile=function(O){O.request&&(O.request.cancel(),delete O.request),O.aborted=!0},R.prototype.unloadTile=function(O){O.unloadVectorData(),this.actor.send("removeTile",{uid:O.uid,type:this.type,source:this.id})},R.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},R.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},R.prototype.hasTransition=function(){return!1},R}(i.Evented),Ce=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Le=function(Y){function R(J,O,K,_e){Y.call(this),this.id=J,this.dispatcher=K,this.coordinates=O.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(_e),this.options=O}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.load=function(O,K){var _e=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(ne,Pe){_e._loaded=!0,ne?_e.fire(new i.ErrorEvent(ne)):Pe&&(_e.image=Pe,O&&(_e.coordinates=O),K&&K(),_e._finishLoading())})},R.prototype.loaded=function(){return this._loaded},R.prototype.updateImage=function(O){var K=this;return!this.image||!O.url?this:(this.options.url=O.url,this.load(O.coordinates,function(){K.texture=null}),this)},R.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},R.prototype.onAdd=function(O){this.map=O,this.load()},R.prototype.setCoordinates=function(O){var K=this;this.coordinates=O;var _e=O.map(i.MercatorCoordinate.fromLngLat);this.tileID=pe(_e),this.minzoom=this.maxzoom=this.tileID.z;var ne=_e.map(function(Pe){return K.tileID.getTilePoint(Pe)._round()});return this._boundsArray=new i.StructArrayLayout4i8,this._boundsArray.emplaceBack(ne[0].x,ne[0].y,0,0),this._boundsArray.emplaceBack(ne[1].x,ne[1].y,i.EXTENT,0),this._boundsArray.emplaceBack(ne[3].x,ne[3].y,0,i.EXTENT),this._boundsArray.emplaceBack(ne[2].x,ne[2].y,i.EXTENT,i.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"content"})),this},R.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var O=this.map.painter.context,K=O.gl;this.boundsBuffer||(this.boundsBuffer=O.createVertexBuffer(this._boundsArray,Ce.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new i.Texture(O,this.image,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var _e in this.tiles){var ne=this.tiles[_e];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},R.prototype.loadTile=function(O,K){this.tileID&&this.tileID.equals(O.tileID.canonical)?(this.tiles[String(O.tileID.wrap)]=O,O.buckets={},K(null)):(O.state="errored",K(null))},R.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},R.prototype.hasTransition=function(){return!1},R}(i.Evented);function pe(Y){for(var R=1/0,J=1/0,O=-1/0,K=-1/0,_e=0,ne=Y;_eK.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+K.start(0)+" and "+K.end(0)+"-second mark."))):this.video.currentTime=O}},R.prototype.getVideo=function(){return this.video},R.prototype.onAdd=function(O){this.map||(this.map=O,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},R.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var O=this.map.painter.context,K=O.gl;this.boundsBuffer||(this.boundsBuffer=O.createVertexBuffer(this._boundsArray,Ce.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE),K.texSubImage2D(K.TEXTURE_2D,0,0,0,K.RGBA,K.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(O,this.video,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var _e in this.tiles){var ne=this.tiles[_e];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},R.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},R.prototype.hasTransition=function(){return this.video&&!this.video.paused},R}(Le),ke=function(Y){function R(J,O,K,_e){Y.call(this,J,O,K,_e),O.coordinates?(!Array.isArray(O.coordinates)||O.coordinates.length!==4||O.coordinates.some(function(ne){return!Array.isArray(ne)||ne.length!==2||ne.some(function(Pe){return typeof Pe!="number"})}))&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "coordinates"'))),O.animate&&typeof O.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'optional "animate" property must be a boolean value'))),O.canvas?typeof O.canvas!="string"&&!(O.canvas instanceof i.window.HTMLCanvasElement)&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "canvas"'))),this.options=O,this.animate=O.animate!==void 0?O.animate:!0}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},R.prototype.getCanvas=function(){return this.canvas},R.prototype.onAdd=function(O){this.map=O,this.load(),this.canvas&&this.animate&&this.play()},R.prototype.onRemove=function(){this.pause()},R.prototype.prepare=function(){var O=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,O=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,O=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var K=this.map.painter.context,_e=K.gl;this.boundsBuffer||(this.boundsBuffer=K.createVertexBuffer(this._boundsArray,Ce.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(O||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(K,this.canvas,_e.RGBA,{premultiply:!0});for(var ne in this.tiles){var Pe=this.tiles[ne];Pe.state!=="loaded"&&(Pe.state="loaded",Pe.texture=this.texture)}}},R.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},R.prototype.hasTransition=function(){return this._playing},R.prototype._hasInvalidDimensions=function(){for(var O=0,K=[this.canvas.width,this.canvas.height];Othis.max){var Pe=this._getAndRemoveByKey(this.order[0]);Pe&&this.onRemove(Pe)}return this},it.prototype.has=function(R){return R.wrapped().key in this.data},it.prototype.getAndRemove=function(R){return this.has(R)?this._getAndRemoveByKey(R.wrapped().key):null},it.prototype._getAndRemoveByKey=function(R){var J=this.data[R].shift();return J.timeout&&clearTimeout(J.timeout),this.data[R].length===0&&delete this.data[R],this.order.splice(this.order.indexOf(R),1),J.value},it.prototype.getByKey=function(R){var J=this.data[R];return J?J[0].value:null},it.prototype.get=function(R){if(!this.has(R))return null;var J=this.data[R.wrapped().key][0];return J.value},it.prototype.remove=function(R,J){if(!this.has(R))return this;var O=R.wrapped().key,K=J===void 0?0:this.data[O].indexOf(J),_e=this.data[O][K];return this.data[O].splice(K,1),_e.timeout&&clearTimeout(_e.timeout),this.data[O].length===0&&delete this.data[O],this.onRemove(_e.value),this.order.splice(this.order.indexOf(O),1),this},it.prototype.setMaxSize=function(R){for(this.max=R;this.order.length>this.max;){var J=this._getAndRemoveByKey(this.order[0]);J&&this.onRemove(J)}return this},it.prototype.filter=function(R){var J=[];for(var O in this.data)for(var K=0,_e=this.data[O];K<_e.length;K+=1){var ne=_e[K];R(ne.value)||J.push(ne)}for(var Pe=0,Ze=J;Pe1||(Math.abs(Er)>1&&(Math.abs(Er+Ke)===1?Er+=Ke:Math.abs(Er-Ke)===1&&(Er-=Ke)),!(!dr.dem||!Ct.dem)&&(Ct.dem.backfillBorder(dr.dem,Er,lr),Ct.neighboringTiles&&Ct.neighboringTiles[ht]&&(Ct.neighboringTiles[ht].backfilled=!0)))}},R.prototype.getTile=function(O){return this.getTileByID(O.key)},R.prototype.getTileByID=function(O){return this._tiles[O]},R.prototype._retainLoadedChildren=function(O,K,_e,ne){for(var Pe in this._tiles){var Ze=this._tiles[Pe];if(!(ne[Pe]||!Ze.hasData()||Ze.tileID.overscaledZ<=K||Ze.tileID.overscaledZ>_e)){for(var Ct=Ze.tileID;Ze&&Ze.tileID.overscaledZ>K+1;){var dr=Ze.tileID.scaledTo(Ze.tileID.overscaledZ-1);Ze=this._tiles[dr.key],Ze&&Ze.hasData()&&(Ct=dr)}for(var Er=Ct;Er.overscaledZ>K;)if(Er=Er.scaledTo(Er.overscaledZ-1),O[Er.key]){ne[Ct.key]=Ct;break}}}},R.prototype.findLoadedParent=function(O,K){if(O.key in this._loadedParentTiles){var _e=this._loadedParentTiles[O.key];return _e&&_e.tileID.overscaledZ>=K?_e:null}for(var ne=O.overscaledZ-1;ne>=K;ne--){var Pe=O.scaledTo(ne),Ze=this._getLoadedTile(Pe);if(Ze)return Ze}},R.prototype._getLoadedTile=function(O){var K=this._tiles[O.key];if(K&&K.hasData())return K;var _e=this._cache.getByKey(O.wrapped().key);return _e},R.prototype.updateCacheSize=function(O){var K=Math.ceil(O.width/this._source.tileSize)+1,_e=Math.ceil(O.height/this._source.tileSize)+1,ne=K*_e,Pe=5,Ze=Math.floor(ne*Pe),Ct=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Ze):Ze;this._cache.setMaxSize(Ct)},R.prototype.handleWrapJump=function(O){var K=this._prevLng===void 0?O:this._prevLng,_e=O-K,ne=_e/360,Pe=Math.round(ne);if(this._prevLng=O,Pe){var Ze={};for(var Ct in this._tiles){var dr=this._tiles[Ct];dr.tileID=dr.tileID.unwrapTo(dr.tileID.wrap+Pe),Ze[dr.tileID.key]=dr}this._tiles=Ze;for(var Er in this._timers)clearTimeout(this._timers[Er]),delete this._timers[Er];for(var lr in this._tiles){var Ke=this._tiles[lr];this._setTileReloadTimer(lr,Ke)}}},R.prototype.update=function(O){var K=this;if(this.transform=O,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(O),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var _e;this.used?this._source.tileID?_e=O.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(ci){return new i.OverscaledTileID(ci.canonical.z,ci.wrap,ci.canonical.z,ci.canonical.x,ci.canonical.y)}):(_e=O.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(_e=_e.filter(function(ci){return K._source.hasTile(ci)}))):_e=[];var ne=O.coveringZoomLevel(this._source),Pe=Math.max(ne-R.maxOverzooming,this._source.minzoom),Ze=Math.max(ne+R.maxUnderzooming,this._source.minzoom),Ct=this._updateRetainedTiles(_e,ne);if(Gr(this._source.type)){for(var dr={},Er={},lr=Object.keys(Ct),Ke=0,ht=lr;Kethis._source.maxzoom){var Qt=Kt.children(this._source.maxzoom)[0],ur=this.getTile(Qt);if(ur&&ur.hasData()){_e[Qt.key]=Qt;continue}}else{var er=Kt.children(this._source.maxzoom);if(_e[er[0].key]&&_e[er[1].key]&&_e[er[2].key]&&_e[er[3].key])continue}for(var Ot=sr.wasRequested(),Jt=Kt.overscaledZ-1;Jt>=Pe;--Jt){var Lt=Kt.scaledTo(Jt);if(ne[Lt.key]||(ne[Lt.key]=!0,sr=this.getTile(Lt),!sr&&Ot&&(sr=this._addTile(Lt)),sr&&(_e[Lt.key]=Lt,Ot=sr.wasRequested(),sr.hasData())))break}}}return _e},R.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var O in this._tiles){for(var K=[],_e=void 0,ne=this._tiles[O].tileID;ne.overscaledZ>0;){if(ne.key in this._loadedParentTiles){_e=this._loadedParentTiles[ne.key];break}K.push(ne.key);var Pe=ne.scaledTo(ne.overscaledZ-1);if(_e=this._getLoadedTile(Pe),_e)break;ne=Pe}for(var Ze=0,Ct=K;Ze0)&&(K.hasData()&&K.state!=="reloading"?this._cache.add(K.tileID,K,K.getExpiryTimeout()):(K.aborted=!0,this._abortTile(K),this._unloadTile(K))))},R.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var O in this._tiles)this._removeTile(O);this._cache.reset()},R.prototype.tilesIn=function(O,K,_e){var ne=this,Pe=[],Ze=this.transform;if(!Ze)return Pe;for(var Ct=_e?Ze.getCameraQueryGeometry(O):O,dr=O.map(function(Jt){return Ze.pointCoordinate(Jt)}),Er=Ct.map(function(Jt){return Ze.pointCoordinate(Jt)}),lr=this.getIds(),Ke=1/0,ht=1/0,bt=-1/0,Kt=-1/0,sr=0,Qt=Er;sr=0&&Cn[1].y+ci>=0){var Ki=dr.map(function(Xa){return Tr.getTilePoint(Xa)}),yn=Er.map(function(Xa){return Tr.getTilePoint(Xa)});Pe.push({tile:Lt,tileID:Tr,queryGeometry:Ki,cameraQueryGeometry:yn,scale:Nr})}}},Ot=0;Ot=i.browser.now())return!0}return!1},R.prototype.setFeatureState=function(O,K,_e){O=O||"_geojsonTileLayer",this._state.updateState(O,K,_e)},R.prototype.removeFeatureState=function(O,K,_e){O=O||"_geojsonTileLayer",this._state.removeFeatureState(O,K,_e)},R.prototype.getFeatureState=function(O,K){return O=O||"_geojsonTileLayer",this._state.getState(O,K)},R.prototype.setDependencies=function(O,K,_e){var ne=this._tiles[O];ne&&ne.setDependencies(K,_e)},R.prototype.reloadTilesForDependencies=function(O,K){for(var _e in this._tiles){var ne=this._tiles[_e];ne.hasDependency(O,K)&&this._reloadTile(_e,"reloading")}this._cache.filter(function(Pe){return!Pe.hasDependency(O,K)})},R}(i.Evented);Ur.maxOverzooming=10,Ur.maxUnderzooming=3;function Ir(Y,R){var J=Math.abs(Y.wrap*2)-+(Y.wrap<0),O=Math.abs(R.wrap*2)-+(R.wrap<0);return Y.overscaledZ-R.overscaledZ||O-J||R.canonical.y-Y.canonical.y||R.canonical.x-Y.canonical.x}function Gr(Y){return Y==="raster"||Y==="image"||Y==="video"}function jr(){return new i.window.Worker(cu.workerUrl)}var yi="mapboxgl_preloaded_worker_pool",Ei=function(){this.active={}};Ei.prototype.acquire=function(R){if(!this.workers)for(this.workers=[];this.workers.length0?(K-ne)/Pe:0;return this.points[_e].mult(1-Ze).add(this.points[J].mult(Ze))};var ni=function(R,J,O){var K=this.boxCells=[],_e=this.circleCells=[];this.xCellCount=Math.ceil(R/O),this.yCellCount=Math.ceil(J/O);for(var ne=0;nethis.width||K<0||J>this.height)return _e?!1:[];var Pe=[];if(R<=0&&J<=0&&this.width<=O&&this.height<=K){if(_e)return!0;for(var Ze=0;Ze0:Pe}},ni.prototype._queryCircle=function(R,J,O,K,_e){var ne=R-O,Pe=R+O,Ze=J-O,Ct=J+O;if(Pe<0||ne>this.width||Ct<0||Ze>this.height)return K?!1:[];var dr=[],Er={hitTest:K,circle:{x:R,y:J,radius:O},seenUids:{box:{},circle:{}}};return this._forEachCell(ne,Ze,Pe,Ct,this._queryCellCircle,dr,Er,_e),K?dr.length>0:dr},ni.prototype.query=function(R,J,O,K,_e){return this._query(R,J,O,K,!1,_e)},ni.prototype.hitTest=function(R,J,O,K,_e){return this._query(R,J,O,K,!0,_e)},ni.prototype.hitTestCircle=function(R,J,O,K){return this._queryCircle(R,J,O,!0,K)},ni.prototype._queryCell=function(R,J,O,K,_e,ne,Pe,Ze){var Ct=Pe.seenUids,dr=this.boxCells[_e];if(dr!==null)for(var Er=this.bboxes,lr=0,Ke=dr;lr=Er[bt+0]&&K>=Er[bt+1]&&(!Ze||Ze(this.boxKeys[ht]))){if(Pe.hitTest)return ne.push(!0),!0;ne.push({key:this.boxKeys[ht],x1:Er[bt],y1:Er[bt+1],x2:Er[bt+2],y2:Er[bt+3]})}}}var Kt=this.circleCells[_e];if(Kt!==null)for(var sr=this.circles,Qt=0,ur=Kt;QtPe*Pe+Ze*Ze},ni.prototype._circleAndRectCollide=function(R,J,O,K,_e,ne,Pe){var Ze=(ne-K)/2,Ct=Math.abs(R-(K+Ze));if(Ct>Ze+O)return!1;var dr=(Pe-_e)/2,Er=Math.abs(J-(_e+dr));if(Er>dr+O)return!1;if(Ct<=Ze||Er<=dr)return!0;var lr=Ct-Ze,Ke=Er-dr;return lr*lr+Ke*Ke<=O*O};function Zi(Y,R,J,O,K){var _e=i.create();return R?(i.scale(_e,_e,[1/K,1/K,1]),J||i.rotateZ(_e,_e,O.angle)):i.multiply(_e,O.labelPlaneMatrix,Y),_e}function aa(Y,R,J,O,K){if(R){var _e=i.clone(Y);return i.scale(_e,_e,[K,K,1]),J||i.rotateZ(_e,_e,-O.angle),_e}else return O.glCoordMatrix}function Mn(Y,R){var J=[Y.x,Y.y,0,1];kn(J,J,R);var O=J[3];return{point:new i.Point(J[0]/O,J[1]/O),signedDistanceFromCamera:O}}function Un(Y,R){return .5+.5*(Y/R)}function Ga(Y,R){var J=Y[0]/Y[3],O=Y[1]/Y[3],K=J>=-R[0]&&J<=R[0]&&O>=-R[1]&&O<=R[1];return K}function ma(Y,R,J,O,K,_e,ne,Pe){var Ze=O?Y.textSizeData:Y.iconSizeData,Ct=i.evaluateSizeForZoom(Ze,J.transform.zoom),dr=[256/J.width*2+1,256/J.height*2+1],Er=O?Y.text.dynamicLayoutVertexArray:Y.icon.dynamicLayoutVertexArray;Er.clear();for(var lr=Y.lineVertexArray,Ke=O?Y.text.placedSymbolArray:Y.icon.placedSymbolArray,ht=J.transform.width/J.transform.height,bt=!1,Kt=0;Kt_e)return{useVertical:!0}}return(Y===i.WritingMode.vertical?R.yJ.x)?{needsFlipping:!0}:null}function so(Y,R,J,O,K,_e,ne,Pe,Ze,Ct,dr,Er,lr,Ke){var ht=R/24,bt=Y.lineOffsetX*ht,Kt=Y.lineOffsetY*ht,sr;if(Y.numGlyphs>1){var Qt=Y.glyphStartIndex+Y.numGlyphs,ur=Y.lineStartIndex,er=Y.lineStartIndex+Y.lineLength,Ot=oa(ht,Pe,bt,Kt,J,dr,Er,Y,Ze,_e,lr);if(!Ot)return{notEnoughRoom:!0};var Jt=Mn(Ot.first.point,ne).point,Lt=Mn(Ot.last.point,ne).point;if(O&&!J){var Tr=ka(Y.writingMode,Jt,Lt,Ke);if(Tr)return Tr}sr=[Ot.first];for(var Nr=Y.glyphStartIndex+1;Nr0?yn.point:Kr(Er,Ki,ci,1,K),ca=ka(Y.writingMode,ci,Xa,Ke);if(ca)return ca}var Tn=Ia(ht*Pe.getoffsetX(Y.glyphStartIndex),bt,Kt,J,dr,Er,Y.segment,Y.lineStartIndex,Y.lineStartIndex+Y.lineLength,Ze,_e,lr);if(!Tn)return{notEnoughRoom:!0};sr=[Tn]}for(var Pn=0,Nn=sr;Pn0?1:-1,ht=0;O&&(Ke*=-1,ht=Math.PI),Ke<0&&(ht+=Math.PI);for(var bt=Ke>0?Pe+ne:Pe+ne+1,Kt=K,sr=K,Qt=0,ur=0,er=Math.abs(lr),Ot=[];Qt+ur<=er;){if(bt+=Ke,bt=Ze)return null;if(sr=Kt,Ot.push(Kt),Kt=Er[bt],Kt===void 0){var Jt=new i.Point(Ct.getx(bt),Ct.gety(bt)),Lt=Mn(Jt,dr);if(Lt.signedDistanceFromCamera>0)Kt=Er[bt]=Lt.point;else{var Tr=bt-Ke,Nr=Qt===0?_e:new i.Point(Ct.getx(Tr),Ct.gety(Tr));Kt=Kr(Nr,Jt,sr,er-Qt+1,dr)}}Qt+=ur,ur=sr.dist(Kt)}var ci=(er-Qt)/ur,Cn=Kt.sub(sr),Ki=Cn.mult(ci)._add(sr);Ki._add(Cn._unit()._perp()._mult(J*Ke));var yn=ht+Math.atan2(Kt.y-sr.y,Kt.x-sr.x);return Ot.push(Ki),{point:Ki,angle:yn,path:Ot}}var Yo=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function fa(Y,R){for(var J=0;J=1;xa--)Nn.push(Tn.path[xa]);for(var Zo=1;Zo0){for(var vu=Nn[0].clone(),zu=Nn[0].clone(),$u=1;$u=yn.x&&zu.x<=Xa.x&&vu.y>=yn.y&&zu.y<=Xa.y?Du=[Nn]:zu.xXa.x||zu.yXa.y?Du=[]:Du=i.clipLine([Nn],yn.x,yn.y,Xa.x,Xa.y)}for(var Uf=0,wd=Du;Uf=this.screenRightBoundary||Kthis.screenBottomBoundary},ys.prototype.isInsideGrid=function(R,J,O,K){return O>=0&&R=0&&J0){var er;return this.prevPlacement&&this.prevPlacement.variableOffsets[lr.crossTileID]&&this.prevPlacement.placements[lr.crossTileID]&&this.prevPlacement.placements[lr.crossTileID].text&&(er=this.prevPlacement.variableOffsets[lr.crossTileID].anchor),this.variableOffsets[lr.crossTileID]={textOffset:Kt,width:O,height:K,anchor:R,textBoxScale:_e,prevAnchor:er},this.markUsedJustification(Ke,R,lr,ht),Ke.allowVerticalPlacement&&(this.markUsedOrientation(Ke,ht,lr),this.placedOrientations[lr.crossTileID]=ht),{shift:sr,placedGlyphBoxes:Qt}}},Po.prototype.placeLayerBucketPart=function(R,J,O){var K=this,_e=R.parameters,ne=_e.bucket,Pe=_e.layout,Ze=_e.posMatrix,Ct=_e.textLabelPlaneMatrix,dr=_e.labelToScreenMatrix,Er=_e.textPixelRatio,lr=_e.holdingForFade,Ke=_e.collisionBoxArray,ht=_e.partiallyEvaluatedTextSize,bt=_e.collisionGroup,Kt=Pe.get("text-optional"),sr=Pe.get("icon-optional"),Qt=Pe.get("text-allow-overlap"),ur=Pe.get("icon-allow-overlap"),er=Pe.get("text-rotation-alignment")==="map",Ot=Pe.get("text-pitch-alignment")==="map",Jt=Pe.get("icon-text-fit")!=="none",Lt=Pe.get("symbol-z-order")==="viewport-y",Tr=Qt&&(ur||!ne.hasIconData()||sr),Nr=ur&&(Qt||!ne.hasTextData()||Kt);!ne.collisionArrays&&Ke&&ne.deserializeCollisionBoxes(Ke);var ci=function(Tn,Pn){if(!J[Tn.crossTileID]){if(lr){K.placements[Tn.crossTileID]=new fo(!1,!1,!1);return}var Nn=!1,xa=!1,Zo=!0,ru=null,yu={box:null,offscreen:null},Du={box:null,offscreen:null},vu=null,zu=null,$u=null,Uf=0,wd=0,Ad=0;Pn.textFeatureIndex?Uf=Pn.textFeatureIndex:Tn.useRuntimeCollisionCircles&&(Uf=Tn.featureIndex),Pn.verticalTextFeatureIndex&&(wd=Pn.verticalTextFeatureIndex);var Td=Pn.textBox;if(Td){var Yp=function(wc){var Wf=i.WritingMode.horizontal;if(ne.allowVerticalPlacement&&!wc&&K.prevPlacement){var Ed=K.prevPlacement.placedOrientations[Tn.crossTileID];Ed&&(K.placedOrientations[Tn.crossTileID]=Ed,Wf=Ed,K.markUsedOrientation(ne,Wf,Tn))}return Wf},fm=function(wc,Wf){if(ne.allowVerticalPlacement&&Tn.numVerticalGlyphVertices>0&&Pn.verticalTextBox)for(var Ed=0,sg=ne.writingModes;Ed0&&(Hd=Hd.filter(function(wc){return wc!==Md.anchor}),Hd.unshift(Md.anchor))}var kp=function(wc,Wf,Ed){for(var sg=wc.x2-wc.x1,T1=wc.y2-wc.y1,ic=Tn.textBoxScale,Nx=Jt&&!ur?Wf:null,ay={box:[],offscreen:!1},Mw=Qt?Hd.length*2:Hd.length,Lp=0;Lp=Hd.length,Ux=K.attemptAnchorPlacement(oy,wc,sg,T1,ic,er,Ot,Er,Ze,bt,Ew,Tn,ne,Ed,Nx);if(Ux&&(ay=Ux.placedGlyphBoxes,ay&&ay.box&&ay.box.length)){Nn=!0,ru=Ux.shift;break}}return ay},Kp=function(){return kp(Td,Pn.iconBox,i.WritingMode.horizontal)},Cp=function(){var wc=Pn.verticalTextBox,Wf=yu&&yu.box&&yu.box.length;return ne.allowVerticalPlacement&&!Wf&&Tn.numVerticalGlyphVertices>0&&wc?kp(wc,Pn.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}};fm(Kp,Cp),yu&&(Nn=yu.box,Zo=yu.offscreen);var ng=Yp(yu&&yu.box);if(!Nn&&K.prevPlacement){var cm=K.prevPlacement.variableOffsets[Tn.crossTileID];cm&&(K.variableOffsets[Tn.crossTileID]=cm,K.markUsedJustification(ne,cm.anchor,Tn,ng))}}else{var dv=function(wc,Wf){var Ed=K.collisionIndex.placeCollisionBox(wc,Qt,Er,Ze,bt.predicate);return Ed&&Ed.box&&Ed.box.length&&(K.markUsedOrientation(ne,Wf,Tn),K.placedOrientations[Tn.crossTileID]=Wf),Ed},Sd=function(){return dv(Td,i.WritingMode.horizontal)},pv=function(){var wc=Pn.verticalTextBox;return ne.allowVerticalPlacement&&Tn.numVerticalGlyphVertices>0&&wc?dv(wc,i.WritingMode.vertical):{box:null,offscreen:null}};fm(Sd,pv),Yp(yu&&yu.box&&yu.box.length)}}if(vu=yu,Nn=vu&&vu.box&&vu.box.length>0,Zo=vu&&vu.offscreen,Tn.useRuntimeCollisionCircles){var vh=ne.text.placedSymbolArray.get(Tn.centerJustifiedTextSymbolIndex),hm=i.evaluateSizeForFeature(ne.textSizeData,ht,vh),ag=Pe.get("text-padding"),jh=Tn.collisionCircleDiameter;zu=K.collisionIndex.placeCollisionCircles(Qt,vh,ne.lineVertexArray,ne.glyphOffsetArray,hm,Ze,Ct,dr,O,Ot,bt.predicate,jh,ag),Nn=Qt||zu.circles.length>0&&!zu.collisionDetected,Zo=Zo&&zu.offscreen}if(Pn.iconFeatureIndex&&(Ad=Pn.iconFeatureIndex),Pn.iconBox){var ry=function(wc){var Wf=Jt&&ru?Co(wc,ru.x,ru.y,er,Ot,K.transform.angle):wc;return K.collisionIndex.placeCollisionBox(Wf,ur,Er,Ze,bt.predicate)};Du&&Du.box&&Du.box.length&&Pn.verticalIconBox?($u=ry(Pn.verticalIconBox),xa=$u.box.length>0):($u=ry(Pn.iconBox),xa=$u.box.length>0),Zo=Zo&&$u.offscreen}var w1=Kt||Tn.numHorizontalGlyphVertices===0&&Tn.numVerticalGlyphVertices===0,A1=sr||Tn.numIconVertices===0;if(!w1&&!A1?xa=Nn=xa&&Nn:A1?w1||(xa=xa&&Nn):Nn=xa&&Nn,Nn&&vu&&vu.box&&(Du&&Du.box&&wd?K.collisionIndex.insertCollisionBox(vu.box,Pe.get("text-ignore-placement"),ne.bucketInstanceId,wd,bt.ID):K.collisionIndex.insertCollisionBox(vu.box,Pe.get("text-ignore-placement"),ne.bucketInstanceId,Uf,bt.ID)),xa&&$u&&K.collisionIndex.insertCollisionBox($u.box,Pe.get("icon-ignore-placement"),ne.bucketInstanceId,Ad,bt.ID),zu&&(Nn&&K.collisionIndex.insertCollisionCircles(zu.circles,Pe.get("text-ignore-placement"),ne.bucketInstanceId,Uf,bt.ID),O)){var og=ne.bucketInstanceId,iy=K.collisionCircleArrays[og];iy===void 0&&(iy=K.collisionCircleArrays[og]=new mn);for(var ny=0;ny=0;--Ki){var yn=Cn[Ki];ci(ne.symbolInstances.get(yn),ne.collisionArrays[yn])}else for(var Xa=R.symbolInstanceStart;Xa=0&&(ne>=0&&dr!==ne?R.text.placedSymbolArray.get(dr).crossTileID=0:R.text.placedSymbolArray.get(dr).crossTileID=O.crossTileID)}},Po.prototype.markUsedOrientation=function(R,J,O){for(var K=J===i.WritingMode.horizontal||J===i.WritingMode.horizontalOnly?J:0,_e=J===i.WritingMode.vertical?J:0,ne=[O.leftJustifiedTextSymbolIndex,O.centerJustifiedTextSymbolIndex,O.rightJustifiedTextSymbolIndex],Pe=0,Ze=ne;Pe0||Ot>0,ci=ur.numIconVertices>0,Cn=K.placedOrientations[ur.crossTileID],Ki=Cn===i.WritingMode.vertical,yn=Cn===i.WritingMode.horizontal||Cn===i.WritingMode.horizontalOnly;if(Nr){var Xa=Qo(Tr.text),ca=Ki?Wi:Xa;ht(R.text,er,ca);var Tn=yn?Wi:Xa;ht(R.text,Ot,Tn);var Pn=Tr.text.isHidden();[ur.rightJustifiedTextSymbolIndex,ur.centerJustifiedTextSymbolIndex,ur.leftJustifiedTextSymbolIndex].forEach(function(Ad){Ad>=0&&(R.text.placedSymbolArray.get(Ad).hidden=Pn||Ki?1:0)}),ur.verticalPlacedTextSymbolIndex>=0&&(R.text.placedSymbolArray.get(ur.verticalPlacedTextSymbolIndex).hidden=Pn||yn?1:0);var Nn=K.variableOffsets[ur.crossTileID];Nn&&K.markUsedJustification(R,Nn.anchor,ur,Cn);var xa=K.placedOrientations[ur.crossTileID];xa&&(K.markUsedJustification(R,"left",ur,xa),K.markUsedOrientation(R,xa,ur))}if(ci){var Zo=Qo(Tr.icon),ru=!(lr&&ur.verticalPlacedIconSymbolIndex&&Ki);if(ur.placedIconSymbolIndex>=0){var yu=ru?Zo:Wi;ht(R.icon,ur.numIconVertices,yu),R.icon.placedSymbolArray.get(ur.placedIconSymbolIndex).hidden=Tr.icon.isHidden()}if(ur.verticalPlacedIconSymbolIndex>=0){var Du=ru?Wi:Zo;ht(R.icon,ur.numVerticalIconVertices,Du),R.icon.placedSymbolArray.get(ur.verticalPlacedIconSymbolIndex).hidden=Tr.icon.isHidden()}}if(R.hasIconCollisionBoxData()||R.hasTextCollisionBoxData()){var vu=R.collisionArrays[Qt];if(vu){var zu=new i.Point(0,0);if(vu.textBox||vu.verticalTextBox){var $u=!0;if(Ct){var Uf=K.variableOffsets[Jt];Uf?(zu=ws(Uf.anchor,Uf.width,Uf.height,Uf.textOffset,Uf.textBoxScale),dr&&zu._rotate(Er?K.transform.angle:-K.transform.angle)):$u=!1}vu.textBox&&ji(R.textCollisionBox.collisionVertexArray,Tr.text.placed,!$u||Ki,zu.x,zu.y),vu.verticalTextBox&&ji(R.textCollisionBox.collisionVertexArray,Tr.text.placed,!$u||yn,zu.x,zu.y)}var wd=!!(!yn&&vu.verticalIconBox);vu.iconBox&&ji(R.iconCollisionBox.collisionVertexArray,Tr.icon.placed,wd,lr?zu.x:0,lr?zu.y:0),vu.verticalIconBox&&ji(R.iconCollisionBox.collisionVertexArray,Tr.icon.placed,!wd,lr?zu.x:0,lr?zu.y:0)}}},Kt=0;KtR},Po.prototype.setStale=function(){this.stale=!0};function ji(Y,R,J,O,K){Y.emplaceBack(R?1:0,J?1:0,O||0,K||0),Y.emplaceBack(R?1:0,J?1:0,O||0,K||0),Y.emplaceBack(R?1:0,J?1:0,O||0,K||0),Y.emplaceBack(R?1:0,J?1:0,O||0,K||0)}var gn=Math.pow(2,25),Ps=Math.pow(2,24),Ha=Math.pow(2,17),Sn=Math.pow(2,16),ao=Math.pow(2,9),Ba=Math.pow(2,8),Ko=Math.pow(2,1);function Qo(Y){if(Y.opacity===0&&!Y.placed)return 0;if(Y.opacity===1&&Y.placed)return 4294967295;var R=Y.placed?1:0,J=Math.floor(Y.opacity*127);return J*gn+R*Ps+J*Ha+R*Sn+J*ao+R*Ba+J*Ko+R}var Wi=0,Sa=function(R){this._sortAcrossTiles=R.layout.get("symbol-z-order")!=="viewport-y"&&R.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Sa.prototype.continuePlacement=function(R,J,O,K,_e){for(var ne=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var Pe=R[this._currentPlacementIndex],Ze=J[Pe],Ct=this.placement.collisionIndex.transform.zoom;if(Ze.type==="symbol"&&(!Ze.minzoom||Ze.minzoom<=Ct)&&(!Ze.maxzoom||Ze.maxzoom>Ct)){this._inProgressLayer||(this._inProgressLayer=new Sa(Ze));var dr=this._inProgressLayer.continuePlacement(O[Ze.source],this.placement,this._showCollisionBoxes,Ze,ne);if(dr)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Qa.prototype.commit=function(R){return this.placement.commit(R),this.placement};var vn=512/i.EXTENT/2,da=function(R,J,O){this.tileID=R,this.indexedSymbolInstances={},this.bucketInstanceId=O;for(var K=0;KR.overscaledZ)for(var Ct in Ze){var dr=Ze[Ct];dr.tileID.isChildOf(R)&&dr.findMatches(J.symbolInstances,R,ne)}else{var Er=R.scaledTo(Number(Pe)),lr=Ze[Er.key];lr&&lr.findMatches(J.symbolInstances,R,ne)}}for(var Ke=0;Ke0)throw new Error("Unimplemented: "+ne.map(function(Pe){return Pe.command}).join(", ")+".");return _e.forEach(function(Pe){Pe.command!=="setTransition"&&K[Pe.command].apply(K,Pe.args)}),this.stylesheet=O,!0},R.prototype.addImage=function(O,K){if(this.getImage(O))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(O,K),this._afterImageUpdated(O)},R.prototype.updateImage=function(O,K){this.imageManager.updateImage(O,K)},R.prototype.getImage=function(O){return this.imageManager.getImage(O)},R.prototype.removeImage=function(O){if(!this.getImage(O))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(O),this._afterImageUpdated(O)},R.prototype._afterImageUpdated=function(O){this._availableImages=this.imageManager.listImages(),this._changedImages[O]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},R.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},R.prototype.addSource=function(O,K,_e){var ne=this;if(_e===void 0&&(_e={}),this._checkLoaded(),this.sourceCaches[O]!==void 0)throw new Error("There is already a source with this ID");if(!K.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(K).join(", ")+".");var Pe=["vector","raster","geojson","video","image"],Ze=Pe.indexOf(K.type)>=0;if(!(Ze&&this._validate(i.validateStyle.source,"sources."+O,K,null,_e))){this.map&&this.map._collectResourceTiming&&(K.collectResourceTiming=!0);var Ct=this.sourceCaches[O]=new Ur(O,K,this.dispatcher);Ct.style=this,Ct.setEventedParent(this,function(){return{isSourceLoaded:ne.loaded(),source:Ct.serialize(),sourceId:O}}),Ct.onAdd(this.map),this._changed=!0}},R.prototype.removeSource=function(O){if(this._checkLoaded(),this.sourceCaches[O]===void 0)throw new Error("There is no source with this ID");for(var K in this._layers)if(this._layers[K].source===O)return this.fire(new i.ErrorEvent(new Error('Source "'+O+'" cannot be removed while layer "'+K+'" is using it.')));var _e=this.sourceCaches[O];delete this.sourceCaches[O],delete this._updatedSources[O],_e.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:O})),_e.setEventedParent(null),_e.clearTiles(),_e.onRemove&&_e.onRemove(this.map),this._changed=!0},R.prototype.setGeoJSONSourceData=function(O,K){this._checkLoaded();var _e=this.sourceCaches[O].getSource();_e.setData(K),this._changed=!0},R.prototype.getSource=function(O){return this.sourceCaches[O]&&this.sourceCaches[O].getSource()},R.prototype.addLayer=function(O,K,_e){_e===void 0&&(_e={}),this._checkLoaded();var ne=O.id;if(this.getLayer(ne)){this.fire(new i.ErrorEvent(new Error('Layer with id "'+ne+'" already exists on this map')));return}var Pe;if(O.type==="custom"){if(ps(this,i.validateCustomStyleLayer(O)))return;Pe=i.createStyleLayer(O)}else{if(typeof O.source=="object"&&(this.addSource(ne,O.source),O=i.clone$1(O),O=i.extend(O,{source:ne})),this._validate(i.validateStyle.layer,"layers."+ne,O,{arrayIndex:-1},_e))return;Pe=i.createStyleLayer(O),this._validateLayer(Pe),Pe.setEventedParent(this,{layer:{id:ne}}),this._serializedLayers[Pe.id]=Pe.serialize()}var Ze=K?this._order.indexOf(K):this._order.length;if(K&&Ze===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}if(this._order.splice(Ze,0,ne),this._layerOrderChanged=!0,this._layers[ne]=Pe,this._removedLayers[ne]&&Pe.source&&Pe.type!=="custom"){var Ct=this._removedLayers[ne];delete this._removedLayers[ne],Ct.type!==Pe.type?this._updatedSources[Pe.source]="clear":(this._updatedSources[Pe.source]="reload",this.sourceCaches[Pe.source].pause())}this._updateLayer(Pe),Pe.onAdd&&Pe.onAdd(this.map)},R.prototype.moveLayer=function(O,K){this._checkLoaded(),this._changed=!0;var _e=this._layers[O];if(!_e){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be moved.")));return}if(O!==K){var ne=this._order.indexOf(O);this._order.splice(ne,1);var Pe=K?this._order.indexOf(K):this._order.length;if(K&&Pe===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}this._order.splice(Pe,0,O),this._layerOrderChanged=!0}},R.prototype.removeLayer=function(O){this._checkLoaded();var K=this._layers[O];if(!K){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be removed.")));return}K.setEventedParent(null);var _e=this._order.indexOf(O);this._order.splice(_e,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[O]=K,delete this._layers[O],delete this._serializedLayers[O],delete this._updatedLayers[O],delete this._updatedPaintProps[O],K.onRemove&&K.onRemove(this.map)},R.prototype.getLayer=function(O){return this._layers[O]},R.prototype.hasLayer=function(O){return O in this._layers},R.prototype.setLayerZoomRange=function(O,K,_e){this._checkLoaded();var ne=this.getLayer(O);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot have zoom extent.")));return}ne.minzoom===K&&ne.maxzoom===_e||(K!=null&&(ne.minzoom=K),_e!=null&&(ne.maxzoom=_e),this._updateLayer(ne))},R.prototype.setFilter=function(O,K,_e){_e===void 0&&(_e={}),this._checkLoaded();var ne=this.getLayer(O);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be filtered.")));return}if(!i.deepEqual(ne.filter,K)){if(K==null){ne.filter=void 0,this._updateLayer(ne);return}this._validate(i.validateStyle.filter,"layers."+ne.id+".filter",K,null,_e)||(ne.filter=i.clone$1(K),this._updateLayer(ne))}},R.prototype.getFilter=function(O){return i.clone$1(this.getLayer(O).filter)},R.prototype.setLayoutProperty=function(O,K,_e,ne){ne===void 0&&(ne={}),this._checkLoaded();var Pe=this.getLayer(O);if(!Pe){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be styled.")));return}i.deepEqual(Pe.getLayoutProperty(K),_e)||(Pe.setLayoutProperty(K,_e,ne),this._updateLayer(Pe))},R.prototype.getLayoutProperty=function(O,K){var _e=this.getLayer(O);if(!_e){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style.")));return}return _e.getLayoutProperty(K)},R.prototype.setPaintProperty=function(O,K,_e,ne){ne===void 0&&(ne={}),this._checkLoaded();var Pe=this.getLayer(O);if(!Pe){this.fire(new i.ErrorEvent(new Error("The layer '"+O+"' does not exist in the map's style and cannot be styled.")));return}if(!i.deepEqual(Pe.getPaintProperty(K),_e)){var Ze=Pe.setPaintProperty(K,_e,ne);Ze&&this._updateLayer(Pe),this._changed=!0,this._updatedPaintProps[O]=!0}},R.prototype.getPaintProperty=function(O,K){return this.getLayer(O).getPaintProperty(K)},R.prototype.setFeatureState=function(O,K){this._checkLoaded();var _e=O.source,ne=O.sourceLayer,Pe=this.sourceCaches[_e];if(Pe===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+_e+"' does not exist in the map's style.")));return}var Ze=Pe.getSource().type;if(Ze==="geojson"&&ne){this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(Ze==="vector"&&!ne){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}O.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),Pe.setFeatureState(ne,O.id,K)},R.prototype.removeFeatureState=function(O,K){this._checkLoaded();var _e=O.source,ne=this.sourceCaches[_e];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+_e+"' does not exist in the map's style.")));return}var Pe=ne.getSource().type,Ze=Pe==="vector"?O.sourceLayer:void 0;if(Pe==="vector"&&!Ze){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(K&&typeof O.id!="string"&&typeof O.id!="number"){this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}ne.removeFeatureState(Ze,O.id,K)},R.prototype.getFeatureState=function(O){this._checkLoaded();var K=O.source,_e=O.sourceLayer,ne=this.sourceCaches[K];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+K+"' does not exist in the map's style.")));return}var Pe=ne.getSource().type;if(Pe==="vector"&&!_e){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return O.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ne.getFeatureState(_e,O.id)},R.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},R.prototype.serialize=function(){return i.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:i.mapObject(this.sourceCaches,function(O){return O.serialize()}),layers:this._serializeLayers(this._order)},function(O){return O!==void 0})},R.prototype._updateLayer=function(O){this._updatedLayers[O.id]=!0,O.source&&!this._updatedSources[O.source]&&this.sourceCaches[O.source].getSource().type!=="raster"&&(this._updatedSources[O.source]="reload",this.sourceCaches[O.source].pause()),this._changed=!0},R.prototype._flattenAndSortRenderedFeatures=function(O){for(var K=this,_e=function(yn){return K._layers[yn].type==="fill-extrusion"},ne={},Pe=[],Ze=this._order.length-1;Ze>=0;Ze--){var Ct=this._order[Ze];if(_e(Ct)){ne[Ct]=Ze;for(var dr=0,Er=O;dr=0;Qt--){var ur=this._order[Qt];if(_e(ur))for(var er=Pe.length-1;er>=0;er--){var Ot=Pe[er].feature;if(ne[Ot.layer.id] 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,as=zo(Ys,qs),Ma=zo(Ns,Oa),Qs=zo(ha,Vs),ho=zo(Ya,_n),gs=zo(Vn,wo),Vo=zo(Ra,Xn),Do=zo(un,$n),Lo=zo(Ka,qn),xs=zo(Eo,Ja),ks=zo(lo,eo),Ea=zo(sa,es),Jn=zo(Na,tn),Oo=zo(Pa,to),rl=zo(yo,Jo),Gs=zo(Ao,Dn),bs=zo(_a,Ws),zs=zo(Ca,Es),$o=zo(Ts,Ho),Aa=zo(Wa,To),os=zo(ts,Wo),_l=zo(qa,ln),Ss=zo(Bo,ko),po=zo(oo,za),go=zo(ea,rs),ss=zo($s,us),qo=zo(Ds,fl);function zo(Y,R){var J=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,O=R.match(/attribute ([\w]+) ([\w]+)/g),K=Y.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ge=R.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ne=ge?ge.concat(K):K,Le={};return Y=Y.replace(J,function(Ze,Ct,dr,Mr,ur){return Le[ur]=!0,Ct==="define"?` -#ifndef HAS_UNIFORM_u_`+ur+` -varying `+dr+" "+Mr+" "+ur+`; +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,as=zo(Ys,qs),Ma=zo(Ns,Oa),Qs=zo(ha,Vs),ho=zo(Ya,_n),gs=zo(Vn,wo),Vo=zo(Ra,Xn),Do=zo(un,$n),Lo=zo(Ka,qn),xs=zo(Eo,Ja),ks=zo(lo,eo),Ea=zo(sa,es),Jn=zo(Na,tn),Oo=zo(Pa,to),rl=zo(yo,Jo),Gs=zo(Ao,Dn),bs=zo(_a,Ws),zs=zo(Ca,Es),$o=zo(Ts,Ho),Aa=zo(Wa,To),os=zo(ts,Wo),_l=zo(qa,ln),Ss=zo(Bo,ko),po=zo(oo,za),go=zo(ea,rs),ss=zo($s,us),qo=zo(Ds,fl);function zo(Y,R){var J=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,O=R.match(/attribute ([\w]+) ([\w]+)/g),K=Y.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),_e=R.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ne=_e?_e.concat(K):K,Pe={};return Y=Y.replace(J,function(Ze,Ct,dr,Er,lr){return Pe[lr]=!0,Ct==="define"?` +#ifndef HAS_UNIFORM_u_`+lr+` +varying `+dr+" "+Er+" "+lr+`; #else -uniform `+dr+" "+Mr+" u_"+ur+`; +uniform `+dr+" "+Er+" u_"+lr+`; #endif `:` -#ifdef HAS_UNIFORM_u_`+ur+` - `+dr+" "+Mr+" "+ur+" = u_"+ur+`; -#endif -`}),R=R.replace(J,function(Ze,Ct,dr,Mr,ur){var Je=Mr==="float"?"vec2":"vec4",ht=ur.match(/color/)?"color":Je;return Le[ur]?Ct==="define"?` -#ifndef HAS_UNIFORM_u_`+ur+` -uniform lowp float u_`+ur+`_t; -attribute `+dr+" "+Je+" a_"+ur+`; -varying `+dr+" "+Mr+" "+ur+`; +#ifdef HAS_UNIFORM_u_`+lr+` + `+dr+" "+Er+" "+lr+" = u_"+lr+`; +#endif +`}),R=R.replace(J,function(Ze,Ct,dr,Er,lr){var Ke=Er==="float"?"vec2":"vec4",ht=lr.match(/color/)?"color":Ke;return Pe[lr]?Ct==="define"?` +#ifndef HAS_UNIFORM_u_`+lr+` +uniform lowp float u_`+lr+`_t; +attribute `+dr+" "+Ke+" a_"+lr+`; +varying `+dr+" "+Er+" "+lr+`; #else -uniform `+dr+" "+Mr+" u_"+ur+`; +uniform `+dr+" "+Er+" u_"+lr+`; #endif `:ht==="vec4"?` -#ifndef HAS_UNIFORM_u_`+ur+` - `+ur+" = a_"+ur+`; +#ifndef HAS_UNIFORM_u_`+lr+` + `+lr+" = a_"+lr+`; #else - `+dr+" "+Mr+" "+ur+" = u_"+ur+`; + `+dr+" "+Er+" "+lr+" = u_"+lr+`; #endif `:` -#ifndef HAS_UNIFORM_u_`+ur+` - `+ur+" = unpack_mix_"+ht+"(a_"+ur+", u_"+ur+`_t); +#ifndef HAS_UNIFORM_u_`+lr+` + `+lr+" = unpack_mix_"+ht+"(a_"+lr+", u_"+lr+`_t); #else - `+dr+" "+Mr+" "+ur+" = u_"+ur+`; + `+dr+" "+Er+" "+lr+" = u_"+lr+`; #endif `:Ct==="define"?` -#ifndef HAS_UNIFORM_u_`+ur+` -uniform lowp float u_`+ur+`_t; -attribute `+dr+" "+Je+" a_"+ur+`; +#ifndef HAS_UNIFORM_u_`+lr+` +uniform lowp float u_`+lr+`_t; +attribute `+dr+" "+Ke+" a_"+lr+`; #else -uniform `+dr+" "+Mr+" u_"+ur+`; +uniform `+dr+" "+Er+" u_"+lr+`; #endif `:ht==="vec4"?` -#ifndef HAS_UNIFORM_u_`+ur+` - `+dr+" "+Mr+" "+ur+" = a_"+ur+`; +#ifndef HAS_UNIFORM_u_`+lr+` + `+dr+" "+Er+" "+lr+" = a_"+lr+`; #else - `+dr+" "+Mr+" "+ur+" = u_"+ur+`; + `+dr+" "+Er+" "+lr+" = u_"+lr+`; #endif `:` -#ifndef HAS_UNIFORM_u_`+ur+` - `+dr+" "+Mr+" "+ur+" = unpack_mix_"+ht+"(a_"+ur+", u_"+ur+`_t); +#ifndef HAS_UNIFORM_u_`+lr+` + `+dr+" "+Er+" "+lr+" = unpack_mix_"+ht+"(a_"+lr+", u_"+lr+`_t); #else - `+dr+" "+Mr+" "+ur+" = u_"+ur+`; + `+dr+" "+Er+" "+lr+" = u_"+lr+`; #endif -`}),{fragmentSource:Y,vertexSource:R,staticAttributes:O,staticUniforms:ne}}var io=Object.freeze({__proto__:null,prelude:as,background:Ma,backgroundPattern:Qs,circle:ho,clippingMask:gs,heatmap:Vo,heatmapTexture:Do,collisionBox:Lo,collisionCircle:xs,debug:ks,fill:Ea,fillOutline:Jn,fillOutlinePattern:Oo,fillPattern:rl,fillExtrusion:Gs,fillExtrusionPattern:bs,hillshadePrepare:zs,hillshade:$o,line:Aa,lineGradient:os,linePattern:_l,lineSDF:Ss,raster:po,symbolIcon:go,symbolSDF:ss,symbolTextAndIcon:qo}),Io=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};Io.prototype.bind=function(R,J,O,K,ge,ne,Le,Ze){this.context=R;for(var Ct=this.boundPaintVertexBuffers.length!==K.length,dr=0;!Ct&&dr>16,Le>>16],u_pixel_coord_lower:[ne&65535,Le&65535]}}function cl(Y,R,J,O){var K=J.imageManager.getPattern(Y.from.toString()),ge=J.imageManager.getPattern(Y.to.toString()),ne=J.imageManager.getPixelSize(),Le=ne.width,Ze=ne.height,Ct=Math.pow(2,O.tileID.overscaledZ),dr=O.tileSize*Math.pow(2,J.transform.tileZoom)/Ct,Mr=dr*(O.tileID.canonical.x+O.tileID.wrap*Ct),ur=dr*O.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:K.tl,u_pattern_br_a:K.br,u_pattern_tl_b:ge.tl,u_pattern_br_b:ge.br,u_texsize:[Le,Ze],u_mix:R.t,u_pattern_size_a:K.displaySize,u_pattern_size_b:ge.displaySize,u_scale_a:R.fromScale,u_scale_b:R.toScale,u_tile_units_to_pixels:1/uo(O,1,J.transform.tileZoom),u_pixel_coord_upper:[Mr>>16,ur>>16],u_pixel_coord_lower:[Mr&65535,ur&65535]}}var el=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_lightpos:new i.Uniform3f(Y,R.u_lightpos),u_lightintensity:new i.Uniform1f(Y,R.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,R.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,R.u_vertical_gradient),u_opacity:new i.Uniform1f(Y,R.u_opacity)}},Hs=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_lightpos:new i.Uniform3f(Y,R.u_lightpos),u_lightintensity:new i.Uniform1f(Y,R.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,R.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,R.u_vertical_gradient),u_height_factor:new i.Uniform1f(Y,R.u_height_factor),u_image:new i.Uniform1i(Y,R.u_image),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,R.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,R.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,R.u_scale),u_fade:new i.Uniform1f(Y,R.u_fade),u_opacity:new i.Uniform1f(Y,R.u_opacity)}},Ro=function(Y,R,J,O){var K=R.style.light,ge=K.properties.get("position"),ne=[ge.x,ge.y,ge.z],Le=i.create$1();K.properties.get("anchor")==="viewport"&&i.fromRotation(Le,-R.transform.angle),i.transformMat3(ne,ne,Le);var Ze=K.properties.get("color");return{u_matrix:Y,u_lightpos:ne,u_lightintensity:K.properties.get("intensity"),u_lightcolor:[Ze.r,Ze.g,Ze.b],u_vertical_gradient:+J,u_opacity:O}},tl=function(Y,R,J,O,K,ge,ne){return i.extend(Ro(Y,R,J,O),fs(ge,R,ne),{u_height_factor:-Math.pow(2,K.overscaledZ)/ne.tileSize/8})},Fs=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix)}},hl=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_image:new i.Uniform1i(Y,R.u_image),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,R.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,R.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,R.u_scale),u_fade:new i.Uniform1f(Y,R.u_fade)}},Fa=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_world:new i.Uniform2f(Y,R.u_world)}},Ms=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_world:new i.Uniform2f(Y,R.u_world),u_image:new i.Uniform1i(Y,R.u_image),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,R.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,R.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,R.u_scale),u_fade:new i.Uniform1f(Y,R.u_fade)}},jo=function(Y){return{u_matrix:Y}},Rs=function(Y,R,J,O){return i.extend(jo(Y),fs(J,R,O))},Is=function(Y,R){return{u_matrix:Y,u_world:R}},Bs=function(Y,R,J,O,K){return i.extend(Rs(Y,R,J,O),{u_world:K})},Tt=function(Y,R){return{u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(Y,R.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(Y,R.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(Y,R.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix)}},Vt=function(Y,R,J,O){var K=Y.transform,ge,ne;if(O.paint.get("circle-pitch-alignment")==="map"){var Le=uo(J,1,K.zoom);ge=!0,ne=[Le,Le]}else ge=!1,ne=K.pixelsToGLUnits;return{u_camera_to_center_distance:K.cameraToCenterDistance,u_scale_with_map:+(O.paint.get("circle-pitch-scale")==="map"),u_matrix:Y.translatePosMatrix(R.posMatrix,J,O.paint.get("circle-translate"),O.paint.get("circle-translate-anchor")),u_pitch_with_map:+ge,u_device_pixel_ratio:i.browser.devicePixelRatio,u_extrude_scale:ne}},wr=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(Y,R.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(Y,R.u_extrude_scale),u_overscale_factor:new i.Uniform1f(Y,R.u_overscale_factor)}},yr=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_inv_matrix:new i.UniformMatrix4f(Y,R.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(Y,R.u_viewport_size)}},Fr=function(Y,R,J){var O=uo(J,1,R.zoom),K=Math.pow(2,R.zoom-J.tileID.overscaledZ),ge=J.tileID.overscaleFactor();return{u_matrix:Y,u_camera_to_center_distance:R.cameraToCenterDistance,u_pixels_to_tile_units:O,u_extrude_scale:[R.pixelsToGLUnits[0]/(O*K),R.pixelsToGLUnits[1]/(O*K)],u_overscale_factor:ge}},gi=function(Y,R,J){return{u_matrix:Y,u_inv_matrix:R,u_camera_to_center_distance:J.cameraToCenterDistance,u_viewport_size:[J.width,J.height]}},Ti=function(Y,R){return{u_color:new i.UniformColor(Y,R.u_color),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_overlay:new i.Uniform1i(Y,R.u_overlay),u_overlay_scale:new i.Uniform1f(Y,R.u_overlay_scale)}},ki=function(Y,R,J){return J===void 0&&(J=1),{u_matrix:Y,u_color:R,u_overlay:0,u_overlay_scale:J}},Ji=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix)}},Fn=function(Y){return{u_matrix:Y}},Pi=function(Y,R){return{u_extrude_scale:new i.Uniform1f(Y,R.u_extrude_scale),u_intensity:new i.Uniform1f(Y,R.u_intensity),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix)}},hi=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_world:new i.Uniform2f(Y,R.u_world),u_image:new i.Uniform1i(Y,R.u_image),u_color_ramp:new i.Uniform1i(Y,R.u_color_ramp),u_opacity:new i.Uniform1f(Y,R.u_opacity)}},Li=function(Y,R,J,O){return{u_matrix:Y,u_extrude_scale:uo(R,1,J),u_intensity:O}},Si=function(Y,R,J,O){var K=i.create();i.ortho(K,0,Y.width,Y.height,0,0,1);var ge=Y.context.gl;return{u_matrix:K,u_world:[ge.drawingBufferWidth,ge.drawingBufferHeight],u_image:J,u_color_ramp:O,u_opacity:R.paint.get("heatmap-opacity")}},Gn=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_image:new i.Uniform1i(Y,R.u_image),u_latrange:new i.Uniform2f(Y,R.u_latrange),u_light:new i.Uniform2f(Y,R.u_light),u_shadow:new i.UniformColor(Y,R.u_shadow),u_highlight:new i.UniformColor(Y,R.u_highlight),u_accent:new i.UniformColor(Y,R.u_accent)}},ta=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_image:new i.Uniform1i(Y,R.u_image),u_dimension:new i.Uniform2f(Y,R.u_dimension),u_zoom:new i.Uniform1f(Y,R.u_zoom),u_unpack:new i.Uniform4f(Y,R.u_unpack)}},ya=function(Y,R,J){var O=J.paint.get("hillshade-shadow-color"),K=J.paint.get("hillshade-highlight-color"),ge=J.paint.get("hillshade-accent-color"),ne=J.paint.get("hillshade-illumination-direction")*(Math.PI/180);J.paint.get("hillshade-illumination-anchor")==="viewport"&&(ne-=Y.transform.angle);var Le=!Y.options.moving;return{u_matrix:Y.transform.calculatePosMatrix(R.tileID.toUnwrapped(),Le),u_image:0,u_latrange:pa(Y,R.tileID),u_light:[J.paint.get("hillshade-exaggeration"),ne],u_shadow:O,u_highlight:K,u_accent:ge}},ia=function(Y,R){var J=R.stride,O=i.create();return i.ortho(O,0,i.EXTENT,-i.EXTENT,0,0,1),i.translate(O,O,[0,-i.EXTENT,0]),{u_matrix:O,u_image:1,u_dimension:[J,J],u_zoom:Y.overscaledZ,u_unpack:R.getUnpackVector()}};function pa(Y,R){var J=Math.pow(2,R.canonical.z),O=R.canonical.y;return[new i.MercatorCoordinate(0,O/J).toLngLat().lat,new i.MercatorCoordinate(0,(O+1)/J).toLngLat().lat]}var va=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_ratio:new i.Uniform1f(Y,R.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,R.u_units_to_pixels)}},zn=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_ratio:new i.Uniform1f(Y,R.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,R.u_units_to_pixels),u_image:new i.Uniform1i(Y,R.u_image),u_image_height:new i.Uniform1f(Y,R.u_image_height)}},is=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_ratio:new i.Uniform1f(Y,R.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_image:new i.Uniform1i(Y,R.u_image),u_units_to_pixels:new i.Uniform2f(Y,R.u_units_to_pixels),u_scale:new i.Uniform3f(Y,R.u_scale),u_fade:new i.Uniform1f(Y,R.u_fade)}},Cs=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_ratio:new i.Uniform1f(Y,R.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,R.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(Y,R.u_patternscale_a),u_patternscale_b:new i.Uniform2f(Y,R.u_patternscale_b),u_sdfgamma:new i.Uniform1f(Y,R.u_sdfgamma),u_image:new i.Uniform1i(Y,R.u_image),u_tex_y_a:new i.Uniform1f(Y,R.u_tex_y_a),u_tex_y_b:new i.Uniform1f(Y,R.u_tex_y_b),u_mix:new i.Uniform1f(Y,R.u_mix)}},Ks=function(Y,R,J){var O=Y.transform;return{u_matrix:eu(Y,R,J),u_ratio:1/uo(R,1,O.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_units_to_pixels:[1/O.pixelsToGLUnits[0],1/O.pixelsToGLUnits[1]]}},dl=function(Y,R,J,O){return i.extend(Ks(Y,R,J),{u_image:0,u_image_height:O})},xl=function(Y,R,J,O){var K=Y.transform,ge=bl(R,K);return{u_matrix:eu(Y,R,J),u_texsize:R.imageAtlasTexture.size,u_ratio:1/uo(R,1,K.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_image:0,u_scale:[ge,O.fromScale,O.toScale],u_fade:O.t,u_units_to_pixels:[1/K.pixelsToGLUnits[0],1/K.pixelsToGLUnits[1]]}},Ol=function(Y,R,J,O,K){var ge=Y.transform,ne=Y.lineAtlas,Le=bl(R,ge),Ze=J.layout.get("line-cap")==="round",Ct=ne.getDash(O.from,Ze),dr=ne.getDash(O.to,Ze),Mr=Ct.width*K.fromScale,ur=dr.width*K.toScale;return i.extend(Ks(Y,R,J),{u_patternscale_a:[Le/Mr,-Ct.height/2],u_patternscale_b:[Le/ur,-dr.height/2],u_sdfgamma:ne.width/(Math.min(Mr,ur)*256*i.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:Ct.y,u_tex_y_b:dr.y,u_mix:K.t})};function bl(Y,R){return 1/uo(Y,1,R.tileZoom)}function eu(Y,R,J){return Y.translatePosMatrix(R.tileID.posMatrix,R,J.paint.get("line-translate"),J.paint.get("line-translate-anchor"))}var Zl=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_tl_parent:new i.Uniform2f(Y,R.u_tl_parent),u_scale_parent:new i.Uniform1f(Y,R.u_scale_parent),u_buffer_scale:new i.Uniform1f(Y,R.u_buffer_scale),u_fade_t:new i.Uniform1f(Y,R.u_fade_t),u_opacity:new i.Uniform1f(Y,R.u_opacity),u_image0:new i.Uniform1i(Y,R.u_image0),u_image1:new i.Uniform1i(Y,R.u_image1),u_brightness_low:new i.Uniform1f(Y,R.u_brightness_low),u_brightness_high:new i.Uniform1f(Y,R.u_brightness_high),u_saturation_factor:new i.Uniform1f(Y,R.u_saturation_factor),u_contrast_factor:new i.Uniform1f(Y,R.u_contrast_factor),u_spin_weights:new i.Uniform3f(Y,R.u_spin_weights)}},Vl=function(Y,R,J,O,K){return{u_matrix:Y,u_tl_parent:R,u_scale_parent:J,u_buffer_scale:1,u_fade_t:O.mix,u_opacity:O.opacity*K.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:K.paint.get("raster-brightness-min"),u_brightness_high:K.paint.get("raster-brightness-max"),u_saturation_factor:Js(K.paint.get("raster-saturation")),u_contrast_factor:ns(K.paint.get("raster-contrast")),u_spin_weights:ja(K.paint.get("raster-hue-rotate"))}};function ja(Y){Y*=Math.PI/180;var R=Math.sin(Y),J=Math.cos(Y);return[(2*J+1)/3,(-Math.sqrt(3)*R-J+1)/3,(Math.sqrt(3)*R-J+1)/3]}function ns(Y){return Y>0?1/(1-Y):1+Y}function Js(Y){return Y>0?1-1/(1.001-Y):-Y}var cs=function(Y,R){return{u_is_size_zoom_constant:new i.Uniform1i(Y,R.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,R.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,R.u_size_t),u_size:new i.Uniform1f(Y,R.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,R.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,R.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,R.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,R.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,R.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,R.u_coord_matrix),u_is_text:new i.Uniform1i(Y,R.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,R.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_texture:new i.Uniform1i(Y,R.u_texture)}},sl=function(Y,R){return{u_is_size_zoom_constant:new i.Uniform1i(Y,R.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,R.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,R.u_size_t),u_size:new i.Uniform1f(Y,R.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,R.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,R.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,R.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,R.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,R.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,R.u_coord_matrix),u_is_text:new i.Uniform1i(Y,R.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,R.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_texture:new i.Uniform1i(Y,R.u_texture),u_gamma_scale:new i.Uniform1f(Y,R.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,R.u_is_halo)}},ll=function(Y,R){return{u_is_size_zoom_constant:new i.Uniform1i(Y,R.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,R.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,R.u_size_t),u_size:new i.Uniform1f(Y,R.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,R.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,R.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,R.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,R.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,R.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,R.u_coord_matrix),u_is_text:new i.Uniform1i(Y,R.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,R.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_texsize_icon:new i.Uniform2f(Y,R.u_texsize_icon),u_texture:new i.Uniform1i(Y,R.u_texture),u_texture_icon:new i.Uniform1i(Y,R.u_texture_icon),u_gamma_scale:new i.Uniform1f(Y,R.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,R.u_is_halo)}},il=function(Y,R,J,O,K,ge,ne,Le,Ze,Ct){var dr=K.transform;return{u_is_size_zoom_constant:+(Y==="constant"||Y==="source"),u_is_size_feature_constant:+(Y==="constant"||Y==="camera"),u_size_t:R?R.uSizeT:0,u_size:R?R.uSize:0,u_camera_to_center_distance:dr.cameraToCenterDistance,u_pitch:dr.pitch/360*2*Math.PI,u_rotate_symbol:+J,u_aspect_ratio:dr.width/dr.height,u_fade_change:K.options.fadeDuration?K.symbolFadeChange:1,u_matrix:ge,u_label_plane_matrix:ne,u_coord_matrix:Le,u_is_text:+Ze,u_pitch_with_map:+O,u_texsize:Ct,u_texture:0}},zl=function(Y,R,J,O,K,ge,ne,Le,Ze,Ct,dr){var Mr=K.transform;return i.extend(il(Y,R,J,O,K,ge,ne,Le,Ze,Ct),{u_gamma_scale:O?Math.cos(Mr._pitch)*Mr.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+dr})},Ml=function(Y,R,J,O,K,ge,ne,Le,Ze,Ct){return i.extend(zl(Y,R,J,O,K,ge,ne,Le,!0,Ze,!0),{u_texsize_icon:Ct,u_texture_icon:1})},Rl=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_opacity:new i.Uniform1f(Y,R.u_opacity),u_color:new i.UniformColor(Y,R.u_color)}},Al=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_opacity:new i.Uniform1f(Y,R.u_opacity),u_image:new i.Uniform1i(Y,R.u_image),u_pattern_tl_a:new i.Uniform2f(Y,R.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(Y,R.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(Y,R.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(Y,R.u_pattern_br_b),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_mix:new i.Uniform1f(Y,R.u_mix),u_pattern_size_a:new i.Uniform2f(Y,R.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(Y,R.u_pattern_size_b),u_scale_a:new i.Uniform1f(Y,R.u_scale_a),u_scale_b:new i.Uniform1f(Y,R.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(Y,R.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,R.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(Y,R.u_tile_units_to_pixels)}},Ll=function(Y,R,J){return{u_matrix:Y,u_opacity:R,u_color:J}},ms=function(Y,R,J,O,K,ge){return i.extend(cl(O,ge,J,K),{u_matrix:Y,u_opacity:R})},Os={fillExtrusion:el,fillExtrusionPattern:Hs,fill:Fs,fillPattern:hl,fillOutline:Fa,fillOutlinePattern:Ms,circle:Tt,collisionBox:wr,collisionCircle:yr,debug:Ti,clippingMask:Ji,heatmap:Pi,heatmapTexture:hi,hillshade:Gn,hillshadePrepare:ta,line:va,lineGradient:zn,linePattern:is,lineSDF:Cs,raster:Zl,symbolIcon:cs,symbolSDF:sl,symbolTextAndIcon:ll,background:Rl,backgroundPattern:Al},Xl;function Gl(Y,R,J,O,K,ge,ne){for(var Le=Y.context,Ze=Le.gl,Ct=Y.useProgram("collisionBox"),dr=[],Mr=0,ur=0,Je=0;Je0){var er=i.create(),Ot=sr;i.mul(er,Kt.placementInvProjMatrix,Y.transform.glCoordMatrix),i.mul(er,er,Kt.placementViewportMatrix),dr.push({circleArray:fr,circleOffset:ur,transform:Ot,invTransform:er}),Mr+=fr.length/4,ur=Mr}Qt&&Ct.draw(Le,Ze.LINES,Ii.disabled,ii.disabled,Y.colorModeForRenderPass(),xr.disabled,Fr(sr,Y.transform,wt),J.id,Qt.layoutVertexBuffer,Qt.indexBuffer,Qt.segments,null,Y.transform.zoom,null,null,Qt.collisionVertexBuffer)}}if(!(!ne||!dr.length)){var Jt=Y.useProgram("collisionCircle"),Lt=new i.StructArrayLayout2f1f2i16;Lt.resize(Mr*4),Lt._trim();for(var Tr=0,qr=0,ci=dr;qr=0&&(ht[Kt.associatedIconIndex]={shiftedAnchor:yn,angle:Xa})}}if(dr){Je.clear();for(var An=Y.icon.placedSymbolArray,Pn=0;Pn0){var ne=i.browser.now(),Le=(ne-Y.timeAdded)/ge,Ze=R?(ne-R.timeAdded)/ge:-1,Ct=J.getSource(),dr=K.coveringZoomLevel({tileSize:Ct.tileSize,roundZoom:Ct.roundZoom}),Mr=!R||Math.abs(R.tileID.overscaledZ-dr)>Math.abs(Y.tileID.overscaledZ-dr),ur=Mr&&Y.refreshedUponExpiration?1:i.clamp(Mr?Le:1-Ze,0,1);return Y.refreshedUponExpiration&&Le>=1&&(Y.refreshedUponExpiration=!1),R?{opacity:1,mix:1-ur}:{opacity:ur,mix:0}}else return{opacity:1,mix:0}}function cr(Y,R,J){var O=J.paint.get("background-color"),K=J.paint.get("background-opacity");if(K!==0){var ge=Y.context,ne=ge.gl,Le=Y.transform,Ze=Le.tileSize,Ct=J.paint.get("background-pattern");if(!Y.isPatternMissing(Ct)){var dr=!Ct&&O.a===1&&K===1&&Y.opaquePassEnabledForLayer()?"opaque":"translucent";if(Y.renderPass===dr){var Mr=ii.disabled,ur=Y.depthModeForSublayer(0,dr==="opaque"?Ii.ReadWrite:Ii.ReadOnly),Je=Y.colorModeForRenderPass(),ht=Y.useProgram(Ct?"backgroundPattern":"background"),wt=Le.coveringTiles({tileSize:Ze});Ct&&(ge.activeTexture.set(ne.TEXTURE0),Y.imageManager.bind(Y.context));for(var Kt=J.getCrossfadeParameters(),sr=0,Qt=wt;sr "+J.overscaledZ);var sr=Kt+" "+Je+"kb";ml(Y,sr),ne.draw(O,K.TRIANGLES,Le,Ze,gt.alphaBlended,xr.disabled,ki(ge,i.Color.transparent,wt),dr,Y.debugBuffer,Y.quadTriangleIndexBuffer,Y.debugSegments)}function ml(Y,R){Y.initDebugOverlayCanvas();var J=Y.debugOverlayCanvas,O=Y.context.gl,K=Y.debugOverlayCanvas.getContext("2d");K.clearRect(0,0,J.width,J.height),K.shadowColor="white",K.shadowBlur=2,K.lineWidth=1.5,K.strokeStyle="white",K.textBaseline="top",K.font="bold 36px Open Sans, sans-serif",K.fillText(R,5,5),K.strokeText(R,5,5),Y.debugOverlayTexture.update(J),Y.debugOverlayTexture.bind(O.LINEAR,O.CLAMP_TO_EDGE)}function au(Y,R,J){var O=Y.context,K=J.implementation;if(Y.renderPass==="offscreen"){var ge=K.prerender;ge&&(Y.setCustomLayerDefaults(),O.setColorMode(Y.colorModeForRenderPass()),ge.call(K,O.gl,Y.transform.customLayerMatrix()),O.setDirty(),Y.setBaseState())}else if(Y.renderPass==="translucent"){Y.setCustomLayerDefaults(),O.setColorMode(Y.colorModeForRenderPass()),O.setStencilMode(ii.disabled);var ne=K.renderingMode==="3d"?new Ii(Y.context.gl.LEQUAL,Ii.ReadWrite,Y.depthRangeFor3D):Y.depthModeForSublayer(0,Ii.ReadOnly);O.setDepthMode(ne),K.render(O.gl,Y.transform.customLayerMatrix()),O.setDirty(),Y.setBaseState(),O.bindFramebuffer.set(null)}}var Sl={symbol:w,circle:yt,heatmap:Dt,line:Vr,fill:he,"fill-extrusion":qe,hillshade:lt,raster:Gt,background:cr,debug:vl,custom:au},Yl=function(R,J){this.context=new Lr(R),this.transform=J,this._tileTextures={},this.setup(),this.numSublayers=Ur.maxUnderzooming+Ur.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new As,this.gpuTimers={}};Yl.prototype.resize=function(R,J){if(this.width=R*i.browser.devicePixelRatio,this.height=J*i.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var O=0,K=this.style._order;O256&&this.clearStencil(),O.setColorMode(gt.disabled),O.setDepthMode(Ii.disabled);var ge=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ne=0,Le=J;ne256&&this.clearStencil();var R=this.nextStencilID++,J=this.context.gl;return new ii({func:J.NOTEQUAL,mask:255},R,255,J.KEEP,J.KEEP,J.REPLACE)},Yl.prototype.stencilModeForClipping=function(R){var J=this.context.gl;return new ii({func:J.EQUAL,mask:255},this._tileClippingMaskIDs[R.key],0,J.KEEP,J.KEEP,J.REPLACE)},Yl.prototype.stencilConfigForOverlap=function(R){var J,O=this.context.gl,K=R.sort(function(Ct,dr){return dr.overscaledZ-Ct.overscaledZ}),ge=K[K.length-1].overscaledZ,ne=K[0].overscaledZ-ge+1;if(ne>1){this.currentStencilSource=void 0,this.nextStencilID+ne>256&&this.clearStencil();for(var Le={},Ze=0;Ze=0;this.currentLayer--){var er=this.style._layers[K[this.currentLayer]],Ot=ge[er.source],Jt=Ze[er.source];this._renderTileClippingMasks(er,Jt),this.renderLayer(this,Ot,er,Jt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?J.pop():null},Yl.prototype.isPatternMissing=function(R){if(!R)return!1;if(!R.from||!R.to)return!0;var J=this.imageManager.getPattern(R.from.toString()),O=this.imageManager.getPattern(R.to.toString());return!J||!O},Yl.prototype.useProgram=function(R,J){this.cache=this.cache||{};var O=""+R+(J?J.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[O]||(this.cache[O]=new vs(this.context,R,io[R],J,Os[R],this._showOverdrawInspector)),this.cache[O]},Yl.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},Yl.prototype.setBaseState=function(){var R=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(R.FUNC_ADD)},Yl.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var R=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,R.RGBA)}},Yl.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var ql=function(R,J){this.points=R,this.planes=J};ql.fromInvProjectionMatrix=function(R,J,O){var K=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],ge=Math.pow(2,O),ne=K.map(function(Ct){return i.transformMat4([],Ct,R)}).map(function(Ct){return i.scale$1([],Ct,1/Ct[3]/J*ge)}),Le=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],Ze=Le.map(function(Ct){var dr=i.sub([],ne[Ct[0]],ne[Ct[1]]),Mr=i.sub([],ne[Ct[2]],ne[Ct[1]]),ur=i.normalize([],i.cross([],dr,Mr)),Je=-i.dot(ur,ne[Ct[1]]);return ur.concat(Je)});return new ql(ne,Ze)};var ou=function(R,J){this.min=R,this.max=J,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};ou.prototype.quadrant=function(R){for(var J=[R%2===0,R<2],O=i.clone$2(this.min),K=i.clone$2(this.max),ge=0;ge=0;if(ne===0)return 0;ne!==J.length&&(O=!1)}if(O)return 2;for(var Ze=0;Ze<3;Ze++){for(var Ct=Number.MAX_VALUE,dr=-Number.MAX_VALUE,Mr=0;Mrthis.max[Ze]-this.min[Ze])return 0}return 1};var Pu=function(R,J,O,K){if(R===void 0&&(R=0),J===void 0&&(J=0),O===void 0&&(O=0),K===void 0&&(K=0),isNaN(R)||R<0||isNaN(J)||J<0||isNaN(O)||O<0||isNaN(K)||K<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=R,this.bottom=J,this.left=O,this.right=K};Pu.prototype.interpolate=function(R,J,O){return J.top!=null&&R.top!=null&&(this.top=i.number(R.top,J.top,O)),J.bottom!=null&&R.bottom!=null&&(this.bottom=i.number(R.bottom,J.bottom,O)),J.left!=null&&R.left!=null&&(this.left=i.number(R.left,J.left,O)),J.right!=null&&R.right!=null&&(this.right=i.number(R.right,J.right,O)),this},Pu.prototype.getCenter=function(R,J){var O=i.clamp((this.left+R-this.right)/2,0,R),K=i.clamp((this.top+J-this.bottom)/2,0,J);return new i.Point(O,K)},Pu.prototype.equals=function(R){return this.top===R.top&&this.bottom===R.bottom&&this.left===R.left&&this.right===R.right},Pu.prototype.clone=function(){return new Pu(this.top,this.bottom,this.left,this.right)},Pu.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var iu=function(R,J,O,K,ge){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=ge===void 0?!0:ge,this._minZoom=R||0,this._maxZoom=J||22,this._minPitch=O==null?0:O,this._maxPitch=K==null?60:K,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Pu,this._posMatrixCache={},this._alignedPosMatrixCache={}},tu={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};iu.prototype.clone=function(){var R=new iu(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return R.tileSize=this.tileSize,R.latRange=this.latRange,R.width=this.width,R.height=this.height,R._center=this._center,R.zoom=this.zoom,R.angle=this.angle,R._fov=this._fov,R._pitch=this._pitch,R._unmodified=this._unmodified,R._edgeInsets=this._edgeInsets.clone(),R._calcMatrices(),R},tu.minZoom.get=function(){return this._minZoom},tu.minZoom.set=function(Y){this._minZoom!==Y&&(this._minZoom=Y,this.zoom=Math.max(this.zoom,Y))},tu.maxZoom.get=function(){return this._maxZoom},tu.maxZoom.set=function(Y){this._maxZoom!==Y&&(this._maxZoom=Y,this.zoom=Math.min(this.zoom,Y))},tu.minPitch.get=function(){return this._minPitch},tu.minPitch.set=function(Y){this._minPitch!==Y&&(this._minPitch=Y,this.pitch=Math.max(this.pitch,Y))},tu.maxPitch.get=function(){return this._maxPitch},tu.maxPitch.set=function(Y){this._maxPitch!==Y&&(this._maxPitch=Y,this.pitch=Math.min(this.pitch,Y))},tu.renderWorldCopies.get=function(){return this._renderWorldCopies},tu.renderWorldCopies.set=function(Y){Y===void 0?Y=!0:Y===null&&(Y=!1),this._renderWorldCopies=Y},tu.worldSize.get=function(){return this.tileSize*this.scale},tu.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},tu.size.get=function(){return new i.Point(this.width,this.height)},tu.bearing.get=function(){return-this.angle/Math.PI*180},tu.bearing.set=function(Y){var R=-i.wrap(Y,-180,180)*Math.PI/180;this.angle!==R&&(this._unmodified=!1,this.angle=R,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},tu.pitch.get=function(){return this._pitch/Math.PI*180},tu.pitch.set=function(Y){var R=i.clamp(Y,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==R&&(this._unmodified=!1,this._pitch=R,this._calcMatrices())},tu.fov.get=function(){return this._fov/Math.PI*180},tu.fov.set=function(Y){Y=Math.max(.01,Math.min(60,Y)),this._fov!==Y&&(this._unmodified=!1,this._fov=Y/180*Math.PI,this._calcMatrices())},tu.zoom.get=function(){return this._zoom},tu.zoom.set=function(Y){var R=Math.min(Math.max(Y,this.minZoom),this.maxZoom);this._zoom!==R&&(this._unmodified=!1,this._zoom=R,this.scale=this.zoomScale(R),this.tileZoom=Math.floor(R),this.zoomFraction=R-this.tileZoom,this._constrain(),this._calcMatrices())},tu.center.get=function(){return this._center},tu.center.set=function(Y){Y.lat===this._center.lat&&Y.lng===this._center.lng||(this._unmodified=!1,this._center=Y,this._constrain(),this._calcMatrices())},tu.padding.get=function(){return this._edgeInsets.toJSON()},tu.padding.set=function(Y){this._edgeInsets.equals(Y)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,Y,1),this._calcMatrices())},tu.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},iu.prototype.isPaddingEqual=function(R){return this._edgeInsets.equals(R)},iu.prototype.interpolatePadding=function(R,J,O){this._unmodified=!1,this._edgeInsets.interpolate(R,J,O),this._constrain(),this._calcMatrices()},iu.prototype.coveringZoomLevel=function(R){var J=(R.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/R.tileSize));return Math.max(0,J)},iu.prototype.getVisibleUnwrappedCoordinates=function(R){var J=[new i.UnwrappedTileID(0,R)];if(this._renderWorldCopies)for(var O=this.pointCoordinate(new i.Point(0,0)),K=this.pointCoordinate(new i.Point(this.width,0)),ge=this.pointCoordinate(new i.Point(this.width,this.height)),ne=this.pointCoordinate(new i.Point(0,this.height)),Le=Math.floor(Math.min(O.x,K.x,ge.x,ne.x)),Ze=Math.floor(Math.max(O.x,K.x,ge.x,ne.x)),Ct=1,dr=Le-Ct;dr<=Ze+Ct;dr++)dr!==0&&J.push(new i.UnwrappedTileID(dr,R));return J},iu.prototype.coveringTiles=function(R){var J=this.coveringZoomLevel(R),O=J;if(R.minzoom!==void 0&&JR.maxzoom&&(J=R.maxzoom);var K=i.MercatorCoordinate.fromLngLat(this.center),ge=Math.pow(2,J),ne=[ge*K.x,ge*K.y,0],Le=ql.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,J),Ze=R.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Ze=J);var Ct=3,dr=function(Ki){return{aabb:new ou([Ki*ge,0,0],[(Ki+1)*ge,ge,0]),zoom:0,x:0,y:0,wrap:Ki,fullyVisible:!1}},Mr=[],ur=[],Je=J,ht=R.reparseOverscaled?O:J;if(this._renderWorldCopies)for(var wt=1;wt<=3;wt++)Mr.push(dr(-wt)),Mr.push(dr(wt));for(Mr.push(dr(0));Mr.length>0;){var Kt=Mr.pop(),sr=Kt.x,Qt=Kt.y,fr=Kt.fullyVisible;if(!fr){var er=Kt.aabb.intersects(Le);if(er===0)continue;fr=er===2}var Ot=Kt.aabb.distanceX(ne),Jt=Kt.aabb.distanceY(ne),Lt=Math.max(Math.abs(Ot),Math.abs(Jt)),Tr=Ct+(1<Tr&&Kt.zoom>=Ze){ur.push({tileID:new i.OverscaledTileID(Kt.zoom===Je?ht:Kt.zoom,Kt.wrap,Kt.zoom,sr,Qt),distanceSq:i.sqrLen([ne[0]-.5-sr,ne[1]-.5-Qt])});continue}for(var qr=0;qr<4;qr++){var ci=(sr<<1)+qr%2,Cn=(Qt<<1)+(qr>>1);Mr.push({aabb:Kt.aabb.quadrant(qr),zoom:Kt.zoom+1,x:ci,y:Cn,wrap:Kt.wrap,fullyVisible:fr})}}return ur.sort(function(Ki,yn){return Ki.distanceSq-yn.distanceSq}).map(function(Ki){return Ki.tileID})},iu.prototype.resize=function(R,J){this.width=R,this.height=J,this.pixelsToGLUnits=[2/R,-2/J],this._constrain(),this._calcMatrices()},tu.unmodified.get=function(){return this._unmodified},iu.prototype.zoomScale=function(R){return Math.pow(2,R)},iu.prototype.scaleZoom=function(R){return Math.log(R)/Math.LN2},iu.prototype.project=function(R){var J=i.clamp(R.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(R.lng)*this.worldSize,i.mercatorYfromLat(J)*this.worldSize)},iu.prototype.unproject=function(R){return new i.MercatorCoordinate(R.x/this.worldSize,R.y/this.worldSize).toLngLat()},tu.point.get=function(){return this.project(this.center)},iu.prototype.setLocationAtPoint=function(R,J){var O=this.pointCoordinate(J),K=this.pointCoordinate(this.centerPoint),ge=this.locationCoordinate(R),ne=new i.MercatorCoordinate(ge.x-(O.x-K.x),ge.y-(O.y-K.y));this.center=this.coordinateLocation(ne),this._renderWorldCopies&&(this.center=this.center.wrap())},iu.prototype.locationPoint=function(R){return this.coordinatePoint(this.locationCoordinate(R))},iu.prototype.pointLocation=function(R){return this.coordinateLocation(this.pointCoordinate(R))},iu.prototype.locationCoordinate=function(R){return i.MercatorCoordinate.fromLngLat(R)},iu.prototype.coordinateLocation=function(R){return R.toLngLat()},iu.prototype.pointCoordinate=function(R){var J=0,O=[R.x,R.y,0,1],K=[R.x,R.y,1,1];i.transformMat4(O,O,this.pixelMatrixInverse),i.transformMat4(K,K,this.pixelMatrixInverse);var ge=O[3],ne=K[3],Le=O[0]/ge,Ze=K[0]/ne,Ct=O[1]/ge,dr=K[1]/ne,Mr=O[2]/ge,ur=K[2]/ne,Je=Mr===ur?0:(J-Mr)/(ur-Mr);return new i.MercatorCoordinate(i.number(Le,Ze,Je)/this.worldSize,i.number(Ct,dr,Je)/this.worldSize)},iu.prototype.coordinatePoint=function(R){var J=[R.x*this.worldSize,R.y*this.worldSize,0,1];return i.transformMat4(J,J,this.pixelMatrix),new i.Point(J[0]/J[3],J[1]/J[3])},iu.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},iu.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},iu.prototype.setMaxBounds=function(R){R?(this.lngRange=[R.getWest(),R.getEast()],this.latRange=[R.getSouth(),R.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},iu.prototype.calculatePosMatrix=function(R,J){J===void 0&&(J=!1);var O=R.key,K=J?this._alignedPosMatrixCache:this._posMatrixCache;if(K[O])return K[O];var ge=R.canonical,ne=this.worldSize/this.zoomScale(ge.z),Le=ge.x+Math.pow(2,ge.z)*R.wrap,Ze=i.identity(new Float64Array(16));return i.translate(Ze,Ze,[Le*ne,ge.y*ne,0]),i.scale(Ze,Ze,[ne/i.EXTENT,ne/i.EXTENT,1]),i.multiply(Ze,J?this.alignedProjMatrix:this.projMatrix,Ze),K[O]=new Float32Array(Ze),K[O]},iu.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},iu.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var R=-90,J=90,O=-180,K=180,ge,ne,Le,Ze,Ct=this.size,dr=this._unmodified;if(this.latRange){var Mr=this.latRange;R=i.mercatorYfromLat(Mr[1])*this.worldSize,J=i.mercatorYfromLat(Mr[0])*this.worldSize,ge=J-RJ&&(Ze=J-Kt)}if(this.lngRange){var sr=Je.x,Qt=Ct.x/2;sr-QtK&&(Le=K-Qt)}(Le!==void 0||Ze!==void 0)&&(this.center=this.unproject(new i.Point(Le!==void 0?Le:Je.x,Ze!==void 0?Ze:Je.y))),this._unmodified=dr,this._constraining=!1}},iu.prototype._calcMatrices=function(){if(this.height){var R=this._fov/2,J=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(R)*this.height;var O=Math.PI/2+this._pitch,K=this._fov*(.5+J.y/this.height),ge=Math.sin(K)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-O-K,.01,Math.PI-.01)),ne=this.point,Le=ne.x,Ze=ne.y,Ct=Math.cos(Math.PI/2-this._pitch)*ge+this.cameraToCenterDistance,dr=Ct*1.01,Mr=this.height/50,ur=new Float64Array(16);i.perspective(ur,this._fov,this.width/this.height,Mr,dr),ur[8]=-J.x*2/this.width,ur[9]=J.y*2/this.height,i.scale(ur,ur,[1,-1,1]),i.translate(ur,ur,[0,0,-this.cameraToCenterDistance]),i.rotateX(ur,ur,this._pitch),i.rotateZ(ur,ur,this.angle),i.translate(ur,ur,[-Le,-Ze,0]),this.mercatorMatrix=i.scale([],ur,[this.worldSize,this.worldSize,this.worldSize]),i.scale(ur,ur,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=ur,this.invProjMatrix=i.invert([],this.projMatrix);var Je=this.width%2/2,ht=this.height%2/2,wt=Math.cos(this.angle),Kt=Math.sin(this.angle),sr=Le-Math.round(Le)+wt*Je+Kt*ht,Qt=Ze-Math.round(Ze)+wt*ht+Kt*Je,fr=new Float64Array(ur);if(i.translate(fr,fr,[sr>.5?sr-1:sr,Qt>.5?Qt-1:Qt,0]),this.alignedProjMatrix=fr,ur=i.create(),i.scale(ur,ur,[this.width/2,-this.height/2,1]),i.translate(ur,ur,[1,-1,0]),this.labelPlaneMatrix=ur,ur=i.create(),i.scale(ur,ur,[1,-1,1]),i.translate(ur,ur,[-1,-1,0]),i.scale(ur,ur,[2/this.width,2/this.height,1]),this.glCoordMatrix=ur,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),ur=i.invert(new Float64Array(16),this.pixelMatrix),!ur)throw new Error("failed to invert matrix");this.pixelMatrixInverse=ur,this._posMatrixCache={},this._alignedPosMatrixCache={}}},iu.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var R=this.pointCoordinate(new i.Point(0,0)),J=[R.x*this.worldSize,R.y*this.worldSize,0,1],O=i.transformMat4(J,J,this.pixelMatrix);return O[3]/this.cameraToCenterDistance},iu.prototype.getCameraPoint=function(){var R=this._pitch,J=Math.tan(R)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,J))},iu.prototype.getCameraQueryGeometry=function(R){var J=this.getCameraPoint();if(R.length===1)return[R[0],J];for(var O=J.x,K=J.y,ge=J.x,ne=J.y,Le=0,Ze=R;Le=3&&!R.some(function(O){return isNaN(O)})){var J=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(R[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+R[2],+R[1]],zoom:+R[0],bearing:J,pitch:+(R[4]||0)}),!0}return!1},Qu.prototype._updateHashUnthrottled=function(){var R=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,R)}catch(J){}};var Ku={linearity:.3,easing:i.bezier(0,0,.3,1)},ju=i.extend({deceleration:2500,maxSpeed:1400},Ku),Xu=i.extend({deceleration:20,maxSpeed:1400},Ku),lf=i.extend({deceleration:1e3,maxSpeed:360},Ku),xf=i.extend({deceleration:1e3,maxSpeed:90},Ku),ef=function(R){this._map=R,this.clear()};ef.prototype.clear=function(){this._inertiaBuffer=[]},ef.prototype.record=function(R){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:i.browser.now(),settings:R})},ef.prototype._drainInertiaBuffer=function(){for(var R=this._inertiaBuffer,J=i.browser.now(),O=160;R.length>0&&J-R[0].time>O;)R.shift()},ef.prototype._onMoveEnd=function(R){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var J={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},O=0,K=this._inertiaBuffer;O=this._clickTolerance||this._map.fire(new se(R.type,this._map,R))},$e.prototype.dblclick=function(R){return this._firePreventable(new se(R.type,this._map,R))},$e.prototype.mouseover=function(R){this._map.fire(new se(R.type,this._map,R))},$e.prototype.mouseout=function(R){this._map.fire(new se(R.type,this._map,R))},$e.prototype.touchstart=function(R){return this._firePreventable(new ze(R.type,this._map,R))},$e.prototype.touchmove=function(R){this._map.fire(new ze(R.type,this._map,R))},$e.prototype.touchend=function(R){this._map.fire(new ze(R.type,this._map,R))},$e.prototype.touchcancel=function(R){this._map.fire(new ze(R.type,this._map,R))},$e.prototype._firePreventable=function(R){if(this._map.fire(R),R.defaultPrevented)return{}},$e.prototype.isEnabled=function(){return!0},$e.prototype.isActive=function(){return!1},$e.prototype.enable=function(){},$e.prototype.disable=function(){};var st=function(R){this._map=R};st.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},st.prototype.mousemove=function(R){this._map.fire(new se(R.type,this._map,R))},st.prototype.mousedown=function(){this._delayContextMenu=!0},st.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new se("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},st.prototype.contextmenu=function(R){this._delayContextMenu?this._contextMenuEvent=R:this._map.fire(new se(R.type,this._map,R)),this._map.listens("contextmenu")&&R.preventDefault()},st.prototype.isEnabled=function(){return!0},st.prototype.isActive=function(){return!1},st.prototype.enable=function(){},st.prototype.disable=function(){};var jt=function(R,J){this._map=R,this._el=R.getCanvasContainer(),this._container=R.getContainer(),this._clickTolerance=J.clickTolerance||1};jt.prototype.isEnabled=function(){return!!this._enabled},jt.prototype.isActive=function(){return!!this._active},jt.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},jt.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},jt.prototype.mousedown=function(R,J){this.isEnabled()&&R.shiftKey&&R.button===0&&(o.disableDrag(),this._startPos=this._lastPos=J,this._active=!0)},jt.prototype.mousemoveWindow=function(R,J){if(this._active){var O=J;if(!(this._lastPos.equals(O)||!this._box&&O.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=R.timeStamp),O.length===this.numTouches&&(this.centroid=hr(J),this.touches=_t(O,J)))},$r.prototype.touchmove=function(R,J,O){if(!(this.aborted||!this.centroid)){var K=_t(O,J);for(var ge in this.touches){var ne=this.touches[ge],Le=K[ge];(!Le||Le.dist(ne)>ui)&&(this.aborted=!0)}}},$r.prototype.touchend=function(R,J,O){if((!this.centroid||R.timeStamp-this.startTime>zr)&&(this.aborted=!0),O.length===0){var K=!this.aborted&&this.centroid;if(this.reset(),K)return K}};var Oi=function(R){this.singleTap=new $r(R),this.numTaps=R.numTaps,this.reset()};Oi.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Oi.prototype.touchstart=function(R,J,O){this.singleTap.touchstart(R,J,O)},Oi.prototype.touchmove=function(R,J,O){this.singleTap.touchmove(R,J,O)},Oi.prototype.touchend=function(R,J,O){var K=this.singleTap.touchend(R,J,O);if(K){var ge=R.timeStamp-this.lastTime0&&(this._active=!0);var K=_t(O,J),ge=new i.Point(0,0),ne=new i.Point(0,0),Le=0;for(var Ze in K){var Ct=K[Ze],dr=this._touches[Ze];dr&&(ge._add(Ct),ne._add(Ct.sub(dr)),Le++,K[Ze]=Ct)}if(this._touches=K,!(LeMath.abs(Y.x)}var ds=100,Wl=function(Y){function R(){Y.apply(this,arguments)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.reset=function(){Y.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},R.prototype._start=function(O){this._lastPoints=O,rf(O[0].sub(O[1]))&&(this._valid=!1)},R.prototype._move=function(O,K,ge){var ne=O[0].sub(this._lastPoints[0]),Le=O[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ne,Le,ge.timeStamp),!!this._valid){this._lastPoints=O,this._active=!0;var Ze=(ne.y+Le.y)/2,Ct=-.5;return{pitchDelta:Ze*Ct}}},R.prototype.gestureBeginsVertically=function(O,K,ge){if(this._valid!==void 0)return this._valid;var ne=2,Le=O.mag()>=ne,Ze=K.mag()>=ne;if(!(!Le&&!Ze)){if(!Le||!Ze)return this._firstMove===void 0&&(this._firstMove=ge),ge-this._firstMove0==K.y>0;return rf(O)&&rf(K)&&Ct}},R}(js),Au={panStep:100,bearingStep:15,pitchStep:10},Tu=function(){var R=Au;this._panStep=R.panStep,this._bearingStep=R.bearingStep,this._pitchStep=R.pitchStep,this._rotationDisabled=!1};Tu.prototype.reset=function(){this._active=!1},Tu.prototype.keydown=function(R){var J=this;if(!(R.altKey||R.ctrlKey||R.metaKey)){var O=0,K=0,ge=0,ne=0,Le=0;switch(R.keyCode){case 61:case 107:case 171:case 187:O=1;break;case 189:case 109:case 173:O=-1;break;case 37:R.shiftKey?K=-1:(R.preventDefault(),ne=-1);break;case 39:R.shiftKey?K=1:(R.preventDefault(),ne=1);break;case 38:R.shiftKey?ge=1:(R.preventDefault(),Le=-1);break;case 40:R.shiftKey?ge=-1:(R.preventDefault(),Le=1);break;default:return}return this._rotationDisabled&&(K=0,ge=0),{cameraAnimation:function(Ze){var Ct=Ze.getZoom();Ze.easeTo({duration:300,easeId:"keyboardHandler",easing:uf,zoom:O?Math.round(Ct)+O*(R.shiftKey?2:1):Ct,bearing:Ze.getBearing()+K*J._bearingStep,pitch:Ze.getPitch()+ge*J._pitchStep,offset:[-ne*J._panStep,-Le*J._panStep],center:Ze.getCenter()},{originalEvent:R})}}}},Tu.prototype.enable=function(){this._enabled=!0},Tu.prototype.disable=function(){this._enabled=!1,this.reset()},Tu.prototype.isEnabled=function(){return this._enabled},Tu.prototype.isActive=function(){return this._active},Tu.prototype.disableRotation=function(){this._rotationDisabled=!0},Tu.prototype.enableRotation=function(){this._rotationDisabled=!1};function uf(Y){return Y*(2-Y)}var df=4.000244140625,Ef=1/100,vf=1/450,fc=2,Be=function(R,J){this._map=R,this._el=R.getCanvasContainer(),this._handler=J,this._delta=0,this._defaultZoomRate=Ef,this._wheelZoomRate=vf,i.bindAll(["_onTimeout"],this)};Be.prototype.setZoomRate=function(R){this._defaultZoomRate=R},Be.prototype.setWheelZoomRate=function(R){this._wheelZoomRate=R},Be.prototype.isEnabled=function(){return!!this._enabled},Be.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Be.prototype.isZooming=function(){return!!this._zooming},Be.prototype.enable=function(R){this.isEnabled()||(this._enabled=!0,this._aroundCenter=R&&R.around==="center")},Be.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Be.prototype.wheel=function(R){if(this.isEnabled()){var J=R.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?R.deltaY*40:R.deltaY,O=i.browser.now(),K=O-(this._lastWheelEventTime||0);this._lastWheelEventTime=O,J!==0&&J%df===0?this._type="wheel":J!==0&&Math.abs(J)<4?this._type="trackpad":K>400?(this._type=null,this._lastValue=J,this._timeout=setTimeout(this._onTimeout,40,R)):this._type||(this._type=Math.abs(K*J)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,J+=this._lastValue)),R.shiftKey&&J&&(J=J/4),this._type&&(this._lastWheelEvent=R,this._delta-=J,this._active||this._start(R)),R.preventDefault()}},Be.prototype._onTimeout=function(R){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(R)},Be.prototype._start=function(R){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var J=o.mousePos(this._el,R);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(J)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Be.prototype.renderFrame=function(){var R=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var J=this._map.transform;if(this._delta!==0){var O=this._type==="wheel"&&Math.abs(this._delta)>df?this._wheelZoomRate:this._defaultZoomRate,K=fc/(1+Math.exp(-Math.abs(this._delta*O)));this._delta<0&&K!==0&&(K=1/K);var ge=typeof this._targetZoom=="number"?J.zoomScale(this._targetZoom):J.scale;this._targetZoom=Math.min(J.maxZoom,Math.max(J.minZoom,J.scaleZoom(ge*K))),this._type==="wheel"&&(this._startZoom=J.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var ne=typeof this._targetZoom=="number"?this._targetZoom:J.zoom,Le=this._startZoom,Ze=this._easing,Ct=!1,dr;if(this._type==="wheel"&&Le&&Ze){var Mr=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),ur=Ze(Mr);dr=i.number(Le,ne,ur),Mr<1?this._frameId||(this._frameId=!0):Ct=!0}else dr=ne,Ct=!0;return this._active=!0,Ct&&(this._active=!1,this._finishTimeout=setTimeout(function(){R._zooming=!1,R._handler._triggerRenderFrame(),delete R._targetZoom,delete R._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Ct,zoomDelta:dr-J.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Be.prototype._smoothOutEasing=function(R){var J=i.ease;if(this._prevEase){var O=this._prevEase,K=(i.browser.now()-O.start)/O.duration,ge=O.easing(K+.01)-O.easing(K),ne=.27/Math.sqrt(ge*ge+1e-4)*.01,Le=Math.sqrt(.27*.27-ne*ne);J=i.bezier(ne,Le,.25,1)}return this._prevEase={start:i.browser.now(),duration:R,easing:J},J},Be.prototype.reset=function(){this._active=!1};var qt=function(R,J){this._clickZoom=R,this._tapZoom=J};qt.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},qt.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},qt.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},qt.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var ar=function(){this.reset()};ar.prototype.reset=function(){this._active=!1},ar.prototype.dblclick=function(R,J){return R.preventDefault(),{cameraAnimation:function(O){O.easeTo({duration:300,zoom:O.getZoom()+(R.shiftKey?-1:1),around:O.unproject(J)},{originalEvent:R})}}},ar.prototype.enable=function(){this._enabled=!0},ar.prototype.disable=function(){this._enabled=!1,this.reset()},ar.prototype.isEnabled=function(){return this._enabled},ar.prototype.isActive=function(){return this._active};var Qr=function(){this._tap=new Oi({numTouches:1,numTaps:1}),this.reset()};Qr.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Qr.prototype.touchstart=function(R,J,O){this._swipePoint||(this._tapTime&&R.timeStamp-this._tapTime>Cr&&this.reset(),this._tapTime?O.length>0&&(this._swipePoint=J[0],this._swipeTouch=O[0].identifier):this._tap.touchstart(R,J,O))},Qr.prototype.touchmove=function(R,J,O){if(!this._tapTime)this._tap.touchmove(R,J,O);else if(this._swipePoint){if(O[0].identifier!==this._swipeTouch)return;var K=J[0],ge=K.y-this._swipePoint.y;return this._swipePoint=K,R.preventDefault(),this._active=!0,{zoomDelta:ge/128}}},Qr.prototype.touchend=function(R,J,O){if(this._tapTime)this._swipePoint&&O.length===0&&this.reset();else{var K=this._tap.touchend(R,J,O);K&&(this._tapTime=R.timeStamp)}},Qr.prototype.touchcancel=function(){this.reset()},Qr.prototype.enable=function(){this._enabled=!0},Qr.prototype.disable=function(){this._enabled=!1,this.reset()},Qr.prototype.isEnabled=function(){return this._enabled},Qr.prototype.isActive=function(){return this._active};var vi=function(R,J,O){this._el=R,this._mousePan=J,this._touchPan=O};vi.prototype.enable=function(R){this._inertiaOptions=R||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},vi.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},vi.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},vi.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var fi=function(R,J,O){this._pitchWithRotate=R.pitchWithRotate,this._mouseRotate=J,this._mousePitch=O};fi.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},fi.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},fi.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},fi.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var di=function(R,J,O,K){this._el=R,this._touchZoom=J,this._touchRotate=O,this._tapDragZoom=K,this._rotationDisabled=!1,this._enabled=!0};di.prototype.enable=function(R){this._touchZoom.enable(R),this._rotationDisabled||this._touchRotate.enable(R),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},di.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},di.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},di.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},di.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},di.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var on=function(Y){return Y.zoom||Y.drag||Y.pitch||Y.rotate},Bn=function(Y){function R(){Y.apply(this,arguments)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R}(i.Event);function Ln(Y){return Y.panDelta&&Y.panDelta.mag()||Y.zoomDelta||Y.bearingDelta||Y.pitchDelta}var wn=function(R,J){this._map=R,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new ef(R),this._bearingSnap=J.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(J),i.bindAll(["handleEvent","handleWindowEvent"],this);var O=this._el;this._listeners=[[O,"touchstart",{passive:!0}],[O,"touchmove",{passive:!1}],[O,"touchend",void 0],[O,"touchcancel",void 0],[O,"mousedown",void 0],[O,"mousemove",void 0],[O,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[O,"mouseover",void 0],[O,"mouseout",void 0],[O,"dblclick",void 0],[O,"click",void 0],[O,"keydown",{capture:!1}],[O,"keyup",void 0],[O,"wheel",{passive:!1}],[O,"contextmenu",void 0],[i.window,"blur",void 0]];for(var K=0,ge=this._listeners;KLe?Math.min(2,Ot):Math.max(.5,Ot),Ki=Math.pow(Cn,1-qr),yn=ne.unproject(fr.add(er.mult(qr*Ki)).mult(ci));ne.setLocationAtPoint(ne.renderWorldCopies?yn.wrap():yn,Kt)}ge._fireMoveEvents(K)},function(qr){ge._afterEase(K,qr)},O),this},R.prototype._prepareEase=function(O,K,ge){ge===void 0&&(ge={}),this._moving=!0,!K&&!ge.moving&&this.fire(new i.Event("movestart",O)),this._zooming&&!ge.zooming&&this.fire(new i.Event("zoomstart",O)),this._rotating&&!ge.rotating&&this.fire(new i.Event("rotatestart",O)),this._pitching&&!ge.pitching&&this.fire(new i.Event("pitchstart",O))},R.prototype._fireMoveEvents=function(O){this.fire(new i.Event("move",O)),this._zooming&&this.fire(new i.Event("zoom",O)),this._rotating&&this.fire(new i.Event("rotate",O)),this._pitching&&this.fire(new i.Event("pitch",O))},R.prototype._afterEase=function(O,K){if(!(this._easeId&&K&&this._easeId===K)){delete this._easeId;var ge=this._zooming,ne=this._rotating,Le=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,ge&&this.fire(new i.Event("zoomend",O)),ne&&this.fire(new i.Event("rotateend",O)),Le&&this.fire(new i.Event("pitchend",O)),this.fire(new i.Event("moveend",O))}},R.prototype.flyTo=function(O,K){var ge=this;if(!O.essential&&i.browser.prefersReducedMotion){var ne=i.pick(O,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ne,K)}this.stop(),O=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},O);var Le=this.transform,Ze=this.getZoom(),Ct=this.getBearing(),dr=this.getPitch(),Mr=this.getPadding(),ur="zoom"in O?i.clamp(+O.zoom,Le.minZoom,Le.maxZoom):Ze,Je="bearing"in O?this._normalizeBearing(O.bearing,Ct):Ct,ht="pitch"in O?+O.pitch:dr,wt="padding"in O?O.padding:Le.padding,Kt=Le.zoomScale(ur-Ze),sr=i.Point.convert(O.offset),Qt=Le.centerPoint.add(sr),fr=Le.pointLocation(Qt),er=i.LngLat.convert(O.center||fr);this._normalizeCenter(er);var Ot=Le.project(fr),Jt=Le.project(er).sub(Ot),Lt=O.curve,Tr=Math.max(Le.width,Le.height),qr=Tr/Kt,ci=Jt.mag();if("minZoom"in O){var Cn=i.clamp(Math.min(O.minZoom,Ze,ur),Le.minZoom,Le.maxZoom),Ki=Tr/Le.zoomScale(Cn-Ze);Lt=Math.sqrt(Ki/ci*2)}var yn=Lt*Lt;function Xa(vu){var zu=(qr*qr-Tr*Tr+(vu?-1:1)*yn*yn*ci*ci)/(2*(vu?qr:Tr)*yn*ci);return Math.log(Math.sqrt(zu*zu+1)-zu)}function ca(vu){return(Math.exp(vu)-Math.exp(-vu))/2}function An(vu){return(Math.exp(vu)+Math.exp(-vu))/2}function Pn(vu){return ca(vu)/An(vu)}var Nn=Xa(0),xa=function(vu){return An(Nn)/An(Nn+Lt*vu)},Zo=function(vu){return Tr*((An(Nn)*Pn(Nn+Lt*vu)-ca(Nn))/yn)/ci},ru=(Xa(1)-Nn)/Lt;if(Math.abs(ci)<1e-6||!isFinite(ru)){if(Math.abs(Tr-qr)<1e-6)return this.easeTo(O,K);var yu=qrO.maxDuration&&(O.duration=0),this._zooming=!0,this._rotating=Ct!==Je,this._pitching=ht!==dr,this._padding=!Le.isPaddingEqual(wt),this._prepareEase(K,!1),this._ease(function(vu){var zu=vu*ru,Ju=1/xa(zu);Le.zoom=vu===1?ur:Ze+Le.scaleZoom(Ju),ge._rotating&&(Le.bearing=i.number(Ct,Je,vu)),ge._pitching&&(Le.pitch=i.number(dr,ht,vu)),ge._padding&&(Le.interpolatePadding(Mr,wt,vu),Qt=Le.centerPoint.add(sr));var Uf=vu===1?er:Le.unproject(Ot.add(Jt.mult(Zo(zu))).mult(Ju));Le.setLocationAtPoint(Le.renderWorldCopies?Uf.wrap():Uf,Qt),ge._fireMoveEvents(K)},function(){return ge._afterEase(K)},O),this},R.prototype.isEasing=function(){return!!this._easeFrameId},R.prototype.stop=function(){return this._stop()},R.prototype._stop=function(O,K){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var ge=this._onEaseEnd;delete this._onEaseEnd,ge.call(this,K)}if(!O){var ne=this.handlers;ne&&ne.stop(!1)}return this},R.prototype._ease=function(O,K,ge){ge.animate===!1||ge.duration===0?(O(1),K()):(this._easeStart=i.browser.now(),this._easeOptions=ge,this._onEaseFrame=O,this._onEaseEnd=K,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},R.prototype._renderFrameCallback=function(){var O=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(O)),O<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},R.prototype._normalizeBearing=function(O,K){O=i.wrap(O,-180,180);var ge=Math.abs(O-K);return Math.abs(O-360-K)180?-360:ge<-180?360:0}},R}(i.Evented),ua=function(R){R===void 0&&(R={}),this.options=R,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};ua.prototype.getDefaultPosition=function(){return"bottom-right"},ua.prototype.onAdd=function(R){var J=this.options&&this.options.compact;return this._map=R,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=o.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=o.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),J&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),J===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},ua.prototype.onRemove=function(){o.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},ua.prototype._setElementTitle=function(R,J){var O=this._map._getUIString("AttributionControl."+J);R.title=O,R.setAttribute("aria-label",O)},ua.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},ua.prototype._updateEditLink=function(){var R=this._editLink;R||(R=this._editLink=this._container.querySelector(".mapbox-improve-map"));var J=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(R){var O=J.reduce(function(K,ge,ne){return ge.value&&(K+=ge.key+"="+ge.value+(ne=0)return!1;return!0});var Le=R.join(" | ");Le!==this._attribHTML&&(this._attribHTML=Le,R.length?(this._innerContainer.innerHTML=Le,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},ua.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var Hn=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};Hn.prototype.onAdd=function(R){this._map=R,this._container=o.create("div","mapboxgl-ctrl");var J=o.create("a","mapboxgl-ctrl-logo");return J.target="_blank",J.rel="noopener nofollow",J.href="https://www.mapbox.com/",J.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),J.setAttribute("rel","noopener nofollow"),this._container.appendChild(J),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},Hn.prototype.onRemove=function(){o.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Hn.prototype.getDefaultPosition=function(){return"bottom-left"},Hn.prototype._updateLogo=function(R){(!R||R.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},Hn.prototype._logoRequired=function(){if(this._map.style){var R=this._map.style.sourceCaches;for(var J in R){var O=R[J].getSource();if(O.mapbox_logo)return!0}return!1}},Hn.prototype._updateCompact=function(){var R=this._container.children;if(R.length){var J=R[0];this._map.getCanvasContainer().offsetWidth<250?J.classList.add("mapboxgl-compact"):J.classList.remove("mapboxgl-compact")}};var Ni=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Ni.prototype.add=function(R){var J=++this._id,O=this._queue;return O.push({callback:R,id:J,cancelled:!1}),J},Ni.prototype.remove=function(R){for(var J=this._currentlyRunning,O=J?this._queue.concat(J):this._queue,K=0,ge=O;KO.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(O.minPitch!=null&&O.maxPitch!=null&&O.minPitch>O.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(O.minPitch!=null&&O.minPitchhs)throw new Error("maxPitch must be less than or equal to "+hs);var ge=new iu(O.minZoom,O.maxZoom,O.minPitch,O.maxPitch,O.renderWorldCopies);if(Y.call(this,ge,O),this._interactive=O.interactive,this._maxTileCacheSize=O.maxTileCacheSize,this._failIfMajorPerformanceCaveat=O.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=O.preserveDrawingBuffer,this._antialias=O.antialias,this._trackResize=O.trackResize,this._bearingSnap=O.bearingSnap,this._refreshExpiredTiles=O.refreshExpiredTiles,this._fadeDuration=O.fadeDuration,this._crossSourceCollisions=O.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=O.collectResourceTiming,this._renderTaskQueue=new Ni,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},Hr,O.locale),this._clickTolerance=O.clickTolerance,this._requestManager=new i.RequestManager(O.transformRequest,O.accessToken),typeof O.container=="string"){if(this._container=i.window.document.getElementById(O.container),!this._container)throw new Error("Container '"+O.container+"' not found.")}else if(O.container instanceof dn)this._container=O.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(O.maxBounds&&this.setMaxBounds(O.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return K._update(!1)}),this.on("moveend",function(){return K._update(!1)}),this.on("zoom",function(){return K._update(!0)}),typeof i.window!="undefined"&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new wn(this,O);var ne=typeof O.hash=="string"&&O.hash||void 0;this._hash=O.hash&&new Qu(ne).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:O.center,zoom:O.zoom,bearing:O.bearing,pitch:O.pitch}),O.bounds&&(this.resize(),this.fitBounds(O.bounds,i.extend({},O.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=O.localIdeographFontFamily,O.style&&this.setStyle(O.style,{localIdeographFontFamily:O.localIdeographFontFamily}),O.attributionControl&&this.addControl(new ua({customAttribution:O.customAttribution})),this.addControl(new Hn,O.logoPosition),this.on("style.load",function(){K.transform.unmodified&&K.jumpTo(K.style.stylesheet)}),this.on("data",function(Le){K._update(Le.dataType==="style"),K.fire(new i.Event(Le.dataType+"data",Le))}),this.on("dataloading",function(Le){K.fire(new i.Event(Le.dataType+"dataloading",Le))})}Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R;var J={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return R.prototype._getMapId=function(){return this._mapId},R.prototype.addControl=function(K,ge){if(ge===void 0&&(K.getDefaultPosition?ge=K.getDefaultPosition():ge="top-right"),!K||!K.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var ne=K.onAdd(this);this._controls.push(K);var Le=this._controlPositions[ge];return ge.indexOf("bottom")!==-1?Le.insertBefore(ne,Le.firstChild):Le.appendChild(ne),this},R.prototype.removeControl=function(K){if(!K||!K.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var ge=this._controls.indexOf(K);return ge>-1&&this._controls.splice(ge,1),K.onRemove(this),this},R.prototype.hasControl=function(K){return this._controls.indexOf(K)>-1},R.prototype.resize=function(K){var ge=this._containerDimensions(),ne=ge[0],Le=ge[1];this._resizeCanvas(ne,Le),this.transform.resize(ne,Le),this.painter.resize(ne,Le);var Ze=!this._moving;return Ze&&(this.stop(),this.fire(new i.Event("movestart",K)).fire(new i.Event("move",K))),this.fire(new i.Event("resize",K)),Ze&&this.fire(new i.Event("moveend",K)),this},R.prototype.getBounds=function(){return this.transform.getBounds()},R.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},R.prototype.setMaxBounds=function(K){return this.transform.setMaxBounds(i.LngLatBounds.convert(K)),this._update()},R.prototype.setMinZoom=function(K){if(K=K==null?Yi:K,K>=Yi&&K<=this.transform.maxZoom)return this.transform.minZoom=K,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=K,this._update(),this.getZoom()>K&&this.setZoom(K),this;throw new Error("maxZoom must be greater than the current minZoom")},R.prototype.getMaxZoom=function(){return this.transform.maxZoom},R.prototype.setMinPitch=function(K){if(K=K==null?Kn:K,K=Kn&&K<=this.transform.maxPitch)return this.transform.minPitch=K,this._update(),this.getPitch()hs)throw new Error("maxPitch must be less than or equal to "+hs);if(K>=this.transform.minPitch)return this.transform.maxPitch=K,this._update(),this.getPitch()>K&&this.setPitch(K),this;throw new Error("maxPitch must be greater than the current minPitch")},R.prototype.getMaxPitch=function(){return this.transform.maxPitch},R.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},R.prototype.setRenderWorldCopies=function(K){return this.transform.renderWorldCopies=K,this._update()},R.prototype.project=function(K){return this.transform.locationPoint(i.LngLat.convert(K))},R.prototype.unproject=function(K){return this.transform.pointLocation(i.Point.convert(K))},R.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},R.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},R.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},R.prototype._createDelegatedListener=function(K,ge,ne){var Le=this,Ze;if(K==="mouseenter"||K==="mouseover"){var Ct=!1,dr=function(Kt){var sr=Le.getLayer(ge)?Le.queryRenderedFeatures(Kt.point,{layers:[ge]}):[];sr.length?Ct||(Ct=!0,ne.call(Le,new se(K,Le,Kt.originalEvent,{features:sr}))):Ct=!1},Mr=function(){Ct=!1};return{layer:ge,listener:ne,delegates:{mousemove:dr,mouseout:Mr}}}else if(K==="mouseleave"||K==="mouseout"){var ur=!1,Je=function(Kt){var sr=Le.getLayer(ge)?Le.queryRenderedFeatures(Kt.point,{layers:[ge]}):[];sr.length?ur=!0:ur&&(ur=!1,ne.call(Le,new se(K,Le,Kt.originalEvent)))},ht=function(Kt){ur&&(ur=!1,ne.call(Le,new se(K,Le,Kt.originalEvent)))};return{layer:ge,listener:ne,delegates:{mousemove:Je,mouseout:ht}}}else{var wt=function(Kt){var sr=Le.getLayer(ge)?Le.queryRenderedFeatures(Kt.point,{layers:[ge]}):[];sr.length&&(Kt.features=sr,ne.call(Le,Kt),delete Kt.features)};return{layer:ge,listener:ne,delegates:(Ze={},Ze[K]=wt,Ze)}}},R.prototype.on=function(K,ge,ne){if(ne===void 0)return Y.prototype.on.call(this,K,ge);var Le=this._createDelegatedListener(K,ge,ne);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[K]=this._delegatedListeners[K]||[],this._delegatedListeners[K].push(Le);for(var Ze in Le.delegates)this.on(Ze,Le.delegates[Ze]);return this},R.prototype.once=function(K,ge,ne){if(ne===void 0)return Y.prototype.once.call(this,K,ge);var Le=this._createDelegatedListener(K,ge,ne);for(var Ze in Le.delegates)this.once(Ze,Le.delegates[Ze]);return this},R.prototype.off=function(K,ge,ne){var Le=this;if(ne===void 0)return Y.prototype.off.call(this,K,ge);var Ze=function(Ct){for(var dr=Ct[K],Mr=0;Mr180;){var ne=J.locationPoint(Y);if(ne.x>=0&&ne.y>=0&&ne.x<=J.width&&ne.y<=J.height)break;Y.lng>J.center.lng?Y.lng-=360:Y.lng+=360}return Y}var _s={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function ul(Y,R,J){var O=Y.classList;for(var K in _s)O.remove("mapboxgl-"+J+"-anchor-"+K);O.add("mapboxgl-"+J+"-anchor-"+R)}var Qn=function(Y){function R(J,O){if(Y.call(this),(J instanceof i.window.HTMLElement||O)&&(J=i.extend({element:J},O)),i.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=J&&J.anchor||"center",this._color=J&&J.color||"#3FB1CE",this._scale=J&&J.scale||1,this._draggable=J&&J.draggable||!1,this._clickTolerance=J&&J.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=J&&J.rotation||0,this._rotationAlignment=J&&J.rotationAlignment||"auto",this._pitchAlignment=J&&J.pitchAlignment&&J.pitchAlignment!=="auto"?J.pitchAlignment:this._rotationAlignment,!J||!J.element){this._defaultMarker=!0,this._element=o.create("div"),this._element.setAttribute("aria-label","Map marker");var K=o.createNS("http://www.w3.org/2000/svg","svg"),ge=41,ne=27;K.setAttributeNS(null,"display","block"),K.setAttributeNS(null,"height",ge+"px"),K.setAttributeNS(null,"width",ne+"px"),K.setAttributeNS(null,"viewBox","0 0 "+ne+" "+ge);var Le=o.createNS("http://www.w3.org/2000/svg","g");Le.setAttributeNS(null,"stroke","none"),Le.setAttributeNS(null,"stroke-width","1"),Le.setAttributeNS(null,"fill","none"),Le.setAttributeNS(null,"fill-rule","evenodd");var Ze=o.createNS("http://www.w3.org/2000/svg","g");Ze.setAttributeNS(null,"fill-rule","nonzero");var Ct=o.createNS("http://www.w3.org/2000/svg","g");Ct.setAttributeNS(null,"transform","translate(3.0, 29.0)"),Ct.setAttributeNS(null,"fill","#000000");for(var dr=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],Mr=0,ur=dr;Mr=K}this._isDragging&&(this._pos=O.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},R.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},R.prototype._addDragHandler=function(O){this._element.contains(O.originalEvent.target)&&(O.preventDefault(),this._positionDelta=O.point.sub(this._pos).add(this._offset),this._pointerdownPos=O.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},R.prototype.setDraggable=function(O){return this._draggable=!!O,this._map&&(O?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},R.prototype.isDraggable=function(){return this._draggable},R.prototype.setRotation=function(O){return this._rotation=O||0,this._update(),this},R.prototype.getRotation=function(){return this._rotation},R.prototype.setRotationAlignment=function(O){return this._rotationAlignment=O||"auto",this._update(),this},R.prototype.getRotationAlignment=function(){return this._rotationAlignment},R.prototype.setPitchAlignment=function(O){return this._pitchAlignment=O&&O!=="auto"?O:this._rotationAlignment,this._update(),this},R.prototype.getPitchAlignment=function(){return this._pitchAlignment},R}(i.Evented),Mo={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},nl;function pl(Y){nl!==void 0?Y(nl):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(R){nl=R.state!=="denied",Y(nl)}):(nl=!!i.window.navigator.geolocation,Y(nl))}var Dl=0,Fu=!1,mf=function(Y){function R(J){Y.call(this),this.options=i.extend({},Mo,J),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.onAdd=function(O){return this._map=O,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),pl(this._setupUI),this._container},R.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),o.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Dl=0,Fu=!1},R.prototype._isOutOfMapMaxBounds=function(O){var K=this._map.getMaxBounds(),ge=O.coords;return K&&(ge.longitudeK.getEast()||ge.latitudeK.getNorth())},R.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},R.prototype._onSuccess=function(O){if(this._map){if(this._isOutOfMapMaxBounds(O)){this._setErrorState(),this.fire(new i.Event("outofmaxbounds",O)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=O,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(O),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(O),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",O)),this._finish()}},R.prototype._updateCamera=function(O){var K=new i.LngLat(O.coords.longitude,O.coords.latitude),ge=O.coords.accuracy,ne=this._map.getBearing(),Le=i.extend({bearing:ne},this.options.fitBoundsOptions);this._map.fitBounds(K.toBounds(ge),Le,{geolocateSource:!0})},R.prototype._updateMarker=function(O){if(O){var K=new i.LngLat(O.coords.longitude,O.coords.latitude);this._accuracyCircleMarker.setLngLat(K).addTo(this._map),this._userLocationDotMarker.setLngLat(K).addTo(this._map),this._accuracy=O.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},R.prototype._updateCircleRadius=function(){var O=this._map._container.clientHeight/2,K=this._map.unproject([0,O]),ge=this._map.unproject([1,O]),ne=K.distanceTo(ge),Le=Math.ceil(2*this._accuracy/ne);this._circleElement.style.width=Le+"px",this._circleElement.style.height=Le+"px"},R.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},R.prototype._onError=function(O){if(this._map){if(this.options.trackUserLocation)if(O.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var K=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=K,this._geolocateButton.setAttribute("aria-label",K),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(O.code===3&&Fu)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",O)),this._finish()}},R.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},R.prototype._setupUI=function(O){var K=this;if(this._container.addEventListener("contextmenu",function(Le){return Le.preventDefault()}),this._geolocateButton=o.create("button","mapboxgl-ctrl-geolocate",this._container),o.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",O===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var ge=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=ge,this._geolocateButton.setAttribute("aria-label",ge)}else{var ne=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=ne,this._geolocateButton.setAttribute("aria-label",ne)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=o.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Qn(this._dotElement),this._circleElement=o.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Qn({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(Le){var Ze=Le.originalEvent&&Le.originalEvent.type==="resize";!Le.geolocateSource&&K._watchState==="ACTIVE_LOCK"&&!Ze&&(K._watchState="BACKGROUND",K._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),K._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),K.fire(new i.Event("trackuserlocationend")))})},R.prototype.trigger=function(){if(!this._setup)return i.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Dl--,Fu=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Dl++;var O;Dl>1?(O={maximumAge:6e5,timeout:0},Fu=!0):(O=this.options.positionOptions,Fu=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,O)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},R.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},R}(i.Evented),Ql={maxWidth:100,unit:"metric"},kf=function(R){this.options=i.extend({},Ql,R),i.bindAll(["_onMove","setUnit"],this)};kf.prototype.getDefaultPosition=function(){return"bottom-left"},kf.prototype._onMove=function(){Cu(this._map,this._container,this.options)},kf.prototype.onAdd=function(R){return this._map=R,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",R.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},kf.prototype.onRemove=function(){o.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},kf.prototype.setUnit=function(R){this.options.unit=R,Cu(this._map,this._container,this.options)};function Cu(Y,R,J){var O=J&&J.maxWidth||100,K=Y._container.clientHeight/2,ge=Y.unproject([0,K]),ne=Y.unproject([O,K]),Le=ge.distanceTo(ne);if(J&&J.unit==="imperial"){var Ze=3.2808*Le;if(Ze>5280){var Ct=Ze/5280;_f(R,O,Ct,Y._getUIString("ScaleControl.Miles"))}else _f(R,O,Ze,Y._getUIString("ScaleControl.Feet"))}else if(J&&J.unit==="nautical"){var dr=Le/1852;_f(R,O,dr,Y._getUIString("ScaleControl.NauticalMiles"))}else Le>=1e3?_f(R,O,Le/1e3,Y._getUIString("ScaleControl.Kilometers")):_f(R,O,Le,Y._getUIString("ScaleControl.Meters"))}function _f(Y,R,J,O){var K=Lf(J),ge=K/J;Y.style.width=R*ge+"px",Y.innerHTML=K+" "+O}function bf(Y){var R=Math.pow(10,Math.ceil(-Math.log(Y)/Math.LN10));return Math.round(Y*R)/R}function Lf(Y){var R=Math.pow(10,(""+Math.floor(Y)).length-1),J=Y/R;return J=J>=10?10:J>=5?5:J>=3?3:J>=2?2:J>=1?1:bf(J),R*J}var Gu=function(R){this._fullscreen=!1,R&&R.container&&(R.container instanceof i.window.HTMLElement?this._container=R.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};Gu.prototype.onAdd=function(R){return this._map=R,this._container||(this._container=this._map.getContainer()),this._controlContainer=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Gu.prototype.onRemove=function(){o.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Gu.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},Gu.prototype._setupUI=function(){var R=this._fullscreenButton=o.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);o.create("span","mapboxgl-ctrl-icon",R).setAttribute("aria-hidden",!0),R.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Gu.prototype._updateTitle=function(){var R=this._getTitle();this._fullscreenButton.setAttribute("aria-label",R),this._fullscreenButton.title=R},Gu.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Gu.prototype._isFullscreen=function(){return this._fullscreen},Gu.prototype._changeIcon=function(){var R=i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement;R===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Gu.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var hf={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},yf=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Fl=function(Y){function R(J){Y.call(this),this.options=i.extend(Object.create(hf),J),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.addTo=function(O){return this._map&&this.remove(),this._map=O,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},R.prototype.isOpen=function(){return!!this._map},R.prototype.remove=function(){return this._content&&o.remove(this._content),this._container&&(o.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new i.Event("close")),this},R.prototype.getLngLat=function(){return this._lngLat},R.prototype.setLngLat=function(O){return this._lngLat=i.LngLat.convert(O),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},R.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},R.prototype.getElement=function(){return this._container},R.prototype.setText=function(O){return this.setDOMContent(i.window.document.createTextNode(O))},R.prototype.setHTML=function(O){var K=i.window.document.createDocumentFragment(),ge=i.window.document.createElement("body"),ne;for(ge.innerHTML=O;ne=ge.firstChild,!!ne;)K.appendChild(ne);return this.setDOMContent(K)},R.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},R.prototype.setMaxWidth=function(O){return this.options.maxWidth=O,this._update(),this},R.prototype.setDOMContent=function(O){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=o.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(O),this._createCloseButton(),this._update(),this._focusFirstElement(),this},R.prototype.addClassName=function(O){this._container&&this._container.classList.add(O)},R.prototype.removeClassName=function(O){this._container&&this._container.classList.remove(O)},R.prototype.setOffset=function(O){return this.options.offset=O,this._update(),this},R.prototype.toggleClassName=function(O){if(this._container)return this._container.classList.toggle(O)},R.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=o.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},R.prototype._onMouseUp=function(O){this._update(O.point)},R.prototype._onMouseMove=function(O){this._update(O.point)},R.prototype._onDrag=function(O){this._update(O.point)},R.prototype._update=function(O){var K=this,ge=this._lngLat||this._trackPointer;if(!(!this._map||!ge||!this._content)&&(this._container||(this._container=o.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=o.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Je){return K._container.classList.add(Je)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Va(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!O))){var ne=this._pos=this._trackPointer&&O?O:this._map.project(this._lngLat),Le=this.options.anchor,Ze=wf(this.options.offset);if(!Le){var Ct=this._container.offsetWidth,dr=this._container.offsetHeight,Mr;ne.y+Ze.bottom.ythis._map.transform.height-dr?Mr=["bottom"]:Mr=[],ne.xthis._map.transform.width-Ct/2&&Mr.push("right"),Mr.length===0?Le="bottom":Le=Mr.join("-")}var ur=ne.add(Ze[Le]).round();o.setTransform(this._container,_s[Le]+" translate("+ur.x+"px,"+ur.y+"px)"),ul(this._container,Le,"popup")}},R.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var O=this._container.querySelector(yf);O&&O.focus()}},R.prototype._onClose=function(){this.remove()},R}(i.Evented);function wf(Y){if(Y)if(typeof Y=="number"){var R=Math.round(Math.sqrt(.5*Math.pow(Y,2)));return{center:new i.Point(0,0),top:new i.Point(0,Y),"top-left":new i.Point(R,R),"top-right":new i.Point(-R,R),bottom:new i.Point(0,-Y),"bottom-left":new i.Point(R,-R),"bottom-right":new i.Point(-R,-R),left:new i.Point(Y,0),right:new i.Point(-Y,0)}}else if(Y instanceof i.Point||Array.isArray(Y)){var J=i.Point.convert(Y);return{center:J,top:J,"top-left":J,"top-right":J,bottom:J,"bottom-left":J,"bottom-right":J,left:J,right:J}}else return{center:i.Point.convert(Y.center||[0,0]),top:i.Point.convert(Y.top||[0,0]),"top-left":i.Point.convert(Y["top-left"]||[0,0]),"top-right":i.Point.convert(Y["top-right"]||[0,0]),bottom:i.Point.convert(Y.bottom||[0,0]),"bottom-left":i.Point.convert(Y["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(Y["bottom-right"]||[0,0]),left:i.Point.convert(Y.left||[0,0]),right:i.Point.convert(Y.right||[0,0])};else return wf(new i.Point(0,0))}var cu={version:i.version,supported:a,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:Ui,NavigationControl:On,GeolocateControl:mf,AttributionControl:ua,ScaleControl:kf,FullscreenControl:Gu,Popup:Fl,Marker:Qn,Style:jn,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:Yr,clearPrewarmedResources:oi,get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(Y){i.config.ACCESS_TOKEN=Y},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(Y){i.config.API_URL=Y},get workerCount(){return Ei.workerCount},set workerCount(Y){Ei.workerCount=Y},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(Y){i.config.MAX_PARALLEL_IMAGE_REQUESTS=Y},clearStorage:function(R){i.clearTileCache(R)},workerUrl:""};return cu}),r})});var CGe=Te((ibr,kGe)=>{"use strict";var tw=ei(),ejt=Zf().sanitizeHTML,tjt=fJ(),SGe=f1();function MGe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=SGe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var im=MGe.prototype;im.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=nB(t)};im.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};im.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};im.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};im.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};im.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapboxLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};im.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!nB(e)){var r=rjt(e);t.addSource(this.idSource,r)}};im.findFollowingMapboxLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function EGe(e){var t={},r={};switch(e.type){case"circle":tw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":tw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":tw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=tjt(n.textposition,n.iconsize);tw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),tw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":tw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function rjt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=ejt(e.sourceattribution)),n}kGe.exports=function(t,r,n){var i=new MGe(t,r);return i.update(n),i}});var OGe=Te((nbr,BGe)=>{"use strict";var yJ=mJ(),gJ=ei(),IGe=nx(),LGe=$l(),ijt=wu(),njt=gp(),aB=jc(),RGe=Sm(),ajt=RGe.drawMode,ojt=RGe.selectMode,sjt=nh().prepSelect,ljt=nh().clearOutline,ujt=nh().clearSelectionsCache,fjt=nh().selectOnClick,_x=f1(),cjt=CGe();function DGe(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Hh=DGe.prototype;Hh.plot=function(e,t,r){var n=this,i=t[n.id];n.map&&i.accesstoken!==n.accessToken&&(n.map.remove(),n.map=null,n.styleObj=null,n.traceHash={},n.layerList=[]);var a;n.map?a=new Promise(function(o,s){n.updateMap(e,t,o,s)}):a=new Promise(function(o,s){n.createMap(e,t,o,s)}),r.push(a)};Hh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=FGe(a.style,t);i.accessToken=a.accesstoken;var s=a.bounds,u=s?[[s.west,s.south],[s.east,s.north]]:null,l=i.map=new yJ.Map({container:i.div,style:o.style,center:_J(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:u,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new yJ.AttributionControl({compact:!0}));l._canvas.style.left="0px",l._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var f=[];f.push(new Promise(function(c){l.once("load",c)})),f=f.concat(IGe.fetchTraceGeoData(e)),Promise.all(f).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Hh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],u=FGe(o.style,t);JSON.stringify(i.styleObj)!==JSON.stringify(u)&&(i.styleObj=u,a.setStyle(u.style),i.traceHash={},s.push(new Promise(function(l){a.once("styledata",l)}))),s=s.concat(IGe.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Hh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&fjt(u.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),l.indexOf("event")>-1&&aB.click(n,u.originalEvent)}}};Hh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(u){var l=t.map.unproject(u);return[l.lng,l.lat]}var a=e.dragmode,o;o=function(u,l){if(l.isRect){var f=u.range={};f[t.id]=[i([l.xmin,l.ymin]),i([l.xmax,l.ymax])]}else{var c=u.lassoPoints={};c[t.id]=l.map(i)}};var s=t.dragOptions;t.dragOptions=gJ.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),ojt(a)||ajt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(u,l,f){sjt(u,l,f,t.dragOptions,a)},njt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Hh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Hh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var xJ=ei(),hjt=C_(),djt=Jd(),qGe=Dk();NGe.exports=function(t,r,n){hjt(t,r,n,{type:"mapbox",attributes:qGe,handleDefaults:pjt,partition:"y",accessToken:r._mapboxAccessToken})};function pjt(e,t,r,n){r("accesstoken",n.accessToken),r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var i=r("bounds.west"),a=r("bounds.east"),o=r("bounds.south"),s=r("bounds.north");(i===void 0||a===void 0||o===void 0||s===void 0)&&delete t.bounds,djt(e,t,{name:"layers",handleItemDefaults:vjt}),t._input=e}function vjt(e,t){function r(u,l){return xJ.coerce(e,t,qGe.layers,u,l)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",xJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),xJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var oB=Te(qv=>{"use strict";var VGe=mJ(),ty=ei(),bJ=ty.strTranslate,mjt=ty.strScale,yjt=Rd().getSubplotCalcData,gjt=jv(),_jt=Jl(),GGe=Mu(),xjt=Zf(),bjt=OGe(),xx="mapbox",Qy=qv.constants=f1();qv.name=xx;qv.attr="subplot";qv.idRoot=xx;qv.idRegex=qv.attrRegex=ty.counterRegex(xx);var wjt=["mapbox subplots and traces are deprecated!","Please consider switching to `map` subplots and traces.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");qv.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}};qv.layoutAttributes=Dk();qv.supplyLayoutDefaults=UGe();var HGe=!0;qv.plot=function(t){HGe&&(HGe=!1,ty.warn(wjt));var r=t._fullLayout,n=t.calcdata,i=r._subplots[xx];if(VGe.version!==Qy.requiredVersion)throw new Error(Qy.wrongVersionErrorMsg);var a=Ajt(t,i);VGe.accessToken=a;for(var o=0;ov/2){var k=d.split("|").join("
");x.text(k).attr("data-unformatted",k).call(xjt.convertToTspans,e),b=GGe.bBox(x.node())}x.attr("transform",bJ(-3,-b.height+8)),p.insert("rect",".static-attribution").attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:"rgba(255, 255, 255, 0.75)"});var E=1;b.width+6>v&&(E=v/(b.width+6));var T=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];p.attr("transform",bJ(T[0],T[1])+mjt(E))}};function Ajt(e,t){var r=e._fullLayout,n=e._context;if(n.mapboxAccessToken==="")return"";for(var i=[],a=[],o=!1,s=!1,u=0;u1&&ty.warn(Qy.multipleTokensErrorMsg),i[0]):(a.length&&ty.log(["Listed mapbox access token(s)",a.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function WGe(e){return typeof e=="string"&&(Qy.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}qv.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[xx],n=0;n{"use strict";var sbr=["*scattermapbox* trace is deprecated!","Please consider switching to the *scattermap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");jGe.exports={attributes:$8(),supplyDefaults:nGe(),colorbar:ep(),formatLabels:uJ(),calc:fF(),plot:gGe(),hoverPoints:iB().hoverPoints,eventData:wGe(),selectPoints:TGe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:oB(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var YGe=Te((ubr,ZGe)=>{"use strict";ZGe.exports=XGe()});var wJ=Te((fbr,KGe)=>{"use strict";var c1=JT(),Tjt=nc(),Sjt=Hu().hovertemplateAttrs,Mjt=Vf(),bx=Su().extendFlat;KGe.exports=bx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:bx({},c1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:c1.text,hovertext:c1.hovertext,marker:{line:{color:bx({},c1.marker.line.color,{editType:"plot"}),width:bx({},c1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:bx({},c1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:bx({},c1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:bx({},c1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:c1.hoverinfo,hovertemplate:Sjt({},{keys:["properties"]}),showlegend:bx({},Mjt.showlegend,{dflt:!1})},Tjt("",{cLetter:"z",editTypeOverride:"calc"}))});var $Ge=Te((cbr,JGe)=>{"use strict";var qk=ei(),Ejt=ed(),kjt=wJ();JGe.exports=function(t,r,n,i){function a(f,c){return qk.coerce(t,r,kjt,f,c)}var o=a("locations"),s=a("z"),u=a("geojson");if(!qk.isArrayOrTypedArray(o)||!o.length||!qk.isArrayOrTypedArray(s)||!s.length||!(typeof u=="string"&&u!==""||qk.isPlainObject(u))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate");var l=a("marker.line.width");l&&a("marker.line.color"),a("marker.opacity"),Ejt(t,r,i,a,{prefix:"",cLetter:"z"}),qk.coerceSelectionMarkerOpacity(r,a)}});var AJ=Te((hbr,tHe)=>{"use strict";var Cjt=ku(),h1=ei(),Ljt=_c(),Pjt=Mu(),zjt=rx().makeBlank,QGe=nx();function Ijt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:zjt()};if(!r)return a;var o=QGe.extractTraceFeature(e);if(!o)return a;var s=Ljt.makeColorScaleFuncFromTrace(t),u=t.marker,l=u.line||{},f;h1.isArrayOrTypedArray(u.opacity)&&(f=function(k){var E=k.mo;return Cjt(E)?+h1.constrain(E,0,1):0});var c;h1.isArrayOrTypedArray(l.color)&&(c=function(k){return k.mlc});var h;h1.isArrayOrTypedArray(l.width)&&(h=function(k){return k.mlw});for(var d=0;d{"use strict";var iHe=AJ().convert,Rjt=AJ().convertOnSelect,rHe=f1().traceLayerPrefix;function nHe(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",rHe+t+"-fill"],["line",rHe+t+"-line"]],this.below=null}var AS=nHe.prototype;AS.update=function(e){this._update(iHe(e)),e[0].trace._glTrace=this};AS.updateOnSelect=function(e){this._update(Rjt(e))};AS._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};AS.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};aHe.exports=function(t,r){var n=r[0].trace,i=new nHe(t,n.uid),a=i.sourceId,o=iHe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var lHe=Te((vbr,sHe)=>{"use strict";var pbr=["*choroplethmapbox* trace is deprecated!","Please consider switching to the *choroplethmap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");sHe.exports={attributes:wJ(),supplyDefaults:$Ge(),colorbar:M_(),calc:zF(),plot:oHe(),hoverPoints:RF(),eventData:DF(),selectPoints:FF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";uHe.exports=lHe()});var SJ=Te((ybr,hHe)=>{"use strict";var Djt=nc(),Fjt=Hu().hovertemplateAttrs,cHe=Vf(),sB=$8(),TJ=Su().extendFlat;hHe.exports=TJ({lon:sB.lon,lat:sB.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:sB.text,hovertext:sB.hovertext,hoverinfo:TJ({},cHe.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:Fjt(),showlegend:TJ({},cHe.showlegend,{dflt:!1})},Djt("",{cLetter:"z",editTypeOverride:"calc"}))});var pHe=Te((gbr,dHe)=>{"use strict";var Bjt=ei(),Ojt=ed(),qjt=SJ();dHe.exports=function(t,r,n,i){function a(l,f){return Bjt.coerce(t,r,qjt,l,f)}var o=a("lon")||[],s=a("lat")||[],u=Math.min(o.length,s.length);if(!u){r.visible=!1;return}r._length=u,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),Ojt(t,r,i,a,{prefix:"",cLetter:"z"})}});var yHe=Te((_br,mHe)=>{"use strict";var MJ=ku(),Njt=ei().isArrayOrTypedArray,EJ=nf().BADNUM,Ujt=Dp(),vHe=ei()._;mHe.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=Njt(a)&&a.length,s=0;s{"use strict";var Vjt=ku(),kJ=ei(),gHe=jl(),_He=_c(),xHe=nf().BADNUM,Gjt=rx().makeBlank;bHe.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:Gjt()};if(!n)return a;var o=[],s,u=r.z,l=r.radius,f=kJ.isArrayOrTypedArray(u)&&u.length,c=kJ.isArrayOrTypedArray(l);for(s=0;s0?+l[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:p})}}var b=_He.extractOpts(r),v=b.reversescale?_He.flipScale(b.colorscale):b.colorscale,k=v[0][1],E=gHe.opacity(k)<1?k:gHe.addOpacity(k,0),T=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var AHe=wHe(),Hjt=f1().traceLayerPrefix;function THe(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",Hjt+t+"-heatmap"]],this.below=null}var lB=THe.prototype;lB.update=function(e){var t=this.subplot,r=this.layerList,n=AHe(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};lB.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};SHe.exports=function(t,r){var n=r[0].trace,i=new THe(t,n.uid),a=i.sourceId,o=AHe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var kHe=Te((wbr,EHe)=>{"use strict";var Wjt=wu(),jjt=iB().hoverPoints,Xjt=iB().getExtraText;EHe.exports=function(t,r,n){var i=jjt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,u=o[a.index];if(delete a.color,"z"in u){var l=a.subplot.mockAxis;a.z=u.z,a.zLabel=Wjt.tickText(l,l.c2l(u.z),"hover").text}return a.extraText=Xjt(s,u,o[0].t.labels),[a]}}});var LHe=Te((Abr,CHe)=>{"use strict";CHe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var zHe=Te((Sbr,PHe)=>{"use strict";var Tbr=["*densitymapbox* trace is deprecated!","Please consider switching to the *densitymap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");PHe.exports={attributes:SJ(),supplyDefaults:pHe(),colorbar:M_(),formatLabels:uJ(),calc:yHe(),plot:MHe(),hoverPoints:kHe(),eventData:LHe(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";IHe.exports=zHe()});var FHe=Te((Ebr,DHe)=>{DHe.exports={version:8,name:"orto",metadata:{"maputnik:renderer":"mlgljs"},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}},{id:"waterway_tunnel",type:"line",source:"openmaptiles","source-layer":"waterway",minzoom:14,filter:["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]},"line-dasharray":[2,4]}},{id:"waterway-other",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["!in","class","canal","river","stream"],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,2]]}}},{id:"waterway-stream-canal",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["in","class","canal","stream"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]}}},{id:"waterway-river",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["==","class","river"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.2,stops:[[10,.8],[20,4]]},"line-opacity":.5}},{id:"water-offset",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",maxzoom:8,filter:["==","$type","Polygon"],layout:{visibility:"visible"},paint:{"fill-opacity":0,"fill-color":"#a0c8f0","fill-translate":{base:1,stops:[[6,[2,0]],[8,[0,0]]]}}},{id:"water",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0}},{id:"water-pattern",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-translate":[0,2.5],"fill-pattern":"wave","fill-opacity":1}},{id:"landcover-ice-shelf",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"landcover",filter:["==","subclass","ice_shelf"],layout:{visibility:"visible"},paint:{"fill-color":"#fff","fill-opacity":{base:1,stops:[[0,.9],[10,.3]]}}},{id:"tunnel-service-track-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[15,1],[16,4],[20,11]]}}},{id:"tunnel-minor-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,1]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"tunnel-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"tunnel-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.7}},{id:"tunnel-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"tunnel-path",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"tunnel-service-track",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-width":{base:1.2,stops:[[15.5,0],[16,2],[20,7.5]]}}},{id:"tunnel-minor",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor_road"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-opacity":1,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"tunnel-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,10]]}}},{id:"tunnel-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-motorway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#ffdaa6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-railway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]},"line-dasharray":[2,2]}},{id:"ferry",type:"line",source:"openmaptiles","source-layer":"transportation",filter:["all",["in","class","ferry"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(108, 159, 182, 1)","line-width":1.1,"line-dasharray":[2,2]}},{id:"aeroway-taxiway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","taxiway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,2],[17,12]]},"line-opacity":1}},{id:"aeroway-runway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","runway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,5],[17,55]]},"line-opacity":1}},{id:"aeroway-taxiway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","taxiway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,1],[17,10]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"aeroway-runway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","runway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,4],[17,50]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"highway-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-minor-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,0]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"highway-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":.5,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"highway-primary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[7,0],[8,.6]]},"line-width":{base:1.2,stops:[[7,0],[8,.6],[9,1.5],[20,22]]}}},{id:"highway-trunk-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[5,0],[6,.5]]},"line-width":{base:1.2,stops:[[5,0],[6,.6],[7,1.5],[20,22]]}}},{id:"highway-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:4,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[4,0],[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":{stops:[[4,0],[5,.5]]}}},{id:"highway-path",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"highway-motorway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-minor",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fff","line-opacity":.5,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"highway-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[8,.5],[20,13]]},"line-opacity":.5}},{id:"highway-primary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[8.5,0],[9,.5],[20,18]]},"line-opacity":0}},{id:"highway-trunk",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"highway-motorway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"railway-transit",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-transit-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway-service",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-service-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"railway-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"bridge-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,28]]}}},{id:"bridge-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"hsl(28, 76%, 67%)","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,26]]}}},{id:"bridge-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"bridge-path-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#f8f4f0","line-width":{base:1.2,stops:[[15,1.2],[20,18]]}}},{id:"bridge-path",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#cba","line-width":{base:1.2,stops:[[15,1.2],[20,4]]},"line-dasharray":[1.5,.75]}},{id:"bridge-motorway-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,20]]}}},{id:"bridge-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]}}},{id:"bridge-motorway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"bridge-railway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"bridge-railway-hatching",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"cablecar",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,1],[19,2.5]]}}},{id:"cablecar-dash",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,3],[19,5.5]]},"line-dasharray":[2,3]}},{id:"boundary-land-level-4",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],layout:{"line-join":"round"},paint:{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{base:1.4,stops:[[4,.4],[5,1],[12,3]]},"line-opacity":.6}},{id:"boundary-land-level-2",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 66%)","line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,2]]}}},{id:"boundary-land-disputed",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["!=","maritime",1],["==","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,8]]}}},{id:"boundary-water",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["in","admin_level",2,4],["==","maritime",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"rgba(154, 189, 214, 1)","line-width":{base:1,stops:[[0,.6],[4,1],[5,1],[12,1]]},"line-opacity":{stops:[[6,0],[10,0]]}}},{id:"waterway-name",type:"symbol",source:"openmaptiles","source-layer":"waterway",minzoom:13,filter:["all",["==","$type","LineString"],["has","name"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin} {name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","text-letter-spacing":.2,"symbol-spacing":350},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-lakeline",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["==","$type","LineString"],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":`{name:latin} +`),Ot=Pe.createShader(Pe.FRAGMENT_SHADER);if(Pe.isContextLost()){this.failedToCreate=!0;return}Pe.shaderSource(Ot,ur),Pe.compileShader(Ot),Pe.attachShader(this.program,Ot);var Jt=Pe.createShader(Pe.VERTEX_SHADER);if(Pe.isContextLost()){this.failedToCreate=!0;return}Pe.shaderSource(Jt,er),Pe.compileShader(Jt),Pe.attachShader(this.program,Jt),this.attributes={};var Lt={};this.numAttributes=dr.length;for(var Tr=0;Tr>16,Pe>>16],u_pixel_coord_lower:[ne&65535,Pe&65535]}}function cl(Y,R,J,O){var K=J.imageManager.getPattern(Y.from.toString()),_e=J.imageManager.getPattern(Y.to.toString()),ne=J.imageManager.getPixelSize(),Pe=ne.width,Ze=ne.height,Ct=Math.pow(2,O.tileID.overscaledZ),dr=O.tileSize*Math.pow(2,J.transform.tileZoom)/Ct,Er=dr*(O.tileID.canonical.x+O.tileID.wrap*Ct),lr=dr*O.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:K.tl,u_pattern_br_a:K.br,u_pattern_tl_b:_e.tl,u_pattern_br_b:_e.br,u_texsize:[Pe,Ze],u_mix:R.t,u_pattern_size_a:K.displaySize,u_pattern_size_b:_e.displaySize,u_scale_a:R.fromScale,u_scale_b:R.toScale,u_tile_units_to_pixels:1/uo(O,1,J.transform.tileZoom),u_pixel_coord_upper:[Er>>16,lr>>16],u_pixel_coord_lower:[Er&65535,lr&65535]}}var el=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_lightpos:new i.Uniform3f(Y,R.u_lightpos),u_lightintensity:new i.Uniform1f(Y,R.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,R.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,R.u_vertical_gradient),u_opacity:new i.Uniform1f(Y,R.u_opacity)}},Hs=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_lightpos:new i.Uniform3f(Y,R.u_lightpos),u_lightintensity:new i.Uniform1f(Y,R.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,R.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,R.u_vertical_gradient),u_height_factor:new i.Uniform1f(Y,R.u_height_factor),u_image:new i.Uniform1i(Y,R.u_image),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,R.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,R.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,R.u_scale),u_fade:new i.Uniform1f(Y,R.u_fade),u_opacity:new i.Uniform1f(Y,R.u_opacity)}},Ro=function(Y,R,J,O){var K=R.style.light,_e=K.properties.get("position"),ne=[_e.x,_e.y,_e.z],Pe=i.create$1();K.properties.get("anchor")==="viewport"&&i.fromRotation(Pe,-R.transform.angle),i.transformMat3(ne,ne,Pe);var Ze=K.properties.get("color");return{u_matrix:Y,u_lightpos:ne,u_lightintensity:K.properties.get("intensity"),u_lightcolor:[Ze.r,Ze.g,Ze.b],u_vertical_gradient:+J,u_opacity:O}},tl=function(Y,R,J,O,K,_e,ne){return i.extend(Ro(Y,R,J,O),fs(_e,R,ne),{u_height_factor:-Math.pow(2,K.overscaledZ)/ne.tileSize/8})},Fs=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix)}},hl=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_image:new i.Uniform1i(Y,R.u_image),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,R.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,R.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,R.u_scale),u_fade:new i.Uniform1f(Y,R.u_fade)}},Fa=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_world:new i.Uniform2f(Y,R.u_world)}},Ms=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_world:new i.Uniform2f(Y,R.u_world),u_image:new i.Uniform1i(Y,R.u_image),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,R.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,R.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,R.u_scale),u_fade:new i.Uniform1f(Y,R.u_fade)}},jo=function(Y){return{u_matrix:Y}},Rs=function(Y,R,J,O){return i.extend(jo(Y),fs(J,R,O))},Is=function(Y,R){return{u_matrix:Y,u_world:R}},Bs=function(Y,R,J,O,K){return i.extend(Rs(Y,R,J,O),{u_world:K})},At=function(Y,R){return{u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(Y,R.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(Y,R.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(Y,R.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix)}},Gt=function(Y,R,J,O){var K=Y.transform,_e,ne;if(O.paint.get("circle-pitch-alignment")==="map"){var Pe=uo(J,1,K.zoom);_e=!0,ne=[Pe,Pe]}else _e=!1,ne=K.pixelsToGLUnits;return{u_camera_to_center_distance:K.cameraToCenterDistance,u_scale_with_map:+(O.paint.get("circle-pitch-scale")==="map"),u_matrix:Y.translatePosMatrix(R.posMatrix,J,O.paint.get("circle-translate"),O.paint.get("circle-translate-anchor")),u_pitch_with_map:+_e,u_device_pixel_ratio:i.browser.devicePixelRatio,u_extrude_scale:ne}},wr=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(Y,R.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(Y,R.u_extrude_scale),u_overscale_factor:new i.Uniform1f(Y,R.u_overscale_factor)}},mr=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_inv_matrix:new i.UniformMatrix4f(Y,R.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(Y,R.u_viewport_size)}},Or=function(Y,R,J){var O=uo(J,1,R.zoom),K=Math.pow(2,R.zoom-J.tileID.overscaledZ),_e=J.tileID.overscaleFactor();return{u_matrix:Y,u_camera_to_center_distance:R.cameraToCenterDistance,u_pixels_to_tile_units:O,u_extrude_scale:[R.pixelsToGLUnits[0]/(O*K),R.pixelsToGLUnits[1]/(O*K)],u_overscale_factor:_e}},gi=function(Y,R,J){return{u_matrix:Y,u_inv_matrix:R,u_camera_to_center_distance:J.cameraToCenterDistance,u_viewport_size:[J.width,J.height]}},Ti=function(Y,R){return{u_color:new i.UniformColor(Y,R.u_color),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_overlay:new i.Uniform1i(Y,R.u_overlay),u_overlay_scale:new i.Uniform1f(Y,R.u_overlay_scale)}},ki=function(Y,R,J){return J===void 0&&(J=1),{u_matrix:Y,u_color:R,u_overlay:0,u_overlay_scale:J}},Ji=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix)}},Fn=function(Y){return{u_matrix:Y}},Pi=function(Y,R){return{u_extrude_scale:new i.Uniform1f(Y,R.u_extrude_scale),u_intensity:new i.Uniform1f(Y,R.u_intensity),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix)}},hi=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_world:new i.Uniform2f(Y,R.u_world),u_image:new i.Uniform1i(Y,R.u_image),u_color_ramp:new i.Uniform1i(Y,R.u_color_ramp),u_opacity:new i.Uniform1f(Y,R.u_opacity)}},Li=function(Y,R,J,O){return{u_matrix:Y,u_extrude_scale:uo(R,1,J),u_intensity:O}},Si=function(Y,R,J,O){var K=i.create();i.ortho(K,0,Y.width,Y.height,0,0,1);var _e=Y.context.gl;return{u_matrix:K,u_world:[_e.drawingBufferWidth,_e.drawingBufferHeight],u_image:J,u_color_ramp:O,u_opacity:R.paint.get("heatmap-opacity")}},Gn=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_image:new i.Uniform1i(Y,R.u_image),u_latrange:new i.Uniform2f(Y,R.u_latrange),u_light:new i.Uniform2f(Y,R.u_light),u_shadow:new i.UniformColor(Y,R.u_shadow),u_highlight:new i.UniformColor(Y,R.u_highlight),u_accent:new i.UniformColor(Y,R.u_accent)}},ta=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_image:new i.Uniform1i(Y,R.u_image),u_dimension:new i.Uniform2f(Y,R.u_dimension),u_zoom:new i.Uniform1f(Y,R.u_zoom),u_unpack:new i.Uniform4f(Y,R.u_unpack)}},ya=function(Y,R,J){var O=J.paint.get("hillshade-shadow-color"),K=J.paint.get("hillshade-highlight-color"),_e=J.paint.get("hillshade-accent-color"),ne=J.paint.get("hillshade-illumination-direction")*(Math.PI/180);J.paint.get("hillshade-illumination-anchor")==="viewport"&&(ne-=Y.transform.angle);var Pe=!Y.options.moving;return{u_matrix:Y.transform.calculatePosMatrix(R.tileID.toUnwrapped(),Pe),u_image:0,u_latrange:pa(Y,R.tileID),u_light:[J.paint.get("hillshade-exaggeration"),ne],u_shadow:O,u_highlight:K,u_accent:_e}},ia=function(Y,R){var J=R.stride,O=i.create();return i.ortho(O,0,i.EXTENT,-i.EXTENT,0,0,1),i.translate(O,O,[0,-i.EXTENT,0]),{u_matrix:O,u_image:1,u_dimension:[J,J],u_zoom:Y.overscaledZ,u_unpack:R.getUnpackVector()}};function pa(Y,R){var J=Math.pow(2,R.canonical.z),O=R.canonical.y;return[new i.MercatorCoordinate(0,O/J).toLngLat().lat,new i.MercatorCoordinate(0,(O+1)/J).toLngLat().lat]}var va=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_ratio:new i.Uniform1f(Y,R.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,R.u_units_to_pixels)}},zn=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_ratio:new i.Uniform1f(Y,R.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,R.u_units_to_pixels),u_image:new i.Uniform1i(Y,R.u_image),u_image_height:new i.Uniform1f(Y,R.u_image_height)}},is=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_ratio:new i.Uniform1f(Y,R.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_image:new i.Uniform1i(Y,R.u_image),u_units_to_pixels:new i.Uniform2f(Y,R.u_units_to_pixels),u_scale:new i.Uniform3f(Y,R.u_scale),u_fade:new i.Uniform1f(Y,R.u_fade)}},Cs=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_ratio:new i.Uniform1f(Y,R.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,R.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(Y,R.u_patternscale_a),u_patternscale_b:new i.Uniform2f(Y,R.u_patternscale_b),u_sdfgamma:new i.Uniform1f(Y,R.u_sdfgamma),u_image:new i.Uniform1i(Y,R.u_image),u_tex_y_a:new i.Uniform1f(Y,R.u_tex_y_a),u_tex_y_b:new i.Uniform1f(Y,R.u_tex_y_b),u_mix:new i.Uniform1f(Y,R.u_mix)}},Ks=function(Y,R,J){var O=Y.transform;return{u_matrix:eu(Y,R,J),u_ratio:1/uo(R,1,O.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_units_to_pixels:[1/O.pixelsToGLUnits[0],1/O.pixelsToGLUnits[1]]}},dl=function(Y,R,J,O){return i.extend(Ks(Y,R,J),{u_image:0,u_image_height:O})},xl=function(Y,R,J,O){var K=Y.transform,_e=bl(R,K);return{u_matrix:eu(Y,R,J),u_texsize:R.imageAtlasTexture.size,u_ratio:1/uo(R,1,K.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_image:0,u_scale:[_e,O.fromScale,O.toScale],u_fade:O.t,u_units_to_pixels:[1/K.pixelsToGLUnits[0],1/K.pixelsToGLUnits[1]]}},Ol=function(Y,R,J,O,K){var _e=Y.transform,ne=Y.lineAtlas,Pe=bl(R,_e),Ze=J.layout.get("line-cap")==="round",Ct=ne.getDash(O.from,Ze),dr=ne.getDash(O.to,Ze),Er=Ct.width*K.fromScale,lr=dr.width*K.toScale;return i.extend(Ks(Y,R,J),{u_patternscale_a:[Pe/Er,-Ct.height/2],u_patternscale_b:[Pe/lr,-dr.height/2],u_sdfgamma:ne.width/(Math.min(Er,lr)*256*i.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:Ct.y,u_tex_y_b:dr.y,u_mix:K.t})};function bl(Y,R){return 1/uo(Y,1,R.tileZoom)}function eu(Y,R,J){return Y.translatePosMatrix(R.tileID.posMatrix,R,J.paint.get("line-translate"),J.paint.get("line-translate-anchor"))}var Zl=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_tl_parent:new i.Uniform2f(Y,R.u_tl_parent),u_scale_parent:new i.Uniform1f(Y,R.u_scale_parent),u_buffer_scale:new i.Uniform1f(Y,R.u_buffer_scale),u_fade_t:new i.Uniform1f(Y,R.u_fade_t),u_opacity:new i.Uniform1f(Y,R.u_opacity),u_image0:new i.Uniform1i(Y,R.u_image0),u_image1:new i.Uniform1i(Y,R.u_image1),u_brightness_low:new i.Uniform1f(Y,R.u_brightness_low),u_brightness_high:new i.Uniform1f(Y,R.u_brightness_high),u_saturation_factor:new i.Uniform1f(Y,R.u_saturation_factor),u_contrast_factor:new i.Uniform1f(Y,R.u_contrast_factor),u_spin_weights:new i.Uniform3f(Y,R.u_spin_weights)}},Vl=function(Y,R,J,O,K){return{u_matrix:Y,u_tl_parent:R,u_scale_parent:J,u_buffer_scale:1,u_fade_t:O.mix,u_opacity:O.opacity*K.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:K.paint.get("raster-brightness-min"),u_brightness_high:K.paint.get("raster-brightness-max"),u_saturation_factor:Js(K.paint.get("raster-saturation")),u_contrast_factor:ns(K.paint.get("raster-contrast")),u_spin_weights:ja(K.paint.get("raster-hue-rotate"))}};function ja(Y){Y*=Math.PI/180;var R=Math.sin(Y),J=Math.cos(Y);return[(2*J+1)/3,(-Math.sqrt(3)*R-J+1)/3,(Math.sqrt(3)*R-J+1)/3]}function ns(Y){return Y>0?1/(1-Y):1+Y}function Js(Y){return Y>0?1-1/(1.001-Y):-Y}var cs=function(Y,R){return{u_is_size_zoom_constant:new i.Uniform1i(Y,R.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,R.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,R.u_size_t),u_size:new i.Uniform1f(Y,R.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,R.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,R.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,R.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,R.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,R.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,R.u_coord_matrix),u_is_text:new i.Uniform1i(Y,R.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,R.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_texture:new i.Uniform1i(Y,R.u_texture)}},sl=function(Y,R){return{u_is_size_zoom_constant:new i.Uniform1i(Y,R.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,R.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,R.u_size_t),u_size:new i.Uniform1f(Y,R.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,R.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,R.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,R.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,R.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,R.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,R.u_coord_matrix),u_is_text:new i.Uniform1i(Y,R.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,R.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_texture:new i.Uniform1i(Y,R.u_texture),u_gamma_scale:new i.Uniform1f(Y,R.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,R.u_is_halo)}},ll=function(Y,R){return{u_is_size_zoom_constant:new i.Uniform1i(Y,R.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,R.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,R.u_size_t),u_size:new i.Uniform1f(Y,R.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,R.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,R.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,R.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,R.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,R.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,R.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,R.u_coord_matrix),u_is_text:new i.Uniform1i(Y,R.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,R.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_texsize_icon:new i.Uniform2f(Y,R.u_texsize_icon),u_texture:new i.Uniform1i(Y,R.u_texture),u_texture_icon:new i.Uniform1i(Y,R.u_texture_icon),u_gamma_scale:new i.Uniform1f(Y,R.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,R.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,R.u_is_halo)}},il=function(Y,R,J,O,K,_e,ne,Pe,Ze,Ct){var dr=K.transform;return{u_is_size_zoom_constant:+(Y==="constant"||Y==="source"),u_is_size_feature_constant:+(Y==="constant"||Y==="camera"),u_size_t:R?R.uSizeT:0,u_size:R?R.uSize:0,u_camera_to_center_distance:dr.cameraToCenterDistance,u_pitch:dr.pitch/360*2*Math.PI,u_rotate_symbol:+J,u_aspect_ratio:dr.width/dr.height,u_fade_change:K.options.fadeDuration?K.symbolFadeChange:1,u_matrix:_e,u_label_plane_matrix:ne,u_coord_matrix:Pe,u_is_text:+Ze,u_pitch_with_map:+O,u_texsize:Ct,u_texture:0}},zl=function(Y,R,J,O,K,_e,ne,Pe,Ze,Ct,dr){var Er=K.transform;return i.extend(il(Y,R,J,O,K,_e,ne,Pe,Ze,Ct),{u_gamma_scale:O?Math.cos(Er._pitch)*Er.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+dr})},Ml=function(Y,R,J,O,K,_e,ne,Pe,Ze,Ct){return i.extend(zl(Y,R,J,O,K,_e,ne,Pe,!0,Ze,!0),{u_texsize_icon:Ct,u_texture_icon:1})},Rl=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_opacity:new i.Uniform1f(Y,R.u_opacity),u_color:new i.UniformColor(Y,R.u_color)}},Al=function(Y,R){return{u_matrix:new i.UniformMatrix4f(Y,R.u_matrix),u_opacity:new i.Uniform1f(Y,R.u_opacity),u_image:new i.Uniform1i(Y,R.u_image),u_pattern_tl_a:new i.Uniform2f(Y,R.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(Y,R.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(Y,R.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(Y,R.u_pattern_br_b),u_texsize:new i.Uniform2f(Y,R.u_texsize),u_mix:new i.Uniform1f(Y,R.u_mix),u_pattern_size_a:new i.Uniform2f(Y,R.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(Y,R.u_pattern_size_b),u_scale_a:new i.Uniform1f(Y,R.u_scale_a),u_scale_b:new i.Uniform1f(Y,R.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(Y,R.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,R.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(Y,R.u_tile_units_to_pixels)}},Ll=function(Y,R,J){return{u_matrix:Y,u_opacity:R,u_color:J}},ms=function(Y,R,J,O,K,_e){return i.extend(cl(O,_e,J,K),{u_matrix:Y,u_opacity:R})},Os={fillExtrusion:el,fillExtrusionPattern:Hs,fill:Fs,fillPattern:hl,fillOutline:Fa,fillOutlinePattern:Ms,circle:At,collisionBox:wr,collisionCircle:mr,debug:Ti,clippingMask:Ji,heatmap:Pi,heatmapTexture:hi,hillshade:Gn,hillshadePrepare:ta,line:va,lineGradient:zn,linePattern:is,lineSDF:Cs,raster:Zl,symbolIcon:cs,symbolSDF:sl,symbolTextAndIcon:ll,background:Rl,backgroundPattern:Al},Xl;function Gl(Y,R,J,O,K,_e,ne){for(var Pe=Y.context,Ze=Pe.gl,Ct=Y.useProgram("collisionBox"),dr=[],Er=0,lr=0,Ke=0;Ke0){var er=i.create(),Ot=sr;i.mul(er,Kt.placementInvProjMatrix,Y.transform.glCoordMatrix),i.mul(er,er,Kt.placementViewportMatrix),dr.push({circleArray:ur,circleOffset:lr,transform:Ot,invTransform:er}),Er+=ur.length/4,lr=Er}Qt&&Ct.draw(Pe,Ze.LINES,Ii.disabled,ii.disabled,Y.colorModeForRenderPass(),_r.disabled,Or(sr,Y.transform,bt),J.id,Qt.layoutVertexBuffer,Qt.indexBuffer,Qt.segments,null,Y.transform.zoom,null,null,Qt.collisionVertexBuffer)}}if(!(!ne||!dr.length)){var Jt=Y.useProgram("collisionCircle"),Lt=new i.StructArrayLayout2f1f2i16;Lt.resize(Er*4),Lt._trim();for(var Tr=0,Nr=0,ci=dr;Nr=0&&(ht[Kt.associatedIconIndex]={shiftedAnchor:yn,angle:Xa})}}if(dr){Ke.clear();for(var Tn=Y.icon.placedSymbolArray,Pn=0;Pn0){var ne=i.browser.now(),Pe=(ne-Y.timeAdded)/_e,Ze=R?(ne-R.timeAdded)/_e:-1,Ct=J.getSource(),dr=K.coveringZoomLevel({tileSize:Ct.tileSize,roundZoom:Ct.roundZoom}),Er=!R||Math.abs(R.tileID.overscaledZ-dr)>Math.abs(Y.tileID.overscaledZ-dr),lr=Er&&Y.refreshedUponExpiration?1:i.clamp(Er?Pe:1-Ze,0,1);return Y.refreshedUponExpiration&&Pe>=1&&(Y.refreshedUponExpiration=!1),R?{opacity:1,mix:1-lr}:{opacity:lr,mix:0}}else return{opacity:1,mix:0}}function fr(Y,R,J){var O=J.paint.get("background-color"),K=J.paint.get("background-opacity");if(K!==0){var _e=Y.context,ne=_e.gl,Pe=Y.transform,Ze=Pe.tileSize,Ct=J.paint.get("background-pattern");if(!Y.isPatternMissing(Ct)){var dr=!Ct&&O.a===1&&K===1&&Y.opaquePassEnabledForLayer()?"opaque":"translucent";if(Y.renderPass===dr){var Er=ii.disabled,lr=Y.depthModeForSublayer(0,dr==="opaque"?Ii.ReadWrite:Ii.ReadOnly),Ke=Y.colorModeForRenderPass(),ht=Y.useProgram(Ct?"backgroundPattern":"background"),bt=Pe.coveringTiles({tileSize:Ze});Ct&&(_e.activeTexture.set(ne.TEXTURE0),Y.imageManager.bind(Y.context));for(var Kt=J.getCrossfadeParameters(),sr=0,Qt=bt;sr "+J.overscaledZ);var sr=Kt+" "+Ke+"kb";ml(Y,sr),ne.draw(O,K.TRIANGLES,Pe,Ze,yt.alphaBlended,_r.disabled,ki(_e,i.Color.transparent,bt),dr,Y.debugBuffer,Y.quadTriangleIndexBuffer,Y.debugSegments)}function ml(Y,R){Y.initDebugOverlayCanvas();var J=Y.debugOverlayCanvas,O=Y.context.gl,K=Y.debugOverlayCanvas.getContext("2d");K.clearRect(0,0,J.width,J.height),K.shadowColor="white",K.shadowBlur=2,K.lineWidth=1.5,K.strokeStyle="white",K.textBaseline="top",K.font="bold 36px Open Sans, sans-serif",K.fillText(R,5,5),K.strokeText(R,5,5),Y.debugOverlayTexture.update(J),Y.debugOverlayTexture.bind(O.LINEAR,O.CLAMP_TO_EDGE)}function au(Y,R,J){var O=Y.context,K=J.implementation;if(Y.renderPass==="offscreen"){var _e=K.prerender;_e&&(Y.setCustomLayerDefaults(),O.setColorMode(Y.colorModeForRenderPass()),_e.call(K,O.gl,Y.transform.customLayerMatrix()),O.setDirty(),Y.setBaseState())}else if(Y.renderPass==="translucent"){Y.setCustomLayerDefaults(),O.setColorMode(Y.colorModeForRenderPass()),O.setStencilMode(ii.disabled);var ne=K.renderingMode==="3d"?new Ii(Y.context.gl.LEQUAL,Ii.ReadWrite,Y.depthRangeFor3D):Y.depthModeForSublayer(0,Ii.ReadOnly);O.setDepthMode(ne),K.render(O.gl,Y.transform.customLayerMatrix()),O.setDirty(),Y.setBaseState(),O.bindFramebuffer.set(null)}}var Sl={symbol:w,circle:mt,heatmap:Ft,line:Vr,fill:he,"fill-extrusion":qe,hillshade:lt,raster:Ht,background:fr,debug:vl,custom:au},Yl=function(R,J){this.context=new Lr(R),this.transform=J,this._tileTextures={},this.setup(),this.numSublayers=Ur.maxUnderzooming+Ur.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new As,this.gpuTimers={}};Yl.prototype.resize=function(R,J){if(this.width=R*i.browser.devicePixelRatio,this.height=J*i.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var O=0,K=this.style._order;O256&&this.clearStencil(),O.setColorMode(yt.disabled),O.setDepthMode(Ii.disabled);var _e=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ne=0,Pe=J;ne256&&this.clearStencil();var R=this.nextStencilID++,J=this.context.gl;return new ii({func:J.NOTEQUAL,mask:255},R,255,J.KEEP,J.KEEP,J.REPLACE)},Yl.prototype.stencilModeForClipping=function(R){var J=this.context.gl;return new ii({func:J.EQUAL,mask:255},this._tileClippingMaskIDs[R.key],0,J.KEEP,J.KEEP,J.REPLACE)},Yl.prototype.stencilConfigForOverlap=function(R){var J,O=this.context.gl,K=R.sort(function(Ct,dr){return dr.overscaledZ-Ct.overscaledZ}),_e=K[K.length-1].overscaledZ,ne=K[0].overscaledZ-_e+1;if(ne>1){this.currentStencilSource=void 0,this.nextStencilID+ne>256&&this.clearStencil();for(var Pe={},Ze=0;Ze=0;this.currentLayer--){var er=this.style._layers[K[this.currentLayer]],Ot=_e[er.source],Jt=Ze[er.source];this._renderTileClippingMasks(er,Jt),this.renderLayer(this,Ot,er,Jt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?J.pop():null},Yl.prototype.isPatternMissing=function(R){if(!R)return!1;if(!R.from||!R.to)return!0;var J=this.imageManager.getPattern(R.from.toString()),O=this.imageManager.getPattern(R.to.toString());return!J||!O},Yl.prototype.useProgram=function(R,J){this.cache=this.cache||{};var O=""+R+(J?J.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[O]||(this.cache[O]=new vs(this.context,R,io[R],J,Os[R],this._showOverdrawInspector)),this.cache[O]},Yl.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},Yl.prototype.setBaseState=function(){var R=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(R.FUNC_ADD)},Yl.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var R=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,R.RGBA)}},Yl.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var ql=function(R,J){this.points=R,this.planes=J};ql.fromInvProjectionMatrix=function(R,J,O){var K=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],_e=Math.pow(2,O),ne=K.map(function(Ct){return i.transformMat4([],Ct,R)}).map(function(Ct){return i.scale$1([],Ct,1/Ct[3]/J*_e)}),Pe=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],Ze=Pe.map(function(Ct){var dr=i.sub([],ne[Ct[0]],ne[Ct[1]]),Er=i.sub([],ne[Ct[2]],ne[Ct[1]]),lr=i.normalize([],i.cross([],dr,Er)),Ke=-i.dot(lr,ne[Ct[1]]);return lr.concat(Ke)});return new ql(ne,Ze)};var ou=function(R,J){this.min=R,this.max=J,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};ou.prototype.quadrant=function(R){for(var J=[R%2===0,R<2],O=i.clone$2(this.min),K=i.clone$2(this.max),_e=0;_e=0;if(ne===0)return 0;ne!==J.length&&(O=!1)}if(O)return 2;for(var Ze=0;Ze<3;Ze++){for(var Ct=Number.MAX_VALUE,dr=-Number.MAX_VALUE,Er=0;Erthis.max[Ze]-this.min[Ze])return 0}return 1};var Pu=function(R,J,O,K){if(R===void 0&&(R=0),J===void 0&&(J=0),O===void 0&&(O=0),K===void 0&&(K=0),isNaN(R)||R<0||isNaN(J)||J<0||isNaN(O)||O<0||isNaN(K)||K<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=R,this.bottom=J,this.left=O,this.right=K};Pu.prototype.interpolate=function(R,J,O){return J.top!=null&&R.top!=null&&(this.top=i.number(R.top,J.top,O)),J.bottom!=null&&R.bottom!=null&&(this.bottom=i.number(R.bottom,J.bottom,O)),J.left!=null&&R.left!=null&&(this.left=i.number(R.left,J.left,O)),J.right!=null&&R.right!=null&&(this.right=i.number(R.right,J.right,O)),this},Pu.prototype.getCenter=function(R,J){var O=i.clamp((this.left+R-this.right)/2,0,R),K=i.clamp((this.top+J-this.bottom)/2,0,J);return new i.Point(O,K)},Pu.prototype.equals=function(R){return this.top===R.top&&this.bottom===R.bottom&&this.left===R.left&&this.right===R.right},Pu.prototype.clone=function(){return new Pu(this.top,this.bottom,this.left,this.right)},Pu.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var iu=function(R,J,O,K,_e){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=_e===void 0?!0:_e,this._minZoom=R||0,this._maxZoom=J||22,this._minPitch=O==null?0:O,this._maxPitch=K==null?60:K,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Pu,this._posMatrixCache={},this._alignedPosMatrixCache={}},tu={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};iu.prototype.clone=function(){var R=new iu(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return R.tileSize=this.tileSize,R.latRange=this.latRange,R.width=this.width,R.height=this.height,R._center=this._center,R.zoom=this.zoom,R.angle=this.angle,R._fov=this._fov,R._pitch=this._pitch,R._unmodified=this._unmodified,R._edgeInsets=this._edgeInsets.clone(),R._calcMatrices(),R},tu.minZoom.get=function(){return this._minZoom},tu.minZoom.set=function(Y){this._minZoom!==Y&&(this._minZoom=Y,this.zoom=Math.max(this.zoom,Y))},tu.maxZoom.get=function(){return this._maxZoom},tu.maxZoom.set=function(Y){this._maxZoom!==Y&&(this._maxZoom=Y,this.zoom=Math.min(this.zoom,Y))},tu.minPitch.get=function(){return this._minPitch},tu.minPitch.set=function(Y){this._minPitch!==Y&&(this._minPitch=Y,this.pitch=Math.max(this.pitch,Y))},tu.maxPitch.get=function(){return this._maxPitch},tu.maxPitch.set=function(Y){this._maxPitch!==Y&&(this._maxPitch=Y,this.pitch=Math.min(this.pitch,Y))},tu.renderWorldCopies.get=function(){return this._renderWorldCopies},tu.renderWorldCopies.set=function(Y){Y===void 0?Y=!0:Y===null&&(Y=!1),this._renderWorldCopies=Y},tu.worldSize.get=function(){return this.tileSize*this.scale},tu.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},tu.size.get=function(){return new i.Point(this.width,this.height)},tu.bearing.get=function(){return-this.angle/Math.PI*180},tu.bearing.set=function(Y){var R=-i.wrap(Y,-180,180)*Math.PI/180;this.angle!==R&&(this._unmodified=!1,this.angle=R,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},tu.pitch.get=function(){return this._pitch/Math.PI*180},tu.pitch.set=function(Y){var R=i.clamp(Y,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==R&&(this._unmodified=!1,this._pitch=R,this._calcMatrices())},tu.fov.get=function(){return this._fov/Math.PI*180},tu.fov.set=function(Y){Y=Math.max(.01,Math.min(60,Y)),this._fov!==Y&&(this._unmodified=!1,this._fov=Y/180*Math.PI,this._calcMatrices())},tu.zoom.get=function(){return this._zoom},tu.zoom.set=function(Y){var R=Math.min(Math.max(Y,this.minZoom),this.maxZoom);this._zoom!==R&&(this._unmodified=!1,this._zoom=R,this.scale=this.zoomScale(R),this.tileZoom=Math.floor(R),this.zoomFraction=R-this.tileZoom,this._constrain(),this._calcMatrices())},tu.center.get=function(){return this._center},tu.center.set=function(Y){Y.lat===this._center.lat&&Y.lng===this._center.lng||(this._unmodified=!1,this._center=Y,this._constrain(),this._calcMatrices())},tu.padding.get=function(){return this._edgeInsets.toJSON()},tu.padding.set=function(Y){this._edgeInsets.equals(Y)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,Y,1),this._calcMatrices())},tu.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},iu.prototype.isPaddingEqual=function(R){return this._edgeInsets.equals(R)},iu.prototype.interpolatePadding=function(R,J,O){this._unmodified=!1,this._edgeInsets.interpolate(R,J,O),this._constrain(),this._calcMatrices()},iu.prototype.coveringZoomLevel=function(R){var J=(R.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/R.tileSize));return Math.max(0,J)},iu.prototype.getVisibleUnwrappedCoordinates=function(R){var J=[new i.UnwrappedTileID(0,R)];if(this._renderWorldCopies)for(var O=this.pointCoordinate(new i.Point(0,0)),K=this.pointCoordinate(new i.Point(this.width,0)),_e=this.pointCoordinate(new i.Point(this.width,this.height)),ne=this.pointCoordinate(new i.Point(0,this.height)),Pe=Math.floor(Math.min(O.x,K.x,_e.x,ne.x)),Ze=Math.floor(Math.max(O.x,K.x,_e.x,ne.x)),Ct=1,dr=Pe-Ct;dr<=Ze+Ct;dr++)dr!==0&&J.push(new i.UnwrappedTileID(dr,R));return J},iu.prototype.coveringTiles=function(R){var J=this.coveringZoomLevel(R),O=J;if(R.minzoom!==void 0&&JR.maxzoom&&(J=R.maxzoom);var K=i.MercatorCoordinate.fromLngLat(this.center),_e=Math.pow(2,J),ne=[_e*K.x,_e*K.y,0],Pe=ql.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,J),Ze=R.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Ze=J);var Ct=3,dr=function(Ki){return{aabb:new ou([Ki*_e,0,0],[(Ki+1)*_e,_e,0]),zoom:0,x:0,y:0,wrap:Ki,fullyVisible:!1}},Er=[],lr=[],Ke=J,ht=R.reparseOverscaled?O:J;if(this._renderWorldCopies)for(var bt=1;bt<=3;bt++)Er.push(dr(-bt)),Er.push(dr(bt));for(Er.push(dr(0));Er.length>0;){var Kt=Er.pop(),sr=Kt.x,Qt=Kt.y,ur=Kt.fullyVisible;if(!ur){var er=Kt.aabb.intersects(Pe);if(er===0)continue;ur=er===2}var Ot=Kt.aabb.distanceX(ne),Jt=Kt.aabb.distanceY(ne),Lt=Math.max(Math.abs(Ot),Math.abs(Jt)),Tr=Ct+(1<Tr&&Kt.zoom>=Ze){lr.push({tileID:new i.OverscaledTileID(Kt.zoom===Ke?ht:Kt.zoom,Kt.wrap,Kt.zoom,sr,Qt),distanceSq:i.sqrLen([ne[0]-.5-sr,ne[1]-.5-Qt])});continue}for(var Nr=0;Nr<4;Nr++){var ci=(sr<<1)+Nr%2,Cn=(Qt<<1)+(Nr>>1);Er.push({aabb:Kt.aabb.quadrant(Nr),zoom:Kt.zoom+1,x:ci,y:Cn,wrap:Kt.wrap,fullyVisible:ur})}}return lr.sort(function(Ki,yn){return Ki.distanceSq-yn.distanceSq}).map(function(Ki){return Ki.tileID})},iu.prototype.resize=function(R,J){this.width=R,this.height=J,this.pixelsToGLUnits=[2/R,-2/J],this._constrain(),this._calcMatrices()},tu.unmodified.get=function(){return this._unmodified},iu.prototype.zoomScale=function(R){return Math.pow(2,R)},iu.prototype.scaleZoom=function(R){return Math.log(R)/Math.LN2},iu.prototype.project=function(R){var J=i.clamp(R.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(R.lng)*this.worldSize,i.mercatorYfromLat(J)*this.worldSize)},iu.prototype.unproject=function(R){return new i.MercatorCoordinate(R.x/this.worldSize,R.y/this.worldSize).toLngLat()},tu.point.get=function(){return this.project(this.center)},iu.prototype.setLocationAtPoint=function(R,J){var O=this.pointCoordinate(J),K=this.pointCoordinate(this.centerPoint),_e=this.locationCoordinate(R),ne=new i.MercatorCoordinate(_e.x-(O.x-K.x),_e.y-(O.y-K.y));this.center=this.coordinateLocation(ne),this._renderWorldCopies&&(this.center=this.center.wrap())},iu.prototype.locationPoint=function(R){return this.coordinatePoint(this.locationCoordinate(R))},iu.prototype.pointLocation=function(R){return this.coordinateLocation(this.pointCoordinate(R))},iu.prototype.locationCoordinate=function(R){return i.MercatorCoordinate.fromLngLat(R)},iu.prototype.coordinateLocation=function(R){return R.toLngLat()},iu.prototype.pointCoordinate=function(R){var J=0,O=[R.x,R.y,0,1],K=[R.x,R.y,1,1];i.transformMat4(O,O,this.pixelMatrixInverse),i.transformMat4(K,K,this.pixelMatrixInverse);var _e=O[3],ne=K[3],Pe=O[0]/_e,Ze=K[0]/ne,Ct=O[1]/_e,dr=K[1]/ne,Er=O[2]/_e,lr=K[2]/ne,Ke=Er===lr?0:(J-Er)/(lr-Er);return new i.MercatorCoordinate(i.number(Pe,Ze,Ke)/this.worldSize,i.number(Ct,dr,Ke)/this.worldSize)},iu.prototype.coordinatePoint=function(R){var J=[R.x*this.worldSize,R.y*this.worldSize,0,1];return i.transformMat4(J,J,this.pixelMatrix),new i.Point(J[0]/J[3],J[1]/J[3])},iu.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},iu.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},iu.prototype.setMaxBounds=function(R){R?(this.lngRange=[R.getWest(),R.getEast()],this.latRange=[R.getSouth(),R.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},iu.prototype.calculatePosMatrix=function(R,J){J===void 0&&(J=!1);var O=R.key,K=J?this._alignedPosMatrixCache:this._posMatrixCache;if(K[O])return K[O];var _e=R.canonical,ne=this.worldSize/this.zoomScale(_e.z),Pe=_e.x+Math.pow(2,_e.z)*R.wrap,Ze=i.identity(new Float64Array(16));return i.translate(Ze,Ze,[Pe*ne,_e.y*ne,0]),i.scale(Ze,Ze,[ne/i.EXTENT,ne/i.EXTENT,1]),i.multiply(Ze,J?this.alignedProjMatrix:this.projMatrix,Ze),K[O]=new Float32Array(Ze),K[O]},iu.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},iu.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var R=-90,J=90,O=-180,K=180,_e,ne,Pe,Ze,Ct=this.size,dr=this._unmodified;if(this.latRange){var Er=this.latRange;R=i.mercatorYfromLat(Er[1])*this.worldSize,J=i.mercatorYfromLat(Er[0])*this.worldSize,_e=J-RJ&&(Ze=J-Kt)}if(this.lngRange){var sr=Ke.x,Qt=Ct.x/2;sr-QtK&&(Pe=K-Qt)}(Pe!==void 0||Ze!==void 0)&&(this.center=this.unproject(new i.Point(Pe!==void 0?Pe:Ke.x,Ze!==void 0?Ze:Ke.y))),this._unmodified=dr,this._constraining=!1}},iu.prototype._calcMatrices=function(){if(this.height){var R=this._fov/2,J=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(R)*this.height;var O=Math.PI/2+this._pitch,K=this._fov*(.5+J.y/this.height),_e=Math.sin(K)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-O-K,.01,Math.PI-.01)),ne=this.point,Pe=ne.x,Ze=ne.y,Ct=Math.cos(Math.PI/2-this._pitch)*_e+this.cameraToCenterDistance,dr=Ct*1.01,Er=this.height/50,lr=new Float64Array(16);i.perspective(lr,this._fov,this.width/this.height,Er,dr),lr[8]=-J.x*2/this.width,lr[9]=J.y*2/this.height,i.scale(lr,lr,[1,-1,1]),i.translate(lr,lr,[0,0,-this.cameraToCenterDistance]),i.rotateX(lr,lr,this._pitch),i.rotateZ(lr,lr,this.angle),i.translate(lr,lr,[-Pe,-Ze,0]),this.mercatorMatrix=i.scale([],lr,[this.worldSize,this.worldSize,this.worldSize]),i.scale(lr,lr,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=lr,this.invProjMatrix=i.invert([],this.projMatrix);var Ke=this.width%2/2,ht=this.height%2/2,bt=Math.cos(this.angle),Kt=Math.sin(this.angle),sr=Pe-Math.round(Pe)+bt*Ke+Kt*ht,Qt=Ze-Math.round(Ze)+bt*ht+Kt*Ke,ur=new Float64Array(lr);if(i.translate(ur,ur,[sr>.5?sr-1:sr,Qt>.5?Qt-1:Qt,0]),this.alignedProjMatrix=ur,lr=i.create(),i.scale(lr,lr,[this.width/2,-this.height/2,1]),i.translate(lr,lr,[1,-1,0]),this.labelPlaneMatrix=lr,lr=i.create(),i.scale(lr,lr,[1,-1,1]),i.translate(lr,lr,[-1,-1,0]),i.scale(lr,lr,[2/this.width,2/this.height,1]),this.glCoordMatrix=lr,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),lr=i.invert(new Float64Array(16),this.pixelMatrix),!lr)throw new Error("failed to invert matrix");this.pixelMatrixInverse=lr,this._posMatrixCache={},this._alignedPosMatrixCache={}}},iu.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var R=this.pointCoordinate(new i.Point(0,0)),J=[R.x*this.worldSize,R.y*this.worldSize,0,1],O=i.transformMat4(J,J,this.pixelMatrix);return O[3]/this.cameraToCenterDistance},iu.prototype.getCameraPoint=function(){var R=this._pitch,J=Math.tan(R)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,J))},iu.prototype.getCameraQueryGeometry=function(R){var J=this.getCameraPoint();if(R.length===1)return[R[0],J];for(var O=J.x,K=J.y,_e=J.x,ne=J.y,Pe=0,Ze=R;Pe=3&&!R.some(function(O){return isNaN(O)})){var J=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(R[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+R[2],+R[1]],zoom:+R[0],bearing:J,pitch:+(R[4]||0)}),!0}return!1},Qu.prototype._updateHashUnthrottled=function(){var R=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,R)}catch(J){}};var Ju={linearity:.3,easing:i.bezier(0,0,.3,1)},ju=i.extend({deceleration:2500,maxSpeed:1400},Ju),Xu=i.extend({deceleration:20,maxSpeed:1400},Ju),lf=i.extend({deceleration:1e3,maxSpeed:360},Ju),xf=i.extend({deceleration:1e3,maxSpeed:90},Ju),ef=function(R){this._map=R,this.clear()};ef.prototype.clear=function(){this._inertiaBuffer=[]},ef.prototype.record=function(R){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:i.browser.now(),settings:R})},ef.prototype._drainInertiaBuffer=function(){for(var R=this._inertiaBuffer,J=i.browser.now(),O=160;R.length>0&&J-R[0].time>O;)R.shift()},ef.prototype._onMoveEnd=function(R){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var J={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},O=0,K=this._inertiaBuffer;O=this._clickTolerance||this._map.fire(new se(R.type,this._map,R))},Qe.prototype.dblclick=function(R){return this._firePreventable(new se(R.type,this._map,R))},Qe.prototype.mouseover=function(R){this._map.fire(new se(R.type,this._map,R))},Qe.prototype.mouseout=function(R){this._map.fire(new se(R.type,this._map,R))},Qe.prototype.touchstart=function(R){return this._firePreventable(new ze(R.type,this._map,R))},Qe.prototype.touchmove=function(R){this._map.fire(new ze(R.type,this._map,R))},Qe.prototype.touchend=function(R){this._map.fire(new ze(R.type,this._map,R))},Qe.prototype.touchcancel=function(R){this._map.fire(new ze(R.type,this._map,R))},Qe.prototype._firePreventable=function(R){if(this._map.fire(R),R.defaultPrevented)return{}},Qe.prototype.isEnabled=function(){return!0},Qe.prototype.isActive=function(){return!1},Qe.prototype.enable=function(){},Qe.prototype.disable=function(){};var ot=function(R){this._map=R};ot.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},ot.prototype.mousemove=function(R){this._map.fire(new se(R.type,this._map,R))},ot.prototype.mousedown=function(){this._delayContextMenu=!0},ot.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new se("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},ot.prototype.contextmenu=function(R){this._delayContextMenu?this._contextMenuEvent=R:this._map.fire(new se(R.type,this._map,R)),this._map.listens("contextmenu")&&R.preventDefault()},ot.prototype.isEnabled=function(){return!0},ot.prototype.isActive=function(){return!1},ot.prototype.enable=function(){},ot.prototype.disable=function(){};var jt=function(R,J){this._map=R,this._el=R.getCanvasContainer(),this._container=R.getContainer(),this._clickTolerance=J.clickTolerance||1};jt.prototype.isEnabled=function(){return!!this._enabled},jt.prototype.isActive=function(){return!!this._active},jt.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},jt.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},jt.prototype.mousedown=function(R,J){this.isEnabled()&&R.shiftKey&&R.button===0&&(o.disableDrag(),this._startPos=this._lastPos=J,this._active=!0)},jt.prototype.mousemoveWindow=function(R,J){if(this._active){var O=J;if(!(this._lastPos.equals(O)||!this._box&&O.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=R.timeStamp),O.length===this.numTouches&&(this.centroid=cr(J),this.touches=_t(O,J)))},$r.prototype.touchmove=function(R,J,O){if(!(this.aborted||!this.centroid)){var K=_t(O,J);for(var _e in this.touches){var ne=this.touches[_e],Pe=K[_e];(!Pe||Pe.dist(ne)>ui)&&(this.aborted=!0)}}},$r.prototype.touchend=function(R,J,O){if((!this.centroid||R.timeStamp-this.startTime>zr)&&(this.aborted=!0),O.length===0){var K=!this.aborted&&this.centroid;if(this.reset(),K)return K}};var Oi=function(R){this.singleTap=new $r(R),this.numTaps=R.numTaps,this.reset()};Oi.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Oi.prototype.touchstart=function(R,J,O){this.singleTap.touchstart(R,J,O)},Oi.prototype.touchmove=function(R,J,O){this.singleTap.touchmove(R,J,O)},Oi.prototype.touchend=function(R,J,O){var K=this.singleTap.touchend(R,J,O);if(K){var _e=R.timeStamp-this.lastTime0&&(this._active=!0);var K=_t(O,J),_e=new i.Point(0,0),ne=new i.Point(0,0),Pe=0;for(var Ze in K){var Ct=K[Ze],dr=this._touches[Ze];dr&&(_e._add(Ct),ne._add(Ct.sub(dr)),Pe++,K[Ze]=Ct)}if(this._touches=K,!(PeMath.abs(Y.x)}var ds=100,Wl=function(Y){function R(){Y.apply(this,arguments)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.reset=function(){Y.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},R.prototype._start=function(O){this._lastPoints=O,rf(O[0].sub(O[1]))&&(this._valid=!1)},R.prototype._move=function(O,K,_e){var ne=O[0].sub(this._lastPoints[0]),Pe=O[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ne,Pe,_e.timeStamp),!!this._valid){this._lastPoints=O,this._active=!0;var Ze=(ne.y+Pe.y)/2,Ct=-.5;return{pitchDelta:Ze*Ct}}},R.prototype.gestureBeginsVertically=function(O,K,_e){if(this._valid!==void 0)return this._valid;var ne=2,Pe=O.mag()>=ne,Ze=K.mag()>=ne;if(!(!Pe&&!Ze)){if(!Pe||!Ze)return this._firstMove===void 0&&(this._firstMove=_e),_e-this._firstMove0==K.y>0;return rf(O)&&rf(K)&&Ct}},R}(js),Au={panStep:100,bearingStep:15,pitchStep:10},Tu=function(){var R=Au;this._panStep=R.panStep,this._bearingStep=R.bearingStep,this._pitchStep=R.pitchStep,this._rotationDisabled=!1};Tu.prototype.reset=function(){this._active=!1},Tu.prototype.keydown=function(R){var J=this;if(!(R.altKey||R.ctrlKey||R.metaKey)){var O=0,K=0,_e=0,ne=0,Pe=0;switch(R.keyCode){case 61:case 107:case 171:case 187:O=1;break;case 189:case 109:case 173:O=-1;break;case 37:R.shiftKey?K=-1:(R.preventDefault(),ne=-1);break;case 39:R.shiftKey?K=1:(R.preventDefault(),ne=1);break;case 38:R.shiftKey?_e=1:(R.preventDefault(),Pe=-1);break;case 40:R.shiftKey?_e=-1:(R.preventDefault(),Pe=1);break;default:return}return this._rotationDisabled&&(K=0,_e=0),{cameraAnimation:function(Ze){var Ct=Ze.getZoom();Ze.easeTo({duration:300,easeId:"keyboardHandler",easing:uf,zoom:O?Math.round(Ct)+O*(R.shiftKey?2:1):Ct,bearing:Ze.getBearing()+K*J._bearingStep,pitch:Ze.getPitch()+_e*J._pitchStep,offset:[-ne*J._panStep,-Pe*J._panStep],center:Ze.getCenter()},{originalEvent:R})}}}},Tu.prototype.enable=function(){this._enabled=!0},Tu.prototype.disable=function(){this._enabled=!1,this.reset()},Tu.prototype.isEnabled=function(){return this._enabled},Tu.prototype.isActive=function(){return this._active},Tu.prototype.disableRotation=function(){this._rotationDisabled=!0},Tu.prototype.enableRotation=function(){this._rotationDisabled=!1};function uf(Y){return Y*(2-Y)}var df=4.000244140625,Ef=1/100,vf=1/450,fc=2,Be=function(R,J){this._map=R,this._el=R.getCanvasContainer(),this._handler=J,this._delta=0,this._defaultZoomRate=Ef,this._wheelZoomRate=vf,i.bindAll(["_onTimeout"],this)};Be.prototype.setZoomRate=function(R){this._defaultZoomRate=R},Be.prototype.setWheelZoomRate=function(R){this._wheelZoomRate=R},Be.prototype.isEnabled=function(){return!!this._enabled},Be.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Be.prototype.isZooming=function(){return!!this._zooming},Be.prototype.enable=function(R){this.isEnabled()||(this._enabled=!0,this._aroundCenter=R&&R.around==="center")},Be.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Be.prototype.wheel=function(R){if(this.isEnabled()){var J=R.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?R.deltaY*40:R.deltaY,O=i.browser.now(),K=O-(this._lastWheelEventTime||0);this._lastWheelEventTime=O,J!==0&&J%df===0?this._type="wheel":J!==0&&Math.abs(J)<4?this._type="trackpad":K>400?(this._type=null,this._lastValue=J,this._timeout=setTimeout(this._onTimeout,40,R)):this._type||(this._type=Math.abs(K*J)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,J+=this._lastValue)),R.shiftKey&&J&&(J=J/4),this._type&&(this._lastWheelEvent=R,this._delta-=J,this._active||this._start(R)),R.preventDefault()}},Be.prototype._onTimeout=function(R){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(R)},Be.prototype._start=function(R){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var J=o.mousePos(this._el,R);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(J)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Be.prototype.renderFrame=function(){var R=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var J=this._map.transform;if(this._delta!==0){var O=this._type==="wheel"&&Math.abs(this._delta)>df?this._wheelZoomRate:this._defaultZoomRate,K=fc/(1+Math.exp(-Math.abs(this._delta*O)));this._delta<0&&K!==0&&(K=1/K);var _e=typeof this._targetZoom=="number"?J.zoomScale(this._targetZoom):J.scale;this._targetZoom=Math.min(J.maxZoom,Math.max(J.minZoom,J.scaleZoom(_e*K))),this._type==="wheel"&&(this._startZoom=J.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var ne=typeof this._targetZoom=="number"?this._targetZoom:J.zoom,Pe=this._startZoom,Ze=this._easing,Ct=!1,dr;if(this._type==="wheel"&&Pe&&Ze){var Er=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),lr=Ze(Er);dr=i.number(Pe,ne,lr),Er<1?this._frameId||(this._frameId=!0):Ct=!0}else dr=ne,Ct=!0;return this._active=!0,Ct&&(this._active=!1,this._finishTimeout=setTimeout(function(){R._zooming=!1,R._handler._triggerRenderFrame(),delete R._targetZoom,delete R._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Ct,zoomDelta:dr-J.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Be.prototype._smoothOutEasing=function(R){var J=i.ease;if(this._prevEase){var O=this._prevEase,K=(i.browser.now()-O.start)/O.duration,_e=O.easing(K+.01)-O.easing(K),ne=.27/Math.sqrt(_e*_e+1e-4)*.01,Pe=Math.sqrt(.27*.27-ne*ne);J=i.bezier(ne,Pe,.25,1)}return this._prevEase={start:i.browser.now(),duration:R,easing:J},J},Be.prototype.reset=function(){this._active=!1};var qt=function(R,J){this._clickZoom=R,this._tapZoom=J};qt.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},qt.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},qt.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},qt.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var ar=function(){this.reset()};ar.prototype.reset=function(){this._active=!1},ar.prototype.dblclick=function(R,J){return R.preventDefault(),{cameraAnimation:function(O){O.easeTo({duration:300,zoom:O.getZoom()+(R.shiftKey?-1:1),around:O.unproject(J)},{originalEvent:R})}}},ar.prototype.enable=function(){this._enabled=!0},ar.prototype.disable=function(){this._enabled=!1,this.reset()},ar.prototype.isEnabled=function(){return this._enabled},ar.prototype.isActive=function(){return this._active};var Qr=function(){this._tap=new Oi({numTouches:1,numTaps:1}),this.reset()};Qr.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Qr.prototype.touchstart=function(R,J,O){this._swipePoint||(this._tapTime&&R.timeStamp-this._tapTime>Cr&&this.reset(),this._tapTime?O.length>0&&(this._swipePoint=J[0],this._swipeTouch=O[0].identifier):this._tap.touchstart(R,J,O))},Qr.prototype.touchmove=function(R,J,O){if(!this._tapTime)this._tap.touchmove(R,J,O);else if(this._swipePoint){if(O[0].identifier!==this._swipeTouch)return;var K=J[0],_e=K.y-this._swipePoint.y;return this._swipePoint=K,R.preventDefault(),this._active=!0,{zoomDelta:_e/128}}},Qr.prototype.touchend=function(R,J,O){if(this._tapTime)this._swipePoint&&O.length===0&&this.reset();else{var K=this._tap.touchend(R,J,O);K&&(this._tapTime=R.timeStamp)}},Qr.prototype.touchcancel=function(){this.reset()},Qr.prototype.enable=function(){this._enabled=!0},Qr.prototype.disable=function(){this._enabled=!1,this.reset()},Qr.prototype.isEnabled=function(){return this._enabled},Qr.prototype.isActive=function(){return this._active};var mi=function(R,J,O){this._el=R,this._mousePan=J,this._touchPan=O};mi.prototype.enable=function(R){this._inertiaOptions=R||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},mi.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},mi.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},mi.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var fi=function(R,J,O){this._pitchWithRotate=R.pitchWithRotate,this._mouseRotate=J,this._mousePitch=O};fi.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},fi.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},fi.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},fi.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var pi=function(R,J,O,K){this._el=R,this._touchZoom=J,this._touchRotate=O,this._tapDragZoom=K,this._rotationDisabled=!1,this._enabled=!0};pi.prototype.enable=function(R){this._touchZoom.enable(R),this._rotationDisabled||this._touchRotate.enable(R),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},pi.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},pi.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},pi.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},pi.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},pi.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var on=function(Y){return Y.zoom||Y.drag||Y.pitch||Y.rotate},Bn=function(Y){function R(){Y.apply(this,arguments)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R}(i.Event);function Ln(Y){return Y.panDelta&&Y.panDelta.mag()||Y.zoomDelta||Y.bearingDelta||Y.pitchDelta}var wn=function(R,J){this._map=R,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new ef(R),this._bearingSnap=J.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(J),i.bindAll(["handleEvent","handleWindowEvent"],this);var O=this._el;this._listeners=[[O,"touchstart",{passive:!0}],[O,"touchmove",{passive:!1}],[O,"touchend",void 0],[O,"touchcancel",void 0],[O,"mousedown",void 0],[O,"mousemove",void 0],[O,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[O,"mouseover",void 0],[O,"mouseout",void 0],[O,"dblclick",void 0],[O,"click",void 0],[O,"keydown",{capture:!1}],[O,"keyup",void 0],[O,"wheel",{passive:!1}],[O,"contextmenu",void 0],[i.window,"blur",void 0]];for(var K=0,_e=this._listeners;K<_e.length;K+=1){var ne=_e[K],Pe=ne[0],Ze=ne[1],Ct=ne[2];o.addEventListener(Pe,Ze,Pe===i.window.document?this.handleWindowEvent:this.handleEvent,Ct)}};wn.prototype.destroy=function(){for(var R=0,J=this._listeners;RPe?Math.min(2,Ot):Math.max(.5,Ot),Ki=Math.pow(Cn,1-Nr),yn=ne.unproject(ur.add(er.mult(Nr*Ki)).mult(ci));ne.setLocationAtPoint(ne.renderWorldCopies?yn.wrap():yn,Kt)}_e._fireMoveEvents(K)},function(Nr){_e._afterEase(K,Nr)},O),this},R.prototype._prepareEase=function(O,K,_e){_e===void 0&&(_e={}),this._moving=!0,!K&&!_e.moving&&this.fire(new i.Event("movestart",O)),this._zooming&&!_e.zooming&&this.fire(new i.Event("zoomstart",O)),this._rotating&&!_e.rotating&&this.fire(new i.Event("rotatestart",O)),this._pitching&&!_e.pitching&&this.fire(new i.Event("pitchstart",O))},R.prototype._fireMoveEvents=function(O){this.fire(new i.Event("move",O)),this._zooming&&this.fire(new i.Event("zoom",O)),this._rotating&&this.fire(new i.Event("rotate",O)),this._pitching&&this.fire(new i.Event("pitch",O))},R.prototype._afterEase=function(O,K){if(!(this._easeId&&K&&this._easeId===K)){delete this._easeId;var _e=this._zooming,ne=this._rotating,Pe=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,_e&&this.fire(new i.Event("zoomend",O)),ne&&this.fire(new i.Event("rotateend",O)),Pe&&this.fire(new i.Event("pitchend",O)),this.fire(new i.Event("moveend",O))}},R.prototype.flyTo=function(O,K){var _e=this;if(!O.essential&&i.browser.prefersReducedMotion){var ne=i.pick(O,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ne,K)}this.stop(),O=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},O);var Pe=this.transform,Ze=this.getZoom(),Ct=this.getBearing(),dr=this.getPitch(),Er=this.getPadding(),lr="zoom"in O?i.clamp(+O.zoom,Pe.minZoom,Pe.maxZoom):Ze,Ke="bearing"in O?this._normalizeBearing(O.bearing,Ct):Ct,ht="pitch"in O?+O.pitch:dr,bt="padding"in O?O.padding:Pe.padding,Kt=Pe.zoomScale(lr-Ze),sr=i.Point.convert(O.offset),Qt=Pe.centerPoint.add(sr),ur=Pe.pointLocation(Qt),er=i.LngLat.convert(O.center||ur);this._normalizeCenter(er);var Ot=Pe.project(ur),Jt=Pe.project(er).sub(Ot),Lt=O.curve,Tr=Math.max(Pe.width,Pe.height),Nr=Tr/Kt,ci=Jt.mag();if("minZoom"in O){var Cn=i.clamp(Math.min(O.minZoom,Ze,lr),Pe.minZoom,Pe.maxZoom),Ki=Tr/Pe.zoomScale(Cn-Ze);Lt=Math.sqrt(Ki/ci*2)}var yn=Lt*Lt;function Xa(vu){var zu=(Nr*Nr-Tr*Tr+(vu?-1:1)*yn*yn*ci*ci)/(2*(vu?Nr:Tr)*yn*ci);return Math.log(Math.sqrt(zu*zu+1)-zu)}function ca(vu){return(Math.exp(vu)-Math.exp(-vu))/2}function Tn(vu){return(Math.exp(vu)+Math.exp(-vu))/2}function Pn(vu){return ca(vu)/Tn(vu)}var Nn=Xa(0),xa=function(vu){return Tn(Nn)/Tn(Nn+Lt*vu)},Zo=function(vu){return Tr*((Tn(Nn)*Pn(Nn+Lt*vu)-ca(Nn))/yn)/ci},ru=(Xa(1)-Nn)/Lt;if(Math.abs(ci)<1e-6||!isFinite(ru)){if(Math.abs(Tr-Nr)<1e-6)return this.easeTo(O,K);var yu=NrO.maxDuration&&(O.duration=0),this._zooming=!0,this._rotating=Ct!==Ke,this._pitching=ht!==dr,this._padding=!Pe.isPaddingEqual(bt),this._prepareEase(K,!1),this._ease(function(vu){var zu=vu*ru,$u=1/xa(zu);Pe.zoom=vu===1?lr:Ze+Pe.scaleZoom($u),_e._rotating&&(Pe.bearing=i.number(Ct,Ke,vu)),_e._pitching&&(Pe.pitch=i.number(dr,ht,vu)),_e._padding&&(Pe.interpolatePadding(Er,bt,vu),Qt=Pe.centerPoint.add(sr));var Uf=vu===1?er:Pe.unproject(Ot.add(Jt.mult(Zo(zu))).mult($u));Pe.setLocationAtPoint(Pe.renderWorldCopies?Uf.wrap():Uf,Qt),_e._fireMoveEvents(K)},function(){return _e._afterEase(K)},O),this},R.prototype.isEasing=function(){return!!this._easeFrameId},R.prototype.stop=function(){return this._stop()},R.prototype._stop=function(O,K){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var _e=this._onEaseEnd;delete this._onEaseEnd,_e.call(this,K)}if(!O){var ne=this.handlers;ne&&ne.stop(!1)}return this},R.prototype._ease=function(O,K,_e){_e.animate===!1||_e.duration===0?(O(1),K()):(this._easeStart=i.browser.now(),this._easeOptions=_e,this._onEaseFrame=O,this._onEaseEnd=K,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},R.prototype._renderFrameCallback=function(){var O=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(O)),O<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},R.prototype._normalizeBearing=function(O,K){O=i.wrap(O,-180,180);var _e=Math.abs(O-K);return Math.abs(O-360-K)<_e&&(O-=360),Math.abs(O+360-K)<_e&&(O+=360),O},R.prototype._normalizeCenter=function(O){var K=this.transform;if(!(!K.renderWorldCopies||K.lngRange)){var _e=O.lng-K.center.lng;O.lng+=_e>180?-360:_e<-180?360:0}},R}(i.Evented),ua=function(R){R===void 0&&(R={}),this.options=R,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};ua.prototype.getDefaultPosition=function(){return"bottom-right"},ua.prototype.onAdd=function(R){var J=this.options&&this.options.compact;return this._map=R,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=o.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=o.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),J&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),J===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},ua.prototype.onRemove=function(){o.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},ua.prototype._setElementTitle=function(R,J){var O=this._map._getUIString("AttributionControl."+J);R.title=O,R.setAttribute("aria-label",O)},ua.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},ua.prototype._updateEditLink=function(){var R=this._editLink;R||(R=this._editLink=this._container.querySelector(".mapbox-improve-map"));var J=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(R){var O=J.reduce(function(K,_e,ne){return _e.value&&(K+=_e.key+"="+_e.value+(ne=0)return!1;return!0});var Pe=R.join(" | ");Pe!==this._attribHTML&&(this._attribHTML=Pe,R.length?(this._innerContainer.innerHTML=Pe,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},ua.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var Hn=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};Hn.prototype.onAdd=function(R){this._map=R,this._container=o.create("div","mapboxgl-ctrl");var J=o.create("a","mapboxgl-ctrl-logo");return J.target="_blank",J.rel="noopener nofollow",J.href="https://www.mapbox.com/",J.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),J.setAttribute("rel","noopener nofollow"),this._container.appendChild(J),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},Hn.prototype.onRemove=function(){o.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Hn.prototype.getDefaultPosition=function(){return"bottom-left"},Hn.prototype._updateLogo=function(R){(!R||R.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},Hn.prototype._logoRequired=function(){if(this._map.style){var R=this._map.style.sourceCaches;for(var J in R){var O=R[J].getSource();if(O.mapbox_logo)return!0}return!1}},Hn.prototype._updateCompact=function(){var R=this._container.children;if(R.length){var J=R[0];this._map.getCanvasContainer().offsetWidth<250?J.classList.add("mapboxgl-compact"):J.classList.remove("mapboxgl-compact")}};var Ni=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Ni.prototype.add=function(R){var J=++this._id,O=this._queue;return O.push({callback:R,id:J,cancelled:!1}),J},Ni.prototype.remove=function(R){for(var J=this._currentlyRunning,O=J?this._queue.concat(J):this._queue,K=0,_e=O;K<_e.length;K+=1){var ne=_e[K];if(ne.id===R){ne.cancelled=!0;return}}},Ni.prototype.run=function(R){R===void 0&&(R=0);var J=this._currentlyRunning=this._queue;this._queue=[];for(var O=0,K=J;OO.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(O.minPitch!=null&&O.maxPitch!=null&&O.minPitch>O.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(O.minPitch!=null&&O.minPitchhs)throw new Error("maxPitch must be less than or equal to "+hs);var _e=new iu(O.minZoom,O.maxZoom,O.minPitch,O.maxPitch,O.renderWorldCopies);if(Y.call(this,_e,O),this._interactive=O.interactive,this._maxTileCacheSize=O.maxTileCacheSize,this._failIfMajorPerformanceCaveat=O.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=O.preserveDrawingBuffer,this._antialias=O.antialias,this._trackResize=O.trackResize,this._bearingSnap=O.bearingSnap,this._refreshExpiredTiles=O.refreshExpiredTiles,this._fadeDuration=O.fadeDuration,this._crossSourceCollisions=O.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=O.collectResourceTiming,this._renderTaskQueue=new Ni,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},Wr,O.locale),this._clickTolerance=O.clickTolerance,this._requestManager=new i.RequestManager(O.transformRequest,O.accessToken),typeof O.container=="string"){if(this._container=i.window.document.getElementById(O.container),!this._container)throw new Error("Container '"+O.container+"' not found.")}else if(O.container instanceof dn)this._container=O.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(O.maxBounds&&this.setMaxBounds(O.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return K._update(!1)}),this.on("moveend",function(){return K._update(!1)}),this.on("zoom",function(){return K._update(!0)}),typeof i.window!="undefined"&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new wn(this,O);var ne=typeof O.hash=="string"&&O.hash||void 0;this._hash=O.hash&&new Qu(ne).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:O.center,zoom:O.zoom,bearing:O.bearing,pitch:O.pitch}),O.bounds&&(this.resize(),this.fitBounds(O.bounds,i.extend({},O.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=O.localIdeographFontFamily,O.style&&this.setStyle(O.style,{localIdeographFontFamily:O.localIdeographFontFamily}),O.attributionControl&&this.addControl(new ua({customAttribution:O.customAttribution})),this.addControl(new Hn,O.logoPosition),this.on("style.load",function(){K.transform.unmodified&&K.jumpTo(K.style.stylesheet)}),this.on("data",function(Pe){K._update(Pe.dataType==="style"),K.fire(new i.Event(Pe.dataType+"data",Pe))}),this.on("dataloading",function(Pe){K.fire(new i.Event(Pe.dataType+"dataloading",Pe))})}Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R;var J={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return R.prototype._getMapId=function(){return this._mapId},R.prototype.addControl=function(K,_e){if(_e===void 0&&(K.getDefaultPosition?_e=K.getDefaultPosition():_e="top-right"),!K||!K.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var ne=K.onAdd(this);this._controls.push(K);var Pe=this._controlPositions[_e];return _e.indexOf("bottom")!==-1?Pe.insertBefore(ne,Pe.firstChild):Pe.appendChild(ne),this},R.prototype.removeControl=function(K){if(!K||!K.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var _e=this._controls.indexOf(K);return _e>-1&&this._controls.splice(_e,1),K.onRemove(this),this},R.prototype.hasControl=function(K){return this._controls.indexOf(K)>-1},R.prototype.resize=function(K){var _e=this._containerDimensions(),ne=_e[0],Pe=_e[1];this._resizeCanvas(ne,Pe),this.transform.resize(ne,Pe),this.painter.resize(ne,Pe);var Ze=!this._moving;return Ze&&(this.stop(),this.fire(new i.Event("movestart",K)).fire(new i.Event("move",K))),this.fire(new i.Event("resize",K)),Ze&&this.fire(new i.Event("moveend",K)),this},R.prototype.getBounds=function(){return this.transform.getBounds()},R.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},R.prototype.setMaxBounds=function(K){return this.transform.setMaxBounds(i.LngLatBounds.convert(K)),this._update()},R.prototype.setMinZoom=function(K){if(K=K==null?Yi:K,K>=Yi&&K<=this.transform.maxZoom)return this.transform.minZoom=K,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=K,this._update(),this.getZoom()>K&&this.setZoom(K),this;throw new Error("maxZoom must be greater than the current minZoom")},R.prototype.getMaxZoom=function(){return this.transform.maxZoom},R.prototype.setMinPitch=function(K){if(K=K==null?Kn:K,K=Kn&&K<=this.transform.maxPitch)return this.transform.minPitch=K,this._update(),this.getPitch()hs)throw new Error("maxPitch must be less than or equal to "+hs);if(K>=this.transform.minPitch)return this.transform.maxPitch=K,this._update(),this.getPitch()>K&&this.setPitch(K),this;throw new Error("maxPitch must be greater than the current minPitch")},R.prototype.getMaxPitch=function(){return this.transform.maxPitch},R.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},R.prototype.setRenderWorldCopies=function(K){return this.transform.renderWorldCopies=K,this._update()},R.prototype.project=function(K){return this.transform.locationPoint(i.LngLat.convert(K))},R.prototype.unproject=function(K){return this.transform.pointLocation(i.Point.convert(K))},R.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},R.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},R.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},R.prototype._createDelegatedListener=function(K,_e,ne){var Pe=this,Ze;if(K==="mouseenter"||K==="mouseover"){var Ct=!1,dr=function(Kt){var sr=Pe.getLayer(_e)?Pe.queryRenderedFeatures(Kt.point,{layers:[_e]}):[];sr.length?Ct||(Ct=!0,ne.call(Pe,new se(K,Pe,Kt.originalEvent,{features:sr}))):Ct=!1},Er=function(){Ct=!1};return{layer:_e,listener:ne,delegates:{mousemove:dr,mouseout:Er}}}else if(K==="mouseleave"||K==="mouseout"){var lr=!1,Ke=function(Kt){var sr=Pe.getLayer(_e)?Pe.queryRenderedFeatures(Kt.point,{layers:[_e]}):[];sr.length?lr=!0:lr&&(lr=!1,ne.call(Pe,new se(K,Pe,Kt.originalEvent)))},ht=function(Kt){lr&&(lr=!1,ne.call(Pe,new se(K,Pe,Kt.originalEvent)))};return{layer:_e,listener:ne,delegates:{mousemove:Ke,mouseout:ht}}}else{var bt=function(Kt){var sr=Pe.getLayer(_e)?Pe.queryRenderedFeatures(Kt.point,{layers:[_e]}):[];sr.length&&(Kt.features=sr,ne.call(Pe,Kt),delete Kt.features)};return{layer:_e,listener:ne,delegates:(Ze={},Ze[K]=bt,Ze)}}},R.prototype.on=function(K,_e,ne){if(ne===void 0)return Y.prototype.on.call(this,K,_e);var Pe=this._createDelegatedListener(K,_e,ne);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[K]=this._delegatedListeners[K]||[],this._delegatedListeners[K].push(Pe);for(var Ze in Pe.delegates)this.on(Ze,Pe.delegates[Ze]);return this},R.prototype.once=function(K,_e,ne){if(ne===void 0)return Y.prototype.once.call(this,K,_e);var Pe=this._createDelegatedListener(K,_e,ne);for(var Ze in Pe.delegates)this.once(Ze,Pe.delegates[Ze]);return this},R.prototype.off=function(K,_e,ne){var Pe=this;if(ne===void 0)return Y.prototype.off.call(this,K,_e);var Ze=function(Ct){for(var dr=Ct[K],Er=0;Er180;){var ne=J.locationPoint(Y);if(ne.x>=0&&ne.y>=0&&ne.x<=J.width&&ne.y<=J.height)break;Y.lng>J.center.lng?Y.lng-=360:Y.lng+=360}return Y}var _s={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function ul(Y,R,J){var O=Y.classList;for(var K in _s)O.remove("mapboxgl-"+J+"-anchor-"+K);O.add("mapboxgl-"+J+"-anchor-"+R)}var Qn=function(Y){function R(J,O){if(Y.call(this),(J instanceof i.window.HTMLElement||O)&&(J=i.extend({element:J},O)),i.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=J&&J.anchor||"center",this._color=J&&J.color||"#3FB1CE",this._scale=J&&J.scale||1,this._draggable=J&&J.draggable||!1,this._clickTolerance=J&&J.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=J&&J.rotation||0,this._rotationAlignment=J&&J.rotationAlignment||"auto",this._pitchAlignment=J&&J.pitchAlignment&&J.pitchAlignment!=="auto"?J.pitchAlignment:this._rotationAlignment,!J||!J.element){this._defaultMarker=!0,this._element=o.create("div"),this._element.setAttribute("aria-label","Map marker");var K=o.createNS("http://www.w3.org/2000/svg","svg"),_e=41,ne=27;K.setAttributeNS(null,"display","block"),K.setAttributeNS(null,"height",_e+"px"),K.setAttributeNS(null,"width",ne+"px"),K.setAttributeNS(null,"viewBox","0 0 "+ne+" "+_e);var Pe=o.createNS("http://www.w3.org/2000/svg","g");Pe.setAttributeNS(null,"stroke","none"),Pe.setAttributeNS(null,"stroke-width","1"),Pe.setAttributeNS(null,"fill","none"),Pe.setAttributeNS(null,"fill-rule","evenodd");var Ze=o.createNS("http://www.w3.org/2000/svg","g");Ze.setAttributeNS(null,"fill-rule","nonzero");var Ct=o.createNS("http://www.w3.org/2000/svg","g");Ct.setAttributeNS(null,"transform","translate(3.0, 29.0)"),Ct.setAttributeNS(null,"fill","#000000");for(var dr=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],Er=0,lr=dr;Er=K}this._isDragging&&(this._pos=O.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},R.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},R.prototype._addDragHandler=function(O){this._element.contains(O.originalEvent.target)&&(O.preventDefault(),this._positionDelta=O.point.sub(this._pos).add(this._offset),this._pointerdownPos=O.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},R.prototype.setDraggable=function(O){return this._draggable=!!O,this._map&&(O?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},R.prototype.isDraggable=function(){return this._draggable},R.prototype.setRotation=function(O){return this._rotation=O||0,this._update(),this},R.prototype.getRotation=function(){return this._rotation},R.prototype.setRotationAlignment=function(O){return this._rotationAlignment=O||"auto",this._update(),this},R.prototype.getRotationAlignment=function(){return this._rotationAlignment},R.prototype.setPitchAlignment=function(O){return this._pitchAlignment=O&&O!=="auto"?O:this._rotationAlignment,this._update(),this},R.prototype.getPitchAlignment=function(){return this._pitchAlignment},R}(i.Evented),Mo={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},nl;function pl(Y){nl!==void 0?Y(nl):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(R){nl=R.state!=="denied",Y(nl)}):(nl=!!i.window.navigator.geolocation,Y(nl))}var Dl=0,Fu=!1,mf=function(Y){function R(J){Y.call(this),this.options=i.extend({},Mo,J),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.onAdd=function(O){return this._map=O,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),pl(this._setupUI),this._container},R.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),o.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Dl=0,Fu=!1},R.prototype._isOutOfMapMaxBounds=function(O){var K=this._map.getMaxBounds(),_e=O.coords;return K&&(_e.longitudeK.getEast()||_e.latitudeK.getNorth())},R.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},R.prototype._onSuccess=function(O){if(this._map){if(this._isOutOfMapMaxBounds(O)){this._setErrorState(),this.fire(new i.Event("outofmaxbounds",O)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=O,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(O),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(O),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",O)),this._finish()}},R.prototype._updateCamera=function(O){var K=new i.LngLat(O.coords.longitude,O.coords.latitude),_e=O.coords.accuracy,ne=this._map.getBearing(),Pe=i.extend({bearing:ne},this.options.fitBoundsOptions);this._map.fitBounds(K.toBounds(_e),Pe,{geolocateSource:!0})},R.prototype._updateMarker=function(O){if(O){var K=new i.LngLat(O.coords.longitude,O.coords.latitude);this._accuracyCircleMarker.setLngLat(K).addTo(this._map),this._userLocationDotMarker.setLngLat(K).addTo(this._map),this._accuracy=O.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},R.prototype._updateCircleRadius=function(){var O=this._map._container.clientHeight/2,K=this._map.unproject([0,O]),_e=this._map.unproject([1,O]),ne=K.distanceTo(_e),Pe=Math.ceil(2*this._accuracy/ne);this._circleElement.style.width=Pe+"px",this._circleElement.style.height=Pe+"px"},R.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},R.prototype._onError=function(O){if(this._map){if(this.options.trackUserLocation)if(O.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var K=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=K,this._geolocateButton.setAttribute("aria-label",K),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(O.code===3&&Fu)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",O)),this._finish()}},R.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},R.prototype._setupUI=function(O){var K=this;if(this._container.addEventListener("contextmenu",function(Pe){return Pe.preventDefault()}),this._geolocateButton=o.create("button","mapboxgl-ctrl-geolocate",this._container),o.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",O===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var _e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=_e,this._geolocateButton.setAttribute("aria-label",_e)}else{var ne=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=ne,this._geolocateButton.setAttribute("aria-label",ne)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=o.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Qn(this._dotElement),this._circleElement=o.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Qn({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(Pe){var Ze=Pe.originalEvent&&Pe.originalEvent.type==="resize";!Pe.geolocateSource&&K._watchState==="ACTIVE_LOCK"&&!Ze&&(K._watchState="BACKGROUND",K._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),K._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),K.fire(new i.Event("trackuserlocationend")))})},R.prototype.trigger=function(){if(!this._setup)return i.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Dl--,Fu=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Dl++;var O;Dl>1?(O={maximumAge:6e5,timeout:0},Fu=!0):(O=this.options.positionOptions,Fu=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,O)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},R.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},R}(i.Evented),Ql={maxWidth:100,unit:"metric"},kf=function(R){this.options=i.extend({},Ql,R),i.bindAll(["_onMove","setUnit"],this)};kf.prototype.getDefaultPosition=function(){return"bottom-left"},kf.prototype._onMove=function(){Cu(this._map,this._container,this.options)},kf.prototype.onAdd=function(R){return this._map=R,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",R.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},kf.prototype.onRemove=function(){o.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},kf.prototype.setUnit=function(R){this.options.unit=R,Cu(this._map,this._container,this.options)};function Cu(Y,R,J){var O=J&&J.maxWidth||100,K=Y._container.clientHeight/2,_e=Y.unproject([0,K]),ne=Y.unproject([O,K]),Pe=_e.distanceTo(ne);if(J&&J.unit==="imperial"){var Ze=3.2808*Pe;if(Ze>5280){var Ct=Ze/5280;_f(R,O,Ct,Y._getUIString("ScaleControl.Miles"))}else _f(R,O,Ze,Y._getUIString("ScaleControl.Feet"))}else if(J&&J.unit==="nautical"){var dr=Pe/1852;_f(R,O,dr,Y._getUIString("ScaleControl.NauticalMiles"))}else Pe>=1e3?_f(R,O,Pe/1e3,Y._getUIString("ScaleControl.Kilometers")):_f(R,O,Pe,Y._getUIString("ScaleControl.Meters"))}function _f(Y,R,J,O){var K=Lf(J),_e=K/J;Y.style.width=R*_e+"px",Y.innerHTML=K+" "+O}function bf(Y){var R=Math.pow(10,Math.ceil(-Math.log(Y)/Math.LN10));return Math.round(Y*R)/R}function Lf(Y){var R=Math.pow(10,(""+Math.floor(Y)).length-1),J=Y/R;return J=J>=10?10:J>=5?5:J>=3?3:J>=2?2:J>=1?1:bf(J),R*J}var Hu=function(R){this._fullscreen=!1,R&&R.container&&(R.container instanceof i.window.HTMLElement?this._container=R.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};Hu.prototype.onAdd=function(R){return this._map=R,this._container||(this._container=this._map.getContainer()),this._controlContainer=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Hu.prototype.onRemove=function(){o.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Hu.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},Hu.prototype._setupUI=function(){var R=this._fullscreenButton=o.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);o.create("span","mapboxgl-ctrl-icon",R).setAttribute("aria-hidden",!0),R.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Hu.prototype._updateTitle=function(){var R=this._getTitle();this._fullscreenButton.setAttribute("aria-label",R),this._fullscreenButton.title=R},Hu.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Hu.prototype._isFullscreen=function(){return this._fullscreen},Hu.prototype._changeIcon=function(){var R=i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement;R===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Hu.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var hf={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},yf=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Fl=function(Y){function R(J){Y.call(this),this.options=i.extend(Object.create(hf),J),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return Y&&(R.__proto__=Y),R.prototype=Object.create(Y&&Y.prototype),R.prototype.constructor=R,R.prototype.addTo=function(O){return this._map&&this.remove(),this._map=O,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},R.prototype.isOpen=function(){return!!this._map},R.prototype.remove=function(){return this._content&&o.remove(this._content),this._container&&(o.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new i.Event("close")),this},R.prototype.getLngLat=function(){return this._lngLat},R.prototype.setLngLat=function(O){return this._lngLat=i.LngLat.convert(O),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},R.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},R.prototype.getElement=function(){return this._container},R.prototype.setText=function(O){return this.setDOMContent(i.window.document.createTextNode(O))},R.prototype.setHTML=function(O){var K=i.window.document.createDocumentFragment(),_e=i.window.document.createElement("body"),ne;for(_e.innerHTML=O;ne=_e.firstChild,!!ne;)K.appendChild(ne);return this.setDOMContent(K)},R.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},R.prototype.setMaxWidth=function(O){return this.options.maxWidth=O,this._update(),this},R.prototype.setDOMContent=function(O){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=o.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(O),this._createCloseButton(),this._update(),this._focusFirstElement(),this},R.prototype.addClassName=function(O){this._container&&this._container.classList.add(O)},R.prototype.removeClassName=function(O){this._container&&this._container.classList.remove(O)},R.prototype.setOffset=function(O){return this.options.offset=O,this._update(),this},R.prototype.toggleClassName=function(O){if(this._container)return this._container.classList.toggle(O)},R.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=o.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},R.prototype._onMouseUp=function(O){this._update(O.point)},R.prototype._onMouseMove=function(O){this._update(O.point)},R.prototype._onDrag=function(O){this._update(O.point)},R.prototype._update=function(O){var K=this,_e=this._lngLat||this._trackPointer;if(!(!this._map||!_e||!this._content)&&(this._container||(this._container=o.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=o.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Ke){return K._container.classList.add(Ke)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Va(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!O))){var ne=this._pos=this._trackPointer&&O?O:this._map.project(this._lngLat),Pe=this.options.anchor,Ze=wf(this.options.offset);if(!Pe){var Ct=this._container.offsetWidth,dr=this._container.offsetHeight,Er;ne.y+Ze.bottom.ythis._map.transform.height-dr?Er=["bottom"]:Er=[],ne.xthis._map.transform.width-Ct/2&&Er.push("right"),Er.length===0?Pe="bottom":Pe=Er.join("-")}var lr=ne.add(Ze[Pe]).round();o.setTransform(this._container,_s[Pe]+" translate("+lr.x+"px,"+lr.y+"px)"),ul(this._container,Pe,"popup")}},R.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var O=this._container.querySelector(yf);O&&O.focus()}},R.prototype._onClose=function(){this.remove()},R}(i.Evented);function wf(Y){if(Y)if(typeof Y=="number"){var R=Math.round(Math.sqrt(.5*Math.pow(Y,2)));return{center:new i.Point(0,0),top:new i.Point(0,Y),"top-left":new i.Point(R,R),"top-right":new i.Point(-R,R),bottom:new i.Point(0,-Y),"bottom-left":new i.Point(R,-R),"bottom-right":new i.Point(-R,-R),left:new i.Point(Y,0),right:new i.Point(-Y,0)}}else if(Y instanceof i.Point||Array.isArray(Y)){var J=i.Point.convert(Y);return{center:J,top:J,"top-left":J,"top-right":J,bottom:J,"bottom-left":J,"bottom-right":J,left:J,right:J}}else return{center:i.Point.convert(Y.center||[0,0]),top:i.Point.convert(Y.top||[0,0]),"top-left":i.Point.convert(Y["top-left"]||[0,0]),"top-right":i.Point.convert(Y["top-right"]||[0,0]),bottom:i.Point.convert(Y.bottom||[0,0]),"bottom-left":i.Point.convert(Y["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(Y["bottom-right"]||[0,0]),left:i.Point.convert(Y.left||[0,0]),right:i.Point.convert(Y.right||[0,0])};else return wf(new i.Point(0,0))}var cu={version:i.version,supported:a,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:Ui,NavigationControl:On,GeolocateControl:mf,AttributionControl:ua,ScaleControl:kf,FullscreenControl:Hu,Popup:Fl,Marker:Qn,Style:jn,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:Yr,clearPrewarmedResources:oi,get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(Y){i.config.ACCESS_TOKEN=Y},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(Y){i.config.API_URL=Y},get workerCount(){return Ei.workerCount},set workerCount(Y){Ei.workerCount=Y},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(Y){i.config.MAX_PARALLEL_IMAGE_REQUESTS=Y},clearStorage:function(R){i.clearTileCache(R)},workerUrl:""};return cu}),r})});var LGe=Te((sbr,CGe)=>{"use strict";var tw=ei(),ajt=Zf().sanitizeHTML,ojt=cJ(),MGe=f1();function EGe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=MGe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var im=EGe.prototype;im.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=nB(t)};im.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};im.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};im.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};im.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};im.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapboxLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};im.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!nB(e)){var r=sjt(e);t.addSource(this.idSource,r)}};im.findFollowingMapboxLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function kGe(e){var t={},r={};switch(e.type){case"circle":tw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":tw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":tw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=ojt(n.textposition,n.iconsize);tw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),tw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":tw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function sjt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=ajt(e.sourceattribution)),n}CGe.exports=function(t,r,n){var i=new EGe(t,r);return i.update(n),i}});var qGe=Te((lbr,OGe)=>{"use strict";var gJ=yJ(),_J=ei(),RGe=nx(),PGe=$l(),ljt=wu(),ujt=gp(),aB=Xc(),DGe=Sm(),fjt=DGe.drawMode,cjt=DGe.selectMode,hjt=ah().prepSelect,djt=ah().clearOutline,pjt=ah().clearSelectionsCache,vjt=ah().selectOnClick,_x=f1(),mjt=LGe();function FGe(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Hh=FGe.prototype;Hh.plot=function(e,t,r){var n=this,i=t[n.id];n.map&&i.accesstoken!==n.accessToken&&(n.map.remove(),n.map=null,n.styleObj=null,n.traceHash={},n.layerList=[]);var a;n.map?a=new Promise(function(o,s){n.updateMap(e,t,o,s)}):a=new Promise(function(o,s){n.createMap(e,t,o,s)}),r.push(a)};Hh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=BGe(a.style,t);i.accessToken=a.accesstoken;var s=a.bounds,u=s?[[s.west,s.south],[s.east,s.north]]:null,l=i.map=new gJ.Map({container:i.div,style:o.style,center:xJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:u,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new gJ.AttributionControl({compact:!0}));l._canvas.style.left="0px",l._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var f=[];f.push(new Promise(function(c){l.once("load",c)})),f=f.concat(RGe.fetchTraceGeoData(e)),Promise.all(f).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Hh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],u=BGe(o.style,t);JSON.stringify(i.styleObj)!==JSON.stringify(u)&&(i.styleObj=u,a.setStyle(u.style),i.traceHash={},s.push(new Promise(function(l){a.once("styledata",l)}))),s=s.concat(RGe.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Hh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&vjt(u.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),l.indexOf("event")>-1&&aB.click(n,u.originalEvent)}}};Hh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(u){var l=t.map.unproject(u);return[l.lng,l.lat]}var a=e.dragmode,o;o=function(u,l){if(l.isRect){var f=u.range={};f[t.id]=[i([l.xmin,l.ymin]),i([l.xmax,l.ymax])]}else{var c=u.lassoPoints={};c[t.id]=l.map(i)}};var s=t.dragOptions;t.dragOptions=_J.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),cjt(a)||fjt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(u,l,f){hjt(u,l,f,t.dragOptions,a)},ujt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Hh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Hh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var bJ=ei(),yjt=C_(),gjt=Jd(),NGe=Ok();UGe.exports=function(t,r,n){yjt(t,r,n,{type:"mapbox",attributes:NGe,handleDefaults:_jt,partition:"y",accessToken:r._mapboxAccessToken})};function _jt(e,t,r,n){r("accesstoken",n.accessToken),r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var i=r("bounds.west"),a=r("bounds.east"),o=r("bounds.south"),s=r("bounds.north");(i===void 0||a===void 0||o===void 0||s===void 0)&&delete t.bounds,gjt(e,t,{name:"layers",handleItemDefaults:xjt}),t._input=e}function xjt(e,t){function r(u,l){return bJ.coerce(e,t,NGe.layers,u,l)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",bJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),bJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var oB=Te(qv=>{"use strict";var GGe=yJ(),ty=ei(),wJ=ty.strTranslate,bjt=ty.strScale,wjt=Rd().getSubplotCalcData,Ajt=jv(),Tjt=Jl(),HGe=Mu(),Sjt=Zf(),Mjt=qGe(),xx="mapbox",Qy=qv.constants=f1();qv.name=xx;qv.attr="subplot";qv.idRoot=xx;qv.idRegex=qv.attrRegex=ty.counterRegex(xx);var Ejt=["mapbox subplots and traces are deprecated!","Please consider switching to `map` subplots and traces.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");qv.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}};qv.layoutAttributes=Ok();qv.supplyLayoutDefaults=VGe();var WGe=!0;qv.plot=function(t){WGe&&(WGe=!1,ty.warn(Ejt));var r=t._fullLayout,n=t.calcdata,i=r._subplots[xx];if(GGe.version!==Qy.requiredVersion)throw new Error(Qy.wrongVersionErrorMsg);var a=kjt(t,i);GGe.accessToken=a;for(var o=0;ov/2){var k=d.split("|").join("
");x.text(k).attr("data-unformatted",k).call(Sjt.convertToTspans,e),b=HGe.bBox(x.node())}x.attr("transform",wJ(-3,-b.height+8)),p.insert("rect",".static-attribution").attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:"rgba(255, 255, 255, 0.75)"});var E=1;b.width+6>v&&(E=v/(b.width+6));var T=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];p.attr("transform",wJ(T[0],T[1])+bjt(E))}};function kjt(e,t){var r=e._fullLayout,n=e._context;if(n.mapboxAccessToken==="")return"";for(var i=[],a=[],o=!1,s=!1,u=0;u1&&ty.warn(Qy.multipleTokensErrorMsg),i[0]):(a.length&&ty.log(["Listed mapbox access token(s)",a.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function jGe(e){return typeof e=="string"&&(Qy.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}qv.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[xx],n=0;n{"use strict";var cbr=["*scattermapbox* trace is deprecated!","Please consider switching to the *scattermap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");XGe.exports={attributes:$8(),supplyDefaults:aGe(),colorbar:ep(),formatLabels:fJ(),calc:fF(),plot:_Ge(),hoverPoints:iB().hoverPoints,eventData:AGe(),selectPoints:SGe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:oB(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var KGe=Te((dbr,YGe)=>{"use strict";YGe.exports=ZGe()});var AJ=Te((pbr,JGe)=>{"use strict";var c1=JT(),Cjt=nc(),Ljt=Nu().hovertemplateAttrs,Pjt=Vf(),bx=Su().extendFlat;JGe.exports=bx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:bx({},c1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:c1.text,hovertext:c1.hovertext,marker:{line:{color:bx({},c1.marker.line.color,{editType:"plot"}),width:bx({},c1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:bx({},c1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:bx({},c1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:bx({},c1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:c1.hoverinfo,hovertemplate:Ljt({},{keys:["properties"]}),showlegend:bx({},Pjt.showlegend,{dflt:!1})},Cjt("",{cLetter:"z",editTypeOverride:"calc"}))});var QGe=Te((vbr,$Ge)=>{"use strict";var Vk=ei(),zjt=ed(),Ijt=AJ();$Ge.exports=function(t,r,n,i){function a(f,c){return Vk.coerce(t,r,Ijt,f,c)}var o=a("locations"),s=a("z"),u=a("geojson");if(!Vk.isArrayOrTypedArray(o)||!o.length||!Vk.isArrayOrTypedArray(s)||!s.length||!(typeof u=="string"&&u!==""||Vk.isPlainObject(u))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate");var l=a("marker.line.width");l&&a("marker.line.color"),a("marker.opacity"),zjt(t,r,i,a,{prefix:"",cLetter:"z"}),Vk.coerceSelectionMarkerOpacity(r,a)}});var TJ=Te((mbr,rHe)=>{"use strict";var Rjt=ku(),h1=ei(),Djt=_c(),Fjt=Mu(),Bjt=rx().makeBlank,eHe=nx();function Ojt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:Bjt()};if(!r)return a;var o=eHe.extractTraceFeature(e);if(!o)return a;var s=Djt.makeColorScaleFuncFromTrace(t),u=t.marker,l=u.line||{},f;h1.isArrayOrTypedArray(u.opacity)&&(f=function(k){var E=k.mo;return Rjt(E)?+h1.constrain(E,0,1):0});var c;h1.isArrayOrTypedArray(l.color)&&(c=function(k){return k.mlc});var h;h1.isArrayOrTypedArray(l.width)&&(h=function(k){return k.mlw});for(var d=0;d{"use strict";var nHe=TJ().convert,qjt=TJ().convertOnSelect,iHe=f1().traceLayerPrefix;function aHe(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",iHe+t+"-fill"],["line",iHe+t+"-line"]],this.below=null}var AS=aHe.prototype;AS.update=function(e){this._update(nHe(e)),e[0].trace._glTrace=this};AS.updateOnSelect=function(e){this._update(qjt(e))};AS._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};AS.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};oHe.exports=function(t,r){var n=r[0].trace,i=new aHe(t,n.uid),a=i.sourceId,o=nHe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var uHe=Te((_br,lHe)=>{"use strict";var gbr=["*choroplethmapbox* trace is deprecated!","Please consider switching to the *choroplethmap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");lHe.exports={attributes:AJ(),supplyDefaults:QGe(),colorbar:M_(),calc:zF(),plot:sHe(),hoverPoints:RF(),eventData:DF(),selectPoints:FF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";fHe.exports=uHe()});var MJ=Te((bbr,dHe)=>{"use strict";var Njt=nc(),Ujt=Nu().hovertemplateAttrs,hHe=Vf(),sB=$8(),SJ=Su().extendFlat;dHe.exports=SJ({lon:sB.lon,lat:sB.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:sB.text,hovertext:sB.hovertext,hoverinfo:SJ({},hHe.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:Ujt(),showlegend:SJ({},hHe.showlegend,{dflt:!1})},Njt("",{cLetter:"z",editTypeOverride:"calc"}))});var vHe=Te((wbr,pHe)=>{"use strict";var Vjt=ei(),Gjt=ed(),Hjt=MJ();pHe.exports=function(t,r,n,i){function a(l,f){return Vjt.coerce(t,r,Hjt,l,f)}var o=a("lon")||[],s=a("lat")||[],u=Math.min(o.length,s.length);if(!u){r.visible=!1;return}r._length=u,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),Gjt(t,r,i,a,{prefix:"",cLetter:"z"})}});var gHe=Te((Abr,yHe)=>{"use strict";var EJ=ku(),Wjt=ei().isArrayOrTypedArray,kJ=nf().BADNUM,jjt=Dp(),mHe=ei()._;yHe.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=Wjt(a)&&a.length,s=0;s{"use strict";var Xjt=ku(),CJ=ei(),_He=jl(),xHe=_c(),bHe=nf().BADNUM,Zjt=rx().makeBlank;wHe.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:Zjt()};if(!n)return a;var o=[],s,u=r.z,l=r.radius,f=CJ.isArrayOrTypedArray(u)&&u.length,c=CJ.isArrayOrTypedArray(l);for(s=0;s0?+l[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:p})}}var b=xHe.extractOpts(r),v=b.reversescale?xHe.flipScale(b.colorscale):b.colorscale,k=v[0][1],E=_He.opacity(k)<1?k:_He.addOpacity(k,0),T=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var THe=AHe(),Yjt=f1().traceLayerPrefix;function SHe(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",Yjt+t+"-heatmap"]],this.below=null}var lB=SHe.prototype;lB.update=function(e){var t=this.subplot,r=this.layerList,n=THe(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};lB.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};MHe.exports=function(t,r){var n=r[0].trace,i=new SHe(t,n.uid),a=i.sourceId,o=THe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var CHe=Te((Mbr,kHe)=>{"use strict";var Kjt=wu(),Jjt=iB().hoverPoints,$jt=iB().getExtraText;kHe.exports=function(t,r,n){var i=Jjt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,u=o[a.index];if(delete a.color,"z"in u){var l=a.subplot.mockAxis;a.z=u.z,a.zLabel=Kjt.tickText(l,l.c2l(u.z),"hover").text}return a.extraText=$jt(s,u,o[0].t.labels),[a]}}});var PHe=Te((Ebr,LHe)=>{"use strict";LHe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var IHe=Te((Cbr,zHe)=>{"use strict";var kbr=["*densitymapbox* trace is deprecated!","Please consider switching to the *densitymap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");zHe.exports={attributes:MJ(),supplyDefaults:vHe(),colorbar:M_(),formatLabels:fJ(),calc:gHe(),plot:EHe(),hoverPoints:CHe(),eventData:PHe(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";RHe.exports=IHe()});var BHe=Te((Pbr,FHe)=>{FHe.exports={version:8,name:"orto",metadata:{"maputnik:renderer":"mlgljs"},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}},{id:"waterway_tunnel",type:"line",source:"openmaptiles","source-layer":"waterway",minzoom:14,filter:["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]},"line-dasharray":[2,4]}},{id:"waterway-other",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["!in","class","canal","river","stream"],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,2]]}}},{id:"waterway-stream-canal",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["in","class","canal","stream"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]}}},{id:"waterway-river",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["==","class","river"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.2,stops:[[10,.8],[20,4]]},"line-opacity":.5}},{id:"water-offset",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",maxzoom:8,filter:["==","$type","Polygon"],layout:{visibility:"visible"},paint:{"fill-opacity":0,"fill-color":"#a0c8f0","fill-translate":{base:1,stops:[[6,[2,0]],[8,[0,0]]]}}},{id:"water",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0}},{id:"water-pattern",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-translate":[0,2.5],"fill-pattern":"wave","fill-opacity":1}},{id:"landcover-ice-shelf",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"landcover",filter:["==","subclass","ice_shelf"],layout:{visibility:"visible"},paint:{"fill-color":"#fff","fill-opacity":{base:1,stops:[[0,.9],[10,.3]]}}},{id:"tunnel-service-track-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[15,1],[16,4],[20,11]]}}},{id:"tunnel-minor-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,1]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"tunnel-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"tunnel-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.7}},{id:"tunnel-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"tunnel-path",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"tunnel-service-track",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-width":{base:1.2,stops:[[15.5,0],[16,2],[20,7.5]]}}},{id:"tunnel-minor",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor_road"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-opacity":1,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"tunnel-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,10]]}}},{id:"tunnel-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-motorway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#ffdaa6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-railway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]},"line-dasharray":[2,2]}},{id:"ferry",type:"line",source:"openmaptiles","source-layer":"transportation",filter:["all",["in","class","ferry"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(108, 159, 182, 1)","line-width":1.1,"line-dasharray":[2,2]}},{id:"aeroway-taxiway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","taxiway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,2],[17,12]]},"line-opacity":1}},{id:"aeroway-runway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","runway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,5],[17,55]]},"line-opacity":1}},{id:"aeroway-taxiway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","taxiway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,1],[17,10]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"aeroway-runway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","runway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,4],[17,50]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"highway-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-minor-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,0]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"highway-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":.5,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"highway-primary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[7,0],[8,.6]]},"line-width":{base:1.2,stops:[[7,0],[8,.6],[9,1.5],[20,22]]}}},{id:"highway-trunk-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[5,0],[6,.5]]},"line-width":{base:1.2,stops:[[5,0],[6,.6],[7,1.5],[20,22]]}}},{id:"highway-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:4,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[4,0],[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":{stops:[[4,0],[5,.5]]}}},{id:"highway-path",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"highway-motorway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-minor",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fff","line-opacity":.5,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"highway-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[8,.5],[20,13]]},"line-opacity":.5}},{id:"highway-primary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[8.5,0],[9,.5],[20,18]]},"line-opacity":0}},{id:"highway-trunk",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"highway-motorway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"railway-transit",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-transit-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway-service",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-service-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"railway-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"bridge-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,28]]}}},{id:"bridge-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"hsl(28, 76%, 67%)","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,26]]}}},{id:"bridge-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"bridge-path-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#f8f4f0","line-width":{base:1.2,stops:[[15,1.2],[20,18]]}}},{id:"bridge-path",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#cba","line-width":{base:1.2,stops:[[15,1.2],[20,4]]},"line-dasharray":[1.5,.75]}},{id:"bridge-motorway-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,20]]}}},{id:"bridge-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]}}},{id:"bridge-motorway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"bridge-railway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"bridge-railway-hatching",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"cablecar",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,1],[19,2.5]]}}},{id:"cablecar-dash",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,3],[19,5.5]]},"line-dasharray":[2,3]}},{id:"boundary-land-level-4",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],layout:{"line-join":"round"},paint:{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{base:1.4,stops:[[4,.4],[5,1],[12,3]]},"line-opacity":.6}},{id:"boundary-land-level-2",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 66%)","line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,2]]}}},{id:"boundary-land-disputed",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["!=","maritime",1],["==","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,8]]}}},{id:"boundary-water",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["in","admin_level",2,4],["==","maritime",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"rgba(154, 189, 214, 1)","line-width":{base:1,stops:[[0,.6],[4,1],[5,1],[12,1]]},"line-opacity":{stops:[[6,0],[10,0]]}}},{id:"waterway-name",type:"symbol",source:"openmaptiles","source-layer":"waterway",minzoom:13,filter:["all",["==","$type","LineString"],["has","name"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin} {name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","text-letter-spacing":.2,"symbol-spacing":350},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-lakeline",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["==","$type","LineString"],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-ocean",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["==","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-other",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["!in","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":{stops:[[0,10],[6,14]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2,visibility:"visible"},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"poi-level-3",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:16,filter:["all",["==","$type","Point"],[">=","rank",25]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} {name:nonlatin}`,"text-offset":[0,.6],"text-size":12,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"poi-level-2",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:15,filter:["all",["==","$type","Point"],["<=","rank",24],[">=","rank",15]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} @@ -3222,10 +3222,10 @@ uniform `+dr+" "+Mr+" u_"+ur+`; {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(10, 9, 9, 0.8)"}},{id:"place-town",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["==","class","town"],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[10,14],[15,24]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(22, 22, 22, 0.8)"}},{id:"place-city",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["!=","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(0, 0, 0, 1)","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-city-capital",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin} -{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}});var OHe=Te((kbr,BHe)=>{BHe.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}});var wx=Te((Cbr,GHe)=>{"use strict";var Zjt=Y1(),Yjt=FHe(),Kjt=OHe(),Jjt='\xA9 OpenStreetMap contributors',qHe="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",NHe="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",uB="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",$jt="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",Qjt="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",eXt="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",VHe={basic:uB,streets:uB,outdoors:uB,light:qHe,dark:NHe,satellite:Kjt,"satellite-streets":Yjt,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:Jjt,tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":qHe,"carto-darkmatter":NHe,"carto-voyager":uB,"carto-positron-nolabels":$jt,"carto-darkmatter-nolabels":Qjt,"carto-voyager-nolabels":eXt},UHe=Zjt(VHe);GHe.exports={styleValueDflt:"basic",stylesMap:VHe,styleValuesMap:UHe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",UHe.join(", "),"or use a tile service."].join(` -`),mapOnErrorMsg:"Map error."}});var Nk=Te((Lbr,ZHe)=>{"use strict";var HHe=ei(),WHe=jl().defaultLine,tXt=zc().attributes,rXt=gc(),iXt=Xc().textposition,nXt=Sc().overrideAll,aXt=Pf().templatedArray,jHe=wx(),XHe=rXt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});XHe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var oXt=ZHe.exports=nXt({_arrayAttrRegexps:[HHe.counterRegex("map",".layers",!0)],domain:tXt({name:"map"}),style:{valType:"any",values:jHe.styleValuesMap,dflt:jHe.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:aXt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:WHe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:WHe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:XHe,textposition:HHe.extendFlat({},iXt,{arrayOk:!1})}})},"plot","from-root");oXt.uirevision={valType:"any",editType:"none"}});var fB=Te((Pbr,JHe)=>{"use strict";var sXt=Hu().hovertemplateAttrs,lXt=Hu().texttemplateAttrs,uXt=Em(),Uk=G2(),TS=Xc(),YHe=Nk(),fXt=Vf(),cXt=nc(),rw=Su().extendFlat,hXt=Sc().overrideAll,dXt=Nk(),KHe=Uk.line,SS=Uk.marker;JHe.exports=hXt({lon:Uk.lon,lat:Uk.lat,cluster:{enabled:{valType:"boolean"},maxzoom:rw({},dXt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:rw({},SS.opacity,{dflt:1})},mode:rw({},TS.mode,{dflt:"markers"}),text:rw({},TS.text,{}),texttemplate:lXt({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:rw({},TS.hovertext,{}),line:{color:KHe.color,width:KHe.width},connectgaps:TS.connectgaps,marker:rw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:SS.opacity,size:SS.size,sizeref:SS.sizeref,sizemin:SS.sizemin,sizemode:SS.sizemode},cXt("marker")),fill:Uk.fill,fillcolor:uXt(),textfont:YHe.layers.symbol.textfont,textposition:YHe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:TS.selected.marker},unselected:{marker:TS.unselected.marker},hoverinfo:rw({},fXt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:sXt()},"calc","nested")});var CJ=Te((zbr,$He)=>{"use strict";var pXt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];$He.exports={isSupportedFont:function(e){return pXt.indexOf(e)!==-1}}});var tWe=Te((Ibr,eWe)=>{"use strict";var Vk=ei(),LJ=lc(),vXt=$v(),mXt=I0(),yXt=R0(),gXt=zm(),QHe=fB(),_Xt=CJ().isSupportedFont;eWe.exports=function(t,r,n,i){function a(v,k){return Vk.coerce(t,r,QHe,v,k)}function o(v,k){return Vk.coerce2(t,r,QHe,v,k)}var s=xXt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("hovertext"),a("hovertemplate"),a("mode"),a("below"),LJ.hasMarkers(r)){vXt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var u=r.marker;u.symbol!=="circle"&&(Vk.isArrayOrTypedArray(u.size)&&(u.size=u.size[0]),Vk.isArrayOrTypedArray(u.color)&&(u.color=u.color[0]))}LJ.hasLines(r)&&(mXt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var l=o("cluster.maxzoom"),f=o("cluster.step"),c=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),p=l!==!1||f!==!1||c!==!1||h!==!1||d!==!1,x=a("cluster.enabled",p);if(x||LJ.hasText(r)){var b=i.font.family;yXt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:_Xt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&gXt(t,r,n,a),Vk.coerceSelectionMarkerOpacity(r,a)};function xXt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var PJ=Te((Rbr,iWe)=>{"use strict";var rWe=wu();iWe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=rWe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=rWe.tickText(o,o.c2l(s[1]),!0).text,i}});var zJ=Te((Dbr,aWe)=>{"use strict";var nWe=ei();aWe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=nWe.isArrayOrTypedArray(r)?nWe.mean(r):r,s=.5+o/100,u=1.5+o/100,l=["",""],f=[0,0];switch(i){case"top":l[0]="top",f[1]=-u;break;case"bottom":l[0]="bottom",f[1]=u;break}switch(a){case"left":l[1]="right",f[0]=-s;break;case"right":l[1]="left",f[0]=s;break}var c;return l[0]&&l[1]?c=l.join("-"):l[0]?c=l[0]:l[1]?c=l[1]:c="center",{anchor:c,offset:f}}});var cWe=Te((Fbr,fWe)=>{"use strict";var lWe=ku(),lp=ei(),bXt=nf().BADNUM,hB=rx(),oWe=_c(),wXt=Mu(),AXt=S3(),dB=lc(),TXt=CJ().isSupportedFont,SXt=zJ(),MXt=rv().appendArrayPointValue,EXt=Zf().NEWLINES,kXt=Zf().BR_TAG_ALL;fWe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=dB.hasLines(n),s=dB.hasMarkers(n),u=dB.hasText(n),l=s&&n.marker.symbol==="circle",f=s&&n.marker.symbol!=="circle",c=n.cluster&&n.cluster.enabled,h=cB("fill"),d=cB("line"),p=cB("circle"),x=cB("symbol"),b={fill:h,line:d,circle:p,symbol:x};if(!i)return b;var v;if((a||o)&&(v=hB.calcTraceToLineCoords(r)),a&&(h.geojson=hB.makePolygon(v),h.layout.visibility="visible",lp.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=hB.makeLine(v),d.layout.visibility="visible",lp.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),l){var k=CXt(r);p.geojson=k.geojson,p.layout.visibility="visible",c&&(p.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":RJ(n.cluster.color,n.cluster.step),"circle-radius":RJ(n.cluster.size,n.cluster.step),"circle-opacity":RJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":sWe(n),"text-size":12}}),lp.extendFlat(p.paint,{"circle-color":k.mcc,"circle-radius":k.mrc,"circle-opacity":k.mo})}if(l&&c&&(p.filter=["!",["has","point_count"]]),(f||u)&&(x.geojson=LXt(r,t),lp.extendFlat(x.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),f&&(lp.extendFlat(x.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&lp.extendFlat(x.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),x.layout["icon-allow-overlap"]=n.marker.allowoverlap,lp.extendFlat(x.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),u)){var E=(n.marker||{}).size,T=SXt(n.textposition,E);lp.extendFlat(x.layout,{"text-size":n.textfont.size,"text-anchor":T.anchor,"text-offset":T.offset,"text-font":sWe(n)}),lp.extendFlat(x.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function cB(e){return{type:e,geojson:hB.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function CXt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=lp.isArrayOrTypedArray(r.color),a=lp.isArrayOrTypedArray(r.size),o=lp.isArrayOrTypedArray(r.opacity),s;function u(E){return t.opacity*E}function l(E){return E/2}var f;i&&(oWe.hasColorscale(t,"marker")?f=oWe.makeColorScaleFuncFromTrace(r):f=lp.identity);var c;a&&(c=AXt(t));var h;o&&(h=function(E){var T=lWe(E)?+lp.constrain(E,0,1):0;return u(T)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),TXt(s)||(s=r);var u=s.split(", ");return u}});var vWe=Te((Bbr,pWe)=>{"use strict";var PXt=ei(),hWe=cWe(),MS=wx().traceLayerPrefix,nm={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function dWe(e,t,r,n){this.type="scattermap",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:MS+t+"-fill",line:MS+t+"-line",circle:MS+t+"-circle",symbol:MS+t+"-symbol",cluster:MS+t+"-cluster",clusterCount:MS+t+"-cluster-count"},this.below=null}var Gk=dWe.prototype;Gk.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&PXt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};Gk.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};Gk.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var _=T[L];i.removeLayer(l.layerIds[_])}E||i.removeSource(l.sourceIds.circle)}function h(E){for(var T=nm.nonCluster,L=0;L=0;L--){var _=T[L];i.removeLayer(l.layerIds[_]),E||i.removeSource(l.sourceIds[_])}}function p(E){u?c(E):d(E)}function x(E){s?f(E):h(E)}function b(){for(var E=s?nm.cluster:nm.nonCluster,T=0;T=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};pWe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new dWe(t,n.uid,i,a),s=hWe(t.gd,r),u=o.below=t.belowLookup["trace-"+n.uid],l,f,c;if(i)for(o.addSource("circle",s.circle,n.cluster),l=0;l{"use strict";var zXt=jc(),DJ=ei(),IXt=oA(),RXt=DJ.fillText,DXt=nf().BADNUM,FXt=wx().traceLayerPrefix;function BXt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,u=[],l=FXt+i.uid+"-circle",f=i.cluster&&i.cluster.enabled;if(f){var c=s.map.queryRenderedFeatures(null,{layers:[l]});u=c.map(function(S){return S.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,p=t-d;function x(S){var m=S.lonlat;if(m[0]===DXt||f&&u.indexOf(S.i+1)===-1)return 1/0;var P=DJ.modHalf(m[0],360),A=m[1],B=s.project([P,A]),F=B.x-a.c2p([p,A]),U=B.y-o.c2p([P,r]),G=Math.max(3,S.mrc||0);return Math.max(Math.sqrt(F*F+U*U)-G,1-3/G)}if(zXt.getClosest(n,x,e),e.index!==!1){var b=n[e.index],v=b.lonlat,k=[DJ.modHalf(v[0],360)+d,v[1]],E=a.c2p(k),T=o.c2p(k),L=b.mrc||1;e.x0=E-L,e.x1=E+L,e.y0=T-L,e.y1=T+L;var _={};_[i.subplot]={_subplot:s};var C=i._module.formatLabels(b,i,_);return e.lonLabel=C.lonLabel,e.latLabel=C.latLabel,e.color=IXt(i,b),e.extraText=mWe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function mWe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,u=t.lonlat,l=[];function f(c){return c+"\xB0"}return a||o&&s?l.push("("+f(u[1])+", "+f(u[0])+")"):o?l.push(r.lon+f(u[0])):s&&l.push(r.lat+f(u[1])),(a||i.indexOf("text")!==-1)&&RXt(t,e,l),l.join("
")}yWe.exports={hoverPoints:BXt,getExtraText:mWe}});var _We=Te((qbr,gWe)=>{"use strict";gWe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var bWe=Te((Nbr,xWe)=>{"use strict";var OXt=ei(),qXt=lc(),NXt=nf().BADNUM;xWe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u;if(!qXt.hasMarkers(s))return[];if(r===!1)for(u=0;u{(function(e,t){typeof FJ=="object"&&typeof BJ!="undefined"?BJ.exports=t():(e=typeof globalThis!="undefined"?globalThis:e||self,e.maplibregl=t())})(FJ,function(){"use strict";var e={},t={};function r(i,a,o){if(t[i]=o,i==="index"){var s="var sharedModule = {}; ("+t.shared+")(sharedModule); ("+t.worker+")(sharedModule);",u={};return t.shared(u),t.index(e,u),typeof window!="undefined"&&e.setWorkerUrl(window.URL.createObjectURL(new Blob([s],{type:"text/javascript"}))),e}}r("shared",["exports"],function(i){"use strict";function a(I,M,D,X){return new(D||(D=Promise))(function(ie,ve){function we(Mt){try{ut(X.next(Mt))}catch($t){ve($t)}}function He(Mt){try{ut(X.throw(Mt))}catch($t){ve($t)}}function ut(Mt){var $t;Mt.done?ie(Mt.value):($t=Mt.value,$t instanceof D?$t:new D(function(vr){vr($t)})).then(we,He)}ut((X=X.apply(I,M||[])).next())})}function o(I){return I&&I.__esModule&&Object.prototype.hasOwnProperty.call(I,"default")?I.default:I}typeof SuppressedError=="function"&&SuppressedError;var s=u;function u(I,M){this.x=I,this.y=M}u.prototype={clone:function(){return new u(this.x,this.y)},add:function(I){return this.clone()._add(I)},sub:function(I){return this.clone()._sub(I)},multByPoint:function(I){return this.clone()._multByPoint(I)},divByPoint:function(I){return this.clone()._divByPoint(I)},mult:function(I){return this.clone()._mult(I)},div:function(I){return this.clone()._div(I)},rotate:function(I){return this.clone()._rotate(I)},rotateAround:function(I,M){return this.clone()._rotateAround(I,M)},matMult:function(I){return this.clone()._matMult(I)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(I){return this.x===I.x&&this.y===I.y},dist:function(I){return Math.sqrt(this.distSqr(I))},distSqr:function(I){var M=I.x-this.x,D=I.y-this.y;return M*M+D*D},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(I){return Math.atan2(this.y-I.y,this.x-I.x)},angleWith:function(I){return this.angleWithSep(I.x,I.y)},angleWithSep:function(I,M){return Math.atan2(this.x*M-this.y*I,this.x*I+this.y*M)},_matMult:function(I){var M=I[2]*this.x+I[3]*this.y;return this.x=I[0]*this.x+I[1]*this.y,this.y=M,this},_add:function(I){return this.x+=I.x,this.y+=I.y,this},_sub:function(I){return this.x-=I.x,this.y-=I.y,this},_mult:function(I){return this.x*=I,this.y*=I,this},_div:function(I){return this.x/=I,this.y/=I,this},_multByPoint:function(I){return this.x*=I.x,this.y*=I.y,this},_divByPoint:function(I){return this.x/=I.x,this.y/=I.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var I=this.y;return this.y=this.x,this.x=-I,this},_rotate:function(I){var M=Math.cos(I),D=Math.sin(I),X=D*this.x+M*this.y;return this.x=M*this.x-D*this.y,this.y=X,this},_rotateAround:function(I,M){var D=Math.cos(I),X=Math.sin(I),ie=M.y+X*(this.x-M.x)+D*(this.y-M.y);return this.x=M.x+D*(this.x-M.x)-X*(this.y-M.y),this.y=ie,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},u.convert=function(I){return I instanceof u?I:Array.isArray(I)?new u(I[0],I[1]):I};var l=o(s),f=c;function c(I,M,D,X){this.cx=3*I,this.bx=3*(D-I)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*M,this.by=3*(X-M)-this.cy,this.ay=1-this.cy-this.by,this.p1x=I,this.p1y=M,this.p2x=D,this.p2y=X}c.prototype={sampleCurveX:function(I){return((this.ax*I+this.bx)*I+this.cx)*I},sampleCurveY:function(I){return((this.ay*I+this.by)*I+this.cy)*I},sampleCurveDerivativeX:function(I){return(3*this.ax*I+2*this.bx)*I+this.cx},solveCurveX:function(I,M){if(M===void 0&&(M=1e-6),I<0)return 0;if(I>1)return 1;for(var D=I,X=0;X<8;X++){var ie=this.sampleCurveX(D)-I;if(Math.abs(ie)ie?we=D:He=D,D=.5*(He-we)+we;return D},solve:function(I,M){return this.sampleCurveY(this.solveCurveX(I,M))}};var h=o(f);let d,p;function x(){return d==null&&(d=typeof OffscreenCanvas!="undefined"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),d}function b(){if(p==null&&(p=!1,x())){let M=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(M){for(let X=0;X<5*5;X++){let ie=4*X;M.fillStyle=`rgb(${ie},${ie+1},${ie+2})`,M.fillRect(X%5,Math.floor(X/5),1,1)}let D=M.getImageData(0,0,5,5).data;for(let X=0;X<5*5*4;X++)if(X%4!=3&&D[X]!==X){p=!0;break}}}return p||!1}function v(I,M,D,X){let ie=new h(I,M,D,X);return ve=>ie.solve(ve)}let k=v(.25,.1,.25,1);function E(I,M,D){return Math.min(D,Math.max(M,I))}function T(I,M,D){let X=D-M,ie=((I-M)%X+X)%X+M;return ie===M?D:ie}function L(I,...M){for(let D of M)for(let X in D)I[X]=D[X];return I}let _=1;function C(I,M,D){let X={};for(let ie in I)X[ie]=M.call(this,I[ie],ie,I);return X}function S(I,M,D){let X={};for(let ie in I)M.call(this,I[ie],ie,I)&&(X[ie]=I[ie]);return X}function m(I){return Array.isArray(I)?I.map(m):typeof I=="object"&&I?C(I,m):I}let P={};function A(I){P[I]||(typeof console!="undefined"&&console.warn(I),P[I]=!0)}function B(I,M,D){return(D.y-I.y)*(M.x-I.x)>(M.y-I.y)*(D.x-I.x)}function F(I){return typeof WorkerGlobalScope!="undefined"&&I!==void 0&&I instanceof WorkerGlobalScope}let U=null;function G(I){return typeof ImageBitmap!="undefined"&&I instanceof ImageBitmap}let j="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function H(I,M,D,X,ie){return a(this,void 0,void 0,function*(){if(typeof VideoFrame=="undefined")throw new Error("VideoFrame not supported");let ve=new VideoFrame(I,{timestamp:0});try{let we=ve==null?void 0:ve.format;if(!we||!we.startsWith("BGR")&&!we.startsWith("RGB"))throw new Error(`Unrecognized format ${we}`);let He=we.startsWith("BGR"),ut=new Uint8ClampedArray(X*ie*4);if(yield ve.copyTo(ut,function(Mt,$t,vr,Sr,Dr){let Jr=4*Math.max(-$t,0),li=(Math.max(0,vr)-vr)*Sr*4+Jr,Hi=4*Sr,cn=Math.max(0,$t),Za=Math.max(0,vr);return{rect:{x:cn,y:Za,width:Math.min(Mt.width,$t+Sr)-cn,height:Math.min(Mt.height,vr+Dr)-Za},layout:[{offset:li,stride:Hi}]}}(I,M,D,X,ie)),He)for(let Mt=0;MtF(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,ke=function(I,M){if(/:\/\//.test(I.url)&&!/^https?:|^file:/.test(I.url)){let X=Pe(I.url);if(X)return X(I,M);if(F(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:I,targetMapId:Ce},M)}if(!(/^file:/.test(D=I.url)||/^file:/.test(te())&&!/^\w+:/.test(D))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return function(X,ie){return a(this,void 0,void 0,function*(){let ve=new Request(X.url,{method:X.method||"GET",body:X.body,credentials:X.credentials,headers:X.headers,cache:X.cache,referrer:te(),signal:ie.signal});X.type!=="json"||ve.headers.has("Accept")||ve.headers.set("Accept","application/json");let we=yield fetch(ve);if(!we.ok){let Mt=yield we.blob();throw new de(we.status,we.statusText,X.url,Mt)}let He;He=X.type==="arrayBuffer"||X.type==="image"?we.arrayBuffer():X.type==="json"?we.json():we.text();let ut=yield He;if(ie.signal.aborted)throw ae();return{data:ut,cacheControl:we.headers.get("Cache-Control"),expires:we.headers.get("Expires")}})}(I,M);if(F(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:I,mustQueue:!0,targetMapId:Ce},M)}var D;return function(X,ie){return new Promise((ve,we)=>{var He;let ut=new XMLHttpRequest;ut.open(X.method||"GET",X.url,!0),X.type!=="arrayBuffer"&&X.type!=="image"||(ut.responseType="arraybuffer");for(let Mt in X.headers)ut.setRequestHeader(Mt,X.headers[Mt]);X.type==="json"&&(ut.responseType="text",!((He=X.headers)===null||He===void 0)&&He.Accept||ut.setRequestHeader("Accept","application/json")),ut.withCredentials=X.credentials==="include",ut.onerror=()=>{we(new Error(ut.statusText))},ut.onload=()=>{if(!ie.signal.aborted)if((ut.status>=200&&ut.status<300||ut.status===0)&&ut.response!==null){let Mt=ut.response;if(X.type==="json")try{Mt=JSON.parse(ut.response)}catch($t){return void we($t)}ve({data:Mt,cacheControl:ut.getResponseHeader("Cache-Control"),expires:ut.getResponseHeader("Expires")})}else{let Mt=new Blob([ut.response],{type:ut.getResponseHeader("Content-Type")});we(new de(ut.status,ut.statusText,X.url,Mt))}},ie.signal.addEventListener("abort",()=>{ut.abort(),we(ae())}),ut.send(X.body)})}(I,M)};function Ee(I){if(!I||I.indexOf("://")<=0||I.indexOf("data:image/")===0||I.indexOf("blob:")===0)return!0;let M=new URL(I),D=window.location;return M.protocol===D.protocol&&M.host===D.host}function Me(I,M,D){D[I]&&D[I].indexOf(M)!==-1||(D[I]=D[I]||[],D[I].push(M))}function Ue(I,M,D){if(D&&D[I]){let X=D[I].indexOf(M);X!==-1&&D[I].splice(X,1)}}class Fe{constructor(M,D={}){L(this,D),this.type=M}}class me extends Fe{constructor(M,D={}){super("error",L({error:M},D))}}class Ne{on(M,D){return this._listeners=this._listeners||{},Me(M,D,this._listeners),this}off(M,D){return Ue(M,D,this._listeners),Ue(M,D,this._oneTimeListeners),this}once(M,D){return D?(this._oneTimeListeners=this._oneTimeListeners||{},Me(M,D,this._oneTimeListeners),this):new Promise(X=>this.once(M,X))}fire(M,D){typeof M=="string"&&(M=new Fe(M,D||{}));let X=M.type;if(this.listens(X)){M.target=this;let ie=this._listeners&&this._listeners[X]?this._listeners[X].slice():[];for(let He of ie)He.call(this,M);let ve=this._oneTimeListeners&&this._oneTimeListeners[X]?this._oneTimeListeners[X].slice():[];for(let He of ve)Ue(X,He,this._oneTimeListeners),He.call(this,M);let we=this._eventedParent;we&&(L(M,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),we.fire(M))}else M instanceof me&&console.error(M.error);return this}listens(M){return this._listeners&&this._listeners[M]&&this._listeners[M].length>0||this._oneTimeListeners&&this._oneTimeListeners[M]&&this._oneTimeListeners[M].length>0||this._eventedParent&&this._eventedParent.listens(M)}setEventedParent(M,D){return this._eventedParent=M,this._eventedParentData=D,this}}var ce={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"enum",default:"mercator",values:{mercator:{},globe:{}}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};let Ke=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function it(I,M){let D={};for(let X in I)X!=="ref"&&(D[X]=I[X]);return Ke.forEach(X=>{X in M&&(D[X]=M[X])}),D}function bt(I,M){if(Array.isArray(I)){if(!Array.isArray(M)||I.length!==M.length)return!1;for(let D=0;D`:I.itemType.kind==="value"?"array":`array<${M}>`}return I.kind}let Ie=[pt,at,Xe,rt,Qe,mr,zt,xe(Yt),_r,Ht,Re];function De(I,M){if(M.kind==="error")return null;if(I.kind==="array"){if(M.kind==="array"&&(M.N===0&&M.itemType.kind==="value"||!De(I.itemType,M.itemType))&&(typeof I.N!="number"||I.N===M.N))return null}else{if(I.kind===M.kind)return null;if(I.kind==="value"){for(let D of Ie)if(!De(D,M))return null}}return`Expected ${Oe(I)} but found ${Oe(M)} instead.`}function ct(I,M){return M.some(D=>D.kind===I.kind)}function _e(I,M){return M.some(D=>D==="null"?I===null:D==="array"?Array.isArray(I):D==="object"?I&&!Array.isArray(I)&&typeof I=="object":D===typeof I)}function fe(I,M){return I.kind==="array"&&M.kind==="array"?I.itemType.kind===M.itemType.kind&&typeof I.N=="number":I.kind===M.kind}let pe=.96422,mt=.82521,It=4/29,Pt=6/29,rr=3*Pt*Pt,Wr=Pt*Pt*Pt,Nr=Math.PI/180,Er=180/Math.PI;function Br(I){return(I%=360)<0&&(I+=360),I}function mi([I,M,D,X]){let ie,ve,we=Ii((.2225045*(I=Di(I))+.7168786*(M=Di(M))+.0606169*(D=Di(D)))/1);I===M&&M===D?ie=ve=we:(ie=Ii((.4360747*I+.3850649*M+.1430804*D)/pe),ve=Ii((.0139322*I+.0971045*M+.7141733*D)/mt));let He=116*we-16;return[He<0?0:He,500*(ie-we),200*(we-ve),X]}function Di(I){return I<=.04045?I/12.92:Math.pow((I+.055)/1.055,2.4)}function Ii(I){return I>Wr?Math.pow(I,1/3):I/rr+It}function Ci([I,M,D,X]){let ie=(I+16)/116,ve=isNaN(M)?ie:ie+M/500,we=isNaN(D)?ie:ie-D/200;return ie=1*ii(ie),ve=pe*ii(ve),we=mt*ii(we),[nn(3.1338561*ve-1.6168667*ie-.4906146*we),nn(-.9787684*ve+1.9161415*ie+.033454*we),nn(.0719453*ve-.2289914*ie+1.4052427*we),X]}function nn(I){return(I=I<=.00304?12.92*I:1.055*Math.pow(I,1/2.4)-.055)<0?0:I>1?1:I}function ii(I){return I>Pt?I*I*I:rr*(I-It)}function wi(I){return parseInt(I.padEnd(2,I),16)/255}function Gi(I,M){return Ft(M?I/100:I,0,1)}function Ft(I,M,D){return Math.min(Math.max(M,I),D)}function gt(I){return!I.some(Number.isNaN)}let Ut={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class Wt{constructor(M,D,X,ie=1,ve=!0){this.r=M,this.g=D,this.b=X,this.a=ie,ve||(this.r*=ie,this.g*=ie,this.b*=ie,ie||this.overwriteGetter("rgb",[M,D,X,ie]))}static parse(M){if(M instanceof Wt)return M;if(typeof M!="string")return;let D=function(X){if((X=X.toLowerCase().trim())==="transparent")return[0,0,0,0];let ie=Ut[X];if(ie){let[we,He,ut]=ie;return[we/255,He/255,ut/255,1]}if(X.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(X)){let we=X.length<6?1:2,He=1;return[wi(X.slice(He,He+=we)),wi(X.slice(He,He+=we)),wi(X.slice(He,He+=we)),wi(X.slice(He,He+we)||"ff")]}if(X.startsWith("rgb")){let we=X.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(we){let[He,ut,Mt,$t,vr,Sr,Dr,Jr,li,Hi,cn,Za]=we,Rn=[$t||" ",Dr||" ",Hi].join("");if(Rn===" "||Rn===" /"||Rn===",,"||Rn===",,,"){let La=[Mt,Sr,li].join(""),So=La==="%%%"?100:La===""?255:0;if(So){let kl=[Ft(+ut/So,0,1),Ft(+vr/So,0,1),Ft(+Jr/So,0,1),cn?Gi(+cn,Za):1];if(gt(kl))return kl}}return}}let ve=X.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(ve){let[we,He,ut,Mt,$t,vr,Sr,Dr,Jr]=ve,li=[ut||" ",$t||" ",Sr].join("");if(li===" "||li===" /"||li===",,"||li===",,,"){let Hi=[+He,Ft(+Mt,0,100),Ft(+vr,0,100),Dr?Gi(+Dr,Jr):1];if(gt(Hi))return function([cn,Za,Rn,La]){function So(kl){let mu=(kl+cn/30)%12,Iu=Za*Math.min(Rn,1-Rn);return Rn-Iu*Math.max(-1,Math.min(mu-3,9-mu,1))}return cn=Br(cn),Za/=100,Rn/=100,[So(0),So(8),So(4),La]}(Hi)}}}(M);return D?new Wt(...D,!1):void 0}get rgb(){let{r:M,g:D,b:X,a:ie}=this,ve=ie||1/0;return this.overwriteGetter("rgb",[M/ve,D/ve,X/ve,ie])}get hcl(){return this.overwriteGetter("hcl",function(M){let[D,X,ie,ve]=mi(M),we=Math.sqrt(X*X+ie*ie);return[Math.round(1e4*we)?Br(Math.atan2(ie,X)*Er):NaN,we,D,ve]}(this.rgb))}get lab(){return this.overwriteGetter("lab",mi(this.rgb))}overwriteGetter(M,D){return Object.defineProperty(this,M,{value:D}),D}toString(){let[M,D,X,ie]=this.rgb;return`rgba(${[M,D,X].map(ve=>Math.round(255*ve)).join(",")},${ie})`}}Wt.black=new Wt(0,0,0,1),Wt.white=new Wt(1,1,1,1),Wt.transparent=new Wt(0,0,0,0),Wt.red=new Wt(1,0,0,1);class xr{constructor(M,D,X){this.sensitivity=M?D?"variant":"case":D?"accent":"base",this.locale=X,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(M,D){return this.collator.compare(M,D)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Lr{constructor(M,D,X,ie,ve){this.text=M,this.image=D,this.scale=X,this.fontStack=ie,this.textColor=ve}}class Ur{constructor(M){this.sections=M}static fromString(M){return new Ur([new Lr(M,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(M=>M.text.length!==0||M.image&&M.image.name.length!==0)}static factory(M){return M instanceof Ur?M:Ur.fromString(M)}toString(){return this.sections.length===0?"":this.sections.map(M=>M.text).join("")}}class Ir{constructor(M){this.values=M.slice()}static parse(M){if(M instanceof Ir)return M;if(typeof M=="number")return new Ir([M,M,M,M]);if(Array.isArray(M)&&!(M.length<1||M.length>4)){for(let D of M)if(typeof D!="number")return;switch(M.length){case 1:M=[M[0],M[0],M[0],M[0]];break;case 2:M=[M[0],M[1],M[0],M[1]];break;case 3:M=[M[0],M[1],M[2],M[1]]}return new Ir(M)}}toString(){return JSON.stringify(this.values)}}let Gr=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class jr{constructor(M){this.values=M.slice()}static parse(M){if(M instanceof jr)return M;if(Array.isArray(M)&&!(M.length<1)&&M.length%2==0){for(let D=0;D=0&&I<=255&&typeof M=="number"&&M>=0&&M<=255&&typeof D=="number"&&D>=0&&D<=255?X===void 0||typeof X=="number"&&X>=0&&X<=1?null:`Invalid rgba value [${[I,M,D,X].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof X=="number"?[I,M,D,X]:[I,M,D]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Vi(I){if(I===null||typeof I=="string"||typeof I=="boolean"||typeof I=="number"||I instanceof Wt||I instanceof xr||I instanceof Ur||I instanceof Ir||I instanceof jr||I instanceof yi)return!0;if(Array.isArray(I)){for(let M of I)if(!Vi(M))return!1;return!0}if(typeof I=="object"){for(let M in I)if(!Vi(I[M]))return!1;return!0}return!1}function ti(I){if(I===null)return pt;if(typeof I=="string")return Xe;if(typeof I=="boolean")return rt;if(typeof I=="number")return at;if(I instanceof Wt)return Qe;if(I instanceof xr)return lr;if(I instanceof Ur)return mr;if(I instanceof Ir)return _r;if(I instanceof jr)return Re;if(I instanceof yi)return Ht;if(Array.isArray(I)){let M=I.length,D;for(let X of I){let ie=ti(X);if(D){if(D===ie)continue;D=Yt;break}D=ie}return xe(D||Yt,M)}return zt}function en(I){let M=typeof I;return I===null?"":M==="string"||M==="number"||M==="boolean"?String(I):I instanceof Wt||I instanceof Ur||I instanceof Ir||I instanceof jr||I instanceof yi?I.toString():JSON.stringify(I)}class Yr{constructor(M,D){this.type=M,this.value=D}static parse(M,D){if(M.length!==2)return D.error(`'literal' expression requires exactly one argument, but found ${M.length-1} instead.`);if(!Vi(M[1]))return D.error("invalid value");let X=M[1],ie=ti(X),ve=D.expectedType;return ie.kind!=="array"||ie.N!==0||!ve||ve.kind!=="array"||typeof ve.N=="number"&&ve.N!==0||(ie=ve),new Yr(ie,X)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class oi{constructor(M){this.name="ExpressionEvaluationError",this.message=M}toJSON(){return this.message}}let Bi={string:Xe,number:at,boolean:rt,object:zt};class an{constructor(M,D){this.type=M,this.args=D}static parse(M,D){if(M.length<2)return D.error("Expected at least one argument.");let X,ie=1,ve=M[0];if(ve==="array"){let He,ut;if(M.length>2){let Mt=M[1];if(typeof Mt!="string"||!(Mt in Bi)||Mt==="object")return D.error('The item type argument of "array" must be one of string, number, boolean',1);He=Bi[Mt],ie++}else He=Yt;if(M.length>3){if(M[2]!==null&&(typeof M[2]!="number"||M[2]<0||M[2]!==Math.floor(M[2])))return D.error('The length argument to "array" must be a positive integer literal',2);ut=M[2],ie++}X=xe(He,ut)}else{if(!Bi[ve])throw new Error(`Types doesn't contain name = ${ve}`);X=Bi[ve]}let we=[];for(;ieM.outputDefined())}}let rn={"to-boolean":rt,"to-color":Qe,"to-number":at,"to-string":Xe};class Fi{constructor(M,D){this.type=M,this.args=D}static parse(M,D){if(M.length<2)return D.error("Expected at least one argument.");let X=M[0];if(!rn[X])throw new Error(`Can't parse ${X} as it is not part of the known types`);if((X==="to-boolean"||X==="to-string")&&M.length!==2)return D.error("Expected one argument.");let ie=rn[X],ve=[];for(let we=1;we4?`Invalid rbga value ${JSON.stringify(D)}: expected an array containing either three or four numeric values.`:Ei(D[0],D[1],D[2],D[3]),!X))return new Wt(D[0]/255,D[1]/255,D[2]/255,D[3])}throw new oi(X||`Could not parse color from value '${typeof D=="string"?D:JSON.stringify(D)}'`)}case"padding":{let D;for(let X of this.args){D=X.evaluate(M);let ie=Ir.parse(D);if(ie)return ie}throw new oi(`Could not parse padding from value '${typeof D=="string"?D:JSON.stringify(D)}'`)}case"variableAnchorOffsetCollection":{let D;for(let X of this.args){D=X.evaluate(M);let ie=jr.parse(D);if(ie)return ie}throw new oi(`Could not parse variableAnchorOffsetCollection from value '${typeof D=="string"?D:JSON.stringify(D)}'`)}case"number":{let D=null;for(let X of this.args){if(D=X.evaluate(M),D===null)return 0;let ie=Number(D);if(!isNaN(ie))return ie}throw new oi(`Could not convert ${JSON.stringify(D)} to number.`)}case"formatted":return Ur.fromString(en(this.args[0].evaluate(M)));case"resolvedImage":return yi.fromString(en(this.args[0].evaluate(M)));default:return en(this.args[0].evaluate(M))}}eachChild(M){this.args.forEach(M)}outputDefined(){return this.args.every(M=>M.outputDefined())}}let Ri=["Unknown","Point","LineString","Polygon"];class xn{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Ri[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(M){let D=this._parseColorCache[M];return D||(D=this._parseColorCache[M]=Wt.parse(M)),D}}class xi{constructor(M,D,X=[],ie,ve=new dt,we=[]){this.registry=M,this.path=X,this.key=X.map(He=>`[${He}]`).join(""),this.scope=ve,this.errors=we,this.expectedType=ie,this._isConstant=D}parse(M,D,X,ie,ve={}){return D?this.concat(D,X,ie)._parse(M,ve):this._parse(M,ve)}_parse(M,D){function X(ie,ve,we){return we==="assert"?new an(ve,[ie]):we==="coerce"?new Fi(ve,[ie]):ie}if(M!==null&&typeof M!="string"&&typeof M!="boolean"&&typeof M!="number"||(M=["literal",M]),Array.isArray(M)){if(M.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let ie=M[0];if(typeof ie!="string")return this.error(`Expression name must be a string, but found ${typeof ie} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let ve=this.registry[ie];if(ve){let we=ve.parse(M,this);if(!we)return null;if(this.expectedType){let He=this.expectedType,ut=we.type;if(He.kind!=="string"&&He.kind!=="number"&&He.kind!=="boolean"&&He.kind!=="object"&&He.kind!=="array"||ut.kind!=="value")if(He.kind!=="color"&&He.kind!=="formatted"&&He.kind!=="resolvedImage"||ut.kind!=="value"&&ut.kind!=="string")if(He.kind!=="padding"||ut.kind!=="value"&&ut.kind!=="number"&&ut.kind!=="array")if(He.kind!=="variableAnchorOffsetCollection"||ut.kind!=="value"&&ut.kind!=="array"){if(this.checkSubtype(He,ut))return null}else we=X(we,He,D.typeAnnotation||"coerce");else we=X(we,He,D.typeAnnotation||"coerce");else we=X(we,He,D.typeAnnotation||"coerce");else we=X(we,He,D.typeAnnotation||"assert")}if(!(we instanceof Yr)&&we.type.kind!=="resolvedImage"&&this._isConstant(we)){let He=new xn;try{we=new Yr(we.type,we.evaluate(He))}catch(ut){return this.error(ut.message),null}}return we}return this.error(`Unknown expression "${ie}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(M===void 0?"'undefined' value invalid. Use null instead.":typeof M=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof M} instead.`)}concat(M,D,X){let ie=typeof M=="number"?this.path.concat(M):this.path,ve=X?this.scope.concat(X):this.scope;return new xi(this.registry,this._isConstant,ie,D||null,ve,this.errors)}error(M,...D){let X=`${this.key}${D.map(ie=>`[${ie}]`).join("")}`;this.errors.push(new ot(X,M))}checkSubtype(M,D){let X=De(M,D);return X&&this.error(X),X}}class Xr{constructor(M,D){this.type=D.type,this.bindings=[].concat(M),this.result=D}evaluate(M){return this.result.evaluate(M)}eachChild(M){for(let D of this.bindings)M(D[1]);M(this.result)}static parse(M,D){if(M.length<4)return D.error(`Expected at least 3 arguments, but found ${M.length-1} instead.`);let X=[];for(let ve=1;ve=X.length)throw new oi(`Array index out of bounds: ${D} > ${X.length-1}.`);if(D!==Math.floor(D))throw new oi(`Array index must be an integer, but found ${D} instead.`);return X[D]}eachChild(M){M(this.index),M(this.input)}outputDefined(){return!1}}class pr{constructor(M,D){this.type=rt,this.needle=M,this.haystack=D}static parse(M,D){if(M.length!==3)return D.error(`Expected 2 arguments, but found ${M.length-1} instead.`);let X=D.parse(M[1],1,Yt),ie=D.parse(M[2],2,Yt);return X&&ie?ct(X.type,[rt,Xe,at,pt,Yt])?new pr(X,ie):D.error(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(X.type)} instead`):null}evaluate(M){let D=this.needle.evaluate(M),X=this.haystack.evaluate(M);if(!X)return!1;if(!_e(D,["boolean","string","number","null"]))throw new oi(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(ti(D))} instead.`);if(!_e(X,["string","array"]))throw new oi(`Expected second argument to be of type array or string, but found ${Oe(ti(X))} instead.`);return X.indexOf(D)>=0}eachChild(M){M(this.needle),M(this.haystack)}outputDefined(){return!0}}class gr{constructor(M,D,X){this.type=at,this.needle=M,this.haystack=D,this.fromIndex=X}static parse(M,D){if(M.length<=2||M.length>=5)return D.error(`Expected 3 or 4 arguments, but found ${M.length-1} instead.`);let X=D.parse(M[1],1,Yt),ie=D.parse(M[2],2,Yt);if(!X||!ie)return null;if(!ct(X.type,[rt,Xe,at,pt,Yt]))return D.error(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(X.type)} instead`);if(M.length===4){let ve=D.parse(M[3],3,at);return ve?new gr(X,ie,ve):null}return new gr(X,ie)}evaluate(M){let D=this.needle.evaluate(M),X=this.haystack.evaluate(M);if(!_e(D,["boolean","string","number","null"]))throw new oi(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(ti(D))} instead.`);let ie;if(this.fromIndex&&(ie=this.fromIndex.evaluate(M)),_e(X,["string"])){let ve=X.indexOf(D,ie);return ve===-1?-1:[...X.slice(0,ve)].length}if(_e(X,["array"]))return X.indexOf(D,ie);throw new oi(`Expected second argument to be of type array or string, but found ${Oe(ti(X))} instead.`)}eachChild(M){M(this.needle),M(this.haystack),this.fromIndex&&M(this.fromIndex)}outputDefined(){return!1}}class Zr{constructor(M,D,X,ie,ve,we){this.inputType=M,this.type=D,this.input=X,this.cases=ie,this.outputs=ve,this.otherwise=we}static parse(M,D){if(M.length<5)return D.error(`Expected at least 4 arguments, but found only ${M.length-1}.`);if(M.length%2!=1)return D.error("Expected an even number of arguments.");let X,ie;D.expectedType&&D.expectedType.kind!=="value"&&(ie=D.expectedType);let ve={},we=[];for(let Mt=2;MtNumber.MAX_SAFE_INTEGER)return Sr.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof Jr=="number"&&Math.floor(Jr)!==Jr)return Sr.error("Numeric branch labels must be integer values.");if(X){if(Sr.checkSubtype(X,ti(Jr)))return null}else X=ti(Jr);if(ve[String(Jr)]!==void 0)return Sr.error("Branch labels must be unique.");ve[String(Jr)]=we.length}let Dr=D.parse(vr,Mt,ie);if(!Dr)return null;ie=ie||Dr.type,we.push(Dr)}let He=D.parse(M[1],1,Yt);if(!He)return null;let ut=D.parse(M[M.length-1],M.length-1,ie);return ut?He.type.kind!=="value"&&D.concat(1).checkSubtype(X,He.type)?null:new Zr(X,ie,He,ve,we,ut):null}evaluate(M){let D=this.input.evaluate(M);return(ti(D)===this.inputType&&this.outputs[this.cases[D]]||this.otherwise).evaluate(M)}eachChild(M){M(this.input),this.outputs.forEach(M),M(this.otherwise)}outputDefined(){return this.outputs.every(M=>M.outputDefined())&&this.otherwise.outputDefined()}}class Ai{constructor(M,D,X){this.type=M,this.branches=D,this.otherwise=X}static parse(M,D){if(M.length<4)return D.error(`Expected at least 3 arguments, but found only ${M.length-1}.`);if(M.length%2!=0)return D.error("Expected an odd number of arguments.");let X;D.expectedType&&D.expectedType.kind!=="value"&&(X=D.expectedType);let ie=[];for(let we=1;weD.outputDefined())&&this.otherwise.outputDefined()}}class Qi{constructor(M,D,X,ie){this.type=M,this.input=D,this.beginIndex=X,this.endIndex=ie}static parse(M,D){if(M.length<=2||M.length>=5)return D.error(`Expected 3 or 4 arguments, but found ${M.length-1} instead.`);let X=D.parse(M[1],1,Yt),ie=D.parse(M[2],2,at);if(!X||!ie)return null;if(!ct(X.type,[xe(Yt),Xe,Yt]))return D.error(`Expected first argument to be of type array or string, but found ${Oe(X.type)} instead`);if(M.length===4){let ve=D.parse(M[3],3,at);return ve?new Qi(X.type,X,ie,ve):null}return new Qi(X.type,X,ie)}evaluate(M){let D=this.input.evaluate(M),X=this.beginIndex.evaluate(M),ie;if(this.endIndex&&(ie=this.endIndex.evaluate(M)),_e(D,["string"]))return[...D].slice(X,ie).join("");if(_e(D,["array"]))return D.slice(X,ie);throw new oi(`Expected first argument to be of type array or string, but found ${Oe(ti(D))} instead.`)}eachChild(M){M(this.input),M(this.beginIndex),this.endIndex&&M(this.endIndex)}outputDefined(){return!1}}function ni(I,M){let D=I.length-1,X,ie,ve=0,we=D,He=0;for(;ve<=we;)if(He=Math.floor((ve+we)/2),X=I[He],ie=I[He+1],X<=M){if(He===D||MM))throw new oi("Input is not a number.");we=He-1}return 0}class Zi{constructor(M,D,X){this.type=M,this.input=D,this.labels=[],this.outputs=[];for(let[ie,ve]of X)this.labels.push(ie),this.outputs.push(ve)}static parse(M,D){if(M.length-1<4)return D.error(`Expected at least 4 arguments, but found only ${M.length-1}.`);if((M.length-1)%2!=0)return D.error("Expected an even number of arguments.");let X=D.parse(M[1],1,at);if(!X)return null;let ie=[],ve=null;D.expectedType&&D.expectedType.kind!=="value"&&(ve=D.expectedType);for(let we=1;we=He)return D.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Mt);let vr=D.parse(ut,$t,ve);if(!vr)return null;ve=ve||vr.type,ie.push([He,vr])}return new Zi(ve,X,ie)}evaluate(M){let D=this.labels,X=this.outputs;if(D.length===1)return X[0].evaluate(M);let ie=this.input.evaluate(M);if(ie<=D[0])return X[0].evaluate(M);let ve=D.length;return ie>=D[ve-1]?X[ve-1].evaluate(M):X[ni(D,ie)].evaluate(M)}eachChild(M){M(this.input);for(let D of this.outputs)M(D)}outputDefined(){return this.outputs.every(M=>M.outputDefined())}}function aa(I){return I&&I.__esModule&&Object.prototype.hasOwnProperty.call(I,"default")?I.default:I}var Mn=Un;function Un(I,M,D,X){this.cx=3*I,this.bx=3*(D-I)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*M,this.by=3*(X-M)-this.cy,this.ay=1-this.cy-this.by,this.p1x=I,this.p1y=M,this.p2x=D,this.p2y=X}Un.prototype={sampleCurveX:function(I){return((this.ax*I+this.bx)*I+this.cx)*I},sampleCurveY:function(I){return((this.ay*I+this.by)*I+this.cy)*I},sampleCurveDerivativeX:function(I){return(3*this.ax*I+2*this.bx)*I+this.cx},solveCurveX:function(I,M){if(M===void 0&&(M=1e-6),I<0)return 0;if(I>1)return 1;for(var D=I,X=0;X<8;X++){var ie=this.sampleCurveX(D)-I;if(Math.abs(ie)ie?we=D:He=D,D=.5*(He-we)+we;return D},solve:function(I,M){return this.sampleCurveY(this.solveCurveX(I,M))}};var Ga=aa(Mn);function ma(I,M,D){return I+D*(M-I)}function oa(I,M,D){return I.map((X,ie)=>ma(X,M[ie],D))}let ka={number:ma,color:function(I,M,D,X="rgb"){switch(X){case"rgb":{let[ie,ve,we,He]=oa(I.rgb,M.rgb,D);return new Wt(ie,ve,we,He,!1)}case"hcl":{let[ie,ve,we,He]=I.hcl,[ut,Mt,$t,vr]=M.hcl,Sr,Dr;if(isNaN(ie)||isNaN(ut))isNaN(ie)?isNaN(ut)?Sr=NaN:(Sr=ut,we!==1&&we!==0||(Dr=Mt)):(Sr=ie,$t!==1&&$t!==0||(Dr=ve));else{let Za=ut-ie;ut>ie&&Za>180?Za-=360:ut180&&(Za+=360),Sr=ie+D*Za}let[Jr,li,Hi,cn]=function([Za,Rn,La,So]){return Za=isNaN(Za)?0:Za*Nr,Ci([La,Math.cos(Za)*Rn,Math.sin(Za)*Rn,So])}([Sr,Dr!=null?Dr:ma(ve,Mt,D),ma(we,$t,D),ma(He,vr,D)]);return new Wt(Jr,li,Hi,cn,!1)}case"lab":{let[ie,ve,we,He]=Ci(oa(I.lab,M.lab,D));return new Wt(ie,ve,we,He,!1)}}},array:oa,padding:function(I,M,D){return new Ir(oa(I.values,M.values,D))},variableAnchorOffsetCollection:function(I,M,D){let X=I.values,ie=M.values;if(X.length!==ie.length)throw new oi(`Cannot interpolate values of different length. from: ${I.toString()}, to: ${M.toString()}`);let ve=[];for(let we=0;wetypeof $t!="number"||$t<0||$t>1))return D.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);ie={name:"cubic-bezier",controlPoints:Mt}}}if(M.length-1<4)return D.error(`Expected at least 4 arguments, but found only ${M.length-1}.`);if((M.length-1)%2!=0)return D.error("Expected an even number of arguments.");if(ve=D.parse(ve,2,at),!ve)return null;let He=[],ut=null;X==="interpolate-hcl"||X==="interpolate-lab"?ut=Qe:D.expectedType&&D.expectedType.kind!=="value"&&(ut=D.expectedType);for(let Mt=0;Mt=$t)return D.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Sr);let Jr=D.parse(vr,Dr,ut);if(!Jr)return null;ut=ut||Jr.type,He.push([$t,Jr])}return fe(ut,at)||fe(ut,Qe)||fe(ut,_r)||fe(ut,Re)||fe(ut,xe(at))?new so(ut,X,ie,ve,He):D.error(`Type ${Oe(ut)} is not interpolatable.`)}evaluate(M){let D=this.labels,X=this.outputs;if(D.length===1)return X[0].evaluate(M);let ie=this.input.evaluate(M);if(ie<=D[0])return X[0].evaluate(M);let ve=D.length;if(ie>=D[ve-1])return X[ve-1].evaluate(M);let we=ni(D,ie),He=so.interpolationFactor(this.interpolation,ie,D[we],D[we+1]),ut=X[we].evaluate(M),Mt=X[we+1].evaluate(M);switch(this.operator){case"interpolate":return ka[this.type.kind](ut,Mt,He);case"interpolate-hcl":return ka.color(ut,Mt,He,"hcl");case"interpolate-lab":return ka.color(ut,Mt,He,"lab")}}eachChild(M){M(this.input);for(let D of this.outputs)M(D)}outputDefined(){return this.outputs.every(M=>M.outputDefined())}}function Kr(I,M,D,X){let ie=X-D,ve=I-D;return ie===0?0:M===1?ve/ie:(Math.pow(M,ve)-1)/(Math.pow(M,ie)-1)}class Ia{constructor(M,D){this.type=M,this.args=D}static parse(M,D){if(M.length<2)return D.error("Expectected at least one argument.");let X=null,ie=D.expectedType;ie&&ie.kind!=="value"&&(X=ie);let ve=[];for(let He of M.slice(1)){let ut=D.parse(He,1+ve.length,X,void 0,{typeAnnotation:"omit"});if(!ut)return null;X=X||ut.type,ve.push(ut)}if(!X)throw new Error("No output type");let we=ie&&ve.some(He=>De(ie,He.type));return new Ia(we?Yt:X,ve)}evaluate(M){let D,X=null,ie=0;for(let ve of this.args)if(ie++,X=ve.evaluate(M),X&&X instanceof yi&&!X.available&&(D||(D=X.name),X=null,ie===this.args.length&&(X=D)),X!==null)break;return X}eachChild(M){this.args.forEach(M)}outputDefined(){return this.args.every(M=>M.outputDefined())}}function Yo(I,M){return I==="=="||I==="!="?M.kind==="boolean"||M.kind==="string"||M.kind==="number"||M.kind==="null"||M.kind==="value":M.kind==="string"||M.kind==="number"||M.kind==="value"}function fa(I,M,D,X){return X.compare(M,D)===0}function kn(I,M,D){let X=I!=="=="&&I!=="!=";return class wWe{constructor(ve,we,He){this.type=rt,this.lhs=ve,this.rhs=we,this.collator=He,this.hasUntypedArgument=ve.type.kind==="value"||we.type.kind==="value"}static parse(ve,we){if(ve.length!==3&&ve.length!==4)return we.error("Expected two or three arguments.");let He=ve[0],ut=we.parse(ve[1],1,Yt);if(!ut)return null;if(!Yo(He,ut.type))return we.concat(1).error(`"${He}" comparisons are not supported for type '${Oe(ut.type)}'.`);let Mt=we.parse(ve[2],2,Yt);if(!Mt)return null;if(!Yo(He,Mt.type))return we.concat(2).error(`"${He}" comparisons are not supported for type '${Oe(Mt.type)}'.`);if(ut.type.kind!==Mt.type.kind&&ut.type.kind!=="value"&&Mt.type.kind!=="value")return we.error(`Cannot compare types '${Oe(ut.type)}' and '${Oe(Mt.type)}'.`);X&&(ut.type.kind==="value"&&Mt.type.kind!=="value"?ut=new an(Mt.type,[ut]):ut.type.kind!=="value"&&Mt.type.kind==="value"&&(Mt=new an(ut.type,[Mt])));let $t=null;if(ve.length===4){if(ut.type.kind!=="string"&&Mt.type.kind!=="string"&&ut.type.kind!=="value"&&Mt.type.kind!=="value")return we.error("Cannot use collator to compare non-string types.");if($t=we.parse(ve[3],3,lr),!$t)return null}return new wWe(ut,Mt,$t)}evaluate(ve){let we=this.lhs.evaluate(ve),He=this.rhs.evaluate(ve);if(X&&this.hasUntypedArgument){let ut=ti(we),Mt=ti(He);if(ut.kind!==Mt.kind||ut.kind!=="string"&&ut.kind!=="number")throw new oi(`Expected arguments for "${I}" to be (string, string) or (number, number), but found (${ut.kind}, ${Mt.kind}) instead.`)}if(this.collator&&!X&&this.hasUntypedArgument){let ut=ti(we),Mt=ti(He);if(ut.kind!=="string"||Mt.kind!=="string")return M(ve,we,He)}return this.collator?D(ve,we,He,this.collator.evaluate(ve)):M(ve,we,He)}eachChild(ve){ve(this.lhs),ve(this.rhs),this.collator&&ve(this.collator)}outputDefined(){return!0}}}let Ta=kn("==",function(I,M,D){return M===D},fa),ys=kn("!=",function(I,M,D){return M!==D},function(I,M,D,X){return!fa(0,M,D,X)}),uo=kn("<",function(I,M,D){return M",function(I,M,D){return M>D},function(I,M,D,X){return X.compare(M,D)>0}),$a=kn("<=",function(I,M,D){return M<=D},function(I,M,D,X){return X.compare(M,D)<=0}),fo=kn(">=",function(I,M,D){return M>=D},function(I,M,D,X){return X.compare(M,D)>=0});class mn{constructor(M,D,X){this.type=lr,this.locale=X,this.caseSensitive=M,this.diacriticSensitive=D}static parse(M,D){if(M.length!==2)return D.error("Expected one argument.");let X=M[1];if(typeof X!="object"||Array.isArray(X))return D.error("Collator options argument must be an object.");let ie=D.parse(X["case-sensitive"]!==void 0&&X["case-sensitive"],1,rt);if(!ie)return null;let ve=D.parse(X["diacritic-sensitive"]!==void 0&&X["diacritic-sensitive"],1,rt);if(!ve)return null;let we=null;return X.locale&&(we=D.parse(X.locale,1,Xe),!we)?null:new mn(ie,ve,we)}evaluate(M){return new xr(this.caseSensitive.evaluate(M),this.diacriticSensitive.evaluate(M),this.locale?this.locale.evaluate(M):null)}eachChild(M){M(this.caseSensitive),M(this.diacriticSensitive),this.locale&&M(this.locale)}outputDefined(){return!1}}class ra{constructor(M,D,X,ie,ve){this.type=Xe,this.number=M,this.locale=D,this.currency=X,this.minFractionDigits=ie,this.maxFractionDigits=ve}static parse(M,D){if(M.length!==3)return D.error("Expected two arguments.");let X=D.parse(M[1],1,at);if(!X)return null;let ie=M[2];if(typeof ie!="object"||Array.isArray(ie))return D.error("NumberFormat options argument must be an object.");let ve=null;if(ie.locale&&(ve=D.parse(ie.locale,1,Xe),!ve))return null;let we=null;if(ie.currency&&(we=D.parse(ie.currency,1,Xe),!we))return null;let He=null;if(ie["min-fraction-digits"]&&(He=D.parse(ie["min-fraction-digits"],1,at),!He))return null;let ut=null;return ie["max-fraction-digits"]&&(ut=D.parse(ie["max-fraction-digits"],1,at),!ut)?null:new ra(X,ve,we,He,ut)}evaluate(M){return new Intl.NumberFormat(this.locale?this.locale.evaluate(M):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(M):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(M):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(M):void 0}).format(this.number.evaluate(M))}eachChild(M){M(this.number),this.locale&&M(this.locale),this.currency&&M(this.currency),this.minFractionDigits&&M(this.minFractionDigits),this.maxFractionDigits&&M(this.maxFractionDigits)}outputDefined(){return!1}}class wa{constructor(M){this.type=mr,this.sections=M}static parse(M,D){if(M.length<2)return D.error("Expected at least one argument.");let X=M[1];if(!Array.isArray(X)&&typeof X=="object")return D.error("First argument must be an image or text section.");let ie=[],ve=!1;for(let we=1;we<=M.length-1;++we){let He=M[we];if(ve&&typeof He=="object"&&!Array.isArray(He)){ve=!1;let ut=null;if(He["font-scale"]&&(ut=D.parse(He["font-scale"],1,at),!ut))return null;let Mt=null;if(He["text-font"]&&(Mt=D.parse(He["text-font"],1,xe(Xe)),!Mt))return null;let $t=null;if(He["text-color"]&&($t=D.parse(He["text-color"],1,Qe),!$t))return null;let vr=ie[ie.length-1];vr.scale=ut,vr.font=Mt,vr.textColor=$t}else{let ut=D.parse(M[we],1,Yt);if(!ut)return null;let Mt=ut.type.kind;if(Mt!=="string"&&Mt!=="value"&&Mt!=="null"&&Mt!=="resolvedImage")return D.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");ve=!0,ie.push({content:ut,scale:null,font:null,textColor:null})}}return new wa(ie)}evaluate(M){return new Ur(this.sections.map(D=>{let X=D.content.evaluate(M);return ti(X)===Ht?new Lr("",X,null,null,null):new Lr(en(X),null,D.scale?D.scale.evaluate(M):null,D.font?D.font.evaluate(M).join(","):null,D.textColor?D.textColor.evaluate(M):null)}))}eachChild(M){for(let D of this.sections)M(D.content),D.scale&&M(D.scale),D.font&&M(D.font),D.textColor&&M(D.textColor)}outputDefined(){return!1}}class ws{constructor(M){this.type=Ht,this.input=M}static parse(M,D){if(M.length!==2)return D.error("Expected two arguments.");let X=D.parse(M[1],1,Xe);return X?new ws(X):D.error("No image name provided.")}evaluate(M){let D=this.input.evaluate(M),X=yi.fromString(D);return X&&M.availableImages&&(X.available=M.availableImages.indexOf(D)>-1),X}eachChild(M){M(this.input)}outputDefined(){return!1}}class Co{constructor(M){this.type=at,this.input=M}static parse(M,D){if(M.length!==2)return D.error(`Expected 1 argument, but found ${M.length-1} instead.`);let X=D.parse(M[1],1);return X?X.type.kind!=="array"&&X.type.kind!=="string"&&X.type.kind!=="value"?D.error(`Expected argument of type string or array, but found ${Oe(X.type)} instead.`):new Co(X):null}evaluate(M){let D=this.input.evaluate(M);if(typeof D=="string")return[...D].length;if(Array.isArray(D))return D.length;throw new oi(`Expected value to be of type string or array, but found ${Oe(ti(D))} instead.`)}eachChild(M){M(this.input)}outputDefined(){return!1}}let Po=8192;function ji(I,M){let D=(180+I[0])/360,X=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+I[1]*Math.PI/360)))/360,ie=Math.pow(2,M.z);return[Math.round(D*ie*Po),Math.round(X*ie*Po)]}function gn(I,M){let D=Math.pow(2,M.z);return[(ie=(I[0]/Po+M.x)/D,360*ie-180),(X=(I[1]/Po+M.y)/D,360/Math.PI*Math.atan(Math.exp((180-360*X)*Math.PI/180))-90)];var X,ie}function Ps(I,M){I[0]=Math.min(I[0],M[0]),I[1]=Math.min(I[1],M[1]),I[2]=Math.max(I[2],M[0]),I[3]=Math.max(I[3],M[1])}function Ha(I,M){return!(I[0]<=M[0]||I[2]>=M[2]||I[1]<=M[1]||I[3]>=M[3])}function Sn(I,M,D){let X=I[0]-M[0],ie=I[1]-M[1],ve=I[0]-D[0],we=I[1]-D[1];return X*we-ve*ie==0&&X*ve<=0&&ie*we<=0}function ao(I,M,D,X){return(ie=[X[0]-D[0],X[1]-D[1]])[0]*(ve=[M[0]-I[0],M[1]-I[1]])[1]-ie[1]*ve[0]!=0&&!(!Qa(I,M,D,X)||!Qa(D,X,I,M));var ie,ve}function Ba(I,M,D){for(let X of D)for(let ie=0;ie(ie=I)[1]!=(we=He[ut+1])[1]>ie[1]&&ie[0]<(we[0]-ve[0])*(ie[1]-ve[1])/(we[1]-ve[1])+ve[0]&&(X=!X)}var ie,ve,we;return X}function Qo(I,M){for(let D of M)if(Ko(I,D))return!0;return!1}function Wi(I,M){for(let D of I)if(!Ko(D,M))return!1;for(let D=0;D0&&He<0||we<0&&He>0}function vn(I,M,D){let X=[];for(let ie=0;ieD[2]){let ie=.5*X,ve=I[0]-D[0]>ie?-X:D[0]-I[0]>ie?X:0;ve===0&&(ve=I[0]-D[2]>ie?-X:D[2]-I[0]>ie?X:0),I[0]+=ve}Ps(M,I)}function vo(I,M,D,X){let ie=Math.pow(2,X.z)*Po,ve=[X.x*Po,X.y*Po],we=[];for(let He of I)for(let ut of He){let Mt=[ut.x+ve[0],ut.y+ve[1]];la(Mt,M,D,ie),we.push(Mt)}return we}function As(I,M,D,X){let ie=Math.pow(2,X.z)*Po,ve=[X.x*Po,X.y*Po],we=[];for(let ut of I){let Mt=[];for(let $t of ut){let vr=[$t.x+ve[0],$t.y+ve[1]];Ps(M,vr),Mt.push(vr)}we.push(Mt)}if(M[2]-M[0]<=ie/2){(He=M)[0]=He[1]=1/0,He[2]=He[3]=-1/0;for(let ut of we)for(let Mt of ut)la(Mt,M,D,ie)}var He;return we}class ps{constructor(M,D){this.type=rt,this.geojson=M,this.geometries=D}static parse(M,D){if(M.length!==2)return D.error(`'within' expression requires exactly one argument, but found ${M.length-1} instead.`);if(Vi(M[1])){let X=M[1];if(X.type==="FeatureCollection"){let ie=[];for(let ve of X.features){let{type:we,coordinates:He}=ve.geometry;we==="Polygon"&&ie.push(He),we==="MultiPolygon"&&ie.push(...He)}if(ie.length)return new ps(X,{type:"MultiPolygon",coordinates:ie})}else if(X.type==="Feature"){let ie=X.geometry.type;if(ie==="Polygon"||ie==="MultiPolygon")return new ps(X,X.geometry)}else if(X.type==="Polygon"||X.type==="MultiPolygon")return new ps(X,X)}return D.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(M){if(M.geometry()!=null&&M.canonicalID()!=null){if(M.geometryType()==="Point")return function(D,X){let ie=[1/0,1/0,-1/0,-1/0],ve=[1/0,1/0,-1/0,-1/0],we=D.canonicalID();if(X.type==="Polygon"){let He=vn(X.coordinates,ve,we),ut=vo(D.geometry(),ie,ve,we);if(!Ha(ie,ve))return!1;for(let Mt of ut)if(!Ko(Mt,He))return!1}if(X.type==="MultiPolygon"){let He=da(X.coordinates,ve,we),ut=vo(D.geometry(),ie,ve,we);if(!Ha(ie,ve))return!1;for(let Mt of ut)if(!Qo(Mt,He))return!1}return!0}(M,this.geometries);if(M.geometryType()==="LineString")return function(D,X){let ie=[1/0,1/0,-1/0,-1/0],ve=[1/0,1/0,-1/0,-1/0],we=D.canonicalID();if(X.type==="Polygon"){let He=vn(X.coordinates,ve,we),ut=As(D.geometry(),ie,ve,we);if(!Ha(ie,ve))return!1;for(let Mt of ut)if(!Wi(Mt,He))return!1}if(X.type==="MultiPolygon"){let He=da(X.coordinates,ve,we),ut=As(D.geometry(),ie,ve,we);if(!Ha(ie,ve))return!1;for(let Mt of ut)if(!Sa(Mt,He))return!1}return!0}(M,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let co=class{constructor(I=[],M=(D,X)=>DX?1:0){if(this.data=I,this.length=this.data.length,this.compare=M,this.length>0)for(let D=(this.length>>1)-1;D>=0;D--)this._down(D)}push(I){this.data.push(I),this._up(this.length++)}pop(){if(this.length===0)return;let I=this.data[0],M=this.data.pop();return--this.length>0&&(this.data[0]=M,this._down(0)),I}peek(){return this.data[0]}_up(I){let{data:M,compare:D}=this,X=M[I];for(;I>0;){let ie=I-1>>1,ve=M[ie];if(D(X,ve)>=0)break;M[I]=ve,I=ie}M[I]=X}_down(I){let{data:M,compare:D}=this,X=this.length>>1,ie=M[I];for(;I=0)break;M[I]=M[ve],I=ve}M[I]=ie}};function mo(I,M,D,X,ie){No(I,M,D,X||I.length-1,ie||Go)}function No(I,M,D,X,ie){for(;X>D;){if(X-D>600){var ve=X-D+1,we=M-D+1,He=Math.log(ve),ut=.5*Math.exp(2*He/3),Mt=.5*Math.sqrt(He*ut*(ve-ut)/ve)*(we-ve/2<0?-1:1);No(I,M,Math.max(D,Math.floor(M-we*ut/ve+Mt)),Math.min(X,Math.floor(M+(ve-we)*ut/ve+Mt)),ie)}var $t=I[M],vr=D,Sr=X;for(jn(I,D,M),ie(I[X],$t)>0&&jn(I,D,X);vr0;)Sr--}ie(I[D],$t)===0?jn(I,D,Sr):jn(I,++Sr,X),Sr<=M&&(D=Sr+1),M<=Sr&&(X=Sr-1)}}function jn(I,M,D){var X=I[M];I[M]=I[D],I[D]=X}function Go(I,M){return IM?1:0}function Ys(I,M){if(I.length<=1)return[I];let D=[],X,ie;for(let ve of I){let we=Ns(ve);we!==0&&(ve.area=Math.abs(we),ie===void 0&&(ie=we<0),ie===we<0?(X&&D.push(X),X=[ve]):X.push(ve))}if(X&&D.push(X),M>1)for(let ve=0;ve1?(Mt=M[ut+1][0],$t=M[ut+1][1]):Dr>0&&(Mt+=vr/this.kx*Dr,$t+=Sr/this.ky*Dr)),vr=this.wrap(D[0]-Mt)*this.kx,Sr=(D[1]-$t)*this.ky;let Jr=vr*vr+Sr*Sr;Jr180;)M-=360;return M}}function _n(I,M){return M[0]-I[0]}function Vn(I){return I[1]-I[0]+1}function wo(I,M){return I[1]>=I[0]&&I[1]I[1])return[null,null];let D=Vn(I);if(M){if(D===2)return[I,null];let ie=Math.floor(D/2);return[[I[0],I[0]+ie],[I[0]+ie,I[1]]]}if(D===1)return[I,null];let X=Math.floor(D/2)-1;return[[I[0],I[0]+X],[I[0]+X+1,I[1]]]}function Xn(I,M){if(!wo(M,I.length))return[1/0,1/0,-1/0,-1/0];let D=[1/0,1/0,-1/0,-1/0];for(let X=M[0];X<=M[1];++X)Ps(D,I[X]);return D}function un(I){let M=[1/0,1/0,-1/0,-1/0];for(let D of I)for(let X of D)Ps(M,X);return M}function $n(I){return I[0]!==-1/0&&I[1]!==-1/0&&I[2]!==1/0&&I[3]!==1/0}function Ka(I,M,D){if(!$n(I)||!$n(M))return NaN;let X=0,ie=0;return I[2]M[2]&&(X=I[0]-M[2]),I[1]>M[3]&&(ie=I[1]-M[3]),I[3]=X)return X;if(Ha(ie,ve)){if(es(I,M))return 0}else if(es(M,I))return 0;let we=1/0;for(let He of I)for(let ut=0,Mt=He.length,$t=Mt-1;ut0;){let ut=we.pop();if(ut[0]>=ve)continue;let Mt=ut[1],$t=M?50:100;if(Vn(Mt)<=$t){if(!wo(Mt,I.length))return NaN;if(M){let vr=sa(I,Mt,D,X);if(isNaN(vr)||vr===0)return vr;ve=Math.min(ve,vr)}else for(let vr=Mt[0];vr<=Mt[1];++vr){let Sr=eo(I[vr],D,X);if(ve=Math.min(ve,Sr),ve===0)return 0}}else{let vr=Ra(Mt,M);tn(we,ve,X,I,He,vr[0]),tn(we,ve,X,I,He,vr[1])}}return ve}function yo(I,M,D,X,ie,ve=1/0){let we=Math.min(ve,ie.distance(I[0],D[0]));if(we===0)return we;let He=new co([[0,[0,I.length-1],[0,D.length-1]]],_n);for(;He.length>0;){let ut=He.pop();if(ut[0]>=we)continue;let Mt=ut[1],$t=ut[2],vr=M?50:100,Sr=X?50:100;if(Vn(Mt)<=vr&&Vn($t)<=Sr){if(!wo(Mt,I.length)&&wo($t,D.length))return NaN;let Dr;if(M&&X)Dr=Ja(I,Mt,D,$t,ie),we=Math.min(we,Dr);else if(M&&!X){let Jr=I.slice(Mt[0],Mt[1]+1);for(let li=$t[0];li<=$t[1];++li)if(Dr=qn(D[li],Jr,ie),we=Math.min(we,Dr),we===0)return we}else if(!M&&X){let Jr=D.slice($t[0],$t[1]+1);for(let li=Mt[0];li<=Mt[1];++li)if(Dr=qn(I[li],Jr,ie),we=Math.min(we,Dr),we===0)return we}else Dr=lo(I,Mt,D,$t,ie),we=Math.min(we,Dr)}else{let Dr=Ra(Mt,M),Jr=Ra($t,X);Pa(He,we,ie,I,D,Dr[0],Jr[0]),Pa(He,we,ie,I,D,Dr[0],Jr[1]),Pa(He,we,ie,I,D,Dr[1],Jr[0]),Pa(He,we,ie,I,D,Dr[1],Jr[1])}}return we}function Jo(I){return I.type==="MultiPolygon"?I.coordinates.map(M=>({type:"Polygon",coordinates:M})):I.type==="MultiLineString"?I.coordinates.map(M=>({type:"LineString",coordinates:M})):I.type==="MultiPoint"?I.coordinates.map(M=>({type:"Point",coordinates:M})):[I]}class Ao{constructor(M,D){this.type=at,this.geojson=M,this.geometries=D}static parse(M,D){if(M.length!==2)return D.error(`'distance' expression requires exactly one argument, but found ${M.length-1} instead.`);if(Vi(M[1])){let X=M[1];if(X.type==="FeatureCollection")return new Ao(X,X.features.map(ie=>Jo(ie.geometry)).flat());if(X.type==="Feature")return new Ao(X,Jo(X.geometry));if("type"in X&&"coordinates"in X)return new Ao(X,Jo(X))}return D.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(M){if(M.geometry()!=null&&M.canonicalID()!=null){if(M.geometryType()==="Point")return function(D,X){let ie=D.geometry(),ve=ie.flat().map(ut=>gn([ut.x,ut.y],D.canonical));if(ie.length===0)return NaN;let we=new Ya(ve[0][1]),He=1/0;for(let ut of X){switch(ut.type){case"Point":He=Math.min(He,yo(ve,!1,[ut.coordinates],!1,we,He));break;case"LineString":He=Math.min(He,yo(ve,!1,ut.coordinates,!0,we,He));break;case"Polygon":He=Math.min(He,to(ve,!1,ut.coordinates,we,He))}if(He===0)return He}return He}(M,this.geometries);if(M.geometryType()==="LineString")return function(D,X){let ie=D.geometry(),ve=ie.flat().map(ut=>gn([ut.x,ut.y],D.canonical));if(ie.length===0)return NaN;let we=new Ya(ve[0][1]),He=1/0;for(let ut of X){switch(ut.type){case"Point":He=Math.min(He,yo(ve,!0,[ut.coordinates],!1,we,He));break;case"LineString":He=Math.min(He,yo(ve,!0,ut.coordinates,!0,we,He));break;case"Polygon":He=Math.min(He,to(ve,!0,ut.coordinates,we,He))}if(He===0)return He}return He}(M,this.geometries);if(M.geometryType()==="Polygon")return function(D,X){let ie=D.geometry();if(ie.length===0||ie[0].length===0)return NaN;let ve=Ys(ie,0).map(ut=>ut.map(Mt=>Mt.map($t=>gn([$t.x,$t.y],D.canonical)))),we=new Ya(ve[0][0][0][1]),He=1/0;for(let ut of X)for(let Mt of ve){switch(ut.type){case"Point":He=Math.min(He,to([ut.coordinates],!1,Mt,we,He));break;case"LineString":He=Math.min(He,to(ut.coordinates,!0,Mt,we,He));break;case"Polygon":He=Math.min(He,Na(Mt,ut.coordinates,we,He))}if(He===0)return He}return He}(M,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}let Dn={"==":Ta,"!=":ys,">":ls,"<":uo,">=":fo,"<=":$a,array:an,at:tr,boolean:an,case:Ai,coalesce:Ia,collator:mn,format:wa,image:ws,in:pr,"index-of":gr,interpolate:so,"interpolate-hcl":so,"interpolate-lab":so,length:Co,let:Xr,literal:Yr,match:Zr,number:an,"number-format":ra,object:an,slice:Qi,step:Zi,string:an,"to-boolean":Fi,"to-color":Fi,"to-number":Fi,"to-string":Fi,var:ft,within:ps,distance:Ao};class _a{constructor(M,D,X,ie){this.name=M,this.type=D,this._evaluate=X,this.args=ie}evaluate(M){return this._evaluate(M,this.args)}eachChild(M){this.args.forEach(M)}outputDefined(){return!1}static parse(M,D){let X=M[0],ie=_a.definitions[X];if(!ie)return D.error(`Unknown expression "${X}". If you wanted a literal array, use ["literal", [...]].`,0);let ve=Array.isArray(ie)?ie[0]:ie.type,we=Array.isArray(ie)?[[ie[1],ie[2]]]:ie.overloads,He=we.filter(([Mt])=>!Array.isArray(Mt)||Mt.length===M.length-1),ut=null;for(let[Mt,$t]of He){ut=new xi(D.registry,Ho,D.path,null,D.scope);let vr=[],Sr=!1;for(let Dr=1;Dr{return Sr=vr,Array.isArray(Sr)?`(${Sr.map(Oe).join(", ")})`:`(${Oe(Sr.type)}...)`;var Sr}).join(" | "),$t=[];for(let vr=1;vr{D=M?D&&Ho(X):D&&X instanceof Yr}),!!D&&Wa(I)&&ts(I,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function Wa(I){if(I instanceof _a&&(I.name==="get"&&I.args.length===1||I.name==="feature-state"||I.name==="has"&&I.args.length===1||I.name==="properties"||I.name==="geometry-type"||I.name==="id"||/^filter-/.test(I.name))||I instanceof ps||I instanceof Ao)return!1;let M=!0;return I.eachChild(D=>{M&&!Wa(D)&&(M=!1)}),M}function To(I){if(I instanceof _a&&I.name==="feature-state")return!1;let M=!0;return I.eachChild(D=>{M&&!To(D)&&(M=!1)}),M}function ts(I,M){if(I instanceof _a&&M.indexOf(I.name)>=0)return!1;let D=!0;return I.eachChild(X=>{D&&!ts(X,M)&&(D=!1)}),D}function Wo(I){return{result:"success",value:I}}function qa(I){return{result:"error",value:I}}function ln(I){return I["property-type"]==="data-driven"||I["property-type"]==="cross-faded-data-driven"}function Bo(I){return!!I.expression&&I.expression.parameters.indexOf("zoom")>-1}function ko(I){return!!I.expression&&I.expression.interpolated}function oo(I){return I instanceof Number?"number":I instanceof String?"string":I instanceof Boolean?"boolean":Array.isArray(I)?"array":I===null?"null":typeof I}function za(I){return typeof I=="object"&&I!==null&&!Array.isArray(I)}function ea(I){return I}function rs(I,M){let D=M.type==="color",X=I.stops&&typeof I.stops[0][0]=="object",ie=X||!(X||I.property!==void 0),ve=I.type||(ko(M)?"exponential":"interval");if(D||M.type==="padding"){let $t=D?Wt.parse:Ir.parse;(I=Ae({},I)).stops&&(I.stops=I.stops.map(vr=>[vr[0],$t(vr[1])])),I.default=$t(I.default?I.default:M.default)}if(I.colorSpace&&(we=I.colorSpace)!=="rgb"&&we!=="hcl"&&we!=="lab")throw new Error(`Unknown color space: "${I.colorSpace}"`);var we;let He,ut,Mt;if(ve==="exponential")He=fl;else if(ve==="interval")He=Ds;else if(ve==="categorical"){He=us,ut=Object.create(null);for(let $t of I.stops)ut[$t[0]]=$t[1];Mt=typeof I.stops[0][0]}else{if(ve!=="identity")throw new Error(`Unknown function type "${ve}"`);He=as}if(X){let $t={},vr=[];for(let Jr=0;JrJr[0]),evaluate:({zoom:Jr},li)=>fl({stops:Sr,base:I.base},M,Jr).evaluate(Jr,li)}}if(ie){let $t=ve==="exponential"?{name:"exponential",base:I.base!==void 0?I.base:1}:null;return{kind:"camera",interpolationType:$t,interpolationFactor:so.interpolationFactor.bind(void 0,$t),zoomStops:I.stops.map(vr=>vr[0]),evaluate:({zoom:vr})=>He(I,M,vr,ut,Mt)}}return{kind:"source",evaluate($t,vr){let Sr=vr&&vr.properties?vr.properties[I.property]:void 0;return Sr===void 0?$s(I.default,M.default):He(I,M,Sr,ut,Mt)}}}function $s(I,M,D){return I!==void 0?I:M!==void 0?M:D!==void 0?D:void 0}function us(I,M,D,X,ie){return $s(typeof D===ie?X[D]:void 0,I.default,M.default)}function Ds(I,M,D){if(oo(D)!=="number")return $s(I.default,M.default);let X=I.stops.length;if(X===1||D<=I.stops[0][0])return I.stops[0][1];if(D>=I.stops[X-1][0])return I.stops[X-1][1];let ie=ni(I.stops.map(ve=>ve[0]),D);return I.stops[ie][1]}function fl(I,M,D){let X=I.base!==void 0?I.base:1;if(oo(D)!=="number")return $s(I.default,M.default);let ie=I.stops.length;if(ie===1||D<=I.stops[0][0])return I.stops[0][1];if(D>=I.stops[ie-1][0])return I.stops[ie-1][1];let ve=ni(I.stops.map($t=>$t[0]),D),we=function($t,vr,Sr,Dr){let Jr=Dr-Sr,li=$t-Sr;return Jr===0?0:vr===1?li/Jr:(Math.pow(vr,li)-1)/(Math.pow(vr,Jr)-1)}(D,X,I.stops[ve][0],I.stops[ve+1][0]),He=I.stops[ve][1],ut=I.stops[ve+1][1],Mt=ka[M.type]||ea;return typeof He.evaluate=="function"?{evaluate(...$t){let vr=He.evaluate.apply(void 0,$t),Sr=ut.evaluate.apply(void 0,$t);if(vr!==void 0&&Sr!==void 0)return Mt(vr,Sr,we,I.colorSpace)}}:Mt(He,ut,we,I.colorSpace)}function as(I,M,D){switch(M.type){case"color":D=Wt.parse(D);break;case"formatted":D=Ur.fromString(D.toString());break;case"resolvedImage":D=yi.fromString(D.toString());break;case"padding":D=Ir.parse(D);break;default:oo(D)===M.type||M.type==="enum"&&M.values[D]||(D=void 0)}return $s(D,I.default,M.default)}_a.register(Dn,{error:[{kind:"error"},[Xe],(I,[M])=>{throw new oi(M.evaluate(I))}],typeof:[Xe,[Yt],(I,[M])=>Oe(ti(M.evaluate(I)))],"to-rgba":[xe(at,4),[Qe],(I,[M])=>{let[D,X,ie,ve]=M.evaluate(I).rgb;return[255*D,255*X,255*ie,ve]}],rgb:[Qe,[at,at,at],Ws],rgba:[Qe,[at,at,at,at],Ws],has:{type:rt,overloads:[[[Xe],(I,[M])=>Ca(M.evaluate(I),I.properties())],[[Xe,zt],(I,[M,D])=>Ca(M.evaluate(I),D.evaluate(I))]]},get:{type:Yt,overloads:[[[Xe],(I,[M])=>Es(M.evaluate(I),I.properties())],[[Xe,zt],(I,[M,D])=>Es(M.evaluate(I),D.evaluate(I))]]},"feature-state":[Yt,[Xe],(I,[M])=>Es(M.evaluate(I),I.featureState||{})],properties:[zt,[],I=>I.properties()],"geometry-type":[Xe,[],I=>I.geometryType()],id:[Yt,[],I=>I.id()],zoom:[at,[],I=>I.globals.zoom],"heatmap-density":[at,[],I=>I.globals.heatmapDensity||0],"line-progress":[at,[],I=>I.globals.lineProgress||0],accumulated:[Yt,[],I=>I.globals.accumulated===void 0?null:I.globals.accumulated],"+":[at,Ts(at),(I,M)=>{let D=0;for(let X of M)D+=X.evaluate(I);return D}],"*":[at,Ts(at),(I,M)=>{let D=1;for(let X of M)D*=X.evaluate(I);return D}],"-":{type:at,overloads:[[[at,at],(I,[M,D])=>M.evaluate(I)-D.evaluate(I)],[[at],(I,[M])=>-M.evaluate(I)]]},"/":[at,[at,at],(I,[M,D])=>M.evaluate(I)/D.evaluate(I)],"%":[at,[at,at],(I,[M,D])=>M.evaluate(I)%D.evaluate(I)],ln2:[at,[],()=>Math.LN2],pi:[at,[],()=>Math.PI],e:[at,[],()=>Math.E],"^":[at,[at,at],(I,[M,D])=>Math.pow(M.evaluate(I),D.evaluate(I))],sqrt:[at,[at],(I,[M])=>Math.sqrt(M.evaluate(I))],log10:[at,[at],(I,[M])=>Math.log(M.evaluate(I))/Math.LN10],ln:[at,[at],(I,[M])=>Math.log(M.evaluate(I))],log2:[at,[at],(I,[M])=>Math.log(M.evaluate(I))/Math.LN2],sin:[at,[at],(I,[M])=>Math.sin(M.evaluate(I))],cos:[at,[at],(I,[M])=>Math.cos(M.evaluate(I))],tan:[at,[at],(I,[M])=>Math.tan(M.evaluate(I))],asin:[at,[at],(I,[M])=>Math.asin(M.evaluate(I))],acos:[at,[at],(I,[M])=>Math.acos(M.evaluate(I))],atan:[at,[at],(I,[M])=>Math.atan(M.evaluate(I))],min:[at,Ts(at),(I,M)=>Math.min(...M.map(D=>D.evaluate(I)))],max:[at,Ts(at),(I,M)=>Math.max(...M.map(D=>D.evaluate(I)))],abs:[at,[at],(I,[M])=>Math.abs(M.evaluate(I))],round:[at,[at],(I,[M])=>{let D=M.evaluate(I);return D<0?-Math.round(-D):Math.round(D)}],floor:[at,[at],(I,[M])=>Math.floor(M.evaluate(I))],ceil:[at,[at],(I,[M])=>Math.ceil(M.evaluate(I))],"filter-==":[rt,[Xe,Yt],(I,[M,D])=>I.properties()[M.value]===D.value],"filter-id-==":[rt,[Yt],(I,[M])=>I.id()===M.value],"filter-type-==":[rt,[Xe],(I,[M])=>I.geometryType()===M.value],"filter-<":[rt,[Xe,Yt],(I,[M,D])=>{let X=I.properties()[M.value],ie=D.value;return typeof X==typeof ie&&X{let D=I.id(),X=M.value;return typeof D==typeof X&&D":[rt,[Xe,Yt],(I,[M,D])=>{let X=I.properties()[M.value],ie=D.value;return typeof X==typeof ie&&X>ie}],"filter-id->":[rt,[Yt],(I,[M])=>{let D=I.id(),X=M.value;return typeof D==typeof X&&D>X}],"filter-<=":[rt,[Xe,Yt],(I,[M,D])=>{let X=I.properties()[M.value],ie=D.value;return typeof X==typeof ie&&X<=ie}],"filter-id-<=":[rt,[Yt],(I,[M])=>{let D=I.id(),X=M.value;return typeof D==typeof X&&D<=X}],"filter->=":[rt,[Xe,Yt],(I,[M,D])=>{let X=I.properties()[M.value],ie=D.value;return typeof X==typeof ie&&X>=ie}],"filter-id->=":[rt,[Yt],(I,[M])=>{let D=I.id(),X=M.value;return typeof D==typeof X&&D>=X}],"filter-has":[rt,[Yt],(I,[M])=>M.value in I.properties()],"filter-has-id":[rt,[],I=>I.id()!==null&&I.id()!==void 0],"filter-type-in":[rt,[xe(Xe)],(I,[M])=>M.value.indexOf(I.geometryType())>=0],"filter-id-in":[rt,[xe(Yt)],(I,[M])=>M.value.indexOf(I.id())>=0],"filter-in-small":[rt,[Xe,xe(Yt)],(I,[M,D])=>D.value.indexOf(I.properties()[M.value])>=0],"filter-in-large":[rt,[Xe,xe(Yt)],(I,[M,D])=>function(X,ie,ve,we){for(;ve<=we;){let He=ve+we>>1;if(ie[He]===X)return!0;ie[He]>X?we=He-1:ve=He+1}return!1}(I.properties()[M.value],D.value,0,D.value.length-1)],all:{type:rt,overloads:[[[rt,rt],(I,[M,D])=>M.evaluate(I)&&D.evaluate(I)],[Ts(rt),(I,M)=>{for(let D of M)if(!D.evaluate(I))return!1;return!0}]]},any:{type:rt,overloads:[[[rt,rt],(I,[M,D])=>M.evaluate(I)||D.evaluate(I)],[Ts(rt),(I,M)=>{for(let D of M)if(D.evaluate(I))return!0;return!1}]]},"!":[rt,[rt],(I,[M])=>!M.evaluate(I)],"is-supported-script":[rt,[Xe],(I,[M])=>{let D=I.globals&&I.globals.isSupportedScript;return!D||D(M.evaluate(I))}],upcase:[Xe,[Xe],(I,[M])=>M.evaluate(I).toUpperCase()],downcase:[Xe,[Xe],(I,[M])=>M.evaluate(I).toLowerCase()],concat:[Xe,Ts(Yt),(I,M)=>M.map(D=>en(D.evaluate(I))).join("")],"resolved-locale":[Xe,[lr],(I,[M])=>M.evaluate(I).resolvedLocale()]});class Ma{constructor(M,D){var X;this.expression=M,this._warningHistory={},this._evaluator=new xn,this._defaultValue=D?(X=D).type==="color"&&za(X.default)?new Wt(0,0,0,0):X.type==="color"?Wt.parse(X.default)||null:X.type==="padding"?Ir.parse(X.default)||null:X.type==="variableAnchorOffsetCollection"?jr.parse(X.default)||null:X.default===void 0?null:X.default:null,this._enumValues=D&&D.type==="enum"?D.values:null}evaluateWithoutErrorHandling(M,D,X,ie,ve,we){return this._evaluator.globals=M,this._evaluator.feature=D,this._evaluator.featureState=X,this._evaluator.canonical=ie,this._evaluator.availableImages=ve||null,this._evaluator.formattedSection=we,this.expression.evaluate(this._evaluator)}evaluate(M,D,X,ie,ve,we){this._evaluator.globals=M,this._evaluator.feature=D||null,this._evaluator.featureState=X||null,this._evaluator.canonical=ie,this._evaluator.availableImages=ve||null,this._evaluator.formattedSection=we||null;try{let He=this.expression.evaluate(this._evaluator);if(He==null||typeof He=="number"&&He!=He)return this._defaultValue;if(this._enumValues&&!(He in this._enumValues))throw new oi(`Expected value to be one of ${Object.keys(this._enumValues).map(ut=>JSON.stringify(ut)).join(", ")}, but found ${JSON.stringify(He)} instead.`);return He}catch(He){return this._warningHistory[He.message]||(this._warningHistory[He.message]=!0,typeof console!="undefined"&&console.warn(He.message)),this._defaultValue}}}function Qs(I){return Array.isArray(I)&&I.length>0&&typeof I[0]=="string"&&I[0]in Dn}function ho(I,M){let D=new xi(Dn,Ho,[],M?function(ie){let ve={color:Qe,string:Xe,number:at,enum:Xe,boolean:rt,formatted:mr,padding:_r,resolvedImage:Ht,variableAnchorOffsetCollection:Re};return ie.type==="array"?xe(ve[ie.value]||Yt,ie.length):ve[ie.type]}(M):void 0),X=D.parse(I,void 0,void 0,void 0,M&&M.type==="string"?{typeAnnotation:"coerce"}:void 0);return X?Wo(new Ma(X,M)):qa(D.errors)}class gs{constructor(M,D){this.kind=M,this._styleExpression=D,this.isStateDependent=M!=="constant"&&!To(D.expression)}evaluateWithoutErrorHandling(M,D,X,ie,ve,we){return this._styleExpression.evaluateWithoutErrorHandling(M,D,X,ie,ve,we)}evaluate(M,D,X,ie,ve,we){return this._styleExpression.evaluate(M,D,X,ie,ve,we)}}class Vo{constructor(M,D,X,ie){this.kind=M,this.zoomStops=X,this._styleExpression=D,this.isStateDependent=M!=="camera"&&!To(D.expression),this.interpolationType=ie}evaluateWithoutErrorHandling(M,D,X,ie,ve,we){return this._styleExpression.evaluateWithoutErrorHandling(M,D,X,ie,ve,we)}evaluate(M,D,X,ie,ve,we){return this._styleExpression.evaluate(M,D,X,ie,ve,we)}interpolationFactor(M,D,X){return this.interpolationType?so.interpolationFactor(this.interpolationType,M,D,X):0}}function Do(I,M){let D=ho(I,M);if(D.result==="error")return D;let X=D.value.expression,ie=Wa(X);if(!ie&&!ln(M))return qa([new ot("","data expressions not supported")]);let ve=ts(X,["zoom"]);if(!ve&&!Bo(M))return qa([new ot("","zoom expressions not supported")]);let we=xs(X);return we||ve?we instanceof ot?qa([we]):we instanceof so&&!ko(M)?qa([new ot("",'"interpolate" expressions cannot be used with this property')]):Wo(we?new Vo(ie?"camera":"composite",D.value,we.labels,we instanceof so?we.interpolation:void 0):new gs(ie?"constant":"source",D.value)):qa([new ot("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class Lo{constructor(M,D){this._parameters=M,this._specification=D,Ae(this,rs(this._parameters,this._specification))}static deserialize(M){return new Lo(M._parameters,M._specification)}static serialize(M){return{_parameters:M._parameters,_specification:M._specification}}}function xs(I){let M=null;if(I instanceof Xr)M=xs(I.result);else if(I instanceof Ia){for(let D of I.args)if(M=xs(D),M)break}else(I instanceof Zi||I instanceof so)&&I.input instanceof _a&&I.input.name==="zoom"&&(M=I);return M instanceof ot||I.eachChild(D=>{let X=xs(D);X instanceof ot?M=X:!M&&X?M=new ot("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):M&&X&&M!==X&&(M=new ot("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),M}function ks(I){if(I===!0||I===!1)return!0;if(!Array.isArray(I)||I.length===0)return!1;switch(I[0]){case"has":return I.length>=2&&I[1]!=="$id"&&I[1]!=="$type";case"in":return I.length>=3&&(typeof I[1]!="string"||Array.isArray(I[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return I.length!==3||Array.isArray(I[1])||Array.isArray(I[2]);case"any":case"all":for(let M of I.slice(1))if(!ks(M)&&typeof M!="boolean")return!1;return!0;default:return!0}}let Ea={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Jn(I){if(I==null)return{filter:()=>!0,needGeometry:!1};ks(I)||(I=Gs(I));let M=ho(I,Ea);if(M.result==="error")throw new Error(M.value.map(D=>`${D.key}: ${D.message}`).join(", "));return{filter:(D,X,ie)=>M.value.evaluate(D,X,{},ie),needGeometry:rl(I)}}function Oo(I,M){return IM?1:0}function rl(I){if(!Array.isArray(I))return!1;if(I[0]==="within"||I[0]==="distance")return!0;for(let M=1;M"||M==="<="||M===">="?bs(I[1],I[2],M):M==="any"?(D=I.slice(1),["any"].concat(D.map(Gs))):M==="all"?["all"].concat(I.slice(1).map(Gs)):M==="none"?["all"].concat(I.slice(1).map(Gs).map(Aa)):M==="in"?zs(I[1],I.slice(2)):M==="!in"?Aa(zs(I[1],I.slice(2))):M==="has"?$o(I[1]):M!=="!has"||Aa($o(I[1]));var D}function bs(I,M,D){switch(I){case"$type":return[`filter-type-${D}`,M];case"$id":return[`filter-id-${D}`,M];default:return[`filter-${D}`,I,M]}}function zs(I,M){if(M.length===0)return!1;switch(I){case"$type":return["filter-type-in",["literal",M]];case"$id":return["filter-id-in",["literal",M]];default:return M.length>200&&!M.some(D=>typeof D!=typeof M[0])?["filter-in-large",I,["literal",M.sort(Oo)]]:["filter-in-small",I,["literal",M]]}}function $o(I){switch(I){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",I]}}function Aa(I){return["!",I]}function os(I){let M=typeof I;if(M==="number"||M==="boolean"||M==="string"||I==null)return JSON.stringify(I);if(Array.isArray(I)){let ie="[";for(let ve of I)ie+=`${os(ve)},`;return`${ie}]`}let D=Object.keys(I).sort(),X="{";for(let ie=0;ieX.maximum?[new Et(M,D,`${D} is greater than the maximum value ${X.maximum}`)]:[]}function io(I){let M=I.valueSpec,D=po(I.value.type),X,ie,ve,we={},He=D!=="categorical"&&I.value.property===void 0,ut=!He,Mt=oo(I.value.stops)==="array"&&oo(I.value.stops[0])==="array"&&oo(I.value.stops[0][0])==="object",$t=ss({key:I.key,value:I.value,valueSpec:I.styleSpec.function,validateSpec:I.validateSpec,style:I.style,styleSpec:I.styleSpec,objectElementValidators:{stops:function(Dr){if(D==="identity")return[new Et(Dr.key,Dr.value,'identity function may not have a "stops" property')];let Jr=[],li=Dr.value;return Jr=Jr.concat(qo({key:Dr.key,value:li,valueSpec:Dr.valueSpec,validateSpec:Dr.validateSpec,style:Dr.style,styleSpec:Dr.styleSpec,arrayElementValidator:vr})),oo(li)==="array"&&li.length===0&&Jr.push(new Et(Dr.key,li,"array must have at least one stop")),Jr},default:function(Dr){return Dr.validateSpec({key:Dr.key,value:Dr.value,valueSpec:M,validateSpec:Dr.validateSpec,style:Dr.style,styleSpec:Dr.styleSpec})}}});return D==="identity"&&He&&$t.push(new Et(I.key,I.value,'missing required property "property"')),D==="identity"||I.value.stops||$t.push(new Et(I.key,I.value,'missing required property "stops"')),D==="exponential"&&I.valueSpec.expression&&!ko(I.valueSpec)&&$t.push(new Et(I.key,I.value,"exponential functions not supported")),I.styleSpec.$version>=8&&(ut&&!ln(I.valueSpec)?$t.push(new Et(I.key,I.value,"property functions not supported")):He&&!Bo(I.valueSpec)&&$t.push(new Et(I.key,I.value,"zoom functions not supported"))),D!=="categorical"&&!Mt||I.value.property!==void 0||$t.push(new Et(I.key,I.value,'"property" property is required')),$t;function vr(Dr){let Jr=[],li=Dr.value,Hi=Dr.key;if(oo(li)!=="array")return[new Et(Hi,li,`array expected, ${oo(li)} found`)];if(li.length!==2)return[new Et(Hi,li,`array length 2 expected, length ${li.length} found`)];if(Mt){if(oo(li[0])!=="object")return[new Et(Hi,li,`object expected, ${oo(li[0])} found`)];if(li[0].zoom===void 0)return[new Et(Hi,li,"object stop key must have zoom")];if(li[0].value===void 0)return[new Et(Hi,li,"object stop key must have value")];if(ve&&ve>po(li[0].zoom))return[new Et(Hi,li[0].zoom,"stop zoom values must appear in ascending order")];po(li[0].zoom)!==ve&&(ve=po(li[0].zoom),ie=void 0,we={}),Jr=Jr.concat(ss({key:`${Hi}[0]`,value:li[0],valueSpec:{zoom:{}},validateSpec:Dr.validateSpec,style:Dr.style,styleSpec:Dr.styleSpec,objectElementValidators:{zoom:zo,value:Sr}}))}else Jr=Jr.concat(Sr({key:`${Hi}[0]`,value:li[0],valueSpec:{},validateSpec:Dr.validateSpec,style:Dr.style,styleSpec:Dr.styleSpec},li));return Qs(go(li[1]))?Jr.concat([new Et(`${Hi}[1]`,li[1],"expressions are not allowed in function stops.")]):Jr.concat(Dr.validateSpec({key:`${Hi}[1]`,value:li[1],valueSpec:M,validateSpec:Dr.validateSpec,style:Dr.style,styleSpec:Dr.styleSpec}))}function Sr(Dr,Jr){let li=oo(Dr.value),Hi=po(Dr.value),cn=Dr.value!==null?Dr.value:Jr;if(X){if(li!==X)return[new Et(Dr.key,cn,`${li} stop domain type must match previous stop domain type ${X}`)]}else X=li;if(li!=="number"&&li!=="string"&&li!=="boolean")return[new Et(Dr.key,cn,"stop domain value must be a number, string, or boolean")];if(li!=="number"&&D!=="categorical"){let Za=`number expected, ${li} found`;return ln(M)&&D===void 0&&(Za+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Et(Dr.key,cn,Za)]}return D!=="categorical"||li!=="number"||isFinite(Hi)&&Math.floor(Hi)===Hi?D!=="categorical"&&li==="number"&&ie!==void 0&&Hinew Et(`${I.key}${X.key}`,I.value,X.message));let D=M.value.expression||M.value._styleExpression.expression;if(I.expressionContext==="property"&&I.propertyKey==="text-font"&&!D.outputDefined())return[new Et(I.key,I.value,`Invalid data expression for "${I.propertyKey}". Output values must be contained as literals within the expression.`)];if(I.expressionContext==="property"&&I.propertyType==="layout"&&!To(D))return[new Et(I.key,I.value,'"feature-state" data expressions are not supported with layout properties.')];if(I.expressionContext==="filter"&&!To(D))return[new Et(I.key,I.value,'"feature-state" data expressions are not supported with filters.')];if(I.expressionContext&&I.expressionContext.indexOf("cluster")===0){if(!ts(D,["zoom","feature-state"]))return[new Et(I.key,I.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(I.expressionContext==="cluster-initial"&&!Wa(D))return[new Et(I.key,I.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Da(I){let M=I.key,D=I.value,X=I.valueSpec,ie=[];return Array.isArray(X.values)?X.values.indexOf(po(D))===-1&&ie.push(new Et(M,D,`expected one of [${X.values.join(", ")}], ${JSON.stringify(D)} found`)):Object.keys(X.values).indexOf(po(D))===-1&&ie.push(new Et(M,D,`expected one of [${Object.keys(X.values).join(", ")}], ${JSON.stringify(D)} found`)),ie}function vs(I){return ks(go(I.value))?Io(Ae({},I,{expressionContext:"filter",valueSpec:{value:"boolean"}})):fs(I)}function fs(I){let M=I.value,D=I.key;if(oo(M)!=="array")return[new Et(D,M,`array expected, ${oo(M)} found`)];let X=I.styleSpec,ie,ve=[];if(M.length<1)return[new Et(D,M,"filter array must have at least 1 element")];switch(ve=ve.concat(Da({key:`${D}[0]`,value:M[0],valueSpec:X.filter_operator,style:I.style,styleSpec:I.styleSpec})),po(M[0])){case"<":case"<=":case">":case">=":M.length>=2&&po(M[1])==="$type"&&ve.push(new Et(D,M,`"$type" cannot be use with operator "${M[0]}"`));case"==":case"!=":M.length!==3&&ve.push(new Et(D,M,`filter array for operator "${M[0]}" must have 3 elements`));case"in":case"!in":M.length>=2&&(ie=oo(M[1]),ie!=="string"&&ve.push(new Et(`${D}[1]`,M[1],`string expected, ${ie} found`)));for(let we=2;we{Mt in D&&M.push(new Et(X,D[Mt],`"${Mt}" is prohibited for ref layers`))}),ie.layers.forEach(Mt=>{po(Mt.id)===He&&(ut=Mt)}),ut?ut.ref?M.push(new Et(X,D.ref,"ref cannot reference another ref layer")):we=po(ut.type):M.push(new Et(X,D.ref,`ref layer "${He}" not found`))}else if(we!=="background")if(D.source){let ut=ie.sources&&ie.sources[D.source],Mt=ut&&po(ut.type);ut?Mt==="vector"&&we==="raster"?M.push(new Et(X,D.source,`layer "${D.id}" requires a raster source`)):Mt!=="raster-dem"&&we==="hillshade"?M.push(new Et(X,D.source,`layer "${D.id}" requires a raster-dem source`)):Mt==="raster"&&we!=="raster"?M.push(new Et(X,D.source,`layer "${D.id}" requires a vector source`)):Mt!=="vector"||D["source-layer"]?Mt==="raster-dem"&&we!=="hillshade"?M.push(new Et(X,D.source,"raster-dem source can only be used with layer type 'hillshade'.")):we!=="line"||!D.paint||!D.paint["line-gradient"]||Mt==="geojson"&&ut.lineMetrics||M.push(new Et(X,D,`layer "${D.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):M.push(new Et(X,D,`layer "${D.id}" must specify a "source-layer"`)):M.push(new Et(X,D.source,`source "${D.source}" not found`))}else M.push(new Et(X,D,'missing required property "source"'));return M=M.concat(ss({key:X,value:D,valueSpec:ve.layer,style:I.style,styleSpec:I.styleSpec,validateSpec:I.validateSpec,objectElementValidators:{"*":()=>[],type:()=>I.validateSpec({key:`${X}.type`,value:D.type,valueSpec:ve.layer.type,style:I.style,styleSpec:I.styleSpec,validateSpec:I.validateSpec,object:D,objectKey:"type"}),filter:vs,layout:ut=>ss({layer:D,key:ut.key,value:ut.value,style:ut.style,styleSpec:ut.styleSpec,validateSpec:ut.validateSpec,objectElementValidators:{"*":Mt=>Hs(Ae({layerType:we},Mt))}}),paint:ut=>ss({layer:D,key:ut.key,value:ut.value,style:ut.style,styleSpec:ut.styleSpec,validateSpec:ut.validateSpec,objectElementValidators:{"*":Mt=>el(Ae({layerType:we},Mt))}})}})),M}function tl(I){let M=I.value,D=I.key,X=oo(M);return X!=="string"?[new Et(D,M,`string expected, ${X} found`)]:[]}let Fs={promoteId:function({key:I,value:M}){if(oo(M)==="string")return tl({key:I,value:M});{let D=[];for(let X in M)D.push(...tl({key:`${I}.${X}`,value:M[X]}));return D}}};function hl(I){let M=I.value,D=I.key,X=I.styleSpec,ie=I.style,ve=I.validateSpec;if(!M.type)return[new Et(D,M,'"type" is required')];let we=po(M.type),He;switch(we){case"vector":case"raster":return He=ss({key:D,value:M,valueSpec:X[`source_${we.replace("-","_")}`],style:I.style,styleSpec:X,objectElementValidators:Fs,validateSpec:ve}),He;case"raster-dem":return He=function(ut){var Mt;let $t=(Mt=ut.sourceName)!==null&&Mt!==void 0?Mt:"",vr=ut.value,Sr=ut.styleSpec,Dr=Sr.source_raster_dem,Jr=ut.style,li=[],Hi=oo(vr);if(vr===void 0)return li;if(Hi!=="object")return li.push(new Et("source_raster_dem",vr,`object expected, ${Hi} found`)),li;let cn=po(vr.encoding)==="custom",Za=["redFactor","greenFactor","blueFactor","baseShift"],Rn=ut.value.encoding?`"${ut.value.encoding}"`:"Default";for(let La in vr)!cn&&Za.includes(La)?li.push(new Et(La,vr[La],`In "${$t}": "${La}" is only valid when "encoding" is set to "custom". ${Rn} encoding found`)):Dr[La]?li=li.concat(ut.validateSpec({key:La,value:vr[La],valueSpec:Dr[La],validateSpec:ut.validateSpec,style:Jr,styleSpec:Sr})):li.push(new Et(La,vr[La],`unknown property "${La}"`));return li}({sourceName:D,value:M,style:I.style,styleSpec:X,validateSpec:ve}),He;case"geojson":if(He=ss({key:D,value:M,valueSpec:X.source_geojson,style:ie,styleSpec:X,validateSpec:ve,objectElementValidators:Fs}),M.cluster)for(let ut in M.clusterProperties){let[Mt,$t]=M.clusterProperties[ut],vr=typeof Mt=="string"?[Mt,["accumulated"],["get",ut]]:Mt;He.push(...Io({key:`${D}.${ut}.map`,value:$t,validateSpec:ve,expressionContext:"cluster-map"})),He.push(...Io({key:`${D}.${ut}.reduce`,value:vr,validateSpec:ve,expressionContext:"cluster-reduce"}))}return He;case"video":return ss({key:D,value:M,valueSpec:X.source_video,style:ie,validateSpec:ve,styleSpec:X});case"image":return ss({key:D,value:M,valueSpec:X.source_image,style:ie,validateSpec:ve,styleSpec:X});case"canvas":return[new Et(D,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Da({key:`${D}.type`,value:M.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:ie,validateSpec:ve,styleSpec:X})}}function Fa(I){let M=I.value,D=I.styleSpec,X=D.light,ie=I.style,ve=[],we=oo(M);if(M===void 0)return ve;if(we!=="object")return ve=ve.concat([new Et("light",M,`object expected, ${we} found`)]),ve;for(let He in M){let ut=He.match(/^(.*)-transition$/);ve=ve.concat(ut&&X[ut[1]]&&X[ut[1]].transition?I.validateSpec({key:He,value:M[He],valueSpec:D.transition,validateSpec:I.validateSpec,style:ie,styleSpec:D}):X[He]?I.validateSpec({key:He,value:M[He],valueSpec:X[He],validateSpec:I.validateSpec,style:ie,styleSpec:D}):[new Et(He,M[He],`unknown property "${He}"`)])}return ve}function Ms(I){let M=I.value,D=I.styleSpec,X=D.sky,ie=I.style,ve=oo(M);if(M===void 0)return[];if(ve!=="object")return[new Et("sky",M,`object expected, ${ve} found`)];let we=[];for(let He in M)we=we.concat(X[He]?I.validateSpec({key:He,value:M[He],valueSpec:X[He],style:ie,styleSpec:D}):[new Et(He,M[He],`unknown property "${He}"`)]);return we}function jo(I){let M=I.value,D=I.styleSpec,X=D.terrain,ie=I.style,ve=[],we=oo(M);if(M===void 0)return ve;if(we!=="object")return ve=ve.concat([new Et("terrain",M,`object expected, ${we} found`)]),ve;for(let He in M)ve=ve.concat(X[He]?I.validateSpec({key:He,value:M[He],valueSpec:X[He],validateSpec:I.validateSpec,style:ie,styleSpec:D}):[new Et(He,M[He],`unknown property "${He}"`)]);return ve}function Rs(I){let M=[],D=I.value,X=I.key;if(Array.isArray(D)){let ie=[],ve=[];for(let we in D)D[we].id&&ie.includes(D[we].id)&&M.push(new Et(X,D,`all the sprites' ids must be unique, but ${D[we].id} is duplicated`)),ie.push(D[we].id),D[we].url&&ve.includes(D[we].url)&&M.push(new Et(X,D,`all the sprites' URLs must be unique, but ${D[we].url} is duplicated`)),ve.push(D[we].url),M=M.concat(ss({key:`${X}[${we}]`,value:D[we],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:I.validateSpec}));return M}return tl({key:X,value:D})}let Is={"*":()=>[],array:qo,boolean:function(I){let M=I.value,D=I.key,X=oo(M);return X!=="boolean"?[new Et(D,M,`boolean expected, ${X} found`)]:[]},number:zo,color:function(I){let M=I.key,D=I.value,X=oo(D);return X!=="string"?[new Et(M,D,`color expected, ${X} found`)]:Wt.parse(String(D))?[]:[new Et(M,D,`color expected, "${D}" found`)]},constants:Ss,enum:Da,filter:vs,function:io,layer:Ro,object:ss,source:hl,light:Fa,sky:Ms,terrain:jo,projection:function(I){let M=I.value,D=I.styleSpec,X=D.projection,ie=I.style,ve=oo(M);if(M===void 0)return[];if(ve!=="object")return[new Et("projection",M,`object expected, ${ve} found`)];let we=[];for(let He in M)we=we.concat(X[He]?I.validateSpec({key:He,value:M[He],valueSpec:X[He],style:ie,styleSpec:D}):[new Et(He,M[He],`unknown property "${He}"`)]);return we},string:tl,formatted:function(I){return tl(I).length===0?[]:Io(I)},resolvedImage:function(I){return tl(I).length===0?[]:Io(I)},padding:function(I){let M=I.key,D=I.value;if(oo(D)==="array"){if(D.length<1||D.length>4)return[new Et(M,D,`padding requires 1 to 4 values; ${D.length} values found`)];let X={type:"number"},ie=[];for(let ve=0;ve[]}})),I.constants&&(D=D.concat(Ss({key:"constants",value:I.constants,style:I,styleSpec:M,validateSpec:Bs}))),yr(D)}function wr(I){return function(M){return I(_ee(gee({},M),{validateSpec:Bs}))}}function yr(I){return[].concat(I).sort((M,D)=>M.line-D.line)}function Fr(I){return function(...M){return yr(I.apply(this,M))}}Vt.source=Fr(wr(hl)),Vt.sprite=Fr(wr(Rs)),Vt.glyphs=Fr(wr(Tt)),Vt.light=Fr(wr(Fa)),Vt.sky=Fr(wr(Ms)),Vt.terrain=Fr(wr(jo)),Vt.layer=Fr(wr(Ro)),Vt.filter=Fr(wr(vs)),Vt.paintProperty=Fr(wr(el)),Vt.layoutProperty=Fr(wr(Hs));let gi=Vt,Ti=gi.light,ki=gi.sky,Ji=gi.paintProperty,Fn=gi.layoutProperty;function Pi(I,M){let D=!1;if(M&&M.length)for(let X of M)I.fire(new me(new Error(X.message))),D=!0;return D}class hi{constructor(M,D,X){let ie=this.cells=[];if(M instanceof ArrayBuffer){this.arrayBuffer=M;let we=new Int32Array(this.arrayBuffer);M=we[0],this.d=(D=we[1])+2*(X=we[2]);for(let ut=0;ut=vr[Jr+0]&&ie>=vr[Jr+1])?(He[Dr]=!0,we.push($t[Dr])):He[Dr]=!1}}}}_forEachCell(M,D,X,ie,ve,we,He,ut){let Mt=this._convertToCellCoord(M),$t=this._convertToCellCoord(D),vr=this._convertToCellCoord(X),Sr=this._convertToCellCoord(ie);for(let Dr=Mt;Dr<=vr;Dr++)for(let Jr=$t;Jr<=Sr;Jr++){let li=this.d*Jr+Dr;if((!ut||ut(this._convertFromCellCoord(Dr),this._convertFromCellCoord(Jr),this._convertFromCellCoord(Dr+1),this._convertFromCellCoord(Jr+1)))&&ve.call(this,M,D,X,ie,li,we,He,ut))return}}_convertFromCellCoord(M){return(M-this.padding)/this.scale}_convertToCellCoord(M){return Math.max(0,Math.min(this.d-1,Math.floor(M*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let M=this.cells,D=3+this.cells.length+1+1,X=0;for(let we=0;we=0)continue;let we=I[ve];ie[ve]=Li[D].shallow.indexOf(ve)>=0?we:ia(we,M)}I instanceof Error&&(ie.message=I.message)}if(ie.$name)throw new Error("$name property is reserved for worker serialization logic.");return D!=="Object"&&(ie.$name=D),ie}function pa(I){if(ya(I))return I;if(Array.isArray(I))return I.map(pa);if(typeof I!="object")throw new Error("can't deserialize object of type "+typeof I);let M=ta(I)||"Object";if(!Li[M])throw new Error(`can't deserialize unregistered class ${M}`);let{klass:D}=Li[M];if(!D)throw new Error(`can't deserialize unregistered class ${M}`);if(D.deserialize)return D.deserialize(I);let X=Object.create(D.prototype);for(let ie of Object.keys(I)){if(ie==="$name")continue;let ve=I[ie];X[ie]=Li[M].shallow.indexOf(ie)>=0?ve:pa(ve)}return X}class va{constructor(){this.first=!0}update(M,D){let X=Math.floor(M);return this.first?(this.first=!1,this.lastIntegerZoom=X,this.lastIntegerZoomTime=0,this.lastZoom=M,this.lastFloorZoom=X,!0):(this.lastFloorZoom>X?(this.lastIntegerZoom=X+1,this.lastIntegerZoomTime=D):this.lastFloorZoomI>=128&&I<=255,"Hangul Jamo":I=>I>=4352&&I<=4607,Khmer:I=>I>=6016&&I<=6143,"General Punctuation":I=>I>=8192&&I<=8303,"Letterlike Symbols":I=>I>=8448&&I<=8527,"Number Forms":I=>I>=8528&&I<=8591,"Miscellaneous Technical":I=>I>=8960&&I<=9215,"Control Pictures":I=>I>=9216&&I<=9279,"Optical Character Recognition":I=>I>=9280&&I<=9311,"Enclosed Alphanumerics":I=>I>=9312&&I<=9471,"Geometric Shapes":I=>I>=9632&&I<=9727,"Miscellaneous Symbols":I=>I>=9728&&I<=9983,"Miscellaneous Symbols and Arrows":I=>I>=11008&&I<=11263,"Ideographic Description Characters":I=>I>=12272&&I<=12287,"CJK Symbols and Punctuation":I=>I>=12288&&I<=12351,Katakana:I=>I>=12448&&I<=12543,Kanbun:I=>I>=12688&&I<=12703,"CJK Strokes":I=>I>=12736&&I<=12783,"Enclosed CJK Letters and Months":I=>I>=12800&&I<=13055,"CJK Compatibility":I=>I>=13056&&I<=13311,"Yijing Hexagram Symbols":I=>I>=19904&&I<=19967,"Private Use Area":I=>I>=57344&&I<=63743,"Vertical Forms":I=>I>=65040&&I<=65055,"CJK Compatibility Forms":I=>I>=65072&&I<=65103,"Small Form Variants":I=>I>=65104&&I<=65135,"Halfwidth and Fullwidth Forms":I=>I>=65280&&I<=65519};function is(I){for(let M of I)if(bl(M.charCodeAt(0)))return!0;return!1}function Cs(I){for(let M of I)if(!xl(M.charCodeAt(0)))return!1;return!0}function Ks(I){let M=I.map(D=>{try{return new RegExp(`\\p{sc=${D}}`,"u").source}catch(X){return null}}).filter(D=>D);return new RegExp(M.join("|"),"u")}let dl=Ks(["Arab","Dupl","Mong","Ougr","Syrc"]);function xl(I){return!dl.test(String.fromCodePoint(I))}let Ol=Ks(["Bopo","Hani","Hira","Kana","Kits","Nshu","Tang","Yiii"]);function bl(I){return!(I!==746&&I!==747&&(I<4352||!(zn["CJK Compatibility Forms"](I)&&!(I>=65097&&I<=65103)||zn["CJK Compatibility"](I)||zn["CJK Strokes"](I)||!(!zn["CJK Symbols and Punctuation"](I)||I>=12296&&I<=12305||I>=12308&&I<=12319||I===12336)||zn["Enclosed CJK Letters and Months"](I)||zn["Ideographic Description Characters"](I)||zn.Kanbun(I)||zn.Katakana(I)&&I!==12540||!(!zn["Halfwidth and Fullwidth Forms"](I)||I===65288||I===65289||I===65293||I>=65306&&I<=65310||I===65339||I===65341||I===65343||I>=65371&&I<=65503||I===65507||I>=65512&&I<=65519)||!(!zn["Small Form Variants"](I)||I>=65112&&I<=65118||I>=65123&&I<=65126)||zn["Vertical Forms"](I)||zn["Yijing Hexagram Symbols"](I)||new RegExp("\\p{sc=Cans}","u").test(String.fromCodePoint(I))||new RegExp("\\p{sc=Hang}","u").test(String.fromCodePoint(I))||Ol.test(String.fromCodePoint(I)))))}function eu(I){return!(bl(I)||function(M){return!!(zn["Latin-1 Supplement"](M)&&(M===167||M===169||M===174||M===177||M===188||M===189||M===190||M===215||M===247)||zn["General Punctuation"](M)&&(M===8214||M===8224||M===8225||M===8240||M===8241||M===8251||M===8252||M===8258||M===8263||M===8264||M===8265||M===8273)||zn["Letterlike Symbols"](M)||zn["Number Forms"](M)||zn["Miscellaneous Technical"](M)&&(M>=8960&&M<=8967||M>=8972&&M<=8991||M>=8996&&M<=9e3||M===9003||M>=9085&&M<=9114||M>=9150&&M<=9165||M===9167||M>=9169&&M<=9179||M>=9186&&M<=9215)||zn["Control Pictures"](M)&&M!==9251||zn["Optical Character Recognition"](M)||zn["Enclosed Alphanumerics"](M)||zn["Geometric Shapes"](M)||zn["Miscellaneous Symbols"](M)&&!(M>=9754&&M<=9759)||zn["Miscellaneous Symbols and Arrows"](M)&&(M>=11026&&M<=11055||M>=11088&&M<=11097||M>=11192&&M<=11243)||zn["CJK Symbols and Punctuation"](M)||zn.Katakana(M)||zn["Private Use Area"](M)||zn["CJK Compatibility Forms"](M)||zn["Small Form Variants"](M)||zn["Halfwidth and Fullwidth Forms"](M)||M===8734||M===8756||M===8757||M>=9984&&M<=10087||M>=10102&&M<=10131||M===65532||M===65533)}(I))}let Zl=Ks(["Adlm","Arab","Armi","Avst","Chrs","Cprt","Egyp","Elym","Gara","Hatr","Hebr","Hung","Khar","Lydi","Mand","Mani","Mend","Merc","Mero","Narb","Nbat","Nkoo","Orkh","Palm","Phli","Phlp","Phnx","Prti","Rohg","Samr","Sarb","Sogo","Syrc","Thaa","Todr","Yezi"]);function Vl(I){return Zl.test(String.fromCodePoint(I))}function ja(I,M){return!(!M&&Vl(I)||I>=2304&&I<=3583||I>=3840&&I<=4255||zn.Khmer(I))}function ns(I){for(let M of I)if(Vl(M.charCodeAt(0)))return!0;return!1}let Js=new class{constructor(){this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null}setState(I){this.pluginStatus=I.pluginStatus,this.pluginURL=I.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(I){this.applyArabicShaping=I.applyArabicShaping,this.processBidirectionalText=I.processBidirectionalText,this.processStyledBidirectionalText=I.processStyledBidirectionalText}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getPluginURL(){return this.pluginURL}getRTLTextPluginStatus(){return this.pluginStatus}};class cs{constructor(M,D){this.zoom=M,D?(this.now=D.now,this.fadeDuration=D.fadeDuration,this.zoomHistory=D.zoomHistory,this.transition=D.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new va,this.transition={})}isSupportedScript(M){return function(D,X){for(let ie of D)if(!ja(ie.charCodeAt(0),X))return!1;return!0}(M,Js.getRTLTextPluginStatus()==="loaded")}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let M=this.zoom,D=M-Math.floor(M),X=this.crossFadingFactor();return M>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:D+(1-D)*X}:{fromScale:.5,toScale:1,t:1-(1-X)*D}}}class sl{constructor(M,D){this.property=M,this.value=D,this.expression=function(X,ie){if(za(X))return new Lo(X,ie);if(Qs(X)){let ve=Do(X,ie);if(ve.result==="error")throw new Error(ve.value.map(we=>`${we.key}: ${we.message}`).join(", "));return ve.value}{let ve=X;return ie.type==="color"&&typeof X=="string"?ve=Wt.parse(X):ie.type!=="padding"||typeof X!="number"&&!Array.isArray(X)?ie.type==="variableAnchorOffsetCollection"&&Array.isArray(X)&&(ve=jr.parse(X)):ve=Ir.parse(X),{kind:"constant",evaluate:()=>ve}}}(D===void 0?M.specification.default:D,M.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(M,D,X){return this.property.possiblyEvaluate(this,M,D,X)}}class ll{constructor(M){this.property=M,this.value=new sl(M,void 0)}transitioned(M,D){return new zl(this.property,this.value,D,L({},M.transition,this.transition),M.now)}untransitioned(){return new zl(this.property,this.value,null,{},0)}}class il{constructor(M){this._properties=M,this._values=Object.create(M.defaultTransitionablePropertyValues)}getValue(M){return m(this._values[M].value.value)}setValue(M,D){Object.prototype.hasOwnProperty.call(this._values,M)||(this._values[M]=new ll(this._values[M].property)),this._values[M].value=new sl(this._values[M].property,D===null?void 0:m(D))}getTransition(M){return m(this._values[M].transition)}setTransition(M,D){Object.prototype.hasOwnProperty.call(this._values,M)||(this._values[M]=new ll(this._values[M].property)),this._values[M].transition=m(D)||void 0}serialize(){let M={};for(let D of Object.keys(this._values)){let X=this.getValue(D);X!==void 0&&(M[D]=X);let ie=this.getTransition(D);ie!==void 0&&(M[`${D}-transition`]=ie)}return M}transitioned(M,D){let X=new Ml(this._properties);for(let ie of Object.keys(this._values))X._values[ie]=this._values[ie].transitioned(M,D._values[ie]);return X}untransitioned(){let M=new Ml(this._properties);for(let D of Object.keys(this._values))M._values[D]=this._values[D].untransitioned();return M}}class zl{constructor(M,D,X,ie,ve){this.property=M,this.value=D,this.begin=ve+ie.delay||0,this.end=this.begin+ie.duration||0,M.specification.transition&&(ie.delay||ie.duration)&&(this.prior=X)}possiblyEvaluate(M,D,X){let ie=M.now||0,ve=this.value.possiblyEvaluate(M,D,X),we=this.prior;if(we){if(ie>this.end)return this.prior=null,ve;if(this.value.isDataDriven())return this.prior=null,ve;if(ie=1)return 1;let Mt=ut*ut,$t=Mt*ut;return 4*(ut<.5?$t:3*(ut-Mt)+$t-.75)}(He))}}return ve}}class Ml{constructor(M){this._properties=M,this._values=Object.create(M.defaultTransitioningPropertyValues)}possiblyEvaluate(M,D,X){let ie=new Ll(this._properties);for(let ve of Object.keys(this._values))ie._values[ve]=this._values[ve].possiblyEvaluate(M,D,X);return ie}hasTransition(){for(let M of Object.keys(this._values))if(this._values[M].prior)return!0;return!1}}class Rl{constructor(M){this._properties=M,this._values=Object.create(M.defaultPropertyValues)}hasValue(M){return this._values[M].value!==void 0}getValue(M){return m(this._values[M].value)}setValue(M,D){this._values[M]=new sl(this._values[M].property,D===null?void 0:m(D))}serialize(){let M={};for(let D of Object.keys(this._values)){let X=this.getValue(D);X!==void 0&&(M[D]=X)}return M}possiblyEvaluate(M,D,X){let ie=new Ll(this._properties);for(let ve of Object.keys(this._values))ie._values[ve]=this._values[ve].possiblyEvaluate(M,D,X);return ie}}class Al{constructor(M,D,X){this.property=M,this.value=D,this.parameters=X}isConstant(){return this.value.kind==="constant"}constantOr(M){return this.value.kind==="constant"?this.value.value:M}evaluate(M,D,X,ie){return this.property.evaluate(this.value,this.parameters,M,D,X,ie)}}class Ll{constructor(M){this._properties=M,this._values=Object.create(M.defaultPossiblyEvaluatedValues)}get(M){return this._values[M]}}class ms{constructor(M){this.specification=M}possiblyEvaluate(M,D){if(M.isDataDriven())throw new Error("Value should not be data driven");return M.expression.evaluate(D)}interpolate(M,D,X){let ie=ka[this.specification.type];return ie?ie(M,D,X):M}}class Os{constructor(M,D){this.specification=M,this.overrides=D}possiblyEvaluate(M,D,X,ie){return new Al(this,M.expression.kind==="constant"||M.expression.kind==="camera"?{kind:"constant",value:M.expression.evaluate(D,null,{},X,ie)}:M.expression,D)}interpolate(M,D,X){if(M.value.kind!=="constant"||D.value.kind!=="constant")return M;if(M.value.value===void 0||D.value.value===void 0)return new Al(this,{kind:"constant",value:void 0},M.parameters);let ie=ka[this.specification.type];if(ie){let ve=ie(M.value.value,D.value.value,X);return new Al(this,{kind:"constant",value:ve},M.parameters)}return M}evaluate(M,D,X,ie,ve,we){return M.kind==="constant"?M.value:M.evaluate(D,X,ie,ve,we)}}class Xl extends Os{possiblyEvaluate(M,D,X,ie){if(M.value===void 0)return new Al(this,{kind:"constant",value:void 0},D);if(M.expression.kind==="constant"){let ve=M.expression.evaluate(D,null,{},X,ie),we=M.property.specification.type==="resolvedImage"&&typeof ve!="string"?ve.name:ve,He=this._calculate(we,we,we,D);return new Al(this,{kind:"constant",value:He},D)}if(M.expression.kind==="camera"){let ve=this._calculate(M.expression.evaluate({zoom:D.zoom-1}),M.expression.evaluate({zoom:D.zoom}),M.expression.evaluate({zoom:D.zoom+1}),D);return new Al(this,{kind:"constant",value:ve},D)}return new Al(this,M.expression,D)}evaluate(M,D,X,ie,ve,we){if(M.kind==="source"){let He=M.evaluate(D,X,ie,ve,we);return this._calculate(He,He,He,D)}return M.kind==="composite"?this._calculate(M.evaluate({zoom:Math.floor(D.zoom)-1},X,ie),M.evaluate({zoom:Math.floor(D.zoom)},X,ie),M.evaluate({zoom:Math.floor(D.zoom)+1},X,ie),D):M.value}_calculate(M,D,X,ie){return ie.zoom>ie.zoomHistory.lastIntegerZoom?{from:M,to:D}:{from:X,to:D}}interpolate(M){return M}}class Gl{constructor(M){this.specification=M}possiblyEvaluate(M,D,X,ie){if(M.value!==void 0){if(M.expression.kind==="constant"){let ve=M.expression.evaluate(D,null,{},X,ie);return this._calculate(ve,ve,ve,D)}return this._calculate(M.expression.evaluate(new cs(Math.floor(D.zoom-1),D)),M.expression.evaluate(new cs(Math.floor(D.zoom),D)),M.expression.evaluate(new cs(Math.floor(D.zoom+1),D)),D)}}_calculate(M,D,X,ie){return ie.zoom>ie.zoomHistory.lastIntegerZoom?{from:M,to:D}:{from:X,to:D}}interpolate(M){return M}}class Ul{constructor(M){this.specification=M}possiblyEvaluate(M,D,X,ie){return!!M.expression.evaluate(D,null,{},X,ie)}interpolate(){return!1}}class le{constructor(M){this.properties=M,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let D in M){let X=M[D];X.specification.overridable&&this.overridableProperties.push(D);let ie=this.defaultPropertyValues[D]=new sl(X,void 0),ve=this.defaultTransitionablePropertyValues[D]=new ll(X);this.defaultTransitioningPropertyValues[D]=ve.untransitioned(),this.defaultPossiblyEvaluatedValues[D]=ie.possiblyEvaluate({})}}}Si("DataDrivenProperty",Os),Si("DataConstantProperty",ms),Si("CrossFadedDataDrivenProperty",Xl),Si("CrossFadedProperty",Gl),Si("ColorRampProperty",Ul);let w="-transition";class q extends Ne{constructor(M,D){if(super(),this.id=M.id,this.type=M.type,this._featureFilter={filter:()=>!0,needGeometry:!1},M.type!=="custom"&&(this.metadata=M.metadata,this.minzoom=M.minzoom,this.maxzoom=M.maxzoom,M.type!=="background"&&(this.source=M.source,this.sourceLayer=M["source-layer"],this.filter=M.filter),D.layout&&(this._unevaluatedLayout=new Rl(D.layout)),D.paint)){this._transitionablePaint=new il(D.paint);for(let X in M.paint)this.setPaintProperty(X,M.paint[X],{validate:!1});for(let X in M.layout)this.setLayoutProperty(X,M.layout[X],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Ll(D.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(M){return M==="visibility"?this.visibility:this._unevaluatedLayout.getValue(M)}setLayoutProperty(M,D,X={}){D!=null&&this._validate(Fn,`layers.${this.id}.layout.${M}`,M,D,X)||(M!=="visibility"?this._unevaluatedLayout.setValue(M,D):this.visibility=D)}getPaintProperty(M){return M.endsWith(w)?this._transitionablePaint.getTransition(M.slice(0,-11)):this._transitionablePaint.getValue(M)}setPaintProperty(M,D,X={}){if(D!=null&&this._validate(Ji,`layers.${this.id}.paint.${M}`,M,D,X))return!1;if(M.endsWith(w))return this._transitionablePaint.setTransition(M.slice(0,-11),D||void 0),!1;{let ie=this._transitionablePaint._values[M],ve=ie.property.specification["property-type"]==="cross-faded-data-driven",we=ie.value.isDataDriven(),He=ie.value;this._transitionablePaint.setValue(M,D),this._handleSpecialPaintPropertyUpdate(M);let ut=this._transitionablePaint._values[M].value;return ut.isDataDriven()||we||ve||this._handleOverridablePaintPropertyUpdate(M,He,ut)}}_handleSpecialPaintPropertyUpdate(M){}_handleOverridablePaintPropertyUpdate(M,D,X){return!1}isHidden(M){return!!(this.minzoom&&M=this.maxzoom)||this.visibility==="none"}updateTransitions(M){this._transitioningPaint=this._transitionablePaint.transitioned(M,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(M,D){M.getCrossfadeParameters&&(this._crossfadeParameters=M.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(M,void 0,D)),this.paint=this._transitioningPaint.possiblyEvaluate(M,void 0,D)}serialize(){let M={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(M.layout=M.layout||{},M.layout.visibility=this.visibility),S(M,(D,X)=>!(D===void 0||X==="layout"&&!Object.keys(D).length||X==="paint"&&!Object.keys(D).length))}_validate(M,D,X,ie,ve={}){return(!ve||ve.validate!==!1)&&Pi(this,M.call(gi,{key:D,layerType:this.type,objectKey:X,value:ie,styleSpec:ce,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let M in this.paint._values){let D=this.paint.get(M);if(D instanceof Al&&ln(D.property.specification)&&(D.value.kind==="source"||D.value.kind==="composite")&&D.value.isStateDependent)return!0}return!1}}let Q={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class ee{constructor(M,D){this._structArray=M,this._pos1=D*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class ue{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(M,D){return M._trim(),D&&(M.isTransferred=!0,D.push(M.arrayBuffer)),{length:M.length,arrayBuffer:M.arrayBuffer}}static deserialize(M){let D=Object.create(this.prototype);return D.arrayBuffer=M.arrayBuffer,D.length=M.length,D.capacity=M.arrayBuffer.byteLength/D.bytesPerElement,D._refreshViews(),D}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(M){this.reserve(M),this.length=M}reserve(M){if(M>this.capacity){this.capacity=Math.max(M,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let D=this.uint8;this._refreshViews(),D&&this.uint8.set(D)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function Ve(I,M=1){let D=0,X=0;return{members:I.map(ie=>{let ve=Q[ie.type].BYTES_PER_ELEMENT,we=D=et(D,Math.max(M,ve)),He=ie.components||1;return X=Math.max(X,ve),D+=ve*He,{name:ie.name,type:ie.type,components:He,offset:we}}),size:et(D,Math.max(X,M)),alignment:M}}function et(I,M){return Math.ceil(I/M)*M}class yt extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(M,D){let X=this.length;return this.resize(X+1),this.emplace(X,M,D)}emplace(M,D,X){let ie=2*M;return this.int16[ie+0]=D,this.int16[ie+1]=X,M}}yt.prototype.bytesPerElement=4,Si("StructArrayLayout2i4",yt);class Dt extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(M,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,M,D,X)}emplace(M,D,X,ie){let ve=3*M;return this.int16[ve+0]=D,this.int16[ve+1]=X,this.int16[ve+2]=ie,M}}Dt.prototype.bytesPerElement=6,Si("StructArrayLayout3i6",Dt);class ir extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(M,D,X,ie){let ve=this.length;return this.resize(ve+1),this.emplace(ve,M,D,X,ie)}emplace(M,D,X,ie,ve){let we=4*M;return this.int16[we+0]=D,this.int16[we+1]=X,this.int16[we+2]=ie,this.int16[we+3]=ve,M}}ir.prototype.bytesPerElement=8,Si("StructArrayLayout4i8",ir);class or extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(M,D,X,ie,ve,we){let He=this.length;return this.resize(He+1),this.emplace(He,M,D,X,ie,ve,we)}emplace(M,D,X,ie,ve,we,He){let ut=6*M;return this.int16[ut+0]=D,this.int16[ut+1]=X,this.int16[ut+2]=ie,this.int16[ut+3]=ve,this.int16[ut+4]=we,this.int16[ut+5]=He,M}}or.prototype.bytesPerElement=12,Si("StructArrayLayout2i4i12",or);class kr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(M,D,X,ie,ve,we){let He=this.length;return this.resize(He+1),this.emplace(He,M,D,X,ie,ve,we)}emplace(M,D,X,ie,ve,we,He){let ut=4*M,Mt=8*M;return this.int16[ut+0]=D,this.int16[ut+1]=X,this.uint8[Mt+4]=ie,this.uint8[Mt+5]=ve,this.uint8[Mt+6]=we,this.uint8[Mt+7]=He,M}}kr.prototype.bytesPerElement=8,Si("StructArrayLayout2i4ub8",kr);class Vr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(M,D){let X=this.length;return this.resize(X+1),this.emplace(X,M,D)}emplace(M,D,X){let ie=2*M;return this.float32[ie+0]=D,this.float32[ie+1]=X,M}}Vr.prototype.bytesPerElement=8,Si("StructArrayLayout2f8",Vr);class he extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(M,D,X,ie,ve,we,He,ut,Mt,$t){let vr=this.length;return this.resize(vr+1),this.emplace(vr,M,D,X,ie,ve,we,He,ut,Mt,$t)}emplace(M,D,X,ie,ve,we,He,ut,Mt,$t,vr){let Sr=10*M;return this.uint16[Sr+0]=D,this.uint16[Sr+1]=X,this.uint16[Sr+2]=ie,this.uint16[Sr+3]=ve,this.uint16[Sr+4]=we,this.uint16[Sr+5]=He,this.uint16[Sr+6]=ut,this.uint16[Sr+7]=Mt,this.uint16[Sr+8]=$t,this.uint16[Sr+9]=vr,M}}he.prototype.bytesPerElement=20,Si("StructArrayLayout10ui20",he);class Se extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(M,D,X,ie,ve,we,He,ut,Mt,$t,vr,Sr){let Dr=this.length;return this.resize(Dr+1),this.emplace(Dr,M,D,X,ie,ve,we,He,ut,Mt,$t,vr,Sr)}emplace(M,D,X,ie,ve,we,He,ut,Mt,$t,vr,Sr,Dr){let Jr=12*M;return this.int16[Jr+0]=D,this.int16[Jr+1]=X,this.int16[Jr+2]=ie,this.int16[Jr+3]=ve,this.uint16[Jr+4]=we,this.uint16[Jr+5]=He,this.uint16[Jr+6]=ut,this.uint16[Jr+7]=Mt,this.int16[Jr+8]=$t,this.int16[Jr+9]=vr,this.int16[Jr+10]=Sr,this.int16[Jr+11]=Dr,M}}Se.prototype.bytesPerElement=24,Si("StructArrayLayout4i4ui4i24",Se);class qe extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(M,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,M,D,X)}emplace(M,D,X,ie){let ve=3*M;return this.float32[ve+0]=D,this.float32[ve+1]=X,this.float32[ve+2]=ie,M}}qe.prototype.bytesPerElement=12,Si("StructArrayLayout3f12",qe);class Ge extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(M){let D=this.length;return this.resize(D+1),this.emplace(D,M)}emplace(M,D){return this.uint32[1*M+0]=D,M}}Ge.prototype.bytesPerElement=4,Si("StructArrayLayout1ul4",Ge);class lt extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(M,D,X,ie,ve,we,He,ut,Mt){let $t=this.length;return this.resize($t+1),this.emplace($t,M,D,X,ie,ve,we,He,ut,Mt)}emplace(M,D,X,ie,ve,we,He,ut,Mt,$t){let vr=10*M,Sr=5*M;return this.int16[vr+0]=D,this.int16[vr+1]=X,this.int16[vr+2]=ie,this.int16[vr+3]=ve,this.int16[vr+4]=we,this.int16[vr+5]=He,this.uint32[Sr+3]=ut,this.uint16[vr+8]=Mt,this.uint16[vr+9]=$t,M}}lt.prototype.bytesPerElement=20,Si("StructArrayLayout6i1ul2ui20",lt);class tt extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(M,D,X,ie,ve,we){let He=this.length;return this.resize(He+1),this.emplace(He,M,D,X,ie,ve,we)}emplace(M,D,X,ie,ve,we,He){let ut=6*M;return this.int16[ut+0]=D,this.int16[ut+1]=X,this.int16[ut+2]=ie,this.int16[ut+3]=ve,this.int16[ut+4]=we,this.int16[ut+5]=He,M}}tt.prototype.bytesPerElement=12,Si("StructArrayLayout2i2i2i12",tt);class vt extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(M,D,X,ie,ve){let we=this.length;return this.resize(we+1),this.emplace(we,M,D,X,ie,ve)}emplace(M,D,X,ie,ve,we){let He=4*M,ut=8*M;return this.float32[He+0]=D,this.float32[He+1]=X,this.float32[He+2]=ie,this.int16[ut+6]=ve,this.int16[ut+7]=we,M}}vt.prototype.bytesPerElement=16,Si("StructArrayLayout2f1f2i16",vt);class Gt extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(M,D,X,ie,ve,we){let He=this.length;return this.resize(He+1),this.emplace(He,M,D,X,ie,ve,we)}emplace(M,D,X,ie,ve,we,He){let ut=16*M,Mt=4*M,$t=8*M;return this.uint8[ut+0]=D,this.uint8[ut+1]=X,this.float32[Mt+1]=ie,this.float32[Mt+2]=ve,this.int16[$t+6]=we,this.int16[$t+7]=He,M}}Gt.prototype.bytesPerElement=16,Si("StructArrayLayout2ub2f2i16",Gt);class nr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(M,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,M,D,X)}emplace(M,D,X,ie){let ve=3*M;return this.uint16[ve+0]=D,this.uint16[ve+1]=X,this.uint16[ve+2]=ie,M}}nr.prototype.bytesPerElement=6,Si("StructArrayLayout3ui6",nr);class cr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(M,D,X,ie,ve,we,He,ut,Mt,$t,vr,Sr,Dr,Jr,li,Hi,cn){let Za=this.length;return this.resize(Za+1),this.emplace(Za,M,D,X,ie,ve,we,He,ut,Mt,$t,vr,Sr,Dr,Jr,li,Hi,cn)}emplace(M,D,X,ie,ve,we,He,ut,Mt,$t,vr,Sr,Dr,Jr,li,Hi,cn,Za){let Rn=24*M,La=12*M,So=48*M;return this.int16[Rn+0]=D,this.int16[Rn+1]=X,this.uint16[Rn+2]=ie,this.uint16[Rn+3]=ve,this.uint32[La+2]=we,this.uint32[La+3]=He,this.uint32[La+4]=ut,this.uint16[Rn+10]=Mt,this.uint16[Rn+11]=$t,this.uint16[Rn+12]=vr,this.float32[La+7]=Sr,this.float32[La+8]=Dr,this.uint8[So+36]=Jr,this.uint8[So+37]=li,this.uint8[So+38]=Hi,this.uint32[La+10]=cn,this.int16[Rn+22]=Za,M}}cr.prototype.bytesPerElement=48,Si("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",cr);class Ar extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(M,D,X,ie,ve,we,He,ut,Mt,$t,vr,Sr,Dr,Jr,li,Hi,cn,Za,Rn,La,So,kl,mu,Iu,su,yl,Eu,bu){let _u=this.length;return this.resize(_u+1),this.emplace(_u,M,D,X,ie,ve,we,He,ut,Mt,$t,vr,Sr,Dr,Jr,li,Hi,cn,Za,Rn,La,So,kl,mu,Iu,su,yl,Eu,bu)}emplace(M,D,X,ie,ve,we,He,ut,Mt,$t,vr,Sr,Dr,Jr,li,Hi,cn,Za,Rn,La,So,kl,mu,Iu,su,yl,Eu,bu,_u){let Xs=32*M,Lu=16*M;return this.int16[Xs+0]=D,this.int16[Xs+1]=X,this.int16[Xs+2]=ie,this.int16[Xs+3]=ve,this.int16[Xs+4]=we,this.int16[Xs+5]=He,this.int16[Xs+6]=ut,this.int16[Xs+7]=Mt,this.uint16[Xs+8]=$t,this.uint16[Xs+9]=vr,this.uint16[Xs+10]=Sr,this.uint16[Xs+11]=Dr,this.uint16[Xs+12]=Jr,this.uint16[Xs+13]=li,this.uint16[Xs+14]=Hi,this.uint16[Xs+15]=cn,this.uint16[Xs+16]=Za,this.uint16[Xs+17]=Rn,this.uint16[Xs+18]=La,this.uint16[Xs+19]=So,this.uint16[Xs+20]=kl,this.uint16[Xs+21]=mu,this.uint16[Xs+22]=Iu,this.uint32[Lu+12]=su,this.float32[Lu+13]=yl,this.float32[Lu+14]=Eu,this.uint16[Xs+30]=bu,this.uint16[Xs+31]=_u,M}}Ar.prototype.bytesPerElement=64,Si("StructArrayLayout8i15ui1ul2f2ui64",Ar);class Rr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(M){let D=this.length;return this.resize(D+1),this.emplace(D,M)}emplace(M,D){return this.float32[1*M+0]=D,M}}Rr.prototype.bytesPerElement=4,Si("StructArrayLayout1f4",Rr);class ri extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(M,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,M,D,X)}emplace(M,D,X,ie){let ve=3*M;return this.uint16[6*M+0]=D,this.float32[ve+1]=X,this.float32[ve+2]=ie,M}}ri.prototype.bytesPerElement=12,Si("StructArrayLayout1ui2f12",ri);class si extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(M,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,M,D,X)}emplace(M,D,X,ie){let ve=4*M;return this.uint32[2*M+0]=D,this.uint16[ve+2]=X,this.uint16[ve+3]=ie,M}}si.prototype.bytesPerElement=8,Si("StructArrayLayout1ul2ui8",si);class Mi extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(M,D){let X=this.length;return this.resize(X+1),this.emplace(X,M,D)}emplace(M,D,X){let ie=2*M;return this.uint16[ie+0]=D,this.uint16[ie+1]=X,M}}Mi.prototype.bytesPerElement=4,Si("StructArrayLayout2ui4",Mi);class hn extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(M){let D=this.length;return this.resize(D+1),this.emplace(D,M)}emplace(M,D){return this.uint16[1*M+0]=D,M}}hn.prototype.bytesPerElement=2,Si("StructArrayLayout1ui2",hn);class Zn extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(M,D,X,ie){let ve=this.length;return this.resize(ve+1),this.emplace(ve,M,D,X,ie)}emplace(M,D,X,ie,ve){let we=4*M;return this.float32[we+0]=D,this.float32[we+1]=X,this.float32[we+2]=ie,this.float32[we+3]=ve,M}}Zn.prototype.bytesPerElement=16,Si("StructArrayLayout4f16",Zn);class Yn extends ee{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new l(this.anchorPointX,this.anchorPointY)}}Yn.prototype.size=20;class Ua extends lt{get(M){return new Yn(this,M)}}Si("CollisionBoxArray",Ua);class Fo extends ee{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(M){this._structArray.uint8[this._pos1+37]=M}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(M){this._structArray.uint8[this._pos1+38]=M}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(M){this._structArray.uint32[this._pos4+10]=M}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}Fo.prototype.size=48;class vl extends cr{get(M){return new Fo(this,M)}}Si("PlacedSymbolArray",vl);class Us extends ee{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(M){this._structArray.uint32[this._pos4+12]=M}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}Us.prototype.size=64;class ml extends Ar{get(M){return new Us(this,M)}}Si("SymbolInstanceArray",ml);class au extends Rr{getoffsetX(M){return this.float32[1*M+0]}}Si("GlyphOffsetArray",au);class Sl extends Dt{getx(M){return this.int16[3*M+0]}gety(M){return this.int16[3*M+1]}gettileUnitDistanceFromAnchor(M){return this.int16[3*M+2]}}Si("SymbolLineVertexArray",Sl);class Yl extends ee{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}Yl.prototype.size=12;class ql extends ri{get(M){return new Yl(this,M)}}Si("TextAnchorOffsetArray",ql);class ou extends ee{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}ou.prototype.size=8;class Pu extends si{get(M){return new ou(this,M)}}Si("FeatureIndexArray",Pu);class iu extends yt{}class tu extends yt{}class Wu extends yt{}class Qu extends or{}class Ku extends kr{}class ju extends Vr{}class Xu extends he{}class lf extends Se{}class xf extends qe{}class ef extends Ge{}class tf extends tt{}class Z extends Gt{}class se extends nr{}class ze extends Mi{}let je=Ve([{name:"a_pos",components:2,type:"Int16"}],4),{members:$e}=je;class st{constructor(M=[]){this.segments=M}prepareSegment(M,D,X,ie){let ve=this.segments[this.segments.length-1];return M>st.MAX_VERTEX_ARRAY_LENGTH&&A(`Max vertices per segment is ${st.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${M}`),(!ve||ve.vertexLength+M>st.MAX_VERTEX_ARRAY_LENGTH||ve.sortKey!==ie)&&(ve={vertexOffset:D.length,primitiveOffset:X.length,vertexLength:0,primitiveLength:0},ie!==void 0&&(ve.sortKey=ie),this.segments.push(ve)),ve}get(){return this.segments}destroy(){for(let M of this.segments)for(let D in M.vaos)M.vaos[D].destroy()}static simpleSegment(M,D,X,ie){return new st([{vertexOffset:M,primitiveOffset:D,vertexLength:X,primitiveLength:ie,vaos:{},sortKey:0}])}}function jt(I,M){return 256*(I=E(Math.floor(I),0,255))+E(Math.floor(M),0,255)}st.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Si("SegmentVector",st);let _t=Ve([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var hr={exports:{}},Cr={exports:{}};Cr.exports=function(I,M){var D,X,ie,ve,we,He,ut,Mt;for(X=I.length-(D=3&I.length),ie=M,we=3432918353,He=461845907,Mt=0;Mt>>16)*we&65535)<<16)&4294967295)<<15|ut>>>17))*He+(((ut>>>16)*He&65535)<<16)&4294967295)<<13|ie>>>19))+((5*(ie>>>16)&65535)<<16)&4294967295))+((58964+(ve>>>16)&65535)<<16);switch(ut=0,D){case 3:ut^=(255&I.charCodeAt(Mt+2))<<16;case 2:ut^=(255&I.charCodeAt(Mt+1))<<8;case 1:ie^=ut=(65535&(ut=(ut=(65535&(ut^=255&I.charCodeAt(Mt)))*we+(((ut>>>16)*we&65535)<<16)&4294967295)<<15|ut>>>17))*He+(((ut>>>16)*He&65535)<<16)&4294967295}return ie^=I.length,ie=2246822507*(65535&(ie^=ie>>>16))+((2246822507*(ie>>>16)&65535)<<16)&4294967295,ie=3266489909*(65535&(ie^=ie>>>13))+((3266489909*(ie>>>16)&65535)<<16)&4294967295,(ie^=ie>>>16)>>>0};var zr=Cr.exports,ui={exports:{}};ui.exports=function(I,M){for(var D,X=I.length,ie=M^X,ve=0;X>=4;)D=1540483477*(65535&(D=255&I.charCodeAt(ve)|(255&I.charCodeAt(++ve))<<8|(255&I.charCodeAt(++ve))<<16|(255&I.charCodeAt(++ve))<<24))+((1540483477*(D>>>16)&65535)<<16),ie=1540483477*(65535&ie)+((1540483477*(ie>>>16)&65535)<<16)^(D=1540483477*(65535&(D^=D>>>24))+((1540483477*(D>>>16)&65535)<<16)),X-=4,++ve;switch(X){case 3:ie^=(255&I.charCodeAt(ve+2))<<16;case 2:ie^=(255&I.charCodeAt(ve+1))<<8;case 1:ie=1540483477*(65535&(ie^=255&I.charCodeAt(ve)))+((1540483477*(ie>>>16)&65535)<<16)}return ie=1540483477*(65535&(ie^=ie>>>13))+((1540483477*(ie>>>16)&65535)<<16),(ie^=ie>>>15)>>>0};var $r=zr,Oi=ui.exports;hr.exports=$r,hr.exports.murmur3=$r,hr.exports.murmur2=Oi;var fn=o(hr.exports);class pi{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(M,D,X,ie){this.ids.push(zi(M)),this.positions.push(D,X,ie)}getPositions(M){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");let D=zi(M),X=0,ie=this.ids.length-1;for(;X>1;this.ids[we]>=D?ie=we:X=we+1}let ve=[];for(;this.ids[X]===D;)ve.push({index:this.positions[3*X],start:this.positions[3*X+1],end:this.positions[3*X+2]}),X++;return ve}static serialize(M,D){let X=new Float64Array(M.ids),ie=new Uint32Array(M.positions);return Xi(X,ie,0,X.length-1),D&&D.push(X.buffer,ie.buffer),{ids:X,positions:ie}}static deserialize(M){let D=new pi;return D.ids=M.ids,D.positions=M.positions,D.indexed=!0,D}}function zi(I){let M=+I;return!isNaN(M)&&M<=Number.MAX_SAFE_INTEGER?M:fn(String(I))}function Xi(I,M,D,X){for(;D>1],ve=D-1,we=X+1;for(;;){do ve++;while(I[ve]ie);if(ve>=we)break;pn(I,ve,we),pn(M,3*ve,3*we),pn(M,3*ve+1,3*we+1),pn(M,3*ve+2,3*we+2)}we-D`u_${ie}`),this.type=X}setUniform(M,D,X){M.set(X.constantOr(this.value))}getBinding(M,D,X){return this.type==="color"?new no(M,D):new bi(M,D)}}class Pl{constructor(M,D){this.uniformNames=D.map(X=>`u_${X}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(M,D){this.pixelRatioFrom=D.pixelRatio,this.pixelRatioTo=M.pixelRatio,this.patternFrom=D.tlbr,this.patternTo=M.tlbr}setUniform(M,D,X,ie){let ve=ie==="u_pattern_to"?this.patternTo:ie==="u_pattern_from"?this.patternFrom:ie==="u_pixel_ratio_to"?this.pixelRatioTo:ie==="u_pixel_ratio_from"?this.pixelRatioFrom:null;ve&&M.set(ve)}getBinding(M,D,X){return X.substr(0,9)==="u_pattern"?new xo(M,D):new bi(M,D)}}class pu{constructor(M,D,X,ie){this.expression=M,this.type=X,this.maxValue=0,this.paintVertexAttributes=D.map(ve=>({name:`a_${ve}`,type:"Float32",components:X==="color"?2:1,offset:0})),this.paintVertexArray=new ie}populatePaintArray(M,D,X,ie,ve){let we=this.paintVertexArray.length,He=this.expression.evaluate(new cs(0),D,{},ie,[],ve);this.paintVertexArray.resize(M),this._setPaintValue(we,M,He)}updatePaintArray(M,D,X,ie){let ve=this.expression.evaluate({zoom:0},X,ie);this._setPaintValue(M,D,ve)}_setPaintValue(M,D,X){if(this.type==="color"){let ie=js(X);for(let ve=M;ve`u_${He}_t`),this.type=X,this.useIntegerZoom=ie,this.zoom=ve,this.maxValue=0,this.paintVertexAttributes=D.map(He=>({name:`a_${He}`,type:"Float32",components:X==="color"?4:2,offset:0})),this.paintVertexArray=new we}populatePaintArray(M,D,X,ie,ve){let we=this.expression.evaluate(new cs(this.zoom),D,{},ie,[],ve),He=this.expression.evaluate(new cs(this.zoom+1),D,{},ie,[],ve),ut=this.paintVertexArray.length;this.paintVertexArray.resize(M),this._setPaintValue(ut,M,we,He)}updatePaintArray(M,D,X,ie){let ve=this.expression.evaluate({zoom:this.zoom},X,ie),we=this.expression.evaluate({zoom:this.zoom+1},X,ie);this._setPaintValue(M,D,ve,we)}_setPaintValue(M,D,X,ie){if(this.type==="color"){let ve=js(X),we=js(ie);for(let He=M;He`#define HAS_UNIFORM_${ie}`))}return M}getBinderAttributes(){let M=[];for(let D in this.binders){let X=this.binders[D];if(X instanceof pu||X instanceof Il)for(let ie=0;ie!0){this.programConfigurations={};for(let ie of M)this.programConfigurations[ie.id]=new Zu(ie,D,X);this.needsUpload=!1,this._featureMap=new pi,this._bufferOffset=0}populatePaintArrays(M,D,X,ie,ve,we){for(let He in this.programConfigurations)this.programConfigurations[He].populatePaintArrays(M,D,ie,ve,we);D.id!==void 0&&this._featureMap.add(D.id,X,this._bufferOffset,M),this._bufferOffset=M,this.needsUpload=!0}updatePaintArrays(M,D,X,ie){for(let ve of X)this.needsUpload=this.programConfigurations[ve.id].updatePaintArrays(M,this._featureMap,D,ve,ie)||this.needsUpload}get(M){return this.programConfigurations[M]}upload(M){if(this.needsUpload){for(let D in this.programConfigurations)this.programConfigurations[D].upload(M);this.needsUpload=!1}}destroy(){for(let M in this.programConfigurations)this.programConfigurations[M].destroy()}}function rf(I,M){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[I]||[I.replace(`${M}-`,"").replace(/-/g,"_")]}function ds(I,M,D){let X={color:{source:Vr,composite:Zn},number:{source:Rr,composite:Vr}},ie=function(ve){return{"line-pattern":{source:Xu,composite:Xu},"fill-pattern":{source:Xu,composite:Xu},"fill-extrusion-pattern":{source:Xu,composite:Xu}}[ve]}(I);return ie&&ie[D]||X[M][D]}Si("ConstantBinder",El),Si("CrossFadedConstantBinder",Pl),Si("SourceExpressionBinder",pu),Si("CrossFadedCompositeBinder",fu),Si("CompositeExpressionBinder",Il),Si("ProgramConfiguration",Zu,{omit:["_buffers"]}),Si("ProgramConfigurationSet",Vu);let Wl=8192,Au=Math.pow(2,14)-1,Tu=-Au-1;function uf(I){let M=Wl/I.extent,D=I.loadGeometry();for(let X=0;Xwe.x+1||utwe.y+1)&&A("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return D}function df(I,M){return{type:I.type,id:I.id,properties:I.properties,geometry:M?uf(I):[]}}function Ef(I,M,D,X,ie){I.emplaceBack(2*M+(X+1)/2,2*D+(ie+1)/2)}class vf{constructor(M){this.zoom=M.zoom,this.overscaling=M.overscaling,this.layers=M.layers,this.layerIds=this.layers.map(D=>D.id),this.index=M.index,this.hasPattern=!1,this.layoutVertexArray=new tu,this.indexArray=new se,this.segments=new st,this.programConfigurations=new Vu(M.layers,M.zoom),this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(M,D,X){let ie=this.layers[0],ve=[],we=null,He=!1;ie.type==="circle"&&(we=ie.layout.get("circle-sort-key"),He=!we.isConstant());for(let{feature:ut,id:Mt,index:$t,sourceLayerIndex:vr}of M){let Sr=this.layers[0]._featureFilter.needGeometry,Dr=df(ut,Sr);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Dr,X))continue;let Jr=He?we.evaluate(Dr,{},X):void 0,li={id:Mt,properties:ut.properties,type:ut.type,sourceLayerIndex:vr,index:$t,geometry:Sr?Dr.geometry:uf(ut),patterns:{},sortKey:Jr};ve.push(li)}He&&ve.sort((ut,Mt)=>ut.sortKey-Mt.sortKey);for(let ut of ve){let{geometry:Mt,index:$t,sourceLayerIndex:vr}=ut,Sr=M[$t].feature;this.addFeature(ut,Mt,$t,X),D.featureIndex.insert(Sr,Mt,$t,vr,this.index)}}update(M,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(M,D,this.stateDependentLayers,X)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(M){this.uploaded||(this.layoutVertexBuffer=M.createVertexBuffer(this.layoutVertexArray,$e),this.indexBuffer=M.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(M),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(M,D,X,ie){for(let ve of D)for(let we of ve){let He=we.x,ut=we.y;if(He<0||He>=Wl||ut<0||ut>=Wl)continue;let Mt=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,M.sortKey),$t=Mt.vertexLength;Ef(this.layoutVertexArray,He,ut,-1,-1),Ef(this.layoutVertexArray,He,ut,1,-1),Ef(this.layoutVertexArray,He,ut,1,1),Ef(this.layoutVertexArray,He,ut,-1,1),this.indexArray.emplaceBack($t,$t+1,$t+2),this.indexArray.emplaceBack($t,$t+3,$t+2),Mt.vertexLength+=4,Mt.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,M,X,{},ie)}}function fc(I,M){for(let D=0;D1){if(Qr(I,M))return!0;for(let X=0;X1?D:D.sub(M)._mult(ie)._add(M))}function on(I,M){let D,X,ie,ve=!1;for(let we=0;weM.y!=ie.y>M.y&&M.x<(ie.x-X.x)*(M.y-X.y)/(ie.y-X.y)+X.x&&(ve=!ve)}return ve}function Bn(I,M){let D=!1;for(let X=0,ie=I.length-1;XM.y!=we.y>M.y&&M.x<(we.x-ve.x)*(M.y-ve.y)/(we.y-ve.y)+ve.x&&(D=!D)}return D}function Ln(I,M,D){let X=D[0],ie=D[2];if(I.xie.x&&M.x>ie.x||I.yie.y&&M.y>ie.y)return!1;let ve=B(I,M,D[0]);return ve!==B(I,M,D[1])||ve!==B(I,M,D[2])||ve!==B(I,M,D[3])}function wn(I,M,D){let X=M.paint.get(I).value;return X.kind==="constant"?X.value:D.programConfigurations.get(M.id).getMaxValue(I)}function Ls(I){return Math.sqrt(I[0]*I[0]+I[1]*I[1])}function ua(I,M,D,X,ie){if(!M[0]&&!M[1])return I;let ve=l.convert(M)._mult(ie);D==="viewport"&&ve._rotate(-X);let we=[];for(let He=0;HeUi(Hi,li))}(Mt,ut),Dr=vr?$t*He:$t;for(let Jr of ie)for(let li of Jr){let Hi=vr?li:Ui(li,ut),cn=Dr,Za=hs([],[li.x,li.y,0,1],ut);if(this.paint.get("circle-pitch-scale")==="viewport"&&this.paint.get("circle-pitch-alignment")==="map"?cn*=Za[3]/we.cameraToCenterDistance:this.paint.get("circle-pitch-scale")==="map"&&this.paint.get("circle-pitch-alignment")==="viewport"&&(cn*=we.cameraToCenterDistance/Za[3]),Be(Sr,Hi,cn))return!0}return!1}}function Ui(I,M){let D=hs([],[I.x,I.y,0,1],M);return new l(D[0]/D[3],D[1]/D[3])}class ro extends vf{}let na;Si("HeatmapBucket",ro,{omit:["layers"]});var On={get paint(){return na=na||new le({"heatmap-radius":new Os(ce.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Os(ce.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new ms(ce.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Ul(ce.paint_heatmap["heatmap-color"]),"heatmap-opacity":new ms(ce.paint_heatmap["heatmap-opacity"])})}};function In(I,{width:M,height:D},X,ie){if(ie){if(ie instanceof Uint8ClampedArray)ie=new Uint8Array(ie.buffer);else if(ie.length!==M*D*X)throw new RangeError(`mismatched image size. expected: ${ie.length} but got: ${M*D*X}`)}else ie=new Uint8Array(M*D*X);return I.width=M,I.height=D,I.data=ie,I}function Va(I,{width:M,height:D},X){if(M===I.width&&D===I.height)return;let ie=In({},{width:M,height:D},X);_s(I,ie,{x:0,y:0},{x:0,y:0},{width:Math.min(I.width,M),height:Math.min(I.height,D)},X),I.width=M,I.height=D,I.data=ie.data}function _s(I,M,D,X,ie,ve){if(ie.width===0||ie.height===0)return M;if(ie.width>I.width||ie.height>I.height||D.x>I.width-ie.width||D.y>I.height-ie.height)throw new RangeError("out of range source coordinates for image copy");if(ie.width>M.width||ie.height>M.height||X.x>M.width-ie.width||X.y>M.height-ie.height)throw new RangeError("out of range destination coordinates for image copy");let we=I.data,He=M.data;if(we===He)throw new Error("srcData equals dstData, so image is already copied");for(let ut=0;ut{M[I.evaluationKey]=ut;let Mt=I.expression.evaluate(M);ie.data[we+He+0]=Math.floor(255*Mt.r/Mt.a),ie.data[we+He+1]=Math.floor(255*Mt.g/Mt.a),ie.data[we+He+2]=Math.floor(255*Mt.b/Mt.a),ie.data[we+He+3]=Math.floor(255*Mt.a)};if(I.clips)for(let we=0,He=0;we80*D){He=1/0,ut=1/0;let $t=-1/0,vr=-1/0;for(let Sr=D;Sr$t&&($t=Dr),Jr>vr&&(vr=Jr)}Mt=Math.max($t-He,vr-ut),Mt=Mt!==0?32767/Mt:0}return Lf(ve,we,D,He,ut,Mt,0),we}function _f(I,M,D,X,ie){let ve;if(ie===function(we,He,ut,Mt){let $t=0;for(let vr=He,Sr=ut-Mt;vr0)for(let we=M;we=M;we-=X)ve=ur(we/X|0,I[we],I[we+1],ve);return ve&&ne(ve,ve.next)&&(Je(ve),ve=ve.next),ve}function bf(I,M){if(!I)return I;M||(M=I);let D,X=I;do if(D=!1,X.steiner||!ne(X,X.next)&&ge(X.prev,X,X.next)!==0)X=X.next;else{if(Je(X),X=M=X.prev,X===X.next)break;D=!0}while(D||X!==M);return M}function Lf(I,M,D,X,ie,ve,we){if(!I)return;!we&&ve&&function(ut,Mt,$t,vr){let Sr=ut;do Sr.z===0&&(Sr.z=R(Sr.x,Sr.y,Mt,$t,vr)),Sr.prevZ=Sr.prev,Sr.nextZ=Sr.next,Sr=Sr.next;while(Sr!==ut);Sr.prevZ.nextZ=null,Sr.prevZ=null,function(Dr){let Jr,li=1;do{let Hi,cn=Dr;Dr=null;let Za=null;for(Jr=0;cn;){Jr++;let Rn=cn,La=0;for(let kl=0;kl0||So>0&&Rn;)La!==0&&(So===0||!Rn||cn.z<=Rn.z)?(Hi=cn,cn=cn.nextZ,La--):(Hi=Rn,Rn=Rn.nextZ,So--),Za?Za.nextZ=Hi:Dr=Hi,Hi.prevZ=Za,Za=Hi;cn=Rn}Za.nextZ=null,li*=2}while(Jr>1)}(Sr)}(I,X,ie,ve);let He=I;for(;I.prev!==I.next;){let ut=I.prev,Mt=I.next;if(ve?hf(I,X,ie,ve):Gu(I))M.push(ut.i,I.i,Mt.i),Je(I),I=Mt.next,He=Mt.next;else if((I=Mt)===He){we?we===1?Lf(I=yf(bf(I),M),M,D,X,ie,ve,2):we===2&&Fl(I,M,D,X,ie,ve):Lf(bf(I),M,D,X,ie,ve,1);break}}}function Gu(I){let M=I.prev,D=I,X=I.next;if(ge(M,D,X)>=0)return!1;let ie=M.x,ve=D.x,we=X.x,He=M.y,ut=D.y,Mt=X.y,$t=ieve?ie>we?ie:we:ve>we?ve:we,Dr=He>ut?He>Mt?He:Mt:ut>Mt?ut:Mt,Jr=X.next;for(;Jr!==M;){if(Jr.x>=$t&&Jr.x<=Sr&&Jr.y>=vr&&Jr.y<=Dr&&O(ie,He,ve,ut,we,Mt,Jr.x,Jr.y)&&ge(Jr.prev,Jr,Jr.next)>=0)return!1;Jr=Jr.next}return!0}function hf(I,M,D,X){let ie=I.prev,ve=I,we=I.next;if(ge(ie,ve,we)>=0)return!1;let He=ie.x,ut=ve.x,Mt=we.x,$t=ie.y,vr=ve.y,Sr=we.y,Dr=Heut?He>Mt?He:Mt:ut>Mt?ut:Mt,Hi=$t>vr?$t>Sr?$t:Sr:vr>Sr?vr:Sr,cn=R(Dr,Jr,M,D,X),Za=R(li,Hi,M,D,X),Rn=I.prevZ,La=I.nextZ;for(;Rn&&Rn.z>=cn&&La&&La.z<=Za;){if(Rn.x>=Dr&&Rn.x<=li&&Rn.y>=Jr&&Rn.y<=Hi&&Rn!==ie&&Rn!==we&&O(He,$t,ut,vr,Mt,Sr,Rn.x,Rn.y)&&ge(Rn.prev,Rn,Rn.next)>=0||(Rn=Rn.prevZ,La.x>=Dr&&La.x<=li&&La.y>=Jr&&La.y<=Hi&&La!==ie&&La!==we&&O(He,$t,ut,vr,Mt,Sr,La.x,La.y)&&ge(La.prev,La,La.next)>=0))return!1;La=La.nextZ}for(;Rn&&Rn.z>=cn;){if(Rn.x>=Dr&&Rn.x<=li&&Rn.y>=Jr&&Rn.y<=Hi&&Rn!==ie&&Rn!==we&&O(He,$t,ut,vr,Mt,Sr,Rn.x,Rn.y)&&ge(Rn.prev,Rn,Rn.next)>=0)return!1;Rn=Rn.prevZ}for(;La&&La.z<=Za;){if(La.x>=Dr&&La.x<=li&&La.y>=Jr&&La.y<=Hi&&La!==ie&&La!==we&&O(He,$t,ut,vr,Mt,Sr,La.x,La.y)&&ge(La.prev,La,La.next)>=0)return!1;La=La.nextZ}return!0}function yf(I,M){let D=I;do{let X=D.prev,ie=D.next.next;!ne(X,ie)&&Le(X,D,D.next,ie)&&dr(X,ie)&&dr(ie,X)&&(M.push(X.i,D.i,ie.i),Je(D),Je(D.next),D=I=ie),D=D.next}while(D!==I);return bf(D)}function Fl(I,M,D,X,ie,ve){let we=I;do{let He=we.next.next;for(;He!==we.prev;){if(we.i!==He.i&&K(we,He)){let ut=Mr(we,He);return we=bf(we,we.next),ut=bf(ut,ut.next),Lf(we,M,D,X,ie,ve,0),void Lf(ut,M,D,X,ie,ve,0)}He=He.next}we=we.next}while(we!==I)}function wf(I,M){return I.x-M.x}function cu(I,M){let D=function(ie,ve){let we=ve,He=ie.x,ut=ie.y,Mt,$t=-1/0;do{if(ut<=we.y&&ut>=we.next.y&&we.next.y!==we.y){let li=we.x+(ut-we.y)*(we.next.x-we.x)/(we.next.y-we.y);if(li<=He&&li>$t&&($t=li,Mt=we.x=we.x&&we.x>=Sr&&He!==we.x&&O(utMt.x||we.x===Mt.x&&Y(Mt,we)))&&(Mt=we,Jr=li)}we=we.next}while(we!==vr);return Mt}(I,M);if(!D)return M;let X=Mr(D,I);return bf(X,X.next),bf(D,D.next)}function Y(I,M){return ge(I.prev,I,M.prev)<0&&ge(M.next,I,I.next)<0}function R(I,M,D,X,ie){return(I=1431655765&((I=858993459&((I=252645135&((I=16711935&((I=(I-D)*ie|0)|I<<8))|I<<4))|I<<2))|I<<1))|(M=1431655765&((M=858993459&((M=252645135&((M=16711935&((M=(M-X)*ie|0)|M<<8))|M<<4))|M<<2))|M<<1))<<1}function J(I){let M=I,D=I;do(M.x=(I-we)*(ve-He)&&(I-we)*(X-He)>=(D-we)*(M-He)&&(D-we)*(ve-He)>=(ie-we)*(X-He)}function K(I,M){return I.next.i!==M.i&&I.prev.i!==M.i&&!function(D,X){let ie=D;do{if(ie.i!==D.i&&ie.next.i!==D.i&&ie.i!==X.i&&ie.next.i!==X.i&&Le(ie,ie.next,D,X))return!0;ie=ie.next}while(ie!==D);return!1}(I,M)&&(dr(I,M)&&dr(M,I)&&function(D,X){let ie=D,ve=!1,we=(D.x+X.x)/2,He=(D.y+X.y)/2;do ie.y>He!=ie.next.y>He&&ie.next.y!==ie.y&&we<(ie.next.x-ie.x)*(He-ie.y)/(ie.next.y-ie.y)+ie.x&&(ve=!ve),ie=ie.next;while(ie!==D);return ve}(I,M)&&(ge(I.prev,I,M.prev)||ge(I,M.prev,M))||ne(I,M)&&ge(I.prev,I,I.next)>0&&ge(M.prev,M,M.next)>0)}function ge(I,M,D){return(M.y-I.y)*(D.x-M.x)-(M.x-I.x)*(D.y-M.y)}function ne(I,M){return I.x===M.x&&I.y===M.y}function Le(I,M,D,X){let ie=Ct(ge(I,M,D)),ve=Ct(ge(I,M,X)),we=Ct(ge(D,X,I)),He=Ct(ge(D,X,M));return ie!==ve&&we!==He||!(ie!==0||!Ze(I,D,M))||!(ve!==0||!Ze(I,X,M))||!(we!==0||!Ze(D,I,X))||!(He!==0||!Ze(D,M,X))}function Ze(I,M,D){return M.x<=Math.max(I.x,D.x)&&M.x>=Math.min(I.x,D.x)&&M.y<=Math.max(I.y,D.y)&&M.y>=Math.min(I.y,D.y)}function Ct(I){return I>0?1:I<0?-1:0}function dr(I,M){return ge(I.prev,I,I.next)<0?ge(I,M,I.next)>=0&&ge(I,I.prev,M)>=0:ge(I,M,I.prev)<0||ge(I,I.next,M)<0}function Mr(I,M){let D=ht(I.i,I.x,I.y),X=ht(M.i,M.x,M.y),ie=I.next,ve=M.prev;return I.next=M,M.prev=I,D.next=ie,ie.prev=D,X.next=D,D.prev=X,ve.next=X,X.prev=ve,X}function ur(I,M,D,X){let ie=ht(I,M,D);return X?(ie.next=X.next,ie.prev=X,X.next.prev=ie,X.next=ie):(ie.prev=ie,ie.next=ie),ie}function Je(I){I.next.prev=I.prev,I.prev.next=I.next,I.prevZ&&(I.prevZ.nextZ=I.nextZ),I.nextZ&&(I.nextZ.prevZ=I.prevZ)}function ht(I,M,D){return{i:I,x:M,y:D,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function wt(I,M,D){let X=D.patternDependencies,ie=!1;for(let ve of M){let we=ve.paint.get(`${I}-pattern`);we.isConstant()||(ie=!0);let He=we.constantOr(null);He&&(ie=!0,X[He.to]=!0,X[He.from]=!0)}return ie}function Kt(I,M,D,X,ie){let ve=ie.patternDependencies;for(let we of M){let He=we.paint.get(`${I}-pattern`).value;if(He.kind!=="constant"){let ut=He.evaluate({zoom:X-1},D,{},ie.availableImages),Mt=He.evaluate({zoom:X},D,{},ie.availableImages),$t=He.evaluate({zoom:X+1},D,{},ie.availableImages);ut=ut&&ut.name?ut.name:ut,Mt=Mt&&Mt.name?Mt.name:Mt,$t=$t&&$t.name?$t.name:$t,ve[ut]=!0,ve[Mt]=!0,ve[$t]=!0,D.patterns[we.id]={min:ut,mid:Mt,max:$t}}}return D}class sr{constructor(M){this.zoom=M.zoom,this.overscaling=M.overscaling,this.layers=M.layers,this.layerIds=this.layers.map(D=>D.id),this.index=M.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Wu,this.indexArray=new se,this.indexArray2=new ze,this.programConfigurations=new Vu(M.layers,M.zoom),this.segments=new st,this.segments2=new st,this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(M,D,X){this.hasPattern=wt("fill",this.layers,D);let ie=this.layers[0].layout.get("fill-sort-key"),ve=!ie.isConstant(),we=[];for(let{feature:He,id:ut,index:Mt,sourceLayerIndex:$t}of M){let vr=this.layers[0]._featureFilter.needGeometry,Sr=df(He,vr);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Sr,X))continue;let Dr=ve?ie.evaluate(Sr,{},X,D.availableImages):void 0,Jr={id:ut,properties:He.properties,type:He.type,sourceLayerIndex:$t,index:Mt,geometry:vr?Sr.geometry:uf(He),patterns:{},sortKey:Dr};we.push(Jr)}ve&&we.sort((He,ut)=>He.sortKey-ut.sortKey);for(let He of we){let{geometry:ut,index:Mt,sourceLayerIndex:$t}=He;if(this.hasPattern){let vr=Kt("fill",this.layers,He,this.zoom,D);this.patternFeatures.push(vr)}else this.addFeature(He,ut,Mt,X,{});D.featureIndex.insert(M[Mt].feature,ut,Mt,$t,this.index)}}update(M,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(M,D,this.stateDependentLayers,X)}addFeatures(M,D,X){for(let ie of this.patternFeatures)this.addFeature(ie,ie.geometry,ie.index,D,X)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(M){this.uploaded||(this.layoutVertexBuffer=M.createVertexBuffer(this.layoutVertexArray,kf),this.indexBuffer=M.createIndexBuffer(this.indexArray),this.indexBuffer2=M.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(M),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(M,D,X,ie,ve){for(let we of Ys(D,500)){let He=0;for(let Dr of we)He+=Dr.length;let ut=this.segments.prepareSegment(He,this.layoutVertexArray,this.indexArray),Mt=ut.vertexLength,$t=[],vr=[];for(let Dr of we){if(Dr.length===0)continue;Dr!==we[0]&&vr.push($t.length/2);let Jr=this.segments2.prepareSegment(Dr.length,this.layoutVertexArray,this.indexArray2),li=Jr.vertexLength;this.layoutVertexArray.emplaceBack(Dr[0].x,Dr[0].y),this.indexArray2.emplaceBack(li+Dr.length-1,li),$t.push(Dr[0].x),$t.push(Dr[0].y);for(let Hi=1;Hi>3}if(ie--,X===1||X===2)ve+=I.readSVarint(),we+=I.readSVarint(),X===1&&(M&&He.push(M),M=[]),M.push(new ci(ve,we));else{if(X!==7)throw new Error("unknown command "+X);M&&M.push(M[0].clone())}}return M&&He.push(M),He},Ki.prototype.bbox=function(){var I=this._pbf;I.pos=this._geometry;for(var M=I.readVarint()+I.pos,D=1,X=0,ie=0,ve=0,we=1/0,He=-1/0,ut=1/0,Mt=-1/0;I.pos>3}if(X--,D===1||D===2)(ie+=I.readSVarint())He&&(He=ie),(ve+=I.readSVarint())Mt&&(Mt=ve);else if(D!==7)throw new Error("unknown command "+D)}return[we,ut,He,Mt]},Ki.prototype.toGeoJSON=function(I,M,D){var X,ie,ve=this.extent*Math.pow(2,D),we=this.extent*I,He=this.extent*M,ut=this.loadGeometry(),Mt=Ki.types[this.type];function $t(Dr){for(var Jr=0;Jr>3;ie=we===1?X.readString():we===2?X.readFloat():we===3?X.readDouble():we===4?X.readVarint64():we===5?X.readVarint():we===6?X.readSVarint():we===7?X.readBoolean():null}return ie}(D))}Pn.prototype.feature=function(I){if(I<0||I>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[I];var M=this._pbf.readVarint()+this._pbf.pos;return new ca(this._pbf,M,this.extent,this._keys,this._values)};var xa=An;function Zo(I,M,D){if(I===3){var X=new xa(D,D.readVarint()+D.pos);X.length&&(M[X.name]=X)}}qr.VectorTile=function(I,M){this.layers=I.readFields(Zo,{},M)},qr.VectorTileFeature=Cn,qr.VectorTileLayer=An;let ru=qr.VectorTileFeature.types,yu=Math.pow(2,13);function Du(I,M,D,X,ie,ve,we,He){I.emplaceBack(M,D,2*Math.floor(X*yu)+we,ie*yu*2,ve*yu*2,Math.round(He))}class vu{constructor(M){this.zoom=M.zoom,this.overscaling=M.overscaling,this.layers=M.layers,this.layerIds=this.layers.map(D=>D.id),this.index=M.index,this.hasPattern=!1,this.layoutVertexArray=new Qu,this.centroidVertexArray=new iu,this.indexArray=new se,this.programConfigurations=new Vu(M.layers,M.zoom),this.segments=new st,this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(M,D,X){this.features=[],this.hasPattern=wt("fill-extrusion",this.layers,D);for(let{feature:ie,id:ve,index:we,sourceLayerIndex:He}of M){let ut=this.layers[0]._featureFilter.needGeometry,Mt=df(ie,ut);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Mt,X))continue;let $t={id:ve,sourceLayerIndex:He,index:we,geometry:ut?Mt.geometry:uf(ie),properties:ie.properties,type:ie.type,patterns:{}};this.hasPattern?this.features.push(Kt("fill-extrusion",this.layers,$t,this.zoom,D)):this.addFeature($t,$t.geometry,we,X,{}),D.featureIndex.insert(ie,$t.geometry,we,He,this.index,!0)}}addFeatures(M,D,X){for(let ie of this.features){let{geometry:ve}=ie;this.addFeature(ie,ve,ie.index,D,X)}}update(M,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(M,D,this.stateDependentLayers,X)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(M){this.uploaded||(this.layoutVertexBuffer=M.createVertexBuffer(this.layoutVertexArray,Tr),this.centroidVertexBuffer=M.createVertexBuffer(this.centroidVertexArray,Lt.members,!0),this.indexBuffer=M.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(M),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(M,D,X,ie,ve){for(let we of Ys(D,500)){let He={x:0,y:0,vertexCount:0},ut=0;for(let Jr of we)ut+=Jr.length;let Mt=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(let Jr of we){if(Jr.length===0||Ju(Jr))continue;let li=0;for(let Hi=0;Hi=1){let Za=Jr[Hi-1];if(!zu(cn,Za)){Mt.vertexLength+4>st.MAX_VERTEX_ARRAY_LENGTH&&(Mt=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let Rn=cn.sub(Za)._perp()._unit(),La=Za.dist(cn);li+La>32768&&(li=0),Du(this.layoutVertexArray,cn.x,cn.y,Rn.x,Rn.y,0,0,li),Du(this.layoutVertexArray,cn.x,cn.y,Rn.x,Rn.y,0,1,li),He.x+=2*cn.x,He.y+=2*cn.y,He.vertexCount+=2,li+=La,Du(this.layoutVertexArray,Za.x,Za.y,Rn.x,Rn.y,0,0,li),Du(this.layoutVertexArray,Za.x,Za.y,Rn.x,Rn.y,0,1,li),He.x+=2*Za.x,He.y+=2*Za.y,He.vertexCount+=2;let So=Mt.vertexLength;this.indexArray.emplaceBack(So,So+2,So+1),this.indexArray.emplaceBack(So+1,So+2,So+3),Mt.vertexLength+=4,Mt.primitiveLength+=2}}}}if(Mt.vertexLength+ut>st.MAX_VERTEX_ARRAY_LENGTH&&(Mt=this.segments.prepareSegment(ut,this.layoutVertexArray,this.indexArray)),ru[M.type]!=="Polygon")continue;let $t=[],vr=[],Sr=Mt.vertexLength;for(let Jr of we)if(Jr.length!==0){Jr!==we[0]&&vr.push($t.length/2);for(let li=0;liWl)||I.y===M.y&&(I.y<0||I.y>Wl)}function Ju(I){return I.every(M=>M.x<0)||I.every(M=>M.x>Wl)||I.every(M=>M.y<0)||I.every(M=>M.y>Wl)}let Uf;Si("FillExtrusionBucket",vu,{omit:["layers","features"]});var wd={get paint(){return Uf=Uf||new le({"fill-extrusion-opacity":new ms(ce["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Os(ce["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new ms(ce["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new ms(ce["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Xl(ce["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Os(ce["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Os(ce["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new ms(ce["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class Ad extends q{constructor(M){super(M,wd)}createBucket(M){return new vu(M)}queryRadius(){return Ls(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(M,D,X,ie,ve,we,He,ut){let Mt=ua(M,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),we.angle,He),$t=this.paint.get("fill-extrusion-height").evaluate(D,X),vr=this.paint.get("fill-extrusion-base").evaluate(D,X),Sr=function(Jr,li,Hi,cn){let Za=[];for(let Rn of Jr){let La=[Rn.x,Rn.y,0,1];hs(La,La,li),Za.push(new l(La[0]/La[3],La[1]/La[3]))}return Za}(Mt,ut),Dr=function(Jr,li,Hi,cn){let Za=[],Rn=[],La=cn[8]*li,So=cn[9]*li,kl=cn[10]*li,mu=cn[11]*li,Iu=cn[8]*Hi,su=cn[9]*Hi,yl=cn[10]*Hi,Eu=cn[11]*Hi;for(let bu of Jr){let _u=[],Xs=[];for(let Lu of bu){let xu=Lu.x,Ou=Lu.y,vc=cn[0]*xu+cn[4]*Ou+cn[12],cc=cn[1]*xu+cn[5]*Ou+cn[13],Ch=cn[2]*xu+cn[6]*Ou+cn[14],$p=cn[3]*xu+cn[7]*Ou+cn[15],ud=Ch+kl,Lh=$p+mu,Wd=vc+Iu,jd=cc+su,Xd=Ch+yl,Kc=$p+Eu,Ph=new l((vc+La)/Lh,(cc+So)/Lh);Ph.z=ud/Lh,_u.push(Ph);let Cd=new l(Wd/Kc,jd/Kc);Cd.z=Xd/Kc,Xs.push(Cd)}Za.push(_u),Rn.push(Xs)}return[Za,Rn]}(ie,vr,$t,ut);return function(Jr,li,Hi){let cn=1/0;qt(Hi,li)&&(cn=Yp(Hi,li[0]));for(let Za=0;ZaD.id),this.index=M.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(D=>{this.gradients[D.id]={}}),this.layoutVertexArray=new Ku,this.layoutVertexArray2=new ju,this.indexArray=new se,this.programConfigurations=new Vu(M.layers,M.zoom),this.segments=new st,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(M,D,X){this.hasPattern=wt("line",this.layers,D);let ie=this.layers[0].layout.get("line-sort-key"),ve=!ie.isConstant(),we=[];for(let{feature:He,id:ut,index:Mt,sourceLayerIndex:$t}of M){let vr=this.layers[0]._featureFilter.needGeometry,Sr=df(He,vr);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Sr,X))continue;let Dr=ve?ie.evaluate(Sr,{},X):void 0,Jr={id:ut,properties:He.properties,type:He.type,sourceLayerIndex:$t,index:Mt,geometry:vr?Sr.geometry:uf(He),patterns:{},sortKey:Dr};we.push(Jr)}ve&&we.sort((He,ut)=>He.sortKey-ut.sortKey);for(let He of we){let{geometry:ut,index:Mt,sourceLayerIndex:$t}=He;if(this.hasPattern){let vr=Kt("line",this.layers,He,this.zoom,D);this.patternFeatures.push(vr)}else this.addFeature(He,ut,Mt,X,{});D.featureIndex.insert(M[Mt].feature,ut,Mt,$t,this.index)}}update(M,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(M,D,this.stateDependentLayers,X)}addFeatures(M,D,X){for(let ie of this.patternFeatures)this.addFeature(ie,ie.geometry,ie.index,D,X)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(M){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=M.createVertexBuffer(this.layoutVertexArray2,pv)),this.layoutVertexBuffer=M.createVertexBuffer(this.layoutVertexArray,dv),this.indexBuffer=M.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(M),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(M){if(M.properties&&Object.prototype.hasOwnProperty.call(M.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(M.properties,"mapbox_clip_end"))return{start:+M.properties.mapbox_clip_start,end:+M.properties.mapbox_clip_end}}addFeature(M,D,X,ie,ve){let we=this.layers[0].layout,He=we.get("line-join").evaluate(M,{}),ut=we.get("line-cap"),Mt=we.get("line-miter-limit"),$t=we.get("line-round-limit");this.lineClips=this.lineFeatureClips(M);for(let vr of D)this.addLine(vr,M,He,ut,Mt,$t);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,M,X,ve,ie)}addLine(M,D,X,ie,ve,we){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let cn=0;cn=2&&M[ut-1].equals(M[ut-2]);)ut--;let Mt=0;for(;Mt0;if(mu&&cn>Mt){let Eu=Sr.dist(Dr);if(Eu>2*$t){let bu=Sr.sub(Sr.sub(Dr)._mult($t/Eu)._round());this.updateDistance(Dr,bu),this.addCurrentVertex(bu,li,0,0,vr),Dr=bu}}let su=Dr&&Jr,yl=su?X:He?"butt":ie;if(su&&yl==="round"&&(Sove&&(yl="bevel"),yl==="bevel"&&(So>2&&(yl="flipbevel"),So100)Za=Hi.mult(-1);else{let Eu=So*li.add(Hi).mag()/li.sub(Hi).mag();Za._perp()._mult(Eu*(Iu?-1:1))}this.addCurrentVertex(Sr,Za,0,0,vr),this.addCurrentVertex(Sr,Za.mult(-1),0,0,vr)}else if(yl==="bevel"||yl==="fakeround"){let Eu=-Math.sqrt(So*So-1),bu=Iu?Eu:0,_u=Iu?0:Eu;if(Dr&&this.addCurrentVertex(Sr,li,bu,_u,vr),yl==="fakeround"){let Xs=Math.round(180*kl/Math.PI/20);for(let Lu=1;Lu2*$t){let bu=Sr.add(Jr.sub(Sr)._mult($t/Eu)._round());this.updateDistance(Sr,bu),this.addCurrentVertex(bu,Hi,0,0,vr),Sr=bu}}}}addCurrentVertex(M,D,X,ie,ve,we=!1){let He=D.y*ie-D.x,ut=-D.y-D.x*ie;this.addHalfVertex(M,D.x+D.y*X,D.y-D.x*X,we,!1,X,ve),this.addHalfVertex(M,He,ut,we,!0,-ie,ve),this.distance>kp/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(M,D,X,ie,ve,we))}addHalfVertex({x:M,y:D},X,ie,ve,we,He,ut){let Mt=.5*(this.lineClips?this.scaledDistance*(kp-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((M<<1)+(ve?1:0),(D<<1)+(we?1:0),Math.round(63*X)+128,Math.round(63*ie)+128,1+(He===0?0:He<0?-1:1)|(63&Mt)<<2,Mt>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);let $t=ut.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,$t),ut.primitiveLength++),we?this.e2=$t:this.e1=$t}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(M,D){this.distance+=M.dist(D),this.updateScaledDistance()}}let Cp,ng;Si("LineBucket",Kp,{omit:["layers","patternFeatures"]});var cm={get paint(){return ng=ng||new le({"line-opacity":new Os(ce.paint_line["line-opacity"]),"line-color":new Os(ce.paint_line["line-color"]),"line-translate":new ms(ce.paint_line["line-translate"]),"line-translate-anchor":new ms(ce.paint_line["line-translate-anchor"]),"line-width":new Os(ce.paint_line["line-width"]),"line-gap-width":new Os(ce.paint_line["line-gap-width"]),"line-offset":new Os(ce.paint_line["line-offset"]),"line-blur":new Os(ce.paint_line["line-blur"]),"line-dasharray":new Gl(ce.paint_line["line-dasharray"]),"line-pattern":new Xl(ce.paint_line["line-pattern"]),"line-gradient":new Ul(ce.paint_line["line-gradient"])})},get layout(){return Cp=Cp||new le({"line-cap":new ms(ce.layout_line["line-cap"]),"line-join":new Os(ce.layout_line["line-join"]),"line-miter-limit":new ms(ce.layout_line["line-miter-limit"]),"line-round-limit":new ms(ce.layout_line["line-round-limit"]),"line-sort-key":new Os(ce.layout_line["line-sort-key"])})}};class vh extends Os{possiblyEvaluate(M,D){return D=new cs(Math.floor(D.zoom),{now:D.now,fadeDuration:D.fadeDuration,zoomHistory:D.zoomHistory,transition:D.transition}),super.possiblyEvaluate(M,D)}evaluate(M,D,X,ie){return D=L({},D,{zoom:Math.floor(D.zoom)}),super.evaluate(M,D,X,ie)}}let hm;class ag extends q{constructor(M){super(M,cm),this.gradientVersion=0,hm||(hm=new vh(cm.paint.properties["line-width"].specification),hm.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(M){if(M==="line-gradient"){let D=this.gradientExpression();this.stepInterpolant=!!function(X){return X._styleExpression!==void 0}(D)&&D._styleExpression.expression instanceof Zi,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(M,D){super.recalculate(M,D),this.paint._values["line-floorwidth"]=hm.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,M)}createBucket(M){return new Kp(M)}queryRadius(M){let D=M,X=jh(wn("line-width",this,D),wn("line-gap-width",this,D)),ie=wn("line-offset",this,D);return X/2+Math.abs(ie)+Ls(this.paint.get("line-translate"))}queryIntersectsFeature(M,D,X,ie,ve,we,He){let ut=ua(M,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),we.angle,He),Mt=He/2*jh(this.paint.get("line-width").evaluate(D,X),this.paint.get("line-gap-width").evaluate(D,X)),$t=this.paint.get("line-offset").evaluate(D,X);return $t&&(ie=function(vr,Sr){let Dr=[];for(let Jr=0;Jr=3){for(let Hi=0;Hi0?M+2*I:I}let ry=Ve([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),w1=Ve([{name:"a_projected_pos",components:3,type:"Float32"}],4);Ve([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);let A1=Ve([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);Ve([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);let og=Ve([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),iy=Ve([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function ny(I,M,D){return I.sections.forEach(X=>{X.text=function(ie,ve,we){let He=ve.layout.get("text-transform").evaluate(we,{});return He==="uppercase"?ie=ie.toLocaleUpperCase():He==="lowercase"&&(ie=ie.toLocaleLowerCase()),Js.applyArabicShaping&&(ie=Js.applyArabicShaping(ie)),ie}(X.text,M,D)}),I}Ve([{name:"triangle",components:3,type:"Uint16"}]),Ve([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Ve([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"}]),Ve([{type:"Float32",name:"offsetX"}]),Ve([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),Ve([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);let wc={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};var Wf=24,Ed=ic,sg=function(I,M,D,X,ie){var ve,we,He=8*ie-X-1,ut=(1<>1,$t=-7,vr=D?ie-1:0,Sr=D?-1:1,Dr=I[M+vr];for(vr+=Sr,ve=Dr&(1<<-$t)-1,Dr>>=-$t,$t+=He;$t>0;ve=256*ve+I[M+vr],vr+=Sr,$t-=8);for(we=ve&(1<<-$t)-1,ve>>=-$t,$t+=X;$t>0;we=256*we+I[M+vr],vr+=Sr,$t-=8);if(ve===0)ve=1-Mt;else{if(ve===ut)return we?NaN:1/0*(Dr?-1:1);we+=Math.pow(2,X),ve-=Mt}return(Dr?-1:1)*we*Math.pow(2,ve-X)},T1=function(I,M,D,X,ie,ve){var we,He,ut,Mt=8*ve-ie-1,$t=(1<>1,Sr=ie===23?Math.pow(2,-24)-Math.pow(2,-77):0,Dr=X?0:ve-1,Jr=X?1:-1,li=M<0||M===0&&1/M<0?1:0;for(M=Math.abs(M),isNaN(M)||M===1/0?(He=isNaN(M)?1:0,we=$t):(we=Math.floor(Math.log(M)/Math.LN2),M*(ut=Math.pow(2,-we))<1&&(we--,ut*=2),(M+=we+vr>=1?Sr/ut:Sr*Math.pow(2,1-vr))*ut>=2&&(we++,ut/=2),we+vr>=$t?(He=0,we=$t):we+vr>=1?(He=(M*ut-1)*Math.pow(2,ie),we+=vr):(He=M*Math.pow(2,vr-1)*Math.pow(2,ie),we=0));ie>=8;I[D+Dr]=255&He,Dr+=Jr,He/=256,ie-=8);for(we=we<0;I[D+Dr]=255&we,Dr+=Jr,we/=256,Mt-=8);I[D+Dr-Jr]|=128*li};function ic(I){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(I)?I:new Uint8Array(I||0),this.pos=0,this.type=0,this.length=this.buf.length}ic.Varint=0,ic.Fixed64=1,ic.Bytes=2,ic.Fixed32=5;var Nx=4294967296,ay=1/Nx,Mw=typeof TextDecoder=="undefined"?null:new TextDecoder("utf-8");function Lp(I){return I.type===ic.Bytes?I.readVarint()+I.pos:I.pos+1}function oy(I,M,D){return D?4294967296*M+(I>>>0):4294967296*(M>>>0)+(I>>>0)}function Ew(I,M,D){var X=M<=16383?1:M<=2097151?2:M<=268435455?3:Math.floor(Math.log(M)/(7*Math.LN2));D.realloc(X);for(var ie=D.pos-1;ie>=I;ie--)D.buf[ie+X]=D.buf[ie]}function Ux(I,M){for(var D=0;D>>8,I[D+2]=M>>>16,I[D+3]=M>>>24}function hC(I,M){return(I[M]|I[M+1]<<8|I[M+2]<<16)+(I[M+3]<<24)}ic.prototype={destroy:function(){this.buf=null},readFields:function(I,M,D){for(D=D||this.length;this.pos>3,ve=this.pos;this.type=7&X,I(ie,M,this),this.pos===ve&&this.skip(X)}return M},readMessage:function(I,M){return this.readFields(I,M,this.readVarint()+this.pos)},readFixed32:function(){var I=lg(this.buf,this.pos);return this.pos+=4,I},readSFixed32:function(){var I=hC(this.buf,this.pos);return this.pos+=4,I},readFixed64:function(){var I=lg(this.buf,this.pos)+lg(this.buf,this.pos+4)*Nx;return this.pos+=8,I},readSFixed64:function(){var I=lg(this.buf,this.pos)+hC(this.buf,this.pos+4)*Nx;return this.pos+=8,I},readFloat:function(){var I=sg(this.buf,this.pos,!0,23,4);return this.pos+=4,I},readDouble:function(){var I=sg(this.buf,this.pos,!0,52,8);return this.pos+=8,I},readVarint:function(I){var M,D,X=this.buf;return M=127&(D=X[this.pos++]),D<128?M:(M|=(127&(D=X[this.pos++]))<<7,D<128?M:(M|=(127&(D=X[this.pos++]))<<14,D<128?M:(M|=(127&(D=X[this.pos++]))<<21,D<128?M:function(ie,ve,we){var He,ut,Mt=we.buf;if(He=(112&(ut=Mt[we.pos++]))>>4,ut<128||(He|=(127&(ut=Mt[we.pos++]))<<3,ut<128)||(He|=(127&(ut=Mt[we.pos++]))<<10,ut<128)||(He|=(127&(ut=Mt[we.pos++]))<<17,ut<128)||(He|=(127&(ut=Mt[we.pos++]))<<24,ut<128)||(He|=(1&(ut=Mt[we.pos++]))<<31,ut<128))return oy(ie,He,ve);throw new Error("Expected varint not more than 10 bytes")}(M|=(15&(D=X[this.pos]))<<28,I,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var I=this.readVarint();return I%2==1?(I+1)/-2:I/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var I=this.readVarint()+this.pos,M=this.pos;return this.pos=I,I-M>=12&&Mw?function(D,X,ie){return Mw.decode(D.subarray(X,ie))}(this.buf,M,I):function(D,X,ie){for(var ve="",we=X;we239?4:$t>223?3:$t>191?2:1;if(we+Sr>ie)break;Sr===1?$t<128&&(vr=$t):Sr===2?(192&(He=D[we+1]))==128&&(vr=(31&$t)<<6|63&He)<=127&&(vr=null):Sr===3?(ut=D[we+2],(192&(He=D[we+1]))==128&&(192&ut)==128&&((vr=(15&$t)<<12|(63&He)<<6|63&ut)<=2047||vr>=55296&&vr<=57343)&&(vr=null)):Sr===4&&(ut=D[we+2],Mt=D[we+3],(192&(He=D[we+1]))==128&&(192&ut)==128&&(192&Mt)==128&&((vr=(15&$t)<<18|(63&He)<<12|(63&ut)<<6|63&Mt)<=65535||vr>=1114112)&&(vr=null)),vr===null?(vr=65533,Sr=1):vr>65535&&(vr-=65536,ve+=String.fromCharCode(vr>>>10&1023|55296),vr=56320|1023&vr),ve+=String.fromCharCode(vr),we+=Sr}return ve}(this.buf,M,I)},readBytes:function(){var I=this.readVarint()+this.pos,M=this.buf.subarray(this.pos,I);return this.pos=I,M},readPackedVarint:function(I,M){if(this.type!==ic.Bytes)return I.push(this.readVarint(M));var D=Lp(this);for(I=I||[];this.pos127;);else if(M===ic.Bytes)this.pos=this.readVarint()+this.pos;else if(M===ic.Fixed32)this.pos+=4;else{if(M!==ic.Fixed64)throw new Error("Unimplemented type: "+M);this.pos+=8}},writeTag:function(I,M){this.writeVarint(I<<3|M)},realloc:function(I){for(var M=this.length||16;M268435455||I<0?function(M,D){var X,ie;if(M>=0?(X=M%4294967296|0,ie=M/4294967296|0):(ie=~(-M/4294967296),4294967295^(X=~(-M%4294967296))?X=X+1|0:(X=0,ie=ie+1|0)),M>=18446744073709552e3||M<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");D.realloc(10),function(ve,we,He){He.buf[He.pos++]=127&ve|128,ve>>>=7,He.buf[He.pos++]=127&ve|128,ve>>>=7,He.buf[He.pos++]=127&ve|128,ve>>>=7,He.buf[He.pos++]=127&ve|128,He.buf[He.pos]=127&(ve>>>=7)}(X,0,D),function(ve,we){var He=(7&ve)<<4;we.buf[we.pos++]|=He|((ve>>>=3)?128:0),ve&&(we.buf[we.pos++]=127&ve|((ve>>>=7)?128:0),ve&&(we.buf[we.pos++]=127&ve|((ve>>>=7)?128:0),ve&&(we.buf[we.pos++]=127&ve|((ve>>>=7)?128:0),ve&&(we.buf[we.pos++]=127&ve|((ve>>>=7)?128:0),ve&&(we.buf[we.pos++]=127&ve)))))}(ie,D)}(I,this):(this.realloc(4),this.buf[this.pos++]=127&I|(I>127?128:0),I<=127||(this.buf[this.pos++]=127&(I>>>=7)|(I>127?128:0),I<=127||(this.buf[this.pos++]=127&(I>>>=7)|(I>127?128:0),I<=127||(this.buf[this.pos++]=I>>>7&127))))},writeSVarint:function(I){this.writeVarint(I<0?2*-I-1:2*I)},writeBoolean:function(I){this.writeVarint(!!I)},writeString:function(I){I=String(I),this.realloc(4*I.length),this.pos++;var M=this.pos;this.pos=function(X,ie,ve){for(var we,He,ut=0;ut55295&&we<57344){if(!He){we>56319||ut+1===ie.length?(X[ve++]=239,X[ve++]=191,X[ve++]=189):He=we;continue}if(we<56320){X[ve++]=239,X[ve++]=191,X[ve++]=189,He=we;continue}we=He-55296<<10|we-56320|65536,He=null}else He&&(X[ve++]=239,X[ve++]=191,X[ve++]=189,He=null);we<128?X[ve++]=we:(we<2048?X[ve++]=we>>6|192:(we<65536?X[ve++]=we>>12|224:(X[ve++]=we>>18|240,X[ve++]=we>>12&63|128),X[ve++]=we>>6&63|128),X[ve++]=63&we|128)}return ve}(this.buf,I,this.pos);var D=this.pos-M;D>=128&&Ew(M,D,this),this.pos=M-1,this.writeVarint(D),this.pos+=D},writeFloat:function(I){this.realloc(4),T1(this.buf,I,this.pos,!0,23,4),this.pos+=4},writeDouble:function(I){this.realloc(8),T1(this.buf,I,this.pos,!0,52,8),this.pos+=8},writeBytes:function(I){var M=I.length;this.writeVarint(M),this.realloc(M);for(var D=0;D=128&&Ew(D,X,this),this.pos=D-1,this.writeVarint(X),this.pos+=X},writeMessage:function(I,M,D){this.writeTag(I,ic.Bytes),this.writeRawMessage(M,D)},writePackedVarint:function(I,M){M.length&&this.writeMessage(I,Ux,M)},writePackedSVarint:function(I,M){M.length&&this.writeMessage(I,HO,M)},writePackedBoolean:function(I,M){M.length&&this.writeMessage(I,XO,M)},writePackedFloat:function(I,M){M.length&&this.writeMessage(I,WO,M)},writePackedDouble:function(I,M){M.length&&this.writeMessage(I,jO,M)},writePackedFixed32:function(I,M){M.length&&this.writeMessage(I,OQ,M)},writePackedSFixed32:function(I,M){M.length&&this.writeMessage(I,ZO,M)},writePackedFixed64:function(I,M){M.length&&this.writeMessage(I,YO,M)},writePackedSFixed64:function(I,M){M.length&&this.writeMessage(I,KO,M)},writeBytesField:function(I,M){this.writeTag(I,ic.Bytes),this.writeBytes(M)},writeFixed32Field:function(I,M){this.writeTag(I,ic.Fixed32),this.writeFixed32(M)},writeSFixed32Field:function(I,M){this.writeTag(I,ic.Fixed32),this.writeSFixed32(M)},writeFixed64Field:function(I,M){this.writeTag(I,ic.Fixed64),this.writeFixed64(M)},writeSFixed64Field:function(I,M){this.writeTag(I,ic.Fixed64),this.writeSFixed64(M)},writeVarintField:function(I,M){this.writeTag(I,ic.Varint),this.writeVarint(M)},writeSVarintField:function(I,M){this.writeTag(I,ic.Varint),this.writeSVarint(M)},writeStringField:function(I,M){this.writeTag(I,ic.Bytes),this.writeString(M)},writeFloatField:function(I,M){this.writeTag(I,ic.Fixed32),this.writeFloat(M)},writeDoubleField:function(I,M){this.writeTag(I,ic.Fixed64),this.writeDouble(M)},writeBooleanField:function(I,M){this.writeVarintField(I,!!M)}};var tM=o(Ed);let rM=3;function qQ(I,M,D){I===1&&D.readMessage(JO,M)}function JO(I,M,D){if(I===3){let{id:X,bitmap:ie,width:ve,height:we,left:He,top:ut,advance:Mt}=D.readMessage(dC,{});M.push({id:X,bitmap:new ul({width:ve+2*rM,height:we+2*rM},ie),metrics:{width:ve,height:we,left:He,top:ut,advance:Mt}})}}function dC(I,M,D){I===1?M.id=D.readVarint():I===2?M.bitmap=D.readBytes():I===3?M.width=D.readVarint():I===4?M.height=D.readVarint():I===5?M.left=D.readSVarint():I===6?M.top=D.readSVarint():I===7&&(M.advance=D.readVarint())}let pC=rM;function iM(I){let M=0,D=0;for(let we of I)M+=we.w*we.h,D=Math.max(D,we.w);I.sort((we,He)=>He.h-we.h);let X=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(M/.95)),D),h:1/0}],ie=0,ve=0;for(let we of I)for(let He=X.length-1;He>=0;He--){let ut=X[He];if(!(we.w>ut.w||we.h>ut.h)){if(we.x=ut.x,we.y=ut.y,ve=Math.max(ve,we.y+we.h),ie=Math.max(ie,we.x+we.w),we.w===ut.w&&we.h===ut.h){let Mt=X.pop();He=0&&X>=M&&Lw[this.text.charCodeAt(X)];X--)D--;this.text=this.text.substring(M,D),this.sectionIndex=this.sectionIndex.slice(M,D)}substring(M,D){let X=new S1;return X.text=this.text.substring(M,D),X.sectionIndex=this.sectionIndex.slice(M,D),X.sections=this.sections,X}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((M,D)=>Math.max(M,this.sections[D].scale),0)}addTextSection(M,D){this.text+=M.text,this.sections.push(Gx.forText(M.scale,M.fontStack||D));let X=this.sections.length-1;for(let ie=0;ie=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Hx(I,M,D,X,ie,ve,we,He,ut,Mt,$t,vr,Sr,Dr,Jr){let li=S1.fromFeature(I,ie),Hi;vr===i.ah.vertical&&li.verticalizePunctuation();let{processBidirectionalText:cn,processStyledBidirectionalText:Za}=Js;if(cn&&li.sections.length===1){Hi=[];let So=cn(li.toString(),M1(li,Mt,ve,M,X,Dr));for(let kl of So){let mu=new S1;mu.text=kl,mu.sections=li.sections;for(let Iu=0;Iu0&&ev>rh&&(rh=ev)}else{let Rc=mu[jf.fontStack],uh=Rc&&Rc[mc];if(uh&&uh.rect)z1=uh.rect,Gc=uh.metrics;else{let ev=kl[jf.fontStack],mm=ev&&ev[mc];if(!mm)continue;Gc=mm.metrics}Ip=(Ph-jf.scale)*Wf}Qp?(So.verticalizable=!0,Xh.push({glyph:mc,imageName:v0,x:Ou,y:vc+Ip,vertical:Qp,scale:jf.scale,fontStack:jf.fontStack,sectionIndex:Ac,metrics:Gc,rect:z1}),Ou+=Gv*jf.scale+Xs):(Xh.push({glyph:mc,imageName:v0,x:Ou,y:vc+Ip,vertical:Qp,scale:jf.scale,fontStack:jf.fontStack,sectionIndex:Ac,metrics:Gc,rect:z1}),Ou+=Gc.advance*jf.scale+Xs)}Xh.length!==0&&(cc=Math.max(Ou-Xs,cc),sy(Xh,0,Xh.length-1,$p,rh)),Ou=0;let zp=yl*Ph+rh;fd.lineOffset=Math.max(rh,Cd),vc+=zp,Ch=Math.max(zp,Ch),++ud}var Lh;let Wd=vc-kh,{horizontalAlign:jd,verticalAlign:Xd}=zw(Eu);(function(Kc,Ph,Cd,fd,Xh,rh,zp,fp,jf){let Ac=(Ph-Cd)*Xh,mc=0;mc=rh!==zp?-fp*fd-kh:(-fd*jf+.5)*zp;for(let Ip of Kc)for(let Gc of Ip.positionedGlyphs)Gc.x+=Ac,Gc.y+=mc})(So.positionedLines,$p,jd,Xd,cc,Ch,yl,Wd,su.length),So.top+=-Xd*Wd,So.bottom=So.top+Wd,So.left+=-jd*cc,So.right=So.left+cc}(La,M,D,X,Hi,we,He,ut,vr,Mt,Sr,Jr),!function(So){for(let kl of So)if(kl.positionedGlyphs.length!==0)return!1;return!0}(Rn)&&La}let Lw={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},$O={10:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},QO={40:!0};function vC(I,M,D,X,ie,ve){if(M.imageName){let we=X[M.imageName];return we?we.displaySize[0]*M.scale*Wf/ve+ie:0}{let we=D[M.fontStack],He=we&&we[I];return He?He.metrics.advance*M.scale+ie:0}}function mC(I,M,D,X){let ie=Math.pow(I-M,2);return X?I=0,Mt=0;for(let vr=0;vrMt){let $t=Math.ceil(ve/Mt);ie*=$t/we,we=$t}return{x1:X,y1:ie,x2:X+ve,y2:ie+we}}function _C(I,M,D,X,ie,ve){let we=I.image,He;if(we.content){let Hi=we.content,cn=we.pixelRatio||1;He=[Hi[0]/cn,Hi[1]/cn,we.displaySize[0]-Hi[2]/cn,we.displaySize[1]-Hi[3]/cn]}let ut=M.left*ve,Mt=M.right*ve,$t,vr,Sr,Dr;D==="width"||D==="both"?(Dr=ie[0]+ut-X[3],vr=ie[0]+Mt+X[1]):(Dr=ie[0]+(ut+Mt-we.displaySize[0])/2,vr=Dr+we.displaySize[0]);let Jr=M.top*ve,li=M.bottom*ve;return D==="height"||D==="both"?($t=ie[1]+Jr-X[0],Sr=ie[1]+li+X[2]):($t=ie[1]+(Jr+li-we.displaySize[1])/2,Sr=$t+we.displaySize[1]),{image:we,top:$t,right:vr,bottom:Sr,left:Dr,collisionPadding:He}}let jx=255,p0=128,ly=jx*p0;function xC(I,M){let{expression:D}=M;if(D.kind==="constant")return{kind:"constant",layoutSize:D.evaluate(new cs(I+1))};if(D.kind==="source")return{kind:"source"};{let{zoomStops:X,interpolationType:ie}=D,ve=0;for(;vewe.id),this.index=M.index,this.pixelRatio=M.pixelRatio,this.sourceLayerIndex=M.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=En([]),this.placementViewportMatrix=En([]);let D=this.layers[0]._unevaluatedLayout._values;this.textSizeData=xC(this.zoom,D["text-size"]),this.iconSizeData=xC(this.zoom,D["icon-size"]);let X=this.layers[0].layout,ie=X.get("symbol-sort-key"),ve=X.get("symbol-z-order");this.canOverlap=nM(X,"text-overlap","text-allow-overlap")!=="never"||nM(X,"icon-overlap","icon-allow-overlap")!=="never"||X.get("text-ignore-placement")||X.get("icon-ignore-placement"),this.sortFeaturesByKey=ve!=="viewport-y"&&!ie.isConstant(),this.sortFeaturesByY=(ve==="viewport-y"||ve==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,X.get("symbol-placement")==="point"&&(this.writingModes=X.get("text-writing-mode").map(we=>i.ah[we])),this.stateDependentLayerIds=this.layers.filter(we=>we.isStateDependent()).map(we=>we.id),this.sourceID=M.sourceID}createArrays(){this.text=new sM(new Vu(this.layers,this.zoom,M=>/^text/.test(M))),this.icon=new sM(new Vu(this.layers,this.zoom,M=>/^icon/.test(M))),this.glyphOffsetArray=new au,this.lineVertexArray=new Sl,this.symbolInstances=new ml,this.textAnchorOffsets=new ql}calculateGlyphDependencies(M,D,X,ie,ve){for(let we=0;we0)&&(we.value.kind!=="constant"||we.value.value.length>0),$t=ut.value.kind!=="constant"||!!ut.value.value||Object.keys(ut.parameters).length>0,vr=ve.get("symbol-sort-key");if(this.features=[],!Mt&&!$t)return;let Sr=D.iconDependencies,Dr=D.glyphDependencies,Jr=D.availableImages,li=new cs(this.zoom);for(let{feature:Hi,id:cn,index:Za,sourceLayerIndex:Rn}of M){let La=ie._featureFilter.needGeometry,So=df(Hi,La);if(!ie._featureFilter.filter(li,So,X))continue;let kl,mu;if(La||(So.geometry=uf(Hi)),Mt){let su=ie.getValueAndResolveTokens("text-field",So,X,Jr),yl=Ur.factory(su),Eu=this.hasRTLText=this.hasRTLText||oM(yl);(!Eu||Js.getRTLTextPluginStatus()==="unavailable"||Eu&&Js.isParsed())&&(kl=ny(yl,ie,So))}if($t){let su=ie.getValueAndResolveTokens("icon-image",So,X,Jr);mu=su instanceof yi?su:yi.fromString(su)}if(!kl&&!mu)continue;let Iu=this.sortFeaturesByKey?vr.evaluate(So,{},X):void 0;if(this.features.push({id:cn,text:kl,icon:mu,index:Za,sourceLayerIndex:Rn,geometry:So.geometry,properties:Hi.properties,type:t9[Hi.type],sortKey:Iu}),mu&&(Sr[mu.name]=!0),kl){let su=we.evaluate(So,{},X).join(","),yl=ve.get("text-rotation-alignment")!=="viewport"&&ve.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(i.ah.vertical)>=0;for(let Eu of kl.sections)if(Eu.image)Sr[Eu.image.name]=!0;else{let bu=is(kl.toString()),_u=Eu.fontStack||su,Xs=Dr[_u]=Dr[_u]||{};this.calculateGlyphDependencies(Eu.text,Xs,yl,this.allowVerticalPlacement,bu)}}}ve.get("symbol-placement")==="line"&&(this.features=function(Hi){let cn={},Za={},Rn=[],La=0;function So(su){Rn.push(Hi[su]),La++}function kl(su,yl,Eu){let bu=Za[su];return delete Za[su],Za[yl]=bu,Rn[bu].geometry[0].pop(),Rn[bu].geometry[0]=Rn[bu].geometry[0].concat(Eu[0]),bu}function mu(su,yl,Eu){let bu=cn[yl];return delete cn[yl],cn[su]=bu,Rn[bu].geometry[0].shift(),Rn[bu].geometry[0]=Eu[0].concat(Rn[bu].geometry[0]),bu}function Iu(su,yl,Eu){let bu=Eu?yl[0][yl[0].length-1]:yl[0][0];return`${su}:${bu.x}:${bu.y}`}for(let su=0;susu.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((Hi,cn)=>Hi.sortKey-cn.sortKey)}update(M,D,X){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(M,D,this.layers,X),this.icon.programConfigurations.updatePaintArrays(M,D,this.layers,X))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(M){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(M),this.iconCollisionBox.upload(M)),this.text.upload(M,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(M,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(M,D){let X=this.lineVertexArray.length;if(M.segment!==void 0){let ie=M.dist(D[M.segment+1]),ve=M.dist(D[M.segment]),we={};for(let He=M.segment+1;He=0;He--)we[He]={x:D[He].x,y:D[He].y,tileUnitDistanceFromAnchor:ve},He>0&&(ve+=D[He-1].dist(D[He]));for(let He=0;He0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(M,D){let X=M.placedSymbolArray.get(D),ie=X.vertexStartIndex+4*X.numGlyphs;for(let ve=X.vertexStartIndex;veie[He]-ie[ut]||ve[ut]-ve[He]),we}addToSortKeyRanges(M,D){let X=this.sortKeyRanges[this.sortKeyRanges.length-1];X&&X.sortKey===D?X.symbolInstanceEnd=M+1:this.sortKeyRanges.push({sortKey:D,symbolInstanceStart:M,symbolInstanceEnd:M+1})}sortFeatures(M){if(this.sortFeaturesByY&&this.sortedAngle!==M&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(M),this.sortedAngle=M,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let D of this.symbolInstanceIndexes){let X=this.symbolInstances.get(D);this.featureSortOrder.push(X.featureIndex),[X.rightJustifiedTextSymbolIndex,X.centerJustifiedTextSymbolIndex,X.leftJustifiedTextSymbolIndex].forEach((ie,ve,we)=>{ie>=0&&we.indexOf(ie)===ve&&this.addIndicesForPlacedSymbol(this.text,ie)}),X.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,X.verticalPlacedTextSymbolIndex),X.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,X.placedIconSymbolIndex),X.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,X.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let Yc,Xx;Si("SymbolBucket",E1,{omit:["layers","collisionBoxArray","features","compareText"]}),E1.MAX_GLYPHS=65535,E1.addDynamicAttributes=aM;var Rw={get paint(){return Xx=Xx||new le({"icon-opacity":new Os(ce.paint_symbol["icon-opacity"]),"icon-color":new Os(ce.paint_symbol["icon-color"]),"icon-halo-color":new Os(ce.paint_symbol["icon-halo-color"]),"icon-halo-width":new Os(ce.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Os(ce.paint_symbol["icon-halo-blur"]),"icon-translate":new ms(ce.paint_symbol["icon-translate"]),"icon-translate-anchor":new ms(ce.paint_symbol["icon-translate-anchor"]),"text-opacity":new Os(ce.paint_symbol["text-opacity"]),"text-color":new Os(ce.paint_symbol["text-color"],{runtimeType:Qe,getOverride:I=>I.textColor,hasOverride:I=>!!I.textColor}),"text-halo-color":new Os(ce.paint_symbol["text-halo-color"]),"text-halo-width":new Os(ce.paint_symbol["text-halo-width"]),"text-halo-blur":new Os(ce.paint_symbol["text-halo-blur"]),"text-translate":new ms(ce.paint_symbol["text-translate"]),"text-translate-anchor":new ms(ce.paint_symbol["text-translate-anchor"])})},get layout(){return Yc=Yc||new le({"symbol-placement":new ms(ce.layout_symbol["symbol-placement"]),"symbol-spacing":new ms(ce.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new ms(ce.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Os(ce.layout_symbol["symbol-sort-key"]),"symbol-z-order":new ms(ce.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new ms(ce.layout_symbol["icon-allow-overlap"]),"icon-overlap":new ms(ce.layout_symbol["icon-overlap"]),"icon-ignore-placement":new ms(ce.layout_symbol["icon-ignore-placement"]),"icon-optional":new ms(ce.layout_symbol["icon-optional"]),"icon-rotation-alignment":new ms(ce.layout_symbol["icon-rotation-alignment"]),"icon-size":new Os(ce.layout_symbol["icon-size"]),"icon-text-fit":new ms(ce.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new ms(ce.layout_symbol["icon-text-fit-padding"]),"icon-image":new Os(ce.layout_symbol["icon-image"]),"icon-rotate":new Os(ce.layout_symbol["icon-rotate"]),"icon-padding":new Os(ce.layout_symbol["icon-padding"]),"icon-keep-upright":new ms(ce.layout_symbol["icon-keep-upright"]),"icon-offset":new Os(ce.layout_symbol["icon-offset"]),"icon-anchor":new Os(ce.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new ms(ce.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new ms(ce.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new ms(ce.layout_symbol["text-rotation-alignment"]),"text-field":new Os(ce.layout_symbol["text-field"]),"text-font":new Os(ce.layout_symbol["text-font"]),"text-size":new Os(ce.layout_symbol["text-size"]),"text-max-width":new Os(ce.layout_symbol["text-max-width"]),"text-line-height":new ms(ce.layout_symbol["text-line-height"]),"text-letter-spacing":new Os(ce.layout_symbol["text-letter-spacing"]),"text-justify":new Os(ce.layout_symbol["text-justify"]),"text-radial-offset":new Os(ce.layout_symbol["text-radial-offset"]),"text-variable-anchor":new ms(ce.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new Os(ce.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new Os(ce.layout_symbol["text-anchor"]),"text-max-angle":new ms(ce.layout_symbol["text-max-angle"]),"text-writing-mode":new ms(ce.layout_symbol["text-writing-mode"]),"text-rotate":new Os(ce.layout_symbol["text-rotate"]),"text-padding":new ms(ce.layout_symbol["text-padding"]),"text-keep-upright":new ms(ce.layout_symbol["text-keep-upright"]),"text-transform":new Os(ce.layout_symbol["text-transform"]),"text-offset":new Os(ce.layout_symbol["text-offset"]),"text-allow-overlap":new ms(ce.layout_symbol["text-allow-overlap"]),"text-overlap":new ms(ce.layout_symbol["text-overlap"]),"text-ignore-placement":new ms(ce.layout_symbol["text-ignore-placement"]),"text-optional":new ms(ce.layout_symbol["text-optional"])})}};class Zx{constructor(M){if(M.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=M.property.overrides?M.property.overrides.runtimeType:pt,this.defaultValue=M}evaluate(M){if(M.formattedSection){let D=this.defaultValue.property.overrides;if(D&&D.hasOverride(M.formattedSection))return D.getOverride(M.formattedSection)}return M.feature&&M.featureState?this.defaultValue.evaluate(M.feature,M.featureState):this.defaultValue.property.specification.default}eachChild(M){this.defaultValue.isConstant()||M(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Si("FormatSectionOverride",Zx,{omit:["defaultValue"]});class ug extends q{constructor(M){super(M,Rw)}recalculate(M,D){if(super.recalculate(M,D),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){let X=this.layout.get("text-writing-mode");if(X){let ie=[];for(let ve of X)ie.indexOf(ve)<0&&ie.push(ve);this.layout._values["text-writing-mode"]=ie}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(M,D,X,ie){let ve=this.layout.get(M).evaluate(D,{},X,ie),we=this._unevaluatedLayout._values[M];return we.isDataDriven()||Qs(we.value)||!ve?ve:function(He,ut){return ut.replace(/{([^{}]+)}/g,(Mt,$t)=>He&&$t in He?String(He[$t]):"")}(D.properties,ve)}createBucket(M){return new E1(M)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let M of Rw.paint.overridableProperties){if(!ug.hasPaintOverride(this.layout,M))continue;let D=this.paint.get(M),X=new Zx(D),ie=new Ma(X,D.property.specification),ve=null;ve=D.value.kind==="constant"||D.value.kind==="source"?new gs("source",ie):new Vo("composite",ie,D.value.zoomStops),this.paint._values[M]=new Al(D.property,ve,D.parameters)}}_handleOverridablePaintPropertyUpdate(M,D,X){return!(!this.layout||D.isDataDriven()||X.isDataDriven())&&ug.hasPaintOverride(this.layout,M)}static hasPaintOverride(M,D){let X=M.get("text-field"),ie=Rw.paint.properties[D],ve=!1,we=He=>{for(let ut of He)if(ie.overrides&&ie.overrides.hasOverride(ut))return void(ve=!0)};if(X.value.kind==="constant"&&X.value.value instanceof Ur)we(X.value.value.sections);else if(X.value.kind==="source"){let He=Mt=>{ve||(Mt instanceof Yr&&ti(Mt.value)===mr?we(Mt.value.sections):Mt instanceof wa?we(Mt.sections):Mt.eachChild(He))},ut=X.value;ut._styleExpression&&He(ut._styleExpression.expression)}return ve}}let bC;var Yx={get paint(){return bC=bC||new le({"background-color":new ms(ce.paint_background["background-color"]),"background-pattern":new Gl(ce.paint_background["background-pattern"]),"background-opacity":new ms(ce.paint_background["background-opacity"])})}};class i9 extends q{constructor(M){super(M,Yx)}}let lM;var wC={get paint(){return lM=lM||new le({"raster-opacity":new ms(ce.paint_raster["raster-opacity"]),"raster-hue-rotate":new ms(ce.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new ms(ce.paint_raster["raster-brightness-min"]),"raster-brightness-max":new ms(ce.paint_raster["raster-brightness-max"]),"raster-saturation":new ms(ce.paint_raster["raster-saturation"]),"raster-contrast":new ms(ce.paint_raster["raster-contrast"]),"raster-resampling":new ms(ce.paint_raster["raster-resampling"]),"raster-fade-duration":new ms(ce.paint_raster["raster-fade-duration"])})}};class Kx extends q{constructor(M){super(M,wC)}}class uM extends q{constructor(M){super(M,{}),this.onAdd=D=>{this.implementation.onAdd&&this.implementation.onAdd(D,D.painter.context.gl)},this.onRemove=D=>{this.implementation.onRemove&&this.implementation.onRemove(D,D.painter.context.gl)},this.implementation=M}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class fM{constructor(M){this._methodToThrottle=M,this._triggered=!1,typeof MessageChannel!="undefined"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._methodToThrottle()},0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}}let cM=63710088e-1;class dm{constructor(M,D){if(isNaN(M)||isNaN(D))throw new Error(`Invalid LngLat object: (${M}, ${D})`);if(this.lng=+M,this.lat=+D,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new dm(T(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(M){let D=Math.PI/180,X=this.lat*D,ie=M.lat*D,ve=Math.sin(X)*Math.sin(ie)+Math.cos(X)*Math.cos(ie)*Math.cos((M.lng-this.lng)*D);return cM*Math.acos(Math.min(ve,1))}static convert(M){if(M instanceof dm)return M;if(Array.isArray(M)&&(M.length===2||M.length===3))return new dm(Number(M[0]),Number(M[1]));if(!Array.isArray(M)&&typeof M=="object"&&M!==null)return new dm(Number("lng"in M?M.lng:M.lon),Number(M.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}let k1=2*Math.PI*cM;function AC(I){return k1*Math.cos(I*Math.PI/180)}function Dw(I){return(180+I)/360}function TC(I){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+I*Math.PI/360)))/360}function Fw(I,M){return I/AC(M)}function Jx(I){return 360/Math.PI*Math.atan(Math.exp((180-360*I)*Math.PI/180))-90}class $x{constructor(M,D,X=0){this.x=+M,this.y=+D,this.z=+X}static fromLngLat(M,D=0){let X=dm.convert(M);return new $x(Dw(X.lng),TC(X.lat),Fw(D,X.lat))}toLngLat(){return new dm(360*this.x-180,Jx(this.y))}toAltitude(){return this.z*AC(Jx(this.y))}meterInMercatorCoordinateUnits(){return 1/k1*(M=Jx(this.y),1/Math.cos(M*Math.PI/180));var M}}function vv(I,M,D){var X=2*Math.PI*6378137/256/Math.pow(2,D);return[I*X-2*Math.PI*6378137/2,M*X-2*Math.PI*6378137/2]}class hM{constructor(M,D,X){if(!function(ie,ve,we){return!(ie<0||ie>25||we<0||we>=Math.pow(2,ie)||ve<0||ve>=Math.pow(2,ie))}(M,D,X))throw new Error(`x=${D}, y=${X}, z=${M} outside of bounds. 0<=x<${Math.pow(2,M)}, 0<=y<${Math.pow(2,M)} 0<=z<=25 `);this.z=M,this.x=D,this.y=X,this.key=Qx(0,M,M,D,X)}equals(M){return this.z===M.z&&this.x===M.x&&this.y===M.y}url(M,D,X){let ie=(we=this.y,He=this.z,ut=vv(256*(ve=this.x),256*(we=Math.pow(2,He)-we-1),He),Mt=vv(256*(ve+1),256*(we+1),He),ut[0]+","+ut[1]+","+Mt[0]+","+Mt[1]);var ve,we,He,ut,Mt;let $t=function(vr,Sr,Dr){let Jr,li="";for(let Hi=vr;Hi>0;Hi--)Jr=1<1?"@2x":"").replace(/{quadkey}/g,$t).replace(/{bbox-epsg-3857}/g,ie)}isChildOf(M){let D=this.z-M.z;return D>0&&M.x===this.x>>D&&M.y===this.y>>D}getTilePoint(M){let D=Math.pow(2,this.z);return new l((M.x*D-this.x)*Wl,(M.y*D-this.y)*Wl)}toString(){return`${this.z}/${this.x}/${this.y}`}}class SC{constructor(M,D){this.wrap=M,this.canonical=D,this.key=Qx(M,D.z,D.z,D.x,D.y)}}class Jp{constructor(M,D,X,ie,ve){if(M= z; overscaledZ = ${M}; z = ${X}`);this.overscaledZ=M,this.wrap=D,this.canonical=new hM(X,+ie,+ve),this.key=Qx(D,M,X,ie,ve)}clone(){return new Jp(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(M){return this.overscaledZ===M.overscaledZ&&this.wrap===M.wrap&&this.canonical.equals(M.canonical)}scaledTo(M){if(M>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${M}; overscaledZ = ${this.overscaledZ}`);let D=this.canonical.z-M;return M>this.canonical.z?new Jp(M,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Jp(M,this.wrap,M,this.canonical.x>>D,this.canonical.y>>D)}calculateScaledKey(M,D){if(M>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${M}; overscaledZ = ${this.overscaledZ}`);let X=this.canonical.z-M;return M>this.canonical.z?Qx(this.wrap*+D,M,this.canonical.z,this.canonical.x,this.canonical.y):Qx(this.wrap*+D,M,M,this.canonical.x>>X,this.canonical.y>>X)}isChildOf(M){if(M.wrap!==this.wrap)return!1;let D=this.canonical.z-M.canonical.z;return M.overscaledZ===0||M.overscaledZ>D&&M.canonical.y===this.canonical.y>>D}children(M){if(this.overscaledZ>=M)return[new Jp(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let D=this.canonical.z+1,X=2*this.canonical.x,ie=2*this.canonical.y;return[new Jp(D,this.wrap,D,X,ie),new Jp(D,this.wrap,D,X+1,ie),new Jp(D,this.wrap,D,X,ie+1),new Jp(D,this.wrap,D,X+1,ie+1)]}isLessThan(M){return this.wrapM.wrap)&&(this.overscaledZM.overscaledZ)&&(this.canonical.xM.canonical.x)&&this.canonical.ythis.max&&(this.max=vr),vr=this.dim+1||D<-1||D>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(D+1)*this.stride+(M+1)}unpack(M,D,X){return M*this.redFactor+D*this.greenFactor+X*this.blueFactor-this.baseShift}getPixels(){return new Qn({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(M,D,X){if(this.dim!==M.dim)throw new Error("dem dimension mismatch");let ie=D*this.dim,ve=D*this.dim+this.dim,we=X*this.dim,He=X*this.dim+this.dim;switch(D){case-1:ie=ve-1;break;case 1:ve=ie+1}switch(X){case-1:we=He-1;break;case 1:He=we+1}let ut=-D*this.dim,Mt=-X*this.dim;for(let $t=we;$t=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${M} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[M]}}class dM{constructor(M,D,X,ie,ve){this.type="Feature",this._vectorTileFeature=M,M._z=D,M._x=X,M._y=ie,this.properties=M.properties,this.id=ve}get geometry(){return this._geometry===void 0&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(M){this._geometry=M}toJSON(){let M={geometry:this.geometry};for(let D in this)D!=="_geometry"&&D!=="_vectorTileFeature"&&(M[D]=this[D]);return M}}class fg{constructor(M,D){this.tileID=M,this.x=M.canonical.x,this.y=M.canonical.y,this.z=M.canonical.z,this.grid=new hi(Wl,16,0),this.grid3D=new hi(Wl,16,0),this.featureIndexArray=new Pu,this.promoteId=D}insert(M,D,X,ie,ve,we){let He=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(X,ie,ve);let ut=we?this.grid3D:this.grid;for(let Mt=0;Mt=0&&vr[3]>=0&&ut.insert(He,vr[0],vr[1],vr[2],vr[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new qr.VectorTile(new tM(this.rawTileData)).layers,this.sourceLayerCoder=new EC(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(M,D,X,ie){this.loadVTLayers();let ve=M.params||{},we=Wl/M.tileSize/M.scale,He=Jn(ve.filter),ut=M.queryGeometry,Mt=M.queryPadding*we,$t=CC(ut),vr=this.grid.query($t.minX-Mt,$t.minY-Mt,$t.maxX+Mt,$t.maxY+Mt),Sr=CC(M.cameraQueryGeometry),Dr=this.grid3D.query(Sr.minX-Mt,Sr.minY-Mt,Sr.maxX+Mt,Sr.maxY+Mt,(Hi,cn,Za,Rn)=>function(La,So,kl,mu,Iu){for(let yl of La)if(So<=yl.x&&kl<=yl.y&&mu>=yl.x&&Iu>=yl.y)return!0;let su=[new l(So,kl),new l(So,Iu),new l(mu,Iu),new l(mu,kl)];if(La.length>2){for(let yl of su)if(Bn(La,yl))return!0}for(let yl=0;yl(Rn||(Rn=uf(La)),So.queryIntersectsFeature(ut,La,kl,Rn,this.z,M.transform,we,M.pixelPosMatrix)))}return Jr}loadMatchingFeature(M,D,X,ie,ve,we,He,ut,Mt,$t,vr){let Sr=this.bucketLayerIDs[D];if(we&&!function(Hi,cn){for(let Za=0;Za=0)return!0;return!1}(we,Sr))return;let Dr=this.sourceLayerCoder.decode(X),Jr=this.vtLayers[Dr].feature(ie);if(ve.needGeometry){let Hi=df(Jr,!0);if(!ve.filter(new cs(this.tileID.overscaledZ),Hi,this.tileID.canonical))return}else if(!ve.filter(new cs(this.tileID.overscaledZ),Jr))return;let li=this.getId(Jr,Dr);for(let Hi=0;Hi{let He=M instanceof Ll?M.get(we):null;return He&&He.evaluate?He.evaluate(D,X,ie):He})}function CC(I){let M=1/0,D=1/0,X=-1/0,ie=-1/0;for(let ve of I)M=Math.min(M,ve.x),D=Math.min(D,ve.y),X=Math.max(X,ve.x),ie=Math.max(ie,ve.y);return{minX:M,minY:D,maxX:X,maxY:ie}}function n9(I,M){return M-I}function LC(I,M,D,X,ie){let ve=[];for(let we=0;we=X&&vr.x>=X||($t.x>=X?$t=new l(X,$t.y+(X-$t.x)/(vr.x-$t.x)*(vr.y-$t.y))._round():vr.x>=X&&(vr=new l(X,$t.y+(X-$t.x)/(vr.x-$t.x)*(vr.y-$t.y))._round()),$t.y>=ie&&vr.y>=ie||($t.y>=ie?$t=new l($t.x+(ie-$t.y)/(vr.y-$t.y)*(vr.x-$t.x),ie)._round():vr.y>=ie&&(vr=new l($t.x+(ie-$t.y)/(vr.y-$t.y)*(vr.x-$t.x),ie)._round()),ut&&$t.equals(ut[ut.length-1])||(ut=[$t],ve.push(ut)),ut.push(vr)))))}}return ve}Si("FeatureIndex",fg,{omit:["rawTileData","sourceLayerCoder"]});class pm extends l{constructor(M,D,X,ie){super(M,D),this.angle=X,ie!==void 0&&(this.segment=ie)}clone(){return new pm(this.x,this.y,this.angle,this.segment)}}function pM(I,M,D,X,ie){if(M.segment===void 0||D===0)return!0;let ve=M,we=M.segment+1,He=0;for(;He>-D/2;){if(we--,we<0)return!1;He-=I[we].dist(ve),ve=I[we]}He+=I[we].dist(I[we+1]),we++;let ut=[],Mt=0;for(;HeX;)Mt-=ut.shift().angleDelta;if(Mt>ie)return!1;we++,He+=$t.dist(vr)}return!0}function PC(I){let M=0;for(let D=0;DMt){let Jr=(Mt-ut)/Dr,li=ka.number(vr.x,Sr.x,Jr),Hi=ka.number(vr.y,Sr.y,Jr),cn=new pm(li,Hi,Sr.angleTo(vr),$t);return cn._round(),!we||pM(I,cn,He,we,M)?cn:void 0}ut+=Dr}}function o9(I,M,D,X,ie,ve,we,He,ut){let Mt=zC(X,ve,we),$t=IC(X,ie),vr=$t*we,Sr=I[0].x===0||I[0].x===ut||I[0].y===0||I[0].y===ut;return M-vr=0&&La=0&&So=0&&Sr+Mt<=$t){let kl=new pm(La,So,Za,Jr);kl._round(),X&&!pM(I,kl,ve,X,ie)||Dr.push(kl)}}vr+=cn}return He||Dr.length||we||(Dr=RC(I,vr/2,D,X,ie,ve,we,!0,ut)),Dr}Si("Anchor",pm);let C1=kd;function DC(I,M,D,X){let ie=[],ve=I.image,we=ve.pixelRatio,He=ve.paddedRect.w-2*C1,ut=ve.paddedRect.h-2*C1,Mt={x1:I.left,y1:I.top,x2:I.right,y2:I.bottom},$t=ve.stretchX||[[0,He]],vr=ve.stretchY||[[0,ut]],Sr=(Xs,Lu)=>Xs+Lu[1]-Lu[0],Dr=$t.reduce(Sr,0),Jr=vr.reduce(Sr,0),li=He-Dr,Hi=ut-Jr,cn=0,Za=Dr,Rn=0,La=Jr,So=0,kl=li,mu=0,Iu=Hi;if(ve.content&&X){let Xs=ve.content,Lu=Xs[2]-Xs[0],xu=Xs[3]-Xs[1];(ve.textFitWidth||ve.textFitHeight)&&(Mt=gC(I)),cn=vm($t,0,Xs[0]),Rn=vm(vr,0,Xs[1]),Za=vm($t,Xs[0],Xs[2]),La=vm(vr,Xs[1],Xs[3]),So=Xs[0]-cn,mu=Xs[1]-Rn,kl=Lu-Za,Iu=xu-La}let su=Mt.x1,yl=Mt.y1,Eu=Mt.x2-su,bu=Mt.y2-yl,_u=(Xs,Lu,xu,Ou)=>{let vc=Bw(Xs.stretch-cn,Za,Eu,su),cc=L1(Xs.fixed-So,kl,Xs.stretch,Dr),Ch=Bw(Lu.stretch-Rn,La,bu,yl),$p=L1(Lu.fixed-mu,Iu,Lu.stretch,Jr),ud=Bw(xu.stretch-cn,Za,Eu,su),Lh=L1(xu.fixed-So,kl,xu.stretch,Dr),Wd=Bw(Ou.stretch-Rn,La,bu,yl),jd=L1(Ou.fixed-mu,Iu,Ou.stretch,Jr),Xd=new l(vc,Ch),Kc=new l(ud,Ch),Ph=new l(ud,Wd),Cd=new l(vc,Wd),fd=new l(cc/we,$p/we),Xh=new l(Lh/we,jd/we),rh=M*Math.PI/180;if(rh){let jf=Math.sin(rh),Ac=Math.cos(rh),mc=[Ac,-jf,jf,Ac];Xd._matMult(mc),Kc._matMult(mc),Cd._matMult(mc),Ph._matMult(mc)}let zp=Xs.stretch+Xs.fixed,fp=Lu.stretch+Lu.fixed;return{tl:Xd,tr:Kc,bl:Cd,br:Ph,tex:{x:ve.paddedRect.x+C1+zp,y:ve.paddedRect.y+C1+fp,w:xu.stretch+xu.fixed-zp,h:Ou.stretch+Ou.fixed-fp},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:fd,pixelOffsetBR:Xh,minFontScaleX:kl/we/Eu,minFontScaleY:Iu/we/bu,isSDF:D}};if(X&&(ve.stretchX||ve.stretchY)){let Xs=FC($t,li,Dr),Lu=FC(vr,Hi,Jr);for(let xu=0;xu0&&(li=Math.max(10,li),this.circleDiameter=li)}else{let Sr=!((vr=we.image)===null||vr===void 0)&&vr.content&&(we.image.textFitWidth||we.image.textFitHeight)?gC(we):{x1:we.left,y1:we.top,x2:we.right,y2:we.bottom};Sr.y1=Sr.y1*He-ut[0],Sr.y2=Sr.y2*He+ut[2],Sr.x1=Sr.x1*He-ut[3],Sr.x2=Sr.x2*He+ut[1];let Dr=we.collisionPadding;if(Dr&&(Sr.x1-=Dr[0]*He,Sr.y1-=Dr[1]*He,Sr.x2+=Dr[2]*He,Sr.y2+=Dr[3]*He),$t){let Jr=new l(Sr.x1,Sr.y1),li=new l(Sr.x2,Sr.y1),Hi=new l(Sr.x1,Sr.y2),cn=new l(Sr.x2,Sr.y2),Za=$t*Math.PI/180;Jr._rotate(Za),li._rotate(Za),Hi._rotate(Za),cn._rotate(Za),Sr.x1=Math.min(Jr.x,li.x,Hi.x,cn.x),Sr.x2=Math.max(Jr.x,li.x,Hi.x,cn.x),Sr.y1=Math.min(Jr.y,li.y,Hi.y,cn.y),Sr.y2=Math.max(Jr.y,li.y,Hi.y,cn.y)}M.emplaceBack(D.x,D.y,Sr.x1,Sr.y1,Sr.x2,Sr.y2,X,ie,ve)}this.boxEndIndex=M.length}}class Vv{constructor(M=[],D=(X,ie)=>Xie?1:0){if(this.data=M,this.length=this.data.length,this.compare=D,this.length>0)for(let X=(this.length>>1)-1;X>=0;X--)this._down(X)}push(M){this.data.push(M),this._up(this.length++)}pop(){if(this.length===0)return;let M=this.data[0],D=this.data.pop();return--this.length>0&&(this.data[0]=D,this._down(0)),M}peek(){return this.data[0]}_up(M){let{data:D,compare:X}=this,ie=D[M];for(;M>0;){let ve=M-1>>1,we=D[ve];if(X(ie,we)>=0)break;D[M]=we,M=ve}D[M]=ie}_down(M){let{data:D,compare:X}=this,ie=this.length>>1,ve=D[M];for(;M=0)break;D[M]=D[we],M=we}D[M]=ve}}function s9(I,M=1,D=!1){let X=1/0,ie=1/0,ve=-1/0,we=-1/0,He=I[0];for(let Dr=0;Drve)&&(ve=Jr.x),(!Dr||Jr.y>we)&&(we=Jr.y)}let ut=Math.min(ve-X,we-ie),Mt=ut/2,$t=new Vv([],l9);if(ut===0)return new l(X,ie);for(let Dr=X;Drvr.d||!vr.d)&&(vr=Dr,D&&console.log("found best %d after %d probes",Math.round(1e4*Dr.d)/1e4,Sr)),Dr.max-vr.d<=M||(Mt=Dr.h/2,$t.push(new P1(Dr.p.x-Mt,Dr.p.y-Mt,Mt,I)),$t.push(new P1(Dr.p.x+Mt,Dr.p.y-Mt,Mt,I)),$t.push(new P1(Dr.p.x-Mt,Dr.p.y+Mt,Mt,I)),$t.push(new P1(Dr.p.x+Mt,Dr.p.y+Mt,Mt,I)),Sr+=4)}return D&&(console.log(`num probes: ${Sr}`),console.log(`best distance: ${vr.d}`)),vr.p}function l9(I,M){return M.max-I.max}function P1(I,M,D,X){this.p=new l(I,M),this.h=D,this.d=function(ie,ve){let we=!1,He=1/0;for(let ut=0;utie.y!=Jr.y>ie.y&&ie.x<(Jr.x-Dr.x)*(ie.y-Dr.y)/(Jr.y-Dr.y)+Dr.x&&(we=!we),He=Math.min(He,di(ie,Dr,Jr))}}return(we?1:-1)*Math.sqrt(He)}(this.p,X),this.max=this.d+this.h*Math.SQRT2}var ld;i.aq=void 0,(ld=i.aq||(i.aq={}))[ld.center=1]="center",ld[ld.left=2]="left",ld[ld.right=3]="right",ld[ld.top=4]="top",ld[ld.bottom=5]="bottom",ld[ld["top-left"]=6]="top-left",ld[ld["top-right"]=7]="top-right",ld[ld["bottom-left"]=8]="bottom-left",ld[ld["bottom-right"]=9]="bottom-right";let cy=7,cg=Number.POSITIVE_INFINITY;function vM(I,M){return M[1]!==cg?function(D,X,ie){let ve=0,we=0;switch(X=Math.abs(X),ie=Math.abs(ie),D){case"top-right":case"top-left":case"top":we=ie-cy;break;case"bottom-right":case"bottom-left":case"bottom":we=-ie+cy}switch(D){case"top-right":case"bottom-right":case"right":ve=-X;break;case"top-left":case"bottom-left":case"left":ve=X}return[ve,we]}(I,M[0],M[1]):function(D,X){let ie=0,ve=0;X<0&&(X=0);let we=X/Math.SQRT2;switch(D){case"top-right":case"top-left":ve=we-cy;break;case"bottom-right":case"bottom-left":ve=-we+cy;break;case"bottom":ve=-X+cy;break;case"top":ve=X-cy}switch(D){case"top-right":case"bottom-right":ie=-we;break;case"top-left":case"bottom-left":ie=we;break;case"left":ie=X;break;case"right":ie=-X}return[ie,ve]}(I,M[0])}function BC(I,M,D){var X;let ie=I.layout,ve=(X=ie.get("text-variable-anchor-offset"))===null||X===void 0?void 0:X.evaluate(M,{},D);if(ve){let He=ve.values,ut=[];for(let Mt=0;MtSr*Wf);$t.startsWith("top")?vr[1]-=cy:$t.startsWith("bottom")&&(vr[1]+=cy),ut[Mt+1]=vr}return new jr(ut)}let we=ie.get("text-variable-anchor");if(we){let He;He=I._unevaluatedLayout.getValue("text-radial-offset")!==void 0?[ie.get("text-radial-offset").evaluate(M,{},D)*Wf,cg]:ie.get("text-offset").evaluate(M,{},D).map(Mt=>Mt*Wf);let ut=[];for(let Mt of we)ut.push(Mt,vM(Mt,He));return new jr(ut)}return null}function mM(I){switch(I){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function u9(I,M,D,X,ie,ve,we,He,ut,Mt,$t){let vr=ve.textMaxSize.evaluate(M,{});vr===void 0&&(vr=we);let Sr=I.layers[0].layout,Dr=Sr.get("icon-offset").evaluate(M,{},$t),Jr=qC(D.horizontal),li=we/24,Hi=I.tilePixelRatio*li,cn=I.tilePixelRatio*vr/24,Za=I.tilePixelRatio*He,Rn=I.tilePixelRatio*Sr.get("symbol-spacing"),La=Sr.get("text-padding")*I.tilePixelRatio,So=function(Xs,Lu,xu,Ou=1){let vc=Xs.get("icon-padding").evaluate(Lu,{},xu),cc=vc&&vc.values;return[cc[0]*Ou,cc[1]*Ou,cc[2]*Ou,cc[3]*Ou]}(Sr,M,$t,I.tilePixelRatio),kl=Sr.get("text-max-angle")/180*Math.PI,mu=Sr.get("text-rotation-alignment")!=="viewport"&&Sr.get("symbol-placement")!=="point",Iu=Sr.get("icon-rotation-alignment")==="map"&&Sr.get("symbol-placement")!=="point",su=Sr.get("symbol-placement"),yl=Rn/2,Eu=Sr.get("icon-text-fit"),bu;X&&Eu!=="none"&&(I.allowVerticalPlacement&&D.vertical&&(bu=_C(X,D.vertical,Eu,Sr.get("icon-text-fit-padding"),Dr,li)),Jr&&(X=_C(X,Jr,Eu,Sr.get("icon-text-fit-padding"),Dr,li)));let _u=(Xs,Lu)=>{Lu.x<0||Lu.x>=Wl||Lu.y<0||Lu.y>=Wl||function(xu,Ou,vc,cc,Ch,$p,ud,Lh,Wd,jd,Xd,Kc,Ph,Cd,fd,Xh,rh,zp,fp,jf,Ac,mc,Ip,Gc,z1){let v0=xu.addToLineVertexArray(Ou,vc),Gv,Qp,Rc,uh,ev=0,mm=0,cp=0,I1=0,bM=-1,Uw=-1,m0={},hg=fn("");if(xu.allowVerticalPlacement&&cc.vertical){let Ld=Lh.layout.get("text-rotate").evaluate(Ac,{},Gc)+90;Rc=new fy(Wd,Ou,jd,Xd,Kc,cc.vertical,Ph,Cd,fd,Ld),ud&&(uh=new fy(Wd,Ou,jd,Xd,Kc,ud,rh,zp,fd,Ld))}if(Ch){let Ld=Lh.layout.get("icon-rotate").evaluate(Ac,{}),tv=Lh.layout.get("icon-text-fit")!=="none",hy=DC(Ch,Ld,Ip,tv),Zd=ud?DC(ud,Ld,Ip,tv):void 0;Qp=new fy(Wd,Ou,jd,Xd,Kc,Ch,rh,zp,!1,Ld),ev=4*hy.length;let Pd=xu.iconSizeData,yv=null;Pd.kind==="source"?(yv=[p0*Lh.layout.get("icon-size").evaluate(Ac,{})],yv[0]>ly&&A(`${xu.layerIds[0]}: Value for "icon-size" is >= ${jx}. Reduce your "icon-size".`)):Pd.kind==="composite"&&(yv=[p0*mc.compositeIconSizes[0].evaluate(Ac,{},Gc),p0*mc.compositeIconSizes[1].evaluate(Ac,{},Gc)],(yv[0]>ly||yv[1]>ly)&&A(`${xu.layerIds[0]}: Value for "icon-size" is >= ${jx}. Reduce your "icon-size".`)),xu.addSymbols(xu.icon,hy,yv,jf,fp,Ac,i.ah.none,Ou,v0.lineStartIndex,v0.lineLength,-1,Gc),bM=xu.icon.placedSymbolArray.length-1,Zd&&(mm=4*Zd.length,xu.addSymbols(xu.icon,Zd,yv,jf,fp,Ac,i.ah.vertical,Ou,v0.lineStartIndex,v0.lineLength,-1,Gc),Uw=xu.icon.placedSymbolArray.length-1)}let Zh=Object.keys(cc.horizontal);for(let Ld of Zh){let tv=cc.horizontal[Ld];if(!Gv){hg=fn(tv.text);let Zd=Lh.layout.get("text-rotate").evaluate(Ac,{},Gc);Gv=new fy(Wd,Ou,jd,Xd,Kc,tv,Ph,Cd,fd,Zd)}let hy=tv.positionedLines.length===1;if(cp+=OC(xu,Ou,tv,$p,Lh,fd,Ac,Xh,v0,cc.vertical?i.ah.horizontal:i.ah.horizontalOnly,hy?Zh:[Ld],m0,bM,mc,Gc),hy)break}cc.vertical&&(I1+=OC(xu,Ou,cc.vertical,$p,Lh,fd,Ac,Xh,v0,i.ah.vertical,["vertical"],m0,Uw,mc,Gc));let h9=Gv?Gv.boxStartIndex:xu.collisionBoxArray.length,Vw=Gv?Gv.boxEndIndex:xu.collisionBoxArray.length,y0=Rc?Rc.boxStartIndex:xu.collisionBoxArray.length,hp=Rc?Rc.boxEndIndex:xu.collisionBoxArray.length,GC=Qp?Qp.boxStartIndex:xu.collisionBoxArray.length,d9=Qp?Qp.boxEndIndex:xu.collisionBoxArray.length,HC=uh?uh.boxStartIndex:xu.collisionBoxArray.length,p9=uh?uh.boxEndIndex:xu.collisionBoxArray.length,mv=-1,rb=(Ld,tv)=>Ld&&Ld.circleDiameter?Math.max(Ld.circleDiameter,tv):tv;mv=rb(Gv,mv),mv=rb(Rc,mv),mv=rb(Qp,mv),mv=rb(uh,mv);let Gw=mv>-1?1:0;Gw&&(mv*=z1/Wf),xu.glyphOffsetArray.length>=E1.MAX_GLYPHS&&A("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Ac.sortKey!==void 0&&xu.addToSortKeyRanges(xu.symbolInstances.length,Ac.sortKey);let wM=BC(Lh,Ac,Gc),[v9,m9]=function(Ld,tv){let hy=Ld.length,Zd=tv==null?void 0:tv.values;if((Zd==null?void 0:Zd.length)>0)for(let Pd=0;Pd=0?m0.right:-1,m0.center>=0?m0.center:-1,m0.left>=0?m0.left:-1,m0.vertical||-1,bM,Uw,hg,h9,Vw,y0,hp,GC,d9,HC,p9,jd,cp,I1,ev,mm,Gw,0,Ph,mv,v9,m9)}(I,Lu,Xs,D,X,ie,bu,I.layers[0],I.collisionBoxArray,M.index,M.sourceLayerIndex,I.index,Hi,[La,La,La,La],mu,ut,Za,So,Iu,Dr,M,ve,Mt,$t,we)};if(su==="line")for(let Xs of LC(M.geometry,0,0,Wl,Wl)){let Lu=o9(Xs,Rn,kl,D.vertical||Jr,X,24,cn,I.overscaling,Wl);for(let xu of Lu)Jr&&f9(I,Jr.text,yl,xu)||_u(Xs,xu)}else if(su==="line-center"){for(let Xs of M.geometry)if(Xs.length>1){let Lu=a9(Xs,kl,D.vertical||Jr,X,24,cn);Lu&&_u(Xs,Lu)}}else if(M.type==="Polygon")for(let Xs of Ys(M.geometry,0)){let Lu=s9(Xs,16);_u(Xs[0],new pm(Lu.x,Lu.y,0))}else if(M.type==="LineString")for(let Xs of M.geometry)_u(Xs,new pm(Xs[0].x,Xs[0].y,0));else if(M.type==="Point")for(let Xs of M.geometry)for(let Lu of Xs)_u([Lu],new pm(Lu.x,Lu.y,0))}function OC(I,M,D,X,ie,ve,we,He,ut,Mt,$t,vr,Sr,Dr,Jr){let li=function(Za,Rn,La,So,kl,mu,Iu,su){let yl=So.layout.get("text-rotate").evaluate(mu,{})*Math.PI/180,Eu=[];for(let bu of Rn.positionedLines)for(let _u of bu.positionedGlyphs){if(!_u.rect)continue;let Xs=_u.rect||{},Lu=pC+1,xu=!0,Ou=1,vc=0,cc=(kl||su)&&_u.vertical,Ch=_u.metrics.advance*_u.scale/2;if(su&&Rn.verticalizable&&(vc=bu.lineOffset/2-(_u.imageName?-(Wf-_u.metrics.width*_u.scale)/2:(_u.scale-1)*Wf)),_u.imageName){let jf=Iu[_u.imageName];xu=jf.sdf,Ou=jf.pixelRatio,Lu=kd/Ou}let $p=kl?[_u.x+Ch,_u.y]:[0,0],ud=kl?[0,0]:[_u.x+Ch+La[0],_u.y+La[1]-vc],Lh=[0,0];cc&&(Lh=ud,ud=[0,0]);let Wd=_u.metrics.isDoubleResolution?2:1,jd=(_u.metrics.left-Lu)*_u.scale-Ch+ud[0],Xd=(-_u.metrics.top-Lu)*_u.scale+ud[1],Kc=jd+Xs.w/Wd*_u.scale/Ou,Ph=Xd+Xs.h/Wd*_u.scale/Ou,Cd=new l(jd,Xd),fd=new l(Kc,Xd),Xh=new l(jd,Ph),rh=new l(Kc,Ph);if(cc){let jf=new l(-Ch,Ch-kh),Ac=-Math.PI/2,mc=Wf/2-Ch,Ip=new l(5-kh-mc,-(_u.imageName?mc:0)),Gc=new l(...Lh);Cd._rotateAround(Ac,jf)._add(Ip)._add(Gc),fd._rotateAround(Ac,jf)._add(Ip)._add(Gc),Xh._rotateAround(Ac,jf)._add(Ip)._add(Gc),rh._rotateAround(Ac,jf)._add(Ip)._add(Gc)}if(yl){let jf=Math.sin(yl),Ac=Math.cos(yl),mc=[Ac,-jf,jf,Ac];Cd._matMult(mc),fd._matMult(mc),Xh._matMult(mc),rh._matMult(mc)}let zp=new l(0,0),fp=new l(0,0);Eu.push({tl:Cd,tr:fd,bl:Xh,br:rh,tex:Xs,writingMode:Rn.writingMode,glyphOffset:$p,sectionIndex:_u.sectionIndex,isSDF:xu,pixelOffsetTL:zp,pixelOffsetBR:fp,minFontScaleX:0,minFontScaleY:0})}return Eu}(0,D,He,ie,ve,we,X,I.allowVerticalPlacement),Hi=I.textSizeData,cn=null;Hi.kind==="source"?(cn=[p0*ie.layout.get("text-size").evaluate(we,{})],cn[0]>ly&&A(`${I.layerIds[0]}: Value for "text-size" is >= ${jx}. Reduce your "text-size".`)):Hi.kind==="composite"&&(cn=[p0*Dr.compositeTextSizes[0].evaluate(we,{},Jr),p0*Dr.compositeTextSizes[1].evaluate(we,{},Jr)],(cn[0]>ly||cn[1]>ly)&&A(`${I.layerIds[0]}: Value for "text-size" is >= ${jx}. Reduce your "text-size".`)),I.addSymbols(I.text,li,cn,He,ve,we,Mt,M,ut.lineStartIndex,ut.lineLength,Sr,Jr);for(let Za of $t)vr[Za]=I.text.placedSymbolArray.length-1;return 4*li.length}function qC(I){for(let M in I)return I[M];return null}function f9(I,M,D,X){let ie=I.compareText;if(M in ie){let ve=ie[M];for(let we=ve.length-1;we>=0;we--)if(X.dist(ve[we])>4;if(ie!==1)throw new Error(`Got v${ie} data when expected v1.`);let ve=NC[15&X];if(!ve)throw new Error("Unrecognized array type.");let[we]=new Uint16Array(M,2,1),[He]=new Uint32Array(M,4,1);return new yM(He,we,ve,M)}constructor(M,D=64,X=Float64Array,ie){if(isNaN(M)||M<0)throw new Error(`Unpexpected numItems value: ${M}.`);this.numItems=+M,this.nodeSize=Math.min(Math.max(+D,2),65535),this.ArrayType=X,this.IndexArrayType=M<65536?Uint16Array:Uint32Array;let ve=NC.indexOf(this.ArrayType),we=2*M*this.ArrayType.BYTES_PER_ELEMENT,He=M*this.IndexArrayType.BYTES_PER_ELEMENT,ut=(8-He%8)%8;if(ve<0)throw new Error(`Unexpected typed array class: ${X}.`);ie&&ie instanceof ArrayBuffer?(this.data=ie,this.ids=new this.IndexArrayType(this.data,8,M),this.coords=new this.ArrayType(this.data,8+He+ut,2*M),this._pos=2*M,this._finished=!0):(this.data=new ArrayBuffer(8+we+He+ut),this.ids=new this.IndexArrayType(this.data,8,M),this.coords=new this.ArrayType(this.data,8+He+ut,2*M),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+ve]),new Uint16Array(this.data,2,1)[0]=D,new Uint32Array(this.data,4,1)[0]=M)}add(M,D){let X=this._pos>>1;return this.ids[X]=X,this.coords[this._pos++]=M,this.coords[this._pos++]=D,X}finish(){let M=this._pos>>1;if(M!==this.numItems)throw new Error(`Added ${M} items when expected ${this.numItems}.`);return Ow(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(M,D,X,ie){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:ve,coords:we,nodeSize:He}=this,ut=[0,ve.length-1,0],Mt=[];for(;ut.length;){let $t=ut.pop()||0,vr=ut.pop()||0,Sr=ut.pop()||0;if(vr-Sr<=He){for(let Hi=Sr;Hi<=vr;Hi++){let cn=we[2*Hi],Za=we[2*Hi+1];cn>=M&&cn<=X&&Za>=D&&Za<=ie&&Mt.push(ve[Hi])}continue}let Dr=Sr+vr>>1,Jr=we[2*Dr],li=we[2*Dr+1];Jr>=M&&Jr<=X&&li>=D&&li<=ie&&Mt.push(ve[Dr]),($t===0?M<=Jr:D<=li)&&(ut.push(Sr),ut.push(Dr-1),ut.push(1-$t)),($t===0?X>=Jr:ie>=li)&&(ut.push(Dr+1),ut.push(vr),ut.push(1-$t))}return Mt}within(M,D,X){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:ie,coords:ve,nodeSize:we}=this,He=[0,ie.length-1,0],ut=[],Mt=X*X;for(;He.length;){let $t=He.pop()||0,vr=He.pop()||0,Sr=He.pop()||0;if(vr-Sr<=we){for(let Hi=Sr;Hi<=vr;Hi++)VC(ve[2*Hi],ve[2*Hi+1],M,D)<=Mt&&ut.push(ie[Hi]);continue}let Dr=Sr+vr>>1,Jr=ve[2*Dr],li=ve[2*Dr+1];VC(Jr,li,M,D)<=Mt&&ut.push(ie[Dr]),($t===0?M-X<=Jr:D-X<=li)&&(He.push(Sr),He.push(Dr-1),He.push(1-$t)),($t===0?M+X>=Jr:D+X>=li)&&(He.push(Dr+1),He.push(vr),He.push(1-$t))}return ut}}function Ow(I,M,D,X,ie,ve){if(ie-X<=D)return;let we=X+ie>>1;UC(I,M,we,X,ie,ve),Ow(I,M,D,X,we-1,1-ve),Ow(I,M,D,we+1,ie,1-ve)}function UC(I,M,D,X,ie,ve){for(;ie>X;){if(ie-X>600){let Mt=ie-X+1,$t=D-X+1,vr=Math.log(Mt),Sr=.5*Math.exp(2*vr/3),Dr=.5*Math.sqrt(vr*Sr*(Mt-Sr)/Mt)*($t-Mt/2<0?-1:1);UC(I,M,D,Math.max(X,Math.floor(D-$t*Sr/Mt+Dr)),Math.min(ie,Math.floor(D+(Mt-$t)*Sr/Mt+Dr)),ve)}let we=M[2*D+ve],He=X,ut=ie;for(eb(I,M,X,D),M[2*ie+ve]>we&&eb(I,M,X,ie);Hewe;)ut--}M[2*X+ve]===we?eb(I,M,X,ut):(ut++,eb(I,M,ut,ie)),ut<=D&&(X=ut+1),D<=ut&&(ie=ut-1)}}function eb(I,M,D,X){gM(I,D,X),gM(M,2*D,2*X),gM(M,2*D+1,2*X+1)}function gM(I,M,D){let X=I[M];I[M]=I[D],I[D]=X}function VC(I,M,D,X){let ie=I-D,ve=M-X;return ie*ie+ve*ve}var qw;i.bg=void 0,(qw=i.bg||(i.bg={})).create="create",qw.load="load",qw.fullLoad="fullLoad";let tb=null,mh=[],_M=1e3/60,xM="loadTime",Nw="fullLoadTime",c9={mark(I){performance.mark(I)},frame(I){let M=I;tb!=null&&mh.push(M-tb),tb=M},clearMetrics(){tb=null,mh=[],performance.clearMeasures(xM),performance.clearMeasures(Nw);for(let I in i.bg)performance.clearMarks(i.bg[I])},getPerformanceMetrics(){performance.measure(xM,i.bg.create,i.bg.load),performance.measure(Nw,i.bg.create,i.bg.fullLoad);let I=performance.getEntriesByName(xM)[0].duration,M=performance.getEntriesByName(Nw)[0].duration,D=mh.length,X=1/(mh.reduce((ve,we)=>ve+we,0)/D/1e3),ie=mh.filter(ve=>ve>_M).reduce((ve,we)=>ve+(we-_M)/_M,0);return{loadTime:I,fullLoadTime:M,fps:X,percentDroppedFrames:ie/(D+ie)*100,totalFrames:D}}};i.$=class extends ir{},i.A=dn,i.B=ki,i.C=function(I){if(U==null){let M=I.navigator?I.navigator.userAgent:null;U=!!I.safari||!(!M||!(/\b(iPad|iPhone|iPod)\b/.test(M)||M.match("Safari")&&!M.match("Chrome")))}return U},i.D=ms,i.E=Ne,i.F=class{constructor(I,M){this.target=I,this.mapId=M,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new fM(()=>this.process()),this.subscription=function(D,X,ie,ve){return D.addEventListener(X,ie,!1),{unsubscribe:()=>{D.removeEventListener(X,ie,!1)}}}(this.target,"message",D=>this.receive(D)),this.globalScope=F(self)?I:window}registerMessageHandler(I,M){this.messageHandlers[I]=M}sendAsync(I,M){return new Promise((D,X)=>{let ie=Math.round(1e18*Math.random()).toString(36).substring(0,10);this.resolveRejects[ie]={resolve:D,reject:X},M&&M.signal.addEventListener("abort",()=>{delete this.resolveRejects[ie];let He={id:ie,type:"",origin:location.origin,targetMapId:I.targetMapId,sourceMapId:this.mapId};this.target.postMessage(He)},{once:!0});let ve=[],we=Object.assign(Object.assign({},I),{id:ie,sourceMapId:this.mapId,origin:location.origin,data:ia(I.data,ve)});this.target.postMessage(we,{transfer:ve})})}receive(I){let M=I.data,D=M.id;if(!(M.origin!=="file://"&&location.origin!=="file://"&&M.origin!=="resource://android"&&location.origin!=="resource://android"&&M.origin!==location.origin||M.targetMapId&&this.mapId!==M.targetMapId)){if(M.type===""){delete this.tasks[D];let X=this.abortControllers[D];return delete this.abortControllers[D],void(X&&X.abort())}if(F(self)||M.mustQueue)return this.tasks[D]=M,this.taskQueue.push(D),void this.invoker.trigger();this.processTask(D,M)}}process(){if(this.taskQueue.length===0)return;let I=this.taskQueue.shift(),M=this.tasks[I];delete this.tasks[I],this.taskQueue.length>0&&this.invoker.trigger(),M&&this.processTask(I,M)}processTask(I,M){return a(this,void 0,void 0,function*(){if(M.type===""){let ie=this.resolveRejects[I];return delete this.resolveRejects[I],ie?void(M.error?ie.reject(pa(M.error)):ie.resolve(pa(M.data))):void 0}if(!this.messageHandlers[M.type])return void this.completeTask(I,new Error(`Could not find a registered handler for ${M.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));let D=pa(M.data),X=new AbortController;this.abortControllers[I]=X;try{let ie=yield this.messageHandlers[M.type](M.sourceMapId,D,X);this.completeTask(I,null,ie)}catch(ie){this.completeTask(I,ie)}})}completeTask(I,M,D){let X=[];delete this.abortControllers[I];let ie={id:I,type:"",sourceMapId:this.mapId,origin:location.origin,error:M?ia(M):null,data:ia(D,X)};this.target.postMessage(ie,{transfer:X})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},i.G=Ce,i.H=function(){var I=new dn(16);return dn!=Float32Array&&(I[1]=0,I[2]=0,I[3]=0,I[4]=0,I[6]=0,I[7]=0,I[8]=0,I[9]=0,I[11]=0,I[12]=0,I[13]=0,I[14]=0),I[0]=1,I[5]=1,I[10]=1,I[15]=1,I},i.I=kw,i.J=function(I,M,D){var X,ie,ve,we,He,ut,Mt,$t,vr,Sr,Dr,Jr,li=D[0],Hi=D[1],cn=D[2];return M===I?(I[12]=M[0]*li+M[4]*Hi+M[8]*cn+M[12],I[13]=M[1]*li+M[5]*Hi+M[9]*cn+M[13],I[14]=M[2]*li+M[6]*Hi+M[10]*cn+M[14],I[15]=M[3]*li+M[7]*Hi+M[11]*cn+M[15]):(ie=M[1],ve=M[2],we=M[3],He=M[4],ut=M[5],Mt=M[6],$t=M[7],vr=M[8],Sr=M[9],Dr=M[10],Jr=M[11],I[0]=X=M[0],I[1]=ie,I[2]=ve,I[3]=we,I[4]=He,I[5]=ut,I[6]=Mt,I[7]=$t,I[8]=vr,I[9]=Sr,I[10]=Dr,I[11]=Jr,I[12]=X*li+He*Hi+vr*cn+M[12],I[13]=ie*li+ut*Hi+Sr*cn+M[13],I[14]=ve*li+Mt*Hi+Dr*cn+M[14],I[15]=we*li+$t*Hi+Jr*cn+M[15]),I},i.K=function(I,M,D){var X=D[0],ie=D[1],ve=D[2];return I[0]=M[0]*X,I[1]=M[1]*X,I[2]=M[2]*X,I[3]=M[3]*X,I[4]=M[4]*ie,I[5]=M[5]*ie,I[6]=M[6]*ie,I[7]=M[7]*ie,I[8]=M[8]*ve,I[9]=M[9]*ve,I[10]=M[10]*ve,I[11]=M[11]*ve,I[12]=M[12],I[13]=M[13],I[14]=M[14],I[15]=M[15],I},i.L=Yi,i.M=function(I,M){let D={};for(let X=0;X{let M=window.document.createElement("video");return M.muted=!0,new Promise(D=>{M.onloadstart=()=>{D(M)};for(let X of I){let ie=window.document.createElement("source");Ee(X)||(M.crossOrigin="Anonymous"),ie.src=X,M.appendChild(ie)}})},i.a4=function(){return _++},i.a5=Ua,i.a6=E1,i.a7=Jn,i.a8=df,i.a9=dM,i.aA=function(I){if(I.type==="custom")return new uM(I);switch(I.type){case"background":return new i9(I);case"circle":return new $i(I);case"fill":return new Ot(I);case"fill-extrusion":return new Ad(I);case"heatmap":return new pl(I);case"hillshade":return new mf(I);case"line":return new ag(I);case"raster":return new Kx(I);case"symbol":return new ug(I)}},i.aB=m,i.aC=function(I,M){if(!I)return[{command:"setStyle",args:[M]}];let D=[];try{if(!bt(I.version,M.version))return[{command:"setStyle",args:[M]}];bt(I.center,M.center)||D.push({command:"setCenter",args:[M.center]}),bt(I.zoom,M.zoom)||D.push({command:"setZoom",args:[M.zoom]}),bt(I.bearing,M.bearing)||D.push({command:"setBearing",args:[M.bearing]}),bt(I.pitch,M.pitch)||D.push({command:"setPitch",args:[M.pitch]}),bt(I.sprite,M.sprite)||D.push({command:"setSprite",args:[M.sprite]}),bt(I.glyphs,M.glyphs)||D.push({command:"setGlyphs",args:[M.glyphs]}),bt(I.transition,M.transition)||D.push({command:"setTransition",args:[M.transition]}),bt(I.light,M.light)||D.push({command:"setLight",args:[M.light]}),bt(I.terrain,M.terrain)||D.push({command:"setTerrain",args:[M.terrain]}),bt(I.sky,M.sky)||D.push({command:"setSky",args:[M.sky]}),bt(I.projection,M.projection)||D.push({command:"setProjection",args:[M.projection]});let X={},ie=[];(function(we,He,ut,Mt){let $t;for($t in He=He||{},we=we||{})Object.prototype.hasOwnProperty.call(we,$t)&&(Object.prototype.hasOwnProperty.call(He,$t)||Ye($t,ut,Mt));for($t in He)Object.prototype.hasOwnProperty.call(He,$t)&&(Object.prototype.hasOwnProperty.call(we,$t)?bt(we[$t],He[$t])||(we[$t].type==="geojson"&&He[$t].type==="geojson"&&At(we,He,$t)?Nt(ut,{command:"setGeoJSONSourceData",args:[$t,He[$t].data]}):kt($t,He,ut,Mt)):nt($t,He,ut))})(I.sources,M.sources,ie,X);let ve=[];I.layers&&I.layers.forEach(we=>{"source"in we&&X[we.source]?D.push({command:"removeLayer",args:[we.id]}):ve.push(we)}),D=D.concat(ie),function(we,He,ut){He=He||[];let Mt=(we=we||[]).map(Bt),$t=He.map(Bt),vr=we.reduce(Zt,{}),Sr=He.reduce(Zt,{}),Dr=Mt.slice(),Jr=Object.create(null),li,Hi,cn,Za,Rn;for(let La=0,So=0;La@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(D,X,ie,ve)=>{let we=ie||ve;return M[X]=!we||we.toLowerCase(),""}),M["max-age"]){let D=parseInt(M["max-age"],10);isNaN(D)?delete M["max-age"]:M["max-age"]=D}return M},i.ab=function(I,M){let D=[];for(let X in I)X in M||D.push(X);return D},i.ac=E,i.ad=function(I,M,D){var X=Math.sin(D),ie=Math.cos(D),ve=M[0],we=M[1],He=M[2],ut=M[3],Mt=M[4],$t=M[5],vr=M[6],Sr=M[7];return M!==I&&(I[8]=M[8],I[9]=M[9],I[10]=M[10],I[11]=M[11],I[12]=M[12],I[13]=M[13],I[14]=M[14],I[15]=M[15]),I[0]=ve*ie+Mt*X,I[1]=we*ie+$t*X,I[2]=He*ie+vr*X,I[3]=ut*ie+Sr*X,I[4]=Mt*ie-ve*X,I[5]=$t*ie-we*X,I[6]=vr*ie-He*X,I[7]=Sr*ie-ut*X,I},i.ae=function(I){var M=new dn(16);return M[0]=I[0],M[1]=I[1],M[2]=I[2],M[3]=I[3],M[4]=I[4],M[5]=I[5],M[6]=I[6],M[7]=I[7],M[8]=I[8],M[9]=I[9],M[10]=I[10],M[11]=I[11],M[12]=I[12],M[13]=I[13],M[14]=I[14],M[15]=I[15],M},i.af=hs,i.ag=function(I,M){let D=0,X=0;if(I.kind==="constant")X=I.layoutSize;else if(I.kind!=="source"){let{interpolationType:ie,minZoom:ve,maxZoom:we}=I,He=ie?E(so.interpolationFactor(ie,M,ve,we),0,1):0;I.kind==="camera"?X=ka.number(I.minSize,I.maxSize,He):D=He}return{uSizeT:D,uSize:X}},i.ai=function(I,{uSize:M,uSizeT:D},{lowerSize:X,upperSize:ie}){return I.kind==="source"?X/p0:I.kind==="composite"?ka.number(X/p0,ie/p0,D):M},i.aj=aM,i.ak=function(I,M,D,X){let ie=M.y-I.y,ve=M.x-I.x,we=X.y-D.y,He=X.x-D.x,ut=we*ve-He*ie;if(ut===0)return null;let Mt=(He*(I.y-D.y)-we*(I.x-D.x))/ut;return new l(I.x+Mt*ve,I.y+Mt*ie)},i.al=LC,i.am=fc,i.an=En,i.ao=function(I){let M=1/0,D=1/0,X=-1/0,ie=-1/0;for(let ve of I)M=Math.min(M,ve.x),D=Math.min(D,ve.y),X=Math.max(X,ve.x),ie=Math.max(ie,ve.y);return[M,D,X,ie]},i.ap=Wf,i.ar=nM,i.as=function(I,M){var D=M[0],X=M[1],ie=M[2],ve=M[3],we=M[4],He=M[5],ut=M[6],Mt=M[7],$t=M[8],vr=M[9],Sr=M[10],Dr=M[11],Jr=M[12],li=M[13],Hi=M[14],cn=M[15],Za=D*He-X*we,Rn=D*ut-ie*we,La=D*Mt-ve*we,So=X*ut-ie*He,kl=X*Mt-ve*He,mu=ie*Mt-ve*ut,Iu=$t*li-vr*Jr,su=$t*Hi-Sr*Jr,yl=$t*cn-Dr*Jr,Eu=vr*Hi-Sr*li,bu=vr*cn-Dr*li,_u=Sr*cn-Dr*Hi,Xs=Za*_u-Rn*bu+La*Eu+So*yl-kl*su+mu*Iu;return Xs?(I[0]=(He*_u-ut*bu+Mt*Eu)*(Xs=1/Xs),I[1]=(ie*bu-X*_u-ve*Eu)*Xs,I[2]=(li*mu-Hi*kl+cn*So)*Xs,I[3]=(Sr*kl-vr*mu-Dr*So)*Xs,I[4]=(ut*yl-we*_u-Mt*su)*Xs,I[5]=(D*_u-ie*yl+ve*su)*Xs,I[6]=(Hi*La-Jr*mu-cn*Rn)*Xs,I[7]=($t*mu-Sr*La+Dr*Rn)*Xs,I[8]=(we*bu-He*yl+Mt*Iu)*Xs,I[9]=(X*yl-D*bu-ve*Iu)*Xs,I[10]=(Jr*kl-li*La+cn*Za)*Xs,I[11]=(vr*La-$t*kl-Dr*Za)*Xs,I[12]=(He*su-we*Eu-ut*Iu)*Xs,I[13]=(D*Eu-X*su+ie*Iu)*Xs,I[14]=(li*Rn-Jr*So-Hi*Za)*Xs,I[15]=($t*So-vr*Rn+Sr*Za)*Xs,I):null},i.at=mM,i.au=zw,i.av=yM,i.aw=function(){let I={},M=ce.$version;for(let D in ce.$root){let X=ce.$root[D];if(X.required){let ie=null;ie=D==="version"?M:X.type==="array"?[]:{},ie!=null&&(I[D]=ie)}}return I},i.ax=va,i.ay=te,i.az=function(I){I=I.slice();let M=Object.create(null);for(let D=0;D25||X<0||X>=1||D<0||D>=1)},i.bc=function(I,M){return I[0]=M[0],I[1]=0,I[2]=0,I[3]=0,I[4]=0,I[5]=M[1],I[6]=0,I[7]=0,I[8]=0,I[9]=0,I[10]=M[2],I[11]=0,I[12]=0,I[13]=0,I[14]=0,I[15]=1,I},i.bd=class extends Dt{},i.be=cM,i.bf=c9,i.bh=de,i.bi=function(I,M){be.REGISTERED_PROTOCOLS[I]=M},i.bj=function(I){delete be.REGISTERED_PROTOCOLS[I]},i.bk=function(I,M){let D={};for(let ie=0;ie_u*Wf)}let su=we?"center":D.get("text-justify").evaluate(Mt,{},I.canonical),yl=D.get("symbol-placement")==="point"?D.get("text-max-width").evaluate(Mt,{},I.canonical)*Wf:1/0,Eu=()=>{I.bucket.allowVerticalPlacement&&is(La)&&(Jr.vertical=Hx(li,I.glyphMap,I.glyphPositions,I.imagePositions,$t,yl,ve,mu,"left",kl,cn,i.ah.vertical,!0,Sr,vr))};if(!we&&Iu){let bu=new Set;if(su==="auto")for(let Xs=0;Xsa(void 0,void 0,void 0,function*(){if(I.byteLength===0)return createImageBitmap(new ImageData(1,1));let M=new Blob([new Uint8Array(I)],{type:"image/png"});try{return createImageBitmap(M)}catch(D){throw new Error(`Could not load image because of ${D.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}}),i.e=L,i.f=I=>new Promise((M,D)=>{let X=new Image;X.onload=()=>{M(X),URL.revokeObjectURL(X.src),X.onload=null,window.requestAnimationFrame(()=>{X.src=j})},X.onerror=()=>D(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));let ie=new Blob([new Uint8Array(I)],{type:"image/png"});X.src=I.byteLength?URL.createObjectURL(ie):j}),i.g=Pe,i.h=(I,M)=>ke(L(I,{type:"json"}),M),i.i=F,i.j=me,i.k=Fe,i.l=(I,M)=>ke(L(I,{type:"arrayBuffer"}),M),i.m=ke,i.n=function(I){return new tM(I).readFields(qQ,[])},i.o=ul,i.p=iM,i.q=le,i.r=Ti,i.s=Ee,i.t=Pi,i.u=gi,i.v=ce,i.w=A,i.x=function([I,M,D]){return M+=90,M*=Math.PI/180,D*=Math.PI/180,{x:I*Math.cos(M)*Math.sin(D),y:I*Math.sin(M)*Math.sin(D),z:I*Math.cos(D)}},i.y=ka,i.z=cs}),r("worker",["./shared"],function(i){"use strict";class a{constructor(xe){this.keyCache={},xe&&this.replace(xe)}replace(xe){this._layerConfigs={},this._layers={},this.update(xe,[])}update(xe,Oe){for(let De of xe){this._layerConfigs[De.id]=De;let ct=this._layers[De.id]=i.aA(De);ct._featureFilter=i.a7(ct.filter),this.keyCache[De.id]&&delete this.keyCache[De.id]}for(let De of Oe)delete this.keyCache[De],delete this._layerConfigs[De],delete this._layers[De];this.familiesBySource={};let Ie=i.bk(Object.values(this._layerConfigs),this.keyCache);for(let De of Ie){let ct=De.map(Pt=>this._layers[Pt.id]),_e=ct[0];if(_e.visibility==="none")continue;let fe=_e.source||"",pe=this.familiesBySource[fe];pe||(pe=this.familiesBySource[fe]={});let mt=_e.sourceLayer||"_geojsonTileLayer",It=pe[mt];It||(It=pe[mt]=[]),It.push(ct)}}}class o{constructor(xe){let Oe={},Ie=[];for(let fe in xe){let pe=xe[fe],mt=Oe[fe]={};for(let It in pe){let Pt=pe[+It];if(!Pt||Pt.bitmap.width===0||Pt.bitmap.height===0)continue;let rr={x:0,y:0,w:Pt.bitmap.width+2,h:Pt.bitmap.height+2};Ie.push(rr),mt[It]={rect:rr,metrics:Pt.metrics}}}let{w:De,h:ct}=i.p(Ie),_e=new i.o({width:De||1,height:ct||1});for(let fe in xe){let pe=xe[fe];for(let mt in pe){let It=pe[+mt];if(!It||It.bitmap.width===0||It.bitmap.height===0)continue;let Pt=Oe[fe][mt].rect;i.o.copy(It.bitmap,_e,{x:0,y:0},{x:Pt.x+1,y:Pt.y+1},It.bitmap)}}this.image=_e,this.positions=Oe}}i.bl("GlyphAtlas",o);class s{constructor(xe){this.tileID=new i.S(xe.tileID.overscaledZ,xe.tileID.wrap,xe.tileID.canonical.z,xe.tileID.canonical.x,xe.tileID.canonical.y),this.uid=xe.uid,this.zoom=xe.zoom,this.pixelRatio=xe.pixelRatio,this.tileSize=xe.tileSize,this.source=xe.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=xe.showCollisionBoxes,this.collectResourceTiming=!!xe.collectResourceTiming,this.returnDependencies=!!xe.returnDependencies,this.promoteId=xe.promoteId,this.inFlightDependencies=[]}parse(xe,Oe,Ie,De){return i._(this,void 0,void 0,function*(){this.status="parsing",this.data=xe,this.collisionBoxArray=new i.a5;let ct=new i.bm(Object.keys(xe.layers).sort()),_e=new i.bn(this.tileID,this.promoteId);_e.bucketLayerIDs=[];let fe={},pe={featureIndex:_e,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:Ie},mt=Oe.familiesBySource[this.source];for(let nn in mt){let ii=xe.layers[nn];if(!ii)continue;ii.version===1&&i.w(`Vector tile source "${this.source}" layer "${nn}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let wi=ct.encode(nn),Gi=[];for(let Ft=0;Ft=gt.maxzoom||gt.visibility!=="none"&&(u(Ft,this.zoom,Ie),(fe[gt.id]=gt.createBucket({index:_e.bucketLayerIDs.length,layers:Ft,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:wi,sourceID:this.source})).populate(Gi,pe,this.tileID.canonical),_e.bucketLayerIDs.push(Ft.map(Ut=>Ut.id)))}}let It=i.aF(pe.glyphDependencies,nn=>Object.keys(nn).map(Number));this.inFlightDependencies.forEach(nn=>nn==null?void 0:nn.abort()),this.inFlightDependencies=[];let Pt=Promise.resolve({});if(Object.keys(It).length){let nn=new AbortController;this.inFlightDependencies.push(nn),Pt=De.sendAsync({type:"GG",data:{stacks:It,source:this.source,tileID:this.tileID,type:"glyphs"}},nn)}let rr=Object.keys(pe.iconDependencies),Wr=Promise.resolve({});if(rr.length){let nn=new AbortController;this.inFlightDependencies.push(nn),Wr=De.sendAsync({type:"GI",data:{icons:rr,source:this.source,tileID:this.tileID,type:"icons"}},nn)}let Nr=Object.keys(pe.patternDependencies),Er=Promise.resolve({});if(Nr.length){let nn=new AbortController;this.inFlightDependencies.push(nn),Er=De.sendAsync({type:"GI",data:{icons:Nr,source:this.source,tileID:this.tileID,type:"patterns"}},nn)}let[Br,mi,Di]=yield Promise.all([Pt,Wr,Er]),Ii=new o(Br),Ci=new i.bo(mi,Di);for(let nn in fe){let ii=fe[nn];ii instanceof i.a6?(u(ii.layers,this.zoom,Ie),i.bp({bucket:ii,glyphMap:Br,glyphPositions:Ii.positions,imageMap:mi,imagePositions:Ci.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):ii.hasPattern&&(ii instanceof i.bq||ii instanceof i.br||ii instanceof i.bs)&&(u(ii.layers,this.zoom,Ie),ii.addFeatures(pe,this.tileID.canonical,Ci.patternPositions))}return this.status="done",{buckets:Object.values(fe).filter(nn=>!nn.isEmpty()),featureIndex:_e,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Ii.image,imageAtlas:Ci,glyphMap:this.returnDependencies?Br:null,iconMap:this.returnDependencies?mi:null,glyphPositions:this.returnDependencies?Ii.positions:null}})}}function u(Re,xe,Oe){let Ie=new i.z(xe);for(let De of Re)De.recalculate(Ie,Oe)}class l{constructor(xe,Oe,Ie){this.actor=xe,this.layerIndex=Oe,this.availableImages=Ie,this.fetching={},this.loading={},this.loaded={}}loadVectorTile(xe,Oe){return i._(this,void 0,void 0,function*(){let Ie=yield i.l(xe.request,Oe);try{return{vectorTile:new i.bt.VectorTile(new i.bu(Ie.data)),rawData:Ie.data,cacheControl:Ie.cacheControl,expires:Ie.expires}}catch(De){let ct=new Uint8Array(Ie.data),_e=`Unable to parse the tile at ${xe.request.url}, `;throw _e+=ct[0]===31&&ct[1]===139?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${De.message}`,new Error(_e)}})}loadTile(xe){return i._(this,void 0,void 0,function*(){let Oe=xe.uid,Ie=!!(xe&&xe.request&&xe.request.collectResourceTiming)&&new i.bv(xe.request),De=new s(xe);this.loading[Oe]=De;let ct=new AbortController;De.abort=ct;try{let _e=yield this.loadVectorTile(xe,ct);if(delete this.loading[Oe],!_e)return null;let fe=_e.rawData,pe={};_e.expires&&(pe.expires=_e.expires),_e.cacheControl&&(pe.cacheControl=_e.cacheControl);let mt={};if(Ie){let Pt=Ie.finish();Pt&&(mt.resourceTiming=JSON.parse(JSON.stringify(Pt)))}De.vectorTile=_e.vectorTile;let It=De.parse(_e.vectorTile,this.layerIndex,this.availableImages,this.actor);this.loaded[Oe]=De,this.fetching[Oe]={rawTileData:fe,cacheControl:pe,resourceTiming:mt};try{let Pt=yield It;return i.e({rawTileData:fe.slice(0)},Pt,pe,mt)}finally{delete this.fetching[Oe]}}catch(_e){throw delete this.loading[Oe],De.status="done",this.loaded[Oe]=De,_e}})}reloadTile(xe){return i._(this,void 0,void 0,function*(){let Oe=xe.uid;if(!this.loaded||!this.loaded[Oe])throw new Error("Should not be trying to reload a tile that was never loaded or has been removed");let Ie=this.loaded[Oe];if(Ie.showCollisionBoxes=xe.showCollisionBoxes,Ie.status==="parsing"){let De=yield Ie.parse(Ie.vectorTile,this.layerIndex,this.availableImages,this.actor),ct;if(this.fetching[Oe]){let{rawTileData:_e,cacheControl:fe,resourceTiming:pe}=this.fetching[Oe];delete this.fetching[Oe],ct=i.e({rawTileData:_e.slice(0)},De,fe,pe)}else ct=De;return ct}if(Ie.status==="done"&&Ie.vectorTile)return Ie.parse(Ie.vectorTile,this.layerIndex,this.availableImages,this.actor)})}abortTile(xe){return i._(this,void 0,void 0,function*(){let Oe=this.loading,Ie=xe.uid;Oe&&Oe[Ie]&&Oe[Ie].abort&&(Oe[Ie].abort.abort(),delete Oe[Ie])})}removeTile(xe){return i._(this,void 0,void 0,function*(){this.loaded&&this.loaded[xe.uid]&&delete this.loaded[xe.uid]})}}class f{constructor(){this.loaded={}}loadTile(xe){return i._(this,void 0,void 0,function*(){let{uid:Oe,encoding:Ie,rawImageData:De,redFactor:ct,greenFactor:_e,blueFactor:fe,baseShift:pe}=xe,mt=De.width+2,It=De.height+2,Pt=i.b(De)?new i.R({width:mt,height:It},yield i.bw(De,-1,-1,mt,It)):De,rr=new i.bx(Oe,Pt,Ie,ct,_e,fe,pe);return this.loaded=this.loaded||{},this.loaded[Oe]=rr,rr})}removeTile(xe){let Oe=this.loaded,Ie=xe.uid;Oe&&Oe[Ie]&&delete Oe[Ie]}}function c(Re,xe){if(Re.length!==0){h(Re[0],xe);for(var Oe=1;Oe=Math.abs(fe)?Oe-pe+fe:fe-pe+Oe,Oe=pe}Oe+Ie>=0!=!!xe&&Re.reverse()}var d=i.by(function Re(xe,Oe){var Ie,De=xe&&xe.type;if(De==="FeatureCollection")for(Ie=0;Ie>31}function F(Re,xe){for(var Oe=Re.loadGeometry(),Ie=Re.type,De=0,ct=0,_e=Oe.length,fe=0;fe<_e;fe++){var pe=Oe[fe],mt=1;Ie===1&&(mt=pe.length),xe.writeVarint(A(1,mt));for(var It=Ie===3?pe.length-1:pe.length,Pt=0;PtRe},H=Math.fround||(N=new Float32Array(1),Re=>(N[0]=+Re,N[0]));var N;let W=3,re=5,ae=6;class be{constructor(xe){this.options=Object.assign(Object.create(j),xe),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(xe){let{log:Oe,minZoom:Ie,maxZoom:De}=this.options;Oe&&console.time("total time");let ct=`prepare ${xe.length} points`;Oe&&console.time(ct),this.points=xe;let _e=[];for(let pe=0;pe=Ie;pe--){let mt=+Date.now();fe=this.trees[pe]=this._createTree(this._cluster(fe,pe)),Oe&&console.log("z%d: %d clusters in %dms",pe,fe.numItems,+Date.now()-mt)}return Oe&&console.timeEnd("total time"),this}getClusters(xe,Oe){let Ie=((xe[0]+180)%360+360)%360-180,De=Math.max(-90,Math.min(90,xe[1])),ct=xe[2]===180?180:((xe[2]+180)%360+360)%360-180,_e=Math.max(-90,Math.min(90,xe[3]));if(xe[2]-xe[0]>=360)Ie=-180,ct=180;else if(Ie>ct){let Pt=this.getClusters([Ie,De,180,_e],Oe),rr=this.getClusters([-180,De,ct,_e],Oe);return Pt.concat(rr)}let fe=this.trees[this._limitZoom(Oe)],pe=fe.range(de(Ie),te(_e),de(ct),te(De)),mt=fe.data,It=[];for(let Pt of pe){let rr=this.stride*Pt;It.push(mt[rr+re]>1?Pe(mt,rr,this.clusterProps):this.points[mt[rr+W]])}return It}getChildren(xe){let Oe=this._getOriginId(xe),Ie=this._getOriginZoom(xe),De="No cluster with the specified id.",ct=this.trees[Ie];if(!ct)throw new Error(De);let _e=ct.data;if(Oe*this.stride>=_e.length)throw new Error(De);let fe=this.options.radius/(this.options.extent*Math.pow(2,Ie-1)),pe=ct.within(_e[Oe*this.stride],_e[Oe*this.stride+1],fe),mt=[];for(let It of pe){let Pt=It*this.stride;_e[Pt+4]===xe&&mt.push(_e[Pt+re]>1?Pe(_e,Pt,this.clusterProps):this.points[_e[Pt+W]])}if(mt.length===0)throw new Error(De);return mt}getLeaves(xe,Oe,Ie){let De=[];return this._appendLeaves(De,xe,Oe=Oe||10,Ie=Ie||0,0),De}getTile(xe,Oe,Ie){let De=this.trees[this._limitZoom(xe)],ct=Math.pow(2,xe),{extent:_e,radius:fe}=this.options,pe=fe/_e,mt=(Ie-pe)/ct,It=(Ie+1+pe)/ct,Pt={features:[]};return this._addTileFeatures(De.range((Oe-pe)/ct,mt,(Oe+1+pe)/ct,It),De.data,Oe,Ie,ct,Pt),Oe===0&&this._addTileFeatures(De.range(1-pe/ct,mt,1,It),De.data,ct,Ie,ct,Pt),Oe===ct-1&&this._addTileFeatures(De.range(0,mt,pe/ct,It),De.data,-1,Ie,ct,Pt),Pt.features.length?Pt:null}getClusterExpansionZoom(xe){let Oe=this._getOriginZoom(xe)-1;for(;Oe<=this.options.maxZoom;){let Ie=this.getChildren(xe);if(Oe++,Ie.length!==1)break;xe=Ie[0].properties.cluster_id}return Oe}_appendLeaves(xe,Oe,Ie,De,ct){let _e=this.getChildren(Oe);for(let fe of _e){let pe=fe.properties;if(pe&&pe.cluster?ct+pe.point_count<=De?ct+=pe.point_count:ct=this._appendLeaves(xe,pe.cluster_id,Ie,De,ct):ct1,It,Pt,rr;if(mt)It=Ce(Oe,pe,this.clusterProps),Pt=Oe[pe],rr=Oe[pe+1];else{let Er=this.points[Oe[pe+W]];It=Er.properties;let[Br,mi]=Er.geometry.coordinates;Pt=de(Br),rr=te(mi)}let Wr={type:1,geometry:[[Math.round(this.options.extent*(Pt*ct-Ie)),Math.round(this.options.extent*(rr*ct-De))]],tags:It},Nr;Nr=mt||this.options.generateId?Oe[pe+W]:this.points[Oe[pe+W]].id,Nr!==void 0&&(Wr.id=Nr),_e.features.push(Wr)}}_limitZoom(xe){return Math.max(this.options.minZoom,Math.min(Math.floor(+xe),this.options.maxZoom+1))}_cluster(xe,Oe){let{radius:Ie,extent:De,reduce:ct,minPoints:_e}=this.options,fe=Ie/(De*Math.pow(2,Oe)),pe=xe.data,mt=[],It=this.stride;for(let Pt=0;PtOe&&(Br+=pe[Di+re])}if(Br>Er&&Br>=_e){let mi,Di=rr*Er,Ii=Wr*Er,Ci=-1,nn=((Pt/It|0)<<5)+(Oe+1)+this.points.length;for(let ii of Nr){let wi=ii*It;if(pe[wi+2]<=Oe)continue;pe[wi+2]=Oe;let Gi=pe[wi+re];Di+=pe[wi]*Gi,Ii+=pe[wi+1]*Gi,pe[wi+4]=nn,ct&&(mi||(mi=this._map(pe,Pt,!0),Ci=this.clusterProps.length,this.clusterProps.push(mi)),ct(mi,this._map(pe,wi)))}pe[Pt+4]=nn,mt.push(Di/Br,Ii/Br,1/0,nn,-1,Br),ct&&mt.push(Ci)}else{for(let mi=0;mi1)for(let mi of Nr){let Di=mi*It;if(!(pe[Di+2]<=Oe)){pe[Di+2]=Oe;for(let Ii=0;Ii>5}_getOriginZoom(xe){return(xe-this.points.length)%32}_map(xe,Oe,Ie){if(xe[Oe+re]>1){let _e=this.clusterProps[xe[Oe+ae]];return Ie?Object.assign({},_e):_e}let De=this.points[xe[Oe+W]].properties,ct=this.options.map(De);return Ie&&ct===De?Object.assign({},ct):ct}}function Pe(Re,xe,Oe){return{type:"Feature",id:Re[xe+W],properties:Ce(Re,xe,Oe),geometry:{type:"Point",coordinates:[(Ie=Re[xe],360*(Ie-.5)),ke(Re[xe+1])]}};var Ie}function Ce(Re,xe,Oe){let Ie=Re[xe+re],De=Ie>=1e4?`${Math.round(Ie/1e3)}k`:Ie>=1e3?Math.round(Ie/100)/10+"k":Ie,ct=Re[xe+ae],_e=ct===-1?{}:Object.assign({},Oe[ct]);return Object.assign(_e,{cluster:!0,cluster_id:Re[xe+W],point_count:Ie,point_count_abbreviated:De})}function de(Re){return Re/360+.5}function te(Re){let xe=Math.sin(Re*Math.PI/180),Oe=.5-.25*Math.log((1+xe)/(1-xe))/Math.PI;return Oe<0?0:Oe>1?1:Oe}function ke(Re){let xe=(180-360*Re)*Math.PI/180;return 360*Math.atan(Math.exp(xe))/Math.PI-90}function Ee(Re,xe,Oe,Ie){let De=Ie,ct=xe+(Oe-xe>>1),_e,fe=Oe-xe,pe=Re[xe],mt=Re[xe+1],It=Re[Oe],Pt=Re[Oe+1];for(let rr=xe+3;rrDe)_e=rr,De=Wr;else if(Wr===De){let Nr=Math.abs(rr-ct);NrIe&&(_e-xe>3&&Ee(Re,xe,_e,Ie),Re[_e+2]=De,Oe-_e>3&&Ee(Re,_e,Oe,Ie))}function Me(Re,xe,Oe,Ie,De,ct){let _e=De-Oe,fe=ct-Ie;if(_e!==0||fe!==0){let pe=((Re-Oe)*_e+(xe-Ie)*fe)/(_e*_e+fe*fe);pe>1?(Oe=De,Ie=ct):pe>0&&(Oe+=_e*pe,Ie+=fe*pe)}return _e=Re-Oe,fe=xe-Ie,_e*_e+fe*fe}function Ue(Re,xe,Oe,Ie){let De={id:Re==null?null:Re,type:xe,geometry:Oe,tags:Ie,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if(xe==="Point"||xe==="MultiPoint"||xe==="LineString")Fe(De,Oe);else if(xe==="Polygon")Fe(De,Oe[0]);else if(xe==="MultiLineString")for(let ct of Oe)Fe(De,ct);else if(xe==="MultiPolygon")for(let ct of Oe)Fe(De,ct[0]);return De}function Fe(Re,xe){for(let Oe=0;Oe0&&(_e+=Ie?(De*It-mt*ct)/2:Math.sqrt(Math.pow(mt-De,2)+Math.pow(It-ct,2))),De=mt,ct=It}let fe=xe.length-3;xe[2]=1,Ee(xe,0,fe,Oe),xe[fe+2]=1,xe.size=Math.abs(_e),xe.start=0,xe.end=xe.size}function Ke(Re,xe,Oe,Ie){for(let De=0;De1?1:Oe}function Nt(Re,xe,Oe,Ie,De,ct,_e,fe){if(Ie/=xe,ct>=(Oe/=xe)&&_e=Ie)return null;let pe=[];for(let mt of Re){let It=mt.geometry,Pt=mt.type,rr=De===0?mt.minX:mt.minY,Wr=De===0?mt.maxX:mt.maxY;if(rr>=Oe&&Wr=Ie)continue;let Nr=[];if(Pt==="Point"||Pt==="MultiPoint")nt(It,Nr,Oe,Ie,De);else if(Pt==="LineString")Ye(It,Nr,Oe,Ie,De,!1,fe.lineMetrics);else if(Pt==="MultiLineString")At(It,Nr,Oe,Ie,De,!1);else if(Pt==="Polygon")At(It,Nr,Oe,Ie,De,!0);else if(Pt==="MultiPolygon")for(let Er of It){let Br=[];At(Er,Br,Oe,Ie,De,!0),Br.length&&Nr.push(Br)}if(Nr.length){if(fe.lineMetrics&&Pt==="LineString"){for(let Er of Nr)pe.push(Ue(mt.id,Pt,Er,mt.tags));continue}Pt!=="LineString"&&Pt!=="MultiLineString"||(Nr.length===1?(Pt="LineString",Nr=Nr[0]):Pt="MultiLineString"),Pt!=="Point"&&Pt!=="MultiPoint"||(Pt=Nr.length===3?"Point":"MultiPoint"),pe.push(Ue(mt.id,Pt,Nr,mt.tags))}}return pe.length?pe:null}function nt(Re,xe,Oe,Ie,De){for(let ct=0;ct=Oe&&_e<=Ie&&St(xe,Re[ct],Re[ct+1],Re[ct+2])}}function Ye(Re,xe,Oe,Ie,De,ct,_e){let fe=kt(Re),pe=De===0?Bt:Zt,mt,It,Pt=Re.start;for(let Br=0;BrOe&&(It=pe(fe,mi,Di,Ci,nn,Oe),_e&&(fe.start=Pt+mt*It)):ii>Ie?wi=Oe&&(It=pe(fe,mi,Di,Ci,nn,Oe),Gi=!0),wi>Ie&&ii<=Ie&&(It=pe(fe,mi,Di,Ci,nn,Ie),Gi=!0),!ct&&Gi&&(_e&&(fe.end=Pt+mt*It),xe.push(fe),fe=kt(Re)),_e&&(Pt+=mt)}let rr=Re.length-3,Wr=Re[rr],Nr=Re[rr+1],Er=De===0?Wr:Nr;Er>=Oe&&Er<=Ie&&St(fe,Wr,Nr,Re[rr+2]),rr=fe.length-3,ct&&rr>=3&&(fe[rr]!==fe[0]||fe[rr+1]!==fe[1])&&St(fe,fe[0],fe[1],fe[2]),fe.length&&xe.push(fe)}function kt(Re){let xe=[];return xe.size=Re.size,xe.start=Re.start,xe.end=Re.end,xe}function At(Re,xe,Oe,Ie,De,ct){for(let _e of Re)Ye(_e,xe,Oe,Ie,De,ct,!1)}function St(Re,xe,Oe,Ie){Re.push(xe,Oe,Ie)}function Bt(Re,xe,Oe,Ie,De,ct){let _e=(ct-xe)/(Ie-xe);return St(Re,ct,Oe+(De-Oe)*_e,1),_e}function Zt(Re,xe,Oe,Ie,De,ct){let _e=(ct-Oe)/(De-Oe);return St(Re,xe+(Ie-xe)*_e,ct,1),_e}function Et(Re,xe){let Oe=[];for(let Ie=0;Ie0&&xe.size<(De?_e:Ie))return void(Oe.numPoints+=xe.length/3);let fe=[];for(let pe=0;pe_e)&&(Oe.numSimplified++,fe.push(xe[pe],xe[pe+1])),Oe.numPoints++;De&&function(pe,mt){let It=0;for(let Pt=0,rr=pe.length,Wr=rr-2;Pt0===mt)for(let Pt=0,rr=pe.length;Pt24)throw new Error("maxZoom should be in the 0-24 range");if(Oe.promoteId&&Oe.generateId)throw new Error("promoteId and generateId cannot be used together.");let De=function(ct,_e){let fe=[];if(ct.type==="FeatureCollection")for(let pe=0;pe1&&console.time("creation"),Wr=this.tiles[rr]=pt(xe,Oe,Ie,De,mt),this.tileCoords.push({z:Oe,x:Ie,y:De}),It)){It>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Oe,Ie,De,Wr.numFeatures,Wr.numPoints,Wr.numSimplified),console.timeEnd("creation"));let Gi=`z${Oe}`;this.stats[Gi]=(this.stats[Gi]||0)+1,this.total++}if(Wr.source=xe,ct==null){if(Oe===mt.indexMaxZoom||Wr.numPoints<=mt.indexMaxPoints)continue}else{if(Oe===mt.maxZoom||Oe===ct)continue;if(ct!=null){let Gi=ct-Oe;if(Ie!==_e>>Gi||De!==fe>>Gi)continue}}if(Wr.source=null,xe.length===0)continue;It>1&&console.time("clipping");let Nr=.5*mt.buffer/mt.extent,Er=.5-Nr,Br=.5+Nr,mi=1+Nr,Di=null,Ii=null,Ci=null,nn=null,ii=Nt(xe,Pt,Ie-Nr,Ie+Br,0,Wr.minX,Wr.maxX,mt),wi=Nt(xe,Pt,Ie+Er,Ie+mi,0,Wr.minX,Wr.maxX,mt);xe=null,ii&&(Di=Nt(ii,Pt,De-Nr,De+Br,1,Wr.minY,Wr.maxY,mt),Ii=Nt(ii,Pt,De+Er,De+mi,1,Wr.minY,Wr.maxY,mt),ii=null),wi&&(Ci=Nt(wi,Pt,De-Nr,De+Br,1,Wr.minY,Wr.maxY,mt),nn=Nt(wi,Pt,De+Er,De+mi,1,Wr.minY,Wr.maxY,mt),wi=null),It>1&&console.timeEnd("clipping"),pe.push(Di||[],Oe+1,2*Ie,2*De),pe.push(Ii||[],Oe+1,2*Ie,2*De+1),pe.push(Ci||[],Oe+1,2*Ie+1,2*De),pe.push(nn||[],Oe+1,2*Ie+1,2*De+1)}}getTile(xe,Oe,Ie){xe=+xe,Oe=+Oe,Ie=+Ie;let De=this.options,{extent:ct,debug:_e}=De;if(xe<0||xe>24)return null;let fe=1<1&&console.log("drilling down to z%d-%d-%d",xe,Oe,Ie);let mt,It=xe,Pt=Oe,rr=Ie;for(;!mt&&It>0;)It--,Pt>>=1,rr>>=1,mt=this.tiles[zt(It,Pt,rr)];return mt&&mt.source?(_e>1&&(console.log("found parent tile z%d-%d-%d",It,Pt,rr),console.time("drilling down")),this.splitTile(mt.source,It,Pt,rr,xe,Oe,Ie),_e>1&&console.timeEnd("drilling down"),this.tiles[pe]?ot(this.tiles[pe],ct):null):null}}function zt(Re,xe,Oe){return 32*((1<{Pt.properties=Wr;let Nr={};for(let Er of rr)Nr[Er]=pe[Er].evaluate(It,Pt);return Nr},_e.reduce=(Wr,Nr)=>{Pt.properties=Nr;for(let Er of rr)It.accumulated=Wr[Er],Wr[Er]=mt[Er].evaluate(It,Pt)},_e}(xe)).load((yield this._pendingData).features):(De=yield this._pendingData,new Qe(De,xe.geojsonVtOptions)),this.loaded={};let ct={};if(Ie){let _e=Ie.finish();_e&&(ct.resourceTiming={},ct.resourceTiming[xe.source]=JSON.parse(JSON.stringify(_e)))}return ct}catch(ct){if(delete this._pendingRequest,i.bB(ct))return{abandoned:!0};throw ct}var De})}getData(){return i._(this,void 0,void 0,function*(){return this._pendingData})}reloadTile(xe){let Oe=this.loaded;return Oe&&Oe[xe.uid]?super.reloadTile(xe):this.loadTile(xe)}loadAndProcessGeoJSON(xe,Oe){return i._(this,void 0,void 0,function*(){let Ie=yield this.loadGeoJSON(xe,Oe);if(delete this._pendingRequest,typeof Ie!="object")throw new Error(`Input data given to '${xe.source}' is not a valid GeoJSON object.`);if(d(Ie,!0),xe.filter){let De=i.bC(xe.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(De.result==="error")throw new Error(De.value.map(_e=>`${_e.key}: ${_e.message}`).join(", "));Ie={type:"FeatureCollection",features:Ie.features.filter(_e=>De.value.evaluate({zoom:0},_e))}}return Ie})}loadGeoJSON(xe,Oe){return i._(this,void 0,void 0,function*(){let{promoteId:Ie}=xe;if(xe.request){let De=yield i.h(xe.request,Oe);return this._dataUpdateable=lr(De.data,Ie)?mr(De.data,Ie):void 0,De.data}if(typeof xe.data=="string")try{let De=JSON.parse(xe.data);return this._dataUpdateable=lr(De,Ie)?mr(De,Ie):void 0,De}catch(De){throw new Error(`Input data given to '${xe.source}' is not a valid GeoJSON object.`)}if(!xe.dataDiff)throw new Error(`Input data given to '${xe.source}' is not a valid GeoJSON object.`);if(!this._dataUpdateable)throw new Error(`Cannot update existing geojson data in ${xe.source}`);return function(De,ct,_e){var fe,pe,mt,It;if(ct.removeAll&&De.clear(),ct.remove)for(let Pt of ct.remove)De.delete(Pt);if(ct.add)for(let Pt of ct.add){let rr=Yt(Pt,_e);rr!=null&&De.set(rr,Pt)}if(ct.update)for(let Pt of ct.update){let rr=De.get(Pt.id);if(rr==null)continue;let Wr=!Pt.removeAllProperties&&(((fe=Pt.removeProperties)===null||fe===void 0?void 0:fe.length)>0||((pe=Pt.addOrUpdateProperties)===null||pe===void 0?void 0:pe.length)>0);if((Pt.newGeometry||Pt.removeAllProperties||Wr)&&(rr=Object.assign({},rr),De.set(Pt.id,rr),Wr&&(rr.properties=Object.assign({},rr.properties))),Pt.newGeometry&&(rr.geometry=Pt.newGeometry),Pt.removeAllProperties)rr.properties={};else if(((mt=Pt.removeProperties)===null||mt===void 0?void 0:mt.length)>0)for(let Nr of Pt.removeProperties)Object.prototype.hasOwnProperty.call(rr.properties,Nr)&&delete rr.properties[Nr];if(((It=Pt.addOrUpdateProperties)===null||It===void 0?void 0:It.length)>0)for(let{key:Nr,value:Er}of Pt.addOrUpdateProperties)rr.properties[Nr]=Er}}(this._dataUpdateable,xe.dataDiff,Ie),{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())}})}removeSource(xe){return i._(this,void 0,void 0,function*(){this._pendingRequest&&this._pendingRequest.abort()})}getClusterExpansionZoom(xe){return this._geoJSONIndex.getClusterExpansionZoom(xe.clusterId)}getClusterChildren(xe){return this._geoJSONIndex.getChildren(xe.clusterId)}getClusterLeaves(xe){return this._geoJSONIndex.getLeaves(xe.clusterId,xe.limit,xe.offset)}}class Ht{constructor(xe){this.self=xe,this.actor=new i.F(xe),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.self.registerWorkerSource=(Oe,Ie)=>{if(this.externalWorkerSourceTypes[Oe])throw new Error(`Worker source with name "${Oe}" already registered.`);this.externalWorkerSourceTypes[Oe]=Ie},this.self.addProtocol=i.bi,this.self.removeProtocol=i.bj,this.self.registerRTLTextPlugin=Oe=>{if(i.bD.isParsed())throw new Error("RTL text plugin already registered.");i.bD.setMethods(Oe)},this.actor.registerMessageHandler("LDT",(Oe,Ie)=>this._getDEMWorkerSource(Oe,Ie.source).loadTile(Ie)),this.actor.registerMessageHandler("RDT",(Oe,Ie)=>i._(this,void 0,void 0,function*(){this._getDEMWorkerSource(Oe,Ie.source).removeTile(Ie)})),this.actor.registerMessageHandler("GCEZ",(Oe,Ie)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Oe,Ie.type,Ie.source).getClusterExpansionZoom(Ie)})),this.actor.registerMessageHandler("GCC",(Oe,Ie)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Oe,Ie.type,Ie.source).getClusterChildren(Ie)})),this.actor.registerMessageHandler("GCL",(Oe,Ie)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Oe,Ie.type,Ie.source).getClusterLeaves(Ie)})),this.actor.registerMessageHandler("LD",(Oe,Ie)=>this._getWorkerSource(Oe,Ie.type,Ie.source).loadData(Ie)),this.actor.registerMessageHandler("GD",(Oe,Ie)=>this._getWorkerSource(Oe,Ie.type,Ie.source).getData()),this.actor.registerMessageHandler("LT",(Oe,Ie)=>this._getWorkerSource(Oe,Ie.type,Ie.source).loadTile(Ie)),this.actor.registerMessageHandler("RT",(Oe,Ie)=>this._getWorkerSource(Oe,Ie.type,Ie.source).reloadTile(Ie)),this.actor.registerMessageHandler("AT",(Oe,Ie)=>this._getWorkerSource(Oe,Ie.type,Ie.source).abortTile(Ie)),this.actor.registerMessageHandler("RMT",(Oe,Ie)=>this._getWorkerSource(Oe,Ie.type,Ie.source).removeTile(Ie)),this.actor.registerMessageHandler("RS",(Oe,Ie)=>i._(this,void 0,void 0,function*(){if(!this.workerSources[Oe]||!this.workerSources[Oe][Ie.type]||!this.workerSources[Oe][Ie.type][Ie.source])return;let De=this.workerSources[Oe][Ie.type][Ie.source];delete this.workerSources[Oe][Ie.type][Ie.source],De.removeSource!==void 0&&De.removeSource(Ie)})),this.actor.registerMessageHandler("RM",Oe=>i._(this,void 0,void 0,function*(){delete this.layerIndexes[Oe],delete this.availableImages[Oe],delete this.workerSources[Oe],delete this.demWorkerSources[Oe]})),this.actor.registerMessageHandler("SR",(Oe,Ie)=>i._(this,void 0,void 0,function*(){this.referrer=Ie})),this.actor.registerMessageHandler("SRPS",(Oe,Ie)=>this._syncRTLPluginState(Oe,Ie)),this.actor.registerMessageHandler("IS",(Oe,Ie)=>i._(this,void 0,void 0,function*(){this.self.importScripts(Ie)})),this.actor.registerMessageHandler("SI",(Oe,Ie)=>this._setImages(Oe,Ie)),this.actor.registerMessageHandler("UL",(Oe,Ie)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Oe).update(Ie.layers,Ie.removedIds)})),this.actor.registerMessageHandler("SL",(Oe,Ie)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Oe).replace(Ie)}))}_setImages(xe,Oe){return i._(this,void 0,void 0,function*(){this.availableImages[xe]=Oe;for(let Ie in this.workerSources[xe]){let De=this.workerSources[xe][Ie];for(let ct in De)De[ct].availableImages=Oe}})}_syncRTLPluginState(xe,Oe){return i._(this,void 0,void 0,function*(){if(i.bD.isParsed())return i.bD.getState();if(Oe.pluginStatus!=="loading")return i.bD.setState(Oe),Oe;let Ie=Oe.pluginURL;if(this.self.importScripts(Ie),i.bD.isParsed()){let De={pluginStatus:"loaded",pluginURL:Ie};return i.bD.setState(De),De}throw i.bD.setState({pluginStatus:"error",pluginURL:""}),new Error(`RTL Text Plugin failed to import scripts from ${Ie}`)})}_getAvailableImages(xe){let Oe=this.availableImages[xe];return Oe||(Oe=[]),Oe}_getLayerIndex(xe){let Oe=this.layerIndexes[xe];return Oe||(Oe=this.layerIndexes[xe]=new a),Oe}_getWorkerSource(xe,Oe,Ie){if(this.workerSources[xe]||(this.workerSources[xe]={}),this.workerSources[xe][Oe]||(this.workerSources[xe][Oe]={}),!this.workerSources[xe][Oe][Ie]){let De={sendAsync:(ct,_e)=>(ct.targetMapId=xe,this.actor.sendAsync(ct,_e))};switch(Oe){case"vector":this.workerSources[xe][Oe][Ie]=new l(De,this._getLayerIndex(xe),this._getAvailableImages(xe));break;case"geojson":this.workerSources[xe][Oe][Ie]=new _r(De,this._getLayerIndex(xe),this._getAvailableImages(xe));break;default:this.workerSources[xe][Oe][Ie]=new this.externalWorkerSourceTypes[Oe](De,this._getLayerIndex(xe),this._getAvailableImages(xe))}}return this.workerSources[xe][Oe][Ie]}_getDEMWorkerSource(xe,Oe){return this.demWorkerSources[xe]||(this.demWorkerSources[xe]={}),this.demWorkerSources[xe][Oe]||(this.demWorkerSources[xe][Oe]=new f),this.demWorkerSources[xe][Oe]}}return i.i(self)&&(self.worker=new Ht(self)),Ht}),r("index",["exports","./shared"],function(i,a){"use strict";var o="4.7.1";let s,u,l={now:typeof performance!="undefined"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frameAsync:le=>new Promise((w,q)=>{let Q=requestAnimationFrame(w);le.signal.addEventListener("abort",()=>{cancelAnimationFrame(Q),q(a.c())})}),getImageData(le,w=0){return this.getImageCanvasContext(le).getImageData(-w,-w,le.width+2*w,le.height+2*w)},getImageCanvasContext(le){let w=window.document.createElement("canvas"),q=w.getContext("2d",{willReadFrequently:!0});if(!q)throw new Error("failed to create canvas 2d context");return w.width=le.width,w.height=le.height,q.drawImage(le,0,0,le.width,le.height),q},resolveURL:le=>(s||(s=document.createElement("a")),s.href=le,s.href),hardwareConcurrency:typeof navigator!="undefined"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(u==null&&(u=matchMedia("(prefers-reduced-motion: reduce)")),u.matches)}};class f{static testProp(w){if(!f.docStyle)return w[0];for(let q=0;q{window.removeEventListener("click",f.suppressClickInternal,!0)},0)}static getScale(w){let q=w.getBoundingClientRect();return{x:q.width/w.offsetWidth||1,y:q.height/w.offsetHeight||1,boundingClientRect:q}}static getPoint(w,q,Q){let ee=q.boundingClientRect;return new a.P((Q.clientX-ee.left)/q.x-w.clientLeft,(Q.clientY-ee.top)/q.y-w.clientTop)}static mousePos(w,q){let Q=f.getScale(w);return f.getPoint(w,Q,q)}static touchPos(w,q){let Q=[],ee=f.getScale(w);for(let ue=0;ue{h&&b(h),h=null,x=!0},d.onerror=()=>{p=!0,h=null},d.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="),function(le){let w,q,Q,ee;le.resetRequestQueue=()=>{w=[],q=0,Q=0,ee={}},le.addThrottleControl=yt=>{let Dt=Q++;return ee[Dt]=yt,Dt},le.removeThrottleControl=yt=>{delete ee[yt],Ve()},le.getImage=(yt,Dt,ir=!0)=>new Promise((or,kr)=>{c.supported&&(yt.headers||(yt.headers={}),yt.headers.accept="image/webp,*/*"),a.e(yt,{type:"image"}),w.push({abortController:Dt,requestParameters:yt,supportImageRefresh:ir,state:"queued",onError:Vr=>{kr(Vr)},onSuccess:Vr=>{or(Vr)}}),Ve()});let ue=yt=>a._(this,void 0,void 0,function*(){yt.state="running";let{requestParameters:Dt,supportImageRefresh:ir,onError:or,onSuccess:kr,abortController:Vr}=yt,he=ir===!1&&!a.i(self)&&!a.g(Dt.url)&&(!Dt.headers||Object.keys(Dt.headers).reduce((Ge,lt)=>Ge&<==="accept",!0));q++;let Se=he?et(Dt,Vr):a.m(Dt,Vr);try{let Ge=yield Se;delete yt.abortController,yt.state="completed",Ge.data instanceof HTMLImageElement||a.b(Ge.data)?kr(Ge):Ge.data&&kr({data:yield(qe=Ge.data,typeof createImageBitmap=="function"?a.d(qe):a.f(qe)),cacheControl:Ge.cacheControl,expires:Ge.expires})}catch(Ge){delete yt.abortController,or(Ge)}finally{q--,Ve()}var qe}),Ve=()=>{let yt=(()=>{for(let Dt of Object.keys(ee))if(ee[Dt]())return!0;return!1})()?a.a.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:a.a.MAX_PARALLEL_IMAGE_REQUESTS;for(let Dt=q;Dt0;Dt++){let ir=w.shift();ir.abortController.signal.aborted?Dt--:ue(ir)}},et=(yt,Dt)=>new Promise((ir,or)=>{let kr=new Image,Vr=yt.url,he=yt.credentials;he&&he==="include"?kr.crossOrigin="use-credentials":(he&&he==="same-origin"||!a.s(Vr))&&(kr.crossOrigin="anonymous"),Dt.signal.addEventListener("abort",()=>{kr.src="",or(a.c())}),kr.fetchPriority="high",kr.onload=()=>{kr.onerror=kr.onload=null,ir({data:kr})},kr.onerror=()=>{kr.onerror=kr.onload=null,Dt.signal.aborted||or(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))},kr.src=Vr})}(v||(v={})),v.resetRequestQueue();class k{constructor(w){this._transformRequestFn=w}transformRequest(w,q){return this._transformRequestFn&&this._transformRequestFn(w,q)||{url:w}}setTransformRequest(w){this._transformRequestFn=w}}function E(le){var w=new a.A(3);return w[0]=le[0],w[1]=le[1],w[2]=le[2],w}var T,L=function(le,w,q){return le[0]=w[0]-q[0],le[1]=w[1]-q[1],le[2]=w[2]-q[2],le};T=new a.A(3),a.A!=Float32Array&&(T[0]=0,T[1]=0,T[2]=0);var _=function(le){var w=le[0],q=le[1];return w*w+q*q};function C(le){let w=[];if(typeof le=="string")w.push({id:"default",url:le});else if(le&&le.length>0){let q=[];for(let{id:Q,url:ee}of le){let ue=`${Q}${ee}`;q.indexOf(ue)===-1&&(q.push(ue),w.push({id:Q,url:ee}))}}return w}function S(le,w,q){let Q=le.split("?");return Q[0]+=`${w}${q}`,Q.join("?")}(function(){var le=new a.A(2);a.A!=Float32Array&&(le[0]=0,le[1]=0)})();class m{constructor(w,q,Q,ee){this.context=w,this.format=Q,this.texture=w.gl.createTexture(),this.update(q,ee)}update(w,q,Q){let{width:ee,height:ue}=w,Ve=!(this.size&&this.size[0]===ee&&this.size[1]===ue||Q),{context:et}=this,{gl:yt}=et;if(this.useMipmap=!!(q&&q.useMipmap),yt.bindTexture(yt.TEXTURE_2D,this.texture),et.pixelStoreUnpackFlipY.set(!1),et.pixelStoreUnpack.set(1),et.pixelStoreUnpackPremultiplyAlpha.set(this.format===yt.RGBA&&(!q||q.premultiply!==!1)),Ve)this.size=[ee,ue],w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?yt.texImage2D(yt.TEXTURE_2D,0,this.format,this.format,yt.UNSIGNED_BYTE,w):yt.texImage2D(yt.TEXTURE_2D,0,this.format,ee,ue,0,this.format,yt.UNSIGNED_BYTE,w.data);else{let{x:Dt,y:ir}=Q||{x:0,y:0};w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?yt.texSubImage2D(yt.TEXTURE_2D,0,Dt,ir,yt.RGBA,yt.UNSIGNED_BYTE,w):yt.texSubImage2D(yt.TEXTURE_2D,0,Dt,ir,ee,ue,yt.RGBA,yt.UNSIGNED_BYTE,w.data)}this.useMipmap&&this.isSizePowerOfTwo()&&yt.generateMipmap(yt.TEXTURE_2D)}bind(w,q,Q){let{context:ee}=this,{gl:ue}=ee;ue.bindTexture(ue.TEXTURE_2D,this.texture),Q!==ue.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(Q=ue.LINEAR),w!==this.filter&&(ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_MAG_FILTER,w),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_MIN_FILTER,Q||w),this.filter=w),q!==this.wrap&&(ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_WRAP_S,q),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_WRAP_T,q),this.wrap=q)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){let{gl:w}=this.context;w.deleteTexture(this.texture),this.texture=null}}function P(le){let{userImage:w}=le;return!!(w&&w.render&&w.render())&&(le.data.replace(new Uint8Array(w.data.buffer)),!0)}class A extends a.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new a.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(w){if(this.loaded!==w&&(this.loaded=w,w)){for(let{ids:q,promiseResolve:Q}of this.requestors)Q(this._getImagesForIds(q));this.requestors=[]}}getImage(w){let q=this.images[w];if(q&&!q.data&&q.spriteData){let Q=q.spriteData;q.data=new a.R({width:Q.width,height:Q.height},Q.context.getImageData(Q.x,Q.y,Q.width,Q.height).data),q.spriteData=null}return q}addImage(w,q){if(this.images[w])throw new Error(`Image id ${w} already exist, use updateImage instead`);this._validate(w,q)&&(this.images[w]=q)}_validate(w,q){let Q=!0,ee=q.data||q.spriteData;return this._validateStretch(q.stretchX,ee&&ee.width)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchX" value`))),Q=!1),this._validateStretch(q.stretchY,ee&&ee.height)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchY" value`))),Q=!1),this._validateContent(q.content,q)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "content" value`))),Q=!1),Q}_validateStretch(w,q){if(!w)return!0;let Q=0;for(let ee of w){if(ee[0]{let ee=!0;if(!this.isLoaded())for(let ue of w)this.images[ue]||(ee=!1);this.isLoaded()||ee?q(this._getImagesForIds(w)):this.requestors.push({ids:w,promiseResolve:q})})}_getImagesForIds(w){let q={};for(let Q of w){let ee=this.getImage(Q);ee||(this.fire(new a.k("styleimagemissing",{id:Q})),ee=this.getImage(Q)),ee?q[Q]={data:ee.data.clone(),pixelRatio:ee.pixelRatio,sdf:ee.sdf,version:ee.version,stretchX:ee.stretchX,stretchY:ee.stretchY,content:ee.content,textFitWidth:ee.textFitWidth,textFitHeight:ee.textFitHeight,hasRenderCallback:!!(ee.userImage&&ee.userImage.render)}:a.w(`Image "${Q}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}return q}getPixelSize(){let{width:w,height:q}=this.atlasImage;return{width:w,height:q}}getPattern(w){let q=this.patterns[w],Q=this.getImage(w);if(!Q)return null;if(q&&q.position.version===Q.version)return q.position;if(q)q.position.version=Q.version;else{let ee={w:Q.data.width+2,h:Q.data.height+2,x:0,y:0},ue=new a.I(ee,Q);this.patterns[w]={bin:ee,position:ue}}return this._updatePatternAtlas(),this.patterns[w].position}bind(w){let q=w.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new m(w,this.atlasImage,q.RGBA),this.atlasTexture.bind(q.LINEAR,q.CLAMP_TO_EDGE)}_updatePatternAtlas(){let w=[];for(let ue in this.patterns)w.push(this.patterns[ue].bin);let{w:q,h:Q}=a.p(w),ee=this.atlasImage;ee.resize({width:q||1,height:Q||1});for(let ue in this.patterns){let{bin:Ve}=this.patterns[ue],et=Ve.x+1,yt=Ve.y+1,Dt=this.getImage(ue).data,ir=Dt.width,or=Dt.height;a.R.copy(Dt,ee,{x:0,y:0},{x:et,y:yt},{width:ir,height:or}),a.R.copy(Dt,ee,{x:0,y:or-1},{x:et,y:yt-1},{width:ir,height:1}),a.R.copy(Dt,ee,{x:0,y:0},{x:et,y:yt+or},{width:ir,height:1}),a.R.copy(Dt,ee,{x:ir-1,y:0},{x:et-1,y:yt},{width:1,height:or}),a.R.copy(Dt,ee,{x:0,y:0},{x:et+ir,y:yt},{width:1,height:or})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(w){for(let q of w){if(this.callbackDispatchedThisFrame[q])continue;this.callbackDispatchedThisFrame[q]=!0;let Q=this.getImage(q);Q||a.w(`Image with ID: "${q}" was not found`),P(Q)&&this.updateImage(q,Q)}}}let B=1e20;function F(le,w,q,Q,ee,ue,Ve,et,yt){for(let Dt=w;Dt-1);yt++,ue[yt]=et,Ve[yt]=Dt,Ve[yt+1]=B}for(let et=0,yt=0;et65535)throw new Error("glyphs > 65535 not supported");if(Q.ranges[ue])return{stack:w,id:q,glyph:ee};if(!this.url)throw new Error("glyphsUrl is not set");if(!Q.requests[ue]){let et=G.loadGlyphRange(w,ue,this.url,this.requestManager);Q.requests[ue]=et}let Ve=yield Q.requests[ue];for(let et in Ve)this._doesCharSupportLocalGlyph(+et)||(Q.glyphs[+et]=Ve[+et]);return Q.ranges[ue]=!0,{stack:w,id:q,glyph:Ve[q]||null}})}_doesCharSupportLocalGlyph(w){return!!this.localIdeographFontFamily&&new RegExp("\\p{Ideo}|\\p{sc=Hang}|\\p{sc=Hira}|\\p{sc=Kana}","u").test(String.fromCodePoint(w))}_tinySDF(w,q,Q){let ee=this.localIdeographFontFamily;if(!ee||!this._doesCharSupportLocalGlyph(Q))return;let ue=w.tinySDF;if(!ue){let et="400";/bold/i.test(q)?et="900":/medium/i.test(q)?et="500":/light/i.test(q)&&(et="200"),ue=w.tinySDF=new G.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:ee,fontWeight:et})}let Ve=ue.draw(String.fromCharCode(Q));return{id:Q,bitmap:new a.o({width:Ve.width||60,height:Ve.height||60},Ve.data),metrics:{width:Ve.glyphWidth/2||24,height:Ve.glyphHeight/2||24,left:Ve.glyphLeft/2+.5||0,top:Ve.glyphTop/2-27.5||-8,advance:Ve.glyphAdvance/2||24,isDoubleResolution:!0}}}}G.loadGlyphRange=function(le,w,q,Q){return a._(this,void 0,void 0,function*(){let ee=256*w,ue=ee+255,Ve=Q.transformRequest(q.replace("{fontstack}",le).replace("{range}",`${ee}-${ue}`),"Glyphs"),et=yield a.l(Ve,new AbortController);if(!et||!et.data)throw new Error(`Could not load glyph range. range: ${w}, ${ee}-${ue}`);let yt={};for(let Dt of a.n(et.data))yt[Dt.id]=Dt;return yt})},G.TinySDF=class{constructor({fontSize:le=24,buffer:w=3,radius:q=8,cutoff:Q=.25,fontFamily:ee="sans-serif",fontWeight:ue="normal",fontStyle:Ve="normal"}={}){this.buffer=w,this.cutoff=Q,this.radius=q;let et=this.size=le+4*w,yt=this._createCanvas(et),Dt=this.ctx=yt.getContext("2d",{willReadFrequently:!0});Dt.font=`${Ve} ${ue} ${le}px ${ee}`,Dt.textBaseline="alphabetic",Dt.textAlign="left",Dt.fillStyle="black",this.gridOuter=new Float64Array(et*et),this.gridInner=new Float64Array(et*et),this.f=new Float64Array(et),this.z=new Float64Array(et+1),this.v=new Uint16Array(et)}_createCanvas(le){let w=document.createElement("canvas");return w.width=w.height=le,w}draw(le){let{width:w,actualBoundingBoxAscent:q,actualBoundingBoxDescent:Q,actualBoundingBoxLeft:ee,actualBoundingBoxRight:ue}=this.ctx.measureText(le),Ve=Math.ceil(q),et=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(ue-ee))),yt=Math.min(this.size-this.buffer,Ve+Math.ceil(Q)),Dt=et+2*this.buffer,ir=yt+2*this.buffer,or=Math.max(Dt*ir,0),kr=new Uint8ClampedArray(or),Vr={data:kr,width:Dt,height:ir,glyphWidth:et,glyphHeight:yt,glyphTop:Ve,glyphLeft:0,glyphAdvance:w};if(et===0||yt===0)return Vr;let{ctx:he,buffer:Se,gridInner:qe,gridOuter:Ge}=this;he.clearRect(Se,Se,et,yt),he.fillText(le,Se,Se+Ve);let lt=he.getImageData(Se,Se,et,yt);Ge.fill(B,0,or),qe.fill(0,0,or);for(let tt=0;tt0?cr*cr:0,qe[nr]=cr<0?cr*cr:0}}F(Ge,0,0,Dt,ir,Dt,this.f,this.v,this.z),F(qe,Se,Se,et,yt,Dt,this.f,this.v,this.z);for(let tt=0;tt1&&(yt=w[++et]);let ir=Math.abs(Dt-yt.left),or=Math.abs(Dt-yt.right),kr=Math.min(ir,or),Vr,he=ue/Q*(ee+1);if(yt.isDash){let Se=ee-Math.abs(he);Vr=Math.sqrt(kr*kr+Se*Se)}else Vr=ee-Math.sqrt(kr*kr+he*he);this.data[Ve+Dt]=Math.max(0,Math.min(255,Vr+128))}}}addRegularDash(w){for(let et=w.length-1;et>=0;--et){let yt=w[et],Dt=w[et+1];yt.zeroLength?w.splice(et,1):Dt&&Dt.isDash===yt.isDash&&(Dt.left=yt.left,w.splice(et,1))}let q=w[0],Q=w[w.length-1];q.isDash===Q.isDash&&(q.left=Q.left-this.width,Q.right=q.right+this.width);let ee=this.width*this.nextRow,ue=0,Ve=w[ue];for(let et=0;et1&&(Ve=w[++ue]);let yt=Math.abs(et-Ve.left),Dt=Math.abs(et-Ve.right),ir=Math.min(yt,Dt);this.data[ee+et]=Math.max(0,Math.min(255,(Ve.isDash?ir:-ir)+128))}}addDash(w,q){let Q=q?7:0,ee=2*Q+1;if(this.nextRow+ee>this.height)return a.w("LineAtlas out of space"),null;let ue=0;for(let et=0;et{q.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[be]}numActive(){return Object.keys(this.active).length}}let Ce=Math.floor(l.hardwareConcurrency/2),de,te;function ke(){return de||(de=new Pe),de}Pe.workerCount=a.C(globalThis)?Math.max(Math.min(Ce,3),1):1;class Ee{constructor(w,q){this.workerPool=w,this.actors=[],this.currentActor=0,this.id=q;let Q=this.workerPool.acquire(q);for(let ee=0;ee{q.remove()}),this.actors=[],w&&this.workerPool.release(this.id)}registerMessageHandler(w,q){for(let Q of this.actors)Q.registerMessageHandler(w,q)}}function Me(){return te||(te=new Ee(ke(),a.G),te.registerMessageHandler("GR",(le,w,q)=>a.m(w,q))),te}function Ue(le,w){let q=a.H();return a.J(q,q,[1,1,0]),a.K(q,q,[.5*le.width,.5*le.height,1]),a.L(q,q,le.calculatePosMatrix(w.toUnwrapped()))}function Fe(le,w,q,Q,ee,ue){let Ve=function(or,kr,Vr){if(or)for(let he of or){let Se=kr[he];if(Se&&Se.source===Vr&&Se.type==="fill-extrusion")return!0}else for(let he in kr){let Se=kr[he];if(Se.source===Vr&&Se.type==="fill-extrusion")return!0}return!1}(ee&&ee.layers,w,le.id),et=ue.maxPitchScaleFactor(),yt=le.tilesIn(Q,et,Ve);yt.sort(me);let Dt=[];for(let or of yt)Dt.push({wrappedTileID:or.tileID.wrapped().key,queryResults:or.tile.queryRenderedFeatures(w,q,le._state,or.queryGeometry,or.cameraQueryGeometry,or.scale,ee,ue,et,Ue(le.transform,or.tileID))});let ir=function(or){let kr={},Vr={};for(let he of or){let Se=he.queryResults,qe=he.wrappedTileID,Ge=Vr[qe]=Vr[qe]||{};for(let lt in Se){let tt=Se[lt],vt=Ge[lt]=Ge[lt]||{},Gt=kr[lt]=kr[lt]||[];for(let nr of tt)vt[nr.featureIndex]||(vt[nr.featureIndex]=!0,Gt.push(nr))}}return kr}(Dt);for(let or in ir)ir[or].forEach(kr=>{let Vr=kr.feature,he=le.getFeatureState(Vr.layer["source-layer"],Vr.id);Vr.source=Vr.layer.source,Vr.layer["source-layer"]&&(Vr.sourceLayer=Vr.layer["source-layer"]),Vr.state=he});return ir}function me(le,w){let q=le.tileID,Q=w.tileID;return q.overscaledZ-Q.overscaledZ||q.canonical.y-Q.canonical.y||q.wrap-Q.wrap||q.canonical.x-Q.canonical.x}function Ne(le,w,q){return a._(this,void 0,void 0,function*(){let Q=le;if(le.url?Q=(yield a.h(w.transformRequest(le.url,"Source"),q)).data:yield l.frameAsync(q),!Q)return null;let ee=a.M(a.e(Q,le),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in Q&&Q.vector_layers&&(ee.vectorLayerIds=Q.vector_layers.map(ue=>ue.id)),ee})}class ce{constructor(w,q){w&&(q?this.setSouthWest(w).setNorthEast(q):Array.isArray(w)&&(w.length===4?this.setSouthWest([w[0],w[1]]).setNorthEast([w[2],w[3]]):this.setSouthWest(w[0]).setNorthEast(w[1])))}setNorthEast(w){return this._ne=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}setSouthWest(w){return this._sw=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}extend(w){let q=this._sw,Q=this._ne,ee,ue;if(w instanceof a.N)ee=w,ue=w;else{if(!(w instanceof ce))return Array.isArray(w)?w.length===4||w.every(Array.isArray)?this.extend(ce.convert(w)):this.extend(a.N.convert(w)):w&&("lng"in w||"lon"in w)&&"lat"in w?this.extend(a.N.convert(w)):this;if(ee=w._sw,ue=w._ne,!ee||!ue)return this}return q||Q?(q.lng=Math.min(ee.lng,q.lng),q.lat=Math.min(ee.lat,q.lat),Q.lng=Math.max(ue.lng,Q.lng),Q.lat=Math.max(ue.lat,Q.lat)):(this._sw=new a.N(ee.lng,ee.lat),this._ne=new a.N(ue.lng,ue.lat)),this}getCenter(){return new a.N((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new a.N(this.getWest(),this.getNorth())}getSouthEast(){return new a.N(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(w){let{lng:q,lat:Q}=a.N.convert(w),ee=this._sw.lng<=q&&q<=this._ne.lng;return this._sw.lng>this._ne.lng&&(ee=this._sw.lng>=q&&q>=this._ne.lng),this._sw.lat<=Q&&Q<=this._ne.lat&&ee}static convert(w){return w instanceof ce?w:w&&new ce(w)}static fromLngLat(w,q=0){let Q=360*q/40075017,ee=Q/Math.cos(Math.PI/180*w.lat);return new ce(new a.N(w.lng-ee,w.lat-Q),new a.N(w.lng+ee,w.lat+Q))}adjustAntiMeridian(){let w=new a.N(this._sw.lng,this._sw.lat),q=new a.N(this._ne.lng,this._ne.lat);return new ce(w,w.lng>q.lng?new a.N(q.lng+360,q.lat):q)}}class Ke{constructor(w,q,Q){this.bounds=ce.convert(this.validateBounds(w)),this.minzoom=q||0,this.maxzoom=Q||24}validateBounds(w){return Array.isArray(w)&&w.length===4?[Math.max(-180,w[0]),Math.max(-90,w[1]),Math.min(180,w[2]),Math.min(90,w[3])]:[-180,-90,180,90]}contains(w){let q=Math.pow(2,w.z),Q=Math.floor(a.O(this.bounds.getWest())*q),ee=Math.floor(a.Q(this.bounds.getNorth())*q),ue=Math.ceil(a.O(this.bounds.getEast())*q),Ve=Math.ceil(a.Q(this.bounds.getSouth())*q);return w.x>=Q&&w.x=ee&&w.y{this._options.tiles=w}),this}setUrl(w){return this.setSourceProperty(()=>{this.url=w,this._options.url=w}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}serialize(){return a.e({},this._options)}loadTile(w){return a._(this,void 0,void 0,function*(){let q=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q={request:this.map._requestManager.transformRequest(q,"Tile"),uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,tileSize:this.tileSize*w.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};Q.request.collectResourceTiming=this._collectResourceTiming;let ee="RT";if(w.actor&&w.state!=="expired"){if(w.state==="loading")return new Promise((ue,Ve)=>{w.reloadPromise={resolve:ue,reject:Ve}})}else w.actor=this.dispatcher.getActor(),ee="LT";w.abortController=new AbortController;try{let ue=yield w.actor.sendAsync({type:ee,data:Q},w.abortController);if(delete w.abortController,w.aborted)return;this._afterTileLoadWorkerResponse(w,ue)}catch(ue){if(delete w.abortController,w.aborted)return;if(ue&&ue.status!==404)throw ue;this._afterTileLoadWorkerResponse(w,null)}})}_afterTileLoadWorkerResponse(w,q){if(q&&q.resourceTiming&&(w.resourceTiming=q.resourceTiming),q&&this.map._refreshExpiredTiles&&w.setExpiryData(q),w.loadVectorData(q,this.map.painter),w.reloadPromise){let Q=w.reloadPromise;w.reloadPromise=null,this.loadTile(w).then(Q.resolve).catch(Q.reject)}}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.actor&&(yield w.actor.sendAsync({type:"AT",data:{uid:w.uid,type:this.type,source:this.id}}))})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.unloadVectorData(),w.actor&&(yield w.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}}))})}hasTransition(){return!1}}class bt extends a.E{constructor(w,q,Q,ee){super(),this.id=w,this.dispatcher=Q,this.setEventedParent(ee),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=a.e({type:"raster"},q),a.e(this,a.M(q,["url","scheme","tileSize"]))}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{let w=yield Ne(this._options,this.map._requestManager,this._tileJSONRequest);this._tileJSONRequest=null,this._loaded=!0,w&&(a.e(this,w),w.bounds&&(this.tileBounds=new Ke(w.bounds,this.minzoom,this.maxzoom)),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})))}catch(w){this._tileJSONRequest=null,this.fire(new a.j(w))}})}loaded(){return this._loaded}onAdd(w){this.map=w,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}setSourceProperty(w){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null),w(),this.load()}setTiles(w){return this.setSourceProperty(()=>{this._options.tiles=w}),this}setUrl(w){return this.setSourceProperty(()=>{this.url=w,this._options.url=w}),this}serialize(){return a.e({},this._options)}hasTile(w){return!this.tileBounds||this.tileBounds.contains(w.canonical)}loadTile(w){return a._(this,void 0,void 0,function*(){let q=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);w.abortController=new AbortController;try{let Q=yield v.getImage(this.map._requestManager.transformRequest(q,"Tile"),w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(Q&&Q.data){this.map._refreshExpiredTiles&&Q.cacheControl&&Q.expires&&w.setExpiryData({cacheControl:Q.cacheControl,expires:Q.expires});let ee=this.map.painter.context,ue=ee.gl,Ve=Q.data;w.texture=this.map.painter.getTileTexture(Ve.width),w.texture?w.texture.update(Ve,{useMipmap:!0}):(w.texture=new m(ee,Ve,ue.RGBA,{useMipmap:!0}),w.texture.bind(ue.LINEAR,ue.CLAMP_TO_EDGE,ue.LINEAR_MIPMAP_NEAREST)),w.state="loaded"}}catch(Q){if(delete w.abortController,w.aborted)w.state="unloaded";else if(Q)throw w.state="errored",Q}})}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController)})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.texture&&this.map.painter.saveTileTexture(w.texture)})}hasTransition(){return!1}}class Nt extends bt{constructor(w,q,Q,ee){super(w,q,Q,ee),this.type="raster-dem",this.maxzoom=22,this._options=a.e({type:"raster-dem"},q),this.encoding=q.encoding||"mapbox",this.redFactor=q.redFactor,this.greenFactor=q.greenFactor,this.blueFactor=q.blueFactor,this.baseShift=q.baseShift}loadTile(w){return a._(this,void 0,void 0,function*(){let q=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q=this.map._requestManager.transformRequest(q,"Tile");w.neighboringTiles=this._getNeighboringTiles(w.tileID),w.abortController=new AbortController;try{let ee=yield v.getImage(Q,w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(ee&&ee.data){let ue=ee.data;this.map._refreshExpiredTiles&&ee.cacheControl&&ee.expires&&w.setExpiryData({cacheControl:ee.cacheControl,expires:ee.expires});let Ve=a.b(ue)&&a.U()?ue:yield this.readImageNow(ue),et={type:this.type,uid:w.uid,source:this.id,rawImageData:Ve,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(!w.actor||w.state==="expired"){w.actor=this.dispatcher.getActor();let yt=yield w.actor.sendAsync({type:"LDT",data:et});w.dem=yt,w.needsHillshadePrepare=!0,w.needsTerrainPrepare=!0,w.state="loaded"}}}catch(ee){if(delete w.abortController,w.aborted)w.state="unloaded";else if(ee)throw w.state="errored",ee}})}readImageNow(w){return a._(this,void 0,void 0,function*(){if(typeof VideoFrame!="undefined"&&a.V()){let q=w.width+2,Q=w.height+2;try{return new a.R({width:q,height:Q},yield a.W(w,-1,-1,q,Q))}catch(ee){}}return l.getImageData(w,1)})}_getNeighboringTiles(w){let q=w.canonical,Q=Math.pow(2,q.z),ee=(q.x-1+Q)%Q,ue=q.x===0?w.wrap-1:w.wrap,Ve=(q.x+1+Q)%Q,et=q.x+1===Q?w.wrap+1:w.wrap,yt={};return yt[new a.S(w.overscaledZ,ue,q.z,ee,q.y).key]={backfilled:!1},yt[new a.S(w.overscaledZ,et,q.z,Ve,q.y).key]={backfilled:!1},q.y>0&&(yt[new a.S(w.overscaledZ,ue,q.z,ee,q.y-1).key]={backfilled:!1},yt[new a.S(w.overscaledZ,w.wrap,q.z,q.x,q.y-1).key]={backfilled:!1},yt[new a.S(w.overscaledZ,et,q.z,Ve,q.y-1).key]={backfilled:!1}),q.y+10&&a.e(ue,{resourceTiming:ee}),this.fire(new a.k("data",Object.assign(Object.assign({},ue),{sourceDataType:"metadata"}))),this.fire(new a.k("data",Object.assign(Object.assign({},ue),{sourceDataType:"content"})))}catch(Q){if(this._pendingLoads--,this._removed)return void this.fire(new a.k("dataabort",{dataType:"source"}));this.fire(new a.j(Q))}})}loaded(){return this._pendingLoads===0}loadTile(w){return a._(this,void 0,void 0,function*(){let q=w.actor?"RT":"LT";w.actor=this.actor;let Q={type:this.type,uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};w.abortController=new AbortController;let ee=yield this.actor.sendAsync({type:q,data:Q},w.abortController);delete w.abortController,w.unloadVectorData(),w.aborted||w.loadVectorData(ee,this.map.painter,q==="RT")})}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.aborted=!0})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.unloadVectorData(),yield this.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}})})}onRemove(){this._removed=!0,this.actor.sendAsync({type:"RS",data:{type:this.type,source:this.id}})}serialize(){return a.e({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}}var Ye=a.Y([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class kt extends a.E{constructor(w,q,Q,ee){super(),this.id=w,this.dispatcher=Q,this.coordinates=q.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ee),this.options=q}load(w){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=new AbortController;try{let q=yield v.getImage(this.map._requestManager.transformRequest(this.url,"Image"),this._request);this._request=null,this._loaded=!0,q&&q.data&&(this.image=q.data,w&&(this.coordinates=w),this._finishLoading())}catch(q){this._request=null,this._loaded=!0,this.fire(new a.j(q))}})}loaded(){return this._loaded}updateImage(w){return w.url?(this._request&&(this._request.abort(),this._request=null),this.options.url=w.url,this.load(w.coordinates).finally(()=>{this.texture=null}),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(w){this.map=w,this.load()}onRemove(){this._request&&(this._request.abort(),this._request=null)}setCoordinates(w){this.coordinates=w;let q=w.map(a.Z.fromLngLat);this.tileID=function(ee){let ue=1/0,Ve=1/0,et=-1/0,yt=-1/0;for(let kr of ee)ue=Math.min(ue,kr.x),Ve=Math.min(Ve,kr.y),et=Math.max(et,kr.x),yt=Math.max(yt,kr.y);let Dt=Math.max(et-ue,yt-Ve),ir=Math.max(0,Math.floor(-Math.log(Dt)/Math.LN2)),or=Math.pow(2,ir);return new a.a1(ir,Math.floor((ue+et)/2*or),Math.floor((Ve+yt)/2*or))}(q),this.minzoom=this.maxzoom=this.tileID.z;let Q=q.map(ee=>this.tileID.getTilePoint(ee)._round());return this._boundsArray=new a.$,this._boundsArray.emplaceBack(Q[0].x,Q[0].y,0,0),this._boundsArray.emplaceBack(Q[1].x,Q[1].y,a.X,0),this._boundsArray.emplaceBack(Q[3].x,Q[3].y,0,a.X),this._boundsArray.emplaceBack(Q[2].x,Q[2].y,a.X,a.X),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;let w=this.map.painter.context,q=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,Ye.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture||(this.texture=new m(w,this.image,q.RGBA),this.texture.bind(q.LINEAR,q.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let ue=this.tiles[ee];ue.state!=="loaded"&&(ue.state="loaded",ue.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}loadTile(w){return a._(this,void 0,void 0,function*(){this.tileID&&this.tileID.equals(w.tileID.canonical)?(this.tiles[String(w.tileID.wrap)]=w,w.buckets={}):w.state="errored"})}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}class At extends kt{constructor(w,q,Q,ee){super(w,q,Q,ee),this.roundZoom=!0,this.type="video",this.options=q}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1;let w=this.options;this.urls=[];for(let q of w.urls)this.urls.push(this.map._requestManager.transformRequest(q,"Source").url);try{let q=yield a.a3(this.urls);if(this._loaded=!0,!q)return;this.video=q,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading()}catch(q){this.fire(new a.j(q))}})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(w){if(this.video){let q=this.video.seekable;wq.end(0)?this.fire(new a.j(new a.a2(`sources.${this.id}`,null,`Playback for this video can be set only between the ${q.start(0)} and ${q.end(0)}-second mark.`))):this.video.currentTime=w}}getVideo(){return this.video}onAdd(w){this.map||(this.map=w,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let w=this.map.painter.context,q=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,Ye.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(q.LINEAR,q.CLAMP_TO_EDGE),q.texSubImage2D(q.TEXTURE_2D,0,0,0,q.RGBA,q.UNSIGNED_BYTE,this.video)):(this.texture=new m(w,this.video,q.RGBA),this.texture.bind(q.LINEAR,q.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let ue=this.tiles[ee];ue.state!=="loaded"&&(ue.state="loaded",ue.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class St extends kt{constructor(w,q,Q,ee){super(w,q,Q,ee),q.coordinates?Array.isArray(q.coordinates)&&q.coordinates.length===4&&!q.coordinates.some(ue=>!Array.isArray(ue)||ue.length!==2||ue.some(Ve=>typeof Ve!="number"))||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "coordinates"'))),q.animate&&typeof q.animate!="boolean"&&this.fire(new a.j(new a.a2(`sources.${w}`,null,'optional "animate" property must be a boolean value'))),q.canvas?typeof q.canvas=="string"||q.canvas instanceof HTMLCanvasElement||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "canvas"'))),this.options=q,this.animate=q.animate===void 0||q.animate}load(){return a._(this,void 0,void 0,function*(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new a.j(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())})}getCanvas(){return this.canvas}onAdd(w){this.map=w,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let w=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,w=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,w=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let q=this.map.painter.context,Q=q.gl;this.boundsBuffer||(this.boundsBuffer=q.createVertexBuffer(this._boundsArray,Ye.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?(w||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new m(q,this.canvas,Q.RGBA,{premultiply:!0});let ee=!1;for(let ue in this.tiles){let Ve=this.tiles[ue];Ve.state!=="loaded"&&(Ve.state="loaded",Ve.texture=this.texture,ee=!0)}ee&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let w of[this.canvas.width,this.canvas.height])if(isNaN(w)||w<=0)return!0;return!1}}let Bt={},Zt=le=>{switch(le){case"geojson":return nt;case"image":return kt;case"raster":return bt;case"raster-dem":return Nt;case"vector":return it;case"video":return At;case"canvas":return St}return Bt[le]},Et="RTLPluginLoaded";class Ae extends a.E{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=Me()}_syncState(w){return this.status=w,this.dispatcher.broadcast("SRPS",{pluginStatus:w,pluginURL:this.url}).catch(q=>{throw this.status="error",q})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(w){return a._(this,arguments,void 0,function*(q,Q=!1){if(this.url)throw new Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=l.resolveURL(q),!this.url)throw new Error(`requested url ${q} is invalid`);if(this.status==="unavailable"){if(!Q)return this._requestImport();this.status="deferred",this._syncState(this.status)}else if(this.status==="requested")return this._requestImport()})}_requestImport(){return a._(this,void 0,void 0,function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new a.k(Et))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}}let ot=null;function dt(){return ot||(ot=new Ae),ot}class pt{constructor(w,q){this.timeAdded=0,this.fadeEndTime=0,this.tileID=w,this.uid=a.a4(),this.uses=0,this.tileSize=q,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(w){let q=w+this.timeAdded;que.getLayer(Dt)).filter(Boolean);if(yt.length!==0){et.layers=yt,et.stateDependentLayerIds&&(et.stateDependentLayers=et.stateDependentLayerIds.map(Dt=>yt.filter(ir=>ir.id===Dt)[0]));for(let Dt of yt)Ve[Dt.id]=et}}return Ve}(w.buckets,q.style),this.hasSymbolBuckets=!1;for(let ee in this.buckets){let ue=this.buckets[ee];if(ue instanceof a.a6){if(this.hasSymbolBuckets=!0,!Q)break;ue.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let ee in this.buckets){let ue=this.buckets[ee];if(ue instanceof a.a6&&ue.hasRTLText){this.hasRTLText=!0,dt().lazyLoad();break}}this.queryPadding=0;for(let ee in this.buckets){let ue=this.buckets[ee];this.queryPadding=Math.max(this.queryPadding,q.style.getLayer(ee).queryRadius(ue))}w.imageAtlas&&(this.imageAtlas=w.imageAtlas),w.glyphAtlasImage&&(this.glyphAtlasImage=w.glyphAtlasImage)}else this.collisionBoxArray=new a.a5}unloadVectorData(){for(let w in this.buckets)this.buckets[w].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(w){return this.buckets[w.id]}upload(w){for(let Q in this.buckets){let ee=this.buckets[Q];ee.uploadPending()&&ee.upload(w)}let q=w.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new m(w,this.imageAtlas.image,q.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new m(w,this.glyphAtlasImage,q.ALPHA),this.glyphAtlasImage=null)}prepare(w){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(w,this.imageAtlasTexture)}queryRenderedFeatures(w,q,Q,ee,ue,Ve,et,yt,Dt,ir){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:ee,cameraQueryGeometry:ue,scale:Ve,tileSize:this.tileSize,pixelPosMatrix:ir,transform:yt,params:et,queryPadding:this.queryPadding*Dt},w,q,Q):{}}querySourceFeatures(w,q){let Q=this.latestFeatureIndex;if(!Q||!Q.rawTileData)return;let ee=Q.loadVTLayers(),ue=q&&q.sourceLayer?q.sourceLayer:"",Ve=ee._geojsonTileLayer||ee[ue];if(!Ve)return;let et=a.a7(q&&q.filter),{z:yt,x:Dt,y:ir}=this.tileID.canonical,or={z:yt,x:Dt,y:ir};for(let kr=0;krQ)ee=!1;else if(q)if(this.expirationTime{this.remove(w,ue)},Q)),this.data[ee].push(ue),this.order.push(ee),this.order.length>this.max){let Ve=this._getAndRemoveByKey(this.order[0]);Ve&&this.onRemove(Ve)}return this}has(w){return w.wrapped().key in this.data}getAndRemove(w){return this.has(w)?this._getAndRemoveByKey(w.wrapped().key):null}_getAndRemoveByKey(w){let q=this.data[w].shift();return q.timeout&&clearTimeout(q.timeout),this.data[w].length===0&&delete this.data[w],this.order.splice(this.order.indexOf(w),1),q.value}getByKey(w){let q=this.data[w];return q?q[0].value:null}get(w){return this.has(w)?this.data[w.wrapped().key][0].value:null}remove(w,q){if(!this.has(w))return this;let Q=w.wrapped().key,ee=q===void 0?0:this.data[Q].indexOf(q),ue=this.data[Q][ee];return this.data[Q].splice(ee,1),ue.timeout&&clearTimeout(ue.timeout),this.data[Q].length===0&&delete this.data[Q],this.onRemove(ue.value),this.order.splice(this.order.indexOf(Q),1),this}setMaxSize(w){for(this.max=w;this.order.length>this.max;){let q=this._getAndRemoveByKey(this.order[0]);q&&this.onRemove(q)}return this}filter(w){let q=[];for(let Q in this.data)for(let ee of this.data[Q])w(ee.value)||q.push(ee);for(let Q of q)this.remove(Q.value.tileID,Q)}}class Xe{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(w,q,Q){let ee=String(q);if(this.stateChanges[w]=this.stateChanges[w]||{},this.stateChanges[w][ee]=this.stateChanges[w][ee]||{},a.e(this.stateChanges[w][ee],Q),this.deletedStates[w]===null){this.deletedStates[w]={};for(let ue in this.state[w])ue!==ee&&(this.deletedStates[w][ue]=null)}else if(this.deletedStates[w]&&this.deletedStates[w][ee]===null){this.deletedStates[w][ee]={};for(let ue in this.state[w][ee])Q[ue]||(this.deletedStates[w][ee][ue]=null)}else for(let ue in Q)this.deletedStates[w]&&this.deletedStates[w][ee]&&this.deletedStates[w][ee][ue]===null&&delete this.deletedStates[w][ee][ue]}removeFeatureState(w,q,Q){if(this.deletedStates[w]===null)return;let ee=String(q);if(this.deletedStates[w]=this.deletedStates[w]||{},Q&&q!==void 0)this.deletedStates[w][ee]!==null&&(this.deletedStates[w][ee]=this.deletedStates[w][ee]||{},this.deletedStates[w][ee][Q]=null);else if(q!==void 0)if(this.stateChanges[w]&&this.stateChanges[w][ee])for(Q in this.deletedStates[w][ee]={},this.stateChanges[w][ee])this.deletedStates[w][ee][Q]=null;else this.deletedStates[w][ee]=null;else this.deletedStates[w]=null}getState(w,q){let Q=String(q),ee=a.e({},(this.state[w]||{})[Q],(this.stateChanges[w]||{})[Q]);if(this.deletedStates[w]===null)return{};if(this.deletedStates[w]){let ue=this.deletedStates[w][q];if(ue===null)return{};for(let Ve in ue)delete ee[Ve]}return ee}initializeTileState(w,q){w.setFeatureState(this.state,q)}coalesceChanges(w,q){let Q={};for(let ee in this.stateChanges){this.state[ee]=this.state[ee]||{};let ue={};for(let Ve in this.stateChanges[ee])this.state[ee][Ve]||(this.state[ee][Ve]={}),a.e(this.state[ee][Ve],this.stateChanges[ee][Ve]),ue[Ve]=this.state[ee][Ve];Q[ee]=ue}for(let ee in this.deletedStates){this.state[ee]=this.state[ee]||{};let ue={};if(this.deletedStates[ee]===null)for(let Ve in this.state[ee])ue[Ve]={},this.state[ee][Ve]={};else for(let Ve in this.deletedStates[ee]){if(this.deletedStates[ee][Ve]===null)this.state[ee][Ve]={};else for(let et of Object.keys(this.deletedStates[ee][Ve]))delete this.state[ee][Ve][et];ue[Ve]=this.state[ee][Ve]}Q[ee]=Q[ee]||{},a.e(Q[ee],ue)}if(this.stateChanges={},this.deletedStates={},Object.keys(Q).length!==0)for(let ee in w)w[ee].setFeatureState(Q,q)}}class rt extends a.E{constructor(w,q,Q){super(),this.id=w,this.dispatcher=Q,this.on("data",ee=>this._dataHandler(ee)),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=((ee,ue,Ve,et)=>{let yt=new(Zt(ue.type))(ee,ue,Ve,et);if(yt.id!==ee)throw new Error(`Expected Source id to be ${ee} instead of ${yt.id}`);return yt})(w,q,Q,this),this._tiles={},this._cache=new at(0,ee=>this._unloadTile(ee)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new Xe,this._didEmitContent=!1,this._updated=!1}onAdd(w){this.map=w,this._maxTileCacheSize=w?w._maxTileCacheSize:null,this._maxTileCacheZoomLevels=w?w._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(w)}onRemove(w){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(w)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(this.used===void 0&&this.usedForTerrain===void 0||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(let w in this._tiles){let q=this._tiles[w];if(q.state!=="loaded"&&q.state!=="errored")return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;let w=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,w&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(w,q,Q){return a._(this,void 0,void 0,function*(){try{yield this._source.loadTile(w),this._tileLoaded(w,q,Q)}catch(ee){w.state="errored",ee.status!==404?this._source.fire(new a.j(ee,{tile:w})):this.update(this.transform,this.terrain)}})}_unloadTile(w){this._source.unloadTile&&this._source.unloadTile(w)}_abortTile(w){this._source.abortTile&&this._source.abortTile(w),this._source.fire(new a.k("dataabort",{tile:w,coord:w.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(w){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(let q in this._tiles){let Q=this._tiles[q];Q.upload(w),Q.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map(w=>w.tileID).sort(Qe).map(w=>w.key)}getRenderableIds(w){let q=[];for(let Q in this._tiles)this._isIdRenderable(Q,w)&&q.push(this._tiles[Q]);return w?q.sort((Q,ee)=>{let ue=Q.tileID,Ve=ee.tileID,et=new a.P(ue.canonical.x,ue.canonical.y)._rotate(this.transform.angle),yt=new a.P(Ve.canonical.x,Ve.canonical.y)._rotate(this.transform.angle);return ue.overscaledZ-Ve.overscaledZ||yt.y-et.y||yt.x-et.x}).map(Q=>Q.tileID.key):q.map(Q=>Q.tileID).sort(Qe).map(Q=>Q.key)}hasRenderableParent(w){let q=this.findLoadedParent(w,0);return!!q&&this._isIdRenderable(q.tileID.key)}_isIdRenderable(w,q){return this._tiles[w]&&this._tiles[w].hasData()&&!this._coveredTiles[w]&&(q||!this._tiles[w].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(let w in this._tiles)this._tiles[w].state!=="errored"&&this._reloadTile(w,"reloading")}}_reloadTile(w,q){return a._(this,void 0,void 0,function*(){let Q=this._tiles[w];Q&&(Q.state!=="loading"&&(Q.state=q),yield this._loadTile(Q,w,q))})}_tileLoaded(w,q,Q){w.timeAdded=l.now(),Q==="expired"&&(w.refreshedUponExpiration=!0),this._setTileReloadTimer(q,w),this.getSource().type==="raster-dem"&&w.dem&&this._backfillDEM(w),this._state.initializeTileState(w,this.map?this.map.painter:null),w.aborted||this._source.fire(new a.k("data",{dataType:"source",tile:w,coord:w.tileID}))}_backfillDEM(w){let q=this.getRenderableIds();for(let ee=0;ee1||(Math.abs(Ve)>1&&(Math.abs(Ve+yt)===1?Ve+=yt:Math.abs(Ve-yt)===1&&(Ve-=yt)),ue.dem&&ee.dem&&(ee.dem.backfillBorder(ue.dem,Ve,et),ee.neighboringTiles&&ee.neighboringTiles[Dt]&&(ee.neighboringTiles[Dt].backfilled=!0)))}}getTile(w){return this.getTileByID(w.key)}getTileByID(w){return this._tiles[w]}_retainLoadedChildren(w,q,Q,ee){for(let ue in this._tiles){let Ve=this._tiles[ue];if(ee[ue]||!Ve.hasData()||Ve.tileID.overscaledZ<=q||Ve.tileID.overscaledZ>Q)continue;let et=Ve.tileID;for(;Ve&&Ve.tileID.overscaledZ>q+1;){let Dt=Ve.tileID.scaledTo(Ve.tileID.overscaledZ-1);Ve=this._tiles[Dt.key],Ve&&Ve.hasData()&&(et=Dt)}let yt=et;for(;yt.overscaledZ>q;)if(yt=yt.scaledTo(yt.overscaledZ-1),w[yt.key]){ee[et.key]=et;break}}}findLoadedParent(w,q){if(w.key in this._loadedParentTiles){let Q=this._loadedParentTiles[w.key];return Q&&Q.tileID.overscaledZ>=q?Q:null}for(let Q=w.overscaledZ-1;Q>=q;Q--){let ee=w.scaledTo(Q),ue=this._getLoadedTile(ee);if(ue)return ue}}findLoadedSibling(w){return this._getLoadedTile(w)}_getLoadedTile(w){let q=this._tiles[w.key];return q&&q.hasData()?q:this._cache.getByKey(w.wrapped().key)}updateCacheSize(w){let q=Math.ceil(w.width/this._source.tileSize)+1,Q=Math.ceil(w.height/this._source.tileSize)+1,ee=Math.floor(q*Q*(this._maxTileCacheZoomLevels===null?a.a.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),ue=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ee):ee;this._cache.setMaxSize(ue)}handleWrapJump(w){let q=Math.round((w-(this._prevLng===void 0?w:this._prevLng))/360);if(this._prevLng=w,q){let Q={};for(let ee in this._tiles){let ue=this._tiles[ee];ue.tileID=ue.tileID.unwrapTo(ue.tileID.wrap+q),Q[ue.tileID.key]=ue}this._tiles=Q;for(let ee in this._timers)clearTimeout(this._timers[ee]),delete this._timers[ee];for(let ee in this._tiles)this._setTileReloadTimer(ee,this._tiles[ee])}}_updateCoveredAndRetainedTiles(w,q,Q,ee,ue,Ve){let et={},yt={},Dt=Object.keys(w),ir=l.now();for(let or of Dt){let kr=w[or],Vr=this._tiles[or];if(!Vr||Vr.fadeEndTime!==0&&Vr.fadeEndTime<=ir)continue;let he=this.findLoadedParent(kr,q),Se=this.findLoadedSibling(kr),qe=he||Se||null;qe&&(this._addTile(qe.tileID),et[qe.tileID.key]=qe.tileID),yt[or]=kr}this._retainLoadedChildren(yt,ee,Q,w);for(let or in et)w[or]||(this._coveredTiles[or]=!0,w[or]=et[or]);if(Ve){let or={},kr={};for(let Vr of ue)this._tiles[Vr.key].hasData()?or[Vr.key]=Vr:kr[Vr.key]=Vr;for(let Vr in kr){let he=kr[Vr].children(this._source.maxzoom);this._tiles[he[0].key]&&this._tiles[he[1].key]&&this._tiles[he[2].key]&&this._tiles[he[3].key]&&(or[he[0].key]=w[he[0].key]=he[0],or[he[1].key]=w[he[1].key]=he[1],or[he[2].key]=w[he[2].key]=he[2],or[he[3].key]=w[he[3].key]=he[3],delete kr[Vr])}for(let Vr in kr){let he=kr[Vr],Se=this.findLoadedParent(he,this._source.minzoom),qe=this.findLoadedSibling(he),Ge=Se||qe||null;if(Ge){or[Ge.tileID.key]=w[Ge.tileID.key]=Ge.tileID;for(let lt in or)or[lt].isChildOf(Ge.tileID)&&delete or[lt]}}for(let Vr in this._tiles)or[Vr]||(this._coveredTiles[Vr]=!0)}}update(w,q){if(!this._sourceLoaded||this._paused)return;let Q;this.transform=w,this.terrain=q,this.updateCacheSize(w),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?Q=w.getVisibleUnwrappedCoordinates(this._source.tileID).map(ir=>new a.S(ir.canonical.z,ir.wrap,ir.canonical.z,ir.canonical.x,ir.canonical.y)):(Q=w.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:q}),this._source.hasTile&&(Q=Q.filter(ir=>this._source.hasTile(ir)))):Q=[];let ee=w.coveringZoomLevel(this._source),ue=Math.max(ee-rt.maxOverzooming,this._source.minzoom),Ve=Math.max(ee+rt.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){let ir={};for(let or of Q)if(or.canonical.z>this._source.minzoom){let kr=or.scaledTo(or.canonical.z-1);ir[kr.key]=kr;let Vr=or.scaledTo(Math.max(this._source.minzoom,Math.min(or.canonical.z,5)));ir[Vr.key]=Vr}Q=Q.concat(Object.values(ir))}let et=Q.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,et&&this.fire(new a.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));let yt=this._updateRetainedTiles(Q,ee);zt(this._source.type)&&this._updateCoveredAndRetainedTiles(yt,ue,Ve,ee,Q,q);for(let ir in yt)this._tiles[ir].clearFadeHold();let Dt=a.ab(this._tiles,yt);for(let ir of Dt){let or=this._tiles[ir];or.hasSymbolBuckets&&!or.holdingForFade()?or.setHoldDuration(this.map._fadeDuration):or.hasSymbolBuckets&&!or.symbolFadeFinished()||this._removeTile(ir)}this._updateLoadedParentTileCache(),this._updateLoadedSiblingTileCache()}releaseSymbolFadeTiles(){for(let w in this._tiles)this._tiles[w].holdingForFade()&&this._removeTile(w)}_updateRetainedTiles(w,q){var Q;let ee={},ue={},Ve=Math.max(q-rt.maxOverzooming,this._source.minzoom),et=Math.max(q+rt.maxUnderzooming,this._source.minzoom),yt={};for(let Dt of w){let ir=this._addTile(Dt);ee[Dt.key]=Dt,ir.hasData()||qthis._source.maxzoom){let kr=Dt.children(this._source.maxzoom)[0],Vr=this.getTile(kr);if(Vr&&Vr.hasData()){ee[kr.key]=kr;continue}}else{let kr=Dt.children(this._source.maxzoom);if(ee[kr[0].key]&&ee[kr[1].key]&&ee[kr[2].key]&&ee[kr[3].key])continue}let or=ir.wasRequested();for(let kr=Dt.overscaledZ-1;kr>=Ve;--kr){let Vr=Dt.scaledTo(kr);if(ue[Vr.key])break;if(ue[Vr.key]=!0,ir=this.getTile(Vr),!ir&&or&&(ir=this._addTile(Vr)),ir){let he=ir.hasData();if((he||!(!((Q=this.map)===null||Q===void 0)&&Q.cancelPendingTileRequestsWhileZooming)||or)&&(ee[Vr.key]=Vr),or=ir.wasRequested(),he)break}}}return ee}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(let w in this._tiles){let q=[],Q,ee=this._tiles[w].tileID;for(;ee.overscaledZ>0;){if(ee.key in this._loadedParentTiles){Q=this._loadedParentTiles[ee.key];break}q.push(ee.key);let ue=ee.scaledTo(ee.overscaledZ-1);if(Q=this._getLoadedTile(ue),Q)break;ee=ue}for(let ue of q)this._loadedParentTiles[ue]=Q}}_updateLoadedSiblingTileCache(){this._loadedSiblingTiles={};for(let w in this._tiles){let q=this._tiles[w].tileID,Q=this._getLoadedTile(q);this._loadedSiblingTiles[q.key]=Q}}_addTile(w){let q=this._tiles[w.key];if(q)return q;q=this._cache.getAndRemove(w),q&&(this._setTileReloadTimer(w.key,q),q.tileID=w,this._state.initializeTileState(q,this.map?this.map.painter:null),this._cacheTimers[w.key]&&(clearTimeout(this._cacheTimers[w.key]),delete this._cacheTimers[w.key],this._setTileReloadTimer(w.key,q)));let Q=q;return q||(q=new pt(w,this._source.tileSize*w.overscaleFactor()),this._loadTile(q,w.key,q.state)),q.uses++,this._tiles[w.key]=q,Q||this._source.fire(new a.k("dataloading",{tile:q,coord:q.tileID,dataType:"source"})),q}_setTileReloadTimer(w,q){w in this._timers&&(clearTimeout(this._timers[w]),delete this._timers[w]);let Q=q.getExpiryTimeout();Q&&(this._timers[w]=setTimeout(()=>{this._reloadTile(w,"expired"),delete this._timers[w]},Q))}_removeTile(w){let q=this._tiles[w];q&&(q.uses--,delete this._tiles[w],this._timers[w]&&(clearTimeout(this._timers[w]),delete this._timers[w]),q.uses>0||(q.hasData()&&q.state!=="reloading"?this._cache.add(q.tileID,q,q.getExpiryTimeout()):(q.aborted=!0,this._abortTile(q),this._unloadTile(q))))}_dataHandler(w){let q=w.sourceDataType;w.dataType==="source"&&q==="metadata"&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&w.dataType==="source"&&q==="content"&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(let w in this._tiles)this._removeTile(w);this._cache.reset()}tilesIn(w,q,Q){let ee=[],ue=this.transform;if(!ue)return ee;let Ve=Q?ue.getCameraQueryGeometry(w):w,et=w.map(he=>ue.pointCoordinate(he,this.terrain)),yt=Ve.map(he=>ue.pointCoordinate(he,this.terrain)),Dt=this.getIds(),ir=1/0,or=1/0,kr=-1/0,Vr=-1/0;for(let he of yt)ir=Math.min(ir,he.x),or=Math.min(or,he.y),kr=Math.max(kr,he.x),Vr=Math.max(Vr,he.y);for(let he=0;he=0&&tt[1].y+lt>=0){let vt=et.map(nr=>qe.getTilePoint(nr)),Gt=yt.map(nr=>qe.getTilePoint(nr));ee.push({tile:Se,tileID:qe,queryGeometry:vt,cameraQueryGeometry:Gt,scale:Ge})}}return ee}getVisibleCoordinates(w){let q=this.getRenderableIds(w).map(Q=>this._tiles[Q].tileID);for(let Q of q)Q.posMatrix=this.transform.calculatePosMatrix(Q.toUnwrapped());return q}hasTransition(){if(this._source.hasTransition())return!0;if(zt(this._source.type)){let w=l.now();for(let q in this._tiles)if(this._tiles[q].fadeEndTime>=w)return!0}return!1}setFeatureState(w,q,Q){this._state.updateState(w=w||"_geojsonTileLayer",q,Q)}removeFeatureState(w,q,Q){this._state.removeFeatureState(w=w||"_geojsonTileLayer",q,Q)}getFeatureState(w,q){return this._state.getState(w=w||"_geojsonTileLayer",q)}setDependencies(w,q,Q){let ee=this._tiles[w];ee&&ee.setDependencies(q,Q)}reloadTilesForDependencies(w,q){for(let Q in this._tiles)this._tiles[Q].hasDependency(w,q)&&this._reloadTile(Q,"reloading");this._cache.filter(Q=>!Q.hasDependency(w,q))}}function Qe(le,w){let q=Math.abs(2*le.wrap)-+(le.wrap<0),Q=Math.abs(2*w.wrap)-+(w.wrap<0);return le.overscaledZ-w.overscaledZ||Q-q||w.canonical.y-le.canonical.y||w.canonical.x-le.canonical.x}function zt(le){return le==="raster"||le==="image"||le==="video"}rt.maxOverzooming=10,rt.maxUnderzooming=3;class Yt{constructor(w,q){this.reset(w,q)}reset(w,q){this.points=w||[],this._distances=[0];for(let Q=1;Q0?(ee-Ve)/et:0;return this.points[ue].mult(1-yt).add(this.points[q].mult(yt))}}function lr(le,w){let q=!0;return le==="always"||le!=="never"&&w!=="never"||(q=!1),q}class mr{constructor(w,q,Q){let ee=this.boxCells=[],ue=this.circleCells=[];this.xCellCount=Math.ceil(w/Q),this.yCellCount=Math.ceil(q/Q);for(let Ve=0;Vethis.width||ee<0||q>this.height)return[];let yt=[];if(w<=0&&q<=0&&this.width<=Q&&this.height<=ee){if(ue)return[{key:null,x1:w,y1:q,x2:Q,y2:ee}];for(let Dt=0;Dt0}hitTestCircle(w,q,Q,ee,ue){let Ve=w-Q,et=w+Q,yt=q-Q,Dt=q+Q;if(et<0||Ve>this.width||Dt<0||yt>this.height)return!1;let ir=[];return this._forEachCell(Ve,yt,et,Dt,this._queryCellCircle,ir,{hitTest:!0,overlapMode:ee,circle:{x:w,y:q,radius:Q},seenUids:{box:{},circle:{}}},ue),ir.length>0}_queryCell(w,q,Q,ee,ue,Ve,et,yt){let{seenUids:Dt,hitTest:ir,overlapMode:or}=et,kr=this.boxCells[ue];if(kr!==null){let he=this.bboxes;for(let Se of kr)if(!Dt.box[Se]){Dt.box[Se]=!0;let qe=4*Se,Ge=this.boxKeys[Se];if(w<=he[qe+2]&&q<=he[qe+3]&&Q>=he[qe+0]&&ee>=he[qe+1]&&(!yt||yt(Ge))&&(!ir||!lr(or,Ge.overlapMode))&&(Ve.push({key:Ge,x1:he[qe],y1:he[qe+1],x2:he[qe+2],y2:he[qe+3]}),ir))return!0}}let Vr=this.circleCells[ue];if(Vr!==null){let he=this.circles;for(let Se of Vr)if(!Dt.circle[Se]){Dt.circle[Se]=!0;let qe=3*Se,Ge=this.circleKeys[Se];if(this._circleAndRectCollide(he[qe],he[qe+1],he[qe+2],w,q,Q,ee)&&(!yt||yt(Ge))&&(!ir||!lr(or,Ge.overlapMode))){let lt=he[qe],tt=he[qe+1],vt=he[qe+2];if(Ve.push({key:Ge,x1:lt-vt,y1:tt-vt,x2:lt+vt,y2:tt+vt}),ir)return!0}}}return!1}_queryCellCircle(w,q,Q,ee,ue,Ve,et,yt){let{circle:Dt,seenUids:ir,overlapMode:or}=et,kr=this.boxCells[ue];if(kr!==null){let he=this.bboxes;for(let Se of kr)if(!ir.box[Se]){ir.box[Se]=!0;let qe=4*Se,Ge=this.boxKeys[Se];if(this._circleAndRectCollide(Dt.x,Dt.y,Dt.radius,he[qe+0],he[qe+1],he[qe+2],he[qe+3])&&(!yt||yt(Ge))&&!lr(or,Ge.overlapMode))return Ve.push(!0),!0}}let Vr=this.circleCells[ue];if(Vr!==null){let he=this.circles;for(let Se of Vr)if(!ir.circle[Se]){ir.circle[Se]=!0;let qe=3*Se,Ge=this.circleKeys[Se];if(this._circlesCollide(he[qe],he[qe+1],he[qe+2],Dt.x,Dt.y,Dt.radius)&&(!yt||yt(Ge))&&!lr(or,Ge.overlapMode))return Ve.push(!0),!0}}}_forEachCell(w,q,Q,ee,ue,Ve,et,yt){let Dt=this._convertToXCellCoord(w),ir=this._convertToYCellCoord(q),or=this._convertToXCellCoord(Q),kr=this._convertToYCellCoord(ee);for(let Vr=Dt;Vr<=or;Vr++)for(let he=ir;he<=kr;he++)if(ue.call(this,w,q,Q,ee,this.xCellCount*he+Vr,Ve,et,yt))return}_convertToXCellCoord(w){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(w*this.xScale)))}_convertToYCellCoord(w){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(w*this.yScale)))}_circlesCollide(w,q,Q,ee,ue,Ve){let et=ee-w,yt=ue-q,Dt=Q+Ve;return Dt*Dt>et*et+yt*yt}_circleAndRectCollide(w,q,Q,ee,ue,Ve,et){let yt=(Ve-ee)/2,Dt=Math.abs(w-(ee+yt));if(Dt>yt+Q)return!1;let ir=(et-ue)/2,or=Math.abs(q-(ue+ir));if(or>ir+Q)return!1;if(Dt<=yt||or<=ir)return!0;let kr=Dt-yt,Vr=or-ir;return kr*kr+Vr*Vr<=Q*Q}}function _r(le,w,q,Q,ee){let ue=a.H();return w?(a.K(ue,ue,[1/ee,1/ee,1]),q||a.ad(ue,ue,Q.angle)):a.L(ue,Q.labelPlaneMatrix,le),ue}function Ht(le,w,q,Q,ee){if(w){let ue=a.ae(le);return a.K(ue,ue,[ee,ee,1]),q||a.ad(ue,ue,-Q.angle),ue}return Q.glCoordMatrix}function Re(le,w,q,Q){let ee;Q?(ee=[le,w,Q(le,w),1],a.af(ee,ee,q)):(ee=[le,w,0,1],Er(ee,ee,q));let ue=ee[3];return{point:new a.P(ee[0]/ue,ee[1]/ue),signedDistanceFromCamera:ue,isOccluded:!1}}function xe(le,w){return .5+le/w*.5}function Oe(le,w){return le.x>=-w[0]&&le.x<=w[0]&&le.y>=-w[1]&&le.y<=w[1]}function Ie(le,w,q,Q,ee,ue,Ve,et,yt,Dt,ir,or,kr,Vr,he){let Se=Q?le.textSizeData:le.iconSizeData,qe=a.ag(Se,q.transform.zoom),Ge=[256/q.width*2+1,256/q.height*2+1],lt=Q?le.text.dynamicLayoutVertexArray:le.icon.dynamicLayoutVertexArray;lt.clear();let tt=le.lineVertexArray,vt=Q?le.text.placedSymbolArray:le.icon.placedSymbolArray,Gt=q.transform.width/q.transform.height,nr=!1;for(let cr=0;crMath.abs(q.x-w.x)*Q?{useVertical:!0}:(le===a.ah.vertical?w.yq.x)?{needsFlipping:!0}:null}function _e(le,w,q,Q,ee,ue,Ve,et,yt,Dt,ir){let or=q/24,kr=w.lineOffsetX*or,Vr=w.lineOffsetY*or,he;if(w.numGlyphs>1){let Se=w.glyphStartIndex+w.numGlyphs,qe=w.lineStartIndex,Ge=w.lineStartIndex+w.lineLength,lt=De(or,et,kr,Vr,Q,w,ir,le);if(!lt)return{notEnoughRoom:!0};let tt=Re(lt.first.point.x,lt.first.point.y,Ve,le.getElevation).point,vt=Re(lt.last.point.x,lt.last.point.y,Ve,le.getElevation).point;if(ee&&!Q){let Gt=ct(w.writingMode,tt,vt,Dt);if(Gt)return Gt}he=[lt.first];for(let Gt=w.glyphStartIndex+1;Gt0?tt.point:function(nr,cr,Ar,Rr,ri,si){return fe(nr,cr,Ar,1,ri,si)}(le.tileAnchorPoint,lt,qe,0,ue,le),Gt=ct(w.writingMode,qe,vt,Dt);if(Gt)return Gt}let Se=rr(or*et.getoffsetX(w.glyphStartIndex),kr,Vr,Q,w.segment,w.lineStartIndex,w.lineStartIndex+w.lineLength,le,ir);if(!Se||le.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};he=[Se]}for(let Se of he)a.aj(yt,Se.point,Se.angle);return{}}function fe(le,w,q,Q,ee,ue){let Ve=le.add(le.sub(w)._unit()),et=ee!==void 0?Re(Ve.x,Ve.y,ee,ue.getElevation).point:mt(Ve.x,Ve.y,ue).point,yt=q.sub(et);return q.add(yt._mult(Q/yt.mag()))}function pe(le,w,q){let Q=w.projectionCache;if(Q.projections[le])return Q.projections[le];let ee=new a.P(w.lineVertexArray.getx(le),w.lineVertexArray.gety(le)),ue=mt(ee.x,ee.y,w);if(ue.signedDistanceFromCamera>0)return Q.projections[le]=ue.point,Q.anyProjectionOccluded=Q.anyProjectionOccluded||ue.isOccluded,ue.point;let Ve=le-q.direction;return function(et,yt,Dt,ir,or){return fe(et,yt,Dt,ir,void 0,or)}(q.distanceFromAnchor===0?w.tileAnchorPoint:new a.P(w.lineVertexArray.getx(Ve),w.lineVertexArray.gety(Ve)),ee,q.previousVertex,q.absOffsetX-q.distanceFromAnchor+1,w)}function mt(le,w,q){let Q=le+q.translation[0],ee=w+q.translation[1],ue;return!q.pitchWithMap&&q.projection.useSpecialProjectionForSymbols?(ue=q.projection.projectTileCoordinates(Q,ee,q.unwrappedTileID,q.getElevation),ue.point.x=(.5*ue.point.x+.5)*q.width,ue.point.y=(.5*-ue.point.y+.5)*q.height):(ue=Re(Q,ee,q.labelPlaneMatrix,q.getElevation),ue.isOccluded=!1),ue}function It(le,w,q){return le._unit()._perp()._mult(w*q)}function Pt(le,w,q,Q,ee,ue,Ve,et,yt){if(et.projectionCache.offsets[le])return et.projectionCache.offsets[le];let Dt=q.add(w);if(le+yt.direction=ee)return et.projectionCache.offsets[le]=Dt,Dt;let ir=pe(le+yt.direction,et,yt),or=It(ir.sub(q),Ve,yt.direction),kr=q.add(or),Vr=ir.add(or);return et.projectionCache.offsets[le]=a.ak(ue,Dt,kr,Vr)||Dt,et.projectionCache.offsets[le]}function rr(le,w,q,Q,ee,ue,Ve,et,yt){let Dt=Q?le-w:le+w,ir=Dt>0?1:-1,or=0;Q&&(ir*=-1,or=Math.PI),ir<0&&(or+=Math.PI);let kr,Vr=ir>0?ue+ee:ue+ee+1;et.projectionCache.cachedAnchorPoint?kr=et.projectionCache.cachedAnchorPoint:(kr=mt(et.tileAnchorPoint.x,et.tileAnchorPoint.y,et).point,et.projectionCache.cachedAnchorPoint=kr);let he,Se,qe=kr,Ge=kr,lt=0,tt=0,vt=Math.abs(Dt),Gt=[],nr;for(;lt+tt<=vt;){if(Vr+=ir,Vr=Ve)return null;lt+=tt,Ge=qe,Se=he;let Rr={absOffsetX:vt,direction:ir,distanceFromAnchor:lt,previousVertex:Ge};if(qe=pe(Vr,et,Rr),q===0)Gt.push(Ge),nr=qe.sub(Ge);else{let ri,si=qe.sub(Ge);ri=si.mag()===0?It(pe(Vr+ir,et,Rr).sub(qe),q,ir):It(si,q,ir),Se||(Se=Ge.add(ri)),he=Pt(Vr,ri,qe,ue,Ve,Se,q,et,Rr),Gt.push(Se),nr=he.sub(Se)}tt=nr.mag()}let cr=nr._mult((vt-lt)/tt)._add(Se||Ge),Ar=or+Math.atan2(qe.y-Ge.y,qe.x-Ge.x);return Gt.push(cr),{point:cr,angle:yt?Ar:0,path:Gt}}let Wr=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Nr(le,w){for(let q=0;q=1;Us--)Ua.push(Zn.path[Us]);for(let Us=1;Usml.signedDistanceFromCamera<=0)?[]:Us.map(ml=>ml.point)}let vl=[];if(Ua.length>0){let Us=Ua[0].clone(),ml=Ua[0].clone();for(let au=1;au=si.x&&ml.x<=Mi.x&&Us.y>=si.y&&ml.y<=Mi.y?[Ua]:ml.xMi.x||ml.yMi.y?[]:a.al([Ua],si.x,si.y,Mi.x,Mi.y)}for(let Us of vl){hn.reset(Us,.25*ri);let ml=0;ml=hn.length<=.5*ri?1:Math.ceil(hn.paddedLength/Fo)+1;for(let au=0;auRe(ee.x,ee.y,Q,q.getElevation))}queryRenderedSymbols(w){if(w.length===0||this.grid.keysLength()===0&&this.ignoredGrid.keysLength()===0)return{};let q=[],Q=1/0,ee=1/0,ue=-1/0,Ve=-1/0;for(let ir of w){let or=new a.P(ir.x+Br,ir.y+Br);Q=Math.min(Q,or.x),ee=Math.min(ee,or.y),ue=Math.max(ue,or.x),Ve=Math.max(Ve,or.y),q.push(or)}let et=this.grid.query(Q,ee,ue,Ve).concat(this.ignoredGrid.query(Q,ee,ue,Ve)),yt={},Dt={};for(let ir of et){let or=ir.key;if(yt[or.bucketInstanceId]===void 0&&(yt[or.bucketInstanceId]={}),yt[or.bucketInstanceId][or.featureIndex])continue;let kr=[new a.P(ir.x1,ir.y1),new a.P(ir.x2,ir.y1),new a.P(ir.x2,ir.y2),new a.P(ir.x1,ir.y2)];a.am(q,kr)&&(yt[or.bucketInstanceId][or.featureIndex]=!0,Dt[or.bucketInstanceId]===void 0&&(Dt[or.bucketInstanceId]=[]),Dt[or.bucketInstanceId].push(or.featureIndex))}return Dt}insertCollisionBox(w,q,Q,ee,ue,Ve){(Q?this.ignoredGrid:this.grid).insert({bucketInstanceId:ee,featureIndex:ue,collisionGroupID:Ve,overlapMode:q},w[0],w[1],w[2],w[3])}insertCollisionCircles(w,q,Q,ee,ue,Ve){let et=Q?this.ignoredGrid:this.grid,yt={bucketInstanceId:ee,featureIndex:ue,collisionGroupID:Ve,overlapMode:q};for(let Dt=0;Dt=this.screenRightBoundary||eethis.screenBottomBoundary}isInsideGrid(w,q,Q,ee){return Q>=0&&w=0&&qthis.projectAndGetPerspectiveRatio(Q,ri.x,ri.y,ee,Dt));Ar=Rr.some(ri=>!ri.isOccluded),cr=Rr.map(ri=>ri.point)}else Ar=!0;return{box:a.ao(cr),allPointsOccluded:!Ar}}}function Di(le,w,q){return w*(a.X/(le.tileSize*Math.pow(2,q-le.tileID.overscaledZ)))}class Ii{constructor(w,q,Q,ee){this.opacity=w?Math.max(0,Math.min(1,w.opacity+(w.placed?q:-q))):ee&&Q?1:0,this.placed=Q}isHidden(){return this.opacity===0&&!this.placed}}class Ci{constructor(w,q,Q,ee,ue){this.text=new Ii(w?w.text:null,q,Q,ue),this.icon=new Ii(w?w.icon:null,q,ee,ue)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class nn{constructor(w,q,Q){this.text=w,this.icon=q,this.skipFade=Q}}class ii{constructor(){this.invProjMatrix=a.H(),this.viewportMatrix=a.H(),this.circles=[]}}class wi{constructor(w,q,Q,ee,ue){this.bucketInstanceId=w,this.featureIndex=q,this.sourceLayerIndex=Q,this.bucketIndex=ee,this.tileID=ue}}class Gi{constructor(w){this.crossSourceCollisions=w,this.maxGroupID=0,this.collisionGroups={}}get(w){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[w]){let q=++this.maxGroupID;this.collisionGroups[w]={ID:q,predicate:Q=>Q.collisionGroupID===q}}return this.collisionGroups[w]}}function Ft(le,w,q,Q,ee){let{horizontalAlign:ue,verticalAlign:Ve}=a.au(le);return new a.P(-(ue-.5)*w+Q[0]*ee,-(Ve-.5)*q+Q[1]*ee)}class gt{constructor(w,q,Q,ee,ue,Ve){this.transform=w.clone(),this.terrain=Q,this.collisionIndex=new mi(this.transform,q),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=ee,this.retainedQueryData={},this.collisionGroups=new Gi(ue),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=Ve,Ve&&(Ve.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(w){let q=this.terrain;return q?(Q,ee)=>q.getElevation(w,Q,ee):null}getBucketParts(w,q,Q,ee){let ue=Q.getBucket(q),Ve=Q.latestFeatureIndex;if(!ue||!Ve||q.id!==ue.layerIds[0])return;let et=Q.collisionBoxArray,yt=ue.layers[0].layout,Dt=ue.layers[0].paint,ir=Math.pow(2,this.transform.zoom-Q.tileID.overscaledZ),or=Q.tileSize/a.X,kr=Q.tileID.toUnwrapped(),Vr=this.transform.calculatePosMatrix(kr),he=yt.get("text-pitch-alignment")==="map",Se=yt.get("text-rotation-alignment")==="map",qe=Di(Q,1,this.transform.zoom),Ge=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Dt.get("text-translate"),Dt.get("text-translate-anchor")),lt=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Dt.get("icon-translate"),Dt.get("icon-translate-anchor")),tt=_r(Vr,he,Se,this.transform,qe),vt=null;if(he){let nr=Ht(Vr,he,Se,this.transform,qe);vt=a.L([],this.transform.labelPlaneMatrix,nr)}this.retainedQueryData[ue.bucketInstanceId]=new wi(ue.bucketInstanceId,Ve,ue.sourceLayerIndex,ue.index,Q.tileID);let Gt={bucket:ue,layout:yt,translationText:Ge,translationIcon:lt,posMatrix:Vr,unwrappedTileID:kr,textLabelPlaneMatrix:tt,labelToScreenMatrix:vt,scale:ir,textPixelRatio:or,holdingForFade:Q.holdingForFade(),collisionBoxArray:et,partiallyEvaluatedTextSize:a.ag(ue.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(ue.sourceID)};if(ee)for(let nr of ue.sortKeyRanges){let{sortKey:cr,symbolInstanceStart:Ar,symbolInstanceEnd:Rr}=nr;w.push({sortKey:cr,symbolInstanceStart:Ar,symbolInstanceEnd:Rr,parameters:Gt})}else w.push({symbolInstanceStart:0,symbolInstanceEnd:ue.symbolInstances.length,parameters:Gt})}attemptAnchorPlacement(w,q,Q,ee,ue,Ve,et,yt,Dt,ir,or,kr,Vr,he,Se,qe,Ge,lt,tt){let vt=a.aq[w.textAnchor],Gt=[w.textOffset0,w.textOffset1],nr=Ft(vt,Q,ee,Gt,ue),cr=this.collisionIndex.placeCollisionBox(q,kr,yt,Dt,ir,et,Ve,qe,or.predicate,tt,nr);if((!lt||this.collisionIndex.placeCollisionBox(lt,kr,yt,Dt,ir,et,Ve,Ge,or.predicate,tt,nr).placeable)&&cr.placeable){let Ar;if(this.prevPlacement&&this.prevPlacement.variableOffsets[Vr.crossTileID]&&this.prevPlacement.placements[Vr.crossTileID]&&this.prevPlacement.placements[Vr.crossTileID].text&&(Ar=this.prevPlacement.variableOffsets[Vr.crossTileID].anchor),Vr.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[Vr.crossTileID]={textOffset:Gt,width:Q,height:ee,anchor:vt,textBoxScale:ue,prevAnchor:Ar},this.markUsedJustification(he,vt,Vr,Se),he.allowVerticalPlacement&&(this.markUsedOrientation(he,Se,Vr),this.placedOrientations[Vr.crossTileID]=Se),{shift:nr,placedGlyphBoxes:cr}}}placeLayerBucketPart(w,q,Q){let{bucket:ee,layout:ue,translationText:Ve,translationIcon:et,posMatrix:yt,unwrappedTileID:Dt,textLabelPlaneMatrix:ir,labelToScreenMatrix:or,textPixelRatio:kr,holdingForFade:Vr,collisionBoxArray:he,partiallyEvaluatedTextSize:Se,collisionGroup:qe}=w.parameters,Ge=ue.get("text-optional"),lt=ue.get("icon-optional"),tt=a.ar(ue,"text-overlap","text-allow-overlap"),vt=tt==="always",Gt=a.ar(ue,"icon-overlap","icon-allow-overlap"),nr=Gt==="always",cr=ue.get("text-rotation-alignment")==="map",Ar=ue.get("text-pitch-alignment")==="map",Rr=ue.get("icon-text-fit")!=="none",ri=ue.get("symbol-z-order")==="viewport-y",si=vt&&(nr||!ee.hasIconData()||lt),Mi=nr&&(vt||!ee.hasTextData()||Ge);!ee.collisionArrays&&he&&ee.deserializeCollisionBoxes(he);let hn=this._getTerrainElevationFunc(this.retainedQueryData[ee.bucketInstanceId].tileID),Zn=(Yn,Ua,Fo)=>{var vl,Us;if(q[Yn.crossTileID])return;if(Vr)return void(this.placements[Yn.crossTileID]=new nn(!1,!1,!1));let ml=!1,au=!1,Sl=!0,Yl=null,ql={box:null,placeable:!1,offscreen:null},ou={box:null,placeable:!1,offscreen:null},Pu=null,iu=null,tu=null,Wu=0,Qu=0,Ku=0;Ua.textFeatureIndex?Wu=Ua.textFeatureIndex:Yn.useRuntimeCollisionCircles&&(Wu=Yn.featureIndex),Ua.verticalTextFeatureIndex&&(Qu=Ua.verticalTextFeatureIndex);let ju=Ua.textBox;if(ju){let ef=ze=>{let je=a.ah.horizontal;if(ee.allowVerticalPlacement&&!ze&&this.prevPlacement){let $e=this.prevPlacement.placedOrientations[Yn.crossTileID];$e&&(this.placedOrientations[Yn.crossTileID]=$e,je=$e,this.markUsedOrientation(ee,je,Yn))}return je},tf=(ze,je)=>{if(ee.allowVerticalPlacement&&Yn.numVerticalGlyphVertices>0&&Ua.verticalTextBox){for(let $e of ee.writingModes)if($e===a.ah.vertical?(ql=je(),ou=ql):ql=ze(),ql&&ql.placeable)break}else ql=ze()},Z=Yn.textAnchorOffsetStartIndex,se=Yn.textAnchorOffsetEndIndex;if(se===Z){let ze=(je,$e)=>{let st=this.collisionIndex.placeCollisionBox(je,tt,kr,yt,Dt,Ar,cr,Ve,qe.predicate,hn);return st&&st.placeable&&(this.markUsedOrientation(ee,$e,Yn),this.placedOrientations[Yn.crossTileID]=$e),st};tf(()=>ze(ju,a.ah.horizontal),()=>{let je=Ua.verticalTextBox;return ee.allowVerticalPlacement&&Yn.numVerticalGlyphVertices>0&&je?ze(je,a.ah.vertical):{box:null,offscreen:null}}),ef(ql&&ql.placeable)}else{let ze=a.aq[(Us=(vl=this.prevPlacement)===null||vl===void 0?void 0:vl.variableOffsets[Yn.crossTileID])===null||Us===void 0?void 0:Us.anchor],je=(st,jt,_t)=>{let hr=st.x2-st.x1,Cr=st.y2-st.y1,zr=Yn.textBoxScale,ui=Rr&&Gt==="never"?jt:null,$r=null,Oi=tt==="never"?1:2,fn="never";ze&&Oi++;for(let pi=0;pije(ju,Ua.iconBox,a.ah.horizontal),()=>{let st=Ua.verticalTextBox;return ee.allowVerticalPlacement&&(!ql||!ql.placeable)&&Yn.numVerticalGlyphVertices>0&&st?je(st,Ua.verticalIconBox,a.ah.vertical):{box:null,occluded:!0,offscreen:null}}),ql&&(ml=ql.placeable,Sl=ql.offscreen);let $e=ef(ql&&ql.placeable);if(!ml&&this.prevPlacement){let st=this.prevPlacement.variableOffsets[Yn.crossTileID];st&&(this.variableOffsets[Yn.crossTileID]=st,this.markUsedJustification(ee,st.anchor,Yn,$e))}}}if(Pu=ql,ml=Pu&&Pu.placeable,Sl=Pu&&Pu.offscreen,Yn.useRuntimeCollisionCircles){let ef=ee.text.placedSymbolArray.get(Yn.centerJustifiedTextSymbolIndex),tf=a.ai(ee.textSizeData,Se,ef),Z=ue.get("text-padding");iu=this.collisionIndex.placeCollisionCircles(tt,ef,ee.lineVertexArray,ee.glyphOffsetArray,tf,yt,Dt,ir,or,Q,Ar,qe.predicate,Yn.collisionCircleDiameter,Z,Ve,hn),iu.circles.length&&iu.collisionDetected&&!Q&&a.w("Collisions detected, but collision boxes are not shown"),ml=vt||iu.circles.length>0&&!iu.collisionDetected,Sl=Sl&&iu.offscreen}if(Ua.iconFeatureIndex&&(Ku=Ua.iconFeatureIndex),Ua.iconBox){let ef=tf=>this.collisionIndex.placeCollisionBox(tf,Gt,kr,yt,Dt,Ar,cr,et,qe.predicate,hn,Rr&&Yl?Yl:void 0);ou&&ou.placeable&&Ua.verticalIconBox?(tu=ef(Ua.verticalIconBox),au=tu.placeable):(tu=ef(Ua.iconBox),au=tu.placeable),Sl=Sl&&tu.offscreen}let Xu=Ge||Yn.numHorizontalGlyphVertices===0&&Yn.numVerticalGlyphVertices===0,lf=lt||Yn.numIconVertices===0;Xu||lf?lf?Xu||(au=au&&ml):ml=au&&ml:au=ml=au&&ml;let xf=au&&tu.placeable;if(ml&&Pu.placeable&&this.collisionIndex.insertCollisionBox(Pu.box,tt,ue.get("text-ignore-placement"),ee.bucketInstanceId,ou&&ou.placeable&&Qu?Qu:Wu,qe.ID),xf&&this.collisionIndex.insertCollisionBox(tu.box,Gt,ue.get("icon-ignore-placement"),ee.bucketInstanceId,Ku,qe.ID),iu&&ml&&this.collisionIndex.insertCollisionCircles(iu.circles,tt,ue.get("text-ignore-placement"),ee.bucketInstanceId,Wu,qe.ID),Q&&this.storeCollisionData(ee.bucketInstanceId,Fo,Ua,Pu,tu,iu),Yn.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");if(ee.bucketInstanceId===0)throw new Error("bucket.bucketInstanceId can't be 0");this.placements[Yn.crossTileID]=new nn(ml||si,au||Mi,Sl||ee.justReloaded),q[Yn.crossTileID]=!0};if(ri){if(w.symbolInstanceStart!==0)throw new Error("bucket.bucketInstanceId should be 0");let Yn=ee.getSortedSymbolIndexes(this.transform.angle);for(let Ua=Yn.length-1;Ua>=0;--Ua){let Fo=Yn[Ua];Zn(ee.symbolInstances.get(Fo),ee.collisionArrays[Fo],Fo)}}else for(let Yn=w.symbolInstanceStart;Yn=0&&(w.text.placedSymbolArray.get(et).crossTileID=ue>=0&&et!==ue?0:Q.crossTileID)}markUsedOrientation(w,q,Q){let ee=q===a.ah.horizontal||q===a.ah.horizontalOnly?q:0,ue=q===a.ah.vertical?q:0,Ve=[Q.leftJustifiedTextSymbolIndex,Q.centerJustifiedTextSymbolIndex,Q.rightJustifiedTextSymbolIndex];for(let et of Ve)w.text.placedSymbolArray.get(et).placedOrientation=ee;Q.verticalPlacedTextSymbolIndex&&(w.text.placedSymbolArray.get(Q.verticalPlacedTextSymbolIndex).placedOrientation=ue)}commit(w){this.commitTime=w,this.zoomAtLastRecencyCheck=this.transform.zoom;let q=this.prevPlacement,Q=!1;this.prevZoomAdjustment=q?q.zoomAdjustment(this.transform.zoom):0;let ee=q?q.symbolFadeChange(w):1,ue=q?q.opacities:{},Ve=q?q.variableOffsets:{},et=q?q.placedOrientations:{};for(let yt in this.placements){let Dt=this.placements[yt],ir=ue[yt];ir?(this.opacities[yt]=new Ci(ir,ee,Dt.text,Dt.icon),Q=Q||Dt.text!==ir.text.placed||Dt.icon!==ir.icon.placed):(this.opacities[yt]=new Ci(null,ee,Dt.text,Dt.icon,Dt.skipFade),Q=Q||Dt.text||Dt.icon)}for(let yt in ue){let Dt=ue[yt];if(!this.opacities[yt]){let ir=new Ci(Dt,ee,!1,!1);ir.isHidden()||(this.opacities[yt]=ir,Q=Q||Dt.text.placed||Dt.icon.placed)}}for(let yt in Ve)this.variableOffsets[yt]||!this.opacities[yt]||this.opacities[yt].isHidden()||(this.variableOffsets[yt]=Ve[yt]);for(let yt in et)this.placedOrientations[yt]||!this.opacities[yt]||this.opacities[yt].isHidden()||(this.placedOrientations[yt]=et[yt]);if(q&&q.lastPlacementChangeTime===void 0)throw new Error("Last placement time for previous placement is not defined");Q?this.lastPlacementChangeTime=w:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=q?q.lastPlacementChangeTime:w)}updateLayerOpacities(w,q){let Q={};for(let ee of q){let ue=ee.getBucket(w);ue&&ee.latestFeatureIndex&&w.id===ue.layerIds[0]&&this.updateBucketOpacities(ue,ee.tileID,Q,ee.collisionBoxArray)}}updateBucketOpacities(w,q,Q,ee){w.hasTextData()&&(w.text.opacityVertexArray.clear(),w.text.hasVisibleVertices=!1),w.hasIconData()&&(w.icon.opacityVertexArray.clear(),w.icon.hasVisibleVertices=!1),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexArray.clear(),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexArray.clear();let ue=w.layers[0],Ve=ue.layout,et=new Ci(null,0,!1,!1,!0),yt=Ve.get("text-allow-overlap"),Dt=Ve.get("icon-allow-overlap"),ir=ue._unevaluatedLayout.hasValue("text-variable-anchor")||ue._unevaluatedLayout.hasValue("text-variable-anchor-offset"),or=Ve.get("text-rotation-alignment")==="map",kr=Ve.get("text-pitch-alignment")==="map",Vr=Ve.get("icon-text-fit")!=="none",he=new Ci(null,0,yt&&(Dt||!w.hasIconData()||Ve.get("icon-optional")),Dt&&(yt||!w.hasTextData()||Ve.get("text-optional")),!0);!w.collisionArrays&&ee&&(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData())&&w.deserializeCollisionBoxes(ee);let Se=(Ge,lt,tt)=>{for(let vt=0;vt0,Ar=this.placedOrientations[lt.crossTileID],Rr=Ar===a.ah.vertical,ri=Ar===a.ah.horizontal||Ar===a.ah.horizontalOnly;if(tt>0||vt>0){let Mi=yi(nr.text);Se(w.text,tt,Rr?Ei:Mi),Se(w.text,vt,ri?Ei:Mi);let hn=nr.text.isHidden();[lt.rightJustifiedTextSymbolIndex,lt.centerJustifiedTextSymbolIndex,lt.leftJustifiedTextSymbolIndex].forEach(Ua=>{Ua>=0&&(w.text.placedSymbolArray.get(Ua).hidden=hn||Rr?1:0)}),lt.verticalPlacedTextSymbolIndex>=0&&(w.text.placedSymbolArray.get(lt.verticalPlacedTextSymbolIndex).hidden=hn||ri?1:0);let Zn=this.variableOffsets[lt.crossTileID];Zn&&this.markUsedJustification(w,Zn.anchor,lt,Ar);let Yn=this.placedOrientations[lt.crossTileID];Yn&&(this.markUsedJustification(w,"left",lt,Yn),this.markUsedOrientation(w,Yn,lt))}if(cr){let Mi=yi(nr.icon),hn=!(Vr&<.verticalPlacedIconSymbolIndex&&Rr);lt.placedIconSymbolIndex>=0&&(Se(w.icon,lt.numIconVertices,hn?Mi:Ei),w.icon.placedSymbolArray.get(lt.placedIconSymbolIndex).hidden=nr.icon.isHidden()),lt.verticalPlacedIconSymbolIndex>=0&&(Se(w.icon,lt.numVerticalIconVertices,hn?Ei:Mi),w.icon.placedSymbolArray.get(lt.verticalPlacedIconSymbolIndex).hidden=nr.icon.isHidden())}let si=qe&&qe.has(Ge)?qe.get(Ge):{text:null,icon:null};if(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData()){let Mi=w.collisionArrays[Ge];if(Mi){let hn=new a.P(0,0);if(Mi.textBox||Mi.verticalTextBox){let Zn=!0;if(ir){let Yn=this.variableOffsets[Gt];Yn?(hn=Ft(Yn.anchor,Yn.width,Yn.height,Yn.textOffset,Yn.textBoxScale),or&&hn._rotate(kr?this.transform.angle:-this.transform.angle)):Zn=!1}if(Mi.textBox||Mi.verticalTextBox){let Yn;Mi.textBox&&(Yn=Rr),Mi.verticalTextBox&&(Yn=ri),Ut(w.textCollisionBox.collisionVertexArray,nr.text.placed,!Zn||Yn,si.text,hn.x,hn.y)}}if(Mi.iconBox||Mi.verticalIconBox){let Zn=!!(!ri&&Mi.verticalIconBox),Yn;Mi.iconBox&&(Yn=Zn),Mi.verticalIconBox&&(Yn=!Zn),Ut(w.iconCollisionBox.collisionVertexArray,nr.icon.placed,Yn,si.icon,Vr?hn.x:0,Vr?hn.y:0)}}}}if(w.sortFeatures(this.transform.angle),this.retainedQueryData[w.bucketInstanceId]&&(this.retainedQueryData[w.bucketInstanceId].featureSortOrder=w.featureSortOrder),w.hasTextData()&&w.text.opacityVertexBuffer&&w.text.opacityVertexBuffer.updateData(w.text.opacityVertexArray),w.hasIconData()&&w.icon.opacityVertexBuffer&&w.icon.opacityVertexBuffer.updateData(w.icon.opacityVertexArray),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexBuffer&&w.iconCollisionBox.collisionVertexBuffer.updateData(w.iconCollisionBox.collisionVertexArray),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexBuffer&&w.textCollisionBox.collisionVertexBuffer.updateData(w.textCollisionBox.collisionVertexArray),w.text.opacityVertexArray.length!==w.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${w.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${w.text.layoutVertexArray.length}) / 4`);if(w.icon.opacityVertexArray.length!==w.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${w.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${w.icon.layoutVertexArray.length}) / 4`);if(w.bucketInstanceId in this.collisionCircleArrays){let Ge=this.collisionCircleArrays[w.bucketInstanceId];w.placementInvProjMatrix=Ge.invProjMatrix,w.placementViewportMatrix=Ge.viewportMatrix,w.collisionCircleArray=Ge.circles,delete this.collisionCircleArrays[w.bucketInstanceId]}}symbolFadeChange(w){return this.fadeDuration===0?1:(w-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(w){return Math.max(0,(this.transform.zoom-w)/1.5)}hasTransitions(w){return this.stale||w-this.lastPlacementChangeTimew}setStale(){this.stale=!0}}function Ut(le,w,q,Q,ee,ue){Q&&Q.length!==0||(Q=[0,0,0,0]);let Ve=Q[0]-Br,et=Q[1]-Br,yt=Q[2]-Br,Dt=Q[3]-Br;le.emplaceBack(w?1:0,q?1:0,ee||0,ue||0,Ve,et),le.emplaceBack(w?1:0,q?1:0,ee||0,ue||0,yt,et),le.emplaceBack(w?1:0,q?1:0,ee||0,ue||0,yt,Dt),le.emplaceBack(w?1:0,q?1:0,ee||0,ue||0,Ve,Dt)}let Wt=Math.pow(2,25),xr=Math.pow(2,24),Lr=Math.pow(2,17),Ur=Math.pow(2,16),Ir=Math.pow(2,9),Gr=Math.pow(2,8),jr=Math.pow(2,1);function yi(le){if(le.opacity===0&&!le.placed)return 0;if(le.opacity===1&&le.placed)return 4294967295;let w=le.placed?1:0,q=Math.floor(127*le.opacity);return q*Wt+w*xr+q*Lr+w*Ur+q*Ir+w*Gr+q*jr+w}let Ei=0;function Vi(){return{isOccluded:(le,w,q)=>!1,getPitchedTextCorrection:(le,w,q)=>1,get useSpecialProjectionForSymbols(){return!1},projectTileCoordinates(le,w,q,Q){throw new Error("Not implemented.")},translatePosition:(le,w,q,Q)=>function(ee,ue,Ve,et,yt=!1){if(!Ve[0]&&!Ve[1])return[0,0];let Dt=yt?et==="map"?ee.angle:0:et==="viewport"?-ee.angle:0;if(Dt){let ir=Math.sin(Dt),or=Math.cos(Dt);Ve=[Ve[0]*or-Ve[1]*ir,Ve[0]*ir+Ve[1]*or]}return[yt?Ve[0]:Di(ue,Ve[0],ee.zoom),yt?Ve[1]:Di(ue,Ve[1],ee.zoom)]}(le,w,q,Q),getCircleRadiusCorrection:le=>1}}class ti{constructor(w){this._sortAcrossTiles=w.layout.get("symbol-z-order")!=="viewport-y"&&!w.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(w,q,Q,ee,ue){let Ve=this._bucketParts;for(;this._currentTileIndexet.sortKey-yt.sortKey));this._currentPartIndex!this._forceFullPlacement&&l.now()-ee>2;for(;this._currentPlacementIndex>=0;){let Ve=q[w[this._currentPlacementIndex]],et=this.placement.collisionIndex.transform.zoom;if(Ve.type==="symbol"&&(!Ve.minzoom||Ve.minzoom<=et)&&(!Ve.maxzoom||Ve.maxzoom>et)){if(this._inProgressLayer||(this._inProgressLayer=new ti(Ve)),this._inProgressLayer.continuePlacement(Q[Ve.source],this.placement,this._showCollisionBoxes,Ve,ue))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(w){return this.placement.commit(w),this.placement}}let Yr=512/a.X/2;class oi{constructor(w,q,Q){this.tileID=w,this.bucketInstanceId=Q,this._symbolsByKey={};let ee=new Map;for(let ue=0;ue({x:Math.floor(yt.anchorX*Yr),y:Math.floor(yt.anchorY*Yr)})),crossTileIDs:Ve.map(yt=>yt.crossTileID)};if(et.positions.length>128){let yt=new a.av(et.positions.length,16,Uint16Array);for(let{x:Dt,y:ir}of et.positions)yt.add(Dt,ir);yt.finish(),delete et.positions,et.index=yt}this._symbolsByKey[ue]=et}}getScaledCoordinates(w,q){let{x:Q,y:ee,z:ue}=this.tileID.canonical,{x:Ve,y:et,z:yt}=q.canonical,Dt=Yr/Math.pow(2,yt-ue),ir=(et*a.X+w.anchorY)*Dt,or=ee*a.X*Yr;return{x:Math.floor((Ve*a.X+w.anchorX)*Dt-Q*a.X*Yr),y:Math.floor(ir-or)}}findMatches(w,q,Q){let ee=this.tileID.canonical.zw)}}class Bi{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class an{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(w){let q=Math.round((w-this.lng)/360);if(q!==0)for(let Q in this.indexes){let ee=this.indexes[Q],ue={};for(let Ve in ee){let et=ee[Ve];et.tileID=et.tileID.unwrapTo(et.tileID.wrap+q),ue[et.tileID.key]=et}this.indexes[Q]=ue}this.lng=w}addBucket(w,q,Q){if(this.indexes[w.overscaledZ]&&this.indexes[w.overscaledZ][w.key]){if(this.indexes[w.overscaledZ][w.key].bucketInstanceId===q.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(w.overscaledZ,this.indexes[w.overscaledZ][w.key])}for(let ue=0;uew.overscaledZ)for(let et in Ve){let yt=Ve[et];yt.tileID.isChildOf(w)&&yt.findMatches(q.symbolInstances,w,ee)}else{let et=Ve[w.scaledTo(Number(ue)).key];et&&et.findMatches(q.symbolInstances,w,ee)}}for(let ue=0;ue{q[Q]=!0});for(let Q in this.layerIndexes)q[Q]||delete this.layerIndexes[Q]}}let Fi=(le,w)=>a.t(le,w&&w.filter(q=>q.identifier!=="source.canvas")),Ri=a.aw();class xn extends a.E{constructor(w,q={}){super(),this._rtlPluginLoaded=()=>{for(let Q in this.sourceCaches){let ee=this.sourceCaches[Q].getSource().type;ee!=="vector"&&ee!=="geojson"||this.sourceCaches[Q].reload()}},this.map=w,this.dispatcher=new Ee(ke(),w._getMapId()),this.dispatcher.registerMessageHandler("GG",(Q,ee)=>this.getGlyphs(Q,ee)),this.dispatcher.registerMessageHandler("GI",(Q,ee)=>this.getImages(Q,ee)),this.imageManager=new A,this.imageManager.setEventedParent(this),this.glyphManager=new G(w._requestManager,q.localIdeographFontFamily),this.lineAtlas=new ae(256,512),this.crossTileSymbolIndex=new rn,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new a.ax,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("SR",a.ay()),dt().on(Et,this._rtlPluginLoaded),this.on("data",Q=>{if(Q.dataType!=="source"||Q.sourceDataType!=="metadata")return;let ee=this.sourceCaches[Q.sourceId];if(!ee)return;let ue=ee.getSource();if(ue&&ue.vectorLayerIds)for(let Ve in this._layers){let et=this._layers[Ve];et.source===ue.id&&this._validateLayer(et)}})}loadURL(w,q={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),q.validate=typeof q.validate!="boolean"||q.validate;let ee=this.map._requestManager.transformRequest(w,"Style");this._loadStyleRequest=new AbortController;let ue=this._loadStyleRequest;a.h(ee,this._loadStyleRequest).then(Ve=>{this._loadStyleRequest=null,this._load(Ve.data,q,Q)}).catch(Ve=>{this._loadStyleRequest=null,Ve&&!ue.signal.aborted&&this.fire(new a.j(Ve))})}loadJSON(w,q={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),this._frameRequest=new AbortController,l.frameAsync(this._frameRequest).then(()=>{this._frameRequest=null,q.validate=q.validate!==!1,this._load(w,q,Q)}).catch(()=>{})}loadEmpty(){this.fire(new a.k("dataloading",{dataType:"style"})),this._load(Ri,{validate:!1})}_load(w,q,Q){var ee;let ue=q.transformStyle?q.transformStyle(Q,w):w;if(!q.validate||!Fi(this,a.u(ue))){this._loaded=!0,this.stylesheet=ue;for(let Ve in ue.sources)this.addSource(Ve,ue.sources[Ve],{validate:!1});ue.sprite?this._loadSprite(ue.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(ue.glyphs),this._createLayers(),this.light=new N(this.stylesheet.light),this.sky=new re(this.stylesheet.sky),this.map.setTerrain((ee=this.stylesheet.terrain)!==null&&ee!==void 0?ee:null),this.fire(new a.k("data",{dataType:"style"})),this.fire(new a.k("style.load"))}}_createLayers(){let w=a.az(this.stylesheet.layers);this.dispatcher.broadcast("SL",w),this._order=w.map(q=>q.id),this._layers={},this._serializedLayers=null;for(let q of w){let Q=a.aA(q);Q.setEventedParent(this,{layer:{id:q.id}}),this._layers[q.id]=Q}}_loadSprite(w,q=!1,Q=void 0){let ee;this.imageManager.setLoaded(!1),this._spriteRequest=new AbortController,function(ue,Ve,et,yt){return a._(this,void 0,void 0,function*(){let Dt=C(ue),ir=et>1?"@2x":"",or={},kr={};for(let{id:Vr,url:he}of Dt){let Se=Ve.transformRequest(S(he,ir,".json"),"SpriteJSON");or[Vr]=a.h(Se,yt);let qe=Ve.transformRequest(S(he,ir,".png"),"SpriteImage");kr[Vr]=v.getImage(qe,yt)}return yield Promise.all([...Object.values(or),...Object.values(kr)]),function(Vr,he){return a._(this,void 0,void 0,function*(){let Se={};for(let qe in Vr){Se[qe]={};let Ge=l.getImageCanvasContext((yield he[qe]).data),lt=(yield Vr[qe]).data;for(let tt in lt){let{width:vt,height:Gt,x:nr,y:cr,sdf:Ar,pixelRatio:Rr,stretchX:ri,stretchY:si,content:Mi,textFitWidth:hn,textFitHeight:Zn}=lt[tt];Se[qe][tt]={data:null,pixelRatio:Rr,sdf:Ar,stretchX:ri,stretchY:si,content:Mi,textFitWidth:hn,textFitHeight:Zn,spriteData:{width:vt,height:Gt,x:nr,y:cr,context:Ge}}}}return Se})}(or,kr)})}(w,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then(ue=>{if(this._spriteRequest=null,ue)for(let Ve in ue){this._spritesImagesIds[Ve]=[];let et=this._spritesImagesIds[Ve]?this._spritesImagesIds[Ve].filter(yt=>!(yt in ue)):[];for(let yt of et)this.imageManager.removeImage(yt),this._changedImages[yt]=!0;for(let yt in ue[Ve]){let Dt=Ve==="default"?yt:`${Ve}:${yt}`;this._spritesImagesIds[Ve].push(Dt),Dt in this.imageManager.images?this.imageManager.updateImage(Dt,ue[Ve][yt],!1):this.imageManager.addImage(Dt,ue[Ve][yt]),q&&(this._changedImages[Dt]=!0)}}}).catch(ue=>{this._spriteRequest=null,ee=ue,this.fire(new a.j(ee))}).finally(()=>{this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),q&&(this._changed=!0),this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"})),Q&&Q(ee)})}_unloadSprite(){for(let w of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(w),this._changedImages[w]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}_validateLayer(w){let q=this.sourceCaches[w.source];if(!q)return;let Q=w.sourceLayer;if(!Q)return;let ee=q.getSource();(ee.type==="geojson"||ee.vectorLayerIds&&ee.vectorLayerIds.indexOf(Q)===-1)&&this.fire(new a.j(new Error(`Source layer "${Q}" does not exist on source "${ee.id}" as specified by style layer "${w.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let w in this.sourceCaches)if(!this.sourceCaches[w].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(w,q=!1){let Q=this._serializedAllLayers();if(!w||w.length===0)return Object.values(q?a.aB(Q):Q);let ee=[];for(let ue of w)if(Q[ue]){let Ve=q?a.aB(Q[ue]):Q[ue];ee.push(Ve)}return ee}_serializedAllLayers(){let w=this._serializedLayers;if(w)return w;w=this._serializedLayers={};let q=Object.keys(this._layers);for(let Q of q){let ee=this._layers[Q];ee.type!=="custom"&&(w[Q]=ee.serialize())}return w}hasTransitions(){if(this.light&&this.light.hasTransition()||this.sky&&this.sky.hasTransition())return!0;for(let w in this.sourceCaches)if(this.sourceCaches[w].hasTransition())return!0;for(let w in this._layers)if(this._layers[w].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(w){if(!this._loaded)return;let q=this._changed;if(q){let ee=Object.keys(this._updatedLayers),ue=Object.keys(this._removedLayers);(ee.length||ue.length)&&this._updateWorkerLayers(ee,ue);for(let Ve in this._updatedSources){let et=this._updatedSources[Ve];if(et==="reload")this._reloadSource(Ve);else{if(et!=="clear")throw new Error(`Invalid action ${et}`);this._clearSource(Ve)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let Ve in this._updatedPaintProps)this._layers[Ve].updateTransitions(w);this.light.updateTransitions(w),this.sky.updateTransitions(w),this._resetUpdates()}let Q={};for(let ee in this.sourceCaches){let ue=this.sourceCaches[ee];Q[ee]=ue.used,ue.used=!1}for(let ee of this._order){let ue=this._layers[ee];ue.recalculate(w,this._availableImages),!ue.isHidden(w.zoom)&&ue.source&&(this.sourceCaches[ue.source].used=!0)}for(let ee in Q){let ue=this.sourceCaches[ee];!!Q[ee]!=!!ue.used&&ue.fire(new a.k("data",{sourceDataType:"visibility",dataType:"source",sourceId:ee}))}this.light.recalculate(w),this.sky.recalculate(w),this.z=w.zoom,q&&this.fire(new a.k("data",{dataType:"style"}))}_updateTilesForChangedImages(){let w=Object.keys(this._changedImages);if(w.length){for(let q in this.sourceCaches)this.sourceCaches[q].reloadTilesForDependencies(["icons","patterns"],w);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let w in this.sourceCaches)this.sourceCaches[w].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(w,q){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(w,!1),removedIds:q})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(w,q={}){var Q;this._checkLoaded();let ee=this.serialize();if(w=q.transformStyle?q.transformStyle(ee,w):w,((Q=q.validate)===null||Q===void 0||Q)&&Fi(this,a.u(w)))return!1;(w=a.aB(w)).layers=a.az(w.layers);let ue=a.aC(ee,w),Ve=this._getOperationsToPerform(ue);if(Ve.unimplemented.length>0)throw new Error(`Unimplemented: ${Ve.unimplemented.join(", ")}.`);if(Ve.operations.length===0)return!1;for(let et of Ve.operations)et();return this.stylesheet=w,this._serializedLayers=null,!0}_getOperationsToPerform(w){let q=[],Q=[];for(let ee of w)switch(ee.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":continue;case"addLayer":q.push(()=>this.addLayer.apply(this,ee.args));break;case"removeLayer":q.push(()=>this.removeLayer.apply(this,ee.args));break;case"setPaintProperty":q.push(()=>this.setPaintProperty.apply(this,ee.args));break;case"setLayoutProperty":q.push(()=>this.setLayoutProperty.apply(this,ee.args));break;case"setFilter":q.push(()=>this.setFilter.apply(this,ee.args));break;case"addSource":q.push(()=>this.addSource.apply(this,ee.args));break;case"removeSource":q.push(()=>this.removeSource.apply(this,ee.args));break;case"setLayerZoomRange":q.push(()=>this.setLayerZoomRange.apply(this,ee.args));break;case"setLight":q.push(()=>this.setLight.apply(this,ee.args));break;case"setGeoJSONSourceData":q.push(()=>this.setGeoJSONSourceData.apply(this,ee.args));break;case"setGlyphs":q.push(()=>this.setGlyphs.apply(this,ee.args));break;case"setSprite":q.push(()=>this.setSprite.apply(this,ee.args));break;case"setSky":q.push(()=>this.setSky.apply(this,ee.args));break;case"setTerrain":q.push(()=>this.map.setTerrain.apply(this,ee.args));break;case"setTransition":q.push(()=>{});break;default:Q.push(ee.command)}return{operations:q,unimplemented:Q}}addImage(w,q){if(this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" already exists.`)));this.imageManager.addImage(w,q),this._afterImageUpdated(w)}updateImage(w,q){this.imageManager.updateImage(w,q)}getImage(w){return this.imageManager.getImage(w)}removeImage(w){if(!this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" does not exist.`)));this.imageManager.removeImage(w),this._afterImageUpdated(w)}_afterImageUpdated(w){this._availableImages=this.imageManager.listImages(),this._changedImages[w]=!0,this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(w,q,Q={}){if(this._checkLoaded(),this.sourceCaches[w]!==void 0)throw new Error(`Source "${w}" already exists.`);if(!q.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(q).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(q.type)>=0&&this._validate(a.u.source,`sources.${w}`,q,null,Q))return;this.map&&this.map._collectResourceTiming&&(q.collectResourceTiming=!0);let ee=this.sourceCaches[w]=new rt(w,q,this.dispatcher);ee.style=this,ee.setEventedParent(this,()=>({isSourceLoaded:ee.loaded(),source:ee.serialize(),sourceId:w})),ee.onAdd(this.map),this._changed=!0}removeSource(w){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error("There is no source with this ID");for(let Q in this._layers)if(this._layers[Q].source===w)return this.fire(new a.j(new Error(`Source "${w}" cannot be removed while layer "${Q}" is using it.`)));let q=this.sourceCaches[w];delete this.sourceCaches[w],delete this._updatedSources[w],q.fire(new a.k("data",{sourceDataType:"metadata",dataType:"source",sourceId:w})),q.setEventedParent(null),q.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(w,q){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error(`There is no source with this ID=${w}`);let Q=this.sourceCaches[w].getSource();if(Q.type!=="geojson")throw new Error(`geojsonSource.type is ${Q.type}, which is !== 'geojson`);Q.setData(q),this._changed=!0}getSource(w){return this.sourceCaches[w]&&this.sourceCaches[w].getSource()}addLayer(w,q,Q={}){this._checkLoaded();let ee=w.id;if(this.getLayer(ee))return void this.fire(new a.j(new Error(`Layer "${ee}" already exists on this map.`)));let ue;if(w.type==="custom"){if(Fi(this,a.aD(w)))return;ue=a.aA(w)}else{if("source"in w&&typeof w.source=="object"&&(this.addSource(ee,w.source),w=a.aB(w),w=a.e(w,{source:ee})),this._validate(a.u.layer,`layers.${ee}`,w,{arrayIndex:-1},Q))return;ue=a.aA(w),this._validateLayer(ue),ue.setEventedParent(this,{layer:{id:ee}})}let Ve=q?this._order.indexOf(q):this._order.length;if(q&&Ve===-1)this.fire(new a.j(new Error(`Cannot add layer "${ee}" before non-existing layer "${q}".`)));else{if(this._order.splice(Ve,0,ee),this._layerOrderChanged=!0,this._layers[ee]=ue,this._removedLayers[ee]&&ue.source&&ue.type!=="custom"){let et=this._removedLayers[ee];delete this._removedLayers[ee],et.type!==ue.type?this._updatedSources[ue.source]="clear":(this._updatedSources[ue.source]="reload",this.sourceCaches[ue.source].pause())}this._updateLayer(ue),ue.onAdd&&ue.onAdd(this.map)}}moveLayer(w,q){if(this._checkLoaded(),this._changed=!0,!this._layers[w])return void this.fire(new a.j(new Error(`The layer '${w}' does not exist in the map's style and cannot be moved.`)));if(w===q)return;let Q=this._order.indexOf(w);this._order.splice(Q,1);let ee=q?this._order.indexOf(q):this._order.length;q&&ee===-1?this.fire(new a.j(new Error(`Cannot move layer "${w}" before non-existing layer "${q}".`))):(this._order.splice(ee,0,w),this._layerOrderChanged=!0)}removeLayer(w){this._checkLoaded();let q=this._layers[w];if(!q)return void this.fire(new a.j(new Error(`Cannot remove non-existing layer "${w}".`)));q.setEventedParent(null);let Q=this._order.indexOf(w);this._order.splice(Q,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[w]=q,delete this._layers[w],this._serializedLayers&&delete this._serializedLayers[w],delete this._updatedLayers[w],delete this._updatedPaintProps[w],q.onRemove&&q.onRemove(this.map)}getLayer(w){return this._layers[w]}getLayersOrder(){return[...this._order]}hasLayer(w){return w in this._layers}setLayerZoomRange(w,q,Q){this._checkLoaded();let ee=this.getLayer(w);ee?ee.minzoom===q&&ee.maxzoom===Q||(q!=null&&(ee.minzoom=q),Q!=null&&(ee.maxzoom=Q),this._updateLayer(ee)):this.fire(new a.j(new Error(`Cannot set the zoom range of non-existing layer "${w}".`)))}setFilter(w,q,Q={}){this._checkLoaded();let ee=this.getLayer(w);if(ee){if(!a.aE(ee.filter,q))return q==null?(ee.filter=void 0,void this._updateLayer(ee)):void(this._validate(a.u.filter,`layers.${ee.id}.filter`,q,null,Q)||(ee.filter=a.aB(q),this._updateLayer(ee)))}else this.fire(new a.j(new Error(`Cannot filter non-existing layer "${w}".`)))}getFilter(w){return a.aB(this.getLayer(w).filter)}setLayoutProperty(w,q,Q,ee={}){this._checkLoaded();let ue=this.getLayer(w);ue?a.aE(ue.getLayoutProperty(q),Q)||(ue.setLayoutProperty(q,Q,ee),this._updateLayer(ue)):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getLayoutProperty(w,q){let Q=this.getLayer(w);if(Q)return Q.getLayoutProperty(q);this.fire(new a.j(new Error(`Cannot get style of non-existing layer "${w}".`)))}setPaintProperty(w,q,Q,ee={}){this._checkLoaded();let ue=this.getLayer(w);ue?a.aE(ue.getPaintProperty(q),Q)||(ue.setPaintProperty(q,Q,ee)&&this._updateLayer(ue),this._changed=!0,this._updatedPaintProps[w]=!0,this._serializedLayers=null):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getPaintProperty(w,q){return this.getLayer(w).getPaintProperty(q)}setFeatureState(w,q){this._checkLoaded();let Q=w.source,ee=w.sourceLayer,ue=this.sourceCaches[Q];if(ue===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let Ve=ue.getSource().type;Ve==="geojson"&&ee?this.fire(new a.j(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):Ve!=="vector"||ee?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),ue.setFeatureState(ee,w.id,q)):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(w,q){this._checkLoaded();let Q=w.source,ee=this.sourceCaches[Q];if(ee===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let ue=ee.getSource().type,Ve=ue==="vector"?w.sourceLayer:void 0;ue!=="vector"||Ve?q&&typeof w.id!="string"&&typeof w.id!="number"?this.fire(new a.j(new Error("A feature id is required to remove its specific state property."))):ee.removeFeatureState(Ve,w.id,q):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(w){this._checkLoaded();let q=w.source,Q=w.sourceLayer,ee=this.sourceCaches[q];if(ee!==void 0)return ee.getSource().type!=="vector"||Q?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),ee.getFeatureState(Q,w.id)):void this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new a.j(new Error(`The source '${q}' does not exist in the map's style.`)))}getTransition(){return a.e({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;let w=a.aF(this.sourceCaches,ue=>ue.serialize()),q=this._serializeByIds(this._order,!0),Q=this.map.getTerrain()||void 0,ee=this.stylesheet;return a.aG({version:ee.version,name:ee.name,metadata:ee.metadata,light:ee.light,sky:ee.sky,center:ee.center,zoom:ee.zoom,bearing:ee.bearing,pitch:ee.pitch,sprite:ee.sprite,glyphs:ee.glyphs,transition:ee.transition,sources:w,layers:q,terrain:Q},ue=>ue!==void 0)}_updateLayer(w){this._updatedLayers[w.id]=!0,w.source&&!this._updatedSources[w.source]&&this.sourceCaches[w.source].getSource().type!=="raster"&&(this._updatedSources[w.source]="reload",this.sourceCaches[w.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(w){let q=Ve=>this._layers[Ve].type==="fill-extrusion",Q={},ee=[];for(let Ve=this._order.length-1;Ve>=0;Ve--){let et=this._order[Ve];if(q(et)){Q[et]=Ve;for(let yt of w){let Dt=yt[et];if(Dt)for(let ir of Dt)ee.push(ir)}}}ee.sort((Ve,et)=>et.intersectionZ-Ve.intersectionZ);let ue=[];for(let Ve=this._order.length-1;Ve>=0;Ve--){let et=this._order[Ve];if(q(et))for(let yt=ee.length-1;yt>=0;yt--){let Dt=ee[yt].feature;if(Q[Dt.layer.id]{let Ar=Ge.featureSortOrder;if(Ar){let Rr=Ar.indexOf(nr.featureIndex);return Ar.indexOf(cr.featureIndex)-Rr}return cr.featureIndex-nr.featureIndex});for(let nr of Gt)vt.push(nr)}}for(let Ge in he)he[Ge].forEach(lt=>{let tt=lt.feature,vt=Dt[et[Ge].source].getFeatureState(tt.layer["source-layer"],tt.id);tt.source=tt.layer.source,tt.layer["source-layer"]&&(tt.sourceLayer=tt.layer["source-layer"]),tt.state=vt});return he}(this._layers,Ve,this.sourceCaches,w,q,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(ue)}querySourceFeatures(w,q){q&&q.filter&&this._validate(a.u.filter,"querySourceFeatures.filter",q.filter,null,q);let Q=this.sourceCaches[w];return Q?function(ee,ue){let Ve=ee.getRenderableIds().map(Dt=>ee.getTileByID(Dt)),et=[],yt={};for(let Dt=0;Dtkr.getTileByID(Vr)).sort((Vr,he)=>he.tileID.overscaledZ-Vr.tileID.overscaledZ||(Vr.tileID.isLessThan(he.tileID)?-1:1))}let or=this.crossTileSymbolIndex.addLayer(ir,yt[ir.source],w.center.lng);Ve=Ve||or}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((ue=ue||this._layerOrderChanged||Q===0)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(l.now(),w.zoom))&&(this.pauseablePlacement=new en(w,this.map.terrain,this._order,ue,q,Q,ee,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,yt),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(l.now()),et=!0),Ve&&this.pauseablePlacement.placement.setStale()),et||Ve)for(let Dt of this._order){let ir=this._layers[Dt];ir.type==="symbol"&&this.placement.updateLayerOpacities(ir,yt[ir.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(l.now())}_releaseSymbolFadeTiles(){for(let w in this.sourceCaches)this.sourceCaches[w].releaseSymbolFadeTiles()}getImages(w,q){return a._(this,void 0,void 0,function*(){let Q=yield this.imageManager.getImages(q.icons);this._updateTilesForChangedImages();let ee=this.sourceCaches[q.source];return ee&&ee.setDependencies(q.tileID.key,q.type,q.icons),Q})}getGlyphs(w,q){return a._(this,void 0,void 0,function*(){let Q=yield this.glyphManager.getGlyphs(q.stacks),ee=this.sourceCaches[q.source];return ee&&ee.setDependencies(q.tileID.key,q.type,[""]),Q})}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(w,q={}){this._checkLoaded(),w&&this._validate(a.u.glyphs,"glyphs",w,null,q)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=w,this.glyphManager.entries={},this.glyphManager.setURL(w))}addSprite(w,q,Q={},ee){this._checkLoaded();let ue=[{id:w,url:q}],Ve=[...C(this.stylesheet.sprite),...ue];this._validate(a.u.sprite,"sprite",Ve,null,Q)||(this.stylesheet.sprite=Ve,this._loadSprite(ue,!0,ee))}removeSprite(w){this._checkLoaded();let q=C(this.stylesheet.sprite);if(q.find(Q=>Q.id===w)){if(this._spritesImagesIds[w])for(let Q of this._spritesImagesIds[w])this.imageManager.removeImage(Q),this._changedImages[Q]=!0;q.splice(q.findIndex(Q=>Q.id===w),1),this.stylesheet.sprite=q.length>0?q:void 0,delete this._spritesImagesIds[w],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}else this.fire(new a.j(new Error(`Sprite "${w}" doesn't exists on this map.`)))}getSprite(){return C(this.stylesheet.sprite)}setSprite(w,q={},Q){this._checkLoaded(),w&&this._validate(a.u.sprite,"sprite",w,null,q)||(this.stylesheet.sprite=w,w?this._loadSprite(w,!0,Q):(this._unloadSprite(),Q&&Q(null)))}}var xi=a.Y([{name:"a_pos",type:"Int16",components:2}]);let Xr={prelude:ft(`#ifdef GL_ES +{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}});var qHe=Te((zbr,OHe)=>{OHe.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}});var wx=Te((Ibr,HHe)=>{"use strict";var Qjt=Y1(),eXt=BHe(),tXt=qHe(),rXt='\xA9 OpenStreetMap contributors',NHe="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",UHe="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",uB="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",iXt="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",nXt="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",aXt="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",GHe={basic:uB,streets:uB,outdoors:uB,light:NHe,dark:UHe,satellite:tXt,"satellite-streets":eXt,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:rXt,tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":NHe,"carto-darkmatter":UHe,"carto-voyager":uB,"carto-positron-nolabels":iXt,"carto-darkmatter-nolabels":nXt,"carto-voyager-nolabels":aXt},VHe=Qjt(GHe);HHe.exports={styleValueDflt:"basic",stylesMap:GHe,styleValuesMap:VHe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",VHe.join(", "),"or use a tile service."].join(` +`),mapOnErrorMsg:"Map error."}});var Gk=Te((Rbr,YHe)=>{"use strict";var WHe=ei(),jHe=jl().defaultLine,oXt=zc().attributes,sXt=gc(),lXt=Zc().textposition,uXt=Sc().overrideAll,fXt=Pf().templatedArray,XHe=wx(),ZHe=sXt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});ZHe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var cXt=YHe.exports=uXt({_arrayAttrRegexps:[WHe.counterRegex("map",".layers",!0)],domain:oXt({name:"map"}),style:{valType:"any",values:XHe.styleValuesMap,dflt:XHe.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:fXt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:jHe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:jHe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:ZHe,textposition:WHe.extendFlat({},lXt,{arrayOk:!1})}})},"plot","from-root");cXt.uirevision={valType:"any",editType:"none"}});var fB=Te((Dbr,$He)=>{"use strict";var hXt=Nu().hovertemplateAttrs,dXt=Nu().texttemplateAttrs,pXt=Em(),Hk=G2(),TS=Zc(),KHe=Gk(),vXt=Vf(),mXt=nc(),rw=Su().extendFlat,yXt=Sc().overrideAll,gXt=Gk(),JHe=Hk.line,SS=Hk.marker;$He.exports=yXt({lon:Hk.lon,lat:Hk.lat,cluster:{enabled:{valType:"boolean"},maxzoom:rw({},gXt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:rw({},SS.opacity,{dflt:1})},mode:rw({},TS.mode,{dflt:"markers"}),text:rw({},TS.text,{}),texttemplate:dXt({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:rw({},TS.hovertext,{}),line:{color:JHe.color,width:JHe.width},connectgaps:TS.connectgaps,marker:rw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:SS.opacity,size:SS.size,sizeref:SS.sizeref,sizemin:SS.sizemin,sizemode:SS.sizemode},mXt("marker")),fill:Hk.fill,fillcolor:pXt(),textfont:KHe.layers.symbol.textfont,textposition:KHe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:TS.selected.marker},unselected:{marker:TS.unselected.marker},hoverinfo:rw({},vXt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:hXt()},"calc","nested")});var LJ=Te((Fbr,QHe)=>{"use strict";var _Xt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];QHe.exports={isSupportedFont:function(e){return _Xt.indexOf(e)!==-1}}});var rWe=Te((Bbr,tWe)=>{"use strict";var Wk=ei(),PJ=lc(),xXt=$v(),bXt=I0(),wXt=R0(),AXt=zm(),eWe=fB(),TXt=LJ().isSupportedFont;tWe.exports=function(t,r,n,i){function a(v,k){return Wk.coerce(t,r,eWe,v,k)}function o(v,k){return Wk.coerce2(t,r,eWe,v,k)}var s=SXt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("hovertext"),a("hovertemplate"),a("mode"),a("below"),PJ.hasMarkers(r)){xXt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var u=r.marker;u.symbol!=="circle"&&(Wk.isArrayOrTypedArray(u.size)&&(u.size=u.size[0]),Wk.isArrayOrTypedArray(u.color)&&(u.color=u.color[0]))}PJ.hasLines(r)&&(bXt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var l=o("cluster.maxzoom"),f=o("cluster.step"),c=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),p=l!==!1||f!==!1||c!==!1||h!==!1||d!==!1,x=a("cluster.enabled",p);if(x||PJ.hasText(r)){var b=i.font.family;wXt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:TXt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&AXt(t,r,n,a),Wk.coerceSelectionMarkerOpacity(r,a)};function SXt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var zJ=Te((Obr,nWe)=>{"use strict";var iWe=wu();nWe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=iWe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=iWe.tickText(o,o.c2l(s[1]),!0).text,i}});var IJ=Te((qbr,oWe)=>{"use strict";var aWe=ei();oWe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=aWe.isArrayOrTypedArray(r)?aWe.mean(r):r,s=.5+o/100,u=1.5+o/100,l=["",""],f=[0,0];switch(i){case"top":l[0]="top",f[1]=-u;break;case"bottom":l[0]="bottom",f[1]=u;break}switch(a){case"left":l[1]="right",f[0]=-s;break;case"right":l[1]="left",f[0]=s;break}var c;return l[0]&&l[1]?c=l.join("-"):l[0]?c=l[0]:l[1]?c=l[1]:c="center",{anchor:c,offset:f}}});var hWe=Te((Nbr,cWe)=>{"use strict";var uWe=ku(),lp=ei(),MXt=nf().BADNUM,hB=rx(),sWe=_c(),EXt=Mu(),kXt=S3(),dB=lc(),CXt=LJ().isSupportedFont,LXt=IJ(),PXt=rv().appendArrayPointValue,zXt=Zf().NEWLINES,IXt=Zf().BR_TAG_ALL;cWe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=dB.hasLines(n),s=dB.hasMarkers(n),u=dB.hasText(n),l=s&&n.marker.symbol==="circle",f=s&&n.marker.symbol!=="circle",c=n.cluster&&n.cluster.enabled,h=cB("fill"),d=cB("line"),p=cB("circle"),x=cB("symbol"),b={fill:h,line:d,circle:p,symbol:x};if(!i)return b;var v;if((a||o)&&(v=hB.calcTraceToLineCoords(r)),a&&(h.geojson=hB.makePolygon(v),h.layout.visibility="visible",lp.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=hB.makeLine(v),d.layout.visibility="visible",lp.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),l){var k=RXt(r);p.geojson=k.geojson,p.layout.visibility="visible",c&&(p.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":DJ(n.cluster.color,n.cluster.step),"circle-radius":DJ(n.cluster.size,n.cluster.step),"circle-opacity":DJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":lWe(n),"text-size":12}}),lp.extendFlat(p.paint,{"circle-color":k.mcc,"circle-radius":k.mrc,"circle-opacity":k.mo})}if(l&&c&&(p.filter=["!",["has","point_count"]]),(f||u)&&(x.geojson=DXt(r,t),lp.extendFlat(x.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),f&&(lp.extendFlat(x.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&lp.extendFlat(x.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),x.layout["icon-allow-overlap"]=n.marker.allowoverlap,lp.extendFlat(x.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),u)){var E=(n.marker||{}).size,T=LXt(n.textposition,E);lp.extendFlat(x.layout,{"text-size":n.textfont.size,"text-anchor":T.anchor,"text-offset":T.offset,"text-font":lWe(n)}),lp.extendFlat(x.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function cB(e){return{type:e,geojson:hB.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function RXt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=lp.isArrayOrTypedArray(r.color),a=lp.isArrayOrTypedArray(r.size),o=lp.isArrayOrTypedArray(r.opacity),s;function u(E){return t.opacity*E}function l(E){return E/2}var f;i&&(sWe.hasColorscale(t,"marker")?f=sWe.makeColorScaleFuncFromTrace(r):f=lp.identity);var c;a&&(c=kXt(t));var h;o&&(h=function(E){var T=uWe(E)?+lp.constrain(E,0,1):0;return u(T)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),CXt(s)||(s=r);var u=s.split(", ");return u}});var mWe=Te((Ubr,vWe)=>{"use strict";var FXt=ei(),dWe=hWe(),MS=wx().traceLayerPrefix,nm={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function pWe(e,t,r,n){this.type="scattermap",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:MS+t+"-fill",line:MS+t+"-line",circle:MS+t+"-circle",symbol:MS+t+"-symbol",cluster:MS+t+"-cluster",clusterCount:MS+t+"-cluster-count"},this.below=null}var jk=pWe.prototype;jk.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&FXt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};jk.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};jk.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var _=T[L];i.removeLayer(l.layerIds[_])}E||i.removeSource(l.sourceIds.circle)}function h(E){for(var T=nm.nonCluster,L=0;L=0;L--){var _=T[L];i.removeLayer(l.layerIds[_]),E||i.removeSource(l.sourceIds[_])}}function p(E){u?c(E):d(E)}function x(E){s?f(E):h(E)}function b(){for(var E=s?nm.cluster:nm.nonCluster,T=0;T=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};vWe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new pWe(t,n.uid,i,a),s=dWe(t.gd,r),u=o.below=t.belowLookup["trace-"+n.uid],l,f,c;if(i)for(o.addSource("circle",s.circle,n.cluster),l=0;l{"use strict";var BXt=Xc(),FJ=ei(),OXt=oA(),qXt=FJ.fillText,NXt=nf().BADNUM,UXt=wx().traceLayerPrefix;function VXt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,u=[],l=UXt+i.uid+"-circle",f=i.cluster&&i.cluster.enabled;if(f){var c=s.map.queryRenderedFeatures(null,{layers:[l]});u=c.map(function(S){return S.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,p=t-d;function x(S){var m=S.lonlat;if(m[0]===NXt||f&&u.indexOf(S.i+1)===-1)return 1/0;var P=FJ.modHalf(m[0],360),A=m[1],B=s.project([P,A]),F=B.x-a.c2p([p,A]),U=B.y-o.c2p([P,r]),G=Math.max(3,S.mrc||0);return Math.max(Math.sqrt(F*F+U*U)-G,1-3/G)}if(BXt.getClosest(n,x,e),e.index!==!1){var b=n[e.index],v=b.lonlat,k=[FJ.modHalf(v[0],360)+d,v[1]],E=a.c2p(k),T=o.c2p(k),L=b.mrc||1;e.x0=E-L,e.x1=E+L,e.y0=T-L,e.y1=T+L;var _={};_[i.subplot]={_subplot:s};var C=i._module.formatLabels(b,i,_);return e.lonLabel=C.lonLabel,e.latLabel=C.latLabel,e.color=OXt(i,b),e.extraText=yWe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function yWe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,u=t.lonlat,l=[];function f(c){return c+"\xB0"}return a||o&&s?l.push("("+f(u[1])+", "+f(u[0])+")"):o?l.push(r.lon+f(u[0])):s&&l.push(r.lat+f(u[1])),(a||i.indexOf("text")!==-1)&&qXt(t,e,l),l.join("
")}gWe.exports={hoverPoints:VXt,getExtraText:yWe}});var xWe=Te((Gbr,_We)=>{"use strict";_We.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var wWe=Te((Hbr,bWe)=>{"use strict";var GXt=ei(),HXt=lc(),WXt=nf().BADNUM;bWe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,u;if(!HXt.hasMarkers(s))return[];if(r===!1)for(u=0;u{(function(e,t){typeof BJ=="object"&&typeof OJ!="undefined"?OJ.exports=t():(e=typeof globalThis!="undefined"?globalThis:e||self,e.maplibregl=t())})(BJ,function(){"use strict";var e={},t={};function r(i,a,o){if(t[i]=o,i==="index"){var s="var sharedModule = {}; ("+t.shared+")(sharedModule); ("+t.worker+")(sharedModule);",u={};return t.shared(u),t.index(e,u),typeof window!="undefined"&&e.setWorkerUrl(window.URL.createObjectURL(new Blob([s],{type:"text/javascript"}))),e}}r("shared",["exports"],function(i){"use strict";function a(I,M,D,X){return new(D||(D=Promise))(function(ie,ve){function we(Mt){try{ut(X.next(Mt))}catch($t){ve($t)}}function We(Mt){try{ut(X.throw(Mt))}catch($t){ve($t)}}function ut(Mt){var $t;Mt.done?ie(Mt.value):($t=Mt.value,$t instanceof D?$t:new D(function(vr){vr($t)})).then(we,We)}ut((X=X.apply(I,M||[])).next())})}function o(I){return I&&I.__esModule&&Object.prototype.hasOwnProperty.call(I,"default")?I.default:I}typeof SuppressedError=="function"&&SuppressedError;var s=u;function u(I,M){this.x=I,this.y=M}u.prototype={clone:function(){return new u(this.x,this.y)},add:function(I){return this.clone()._add(I)},sub:function(I){return this.clone()._sub(I)},multByPoint:function(I){return this.clone()._multByPoint(I)},divByPoint:function(I){return this.clone()._divByPoint(I)},mult:function(I){return this.clone()._mult(I)},div:function(I){return this.clone()._div(I)},rotate:function(I){return this.clone()._rotate(I)},rotateAround:function(I,M){return this.clone()._rotateAround(I,M)},matMult:function(I){return this.clone()._matMult(I)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(I){return this.x===I.x&&this.y===I.y},dist:function(I){return Math.sqrt(this.distSqr(I))},distSqr:function(I){var M=I.x-this.x,D=I.y-this.y;return M*M+D*D},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(I){return Math.atan2(this.y-I.y,this.x-I.x)},angleWith:function(I){return this.angleWithSep(I.x,I.y)},angleWithSep:function(I,M){return Math.atan2(this.x*M-this.y*I,this.x*I+this.y*M)},_matMult:function(I){var M=I[2]*this.x+I[3]*this.y;return this.x=I[0]*this.x+I[1]*this.y,this.y=M,this},_add:function(I){return this.x+=I.x,this.y+=I.y,this},_sub:function(I){return this.x-=I.x,this.y-=I.y,this},_mult:function(I){return this.x*=I,this.y*=I,this},_div:function(I){return this.x/=I,this.y/=I,this},_multByPoint:function(I){return this.x*=I.x,this.y*=I.y,this},_divByPoint:function(I){return this.x/=I.x,this.y/=I.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var I=this.y;return this.y=this.x,this.x=-I,this},_rotate:function(I){var M=Math.cos(I),D=Math.sin(I),X=D*this.x+M*this.y;return this.x=M*this.x-D*this.y,this.y=X,this},_rotateAround:function(I,M){var D=Math.cos(I),X=Math.sin(I),ie=M.y+X*(this.x-M.x)+D*(this.y-M.y);return this.x=M.x+D*(this.x-M.x)-X*(this.y-M.y),this.y=ie,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},u.convert=function(I){return I instanceof u?I:Array.isArray(I)?new u(I[0],I[1]):I};var l=o(s),f=c;function c(I,M,D,X){this.cx=3*I,this.bx=3*(D-I)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*M,this.by=3*(X-M)-this.cy,this.ay=1-this.cy-this.by,this.p1x=I,this.p1y=M,this.p2x=D,this.p2y=X}c.prototype={sampleCurveX:function(I){return((this.ax*I+this.bx)*I+this.cx)*I},sampleCurveY:function(I){return((this.ay*I+this.by)*I+this.cy)*I},sampleCurveDerivativeX:function(I){return(3*this.ax*I+2*this.bx)*I+this.cx},solveCurveX:function(I,M){if(M===void 0&&(M=1e-6),I<0)return 0;if(I>1)return 1;for(var D=I,X=0;X<8;X++){var ie=this.sampleCurveX(D)-I;if(Math.abs(ie)ie?we=D:We=D,D=.5*(We-we)+we;return D},solve:function(I,M){return this.sampleCurveY(this.solveCurveX(I,M))}};var h=o(f);let d,p;function x(){return d==null&&(d=typeof OffscreenCanvas!="undefined"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),d}function b(){if(p==null&&(p=!1,x())){let M=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(M){for(let X=0;X<5*5;X++){let ie=4*X;M.fillStyle=`rgb(${ie},${ie+1},${ie+2})`,M.fillRect(X%5,Math.floor(X/5),1,1)}let D=M.getImageData(0,0,5,5).data;for(let X=0;X<5*5*4;X++)if(X%4!=3&&D[X]!==X){p=!0;break}}}return p||!1}function v(I,M,D,X){let ie=new h(I,M,D,X);return ve=>ie.solve(ve)}let k=v(.25,.1,.25,1);function E(I,M,D){return Math.min(D,Math.max(M,I))}function T(I,M,D){let X=D-M,ie=((I-M)%X+X)%X+M;return ie===M?D:ie}function L(I,...M){for(let D of M)for(let X in D)I[X]=D[X];return I}let _=1;function C(I,M,D){let X={};for(let ie in I)X[ie]=M.call(this,I[ie],ie,I);return X}function S(I,M,D){let X={};for(let ie in I)M.call(this,I[ie],ie,I)&&(X[ie]=I[ie]);return X}function m(I){return Array.isArray(I)?I.map(m):typeof I=="object"&&I?C(I,m):I}let P={};function A(I){P[I]||(typeof console!="undefined"&&console.warn(I),P[I]=!0)}function B(I,M,D){return(D.y-I.y)*(M.x-I.x)>(M.y-I.y)*(D.x-I.x)}function F(I){return typeof WorkerGlobalScope!="undefined"&&I!==void 0&&I instanceof WorkerGlobalScope}let U=null;function G(I){return typeof ImageBitmap!="undefined"&&I instanceof ImageBitmap}let j="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function H(I,M,D,X,ie){return a(this,void 0,void 0,function*(){if(typeof VideoFrame=="undefined")throw new Error("VideoFrame not supported");let ve=new VideoFrame(I,{timestamp:0});try{let we=ve==null?void 0:ve.format;if(!we||!we.startsWith("BGR")&&!we.startsWith("RGB"))throw new Error(`Unrecognized format ${we}`);let We=we.startsWith("BGR"),ut=new Uint8ClampedArray(X*ie*4);if(yield ve.copyTo(ut,function(Mt,$t,vr,Sr,Br){let Jr=4*Math.max(-$t,0),li=(Math.max(0,vr)-vr)*Sr*4+Jr,Hi=4*Sr,cn=Math.max(0,$t),Za=Math.max(0,vr);return{rect:{x:cn,y:Za,width:Math.min(Mt.width,$t+Sr)-cn,height:Math.min(Mt.height,vr+Br)-Za},layout:[{offset:li,stride:Hi}]}}(I,M,D,X,ie)),We)for(let Mt=0;MtF(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,ke=function(I,M){if(/:\/\//.test(I.url)&&!/^https?:|^file:/.test(I.url)){let X=Ce(I.url);if(X)return X(I,M);if(F(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:I,targetMapId:Le},M)}if(!(/^file:/.test(D=I.url)||/^file:/.test(te())&&!/^\w+:/.test(D))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return function(X,ie){return a(this,void 0,void 0,function*(){let ve=new Request(X.url,{method:X.method||"GET",body:X.body,credentials:X.credentials,headers:X.headers,cache:X.cache,referrer:te(),signal:ie.signal});X.type!=="json"||ve.headers.has("Accept")||ve.headers.set("Accept","application/json");let we=yield fetch(ve);if(!we.ok){let Mt=yield we.blob();throw new pe(we.status,we.statusText,X.url,Mt)}let We;We=X.type==="arrayBuffer"||X.type==="image"?we.arrayBuffer():X.type==="json"?we.json():we.text();let ut=yield We;if(ie.signal.aborted)throw ae();return{data:ut,cacheControl:we.headers.get("Cache-Control"),expires:we.headers.get("Expires")}})}(I,M);if(F(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:I,mustQueue:!0,targetMapId:Le},M)}var D;return function(X,ie){return new Promise((ve,we)=>{var We;let ut=new XMLHttpRequest;ut.open(X.method||"GET",X.url,!0),X.type!=="arrayBuffer"&&X.type!=="image"||(ut.responseType="arraybuffer");for(let Mt in X.headers)ut.setRequestHeader(Mt,X.headers[Mt]);X.type==="json"&&(ut.responseType="text",!((We=X.headers)===null||We===void 0)&&We.Accept||ut.setRequestHeader("Accept","application/json")),ut.withCredentials=X.credentials==="include",ut.onerror=()=>{we(new Error(ut.statusText))},ut.onload=()=>{if(!ie.signal.aborted)if((ut.status>=200&&ut.status<300||ut.status===0)&&ut.response!==null){let Mt=ut.response;if(X.type==="json")try{Mt=JSON.parse(ut.response)}catch($t){return void we($t)}ve({data:Mt,cacheControl:ut.getResponseHeader("Cache-Control"),expires:ut.getResponseHeader("Expires")})}else{let Mt=new Blob([ut.response],{type:ut.getResponseHeader("Content-Type")});we(new pe(ut.status,ut.statusText,X.url,Mt))}},ie.signal.addEventListener("abort",()=>{ut.abort(),we(ae())}),ut.send(X.body)})}(I,M)};function Ee(I){if(!I||I.indexOf("://")<=0||I.indexOf("data:image/")===0||I.indexOf("blob:")===0)return!0;let M=new URL(I),D=window.location;return M.protocol===D.protocol&&M.host===D.host}function Me(I,M,D){D[I]&&D[I].indexOf(M)!==-1||(D[I]=D[I]||[],D[I].push(M))}function Ne(I,M,D){if(D&&D[I]){let X=D[I].indexOf(M);X!==-1&&D[I].splice(X,1)}}class Fe{constructor(M,D={}){L(this,D),this.type=M}}class ye extends Fe{constructor(M,D={}){super("error",L({error:M},D))}}class Ve{on(M,D){return this._listeners=this._listeners||{},Me(M,D,this._listeners),this}off(M,D){return Ne(M,D,this._listeners),Ne(M,D,this._oneTimeListeners),this}once(M,D){return D?(this._oneTimeListeners=this._oneTimeListeners||{},Me(M,D,this._oneTimeListeners),this):new Promise(X=>this.once(M,X))}fire(M,D){typeof M=="string"&&(M=new Fe(M,D||{}));let X=M.type;if(this.listens(X)){M.target=this;let ie=this._listeners&&this._listeners[X]?this._listeners[X].slice():[];for(let We of ie)We.call(this,M);let ve=this._oneTimeListeners&&this._oneTimeListeners[X]?this._oneTimeListeners[X].slice():[];for(let We of ve)Ne(X,We,this._oneTimeListeners),We.call(this,M);let we=this._eventedParent;we&&(L(M,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),we.fire(M))}else M instanceof ye&&console.error(M.error);return this}listens(M){return this._listeners&&this._listeners[M]&&this._listeners[M].length>0||this._oneTimeListeners&&this._oneTimeListeners[M]&&this._oneTimeListeners[M].length>0||this._eventedParent&&this._eventedParent.listens(M)}setEventedParent(M,D){return this._eventedParent=M,this._eventedParentData=D,this}}var ce={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"enum",default:"mercator",values:{mercator:{},globe:{}}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};let Je=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function nt(I,M){let D={};for(let X in I)X!=="ref"&&(D[X]=I[X]);return Je.forEach(X=>{X in M&&(D[X]=M[X])}),D}function gt(I,M){if(Array.isArray(I)){if(!Array.isArray(M)||I.length!==M.length)return!1;for(let D=0;D`:I.itemType.kind==="value"?"array":`array<${M}>`}return I.kind}let Re=[vt,st,Ue,rt,$e,yr,zt,xe(Yt),br,Ut,Ie];function De(I,M){if(M.kind==="error")return null;if(I.kind==="array"){if(M.kind==="array"&&(M.N===0&&M.itemType.kind==="value"||!De(I.itemType,M.itemType))&&(typeof I.N!="number"||I.N===M.N))return null}else{if(I.kind===M.kind)return null;if(I.kind==="value"){for(let D of Re)if(!De(D,M))return null}}return`Expected ${Oe(I)} but found ${Oe(M)} instead.`}function ct(I,M){return M.some(D=>D.kind===I.kind)}function ge(I,M){return M.some(D=>D==="null"?I===null:D==="array"?Array.isArray(I):D==="object"?I&&!Array.isArray(I)&&typeof I=="object":D===typeof I)}function fe(I,M){return I.kind==="array"&&M.kind==="array"?I.itemType.kind===M.itemType.kind&&typeof I.N=="number":I.kind===M.kind}let de=.96422,dt=.82521,It=4/29,Pt=6/29,rr=3*Pt*Pt,Hr=Pt*Pt*Pt,Dr=Math.PI/180,Mr=180/Math.PI;function Fr(I){return(I%=360)<0&&(I+=360),I}function di([I,M,D,X]){let ie,ve,we=Ii((.2225045*(I=Di(I))+.7168786*(M=Di(M))+.0606169*(D=Di(D)))/1);I===M&&M===D?ie=ve=we:(ie=Ii((.4360747*I+.3850649*M+.1430804*D)/de),ve=Ii((.0139322*I+.0971045*M+.7141733*D)/dt));let We=116*we-16;return[We<0?0:We,500*(ie-we),200*(we-ve),X]}function Di(I){return I<=.04045?I/12.92:Math.pow((I+.055)/1.055,2.4)}function Ii(I){return I>Hr?Math.pow(I,1/3):I/rr+It}function Ci([I,M,D,X]){let ie=(I+16)/116,ve=isNaN(M)?ie:ie+M/500,we=isNaN(D)?ie:ie-D/200;return ie=1*ii(ie),ve=de*ii(ve),we=dt*ii(we),[nn(3.1338561*ve-1.6168667*ie-.4906146*we),nn(-.9787684*ve+1.9161415*ie+.033454*we),nn(.0719453*ve-.2289914*ie+1.4052427*we),X]}function nn(I){return(I=I<=.00304?12.92*I:1.055*Math.pow(I,1/2.4)-.055)<0?0:I>1?1:I}function ii(I){return I>Pt?I*I*I:rr*(I-It)}function wi(I){return parseInt(I.padEnd(2,I),16)/255}function Gi(I,M){return Bt(M?I/100:I,0,1)}function Bt(I,M,D){return Math.min(Math.max(M,I),D)}function yt(I){return!I.some(Number.isNaN)}let Vt={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class Wt{constructor(M,D,X,ie=1,ve=!0){this.r=M,this.g=D,this.b=X,this.a=ie,ve||(this.r*=ie,this.g*=ie,this.b*=ie,ie||this.overwriteGetter("rgb",[M,D,X,ie]))}static parse(M){if(M instanceof Wt)return M;if(typeof M!="string")return;let D=function(X){if((X=X.toLowerCase().trim())==="transparent")return[0,0,0,0];let ie=Vt[X];if(ie){let[we,We,ut]=ie;return[we/255,We/255,ut/255,1]}if(X.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(X)){let we=X.length<6?1:2,We=1;return[wi(X.slice(We,We+=we)),wi(X.slice(We,We+=we)),wi(X.slice(We,We+=we)),wi(X.slice(We,We+we)||"ff")]}if(X.startsWith("rgb")){let we=X.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(we){let[We,ut,Mt,$t,vr,Sr,Br,Jr,li,Hi,cn,Za]=we,Rn=[$t||" ",Br||" ",Hi].join("");if(Rn===" "||Rn===" /"||Rn===",,"||Rn===",,,"){let La=[Mt,Sr,li].join(""),So=La==="%%%"?100:La===""?255:0;if(So){let kl=[Bt(+ut/So,0,1),Bt(+vr/So,0,1),Bt(+Jr/So,0,1),cn?Gi(+cn,Za):1];if(yt(kl))return kl}}return}}let ve=X.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(ve){let[we,We,ut,Mt,$t,vr,Sr,Br,Jr]=ve,li=[ut||" ",$t||" ",Sr].join("");if(li===" "||li===" /"||li===",,"||li===",,,"){let Hi=[+We,Bt(+Mt,0,100),Bt(+vr,0,100),Br?Gi(+Br,Jr):1];if(yt(Hi))return function([cn,Za,Rn,La]){function So(kl){let mu=(kl+cn/30)%12,Iu=Za*Math.min(Rn,1-Rn);return Rn-Iu*Math.max(-1,Math.min(mu-3,9-mu,1))}return cn=Fr(cn),Za/=100,Rn/=100,[So(0),So(8),So(4),La]}(Hi)}}}(M);return D?new Wt(...D,!1):void 0}get rgb(){let{r:M,g:D,b:X,a:ie}=this,ve=ie||1/0;return this.overwriteGetter("rgb",[M/ve,D/ve,X/ve,ie])}get hcl(){return this.overwriteGetter("hcl",function(M){let[D,X,ie,ve]=di(M),we=Math.sqrt(X*X+ie*ie);return[Math.round(1e4*we)?Fr(Math.atan2(ie,X)*Mr):NaN,we,D,ve]}(this.rgb))}get lab(){return this.overwriteGetter("lab",di(this.rgb))}overwriteGetter(M,D){return Object.defineProperty(this,M,{value:D}),D}toString(){let[M,D,X,ie]=this.rgb;return`rgba(${[M,D,X].map(ve=>Math.round(255*ve)).join(",")},${ie})`}}Wt.black=new Wt(0,0,0,1),Wt.white=new Wt(1,1,1,1),Wt.transparent=new Wt(0,0,0,0),Wt.red=new Wt(1,0,0,1);class _r{constructor(M,D,X){this.sensitivity=M?D?"variant":"case":D?"accent":"base",this.locale=X,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(M,D){return this.collator.compare(M,D)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Lr{constructor(M,D,X,ie,ve){this.text=M,this.image=D,this.scale=X,this.fontStack=ie,this.textColor=ve}}class Ur{constructor(M){this.sections=M}static fromString(M){return new Ur([new Lr(M,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(M=>M.text.length!==0||M.image&&M.image.name.length!==0)}static factory(M){return M instanceof Ur?M:Ur.fromString(M)}toString(){return this.sections.length===0?"":this.sections.map(M=>M.text).join("")}}class Ir{constructor(M){this.values=M.slice()}static parse(M){if(M instanceof Ir)return M;if(typeof M=="number")return new Ir([M,M,M,M]);if(Array.isArray(M)&&!(M.length<1||M.length>4)){for(let D of M)if(typeof D!="number")return;switch(M.length){case 1:M=[M[0],M[0],M[0],M[0]];break;case 2:M=[M[0],M[1],M[0],M[1]];break;case 3:M=[M[0],M[1],M[2],M[1]]}return new Ir(M)}}toString(){return JSON.stringify(this.values)}}let Gr=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class jr{constructor(M){this.values=M.slice()}static parse(M){if(M instanceof jr)return M;if(Array.isArray(M)&&!(M.length<1)&&M.length%2==0){for(let D=0;D=0&&I<=255&&typeof M=="number"&&M>=0&&M<=255&&typeof D=="number"&&D>=0&&D<=255?X===void 0||typeof X=="number"&&X>=0&&X<=1?null:`Invalid rgba value [${[I,M,D,X].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof X=="number"?[I,M,D,X]:[I,M,D]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Vi(I){if(I===null||typeof I=="string"||typeof I=="boolean"||typeof I=="number"||I instanceof Wt||I instanceof _r||I instanceof Ur||I instanceof Ir||I instanceof jr||I instanceof yi)return!0;if(Array.isArray(I)){for(let M of I)if(!Vi(M))return!1;return!0}if(typeof I=="object"){for(let M in I)if(!Vi(I[M]))return!1;return!0}return!1}function ti(I){if(I===null)return vt;if(typeof I=="string")return Ue;if(typeof I=="boolean")return rt;if(typeof I=="number")return st;if(I instanceof Wt)return $e;if(I instanceof _r)return hr;if(I instanceof Ur)return yr;if(I instanceof Ir)return br;if(I instanceof jr)return Ie;if(I instanceof yi)return Ut;if(Array.isArray(I)){let M=I.length,D;for(let X of I){let ie=ti(X);if(D){if(D===ie)continue;D=Yt;break}D=ie}return xe(D||Yt,M)}return zt}function en(I){let M=typeof I;return I===null?"":M==="string"||M==="number"||M==="boolean"?String(I):I instanceof Wt||I instanceof Ur||I instanceof Ir||I instanceof jr||I instanceof yi?I.toString():JSON.stringify(I)}class Yr{constructor(M,D){this.type=M,this.value=D}static parse(M,D){if(M.length!==2)return D.error(`'literal' expression requires exactly one argument, but found ${M.length-1} instead.`);if(!Vi(M[1]))return D.error("invalid value");let X=M[1],ie=ti(X),ve=D.expectedType;return ie.kind!=="array"||ie.N!==0||!ve||ve.kind!=="array"||typeof ve.N=="number"&&ve.N!==0||(ie=ve),new Yr(ie,X)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class oi{constructor(M){this.name="ExpressionEvaluationError",this.message=M}toJSON(){return this.message}}let Bi={string:Ue,number:st,boolean:rt,object:zt};class an{constructor(M,D){this.type=M,this.args=D}static parse(M,D){if(M.length<2)return D.error("Expected at least one argument.");let X,ie=1,ve=M[0];if(ve==="array"){let We,ut;if(M.length>2){let Mt=M[1];if(typeof Mt!="string"||!(Mt in Bi)||Mt==="object")return D.error('The item type argument of "array" must be one of string, number, boolean',1);We=Bi[Mt],ie++}else We=Yt;if(M.length>3){if(M[2]!==null&&(typeof M[2]!="number"||M[2]<0||M[2]!==Math.floor(M[2])))return D.error('The length argument to "array" must be a positive integer literal',2);ut=M[2],ie++}X=xe(We,ut)}else{if(!Bi[ve])throw new Error(`Types doesn't contain name = ${ve}`);X=Bi[ve]}let we=[];for(;ieM.outputDefined())}}let rn={"to-boolean":rt,"to-color":$e,"to-number":st,"to-string":Ue};class Fi{constructor(M,D){this.type=M,this.args=D}static parse(M,D){if(M.length<2)return D.error("Expected at least one argument.");let X=M[0];if(!rn[X])throw new Error(`Can't parse ${X} as it is not part of the known types`);if((X==="to-boolean"||X==="to-string")&&M.length!==2)return D.error("Expected one argument.");let ie=rn[X],ve=[];for(let we=1;we4?`Invalid rbga value ${JSON.stringify(D)}: expected an array containing either three or four numeric values.`:Ei(D[0],D[1],D[2],D[3]),!X))return new Wt(D[0]/255,D[1]/255,D[2]/255,D[3])}throw new oi(X||`Could not parse color from value '${typeof D=="string"?D:JSON.stringify(D)}'`)}case"padding":{let D;for(let X of this.args){D=X.evaluate(M);let ie=Ir.parse(D);if(ie)return ie}throw new oi(`Could not parse padding from value '${typeof D=="string"?D:JSON.stringify(D)}'`)}case"variableAnchorOffsetCollection":{let D;for(let X of this.args){D=X.evaluate(M);let ie=jr.parse(D);if(ie)return ie}throw new oi(`Could not parse variableAnchorOffsetCollection from value '${typeof D=="string"?D:JSON.stringify(D)}'`)}case"number":{let D=null;for(let X of this.args){if(D=X.evaluate(M),D===null)return 0;let ie=Number(D);if(!isNaN(ie))return ie}throw new oi(`Could not convert ${JSON.stringify(D)} to number.`)}case"formatted":return Ur.fromString(en(this.args[0].evaluate(M)));case"resolvedImage":return yi.fromString(en(this.args[0].evaluate(M)));default:return en(this.args[0].evaluate(M))}}eachChild(M){this.args.forEach(M)}outputDefined(){return this.args.every(M=>M.outputDefined())}}let Ri=["Unknown","Point","LineString","Polygon"];class xn{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Ri[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(M){let D=this._parseColorCache[M];return D||(D=this._parseColorCache[M]=Wt.parse(M)),D}}class xi{constructor(M,D,X=[],ie,ve=new wt,we=[]){this.registry=M,this.path=X,this.key=X.map(We=>`[${We}]`).join(""),this.scope=ve,this.errors=we,this.expectedType=ie,this._isConstant=D}parse(M,D,X,ie,ve={}){return D?this.concat(D,X,ie)._parse(M,ve):this._parse(M,ve)}_parse(M,D){function X(ie,ve,we){return we==="assert"?new an(ve,[ie]):we==="coerce"?new Fi(ve,[ie]):ie}if(M!==null&&typeof M!="string"&&typeof M!="boolean"&&typeof M!="number"||(M=["literal",M]),Array.isArray(M)){if(M.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let ie=M[0];if(typeof ie!="string")return this.error(`Expression name must be a string, but found ${typeof ie} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let ve=this.registry[ie];if(ve){let we=ve.parse(M,this);if(!we)return null;if(this.expectedType){let We=this.expectedType,ut=we.type;if(We.kind!=="string"&&We.kind!=="number"&&We.kind!=="boolean"&&We.kind!=="object"&&We.kind!=="array"||ut.kind!=="value")if(We.kind!=="color"&&We.kind!=="formatted"&&We.kind!=="resolvedImage"||ut.kind!=="value"&&ut.kind!=="string")if(We.kind!=="padding"||ut.kind!=="value"&&ut.kind!=="number"&&ut.kind!=="array")if(We.kind!=="variableAnchorOffsetCollection"||ut.kind!=="value"&&ut.kind!=="array"){if(this.checkSubtype(We,ut))return null}else we=X(we,We,D.typeAnnotation||"coerce");else we=X(we,We,D.typeAnnotation||"coerce");else we=X(we,We,D.typeAnnotation||"coerce");else we=X(we,We,D.typeAnnotation||"assert")}if(!(we instanceof Yr)&&we.type.kind!=="resolvedImage"&&this._isConstant(we)){let We=new xn;try{we=new Yr(we.type,we.evaluate(We))}catch(ut){return this.error(ut.message),null}}return we}return this.error(`Unknown expression "${ie}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(M===void 0?"'undefined' value invalid. Use null instead.":typeof M=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof M} instead.`)}concat(M,D,X){let ie=typeof M=="number"?this.path.concat(M):this.path,ve=X?this.scope.concat(X):this.scope;return new xi(this.registry,this._isConstant,ie,D||null,ve,this.errors)}error(M,...D){let X=`${this.key}${D.map(ie=>`[${ie}]`).join("")}`;this.errors.push(new at(X,M))}checkSubtype(M,D){let X=De(M,D);return X&&this.error(X),X}}class Xr{constructor(M,D){this.type=D.type,this.bindings=[].concat(M),this.result=D}evaluate(M){return this.result.evaluate(M)}eachChild(M){for(let D of this.bindings)M(D[1]);M(this.result)}static parse(M,D){if(M.length<4)return D.error(`Expected at least 3 arguments, but found ${M.length-1} instead.`);let X=[];for(let ve=1;ve=X.length)throw new oi(`Array index out of bounds: ${D} > ${X.length-1}.`);if(D!==Math.floor(D))throw new oi(`Array index must be an integer, but found ${D} instead.`);return X[D]}eachChild(M){M(this.index),M(this.input)}outputDefined(){return!1}}class pr{constructor(M,D){this.type=rt,this.needle=M,this.haystack=D}static parse(M,D){if(M.length!==3)return D.error(`Expected 2 arguments, but found ${M.length-1} instead.`);let X=D.parse(M[1],1,Yt),ie=D.parse(M[2],2,Yt);return X&&ie?ct(X.type,[rt,Ue,st,vt,Yt])?new pr(X,ie):D.error(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(X.type)} instead`):null}evaluate(M){let D=this.needle.evaluate(M),X=this.haystack.evaluate(M);if(!X)return!1;if(!ge(D,["boolean","string","number","null"]))throw new oi(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(ti(D))} instead.`);if(!ge(X,["string","array"]))throw new oi(`Expected second argument to be of type array or string, but found ${Oe(ti(X))} instead.`);return X.indexOf(D)>=0}eachChild(M){M(this.needle),M(this.haystack)}outputDefined(){return!0}}class gr{constructor(M,D,X){this.type=st,this.needle=M,this.haystack=D,this.fromIndex=X}static parse(M,D){if(M.length<=2||M.length>=5)return D.error(`Expected 3 or 4 arguments, but found ${M.length-1} instead.`);let X=D.parse(M[1],1,Yt),ie=D.parse(M[2],2,Yt);if(!X||!ie)return null;if(!ct(X.type,[rt,Ue,st,vt,Yt]))return D.error(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(X.type)} instead`);if(M.length===4){let ve=D.parse(M[3],3,st);return ve?new gr(X,ie,ve):null}return new gr(X,ie)}evaluate(M){let D=this.needle.evaluate(M),X=this.haystack.evaluate(M);if(!ge(D,["boolean","string","number","null"]))throw new oi(`Expected first argument to be of type boolean, string, number or null, but found ${Oe(ti(D))} instead.`);let ie;if(this.fromIndex&&(ie=this.fromIndex.evaluate(M)),ge(X,["string"])){let ve=X.indexOf(D,ie);return ve===-1?-1:[...X.slice(0,ve)].length}if(ge(X,["array"]))return X.indexOf(D,ie);throw new oi(`Expected second argument to be of type array or string, but found ${Oe(ti(X))} instead.`)}eachChild(M){M(this.needle),M(this.haystack),this.fromIndex&&M(this.fromIndex)}outputDefined(){return!1}}class Zr{constructor(M,D,X,ie,ve,we){this.inputType=M,this.type=D,this.input=X,this.cases=ie,this.outputs=ve,this.otherwise=we}static parse(M,D){if(M.length<5)return D.error(`Expected at least 4 arguments, but found only ${M.length-1}.`);if(M.length%2!=1)return D.error("Expected an even number of arguments.");let X,ie;D.expectedType&&D.expectedType.kind!=="value"&&(ie=D.expectedType);let ve={},we=[];for(let Mt=2;MtNumber.MAX_SAFE_INTEGER)return Sr.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof Jr=="number"&&Math.floor(Jr)!==Jr)return Sr.error("Numeric branch labels must be integer values.");if(X){if(Sr.checkSubtype(X,ti(Jr)))return null}else X=ti(Jr);if(ve[String(Jr)]!==void 0)return Sr.error("Branch labels must be unique.");ve[String(Jr)]=we.length}let Br=D.parse(vr,Mt,ie);if(!Br)return null;ie=ie||Br.type,we.push(Br)}let We=D.parse(M[1],1,Yt);if(!We)return null;let ut=D.parse(M[M.length-1],M.length-1,ie);return ut?We.type.kind!=="value"&&D.concat(1).checkSubtype(X,We.type)?null:new Zr(X,ie,We,ve,we,ut):null}evaluate(M){let D=this.input.evaluate(M);return(ti(D)===this.inputType&&this.outputs[this.cases[D]]||this.otherwise).evaluate(M)}eachChild(M){M(this.input),this.outputs.forEach(M),M(this.otherwise)}outputDefined(){return this.outputs.every(M=>M.outputDefined())&&this.otherwise.outputDefined()}}class Ai{constructor(M,D,X){this.type=M,this.branches=D,this.otherwise=X}static parse(M,D){if(M.length<4)return D.error(`Expected at least 3 arguments, but found only ${M.length-1}.`);if(M.length%2!=0)return D.error("Expected an odd number of arguments.");let X;D.expectedType&&D.expectedType.kind!=="value"&&(X=D.expectedType);let ie=[];for(let we=1;weD.outputDefined())&&this.otherwise.outputDefined()}}class Qi{constructor(M,D,X,ie){this.type=M,this.input=D,this.beginIndex=X,this.endIndex=ie}static parse(M,D){if(M.length<=2||M.length>=5)return D.error(`Expected 3 or 4 arguments, but found ${M.length-1} instead.`);let X=D.parse(M[1],1,Yt),ie=D.parse(M[2],2,st);if(!X||!ie)return null;if(!ct(X.type,[xe(Yt),Ue,Yt]))return D.error(`Expected first argument to be of type array or string, but found ${Oe(X.type)} instead`);if(M.length===4){let ve=D.parse(M[3],3,st);return ve?new Qi(X.type,X,ie,ve):null}return new Qi(X.type,X,ie)}evaluate(M){let D=this.input.evaluate(M),X=this.beginIndex.evaluate(M),ie;if(this.endIndex&&(ie=this.endIndex.evaluate(M)),ge(D,["string"]))return[...D].slice(X,ie).join("");if(ge(D,["array"]))return D.slice(X,ie);throw new oi(`Expected first argument to be of type array or string, but found ${Oe(ti(D))} instead.`)}eachChild(M){M(this.input),M(this.beginIndex),this.endIndex&&M(this.endIndex)}outputDefined(){return!1}}function ni(I,M){let D=I.length-1,X,ie,ve=0,we=D,We=0;for(;ve<=we;)if(We=Math.floor((ve+we)/2),X=I[We],ie=I[We+1],X<=M){if(We===D||MM))throw new oi("Input is not a number.");we=We-1}return 0}class Zi{constructor(M,D,X){this.type=M,this.input=D,this.labels=[],this.outputs=[];for(let[ie,ve]of X)this.labels.push(ie),this.outputs.push(ve)}static parse(M,D){if(M.length-1<4)return D.error(`Expected at least 4 arguments, but found only ${M.length-1}.`);if((M.length-1)%2!=0)return D.error("Expected an even number of arguments.");let X=D.parse(M[1],1,st);if(!X)return null;let ie=[],ve=null;D.expectedType&&D.expectedType.kind!=="value"&&(ve=D.expectedType);for(let we=1;we=We)return D.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Mt);let vr=D.parse(ut,$t,ve);if(!vr)return null;ve=ve||vr.type,ie.push([We,vr])}return new Zi(ve,X,ie)}evaluate(M){let D=this.labels,X=this.outputs;if(D.length===1)return X[0].evaluate(M);let ie=this.input.evaluate(M);if(ie<=D[0])return X[0].evaluate(M);let ve=D.length;return ie>=D[ve-1]?X[ve-1].evaluate(M):X[ni(D,ie)].evaluate(M)}eachChild(M){M(this.input);for(let D of this.outputs)M(D)}outputDefined(){return this.outputs.every(M=>M.outputDefined())}}function aa(I){return I&&I.__esModule&&Object.prototype.hasOwnProperty.call(I,"default")?I.default:I}var Mn=Un;function Un(I,M,D,X){this.cx=3*I,this.bx=3*(D-I)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*M,this.by=3*(X-M)-this.cy,this.ay=1-this.cy-this.by,this.p1x=I,this.p1y=M,this.p2x=D,this.p2y=X}Un.prototype={sampleCurveX:function(I){return((this.ax*I+this.bx)*I+this.cx)*I},sampleCurveY:function(I){return((this.ay*I+this.by)*I+this.cy)*I},sampleCurveDerivativeX:function(I){return(3*this.ax*I+2*this.bx)*I+this.cx},solveCurveX:function(I,M){if(M===void 0&&(M=1e-6),I<0)return 0;if(I>1)return 1;for(var D=I,X=0;X<8;X++){var ie=this.sampleCurveX(D)-I;if(Math.abs(ie)ie?we=D:We=D,D=.5*(We-we)+we;return D},solve:function(I,M){return this.sampleCurveY(this.solveCurveX(I,M))}};var Ga=aa(Mn);function ma(I,M,D){return I+D*(M-I)}function oa(I,M,D){return I.map((X,ie)=>ma(X,M[ie],D))}let ka={number:ma,color:function(I,M,D,X="rgb"){switch(X){case"rgb":{let[ie,ve,we,We]=oa(I.rgb,M.rgb,D);return new Wt(ie,ve,we,We,!1)}case"hcl":{let[ie,ve,we,We]=I.hcl,[ut,Mt,$t,vr]=M.hcl,Sr,Br;if(isNaN(ie)||isNaN(ut))isNaN(ie)?isNaN(ut)?Sr=NaN:(Sr=ut,we!==1&&we!==0||(Br=Mt)):(Sr=ie,$t!==1&&$t!==0||(Br=ve));else{let Za=ut-ie;ut>ie&&Za>180?Za-=360:ut180&&(Za+=360),Sr=ie+D*Za}let[Jr,li,Hi,cn]=function([Za,Rn,La,So]){return Za=isNaN(Za)?0:Za*Dr,Ci([La,Math.cos(Za)*Rn,Math.sin(Za)*Rn,So])}([Sr,Br!=null?Br:ma(ve,Mt,D),ma(we,$t,D),ma(We,vr,D)]);return new Wt(Jr,li,Hi,cn,!1)}case"lab":{let[ie,ve,we,We]=Ci(oa(I.lab,M.lab,D));return new Wt(ie,ve,we,We,!1)}}},array:oa,padding:function(I,M,D){return new Ir(oa(I.values,M.values,D))},variableAnchorOffsetCollection:function(I,M,D){let X=I.values,ie=M.values;if(X.length!==ie.length)throw new oi(`Cannot interpolate values of different length. from: ${I.toString()}, to: ${M.toString()}`);let ve=[];for(let we=0;wetypeof $t!="number"||$t<0||$t>1))return D.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);ie={name:"cubic-bezier",controlPoints:Mt}}}if(M.length-1<4)return D.error(`Expected at least 4 arguments, but found only ${M.length-1}.`);if((M.length-1)%2!=0)return D.error("Expected an even number of arguments.");if(ve=D.parse(ve,2,st),!ve)return null;let We=[],ut=null;X==="interpolate-hcl"||X==="interpolate-lab"?ut=$e:D.expectedType&&D.expectedType.kind!=="value"&&(ut=D.expectedType);for(let Mt=0;Mt=$t)return D.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Sr);let Jr=D.parse(vr,Br,ut);if(!Jr)return null;ut=ut||Jr.type,We.push([$t,Jr])}return fe(ut,st)||fe(ut,$e)||fe(ut,br)||fe(ut,Ie)||fe(ut,xe(st))?new so(ut,X,ie,ve,We):D.error(`Type ${Oe(ut)} is not interpolatable.`)}evaluate(M){let D=this.labels,X=this.outputs;if(D.length===1)return X[0].evaluate(M);let ie=this.input.evaluate(M);if(ie<=D[0])return X[0].evaluate(M);let ve=D.length;if(ie>=D[ve-1])return X[ve-1].evaluate(M);let we=ni(D,ie),We=so.interpolationFactor(this.interpolation,ie,D[we],D[we+1]),ut=X[we].evaluate(M),Mt=X[we+1].evaluate(M);switch(this.operator){case"interpolate":return ka[this.type.kind](ut,Mt,We);case"interpolate-hcl":return ka.color(ut,Mt,We,"hcl");case"interpolate-lab":return ka.color(ut,Mt,We,"lab")}}eachChild(M){M(this.input);for(let D of this.outputs)M(D)}outputDefined(){return this.outputs.every(M=>M.outputDefined())}}function Kr(I,M,D,X){let ie=X-D,ve=I-D;return ie===0?0:M===1?ve/ie:(Math.pow(M,ve)-1)/(Math.pow(M,ie)-1)}class Ia{constructor(M,D){this.type=M,this.args=D}static parse(M,D){if(M.length<2)return D.error("Expectected at least one argument.");let X=null,ie=D.expectedType;ie&&ie.kind!=="value"&&(X=ie);let ve=[];for(let We of M.slice(1)){let ut=D.parse(We,1+ve.length,X,void 0,{typeAnnotation:"omit"});if(!ut)return null;X=X||ut.type,ve.push(ut)}if(!X)throw new Error("No output type");let we=ie&&ve.some(We=>De(ie,We.type));return new Ia(we?Yt:X,ve)}evaluate(M){let D,X=null,ie=0;for(let ve of this.args)if(ie++,X=ve.evaluate(M),X&&X instanceof yi&&!X.available&&(D||(D=X.name),X=null,ie===this.args.length&&(X=D)),X!==null)break;return X}eachChild(M){this.args.forEach(M)}outputDefined(){return this.args.every(M=>M.outputDefined())}}function Yo(I,M){return I==="=="||I==="!="?M.kind==="boolean"||M.kind==="string"||M.kind==="number"||M.kind==="null"||M.kind==="value":M.kind==="string"||M.kind==="number"||M.kind==="value"}function fa(I,M,D,X){return X.compare(M,D)===0}function kn(I,M,D){let X=I!=="=="&&I!=="!=";return class AWe{constructor(ve,we,We){this.type=rt,this.lhs=ve,this.rhs=we,this.collator=We,this.hasUntypedArgument=ve.type.kind==="value"||we.type.kind==="value"}static parse(ve,we){if(ve.length!==3&&ve.length!==4)return we.error("Expected two or three arguments.");let We=ve[0],ut=we.parse(ve[1],1,Yt);if(!ut)return null;if(!Yo(We,ut.type))return we.concat(1).error(`"${We}" comparisons are not supported for type '${Oe(ut.type)}'.`);let Mt=we.parse(ve[2],2,Yt);if(!Mt)return null;if(!Yo(We,Mt.type))return we.concat(2).error(`"${We}" comparisons are not supported for type '${Oe(Mt.type)}'.`);if(ut.type.kind!==Mt.type.kind&&ut.type.kind!=="value"&&Mt.type.kind!=="value")return we.error(`Cannot compare types '${Oe(ut.type)}' and '${Oe(Mt.type)}'.`);X&&(ut.type.kind==="value"&&Mt.type.kind!=="value"?ut=new an(Mt.type,[ut]):ut.type.kind!=="value"&&Mt.type.kind==="value"&&(Mt=new an(ut.type,[Mt])));let $t=null;if(ve.length===4){if(ut.type.kind!=="string"&&Mt.type.kind!=="string"&&ut.type.kind!=="value"&&Mt.type.kind!=="value")return we.error("Cannot use collator to compare non-string types.");if($t=we.parse(ve[3],3,hr),!$t)return null}return new AWe(ut,Mt,$t)}evaluate(ve){let we=this.lhs.evaluate(ve),We=this.rhs.evaluate(ve);if(X&&this.hasUntypedArgument){let ut=ti(we),Mt=ti(We);if(ut.kind!==Mt.kind||ut.kind!=="string"&&ut.kind!=="number")throw new oi(`Expected arguments for "${I}" to be (string, string) or (number, number), but found (${ut.kind}, ${Mt.kind}) instead.`)}if(this.collator&&!X&&this.hasUntypedArgument){let ut=ti(we),Mt=ti(We);if(ut.kind!=="string"||Mt.kind!=="string")return M(ve,we,We)}return this.collator?D(ve,we,We,this.collator.evaluate(ve)):M(ve,we,We)}eachChild(ve){ve(this.lhs),ve(this.rhs),this.collator&&ve(this.collator)}outputDefined(){return!0}}}let Ta=kn("==",function(I,M,D){return M===D},fa),ys=kn("!=",function(I,M,D){return M!==D},function(I,M,D,X){return!fa(0,M,D,X)}),uo=kn("<",function(I,M,D){return M",function(I,M,D){return M>D},function(I,M,D,X){return X.compare(M,D)>0}),$a=kn("<=",function(I,M,D){return M<=D},function(I,M,D,X){return X.compare(M,D)<=0}),fo=kn(">=",function(I,M,D){return M>=D},function(I,M,D,X){return X.compare(M,D)>=0});class mn{constructor(M,D,X){this.type=hr,this.locale=X,this.caseSensitive=M,this.diacriticSensitive=D}static parse(M,D){if(M.length!==2)return D.error("Expected one argument.");let X=M[1];if(typeof X!="object"||Array.isArray(X))return D.error("Collator options argument must be an object.");let ie=D.parse(X["case-sensitive"]!==void 0&&X["case-sensitive"],1,rt);if(!ie)return null;let ve=D.parse(X["diacritic-sensitive"]!==void 0&&X["diacritic-sensitive"],1,rt);if(!ve)return null;let we=null;return X.locale&&(we=D.parse(X.locale,1,Ue),!we)?null:new mn(ie,ve,we)}evaluate(M){return new _r(this.caseSensitive.evaluate(M),this.diacriticSensitive.evaluate(M),this.locale?this.locale.evaluate(M):null)}eachChild(M){M(this.caseSensitive),M(this.diacriticSensitive),this.locale&&M(this.locale)}outputDefined(){return!1}}class ra{constructor(M,D,X,ie,ve){this.type=Ue,this.number=M,this.locale=D,this.currency=X,this.minFractionDigits=ie,this.maxFractionDigits=ve}static parse(M,D){if(M.length!==3)return D.error("Expected two arguments.");let X=D.parse(M[1],1,st);if(!X)return null;let ie=M[2];if(typeof ie!="object"||Array.isArray(ie))return D.error("NumberFormat options argument must be an object.");let ve=null;if(ie.locale&&(ve=D.parse(ie.locale,1,Ue),!ve))return null;let we=null;if(ie.currency&&(we=D.parse(ie.currency,1,Ue),!we))return null;let We=null;if(ie["min-fraction-digits"]&&(We=D.parse(ie["min-fraction-digits"],1,st),!We))return null;let ut=null;return ie["max-fraction-digits"]&&(ut=D.parse(ie["max-fraction-digits"],1,st),!ut)?null:new ra(X,ve,we,We,ut)}evaluate(M){return new Intl.NumberFormat(this.locale?this.locale.evaluate(M):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(M):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(M):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(M):void 0}).format(this.number.evaluate(M))}eachChild(M){M(this.number),this.locale&&M(this.locale),this.currency&&M(this.currency),this.minFractionDigits&&M(this.minFractionDigits),this.maxFractionDigits&&M(this.maxFractionDigits)}outputDefined(){return!1}}class wa{constructor(M){this.type=yr,this.sections=M}static parse(M,D){if(M.length<2)return D.error("Expected at least one argument.");let X=M[1];if(!Array.isArray(X)&&typeof X=="object")return D.error("First argument must be an image or text section.");let ie=[],ve=!1;for(let we=1;we<=M.length-1;++we){let We=M[we];if(ve&&typeof We=="object"&&!Array.isArray(We)){ve=!1;let ut=null;if(We["font-scale"]&&(ut=D.parse(We["font-scale"],1,st),!ut))return null;let Mt=null;if(We["text-font"]&&(Mt=D.parse(We["text-font"],1,xe(Ue)),!Mt))return null;let $t=null;if(We["text-color"]&&($t=D.parse(We["text-color"],1,$e),!$t))return null;let vr=ie[ie.length-1];vr.scale=ut,vr.font=Mt,vr.textColor=$t}else{let ut=D.parse(M[we],1,Yt);if(!ut)return null;let Mt=ut.type.kind;if(Mt!=="string"&&Mt!=="value"&&Mt!=="null"&&Mt!=="resolvedImage")return D.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");ve=!0,ie.push({content:ut,scale:null,font:null,textColor:null})}}return new wa(ie)}evaluate(M){return new Ur(this.sections.map(D=>{let X=D.content.evaluate(M);return ti(X)===Ut?new Lr("",X,null,null,null):new Lr(en(X),null,D.scale?D.scale.evaluate(M):null,D.font?D.font.evaluate(M).join(","):null,D.textColor?D.textColor.evaluate(M):null)}))}eachChild(M){for(let D of this.sections)M(D.content),D.scale&&M(D.scale),D.font&&M(D.font),D.textColor&&M(D.textColor)}outputDefined(){return!1}}class ws{constructor(M){this.type=Ut,this.input=M}static parse(M,D){if(M.length!==2)return D.error("Expected two arguments.");let X=D.parse(M[1],1,Ue);return X?new ws(X):D.error("No image name provided.")}evaluate(M){let D=this.input.evaluate(M),X=yi.fromString(D);return X&&M.availableImages&&(X.available=M.availableImages.indexOf(D)>-1),X}eachChild(M){M(this.input)}outputDefined(){return!1}}class Co{constructor(M){this.type=st,this.input=M}static parse(M,D){if(M.length!==2)return D.error(`Expected 1 argument, but found ${M.length-1} instead.`);let X=D.parse(M[1],1);return X?X.type.kind!=="array"&&X.type.kind!=="string"&&X.type.kind!=="value"?D.error(`Expected argument of type string or array, but found ${Oe(X.type)} instead.`):new Co(X):null}evaluate(M){let D=this.input.evaluate(M);if(typeof D=="string")return[...D].length;if(Array.isArray(D))return D.length;throw new oi(`Expected value to be of type string or array, but found ${Oe(ti(D))} instead.`)}eachChild(M){M(this.input)}outputDefined(){return!1}}let Po=8192;function ji(I,M){let D=(180+I[0])/360,X=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+I[1]*Math.PI/360)))/360,ie=Math.pow(2,M.z);return[Math.round(D*ie*Po),Math.round(X*ie*Po)]}function gn(I,M){let D=Math.pow(2,M.z);return[(ie=(I[0]/Po+M.x)/D,360*ie-180),(X=(I[1]/Po+M.y)/D,360/Math.PI*Math.atan(Math.exp((180-360*X)*Math.PI/180))-90)];var X,ie}function Ps(I,M){I[0]=Math.min(I[0],M[0]),I[1]=Math.min(I[1],M[1]),I[2]=Math.max(I[2],M[0]),I[3]=Math.max(I[3],M[1])}function Ha(I,M){return!(I[0]<=M[0]||I[2]>=M[2]||I[1]<=M[1]||I[3]>=M[3])}function Sn(I,M,D){let X=I[0]-M[0],ie=I[1]-M[1],ve=I[0]-D[0],we=I[1]-D[1];return X*we-ve*ie==0&&X*ve<=0&&ie*we<=0}function ao(I,M,D,X){return(ie=[X[0]-D[0],X[1]-D[1]])[0]*(ve=[M[0]-I[0],M[1]-I[1]])[1]-ie[1]*ve[0]!=0&&!(!Qa(I,M,D,X)||!Qa(D,X,I,M));var ie,ve}function Ba(I,M,D){for(let X of D)for(let ie=0;ie(ie=I)[1]!=(we=We[ut+1])[1]>ie[1]&&ie[0]<(we[0]-ve[0])*(ie[1]-ve[1])/(we[1]-ve[1])+ve[0]&&(X=!X)}var ie,ve,we;return X}function Qo(I,M){for(let D of M)if(Ko(I,D))return!0;return!1}function Wi(I,M){for(let D of I)if(!Ko(D,M))return!1;for(let D=0;D0&&We<0||we<0&&We>0}function vn(I,M,D){let X=[];for(let ie=0;ieD[2]){let ie=.5*X,ve=I[0]-D[0]>ie?-X:D[0]-I[0]>ie?X:0;ve===0&&(ve=I[0]-D[2]>ie?-X:D[2]-I[0]>ie?X:0),I[0]+=ve}Ps(M,I)}function vo(I,M,D,X){let ie=Math.pow(2,X.z)*Po,ve=[X.x*Po,X.y*Po],we=[];for(let We of I)for(let ut of We){let Mt=[ut.x+ve[0],ut.y+ve[1]];la(Mt,M,D,ie),we.push(Mt)}return we}function As(I,M,D,X){let ie=Math.pow(2,X.z)*Po,ve=[X.x*Po,X.y*Po],we=[];for(let ut of I){let Mt=[];for(let $t of ut){let vr=[$t.x+ve[0],$t.y+ve[1]];Ps(M,vr),Mt.push(vr)}we.push(Mt)}if(M[2]-M[0]<=ie/2){(We=M)[0]=We[1]=1/0,We[2]=We[3]=-1/0;for(let ut of we)for(let Mt of ut)la(Mt,M,D,ie)}var We;return we}class ps{constructor(M,D){this.type=rt,this.geojson=M,this.geometries=D}static parse(M,D){if(M.length!==2)return D.error(`'within' expression requires exactly one argument, but found ${M.length-1} instead.`);if(Vi(M[1])){let X=M[1];if(X.type==="FeatureCollection"){let ie=[];for(let ve of X.features){let{type:we,coordinates:We}=ve.geometry;we==="Polygon"&&ie.push(We),we==="MultiPolygon"&&ie.push(...We)}if(ie.length)return new ps(X,{type:"MultiPolygon",coordinates:ie})}else if(X.type==="Feature"){let ie=X.geometry.type;if(ie==="Polygon"||ie==="MultiPolygon")return new ps(X,X.geometry)}else if(X.type==="Polygon"||X.type==="MultiPolygon")return new ps(X,X)}return D.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(M){if(M.geometry()!=null&&M.canonicalID()!=null){if(M.geometryType()==="Point")return function(D,X){let ie=[1/0,1/0,-1/0,-1/0],ve=[1/0,1/0,-1/0,-1/0],we=D.canonicalID();if(X.type==="Polygon"){let We=vn(X.coordinates,ve,we),ut=vo(D.geometry(),ie,ve,we);if(!Ha(ie,ve))return!1;for(let Mt of ut)if(!Ko(Mt,We))return!1}if(X.type==="MultiPolygon"){let We=da(X.coordinates,ve,we),ut=vo(D.geometry(),ie,ve,we);if(!Ha(ie,ve))return!1;for(let Mt of ut)if(!Qo(Mt,We))return!1}return!0}(M,this.geometries);if(M.geometryType()==="LineString")return function(D,X){let ie=[1/0,1/0,-1/0,-1/0],ve=[1/0,1/0,-1/0,-1/0],we=D.canonicalID();if(X.type==="Polygon"){let We=vn(X.coordinates,ve,we),ut=As(D.geometry(),ie,ve,we);if(!Ha(ie,ve))return!1;for(let Mt of ut)if(!Wi(Mt,We))return!1}if(X.type==="MultiPolygon"){let We=da(X.coordinates,ve,we),ut=As(D.geometry(),ie,ve,we);if(!Ha(ie,ve))return!1;for(let Mt of ut)if(!Sa(Mt,We))return!1}return!0}(M,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let co=class{constructor(I=[],M=(D,X)=>DX?1:0){if(this.data=I,this.length=this.data.length,this.compare=M,this.length>0)for(let D=(this.length>>1)-1;D>=0;D--)this._down(D)}push(I){this.data.push(I),this._up(this.length++)}pop(){if(this.length===0)return;let I=this.data[0],M=this.data.pop();return--this.length>0&&(this.data[0]=M,this._down(0)),I}peek(){return this.data[0]}_up(I){let{data:M,compare:D}=this,X=M[I];for(;I>0;){let ie=I-1>>1,ve=M[ie];if(D(X,ve)>=0)break;M[I]=ve,I=ie}M[I]=X}_down(I){let{data:M,compare:D}=this,X=this.length>>1,ie=M[I];for(;I=0)break;M[I]=M[ve],I=ve}M[I]=ie}};function mo(I,M,D,X,ie){No(I,M,D,X||I.length-1,ie||Go)}function No(I,M,D,X,ie){for(;X>D;){if(X-D>600){var ve=X-D+1,we=M-D+1,We=Math.log(ve),ut=.5*Math.exp(2*We/3),Mt=.5*Math.sqrt(We*ut*(ve-ut)/ve)*(we-ve/2<0?-1:1);No(I,M,Math.max(D,Math.floor(M-we*ut/ve+Mt)),Math.min(X,Math.floor(M+(ve-we)*ut/ve+Mt)),ie)}var $t=I[M],vr=D,Sr=X;for(jn(I,D,M),ie(I[X],$t)>0&&jn(I,D,X);vr0;)Sr--}ie(I[D],$t)===0?jn(I,D,Sr):jn(I,++Sr,X),Sr<=M&&(D=Sr+1),M<=Sr&&(X=Sr-1)}}function jn(I,M,D){var X=I[M];I[M]=I[D],I[D]=X}function Go(I,M){return IM?1:0}function Ys(I,M){if(I.length<=1)return[I];let D=[],X,ie;for(let ve of I){let we=Ns(ve);we!==0&&(ve.area=Math.abs(we),ie===void 0&&(ie=we<0),ie===we<0?(X&&D.push(X),X=[ve]):X.push(ve))}if(X&&D.push(X),M>1)for(let ve=0;ve1?(Mt=M[ut+1][0],$t=M[ut+1][1]):Br>0&&(Mt+=vr/this.kx*Br,$t+=Sr/this.ky*Br)),vr=this.wrap(D[0]-Mt)*this.kx,Sr=(D[1]-$t)*this.ky;let Jr=vr*vr+Sr*Sr;Jr180;)M-=360;return M}}function _n(I,M){return M[0]-I[0]}function Vn(I){return I[1]-I[0]+1}function wo(I,M){return I[1]>=I[0]&&I[1]I[1])return[null,null];let D=Vn(I);if(M){if(D===2)return[I,null];let ie=Math.floor(D/2);return[[I[0],I[0]+ie],[I[0]+ie,I[1]]]}if(D===1)return[I,null];let X=Math.floor(D/2)-1;return[[I[0],I[0]+X],[I[0]+X+1,I[1]]]}function Xn(I,M){if(!wo(M,I.length))return[1/0,1/0,-1/0,-1/0];let D=[1/0,1/0,-1/0,-1/0];for(let X=M[0];X<=M[1];++X)Ps(D,I[X]);return D}function un(I){let M=[1/0,1/0,-1/0,-1/0];for(let D of I)for(let X of D)Ps(M,X);return M}function $n(I){return I[0]!==-1/0&&I[1]!==-1/0&&I[2]!==1/0&&I[3]!==1/0}function Ka(I,M,D){if(!$n(I)||!$n(M))return NaN;let X=0,ie=0;return I[2]M[2]&&(X=I[0]-M[2]),I[1]>M[3]&&(ie=I[1]-M[3]),I[3]=X)return X;if(Ha(ie,ve)){if(es(I,M))return 0}else if(es(M,I))return 0;let we=1/0;for(let We of I)for(let ut=0,Mt=We.length,$t=Mt-1;ut0;){let ut=we.pop();if(ut[0]>=ve)continue;let Mt=ut[1],$t=M?50:100;if(Vn(Mt)<=$t){if(!wo(Mt,I.length))return NaN;if(M){let vr=sa(I,Mt,D,X);if(isNaN(vr)||vr===0)return vr;ve=Math.min(ve,vr)}else for(let vr=Mt[0];vr<=Mt[1];++vr){let Sr=eo(I[vr],D,X);if(ve=Math.min(ve,Sr),ve===0)return 0}}else{let vr=Ra(Mt,M);tn(we,ve,X,I,We,vr[0]),tn(we,ve,X,I,We,vr[1])}}return ve}function yo(I,M,D,X,ie,ve=1/0){let we=Math.min(ve,ie.distance(I[0],D[0]));if(we===0)return we;let We=new co([[0,[0,I.length-1],[0,D.length-1]]],_n);for(;We.length>0;){let ut=We.pop();if(ut[0]>=we)continue;let Mt=ut[1],$t=ut[2],vr=M?50:100,Sr=X?50:100;if(Vn(Mt)<=vr&&Vn($t)<=Sr){if(!wo(Mt,I.length)&&wo($t,D.length))return NaN;let Br;if(M&&X)Br=Ja(I,Mt,D,$t,ie),we=Math.min(we,Br);else if(M&&!X){let Jr=I.slice(Mt[0],Mt[1]+1);for(let li=$t[0];li<=$t[1];++li)if(Br=qn(D[li],Jr,ie),we=Math.min(we,Br),we===0)return we}else if(!M&&X){let Jr=D.slice($t[0],$t[1]+1);for(let li=Mt[0];li<=Mt[1];++li)if(Br=qn(I[li],Jr,ie),we=Math.min(we,Br),we===0)return we}else Br=lo(I,Mt,D,$t,ie),we=Math.min(we,Br)}else{let Br=Ra(Mt,M),Jr=Ra($t,X);Pa(We,we,ie,I,D,Br[0],Jr[0]),Pa(We,we,ie,I,D,Br[0],Jr[1]),Pa(We,we,ie,I,D,Br[1],Jr[0]),Pa(We,we,ie,I,D,Br[1],Jr[1])}}return we}function Jo(I){return I.type==="MultiPolygon"?I.coordinates.map(M=>({type:"Polygon",coordinates:M})):I.type==="MultiLineString"?I.coordinates.map(M=>({type:"LineString",coordinates:M})):I.type==="MultiPoint"?I.coordinates.map(M=>({type:"Point",coordinates:M})):[I]}class Ao{constructor(M,D){this.type=st,this.geojson=M,this.geometries=D}static parse(M,D){if(M.length!==2)return D.error(`'distance' expression requires exactly one argument, but found ${M.length-1} instead.`);if(Vi(M[1])){let X=M[1];if(X.type==="FeatureCollection")return new Ao(X,X.features.map(ie=>Jo(ie.geometry)).flat());if(X.type==="Feature")return new Ao(X,Jo(X.geometry));if("type"in X&&"coordinates"in X)return new Ao(X,Jo(X))}return D.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(M){if(M.geometry()!=null&&M.canonicalID()!=null){if(M.geometryType()==="Point")return function(D,X){let ie=D.geometry(),ve=ie.flat().map(ut=>gn([ut.x,ut.y],D.canonical));if(ie.length===0)return NaN;let we=new Ya(ve[0][1]),We=1/0;for(let ut of X){switch(ut.type){case"Point":We=Math.min(We,yo(ve,!1,[ut.coordinates],!1,we,We));break;case"LineString":We=Math.min(We,yo(ve,!1,ut.coordinates,!0,we,We));break;case"Polygon":We=Math.min(We,to(ve,!1,ut.coordinates,we,We))}if(We===0)return We}return We}(M,this.geometries);if(M.geometryType()==="LineString")return function(D,X){let ie=D.geometry(),ve=ie.flat().map(ut=>gn([ut.x,ut.y],D.canonical));if(ie.length===0)return NaN;let we=new Ya(ve[0][1]),We=1/0;for(let ut of X){switch(ut.type){case"Point":We=Math.min(We,yo(ve,!0,[ut.coordinates],!1,we,We));break;case"LineString":We=Math.min(We,yo(ve,!0,ut.coordinates,!0,we,We));break;case"Polygon":We=Math.min(We,to(ve,!0,ut.coordinates,we,We))}if(We===0)return We}return We}(M,this.geometries);if(M.geometryType()==="Polygon")return function(D,X){let ie=D.geometry();if(ie.length===0||ie[0].length===0)return NaN;let ve=Ys(ie,0).map(ut=>ut.map(Mt=>Mt.map($t=>gn([$t.x,$t.y],D.canonical)))),we=new Ya(ve[0][0][0][1]),We=1/0;for(let ut of X)for(let Mt of ve){switch(ut.type){case"Point":We=Math.min(We,to([ut.coordinates],!1,Mt,we,We));break;case"LineString":We=Math.min(We,to(ut.coordinates,!0,Mt,we,We));break;case"Polygon":We=Math.min(We,Na(Mt,ut.coordinates,we,We))}if(We===0)return We}return We}(M,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}let Dn={"==":Ta,"!=":ys,">":ls,"<":uo,">=":fo,"<=":$a,array:an,at:tr,boolean:an,case:Ai,coalesce:Ia,collator:mn,format:wa,image:ws,in:pr,"index-of":gr,interpolate:so,"interpolate-hcl":so,"interpolate-lab":so,length:Co,let:Xr,literal:Yr,match:Zr,number:an,"number-format":ra,object:an,slice:Qi,step:Zi,string:an,"to-boolean":Fi,"to-color":Fi,"to-number":Fi,"to-string":Fi,var:ft,within:ps,distance:Ao};class _a{constructor(M,D,X,ie){this.name=M,this.type=D,this._evaluate=X,this.args=ie}evaluate(M){return this._evaluate(M,this.args)}eachChild(M){this.args.forEach(M)}outputDefined(){return!1}static parse(M,D){let X=M[0],ie=_a.definitions[X];if(!ie)return D.error(`Unknown expression "${X}". If you wanted a literal array, use ["literal", [...]].`,0);let ve=Array.isArray(ie)?ie[0]:ie.type,we=Array.isArray(ie)?[[ie[1],ie[2]]]:ie.overloads,We=we.filter(([Mt])=>!Array.isArray(Mt)||Mt.length===M.length-1),ut=null;for(let[Mt,$t]of We){ut=new xi(D.registry,Ho,D.path,null,D.scope);let vr=[],Sr=!1;for(let Br=1;Br{return Sr=vr,Array.isArray(Sr)?`(${Sr.map(Oe).join(", ")})`:`(${Oe(Sr.type)}...)`;var Sr}).join(" | "),$t=[];for(let vr=1;vr{D=M?D&&Ho(X):D&&X instanceof Yr}),!!D&&Wa(I)&&ts(I,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function Wa(I){if(I instanceof _a&&(I.name==="get"&&I.args.length===1||I.name==="feature-state"||I.name==="has"&&I.args.length===1||I.name==="properties"||I.name==="geometry-type"||I.name==="id"||/^filter-/.test(I.name))||I instanceof ps||I instanceof Ao)return!1;let M=!0;return I.eachChild(D=>{M&&!Wa(D)&&(M=!1)}),M}function To(I){if(I instanceof _a&&I.name==="feature-state")return!1;let M=!0;return I.eachChild(D=>{M&&!To(D)&&(M=!1)}),M}function ts(I,M){if(I instanceof _a&&M.indexOf(I.name)>=0)return!1;let D=!0;return I.eachChild(X=>{D&&!ts(X,M)&&(D=!1)}),D}function Wo(I){return{result:"success",value:I}}function qa(I){return{result:"error",value:I}}function ln(I){return I["property-type"]==="data-driven"||I["property-type"]==="cross-faded-data-driven"}function Bo(I){return!!I.expression&&I.expression.parameters.indexOf("zoom")>-1}function ko(I){return!!I.expression&&I.expression.interpolated}function oo(I){return I instanceof Number?"number":I instanceof String?"string":I instanceof Boolean?"boolean":Array.isArray(I)?"array":I===null?"null":typeof I}function za(I){return typeof I=="object"&&I!==null&&!Array.isArray(I)}function ea(I){return I}function rs(I,M){let D=M.type==="color",X=I.stops&&typeof I.stops[0][0]=="object",ie=X||!(X||I.property!==void 0),ve=I.type||(ko(M)?"exponential":"interval");if(D||M.type==="padding"){let $t=D?Wt.parse:Ir.parse;(I=Ae({},I)).stops&&(I.stops=I.stops.map(vr=>[vr[0],$t(vr[1])])),I.default=$t(I.default?I.default:M.default)}if(I.colorSpace&&(we=I.colorSpace)!=="rgb"&&we!=="hcl"&&we!=="lab")throw new Error(`Unknown color space: "${I.colorSpace}"`);var we;let We,ut,Mt;if(ve==="exponential")We=fl;else if(ve==="interval")We=Ds;else if(ve==="categorical"){We=us,ut=Object.create(null);for(let $t of I.stops)ut[$t[0]]=$t[1];Mt=typeof I.stops[0][0]}else{if(ve!=="identity")throw new Error(`Unknown function type "${ve}"`);We=as}if(X){let $t={},vr=[];for(let Jr=0;JrJr[0]),evaluate:({zoom:Jr},li)=>fl({stops:Sr,base:I.base},M,Jr).evaluate(Jr,li)}}if(ie){let $t=ve==="exponential"?{name:"exponential",base:I.base!==void 0?I.base:1}:null;return{kind:"camera",interpolationType:$t,interpolationFactor:so.interpolationFactor.bind(void 0,$t),zoomStops:I.stops.map(vr=>vr[0]),evaluate:({zoom:vr})=>We(I,M,vr,ut,Mt)}}return{kind:"source",evaluate($t,vr){let Sr=vr&&vr.properties?vr.properties[I.property]:void 0;return Sr===void 0?$s(I.default,M.default):We(I,M,Sr,ut,Mt)}}}function $s(I,M,D){return I!==void 0?I:M!==void 0?M:D!==void 0?D:void 0}function us(I,M,D,X,ie){return $s(typeof D===ie?X[D]:void 0,I.default,M.default)}function Ds(I,M,D){if(oo(D)!=="number")return $s(I.default,M.default);let X=I.stops.length;if(X===1||D<=I.stops[0][0])return I.stops[0][1];if(D>=I.stops[X-1][0])return I.stops[X-1][1];let ie=ni(I.stops.map(ve=>ve[0]),D);return I.stops[ie][1]}function fl(I,M,D){let X=I.base!==void 0?I.base:1;if(oo(D)!=="number")return $s(I.default,M.default);let ie=I.stops.length;if(ie===1||D<=I.stops[0][0])return I.stops[0][1];if(D>=I.stops[ie-1][0])return I.stops[ie-1][1];let ve=ni(I.stops.map($t=>$t[0]),D),we=function($t,vr,Sr,Br){let Jr=Br-Sr,li=$t-Sr;return Jr===0?0:vr===1?li/Jr:(Math.pow(vr,li)-1)/(Math.pow(vr,Jr)-1)}(D,X,I.stops[ve][0],I.stops[ve+1][0]),We=I.stops[ve][1],ut=I.stops[ve+1][1],Mt=ka[M.type]||ea;return typeof We.evaluate=="function"?{evaluate(...$t){let vr=We.evaluate.apply(void 0,$t),Sr=ut.evaluate.apply(void 0,$t);if(vr!==void 0&&Sr!==void 0)return Mt(vr,Sr,we,I.colorSpace)}}:Mt(We,ut,we,I.colorSpace)}function as(I,M,D){switch(M.type){case"color":D=Wt.parse(D);break;case"formatted":D=Ur.fromString(D.toString());break;case"resolvedImage":D=yi.fromString(D.toString());break;case"padding":D=Ir.parse(D);break;default:oo(D)===M.type||M.type==="enum"&&M.values[D]||(D=void 0)}return $s(D,I.default,M.default)}_a.register(Dn,{error:[{kind:"error"},[Ue],(I,[M])=>{throw new oi(M.evaluate(I))}],typeof:[Ue,[Yt],(I,[M])=>Oe(ti(M.evaluate(I)))],"to-rgba":[xe(st,4),[$e],(I,[M])=>{let[D,X,ie,ve]=M.evaluate(I).rgb;return[255*D,255*X,255*ie,ve]}],rgb:[$e,[st,st,st],Ws],rgba:[$e,[st,st,st,st],Ws],has:{type:rt,overloads:[[[Ue],(I,[M])=>Ca(M.evaluate(I),I.properties())],[[Ue,zt],(I,[M,D])=>Ca(M.evaluate(I),D.evaluate(I))]]},get:{type:Yt,overloads:[[[Ue],(I,[M])=>Es(M.evaluate(I),I.properties())],[[Ue,zt],(I,[M,D])=>Es(M.evaluate(I),D.evaluate(I))]]},"feature-state":[Yt,[Ue],(I,[M])=>Es(M.evaluate(I),I.featureState||{})],properties:[zt,[],I=>I.properties()],"geometry-type":[Ue,[],I=>I.geometryType()],id:[Yt,[],I=>I.id()],zoom:[st,[],I=>I.globals.zoom],"heatmap-density":[st,[],I=>I.globals.heatmapDensity||0],"line-progress":[st,[],I=>I.globals.lineProgress||0],accumulated:[Yt,[],I=>I.globals.accumulated===void 0?null:I.globals.accumulated],"+":[st,Ts(st),(I,M)=>{let D=0;for(let X of M)D+=X.evaluate(I);return D}],"*":[st,Ts(st),(I,M)=>{let D=1;for(let X of M)D*=X.evaluate(I);return D}],"-":{type:st,overloads:[[[st,st],(I,[M,D])=>M.evaluate(I)-D.evaluate(I)],[[st],(I,[M])=>-M.evaluate(I)]]},"/":[st,[st,st],(I,[M,D])=>M.evaluate(I)/D.evaluate(I)],"%":[st,[st,st],(I,[M,D])=>M.evaluate(I)%D.evaluate(I)],ln2:[st,[],()=>Math.LN2],pi:[st,[],()=>Math.PI],e:[st,[],()=>Math.E],"^":[st,[st,st],(I,[M,D])=>Math.pow(M.evaluate(I),D.evaluate(I))],sqrt:[st,[st],(I,[M])=>Math.sqrt(M.evaluate(I))],log10:[st,[st],(I,[M])=>Math.log(M.evaluate(I))/Math.LN10],ln:[st,[st],(I,[M])=>Math.log(M.evaluate(I))],log2:[st,[st],(I,[M])=>Math.log(M.evaluate(I))/Math.LN2],sin:[st,[st],(I,[M])=>Math.sin(M.evaluate(I))],cos:[st,[st],(I,[M])=>Math.cos(M.evaluate(I))],tan:[st,[st],(I,[M])=>Math.tan(M.evaluate(I))],asin:[st,[st],(I,[M])=>Math.asin(M.evaluate(I))],acos:[st,[st],(I,[M])=>Math.acos(M.evaluate(I))],atan:[st,[st],(I,[M])=>Math.atan(M.evaluate(I))],min:[st,Ts(st),(I,M)=>Math.min(...M.map(D=>D.evaluate(I)))],max:[st,Ts(st),(I,M)=>Math.max(...M.map(D=>D.evaluate(I)))],abs:[st,[st],(I,[M])=>Math.abs(M.evaluate(I))],round:[st,[st],(I,[M])=>{let D=M.evaluate(I);return D<0?-Math.round(-D):Math.round(D)}],floor:[st,[st],(I,[M])=>Math.floor(M.evaluate(I))],ceil:[st,[st],(I,[M])=>Math.ceil(M.evaluate(I))],"filter-==":[rt,[Ue,Yt],(I,[M,D])=>I.properties()[M.value]===D.value],"filter-id-==":[rt,[Yt],(I,[M])=>I.id()===M.value],"filter-type-==":[rt,[Ue],(I,[M])=>I.geometryType()===M.value],"filter-<":[rt,[Ue,Yt],(I,[M,D])=>{let X=I.properties()[M.value],ie=D.value;return typeof X==typeof ie&&X{let D=I.id(),X=M.value;return typeof D==typeof X&&D":[rt,[Ue,Yt],(I,[M,D])=>{let X=I.properties()[M.value],ie=D.value;return typeof X==typeof ie&&X>ie}],"filter-id->":[rt,[Yt],(I,[M])=>{let D=I.id(),X=M.value;return typeof D==typeof X&&D>X}],"filter-<=":[rt,[Ue,Yt],(I,[M,D])=>{let X=I.properties()[M.value],ie=D.value;return typeof X==typeof ie&&X<=ie}],"filter-id-<=":[rt,[Yt],(I,[M])=>{let D=I.id(),X=M.value;return typeof D==typeof X&&D<=X}],"filter->=":[rt,[Ue,Yt],(I,[M,D])=>{let X=I.properties()[M.value],ie=D.value;return typeof X==typeof ie&&X>=ie}],"filter-id->=":[rt,[Yt],(I,[M])=>{let D=I.id(),X=M.value;return typeof D==typeof X&&D>=X}],"filter-has":[rt,[Yt],(I,[M])=>M.value in I.properties()],"filter-has-id":[rt,[],I=>I.id()!==null&&I.id()!==void 0],"filter-type-in":[rt,[xe(Ue)],(I,[M])=>M.value.indexOf(I.geometryType())>=0],"filter-id-in":[rt,[xe(Yt)],(I,[M])=>M.value.indexOf(I.id())>=0],"filter-in-small":[rt,[Ue,xe(Yt)],(I,[M,D])=>D.value.indexOf(I.properties()[M.value])>=0],"filter-in-large":[rt,[Ue,xe(Yt)],(I,[M,D])=>function(X,ie,ve,we){for(;ve<=we;){let We=ve+we>>1;if(ie[We]===X)return!0;ie[We]>X?we=We-1:ve=We+1}return!1}(I.properties()[M.value],D.value,0,D.value.length-1)],all:{type:rt,overloads:[[[rt,rt],(I,[M,D])=>M.evaluate(I)&&D.evaluate(I)],[Ts(rt),(I,M)=>{for(let D of M)if(!D.evaluate(I))return!1;return!0}]]},any:{type:rt,overloads:[[[rt,rt],(I,[M,D])=>M.evaluate(I)||D.evaluate(I)],[Ts(rt),(I,M)=>{for(let D of M)if(D.evaluate(I))return!0;return!1}]]},"!":[rt,[rt],(I,[M])=>!M.evaluate(I)],"is-supported-script":[rt,[Ue],(I,[M])=>{let D=I.globals&&I.globals.isSupportedScript;return!D||D(M.evaluate(I))}],upcase:[Ue,[Ue],(I,[M])=>M.evaluate(I).toUpperCase()],downcase:[Ue,[Ue],(I,[M])=>M.evaluate(I).toLowerCase()],concat:[Ue,Ts(Yt),(I,M)=>M.map(D=>en(D.evaluate(I))).join("")],"resolved-locale":[Ue,[hr],(I,[M])=>M.evaluate(I).resolvedLocale()]});class Ma{constructor(M,D){var X;this.expression=M,this._warningHistory={},this._evaluator=new xn,this._defaultValue=D?(X=D).type==="color"&&za(X.default)?new Wt(0,0,0,0):X.type==="color"?Wt.parse(X.default)||null:X.type==="padding"?Ir.parse(X.default)||null:X.type==="variableAnchorOffsetCollection"?jr.parse(X.default)||null:X.default===void 0?null:X.default:null,this._enumValues=D&&D.type==="enum"?D.values:null}evaluateWithoutErrorHandling(M,D,X,ie,ve,we){return this._evaluator.globals=M,this._evaluator.feature=D,this._evaluator.featureState=X,this._evaluator.canonical=ie,this._evaluator.availableImages=ve||null,this._evaluator.formattedSection=we,this.expression.evaluate(this._evaluator)}evaluate(M,D,X,ie,ve,we){this._evaluator.globals=M,this._evaluator.feature=D||null,this._evaluator.featureState=X||null,this._evaluator.canonical=ie,this._evaluator.availableImages=ve||null,this._evaluator.formattedSection=we||null;try{let We=this.expression.evaluate(this._evaluator);if(We==null||typeof We=="number"&&We!=We)return this._defaultValue;if(this._enumValues&&!(We in this._enumValues))throw new oi(`Expected value to be one of ${Object.keys(this._enumValues).map(ut=>JSON.stringify(ut)).join(", ")}, but found ${JSON.stringify(We)} instead.`);return We}catch(We){return this._warningHistory[We.message]||(this._warningHistory[We.message]=!0,typeof console!="undefined"&&console.warn(We.message)),this._defaultValue}}}function Qs(I){return Array.isArray(I)&&I.length>0&&typeof I[0]=="string"&&I[0]in Dn}function ho(I,M){let D=new xi(Dn,Ho,[],M?function(ie){let ve={color:$e,string:Ue,number:st,enum:Ue,boolean:rt,formatted:yr,padding:br,resolvedImage:Ut,variableAnchorOffsetCollection:Ie};return ie.type==="array"?xe(ve[ie.value]||Yt,ie.length):ve[ie.type]}(M):void 0),X=D.parse(I,void 0,void 0,void 0,M&&M.type==="string"?{typeAnnotation:"coerce"}:void 0);return X?Wo(new Ma(X,M)):qa(D.errors)}class gs{constructor(M,D){this.kind=M,this._styleExpression=D,this.isStateDependent=M!=="constant"&&!To(D.expression)}evaluateWithoutErrorHandling(M,D,X,ie,ve,we){return this._styleExpression.evaluateWithoutErrorHandling(M,D,X,ie,ve,we)}evaluate(M,D,X,ie,ve,we){return this._styleExpression.evaluate(M,D,X,ie,ve,we)}}class Vo{constructor(M,D,X,ie){this.kind=M,this.zoomStops=X,this._styleExpression=D,this.isStateDependent=M!=="camera"&&!To(D.expression),this.interpolationType=ie}evaluateWithoutErrorHandling(M,D,X,ie,ve,we){return this._styleExpression.evaluateWithoutErrorHandling(M,D,X,ie,ve,we)}evaluate(M,D,X,ie,ve,we){return this._styleExpression.evaluate(M,D,X,ie,ve,we)}interpolationFactor(M,D,X){return this.interpolationType?so.interpolationFactor(this.interpolationType,M,D,X):0}}function Do(I,M){let D=ho(I,M);if(D.result==="error")return D;let X=D.value.expression,ie=Wa(X);if(!ie&&!ln(M))return qa([new at("","data expressions not supported")]);let ve=ts(X,["zoom"]);if(!ve&&!Bo(M))return qa([new at("","zoom expressions not supported")]);let we=xs(X);return we||ve?we instanceof at?qa([we]):we instanceof so&&!ko(M)?qa([new at("",'"interpolate" expressions cannot be used with this property')]):Wo(we?new Vo(ie?"camera":"composite",D.value,we.labels,we instanceof so?we.interpolation:void 0):new gs(ie?"constant":"source",D.value)):qa([new at("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class Lo{constructor(M,D){this._parameters=M,this._specification=D,Ae(this,rs(this._parameters,this._specification))}static deserialize(M){return new Lo(M._parameters,M._specification)}static serialize(M){return{_parameters:M._parameters,_specification:M._specification}}}function xs(I){let M=null;if(I instanceof Xr)M=xs(I.result);else if(I instanceof Ia){for(let D of I.args)if(M=xs(D),M)break}else(I instanceof Zi||I instanceof so)&&I.input instanceof _a&&I.input.name==="zoom"&&(M=I);return M instanceof at||I.eachChild(D=>{let X=xs(D);X instanceof at?M=X:!M&&X?M=new at("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):M&&X&&M!==X&&(M=new at("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),M}function ks(I){if(I===!0||I===!1)return!0;if(!Array.isArray(I)||I.length===0)return!1;switch(I[0]){case"has":return I.length>=2&&I[1]!=="$id"&&I[1]!=="$type";case"in":return I.length>=3&&(typeof I[1]!="string"||Array.isArray(I[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return I.length!==3||Array.isArray(I[1])||Array.isArray(I[2]);case"any":case"all":for(let M of I.slice(1))if(!ks(M)&&typeof M!="boolean")return!1;return!0;default:return!0}}let Ea={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Jn(I){if(I==null)return{filter:()=>!0,needGeometry:!1};ks(I)||(I=Gs(I));let M=ho(I,Ea);if(M.result==="error")throw new Error(M.value.map(D=>`${D.key}: ${D.message}`).join(", "));return{filter:(D,X,ie)=>M.value.evaluate(D,X,{},ie),needGeometry:rl(I)}}function Oo(I,M){return IM?1:0}function rl(I){if(!Array.isArray(I))return!1;if(I[0]==="within"||I[0]==="distance")return!0;for(let M=1;M"||M==="<="||M===">="?bs(I[1],I[2],M):M==="any"?(D=I.slice(1),["any"].concat(D.map(Gs))):M==="all"?["all"].concat(I.slice(1).map(Gs)):M==="none"?["all"].concat(I.slice(1).map(Gs).map(Aa)):M==="in"?zs(I[1],I.slice(2)):M==="!in"?Aa(zs(I[1],I.slice(2))):M==="has"?$o(I[1]):M!=="!has"||Aa($o(I[1]));var D}function bs(I,M,D){switch(I){case"$type":return[`filter-type-${D}`,M];case"$id":return[`filter-id-${D}`,M];default:return[`filter-${D}`,I,M]}}function zs(I,M){if(M.length===0)return!1;switch(I){case"$type":return["filter-type-in",["literal",M]];case"$id":return["filter-id-in",["literal",M]];default:return M.length>200&&!M.some(D=>typeof D!=typeof M[0])?["filter-in-large",I,["literal",M.sort(Oo)]]:["filter-in-small",I,["literal",M]]}}function $o(I){switch(I){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",I]}}function Aa(I){return["!",I]}function os(I){let M=typeof I;if(M==="number"||M==="boolean"||M==="string"||I==null)return JSON.stringify(I);if(Array.isArray(I)){let ie="[";for(let ve of I)ie+=`${os(ve)},`;return`${ie}]`}let D=Object.keys(I).sort(),X="{";for(let ie=0;ieX.maximum?[new Et(M,D,`${D} is greater than the maximum value ${X.maximum}`)]:[]}function io(I){let M=I.valueSpec,D=po(I.value.type),X,ie,ve,we={},We=D!=="categorical"&&I.value.property===void 0,ut=!We,Mt=oo(I.value.stops)==="array"&&oo(I.value.stops[0])==="array"&&oo(I.value.stops[0][0])==="object",$t=ss({key:I.key,value:I.value,valueSpec:I.styleSpec.function,validateSpec:I.validateSpec,style:I.style,styleSpec:I.styleSpec,objectElementValidators:{stops:function(Br){if(D==="identity")return[new Et(Br.key,Br.value,'identity function may not have a "stops" property')];let Jr=[],li=Br.value;return Jr=Jr.concat(qo({key:Br.key,value:li,valueSpec:Br.valueSpec,validateSpec:Br.validateSpec,style:Br.style,styleSpec:Br.styleSpec,arrayElementValidator:vr})),oo(li)==="array"&&li.length===0&&Jr.push(new Et(Br.key,li,"array must have at least one stop")),Jr},default:function(Br){return Br.validateSpec({key:Br.key,value:Br.value,valueSpec:M,validateSpec:Br.validateSpec,style:Br.style,styleSpec:Br.styleSpec})}}});return D==="identity"&&We&&$t.push(new Et(I.key,I.value,'missing required property "property"')),D==="identity"||I.value.stops||$t.push(new Et(I.key,I.value,'missing required property "stops"')),D==="exponential"&&I.valueSpec.expression&&!ko(I.valueSpec)&&$t.push(new Et(I.key,I.value,"exponential functions not supported")),I.styleSpec.$version>=8&&(ut&&!ln(I.valueSpec)?$t.push(new Et(I.key,I.value,"property functions not supported")):We&&!Bo(I.valueSpec)&&$t.push(new Et(I.key,I.value,"zoom functions not supported"))),D!=="categorical"&&!Mt||I.value.property!==void 0||$t.push(new Et(I.key,I.value,'"property" property is required')),$t;function vr(Br){let Jr=[],li=Br.value,Hi=Br.key;if(oo(li)!=="array")return[new Et(Hi,li,`array expected, ${oo(li)} found`)];if(li.length!==2)return[new Et(Hi,li,`array length 2 expected, length ${li.length} found`)];if(Mt){if(oo(li[0])!=="object")return[new Et(Hi,li,`object expected, ${oo(li[0])} found`)];if(li[0].zoom===void 0)return[new Et(Hi,li,"object stop key must have zoom")];if(li[0].value===void 0)return[new Et(Hi,li,"object stop key must have value")];if(ve&&ve>po(li[0].zoom))return[new Et(Hi,li[0].zoom,"stop zoom values must appear in ascending order")];po(li[0].zoom)!==ve&&(ve=po(li[0].zoom),ie=void 0,we={}),Jr=Jr.concat(ss({key:`${Hi}[0]`,value:li[0],valueSpec:{zoom:{}},validateSpec:Br.validateSpec,style:Br.style,styleSpec:Br.styleSpec,objectElementValidators:{zoom:zo,value:Sr}}))}else Jr=Jr.concat(Sr({key:`${Hi}[0]`,value:li[0],valueSpec:{},validateSpec:Br.validateSpec,style:Br.style,styleSpec:Br.styleSpec},li));return Qs(go(li[1]))?Jr.concat([new Et(`${Hi}[1]`,li[1],"expressions are not allowed in function stops.")]):Jr.concat(Br.validateSpec({key:`${Hi}[1]`,value:li[1],valueSpec:M,validateSpec:Br.validateSpec,style:Br.style,styleSpec:Br.styleSpec}))}function Sr(Br,Jr){let li=oo(Br.value),Hi=po(Br.value),cn=Br.value!==null?Br.value:Jr;if(X){if(li!==X)return[new Et(Br.key,cn,`${li} stop domain type must match previous stop domain type ${X}`)]}else X=li;if(li!=="number"&&li!=="string"&&li!=="boolean")return[new Et(Br.key,cn,"stop domain value must be a number, string, or boolean")];if(li!=="number"&&D!=="categorical"){let Za=`number expected, ${li} found`;return ln(M)&&D===void 0&&(Za+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Et(Br.key,cn,Za)]}return D!=="categorical"||li!=="number"||isFinite(Hi)&&Math.floor(Hi)===Hi?D!=="categorical"&&li==="number"&&ie!==void 0&&Hinew Et(`${I.key}${X.key}`,I.value,X.message));let D=M.value.expression||M.value._styleExpression.expression;if(I.expressionContext==="property"&&I.propertyKey==="text-font"&&!D.outputDefined())return[new Et(I.key,I.value,`Invalid data expression for "${I.propertyKey}". Output values must be contained as literals within the expression.`)];if(I.expressionContext==="property"&&I.propertyType==="layout"&&!To(D))return[new Et(I.key,I.value,'"feature-state" data expressions are not supported with layout properties.')];if(I.expressionContext==="filter"&&!To(D))return[new Et(I.key,I.value,'"feature-state" data expressions are not supported with filters.')];if(I.expressionContext&&I.expressionContext.indexOf("cluster")===0){if(!ts(D,["zoom","feature-state"]))return[new Et(I.key,I.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(I.expressionContext==="cluster-initial"&&!Wa(D))return[new Et(I.key,I.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Da(I){let M=I.key,D=I.value,X=I.valueSpec,ie=[];return Array.isArray(X.values)?X.values.indexOf(po(D))===-1&&ie.push(new Et(M,D,`expected one of [${X.values.join(", ")}], ${JSON.stringify(D)} found`)):Object.keys(X.values).indexOf(po(D))===-1&&ie.push(new Et(M,D,`expected one of [${Object.keys(X.values).join(", ")}], ${JSON.stringify(D)} found`)),ie}function vs(I){return ks(go(I.value))?Io(Ae({},I,{expressionContext:"filter",valueSpec:{value:"boolean"}})):fs(I)}function fs(I){let M=I.value,D=I.key;if(oo(M)!=="array")return[new Et(D,M,`array expected, ${oo(M)} found`)];let X=I.styleSpec,ie,ve=[];if(M.length<1)return[new Et(D,M,"filter array must have at least 1 element")];switch(ve=ve.concat(Da({key:`${D}[0]`,value:M[0],valueSpec:X.filter_operator,style:I.style,styleSpec:I.styleSpec})),po(M[0])){case"<":case"<=":case">":case">=":M.length>=2&&po(M[1])==="$type"&&ve.push(new Et(D,M,`"$type" cannot be use with operator "${M[0]}"`));case"==":case"!=":M.length!==3&&ve.push(new Et(D,M,`filter array for operator "${M[0]}" must have 3 elements`));case"in":case"!in":M.length>=2&&(ie=oo(M[1]),ie!=="string"&&ve.push(new Et(`${D}[1]`,M[1],`string expected, ${ie} found`)));for(let we=2;we{Mt in D&&M.push(new Et(X,D[Mt],`"${Mt}" is prohibited for ref layers`))}),ie.layers.forEach(Mt=>{po(Mt.id)===We&&(ut=Mt)}),ut?ut.ref?M.push(new Et(X,D.ref,"ref cannot reference another ref layer")):we=po(ut.type):M.push(new Et(X,D.ref,`ref layer "${We}" not found`))}else if(we!=="background")if(D.source){let ut=ie.sources&&ie.sources[D.source],Mt=ut&&po(ut.type);ut?Mt==="vector"&&we==="raster"?M.push(new Et(X,D.source,`layer "${D.id}" requires a raster source`)):Mt!=="raster-dem"&&we==="hillshade"?M.push(new Et(X,D.source,`layer "${D.id}" requires a raster-dem source`)):Mt==="raster"&&we!=="raster"?M.push(new Et(X,D.source,`layer "${D.id}" requires a vector source`)):Mt!=="vector"||D["source-layer"]?Mt==="raster-dem"&&we!=="hillshade"?M.push(new Et(X,D.source,"raster-dem source can only be used with layer type 'hillshade'.")):we!=="line"||!D.paint||!D.paint["line-gradient"]||Mt==="geojson"&&ut.lineMetrics||M.push(new Et(X,D,`layer "${D.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):M.push(new Et(X,D,`layer "${D.id}" must specify a "source-layer"`)):M.push(new Et(X,D.source,`source "${D.source}" not found`))}else M.push(new Et(X,D,'missing required property "source"'));return M=M.concat(ss({key:X,value:D,valueSpec:ve.layer,style:I.style,styleSpec:I.styleSpec,validateSpec:I.validateSpec,objectElementValidators:{"*":()=>[],type:()=>I.validateSpec({key:`${X}.type`,value:D.type,valueSpec:ve.layer.type,style:I.style,styleSpec:I.styleSpec,validateSpec:I.validateSpec,object:D,objectKey:"type"}),filter:vs,layout:ut=>ss({layer:D,key:ut.key,value:ut.value,style:ut.style,styleSpec:ut.styleSpec,validateSpec:ut.validateSpec,objectElementValidators:{"*":Mt=>Hs(Ae({layerType:we},Mt))}}),paint:ut=>ss({layer:D,key:ut.key,value:ut.value,style:ut.style,styleSpec:ut.styleSpec,validateSpec:ut.validateSpec,objectElementValidators:{"*":Mt=>el(Ae({layerType:we},Mt))}})}})),M}function tl(I){let M=I.value,D=I.key,X=oo(M);return X!=="string"?[new Et(D,M,`string expected, ${X} found`)]:[]}let Fs={promoteId:function({key:I,value:M}){if(oo(M)==="string")return tl({key:I,value:M});{let D=[];for(let X in M)D.push(...tl({key:`${I}.${X}`,value:M[X]}));return D}}};function hl(I){let M=I.value,D=I.key,X=I.styleSpec,ie=I.style,ve=I.validateSpec;if(!M.type)return[new Et(D,M,'"type" is required')];let we=po(M.type),We;switch(we){case"vector":case"raster":return We=ss({key:D,value:M,valueSpec:X[`source_${we.replace("-","_")}`],style:I.style,styleSpec:X,objectElementValidators:Fs,validateSpec:ve}),We;case"raster-dem":return We=function(ut){var Mt;let $t=(Mt=ut.sourceName)!==null&&Mt!==void 0?Mt:"",vr=ut.value,Sr=ut.styleSpec,Br=Sr.source_raster_dem,Jr=ut.style,li=[],Hi=oo(vr);if(vr===void 0)return li;if(Hi!=="object")return li.push(new Et("source_raster_dem",vr,`object expected, ${Hi} found`)),li;let cn=po(vr.encoding)==="custom",Za=["redFactor","greenFactor","blueFactor","baseShift"],Rn=ut.value.encoding?`"${ut.value.encoding}"`:"Default";for(let La in vr)!cn&&Za.includes(La)?li.push(new Et(La,vr[La],`In "${$t}": "${La}" is only valid when "encoding" is set to "custom". ${Rn} encoding found`)):Br[La]?li=li.concat(ut.validateSpec({key:La,value:vr[La],valueSpec:Br[La],validateSpec:ut.validateSpec,style:Jr,styleSpec:Sr})):li.push(new Et(La,vr[La],`unknown property "${La}"`));return li}({sourceName:D,value:M,style:I.style,styleSpec:X,validateSpec:ve}),We;case"geojson":if(We=ss({key:D,value:M,valueSpec:X.source_geojson,style:ie,styleSpec:X,validateSpec:ve,objectElementValidators:Fs}),M.cluster)for(let ut in M.clusterProperties){let[Mt,$t]=M.clusterProperties[ut],vr=typeof Mt=="string"?[Mt,["accumulated"],["get",ut]]:Mt;We.push(...Io({key:`${D}.${ut}.map`,value:$t,validateSpec:ve,expressionContext:"cluster-map"})),We.push(...Io({key:`${D}.${ut}.reduce`,value:vr,validateSpec:ve,expressionContext:"cluster-reduce"}))}return We;case"video":return ss({key:D,value:M,valueSpec:X.source_video,style:ie,validateSpec:ve,styleSpec:X});case"image":return ss({key:D,value:M,valueSpec:X.source_image,style:ie,validateSpec:ve,styleSpec:X});case"canvas":return[new Et(D,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Da({key:`${D}.type`,value:M.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:ie,validateSpec:ve,styleSpec:X})}}function Fa(I){let M=I.value,D=I.styleSpec,X=D.light,ie=I.style,ve=[],we=oo(M);if(M===void 0)return ve;if(we!=="object")return ve=ve.concat([new Et("light",M,`object expected, ${we} found`)]),ve;for(let We in M){let ut=We.match(/^(.*)-transition$/);ve=ve.concat(ut&&X[ut[1]]&&X[ut[1]].transition?I.validateSpec({key:We,value:M[We],valueSpec:D.transition,validateSpec:I.validateSpec,style:ie,styleSpec:D}):X[We]?I.validateSpec({key:We,value:M[We],valueSpec:X[We],validateSpec:I.validateSpec,style:ie,styleSpec:D}):[new Et(We,M[We],`unknown property "${We}"`)])}return ve}function Ms(I){let M=I.value,D=I.styleSpec,X=D.sky,ie=I.style,ve=oo(M);if(M===void 0)return[];if(ve!=="object")return[new Et("sky",M,`object expected, ${ve} found`)];let we=[];for(let We in M)we=we.concat(X[We]?I.validateSpec({key:We,value:M[We],valueSpec:X[We],style:ie,styleSpec:D}):[new Et(We,M[We],`unknown property "${We}"`)]);return we}function jo(I){let M=I.value,D=I.styleSpec,X=D.terrain,ie=I.style,ve=[],we=oo(M);if(M===void 0)return ve;if(we!=="object")return ve=ve.concat([new Et("terrain",M,`object expected, ${we} found`)]),ve;for(let We in M)ve=ve.concat(X[We]?I.validateSpec({key:We,value:M[We],valueSpec:X[We],validateSpec:I.validateSpec,style:ie,styleSpec:D}):[new Et(We,M[We],`unknown property "${We}"`)]);return ve}function Rs(I){let M=[],D=I.value,X=I.key;if(Array.isArray(D)){let ie=[],ve=[];for(let we in D)D[we].id&&ie.includes(D[we].id)&&M.push(new Et(X,D,`all the sprites' ids must be unique, but ${D[we].id} is duplicated`)),ie.push(D[we].id),D[we].url&&ve.includes(D[we].url)&&M.push(new Et(X,D,`all the sprites' URLs must be unique, but ${D[we].url} is duplicated`)),ve.push(D[we].url),M=M.concat(ss({key:`${X}[${we}]`,value:D[we],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:I.validateSpec}));return M}return tl({key:X,value:D})}let Is={"*":()=>[],array:qo,boolean:function(I){let M=I.value,D=I.key,X=oo(M);return X!=="boolean"?[new Et(D,M,`boolean expected, ${X} found`)]:[]},number:zo,color:function(I){let M=I.key,D=I.value,X=oo(D);return X!=="string"?[new Et(M,D,`color expected, ${X} found`)]:Wt.parse(String(D))?[]:[new Et(M,D,`color expected, "${D}" found`)]},constants:Ss,enum:Da,filter:vs,function:io,layer:Ro,object:ss,source:hl,light:Fa,sky:Ms,terrain:jo,projection:function(I){let M=I.value,D=I.styleSpec,X=D.projection,ie=I.style,ve=oo(M);if(M===void 0)return[];if(ve!=="object")return[new Et("projection",M,`object expected, ${ve} found`)];let we=[];for(let We in M)we=we.concat(X[We]?I.validateSpec({key:We,value:M[We],valueSpec:X[We],style:ie,styleSpec:D}):[new Et(We,M[We],`unknown property "${We}"`)]);return we},string:tl,formatted:function(I){return tl(I).length===0?[]:Io(I)},resolvedImage:function(I){return tl(I).length===0?[]:Io(I)},padding:function(I){let M=I.key,D=I.value;if(oo(D)==="array"){if(D.length<1||D.length>4)return[new Et(M,D,`padding requires 1 to 4 values; ${D.length} values found`)];let X={type:"number"},ie=[];for(let ve=0;ve[]}})),I.constants&&(D=D.concat(Ss({key:"constants",value:I.constants,style:I,styleSpec:M,validateSpec:Bs}))),mr(D)}function wr(I){return function(M){return I(xee(_ee({},M),{validateSpec:Bs}))}}function mr(I){return[].concat(I).sort((M,D)=>M.line-D.line)}function Or(I){return function(...M){return mr(I.apply(this,M))}}Gt.source=Or(wr(hl)),Gt.sprite=Or(wr(Rs)),Gt.glyphs=Or(wr(At)),Gt.light=Or(wr(Fa)),Gt.sky=Or(wr(Ms)),Gt.terrain=Or(wr(jo)),Gt.layer=Or(wr(Ro)),Gt.filter=Or(wr(vs)),Gt.paintProperty=Or(wr(el)),Gt.layoutProperty=Or(wr(Hs));let gi=Gt,Ti=gi.light,ki=gi.sky,Ji=gi.paintProperty,Fn=gi.layoutProperty;function Pi(I,M){let D=!1;if(M&&M.length)for(let X of M)I.fire(new ye(new Error(X.message))),D=!0;return D}class hi{constructor(M,D,X){let ie=this.cells=[];if(M instanceof ArrayBuffer){this.arrayBuffer=M;let we=new Int32Array(this.arrayBuffer);M=we[0],this.d=(D=we[1])+2*(X=we[2]);for(let ut=0;ut=vr[Jr+0]&&ie>=vr[Jr+1])?(We[Br]=!0,we.push($t[Br])):We[Br]=!1}}}}_forEachCell(M,D,X,ie,ve,we,We,ut){let Mt=this._convertToCellCoord(M),$t=this._convertToCellCoord(D),vr=this._convertToCellCoord(X),Sr=this._convertToCellCoord(ie);for(let Br=Mt;Br<=vr;Br++)for(let Jr=$t;Jr<=Sr;Jr++){let li=this.d*Jr+Br;if((!ut||ut(this._convertFromCellCoord(Br),this._convertFromCellCoord(Jr),this._convertFromCellCoord(Br+1),this._convertFromCellCoord(Jr+1)))&&ve.call(this,M,D,X,ie,li,we,We,ut))return}}_convertFromCellCoord(M){return(M-this.padding)/this.scale}_convertToCellCoord(M){return Math.max(0,Math.min(this.d-1,Math.floor(M*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let M=this.cells,D=3+this.cells.length+1+1,X=0;for(let we=0;we=0)continue;let we=I[ve];ie[ve]=Li[D].shallow.indexOf(ve)>=0?we:ia(we,M)}I instanceof Error&&(ie.message=I.message)}if(ie.$name)throw new Error("$name property is reserved for worker serialization logic.");return D!=="Object"&&(ie.$name=D),ie}function pa(I){if(ya(I))return I;if(Array.isArray(I))return I.map(pa);if(typeof I!="object")throw new Error("can't deserialize object of type "+typeof I);let M=ta(I)||"Object";if(!Li[M])throw new Error(`can't deserialize unregistered class ${M}`);let{klass:D}=Li[M];if(!D)throw new Error(`can't deserialize unregistered class ${M}`);if(D.deserialize)return D.deserialize(I);let X=Object.create(D.prototype);for(let ie of Object.keys(I)){if(ie==="$name")continue;let ve=I[ie];X[ie]=Li[M].shallow.indexOf(ie)>=0?ve:pa(ve)}return X}class va{constructor(){this.first=!0}update(M,D){let X=Math.floor(M);return this.first?(this.first=!1,this.lastIntegerZoom=X,this.lastIntegerZoomTime=0,this.lastZoom=M,this.lastFloorZoom=X,!0):(this.lastFloorZoom>X?(this.lastIntegerZoom=X+1,this.lastIntegerZoomTime=D):this.lastFloorZoomI>=128&&I<=255,"Hangul Jamo":I=>I>=4352&&I<=4607,Khmer:I=>I>=6016&&I<=6143,"General Punctuation":I=>I>=8192&&I<=8303,"Letterlike Symbols":I=>I>=8448&&I<=8527,"Number Forms":I=>I>=8528&&I<=8591,"Miscellaneous Technical":I=>I>=8960&&I<=9215,"Control Pictures":I=>I>=9216&&I<=9279,"Optical Character Recognition":I=>I>=9280&&I<=9311,"Enclosed Alphanumerics":I=>I>=9312&&I<=9471,"Geometric Shapes":I=>I>=9632&&I<=9727,"Miscellaneous Symbols":I=>I>=9728&&I<=9983,"Miscellaneous Symbols and Arrows":I=>I>=11008&&I<=11263,"Ideographic Description Characters":I=>I>=12272&&I<=12287,"CJK Symbols and Punctuation":I=>I>=12288&&I<=12351,Katakana:I=>I>=12448&&I<=12543,Kanbun:I=>I>=12688&&I<=12703,"CJK Strokes":I=>I>=12736&&I<=12783,"Enclosed CJK Letters and Months":I=>I>=12800&&I<=13055,"CJK Compatibility":I=>I>=13056&&I<=13311,"Yijing Hexagram Symbols":I=>I>=19904&&I<=19967,"Private Use Area":I=>I>=57344&&I<=63743,"Vertical Forms":I=>I>=65040&&I<=65055,"CJK Compatibility Forms":I=>I>=65072&&I<=65103,"Small Form Variants":I=>I>=65104&&I<=65135,"Halfwidth and Fullwidth Forms":I=>I>=65280&&I<=65519};function is(I){for(let M of I)if(bl(M.charCodeAt(0)))return!0;return!1}function Cs(I){for(let M of I)if(!xl(M.charCodeAt(0)))return!1;return!0}function Ks(I){let M=I.map(D=>{try{return new RegExp(`\\p{sc=${D}}`,"u").source}catch(X){return null}}).filter(D=>D);return new RegExp(M.join("|"),"u")}let dl=Ks(["Arab","Dupl","Mong","Ougr","Syrc"]);function xl(I){return!dl.test(String.fromCodePoint(I))}let Ol=Ks(["Bopo","Hani","Hira","Kana","Kits","Nshu","Tang","Yiii"]);function bl(I){return!(I!==746&&I!==747&&(I<4352||!(zn["CJK Compatibility Forms"](I)&&!(I>=65097&&I<=65103)||zn["CJK Compatibility"](I)||zn["CJK Strokes"](I)||!(!zn["CJK Symbols and Punctuation"](I)||I>=12296&&I<=12305||I>=12308&&I<=12319||I===12336)||zn["Enclosed CJK Letters and Months"](I)||zn["Ideographic Description Characters"](I)||zn.Kanbun(I)||zn.Katakana(I)&&I!==12540||!(!zn["Halfwidth and Fullwidth Forms"](I)||I===65288||I===65289||I===65293||I>=65306&&I<=65310||I===65339||I===65341||I===65343||I>=65371&&I<=65503||I===65507||I>=65512&&I<=65519)||!(!zn["Small Form Variants"](I)||I>=65112&&I<=65118||I>=65123&&I<=65126)||zn["Vertical Forms"](I)||zn["Yijing Hexagram Symbols"](I)||new RegExp("\\p{sc=Cans}","u").test(String.fromCodePoint(I))||new RegExp("\\p{sc=Hang}","u").test(String.fromCodePoint(I))||Ol.test(String.fromCodePoint(I)))))}function eu(I){return!(bl(I)||function(M){return!!(zn["Latin-1 Supplement"](M)&&(M===167||M===169||M===174||M===177||M===188||M===189||M===190||M===215||M===247)||zn["General Punctuation"](M)&&(M===8214||M===8224||M===8225||M===8240||M===8241||M===8251||M===8252||M===8258||M===8263||M===8264||M===8265||M===8273)||zn["Letterlike Symbols"](M)||zn["Number Forms"](M)||zn["Miscellaneous Technical"](M)&&(M>=8960&&M<=8967||M>=8972&&M<=8991||M>=8996&&M<=9e3||M===9003||M>=9085&&M<=9114||M>=9150&&M<=9165||M===9167||M>=9169&&M<=9179||M>=9186&&M<=9215)||zn["Control Pictures"](M)&&M!==9251||zn["Optical Character Recognition"](M)||zn["Enclosed Alphanumerics"](M)||zn["Geometric Shapes"](M)||zn["Miscellaneous Symbols"](M)&&!(M>=9754&&M<=9759)||zn["Miscellaneous Symbols and Arrows"](M)&&(M>=11026&&M<=11055||M>=11088&&M<=11097||M>=11192&&M<=11243)||zn["CJK Symbols and Punctuation"](M)||zn.Katakana(M)||zn["Private Use Area"](M)||zn["CJK Compatibility Forms"](M)||zn["Small Form Variants"](M)||zn["Halfwidth and Fullwidth Forms"](M)||M===8734||M===8756||M===8757||M>=9984&&M<=10087||M>=10102&&M<=10131||M===65532||M===65533)}(I))}let Zl=Ks(["Adlm","Arab","Armi","Avst","Chrs","Cprt","Egyp","Elym","Gara","Hatr","Hebr","Hung","Khar","Lydi","Mand","Mani","Mend","Merc","Mero","Narb","Nbat","Nkoo","Orkh","Palm","Phli","Phlp","Phnx","Prti","Rohg","Samr","Sarb","Sogo","Syrc","Thaa","Todr","Yezi"]);function Vl(I){return Zl.test(String.fromCodePoint(I))}function ja(I,M){return!(!M&&Vl(I)||I>=2304&&I<=3583||I>=3840&&I<=4255||zn.Khmer(I))}function ns(I){for(let M of I)if(Vl(M.charCodeAt(0)))return!0;return!1}let Js=new class{constructor(){this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null}setState(I){this.pluginStatus=I.pluginStatus,this.pluginURL=I.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(I){this.applyArabicShaping=I.applyArabicShaping,this.processBidirectionalText=I.processBidirectionalText,this.processStyledBidirectionalText=I.processStyledBidirectionalText}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getPluginURL(){return this.pluginURL}getRTLTextPluginStatus(){return this.pluginStatus}};class cs{constructor(M,D){this.zoom=M,D?(this.now=D.now,this.fadeDuration=D.fadeDuration,this.zoomHistory=D.zoomHistory,this.transition=D.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new va,this.transition={})}isSupportedScript(M){return function(D,X){for(let ie of D)if(!ja(ie.charCodeAt(0),X))return!1;return!0}(M,Js.getRTLTextPluginStatus()==="loaded")}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let M=this.zoom,D=M-Math.floor(M),X=this.crossFadingFactor();return M>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:D+(1-D)*X}:{fromScale:.5,toScale:1,t:1-(1-X)*D}}}class sl{constructor(M,D){this.property=M,this.value=D,this.expression=function(X,ie){if(za(X))return new Lo(X,ie);if(Qs(X)){let ve=Do(X,ie);if(ve.result==="error")throw new Error(ve.value.map(we=>`${we.key}: ${we.message}`).join(", "));return ve.value}{let ve=X;return ie.type==="color"&&typeof X=="string"?ve=Wt.parse(X):ie.type!=="padding"||typeof X!="number"&&!Array.isArray(X)?ie.type==="variableAnchorOffsetCollection"&&Array.isArray(X)&&(ve=jr.parse(X)):ve=Ir.parse(X),{kind:"constant",evaluate:()=>ve}}}(D===void 0?M.specification.default:D,M.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(M,D,X){return this.property.possiblyEvaluate(this,M,D,X)}}class ll{constructor(M){this.property=M,this.value=new sl(M,void 0)}transitioned(M,D){return new zl(this.property,this.value,D,L({},M.transition,this.transition),M.now)}untransitioned(){return new zl(this.property,this.value,null,{},0)}}class il{constructor(M){this._properties=M,this._values=Object.create(M.defaultTransitionablePropertyValues)}getValue(M){return m(this._values[M].value.value)}setValue(M,D){Object.prototype.hasOwnProperty.call(this._values,M)||(this._values[M]=new ll(this._values[M].property)),this._values[M].value=new sl(this._values[M].property,D===null?void 0:m(D))}getTransition(M){return m(this._values[M].transition)}setTransition(M,D){Object.prototype.hasOwnProperty.call(this._values,M)||(this._values[M]=new ll(this._values[M].property)),this._values[M].transition=m(D)||void 0}serialize(){let M={};for(let D of Object.keys(this._values)){let X=this.getValue(D);X!==void 0&&(M[D]=X);let ie=this.getTransition(D);ie!==void 0&&(M[`${D}-transition`]=ie)}return M}transitioned(M,D){let X=new Ml(this._properties);for(let ie of Object.keys(this._values))X._values[ie]=this._values[ie].transitioned(M,D._values[ie]);return X}untransitioned(){let M=new Ml(this._properties);for(let D of Object.keys(this._values))M._values[D]=this._values[D].untransitioned();return M}}class zl{constructor(M,D,X,ie,ve){this.property=M,this.value=D,this.begin=ve+ie.delay||0,this.end=this.begin+ie.duration||0,M.specification.transition&&(ie.delay||ie.duration)&&(this.prior=X)}possiblyEvaluate(M,D,X){let ie=M.now||0,ve=this.value.possiblyEvaluate(M,D,X),we=this.prior;if(we){if(ie>this.end)return this.prior=null,ve;if(this.value.isDataDriven())return this.prior=null,ve;if(ie=1)return 1;let Mt=ut*ut,$t=Mt*ut;return 4*(ut<.5?$t:3*(ut-Mt)+$t-.75)}(We))}}return ve}}class Ml{constructor(M){this._properties=M,this._values=Object.create(M.defaultTransitioningPropertyValues)}possiblyEvaluate(M,D,X){let ie=new Ll(this._properties);for(let ve of Object.keys(this._values))ie._values[ve]=this._values[ve].possiblyEvaluate(M,D,X);return ie}hasTransition(){for(let M of Object.keys(this._values))if(this._values[M].prior)return!0;return!1}}class Rl{constructor(M){this._properties=M,this._values=Object.create(M.defaultPropertyValues)}hasValue(M){return this._values[M].value!==void 0}getValue(M){return m(this._values[M].value)}setValue(M,D){this._values[M]=new sl(this._values[M].property,D===null?void 0:m(D))}serialize(){let M={};for(let D of Object.keys(this._values)){let X=this.getValue(D);X!==void 0&&(M[D]=X)}return M}possiblyEvaluate(M,D,X){let ie=new Ll(this._properties);for(let ve of Object.keys(this._values))ie._values[ve]=this._values[ve].possiblyEvaluate(M,D,X);return ie}}class Al{constructor(M,D,X){this.property=M,this.value=D,this.parameters=X}isConstant(){return this.value.kind==="constant"}constantOr(M){return this.value.kind==="constant"?this.value.value:M}evaluate(M,D,X,ie){return this.property.evaluate(this.value,this.parameters,M,D,X,ie)}}class Ll{constructor(M){this._properties=M,this._values=Object.create(M.defaultPossiblyEvaluatedValues)}get(M){return this._values[M]}}class ms{constructor(M){this.specification=M}possiblyEvaluate(M,D){if(M.isDataDriven())throw new Error("Value should not be data driven");return M.expression.evaluate(D)}interpolate(M,D,X){let ie=ka[this.specification.type];return ie?ie(M,D,X):M}}class Os{constructor(M,D){this.specification=M,this.overrides=D}possiblyEvaluate(M,D,X,ie){return new Al(this,M.expression.kind==="constant"||M.expression.kind==="camera"?{kind:"constant",value:M.expression.evaluate(D,null,{},X,ie)}:M.expression,D)}interpolate(M,D,X){if(M.value.kind!=="constant"||D.value.kind!=="constant")return M;if(M.value.value===void 0||D.value.value===void 0)return new Al(this,{kind:"constant",value:void 0},M.parameters);let ie=ka[this.specification.type];if(ie){let ve=ie(M.value.value,D.value.value,X);return new Al(this,{kind:"constant",value:ve},M.parameters)}return M}evaluate(M,D,X,ie,ve,we){return M.kind==="constant"?M.value:M.evaluate(D,X,ie,ve,we)}}class Xl extends Os{possiblyEvaluate(M,D,X,ie){if(M.value===void 0)return new Al(this,{kind:"constant",value:void 0},D);if(M.expression.kind==="constant"){let ve=M.expression.evaluate(D,null,{},X,ie),we=M.property.specification.type==="resolvedImage"&&typeof ve!="string"?ve.name:ve,We=this._calculate(we,we,we,D);return new Al(this,{kind:"constant",value:We},D)}if(M.expression.kind==="camera"){let ve=this._calculate(M.expression.evaluate({zoom:D.zoom-1}),M.expression.evaluate({zoom:D.zoom}),M.expression.evaluate({zoom:D.zoom+1}),D);return new Al(this,{kind:"constant",value:ve},D)}return new Al(this,M.expression,D)}evaluate(M,D,X,ie,ve,we){if(M.kind==="source"){let We=M.evaluate(D,X,ie,ve,we);return this._calculate(We,We,We,D)}return M.kind==="composite"?this._calculate(M.evaluate({zoom:Math.floor(D.zoom)-1},X,ie),M.evaluate({zoom:Math.floor(D.zoom)},X,ie),M.evaluate({zoom:Math.floor(D.zoom)+1},X,ie),D):M.value}_calculate(M,D,X,ie){return ie.zoom>ie.zoomHistory.lastIntegerZoom?{from:M,to:D}:{from:X,to:D}}interpolate(M){return M}}class Gl{constructor(M){this.specification=M}possiblyEvaluate(M,D,X,ie){if(M.value!==void 0){if(M.expression.kind==="constant"){let ve=M.expression.evaluate(D,null,{},X,ie);return this._calculate(ve,ve,ve,D)}return this._calculate(M.expression.evaluate(new cs(Math.floor(D.zoom-1),D)),M.expression.evaluate(new cs(Math.floor(D.zoom),D)),M.expression.evaluate(new cs(Math.floor(D.zoom+1),D)),D)}}_calculate(M,D,X,ie){return ie.zoom>ie.zoomHistory.lastIntegerZoom?{from:M,to:D}:{from:X,to:D}}interpolate(M){return M}}class Ul{constructor(M){this.specification=M}possiblyEvaluate(M,D,X,ie){return!!M.expression.evaluate(D,null,{},X,ie)}interpolate(){return!1}}class le{constructor(M){this.properties=M,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let D in M){let X=M[D];X.specification.overridable&&this.overridableProperties.push(D);let ie=this.defaultPropertyValues[D]=new sl(X,void 0),ve=this.defaultTransitionablePropertyValues[D]=new ll(X);this.defaultTransitioningPropertyValues[D]=ve.untransitioned(),this.defaultPossiblyEvaluatedValues[D]=ie.possiblyEvaluate({})}}}Si("DataDrivenProperty",Os),Si("DataConstantProperty",ms),Si("CrossFadedDataDrivenProperty",Xl),Si("CrossFadedProperty",Gl),Si("ColorRampProperty",Ul);let w="-transition";class q extends Ve{constructor(M,D){if(super(),this.id=M.id,this.type=M.type,this._featureFilter={filter:()=>!0,needGeometry:!1},M.type!=="custom"&&(this.metadata=M.metadata,this.minzoom=M.minzoom,this.maxzoom=M.maxzoom,M.type!=="background"&&(this.source=M.source,this.sourceLayer=M["source-layer"],this.filter=M.filter),D.layout&&(this._unevaluatedLayout=new Rl(D.layout)),D.paint)){this._transitionablePaint=new il(D.paint);for(let X in M.paint)this.setPaintProperty(X,M.paint[X],{validate:!1});for(let X in M.layout)this.setLayoutProperty(X,M.layout[X],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Ll(D.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(M){return M==="visibility"?this.visibility:this._unevaluatedLayout.getValue(M)}setLayoutProperty(M,D,X={}){D!=null&&this._validate(Fn,`layers.${this.id}.layout.${M}`,M,D,X)||(M!=="visibility"?this._unevaluatedLayout.setValue(M,D):this.visibility=D)}getPaintProperty(M){return M.endsWith(w)?this._transitionablePaint.getTransition(M.slice(0,-11)):this._transitionablePaint.getValue(M)}setPaintProperty(M,D,X={}){if(D!=null&&this._validate(Ji,`layers.${this.id}.paint.${M}`,M,D,X))return!1;if(M.endsWith(w))return this._transitionablePaint.setTransition(M.slice(0,-11),D||void 0),!1;{let ie=this._transitionablePaint._values[M],ve=ie.property.specification["property-type"]==="cross-faded-data-driven",we=ie.value.isDataDriven(),We=ie.value;this._transitionablePaint.setValue(M,D),this._handleSpecialPaintPropertyUpdate(M);let ut=this._transitionablePaint._values[M].value;return ut.isDataDriven()||we||ve||this._handleOverridablePaintPropertyUpdate(M,We,ut)}}_handleSpecialPaintPropertyUpdate(M){}_handleOverridablePaintPropertyUpdate(M,D,X){return!1}isHidden(M){return!!(this.minzoom&&M=this.maxzoom)||this.visibility==="none"}updateTransitions(M){this._transitioningPaint=this._transitionablePaint.transitioned(M,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(M,D){M.getCrossfadeParameters&&(this._crossfadeParameters=M.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(M,void 0,D)),this.paint=this._transitioningPaint.possiblyEvaluate(M,void 0,D)}serialize(){let M={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(M.layout=M.layout||{},M.layout.visibility=this.visibility),S(M,(D,X)=>!(D===void 0||X==="layout"&&!Object.keys(D).length||X==="paint"&&!Object.keys(D).length))}_validate(M,D,X,ie,ve={}){return(!ve||ve.validate!==!1)&&Pi(this,M.call(gi,{key:D,layerType:this.type,objectKey:X,value:ie,styleSpec:ce,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let M in this.paint._values){let D=this.paint.get(M);if(D instanceof Al&&ln(D.property.specification)&&(D.value.kind==="source"||D.value.kind==="composite")&&D.value.isStateDependent)return!0}return!1}}let Q={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class ee{constructor(M,D){this._structArray=M,this._pos1=D*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class ue{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(M,D){return M._trim(),D&&(M.isTransferred=!0,D.push(M.arrayBuffer)),{length:M.length,arrayBuffer:M.arrayBuffer}}static deserialize(M){let D=Object.create(this.prototype);return D.arrayBuffer=M.arrayBuffer,D.length=M.length,D.capacity=M.arrayBuffer.byteLength/D.bytesPerElement,D._refreshViews(),D}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(M){this.reserve(M),this.length=M}reserve(M){if(M>this.capacity){this.capacity=Math.max(M,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let D=this.uint8;this._refreshViews(),D&&this.uint8.set(D)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function Ge(I,M=1){let D=0,X=0;return{members:I.map(ie=>{let ve=Q[ie.type].BYTES_PER_ELEMENT,we=D=et(D,Math.max(M,ve)),We=ie.components||1;return X=Math.max(X,ve),D+=ve*We,{name:ie.name,type:ie.type,components:We,offset:we}}),size:et(D,Math.max(X,M)),alignment:M}}function et(I,M){return Math.ceil(I/M)*M}class mt extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(M,D){let X=this.length;return this.resize(X+1),this.emplace(X,M,D)}emplace(M,D,X){let ie=2*M;return this.int16[ie+0]=D,this.int16[ie+1]=X,M}}mt.prototype.bytesPerElement=4,Si("StructArrayLayout2i4",mt);class Ft extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(M,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,M,D,X)}emplace(M,D,X,ie){let ve=3*M;return this.int16[ve+0]=D,this.int16[ve+1]=X,this.int16[ve+2]=ie,M}}Ft.prototype.bytesPerElement=6,Si("StructArrayLayout3i6",Ft);class ir extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(M,D,X,ie){let ve=this.length;return this.resize(ve+1),this.emplace(ve,M,D,X,ie)}emplace(M,D,X,ie,ve){let we=4*M;return this.int16[we+0]=D,this.int16[we+1]=X,this.int16[we+2]=ie,this.int16[we+3]=ve,M}}ir.prototype.bytesPerElement=8,Si("StructArrayLayout4i8",ir);class or extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(M,D,X,ie,ve,we){let We=this.length;return this.resize(We+1),this.emplace(We,M,D,X,ie,ve,we)}emplace(M,D,X,ie,ve,we,We){let ut=6*M;return this.int16[ut+0]=D,this.int16[ut+1]=X,this.int16[ut+2]=ie,this.int16[ut+3]=ve,this.int16[ut+4]=we,this.int16[ut+5]=We,M}}or.prototype.bytesPerElement=12,Si("StructArrayLayout2i4i12",or);class kr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(M,D,X,ie,ve,we){let We=this.length;return this.resize(We+1),this.emplace(We,M,D,X,ie,ve,we)}emplace(M,D,X,ie,ve,we,We){let ut=4*M,Mt=8*M;return this.int16[ut+0]=D,this.int16[ut+1]=X,this.uint8[Mt+4]=ie,this.uint8[Mt+5]=ve,this.uint8[Mt+6]=we,this.uint8[Mt+7]=We,M}}kr.prototype.bytesPerElement=8,Si("StructArrayLayout2i4ub8",kr);class Vr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(M,D){let X=this.length;return this.resize(X+1),this.emplace(X,M,D)}emplace(M,D,X){let ie=2*M;return this.float32[ie+0]=D,this.float32[ie+1]=X,M}}Vr.prototype.bytesPerElement=8,Si("StructArrayLayout2f8",Vr);class he extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(M,D,X,ie,ve,we,We,ut,Mt,$t){let vr=this.length;return this.resize(vr+1),this.emplace(vr,M,D,X,ie,ve,we,We,ut,Mt,$t)}emplace(M,D,X,ie,ve,we,We,ut,Mt,$t,vr){let Sr=10*M;return this.uint16[Sr+0]=D,this.uint16[Sr+1]=X,this.uint16[Sr+2]=ie,this.uint16[Sr+3]=ve,this.uint16[Sr+4]=we,this.uint16[Sr+5]=We,this.uint16[Sr+6]=ut,this.uint16[Sr+7]=Mt,this.uint16[Sr+8]=$t,this.uint16[Sr+9]=vr,M}}he.prototype.bytesPerElement=20,Si("StructArrayLayout10ui20",he);class Se extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(M,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr){let Br=this.length;return this.resize(Br+1),this.emplace(Br,M,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr)}emplace(M,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br){let Jr=12*M;return this.int16[Jr+0]=D,this.int16[Jr+1]=X,this.int16[Jr+2]=ie,this.int16[Jr+3]=ve,this.uint16[Jr+4]=we,this.uint16[Jr+5]=We,this.uint16[Jr+6]=ut,this.uint16[Jr+7]=Mt,this.int16[Jr+8]=$t,this.int16[Jr+9]=vr,this.int16[Jr+10]=Sr,this.int16[Jr+11]=Br,M}}Se.prototype.bytesPerElement=24,Si("StructArrayLayout4i4ui4i24",Se);class qe extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(M,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,M,D,X)}emplace(M,D,X,ie){let ve=3*M;return this.float32[ve+0]=D,this.float32[ve+1]=X,this.float32[ve+2]=ie,M}}qe.prototype.bytesPerElement=12,Si("StructArrayLayout3f12",qe);class He extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(M){let D=this.length;return this.resize(D+1),this.emplace(D,M)}emplace(M,D){return this.uint32[1*M+0]=D,M}}He.prototype.bytesPerElement=4,Si("StructArrayLayout1ul4",He);class lt extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(M,D,X,ie,ve,we,We,ut,Mt){let $t=this.length;return this.resize($t+1),this.emplace($t,M,D,X,ie,ve,we,We,ut,Mt)}emplace(M,D,X,ie,ve,we,We,ut,Mt,$t){let vr=10*M,Sr=5*M;return this.int16[vr+0]=D,this.int16[vr+1]=X,this.int16[vr+2]=ie,this.int16[vr+3]=ve,this.int16[vr+4]=we,this.int16[vr+5]=We,this.uint32[Sr+3]=ut,this.uint16[vr+8]=Mt,this.uint16[vr+9]=$t,M}}lt.prototype.bytesPerElement=20,Si("StructArrayLayout6i1ul2ui20",lt);class tt extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(M,D,X,ie,ve,we){let We=this.length;return this.resize(We+1),this.emplace(We,M,D,X,ie,ve,we)}emplace(M,D,X,ie,ve,we,We){let ut=6*M;return this.int16[ut+0]=D,this.int16[ut+1]=X,this.int16[ut+2]=ie,this.int16[ut+3]=ve,this.int16[ut+4]=we,this.int16[ut+5]=We,M}}tt.prototype.bytesPerElement=12,Si("StructArrayLayout2i2i2i12",tt);class pt extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(M,D,X,ie,ve){let we=this.length;return this.resize(we+1),this.emplace(we,M,D,X,ie,ve)}emplace(M,D,X,ie,ve,we){let We=4*M,ut=8*M;return this.float32[We+0]=D,this.float32[We+1]=X,this.float32[We+2]=ie,this.int16[ut+6]=ve,this.int16[ut+7]=we,M}}pt.prototype.bytesPerElement=16,Si("StructArrayLayout2f1f2i16",pt);class Ht extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(M,D,X,ie,ve,we){let We=this.length;return this.resize(We+1),this.emplace(We,M,D,X,ie,ve,we)}emplace(M,D,X,ie,ve,we,We){let ut=16*M,Mt=4*M,$t=8*M;return this.uint8[ut+0]=D,this.uint8[ut+1]=X,this.float32[Mt+1]=ie,this.float32[Mt+2]=ve,this.int16[$t+6]=we,this.int16[$t+7]=We,M}}Ht.prototype.bytesPerElement=16,Si("StructArrayLayout2ub2f2i16",Ht);class nr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(M,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,M,D,X)}emplace(M,D,X,ie){let ve=3*M;return this.uint16[ve+0]=D,this.uint16[ve+1]=X,this.uint16[ve+2]=ie,M}}nr.prototype.bytesPerElement=6,Si("StructArrayLayout3ui6",nr);class fr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(M,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr,li,Hi,cn){let Za=this.length;return this.resize(Za+1),this.emplace(Za,M,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr,li,Hi,cn)}emplace(M,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr,li,Hi,cn,Za){let Rn=24*M,La=12*M,So=48*M;return this.int16[Rn+0]=D,this.int16[Rn+1]=X,this.uint16[Rn+2]=ie,this.uint16[Rn+3]=ve,this.uint32[La+2]=we,this.uint32[La+3]=We,this.uint32[La+4]=ut,this.uint16[Rn+10]=Mt,this.uint16[Rn+11]=$t,this.uint16[Rn+12]=vr,this.float32[La+7]=Sr,this.float32[La+8]=Br,this.uint8[So+36]=Jr,this.uint8[So+37]=li,this.uint8[So+38]=Hi,this.uint32[La+10]=cn,this.int16[Rn+22]=Za,M}}fr.prototype.bytesPerElement=48,Si("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",fr);class Ar extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(M,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr,li,Hi,cn,Za,Rn,La,So,kl,mu,Iu,su,yl,Eu,bu){let _u=this.length;return this.resize(_u+1),this.emplace(_u,M,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr,li,Hi,cn,Za,Rn,La,So,kl,mu,Iu,su,yl,Eu,bu)}emplace(M,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr,li,Hi,cn,Za,Rn,La,So,kl,mu,Iu,su,yl,Eu,bu,_u){let Xs=32*M,Lu=16*M;return this.int16[Xs+0]=D,this.int16[Xs+1]=X,this.int16[Xs+2]=ie,this.int16[Xs+3]=ve,this.int16[Xs+4]=we,this.int16[Xs+5]=We,this.int16[Xs+6]=ut,this.int16[Xs+7]=Mt,this.uint16[Xs+8]=$t,this.uint16[Xs+9]=vr,this.uint16[Xs+10]=Sr,this.uint16[Xs+11]=Br,this.uint16[Xs+12]=Jr,this.uint16[Xs+13]=li,this.uint16[Xs+14]=Hi,this.uint16[Xs+15]=cn,this.uint16[Xs+16]=Za,this.uint16[Xs+17]=Rn,this.uint16[Xs+18]=La,this.uint16[Xs+19]=So,this.uint16[Xs+20]=kl,this.uint16[Xs+21]=mu,this.uint16[Xs+22]=Iu,this.uint32[Lu+12]=su,this.float32[Lu+13]=yl,this.float32[Lu+14]=Eu,this.uint16[Xs+30]=bu,this.uint16[Xs+31]=_u,M}}Ar.prototype.bytesPerElement=64,Si("StructArrayLayout8i15ui1ul2f2ui64",Ar);class Rr extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(M){let D=this.length;return this.resize(D+1),this.emplace(D,M)}emplace(M,D){return this.float32[1*M+0]=D,M}}Rr.prototype.bytesPerElement=4,Si("StructArrayLayout1f4",Rr);class ri extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(M,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,M,D,X)}emplace(M,D,X,ie){let ve=3*M;return this.uint16[6*M+0]=D,this.float32[ve+1]=X,this.float32[ve+2]=ie,M}}ri.prototype.bytesPerElement=12,Si("StructArrayLayout1ui2f12",ri);class si extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(M,D,X){let ie=this.length;return this.resize(ie+1),this.emplace(ie,M,D,X)}emplace(M,D,X,ie){let ve=4*M;return this.uint32[2*M+0]=D,this.uint16[ve+2]=X,this.uint16[ve+3]=ie,M}}si.prototype.bytesPerElement=8,Si("StructArrayLayout1ul2ui8",si);class Mi extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(M,D){let X=this.length;return this.resize(X+1),this.emplace(X,M,D)}emplace(M,D,X){let ie=2*M;return this.uint16[ie+0]=D,this.uint16[ie+1]=X,M}}Mi.prototype.bytesPerElement=4,Si("StructArrayLayout2ui4",Mi);class hn extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(M){let D=this.length;return this.resize(D+1),this.emplace(D,M)}emplace(M,D){return this.uint16[1*M+0]=D,M}}hn.prototype.bytesPerElement=2,Si("StructArrayLayout1ui2",hn);class Zn extends ue{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(M,D,X,ie){let ve=this.length;return this.resize(ve+1),this.emplace(ve,M,D,X,ie)}emplace(M,D,X,ie,ve){let we=4*M;return this.float32[we+0]=D,this.float32[we+1]=X,this.float32[we+2]=ie,this.float32[we+3]=ve,M}}Zn.prototype.bytesPerElement=16,Si("StructArrayLayout4f16",Zn);class Yn extends ee{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new l(this.anchorPointX,this.anchorPointY)}}Yn.prototype.size=20;class Ua extends lt{get(M){return new Yn(this,M)}}Si("CollisionBoxArray",Ua);class Fo extends ee{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(M){this._structArray.uint8[this._pos1+37]=M}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(M){this._structArray.uint8[this._pos1+38]=M}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(M){this._structArray.uint32[this._pos4+10]=M}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}Fo.prototype.size=48;class vl extends fr{get(M){return new Fo(this,M)}}Si("PlacedSymbolArray",vl);class Us extends ee{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(M){this._structArray.uint32[this._pos4+12]=M}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}Us.prototype.size=64;class ml extends Ar{get(M){return new Us(this,M)}}Si("SymbolInstanceArray",ml);class au extends Rr{getoffsetX(M){return this.float32[1*M+0]}}Si("GlyphOffsetArray",au);class Sl extends Ft{getx(M){return this.int16[3*M+0]}gety(M){return this.int16[3*M+1]}gettileUnitDistanceFromAnchor(M){return this.int16[3*M+2]}}Si("SymbolLineVertexArray",Sl);class Yl extends ee{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}Yl.prototype.size=12;class ql extends ri{get(M){return new Yl(this,M)}}Si("TextAnchorOffsetArray",ql);class ou extends ee{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}ou.prototype.size=8;class Pu extends si{get(M){return new ou(this,M)}}Si("FeatureIndexArray",Pu);class iu extends mt{}class tu extends mt{}class Wu extends mt{}class Qu extends or{}class Ju extends kr{}class ju extends Vr{}class Xu extends he{}class lf extends Se{}class xf extends qe{}class ef extends He{}class tf extends tt{}class Z extends Ht{}class se extends nr{}class ze extends Mi{}let Xe=Ge([{name:"a_pos",components:2,type:"Int16"}],4),{members:Qe}=Xe;class ot{constructor(M=[]){this.segments=M}prepareSegment(M,D,X,ie){let ve=this.segments[this.segments.length-1];return M>ot.MAX_VERTEX_ARRAY_LENGTH&&A(`Max vertices per segment is ${ot.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${M}`),(!ve||ve.vertexLength+M>ot.MAX_VERTEX_ARRAY_LENGTH||ve.sortKey!==ie)&&(ve={vertexOffset:D.length,primitiveOffset:X.length,vertexLength:0,primitiveLength:0},ie!==void 0&&(ve.sortKey=ie),this.segments.push(ve)),ve}get(){return this.segments}destroy(){for(let M of this.segments)for(let D in M.vaos)M.vaos[D].destroy()}static simpleSegment(M,D,X,ie){return new ot([{vertexOffset:M,primitiveOffset:D,vertexLength:X,primitiveLength:ie,vaos:{},sortKey:0}])}}function jt(I,M){return 256*(I=E(Math.floor(I),0,255))+E(Math.floor(M),0,255)}ot.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Si("SegmentVector",ot);let _t=Ge([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var cr={exports:{}},Cr={exports:{}};Cr.exports=function(I,M){var D,X,ie,ve,we,We,ut,Mt;for(X=I.length-(D=3&I.length),ie=M,we=3432918353,We=461845907,Mt=0;Mt>>16)*we&65535)<<16)&4294967295)<<15|ut>>>17))*We+(((ut>>>16)*We&65535)<<16)&4294967295)<<13|ie>>>19))+((5*(ie>>>16)&65535)<<16)&4294967295))+((58964+(ve>>>16)&65535)<<16);switch(ut=0,D){case 3:ut^=(255&I.charCodeAt(Mt+2))<<16;case 2:ut^=(255&I.charCodeAt(Mt+1))<<8;case 1:ie^=ut=(65535&(ut=(ut=(65535&(ut^=255&I.charCodeAt(Mt)))*we+(((ut>>>16)*we&65535)<<16)&4294967295)<<15|ut>>>17))*We+(((ut>>>16)*We&65535)<<16)&4294967295}return ie^=I.length,ie=2246822507*(65535&(ie^=ie>>>16))+((2246822507*(ie>>>16)&65535)<<16)&4294967295,ie=3266489909*(65535&(ie^=ie>>>13))+((3266489909*(ie>>>16)&65535)<<16)&4294967295,(ie^=ie>>>16)>>>0};var zr=Cr.exports,ui={exports:{}};ui.exports=function(I,M){for(var D,X=I.length,ie=M^X,ve=0;X>=4;)D=1540483477*(65535&(D=255&I.charCodeAt(ve)|(255&I.charCodeAt(++ve))<<8|(255&I.charCodeAt(++ve))<<16|(255&I.charCodeAt(++ve))<<24))+((1540483477*(D>>>16)&65535)<<16),ie=1540483477*(65535&ie)+((1540483477*(ie>>>16)&65535)<<16)^(D=1540483477*(65535&(D^=D>>>24))+((1540483477*(D>>>16)&65535)<<16)),X-=4,++ve;switch(X){case 3:ie^=(255&I.charCodeAt(ve+2))<<16;case 2:ie^=(255&I.charCodeAt(ve+1))<<8;case 1:ie=1540483477*(65535&(ie^=255&I.charCodeAt(ve)))+((1540483477*(ie>>>16)&65535)<<16)}return ie=1540483477*(65535&(ie^=ie>>>13))+((1540483477*(ie>>>16)&65535)<<16),(ie^=ie>>>15)>>>0};var $r=zr,Oi=ui.exports;cr.exports=$r,cr.exports.murmur3=$r,cr.exports.murmur2=Oi;var fn=o(cr.exports);class vi{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(M,D,X,ie){this.ids.push(zi(M)),this.positions.push(D,X,ie)}getPositions(M){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");let D=zi(M),X=0,ie=this.ids.length-1;for(;X>1;this.ids[we]>=D?ie=we:X=we+1}let ve=[];for(;this.ids[X]===D;)ve.push({index:this.positions[3*X],start:this.positions[3*X+1],end:this.positions[3*X+2]}),X++;return ve}static serialize(M,D){let X=new Float64Array(M.ids),ie=new Uint32Array(M.positions);return Xi(X,ie,0,X.length-1),D&&D.push(X.buffer,ie.buffer),{ids:X,positions:ie}}static deserialize(M){let D=new vi;return D.ids=M.ids,D.positions=M.positions,D.indexed=!0,D}}function zi(I){let M=+I;return!isNaN(M)&&M<=Number.MAX_SAFE_INTEGER?M:fn(String(I))}function Xi(I,M,D,X){for(;D>1],ve=D-1,we=X+1;for(;;){do ve++;while(I[ve]ie);if(ve>=we)break;pn(I,ve,we),pn(M,3*ve,3*we),pn(M,3*ve+1,3*we+1),pn(M,3*ve+2,3*we+2)}we-D`u_${ie}`),this.type=X}setUniform(M,D,X){M.set(X.constantOr(this.value))}getBinding(M,D,X){return this.type==="color"?new no(M,D):new bi(M,D)}}class Pl{constructor(M,D){this.uniformNames=D.map(X=>`u_${X}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(M,D){this.pixelRatioFrom=D.pixelRatio,this.pixelRatioTo=M.pixelRatio,this.patternFrom=D.tlbr,this.patternTo=M.tlbr}setUniform(M,D,X,ie){let ve=ie==="u_pattern_to"?this.patternTo:ie==="u_pattern_from"?this.patternFrom:ie==="u_pixel_ratio_to"?this.pixelRatioTo:ie==="u_pixel_ratio_from"?this.pixelRatioFrom:null;ve&&M.set(ve)}getBinding(M,D,X){return X.substr(0,9)==="u_pattern"?new xo(M,D):new bi(M,D)}}class pu{constructor(M,D,X,ie){this.expression=M,this.type=X,this.maxValue=0,this.paintVertexAttributes=D.map(ve=>({name:`a_${ve}`,type:"Float32",components:X==="color"?2:1,offset:0})),this.paintVertexArray=new ie}populatePaintArray(M,D,X,ie,ve){let we=this.paintVertexArray.length,We=this.expression.evaluate(new cs(0),D,{},ie,[],ve);this.paintVertexArray.resize(M),this._setPaintValue(we,M,We)}updatePaintArray(M,D,X,ie){let ve=this.expression.evaluate({zoom:0},X,ie);this._setPaintValue(M,D,ve)}_setPaintValue(M,D,X){if(this.type==="color"){let ie=js(X);for(let ve=M;ve`u_${We}_t`),this.type=X,this.useIntegerZoom=ie,this.zoom=ve,this.maxValue=0,this.paintVertexAttributes=D.map(We=>({name:`a_${We}`,type:"Float32",components:X==="color"?4:2,offset:0})),this.paintVertexArray=new we}populatePaintArray(M,D,X,ie,ve){let we=this.expression.evaluate(new cs(this.zoom),D,{},ie,[],ve),We=this.expression.evaluate(new cs(this.zoom+1),D,{},ie,[],ve),ut=this.paintVertexArray.length;this.paintVertexArray.resize(M),this._setPaintValue(ut,M,we,We)}updatePaintArray(M,D,X,ie){let ve=this.expression.evaluate({zoom:this.zoom},X,ie),we=this.expression.evaluate({zoom:this.zoom+1},X,ie);this._setPaintValue(M,D,ve,we)}_setPaintValue(M,D,X,ie){if(this.type==="color"){let ve=js(X),we=js(ie);for(let We=M;We`#define HAS_UNIFORM_${ie}`))}return M}getBinderAttributes(){let M=[];for(let D in this.binders){let X=this.binders[D];if(X instanceof pu||X instanceof Il)for(let ie=0;ie!0){this.programConfigurations={};for(let ie of M)this.programConfigurations[ie.id]=new Zu(ie,D,X);this.needsUpload=!1,this._featureMap=new vi,this._bufferOffset=0}populatePaintArrays(M,D,X,ie,ve,we){for(let We in this.programConfigurations)this.programConfigurations[We].populatePaintArrays(M,D,ie,ve,we);D.id!==void 0&&this._featureMap.add(D.id,X,this._bufferOffset,M),this._bufferOffset=M,this.needsUpload=!0}updatePaintArrays(M,D,X,ie){for(let ve of X)this.needsUpload=this.programConfigurations[ve.id].updatePaintArrays(M,this._featureMap,D,ve,ie)||this.needsUpload}get(M){return this.programConfigurations[M]}upload(M){if(this.needsUpload){for(let D in this.programConfigurations)this.programConfigurations[D].upload(M);this.needsUpload=!1}}destroy(){for(let M in this.programConfigurations)this.programConfigurations[M].destroy()}}function rf(I,M){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[I]||[I.replace(`${M}-`,"").replace(/-/g,"_")]}function ds(I,M,D){let X={color:{source:Vr,composite:Zn},number:{source:Rr,composite:Vr}},ie=function(ve){return{"line-pattern":{source:Xu,composite:Xu},"fill-pattern":{source:Xu,composite:Xu},"fill-extrusion-pattern":{source:Xu,composite:Xu}}[ve]}(I);return ie&&ie[D]||X[M][D]}Si("ConstantBinder",El),Si("CrossFadedConstantBinder",Pl),Si("SourceExpressionBinder",pu),Si("CrossFadedCompositeBinder",fu),Si("CompositeExpressionBinder",Il),Si("ProgramConfiguration",Zu,{omit:["_buffers"]}),Si("ProgramConfigurationSet",Gu);let Wl=8192,Au=Math.pow(2,14)-1,Tu=-Au-1;function uf(I){let M=Wl/I.extent,D=I.loadGeometry();for(let X=0;Xwe.x+1||utwe.y+1)&&A("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return D}function df(I,M){return{type:I.type,id:I.id,properties:I.properties,geometry:M?uf(I):[]}}function Ef(I,M,D,X,ie){I.emplaceBack(2*M+(X+1)/2,2*D+(ie+1)/2)}class vf{constructor(M){this.zoom=M.zoom,this.overscaling=M.overscaling,this.layers=M.layers,this.layerIds=this.layers.map(D=>D.id),this.index=M.index,this.hasPattern=!1,this.layoutVertexArray=new tu,this.indexArray=new se,this.segments=new ot,this.programConfigurations=new Gu(M.layers,M.zoom),this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(M,D,X){let ie=this.layers[0],ve=[],we=null,We=!1;ie.type==="circle"&&(we=ie.layout.get("circle-sort-key"),We=!we.isConstant());for(let{feature:ut,id:Mt,index:$t,sourceLayerIndex:vr}of M){let Sr=this.layers[0]._featureFilter.needGeometry,Br=df(ut,Sr);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Br,X))continue;let Jr=We?we.evaluate(Br,{},X):void 0,li={id:Mt,properties:ut.properties,type:ut.type,sourceLayerIndex:vr,index:$t,geometry:Sr?Br.geometry:uf(ut),patterns:{},sortKey:Jr};ve.push(li)}We&&ve.sort((ut,Mt)=>ut.sortKey-Mt.sortKey);for(let ut of ve){let{geometry:Mt,index:$t,sourceLayerIndex:vr}=ut,Sr=M[$t].feature;this.addFeature(ut,Mt,$t,X),D.featureIndex.insert(Sr,Mt,$t,vr,this.index)}}update(M,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(M,D,this.stateDependentLayers,X)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(M){this.uploaded||(this.layoutVertexBuffer=M.createVertexBuffer(this.layoutVertexArray,Qe),this.indexBuffer=M.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(M),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(M,D,X,ie){for(let ve of D)for(let we of ve){let We=we.x,ut=we.y;if(We<0||We>=Wl||ut<0||ut>=Wl)continue;let Mt=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,M.sortKey),$t=Mt.vertexLength;Ef(this.layoutVertexArray,We,ut,-1,-1),Ef(this.layoutVertexArray,We,ut,1,-1),Ef(this.layoutVertexArray,We,ut,1,1),Ef(this.layoutVertexArray,We,ut,-1,1),this.indexArray.emplaceBack($t,$t+1,$t+2),this.indexArray.emplaceBack($t,$t+3,$t+2),Mt.vertexLength+=4,Mt.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,M,X,{},ie)}}function fc(I,M){for(let D=0;D1){if(Qr(I,M))return!0;for(let X=0;X1?D:D.sub(M)._mult(ie)._add(M))}function on(I,M){let D,X,ie,ve=!1;for(let we=0;weM.y!=ie.y>M.y&&M.x<(ie.x-X.x)*(M.y-X.y)/(ie.y-X.y)+X.x&&(ve=!ve)}return ve}function Bn(I,M){let D=!1;for(let X=0,ie=I.length-1;XM.y!=we.y>M.y&&M.x<(we.x-ve.x)*(M.y-ve.y)/(we.y-ve.y)+ve.x&&(D=!D)}return D}function Ln(I,M,D){let X=D[0],ie=D[2];if(I.xie.x&&M.x>ie.x||I.yie.y&&M.y>ie.y)return!1;let ve=B(I,M,D[0]);return ve!==B(I,M,D[1])||ve!==B(I,M,D[2])||ve!==B(I,M,D[3])}function wn(I,M,D){let X=M.paint.get(I).value;return X.kind==="constant"?X.value:D.programConfigurations.get(M.id).getMaxValue(I)}function Ls(I){return Math.sqrt(I[0]*I[0]+I[1]*I[1])}function ua(I,M,D,X,ie){if(!M[0]&&!M[1])return I;let ve=l.convert(M)._mult(ie);D==="viewport"&&ve._rotate(-X);let we=[];for(let We=0;WeUi(Hi,li))}(Mt,ut),Br=vr?$t*We:$t;for(let Jr of ie)for(let li of Jr){let Hi=vr?li:Ui(li,ut),cn=Br,Za=hs([],[li.x,li.y,0,1],ut);if(this.paint.get("circle-pitch-scale")==="viewport"&&this.paint.get("circle-pitch-alignment")==="map"?cn*=Za[3]/we.cameraToCenterDistance:this.paint.get("circle-pitch-scale")==="map"&&this.paint.get("circle-pitch-alignment")==="viewport"&&(cn*=we.cameraToCenterDistance/Za[3]),Be(Sr,Hi,cn))return!0}return!1}}function Ui(I,M){let D=hs([],[I.x,I.y,0,1],M);return new l(D[0]/D[3],D[1]/D[3])}class ro extends vf{}let na;Si("HeatmapBucket",ro,{omit:["layers"]});var On={get paint(){return na=na||new le({"heatmap-radius":new Os(ce.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Os(ce.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new ms(ce.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Ul(ce.paint_heatmap["heatmap-color"]),"heatmap-opacity":new ms(ce.paint_heatmap["heatmap-opacity"])})}};function In(I,{width:M,height:D},X,ie){if(ie){if(ie instanceof Uint8ClampedArray)ie=new Uint8Array(ie.buffer);else if(ie.length!==M*D*X)throw new RangeError(`mismatched image size. expected: ${ie.length} but got: ${M*D*X}`)}else ie=new Uint8Array(M*D*X);return I.width=M,I.height=D,I.data=ie,I}function Va(I,{width:M,height:D},X){if(M===I.width&&D===I.height)return;let ie=In({},{width:M,height:D},X);_s(I,ie,{x:0,y:0},{x:0,y:0},{width:Math.min(I.width,M),height:Math.min(I.height,D)},X),I.width=M,I.height=D,I.data=ie.data}function _s(I,M,D,X,ie,ve){if(ie.width===0||ie.height===0)return M;if(ie.width>I.width||ie.height>I.height||D.x>I.width-ie.width||D.y>I.height-ie.height)throw new RangeError("out of range source coordinates for image copy");if(ie.width>M.width||ie.height>M.height||X.x>M.width-ie.width||X.y>M.height-ie.height)throw new RangeError("out of range destination coordinates for image copy");let we=I.data,We=M.data;if(we===We)throw new Error("srcData equals dstData, so image is already copied");for(let ut=0;ut{M[I.evaluationKey]=ut;let Mt=I.expression.evaluate(M);ie.data[we+We+0]=Math.floor(255*Mt.r/Mt.a),ie.data[we+We+1]=Math.floor(255*Mt.g/Mt.a),ie.data[we+We+2]=Math.floor(255*Mt.b/Mt.a),ie.data[we+We+3]=Math.floor(255*Mt.a)};if(I.clips)for(let we=0,We=0;we80*D){We=1/0,ut=1/0;let $t=-1/0,vr=-1/0;for(let Sr=D;Sr$t&&($t=Br),Jr>vr&&(vr=Jr)}Mt=Math.max($t-We,vr-ut),Mt=Mt!==0?32767/Mt:0}return Lf(ve,we,D,We,ut,Mt,0),we}function _f(I,M,D,X,ie){let ve;if(ie===function(we,We,ut,Mt){let $t=0;for(let vr=We,Sr=ut-Mt;vr0)for(let we=M;we=M;we-=X)ve=lr(we/X|0,I[we],I[we+1],ve);return ve&&ne(ve,ve.next)&&(Ke(ve),ve=ve.next),ve}function bf(I,M){if(!I)return I;M||(M=I);let D,X=I;do if(D=!1,X.steiner||!ne(X,X.next)&&_e(X.prev,X,X.next)!==0)X=X.next;else{if(Ke(X),X=M=X.prev,X===X.next)break;D=!0}while(D||X!==M);return M}function Lf(I,M,D,X,ie,ve,we){if(!I)return;!we&&ve&&function(ut,Mt,$t,vr){let Sr=ut;do Sr.z===0&&(Sr.z=R(Sr.x,Sr.y,Mt,$t,vr)),Sr.prevZ=Sr.prev,Sr.nextZ=Sr.next,Sr=Sr.next;while(Sr!==ut);Sr.prevZ.nextZ=null,Sr.prevZ=null,function(Br){let Jr,li=1;do{let Hi,cn=Br;Br=null;let Za=null;for(Jr=0;cn;){Jr++;let Rn=cn,La=0;for(let kl=0;kl0||So>0&&Rn;)La!==0&&(So===0||!Rn||cn.z<=Rn.z)?(Hi=cn,cn=cn.nextZ,La--):(Hi=Rn,Rn=Rn.nextZ,So--),Za?Za.nextZ=Hi:Br=Hi,Hi.prevZ=Za,Za=Hi;cn=Rn}Za.nextZ=null,li*=2}while(Jr>1)}(Sr)}(I,X,ie,ve);let We=I;for(;I.prev!==I.next;){let ut=I.prev,Mt=I.next;if(ve?hf(I,X,ie,ve):Hu(I))M.push(ut.i,I.i,Mt.i),Ke(I),I=Mt.next,We=Mt.next;else if((I=Mt)===We){we?we===1?Lf(I=yf(bf(I),M),M,D,X,ie,ve,2):we===2&&Fl(I,M,D,X,ie,ve):Lf(bf(I),M,D,X,ie,ve,1);break}}}function Hu(I){let M=I.prev,D=I,X=I.next;if(_e(M,D,X)>=0)return!1;let ie=M.x,ve=D.x,we=X.x,We=M.y,ut=D.y,Mt=X.y,$t=ieve?ie>we?ie:we:ve>we?ve:we,Br=We>ut?We>Mt?We:Mt:ut>Mt?ut:Mt,Jr=X.next;for(;Jr!==M;){if(Jr.x>=$t&&Jr.x<=Sr&&Jr.y>=vr&&Jr.y<=Br&&O(ie,We,ve,ut,we,Mt,Jr.x,Jr.y)&&_e(Jr.prev,Jr,Jr.next)>=0)return!1;Jr=Jr.next}return!0}function hf(I,M,D,X){let ie=I.prev,ve=I,we=I.next;if(_e(ie,ve,we)>=0)return!1;let We=ie.x,ut=ve.x,Mt=we.x,$t=ie.y,vr=ve.y,Sr=we.y,Br=Weut?We>Mt?We:Mt:ut>Mt?ut:Mt,Hi=$t>vr?$t>Sr?$t:Sr:vr>Sr?vr:Sr,cn=R(Br,Jr,M,D,X),Za=R(li,Hi,M,D,X),Rn=I.prevZ,La=I.nextZ;for(;Rn&&Rn.z>=cn&&La&&La.z<=Za;){if(Rn.x>=Br&&Rn.x<=li&&Rn.y>=Jr&&Rn.y<=Hi&&Rn!==ie&&Rn!==we&&O(We,$t,ut,vr,Mt,Sr,Rn.x,Rn.y)&&_e(Rn.prev,Rn,Rn.next)>=0||(Rn=Rn.prevZ,La.x>=Br&&La.x<=li&&La.y>=Jr&&La.y<=Hi&&La!==ie&&La!==we&&O(We,$t,ut,vr,Mt,Sr,La.x,La.y)&&_e(La.prev,La,La.next)>=0))return!1;La=La.nextZ}for(;Rn&&Rn.z>=cn;){if(Rn.x>=Br&&Rn.x<=li&&Rn.y>=Jr&&Rn.y<=Hi&&Rn!==ie&&Rn!==we&&O(We,$t,ut,vr,Mt,Sr,Rn.x,Rn.y)&&_e(Rn.prev,Rn,Rn.next)>=0)return!1;Rn=Rn.prevZ}for(;La&&La.z<=Za;){if(La.x>=Br&&La.x<=li&&La.y>=Jr&&La.y<=Hi&&La!==ie&&La!==we&&O(We,$t,ut,vr,Mt,Sr,La.x,La.y)&&_e(La.prev,La,La.next)>=0)return!1;La=La.nextZ}return!0}function yf(I,M){let D=I;do{let X=D.prev,ie=D.next.next;!ne(X,ie)&&Pe(X,D,D.next,ie)&&dr(X,ie)&&dr(ie,X)&&(M.push(X.i,D.i,ie.i),Ke(D),Ke(D.next),D=I=ie),D=D.next}while(D!==I);return bf(D)}function Fl(I,M,D,X,ie,ve){let we=I;do{let We=we.next.next;for(;We!==we.prev;){if(we.i!==We.i&&K(we,We)){let ut=Er(we,We);return we=bf(we,we.next),ut=bf(ut,ut.next),Lf(we,M,D,X,ie,ve,0),void Lf(ut,M,D,X,ie,ve,0)}We=We.next}we=we.next}while(we!==I)}function wf(I,M){return I.x-M.x}function cu(I,M){let D=function(ie,ve){let we=ve,We=ie.x,ut=ie.y,Mt,$t=-1/0;do{if(ut<=we.y&&ut>=we.next.y&&we.next.y!==we.y){let li=we.x+(ut-we.y)*(we.next.x-we.x)/(we.next.y-we.y);if(li<=We&&li>$t&&($t=li,Mt=we.x=we.x&&we.x>=Sr&&We!==we.x&&O(utMt.x||we.x===Mt.x&&Y(Mt,we)))&&(Mt=we,Jr=li)}we=we.next}while(we!==vr);return Mt}(I,M);if(!D)return M;let X=Er(D,I);return bf(X,X.next),bf(D,D.next)}function Y(I,M){return _e(I.prev,I,M.prev)<0&&_e(M.next,I,I.next)<0}function R(I,M,D,X,ie){return(I=1431655765&((I=858993459&((I=252645135&((I=16711935&((I=(I-D)*ie|0)|I<<8))|I<<4))|I<<2))|I<<1))|(M=1431655765&((M=858993459&((M=252645135&((M=16711935&((M=(M-X)*ie|0)|M<<8))|M<<4))|M<<2))|M<<1))<<1}function J(I){let M=I,D=I;do(M.x=(I-we)*(ve-We)&&(I-we)*(X-We)>=(D-we)*(M-We)&&(D-we)*(ve-We)>=(ie-we)*(X-We)}function K(I,M){return I.next.i!==M.i&&I.prev.i!==M.i&&!function(D,X){let ie=D;do{if(ie.i!==D.i&&ie.next.i!==D.i&&ie.i!==X.i&&ie.next.i!==X.i&&Pe(ie,ie.next,D,X))return!0;ie=ie.next}while(ie!==D);return!1}(I,M)&&(dr(I,M)&&dr(M,I)&&function(D,X){let ie=D,ve=!1,we=(D.x+X.x)/2,We=(D.y+X.y)/2;do ie.y>We!=ie.next.y>We&&ie.next.y!==ie.y&&we<(ie.next.x-ie.x)*(We-ie.y)/(ie.next.y-ie.y)+ie.x&&(ve=!ve),ie=ie.next;while(ie!==D);return ve}(I,M)&&(_e(I.prev,I,M.prev)||_e(I,M.prev,M))||ne(I,M)&&_e(I.prev,I,I.next)>0&&_e(M.prev,M,M.next)>0)}function _e(I,M,D){return(M.y-I.y)*(D.x-M.x)-(M.x-I.x)*(D.y-M.y)}function ne(I,M){return I.x===M.x&&I.y===M.y}function Pe(I,M,D,X){let ie=Ct(_e(I,M,D)),ve=Ct(_e(I,M,X)),we=Ct(_e(D,X,I)),We=Ct(_e(D,X,M));return ie!==ve&&we!==We||!(ie!==0||!Ze(I,D,M))||!(ve!==0||!Ze(I,X,M))||!(we!==0||!Ze(D,I,X))||!(We!==0||!Ze(D,M,X))}function Ze(I,M,D){return M.x<=Math.max(I.x,D.x)&&M.x>=Math.min(I.x,D.x)&&M.y<=Math.max(I.y,D.y)&&M.y>=Math.min(I.y,D.y)}function Ct(I){return I>0?1:I<0?-1:0}function dr(I,M){return _e(I.prev,I,I.next)<0?_e(I,M,I.next)>=0&&_e(I,I.prev,M)>=0:_e(I,M,I.prev)<0||_e(I,I.next,M)<0}function Er(I,M){let D=ht(I.i,I.x,I.y),X=ht(M.i,M.x,M.y),ie=I.next,ve=M.prev;return I.next=M,M.prev=I,D.next=ie,ie.prev=D,X.next=D,D.prev=X,ve.next=X,X.prev=ve,X}function lr(I,M,D,X){let ie=ht(I,M,D);return X?(ie.next=X.next,ie.prev=X,X.next.prev=ie,X.next=ie):(ie.prev=ie,ie.next=ie),ie}function Ke(I){I.next.prev=I.prev,I.prev.next=I.next,I.prevZ&&(I.prevZ.nextZ=I.nextZ),I.nextZ&&(I.nextZ.prevZ=I.prevZ)}function ht(I,M,D){return{i:I,x:M,y:D,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function bt(I,M,D){let X=D.patternDependencies,ie=!1;for(let ve of M){let we=ve.paint.get(`${I}-pattern`);we.isConstant()||(ie=!0);let We=we.constantOr(null);We&&(ie=!0,X[We.to]=!0,X[We.from]=!0)}return ie}function Kt(I,M,D,X,ie){let ve=ie.patternDependencies;for(let we of M){let We=we.paint.get(`${I}-pattern`).value;if(We.kind!=="constant"){let ut=We.evaluate({zoom:X-1},D,{},ie.availableImages),Mt=We.evaluate({zoom:X},D,{},ie.availableImages),$t=We.evaluate({zoom:X+1},D,{},ie.availableImages);ut=ut&&ut.name?ut.name:ut,Mt=Mt&&Mt.name?Mt.name:Mt,$t=$t&&$t.name?$t.name:$t,ve[ut]=!0,ve[Mt]=!0,ve[$t]=!0,D.patterns[we.id]={min:ut,mid:Mt,max:$t}}}return D}class sr{constructor(M){this.zoom=M.zoom,this.overscaling=M.overscaling,this.layers=M.layers,this.layerIds=this.layers.map(D=>D.id),this.index=M.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Wu,this.indexArray=new se,this.indexArray2=new ze,this.programConfigurations=new Gu(M.layers,M.zoom),this.segments=new ot,this.segments2=new ot,this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(M,D,X){this.hasPattern=bt("fill",this.layers,D);let ie=this.layers[0].layout.get("fill-sort-key"),ve=!ie.isConstant(),we=[];for(let{feature:We,id:ut,index:Mt,sourceLayerIndex:$t}of M){let vr=this.layers[0]._featureFilter.needGeometry,Sr=df(We,vr);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Sr,X))continue;let Br=ve?ie.evaluate(Sr,{},X,D.availableImages):void 0,Jr={id:ut,properties:We.properties,type:We.type,sourceLayerIndex:$t,index:Mt,geometry:vr?Sr.geometry:uf(We),patterns:{},sortKey:Br};we.push(Jr)}ve&&we.sort((We,ut)=>We.sortKey-ut.sortKey);for(let We of we){let{geometry:ut,index:Mt,sourceLayerIndex:$t}=We;if(this.hasPattern){let vr=Kt("fill",this.layers,We,this.zoom,D);this.patternFeatures.push(vr)}else this.addFeature(We,ut,Mt,X,{});D.featureIndex.insert(M[Mt].feature,ut,Mt,$t,this.index)}}update(M,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(M,D,this.stateDependentLayers,X)}addFeatures(M,D,X){for(let ie of this.patternFeatures)this.addFeature(ie,ie.geometry,ie.index,D,X)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(M){this.uploaded||(this.layoutVertexBuffer=M.createVertexBuffer(this.layoutVertexArray,kf),this.indexBuffer=M.createIndexBuffer(this.indexArray),this.indexBuffer2=M.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(M),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(M,D,X,ie,ve){for(let we of Ys(D,500)){let We=0;for(let Br of we)We+=Br.length;let ut=this.segments.prepareSegment(We,this.layoutVertexArray,this.indexArray),Mt=ut.vertexLength,$t=[],vr=[];for(let Br of we){if(Br.length===0)continue;Br!==we[0]&&vr.push($t.length/2);let Jr=this.segments2.prepareSegment(Br.length,this.layoutVertexArray,this.indexArray2),li=Jr.vertexLength;this.layoutVertexArray.emplaceBack(Br[0].x,Br[0].y),this.indexArray2.emplaceBack(li+Br.length-1,li),$t.push(Br[0].x),$t.push(Br[0].y);for(let Hi=1;Hi>3}if(ie--,X===1||X===2)ve+=I.readSVarint(),we+=I.readSVarint(),X===1&&(M&&We.push(M),M=[]),M.push(new ci(ve,we));else{if(X!==7)throw new Error("unknown command "+X);M&&M.push(M[0].clone())}}return M&&We.push(M),We},Ki.prototype.bbox=function(){var I=this._pbf;I.pos=this._geometry;for(var M=I.readVarint()+I.pos,D=1,X=0,ie=0,ve=0,we=1/0,We=-1/0,ut=1/0,Mt=-1/0;I.pos>3}if(X--,D===1||D===2)(ie+=I.readSVarint())We&&(We=ie),(ve+=I.readSVarint())Mt&&(Mt=ve);else if(D!==7)throw new Error("unknown command "+D)}return[we,ut,We,Mt]},Ki.prototype.toGeoJSON=function(I,M,D){var X,ie,ve=this.extent*Math.pow(2,D),we=this.extent*I,We=this.extent*M,ut=this.loadGeometry(),Mt=Ki.types[this.type];function $t(Br){for(var Jr=0;Jr>3;ie=we===1?X.readString():we===2?X.readFloat():we===3?X.readDouble():we===4?X.readVarint64():we===5?X.readVarint():we===6?X.readSVarint():we===7?X.readBoolean():null}return ie}(D))}Pn.prototype.feature=function(I){if(I<0||I>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[I];var M=this._pbf.readVarint()+this._pbf.pos;return new ca(this._pbf,M,this.extent,this._keys,this._values)};var xa=Tn;function Zo(I,M,D){if(I===3){var X=new xa(D,D.readVarint()+D.pos);X.length&&(M[X.name]=X)}}Nr.VectorTile=function(I,M){this.layers=I.readFields(Zo,{},M)},Nr.VectorTileFeature=Cn,Nr.VectorTileLayer=Tn;let ru=Nr.VectorTileFeature.types,yu=Math.pow(2,13);function Du(I,M,D,X,ie,ve,we,We){I.emplaceBack(M,D,2*Math.floor(X*yu)+we,ie*yu*2,ve*yu*2,Math.round(We))}class vu{constructor(M){this.zoom=M.zoom,this.overscaling=M.overscaling,this.layers=M.layers,this.layerIds=this.layers.map(D=>D.id),this.index=M.index,this.hasPattern=!1,this.layoutVertexArray=new Qu,this.centroidVertexArray=new iu,this.indexArray=new se,this.programConfigurations=new Gu(M.layers,M.zoom),this.segments=new ot,this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(M,D,X){this.features=[],this.hasPattern=bt("fill-extrusion",this.layers,D);for(let{feature:ie,id:ve,index:we,sourceLayerIndex:We}of M){let ut=this.layers[0]._featureFilter.needGeometry,Mt=df(ie,ut);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Mt,X))continue;let $t={id:ve,sourceLayerIndex:We,index:we,geometry:ut?Mt.geometry:uf(ie),properties:ie.properties,type:ie.type,patterns:{}};this.hasPattern?this.features.push(Kt("fill-extrusion",this.layers,$t,this.zoom,D)):this.addFeature($t,$t.geometry,we,X,{}),D.featureIndex.insert(ie,$t.geometry,we,We,this.index,!0)}}addFeatures(M,D,X){for(let ie of this.features){let{geometry:ve}=ie;this.addFeature(ie,ve,ie.index,D,X)}}update(M,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(M,D,this.stateDependentLayers,X)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(M){this.uploaded||(this.layoutVertexBuffer=M.createVertexBuffer(this.layoutVertexArray,Tr),this.centroidVertexBuffer=M.createVertexBuffer(this.centroidVertexArray,Lt.members,!0),this.indexBuffer=M.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(M),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(M,D,X,ie,ve){for(let we of Ys(D,500)){let We={x:0,y:0,vertexCount:0},ut=0;for(let Jr of we)ut+=Jr.length;let Mt=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(let Jr of we){if(Jr.length===0||$u(Jr))continue;let li=0;for(let Hi=0;Hi=1){let Za=Jr[Hi-1];if(!zu(cn,Za)){Mt.vertexLength+4>ot.MAX_VERTEX_ARRAY_LENGTH&&(Mt=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let Rn=cn.sub(Za)._perp()._unit(),La=Za.dist(cn);li+La>32768&&(li=0),Du(this.layoutVertexArray,cn.x,cn.y,Rn.x,Rn.y,0,0,li),Du(this.layoutVertexArray,cn.x,cn.y,Rn.x,Rn.y,0,1,li),We.x+=2*cn.x,We.y+=2*cn.y,We.vertexCount+=2,li+=La,Du(this.layoutVertexArray,Za.x,Za.y,Rn.x,Rn.y,0,0,li),Du(this.layoutVertexArray,Za.x,Za.y,Rn.x,Rn.y,0,1,li),We.x+=2*Za.x,We.y+=2*Za.y,We.vertexCount+=2;let So=Mt.vertexLength;this.indexArray.emplaceBack(So,So+2,So+1),this.indexArray.emplaceBack(So+1,So+2,So+3),Mt.vertexLength+=4,Mt.primitiveLength+=2}}}}if(Mt.vertexLength+ut>ot.MAX_VERTEX_ARRAY_LENGTH&&(Mt=this.segments.prepareSegment(ut,this.layoutVertexArray,this.indexArray)),ru[M.type]!=="Polygon")continue;let $t=[],vr=[],Sr=Mt.vertexLength;for(let Jr of we)if(Jr.length!==0){Jr!==we[0]&&vr.push($t.length/2);for(let li=0;liWl)||I.y===M.y&&(I.y<0||I.y>Wl)}function $u(I){return I.every(M=>M.x<0)||I.every(M=>M.x>Wl)||I.every(M=>M.y<0)||I.every(M=>M.y>Wl)}let Uf;Si("FillExtrusionBucket",vu,{omit:["layers","features"]});var wd={get paint(){return Uf=Uf||new le({"fill-extrusion-opacity":new ms(ce["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Os(ce["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new ms(ce["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new ms(ce["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Xl(ce["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Os(ce["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Os(ce["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new ms(ce["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class Ad extends q{constructor(M){super(M,wd)}createBucket(M){return new vu(M)}queryRadius(){return Ls(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(M,D,X,ie,ve,we,We,ut){let Mt=ua(M,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),we.angle,We),$t=this.paint.get("fill-extrusion-height").evaluate(D,X),vr=this.paint.get("fill-extrusion-base").evaluate(D,X),Sr=function(Jr,li,Hi,cn){let Za=[];for(let Rn of Jr){let La=[Rn.x,Rn.y,0,1];hs(La,La,li),Za.push(new l(La[0]/La[3],La[1]/La[3]))}return Za}(Mt,ut),Br=function(Jr,li,Hi,cn){let Za=[],Rn=[],La=cn[8]*li,So=cn[9]*li,kl=cn[10]*li,mu=cn[11]*li,Iu=cn[8]*Hi,su=cn[9]*Hi,yl=cn[10]*Hi,Eu=cn[11]*Hi;for(let bu of Jr){let _u=[],Xs=[];for(let Lu of bu){let xu=Lu.x,qu=Lu.y,vc=cn[0]*xu+cn[4]*qu+cn[12],cc=cn[1]*xu+cn[5]*qu+cn[13],Ch=cn[2]*xu+cn[6]*qu+cn[14],$p=cn[3]*xu+cn[7]*qu+cn[15],ud=Ch+kl,Lh=$p+mu,Wd=vc+Iu,jd=cc+su,Xd=Ch+yl,Jc=$p+Eu,Ph=new l((vc+La)/Lh,(cc+So)/Lh);Ph.z=ud/Lh,_u.push(Ph);let Cd=new l(Wd/Jc,jd/Jc);Cd.z=Xd/Jc,Xs.push(Cd)}Za.push(_u),Rn.push(Xs)}return[Za,Rn]}(ie,vr,$t,ut);return function(Jr,li,Hi){let cn=1/0;qt(Hi,li)&&(cn=Yp(Hi,li[0]));for(let Za=0;ZaD.id),this.index=M.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(D=>{this.gradients[D.id]={}}),this.layoutVertexArray=new Ju,this.layoutVertexArray2=new ju,this.indexArray=new se,this.programConfigurations=new Gu(M.layers,M.zoom),this.segments=new ot,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(D=>D.isStateDependent()).map(D=>D.id)}populate(M,D,X){this.hasPattern=bt("line",this.layers,D);let ie=this.layers[0].layout.get("line-sort-key"),ve=!ie.isConstant(),we=[];for(let{feature:We,id:ut,index:Mt,sourceLayerIndex:$t}of M){let vr=this.layers[0]._featureFilter.needGeometry,Sr=df(We,vr);if(!this.layers[0]._featureFilter.filter(new cs(this.zoom),Sr,X))continue;let Br=ve?ie.evaluate(Sr,{},X):void 0,Jr={id:ut,properties:We.properties,type:We.type,sourceLayerIndex:$t,index:Mt,geometry:vr?Sr.geometry:uf(We),patterns:{},sortKey:Br};we.push(Jr)}ve&&we.sort((We,ut)=>We.sortKey-ut.sortKey);for(let We of we){let{geometry:ut,index:Mt,sourceLayerIndex:$t}=We;if(this.hasPattern){let vr=Kt("line",this.layers,We,this.zoom,D);this.patternFeatures.push(vr)}else this.addFeature(We,ut,Mt,X,{});D.featureIndex.insert(M[Mt].feature,ut,Mt,$t,this.index)}}update(M,D,X){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(M,D,this.stateDependentLayers,X)}addFeatures(M,D,X){for(let ie of this.patternFeatures)this.addFeature(ie,ie.geometry,ie.index,D,X)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(M){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=M.createVertexBuffer(this.layoutVertexArray2,pv)),this.layoutVertexBuffer=M.createVertexBuffer(this.layoutVertexArray,dv),this.indexBuffer=M.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(M),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(M){if(M.properties&&Object.prototype.hasOwnProperty.call(M.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(M.properties,"mapbox_clip_end"))return{start:+M.properties.mapbox_clip_start,end:+M.properties.mapbox_clip_end}}addFeature(M,D,X,ie,ve){let we=this.layers[0].layout,We=we.get("line-join").evaluate(M,{}),ut=we.get("line-cap"),Mt=we.get("line-miter-limit"),$t=we.get("line-round-limit");this.lineClips=this.lineFeatureClips(M);for(let vr of D)this.addLine(vr,M,We,ut,Mt,$t);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,M,X,ve,ie)}addLine(M,D,X,ie,ve,we){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let cn=0;cn=2&&M[ut-1].equals(M[ut-2]);)ut--;let Mt=0;for(;Mt0;if(mu&&cn>Mt){let Eu=Sr.dist(Br);if(Eu>2*$t){let bu=Sr.sub(Sr.sub(Br)._mult($t/Eu)._round());this.updateDistance(Br,bu),this.addCurrentVertex(bu,li,0,0,vr),Br=bu}}let su=Br&&Jr,yl=su?X:We?"butt":ie;if(su&&yl==="round"&&(Sove&&(yl="bevel"),yl==="bevel"&&(So>2&&(yl="flipbevel"),So100)Za=Hi.mult(-1);else{let Eu=So*li.add(Hi).mag()/li.sub(Hi).mag();Za._perp()._mult(Eu*(Iu?-1:1))}this.addCurrentVertex(Sr,Za,0,0,vr),this.addCurrentVertex(Sr,Za.mult(-1),0,0,vr)}else if(yl==="bevel"||yl==="fakeround"){let Eu=-Math.sqrt(So*So-1),bu=Iu?Eu:0,_u=Iu?0:Eu;if(Br&&this.addCurrentVertex(Sr,li,bu,_u,vr),yl==="fakeround"){let Xs=Math.round(180*kl/Math.PI/20);for(let Lu=1;Lu2*$t){let bu=Sr.add(Jr.sub(Sr)._mult($t/Eu)._round());this.updateDistance(Sr,bu),this.addCurrentVertex(bu,Hi,0,0,vr),Sr=bu}}}}addCurrentVertex(M,D,X,ie,ve,we=!1){let We=D.y*ie-D.x,ut=-D.y-D.x*ie;this.addHalfVertex(M,D.x+D.y*X,D.y-D.x*X,we,!1,X,ve),this.addHalfVertex(M,We,ut,we,!0,-ie,ve),this.distance>kp/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(M,D,X,ie,ve,we))}addHalfVertex({x:M,y:D},X,ie,ve,we,We,ut){let Mt=.5*(this.lineClips?this.scaledDistance*(kp-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((M<<1)+(ve?1:0),(D<<1)+(we?1:0),Math.round(63*X)+128,Math.round(63*ie)+128,1+(We===0?0:We<0?-1:1)|(63&Mt)<<2,Mt>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);let $t=ut.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,$t),ut.primitiveLength++),we?this.e2=$t:this.e1=$t}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(M,D){this.distance+=M.dist(D),this.updateScaledDistance()}}let Cp,ng;Si("LineBucket",Kp,{omit:["layers","patternFeatures"]});var cm={get paint(){return ng=ng||new le({"line-opacity":new Os(ce.paint_line["line-opacity"]),"line-color":new Os(ce.paint_line["line-color"]),"line-translate":new ms(ce.paint_line["line-translate"]),"line-translate-anchor":new ms(ce.paint_line["line-translate-anchor"]),"line-width":new Os(ce.paint_line["line-width"]),"line-gap-width":new Os(ce.paint_line["line-gap-width"]),"line-offset":new Os(ce.paint_line["line-offset"]),"line-blur":new Os(ce.paint_line["line-blur"]),"line-dasharray":new Gl(ce.paint_line["line-dasharray"]),"line-pattern":new Xl(ce.paint_line["line-pattern"]),"line-gradient":new Ul(ce.paint_line["line-gradient"])})},get layout(){return Cp=Cp||new le({"line-cap":new ms(ce.layout_line["line-cap"]),"line-join":new Os(ce.layout_line["line-join"]),"line-miter-limit":new ms(ce.layout_line["line-miter-limit"]),"line-round-limit":new ms(ce.layout_line["line-round-limit"]),"line-sort-key":new Os(ce.layout_line["line-sort-key"])})}};class vh extends Os{possiblyEvaluate(M,D){return D=new cs(Math.floor(D.zoom),{now:D.now,fadeDuration:D.fadeDuration,zoomHistory:D.zoomHistory,transition:D.transition}),super.possiblyEvaluate(M,D)}evaluate(M,D,X,ie){return D=L({},D,{zoom:Math.floor(D.zoom)}),super.evaluate(M,D,X,ie)}}let hm;class ag extends q{constructor(M){super(M,cm),this.gradientVersion=0,hm||(hm=new vh(cm.paint.properties["line-width"].specification),hm.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(M){if(M==="line-gradient"){let D=this.gradientExpression();this.stepInterpolant=!!function(X){return X._styleExpression!==void 0}(D)&&D._styleExpression.expression instanceof Zi,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(M,D){super.recalculate(M,D),this.paint._values["line-floorwidth"]=hm.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,M)}createBucket(M){return new Kp(M)}queryRadius(M){let D=M,X=jh(wn("line-width",this,D),wn("line-gap-width",this,D)),ie=wn("line-offset",this,D);return X/2+Math.abs(ie)+Ls(this.paint.get("line-translate"))}queryIntersectsFeature(M,D,X,ie,ve,we,We){let ut=ua(M,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),we.angle,We),Mt=We/2*jh(this.paint.get("line-width").evaluate(D,X),this.paint.get("line-gap-width").evaluate(D,X)),$t=this.paint.get("line-offset").evaluate(D,X);return $t&&(ie=function(vr,Sr){let Br=[];for(let Jr=0;Jr=3){for(let Hi=0;Hi0?M+2*I:I}let ry=Ge([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),w1=Ge([{name:"a_projected_pos",components:3,type:"Float32"}],4);Ge([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);let A1=Ge([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);Ge([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);let og=Ge([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),iy=Ge([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function ny(I,M,D){return I.sections.forEach(X=>{X.text=function(ie,ve,we){let We=ve.layout.get("text-transform").evaluate(we,{});return We==="uppercase"?ie=ie.toLocaleUpperCase():We==="lowercase"&&(ie=ie.toLocaleLowerCase()),Js.applyArabicShaping&&(ie=Js.applyArabicShaping(ie)),ie}(X.text,M,D)}),I}Ge([{name:"triangle",components:3,type:"Uint16"}]),Ge([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Ge([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"}]),Ge([{type:"Float32",name:"offsetX"}]),Ge([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),Ge([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);let wc={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};var Wf=24,Ed=ic,sg=function(I,M,D,X,ie){var ve,we,We=8*ie-X-1,ut=(1<>1,$t=-7,vr=D?ie-1:0,Sr=D?-1:1,Br=I[M+vr];for(vr+=Sr,ve=Br&(1<<-$t)-1,Br>>=-$t,$t+=We;$t>0;ve=256*ve+I[M+vr],vr+=Sr,$t-=8);for(we=ve&(1<<-$t)-1,ve>>=-$t,$t+=X;$t>0;we=256*we+I[M+vr],vr+=Sr,$t-=8);if(ve===0)ve=1-Mt;else{if(ve===ut)return we?NaN:1/0*(Br?-1:1);we+=Math.pow(2,X),ve-=Mt}return(Br?-1:1)*we*Math.pow(2,ve-X)},T1=function(I,M,D,X,ie,ve){var we,We,ut,Mt=8*ve-ie-1,$t=(1<>1,Sr=ie===23?Math.pow(2,-24)-Math.pow(2,-77):0,Br=X?0:ve-1,Jr=X?1:-1,li=M<0||M===0&&1/M<0?1:0;for(M=Math.abs(M),isNaN(M)||M===1/0?(We=isNaN(M)?1:0,we=$t):(we=Math.floor(Math.log(M)/Math.LN2),M*(ut=Math.pow(2,-we))<1&&(we--,ut*=2),(M+=we+vr>=1?Sr/ut:Sr*Math.pow(2,1-vr))*ut>=2&&(we++,ut/=2),we+vr>=$t?(We=0,we=$t):we+vr>=1?(We=(M*ut-1)*Math.pow(2,ie),we+=vr):(We=M*Math.pow(2,vr-1)*Math.pow(2,ie),we=0));ie>=8;I[D+Br]=255&We,Br+=Jr,We/=256,ie-=8);for(we=we<0;I[D+Br]=255&we,Br+=Jr,we/=256,Mt-=8);I[D+Br-Jr]|=128*li};function ic(I){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(I)?I:new Uint8Array(I||0),this.pos=0,this.type=0,this.length=this.buf.length}ic.Varint=0,ic.Fixed64=1,ic.Bytes=2,ic.Fixed32=5;var Nx=4294967296,ay=1/Nx,Mw=typeof TextDecoder=="undefined"?null:new TextDecoder("utf-8");function Lp(I){return I.type===ic.Bytes?I.readVarint()+I.pos:I.pos+1}function oy(I,M,D){return D?4294967296*M+(I>>>0):4294967296*(M>>>0)+(I>>>0)}function Ew(I,M,D){var X=M<=16383?1:M<=2097151?2:M<=268435455?3:Math.floor(Math.log(M)/(7*Math.LN2));D.realloc(X);for(var ie=D.pos-1;ie>=I;ie--)D.buf[ie+X]=D.buf[ie]}function Ux(I,M){for(var D=0;D>>8,I[D+2]=M>>>16,I[D+3]=M>>>24}function vC(I,M){return(I[M]|I[M+1]<<8|I[M+2]<<16)+(I[M+3]<<24)}ic.prototype={destroy:function(){this.buf=null},readFields:function(I,M,D){for(D=D||this.length;this.pos>3,ve=this.pos;this.type=7&X,I(ie,M,this),this.pos===ve&&this.skip(X)}return M},readMessage:function(I,M){return this.readFields(I,M,this.readVarint()+this.pos)},readFixed32:function(){var I=lg(this.buf,this.pos);return this.pos+=4,I},readSFixed32:function(){var I=vC(this.buf,this.pos);return this.pos+=4,I},readFixed64:function(){var I=lg(this.buf,this.pos)+lg(this.buf,this.pos+4)*Nx;return this.pos+=8,I},readSFixed64:function(){var I=lg(this.buf,this.pos)+vC(this.buf,this.pos+4)*Nx;return this.pos+=8,I},readFloat:function(){var I=sg(this.buf,this.pos,!0,23,4);return this.pos+=4,I},readDouble:function(){var I=sg(this.buf,this.pos,!0,52,8);return this.pos+=8,I},readVarint:function(I){var M,D,X=this.buf;return M=127&(D=X[this.pos++]),D<128?M:(M|=(127&(D=X[this.pos++]))<<7,D<128?M:(M|=(127&(D=X[this.pos++]))<<14,D<128?M:(M|=(127&(D=X[this.pos++]))<<21,D<128?M:function(ie,ve,we){var We,ut,Mt=we.buf;if(We=(112&(ut=Mt[we.pos++]))>>4,ut<128||(We|=(127&(ut=Mt[we.pos++]))<<3,ut<128)||(We|=(127&(ut=Mt[we.pos++]))<<10,ut<128)||(We|=(127&(ut=Mt[we.pos++]))<<17,ut<128)||(We|=(127&(ut=Mt[we.pos++]))<<24,ut<128)||(We|=(1&(ut=Mt[we.pos++]))<<31,ut<128))return oy(ie,We,ve);throw new Error("Expected varint not more than 10 bytes")}(M|=(15&(D=X[this.pos]))<<28,I,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var I=this.readVarint();return I%2==1?(I+1)/-2:I/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var I=this.readVarint()+this.pos,M=this.pos;return this.pos=I,I-M>=12&&Mw?function(D,X,ie){return Mw.decode(D.subarray(X,ie))}(this.buf,M,I):function(D,X,ie){for(var ve="",we=X;we239?4:$t>223?3:$t>191?2:1;if(we+Sr>ie)break;Sr===1?$t<128&&(vr=$t):Sr===2?(192&(We=D[we+1]))==128&&(vr=(31&$t)<<6|63&We)<=127&&(vr=null):Sr===3?(ut=D[we+2],(192&(We=D[we+1]))==128&&(192&ut)==128&&((vr=(15&$t)<<12|(63&We)<<6|63&ut)<=2047||vr>=55296&&vr<=57343)&&(vr=null)):Sr===4&&(ut=D[we+2],Mt=D[we+3],(192&(We=D[we+1]))==128&&(192&ut)==128&&(192&Mt)==128&&((vr=(15&$t)<<18|(63&We)<<12|(63&ut)<<6|63&Mt)<=65535||vr>=1114112)&&(vr=null)),vr===null?(vr=65533,Sr=1):vr>65535&&(vr-=65536,ve+=String.fromCharCode(vr>>>10&1023|55296),vr=56320|1023&vr),ve+=String.fromCharCode(vr),we+=Sr}return ve}(this.buf,M,I)},readBytes:function(){var I=this.readVarint()+this.pos,M=this.buf.subarray(this.pos,I);return this.pos=I,M},readPackedVarint:function(I,M){if(this.type!==ic.Bytes)return I.push(this.readVarint(M));var D=Lp(this);for(I=I||[];this.pos127;);else if(M===ic.Bytes)this.pos=this.readVarint()+this.pos;else if(M===ic.Fixed32)this.pos+=4;else{if(M!==ic.Fixed64)throw new Error("Unimplemented type: "+M);this.pos+=8}},writeTag:function(I,M){this.writeVarint(I<<3|M)},realloc:function(I){for(var M=this.length||16;M268435455||I<0?function(M,D){var X,ie;if(M>=0?(X=M%4294967296|0,ie=M/4294967296|0):(ie=~(-M/4294967296),4294967295^(X=~(-M%4294967296))?X=X+1|0:(X=0,ie=ie+1|0)),M>=18446744073709552e3||M<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");D.realloc(10),function(ve,we,We){We.buf[We.pos++]=127&ve|128,ve>>>=7,We.buf[We.pos++]=127&ve|128,ve>>>=7,We.buf[We.pos++]=127&ve|128,ve>>>=7,We.buf[We.pos++]=127&ve|128,We.buf[We.pos]=127&(ve>>>=7)}(X,0,D),function(ve,we){var We=(7&ve)<<4;we.buf[we.pos++]|=We|((ve>>>=3)?128:0),ve&&(we.buf[we.pos++]=127&ve|((ve>>>=7)?128:0),ve&&(we.buf[we.pos++]=127&ve|((ve>>>=7)?128:0),ve&&(we.buf[we.pos++]=127&ve|((ve>>>=7)?128:0),ve&&(we.buf[we.pos++]=127&ve|((ve>>>=7)?128:0),ve&&(we.buf[we.pos++]=127&ve)))))}(ie,D)}(I,this):(this.realloc(4),this.buf[this.pos++]=127&I|(I>127?128:0),I<=127||(this.buf[this.pos++]=127&(I>>>=7)|(I>127?128:0),I<=127||(this.buf[this.pos++]=127&(I>>>=7)|(I>127?128:0),I<=127||(this.buf[this.pos++]=I>>>7&127))))},writeSVarint:function(I){this.writeVarint(I<0?2*-I-1:2*I)},writeBoolean:function(I){this.writeVarint(!!I)},writeString:function(I){I=String(I),this.realloc(4*I.length),this.pos++;var M=this.pos;this.pos=function(X,ie,ve){for(var we,We,ut=0;ut55295&&we<57344){if(!We){we>56319||ut+1===ie.length?(X[ve++]=239,X[ve++]=191,X[ve++]=189):We=we;continue}if(we<56320){X[ve++]=239,X[ve++]=191,X[ve++]=189,We=we;continue}we=We-55296<<10|we-56320|65536,We=null}else We&&(X[ve++]=239,X[ve++]=191,X[ve++]=189,We=null);we<128?X[ve++]=we:(we<2048?X[ve++]=we>>6|192:(we<65536?X[ve++]=we>>12|224:(X[ve++]=we>>18|240,X[ve++]=we>>12&63|128),X[ve++]=we>>6&63|128),X[ve++]=63&we|128)}return ve}(this.buf,I,this.pos);var D=this.pos-M;D>=128&&Ew(M,D,this),this.pos=M-1,this.writeVarint(D),this.pos+=D},writeFloat:function(I){this.realloc(4),T1(this.buf,I,this.pos,!0,23,4),this.pos+=4},writeDouble:function(I){this.realloc(8),T1(this.buf,I,this.pos,!0,52,8),this.pos+=8},writeBytes:function(I){var M=I.length;this.writeVarint(M),this.realloc(M);for(var D=0;D=128&&Ew(D,X,this),this.pos=D-1,this.writeVarint(X),this.pos+=X},writeMessage:function(I,M,D){this.writeTag(I,ic.Bytes),this.writeRawMessage(M,D)},writePackedVarint:function(I,M){M.length&&this.writeMessage(I,Ux,M)},writePackedSVarint:function(I,M){M.length&&this.writeMessage(I,HO,M)},writePackedBoolean:function(I,M){M.length&&this.writeMessage(I,XO,M)},writePackedFloat:function(I,M){M.length&&this.writeMessage(I,WO,M)},writePackedDouble:function(I,M){M.length&&this.writeMessage(I,jO,M)},writePackedFixed32:function(I,M){M.length&&this.writeMessage(I,qQ,M)},writePackedSFixed32:function(I,M){M.length&&this.writeMessage(I,ZO,M)},writePackedFixed64:function(I,M){M.length&&this.writeMessage(I,YO,M)},writePackedSFixed64:function(I,M){M.length&&this.writeMessage(I,KO,M)},writeBytesField:function(I,M){this.writeTag(I,ic.Bytes),this.writeBytes(M)},writeFixed32Field:function(I,M){this.writeTag(I,ic.Fixed32),this.writeFixed32(M)},writeSFixed32Field:function(I,M){this.writeTag(I,ic.Fixed32),this.writeSFixed32(M)},writeFixed64Field:function(I,M){this.writeTag(I,ic.Fixed64),this.writeFixed64(M)},writeSFixed64Field:function(I,M){this.writeTag(I,ic.Fixed64),this.writeSFixed64(M)},writeVarintField:function(I,M){this.writeTag(I,ic.Varint),this.writeVarint(M)},writeSVarintField:function(I,M){this.writeTag(I,ic.Varint),this.writeSVarint(M)},writeStringField:function(I,M){this.writeTag(I,ic.Bytes),this.writeString(M)},writeFloatField:function(I,M){this.writeTag(I,ic.Fixed32),this.writeFloat(M)},writeDoubleField:function(I,M){this.writeTag(I,ic.Fixed64),this.writeDouble(M)},writeBooleanField:function(I,M){this.writeVarintField(I,!!M)}};var tM=o(Ed);let rM=3;function NQ(I,M,D){I===1&&D.readMessage(JO,M)}function JO(I,M,D){if(I===3){let{id:X,bitmap:ie,width:ve,height:we,left:We,top:ut,advance:Mt}=D.readMessage(mC,{});M.push({id:X,bitmap:new ul({width:ve+2*rM,height:we+2*rM},ie),metrics:{width:ve,height:we,left:We,top:ut,advance:Mt}})}}function mC(I,M,D){I===1?M.id=D.readVarint():I===2?M.bitmap=D.readBytes():I===3?M.width=D.readVarint():I===4?M.height=D.readVarint():I===5?M.left=D.readSVarint():I===6?M.top=D.readSVarint():I===7&&(M.advance=D.readVarint())}let yC=rM;function iM(I){let M=0,D=0;for(let we of I)M+=we.w*we.h,D=Math.max(D,we.w);I.sort((we,We)=>We.h-we.h);let X=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(M/.95)),D),h:1/0}],ie=0,ve=0;for(let we of I)for(let We=X.length-1;We>=0;We--){let ut=X[We];if(!(we.w>ut.w||we.h>ut.h)){if(we.x=ut.x,we.y=ut.y,ve=Math.max(ve,we.y+we.h),ie=Math.max(ie,we.x+we.w),we.w===ut.w&&we.h===ut.h){let Mt=X.pop();We=0&&X>=M&&Lw[this.text.charCodeAt(X)];X--)D--;this.text=this.text.substring(M,D),this.sectionIndex=this.sectionIndex.slice(M,D)}substring(M,D){let X=new S1;return X.text=this.text.substring(M,D),X.sectionIndex=this.sectionIndex.slice(M,D),X.sections=this.sections,X}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((M,D)=>Math.max(M,this.sections[D].scale),0)}addTextSection(M,D){this.text+=M.text,this.sections.push(Gx.forText(M.scale,M.fontStack||D));let X=this.sections.length-1;for(let ie=0;ie=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Hx(I,M,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr){let li=S1.fromFeature(I,ie),Hi;vr===i.ah.vertical&&li.verticalizePunctuation();let{processBidirectionalText:cn,processStyledBidirectionalText:Za}=Js;if(cn&&li.sections.length===1){Hi=[];let So=cn(li.toString(),M1(li,Mt,ve,M,X,Br));for(let kl of So){let mu=new S1;mu.text=kl,mu.sections=li.sections;for(let Iu=0;Iu0&&ev>rh&&(rh=ev)}else{let Rc=mu[jf.fontStack],fh=Rc&&Rc[mc];if(fh&&fh.rect)z1=fh.rect,Hc=fh.metrics;else{let ev=kl[jf.fontStack],mm=ev&&ev[mc];if(!mm)continue;Hc=mm.metrics}Ip=(Ph-jf.scale)*Wf}Qp?(So.verticalizable=!0,Xh.push({glyph:mc,imageName:v0,x:qu,y:vc+Ip,vertical:Qp,scale:jf.scale,fontStack:jf.fontStack,sectionIndex:Ac,metrics:Hc,rect:z1}),qu+=Gv*jf.scale+Xs):(Xh.push({glyph:mc,imageName:v0,x:qu,y:vc+Ip,vertical:Qp,scale:jf.scale,fontStack:jf.fontStack,sectionIndex:Ac,metrics:Hc,rect:z1}),qu+=Hc.advance*jf.scale+Xs)}Xh.length!==0&&(cc=Math.max(qu-Xs,cc),sy(Xh,0,Xh.length-1,$p,rh)),qu=0;let zp=yl*Ph+rh;fd.lineOffset=Math.max(rh,Cd),vc+=zp,Ch=Math.max(zp,Ch),++ud}var Lh;let Wd=vc-kh,{horizontalAlign:jd,verticalAlign:Xd}=zw(Eu);(function(Jc,Ph,Cd,fd,Xh,rh,zp,fp,jf){let Ac=(Ph-Cd)*Xh,mc=0;mc=rh!==zp?-fp*fd-kh:(-fd*jf+.5)*zp;for(let Ip of Jc)for(let Hc of Ip.positionedGlyphs)Hc.x+=Ac,Hc.y+=mc})(So.positionedLines,$p,jd,Xd,cc,Ch,yl,Wd,su.length),So.top+=-Xd*Wd,So.bottom=So.top+Wd,So.left+=-jd*cc,So.right=So.left+cc}(La,M,D,X,Hi,we,We,ut,vr,Mt,Sr,Jr),!function(So){for(let kl of So)if(kl.positionedGlyphs.length!==0)return!1;return!0}(Rn)&&La}let Lw={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},$O={10:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},QO={40:!0};function gC(I,M,D,X,ie,ve){if(M.imageName){let we=X[M.imageName];return we?we.displaySize[0]*M.scale*Wf/ve+ie:0}{let we=D[M.fontStack],We=we&&we[I];return We?We.metrics.advance*M.scale+ie:0}}function _C(I,M,D,X){let ie=Math.pow(I-M,2);return X?I=0,Mt=0;for(let vr=0;vrMt){let $t=Math.ceil(ve/Mt);ie*=$t/we,we=$t}return{x1:X,y1:ie,x2:X+ve,y2:ie+we}}function wC(I,M,D,X,ie,ve){let we=I.image,We;if(we.content){let Hi=we.content,cn=we.pixelRatio||1;We=[Hi[0]/cn,Hi[1]/cn,we.displaySize[0]-Hi[2]/cn,we.displaySize[1]-Hi[3]/cn]}let ut=M.left*ve,Mt=M.right*ve,$t,vr,Sr,Br;D==="width"||D==="both"?(Br=ie[0]+ut-X[3],vr=ie[0]+Mt+X[1]):(Br=ie[0]+(ut+Mt-we.displaySize[0])/2,vr=Br+we.displaySize[0]);let Jr=M.top*ve,li=M.bottom*ve;return D==="height"||D==="both"?($t=ie[1]+Jr-X[0],Sr=ie[1]+li+X[2]):($t=ie[1]+(Jr+li-we.displaySize[1])/2,Sr=$t+we.displaySize[1]),{image:we,top:$t,right:vr,bottom:Sr,left:Br,collisionPadding:We}}let jx=255,p0=128,ly=jx*p0;function AC(I,M){let{expression:D}=M;if(D.kind==="constant")return{kind:"constant",layoutSize:D.evaluate(new cs(I+1))};if(D.kind==="source")return{kind:"source"};{let{zoomStops:X,interpolationType:ie}=D,ve=0;for(;vewe.id),this.index=M.index,this.pixelRatio=M.pixelRatio,this.sourceLayerIndex=M.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=En([]),this.placementViewportMatrix=En([]);let D=this.layers[0]._unevaluatedLayout._values;this.textSizeData=AC(this.zoom,D["text-size"]),this.iconSizeData=AC(this.zoom,D["icon-size"]);let X=this.layers[0].layout,ie=X.get("symbol-sort-key"),ve=X.get("symbol-z-order");this.canOverlap=nM(X,"text-overlap","text-allow-overlap")!=="never"||nM(X,"icon-overlap","icon-allow-overlap")!=="never"||X.get("text-ignore-placement")||X.get("icon-ignore-placement"),this.sortFeaturesByKey=ve!=="viewport-y"&&!ie.isConstant(),this.sortFeaturesByY=(ve==="viewport-y"||ve==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,X.get("symbol-placement")==="point"&&(this.writingModes=X.get("text-writing-mode").map(we=>i.ah[we])),this.stateDependentLayerIds=this.layers.filter(we=>we.isStateDependent()).map(we=>we.id),this.sourceID=M.sourceID}createArrays(){this.text=new sM(new Gu(this.layers,this.zoom,M=>/^text/.test(M))),this.icon=new sM(new Gu(this.layers,this.zoom,M=>/^icon/.test(M))),this.glyphOffsetArray=new au,this.lineVertexArray=new Sl,this.symbolInstances=new ml,this.textAnchorOffsets=new ql}calculateGlyphDependencies(M,D,X,ie,ve){for(let we=0;we0)&&(we.value.kind!=="constant"||we.value.value.length>0),$t=ut.value.kind!=="constant"||!!ut.value.value||Object.keys(ut.parameters).length>0,vr=ve.get("symbol-sort-key");if(this.features=[],!Mt&&!$t)return;let Sr=D.iconDependencies,Br=D.glyphDependencies,Jr=D.availableImages,li=new cs(this.zoom);for(let{feature:Hi,id:cn,index:Za,sourceLayerIndex:Rn}of M){let La=ie._featureFilter.needGeometry,So=df(Hi,La);if(!ie._featureFilter.filter(li,So,X))continue;let kl,mu;if(La||(So.geometry=uf(Hi)),Mt){let su=ie.getValueAndResolveTokens("text-field",So,X,Jr),yl=Ur.factory(su),Eu=this.hasRTLText=this.hasRTLText||oM(yl);(!Eu||Js.getRTLTextPluginStatus()==="unavailable"||Eu&&Js.isParsed())&&(kl=ny(yl,ie,So))}if($t){let su=ie.getValueAndResolveTokens("icon-image",So,X,Jr);mu=su instanceof yi?su:yi.fromString(su)}if(!kl&&!mu)continue;let Iu=this.sortFeaturesByKey?vr.evaluate(So,{},X):void 0;if(this.features.push({id:cn,text:kl,icon:mu,index:Za,sourceLayerIndex:Rn,geometry:So.geometry,properties:Hi.properties,type:t9[Hi.type],sortKey:Iu}),mu&&(Sr[mu.name]=!0),kl){let su=we.evaluate(So,{},X).join(","),yl=ve.get("text-rotation-alignment")!=="viewport"&&ve.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(i.ah.vertical)>=0;for(let Eu of kl.sections)if(Eu.image)Sr[Eu.image.name]=!0;else{let bu=is(kl.toString()),_u=Eu.fontStack||su,Xs=Br[_u]=Br[_u]||{};this.calculateGlyphDependencies(Eu.text,Xs,yl,this.allowVerticalPlacement,bu)}}}ve.get("symbol-placement")==="line"&&(this.features=function(Hi){let cn={},Za={},Rn=[],La=0;function So(su){Rn.push(Hi[su]),La++}function kl(su,yl,Eu){let bu=Za[su];return delete Za[su],Za[yl]=bu,Rn[bu].geometry[0].pop(),Rn[bu].geometry[0]=Rn[bu].geometry[0].concat(Eu[0]),bu}function mu(su,yl,Eu){let bu=cn[yl];return delete cn[yl],cn[su]=bu,Rn[bu].geometry[0].shift(),Rn[bu].geometry[0]=Eu[0].concat(Rn[bu].geometry[0]),bu}function Iu(su,yl,Eu){let bu=Eu?yl[0][yl[0].length-1]:yl[0][0];return`${su}:${bu.x}:${bu.y}`}for(let su=0;susu.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((Hi,cn)=>Hi.sortKey-cn.sortKey)}update(M,D,X){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(M,D,this.layers,X),this.icon.programConfigurations.updatePaintArrays(M,D,this.layers,X))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(M){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(M),this.iconCollisionBox.upload(M)),this.text.upload(M,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(M,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(M,D){let X=this.lineVertexArray.length;if(M.segment!==void 0){let ie=M.dist(D[M.segment+1]),ve=M.dist(D[M.segment]),we={};for(let We=M.segment+1;We=0;We--)we[We]={x:D[We].x,y:D[We].y,tileUnitDistanceFromAnchor:ve},We>0&&(ve+=D[We-1].dist(D[We]));for(let We=0;We0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(M,D){let X=M.placedSymbolArray.get(D),ie=X.vertexStartIndex+4*X.numGlyphs;for(let ve=X.vertexStartIndex;veie[We]-ie[ut]||ve[ut]-ve[We]),we}addToSortKeyRanges(M,D){let X=this.sortKeyRanges[this.sortKeyRanges.length-1];X&&X.sortKey===D?X.symbolInstanceEnd=M+1:this.sortKeyRanges.push({sortKey:D,symbolInstanceStart:M,symbolInstanceEnd:M+1})}sortFeatures(M){if(this.sortFeaturesByY&&this.sortedAngle!==M&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(M),this.sortedAngle=M,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let D of this.symbolInstanceIndexes){let X=this.symbolInstances.get(D);this.featureSortOrder.push(X.featureIndex),[X.rightJustifiedTextSymbolIndex,X.centerJustifiedTextSymbolIndex,X.leftJustifiedTextSymbolIndex].forEach((ie,ve,we)=>{ie>=0&&we.indexOf(ie)===ve&&this.addIndicesForPlacedSymbol(this.text,ie)}),X.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,X.verticalPlacedTextSymbolIndex),X.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,X.placedIconSymbolIndex),X.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,X.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let Kc,Xx;Si("SymbolBucket",E1,{omit:["layers","collisionBoxArray","features","compareText"]}),E1.MAX_GLYPHS=65535,E1.addDynamicAttributes=aM;var Rw={get paint(){return Xx=Xx||new le({"icon-opacity":new Os(ce.paint_symbol["icon-opacity"]),"icon-color":new Os(ce.paint_symbol["icon-color"]),"icon-halo-color":new Os(ce.paint_symbol["icon-halo-color"]),"icon-halo-width":new Os(ce.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Os(ce.paint_symbol["icon-halo-blur"]),"icon-translate":new ms(ce.paint_symbol["icon-translate"]),"icon-translate-anchor":new ms(ce.paint_symbol["icon-translate-anchor"]),"text-opacity":new Os(ce.paint_symbol["text-opacity"]),"text-color":new Os(ce.paint_symbol["text-color"],{runtimeType:$e,getOverride:I=>I.textColor,hasOverride:I=>!!I.textColor}),"text-halo-color":new Os(ce.paint_symbol["text-halo-color"]),"text-halo-width":new Os(ce.paint_symbol["text-halo-width"]),"text-halo-blur":new Os(ce.paint_symbol["text-halo-blur"]),"text-translate":new ms(ce.paint_symbol["text-translate"]),"text-translate-anchor":new ms(ce.paint_symbol["text-translate-anchor"])})},get layout(){return Kc=Kc||new le({"symbol-placement":new ms(ce.layout_symbol["symbol-placement"]),"symbol-spacing":new ms(ce.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new ms(ce.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Os(ce.layout_symbol["symbol-sort-key"]),"symbol-z-order":new ms(ce.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new ms(ce.layout_symbol["icon-allow-overlap"]),"icon-overlap":new ms(ce.layout_symbol["icon-overlap"]),"icon-ignore-placement":new ms(ce.layout_symbol["icon-ignore-placement"]),"icon-optional":new ms(ce.layout_symbol["icon-optional"]),"icon-rotation-alignment":new ms(ce.layout_symbol["icon-rotation-alignment"]),"icon-size":new Os(ce.layout_symbol["icon-size"]),"icon-text-fit":new ms(ce.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new ms(ce.layout_symbol["icon-text-fit-padding"]),"icon-image":new Os(ce.layout_symbol["icon-image"]),"icon-rotate":new Os(ce.layout_symbol["icon-rotate"]),"icon-padding":new Os(ce.layout_symbol["icon-padding"]),"icon-keep-upright":new ms(ce.layout_symbol["icon-keep-upright"]),"icon-offset":new Os(ce.layout_symbol["icon-offset"]),"icon-anchor":new Os(ce.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new ms(ce.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new ms(ce.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new ms(ce.layout_symbol["text-rotation-alignment"]),"text-field":new Os(ce.layout_symbol["text-field"]),"text-font":new Os(ce.layout_symbol["text-font"]),"text-size":new Os(ce.layout_symbol["text-size"]),"text-max-width":new Os(ce.layout_symbol["text-max-width"]),"text-line-height":new ms(ce.layout_symbol["text-line-height"]),"text-letter-spacing":new Os(ce.layout_symbol["text-letter-spacing"]),"text-justify":new Os(ce.layout_symbol["text-justify"]),"text-radial-offset":new Os(ce.layout_symbol["text-radial-offset"]),"text-variable-anchor":new ms(ce.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new Os(ce.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new Os(ce.layout_symbol["text-anchor"]),"text-max-angle":new ms(ce.layout_symbol["text-max-angle"]),"text-writing-mode":new ms(ce.layout_symbol["text-writing-mode"]),"text-rotate":new Os(ce.layout_symbol["text-rotate"]),"text-padding":new ms(ce.layout_symbol["text-padding"]),"text-keep-upright":new ms(ce.layout_symbol["text-keep-upright"]),"text-transform":new Os(ce.layout_symbol["text-transform"]),"text-offset":new Os(ce.layout_symbol["text-offset"]),"text-allow-overlap":new ms(ce.layout_symbol["text-allow-overlap"]),"text-overlap":new ms(ce.layout_symbol["text-overlap"]),"text-ignore-placement":new ms(ce.layout_symbol["text-ignore-placement"]),"text-optional":new ms(ce.layout_symbol["text-optional"])})}};class Zx{constructor(M){if(M.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=M.property.overrides?M.property.overrides.runtimeType:vt,this.defaultValue=M}evaluate(M){if(M.formattedSection){let D=this.defaultValue.property.overrides;if(D&&D.hasOverride(M.formattedSection))return D.getOverride(M.formattedSection)}return M.feature&&M.featureState?this.defaultValue.evaluate(M.feature,M.featureState):this.defaultValue.property.specification.default}eachChild(M){this.defaultValue.isConstant()||M(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Si("FormatSectionOverride",Zx,{omit:["defaultValue"]});class ug extends q{constructor(M){super(M,Rw)}recalculate(M,D){if(super.recalculate(M,D),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){let X=this.layout.get("text-writing-mode");if(X){let ie=[];for(let ve of X)ie.indexOf(ve)<0&&ie.push(ve);this.layout._values["text-writing-mode"]=ie}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(M,D,X,ie){let ve=this.layout.get(M).evaluate(D,{},X,ie),we=this._unevaluatedLayout._values[M];return we.isDataDriven()||Qs(we.value)||!ve?ve:function(We,ut){return ut.replace(/{([^{}]+)}/g,(Mt,$t)=>We&&$t in We?String(We[$t]):"")}(D.properties,ve)}createBucket(M){return new E1(M)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let M of Rw.paint.overridableProperties){if(!ug.hasPaintOverride(this.layout,M))continue;let D=this.paint.get(M),X=new Zx(D),ie=new Ma(X,D.property.specification),ve=null;ve=D.value.kind==="constant"||D.value.kind==="source"?new gs("source",ie):new Vo("composite",ie,D.value.zoomStops),this.paint._values[M]=new Al(D.property,ve,D.parameters)}}_handleOverridablePaintPropertyUpdate(M,D,X){return!(!this.layout||D.isDataDriven()||X.isDataDriven())&&ug.hasPaintOverride(this.layout,M)}static hasPaintOverride(M,D){let X=M.get("text-field"),ie=Rw.paint.properties[D],ve=!1,we=We=>{for(let ut of We)if(ie.overrides&&ie.overrides.hasOverride(ut))return void(ve=!0)};if(X.value.kind==="constant"&&X.value.value instanceof Ur)we(X.value.value.sections);else if(X.value.kind==="source"){let We=Mt=>{ve||(Mt instanceof Yr&&ti(Mt.value)===yr?we(Mt.value.sections):Mt instanceof wa?we(Mt.sections):Mt.eachChild(We))},ut=X.value;ut._styleExpression&&We(ut._styleExpression.expression)}return ve}}let TC;var Yx={get paint(){return TC=TC||new le({"background-color":new ms(ce.paint_background["background-color"]),"background-pattern":new Gl(ce.paint_background["background-pattern"]),"background-opacity":new ms(ce.paint_background["background-opacity"])})}};class i9 extends q{constructor(M){super(M,Yx)}}let lM;var SC={get paint(){return lM=lM||new le({"raster-opacity":new ms(ce.paint_raster["raster-opacity"]),"raster-hue-rotate":new ms(ce.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new ms(ce.paint_raster["raster-brightness-min"]),"raster-brightness-max":new ms(ce.paint_raster["raster-brightness-max"]),"raster-saturation":new ms(ce.paint_raster["raster-saturation"]),"raster-contrast":new ms(ce.paint_raster["raster-contrast"]),"raster-resampling":new ms(ce.paint_raster["raster-resampling"]),"raster-fade-duration":new ms(ce.paint_raster["raster-fade-duration"])})}};class Kx extends q{constructor(M){super(M,SC)}}class uM extends q{constructor(M){super(M,{}),this.onAdd=D=>{this.implementation.onAdd&&this.implementation.onAdd(D,D.painter.context.gl)},this.onRemove=D=>{this.implementation.onRemove&&this.implementation.onRemove(D,D.painter.context.gl)},this.implementation=M}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class fM{constructor(M){this._methodToThrottle=M,this._triggered=!1,typeof MessageChannel!="undefined"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._methodToThrottle()},0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}}let cM=63710088e-1;class dm{constructor(M,D){if(isNaN(M)||isNaN(D))throw new Error(`Invalid LngLat object: (${M}, ${D})`);if(this.lng=+M,this.lat=+D,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new dm(T(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(M){let D=Math.PI/180,X=this.lat*D,ie=M.lat*D,ve=Math.sin(X)*Math.sin(ie)+Math.cos(X)*Math.cos(ie)*Math.cos((M.lng-this.lng)*D);return cM*Math.acos(Math.min(ve,1))}static convert(M){if(M instanceof dm)return M;if(Array.isArray(M)&&(M.length===2||M.length===3))return new dm(Number(M[0]),Number(M[1]));if(!Array.isArray(M)&&typeof M=="object"&&M!==null)return new dm(Number("lng"in M?M.lng:M.lon),Number(M.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}let k1=2*Math.PI*cM;function MC(I){return k1*Math.cos(I*Math.PI/180)}function Dw(I){return(180+I)/360}function EC(I){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+I*Math.PI/360)))/360}function Fw(I,M){return I/MC(M)}function Jx(I){return 360/Math.PI*Math.atan(Math.exp((180-360*I)*Math.PI/180))-90}class $x{constructor(M,D,X=0){this.x=+M,this.y=+D,this.z=+X}static fromLngLat(M,D=0){let X=dm.convert(M);return new $x(Dw(X.lng),EC(X.lat),Fw(D,X.lat))}toLngLat(){return new dm(360*this.x-180,Jx(this.y))}toAltitude(){return this.z*MC(Jx(this.y))}meterInMercatorCoordinateUnits(){return 1/k1*(M=Jx(this.y),1/Math.cos(M*Math.PI/180));var M}}function vv(I,M,D){var X=2*Math.PI*6378137/256/Math.pow(2,D);return[I*X-2*Math.PI*6378137/2,M*X-2*Math.PI*6378137/2]}class hM{constructor(M,D,X){if(!function(ie,ve,we){return!(ie<0||ie>25||we<0||we>=Math.pow(2,ie)||ve<0||ve>=Math.pow(2,ie))}(M,D,X))throw new Error(`x=${D}, y=${X}, z=${M} outside of bounds. 0<=x<${Math.pow(2,M)}, 0<=y<${Math.pow(2,M)} 0<=z<=25 `);this.z=M,this.x=D,this.y=X,this.key=Qx(0,M,M,D,X)}equals(M){return this.z===M.z&&this.x===M.x&&this.y===M.y}url(M,D,X){let ie=(we=this.y,We=this.z,ut=vv(256*(ve=this.x),256*(we=Math.pow(2,We)-we-1),We),Mt=vv(256*(ve+1),256*(we+1),We),ut[0]+","+ut[1]+","+Mt[0]+","+Mt[1]);var ve,we,We,ut,Mt;let $t=function(vr,Sr,Br){let Jr,li="";for(let Hi=vr;Hi>0;Hi--)Jr=1<1?"@2x":"").replace(/{quadkey}/g,$t).replace(/{bbox-epsg-3857}/g,ie)}isChildOf(M){let D=this.z-M.z;return D>0&&M.x===this.x>>D&&M.y===this.y>>D}getTilePoint(M){let D=Math.pow(2,this.z);return new l((M.x*D-this.x)*Wl,(M.y*D-this.y)*Wl)}toString(){return`${this.z}/${this.x}/${this.y}`}}class kC{constructor(M,D){this.wrap=M,this.canonical=D,this.key=Qx(M,D.z,D.z,D.x,D.y)}}class Jp{constructor(M,D,X,ie,ve){if(M= z; overscaledZ = ${M}; z = ${X}`);this.overscaledZ=M,this.wrap=D,this.canonical=new hM(X,+ie,+ve),this.key=Qx(D,M,X,ie,ve)}clone(){return new Jp(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(M){return this.overscaledZ===M.overscaledZ&&this.wrap===M.wrap&&this.canonical.equals(M.canonical)}scaledTo(M){if(M>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${M}; overscaledZ = ${this.overscaledZ}`);let D=this.canonical.z-M;return M>this.canonical.z?new Jp(M,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Jp(M,this.wrap,M,this.canonical.x>>D,this.canonical.y>>D)}calculateScaledKey(M,D){if(M>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${M}; overscaledZ = ${this.overscaledZ}`);let X=this.canonical.z-M;return M>this.canonical.z?Qx(this.wrap*+D,M,this.canonical.z,this.canonical.x,this.canonical.y):Qx(this.wrap*+D,M,M,this.canonical.x>>X,this.canonical.y>>X)}isChildOf(M){if(M.wrap!==this.wrap)return!1;let D=this.canonical.z-M.canonical.z;return M.overscaledZ===0||M.overscaledZ>D&&M.canonical.y===this.canonical.y>>D}children(M){if(this.overscaledZ>=M)return[new Jp(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let D=this.canonical.z+1,X=2*this.canonical.x,ie=2*this.canonical.y;return[new Jp(D,this.wrap,D,X,ie),new Jp(D,this.wrap,D,X+1,ie),new Jp(D,this.wrap,D,X,ie+1),new Jp(D,this.wrap,D,X+1,ie+1)]}isLessThan(M){return this.wrapM.wrap)&&(this.overscaledZM.overscaledZ)&&(this.canonical.xM.canonical.x)&&this.canonical.ythis.max&&(this.max=vr),vr=this.dim+1||D<-1||D>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(D+1)*this.stride+(M+1)}unpack(M,D,X){return M*this.redFactor+D*this.greenFactor+X*this.blueFactor-this.baseShift}getPixels(){return new Qn({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(M,D,X){if(this.dim!==M.dim)throw new Error("dem dimension mismatch");let ie=D*this.dim,ve=D*this.dim+this.dim,we=X*this.dim,We=X*this.dim+this.dim;switch(D){case-1:ie=ve-1;break;case 1:ve=ie+1}switch(X){case-1:we=We-1;break;case 1:We=we+1}let ut=-D*this.dim,Mt=-X*this.dim;for(let $t=we;$t=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${M} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[M]}}class dM{constructor(M,D,X,ie,ve){this.type="Feature",this._vectorTileFeature=M,M._z=D,M._x=X,M._y=ie,this.properties=M.properties,this.id=ve}get geometry(){return this._geometry===void 0&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(M){this._geometry=M}toJSON(){let M={geometry:this.geometry};for(let D in this)D!=="_geometry"&&D!=="_vectorTileFeature"&&(M[D]=this[D]);return M}}class fg{constructor(M,D){this.tileID=M,this.x=M.canonical.x,this.y=M.canonical.y,this.z=M.canonical.z,this.grid=new hi(Wl,16,0),this.grid3D=new hi(Wl,16,0),this.featureIndexArray=new Pu,this.promoteId=D}insert(M,D,X,ie,ve,we){let We=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(X,ie,ve);let ut=we?this.grid3D:this.grid;for(let Mt=0;Mt=0&&vr[3]>=0&&ut.insert(We,vr[0],vr[1],vr[2],vr[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new Nr.VectorTile(new tM(this.rawTileData)).layers,this.sourceLayerCoder=new LC(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(M,D,X,ie){this.loadVTLayers();let ve=M.params||{},we=Wl/M.tileSize/M.scale,We=Jn(ve.filter),ut=M.queryGeometry,Mt=M.queryPadding*we,$t=zC(ut),vr=this.grid.query($t.minX-Mt,$t.minY-Mt,$t.maxX+Mt,$t.maxY+Mt),Sr=zC(M.cameraQueryGeometry),Br=this.grid3D.query(Sr.minX-Mt,Sr.minY-Mt,Sr.maxX+Mt,Sr.maxY+Mt,(Hi,cn,Za,Rn)=>function(La,So,kl,mu,Iu){for(let yl of La)if(So<=yl.x&&kl<=yl.y&&mu>=yl.x&&Iu>=yl.y)return!0;let su=[new l(So,kl),new l(So,Iu),new l(mu,Iu),new l(mu,kl)];if(La.length>2){for(let yl of su)if(Bn(La,yl))return!0}for(let yl=0;yl(Rn||(Rn=uf(La)),So.queryIntersectsFeature(ut,La,kl,Rn,this.z,M.transform,we,M.pixelPosMatrix)))}return Jr}loadMatchingFeature(M,D,X,ie,ve,we,We,ut,Mt,$t,vr){let Sr=this.bucketLayerIDs[D];if(we&&!function(Hi,cn){for(let Za=0;Za=0)return!0;return!1}(we,Sr))return;let Br=this.sourceLayerCoder.decode(X),Jr=this.vtLayers[Br].feature(ie);if(ve.needGeometry){let Hi=df(Jr,!0);if(!ve.filter(new cs(this.tileID.overscaledZ),Hi,this.tileID.canonical))return}else if(!ve.filter(new cs(this.tileID.overscaledZ),Jr))return;let li=this.getId(Jr,Br);for(let Hi=0;Hi{let We=M instanceof Ll?M.get(we):null;return We&&We.evaluate?We.evaluate(D,X,ie):We})}function zC(I){let M=1/0,D=1/0,X=-1/0,ie=-1/0;for(let ve of I)M=Math.min(M,ve.x),D=Math.min(D,ve.y),X=Math.max(X,ve.x),ie=Math.max(ie,ve.y);return{minX:M,minY:D,maxX:X,maxY:ie}}function n9(I,M){return M-I}function IC(I,M,D,X,ie){let ve=[];for(let we=0;we=X&&vr.x>=X||($t.x>=X?$t=new l(X,$t.y+(X-$t.x)/(vr.x-$t.x)*(vr.y-$t.y))._round():vr.x>=X&&(vr=new l(X,$t.y+(X-$t.x)/(vr.x-$t.x)*(vr.y-$t.y))._round()),$t.y>=ie&&vr.y>=ie||($t.y>=ie?$t=new l($t.x+(ie-$t.y)/(vr.y-$t.y)*(vr.x-$t.x),ie)._round():vr.y>=ie&&(vr=new l($t.x+(ie-$t.y)/(vr.y-$t.y)*(vr.x-$t.x),ie)._round()),ut&&$t.equals(ut[ut.length-1])||(ut=[$t],ve.push(ut)),ut.push(vr)))))}}return ve}Si("FeatureIndex",fg,{omit:["rawTileData","sourceLayerCoder"]});class pm extends l{constructor(M,D,X,ie){super(M,D),this.angle=X,ie!==void 0&&(this.segment=ie)}clone(){return new pm(this.x,this.y,this.angle,this.segment)}}function pM(I,M,D,X,ie){if(M.segment===void 0||D===0)return!0;let ve=M,we=M.segment+1,We=0;for(;We>-D/2;){if(we--,we<0)return!1;We-=I[we].dist(ve),ve=I[we]}We+=I[we].dist(I[we+1]),we++;let ut=[],Mt=0;for(;WeX;)Mt-=ut.shift().angleDelta;if(Mt>ie)return!1;we++,We+=$t.dist(vr)}return!0}function RC(I){let M=0;for(let D=0;DMt){let Jr=(Mt-ut)/Br,li=ka.number(vr.x,Sr.x,Jr),Hi=ka.number(vr.y,Sr.y,Jr),cn=new pm(li,Hi,Sr.angleTo(vr),$t);return cn._round(),!we||pM(I,cn,We,we,M)?cn:void 0}ut+=Br}}function o9(I,M,D,X,ie,ve,we,We,ut){let Mt=DC(X,ve,we),$t=FC(X,ie),vr=$t*we,Sr=I[0].x===0||I[0].x===ut||I[0].y===0||I[0].y===ut;return M-vr=0&&La=0&&So=0&&Sr+Mt<=$t){let kl=new pm(La,So,Za,Jr);kl._round(),X&&!pM(I,kl,ve,X,ie)||Br.push(kl)}}vr+=cn}return We||Br.length||we||(Br=BC(I,vr/2,D,X,ie,ve,we,!0,ut)),Br}Si("Anchor",pm);let C1=kd;function OC(I,M,D,X){let ie=[],ve=I.image,we=ve.pixelRatio,We=ve.paddedRect.w-2*C1,ut=ve.paddedRect.h-2*C1,Mt={x1:I.left,y1:I.top,x2:I.right,y2:I.bottom},$t=ve.stretchX||[[0,We]],vr=ve.stretchY||[[0,ut]],Sr=(Xs,Lu)=>Xs+Lu[1]-Lu[0],Br=$t.reduce(Sr,0),Jr=vr.reduce(Sr,0),li=We-Br,Hi=ut-Jr,cn=0,Za=Br,Rn=0,La=Jr,So=0,kl=li,mu=0,Iu=Hi;if(ve.content&&X){let Xs=ve.content,Lu=Xs[2]-Xs[0],xu=Xs[3]-Xs[1];(ve.textFitWidth||ve.textFitHeight)&&(Mt=bC(I)),cn=vm($t,0,Xs[0]),Rn=vm(vr,0,Xs[1]),Za=vm($t,Xs[0],Xs[2]),La=vm(vr,Xs[1],Xs[3]),So=Xs[0]-cn,mu=Xs[1]-Rn,kl=Lu-Za,Iu=xu-La}let su=Mt.x1,yl=Mt.y1,Eu=Mt.x2-su,bu=Mt.y2-yl,_u=(Xs,Lu,xu,qu)=>{let vc=Bw(Xs.stretch-cn,Za,Eu,su),cc=L1(Xs.fixed-So,kl,Xs.stretch,Br),Ch=Bw(Lu.stretch-Rn,La,bu,yl),$p=L1(Lu.fixed-mu,Iu,Lu.stretch,Jr),ud=Bw(xu.stretch-cn,Za,Eu,su),Lh=L1(xu.fixed-So,kl,xu.stretch,Br),Wd=Bw(qu.stretch-Rn,La,bu,yl),jd=L1(qu.fixed-mu,Iu,qu.stretch,Jr),Xd=new l(vc,Ch),Jc=new l(ud,Ch),Ph=new l(ud,Wd),Cd=new l(vc,Wd),fd=new l(cc/we,$p/we),Xh=new l(Lh/we,jd/we),rh=M*Math.PI/180;if(rh){let jf=Math.sin(rh),Ac=Math.cos(rh),mc=[Ac,-jf,jf,Ac];Xd._matMult(mc),Jc._matMult(mc),Cd._matMult(mc),Ph._matMult(mc)}let zp=Xs.stretch+Xs.fixed,fp=Lu.stretch+Lu.fixed;return{tl:Xd,tr:Jc,bl:Cd,br:Ph,tex:{x:ve.paddedRect.x+C1+zp,y:ve.paddedRect.y+C1+fp,w:xu.stretch+xu.fixed-zp,h:qu.stretch+qu.fixed-fp},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:fd,pixelOffsetBR:Xh,minFontScaleX:kl/we/Eu,minFontScaleY:Iu/we/bu,isSDF:D}};if(X&&(ve.stretchX||ve.stretchY)){let Xs=qC($t,li,Br),Lu=qC(vr,Hi,Jr);for(let xu=0;xu0&&(li=Math.max(10,li),this.circleDiameter=li)}else{let Sr=!((vr=we.image)===null||vr===void 0)&&vr.content&&(we.image.textFitWidth||we.image.textFitHeight)?bC(we):{x1:we.left,y1:we.top,x2:we.right,y2:we.bottom};Sr.y1=Sr.y1*We-ut[0],Sr.y2=Sr.y2*We+ut[2],Sr.x1=Sr.x1*We-ut[3],Sr.x2=Sr.x2*We+ut[1];let Br=we.collisionPadding;if(Br&&(Sr.x1-=Br[0]*We,Sr.y1-=Br[1]*We,Sr.x2+=Br[2]*We,Sr.y2+=Br[3]*We),$t){let Jr=new l(Sr.x1,Sr.y1),li=new l(Sr.x2,Sr.y1),Hi=new l(Sr.x1,Sr.y2),cn=new l(Sr.x2,Sr.y2),Za=$t*Math.PI/180;Jr._rotate(Za),li._rotate(Za),Hi._rotate(Za),cn._rotate(Za),Sr.x1=Math.min(Jr.x,li.x,Hi.x,cn.x),Sr.x2=Math.max(Jr.x,li.x,Hi.x,cn.x),Sr.y1=Math.min(Jr.y,li.y,Hi.y,cn.y),Sr.y2=Math.max(Jr.y,li.y,Hi.y,cn.y)}M.emplaceBack(D.x,D.y,Sr.x1,Sr.y1,Sr.x2,Sr.y2,X,ie,ve)}this.boxEndIndex=M.length}}class Vv{constructor(M=[],D=(X,ie)=>Xie?1:0){if(this.data=M,this.length=this.data.length,this.compare=D,this.length>0)for(let X=(this.length>>1)-1;X>=0;X--)this._down(X)}push(M){this.data.push(M),this._up(this.length++)}pop(){if(this.length===0)return;let M=this.data[0],D=this.data.pop();return--this.length>0&&(this.data[0]=D,this._down(0)),M}peek(){return this.data[0]}_up(M){let{data:D,compare:X}=this,ie=D[M];for(;M>0;){let ve=M-1>>1,we=D[ve];if(X(ie,we)>=0)break;D[M]=we,M=ve}D[M]=ie}_down(M){let{data:D,compare:X}=this,ie=this.length>>1,ve=D[M];for(;M=0)break;D[M]=D[we],M=we}D[M]=ve}}function s9(I,M=1,D=!1){let X=1/0,ie=1/0,ve=-1/0,we=-1/0,We=I[0];for(let Br=0;Brve)&&(ve=Jr.x),(!Br||Jr.y>we)&&(we=Jr.y)}let ut=Math.min(ve-X,we-ie),Mt=ut/2,$t=new Vv([],l9);if(ut===0)return new l(X,ie);for(let Br=X;Brvr.d||!vr.d)&&(vr=Br,D&&console.log("found best %d after %d probes",Math.round(1e4*Br.d)/1e4,Sr)),Br.max-vr.d<=M||(Mt=Br.h/2,$t.push(new P1(Br.p.x-Mt,Br.p.y-Mt,Mt,I)),$t.push(new P1(Br.p.x+Mt,Br.p.y-Mt,Mt,I)),$t.push(new P1(Br.p.x-Mt,Br.p.y+Mt,Mt,I)),$t.push(new P1(Br.p.x+Mt,Br.p.y+Mt,Mt,I)),Sr+=4)}return D&&(console.log(`num probes: ${Sr}`),console.log(`best distance: ${vr.d}`)),vr.p}function l9(I,M){return M.max-I.max}function P1(I,M,D,X){this.p=new l(I,M),this.h=D,this.d=function(ie,ve){let we=!1,We=1/0;for(let ut=0;utie.y!=Jr.y>ie.y&&ie.x<(Jr.x-Br.x)*(ie.y-Br.y)/(Jr.y-Br.y)+Br.x&&(we=!we),We=Math.min(We,pi(ie,Br,Jr))}}return(we?1:-1)*Math.sqrt(We)}(this.p,X),this.max=this.d+this.h*Math.SQRT2}var ld;i.aq=void 0,(ld=i.aq||(i.aq={}))[ld.center=1]="center",ld[ld.left=2]="left",ld[ld.right=3]="right",ld[ld.top=4]="top",ld[ld.bottom=5]="bottom",ld[ld["top-left"]=6]="top-left",ld[ld["top-right"]=7]="top-right",ld[ld["bottom-left"]=8]="bottom-left",ld[ld["bottom-right"]=9]="bottom-right";let cy=7,cg=Number.POSITIVE_INFINITY;function vM(I,M){return M[1]!==cg?function(D,X,ie){let ve=0,we=0;switch(X=Math.abs(X),ie=Math.abs(ie),D){case"top-right":case"top-left":case"top":we=ie-cy;break;case"bottom-right":case"bottom-left":case"bottom":we=-ie+cy}switch(D){case"top-right":case"bottom-right":case"right":ve=-X;break;case"top-left":case"bottom-left":case"left":ve=X}return[ve,we]}(I,M[0],M[1]):function(D,X){let ie=0,ve=0;X<0&&(X=0);let we=X/Math.SQRT2;switch(D){case"top-right":case"top-left":ve=we-cy;break;case"bottom-right":case"bottom-left":ve=-we+cy;break;case"bottom":ve=-X+cy;break;case"top":ve=X-cy}switch(D){case"top-right":case"bottom-right":ie=-we;break;case"top-left":case"bottom-left":ie=we;break;case"left":ie=X;break;case"right":ie=-X}return[ie,ve]}(I,M[0])}function NC(I,M,D){var X;let ie=I.layout,ve=(X=ie.get("text-variable-anchor-offset"))===null||X===void 0?void 0:X.evaluate(M,{},D);if(ve){let We=ve.values,ut=[];for(let Mt=0;MtSr*Wf);$t.startsWith("top")?vr[1]-=cy:$t.startsWith("bottom")&&(vr[1]+=cy),ut[Mt+1]=vr}return new jr(ut)}let we=ie.get("text-variable-anchor");if(we){let We;We=I._unevaluatedLayout.getValue("text-radial-offset")!==void 0?[ie.get("text-radial-offset").evaluate(M,{},D)*Wf,cg]:ie.get("text-offset").evaluate(M,{},D).map(Mt=>Mt*Wf);let ut=[];for(let Mt of we)ut.push(Mt,vM(Mt,We));return new jr(ut)}return null}function mM(I){switch(I){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function u9(I,M,D,X,ie,ve,we,We,ut,Mt,$t){let vr=ve.textMaxSize.evaluate(M,{});vr===void 0&&(vr=we);let Sr=I.layers[0].layout,Br=Sr.get("icon-offset").evaluate(M,{},$t),Jr=VC(D.horizontal),li=we/24,Hi=I.tilePixelRatio*li,cn=I.tilePixelRatio*vr/24,Za=I.tilePixelRatio*We,Rn=I.tilePixelRatio*Sr.get("symbol-spacing"),La=Sr.get("text-padding")*I.tilePixelRatio,So=function(Xs,Lu,xu,qu=1){let vc=Xs.get("icon-padding").evaluate(Lu,{},xu),cc=vc&&vc.values;return[cc[0]*qu,cc[1]*qu,cc[2]*qu,cc[3]*qu]}(Sr,M,$t,I.tilePixelRatio),kl=Sr.get("text-max-angle")/180*Math.PI,mu=Sr.get("text-rotation-alignment")!=="viewport"&&Sr.get("symbol-placement")!=="point",Iu=Sr.get("icon-rotation-alignment")==="map"&&Sr.get("symbol-placement")!=="point",su=Sr.get("symbol-placement"),yl=Rn/2,Eu=Sr.get("icon-text-fit"),bu;X&&Eu!=="none"&&(I.allowVerticalPlacement&&D.vertical&&(bu=wC(X,D.vertical,Eu,Sr.get("icon-text-fit-padding"),Br,li)),Jr&&(X=wC(X,Jr,Eu,Sr.get("icon-text-fit-padding"),Br,li)));let _u=(Xs,Lu)=>{Lu.x<0||Lu.x>=Wl||Lu.y<0||Lu.y>=Wl||function(xu,qu,vc,cc,Ch,$p,ud,Lh,Wd,jd,Xd,Jc,Ph,Cd,fd,Xh,rh,zp,fp,jf,Ac,mc,Ip,Hc,z1){let v0=xu.addToLineVertexArray(qu,vc),Gv,Qp,Rc,fh,ev=0,mm=0,cp=0,I1=0,bM=-1,Uw=-1,m0={},hg=fn("");if(xu.allowVerticalPlacement&&cc.vertical){let Ld=Lh.layout.get("text-rotate").evaluate(Ac,{},Hc)+90;Rc=new fy(Wd,qu,jd,Xd,Jc,cc.vertical,Ph,Cd,fd,Ld),ud&&(fh=new fy(Wd,qu,jd,Xd,Jc,ud,rh,zp,fd,Ld))}if(Ch){let Ld=Lh.layout.get("icon-rotate").evaluate(Ac,{}),tv=Lh.layout.get("icon-text-fit")!=="none",hy=OC(Ch,Ld,Ip,tv),Zd=ud?OC(ud,Ld,Ip,tv):void 0;Qp=new fy(Wd,qu,jd,Xd,Jc,Ch,rh,zp,!1,Ld),ev=4*hy.length;let Pd=xu.iconSizeData,yv=null;Pd.kind==="source"?(yv=[p0*Lh.layout.get("icon-size").evaluate(Ac,{})],yv[0]>ly&&A(`${xu.layerIds[0]}: Value for "icon-size" is >= ${jx}. Reduce your "icon-size".`)):Pd.kind==="composite"&&(yv=[p0*mc.compositeIconSizes[0].evaluate(Ac,{},Hc),p0*mc.compositeIconSizes[1].evaluate(Ac,{},Hc)],(yv[0]>ly||yv[1]>ly)&&A(`${xu.layerIds[0]}: Value for "icon-size" is >= ${jx}. Reduce your "icon-size".`)),xu.addSymbols(xu.icon,hy,yv,jf,fp,Ac,i.ah.none,qu,v0.lineStartIndex,v0.lineLength,-1,Hc),bM=xu.icon.placedSymbolArray.length-1,Zd&&(mm=4*Zd.length,xu.addSymbols(xu.icon,Zd,yv,jf,fp,Ac,i.ah.vertical,qu,v0.lineStartIndex,v0.lineLength,-1,Hc),Uw=xu.icon.placedSymbolArray.length-1)}let Zh=Object.keys(cc.horizontal);for(let Ld of Zh){let tv=cc.horizontal[Ld];if(!Gv){hg=fn(tv.text);let Zd=Lh.layout.get("text-rotate").evaluate(Ac,{},Hc);Gv=new fy(Wd,qu,jd,Xd,Jc,tv,Ph,Cd,fd,Zd)}let hy=tv.positionedLines.length===1;if(cp+=UC(xu,qu,tv,$p,Lh,fd,Ac,Xh,v0,cc.vertical?i.ah.horizontal:i.ah.horizontalOnly,hy?Zh:[Ld],m0,bM,mc,Hc),hy)break}cc.vertical&&(I1+=UC(xu,qu,cc.vertical,$p,Lh,fd,Ac,Xh,v0,i.ah.vertical,["vertical"],m0,Uw,mc,Hc));let h9=Gv?Gv.boxStartIndex:xu.collisionBoxArray.length,Vw=Gv?Gv.boxEndIndex:xu.collisionBoxArray.length,y0=Rc?Rc.boxStartIndex:xu.collisionBoxArray.length,hp=Rc?Rc.boxEndIndex:xu.collisionBoxArray.length,jC=Qp?Qp.boxStartIndex:xu.collisionBoxArray.length,d9=Qp?Qp.boxEndIndex:xu.collisionBoxArray.length,XC=fh?fh.boxStartIndex:xu.collisionBoxArray.length,p9=fh?fh.boxEndIndex:xu.collisionBoxArray.length,mv=-1,rb=(Ld,tv)=>Ld&&Ld.circleDiameter?Math.max(Ld.circleDiameter,tv):tv;mv=rb(Gv,mv),mv=rb(Rc,mv),mv=rb(Qp,mv),mv=rb(fh,mv);let Gw=mv>-1?1:0;Gw&&(mv*=z1/Wf),xu.glyphOffsetArray.length>=E1.MAX_GLYPHS&&A("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Ac.sortKey!==void 0&&xu.addToSortKeyRanges(xu.symbolInstances.length,Ac.sortKey);let wM=NC(Lh,Ac,Hc),[v9,m9]=function(Ld,tv){let hy=Ld.length,Zd=tv==null?void 0:tv.values;if((Zd==null?void 0:Zd.length)>0)for(let Pd=0;Pd=0?m0.right:-1,m0.center>=0?m0.center:-1,m0.left>=0?m0.left:-1,m0.vertical||-1,bM,Uw,hg,h9,Vw,y0,hp,jC,d9,XC,p9,jd,cp,I1,ev,mm,Gw,0,Ph,mv,v9,m9)}(I,Lu,Xs,D,X,ie,bu,I.layers[0],I.collisionBoxArray,M.index,M.sourceLayerIndex,I.index,Hi,[La,La,La,La],mu,ut,Za,So,Iu,Br,M,ve,Mt,$t,we)};if(su==="line")for(let Xs of IC(M.geometry,0,0,Wl,Wl)){let Lu=o9(Xs,Rn,kl,D.vertical||Jr,X,24,cn,I.overscaling,Wl);for(let xu of Lu)Jr&&f9(I,Jr.text,yl,xu)||_u(Xs,xu)}else if(su==="line-center"){for(let Xs of M.geometry)if(Xs.length>1){let Lu=a9(Xs,kl,D.vertical||Jr,X,24,cn);Lu&&_u(Xs,Lu)}}else if(M.type==="Polygon")for(let Xs of Ys(M.geometry,0)){let Lu=s9(Xs,16);_u(Xs[0],new pm(Lu.x,Lu.y,0))}else if(M.type==="LineString")for(let Xs of M.geometry)_u(Xs,new pm(Xs[0].x,Xs[0].y,0));else if(M.type==="Point")for(let Xs of M.geometry)for(let Lu of Xs)_u([Lu],new pm(Lu.x,Lu.y,0))}function UC(I,M,D,X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr){let li=function(Za,Rn,La,So,kl,mu,Iu,su){let yl=So.layout.get("text-rotate").evaluate(mu,{})*Math.PI/180,Eu=[];for(let bu of Rn.positionedLines)for(let _u of bu.positionedGlyphs){if(!_u.rect)continue;let Xs=_u.rect||{},Lu=yC+1,xu=!0,qu=1,vc=0,cc=(kl||su)&&_u.vertical,Ch=_u.metrics.advance*_u.scale/2;if(su&&Rn.verticalizable&&(vc=bu.lineOffset/2-(_u.imageName?-(Wf-_u.metrics.width*_u.scale)/2:(_u.scale-1)*Wf)),_u.imageName){let jf=Iu[_u.imageName];xu=jf.sdf,qu=jf.pixelRatio,Lu=kd/qu}let $p=kl?[_u.x+Ch,_u.y]:[0,0],ud=kl?[0,0]:[_u.x+Ch+La[0],_u.y+La[1]-vc],Lh=[0,0];cc&&(Lh=ud,ud=[0,0]);let Wd=_u.metrics.isDoubleResolution?2:1,jd=(_u.metrics.left-Lu)*_u.scale-Ch+ud[0],Xd=(-_u.metrics.top-Lu)*_u.scale+ud[1],Jc=jd+Xs.w/Wd*_u.scale/qu,Ph=Xd+Xs.h/Wd*_u.scale/qu,Cd=new l(jd,Xd),fd=new l(Jc,Xd),Xh=new l(jd,Ph),rh=new l(Jc,Ph);if(cc){let jf=new l(-Ch,Ch-kh),Ac=-Math.PI/2,mc=Wf/2-Ch,Ip=new l(5-kh-mc,-(_u.imageName?mc:0)),Hc=new l(...Lh);Cd._rotateAround(Ac,jf)._add(Ip)._add(Hc),fd._rotateAround(Ac,jf)._add(Ip)._add(Hc),Xh._rotateAround(Ac,jf)._add(Ip)._add(Hc),rh._rotateAround(Ac,jf)._add(Ip)._add(Hc)}if(yl){let jf=Math.sin(yl),Ac=Math.cos(yl),mc=[Ac,-jf,jf,Ac];Cd._matMult(mc),fd._matMult(mc),Xh._matMult(mc),rh._matMult(mc)}let zp=new l(0,0),fp=new l(0,0);Eu.push({tl:Cd,tr:fd,bl:Xh,br:rh,tex:Xs,writingMode:Rn.writingMode,glyphOffset:$p,sectionIndex:_u.sectionIndex,isSDF:xu,pixelOffsetTL:zp,pixelOffsetBR:fp,minFontScaleX:0,minFontScaleY:0})}return Eu}(0,D,We,ie,ve,we,X,I.allowVerticalPlacement),Hi=I.textSizeData,cn=null;Hi.kind==="source"?(cn=[p0*ie.layout.get("text-size").evaluate(we,{})],cn[0]>ly&&A(`${I.layerIds[0]}: Value for "text-size" is >= ${jx}. Reduce your "text-size".`)):Hi.kind==="composite"&&(cn=[p0*Br.compositeTextSizes[0].evaluate(we,{},Jr),p0*Br.compositeTextSizes[1].evaluate(we,{},Jr)],(cn[0]>ly||cn[1]>ly)&&A(`${I.layerIds[0]}: Value for "text-size" is >= ${jx}. Reduce your "text-size".`)),I.addSymbols(I.text,li,cn,We,ve,we,Mt,M,ut.lineStartIndex,ut.lineLength,Sr,Jr);for(let Za of $t)vr[Za]=I.text.placedSymbolArray.length-1;return 4*li.length}function VC(I){for(let M in I)return I[M];return null}function f9(I,M,D,X){let ie=I.compareText;if(M in ie){let ve=ie[M];for(let we=ve.length-1;we>=0;we--)if(X.dist(ve[we])>4;if(ie!==1)throw new Error(`Got v${ie} data when expected v1.`);let ve=GC[15&X];if(!ve)throw new Error("Unrecognized array type.");let[we]=new Uint16Array(M,2,1),[We]=new Uint32Array(M,4,1);return new yM(We,we,ve,M)}constructor(M,D=64,X=Float64Array,ie){if(isNaN(M)||M<0)throw new Error(`Unpexpected numItems value: ${M}.`);this.numItems=+M,this.nodeSize=Math.min(Math.max(+D,2),65535),this.ArrayType=X,this.IndexArrayType=M<65536?Uint16Array:Uint32Array;let ve=GC.indexOf(this.ArrayType),we=2*M*this.ArrayType.BYTES_PER_ELEMENT,We=M*this.IndexArrayType.BYTES_PER_ELEMENT,ut=(8-We%8)%8;if(ve<0)throw new Error(`Unexpected typed array class: ${X}.`);ie&&ie instanceof ArrayBuffer?(this.data=ie,this.ids=new this.IndexArrayType(this.data,8,M),this.coords=new this.ArrayType(this.data,8+We+ut,2*M),this._pos=2*M,this._finished=!0):(this.data=new ArrayBuffer(8+we+We+ut),this.ids=new this.IndexArrayType(this.data,8,M),this.coords=new this.ArrayType(this.data,8+We+ut,2*M),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+ve]),new Uint16Array(this.data,2,1)[0]=D,new Uint32Array(this.data,4,1)[0]=M)}add(M,D){let X=this._pos>>1;return this.ids[X]=X,this.coords[this._pos++]=M,this.coords[this._pos++]=D,X}finish(){let M=this._pos>>1;if(M!==this.numItems)throw new Error(`Added ${M} items when expected ${this.numItems}.`);return Ow(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(M,D,X,ie){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:ve,coords:we,nodeSize:We}=this,ut=[0,ve.length-1,0],Mt=[];for(;ut.length;){let $t=ut.pop()||0,vr=ut.pop()||0,Sr=ut.pop()||0;if(vr-Sr<=We){for(let Hi=Sr;Hi<=vr;Hi++){let cn=we[2*Hi],Za=we[2*Hi+1];cn>=M&&cn<=X&&Za>=D&&Za<=ie&&Mt.push(ve[Hi])}continue}let Br=Sr+vr>>1,Jr=we[2*Br],li=we[2*Br+1];Jr>=M&&Jr<=X&&li>=D&&li<=ie&&Mt.push(ve[Br]),($t===0?M<=Jr:D<=li)&&(ut.push(Sr),ut.push(Br-1),ut.push(1-$t)),($t===0?X>=Jr:ie>=li)&&(ut.push(Br+1),ut.push(vr),ut.push(1-$t))}return Mt}within(M,D,X){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:ie,coords:ve,nodeSize:we}=this,We=[0,ie.length-1,0],ut=[],Mt=X*X;for(;We.length;){let $t=We.pop()||0,vr=We.pop()||0,Sr=We.pop()||0;if(vr-Sr<=we){for(let Hi=Sr;Hi<=vr;Hi++)WC(ve[2*Hi],ve[2*Hi+1],M,D)<=Mt&&ut.push(ie[Hi]);continue}let Br=Sr+vr>>1,Jr=ve[2*Br],li=ve[2*Br+1];WC(Jr,li,M,D)<=Mt&&ut.push(ie[Br]),($t===0?M-X<=Jr:D-X<=li)&&(We.push(Sr),We.push(Br-1),We.push(1-$t)),($t===0?M+X>=Jr:D+X>=li)&&(We.push(Br+1),We.push(vr),We.push(1-$t))}return ut}}function Ow(I,M,D,X,ie,ve){if(ie-X<=D)return;let we=X+ie>>1;HC(I,M,we,X,ie,ve),Ow(I,M,D,X,we-1,1-ve),Ow(I,M,D,we+1,ie,1-ve)}function HC(I,M,D,X,ie,ve){for(;ie>X;){if(ie-X>600){let Mt=ie-X+1,$t=D-X+1,vr=Math.log(Mt),Sr=.5*Math.exp(2*vr/3),Br=.5*Math.sqrt(vr*Sr*(Mt-Sr)/Mt)*($t-Mt/2<0?-1:1);HC(I,M,D,Math.max(X,Math.floor(D-$t*Sr/Mt+Br)),Math.min(ie,Math.floor(D+(Mt-$t)*Sr/Mt+Br)),ve)}let we=M[2*D+ve],We=X,ut=ie;for(eb(I,M,X,D),M[2*ie+ve]>we&&eb(I,M,X,ie);Wewe;)ut--}M[2*X+ve]===we?eb(I,M,X,ut):(ut++,eb(I,M,ut,ie)),ut<=D&&(X=ut+1),D<=ut&&(ie=ut-1)}}function eb(I,M,D,X){gM(I,D,X),gM(M,2*D,2*X),gM(M,2*D+1,2*X+1)}function gM(I,M,D){let X=I[M];I[M]=I[D],I[D]=X}function WC(I,M,D,X){let ie=I-D,ve=M-X;return ie*ie+ve*ve}var qw;i.bg=void 0,(qw=i.bg||(i.bg={})).create="create",qw.load="load",qw.fullLoad="fullLoad";let tb=null,mh=[],_M=1e3/60,xM="loadTime",Nw="fullLoadTime",c9={mark(I){performance.mark(I)},frame(I){let M=I;tb!=null&&mh.push(M-tb),tb=M},clearMetrics(){tb=null,mh=[],performance.clearMeasures(xM),performance.clearMeasures(Nw);for(let I in i.bg)performance.clearMarks(i.bg[I])},getPerformanceMetrics(){performance.measure(xM,i.bg.create,i.bg.load),performance.measure(Nw,i.bg.create,i.bg.fullLoad);let I=performance.getEntriesByName(xM)[0].duration,M=performance.getEntriesByName(Nw)[0].duration,D=mh.length,X=1/(mh.reduce((ve,we)=>ve+we,0)/D/1e3),ie=mh.filter(ve=>ve>_M).reduce((ve,we)=>ve+(we-_M)/_M,0);return{loadTime:I,fullLoadTime:M,fps:X,percentDroppedFrames:ie/(D+ie)*100,totalFrames:D}}};i.$=class extends ir{},i.A=dn,i.B=ki,i.C=function(I){if(U==null){let M=I.navigator?I.navigator.userAgent:null;U=!!I.safari||!(!M||!(/\b(iPad|iPhone|iPod)\b/.test(M)||M.match("Safari")&&!M.match("Chrome")))}return U},i.D=ms,i.E=Ve,i.F=class{constructor(I,M){this.target=I,this.mapId=M,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new fM(()=>this.process()),this.subscription=function(D,X,ie,ve){return D.addEventListener(X,ie,!1),{unsubscribe:()=>{D.removeEventListener(X,ie,!1)}}}(this.target,"message",D=>this.receive(D)),this.globalScope=F(self)?I:window}registerMessageHandler(I,M){this.messageHandlers[I]=M}sendAsync(I,M){return new Promise((D,X)=>{let ie=Math.round(1e18*Math.random()).toString(36).substring(0,10);this.resolveRejects[ie]={resolve:D,reject:X},M&&M.signal.addEventListener("abort",()=>{delete this.resolveRejects[ie];let We={id:ie,type:"",origin:location.origin,targetMapId:I.targetMapId,sourceMapId:this.mapId};this.target.postMessage(We)},{once:!0});let ve=[],we=Object.assign(Object.assign({},I),{id:ie,sourceMapId:this.mapId,origin:location.origin,data:ia(I.data,ve)});this.target.postMessage(we,{transfer:ve})})}receive(I){let M=I.data,D=M.id;if(!(M.origin!=="file://"&&location.origin!=="file://"&&M.origin!=="resource://android"&&location.origin!=="resource://android"&&M.origin!==location.origin||M.targetMapId&&this.mapId!==M.targetMapId)){if(M.type===""){delete this.tasks[D];let X=this.abortControllers[D];return delete this.abortControllers[D],void(X&&X.abort())}if(F(self)||M.mustQueue)return this.tasks[D]=M,this.taskQueue.push(D),void this.invoker.trigger();this.processTask(D,M)}}process(){if(this.taskQueue.length===0)return;let I=this.taskQueue.shift(),M=this.tasks[I];delete this.tasks[I],this.taskQueue.length>0&&this.invoker.trigger(),M&&this.processTask(I,M)}processTask(I,M){return a(this,void 0,void 0,function*(){if(M.type===""){let ie=this.resolveRejects[I];return delete this.resolveRejects[I],ie?void(M.error?ie.reject(pa(M.error)):ie.resolve(pa(M.data))):void 0}if(!this.messageHandlers[M.type])return void this.completeTask(I,new Error(`Could not find a registered handler for ${M.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));let D=pa(M.data),X=new AbortController;this.abortControllers[I]=X;try{let ie=yield this.messageHandlers[M.type](M.sourceMapId,D,X);this.completeTask(I,null,ie)}catch(ie){this.completeTask(I,ie)}})}completeTask(I,M,D){let X=[];delete this.abortControllers[I];let ie={id:I,type:"",sourceMapId:this.mapId,origin:location.origin,error:M?ia(M):null,data:ia(D,X)};this.target.postMessage(ie,{transfer:X})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},i.G=Le,i.H=function(){var I=new dn(16);return dn!=Float32Array&&(I[1]=0,I[2]=0,I[3]=0,I[4]=0,I[6]=0,I[7]=0,I[8]=0,I[9]=0,I[11]=0,I[12]=0,I[13]=0,I[14]=0),I[0]=1,I[5]=1,I[10]=1,I[15]=1,I},i.I=kw,i.J=function(I,M,D){var X,ie,ve,we,We,ut,Mt,$t,vr,Sr,Br,Jr,li=D[0],Hi=D[1],cn=D[2];return M===I?(I[12]=M[0]*li+M[4]*Hi+M[8]*cn+M[12],I[13]=M[1]*li+M[5]*Hi+M[9]*cn+M[13],I[14]=M[2]*li+M[6]*Hi+M[10]*cn+M[14],I[15]=M[3]*li+M[7]*Hi+M[11]*cn+M[15]):(ie=M[1],ve=M[2],we=M[3],We=M[4],ut=M[5],Mt=M[6],$t=M[7],vr=M[8],Sr=M[9],Br=M[10],Jr=M[11],I[0]=X=M[0],I[1]=ie,I[2]=ve,I[3]=we,I[4]=We,I[5]=ut,I[6]=Mt,I[7]=$t,I[8]=vr,I[9]=Sr,I[10]=Br,I[11]=Jr,I[12]=X*li+We*Hi+vr*cn+M[12],I[13]=ie*li+ut*Hi+Sr*cn+M[13],I[14]=ve*li+Mt*Hi+Br*cn+M[14],I[15]=we*li+$t*Hi+Jr*cn+M[15]),I},i.K=function(I,M,D){var X=D[0],ie=D[1],ve=D[2];return I[0]=M[0]*X,I[1]=M[1]*X,I[2]=M[2]*X,I[3]=M[3]*X,I[4]=M[4]*ie,I[5]=M[5]*ie,I[6]=M[6]*ie,I[7]=M[7]*ie,I[8]=M[8]*ve,I[9]=M[9]*ve,I[10]=M[10]*ve,I[11]=M[11]*ve,I[12]=M[12],I[13]=M[13],I[14]=M[14],I[15]=M[15],I},i.L=Yi,i.M=function(I,M){let D={};for(let X=0;X{let M=window.document.createElement("video");return M.muted=!0,new Promise(D=>{M.onloadstart=()=>{D(M)};for(let X of I){let ie=window.document.createElement("source");Ee(X)||(M.crossOrigin="Anonymous"),ie.src=X,M.appendChild(ie)}})},i.a4=function(){return _++},i.a5=Ua,i.a6=E1,i.a7=Jn,i.a8=df,i.a9=dM,i.aA=function(I){if(I.type==="custom")return new uM(I);switch(I.type){case"background":return new i9(I);case"circle":return new $i(I);case"fill":return new Ot(I);case"fill-extrusion":return new Ad(I);case"heatmap":return new pl(I);case"hillshade":return new mf(I);case"line":return new ag(I);case"raster":return new Kx(I);case"symbol":return new ug(I)}},i.aB=m,i.aC=function(I,M){if(!I)return[{command:"setStyle",args:[M]}];let D=[];try{if(!gt(I.version,M.version))return[{command:"setStyle",args:[M]}];gt(I.center,M.center)||D.push({command:"setCenter",args:[M.center]}),gt(I.zoom,M.zoom)||D.push({command:"setZoom",args:[M.zoom]}),gt(I.bearing,M.bearing)||D.push({command:"setBearing",args:[M.bearing]}),gt(I.pitch,M.pitch)||D.push({command:"setPitch",args:[M.pitch]}),gt(I.sprite,M.sprite)||D.push({command:"setSprite",args:[M.sprite]}),gt(I.glyphs,M.glyphs)||D.push({command:"setGlyphs",args:[M.glyphs]}),gt(I.transition,M.transition)||D.push({command:"setTransition",args:[M.transition]}),gt(I.light,M.light)||D.push({command:"setLight",args:[M.light]}),gt(I.terrain,M.terrain)||D.push({command:"setTerrain",args:[M.terrain]}),gt(I.sky,M.sky)||D.push({command:"setSky",args:[M.sky]}),gt(I.projection,M.projection)||D.push({command:"setProjection",args:[M.projection]});let X={},ie=[];(function(we,We,ut,Mt){let $t;for($t in We=We||{},we=we||{})Object.prototype.hasOwnProperty.call(we,$t)&&(Object.prototype.hasOwnProperty.call(We,$t)||Ye($t,ut,Mt));for($t in We)Object.prototype.hasOwnProperty.call(We,$t)&&(Object.prototype.hasOwnProperty.call(we,$t)?gt(we[$t],We[$t])||(we[$t].type==="geojson"&&We[$t].type==="geojson"&&Tt(we,We,$t)?Nt(ut,{command:"setGeoJSONSourceData",args:[$t,We[$t].data]}):kt($t,We,ut,Mt)):it($t,We,ut))})(I.sources,M.sources,ie,X);let ve=[];I.layers&&I.layers.forEach(we=>{"source"in we&&X[we.source]?D.push({command:"removeLayer",args:[we.id]}):ve.push(we)}),D=D.concat(ie),function(we,We,ut){We=We||[];let Mt=(we=we||[]).map(Dt),$t=We.map(Dt),vr=we.reduce(Zt,{}),Sr=We.reduce(Zt,{}),Br=Mt.slice(),Jr=Object.create(null),li,Hi,cn,Za,Rn;for(let La=0,So=0;La@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(D,X,ie,ve)=>{let we=ie||ve;return M[X]=!we||we.toLowerCase(),""}),M["max-age"]){let D=parseInt(M["max-age"],10);isNaN(D)?delete M["max-age"]:M["max-age"]=D}return M},i.ab=function(I,M){let D=[];for(let X in I)X in M||D.push(X);return D},i.ac=E,i.ad=function(I,M,D){var X=Math.sin(D),ie=Math.cos(D),ve=M[0],we=M[1],We=M[2],ut=M[3],Mt=M[4],$t=M[5],vr=M[6],Sr=M[7];return M!==I&&(I[8]=M[8],I[9]=M[9],I[10]=M[10],I[11]=M[11],I[12]=M[12],I[13]=M[13],I[14]=M[14],I[15]=M[15]),I[0]=ve*ie+Mt*X,I[1]=we*ie+$t*X,I[2]=We*ie+vr*X,I[3]=ut*ie+Sr*X,I[4]=Mt*ie-ve*X,I[5]=$t*ie-we*X,I[6]=vr*ie-We*X,I[7]=Sr*ie-ut*X,I},i.ae=function(I){var M=new dn(16);return M[0]=I[0],M[1]=I[1],M[2]=I[2],M[3]=I[3],M[4]=I[4],M[5]=I[5],M[6]=I[6],M[7]=I[7],M[8]=I[8],M[9]=I[9],M[10]=I[10],M[11]=I[11],M[12]=I[12],M[13]=I[13],M[14]=I[14],M[15]=I[15],M},i.af=hs,i.ag=function(I,M){let D=0,X=0;if(I.kind==="constant")X=I.layoutSize;else if(I.kind!=="source"){let{interpolationType:ie,minZoom:ve,maxZoom:we}=I,We=ie?E(so.interpolationFactor(ie,M,ve,we),0,1):0;I.kind==="camera"?X=ka.number(I.minSize,I.maxSize,We):D=We}return{uSizeT:D,uSize:X}},i.ai=function(I,{uSize:M,uSizeT:D},{lowerSize:X,upperSize:ie}){return I.kind==="source"?X/p0:I.kind==="composite"?ka.number(X/p0,ie/p0,D):M},i.aj=aM,i.ak=function(I,M,D,X){let ie=M.y-I.y,ve=M.x-I.x,we=X.y-D.y,We=X.x-D.x,ut=we*ve-We*ie;if(ut===0)return null;let Mt=(We*(I.y-D.y)-we*(I.x-D.x))/ut;return new l(I.x+Mt*ve,I.y+Mt*ie)},i.al=IC,i.am=fc,i.an=En,i.ao=function(I){let M=1/0,D=1/0,X=-1/0,ie=-1/0;for(let ve of I)M=Math.min(M,ve.x),D=Math.min(D,ve.y),X=Math.max(X,ve.x),ie=Math.max(ie,ve.y);return[M,D,X,ie]},i.ap=Wf,i.ar=nM,i.as=function(I,M){var D=M[0],X=M[1],ie=M[2],ve=M[3],we=M[4],We=M[5],ut=M[6],Mt=M[7],$t=M[8],vr=M[9],Sr=M[10],Br=M[11],Jr=M[12],li=M[13],Hi=M[14],cn=M[15],Za=D*We-X*we,Rn=D*ut-ie*we,La=D*Mt-ve*we,So=X*ut-ie*We,kl=X*Mt-ve*We,mu=ie*Mt-ve*ut,Iu=$t*li-vr*Jr,su=$t*Hi-Sr*Jr,yl=$t*cn-Br*Jr,Eu=vr*Hi-Sr*li,bu=vr*cn-Br*li,_u=Sr*cn-Br*Hi,Xs=Za*_u-Rn*bu+La*Eu+So*yl-kl*su+mu*Iu;return Xs?(I[0]=(We*_u-ut*bu+Mt*Eu)*(Xs=1/Xs),I[1]=(ie*bu-X*_u-ve*Eu)*Xs,I[2]=(li*mu-Hi*kl+cn*So)*Xs,I[3]=(Sr*kl-vr*mu-Br*So)*Xs,I[4]=(ut*yl-we*_u-Mt*su)*Xs,I[5]=(D*_u-ie*yl+ve*su)*Xs,I[6]=(Hi*La-Jr*mu-cn*Rn)*Xs,I[7]=($t*mu-Sr*La+Br*Rn)*Xs,I[8]=(we*bu-We*yl+Mt*Iu)*Xs,I[9]=(X*yl-D*bu-ve*Iu)*Xs,I[10]=(Jr*kl-li*La+cn*Za)*Xs,I[11]=(vr*La-$t*kl-Br*Za)*Xs,I[12]=(We*su-we*Eu-ut*Iu)*Xs,I[13]=(D*Eu-X*su+ie*Iu)*Xs,I[14]=(li*Rn-Jr*So-Hi*Za)*Xs,I[15]=($t*So-vr*Rn+Sr*Za)*Xs,I):null},i.at=mM,i.au=zw,i.av=yM,i.aw=function(){let I={},M=ce.$version;for(let D in ce.$root){let X=ce.$root[D];if(X.required){let ie=null;ie=D==="version"?M:X.type==="array"?[]:{},ie!=null&&(I[D]=ie)}}return I},i.ax=va,i.ay=te,i.az=function(I){I=I.slice();let M=Object.create(null);for(let D=0;D25||X<0||X>=1||D<0||D>=1)},i.bc=function(I,M){return I[0]=M[0],I[1]=0,I[2]=0,I[3]=0,I[4]=0,I[5]=M[1],I[6]=0,I[7]=0,I[8]=0,I[9]=0,I[10]=M[2],I[11]=0,I[12]=0,I[13]=0,I[14]=0,I[15]=1,I},i.bd=class extends Ft{},i.be=cM,i.bf=c9,i.bh=pe,i.bi=function(I,M){be.REGISTERED_PROTOCOLS[I]=M},i.bj=function(I){delete be.REGISTERED_PROTOCOLS[I]},i.bk=function(I,M){let D={};for(let ie=0;ie_u*Wf)}let su=we?"center":D.get("text-justify").evaluate(Mt,{},I.canonical),yl=D.get("symbol-placement")==="point"?D.get("text-max-width").evaluate(Mt,{},I.canonical)*Wf:1/0,Eu=()=>{I.bucket.allowVerticalPlacement&&is(La)&&(Jr.vertical=Hx(li,I.glyphMap,I.glyphPositions,I.imagePositions,$t,yl,ve,mu,"left",kl,cn,i.ah.vertical,!0,Sr,vr))};if(!we&&Iu){let bu=new Set;if(su==="auto")for(let Xs=0;Xsa(void 0,void 0,void 0,function*(){if(I.byteLength===0)return createImageBitmap(new ImageData(1,1));let M=new Blob([new Uint8Array(I)],{type:"image/png"});try{return createImageBitmap(M)}catch(D){throw new Error(`Could not load image because of ${D.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}}),i.e=L,i.f=I=>new Promise((M,D)=>{let X=new Image;X.onload=()=>{M(X),URL.revokeObjectURL(X.src),X.onload=null,window.requestAnimationFrame(()=>{X.src=j})},X.onerror=()=>D(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));let ie=new Blob([new Uint8Array(I)],{type:"image/png"});X.src=I.byteLength?URL.createObjectURL(ie):j}),i.g=Ce,i.h=(I,M)=>ke(L(I,{type:"json"}),M),i.i=F,i.j=ye,i.k=Fe,i.l=(I,M)=>ke(L(I,{type:"arrayBuffer"}),M),i.m=ke,i.n=function(I){return new tM(I).readFields(NQ,[])},i.o=ul,i.p=iM,i.q=le,i.r=Ti,i.s=Ee,i.t=Pi,i.u=gi,i.v=ce,i.w=A,i.x=function([I,M,D]){return M+=90,M*=Math.PI/180,D*=Math.PI/180,{x:I*Math.cos(M)*Math.sin(D),y:I*Math.sin(M)*Math.sin(D),z:I*Math.cos(D)}},i.y=ka,i.z=cs}),r("worker",["./shared"],function(i){"use strict";class a{constructor(xe){this.keyCache={},xe&&this.replace(xe)}replace(xe){this._layerConfigs={},this._layers={},this.update(xe,[])}update(xe,Oe){for(let De of xe){this._layerConfigs[De.id]=De;let ct=this._layers[De.id]=i.aA(De);ct._featureFilter=i.a7(ct.filter),this.keyCache[De.id]&&delete this.keyCache[De.id]}for(let De of Oe)delete this.keyCache[De],delete this._layerConfigs[De],delete this._layers[De];this.familiesBySource={};let Re=i.bk(Object.values(this._layerConfigs),this.keyCache);for(let De of Re){let ct=De.map(Pt=>this._layers[Pt.id]),ge=ct[0];if(ge.visibility==="none")continue;let fe=ge.source||"",de=this.familiesBySource[fe];de||(de=this.familiesBySource[fe]={});let dt=ge.sourceLayer||"_geojsonTileLayer",It=de[dt];It||(It=de[dt]=[]),It.push(ct)}}}class o{constructor(xe){let Oe={},Re=[];for(let fe in xe){let de=xe[fe],dt=Oe[fe]={};for(let It in de){let Pt=de[+It];if(!Pt||Pt.bitmap.width===0||Pt.bitmap.height===0)continue;let rr={x:0,y:0,w:Pt.bitmap.width+2,h:Pt.bitmap.height+2};Re.push(rr),dt[It]={rect:rr,metrics:Pt.metrics}}}let{w:De,h:ct}=i.p(Re),ge=new i.o({width:De||1,height:ct||1});for(let fe in xe){let de=xe[fe];for(let dt in de){let It=de[+dt];if(!It||It.bitmap.width===0||It.bitmap.height===0)continue;let Pt=Oe[fe][dt].rect;i.o.copy(It.bitmap,ge,{x:0,y:0},{x:Pt.x+1,y:Pt.y+1},It.bitmap)}}this.image=ge,this.positions=Oe}}i.bl("GlyphAtlas",o);class s{constructor(xe){this.tileID=new i.S(xe.tileID.overscaledZ,xe.tileID.wrap,xe.tileID.canonical.z,xe.tileID.canonical.x,xe.tileID.canonical.y),this.uid=xe.uid,this.zoom=xe.zoom,this.pixelRatio=xe.pixelRatio,this.tileSize=xe.tileSize,this.source=xe.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=xe.showCollisionBoxes,this.collectResourceTiming=!!xe.collectResourceTiming,this.returnDependencies=!!xe.returnDependencies,this.promoteId=xe.promoteId,this.inFlightDependencies=[]}parse(xe,Oe,Re,De){return i._(this,void 0,void 0,function*(){this.status="parsing",this.data=xe,this.collisionBoxArray=new i.a5;let ct=new i.bm(Object.keys(xe.layers).sort()),ge=new i.bn(this.tileID,this.promoteId);ge.bucketLayerIDs=[];let fe={},de={featureIndex:ge,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:Re},dt=Oe.familiesBySource[this.source];for(let nn in dt){let ii=xe.layers[nn];if(!ii)continue;ii.version===1&&i.w(`Vector tile source "${this.source}" layer "${nn}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let wi=ct.encode(nn),Gi=[];for(let Bt=0;Bt=yt.maxzoom||yt.visibility!=="none"&&(u(Bt,this.zoom,Re),(fe[yt.id]=yt.createBucket({index:ge.bucketLayerIDs.length,layers:Bt,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:wi,sourceID:this.source})).populate(Gi,de,this.tileID.canonical),ge.bucketLayerIDs.push(Bt.map(Vt=>Vt.id)))}}let It=i.aF(de.glyphDependencies,nn=>Object.keys(nn).map(Number));this.inFlightDependencies.forEach(nn=>nn==null?void 0:nn.abort()),this.inFlightDependencies=[];let Pt=Promise.resolve({});if(Object.keys(It).length){let nn=new AbortController;this.inFlightDependencies.push(nn),Pt=De.sendAsync({type:"GG",data:{stacks:It,source:this.source,tileID:this.tileID,type:"glyphs"}},nn)}let rr=Object.keys(de.iconDependencies),Hr=Promise.resolve({});if(rr.length){let nn=new AbortController;this.inFlightDependencies.push(nn),Hr=De.sendAsync({type:"GI",data:{icons:rr,source:this.source,tileID:this.tileID,type:"icons"}},nn)}let Dr=Object.keys(de.patternDependencies),Mr=Promise.resolve({});if(Dr.length){let nn=new AbortController;this.inFlightDependencies.push(nn),Mr=De.sendAsync({type:"GI",data:{icons:Dr,source:this.source,tileID:this.tileID,type:"patterns"}},nn)}let[Fr,di,Di]=yield Promise.all([Pt,Hr,Mr]),Ii=new o(Fr),Ci=new i.bo(di,Di);for(let nn in fe){let ii=fe[nn];ii instanceof i.a6?(u(ii.layers,this.zoom,Re),i.bp({bucket:ii,glyphMap:Fr,glyphPositions:Ii.positions,imageMap:di,imagePositions:Ci.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):ii.hasPattern&&(ii instanceof i.bq||ii instanceof i.br||ii instanceof i.bs)&&(u(ii.layers,this.zoom,Re),ii.addFeatures(de,this.tileID.canonical,Ci.patternPositions))}return this.status="done",{buckets:Object.values(fe).filter(nn=>!nn.isEmpty()),featureIndex:ge,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Ii.image,imageAtlas:Ci,glyphMap:this.returnDependencies?Fr:null,iconMap:this.returnDependencies?di:null,glyphPositions:this.returnDependencies?Ii.positions:null}})}}function u(Ie,xe,Oe){let Re=new i.z(xe);for(let De of Ie)De.recalculate(Re,Oe)}class l{constructor(xe,Oe,Re){this.actor=xe,this.layerIndex=Oe,this.availableImages=Re,this.fetching={},this.loading={},this.loaded={}}loadVectorTile(xe,Oe){return i._(this,void 0,void 0,function*(){let Re=yield i.l(xe.request,Oe);try{return{vectorTile:new i.bt.VectorTile(new i.bu(Re.data)),rawData:Re.data,cacheControl:Re.cacheControl,expires:Re.expires}}catch(De){let ct=new Uint8Array(Re.data),ge=`Unable to parse the tile at ${xe.request.url}, `;throw ge+=ct[0]===31&&ct[1]===139?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${De.message}`,new Error(ge)}})}loadTile(xe){return i._(this,void 0,void 0,function*(){let Oe=xe.uid,Re=!!(xe&&xe.request&&xe.request.collectResourceTiming)&&new i.bv(xe.request),De=new s(xe);this.loading[Oe]=De;let ct=new AbortController;De.abort=ct;try{let ge=yield this.loadVectorTile(xe,ct);if(delete this.loading[Oe],!ge)return null;let fe=ge.rawData,de={};ge.expires&&(de.expires=ge.expires),ge.cacheControl&&(de.cacheControl=ge.cacheControl);let dt={};if(Re){let Pt=Re.finish();Pt&&(dt.resourceTiming=JSON.parse(JSON.stringify(Pt)))}De.vectorTile=ge.vectorTile;let It=De.parse(ge.vectorTile,this.layerIndex,this.availableImages,this.actor);this.loaded[Oe]=De,this.fetching[Oe]={rawTileData:fe,cacheControl:de,resourceTiming:dt};try{let Pt=yield It;return i.e({rawTileData:fe.slice(0)},Pt,de,dt)}finally{delete this.fetching[Oe]}}catch(ge){throw delete this.loading[Oe],De.status="done",this.loaded[Oe]=De,ge}})}reloadTile(xe){return i._(this,void 0,void 0,function*(){let Oe=xe.uid;if(!this.loaded||!this.loaded[Oe])throw new Error("Should not be trying to reload a tile that was never loaded or has been removed");let Re=this.loaded[Oe];if(Re.showCollisionBoxes=xe.showCollisionBoxes,Re.status==="parsing"){let De=yield Re.parse(Re.vectorTile,this.layerIndex,this.availableImages,this.actor),ct;if(this.fetching[Oe]){let{rawTileData:ge,cacheControl:fe,resourceTiming:de}=this.fetching[Oe];delete this.fetching[Oe],ct=i.e({rawTileData:ge.slice(0)},De,fe,de)}else ct=De;return ct}if(Re.status==="done"&&Re.vectorTile)return Re.parse(Re.vectorTile,this.layerIndex,this.availableImages,this.actor)})}abortTile(xe){return i._(this,void 0,void 0,function*(){let Oe=this.loading,Re=xe.uid;Oe&&Oe[Re]&&Oe[Re].abort&&(Oe[Re].abort.abort(),delete Oe[Re])})}removeTile(xe){return i._(this,void 0,void 0,function*(){this.loaded&&this.loaded[xe.uid]&&delete this.loaded[xe.uid]})}}class f{constructor(){this.loaded={}}loadTile(xe){return i._(this,void 0,void 0,function*(){let{uid:Oe,encoding:Re,rawImageData:De,redFactor:ct,greenFactor:ge,blueFactor:fe,baseShift:de}=xe,dt=De.width+2,It=De.height+2,Pt=i.b(De)?new i.R({width:dt,height:It},yield i.bw(De,-1,-1,dt,It)):De,rr=new i.bx(Oe,Pt,Re,ct,ge,fe,de);return this.loaded=this.loaded||{},this.loaded[Oe]=rr,rr})}removeTile(xe){let Oe=this.loaded,Re=xe.uid;Oe&&Oe[Re]&&delete Oe[Re]}}function c(Ie,xe){if(Ie.length!==0){h(Ie[0],xe);for(var Oe=1;Oe=Math.abs(fe)?Oe-de+fe:fe-de+Oe,Oe=de}Oe+Re>=0!=!!xe&&Ie.reverse()}var d=i.by(function Ie(xe,Oe){var Re,De=xe&&xe.type;if(De==="FeatureCollection")for(Re=0;Re>31}function F(Ie,xe){for(var Oe=Ie.loadGeometry(),Re=Ie.type,De=0,ct=0,ge=Oe.length,fe=0;feIe},H=Math.fround||(N=new Float32Array(1),Ie=>(N[0]=+Ie,N[0]));var N;let W=3,re=5,ae=6;class be{constructor(xe){this.options=Object.assign(Object.create(j),xe),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(xe){let{log:Oe,minZoom:Re,maxZoom:De}=this.options;Oe&&console.time("total time");let ct=`prepare ${xe.length} points`;Oe&&console.time(ct),this.points=xe;let ge=[];for(let de=0;de=Re;de--){let dt=+Date.now();fe=this.trees[de]=this._createTree(this._cluster(fe,de)),Oe&&console.log("z%d: %d clusters in %dms",de,fe.numItems,+Date.now()-dt)}return Oe&&console.timeEnd("total time"),this}getClusters(xe,Oe){let Re=((xe[0]+180)%360+360)%360-180,De=Math.max(-90,Math.min(90,xe[1])),ct=xe[2]===180?180:((xe[2]+180)%360+360)%360-180,ge=Math.max(-90,Math.min(90,xe[3]));if(xe[2]-xe[0]>=360)Re=-180,ct=180;else if(Re>ct){let Pt=this.getClusters([Re,De,180,ge],Oe),rr=this.getClusters([-180,De,ct,ge],Oe);return Pt.concat(rr)}let fe=this.trees[this._limitZoom(Oe)],de=fe.range(pe(Re),te(ge),pe(ct),te(De)),dt=fe.data,It=[];for(let Pt of de){let rr=this.stride*Pt;It.push(dt[rr+re]>1?Ce(dt,rr,this.clusterProps):this.points[dt[rr+W]])}return It}getChildren(xe){let Oe=this._getOriginId(xe),Re=this._getOriginZoom(xe),De="No cluster with the specified id.",ct=this.trees[Re];if(!ct)throw new Error(De);let ge=ct.data;if(Oe*this.stride>=ge.length)throw new Error(De);let fe=this.options.radius/(this.options.extent*Math.pow(2,Re-1)),de=ct.within(ge[Oe*this.stride],ge[Oe*this.stride+1],fe),dt=[];for(let It of de){let Pt=It*this.stride;ge[Pt+4]===xe&&dt.push(ge[Pt+re]>1?Ce(ge,Pt,this.clusterProps):this.points[ge[Pt+W]])}if(dt.length===0)throw new Error(De);return dt}getLeaves(xe,Oe,Re){let De=[];return this._appendLeaves(De,xe,Oe=Oe||10,Re=Re||0,0),De}getTile(xe,Oe,Re){let De=this.trees[this._limitZoom(xe)],ct=Math.pow(2,xe),{extent:ge,radius:fe}=this.options,de=fe/ge,dt=(Re-de)/ct,It=(Re+1+de)/ct,Pt={features:[]};return this._addTileFeatures(De.range((Oe-de)/ct,dt,(Oe+1+de)/ct,It),De.data,Oe,Re,ct,Pt),Oe===0&&this._addTileFeatures(De.range(1-de/ct,dt,1,It),De.data,ct,Re,ct,Pt),Oe===ct-1&&this._addTileFeatures(De.range(0,dt,de/ct,It),De.data,-1,Re,ct,Pt),Pt.features.length?Pt:null}getClusterExpansionZoom(xe){let Oe=this._getOriginZoom(xe)-1;for(;Oe<=this.options.maxZoom;){let Re=this.getChildren(xe);if(Oe++,Re.length!==1)break;xe=Re[0].properties.cluster_id}return Oe}_appendLeaves(xe,Oe,Re,De,ct){let ge=this.getChildren(Oe);for(let fe of ge){let de=fe.properties;if(de&&de.cluster?ct+de.point_count<=De?ct+=de.point_count:ct=this._appendLeaves(xe,de.cluster_id,Re,De,ct):ct1,It,Pt,rr;if(dt)It=Le(Oe,de,this.clusterProps),Pt=Oe[de],rr=Oe[de+1];else{let Mr=this.points[Oe[de+W]];It=Mr.properties;let[Fr,di]=Mr.geometry.coordinates;Pt=pe(Fr),rr=te(di)}let Hr={type:1,geometry:[[Math.round(this.options.extent*(Pt*ct-Re)),Math.round(this.options.extent*(rr*ct-De))]],tags:It},Dr;Dr=dt||this.options.generateId?Oe[de+W]:this.points[Oe[de+W]].id,Dr!==void 0&&(Hr.id=Dr),ge.features.push(Hr)}}_limitZoom(xe){return Math.max(this.options.minZoom,Math.min(Math.floor(+xe),this.options.maxZoom+1))}_cluster(xe,Oe){let{radius:Re,extent:De,reduce:ct,minPoints:ge}=this.options,fe=Re/(De*Math.pow(2,Oe)),de=xe.data,dt=[],It=this.stride;for(let Pt=0;PtOe&&(Fr+=de[Di+re])}if(Fr>Mr&&Fr>=ge){let di,Di=rr*Mr,Ii=Hr*Mr,Ci=-1,nn=((Pt/It|0)<<5)+(Oe+1)+this.points.length;for(let ii of Dr){let wi=ii*It;if(de[wi+2]<=Oe)continue;de[wi+2]=Oe;let Gi=de[wi+re];Di+=de[wi]*Gi,Ii+=de[wi+1]*Gi,de[wi+4]=nn,ct&&(di||(di=this._map(de,Pt,!0),Ci=this.clusterProps.length,this.clusterProps.push(di)),ct(di,this._map(de,wi)))}de[Pt+4]=nn,dt.push(Di/Fr,Ii/Fr,1/0,nn,-1,Fr),ct&&dt.push(Ci)}else{for(let di=0;di1)for(let di of Dr){let Di=di*It;if(!(de[Di+2]<=Oe)){de[Di+2]=Oe;for(let Ii=0;Ii>5}_getOriginZoom(xe){return(xe-this.points.length)%32}_map(xe,Oe,Re){if(xe[Oe+re]>1){let ge=this.clusterProps[xe[Oe+ae]];return Re?Object.assign({},ge):ge}let De=this.points[xe[Oe+W]].properties,ct=this.options.map(De);return Re&&ct===De?Object.assign({},ct):ct}}function Ce(Ie,xe,Oe){return{type:"Feature",id:Ie[xe+W],properties:Le(Ie,xe,Oe),geometry:{type:"Point",coordinates:[(Re=Ie[xe],360*(Re-.5)),ke(Ie[xe+1])]}};var Re}function Le(Ie,xe,Oe){let Re=Ie[xe+re],De=Re>=1e4?`${Math.round(Re/1e3)}k`:Re>=1e3?Math.round(Re/100)/10+"k":Re,ct=Ie[xe+ae],ge=ct===-1?{}:Object.assign({},Oe[ct]);return Object.assign(ge,{cluster:!0,cluster_id:Ie[xe+W],point_count:Re,point_count_abbreviated:De})}function pe(Ie){return Ie/360+.5}function te(Ie){let xe=Math.sin(Ie*Math.PI/180),Oe=.5-.25*Math.log((1+xe)/(1-xe))/Math.PI;return Oe<0?0:Oe>1?1:Oe}function ke(Ie){let xe=(180-360*Ie)*Math.PI/180;return 360*Math.atan(Math.exp(xe))/Math.PI-90}function Ee(Ie,xe,Oe,Re){let De=Re,ct=xe+(Oe-xe>>1),ge,fe=Oe-xe,de=Ie[xe],dt=Ie[xe+1],It=Ie[Oe],Pt=Ie[Oe+1];for(let rr=xe+3;rrDe)ge=rr,De=Hr;else if(Hr===De){let Dr=Math.abs(rr-ct);DrRe&&(ge-xe>3&&Ee(Ie,xe,ge,Re),Ie[ge+2]=De,Oe-ge>3&&Ee(Ie,ge,Oe,Re))}function Me(Ie,xe,Oe,Re,De,ct){let ge=De-Oe,fe=ct-Re;if(ge!==0||fe!==0){let de=((Ie-Oe)*ge+(xe-Re)*fe)/(ge*ge+fe*fe);de>1?(Oe=De,Re=ct):de>0&&(Oe+=ge*de,Re+=fe*de)}return ge=Ie-Oe,fe=xe-Re,ge*ge+fe*fe}function Ne(Ie,xe,Oe,Re){let De={id:Ie==null?null:Ie,type:xe,geometry:Oe,tags:Re,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if(xe==="Point"||xe==="MultiPoint"||xe==="LineString")Fe(De,Oe);else if(xe==="Polygon")Fe(De,Oe[0]);else if(xe==="MultiLineString")for(let ct of Oe)Fe(De,ct);else if(xe==="MultiPolygon")for(let ct of Oe)Fe(De,ct[0]);return De}function Fe(Ie,xe){for(let Oe=0;Oe0&&(ge+=Re?(De*It-dt*ct)/2:Math.sqrt(Math.pow(dt-De,2)+Math.pow(It-ct,2))),De=dt,ct=It}let fe=xe.length-3;xe[2]=1,Ee(xe,0,fe,Oe),xe[fe+2]=1,xe.size=Math.abs(ge),xe.start=0,xe.end=xe.size}function Je(Ie,xe,Oe,Re){for(let De=0;De1?1:Oe}function Nt(Ie,xe,Oe,Re,De,ct,ge,fe){if(Re/=xe,ct>=(Oe/=xe)&&ge=Re)return null;let de=[];for(let dt of Ie){let It=dt.geometry,Pt=dt.type,rr=De===0?dt.minX:dt.minY,Hr=De===0?dt.maxX:dt.maxY;if(rr>=Oe&&Hr=Re)continue;let Dr=[];if(Pt==="Point"||Pt==="MultiPoint")it(It,Dr,Oe,Re,De);else if(Pt==="LineString")Ye(It,Dr,Oe,Re,De,!1,fe.lineMetrics);else if(Pt==="MultiLineString")Tt(It,Dr,Oe,Re,De,!1);else if(Pt==="Polygon")Tt(It,Dr,Oe,Re,De,!0);else if(Pt==="MultiPolygon")for(let Mr of It){let Fr=[];Tt(Mr,Fr,Oe,Re,De,!0),Fr.length&&Dr.push(Fr)}if(Dr.length){if(fe.lineMetrics&&Pt==="LineString"){for(let Mr of Dr)de.push(Ne(dt.id,Pt,Mr,dt.tags));continue}Pt!=="LineString"&&Pt!=="MultiLineString"||(Dr.length===1?(Pt="LineString",Dr=Dr[0]):Pt="MultiLineString"),Pt!=="Point"&&Pt!=="MultiPoint"||(Pt=Dr.length===3?"Point":"MultiPoint"),de.push(Ne(dt.id,Pt,Dr,dt.tags))}}return de.length?de:null}function it(Ie,xe,Oe,Re,De){for(let ct=0;ct=Oe&&ge<=Re&&St(xe,Ie[ct],Ie[ct+1],Ie[ct+2])}}function Ye(Ie,xe,Oe,Re,De,ct,ge){let fe=kt(Ie),de=De===0?Dt:Zt,dt,It,Pt=Ie.start;for(let Fr=0;FrOe&&(It=de(fe,di,Di,Ci,nn,Oe),ge&&(fe.start=Pt+dt*It)):ii>Re?wi=Oe&&(It=de(fe,di,Di,Ci,nn,Oe),Gi=!0),wi>Re&&ii<=Re&&(It=de(fe,di,Di,Ci,nn,Re),Gi=!0),!ct&&Gi&&(ge&&(fe.end=Pt+dt*It),xe.push(fe),fe=kt(Ie)),ge&&(Pt+=dt)}let rr=Ie.length-3,Hr=Ie[rr],Dr=Ie[rr+1],Mr=De===0?Hr:Dr;Mr>=Oe&&Mr<=Re&&St(fe,Hr,Dr,Ie[rr+2]),rr=fe.length-3,ct&&rr>=3&&(fe[rr]!==fe[0]||fe[rr+1]!==fe[1])&&St(fe,fe[0],fe[1],fe[2]),fe.length&&xe.push(fe)}function kt(Ie){let xe=[];return xe.size=Ie.size,xe.start=Ie.start,xe.end=Ie.end,xe}function Tt(Ie,xe,Oe,Re,De,ct){for(let ge of Ie)Ye(ge,xe,Oe,Re,De,ct,!1)}function St(Ie,xe,Oe,Re){Ie.push(xe,Oe,Re)}function Dt(Ie,xe,Oe,Re,De,ct){let ge=(ct-xe)/(Re-xe);return St(Ie,ct,Oe+(De-Oe)*ge,1),ge}function Zt(Ie,xe,Oe,Re,De,ct){let ge=(ct-Oe)/(De-Oe);return St(Ie,xe+(Re-xe)*ge,ct,1),ge}function Et(Ie,xe){let Oe=[];for(let Re=0;Re0&&xe.size<(De?ge:Re))return void(Oe.numPoints+=xe.length/3);let fe=[];for(let de=0;dege)&&(Oe.numSimplified++,fe.push(xe[de],xe[de+1])),Oe.numPoints++;De&&function(de,dt){let It=0;for(let Pt=0,rr=de.length,Hr=rr-2;Pt0===dt)for(let Pt=0,rr=de.length;Pt24)throw new Error("maxZoom should be in the 0-24 range");if(Oe.promoteId&&Oe.generateId)throw new Error("promoteId and generateId cannot be used together.");let De=function(ct,ge){let fe=[];if(ct.type==="FeatureCollection")for(let de=0;de1&&console.time("creation"),Hr=this.tiles[rr]=vt(xe,Oe,Re,De,dt),this.tileCoords.push({z:Oe,x:Re,y:De}),It)){It>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Oe,Re,De,Hr.numFeatures,Hr.numPoints,Hr.numSimplified),console.timeEnd("creation"));let Gi=`z${Oe}`;this.stats[Gi]=(this.stats[Gi]||0)+1,this.total++}if(Hr.source=xe,ct==null){if(Oe===dt.indexMaxZoom||Hr.numPoints<=dt.indexMaxPoints)continue}else{if(Oe===dt.maxZoom||Oe===ct)continue;if(ct!=null){let Gi=ct-Oe;if(Re!==ge>>Gi||De!==fe>>Gi)continue}}if(Hr.source=null,xe.length===0)continue;It>1&&console.time("clipping");let Dr=.5*dt.buffer/dt.extent,Mr=.5-Dr,Fr=.5+Dr,di=1+Dr,Di=null,Ii=null,Ci=null,nn=null,ii=Nt(xe,Pt,Re-Dr,Re+Fr,0,Hr.minX,Hr.maxX,dt),wi=Nt(xe,Pt,Re+Mr,Re+di,0,Hr.minX,Hr.maxX,dt);xe=null,ii&&(Di=Nt(ii,Pt,De-Dr,De+Fr,1,Hr.minY,Hr.maxY,dt),Ii=Nt(ii,Pt,De+Mr,De+di,1,Hr.minY,Hr.maxY,dt),ii=null),wi&&(Ci=Nt(wi,Pt,De-Dr,De+Fr,1,Hr.minY,Hr.maxY,dt),nn=Nt(wi,Pt,De+Mr,De+di,1,Hr.minY,Hr.maxY,dt),wi=null),It>1&&console.timeEnd("clipping"),de.push(Di||[],Oe+1,2*Re,2*De),de.push(Ii||[],Oe+1,2*Re,2*De+1),de.push(Ci||[],Oe+1,2*Re+1,2*De),de.push(nn||[],Oe+1,2*Re+1,2*De+1)}}getTile(xe,Oe,Re){xe=+xe,Oe=+Oe,Re=+Re;let De=this.options,{extent:ct,debug:ge}=De;if(xe<0||xe>24)return null;let fe=1<1&&console.log("drilling down to z%d-%d-%d",xe,Oe,Re);let dt,It=xe,Pt=Oe,rr=Re;for(;!dt&&It>0;)It--,Pt>>=1,rr>>=1,dt=this.tiles[zt(It,Pt,rr)];return dt&&dt.source?(ge>1&&(console.log("found parent tile z%d-%d-%d",It,Pt,rr),console.time("drilling down")),this.splitTile(dt.source,It,Pt,rr,xe,Oe,Re),ge>1&&console.timeEnd("drilling down"),this.tiles[de]?at(this.tiles[de],ct):null):null}}function zt(Ie,xe,Oe){return 32*((1<{Pt.properties=Hr;let Dr={};for(let Mr of rr)Dr[Mr]=de[Mr].evaluate(It,Pt);return Dr},ge.reduce=(Hr,Dr)=>{Pt.properties=Dr;for(let Mr of rr)It.accumulated=Hr[Mr],Hr[Mr]=dt[Mr].evaluate(It,Pt)},ge}(xe)).load((yield this._pendingData).features):(De=yield this._pendingData,new $e(De,xe.geojsonVtOptions)),this.loaded={};let ct={};if(Re){let ge=Re.finish();ge&&(ct.resourceTiming={},ct.resourceTiming[xe.source]=JSON.parse(JSON.stringify(ge)))}return ct}catch(ct){if(delete this._pendingRequest,i.bB(ct))return{abandoned:!0};throw ct}var De})}getData(){return i._(this,void 0,void 0,function*(){return this._pendingData})}reloadTile(xe){let Oe=this.loaded;return Oe&&Oe[xe.uid]?super.reloadTile(xe):this.loadTile(xe)}loadAndProcessGeoJSON(xe,Oe){return i._(this,void 0,void 0,function*(){let Re=yield this.loadGeoJSON(xe,Oe);if(delete this._pendingRequest,typeof Re!="object")throw new Error(`Input data given to '${xe.source}' is not a valid GeoJSON object.`);if(d(Re,!0),xe.filter){let De=i.bC(xe.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(De.result==="error")throw new Error(De.value.map(ge=>`${ge.key}: ${ge.message}`).join(", "));Re={type:"FeatureCollection",features:Re.features.filter(ge=>De.value.evaluate({zoom:0},ge))}}return Re})}loadGeoJSON(xe,Oe){return i._(this,void 0,void 0,function*(){let{promoteId:Re}=xe;if(xe.request){let De=yield i.h(xe.request,Oe);return this._dataUpdateable=hr(De.data,Re)?yr(De.data,Re):void 0,De.data}if(typeof xe.data=="string")try{let De=JSON.parse(xe.data);return this._dataUpdateable=hr(De,Re)?yr(De,Re):void 0,De}catch(De){throw new Error(`Input data given to '${xe.source}' is not a valid GeoJSON object.`)}if(!xe.dataDiff)throw new Error(`Input data given to '${xe.source}' is not a valid GeoJSON object.`);if(!this._dataUpdateable)throw new Error(`Cannot update existing geojson data in ${xe.source}`);return function(De,ct,ge){var fe,de,dt,It;if(ct.removeAll&&De.clear(),ct.remove)for(let Pt of ct.remove)De.delete(Pt);if(ct.add)for(let Pt of ct.add){let rr=Yt(Pt,ge);rr!=null&&De.set(rr,Pt)}if(ct.update)for(let Pt of ct.update){let rr=De.get(Pt.id);if(rr==null)continue;let Hr=!Pt.removeAllProperties&&(((fe=Pt.removeProperties)===null||fe===void 0?void 0:fe.length)>0||((de=Pt.addOrUpdateProperties)===null||de===void 0?void 0:de.length)>0);if((Pt.newGeometry||Pt.removeAllProperties||Hr)&&(rr=Object.assign({},rr),De.set(Pt.id,rr),Hr&&(rr.properties=Object.assign({},rr.properties))),Pt.newGeometry&&(rr.geometry=Pt.newGeometry),Pt.removeAllProperties)rr.properties={};else if(((dt=Pt.removeProperties)===null||dt===void 0?void 0:dt.length)>0)for(let Dr of Pt.removeProperties)Object.prototype.hasOwnProperty.call(rr.properties,Dr)&&delete rr.properties[Dr];if(((It=Pt.addOrUpdateProperties)===null||It===void 0?void 0:It.length)>0)for(let{key:Dr,value:Mr}of Pt.addOrUpdateProperties)rr.properties[Dr]=Mr}}(this._dataUpdateable,xe.dataDiff,Re),{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())}})}removeSource(xe){return i._(this,void 0,void 0,function*(){this._pendingRequest&&this._pendingRequest.abort()})}getClusterExpansionZoom(xe){return this._geoJSONIndex.getClusterExpansionZoom(xe.clusterId)}getClusterChildren(xe){return this._geoJSONIndex.getChildren(xe.clusterId)}getClusterLeaves(xe){return this._geoJSONIndex.getLeaves(xe.clusterId,xe.limit,xe.offset)}}class Ut{constructor(xe){this.self=xe,this.actor=new i.F(xe),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.self.registerWorkerSource=(Oe,Re)=>{if(this.externalWorkerSourceTypes[Oe])throw new Error(`Worker source with name "${Oe}" already registered.`);this.externalWorkerSourceTypes[Oe]=Re},this.self.addProtocol=i.bi,this.self.removeProtocol=i.bj,this.self.registerRTLTextPlugin=Oe=>{if(i.bD.isParsed())throw new Error("RTL text plugin already registered.");i.bD.setMethods(Oe)},this.actor.registerMessageHandler("LDT",(Oe,Re)=>this._getDEMWorkerSource(Oe,Re.source).loadTile(Re)),this.actor.registerMessageHandler("RDT",(Oe,Re)=>i._(this,void 0,void 0,function*(){this._getDEMWorkerSource(Oe,Re.source).removeTile(Re)})),this.actor.registerMessageHandler("GCEZ",(Oe,Re)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Oe,Re.type,Re.source).getClusterExpansionZoom(Re)})),this.actor.registerMessageHandler("GCC",(Oe,Re)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Oe,Re.type,Re.source).getClusterChildren(Re)})),this.actor.registerMessageHandler("GCL",(Oe,Re)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Oe,Re.type,Re.source).getClusterLeaves(Re)})),this.actor.registerMessageHandler("LD",(Oe,Re)=>this._getWorkerSource(Oe,Re.type,Re.source).loadData(Re)),this.actor.registerMessageHandler("GD",(Oe,Re)=>this._getWorkerSource(Oe,Re.type,Re.source).getData()),this.actor.registerMessageHandler("LT",(Oe,Re)=>this._getWorkerSource(Oe,Re.type,Re.source).loadTile(Re)),this.actor.registerMessageHandler("RT",(Oe,Re)=>this._getWorkerSource(Oe,Re.type,Re.source).reloadTile(Re)),this.actor.registerMessageHandler("AT",(Oe,Re)=>this._getWorkerSource(Oe,Re.type,Re.source).abortTile(Re)),this.actor.registerMessageHandler("RMT",(Oe,Re)=>this._getWorkerSource(Oe,Re.type,Re.source).removeTile(Re)),this.actor.registerMessageHandler("RS",(Oe,Re)=>i._(this,void 0,void 0,function*(){if(!this.workerSources[Oe]||!this.workerSources[Oe][Re.type]||!this.workerSources[Oe][Re.type][Re.source])return;let De=this.workerSources[Oe][Re.type][Re.source];delete this.workerSources[Oe][Re.type][Re.source],De.removeSource!==void 0&&De.removeSource(Re)})),this.actor.registerMessageHandler("RM",Oe=>i._(this,void 0,void 0,function*(){delete this.layerIndexes[Oe],delete this.availableImages[Oe],delete this.workerSources[Oe],delete this.demWorkerSources[Oe]})),this.actor.registerMessageHandler("SR",(Oe,Re)=>i._(this,void 0,void 0,function*(){this.referrer=Re})),this.actor.registerMessageHandler("SRPS",(Oe,Re)=>this._syncRTLPluginState(Oe,Re)),this.actor.registerMessageHandler("IS",(Oe,Re)=>i._(this,void 0,void 0,function*(){this.self.importScripts(Re)})),this.actor.registerMessageHandler("SI",(Oe,Re)=>this._setImages(Oe,Re)),this.actor.registerMessageHandler("UL",(Oe,Re)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Oe).update(Re.layers,Re.removedIds)})),this.actor.registerMessageHandler("SL",(Oe,Re)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Oe).replace(Re)}))}_setImages(xe,Oe){return i._(this,void 0,void 0,function*(){this.availableImages[xe]=Oe;for(let Re in this.workerSources[xe]){let De=this.workerSources[xe][Re];for(let ct in De)De[ct].availableImages=Oe}})}_syncRTLPluginState(xe,Oe){return i._(this,void 0,void 0,function*(){if(i.bD.isParsed())return i.bD.getState();if(Oe.pluginStatus!=="loading")return i.bD.setState(Oe),Oe;let Re=Oe.pluginURL;if(this.self.importScripts(Re),i.bD.isParsed()){let De={pluginStatus:"loaded",pluginURL:Re};return i.bD.setState(De),De}throw i.bD.setState({pluginStatus:"error",pluginURL:""}),new Error(`RTL Text Plugin failed to import scripts from ${Re}`)})}_getAvailableImages(xe){let Oe=this.availableImages[xe];return Oe||(Oe=[]),Oe}_getLayerIndex(xe){let Oe=this.layerIndexes[xe];return Oe||(Oe=this.layerIndexes[xe]=new a),Oe}_getWorkerSource(xe,Oe,Re){if(this.workerSources[xe]||(this.workerSources[xe]={}),this.workerSources[xe][Oe]||(this.workerSources[xe][Oe]={}),!this.workerSources[xe][Oe][Re]){let De={sendAsync:(ct,ge)=>(ct.targetMapId=xe,this.actor.sendAsync(ct,ge))};switch(Oe){case"vector":this.workerSources[xe][Oe][Re]=new l(De,this._getLayerIndex(xe),this._getAvailableImages(xe));break;case"geojson":this.workerSources[xe][Oe][Re]=new br(De,this._getLayerIndex(xe),this._getAvailableImages(xe));break;default:this.workerSources[xe][Oe][Re]=new this.externalWorkerSourceTypes[Oe](De,this._getLayerIndex(xe),this._getAvailableImages(xe))}}return this.workerSources[xe][Oe][Re]}_getDEMWorkerSource(xe,Oe){return this.demWorkerSources[xe]||(this.demWorkerSources[xe]={}),this.demWorkerSources[xe][Oe]||(this.demWorkerSources[xe][Oe]=new f),this.demWorkerSources[xe][Oe]}}return i.i(self)&&(self.worker=new Ut(self)),Ut}),r("index",["exports","./shared"],function(i,a){"use strict";var o="4.7.1";let s,u,l={now:typeof performance!="undefined"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frameAsync:le=>new Promise((w,q)=>{let Q=requestAnimationFrame(w);le.signal.addEventListener("abort",()=>{cancelAnimationFrame(Q),q(a.c())})}),getImageData(le,w=0){return this.getImageCanvasContext(le).getImageData(-w,-w,le.width+2*w,le.height+2*w)},getImageCanvasContext(le){let w=window.document.createElement("canvas"),q=w.getContext("2d",{willReadFrequently:!0});if(!q)throw new Error("failed to create canvas 2d context");return w.width=le.width,w.height=le.height,q.drawImage(le,0,0,le.width,le.height),q},resolveURL:le=>(s||(s=document.createElement("a")),s.href=le,s.href),hardwareConcurrency:typeof navigator!="undefined"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(u==null&&(u=matchMedia("(prefers-reduced-motion: reduce)")),u.matches)}};class f{static testProp(w){if(!f.docStyle)return w[0];for(let q=0;q{window.removeEventListener("click",f.suppressClickInternal,!0)},0)}static getScale(w){let q=w.getBoundingClientRect();return{x:q.width/w.offsetWidth||1,y:q.height/w.offsetHeight||1,boundingClientRect:q}}static getPoint(w,q,Q){let ee=q.boundingClientRect;return new a.P((Q.clientX-ee.left)/q.x-w.clientLeft,(Q.clientY-ee.top)/q.y-w.clientTop)}static mousePos(w,q){let Q=f.getScale(w);return f.getPoint(w,Q,q)}static touchPos(w,q){let Q=[],ee=f.getScale(w);for(let ue=0;ue{h&&b(h),h=null,x=!0},d.onerror=()=>{p=!0,h=null},d.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="),function(le){let w,q,Q,ee;le.resetRequestQueue=()=>{w=[],q=0,Q=0,ee={}},le.addThrottleControl=mt=>{let Ft=Q++;return ee[Ft]=mt,Ft},le.removeThrottleControl=mt=>{delete ee[mt],Ge()},le.getImage=(mt,Ft,ir=!0)=>new Promise((or,kr)=>{c.supported&&(mt.headers||(mt.headers={}),mt.headers.accept="image/webp,*/*"),a.e(mt,{type:"image"}),w.push({abortController:Ft,requestParameters:mt,supportImageRefresh:ir,state:"queued",onError:Vr=>{kr(Vr)},onSuccess:Vr=>{or(Vr)}}),Ge()});let ue=mt=>a._(this,void 0,void 0,function*(){mt.state="running";let{requestParameters:Ft,supportImageRefresh:ir,onError:or,onSuccess:kr,abortController:Vr}=mt,he=ir===!1&&!a.i(self)&&!a.g(Ft.url)&&(!Ft.headers||Object.keys(Ft.headers).reduce((He,lt)=>He&<==="accept",!0));q++;let Se=he?et(Ft,Vr):a.m(Ft,Vr);try{let He=yield Se;delete mt.abortController,mt.state="completed",He.data instanceof HTMLImageElement||a.b(He.data)?kr(He):He.data&&kr({data:yield(qe=He.data,typeof createImageBitmap=="function"?a.d(qe):a.f(qe)),cacheControl:He.cacheControl,expires:He.expires})}catch(He){delete mt.abortController,or(He)}finally{q--,Ge()}var qe}),Ge=()=>{let mt=(()=>{for(let Ft of Object.keys(ee))if(ee[Ft]())return!0;return!1})()?a.a.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:a.a.MAX_PARALLEL_IMAGE_REQUESTS;for(let Ft=q;Ft0;Ft++){let ir=w.shift();ir.abortController.signal.aborted?Ft--:ue(ir)}},et=(mt,Ft)=>new Promise((ir,or)=>{let kr=new Image,Vr=mt.url,he=mt.credentials;he&&he==="include"?kr.crossOrigin="use-credentials":(he&&he==="same-origin"||!a.s(Vr))&&(kr.crossOrigin="anonymous"),Ft.signal.addEventListener("abort",()=>{kr.src="",or(a.c())}),kr.fetchPriority="high",kr.onload=()=>{kr.onerror=kr.onload=null,ir({data:kr})},kr.onerror=()=>{kr.onerror=kr.onload=null,Ft.signal.aborted||or(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))},kr.src=Vr})}(v||(v={})),v.resetRequestQueue();class k{constructor(w){this._transformRequestFn=w}transformRequest(w,q){return this._transformRequestFn&&this._transformRequestFn(w,q)||{url:w}}setTransformRequest(w){this._transformRequestFn=w}}function E(le){var w=new a.A(3);return w[0]=le[0],w[1]=le[1],w[2]=le[2],w}var T,L=function(le,w,q){return le[0]=w[0]-q[0],le[1]=w[1]-q[1],le[2]=w[2]-q[2],le};T=new a.A(3),a.A!=Float32Array&&(T[0]=0,T[1]=0,T[2]=0);var _=function(le){var w=le[0],q=le[1];return w*w+q*q};function C(le){let w=[];if(typeof le=="string")w.push({id:"default",url:le});else if(le&&le.length>0){let q=[];for(let{id:Q,url:ee}of le){let ue=`${Q}${ee}`;q.indexOf(ue)===-1&&(q.push(ue),w.push({id:Q,url:ee}))}}return w}function S(le,w,q){let Q=le.split("?");return Q[0]+=`${w}${q}`,Q.join("?")}(function(){var le=new a.A(2);a.A!=Float32Array&&(le[0]=0,le[1]=0)})();class m{constructor(w,q,Q,ee){this.context=w,this.format=Q,this.texture=w.gl.createTexture(),this.update(q,ee)}update(w,q,Q){let{width:ee,height:ue}=w,Ge=!(this.size&&this.size[0]===ee&&this.size[1]===ue||Q),{context:et}=this,{gl:mt}=et;if(this.useMipmap=!!(q&&q.useMipmap),mt.bindTexture(mt.TEXTURE_2D,this.texture),et.pixelStoreUnpackFlipY.set(!1),et.pixelStoreUnpack.set(1),et.pixelStoreUnpackPremultiplyAlpha.set(this.format===mt.RGBA&&(!q||q.premultiply!==!1)),Ge)this.size=[ee,ue],w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?mt.texImage2D(mt.TEXTURE_2D,0,this.format,this.format,mt.UNSIGNED_BYTE,w):mt.texImage2D(mt.TEXTURE_2D,0,this.format,ee,ue,0,this.format,mt.UNSIGNED_BYTE,w.data);else{let{x:Ft,y:ir}=Q||{x:0,y:0};w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?mt.texSubImage2D(mt.TEXTURE_2D,0,Ft,ir,mt.RGBA,mt.UNSIGNED_BYTE,w):mt.texSubImage2D(mt.TEXTURE_2D,0,Ft,ir,ee,ue,mt.RGBA,mt.UNSIGNED_BYTE,w.data)}this.useMipmap&&this.isSizePowerOfTwo()&&mt.generateMipmap(mt.TEXTURE_2D)}bind(w,q,Q){let{context:ee}=this,{gl:ue}=ee;ue.bindTexture(ue.TEXTURE_2D,this.texture),Q!==ue.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(Q=ue.LINEAR),w!==this.filter&&(ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_MAG_FILTER,w),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_MIN_FILTER,Q||w),this.filter=w),q!==this.wrap&&(ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_WRAP_S,q),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_WRAP_T,q),this.wrap=q)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){let{gl:w}=this.context;w.deleteTexture(this.texture),this.texture=null}}function P(le){let{userImage:w}=le;return!!(w&&w.render&&w.render())&&(le.data.replace(new Uint8Array(w.data.buffer)),!0)}class A extends a.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new a.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(w){if(this.loaded!==w&&(this.loaded=w,w)){for(let{ids:q,promiseResolve:Q}of this.requestors)Q(this._getImagesForIds(q));this.requestors=[]}}getImage(w){let q=this.images[w];if(q&&!q.data&&q.spriteData){let Q=q.spriteData;q.data=new a.R({width:Q.width,height:Q.height},Q.context.getImageData(Q.x,Q.y,Q.width,Q.height).data),q.spriteData=null}return q}addImage(w,q){if(this.images[w])throw new Error(`Image id ${w} already exist, use updateImage instead`);this._validate(w,q)&&(this.images[w]=q)}_validate(w,q){let Q=!0,ee=q.data||q.spriteData;return this._validateStretch(q.stretchX,ee&&ee.width)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchX" value`))),Q=!1),this._validateStretch(q.stretchY,ee&&ee.height)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchY" value`))),Q=!1),this._validateContent(q.content,q)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "content" value`))),Q=!1),Q}_validateStretch(w,q){if(!w)return!0;let Q=0;for(let ee of w){if(ee[0]{let ee=!0;if(!this.isLoaded())for(let ue of w)this.images[ue]||(ee=!1);this.isLoaded()||ee?q(this._getImagesForIds(w)):this.requestors.push({ids:w,promiseResolve:q})})}_getImagesForIds(w){let q={};for(let Q of w){let ee=this.getImage(Q);ee||(this.fire(new a.k("styleimagemissing",{id:Q})),ee=this.getImage(Q)),ee?q[Q]={data:ee.data.clone(),pixelRatio:ee.pixelRatio,sdf:ee.sdf,version:ee.version,stretchX:ee.stretchX,stretchY:ee.stretchY,content:ee.content,textFitWidth:ee.textFitWidth,textFitHeight:ee.textFitHeight,hasRenderCallback:!!(ee.userImage&&ee.userImage.render)}:a.w(`Image "${Q}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}return q}getPixelSize(){let{width:w,height:q}=this.atlasImage;return{width:w,height:q}}getPattern(w){let q=this.patterns[w],Q=this.getImage(w);if(!Q)return null;if(q&&q.position.version===Q.version)return q.position;if(q)q.position.version=Q.version;else{let ee={w:Q.data.width+2,h:Q.data.height+2,x:0,y:0},ue=new a.I(ee,Q);this.patterns[w]={bin:ee,position:ue}}return this._updatePatternAtlas(),this.patterns[w].position}bind(w){let q=w.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new m(w,this.atlasImage,q.RGBA),this.atlasTexture.bind(q.LINEAR,q.CLAMP_TO_EDGE)}_updatePatternAtlas(){let w=[];for(let ue in this.patterns)w.push(this.patterns[ue].bin);let{w:q,h:Q}=a.p(w),ee=this.atlasImage;ee.resize({width:q||1,height:Q||1});for(let ue in this.patterns){let{bin:Ge}=this.patterns[ue],et=Ge.x+1,mt=Ge.y+1,Ft=this.getImage(ue).data,ir=Ft.width,or=Ft.height;a.R.copy(Ft,ee,{x:0,y:0},{x:et,y:mt},{width:ir,height:or}),a.R.copy(Ft,ee,{x:0,y:or-1},{x:et,y:mt-1},{width:ir,height:1}),a.R.copy(Ft,ee,{x:0,y:0},{x:et,y:mt+or},{width:ir,height:1}),a.R.copy(Ft,ee,{x:ir-1,y:0},{x:et-1,y:mt},{width:1,height:or}),a.R.copy(Ft,ee,{x:0,y:0},{x:et+ir,y:mt},{width:1,height:or})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(w){for(let q of w){if(this.callbackDispatchedThisFrame[q])continue;this.callbackDispatchedThisFrame[q]=!0;let Q=this.getImage(q);Q||a.w(`Image with ID: "${q}" was not found`),P(Q)&&this.updateImage(q,Q)}}}let B=1e20;function F(le,w,q,Q,ee,ue,Ge,et,mt){for(let Ft=w;Ft-1);mt++,ue[mt]=et,Ge[mt]=Ft,Ge[mt+1]=B}for(let et=0,mt=0;et65535)throw new Error("glyphs > 65535 not supported");if(Q.ranges[ue])return{stack:w,id:q,glyph:ee};if(!this.url)throw new Error("glyphsUrl is not set");if(!Q.requests[ue]){let et=G.loadGlyphRange(w,ue,this.url,this.requestManager);Q.requests[ue]=et}let Ge=yield Q.requests[ue];for(let et in Ge)this._doesCharSupportLocalGlyph(+et)||(Q.glyphs[+et]=Ge[+et]);return Q.ranges[ue]=!0,{stack:w,id:q,glyph:Ge[q]||null}})}_doesCharSupportLocalGlyph(w){return!!this.localIdeographFontFamily&&new RegExp("\\p{Ideo}|\\p{sc=Hang}|\\p{sc=Hira}|\\p{sc=Kana}","u").test(String.fromCodePoint(w))}_tinySDF(w,q,Q){let ee=this.localIdeographFontFamily;if(!ee||!this._doesCharSupportLocalGlyph(Q))return;let ue=w.tinySDF;if(!ue){let et="400";/bold/i.test(q)?et="900":/medium/i.test(q)?et="500":/light/i.test(q)&&(et="200"),ue=w.tinySDF=new G.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:ee,fontWeight:et})}let Ge=ue.draw(String.fromCharCode(Q));return{id:Q,bitmap:new a.o({width:Ge.width||60,height:Ge.height||60},Ge.data),metrics:{width:Ge.glyphWidth/2||24,height:Ge.glyphHeight/2||24,left:Ge.glyphLeft/2+.5||0,top:Ge.glyphTop/2-27.5||-8,advance:Ge.glyphAdvance/2||24,isDoubleResolution:!0}}}}G.loadGlyphRange=function(le,w,q,Q){return a._(this,void 0,void 0,function*(){let ee=256*w,ue=ee+255,Ge=Q.transformRequest(q.replace("{fontstack}",le).replace("{range}",`${ee}-${ue}`),"Glyphs"),et=yield a.l(Ge,new AbortController);if(!et||!et.data)throw new Error(`Could not load glyph range. range: ${w}, ${ee}-${ue}`);let mt={};for(let Ft of a.n(et.data))mt[Ft.id]=Ft;return mt})},G.TinySDF=class{constructor({fontSize:le=24,buffer:w=3,radius:q=8,cutoff:Q=.25,fontFamily:ee="sans-serif",fontWeight:ue="normal",fontStyle:Ge="normal"}={}){this.buffer=w,this.cutoff=Q,this.radius=q;let et=this.size=le+4*w,mt=this._createCanvas(et),Ft=this.ctx=mt.getContext("2d",{willReadFrequently:!0});Ft.font=`${Ge} ${ue} ${le}px ${ee}`,Ft.textBaseline="alphabetic",Ft.textAlign="left",Ft.fillStyle="black",this.gridOuter=new Float64Array(et*et),this.gridInner=new Float64Array(et*et),this.f=new Float64Array(et),this.z=new Float64Array(et+1),this.v=new Uint16Array(et)}_createCanvas(le){let w=document.createElement("canvas");return w.width=w.height=le,w}draw(le){let{width:w,actualBoundingBoxAscent:q,actualBoundingBoxDescent:Q,actualBoundingBoxLeft:ee,actualBoundingBoxRight:ue}=this.ctx.measureText(le),Ge=Math.ceil(q),et=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(ue-ee))),mt=Math.min(this.size-this.buffer,Ge+Math.ceil(Q)),Ft=et+2*this.buffer,ir=mt+2*this.buffer,or=Math.max(Ft*ir,0),kr=new Uint8ClampedArray(or),Vr={data:kr,width:Ft,height:ir,glyphWidth:et,glyphHeight:mt,glyphTop:Ge,glyphLeft:0,glyphAdvance:w};if(et===0||mt===0)return Vr;let{ctx:he,buffer:Se,gridInner:qe,gridOuter:He}=this;he.clearRect(Se,Se,et,mt),he.fillText(le,Se,Se+Ge);let lt=he.getImageData(Se,Se,et,mt);He.fill(B,0,or),qe.fill(0,0,or);for(let tt=0;tt0?fr*fr:0,qe[nr]=fr<0?fr*fr:0}}F(He,0,0,Ft,ir,Ft,this.f,this.v,this.z),F(qe,Se,Se,et,mt,Ft,this.f,this.v,this.z);for(let tt=0;tt1&&(mt=w[++et]);let ir=Math.abs(Ft-mt.left),or=Math.abs(Ft-mt.right),kr=Math.min(ir,or),Vr,he=ue/Q*(ee+1);if(mt.isDash){let Se=ee-Math.abs(he);Vr=Math.sqrt(kr*kr+Se*Se)}else Vr=ee-Math.sqrt(kr*kr+he*he);this.data[Ge+Ft]=Math.max(0,Math.min(255,Vr+128))}}}addRegularDash(w){for(let et=w.length-1;et>=0;--et){let mt=w[et],Ft=w[et+1];mt.zeroLength?w.splice(et,1):Ft&&Ft.isDash===mt.isDash&&(Ft.left=mt.left,w.splice(et,1))}let q=w[0],Q=w[w.length-1];q.isDash===Q.isDash&&(q.left=Q.left-this.width,Q.right=q.right+this.width);let ee=this.width*this.nextRow,ue=0,Ge=w[ue];for(let et=0;et1&&(Ge=w[++ue]);let mt=Math.abs(et-Ge.left),Ft=Math.abs(et-Ge.right),ir=Math.min(mt,Ft);this.data[ee+et]=Math.max(0,Math.min(255,(Ge.isDash?ir:-ir)+128))}}addDash(w,q){let Q=q?7:0,ee=2*Q+1;if(this.nextRow+ee>this.height)return a.w("LineAtlas out of space"),null;let ue=0;for(let et=0;et{q.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[be]}numActive(){return Object.keys(this.active).length}}let Le=Math.floor(l.hardwareConcurrency/2),pe,te;function ke(){return pe||(pe=new Ce),pe}Ce.workerCount=a.C(globalThis)?Math.max(Math.min(Le,3),1):1;class Ee{constructor(w,q){this.workerPool=w,this.actors=[],this.currentActor=0,this.id=q;let Q=this.workerPool.acquire(q);for(let ee=0;ee{q.remove()}),this.actors=[],w&&this.workerPool.release(this.id)}registerMessageHandler(w,q){for(let Q of this.actors)Q.registerMessageHandler(w,q)}}function Me(){return te||(te=new Ee(ke(),a.G),te.registerMessageHandler("GR",(le,w,q)=>a.m(w,q))),te}function Ne(le,w){let q=a.H();return a.J(q,q,[1,1,0]),a.K(q,q,[.5*le.width,.5*le.height,1]),a.L(q,q,le.calculatePosMatrix(w.toUnwrapped()))}function Fe(le,w,q,Q,ee,ue){let Ge=function(or,kr,Vr){if(or)for(let he of or){let Se=kr[he];if(Se&&Se.source===Vr&&Se.type==="fill-extrusion")return!0}else for(let he in kr){let Se=kr[he];if(Se.source===Vr&&Se.type==="fill-extrusion")return!0}return!1}(ee&&ee.layers,w,le.id),et=ue.maxPitchScaleFactor(),mt=le.tilesIn(Q,et,Ge);mt.sort(ye);let Ft=[];for(let or of mt)Ft.push({wrappedTileID:or.tileID.wrapped().key,queryResults:or.tile.queryRenderedFeatures(w,q,le._state,or.queryGeometry,or.cameraQueryGeometry,or.scale,ee,ue,et,Ne(le.transform,or.tileID))});let ir=function(or){let kr={},Vr={};for(let he of or){let Se=he.queryResults,qe=he.wrappedTileID,He=Vr[qe]=Vr[qe]||{};for(let lt in Se){let tt=Se[lt],pt=He[lt]=He[lt]||{},Ht=kr[lt]=kr[lt]||[];for(let nr of tt)pt[nr.featureIndex]||(pt[nr.featureIndex]=!0,Ht.push(nr))}}return kr}(Ft);for(let or in ir)ir[or].forEach(kr=>{let Vr=kr.feature,he=le.getFeatureState(Vr.layer["source-layer"],Vr.id);Vr.source=Vr.layer.source,Vr.layer["source-layer"]&&(Vr.sourceLayer=Vr.layer["source-layer"]),Vr.state=he});return ir}function ye(le,w){let q=le.tileID,Q=w.tileID;return q.overscaledZ-Q.overscaledZ||q.canonical.y-Q.canonical.y||q.wrap-Q.wrap||q.canonical.x-Q.canonical.x}function Ve(le,w,q){return a._(this,void 0,void 0,function*(){let Q=le;if(le.url?Q=(yield a.h(w.transformRequest(le.url,"Source"),q)).data:yield l.frameAsync(q),!Q)return null;let ee=a.M(a.e(Q,le),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in Q&&Q.vector_layers&&(ee.vectorLayerIds=Q.vector_layers.map(ue=>ue.id)),ee})}class ce{constructor(w,q){w&&(q?this.setSouthWest(w).setNorthEast(q):Array.isArray(w)&&(w.length===4?this.setSouthWest([w[0],w[1]]).setNorthEast([w[2],w[3]]):this.setSouthWest(w[0]).setNorthEast(w[1])))}setNorthEast(w){return this._ne=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}setSouthWest(w){return this._sw=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}extend(w){let q=this._sw,Q=this._ne,ee,ue;if(w instanceof a.N)ee=w,ue=w;else{if(!(w instanceof ce))return Array.isArray(w)?w.length===4||w.every(Array.isArray)?this.extend(ce.convert(w)):this.extend(a.N.convert(w)):w&&("lng"in w||"lon"in w)&&"lat"in w?this.extend(a.N.convert(w)):this;if(ee=w._sw,ue=w._ne,!ee||!ue)return this}return q||Q?(q.lng=Math.min(ee.lng,q.lng),q.lat=Math.min(ee.lat,q.lat),Q.lng=Math.max(ue.lng,Q.lng),Q.lat=Math.max(ue.lat,Q.lat)):(this._sw=new a.N(ee.lng,ee.lat),this._ne=new a.N(ue.lng,ue.lat)),this}getCenter(){return new a.N((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new a.N(this.getWest(),this.getNorth())}getSouthEast(){return new a.N(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(w){let{lng:q,lat:Q}=a.N.convert(w),ee=this._sw.lng<=q&&q<=this._ne.lng;return this._sw.lng>this._ne.lng&&(ee=this._sw.lng>=q&&q>=this._ne.lng),this._sw.lat<=Q&&Q<=this._ne.lat&&ee}static convert(w){return w instanceof ce?w:w&&new ce(w)}static fromLngLat(w,q=0){let Q=360*q/40075017,ee=Q/Math.cos(Math.PI/180*w.lat);return new ce(new a.N(w.lng-ee,w.lat-Q),new a.N(w.lng+ee,w.lat+Q))}adjustAntiMeridian(){let w=new a.N(this._sw.lng,this._sw.lat),q=new a.N(this._ne.lng,this._ne.lat);return new ce(w,w.lng>q.lng?new a.N(q.lng+360,q.lat):q)}}class Je{constructor(w,q,Q){this.bounds=ce.convert(this.validateBounds(w)),this.minzoom=q||0,this.maxzoom=Q||24}validateBounds(w){return Array.isArray(w)&&w.length===4?[Math.max(-180,w[0]),Math.max(-90,w[1]),Math.min(180,w[2]),Math.min(90,w[3])]:[-180,-90,180,90]}contains(w){let q=Math.pow(2,w.z),Q=Math.floor(a.O(this.bounds.getWest())*q),ee=Math.floor(a.Q(this.bounds.getNorth())*q),ue=Math.ceil(a.O(this.bounds.getEast())*q),Ge=Math.ceil(a.Q(this.bounds.getSouth())*q);return w.x>=Q&&w.x=ee&&w.y{this._options.tiles=w}),this}setUrl(w){return this.setSourceProperty(()=>{this.url=w,this._options.url=w}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}serialize(){return a.e({},this._options)}loadTile(w){return a._(this,void 0,void 0,function*(){let q=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q={request:this.map._requestManager.transformRequest(q,"Tile"),uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,tileSize:this.tileSize*w.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};Q.request.collectResourceTiming=this._collectResourceTiming;let ee="RT";if(w.actor&&w.state!=="expired"){if(w.state==="loading")return new Promise((ue,Ge)=>{w.reloadPromise={resolve:ue,reject:Ge}})}else w.actor=this.dispatcher.getActor(),ee="LT";w.abortController=new AbortController;try{let ue=yield w.actor.sendAsync({type:ee,data:Q},w.abortController);if(delete w.abortController,w.aborted)return;this._afterTileLoadWorkerResponse(w,ue)}catch(ue){if(delete w.abortController,w.aborted)return;if(ue&&ue.status!==404)throw ue;this._afterTileLoadWorkerResponse(w,null)}})}_afterTileLoadWorkerResponse(w,q){if(q&&q.resourceTiming&&(w.resourceTiming=q.resourceTiming),q&&this.map._refreshExpiredTiles&&w.setExpiryData(q),w.loadVectorData(q,this.map.painter),w.reloadPromise){let Q=w.reloadPromise;w.reloadPromise=null,this.loadTile(w).then(Q.resolve).catch(Q.reject)}}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.actor&&(yield w.actor.sendAsync({type:"AT",data:{uid:w.uid,type:this.type,source:this.id}}))})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.unloadVectorData(),w.actor&&(yield w.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}}))})}hasTransition(){return!1}}class gt extends a.E{constructor(w,q,Q,ee){super(),this.id=w,this.dispatcher=Q,this.setEventedParent(ee),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=a.e({type:"raster"},q),a.e(this,a.M(q,["url","scheme","tileSize"]))}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{let w=yield Ve(this._options,this.map._requestManager,this._tileJSONRequest);this._tileJSONRequest=null,this._loaded=!0,w&&(a.e(this,w),w.bounds&&(this.tileBounds=new Je(w.bounds,this.minzoom,this.maxzoom)),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})))}catch(w){this._tileJSONRequest=null,this.fire(new a.j(w))}})}loaded(){return this._loaded}onAdd(w){this.map=w,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}setSourceProperty(w){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null),w(),this.load()}setTiles(w){return this.setSourceProperty(()=>{this._options.tiles=w}),this}setUrl(w){return this.setSourceProperty(()=>{this.url=w,this._options.url=w}),this}serialize(){return a.e({},this._options)}hasTile(w){return!this.tileBounds||this.tileBounds.contains(w.canonical)}loadTile(w){return a._(this,void 0,void 0,function*(){let q=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);w.abortController=new AbortController;try{let Q=yield v.getImage(this.map._requestManager.transformRequest(q,"Tile"),w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(Q&&Q.data){this.map._refreshExpiredTiles&&Q.cacheControl&&Q.expires&&w.setExpiryData({cacheControl:Q.cacheControl,expires:Q.expires});let ee=this.map.painter.context,ue=ee.gl,Ge=Q.data;w.texture=this.map.painter.getTileTexture(Ge.width),w.texture?w.texture.update(Ge,{useMipmap:!0}):(w.texture=new m(ee,Ge,ue.RGBA,{useMipmap:!0}),w.texture.bind(ue.LINEAR,ue.CLAMP_TO_EDGE,ue.LINEAR_MIPMAP_NEAREST)),w.state="loaded"}}catch(Q){if(delete w.abortController,w.aborted)w.state="unloaded";else if(Q)throw w.state="errored",Q}})}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController)})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.texture&&this.map.painter.saveTileTexture(w.texture)})}hasTransition(){return!1}}class Nt extends gt{constructor(w,q,Q,ee){super(w,q,Q,ee),this.type="raster-dem",this.maxzoom=22,this._options=a.e({type:"raster-dem"},q),this.encoding=q.encoding||"mapbox",this.redFactor=q.redFactor,this.greenFactor=q.greenFactor,this.blueFactor=q.blueFactor,this.baseShift=q.baseShift}loadTile(w){return a._(this,void 0,void 0,function*(){let q=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q=this.map._requestManager.transformRequest(q,"Tile");w.neighboringTiles=this._getNeighboringTiles(w.tileID),w.abortController=new AbortController;try{let ee=yield v.getImage(Q,w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(ee&&ee.data){let ue=ee.data;this.map._refreshExpiredTiles&&ee.cacheControl&&ee.expires&&w.setExpiryData({cacheControl:ee.cacheControl,expires:ee.expires});let Ge=a.b(ue)&&a.U()?ue:yield this.readImageNow(ue),et={type:this.type,uid:w.uid,source:this.id,rawImageData:Ge,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(!w.actor||w.state==="expired"){w.actor=this.dispatcher.getActor();let mt=yield w.actor.sendAsync({type:"LDT",data:et});w.dem=mt,w.needsHillshadePrepare=!0,w.needsTerrainPrepare=!0,w.state="loaded"}}}catch(ee){if(delete w.abortController,w.aborted)w.state="unloaded";else if(ee)throw w.state="errored",ee}})}readImageNow(w){return a._(this,void 0,void 0,function*(){if(typeof VideoFrame!="undefined"&&a.V()){let q=w.width+2,Q=w.height+2;try{return new a.R({width:q,height:Q},yield a.W(w,-1,-1,q,Q))}catch(ee){}}return l.getImageData(w,1)})}_getNeighboringTiles(w){let q=w.canonical,Q=Math.pow(2,q.z),ee=(q.x-1+Q)%Q,ue=q.x===0?w.wrap-1:w.wrap,Ge=(q.x+1+Q)%Q,et=q.x+1===Q?w.wrap+1:w.wrap,mt={};return mt[new a.S(w.overscaledZ,ue,q.z,ee,q.y).key]={backfilled:!1},mt[new a.S(w.overscaledZ,et,q.z,Ge,q.y).key]={backfilled:!1},q.y>0&&(mt[new a.S(w.overscaledZ,ue,q.z,ee,q.y-1).key]={backfilled:!1},mt[new a.S(w.overscaledZ,w.wrap,q.z,q.x,q.y-1).key]={backfilled:!1},mt[new a.S(w.overscaledZ,et,q.z,Ge,q.y-1).key]={backfilled:!1}),q.y+10&&a.e(ue,{resourceTiming:ee}),this.fire(new a.k("data",Object.assign(Object.assign({},ue),{sourceDataType:"metadata"}))),this.fire(new a.k("data",Object.assign(Object.assign({},ue),{sourceDataType:"content"})))}catch(Q){if(this._pendingLoads--,this._removed)return void this.fire(new a.k("dataabort",{dataType:"source"}));this.fire(new a.j(Q))}})}loaded(){return this._pendingLoads===0}loadTile(w){return a._(this,void 0,void 0,function*(){let q=w.actor?"RT":"LT";w.actor=this.actor;let Q={type:this.type,uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};w.abortController=new AbortController;let ee=yield this.actor.sendAsync({type:q,data:Q},w.abortController);delete w.abortController,w.unloadVectorData(),w.aborted||w.loadVectorData(ee,this.map.painter,q==="RT")})}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.aborted=!0})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.unloadVectorData(),yield this.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}})})}onRemove(){this._removed=!0,this.actor.sendAsync({type:"RS",data:{type:this.type,source:this.id}})}serialize(){return a.e({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}}var Ye=a.Y([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class kt extends a.E{constructor(w,q,Q,ee){super(),this.id=w,this.dispatcher=Q,this.coordinates=q.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ee),this.options=q}load(w){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=new AbortController;try{let q=yield v.getImage(this.map._requestManager.transformRequest(this.url,"Image"),this._request);this._request=null,this._loaded=!0,q&&q.data&&(this.image=q.data,w&&(this.coordinates=w),this._finishLoading())}catch(q){this._request=null,this._loaded=!0,this.fire(new a.j(q))}})}loaded(){return this._loaded}updateImage(w){return w.url?(this._request&&(this._request.abort(),this._request=null),this.options.url=w.url,this.load(w.coordinates).finally(()=>{this.texture=null}),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(w){this.map=w,this.load()}onRemove(){this._request&&(this._request.abort(),this._request=null)}setCoordinates(w){this.coordinates=w;let q=w.map(a.Z.fromLngLat);this.tileID=function(ee){let ue=1/0,Ge=1/0,et=-1/0,mt=-1/0;for(let kr of ee)ue=Math.min(ue,kr.x),Ge=Math.min(Ge,kr.y),et=Math.max(et,kr.x),mt=Math.max(mt,kr.y);let Ft=Math.max(et-ue,mt-Ge),ir=Math.max(0,Math.floor(-Math.log(Ft)/Math.LN2)),or=Math.pow(2,ir);return new a.a1(ir,Math.floor((ue+et)/2*or),Math.floor((Ge+mt)/2*or))}(q),this.minzoom=this.maxzoom=this.tileID.z;let Q=q.map(ee=>this.tileID.getTilePoint(ee)._round());return this._boundsArray=new a.$,this._boundsArray.emplaceBack(Q[0].x,Q[0].y,0,0),this._boundsArray.emplaceBack(Q[1].x,Q[1].y,a.X,0),this._boundsArray.emplaceBack(Q[3].x,Q[3].y,0,a.X),this._boundsArray.emplaceBack(Q[2].x,Q[2].y,a.X,a.X),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;let w=this.map.painter.context,q=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,Ye.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture||(this.texture=new m(w,this.image,q.RGBA),this.texture.bind(q.LINEAR,q.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let ue=this.tiles[ee];ue.state!=="loaded"&&(ue.state="loaded",ue.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}loadTile(w){return a._(this,void 0,void 0,function*(){this.tileID&&this.tileID.equals(w.tileID.canonical)?(this.tiles[String(w.tileID.wrap)]=w,w.buckets={}):w.state="errored"})}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}class Tt extends kt{constructor(w,q,Q,ee){super(w,q,Q,ee),this.roundZoom=!0,this.type="video",this.options=q}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1;let w=this.options;this.urls=[];for(let q of w.urls)this.urls.push(this.map._requestManager.transformRequest(q,"Source").url);try{let q=yield a.a3(this.urls);if(this._loaded=!0,!q)return;this.video=q,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading()}catch(q){this.fire(new a.j(q))}})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(w){if(this.video){let q=this.video.seekable;wq.end(0)?this.fire(new a.j(new a.a2(`sources.${this.id}`,null,`Playback for this video can be set only between the ${q.start(0)} and ${q.end(0)}-second mark.`))):this.video.currentTime=w}}getVideo(){return this.video}onAdd(w){this.map||(this.map=w,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let w=this.map.painter.context,q=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,Ye.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(q.LINEAR,q.CLAMP_TO_EDGE),q.texSubImage2D(q.TEXTURE_2D,0,0,0,q.RGBA,q.UNSIGNED_BYTE,this.video)):(this.texture=new m(w,this.video,q.RGBA),this.texture.bind(q.LINEAR,q.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let ue=this.tiles[ee];ue.state!=="loaded"&&(ue.state="loaded",ue.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class St extends kt{constructor(w,q,Q,ee){super(w,q,Q,ee),q.coordinates?Array.isArray(q.coordinates)&&q.coordinates.length===4&&!q.coordinates.some(ue=>!Array.isArray(ue)||ue.length!==2||ue.some(Ge=>typeof Ge!="number"))||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "coordinates"'))),q.animate&&typeof q.animate!="boolean"&&this.fire(new a.j(new a.a2(`sources.${w}`,null,'optional "animate" property must be a boolean value'))),q.canvas?typeof q.canvas=="string"||q.canvas instanceof HTMLCanvasElement||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "canvas"'))),this.options=q,this.animate=q.animate===void 0||q.animate}load(){return a._(this,void 0,void 0,function*(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new a.j(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())})}getCanvas(){return this.canvas}onAdd(w){this.map=w,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let w=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,w=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,w=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let q=this.map.painter.context,Q=q.gl;this.boundsBuffer||(this.boundsBuffer=q.createVertexBuffer(this._boundsArray,Ye.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?(w||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new m(q,this.canvas,Q.RGBA,{premultiply:!0});let ee=!1;for(let ue in this.tiles){let Ge=this.tiles[ue];Ge.state!=="loaded"&&(Ge.state="loaded",Ge.texture=this.texture,ee=!0)}ee&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let w of[this.canvas.width,this.canvas.height])if(isNaN(w)||w<=0)return!0;return!1}}let Dt={},Zt=le=>{switch(le){case"geojson":return it;case"image":return kt;case"raster":return gt;case"raster-dem":return Nt;case"vector":return nt;case"video":return Tt;case"canvas":return St}return Dt[le]},Et="RTLPluginLoaded";class Ae extends a.E{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=Me()}_syncState(w){return this.status=w,this.dispatcher.broadcast("SRPS",{pluginStatus:w,pluginURL:this.url}).catch(q=>{throw this.status="error",q})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(w){return a._(this,arguments,void 0,function*(q,Q=!1){if(this.url)throw new Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=l.resolveURL(q),!this.url)throw new Error(`requested url ${q} is invalid`);if(this.status==="unavailable"){if(!Q)return this._requestImport();this.status="deferred",this._syncState(this.status)}else if(this.status==="requested")return this._requestImport()})}_requestImport(){return a._(this,void 0,void 0,function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new a.k(Et))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}}let at=null;function wt(){return at||(at=new Ae),at}class vt{constructor(w,q){this.timeAdded=0,this.fadeEndTime=0,this.tileID=w,this.uid=a.a4(),this.uses=0,this.tileSize=q,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(w){let q=w+this.timeAdded;que.getLayer(Ft)).filter(Boolean);if(mt.length!==0){et.layers=mt,et.stateDependentLayerIds&&(et.stateDependentLayers=et.stateDependentLayerIds.map(Ft=>mt.filter(ir=>ir.id===Ft)[0]));for(let Ft of mt)Ge[Ft.id]=et}}return Ge}(w.buckets,q.style),this.hasSymbolBuckets=!1;for(let ee in this.buckets){let ue=this.buckets[ee];if(ue instanceof a.a6){if(this.hasSymbolBuckets=!0,!Q)break;ue.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let ee in this.buckets){let ue=this.buckets[ee];if(ue instanceof a.a6&&ue.hasRTLText){this.hasRTLText=!0,wt().lazyLoad();break}}this.queryPadding=0;for(let ee in this.buckets){let ue=this.buckets[ee];this.queryPadding=Math.max(this.queryPadding,q.style.getLayer(ee).queryRadius(ue))}w.imageAtlas&&(this.imageAtlas=w.imageAtlas),w.glyphAtlasImage&&(this.glyphAtlasImage=w.glyphAtlasImage)}else this.collisionBoxArray=new a.a5}unloadVectorData(){for(let w in this.buckets)this.buckets[w].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(w){return this.buckets[w.id]}upload(w){for(let Q in this.buckets){let ee=this.buckets[Q];ee.uploadPending()&&ee.upload(w)}let q=w.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new m(w,this.imageAtlas.image,q.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new m(w,this.glyphAtlasImage,q.ALPHA),this.glyphAtlasImage=null)}prepare(w){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(w,this.imageAtlasTexture)}queryRenderedFeatures(w,q,Q,ee,ue,Ge,et,mt,Ft,ir){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:ee,cameraQueryGeometry:ue,scale:Ge,tileSize:this.tileSize,pixelPosMatrix:ir,transform:mt,params:et,queryPadding:this.queryPadding*Ft},w,q,Q):{}}querySourceFeatures(w,q){let Q=this.latestFeatureIndex;if(!Q||!Q.rawTileData)return;let ee=Q.loadVTLayers(),ue=q&&q.sourceLayer?q.sourceLayer:"",Ge=ee._geojsonTileLayer||ee[ue];if(!Ge)return;let et=a.a7(q&&q.filter),{z:mt,x:Ft,y:ir}=this.tileID.canonical,or={z:mt,x:Ft,y:ir};for(let kr=0;krQ)ee=!1;else if(q)if(this.expirationTime{this.remove(w,ue)},Q)),this.data[ee].push(ue),this.order.push(ee),this.order.length>this.max){let Ge=this._getAndRemoveByKey(this.order[0]);Ge&&this.onRemove(Ge)}return this}has(w){return w.wrapped().key in this.data}getAndRemove(w){return this.has(w)?this._getAndRemoveByKey(w.wrapped().key):null}_getAndRemoveByKey(w){let q=this.data[w].shift();return q.timeout&&clearTimeout(q.timeout),this.data[w].length===0&&delete this.data[w],this.order.splice(this.order.indexOf(w),1),q.value}getByKey(w){let q=this.data[w];return q?q[0].value:null}get(w){return this.has(w)?this.data[w.wrapped().key][0].value:null}remove(w,q){if(!this.has(w))return this;let Q=w.wrapped().key,ee=q===void 0?0:this.data[Q].indexOf(q),ue=this.data[Q][ee];return this.data[Q].splice(ee,1),ue.timeout&&clearTimeout(ue.timeout),this.data[Q].length===0&&delete this.data[Q],this.onRemove(ue.value),this.order.splice(this.order.indexOf(Q),1),this}setMaxSize(w){for(this.max=w;this.order.length>this.max;){let q=this._getAndRemoveByKey(this.order[0]);q&&this.onRemove(q)}return this}filter(w){let q=[];for(let Q in this.data)for(let ee of this.data[Q])w(ee.value)||q.push(ee);for(let Q of q)this.remove(Q.value.tileID,Q)}}class Ue{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(w,q,Q){let ee=String(q);if(this.stateChanges[w]=this.stateChanges[w]||{},this.stateChanges[w][ee]=this.stateChanges[w][ee]||{},a.e(this.stateChanges[w][ee],Q),this.deletedStates[w]===null){this.deletedStates[w]={};for(let ue in this.state[w])ue!==ee&&(this.deletedStates[w][ue]=null)}else if(this.deletedStates[w]&&this.deletedStates[w][ee]===null){this.deletedStates[w][ee]={};for(let ue in this.state[w][ee])Q[ue]||(this.deletedStates[w][ee][ue]=null)}else for(let ue in Q)this.deletedStates[w]&&this.deletedStates[w][ee]&&this.deletedStates[w][ee][ue]===null&&delete this.deletedStates[w][ee][ue]}removeFeatureState(w,q,Q){if(this.deletedStates[w]===null)return;let ee=String(q);if(this.deletedStates[w]=this.deletedStates[w]||{},Q&&q!==void 0)this.deletedStates[w][ee]!==null&&(this.deletedStates[w][ee]=this.deletedStates[w][ee]||{},this.deletedStates[w][ee][Q]=null);else if(q!==void 0)if(this.stateChanges[w]&&this.stateChanges[w][ee])for(Q in this.deletedStates[w][ee]={},this.stateChanges[w][ee])this.deletedStates[w][ee][Q]=null;else this.deletedStates[w][ee]=null;else this.deletedStates[w]=null}getState(w,q){let Q=String(q),ee=a.e({},(this.state[w]||{})[Q],(this.stateChanges[w]||{})[Q]);if(this.deletedStates[w]===null)return{};if(this.deletedStates[w]){let ue=this.deletedStates[w][q];if(ue===null)return{};for(let Ge in ue)delete ee[Ge]}return ee}initializeTileState(w,q){w.setFeatureState(this.state,q)}coalesceChanges(w,q){let Q={};for(let ee in this.stateChanges){this.state[ee]=this.state[ee]||{};let ue={};for(let Ge in this.stateChanges[ee])this.state[ee][Ge]||(this.state[ee][Ge]={}),a.e(this.state[ee][Ge],this.stateChanges[ee][Ge]),ue[Ge]=this.state[ee][Ge];Q[ee]=ue}for(let ee in this.deletedStates){this.state[ee]=this.state[ee]||{};let ue={};if(this.deletedStates[ee]===null)for(let Ge in this.state[ee])ue[Ge]={},this.state[ee][Ge]={};else for(let Ge in this.deletedStates[ee]){if(this.deletedStates[ee][Ge]===null)this.state[ee][Ge]={};else for(let et of Object.keys(this.deletedStates[ee][Ge]))delete this.state[ee][Ge][et];ue[Ge]=this.state[ee][Ge]}Q[ee]=Q[ee]||{},a.e(Q[ee],ue)}if(this.stateChanges={},this.deletedStates={},Object.keys(Q).length!==0)for(let ee in w)w[ee].setFeatureState(Q,q)}}class rt extends a.E{constructor(w,q,Q){super(),this.id=w,this.dispatcher=Q,this.on("data",ee=>this._dataHandler(ee)),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=((ee,ue,Ge,et)=>{let mt=new(Zt(ue.type))(ee,ue,Ge,et);if(mt.id!==ee)throw new Error(`Expected Source id to be ${ee} instead of ${mt.id}`);return mt})(w,q,Q,this),this._tiles={},this._cache=new st(0,ee=>this._unloadTile(ee)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new Ue,this._didEmitContent=!1,this._updated=!1}onAdd(w){this.map=w,this._maxTileCacheSize=w?w._maxTileCacheSize:null,this._maxTileCacheZoomLevels=w?w._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(w)}onRemove(w){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(w)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(this.used===void 0&&this.usedForTerrain===void 0||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(let w in this._tiles){let q=this._tiles[w];if(q.state!=="loaded"&&q.state!=="errored")return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;let w=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,w&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(w,q,Q){return a._(this,void 0,void 0,function*(){try{yield this._source.loadTile(w),this._tileLoaded(w,q,Q)}catch(ee){w.state="errored",ee.status!==404?this._source.fire(new a.j(ee,{tile:w})):this.update(this.transform,this.terrain)}})}_unloadTile(w){this._source.unloadTile&&this._source.unloadTile(w)}_abortTile(w){this._source.abortTile&&this._source.abortTile(w),this._source.fire(new a.k("dataabort",{tile:w,coord:w.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(w){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(let q in this._tiles){let Q=this._tiles[q];Q.upload(w),Q.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map(w=>w.tileID).sort($e).map(w=>w.key)}getRenderableIds(w){let q=[];for(let Q in this._tiles)this._isIdRenderable(Q,w)&&q.push(this._tiles[Q]);return w?q.sort((Q,ee)=>{let ue=Q.tileID,Ge=ee.tileID,et=new a.P(ue.canonical.x,ue.canonical.y)._rotate(this.transform.angle),mt=new a.P(Ge.canonical.x,Ge.canonical.y)._rotate(this.transform.angle);return ue.overscaledZ-Ge.overscaledZ||mt.y-et.y||mt.x-et.x}).map(Q=>Q.tileID.key):q.map(Q=>Q.tileID).sort($e).map(Q=>Q.key)}hasRenderableParent(w){let q=this.findLoadedParent(w,0);return!!q&&this._isIdRenderable(q.tileID.key)}_isIdRenderable(w,q){return this._tiles[w]&&this._tiles[w].hasData()&&!this._coveredTiles[w]&&(q||!this._tiles[w].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(let w in this._tiles)this._tiles[w].state!=="errored"&&this._reloadTile(w,"reloading")}}_reloadTile(w,q){return a._(this,void 0,void 0,function*(){let Q=this._tiles[w];Q&&(Q.state!=="loading"&&(Q.state=q),yield this._loadTile(Q,w,q))})}_tileLoaded(w,q,Q){w.timeAdded=l.now(),Q==="expired"&&(w.refreshedUponExpiration=!0),this._setTileReloadTimer(q,w),this.getSource().type==="raster-dem"&&w.dem&&this._backfillDEM(w),this._state.initializeTileState(w,this.map?this.map.painter:null),w.aborted||this._source.fire(new a.k("data",{dataType:"source",tile:w,coord:w.tileID}))}_backfillDEM(w){let q=this.getRenderableIds();for(let ee=0;ee1||(Math.abs(Ge)>1&&(Math.abs(Ge+mt)===1?Ge+=mt:Math.abs(Ge-mt)===1&&(Ge-=mt)),ue.dem&&ee.dem&&(ee.dem.backfillBorder(ue.dem,Ge,et),ee.neighboringTiles&&ee.neighboringTiles[Ft]&&(ee.neighboringTiles[Ft].backfilled=!0)))}}getTile(w){return this.getTileByID(w.key)}getTileByID(w){return this._tiles[w]}_retainLoadedChildren(w,q,Q,ee){for(let ue in this._tiles){let Ge=this._tiles[ue];if(ee[ue]||!Ge.hasData()||Ge.tileID.overscaledZ<=q||Ge.tileID.overscaledZ>Q)continue;let et=Ge.tileID;for(;Ge&&Ge.tileID.overscaledZ>q+1;){let Ft=Ge.tileID.scaledTo(Ge.tileID.overscaledZ-1);Ge=this._tiles[Ft.key],Ge&&Ge.hasData()&&(et=Ft)}let mt=et;for(;mt.overscaledZ>q;)if(mt=mt.scaledTo(mt.overscaledZ-1),w[mt.key]){ee[et.key]=et;break}}}findLoadedParent(w,q){if(w.key in this._loadedParentTiles){let Q=this._loadedParentTiles[w.key];return Q&&Q.tileID.overscaledZ>=q?Q:null}for(let Q=w.overscaledZ-1;Q>=q;Q--){let ee=w.scaledTo(Q),ue=this._getLoadedTile(ee);if(ue)return ue}}findLoadedSibling(w){return this._getLoadedTile(w)}_getLoadedTile(w){let q=this._tiles[w.key];return q&&q.hasData()?q:this._cache.getByKey(w.wrapped().key)}updateCacheSize(w){let q=Math.ceil(w.width/this._source.tileSize)+1,Q=Math.ceil(w.height/this._source.tileSize)+1,ee=Math.floor(q*Q*(this._maxTileCacheZoomLevels===null?a.a.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),ue=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ee):ee;this._cache.setMaxSize(ue)}handleWrapJump(w){let q=Math.round((w-(this._prevLng===void 0?w:this._prevLng))/360);if(this._prevLng=w,q){let Q={};for(let ee in this._tiles){let ue=this._tiles[ee];ue.tileID=ue.tileID.unwrapTo(ue.tileID.wrap+q),Q[ue.tileID.key]=ue}this._tiles=Q;for(let ee in this._timers)clearTimeout(this._timers[ee]),delete this._timers[ee];for(let ee in this._tiles)this._setTileReloadTimer(ee,this._tiles[ee])}}_updateCoveredAndRetainedTiles(w,q,Q,ee,ue,Ge){let et={},mt={},Ft=Object.keys(w),ir=l.now();for(let or of Ft){let kr=w[or],Vr=this._tiles[or];if(!Vr||Vr.fadeEndTime!==0&&Vr.fadeEndTime<=ir)continue;let he=this.findLoadedParent(kr,q),Se=this.findLoadedSibling(kr),qe=he||Se||null;qe&&(this._addTile(qe.tileID),et[qe.tileID.key]=qe.tileID),mt[or]=kr}this._retainLoadedChildren(mt,ee,Q,w);for(let or in et)w[or]||(this._coveredTiles[or]=!0,w[or]=et[or]);if(Ge){let or={},kr={};for(let Vr of ue)this._tiles[Vr.key].hasData()?or[Vr.key]=Vr:kr[Vr.key]=Vr;for(let Vr in kr){let he=kr[Vr].children(this._source.maxzoom);this._tiles[he[0].key]&&this._tiles[he[1].key]&&this._tiles[he[2].key]&&this._tiles[he[3].key]&&(or[he[0].key]=w[he[0].key]=he[0],or[he[1].key]=w[he[1].key]=he[1],or[he[2].key]=w[he[2].key]=he[2],or[he[3].key]=w[he[3].key]=he[3],delete kr[Vr])}for(let Vr in kr){let he=kr[Vr],Se=this.findLoadedParent(he,this._source.minzoom),qe=this.findLoadedSibling(he),He=Se||qe||null;if(He){or[He.tileID.key]=w[He.tileID.key]=He.tileID;for(let lt in or)or[lt].isChildOf(He.tileID)&&delete or[lt]}}for(let Vr in this._tiles)or[Vr]||(this._coveredTiles[Vr]=!0)}}update(w,q){if(!this._sourceLoaded||this._paused)return;let Q;this.transform=w,this.terrain=q,this.updateCacheSize(w),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?Q=w.getVisibleUnwrappedCoordinates(this._source.tileID).map(ir=>new a.S(ir.canonical.z,ir.wrap,ir.canonical.z,ir.canonical.x,ir.canonical.y)):(Q=w.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:q}),this._source.hasTile&&(Q=Q.filter(ir=>this._source.hasTile(ir)))):Q=[];let ee=w.coveringZoomLevel(this._source),ue=Math.max(ee-rt.maxOverzooming,this._source.minzoom),Ge=Math.max(ee+rt.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){let ir={};for(let or of Q)if(or.canonical.z>this._source.minzoom){let kr=or.scaledTo(or.canonical.z-1);ir[kr.key]=kr;let Vr=or.scaledTo(Math.max(this._source.minzoom,Math.min(or.canonical.z,5)));ir[Vr.key]=Vr}Q=Q.concat(Object.values(ir))}let et=Q.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,et&&this.fire(new a.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));let mt=this._updateRetainedTiles(Q,ee);zt(this._source.type)&&this._updateCoveredAndRetainedTiles(mt,ue,Ge,ee,Q,q);for(let ir in mt)this._tiles[ir].clearFadeHold();let Ft=a.ab(this._tiles,mt);for(let ir of Ft){let or=this._tiles[ir];or.hasSymbolBuckets&&!or.holdingForFade()?or.setHoldDuration(this.map._fadeDuration):or.hasSymbolBuckets&&!or.symbolFadeFinished()||this._removeTile(ir)}this._updateLoadedParentTileCache(),this._updateLoadedSiblingTileCache()}releaseSymbolFadeTiles(){for(let w in this._tiles)this._tiles[w].holdingForFade()&&this._removeTile(w)}_updateRetainedTiles(w,q){var Q;let ee={},ue={},Ge=Math.max(q-rt.maxOverzooming,this._source.minzoom),et=Math.max(q+rt.maxUnderzooming,this._source.minzoom),mt={};for(let Ft of w){let ir=this._addTile(Ft);ee[Ft.key]=Ft,ir.hasData()||qthis._source.maxzoom){let kr=Ft.children(this._source.maxzoom)[0],Vr=this.getTile(kr);if(Vr&&Vr.hasData()){ee[kr.key]=kr;continue}}else{let kr=Ft.children(this._source.maxzoom);if(ee[kr[0].key]&&ee[kr[1].key]&&ee[kr[2].key]&&ee[kr[3].key])continue}let or=ir.wasRequested();for(let kr=Ft.overscaledZ-1;kr>=Ge;--kr){let Vr=Ft.scaledTo(kr);if(ue[Vr.key])break;if(ue[Vr.key]=!0,ir=this.getTile(Vr),!ir&&or&&(ir=this._addTile(Vr)),ir){let he=ir.hasData();if((he||!(!((Q=this.map)===null||Q===void 0)&&Q.cancelPendingTileRequestsWhileZooming)||or)&&(ee[Vr.key]=Vr),or=ir.wasRequested(),he)break}}}return ee}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(let w in this._tiles){let q=[],Q,ee=this._tiles[w].tileID;for(;ee.overscaledZ>0;){if(ee.key in this._loadedParentTiles){Q=this._loadedParentTiles[ee.key];break}q.push(ee.key);let ue=ee.scaledTo(ee.overscaledZ-1);if(Q=this._getLoadedTile(ue),Q)break;ee=ue}for(let ue of q)this._loadedParentTiles[ue]=Q}}_updateLoadedSiblingTileCache(){this._loadedSiblingTiles={};for(let w in this._tiles){let q=this._tiles[w].tileID,Q=this._getLoadedTile(q);this._loadedSiblingTiles[q.key]=Q}}_addTile(w){let q=this._tiles[w.key];if(q)return q;q=this._cache.getAndRemove(w),q&&(this._setTileReloadTimer(w.key,q),q.tileID=w,this._state.initializeTileState(q,this.map?this.map.painter:null),this._cacheTimers[w.key]&&(clearTimeout(this._cacheTimers[w.key]),delete this._cacheTimers[w.key],this._setTileReloadTimer(w.key,q)));let Q=q;return q||(q=new vt(w,this._source.tileSize*w.overscaleFactor()),this._loadTile(q,w.key,q.state)),q.uses++,this._tiles[w.key]=q,Q||this._source.fire(new a.k("dataloading",{tile:q,coord:q.tileID,dataType:"source"})),q}_setTileReloadTimer(w,q){w in this._timers&&(clearTimeout(this._timers[w]),delete this._timers[w]);let Q=q.getExpiryTimeout();Q&&(this._timers[w]=setTimeout(()=>{this._reloadTile(w,"expired"),delete this._timers[w]},Q))}_removeTile(w){let q=this._tiles[w];q&&(q.uses--,delete this._tiles[w],this._timers[w]&&(clearTimeout(this._timers[w]),delete this._timers[w]),q.uses>0||(q.hasData()&&q.state!=="reloading"?this._cache.add(q.tileID,q,q.getExpiryTimeout()):(q.aborted=!0,this._abortTile(q),this._unloadTile(q))))}_dataHandler(w){let q=w.sourceDataType;w.dataType==="source"&&q==="metadata"&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&w.dataType==="source"&&q==="content"&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(let w in this._tiles)this._removeTile(w);this._cache.reset()}tilesIn(w,q,Q){let ee=[],ue=this.transform;if(!ue)return ee;let Ge=Q?ue.getCameraQueryGeometry(w):w,et=w.map(he=>ue.pointCoordinate(he,this.terrain)),mt=Ge.map(he=>ue.pointCoordinate(he,this.terrain)),Ft=this.getIds(),ir=1/0,or=1/0,kr=-1/0,Vr=-1/0;for(let he of mt)ir=Math.min(ir,he.x),or=Math.min(or,he.y),kr=Math.max(kr,he.x),Vr=Math.max(Vr,he.y);for(let he=0;he=0&&tt[1].y+lt>=0){let pt=et.map(nr=>qe.getTilePoint(nr)),Ht=mt.map(nr=>qe.getTilePoint(nr));ee.push({tile:Se,tileID:qe,queryGeometry:pt,cameraQueryGeometry:Ht,scale:He})}}return ee}getVisibleCoordinates(w){let q=this.getRenderableIds(w).map(Q=>this._tiles[Q].tileID);for(let Q of q)Q.posMatrix=this.transform.calculatePosMatrix(Q.toUnwrapped());return q}hasTransition(){if(this._source.hasTransition())return!0;if(zt(this._source.type)){let w=l.now();for(let q in this._tiles)if(this._tiles[q].fadeEndTime>=w)return!0}return!1}setFeatureState(w,q,Q){this._state.updateState(w=w||"_geojsonTileLayer",q,Q)}removeFeatureState(w,q,Q){this._state.removeFeatureState(w=w||"_geojsonTileLayer",q,Q)}getFeatureState(w,q){return this._state.getState(w=w||"_geojsonTileLayer",q)}setDependencies(w,q,Q){let ee=this._tiles[w];ee&&ee.setDependencies(q,Q)}reloadTilesForDependencies(w,q){for(let Q in this._tiles)this._tiles[Q].hasDependency(w,q)&&this._reloadTile(Q,"reloading");this._cache.filter(Q=>!Q.hasDependency(w,q))}}function $e(le,w){let q=Math.abs(2*le.wrap)-+(le.wrap<0),Q=Math.abs(2*w.wrap)-+(w.wrap<0);return le.overscaledZ-w.overscaledZ||Q-q||w.canonical.y-le.canonical.y||w.canonical.x-le.canonical.x}function zt(le){return le==="raster"||le==="image"||le==="video"}rt.maxOverzooming=10,rt.maxUnderzooming=3;class Yt{constructor(w,q){this.reset(w,q)}reset(w,q){this.points=w||[],this._distances=[0];for(let Q=1;Q0?(ee-Ge)/et:0;return this.points[ue].mult(1-mt).add(this.points[q].mult(mt))}}function hr(le,w){let q=!0;return le==="always"||le!=="never"&&w!=="never"||(q=!1),q}class yr{constructor(w,q,Q){let ee=this.boxCells=[],ue=this.circleCells=[];this.xCellCount=Math.ceil(w/Q),this.yCellCount=Math.ceil(q/Q);for(let Ge=0;Gethis.width||ee<0||q>this.height)return[];let mt=[];if(w<=0&&q<=0&&this.width<=Q&&this.height<=ee){if(ue)return[{key:null,x1:w,y1:q,x2:Q,y2:ee}];for(let Ft=0;Ft0}hitTestCircle(w,q,Q,ee,ue){let Ge=w-Q,et=w+Q,mt=q-Q,Ft=q+Q;if(et<0||Ge>this.width||Ft<0||mt>this.height)return!1;let ir=[];return this._forEachCell(Ge,mt,et,Ft,this._queryCellCircle,ir,{hitTest:!0,overlapMode:ee,circle:{x:w,y:q,radius:Q},seenUids:{box:{},circle:{}}},ue),ir.length>0}_queryCell(w,q,Q,ee,ue,Ge,et,mt){let{seenUids:Ft,hitTest:ir,overlapMode:or}=et,kr=this.boxCells[ue];if(kr!==null){let he=this.bboxes;for(let Se of kr)if(!Ft.box[Se]){Ft.box[Se]=!0;let qe=4*Se,He=this.boxKeys[Se];if(w<=he[qe+2]&&q<=he[qe+3]&&Q>=he[qe+0]&&ee>=he[qe+1]&&(!mt||mt(He))&&(!ir||!hr(or,He.overlapMode))&&(Ge.push({key:He,x1:he[qe],y1:he[qe+1],x2:he[qe+2],y2:he[qe+3]}),ir))return!0}}let Vr=this.circleCells[ue];if(Vr!==null){let he=this.circles;for(let Se of Vr)if(!Ft.circle[Se]){Ft.circle[Se]=!0;let qe=3*Se,He=this.circleKeys[Se];if(this._circleAndRectCollide(he[qe],he[qe+1],he[qe+2],w,q,Q,ee)&&(!mt||mt(He))&&(!ir||!hr(or,He.overlapMode))){let lt=he[qe],tt=he[qe+1],pt=he[qe+2];if(Ge.push({key:He,x1:lt-pt,y1:tt-pt,x2:lt+pt,y2:tt+pt}),ir)return!0}}}return!1}_queryCellCircle(w,q,Q,ee,ue,Ge,et,mt){let{circle:Ft,seenUids:ir,overlapMode:or}=et,kr=this.boxCells[ue];if(kr!==null){let he=this.bboxes;for(let Se of kr)if(!ir.box[Se]){ir.box[Se]=!0;let qe=4*Se,He=this.boxKeys[Se];if(this._circleAndRectCollide(Ft.x,Ft.y,Ft.radius,he[qe+0],he[qe+1],he[qe+2],he[qe+3])&&(!mt||mt(He))&&!hr(or,He.overlapMode))return Ge.push(!0),!0}}let Vr=this.circleCells[ue];if(Vr!==null){let he=this.circles;for(let Se of Vr)if(!ir.circle[Se]){ir.circle[Se]=!0;let qe=3*Se,He=this.circleKeys[Se];if(this._circlesCollide(he[qe],he[qe+1],he[qe+2],Ft.x,Ft.y,Ft.radius)&&(!mt||mt(He))&&!hr(or,He.overlapMode))return Ge.push(!0),!0}}}_forEachCell(w,q,Q,ee,ue,Ge,et,mt){let Ft=this._convertToXCellCoord(w),ir=this._convertToYCellCoord(q),or=this._convertToXCellCoord(Q),kr=this._convertToYCellCoord(ee);for(let Vr=Ft;Vr<=or;Vr++)for(let he=ir;he<=kr;he++)if(ue.call(this,w,q,Q,ee,this.xCellCount*he+Vr,Ge,et,mt))return}_convertToXCellCoord(w){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(w*this.xScale)))}_convertToYCellCoord(w){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(w*this.yScale)))}_circlesCollide(w,q,Q,ee,ue,Ge){let et=ee-w,mt=ue-q,Ft=Q+Ge;return Ft*Ft>et*et+mt*mt}_circleAndRectCollide(w,q,Q,ee,ue,Ge,et){let mt=(Ge-ee)/2,Ft=Math.abs(w-(ee+mt));if(Ft>mt+Q)return!1;let ir=(et-ue)/2,or=Math.abs(q-(ue+ir));if(or>ir+Q)return!1;if(Ft<=mt||or<=ir)return!0;let kr=Ft-mt,Vr=or-ir;return kr*kr+Vr*Vr<=Q*Q}}function br(le,w,q,Q,ee){let ue=a.H();return w?(a.K(ue,ue,[1/ee,1/ee,1]),q||a.ad(ue,ue,Q.angle)):a.L(ue,Q.labelPlaneMatrix,le),ue}function Ut(le,w,q,Q,ee){if(w){let ue=a.ae(le);return a.K(ue,ue,[ee,ee,1]),q||a.ad(ue,ue,-Q.angle),ue}return Q.glCoordMatrix}function Ie(le,w,q,Q){let ee;Q?(ee=[le,w,Q(le,w),1],a.af(ee,ee,q)):(ee=[le,w,0,1],Mr(ee,ee,q));let ue=ee[3];return{point:new a.P(ee[0]/ue,ee[1]/ue),signedDistanceFromCamera:ue,isOccluded:!1}}function xe(le,w){return .5+le/w*.5}function Oe(le,w){return le.x>=-w[0]&&le.x<=w[0]&&le.y>=-w[1]&&le.y<=w[1]}function Re(le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he){let Se=Q?le.textSizeData:le.iconSizeData,qe=a.ag(Se,q.transform.zoom),He=[256/q.width*2+1,256/q.height*2+1],lt=Q?le.text.dynamicLayoutVertexArray:le.icon.dynamicLayoutVertexArray;lt.clear();let tt=le.lineVertexArray,pt=Q?le.text.placedSymbolArray:le.icon.placedSymbolArray,Ht=q.transform.width/q.transform.height,nr=!1;for(let fr=0;frMath.abs(q.x-w.x)*Q?{useVertical:!0}:(le===a.ah.vertical?w.yq.x)?{needsFlipping:!0}:null}function ge(le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir){let or=q/24,kr=w.lineOffsetX*or,Vr=w.lineOffsetY*or,he;if(w.numGlyphs>1){let Se=w.glyphStartIndex+w.numGlyphs,qe=w.lineStartIndex,He=w.lineStartIndex+w.lineLength,lt=De(or,et,kr,Vr,Q,w,ir,le);if(!lt)return{notEnoughRoom:!0};let tt=Ie(lt.first.point.x,lt.first.point.y,Ge,le.getElevation).point,pt=Ie(lt.last.point.x,lt.last.point.y,Ge,le.getElevation).point;if(ee&&!Q){let Ht=ct(w.writingMode,tt,pt,Ft);if(Ht)return Ht}he=[lt.first];for(let Ht=w.glyphStartIndex+1;Ht0?tt.point:function(nr,fr,Ar,Rr,ri,si){return fe(nr,fr,Ar,1,ri,si)}(le.tileAnchorPoint,lt,qe,0,ue,le),Ht=ct(w.writingMode,qe,pt,Ft);if(Ht)return Ht}let Se=rr(or*et.getoffsetX(w.glyphStartIndex),kr,Vr,Q,w.segment,w.lineStartIndex,w.lineStartIndex+w.lineLength,le,ir);if(!Se||le.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};he=[Se]}for(let Se of he)a.aj(mt,Se.point,Se.angle);return{}}function fe(le,w,q,Q,ee,ue){let Ge=le.add(le.sub(w)._unit()),et=ee!==void 0?Ie(Ge.x,Ge.y,ee,ue.getElevation).point:dt(Ge.x,Ge.y,ue).point,mt=q.sub(et);return q.add(mt._mult(Q/mt.mag()))}function de(le,w,q){let Q=w.projectionCache;if(Q.projections[le])return Q.projections[le];let ee=new a.P(w.lineVertexArray.getx(le),w.lineVertexArray.gety(le)),ue=dt(ee.x,ee.y,w);if(ue.signedDistanceFromCamera>0)return Q.projections[le]=ue.point,Q.anyProjectionOccluded=Q.anyProjectionOccluded||ue.isOccluded,ue.point;let Ge=le-q.direction;return function(et,mt,Ft,ir,or){return fe(et,mt,Ft,ir,void 0,or)}(q.distanceFromAnchor===0?w.tileAnchorPoint:new a.P(w.lineVertexArray.getx(Ge),w.lineVertexArray.gety(Ge)),ee,q.previousVertex,q.absOffsetX-q.distanceFromAnchor+1,w)}function dt(le,w,q){let Q=le+q.translation[0],ee=w+q.translation[1],ue;return!q.pitchWithMap&&q.projection.useSpecialProjectionForSymbols?(ue=q.projection.projectTileCoordinates(Q,ee,q.unwrappedTileID,q.getElevation),ue.point.x=(.5*ue.point.x+.5)*q.width,ue.point.y=(.5*-ue.point.y+.5)*q.height):(ue=Ie(Q,ee,q.labelPlaneMatrix,q.getElevation),ue.isOccluded=!1),ue}function It(le,w,q){return le._unit()._perp()._mult(w*q)}function Pt(le,w,q,Q,ee,ue,Ge,et,mt){if(et.projectionCache.offsets[le])return et.projectionCache.offsets[le];let Ft=q.add(w);if(le+mt.direction=ee)return et.projectionCache.offsets[le]=Ft,Ft;let ir=de(le+mt.direction,et,mt),or=It(ir.sub(q),Ge,mt.direction),kr=q.add(or),Vr=ir.add(or);return et.projectionCache.offsets[le]=a.ak(ue,Ft,kr,Vr)||Ft,et.projectionCache.offsets[le]}function rr(le,w,q,Q,ee,ue,Ge,et,mt){let Ft=Q?le-w:le+w,ir=Ft>0?1:-1,or=0;Q&&(ir*=-1,or=Math.PI),ir<0&&(or+=Math.PI);let kr,Vr=ir>0?ue+ee:ue+ee+1;et.projectionCache.cachedAnchorPoint?kr=et.projectionCache.cachedAnchorPoint:(kr=dt(et.tileAnchorPoint.x,et.tileAnchorPoint.y,et).point,et.projectionCache.cachedAnchorPoint=kr);let he,Se,qe=kr,He=kr,lt=0,tt=0,pt=Math.abs(Ft),Ht=[],nr;for(;lt+tt<=pt;){if(Vr+=ir,Vr=Ge)return null;lt+=tt,He=qe,Se=he;let Rr={absOffsetX:pt,direction:ir,distanceFromAnchor:lt,previousVertex:He};if(qe=de(Vr,et,Rr),q===0)Ht.push(He),nr=qe.sub(He);else{let ri,si=qe.sub(He);ri=si.mag()===0?It(de(Vr+ir,et,Rr).sub(qe),q,ir):It(si,q,ir),Se||(Se=He.add(ri)),he=Pt(Vr,ri,qe,ue,Ge,Se,q,et,Rr),Ht.push(Se),nr=he.sub(Se)}tt=nr.mag()}let fr=nr._mult((pt-lt)/tt)._add(Se||He),Ar=or+Math.atan2(qe.y-He.y,qe.x-He.x);return Ht.push(fr),{point:fr,angle:mt?Ar:0,path:Ht}}let Hr=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Dr(le,w){for(let q=0;q=1;Us--)Ua.push(Zn.path[Us]);for(let Us=1;Usml.signedDistanceFromCamera<=0)?[]:Us.map(ml=>ml.point)}let vl=[];if(Ua.length>0){let Us=Ua[0].clone(),ml=Ua[0].clone();for(let au=1;au=si.x&&ml.x<=Mi.x&&Us.y>=si.y&&ml.y<=Mi.y?[Ua]:ml.xMi.x||ml.yMi.y?[]:a.al([Ua],si.x,si.y,Mi.x,Mi.y)}for(let Us of vl){hn.reset(Us,.25*ri);let ml=0;ml=hn.length<=.5*ri?1:Math.ceil(hn.paddedLength/Fo)+1;for(let au=0;auIe(ee.x,ee.y,Q,q.getElevation))}queryRenderedSymbols(w){if(w.length===0||this.grid.keysLength()===0&&this.ignoredGrid.keysLength()===0)return{};let q=[],Q=1/0,ee=1/0,ue=-1/0,Ge=-1/0;for(let ir of w){let or=new a.P(ir.x+Fr,ir.y+Fr);Q=Math.min(Q,or.x),ee=Math.min(ee,or.y),ue=Math.max(ue,or.x),Ge=Math.max(Ge,or.y),q.push(or)}let et=this.grid.query(Q,ee,ue,Ge).concat(this.ignoredGrid.query(Q,ee,ue,Ge)),mt={},Ft={};for(let ir of et){let or=ir.key;if(mt[or.bucketInstanceId]===void 0&&(mt[or.bucketInstanceId]={}),mt[or.bucketInstanceId][or.featureIndex])continue;let kr=[new a.P(ir.x1,ir.y1),new a.P(ir.x2,ir.y1),new a.P(ir.x2,ir.y2),new a.P(ir.x1,ir.y2)];a.am(q,kr)&&(mt[or.bucketInstanceId][or.featureIndex]=!0,Ft[or.bucketInstanceId]===void 0&&(Ft[or.bucketInstanceId]=[]),Ft[or.bucketInstanceId].push(or.featureIndex))}return Ft}insertCollisionBox(w,q,Q,ee,ue,Ge){(Q?this.ignoredGrid:this.grid).insert({bucketInstanceId:ee,featureIndex:ue,collisionGroupID:Ge,overlapMode:q},w[0],w[1],w[2],w[3])}insertCollisionCircles(w,q,Q,ee,ue,Ge){let et=Q?this.ignoredGrid:this.grid,mt={bucketInstanceId:ee,featureIndex:ue,collisionGroupID:Ge,overlapMode:q};for(let Ft=0;Ft=this.screenRightBoundary||eethis.screenBottomBoundary}isInsideGrid(w,q,Q,ee){return Q>=0&&w=0&&qthis.projectAndGetPerspectiveRatio(Q,ri.x,ri.y,ee,Ft));Ar=Rr.some(ri=>!ri.isOccluded),fr=Rr.map(ri=>ri.point)}else Ar=!0;return{box:a.ao(fr),allPointsOccluded:!Ar}}}function Di(le,w,q){return w*(a.X/(le.tileSize*Math.pow(2,q-le.tileID.overscaledZ)))}class Ii{constructor(w,q,Q,ee){this.opacity=w?Math.max(0,Math.min(1,w.opacity+(w.placed?q:-q))):ee&&Q?1:0,this.placed=Q}isHidden(){return this.opacity===0&&!this.placed}}class Ci{constructor(w,q,Q,ee,ue){this.text=new Ii(w?w.text:null,q,Q,ue),this.icon=new Ii(w?w.icon:null,q,ee,ue)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class nn{constructor(w,q,Q){this.text=w,this.icon=q,this.skipFade=Q}}class ii{constructor(){this.invProjMatrix=a.H(),this.viewportMatrix=a.H(),this.circles=[]}}class wi{constructor(w,q,Q,ee,ue){this.bucketInstanceId=w,this.featureIndex=q,this.sourceLayerIndex=Q,this.bucketIndex=ee,this.tileID=ue}}class Gi{constructor(w){this.crossSourceCollisions=w,this.maxGroupID=0,this.collisionGroups={}}get(w){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[w]){let q=++this.maxGroupID;this.collisionGroups[w]={ID:q,predicate:Q=>Q.collisionGroupID===q}}return this.collisionGroups[w]}}function Bt(le,w,q,Q,ee){let{horizontalAlign:ue,verticalAlign:Ge}=a.au(le);return new a.P(-(ue-.5)*w+Q[0]*ee,-(Ge-.5)*q+Q[1]*ee)}class yt{constructor(w,q,Q,ee,ue,Ge){this.transform=w.clone(),this.terrain=Q,this.collisionIndex=new di(this.transform,q),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=ee,this.retainedQueryData={},this.collisionGroups=new Gi(ue),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=Ge,Ge&&(Ge.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(w){let q=this.terrain;return q?(Q,ee)=>q.getElevation(w,Q,ee):null}getBucketParts(w,q,Q,ee){let ue=Q.getBucket(q),Ge=Q.latestFeatureIndex;if(!ue||!Ge||q.id!==ue.layerIds[0])return;let et=Q.collisionBoxArray,mt=ue.layers[0].layout,Ft=ue.layers[0].paint,ir=Math.pow(2,this.transform.zoom-Q.tileID.overscaledZ),or=Q.tileSize/a.X,kr=Q.tileID.toUnwrapped(),Vr=this.transform.calculatePosMatrix(kr),he=mt.get("text-pitch-alignment")==="map",Se=mt.get("text-rotation-alignment")==="map",qe=Di(Q,1,this.transform.zoom),He=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Ft.get("text-translate"),Ft.get("text-translate-anchor")),lt=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Ft.get("icon-translate"),Ft.get("icon-translate-anchor")),tt=br(Vr,he,Se,this.transform,qe),pt=null;if(he){let nr=Ut(Vr,he,Se,this.transform,qe);pt=a.L([],this.transform.labelPlaneMatrix,nr)}this.retainedQueryData[ue.bucketInstanceId]=new wi(ue.bucketInstanceId,Ge,ue.sourceLayerIndex,ue.index,Q.tileID);let Ht={bucket:ue,layout:mt,translationText:He,translationIcon:lt,posMatrix:Vr,unwrappedTileID:kr,textLabelPlaneMatrix:tt,labelToScreenMatrix:pt,scale:ir,textPixelRatio:or,holdingForFade:Q.holdingForFade(),collisionBoxArray:et,partiallyEvaluatedTextSize:a.ag(ue.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(ue.sourceID)};if(ee)for(let nr of ue.sortKeyRanges){let{sortKey:fr,symbolInstanceStart:Ar,symbolInstanceEnd:Rr}=nr;w.push({sortKey:fr,symbolInstanceStart:Ar,symbolInstanceEnd:Rr,parameters:Ht})}else w.push({symbolInstanceStart:0,symbolInstanceEnd:ue.symbolInstances.length,parameters:Ht})}attemptAnchorPlacement(w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt,tt){let pt=a.aq[w.textAnchor],Ht=[w.textOffset0,w.textOffset1],nr=Bt(pt,Q,ee,Ht,ue),fr=this.collisionIndex.placeCollisionBox(q,kr,mt,Ft,ir,et,Ge,qe,or.predicate,tt,nr);if((!lt||this.collisionIndex.placeCollisionBox(lt,kr,mt,Ft,ir,et,Ge,He,or.predicate,tt,nr).placeable)&&fr.placeable){let Ar;if(this.prevPlacement&&this.prevPlacement.variableOffsets[Vr.crossTileID]&&this.prevPlacement.placements[Vr.crossTileID]&&this.prevPlacement.placements[Vr.crossTileID].text&&(Ar=this.prevPlacement.variableOffsets[Vr.crossTileID].anchor),Vr.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[Vr.crossTileID]={textOffset:Ht,width:Q,height:ee,anchor:pt,textBoxScale:ue,prevAnchor:Ar},this.markUsedJustification(he,pt,Vr,Se),he.allowVerticalPlacement&&(this.markUsedOrientation(he,Se,Vr),this.placedOrientations[Vr.crossTileID]=Se),{shift:nr,placedGlyphBoxes:fr}}}placeLayerBucketPart(w,q,Q){let{bucket:ee,layout:ue,translationText:Ge,translationIcon:et,posMatrix:mt,unwrappedTileID:Ft,textLabelPlaneMatrix:ir,labelToScreenMatrix:or,textPixelRatio:kr,holdingForFade:Vr,collisionBoxArray:he,partiallyEvaluatedTextSize:Se,collisionGroup:qe}=w.parameters,He=ue.get("text-optional"),lt=ue.get("icon-optional"),tt=a.ar(ue,"text-overlap","text-allow-overlap"),pt=tt==="always",Ht=a.ar(ue,"icon-overlap","icon-allow-overlap"),nr=Ht==="always",fr=ue.get("text-rotation-alignment")==="map",Ar=ue.get("text-pitch-alignment")==="map",Rr=ue.get("icon-text-fit")!=="none",ri=ue.get("symbol-z-order")==="viewport-y",si=pt&&(nr||!ee.hasIconData()||lt),Mi=nr&&(pt||!ee.hasTextData()||He);!ee.collisionArrays&&he&&ee.deserializeCollisionBoxes(he);let hn=this._getTerrainElevationFunc(this.retainedQueryData[ee.bucketInstanceId].tileID),Zn=(Yn,Ua,Fo)=>{var vl,Us;if(q[Yn.crossTileID])return;if(Vr)return void(this.placements[Yn.crossTileID]=new nn(!1,!1,!1));let ml=!1,au=!1,Sl=!0,Yl=null,ql={box:null,placeable:!1,offscreen:null},ou={box:null,placeable:!1,offscreen:null},Pu=null,iu=null,tu=null,Wu=0,Qu=0,Ju=0;Ua.textFeatureIndex?Wu=Ua.textFeatureIndex:Yn.useRuntimeCollisionCircles&&(Wu=Yn.featureIndex),Ua.verticalTextFeatureIndex&&(Qu=Ua.verticalTextFeatureIndex);let ju=Ua.textBox;if(ju){let ef=ze=>{let Xe=a.ah.horizontal;if(ee.allowVerticalPlacement&&!ze&&this.prevPlacement){let Qe=this.prevPlacement.placedOrientations[Yn.crossTileID];Qe&&(this.placedOrientations[Yn.crossTileID]=Qe,Xe=Qe,this.markUsedOrientation(ee,Xe,Yn))}return Xe},tf=(ze,Xe)=>{if(ee.allowVerticalPlacement&&Yn.numVerticalGlyphVertices>0&&Ua.verticalTextBox){for(let Qe of ee.writingModes)if(Qe===a.ah.vertical?(ql=Xe(),ou=ql):ql=ze(),ql&&ql.placeable)break}else ql=ze()},Z=Yn.textAnchorOffsetStartIndex,se=Yn.textAnchorOffsetEndIndex;if(se===Z){let ze=(Xe,Qe)=>{let ot=this.collisionIndex.placeCollisionBox(Xe,tt,kr,mt,Ft,Ar,fr,Ge,qe.predicate,hn);return ot&&ot.placeable&&(this.markUsedOrientation(ee,Qe,Yn),this.placedOrientations[Yn.crossTileID]=Qe),ot};tf(()=>ze(ju,a.ah.horizontal),()=>{let Xe=Ua.verticalTextBox;return ee.allowVerticalPlacement&&Yn.numVerticalGlyphVertices>0&&Xe?ze(Xe,a.ah.vertical):{box:null,offscreen:null}}),ef(ql&&ql.placeable)}else{let ze=a.aq[(Us=(vl=this.prevPlacement)===null||vl===void 0?void 0:vl.variableOffsets[Yn.crossTileID])===null||Us===void 0?void 0:Us.anchor],Xe=(ot,jt,_t)=>{let cr=ot.x2-ot.x1,Cr=ot.y2-ot.y1,zr=Yn.textBoxScale,ui=Rr&&Ht==="never"?jt:null,$r=null,Oi=tt==="never"?1:2,fn="never";ze&&Oi++;for(let vi=0;viXe(ju,Ua.iconBox,a.ah.horizontal),()=>{let ot=Ua.verticalTextBox;return ee.allowVerticalPlacement&&(!ql||!ql.placeable)&&Yn.numVerticalGlyphVertices>0&&ot?Xe(ot,Ua.verticalIconBox,a.ah.vertical):{box:null,occluded:!0,offscreen:null}}),ql&&(ml=ql.placeable,Sl=ql.offscreen);let Qe=ef(ql&&ql.placeable);if(!ml&&this.prevPlacement){let ot=this.prevPlacement.variableOffsets[Yn.crossTileID];ot&&(this.variableOffsets[Yn.crossTileID]=ot,this.markUsedJustification(ee,ot.anchor,Yn,Qe))}}}if(Pu=ql,ml=Pu&&Pu.placeable,Sl=Pu&&Pu.offscreen,Yn.useRuntimeCollisionCircles){let ef=ee.text.placedSymbolArray.get(Yn.centerJustifiedTextSymbolIndex),tf=a.ai(ee.textSizeData,Se,ef),Z=ue.get("text-padding");iu=this.collisionIndex.placeCollisionCircles(tt,ef,ee.lineVertexArray,ee.glyphOffsetArray,tf,mt,Ft,ir,or,Q,Ar,qe.predicate,Yn.collisionCircleDiameter,Z,Ge,hn),iu.circles.length&&iu.collisionDetected&&!Q&&a.w("Collisions detected, but collision boxes are not shown"),ml=pt||iu.circles.length>0&&!iu.collisionDetected,Sl=Sl&&iu.offscreen}if(Ua.iconFeatureIndex&&(Ju=Ua.iconFeatureIndex),Ua.iconBox){let ef=tf=>this.collisionIndex.placeCollisionBox(tf,Ht,kr,mt,Ft,Ar,fr,et,qe.predicate,hn,Rr&&Yl?Yl:void 0);ou&&ou.placeable&&Ua.verticalIconBox?(tu=ef(Ua.verticalIconBox),au=tu.placeable):(tu=ef(Ua.iconBox),au=tu.placeable),Sl=Sl&&tu.offscreen}let Xu=He||Yn.numHorizontalGlyphVertices===0&&Yn.numVerticalGlyphVertices===0,lf=lt||Yn.numIconVertices===0;Xu||lf?lf?Xu||(au=au&&ml):ml=au&&ml:au=ml=au&&ml;let xf=au&&tu.placeable;if(ml&&Pu.placeable&&this.collisionIndex.insertCollisionBox(Pu.box,tt,ue.get("text-ignore-placement"),ee.bucketInstanceId,ou&&ou.placeable&&Qu?Qu:Wu,qe.ID),xf&&this.collisionIndex.insertCollisionBox(tu.box,Ht,ue.get("icon-ignore-placement"),ee.bucketInstanceId,Ju,qe.ID),iu&&ml&&this.collisionIndex.insertCollisionCircles(iu.circles,tt,ue.get("text-ignore-placement"),ee.bucketInstanceId,Wu,qe.ID),Q&&this.storeCollisionData(ee.bucketInstanceId,Fo,Ua,Pu,tu,iu),Yn.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");if(ee.bucketInstanceId===0)throw new Error("bucket.bucketInstanceId can't be 0");this.placements[Yn.crossTileID]=new nn(ml||si,au||Mi,Sl||ee.justReloaded),q[Yn.crossTileID]=!0};if(ri){if(w.symbolInstanceStart!==0)throw new Error("bucket.bucketInstanceId should be 0");let Yn=ee.getSortedSymbolIndexes(this.transform.angle);for(let Ua=Yn.length-1;Ua>=0;--Ua){let Fo=Yn[Ua];Zn(ee.symbolInstances.get(Fo),ee.collisionArrays[Fo],Fo)}}else for(let Yn=w.symbolInstanceStart;Yn=0&&(w.text.placedSymbolArray.get(et).crossTileID=ue>=0&&et!==ue?0:Q.crossTileID)}markUsedOrientation(w,q,Q){let ee=q===a.ah.horizontal||q===a.ah.horizontalOnly?q:0,ue=q===a.ah.vertical?q:0,Ge=[Q.leftJustifiedTextSymbolIndex,Q.centerJustifiedTextSymbolIndex,Q.rightJustifiedTextSymbolIndex];for(let et of Ge)w.text.placedSymbolArray.get(et).placedOrientation=ee;Q.verticalPlacedTextSymbolIndex&&(w.text.placedSymbolArray.get(Q.verticalPlacedTextSymbolIndex).placedOrientation=ue)}commit(w){this.commitTime=w,this.zoomAtLastRecencyCheck=this.transform.zoom;let q=this.prevPlacement,Q=!1;this.prevZoomAdjustment=q?q.zoomAdjustment(this.transform.zoom):0;let ee=q?q.symbolFadeChange(w):1,ue=q?q.opacities:{},Ge=q?q.variableOffsets:{},et=q?q.placedOrientations:{};for(let mt in this.placements){let Ft=this.placements[mt],ir=ue[mt];ir?(this.opacities[mt]=new Ci(ir,ee,Ft.text,Ft.icon),Q=Q||Ft.text!==ir.text.placed||Ft.icon!==ir.icon.placed):(this.opacities[mt]=new Ci(null,ee,Ft.text,Ft.icon,Ft.skipFade),Q=Q||Ft.text||Ft.icon)}for(let mt in ue){let Ft=ue[mt];if(!this.opacities[mt]){let ir=new Ci(Ft,ee,!1,!1);ir.isHidden()||(this.opacities[mt]=ir,Q=Q||Ft.text.placed||Ft.icon.placed)}}for(let mt in Ge)this.variableOffsets[mt]||!this.opacities[mt]||this.opacities[mt].isHidden()||(this.variableOffsets[mt]=Ge[mt]);for(let mt in et)this.placedOrientations[mt]||!this.opacities[mt]||this.opacities[mt].isHidden()||(this.placedOrientations[mt]=et[mt]);if(q&&q.lastPlacementChangeTime===void 0)throw new Error("Last placement time for previous placement is not defined");Q?this.lastPlacementChangeTime=w:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=q?q.lastPlacementChangeTime:w)}updateLayerOpacities(w,q){let Q={};for(let ee of q){let ue=ee.getBucket(w);ue&&ee.latestFeatureIndex&&w.id===ue.layerIds[0]&&this.updateBucketOpacities(ue,ee.tileID,Q,ee.collisionBoxArray)}}updateBucketOpacities(w,q,Q,ee){w.hasTextData()&&(w.text.opacityVertexArray.clear(),w.text.hasVisibleVertices=!1),w.hasIconData()&&(w.icon.opacityVertexArray.clear(),w.icon.hasVisibleVertices=!1),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexArray.clear(),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexArray.clear();let ue=w.layers[0],Ge=ue.layout,et=new Ci(null,0,!1,!1,!0),mt=Ge.get("text-allow-overlap"),Ft=Ge.get("icon-allow-overlap"),ir=ue._unevaluatedLayout.hasValue("text-variable-anchor")||ue._unevaluatedLayout.hasValue("text-variable-anchor-offset"),or=Ge.get("text-rotation-alignment")==="map",kr=Ge.get("text-pitch-alignment")==="map",Vr=Ge.get("icon-text-fit")!=="none",he=new Ci(null,0,mt&&(Ft||!w.hasIconData()||Ge.get("icon-optional")),Ft&&(mt||!w.hasTextData()||Ge.get("text-optional")),!0);!w.collisionArrays&&ee&&(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData())&&w.deserializeCollisionBoxes(ee);let Se=(He,lt,tt)=>{for(let pt=0;pt0,Ar=this.placedOrientations[lt.crossTileID],Rr=Ar===a.ah.vertical,ri=Ar===a.ah.horizontal||Ar===a.ah.horizontalOnly;if(tt>0||pt>0){let Mi=yi(nr.text);Se(w.text,tt,Rr?Ei:Mi),Se(w.text,pt,ri?Ei:Mi);let hn=nr.text.isHidden();[lt.rightJustifiedTextSymbolIndex,lt.centerJustifiedTextSymbolIndex,lt.leftJustifiedTextSymbolIndex].forEach(Ua=>{Ua>=0&&(w.text.placedSymbolArray.get(Ua).hidden=hn||Rr?1:0)}),lt.verticalPlacedTextSymbolIndex>=0&&(w.text.placedSymbolArray.get(lt.verticalPlacedTextSymbolIndex).hidden=hn||ri?1:0);let Zn=this.variableOffsets[lt.crossTileID];Zn&&this.markUsedJustification(w,Zn.anchor,lt,Ar);let Yn=this.placedOrientations[lt.crossTileID];Yn&&(this.markUsedJustification(w,"left",lt,Yn),this.markUsedOrientation(w,Yn,lt))}if(fr){let Mi=yi(nr.icon),hn=!(Vr&<.verticalPlacedIconSymbolIndex&&Rr);lt.placedIconSymbolIndex>=0&&(Se(w.icon,lt.numIconVertices,hn?Mi:Ei),w.icon.placedSymbolArray.get(lt.placedIconSymbolIndex).hidden=nr.icon.isHidden()),lt.verticalPlacedIconSymbolIndex>=0&&(Se(w.icon,lt.numVerticalIconVertices,hn?Ei:Mi),w.icon.placedSymbolArray.get(lt.verticalPlacedIconSymbolIndex).hidden=nr.icon.isHidden())}let si=qe&&qe.has(He)?qe.get(He):{text:null,icon:null};if(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData()){let Mi=w.collisionArrays[He];if(Mi){let hn=new a.P(0,0);if(Mi.textBox||Mi.verticalTextBox){let Zn=!0;if(ir){let Yn=this.variableOffsets[Ht];Yn?(hn=Bt(Yn.anchor,Yn.width,Yn.height,Yn.textOffset,Yn.textBoxScale),or&&hn._rotate(kr?this.transform.angle:-this.transform.angle)):Zn=!1}if(Mi.textBox||Mi.verticalTextBox){let Yn;Mi.textBox&&(Yn=Rr),Mi.verticalTextBox&&(Yn=ri),Vt(w.textCollisionBox.collisionVertexArray,nr.text.placed,!Zn||Yn,si.text,hn.x,hn.y)}}if(Mi.iconBox||Mi.verticalIconBox){let Zn=!!(!ri&&Mi.verticalIconBox),Yn;Mi.iconBox&&(Yn=Zn),Mi.verticalIconBox&&(Yn=!Zn),Vt(w.iconCollisionBox.collisionVertexArray,nr.icon.placed,Yn,si.icon,Vr?hn.x:0,Vr?hn.y:0)}}}}if(w.sortFeatures(this.transform.angle),this.retainedQueryData[w.bucketInstanceId]&&(this.retainedQueryData[w.bucketInstanceId].featureSortOrder=w.featureSortOrder),w.hasTextData()&&w.text.opacityVertexBuffer&&w.text.opacityVertexBuffer.updateData(w.text.opacityVertexArray),w.hasIconData()&&w.icon.opacityVertexBuffer&&w.icon.opacityVertexBuffer.updateData(w.icon.opacityVertexArray),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexBuffer&&w.iconCollisionBox.collisionVertexBuffer.updateData(w.iconCollisionBox.collisionVertexArray),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexBuffer&&w.textCollisionBox.collisionVertexBuffer.updateData(w.textCollisionBox.collisionVertexArray),w.text.opacityVertexArray.length!==w.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${w.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${w.text.layoutVertexArray.length}) / 4`);if(w.icon.opacityVertexArray.length!==w.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${w.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${w.icon.layoutVertexArray.length}) / 4`);if(w.bucketInstanceId in this.collisionCircleArrays){let He=this.collisionCircleArrays[w.bucketInstanceId];w.placementInvProjMatrix=He.invProjMatrix,w.placementViewportMatrix=He.viewportMatrix,w.collisionCircleArray=He.circles,delete this.collisionCircleArrays[w.bucketInstanceId]}}symbolFadeChange(w){return this.fadeDuration===0?1:(w-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(w){return Math.max(0,(this.transform.zoom-w)/1.5)}hasTransitions(w){return this.stale||w-this.lastPlacementChangeTimew}setStale(){this.stale=!0}}function Vt(le,w,q,Q,ee,ue){Q&&Q.length!==0||(Q=[0,0,0,0]);let Ge=Q[0]-Fr,et=Q[1]-Fr,mt=Q[2]-Fr,Ft=Q[3]-Fr;le.emplaceBack(w?1:0,q?1:0,ee||0,ue||0,Ge,et),le.emplaceBack(w?1:0,q?1:0,ee||0,ue||0,mt,et),le.emplaceBack(w?1:0,q?1:0,ee||0,ue||0,mt,Ft),le.emplaceBack(w?1:0,q?1:0,ee||0,ue||0,Ge,Ft)}let Wt=Math.pow(2,25),_r=Math.pow(2,24),Lr=Math.pow(2,17),Ur=Math.pow(2,16),Ir=Math.pow(2,9),Gr=Math.pow(2,8),jr=Math.pow(2,1);function yi(le){if(le.opacity===0&&!le.placed)return 0;if(le.opacity===1&&le.placed)return 4294967295;let w=le.placed?1:0,q=Math.floor(127*le.opacity);return q*Wt+w*_r+q*Lr+w*Ur+q*Ir+w*Gr+q*jr+w}let Ei=0;function Vi(){return{isOccluded:(le,w,q)=>!1,getPitchedTextCorrection:(le,w,q)=>1,get useSpecialProjectionForSymbols(){return!1},projectTileCoordinates(le,w,q,Q){throw new Error("Not implemented.")},translatePosition:(le,w,q,Q)=>function(ee,ue,Ge,et,mt=!1){if(!Ge[0]&&!Ge[1])return[0,0];let Ft=mt?et==="map"?ee.angle:0:et==="viewport"?-ee.angle:0;if(Ft){let ir=Math.sin(Ft),or=Math.cos(Ft);Ge=[Ge[0]*or-Ge[1]*ir,Ge[0]*ir+Ge[1]*or]}return[mt?Ge[0]:Di(ue,Ge[0],ee.zoom),mt?Ge[1]:Di(ue,Ge[1],ee.zoom)]}(le,w,q,Q),getCircleRadiusCorrection:le=>1}}class ti{constructor(w){this._sortAcrossTiles=w.layout.get("symbol-z-order")!=="viewport-y"&&!w.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(w,q,Q,ee,ue){let Ge=this._bucketParts;for(;this._currentTileIndexet.sortKey-mt.sortKey));this._currentPartIndex!this._forceFullPlacement&&l.now()-ee>2;for(;this._currentPlacementIndex>=0;){let Ge=q[w[this._currentPlacementIndex]],et=this.placement.collisionIndex.transform.zoom;if(Ge.type==="symbol"&&(!Ge.minzoom||Ge.minzoom<=et)&&(!Ge.maxzoom||Ge.maxzoom>et)){if(this._inProgressLayer||(this._inProgressLayer=new ti(Ge)),this._inProgressLayer.continuePlacement(Q[Ge.source],this.placement,this._showCollisionBoxes,Ge,ue))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(w){return this.placement.commit(w),this.placement}}let Yr=512/a.X/2;class oi{constructor(w,q,Q){this.tileID=w,this.bucketInstanceId=Q,this._symbolsByKey={};let ee=new Map;for(let ue=0;ue({x:Math.floor(mt.anchorX*Yr),y:Math.floor(mt.anchorY*Yr)})),crossTileIDs:Ge.map(mt=>mt.crossTileID)};if(et.positions.length>128){let mt=new a.av(et.positions.length,16,Uint16Array);for(let{x:Ft,y:ir}of et.positions)mt.add(Ft,ir);mt.finish(),delete et.positions,et.index=mt}this._symbolsByKey[ue]=et}}getScaledCoordinates(w,q){let{x:Q,y:ee,z:ue}=this.tileID.canonical,{x:Ge,y:et,z:mt}=q.canonical,Ft=Yr/Math.pow(2,mt-ue),ir=(et*a.X+w.anchorY)*Ft,or=ee*a.X*Yr;return{x:Math.floor((Ge*a.X+w.anchorX)*Ft-Q*a.X*Yr),y:Math.floor(ir-or)}}findMatches(w,q,Q){let ee=this.tileID.canonical.zw)}}class Bi{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class an{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(w){let q=Math.round((w-this.lng)/360);if(q!==0)for(let Q in this.indexes){let ee=this.indexes[Q],ue={};for(let Ge in ee){let et=ee[Ge];et.tileID=et.tileID.unwrapTo(et.tileID.wrap+q),ue[et.tileID.key]=et}this.indexes[Q]=ue}this.lng=w}addBucket(w,q,Q){if(this.indexes[w.overscaledZ]&&this.indexes[w.overscaledZ][w.key]){if(this.indexes[w.overscaledZ][w.key].bucketInstanceId===q.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(w.overscaledZ,this.indexes[w.overscaledZ][w.key])}for(let ue=0;uew.overscaledZ)for(let et in Ge){let mt=Ge[et];mt.tileID.isChildOf(w)&&mt.findMatches(q.symbolInstances,w,ee)}else{let et=Ge[w.scaledTo(Number(ue)).key];et&&et.findMatches(q.symbolInstances,w,ee)}}for(let ue=0;ue{q[Q]=!0});for(let Q in this.layerIndexes)q[Q]||delete this.layerIndexes[Q]}}let Fi=(le,w)=>a.t(le,w&&w.filter(q=>q.identifier!=="source.canvas")),Ri=a.aw();class xn extends a.E{constructor(w,q={}){super(),this._rtlPluginLoaded=()=>{for(let Q in this.sourceCaches){let ee=this.sourceCaches[Q].getSource().type;ee!=="vector"&&ee!=="geojson"||this.sourceCaches[Q].reload()}},this.map=w,this.dispatcher=new Ee(ke(),w._getMapId()),this.dispatcher.registerMessageHandler("GG",(Q,ee)=>this.getGlyphs(Q,ee)),this.dispatcher.registerMessageHandler("GI",(Q,ee)=>this.getImages(Q,ee)),this.imageManager=new A,this.imageManager.setEventedParent(this),this.glyphManager=new G(w._requestManager,q.localIdeographFontFamily),this.lineAtlas=new ae(256,512),this.crossTileSymbolIndex=new rn,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new a.ax,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("SR",a.ay()),wt().on(Et,this._rtlPluginLoaded),this.on("data",Q=>{if(Q.dataType!=="source"||Q.sourceDataType!=="metadata")return;let ee=this.sourceCaches[Q.sourceId];if(!ee)return;let ue=ee.getSource();if(ue&&ue.vectorLayerIds)for(let Ge in this._layers){let et=this._layers[Ge];et.source===ue.id&&this._validateLayer(et)}})}loadURL(w,q={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),q.validate=typeof q.validate!="boolean"||q.validate;let ee=this.map._requestManager.transformRequest(w,"Style");this._loadStyleRequest=new AbortController;let ue=this._loadStyleRequest;a.h(ee,this._loadStyleRequest).then(Ge=>{this._loadStyleRequest=null,this._load(Ge.data,q,Q)}).catch(Ge=>{this._loadStyleRequest=null,Ge&&!ue.signal.aborted&&this.fire(new a.j(Ge))})}loadJSON(w,q={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),this._frameRequest=new AbortController,l.frameAsync(this._frameRequest).then(()=>{this._frameRequest=null,q.validate=q.validate!==!1,this._load(w,q,Q)}).catch(()=>{})}loadEmpty(){this.fire(new a.k("dataloading",{dataType:"style"})),this._load(Ri,{validate:!1})}_load(w,q,Q){var ee;let ue=q.transformStyle?q.transformStyle(Q,w):w;if(!q.validate||!Fi(this,a.u(ue))){this._loaded=!0,this.stylesheet=ue;for(let Ge in ue.sources)this.addSource(Ge,ue.sources[Ge],{validate:!1});ue.sprite?this._loadSprite(ue.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(ue.glyphs),this._createLayers(),this.light=new N(this.stylesheet.light),this.sky=new re(this.stylesheet.sky),this.map.setTerrain((ee=this.stylesheet.terrain)!==null&&ee!==void 0?ee:null),this.fire(new a.k("data",{dataType:"style"})),this.fire(new a.k("style.load"))}}_createLayers(){let w=a.az(this.stylesheet.layers);this.dispatcher.broadcast("SL",w),this._order=w.map(q=>q.id),this._layers={},this._serializedLayers=null;for(let q of w){let Q=a.aA(q);Q.setEventedParent(this,{layer:{id:q.id}}),this._layers[q.id]=Q}}_loadSprite(w,q=!1,Q=void 0){let ee;this.imageManager.setLoaded(!1),this._spriteRequest=new AbortController,function(ue,Ge,et,mt){return a._(this,void 0,void 0,function*(){let Ft=C(ue),ir=et>1?"@2x":"",or={},kr={};for(let{id:Vr,url:he}of Ft){let Se=Ge.transformRequest(S(he,ir,".json"),"SpriteJSON");or[Vr]=a.h(Se,mt);let qe=Ge.transformRequest(S(he,ir,".png"),"SpriteImage");kr[Vr]=v.getImage(qe,mt)}return yield Promise.all([...Object.values(or),...Object.values(kr)]),function(Vr,he){return a._(this,void 0,void 0,function*(){let Se={};for(let qe in Vr){Se[qe]={};let He=l.getImageCanvasContext((yield he[qe]).data),lt=(yield Vr[qe]).data;for(let tt in lt){let{width:pt,height:Ht,x:nr,y:fr,sdf:Ar,pixelRatio:Rr,stretchX:ri,stretchY:si,content:Mi,textFitWidth:hn,textFitHeight:Zn}=lt[tt];Se[qe][tt]={data:null,pixelRatio:Rr,sdf:Ar,stretchX:ri,stretchY:si,content:Mi,textFitWidth:hn,textFitHeight:Zn,spriteData:{width:pt,height:Ht,x:nr,y:fr,context:He}}}}return Se})}(or,kr)})}(w,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then(ue=>{if(this._spriteRequest=null,ue)for(let Ge in ue){this._spritesImagesIds[Ge]=[];let et=this._spritesImagesIds[Ge]?this._spritesImagesIds[Ge].filter(mt=>!(mt in ue)):[];for(let mt of et)this.imageManager.removeImage(mt),this._changedImages[mt]=!0;for(let mt in ue[Ge]){let Ft=Ge==="default"?mt:`${Ge}:${mt}`;this._spritesImagesIds[Ge].push(Ft),Ft in this.imageManager.images?this.imageManager.updateImage(Ft,ue[Ge][mt],!1):this.imageManager.addImage(Ft,ue[Ge][mt]),q&&(this._changedImages[Ft]=!0)}}}).catch(ue=>{this._spriteRequest=null,ee=ue,this.fire(new a.j(ee))}).finally(()=>{this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),q&&(this._changed=!0),this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"})),Q&&Q(ee)})}_unloadSprite(){for(let w of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(w),this._changedImages[w]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}_validateLayer(w){let q=this.sourceCaches[w.source];if(!q)return;let Q=w.sourceLayer;if(!Q)return;let ee=q.getSource();(ee.type==="geojson"||ee.vectorLayerIds&&ee.vectorLayerIds.indexOf(Q)===-1)&&this.fire(new a.j(new Error(`Source layer "${Q}" does not exist on source "${ee.id}" as specified by style layer "${w.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let w in this.sourceCaches)if(!this.sourceCaches[w].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(w,q=!1){let Q=this._serializedAllLayers();if(!w||w.length===0)return Object.values(q?a.aB(Q):Q);let ee=[];for(let ue of w)if(Q[ue]){let Ge=q?a.aB(Q[ue]):Q[ue];ee.push(Ge)}return ee}_serializedAllLayers(){let w=this._serializedLayers;if(w)return w;w=this._serializedLayers={};let q=Object.keys(this._layers);for(let Q of q){let ee=this._layers[Q];ee.type!=="custom"&&(w[Q]=ee.serialize())}return w}hasTransitions(){if(this.light&&this.light.hasTransition()||this.sky&&this.sky.hasTransition())return!0;for(let w in this.sourceCaches)if(this.sourceCaches[w].hasTransition())return!0;for(let w in this._layers)if(this._layers[w].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(w){if(!this._loaded)return;let q=this._changed;if(q){let ee=Object.keys(this._updatedLayers),ue=Object.keys(this._removedLayers);(ee.length||ue.length)&&this._updateWorkerLayers(ee,ue);for(let Ge in this._updatedSources){let et=this._updatedSources[Ge];if(et==="reload")this._reloadSource(Ge);else{if(et!=="clear")throw new Error(`Invalid action ${et}`);this._clearSource(Ge)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let Ge in this._updatedPaintProps)this._layers[Ge].updateTransitions(w);this.light.updateTransitions(w),this.sky.updateTransitions(w),this._resetUpdates()}let Q={};for(let ee in this.sourceCaches){let ue=this.sourceCaches[ee];Q[ee]=ue.used,ue.used=!1}for(let ee of this._order){let ue=this._layers[ee];ue.recalculate(w,this._availableImages),!ue.isHidden(w.zoom)&&ue.source&&(this.sourceCaches[ue.source].used=!0)}for(let ee in Q){let ue=this.sourceCaches[ee];!!Q[ee]!=!!ue.used&&ue.fire(new a.k("data",{sourceDataType:"visibility",dataType:"source",sourceId:ee}))}this.light.recalculate(w),this.sky.recalculate(w),this.z=w.zoom,q&&this.fire(new a.k("data",{dataType:"style"}))}_updateTilesForChangedImages(){let w=Object.keys(this._changedImages);if(w.length){for(let q in this.sourceCaches)this.sourceCaches[q].reloadTilesForDependencies(["icons","patterns"],w);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let w in this.sourceCaches)this.sourceCaches[w].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(w,q){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(w,!1),removedIds:q})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(w,q={}){var Q;this._checkLoaded();let ee=this.serialize();if(w=q.transformStyle?q.transformStyle(ee,w):w,((Q=q.validate)===null||Q===void 0||Q)&&Fi(this,a.u(w)))return!1;(w=a.aB(w)).layers=a.az(w.layers);let ue=a.aC(ee,w),Ge=this._getOperationsToPerform(ue);if(Ge.unimplemented.length>0)throw new Error(`Unimplemented: ${Ge.unimplemented.join(", ")}.`);if(Ge.operations.length===0)return!1;for(let et of Ge.operations)et();return this.stylesheet=w,this._serializedLayers=null,!0}_getOperationsToPerform(w){let q=[],Q=[];for(let ee of w)switch(ee.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":continue;case"addLayer":q.push(()=>this.addLayer.apply(this,ee.args));break;case"removeLayer":q.push(()=>this.removeLayer.apply(this,ee.args));break;case"setPaintProperty":q.push(()=>this.setPaintProperty.apply(this,ee.args));break;case"setLayoutProperty":q.push(()=>this.setLayoutProperty.apply(this,ee.args));break;case"setFilter":q.push(()=>this.setFilter.apply(this,ee.args));break;case"addSource":q.push(()=>this.addSource.apply(this,ee.args));break;case"removeSource":q.push(()=>this.removeSource.apply(this,ee.args));break;case"setLayerZoomRange":q.push(()=>this.setLayerZoomRange.apply(this,ee.args));break;case"setLight":q.push(()=>this.setLight.apply(this,ee.args));break;case"setGeoJSONSourceData":q.push(()=>this.setGeoJSONSourceData.apply(this,ee.args));break;case"setGlyphs":q.push(()=>this.setGlyphs.apply(this,ee.args));break;case"setSprite":q.push(()=>this.setSprite.apply(this,ee.args));break;case"setSky":q.push(()=>this.setSky.apply(this,ee.args));break;case"setTerrain":q.push(()=>this.map.setTerrain.apply(this,ee.args));break;case"setTransition":q.push(()=>{});break;default:Q.push(ee.command)}return{operations:q,unimplemented:Q}}addImage(w,q){if(this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" already exists.`)));this.imageManager.addImage(w,q),this._afterImageUpdated(w)}updateImage(w,q){this.imageManager.updateImage(w,q)}getImage(w){return this.imageManager.getImage(w)}removeImage(w){if(!this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" does not exist.`)));this.imageManager.removeImage(w),this._afterImageUpdated(w)}_afterImageUpdated(w){this._availableImages=this.imageManager.listImages(),this._changedImages[w]=!0,this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(w,q,Q={}){if(this._checkLoaded(),this.sourceCaches[w]!==void 0)throw new Error(`Source "${w}" already exists.`);if(!q.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(q).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(q.type)>=0&&this._validate(a.u.source,`sources.${w}`,q,null,Q))return;this.map&&this.map._collectResourceTiming&&(q.collectResourceTiming=!0);let ee=this.sourceCaches[w]=new rt(w,q,this.dispatcher);ee.style=this,ee.setEventedParent(this,()=>({isSourceLoaded:ee.loaded(),source:ee.serialize(),sourceId:w})),ee.onAdd(this.map),this._changed=!0}removeSource(w){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error("There is no source with this ID");for(let Q in this._layers)if(this._layers[Q].source===w)return this.fire(new a.j(new Error(`Source "${w}" cannot be removed while layer "${Q}" is using it.`)));let q=this.sourceCaches[w];delete this.sourceCaches[w],delete this._updatedSources[w],q.fire(new a.k("data",{sourceDataType:"metadata",dataType:"source",sourceId:w})),q.setEventedParent(null),q.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(w,q){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error(`There is no source with this ID=${w}`);let Q=this.sourceCaches[w].getSource();if(Q.type!=="geojson")throw new Error(`geojsonSource.type is ${Q.type}, which is !== 'geojson`);Q.setData(q),this._changed=!0}getSource(w){return this.sourceCaches[w]&&this.sourceCaches[w].getSource()}addLayer(w,q,Q={}){this._checkLoaded();let ee=w.id;if(this.getLayer(ee))return void this.fire(new a.j(new Error(`Layer "${ee}" already exists on this map.`)));let ue;if(w.type==="custom"){if(Fi(this,a.aD(w)))return;ue=a.aA(w)}else{if("source"in w&&typeof w.source=="object"&&(this.addSource(ee,w.source),w=a.aB(w),w=a.e(w,{source:ee})),this._validate(a.u.layer,`layers.${ee}`,w,{arrayIndex:-1},Q))return;ue=a.aA(w),this._validateLayer(ue),ue.setEventedParent(this,{layer:{id:ee}})}let Ge=q?this._order.indexOf(q):this._order.length;if(q&&Ge===-1)this.fire(new a.j(new Error(`Cannot add layer "${ee}" before non-existing layer "${q}".`)));else{if(this._order.splice(Ge,0,ee),this._layerOrderChanged=!0,this._layers[ee]=ue,this._removedLayers[ee]&&ue.source&&ue.type!=="custom"){let et=this._removedLayers[ee];delete this._removedLayers[ee],et.type!==ue.type?this._updatedSources[ue.source]="clear":(this._updatedSources[ue.source]="reload",this.sourceCaches[ue.source].pause())}this._updateLayer(ue),ue.onAdd&&ue.onAdd(this.map)}}moveLayer(w,q){if(this._checkLoaded(),this._changed=!0,!this._layers[w])return void this.fire(new a.j(new Error(`The layer '${w}' does not exist in the map's style and cannot be moved.`)));if(w===q)return;let Q=this._order.indexOf(w);this._order.splice(Q,1);let ee=q?this._order.indexOf(q):this._order.length;q&&ee===-1?this.fire(new a.j(new Error(`Cannot move layer "${w}" before non-existing layer "${q}".`))):(this._order.splice(ee,0,w),this._layerOrderChanged=!0)}removeLayer(w){this._checkLoaded();let q=this._layers[w];if(!q)return void this.fire(new a.j(new Error(`Cannot remove non-existing layer "${w}".`)));q.setEventedParent(null);let Q=this._order.indexOf(w);this._order.splice(Q,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[w]=q,delete this._layers[w],this._serializedLayers&&delete this._serializedLayers[w],delete this._updatedLayers[w],delete this._updatedPaintProps[w],q.onRemove&&q.onRemove(this.map)}getLayer(w){return this._layers[w]}getLayersOrder(){return[...this._order]}hasLayer(w){return w in this._layers}setLayerZoomRange(w,q,Q){this._checkLoaded();let ee=this.getLayer(w);ee?ee.minzoom===q&&ee.maxzoom===Q||(q!=null&&(ee.minzoom=q),Q!=null&&(ee.maxzoom=Q),this._updateLayer(ee)):this.fire(new a.j(new Error(`Cannot set the zoom range of non-existing layer "${w}".`)))}setFilter(w,q,Q={}){this._checkLoaded();let ee=this.getLayer(w);if(ee){if(!a.aE(ee.filter,q))return q==null?(ee.filter=void 0,void this._updateLayer(ee)):void(this._validate(a.u.filter,`layers.${ee.id}.filter`,q,null,Q)||(ee.filter=a.aB(q),this._updateLayer(ee)))}else this.fire(new a.j(new Error(`Cannot filter non-existing layer "${w}".`)))}getFilter(w){return a.aB(this.getLayer(w).filter)}setLayoutProperty(w,q,Q,ee={}){this._checkLoaded();let ue=this.getLayer(w);ue?a.aE(ue.getLayoutProperty(q),Q)||(ue.setLayoutProperty(q,Q,ee),this._updateLayer(ue)):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getLayoutProperty(w,q){let Q=this.getLayer(w);if(Q)return Q.getLayoutProperty(q);this.fire(new a.j(new Error(`Cannot get style of non-existing layer "${w}".`)))}setPaintProperty(w,q,Q,ee={}){this._checkLoaded();let ue=this.getLayer(w);ue?a.aE(ue.getPaintProperty(q),Q)||(ue.setPaintProperty(q,Q,ee)&&this._updateLayer(ue),this._changed=!0,this._updatedPaintProps[w]=!0,this._serializedLayers=null):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getPaintProperty(w,q){return this.getLayer(w).getPaintProperty(q)}setFeatureState(w,q){this._checkLoaded();let Q=w.source,ee=w.sourceLayer,ue=this.sourceCaches[Q];if(ue===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let Ge=ue.getSource().type;Ge==="geojson"&&ee?this.fire(new a.j(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):Ge!=="vector"||ee?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),ue.setFeatureState(ee,w.id,q)):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(w,q){this._checkLoaded();let Q=w.source,ee=this.sourceCaches[Q];if(ee===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let ue=ee.getSource().type,Ge=ue==="vector"?w.sourceLayer:void 0;ue!=="vector"||Ge?q&&typeof w.id!="string"&&typeof w.id!="number"?this.fire(new a.j(new Error("A feature id is required to remove its specific state property."))):ee.removeFeatureState(Ge,w.id,q):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(w){this._checkLoaded();let q=w.source,Q=w.sourceLayer,ee=this.sourceCaches[q];if(ee!==void 0)return ee.getSource().type!=="vector"||Q?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),ee.getFeatureState(Q,w.id)):void this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new a.j(new Error(`The source '${q}' does not exist in the map's style.`)))}getTransition(){return a.e({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;let w=a.aF(this.sourceCaches,ue=>ue.serialize()),q=this._serializeByIds(this._order,!0),Q=this.map.getTerrain()||void 0,ee=this.stylesheet;return a.aG({version:ee.version,name:ee.name,metadata:ee.metadata,light:ee.light,sky:ee.sky,center:ee.center,zoom:ee.zoom,bearing:ee.bearing,pitch:ee.pitch,sprite:ee.sprite,glyphs:ee.glyphs,transition:ee.transition,sources:w,layers:q,terrain:Q},ue=>ue!==void 0)}_updateLayer(w){this._updatedLayers[w.id]=!0,w.source&&!this._updatedSources[w.source]&&this.sourceCaches[w.source].getSource().type!=="raster"&&(this._updatedSources[w.source]="reload",this.sourceCaches[w.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(w){let q=Ge=>this._layers[Ge].type==="fill-extrusion",Q={},ee=[];for(let Ge=this._order.length-1;Ge>=0;Ge--){let et=this._order[Ge];if(q(et)){Q[et]=Ge;for(let mt of w){let Ft=mt[et];if(Ft)for(let ir of Ft)ee.push(ir)}}}ee.sort((Ge,et)=>et.intersectionZ-Ge.intersectionZ);let ue=[];for(let Ge=this._order.length-1;Ge>=0;Ge--){let et=this._order[Ge];if(q(et))for(let mt=ee.length-1;mt>=0;mt--){let Ft=ee[mt].feature;if(Q[Ft.layer.id]{let Ar=He.featureSortOrder;if(Ar){let Rr=Ar.indexOf(nr.featureIndex);return Ar.indexOf(fr.featureIndex)-Rr}return fr.featureIndex-nr.featureIndex});for(let nr of Ht)pt.push(nr)}}for(let He in he)he[He].forEach(lt=>{let tt=lt.feature,pt=Ft[et[He].source].getFeatureState(tt.layer["source-layer"],tt.id);tt.source=tt.layer.source,tt.layer["source-layer"]&&(tt.sourceLayer=tt.layer["source-layer"]),tt.state=pt});return he}(this._layers,Ge,this.sourceCaches,w,q,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(ue)}querySourceFeatures(w,q){q&&q.filter&&this._validate(a.u.filter,"querySourceFeatures.filter",q.filter,null,q);let Q=this.sourceCaches[w];return Q?function(ee,ue){let Ge=ee.getRenderableIds().map(Ft=>ee.getTileByID(Ft)),et=[],mt={};for(let Ft=0;Ftkr.getTileByID(Vr)).sort((Vr,he)=>he.tileID.overscaledZ-Vr.tileID.overscaledZ||(Vr.tileID.isLessThan(he.tileID)?-1:1))}let or=this.crossTileSymbolIndex.addLayer(ir,mt[ir.source],w.center.lng);Ge=Ge||or}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((ue=ue||this._layerOrderChanged||Q===0)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(l.now(),w.zoom))&&(this.pauseablePlacement=new en(w,this.map.terrain,this._order,ue,q,Q,ee,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,mt),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(l.now()),et=!0),Ge&&this.pauseablePlacement.placement.setStale()),et||Ge)for(let Ft of this._order){let ir=this._layers[Ft];ir.type==="symbol"&&this.placement.updateLayerOpacities(ir,mt[ir.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(l.now())}_releaseSymbolFadeTiles(){for(let w in this.sourceCaches)this.sourceCaches[w].releaseSymbolFadeTiles()}getImages(w,q){return a._(this,void 0,void 0,function*(){let Q=yield this.imageManager.getImages(q.icons);this._updateTilesForChangedImages();let ee=this.sourceCaches[q.source];return ee&&ee.setDependencies(q.tileID.key,q.type,q.icons),Q})}getGlyphs(w,q){return a._(this,void 0,void 0,function*(){let Q=yield this.glyphManager.getGlyphs(q.stacks),ee=this.sourceCaches[q.source];return ee&&ee.setDependencies(q.tileID.key,q.type,[""]),Q})}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(w,q={}){this._checkLoaded(),w&&this._validate(a.u.glyphs,"glyphs",w,null,q)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=w,this.glyphManager.entries={},this.glyphManager.setURL(w))}addSprite(w,q,Q={},ee){this._checkLoaded();let ue=[{id:w,url:q}],Ge=[...C(this.stylesheet.sprite),...ue];this._validate(a.u.sprite,"sprite",Ge,null,Q)||(this.stylesheet.sprite=Ge,this._loadSprite(ue,!0,ee))}removeSprite(w){this._checkLoaded();let q=C(this.stylesheet.sprite);if(q.find(Q=>Q.id===w)){if(this._spritesImagesIds[w])for(let Q of this._spritesImagesIds[w])this.imageManager.removeImage(Q),this._changedImages[Q]=!0;q.splice(q.findIndex(Q=>Q.id===w),1),this.stylesheet.sprite=q.length>0?q:void 0,delete this._spritesImagesIds[w],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}else this.fire(new a.j(new Error(`Sprite "${w}" doesn't exists on this map.`)))}getSprite(){return C(this.stylesheet.sprite)}setSprite(w,q={},Q){this._checkLoaded(),w&&this._validate(a.u.sprite,"sprite",w,null,q)||(this.stylesheet.sprite=w,w?this._loadSprite(w,!0,Q):(this._unloadSprite(),Q&&Q(null)))}}var xi=a.Y([{name:"a_pos",type:"Int16",components:2}]);let Xr={prelude:ft(`#ifdef GL_ES precision mediump float; #else #if !defined(lowp) @@ -3749,7 +3749,7 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:ft("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;varying vec2 v_texture_pos;varying float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture2D(u_texture,v_texture_pos);if (v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);gl_FragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {gl_FragColor=surface_color;}}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform mat4 u_fog_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:ft("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:ft("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);}"),sky:ft("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform float u_horizon;uniform float u_sky_horizon_blend;void main() {float y=gl_FragCoord.y;if (y > u_horizon) {float blend=y-u_horizon;if (blend < u_sky_horizon_blend) {gl_FragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {gl_FragColor=u_sky_color;}}}","attribute vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function ft(le,w){let q=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,Q=w.match(/attribute ([\w]+) ([\w]+)/g),ee=le.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ue=w.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Ve=ue?ue.concat(ee):ee,et={};return{fragmentSource:le=le.replace(q,(yt,Dt,ir,or,kr)=>(et[kr]=!0,Dt==="define"?` +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:ft("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;varying vec2 v_texture_pos;varying float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture2D(u_texture,v_texture_pos);if (v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);gl_FragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {gl_FragColor=surface_color;}}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform mat4 u_fog_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:ft("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:ft("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);}"),sky:ft("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform float u_horizon;uniform float u_sky_horizon_blend;void main() {float y=gl_FragCoord.y;if (y > u_horizon) {float blend=y-u_horizon;if (blend < u_sky_horizon_blend) {gl_FragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {gl_FragColor=u_sky_color;}}}","attribute vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function ft(le,w){let q=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,Q=w.match(/attribute ([\w]+) ([\w]+)/g),ee=le.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ue=w.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Ge=ue?ue.concat(ee):ee,et={};return{fragmentSource:le=le.replace(q,(mt,Ft,ir,or,kr)=>(et[kr]=!0,Ft==="define"?` #ifndef HAS_UNIFORM_u_${kr} varying ${ir} ${or} ${kr}; #else @@ -3759,7 +3759,7 @@ uniform ${ir} ${or} u_${kr}; #ifdef HAS_UNIFORM_u_${kr} ${ir} ${or} ${kr} = u_${kr}; #endif -`)),vertexSource:w=w.replace(q,(yt,Dt,ir,or,kr)=>{let Vr=or==="float"?"vec2":"vec4",he=kr.match(/color/)?"color":Vr;return et[kr]?Dt==="define"?` +`)),vertexSource:w=w.replace(q,(mt,Ft,ir,or,kr)=>{let Vr=or==="float"?"vec2":"vec4",he=kr.match(/color/)?"color":Vr;return et[kr]?Ft==="define"?` #ifndef HAS_UNIFORM_u_${kr} uniform lowp float u_${kr}_t; attribute ${ir} ${Vr} a_${kr}; @@ -3779,7 +3779,7 @@ uniform ${ir} ${or} u_${kr}; #else ${ir} ${or} ${kr} = u_${kr}; #endif -`:Dt==="define"?` +`:Ft==="define"?` #ifndef HAS_UNIFORM_u_${kr} uniform lowp float u_${kr}_t; attribute ${ir} ${Vr} a_${kr}; @@ -3798,9 +3798,9 @@ uniform ${ir} ${or} u_${kr}; #else ${ir} ${or} ${kr} = u_${kr}; #endif -`}),staticAttributes:Q,staticUniforms:Ve}}class tr{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(w,q,Q,ee,ue,Ve,et,yt,Dt){this.context=w;let ir=this.boundPaintVertexBuffers.length!==ee.length;for(let or=0;!ir&&or({u_matrix:le,u_texture:0,u_ele_delta:w,u_fog_matrix:q,u_fog_color:Q?Q.properties.get("fog-color"):a.aM.white,u_fog_ground_blend:Q?Q.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:Q?Q.calculateFogBlendOpacity(ee):0,u_horizon_color:Q?Q.properties.get("horizon-color"):a.aM.white,u_horizon_fog_blend:Q?Q.properties.get("horizon-fog-blend"):1});function gr(le){let w=[];for(let q=0;q({u_matrix:le,u_texture:0,u_ele_delta:w,u_fog_matrix:q,u_fog_color:Q?Q.properties.get("fog-color"):a.aM.white,u_fog_ground_blend:Q?Q.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:Q?Q.calculateFogBlendOpacity(ee):0,u_horizon_color:Q?Q.properties.get("horizon-color"):a.aM.white,u_horizon_fog_blend:Q?Q.properties.get("horizon-fog-blend"):1});function gr(le){let w=[];for(let q=0;q({u_depth:new a.aH(nr,cr.u_depth),u_terrain:new a.aH(nr,cr.u_terrain),u_terrain_dim:new a.aI(nr,cr.u_terrain_dim),u_terrain_matrix:new a.aJ(nr,cr.u_terrain_matrix),u_terrain_unpack:new a.aK(nr,cr.u_terrain_unpack),u_terrain_exaggeration:new a.aI(nr,cr.u_terrain_exaggeration)}))(w,Gt),this.binderUniforms=Q?Q.getUniforms(w,Gt):[]}draw(w,q,Q,ee,ue,Ve,et,yt,Dt,ir,or,kr,Vr,he,Se,qe,Ge,lt){let tt=w.gl;if(this.failedToCreate)return;if(w.program.set(this.program),w.setDepthMode(Q),w.setStencilMode(ee),w.setColorMode(ue),w.setCullFace(Ve),yt){w.activeTexture.set(tt.TEXTURE2),tt.bindTexture(tt.TEXTURE_2D,yt.depthTexture),w.activeTexture.set(tt.TEXTURE3),tt.bindTexture(tt.TEXTURE_2D,yt.texture);for(let Gt in this.terrainUniforms)this.terrainUniforms[Gt].set(yt[Gt])}for(let Gt in this.fixedUniforms)this.fixedUniforms[Gt].set(et[Gt]);Se&&Se.setUniforms(w,this.binderUniforms,Vr,{zoom:he});let vt=0;switch(q){case tt.LINES:vt=2;break;case tt.TRIANGLES:vt=3;break;case tt.LINE_STRIP:vt=1}for(let Gt of kr.get()){let nr=Gt.vaos||(Gt.vaos={});(nr[Dt]||(nr[Dt]=new tr)).bind(w,this,ir,Se?Se.getPaintVertexBuffers():[],or,Gt.vertexOffset,qe,Ge,lt),tt.drawElements(q,Gt.primitiveLength*vt,tt.UNSIGNED_SHORT,Gt.primitiveOffset*vt*2)}}}function Ai(le,w,q){let Q=1/Di(q,1,w.transform.tileZoom),ee=Math.pow(2,q.tileID.overscaledZ),ue=q.tileSize*Math.pow(2,w.transform.tileZoom)/ee,Ve=ue*(q.tileID.canonical.x+q.tileID.wrap*ee),et=ue*q.tileID.canonical.y;return{u_image:0,u_texsize:q.imageAtlasTexture.size,u_scale:[Q,le.fromScale,le.toScale],u_fade:le.t,u_pixel_coord_upper:[Ve>>16,et>>16],u_pixel_coord_lower:[65535&Ve,65535&et]}}let Qi=(le,w,q,Q)=>{let ee=w.style.light,ue=ee.properties.get("position"),Ve=[ue.x,ue.y,ue.z],et=function(){var Dt=new a.A(9);return a.A!=Float32Array&&(Dt[1]=0,Dt[2]=0,Dt[3]=0,Dt[5]=0,Dt[6]=0,Dt[7]=0),Dt[0]=1,Dt[4]=1,Dt[8]=1,Dt}();ee.properties.get("anchor")==="viewport"&&function(Dt,ir){var or=Math.sin(ir),kr=Math.cos(ir);Dt[0]=kr,Dt[1]=or,Dt[2]=0,Dt[3]=-or,Dt[4]=kr,Dt[5]=0,Dt[6]=0,Dt[7]=0,Dt[8]=1}(et,-w.transform.angle),function(Dt,ir,or){var kr=ir[0],Vr=ir[1],he=ir[2];Dt[0]=kr*or[0]+Vr*or[3]+he*or[6],Dt[1]=kr*or[1]+Vr*or[4]+he*or[7],Dt[2]=kr*or[2]+Vr*or[5]+he*or[8]}(Ve,Ve,et);let yt=ee.properties.get("color");return{u_matrix:le,u_lightpos:Ve,u_lightintensity:ee.properties.get("intensity"),u_lightcolor:[yt.r,yt.g,yt.b],u_vertical_gradient:+q,u_opacity:Q}},ni=(le,w,q,Q,ee,ue,Ve)=>a.e(Qi(le,w,q,Q),Ai(ue,w,Ve),{u_height_factor:-Math.pow(2,ee.overscaledZ)/Ve.tileSize/8}),Zi=le=>({u_matrix:le}),aa=(le,w,q,Q)=>a.e(Zi(le),Ai(q,w,Q)),Mn=(le,w)=>({u_matrix:le,u_world:w}),Un=(le,w,q,Q,ee)=>a.e(aa(le,w,q,Q),{u_world:ee}),Ga=(le,w,q,Q)=>{let ee=le.transform,ue,Ve;if(Q.paint.get("circle-pitch-alignment")==="map"){let et=Di(q,1,ee.zoom);ue=!0,Ve=[et,et]}else ue=!1,Ve=ee.pixelsToGLUnits;return{u_camera_to_center_distance:ee.cameraToCenterDistance,u_scale_with_map:+(Q.paint.get("circle-pitch-scale")==="map"),u_matrix:le.translatePosMatrix(w.posMatrix,q,Q.paint.get("circle-translate"),Q.paint.get("circle-translate-anchor")),u_pitch_with_map:+ue,u_device_pixel_ratio:le.pixelRatio,u_extrude_scale:Ve}},ma=(le,w,q)=>({u_matrix:le,u_inv_matrix:w,u_camera_to_center_distance:q.cameraToCenterDistance,u_viewport_size:[q.width,q.height]}),oa=(le,w,q=1)=>({u_matrix:le,u_color:w,u_overlay:0,u_overlay_scale:q}),ka=le=>({u_matrix:le}),so=(le,w,q,Q)=>({u_matrix:le,u_extrude_scale:Di(w,1,q),u_intensity:Q}),Kr=(le,w,q,Q)=>{let ee=a.H();a.aP(ee,0,le.width,le.height,0,0,1);let ue=le.context.gl;return{u_matrix:ee,u_world:[ue.drawingBufferWidth,ue.drawingBufferHeight],u_image:q,u_color_ramp:Q,u_opacity:w.paint.get("heatmap-opacity")}};function Ia(le,w){let q=Math.pow(2,w.canonical.z),Q=w.canonical.y;return[new a.Z(0,Q/q).toLngLat().lat,new a.Z(0,(Q+1)/q).toLngLat().lat]}let Yo=(le,w,q,Q)=>{let ee=le.transform;return{u_matrix:uo(le,w,q,Q),u_ratio:1/Di(w,1,ee.zoom),u_device_pixel_ratio:le.pixelRatio,u_units_to_pixels:[1/ee.pixelsToGLUnits[0],1/ee.pixelsToGLUnits[1]]}},fa=(le,w,q,Q,ee)=>a.e(Yo(le,w,q,ee),{u_image:0,u_image_height:Q}),kn=(le,w,q,Q,ee)=>{let ue=le.transform,Ve=ys(w,ue);return{u_matrix:uo(le,w,q,ee),u_texsize:w.imageAtlasTexture.size,u_ratio:1/Di(w,1,ue.zoom),u_device_pixel_ratio:le.pixelRatio,u_image:0,u_scale:[Ve,Q.fromScale,Q.toScale],u_fade:Q.t,u_units_to_pixels:[1/ue.pixelsToGLUnits[0],1/ue.pixelsToGLUnits[1]]}},Ta=(le,w,q,Q,ee,ue)=>{let Ve=le.lineAtlas,et=ys(w,le.transform),yt=q.layout.get("line-cap")==="round",Dt=Ve.getDash(Q.from,yt),ir=Ve.getDash(Q.to,yt),or=Dt.width*ee.fromScale,kr=ir.width*ee.toScale;return a.e(Yo(le,w,q,ue),{u_patternscale_a:[et/or,-Dt.height/2],u_patternscale_b:[et/kr,-ir.height/2],u_sdfgamma:Ve.width/(256*Math.min(or,kr)*le.pixelRatio)/2,u_image:0,u_tex_y_a:Dt.y,u_tex_y_b:ir.y,u_mix:ee.t})};function ys(le,w){return 1/Di(le,1,w.tileZoom)}function uo(le,w,q,Q){return le.translatePosMatrix(Q?Q.posMatrix:w.tileID.posMatrix,w,q.paint.get("line-translate"),q.paint.get("line-translate-anchor"))}let ls=(le,w,q,Q,ee)=>{return{u_matrix:le,u_tl_parent:w,u_scale_parent:q,u_buffer_scale:1,u_fade_t:Q.mix,u_opacity:Q.opacity*ee.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:ee.paint.get("raster-brightness-min"),u_brightness_high:ee.paint.get("raster-brightness-max"),u_saturation_factor:(Ve=ee.paint.get("raster-saturation"),Ve>0?1-1/(1.001-Ve):-Ve),u_contrast_factor:(ue=ee.paint.get("raster-contrast"),ue>0?1/(1-ue):1+ue),u_spin_weights:$a(ee.paint.get("raster-hue-rotate"))};var ue,Ve};function $a(le){le*=Math.PI/180;let w=Math.sin(le),q=Math.cos(le);return[(2*q+1)/3,(-Math.sqrt(3)*w-q+1)/3,(Math.sqrt(3)*w-q+1)/3]}let fo=(le,w,q,Q,ee,ue,Ve,et,yt,Dt,ir,or,kr,Vr)=>{let he=Ve.transform;return{u_is_size_zoom_constant:+(le==="constant"||le==="source"),u_is_size_feature_constant:+(le==="constant"||le==="camera"),u_size_t:w?w.uSizeT:0,u_size:w?w.uSize:0,u_camera_to_center_distance:he.cameraToCenterDistance,u_pitch:he.pitch/360*2*Math.PI,u_rotate_symbol:+q,u_aspect_ratio:he.width/he.height,u_fade_change:Ve.options.fadeDuration?Ve.symbolFadeChange:1,u_matrix:et,u_label_plane_matrix:yt,u_coord_matrix:Dt,u_is_text:+or,u_pitch_with_map:+Q,u_is_along_line:ee,u_is_variable_anchor:ue,u_texsize:kr,u_texture:0,u_translation:ir,u_pitched_scale:Vr}},mn=(le,w,q,Q,ee,ue,Ve,et,yt,Dt,ir,or,kr,Vr,he)=>{let Se=Ve.transform;return a.e(fo(le,w,q,Q,ee,ue,Ve,et,yt,Dt,ir,or,kr,he),{u_gamma_scale:Q?Math.cos(Se._pitch)*Se.cameraToCenterDistance:1,u_device_pixel_ratio:Ve.pixelRatio,u_is_halo:+Vr})},ra=(le,w,q,Q,ee,ue,Ve,et,yt,Dt,ir,or,kr,Vr)=>a.e(mn(le,w,q,Q,ee,ue,Ve,et,yt,Dt,ir,!0,or,!0,Vr),{u_texsize_icon:kr,u_texture_icon:1}),wa=(le,w,q)=>({u_matrix:le,u_opacity:w,u_color:q}),ws=(le,w,q,Q,ee,ue)=>a.e(function(Ve,et,yt,Dt){let ir=yt.imageManager.getPattern(Ve.from.toString()),or=yt.imageManager.getPattern(Ve.to.toString()),{width:kr,height:Vr}=yt.imageManager.getPixelSize(),he=Math.pow(2,Dt.tileID.overscaledZ),Se=Dt.tileSize*Math.pow(2,yt.transform.tileZoom)/he,qe=Se*(Dt.tileID.canonical.x+Dt.tileID.wrap*he),Ge=Se*Dt.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:ir.tl,u_pattern_br_a:ir.br,u_pattern_tl_b:or.tl,u_pattern_br_b:or.br,u_texsize:[kr,Vr],u_mix:et.t,u_pattern_size_a:ir.displaySize,u_pattern_size_b:or.displaySize,u_scale_a:et.fromScale,u_scale_b:et.toScale,u_tile_units_to_pixels:1/Di(Dt,1,yt.transform.tileZoom),u_pixel_coord_upper:[qe>>16,Ge>>16],u_pixel_coord_lower:[65535&qe,65535&Ge]}}(Q,ue,q,ee),{u_matrix:le,u_opacity:w}),Co={fillExtrusion:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_lightpos:new a.aN(le,w.u_lightpos),u_lightintensity:new a.aI(le,w.u_lightintensity),u_lightcolor:new a.aN(le,w.u_lightcolor),u_vertical_gradient:new a.aI(le,w.u_vertical_gradient),u_opacity:new a.aI(le,w.u_opacity)}),fillExtrusionPattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_lightpos:new a.aN(le,w.u_lightpos),u_lightintensity:new a.aI(le,w.u_lightintensity),u_lightcolor:new a.aN(le,w.u_lightcolor),u_vertical_gradient:new a.aI(le,w.u_vertical_gradient),u_height_factor:new a.aI(le,w.u_height_factor),u_image:new a.aH(le,w.u_image),u_texsize:new a.aO(le,w.u_texsize),u_pixel_coord_upper:new a.aO(le,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(le,w.u_pixel_coord_lower),u_scale:new a.aN(le,w.u_scale),u_fade:new a.aI(le,w.u_fade),u_opacity:new a.aI(le,w.u_opacity)}),fill:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix)}),fillPattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_image:new a.aH(le,w.u_image),u_texsize:new a.aO(le,w.u_texsize),u_pixel_coord_upper:new a.aO(le,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(le,w.u_pixel_coord_lower),u_scale:new a.aN(le,w.u_scale),u_fade:new a.aI(le,w.u_fade)}),fillOutline:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_world:new a.aO(le,w.u_world)}),fillOutlinePattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_world:new a.aO(le,w.u_world),u_image:new a.aH(le,w.u_image),u_texsize:new a.aO(le,w.u_texsize),u_pixel_coord_upper:new a.aO(le,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(le,w.u_pixel_coord_lower),u_scale:new a.aN(le,w.u_scale),u_fade:new a.aI(le,w.u_fade)}),circle:(le,w)=>({u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_scale_with_map:new a.aH(le,w.u_scale_with_map),u_pitch_with_map:new a.aH(le,w.u_pitch_with_map),u_extrude_scale:new a.aO(le,w.u_extrude_scale),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_matrix:new a.aJ(le,w.u_matrix)}),collisionBox:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_pixel_extrude_scale:new a.aO(le,w.u_pixel_extrude_scale)}),collisionCircle:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_inv_matrix:new a.aJ(le,w.u_inv_matrix),u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_viewport_size:new a.aO(le,w.u_viewport_size)}),debug:(le,w)=>({u_color:new a.aL(le,w.u_color),u_matrix:new a.aJ(le,w.u_matrix),u_overlay:new a.aH(le,w.u_overlay),u_overlay_scale:new a.aI(le,w.u_overlay_scale)}),clippingMask:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix)}),heatmap:(le,w)=>({u_extrude_scale:new a.aI(le,w.u_extrude_scale),u_intensity:new a.aI(le,w.u_intensity),u_matrix:new a.aJ(le,w.u_matrix)}),heatmapTexture:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_world:new a.aO(le,w.u_world),u_image:new a.aH(le,w.u_image),u_color_ramp:new a.aH(le,w.u_color_ramp),u_opacity:new a.aI(le,w.u_opacity)}),hillshade:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_image:new a.aH(le,w.u_image),u_latrange:new a.aO(le,w.u_latrange),u_light:new a.aO(le,w.u_light),u_shadow:new a.aL(le,w.u_shadow),u_highlight:new a.aL(le,w.u_highlight),u_accent:new a.aL(le,w.u_accent)}),hillshadePrepare:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_image:new a.aH(le,w.u_image),u_dimension:new a.aO(le,w.u_dimension),u_zoom:new a.aI(le,w.u_zoom),u_unpack:new a.aK(le,w.u_unpack)}),line:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_ratio:new a.aI(le,w.u_ratio),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(le,w.u_units_to_pixels)}),lineGradient:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_ratio:new a.aI(le,w.u_ratio),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(le,w.u_units_to_pixels),u_image:new a.aH(le,w.u_image),u_image_height:new a.aI(le,w.u_image_height)}),linePattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_texsize:new a.aO(le,w.u_texsize),u_ratio:new a.aI(le,w.u_ratio),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_image:new a.aH(le,w.u_image),u_units_to_pixels:new a.aO(le,w.u_units_to_pixels),u_scale:new a.aN(le,w.u_scale),u_fade:new a.aI(le,w.u_fade)}),lineSDF:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_ratio:new a.aI(le,w.u_ratio),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(le,w.u_units_to_pixels),u_patternscale_a:new a.aO(le,w.u_patternscale_a),u_patternscale_b:new a.aO(le,w.u_patternscale_b),u_sdfgamma:new a.aI(le,w.u_sdfgamma),u_image:new a.aH(le,w.u_image),u_tex_y_a:new a.aI(le,w.u_tex_y_a),u_tex_y_b:new a.aI(le,w.u_tex_y_b),u_mix:new a.aI(le,w.u_mix)}),raster:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_tl_parent:new a.aO(le,w.u_tl_parent),u_scale_parent:new a.aI(le,w.u_scale_parent),u_buffer_scale:new a.aI(le,w.u_buffer_scale),u_fade_t:new a.aI(le,w.u_fade_t),u_opacity:new a.aI(le,w.u_opacity),u_image0:new a.aH(le,w.u_image0),u_image1:new a.aH(le,w.u_image1),u_brightness_low:new a.aI(le,w.u_brightness_low),u_brightness_high:new a.aI(le,w.u_brightness_high),u_saturation_factor:new a.aI(le,w.u_saturation_factor),u_contrast_factor:new a.aI(le,w.u_contrast_factor),u_spin_weights:new a.aN(le,w.u_spin_weights)}),symbolIcon:(le,w)=>({u_is_size_zoom_constant:new a.aH(le,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(le,w.u_is_size_feature_constant),u_size_t:new a.aI(le,w.u_size_t),u_size:new a.aI(le,w.u_size),u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_pitch:new a.aI(le,w.u_pitch),u_rotate_symbol:new a.aH(le,w.u_rotate_symbol),u_aspect_ratio:new a.aI(le,w.u_aspect_ratio),u_fade_change:new a.aI(le,w.u_fade_change),u_matrix:new a.aJ(le,w.u_matrix),u_label_plane_matrix:new a.aJ(le,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(le,w.u_coord_matrix),u_is_text:new a.aH(le,w.u_is_text),u_pitch_with_map:new a.aH(le,w.u_pitch_with_map),u_is_along_line:new a.aH(le,w.u_is_along_line),u_is_variable_anchor:new a.aH(le,w.u_is_variable_anchor),u_texsize:new a.aO(le,w.u_texsize),u_texture:new a.aH(le,w.u_texture),u_translation:new a.aO(le,w.u_translation),u_pitched_scale:new a.aI(le,w.u_pitched_scale)}),symbolSDF:(le,w)=>({u_is_size_zoom_constant:new a.aH(le,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(le,w.u_is_size_feature_constant),u_size_t:new a.aI(le,w.u_size_t),u_size:new a.aI(le,w.u_size),u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_pitch:new a.aI(le,w.u_pitch),u_rotate_symbol:new a.aH(le,w.u_rotate_symbol),u_aspect_ratio:new a.aI(le,w.u_aspect_ratio),u_fade_change:new a.aI(le,w.u_fade_change),u_matrix:new a.aJ(le,w.u_matrix),u_label_plane_matrix:new a.aJ(le,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(le,w.u_coord_matrix),u_is_text:new a.aH(le,w.u_is_text),u_pitch_with_map:new a.aH(le,w.u_pitch_with_map),u_is_along_line:new a.aH(le,w.u_is_along_line),u_is_variable_anchor:new a.aH(le,w.u_is_variable_anchor),u_texsize:new a.aO(le,w.u_texsize),u_texture:new a.aH(le,w.u_texture),u_gamma_scale:new a.aI(le,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_is_halo:new a.aH(le,w.u_is_halo),u_translation:new a.aO(le,w.u_translation),u_pitched_scale:new a.aI(le,w.u_pitched_scale)}),symbolTextAndIcon:(le,w)=>({u_is_size_zoom_constant:new a.aH(le,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(le,w.u_is_size_feature_constant),u_size_t:new a.aI(le,w.u_size_t),u_size:new a.aI(le,w.u_size),u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_pitch:new a.aI(le,w.u_pitch),u_rotate_symbol:new a.aH(le,w.u_rotate_symbol),u_aspect_ratio:new a.aI(le,w.u_aspect_ratio),u_fade_change:new a.aI(le,w.u_fade_change),u_matrix:new a.aJ(le,w.u_matrix),u_label_plane_matrix:new a.aJ(le,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(le,w.u_coord_matrix),u_is_text:new a.aH(le,w.u_is_text),u_pitch_with_map:new a.aH(le,w.u_pitch_with_map),u_is_along_line:new a.aH(le,w.u_is_along_line),u_is_variable_anchor:new a.aH(le,w.u_is_variable_anchor),u_texsize:new a.aO(le,w.u_texsize),u_texsize_icon:new a.aO(le,w.u_texsize_icon),u_texture:new a.aH(le,w.u_texture),u_texture_icon:new a.aH(le,w.u_texture_icon),u_gamma_scale:new a.aI(le,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_is_halo:new a.aH(le,w.u_is_halo),u_translation:new a.aO(le,w.u_translation),u_pitched_scale:new a.aI(le,w.u_pitched_scale)}),background:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_opacity:new a.aI(le,w.u_opacity),u_color:new a.aL(le,w.u_color)}),backgroundPattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_opacity:new a.aI(le,w.u_opacity),u_image:new a.aH(le,w.u_image),u_pattern_tl_a:new a.aO(le,w.u_pattern_tl_a),u_pattern_br_a:new a.aO(le,w.u_pattern_br_a),u_pattern_tl_b:new a.aO(le,w.u_pattern_tl_b),u_pattern_br_b:new a.aO(le,w.u_pattern_br_b),u_texsize:new a.aO(le,w.u_texsize),u_mix:new a.aI(le,w.u_mix),u_pattern_size_a:new a.aO(le,w.u_pattern_size_a),u_pattern_size_b:new a.aO(le,w.u_pattern_size_b),u_scale_a:new a.aI(le,w.u_scale_a),u_scale_b:new a.aI(le,w.u_scale_b),u_pixel_coord_upper:new a.aO(le,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(le,w.u_pixel_coord_lower),u_tile_units_to_pixels:new a.aI(le,w.u_tile_units_to_pixels)}),terrain:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_texture:new a.aH(le,w.u_texture),u_ele_delta:new a.aI(le,w.u_ele_delta),u_fog_matrix:new a.aJ(le,w.u_fog_matrix),u_fog_color:new a.aL(le,w.u_fog_color),u_fog_ground_blend:new a.aI(le,w.u_fog_ground_blend),u_fog_ground_blend_opacity:new a.aI(le,w.u_fog_ground_blend_opacity),u_horizon_color:new a.aL(le,w.u_horizon_color),u_horizon_fog_blend:new a.aI(le,w.u_horizon_fog_blend)}),terrainDepth:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_ele_delta:new a.aI(le,w.u_ele_delta)}),terrainCoords:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_texture:new a.aH(le,w.u_texture),u_terrain_coords_id:new a.aI(le,w.u_terrain_coords_id),u_ele_delta:new a.aI(le,w.u_ele_delta)}),sky:(le,w)=>({u_sky_color:new a.aL(le,w.u_sky_color),u_horizon_color:new a.aL(le,w.u_horizon_color),u_horizon:new a.aI(le,w.u_horizon),u_sky_horizon_blend:new a.aI(le,w.u_sky_horizon_blend)})};class Po{constructor(w,q,Q){this.context=w;let ee=w.gl;this.buffer=ee.createBuffer(),this.dynamicDraw=!!Q,this.context.unbindVAO(),w.bindElementBuffer.set(this.buffer),ee.bufferData(ee.ELEMENT_ARRAY_BUFFER,q.arrayBuffer,this.dynamicDraw?ee.DYNAMIC_DRAW:ee.STATIC_DRAW),this.dynamicDraw||delete q.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(w){let q=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),q.bufferSubData(q.ELEMENT_ARRAY_BUFFER,0,w.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}let ji={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class gn{constructor(w,q,Q,ee){this.length=q.length,this.attributes=Q,this.itemSize=q.bytesPerElement,this.dynamicDraw=ee,this.context=w;let ue=w.gl;this.buffer=ue.createBuffer(),w.bindVertexBuffer.set(this.buffer),ue.bufferData(ue.ARRAY_BUFFER,q.arrayBuffer,this.dynamicDraw?ue.DYNAMIC_DRAW:ue.STATIC_DRAW),this.dynamicDraw||delete q.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(w){if(w.length!==this.length)throw new Error(`Length of new data is ${w.length}, which doesn't match current length of ${this.length}`);let q=this.context.gl;this.bind(),q.bufferSubData(q.ARRAY_BUFFER,0,w.arrayBuffer)}enableAttributes(w,q){for(let Q=0;Q0){let nr=a.H();a.aQ(nr,tt.placementInvProjMatrix,le.transform.glCoordMatrix),a.aQ(nr,nr,tt.placementViewportMatrix),yt.push({circleArray:Gt,circleOffset:ir,transform:lt.posMatrix,invTransform:nr,coord:lt}),Dt+=Gt.length/4,ir=Dt}vt&&et.draw(ue,Ve.LINES,sa.disabled,Na.disabled,le.colorModeForRenderPass(),tn.disabled,{u_matrix:lt.posMatrix,u_pixel_extrude_scale:[1/(or=le.transform).width,1/or.height]},le.style.map.terrain&&le.style.map.terrain.getTerrainData(lt),q.id,vt.layoutVertexBuffer,vt.indexBuffer,vt.segments,null,le.transform.zoom,null,null,vt.collisionVertexBuffer)}var or;if(!ee||!yt.length)return;let kr=le.useProgram("collisionCircle"),Vr=new a.aR;Vr.resize(4*Dt),Vr._trim();let he=0;for(let Ge of yt)for(let lt=0;lt=0&&(Ge[tt.associatedIconIndex]={shiftedAnchor:Fo,angle:vl})}else Nr(tt.numGlyphs,Se)}if(Dt){qe.clear();let lt=le.icon.placedSymbolArray;for(let tt=0;ttle.style.map.terrain.getElevation(si,_t,hr):null,jt=q.layout.get("text-rotation-alignment")==="map";Ie(hn,si.posMatrix,le,ee,Qu,ju,Ge,Dt,jt,Se,si.toUnwrapped(),he.width,he.height,Xu,st)}let ef=si.posMatrix,tf=ee&&Ar||xf,Z=lt||tf?yo:Qu,se=Ku,ze=Ua&&q.paint.get(ee?"text-halo-width":"icon-halo-width").constantOr(1)!==0,je;je=Ua?hn.iconsInText?ra(Fo.kind,ml,tt,Ge,lt,tf,le,ef,Z,se,Xu,Sl,Pu,ri):mn(Fo.kind,ml,tt,Ge,lt,tf,le,ef,Z,se,Xu,ee,Sl,!0,ri):fo(Fo.kind,ml,tt,Ge,lt,tf,le,ef,Z,se,Xu,ee,Sl,ri);let $e={program:Us,buffers:Zn,uniformValues:je,atlasTexture:Yl,atlasTextureIcon:iu,atlasInterpolation:ql,atlasInterpolationIcon:ou,isSDF:Ua,hasHalo:ze};if(Gt&&hn.canOverlap){nr=!0;let st=Zn.segments.get();for(let jt of st)Rr.push({segments:new a.a0([jt]),sortKey:jt.sortKey,state:$e,terrainData:au})}else Rr.push({segments:Zn.segments,sortKey:0,state:$e,terrainData:au})}nr&&Rr.sort((si,Mi)=>si.sortKey-Mi.sortKey);for(let si of Rr){let Mi=si.state;if(kr.activeTexture.set(Vr.TEXTURE0),Mi.atlasTexture.bind(Mi.atlasInterpolation,Vr.CLAMP_TO_EDGE),Mi.atlasTextureIcon&&(kr.activeTexture.set(Vr.TEXTURE1),Mi.atlasTextureIcon&&Mi.atlasTextureIcon.bind(Mi.atlasInterpolationIcon,Vr.CLAMP_TO_EDGE)),Mi.isSDF){let hn=Mi.uniformValues;Mi.hasHalo&&(hn.u_is_halo=1,Ca(Mi.buffers,si.segments,q,le,Mi.program,cr,ir,or,hn,si.terrainData)),hn.u_is_halo=0}Ca(Mi.buffers,si.segments,q,le,Mi.program,cr,ir,or,Mi.uniformValues,si.terrainData)}}function Ca(le,w,q,Q,ee,ue,Ve,et,yt,Dt){let ir=Q.context;ee.draw(ir,ir.gl.TRIANGLES,ue,Ve,et,tn.disabled,yt,Dt,q.id,le.layoutVertexBuffer,le.indexBuffer,w,q.paint,Q.transform.zoom,le.programConfigurations.get(q.id),le.dynamicLayoutVertexBuffer,le.opacityVertexBuffer)}function Es(le,w,q,Q){let ee=le.context,ue=ee.gl,Ve=Na.disabled,et=new lo([ue.ONE,ue.ONE],a.aM.transparent,[!0,!0,!0,!0]),yt=w.getBucket(q);if(!yt)return;let Dt=Q.key,ir=q.heatmapFbos.get(Dt);ir||(ir=Ho(ee,w.tileSize,w.tileSize),q.heatmapFbos.set(Dt,ir)),ee.bindFramebuffer.set(ir.framebuffer),ee.viewport.set([0,0,w.tileSize,w.tileSize]),ee.clear({color:a.aM.transparent});let or=yt.programConfigurations.get(q.id),kr=le.useProgram("heatmap",or),Vr=le.style.map.terrain.getTerrainData(Q);kr.draw(ee,ue.TRIANGLES,sa.disabled,Ve,et,tn.disabled,so(Q.posMatrix,w,le.transform.zoom,q.paint.get("heatmap-intensity")),Vr,q.id,yt.layoutVertexBuffer,yt.indexBuffer,yt.segments,q.paint,le.transform.zoom,or)}function Ts(le,w,q){let Q=le.context,ee=Q.gl;Q.setColorMode(le.colorModeForRenderPass());let ue=Wa(Q,w),Ve=q.key,et=w.heatmapFbos.get(Ve);et&&(Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,et.colorAttachment.get()),Q.activeTexture.set(ee.TEXTURE1),ue.bind(ee.LINEAR,ee.CLAMP_TO_EDGE),le.useProgram("heatmapTexture").draw(Q,ee.TRIANGLES,sa.disabled,Na.disabled,le.colorModeForRenderPass(),tn.disabled,Kr(le,w,0,1),null,w.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments,w.paint,le.transform.zoom),et.destroy(),w.heatmapFbos.delete(Ve))}function Ho(le,w,q){var Q,ee;let ue=le.gl,Ve=ue.createTexture();ue.bindTexture(ue.TEXTURE_2D,Ve),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_WRAP_S,ue.CLAMP_TO_EDGE),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_WRAP_T,ue.CLAMP_TO_EDGE),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_MIN_FILTER,ue.LINEAR),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_MAG_FILTER,ue.LINEAR);let et=(Q=le.HALF_FLOAT)!==null&&Q!==void 0?Q:ue.UNSIGNED_BYTE,yt=(ee=le.RGBA16F)!==null&&ee!==void 0?ee:ue.RGBA;ue.texImage2D(ue.TEXTURE_2D,0,yt,w,q,0,ue.RGBA,et,null);let Dt=le.createFramebuffer(w,q,!1,!1);return Dt.colorAttachment.set(Ve),Dt}function Wa(le,w){return w.colorRampTexture||(w.colorRampTexture=new m(le,w.colorRamp,le.gl.RGBA)),w.colorRampTexture}function To(le,w,q,Q,ee){if(!q||!Q||!Q.imageAtlas)return;let ue=Q.imageAtlas.patternPositions,Ve=ue[q.to.toString()],et=ue[q.from.toString()];if(!Ve&&et&&(Ve=et),!et&&Ve&&(et=Ve),!Ve||!et){let yt=ee.getPaintProperty(w);Ve=ue[yt],et=ue[yt]}Ve&&et&&le.setConstantPatternPositions(Ve,et)}function ts(le,w,q,Q,ee,ue,Ve){let et=le.context.gl,yt="fill-pattern",Dt=q.paint.get(yt),ir=Dt&&Dt.constantOr(1),or=q.getCrossfadeParameters(),kr,Vr,he,Se,qe;Ve?(Vr=ir&&!q.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",kr=et.LINES):(Vr=ir?"fillPattern":"fill",kr=et.TRIANGLES);let Ge=Dt.constantOr(null);for(let lt of Q){let tt=w.getTile(lt);if(ir&&!tt.patternsLoaded())continue;let vt=tt.getBucket(q);if(!vt)continue;let Gt=vt.programConfigurations.get(q.id),nr=le.useProgram(Vr,Gt),cr=le.style.map.terrain&&le.style.map.terrain.getTerrainData(lt);ir&&(le.context.activeTexture.set(et.TEXTURE0),tt.imageAtlasTexture.bind(et.LINEAR,et.CLAMP_TO_EDGE),Gt.updatePaintBuffers(or)),To(Gt,yt,Ge,tt,q);let Ar=cr?lt:null,Rr=le.translatePosMatrix(Ar?Ar.posMatrix:lt.posMatrix,tt,q.paint.get("fill-translate"),q.paint.get("fill-translate-anchor"));if(Ve){Se=vt.indexBuffer2,qe=vt.segments2;let ri=[et.drawingBufferWidth,et.drawingBufferHeight];he=Vr==="fillOutlinePattern"&&ir?Un(Rr,le,or,tt,ri):Mn(Rr,ri)}else Se=vt.indexBuffer,qe=vt.segments,he=ir?aa(Rr,le,or,tt):Zi(Rr);nr.draw(le.context,kr,ee,le.stencilModeForClipping(lt),ue,tn.disabled,he,cr,q.id,vt.layoutVertexBuffer,Se,qe,q.paint,le.transform.zoom,Gt)}}function Wo(le,w,q,Q,ee,ue,Ve){let et=le.context,yt=et.gl,Dt="fill-extrusion-pattern",ir=q.paint.get(Dt),or=ir.constantOr(1),kr=q.getCrossfadeParameters(),Vr=q.paint.get("fill-extrusion-opacity"),he=ir.constantOr(null);for(let Se of Q){let qe=w.getTile(Se),Ge=qe.getBucket(q);if(!Ge)continue;let lt=le.style.map.terrain&&le.style.map.terrain.getTerrainData(Se),tt=Ge.programConfigurations.get(q.id),vt=le.useProgram(or?"fillExtrusionPattern":"fillExtrusion",tt);or&&(le.context.activeTexture.set(yt.TEXTURE0),qe.imageAtlasTexture.bind(yt.LINEAR,yt.CLAMP_TO_EDGE),tt.updatePaintBuffers(kr)),To(tt,Dt,he,qe,q);let Gt=le.translatePosMatrix(Se.posMatrix,qe,q.paint.get("fill-extrusion-translate"),q.paint.get("fill-extrusion-translate-anchor")),nr=q.paint.get("fill-extrusion-vertical-gradient"),cr=or?ni(Gt,le,nr,Vr,Se,kr,qe):Qi(Gt,le,nr,Vr);vt.draw(et,et.gl.TRIANGLES,ee,ue,Ve,tn.backCCW,cr,lt,q.id,Ge.layoutVertexBuffer,Ge.indexBuffer,Ge.segments,q.paint,le.transform.zoom,tt,le.style.map.terrain&&Ge.centroidVertexBuffer)}}function qa(le,w,q,Q,ee,ue,Ve){let et=le.context,yt=et.gl,Dt=q.fbo;if(!Dt)return;let ir=le.useProgram("hillshade"),or=le.style.map.terrain&&le.style.map.terrain.getTerrainData(w);et.activeTexture.set(yt.TEXTURE0),yt.bindTexture(yt.TEXTURE_2D,Dt.colorAttachment.get()),ir.draw(et,yt.TRIANGLES,ee,ue,Ve,tn.disabled,((kr,Vr,he,Se)=>{let qe=he.paint.get("hillshade-shadow-color"),Ge=he.paint.get("hillshade-highlight-color"),lt=he.paint.get("hillshade-accent-color"),tt=he.paint.get("hillshade-illumination-direction")*(Math.PI/180);he.paint.get("hillshade-illumination-anchor")==="viewport"&&(tt-=kr.transform.angle);let vt=!kr.options.moving;return{u_matrix:Se?Se.posMatrix:kr.transform.calculatePosMatrix(Vr.tileID.toUnwrapped(),vt),u_image:0,u_latrange:Ia(0,Vr.tileID),u_light:[he.paint.get("hillshade-exaggeration"),tt],u_shadow:qe,u_highlight:Ge,u_accent:lt}})(le,q,Q,or?w:null),or,Q.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments)}function ln(le,w,q,Q,ee,ue){let Ve=le.context,et=Ve.gl,yt=w.dem;if(yt&&yt.data){let Dt=yt.dim,ir=yt.stride,or=yt.getPixels();if(Ve.activeTexture.set(et.TEXTURE1),Ve.pixelStoreUnpackPremultiplyAlpha.set(!1),w.demTexture=w.demTexture||le.getTileTexture(ir),w.demTexture){let Vr=w.demTexture;Vr.update(or,{premultiply:!1}),Vr.bind(et.NEAREST,et.CLAMP_TO_EDGE)}else w.demTexture=new m(Ve,or,et.RGBA,{premultiply:!1}),w.demTexture.bind(et.NEAREST,et.CLAMP_TO_EDGE);Ve.activeTexture.set(et.TEXTURE0);let kr=w.fbo;if(!kr){let Vr=new m(Ve,{width:Dt,height:Dt,data:null},et.RGBA);Vr.bind(et.LINEAR,et.CLAMP_TO_EDGE),kr=w.fbo=Ve.createFramebuffer(Dt,Dt,!0,!1),kr.colorAttachment.set(Vr.texture)}Ve.bindFramebuffer.set(kr.framebuffer),Ve.viewport.set([0,0,Dt,Dt]),le.useProgram("hillshadePrepare").draw(Ve,et.TRIANGLES,Q,ee,ue,tn.disabled,((Vr,he)=>{let Se=he.stride,qe=a.H();return a.aP(qe,0,a.X,-a.X,0,0,1),a.J(qe,qe,[0,-a.X,0]),{u_matrix:qe,u_image:1,u_dimension:[Se,Se],u_zoom:Vr.overscaledZ,u_unpack:he.getUnpackVector()}})(w.tileID,yt),null,q.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments),w.needsHillshadePrepare=!1}}function Bo(le,w,q,Q,ee,ue){let Ve=Q.paint.get("raster-fade-duration");if(!ue&&Ve>0){let et=l.now(),yt=(et-le.timeAdded)/Ve,Dt=w?(et-w.timeAdded)/Ve:-1,ir=q.getSource(),or=ee.coveringZoomLevel({tileSize:ir.tileSize,roundZoom:ir.roundZoom}),kr=!w||Math.abs(w.tileID.overscaledZ-or)>Math.abs(le.tileID.overscaledZ-or),Vr=kr&&le.refreshedUponExpiration?1:a.ac(kr?yt:1-Dt,0,1);return le.refreshedUponExpiration&&yt>=1&&(le.refreshedUponExpiration=!1),w?{opacity:1,mix:1-Vr}:{opacity:Vr,mix:0}}return{opacity:1,mix:0}}let ko=new a.aM(1,0,0,1),oo=new a.aM(0,1,0,1),za=new a.aM(0,0,1,1),ea=new a.aM(1,0,1,1),rs=new a.aM(0,1,1,1);function $s(le,w,q,Q){Ds(le,0,w+q/2,le.transform.width,q,Q)}function us(le,w,q,Q){Ds(le,w-q/2,0,q,le.transform.height,Q)}function Ds(le,w,q,Q,ee,ue){let Ve=le.context,et=Ve.gl;et.enable(et.SCISSOR_TEST),et.scissor(w*le.pixelRatio,q*le.pixelRatio,Q*le.pixelRatio,ee*le.pixelRatio),Ve.clear({color:ue}),et.disable(et.SCISSOR_TEST)}function fl(le,w,q){let Q=le.context,ee=Q.gl,ue=q.posMatrix,Ve=le.useProgram("debug"),et=sa.disabled,yt=Na.disabled,Dt=le.colorModeForRenderPass(),ir="$debug",or=le.style.map.terrain&&le.style.map.terrain.getTerrainData(q);Q.activeTexture.set(ee.TEXTURE0);let kr=w.getTileByID(q.key).latestRawTileData,Vr=Math.floor((kr&&kr.byteLength||0)/1024),he=w.getTile(q).tileSize,Se=512/Math.min(he,512)*(q.overscaledZ/le.transform.zoom)*.5,qe=q.canonical.toString();q.overscaledZ!==q.canonical.z&&(qe+=` => ${q.overscaledZ}`),function(Ge,lt){Ge.initDebugOverlayCanvas();let tt=Ge.debugOverlayCanvas,vt=Ge.context.gl,Gt=Ge.debugOverlayCanvas.getContext("2d");Gt.clearRect(0,0,tt.width,tt.height),Gt.shadowColor="white",Gt.shadowBlur=2,Gt.lineWidth=1.5,Gt.strokeStyle="white",Gt.textBaseline="top",Gt.font="bold 36px Open Sans, sans-serif",Gt.fillText(lt,5,5),Gt.strokeText(lt,5,5),Ge.debugOverlayTexture.update(tt),Ge.debugOverlayTexture.bind(vt.LINEAR,vt.CLAMP_TO_EDGE)}(le,`${qe} ${Vr}kB`),Ve.draw(Q,ee.TRIANGLES,et,yt,lo.alphaBlended,tn.disabled,oa(ue,a.aM.transparent,Se),null,ir,le.debugBuffer,le.quadTriangleIndexBuffer,le.debugSegments),Ve.draw(Q,ee.LINE_STRIP,et,yt,Dt,tn.disabled,oa(ue,a.aM.red),or,ir,le.debugBuffer,le.tileBorderIndexBuffer,le.debugSegments)}function as(le,w,q){let Q=le.context,ee=Q.gl,ue=le.colorModeForRenderPass(),Ve=new sa(ee.LEQUAL,sa.ReadWrite,le.depthRangeFor3D),et=le.useProgram("terrain"),yt=w.getTerrainMesh();Q.bindFramebuffer.set(null),Q.viewport.set([0,0,le.width,le.height]);for(let Dt of q){let ir=le.renderToTexture.getTexture(Dt),or=w.getTerrainData(Dt.tileID);Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,ir.texture);let kr=le.transform.calculatePosMatrix(Dt.tileID.toUnwrapped()),Vr=w.getMeshFrameDelta(le.transform.zoom),he=le.transform.calculateFogMatrix(Dt.tileID.toUnwrapped()),Se=pr(kr,Vr,he,le.style.sky,le.transform.pitch);et.draw(Q,ee.TRIANGLES,Ve,Na.disabled,ue,tn.backCCW,Se,or,"terrain",yt.vertexBuffer,yt.indexBuffer,yt.segments)}}class Ma{constructor(w,q,Q){this.vertexBuffer=w,this.indexBuffer=q,this.segments=Q}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}class Qs{constructor(w,q){this.context=new eo(w),this.transform=q,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:a.an(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=rt.maxUnderzooming+rt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new rn}resize(w,q,Q){if(this.width=Math.floor(w*Q),this.height=Math.floor(q*Q),this.pixelRatio=Q,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let ee of this.style._order)this.style._layers[ee].resize()}setup(){let w=this.context,q=new a.aX;q.emplaceBack(0,0),q.emplaceBack(a.X,0),q.emplaceBack(0,a.X),q.emplaceBack(a.X,a.X),this.tileExtentBuffer=w.createVertexBuffer(q,xi.members),this.tileExtentSegments=a.a0.simpleSegment(0,0,4,2);let Q=new a.aX;Q.emplaceBack(0,0),Q.emplaceBack(a.X,0),Q.emplaceBack(0,a.X),Q.emplaceBack(a.X,a.X),this.debugBuffer=w.createVertexBuffer(Q,xi.members),this.debugSegments=a.a0.simpleSegment(0,0,4,5);let ee=new a.$;ee.emplaceBack(0,0,0,0),ee.emplaceBack(a.X,0,a.X,0),ee.emplaceBack(0,a.X,0,a.X),ee.emplaceBack(a.X,a.X,a.X,a.X),this.rasterBoundsBuffer=w.createVertexBuffer(ee,Ye.members),this.rasterBoundsSegments=a.a0.simpleSegment(0,0,4,2);let ue=new a.aX;ue.emplaceBack(0,0),ue.emplaceBack(1,0),ue.emplaceBack(0,1),ue.emplaceBack(1,1),this.viewportBuffer=w.createVertexBuffer(ue,xi.members),this.viewportSegments=a.a0.simpleSegment(0,0,4,2);let Ve=new a.aZ;Ve.emplaceBack(0),Ve.emplaceBack(1),Ve.emplaceBack(3),Ve.emplaceBack(2),Ve.emplaceBack(0),this.tileBorderIndexBuffer=w.createIndexBuffer(Ve);let et=new a.aY;et.emplaceBack(0,1,2),et.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=w.createIndexBuffer(et);let yt=this.context.gl;this.stencilClearMode=new Na({func:yt.ALWAYS,mask:0},0,255,yt.ZERO,yt.ZERO,yt.ZERO)}clearStencil(){let w=this.context,q=w.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let Q=a.H();a.aP(Q,0,this.width,this.height,0,0,1),a.K(Q,Q,[q.drawingBufferWidth,q.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(w,q.TRIANGLES,sa.disabled,this.stencilClearMode,lo.disabled,tn.disabled,ka(Q),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(w,q){if(this.currentStencilSource===w.source||!w.isTileClipped()||!q||!q.length)return;this.currentStencilSource=w.source;let Q=this.context,ee=Q.gl;this.nextStencilID+q.length>256&&this.clearStencil(),Q.setColorMode(lo.disabled),Q.setDepthMode(sa.disabled);let ue=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(let Ve of q){let et=this._tileClippingMaskIDs[Ve.key]=this.nextStencilID++,yt=this.style.map.terrain&&this.style.map.terrain.getTerrainData(Ve);ue.draw(Q,ee.TRIANGLES,sa.disabled,new Na({func:ee.ALWAYS,mask:0},et,255,ee.KEEP,ee.KEEP,ee.REPLACE),lo.disabled,tn.disabled,ka(Ve.posMatrix),yt,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let w=this.nextStencilID++,q=this.context.gl;return new Na({func:q.NOTEQUAL,mask:255},w,255,q.KEEP,q.KEEP,q.REPLACE)}stencilModeForClipping(w){let q=this.context.gl;return new Na({func:q.EQUAL,mask:255},this._tileClippingMaskIDs[w.key],0,q.KEEP,q.KEEP,q.REPLACE)}stencilConfigForOverlap(w){let q=this.context.gl,Q=w.sort((Ve,et)=>et.overscaledZ-Ve.overscaledZ),ee=Q[Q.length-1].overscaledZ,ue=Q[0].overscaledZ-ee+1;if(ue>1){this.currentStencilSource=void 0,this.nextStencilID+ue>256&&this.clearStencil();let Ve={};for(let et=0;et({u_sky_color:Ge.properties.get("sky-color"),u_horizon_color:Ge.properties.get("horizon-color"),u_horizon:(lt.height/2+lt.getHorizon())*tt,u_sky_horizon_blend:Ge.properties.get("sky-horizon-blend")*lt.height/2*tt}))(Dt,yt.style.map.transform,yt.pixelRatio),Vr=new sa(or.LEQUAL,sa.ReadWrite,[0,1]),he=Na.disabled,Se=yt.colorModeForRenderPass(),qe=yt.useProgram("sky");if(!Dt.mesh){let Ge=new a.aX;Ge.emplaceBack(-1,-1),Ge.emplaceBack(1,-1),Ge.emplaceBack(1,1),Ge.emplaceBack(-1,1);let lt=new a.aY;lt.emplaceBack(0,1,2),lt.emplaceBack(0,2,3),Dt.mesh=new Ma(ir.createVertexBuffer(Ge,xi.members),ir.createIndexBuffer(lt),a.a0.simpleSegment(0,0,Ge.length,lt.length))}qe.draw(ir,or.TRIANGLES,Vr,he,Se,tn.disabled,kr,void 0,"sky",Dt.mesh.vertexBuffer,Dt.mesh.indexBuffer,Dt.mesh.segments)}(this,this.style.sky),this._showOverdrawInspector=q.showOverdrawInspector,this.depthRangeFor3D=[0,1-(w._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(this.renderPass="opaque",this.currentLayer=Q.length-1;this.currentLayer>=0;this.currentLayer--){let yt=this.style._layers[Q[this.currentLayer]],Dt=ee[yt.source],ir=ue[yt.source];this._renderTileClippingMasks(yt,ir),this.renderLayer(this,Dt,yt,ir)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayerqe.source&&!qe.isHidden(ir)?[Dt.sourceCaches[qe.source]]:[]),Vr=kr.filter(qe=>qe.getSource().type==="vector"),he=kr.filter(qe=>qe.getSource().type!=="vector"),Se=qe=>{(!or||or.getSource().maxzoomSe(qe)),or||he.forEach(qe=>Se(qe)),or}(this.style,this.transform.zoom);yt&&function(Dt,ir,or){for(let kr=0;kr0),ee&&(a.b0(q,Q),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,function(ue,Ve){let et=ue.context,yt=et.gl,Dt=lo.unblended,ir=new sa(yt.LEQUAL,sa.ReadWrite,[0,1]),or=Ve.getTerrainMesh(),kr=Ve.sourceCache.getRenderableTiles(),Vr=ue.useProgram("terrainDepth");et.bindFramebuffer.set(Ve.getFramebuffer("depth").framebuffer),et.viewport.set([0,0,ue.width/devicePixelRatio,ue.height/devicePixelRatio]),et.clear({color:a.aM.transparent,depth:1});for(let he of kr){let Se=Ve.getTerrainData(he.tileID),qe={u_matrix:ue.transform.calculatePosMatrix(he.tileID.toUnwrapped()),u_ele_delta:Ve.getMeshFrameDelta(ue.transform.zoom)};Vr.draw(et,yt.TRIANGLES,ir,Na.disabled,Dt,tn.backCCW,qe,Se,"terrain",or.vertexBuffer,or.indexBuffer,or.segments)}et.bindFramebuffer.set(null),et.viewport.set([0,0,ue.width,ue.height])}(this,this.style.map.terrain),function(ue,Ve){let et=ue.context,yt=et.gl,Dt=lo.unblended,ir=new sa(yt.LEQUAL,sa.ReadWrite,[0,1]),or=Ve.getTerrainMesh(),kr=Ve.getCoordsTexture(),Vr=Ve.sourceCache.getRenderableTiles(),he=ue.useProgram("terrainCoords");et.bindFramebuffer.set(Ve.getFramebuffer("coords").framebuffer),et.viewport.set([0,0,ue.width/devicePixelRatio,ue.height/devicePixelRatio]),et.clear({color:a.aM.transparent,depth:1}),Ve.coordsIndex=[];for(let Se of Vr){let qe=Ve.getTerrainData(Se.tileID);et.activeTexture.set(yt.TEXTURE0),yt.bindTexture(yt.TEXTURE_2D,kr.texture);let Ge={u_matrix:ue.transform.calculatePosMatrix(Se.tileID.toUnwrapped()),u_terrain_coords_id:(255-Ve.coordsIndex.length)/255,u_texture:0,u_ele_delta:Ve.getMeshFrameDelta(ue.transform.zoom)};he.draw(et,yt.TRIANGLES,ir,Na.disabled,Dt,tn.backCCW,Ge,qe,"terrain",or.vertexBuffer,or.indexBuffer,or.segments),Ve.coordsIndex.push(Se.tileID.key)}et.bindFramebuffer.set(null),et.viewport.set([0,0,ue.width,ue.height])}(this,this.style.map.terrain))}renderLayer(w,q,Q,ee){if(!Q.isHidden(this.transform.zoom)&&(Q.type==="background"||Q.type==="custom"||(ee||[]).length))switch(this.id=Q.id,Q.type){case"symbol":(function(ue,Ve,et,yt,Dt){if(ue.renderPass!=="translucent")return;let ir=Na.disabled,or=ue.colorModeForRenderPass();(et._unevaluatedLayout.hasValue("text-variable-anchor")||et._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&function(kr,Vr,he,Se,qe,Ge,lt,tt,vt){let Gt=Vr.transform,nr=Vi(),cr=qe==="map",Ar=Ge==="map";for(let Rr of kr){let ri=Se.getTile(Rr),si=ri.getBucket(he);if(!si||!si.text||!si.text.segments.get().length)continue;let Mi=a.ag(si.textSizeData,Gt.zoom),hn=Di(ri,1,Vr.transform.zoom),Zn=_r(Rr.posMatrix,Ar,cr,Vr.transform,hn),Yn=he.layout.get("icon-text-fit")!=="none"&&si.hasIconData();if(Mi){let Ua=Math.pow(2,Gt.zoom-ri.tileID.overscaledZ),Fo=Vr.style.map.terrain?(Us,ml)=>Vr.style.map.terrain.getElevation(Rr,Us,ml):null,vl=nr.translatePosition(Gt,ri,lt,tt);Dn(si,cr,Ar,vt,Gt,Zn,Rr.posMatrix,Ua,Mi,Yn,nr,vl,Rr.toUnwrapped(),Fo)}}}(yt,ue,et,Ve,et.layout.get("text-rotation-alignment"),et.layout.get("text-pitch-alignment"),et.paint.get("text-translate"),et.paint.get("text-translate-anchor"),Dt),et.paint.get("icon-opacity").constantOr(1)!==0&&Ws(ue,Ve,et,yt,!1,et.paint.get("icon-translate"),et.paint.get("icon-translate-anchor"),et.layout.get("icon-rotation-alignment"),et.layout.get("icon-pitch-alignment"),et.layout.get("icon-keep-upright"),ir,or),et.paint.get("text-opacity").constantOr(1)!==0&&Ws(ue,Ve,et,yt,!0,et.paint.get("text-translate"),et.paint.get("text-translate-anchor"),et.layout.get("text-rotation-alignment"),et.layout.get("text-pitch-alignment"),et.layout.get("text-keep-upright"),ir,or),Ve.map.showCollisionBoxes&&(to(ue,Ve,et,yt,!0),to(ue,Ve,et,yt,!1))})(w,q,Q,ee,this.style.placement.variableOffsets);break;case"circle":(function(ue,Ve,et,yt){if(ue.renderPass!=="translucent")return;let Dt=et.paint.get("circle-opacity"),ir=et.paint.get("circle-stroke-width"),or=et.paint.get("circle-stroke-opacity"),kr=!et.layout.get("circle-sort-key").isConstant();if(Dt.constantOr(1)===0&&(ir.constantOr(1)===0||or.constantOr(1)===0))return;let Vr=ue.context,he=Vr.gl,Se=ue.depthModeForSublayer(0,sa.ReadOnly),qe=Na.disabled,Ge=ue.colorModeForRenderPass(),lt=[];for(let tt=0;tttt.sortKey-vt.sortKey);for(let tt of lt){let{programConfiguration:vt,program:Gt,layoutVertexBuffer:nr,indexBuffer:cr,uniformValues:Ar,terrainData:Rr}=tt.state;Gt.draw(Vr,he.TRIANGLES,Se,qe,Ge,tn.disabled,Ar,Rr,et.id,nr,cr,tt.segments,et.paint,ue.transform.zoom,vt)}})(w,q,Q,ee);break;case"heatmap":(function(ue,Ve,et,yt){if(et.paint.get("heatmap-opacity")===0)return;let Dt=ue.context;if(ue.style.map.terrain){for(let ir of yt){let or=Ve.getTile(ir);Ve.hasRenderableParent(ir)||(ue.renderPass==="offscreen"?Es(ue,or,et,ir):ue.renderPass==="translucent"&&Ts(ue,et,ir))}Dt.viewport.set([0,0,ue.width,ue.height])}else ue.renderPass==="offscreen"?function(ir,or,kr,Vr){let he=ir.context,Se=he.gl,qe=Na.disabled,Ge=new lo([Se.ONE,Se.ONE],a.aM.transparent,[!0,!0,!0,!0]);(function(lt,tt,vt){let Gt=lt.gl;lt.activeTexture.set(Gt.TEXTURE1),lt.viewport.set([0,0,tt.width/4,tt.height/4]);let nr=vt.heatmapFbos.get(a.aU);nr?(Gt.bindTexture(Gt.TEXTURE_2D,nr.colorAttachment.get()),lt.bindFramebuffer.set(nr.framebuffer)):(nr=Ho(lt,tt.width/4,tt.height/4),vt.heatmapFbos.set(a.aU,nr))})(he,ir,kr),he.clear({color:a.aM.transparent});for(let lt=0;lt20&&ir.texParameterf(ir.TEXTURE_2D,Dt.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Dt.extTextureFilterAnisotropicMax);let si=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(lt),Mi=si?lt:null,hn=Mi?Mi.posMatrix:ue.transform.calculatePosMatrix(lt.toUnwrapped(),Ge),Zn=ls(hn,Rr||[0,0],Ar||1,cr,et);or instanceof kt?kr.draw(Dt,ir.TRIANGLES,tt,Na.disabled,Vr,tn.disabled,Zn,si,et.id,or.boundsBuffer,ue.quadTriangleIndexBuffer,or.boundsSegments):kr.draw(Dt,ir.TRIANGLES,tt,he[lt.overscaledZ],Vr,tn.disabled,Zn,si,et.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments)}})(w,q,Q,ee);break;case"background":(function(ue,Ve,et,yt){let Dt=et.paint.get("background-color"),ir=et.paint.get("background-opacity");if(ir===0)return;let or=ue.context,kr=or.gl,Vr=ue.transform,he=Vr.tileSize,Se=et.paint.get("background-pattern");if(ue.isPatternMissing(Se))return;let qe=!Se&&Dt.a===1&&ir===1&&ue.opaquePassEnabledForLayer()?"opaque":"translucent";if(ue.renderPass!==qe)return;let Ge=Na.disabled,lt=ue.depthModeForSublayer(0,qe==="opaque"?sa.ReadWrite:sa.ReadOnly),tt=ue.colorModeForRenderPass(),vt=ue.useProgram(Se?"backgroundPattern":"background"),Gt=yt||Vr.coveringTiles({tileSize:he,terrain:ue.style.map.terrain});Se&&(or.activeTexture.set(kr.TEXTURE0),ue.imageManager.bind(ue.context));let nr=et.getCrossfadeParameters();for(let cr of Gt){let Ar=yt?cr.posMatrix:ue.transform.calculatePosMatrix(cr.toUnwrapped()),Rr=Se?ws(Ar,ir,ue,Se,{tileID:cr,tileSize:he},nr):wa(Ar,ir,Dt),ri=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(cr);vt.draw(or,kr.TRIANGLES,lt,Ge,tt,tn.disabled,Rr,ri,et.id,ue.tileExtentBuffer,ue.quadTriangleIndexBuffer,ue.tileExtentSegments)}})(w,0,Q,ee);break;case"custom":(function(ue,Ve,et){let yt=ue.context,Dt=et.implementation;if(ue.renderPass==="offscreen"){let ir=Dt.prerender;ir&&(ue.setCustomLayerDefaults(),yt.setColorMode(ue.colorModeForRenderPass()),ir.call(Dt,yt.gl,ue.transform.customLayerMatrix()),yt.setDirty(),ue.setBaseState())}else if(ue.renderPass==="translucent"){ue.setCustomLayerDefaults(),yt.setColorMode(ue.colorModeForRenderPass()),yt.setStencilMode(Na.disabled);let ir=Dt.renderingMode==="3d"?new sa(ue.context.gl.LEQUAL,sa.ReadWrite,ue.depthRangeFor3D):ue.depthModeForSublayer(0,sa.ReadOnly);yt.setDepthMode(ir),Dt.render(yt.gl,ue.transform.customLayerMatrix(),{farZ:ue.transform.farZ,nearZ:ue.transform.nearZ,fov:ue.transform._fov,modelViewProjectionMatrix:ue.transform.modelViewProjectionMatrix,projectionMatrix:ue.transform.projectionMatrix}),yt.setDirty(),ue.setBaseState(),yt.bindFramebuffer.set(null)}})(w,0,Q)}}translatePosMatrix(w,q,Q,ee,ue){if(!Q[0]&&!Q[1])return w;let Ve=ue?ee==="map"?this.transform.angle:0:ee==="viewport"?-this.transform.angle:0;if(Ve){let Dt=Math.sin(Ve),ir=Math.cos(Ve);Q=[Q[0]*ir-Q[1]*Dt,Q[0]*Dt+Q[1]*ir]}let et=[ue?Q[0]:Di(q,Q[0],this.transform.zoom),ue?Q[1]:Di(q,Q[1],this.transform.zoom),0],yt=new Float32Array(16);return a.J(yt,w,et),yt}saveTileTexture(w){let q=this._tileTextures[w.size[0]];q?q.push(w):this._tileTextures[w.size[0]]=[w]}getTileTexture(w){let q=this._tileTextures[w];return q&&q.length>0?q.pop():null}isPatternMissing(w){if(!w)return!1;if(!w.from||!w.to)return!0;let q=this.imageManager.getPattern(w.from.toString()),Q=this.imageManager.getPattern(w.to.toString());return!q||!Q}useProgram(w,q){this.cache=this.cache||{};let Q=w+(q?q.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[Q]||(this.cache[Q]=new Zr(this.context,Xr[w],q,Co[w],this._showOverdrawInspector,this.style.map.terrain)),this.cache[Q]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){let w=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(w.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new m(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){let{drawingBufferWidth:w,drawingBufferHeight:q}=this.context.gl;return this.width!==w||this.height!==q}}class ho{constructor(w,q){this.points=w,this.planes=q}static fromInvProjectionMatrix(w,q,Q){let ee=Math.pow(2,Q),ue=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(et=>{let yt=1/(et=a.af([],et,w))[3]/q*ee;return a.b1(et,et,[yt,yt,1/et[3],yt])}),Ve=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(et=>{let yt=function(kr,Vr){var he=Vr[0],Se=Vr[1],qe=Vr[2],Ge=he*he+Se*Se+qe*qe;return Ge>0&&(Ge=1/Math.sqrt(Ge)),kr[0]=Vr[0]*Ge,kr[1]=Vr[1]*Ge,kr[2]=Vr[2]*Ge,kr}([],function(kr,Vr,he){var Se=Vr[0],qe=Vr[1],Ge=Vr[2],lt=he[0],tt=he[1],vt=he[2];return kr[0]=qe*vt-Ge*tt,kr[1]=Ge*lt-Se*vt,kr[2]=Se*tt-qe*lt,kr}([],L([],ue[et[0]],ue[et[1]]),L([],ue[et[2]],ue[et[1]]))),Dt=-((ir=yt)[0]*(or=ue[et[1]])[0]+ir[1]*or[1]+ir[2]*or[2]);var ir,or;return yt.concat(Dt)});return new ho(ue,Ve)}}class gs{constructor(w,q){this.min=w,this.max=q,this.center=function(Q,ee,ue){return Q[0]=.5*ee[0],Q[1]=.5*ee[1],Q[2]=.5*ee[2],Q}([],function(Q,ee,ue){return Q[0]=ee[0]+ue[0],Q[1]=ee[1]+ue[1],Q[2]=ee[2]+ue[2],Q}([],this.min,this.max))}quadrant(w){let q=[w%2==0,w<2],Q=E(this.min),ee=E(this.max);for(let ue=0;ue=0&&Ve++;if(Ve===0)return 0;Ve!==q.length&&(Q=!1)}if(Q)return 2;for(let ee=0;ee<3;ee++){let ue=Number.MAX_VALUE,Ve=-Number.MAX_VALUE;for(let et=0;etthis.max[ee]-this.min[ee])return 0}return 1}}class Vo{constructor(w=0,q=0,Q=0,ee=0){if(isNaN(w)||w<0||isNaN(q)||q<0||isNaN(Q)||Q<0||isNaN(ee)||ee<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=w,this.bottom=q,this.left=Q,this.right=ee}interpolate(w,q,Q){return q.top!=null&&w.top!=null&&(this.top=a.y.number(w.top,q.top,Q)),q.bottom!=null&&w.bottom!=null&&(this.bottom=a.y.number(w.bottom,q.bottom,Q)),q.left!=null&&w.left!=null&&(this.left=a.y.number(w.left,q.left,Q)),q.right!=null&&w.right!=null&&(this.right=a.y.number(w.right,q.right,Q)),this}getCenter(w,q){let Q=a.ac((this.left+w-this.right)/2,0,w),ee=a.ac((this.top+q-this.bottom)/2,0,q);return new a.P(Q,ee)}equals(w){return this.top===w.top&&this.bottom===w.bottom&&this.left===w.left&&this.right===w.right}clone(){return new Vo(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}let Do=85.051129;class Lo{constructor(w,q,Q,ee,ue){this.tileSize=512,this._renderWorldCopies=ue===void 0||!!ue,this._minZoom=w||0,this._maxZoom=q||22,this._minPitch=Q==null?0:Q,this._maxPitch=ee==null?60:ee,this.setMaxBounds(),this.width=0,this.height=0,this._center=new a.N(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Vo,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={},this.minElevationForCurrentTile=0}clone(){let w=new Lo(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return w.apply(this),w}apply(w){this.tileSize=w.tileSize,this.latRange=w.latRange,this.lngRange=w.lngRange,this.width=w.width,this.height=w.height,this._center=w._center,this._elevation=w._elevation,this.minElevationForCurrentTile=w.minElevationForCurrentTile,this.zoom=w.zoom,this.angle=w.angle,this._fov=w._fov,this._pitch=w._pitch,this._unmodified=w._unmodified,this._edgeInsets=w._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(w){this._minZoom!==w&&(this._minZoom=w,this.zoom=Math.max(this.zoom,w))}get maxZoom(){return this._maxZoom}set maxZoom(w){this._maxZoom!==w&&(this._maxZoom=w,this.zoom=Math.min(this.zoom,w))}get minPitch(){return this._minPitch}set minPitch(w){this._minPitch!==w&&(this._minPitch=w,this.pitch=Math.max(this.pitch,w))}get maxPitch(){return this._maxPitch}set maxPitch(w){this._maxPitch!==w&&(this._maxPitch=w,this.pitch=Math.min(this.pitch,w))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(w){w===void 0?w=!0:w===null&&(w=!1),this._renderWorldCopies=w}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new a.P(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(w){let q=-a.b3(w,-180,180)*Math.PI/180;this.angle!==q&&(this._unmodified=!1,this.angle=q,this._calcMatrices(),this.rotationMatrix=function(){var Q=new a.A(4);return a.A!=Float32Array&&(Q[1]=0,Q[2]=0),Q[0]=1,Q[3]=1,Q}(),function(Q,ee,ue){var Ve=ee[0],et=ee[1],yt=ee[2],Dt=ee[3],ir=Math.sin(ue),or=Math.cos(ue);Q[0]=Ve*or+yt*ir,Q[1]=et*or+Dt*ir,Q[2]=Ve*-ir+yt*or,Q[3]=et*-ir+Dt*or}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(w){let q=a.ac(w,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==q&&(this._unmodified=!1,this._pitch=q,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(w){w=Math.max(.01,Math.min(60,w)),this._fov!==w&&(this._unmodified=!1,this._fov=w/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(w){let q=Math.min(Math.max(w,this.minZoom),this.maxZoom);this._zoom!==q&&(this._unmodified=!1,this._zoom=q,this.tileZoom=Math.max(0,Math.floor(q)),this.scale=this.zoomScale(q),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(w){w.lat===this._center.lat&&w.lng===this._center.lng||(this._unmodified=!1,this._center=w,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(w){w!==this._elevation&&(this._elevation=w,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(w){this._edgeInsets.equals(w)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,w,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(w){return this._edgeInsets.equals(w)}interpolatePadding(w,q,Q){this._unmodified=!1,this._edgeInsets.interpolate(w,q,Q),this._constrain(),this._calcMatrices()}coveringZoomLevel(w){let q=(w.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/w.tileSize));return Math.max(0,q)}getVisibleUnwrappedCoordinates(w){let q=[new a.b4(0,w)];if(this._renderWorldCopies){let Q=this.pointCoordinate(new a.P(0,0)),ee=this.pointCoordinate(new a.P(this.width,0)),ue=this.pointCoordinate(new a.P(this.width,this.height)),Ve=this.pointCoordinate(new a.P(0,this.height)),et=Math.floor(Math.min(Q.x,ee.x,ue.x,Ve.x)),yt=Math.floor(Math.max(Q.x,ee.x,ue.x,Ve.x)),Dt=1;for(let ir=et-Dt;ir<=yt+Dt;ir++)ir!==0&&q.push(new a.b4(ir,w))}return q}coveringTiles(w){var q,Q;let ee=this.coveringZoomLevel(w),ue=ee;if(w.minzoom!==void 0&&eew.maxzoom&&(ee=w.maxzoom);let Ve=this.pointCoordinate(this.getCameraPoint()),et=a.Z.fromLngLat(this.center),yt=Math.pow(2,ee),Dt=[yt*Ve.x,yt*Ve.y,0],ir=[yt*et.x,yt*et.y,0],or=ho.fromInvProjectionMatrix(this.invModelViewProjectionMatrix,this.worldSize,ee),kr=w.minzoom||0;!w.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(kr=ee);let Vr=w.terrain?2/Math.min(this.tileSize,w.tileSize)*this.tileSize:3,he=tt=>({aabb:new gs([tt*yt,0,0],[(tt+1)*yt,yt,0]),zoom:0,x:0,y:0,wrap:tt,fullyVisible:!1}),Se=[],qe=[],Ge=ee,lt=w.reparseOverscaled?ue:ee;if(this._renderWorldCopies)for(let tt=1;tt<=3;tt++)Se.push(he(-tt)),Se.push(he(tt));for(Se.push(he(0));Se.length>0;){let tt=Se.pop(),vt=tt.x,Gt=tt.y,nr=tt.fullyVisible;if(!nr){let si=tt.aabb.intersects(or);if(si===0)continue;nr=si===2}let cr=w.terrain?Dt:ir,Ar=tt.aabb.distanceX(cr),Rr=tt.aabb.distanceY(cr),ri=Math.max(Math.abs(Ar),Math.abs(Rr));if(tt.zoom===Ge||ri>Vr+(1<=kr){let si=Ge-tt.zoom,Mi=Dt[0]-.5-(vt<>1),Zn=tt.zoom+1,Yn=tt.aabb.quadrant(si);if(w.terrain){let Ua=new a.S(Zn,tt.wrap,Zn,Mi,hn),Fo=w.terrain.getMinMaxElevation(Ua),vl=(q=Fo.minElevation)!==null&&q!==void 0?q:this.elevation,Us=(Q=Fo.maxElevation)!==null&&Q!==void 0?Q:this.elevation;Yn=new gs([Yn.min[0],Yn.min[1],vl],[Yn.max[0],Yn.max[1],Us])}Se.push({aabb:Yn,zoom:Zn,x:Mi,y:hn,wrap:tt.wrap,fullyVisible:nr})}}return qe.sort((tt,vt)=>tt.distanceSq-vt.distanceSq).map(tt=>tt.tileID)}resize(w,q){this.width=w,this.height=q,this.pixelsToGLUnits=[2/w,-2/q],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(w){return Math.pow(2,w)}scaleZoom(w){return Math.log(w)/Math.LN2}project(w){let q=a.ac(w.lat,-85.051129,Do);return new a.P(a.O(w.lng)*this.worldSize,a.Q(q)*this.worldSize)}unproject(w){return new a.Z(w.x/this.worldSize,w.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){return{lngLat:this.pointLocation(this.getCameraPoint()),altitude:Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter+this.elevation}}recalculateZoom(w){let q=this.elevation,Q=Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter,ee=this.pointLocation(this.centerPoint,w),ue=w.getElevationForLngLatZoom(ee,this.tileZoom);if(!(this.elevation-ue))return;let Ve=Q+q-ue,et=Math.cos(this._pitch)*this.cameraToCenterDistance/Ve/a.b5(1,ee.lat),yt=this.scaleZoom(et/this.tileSize);this._elevation=ue,this._center=ee,this.zoom=yt}setLocationAtPoint(w,q){let Q=this.pointCoordinate(q),ee=this.pointCoordinate(this.centerPoint),ue=this.locationCoordinate(w),Ve=new a.Z(ue.x-(Q.x-ee.x),ue.y-(Q.y-ee.y));this.center=this.coordinateLocation(Ve),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(w,q){return q?this.coordinatePoint(this.locationCoordinate(w),q.getElevationForLngLatZoom(w,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(w))}pointLocation(w,q){return this.coordinateLocation(this.pointCoordinate(w,q))}locationCoordinate(w){return a.Z.fromLngLat(w)}coordinateLocation(w){return w&&w.toLngLat()}pointCoordinate(w,q){if(q){let kr=q.pointCoordinate(w);if(kr!=null)return kr}let Q=[w.x,w.y,0,1],ee=[w.x,w.y,1,1];a.af(Q,Q,this.pixelMatrixInverse),a.af(ee,ee,this.pixelMatrixInverse);let ue=Q[3],Ve=ee[3],et=Q[1]/ue,yt=ee[1]/Ve,Dt=Q[2]/ue,ir=ee[2]/Ve,or=Dt===ir?0:(0-Dt)/(ir-Dt);return new a.Z(a.y.number(Q[0]/ue,ee[0]/Ve,or)/this.worldSize,a.y.number(et,yt,or)/this.worldSize)}coordinatePoint(w,q=0,Q=this.pixelMatrix){let ee=[w.x*this.worldSize,w.y*this.worldSize,q,1];return a.af(ee,ee,Q),new a.P(ee[0]/ee[3],ee[1]/ee[3])}getBounds(){let w=Math.max(0,this.height/2-this.getHorizon());return new ce().extend(this.pointLocation(new a.P(0,w))).extend(this.pointLocation(new a.P(this.width,w))).extend(this.pointLocation(new a.P(this.width,this.height))).extend(this.pointLocation(new a.P(0,this.height)))}getMaxBounds(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new ce([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(w){w?(this.lngRange=[w.getWest(),w.getEast()],this.latRange=[w.getSouth(),w.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-85.051129,Do])}calculateTileMatrix(w){let q=w.canonical,Q=this.worldSize/this.zoomScale(q.z),ee=q.x+Math.pow(2,q.z)*w.wrap,ue=a.an(new Float64Array(16));return a.J(ue,ue,[ee*Q,q.y*Q,0]),a.K(ue,ue,[Q/a.X,Q/a.X,1]),ue}calculatePosMatrix(w,q=!1){let Q=w.key,ee=q?this._alignedPosMatrixCache:this._posMatrixCache;if(ee[Q])return ee[Q];let ue=this.calculateTileMatrix(w);return a.L(ue,q?this.alignedModelViewProjectionMatrix:this.modelViewProjectionMatrix,ue),ee[Q]=new Float32Array(ue),ee[Q]}calculateFogMatrix(w){let q=w.key,Q=this._fogMatrixCache;if(Q[q])return Q[q];let ee=this.calculateTileMatrix(w);return a.L(ee,this.fogMatrix,ee),Q[q]=new Float32Array(ee),Q[q]}customLayerMatrix(){return this.mercatorMatrix.slice()}getConstrained(w,q){q=a.ac(+q,this.minZoom,this.maxZoom);let Q={center:new a.N(w.lng,w.lat),zoom:q},ee=this.lngRange;if(!this._renderWorldCopies&&ee===null){let tt=179.9999999999;ee=[-tt,tt]}let ue=this.tileSize*this.zoomScale(Q.zoom),Ve=0,et=ue,yt=0,Dt=ue,ir=0,or=0,{x:kr,y:Vr}=this.size;if(this.latRange){let tt=this.latRange;Ve=a.Q(tt[1])*ue,et=a.Q(tt[0])*ue,et-Veet&&(Ge=et-tt)}if(ee){let tt=(yt+Dt)/2,vt=he;this._renderWorldCopies&&(vt=a.b3(he,tt-ue/2,tt+ue/2));let Gt=kr/2;vt-GtDt&&(qe=Dt-Gt)}if(qe!==void 0||Ge!==void 0){let tt=new a.P(qe!=null?qe:he,Ge!=null?Ge:Se);Q.center=this.unproject.call({worldSize:ue},tt).wrap()}return Q}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let w=this._unmodified,{center:q,zoom:Q}=this.getConstrained(this.center,this.zoom);this.center=q,this.zoom=Q,this._unmodified=w,this._constraining=!1}_calcMatrices(){if(!this.height)return;let w=this.centerOffset,q=this.point.x,Q=this.point.y;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height,this._pixelPerMeter=a.b5(1,this.center.lat)*this.worldSize;let ee=a.an(new Float64Array(16));a.K(ee,ee,[this.width/2,-this.height/2,1]),a.J(ee,ee,[1,-1,0]),this.labelPlaneMatrix=ee,ee=a.an(new Float64Array(16)),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[-1,-1,0]),a.K(ee,ee,[2/this.width,2/this.height,1]),this.glCoordMatrix=ee;let ue=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),Ve=Math.min(this.elevation,this.minElevationForCurrentTile),et=ue-Ve*this._pixelPerMeter/Math.cos(this._pitch),yt=Ve<0?et:ue,Dt=Math.PI/2+this._pitch,ir=this._fov*(.5+w.y/this.height),or=Math.sin(ir)*yt/Math.sin(a.ac(Math.PI-Dt-ir,.01,Math.PI-.01)),kr=this.getHorizon(),Vr=2*Math.atan(kr/this.cameraToCenterDistance)*(.5+w.y/(2*kr)),he=Math.sin(Vr)*yt/Math.sin(a.ac(Math.PI-Dt-Vr,.01,Math.PI-.01)),Se=Math.min(or,he);this.farZ=1.01*(Math.cos(Math.PI/2-this._pitch)*Se+yt),this.nearZ=this.height/50,ee=new Float64Array(16),a.b6(ee,this._fov,this.width/this.height,this.nearZ,this.farZ),ee[8]=2*-w.x/this.width,ee[9]=2*w.y/this.height,this.projectionMatrix=a.ae(ee),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[0,0,-this.cameraToCenterDistance]),a.b7(ee,ee,this._pitch),a.ad(ee,ee,this.angle),a.J(ee,ee,[-q,-Q,0]),this.mercatorMatrix=a.K([],ee,[this.worldSize,this.worldSize,this.worldSize]),a.K(ee,ee,[1,1,this._pixelPerMeter]),this.pixelMatrix=a.L(new Float64Array(16),this.labelPlaneMatrix,ee),a.J(ee,ee,[0,0,-this.elevation]),this.modelViewProjectionMatrix=ee,this.invModelViewProjectionMatrix=a.as([],ee),this.fogMatrix=new Float64Array(16),a.b6(this.fogMatrix,this._fov,this.width/this.height,ue,this.farZ),this.fogMatrix[8]=2*-w.x/this.width,this.fogMatrix[9]=2*w.y/this.height,a.K(this.fogMatrix,this.fogMatrix,[1,-1,1]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.cameraToCenterDistance]),a.b7(this.fogMatrix,this.fogMatrix,this._pitch),a.ad(this.fogMatrix,this.fogMatrix,this.angle),a.J(this.fogMatrix,this.fogMatrix,[-q,-Q,0]),a.K(this.fogMatrix,this.fogMatrix,[1,1,this._pixelPerMeter]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.elevation]),this.pixelMatrix3D=a.L(new Float64Array(16),this.labelPlaneMatrix,ee);let qe=this.width%2/2,Ge=this.height%2/2,lt=Math.cos(this.angle),tt=Math.sin(this.angle),vt=q-Math.round(q)+lt*qe+tt*Ge,Gt=Q-Math.round(Q)+lt*Ge+tt*qe,nr=new Float64Array(ee);if(a.J(nr,nr,[vt>.5?vt-1:vt,Gt>.5?Gt-1:Gt,0]),this.alignedModelViewProjectionMatrix=nr,ee=a.as(new Float64Array(16),this.pixelMatrix),!ee)throw new Error("failed to invert matrix");this.pixelMatrixInverse=ee,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;let w=this.pointCoordinate(new a.P(0,0)),q=[w.x*this.worldSize,w.y*this.worldSize,0,1];return a.af(q,q,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){let w=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.P(0,w))}getCameraQueryGeometry(w){let q=this.getCameraPoint();if(w.length===1)return[w[0],q];{let Q=q.x,ee=q.y,ue=q.x,Ve=q.y;for(let et of w)Q=Math.min(Q,et.x),ee=Math.min(ee,et.y),ue=Math.max(ue,et.x),Ve=Math.max(Ve,et.y);return[new a.P(Q,ee),new a.P(ue,ee),new a.P(ue,Ve),new a.P(Q,Ve),new a.P(Q,ee)]}}lngLatToCameraDepth(w,q){let Q=this.locationCoordinate(w),ee=[Q.x*this.worldSize,Q.y*this.worldSize,q,1];return a.af(ee,ee,this.modelViewProjectionMatrix),ee[2]/ee[3]}}function xs(le,w){let q,Q=!1,ee=null,ue=null,Ve=()=>{ee=null,Q&&(le.apply(ue,q),ee=setTimeout(Ve,w),Q=!1)};return(...et)=>(Q=!0,ue=this,q=et,ee||Ve(),ee)}class ks{constructor(w){this._getCurrentHash=()=>{let q=window.location.hash.replace("#","");if(this._hashName){let Q;return q.split("&").map(ee=>ee.split("=")).forEach(ee=>{ee[0]===this._hashName&&(Q=ee)}),(Q&&Q[1]||"").split("/")}return q.split("/")},this._onHashChange=()=>{let q=this._getCurrentHash();if(q.length>=3&&!q.some(Q=>isNaN(Q))){let Q=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(q[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+q[2],+q[1]],zoom:+q[0],bearing:Q,pitch:+(q[4]||0)}),!0}return!1},this._updateHashUnthrottled=()=>{let q=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,q)},this._removeHash=()=>{let q=this._getCurrentHash();if(q.length===0)return;let Q=q.join("/"),ee=Q;ee.split("&").length>0&&(ee=ee.split("&")[0]),this._hashName&&(ee=`${this._hashName}=${Q}`);let ue=window.location.hash.replace(ee,"");ue.startsWith("#&")?ue=ue.slice(0,1)+ue.slice(2):ue==="#"&&(ue="");let Ve=window.location.href.replace(/(#.+)?$/,ue);Ve=Ve.replace("&&","&"),window.history.replaceState(window.history.state,null,Ve)},this._updateHash=xs(this._updateHashUnthrottled,300),this._hashName=w&&encodeURIComponent(w)}addTo(w){return this._map=w,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(w){let q=this._map.getCenter(),Q=Math.round(100*this._map.getZoom())/100,ee=Math.ceil((Q*Math.LN2+Math.log(512/360/.5))/Math.LN10),ue=Math.pow(10,ee),Ve=Math.round(q.lng*ue)/ue,et=Math.round(q.lat*ue)/ue,yt=this._map.getBearing(),Dt=this._map.getPitch(),ir="";if(ir+=w?`/${Ve}/${et}/${Q}`:`${Q}/${et}/${Ve}`,(yt||Dt)&&(ir+="/"+Math.round(10*yt)/10),Dt&&(ir+=`/${Math.round(Dt)}`),this._hashName){let or=this._hashName,kr=!1,Vr=window.location.hash.slice(1).split("&").map(he=>{let Se=he.split("=")[0];return Se===or?(kr=!0,`${Se}=${ir}`):he}).filter(he=>he);return kr||Vr.push(`${or}=${ir}`),`#${Vr.join("&")}`}return`#${ir}`}}let Ea={linearity:.3,easing:a.b8(0,0,.3,1)},Jn=a.e({deceleration:2500,maxSpeed:1400},Ea),Oo=a.e({deceleration:20,maxSpeed:1400},Ea),rl=a.e({deceleration:1e3,maxSpeed:360},Ea),Gs=a.e({deceleration:1e3,maxSpeed:90},Ea);class bs{constructor(w){this._map=w,this.clear()}clear(){this._inertiaBuffer=[]}record(w){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:l.now(),settings:w})}_drainInertiaBuffer(){let w=this._inertiaBuffer,q=l.now();for(;w.length>0&&q-w[0].time>160;)w.shift()}_onMoveEnd(w){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;let q={zoom:0,bearing:0,pitch:0,pan:new a.P(0,0),pinchAround:void 0,around:void 0};for(let{settings:ue}of this._inertiaBuffer)q.zoom+=ue.zoomDelta||0,q.bearing+=ue.bearingDelta||0,q.pitch+=ue.pitchDelta||0,ue.panDelta&&q.pan._add(ue.panDelta),ue.around&&(q.around=ue.around),ue.pinchAround&&(q.pinchAround=ue.pinchAround);let Q=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,ee={};if(q.pan.mag()){let ue=$o(q.pan.mag(),Q,a.e({},Jn,w||{}));ee.offset=q.pan.mult(ue.amount/q.pan.mag()),ee.center=this._map.transform.center,zs(ee,ue)}if(q.zoom){let ue=$o(q.zoom,Q,Oo);ee.zoom=this._map.transform.zoom+ue.amount,zs(ee,ue)}if(q.bearing){let ue=$o(q.bearing,Q,rl);ee.bearing=this._map.transform.bearing+a.ac(ue.amount,-179,179),zs(ee,ue)}if(q.pitch){let ue=$o(q.pitch,Q,Gs);ee.pitch=this._map.transform.pitch+ue.amount,zs(ee,ue)}if(ee.zoom||ee.bearing){let ue=q.pinchAround===void 0?q.around:q.pinchAround;ee.around=ue?this._map.unproject(ue):this._map.getCenter()}return this.clear(),a.e(ee,{noMoveStart:!0})}}function zs(le,w){(!le.duration||le.durationq.unproject(yt)),et=ue.reduce((yt,Dt,ir,or)=>yt.add(Dt.div(or.length)),new a.P(0,0));super(w,{points:ue,point:et,lngLats:Ve,lngLat:q.unproject(et),originalEvent:Q}),this._defaultPrevented=!1}}class _l extends a.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(w,q,Q){super(w,{originalEvent:Q}),this._defaultPrevented=!1}}class Ss{constructor(w,q){this._map=w,this._clickTolerance=q.clickTolerance}reset(){delete this._mousedownPos}wheel(w){return this._firePreventable(new _l(w.type,this._map,w))}mousedown(w,q){return this._mousedownPos=q,this._firePreventable(new Aa(w.type,this._map,w))}mouseup(w){this._map.fire(new Aa(w.type,this._map,w))}click(w,q){this._mousedownPos&&this._mousedownPos.dist(q)>=this._clickTolerance||this._map.fire(new Aa(w.type,this._map,w))}dblclick(w){return this._firePreventable(new Aa(w.type,this._map,w))}mouseover(w){this._map.fire(new Aa(w.type,this._map,w))}mouseout(w){this._map.fire(new Aa(w.type,this._map,w))}touchstart(w){return this._firePreventable(new os(w.type,this._map,w))}touchmove(w){this._map.fire(new os(w.type,this._map,w))}touchend(w){this._map.fire(new os(w.type,this._map,w))}touchcancel(w){this._map.fire(new os(w.type,this._map,w))}_firePreventable(w){if(this._map.fire(w),w.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class po{constructor(w){this._map=w}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(w){this._map.fire(new Aa(w.type,this._map,w))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Aa("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(w){this._delayContextMenu?this._contextMenuEvent=w:this._ignoreContextMenu||this._map.fire(new Aa(w.type,this._map,w)),this._map.listens("contextmenu")&&w.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class go{constructor(w){this._map=w}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(w){return this.transform.pointLocation(a.P.convert(w),this._map.terrain)}}class ss{constructor(w,q){this._map=w,this._tr=new go(w),this._el=w.getCanvasContainer(),this._container=w.getContainer(),this._clickTolerance=q.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(w,q){this.isEnabled()&&w.shiftKey&&w.button===0&&(f.disableDrag(),this._startPos=this._lastPos=q,this._active=!0)}mousemoveWindow(w,q){if(!this._active)return;let Q=q;if(this._lastPos.equals(Q)||!this._box&&Q.dist(this._startPos)ue.fitScreenCoordinates(Q,ee,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",w)}keydown(w){this._active&&w.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",w))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(f.remove(this._box),this._box=null),f.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(w,q){return this._map.fire(new a.k(w,{originalEvent:q}))}}function qo(le,w){if(le.length!==w.length)throw new Error(`The number of touches and points are not equal - touches ${le.length}, points ${w.length}`);let q={};for(let Q=0;Qthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=w.timeStamp),Q.length===this.numTouches&&(this.centroid=function(ee){let ue=new a.P(0,0);for(let Ve of ee)ue._add(Ve);return ue.div(ee.length)}(q),this.touches=qo(Q,q)))}touchmove(w,q,Q){if(this.aborted||!this.centroid)return;let ee=qo(Q,q);for(let ue in this.touches){let Ve=ee[ue];(!Ve||Ve.dist(this.touches[ue])>30)&&(this.aborted=!0)}}touchend(w,q,Q){if((!this.centroid||w.timeStamp-this.startTime>500)&&(this.aborted=!0),Q.length===0){let ee=!this.aborted&&this.centroid;if(this.reset(),ee)return ee}}}class io{constructor(w){this.singleTap=new zo(w),this.numTaps=w.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(w,q,Q){this.singleTap.touchstart(w,q,Q)}touchmove(w,q,Q){this.singleTap.touchmove(w,q,Q)}touchend(w,q,Q){let ee=this.singleTap.touchend(w,q,Q);if(ee){let ue=w.timeStamp-this.lastTime<500,Ve=!this.lastTap||this.lastTap.dist(ee)<30;if(ue&&Ve||this.reset(),this.count++,this.lastTime=w.timeStamp,this.lastTap=ee,this.count===this.numTaps)return this.reset(),ee}}}class Io{constructor(w){this._tr=new go(w),this._zoomIn=new io({numTouches:1,numTaps:2}),this._zoomOut=new io({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(w,q,Q){this._zoomIn.touchstart(w,q,Q),this._zoomOut.touchstart(w,q,Q)}touchmove(w,q,Q){this._zoomIn.touchmove(w,q,Q),this._zoomOut.touchmove(w,q,Q)}touchend(w,q,Q){let ee=this._zoomIn.touchend(w,q,Q),ue=this._zoomOut.touchend(w,q,Q),Ve=this._tr;return ee?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:et=>et.easeTo({duration:300,zoom:Ve.zoom+1,around:Ve.unproject(ee)},{originalEvent:w})}):ue?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:et=>et.easeTo({duration:300,zoom:Ve.zoom-1,around:Ve.unproject(ue)},{originalEvent:w})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Da{constructor(w){this._enabled=!!w.enable,this._moveStateManager=w.moveStateManager,this._clickTolerance=w.clickTolerance||1,this._moveFunction=w.move,this._activateOnStart=!!w.activateOnStart,w.assignEvents(this),this.reset()}reset(w){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(w)}_move(...w){let q=this._moveFunction(...w);if(q.bearingDelta||q.pitchDelta||q.around||q.panDelta)return this._active=!0,q}dragStart(w,q){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(w)&&(this._moveStateManager.startMove(w),this._lastPoint=q.length?q[0]:q,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(w,q){if(!this.isEnabled())return;let Q=this._lastPoint;if(!Q)return;if(w.preventDefault(),!this._moveStateManager.isValidMoveEvent(w))return void this.reset(w);let ee=q.length?q[0]:q;return!this._moved&&ee.dist(Q){le.mousedown=le.dragStart,le.mousemoveWindow=le.dragMove,le.mouseup=le.dragEnd,le.contextmenu=w=>{w.preventDefault()}},Hs=({enable:le,clickTolerance:w,bearingDegreesPerPixelMoved:q=.8})=>{let Q=new fs({checkCorrectEvent:ee=>f.mouseButton(ee)===0&&ee.ctrlKey||f.mouseButton(ee)===2});return new Da({clickTolerance:w,move:(ee,ue)=>({bearingDelta:(ue.x-ee.x)*q}),moveStateManager:Q,enable:le,assignEvents:el})},Ro=({enable:le,clickTolerance:w,pitchDegreesPerPixelMoved:q=-.5})=>{let Q=new fs({checkCorrectEvent:ee=>f.mouseButton(ee)===0&&ee.ctrlKey||f.mouseButton(ee)===2});return new Da({clickTolerance:w,move:(ee,ue)=>({pitchDelta:(ue.y-ee.y)*q}),moveStateManager:Q,enable:le,assignEvents:el})};class tl{constructor(w,q){this._clickTolerance=w.clickTolerance||1,this._map=q,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new a.P(0,0)}_shouldBePrevented(w){return w<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(w,q,Q){return this._calculateTransform(w,q,Q)}touchmove(w,q,Q){if(this._active){if(!this._shouldBePrevented(Q.length))return w.preventDefault(),this._calculateTransform(w,q,Q);this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",w)}}touchend(w,q,Q){this._calculateTransform(w,q,Q),this._active&&this._shouldBePrevented(Q.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(w,q,Q){Q.length>0&&(this._active=!0);let ee=qo(Q,q),ue=new a.P(0,0),Ve=new a.P(0,0),et=0;for(let Dt in ee){let ir=ee[Dt],or=this._touches[Dt];or&&(ue._add(ir),Ve._add(ir.sub(or)),et++,ee[Dt]=ir)}if(this._touches=ee,this._shouldBePrevented(et)||!Ve.mag())return;let yt=Ve.div(et);return this._sum._add(yt),this._sum.mag()Math.abs(le.x)}class Bs extends Fs{constructor(w){super(),this._currentTouchCount=0,this._map=w}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(w,q,Q){super.touchstart(w,q,Q),this._currentTouchCount=Q.length}_start(w){this._lastPoints=w,Is(w[0].sub(w[1]))&&(this._valid=!1)}_move(w,q,Q){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;let ee=w[0].sub(this._lastPoints[0]),ue=w[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(ee,ue,Q.timeStamp),this._valid?(this._lastPoints=w,this._active=!0,{pitchDelta:(ee.y+ue.y)/2*-.5}):void 0}gestureBeginsVertically(w,q,Q){if(this._valid!==void 0)return this._valid;let ee=w.mag()>=2,ue=q.mag()>=2;if(!ee&&!ue)return;if(!ee||!ue)return this._firstMove===void 0&&(this._firstMove=Q),Q-this._firstMove<100&&void 0;let Ve=w.y>0==q.y>0;return Is(w)&&Is(q)&&Ve}}let Tt={panStep:100,bearingStep:15,pitchStep:10};class Vt{constructor(w){this._tr=new go(w);let q=Tt;this._panStep=q.panStep,this._bearingStep=q.bearingStep,this._pitchStep=q.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(w){if(w.altKey||w.ctrlKey||w.metaKey)return;let q=0,Q=0,ee=0,ue=0,Ve=0;switch(w.keyCode){case 61:case 107:case 171:case 187:q=1;break;case 189:case 109:case 173:q=-1;break;case 37:w.shiftKey?Q=-1:(w.preventDefault(),ue=-1);break;case 39:w.shiftKey?Q=1:(w.preventDefault(),ue=1);break;case 38:w.shiftKey?ee=1:(w.preventDefault(),Ve=-1);break;case 40:w.shiftKey?ee=-1:(w.preventDefault(),Ve=1);break;default:return}return this._rotationDisabled&&(Q=0,ee=0),{cameraAnimation:et=>{let yt=this._tr;et.easeTo({duration:300,easeId:"keyboardHandler",easing:wr,zoom:q?Math.round(yt.zoom)+q*(w.shiftKey?2:1):yt.zoom,bearing:yt.bearing+Q*this._bearingStep,pitch:yt.pitch+ee*this._pitchStep,offset:[-ue*this._panStep,-Ve*this._panStep],center:yt.center},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function wr(le){return le*(2-le)}let yr=4.000244140625;class Fr{constructor(w,q){this._onTimeout=Q=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(Q)},this._map=w,this._tr=new go(w),this._triggerRenderFrame=q,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(w){this._defaultZoomRate=w}setWheelZoomRate(w){this._wheelZoomRate=w}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(w){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!w&&w.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(w){return!!this._map.cooperativeGestures.isEnabled()&&!(w.ctrlKey||this._map.cooperativeGestures.isBypassed(w))}wheel(w){if(!this.isEnabled())return;if(this._shouldBePrevented(w))return void this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",w);let q=w.deltaMode===WheelEvent.DOM_DELTA_LINE?40*w.deltaY:w.deltaY,Q=l.now(),ee=Q-(this._lastWheelEventTime||0);this._lastWheelEventTime=Q,q!==0&&q%yr==0?this._type="wheel":q!==0&&Math.abs(q)<4?this._type="trackpad":ee>400?(this._type=null,this._lastValue=q,this._timeout=setTimeout(this._onTimeout,40,w)):this._type||(this._type=Math.abs(ee*q)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,q+=this._lastValue)),w.shiftKey&&q&&(q/=4),this._type&&(this._lastWheelEvent=w,this._delta-=q,this._active||this._start(w)),w.preventDefault()}_start(w){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let q=f.mousePos(this._map.getCanvas(),w),Q=this._tr;this._around=q.y>Q.transform.height/2-Q.transform.getHorizon()?a.N.convert(this._aroundCenter?Q.center:Q.unproject(q)):a.N.convert(Q.center),this._aroundPoint=Q.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;let w=this._tr.transform;if(this._delta!==0){let yt=this._type==="wheel"&&Math.abs(this._delta)>yr?this._wheelZoomRate:this._defaultZoomRate,Dt=2/(1+Math.exp(-Math.abs(this._delta*yt)));this._delta<0&&Dt!==0&&(Dt=1/Dt);let ir=typeof this._targetZoom=="number"?w.zoomScale(this._targetZoom):w.scale;this._targetZoom=Math.min(w.maxZoom,Math.max(w.minZoom,w.scaleZoom(ir*Dt))),this._type==="wheel"&&(this._startZoom=w.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let q=typeof this._targetZoom=="number"?this._targetZoom:w.zoom,Q=this._startZoom,ee=this._easing,ue,Ve=!1,et=l.now()-this._lastWheelEventTime;if(this._type==="wheel"&&Q&&ee&&et){let yt=Math.min(et/200,1),Dt=ee(yt);ue=a.y.number(Q,q,Dt),yt<1?this._frameId||(this._frameId=!0):Ve=!0}else ue=q,Ve=!0;return this._active=!0,Ve&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Ve,zoomDelta:ue-w.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(w){let q=a.b9;if(this._prevEase){let Q=this._prevEase,ee=(l.now()-Q.start)/Q.duration,ue=Q.easing(ee+.01)-Q.easing(ee),Ve=.27/Math.sqrt(ue*ue+1e-4)*.01,et=Math.sqrt(.0729-Ve*Ve);q=a.b8(Ve,et,.25,1)}return this._prevEase={start:l.now(),duration:w,easing:q},q}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class gi{constructor(w,q){this._clickZoom=w,this._tapZoom=q}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Ti{constructor(w){this._tr=new go(w),this.reset()}reset(){this._active=!1}dblclick(w,q){return w.preventDefault(),{cameraAnimation:Q=>{Q.easeTo({duration:300,zoom:this._tr.zoom+(w.shiftKey?-1:1),around:this._tr.unproject(q)},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class ki{constructor(){this._tap=new io({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(w,q,Q){if(!this._swipePoint)if(this._tapTime){let ee=q[0],ue=w.timeStamp-this._tapTime<500,Ve=this._tapPoint.dist(ee)<30;ue&&Ve?Q.length>0&&(this._swipePoint=ee,this._swipeTouch=Q[0].identifier):this.reset()}else this._tap.touchstart(w,q,Q)}touchmove(w,q,Q){if(this._tapTime){if(this._swipePoint){if(Q[0].identifier!==this._swipeTouch)return;let ee=q[0],ue=ee.y-this._swipePoint.y;return this._swipePoint=ee,w.preventDefault(),this._active=!0,{zoomDelta:ue/128}}}else this._tap.touchmove(w,q,Q)}touchend(w,q,Q){if(this._tapTime)this._swipePoint&&Q.length===0&&this.reset();else{let ee=this._tap.touchend(w,q,Q);ee&&(this._tapTime=w.timeStamp,this._tapPoint=ee)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Ji{constructor(w,q,Q){this._el=w,this._mousePan=q,this._touchPan=Q}enable(w){this._inertiaOptions=w||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Fn{constructor(w,q,Q){this._pitchWithRotate=w.pitchWithRotate,this._mouseRotate=q,this._mousePitch=Q}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Pi{constructor(w,q,Q,ee){this._el=w,this._touchZoom=q,this._touchRotate=Q,this._tapDragZoom=ee,this._rotationDisabled=!1,this._enabled=!0}enable(w){this._touchZoom.enable(w),this._rotationDisabled||this._touchRotate.enable(w),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}class hi{constructor(w,q){this._bypassKey=navigator.userAgent.indexOf("Mac")!==-1?"metaKey":"ctrlKey",this._map=w,this._options=q,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let w=this._map.getCanvasContainer();w.classList.add("maplibregl-cooperative-gestures"),this._container=f.create("div","maplibregl-cooperative-gesture-screen",w);let q=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(q=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let Q=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),ee=document.createElement("div");ee.className="maplibregl-desktop-message",ee.textContent=q,this._container.appendChild(ee);let ue=document.createElement("div");ue.className="maplibregl-mobile-message",ue.textContent=Q,this._container.appendChild(ue),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(f.remove(this._container),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(w){return w[this._bypassKey]}notifyGestureBlocked(w,q){this._enabled&&(this._map.fire(new a.k("cooperativegestureprevented",{gestureType:w,originalEvent:q})),this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}}let Li=le=>le.zoom||le.drag||le.pitch||le.rotate;class Si extends a.k{}function Gn(le){return le.panDelta&&le.panDelta.mag()||le.zoomDelta||le.bearingDelta||le.pitchDelta}class ta{constructor(w,q){this.handleWindowEvent=ee=>{this.handleEvent(ee,`${ee.type}Window`)},this.handleEvent=(ee,ue)=>{if(ee.type==="blur")return void this.stop(!0);this._updatingCamera=!0;let Ve=ee.type==="renderFrame"?void 0:ee,et={needsRenderFrame:!1},yt={},Dt={},ir=ee.touches,or=ir?this._getMapTouches(ir):void 0,kr=or?f.touchPos(this._map.getCanvas(),or):f.mousePos(this._map.getCanvas(),ee);for(let{handlerName:Se,handler:qe,allowed:Ge}of this._handlers){if(!qe.isEnabled())continue;let lt;this._blockedByActive(Dt,Ge,Se)?qe.reset():qe[ue||ee.type]&&(lt=qe[ue||ee.type](ee,kr,or),this.mergeHandlerResult(et,yt,lt,Se,Ve),lt&<.needsRenderFrame&&this._triggerRenderFrame()),(lt||qe.isActive())&&(Dt[Se]=qe)}let Vr={};for(let Se in this._previousActiveHandlers)Dt[Se]||(Vr[Se]=Ve);this._previousActiveHandlers=Dt,(Object.keys(Vr).length||Gn(et))&&(this._changes.push([et,yt,Vr]),this._triggerRenderFrame()),(Object.keys(Dt).length||Gn(et))&&this._map._stop(!0),this._updatingCamera=!1;let{cameraAnimation:he}=et;he&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],he(this._map))},this._map=w,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new bs(w),this._bearingSnap=q.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(q);let Q=this._el;this._listeners=[[Q,"touchstart",{passive:!0}],[Q,"touchmove",{passive:!1}],[Q,"touchend",void 0],[Q,"touchcancel",void 0],[Q,"mousedown",void 0],[Q,"mousemove",void 0],[Q,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[Q,"mouseover",void 0],[Q,"mouseout",void 0],[Q,"dblclick",void 0],[Q,"click",void 0],[Q,"keydown",{capture:!1}],[Q,"keyup",void 0],[Q,"wheel",{passive:!1}],[Q,"contextmenu",void 0],[window,"blur",void 0]];for(let[ee,ue,Ve]of this._listeners)f.addEventListener(ee,ue,ee===document?this.handleWindowEvent:this.handleEvent,Ve)}destroy(){for(let[w,q,Q]of this._listeners)f.removeEventListener(w,q,w===document?this.handleWindowEvent:this.handleEvent,Q)}_addDefaultHandlers(w){let q=this._map,Q=q.getCanvasContainer();this._add("mapEvent",new Ss(q,w));let ee=q.boxZoom=new ss(q,w);this._add("boxZoom",ee),w.interactive&&w.boxZoom&&ee.enable();let ue=q.cooperativeGestures=new hi(q,w.cooperativeGestures);this._add("cooperativeGestures",ue),w.cooperativeGestures&&ue.enable();let Ve=new Io(q),et=new Ti(q);q.doubleClickZoom=new gi(et,Ve),this._add("tapZoom",Ve),this._add("clickZoom",et),w.interactive&&w.doubleClickZoom&&q.doubleClickZoom.enable();let yt=new ki;this._add("tapDragZoom",yt);let Dt=q.touchPitch=new Bs(q);this._add("touchPitch",Dt),w.interactive&&w.touchPitch&&q.touchPitch.enable(w.touchPitch);let ir=Hs(w),or=Ro(w);q.dragRotate=new Fn(w,ir,or),this._add("mouseRotate",ir,["mousePitch"]),this._add("mousePitch",or,["mouseRotate"]),w.interactive&&w.dragRotate&&q.dragRotate.enable();let kr=(({enable:lt,clickTolerance:tt})=>{let vt=new fs({checkCorrectEvent:Gt=>f.mouseButton(Gt)===0&&!Gt.ctrlKey});return new Da({clickTolerance:tt,move:(Gt,nr)=>({around:nr,panDelta:nr.sub(Gt)}),activateOnStart:!0,moveStateManager:vt,enable:lt,assignEvents:el})})(w),Vr=new tl(w,q);q.dragPan=new Ji(Q,kr,Vr),this._add("mousePan",kr),this._add("touchPan",Vr,["touchZoom","touchRotate"]),w.interactive&&w.dragPan&&q.dragPan.enable(w.dragPan);let he=new Rs,Se=new Ms;q.touchZoomRotate=new Pi(Q,Se,he,yt),this._add("touchRotate",he,["touchPan","touchZoom"]),this._add("touchZoom",Se,["touchPan","touchRotate"]),w.interactive&&w.touchZoomRotate&&q.touchZoomRotate.enable(w.touchZoomRotate);let qe=q.scrollZoom=new Fr(q,()=>this._triggerRenderFrame());this._add("scrollZoom",qe,["mousePan"]),w.interactive&&w.scrollZoom&&q.scrollZoom.enable(w.scrollZoom);let Ge=q.keyboard=new Vt(q);this._add("keyboard",Ge),w.interactive&&w.keyboard&&q.keyboard.enable(),this._add("blockableMapEvent",new po(q))}_add(w,q,Q){this._handlers.push({handlerName:w,handler:q,allowed:Q}),this._handlersById[w]=q}stop(w){if(!this._updatingCamera){for(let{handler:q}of this._handlers)q.reset();this._inertia.clear(),this._fireEvents({},{},w),this._changes=[]}}isActive(){for(let{handler:w}of this._handlers)if(w.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!Li(this._eventsInProgress)||this.isZooming()}_blockedByActive(w,q,Q){for(let ee in w)if(ee!==Q&&(!q||q.indexOf(ee)<0))return!0;return!1}_getMapTouches(w){let q=[];for(let Q of w)this._el.contains(Q.target)&&q.push(Q);return q}mergeHandlerResult(w,q,Q,ee,ue){if(!Q)return;a.e(w,Q);let Ve={handlerName:ee,originalEvent:Q.originalEvent||ue};Q.zoomDelta!==void 0&&(q.zoom=Ve),Q.panDelta!==void 0&&(q.drag=Ve),Q.pitchDelta!==void 0&&(q.pitch=Ve),Q.bearingDelta!==void 0&&(q.rotate=Ve)}_applyChanges(){let w={},q={},Q={};for(let[ee,ue,Ve]of this._changes)ee.panDelta&&(w.panDelta=(w.panDelta||new a.P(0,0))._add(ee.panDelta)),ee.zoomDelta&&(w.zoomDelta=(w.zoomDelta||0)+ee.zoomDelta),ee.bearingDelta&&(w.bearingDelta=(w.bearingDelta||0)+ee.bearingDelta),ee.pitchDelta&&(w.pitchDelta=(w.pitchDelta||0)+ee.pitchDelta),ee.around!==void 0&&(w.around=ee.around),ee.pinchAround!==void 0&&(w.pinchAround=ee.pinchAround),ee.noInertia&&(w.noInertia=ee.noInertia),a.e(q,ue),a.e(Q,Ve);this._updateMapTransform(w,q,Q),this._changes=[]}_updateMapTransform(w,q,Q){let ee=this._map,ue=ee._getTransformForUpdate(),Ve=ee.terrain;if(!(Gn(w)||Ve&&this._terrainMovement))return this._fireEvents(q,Q,!0);let{panDelta:et,zoomDelta:yt,bearingDelta:Dt,pitchDelta:ir,around:or,pinchAround:kr}=w;kr!==void 0&&(or=kr),ee._stop(!0),or=or||ee.transform.centerPoint;let Vr=ue.pointLocation(et?or.sub(et):or);Dt&&(ue.bearing+=Dt),ir&&(ue.pitch+=ir),yt&&(ue.zoom+=yt),Ve?this._terrainMovement||!q.drag&&!q.zoom?q.drag&&this._terrainMovement?ue.center=ue.pointLocation(ue.centerPoint.sub(et)):ue.setLocationAtPoint(Vr,or):(this._terrainMovement=!0,this._map._elevationFreeze=!0,ue.setLocationAtPoint(Vr,or)):ue.setLocationAtPoint(Vr,or),ee._applyUpdatedTransform(ue),this._map._update(),w.noInertia||this._inertia.record(w),this._fireEvents(q,Q,!0)}_fireEvents(w,q,Q){let ee=Li(this._eventsInProgress),ue=Li(w),Ve={};for(let or in w){let{originalEvent:kr}=w[or];this._eventsInProgress[or]||(Ve[`${or}start`]=kr),this._eventsInProgress[or]=w[or]}!ee&&ue&&this._fireEvent("movestart",ue.originalEvent);for(let or in Ve)this._fireEvent(or,Ve[or]);ue&&this._fireEvent("move",ue.originalEvent);for(let or in w){let{originalEvent:kr}=w[or];this._fireEvent(or,kr)}let et={},yt;for(let or in this._eventsInProgress){let{handlerName:kr,originalEvent:Vr}=this._eventsInProgress[or];this._handlersById[kr].isActive()||(delete this._eventsInProgress[or],yt=q[kr]||Vr,et[`${or}end`]=yt)}for(let or in et)this._fireEvent(or,et[or]);let Dt=Li(this._eventsInProgress),ir=(ee||ue)&&!Dt;if(ir&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;let or=this._map._getTransformForUpdate();or.recalculateZoom(this._map.terrain),this._map._applyUpdatedTransform(or)}if(Q&&ir){this._updatingCamera=!0;let or=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),kr=Vr=>Vr!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new Si("renderFrame",{timeStamp:w})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}class ya extends a.E{constructor(w,q){super(),this._renderFrameCallback=()=>{let Q=Math.min((l.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(Q)),Q<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=w,this._bearingSnap=q.bearingSnap,this.on("moveend",()=>{delete this._requestedCameraState})}getCenter(){return new a.N(this.transform.center.lng,this.transform.center.lat)}setCenter(w,q){return this.jumpTo({center:w},q)}panBy(w,q,Q){return w=a.P.convert(w).mult(-1),this.panTo(this.transform.center,a.e({offset:w},q),Q)}panTo(w,q,Q){return this.easeTo(a.e({center:w},q),Q)}getZoom(){return this.transform.zoom}setZoom(w,q){return this.jumpTo({zoom:w},q),this}zoomTo(w,q,Q){return this.easeTo(a.e({zoom:w},q),Q)}zoomIn(w,q){return this.zoomTo(this.getZoom()+1,w,q),this}zoomOut(w,q){return this.zoomTo(this.getZoom()-1,w,q),this}getBearing(){return this.transform.bearing}setBearing(w,q){return this.jumpTo({bearing:w},q),this}getPadding(){return this.transform.padding}setPadding(w,q){return this.jumpTo({padding:w},q),this}rotateTo(w,q,Q){return this.easeTo(a.e({bearing:w},q),Q)}resetNorth(w,q){return this.rotateTo(0,a.e({duration:1e3},w),q),this}resetNorthPitch(w,q){return this.easeTo(a.e({bearing:0,pitch:0,duration:1e3},w),q),this}snapToNorth(w,q){return Math.abs(this.getBearing()){if(this._zooming&&(ee.zoom=a.y.number(ue,qe,cr)),this._rotating&&(ee.bearing=a.y.number(Ve,Dt,cr)),this._pitching&&(ee.pitch=a.y.number(et,ir,cr)),this._padding&&(ee.interpolatePadding(yt,or,cr),Vr=ee.centerPoint.add(kr)),this.terrain&&!w.freezeElevation&&this._updateElevation(cr),vt)ee.setLocationAtPoint(vt,Gt);else{let Ar=ee.zoomScale(ee.zoom-ue),Rr=qe>ue?Math.min(2,tt):Math.max(.5,tt),ri=Math.pow(Rr,1-cr),si=ee.unproject(Ge.add(lt.mult(cr*ri)).mult(Ar));ee.setLocationAtPoint(ee.renderWorldCopies?si.wrap():si,Vr)}this._applyUpdatedTransform(ee),this._fireMoveEvents(q)},cr=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(q,cr)},w),this}_prepareEase(w,q,Q={}){this._moving=!0,q||Q.moving||this.fire(new a.k("movestart",w)),this._zooming&&!Q.zooming&&this.fire(new a.k("zoomstart",w)),this._rotating&&!Q.rotating&&this.fire(new a.k("rotatestart",w)),this._pitching&&!Q.pitching&&this.fire(new a.k("pitchstart",w))}_prepareElevation(w){this._elevationCenter=w,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(w,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(w){this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);let q=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(w<1&&q!==this._elevationTarget){let Q=this._elevationTarget-this._elevationStart;this._elevationStart+=w*(Q-(q-(Q*w+this._elevationStart))/(1-w)),this._elevationTarget=q}this.transform.elevation=a.y.number(this._elevationStart,this._elevationTarget,w)}_finalizeElevation(){this._elevationFreeze=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate||this.terrain?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_elevateCameraIfInsideTerrain(w){let q=w.getCameraPosition(),Q=this.terrain.getElevationForLngLatZoom(q.lngLat,w.zoom);if(q.altitudethis._elevateCameraIfInsideTerrain(ee)),this.transformCameraUpdate&&q.push(ee=>this.transformCameraUpdate(ee)),!q.length)return;let Q=w.clone();for(let ee of q){let ue=Q.clone(),{center:Ve,zoom:et,pitch:yt,bearing:Dt,elevation:ir}=ee(ue);Ve&&(ue.center=Ve),et!==void 0&&(ue.zoom=et),yt!==void 0&&(ue.pitch=yt),Dt!==void 0&&(ue.bearing=Dt),ir!==void 0&&(ue.elevation=ir),Q.apply(ue)}this.transform.apply(Q)}_fireMoveEvents(w){this.fire(new a.k("move",w)),this._zooming&&this.fire(new a.k("zoom",w)),this._rotating&&this.fire(new a.k("rotate",w)),this._pitching&&this.fire(new a.k("pitch",w))}_afterEase(w,q){if(this._easeId&&q&&this._easeId===q)return;delete this._easeId;let Q=this._zooming,ee=this._rotating,ue=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Q&&this.fire(new a.k("zoomend",w)),ee&&this.fire(new a.k("rotateend",w)),ue&&this.fire(new a.k("pitchend",w)),this.fire(new a.k("moveend",w))}flyTo(w,q){var Q;if(!w.essential&&l.prefersReducedMotion){let Ua=a.M(w,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Ua,q)}this.stop(),w=a.e({offset:[0,0],speed:1.2,curve:1.42,easing:a.b9},w);let ee=this._getTransformForUpdate(),ue=ee.zoom,Ve=ee.bearing,et=ee.pitch,yt=ee.padding,Dt="bearing"in w?this._normalizeBearing(w.bearing,Ve):Ve,ir="pitch"in w?+w.pitch:et,or="padding"in w?w.padding:ee.padding,kr=a.P.convert(w.offset),Vr=ee.centerPoint.add(kr),he=ee.pointLocation(Vr),{center:Se,zoom:qe}=ee.getConstrained(a.N.convert(w.center||he),(Q=w.zoom)!==null&&Q!==void 0?Q:ue);this._normalizeCenter(Se,ee);let Ge=ee.zoomScale(qe-ue),lt=ee.project(he),tt=ee.project(Se).sub(lt),vt=w.curve,Gt=Math.max(ee.width,ee.height),nr=Gt/Ge,cr=tt.mag();if("minZoom"in w){let Ua=a.ac(Math.min(w.minZoom,ue,qe),ee.minZoom,ee.maxZoom),Fo=Gt/ee.zoomScale(Ua-ue);vt=Math.sqrt(Fo/cr*2)}let Ar=vt*vt;function Rr(Ua){let Fo=(nr*nr-Gt*Gt+(Ua?-1:1)*Ar*Ar*cr*cr)/(2*(Ua?nr:Gt)*Ar*cr);return Math.log(Math.sqrt(Fo*Fo+1)-Fo)}function ri(Ua){return(Math.exp(Ua)-Math.exp(-Ua))/2}function si(Ua){return(Math.exp(Ua)+Math.exp(-Ua))/2}let Mi=Rr(!1),hn=function(Ua){return si(Mi)/si(Mi+vt*Ua)},Zn=function(Ua){return Gt*((si(Mi)*(ri(Fo=Mi+vt*Ua)/si(Fo))-ri(Mi))/Ar)/cr;var Fo},Yn=(Rr(!0)-Mi)/vt;if(Math.abs(cr)<1e-6||!isFinite(Yn)){if(Math.abs(Gt-nr)<1e-6)return this.easeTo(w,q);let Ua=nr0,hn=Fo=>Math.exp(Ua*vt*Fo)}return w.duration="duration"in w?+w.duration:1e3*Yn/("screenSpeed"in w?+w.screenSpeed/vt:+w.speed),w.maxDuration&&w.duration>w.maxDuration&&(w.duration=0),this._zooming=!0,this._rotating=Ve!==Dt,this._pitching=ir!==et,this._padding=!ee.isPaddingEqual(or),this._prepareEase(q,!1),this.terrain&&this._prepareElevation(Se),this._ease(Ua=>{let Fo=Ua*Yn,vl=1/hn(Fo);ee.zoom=Ua===1?qe:ue+ee.scaleZoom(vl),this._rotating&&(ee.bearing=a.y.number(Ve,Dt,Ua)),this._pitching&&(ee.pitch=a.y.number(et,ir,Ua)),this._padding&&(ee.interpolatePadding(yt,or,Ua),Vr=ee.centerPoint.add(kr)),this.terrain&&!w.freezeElevation&&this._updateElevation(Ua);let Us=Ua===1?Se:ee.unproject(lt.add(tt.mult(Zn(Fo))).mult(vl));ee.setLocationAtPoint(ee.renderWorldCopies?Us.wrap():Us,Vr),this._applyUpdatedTransform(ee),this._fireMoveEvents(q)},()=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(q)},w),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(w,q){var Q;if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let ee=this._onEaseEnd;delete this._onEaseEnd,ee.call(this,q)}return w||(Q=this.handlers)===null||Q===void 0||Q.stop(!1),this}_ease(w,q,Q){Q.animate===!1||Q.duration===0?(w(1),q()):(this._easeStart=l.now(),this._easeOptions=Q,this._onEaseFrame=w,this._onEaseEnd=q,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(w,q){w=a.b3(w,-180,180);let Q=Math.abs(w-q);return Math.abs(w-360-q)180?-360:Q<-180?360:0}queryTerrainElevation(w){return this.terrain?this.terrain.getElevationForLngLatZoom(a.N.convert(w),this.transform.tileZoom)-this.transform.elevation:null}}let ia={compact:!0,customAttribution:'MapLibre'};class pa{constructor(w=ia){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=q=>{!q||q.sourceDataType!=="metadata"&&q.sourceDataType!=="visibility"&&q.dataType!=="style"&&q.type!=="terrain"||this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=w}getDefaultPosition(){return"bottom-right"}onAdd(w){return this._map=w,this._compact=this.options.compact,this._container=f.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=f.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=f.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){f.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(w,q){let Q=this._map._getUIString(`AttributionControl.${q}`);w.title=Q,w.setAttribute("aria-label",Q)}_updateAttributions(){if(!this._map.style)return;let w=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?w=w.concat(this.options.customAttribution.map(ee=>typeof ee!="string"?"":ee)):typeof this.options.customAttribution=="string"&&w.push(this.options.customAttribution)),this._map.style.stylesheet){let ee=this._map.style.stylesheet;this.styleOwner=ee.owner,this.styleId=ee.id}let q=this._map.style.sourceCaches;for(let ee in q){let ue=q[ee];if(ue.used||ue.usedForTerrain){let Ve=ue.getSource();Ve.attribution&&w.indexOf(Ve.attribution)<0&&w.push(Ve.attribution)}}w=w.filter(ee=>String(ee).trim()),w.sort((ee,ue)=>ee.length-ue.length),w=w.filter((ee,ue)=>{for(let Ve=ue+1;Ve=0)return!1;return!0});let Q=w.join(" | ");Q!==this._attribHTML&&(this._attribHTML=Q,w.length?(this._innerContainer.innerHTML=Q,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class va{constructor(w={}){this._updateCompact=()=>{let q=this._container.children;if(q.length){let Q=q[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&Q.classList.add("maplibregl-compact"):Q.classList.remove("maplibregl-compact")}},this.options=w}getDefaultPosition(){return"bottom-left"}onAdd(w){this._map=w,this._compact=this.options&&this.options.compact,this._container=f.create("div","maplibregl-ctrl");let q=f.create("a","maplibregl-ctrl-logo");return q.target="_blank",q.rel="noopener nofollow",q.href="https://maplibre.org/",q.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),q.setAttribute("rel","noopener nofollow"),this._container.appendChild(q),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){f.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class zn{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(w){let q=++this._id;return this._queue.push({callback:w,id:q,cancelled:!1}),q}remove(w){let q=this._currentlyRunning,Q=q?this._queue.concat(q):this._queue;for(let ee of Q)if(ee.id===w)return void(ee.cancelled=!0)}run(w=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");let q=this._currentlyRunning=this._queue;this._queue=[];for(let Q of q)if(!Q.cancelled&&(Q.callback(w),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}var is=a.Y([{name:"a_pos3d",type:"Int16",components:3}]);class Cs extends a.E{constructor(w){super(),this.sourceCache=w,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,w.usedForTerrain=!0,w.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(w,q){this.sourceCache.update(w,q),this._renderableTilesKeys=[];let Q={};for(let ee of w.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:q}))Q[ee.key]=!0,this._renderableTilesKeys.push(ee.key),this._tiles[ee.key]||(ee.posMatrix=new Float64Array(16),a.aP(ee.posMatrix,0,a.X,0,a.X,0,1),this._tiles[ee.key]=new pt(ee,this.tileSize));for(let ee in this._tiles)Q[ee]||delete this._tiles[ee]}freeRtt(w){for(let q in this._tiles){let Q=this._tiles[q];(!w||Q.tileID.equals(w)||Q.tileID.isChildOf(w)||w.isChildOf(Q.tileID))&&(Q.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map(w=>this.getTileByID(w))}getTileByID(w){return this._tiles[w]}getTerrainCoords(w){let q={};for(let Q of this._renderableTilesKeys){let ee=this._tiles[Q].tileID;if(ee.canonical.equals(w.canonical)){let ue=w.clone();ue.posMatrix=new Float64Array(16),a.aP(ue.posMatrix,0,a.X,0,a.X,0,1),q[Q]=ue}else if(ee.canonical.isChildOf(w.canonical)){let ue=w.clone();ue.posMatrix=new Float64Array(16);let Ve=ee.canonical.z-w.canonical.z,et=ee.canonical.x-(ee.canonical.x>>Ve<>Ve<>Ve;a.aP(ue.posMatrix,0,Dt,0,Dt,0,1),a.J(ue.posMatrix,ue.posMatrix,[-et*Dt,-yt*Dt,0]),q[Q]=ue}else if(w.canonical.isChildOf(ee.canonical)){let ue=w.clone();ue.posMatrix=new Float64Array(16);let Ve=w.canonical.z-ee.canonical.z,et=w.canonical.x-(w.canonical.x>>Ve<>Ve<>Ve;a.aP(ue.posMatrix,0,a.X,0,a.X,0,1),a.J(ue.posMatrix,ue.posMatrix,[et*Dt,yt*Dt,0]),a.K(ue.posMatrix,ue.posMatrix,[1/2**Ve,1/2**Ve,0]),q[Q]=ue}}return q}getSourceTile(w,q){let Q=this.sourceCache._source,ee=w.overscaledZ-this.deltaZoom;if(ee>Q.maxzoom&&(ee=Q.maxzoom),ee=Q.minzoom&&(!ue||!ue.dem);)ue=this.sourceCache.getTileByID(w.scaledTo(ee--).key);return ue}tilesAfterTime(w=Date.now()){return Object.values(this._tiles).filter(q=>q.timeAdded>=w)}}class Ks{constructor(w,q,Q){this.painter=w,this.sourceCache=new Cs(q),this.options=Q,this.exaggeration=typeof Q.exaggeration=="number"?Q.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(w,q,Q,ee=a.X){var ue;if(!(q>=0&&q=0&&Qw.canonical.z&&(w.canonical.z>=ee?ue=w.canonical.z-ee:a.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));let Ve=w.canonical.x-(w.canonical.x>>ue<>ue<>8<<4|ue>>8,q[Ve+3]=0;let Q=new a.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(q.buffer)),ee=new m(w,Q,w.gl.RGBA,{premultiply:!1});return ee.bind(w.gl.NEAREST,w.gl.CLAMP_TO_EDGE),this._coordsTexture=ee,ee}pointCoordinate(w){this.painter.maybeDrawDepthAndCoords(!0);let q=new Uint8Array(4),Q=this.painter.context,ee=Q.gl,ue=Math.round(w.x*this.painter.pixelRatio/devicePixelRatio),Ve=Math.round(w.y*this.painter.pixelRatio/devicePixelRatio),et=Math.round(this.painter.height/devicePixelRatio);Q.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),ee.readPixels(ue,et-Ve-1,1,1,ee.RGBA,ee.UNSIGNED_BYTE,q),Q.bindFramebuffer.set(null);let yt=q[0]+(q[2]>>4<<8),Dt=q[1]+((15&q[2])<<8),ir=this.coordsIndex[255-q[3]],or=ir&&this.sourceCache.getTileByID(ir);if(!or)return null;let kr=this._coordsTextureSize,Vr=(1<w.id!==q),this._recentlyUsed.push(w.id)}stampObject(w){w.stamp=++this._stamp}getOrCreateFreeObject(){for(let q of this._recentlyUsed)if(!this._objects[q].inUse)return this._objects[q];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");let w=this._createObject(this._objects.length);return this._objects.push(w),w}freeObject(w){w.inUse=!1}freeAllObjects(){for(let w of this._objects)this.freeObject(w)}isFull(){return!(this._objects.length!w.inUse)===!1}}let xl={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class Ol{constructor(w,q){this.painter=w,this.terrain=q,this.pool=new dl(w.context,30,q.sourceCache.tileSize*q.qualityFactor)}destruct(){this.pool.destruct()}getTexture(w){return this.pool.getObjectForId(w.rtt[this._stacks.length-1].id).texture}prepareForRender(w,q){this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=w._order.filter(Q=>!w._layers[Q].isHidden(q)),this._coordsDescendingInv={};for(let Q in w.sourceCaches){this._coordsDescendingInv[Q]={};let ee=w.sourceCaches[Q].getVisibleCoordinates();for(let ue of ee){let Ve=this.terrain.sourceCache.getTerrainCoords(ue);for(let et in Ve)this._coordsDescendingInv[Q][et]||(this._coordsDescendingInv[Q][et]=[]),this._coordsDescendingInv[Q][et].push(Ve[et])}}this._coordsDescendingInvStr={};for(let Q of w._order){let ee=w._layers[Q],ue=ee.source;if(xl[ee.type]&&!this._coordsDescendingInvStr[ue]){this._coordsDescendingInvStr[ue]={};for(let Ve in this._coordsDescendingInv[ue])this._coordsDescendingInvStr[ue][Ve]=this._coordsDescendingInv[ue][Ve].map(et=>et.key).sort().join()}}for(let Q of this._renderableTiles)for(let ee in this._coordsDescendingInvStr){let ue=this._coordsDescendingInvStr[ee][Q.tileID.key];ue&&ue!==Q.rttCoords[ee]&&(Q.rtt=[])}}renderLayer(w){if(w.isHidden(this.painter.transform.zoom))return!1;let q=w.type,Q=this.painter,ee=this._renderableLayerIds[this._renderableLayerIds.length-1]===w.id;if(xl[q]&&(this._prevType&&xl[this._prevType]||this._stacks.push([]),this._prevType=q,this._stacks[this._stacks.length-1].push(w.id),!ee))return!0;if(xl[this._prevType]||xl[q]&&ee){this._prevType=q;let ue=this._stacks.length-1,Ve=this._stacks[ue]||[];for(let et of this._renderableTiles){if(this.pool.isFull()&&(as(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(et),et.rtt[ue]){let Dt=this.pool.getObjectForId(et.rtt[ue].id);if(Dt.stamp===et.rtt[ue].stamp){this.pool.useObject(Dt);continue}}let yt=this.pool.getOrCreateFreeObject();this.pool.useObject(yt),this.pool.stampObject(yt),et.rtt[ue]={id:yt.id,stamp:yt.stamp},Q.context.bindFramebuffer.set(yt.fbo.framebuffer),Q.context.clear({color:a.aM.transparent,stencil:0}),Q.currentStencilSource=void 0;for(let Dt=0;Dt{le.touchstart=le.dragStart,le.touchmoveWindow=le.dragMove,le.touchend=le.dragEnd},ja={showCompass:!0,showZoom:!0,visualizePitch:!1};class ns{constructor(w,q,Q=!1){this.mousedown=Ve=>{this.startMouse(a.e({},Ve,{ctrlKey:!0,preventDefault:()=>Ve.preventDefault()}),f.mousePos(this.element,Ve)),f.addEventListener(window,"mousemove",this.mousemove),f.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=Ve=>{this.moveMouse(Ve,f.mousePos(this.element,Ve))},this.mouseup=Ve=>{this.mouseRotate.dragEnd(Ve),this.mousePitch&&this.mousePitch.dragEnd(Ve),this.offTemp()},this.touchstart=Ve=>{Ve.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=f.touchPos(this.element,Ve.targetTouches)[0],this.startTouch(Ve,this._startPos),f.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),f.addEventListener(window,"touchend",this.touchend))},this.touchmove=Ve=>{Ve.targetTouches.length!==1?this.reset():(this._lastPos=f.touchPos(this.element,Ve.targetTouches)[0],this.moveTouch(Ve,this._lastPos))},this.touchend=Ve=>{Ve.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),this.touchRotate.reset(),this.touchPitch&&this.touchPitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10;let ee=w.dragRotate._mouseRotate.getClickTolerance(),ue=w.dragRotate._mousePitch.getClickTolerance();this.element=q,this.mouseRotate=Hs({clickTolerance:ee,enable:!0}),this.touchRotate=(({enable:Ve,clickTolerance:et,bearingDegreesPerPixelMoved:yt=.8})=>{let Dt=new cl;return new Da({clickTolerance:et,move:(ir,or)=>({bearingDelta:(or.x-ir.x)*yt}),moveStateManager:Dt,enable:Ve,assignEvents:Vl})})({clickTolerance:ee,enable:!0}),this.map=w,Q&&(this.mousePitch=Ro({clickTolerance:ue,enable:!0}),this.touchPitch=(({enable:Ve,clickTolerance:et,pitchDegreesPerPixelMoved:yt=-.5})=>{let Dt=new cl;return new Da({clickTolerance:et,move:(ir,or)=>({pitchDelta:(or.y-ir.y)*yt}),moveStateManager:Dt,enable:Ve,assignEvents:Vl})})({clickTolerance:ue,enable:!0})),f.addEventListener(q,"mousedown",this.mousedown),f.addEventListener(q,"touchstart",this.touchstart,{passive:!1}),f.addEventListener(q,"touchcancel",this.reset)}startMouse(w,q){this.mouseRotate.dragStart(w,q),this.mousePitch&&this.mousePitch.dragStart(w,q),f.disableDrag()}startTouch(w,q){this.touchRotate.dragStart(w,q),this.touchPitch&&this.touchPitch.dragStart(w,q),f.disableDrag()}moveMouse(w,q){let Q=this.map,{bearingDelta:ee}=this.mouseRotate.dragMove(w,q)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.mousePitch){let{pitchDelta:ue}=this.mousePitch.dragMove(w,q)||{};ue&&Q.setPitch(Q.getPitch()+ue)}}moveTouch(w,q){let Q=this.map,{bearingDelta:ee}=this.touchRotate.dragMove(w,q)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.touchPitch){let{pitchDelta:ue}=this.touchPitch.dragMove(w,q)||{};ue&&Q.setPitch(Q.getPitch()+ue)}}off(){let w=this.element;f.removeEventListener(w,"mousedown",this.mousedown),f.removeEventListener(w,"touchstart",this.touchstart,{passive:!1}),f.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),f.removeEventListener(window,"touchend",this.touchend),f.removeEventListener(w,"touchcancel",this.reset),this.offTemp()}offTemp(){f.enableDrag(),f.removeEventListener(window,"mousemove",this.mousemove),f.removeEventListener(window,"mouseup",this.mouseup),f.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),f.removeEventListener(window,"touchend",this.touchend)}}let Js;function cs(le,w,q){let Q=new a.N(le.lng,le.lat);if(le=new a.N(le.lng,le.lat),w){let ee=new a.N(le.lng-360,le.lat),ue=new a.N(le.lng+360,le.lat),Ve=q.locationPoint(le).distSqr(w);q.locationPoint(ee).distSqr(w)180;){let ee=q.locationPoint(le);if(ee.x>=0&&ee.y>=0&&ee.x<=q.width&&ee.y<=q.height)break;le.lng>q.center.lng?le.lng-=360:le.lng+=360}return le.lng!==Q.lng&&q.locationPoint(le).y>q.height/2-q.getHorizon()?le:Q}let sl={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function ll(le,w,q){let Q=le.classList;for(let ee in sl)Q.remove(`maplibregl-${q}-anchor-${ee}`);Q.add(`maplibregl-${q}-anchor-${w}`)}class il extends a.E{constructor(w){if(super(),this._onKeyPress=q=>{let Q=q.code,ee=q.charCode||q.keyCode;Q!=="Space"&&Q!=="Enter"&&ee!==32&&ee!==13||this.togglePopup()},this._onMapClick=q=>{let Q=q.originalEvent.target,ee=this._element;this._popup&&(Q===ee||ee.contains(Q))&&this.togglePopup()},this._update=q=>{var Q;if(!this._map)return;let ee=this._map.loaded()&&!this._map.isMoving();((q==null?void 0:q.type)==="terrain"||(q==null?void 0:q.type)==="render"&&!ee)&&this._map.once("render",this._update),this._lngLat=this._map.transform.renderWorldCopies?cs(this._lngLat,this._flatPos,this._map.transform):(Q=this._lngLat)===null||Q===void 0?void 0:Q.wrap(),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map.transform.locationPoint(this._lngLat)._add(this._offset));let ue="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?ue=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(ue=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let Ve="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?Ve="rotateX(0deg)":this._pitchAlignment==="map"&&(Ve=`rotateX(${this._map.getPitch()}deg)`),this._subpixelPositioning||q&&q.type!=="moveend"||(this._pos=this._pos.round()),f.setTransform(this._element,`${sl[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${Ve} ${ue}`),l.frameAsync(new AbortController).then(()=>{this._updateOpacity(q&&q.type==="moveend")}).catch(()=>{})},this._onMove=q=>{if(!this._isDragging){let Q=this._clickTolerance||this._map._clickTolerance;this._isDragging=q.point.dist(this._pointerdownPos)>=Q}this._isDragging&&(this._pos=q.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new a.k("dragstart"))),this.fire(new a.k("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new a.k("dragend")),this._state="inactive"},this._addDragHandler=q=>{this._element.contains(q.originalEvent.target)&&(q.preventDefault(),this._positionDelta=q.point.sub(this._pos).add(this._offset),this._pointerdownPos=q.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},this._anchor=w&&w.anchor||"center",this._color=w&&w.color||"#3FB1CE",this._scale=w&&w.scale||1,this._draggable=w&&w.draggable||!1,this._clickTolerance=w&&w.clickTolerance||0,this._subpixelPositioning=w&&w.subpixelPositioning||!1,this._isDragging=!1,this._state="inactive",this._rotation=w&&w.rotation||0,this._rotationAlignment=w&&w.rotationAlignment||"auto",this._pitchAlignment=w&&w.pitchAlignment&&w.pitchAlignment!=="auto"?w.pitchAlignment:this._rotationAlignment,this.setOpacity(),this.setOpacity(w==null?void 0:w.opacity,w==null?void 0:w.opacityWhenCovered),w&&w.element)this._element=w.element,this._offset=a.P.convert(w&&w.offset||[0,0]);else{this._defaultMarker=!0,this._element=f.create("div");let q=f.createNS("http://www.w3.org/2000/svg","svg"),Q=41,ee=27;q.setAttributeNS(null,"display","block"),q.setAttributeNS(null,"height",`${Q}px`),q.setAttributeNS(null,"width",`${ee}px`),q.setAttributeNS(null,"viewBox",`0 0 ${ee} ${Q}`);let ue=f.createNS("http://www.w3.org/2000/svg","g");ue.setAttributeNS(null,"stroke","none"),ue.setAttributeNS(null,"stroke-width","1"),ue.setAttributeNS(null,"fill","none"),ue.setAttributeNS(null,"fill-rule","evenodd");let Ve=f.createNS("http://www.w3.org/2000/svg","g");Ve.setAttributeNS(null,"fill-rule","nonzero");let et=f.createNS("http://www.w3.org/2000/svg","g");et.setAttributeNS(null,"transform","translate(3.0, 29.0)"),et.setAttributeNS(null,"fill","#000000");let yt=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(let Ge of yt){let lt=f.createNS("http://www.w3.org/2000/svg","ellipse");lt.setAttributeNS(null,"opacity","0.04"),lt.setAttributeNS(null,"cx","10.5"),lt.setAttributeNS(null,"cy","5.80029008"),lt.setAttributeNS(null,"rx",Ge.rx),lt.setAttributeNS(null,"ry",Ge.ry),et.appendChild(lt)}let Dt=f.createNS("http://www.w3.org/2000/svg","g");Dt.setAttributeNS(null,"fill",this._color);let ir=f.createNS("http://www.w3.org/2000/svg","path");ir.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),Dt.appendChild(ir);let or=f.createNS("http://www.w3.org/2000/svg","g");or.setAttributeNS(null,"opacity","0.25"),or.setAttributeNS(null,"fill","#000000");let kr=f.createNS("http://www.w3.org/2000/svg","path");kr.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),or.appendChild(kr);let Vr=f.createNS("http://www.w3.org/2000/svg","g");Vr.setAttributeNS(null,"transform","translate(6.0, 7.0)"),Vr.setAttributeNS(null,"fill","#FFFFFF");let he=f.createNS("http://www.w3.org/2000/svg","g");he.setAttributeNS(null,"transform","translate(8.0, 8.0)");let Se=f.createNS("http://www.w3.org/2000/svg","circle");Se.setAttributeNS(null,"fill","#000000"),Se.setAttributeNS(null,"opacity","0.25"),Se.setAttributeNS(null,"cx","5.5"),Se.setAttributeNS(null,"cy","5.5"),Se.setAttributeNS(null,"r","5.4999962");let qe=f.createNS("http://www.w3.org/2000/svg","circle");qe.setAttributeNS(null,"fill","#FFFFFF"),qe.setAttributeNS(null,"cx","5.5"),qe.setAttributeNS(null,"cy","5.5"),qe.setAttributeNS(null,"r","5.4999962"),he.appendChild(Se),he.appendChild(qe),Ve.appendChild(et),Ve.appendChild(Dt),Ve.appendChild(or),Ve.appendChild(Vr),Ve.appendChild(he),q.appendChild(Ve),q.setAttributeNS(null,"height",Q*this._scale+"px"),q.setAttributeNS(null,"width",ee*this._scale+"px"),this._element.appendChild(q),this._offset=a.P.convert(w&&w.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",q=>{q.preventDefault()}),this._element.addEventListener("mousedown",q=>{q.preventDefault()}),ll(this._element,this._anchor,"marker"),w&&w.className)for(let q of w.className.split(" "))this._element.classList.add(q);this._popup=null}addTo(w){return this.remove(),this._map=w,this._element.setAttribute("aria-label",w._getUIString("Marker.Title")),w.getCanvasContainer().appendChild(this._element),w.on("move",this._update),w.on("moveend",this._update),w.on("terrain",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),f.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(w){return this._lngLat=a.N.convert(w),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(w){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),w){if(!("offset"in w.options)){let ee=Math.abs(13.5)/Math.SQRT2;w.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[ee,-1*(38.1-13.5+ee)],"bottom-right":[-ee,-1*(38.1-13.5+ee)],left:[13.5,-1*(38.1-13.5)],right:[-13.5,-1*(38.1-13.5)]}:this._offset}this._popup=w,this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}setSubpixelPositioning(w){return this._subpixelPositioning=w,this}getPopup(){return this._popup}togglePopup(){let w=this._popup;return this._element.style.opacity===this._opacityWhenCovered?this:w?(w.isOpen()?w.remove():(w.setLngLat(this._lngLat),w.addTo(this._map)),this):this}_updateOpacity(w=!1){var q,Q;if(!(!((q=this._map)===null||q===void 0)&&q.terrain))return void(this._element.style.opacity!==this._opacity&&(this._element.style.opacity=this._opacity));if(w)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout(()=>{this._opacityTimeout=null},100)}let ee=this._map,ue=ee.terrain.depthAtPoint(this._pos),Ve=ee.terrain.getElevationForLngLatZoom(this._lngLat,ee.transform.tileZoom);if(ee.transform.lngLatToCameraDepth(this._lngLat,Ve)-ue<.006)return void(this._element.style.opacity=this._opacity);let et=-this._offset.y/ee.transform._pixelPerMeter,yt=Math.sin(ee.getPitch()*Math.PI/180)*et,Dt=ee.terrain.depthAtPoint(new a.P(this._pos.x,this._pos.y-this._offset.y)),ir=ee.transform.lngLatToCameraDepth(this._lngLat,Ve+yt)-Dt>.006;!((Q=this._popup)===null||Q===void 0)&&Q.isOpen()&&ir&&this._popup.remove(),this._element.style.opacity=ir?this._opacityWhenCovered:this._opacity}getOffset(){return this._offset}setOffset(w){return this._offset=a.P.convert(w),this._update(),this}addClassName(w){this._element.classList.add(w)}removeClassName(w){this._element.classList.remove(w)}toggleClassName(w){return this._element.classList.toggle(w)}setDraggable(w){return this._draggable=!!w,this._map&&(w?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(w){return this._rotation=w||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(w){return this._rotationAlignment=w||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(w){return this._pitchAlignment=w&&w!=="auto"?w:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(w,q){return w===void 0&&q===void 0&&(this._opacity="1",this._opacityWhenCovered="0.2"),w!==void 0&&(this._opacity=w),q!==void 0&&(this._opacityWhenCovered=q),this._map&&this._updateOpacity(!0),this}}let zl={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Ml=0,Rl=!1,Al={maxWidth:100,unit:"metric"};function Ll(le,w,q){let Q=q&&q.maxWidth||100,ee=le._container.clientHeight/2,ue=le.unproject([0,ee]),Ve=le.unproject([Q,ee]),et=ue.distanceTo(Ve);if(q&&q.unit==="imperial"){let yt=3.2808*et;yt>5280?ms(w,Q,yt/5280,le._getUIString("ScaleControl.Miles")):ms(w,Q,yt,le._getUIString("ScaleControl.Feet"))}else q&&q.unit==="nautical"?ms(w,Q,et/1852,le._getUIString("ScaleControl.NauticalMiles")):et>=1e3?ms(w,Q,et/1e3,le._getUIString("ScaleControl.Kilometers")):ms(w,Q,et,le._getUIString("ScaleControl.Meters"))}function ms(le,w,q,Q){let ee=function(ue){let Ve=Math.pow(10,`${Math.floor(ue)}`.length-1),et=ue/Ve;return et=et>=10?10:et>=5?5:et>=3?3:et>=2?2:et>=1?1:function(yt){let Dt=Math.pow(10,Math.ceil(-Math.log(yt)/Math.LN10));return Math.round(yt*Dt)/Dt}(et),Ve*et}(q);le.style.width=w*(ee/q)+"px",le.innerHTML=`${ee} ${Q}`}let Os={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1},Xl=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function Gl(le){if(le){if(typeof le=="number"){let w=Math.round(Math.abs(le)/Math.SQRT2);return{center:new a.P(0,0),top:new a.P(0,le),"top-left":new a.P(w,w),"top-right":new a.P(-w,w),bottom:new a.P(0,-le),"bottom-left":new a.P(w,-w),"bottom-right":new a.P(-w,-w),left:new a.P(le,0),right:new a.P(-le,0)}}if(le instanceof a.P||Array.isArray(le)){let w=a.P.convert(le);return{center:w,top:w,"top-left":w,"top-right":w,bottom:w,"bottom-left":w,"bottom-right":w,left:w,right:w}}return{center:a.P.convert(le.center||[0,0]),top:a.P.convert(le.top||[0,0]),"top-left":a.P.convert(le["top-left"]||[0,0]),"top-right":a.P.convert(le["top-right"]||[0,0]),bottom:a.P.convert(le.bottom||[0,0]),"bottom-left":a.P.convert(le["bottom-left"]||[0,0]),"bottom-right":a.P.convert(le["bottom-right"]||[0,0]),left:a.P.convert(le.left||[0,0]),right:a.P.convert(le.right||[0,0])}}return Gl(new a.P(0,0))}let Ul=o;i.AJAXError=a.bh,i.Evented=a.E,i.LngLat=a.N,i.MercatorCoordinate=a.Z,i.Point=a.P,i.addProtocol=a.bi,i.config=a.a,i.removeProtocol=a.bj,i.AttributionControl=pa,i.BoxZoomHandler=ss,i.CanvasSource=St,i.CooperativeGesturesHandler=hi,i.DoubleClickZoomHandler=gi,i.DragPanHandler=Ji,i.DragRotateHandler=Fn,i.EdgeInsets=Vo,i.FullscreenControl=class extends a.E{constructor(le={}){super(),this._onFullscreenChange=()=>{var w;let q=window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement;for(;!((w=q==null?void 0:q.shadowRoot)===null||w===void 0)&&w.fullscreenElement;)q=q.shadowRoot.fullscreenElement;q===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,le&&le.container&&(le.container instanceof HTMLElement?this._container=le.container:a.w("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(le){return this._map=le,this._container||(this._container=this._map.getContainer()),this._controlContainer=f.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){f.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let le=this._fullscreenButton=f.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);f.create("span","maplibregl-ctrl-icon",le).setAttribute("aria-hidden","true"),le.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let le=this._getTitle();this._fullscreenButton.setAttribute("aria-label",le),this._fullscreenButton.title=le}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new a.k("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new a.k("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},i.GeoJSONSource=nt,i.GeolocateControl=class extends a.E{constructor(le){super(),this._onSuccess=w=>{if(this._map){if(this._isOutOfMapMaxBounds(w))return this._setErrorState(),this.fire(new a.k("outofmaxbounds",w)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=w,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(w),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(w),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new a.k("geolocate",w)),this._finish()}},this._updateCamera=w=>{let q=new a.N(w.coords.longitude,w.coords.latitude),Q=w.coords.accuracy,ee=this._map.getBearing(),ue=a.e({bearing:ee},this.options.fitBoundsOptions),Ve=ce.fromLngLat(q,Q);this._map.fitBounds(Ve,ue,{geolocateSource:!0})},this._updateMarker=w=>{if(w){let q=new a.N(w.coords.longitude,w.coords.latitude);this._accuracyCircleMarker.setLngLat(q).addTo(this._map),this._userLocationDotMarker.setLngLat(q).addTo(this._map),this._accuracy=w.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onZoom=()=>{this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},this._onError=w=>{if(this._map){if(this.options.trackUserLocation)if(w.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let q=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=q,this._geolocateButton.setAttribute("aria-label",q),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(w.code===3&&Rl)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new a.k("error",w)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",w=>w.preventDefault()),this._geolocateButton=f.create("button","maplibregl-ctrl-geolocate",this._container),f.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=w=>{if(this._map){if(w===!1){a.w("Geolocation support is not available so the GeolocateControl will be disabled.");let q=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=q,this._geolocateButton.setAttribute("aria-label",q)}else{let q=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=q,this._geolocateButton.setAttribute("aria-label",q)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=f.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new il({element:this._dotElement}),this._circleElement=f.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new il({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",q=>{q.geolocateSource||this._watchState!=="ACTIVE_LOCK"||q.originalEvent&&q.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new a.k("trackuserlocationend")),this.fire(new a.k("userlocationlostfocus")))})}},this.options=a.e({},zl,le)}onAdd(le){return this._map=le,this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),function(){return a._(this,arguments,void 0,function*(w=!1){if(Js!==void 0&&!w)return Js;if(window.navigator.permissions===void 0)return Js=!!window.navigator.geolocation,Js;try{Js=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch(q){Js=!!window.navigator.geolocation}return Js})}().then(w=>this._finishSetupUI(w)),this._container}onRemove(){this._geolocationWatchID!==void 0&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),f.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Ml=0,Rl=!1}_isOutOfMapMaxBounds(le){let w=this._map.getMaxBounds(),q=le.coords;return w&&(q.longitudew.getEast()||q.latitudew.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadius(){let le=this._map.getBounds(),w=le.getSouthEast(),q=le.getNorthEast(),Q=w.distanceTo(q),ee=Math.ceil(this._accuracy/(Q/this._map._container.clientHeight)*2);this._circleElement.style.width=`${ee}px`,this._circleElement.style.height=`${ee}px`}trigger(){if(!this._setup)return a.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new a.k("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Ml--,Rl=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new a.k("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new a.k("trackuserlocationstart")),this.fire(new a.k("userlocationfocus"));break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let le;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Ml++,Ml>1?(le={maximumAge:6e5,timeout:0},Rl=!0):(le=this.options.positionOptions,Rl=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,le)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},i.Hash=ks,i.ImageSource=kt,i.KeyboardHandler=Vt,i.LngLatBounds=ce,i.LogoControl=va,i.Map=class extends ya{constructor(le){a.bf.mark(a.bg.create);let w=Object.assign(Object.assign({},Zl),le);if(w.minZoom!=null&&w.maxZoom!=null&&w.minZoom>w.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(w.minPitch!=null&&w.maxPitch!=null&&w.minPitch>w.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(w.minPitch!=null&&w.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(w.maxPitch!=null&&w.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new Lo(w.minZoom,w.maxZoom,w.minPitch,w.maxPitch,w.renderWorldCopies),{bearingSnap:w.bearingSnap}),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new zn,this._controls=[],this._mapId=a.a4(),this._contextLost=q=>{q.preventDefault(),this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this.fire(new a.k("webglcontextlost",{originalEvent:q}))},this._contextRestored=q=>{this._setupPainter(),this.resize(),this._update(),this.fire(new a.k("webglcontextrestored",{originalEvent:q}))},this._onMapScroll=q=>{if(q.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=w.interactive,this._maxTileCacheSize=w.maxTileCacheSize,this._maxTileCacheZoomLevels=w.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=w.failIfMajorPerformanceCaveat===!0,this._preserveDrawingBuffer=w.preserveDrawingBuffer===!0,this._antialias=w.antialias===!0,this._trackResize=w.trackResize===!0,this._bearingSnap=w.bearingSnap,this._refreshExpiredTiles=w.refreshExpiredTiles===!0,this._fadeDuration=w.fadeDuration,this._crossSourceCollisions=w.crossSourceCollisions===!0,this._collectResourceTiming=w.collectResourceTiming===!0,this._locale=Object.assign(Object.assign({},bl),w.locale),this._clickTolerance=w.clickTolerance,this._overridePixelRatio=w.pixelRatio,this._maxCanvasSize=w.maxCanvasSize,this.transformCameraUpdate=w.transformCameraUpdate,this.cancelPendingTileRequestsWhileZooming=w.cancelPendingTileRequestsWhileZooming===!0,this._imageQueueHandle=v.addThrottleControl(()=>this.isMoving()),this._requestManager=new k(w.transformRequest),typeof w.container=="string"){if(this._container=document.getElementById(w.container),!this._container)throw new Error(`Container '${w.container}' not found.`)}else{if(!(w.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=w.container}if(w.maxBounds&&this.setMaxBounds(w.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",()=>this._update(!1)).on("moveend",()=>this._update(!1)).on("zoom",()=>this._update(!0)).on("terrain",()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)}).once("idle",()=>{this._idleTriggered=!0}),typeof window!="undefined"){addEventListener("online",this._onWindowOnline,!1);let q=!1,Q=xs(ee=>{this._trackResize&&!this._removed&&(this.resize(ee),this.redraw())},50);this._resizeObserver=new ResizeObserver(ee=>{q?Q(ee):q=!0}),this._resizeObserver.observe(this._container)}this.handlers=new ta(this,w),this._hash=w.hash&&new ks(typeof w.hash=="string"&&w.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:w.center,zoom:w.zoom,bearing:w.bearing,pitch:w.pitch}),w.bounds&&(this.resize(),this.fitBounds(w.bounds,a.e({},w.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=w.localIdeographFontFamily,this._validateStyle=w.validateStyle,w.style&&this.setStyle(w.style,{localIdeographFontFamily:w.localIdeographFontFamily}),w.attributionControl&&this.addControl(new pa(typeof w.attributionControl=="boolean"?void 0:w.attributionControl)),w.maplibreLogo&&this.addControl(new va,w.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",q=>{this._update(q.dataType==="style"),this.fire(new a.k(`${q.dataType}data`,q))}),this.on("dataloading",q=>{this.fire(new a.k(`${q.dataType}dataloading`,q))}),this.on("dataabort",q=>{this.fire(new a.k("sourcedataabort",q))})}_getMapId(){return this._mapId}addControl(le,w){if(w===void 0&&(w=le.getDefaultPosition?le.getDefaultPosition():"top-right"),!le||!le.onAdd)return this.fire(new a.j(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let q=le.onAdd(this);this._controls.push(le);let Q=this._controlPositions[w];return w.indexOf("bottom")!==-1?Q.insertBefore(q,Q.firstChild):Q.appendChild(q),this}removeControl(le){if(!le||!le.onRemove)return this.fire(new a.j(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let w=this._controls.indexOf(le);return w>-1&&this._controls.splice(w,1),le.onRemove(this),this}hasControl(le){return this._controls.indexOf(le)>-1}calculateCameraOptionsFromTo(le,w,q,Q){return Q==null&&this.terrain&&(Q=this.terrain.getElevationForLngLatZoom(q,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(le,w,q,Q)}resize(le){var w;let q=this._containerDimensions(),Q=q[0],ee=q[1],ue=this._getClampedPixelRatio(Q,ee);if(this._resizeCanvas(Q,ee,ue),this.painter.resize(Q,ee,ue),this.painter.overLimit()){let et=this.painter.context.gl;this._maxCanvasSize=[et.drawingBufferWidth,et.drawingBufferHeight];let yt=this._getClampedPixelRatio(Q,ee);this._resizeCanvas(Q,ee,yt),this.painter.resize(Q,ee,yt)}this.transform.resize(Q,ee),(w=this._requestedCameraState)===null||w===void 0||w.resize(Q,ee);let Ve=!this._moving;return Ve&&(this.stop(),this.fire(new a.k("movestart",le)).fire(new a.k("move",le))),this.fire(new a.k("resize",le)),Ve&&this.fire(new a.k("moveend",le)),this}_getClampedPixelRatio(le,w){let{0:q,1:Q}=this._maxCanvasSize,ee=this.getPixelRatio(),ue=le*ee,Ve=w*ee;return Math.min(ue>q?q/ue:1,Ve>Q?Q/Ve:1)*ee}getPixelRatio(){var le;return(le=this._overridePixelRatio)!==null&&le!==void 0?le:devicePixelRatio}setPixelRatio(le){this._overridePixelRatio=le,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(le){return this.transform.setMaxBounds(ce.convert(le)),this._update()}setMinZoom(le){if((le=le==null?-2:le)>=-2&&le<=this.transform.maxZoom)return this.transform.minZoom=le,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=le,this._update(),this.getZoom()>le&&this.setZoom(le),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(le){if((le=le==null?0:le)<0)throw new Error("minPitch must be greater than or equal to 0");if(le>=0&&le<=this.transform.maxPitch)return this.transform.minPitch=le,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(le>=this.transform.minPitch)return this.transform.maxPitch=le,this._update(),this.getPitch()>le&&this.setPitch(le),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(le){return this.transform.renderWorldCopies=le,this._update()}project(le){return this.transform.locationPoint(a.N.convert(le),this.style&&this.terrain)}unproject(le){return this.transform.pointLocation(a.P.convert(le),this.terrain)}isMoving(){var le;return this._moving||((le=this.handlers)===null||le===void 0?void 0:le.isMoving())}isZooming(){var le;return this._zooming||((le=this.handlers)===null||le===void 0?void 0:le.isZooming())}isRotating(){var le;return this._rotating||((le=this.handlers)===null||le===void 0?void 0:le.isRotating())}_createDelegatedListener(le,w,q){if(le==="mouseenter"||le==="mouseover"){let Q=!1;return{layers:w,listener:q,delegates:{mousemove:ue=>{let Ve=w.filter(yt=>this.getLayer(yt)),et=Ve.length!==0?this.queryRenderedFeatures(ue.point,{layers:Ve}):[];et.length?Q||(Q=!0,q.call(this,new Aa(le,this,ue.originalEvent,{features:et}))):Q=!1},mouseout:()=>{Q=!1}}}}if(le==="mouseleave"||le==="mouseout"){let Q=!1;return{layers:w,listener:q,delegates:{mousemove:Ve=>{let et=w.filter(yt=>this.getLayer(yt));(et.length!==0?this.queryRenderedFeatures(Ve.point,{layers:et}):[]).length?Q=!0:Q&&(Q=!1,q.call(this,new Aa(le,this,Ve.originalEvent)))},mouseout:Ve=>{Q&&(Q=!1,q.call(this,new Aa(le,this,Ve.originalEvent)))}}}}{let Q=ee=>{let ue=w.filter(et=>this.getLayer(et)),Ve=ue.length!==0?this.queryRenderedFeatures(ee.point,{layers:ue}):[];Ve.length&&(ee.features=Ve,q.call(this,ee),delete ee.features)};return{layers:w,listener:q,delegates:{[le]:Q}}}}_saveDelegatedListener(le,w){this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[le]=this._delegatedListeners[le]||[],this._delegatedListeners[le].push(w)}_removeDelegatedListener(le,w,q){if(!this._delegatedListeners||!this._delegatedListeners[le])return;let Q=this._delegatedListeners[le];for(let ee=0;eew.includes(Ve))){for(let Ve in ue.delegates)this.off(Ve,ue.delegates[Ve]);return void Q.splice(ee,1)}}}on(le,w,q){if(q===void 0)return super.on(le,w);let Q=this._createDelegatedListener(le,typeof w=="string"?[w]:w,q);this._saveDelegatedListener(le,Q);for(let ee in Q.delegates)this.on(ee,Q.delegates[ee]);return this}once(le,w,q){if(q===void 0)return super.once(le,w);let Q=typeof w=="string"?[w]:w,ee=this._createDelegatedListener(le,Q,q);for(let ue in ee.delegates){let Ve=ee.delegates[ue];ee.delegates[ue]=(...et)=>{this._removeDelegatedListener(le,Q,q),Ve(...et)}}this._saveDelegatedListener(le,ee);for(let ue in ee.delegates)this.once(ue,ee.delegates[ue]);return this}off(le,w,q){return q===void 0?super.off(le,w):(this._removeDelegatedListener(le,typeof w=="string"?[w]:w,q),this)}queryRenderedFeatures(le,w){if(!this.style)return[];let q,Q=le instanceof a.P||Array.isArray(le),ee=Q?le:[[0,0],[this.transform.width,this.transform.height]];if(w=w||(Q?{}:le)||{},ee instanceof a.P||typeof ee[0]=="number")q=[a.P.convert(ee)];else{let ue=a.P.convert(ee[0]),Ve=a.P.convert(ee[1]);q=[ue,new a.P(Ve.x,ue.y),Ve,new a.P(ue.x,Ve.y),ue]}return this.style.queryRenderedFeatures(q,w,this.transform)}querySourceFeatures(le,w){return this.style.querySourceFeatures(le,w)}setStyle(le,w){return(w=a.e({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},w)).diff!==!1&&w.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&le?(this._diffStyle(le,w),this):(this._localIdeographFontFamily=w.localIdeographFontFamily,this._updateStyle(le,w))}setTransformRequest(le){return this._requestManager.setTransformRequest(le),this}_getUIString(le){let w=this._locale[le];if(w==null)throw new Error(`Missing UI string '${le}'`);return w}_updateStyle(le,w){if(w.transformStyle&&this.style&&!this.style._loaded)return void this.style.once("style.load",()=>this._updateStyle(le,w));let q=this.style&&w.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!le)),le?(this.style=new xn(this,w||{}),this.style.setEventedParent(this,{style:this.style}),typeof le=="string"?this.style.loadURL(le,w,q):this.style.loadJSON(le,w,q),this):(delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new xn(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(le,w){if(typeof le=="string"){let q=this._requestManager.transformRequest(le,"Style");a.h(q,new AbortController).then(Q=>{this._updateDiff(Q.data,w)}).catch(Q=>{Q&&this.fire(new a.j(Q))})}else typeof le=="object"&&this._updateDiff(le,w)}_updateDiff(le,w){try{this.style.setState(le,w)&&this._update(!0)}catch(q){a.w(`Unable to perform style diff: ${q.message||q.error||q}. Rebuilding the style from scratch.`),this._updateStyle(le,w)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():a.w("There is no style added to the map.")}addSource(le,w){return this._lazyInitEmptyStyle(),this.style.addSource(le,w),this._update(!0)}isSourceLoaded(le){let w=this.style&&this.style.sourceCaches[le];if(w!==void 0)return w.loaded();this.fire(new a.j(new Error(`There is no source with ID '${le}'`)))}setTerrain(le){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),le){let w=this.style.sourceCaches[le.source];if(!w)throw new Error(`cannot load terrain, because there exists no source with ID: ${le.source}`);this.terrain===null&&w.reload();for(let q in this.style._layers){let Q=this.style._layers[q];Q.type==="hillshade"&&Q.source===le.source&&a.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new Ks(this.painter,w,le),this.painter.renderToTexture=new Ol(this.painter,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=q=>{q.dataType==="style"?this.terrain.sourceCache.freeRtt():q.dataType==="source"&&q.tile&&(q.sourceId!==le.source||this._elevationFreeze||(this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.terrain.sourceCache.freeRtt(q.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform.minElevationForCurrentTile=0,this.transform.elevation=0;return this.fire(new a.k("terrain",{terrain:le})),this}getTerrain(){var le,w;return(w=(le=this.terrain)===null||le===void 0?void 0:le.options)!==null&&w!==void 0?w:null}areTilesLoaded(){let le=this.style&&this.style.sourceCaches;for(let w in le){let q=le[w]._tiles;for(let Q in q){let ee=q[Q];if(ee.state!=="loaded"&&ee.state!=="errored")return!1}}return!0}removeSource(le){return this.style.removeSource(le),this._update(!0)}getSource(le){return this.style.getSource(le)}addImage(le,w,q={}){let{pixelRatio:Q=1,sdf:ee=!1,stretchX:ue,stretchY:Ve,content:et,textFitWidth:yt,textFitHeight:Dt}=q;if(this._lazyInitEmptyStyle(),!(w instanceof HTMLImageElement||a.b(w))){if(w.width===void 0||w.height===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{let{width:ir,height:or,data:kr}=w,Vr=w;return this.style.addImage(le,{data:new a.R({width:ir,height:or},new Uint8Array(kr)),pixelRatio:Q,stretchX:ue,stretchY:Ve,content:et,textFitWidth:yt,textFitHeight:Dt,sdf:ee,version:0,userImage:Vr}),Vr.onAdd&&Vr.onAdd(this,le),this}}{let{width:ir,height:or,data:kr}=l.getImageData(w);this.style.addImage(le,{data:new a.R({width:ir,height:or},kr),pixelRatio:Q,stretchX:ue,stretchY:Ve,content:et,textFitWidth:yt,textFitHeight:Dt,sdf:ee,version:0})}}updateImage(le,w){let q=this.style.getImage(le);if(!q)return this.fire(new a.j(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let Q=w instanceof HTMLImageElement||a.b(w)?l.getImageData(w):w,{width:ee,height:ue,data:Ve}=Q;if(ee===void 0||ue===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(ee!==q.data.width||ue!==q.data.height)return this.fire(new a.j(new Error("The width and height of the updated image must be that same as the previous version of the image")));let et=!(w instanceof HTMLImageElement||a.b(w));return q.data.replace(Ve,et),this.style.updateImage(le,q),this}getImage(le){return this.style.getImage(le)}hasImage(le){return le?!!this.style.getImage(le):(this.fire(new a.j(new Error("Missing required image id"))),!1)}removeImage(le){this.style.removeImage(le)}loadImage(le){return v.getImage(this._requestManager.transformRequest(le,"Image"),new AbortController)}listImages(){return this.style.listImages()}addLayer(le,w){return this._lazyInitEmptyStyle(),this.style.addLayer(le,w),this._update(!0)}moveLayer(le,w){return this.style.moveLayer(le,w),this._update(!0)}removeLayer(le){return this.style.removeLayer(le),this._update(!0)}getLayer(le){return this.style.getLayer(le)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(le,w,q){return this.style.setLayerZoomRange(le,w,q),this._update(!0)}setFilter(le,w,q={}){return this.style.setFilter(le,w,q),this._update(!0)}getFilter(le){return this.style.getFilter(le)}setPaintProperty(le,w,q,Q={}){return this.style.setPaintProperty(le,w,q,Q),this._update(!0)}getPaintProperty(le,w){return this.style.getPaintProperty(le,w)}setLayoutProperty(le,w,q,Q={}){return this.style.setLayoutProperty(le,w,q,Q),this._update(!0)}getLayoutProperty(le,w){return this.style.getLayoutProperty(le,w)}setGlyphs(le,w={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(le,w),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(le,w,q={}){return this._lazyInitEmptyStyle(),this.style.addSprite(le,w,q,Q=>{Q||this._update(!0)}),this}removeSprite(le){return this._lazyInitEmptyStyle(),this.style.removeSprite(le),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(le,w={}){return this._lazyInitEmptyStyle(),this.style.setSprite(le,w,q=>{q||this._update(!0)}),this}setLight(le,w={}){return this._lazyInitEmptyStyle(),this.style.setLight(le,w),this._update(!0)}getLight(){return this.style.getLight()}setSky(le){return this._lazyInitEmptyStyle(),this.style.setSky(le),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(le,w){return this.style.setFeatureState(le,w),this._update()}removeFeatureState(le,w){return this.style.removeFeatureState(le,w),this._update()}getFeatureState(le){return this.style.getFeatureState(le)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let le=0,w=0;return this._container&&(le=this._container.clientWidth||400,w=this._container.clientHeight||300),[le,w]}_setupContainer(){let le=this._container;le.classList.add("maplibregl-map");let w=this._canvasContainer=f.create("div","maplibregl-canvas-container",le);this._interactive&&w.classList.add("maplibregl-interactive"),this._canvas=f.create("canvas","maplibregl-canvas",w),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region");let q=this._containerDimensions(),Q=this._getClampedPixelRatio(q[0],q[1]);this._resizeCanvas(q[0],q[1],Q);let ee=this._controlContainer=f.create("div","maplibregl-control-container",le),ue=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(Ve=>{ue[Ve]=f.create("div",`maplibregl-ctrl-${Ve} `,ee)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(le,w,q){this._canvas.width=Math.floor(q*le),this._canvas.height=Math.floor(q*w),this._canvas.style.width=`${le}px`,this._canvas.style.height=`${w}px`}_setupPainter(){let le={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1},w=null;this._canvas.addEventListener("webglcontextcreationerror",Q=>{w={requestedAttributes:le},Q&&(w.statusMessage=Q.statusMessage,w.type=Q.type)},{once:!0});let q=this._canvas.getContext("webgl2",le)||this._canvas.getContext("webgl",le);if(!q){let Q="Failed to initialize WebGL";throw w?(w.message=Q,new Error(JSON.stringify(w))):new Error(Q)}this.painter=new Qs(q,this.transform),c.testSupport(q)}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(le){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||le,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(le){return this._update(),this._renderTaskQueue.add(le)}_cancelRenderFrame(le){this._renderTaskQueue.remove(le)}_render(le){let w=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(le),this._removed)return;let q=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let ee=this.transform.zoom,ue=l.now();this.style.zoomHistory.update(ee,ue);let Ve=new a.z(ee,{now:ue,fadeDuration:w,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),et=Ve.crossFadingFactor();et===1&&et===this._crossFadingFactor||(q=!0,this._crossFadingFactor=et),this.style.update(Ve)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform.minElevationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,w,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:w,showPadding:this.showPadding}),this.fire(new a.k("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,a.bf.mark(a.bg.load),this.fire(new a.k("load"))),this.style&&(this.style.hasTransitions()||q)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let Q=this._sourcesDirty||this._styleDirty||this._placementDirty;return Q||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new a.k("idle")),!this._loaded||this._fullyLoaded||Q||(this._fullyLoaded=!0,a.bf.mark(a.bg.fullLoad)),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._render(0)),this}remove(){var le;this._hash&&this._hash.remove();for(let q of this._controls)q.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window!="undefined"&&removeEventListener("online",this._onWindowOnline,!1),v.removeThrottleControl(this._imageQueueHandle),(le=this._resizeObserver)===null||le===void 0||le.disconnect();let w=this.painter.context.gl.getExtension("WEBGL_lose_context");w!=null&&w.loseContext&&w.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),f.remove(this._canvasContainer),f.remove(this._controlContainer),this._container.classList.remove("maplibregl-map"),a.bf.clearMetrics(),this._removed=!0,this.fire(new a.k("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,l.frameAsync(this._frameRequest).then(le=>{a.bf.frame(le),this._frameRequest=null,this._render(le)}).catch(()=>{}))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(le){this._showTileBoundaries!==le&&(this._showTileBoundaries=le,this._update())}get showPadding(){return!!this._showPadding}set showPadding(le){this._showPadding!==le&&(this._showPadding=le,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(le){this._showCollisionBoxes!==le&&(this._showCollisionBoxes=le,le?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(le){this._showOverdrawInspector!==le&&(this._showOverdrawInspector=le,this._update())}get repaint(){return!!this._repaint}set repaint(le){this._repaint!==le&&(this._repaint=le,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(le){this._vertices=le,this._update()}get version(){return eu}getCameraTargetElevation(){return this.transform.elevation}},i.MapMouseEvent=Aa,i.MapTouchEvent=os,i.MapWheelEvent=_l,i.Marker=il,i.NavigationControl=class{constructor(le){this._updateZoomButtons=()=>{let w=this._map.getZoom(),q=w===this._map.getMaxZoom(),Q=w===this._map.getMinZoom();this._zoomInButton.disabled=q,this._zoomOutButton.disabled=Q,this._zoomInButton.setAttribute("aria-disabled",q.toString()),this._zoomOutButton.setAttribute("aria-disabled",Q.toString())},this._rotateCompassArrow=()=>{let w=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=w},this._setButtonTitle=(w,q)=>{let Q=this._map._getUIString(`NavigationControl.${q}`);w.title=Q,w.setAttribute("aria-label",Q)},this.options=a.e({},ja,le),this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",w=>w.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",w=>this._map.zoomIn({},{originalEvent:w})),f.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",w=>this._map.zoomOut({},{originalEvent:w})),f.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",w=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:w}):this._map.resetNorth({},{originalEvent:w})}),this._compassIcon=f.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(le){return this._map=le,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new ns(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){f.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(le,w){let q=f.create("button",le,this._container);return q.type="button",q.addEventListener("click",w),q}},i.Popup=class extends a.E{constructor(le){super(),this.remove=()=>(this._content&&f.remove(this._content),this._container&&(f.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new a.k("close"))),this),this._onMouseUp=w=>{this._update(w.point)},this._onMouseMove=w=>{this._update(w.point)},this._onDrag=w=>{this._update(w.point)},this._update=w=>{var q;if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=f.create("div","maplibregl-popup",this._map.getContainer()),this._tip=f.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let et of this.options.className.split(" "))this._container.classList.add(et);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=this._map.transform.renderWorldCopies&&!this._trackPointer?cs(this._lngLat,this._flatPos,this._map.transform):(q=this._lngLat)===null||q===void 0?void 0:q.wrap(),this._trackPointer&&!w)return;let Q=this._flatPos=this._pos=this._trackPointer&&w?w:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&w?w:this._map.transform.locationPoint(this._lngLat));let ee=this.options.anchor,ue=Gl(this.options.offset);if(!ee){let et=this._container.offsetWidth,yt=this._container.offsetHeight,Dt;Dt=Q.y+ue.bottom.ythis._map.transform.height-yt?["bottom"]:[],Q.xthis._map.transform.width-et/2&&Dt.push("right"),ee=Dt.length===0?"bottom":Dt.join("-")}let Ve=Q.add(ue[ee]);this.options.subpixelPositioning||(Ve=Ve.round()),f.setTransform(this._container,`${sl[ee]} translate(${Ve.x}px,${Ve.y}px)`),ll(this._container,ee,"popup")},this._onClose=()=>{this.remove()},this.options=a.e(Object.create(Os),le)}addTo(le){return this._map&&this.remove(),this._map=le,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new a.k("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(le){return this._lngLat=a.N.convert(le),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(le){return this.setDOMContent(document.createTextNode(le))}setHTML(le){let w=document.createDocumentFragment(),q=document.createElement("body"),Q;for(q.innerHTML=le;Q=q.firstChild,Q;)w.appendChild(Q);return this.setDOMContent(w)}getMaxWidth(){var le;return(le=this._container)===null||le===void 0?void 0:le.style.maxWidth}setMaxWidth(le){return this.options.maxWidth=le,this._update(),this}setDOMContent(le){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=f.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(le),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(le){return this._container&&this._container.classList.add(le),this}removeClassName(le){return this._container&&this._container.classList.remove(le),this}setOffset(le){return this.options.offset=le,this._update(),this}toggleClassName(le){if(this._container)return this._container.classList.toggle(le)}setSubpixelPositioning(le){this.options.subpixelPositioning=le}_createCloseButton(){this.options.closeButton&&(this._closeButton=f.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let le=this._container.querySelector(Xl);le&&le.focus()}},i.RasterDEMTileSource=Nt,i.RasterTileSource=bt,i.ScaleControl=class{constructor(le){this._onMove=()=>{Ll(this._map,this._container,this.options)},this.setUnit=w=>{this.options.unit=w,Ll(this._map,this._container,this.options)},this.options=Object.assign(Object.assign({},Al),le)}getDefaultPosition(){return"bottom-left"}onAdd(le){return this._map=le,this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-scale",le.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){f.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}},i.ScrollZoomHandler=Fr,i.Style=xn,i.TerrainControl=class{constructor(le){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=le}onAdd(le){return this._map=le,this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=f.create("button","maplibregl-ctrl-terrain",this._container),f.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){f.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},i.TwoFingersTouchPitchHandler=Bs,i.TwoFingersTouchRotateHandler=Rs,i.TwoFingersTouchZoomHandler=Ms,i.TwoFingersTouchZoomRotateHandler=Pi,i.VectorTileSource=it,i.VideoSource=At,i.addSourceType=(le,w)=>a._(void 0,void 0,void 0,function*(){if(Zt(le))throw new Error(`A source type called "${le}" already exists.`);((q,Q)=>{Bt[q]=Q})(le,w)}),i.clearPrewarmedResources=function(){let le=de;le&&(le.isPreloaded()&&le.numActive()===1?(le.release(be),de=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},i.getMaxParallelImageRequests=function(){return a.a.MAX_PARALLEL_IMAGE_REQUESTS},i.getRTLTextPluginStatus=function(){return dt().getRTLTextPluginStatus()},i.getVersion=function(){return Ul},i.getWorkerCount=function(){return Pe.workerCount},i.getWorkerUrl=function(){return a.a.WORKER_URL},i.importScriptInWorkers=function(le){return Me().broadcast("IS",le)},i.prewarm=function(){ke().acquire(be)},i.setMaxParallelImageRequests=function(le){a.a.MAX_PARALLEL_IMAGE_REQUESTS=le},i.setRTLTextPlugin=function(le,w){return dt().setRTLTextPlugin(le,w)},i.setWorkerCount=function(le){Pe.workerCount=le},i.setWorkerUrl=function(le){a.a.WORKER_URL=le}});var n=e;return n})});var kWe=Te((c2r,EWe)=>{"use strict";var iw=ei(),UXt=Zf().sanitizeHTML,VXt=zJ(),TWe=wx();function SWe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=TWe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var am=SWe.prototype;am.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=mB(t)};am.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};am.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};am.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};am.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};am.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};am.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!mB(e)){var r=GXt(e);t.addSource(this.idSource,r)}};am.findFollowingMapLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function MWe(e){var t={},r={};switch(e.type){case"circle":iw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":iw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":iw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=VXt(n.textposition,n.iconsize);iw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),iw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":iw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function GXt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=UXt(e.sourceattribution)),n}EWe.exports=function(t,r,n){var i=new SWe(t,r);return i.update(n),i}});var FWe=Te((h2r,DWe)=>{"use strict";var OJ=AWe(),qJ=ei(),PWe=nx(),CWe=$l(),HXt=wu(),WXt=gp(),yB=jc(),zWe=Sm(),jXt=zWe.drawMode,XXt=zWe.selectMode,ZXt=nh().prepSelect,YXt=nh().clearOutline,KXt=nh().clearSelectionsCache,JXt=nh().selectOnClick,nw=wx(),$Xt=kWe();function IWe(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Wh=IWe.prototype;Wh.plot=function(e,t,r){var n=this,i;n.map?i=new Promise(function(a,o){n.updateMap(e,t,a,o)}):i=new Promise(function(a,o){n.createMap(e,t,a,o)}),r.push(i)};Wh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=RWe(a.style),s=a.bounds,u=s?[[s.west,s.south],[s.east,s.north]]:null,l=i.map=new OJ.Map({container:i.div,style:o.style,center:NJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:u,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new OJ.AttributionControl({compact:!0})),f={};l.on("styleimagemissing",function(h){var d=h.id;if(!f[d]&&d.includes("-15")){f[d]=!0;var p=new Image(15,15);p.onload=function(){l.addImage(d,p)},p.crossOrigin="Anonymous",p.src="https://unpkg.com/maki@2.1.0/icons/"+d+".svg"}}),l.setTransformRequest(function(h){return h=h.replace("https://fonts.openmaptiles.org/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://tiles.basemaps.cartocdn.com/fonts/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular","https://fonts.openmaptiles.org/Klokantech Noto Sans Regular"),{url:h}}),l._canvas.style.left="0px",l._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var c=[];c.push(new Promise(function(h){l.once("load",h)})),c=c.concat(PWe.fetchTraceGeoData(e)),Promise.all(c).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Wh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],u=RWe(o.style);JSON.stringify(i.styleObj)!==JSON.stringify(u)&&(i.styleObj=u,a.setStyle(u.style),i.traceHash={},s.push(new Promise(function(l){a.once("styledata",l)}))),s=s.concat(PWe.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Wh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&JXt(u.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),l.indexOf("event")>-1&&yB.click(n,u.originalEvent)}}};Wh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(u){var l=t.map.unproject(u);return[l.lng,l.lat]}var a=e.dragmode,o;o=function(u,l){if(l.isRect){var f=u.range={};f[t.id]=[i([l.xmin,l.ymin]),i([l.xmax,l.ymax])]}else{var c=u.lassoPoints={};c[t.id]=l.map(i)}};var s=t.dragOptions;t.dragOptions=qJ.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),XXt(a)||jXt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(u,l,f){ZXt(u,l,f,t.dragOptions,a)},WXt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Wh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Wh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var UJ=ei(),eZt=C_(),tZt=Jd(),BWe=Nk();OWe.exports=function(t,r,n){eZt(t,r,n,{type:"map",attributes:BWe,handleDefaults:rZt,partition:"y"})};function rZt(e,t,r){r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var n=r("bounds.west"),i=r("bounds.east"),a=r("bounds.south"),o=r("bounds.north");(n===void 0||i===void 0||a===void 0||o===void 0)&&delete t.bounds,tZt(e,t,{name:"layers",handleItemDefaults:iZt}),t._input=e}function iZt(e,t){function r(u,l){return UJ.coerce(e,t,BWe.layers,u,l)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",UJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),UJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var _B=Te(l0=>{"use strict";var gB=ei(),NWe=gB.strTranslate,nZt=gB.strScale,aZt=Rd().getSubplotCalcData,oZt=jv(),sZt=Jl(),UWe=Mu(),lZt=Zf(),uZt=FWe(),Ax="map";l0.name=Ax;l0.attr="subplot";l0.idRoot=Ax;l0.idRegex=l0.attrRegex=gB.counterRegex(Ax);l0.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}};l0.layoutAttributes=Nk();l0.supplyLayoutDefaults=qWe();l0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[Ax],a=0;ax/2){var b=c.split("|").join("
");d.text(b).attr("data-unformatted",b).call(lZt.convertToTspans,e),p=UWe.bBox(d.node())}d.attr("transform",NWe(-3,-p.height+8)),h.insert("rect",".static-attribution").attr({x:-p.width-6,y:-p.height-3,width:p.width+6,height:p.height+3,fill:"rgba(255, 255, 255, 0.75)"});var v=1;p.width+6>x&&(v=x/(p.width+6));var k=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];h.attr("transform",NWe(k[0],k[1])+nZt(v))}};l0.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[Ax],n=0;n{"use strict";VWe.exports={attributes:fB(),supplyDefaults:tWe(),colorbar:ep(),formatLabels:PJ(),calc:fF(),plot:vWe(),hoverPoints:vB().hoverPoints,eventData:_We(),selectPoints:bWe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermap",basePlotModule:_B(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}});var WWe=Te((m2r,HWe)=>{"use strict";HWe.exports=GWe()});var VJ=Te((y2r,jWe)=>{"use strict";var d1=JT(),fZt=nc(),cZt=Hu().hovertemplateAttrs,hZt=Vf(),Tx=Su().extendFlat;jWe.exports=Tx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Tx({},d1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:d1.text,hovertext:d1.hovertext,marker:{line:{color:Tx({},d1.marker.line.color,{editType:"plot"}),width:Tx({},d1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Tx({},d1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Tx({},d1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Tx({},d1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:d1.hoverinfo,hovertemplate:cZt({},{keys:["properties"]}),showlegend:Tx({},hZt.showlegend,{dflt:!1})},fZt("",{cLetter:"z",editTypeOverride:"calc"}))});var ZWe=Te((g2r,XWe)=>{"use strict";var Hk=ei(),dZt=ed(),pZt=VJ();XWe.exports=function(t,r,n,i){function a(f,c){return Hk.coerce(t,r,pZt,f,c)}var o=a("locations"),s=a("z"),u=a("geojson");if(!Hk.isArrayOrTypedArray(o)||!o.length||!Hk.isArrayOrTypedArray(s)||!s.length||!(typeof u=="string"&&u!==""||Hk.isPlainObject(u))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate");var l=a("marker.line.width");l&&a("marker.line.color"),a("marker.opacity"),dZt(t,r,i,a,{prefix:"",cLetter:"z"}),Hk.coerceSelectionMarkerOpacity(r,a)}});var GJ=Te((_2r,JWe)=>{"use strict";var vZt=ku(),p1=ei(),mZt=_c(),yZt=Mu(),gZt=rx().makeBlank,YWe=nx();function _Zt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:gZt()};if(!r)return a;var o=YWe.extractTraceFeature(e);if(!o)return a;var s=mZt.makeColorScaleFuncFromTrace(t),u=t.marker,l=u.line||{},f;p1.isArrayOrTypedArray(u.opacity)&&(f=function(k){var E=k.mo;return vZt(E)?+p1.constrain(E,0,1):0});var c;p1.isArrayOrTypedArray(l.color)&&(c=function(k){return k.mlc});var h;p1.isArrayOrTypedArray(l.width)&&(h=function(k){return k.mlw});for(var d=0;d{"use strict";var QWe=GJ().convert,xZt=GJ().convertOnSelect,$We=wx().traceLayerPrefix;function eje(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",$We+t+"-fill"],["line",$We+t+"-line"]],this.below=null}var ES=eje.prototype;ES.update=function(e){this._update(QWe(e)),e[0].trace._glTrace=this};ES.updateOnSelect=function(e){this._update(xZt(e))};ES._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};ES.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};tje.exports=function(t,r){var n=r[0].trace,i=new eje(t,n.uid),a=i.sourceId,o=QWe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var nje=Te((b2r,ije)=>{"use strict";ije.exports={attributes:VJ(),supplyDefaults:ZWe(),colorbar:M_(),calc:zF(),plot:rje(),hoverPoints:RF(),eventData:DF(),selectPoints:FF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";aje.exports=nje()});var WJ=Te((A2r,lje)=>{"use strict";var bZt=nc(),wZt=Hu().hovertemplateAttrs,sje=Vf(),xB=fB(),HJ=Su().extendFlat;lje.exports=HJ({lon:xB.lon,lat:xB.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:xB.text,hovertext:xB.hovertext,hoverinfo:HJ({},sje.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:wZt(),showlegend:HJ({},sje.showlegend,{dflt:!1})},bZt("",{cLetter:"z",editTypeOverride:"calc"}))});var fje=Te((T2r,uje)=>{"use strict";var AZt=ei(),TZt=ed(),SZt=WJ();uje.exports=function(t,r,n,i){function a(l,f){return AZt.coerce(t,r,SZt,l,f)}var o=a("lon")||[],s=a("lat")||[],u=Math.min(o.length,s.length);if(!u){r.visible=!1;return}r._length=u,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),TZt(t,r,i,a,{prefix:"",cLetter:"z"})}});var dje=Te((S2r,hje)=>{"use strict";var jJ=ku(),MZt=ei().isArrayOrTypedArray,XJ=nf().BADNUM,EZt=Dp(),cje=ei()._;hje.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=MZt(a)&&a.length,s=0;s{"use strict";var kZt=ku(),ZJ=ei(),pje=jl(),vje=_c(),mje=nf().BADNUM,CZt=rx().makeBlank;yje.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:CZt()};if(!n)return a;var o=[],s,u=r.z,l=r.radius,f=ZJ.isArrayOrTypedArray(u)&&u.length,c=ZJ.isArrayOrTypedArray(l);for(s=0;s0?+l[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:p})}}var b=vje.extractOpts(r),v=b.reversescale?vje.flipScale(b.colorscale):b.colorscale,k=v[0][1],E=pje.opacity(k)<1?k:pje.addOpacity(k,0),T=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var _je=gje(),LZt=wx().traceLayerPrefix;function xje(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",LZt+t+"-heatmap"]],this.below=null}var bB=xje.prototype;bB.update=function(e){var t=this.subplot,r=this.layerList,n=_je(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};bB.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};bje.exports=function(t,r){var n=r[0].trace,i=new xje(t,n.uid),a=i.sourceId,o=_je(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var Tje=Te((k2r,Aje)=>{"use strict";var PZt=wu(),zZt=vB().hoverPoints,IZt=vB().getExtraText;Aje.exports=function(t,r,n){var i=zZt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,u=o[a.index];if(delete a.color,"z"in u){var l=a.subplot.mockAxis;a.z=u.z,a.zLabel=PZt.tickText(l,l.c2l(u.z),"hover").text}return a.extraText=IZt(s,u,o[0].t.labels),[a]}}});var Mje=Te((C2r,Sje)=>{"use strict";Sje.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var kje=Te((L2r,Eje)=>{"use strict";Eje.exports={attributes:WJ(),supplyDefaults:fje(),colorbar:M_(),formatLabels:PJ(),calc:dje(),plot:wje(),hoverPoints:Tje(),eventData:Mje(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";Cje.exports=kje()});var KJ=Te((I2r,Rje)=>{"use strict";var RZt=gc(),DZt=Vf(),Pje=Ih(),YJ=i3(),FZt=zc().attributes,zje=Hu().hovertemplateAttrs,BZt=nc(),OZt=Pf().templatedArray,qZt=Hc().descriptionOnlyNumbers,Ije=Su().extendFlat,NZt=Sc().overrideAll,z2r=Rje.exports=NZt({hoverinfo:Ije({},DZt.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:YJ.hoverlabel,domain:FZt({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},valueformat:{valType:"string",dflt:".3s",description:qZt("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:RZt({autoShadowDflt:!0}),customdata:void 0,node:{label:{valType:"data_array",dflt:[]},groups:{valType:"info_array",impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:"number",editType:"calc"}},x:{valType:"data_array",dflt:[]},y:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Pje.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:.5,arrayOk:!0}},pad:{valType:"number",arrayOk:!1,min:0,dflt:20},thickness:{valType:"number",arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:YJ.hoverlabel,hovertemplate:zje({},{keys:["value","label"]}),align:{valType:"enumerated",values:["justify","left","right","center"],dflt:"justify"}},link:{arrowlen:{valType:"number",min:0,dflt:0},label:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},hovercolor:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Pje.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:0,arrayOk:!0}},source:{valType:"data_array",dflt:[]},target:{valType:"data_array",dflt:[]},value:{valType:"data_array",dflt:[]},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:YJ.hoverlabel,hovertemplate:zje({},{keys:["value","label"]}),colorscales:OZt("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:Ije(BZt().colorscale,{dflt:[[0,"white"],[1,"black"]]})})}},"calc","nested")});var qje=Te((R2r,Oje)=>{"use strict";var kS=ei(),wB=KJ(),UZt=jl(),Dje=cd(),VZt=zc().defaults,Fje=s5(),Bje=Pf(),GZt=Jd();Oje.exports=function(t,r,n,i){function a(T,L){return kS.coerce(t,r,wB,T,L)}var o=kS.extendDeep(i.hoverlabel,t.hoverlabel),s=t.node,u=Bje.newContainer(r,"node");function l(T,L){return kS.coerce(s,u,wB.node,T,L)}l("label"),l("groups"),l("x"),l("y"),l("pad"),l("thickness"),l("line.color"),l("line.width"),l("hoverinfo",t.hoverinfo),Fje(s,u,l,o),l("hovertemplate"),l("align");var f=i.colorway,c=function(T){return f[T%f.length]};l("color",u.label.map(function(T,L){return UZt.addOpacity(c(L),.8)})),l("customdata");var h=t.link||{},d=Bje.newContainer(r,"link");function p(T,L){return kS.coerce(h,d,wB.link,T,L)}p("label"),p("arrowlen"),p("source"),p("target"),p("value"),p("line.color"),p("line.width"),p("hoverinfo",t.hoverinfo),Fje(h,d,p,o),p("hovertemplate");var x=Dje(i.paper_bgcolor).getLuminance()<.333,b=x?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",v=p("color",b);function k(T){var L=Dje(T);if(!L.isValid())return T;var _=L.getAlpha();return _<=.8?L.setAlpha(_+.2):L=x?L.brighten():L.darken(),L.toRgbString()}p("hovercolor",Array.isArray(v)?v.map(k):k(v)),p("customdata"),GZt(h,d,{name:"colorscales",handleItemDefaults:HZt}),VZt(r,i,a),a("orientation"),a("valueformat"),a("valuesuffix");var E;u.x.length&&u.y.length&&(E="freeform"),a("arrangement",E),kS.coerceFont(a,"textfont",i.font,{autoShadowDflt:!0}),r._length=null};function HZt(e,t){function r(n,i){return kS.coerce(e,t,wB.link.colorscales,n,i)}r("label"),r("cmin"),r("cmax"),r("colorscale")}});var JJ=Te((D2r,Nje)=>{"use strict";Nje.exports=WZt;function WZt(e){for(var t=e.length,r=new Array(t),n=new Array(t),i=new Array(t),a=new Array(t),o=new Array(t),s=new Array(t),u=0;u0;){b=k[k.length-1];var E=e[b];if(a[b]=0&&s[b].push(o[L])}a[b]=T}else{if(n[b]===r[b]){for(var _=[],C=[],S=0,T=v.length-1;T>=0;--T){var m=v[T];if(i[m]=!1,_.push(m),C.push(s[m]),S+=s[m].length,o[m]=f.length,m===b){v.length=T;break}}f.push(_);for(var P=new Array(S),T=0;T{"use strict";var jZt=JJ(),CS=ei(),XZt=Ky().wrap,Wk=CS.isArrayOrTypedArray,Uje=CS.isIndex,Vje=_c();function ZZt(e){var t=e.node,r=e.link,n=[],i=Wk(r.color),a=Wk(r.hovercolor),o=Wk(r.customdata),s={},u={},l=r.colorscales.length,f;for(f=0;fp&&(p=r.source[f]),r.target[f]>p&&(p=r.target[f]);var x=p+1;e.node._count=x;var b,v=e.node.groups,k={};for(f=0;f0&&Uje(S,x)&&Uje(m,x)&&!(k.hasOwnProperty(S)&&k.hasOwnProperty(m)&&k[S]===k[m])){k.hasOwnProperty(m)&&(m=k[m]),k.hasOwnProperty(S)&&(S=k[S]),S=+S,m=+m,s[S]=s[m]=!0;var P="";r.label&&r.label[f]&&(P=r.label[f]);var A=null;P&&u.hasOwnProperty(P)&&(A=u[P]),n.push({pointNumber:f,label:P,color:i?r.color[f]:r.color,hovercolor:a?r.hovercolor[f]:r.hovercolor,customdata:o?r.customdata[f]:r.customdata,concentrationscale:A,source:S,target:m,value:+C}),_.source.push(S),_.target.push(m)}}var B=x+v.length,F=Wk(t.color),U=Wk(t.customdata),G=[];for(f=0;fx-1,childrenNodes:[],pointNumber:f,label:j,color:F?t.color[f]:t.color,customdata:U?t.customdata[f]:t.customdata})}var H=!1;return YZt(B,_.source,_.target)&&(H=!0),{circular:H,links:n,nodes:G,groups:v,groupLookup:k}}function YZt(e,t,r){for(var n=CS.init2dArray(e,0),i=0;i1})}Gje.exports=function(t,r){var n=ZZt(r);return XZt({circular:n.circular,_nodes:n.nodes,_links:n.links,_groups:n.groups,_groupLookup:n.groupLookup})}});var jje=Te((AB,Wje)=>{(function(e,t){typeof AB=="object"&&typeof Wje!="undefined"?t(AB):(e=e||self,t(e.d3=e.d3||{}))})(AB,function(e){"use strict";function t(C){var S=+this._x.call(null,C),m=+this._y.call(null,C);return r(this.cover(S,m),S,m,C)}function r(C,S,m,P){if(isNaN(S)||isNaN(m))return C;var A,B=C._root,F={data:P},U=C._x0,G=C._y0,j=C._x1,H=C._y1,N,W,re,ae,be,Pe,Ce,de;if(!B)return C._root=F,C;for(;B.length;)if((be=S>=(N=(U+j)/2))?U=N:j=N,(Pe=m>=(W=(G+H)/2))?G=W:H=W,A=B,!(B=B[Ce=Pe<<1|be]))return A[Ce]=F,C;if(re=+C._x.call(null,B.data),ae=+C._y.call(null,B.data),S===re&&m===ae)return F.next=B,A?A[Ce]=F:C._root=F,C;do A=A?A[Ce]=new Array(4):C._root=new Array(4),(be=S>=(N=(U+j)/2))?U=N:j=N,(Pe=m>=(W=(G+H)/2))?G=W:H=W;while((Ce=Pe<<1|be)===(de=(ae>=W)<<1|re>=N));return A[de]=B,A[Ce]=F,C}function n(C){var S,m,P=C.length,A,B,F=new Array(P),U=new Array(P),G=1/0,j=1/0,H=-1/0,N=-1/0;for(m=0;mH&&(H=A),BN&&(N=B));if(G>H||j>N)return this;for(this.cover(G,j).cover(H,N),m=0;mC||C>=A||P>S||S>=B;)switch(j=(SH||(U=ae.y0)>N||(G=ae.x1)=Ce)<<1|C>=Pe)&&(ae=W[W.length-1],W[W.length-1]=W[W.length-1-be],W[W.length-1-be]=ae)}else{var de=C-+this._x.call(null,re.data),te=S-+this._y.call(null,re.data),ke=de*de+te*te;if(ke=(W=(F+G)/2))?F=W:G=W,(be=N>=(re=(U+j)/2))?U=re:j=re,S=m,!(m=m[Pe=be<<1|ae]))return this;if(!m.length)break;(S[Pe+1&3]||S[Pe+2&3]||S[Pe+3&3])&&(P=S,Ce=Pe)}for(;m.data!==C;)if(A=m,!(m=m.next))return this;return(B=m.next)&&delete m.next,A?(B?A.next=B:delete A.next,this):S?(B?S[Pe]=B:delete S[Pe],(m=S[0]||S[1]||S[2]||S[3])&&m===(S[3]||S[2]||S[1]||S[0])&&!m.length&&(P?P[Ce]=m:this._root=m),this):(this._root=B,this)}function f(C){for(var S=0,m=C.length;S{(function(e,t){t(typeof TB=="object"&&typeof Xje!="undefined"?TB:e.d3=e.d3||{})})(TB,function(e){"use strict";var t="$";function r(){}r.prototype=n.prototype={constructor:r,has:function(x){return t+x in this},get:function(x){return this[t+x]},set:function(x,b){return this[t+x]=b,this},remove:function(x){var b=t+x;return b in this&&delete this[b]},clear:function(){for(var x in this)x[0]===t&&delete this[x]},keys:function(){var x=[];for(var b in this)b[0]===t&&x.push(b.slice(1));return x},values:function(){var x=[];for(var b in this)b[0]===t&&x.push(this[b]);return x},entries:function(){var x=[];for(var b in this)b[0]===t&&x.push({key:b.slice(1),value:this[b]});return x},size:function(){var x=0;for(var b in this)b[0]===t&&++x;return x},empty:function(){for(var x in this)if(x[0]===t)return!1;return!0},each:function(x){for(var b in this)b[0]===t&&x(this[b],b.slice(1),this)}};function n(x,b){var v=new r;if(x instanceof r)x.each(function(_,C){v.set(C,_)});else if(Array.isArray(x)){var k=-1,E=x.length,T;if(b==null)for(;++k=x.length)return v!=null&&_.sort(v),k!=null?k(_):_;for(var P=-1,A=_.length,B=x[C++],F,U,G=n(),j,H=S();++Px.length)return _;var S,m=b[C-1];return k!=null&&C>=x.length?S=_.entries():(S=[],_.each(function(P,A){S.push({key:A,values:L(P,C)})})),m!=null?S.sort(function(P,A){return m(P.key,A.key)}):S}return E={object:function(_){return T(_,0,a,o)},map:function(_){return T(_,0,s,u)},entries:function(_){return L(T(_,0,s,u),0)},key:function(_){return x.push(_),E},sortKeys:function(_){return b[x.length-1]=_,E},sortValues:function(_){return v=_,E},rollup:function(_){return k=_,E}}}function a(){return{}}function o(x,b,v){x[b]=v}function s(){return n()}function u(x,b,v){x.set(b,v)}function l(){}var f=n.prototype;l.prototype=c.prototype={constructor:l,has:f.has,add:function(x){return x+="",this[t+x]=x,this},remove:f.remove,clear:f.clear,values:f.keys,size:f.size,empty:f.empty,each:f.each};function c(x,b){var v=new l;if(x instanceof l)x.each(function(T){v.add(T)});else if(x){var k=-1,E=x.length;if(b==null)for(;++k{(function(e,t){typeof MB=="object"&&typeof Zje!="undefined"?t(MB):(e=e||self,t(e.d3=e.d3||{}))})(MB,function(e){"use strict";var t={value:function(){}};function r(){for(var s=0,u=arguments.length,l={},f;s=0&&(f=l.slice(c+1),l=l.slice(0,c)),l&&!u.hasOwnProperty(l))throw new Error("unknown type: "+l);return{type:l,name:f}})}n.prototype=r.prototype={constructor:n,on:function(s,u){var l=this._,f=i(s+"",l),c,h=-1,d=f.length;if(arguments.length<2){for(;++h0)for(var l=new Array(c),f=0,c,h;f{(function(e,t){typeof EB=="object"&&typeof Kje!="undefined"?t(EB):(e=e||self,t(e.d3=e.d3||{}))})(EB,function(e){"use strict";var t=0,r=0,n=0,i=1e3,a,o,s=0,u=0,l=0,f=typeof performance=="object"&&performance.now?performance:Date,c=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(C){setTimeout(C,17)};function h(){return u||(c(d),u=f.now()+l)}function d(){u=0}function p(){this._call=this._time=this._next=null}p.prototype=x.prototype={constructor:p,restart:function(C,S,m){if(typeof C!="function")throw new TypeError("callback is not a function");m=(m==null?h():+m)+(S==null?0:+S),!this._next&&o!==this&&(o?o._next=this:a=this,o=this),this._call=C,this._time=m,T()},stop:function(){this._call&&(this._call=null,this._time=1/0,T())}};function x(C,S,m){var P=new p;return P.restart(C,S,m),P}function b(){h(),++t;for(var C=a,S;C;)(S=u-C._time)>=0&&C._call.call(null,S),C=C._next;--t}function v(){u=(s=f.now())+l,t=r=0;try{b()}finally{t=0,E(),u=0}}function k(){var C=f.now(),S=C-s;S>i&&(l-=S,s=C)}function E(){for(var C,S=a,m,P=1/0;S;)S._call?(P>S._time&&(P=S._time),C=S,S=S._next):(m=S._next,S._next=null,S=C?C._next=m:a=m);o=C,T(P)}function T(C){if(!t){r&&(r=clearTimeout(r));var S=C-u;S>24?(C<1/0&&(r=setTimeout(v,C-f.now()-l)),n&&(n=clearInterval(n))):(n||(s=f.now(),n=setInterval(k,i)),t=1,c(v))}}function L(C,S,m){var P=new p;return S=S==null?0:+S,P.restart(function(A){P.stop(),C(A+S)},S,m),P}function _(C,S,m){var P=new p,A=S;return S==null?(P.restart(C,S,m),P):(S=+S,m=m==null?h():+m,P.restart(function B(F){F+=A,P.restart(B,A+=S,m),C(F)},S,m),P)}e.interval=_,e.now=h,e.timeout=L,e.timer=x,e.timerFlush=b,Object.defineProperty(e,"__esModule",{value:!0})})});var Qje=Te((kB,$je)=>{(function(e,t){typeof kB=="object"&&typeof $je!="undefined"?t(kB,jje(),SB(),Yje(),Jje()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,e.d3)})(kB,function(e,t,r,n,i){"use strict";function a(C,S){var m;C==null&&(C=0),S==null&&(S=0);function P(){var A,B=m.length,F,U=0,G=0;for(A=0;AN.index){var Ne=W-Ue.x-Ue.vx,ce=re-Ue.y-Ue.vy,Ke=Ne*Ne+ce*ce;KeW+me||Eere+me||MeG.r&&(G.r=G[j].r)}function U(){if(S){var G,j=S.length,H;for(m=new Array(j),G=0;G1?(be==null?U.remove(ae):U.set(ae,re(be)),S):U.get(ae)},find:function(ae,be,Pe){var Ce=0,de=C.length,te,ke,Ee,Me,Ue;for(Pe==null?Pe=1/0:Pe*=Pe,Ce=0;Ce1?(j.on(ae,be),S):j.on(ae)}}}function E(){var C,S,m,P=o(-30),A,B=1,F=1/0,U=.81;function G(W){var re,ae=C.length,be=t.quadtree(C,p,x).visitAfter(H);for(m=W,re=0;re=F)return;(W.data!==S||W.next)&&(Pe===0&&(Pe=s(),te+=Pe*Pe),Ce===0&&(Ce=s(),te+=Ce*Ce),te{(function(e,t){typeof CB=="object"&&typeof eXe!="undefined"?t(CB):(e=e||self,t(e.d3=e.d3||{}))})(CB,function(e){"use strict";var t=Math.PI,r=2*t,n=1e-6,i=r-n;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new a}a.prototype=o.prototype={constructor:a,moveTo:function(s,u){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+u)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(s,u){this._+="L"+(this._x1=+s)+","+(this._y1=+u)},quadraticCurveTo:function(s,u,l,f){this._+="Q"+ +s+","+ +u+","+(this._x1=+l)+","+(this._y1=+f)},bezierCurveTo:function(s,u,l,f,c,h){this._+="C"+ +s+","+ +u+","+ +l+","+ +f+","+(this._x1=+c)+","+(this._y1=+h)},arcTo:function(s,u,l,f,c){s=+s,u=+u,l=+l,f=+f,c=+c;var h=this._x1,d=this._y1,p=l-s,x=f-u,b=h-s,v=d-u,k=b*b+v*v;if(c<0)throw new Error("negative radius: "+c);if(this._x1===null)this._+="M"+(this._x1=s)+","+(this._y1=u);else if(k>n)if(!(Math.abs(v*p-x*b)>n)||!c)this._+="L"+(this._x1=s)+","+(this._y1=u);else{var E=l-h,T=f-d,L=p*p+x*x,_=E*E+T*T,C=Math.sqrt(L),S=Math.sqrt(k),m=c*Math.tan((t-Math.acos((L+k-_)/(2*C*S)))/2),P=m/S,A=m/C;Math.abs(P-1)>n&&(this._+="L"+(s+P*b)+","+(u+P*v)),this._+="A"+c+","+c+",0,0,"+ +(v*E>b*T)+","+(this._x1=s+A*p)+","+(this._y1=u+A*x)}},arc:function(s,u,l,f,c,h){s=+s,u=+u,l=+l,h=!!h;var d=l*Math.cos(f),p=l*Math.sin(f),x=s+d,b=u+p,v=1^h,k=h?f-c:c-f;if(l<0)throw new Error("negative radius: "+l);this._x1===null?this._+="M"+x+","+b:(Math.abs(this._x1-x)>n||Math.abs(this._y1-b)>n)&&(this._+="L"+x+","+b),l&&(k<0&&(k=k%r+r),k>i?this._+="A"+l+","+l+",0,1,"+v+","+(s-d)+","+(u-p)+"A"+l+","+l+",0,1,"+v+","+(this._x1=x)+","+(this._y1=b):k>n&&(this._+="A"+l+","+l+",0,"+ +(k>=t)+","+v+","+(this._x1=s+l*Math.cos(c))+","+(this._y1=u+l*Math.sin(c))))},rect:function(s,u,l,f){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+u)+"h"+ +l+"v"+ +f+"h"+-l+"Z"},toString:function(){return this._}},e.path=o,Object.defineProperty(e,"__esModule",{value:!0})})});var $J=Te((LB,rXe)=>{(function(e,t){typeof LB=="object"&&typeof rXe!="undefined"?t(LB,tXe()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(LB,function(e,t){"use strict";function r(ft){return function(){return ft}}var n=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,u=Math.sin,l=Math.sqrt,f=1e-12,c=Math.PI,h=c/2,d=2*c;function p(ft){return ft>1?0:ft<-1?c:Math.acos(ft)}function x(ft){return ft>=1?h:ft<=-1?-h:Math.asin(ft)}function b(ft){return ft.innerRadius}function v(ft){return ft.outerRadius}function k(ft){return ft.startAngle}function E(ft){return ft.endAngle}function T(ft){return ft&&ft.padAngle}function L(ft,tr,pr,gr,Zr,Ai,Qi,ni){var Zi=pr-ft,aa=gr-tr,Mn=Qi-Zr,Un=ni-Ai,Ga=Un*Zi-Mn*aa;if(!(Ga*Gawa*wa+ws*ws&&(uo=$a,ls=fo),{cx:uo,cy:ls,x01:-Mn,y01:-Un,x11:uo*(Zr/kn-1),y11:ls*(Zr/kn-1)}}function C(){var ft=b,tr=v,pr=r(0),gr=null,Zr=k,Ai=E,Qi=T,ni=null;function Zi(){var aa,Mn,Un=+ft.apply(this,arguments),Ga=+tr.apply(this,arguments),ma=Zr.apply(this,arguments)-h,oa=Ai.apply(this,arguments)-h,ka=n(oa-ma),so=oa>ma;if(ni||(ni=aa=t.path()),Gaf))ni.moveTo(0,0);else if(ka>d-f)ni.moveTo(Ga*a(ma),Ga*u(ma)),ni.arc(0,0,Ga,ma,oa,!so),Un>f&&(ni.moveTo(Un*a(oa),Un*u(oa)),ni.arc(0,0,Un,oa,ma,so));else{var Kr=ma,Ia=oa,Yo=ma,fa=oa,kn=ka,Ta=ka,ys=Qi.apply(this,arguments)/2,uo=ys>f&&(gr?+gr.apply(this,arguments):l(Un*Un+Ga*Ga)),ls=s(n(Ga-Un)/2,+pr.apply(this,arguments)),$a=ls,fo=ls,mn,ra;if(uo>f){var wa=x(uo/Un*u(ys)),ws=x(uo/Ga*u(ys));(kn-=wa*2)>f?(wa*=so?1:-1,Yo+=wa,fa-=wa):(kn=0,Yo=fa=(ma+oa)/2),(Ta-=ws*2)>f?(ws*=so?1:-1,Kr+=ws,Ia-=ws):(Ta=0,Kr=Ia=(ma+oa)/2)}var Co=Ga*a(Kr),Po=Ga*u(Kr),ji=Un*a(fa),gn=Un*u(fa);if(ls>f){var Ps=Ga*a(Ia),Ha=Ga*u(Ia),Sn=Un*a(Yo),ao=Un*u(Yo),Ba;if(kaf?fo>f?(mn=_(Sn,ao,Co,Po,Ga,fo,so),ra=_(Ps,Ha,ji,gn,Ga,fo,so),ni.moveTo(mn.cx+mn.x01,mn.cy+mn.y01),fof)||!(kn>f)?ni.lineTo(ji,gn):$a>f?(mn=_(ji,gn,Ps,Ha,Un,-$a,so),ra=_(Co,Po,Sn,ao,Un,-$a,so),ni.lineTo(mn.cx+mn.x01,mn.cy+mn.y01),$a=Ga;--ma)ni.point(Ia[ma],Yo[ma]);ni.lineEnd(),ni.areaEnd()}so&&(Ia[Un]=+ft(ka,Un,Mn),Yo[Un]=+pr(ka,Un,Mn),ni.point(tr?+tr(ka,Un,Mn):Ia[Un],gr?+gr(ka,Un,Mn):Yo[Un]))}if(Kr)return ni=null,Kr+""||null}function aa(){return B().defined(Zr).curve(Qi).context(Ai)}return Zi.x=function(Mn){return arguments.length?(ft=typeof Mn=="function"?Mn:r(+Mn),tr=null,Zi):ft},Zi.x0=function(Mn){return arguments.length?(ft=typeof Mn=="function"?Mn:r(+Mn),Zi):ft},Zi.x1=function(Mn){return arguments.length?(tr=Mn==null?null:typeof Mn=="function"?Mn:r(+Mn),Zi):tr},Zi.y=function(Mn){return arguments.length?(pr=typeof Mn=="function"?Mn:r(+Mn),gr=null,Zi):pr},Zi.y0=function(Mn){return arguments.length?(pr=typeof Mn=="function"?Mn:r(+Mn),Zi):pr},Zi.y1=function(Mn){return arguments.length?(gr=Mn==null?null:typeof Mn=="function"?Mn:r(+Mn),Zi):gr},Zi.lineX0=Zi.lineY0=function(){return aa().x(ft).y(pr)},Zi.lineY1=function(){return aa().x(ft).y(gr)},Zi.lineX1=function(){return aa().x(tr).y(pr)},Zi.defined=function(Mn){return arguments.length?(Zr=typeof Mn=="function"?Mn:r(!!Mn),Zi):Zr},Zi.curve=function(Mn){return arguments.length?(Qi=Mn,Ai!=null&&(ni=Qi(Ai)),Zi):Qi},Zi.context=function(Mn){return arguments.length?(Mn==null?Ai=ni=null:ni=Qi(Ai=Mn),Zi):Ai},Zi}function U(ft,tr){return trft?1:tr>=ft?0:NaN}function G(ft){return ft}function j(){var ft=G,tr=U,pr=null,gr=r(0),Zr=r(d),Ai=r(0);function Qi(ni){var Zi,aa=ni.length,Mn,Un,Ga=0,ma=new Array(aa),oa=new Array(aa),ka=+gr.apply(this,arguments),so=Math.min(d,Math.max(-d,Zr.apply(this,arguments)-ka)),Kr,Ia=Math.min(Math.abs(so)/aa,Ai.apply(this,arguments)),Yo=Ia*(so<0?-1:1),fa;for(Zi=0;Zi0&&(Ga+=fa);for(tr!=null?ma.sort(function(kn,Ta){return tr(oa[kn],oa[Ta])}):pr!=null&&ma.sort(function(kn,Ta){return pr(ni[kn],ni[Ta])}),Zi=0,Un=Ga?(so-aa*Yo)/Ga:0;Zi0?fa*Un:0)+Yo,oa[Mn]={data:ni[Mn],index:Zi,value:fa,startAngle:ka,endAngle:Kr,padAngle:Ia};return oa}return Qi.value=function(ni){return arguments.length?(ft=typeof ni=="function"?ni:r(+ni),Qi):ft},Qi.sortValues=function(ni){return arguments.length?(tr=ni,pr=null,Qi):tr},Qi.sort=function(ni){return arguments.length?(pr=ni,tr=null,Qi):pr},Qi.startAngle=function(ni){return arguments.length?(gr=typeof ni=="function"?ni:r(+ni),Qi):gr},Qi.endAngle=function(ni){return arguments.length?(Zr=typeof ni=="function"?ni:r(+ni),Qi):Zr},Qi.padAngle=function(ni){return arguments.length?(Ai=typeof ni=="function"?ni:r(+ni),Qi):Ai},Qi}var H=W(m);function N(ft){this._curve=ft}N.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(ft,tr){this._curve.point(tr*Math.sin(ft),tr*-Math.cos(ft))}};function W(ft){function tr(pr){return new N(ft(pr))}return tr._curve=ft,tr}function re(ft){var tr=ft.curve;return ft.angle=ft.x,delete ft.x,ft.radius=ft.y,delete ft.y,ft.curve=function(pr){return arguments.length?tr(W(pr)):tr()._curve},ft}function ae(){return re(B().curve(H))}function be(){var ft=F().curve(H),tr=ft.curve,pr=ft.lineX0,gr=ft.lineX1,Zr=ft.lineY0,Ai=ft.lineY1;return ft.angle=ft.x,delete ft.x,ft.startAngle=ft.x0,delete ft.x0,ft.endAngle=ft.x1,delete ft.x1,ft.radius=ft.y,delete ft.y,ft.innerRadius=ft.y0,delete ft.y0,ft.outerRadius=ft.y1,delete ft.y1,ft.lineStartAngle=function(){return re(pr())},delete ft.lineX0,ft.lineEndAngle=function(){return re(gr())},delete ft.lineX1,ft.lineInnerRadius=function(){return re(Zr())},delete ft.lineY0,ft.lineOuterRadius=function(){return re(Ai())},delete ft.lineY1,ft.curve=function(Qi){return arguments.length?tr(W(Qi)):tr()._curve},ft}function Pe(ft,tr){return[(tr=+tr)*Math.cos(ft-=Math.PI/2),tr*Math.sin(ft)]}var Ce=Array.prototype.slice;function de(ft){return ft.source}function te(ft){return ft.target}function ke(ft){var tr=de,pr=te,gr=P,Zr=A,Ai=null;function Qi(){var ni,Zi=Ce.call(arguments),aa=tr.apply(this,Zi),Mn=pr.apply(this,Zi);if(Ai||(Ai=ni=t.path()),ft(Ai,+gr.apply(this,(Zi[0]=aa,Zi)),+Zr.apply(this,Zi),+gr.apply(this,(Zi[0]=Mn,Zi)),+Zr.apply(this,Zi)),ni)return Ai=null,ni+""||null}return Qi.source=function(ni){return arguments.length?(tr=ni,Qi):tr},Qi.target=function(ni){return arguments.length?(pr=ni,Qi):pr},Qi.x=function(ni){return arguments.length?(gr=typeof ni=="function"?ni:r(+ni),Qi):gr},Qi.y=function(ni){return arguments.length?(Zr=typeof ni=="function"?ni:r(+ni),Qi):Zr},Qi.context=function(ni){return arguments.length?(Ai=ni==null?null:ni,Qi):Ai},Qi}function Ee(ft,tr,pr,gr,Zr){ft.moveTo(tr,pr),ft.bezierCurveTo(tr=(tr+gr)/2,pr,tr,Zr,gr,Zr)}function Me(ft,tr,pr,gr,Zr){ft.moveTo(tr,pr),ft.bezierCurveTo(tr,pr=(pr+Zr)/2,gr,pr,gr,Zr)}function Ue(ft,tr,pr,gr,Zr){var Ai=Pe(tr,pr),Qi=Pe(tr,pr=(pr+Zr)/2),ni=Pe(gr,pr),Zi=Pe(gr,Zr);ft.moveTo(Ai[0],Ai[1]),ft.bezierCurveTo(Qi[0],Qi[1],ni[0],ni[1],Zi[0],Zi[1])}function Fe(){return ke(Ee)}function me(){return ke(Me)}function Ne(){var ft=ke(Ue);return ft.angle=ft.x,delete ft.x,ft.radius=ft.y,delete ft.y,ft}var ce={draw:function(ft,tr){var pr=Math.sqrt(tr/c);ft.moveTo(pr,0),ft.arc(0,0,pr,0,d)}},Ke={draw:function(ft,tr){var pr=Math.sqrt(tr/5)/2;ft.moveTo(-3*pr,-pr),ft.lineTo(-pr,-pr),ft.lineTo(-pr,-3*pr),ft.lineTo(pr,-3*pr),ft.lineTo(pr,-pr),ft.lineTo(3*pr,-pr),ft.lineTo(3*pr,pr),ft.lineTo(pr,pr),ft.lineTo(pr,3*pr),ft.lineTo(-pr,3*pr),ft.lineTo(-pr,pr),ft.lineTo(-3*pr,pr),ft.closePath()}},it=Math.sqrt(1/3),bt=it*2,Nt={draw:function(ft,tr){var pr=Math.sqrt(tr/bt),gr=pr*it;ft.moveTo(0,-pr),ft.lineTo(gr,0),ft.lineTo(0,pr),ft.lineTo(-gr,0),ft.closePath()}},nt=.8908130915292852,Ye=Math.sin(c/10)/Math.sin(7*c/10),kt=Math.sin(d/10)*Ye,At=-Math.cos(d/10)*Ye,St={draw:function(ft,tr){var pr=Math.sqrt(tr*nt),gr=kt*pr,Zr=At*pr;ft.moveTo(0,-pr),ft.lineTo(gr,Zr);for(var Ai=1;Ai<5;++Ai){var Qi=d*Ai/5,ni=Math.cos(Qi),Zi=Math.sin(Qi);ft.lineTo(Zi*pr,-ni*pr),ft.lineTo(ni*gr-Zi*Zr,Zi*gr+ni*Zr)}ft.closePath()}},Bt={draw:function(ft,tr){var pr=Math.sqrt(tr),gr=-pr/2;ft.rect(gr,gr,pr,pr)}},Zt=Math.sqrt(3),Et={draw:function(ft,tr){var pr=-Math.sqrt(tr/(Zt*3));ft.moveTo(0,pr*2),ft.lineTo(-Zt*pr,-pr),ft.lineTo(Zt*pr,-pr),ft.closePath()}},Ae=-.5,ot=Math.sqrt(3)/2,dt=1/Math.sqrt(12),pt=(dt/2+1)*3,at={draw:function(ft,tr){var pr=Math.sqrt(tr/pt),gr=pr/2,Zr=pr*dt,Ai=gr,Qi=pr*dt+pr,ni=-Ai,Zi=Qi;ft.moveTo(gr,Zr),ft.lineTo(Ai,Qi),ft.lineTo(ni,Zi),ft.lineTo(Ae*gr-ot*Zr,ot*gr+Ae*Zr),ft.lineTo(Ae*Ai-ot*Qi,ot*Ai+Ae*Qi),ft.lineTo(Ae*ni-ot*Zi,ot*ni+Ae*Zi),ft.lineTo(Ae*gr+ot*Zr,Ae*Zr-ot*gr),ft.lineTo(Ae*Ai+ot*Qi,Ae*Qi-ot*Ai),ft.lineTo(Ae*ni+ot*Zi,Ae*Zi-ot*ni),ft.closePath()}},Xe=[ce,Ke,Nt,Bt,St,Et,at];function rt(){var ft=r(ce),tr=r(64),pr=null;function gr(){var Zr;if(pr||(pr=Zr=t.path()),ft.apply(this,arguments).draw(pr,+tr.apply(this,arguments)),Zr)return pr=null,Zr+""||null}return gr.type=function(Zr){return arguments.length?(ft=typeof Zr=="function"?Zr:r(Zr),gr):ft},gr.size=function(Zr){return arguments.length?(tr=typeof Zr=="function"?Zr:r(+Zr),gr):tr},gr.context=function(Zr){return arguments.length?(pr=Zr==null?null:Zr,gr):pr},gr}function Qe(){}function zt(ft,tr,pr){ft._context.bezierCurveTo((2*ft._x0+ft._x1)/3,(2*ft._y0+ft._y1)/3,(ft._x0+2*ft._x1)/3,(ft._y0+2*ft._y1)/3,(ft._x0+4*ft._x1+tr)/6,(ft._y0+4*ft._y1+pr)/6)}function Yt(ft){this._context=ft}Yt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:zt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1,this._line?this._context.lineTo(ft,tr):this._context.moveTo(ft,tr);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:zt(this,ft,tr);break}this._x0=this._x1,this._x1=ft,this._y0=this._y1,this._y1=tr}};function lr(ft){return new Yt(ft)}function mr(ft){this._context=ft}mr.prototype={areaStart:Qe,areaEnd:Qe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1,this._x2=ft,this._y2=tr;break;case 1:this._point=2,this._x3=ft,this._y3=tr;break;case 2:this._point=3,this._x4=ft,this._y4=tr,this._context.moveTo((this._x0+4*this._x1+ft)/6,(this._y0+4*this._y1+tr)/6);break;default:zt(this,ft,tr);break}this._x0=this._x1,this._x1=ft,this._y0=this._y1,this._y1=tr}};function _r(ft){return new mr(ft)}function Ht(ft){this._context=ft}Ht.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var pr=(this._x0+4*this._x1+ft)/6,gr=(this._y0+4*this._y1+tr)/6;this._line?this._context.lineTo(pr,gr):this._context.moveTo(pr,gr);break;case 3:this._point=4;default:zt(this,ft,tr);break}this._x0=this._x1,this._x1=ft,this._y0=this._y1,this._y1=tr}};function Re(ft){return new Ht(ft)}function xe(ft,tr){this._basis=new Yt(ft),this._beta=tr}xe.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var ft=this._x,tr=this._y,pr=ft.length-1;if(pr>0)for(var gr=ft[0],Zr=tr[0],Ai=ft[pr]-gr,Qi=tr[pr]-Zr,ni=-1,Zi;++ni<=pr;)Zi=ni/pr,this._basis.point(this._beta*ft[ni]+(1-this._beta)*(gr+Zi*Ai),this._beta*tr[ni]+(1-this._beta)*(Zr+Zi*Qi));this._x=this._y=null,this._basis.lineEnd()},point:function(ft,tr){this._x.push(+ft),this._y.push(+tr)}};var Oe=function ft(tr){function pr(gr){return tr===1?new Yt(gr):new xe(gr,tr)}return pr.beta=function(gr){return ft(+gr)},pr}(.85);function Ie(ft,tr,pr){ft._context.bezierCurveTo(ft._x1+ft._k*(ft._x2-ft._x0),ft._y1+ft._k*(ft._y2-ft._y0),ft._x2+ft._k*(ft._x1-tr),ft._y2+ft._k*(ft._y1-pr),ft._x2,ft._y2)}function De(ft,tr){this._context=ft,this._k=(1-tr)/6}De.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ie(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1,this._line?this._context.lineTo(ft,tr):this._context.moveTo(ft,tr);break;case 1:this._point=2,this._x1=ft,this._y1=tr;break;case 2:this._point=3;default:Ie(this,ft,tr);break}this._x0=this._x1,this._x1=this._x2,this._x2=ft,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var ct=function ft(tr){function pr(gr){return new De(gr,tr)}return pr.tension=function(gr){return ft(+gr)},pr}(0);function _e(ft,tr){this._context=ft,this._k=(1-tr)/6}_e.prototype={areaStart:Qe,areaEnd:Qe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1,this._x3=ft,this._y3=tr;break;case 1:this._point=2,this._context.moveTo(this._x4=ft,this._y4=tr);break;case 2:this._point=3,this._x5=ft,this._y5=tr;break;default:Ie(this,ft,tr);break}this._x0=this._x1,this._x1=this._x2,this._x2=ft,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var fe=function ft(tr){function pr(gr){return new _e(gr,tr)}return pr.tension=function(gr){return ft(+gr)},pr}(0);function pe(ft,tr){this._context=ft,this._k=(1-tr)/6}pe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ie(this,ft,tr);break}this._x0=this._x1,this._x1=this._x2,this._x2=ft,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var mt=function ft(tr){function pr(gr){return new pe(gr,tr)}return pr.tension=function(gr){return ft(+gr)},pr}(0);function It(ft,tr,pr){var gr=ft._x1,Zr=ft._y1,Ai=ft._x2,Qi=ft._y2;if(ft._l01_a>f){var ni=2*ft._l01_2a+3*ft._l01_a*ft._l12_a+ft._l12_2a,Zi=3*ft._l01_a*(ft._l01_a+ft._l12_a);gr=(gr*ni-ft._x0*ft._l12_2a+ft._x2*ft._l01_2a)/Zi,Zr=(Zr*ni-ft._y0*ft._l12_2a+ft._y2*ft._l01_2a)/Zi}if(ft._l23_a>f){var aa=2*ft._l23_2a+3*ft._l23_a*ft._l12_a+ft._l12_2a,Mn=3*ft._l23_a*(ft._l23_a+ft._l12_a);Ai=(Ai*aa+ft._x1*ft._l23_2a-tr*ft._l12_2a)/Mn,Qi=(Qi*aa+ft._y1*ft._l23_2a-pr*ft._l12_2a)/Mn}ft._context.bezierCurveTo(gr,Zr,Ai,Qi,ft._x2,ft._y2)}function Pt(ft,tr){this._context=ft,this._alpha=tr}Pt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){if(ft=+ft,tr=+tr,this._point){var pr=this._x2-ft,gr=this._y2-tr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(pr*pr+gr*gr,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(ft,tr):this._context.moveTo(ft,tr);break;case 1:this._point=2;break;case 2:this._point=3;default:It(this,ft,tr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=ft,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var rr=function ft(tr){function pr(gr){return tr?new Pt(gr,tr):new De(gr,0)}return pr.alpha=function(gr){return ft(+gr)},pr}(.5);function Wr(ft,tr){this._context=ft,this._alpha=tr}Wr.prototype={areaStart:Qe,areaEnd:Qe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(ft,tr){if(ft=+ft,tr=+tr,this._point){var pr=this._x2-ft,gr=this._y2-tr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(pr*pr+gr*gr,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=ft,this._y3=tr;break;case 1:this._point=2,this._context.moveTo(this._x4=ft,this._y4=tr);break;case 2:this._point=3,this._x5=ft,this._y5=tr;break;default:It(this,ft,tr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=ft,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var Nr=function ft(tr){function pr(gr){return tr?new Wr(gr,tr):new _e(gr,0)}return pr.alpha=function(gr){return ft(+gr)},pr}(.5);function Er(ft,tr){this._context=ft,this._alpha=tr}Er.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){if(ft=+ft,tr=+tr,this._point){var pr=this._x2-ft,gr=this._y2-tr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(pr*pr+gr*gr,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:It(this,ft,tr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=ft,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var Br=function ft(tr){function pr(gr){return tr?new Er(gr,tr):new pe(gr,0)}return pr.alpha=function(gr){return ft(+gr)},pr}(.5);function mi(ft){this._context=ft}mi.prototype={areaStart:Qe,areaEnd:Qe,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(ft,tr){ft=+ft,tr=+tr,this._point?this._context.lineTo(ft,tr):(this._point=1,this._context.moveTo(ft,tr))}};function Di(ft){return new mi(ft)}function Ii(ft){return ft<0?-1:1}function Ci(ft,tr,pr){var gr=ft._x1-ft._x0,Zr=tr-ft._x1,Ai=(ft._y1-ft._y0)/(gr||Zr<0&&-0),Qi=(pr-ft._y1)/(Zr||gr<0&&-0),ni=(Ai*Zr+Qi*gr)/(gr+Zr);return(Ii(Ai)+Ii(Qi))*Math.min(Math.abs(Ai),Math.abs(Qi),.5*Math.abs(ni))||0}function nn(ft,tr){var pr=ft._x1-ft._x0;return pr?(3*(ft._y1-ft._y0)/pr-tr)/2:tr}function ii(ft,tr,pr){var gr=ft._x0,Zr=ft._y0,Ai=ft._x1,Qi=ft._y1,ni=(Ai-gr)/3;ft._context.bezierCurveTo(gr+ni,Zr+ni*tr,Ai-ni,Qi-ni*pr,Ai,Qi)}function wi(ft){this._context=ft}wi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ii(this,this._t0,nn(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){var pr=NaN;if(ft=+ft,tr=+tr,!(ft===this._x1&&tr===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(ft,tr):this._context.moveTo(ft,tr);break;case 1:this._point=2;break;case 2:this._point=3,ii(this,nn(this,pr=Ci(this,ft,tr)),pr);break;default:ii(this,this._t0,pr=Ci(this,ft,tr));break}this._x0=this._x1,this._x1=ft,this._y0=this._y1,this._y1=tr,this._t0=pr}}};function Gi(ft){this._context=new Ft(ft)}(Gi.prototype=Object.create(wi.prototype)).point=function(ft,tr){wi.prototype.point.call(this,tr,ft)};function Ft(ft){this._context=ft}Ft.prototype={moveTo:function(ft,tr){this._context.moveTo(tr,ft)},closePath:function(){this._context.closePath()},lineTo:function(ft,tr){this._context.lineTo(tr,ft)},bezierCurveTo:function(ft,tr,pr,gr,Zr,Ai){this._context.bezierCurveTo(tr,ft,gr,pr,Ai,Zr)}};function gt(ft){return new wi(ft)}function Ut(ft){return new Gi(ft)}function Wt(ft){this._context=ft}Wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var ft=this._x,tr=this._y,pr=ft.length;if(pr)if(this._line?this._context.lineTo(ft[0],tr[0]):this._context.moveTo(ft[0],tr[0]),pr===2)this._context.lineTo(ft[1],tr[1]);else for(var gr=xr(ft),Zr=xr(tr),Ai=0,Qi=1;Qi=0;--tr)Zr[tr]=(Qi[tr]-Zr[tr+1])/Ai[tr];for(Ai[pr-1]=(ft[pr]+Zr[pr-1])/2,tr=0;tr=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1,this._line?this._context.lineTo(ft,tr):this._context.moveTo(ft,tr);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,tr),this._context.lineTo(ft,tr);else{var pr=this._x*(1-this._t)+ft*this._t;this._context.lineTo(pr,this._y),this._context.lineTo(pr,tr)}break}}this._x=ft,this._y=tr}};function Ir(ft){return new Ur(ft,.5)}function Gr(ft){return new Ur(ft,0)}function jr(ft){return new Ur(ft,1)}function yi(ft,tr){if((Qi=ft.length)>1)for(var pr=1,gr,Zr,Ai=ft[tr[0]],Qi,ni=Ai.length;pr=0;)pr[tr]=tr;return pr}function Vi(ft,tr){return ft[tr]}function ti(){var ft=r([]),tr=Ei,pr=yi,gr=Vi;function Zr(Ai){var Qi=ft.apply(this,arguments),ni,Zi=Ai.length,aa=Qi.length,Mn=new Array(aa),Un;for(ni=0;ni0){for(var pr,gr,Zr=0,Ai=ft[0].length,Qi;Zr0)for(var pr,gr=0,Zr,Ai,Qi,ni,Zi,aa=ft[tr[0]].length;gr0?(Zr[0]=Qi,Zr[1]=Qi+=Ai):Ai<0?(Zr[1]=ni,Zr[0]=ni+=Ai):(Zr[0]=0,Zr[1]=Ai)}function oi(ft,tr){if((Zr=ft.length)>0){for(var pr=0,gr=ft[tr[0]],Zr,Ai=gr.length;pr0)||!((Ai=(Zr=ft[tr[0]]).length)>0))){for(var pr=0,gr=1,Zr,Ai,Qi;grAi&&(Ai=Zr,pr=tr);return pr}function Fi(ft){var tr=ft.map(Ri);return Ei(ft).sort(function(pr,gr){return tr[pr]-tr[gr]})}function Ri(ft){for(var tr=0,pr=-1,gr=ft.length,Zr;++pr{(function(e,t){typeof PB=="object"&&typeof iXe!="undefined"?t(PB,ek(),SB(),$J()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3)})(PB,function(e,t,r,n){"use strict";function i(m){return m.target.depth}function a(m){return m.depth}function o(m,P){return P-1-m.height}function s(m,P){return m.sourceLinks.length?m.depth:P-1}function u(m){return m.targetLinks.length?m.depth:m.sourceLinks.length?t.min(m.sourceLinks,i)-1:0}function l(m){return function(){return m}}function f(m,P){return h(m.source,P.source)||m.index-P.index}function c(m,P){return h(m.target,P.target)||m.index-P.index}function h(m,P){return m.y0-P.y0}function d(m){return m.value}function p(m){return(m.y0+m.y1)/2}function x(m){return p(m.source)*m.value}function b(m){return p(m.target)*m.value}function v(m){return m.index}function k(m){return m.nodes}function E(m){return m.links}function T(m,P){var A=m.get(P);if(!A)throw new Error("missing: "+P);return A}var L=function(){var m=0,P=0,A=1,B=1,F=24,U=8,G=v,j=s,H=k,N=E,W=32,re=2/3;function ae(){var ke={nodes:H.apply(null,arguments),links:N.apply(null,arguments)};return be(ke),Pe(ke),Ce(ke),de(ke,W),te(ke),ke}ae.update=function(ke){return te(ke),ke},ae.nodeId=function(ke){return arguments.length?(G=typeof ke=="function"?ke:l(ke),ae):G},ae.nodeAlign=function(ke){return arguments.length?(j=typeof ke=="function"?ke:l(ke),ae):j},ae.nodeWidth=function(ke){return arguments.length?(F=+ke,ae):F},ae.nodePadding=function(ke){return arguments.length?(U=+ke,ae):U},ae.nodes=function(ke){return arguments.length?(H=typeof ke=="function"?ke:l(ke),ae):H},ae.links=function(ke){return arguments.length?(N=typeof ke=="function"?ke:l(ke),ae):N},ae.size=function(ke){return arguments.length?(m=P=0,A=+ke[0],B=+ke[1],ae):[A-m,B-P]},ae.extent=function(ke){return arguments.length?(m=+ke[0][0],A=+ke[1][0],P=+ke[0][1],B=+ke[1][1],ae):[[m,P],[A,B]]},ae.iterations=function(ke){return arguments.length?(W=+ke,ae):W};function be(ke){ke.nodes.forEach(function(Me,Ue){Me.index=Ue,Me.sourceLinks=[],Me.targetLinks=[]});var Ee=r.map(ke.nodes,G);ke.links.forEach(function(Me,Ue){Me.index=Ue;var Fe=Me.source,me=Me.target;typeof Fe!="object"&&(Fe=Me.source=T(Ee,Fe)),typeof me!="object"&&(me=Me.target=T(Ee,me)),Fe.sourceLinks.push(Me),me.targetLinks.push(Me)})}function Pe(ke){ke.nodes.forEach(function(Ee){Ee.value=Math.max(t.sum(Ee.sourceLinks,d),t.sum(Ee.targetLinks,d))})}function Ce(ke){var Ee,Me,Ue;for(Ee=ke.nodes,Me=[],Ue=0;Ee.length;++Ue,Ee=Me,Me=[])Ee.forEach(function(me){me.depth=Ue,me.sourceLinks.forEach(function(Ne){Me.indexOf(Ne.target)<0&&Me.push(Ne.target)})});for(Ee=ke.nodes,Me=[],Ue=0;Ee.length;++Ue,Ee=Me,Me=[])Ee.forEach(function(me){me.height=Ue,me.targetLinks.forEach(function(Ne){Me.indexOf(Ne.source)<0&&Me.push(Ne.source)})});var Fe=(A-m-F)/(Ue-1);ke.nodes.forEach(function(me){me.x1=(me.x0=m+Math.max(0,Math.min(Ue-1,Math.floor(j.call(null,me,Ue))))*Fe)+F})}function de(ke){var Ee=r.nest().key(function(Ke){return Ke.x0}).sortKeys(t.ascending).entries(ke.nodes).map(function(Ke){return Ke.values});Fe(),ce();for(var Me=1,Ue=W;Ue>0;--Ue)Ne(Me*=.99),ce(),me(Me),ce();function Fe(){var Ke=t.max(Ee,function(Nt){return Nt.length}),it=re*(B-P)/(Ke-1);U>it&&(U=it);var bt=t.min(Ee,function(Nt){return(B-P-(Nt.length-1)*U)/t.sum(Nt,d)});Ee.forEach(function(Nt){Nt.forEach(function(nt,Ye){nt.y1=(nt.y0=Ye)+nt.value*bt})}),ke.links.forEach(function(Nt){Nt.width=Nt.value*bt})}function me(Ke){Ee.forEach(function(it){it.forEach(function(bt){if(bt.targetLinks.length){var Nt=(t.sum(bt.targetLinks,x)/t.sum(bt.targetLinks,d)-p(bt))*Ke;bt.y0+=Nt,bt.y1+=Nt}})})}function Ne(Ke){Ee.slice().reverse().forEach(function(it){it.forEach(function(bt){if(bt.sourceLinks.length){var Nt=(t.sum(bt.sourceLinks,b)/t.sum(bt.sourceLinks,d)-p(bt))*Ke;bt.y0+=Nt,bt.y1+=Nt}})})}function ce(){Ee.forEach(function(Ke){var it,bt,Nt=P,nt=Ke.length,Ye;for(Ke.sort(h),Ye=0;Ye0&&(it.y0+=bt,it.y1+=bt),Nt=it.y1+U;if(bt=Nt-U-B,bt>0)for(Nt=it.y0-=bt,it.y1-=bt,Ye=nt-2;Ye>=0;--Ye)it=Ke[Ye],bt=it.y1+U-Nt,bt>0&&(it.y0-=bt,it.y1-=bt),Nt=it.y0})}}function te(ke){ke.nodes.forEach(function(Ee){Ee.sourceLinks.sort(c),Ee.targetLinks.sort(f)}),ke.nodes.forEach(function(Ee){var Me=Ee.y0,Ue=Me;Ee.sourceLinks.forEach(function(Fe){Fe.y0=Me+Fe.width/2,Me+=Fe.width}),Ee.targetLinks.forEach(function(Fe){Fe.y1=Ue+Fe.width/2,Ue+=Fe.width})})}return ae};function _(m){return[m.source.x1,m.y0]}function C(m){return[m.target.x0,m.y1]}var S=function(){return n.linkHorizontal().source(_).target(C)};e.sankey=L,e.sankeyCenter=u,e.sankeyLeft=a,e.sankeyRight=o,e.sankeyJustify=s,e.sankeyLinkHorizontal=S,Object.defineProperty(e,"__esModule",{value:!0})})});var oXe=Te((B2r,aXe)=>{var KZt=JJ();aXe.exports=function(t,r){var n=[],i=[],a=[],o={},s=[],u;function l(E){a[E]=!1,o.hasOwnProperty(E)&&Object.keys(o[E]).forEach(function(T){delete o[E][T],a[T]&&l(T)})}function f(E){var T=!1;i.push(E),a[E]=!0;var L,_;for(L=0;L=E})}function d(E){h(E);for(var T=t,L=KZt(T),_=L.components.filter(function(F){return F.length>1}),C=1/0,S,m=0;m<_.length;m++)for(var P=0;P<_[m].length;P++)_[m][P]{(function(e,t){typeof zB=="object"&&typeof sXe!="undefined"?t(zB,ek(),SB(),$J(),oXe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,null)})(zB,function(e,t,r,n,i){"use strict";i=i&&i.hasOwnProperty("default")?i.default:i;function a(nt){return nt.target.depth}function o(nt){return nt.depth}function s(nt,Ye){return Ye-1-nt.height}function u(nt,Ye){return nt.sourceLinks.length?nt.depth:Ye-1}function l(nt){return nt.targetLinks.length?nt.depth:nt.sourceLinks.length?t.min(nt.sourceLinks,a)-1:0}function f(nt){return function(){return nt}}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(nt){return typeof nt}:function(nt){return nt&&typeof Symbol=="function"&&nt.constructor===Symbol&&nt!==Symbol.prototype?"symbol":typeof nt};function h(nt,Ye){return p(nt.source,Ye.source)||nt.index-Ye.index}function d(nt,Ye){return p(nt.target,Ye.target)||nt.index-Ye.index}function p(nt,Ye){return nt.partOfCycle===Ye.partOfCycle?nt.y0-Ye.y0:nt.circularLinkType==="top"||Ye.circularLinkType==="bottom"?-1:1}function x(nt){return nt.value}function b(nt){return(nt.y0+nt.y1)/2}function v(nt){return b(nt.source)}function k(nt){return b(nt.target)}function E(nt){return nt.index}function T(nt){return nt.nodes}function L(nt){return nt.links}function _(nt,Ye){var kt=nt.get(Ye);if(!kt)throw new Error("missing: "+Ye);return kt}function C(nt,Ye){return Ye(nt)}var S=25,m=10,P=.3;function A(){var nt=0,Ye=0,kt=1,At=1,St=24,Bt,Zt=E,Et=u,Ae=T,ot=L,dt=32,pt=2,at,Xe=null;function rt(){var Re={nodes:Ae.apply(null,arguments),links:ot.apply(null,arguments)};Qe(Re),B(Re,Zt,Xe),zt(Re),mr(Re),F(Re,Zt),_r(Re,dt,Zt),Ht(Re);for(var xe=4,Oe=0;Oe0?xe+S+m:xe,Oe=Oe>0?Oe+S+m:Oe,Ie=Ie>0?Ie+S+m:Ie,De=De>0?De+S+m:De,{top:xe,bottom:Oe,left:De,right:Ie}}function lr(Re,xe){var Oe=t.max(Re.nodes,function(mt){return mt.column}),Ie=kt-nt,De=At-Ye,ct=Ie+xe.right+xe.left,_e=De+xe.top+xe.bottom,fe=Ie/ct,pe=De/_e;return nt=nt*fe+xe.left,kt=xe.right==0?kt:kt*fe,Ye=Ye*pe+xe.top,At=At*pe,Re.nodes.forEach(function(mt){mt.x0=nt+mt.column*((kt-nt-St)/Oe),mt.x1=mt.x0+St}),pe}function mr(Re){var xe,Oe,Ie;for(xe=Re.nodes,Oe=[],Ie=0;xe.length;++Ie,xe=Oe,Oe=[])xe.forEach(function(De){De.depth=Ie,De.sourceLinks.forEach(function(ct){Oe.indexOf(ct.target)<0&&!ct.circular&&Oe.push(ct.target)})});for(xe=Re.nodes,Oe=[],Ie=0;xe.length;++Ie,xe=Oe,Oe=[])xe.forEach(function(De){De.height=Ie,De.targetLinks.forEach(function(ct){Oe.indexOf(ct.source)<0&&!ct.circular&&Oe.push(ct.source)})});Re.nodes.forEach(function(De){De.column=Math.floor(Et.call(null,De,Ie))})}function _r(Re,xe,Oe){var Ie=r.nest().key(function(mt){return mt.column}).sortKeys(t.ascending).entries(Re.nodes).map(function(mt){return mt.values});_e(Oe),pe();for(var De=1,ct=xe;ct>0;--ct)fe(De*=.99,Oe),pe();function _e(mt){if(at){var It=1/0;Ie.forEach(function(Nr){var Er=At*at/(Nr.length+1);It=Er0))if(Nr==0&&Wr==1)Br=Er.y1-Er.y0,Er.y0=At/2-Br/2,Er.y1=At/2+Br/2;else if(Nr==Pt-1&&Wr==1)Br=Er.y1-Er.y0,Er.y0=At/2-Br/2,Er.y1=At/2+Br/2;else{var mi=0,Di=t.mean(Er.sourceLinks,k),Ii=t.mean(Er.targetLinks,v);Di&&Ii?mi=(Di+Ii)/2:mi=Di||Ii;var Ci=(mi-b(Er))*mt;Er.y0+=Ci,Er.y1+=Ci}})})}function pe(){Ie.forEach(function(mt){var It,Pt,rr=Ye,Wr=mt.length,Nr;for(mt.sort(p),Nr=0;Nr0&&(It.y0+=Pt,It.y1+=Pt),rr=It.y1+Bt;if(Pt=rr-Bt-At,Pt>0)for(rr=It.y0-=Pt,It.y1-=Pt,Nr=Wr-2;Nr>=0;--Nr)It=mt[Nr],Pt=It.y1+Bt-rr,Pt>0&&(It.y0-=Pt,It.y1-=Pt),rr=It.y0})}}function Ht(Re){Re.nodes.forEach(function(xe){xe.sourceLinks.sort(d),xe.targetLinks.sort(h)}),Re.nodes.forEach(function(xe){var Oe=xe.y0,Ie=Oe,De=xe.y1,ct=De;xe.sourceLinks.forEach(function(_e){_e.circular?(_e.y0=De-_e.width/2,De=De-_e.width):(_e.y0=Oe+_e.width/2,Oe+=_e.width)}),xe.targetLinks.forEach(function(_e){_e.circular?(_e.y1=ct-_e.width/2,ct=ct-_e.width):(_e.y1=Ie+_e.width/2,Ie+=_e.width)})})}return rt}function B(nt,Ye,kt){var At=0;if(kt===null){for(var St=[],Bt=0;BtYe.source.column)}function j(nt,Ye){var kt=0;nt.sourceLinks.forEach(function(St){kt=St.circular&&!bt(St,Ye)?kt+1:kt});var At=0;return nt.targetLinks.forEach(function(St){At=St.circular&&!bt(St,Ye)?At+1:At}),kt+At}function H(nt){var Ye=nt.source.sourceLinks,kt=0;Ye.forEach(function(Bt){kt=Bt.circular?kt+1:kt});var At=nt.target.targetLinks,St=0;return At.forEach(function(Bt){St=Bt.circular?St+1:St}),!(kt>1||St>1)}function N(nt,Ye,kt){return nt.sort(ae),nt.forEach(function(At,St){var Bt=0;if(bt(At,kt)&&H(At))At.circularPathData.verticalBuffer=Bt+At.width/2;else{var Zt=0;for(Zt;ZtBt?Et:Bt}At.circularPathData.verticalBuffer=Bt+At.width/2}}),nt}function W(nt,Ye,kt,At){var St=5,Bt=t.min(nt.links,function(Ae){return Ae.source.y0});nt.links.forEach(function(Ae){Ae.circular&&(Ae.circularPathData={})});var Zt=nt.links.filter(function(Ae){return Ae.circularLinkType=="top"});N(Zt,Ye,At);var Et=nt.links.filter(function(Ae){return Ae.circularLinkType=="bottom"});N(Et,Ye,At),nt.links.forEach(function(Ae){if(Ae.circular){if(Ae.circularPathData.arcRadius=Ae.width+m,Ae.circularPathData.leftNodeBuffer=St,Ae.circularPathData.rightNodeBuffer=St,Ae.circularPathData.sourceWidth=Ae.source.x1-Ae.source.x0,Ae.circularPathData.sourceX=Ae.source.x0+Ae.circularPathData.sourceWidth,Ae.circularPathData.targetX=Ae.target.x0,Ae.circularPathData.sourceY=Ae.y0,Ae.circularPathData.targetY=Ae.y1,bt(Ae,At)&&H(Ae))Ae.circularPathData.leftSmallArcRadius=m+Ae.width/2,Ae.circularPathData.leftLargeArcRadius=m+Ae.width/2,Ae.circularPathData.rightSmallArcRadius=m+Ae.width/2,Ae.circularPathData.rightLargeArcRadius=m+Ae.width/2,Ae.circularLinkType=="bottom"?(Ae.circularPathData.verticalFullExtent=Ae.source.y1+S+Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.rightLargeArcRadius):(Ae.circularPathData.verticalFullExtent=Ae.source.y0-S-Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.rightLargeArcRadius);else{var ot=Ae.source.column,dt=Ae.circularLinkType,pt=nt.links.filter(function(rt){return rt.source.column==ot&&rt.circularLinkType==dt});Ae.circularLinkType=="bottom"?pt.sort(Pe):pt.sort(be);var at=0;pt.forEach(function(rt,Qe){rt.circularLinkID==Ae.circularLinkID&&(Ae.circularPathData.leftSmallArcRadius=m+Ae.width/2+at,Ae.circularPathData.leftLargeArcRadius=m+Ae.width/2+Qe*Ye+at),at=at+rt.width}),ot=Ae.target.column,pt=nt.links.filter(function(rt){return rt.target.column==ot&&rt.circularLinkType==dt}),Ae.circularLinkType=="bottom"?pt.sort(de):pt.sort(Ce),at=0,pt.forEach(function(rt,Qe){rt.circularLinkID==Ae.circularLinkID&&(Ae.circularPathData.rightSmallArcRadius=m+Ae.width/2+at,Ae.circularPathData.rightLargeArcRadius=m+Ae.width/2+Qe*Ye+at),at=at+rt.width}),Ae.circularLinkType=="bottom"?(Ae.circularPathData.verticalFullExtent=Math.max(kt,Ae.source.y1,Ae.target.y1)+S+Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.rightLargeArcRadius):(Ae.circularPathData.verticalFullExtent=Bt-S-Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.rightLargeArcRadius)}Ae.circularPathData.leftInnerExtent=Ae.circularPathData.sourceX+Ae.circularPathData.leftNodeBuffer,Ae.circularPathData.rightInnerExtent=Ae.circularPathData.targetX-Ae.circularPathData.rightNodeBuffer,Ae.circularPathData.leftFullExtent=Ae.circularPathData.sourceX+Ae.circularPathData.leftLargeArcRadius+Ae.circularPathData.leftNodeBuffer,Ae.circularPathData.rightFullExtent=Ae.circularPathData.targetX-Ae.circularPathData.rightLargeArcRadius-Ae.circularPathData.rightNodeBuffer}if(Ae.circular)Ae.path=re(Ae);else{var Xe=n.linkHorizontal().source(function(rt){var Qe=rt.source.x0+(rt.source.x1-rt.source.x0),zt=rt.y0;return[Qe,zt]}).target(function(rt){var Qe=rt.target.x0,zt=rt.y1;return[Qe,zt]});Ae.path=Xe(Ae)}})}function re(nt){var Ye="";return nt.circularLinkType=="top"?Ye="M"+nt.circularPathData.sourceX+" "+nt.circularPathData.sourceY+" L"+nt.circularPathData.leftInnerExtent+" "+nt.circularPathData.sourceY+" A"+nt.circularPathData.leftLargeArcRadius+" "+nt.circularPathData.leftSmallArcRadius+" 0 0 0 "+nt.circularPathData.leftFullExtent+" "+(nt.circularPathData.sourceY-nt.circularPathData.leftSmallArcRadius)+" L"+nt.circularPathData.leftFullExtent+" "+nt.circularPathData.verticalLeftInnerExtent+" A"+nt.circularPathData.leftLargeArcRadius+" "+nt.circularPathData.leftLargeArcRadius+" 0 0 0 "+nt.circularPathData.leftInnerExtent+" "+nt.circularPathData.verticalFullExtent+" L"+nt.circularPathData.rightInnerExtent+" "+nt.circularPathData.verticalFullExtent+" A"+nt.circularPathData.rightLargeArcRadius+" "+nt.circularPathData.rightLargeArcRadius+" 0 0 0 "+nt.circularPathData.rightFullExtent+" "+nt.circularPathData.verticalRightInnerExtent+" L"+nt.circularPathData.rightFullExtent+" "+(nt.circularPathData.targetY-nt.circularPathData.rightSmallArcRadius)+" A"+nt.circularPathData.rightLargeArcRadius+" "+nt.circularPathData.rightSmallArcRadius+" 0 0 0 "+nt.circularPathData.rightInnerExtent+" "+nt.circularPathData.targetY+" L"+nt.circularPathData.targetX+" "+nt.circularPathData.targetY:Ye="M"+nt.circularPathData.sourceX+" "+nt.circularPathData.sourceY+" L"+nt.circularPathData.leftInnerExtent+" "+nt.circularPathData.sourceY+" A"+nt.circularPathData.leftLargeArcRadius+" "+nt.circularPathData.leftSmallArcRadius+" 0 0 1 "+nt.circularPathData.leftFullExtent+" "+(nt.circularPathData.sourceY+nt.circularPathData.leftSmallArcRadius)+" L"+nt.circularPathData.leftFullExtent+" "+nt.circularPathData.verticalLeftInnerExtent+" A"+nt.circularPathData.leftLargeArcRadius+" "+nt.circularPathData.leftLargeArcRadius+" 0 0 1 "+nt.circularPathData.leftInnerExtent+" "+nt.circularPathData.verticalFullExtent+" L"+nt.circularPathData.rightInnerExtent+" "+nt.circularPathData.verticalFullExtent+" A"+nt.circularPathData.rightLargeArcRadius+" "+nt.circularPathData.rightLargeArcRadius+" 0 0 1 "+nt.circularPathData.rightFullExtent+" "+nt.circularPathData.verticalRightInnerExtent+" L"+nt.circularPathData.rightFullExtent+" "+(nt.circularPathData.targetY+nt.circularPathData.rightSmallArcRadius)+" A"+nt.circularPathData.rightLargeArcRadius+" "+nt.circularPathData.rightSmallArcRadius+" 0 0 1 "+nt.circularPathData.rightInnerExtent+" "+nt.circularPathData.targetY+" L"+nt.circularPathData.targetX+" "+nt.circularPathData.targetY,Ye}function ae(nt,Ye){return te(nt)==te(Ye)?nt.circularLinkType=="bottom"?Pe(nt,Ye):be(nt,Ye):te(Ye)-te(nt)}function be(nt,Ye){return nt.y0-Ye.y0}function Pe(nt,Ye){return Ye.y0-nt.y0}function Ce(nt,Ye){return nt.y1-Ye.y1}function de(nt,Ye){return Ye.y1-nt.y1}function te(nt){return nt.target.column-nt.source.column}function ke(nt){return nt.target.x0-nt.source.x1}function Ee(nt,Ye){var kt=U(nt),At=ke(Ye)/Math.tan(kt),St=it(nt)=="up"?nt.y1+At:nt.y1-At;return St}function Me(nt,Ye){var kt=U(nt),At=ke(Ye)/Math.tan(kt),St=it(nt)=="up"?nt.y1-At:nt.y1+At;return St}function Ue(nt,Ye,kt,At){nt.links.forEach(function(St){if(!St.circular&&St.target.column-St.source.column>1){var Bt=St.source.column+1,Zt=St.target.column-1,Et=1,Ae=Zt-Bt+1;for(Et=1;Bt<=Zt;Bt++,Et++)nt.nodes.forEach(function(ot){if(ot.column==Bt){var dt=Et/(Ae+1),pt=Math.pow(1-dt,3),at=3*dt*Math.pow(1-dt,2),Xe=3*Math.pow(dt,2)*(1-dt),rt=Math.pow(dt,3),Qe=pt*St.y0+at*St.y0+Xe*St.y1+rt*St.y1,zt=Qe-St.width/2,Yt=Qe+St.width/2,lr;zt>ot.y0&&ztot.y0&&Ytot.y1&&me(mr,lr,Ye,kt)})):ztot.y1&&(lr=Yt-ot.y0+10,ot=me(ot,lr,Ye,kt),nt.nodes.forEach(function(mr){C(mr,At)==C(ot,At)||mr.column!=ot.column||mr.y0ot.y1&&me(mr,lr,Ye,kt)}))}})}})}function Fe(nt,Ye){return nt.y0>Ye.y0&&nt.y0Ye.y0&&nt.y1Ye.y1}function me(nt,Ye,kt,At){return nt.y0+Ye>=kt&&nt.y1+Ye<=At&&(nt.y0=nt.y0+Ye,nt.y1=nt.y1+Ye,nt.targetLinks.forEach(function(St){St.y1=St.y1+Ye}),nt.sourceLinks.forEach(function(St){St.y0=St.y0+Ye})),nt}function Ne(nt,Ye,kt,At){nt.nodes.forEach(function(St){At&&St.y+(St.y1-St.y0)>Ye&&(St.y=St.y-(St.y+(St.y1-St.y0)-Ye));var Bt=nt.links.filter(function(Ae){return C(Ae.source,kt)==C(St,kt)}),Zt=Bt.length;Zt>1&&Bt.sort(function(Ae,ot){if(!Ae.circular&&!ot.circular){if(Ae.target.column==ot.target.column)return Ae.y1-ot.y1;if(Ke(Ae,ot)){if(Ae.target.column>ot.target.column){var dt=Me(ot,Ae);return Ae.y1-dt}if(ot.target.column>Ae.target.column){var pt=Me(Ae,ot);return pt-ot.y1}}else return Ae.y1-ot.y1}if(Ae.circular&&!ot.circular)return Ae.circularLinkType=="top"?-1:1;if(ot.circular&&!Ae.circular)return ot.circularLinkType=="top"?1:-1;if(Ae.circular&&ot.circular)return Ae.circularLinkType===ot.circularLinkType&&Ae.circularLinkType=="top"?Ae.target.column===ot.target.column?Ae.target.y1-ot.target.y1:ot.target.column-Ae.target.column:Ae.circularLinkType===ot.circularLinkType&&Ae.circularLinkType=="bottom"?Ae.target.column===ot.target.column?ot.target.y1-Ae.target.y1:Ae.target.column-ot.target.column:Ae.circularLinkType=="top"?-1:1});var Et=St.y0;Bt.forEach(function(Ae){Ae.y0=Et+Ae.width/2,Et=Et+Ae.width}),Bt.forEach(function(Ae,ot){if(Ae.circularLinkType=="bottom"){var dt=ot+1,pt=0;for(dt;dt1&&St.sort(function(Et,Ae){if(!Et.circular&&!Ae.circular){if(Et.source.column==Ae.source.column)return Et.y0-Ae.y0;if(Ke(Et,Ae)){if(Ae.source.column0?"up":"down"}function bt(nt,Ye){return C(nt.source,Ye)==C(nt.target,Ye)}function Nt(nt,Ye,kt){var At=nt.nodes,St=nt.links,Bt=!1,Zt=!1;if(St.forEach(function(at){at.circularLinkType=="top"?Bt=!0:at.circularLinkType=="bottom"&&(Zt=!0)}),Bt==!1||Zt==!1){var Et=t.min(At,function(at){return at.y0}),Ae=t.max(At,function(at){return at.y1}),ot=Ae-Et,dt=kt-Ye,pt=dt/ot;At.forEach(function(at){var Xe=(at.y1-at.y0)*pt;at.y0=(at.y0-Et)*pt,at.y1=at.y0+Xe}),St.forEach(function(at){at.y0=(at.y0-Et)*pt,at.y1=(at.y1-Et)*pt,at.width=at.width*pt})}}e.sankeyCircular=A,e.sankeyCenter=l,e.sankeyLeft=o,e.sankeyRight=s,e.sankeyJustify=u,Object.defineProperty(e,"__esModule",{value:!0})})});var QJ=Te((O2r,uXe)=>{"use strict";uXe.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}});var wXe=Te((q2r,bXe)=>{"use strict";var fXe=Qje(),JZt=(I2(),q1(z2)).interpolateNumber,LS=Jl(),jk=nXe(),$Zt=lXe(),dc=QJ(),PS=cd(),aw=jl(),QZt=Mu(),v1=ei(),r$=v1.strTranslate,eYt=v1.strRotate,i$=Ky(),Xk=i$.keyFun,IB=i$.repeat,mXe=i$.unwrap,cXe=Zf(),tYt=$l(),yXe=Qh(),rYt=yXe.CAP_SHIFT,iYt=yXe.LINE_SPACING,nYt=3;function aYt(e,t,r){var n=mXe(t),i=n.trace,a=i.domain,o=i.orientation==="h",s=i.node.pad,u=i.node.thickness,l={justify:jk.sankeyJustify,left:jk.sankeyLeft,right:jk.sankeyRight,center:jk.sankeyCenter}[i.node.align],f=e.width*(a.x[1]-a.x[0]),c=e.height*(a.y[1]-a.y[0]),h=n._nodes,d=n._links,p=n.circular,x;p?x=$Zt.sankeyCircular().circularLinkGap(0):x=jk.sankey(),x.iterations(dc.sankeyIterations).size(o?[f,c]:[c,f]).nodeWidth(u).nodePadding(s).nodeId(function(U){return U.pointNumber}).nodeAlign(l).nodes(h).links(d);var b=x();x.nodePadding()=N||(H=N-j.y0,H>1e-6&&(j.y0+=H,j.y1+=H)),N=j.y1+s})}function P(U){var G=U.map(function(be,Pe){return{x0:be.x0,index:Pe}}).sort(function(be,Pe){return be.x0-Pe.x0}),j=[],H=-1,N,W=-1/0,re;for(v=0;vW+u&&(H+=1,N=ae.x0),W=ae.x0,j[H]||(j[H]=[]),j[H].push(ae),re=N-ae.x0,ae.x0+=re,ae.x1+=re}return j}if(i.node.x.length&&i.node.y.length){for(v=0;v0?" L "+i.targetX+" "+i.targetY:"")+"Z"):(r="M "+(i.targetX-t)+" "+(i.targetY-n)+" L "+(i.rightInnerExtent-t)+" "+(i.targetY-n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightSmallArcRadius+n)+" 0 0 0 "+(i.rightFullExtent-n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" L "+(i.rightFullExtent-n-t)+" "+i.verticalRightInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-n-t)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent+n-t-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:a?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent-t-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.leftFullExtent+n+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent+n)+" L "+i.leftInnerExtent+" "+(i.verticalFullExtent+n)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent,r+=" L "+(i.leftFullExtent+n)+" "+(i.sourceY+i.leftSmallArcRadius)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftSmallArcRadius+n)+" 0 0 0 "+i.leftInnerExtent+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY+n)+" L "+i.leftInnerExtent+" "+(i.sourceY+n)+" A "+(i.leftLargeArcRadius-n)+" "+(i.leftSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n)+" "+(i.sourceY+i.leftSmallArcRadius)+" L "+(i.leftFullExtent-n)+" "+i.verticalLeftInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.rightFullExtent+n-t+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:a?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent-t-n)+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:r+=" A "+(i.leftLargeArcRadius-n)+" "+(i.leftLargeArcRadius-n)+" 0 0 1 "+i.leftInnerExtent+" "+(i.verticalFullExtent-n)+" L "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightLargeArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent,r+=" L "+(i.rightFullExtent+n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightInnerExtent-t)+" "+(i.targetY+n)+" L "+(i.targetX-t)+" "+(i.targetY+n)+(t>0?" L "+i.targetX+" "+i.targetY:"")+"Z"),r}function n$(){var e=.5;function t(r){var n=r.linkArrowLength;if(r.link.circular)return sYt(r.link,n);var i=Math.abs((r.link.target.x0-r.link.source.x1)/2);n>i&&(n=i);var a=r.link.source.x1,o=r.link.target.x0-n,s=JZt(a,o),u=s(e),l=s(1-e),f=r.link.y0-r.link.width/2,c=r.link.y0+r.link.width/2,h=r.link.y1-r.link.width/2,d=r.link.y1+r.link.width/2,p="M"+a+","+f,x="C"+u+","+f+" "+l+","+h+" "+o+","+h,b="C"+l+","+d+" "+u+","+c+" "+a+","+c,v=n>0?"L"+(o+n)+","+(h+r.link.width/2):"";return v+="L"+o+","+d,p+x+v+b+"Z"}return t}function lYt(e,t){var r=PS(t.color),n=dc.nodePadAcross,i=e.nodePad/2;t.dx=t.x1-t.x0,t.dy=t.y1-t.y0;var a=t.dx,o=Math.max(.5,t.dy),s="node_"+t.pointNumber;return t.group&&(s=v1.randstr()),t.trace=e.trace,t.curveNumber=e.trace.index,{index:t.pointNumber,key:s,partOfGroup:t.partOfGroup||!1,group:t.group,traceId:e.key,trace:e.trace,node:t,nodePad:e.nodePad,nodeLineColor:e.nodeLineColor,nodeLineWidth:e.nodeLineWidth,textFont:e.textFont,size:e.horizontal?e.height:e.width,visibleWidth:Math.ceil(a),visibleHeight:o,zoneX:-n,zoneY:-i,zoneWidth:a+2*n,zoneHeight:o+2*i,labelY:e.horizontal?t.dy/2+1:t.dx/2+1,left:t.originalLayer===1,sizeAcross:e.width,forceLayouts:e.forceLayouts,horizontal:e.horizontal,darkBackground:r.getBrightness()<=128,tinyColorHue:aw.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,graph:e.graph,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,s].join("_"),interactionState:e.interactionState,figure:e}}function t$(e){e.attr("transform",function(t){return r$(t.node.x0.toFixed(3),t.node.y0.toFixed(3))})}function uYt(e){e.call(t$)}function gXe(e,t){e.call(uYt),t.attr("d",n$())}function hXe(e){e.attr("width",function(t){return t.node.x1-t.node.x0}).attr("height",function(t){return t.visibleHeight})}function e$(e){return e.link.width>1||e.linkLineWidth>0}function dXe(e){var t=r$(e.translateX,e.translateY);return t+(e.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function pXe(e,t,r){e.on(".basic",null).on("mouseover.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.hover(this,n,t),n.interactionState.hovered=[this,n])}).on("mousemove.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.follow(this,n),n.interactionState.hovered=[this,n])}).on("mouseout.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.unhover(this,n,t),n.interactionState.hovered=!1)}).on("click.basic",function(n){n.interactionState.hovered&&(r.unhover(this,n,t),n.interactionState.hovered=!1),!n.interactionState.dragInProgress&&!n.partOfGroup&&r.select(this,n,t)})}function fYt(e,t,r,n){var i=LS.behavior.drag().origin(function(a){return{x:a.node.x0+a.visibleWidth/2,y:a.node.y0+a.visibleHeight/2}}).on("dragstart",function(a){if(a.arrangement!=="fixed"&&(v1.ensureSingle(n._fullLayout._infolayer,"g","dragcover",function(s){n._fullLayout._dragCover=s}),v1.raiseToTop(this),a.interactionState.dragInProgress=a.node,vXe(a.node),a.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,a.interactionState.hovered),a.interactionState.hovered=!1),a.arrangement==="snap")){var o=a.traceId+"|"+a.key;a.forceLayouts[o]?a.forceLayouts[o].alpha(1):cYt(e,o,a,n),hYt(e,t,a,o,n)}}).on("drag",function(a){if(a.arrangement!=="fixed"){var o=LS.event.x,s=LS.event.y;a.arrangement==="snap"?(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2,a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2):(a.arrangement==="freeform"&&(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2),s=Math.max(0,Math.min(a.size-a.visibleHeight/2,s)),a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2),vXe(a.node),a.arrangement!=="snap"&&(a.sankey.update(a.graph),gXe(e.filter(xXe(a)),t))}}).on("dragend",function(a){if(a.arrangement!=="fixed"){a.interactionState.dragInProgress=!1;for(var o=0;o0)window.requestAnimationFrame(a);else{var u=r.node.originalX;r.node.x0=u-r.visibleWidth/2,r.node.x1=u+r.visibleWidth/2,_Xe(r,i)}})}function dYt(e,t,r,n){return function(){for(var a=0,o=0;o0&&n.forceLayouts[t].alpha(0)}}function _Xe(e,t){for(var r=[],n=[],i=0;i{"use strict";var Xp=Jl(),o$=ei(),RB=o$.numberFormat,yYt=wXe(),zS=jc(),gYt=jl(),Sx=QJ().cn,Zk=o$._;function AXe(e){return e!==""}function IS(e,t){return e.filter(function(r){return r.key===t.traceId})}function TXe(e,t){Xp.select(e).select("path").style("fill-opacity",t),Xp.select(e).select("rect").style("fill-opacity",t)}function SXe(e){Xp.select(e).select("text.name").style("fill","black")}function MXe(e){return function(t){return e.node.sourceLinks.indexOf(t.link)!==-1||e.node.targetLinks.indexOf(t.link)!==-1}}function EXe(e){return function(t){return t.node.sourceLinks.indexOf(e.link)!==-1||t.node.targetLinks.indexOf(e.link)!==-1}}function kXe(e,t,r){t&&r&&IS(r,t).selectAll("."+Sx.sankeyLink).filter(MXe(t)).call(CXe.bind(0,t,r,!1))}function a$(e,t,r){t&&r&&IS(r,t).selectAll("."+Sx.sankeyLink).filter(MXe(t)).call(LXe.bind(0,t,r,!1))}function CXe(e,t,r,n){n.style("fill",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverHue}).style("fill-opacity",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverAlpha}),n.each(function(i){var a=i.link.label;a!==""&&IS(t,e).selectAll("."+Sx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverHue}).style("fill-opacity",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverAlpha})}),r&&IS(t,e).selectAll("."+Sx.sankeyNode).filter(EXe(e)).call(kXe)}function LXe(e,t,r,n){n.style("fill",function(i){return i.tinyColorHue}).style("fill-opacity",function(i){return i.tinyColorAlpha}),n.each(function(i){var a=i.link.label;a!==""&&IS(t,e).selectAll("."+Sx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){return o.tinyColorHue}).style("fill-opacity",function(o){return o.tinyColorAlpha})}),r&&IS(t,e).selectAll(Sx.sankeyNode).filter(EXe(e)).call(a$)}function th(e,t){var r=e.hoverlabel||{},n=o$.nestedProperty(r,t).get();return Array.isArray(n)?!1:n}PXe.exports=function(t,r){for(var n=t._fullLayout,i=n._paper,a=n._size,o=0;o"),color:th(C,"bgcolor")||gYt.addOpacity(B.color,1),borderColor:th(C,"bordercolor"),fontFamily:th(C,"font.family"),fontSize:th(C,"font.size"),fontColor:th(C,"font.color"),fontWeight:th(C,"font.weight"),fontStyle:th(C,"font.style"),fontVariant:th(C,"font.variant"),fontTextcase:th(C,"font.textcase"),fontLineposition:th(C,"font.lineposition"),fontShadow:th(C,"font.shadow"),nameLength:th(C,"namelength"),textAlign:th(C,"align"),idealAlign:Xp.event.x"),color:th(C,"bgcolor")||_.tinyColorHue,borderColor:th(C,"bordercolor"),fontFamily:th(C,"font.family"),fontSize:th(C,"font.size"),fontColor:th(C,"font.color"),fontWeight:th(C,"font.weight"),fontStyle:th(C,"font.style"),fontVariant:th(C,"font.variant"),fontTextcase:th(C,"font.textcase"),fontLineposition:th(C,"font.lineposition"),fontShadow:th(C,"font.shadow"),nameLength:th(C,"namelength"),textAlign:th(C,"align"),idealAlign:"left",hovertemplate:C.hovertemplate,hovertemplateLabels:U,eventData:[_.node]},{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:t});TXe(H,.85),SXe(H)}}},T=function(L,_,C){t._fullLayout.hovermode!==!1&&(Xp.select(L).call(a$,_,C),_.node.trace.node.hoverinfo!=="skip"&&(_.node.fullData=_.node.trace,t.emit("plotly_unhover",{event:Xp.event,points:[_.node]})),zS.loneUnhover(n._hoverlayer.node()))};yYt(t,i,r,{width:a.w,height:a.h,margin:{t:a.t,r:a.r,b:a.b,l:a.l}},{linkEvents:{hover:l,follow:x,unhover:b,select:u},nodeEvents:{hover:k,follow:E,unhover:T,select:v}})}});var zXe=Te(ow=>{"use strict";var _Yt=Sc().overrideAll,xYt=Rd().getModuleCalcData,bYt=s$(),wYt=N1(),AYt=Am(),TYt=gp(),SYt=nh().prepSelect,l$=ei(),MYt=$l(),DB="sankey";ow.name=DB;ow.baseLayoutAttrOverrides=_Yt({hoverlabel:wYt.hoverlabel},"plot","nested");ow.plot=function(e){var t=xYt(e.calcdata,DB)[0];bYt(e,t),ow.updateFx(e)};ow.clean=function(e,t,r,n){var i=n._has&&n._has(DB),a=t._has&&t._has(DB);i&&!a&&(n._paperdiv.selectAll(".sankey").remove(),n._paperdiv.selectAll(".bgsankey").remove())};ow.updateFx=function(e){for(var t=0;t{"use strict";IXe.exports=function(t,r){for(var n=t.cd,i=[],a=n[0].trace,o=a._sankey.graph.nodes,s=0;s{"use strict";DXe.exports={attributes:KJ(),supplyDefaults:qje(),calc:Hje(),plot:s$(),moduleType:"trace",name:"sankey",basePlotModule:zXe(),selectPoints:RXe(),categories:["noOpacity"],meta:{}}});var OXe=Te((H2r,BXe)=>{"use strict";BXe.exports=FXe()});var NXe=Te(RS=>{"use strict";var qXe=Cc();RS.name="indicator";RS.plot=function(e,t,r,n){qXe.plotBasePlot(RS.name,e,t,r,n)};RS.clean=function(e,t,r,n){qXe.cleanBasePlot(RS.name,e,t,r,n)}});var f$=Te((j2r,jXe)=>{"use strict";var Mx=Su().extendFlat,VXe=Su().extendDeep,kYt=Sc().overrideAll,GXe=gc(),HXe=Ih(),CYt=zc().attributes,sh=Dd(),LYt=Pf().templatedArray,FB=GA(),UXe=Hc().descriptionOnlyNumbers,u$=GXe({editType:"plot",colorEditType:"plot"}),Yk={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:HXe.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},WXe={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},PYt=LYt("step",VXe({},Yk,{range:WXe}));jXe.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:CYt({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:Mx({},u$,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:UXe("value")},font:Mx({},u$,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:UXe("value")},increasing:{symbol:{valType:"string",dflt:FB.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:FB.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:FB.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:FB.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:Mx({},u$,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:VXe({},Yk,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:HXe.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:kYt({range:WXe,visible:Mx({},sh.visible,{dflt:!0}),tickmode:sh.minor.tickmode,nticks:sh.nticks,tick0:sh.tick0,dtick:sh.dtick,tickvals:sh.tickvals,ticktext:sh.ticktext,ticks:Mx({},sh.ticks,{dflt:"outside"}),ticklen:sh.ticklen,tickwidth:sh.tickwidth,tickcolor:sh.tickcolor,ticklabelstep:sh.ticklabelstep,showticklabels:sh.showticklabels,labelalias:sh.labelalias,tickfont:GXe({}),tickangle:sh.tickangle,tickformat:sh.tickformat,tickformatstops:sh.tickformatstops,tickprefix:sh.tickprefix,showtickprefix:sh.showtickprefix,ticksuffix:sh.ticksuffix,showticksuffix:sh.showticksuffix,separatethousands:sh.separatethousands,exponentformat:sh.exponentformat,minexponent:sh.minexponent,showexponent:sh.showexponent,editType:"plot"},"plot"),steps:PYt,threshold:{line:{color:Mx({},Yk.line.color,{}),width:Mx({},Yk.line.width,{dflt:1}),editType:"plot"},thickness:Mx({},Yk.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var c$=Te((X2r,XXe)=>{"use strict";XXe.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var KXe=Te((Z2r,YXe)=>{"use strict";var eg=ei(),OB=f$(),zYt=zc().defaults,ZXe=Pf(),IYt=Jd(),BB=c$(),RYt=xb(),DYt=A3(),FYt=t_(),BYt=r_();function OYt(e,t,r,n){function i(_,C){return eg.coerce(e,t,OB,_,C)}zYt(t,n,i),i("mode"),t._hasNumber=t.mode.indexOf("number")!==-1,t._hasDelta=t.mode.indexOf("delta")!==-1,t._hasGauge=t.mode.indexOf("gauge")!==-1;var a=i("value");t._range=[0,typeof a=="number"?1.5*a:1];var o=new Array(2),s;if(t._hasNumber){i("number.valueformat");var u=eg.extendFlat({},n.font);u.size=void 0,eg.coerceFont(i,"number.font",u),t.number.font.size===void 0&&(t.number.font.size=BB.defaultNumberFontSize,o[0]=!0),i("number.prefix"),i("number.suffix"),s=t.number.font.size}var l;if(t._hasDelta){var f=eg.extendFlat({},n.font);f.size=void 0,eg.coerceFont(i,"delta.font",f),t.delta.font.size===void 0&&(t.delta.font.size=(t._hasNumber?.5:1)*(s||BB.defaultNumberFontSize),o[1]=!0),i("delta.reference",t.value),i("delta.relative"),i("delta.valueformat",t.delta.relative?"2%":""),i("delta.increasing.symbol"),i("delta.increasing.color"),i("delta.decreasing.symbol"),i("delta.decreasing.color"),i("delta.position"),i("delta.prefix"),i("delta.suffix"),l=t.delta.font.size}t._scaleNumbers=(!t._hasNumber||o[0])&&(!t._hasDelta||o[1])||!1;var c=eg.extendFlat({},n.font);c.size=.25*(s||l||BB.defaultNumberFontSize),eg.coerceFont(i,"title.font",c),i("title.text");var h,d,p,x;function b(_,C){return eg.coerce(h,d,OB.gauge,_,C)}function v(_,C){return eg.coerce(p,x,OB.gauge.axis,_,C)}if(t._hasGauge){h=e.gauge,h||(h={}),d=ZXe.newContainer(t,"gauge"),b("shape");var k=t._isBullet=t.gauge.shape==="bullet";k||i("title.align","center");var E=t._isAngular=t.gauge.shape==="angular";E||i("align","center"),b("bgcolor",n.paper_bgcolor),b("borderwidth"),b("bordercolor"),b("bar.color"),b("bar.line.color"),b("bar.line.width");var T=BB.valueThickness*(t.gauge.shape==="bullet"?.5:1);b("bar.thickness",T),IYt(h,d,{name:"steps",handleItemDefaults:qYt}),b("threshold.value"),b("threshold.thickness"),b("threshold.line.width"),b("threshold.line.color"),p={},h&&(p=h.axis||{}),x=ZXe.newContainer(d,"axis"),v("visible"),t._range=v("range",t._range);var L={font:n.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};RYt(p,x,v,"linear"),BYt(p,x,v,"linear",L),FYt(p,x,v,"linear",L),DYt(p,x,v,L)}else i("title.align","center"),i("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function qYt(e,t){function r(n,i){return eg.coerce(e,t,OB.gauge.steps,n,i)}r("color"),r("line.color"),r("line.width"),r("range"),r("thickness")}YXe.exports={supplyDefaults:OYt}});var $Xe=Te((Y2r,JXe)=>{"use strict";function NYt(e,t){var r=[],n=t.value;typeof t._lastValue!="number"&&(t._lastValue=t.value);var i=t._lastValue,a=i;return t._hasDelta&&typeof t.delta.reference=="number"&&(a=t.delta.reference),r[0]={y:n,lastY:i,delta:n-a,relativeDelta:(n-a)/a},r}JXe.exports={calc:NYt}});var nZe=Te((K2r,iZe)=>{"use strict";var cw=Jl(),UYt=(I2(),q1(z2)).interpolate,QXe=(I2(),q1(z2)).interpolateNumber,Ex=ei(),VYt=Ex.strScale,Jk=Ex.strTranslate,GYt=Ex.rad2deg,HYt=Qh().MID_SHIFT,fw=Mu(),sw=c$(),NB=Zf(),up=wu(),WYt=$5(),jYt=aI(),XYt=Dd(),DS=jl(),h$={left:"start",center:"middle",right:"end"},lw={left:0,center:.5,right:1},eZe=/[yzafpnµmkMGTPEZY]/;function $k(e){return e&&e.duration>0}iZe.exports=function(t,r,n,i){var a=t._fullLayout,o;$k(n)&&i&&(o=i()),Ex.makeTraceGroups(a._indicatorlayer,r,"trace").each(function(s){var u=s[0],l=u.trace,f=cw.select(this),c=l._hasGauge,h=l._isAngular,d=l._isBullet,p=l.domain,x={w:a._size.w*(p.x[1]-p.x[0]),h:a._size.h*(p.y[1]-p.y[0]),l:a._size.l+a._size.w*p.x[0],r:a._size.r+a._size.w*(1-p.x[1]),t:a._size.t+a._size.h*(1-p.y[1]),b:a._size.b+a._size.h*p.y[0]},b=x.l+x.w/2,v=x.t+x.h/2,k=Math.min(x.w/2,x.h),E=sw.innerRadius*k,T,L,_,C=l.align||"center";if(L=v,!c)T=x.l+lw[C]*x.w,_=function(H){return tZe(H,x.w,x.h)};else if(h&&(T=b,L=v+k/2,_=function(H){return $Yt(H,.9*E)}),d){var S=sw.bulletPadding,m=1-sw.bulletNumberDomainSize+S;T=x.l+(m+(1-m)*lw[C])*x.w,_=function(H){return tZe(H,(sw.bulletNumberDomainSize-S)*x.w,x.h)}}KYt(t,f,s,{numbersX:T,numbersY:L,numbersScaler:_,transitionOpts:n,onComplete:o});var P,A;c&&(P={range:l.gauge.axis.range,color:l.gauge.bgcolor,line:{color:l.gauge.bordercolor,width:0},thickness:1},A={range:l.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:l.gauge.bordercolor,width:l.gauge.borderwidth},thickness:1});var B=f.selectAll("g.angular").data(h?s:[]);B.exit().remove();var F=f.selectAll("g.angularaxis").data(h?s:[]);F.exit().remove(),h&&YYt(t,f,s,{radius:k,innerRadius:E,gauge:B,layer:F,size:x,gaugeBg:P,gaugeOutline:A,transitionOpts:n,onComplete:o});var U=f.selectAll("g.bullet").data(d?s:[]);U.exit().remove();var G=f.selectAll("g.bulletaxis").data(d?s:[]);G.exit().remove(),d&&ZYt(t,f,s,{gauge:U,layer:G,size:x,gaugeBg:P,gaugeOutline:A,transitionOpts:n,onComplete:o});var j=f.selectAll("text.title").data(s);j.exit().remove(),j.enter().append("text").classed("title",!0),j.attr("text-anchor",function(){return d?h$.right:h$[l.title.align]}).text(l.title.text).call(fw.font,l.title.font).call(NB.convertToTspans,t),j.attr("transform",function(){var H=x.l+x.w*lw[l.title.align],N,W=sw.titlePadding,re=fw.bBox(j.node());if(c){if(h)if(l.gauge.axis.visible){var ae=fw.bBox(F.node());N=ae.top-W-re.bottom}else N=x.t+x.h/2-k/2-re.bottom-W;d&&(N=L-(re.top+re.bottom)/2,H=x.l-sw.bulletPadding*x.w)}else N=l._numbersTop-W-re.bottom;return Jk(H,N)})})};function ZYt(e,t,r,n){var i=r[0].trace,a=n.gauge,o=n.layer,s=n.gaugeBg,u=n.gaugeOutline,l=n.size,f=i.domain,c=n.transitionOpts,h=n.onComplete,d,p,x,b,v;a.enter().append("g").classed("bullet",!0),a.attr("transform",Jk(l.l,l.t)),o.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),o.selectAll("g.xbulletaxistick,path,text").remove();var k=l.h,E=i.gauge.bar.thickness*k,T=f.x[0],L=f.x[0]+(f.x[1]-f.x[0])*(i._hasNumber||i._hasDelta?1-sw.bulletNumberDomainSize:1);d=Kk(e,i.gauge.axis),d._id="xbulletaxis",d.domain=[T,L],d.setScale(),p=up.calcTicks(d),x=up.makeTransTickFn(d),b=up.getTickSigns(d)[2],v=l.t+l.h,d.visible&&(up.drawTicks(e,d,{vals:d.ticks==="inside"?up.clipEnds(d,p):p,layer:o,path:up.makeTickPath(d,v,b),transFn:x}),up.drawLabels(e,d,{vals:p,layer:o,transFn:x,labelFns:up.makeLabelFns(d,v)}));function _(F){F.attr("width",function(U){return Math.max(0,d.c2p(U.range[1])-d.c2p(U.range[0]))}).attr("x",function(U){return d.c2p(U.range[0])}).attr("y",function(U){return .5*(1-U.thickness)*k}).attr("height",function(U){return U.thickness*k})}var C=[s].concat(i.gauge.steps),S=a.selectAll("g.bg-bullet").data(C);S.enter().append("g").classed("bg-bullet",!0).append("rect"),S.select("rect").call(_).call(uw),S.exit().remove();var m=a.selectAll("g.value-bullet").data([i.gauge.bar]);m.enter().append("g").classed("value-bullet",!0).append("rect"),m.select("rect").attr("height",E).attr("y",(k-E)/2).call(uw),$k(c)?m.select("rect").transition().duration(c.duration).ease(c.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()}).attr("width",Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y)))):m.select("rect").attr("width",typeof r[0].y=="number"?Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y))):0),m.exit().remove();var P=r.filter(function(){return i.gauge.threshold.value||i.gauge.threshold.value===0}),A=a.selectAll("g.threshold-bullet").data(P);A.enter().append("g").classed("threshold-bullet",!0).append("line"),A.select("line").attr("x1",d.c2p(i.gauge.threshold.value)).attr("x2",d.c2p(i.gauge.threshold.value)).attr("y1",(1-i.gauge.threshold.thickness)/2*k).attr("y2",(1-(1-i.gauge.threshold.thickness)/2)*k).call(DS.stroke,i.gauge.threshold.line.color).style("stroke-width",i.gauge.threshold.line.width),A.exit().remove();var B=a.selectAll("g.gauge-outline").data([u]);B.enter().append("g").classed("gauge-outline",!0).append("rect"),B.select("rect").call(_).call(uw),B.exit().remove()}function YYt(e,t,r,n){var i=r[0].trace,a=n.size,o=n.radius,s=n.innerRadius,u=n.gaugeBg,l=n.gaugeOutline,f=[a.l+a.w/2,a.t+a.h/2+o/2],c=n.gauge,h=n.layer,d=n.transitionOpts,p=n.onComplete,x=Math.PI/2;function b(be){var Pe=i.gauge.axis.range[0],Ce=i.gauge.axis.range[1],de=(be-Pe)/(Ce-Pe)*Math.PI-x;return de<-x?-x:de>x?x:de}function v(be){return cw.svg.arc().innerRadius((s+o)/2-be/2*(o-s)).outerRadius((s+o)/2+be/2*(o-s)).startAngle(-x)}function k(be){be.attr("d",function(Pe){return v(Pe.thickness).startAngle(b(Pe.range[0])).endAngle(b(Pe.range[1]))()})}var E,T,L,_;c.enter().append("g").classed("angular",!0),c.attr("transform",Jk(f[0],f[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),E=Kk(e,i.gauge.axis),E.type="linear",E.range=i.gauge.axis.range,E._id="xangularaxis",E.ticklabeloverflow="allow",E.setScale();var C=function(be){return(E.range[0]-be.x)/(E.range[1]-E.range[0])*Math.PI+Math.PI},S={},m=up.makeLabelFns(E,0),P=m.labelStandoff;S.xFn=function(be){var Pe=C(be);return Math.cos(Pe)*P},S.yFn=function(be){var Pe=C(be),Ce=Math.sin(Pe)>0?.2:1;return-Math.sin(Pe)*(P+be.fontSize*Ce)+Math.abs(Math.cos(Pe))*(be.fontSize*HYt)},S.anchorFn=function(be){var Pe=C(be),Ce=Math.cos(Pe);return Math.abs(Ce)<.1?"middle":Ce>0?"start":"end"},S.heightFn=function(be,Pe,Ce){var de=C(be);return-.5*(1+Math.sin(de))*Ce};var A=function(be){return Jk(f[0]+o*Math.cos(be),f[1]-o*Math.sin(be))};L=function(be){return A(C(be))};var B=function(be){var Pe=C(be);return A(Pe)+"rotate("+-GYt(Pe)+")"};if(T=up.calcTicks(E),_=up.getTickSigns(E)[2],E.visible){_=E.ticks==="inside"?-1:1;var F=(E.linewidth||1)/2;up.drawTicks(e,E,{vals:T,layer:h,path:"M"+_*F+",0h"+_*E.ticklen,transFn:B}),up.drawLabels(e,E,{vals:T,layer:h,transFn:L,labelFns:S})}var U=[u].concat(i.gauge.steps),G=c.selectAll("g.bg-arc").data(U);G.enter().append("g").classed("bg-arc",!0).append("path"),G.select("path").call(k).call(uw),G.exit().remove();var j=v(i.gauge.bar.thickness),H=c.selectAll("g.value-arc").data([i.gauge.bar]);H.enter().append("g").classed("value-arc",!0).append("path");var N=H.select("path");$k(d)?(N.transition().duration(d.duration).ease(d.easing).each("end",function(){p&&p()}).each("interrupt",function(){p&&p()}).attrTween("d",JYt(j,b(r[0].lastY),b(r[0].y))),i._lastValue=r[0].y):N.attr("d",typeof r[0].y=="number"?j.endAngle(b(r[0].y)):"M0,0Z"),N.call(uw),H.exit().remove(),U=[];var W=i.gauge.threshold.value;(W||W===0)&&U.push({range:[W,W],color:i.gauge.threshold.color,line:{color:i.gauge.threshold.line.color,width:i.gauge.threshold.line.width},thickness:i.gauge.threshold.thickness});var re=c.selectAll("g.threshold-arc").data(U);re.enter().append("g").classed("threshold-arc",!0).append("path"),re.select("path").call(k).call(uw),re.exit().remove();var ae=c.selectAll("g.gauge-outline").data([l]);ae.enter().append("g").classed("gauge-outline",!0).append("path"),ae.select("path").call(k).call(uw),ae.exit().remove()}function KYt(e,t,r,n){var i=r[0].trace,a=n.numbersX,o=n.numbersY,s=i.align||"center",u=h$[s],l=n.transitionOpts,f=n.onComplete,c=Ex.ensureSingle(t,"g","numbers"),h,d,p,x=[];i._hasNumber&&x.push("number"),i._hasDelta&&(x.push("delta"),i.delta.position==="left"&&x.reverse());var b=c.selectAll("text").data(x);b.enter().append("text"),b.attr("text-anchor",function(){return u}).attr("class",function(A){return A}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),b.exit().remove();function v(A,B,F,U){if(A.match("s")&&F>=0!=U>=0&&!B(F).slice(-1).match(eZe)&&!B(U).slice(-1).match(eZe)){var G=A.slice().replace("s","f").replace(/\d+/,function(H){return parseInt(H)-1}),j=Kk(e,{tickformat:G});return function(H){return Math.abs(H)<1?up.tickText(j,H).text:B(H)}}else return B}function k(){var A=Kk(e,{tickformat:i.number.valueformat},i._range);A.setScale(),up.prepTicks(A);var B=function(H){return up.tickText(A,H).text},F=i.number.suffix,U=i.number.prefix,G=c.select("text.number");function j(){var H=typeof r[0].y=="number"?U+B(r[0].y)+F:"-";G.text(H).call(fw.font,i.number.font).call(NB.convertToTspans,e)}return $k(l)?G.transition().duration(l.duration).ease(l.easing).each("end",function(){j(),f&&f()}).each("interrupt",function(){j(),f&&f()}).attrTween("text",function(){var H=cw.select(this),N=QXe(r[0].lastY,r[0].y);i._lastValue=r[0].y;var W=v(i.number.valueformat,B,r[0].lastY,r[0].y);return function(re){H.text(U+W(N(re))+F)}}):j(),h=rZe(U+B(r[0].y)+F,i.number.font,u,e),G}function E(){var A=Kk(e,{tickformat:i.delta.valueformat},i._range);A.setScale(),up.prepTicks(A);var B=function(re){return up.tickText(A,re).text},F=i.delta.suffix,U=i.delta.prefix,G=function(re){var ae=i.delta.relative?re.relativeDelta:re.delta;return ae},j=function(re,ae){return re===0||typeof re!="number"||isNaN(re)?"-":(re>0?i.delta.increasing.symbol:i.delta.decreasing.symbol)+U+ae(re)+F},H=function(re){return re.delta>=0?i.delta.increasing.color:i.delta.decreasing.color};i._deltaLastValue===void 0&&(i._deltaLastValue=G(r[0]));var N=c.select("text.delta");N.call(fw.font,i.delta.font).call(DS.fill,H({delta:i._deltaLastValue}));function W(){N.text(j(G(r[0]),B)).call(DS.fill,H(r[0])).call(NB.convertToTspans,e)}return $k(l)?N.transition().duration(l.duration).ease(l.easing).tween("text",function(){var re=cw.select(this),ae=G(r[0]),be=i._deltaLastValue,Pe=v(i.delta.valueformat,B,be,ae),Ce=QXe(be,ae);return i._deltaLastValue=ae,function(de){re.text(j(Ce(de),Pe)),re.call(DS.fill,H({delta:Ce(de)}))}}).each("end",function(){W(),f&&f()}).each("interrupt",function(){W(),f&&f()}):W(),d=rZe(j(G(r[0]),B),i.delta.font,u,e),N}var T=i.mode+i.align,L;if(i._hasDelta&&(L=E(),T+=i.delta.position+i.delta.font.size+i.delta.font.family+i.delta.valueformat,T+=i.delta.increasing.symbol+i.delta.decreasing.symbol,p=d),i._hasNumber&&(k(),T+=i.number.font.size+i.number.font.family+i.number.valueformat+i.number.suffix+i.number.prefix,p=h),i._hasDelta&&i._hasNumber){var _=[(h.left+h.right)/2,(h.top+h.bottom)/2],C=[(d.left+d.right)/2,(d.top+d.bottom)/2],S,m,P=.75*i.delta.font.size;i.delta.position==="left"&&(S=qB(i,"deltaPos",0,-1*(h.width*lw[i.align]+d.width*(1-lw[i.align])+P),T,Math.min),m=_[1]-C[1],p={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:d.left+S,right:h.right,top:Math.min(h.top,d.top+m),bottom:Math.max(h.bottom,d.bottom+m)}),i.delta.position==="right"&&(S=qB(i,"deltaPos",0,h.width*(1-lw[i.align])+d.width*lw[i.align]+P,T,Math.max),m=_[1]-C[1],p={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:h.left,right:d.right+S,top:Math.min(h.top,d.top+m),bottom:Math.max(h.bottom,d.bottom+m)}),i.delta.position==="bottom"&&(S=null,m=d.height,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height,bottom:h.bottom+d.height}),i.delta.position==="top"&&(S=null,m=h.top,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height-d.height,bottom:h.bottom}),L.attr({dx:S,dy:m})}(i._hasNumber||i._hasDelta)&&c.attr("transform",function(){var A=n.numbersScaler(p);T+=A[2];var B=qB(i,"numbersScale",1,A[0],T,Math.min),F;i._scaleNumbers||(B=1),i._isAngular?F=o-B*p.bottom:F=o-B*(p.top+p.bottom)/2,i._numbersTop=B*p.top+F;var U=p[s];s==="center"&&(U=(p.left+p.right)/2);var G=a-B*U;return G=qB(i,"numbersTranslate",0,G,T,Math.max),Jk(G,F)+VYt(B)})}function uw(e){e.each(function(t){DS.stroke(cw.select(this),t.line.color)}).each(function(t){DS.fill(cw.select(this),t.color)}).style("stroke-width",function(t){return t.line.width})}function JYt(e,t,r){return function(){var n=UYt(t,r);return function(i){return e.endAngle(n(i))()}}}function Kk(e,t,r){var n=e._fullLayout,i=Ex.extendFlat({type:"linear",ticks:"outside",range:r,showline:!0},t),a={type:"linear",_id:"x"+t._id},o={letter:"x",font:n.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function s(u,l){return Ex.coerce(i,a,XYt,u,l)}return WYt(i,a,s,o,n),jYt(i,a,s,o),a}function tZe(e,t,r){var n=Math.min(t/e.width,r/e.height);return[n,e,t+"x"+r]}function $Yt(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),n=t/r;return[n,e,t]}function rZe(e,t,r,n){var i=document.createElementNS("http://www.w3.org/2000/svg","text"),a=cw.select(i);return a.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call(NB.convertToTspans,n).call(fw.font,t),fw.bBox(a.node())}function qB(e,t,r,n,i,a){var o="_cache"+t;e[o]&&e[o].key===i||(e[o]={key:i,value:r});var s=Ex.aggNums(a,null,[e[o].value,n],2);return e[o].value=s,s}});var oZe=Te((J2r,aZe)=>{"use strict";aZe.exports={moduleType:"trace",name:"indicator",basePlotModule:NXe(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:f$(),supplyDefaults:KXe().supplyDefaults,calc:$Xe().calc,plot:nZe(),meta:{}}});var lZe=Te(($2r,sZe)=>{"use strict";sZe.exports=oZe()});var d$=Te((ewr,hZe)=>{"use strict";var uZe=Nb(),UB=Su().extendFlat,QYt=Sc().overrideAll,fZe=gc(),eKt=zc().attributes,cZe=Hc().descriptionOnlyNumbers,Q2r=hZe.exports=QYt({domain:eKt({name:"table",trace:!0}),columnwidth:{valType:"number",arrayOk:!0,dflt:null},columnorder:{valType:"data_array"},header:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:cZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:UB({},uZe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:UB({},fZe({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:cZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:UB({},uZe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:UB({},fZe({arrayOk:!0}))}},"calc","from-root")});var pZe=Te((twr,dZe)=>{"use strict";var p$=ei(),tKt=d$(),rKt=zc().defaults;function iKt(e,t){for(var r=e.columnorder||[],n=e.header.values.length,i=r.slice(0,n),a=i.slice().sort(function(u,l){return u-l}),o=i.map(function(u){return a.indexOf(u)}),s=o.length;s{"use strict";var nKt=Ky().wrap;vZe.exports=function(){return nKt({})}});var v$=Te((iwr,yZe)=>{"use strict";yZe.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:"
",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}});var MZe=Te((nwr,SZe)=>{"use strict";var gZe=v$(),y$=Su().extendFlat,aKt=ku(),oKt=mp().isTypedArray,VB=mp().isArrayOrTypedArray;SZe.exports=function(t,r){var n=m$(r.cells.values),i=function(m){return m.slice(r.header.values.length,m.length)},a=m$(r.header.values);a.length&&!a[0].length&&(a[0]=[""],a=m$(a));var o=a.concat(i(n).map(function(){return TZe((a[0]||[""]).length)})),s=r.domain,u=Math.floor(t._fullLayout._size.w*(s.x[1]-s.x[0])),l=Math.floor(t._fullLayout._size.h*(s.y[1]-s.y[0])),f=r.header.values.length?o[0].map(function(){return r.header.height}):[gZe.emptyHeaderHeight],c=n.length?n[0].map(function(){return r.cells.height}):[],h=f.reduce(_Ze,0),d=l-h,p=d+gZe.uplift,x=wZe(c,p),b=wZe(f,h),v=bZe(b,[]),k=bZe(x,v),E={},T=r._fullInput.columnorder;VB(T)&&(T=Array.from(T)),T=T.concat(i(n.map(function(m,P){return P})));var L=o.map(function(m,P){var A=VB(r.columnwidth)?r.columnwidth[Math.min(P,r.columnwidth.length-1)]:r.columnwidth;return aKt(A)?Number(A):1}),_=L.reduce(_Ze,0);L=L.map(function(m){return m/_*u});var C=Math.max(g$(r.header.line.width),g$(r.cells.line.width)),S={key:r.uid+t._context.staticPlot,translateX:s.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-s.y[1]),size:t._fullLayout._size,width:u,maxLineWidth:C,height:l,columnOrder:T,groupHeight:l,rowBlocks:k,headerRowBlocks:v,scrollY:0,cells:y$({},r.cells,{values:n}),headerCells:y$({},r.header,{values:o}),gdColumns:o.map(function(m){return m[0]}),gdColumnsOriginalOrder:o.map(function(m){return m[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:o.map(function(m,P){var A=E[m];E[m]=(A||0)+1;var B=m+"__"+E[m];return{key:B,label:m,specIndex:P,xIndex:T[P],xScale:xZe,x:void 0,calcdata:void 0,columnWidth:L[P]}})};return S.columns.forEach(function(m){m.calcdata=S,m.x=xZe(m)}),S};function g$(e){if(VB(e)){for(var t=0,r=0;r=t||l===e.length-1)&&(r[i]=o,o.key=u++,o.firstRowIndex=s,o.lastRowIndex=l,o=AZe(),i+=a,s=l+1,a=0);return r}function AZe(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}});var EZe=Te(_$=>{"use strict";var GB=Su().extendFlat;_$.splitToPanels=function(e){var t=[0,0],r=GB({},e,{key:"header",type:"header",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!0,values:e.calcdata.headerCells.values[e.specIndex],rowBlocks:e.calcdata.headerRowBlocks,calcdata:GB({},e.calcdata,{cells:e.calcdata.headerCells})}),n=GB({},e,{key:"cells1",type:"cells",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks}),i=GB({},e,{key:"cells2",type:"cells",page:1,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks});return[n,i,r]};_$.splitToCells=function(e){var t=sKt(e);return(e.values||[]).slice(t[0],t[1]).map(function(r,n){var i=typeof r=="string"&&r.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:n+i,key:t[0]+n,column:e,calcdata:e.calcdata,page:e.page,rowBlocks:e.rowBlocks,value:r}})};function sKt(e){var t=e.rowBlocks[e.page],r=t?t.rows[0].rowIndex:0,n=t?r+t.rows.length:0;return[r,n]}});var C$=Te((owr,OZe)=>{"use strict";var uu=v$(),Vc=Jl(),x$=ei(),lKt=x$.numberFormat,pc=Ky(),b$=Mu(),uKt=Zf(),fKt=ei().raiseToTop,om=ei().strTranslate,cKt=ei().cancelTransition,hKt=MZe(),RZe=EZe(),kZe=jl();OZe.exports=function(t,r){var n=!t._context.staticPlot,i=t._fullLayout._paper.selectAll("."+uu.cn.table).data(r.map(function(k){var E=pc.unwrap(k),T=E.trace;return hKt(t,T)}),pc.keyFun);i.exit().remove(),i.enter().append("g").classed(uu.cn.table,!0).attr("overflow","visible").style("box-sizing","content-box").style("position","absolute").style("left",0).style("overflow","visible").style("shape-rendering","crispEdges").style("pointer-events","all"),i.attr("width",function(k){return k.width+k.size.l+k.size.r}).attr("height",function(k){return k.height+k.size.t+k.size.b}).attr("transform",function(k){return om(k.translateX,k.translateY)});var a=i.selectAll("."+uu.cn.tableControlView).data(pc.repeat,pc.keyFun),o=a.enter().append("g").classed(uu.cn.tableControlView,!0).style("box-sizing","content-box");if(n){var s="onwheel"in document?"wheel":"mousewheel";o.on("mousemove",function(k){a.filter(function(E){return k===E}).call(Qk,t)}).on(s,function(k){if(!k.scrollbarState.wheeling){k.scrollbarState.wheeling=!0;var E=k.scrollY+Vc.event.deltaY,T=WB(t,a,null,E)(k);T||(Vc.event.stopPropagation(),Vc.event.preventDefault()),k.scrollbarState.wheeling=!1}}).call(Qk,t,!0)}a.attr("transform",function(k){return om(k.size.l,k.size.t)});var u=a.selectAll("."+uu.cn.scrollBackground).data(pc.repeat,pc.keyFun);u.enter().append("rect").classed(uu.cn.scrollBackground,!0).attr("fill","none"),u.attr("width",function(k){return k.width}).attr("height",function(k){return k.height}),a.each(function(k){b$.setClipUrl(Vc.select(this),CZe(t,k),t)});var l=a.selectAll("."+uu.cn.yColumn).data(function(k){return k.columns},pc.keyFun);l.enter().append("g").classed(uu.cn.yColumn,!0),l.exit().remove(),l.attr("transform",function(k){return om(k.x,0)}),n&&l.call(Vc.behavior.drag().origin(function(k){var E=Vc.select(this);return zZe(E,k,-uu.uplift),fKt(this),k.calcdata.columnDragInProgress=!0,Qk(a.filter(function(T){return k.calcdata.key===T.key}),t),k}).on("drag",function(k){var E=Vc.select(this),T=function(C){return(k===C?Vc.event.x:C.x)+C.columnWidth/2};k.x=Math.max(-uu.overdrag,Math.min(k.calcdata.width+uu.overdrag-k.columnWidth,Vc.event.x));var L=DZe(l).filter(function(C){return C.calcdata.key===k.calcdata.key}),_=L.sort(function(C,S){return T(C)-T(S)});_.forEach(function(C,S){C.xIndex=S,C.x=k===C?C.x:C.xScale(C)}),l.filter(function(C){return k!==C}).transition().ease(uu.transitionEase).duration(uu.transitionDuration).attr("transform",function(C){return om(C.x,0)}),E.call(cKt).attr("transform",om(k.x,-uu.uplift))}).on("dragend",function(k){var E=Vc.select(this),T=k.calcdata;k.x=k.xScale(k),k.calcdata.columnDragInProgress=!1,zZe(E,k,0),wKt(t,T,T.columns.map(function(L){return L.xIndex}))})),l.each(function(k){b$.setClipUrl(Vc.select(this),LZe(t,k),t)});var f=l.selectAll("."+uu.cn.columnBlock).data(RZe.splitToPanels,pc.keyFun);f.enter().append("g").classed(uu.cn.columnBlock,!0).attr("id",function(k){return k.key}),f.style("cursor",function(k){return k.dragHandle?"ew-resize":k.calcdata.scrollbarState.barWiggleRoom?"ns-resize":"default"});var c=f.filter(AKt),h=f.filter(M$);n&&h.call(Vc.behavior.drag().origin(function(k){return Vc.event.stopPropagation(),k}).on("drag",WB(t,a,-1)).on("dragend",function(){})),w$(t,a,c,f),w$(t,a,h,f);var d=a.selectAll("."+uu.cn.scrollAreaClip).data(pc.repeat,pc.keyFun);d.enter().append("clipPath").classed(uu.cn.scrollAreaClip,!0).attr("id",function(k){return CZe(t,k)});var p=d.selectAll("."+uu.cn.scrollAreaClipRect).data(pc.repeat,pc.keyFun);p.enter().append("rect").classed(uu.cn.scrollAreaClipRect,!0).attr("x",-uu.overdrag).attr("y",-uu.uplift).attr("fill","none"),p.attr("width",function(k){return k.width+2*uu.overdrag}).attr("height",function(k){return k.height+uu.uplift});var x=l.selectAll("."+uu.cn.columnBoundary).data(pc.repeat,pc.keyFun);x.enter().append("g").classed(uu.cn.columnBoundary,!0);var b=l.selectAll("."+uu.cn.columnBoundaryClippath).data(pc.repeat,pc.keyFun);b.enter().append("clipPath").classed(uu.cn.columnBoundaryClippath,!0),b.attr("id",function(k){return LZe(t,k)});var v=b.selectAll("."+uu.cn.columnBoundaryRect).data(pc.repeat,pc.keyFun);v.enter().append("rect").classed(uu.cn.columnBoundaryRect,!0).attr("fill","none"),v.attr("width",function(k){return k.columnWidth+2*HB(k)}).attr("height",function(k){return k.calcdata.height+2*HB(k)+uu.uplift}).attr("x",function(k){return-HB(k)}).attr("y",function(k){return-HB(k)}),E$(null,h,a)};function HB(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function CZe(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function LZe(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function DZe(e){return[].concat.apply([],e.map(function(t){return t})).map(function(t){return t.__data__})}function Qk(e,t,r){function n(l){var f=l.rowBlocks;return T$(f,f.length-1)+(f.length?jB(f[f.length-1],1/0):1)}var i=e.selectAll("."+uu.cn.scrollbarKit).data(pc.repeat,pc.keyFun);i.enter().append("g").classed(uu.cn.scrollbarKit,!0).style("shape-rendering","geometricPrecision"),i.each(function(l){var f=l.scrollbarState;f.totalHeight=n(l),f.scrollableAreaHeight=l.groupHeight-A$(l),f.currentlyVisibleHeight=Math.min(f.totalHeight,f.scrollableAreaHeight),f.ratio=f.currentlyVisibleHeight/f.totalHeight,f.barLength=Math.max(f.ratio*f.currentlyVisibleHeight,uu.goldenRatio*uu.scrollbarWidth),f.barWiggleRoom=f.currentlyVisibleHeight-f.barLength,f.wiggleRoom=Math.max(0,f.totalHeight-f.scrollableAreaHeight),f.topY=f.barWiggleRoom===0?0:l.scrollY/f.wiggleRoom*f.barWiggleRoom,f.bottomY=f.topY+f.barLength,f.dragMultiplier=f.wiggleRoom/f.barWiggleRoom}).attr("transform",function(l){var f=l.width+uu.scrollbarWidth/2+uu.scrollbarOffset;return om(f,A$(l))});var a=i.selectAll("."+uu.cn.scrollbar).data(pc.repeat,pc.keyFun);a.enter().append("g").classed(uu.cn.scrollbar,!0);var o=a.selectAll("."+uu.cn.scrollbarSlider).data(pc.repeat,pc.keyFun);o.enter().append("g").classed(uu.cn.scrollbarSlider,!0),o.attr("transform",function(l){return om(0,l.scrollbarState.topY||0)});var s=o.selectAll("."+uu.cn.scrollbarGlyph).data(pc.repeat,pc.keyFun);s.enter().append("line").classed(uu.cn.scrollbarGlyph,!0).attr("stroke","black").attr("stroke-width",uu.scrollbarWidth).attr("stroke-linecap","round").attr("y1",uu.scrollbarWidth/2),s.attr("y2",function(l){return l.scrollbarState.barLength-uu.scrollbarWidth/2}).attr("stroke-opacity",function(l){return l.columnDragInProgress||!l.scrollbarState.barWiggleRoom||r?0:.4}),s.transition().delay(0).duration(0),s.transition().delay(uu.scrollbarHideDelay).duration(uu.scrollbarHideDuration).attr("stroke-opacity",0);var u=a.selectAll("."+uu.cn.scrollbarCaptureZone).data(pc.repeat,pc.keyFun);u.enter().append("line").classed(uu.cn.scrollbarCaptureZone,!0).attr("stroke","white").attr("stroke-opacity",.01).attr("stroke-width",uu.scrollbarCaptureWidth).attr("stroke-linecap","butt").attr("y1",0).on("mousedown",function(l){var f=Vc.event.y,c=this.getBoundingClientRect(),h=l.scrollbarState,d=f-c.top,p=Vc.scale.linear().domain([0,h.scrollableAreaHeight]).range([0,h.totalHeight]).clamp(!0);h.topY<=d&&d<=h.bottomY||WB(t,e,null,p(d-h.barLength/2))(l)}).call(Vc.behavior.drag().origin(function(l){return Vc.event.stopPropagation(),l.scrollbarState.scrollbarScrollInProgress=!0,l}).on("drag",WB(t,e)).on("dragend",function(){})),u.attr("y2",function(l){return l.scrollbarState.scrollableAreaHeight}),t._context.staticPlot&&(s.remove(),u.remove())}function w$(e,t,r,n){var i=dKt(r),a=pKt(i);gKt(a);var o=vKt(a);xKt(o);var s=yKt(a),u=mKt(s);_Kt(u),FZe(u,t,n,e),k$(a)}function dKt(e){var t=e.selectAll("."+uu.cn.columnCells).data(pc.repeat,pc.keyFun);return t.enter().append("g").classed(uu.cn.columnCells,!0),t.exit().remove(),t}function pKt(e){var t=e.selectAll("."+uu.cn.columnCell).data(RZe.splitToCells,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(uu.cn.columnCell,!0),t.exit().remove(),t}function vKt(e){var t=e.selectAll("."+uu.cn.cellRect).data(pc.repeat,function(r){return r.keyWithinBlock});return t.enter().append("rect").classed(uu.cn.cellRect,!0),t}function mKt(e){var t=e.selectAll("."+uu.cn.cellText).data(pc.repeat,function(r){return r.keyWithinBlock});return t.enter().append("text").classed(uu.cn.cellText,!0).style("cursor",function(){return"auto"}).on("mousedown",function(){Vc.event.stopPropagation()}),t}function yKt(e){var t=e.selectAll("."+uu.cn.cellTextHolder).data(pc.repeat,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(uu.cn.cellTextHolder,!0).style("shape-rendering","geometricPrecision"),t}function gKt(e){e.each(function(t,r){var n=t.calcdata.cells.font,i=t.column.specIndex,a={size:Zp(n.size,i,r),color:Zp(n.color,i,r),family:Zp(n.family,i,r),weight:Zp(n.weight,i,r),style:Zp(n.style,i,r),variant:Zp(n.variant,i,r),textcase:Zp(n.textcase,i,r),lineposition:Zp(n.lineposition,i,r),shadow:Zp(n.shadow,i,r)};t.rowNumber=t.key,t.align=Zp(t.calcdata.cells.align,i,r),t.cellBorderWidth=Zp(t.calcdata.cells.line.width,i,r),t.font=a})}function _Kt(e){e.each(function(t){b$.font(Vc.select(this),t.font)})}function xKt(e){e.attr("width",function(t){return t.column.columnWidth}).attr("stroke-width",function(t){return t.cellBorderWidth}).each(function(t){var r=Vc.select(this);kZe.stroke(r,Zp(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),kZe.fill(r,Zp(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function FZe(e,t,r,n){e.text(function(i){var a=i.column.specIndex,o=i.rowNumber,s=i.value,u=typeof s=="string",l=u&&s.match(/
/i),f=!u||l;i.mayHaveMarkup=u&&s.match(/[<&>]/);var c=bKt(s);i.latex=c;var h=c?"":Zp(i.calcdata.cells.prefix,a,o)||"",d=c?"":Zp(i.calcdata.cells.suffix,a,o)||"",p=c?null:Zp(i.calcdata.cells.format,a,o)||null,x=h+(p?lKt(p)(i.value):i.value)+d,b;i.wrappingNeeded=!i.wrapped&&!f&&!c&&(b=PZe(x)),i.cellHeightMayIncrease=l||c||i.mayHaveMarkup||(b===void 0?PZe(x):b),i.needsConvertToTspans=i.mayHaveMarkup||i.wrappingNeeded||i.latex;var v;if(i.wrappingNeeded){var k=uu.wrapSplitCharacter===" "?x.replace(/i&&n.push(a),i+=u}return n}function E$(e,t,r){var n=DZe(t)[0];if(n!==void 0){var i=n.rowBlocks,a=n.calcdata,o=T$(i,i.length),s=n.calcdata.groupHeight-A$(n),u=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),l=TKt(i,u,s);l.length===1&&(l[0]===i.length-1?l.unshift(l[0]-1):l.push(l[0]+1)),l[0]%2&&l.reverse(),t.each(function(f,c){f.page=l[c],f.scrollY=u}),t.attr("transform",function(f){var c=T$(f.rowBlocks,f.page)-f.scrollY;return om(0,c)}),e&&(IZe(e,r,t,l,n.prevPages,n,0),IZe(e,r,t,l,n.prevPages,n,1),Qk(r,e))}}function WB(e,t,r,n){return function(a){var o=a.calcdata?a.calcdata:a,s=t.filter(function(c){return o.key===c.key}),u=r||o.scrollbarState.dragMultiplier,l=o.scrollY;o.scrollY=n===void 0?o.scrollY+u*Vc.event.dy:n;var f=s.selectAll("."+uu.cn.yColumn).selectAll("."+uu.cn.columnBlock).filter(M$);return E$(e,f,s),o.scrollY===l}}function IZe(e,t,r,n,i,a,o){var s=n[o]!==i[o];s&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout(function(){var u=r.filter(function(l,f){return f===o&&n[f]!==i[f]});w$(e,t,u,r),i[o]=n[o]}))}function SKt(e,t,r,n){return function(){var a=Vc.select(t.parentNode);a.each(function(o){var s=o.fragments;a.selectAll("tspan.line").each(function(x,b){s[b].width=this.getComputedTextLength()});var u=s[s.length-1].width,l=s.slice(0,-1),f=[],c,h,d=0,p=o.column.columnWidth-2*uu.cellPad;for(o.value="";l.length;)c=l.shift(),h=c.width+u,d+h>p&&(o.value+=f.join(uu.wrapSpacer)+uu.lineBreaker,f=[],d=0),f.push(c.text),d+=h;d&&(o.value+=f.join(uu.wrapSpacer)),o.wrapped=!0}),a.selectAll("tspan.line").remove(),FZe(a.select("."+uu.cn.cellText),r,e,n),Vc.select(t.parentNode.parentNode).call(k$)}}function MKt(e,t,r,n,i){return function(){if(!i.settledY){var o=Vc.select(t.parentNode),s=S$(i),u=i.key-s.firstRowIndex,l=s.rows[u].rowHeight,f=i.cellHeightMayIncrease?t.parentNode.getBoundingClientRect().height+2*uu.cellPad:l,c=Math.max(f,l),h=c-s.rows[u].rowHeight;h&&(s.rows[u].rowHeight=c,e.selectAll("."+uu.cn.columnCell).call(k$),E$(null,e.filter(M$),0),Qk(r,n,!0)),o.attr("transform",function(){var d=this,p=d.parentNode,x=p.getBoundingClientRect(),b=Vc.select(d.parentNode).select("."+uu.cn.cellRect).node().getBoundingClientRect(),v=d.transform.baseVal.consolidate(),k=b.top-x.top+(v?v.matrix.f:uu.cellPad);return om(BZe(i,Vc.select(d.parentNode).select("."+uu.cn.cellTextHolder).node().getBoundingClientRect().width),k)}),i.settledY=!0}}}function BZe(e,t){switch(e.align){case"left":return uu.cellPad;case"right":return e.column.columnWidth-(t||0)-uu.cellPad;case"center":return(e.column.columnWidth-(t||0))/2;default:return uu.cellPad}}function k$(e){e.attr("transform",function(t){var r=t.rowBlocks[0].auxiliaryBlocks.reduce(function(o,s){return o+jB(s,1/0)},0),n=S$(t),i=jB(n,t.key),a=i+r;return om(0,a)}).selectAll("."+uu.cn.cellRect).attr("height",function(t){return kKt(S$(t),t.key).rowHeight})}function T$(e,t){for(var r=0,n=t-1;n>=0;n--)r+=EKt(e[n]);return r}function jB(e,t){for(var r=0,n=0;n{"use strict";var CKt=Rd().getModuleCalcData,LKt=C$(),XB="table";ZB.name=XB;ZB.plot=function(e){var t=CKt(e.calcdata,XB)[0];t.length&&LKt(e,t)};ZB.clean=function(e,t,r,n){var i=n._has&&n._has(XB),a=t._has&&t._has(XB);i&&!a&&n._paperdiv.selectAll(".table").remove()}});var UZe=Te((lwr,NZe)=>{"use strict";NZe.exports={attributes:d$(),supplyDefaults:pZe(),calc:mZe(),plot:C$(),moduleType:"trace",name:"table",basePlotModule:qZe(),categories:["noOpacity"],meta:{}}});var GZe=Te((uwr,VZe)=>{"use strict";VZe.exports=UZe()});var ZZe=Te((fwr,XZe)=>{"use strict";var HZe=gc(),WZe=Ih(),L$=Dd(),PKt=Hc().descriptionWithDates,zKt=Sc().overrideAll,jZe=Id().dash,P$=Su().extendFlat;XZe.exports={color:{valType:"color",editType:"calc"},smoothing:{valType:"number",dflt:1,min:0,max:1.3,editType:"calc"},title:{text:{valType:"string",dflt:"",editType:"calc"},font:HZe({editType:"calc"}),offset:{valType:"number",dflt:10,editType:"calc"},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc"},autotypenumbers:L$.autotypenumbers,autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"calc"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"calc"},range:{valType:"info_array",editType:"calc",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}]},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},cheatertype:{valType:"enumerated",values:["index","value"],dflt:"value",editType:"calc"},tickmode:{valType:"enumerated",values:["linear","array"],dflt:"array",editType:"calc"},nticks:{valType:"integer",min:0,dflt:0,editType:"calc"},tickvals:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},showticklabels:{valType:"enumerated",values:["start","end","both","none"],dflt:"start",editType:"calc"},labelalias:P$({},L$.labelalias,{editType:"calc"}),tickfont:HZe({editType:"calc"}),tickangle:{valType:"angle",dflt:"auto",editType:"calc"},tickprefix:{valType:"string",dflt:"",editType:"calc"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},ticksuffix:{valType:"string",dflt:"",editType:"calc"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"calc"},minexponent:{valType:"number",dflt:3,min:0,editType:"calc"},separatethousands:{valType:"boolean",dflt:!1,editType:"calc"},tickformat:{valType:"string",dflt:"",editType:"calc",description:PKt("tick label")},tickformatstops:zKt(L$.tickformatstops,"calc","from-root"),categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},labelpadding:{valType:"integer",dflt:10,editType:"calc"},labelprefix:{valType:"string",editType:"calc"},labelsuffix:{valType:"string",dflt:"",editType:"calc"},showline:{valType:"boolean",dflt:!1,editType:"calc"},linecolor:{valType:"color",dflt:WZe.defaultLine,editType:"calc"},linewidth:{valType:"number",min:0,dflt:1,editType:"calc"},gridcolor:{valType:"color",editType:"calc"},gridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},griddash:P$({},jZe,{editType:"calc"}),showgrid:{valType:"boolean",dflt:!0,editType:"calc"},minorgridcount:{valType:"integer",min:0,dflt:0,editType:"calc"},minorgridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},minorgriddash:P$({},jZe,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:WZe.lightLine,editType:"calc"},startline:{valType:"boolean",editType:"calc"},startlinecolor:{valType:"color",editType:"calc"},startlinewidth:{valType:"number",dflt:1,editType:"calc"},endline:{valType:"boolean",editType:"calc"},endlinewidth:{valType:"number",dflt:1,editType:"calc"},endlinecolor:{valType:"color",editType:"calc"},tick0:{valType:"number",min:0,dflt:0,editType:"calc"},dtick:{valType:"number",min:0,dflt:1,editType:"calc"},arraytick0:{valType:"integer",min:0,dflt:0,editType:"calc"},arraydtick:{valType:"integer",min:1,dflt:1,editType:"calc"},editType:"calc"}});var KB=Te((cwr,JZe)=>{"use strict";var IKt=gc(),YZe=ZZe(),KZe=Ih(),YB=IKt({editType:"calc"}),RKt=Xc().zorder;YB.family.dflt='"Open Sans", verdana, arial, sans-serif';YB.size.dflt=12;YB.color.dflt=KZe.defaultLine;JZe.exports={carpet:{valType:"string",editType:"calc"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},a:{valType:"data_array",editType:"calc"},a0:{valType:"number",dflt:0,editType:"calc"},da:{valType:"number",dflt:1,editType:"calc"},b:{valType:"data_array",editType:"calc"},b0:{valType:"number",dflt:0,editType:"calc"},db:{valType:"number",dflt:1,editType:"calc"},cheaterslope:{valType:"number",dflt:1,editType:"calc"},aaxis:YZe,baxis:YZe,font:YB,color:{valType:"color",dflt:KZe.defaultLine,editType:"plot"},zorder:RKt}});var eYe=Te((hwr,QZe)=>{"use strict";var $Ze=ei().isArray1D;QZe.exports=function(t,r,n){var i=n("x"),a=i&&i.length,o=n("y"),s=o&&o.length;if(!a&&!s)return!1;if(r._cheater=!i,(!a||$Ze(i))&&(!s||$Ze(o))){var u=a?i.length:1/0;s&&(u=Math.min(u,o.length)),r.a&&r.a.length&&(u=Math.min(u,r.a.length)),r.b&&r.b.length&&(u=Math.min(u,r.b.length)),r._length=u}else r._length=null;return!0}});var iYe=Te((dwr,rYe)=>{"use strict";var DKt=KB(),tYe=jl().addOpacity,FKt=$l(),eC=ei(),BKt=xb(),OKt=t_(),qKt=r_(),NKt=rI(),UKt=gy(),VKt=L3();rYe.exports=function(t,r,n){var i=n.letter,a=n.font||{},o=DKt[i+"axis"];function s(m,P){return eC.coerce(t,r,o,m,P)}function u(m,P){return eC.coerce2(t,r,o,m,P)}n.name&&(r._name=n.name,r._id=n.name),s("autotypenumbers",n.autotypenumbersDflt);var l=s("type");if(l==="-"&&(n.data&&GKt(r,n.data),r.type==="-"?r.type="linear":l=t.type=r.type),s("smoothing"),s("cheatertype"),s("showticklabels"),s("labelprefix",i+" = "),s("labelsuffix"),s("showtickprefix"),s("showticksuffix"),s("separatethousands"),s("tickformat"),s("exponentformat"),s("minexponent"),s("showexponent"),s("categoryorder"),s("tickmode"),s("tickvals"),s("ticktext"),s("tick0"),s("dtick"),r.tickmode==="array"&&(s("arraytick0"),s("arraydtick")),s("labelpadding"),r._hovertitle=i,l==="date"){var f=FKt.getComponentMethod("calendars","handleDefaults");f(t,r,"calendar",n.calendar)}UKt(r,n.fullLayout),r.c2p=eC.identity;var c=s("color",n.dfltColor),h=c===t.color?c:a.color,d=s("title.text");d&&(eC.coerceFont(s,"title.font",a,{overrideDflt:{size:eC.bigFont(a.size),color:h}}),s("title.offset")),s("tickangle");var p=s("autorange",!r.isValidRange(t.range));p&&s("rangemode"),s("range"),r.cleanRange(),s("fixedrange"),BKt(t,r,s,l),qKt(t,r,s,l,n),OKt(t,r,s,l,n),NKt(t,r,s,{data:n.data,dataAttr:i});var x=u("gridcolor",tYe(c,.3)),b=u("gridwidth"),v=u("griddash"),k=s("showgrid");k||(delete r.gridcolor,delete r.gridwidth,delete r.griddash);var E=u("startlinecolor",c),T=u("startlinewidth",b),L=s("startline",r.showgrid||!!E||!!T);L||(delete r.startlinecolor,delete r.startlinewidth);var _=u("endlinecolor",c),C=u("endlinewidth",b),S=s("endline",r.showgrid||!!_||!!C);return S||(delete r.endlinecolor,delete r.endlinewidth),k?(s("minorgridcount"),s("minorgridwidth",b),s("minorgriddash",v),s("minorgridcolor",tYe(x,.06)),r.minorgridcount||(delete r.minorgridwidth,delete r.minorgriddash,delete r.minorgridcolor)):(delete r.gridcolor,delete r.gridwidth,delete r.griddash),r.showticklabels==="none"&&(delete r.tickfont,delete r.tickangle,delete r.showexponent,delete r.exponentformat,delete r.minexponent,delete r.tickformat,delete r.showticksuffix,delete r.showtickprefix),r.showticksuffix||delete r.ticksuffix,r.showtickprefix||delete r.tickprefix,s("tickmode"),r};function GKt(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i=n+"calendar",a=e[i];e.type=VKt(t,a,{autotypenumbers:e.autotypenumbers})}}});var aYe=Te((pwr,nYe)=>{"use strict";var HKt=iYe(),WKt=Pf();nYe.exports=function(t,r,n,i,a){var o=i("a");o||(i("da"),i("a0"));var s=i("b");s||(i("db"),i("b0")),jKt(t,r,n,a)};function jKt(e,t,r,n){var i=["aaxis","baxis"];i.forEach(function(a){var o=a.charAt(0),s=e[a]||{},u=WKt.newContainer(t,a),l={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,tickfont:"x",id:o+"axis",letter:o,font:t.font,name:a,data:e[o],calendar:t.calendar,dfltColor:n,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};HKt(s,u,l),u._categories=u._categories||[],!e[a]&&s.type!=="-"&&(e[a]={type:s.type})})}});var lYe=Te((vwr,sYe)=>{"use strict";var oYe=ei(),XKt=eYe(),ZKt=aYe(),YKt=KB(),KKt=Ih();sYe.exports=function(t,r,n,i){function a(u,l){return oYe.coerce(t,r,YKt,u,l)}r._clipPathId="clip"+r.uid+"carpet";var o=a("color",KKt.defaultLine);if(oYe.coerceFont(a,"font",i.font),a("carpet"),ZKt(t,r,i,a,o),!r.a||!r.b){r.visible=!1;return}r.a.length<3&&(r.aaxis.smoothing=0),r.b.length<3&&(r.baxis.smoothing=0);var s=XKt(t,r,a);s||(r.visible=!1),r._cheater&&a("cheaterslope"),a("zorder")}});var z$=Te((mwr,uYe)=>{"use strict";var JKt=ei().isArrayOrTypedArray;uYe.exports=function(t,r,n){var i;for(JKt(t)?t.length>r.length&&(t=t.slice(0,r.length)):t=[],i=0;i{"use strict";fYe.exports=function(t,r,n){if(t.length===0)return"";var i,a=[],o=n?3:1;for(i=0;i{"use strict";cYe.exports=function(t,r,n,i,a,o){var s=a[0]*t.dpdx(r),u=a[1]*t.dpdy(n),l=1,f=1;if(o){var c=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=Math.sqrt(o[0]*o[0]+o[1]*o[1]),d=(a[0]*o[0]+a[1]*o[1])/c/h;f=Math.max(0,d)}var p=Math.atan2(u,s)*180/Math.PI;return p<-90?(p+=180,l=-l):p>90&&(p-=180,l=-l),{angle:p,flip:l,p:t.c2p(i,r,n),offsetMultplier:f}}});var xYe=Te((_wr,_Ye)=>{"use strict";var eO=Jl(),JB=Mu(),$B=z$(),vYe=I$(),tC=hYe(),R$=Zf(),Nv=ei(),mYe=Nv.strRotate,QB=Nv.strTranslate,yYe=Qh();_Ye.exports=function(t,r,n,i){var a=t._context.staticPlot,o=r.xaxis,s=r.yaxis,u=t._fullLayout,l=u._clips;Nv.makeTraceGroups(i,n,"trace").each(function(f){var c=eO.select(this),h=f[0],d=h.trace,p=d.aaxis,x=d.baxis,b=Nv.ensureSingle(c,"g","minorlayer"),v=Nv.ensureSingle(c,"g","majorlayer"),k=Nv.ensureSingle(c,"g","boundarylayer"),E=Nv.ensureSingle(c,"g","labellayer");c.style("opacity",d.opacity),FS(o,s,v,p,"a",p._gridlines,!0,a),FS(o,s,v,x,"b",x._gridlines,!0,a),FS(o,s,b,p,"a",p._minorgridlines,!0,a),FS(o,s,b,x,"b",x._minorgridlines,!0,a),FS(o,s,k,p,"a-boundary",p._boundarylines,a),FS(o,s,k,x,"b-boundary",x._boundarylines,a);var T=dYe(t,o,s,d,h,E,p._labels,"a-label"),L=dYe(t,o,s,d,h,E,x._labels,"b-label");QKt(t,E,d,h,o,s,T,L),$Kt(d,h,l,o,s)})};function $Kt(e,t,r,n,i){var a,o,s,u,l=r.select("#"+e._clipPathId);l.size()||(l=r.append("clipPath").classed("carpetclip",!0));var f=Nv.ensureSingle(l,"path","carpetboundary"),c=t.clipsegments,h=[];for(u=0;u0?"start":"end","data-notex":1}).call(JB.font,c.font).text(c.text).call(R$.convertToTspans,e),v=JB.bBox(this);b.attr("transform",QB(d.p[0],d.p[1])+mYe(d.angle)+QB(c.axis.labelpadding*x,v.height*.3)),l=Math.max(l,v.width+c.axis.labelpadding)}),u.exit().remove(),f.maxExtent=l,f}function QKt(e,t,r,n,i,a,o,s){var u,l,f,c,h=Nv.aggNums(Math.min,null,r.a),d=Nv.aggNums(Math.max,null,r.a),p=Nv.aggNums(Math.min,null,r.b),x=Nv.aggNums(Math.max,null,r.b);u=.5*(h+d),l=p,f=r.ab2xy(u,l,!0),c=r.dxyda_rough(u,l),o.angle===void 0&&Nv.extendFlat(o,tC(r,i,a,f,r.dxydb_rough(u,l))),pYe(e,t,r,n,f,c,r.aaxis,i,a,o,"a-title"),u=h,l=.5*(p+x),f=r.ab2xy(u,l,!0),c=r.dxydb_rough(u,l),s.angle===void 0&&Nv.extendFlat(s,tC(r,i,a,f,r.dxyda_rough(u,l))),pYe(e,t,r,n,f,c,r.baxis,i,a,s,"b-title")}var gYe=yYe.LINE_SPACING,eJt=(1-yYe.MID_SHIFT)/gYe+1;function pYe(e,t,r,n,i,a,o,s,u,l,f){var c=[];o.title.text&&c.push(o.title.text);var h=t.selectAll("text."+f).data(c),d=l.maxExtent;h.enter().append("text").classed(f,!0),h.each(function(){var p=tC(r,s,u,i,a);["start","both"].indexOf(o.showticklabels)===-1&&(d=0);var x=o.title.font.size;d+=x+o.title.offset;var b=l.angle+(l.flip<0?180:0),v=(b-p.angle+450)%360,k=v>90&&v<270,E=eO.select(this);E.text(o.title.text).call(R$.convertToTspans,e),k&&(d=(-R$.lineCount(E)+eJt)*gYe*x-d),E.attr("transform",QB(p.p[0],p.p[1])+mYe(p.angle)+QB(0,d)).attr("text-anchor","middle").call(JB.font,o.title.font)}),h.exit().remove()}});var wYe=Te((xwr,bYe)=>{"use strict";var tO=ei().isArrayOrTypedArray;bYe.exports=function(e,t,r){var n,i,a,o,s,u,l=[],f=tO(e)?e.length:e,c=tO(t)?t.length:t,h=tO(e)?e:null,d=tO(t)?t:null;h&&(a=(h.length-1)/(h[h.length-1]-h[0])/(f-1)),d&&(o=(d.length-1)/(d[d.length-1]-d[0])/(c-1));var p,x=1/0,b=-1/0;for(i=0;i{"use strict";var AYe=ei().isArrayOrTypedArray;SYe.exports=function(e){return TYe(e,0)};function TYe(e,t){if(!AYe(e)||t>=10)return null;for(var r=1/0,n=-1/0,i=e.length,a=0;a{"use strict";var tJt=wu(),kx=Su().extendFlat;EYe.exports=function(t,r,n){var i,a,o,s,u,l,f,c,h,d,p,x,b,v,k=t["_"+r],E=t[r+"axis"],T=E._gridlines=[],L=E._minorgridlines=[],_=E._boundarylines=[],C=t["_"+n],S=t[n+"axis"];E.tickmode==="array"&&(E.tickvals=k.slice());var m=t._xctrl,P=t._yctrl,A=m[0].length,B=m.length,F=t._a.length,U=t._b.length;tJt.prepTicks(E),E.tickmode==="array"&&delete E.tickvals;var G=E.smoothing?3:1;function j(N){var W,re,ae,be,Pe,Ce,de,te,ke,Ee,Me,Ue,Fe=[],me=[],Ne={};if(r==="b")for(re=t.b2j(N),ae=Math.floor(Math.max(0,Math.min(U-2,re))),be=re-ae,Ne.length=U,Ne.crossLength=F,Ne.xy=function(ce){return t.evalxy([],ce,re)},Ne.dxy=function(ce,Ke){return t.dxydi([],ce,ae,Ke,be)},W=0;W0&&(ke=t.dxydi([],W-1,ae,0,be),Fe.push(Pe[0]+ke[0]/3),me.push(Pe[1]+ke[1]/3),Ee=t.dxydi([],W-1,ae,1,be),Fe.push(te[0]-Ee[0]/3),me.push(te[1]-Ee[1]/3)),Fe.push(te[0]),me.push(te[1]),Pe=te;else for(W=t.a2i(N),Ce=Math.floor(Math.max(0,Math.min(F-2,W))),de=W-Ce,Ne.length=F,Ne.crossLength=U,Ne.xy=function(ce){return t.evalxy([],W,ce)},Ne.dxy=function(ce,Ke){return t.dxydj([],Ce,ce,de,Ke)},re=0;re0&&(Me=t.dxydj([],Ce,re-1,de,0),Fe.push(Pe[0]+Me[0]/3),me.push(Pe[1]+Me[1]/3),Ue=t.dxydj([],Ce,re-1,de,1),Fe.push(te[0]-Ue[0]/3),me.push(te[1]-Ue[1]/3)),Fe.push(te[0]),me.push(te[1]),Pe=te;return Ne.axisLetter=r,Ne.axis=E,Ne.crossAxis=S,Ne.value=N,Ne.constvar=n,Ne.index=c,Ne.x=Fe,Ne.y=me,Ne.smoothing=S.smoothing,Ne}function H(N){var W,re,ae,be,Pe,Ce=[],de=[],te={};if(te.length=k.length,te.crossLength=C.length,r==="b")for(ae=Math.max(0,Math.min(U-2,N)),Pe=Math.min(1,Math.max(0,N-ae)),te.xy=function(ke){return t.evalxy([],ke,N)},te.dxy=function(ke,Ee){return t.dxydi([],ke,ae,Ee,Pe)},W=0;Wk.length-1)&&T.push(kx(H(a),{color:E.gridcolor,width:E.gridwidth,dash:E.griddash}));for(c=l;ck.length-1)&&!(p<0||p>k.length-1))for(x=k[o],b=k[p],i=0;ik[k.length-1])&&L.push(kx(j(d),{color:E.minorgridcolor,width:E.minorgridwidth,dash:E.minorgriddash})));E.startline&&_.push(kx(H(0),{color:E.startlinecolor,width:E.startlinewidth})),E.endline&&_.push(kx(H(k.length-1),{color:E.endlinecolor,width:E.endlinewidth}))}else{for(s=5e-15,u=[Math.floor((k[k.length-1]-E.tick0)/E.dtick*(1+s)),Math.ceil((k[0]-E.tick0)/E.dtick/(1+s))].sort(function(N,W){return N-W}),l=u[0],f=u[1],c=l;c<=f;c++)h=E.tick0+E.dtick*c,T.push(kx(j(h),{color:E.gridcolor,width:E.gridwidth,dash:E.griddash}));for(c=l-1;ck[k.length-1])&&L.push(kx(j(d),{color:E.minorgridcolor,width:E.minorgridwidth,dash:E.minorgriddash}));E.startline&&_.push(kx(j(k[0]),{color:E.startlinecolor,width:E.startlinewidth})),E.endline&&_.push(kx(j(k[k.length-1]),{color:E.endlinecolor,width:E.endlinewidth}))}}});var zYe=Te((Awr,PYe)=>{"use strict";var CYe=wu(),LYe=Su().extendFlat;PYe.exports=function(t,r){var n,i,a,o,s,u=r._labels=[],l=r._gridlines;for(n=0;n{"use strict";IYe.exports=function(t,r,n,i){var a,o,s,u=[],l=!!n.smoothing,f=!!i.smoothing,c=t[0].length-1,h=t.length-1;for(a=0,o=[],s=[];a<=c;a++)o[a]=t[0][a],s[a]=r[0][a];for(u.push({x:o,y:s,bicubic:l}),a=0,o=[],s=[];a<=h;a++)o[a]=t[a][c],s[a]=r[a][c];for(u.push({x:o,y:s,bicubic:f}),a=c,o=[],s=[];a>=0;a--)o[c-a]=t[h][a],s[c-a]=r[h][a];for(u.push({x:o,y:s,bicubic:l}),a=h,o=[],s=[];a>=0;a--)o[h-a]=t[a][0],s[h-a]=r[a][0];return u.push({x:o,y:s,bicubic:f}),u}});var FYe=Te((Swr,DYe)=>{"use strict";var rJt=ei();DYe.exports=function(t,r,n){var i,a,o,s=[],u=[],l=t[0].length,f=t.length;function c(ae,be){var Pe=0,Ce,de=0;return ae>0&&(Ce=t[be][ae-1])!==void 0&&(de++,Pe+=Ce),ae0&&(Ce=t[be-1][ae])!==void 0&&(de++,Pe+=Ce),be0&&a0&&iS);return rJt.log("Smoother converged to",m,"after",A,"iterations"),t}});var OYe=Te((Mwr,BYe)=>{"use strict";BYe.exports={RELATIVE_CULL_TOLERANCE:1e-6}});var UYe=Te((Ewr,NYe)=>{"use strict";var qYe=.5;NYe.exports=function(t,r,n,i){var a=t[0]-r[0],o=t[1]-r[1],s=n[0]-r[0],u=n[1]-r[1],l=Math.pow(a*a+o*o,qYe/2),f=Math.pow(s*s+u*u,qYe/2),c=(f*f*a-l*l*s)*i,h=(f*f*o-l*l*u)*i,d=f*(l+f)*3,p=l*(l+f)*3;return[[r[0]+(d&&c/d),r[1]+(d&&h/d)],[r[0]-(p&&c/p),r[1]-(p&&h/p)]]}});var GYe=Te((kwr,VYe)=>{"use strict";var D$=UYe(),rO=ei().ensureArray;function BS(e,t,r){var n=-.5*r[0]+1.5*t[0],i=-.5*r[1]+1.5*t[1];return[(2*n+e[0])/3,(2*i+e[1])/3]}VYe.exports=function(t,r,n,i,a,o){var s,u,l,f,c,h,d,p,x,b,v=n[0].length,k=n.length,E=a?3*v-2:v,T=o?3*k-2:k;for(t=rO(t,T),r=rO(r,T),l=0;l{"use strict";HYe.exports=function(e,t,r,n,i){var a=t-2,o=r-2;return n&&i?function(s,u,l){s||(s=[]);var f,c,h,d,p,x,b=Math.max(0,Math.min(Math.floor(u),a)),v=Math.max(0,Math.min(Math.floor(l),o)),k=Math.max(0,Math.min(1,u-b)),E=Math.max(0,Math.min(1,l-v));b*=3,v*=3;var T=k*k,L=T*k,_=1-k,C=_*_,S=C*_,m=E*E,P=m*E,A=1-E,B=A*A,F=B*A;for(x=0;x{"use strict";jYe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var u,l,f,c,h,d;i*=3,a*=3;var p=o*o,x=1-o,b=x*x,v=x*o*2,k=-3*b,E=3*(b-v),T=3*(v-p),L=3*p,_=s*s,C=_*s,S=1-s,m=S*S,P=m*S;for(d=0;d{"use strict";ZYe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var u,l,f,c,h,d;i*=3,a*=3;var p=o*o,x=p*o,b=1-o,v=b*b,k=v*b,E=s*s,T=1-s,L=T*T,_=T*s*2,C=-3*L,S=3*(L-_),m=3*(_-E),P=3*E;for(d=0;d{"use strict";var KYe=OYe(),JYe=LL().findBin,iJt=GYe(),nJt=WYe(),aJt=XYe(),oJt=YYe();$Ye.exports=function(t){var r=t._a,n=t._b,i=r.length,a=n.length,o=t.aaxis,s=t.baxis,u=r[0],l=r[i-1],f=n[0],c=n[a-1],h=r[r.length-1]-r[0],d=n[n.length-1]-n[0],p=h*KYe.RELATIVE_CULL_TOLERANCE,x=d*KYe.RELATIVE_CULL_TOLERANCE;u-=p,l+=p,f-=x,c+=x,t.isVisible=function(b,v){return b>u&&bf&&vl||vc},t.setScale=function(){var b=t._x,v=t._y,k=iJt(t._xctrl,t._yctrl,b,v,o.smoothing,s.smoothing);t._xctrl=k[0],t._yctrl=k[1],t.evalxy=nJt([t._xctrl,t._yctrl],i,a,o.smoothing,s.smoothing),t.dxydi=aJt([t._xctrl,t._yctrl],o.smoothing,s.smoothing),t.dxydj=oJt([t._xctrl,t._yctrl],o.smoothing,s.smoothing)},t.i2a=function(b){var v=Math.max(0,Math.floor(b[0]),i-2),k=b[0]-v;return(1-k)*r[v]+k*r[v+1]},t.j2b=function(b){var v=Math.max(0,Math.floor(b[1]),i-2),k=b[1]-v;return(1-k)*n[v]+k*n[v+1]},t.ij2ab=function(b){return[t.i2a(b[0]),t.j2b(b[1])]},t.a2i=function(b){var v=Math.max(0,Math.min(JYe(b,r),i-2)),k=r[v],E=r[v+1];return Math.max(0,Math.min(i-1,v+(b-k)/(E-k)))},t.b2j=function(b){var v=Math.max(0,Math.min(JYe(b,n),a-2)),k=n[v],E=n[v+1];return Math.max(0,Math.min(a-1,v+(b-k)/(E-k)))},t.ab2ij=function(b){return[t.a2i(b[0]),t.b2j(b[1])]},t.i2c=function(b,v){return t.evalxy([],b,v)},t.ab2xy=function(b,v,k){if(!k&&(br[i-1]|vn[a-1]))return[!1,!1];var E=t.a2i(b),T=t.b2j(v),L=t.evalxy([],E,T);if(k){var _=0,C=0,S=[],m,P,A,B;br[i-1]?(m=i-2,P=1,_=(b-r[i-1])/(r[i-1]-r[i-2])):(m=Math.max(0,Math.min(i-2,Math.floor(E))),P=E-m),vn[a-1]?(A=a-2,B=1,C=(v-n[a-1])/(n[a-1]-n[a-2])):(A=Math.max(0,Math.min(a-2,Math.floor(T))),B=T-A),_&&(t.dxydi(S,m,A,P,B),L[0]+=S[0]*_,L[1]+=S[1]*_),C&&(t.dxydj(S,m,A,P,B),L[0]+=S[0]*C,L[1]+=S[1]*C)}return L},t.c2p=function(b,v,k){return[v.c2p(b[0]),k.c2p(b[1])]},t.p2x=function(b,v,k){return[v.p2c(b[0]),k.p2c(b[1])]},t.dadi=function(b){var v=Math.max(0,Math.min(r.length-2,b));return r[v+1]-r[v]},t.dbdj=function(b){var v=Math.max(0,Math.min(n.length-2,b));return n[v+1]-n[v]},t.dxyda=function(b,v,k,E){var T=t.dxydi(null,b,v,k,E),L=t.dadi(b,k);return[T[0]/L,T[1]/L]},t.dxydb=function(b,v,k,E){var T=t.dxydj(null,b,v,k,E),L=t.dbdj(v,E);return[T[0]/L,T[1]/L]},t.dxyda_rough=function(b,v,k){var E=h*(k||.1),T=t.ab2xy(b+E,v,!0),L=t.ab2xy(b-E,v,!0);return[(T[0]-L[0])*.5/E,(T[1]-L[1])*.5/E]},t.dxydb_rough=function(b,v,k){var E=d*(k||.1),T=t.ab2xy(b,v+E,!0),L=t.ab2xy(b,v-E,!0);return[(T[0]-L[0])*.5/E,(T[1]-L[1])*.5/E]},t.dpdx=function(b){return b._m},t.dpdy=function(b){return b._m}}});var sKe=Te((Iwr,oKe)=>{"use strict";var iO=wu(),eKe=ei().isArray1D,sJt=wYe(),tKe=MYe(),rKe=kYe(),iKe=zYe(),lJt=RYe(),nKe=tR(),aKe=FYe(),uJt=QI(),fJt=QYe();oKe.exports=function(t,r){var n=iO.getFromId(t,r.xaxis),i=iO.getFromId(t,r.yaxis),a=r.aaxis,o=r.baxis,s=r.x,u=r.y,l=[];s&&eKe(s)&&l.push("x"),u&&eKe(u)&&l.push("y"),l.length&&uJt(r,a,o,"a","b",l);var f=r._a=r._a||r.a,c=r._b=r._b||r.b;s=r._x||r.x,u=r._y||r.y;var h={};if(r._cheater){var d=a.cheatertype==="index"?f.length:f,p=o.cheatertype==="index"?c.length:c;s=sJt(d,p,r.cheaterslope)}r._x=s=nKe(s),r._y=u=nKe(u),aKe(s,f,c),aKe(u,f,c),fJt(r),r.setScale();var x=tKe(s),b=tKe(u),v=.5*(x[1]-x[0]),k=.5*(x[1]+x[0]),E=.5*(b[1]-b[0]),T=.5*(b[1]+b[0]),L=1.3;return x=[k-v*L,k+v*L],b=[T-E*L,T+E*L],r._extremes[n._id]=iO.findExtremes(n,x,{padded:!0}),r._extremes[i._id]=iO.findExtremes(i,b,{padded:!0}),rKe(r,"a","b"),rKe(r,"b","a"),iKe(r,a),iKe(r,o),h.clipsegments=lJt(r._xctrl,r._yctrl,a,o),h.x=s,h.y=u,h.a=f,h.b=c,[h]}});var uKe=Te((Rwr,lKe)=>{"use strict";lKe.exports={attributes:KB(),supplyDefaults:lYe(),plot:xYe(),calc:sKe(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:Ah(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}});var cKe=Te((Dwr,fKe)=>{"use strict";fKe.exports=uKe()});var F$=Te((Fwr,dKe)=>{"use strict";var cJt=Em(),u0=Xc(),hJt=Vf(),dJt=Hu().hovertemplateAttrs,pJt=Hu().texttemplateAttrs,hKe=nc(),Cx=Su().extendFlat,sm=u0.marker,OS=u0.line,vJt=sm.line;dKe.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:Cx({},u0.mode,{dflt:"markers"}),text:Cx({},u0.text,{}),texttemplate:pJt({editType:"plot"},{keys:["a","b","text"]}),hovertext:Cx({},u0.hovertext,{}),line:{color:OS.color,width:OS.width,dash:OS.dash,backoff:OS.backoff,shape:Cx({},OS.shape,{values:["linear","spline"]}),smoothing:OS.smoothing,editType:"calc"},connectgaps:u0.connectgaps,fill:Cx({},u0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:cJt(),marker:Cx({symbol:sm.symbol,opacity:sm.opacity,maxdisplayed:sm.maxdisplayed,angle:sm.angle,angleref:sm.angleref,standoff:sm.standoff,size:sm.size,sizeref:sm.sizeref,sizemin:sm.sizemin,sizemode:sm.sizemode,line:Cx({width:vJt.width,editType:"calc"},hKe("marker.line")),gradient:sm.gradient,editType:"calc"},hKe("marker")),textfont:u0.textfont,textposition:u0.textposition,selected:u0.selected,unselected:u0.unselected,hoverinfo:Cx({},hJt.hoverinfo,{flags:["a","b","text","name"]}),hoveron:u0.hoveron,hovertemplate:dJt(),zorder:u0.zorder}});var yKe=Te((Bwr,mKe)=>{"use strict";var pKe=ei(),mJt=Sy(),qS=lc(),yJt=$v(),gJt=I0(),vKe=J3(),_Jt=R0(),xJt=zm(),bJt=F$();mKe.exports=function(t,r,n,i){function a(h,d){return pKe.coerce(t,r,bJt,h,d)}a("carpet"),r.xaxis="x",r.yaxis="y";var o=a("a"),s=a("b"),u=Math.min(o.length,s.length);if(!u){r.visible=!1;return}r._length=u,a("text"),a("texttemplate"),a("hovertext");var l=u{"use strict";gKe.exports=function(t,r){var n={},i=r._carpet,a=i.ab2ij([t.a,t.b]),o=Math.floor(a[0]),s=a[0]-o,u=Math.floor(a[1]),l=a[1]-u,f=i.evalxy([],o,u,s,l);return n.yLabel=f[1].toFixed(3),n}});var nO=Te((qwr,xKe)=>{"use strict";xKe.exports=function(e,t){for(var r=e._fullData.length,n,i=0;i{"use strict";var bKe=ku(),wJt=D0(),AJt=ky(),TJt=F0(),SJt=B0().calcMarkerSize,MJt=nO();wKe.exports=function(t,r){var n=r._carpetTrace=MJt(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){var i;r.xaxis=n.xaxis,r.yaxis=n.yaxis;var a=r._length,o=new Array(a),s,u,l=!1;for(i=0;i{"use strict";var EJt=iA(),TKe=wu(),kJt=Mu();SKe.exports=function(t,r,n,i){var a,o,s,u=n[0][0].carpet,l=TKe.getFromId(t,u.xaxis||"x"),f=TKe.getFromId(t,u.yaxis||"y"),c={xaxis:l,yaxis:f,plot:r.plot};for(a=0;a{"use strict";var CJt=sA(),LJt=ei().fillText;EKe.exports=function(t,r,n,i){var a=CJt(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,u=t.xa._length,l=u*s/2,f=u-l;return o.x0=Math.max(Math.min(o.x0,f),l),o.x1=Math.max(Math.min(o.x1,f),l),a}var c=o.cd[o.index];o.a=c.a,o.b=c.b,o.xLabelVal=void 0,o.yLabelVal=void 0;var h=o.trace,d=h._carpet,p=h._module.formatLabels(c,h);o.yLabel=p.yLabel,delete o.text;var x=[];function b(E,T){var L;E.labelprefix&&E.labelprefix.length>0?L=E.labelprefix.replace(/ = $/,""):L=E._hovertitle,x.push(L+": "+T.toFixed(3)+E.labelsuffix)}if(!h.hovertemplate){var v=c.hi||h.hoverinfo,k=v.split("+");k.indexOf("all")!==-1&&(k=["a","b","text"]),k.indexOf("a")!==-1&&b(d.aaxis,c.a),k.indexOf("b")!==-1&&b(d.baxis,c.b),x.push("y: "+o.yLabel),k.indexOf("text")!==-1&&LJt(c,h,x),o.extraText=x.join("
")}return a}});var LKe=Te((Gwr,CKe)=>{"use strict";CKe.exports=function(t,r,n,i,a){var o=i[a];return t.a=o.a,t.b=o.b,t.y=o.y,t}});var zKe=Te((Hwr,PKe)=>{"use strict";PKe.exports={attributes:F$(),supplyDefaults:yKe(),colorbar:ep(),formatLabels:_Ke(),calc:AKe(),plot:MKe(),style:av().style,styleOnSelect:av().styleOnSelect,hoverPoints:kKe(),selectPoints:lA(),eventData:LKe(),moduleType:"trace",name:"scattercarpet",basePlotModule:Ah(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}});var RKe=Te((Wwr,IKe)=>{"use strict";IKe.exports=zKe()});var B$=Te((jwr,DKe)=>{"use strict";var lm=EA(),m1=TE(),PJt=nc(),zJt=Su().extendFlat,tg=m1.contours;DKe.exports=zJt({carpet:{valType:"string",editType:"calc"},z:lm.z,a:lm.x,a0:lm.x0,da:lm.dx,b:lm.y,b0:lm.y0,db:lm.dy,text:lm.text,hovertext:lm.hovertext,transpose:lm.transpose,atype:lm.xtype,btype:lm.ytype,fillcolor:m1.fillcolor,autocontour:m1.autocontour,ncontours:m1.ncontours,contours:{type:tg.type,start:tg.start,end:tg.end,size:tg.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:tg.showlines,showlabels:tg.showlabels,labelfont:tg.labelfont,labelformat:tg.labelformat,operation:tg.operation,value:tg.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:m1.line.color,width:m1.line.width,dash:m1.line.dash,smoothing:m1.line.smoothing,editType:"plot"},zorder:m1.zorder},PJt("",{cLetter:"z",autoColorDflt:!1}))});var O$=Te((Xwr,OKe)=>{"use strict";var FKe=ei(),IJt=KI(),BKe=B$(),RJt=zG(),DJt=xR(),FJt=bR();OKe.exports=function(t,r,n,i){function a(l,f){return FKe.coerce(t,r,BKe,l,f)}function o(l){return FKe.coerce2(t,r,BKe,l)}if(a("carpet"),t.a&&t.b){var s=IJt(t,r,a,i,"a","b");if(!s){r.visible=!1;return}a("text");var u=a("contours.type")==="constraint";u?RJt(t,r,a,i,n,{hasHover:!1}):(DJt(t,r,a,o),FJt(t,r,a,i,{hasHover:!1}))}else r._defaultColor=n,r._length=null;a("zorder")}});var VKe=Te((Zwr,UKe)=>{"use strict";var BJt=Dp(),qKe=ei(),OJt=QI(),qJt=tR(),NJt=rR(),UJt=iR(),NKe=rG(),VJt=O$(),GJt=nO(),HJt=xG();UKe.exports=function(t,r){var n=r._carpetTrace=GJt(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){if(!r.a||!r.b){var i=t.data[n.index],a=t.data[r.index];a.a||(a.a=i.a),a.b||(a.b=i.b),VJt(a,r,r._defaultColor,t._fullLayout)}var o=WJt(t,r);return HJt(r,r._z),o}};function WJt(e,t){var r=t._carpetTrace,n=r.aaxis,i=r.baxis,a,o,s,u,l,f,c;n._minDtick=0,i._minDtick=0,qKe.isArray1D(t.z)&&OJt(t,n,i,"a","b",["z"]),a=t._a=t._a||t.a,u=t._b=t._b||t.b,a=a?n.makeCalcdata(t,"_a"):[],u=u?i.makeCalcdata(t,"_b"):[],o=t.a0||0,s=t.da||1,l=t.b0||0,f=t.db||1,c=t._z=qJt(t._z||t.z,t.transpose),t._emptypoints=UJt(c),NJt(c,t._emptypoints);var h=qKe.maxRowLength(c),d=t.xtype==="scaled"?"":a,p=NKe(t,d,o,s,h,n),x=t.ytype==="scaled"?"":u,b=NKe(t,x,l,f,c.length,i),v={a:p,b,z:c};return t.contours.type==="levels"&&t.contours.coloring!=="none"&&BJt(e,t,{vals:c,containerStr:"",cLetter:"z"}),[v]}});var HKe=Te((Ywr,GKe)=>{"use strict";var jJt=ei().isArrayOrTypedArray;GKe.exports=function(e,t,r,n){var i,a,o,s,u,l,f,c,h,d,p,x,b,v=jJt(r)?"a":"b",k=v==="a"?e.aaxis:e.baxis,E=k.smoothing,T=v==="a"?e.a2i:e.b2j,L=v==="a"?r:n,_=v==="a"?n:r,C=v==="a"?t.a.length:t.b.length,S=v==="a"?t.b.length:t.a.length,m=Math.floor(v==="a"?e.b2j(_):e.a2i(_)),P=v==="a"?function(be){return e.evalxy([],be,m)}:function(be){return e.evalxy([],m,be)};E&&(o=Math.max(0,Math.min(S-2,m)),s=m-o,a=v==="a"?function(be,Pe){return e.dxydi([],be,o,Pe,s)}:function(be,Pe){return e.dxydj([],o,be,s,Pe)});var A=T(L[0]),B=T(L[1]),F=A0?Math.floor:Math.ceil,j=F>0?Math.ceil:Math.floor,H=F>0?Math.min:Math.max,N=F>0?Math.max:Math.min,W=G(A+U),re=j(B-U);f=P(A);var ae=[[f]];for(i=W;i*F{"use strict";var oO=Jl(),sO=z$(),YKe=I$(),rC=Mu(),y1=ei(),XJt=wG(),ZJt=AG(),hw=TR(),aO=ME(),YJt=EG(),KJt=MG(),JJt=kG(),$Jt=nO(),WKe=HKe();KKe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;y1.makeTraceGroups(i,n,"contour").each(function(s){var u=oO.select(this),l=s[0],f=l.trace,c=f._carpetTrace=$Jt(t,f),h=t.calcdata[c.index][0];if(!c.visible||c.visible==="legendonly")return;var d=l.a,p=l.b,x=f.contours,b=KJt(x,r,l),v=x.type==="constraint",k=x._operation,E=v?k==="="?"lines":"fill":x.coloring;function T(G){var j=c.ab2xy(G[0],G[1],!0);return[a.c2p(j[0]),o.c2p(j[1])]}var L=[[d[0],p[p.length-1]],[d[d.length-1],p[p.length-1]],[d[d.length-1],p[0]],[d[0],p[0]]];XJt(b);var _=(d[d.length-1]-d[0])*1e-8,C=(p[p.length-1]-p[0])*1e-8;ZJt(b,_,C);var S=b;x.type==="constraint"&&(S=YJt(b,k)),QJt(b,T);var m,P,A,B,F=[];for(B=h.clipsegments.length-1;B>=0;B--)m=h.clipsegments[B],P=sO([],m.x,a.c2p),A=sO([],m.y,o.c2p),P.reverse(),A.reverse(),F.push(YKe(P,A,m.bicubic));var U="M"+F.join("L")+"Z";r$t(u,h.clipsegments,a,o,v,E),i$t(f,u,a,o,S,L,T,c,h,E,U),e$t(u,b,t,l,x,r,c),rC.setClipUrl(u,c._clipPathId,t)})};function QJt(e,t){var r,n,i,a,o,s,u,l,f;for(r=0;rb&&(n.max=b),n.len=n.max-n.min}function jKe(e,t,r){var n=e.getPointAtLength(t),i=e.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function XKe(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function ZKe(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]),n=Math.sqrt(1-r*r);return n/r}function r$t(e,t,r,n,i,a){var o,s,u,l,f=y1.ensureSingle(e,"g","contourbg"),c=f.selectAll("path").data(a==="fill"&&!i?[0]:[]);c.enter().append("path"),c.exit().remove();var h=[];for(l=0;l=0&&(d=P,x=b):Math.abs(h[1]-d[1])=0&&(d=P,x=b):y1.log("endpt to newendpt is not vert. or horz.",h,d,P)}if(x>=0)break;l+=S(h,d),h=d}if(x===t.edgepaths.length){y1.log("unclosed perimeter path");break}u=x,c=f.indexOf(u)===-1,c&&(u=f[0],l+=S(h,d)+"Z",h=null)}for(u=0;u{"use strict";$Ke.exports={attributes:B$(),supplyDefaults:O$(),colorbar:ER(),calc:VKe(),plot:JKe(),style:MR(),moduleType:"trace",name:"contourcarpet",basePlotModule:Ah(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}});var tJe=Te(($wr,eJe)=>{"use strict";eJe.exports=QKe()});var uO=Te((Qwr,oJe)=>{"use strict";var lO=ei().extendFlat,iC=Xc(),rJe=Hc().axisHoverFormat,nJe=Id().dash,a$t=i3(),aJe=GA(),o$t=aJe.INCREASING.COLOR,s$t=aJe.DECREASING.COLOR,q$=iC.line;function iJe(e){return{line:{color:lO({},q$.color,{dflt:e}),width:q$.width,dash:nJe,editType:"style"},editType:"style"}}oJe.exports={xperiod:iC.xperiod,xperiod0:iC.xperiod0,xperiodalignment:iC.xperiodalignment,xhoverformat:rJe("x"),yhoverformat:rJe("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:lO({},q$.width,{}),dash:lO({},nJe,{}),editType:"style"},increasing:iJe(o$t),decreasing:iJe(s$t),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:lO({},a$t.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:iC.zorder}});var N$=Te((e3r,sJe)=>{"use strict";var l$t=$l(),u$t=ei();sJe.exports=function(t,r,n,i){var a=n("x"),o=n("open"),s=n("high"),u=n("low"),l=n("close");n("hoverlabel.split");var f=l$t.getComponentMethod("calendars","handleTraceDefaults");if(f(t,r,["x"],i),!!(o&&s&&u&&l)){var c=Math.min(o.length,s.length,u.length,l.length);return a&&(c=Math.min(c,u$t.minRowLength(a))),r._length=c,c}}});var fJe=Te((t3r,uJe)=>{"use strict";var f$t=ei(),c$t=N$(),h$t=Pm(),d$t=uO();uJe.exports=function(t,r,n,i){function a(s,u){return f$t.coerce(t,r,d$t,s,u)}var o=c$t(t,r,a,i);if(!o){r.visible=!1;return}h$t(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),a("line.dash"),lJe(t,r,a,"increasing"),lJe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("tickwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function lJe(e,t,r,n){r(n+".line.color"),r(n+".line.width",t.line.width),r(n+".line.dash",t.line.dash)}});var U$=Te((r3r,hJe)=>{"use strict";var NS=ei(),fO=NS._,cO=wu(),p$t=Im(),nC=nf().BADNUM;function v$t(e,t){var r=cO.getFromId(e,t.xaxis),n=cO.getFromId(e,t.yaxis),i=y$t(e,r,t),a=t._minDiff;t._minDiff=null;var o=t._origX;t._origX=null;var s=t._xcalc;t._xcalc=null;var u=cJe(e,t,o,s,n,m$t);return t._extremes[r._id]=cO.findExtremes(r,s,{vpad:a/2}),u.length?(NS.extendFlat(u[0].t,{wHover:a/2,tickLen:i}),u):[{t:{empty:!0}}]}function m$t(e,t,r,n){return{o:e,h:t,l:r,c:n}}function cJe(e,t,r,n,i,a){for(var o=i.makeCalcdata(t,"open"),s=i.makeCalcdata(t,"high"),u=i.makeCalcdata(t,"low"),l=i.makeCalcdata(t,"close"),f=NS.isArrayOrTypedArray(t.text),c=NS.isArrayOrTypedArray(t.hovertext),h=!0,d=null,p=!!t.xperiodalignment,x=[],b=0;bd):h=L>k,d=L;var _=a(k,E,T,L);_.pos=v,_.yc=(k+L)/2,_.i=b,_.dir=h?"increasing":"decreasing",_.x=_.pos,_.y=[T,E],p&&(_.orig_p=r[b]),f&&(_.tx=t.text[b]),c&&(_.htx=t.hovertext[b]),x.push(_)}else x.push({pos:v,empty:!0})}return t._extremes[i._id]=cO.findExtremes(i,NS.concat(u,s),{padded:!0}),x.length&&(x[0].t={labels:{open:fO(e,"open:")+" ",high:fO(e,"high:")+" ",low:fO(e,"low:")+" ",close:fO(e,"close:")+" "}}),x}function y$t(e,t,r){var n=r._minDiff;if(!n){var i=e._fullData,a=[];n=1/0;var o;for(o=0;o{"use strict";var g$t=Jl(),dJe=ei();pJe.exports=function(t,r,n,i){var a=r.yaxis,o=r.xaxis,s=!!o.rangebreaks;dJe.makeTraceGroups(i,n,"trace ohlc").each(function(u){var l=g$t.select(this),f=u[0],c=f.t,h=f.trace;if(h.visible!==!0||c.empty){l.remove();return}var d=c.tickLen,p=l.selectAll("path").data(dJe.identity);p.enter().append("path"),p.exit().remove(),p.attr("d",function(x){if(x.empty)return"M0,0Z";var b=o.c2p(x.pos-d,!0),v=o.c2p(x.pos+d,!0),k=s?(b+v)/2:o.c2p(x.pos,!0),E=a.c2p(x.o,!0),T=a.c2p(x.h,!0),L=a.c2p(x.l,!0),_=a.c2p(x.c,!0);return"M"+b+","+E+"H"+k+"M"+k+","+T+"V"+L+"M"+v+","+_+"H"+k})})}});var yJe=Te((n3r,mJe)=>{"use strict";var V$=Jl(),_$t=Mu(),x$t=jl();mJe.exports=function(t,r,n){var i=n||V$.select(t).selectAll("g.ohlclayer").selectAll("g.trace");i.style("opacity",function(a){return a[0].trace.opacity}),i.each(function(a){var o=a[0].trace;V$.select(this).selectAll("path").each(function(s){if(!s.empty){var u=o[s.dir].line;V$.select(this).style("fill","none").call(x$t.stroke,u.color).call(_$t.dashLine,u.dash,u.width).style("opacity",o.selectedpoints&&!s.selected?.3:1)}})})}});var H$=Te((a3r,wJe)=>{"use strict";var G$=wu(),b$t=ei(),hO=jc(),w$t=jl(),A$t=ei().fillText,gJe=GA(),T$t={increasing:gJe.INCREASING.SYMBOL,decreasing:gJe.DECREASING.SYMBOL};function S$t(e,t,r,n){var i=e.cd,a=i[0].trace;return a.hoverlabel.split?xJe(e,t,r,n):bJe(e,t,r,n)}function _Je(e,t,r,n){var i=e.cd,a=e.xa,o=i[0].trace,s=i[0].t,u=o.type,l=u==="ohlc"?"l":"min",f=u==="ohlc"?"h":"max",c,h,d=s.bPos||0,p=function(P){return P.pos+d-t},x=s.bdPos||s.tickLen,b=s.wHover,v=Math.min(1,x/Math.abs(a.r2c(a.range[1])-a.r2c(a.range[0])));c=e.maxHoverDistance-v,h=e.maxSpikeDistance-v;function k(P){var A=p(P);return hO.inbox(A-b,A+b,c)}function E(P){var A=P[l],B=P[f];return A===B||hO.inbox(A-r,B-r,c)}function T(P){return(k(P)+E(P))/2}var L=hO.getDistanceFunction(n,k,E,T);if(hO.getClosest(i,L,e),e.index===!1)return null;var _=i[e.index];if(_.empty)return null;var C=_.dir,S=o[C],m=S.line.color;return w$t.opacity(m)&&S.line.width?e.color=m:e.color=S.fillcolor,e.x0=a.c2p(_.pos+d-x,!0),e.x1=a.c2p(_.pos+d+x,!0),e.xLabelVal=_.orig_p!==void 0?_.orig_p:_.pos,e.spikeDistance=T(_)*h/c,e.xSpike=a.c2p(_.pos,!0),e}function xJe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,u=[],l=_Je(e,t,r,n);if(!l)return[];var f=l.index,c=i[f],h=c.hi||o.hoverinfo,d=h.split("+"),p=h==="all",x=p||d.indexOf("y")!==-1;if(!x)return[];for(var b=["high","open","close","low"],v={},k=0;k"+s.labels[E]+G$.hoverLabelText(a,T,o.yhoverformat)):(_=b$t.extendFlat({},l),_.y0=_.y1=L,_.yLabelVal=T,_.yLabel=s.labels[E]+G$.hoverLabelText(a,T,o.yhoverformat),_.name="",u.push(_),v[T]=_)}return u}function bJe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,u=_Je(e,t,r,n);if(!u)return[];var l=u.index,f=i[l],c=u.index=f.i,h=f.dir;function d(T){return s.labels[T]+G$.hoverLabelText(a,o[T][c],o.yhoverformat)}var p=f.hi||o.hoverinfo,x=p.split("+"),b=p==="all",v=b||x.indexOf("y")!==-1,k=b||x.indexOf("text")!==-1,E=v?[d("open"),d("high"),d("low"),d("close")+" "+T$t[h]]:[];return k&&A$t(f,o,E),u.extraText=E.join("
"),u.y0=u.y1=a.c2p(f.yc,!0),[u]}wJe.exports={hoverPoints:S$t,hoverSplit:xJe,hoverOnPoints:bJe}});var W$=Te((o3r,AJe)=>{"use strict";AJe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,u=n[0].t.bPos||0;if(r===!1)for(s=0;s{"use strict";TJe.exports={moduleType:"trace",name:"ohlc",basePlotModule:Ah(),categories:["cartesian","svg","showLegend"],meta:{},attributes:uO(),supplyDefaults:fJe(),calc:U$().calc,plot:vJe(),style:yJe(),hoverPoints:H$().hoverPoints,selectPoints:W$()}});var EJe=Te((l3r,MJe)=>{"use strict";MJe.exports=SJe()});var X$=Te((u3r,LJe)=>{"use strict";var j$=ei().extendFlat,kJe=Hc().axisHoverFormat,f0=uO(),US=vE();function CJe(e){return{line:{color:j$({},US.line.color,{dflt:e}),width:US.line.width,editType:"style"},fillcolor:US.fillcolor,editType:"style"}}LJe.exports={xperiod:f0.xperiod,xperiod0:f0.xperiod0,xperiodalignment:f0.xperiodalignment,xhoverformat:kJe("x"),yhoverformat:kJe("y"),x:f0.x,open:f0.open,high:f0.high,low:f0.low,close:f0.close,line:{width:j$({},US.line.width,{}),editType:"style"},increasing:CJe(f0.increasing.line.color.dflt),decreasing:CJe(f0.decreasing.line.color.dflt),text:f0.text,hovertext:f0.hovertext,whiskerwidth:j$({},US.whiskerwidth,{dflt:0}),hoverlabel:f0.hoverlabel,zorder:US.zorder}});var IJe=Te((f3r,zJe)=>{"use strict";var M$t=ei(),E$t=jl(),k$t=N$(),C$t=Pm(),L$t=X$();zJe.exports=function(t,r,n,i){function a(s,u){return M$t.coerce(t,r,L$t,s,u)}var o=k$t(t,r,a,i);if(!o){r.visible=!1;return}C$t(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),PJe(t,r,a,"increasing"),PJe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("whiskerwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function PJe(e,t,r,n){var i=r(n+".line.color");r(n+".line.width",t.line.width),r(n+".fillcolor",E$t.addOpacity(i,.5))}});var BJe=Te((c3r,FJe)=>{"use strict";var RJe=ei(),DJe=wu(),P$t=Im(),z$t=U$().calcCommon;FJe.exports=function(e,t){var r=e._fullLayout,n=DJe.getFromId(e,t.xaxis),i=DJe.getFromId(e,t.yaxis),a=n.makeCalcdata(t,"x"),o=P$t(t,n,"x",a).vals,s=z$t(e,t,a,o,i,I$t);return s.length?(RJe.extendFlat(s[0].t,{num:r._numBoxes,dPos:RJe.distinctVals(o).minDiff/2,posLetter:"x",valLetter:"y"}),r._numBoxes++,s):[{t:{empty:!0}}]};function I$t(e,t,r,n){return{min:r,q1:Math.min(e,n),med:n,q3:Math.max(e,n),max:t}}});var qJe=Te((h3r,OJe)=>{"use strict";OJe.exports={moduleType:"trace",name:"candlestick",basePlotModule:Ah(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:X$(),layoutAttributes:mE(),supplyLayoutDefaults:HI().supplyLayoutDefaults,crossTraceCalc:jI().crossTraceCalc,supplyDefaults:IJe(),calc:BJe(),plot:XI().plot,layerName:"boxlayer",style:ZI().style,hoverPoints:H$().hoverPoints,selectPoints:W$()}});var UJe=Te((d3r,NJe)=>{"use strict";NJe.exports=qJe()});var Y$=Te((p3r,VJe)=>{"use strict";var pO=ei(),R$t=gy(),dO=pO.deg2rad,Z$=pO.rad2deg;VJe.exports=function(t,r,n){switch(R$t(t,n),t._id){case"x":case"radialaxis":D$t(t,r);break;case"angularaxis":O$t(t,r);break}};function D$t(e,t){var r=t._subplot;e.setGeometry=function(){var n=e._rl[0],i=e._rl[1],a=r.innerRadius,o=(r.radius-a)/(i-n),s=a/o,u=n>i?function(l){return l<=0}:function(l){return l>=0};e.c2g=function(l){var f=e.c2l(l)-n;return(u(f)?f:0)+s},e.g2c=function(l){return e.l2c(l+n-s)},e.g2p=function(l){return l*o},e.c2p=function(l){return e.g2p(e.c2g(l))}}}function F$t(e,t){return t==="degrees"?dO(e):e}function B$t(e,t){return t==="degrees"?Z$(e):e}function O$t(e,t){var r=e.type;if(r==="linear"){var n=e.d2c,i=e.c2d;e.d2c=function(a,o){return F$t(n(a),o)},e.c2d=function(a,o){return i(B$t(a,o))}}e.makeCalcdata=function(a,o){var s=a[o],u=a._length,l,f,c=function(b){return e.d2c(b,a.thetaunit)};if(s)for(l=new Array(u),f=0;f{"use strict";GJe.exports={attr:"subplot",name:"polar",axisNames:["angularaxis","radialaxis"],axisName2dataArray:{angularaxis:"theta",radialaxis:"r"},layerNames:["draglayer","plotbg","backplot","angular-grid","radial-grid","frontplot","angular-line","radial-line","angular-axis","radial-axis"],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}});var yO=Te((m3r,ZJe)=>{"use strict";var dw=ei(),HJe=A5().tester,K$=dw.findIndexOfMin,jJe=dw.isAngleInsideSector,q$t=dw.angleDelta,WJe=dw.angleDist;function N$t(e,t,r,n,i){if(!jJe(t,n))return!1;var a,o;r[0]0?o:1/0},n=K$(t,r),i=dw.mod(n+1,t.length);return[t[n],t[i]]}function mO(e){return Math.abs(e)>1e-10?e:0}function J$(e,t,r){t=t||0,r=r||0;for(var n=e.length,i=new Array(n),a=0;a{"use strict";function YJe(e){return e<0?-1:e>0?1:0}function GS(e){var t=e[0],r=e[1];if(!isFinite(t)||!isFinite(r))return[1,0];var n=(t+1)*(t+1)+r*r;return[(t*t+r*r-1)/n,2*r/n]}function HS(e,t){var r=t[0],n=t[1];return[r*e.radius+e.cx,-n*e.radius+e.cy]}function KJe(e,t){return t*e.radius}function Z$t(e,t,r,n){var i=HS(e,GS([r,t])),a=i[0],o=i[1],s=HS(e,GS([n,t])),u=s[0],l=s[1];if(t===0)return["M"+a+","+o,"L"+u+","+l].join(" ");var f=KJe(e,1/Math.abs(t));return["M"+a+","+o,"A"+f+","+f+" 0 0,"+(t<0?1:0)+" "+u+","+l].join(" ")}function Y$t(e,t,r,n){var i=KJe(e,1/(t+1)),a=HS(e,GS([t,r])),o=a[0],s=a[1],u=HS(e,GS([t,n])),l=u[0],f=u[1];if(YJe(r)!==YJe(n)){var c=HS(e,GS([t,0])),h=c[0],d=c[1];return["M"+o+","+s,"A"+i+","+i+" 0 0,"+(0{"use strict";var pw=Jl(),K$t=cd(),mw=$l(),Oc=ei(),rg=Oc.strRotate,bd=Oc.strTranslate,Q$=jl(),aC=Mu(),J$t=Cc(),hv=wu(),$$t=gy(),Q$t=Y$(),eQt=wm().doAutoRange,g1=X7(),xO=gp(),$Je=jc(),tQt=Mb(),rQt=nh().prepSelect,iQt=nh().selectOnClick,eQ=nh().clearOutline,QJe=Am(),e$e=u5(),t$e=y5().redrawReglTraces,nQt=Qh().MID_SHIFT,Lx=vO(),_1=yO(),bO=$$(),gO=bO.smith,aQt=bO.reactanceArc,oQt=bO.resistanceArc,_O=bO.smithTransform,sQt=Oc._,r$e=Oc.mod,Px=Oc.deg2rad,vw=Oc.rad2deg;function i$e(e,t,r){this.isSmith=r||!1,this.id=t,this.gd=e,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var n=e._fullLayout,i="clip"+n._uid+t;this.clipIds.forTraces=i+"-for-traces",this.clipPaths.forTraces=n._clips.append("clipPath").attr("id",this.clipIds.forTraces),this.clipPaths.forTraces.append("path"),this.framework=n["_"+(r?"smith":"polar")+"layer"].append("g").attr("class",t),this.getHole=function(a){return this.isSmith?0:a.hole},this.getSector=function(a){return this.isSmith?[0,360]:a.sector},this.getRadial=function(a){return this.isSmith?a.realaxis:a.radialaxis},this.getAngular=function(a){return this.isSmith?a.imaginaryaxis:a.angularaxis},r||(this.radialTickLayout=null,this.angularTickLayout=null)}var Vd=i$e.prototype;o$e.exports=function(t,r,n){return new i$e(t,r,n)};Vd.plot=function(e,t){for(var r=this,n=t[r.id],i=!1,a=0;ab?(v=l,k=l*b,L=(f-k)/i.h/2,E=[s[0],s[1]],T=[u[0]+L,u[1]-L]):(v=f/b,k=f,L=(l-v)/i.w/2,E=[s[0]+L,s[1]-L],T=[u[0],u[1]]),r.xLength2=v,r.yLength2=k,r.xDomain2=E,r.yDomain2=T;var _=r.xOffset2=i.l+i.w*E[0],C=r.yOffset2=i.t+i.h*(1-T[1]),S=r.radius=v/d,m=r.innerRadius=r.getHole(t)*S,P=r.cx=_-S*h[0],A=r.cy=C+S*h[3],B=r.cxx=P-_,F=r.cyy=A-C,U=a.side,G;U==="counterclockwise"?(G=U,U="top"):U==="clockwise"&&(G=U,U="bottom"),r.radialAxis=r.mockAxis(e,t,a,{_id:"x",side:U,_trueSide:G,domain:[m/i.w,S/i.w]}),r.angularAxis=r.mockAxis(e,t,o,{side:"right",domain:[0,Math.PI],autorange:!1}),r.doAutoRange(e,t),r.updateAngularAxis(e,t),r.updateRadialAxis(e,t),r.updateRadialAxisTitle(e,t),r.xaxis=r.mockCartesianAxis(e,t,{_id:"x",domain:E}),r.yaxis=r.mockCartesianAxis(e,t,{_id:"y",domain:T});var j=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",j).attr("transform",bd(B,F)),n.frontplot.attr("transform",bd(_,C)).call(aC.setClipUrl,r._hasClipOnAxisFalse?null:r.clipIds.forTraces,r.gd),n.bg.attr("d",j).attr("transform",bd(P,A)).call(Q$.fill,t.bgcolor)};Vd.mockAxis=function(e,t,r,n){var i=Oc.extendFlat({},r,n);return Q$t(i,t,e),i};Vd.mockCartesianAxis=function(e,t,r){var n=this,i=n.isSmith,a=r._id,o=Oc.extendFlat({type:"linear"},r);$$t(o,e);var s={x:[0,2],y:[1,3]};return o.setRange=function(){var u=n.sectorBBox,l=s[a],f=n.radialAxis._rl,c=(f[1]-f[0])/(1-n.getHole(t));o.range=[u[l[0]]*c,u[l[1]]*c]},o.isPtWithinRange=a==="x"&&!i?function(u){return n.isPtInside(u)}:function(){return!0},o.setRange(),o.setScale(),o};Vd.doAutoRange=function(e,t){var r=this,n=r.gd,i=r.radialAxis,a=r.getRadial(t);eQt(n,i);var o=i.range;if(a.range=o.slice(),a._input.range=o.slice(),i._rl=[i.r2l(o[0],null,"gregorian"),i.r2l(o[1],null,"gregorian")],i.minallowed!==void 0){var s=i.r2l(i.minallowed);i._rl[0]>i._rl[1]?i._rl[1]=Math.max(i._rl[1],s):i._rl[0]=Math.max(i._rl[0],s)}if(i.maxallowed!==void 0){var u=i.r2l(i.maxallowed);i._rl[0]90&&f<=270&&(c.tickangle=180);var p=d?function(S){var m=_O(r,gO([S.x,0]));return bd(m[0]-s,m[1]-u)}:function(S){return bd(c.l2p(S.x)+o,0)},x=d?function(S){return oQt(r,S.x,-1/0,1/0)}:function(S){return r.pathArc(c.r2p(S.x)+o)},b=n$e(l);if(r.radialTickLayout!==b&&(i["radial-axis"].selectAll(".xtick").remove(),r.radialTickLayout=b),h){c.setScale();var v=0,k=d?(c.tickvals||[]).filter(function(S){return S>=0}).map(function(S){return hv.tickText(c,S,!0,!1)}):hv.calcTicks(c),E=d?k:hv.clipEnds(c,k),T=hv.getTickSigns(c)[2];d&&((c.ticks==="top"&&c.side==="bottom"||c.ticks==="bottom"&&c.side==="top")&&(T=-T),c.ticks==="top"&&c.side==="top"&&(v=-c.ticklen),c.ticks==="bottom"&&c.side==="bottom"&&(v=c.ticklen)),hv.drawTicks(n,c,{vals:k,layer:i["radial-axis"],path:hv.makeTickPath(c,0,T),transFn:p,crisp:!1}),hv.drawGrid(n,c,{vals:E,layer:i["radial-grid"],path:x,transFn:Oc.noop,crisp:!1}),hv.drawLabels(n,c,{vals:k,layer:i["radial-axis"],transFn:p,labelFns:hv.makeLabelFns(c,v)})}var L=r.radialAxisAngle=r.vangles?vw(a$e(Px(l.angle),r.vangles)):l.angle,_=bd(s,u),C=_+rg(-L);oC(i["radial-axis"],h&&(l.showticklabels||l.ticks),{transform:C}),oC(i["radial-grid"],h&&l.showgrid,{transform:d?"":_}),oC(i["radial-line"].select("line"),h&&l.showline,{x1:d?-a:o,y1:0,x2:a,y2:0,transform:C}).attr("stroke-width",l.linewidth).call(Q$.stroke,l.linecolor)};Vd.updateRadialAxisTitle=function(e,t,r){if(!this.isSmith){var n=this,i=n.gd,a=n.radius,o=n.cx,s=n.cy,u=n.getRadial(t),l=n.id+"title",f=0;if(u.title){var c=aC.bBox(n.layers["radial-axis"].node()).height,h=u.title.font.size,d=u.side;f=d==="top"?h:d==="counterclockwise"?-(c+h*.4):c+h*.8}var p=r!==void 0?r:n.radialAxisAngle,x=Px(p),b=Math.cos(x),v=Math.sin(x),k=o+a/2*b+f*v,E=s-a/2*v+f*b;n.layers["radial-axis-title"]=tQt.draw(i,l,{propContainer:u,propName:n.id+".radialaxis.title",placeholder:sQt(i,"Click to enter radial axis title"),attributes:{x:k,y:E,"text-anchor":"middle"},transform:{rotate:-p}})}};Vd.updateAngularAxis=function(e,t){var r=this,n=r.gd,i=r.layers,a=r.radius,o=r.innerRadius,s=r.cx,u=r.cy,l=r.getAngular(t),f=r.angularAxis,c=r.isSmith;c||(r.fillViewInitialKey("angularaxis.rotation",l.rotation),f.setGeometry(),f.setScale());var h=c?function(m){var P=_O(r,gO([0,m.x]));return Math.atan2(P[0]-s,P[1]-u)-Math.PI/2}:function(m){return f.t2g(m.x)};f.type==="linear"&&f.thetaunit==="radians"&&(f.tick0=vw(f.tick0),f.dtick=vw(f.dtick));var d=function(m){return bd(s+a*Math.cos(m),u-a*Math.sin(m))},p=c?function(m){var P=_O(r,gO([0,m.x]));return bd(P[0],P[1])}:function(m){return d(h(m))},x=c?function(m){var P=_O(r,gO([0,m.x])),A=Math.atan2(P[0]-s,P[1]-u)-Math.PI/2;return bd(P[0],P[1])+rg(-vw(A))}:function(m){var P=h(m);return d(P)+rg(-vw(P))},b=c?function(m){return aQt(r,m.x,0,1/0)}:function(m){var P=h(m),A=Math.cos(P),B=Math.sin(P);return"M"+[s+o*A,u-o*B]+"L"+[s+a*A,u-a*B]},v=hv.makeLabelFns(f,0),k=v.labelStandoff,E={};E.xFn=function(m){var P=h(m);return Math.cos(P)*k},E.yFn=function(m){var P=h(m),A=Math.sin(P)>0?.2:1;return-Math.sin(P)*(k+m.fontSize*A)+Math.abs(Math.cos(P))*(m.fontSize*nQt)},E.anchorFn=function(m){var P=h(m),A=Math.cos(P);return Math.abs(A)<.1?"middle":A>0?"start":"end"},E.heightFn=function(m,P,A){var B=h(m);return-.5*(1+Math.sin(B))*A};var T=n$e(l);r.angularTickLayout!==T&&(i["angular-axis"].selectAll("."+f._id+"tick").remove(),r.angularTickLayout=T);var L=c?[1/0].concat(f.tickvals||[]).map(function(m){return hv.tickText(f,m,!0,!1)}):hv.calcTicks(f);c&&(L[0].text="\u221E",L[0].fontSize*=1.75);var _;if(t.gridshape==="linear"?(_=L.map(h),Oc.angleDelta(_[0],_[1])<0&&(_=_.slice().reverse())):_=null,r.vangles=_,f.type==="category"&&(L=L.filter(function(m){return Oc.isAngleInsideSector(h(m),r.sectorInRad)})),f.visible){var C=f.ticks==="inside"?-1:1,S=(f.linewidth||1)/2;hv.drawTicks(n,f,{vals:L,layer:i["angular-axis"],path:"M"+C*S+",0h"+C*f.ticklen,transFn:x,crisp:!1}),hv.drawGrid(n,f,{vals:L,layer:i["angular-grid"],path:b,transFn:Oc.noop,crisp:!1}),hv.drawLabels(n,f,{vals:L,layer:i["angular-axis"],repositionOnUpdate:!0,transFn:p,labelFns:E})}oC(i["angular-line"].select("path"),l.showline,{d:r.pathSubplot(),transform:bd(s,u)}).attr("stroke-width",l.linewidth).call(Q$.stroke,l.linecolor)};Vd.updateFx=function(e,t){if(!this.gd._context.staticPlot){var r=!this.isSmith;r&&(this.updateAngularDrag(e),this.updateRadialDrag(e,t,0),this.updateRadialDrag(e,t,1)),this.updateHoverAndMainDrag(e)}};Vd.updateHoverAndMainDrag=function(e){var t=this,r=t.isSmith,n=t.gd,i=t.layers,a=e._zoomlayer,o=Lx.MINZOOM,s=Lx.OFFEDGE,u=t.radius,l=t.innerRadius,f=t.cx,c=t.cy,h=t.cxx,d=t.cyy,p=t.sectorInRad,x=t.vangles,b=t.radialAxis,v=_1.clampTiny,k=_1.findXYatLength,E=_1.findEnclosingVertexAngles,T=Lx.cornerHalfWidth,L=Lx.cornerLen/2,_,C,S=g1.makeDragger(i,"path","maindrag",e.dragmode===!1?"none":"crosshair");pw.select(S).attr("d",t.pathSubplot()).attr("transform",bd(f,c)),S.onmousemove=function(ce){$Je.hover(n,ce,t.id),n._fullLayout._lasthover=S,n._fullLayout._hoversubplot=t.id},S.onmouseout=function(ce){n._dragging||xO.unhover(n,ce)};var m={element:S,gd:n,subplot:t.id,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis},xaxes:[t.xaxis],yaxes:[t.yaxis]},P,A,B,F,U,G,j,H,N;function W(ce,Ke){return Math.sqrt(ce*ce+Ke*Ke)}function re(ce,Ke){return W(ce-h,Ke-d)}function ae(ce,Ke){return Math.atan2(d-Ke,ce-h)}function be(ce,Ke){return[ce*Math.cos(Ke),ce*Math.sin(-Ke)]}function Pe(ce,Ke){if(ce===0)return t.pathSector(2*T);var it=L/ce,bt=Ke-it,Nt=Ke+it,nt=Math.max(0,Math.min(ce,u)),Ye=nt-T,kt=nt+T;return"M"+be(Ye,bt)+"A"+[Ye,Ye]+" 0,0,0 "+be(Ye,Nt)+"L"+be(kt,Nt)+"A"+[kt,kt]+" 0,0,1 "+be(kt,bt)+"Z"}function Ce(ce,Ke,it){if(ce===0)return t.pathSector(2*T);var bt=be(ce,Ke),Nt=be(ce,it),nt=v((bt[0]+Nt[0])/2),Ye=v((bt[1]+Nt[1])/2),kt,At;if(nt&&Ye){var St=Ye/nt,Bt=-1/St,Zt=k(T,St,nt,Ye);kt=k(L,Bt,Zt[0][0],Zt[0][1]),At=k(L,Bt,Zt[1][0],Zt[1][1])}else{var Et,Ae;Ye?(Et=L,Ae=T):(Et=T,Ae=L),kt=[[nt-Et,Ye-Ae],[nt+Et,Ye-Ae]],At=[[nt-Et,Ye+Ae],[nt+Et,Ye+Ae]]}return"M"+kt.join("L")+"L"+At.reverse().join("L")+"Z"}function de(){B=null,F=null,U=t.pathSubplot(),G=!1;var ce=n._fullLayout[t.id];j=K$t(ce.bgcolor).getLuminance(),H=g1.makeZoombox(a,j,f,c,U),H.attr("fill-rule","evenodd"),N=g1.makeCorners(a,f,c),eQ(n)}function te(ce,Ke){return Ke=Math.max(Math.min(Ke,u),l),ceo?(ce-1&&ce===1&&iQt(Ke,n,[t.xaxis],[t.yaxis],t.id,m),it.indexOf("event")>-1&&$Je.click(n,Ke,t.id)}m.prepFn=function(ce,Ke,it){var bt=n._fullLayout.dragmode,Nt=S.getBoundingClientRect();n._fullLayout._calcInverseTransform(n);var nt=n._fullLayout._invTransform;_=n._fullLayout._invScaleX,C=n._fullLayout._invScaleY;var Ye=Oc.apply3DTransform(nt)(Ke-Nt.left,it-Nt.top);if(P=Ye[0],A=Ye[1],x){var kt=_1.findPolygonOffset(u,p[0],p[1],x);P+=h+kt[0],A+=d+kt[1]}switch(bt){case"zoom":m.clickFn=Ne,r||(x?m.moveFn=Ue:m.moveFn=Ee,m.doneFn=Fe,de(ce,Ke,it));break;case"select":case"lasso":rQt(ce,Ke,it,m,bt);break}},xO.init(m)};Vd.updateRadialDrag=function(e,t,r){var n=this,i=n.gd,a=n.layers,o=n.radius,s=n.innerRadius,u=n.cx,l=n.cy,f=n.radialAxis,c=Lx.radialDragBoxSize,h=c/2;if(!f.visible)return;var d=Px(n.radialAxisAngle),p=f._rl,x=p[0],b=p[1],v=p[r],k=.75*(p[1]-p[0])/(1-n.getHole(t))/o,E,T,L;r?(E=u+(o+h)*Math.cos(d),T=l-(o+h)*Math.sin(d),L="radialdrag"):(E=u+(s-h)*Math.cos(d),T=l-(s-h)*Math.sin(d),L="radialdrag-inner");var _=g1.makeRectDragger(a,L,"crosshair",-h,-h,c,c),C={element:_,gd:i};e.dragmode===!1&&(C.dragmode=!1),oC(pw.select(_),f.visible&&s0!=(r?P>x:P=90||i>90&&a>=450?d=1:s<=0&&l<=0?d=0:d=Math.max(s,l),i<=180&&a>=180||i>180&&a>=540?f=-1:o>=0&&u>=0?f=0:f=Math.min(o,u),i<=270&&a>=270||i>270&&a>=630?c=-1:s>=0&&l>=0?c=0:c=Math.min(s,l),a>=360?h=1:o<=0&&u<=0?h=0:h=Math.max(o,u),[f,c,h,d]}function a$e(e,t){var r=function(i){return Oc.angleDist(e,i)},n=Oc.findIndexOfMin(t,r);return t[n]}function oC(e,t,r){return t?(e.attr("display",null),e.attr(r)):e&&e.attr("display","none"),e}});var rQ=Te((_3r,h$e)=>{"use strict";var uQt=Ih(),$u=Dd(),fQt=zc().attributes,c0=ei().extendFlat,s$e=Sc().overrideAll,l$e=s$e({color:$u.color,showline:c0({},$u.showline,{dflt:!0}),linecolor:$u.linecolor,linewidth:$u.linewidth,showgrid:c0({},$u.showgrid,{dflt:!0}),gridcolor:$u.gridcolor,gridwidth:$u.gridwidth,griddash:$u.griddash},"plot","from-root"),u$e=s$e({tickmode:$u.minor.tickmode,nticks:$u.nticks,tick0:$u.tick0,dtick:$u.dtick,tickvals:$u.tickvals,ticktext:$u.ticktext,ticks:$u.ticks,ticklen:$u.ticklen,tickwidth:$u.tickwidth,tickcolor:$u.tickcolor,ticklabelstep:$u.ticklabelstep,showticklabels:$u.showticklabels,labelalias:$u.labelalias,showtickprefix:$u.showtickprefix,tickprefix:$u.tickprefix,showticksuffix:$u.showticksuffix,ticksuffix:$u.ticksuffix,showexponent:$u.showexponent,exponentformat:$u.exponentformat,minexponent:$u.minexponent,separatethousands:$u.separatethousands,tickfont:$u.tickfont,tickangle:$u.tickangle,tickformat:$u.tickformat,tickformatstops:$u.tickformatstops,layer:$u.layer},"plot","from-root"),f$e={visible:c0({},$u.visible,{dflt:!0}),type:c0({},$u.type,{values:["-","linear","log","date","category"]}),autotypenumbers:$u.autotypenumbers,autorangeoptions:{minallowed:$u.autorangeoptions.minallowed,maxallowed:$u.autorangeoptions.maxallowed,clipmin:$u.autorangeoptions.clipmin,clipmax:$u.autorangeoptions.clipmax,include:$u.autorangeoptions.include,editType:"plot"},autorange:c0({},$u.autorange,{editType:"plot"}),rangemode:{valType:"enumerated",values:["tozero","nonnegative","normal"],dflt:"tozero",editType:"calc"},minallowed:c0({},$u.minallowed,{editType:"plot"}),maxallowed:c0({},$u.maxallowed,{editType:"plot"}),range:c0({},$u.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],editType:"plot"}),categoryorder:$u.categoryorder,categoryarray:$u.categoryarray,angle:{valType:"angle",editType:"plot"},autotickangles:$u.autotickangles,side:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"clockwise",editType:"plot"},title:{text:c0({},$u.title.text,{editType:"plot",dflt:""}),font:c0({},$u.title.font,{editType:"plot"}),editType:"plot"},hoverformat:$u.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};c0(f$e,l$e,u$e);var c$e={visible:c0({},$u.visible,{dflt:!0}),type:{valType:"enumerated",values:["-","linear","category"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:$u.autotypenumbers,categoryorder:$u.categoryorder,categoryarray:$u.categoryarray,thetaunit:{valType:"enumerated",values:["radians","degrees"],dflt:"degrees",editType:"calc"},period:{valType:"number",editType:"calc",min:0},direction:{valType:"enumerated",values:["counterclockwise","clockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",editType:"calc"},hoverformat:$u.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};c0(c$e,l$e,u$e);h$e.exports={domain:fQt({name:"polar",editType:"plot"}),sector:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],dflt:[0,360],editType:"plot"},hole:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},bgcolor:{valType:"color",editType:"plot",dflt:uQt.background},radialaxis:f$e,angularaxis:c$e,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var m$e=Te((x3r,v$e)=>{"use strict";var wO=ei(),cQt=jl(),hQt=Pf(),dQt=C_(),pQt=Rd().getSubplotData,vQt=xb(),mQt=A3(),yQt=t_(),gQt=r_(),_Qt=rI(),xQt=K5(),bQt=SN(),wQt=L3(),p$e=rQ(),AQt=Y$(),AO=vO(),d$e=AO.axisNames;function TQt(e,t,r,n){var i=r("bgcolor");n.bgColor=cQt.combine(i,n.paper_bgcolor);var a=r("sector");r("hole");var o=pQt(n.fullData,AO.name,n.id),s=n.layoutOut,u;function l(H,N){return r(u+"."+H,N)}for(var f=0;f{"use strict";var MQt=Rd().getSubplotCalcData,EQt=ei().counterRegex,kQt=tQ(),g$e=vO(),_$e=g$e.attr,yw=g$e.name,y$e=EQt(yw),x$e={};x$e[_$e]={valType:"subplotid",dflt:yw,editType:"calc"};function CQt(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[yw],i=0;i{"use strict";var PQt=Hu().hovertemplateAttrs,zQt=Hu().texttemplateAttrs,SO=Su().extendFlat,IQt=Em(),h0=Xc(),RQt=Vf(),WS=h0.line;w$e.exports={mode:h0.mode,r:{valType:"data_array",editType:"calc+clearAxisTypes"},theta:{valType:"data_array",editType:"calc+clearAxisTypes"},r0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dr:{valType:"number",dflt:1,editType:"calc"},theta0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dtheta:{valType:"number",editType:"calc"},thetaunit:{valType:"enumerated",values:["radians","degrees","gradians"],dflt:"degrees",editType:"calc+clearAxisTypes"},text:h0.text,texttemplate:zQt({editType:"plot"},{keys:["r","theta","text"]}),hovertext:h0.hovertext,line:{color:WS.color,width:WS.width,dash:WS.dash,backoff:WS.backoff,shape:SO({},WS.shape,{values:["linear","spline"]}),smoothing:WS.smoothing,editType:"calc"},connectgaps:h0.connectgaps,marker:h0.marker,cliponaxis:SO({},h0.cliponaxis,{dflt:!1}),textposition:h0.textposition,textfont:h0.textfont,fill:SO({},h0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:IQt(),hoverinfo:SO({},RQt.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:h0.hoveron,hovertemplate:PQt(),selected:h0.selected,unselected:h0.unselected}});var EO=Te((A3r,S$e)=>{"use strict";var MO=ei(),jS=lc(),DQt=$v(),FQt=I0(),A$e=J3(),BQt=R0(),OQt=zm(),qQt=Sy().PTS_LINESONLY,NQt=sC();function UQt(e,t,r,n){function i(s,u){return MO.coerce(e,t,NQt,s,u)}var a=T$e(e,t,n,i);if(!a){t.visible=!1;return}i("thetaunit"),i("mode",a{"use strict";var VQt=ei(),M$e=wu();E$e.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o,s;a?(o=a.radialAxis,s=a.angularAxis):(a=n[r.subplot],o=a.radialaxis,s=a.angularaxis);var u=o.c2l(t.r);i.rLabel=M$e.tickText(o,u,!0).text;var l=s.thetaunit==="degrees"?VQt.rad2deg(t.theta):t.theta;return i.thetaLabel=M$e.tickText(s,l,!0).text,i}});var L$e=Te((S3r,C$e)=>{"use strict";var k$e=ku(),GQt=nf().BADNUM,HQt=wu(),WQt=D0(),jQt=ky(),XQt=F0(),ZQt=B0().calcMarkerSize;C$e.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=a.makeCalcdata(r,"r"),u=o.makeCalcdata(r,"theta"),l=r._length,f=new Array(l),c=0;c{"use strict";var YQt=iA(),P$e=nf().BADNUM;z$e.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},u=r.radialAxis,l=r.angularAxis,f=0;f{"use strict";var KQt=sA();function JQt(e,t,r,n){var i=KQt(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],u=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,R$e(s,u,o,a),a.hovertemplate=u.hovertemplate,i}}function R$e(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="r",a._hovertitle="\u03B8";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var u=e.hi||t.hoverinfo,l=[];function f(h,d){l.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var c=u.split("+");c.indexOf("all")!==-1&&(c=["r","theta","text"]),c.indexOf("r")!==-1&&f(i,n.rLabel),c.indexOf("theta")!==-1&&f(a,n.thetaLabel),c.indexOf("text")!==-1&&n.text&&(l.push(n.text),delete n.text),n.extraText=l.join("
")}}D$e.exports={hoverPoints:JQt,makeHoverPointText:R$e}});var B$e=Te((k3r,F$e)=>{"use strict";F$e.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:TO(),categories:["polar","symbols","showLegend","scatter-like"],attributes:sC(),supplyDefaults:EO().supplyDefaults,colorbar:ep(),formatLabels:kO(),calc:L$e(),plot:I$e(),style:av().style,styleOnSelect:av().styleOnSelect,hoverPoints:CO().hoverPoints,selectPoints:lA(),meta:{}}});var q$e=Te((C3r,O$e)=>{"use strict";O$e.exports=B$e()});var iQ=Te((L3r,N$e)=>{"use strict";var Uv=sC(),x1=ik(),$Qt=Hu().texttemplateAttrs;N$e.exports={mode:Uv.mode,r:Uv.r,theta:Uv.theta,r0:Uv.r0,dr:Uv.dr,theta0:Uv.theta0,dtheta:Uv.dtheta,thetaunit:Uv.thetaunit,text:Uv.text,texttemplate:$Qt({editType:"plot"},{keys:["r","theta","text"]}),hovertext:Uv.hovertext,hovertemplate:Uv.hovertemplate,line:{color:x1.line.color,width:x1.line.width,dash:x1.line.dash,editType:"calc"},connectgaps:x1.connectgaps,marker:x1.marker,fill:x1.fill,fillcolor:x1.fillcolor,textposition:x1.textposition,textfont:x1.textfont,hoverinfo:Uv.hoverinfo,selected:Uv.selected,unselected:Uv.unselected}});var G$e=Te((P3r,V$e)=>{"use strict";var U$e=ei(),nQ=lc(),QQt=EO().handleRThetaDefaults,eer=$v(),ter=I0(),rer=R0(),ier=zm(),ner=Sy().PTS_LINESONLY,aer=iQ();V$e.exports=function(t,r,n,i){function a(s,u){return U$e.coerce(t,r,aer,s,u)}var o=QQt(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("mode",o{"use strict";var oer=kO();H$e.exports=function(t,r,n){var i=t.i;return"r"in t||(t.r=r._r[i]),"theta"in t||(t.theta=r._theta[i]),oer(t,r,n)}});var X$e=Te((I3r,j$e)=>{"use strict";var ser=D0(),ler=B0().calcMarkerSize,uer=Y2(),fer=wu(),cer=sx().TOO_MANY_POINTS;j$e.exports=function(t,r){var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=r._r=a.makeCalcdata(r,"r"),u=r._theta=o.makeCalcdata(r,"theta"),l=r._length,f={};l{"use strict";var her=BF(),der=CO().makeHoverPointText;function per(e,t,r,n){var i=e.cd,a=i[0].t,o=a.r,s=a.theta,u=her.hoverPoints(e,t,r,n);if(!(!u||u[0].index===!1)){var l=u[0];if(l.index===void 0)return u;var f=e.subplot,c=l.cd[l.index],h=l.trace;if(c.r=o[l.index],c.theta=s[l.index],!!f.isPtInside(c))return l.xLabelVal=void 0,l.yLabelVal=void 0,der(c,h,f,l),u}}Z$e.exports={hoverPoints:per}});var J$e=Te((D3r,K$e)=>{"use strict";K$e.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:TO(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:iQ(),supplyDefaults:G$e(),colorbar:ep(),formatLabels:W$e(),calc:X$e(),hoverPoints:Y$e().hoverPoints,selectPoints:vY(),meta:{}}});var $$e=Te((F3r,aQ)=>{"use strict";var ver=NF(),mer=ku(),yer=_K(),ger=hY(),LO=Y2(),PO=ei(),_er=sx().TOO_MANY_POINTS,xer={};aQ.exports=function(t,r,n){if(n.length){var i=r.radialAxis,a=r.angularAxis,o=ger(t,r);return n.forEach(function(s){if(!(!s||!s[0]||!s[0].trace)){var u=s[0],l=u.trace,f=u.t,c=l._length,h=f.r,d=f.theta,p=f.opts,x,b=h.slice(),v=d.slice();for(x=0;x=_er&&(p.marker.cluster=f.tree),p.marker&&(p.markerSel.positions=p.markerUnsel.positions=p.marker.positions=k),p.line&&k.length>1&&PO.extendFlat(p.line,LO.linePositions(t,l,k)),p.text&&(PO.extendFlat(p.text,{positions:k},LO.textPosition(t,l,p.text,p.marker)),PO.extendFlat(p.textSel,{positions:k},LO.textPosition(t,l,p.text,p.markerSel)),PO.extendFlat(p.textUnsel,{positions:k},LO.textPosition(t,l,p.text,p.markerUnsel))),p.fill&&!o.fill2d&&(o.fill2d=!0),p.marker&&!o.scatter2d&&(o.scatter2d=!0),p.line&&!o.line2d&&(o.line2d=!0),p.text&&!o.glText&&(o.glText=!0),o.lineOptions.push(p.line),o.fillOptions.push(p.fill),o.markerOptions.push(p.marker),o.markerSelectedOptions.push(p.markerSel),o.markerUnselectedOptions.push(p.markerUnsel),o.textOptions.push(p.text),o.textSelectedOptions.push(p.textSel),o.textUnselectedOptions.push(p.textUnsel),o.selectBatch.push([]),o.unselectBatch.push([]),f.x=E,f.y=T,f.rawx=E,f.rawy=T,f.r=h,f.theta=d,f.positions=k,f._scene=o,f.index=o.count,o.count++}}),yer(t,r,n)}};aQ.exports.reglPrecompiled=xer});var eQe=Te((B3r,Q$e)=>{"use strict";var ber=A8(),wer=T8(),Aer=S8(),Ter=M8(),Ser=E8(),Mer=k8(),Eer=C8(),ker=L8(),Cer=P8(),Ler=z8();Q$e.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":ber,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:wer,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":Aer,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:Ter,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:Ser,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":Mer,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:Eer,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:ker,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":Cer,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":Ler}});var rQe=Te((O3r,tQe)=>{"use strict";var oQ=$$e(),Per=eQe(),zer=xK();Object.assign(oQ.reglPrecompiled,Per);Object.assign(oQ.reglPrecompiled,zer);tQe.exports=oQ});var aQe=Te((q3r,nQe)=>{"use strict";var iQe=J$e();iQe.plot=rQe();nQe.exports=iQe});var sQ=Te((N3r,oQe)=>{"use strict";var Ier=Hu().hovertemplateAttrs,XS=Su().extendFlat,zx=sC(),Ix=Ly();oQe.exports={r:zx.r,theta:zx.theta,r0:zx.r0,dr:zx.dr,theta0:zx.theta0,dtheta:zx.dtheta,thetaunit:zx.thetaunit,base:XS({},Ix.base,{}),offset:XS({},Ix.offset,{}),width:XS({},Ix.width,{}),text:XS({},Ix.text,{}),hovertext:XS({},Ix.hovertext,{}),marker:Rer(),hoverinfo:zx.hoverinfo,hovertemplate:Ier(),selected:Ix.selected,unselected:Ix.unselected};function Rer(){var e=XS({},Ix.marker);return delete e.cornerradius,e}});var lQ=Te((U3r,sQe)=>{"use strict";sQe.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}});var fQe=Te((V3r,uQe)=>{"use strict";var lQe=ei(),Der=EO().handleRThetaDefaults,Fer=OI(),Ber=sQ();uQe.exports=function(t,r,n,i){function a(s,u){return lQe.coerce(t,r,Ber,s,u)}var o=Der(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("base"),a("offset"),a("width"),a("text"),a("hovertext"),a("hovertemplate"),Fer(t,r,a,n,i),lQe.coerceSelectionMarkerOpacity(r,a)}});var hQe=Te((G3r,cQe)=>{"use strict";var Oer=ei(),qer=lQ();cQe.exports=function(e,t,r){var n={},i;function a(u,l){return Oer.coerce(e[i]||{},t[i],qer,u,l)}for(var o=0;o{"use strict";var dQe=Rp().hasColorscale,pQe=Dp(),Ner=ei().isArrayOrTypedArray,Uer=cE(),Ver=Hb().setGroupPositions,Ger=F0(),Her=$l().traceIs,Wer=ei().extendFlat;function jer(e,t){for(var r=e._fullLayout,n=t.subplot,i=r[n].radialaxis,a=r[n].angularaxis,o=i.makeCalcdata(t,"r"),s=a.makeCalcdata(t,"theta"),u=t._length,l=new Array(u),f=o,c=s,h=0;h{"use strict";var mQe=Jl(),zO=ku(),ZS=ei(),Zer=Mu(),fQ=yO();yQe.exports=function(t,r,n){var i=t._context.staticPlot,a=r.xaxis,o=r.yaxis,s=r.radialAxis,u=r.angularAxis,l=Yer(r),f=r.layers.frontplot.select("g.barlayer");ZS.makeTraceGroups(f,n,"trace bars").each(function(){var c=mQe.select(this),h=ZS.ensureSingle(c,"g","points"),d=h.selectAll("g.point").data(ZS.identity);d.enter().append("g").style("vector-effect",i?"none":"non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),d.exit().remove(),d.each(function(p){var x=mQe.select(this),b=p.rp0=s.c2p(p.s0),v=p.rp1=s.c2p(p.s1),k=p.thetag0=u.c2g(p.p0),E=p.thetag1=u.c2g(p.p1),T;if(!zO(b)||!zO(v)||!zO(k)||!zO(E)||b===v||k===E)T="M0,0Z";else{var L=s.c2g(p.s1),_=(k+E)/2;p.ct=[a.c2p(L*Math.cos(_)),o.c2p(L*Math.sin(_))],T=l(b,v,k,E)}ZS.ensureSingle(x,"path").attr("d",T)}),Zer.setClipUrl(c,r._hasClipOnAxisFalse?r.clipIds.forTraces:null,t)})};function Yer(e){var t=e.cxx,r=e.cyy;return e.vangles?function(n,i,a,o){var s,u;ZS.angleDelta(a,o)>0?(s=a,u=o):(s=o,u=a);var l=fQ.findEnclosingVertexAngles(s,e.vangles)[0],f=fQ.findEnclosingVertexAngles(u,e.vangles)[1],c=[l,(s+u)/2,f];return fQ.pathPolygonAnnulus(n,i,s,u,c,t,r)}:function(n,i,a,o){return ZS.pathAnnulus(n,i,a,o,t,r)}}});var xQe=Te((j3r,_Qe)=>{"use strict";var Ker=jc(),cQ=ei(),Jer=AA().getTraceColor,$er=cQ.fillText,Qer=CO().makeHoverPointText,etr=yO().isPtInsidePolygon;_Qe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s=o.radialAxis,u=o.angularAxis,l=o.vangles,f=l?etr:cQ.isPtInsideSector,c=t.maxHoverDistance,h=u._period||2*Math.PI,d=Math.abs(s.g2p(Math.sqrt(r*r+n*n))),p=Math.atan2(n,r);s.range[0]>s.range[1]&&(p+=Math.PI);var x=function(E){return f(d,p,[E.rp0,E.rp1],[E.thetag0,E.thetag1],l)?c+Math.min(1,Math.abs(E.thetag1-E.thetag0)/h)-1+(E.rp1-d)/(E.rp1-E.rp0)-1:1/0};if(Ker.getClosest(i,x,t),t.index!==!1){var b=t.index,v=i[b];t.x0=t.x1=v.ct[0],t.y0=t.y1=v.ct[1];var k=cQ.extendFlat({},v,{r:v.s,theta:v.p});return $er(v,a,t),Qer(k,a,o,t),t.hovertemplate=a.hovertemplate,t.color=Jer(a,v),t.xLabelVal=t.yLabelVal=void 0,v.s<0&&(t.idealAlign="left"),[t]}}});var wQe=Te((X3r,bQe)=>{"use strict";bQe.exports={moduleType:"trace",name:"barpolar",basePlotModule:TO(),categories:["polar","bar","showLegend"],attributes:sQ(),layoutAttributes:lQ(),supplyDefaults:fQe(),supplyLayoutDefaults:hQe(),calc:uQ().calc,crossTraceCalc:uQ().crossTraceCalc,plot:gQe(),colorbar:ep(),formatLabels:kO(),style:N0().style,styleOnSelect:N0().styleOnSelect,hoverPoints:xQe(),selectPoints:TA(),meta:{}}});var TQe=Te((Z3r,AQe)=>{"use strict";AQe.exports=wQe()});var hQ=Te((Y3r,SQe)=>{"use strict";SQe.exports={attr:"subplot",name:"smith",axisNames:["realaxis","imaginaryaxis"],axisName2dataArray:{imaginaryaxis:"imag",realaxis:"real"}}});var dQ=Te((K3r,CQe)=>{"use strict";var ttr=Ih(),lh=Dd(),rtr=zc().attributes,Rx=ei().extendFlat,MQe=Sc().overrideAll,EQe=MQe({color:lh.color,showline:Rx({},lh.showline,{dflt:!0}),linecolor:lh.linecolor,linewidth:lh.linewidth,showgrid:Rx({},lh.showgrid,{dflt:!0}),gridcolor:lh.gridcolor,gridwidth:lh.gridwidth,griddash:lh.griddash},"plot","from-root"),kQe=MQe({ticklen:lh.ticklen,tickwidth:Rx({},lh.tickwidth,{dflt:2}),tickcolor:lh.tickcolor,showticklabels:lh.showticklabels,labelalias:lh.labelalias,showtickprefix:lh.showtickprefix,tickprefix:lh.tickprefix,showticksuffix:lh.showticksuffix,ticksuffix:lh.ticksuffix,tickfont:lh.tickfont,tickformat:lh.tickformat,hoverformat:lh.hoverformat,layer:lh.layer},"plot","from-root"),itr=Rx({visible:Rx({},lh.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:Rx({},lh.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},EQe,kQe),ntr=Rx({visible:Rx({},lh.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:lh.ticks,editType:"calc"},EQe,kQe);CQe.exports={domain:rtr({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:ttr.background},realaxis:itr,imaginaryaxis:ntr,editType:"calc"}});var zQe=Te((J3r,PQe)=>{"use strict";var YS=ei(),atr=jl(),otr=Pf(),str=C_(),ltr=Rd().getSubplotData,utr=r_(),ftr=t_(),ctr=K5(),htr=gy(),KS=dQ(),pQ=hQ(),LQe=pQ.axisNames,dtr=vtr(function(e){return YS.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(t){return-t}).concat([0]).concat(e)},String);function ptr(e,t,r,n){var i=r("bgcolor");n.bgColor=atr.combine(i,n.paper_bgcolor);var a=ltr(n.fullData,pQ.name,n.id),o=n.layoutOut,s;function u(L,_){return r(s+"."+L,_)}for(var l=0;l{"use strict";var mtr=Rd().getSubplotCalcData,ytr=ei().counterRegex,gtr=tQ(),RQe=hQ(),DQe=RQe.attr,gw=RQe.name,IQe=ytr(gw),FQe={};FQe[DQe]={valType:"subplotid",dflt:gw,editType:"calc"};function _tr(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[gw],i=0;i{"use strict";var btr=Hu().hovertemplateAttrs,wtr=Hu().texttemplateAttrs,IO=Su().extendFlat,Atr=Em(),d0=Xc(),Ttr=Vf(),JS=d0.line;qQe.exports={mode:d0.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:d0.text,texttemplate:wtr({editType:"plot"},{keys:["real","imag","text"]}),hovertext:d0.hovertext,line:{color:JS.color,width:JS.width,dash:JS.dash,backoff:JS.backoff,shape:IO({},JS.shape,{values:["linear","spline"]}),smoothing:JS.smoothing,editType:"calc"},connectgaps:d0.connectgaps,marker:d0.marker,cliponaxis:IO({},d0.cliponaxis,{dflt:!1}),textposition:d0.textposition,textfont:d0.textfont,fill:IO({},d0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:Atr(),hoverinfo:IO({},Ttr.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:d0.hoveron,hovertemplate:btr(),selected:d0.selected,unselected:d0.unselected}});var VQe=Te((eAr,UQe)=>{"use strict";var RO=ei(),$S=lc(),Str=$v(),Mtr=I0(),NQe=J3(),Etr=R0(),ktr=zm(),Ctr=Sy().PTS_LINESONLY,Ltr=vQ();UQe.exports=function(t,r,n,i){function a(u,l){return RO.coerce(t,r,Ltr,u,l)}var o=Ptr(t,r,i,a);if(!o){r.visible=!1;return}a("mode",o{"use strict";var GQe=wu();HQe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.realLabel=GQe.tickText(a.radialAxis,t.real,!0).text,i.imagLabel=GQe.tickText(a.angularAxis,t.imag,!0).text,i}});var ZQe=Te((rAr,XQe)=>{"use strict";var jQe=ku(),ztr=nf().BADNUM,Itr=D0(),Rtr=ky(),Dtr=F0(),Ftr=B0().calcMarkerSize;XQe.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].realaxis,o=n[i].imaginaryaxis,s=a.makeCalcdata(r,"real"),u=o.makeCalcdata(r,"imag"),l=r._length,f=new Array(l),c=0;c{"use strict";var Btr=iA(),YQe=nf().BADNUM,Otr=$$(),qtr=Otr.smith;KQe.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},u=0;u{"use strict";var Ntr=sA();function Utr(e,t,r,n){var i=Ntr(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],u=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,$Qe(s,u,o,a),a.hovertemplate=u.hovertemplate,i}}function $Qe(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="real",a._hovertitle="imag";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.realLabel=s.realLabel,n.imagLabel=s.imagLabel;var u=e.hi||t.hoverinfo,l=[];function f(h,d){l.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var c=u.split("+");c.indexOf("all")!==-1&&(c=["real","imag","text"]),c.indexOf("real")!==-1&&f(i,n.realLabel),c.indexOf("imag")!==-1&&f(a,n.imagLabel),c.indexOf("text")!==-1&&n.text&&(l.push(n.text),delete n.text),n.extraText=l.join("
")}}QQe.exports={hoverPoints:Utr,makeHoverPointText:$Qe}});var ret=Te((aAr,tet)=>{"use strict";tet.exports={moduleType:"trace",name:"scattersmith",basePlotModule:OQe(),categories:["smith","symbols","showLegend","scatter-like"],attributes:vQ(),supplyDefaults:VQe(),colorbar:ep(),formatLabels:WQe(),calc:ZQe(),plot:JQe(),style:av().style,styleOnSelect:av().styleOnSelect,hoverPoints:eet().hoverPoints,selectPoints:lA(),meta:{}}});var net=Te((oAr,iet)=>{"use strict";iet.exports=ret()});var Ep=Te((sAr,oet)=>{var FO=Uh();function aet(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}FO(aet.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,n,i){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,i):n)||this.instance(),n.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var n="",i=0;r>0;){var a=r%10;n=(a===0?"":e[a]+t[i])+n,i++,r=Math.floor(r/10)}return n.indexOf(e[1]+t[1])===0&&(n=n.substr(1)),n||e[0]}}});function mQ(e,t,r,n){if(this._calendar=e,this._year=t,this._month=r,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Af.local.invalidDate||Af.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function DO(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}FO(mQ.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(Af.local.invalidDate||Af.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Af.local.differentCalendars||Af.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+DO(Math.abs(this.year()),4)+"-"+DO(this.month(),2)+"-"+DO(this.day(),2)}});function yQ(){this.shortYearCutoff="+10"}FO(yQ.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,Af.local.invalidDate||Af.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new mQ(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,Af.local.invalidYear||Af.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Af.local.invalidYear||Af.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+DO(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Af.local.invalidYear||Af.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,Af.local.invalidMonth||Af.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,Af.local.invalidMonth||Af.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Af.local.invalidYear||Af.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var n=this._validate(e,t,r,Af.local.invalidDate||Af.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,Af.local.invalidDate||Af.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,Af.local.invalidDate||Af.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,Af.local.invalidDate||Af.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var n=e.toJD()+t*(r==="w"?this.daysInWeek():1),i=e.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=e.year()+(r==="y"?t:0),o=e.monthOfYear()+(r==="m"?t:0),i=e.day(),s=function(f){for(;oc-1+f.minMonth;)a++,o-=c,c=f.monthsInYear(a)};r==="y"?(e.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):r==="m"&&(s(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var u=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,u}catch(l){throw this._validateLevel--,l}},_correctAdd:function(e,t,r,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var i={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],a=r<0?-1:1;t=this._add(e,r*i[0]+a*i[1],i[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,Af.local.invalidDate||Af.regionalOptions[""].invalidDate);var n=r==="y"?t:e.year(),i=r==="m"?t:e.month(),a=r==="d"?t:e.day();return(r==="y"||r==="m")&&(a=Math.min(a,this.daysInMonth(n,i))),e.date(n,i,a)},isValid:function(e,t,r){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var i=this.newDate(e,t,this.minDay);n=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),l=i-(u>2.5?4716:4715);return l<=0&&l--,this.newDate(l,u,s)},toJSDate:function(e,t,r){var n=this._validate(e,t,r,Af.local.invalidDate||Af.regionalOptions[""].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()>12?i.getHours()+2:0),i},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Af=oet.exports=new aet;Af.cdate=mQ;Af.baseCalendar=yQ;Af.calendars.gregorian=gQ});var set=Te(()=>{var _Q=Uh(),Gd=Ep();_Q(Gd.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Gd.local=Gd.regionalOptions[""];_Q(Gd.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});_Q(Gd.baseCalendar.prototype,{UNIX_EPOCH:Gd.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Gd.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw Gd.local.invalidFormat||Gd.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var n=r.dayNamesShort||this.local.dayNamesShort,i=r.dayNames||this.local.dayNames,a=r.monthNumbers||this.local.monthNumbers,o=r.monthNamesShort||this.local.monthNamesShort,s=r.monthNames||this.local.monthNames,u=r.calculateWeek||this.local.calculateWeek,l=function(T,L){for(var _=1;E+_1},f=function(T,L,_,C){var S=""+L;if(l(T,C))for(;S.length<_;)S="0"+S;return S},c=function(T,L,_,C){return l(T)?C[L]:_[L]},h=this,d=function(T){return typeof a=="function"?a.call(h,T,l("m")):b(f("m",T.month(),2))},p=function(T,L){return L?typeof s=="function"?s.call(h,T):s[T.month()-h.minMonth]:typeof o=="function"?o.call(h,T):o[T.month()-h.minMonth]},x=this.local.digits,b=function(T){return r.localNumbers&&x?x(T):T},v="",k=!1,E=0;E1},k=function(B,F){var U=v(B,F),G=[2,3,U?4:2,U?4:2,10,11,20]["oyYJ@!".indexOf(B)+1],j=new RegExp("^-?\\d{1,"+G+"}"),H=t.substring(S).match(j);if(!H)throw(Gd.local.missingNumberAt||Gd.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=H[0].length,parseInt(H[0],10)},E=this,T=function(){if(typeof s=="function"){v("m");var B=s.call(E,t.substring(S));return S+=B.length,B}return k("m")},L=function(B,F,U,G){for(var j=v(B,G)?U:F,H=0;H-1){h=1,d=p;for(var A=this.daysInMonth(c,h);d>A;A=this.daysInMonth(c,h))h++,d-=A}return f>-1?this.fromJD(f):this.newDate(c,h,d)},determineDate:function(e,t,r,n,i){r&&typeof r!="object"&&(i=n,n=r,r=null),typeof n!="string"&&(i=n,n="");var a=this,o=function(s){try{return a.parseDate(n,s,i)}catch(c){}s=s.toLowerCase();for(var u=(s.match(/^c/)&&r?r.newDate():null)||a.today(),l=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=l.exec(s);f;)u.add(parseInt(f[1],10),f[2]||"d"),f=l.exec(s);return u};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:a.today().add(e,"d"):a.newDate(e),e}})});var uet=Te(()=>{var Dx=Ep(),Vtr=Uh(),xQ=Dx.instance();function BO(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}BO.prototype=new Dx.baseCalendar;Vtr(BO.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(Htr);return r?r[0]:""}var n=this._validateYear(e),i=e.month(),a=""+this.toChineseMonth(n,i);return t&&a.length<2&&(a="0"+a),this.isIntercalaryMonth(n,i)&&(a+="i"),a},monthNames:function(e){if(typeof e=="string"){var t=e.match(Wtr);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(jtr);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),n;if(isNaN(r))t[0]==="\u95F0"&&(n=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var i=t[t.length-1];n=i==="i"||i==="I"}var a=this.toMonthIndex(e,r,n);return a},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var n=this.intercalaryMonth(e),i=r&&t!==n;if(i||t<1||t>12)throw Dx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return n?!r&&t<=n?a=t-1:a=t:a=t-1,a},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),n=r?12:11;if(t<0||t>n)throw Dx.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var n=this._validateYear(e,Dx.local.invalidyear),i=Bx[n-Bx[0]],a=i>>9&4095,o=i>>5&15,s=i&31,u;u=xQ.newDate(a,o,s),u.add(4-(u.dayOfWeek()||7),"d");var l=this.toJD(e,t,r)-u.toJD();return 1+Math.floor(l/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=Fx[e-Fx[0]],n=r>>13,i=n?12:11;if(t>i)throw Dx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a=r&1<<12-t?30:29;return a},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,a,r,Dx.local.invalidDate);e=this._validateYear(n.year()),t=n.month(),r=n.day();var i=this.isIntercalaryMonth(e,t),a=this.toChineseMonth(e,t),o=Ztr(e,a,r,i);return xQ.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=xQ.fromJD(e),r=Xtr(t.year(),t.month(),t.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(e){var t=e.match(Gtr),r=this._validateYear(+t[1]),n=+t[2],i=!!t[3],a=this.toMonthIndex(r,n,i),o=+t[4];return this.newDate(r,a,o)},add:function(e,t,r){var n=e.year(),i=e.month(),a=this.isIntercalaryMonth(n,i),o=this.toChineseMonth(n,i),s=Object.getPrototypeOf(BO.prototype).add.call(this,e,t,r);if(r==="y"){var u=s.year(),l=s.month(),f=this.isIntercalaryMonth(u,o),c=a&&f?this.toMonthIndex(u,o,!0):this.toMonthIndex(u,o,!1);c!==l&&s.month(c)}return s}});var Gtr=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Htr=/^\d?\d[iI]?/m,Wtr=/^闰?十?[一二三四五六七八九]?月/m,jtr=/^闰?十?[一二三四五六七八九]?/m;Dx.calendars.chinese=BO;var Fx=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Bx=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function Xtr(e,t,r,n){var i,a;if(typeof e=="object")i=e,a=t||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var s=typeof t=="number"&&t>=1&&t<=12;if(!s)throw new Error("Solar month outside range 1 - 12");var u=typeof r=="number"&&r>=1&&r<=31;if(!u)throw new Error("Solar day outside range 1 - 31");i={year:e,month:t,day:r},a=n||{}}var l=Bx[i.year-Bx[0]],f=i.year<<9|i.month<<5|i.day;a.year=f>=l?i.year:i.year-1,l=Bx[a.year-Bx[0]];var c=l>>9&4095,h=l>>5&15,d=l&31,p,x=new Date(c,h-1,d),b=new Date(i.year,i.month-1,i.day);p=Math.round((b-x)/(24*3600*1e3));var v=Fx[a.year-Fx[0]],k;for(k=0;k<13;k++){var E=v&1<<12-k?30:29;if(p>13;return!T||k=1888&&e<=2111;if(!s)throw new Error("Lunar year outside range 1888-2111");var u=typeof t=="number"&&t>=1&&t<=12;if(!u)throw new Error("Lunar month outside range 1 - 12");var l=typeof r=="number"&&r>=1&&r<=30;if(!l)throw new Error("Lunar day outside range 1 - 30");var f;typeof n=="object"?(f=!1,a=n):(f=!!n,a=i||{}),o={year:e,month:t,day:r,isIntercalary:f}}var c;c=o.day-1;var h=Fx[o.year-Fx[0]],d=h>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var x=0;x>9&4095,E=v>>5&15,T=v&31,L=new Date(k,E-1,T+c);return a.year=L.getFullYear(),a.month=1+L.getMonth(),a.day=L.getDate(),a}});var fet=Te(()=>{var _w=Ep(),Ytr=Uh();function bQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}bQ.prototype=new _w.baseCalendar;Ytr(bQ.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,_w.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,_w.local.invalidYear||_w.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,_w.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,_w.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});_w.calendars.coptic=bQ});var cet=Te(()=>{var b1=Ep(),Ktr=Uh();function wQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wQ.prototype=new b1.baseCalendar;Ktr(wQ.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),400},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,b1.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,t,r){var n=this.dayOfWeek(e,t,r);return n>=2&&n<=6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return{century:Jtr[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return e=n.year()+(n.year()<0?1:0),t=n.month(),r=n.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,n=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,n)}});var Jtr={20:"Fruitbat",21:"Anchovy"};b1.calendars.discworld=wQ});var het=Te(()=>{var xw=Ep(),$tr=Uh();function AQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}AQ.prototype=new xw.baseCalendar;$tr(AQ.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,xw.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,xw.local.invalidYear||xw.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,xw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,xw.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});xw.calendars.ethiopian=AQ});var det=Te(()=>{var Ox=Ep(),Qtr=Uh();function TQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}TQ.prototype=new Ox.baseCalendar;Qtr(TQ.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Ox.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,OO(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ox.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Ox.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,Ox.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&OO(this.daysInYear(e),10)===5?30:t===9&&OO(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,Ox.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,t,r){var n=this._validate(e,t,r,Ox.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=e<=0?e+1:e,a=this.jdEpoch+this._delay1(i)+this._delay2(i)+r+1;if(t<7){for(var o=7;o<=this.monthsInYear(e);o++)a+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});function OO(e,t){return e-t*Math.floor(e/t)}Ox.calendars.hebrew=TQ});var pet=Te(()=>{var lC=Ep(),err=Uh();function SQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}SQ.prototype=new lC.baseCalendar;err(SQ.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,lC.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,lC.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,lC.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});lC.calendars.islamic=SQ});var vet=Te(()=>{var uC=Ep(),trr=Uh();function MQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}MQ.prototype=new uC.baseCalendar;trr(MQ.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,uC.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,uC.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,uC.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,n=Math.floor((r-122.1)/365.25),i=Math.floor(365.25*n),a=Math.floor((r-i)/30.6001),o=a-Math.floor(a<14?1:13),s=n-Math.floor(o>2?4716:4715),u=r-i-Math.floor(30.6001*a);return s<=0&&s--,this.newDate(s,o,u)}});uC.calendars.julian=MQ});var yet=Te(()=>{var um=Ep(),rrr=Uh();function kQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}kQ.prototype=new um.baseCalendar;rrr(kQ.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,um.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,um.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return r+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&n<0)throw"Invalid Mayan year";t=t*20+n}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,um.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,um.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,um.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,um.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,um.local.invalidDate);return n.day()},weekDay:function(e,t,r){return this._validate(e,t,r,um.local.invalidDate),!0},extraInfo:function(e,t,r){var n=this._validate(e,t,r,um.local.invalidDate),i=n.toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=EQ(e+8+17*20,365);return[Math.floor(t/20)+1,EQ(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[met(e+20,20),met(e+4,13)]},toJD:function(e,t,r){var n=this._validate(e,t,r,um.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),n=e%20;return this.newDate(t,r,n)}});function EQ(e,t){return e-t*Math.floor(e/t)}function met(e,t){return EQ(e-1,t)+1}um.calendars.mayan=kQ});var _et=Te(()=>{var bw=Ep(),irr=Uh();function CQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}CQ.prototype=new bw.baseCalendar;var get=bw.instance("gregorian");irr(CQ.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,bw.local.invalidYear||bw.regionalOptions[""].invalidYear);return get.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,bw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,bw.local.invalidMonth),i=n.year();i<0&&i++;for(var a=n.day(),o=1;o=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,n=1;r>this.daysInMonth(t,n);)r-=this.daysInMonth(t,n),n++;return this.newDate(t,n,r)}});bw.calendars.nanakshahi=CQ});var xet=Te(()=>{var ww=Ep(),nrr=Uh();function LQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}LQ.prototype=new ww.baseCalendar;nrr(LQ.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ww.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,n=this.minMonth;n<=12;n++)r+=this.NEPALI_CALENDAR_DATA[e][n];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,ww.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var n=this._validate(e,t,r,ww.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=ww.instance(),a=0,o=t,s=e;this._createMissingCalendarData(e);var u=e-(o>9||o===9&&r>=this.NEPALI_CALENDAR_DATA[s][0]?56:57);for(t!==9&&(a=r,o--);o!==9;)o<=0&&(o=12,s--),a+=this.NEPALI_CALENDAR_DATA[s][o],o--;return t===9?(a+=r-this.NEPALI_CALENDAR_DATA[s][0],a<0&&(a+=i.daysInYear(u))):a+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],i.newDate(u,1,1).add(a,"d").toJD()},fromJD:function(e){var t=ww.instance(),r=t.fromJD(e),n=r.year(),i=r.dayOfYear(),a=n+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],u=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i>u;)o++,o>12&&(o=1,a++),u+=this.NEPALI_CALENDAR_DATA[a][o];var l=this.NEPALI_CALENDAR_DATA[a][o]-(u-i);return this.newDate(a,o,l)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var QS=Ep(),arr=Uh();function NO(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function qO(e){var t=e-475;e<0&&t++;var r=.242197,n=r*t,i=r*(t+1),a=n-Math.floor(n),o=i-Math.floor(i);return a>o}NO.prototype=new QS.baseCalendar;arr(NO.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,QS.local.invalidYear);return qO(t.year())},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,QS.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,QS.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=0;if(e>0)for(var a=1;a0?e-1:e)*365+i+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=475+(e-this.toJD(475,1,1))/365.242197,r=Math.floor(t);r<=0&&r--,e>this.toJD(r,12,qO(r)?30:29)&&(r++,r===0&&r++);var n=e-this.toJD(r,1,1)+1,i=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),a=e-this.toJD(r,i,1)+1;return this.newDate(r,i,a)}});QS.calendars.persian=NO;QS.calendars.jalali=NO});var wet=Te(()=>{var Aw=Ep(),orr=Uh(),UO=Aw.instance();function PQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}PQ.prototype=new Aw.baseCalendar;orr(PQ.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Aw.local.invalidYear),r=this._t2gYear(t.year());return UO.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Aw.local.invalidYear),i=this._t2gYear(n.year());return UO.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Aw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Aw.local.invalidDate),i=this._t2gYear(n.year());return UO.toJD(i,n.month(),n.day())},fromJD:function(e){var t=UO.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Aw.calendars.taiwan=PQ});var Aet=Te(()=>{var Tw=Ep(),srr=Uh(),VO=Tw.instance();function zQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}zQ.prototype=new Tw.baseCalendar;srr(zQ.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Tw.local.invalidYear),r=this._t2gYear(t.year());return VO.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Tw.local.invalidYear),i=this._t2gYear(n.year());return VO.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Tw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Tw.local.invalidDate),i=this._t2gYear(n.year());return VO.toJD(i,n.month(),n.day())},fromJD:function(e){var t=VO.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Tw.calendars.thai=zQ});var Tet=Te(()=>{var Sw=Ep(),lrr=Uh();function IQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}IQ.prototype=new Sw.baseCalendar;lrr(IQ.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Sw.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,Sw.local.invalidMonth),n=r.toJD()-24e5+.5,i=0,a=0;an)return qx[i]-qx[i-1];i++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,Sw.local.invalidDate),i=12*(n.year()-1)+n.month()-15292,a=n.day()+qx[i-1]-1;return a+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,n=0;nt);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),o=a+1,s=i-12*a,u=t-qx[r-1]+1;return this.newDate(o,s,u)},isValid:function(e,t,r){var n=Sw.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,t,r,n){var i=Sw.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw n.replace(/\{0\}/,this.local.name);return i}});Sw.calendars.ummalqura=IQ;var qx=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var Eet=Te((OAr,Met)=>{"use strict";Met.exports=Ep();set();uet();fet();cet();het();det();pet();vet();yet();_et();xet();bet();wet();Aet();Tet()});var Ret=Te((qAr,Iet)=>{"use strict";var Cet=Eet(),fC=ei(),Let=nf(),urr=Let.EPOCHJD,frr=Let.ONEDAY,FQ={valType:"enumerated",values:fC.sortObjectKeys(Cet.calendars),editType:"calc",dflt:"gregorian"},Pet=function(e,t,r,n){var i={};return i[r]=FQ,fC.coerce(e,t,i,r,n)},crr=function(e,t,r,n){for(var i=0;i{"use strict";Det.exports=Ret()});var yrr=Te((UAr,Oet)=>{var Bet=hge();Bet.register([p1e(),t_e(),dxe(),Ixe(),jxe(),Vbe(),t2e(),U2e(),mwe(),Jwe(),B3e(),Y4e(),Bke(),ELe(),pPe(),HPe(),dze(),BIe(),rRe(),xRe(),zRe(),jRe(),sDe(),ADe(),K6e(),mFe(),WNe(),Z7e(),vVe(),NVe(),YGe(),fHe(),RHe(),WWe(),oje(),Lje(),OXe(),lZe(),GZe(),cKe(),RKe(),tJe(),EJe(),UJe(),q$e(),aQe(),TQe(),net(),Fet()]);Oet.exports=Bet});return yrr();})(); +`),tt=et.createShader(et.FRAGMENT_SHADER);if(et.isContextLost())return void(this.failedToCreate=!0);if(et.shaderSource(tt,He),et.compileShader(tt),!et.getShaderParameter(tt,et.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${et.getShaderInfoLog(tt)}`);et.attachShader(this.program,tt);let pt=et.createShader(et.VERTEX_SHADER);if(et.isContextLost())return void(this.failedToCreate=!0);if(et.shaderSource(pt,lt),et.compileShader(pt),!et.getShaderParameter(pt,et.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${et.getShaderInfoLog(pt)}`);et.attachShader(this.program,pt),this.attributes={};let Ht={};this.numAttributes=ir.length;for(let nr=0;nr({u_depth:new a.aH(nr,fr.u_depth),u_terrain:new a.aH(nr,fr.u_terrain),u_terrain_dim:new a.aI(nr,fr.u_terrain_dim),u_terrain_matrix:new a.aJ(nr,fr.u_terrain_matrix),u_terrain_unpack:new a.aK(nr,fr.u_terrain_unpack),u_terrain_exaggeration:new a.aI(nr,fr.u_terrain_exaggeration)}))(w,Ht),this.binderUniforms=Q?Q.getUniforms(w,Ht):[]}draw(w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he,Se,qe,He,lt){let tt=w.gl;if(this.failedToCreate)return;if(w.program.set(this.program),w.setDepthMode(Q),w.setStencilMode(ee),w.setColorMode(ue),w.setCullFace(Ge),mt){w.activeTexture.set(tt.TEXTURE2),tt.bindTexture(tt.TEXTURE_2D,mt.depthTexture),w.activeTexture.set(tt.TEXTURE3),tt.bindTexture(tt.TEXTURE_2D,mt.texture);for(let Ht in this.terrainUniforms)this.terrainUniforms[Ht].set(mt[Ht])}for(let Ht in this.fixedUniforms)this.fixedUniforms[Ht].set(et[Ht]);Se&&Se.setUniforms(w,this.binderUniforms,Vr,{zoom:he});let pt=0;switch(q){case tt.LINES:pt=2;break;case tt.TRIANGLES:pt=3;break;case tt.LINE_STRIP:pt=1}for(let Ht of kr.get()){let nr=Ht.vaos||(Ht.vaos={});(nr[Ft]||(nr[Ft]=new tr)).bind(w,this,ir,Se?Se.getPaintVertexBuffers():[],or,Ht.vertexOffset,qe,He,lt),tt.drawElements(q,Ht.primitiveLength*pt,tt.UNSIGNED_SHORT,Ht.primitiveOffset*pt*2)}}}function Ai(le,w,q){let Q=1/Di(q,1,w.transform.tileZoom),ee=Math.pow(2,q.tileID.overscaledZ),ue=q.tileSize*Math.pow(2,w.transform.tileZoom)/ee,Ge=ue*(q.tileID.canonical.x+q.tileID.wrap*ee),et=ue*q.tileID.canonical.y;return{u_image:0,u_texsize:q.imageAtlasTexture.size,u_scale:[Q,le.fromScale,le.toScale],u_fade:le.t,u_pixel_coord_upper:[Ge>>16,et>>16],u_pixel_coord_lower:[65535&Ge,65535&et]}}let Qi=(le,w,q,Q)=>{let ee=w.style.light,ue=ee.properties.get("position"),Ge=[ue.x,ue.y,ue.z],et=function(){var Ft=new a.A(9);return a.A!=Float32Array&&(Ft[1]=0,Ft[2]=0,Ft[3]=0,Ft[5]=0,Ft[6]=0,Ft[7]=0),Ft[0]=1,Ft[4]=1,Ft[8]=1,Ft}();ee.properties.get("anchor")==="viewport"&&function(Ft,ir){var or=Math.sin(ir),kr=Math.cos(ir);Ft[0]=kr,Ft[1]=or,Ft[2]=0,Ft[3]=-or,Ft[4]=kr,Ft[5]=0,Ft[6]=0,Ft[7]=0,Ft[8]=1}(et,-w.transform.angle),function(Ft,ir,or){var kr=ir[0],Vr=ir[1],he=ir[2];Ft[0]=kr*or[0]+Vr*or[3]+he*or[6],Ft[1]=kr*or[1]+Vr*or[4]+he*or[7],Ft[2]=kr*or[2]+Vr*or[5]+he*or[8]}(Ge,Ge,et);let mt=ee.properties.get("color");return{u_matrix:le,u_lightpos:Ge,u_lightintensity:ee.properties.get("intensity"),u_lightcolor:[mt.r,mt.g,mt.b],u_vertical_gradient:+q,u_opacity:Q}},ni=(le,w,q,Q,ee,ue,Ge)=>a.e(Qi(le,w,q,Q),Ai(ue,w,Ge),{u_height_factor:-Math.pow(2,ee.overscaledZ)/Ge.tileSize/8}),Zi=le=>({u_matrix:le}),aa=(le,w,q,Q)=>a.e(Zi(le),Ai(q,w,Q)),Mn=(le,w)=>({u_matrix:le,u_world:w}),Un=(le,w,q,Q,ee)=>a.e(aa(le,w,q,Q),{u_world:ee}),Ga=(le,w,q,Q)=>{let ee=le.transform,ue,Ge;if(Q.paint.get("circle-pitch-alignment")==="map"){let et=Di(q,1,ee.zoom);ue=!0,Ge=[et,et]}else ue=!1,Ge=ee.pixelsToGLUnits;return{u_camera_to_center_distance:ee.cameraToCenterDistance,u_scale_with_map:+(Q.paint.get("circle-pitch-scale")==="map"),u_matrix:le.translatePosMatrix(w.posMatrix,q,Q.paint.get("circle-translate"),Q.paint.get("circle-translate-anchor")),u_pitch_with_map:+ue,u_device_pixel_ratio:le.pixelRatio,u_extrude_scale:Ge}},ma=(le,w,q)=>({u_matrix:le,u_inv_matrix:w,u_camera_to_center_distance:q.cameraToCenterDistance,u_viewport_size:[q.width,q.height]}),oa=(le,w,q=1)=>({u_matrix:le,u_color:w,u_overlay:0,u_overlay_scale:q}),ka=le=>({u_matrix:le}),so=(le,w,q,Q)=>({u_matrix:le,u_extrude_scale:Di(w,1,q),u_intensity:Q}),Kr=(le,w,q,Q)=>{let ee=a.H();a.aP(ee,0,le.width,le.height,0,0,1);let ue=le.context.gl;return{u_matrix:ee,u_world:[ue.drawingBufferWidth,ue.drawingBufferHeight],u_image:q,u_color_ramp:Q,u_opacity:w.paint.get("heatmap-opacity")}};function Ia(le,w){let q=Math.pow(2,w.canonical.z),Q=w.canonical.y;return[new a.Z(0,Q/q).toLngLat().lat,new a.Z(0,(Q+1)/q).toLngLat().lat]}let Yo=(le,w,q,Q)=>{let ee=le.transform;return{u_matrix:uo(le,w,q,Q),u_ratio:1/Di(w,1,ee.zoom),u_device_pixel_ratio:le.pixelRatio,u_units_to_pixels:[1/ee.pixelsToGLUnits[0],1/ee.pixelsToGLUnits[1]]}},fa=(le,w,q,Q,ee)=>a.e(Yo(le,w,q,ee),{u_image:0,u_image_height:Q}),kn=(le,w,q,Q,ee)=>{let ue=le.transform,Ge=ys(w,ue);return{u_matrix:uo(le,w,q,ee),u_texsize:w.imageAtlasTexture.size,u_ratio:1/Di(w,1,ue.zoom),u_device_pixel_ratio:le.pixelRatio,u_image:0,u_scale:[Ge,Q.fromScale,Q.toScale],u_fade:Q.t,u_units_to_pixels:[1/ue.pixelsToGLUnits[0],1/ue.pixelsToGLUnits[1]]}},Ta=(le,w,q,Q,ee,ue)=>{let Ge=le.lineAtlas,et=ys(w,le.transform),mt=q.layout.get("line-cap")==="round",Ft=Ge.getDash(Q.from,mt),ir=Ge.getDash(Q.to,mt),or=Ft.width*ee.fromScale,kr=ir.width*ee.toScale;return a.e(Yo(le,w,q,ue),{u_patternscale_a:[et/or,-Ft.height/2],u_patternscale_b:[et/kr,-ir.height/2],u_sdfgamma:Ge.width/(256*Math.min(or,kr)*le.pixelRatio)/2,u_image:0,u_tex_y_a:Ft.y,u_tex_y_b:ir.y,u_mix:ee.t})};function ys(le,w){return 1/Di(le,1,w.tileZoom)}function uo(le,w,q,Q){return le.translatePosMatrix(Q?Q.posMatrix:w.tileID.posMatrix,w,q.paint.get("line-translate"),q.paint.get("line-translate-anchor"))}let ls=(le,w,q,Q,ee)=>{return{u_matrix:le,u_tl_parent:w,u_scale_parent:q,u_buffer_scale:1,u_fade_t:Q.mix,u_opacity:Q.opacity*ee.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:ee.paint.get("raster-brightness-min"),u_brightness_high:ee.paint.get("raster-brightness-max"),u_saturation_factor:(Ge=ee.paint.get("raster-saturation"),Ge>0?1-1/(1.001-Ge):-Ge),u_contrast_factor:(ue=ee.paint.get("raster-contrast"),ue>0?1/(1-ue):1+ue),u_spin_weights:$a(ee.paint.get("raster-hue-rotate"))};var ue,Ge};function $a(le){le*=Math.PI/180;let w=Math.sin(le),q=Math.cos(le);return[(2*q+1)/3,(-Math.sqrt(3)*w-q+1)/3,(Math.sqrt(3)*w-q+1)/3]}let fo=(le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr)=>{let he=Ge.transform;return{u_is_size_zoom_constant:+(le==="constant"||le==="source"),u_is_size_feature_constant:+(le==="constant"||le==="camera"),u_size_t:w?w.uSizeT:0,u_size:w?w.uSize:0,u_camera_to_center_distance:he.cameraToCenterDistance,u_pitch:he.pitch/360*2*Math.PI,u_rotate_symbol:+q,u_aspect_ratio:he.width/he.height,u_fade_change:Ge.options.fadeDuration?Ge.symbolFadeChange:1,u_matrix:et,u_label_plane_matrix:mt,u_coord_matrix:Ft,u_is_text:+or,u_pitch_with_map:+Q,u_is_along_line:ee,u_is_variable_anchor:ue,u_texsize:kr,u_texture:0,u_translation:ir,u_pitched_scale:Vr}},mn=(le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr,he)=>{let Se=Ge.transform;return a.e(fo(le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,he),{u_gamma_scale:Q?Math.cos(Se._pitch)*Se.cameraToCenterDistance:1,u_device_pixel_ratio:Ge.pixelRatio,u_is_halo:+Vr})},ra=(le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,or,kr,Vr)=>a.e(mn(le,w,q,Q,ee,ue,Ge,et,mt,Ft,ir,!0,or,!0,Vr),{u_texsize_icon:kr,u_texture_icon:1}),wa=(le,w,q)=>({u_matrix:le,u_opacity:w,u_color:q}),ws=(le,w,q,Q,ee,ue)=>a.e(function(Ge,et,mt,Ft){let ir=mt.imageManager.getPattern(Ge.from.toString()),or=mt.imageManager.getPattern(Ge.to.toString()),{width:kr,height:Vr}=mt.imageManager.getPixelSize(),he=Math.pow(2,Ft.tileID.overscaledZ),Se=Ft.tileSize*Math.pow(2,mt.transform.tileZoom)/he,qe=Se*(Ft.tileID.canonical.x+Ft.tileID.wrap*he),He=Se*Ft.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:ir.tl,u_pattern_br_a:ir.br,u_pattern_tl_b:or.tl,u_pattern_br_b:or.br,u_texsize:[kr,Vr],u_mix:et.t,u_pattern_size_a:ir.displaySize,u_pattern_size_b:or.displaySize,u_scale_a:et.fromScale,u_scale_b:et.toScale,u_tile_units_to_pixels:1/Di(Ft,1,mt.transform.tileZoom),u_pixel_coord_upper:[qe>>16,He>>16],u_pixel_coord_lower:[65535&qe,65535&He]}}(Q,ue,q,ee),{u_matrix:le,u_opacity:w}),Co={fillExtrusion:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_lightpos:new a.aN(le,w.u_lightpos),u_lightintensity:new a.aI(le,w.u_lightintensity),u_lightcolor:new a.aN(le,w.u_lightcolor),u_vertical_gradient:new a.aI(le,w.u_vertical_gradient),u_opacity:new a.aI(le,w.u_opacity)}),fillExtrusionPattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_lightpos:new a.aN(le,w.u_lightpos),u_lightintensity:new a.aI(le,w.u_lightintensity),u_lightcolor:new a.aN(le,w.u_lightcolor),u_vertical_gradient:new a.aI(le,w.u_vertical_gradient),u_height_factor:new a.aI(le,w.u_height_factor),u_image:new a.aH(le,w.u_image),u_texsize:new a.aO(le,w.u_texsize),u_pixel_coord_upper:new a.aO(le,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(le,w.u_pixel_coord_lower),u_scale:new a.aN(le,w.u_scale),u_fade:new a.aI(le,w.u_fade),u_opacity:new a.aI(le,w.u_opacity)}),fill:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix)}),fillPattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_image:new a.aH(le,w.u_image),u_texsize:new a.aO(le,w.u_texsize),u_pixel_coord_upper:new a.aO(le,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(le,w.u_pixel_coord_lower),u_scale:new a.aN(le,w.u_scale),u_fade:new a.aI(le,w.u_fade)}),fillOutline:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_world:new a.aO(le,w.u_world)}),fillOutlinePattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_world:new a.aO(le,w.u_world),u_image:new a.aH(le,w.u_image),u_texsize:new a.aO(le,w.u_texsize),u_pixel_coord_upper:new a.aO(le,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(le,w.u_pixel_coord_lower),u_scale:new a.aN(le,w.u_scale),u_fade:new a.aI(le,w.u_fade)}),circle:(le,w)=>({u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_scale_with_map:new a.aH(le,w.u_scale_with_map),u_pitch_with_map:new a.aH(le,w.u_pitch_with_map),u_extrude_scale:new a.aO(le,w.u_extrude_scale),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_matrix:new a.aJ(le,w.u_matrix)}),collisionBox:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_pixel_extrude_scale:new a.aO(le,w.u_pixel_extrude_scale)}),collisionCircle:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_inv_matrix:new a.aJ(le,w.u_inv_matrix),u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_viewport_size:new a.aO(le,w.u_viewport_size)}),debug:(le,w)=>({u_color:new a.aL(le,w.u_color),u_matrix:new a.aJ(le,w.u_matrix),u_overlay:new a.aH(le,w.u_overlay),u_overlay_scale:new a.aI(le,w.u_overlay_scale)}),clippingMask:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix)}),heatmap:(le,w)=>({u_extrude_scale:new a.aI(le,w.u_extrude_scale),u_intensity:new a.aI(le,w.u_intensity),u_matrix:new a.aJ(le,w.u_matrix)}),heatmapTexture:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_world:new a.aO(le,w.u_world),u_image:new a.aH(le,w.u_image),u_color_ramp:new a.aH(le,w.u_color_ramp),u_opacity:new a.aI(le,w.u_opacity)}),hillshade:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_image:new a.aH(le,w.u_image),u_latrange:new a.aO(le,w.u_latrange),u_light:new a.aO(le,w.u_light),u_shadow:new a.aL(le,w.u_shadow),u_highlight:new a.aL(le,w.u_highlight),u_accent:new a.aL(le,w.u_accent)}),hillshadePrepare:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_image:new a.aH(le,w.u_image),u_dimension:new a.aO(le,w.u_dimension),u_zoom:new a.aI(le,w.u_zoom),u_unpack:new a.aK(le,w.u_unpack)}),line:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_ratio:new a.aI(le,w.u_ratio),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(le,w.u_units_to_pixels)}),lineGradient:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_ratio:new a.aI(le,w.u_ratio),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(le,w.u_units_to_pixels),u_image:new a.aH(le,w.u_image),u_image_height:new a.aI(le,w.u_image_height)}),linePattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_texsize:new a.aO(le,w.u_texsize),u_ratio:new a.aI(le,w.u_ratio),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_image:new a.aH(le,w.u_image),u_units_to_pixels:new a.aO(le,w.u_units_to_pixels),u_scale:new a.aN(le,w.u_scale),u_fade:new a.aI(le,w.u_fade)}),lineSDF:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_ratio:new a.aI(le,w.u_ratio),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(le,w.u_units_to_pixels),u_patternscale_a:new a.aO(le,w.u_patternscale_a),u_patternscale_b:new a.aO(le,w.u_patternscale_b),u_sdfgamma:new a.aI(le,w.u_sdfgamma),u_image:new a.aH(le,w.u_image),u_tex_y_a:new a.aI(le,w.u_tex_y_a),u_tex_y_b:new a.aI(le,w.u_tex_y_b),u_mix:new a.aI(le,w.u_mix)}),raster:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_tl_parent:new a.aO(le,w.u_tl_parent),u_scale_parent:new a.aI(le,w.u_scale_parent),u_buffer_scale:new a.aI(le,w.u_buffer_scale),u_fade_t:new a.aI(le,w.u_fade_t),u_opacity:new a.aI(le,w.u_opacity),u_image0:new a.aH(le,w.u_image0),u_image1:new a.aH(le,w.u_image1),u_brightness_low:new a.aI(le,w.u_brightness_low),u_brightness_high:new a.aI(le,w.u_brightness_high),u_saturation_factor:new a.aI(le,w.u_saturation_factor),u_contrast_factor:new a.aI(le,w.u_contrast_factor),u_spin_weights:new a.aN(le,w.u_spin_weights)}),symbolIcon:(le,w)=>({u_is_size_zoom_constant:new a.aH(le,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(le,w.u_is_size_feature_constant),u_size_t:new a.aI(le,w.u_size_t),u_size:new a.aI(le,w.u_size),u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_pitch:new a.aI(le,w.u_pitch),u_rotate_symbol:new a.aH(le,w.u_rotate_symbol),u_aspect_ratio:new a.aI(le,w.u_aspect_ratio),u_fade_change:new a.aI(le,w.u_fade_change),u_matrix:new a.aJ(le,w.u_matrix),u_label_plane_matrix:new a.aJ(le,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(le,w.u_coord_matrix),u_is_text:new a.aH(le,w.u_is_text),u_pitch_with_map:new a.aH(le,w.u_pitch_with_map),u_is_along_line:new a.aH(le,w.u_is_along_line),u_is_variable_anchor:new a.aH(le,w.u_is_variable_anchor),u_texsize:new a.aO(le,w.u_texsize),u_texture:new a.aH(le,w.u_texture),u_translation:new a.aO(le,w.u_translation),u_pitched_scale:new a.aI(le,w.u_pitched_scale)}),symbolSDF:(le,w)=>({u_is_size_zoom_constant:new a.aH(le,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(le,w.u_is_size_feature_constant),u_size_t:new a.aI(le,w.u_size_t),u_size:new a.aI(le,w.u_size),u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_pitch:new a.aI(le,w.u_pitch),u_rotate_symbol:new a.aH(le,w.u_rotate_symbol),u_aspect_ratio:new a.aI(le,w.u_aspect_ratio),u_fade_change:new a.aI(le,w.u_fade_change),u_matrix:new a.aJ(le,w.u_matrix),u_label_plane_matrix:new a.aJ(le,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(le,w.u_coord_matrix),u_is_text:new a.aH(le,w.u_is_text),u_pitch_with_map:new a.aH(le,w.u_pitch_with_map),u_is_along_line:new a.aH(le,w.u_is_along_line),u_is_variable_anchor:new a.aH(le,w.u_is_variable_anchor),u_texsize:new a.aO(le,w.u_texsize),u_texture:new a.aH(le,w.u_texture),u_gamma_scale:new a.aI(le,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_is_halo:new a.aH(le,w.u_is_halo),u_translation:new a.aO(le,w.u_translation),u_pitched_scale:new a.aI(le,w.u_pitched_scale)}),symbolTextAndIcon:(le,w)=>({u_is_size_zoom_constant:new a.aH(le,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(le,w.u_is_size_feature_constant),u_size_t:new a.aI(le,w.u_size_t),u_size:new a.aI(le,w.u_size),u_camera_to_center_distance:new a.aI(le,w.u_camera_to_center_distance),u_pitch:new a.aI(le,w.u_pitch),u_rotate_symbol:new a.aH(le,w.u_rotate_symbol),u_aspect_ratio:new a.aI(le,w.u_aspect_ratio),u_fade_change:new a.aI(le,w.u_fade_change),u_matrix:new a.aJ(le,w.u_matrix),u_label_plane_matrix:new a.aJ(le,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(le,w.u_coord_matrix),u_is_text:new a.aH(le,w.u_is_text),u_pitch_with_map:new a.aH(le,w.u_pitch_with_map),u_is_along_line:new a.aH(le,w.u_is_along_line),u_is_variable_anchor:new a.aH(le,w.u_is_variable_anchor),u_texsize:new a.aO(le,w.u_texsize),u_texsize_icon:new a.aO(le,w.u_texsize_icon),u_texture:new a.aH(le,w.u_texture),u_texture_icon:new a.aH(le,w.u_texture_icon),u_gamma_scale:new a.aI(le,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(le,w.u_device_pixel_ratio),u_is_halo:new a.aH(le,w.u_is_halo),u_translation:new a.aO(le,w.u_translation),u_pitched_scale:new a.aI(le,w.u_pitched_scale)}),background:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_opacity:new a.aI(le,w.u_opacity),u_color:new a.aL(le,w.u_color)}),backgroundPattern:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_opacity:new a.aI(le,w.u_opacity),u_image:new a.aH(le,w.u_image),u_pattern_tl_a:new a.aO(le,w.u_pattern_tl_a),u_pattern_br_a:new a.aO(le,w.u_pattern_br_a),u_pattern_tl_b:new a.aO(le,w.u_pattern_tl_b),u_pattern_br_b:new a.aO(le,w.u_pattern_br_b),u_texsize:new a.aO(le,w.u_texsize),u_mix:new a.aI(le,w.u_mix),u_pattern_size_a:new a.aO(le,w.u_pattern_size_a),u_pattern_size_b:new a.aO(le,w.u_pattern_size_b),u_scale_a:new a.aI(le,w.u_scale_a),u_scale_b:new a.aI(le,w.u_scale_b),u_pixel_coord_upper:new a.aO(le,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(le,w.u_pixel_coord_lower),u_tile_units_to_pixels:new a.aI(le,w.u_tile_units_to_pixels)}),terrain:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_texture:new a.aH(le,w.u_texture),u_ele_delta:new a.aI(le,w.u_ele_delta),u_fog_matrix:new a.aJ(le,w.u_fog_matrix),u_fog_color:new a.aL(le,w.u_fog_color),u_fog_ground_blend:new a.aI(le,w.u_fog_ground_blend),u_fog_ground_blend_opacity:new a.aI(le,w.u_fog_ground_blend_opacity),u_horizon_color:new a.aL(le,w.u_horizon_color),u_horizon_fog_blend:new a.aI(le,w.u_horizon_fog_blend)}),terrainDepth:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_ele_delta:new a.aI(le,w.u_ele_delta)}),terrainCoords:(le,w)=>({u_matrix:new a.aJ(le,w.u_matrix),u_texture:new a.aH(le,w.u_texture),u_terrain_coords_id:new a.aI(le,w.u_terrain_coords_id),u_ele_delta:new a.aI(le,w.u_ele_delta)}),sky:(le,w)=>({u_sky_color:new a.aL(le,w.u_sky_color),u_horizon_color:new a.aL(le,w.u_horizon_color),u_horizon:new a.aI(le,w.u_horizon),u_sky_horizon_blend:new a.aI(le,w.u_sky_horizon_blend)})};class Po{constructor(w,q,Q){this.context=w;let ee=w.gl;this.buffer=ee.createBuffer(),this.dynamicDraw=!!Q,this.context.unbindVAO(),w.bindElementBuffer.set(this.buffer),ee.bufferData(ee.ELEMENT_ARRAY_BUFFER,q.arrayBuffer,this.dynamicDraw?ee.DYNAMIC_DRAW:ee.STATIC_DRAW),this.dynamicDraw||delete q.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(w){let q=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),q.bufferSubData(q.ELEMENT_ARRAY_BUFFER,0,w.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}let ji={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class gn{constructor(w,q,Q,ee){this.length=q.length,this.attributes=Q,this.itemSize=q.bytesPerElement,this.dynamicDraw=ee,this.context=w;let ue=w.gl;this.buffer=ue.createBuffer(),w.bindVertexBuffer.set(this.buffer),ue.bufferData(ue.ARRAY_BUFFER,q.arrayBuffer,this.dynamicDraw?ue.DYNAMIC_DRAW:ue.STATIC_DRAW),this.dynamicDraw||delete q.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(w){if(w.length!==this.length)throw new Error(`Length of new data is ${w.length}, which doesn't match current length of ${this.length}`);let q=this.context.gl;this.bind(),q.bufferSubData(q.ARRAY_BUFFER,0,w.arrayBuffer)}enableAttributes(w,q){for(let Q=0;Q0){let nr=a.H();a.aQ(nr,tt.placementInvProjMatrix,le.transform.glCoordMatrix),a.aQ(nr,nr,tt.placementViewportMatrix),mt.push({circleArray:Ht,circleOffset:ir,transform:lt.posMatrix,invTransform:nr,coord:lt}),Ft+=Ht.length/4,ir=Ft}pt&&et.draw(ue,Ge.LINES,sa.disabled,Na.disabled,le.colorModeForRenderPass(),tn.disabled,{u_matrix:lt.posMatrix,u_pixel_extrude_scale:[1/(or=le.transform).width,1/or.height]},le.style.map.terrain&&le.style.map.terrain.getTerrainData(lt),q.id,pt.layoutVertexBuffer,pt.indexBuffer,pt.segments,null,le.transform.zoom,null,null,pt.collisionVertexBuffer)}var or;if(!ee||!mt.length)return;let kr=le.useProgram("collisionCircle"),Vr=new a.aR;Vr.resize(4*Ft),Vr._trim();let he=0;for(let He of mt)for(let lt=0;lt=0&&(He[tt.associatedIconIndex]={shiftedAnchor:Fo,angle:vl})}else Dr(tt.numGlyphs,Se)}if(Ft){qe.clear();let lt=le.icon.placedSymbolArray;for(let tt=0;ttle.style.map.terrain.getElevation(si,_t,cr):null,jt=q.layout.get("text-rotation-alignment")==="map";Re(hn,si.posMatrix,le,ee,Qu,ju,He,Ft,jt,Se,si.toUnwrapped(),he.width,he.height,Xu,ot)}let ef=si.posMatrix,tf=ee&&Ar||xf,Z=lt||tf?yo:Qu,se=Ju,ze=Ua&&q.paint.get(ee?"text-halo-width":"icon-halo-width").constantOr(1)!==0,Xe;Xe=Ua?hn.iconsInText?ra(Fo.kind,ml,tt,He,lt,tf,le,ef,Z,se,Xu,Sl,Pu,ri):mn(Fo.kind,ml,tt,He,lt,tf,le,ef,Z,se,Xu,ee,Sl,!0,ri):fo(Fo.kind,ml,tt,He,lt,tf,le,ef,Z,se,Xu,ee,Sl,ri);let Qe={program:Us,buffers:Zn,uniformValues:Xe,atlasTexture:Yl,atlasTextureIcon:iu,atlasInterpolation:ql,atlasInterpolationIcon:ou,isSDF:Ua,hasHalo:ze};if(Ht&&hn.canOverlap){nr=!0;let ot=Zn.segments.get();for(let jt of ot)Rr.push({segments:new a.a0([jt]),sortKey:jt.sortKey,state:Qe,terrainData:au})}else Rr.push({segments:Zn.segments,sortKey:0,state:Qe,terrainData:au})}nr&&Rr.sort((si,Mi)=>si.sortKey-Mi.sortKey);for(let si of Rr){let Mi=si.state;if(kr.activeTexture.set(Vr.TEXTURE0),Mi.atlasTexture.bind(Mi.atlasInterpolation,Vr.CLAMP_TO_EDGE),Mi.atlasTextureIcon&&(kr.activeTexture.set(Vr.TEXTURE1),Mi.atlasTextureIcon&&Mi.atlasTextureIcon.bind(Mi.atlasInterpolationIcon,Vr.CLAMP_TO_EDGE)),Mi.isSDF){let hn=Mi.uniformValues;Mi.hasHalo&&(hn.u_is_halo=1,Ca(Mi.buffers,si.segments,q,le,Mi.program,fr,ir,or,hn,si.terrainData)),hn.u_is_halo=0}Ca(Mi.buffers,si.segments,q,le,Mi.program,fr,ir,or,Mi.uniformValues,si.terrainData)}}function Ca(le,w,q,Q,ee,ue,Ge,et,mt,Ft){let ir=Q.context;ee.draw(ir,ir.gl.TRIANGLES,ue,Ge,et,tn.disabled,mt,Ft,q.id,le.layoutVertexBuffer,le.indexBuffer,w,q.paint,Q.transform.zoom,le.programConfigurations.get(q.id),le.dynamicLayoutVertexBuffer,le.opacityVertexBuffer)}function Es(le,w,q,Q){let ee=le.context,ue=ee.gl,Ge=Na.disabled,et=new lo([ue.ONE,ue.ONE],a.aM.transparent,[!0,!0,!0,!0]),mt=w.getBucket(q);if(!mt)return;let Ft=Q.key,ir=q.heatmapFbos.get(Ft);ir||(ir=Ho(ee,w.tileSize,w.tileSize),q.heatmapFbos.set(Ft,ir)),ee.bindFramebuffer.set(ir.framebuffer),ee.viewport.set([0,0,w.tileSize,w.tileSize]),ee.clear({color:a.aM.transparent});let or=mt.programConfigurations.get(q.id),kr=le.useProgram("heatmap",or),Vr=le.style.map.terrain.getTerrainData(Q);kr.draw(ee,ue.TRIANGLES,sa.disabled,Ge,et,tn.disabled,so(Q.posMatrix,w,le.transform.zoom,q.paint.get("heatmap-intensity")),Vr,q.id,mt.layoutVertexBuffer,mt.indexBuffer,mt.segments,q.paint,le.transform.zoom,or)}function Ts(le,w,q){let Q=le.context,ee=Q.gl;Q.setColorMode(le.colorModeForRenderPass());let ue=Wa(Q,w),Ge=q.key,et=w.heatmapFbos.get(Ge);et&&(Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,et.colorAttachment.get()),Q.activeTexture.set(ee.TEXTURE1),ue.bind(ee.LINEAR,ee.CLAMP_TO_EDGE),le.useProgram("heatmapTexture").draw(Q,ee.TRIANGLES,sa.disabled,Na.disabled,le.colorModeForRenderPass(),tn.disabled,Kr(le,w,0,1),null,w.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments,w.paint,le.transform.zoom),et.destroy(),w.heatmapFbos.delete(Ge))}function Ho(le,w,q){var Q,ee;let ue=le.gl,Ge=ue.createTexture();ue.bindTexture(ue.TEXTURE_2D,Ge),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_WRAP_S,ue.CLAMP_TO_EDGE),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_WRAP_T,ue.CLAMP_TO_EDGE),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_MIN_FILTER,ue.LINEAR),ue.texParameteri(ue.TEXTURE_2D,ue.TEXTURE_MAG_FILTER,ue.LINEAR);let et=(Q=le.HALF_FLOAT)!==null&&Q!==void 0?Q:ue.UNSIGNED_BYTE,mt=(ee=le.RGBA16F)!==null&&ee!==void 0?ee:ue.RGBA;ue.texImage2D(ue.TEXTURE_2D,0,mt,w,q,0,ue.RGBA,et,null);let Ft=le.createFramebuffer(w,q,!1,!1);return Ft.colorAttachment.set(Ge),Ft}function Wa(le,w){return w.colorRampTexture||(w.colorRampTexture=new m(le,w.colorRamp,le.gl.RGBA)),w.colorRampTexture}function To(le,w,q,Q,ee){if(!q||!Q||!Q.imageAtlas)return;let ue=Q.imageAtlas.patternPositions,Ge=ue[q.to.toString()],et=ue[q.from.toString()];if(!Ge&&et&&(Ge=et),!et&&Ge&&(et=Ge),!Ge||!et){let mt=ee.getPaintProperty(w);Ge=ue[mt],et=ue[mt]}Ge&&et&&le.setConstantPatternPositions(Ge,et)}function ts(le,w,q,Q,ee,ue,Ge){let et=le.context.gl,mt="fill-pattern",Ft=q.paint.get(mt),ir=Ft&&Ft.constantOr(1),or=q.getCrossfadeParameters(),kr,Vr,he,Se,qe;Ge?(Vr=ir&&!q.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",kr=et.LINES):(Vr=ir?"fillPattern":"fill",kr=et.TRIANGLES);let He=Ft.constantOr(null);for(let lt of Q){let tt=w.getTile(lt);if(ir&&!tt.patternsLoaded())continue;let pt=tt.getBucket(q);if(!pt)continue;let Ht=pt.programConfigurations.get(q.id),nr=le.useProgram(Vr,Ht),fr=le.style.map.terrain&&le.style.map.terrain.getTerrainData(lt);ir&&(le.context.activeTexture.set(et.TEXTURE0),tt.imageAtlasTexture.bind(et.LINEAR,et.CLAMP_TO_EDGE),Ht.updatePaintBuffers(or)),To(Ht,mt,He,tt,q);let Ar=fr?lt:null,Rr=le.translatePosMatrix(Ar?Ar.posMatrix:lt.posMatrix,tt,q.paint.get("fill-translate"),q.paint.get("fill-translate-anchor"));if(Ge){Se=pt.indexBuffer2,qe=pt.segments2;let ri=[et.drawingBufferWidth,et.drawingBufferHeight];he=Vr==="fillOutlinePattern"&&ir?Un(Rr,le,or,tt,ri):Mn(Rr,ri)}else Se=pt.indexBuffer,qe=pt.segments,he=ir?aa(Rr,le,or,tt):Zi(Rr);nr.draw(le.context,kr,ee,le.stencilModeForClipping(lt),ue,tn.disabled,he,fr,q.id,pt.layoutVertexBuffer,Se,qe,q.paint,le.transform.zoom,Ht)}}function Wo(le,w,q,Q,ee,ue,Ge){let et=le.context,mt=et.gl,Ft="fill-extrusion-pattern",ir=q.paint.get(Ft),or=ir.constantOr(1),kr=q.getCrossfadeParameters(),Vr=q.paint.get("fill-extrusion-opacity"),he=ir.constantOr(null);for(let Se of Q){let qe=w.getTile(Se),He=qe.getBucket(q);if(!He)continue;let lt=le.style.map.terrain&&le.style.map.terrain.getTerrainData(Se),tt=He.programConfigurations.get(q.id),pt=le.useProgram(or?"fillExtrusionPattern":"fillExtrusion",tt);or&&(le.context.activeTexture.set(mt.TEXTURE0),qe.imageAtlasTexture.bind(mt.LINEAR,mt.CLAMP_TO_EDGE),tt.updatePaintBuffers(kr)),To(tt,Ft,he,qe,q);let Ht=le.translatePosMatrix(Se.posMatrix,qe,q.paint.get("fill-extrusion-translate"),q.paint.get("fill-extrusion-translate-anchor")),nr=q.paint.get("fill-extrusion-vertical-gradient"),fr=or?ni(Ht,le,nr,Vr,Se,kr,qe):Qi(Ht,le,nr,Vr);pt.draw(et,et.gl.TRIANGLES,ee,ue,Ge,tn.backCCW,fr,lt,q.id,He.layoutVertexBuffer,He.indexBuffer,He.segments,q.paint,le.transform.zoom,tt,le.style.map.terrain&&He.centroidVertexBuffer)}}function qa(le,w,q,Q,ee,ue,Ge){let et=le.context,mt=et.gl,Ft=q.fbo;if(!Ft)return;let ir=le.useProgram("hillshade"),or=le.style.map.terrain&&le.style.map.terrain.getTerrainData(w);et.activeTexture.set(mt.TEXTURE0),mt.bindTexture(mt.TEXTURE_2D,Ft.colorAttachment.get()),ir.draw(et,mt.TRIANGLES,ee,ue,Ge,tn.disabled,((kr,Vr,he,Se)=>{let qe=he.paint.get("hillshade-shadow-color"),He=he.paint.get("hillshade-highlight-color"),lt=he.paint.get("hillshade-accent-color"),tt=he.paint.get("hillshade-illumination-direction")*(Math.PI/180);he.paint.get("hillshade-illumination-anchor")==="viewport"&&(tt-=kr.transform.angle);let pt=!kr.options.moving;return{u_matrix:Se?Se.posMatrix:kr.transform.calculatePosMatrix(Vr.tileID.toUnwrapped(),pt),u_image:0,u_latrange:Ia(0,Vr.tileID),u_light:[he.paint.get("hillshade-exaggeration"),tt],u_shadow:qe,u_highlight:He,u_accent:lt}})(le,q,Q,or?w:null),or,Q.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments)}function ln(le,w,q,Q,ee,ue){let Ge=le.context,et=Ge.gl,mt=w.dem;if(mt&&mt.data){let Ft=mt.dim,ir=mt.stride,or=mt.getPixels();if(Ge.activeTexture.set(et.TEXTURE1),Ge.pixelStoreUnpackPremultiplyAlpha.set(!1),w.demTexture=w.demTexture||le.getTileTexture(ir),w.demTexture){let Vr=w.demTexture;Vr.update(or,{premultiply:!1}),Vr.bind(et.NEAREST,et.CLAMP_TO_EDGE)}else w.demTexture=new m(Ge,or,et.RGBA,{premultiply:!1}),w.demTexture.bind(et.NEAREST,et.CLAMP_TO_EDGE);Ge.activeTexture.set(et.TEXTURE0);let kr=w.fbo;if(!kr){let Vr=new m(Ge,{width:Ft,height:Ft,data:null},et.RGBA);Vr.bind(et.LINEAR,et.CLAMP_TO_EDGE),kr=w.fbo=Ge.createFramebuffer(Ft,Ft,!0,!1),kr.colorAttachment.set(Vr.texture)}Ge.bindFramebuffer.set(kr.framebuffer),Ge.viewport.set([0,0,Ft,Ft]),le.useProgram("hillshadePrepare").draw(Ge,et.TRIANGLES,Q,ee,ue,tn.disabled,((Vr,he)=>{let Se=he.stride,qe=a.H();return a.aP(qe,0,a.X,-a.X,0,0,1),a.J(qe,qe,[0,-a.X,0]),{u_matrix:qe,u_image:1,u_dimension:[Se,Se],u_zoom:Vr.overscaledZ,u_unpack:he.getUnpackVector()}})(w.tileID,mt),null,q.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments),w.needsHillshadePrepare=!1}}function Bo(le,w,q,Q,ee,ue){let Ge=Q.paint.get("raster-fade-duration");if(!ue&&Ge>0){let et=l.now(),mt=(et-le.timeAdded)/Ge,Ft=w?(et-w.timeAdded)/Ge:-1,ir=q.getSource(),or=ee.coveringZoomLevel({tileSize:ir.tileSize,roundZoom:ir.roundZoom}),kr=!w||Math.abs(w.tileID.overscaledZ-or)>Math.abs(le.tileID.overscaledZ-or),Vr=kr&&le.refreshedUponExpiration?1:a.ac(kr?mt:1-Ft,0,1);return le.refreshedUponExpiration&&mt>=1&&(le.refreshedUponExpiration=!1),w?{opacity:1,mix:1-Vr}:{opacity:Vr,mix:0}}return{opacity:1,mix:0}}let ko=new a.aM(1,0,0,1),oo=new a.aM(0,1,0,1),za=new a.aM(0,0,1,1),ea=new a.aM(1,0,1,1),rs=new a.aM(0,1,1,1);function $s(le,w,q,Q){Ds(le,0,w+q/2,le.transform.width,q,Q)}function us(le,w,q,Q){Ds(le,w-q/2,0,q,le.transform.height,Q)}function Ds(le,w,q,Q,ee,ue){let Ge=le.context,et=Ge.gl;et.enable(et.SCISSOR_TEST),et.scissor(w*le.pixelRatio,q*le.pixelRatio,Q*le.pixelRatio,ee*le.pixelRatio),Ge.clear({color:ue}),et.disable(et.SCISSOR_TEST)}function fl(le,w,q){let Q=le.context,ee=Q.gl,ue=q.posMatrix,Ge=le.useProgram("debug"),et=sa.disabled,mt=Na.disabled,Ft=le.colorModeForRenderPass(),ir="$debug",or=le.style.map.terrain&&le.style.map.terrain.getTerrainData(q);Q.activeTexture.set(ee.TEXTURE0);let kr=w.getTileByID(q.key).latestRawTileData,Vr=Math.floor((kr&&kr.byteLength||0)/1024),he=w.getTile(q).tileSize,Se=512/Math.min(he,512)*(q.overscaledZ/le.transform.zoom)*.5,qe=q.canonical.toString();q.overscaledZ!==q.canonical.z&&(qe+=` => ${q.overscaledZ}`),function(He,lt){He.initDebugOverlayCanvas();let tt=He.debugOverlayCanvas,pt=He.context.gl,Ht=He.debugOverlayCanvas.getContext("2d");Ht.clearRect(0,0,tt.width,tt.height),Ht.shadowColor="white",Ht.shadowBlur=2,Ht.lineWidth=1.5,Ht.strokeStyle="white",Ht.textBaseline="top",Ht.font="bold 36px Open Sans, sans-serif",Ht.fillText(lt,5,5),Ht.strokeText(lt,5,5),He.debugOverlayTexture.update(tt),He.debugOverlayTexture.bind(pt.LINEAR,pt.CLAMP_TO_EDGE)}(le,`${qe} ${Vr}kB`),Ge.draw(Q,ee.TRIANGLES,et,mt,lo.alphaBlended,tn.disabled,oa(ue,a.aM.transparent,Se),null,ir,le.debugBuffer,le.quadTriangleIndexBuffer,le.debugSegments),Ge.draw(Q,ee.LINE_STRIP,et,mt,Ft,tn.disabled,oa(ue,a.aM.red),or,ir,le.debugBuffer,le.tileBorderIndexBuffer,le.debugSegments)}function as(le,w,q){let Q=le.context,ee=Q.gl,ue=le.colorModeForRenderPass(),Ge=new sa(ee.LEQUAL,sa.ReadWrite,le.depthRangeFor3D),et=le.useProgram("terrain"),mt=w.getTerrainMesh();Q.bindFramebuffer.set(null),Q.viewport.set([0,0,le.width,le.height]);for(let Ft of q){let ir=le.renderToTexture.getTexture(Ft),or=w.getTerrainData(Ft.tileID);Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,ir.texture);let kr=le.transform.calculatePosMatrix(Ft.tileID.toUnwrapped()),Vr=w.getMeshFrameDelta(le.transform.zoom),he=le.transform.calculateFogMatrix(Ft.tileID.toUnwrapped()),Se=pr(kr,Vr,he,le.style.sky,le.transform.pitch);et.draw(Q,ee.TRIANGLES,Ge,Na.disabled,ue,tn.backCCW,Se,or,"terrain",mt.vertexBuffer,mt.indexBuffer,mt.segments)}}class Ma{constructor(w,q,Q){this.vertexBuffer=w,this.indexBuffer=q,this.segments=Q}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}class Qs{constructor(w,q){this.context=new eo(w),this.transform=q,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:a.an(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=rt.maxUnderzooming+rt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new rn}resize(w,q,Q){if(this.width=Math.floor(w*Q),this.height=Math.floor(q*Q),this.pixelRatio=Q,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let ee of this.style._order)this.style._layers[ee].resize()}setup(){let w=this.context,q=new a.aX;q.emplaceBack(0,0),q.emplaceBack(a.X,0),q.emplaceBack(0,a.X),q.emplaceBack(a.X,a.X),this.tileExtentBuffer=w.createVertexBuffer(q,xi.members),this.tileExtentSegments=a.a0.simpleSegment(0,0,4,2);let Q=new a.aX;Q.emplaceBack(0,0),Q.emplaceBack(a.X,0),Q.emplaceBack(0,a.X),Q.emplaceBack(a.X,a.X),this.debugBuffer=w.createVertexBuffer(Q,xi.members),this.debugSegments=a.a0.simpleSegment(0,0,4,5);let ee=new a.$;ee.emplaceBack(0,0,0,0),ee.emplaceBack(a.X,0,a.X,0),ee.emplaceBack(0,a.X,0,a.X),ee.emplaceBack(a.X,a.X,a.X,a.X),this.rasterBoundsBuffer=w.createVertexBuffer(ee,Ye.members),this.rasterBoundsSegments=a.a0.simpleSegment(0,0,4,2);let ue=new a.aX;ue.emplaceBack(0,0),ue.emplaceBack(1,0),ue.emplaceBack(0,1),ue.emplaceBack(1,1),this.viewportBuffer=w.createVertexBuffer(ue,xi.members),this.viewportSegments=a.a0.simpleSegment(0,0,4,2);let Ge=new a.aZ;Ge.emplaceBack(0),Ge.emplaceBack(1),Ge.emplaceBack(3),Ge.emplaceBack(2),Ge.emplaceBack(0),this.tileBorderIndexBuffer=w.createIndexBuffer(Ge);let et=new a.aY;et.emplaceBack(0,1,2),et.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=w.createIndexBuffer(et);let mt=this.context.gl;this.stencilClearMode=new Na({func:mt.ALWAYS,mask:0},0,255,mt.ZERO,mt.ZERO,mt.ZERO)}clearStencil(){let w=this.context,q=w.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let Q=a.H();a.aP(Q,0,this.width,this.height,0,0,1),a.K(Q,Q,[q.drawingBufferWidth,q.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(w,q.TRIANGLES,sa.disabled,this.stencilClearMode,lo.disabled,tn.disabled,ka(Q),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(w,q){if(this.currentStencilSource===w.source||!w.isTileClipped()||!q||!q.length)return;this.currentStencilSource=w.source;let Q=this.context,ee=Q.gl;this.nextStencilID+q.length>256&&this.clearStencil(),Q.setColorMode(lo.disabled),Q.setDepthMode(sa.disabled);let ue=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(let Ge of q){let et=this._tileClippingMaskIDs[Ge.key]=this.nextStencilID++,mt=this.style.map.terrain&&this.style.map.terrain.getTerrainData(Ge);ue.draw(Q,ee.TRIANGLES,sa.disabled,new Na({func:ee.ALWAYS,mask:0},et,255,ee.KEEP,ee.KEEP,ee.REPLACE),lo.disabled,tn.disabled,ka(Ge.posMatrix),mt,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let w=this.nextStencilID++,q=this.context.gl;return new Na({func:q.NOTEQUAL,mask:255},w,255,q.KEEP,q.KEEP,q.REPLACE)}stencilModeForClipping(w){let q=this.context.gl;return new Na({func:q.EQUAL,mask:255},this._tileClippingMaskIDs[w.key],0,q.KEEP,q.KEEP,q.REPLACE)}stencilConfigForOverlap(w){let q=this.context.gl,Q=w.sort((Ge,et)=>et.overscaledZ-Ge.overscaledZ),ee=Q[Q.length-1].overscaledZ,ue=Q[0].overscaledZ-ee+1;if(ue>1){this.currentStencilSource=void 0,this.nextStencilID+ue>256&&this.clearStencil();let Ge={};for(let et=0;et({u_sky_color:He.properties.get("sky-color"),u_horizon_color:He.properties.get("horizon-color"),u_horizon:(lt.height/2+lt.getHorizon())*tt,u_sky_horizon_blend:He.properties.get("sky-horizon-blend")*lt.height/2*tt}))(Ft,mt.style.map.transform,mt.pixelRatio),Vr=new sa(or.LEQUAL,sa.ReadWrite,[0,1]),he=Na.disabled,Se=mt.colorModeForRenderPass(),qe=mt.useProgram("sky");if(!Ft.mesh){let He=new a.aX;He.emplaceBack(-1,-1),He.emplaceBack(1,-1),He.emplaceBack(1,1),He.emplaceBack(-1,1);let lt=new a.aY;lt.emplaceBack(0,1,2),lt.emplaceBack(0,2,3),Ft.mesh=new Ma(ir.createVertexBuffer(He,xi.members),ir.createIndexBuffer(lt),a.a0.simpleSegment(0,0,He.length,lt.length))}qe.draw(ir,or.TRIANGLES,Vr,he,Se,tn.disabled,kr,void 0,"sky",Ft.mesh.vertexBuffer,Ft.mesh.indexBuffer,Ft.mesh.segments)}(this,this.style.sky),this._showOverdrawInspector=q.showOverdrawInspector,this.depthRangeFor3D=[0,1-(w._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(this.renderPass="opaque",this.currentLayer=Q.length-1;this.currentLayer>=0;this.currentLayer--){let mt=this.style._layers[Q[this.currentLayer]],Ft=ee[mt.source],ir=ue[mt.source];this._renderTileClippingMasks(mt,ir),this.renderLayer(this,Ft,mt,ir)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayerqe.source&&!qe.isHidden(ir)?[Ft.sourceCaches[qe.source]]:[]),Vr=kr.filter(qe=>qe.getSource().type==="vector"),he=kr.filter(qe=>qe.getSource().type!=="vector"),Se=qe=>{(!or||or.getSource().maxzoomSe(qe)),or||he.forEach(qe=>Se(qe)),or}(this.style,this.transform.zoom);mt&&function(Ft,ir,or){for(let kr=0;kr0),ee&&(a.b0(q,Q),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,function(ue,Ge){let et=ue.context,mt=et.gl,Ft=lo.unblended,ir=new sa(mt.LEQUAL,sa.ReadWrite,[0,1]),or=Ge.getTerrainMesh(),kr=Ge.sourceCache.getRenderableTiles(),Vr=ue.useProgram("terrainDepth");et.bindFramebuffer.set(Ge.getFramebuffer("depth").framebuffer),et.viewport.set([0,0,ue.width/devicePixelRatio,ue.height/devicePixelRatio]),et.clear({color:a.aM.transparent,depth:1});for(let he of kr){let Se=Ge.getTerrainData(he.tileID),qe={u_matrix:ue.transform.calculatePosMatrix(he.tileID.toUnwrapped()),u_ele_delta:Ge.getMeshFrameDelta(ue.transform.zoom)};Vr.draw(et,mt.TRIANGLES,ir,Na.disabled,Ft,tn.backCCW,qe,Se,"terrain",or.vertexBuffer,or.indexBuffer,or.segments)}et.bindFramebuffer.set(null),et.viewport.set([0,0,ue.width,ue.height])}(this,this.style.map.terrain),function(ue,Ge){let et=ue.context,mt=et.gl,Ft=lo.unblended,ir=new sa(mt.LEQUAL,sa.ReadWrite,[0,1]),or=Ge.getTerrainMesh(),kr=Ge.getCoordsTexture(),Vr=Ge.sourceCache.getRenderableTiles(),he=ue.useProgram("terrainCoords");et.bindFramebuffer.set(Ge.getFramebuffer("coords").framebuffer),et.viewport.set([0,0,ue.width/devicePixelRatio,ue.height/devicePixelRatio]),et.clear({color:a.aM.transparent,depth:1}),Ge.coordsIndex=[];for(let Se of Vr){let qe=Ge.getTerrainData(Se.tileID);et.activeTexture.set(mt.TEXTURE0),mt.bindTexture(mt.TEXTURE_2D,kr.texture);let He={u_matrix:ue.transform.calculatePosMatrix(Se.tileID.toUnwrapped()),u_terrain_coords_id:(255-Ge.coordsIndex.length)/255,u_texture:0,u_ele_delta:Ge.getMeshFrameDelta(ue.transform.zoom)};he.draw(et,mt.TRIANGLES,ir,Na.disabled,Ft,tn.backCCW,He,qe,"terrain",or.vertexBuffer,or.indexBuffer,or.segments),Ge.coordsIndex.push(Se.tileID.key)}et.bindFramebuffer.set(null),et.viewport.set([0,0,ue.width,ue.height])}(this,this.style.map.terrain))}renderLayer(w,q,Q,ee){if(!Q.isHidden(this.transform.zoom)&&(Q.type==="background"||Q.type==="custom"||(ee||[]).length))switch(this.id=Q.id,Q.type){case"symbol":(function(ue,Ge,et,mt,Ft){if(ue.renderPass!=="translucent")return;let ir=Na.disabled,or=ue.colorModeForRenderPass();(et._unevaluatedLayout.hasValue("text-variable-anchor")||et._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&function(kr,Vr,he,Se,qe,He,lt,tt,pt){let Ht=Vr.transform,nr=Vi(),fr=qe==="map",Ar=He==="map";for(let Rr of kr){let ri=Se.getTile(Rr),si=ri.getBucket(he);if(!si||!si.text||!si.text.segments.get().length)continue;let Mi=a.ag(si.textSizeData,Ht.zoom),hn=Di(ri,1,Vr.transform.zoom),Zn=br(Rr.posMatrix,Ar,fr,Vr.transform,hn),Yn=he.layout.get("icon-text-fit")!=="none"&&si.hasIconData();if(Mi){let Ua=Math.pow(2,Ht.zoom-ri.tileID.overscaledZ),Fo=Vr.style.map.terrain?(Us,ml)=>Vr.style.map.terrain.getElevation(Rr,Us,ml):null,vl=nr.translatePosition(Ht,ri,lt,tt);Dn(si,fr,Ar,pt,Ht,Zn,Rr.posMatrix,Ua,Mi,Yn,nr,vl,Rr.toUnwrapped(),Fo)}}}(mt,ue,et,Ge,et.layout.get("text-rotation-alignment"),et.layout.get("text-pitch-alignment"),et.paint.get("text-translate"),et.paint.get("text-translate-anchor"),Ft),et.paint.get("icon-opacity").constantOr(1)!==0&&Ws(ue,Ge,et,mt,!1,et.paint.get("icon-translate"),et.paint.get("icon-translate-anchor"),et.layout.get("icon-rotation-alignment"),et.layout.get("icon-pitch-alignment"),et.layout.get("icon-keep-upright"),ir,or),et.paint.get("text-opacity").constantOr(1)!==0&&Ws(ue,Ge,et,mt,!0,et.paint.get("text-translate"),et.paint.get("text-translate-anchor"),et.layout.get("text-rotation-alignment"),et.layout.get("text-pitch-alignment"),et.layout.get("text-keep-upright"),ir,or),Ge.map.showCollisionBoxes&&(to(ue,Ge,et,mt,!0),to(ue,Ge,et,mt,!1))})(w,q,Q,ee,this.style.placement.variableOffsets);break;case"circle":(function(ue,Ge,et,mt){if(ue.renderPass!=="translucent")return;let Ft=et.paint.get("circle-opacity"),ir=et.paint.get("circle-stroke-width"),or=et.paint.get("circle-stroke-opacity"),kr=!et.layout.get("circle-sort-key").isConstant();if(Ft.constantOr(1)===0&&(ir.constantOr(1)===0||or.constantOr(1)===0))return;let Vr=ue.context,he=Vr.gl,Se=ue.depthModeForSublayer(0,sa.ReadOnly),qe=Na.disabled,He=ue.colorModeForRenderPass(),lt=[];for(let tt=0;tttt.sortKey-pt.sortKey);for(let tt of lt){let{programConfiguration:pt,program:Ht,layoutVertexBuffer:nr,indexBuffer:fr,uniformValues:Ar,terrainData:Rr}=tt.state;Ht.draw(Vr,he.TRIANGLES,Se,qe,He,tn.disabled,Ar,Rr,et.id,nr,fr,tt.segments,et.paint,ue.transform.zoom,pt)}})(w,q,Q,ee);break;case"heatmap":(function(ue,Ge,et,mt){if(et.paint.get("heatmap-opacity")===0)return;let Ft=ue.context;if(ue.style.map.terrain){for(let ir of mt){let or=Ge.getTile(ir);Ge.hasRenderableParent(ir)||(ue.renderPass==="offscreen"?Es(ue,or,et,ir):ue.renderPass==="translucent"&&Ts(ue,et,ir))}Ft.viewport.set([0,0,ue.width,ue.height])}else ue.renderPass==="offscreen"?function(ir,or,kr,Vr){let he=ir.context,Se=he.gl,qe=Na.disabled,He=new lo([Se.ONE,Se.ONE],a.aM.transparent,[!0,!0,!0,!0]);(function(lt,tt,pt){let Ht=lt.gl;lt.activeTexture.set(Ht.TEXTURE1),lt.viewport.set([0,0,tt.width/4,tt.height/4]);let nr=pt.heatmapFbos.get(a.aU);nr?(Ht.bindTexture(Ht.TEXTURE_2D,nr.colorAttachment.get()),lt.bindFramebuffer.set(nr.framebuffer)):(nr=Ho(lt,tt.width/4,tt.height/4),pt.heatmapFbos.set(a.aU,nr))})(he,ir,kr),he.clear({color:a.aM.transparent});for(let lt=0;lt20&&ir.texParameterf(ir.TEXTURE_2D,Ft.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Ft.extTextureFilterAnisotropicMax);let si=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(lt),Mi=si?lt:null,hn=Mi?Mi.posMatrix:ue.transform.calculatePosMatrix(lt.toUnwrapped(),He),Zn=ls(hn,Rr||[0,0],Ar||1,fr,et);or instanceof kt?kr.draw(Ft,ir.TRIANGLES,tt,Na.disabled,Vr,tn.disabled,Zn,si,et.id,or.boundsBuffer,ue.quadTriangleIndexBuffer,or.boundsSegments):kr.draw(Ft,ir.TRIANGLES,tt,he[lt.overscaledZ],Vr,tn.disabled,Zn,si,et.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments)}})(w,q,Q,ee);break;case"background":(function(ue,Ge,et,mt){let Ft=et.paint.get("background-color"),ir=et.paint.get("background-opacity");if(ir===0)return;let or=ue.context,kr=or.gl,Vr=ue.transform,he=Vr.tileSize,Se=et.paint.get("background-pattern");if(ue.isPatternMissing(Se))return;let qe=!Se&&Ft.a===1&&ir===1&&ue.opaquePassEnabledForLayer()?"opaque":"translucent";if(ue.renderPass!==qe)return;let He=Na.disabled,lt=ue.depthModeForSublayer(0,qe==="opaque"?sa.ReadWrite:sa.ReadOnly),tt=ue.colorModeForRenderPass(),pt=ue.useProgram(Se?"backgroundPattern":"background"),Ht=mt||Vr.coveringTiles({tileSize:he,terrain:ue.style.map.terrain});Se&&(or.activeTexture.set(kr.TEXTURE0),ue.imageManager.bind(ue.context));let nr=et.getCrossfadeParameters();for(let fr of Ht){let Ar=mt?fr.posMatrix:ue.transform.calculatePosMatrix(fr.toUnwrapped()),Rr=Se?ws(Ar,ir,ue,Se,{tileID:fr,tileSize:he},nr):wa(Ar,ir,Ft),ri=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(fr);pt.draw(or,kr.TRIANGLES,lt,He,tt,tn.disabled,Rr,ri,et.id,ue.tileExtentBuffer,ue.quadTriangleIndexBuffer,ue.tileExtentSegments)}})(w,0,Q,ee);break;case"custom":(function(ue,Ge,et){let mt=ue.context,Ft=et.implementation;if(ue.renderPass==="offscreen"){let ir=Ft.prerender;ir&&(ue.setCustomLayerDefaults(),mt.setColorMode(ue.colorModeForRenderPass()),ir.call(Ft,mt.gl,ue.transform.customLayerMatrix()),mt.setDirty(),ue.setBaseState())}else if(ue.renderPass==="translucent"){ue.setCustomLayerDefaults(),mt.setColorMode(ue.colorModeForRenderPass()),mt.setStencilMode(Na.disabled);let ir=Ft.renderingMode==="3d"?new sa(ue.context.gl.LEQUAL,sa.ReadWrite,ue.depthRangeFor3D):ue.depthModeForSublayer(0,sa.ReadOnly);mt.setDepthMode(ir),Ft.render(mt.gl,ue.transform.customLayerMatrix(),{farZ:ue.transform.farZ,nearZ:ue.transform.nearZ,fov:ue.transform._fov,modelViewProjectionMatrix:ue.transform.modelViewProjectionMatrix,projectionMatrix:ue.transform.projectionMatrix}),mt.setDirty(),ue.setBaseState(),mt.bindFramebuffer.set(null)}})(w,0,Q)}}translatePosMatrix(w,q,Q,ee,ue){if(!Q[0]&&!Q[1])return w;let Ge=ue?ee==="map"?this.transform.angle:0:ee==="viewport"?-this.transform.angle:0;if(Ge){let Ft=Math.sin(Ge),ir=Math.cos(Ge);Q=[Q[0]*ir-Q[1]*Ft,Q[0]*Ft+Q[1]*ir]}let et=[ue?Q[0]:Di(q,Q[0],this.transform.zoom),ue?Q[1]:Di(q,Q[1],this.transform.zoom),0],mt=new Float32Array(16);return a.J(mt,w,et),mt}saveTileTexture(w){let q=this._tileTextures[w.size[0]];q?q.push(w):this._tileTextures[w.size[0]]=[w]}getTileTexture(w){let q=this._tileTextures[w];return q&&q.length>0?q.pop():null}isPatternMissing(w){if(!w)return!1;if(!w.from||!w.to)return!0;let q=this.imageManager.getPattern(w.from.toString()),Q=this.imageManager.getPattern(w.to.toString());return!q||!Q}useProgram(w,q){this.cache=this.cache||{};let Q=w+(q?q.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[Q]||(this.cache[Q]=new Zr(this.context,Xr[w],q,Co[w],this._showOverdrawInspector,this.style.map.terrain)),this.cache[Q]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){let w=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(w.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new m(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){let{drawingBufferWidth:w,drawingBufferHeight:q}=this.context.gl;return this.width!==w||this.height!==q}}class ho{constructor(w,q){this.points=w,this.planes=q}static fromInvProjectionMatrix(w,q,Q){let ee=Math.pow(2,Q),ue=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(et=>{let mt=1/(et=a.af([],et,w))[3]/q*ee;return a.b1(et,et,[mt,mt,1/et[3],mt])}),Ge=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(et=>{let mt=function(kr,Vr){var he=Vr[0],Se=Vr[1],qe=Vr[2],He=he*he+Se*Se+qe*qe;return He>0&&(He=1/Math.sqrt(He)),kr[0]=Vr[0]*He,kr[1]=Vr[1]*He,kr[2]=Vr[2]*He,kr}([],function(kr,Vr,he){var Se=Vr[0],qe=Vr[1],He=Vr[2],lt=he[0],tt=he[1],pt=he[2];return kr[0]=qe*pt-He*tt,kr[1]=He*lt-Se*pt,kr[2]=Se*tt-qe*lt,kr}([],L([],ue[et[0]],ue[et[1]]),L([],ue[et[2]],ue[et[1]]))),Ft=-((ir=mt)[0]*(or=ue[et[1]])[0]+ir[1]*or[1]+ir[2]*or[2]);var ir,or;return mt.concat(Ft)});return new ho(ue,Ge)}}class gs{constructor(w,q){this.min=w,this.max=q,this.center=function(Q,ee,ue){return Q[0]=.5*ee[0],Q[1]=.5*ee[1],Q[2]=.5*ee[2],Q}([],function(Q,ee,ue){return Q[0]=ee[0]+ue[0],Q[1]=ee[1]+ue[1],Q[2]=ee[2]+ue[2],Q}([],this.min,this.max))}quadrant(w){let q=[w%2==0,w<2],Q=E(this.min),ee=E(this.max);for(let ue=0;ue=0&&Ge++;if(Ge===0)return 0;Ge!==q.length&&(Q=!1)}if(Q)return 2;for(let ee=0;ee<3;ee++){let ue=Number.MAX_VALUE,Ge=-Number.MAX_VALUE;for(let et=0;etthis.max[ee]-this.min[ee])return 0}return 1}}class Vo{constructor(w=0,q=0,Q=0,ee=0){if(isNaN(w)||w<0||isNaN(q)||q<0||isNaN(Q)||Q<0||isNaN(ee)||ee<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=w,this.bottom=q,this.left=Q,this.right=ee}interpolate(w,q,Q){return q.top!=null&&w.top!=null&&(this.top=a.y.number(w.top,q.top,Q)),q.bottom!=null&&w.bottom!=null&&(this.bottom=a.y.number(w.bottom,q.bottom,Q)),q.left!=null&&w.left!=null&&(this.left=a.y.number(w.left,q.left,Q)),q.right!=null&&w.right!=null&&(this.right=a.y.number(w.right,q.right,Q)),this}getCenter(w,q){let Q=a.ac((this.left+w-this.right)/2,0,w),ee=a.ac((this.top+q-this.bottom)/2,0,q);return new a.P(Q,ee)}equals(w){return this.top===w.top&&this.bottom===w.bottom&&this.left===w.left&&this.right===w.right}clone(){return new Vo(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}let Do=85.051129;class Lo{constructor(w,q,Q,ee,ue){this.tileSize=512,this._renderWorldCopies=ue===void 0||!!ue,this._minZoom=w||0,this._maxZoom=q||22,this._minPitch=Q==null?0:Q,this._maxPitch=ee==null?60:ee,this.setMaxBounds(),this.width=0,this.height=0,this._center=new a.N(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Vo,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={},this.minElevationForCurrentTile=0}clone(){let w=new Lo(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return w.apply(this),w}apply(w){this.tileSize=w.tileSize,this.latRange=w.latRange,this.lngRange=w.lngRange,this.width=w.width,this.height=w.height,this._center=w._center,this._elevation=w._elevation,this.minElevationForCurrentTile=w.minElevationForCurrentTile,this.zoom=w.zoom,this.angle=w.angle,this._fov=w._fov,this._pitch=w._pitch,this._unmodified=w._unmodified,this._edgeInsets=w._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(w){this._minZoom!==w&&(this._minZoom=w,this.zoom=Math.max(this.zoom,w))}get maxZoom(){return this._maxZoom}set maxZoom(w){this._maxZoom!==w&&(this._maxZoom=w,this.zoom=Math.min(this.zoom,w))}get minPitch(){return this._minPitch}set minPitch(w){this._minPitch!==w&&(this._minPitch=w,this.pitch=Math.max(this.pitch,w))}get maxPitch(){return this._maxPitch}set maxPitch(w){this._maxPitch!==w&&(this._maxPitch=w,this.pitch=Math.min(this.pitch,w))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(w){w===void 0?w=!0:w===null&&(w=!1),this._renderWorldCopies=w}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new a.P(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(w){let q=-a.b3(w,-180,180)*Math.PI/180;this.angle!==q&&(this._unmodified=!1,this.angle=q,this._calcMatrices(),this.rotationMatrix=function(){var Q=new a.A(4);return a.A!=Float32Array&&(Q[1]=0,Q[2]=0),Q[0]=1,Q[3]=1,Q}(),function(Q,ee,ue){var Ge=ee[0],et=ee[1],mt=ee[2],Ft=ee[3],ir=Math.sin(ue),or=Math.cos(ue);Q[0]=Ge*or+mt*ir,Q[1]=et*or+Ft*ir,Q[2]=Ge*-ir+mt*or,Q[3]=et*-ir+Ft*or}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(w){let q=a.ac(w,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==q&&(this._unmodified=!1,this._pitch=q,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(w){w=Math.max(.01,Math.min(60,w)),this._fov!==w&&(this._unmodified=!1,this._fov=w/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(w){let q=Math.min(Math.max(w,this.minZoom),this.maxZoom);this._zoom!==q&&(this._unmodified=!1,this._zoom=q,this.tileZoom=Math.max(0,Math.floor(q)),this.scale=this.zoomScale(q),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(w){w.lat===this._center.lat&&w.lng===this._center.lng||(this._unmodified=!1,this._center=w,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(w){w!==this._elevation&&(this._elevation=w,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(w){this._edgeInsets.equals(w)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,w,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(w){return this._edgeInsets.equals(w)}interpolatePadding(w,q,Q){this._unmodified=!1,this._edgeInsets.interpolate(w,q,Q),this._constrain(),this._calcMatrices()}coveringZoomLevel(w){let q=(w.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/w.tileSize));return Math.max(0,q)}getVisibleUnwrappedCoordinates(w){let q=[new a.b4(0,w)];if(this._renderWorldCopies){let Q=this.pointCoordinate(new a.P(0,0)),ee=this.pointCoordinate(new a.P(this.width,0)),ue=this.pointCoordinate(new a.P(this.width,this.height)),Ge=this.pointCoordinate(new a.P(0,this.height)),et=Math.floor(Math.min(Q.x,ee.x,ue.x,Ge.x)),mt=Math.floor(Math.max(Q.x,ee.x,ue.x,Ge.x)),Ft=1;for(let ir=et-Ft;ir<=mt+Ft;ir++)ir!==0&&q.push(new a.b4(ir,w))}return q}coveringTiles(w){var q,Q;let ee=this.coveringZoomLevel(w),ue=ee;if(w.minzoom!==void 0&&eew.maxzoom&&(ee=w.maxzoom);let Ge=this.pointCoordinate(this.getCameraPoint()),et=a.Z.fromLngLat(this.center),mt=Math.pow(2,ee),Ft=[mt*Ge.x,mt*Ge.y,0],ir=[mt*et.x,mt*et.y,0],or=ho.fromInvProjectionMatrix(this.invModelViewProjectionMatrix,this.worldSize,ee),kr=w.minzoom||0;!w.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(kr=ee);let Vr=w.terrain?2/Math.min(this.tileSize,w.tileSize)*this.tileSize:3,he=tt=>({aabb:new gs([tt*mt,0,0],[(tt+1)*mt,mt,0]),zoom:0,x:0,y:0,wrap:tt,fullyVisible:!1}),Se=[],qe=[],He=ee,lt=w.reparseOverscaled?ue:ee;if(this._renderWorldCopies)for(let tt=1;tt<=3;tt++)Se.push(he(-tt)),Se.push(he(tt));for(Se.push(he(0));Se.length>0;){let tt=Se.pop(),pt=tt.x,Ht=tt.y,nr=tt.fullyVisible;if(!nr){let si=tt.aabb.intersects(or);if(si===0)continue;nr=si===2}let fr=w.terrain?Ft:ir,Ar=tt.aabb.distanceX(fr),Rr=tt.aabb.distanceY(fr),ri=Math.max(Math.abs(Ar),Math.abs(Rr));if(tt.zoom===He||ri>Vr+(1<=kr){let si=He-tt.zoom,Mi=Ft[0]-.5-(pt<>1),Zn=tt.zoom+1,Yn=tt.aabb.quadrant(si);if(w.terrain){let Ua=new a.S(Zn,tt.wrap,Zn,Mi,hn),Fo=w.terrain.getMinMaxElevation(Ua),vl=(q=Fo.minElevation)!==null&&q!==void 0?q:this.elevation,Us=(Q=Fo.maxElevation)!==null&&Q!==void 0?Q:this.elevation;Yn=new gs([Yn.min[0],Yn.min[1],vl],[Yn.max[0],Yn.max[1],Us])}Se.push({aabb:Yn,zoom:Zn,x:Mi,y:hn,wrap:tt.wrap,fullyVisible:nr})}}return qe.sort((tt,pt)=>tt.distanceSq-pt.distanceSq).map(tt=>tt.tileID)}resize(w,q){this.width=w,this.height=q,this.pixelsToGLUnits=[2/w,-2/q],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(w){return Math.pow(2,w)}scaleZoom(w){return Math.log(w)/Math.LN2}project(w){let q=a.ac(w.lat,-85.051129,Do);return new a.P(a.O(w.lng)*this.worldSize,a.Q(q)*this.worldSize)}unproject(w){return new a.Z(w.x/this.worldSize,w.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){return{lngLat:this.pointLocation(this.getCameraPoint()),altitude:Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter+this.elevation}}recalculateZoom(w){let q=this.elevation,Q=Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter,ee=this.pointLocation(this.centerPoint,w),ue=w.getElevationForLngLatZoom(ee,this.tileZoom);if(!(this.elevation-ue))return;let Ge=Q+q-ue,et=Math.cos(this._pitch)*this.cameraToCenterDistance/Ge/a.b5(1,ee.lat),mt=this.scaleZoom(et/this.tileSize);this._elevation=ue,this._center=ee,this.zoom=mt}setLocationAtPoint(w,q){let Q=this.pointCoordinate(q),ee=this.pointCoordinate(this.centerPoint),ue=this.locationCoordinate(w),Ge=new a.Z(ue.x-(Q.x-ee.x),ue.y-(Q.y-ee.y));this.center=this.coordinateLocation(Ge),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(w,q){return q?this.coordinatePoint(this.locationCoordinate(w),q.getElevationForLngLatZoom(w,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(w))}pointLocation(w,q){return this.coordinateLocation(this.pointCoordinate(w,q))}locationCoordinate(w){return a.Z.fromLngLat(w)}coordinateLocation(w){return w&&w.toLngLat()}pointCoordinate(w,q){if(q){let kr=q.pointCoordinate(w);if(kr!=null)return kr}let Q=[w.x,w.y,0,1],ee=[w.x,w.y,1,1];a.af(Q,Q,this.pixelMatrixInverse),a.af(ee,ee,this.pixelMatrixInverse);let ue=Q[3],Ge=ee[3],et=Q[1]/ue,mt=ee[1]/Ge,Ft=Q[2]/ue,ir=ee[2]/Ge,or=Ft===ir?0:(0-Ft)/(ir-Ft);return new a.Z(a.y.number(Q[0]/ue,ee[0]/Ge,or)/this.worldSize,a.y.number(et,mt,or)/this.worldSize)}coordinatePoint(w,q=0,Q=this.pixelMatrix){let ee=[w.x*this.worldSize,w.y*this.worldSize,q,1];return a.af(ee,ee,Q),new a.P(ee[0]/ee[3],ee[1]/ee[3])}getBounds(){let w=Math.max(0,this.height/2-this.getHorizon());return new ce().extend(this.pointLocation(new a.P(0,w))).extend(this.pointLocation(new a.P(this.width,w))).extend(this.pointLocation(new a.P(this.width,this.height))).extend(this.pointLocation(new a.P(0,this.height)))}getMaxBounds(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new ce([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(w){w?(this.lngRange=[w.getWest(),w.getEast()],this.latRange=[w.getSouth(),w.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-85.051129,Do])}calculateTileMatrix(w){let q=w.canonical,Q=this.worldSize/this.zoomScale(q.z),ee=q.x+Math.pow(2,q.z)*w.wrap,ue=a.an(new Float64Array(16));return a.J(ue,ue,[ee*Q,q.y*Q,0]),a.K(ue,ue,[Q/a.X,Q/a.X,1]),ue}calculatePosMatrix(w,q=!1){let Q=w.key,ee=q?this._alignedPosMatrixCache:this._posMatrixCache;if(ee[Q])return ee[Q];let ue=this.calculateTileMatrix(w);return a.L(ue,q?this.alignedModelViewProjectionMatrix:this.modelViewProjectionMatrix,ue),ee[Q]=new Float32Array(ue),ee[Q]}calculateFogMatrix(w){let q=w.key,Q=this._fogMatrixCache;if(Q[q])return Q[q];let ee=this.calculateTileMatrix(w);return a.L(ee,this.fogMatrix,ee),Q[q]=new Float32Array(ee),Q[q]}customLayerMatrix(){return this.mercatorMatrix.slice()}getConstrained(w,q){q=a.ac(+q,this.minZoom,this.maxZoom);let Q={center:new a.N(w.lng,w.lat),zoom:q},ee=this.lngRange;if(!this._renderWorldCopies&&ee===null){let tt=179.9999999999;ee=[-tt,tt]}let ue=this.tileSize*this.zoomScale(Q.zoom),Ge=0,et=ue,mt=0,Ft=ue,ir=0,or=0,{x:kr,y:Vr}=this.size;if(this.latRange){let tt=this.latRange;Ge=a.Q(tt[1])*ue,et=a.Q(tt[0])*ue,et-Geet&&(He=et-tt)}if(ee){let tt=(mt+Ft)/2,pt=he;this._renderWorldCopies&&(pt=a.b3(he,tt-ue/2,tt+ue/2));let Ht=kr/2;pt-HtFt&&(qe=Ft-Ht)}if(qe!==void 0||He!==void 0){let tt=new a.P(qe!=null?qe:he,He!=null?He:Se);Q.center=this.unproject.call({worldSize:ue},tt).wrap()}return Q}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let w=this._unmodified,{center:q,zoom:Q}=this.getConstrained(this.center,this.zoom);this.center=q,this.zoom=Q,this._unmodified=w,this._constraining=!1}_calcMatrices(){if(!this.height)return;let w=this.centerOffset,q=this.point.x,Q=this.point.y;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height,this._pixelPerMeter=a.b5(1,this.center.lat)*this.worldSize;let ee=a.an(new Float64Array(16));a.K(ee,ee,[this.width/2,-this.height/2,1]),a.J(ee,ee,[1,-1,0]),this.labelPlaneMatrix=ee,ee=a.an(new Float64Array(16)),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[-1,-1,0]),a.K(ee,ee,[2/this.width,2/this.height,1]),this.glCoordMatrix=ee;let ue=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),Ge=Math.min(this.elevation,this.minElevationForCurrentTile),et=ue-Ge*this._pixelPerMeter/Math.cos(this._pitch),mt=Ge<0?et:ue,Ft=Math.PI/2+this._pitch,ir=this._fov*(.5+w.y/this.height),or=Math.sin(ir)*mt/Math.sin(a.ac(Math.PI-Ft-ir,.01,Math.PI-.01)),kr=this.getHorizon(),Vr=2*Math.atan(kr/this.cameraToCenterDistance)*(.5+w.y/(2*kr)),he=Math.sin(Vr)*mt/Math.sin(a.ac(Math.PI-Ft-Vr,.01,Math.PI-.01)),Se=Math.min(or,he);this.farZ=1.01*(Math.cos(Math.PI/2-this._pitch)*Se+mt),this.nearZ=this.height/50,ee=new Float64Array(16),a.b6(ee,this._fov,this.width/this.height,this.nearZ,this.farZ),ee[8]=2*-w.x/this.width,ee[9]=2*w.y/this.height,this.projectionMatrix=a.ae(ee),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[0,0,-this.cameraToCenterDistance]),a.b7(ee,ee,this._pitch),a.ad(ee,ee,this.angle),a.J(ee,ee,[-q,-Q,0]),this.mercatorMatrix=a.K([],ee,[this.worldSize,this.worldSize,this.worldSize]),a.K(ee,ee,[1,1,this._pixelPerMeter]),this.pixelMatrix=a.L(new Float64Array(16),this.labelPlaneMatrix,ee),a.J(ee,ee,[0,0,-this.elevation]),this.modelViewProjectionMatrix=ee,this.invModelViewProjectionMatrix=a.as([],ee),this.fogMatrix=new Float64Array(16),a.b6(this.fogMatrix,this._fov,this.width/this.height,ue,this.farZ),this.fogMatrix[8]=2*-w.x/this.width,this.fogMatrix[9]=2*w.y/this.height,a.K(this.fogMatrix,this.fogMatrix,[1,-1,1]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.cameraToCenterDistance]),a.b7(this.fogMatrix,this.fogMatrix,this._pitch),a.ad(this.fogMatrix,this.fogMatrix,this.angle),a.J(this.fogMatrix,this.fogMatrix,[-q,-Q,0]),a.K(this.fogMatrix,this.fogMatrix,[1,1,this._pixelPerMeter]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.elevation]),this.pixelMatrix3D=a.L(new Float64Array(16),this.labelPlaneMatrix,ee);let qe=this.width%2/2,He=this.height%2/2,lt=Math.cos(this.angle),tt=Math.sin(this.angle),pt=q-Math.round(q)+lt*qe+tt*He,Ht=Q-Math.round(Q)+lt*He+tt*qe,nr=new Float64Array(ee);if(a.J(nr,nr,[pt>.5?pt-1:pt,Ht>.5?Ht-1:Ht,0]),this.alignedModelViewProjectionMatrix=nr,ee=a.as(new Float64Array(16),this.pixelMatrix),!ee)throw new Error("failed to invert matrix");this.pixelMatrixInverse=ee,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;let w=this.pointCoordinate(new a.P(0,0)),q=[w.x*this.worldSize,w.y*this.worldSize,0,1];return a.af(q,q,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){let w=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.P(0,w))}getCameraQueryGeometry(w){let q=this.getCameraPoint();if(w.length===1)return[w[0],q];{let Q=q.x,ee=q.y,ue=q.x,Ge=q.y;for(let et of w)Q=Math.min(Q,et.x),ee=Math.min(ee,et.y),ue=Math.max(ue,et.x),Ge=Math.max(Ge,et.y);return[new a.P(Q,ee),new a.P(ue,ee),new a.P(ue,Ge),new a.P(Q,Ge),new a.P(Q,ee)]}}lngLatToCameraDepth(w,q){let Q=this.locationCoordinate(w),ee=[Q.x*this.worldSize,Q.y*this.worldSize,q,1];return a.af(ee,ee,this.modelViewProjectionMatrix),ee[2]/ee[3]}}function xs(le,w){let q,Q=!1,ee=null,ue=null,Ge=()=>{ee=null,Q&&(le.apply(ue,q),ee=setTimeout(Ge,w),Q=!1)};return(...et)=>(Q=!0,ue=this,q=et,ee||Ge(),ee)}class ks{constructor(w){this._getCurrentHash=()=>{let q=window.location.hash.replace("#","");if(this._hashName){let Q;return q.split("&").map(ee=>ee.split("=")).forEach(ee=>{ee[0]===this._hashName&&(Q=ee)}),(Q&&Q[1]||"").split("/")}return q.split("/")},this._onHashChange=()=>{let q=this._getCurrentHash();if(q.length>=3&&!q.some(Q=>isNaN(Q))){let Q=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(q[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+q[2],+q[1]],zoom:+q[0],bearing:Q,pitch:+(q[4]||0)}),!0}return!1},this._updateHashUnthrottled=()=>{let q=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,q)},this._removeHash=()=>{let q=this._getCurrentHash();if(q.length===0)return;let Q=q.join("/"),ee=Q;ee.split("&").length>0&&(ee=ee.split("&")[0]),this._hashName&&(ee=`${this._hashName}=${Q}`);let ue=window.location.hash.replace(ee,"");ue.startsWith("#&")?ue=ue.slice(0,1)+ue.slice(2):ue==="#"&&(ue="");let Ge=window.location.href.replace(/(#.+)?$/,ue);Ge=Ge.replace("&&","&"),window.history.replaceState(window.history.state,null,Ge)},this._updateHash=xs(this._updateHashUnthrottled,300),this._hashName=w&&encodeURIComponent(w)}addTo(w){return this._map=w,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(w){let q=this._map.getCenter(),Q=Math.round(100*this._map.getZoom())/100,ee=Math.ceil((Q*Math.LN2+Math.log(512/360/.5))/Math.LN10),ue=Math.pow(10,ee),Ge=Math.round(q.lng*ue)/ue,et=Math.round(q.lat*ue)/ue,mt=this._map.getBearing(),Ft=this._map.getPitch(),ir="";if(ir+=w?`/${Ge}/${et}/${Q}`:`${Q}/${et}/${Ge}`,(mt||Ft)&&(ir+="/"+Math.round(10*mt)/10),Ft&&(ir+=`/${Math.round(Ft)}`),this._hashName){let or=this._hashName,kr=!1,Vr=window.location.hash.slice(1).split("&").map(he=>{let Se=he.split("=")[0];return Se===or?(kr=!0,`${Se}=${ir}`):he}).filter(he=>he);return kr||Vr.push(`${or}=${ir}`),`#${Vr.join("&")}`}return`#${ir}`}}let Ea={linearity:.3,easing:a.b8(0,0,.3,1)},Jn=a.e({deceleration:2500,maxSpeed:1400},Ea),Oo=a.e({deceleration:20,maxSpeed:1400},Ea),rl=a.e({deceleration:1e3,maxSpeed:360},Ea),Gs=a.e({deceleration:1e3,maxSpeed:90},Ea);class bs{constructor(w){this._map=w,this.clear()}clear(){this._inertiaBuffer=[]}record(w){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:l.now(),settings:w})}_drainInertiaBuffer(){let w=this._inertiaBuffer,q=l.now();for(;w.length>0&&q-w[0].time>160;)w.shift()}_onMoveEnd(w){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;let q={zoom:0,bearing:0,pitch:0,pan:new a.P(0,0),pinchAround:void 0,around:void 0};for(let{settings:ue}of this._inertiaBuffer)q.zoom+=ue.zoomDelta||0,q.bearing+=ue.bearingDelta||0,q.pitch+=ue.pitchDelta||0,ue.panDelta&&q.pan._add(ue.panDelta),ue.around&&(q.around=ue.around),ue.pinchAround&&(q.pinchAround=ue.pinchAround);let Q=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,ee={};if(q.pan.mag()){let ue=$o(q.pan.mag(),Q,a.e({},Jn,w||{}));ee.offset=q.pan.mult(ue.amount/q.pan.mag()),ee.center=this._map.transform.center,zs(ee,ue)}if(q.zoom){let ue=$o(q.zoom,Q,Oo);ee.zoom=this._map.transform.zoom+ue.amount,zs(ee,ue)}if(q.bearing){let ue=$o(q.bearing,Q,rl);ee.bearing=this._map.transform.bearing+a.ac(ue.amount,-179,179),zs(ee,ue)}if(q.pitch){let ue=$o(q.pitch,Q,Gs);ee.pitch=this._map.transform.pitch+ue.amount,zs(ee,ue)}if(ee.zoom||ee.bearing){let ue=q.pinchAround===void 0?q.around:q.pinchAround;ee.around=ue?this._map.unproject(ue):this._map.getCenter()}return this.clear(),a.e(ee,{noMoveStart:!0})}}function zs(le,w){(!le.duration||le.durationq.unproject(mt)),et=ue.reduce((mt,Ft,ir,or)=>mt.add(Ft.div(or.length)),new a.P(0,0));super(w,{points:ue,point:et,lngLats:Ge,lngLat:q.unproject(et),originalEvent:Q}),this._defaultPrevented=!1}}class _l extends a.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(w,q,Q){super(w,{originalEvent:Q}),this._defaultPrevented=!1}}class Ss{constructor(w,q){this._map=w,this._clickTolerance=q.clickTolerance}reset(){delete this._mousedownPos}wheel(w){return this._firePreventable(new _l(w.type,this._map,w))}mousedown(w,q){return this._mousedownPos=q,this._firePreventable(new Aa(w.type,this._map,w))}mouseup(w){this._map.fire(new Aa(w.type,this._map,w))}click(w,q){this._mousedownPos&&this._mousedownPos.dist(q)>=this._clickTolerance||this._map.fire(new Aa(w.type,this._map,w))}dblclick(w){return this._firePreventable(new Aa(w.type,this._map,w))}mouseover(w){this._map.fire(new Aa(w.type,this._map,w))}mouseout(w){this._map.fire(new Aa(w.type,this._map,w))}touchstart(w){return this._firePreventable(new os(w.type,this._map,w))}touchmove(w){this._map.fire(new os(w.type,this._map,w))}touchend(w){this._map.fire(new os(w.type,this._map,w))}touchcancel(w){this._map.fire(new os(w.type,this._map,w))}_firePreventable(w){if(this._map.fire(w),w.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class po{constructor(w){this._map=w}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(w){this._map.fire(new Aa(w.type,this._map,w))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Aa("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(w){this._delayContextMenu?this._contextMenuEvent=w:this._ignoreContextMenu||this._map.fire(new Aa(w.type,this._map,w)),this._map.listens("contextmenu")&&w.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class go{constructor(w){this._map=w}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(w){return this.transform.pointLocation(a.P.convert(w),this._map.terrain)}}class ss{constructor(w,q){this._map=w,this._tr=new go(w),this._el=w.getCanvasContainer(),this._container=w.getContainer(),this._clickTolerance=q.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(w,q){this.isEnabled()&&w.shiftKey&&w.button===0&&(f.disableDrag(),this._startPos=this._lastPos=q,this._active=!0)}mousemoveWindow(w,q){if(!this._active)return;let Q=q;if(this._lastPos.equals(Q)||!this._box&&Q.dist(this._startPos)ue.fitScreenCoordinates(Q,ee,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",w)}keydown(w){this._active&&w.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",w))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(f.remove(this._box),this._box=null),f.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(w,q){return this._map.fire(new a.k(w,{originalEvent:q}))}}function qo(le,w){if(le.length!==w.length)throw new Error(`The number of touches and points are not equal - touches ${le.length}, points ${w.length}`);let q={};for(let Q=0;Qthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=w.timeStamp),Q.length===this.numTouches&&(this.centroid=function(ee){let ue=new a.P(0,0);for(let Ge of ee)ue._add(Ge);return ue.div(ee.length)}(q),this.touches=qo(Q,q)))}touchmove(w,q,Q){if(this.aborted||!this.centroid)return;let ee=qo(Q,q);for(let ue in this.touches){let Ge=ee[ue];(!Ge||Ge.dist(this.touches[ue])>30)&&(this.aborted=!0)}}touchend(w,q,Q){if((!this.centroid||w.timeStamp-this.startTime>500)&&(this.aborted=!0),Q.length===0){let ee=!this.aborted&&this.centroid;if(this.reset(),ee)return ee}}}class io{constructor(w){this.singleTap=new zo(w),this.numTaps=w.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(w,q,Q){this.singleTap.touchstart(w,q,Q)}touchmove(w,q,Q){this.singleTap.touchmove(w,q,Q)}touchend(w,q,Q){let ee=this.singleTap.touchend(w,q,Q);if(ee){let ue=w.timeStamp-this.lastTime<500,Ge=!this.lastTap||this.lastTap.dist(ee)<30;if(ue&&Ge||this.reset(),this.count++,this.lastTime=w.timeStamp,this.lastTap=ee,this.count===this.numTaps)return this.reset(),ee}}}class Io{constructor(w){this._tr=new go(w),this._zoomIn=new io({numTouches:1,numTaps:2}),this._zoomOut=new io({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(w,q,Q){this._zoomIn.touchstart(w,q,Q),this._zoomOut.touchstart(w,q,Q)}touchmove(w,q,Q){this._zoomIn.touchmove(w,q,Q),this._zoomOut.touchmove(w,q,Q)}touchend(w,q,Q){let ee=this._zoomIn.touchend(w,q,Q),ue=this._zoomOut.touchend(w,q,Q),Ge=this._tr;return ee?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:et=>et.easeTo({duration:300,zoom:Ge.zoom+1,around:Ge.unproject(ee)},{originalEvent:w})}):ue?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:et=>et.easeTo({duration:300,zoom:Ge.zoom-1,around:Ge.unproject(ue)},{originalEvent:w})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Da{constructor(w){this._enabled=!!w.enable,this._moveStateManager=w.moveStateManager,this._clickTolerance=w.clickTolerance||1,this._moveFunction=w.move,this._activateOnStart=!!w.activateOnStart,w.assignEvents(this),this.reset()}reset(w){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(w)}_move(...w){let q=this._moveFunction(...w);if(q.bearingDelta||q.pitchDelta||q.around||q.panDelta)return this._active=!0,q}dragStart(w,q){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(w)&&(this._moveStateManager.startMove(w),this._lastPoint=q.length?q[0]:q,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(w,q){if(!this.isEnabled())return;let Q=this._lastPoint;if(!Q)return;if(w.preventDefault(),!this._moveStateManager.isValidMoveEvent(w))return void this.reset(w);let ee=q.length?q[0]:q;return!this._moved&&ee.dist(Q){le.mousedown=le.dragStart,le.mousemoveWindow=le.dragMove,le.mouseup=le.dragEnd,le.contextmenu=w=>{w.preventDefault()}},Hs=({enable:le,clickTolerance:w,bearingDegreesPerPixelMoved:q=.8})=>{let Q=new fs({checkCorrectEvent:ee=>f.mouseButton(ee)===0&&ee.ctrlKey||f.mouseButton(ee)===2});return new Da({clickTolerance:w,move:(ee,ue)=>({bearingDelta:(ue.x-ee.x)*q}),moveStateManager:Q,enable:le,assignEvents:el})},Ro=({enable:le,clickTolerance:w,pitchDegreesPerPixelMoved:q=-.5})=>{let Q=new fs({checkCorrectEvent:ee=>f.mouseButton(ee)===0&&ee.ctrlKey||f.mouseButton(ee)===2});return new Da({clickTolerance:w,move:(ee,ue)=>({pitchDelta:(ue.y-ee.y)*q}),moveStateManager:Q,enable:le,assignEvents:el})};class tl{constructor(w,q){this._clickTolerance=w.clickTolerance||1,this._map=q,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new a.P(0,0)}_shouldBePrevented(w){return w<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(w,q,Q){return this._calculateTransform(w,q,Q)}touchmove(w,q,Q){if(this._active){if(!this._shouldBePrevented(Q.length))return w.preventDefault(),this._calculateTransform(w,q,Q);this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",w)}}touchend(w,q,Q){this._calculateTransform(w,q,Q),this._active&&this._shouldBePrevented(Q.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(w,q,Q){Q.length>0&&(this._active=!0);let ee=qo(Q,q),ue=new a.P(0,0),Ge=new a.P(0,0),et=0;for(let Ft in ee){let ir=ee[Ft],or=this._touches[Ft];or&&(ue._add(ir),Ge._add(ir.sub(or)),et++,ee[Ft]=ir)}if(this._touches=ee,this._shouldBePrevented(et)||!Ge.mag())return;let mt=Ge.div(et);return this._sum._add(mt),this._sum.mag()Math.abs(le.x)}class Bs extends Fs{constructor(w){super(),this._currentTouchCount=0,this._map=w}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(w,q,Q){super.touchstart(w,q,Q),this._currentTouchCount=Q.length}_start(w){this._lastPoints=w,Is(w[0].sub(w[1]))&&(this._valid=!1)}_move(w,q,Q){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;let ee=w[0].sub(this._lastPoints[0]),ue=w[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(ee,ue,Q.timeStamp),this._valid?(this._lastPoints=w,this._active=!0,{pitchDelta:(ee.y+ue.y)/2*-.5}):void 0}gestureBeginsVertically(w,q,Q){if(this._valid!==void 0)return this._valid;let ee=w.mag()>=2,ue=q.mag()>=2;if(!ee&&!ue)return;if(!ee||!ue)return this._firstMove===void 0&&(this._firstMove=Q),Q-this._firstMove<100&&void 0;let Ge=w.y>0==q.y>0;return Is(w)&&Is(q)&&Ge}}let At={panStep:100,bearingStep:15,pitchStep:10};class Gt{constructor(w){this._tr=new go(w);let q=At;this._panStep=q.panStep,this._bearingStep=q.bearingStep,this._pitchStep=q.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(w){if(w.altKey||w.ctrlKey||w.metaKey)return;let q=0,Q=0,ee=0,ue=0,Ge=0;switch(w.keyCode){case 61:case 107:case 171:case 187:q=1;break;case 189:case 109:case 173:q=-1;break;case 37:w.shiftKey?Q=-1:(w.preventDefault(),ue=-1);break;case 39:w.shiftKey?Q=1:(w.preventDefault(),ue=1);break;case 38:w.shiftKey?ee=1:(w.preventDefault(),Ge=-1);break;case 40:w.shiftKey?ee=-1:(w.preventDefault(),Ge=1);break;default:return}return this._rotationDisabled&&(Q=0,ee=0),{cameraAnimation:et=>{let mt=this._tr;et.easeTo({duration:300,easeId:"keyboardHandler",easing:wr,zoom:q?Math.round(mt.zoom)+q*(w.shiftKey?2:1):mt.zoom,bearing:mt.bearing+Q*this._bearingStep,pitch:mt.pitch+ee*this._pitchStep,offset:[-ue*this._panStep,-Ge*this._panStep],center:mt.center},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function wr(le){return le*(2-le)}let mr=4.000244140625;class Or{constructor(w,q){this._onTimeout=Q=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(Q)},this._map=w,this._tr=new go(w),this._triggerRenderFrame=q,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(w){this._defaultZoomRate=w}setWheelZoomRate(w){this._wheelZoomRate=w}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(w){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!w&&w.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(w){return!!this._map.cooperativeGestures.isEnabled()&&!(w.ctrlKey||this._map.cooperativeGestures.isBypassed(w))}wheel(w){if(!this.isEnabled())return;if(this._shouldBePrevented(w))return void this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",w);let q=w.deltaMode===WheelEvent.DOM_DELTA_LINE?40*w.deltaY:w.deltaY,Q=l.now(),ee=Q-(this._lastWheelEventTime||0);this._lastWheelEventTime=Q,q!==0&&q%mr==0?this._type="wheel":q!==0&&Math.abs(q)<4?this._type="trackpad":ee>400?(this._type=null,this._lastValue=q,this._timeout=setTimeout(this._onTimeout,40,w)):this._type||(this._type=Math.abs(ee*q)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,q+=this._lastValue)),w.shiftKey&&q&&(q/=4),this._type&&(this._lastWheelEvent=w,this._delta-=q,this._active||this._start(w)),w.preventDefault()}_start(w){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let q=f.mousePos(this._map.getCanvas(),w),Q=this._tr;this._around=q.y>Q.transform.height/2-Q.transform.getHorizon()?a.N.convert(this._aroundCenter?Q.center:Q.unproject(q)):a.N.convert(Q.center),this._aroundPoint=Q.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;let w=this._tr.transform;if(this._delta!==0){let mt=this._type==="wheel"&&Math.abs(this._delta)>mr?this._wheelZoomRate:this._defaultZoomRate,Ft=2/(1+Math.exp(-Math.abs(this._delta*mt)));this._delta<0&&Ft!==0&&(Ft=1/Ft);let ir=typeof this._targetZoom=="number"?w.zoomScale(this._targetZoom):w.scale;this._targetZoom=Math.min(w.maxZoom,Math.max(w.minZoom,w.scaleZoom(ir*Ft))),this._type==="wheel"&&(this._startZoom=w.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let q=typeof this._targetZoom=="number"?this._targetZoom:w.zoom,Q=this._startZoom,ee=this._easing,ue,Ge=!1,et=l.now()-this._lastWheelEventTime;if(this._type==="wheel"&&Q&&ee&&et){let mt=Math.min(et/200,1),Ft=ee(mt);ue=a.y.number(Q,q,Ft),mt<1?this._frameId||(this._frameId=!0):Ge=!0}else ue=q,Ge=!0;return this._active=!0,Ge&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Ge,zoomDelta:ue-w.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(w){let q=a.b9;if(this._prevEase){let Q=this._prevEase,ee=(l.now()-Q.start)/Q.duration,ue=Q.easing(ee+.01)-Q.easing(ee),Ge=.27/Math.sqrt(ue*ue+1e-4)*.01,et=Math.sqrt(.0729-Ge*Ge);q=a.b8(Ge,et,.25,1)}return this._prevEase={start:l.now(),duration:w,easing:q},q}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class gi{constructor(w,q){this._clickZoom=w,this._tapZoom=q}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Ti{constructor(w){this._tr=new go(w),this.reset()}reset(){this._active=!1}dblclick(w,q){return w.preventDefault(),{cameraAnimation:Q=>{Q.easeTo({duration:300,zoom:this._tr.zoom+(w.shiftKey?-1:1),around:this._tr.unproject(q)},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class ki{constructor(){this._tap=new io({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(w,q,Q){if(!this._swipePoint)if(this._tapTime){let ee=q[0],ue=w.timeStamp-this._tapTime<500,Ge=this._tapPoint.dist(ee)<30;ue&&Ge?Q.length>0&&(this._swipePoint=ee,this._swipeTouch=Q[0].identifier):this.reset()}else this._tap.touchstart(w,q,Q)}touchmove(w,q,Q){if(this._tapTime){if(this._swipePoint){if(Q[0].identifier!==this._swipeTouch)return;let ee=q[0],ue=ee.y-this._swipePoint.y;return this._swipePoint=ee,w.preventDefault(),this._active=!0,{zoomDelta:ue/128}}}else this._tap.touchmove(w,q,Q)}touchend(w,q,Q){if(this._tapTime)this._swipePoint&&Q.length===0&&this.reset();else{let ee=this._tap.touchend(w,q,Q);ee&&(this._tapTime=w.timeStamp,this._tapPoint=ee)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Ji{constructor(w,q,Q){this._el=w,this._mousePan=q,this._touchPan=Q}enable(w){this._inertiaOptions=w||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Fn{constructor(w,q,Q){this._pitchWithRotate=w.pitchWithRotate,this._mouseRotate=q,this._mousePitch=Q}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Pi{constructor(w,q,Q,ee){this._el=w,this._touchZoom=q,this._touchRotate=Q,this._tapDragZoom=ee,this._rotationDisabled=!1,this._enabled=!0}enable(w){this._touchZoom.enable(w),this._rotationDisabled||this._touchRotate.enable(w),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}class hi{constructor(w,q){this._bypassKey=navigator.userAgent.indexOf("Mac")!==-1?"metaKey":"ctrlKey",this._map=w,this._options=q,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let w=this._map.getCanvasContainer();w.classList.add("maplibregl-cooperative-gestures"),this._container=f.create("div","maplibregl-cooperative-gesture-screen",w);let q=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(q=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let Q=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),ee=document.createElement("div");ee.className="maplibregl-desktop-message",ee.textContent=q,this._container.appendChild(ee);let ue=document.createElement("div");ue.className="maplibregl-mobile-message",ue.textContent=Q,this._container.appendChild(ue),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(f.remove(this._container),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(w){return w[this._bypassKey]}notifyGestureBlocked(w,q){this._enabled&&(this._map.fire(new a.k("cooperativegestureprevented",{gestureType:w,originalEvent:q})),this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}}let Li=le=>le.zoom||le.drag||le.pitch||le.rotate;class Si extends a.k{}function Gn(le){return le.panDelta&&le.panDelta.mag()||le.zoomDelta||le.bearingDelta||le.pitchDelta}class ta{constructor(w,q){this.handleWindowEvent=ee=>{this.handleEvent(ee,`${ee.type}Window`)},this.handleEvent=(ee,ue)=>{if(ee.type==="blur")return void this.stop(!0);this._updatingCamera=!0;let Ge=ee.type==="renderFrame"?void 0:ee,et={needsRenderFrame:!1},mt={},Ft={},ir=ee.touches,or=ir?this._getMapTouches(ir):void 0,kr=or?f.touchPos(this._map.getCanvas(),or):f.mousePos(this._map.getCanvas(),ee);for(let{handlerName:Se,handler:qe,allowed:He}of this._handlers){if(!qe.isEnabled())continue;let lt;this._blockedByActive(Ft,He,Se)?qe.reset():qe[ue||ee.type]&&(lt=qe[ue||ee.type](ee,kr,or),this.mergeHandlerResult(et,mt,lt,Se,Ge),lt&<.needsRenderFrame&&this._triggerRenderFrame()),(lt||qe.isActive())&&(Ft[Se]=qe)}let Vr={};for(let Se in this._previousActiveHandlers)Ft[Se]||(Vr[Se]=Ge);this._previousActiveHandlers=Ft,(Object.keys(Vr).length||Gn(et))&&(this._changes.push([et,mt,Vr]),this._triggerRenderFrame()),(Object.keys(Ft).length||Gn(et))&&this._map._stop(!0),this._updatingCamera=!1;let{cameraAnimation:he}=et;he&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],he(this._map))},this._map=w,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new bs(w),this._bearingSnap=q.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(q);let Q=this._el;this._listeners=[[Q,"touchstart",{passive:!0}],[Q,"touchmove",{passive:!1}],[Q,"touchend",void 0],[Q,"touchcancel",void 0],[Q,"mousedown",void 0],[Q,"mousemove",void 0],[Q,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[Q,"mouseover",void 0],[Q,"mouseout",void 0],[Q,"dblclick",void 0],[Q,"click",void 0],[Q,"keydown",{capture:!1}],[Q,"keyup",void 0],[Q,"wheel",{passive:!1}],[Q,"contextmenu",void 0],[window,"blur",void 0]];for(let[ee,ue,Ge]of this._listeners)f.addEventListener(ee,ue,ee===document?this.handleWindowEvent:this.handleEvent,Ge)}destroy(){for(let[w,q,Q]of this._listeners)f.removeEventListener(w,q,w===document?this.handleWindowEvent:this.handleEvent,Q)}_addDefaultHandlers(w){let q=this._map,Q=q.getCanvasContainer();this._add("mapEvent",new Ss(q,w));let ee=q.boxZoom=new ss(q,w);this._add("boxZoom",ee),w.interactive&&w.boxZoom&&ee.enable();let ue=q.cooperativeGestures=new hi(q,w.cooperativeGestures);this._add("cooperativeGestures",ue),w.cooperativeGestures&&ue.enable();let Ge=new Io(q),et=new Ti(q);q.doubleClickZoom=new gi(et,Ge),this._add("tapZoom",Ge),this._add("clickZoom",et),w.interactive&&w.doubleClickZoom&&q.doubleClickZoom.enable();let mt=new ki;this._add("tapDragZoom",mt);let Ft=q.touchPitch=new Bs(q);this._add("touchPitch",Ft),w.interactive&&w.touchPitch&&q.touchPitch.enable(w.touchPitch);let ir=Hs(w),or=Ro(w);q.dragRotate=new Fn(w,ir,or),this._add("mouseRotate",ir,["mousePitch"]),this._add("mousePitch",or,["mouseRotate"]),w.interactive&&w.dragRotate&&q.dragRotate.enable();let kr=(({enable:lt,clickTolerance:tt})=>{let pt=new fs({checkCorrectEvent:Ht=>f.mouseButton(Ht)===0&&!Ht.ctrlKey});return new Da({clickTolerance:tt,move:(Ht,nr)=>({around:nr,panDelta:nr.sub(Ht)}),activateOnStart:!0,moveStateManager:pt,enable:lt,assignEvents:el})})(w),Vr=new tl(w,q);q.dragPan=new Ji(Q,kr,Vr),this._add("mousePan",kr),this._add("touchPan",Vr,["touchZoom","touchRotate"]),w.interactive&&w.dragPan&&q.dragPan.enable(w.dragPan);let he=new Rs,Se=new Ms;q.touchZoomRotate=new Pi(Q,Se,he,mt),this._add("touchRotate",he,["touchPan","touchZoom"]),this._add("touchZoom",Se,["touchPan","touchRotate"]),w.interactive&&w.touchZoomRotate&&q.touchZoomRotate.enable(w.touchZoomRotate);let qe=q.scrollZoom=new Or(q,()=>this._triggerRenderFrame());this._add("scrollZoom",qe,["mousePan"]),w.interactive&&w.scrollZoom&&q.scrollZoom.enable(w.scrollZoom);let He=q.keyboard=new Gt(q);this._add("keyboard",He),w.interactive&&w.keyboard&&q.keyboard.enable(),this._add("blockableMapEvent",new po(q))}_add(w,q,Q){this._handlers.push({handlerName:w,handler:q,allowed:Q}),this._handlersById[w]=q}stop(w){if(!this._updatingCamera){for(let{handler:q}of this._handlers)q.reset();this._inertia.clear(),this._fireEvents({},{},w),this._changes=[]}}isActive(){for(let{handler:w}of this._handlers)if(w.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!Li(this._eventsInProgress)||this.isZooming()}_blockedByActive(w,q,Q){for(let ee in w)if(ee!==Q&&(!q||q.indexOf(ee)<0))return!0;return!1}_getMapTouches(w){let q=[];for(let Q of w)this._el.contains(Q.target)&&q.push(Q);return q}mergeHandlerResult(w,q,Q,ee,ue){if(!Q)return;a.e(w,Q);let Ge={handlerName:ee,originalEvent:Q.originalEvent||ue};Q.zoomDelta!==void 0&&(q.zoom=Ge),Q.panDelta!==void 0&&(q.drag=Ge),Q.pitchDelta!==void 0&&(q.pitch=Ge),Q.bearingDelta!==void 0&&(q.rotate=Ge)}_applyChanges(){let w={},q={},Q={};for(let[ee,ue,Ge]of this._changes)ee.panDelta&&(w.panDelta=(w.panDelta||new a.P(0,0))._add(ee.panDelta)),ee.zoomDelta&&(w.zoomDelta=(w.zoomDelta||0)+ee.zoomDelta),ee.bearingDelta&&(w.bearingDelta=(w.bearingDelta||0)+ee.bearingDelta),ee.pitchDelta&&(w.pitchDelta=(w.pitchDelta||0)+ee.pitchDelta),ee.around!==void 0&&(w.around=ee.around),ee.pinchAround!==void 0&&(w.pinchAround=ee.pinchAround),ee.noInertia&&(w.noInertia=ee.noInertia),a.e(q,ue),a.e(Q,Ge);this._updateMapTransform(w,q,Q),this._changes=[]}_updateMapTransform(w,q,Q){let ee=this._map,ue=ee._getTransformForUpdate(),Ge=ee.terrain;if(!(Gn(w)||Ge&&this._terrainMovement))return this._fireEvents(q,Q,!0);let{panDelta:et,zoomDelta:mt,bearingDelta:Ft,pitchDelta:ir,around:or,pinchAround:kr}=w;kr!==void 0&&(or=kr),ee._stop(!0),or=or||ee.transform.centerPoint;let Vr=ue.pointLocation(et?or.sub(et):or);Ft&&(ue.bearing+=Ft),ir&&(ue.pitch+=ir),mt&&(ue.zoom+=mt),Ge?this._terrainMovement||!q.drag&&!q.zoom?q.drag&&this._terrainMovement?ue.center=ue.pointLocation(ue.centerPoint.sub(et)):ue.setLocationAtPoint(Vr,or):(this._terrainMovement=!0,this._map._elevationFreeze=!0,ue.setLocationAtPoint(Vr,or)):ue.setLocationAtPoint(Vr,or),ee._applyUpdatedTransform(ue),this._map._update(),w.noInertia||this._inertia.record(w),this._fireEvents(q,Q,!0)}_fireEvents(w,q,Q){let ee=Li(this._eventsInProgress),ue=Li(w),Ge={};for(let or in w){let{originalEvent:kr}=w[or];this._eventsInProgress[or]||(Ge[`${or}start`]=kr),this._eventsInProgress[or]=w[or]}!ee&&ue&&this._fireEvent("movestart",ue.originalEvent);for(let or in Ge)this._fireEvent(or,Ge[or]);ue&&this._fireEvent("move",ue.originalEvent);for(let or in w){let{originalEvent:kr}=w[or];this._fireEvent(or,kr)}let et={},mt;for(let or in this._eventsInProgress){let{handlerName:kr,originalEvent:Vr}=this._eventsInProgress[or];this._handlersById[kr].isActive()||(delete this._eventsInProgress[or],mt=q[kr]||Vr,et[`${or}end`]=mt)}for(let or in et)this._fireEvent(or,et[or]);let Ft=Li(this._eventsInProgress),ir=(ee||ue)&&!Ft;if(ir&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;let or=this._map._getTransformForUpdate();or.recalculateZoom(this._map.terrain),this._map._applyUpdatedTransform(or)}if(Q&&ir){this._updatingCamera=!0;let or=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),kr=Vr=>Vr!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new Si("renderFrame",{timeStamp:w})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}class ya extends a.E{constructor(w,q){super(),this._renderFrameCallback=()=>{let Q=Math.min((l.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(Q)),Q<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=w,this._bearingSnap=q.bearingSnap,this.on("moveend",()=>{delete this._requestedCameraState})}getCenter(){return new a.N(this.transform.center.lng,this.transform.center.lat)}setCenter(w,q){return this.jumpTo({center:w},q)}panBy(w,q,Q){return w=a.P.convert(w).mult(-1),this.panTo(this.transform.center,a.e({offset:w},q),Q)}panTo(w,q,Q){return this.easeTo(a.e({center:w},q),Q)}getZoom(){return this.transform.zoom}setZoom(w,q){return this.jumpTo({zoom:w},q),this}zoomTo(w,q,Q){return this.easeTo(a.e({zoom:w},q),Q)}zoomIn(w,q){return this.zoomTo(this.getZoom()+1,w,q),this}zoomOut(w,q){return this.zoomTo(this.getZoom()-1,w,q),this}getBearing(){return this.transform.bearing}setBearing(w,q){return this.jumpTo({bearing:w},q),this}getPadding(){return this.transform.padding}setPadding(w,q){return this.jumpTo({padding:w},q),this}rotateTo(w,q,Q){return this.easeTo(a.e({bearing:w},q),Q)}resetNorth(w,q){return this.rotateTo(0,a.e({duration:1e3},w),q),this}resetNorthPitch(w,q){return this.easeTo(a.e({bearing:0,pitch:0,duration:1e3},w),q),this}snapToNorth(w,q){return Math.abs(this.getBearing()){if(this._zooming&&(ee.zoom=a.y.number(ue,qe,fr)),this._rotating&&(ee.bearing=a.y.number(Ge,Ft,fr)),this._pitching&&(ee.pitch=a.y.number(et,ir,fr)),this._padding&&(ee.interpolatePadding(mt,or,fr),Vr=ee.centerPoint.add(kr)),this.terrain&&!w.freezeElevation&&this._updateElevation(fr),pt)ee.setLocationAtPoint(pt,Ht);else{let Ar=ee.zoomScale(ee.zoom-ue),Rr=qe>ue?Math.min(2,tt):Math.max(.5,tt),ri=Math.pow(Rr,1-fr),si=ee.unproject(He.add(lt.mult(fr*ri)).mult(Ar));ee.setLocationAtPoint(ee.renderWorldCopies?si.wrap():si,Vr)}this._applyUpdatedTransform(ee),this._fireMoveEvents(q)},fr=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(q,fr)},w),this}_prepareEase(w,q,Q={}){this._moving=!0,q||Q.moving||this.fire(new a.k("movestart",w)),this._zooming&&!Q.zooming&&this.fire(new a.k("zoomstart",w)),this._rotating&&!Q.rotating&&this.fire(new a.k("rotatestart",w)),this._pitching&&!Q.pitching&&this.fire(new a.k("pitchstart",w))}_prepareElevation(w){this._elevationCenter=w,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(w,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(w){this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);let q=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(w<1&&q!==this._elevationTarget){let Q=this._elevationTarget-this._elevationStart;this._elevationStart+=w*(Q-(q-(Q*w+this._elevationStart))/(1-w)),this._elevationTarget=q}this.transform.elevation=a.y.number(this._elevationStart,this._elevationTarget,w)}_finalizeElevation(){this._elevationFreeze=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate||this.terrain?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_elevateCameraIfInsideTerrain(w){let q=w.getCameraPosition(),Q=this.terrain.getElevationForLngLatZoom(q.lngLat,w.zoom);if(q.altitudethis._elevateCameraIfInsideTerrain(ee)),this.transformCameraUpdate&&q.push(ee=>this.transformCameraUpdate(ee)),!q.length)return;let Q=w.clone();for(let ee of q){let ue=Q.clone(),{center:Ge,zoom:et,pitch:mt,bearing:Ft,elevation:ir}=ee(ue);Ge&&(ue.center=Ge),et!==void 0&&(ue.zoom=et),mt!==void 0&&(ue.pitch=mt),Ft!==void 0&&(ue.bearing=Ft),ir!==void 0&&(ue.elevation=ir),Q.apply(ue)}this.transform.apply(Q)}_fireMoveEvents(w){this.fire(new a.k("move",w)),this._zooming&&this.fire(new a.k("zoom",w)),this._rotating&&this.fire(new a.k("rotate",w)),this._pitching&&this.fire(new a.k("pitch",w))}_afterEase(w,q){if(this._easeId&&q&&this._easeId===q)return;delete this._easeId;let Q=this._zooming,ee=this._rotating,ue=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Q&&this.fire(new a.k("zoomend",w)),ee&&this.fire(new a.k("rotateend",w)),ue&&this.fire(new a.k("pitchend",w)),this.fire(new a.k("moveend",w))}flyTo(w,q){var Q;if(!w.essential&&l.prefersReducedMotion){let Ua=a.M(w,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Ua,q)}this.stop(),w=a.e({offset:[0,0],speed:1.2,curve:1.42,easing:a.b9},w);let ee=this._getTransformForUpdate(),ue=ee.zoom,Ge=ee.bearing,et=ee.pitch,mt=ee.padding,Ft="bearing"in w?this._normalizeBearing(w.bearing,Ge):Ge,ir="pitch"in w?+w.pitch:et,or="padding"in w?w.padding:ee.padding,kr=a.P.convert(w.offset),Vr=ee.centerPoint.add(kr),he=ee.pointLocation(Vr),{center:Se,zoom:qe}=ee.getConstrained(a.N.convert(w.center||he),(Q=w.zoom)!==null&&Q!==void 0?Q:ue);this._normalizeCenter(Se,ee);let He=ee.zoomScale(qe-ue),lt=ee.project(he),tt=ee.project(Se).sub(lt),pt=w.curve,Ht=Math.max(ee.width,ee.height),nr=Ht/He,fr=tt.mag();if("minZoom"in w){let Ua=a.ac(Math.min(w.minZoom,ue,qe),ee.minZoom,ee.maxZoom),Fo=Ht/ee.zoomScale(Ua-ue);pt=Math.sqrt(Fo/fr*2)}let Ar=pt*pt;function Rr(Ua){let Fo=(nr*nr-Ht*Ht+(Ua?-1:1)*Ar*Ar*fr*fr)/(2*(Ua?nr:Ht)*Ar*fr);return Math.log(Math.sqrt(Fo*Fo+1)-Fo)}function ri(Ua){return(Math.exp(Ua)-Math.exp(-Ua))/2}function si(Ua){return(Math.exp(Ua)+Math.exp(-Ua))/2}let Mi=Rr(!1),hn=function(Ua){return si(Mi)/si(Mi+pt*Ua)},Zn=function(Ua){return Ht*((si(Mi)*(ri(Fo=Mi+pt*Ua)/si(Fo))-ri(Mi))/Ar)/fr;var Fo},Yn=(Rr(!0)-Mi)/pt;if(Math.abs(fr)<1e-6||!isFinite(Yn)){if(Math.abs(Ht-nr)<1e-6)return this.easeTo(w,q);let Ua=nr0,hn=Fo=>Math.exp(Ua*pt*Fo)}return w.duration="duration"in w?+w.duration:1e3*Yn/("screenSpeed"in w?+w.screenSpeed/pt:+w.speed),w.maxDuration&&w.duration>w.maxDuration&&(w.duration=0),this._zooming=!0,this._rotating=Ge!==Ft,this._pitching=ir!==et,this._padding=!ee.isPaddingEqual(or),this._prepareEase(q,!1),this.terrain&&this._prepareElevation(Se),this._ease(Ua=>{let Fo=Ua*Yn,vl=1/hn(Fo);ee.zoom=Ua===1?qe:ue+ee.scaleZoom(vl),this._rotating&&(ee.bearing=a.y.number(Ge,Ft,Ua)),this._pitching&&(ee.pitch=a.y.number(et,ir,Ua)),this._padding&&(ee.interpolatePadding(mt,or,Ua),Vr=ee.centerPoint.add(kr)),this.terrain&&!w.freezeElevation&&this._updateElevation(Ua);let Us=Ua===1?Se:ee.unproject(lt.add(tt.mult(Zn(Fo))).mult(vl));ee.setLocationAtPoint(ee.renderWorldCopies?Us.wrap():Us,Vr),this._applyUpdatedTransform(ee),this._fireMoveEvents(q)},()=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(q)},w),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(w,q){var Q;if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let ee=this._onEaseEnd;delete this._onEaseEnd,ee.call(this,q)}return w||(Q=this.handlers)===null||Q===void 0||Q.stop(!1),this}_ease(w,q,Q){Q.animate===!1||Q.duration===0?(w(1),q()):(this._easeStart=l.now(),this._easeOptions=Q,this._onEaseFrame=w,this._onEaseEnd=q,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(w,q){w=a.b3(w,-180,180);let Q=Math.abs(w-q);return Math.abs(w-360-q)180?-360:Q<-180?360:0}queryTerrainElevation(w){return this.terrain?this.terrain.getElevationForLngLatZoom(a.N.convert(w),this.transform.tileZoom)-this.transform.elevation:null}}let ia={compact:!0,customAttribution:'
MapLibre'};class pa{constructor(w=ia){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=q=>{!q||q.sourceDataType!=="metadata"&&q.sourceDataType!=="visibility"&&q.dataType!=="style"&&q.type!=="terrain"||this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=w}getDefaultPosition(){return"bottom-right"}onAdd(w){return this._map=w,this._compact=this.options.compact,this._container=f.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=f.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=f.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){f.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(w,q){let Q=this._map._getUIString(`AttributionControl.${q}`);w.title=Q,w.setAttribute("aria-label",Q)}_updateAttributions(){if(!this._map.style)return;let w=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?w=w.concat(this.options.customAttribution.map(ee=>typeof ee!="string"?"":ee)):typeof this.options.customAttribution=="string"&&w.push(this.options.customAttribution)),this._map.style.stylesheet){let ee=this._map.style.stylesheet;this.styleOwner=ee.owner,this.styleId=ee.id}let q=this._map.style.sourceCaches;for(let ee in q){let ue=q[ee];if(ue.used||ue.usedForTerrain){let Ge=ue.getSource();Ge.attribution&&w.indexOf(Ge.attribution)<0&&w.push(Ge.attribution)}}w=w.filter(ee=>String(ee).trim()),w.sort((ee,ue)=>ee.length-ue.length),w=w.filter((ee,ue)=>{for(let Ge=ue+1;Ge=0)return!1;return!0});let Q=w.join(" | ");Q!==this._attribHTML&&(this._attribHTML=Q,w.length?(this._innerContainer.innerHTML=Q,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class va{constructor(w={}){this._updateCompact=()=>{let q=this._container.children;if(q.length){let Q=q[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&Q.classList.add("maplibregl-compact"):Q.classList.remove("maplibregl-compact")}},this.options=w}getDefaultPosition(){return"bottom-left"}onAdd(w){this._map=w,this._compact=this.options&&this.options.compact,this._container=f.create("div","maplibregl-ctrl");let q=f.create("a","maplibregl-ctrl-logo");return q.target="_blank",q.rel="noopener nofollow",q.href="https://maplibre.org/",q.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),q.setAttribute("rel","noopener nofollow"),this._container.appendChild(q),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){f.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class zn{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(w){let q=++this._id;return this._queue.push({callback:w,id:q,cancelled:!1}),q}remove(w){let q=this._currentlyRunning,Q=q?this._queue.concat(q):this._queue;for(let ee of Q)if(ee.id===w)return void(ee.cancelled=!0)}run(w=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");let q=this._currentlyRunning=this._queue;this._queue=[];for(let Q of q)if(!Q.cancelled&&(Q.callback(w),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}var is=a.Y([{name:"a_pos3d",type:"Int16",components:3}]);class Cs extends a.E{constructor(w){super(),this.sourceCache=w,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,w.usedForTerrain=!0,w.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(w,q){this.sourceCache.update(w,q),this._renderableTilesKeys=[];let Q={};for(let ee of w.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:q}))Q[ee.key]=!0,this._renderableTilesKeys.push(ee.key),this._tiles[ee.key]||(ee.posMatrix=new Float64Array(16),a.aP(ee.posMatrix,0,a.X,0,a.X,0,1),this._tiles[ee.key]=new vt(ee,this.tileSize));for(let ee in this._tiles)Q[ee]||delete this._tiles[ee]}freeRtt(w){for(let q in this._tiles){let Q=this._tiles[q];(!w||Q.tileID.equals(w)||Q.tileID.isChildOf(w)||w.isChildOf(Q.tileID))&&(Q.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map(w=>this.getTileByID(w))}getTileByID(w){return this._tiles[w]}getTerrainCoords(w){let q={};for(let Q of this._renderableTilesKeys){let ee=this._tiles[Q].tileID;if(ee.canonical.equals(w.canonical)){let ue=w.clone();ue.posMatrix=new Float64Array(16),a.aP(ue.posMatrix,0,a.X,0,a.X,0,1),q[Q]=ue}else if(ee.canonical.isChildOf(w.canonical)){let ue=w.clone();ue.posMatrix=new Float64Array(16);let Ge=ee.canonical.z-w.canonical.z,et=ee.canonical.x-(ee.canonical.x>>Ge<>Ge<>Ge;a.aP(ue.posMatrix,0,Ft,0,Ft,0,1),a.J(ue.posMatrix,ue.posMatrix,[-et*Ft,-mt*Ft,0]),q[Q]=ue}else if(w.canonical.isChildOf(ee.canonical)){let ue=w.clone();ue.posMatrix=new Float64Array(16);let Ge=w.canonical.z-ee.canonical.z,et=w.canonical.x-(w.canonical.x>>Ge<>Ge<>Ge;a.aP(ue.posMatrix,0,a.X,0,a.X,0,1),a.J(ue.posMatrix,ue.posMatrix,[et*Ft,mt*Ft,0]),a.K(ue.posMatrix,ue.posMatrix,[1/2**Ge,1/2**Ge,0]),q[Q]=ue}}return q}getSourceTile(w,q){let Q=this.sourceCache._source,ee=w.overscaledZ-this.deltaZoom;if(ee>Q.maxzoom&&(ee=Q.maxzoom),ee=Q.minzoom&&(!ue||!ue.dem);)ue=this.sourceCache.getTileByID(w.scaledTo(ee--).key);return ue}tilesAfterTime(w=Date.now()){return Object.values(this._tiles).filter(q=>q.timeAdded>=w)}}class Ks{constructor(w,q,Q){this.painter=w,this.sourceCache=new Cs(q),this.options=Q,this.exaggeration=typeof Q.exaggeration=="number"?Q.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(w,q,Q,ee=a.X){var ue;if(!(q>=0&&q=0&&Qw.canonical.z&&(w.canonical.z>=ee?ue=w.canonical.z-ee:a.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));let Ge=w.canonical.x-(w.canonical.x>>ue<>ue<>8<<4|ue>>8,q[Ge+3]=0;let Q=new a.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(q.buffer)),ee=new m(w,Q,w.gl.RGBA,{premultiply:!1});return ee.bind(w.gl.NEAREST,w.gl.CLAMP_TO_EDGE),this._coordsTexture=ee,ee}pointCoordinate(w){this.painter.maybeDrawDepthAndCoords(!0);let q=new Uint8Array(4),Q=this.painter.context,ee=Q.gl,ue=Math.round(w.x*this.painter.pixelRatio/devicePixelRatio),Ge=Math.round(w.y*this.painter.pixelRatio/devicePixelRatio),et=Math.round(this.painter.height/devicePixelRatio);Q.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),ee.readPixels(ue,et-Ge-1,1,1,ee.RGBA,ee.UNSIGNED_BYTE,q),Q.bindFramebuffer.set(null);let mt=q[0]+(q[2]>>4<<8),Ft=q[1]+((15&q[2])<<8),ir=this.coordsIndex[255-q[3]],or=ir&&this.sourceCache.getTileByID(ir);if(!or)return null;let kr=this._coordsTextureSize,Vr=(1<w.id!==q),this._recentlyUsed.push(w.id)}stampObject(w){w.stamp=++this._stamp}getOrCreateFreeObject(){for(let q of this._recentlyUsed)if(!this._objects[q].inUse)return this._objects[q];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");let w=this._createObject(this._objects.length);return this._objects.push(w),w}freeObject(w){w.inUse=!1}freeAllObjects(){for(let w of this._objects)this.freeObject(w)}isFull(){return!(this._objects.length!w.inUse)===!1}}let xl={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class Ol{constructor(w,q){this.painter=w,this.terrain=q,this.pool=new dl(w.context,30,q.sourceCache.tileSize*q.qualityFactor)}destruct(){this.pool.destruct()}getTexture(w){return this.pool.getObjectForId(w.rtt[this._stacks.length-1].id).texture}prepareForRender(w,q){this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=w._order.filter(Q=>!w._layers[Q].isHidden(q)),this._coordsDescendingInv={};for(let Q in w.sourceCaches){this._coordsDescendingInv[Q]={};let ee=w.sourceCaches[Q].getVisibleCoordinates();for(let ue of ee){let Ge=this.terrain.sourceCache.getTerrainCoords(ue);for(let et in Ge)this._coordsDescendingInv[Q][et]||(this._coordsDescendingInv[Q][et]=[]),this._coordsDescendingInv[Q][et].push(Ge[et])}}this._coordsDescendingInvStr={};for(let Q of w._order){let ee=w._layers[Q],ue=ee.source;if(xl[ee.type]&&!this._coordsDescendingInvStr[ue]){this._coordsDescendingInvStr[ue]={};for(let Ge in this._coordsDescendingInv[ue])this._coordsDescendingInvStr[ue][Ge]=this._coordsDescendingInv[ue][Ge].map(et=>et.key).sort().join()}}for(let Q of this._renderableTiles)for(let ee in this._coordsDescendingInvStr){let ue=this._coordsDescendingInvStr[ee][Q.tileID.key];ue&&ue!==Q.rttCoords[ee]&&(Q.rtt=[])}}renderLayer(w){if(w.isHidden(this.painter.transform.zoom))return!1;let q=w.type,Q=this.painter,ee=this._renderableLayerIds[this._renderableLayerIds.length-1]===w.id;if(xl[q]&&(this._prevType&&xl[this._prevType]||this._stacks.push([]),this._prevType=q,this._stacks[this._stacks.length-1].push(w.id),!ee))return!0;if(xl[this._prevType]||xl[q]&&ee){this._prevType=q;let ue=this._stacks.length-1,Ge=this._stacks[ue]||[];for(let et of this._renderableTiles){if(this.pool.isFull()&&(as(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(et),et.rtt[ue]){let Ft=this.pool.getObjectForId(et.rtt[ue].id);if(Ft.stamp===et.rtt[ue].stamp){this.pool.useObject(Ft);continue}}let mt=this.pool.getOrCreateFreeObject();this.pool.useObject(mt),this.pool.stampObject(mt),et.rtt[ue]={id:mt.id,stamp:mt.stamp},Q.context.bindFramebuffer.set(mt.fbo.framebuffer),Q.context.clear({color:a.aM.transparent,stencil:0}),Q.currentStencilSource=void 0;for(let Ft=0;Ft{le.touchstart=le.dragStart,le.touchmoveWindow=le.dragMove,le.touchend=le.dragEnd},ja={showCompass:!0,showZoom:!0,visualizePitch:!1};class ns{constructor(w,q,Q=!1){this.mousedown=Ge=>{this.startMouse(a.e({},Ge,{ctrlKey:!0,preventDefault:()=>Ge.preventDefault()}),f.mousePos(this.element,Ge)),f.addEventListener(window,"mousemove",this.mousemove),f.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=Ge=>{this.moveMouse(Ge,f.mousePos(this.element,Ge))},this.mouseup=Ge=>{this.mouseRotate.dragEnd(Ge),this.mousePitch&&this.mousePitch.dragEnd(Ge),this.offTemp()},this.touchstart=Ge=>{Ge.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=f.touchPos(this.element,Ge.targetTouches)[0],this.startTouch(Ge,this._startPos),f.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),f.addEventListener(window,"touchend",this.touchend))},this.touchmove=Ge=>{Ge.targetTouches.length!==1?this.reset():(this._lastPos=f.touchPos(this.element,Ge.targetTouches)[0],this.moveTouch(Ge,this._lastPos))},this.touchend=Ge=>{Ge.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),this.touchRotate.reset(),this.touchPitch&&this.touchPitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10;let ee=w.dragRotate._mouseRotate.getClickTolerance(),ue=w.dragRotate._mousePitch.getClickTolerance();this.element=q,this.mouseRotate=Hs({clickTolerance:ee,enable:!0}),this.touchRotate=(({enable:Ge,clickTolerance:et,bearingDegreesPerPixelMoved:mt=.8})=>{let Ft=new cl;return new Da({clickTolerance:et,move:(ir,or)=>({bearingDelta:(or.x-ir.x)*mt}),moveStateManager:Ft,enable:Ge,assignEvents:Vl})})({clickTolerance:ee,enable:!0}),this.map=w,Q&&(this.mousePitch=Ro({clickTolerance:ue,enable:!0}),this.touchPitch=(({enable:Ge,clickTolerance:et,pitchDegreesPerPixelMoved:mt=-.5})=>{let Ft=new cl;return new Da({clickTolerance:et,move:(ir,or)=>({pitchDelta:(or.y-ir.y)*mt}),moveStateManager:Ft,enable:Ge,assignEvents:Vl})})({clickTolerance:ue,enable:!0})),f.addEventListener(q,"mousedown",this.mousedown),f.addEventListener(q,"touchstart",this.touchstart,{passive:!1}),f.addEventListener(q,"touchcancel",this.reset)}startMouse(w,q){this.mouseRotate.dragStart(w,q),this.mousePitch&&this.mousePitch.dragStart(w,q),f.disableDrag()}startTouch(w,q){this.touchRotate.dragStart(w,q),this.touchPitch&&this.touchPitch.dragStart(w,q),f.disableDrag()}moveMouse(w,q){let Q=this.map,{bearingDelta:ee}=this.mouseRotate.dragMove(w,q)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.mousePitch){let{pitchDelta:ue}=this.mousePitch.dragMove(w,q)||{};ue&&Q.setPitch(Q.getPitch()+ue)}}moveTouch(w,q){let Q=this.map,{bearingDelta:ee}=this.touchRotate.dragMove(w,q)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.touchPitch){let{pitchDelta:ue}=this.touchPitch.dragMove(w,q)||{};ue&&Q.setPitch(Q.getPitch()+ue)}}off(){let w=this.element;f.removeEventListener(w,"mousedown",this.mousedown),f.removeEventListener(w,"touchstart",this.touchstart,{passive:!1}),f.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),f.removeEventListener(window,"touchend",this.touchend),f.removeEventListener(w,"touchcancel",this.reset),this.offTemp()}offTemp(){f.enableDrag(),f.removeEventListener(window,"mousemove",this.mousemove),f.removeEventListener(window,"mouseup",this.mouseup),f.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),f.removeEventListener(window,"touchend",this.touchend)}}let Js;function cs(le,w,q){let Q=new a.N(le.lng,le.lat);if(le=new a.N(le.lng,le.lat),w){let ee=new a.N(le.lng-360,le.lat),ue=new a.N(le.lng+360,le.lat),Ge=q.locationPoint(le).distSqr(w);q.locationPoint(ee).distSqr(w)180;){let ee=q.locationPoint(le);if(ee.x>=0&&ee.y>=0&&ee.x<=q.width&&ee.y<=q.height)break;le.lng>q.center.lng?le.lng-=360:le.lng+=360}return le.lng!==Q.lng&&q.locationPoint(le).y>q.height/2-q.getHorizon()?le:Q}let sl={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function ll(le,w,q){let Q=le.classList;for(let ee in sl)Q.remove(`maplibregl-${q}-anchor-${ee}`);Q.add(`maplibregl-${q}-anchor-${w}`)}class il extends a.E{constructor(w){if(super(),this._onKeyPress=q=>{let Q=q.code,ee=q.charCode||q.keyCode;Q!=="Space"&&Q!=="Enter"&&ee!==32&&ee!==13||this.togglePopup()},this._onMapClick=q=>{let Q=q.originalEvent.target,ee=this._element;this._popup&&(Q===ee||ee.contains(Q))&&this.togglePopup()},this._update=q=>{var Q;if(!this._map)return;let ee=this._map.loaded()&&!this._map.isMoving();((q==null?void 0:q.type)==="terrain"||(q==null?void 0:q.type)==="render"&&!ee)&&this._map.once("render",this._update),this._lngLat=this._map.transform.renderWorldCopies?cs(this._lngLat,this._flatPos,this._map.transform):(Q=this._lngLat)===null||Q===void 0?void 0:Q.wrap(),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map.transform.locationPoint(this._lngLat)._add(this._offset));let ue="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?ue=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(ue=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let Ge="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?Ge="rotateX(0deg)":this._pitchAlignment==="map"&&(Ge=`rotateX(${this._map.getPitch()}deg)`),this._subpixelPositioning||q&&q.type!=="moveend"||(this._pos=this._pos.round()),f.setTransform(this._element,`${sl[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${Ge} ${ue}`),l.frameAsync(new AbortController).then(()=>{this._updateOpacity(q&&q.type==="moveend")}).catch(()=>{})},this._onMove=q=>{if(!this._isDragging){let Q=this._clickTolerance||this._map._clickTolerance;this._isDragging=q.point.dist(this._pointerdownPos)>=Q}this._isDragging&&(this._pos=q.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new a.k("dragstart"))),this.fire(new a.k("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new a.k("dragend")),this._state="inactive"},this._addDragHandler=q=>{this._element.contains(q.originalEvent.target)&&(q.preventDefault(),this._positionDelta=q.point.sub(this._pos).add(this._offset),this._pointerdownPos=q.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},this._anchor=w&&w.anchor||"center",this._color=w&&w.color||"#3FB1CE",this._scale=w&&w.scale||1,this._draggable=w&&w.draggable||!1,this._clickTolerance=w&&w.clickTolerance||0,this._subpixelPositioning=w&&w.subpixelPositioning||!1,this._isDragging=!1,this._state="inactive",this._rotation=w&&w.rotation||0,this._rotationAlignment=w&&w.rotationAlignment||"auto",this._pitchAlignment=w&&w.pitchAlignment&&w.pitchAlignment!=="auto"?w.pitchAlignment:this._rotationAlignment,this.setOpacity(),this.setOpacity(w==null?void 0:w.opacity,w==null?void 0:w.opacityWhenCovered),w&&w.element)this._element=w.element,this._offset=a.P.convert(w&&w.offset||[0,0]);else{this._defaultMarker=!0,this._element=f.create("div");let q=f.createNS("http://www.w3.org/2000/svg","svg"),Q=41,ee=27;q.setAttributeNS(null,"display","block"),q.setAttributeNS(null,"height",`${Q}px`),q.setAttributeNS(null,"width",`${ee}px`),q.setAttributeNS(null,"viewBox",`0 0 ${ee} ${Q}`);let ue=f.createNS("http://www.w3.org/2000/svg","g");ue.setAttributeNS(null,"stroke","none"),ue.setAttributeNS(null,"stroke-width","1"),ue.setAttributeNS(null,"fill","none"),ue.setAttributeNS(null,"fill-rule","evenodd");let Ge=f.createNS("http://www.w3.org/2000/svg","g");Ge.setAttributeNS(null,"fill-rule","nonzero");let et=f.createNS("http://www.w3.org/2000/svg","g");et.setAttributeNS(null,"transform","translate(3.0, 29.0)"),et.setAttributeNS(null,"fill","#000000");let mt=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(let He of mt){let lt=f.createNS("http://www.w3.org/2000/svg","ellipse");lt.setAttributeNS(null,"opacity","0.04"),lt.setAttributeNS(null,"cx","10.5"),lt.setAttributeNS(null,"cy","5.80029008"),lt.setAttributeNS(null,"rx",He.rx),lt.setAttributeNS(null,"ry",He.ry),et.appendChild(lt)}let Ft=f.createNS("http://www.w3.org/2000/svg","g");Ft.setAttributeNS(null,"fill",this._color);let ir=f.createNS("http://www.w3.org/2000/svg","path");ir.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),Ft.appendChild(ir);let or=f.createNS("http://www.w3.org/2000/svg","g");or.setAttributeNS(null,"opacity","0.25"),or.setAttributeNS(null,"fill","#000000");let kr=f.createNS("http://www.w3.org/2000/svg","path");kr.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),or.appendChild(kr);let Vr=f.createNS("http://www.w3.org/2000/svg","g");Vr.setAttributeNS(null,"transform","translate(6.0, 7.0)"),Vr.setAttributeNS(null,"fill","#FFFFFF");let he=f.createNS("http://www.w3.org/2000/svg","g");he.setAttributeNS(null,"transform","translate(8.0, 8.0)");let Se=f.createNS("http://www.w3.org/2000/svg","circle");Se.setAttributeNS(null,"fill","#000000"),Se.setAttributeNS(null,"opacity","0.25"),Se.setAttributeNS(null,"cx","5.5"),Se.setAttributeNS(null,"cy","5.5"),Se.setAttributeNS(null,"r","5.4999962");let qe=f.createNS("http://www.w3.org/2000/svg","circle");qe.setAttributeNS(null,"fill","#FFFFFF"),qe.setAttributeNS(null,"cx","5.5"),qe.setAttributeNS(null,"cy","5.5"),qe.setAttributeNS(null,"r","5.4999962"),he.appendChild(Se),he.appendChild(qe),Ge.appendChild(et),Ge.appendChild(Ft),Ge.appendChild(or),Ge.appendChild(Vr),Ge.appendChild(he),q.appendChild(Ge),q.setAttributeNS(null,"height",Q*this._scale+"px"),q.setAttributeNS(null,"width",ee*this._scale+"px"),this._element.appendChild(q),this._offset=a.P.convert(w&&w.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",q=>{q.preventDefault()}),this._element.addEventListener("mousedown",q=>{q.preventDefault()}),ll(this._element,this._anchor,"marker"),w&&w.className)for(let q of w.className.split(" "))this._element.classList.add(q);this._popup=null}addTo(w){return this.remove(),this._map=w,this._element.setAttribute("aria-label",w._getUIString("Marker.Title")),w.getCanvasContainer().appendChild(this._element),w.on("move",this._update),w.on("moveend",this._update),w.on("terrain",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),f.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(w){return this._lngLat=a.N.convert(w),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(w){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),w){if(!("offset"in w.options)){let ee=Math.abs(13.5)/Math.SQRT2;w.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[ee,-1*(38.1-13.5+ee)],"bottom-right":[-ee,-1*(38.1-13.5+ee)],left:[13.5,-1*(38.1-13.5)],right:[-13.5,-1*(38.1-13.5)]}:this._offset}this._popup=w,this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}setSubpixelPositioning(w){return this._subpixelPositioning=w,this}getPopup(){return this._popup}togglePopup(){let w=this._popup;return this._element.style.opacity===this._opacityWhenCovered?this:w?(w.isOpen()?w.remove():(w.setLngLat(this._lngLat),w.addTo(this._map)),this):this}_updateOpacity(w=!1){var q,Q;if(!(!((q=this._map)===null||q===void 0)&&q.terrain))return void(this._element.style.opacity!==this._opacity&&(this._element.style.opacity=this._opacity));if(w)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout(()=>{this._opacityTimeout=null},100)}let ee=this._map,ue=ee.terrain.depthAtPoint(this._pos),Ge=ee.terrain.getElevationForLngLatZoom(this._lngLat,ee.transform.tileZoom);if(ee.transform.lngLatToCameraDepth(this._lngLat,Ge)-ue<.006)return void(this._element.style.opacity=this._opacity);let et=-this._offset.y/ee.transform._pixelPerMeter,mt=Math.sin(ee.getPitch()*Math.PI/180)*et,Ft=ee.terrain.depthAtPoint(new a.P(this._pos.x,this._pos.y-this._offset.y)),ir=ee.transform.lngLatToCameraDepth(this._lngLat,Ge+mt)-Ft>.006;!((Q=this._popup)===null||Q===void 0)&&Q.isOpen()&&ir&&this._popup.remove(),this._element.style.opacity=ir?this._opacityWhenCovered:this._opacity}getOffset(){return this._offset}setOffset(w){return this._offset=a.P.convert(w),this._update(),this}addClassName(w){this._element.classList.add(w)}removeClassName(w){this._element.classList.remove(w)}toggleClassName(w){return this._element.classList.toggle(w)}setDraggable(w){return this._draggable=!!w,this._map&&(w?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(w){return this._rotation=w||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(w){return this._rotationAlignment=w||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(w){return this._pitchAlignment=w&&w!=="auto"?w:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(w,q){return w===void 0&&q===void 0&&(this._opacity="1",this._opacityWhenCovered="0.2"),w!==void 0&&(this._opacity=w),q!==void 0&&(this._opacityWhenCovered=q),this._map&&this._updateOpacity(!0),this}}let zl={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Ml=0,Rl=!1,Al={maxWidth:100,unit:"metric"};function Ll(le,w,q){let Q=q&&q.maxWidth||100,ee=le._container.clientHeight/2,ue=le.unproject([0,ee]),Ge=le.unproject([Q,ee]),et=ue.distanceTo(Ge);if(q&&q.unit==="imperial"){let mt=3.2808*et;mt>5280?ms(w,Q,mt/5280,le._getUIString("ScaleControl.Miles")):ms(w,Q,mt,le._getUIString("ScaleControl.Feet"))}else q&&q.unit==="nautical"?ms(w,Q,et/1852,le._getUIString("ScaleControl.NauticalMiles")):et>=1e3?ms(w,Q,et/1e3,le._getUIString("ScaleControl.Kilometers")):ms(w,Q,et,le._getUIString("ScaleControl.Meters"))}function ms(le,w,q,Q){let ee=function(ue){let Ge=Math.pow(10,`${Math.floor(ue)}`.length-1),et=ue/Ge;return et=et>=10?10:et>=5?5:et>=3?3:et>=2?2:et>=1?1:function(mt){let Ft=Math.pow(10,Math.ceil(-Math.log(mt)/Math.LN10));return Math.round(mt*Ft)/Ft}(et),Ge*et}(q);le.style.width=w*(ee/q)+"px",le.innerHTML=`${ee} ${Q}`}let Os={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1},Xl=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function Gl(le){if(le){if(typeof le=="number"){let w=Math.round(Math.abs(le)/Math.SQRT2);return{center:new a.P(0,0),top:new a.P(0,le),"top-left":new a.P(w,w),"top-right":new a.P(-w,w),bottom:new a.P(0,-le),"bottom-left":new a.P(w,-w),"bottom-right":new a.P(-w,-w),left:new a.P(le,0),right:new a.P(-le,0)}}if(le instanceof a.P||Array.isArray(le)){let w=a.P.convert(le);return{center:w,top:w,"top-left":w,"top-right":w,bottom:w,"bottom-left":w,"bottom-right":w,left:w,right:w}}return{center:a.P.convert(le.center||[0,0]),top:a.P.convert(le.top||[0,0]),"top-left":a.P.convert(le["top-left"]||[0,0]),"top-right":a.P.convert(le["top-right"]||[0,0]),bottom:a.P.convert(le.bottom||[0,0]),"bottom-left":a.P.convert(le["bottom-left"]||[0,0]),"bottom-right":a.P.convert(le["bottom-right"]||[0,0]),left:a.P.convert(le.left||[0,0]),right:a.P.convert(le.right||[0,0])}}return Gl(new a.P(0,0))}let Ul=o;i.AJAXError=a.bh,i.Evented=a.E,i.LngLat=a.N,i.MercatorCoordinate=a.Z,i.Point=a.P,i.addProtocol=a.bi,i.config=a.a,i.removeProtocol=a.bj,i.AttributionControl=pa,i.BoxZoomHandler=ss,i.CanvasSource=St,i.CooperativeGesturesHandler=hi,i.DoubleClickZoomHandler=gi,i.DragPanHandler=Ji,i.DragRotateHandler=Fn,i.EdgeInsets=Vo,i.FullscreenControl=class extends a.E{constructor(le={}){super(),this._onFullscreenChange=()=>{var w;let q=window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement;for(;!((w=q==null?void 0:q.shadowRoot)===null||w===void 0)&&w.fullscreenElement;)q=q.shadowRoot.fullscreenElement;q===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,le&&le.container&&(le.container instanceof HTMLElement?this._container=le.container:a.w("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(le){return this._map=le,this._container||(this._container=this._map.getContainer()),this._controlContainer=f.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){f.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let le=this._fullscreenButton=f.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);f.create("span","maplibregl-ctrl-icon",le).setAttribute("aria-hidden","true"),le.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let le=this._getTitle();this._fullscreenButton.setAttribute("aria-label",le),this._fullscreenButton.title=le}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new a.k("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new a.k("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},i.GeoJSONSource=it,i.GeolocateControl=class extends a.E{constructor(le){super(),this._onSuccess=w=>{if(this._map){if(this._isOutOfMapMaxBounds(w))return this._setErrorState(),this.fire(new a.k("outofmaxbounds",w)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=w,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(w),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(w),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new a.k("geolocate",w)),this._finish()}},this._updateCamera=w=>{let q=new a.N(w.coords.longitude,w.coords.latitude),Q=w.coords.accuracy,ee=this._map.getBearing(),ue=a.e({bearing:ee},this.options.fitBoundsOptions),Ge=ce.fromLngLat(q,Q);this._map.fitBounds(Ge,ue,{geolocateSource:!0})},this._updateMarker=w=>{if(w){let q=new a.N(w.coords.longitude,w.coords.latitude);this._accuracyCircleMarker.setLngLat(q).addTo(this._map),this._userLocationDotMarker.setLngLat(q).addTo(this._map),this._accuracy=w.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onZoom=()=>{this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},this._onError=w=>{if(this._map){if(this.options.trackUserLocation)if(w.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let q=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=q,this._geolocateButton.setAttribute("aria-label",q),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(w.code===3&&Rl)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new a.k("error",w)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",w=>w.preventDefault()),this._geolocateButton=f.create("button","maplibregl-ctrl-geolocate",this._container),f.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=w=>{if(this._map){if(w===!1){a.w("Geolocation support is not available so the GeolocateControl will be disabled.");let q=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=q,this._geolocateButton.setAttribute("aria-label",q)}else{let q=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=q,this._geolocateButton.setAttribute("aria-label",q)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=f.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new il({element:this._dotElement}),this._circleElement=f.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new il({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",q=>{q.geolocateSource||this._watchState!=="ACTIVE_LOCK"||q.originalEvent&&q.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new a.k("trackuserlocationend")),this.fire(new a.k("userlocationlostfocus")))})}},this.options=a.e({},zl,le)}onAdd(le){return this._map=le,this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),function(){return a._(this,arguments,void 0,function*(w=!1){if(Js!==void 0&&!w)return Js;if(window.navigator.permissions===void 0)return Js=!!window.navigator.geolocation,Js;try{Js=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch(q){Js=!!window.navigator.geolocation}return Js})}().then(w=>this._finishSetupUI(w)),this._container}onRemove(){this._geolocationWatchID!==void 0&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),f.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Ml=0,Rl=!1}_isOutOfMapMaxBounds(le){let w=this._map.getMaxBounds(),q=le.coords;return w&&(q.longitudew.getEast()||q.latitudew.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadius(){let le=this._map.getBounds(),w=le.getSouthEast(),q=le.getNorthEast(),Q=w.distanceTo(q),ee=Math.ceil(this._accuracy/(Q/this._map._container.clientHeight)*2);this._circleElement.style.width=`${ee}px`,this._circleElement.style.height=`${ee}px`}trigger(){if(!this._setup)return a.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new a.k("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Ml--,Rl=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new a.k("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new a.k("trackuserlocationstart")),this.fire(new a.k("userlocationfocus"));break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let le;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Ml++,Ml>1?(le={maximumAge:6e5,timeout:0},Rl=!0):(le=this.options.positionOptions,Rl=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,le)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},i.Hash=ks,i.ImageSource=kt,i.KeyboardHandler=Gt,i.LngLatBounds=ce,i.LogoControl=va,i.Map=class extends ya{constructor(le){a.bf.mark(a.bg.create);let w=Object.assign(Object.assign({},Zl),le);if(w.minZoom!=null&&w.maxZoom!=null&&w.minZoom>w.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(w.minPitch!=null&&w.maxPitch!=null&&w.minPitch>w.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(w.minPitch!=null&&w.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(w.maxPitch!=null&&w.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new Lo(w.minZoom,w.maxZoom,w.minPitch,w.maxPitch,w.renderWorldCopies),{bearingSnap:w.bearingSnap}),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new zn,this._controls=[],this._mapId=a.a4(),this._contextLost=q=>{q.preventDefault(),this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this.fire(new a.k("webglcontextlost",{originalEvent:q}))},this._contextRestored=q=>{this._setupPainter(),this.resize(),this._update(),this.fire(new a.k("webglcontextrestored",{originalEvent:q}))},this._onMapScroll=q=>{if(q.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=w.interactive,this._maxTileCacheSize=w.maxTileCacheSize,this._maxTileCacheZoomLevels=w.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=w.failIfMajorPerformanceCaveat===!0,this._preserveDrawingBuffer=w.preserveDrawingBuffer===!0,this._antialias=w.antialias===!0,this._trackResize=w.trackResize===!0,this._bearingSnap=w.bearingSnap,this._refreshExpiredTiles=w.refreshExpiredTiles===!0,this._fadeDuration=w.fadeDuration,this._crossSourceCollisions=w.crossSourceCollisions===!0,this._collectResourceTiming=w.collectResourceTiming===!0,this._locale=Object.assign(Object.assign({},bl),w.locale),this._clickTolerance=w.clickTolerance,this._overridePixelRatio=w.pixelRatio,this._maxCanvasSize=w.maxCanvasSize,this.transformCameraUpdate=w.transformCameraUpdate,this.cancelPendingTileRequestsWhileZooming=w.cancelPendingTileRequestsWhileZooming===!0,this._imageQueueHandle=v.addThrottleControl(()=>this.isMoving()),this._requestManager=new k(w.transformRequest),typeof w.container=="string"){if(this._container=document.getElementById(w.container),!this._container)throw new Error(`Container '${w.container}' not found.`)}else{if(!(w.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=w.container}if(w.maxBounds&&this.setMaxBounds(w.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",()=>this._update(!1)).on("moveend",()=>this._update(!1)).on("zoom",()=>this._update(!0)).on("terrain",()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)}).once("idle",()=>{this._idleTriggered=!0}),typeof window!="undefined"){addEventListener("online",this._onWindowOnline,!1);let q=!1,Q=xs(ee=>{this._trackResize&&!this._removed&&(this.resize(ee),this.redraw())},50);this._resizeObserver=new ResizeObserver(ee=>{q?Q(ee):q=!0}),this._resizeObserver.observe(this._container)}this.handlers=new ta(this,w),this._hash=w.hash&&new ks(typeof w.hash=="string"&&w.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:w.center,zoom:w.zoom,bearing:w.bearing,pitch:w.pitch}),w.bounds&&(this.resize(),this.fitBounds(w.bounds,a.e({},w.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=w.localIdeographFontFamily,this._validateStyle=w.validateStyle,w.style&&this.setStyle(w.style,{localIdeographFontFamily:w.localIdeographFontFamily}),w.attributionControl&&this.addControl(new pa(typeof w.attributionControl=="boolean"?void 0:w.attributionControl)),w.maplibreLogo&&this.addControl(new va,w.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",q=>{this._update(q.dataType==="style"),this.fire(new a.k(`${q.dataType}data`,q))}),this.on("dataloading",q=>{this.fire(new a.k(`${q.dataType}dataloading`,q))}),this.on("dataabort",q=>{this.fire(new a.k("sourcedataabort",q))})}_getMapId(){return this._mapId}addControl(le,w){if(w===void 0&&(w=le.getDefaultPosition?le.getDefaultPosition():"top-right"),!le||!le.onAdd)return this.fire(new a.j(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let q=le.onAdd(this);this._controls.push(le);let Q=this._controlPositions[w];return w.indexOf("bottom")!==-1?Q.insertBefore(q,Q.firstChild):Q.appendChild(q),this}removeControl(le){if(!le||!le.onRemove)return this.fire(new a.j(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let w=this._controls.indexOf(le);return w>-1&&this._controls.splice(w,1),le.onRemove(this),this}hasControl(le){return this._controls.indexOf(le)>-1}calculateCameraOptionsFromTo(le,w,q,Q){return Q==null&&this.terrain&&(Q=this.terrain.getElevationForLngLatZoom(q,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(le,w,q,Q)}resize(le){var w;let q=this._containerDimensions(),Q=q[0],ee=q[1],ue=this._getClampedPixelRatio(Q,ee);if(this._resizeCanvas(Q,ee,ue),this.painter.resize(Q,ee,ue),this.painter.overLimit()){let et=this.painter.context.gl;this._maxCanvasSize=[et.drawingBufferWidth,et.drawingBufferHeight];let mt=this._getClampedPixelRatio(Q,ee);this._resizeCanvas(Q,ee,mt),this.painter.resize(Q,ee,mt)}this.transform.resize(Q,ee),(w=this._requestedCameraState)===null||w===void 0||w.resize(Q,ee);let Ge=!this._moving;return Ge&&(this.stop(),this.fire(new a.k("movestart",le)).fire(new a.k("move",le))),this.fire(new a.k("resize",le)),Ge&&this.fire(new a.k("moveend",le)),this}_getClampedPixelRatio(le,w){let{0:q,1:Q}=this._maxCanvasSize,ee=this.getPixelRatio(),ue=le*ee,Ge=w*ee;return Math.min(ue>q?q/ue:1,Ge>Q?Q/Ge:1)*ee}getPixelRatio(){var le;return(le=this._overridePixelRatio)!==null&&le!==void 0?le:devicePixelRatio}setPixelRatio(le){this._overridePixelRatio=le,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(le){return this.transform.setMaxBounds(ce.convert(le)),this._update()}setMinZoom(le){if((le=le==null?-2:le)>=-2&&le<=this.transform.maxZoom)return this.transform.minZoom=le,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=le,this._update(),this.getZoom()>le&&this.setZoom(le),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(le){if((le=le==null?0:le)<0)throw new Error("minPitch must be greater than or equal to 0");if(le>=0&&le<=this.transform.maxPitch)return this.transform.minPitch=le,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(le>=this.transform.minPitch)return this.transform.maxPitch=le,this._update(),this.getPitch()>le&&this.setPitch(le),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(le){return this.transform.renderWorldCopies=le,this._update()}project(le){return this.transform.locationPoint(a.N.convert(le),this.style&&this.terrain)}unproject(le){return this.transform.pointLocation(a.P.convert(le),this.terrain)}isMoving(){var le;return this._moving||((le=this.handlers)===null||le===void 0?void 0:le.isMoving())}isZooming(){var le;return this._zooming||((le=this.handlers)===null||le===void 0?void 0:le.isZooming())}isRotating(){var le;return this._rotating||((le=this.handlers)===null||le===void 0?void 0:le.isRotating())}_createDelegatedListener(le,w,q){if(le==="mouseenter"||le==="mouseover"){let Q=!1;return{layers:w,listener:q,delegates:{mousemove:ue=>{let Ge=w.filter(mt=>this.getLayer(mt)),et=Ge.length!==0?this.queryRenderedFeatures(ue.point,{layers:Ge}):[];et.length?Q||(Q=!0,q.call(this,new Aa(le,this,ue.originalEvent,{features:et}))):Q=!1},mouseout:()=>{Q=!1}}}}if(le==="mouseleave"||le==="mouseout"){let Q=!1;return{layers:w,listener:q,delegates:{mousemove:Ge=>{let et=w.filter(mt=>this.getLayer(mt));(et.length!==0?this.queryRenderedFeatures(Ge.point,{layers:et}):[]).length?Q=!0:Q&&(Q=!1,q.call(this,new Aa(le,this,Ge.originalEvent)))},mouseout:Ge=>{Q&&(Q=!1,q.call(this,new Aa(le,this,Ge.originalEvent)))}}}}{let Q=ee=>{let ue=w.filter(et=>this.getLayer(et)),Ge=ue.length!==0?this.queryRenderedFeatures(ee.point,{layers:ue}):[];Ge.length&&(ee.features=Ge,q.call(this,ee),delete ee.features)};return{layers:w,listener:q,delegates:{[le]:Q}}}}_saveDelegatedListener(le,w){this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[le]=this._delegatedListeners[le]||[],this._delegatedListeners[le].push(w)}_removeDelegatedListener(le,w,q){if(!this._delegatedListeners||!this._delegatedListeners[le])return;let Q=this._delegatedListeners[le];for(let ee=0;eew.includes(Ge))){for(let Ge in ue.delegates)this.off(Ge,ue.delegates[Ge]);return void Q.splice(ee,1)}}}on(le,w,q){if(q===void 0)return super.on(le,w);let Q=this._createDelegatedListener(le,typeof w=="string"?[w]:w,q);this._saveDelegatedListener(le,Q);for(let ee in Q.delegates)this.on(ee,Q.delegates[ee]);return this}once(le,w,q){if(q===void 0)return super.once(le,w);let Q=typeof w=="string"?[w]:w,ee=this._createDelegatedListener(le,Q,q);for(let ue in ee.delegates){let Ge=ee.delegates[ue];ee.delegates[ue]=(...et)=>{this._removeDelegatedListener(le,Q,q),Ge(...et)}}this._saveDelegatedListener(le,ee);for(let ue in ee.delegates)this.once(ue,ee.delegates[ue]);return this}off(le,w,q){return q===void 0?super.off(le,w):(this._removeDelegatedListener(le,typeof w=="string"?[w]:w,q),this)}queryRenderedFeatures(le,w){if(!this.style)return[];let q,Q=le instanceof a.P||Array.isArray(le),ee=Q?le:[[0,0],[this.transform.width,this.transform.height]];if(w=w||(Q?{}:le)||{},ee instanceof a.P||typeof ee[0]=="number")q=[a.P.convert(ee)];else{let ue=a.P.convert(ee[0]),Ge=a.P.convert(ee[1]);q=[ue,new a.P(Ge.x,ue.y),Ge,new a.P(ue.x,Ge.y),ue]}return this.style.queryRenderedFeatures(q,w,this.transform)}querySourceFeatures(le,w){return this.style.querySourceFeatures(le,w)}setStyle(le,w){return(w=a.e({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},w)).diff!==!1&&w.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&le?(this._diffStyle(le,w),this):(this._localIdeographFontFamily=w.localIdeographFontFamily,this._updateStyle(le,w))}setTransformRequest(le){return this._requestManager.setTransformRequest(le),this}_getUIString(le){let w=this._locale[le];if(w==null)throw new Error(`Missing UI string '${le}'`);return w}_updateStyle(le,w){if(w.transformStyle&&this.style&&!this.style._loaded)return void this.style.once("style.load",()=>this._updateStyle(le,w));let q=this.style&&w.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!le)),le?(this.style=new xn(this,w||{}),this.style.setEventedParent(this,{style:this.style}),typeof le=="string"?this.style.loadURL(le,w,q):this.style.loadJSON(le,w,q),this):(delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new xn(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(le,w){if(typeof le=="string"){let q=this._requestManager.transformRequest(le,"Style");a.h(q,new AbortController).then(Q=>{this._updateDiff(Q.data,w)}).catch(Q=>{Q&&this.fire(new a.j(Q))})}else typeof le=="object"&&this._updateDiff(le,w)}_updateDiff(le,w){try{this.style.setState(le,w)&&this._update(!0)}catch(q){a.w(`Unable to perform style diff: ${q.message||q.error||q}. Rebuilding the style from scratch.`),this._updateStyle(le,w)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():a.w("There is no style added to the map.")}addSource(le,w){return this._lazyInitEmptyStyle(),this.style.addSource(le,w),this._update(!0)}isSourceLoaded(le){let w=this.style&&this.style.sourceCaches[le];if(w!==void 0)return w.loaded();this.fire(new a.j(new Error(`There is no source with ID '${le}'`)))}setTerrain(le){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),le){let w=this.style.sourceCaches[le.source];if(!w)throw new Error(`cannot load terrain, because there exists no source with ID: ${le.source}`);this.terrain===null&&w.reload();for(let q in this.style._layers){let Q=this.style._layers[q];Q.type==="hillshade"&&Q.source===le.source&&a.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new Ks(this.painter,w,le),this.painter.renderToTexture=new Ol(this.painter,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=q=>{q.dataType==="style"?this.terrain.sourceCache.freeRtt():q.dataType==="source"&&q.tile&&(q.sourceId!==le.source||this._elevationFreeze||(this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.terrain.sourceCache.freeRtt(q.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform.minElevationForCurrentTile=0,this.transform.elevation=0;return this.fire(new a.k("terrain",{terrain:le})),this}getTerrain(){var le,w;return(w=(le=this.terrain)===null||le===void 0?void 0:le.options)!==null&&w!==void 0?w:null}areTilesLoaded(){let le=this.style&&this.style.sourceCaches;for(let w in le){let q=le[w]._tiles;for(let Q in q){let ee=q[Q];if(ee.state!=="loaded"&&ee.state!=="errored")return!1}}return!0}removeSource(le){return this.style.removeSource(le),this._update(!0)}getSource(le){return this.style.getSource(le)}addImage(le,w,q={}){let{pixelRatio:Q=1,sdf:ee=!1,stretchX:ue,stretchY:Ge,content:et,textFitWidth:mt,textFitHeight:Ft}=q;if(this._lazyInitEmptyStyle(),!(w instanceof HTMLImageElement||a.b(w))){if(w.width===void 0||w.height===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{let{width:ir,height:or,data:kr}=w,Vr=w;return this.style.addImage(le,{data:new a.R({width:ir,height:or},new Uint8Array(kr)),pixelRatio:Q,stretchX:ue,stretchY:Ge,content:et,textFitWidth:mt,textFitHeight:Ft,sdf:ee,version:0,userImage:Vr}),Vr.onAdd&&Vr.onAdd(this,le),this}}{let{width:ir,height:or,data:kr}=l.getImageData(w);this.style.addImage(le,{data:new a.R({width:ir,height:or},kr),pixelRatio:Q,stretchX:ue,stretchY:Ge,content:et,textFitWidth:mt,textFitHeight:Ft,sdf:ee,version:0})}}updateImage(le,w){let q=this.style.getImage(le);if(!q)return this.fire(new a.j(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let Q=w instanceof HTMLImageElement||a.b(w)?l.getImageData(w):w,{width:ee,height:ue,data:Ge}=Q;if(ee===void 0||ue===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(ee!==q.data.width||ue!==q.data.height)return this.fire(new a.j(new Error("The width and height of the updated image must be that same as the previous version of the image")));let et=!(w instanceof HTMLImageElement||a.b(w));return q.data.replace(Ge,et),this.style.updateImage(le,q),this}getImage(le){return this.style.getImage(le)}hasImage(le){return le?!!this.style.getImage(le):(this.fire(new a.j(new Error("Missing required image id"))),!1)}removeImage(le){this.style.removeImage(le)}loadImage(le){return v.getImage(this._requestManager.transformRequest(le,"Image"),new AbortController)}listImages(){return this.style.listImages()}addLayer(le,w){return this._lazyInitEmptyStyle(),this.style.addLayer(le,w),this._update(!0)}moveLayer(le,w){return this.style.moveLayer(le,w),this._update(!0)}removeLayer(le){return this.style.removeLayer(le),this._update(!0)}getLayer(le){return this.style.getLayer(le)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(le,w,q){return this.style.setLayerZoomRange(le,w,q),this._update(!0)}setFilter(le,w,q={}){return this.style.setFilter(le,w,q),this._update(!0)}getFilter(le){return this.style.getFilter(le)}setPaintProperty(le,w,q,Q={}){return this.style.setPaintProperty(le,w,q,Q),this._update(!0)}getPaintProperty(le,w){return this.style.getPaintProperty(le,w)}setLayoutProperty(le,w,q,Q={}){return this.style.setLayoutProperty(le,w,q,Q),this._update(!0)}getLayoutProperty(le,w){return this.style.getLayoutProperty(le,w)}setGlyphs(le,w={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(le,w),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(le,w,q={}){return this._lazyInitEmptyStyle(),this.style.addSprite(le,w,q,Q=>{Q||this._update(!0)}),this}removeSprite(le){return this._lazyInitEmptyStyle(),this.style.removeSprite(le),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(le,w={}){return this._lazyInitEmptyStyle(),this.style.setSprite(le,w,q=>{q||this._update(!0)}),this}setLight(le,w={}){return this._lazyInitEmptyStyle(),this.style.setLight(le,w),this._update(!0)}getLight(){return this.style.getLight()}setSky(le){return this._lazyInitEmptyStyle(),this.style.setSky(le),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(le,w){return this.style.setFeatureState(le,w),this._update()}removeFeatureState(le,w){return this.style.removeFeatureState(le,w),this._update()}getFeatureState(le){return this.style.getFeatureState(le)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let le=0,w=0;return this._container&&(le=this._container.clientWidth||400,w=this._container.clientHeight||300),[le,w]}_setupContainer(){let le=this._container;le.classList.add("maplibregl-map");let w=this._canvasContainer=f.create("div","maplibregl-canvas-container",le);this._interactive&&w.classList.add("maplibregl-interactive"),this._canvas=f.create("canvas","maplibregl-canvas",w),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region");let q=this._containerDimensions(),Q=this._getClampedPixelRatio(q[0],q[1]);this._resizeCanvas(q[0],q[1],Q);let ee=this._controlContainer=f.create("div","maplibregl-control-container",le),ue=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(Ge=>{ue[Ge]=f.create("div",`maplibregl-ctrl-${Ge} `,ee)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(le,w,q){this._canvas.width=Math.floor(q*le),this._canvas.height=Math.floor(q*w),this._canvas.style.width=`${le}px`,this._canvas.style.height=`${w}px`}_setupPainter(){let le={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1},w=null;this._canvas.addEventListener("webglcontextcreationerror",Q=>{w={requestedAttributes:le},Q&&(w.statusMessage=Q.statusMessage,w.type=Q.type)},{once:!0});let q=this._canvas.getContext("webgl2",le)||this._canvas.getContext("webgl",le);if(!q){let Q="Failed to initialize WebGL";throw w?(w.message=Q,new Error(JSON.stringify(w))):new Error(Q)}this.painter=new Qs(q,this.transform),c.testSupport(q)}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(le){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||le,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(le){return this._update(),this._renderTaskQueue.add(le)}_cancelRenderFrame(le){this._renderTaskQueue.remove(le)}_render(le){let w=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(le),this._removed)return;let q=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let ee=this.transform.zoom,ue=l.now();this.style.zoomHistory.update(ee,ue);let Ge=new a.z(ee,{now:ue,fadeDuration:w,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),et=Ge.crossFadingFactor();et===1&&et===this._crossFadingFactor||(q=!0,this._crossFadingFactor=et),this.style.update(Ge)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform.minElevationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,w,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:w,showPadding:this.showPadding}),this.fire(new a.k("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,a.bf.mark(a.bg.load),this.fire(new a.k("load"))),this.style&&(this.style.hasTransitions()||q)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let Q=this._sourcesDirty||this._styleDirty||this._placementDirty;return Q||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new a.k("idle")),!this._loaded||this._fullyLoaded||Q||(this._fullyLoaded=!0,a.bf.mark(a.bg.fullLoad)),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._render(0)),this}remove(){var le;this._hash&&this._hash.remove();for(let q of this._controls)q.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window!="undefined"&&removeEventListener("online",this._onWindowOnline,!1),v.removeThrottleControl(this._imageQueueHandle),(le=this._resizeObserver)===null||le===void 0||le.disconnect();let w=this.painter.context.gl.getExtension("WEBGL_lose_context");w!=null&&w.loseContext&&w.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),f.remove(this._canvasContainer),f.remove(this._controlContainer),this._container.classList.remove("maplibregl-map"),a.bf.clearMetrics(),this._removed=!0,this.fire(new a.k("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,l.frameAsync(this._frameRequest).then(le=>{a.bf.frame(le),this._frameRequest=null,this._render(le)}).catch(()=>{}))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(le){this._showTileBoundaries!==le&&(this._showTileBoundaries=le,this._update())}get showPadding(){return!!this._showPadding}set showPadding(le){this._showPadding!==le&&(this._showPadding=le,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(le){this._showCollisionBoxes!==le&&(this._showCollisionBoxes=le,le?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(le){this._showOverdrawInspector!==le&&(this._showOverdrawInspector=le,this._update())}get repaint(){return!!this._repaint}set repaint(le){this._repaint!==le&&(this._repaint=le,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(le){this._vertices=le,this._update()}get version(){return eu}getCameraTargetElevation(){return this.transform.elevation}},i.MapMouseEvent=Aa,i.MapTouchEvent=os,i.MapWheelEvent=_l,i.Marker=il,i.NavigationControl=class{constructor(le){this._updateZoomButtons=()=>{let w=this._map.getZoom(),q=w===this._map.getMaxZoom(),Q=w===this._map.getMinZoom();this._zoomInButton.disabled=q,this._zoomOutButton.disabled=Q,this._zoomInButton.setAttribute("aria-disabled",q.toString()),this._zoomOutButton.setAttribute("aria-disabled",Q.toString())},this._rotateCompassArrow=()=>{let w=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=w},this._setButtonTitle=(w,q)=>{let Q=this._map._getUIString(`NavigationControl.${q}`);w.title=Q,w.setAttribute("aria-label",Q)},this.options=a.e({},ja,le),this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",w=>w.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",w=>this._map.zoomIn({},{originalEvent:w})),f.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",w=>this._map.zoomOut({},{originalEvent:w})),f.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",w=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:w}):this._map.resetNorth({},{originalEvent:w})}),this._compassIcon=f.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(le){return this._map=le,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new ns(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){f.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(le,w){let q=f.create("button",le,this._container);return q.type="button",q.addEventListener("click",w),q}},i.Popup=class extends a.E{constructor(le){super(),this.remove=()=>(this._content&&f.remove(this._content),this._container&&(f.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new a.k("close"))),this),this._onMouseUp=w=>{this._update(w.point)},this._onMouseMove=w=>{this._update(w.point)},this._onDrag=w=>{this._update(w.point)},this._update=w=>{var q;if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=f.create("div","maplibregl-popup",this._map.getContainer()),this._tip=f.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let et of this.options.className.split(" "))this._container.classList.add(et);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=this._map.transform.renderWorldCopies&&!this._trackPointer?cs(this._lngLat,this._flatPos,this._map.transform):(q=this._lngLat)===null||q===void 0?void 0:q.wrap(),this._trackPointer&&!w)return;let Q=this._flatPos=this._pos=this._trackPointer&&w?w:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&w?w:this._map.transform.locationPoint(this._lngLat));let ee=this.options.anchor,ue=Gl(this.options.offset);if(!ee){let et=this._container.offsetWidth,mt=this._container.offsetHeight,Ft;Ft=Q.y+ue.bottom.ythis._map.transform.height-mt?["bottom"]:[],Q.xthis._map.transform.width-et/2&&Ft.push("right"),ee=Ft.length===0?"bottom":Ft.join("-")}let Ge=Q.add(ue[ee]);this.options.subpixelPositioning||(Ge=Ge.round()),f.setTransform(this._container,`${sl[ee]} translate(${Ge.x}px,${Ge.y}px)`),ll(this._container,ee,"popup")},this._onClose=()=>{this.remove()},this.options=a.e(Object.create(Os),le)}addTo(le){return this._map&&this.remove(),this._map=le,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new a.k("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(le){return this._lngLat=a.N.convert(le),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(le){return this.setDOMContent(document.createTextNode(le))}setHTML(le){let w=document.createDocumentFragment(),q=document.createElement("body"),Q;for(q.innerHTML=le;Q=q.firstChild,Q;)w.appendChild(Q);return this.setDOMContent(w)}getMaxWidth(){var le;return(le=this._container)===null||le===void 0?void 0:le.style.maxWidth}setMaxWidth(le){return this.options.maxWidth=le,this._update(),this}setDOMContent(le){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=f.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(le),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(le){return this._container&&this._container.classList.add(le),this}removeClassName(le){return this._container&&this._container.classList.remove(le),this}setOffset(le){return this.options.offset=le,this._update(),this}toggleClassName(le){if(this._container)return this._container.classList.toggle(le)}setSubpixelPositioning(le){this.options.subpixelPositioning=le}_createCloseButton(){this.options.closeButton&&(this._closeButton=f.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let le=this._container.querySelector(Xl);le&&le.focus()}},i.RasterDEMTileSource=Nt,i.RasterTileSource=gt,i.ScaleControl=class{constructor(le){this._onMove=()=>{Ll(this._map,this._container,this.options)},this.setUnit=w=>{this.options.unit=w,Ll(this._map,this._container,this.options)},this.options=Object.assign(Object.assign({},Al),le)}getDefaultPosition(){return"bottom-left"}onAdd(le){return this._map=le,this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-scale",le.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){f.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}},i.ScrollZoomHandler=Or,i.Style=xn,i.TerrainControl=class{constructor(le){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=le}onAdd(le){return this._map=le,this._container=f.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=f.create("button","maplibregl-ctrl-terrain",this._container),f.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){f.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},i.TwoFingersTouchPitchHandler=Bs,i.TwoFingersTouchRotateHandler=Rs,i.TwoFingersTouchZoomHandler=Ms,i.TwoFingersTouchZoomRotateHandler=Pi,i.VectorTileSource=nt,i.VideoSource=Tt,i.addSourceType=(le,w)=>a._(void 0,void 0,void 0,function*(){if(Zt(le))throw new Error(`A source type called "${le}" already exists.`);((q,Q)=>{Dt[q]=Q})(le,w)}),i.clearPrewarmedResources=function(){let le=pe;le&&(le.isPreloaded()&&le.numActive()===1?(le.release(be),pe=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},i.getMaxParallelImageRequests=function(){return a.a.MAX_PARALLEL_IMAGE_REQUESTS},i.getRTLTextPluginStatus=function(){return wt().getRTLTextPluginStatus()},i.getVersion=function(){return Ul},i.getWorkerCount=function(){return Ce.workerCount},i.getWorkerUrl=function(){return a.a.WORKER_URL},i.importScriptInWorkers=function(le){return Me().broadcast("IS",le)},i.prewarm=function(){ke().acquire(be)},i.setMaxParallelImageRequests=function(le){a.a.MAX_PARALLEL_IMAGE_REQUESTS=le},i.setRTLTextPlugin=function(le,w){return wt().setRTLTextPlugin(le,w)},i.setWorkerCount=function(le){Ce.workerCount=le},i.setWorkerUrl=function(le){a.a.WORKER_URL=le}});var n=e;return n})});var CWe=Te((v2r,kWe)=>{"use strict";var iw=ei(),jXt=Zf().sanitizeHTML,XXt=IJ(),SWe=wx();function MWe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=SWe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var am=MWe.prototype;am.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=mB(t)};am.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};am.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};am.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};am.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};am.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};am.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!mB(e)){var r=ZXt(e);t.addSource(this.idSource,r)}};am.findFollowingMapLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function EWe(e){var t={},r={};switch(e.type){case"circle":iw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":iw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":iw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=XXt(n.textposition,n.iconsize);iw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),iw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":iw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function ZXt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=jXt(e.sourceattribution)),n}kWe.exports=function(t,r,n){var i=new MWe(t,r);return i.update(n),i}});var BWe=Te((m2r,FWe)=>{"use strict";var qJ=TWe(),NJ=ei(),zWe=nx(),LWe=$l(),YXt=wu(),KXt=gp(),yB=Xc(),IWe=Sm(),JXt=IWe.drawMode,$Xt=IWe.selectMode,QXt=ah().prepSelect,eZt=ah().clearOutline,tZt=ah().clearSelectionsCache,rZt=ah().selectOnClick,nw=wx(),iZt=CWe();function RWe(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Wh=RWe.prototype;Wh.plot=function(e,t,r){var n=this,i;n.map?i=new Promise(function(a,o){n.updateMap(e,t,a,o)}):i=new Promise(function(a,o){n.createMap(e,t,a,o)}),r.push(i)};Wh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=DWe(a.style),s=a.bounds,u=s?[[s.west,s.south],[s.east,s.north]]:null,l=i.map=new qJ.Map({container:i.div,style:o.style,center:UJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:u,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new qJ.AttributionControl({compact:!0})),f={};l.on("styleimagemissing",function(h){var d=h.id;if(!f[d]&&d.includes("-15")){f[d]=!0;var p=new Image(15,15);p.onload=function(){l.addImage(d,p)},p.crossOrigin="Anonymous",p.src="https://unpkg.com/maki@2.1.0/icons/"+d+".svg"}}),l.setTransformRequest(function(h){return h=h.replace("https://fonts.openmaptiles.org/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://tiles.basemaps.cartocdn.com/fonts/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular","https://fonts.openmaptiles.org/Klokantech Noto Sans Regular"),{url:h}}),l._canvas.style.left="0px",l._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var c=[];c.push(new Promise(function(h){l.once("load",h)})),c=c.concat(zWe.fetchTraceGeoData(e)),Promise.all(c).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Wh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],u=DWe(o.style);JSON.stringify(i.styleObj)!==JSON.stringify(u)&&(i.styleObj=u,a.setStyle(u.style),i.traceHash={},s.push(new Promise(function(l){a.once("styledata",l)}))),s=s.concat(zWe.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Wh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&rZt(u.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),l.indexOf("event")>-1&&yB.click(n,u.originalEvent)}}};Wh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(u){var l=t.map.unproject(u);return[l.lng,l.lat]}var a=e.dragmode,o;o=function(u,l){if(l.isRect){var f=u.range={};f[t.id]=[i([l.xmin,l.ymin]),i([l.xmax,l.ymax])]}else{var c=u.lassoPoints={};c[t.id]=l.map(i)}};var s=t.dragOptions;t.dragOptions=NJ.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),$Xt(a)||JXt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(u,l,f){QXt(u,l,f,t.dragOptions,a)},KXt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Wh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Wh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var VJ=ei(),aZt=C_(),oZt=Jd(),OWe=Gk();qWe.exports=function(t,r,n){aZt(t,r,n,{type:"map",attributes:OWe,handleDefaults:sZt,partition:"y"})};function sZt(e,t,r){r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var n=r("bounds.west"),i=r("bounds.east"),a=r("bounds.south"),o=r("bounds.north");(n===void 0||i===void 0||a===void 0||o===void 0)&&delete t.bounds,oZt(e,t,{name:"layers",handleItemDefaults:lZt}),t._input=e}function lZt(e,t){function r(u,l){return VJ.coerce(e,t,OWe.layers,u,l)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",VJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),VJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var _B=Te(l0=>{"use strict";var gB=ei(),UWe=gB.strTranslate,uZt=gB.strScale,fZt=Rd().getSubplotCalcData,cZt=jv(),hZt=Jl(),VWe=Mu(),dZt=Zf(),pZt=BWe(),Ax="map";l0.name=Ax;l0.attr="subplot";l0.idRoot=Ax;l0.idRegex=l0.attrRegex=gB.counterRegex(Ax);l0.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}};l0.layoutAttributes=Gk();l0.supplyLayoutDefaults=NWe();l0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[Ax],a=0;ax/2){var b=c.split("|").join("
");d.text(b).attr("data-unformatted",b).call(dZt.convertToTspans,e),p=VWe.bBox(d.node())}d.attr("transform",UWe(-3,-p.height+8)),h.insert("rect",".static-attribution").attr({x:-p.width-6,y:-p.height-3,width:p.width+6,height:p.height+3,fill:"rgba(255, 255, 255, 0.75)"});var v=1;p.width+6>x&&(v=x/(p.width+6));var k=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];h.attr("transform",UWe(k[0],k[1])+uZt(v))}};l0.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[Ax],n=0;n{"use strict";GWe.exports={attributes:fB(),supplyDefaults:rWe(),colorbar:ep(),formatLabels:zJ(),calc:fF(),plot:mWe(),hoverPoints:vB().hoverPoints,eventData:xWe(),selectPoints:wWe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermap",basePlotModule:_B(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}});var jWe=Te((x2r,WWe)=>{"use strict";WWe.exports=HWe()});var GJ=Te((b2r,XWe)=>{"use strict";var d1=JT(),vZt=nc(),mZt=Nu().hovertemplateAttrs,yZt=Vf(),Tx=Su().extendFlat;XWe.exports=Tx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Tx({},d1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:d1.text,hovertext:d1.hovertext,marker:{line:{color:Tx({},d1.marker.line.color,{editType:"plot"}),width:Tx({},d1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Tx({},d1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Tx({},d1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Tx({},d1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:d1.hoverinfo,hovertemplate:mZt({},{keys:["properties"]}),showlegend:Tx({},yZt.showlegend,{dflt:!1})},vZt("",{cLetter:"z",editTypeOverride:"calc"}))});var YWe=Te((w2r,ZWe)=>{"use strict";var Xk=ei(),gZt=ed(),_Zt=GJ();ZWe.exports=function(t,r,n,i){function a(f,c){return Xk.coerce(t,r,_Zt,f,c)}var o=a("locations"),s=a("z"),u=a("geojson");if(!Xk.isArrayOrTypedArray(o)||!o.length||!Xk.isArrayOrTypedArray(s)||!s.length||!(typeof u=="string"&&u!==""||Xk.isPlainObject(u))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate");var l=a("marker.line.width");l&&a("marker.line.color"),a("marker.opacity"),gZt(t,r,i,a,{prefix:"",cLetter:"z"}),Xk.coerceSelectionMarkerOpacity(r,a)}});var HJ=Te((A2r,$We)=>{"use strict";var xZt=ku(),p1=ei(),bZt=_c(),wZt=Mu(),AZt=rx().makeBlank,KWe=nx();function TZt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:AZt()};if(!r)return a;var o=KWe.extractTraceFeature(e);if(!o)return a;var s=bZt.makeColorScaleFuncFromTrace(t),u=t.marker,l=u.line||{},f;p1.isArrayOrTypedArray(u.opacity)&&(f=function(k){var E=k.mo;return xZt(E)?+p1.constrain(E,0,1):0});var c;p1.isArrayOrTypedArray(l.color)&&(c=function(k){return k.mlc});var h;p1.isArrayOrTypedArray(l.width)&&(h=function(k){return k.mlw});for(var d=0;d{"use strict";var eje=HJ().convert,SZt=HJ().convertOnSelect,QWe=wx().traceLayerPrefix;function tje(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",QWe+t+"-fill"],["line",QWe+t+"-line"]],this.below=null}var ES=tje.prototype;ES.update=function(e){this._update(eje(e)),e[0].trace._glTrace=this};ES.updateOnSelect=function(e){this._update(SZt(e))};ES._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};ES.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};rje.exports=function(t,r){var n=r[0].trace,i=new tje(t,n.uid),a=i.sourceId,o=eje(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var aje=Te((S2r,nje)=>{"use strict";nje.exports={attributes:GJ(),supplyDefaults:YWe(),colorbar:M_(),calc:zF(),plot:ije(),hoverPoints:RF(),eventData:DF(),selectPoints:FF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";oje.exports=aje()});var jJ=Te((E2r,uje)=>{"use strict";var MZt=nc(),EZt=Nu().hovertemplateAttrs,lje=Vf(),xB=fB(),WJ=Su().extendFlat;uje.exports=WJ({lon:xB.lon,lat:xB.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:xB.text,hovertext:xB.hovertext,hoverinfo:WJ({},lje.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:EZt(),showlegend:WJ({},lje.showlegend,{dflt:!1})},MZt("",{cLetter:"z",editTypeOverride:"calc"}))});var cje=Te((k2r,fje)=>{"use strict";var kZt=ei(),CZt=ed(),LZt=jJ();fje.exports=function(t,r,n,i){function a(l,f){return kZt.coerce(t,r,LZt,l,f)}var o=a("lon")||[],s=a("lat")||[],u=Math.min(o.length,s.length);if(!u){r.visible=!1;return}r._length=u,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),CZt(t,r,i,a,{prefix:"",cLetter:"z"})}});var pje=Te((C2r,dje)=>{"use strict";var XJ=ku(),PZt=ei().isArrayOrTypedArray,ZJ=nf().BADNUM,zZt=Dp(),hje=ei()._;dje.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=PZt(a)&&a.length,s=0;s{"use strict";var IZt=ku(),YJ=ei(),vje=jl(),mje=_c(),yje=nf().BADNUM,RZt=rx().makeBlank;gje.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:RZt()};if(!n)return a;var o=[],s,u=r.z,l=r.radius,f=YJ.isArrayOrTypedArray(u)&&u.length,c=YJ.isArrayOrTypedArray(l);for(s=0;s0?+l[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:p})}}var b=mje.extractOpts(r),v=b.reversescale?mje.flipScale(b.colorscale):b.colorscale,k=v[0][1],E=vje.opacity(k)<1?k:vje.addOpacity(k,0),T=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var xje=_je(),DZt=wx().traceLayerPrefix;function bje(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",DZt+t+"-heatmap"]],this.below=null}var bB=bje.prototype;bB.update=function(e){var t=this.subplot,r=this.layerList,n=xje(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};bB.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};wje.exports=function(t,r){var n=r[0].trace,i=new bje(t,n.uid),a=i.sourceId,o=xje(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var Sje=Te((z2r,Tje)=>{"use strict";var FZt=wu(),BZt=vB().hoverPoints,OZt=vB().getExtraText;Tje.exports=function(t,r,n){var i=BZt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,u=o[a.index];if(delete a.color,"z"in u){var l=a.subplot.mockAxis;a.z=u.z,a.zLabel=FZt.tickText(l,l.c2l(u.z),"hover").text}return a.extraText=OZt(s,u,o[0].t.labels),[a]}}});var Eje=Te((I2r,Mje)=>{"use strict";Mje.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var Cje=Te((R2r,kje)=>{"use strict";kje.exports={attributes:jJ(),supplyDefaults:cje(),colorbar:M_(),formatLabels:zJ(),calc:pje(),plot:Aje(),hoverPoints:Sje(),eventData:Eje(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";Lje.exports=Cje()});var JJ=Te((B2r,Dje)=>{"use strict";var qZt=gc(),NZt=Vf(),zje=Ih(),KJ=i3(),UZt=zc().attributes,Ije=Nu().hovertemplateAttrs,VZt=nc(),GZt=Pf().templatedArray,HZt=jc().descriptionOnlyNumbers,Rje=Su().extendFlat,WZt=Sc().overrideAll,F2r=Dje.exports=WZt({hoverinfo:Rje({},NZt.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:KJ.hoverlabel,domain:UZt({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},valueformat:{valType:"string",dflt:".3s",description:HZt("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:qZt({autoShadowDflt:!0}),customdata:void 0,node:{label:{valType:"data_array",dflt:[]},groups:{valType:"info_array",impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:"number",editType:"calc"}},x:{valType:"data_array",dflt:[]},y:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:zje.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:.5,arrayOk:!0}},pad:{valType:"number",arrayOk:!1,min:0,dflt:20},thickness:{valType:"number",arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:KJ.hoverlabel,hovertemplate:Ije({},{keys:["value","label"]}),align:{valType:"enumerated",values:["justify","left","right","center"],dflt:"justify"}},link:{arrowlen:{valType:"number",min:0,dflt:0},label:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},hovercolor:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:zje.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:0,arrayOk:!0}},source:{valType:"data_array",dflt:[]},target:{valType:"data_array",dflt:[]},value:{valType:"data_array",dflt:[]},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:KJ.hoverlabel,hovertemplate:Ije({},{keys:["value","label"]}),colorscales:GZt("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:Rje(VZt().colorscale,{dflt:[[0,"white"],[1,"black"]]})})}},"calc","nested")});var Nje=Te((O2r,qje)=>{"use strict";var kS=ei(),wB=JJ(),jZt=jl(),Fje=cd(),XZt=zc().defaults,Bje=f5(),Oje=Pf(),ZZt=Jd();qje.exports=function(t,r,n,i){function a(T,L){return kS.coerce(t,r,wB,T,L)}var o=kS.extendDeep(i.hoverlabel,t.hoverlabel),s=t.node,u=Oje.newContainer(r,"node");function l(T,L){return kS.coerce(s,u,wB.node,T,L)}l("label"),l("groups"),l("x"),l("y"),l("pad"),l("thickness"),l("line.color"),l("line.width"),l("hoverinfo",t.hoverinfo),Bje(s,u,l,o),l("hovertemplate"),l("align");var f=i.colorway,c=function(T){return f[T%f.length]};l("color",u.label.map(function(T,L){return jZt.addOpacity(c(L),.8)})),l("customdata");var h=t.link||{},d=Oje.newContainer(r,"link");function p(T,L){return kS.coerce(h,d,wB.link,T,L)}p("label"),p("arrowlen"),p("source"),p("target"),p("value"),p("line.color"),p("line.width"),p("hoverinfo",t.hoverinfo),Bje(h,d,p,o),p("hovertemplate");var x=Fje(i.paper_bgcolor).getLuminance()<.333,b=x?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",v=p("color",b);function k(T){var L=Fje(T);if(!L.isValid())return T;var _=L.getAlpha();return _<=.8?L.setAlpha(_+.2):L=x?L.brighten():L.darken(),L.toRgbString()}p("hovercolor",Array.isArray(v)?v.map(k):k(v)),p("customdata"),ZZt(h,d,{name:"colorscales",handleItemDefaults:YZt}),XZt(r,i,a),a("orientation"),a("valueformat"),a("valuesuffix");var E;u.x.length&&u.y.length&&(E="freeform"),a("arrangement",E),kS.coerceFont(a,"textfont",i.font,{autoShadowDflt:!0}),r._length=null};function YZt(e,t){function r(n,i){return kS.coerce(e,t,wB.link.colorscales,n,i)}r("label"),r("cmin"),r("cmax"),r("colorscale")}});var $J=Te((q2r,Uje)=>{"use strict";Uje.exports=KZt;function KZt(e){for(var t=e.length,r=new Array(t),n=new Array(t),i=new Array(t),a=new Array(t),o=new Array(t),s=new Array(t),u=0;u0;){b=k[k.length-1];var E=e[b];if(a[b]=0&&s[b].push(o[L])}a[b]=T}else{if(n[b]===r[b]){for(var _=[],C=[],S=0,T=v.length-1;T>=0;--T){var m=v[T];if(i[m]=!1,_.push(m),C.push(s[m]),S+=s[m].length,o[m]=f.length,m===b){v.length=T;break}}f.push(_);for(var P=new Array(S),T=0;T{"use strict";var JZt=$J(),CS=ei(),$Zt=Ky().wrap,Zk=CS.isArrayOrTypedArray,Vje=CS.isIndex,Gje=_c();function QZt(e){var t=e.node,r=e.link,n=[],i=Zk(r.color),a=Zk(r.hovercolor),o=Zk(r.customdata),s={},u={},l=r.colorscales.length,f;for(f=0;fp&&(p=r.source[f]),r.target[f]>p&&(p=r.target[f]);var x=p+1;e.node._count=x;var b,v=e.node.groups,k={};for(f=0;f0&&Vje(S,x)&&Vje(m,x)&&!(k.hasOwnProperty(S)&&k.hasOwnProperty(m)&&k[S]===k[m])){k.hasOwnProperty(m)&&(m=k[m]),k.hasOwnProperty(S)&&(S=k[S]),S=+S,m=+m,s[S]=s[m]=!0;var P="";r.label&&r.label[f]&&(P=r.label[f]);var A=null;P&&u.hasOwnProperty(P)&&(A=u[P]),n.push({pointNumber:f,label:P,color:i?r.color[f]:r.color,hovercolor:a?r.hovercolor[f]:r.hovercolor,customdata:o?r.customdata[f]:r.customdata,concentrationscale:A,source:S,target:m,value:+C}),_.source.push(S),_.target.push(m)}}var B=x+v.length,F=Zk(t.color),U=Zk(t.customdata),G=[];for(f=0;fx-1,childrenNodes:[],pointNumber:f,label:j,color:F?t.color[f]:t.color,customdata:U?t.customdata[f]:t.customdata})}var H=!1;return eYt(B,_.source,_.target)&&(H=!0),{circular:H,links:n,nodes:G,groups:v,groupLookup:k}}function eYt(e,t,r){for(var n=CS.init2dArray(e,0),i=0;i1})}Hje.exports=function(t,r){var n=QZt(r);return $Zt({circular:n.circular,_nodes:n.nodes,_links:n.links,_groups:n.groups,_groupLookup:n.groupLookup})}});var Xje=Te((AB,jje)=>{(function(e,t){typeof AB=="object"&&typeof jje!="undefined"?t(AB):(e=e||self,t(e.d3=e.d3||{}))})(AB,function(e){"use strict";function t(C){var S=+this._x.call(null,C),m=+this._y.call(null,C);return r(this.cover(S,m),S,m,C)}function r(C,S,m,P){if(isNaN(S)||isNaN(m))return C;var A,B=C._root,F={data:P},U=C._x0,G=C._y0,j=C._x1,H=C._y1,N,W,re,ae,be,Ce,Le,pe;if(!B)return C._root=F,C;for(;B.length;)if((be=S>=(N=(U+j)/2))?U=N:j=N,(Ce=m>=(W=(G+H)/2))?G=W:H=W,A=B,!(B=B[Le=Ce<<1|be]))return A[Le]=F,C;if(re=+C._x.call(null,B.data),ae=+C._y.call(null,B.data),S===re&&m===ae)return F.next=B,A?A[Le]=F:C._root=F,C;do A=A?A[Le]=new Array(4):C._root=new Array(4),(be=S>=(N=(U+j)/2))?U=N:j=N,(Ce=m>=(W=(G+H)/2))?G=W:H=W;while((Le=Ce<<1|be)===(pe=(ae>=W)<<1|re>=N));return A[pe]=B,A[Le]=F,C}function n(C){var S,m,P=C.length,A,B,F=new Array(P),U=new Array(P),G=1/0,j=1/0,H=-1/0,N=-1/0;for(m=0;mH&&(H=A),BN&&(N=B));if(G>H||j>N)return this;for(this.cover(G,j).cover(H,N),m=0;mC||C>=A||P>S||S>=B;)switch(j=(SH||(U=ae.y0)>N||(G=ae.x1)=Le)<<1|C>=Ce)&&(ae=W[W.length-1],W[W.length-1]=W[W.length-1-be],W[W.length-1-be]=ae)}else{var pe=C-+this._x.call(null,re.data),te=S-+this._y.call(null,re.data),ke=pe*pe+te*te;if(ke=(W=(F+G)/2))?F=W:G=W,(be=N>=(re=(U+j)/2))?U=re:j=re,S=m,!(m=m[Ce=be<<1|ae]))return this;if(!m.length)break;(S[Ce+1&3]||S[Ce+2&3]||S[Ce+3&3])&&(P=S,Le=Ce)}for(;m.data!==C;)if(A=m,!(m=m.next))return this;return(B=m.next)&&delete m.next,A?(B?A.next=B:delete A.next,this):S?(B?S[Ce]=B:delete S[Ce],(m=S[0]||S[1]||S[2]||S[3])&&m===(S[3]||S[2]||S[1]||S[0])&&!m.length&&(P?P[Le]=m:this._root=m),this):(this._root=B,this)}function f(C){for(var S=0,m=C.length;S{(function(e,t){t(typeof TB=="object"&&typeof Zje!="undefined"?TB:e.d3=e.d3||{})})(TB,function(e){"use strict";var t="$";function r(){}r.prototype=n.prototype={constructor:r,has:function(x){return t+x in this},get:function(x){return this[t+x]},set:function(x,b){return this[t+x]=b,this},remove:function(x){var b=t+x;return b in this&&delete this[b]},clear:function(){for(var x in this)x[0]===t&&delete this[x]},keys:function(){var x=[];for(var b in this)b[0]===t&&x.push(b.slice(1));return x},values:function(){var x=[];for(var b in this)b[0]===t&&x.push(this[b]);return x},entries:function(){var x=[];for(var b in this)b[0]===t&&x.push({key:b.slice(1),value:this[b]});return x},size:function(){var x=0;for(var b in this)b[0]===t&&++x;return x},empty:function(){for(var x in this)if(x[0]===t)return!1;return!0},each:function(x){for(var b in this)b[0]===t&&x(this[b],b.slice(1),this)}};function n(x,b){var v=new r;if(x instanceof r)x.each(function(_,C){v.set(C,_)});else if(Array.isArray(x)){var k=-1,E=x.length,T;if(b==null)for(;++k=x.length)return v!=null&&_.sort(v),k!=null?k(_):_;for(var P=-1,A=_.length,B=x[C++],F,U,G=n(),j,H=S();++Px.length)return _;var S,m=b[C-1];return k!=null&&C>=x.length?S=_.entries():(S=[],_.each(function(P,A){S.push({key:A,values:L(P,C)})})),m!=null?S.sort(function(P,A){return m(P.key,A.key)}):S}return E={object:function(_){return T(_,0,a,o)},map:function(_){return T(_,0,s,u)},entries:function(_){return L(T(_,0,s,u),0)},key:function(_){return x.push(_),E},sortKeys:function(_){return b[x.length-1]=_,E},sortValues:function(_){return v=_,E},rollup:function(_){return k=_,E}}}function a(){return{}}function o(x,b,v){x[b]=v}function s(){return n()}function u(x,b,v){x.set(b,v)}function l(){}var f=n.prototype;l.prototype=c.prototype={constructor:l,has:f.has,add:function(x){return x+="",this[t+x]=x,this},remove:f.remove,clear:f.clear,values:f.keys,size:f.size,empty:f.empty,each:f.each};function c(x,b){var v=new l;if(x instanceof l)x.each(function(T){v.add(T)});else if(x){var k=-1,E=x.length;if(b==null)for(;++k{(function(e,t){typeof MB=="object"&&typeof Yje!="undefined"?t(MB):(e=e||self,t(e.d3=e.d3||{}))})(MB,function(e){"use strict";var t={value:function(){}};function r(){for(var s=0,u=arguments.length,l={},f;s=0&&(f=l.slice(c+1),l=l.slice(0,c)),l&&!u.hasOwnProperty(l))throw new Error("unknown type: "+l);return{type:l,name:f}})}n.prototype=r.prototype={constructor:n,on:function(s,u){var l=this._,f=i(s+"",l),c,h=-1,d=f.length;if(arguments.length<2){for(;++h0)for(var l=new Array(c),f=0,c,h;f{(function(e,t){typeof EB=="object"&&typeof Jje!="undefined"?t(EB):(e=e||self,t(e.d3=e.d3||{}))})(EB,function(e){"use strict";var t=0,r=0,n=0,i=1e3,a,o,s=0,u=0,l=0,f=typeof performance=="object"&&performance.now?performance:Date,c=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(C){setTimeout(C,17)};function h(){return u||(c(d),u=f.now()+l)}function d(){u=0}function p(){this._call=this._time=this._next=null}p.prototype=x.prototype={constructor:p,restart:function(C,S,m){if(typeof C!="function")throw new TypeError("callback is not a function");m=(m==null?h():+m)+(S==null?0:+S),!this._next&&o!==this&&(o?o._next=this:a=this,o=this),this._call=C,this._time=m,T()},stop:function(){this._call&&(this._call=null,this._time=1/0,T())}};function x(C,S,m){var P=new p;return P.restart(C,S,m),P}function b(){h(),++t;for(var C=a,S;C;)(S=u-C._time)>=0&&C._call.call(null,S),C=C._next;--t}function v(){u=(s=f.now())+l,t=r=0;try{b()}finally{t=0,E(),u=0}}function k(){var C=f.now(),S=C-s;S>i&&(l-=S,s=C)}function E(){for(var C,S=a,m,P=1/0;S;)S._call?(P>S._time&&(P=S._time),C=S,S=S._next):(m=S._next,S._next=null,S=C?C._next=m:a=m);o=C,T(P)}function T(C){if(!t){r&&(r=clearTimeout(r));var S=C-u;S>24?(C<1/0&&(r=setTimeout(v,C-f.now()-l)),n&&(n=clearInterval(n))):(n||(s=f.now(),n=setInterval(k,i)),t=1,c(v))}}function L(C,S,m){var P=new p;return S=S==null?0:+S,P.restart(function(A){P.stop(),C(A+S)},S,m),P}function _(C,S,m){var P=new p,A=S;return S==null?(P.restart(C,S,m),P):(S=+S,m=m==null?h():+m,P.restart(function B(F){F+=A,P.restart(B,A+=S,m),C(F)},S,m),P)}e.interval=_,e.now=h,e.timeout=L,e.timer=x,e.timerFlush=b,Object.defineProperty(e,"__esModule",{value:!0})})});var eXe=Te((kB,Qje)=>{(function(e,t){typeof kB=="object"&&typeof Qje!="undefined"?t(kB,Xje(),SB(),Kje(),$je()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,e.d3)})(kB,function(e,t,r,n,i){"use strict";function a(C,S){var m;C==null&&(C=0),S==null&&(S=0);function P(){var A,B=m.length,F,U=0,G=0;for(A=0;AN.index){var Ve=W-Ne.x-Ne.vx,ce=re-Ne.y-Ne.vy,Je=Ve*Ve+ce*ce;JeW+ye||Eere+ye||MeG.r&&(G.r=G[j].r)}function U(){if(S){var G,j=S.length,H;for(m=new Array(j),G=0;G1?(be==null?U.remove(ae):U.set(ae,re(be)),S):U.get(ae)},find:function(ae,be,Ce){var Le=0,pe=C.length,te,ke,Ee,Me,Ne;for(Ce==null?Ce=1/0:Ce*=Ce,Le=0;Le1?(j.on(ae,be),S):j.on(ae)}}}function E(){var C,S,m,P=o(-30),A,B=1,F=1/0,U=.81;function G(W){var re,ae=C.length,be=t.quadtree(C,p,x).visitAfter(H);for(m=W,re=0;re=F)return;(W.data!==S||W.next)&&(Ce===0&&(Ce=s(),te+=Ce*Ce),Le===0&&(Le=s(),te+=Le*Le),te{(function(e,t){typeof CB=="object"&&typeof tXe!="undefined"?t(CB):(e=e||self,t(e.d3=e.d3||{}))})(CB,function(e){"use strict";var t=Math.PI,r=2*t,n=1e-6,i=r-n;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new a}a.prototype=o.prototype={constructor:a,moveTo:function(s,u){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+u)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(s,u){this._+="L"+(this._x1=+s)+","+(this._y1=+u)},quadraticCurveTo:function(s,u,l,f){this._+="Q"+ +s+","+ +u+","+(this._x1=+l)+","+(this._y1=+f)},bezierCurveTo:function(s,u,l,f,c,h){this._+="C"+ +s+","+ +u+","+ +l+","+ +f+","+(this._x1=+c)+","+(this._y1=+h)},arcTo:function(s,u,l,f,c){s=+s,u=+u,l=+l,f=+f,c=+c;var h=this._x1,d=this._y1,p=l-s,x=f-u,b=h-s,v=d-u,k=b*b+v*v;if(c<0)throw new Error("negative radius: "+c);if(this._x1===null)this._+="M"+(this._x1=s)+","+(this._y1=u);else if(k>n)if(!(Math.abs(v*p-x*b)>n)||!c)this._+="L"+(this._x1=s)+","+(this._y1=u);else{var E=l-h,T=f-d,L=p*p+x*x,_=E*E+T*T,C=Math.sqrt(L),S=Math.sqrt(k),m=c*Math.tan((t-Math.acos((L+k-_)/(2*C*S)))/2),P=m/S,A=m/C;Math.abs(P-1)>n&&(this._+="L"+(s+P*b)+","+(u+P*v)),this._+="A"+c+","+c+",0,0,"+ +(v*E>b*T)+","+(this._x1=s+A*p)+","+(this._y1=u+A*x)}},arc:function(s,u,l,f,c,h){s=+s,u=+u,l=+l,h=!!h;var d=l*Math.cos(f),p=l*Math.sin(f),x=s+d,b=u+p,v=1^h,k=h?f-c:c-f;if(l<0)throw new Error("negative radius: "+l);this._x1===null?this._+="M"+x+","+b:(Math.abs(this._x1-x)>n||Math.abs(this._y1-b)>n)&&(this._+="L"+x+","+b),l&&(k<0&&(k=k%r+r),k>i?this._+="A"+l+","+l+",0,1,"+v+","+(s-d)+","+(u-p)+"A"+l+","+l+",0,1,"+v+","+(this._x1=x)+","+(this._y1=b):k>n&&(this._+="A"+l+","+l+",0,"+ +(k>=t)+","+v+","+(this._x1=s+l*Math.cos(c))+","+(this._y1=u+l*Math.sin(c))))},rect:function(s,u,l,f){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+u)+"h"+ +l+"v"+ +f+"h"+-l+"Z"},toString:function(){return this._}},e.path=o,Object.defineProperty(e,"__esModule",{value:!0})})});var QJ=Te((LB,iXe)=>{(function(e,t){typeof LB=="object"&&typeof iXe!="undefined"?t(LB,rXe()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(LB,function(e,t){"use strict";function r(ft){return function(){return ft}}var n=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,u=Math.sin,l=Math.sqrt,f=1e-12,c=Math.PI,h=c/2,d=2*c;function p(ft){return ft>1?0:ft<-1?c:Math.acos(ft)}function x(ft){return ft>=1?h:ft<=-1?-h:Math.asin(ft)}function b(ft){return ft.innerRadius}function v(ft){return ft.outerRadius}function k(ft){return ft.startAngle}function E(ft){return ft.endAngle}function T(ft){return ft&&ft.padAngle}function L(ft,tr,pr,gr,Zr,Ai,Qi,ni){var Zi=pr-ft,aa=gr-tr,Mn=Qi-Zr,Un=ni-Ai,Ga=Un*Zi-Mn*aa;if(!(Ga*Gawa*wa+ws*ws&&(uo=$a,ls=fo),{cx:uo,cy:ls,x01:-Mn,y01:-Un,x11:uo*(Zr/kn-1),y11:ls*(Zr/kn-1)}}function C(){var ft=b,tr=v,pr=r(0),gr=null,Zr=k,Ai=E,Qi=T,ni=null;function Zi(){var aa,Mn,Un=+ft.apply(this,arguments),Ga=+tr.apply(this,arguments),ma=Zr.apply(this,arguments)-h,oa=Ai.apply(this,arguments)-h,ka=n(oa-ma),so=oa>ma;if(ni||(ni=aa=t.path()),Gaf))ni.moveTo(0,0);else if(ka>d-f)ni.moveTo(Ga*a(ma),Ga*u(ma)),ni.arc(0,0,Ga,ma,oa,!so),Un>f&&(ni.moveTo(Un*a(oa),Un*u(oa)),ni.arc(0,0,Un,oa,ma,so));else{var Kr=ma,Ia=oa,Yo=ma,fa=oa,kn=ka,Ta=ka,ys=Qi.apply(this,arguments)/2,uo=ys>f&&(gr?+gr.apply(this,arguments):l(Un*Un+Ga*Ga)),ls=s(n(Ga-Un)/2,+pr.apply(this,arguments)),$a=ls,fo=ls,mn,ra;if(uo>f){var wa=x(uo/Un*u(ys)),ws=x(uo/Ga*u(ys));(kn-=wa*2)>f?(wa*=so?1:-1,Yo+=wa,fa-=wa):(kn=0,Yo=fa=(ma+oa)/2),(Ta-=ws*2)>f?(ws*=so?1:-1,Kr+=ws,Ia-=ws):(Ta=0,Kr=Ia=(ma+oa)/2)}var Co=Ga*a(Kr),Po=Ga*u(Kr),ji=Un*a(fa),gn=Un*u(fa);if(ls>f){var Ps=Ga*a(Ia),Ha=Ga*u(Ia),Sn=Un*a(Yo),ao=Un*u(Yo),Ba;if(kaf?fo>f?(mn=_(Sn,ao,Co,Po,Ga,fo,so),ra=_(Ps,Ha,ji,gn,Ga,fo,so),ni.moveTo(mn.cx+mn.x01,mn.cy+mn.y01),fof)||!(kn>f)?ni.lineTo(ji,gn):$a>f?(mn=_(ji,gn,Ps,Ha,Un,-$a,so),ra=_(Co,Po,Sn,ao,Un,-$a,so),ni.lineTo(mn.cx+mn.x01,mn.cy+mn.y01),$a=Ga;--ma)ni.point(Ia[ma],Yo[ma]);ni.lineEnd(),ni.areaEnd()}so&&(Ia[Un]=+ft(ka,Un,Mn),Yo[Un]=+pr(ka,Un,Mn),ni.point(tr?+tr(ka,Un,Mn):Ia[Un],gr?+gr(ka,Un,Mn):Yo[Un]))}if(Kr)return ni=null,Kr+""||null}function aa(){return B().defined(Zr).curve(Qi).context(Ai)}return Zi.x=function(Mn){return arguments.length?(ft=typeof Mn=="function"?Mn:r(+Mn),tr=null,Zi):ft},Zi.x0=function(Mn){return arguments.length?(ft=typeof Mn=="function"?Mn:r(+Mn),Zi):ft},Zi.x1=function(Mn){return arguments.length?(tr=Mn==null?null:typeof Mn=="function"?Mn:r(+Mn),Zi):tr},Zi.y=function(Mn){return arguments.length?(pr=typeof Mn=="function"?Mn:r(+Mn),gr=null,Zi):pr},Zi.y0=function(Mn){return arguments.length?(pr=typeof Mn=="function"?Mn:r(+Mn),Zi):pr},Zi.y1=function(Mn){return arguments.length?(gr=Mn==null?null:typeof Mn=="function"?Mn:r(+Mn),Zi):gr},Zi.lineX0=Zi.lineY0=function(){return aa().x(ft).y(pr)},Zi.lineY1=function(){return aa().x(ft).y(gr)},Zi.lineX1=function(){return aa().x(tr).y(pr)},Zi.defined=function(Mn){return arguments.length?(Zr=typeof Mn=="function"?Mn:r(!!Mn),Zi):Zr},Zi.curve=function(Mn){return arguments.length?(Qi=Mn,Ai!=null&&(ni=Qi(Ai)),Zi):Qi},Zi.context=function(Mn){return arguments.length?(Mn==null?Ai=ni=null:ni=Qi(Ai=Mn),Zi):Ai},Zi}function U(ft,tr){return trft?1:tr>=ft?0:NaN}function G(ft){return ft}function j(){var ft=G,tr=U,pr=null,gr=r(0),Zr=r(d),Ai=r(0);function Qi(ni){var Zi,aa=ni.length,Mn,Un,Ga=0,ma=new Array(aa),oa=new Array(aa),ka=+gr.apply(this,arguments),so=Math.min(d,Math.max(-d,Zr.apply(this,arguments)-ka)),Kr,Ia=Math.min(Math.abs(so)/aa,Ai.apply(this,arguments)),Yo=Ia*(so<0?-1:1),fa;for(Zi=0;Zi0&&(Ga+=fa);for(tr!=null?ma.sort(function(kn,Ta){return tr(oa[kn],oa[Ta])}):pr!=null&&ma.sort(function(kn,Ta){return pr(ni[kn],ni[Ta])}),Zi=0,Un=Ga?(so-aa*Yo)/Ga:0;Zi0?fa*Un:0)+Yo,oa[Mn]={data:ni[Mn],index:Zi,value:fa,startAngle:ka,endAngle:Kr,padAngle:Ia};return oa}return Qi.value=function(ni){return arguments.length?(ft=typeof ni=="function"?ni:r(+ni),Qi):ft},Qi.sortValues=function(ni){return arguments.length?(tr=ni,pr=null,Qi):tr},Qi.sort=function(ni){return arguments.length?(pr=ni,tr=null,Qi):pr},Qi.startAngle=function(ni){return arguments.length?(gr=typeof ni=="function"?ni:r(+ni),Qi):gr},Qi.endAngle=function(ni){return arguments.length?(Zr=typeof ni=="function"?ni:r(+ni),Qi):Zr},Qi.padAngle=function(ni){return arguments.length?(Ai=typeof ni=="function"?ni:r(+ni),Qi):Ai},Qi}var H=W(m);function N(ft){this._curve=ft}N.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(ft,tr){this._curve.point(tr*Math.sin(ft),tr*-Math.cos(ft))}};function W(ft){function tr(pr){return new N(ft(pr))}return tr._curve=ft,tr}function re(ft){var tr=ft.curve;return ft.angle=ft.x,delete ft.x,ft.radius=ft.y,delete ft.y,ft.curve=function(pr){return arguments.length?tr(W(pr)):tr()._curve},ft}function ae(){return re(B().curve(H))}function be(){var ft=F().curve(H),tr=ft.curve,pr=ft.lineX0,gr=ft.lineX1,Zr=ft.lineY0,Ai=ft.lineY1;return ft.angle=ft.x,delete ft.x,ft.startAngle=ft.x0,delete ft.x0,ft.endAngle=ft.x1,delete ft.x1,ft.radius=ft.y,delete ft.y,ft.innerRadius=ft.y0,delete ft.y0,ft.outerRadius=ft.y1,delete ft.y1,ft.lineStartAngle=function(){return re(pr())},delete ft.lineX0,ft.lineEndAngle=function(){return re(gr())},delete ft.lineX1,ft.lineInnerRadius=function(){return re(Zr())},delete ft.lineY0,ft.lineOuterRadius=function(){return re(Ai())},delete ft.lineY1,ft.curve=function(Qi){return arguments.length?tr(W(Qi)):tr()._curve},ft}function Ce(ft,tr){return[(tr=+tr)*Math.cos(ft-=Math.PI/2),tr*Math.sin(ft)]}var Le=Array.prototype.slice;function pe(ft){return ft.source}function te(ft){return ft.target}function ke(ft){var tr=pe,pr=te,gr=P,Zr=A,Ai=null;function Qi(){var ni,Zi=Le.call(arguments),aa=tr.apply(this,Zi),Mn=pr.apply(this,Zi);if(Ai||(Ai=ni=t.path()),ft(Ai,+gr.apply(this,(Zi[0]=aa,Zi)),+Zr.apply(this,Zi),+gr.apply(this,(Zi[0]=Mn,Zi)),+Zr.apply(this,Zi)),ni)return Ai=null,ni+""||null}return Qi.source=function(ni){return arguments.length?(tr=ni,Qi):tr},Qi.target=function(ni){return arguments.length?(pr=ni,Qi):pr},Qi.x=function(ni){return arguments.length?(gr=typeof ni=="function"?ni:r(+ni),Qi):gr},Qi.y=function(ni){return arguments.length?(Zr=typeof ni=="function"?ni:r(+ni),Qi):Zr},Qi.context=function(ni){return arguments.length?(Ai=ni==null?null:ni,Qi):Ai},Qi}function Ee(ft,tr,pr,gr,Zr){ft.moveTo(tr,pr),ft.bezierCurveTo(tr=(tr+gr)/2,pr,tr,Zr,gr,Zr)}function Me(ft,tr,pr,gr,Zr){ft.moveTo(tr,pr),ft.bezierCurveTo(tr,pr=(pr+Zr)/2,gr,pr,gr,Zr)}function Ne(ft,tr,pr,gr,Zr){var Ai=Ce(tr,pr),Qi=Ce(tr,pr=(pr+Zr)/2),ni=Ce(gr,pr),Zi=Ce(gr,Zr);ft.moveTo(Ai[0],Ai[1]),ft.bezierCurveTo(Qi[0],Qi[1],ni[0],ni[1],Zi[0],Zi[1])}function Fe(){return ke(Ee)}function ye(){return ke(Me)}function Ve(){var ft=ke(Ne);return ft.angle=ft.x,delete ft.x,ft.radius=ft.y,delete ft.y,ft}var ce={draw:function(ft,tr){var pr=Math.sqrt(tr/c);ft.moveTo(pr,0),ft.arc(0,0,pr,0,d)}},Je={draw:function(ft,tr){var pr=Math.sqrt(tr/5)/2;ft.moveTo(-3*pr,-pr),ft.lineTo(-pr,-pr),ft.lineTo(-pr,-3*pr),ft.lineTo(pr,-3*pr),ft.lineTo(pr,-pr),ft.lineTo(3*pr,-pr),ft.lineTo(3*pr,pr),ft.lineTo(pr,pr),ft.lineTo(pr,3*pr),ft.lineTo(-pr,3*pr),ft.lineTo(-pr,pr),ft.lineTo(-3*pr,pr),ft.closePath()}},nt=Math.sqrt(1/3),gt=nt*2,Nt={draw:function(ft,tr){var pr=Math.sqrt(tr/gt),gr=pr*nt;ft.moveTo(0,-pr),ft.lineTo(gr,0),ft.lineTo(0,pr),ft.lineTo(-gr,0),ft.closePath()}},it=.8908130915292852,Ye=Math.sin(c/10)/Math.sin(7*c/10),kt=Math.sin(d/10)*Ye,Tt=-Math.cos(d/10)*Ye,St={draw:function(ft,tr){var pr=Math.sqrt(tr*it),gr=kt*pr,Zr=Tt*pr;ft.moveTo(0,-pr),ft.lineTo(gr,Zr);for(var Ai=1;Ai<5;++Ai){var Qi=d*Ai/5,ni=Math.cos(Qi),Zi=Math.sin(Qi);ft.lineTo(Zi*pr,-ni*pr),ft.lineTo(ni*gr-Zi*Zr,Zi*gr+ni*Zr)}ft.closePath()}},Dt={draw:function(ft,tr){var pr=Math.sqrt(tr),gr=-pr/2;ft.rect(gr,gr,pr,pr)}},Zt=Math.sqrt(3),Et={draw:function(ft,tr){var pr=-Math.sqrt(tr/(Zt*3));ft.moveTo(0,pr*2),ft.lineTo(-Zt*pr,-pr),ft.lineTo(Zt*pr,-pr),ft.closePath()}},Ae=-.5,at=Math.sqrt(3)/2,wt=1/Math.sqrt(12),vt=(wt/2+1)*3,st={draw:function(ft,tr){var pr=Math.sqrt(tr/vt),gr=pr/2,Zr=pr*wt,Ai=gr,Qi=pr*wt+pr,ni=-Ai,Zi=Qi;ft.moveTo(gr,Zr),ft.lineTo(Ai,Qi),ft.lineTo(ni,Zi),ft.lineTo(Ae*gr-at*Zr,at*gr+Ae*Zr),ft.lineTo(Ae*Ai-at*Qi,at*Ai+Ae*Qi),ft.lineTo(Ae*ni-at*Zi,at*ni+Ae*Zi),ft.lineTo(Ae*gr+at*Zr,Ae*Zr-at*gr),ft.lineTo(Ae*Ai+at*Qi,Ae*Qi-at*Ai),ft.lineTo(Ae*ni+at*Zi,Ae*Zi-at*ni),ft.closePath()}},Ue=[ce,Je,Nt,Dt,St,Et,st];function rt(){var ft=r(ce),tr=r(64),pr=null;function gr(){var Zr;if(pr||(pr=Zr=t.path()),ft.apply(this,arguments).draw(pr,+tr.apply(this,arguments)),Zr)return pr=null,Zr+""||null}return gr.type=function(Zr){return arguments.length?(ft=typeof Zr=="function"?Zr:r(Zr),gr):ft},gr.size=function(Zr){return arguments.length?(tr=typeof Zr=="function"?Zr:r(+Zr),gr):tr},gr.context=function(Zr){return arguments.length?(pr=Zr==null?null:Zr,gr):pr},gr}function $e(){}function zt(ft,tr,pr){ft._context.bezierCurveTo((2*ft._x0+ft._x1)/3,(2*ft._y0+ft._y1)/3,(ft._x0+2*ft._x1)/3,(ft._y0+2*ft._y1)/3,(ft._x0+4*ft._x1+tr)/6,(ft._y0+4*ft._y1+pr)/6)}function Yt(ft){this._context=ft}Yt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:zt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1,this._line?this._context.lineTo(ft,tr):this._context.moveTo(ft,tr);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:zt(this,ft,tr);break}this._x0=this._x1,this._x1=ft,this._y0=this._y1,this._y1=tr}};function hr(ft){return new Yt(ft)}function yr(ft){this._context=ft}yr.prototype={areaStart:$e,areaEnd:$e,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1,this._x2=ft,this._y2=tr;break;case 1:this._point=2,this._x3=ft,this._y3=tr;break;case 2:this._point=3,this._x4=ft,this._y4=tr,this._context.moveTo((this._x0+4*this._x1+ft)/6,(this._y0+4*this._y1+tr)/6);break;default:zt(this,ft,tr);break}this._x0=this._x1,this._x1=ft,this._y0=this._y1,this._y1=tr}};function br(ft){return new yr(ft)}function Ut(ft){this._context=ft}Ut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var pr=(this._x0+4*this._x1+ft)/6,gr=(this._y0+4*this._y1+tr)/6;this._line?this._context.lineTo(pr,gr):this._context.moveTo(pr,gr);break;case 3:this._point=4;default:zt(this,ft,tr);break}this._x0=this._x1,this._x1=ft,this._y0=this._y1,this._y1=tr}};function Ie(ft){return new Ut(ft)}function xe(ft,tr){this._basis=new Yt(ft),this._beta=tr}xe.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var ft=this._x,tr=this._y,pr=ft.length-1;if(pr>0)for(var gr=ft[0],Zr=tr[0],Ai=ft[pr]-gr,Qi=tr[pr]-Zr,ni=-1,Zi;++ni<=pr;)Zi=ni/pr,this._basis.point(this._beta*ft[ni]+(1-this._beta)*(gr+Zi*Ai),this._beta*tr[ni]+(1-this._beta)*(Zr+Zi*Qi));this._x=this._y=null,this._basis.lineEnd()},point:function(ft,tr){this._x.push(+ft),this._y.push(+tr)}};var Oe=function ft(tr){function pr(gr){return tr===1?new Yt(gr):new xe(gr,tr)}return pr.beta=function(gr){return ft(+gr)},pr}(.85);function Re(ft,tr,pr){ft._context.bezierCurveTo(ft._x1+ft._k*(ft._x2-ft._x0),ft._y1+ft._k*(ft._y2-ft._y0),ft._x2+ft._k*(ft._x1-tr),ft._y2+ft._k*(ft._y1-pr),ft._x2,ft._y2)}function De(ft,tr){this._context=ft,this._k=(1-tr)/6}De.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Re(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1,this._line?this._context.lineTo(ft,tr):this._context.moveTo(ft,tr);break;case 1:this._point=2,this._x1=ft,this._y1=tr;break;case 2:this._point=3;default:Re(this,ft,tr);break}this._x0=this._x1,this._x1=this._x2,this._x2=ft,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var ct=function ft(tr){function pr(gr){return new De(gr,tr)}return pr.tension=function(gr){return ft(+gr)},pr}(0);function ge(ft,tr){this._context=ft,this._k=(1-tr)/6}ge.prototype={areaStart:$e,areaEnd:$e,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1,this._x3=ft,this._y3=tr;break;case 1:this._point=2,this._context.moveTo(this._x4=ft,this._y4=tr);break;case 2:this._point=3,this._x5=ft,this._y5=tr;break;default:Re(this,ft,tr);break}this._x0=this._x1,this._x1=this._x2,this._x2=ft,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var fe=function ft(tr){function pr(gr){return new ge(gr,tr)}return pr.tension=function(gr){return ft(+gr)},pr}(0);function de(ft,tr){this._context=ft,this._k=(1-tr)/6}de.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Re(this,ft,tr);break}this._x0=this._x1,this._x1=this._x2,this._x2=ft,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var dt=function ft(tr){function pr(gr){return new de(gr,tr)}return pr.tension=function(gr){return ft(+gr)},pr}(0);function It(ft,tr,pr){var gr=ft._x1,Zr=ft._y1,Ai=ft._x2,Qi=ft._y2;if(ft._l01_a>f){var ni=2*ft._l01_2a+3*ft._l01_a*ft._l12_a+ft._l12_2a,Zi=3*ft._l01_a*(ft._l01_a+ft._l12_a);gr=(gr*ni-ft._x0*ft._l12_2a+ft._x2*ft._l01_2a)/Zi,Zr=(Zr*ni-ft._y0*ft._l12_2a+ft._y2*ft._l01_2a)/Zi}if(ft._l23_a>f){var aa=2*ft._l23_2a+3*ft._l23_a*ft._l12_a+ft._l12_2a,Mn=3*ft._l23_a*(ft._l23_a+ft._l12_a);Ai=(Ai*aa+ft._x1*ft._l23_2a-tr*ft._l12_2a)/Mn,Qi=(Qi*aa+ft._y1*ft._l23_2a-pr*ft._l12_2a)/Mn}ft._context.bezierCurveTo(gr,Zr,Ai,Qi,ft._x2,ft._y2)}function Pt(ft,tr){this._context=ft,this._alpha=tr}Pt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){if(ft=+ft,tr=+tr,this._point){var pr=this._x2-ft,gr=this._y2-tr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(pr*pr+gr*gr,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(ft,tr):this._context.moveTo(ft,tr);break;case 1:this._point=2;break;case 2:this._point=3;default:It(this,ft,tr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=ft,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var rr=function ft(tr){function pr(gr){return tr?new Pt(gr,tr):new De(gr,0)}return pr.alpha=function(gr){return ft(+gr)},pr}(.5);function Hr(ft,tr){this._context=ft,this._alpha=tr}Hr.prototype={areaStart:$e,areaEnd:$e,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(ft,tr){if(ft=+ft,tr=+tr,this._point){var pr=this._x2-ft,gr=this._y2-tr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(pr*pr+gr*gr,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=ft,this._y3=tr;break;case 1:this._point=2,this._context.moveTo(this._x4=ft,this._y4=tr);break;case 2:this._point=3,this._x5=ft,this._y5=tr;break;default:It(this,ft,tr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=ft,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var Dr=function ft(tr){function pr(gr){return tr?new Hr(gr,tr):new ge(gr,0)}return pr.alpha=function(gr){return ft(+gr)},pr}(.5);function Mr(ft,tr){this._context=ft,this._alpha=tr}Mr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){if(ft=+ft,tr=+tr,this._point){var pr=this._x2-ft,gr=this._y2-tr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(pr*pr+gr*gr,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:It(this,ft,tr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=ft,this._y0=this._y1,this._y1=this._y2,this._y2=tr}};var Fr=function ft(tr){function pr(gr){return tr?new Mr(gr,tr):new de(gr,0)}return pr.alpha=function(gr){return ft(+gr)},pr}(.5);function di(ft){this._context=ft}di.prototype={areaStart:$e,areaEnd:$e,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(ft,tr){ft=+ft,tr=+tr,this._point?this._context.lineTo(ft,tr):(this._point=1,this._context.moveTo(ft,tr))}};function Di(ft){return new di(ft)}function Ii(ft){return ft<0?-1:1}function Ci(ft,tr,pr){var gr=ft._x1-ft._x0,Zr=tr-ft._x1,Ai=(ft._y1-ft._y0)/(gr||Zr<0&&-0),Qi=(pr-ft._y1)/(Zr||gr<0&&-0),ni=(Ai*Zr+Qi*gr)/(gr+Zr);return(Ii(Ai)+Ii(Qi))*Math.min(Math.abs(Ai),Math.abs(Qi),.5*Math.abs(ni))||0}function nn(ft,tr){var pr=ft._x1-ft._x0;return pr?(3*(ft._y1-ft._y0)/pr-tr)/2:tr}function ii(ft,tr,pr){var gr=ft._x0,Zr=ft._y0,Ai=ft._x1,Qi=ft._y1,ni=(Ai-gr)/3;ft._context.bezierCurveTo(gr+ni,Zr+ni*tr,Ai-ni,Qi-ni*pr,Ai,Qi)}function wi(ft){this._context=ft}wi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ii(this,this._t0,nn(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(ft,tr){var pr=NaN;if(ft=+ft,tr=+tr,!(ft===this._x1&&tr===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(ft,tr):this._context.moveTo(ft,tr);break;case 1:this._point=2;break;case 2:this._point=3,ii(this,nn(this,pr=Ci(this,ft,tr)),pr);break;default:ii(this,this._t0,pr=Ci(this,ft,tr));break}this._x0=this._x1,this._x1=ft,this._y0=this._y1,this._y1=tr,this._t0=pr}}};function Gi(ft){this._context=new Bt(ft)}(Gi.prototype=Object.create(wi.prototype)).point=function(ft,tr){wi.prototype.point.call(this,tr,ft)};function Bt(ft){this._context=ft}Bt.prototype={moveTo:function(ft,tr){this._context.moveTo(tr,ft)},closePath:function(){this._context.closePath()},lineTo:function(ft,tr){this._context.lineTo(tr,ft)},bezierCurveTo:function(ft,tr,pr,gr,Zr,Ai){this._context.bezierCurveTo(tr,ft,gr,pr,Ai,Zr)}};function yt(ft){return new wi(ft)}function Vt(ft){return new Gi(ft)}function Wt(ft){this._context=ft}Wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var ft=this._x,tr=this._y,pr=ft.length;if(pr)if(this._line?this._context.lineTo(ft[0],tr[0]):this._context.moveTo(ft[0],tr[0]),pr===2)this._context.lineTo(ft[1],tr[1]);else for(var gr=_r(ft),Zr=_r(tr),Ai=0,Qi=1;Qi=0;--tr)Zr[tr]=(Qi[tr]-Zr[tr+1])/Ai[tr];for(Ai[pr-1]=(ft[pr]+Zr[pr-1])/2,tr=0;tr=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(ft,tr){switch(ft=+ft,tr=+tr,this._point){case 0:this._point=1,this._line?this._context.lineTo(ft,tr):this._context.moveTo(ft,tr);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,tr),this._context.lineTo(ft,tr);else{var pr=this._x*(1-this._t)+ft*this._t;this._context.lineTo(pr,this._y),this._context.lineTo(pr,tr)}break}}this._x=ft,this._y=tr}};function Ir(ft){return new Ur(ft,.5)}function Gr(ft){return new Ur(ft,0)}function jr(ft){return new Ur(ft,1)}function yi(ft,tr){if((Qi=ft.length)>1)for(var pr=1,gr,Zr,Ai=ft[tr[0]],Qi,ni=Ai.length;pr=0;)pr[tr]=tr;return pr}function Vi(ft,tr){return ft[tr]}function ti(){var ft=r([]),tr=Ei,pr=yi,gr=Vi;function Zr(Ai){var Qi=ft.apply(this,arguments),ni,Zi=Ai.length,aa=Qi.length,Mn=new Array(aa),Un;for(ni=0;ni0){for(var pr,gr,Zr=0,Ai=ft[0].length,Qi;Zr0)for(var pr,gr=0,Zr,Ai,Qi,ni,Zi,aa=ft[tr[0]].length;gr0?(Zr[0]=Qi,Zr[1]=Qi+=Ai):Ai<0?(Zr[1]=ni,Zr[0]=ni+=Ai):(Zr[0]=0,Zr[1]=Ai)}function oi(ft,tr){if((Zr=ft.length)>0){for(var pr=0,gr=ft[tr[0]],Zr,Ai=gr.length;pr0)||!((Ai=(Zr=ft[tr[0]]).length)>0))){for(var pr=0,gr=1,Zr,Ai,Qi;grAi&&(Ai=Zr,pr=tr);return pr}function Fi(ft){var tr=ft.map(Ri);return Ei(ft).sort(function(pr,gr){return tr[pr]-tr[gr]})}function Ri(ft){for(var tr=0,pr=-1,gr=ft.length,Zr;++pr{(function(e,t){typeof PB=="object"&&typeof nXe!="undefined"?t(PB,ik(),SB(),QJ()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3)})(PB,function(e,t,r,n){"use strict";function i(m){return m.target.depth}function a(m){return m.depth}function o(m,P){return P-1-m.height}function s(m,P){return m.sourceLinks.length?m.depth:P-1}function u(m){return m.targetLinks.length?m.depth:m.sourceLinks.length?t.min(m.sourceLinks,i)-1:0}function l(m){return function(){return m}}function f(m,P){return h(m.source,P.source)||m.index-P.index}function c(m,P){return h(m.target,P.target)||m.index-P.index}function h(m,P){return m.y0-P.y0}function d(m){return m.value}function p(m){return(m.y0+m.y1)/2}function x(m){return p(m.source)*m.value}function b(m){return p(m.target)*m.value}function v(m){return m.index}function k(m){return m.nodes}function E(m){return m.links}function T(m,P){var A=m.get(P);if(!A)throw new Error("missing: "+P);return A}var L=function(){var m=0,P=0,A=1,B=1,F=24,U=8,G=v,j=s,H=k,N=E,W=32,re=2/3;function ae(){var ke={nodes:H.apply(null,arguments),links:N.apply(null,arguments)};return be(ke),Ce(ke),Le(ke),pe(ke,W),te(ke),ke}ae.update=function(ke){return te(ke),ke},ae.nodeId=function(ke){return arguments.length?(G=typeof ke=="function"?ke:l(ke),ae):G},ae.nodeAlign=function(ke){return arguments.length?(j=typeof ke=="function"?ke:l(ke),ae):j},ae.nodeWidth=function(ke){return arguments.length?(F=+ke,ae):F},ae.nodePadding=function(ke){return arguments.length?(U=+ke,ae):U},ae.nodes=function(ke){return arguments.length?(H=typeof ke=="function"?ke:l(ke),ae):H},ae.links=function(ke){return arguments.length?(N=typeof ke=="function"?ke:l(ke),ae):N},ae.size=function(ke){return arguments.length?(m=P=0,A=+ke[0],B=+ke[1],ae):[A-m,B-P]},ae.extent=function(ke){return arguments.length?(m=+ke[0][0],A=+ke[1][0],P=+ke[0][1],B=+ke[1][1],ae):[[m,P],[A,B]]},ae.iterations=function(ke){return arguments.length?(W=+ke,ae):W};function be(ke){ke.nodes.forEach(function(Me,Ne){Me.index=Ne,Me.sourceLinks=[],Me.targetLinks=[]});var Ee=r.map(ke.nodes,G);ke.links.forEach(function(Me,Ne){Me.index=Ne;var Fe=Me.source,ye=Me.target;typeof Fe!="object"&&(Fe=Me.source=T(Ee,Fe)),typeof ye!="object"&&(ye=Me.target=T(Ee,ye)),Fe.sourceLinks.push(Me),ye.targetLinks.push(Me)})}function Ce(ke){ke.nodes.forEach(function(Ee){Ee.value=Math.max(t.sum(Ee.sourceLinks,d),t.sum(Ee.targetLinks,d))})}function Le(ke){var Ee,Me,Ne;for(Ee=ke.nodes,Me=[],Ne=0;Ee.length;++Ne,Ee=Me,Me=[])Ee.forEach(function(ye){ye.depth=Ne,ye.sourceLinks.forEach(function(Ve){Me.indexOf(Ve.target)<0&&Me.push(Ve.target)})});for(Ee=ke.nodes,Me=[],Ne=0;Ee.length;++Ne,Ee=Me,Me=[])Ee.forEach(function(ye){ye.height=Ne,ye.targetLinks.forEach(function(Ve){Me.indexOf(Ve.source)<0&&Me.push(Ve.source)})});var Fe=(A-m-F)/(Ne-1);ke.nodes.forEach(function(ye){ye.x1=(ye.x0=m+Math.max(0,Math.min(Ne-1,Math.floor(j.call(null,ye,Ne))))*Fe)+F})}function pe(ke){var Ee=r.nest().key(function(Je){return Je.x0}).sortKeys(t.ascending).entries(ke.nodes).map(function(Je){return Je.values});Fe(),ce();for(var Me=1,Ne=W;Ne>0;--Ne)Ve(Me*=.99),ce(),ye(Me),ce();function Fe(){var Je=t.max(Ee,function(Nt){return Nt.length}),nt=re*(B-P)/(Je-1);U>nt&&(U=nt);var gt=t.min(Ee,function(Nt){return(B-P-(Nt.length-1)*U)/t.sum(Nt,d)});Ee.forEach(function(Nt){Nt.forEach(function(it,Ye){it.y1=(it.y0=Ye)+it.value*gt})}),ke.links.forEach(function(Nt){Nt.width=Nt.value*gt})}function ye(Je){Ee.forEach(function(nt){nt.forEach(function(gt){if(gt.targetLinks.length){var Nt=(t.sum(gt.targetLinks,x)/t.sum(gt.targetLinks,d)-p(gt))*Je;gt.y0+=Nt,gt.y1+=Nt}})})}function Ve(Je){Ee.slice().reverse().forEach(function(nt){nt.forEach(function(gt){if(gt.sourceLinks.length){var Nt=(t.sum(gt.sourceLinks,b)/t.sum(gt.sourceLinks,d)-p(gt))*Je;gt.y0+=Nt,gt.y1+=Nt}})})}function ce(){Ee.forEach(function(Je){var nt,gt,Nt=P,it=Je.length,Ye;for(Je.sort(h),Ye=0;Ye0&&(nt.y0+=gt,nt.y1+=gt),Nt=nt.y1+U;if(gt=Nt-U-B,gt>0)for(Nt=nt.y0-=gt,nt.y1-=gt,Ye=it-2;Ye>=0;--Ye)nt=Je[Ye],gt=nt.y1+U-Nt,gt>0&&(nt.y0-=gt,nt.y1-=gt),Nt=nt.y0})}}function te(ke){ke.nodes.forEach(function(Ee){Ee.sourceLinks.sort(c),Ee.targetLinks.sort(f)}),ke.nodes.forEach(function(Ee){var Me=Ee.y0,Ne=Me;Ee.sourceLinks.forEach(function(Fe){Fe.y0=Me+Fe.width/2,Me+=Fe.width}),Ee.targetLinks.forEach(function(Fe){Fe.y1=Ne+Fe.width/2,Ne+=Fe.width})})}return ae};function _(m){return[m.source.x1,m.y0]}function C(m){return[m.target.x0,m.y1]}var S=function(){return n.linkHorizontal().source(_).target(C)};e.sankey=L,e.sankeyCenter=u,e.sankeyLeft=a,e.sankeyRight=o,e.sankeyJustify=s,e.sankeyLinkHorizontal=S,Object.defineProperty(e,"__esModule",{value:!0})})});var sXe=Te((U2r,oXe)=>{var tYt=$J();oXe.exports=function(t,r){var n=[],i=[],a=[],o={},s=[],u;function l(E){a[E]=!1,o.hasOwnProperty(E)&&Object.keys(o[E]).forEach(function(T){delete o[E][T],a[T]&&l(T)})}function f(E){var T=!1;i.push(E),a[E]=!0;var L,_;for(L=0;L=E})}function d(E){h(E);for(var T=t,L=tYt(T),_=L.components.filter(function(F){return F.length>1}),C=1/0,S,m=0;m<_.length;m++)for(var P=0;P<_[m].length;P++)_[m][P]{(function(e,t){typeof zB=="object"&&typeof lXe!="undefined"?t(zB,ik(),SB(),QJ(),sXe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,null)})(zB,function(e,t,r,n,i){"use strict";i=i&&i.hasOwnProperty("default")?i.default:i;function a(it){return it.target.depth}function o(it){return it.depth}function s(it,Ye){return Ye-1-it.height}function u(it,Ye){return it.sourceLinks.length?it.depth:Ye-1}function l(it){return it.targetLinks.length?it.depth:it.sourceLinks.length?t.min(it.sourceLinks,a)-1:0}function f(it){return function(){return it}}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(it){return typeof it}:function(it){return it&&typeof Symbol=="function"&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it};function h(it,Ye){return p(it.source,Ye.source)||it.index-Ye.index}function d(it,Ye){return p(it.target,Ye.target)||it.index-Ye.index}function p(it,Ye){return it.partOfCycle===Ye.partOfCycle?it.y0-Ye.y0:it.circularLinkType==="top"||Ye.circularLinkType==="bottom"?-1:1}function x(it){return it.value}function b(it){return(it.y0+it.y1)/2}function v(it){return b(it.source)}function k(it){return b(it.target)}function E(it){return it.index}function T(it){return it.nodes}function L(it){return it.links}function _(it,Ye){var kt=it.get(Ye);if(!kt)throw new Error("missing: "+Ye);return kt}function C(it,Ye){return Ye(it)}var S=25,m=10,P=.3;function A(){var it=0,Ye=0,kt=1,Tt=1,St=24,Dt,Zt=E,Et=u,Ae=T,at=L,wt=32,vt=2,st,Ue=null;function rt(){var Ie={nodes:Ae.apply(null,arguments),links:at.apply(null,arguments)};$e(Ie),B(Ie,Zt,Ue),zt(Ie),yr(Ie),F(Ie,Zt),br(Ie,wt,Zt),Ut(Ie);for(var xe=4,Oe=0;Oe0?xe+S+m:xe,Oe=Oe>0?Oe+S+m:Oe,Re=Re>0?Re+S+m:Re,De=De>0?De+S+m:De,{top:xe,bottom:Oe,left:De,right:Re}}function hr(Ie,xe){var Oe=t.max(Ie.nodes,function(dt){return dt.column}),Re=kt-it,De=Tt-Ye,ct=Re+xe.right+xe.left,ge=De+xe.top+xe.bottom,fe=Re/ct,de=De/ge;return it=it*fe+xe.left,kt=xe.right==0?kt:kt*fe,Ye=Ye*de+xe.top,Tt=Tt*de,Ie.nodes.forEach(function(dt){dt.x0=it+dt.column*((kt-it-St)/Oe),dt.x1=dt.x0+St}),de}function yr(Ie){var xe,Oe,Re;for(xe=Ie.nodes,Oe=[],Re=0;xe.length;++Re,xe=Oe,Oe=[])xe.forEach(function(De){De.depth=Re,De.sourceLinks.forEach(function(ct){Oe.indexOf(ct.target)<0&&!ct.circular&&Oe.push(ct.target)})});for(xe=Ie.nodes,Oe=[],Re=0;xe.length;++Re,xe=Oe,Oe=[])xe.forEach(function(De){De.height=Re,De.targetLinks.forEach(function(ct){Oe.indexOf(ct.source)<0&&!ct.circular&&Oe.push(ct.source)})});Ie.nodes.forEach(function(De){De.column=Math.floor(Et.call(null,De,Re))})}function br(Ie,xe,Oe){var Re=r.nest().key(function(dt){return dt.column}).sortKeys(t.ascending).entries(Ie.nodes).map(function(dt){return dt.values});ge(Oe),de();for(var De=1,ct=xe;ct>0;--ct)fe(De*=.99,Oe),de();function ge(dt){if(st){var It=1/0;Re.forEach(function(Dr){var Mr=Tt*st/(Dr.length+1);It=Mr0))if(Dr==0&&Hr==1)Fr=Mr.y1-Mr.y0,Mr.y0=Tt/2-Fr/2,Mr.y1=Tt/2+Fr/2;else if(Dr==Pt-1&&Hr==1)Fr=Mr.y1-Mr.y0,Mr.y0=Tt/2-Fr/2,Mr.y1=Tt/2+Fr/2;else{var di=0,Di=t.mean(Mr.sourceLinks,k),Ii=t.mean(Mr.targetLinks,v);Di&&Ii?di=(Di+Ii)/2:di=Di||Ii;var Ci=(di-b(Mr))*dt;Mr.y0+=Ci,Mr.y1+=Ci}})})}function de(){Re.forEach(function(dt){var It,Pt,rr=Ye,Hr=dt.length,Dr;for(dt.sort(p),Dr=0;Dr0&&(It.y0+=Pt,It.y1+=Pt),rr=It.y1+Dt;if(Pt=rr-Dt-Tt,Pt>0)for(rr=It.y0-=Pt,It.y1-=Pt,Dr=Hr-2;Dr>=0;--Dr)It=dt[Dr],Pt=It.y1+Dt-rr,Pt>0&&(It.y0-=Pt,It.y1-=Pt),rr=It.y0})}}function Ut(Ie){Ie.nodes.forEach(function(xe){xe.sourceLinks.sort(d),xe.targetLinks.sort(h)}),Ie.nodes.forEach(function(xe){var Oe=xe.y0,Re=Oe,De=xe.y1,ct=De;xe.sourceLinks.forEach(function(ge){ge.circular?(ge.y0=De-ge.width/2,De=De-ge.width):(ge.y0=Oe+ge.width/2,Oe+=ge.width)}),xe.targetLinks.forEach(function(ge){ge.circular?(ge.y1=ct-ge.width/2,ct=ct-ge.width):(ge.y1=Re+ge.width/2,Re+=ge.width)})})}return rt}function B(it,Ye,kt){var Tt=0;if(kt===null){for(var St=[],Dt=0;DtYe.source.column)}function j(it,Ye){var kt=0;it.sourceLinks.forEach(function(St){kt=St.circular&&!gt(St,Ye)?kt+1:kt});var Tt=0;return it.targetLinks.forEach(function(St){Tt=St.circular&&!gt(St,Ye)?Tt+1:Tt}),kt+Tt}function H(it){var Ye=it.source.sourceLinks,kt=0;Ye.forEach(function(Dt){kt=Dt.circular?kt+1:kt});var Tt=it.target.targetLinks,St=0;return Tt.forEach(function(Dt){St=Dt.circular?St+1:St}),!(kt>1||St>1)}function N(it,Ye,kt){return it.sort(ae),it.forEach(function(Tt,St){var Dt=0;if(gt(Tt,kt)&&H(Tt))Tt.circularPathData.verticalBuffer=Dt+Tt.width/2;else{var Zt=0;for(Zt;ZtDt?Et:Dt}Tt.circularPathData.verticalBuffer=Dt+Tt.width/2}}),it}function W(it,Ye,kt,Tt){var St=5,Dt=t.min(it.links,function(Ae){return Ae.source.y0});it.links.forEach(function(Ae){Ae.circular&&(Ae.circularPathData={})});var Zt=it.links.filter(function(Ae){return Ae.circularLinkType=="top"});N(Zt,Ye,Tt);var Et=it.links.filter(function(Ae){return Ae.circularLinkType=="bottom"});N(Et,Ye,Tt),it.links.forEach(function(Ae){if(Ae.circular){if(Ae.circularPathData.arcRadius=Ae.width+m,Ae.circularPathData.leftNodeBuffer=St,Ae.circularPathData.rightNodeBuffer=St,Ae.circularPathData.sourceWidth=Ae.source.x1-Ae.source.x0,Ae.circularPathData.sourceX=Ae.source.x0+Ae.circularPathData.sourceWidth,Ae.circularPathData.targetX=Ae.target.x0,Ae.circularPathData.sourceY=Ae.y0,Ae.circularPathData.targetY=Ae.y1,gt(Ae,Tt)&&H(Ae))Ae.circularPathData.leftSmallArcRadius=m+Ae.width/2,Ae.circularPathData.leftLargeArcRadius=m+Ae.width/2,Ae.circularPathData.rightSmallArcRadius=m+Ae.width/2,Ae.circularPathData.rightLargeArcRadius=m+Ae.width/2,Ae.circularLinkType=="bottom"?(Ae.circularPathData.verticalFullExtent=Ae.source.y1+S+Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.rightLargeArcRadius):(Ae.circularPathData.verticalFullExtent=Ae.source.y0-S-Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.rightLargeArcRadius);else{var at=Ae.source.column,wt=Ae.circularLinkType,vt=it.links.filter(function(rt){return rt.source.column==at&&rt.circularLinkType==wt});Ae.circularLinkType=="bottom"?vt.sort(Ce):vt.sort(be);var st=0;vt.forEach(function(rt,$e){rt.circularLinkID==Ae.circularLinkID&&(Ae.circularPathData.leftSmallArcRadius=m+Ae.width/2+st,Ae.circularPathData.leftLargeArcRadius=m+Ae.width/2+$e*Ye+st),st=st+rt.width}),at=Ae.target.column,vt=it.links.filter(function(rt){return rt.target.column==at&&rt.circularLinkType==wt}),Ae.circularLinkType=="bottom"?vt.sort(pe):vt.sort(Le),st=0,vt.forEach(function(rt,$e){rt.circularLinkID==Ae.circularLinkID&&(Ae.circularPathData.rightSmallArcRadius=m+Ae.width/2+st,Ae.circularPathData.rightLargeArcRadius=m+Ae.width/2+$e*Ye+st),st=st+rt.width}),Ae.circularLinkType=="bottom"?(Ae.circularPathData.verticalFullExtent=Math.max(kt,Ae.source.y1,Ae.target.y1)+S+Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent-Ae.circularPathData.rightLargeArcRadius):(Ae.circularPathData.verticalFullExtent=Dt-S-Ae.circularPathData.verticalBuffer,Ae.circularPathData.verticalLeftInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.leftLargeArcRadius,Ae.circularPathData.verticalRightInnerExtent=Ae.circularPathData.verticalFullExtent+Ae.circularPathData.rightLargeArcRadius)}Ae.circularPathData.leftInnerExtent=Ae.circularPathData.sourceX+Ae.circularPathData.leftNodeBuffer,Ae.circularPathData.rightInnerExtent=Ae.circularPathData.targetX-Ae.circularPathData.rightNodeBuffer,Ae.circularPathData.leftFullExtent=Ae.circularPathData.sourceX+Ae.circularPathData.leftLargeArcRadius+Ae.circularPathData.leftNodeBuffer,Ae.circularPathData.rightFullExtent=Ae.circularPathData.targetX-Ae.circularPathData.rightLargeArcRadius-Ae.circularPathData.rightNodeBuffer}if(Ae.circular)Ae.path=re(Ae);else{var Ue=n.linkHorizontal().source(function(rt){var $e=rt.source.x0+(rt.source.x1-rt.source.x0),zt=rt.y0;return[$e,zt]}).target(function(rt){var $e=rt.target.x0,zt=rt.y1;return[$e,zt]});Ae.path=Ue(Ae)}})}function re(it){var Ye="";return it.circularLinkType=="top"?Ye="M"+it.circularPathData.sourceX+" "+it.circularPathData.sourceY+" L"+it.circularPathData.leftInnerExtent+" "+it.circularPathData.sourceY+" A"+it.circularPathData.leftLargeArcRadius+" "+it.circularPathData.leftSmallArcRadius+" 0 0 0 "+it.circularPathData.leftFullExtent+" "+(it.circularPathData.sourceY-it.circularPathData.leftSmallArcRadius)+" L"+it.circularPathData.leftFullExtent+" "+it.circularPathData.verticalLeftInnerExtent+" A"+it.circularPathData.leftLargeArcRadius+" "+it.circularPathData.leftLargeArcRadius+" 0 0 0 "+it.circularPathData.leftInnerExtent+" "+it.circularPathData.verticalFullExtent+" L"+it.circularPathData.rightInnerExtent+" "+it.circularPathData.verticalFullExtent+" A"+it.circularPathData.rightLargeArcRadius+" "+it.circularPathData.rightLargeArcRadius+" 0 0 0 "+it.circularPathData.rightFullExtent+" "+it.circularPathData.verticalRightInnerExtent+" L"+it.circularPathData.rightFullExtent+" "+(it.circularPathData.targetY-it.circularPathData.rightSmallArcRadius)+" A"+it.circularPathData.rightLargeArcRadius+" "+it.circularPathData.rightSmallArcRadius+" 0 0 0 "+it.circularPathData.rightInnerExtent+" "+it.circularPathData.targetY+" L"+it.circularPathData.targetX+" "+it.circularPathData.targetY:Ye="M"+it.circularPathData.sourceX+" "+it.circularPathData.sourceY+" L"+it.circularPathData.leftInnerExtent+" "+it.circularPathData.sourceY+" A"+it.circularPathData.leftLargeArcRadius+" "+it.circularPathData.leftSmallArcRadius+" 0 0 1 "+it.circularPathData.leftFullExtent+" "+(it.circularPathData.sourceY+it.circularPathData.leftSmallArcRadius)+" L"+it.circularPathData.leftFullExtent+" "+it.circularPathData.verticalLeftInnerExtent+" A"+it.circularPathData.leftLargeArcRadius+" "+it.circularPathData.leftLargeArcRadius+" 0 0 1 "+it.circularPathData.leftInnerExtent+" "+it.circularPathData.verticalFullExtent+" L"+it.circularPathData.rightInnerExtent+" "+it.circularPathData.verticalFullExtent+" A"+it.circularPathData.rightLargeArcRadius+" "+it.circularPathData.rightLargeArcRadius+" 0 0 1 "+it.circularPathData.rightFullExtent+" "+it.circularPathData.verticalRightInnerExtent+" L"+it.circularPathData.rightFullExtent+" "+(it.circularPathData.targetY+it.circularPathData.rightSmallArcRadius)+" A"+it.circularPathData.rightLargeArcRadius+" "+it.circularPathData.rightSmallArcRadius+" 0 0 1 "+it.circularPathData.rightInnerExtent+" "+it.circularPathData.targetY+" L"+it.circularPathData.targetX+" "+it.circularPathData.targetY,Ye}function ae(it,Ye){return te(it)==te(Ye)?it.circularLinkType=="bottom"?Ce(it,Ye):be(it,Ye):te(Ye)-te(it)}function be(it,Ye){return it.y0-Ye.y0}function Ce(it,Ye){return Ye.y0-it.y0}function Le(it,Ye){return it.y1-Ye.y1}function pe(it,Ye){return Ye.y1-it.y1}function te(it){return it.target.column-it.source.column}function ke(it){return it.target.x0-it.source.x1}function Ee(it,Ye){var kt=U(it),Tt=ke(Ye)/Math.tan(kt),St=nt(it)=="up"?it.y1+Tt:it.y1-Tt;return St}function Me(it,Ye){var kt=U(it),Tt=ke(Ye)/Math.tan(kt),St=nt(it)=="up"?it.y1-Tt:it.y1+Tt;return St}function Ne(it,Ye,kt,Tt){it.links.forEach(function(St){if(!St.circular&&St.target.column-St.source.column>1){var Dt=St.source.column+1,Zt=St.target.column-1,Et=1,Ae=Zt-Dt+1;for(Et=1;Dt<=Zt;Dt++,Et++)it.nodes.forEach(function(at){if(at.column==Dt){var wt=Et/(Ae+1),vt=Math.pow(1-wt,3),st=3*wt*Math.pow(1-wt,2),Ue=3*Math.pow(wt,2)*(1-wt),rt=Math.pow(wt,3),$e=vt*St.y0+st*St.y0+Ue*St.y1+rt*St.y1,zt=$e-St.width/2,Yt=$e+St.width/2,hr;zt>at.y0&&ztat.y0&&Ytat.y1&&ye(yr,hr,Ye,kt)})):ztat.y1&&(hr=Yt-at.y0+10,at=ye(at,hr,Ye,kt),it.nodes.forEach(function(yr){C(yr,Tt)==C(at,Tt)||yr.column!=at.column||yr.y0at.y1&&ye(yr,hr,Ye,kt)}))}})}})}function Fe(it,Ye){return it.y0>Ye.y0&&it.y0Ye.y0&&it.y1Ye.y1}function ye(it,Ye,kt,Tt){return it.y0+Ye>=kt&&it.y1+Ye<=Tt&&(it.y0=it.y0+Ye,it.y1=it.y1+Ye,it.targetLinks.forEach(function(St){St.y1=St.y1+Ye}),it.sourceLinks.forEach(function(St){St.y0=St.y0+Ye})),it}function Ve(it,Ye,kt,Tt){it.nodes.forEach(function(St){Tt&&St.y+(St.y1-St.y0)>Ye&&(St.y=St.y-(St.y+(St.y1-St.y0)-Ye));var Dt=it.links.filter(function(Ae){return C(Ae.source,kt)==C(St,kt)}),Zt=Dt.length;Zt>1&&Dt.sort(function(Ae,at){if(!Ae.circular&&!at.circular){if(Ae.target.column==at.target.column)return Ae.y1-at.y1;if(Je(Ae,at)){if(Ae.target.column>at.target.column){var wt=Me(at,Ae);return Ae.y1-wt}if(at.target.column>Ae.target.column){var vt=Me(Ae,at);return vt-at.y1}}else return Ae.y1-at.y1}if(Ae.circular&&!at.circular)return Ae.circularLinkType=="top"?-1:1;if(at.circular&&!Ae.circular)return at.circularLinkType=="top"?1:-1;if(Ae.circular&&at.circular)return Ae.circularLinkType===at.circularLinkType&&Ae.circularLinkType=="top"?Ae.target.column===at.target.column?Ae.target.y1-at.target.y1:at.target.column-Ae.target.column:Ae.circularLinkType===at.circularLinkType&&Ae.circularLinkType=="bottom"?Ae.target.column===at.target.column?at.target.y1-Ae.target.y1:Ae.target.column-at.target.column:Ae.circularLinkType=="top"?-1:1});var Et=St.y0;Dt.forEach(function(Ae){Ae.y0=Et+Ae.width/2,Et=Et+Ae.width}),Dt.forEach(function(Ae,at){if(Ae.circularLinkType=="bottom"){var wt=at+1,vt=0;for(wt;wt1&&St.sort(function(Et,Ae){if(!Et.circular&&!Ae.circular){if(Et.source.column==Ae.source.column)return Et.y0-Ae.y0;if(Je(Et,Ae)){if(Ae.source.column0?"up":"down"}function gt(it,Ye){return C(it.source,Ye)==C(it.target,Ye)}function Nt(it,Ye,kt){var Tt=it.nodes,St=it.links,Dt=!1,Zt=!1;if(St.forEach(function(st){st.circularLinkType=="top"?Dt=!0:st.circularLinkType=="bottom"&&(Zt=!0)}),Dt==!1||Zt==!1){var Et=t.min(Tt,function(st){return st.y0}),Ae=t.max(Tt,function(st){return st.y1}),at=Ae-Et,wt=kt-Ye,vt=wt/at;Tt.forEach(function(st){var Ue=(st.y1-st.y0)*vt;st.y0=(st.y0-Et)*vt,st.y1=st.y0+Ue}),St.forEach(function(st){st.y0=(st.y0-Et)*vt,st.y1=(st.y1-Et)*vt,st.width=st.width*vt})}}e.sankeyCircular=A,e.sankeyCenter=l,e.sankeyLeft=o,e.sankeyRight=s,e.sankeyJustify=u,Object.defineProperty(e,"__esModule",{value:!0})})});var e$=Te((V2r,fXe)=>{"use strict";fXe.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}});var AXe=Te((G2r,wXe)=>{"use strict";var cXe=eXe(),rYt=(I2(),q1(z2)).interpolateNumber,LS=Jl(),Yk=aXe(),iYt=uXe(),dc=e$(),PS=cd(),aw=jl(),nYt=Mu(),v1=ei(),i$=v1.strTranslate,aYt=v1.strRotate,n$=Ky(),Kk=n$.keyFun,IB=n$.repeat,yXe=n$.unwrap,hXe=Zf(),oYt=$l(),gXe=Qh(),sYt=gXe.CAP_SHIFT,lYt=gXe.LINE_SPACING,uYt=3;function fYt(e,t,r){var n=yXe(t),i=n.trace,a=i.domain,o=i.orientation==="h",s=i.node.pad,u=i.node.thickness,l={justify:Yk.sankeyJustify,left:Yk.sankeyLeft,right:Yk.sankeyRight,center:Yk.sankeyCenter}[i.node.align],f=e.width*(a.x[1]-a.x[0]),c=e.height*(a.y[1]-a.y[0]),h=n._nodes,d=n._links,p=n.circular,x;p?x=iYt.sankeyCircular().circularLinkGap(0):x=Yk.sankey(),x.iterations(dc.sankeyIterations).size(o?[f,c]:[c,f]).nodeWidth(u).nodePadding(s).nodeId(function(U){return U.pointNumber}).nodeAlign(l).nodes(h).links(d);var b=x();x.nodePadding()=N||(H=N-j.y0,H>1e-6&&(j.y0+=H,j.y1+=H)),N=j.y1+s})}function P(U){var G=U.map(function(be,Ce){return{x0:be.x0,index:Ce}}).sort(function(be,Ce){return be.x0-Ce.x0}),j=[],H=-1,N,W=-1/0,re;for(v=0;vW+u&&(H+=1,N=ae.x0),W=ae.x0,j[H]||(j[H]=[]),j[H].push(ae),re=N-ae.x0,ae.x0+=re,ae.x1+=re}return j}if(i.node.x.length&&i.node.y.length){for(v=0;v0?" L "+i.targetX+" "+i.targetY:"")+"Z"):(r="M "+(i.targetX-t)+" "+(i.targetY-n)+" L "+(i.rightInnerExtent-t)+" "+(i.targetY-n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightSmallArcRadius+n)+" 0 0 0 "+(i.rightFullExtent-n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" L "+(i.rightFullExtent-n-t)+" "+i.verticalRightInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-n-t)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent+n-t-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:a?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent-t-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.leftFullExtent+n+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent+n)+" L "+i.leftInnerExtent+" "+(i.verticalFullExtent+n)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent,r+=" L "+(i.leftFullExtent+n)+" "+(i.sourceY+i.leftSmallArcRadius)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftSmallArcRadius+n)+" 0 0 0 "+i.leftInnerExtent+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY+n)+" L "+i.leftInnerExtent+" "+(i.sourceY+n)+" A "+(i.leftLargeArcRadius-n)+" "+(i.leftSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n)+" "+(i.sourceY+i.leftSmallArcRadius)+" L "+(i.leftFullExtent-n)+" "+i.verticalLeftInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.rightFullExtent+n-t+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:a?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent-t-n)+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:r+=" A "+(i.leftLargeArcRadius-n)+" "+(i.leftLargeArcRadius-n)+" 0 0 1 "+i.leftInnerExtent+" "+(i.verticalFullExtent-n)+" L "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightLargeArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent,r+=" L "+(i.rightFullExtent+n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightInnerExtent-t)+" "+(i.targetY+n)+" L "+(i.targetX-t)+" "+(i.targetY+n)+(t>0?" L "+i.targetX+" "+i.targetY:"")+"Z"),r}function a$(){var e=.5;function t(r){var n=r.linkArrowLength;if(r.link.circular)return hYt(r.link,n);var i=Math.abs((r.link.target.x0-r.link.source.x1)/2);n>i&&(n=i);var a=r.link.source.x1,o=r.link.target.x0-n,s=rYt(a,o),u=s(e),l=s(1-e),f=r.link.y0-r.link.width/2,c=r.link.y0+r.link.width/2,h=r.link.y1-r.link.width/2,d=r.link.y1+r.link.width/2,p="M"+a+","+f,x="C"+u+","+f+" "+l+","+h+" "+o+","+h,b="C"+l+","+d+" "+u+","+c+" "+a+","+c,v=n>0?"L"+(o+n)+","+(h+r.link.width/2):"";return v+="L"+o+","+d,p+x+v+b+"Z"}return t}function dYt(e,t){var r=PS(t.color),n=dc.nodePadAcross,i=e.nodePad/2;t.dx=t.x1-t.x0,t.dy=t.y1-t.y0;var a=t.dx,o=Math.max(.5,t.dy),s="node_"+t.pointNumber;return t.group&&(s=v1.randstr()),t.trace=e.trace,t.curveNumber=e.trace.index,{index:t.pointNumber,key:s,partOfGroup:t.partOfGroup||!1,group:t.group,traceId:e.key,trace:e.trace,node:t,nodePad:e.nodePad,nodeLineColor:e.nodeLineColor,nodeLineWidth:e.nodeLineWidth,textFont:e.textFont,size:e.horizontal?e.height:e.width,visibleWidth:Math.ceil(a),visibleHeight:o,zoneX:-n,zoneY:-i,zoneWidth:a+2*n,zoneHeight:o+2*i,labelY:e.horizontal?t.dy/2+1:t.dx/2+1,left:t.originalLayer===1,sizeAcross:e.width,forceLayouts:e.forceLayouts,horizontal:e.horizontal,darkBackground:r.getBrightness()<=128,tinyColorHue:aw.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,graph:e.graph,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,s].join("_"),interactionState:e.interactionState,figure:e}}function r$(e){e.attr("transform",function(t){return i$(t.node.x0.toFixed(3),t.node.y0.toFixed(3))})}function pYt(e){e.call(r$)}function _Xe(e,t){e.call(pYt),t.attr("d",a$())}function dXe(e){e.attr("width",function(t){return t.node.x1-t.node.x0}).attr("height",function(t){return t.visibleHeight})}function t$(e){return e.link.width>1||e.linkLineWidth>0}function pXe(e){var t=i$(e.translateX,e.translateY);return t+(e.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function vXe(e,t,r){e.on(".basic",null).on("mouseover.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.hover(this,n,t),n.interactionState.hovered=[this,n])}).on("mousemove.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.follow(this,n),n.interactionState.hovered=[this,n])}).on("mouseout.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.unhover(this,n,t),n.interactionState.hovered=!1)}).on("click.basic",function(n){n.interactionState.hovered&&(r.unhover(this,n,t),n.interactionState.hovered=!1),!n.interactionState.dragInProgress&&!n.partOfGroup&&r.select(this,n,t)})}function vYt(e,t,r,n){var i=LS.behavior.drag().origin(function(a){return{x:a.node.x0+a.visibleWidth/2,y:a.node.y0+a.visibleHeight/2}}).on("dragstart",function(a){if(a.arrangement!=="fixed"&&(v1.ensureSingle(n._fullLayout._infolayer,"g","dragcover",function(s){n._fullLayout._dragCover=s}),v1.raiseToTop(this),a.interactionState.dragInProgress=a.node,mXe(a.node),a.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,a.interactionState.hovered),a.interactionState.hovered=!1),a.arrangement==="snap")){var o=a.traceId+"|"+a.key;a.forceLayouts[o]?a.forceLayouts[o].alpha(1):mYt(e,o,a,n),yYt(e,t,a,o,n)}}).on("drag",function(a){if(a.arrangement!=="fixed"){var o=LS.event.x,s=LS.event.y;a.arrangement==="snap"?(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2,a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2):(a.arrangement==="freeform"&&(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2),s=Math.max(0,Math.min(a.size-a.visibleHeight/2,s)),a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2),mXe(a.node),a.arrangement!=="snap"&&(a.sankey.update(a.graph),_Xe(e.filter(bXe(a)),t))}}).on("dragend",function(a){if(a.arrangement!=="fixed"){a.interactionState.dragInProgress=!1;for(var o=0;o0)window.requestAnimationFrame(a);else{var u=r.node.originalX;r.node.x0=u-r.visibleWidth/2,r.node.x1=u+r.visibleWidth/2,xXe(r,i)}})}function gYt(e,t,r,n){return function(){for(var a=0,o=0;o0&&n.forceLayouts[t].alpha(0)}}function xXe(e,t){for(var r=[],n=[],i=0;i{"use strict";var Xp=Jl(),s$=ei(),RB=s$.numberFormat,wYt=AXe(),zS=Xc(),AYt=jl(),Sx=e$().cn,Jk=s$._;function TXe(e){return e!==""}function IS(e,t){return e.filter(function(r){return r.key===t.traceId})}function SXe(e,t){Xp.select(e).select("path").style("fill-opacity",t),Xp.select(e).select("rect").style("fill-opacity",t)}function MXe(e){Xp.select(e).select("text.name").style("fill","black")}function EXe(e){return function(t){return e.node.sourceLinks.indexOf(t.link)!==-1||e.node.targetLinks.indexOf(t.link)!==-1}}function kXe(e){return function(t){return t.node.sourceLinks.indexOf(e.link)!==-1||t.node.targetLinks.indexOf(e.link)!==-1}}function CXe(e,t,r){t&&r&&IS(r,t).selectAll("."+Sx.sankeyLink).filter(EXe(t)).call(LXe.bind(0,t,r,!1))}function o$(e,t,r){t&&r&&IS(r,t).selectAll("."+Sx.sankeyLink).filter(EXe(t)).call(PXe.bind(0,t,r,!1))}function LXe(e,t,r,n){n.style("fill",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverHue}).style("fill-opacity",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverAlpha}),n.each(function(i){var a=i.link.label;a!==""&&IS(t,e).selectAll("."+Sx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverHue}).style("fill-opacity",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverAlpha})}),r&&IS(t,e).selectAll("."+Sx.sankeyNode).filter(kXe(e)).call(CXe)}function PXe(e,t,r,n){n.style("fill",function(i){return i.tinyColorHue}).style("fill-opacity",function(i){return i.tinyColorAlpha}),n.each(function(i){var a=i.link.label;a!==""&&IS(t,e).selectAll("."+Sx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){return o.tinyColorHue}).style("fill-opacity",function(o){return o.tinyColorAlpha})}),r&&IS(t,e).selectAll(Sx.sankeyNode).filter(kXe(e)).call(o$)}function th(e,t){var r=e.hoverlabel||{},n=s$.nestedProperty(r,t).get();return Array.isArray(n)?!1:n}zXe.exports=function(t,r){for(var n=t._fullLayout,i=n._paper,a=n._size,o=0;o"),color:th(C,"bgcolor")||AYt.addOpacity(B.color,1),borderColor:th(C,"bordercolor"),fontFamily:th(C,"font.family"),fontSize:th(C,"font.size"),fontColor:th(C,"font.color"),fontWeight:th(C,"font.weight"),fontStyle:th(C,"font.style"),fontVariant:th(C,"font.variant"),fontTextcase:th(C,"font.textcase"),fontLineposition:th(C,"font.lineposition"),fontShadow:th(C,"font.shadow"),nameLength:th(C,"namelength"),textAlign:th(C,"align"),idealAlign:Xp.event.x"),color:th(C,"bgcolor")||_.tinyColorHue,borderColor:th(C,"bordercolor"),fontFamily:th(C,"font.family"),fontSize:th(C,"font.size"),fontColor:th(C,"font.color"),fontWeight:th(C,"font.weight"),fontStyle:th(C,"font.style"),fontVariant:th(C,"font.variant"),fontTextcase:th(C,"font.textcase"),fontLineposition:th(C,"font.lineposition"),fontShadow:th(C,"font.shadow"),nameLength:th(C,"namelength"),textAlign:th(C,"align"),idealAlign:"left",hovertemplate:C.hovertemplate,hovertemplateLabels:U,eventData:[_.node]},{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:t});SXe(H,.85),MXe(H)}}},T=function(L,_,C){t._fullLayout.hovermode!==!1&&(Xp.select(L).call(o$,_,C),_.node.trace.node.hoverinfo!=="skip"&&(_.node.fullData=_.node.trace,t.emit("plotly_unhover",{event:Xp.event,points:[_.node]})),zS.loneUnhover(n._hoverlayer.node()))};wYt(t,i,r,{width:a.w,height:a.h,margin:{t:a.t,r:a.r,b:a.b,l:a.l}},{linkEvents:{hover:l,follow:x,unhover:b,select:u},nodeEvents:{hover:k,follow:E,unhover:T,select:v}})}});var IXe=Te(ow=>{"use strict";var TYt=Sc().overrideAll,SYt=Rd().getModuleCalcData,MYt=l$(),EYt=N1(),kYt=Am(),CYt=gp(),LYt=ah().prepSelect,u$=ei(),PYt=$l(),DB="sankey";ow.name=DB;ow.baseLayoutAttrOverrides=TYt({hoverlabel:EYt.hoverlabel},"plot","nested");ow.plot=function(e){var t=SYt(e.calcdata,DB)[0];MYt(e,t),ow.updateFx(e)};ow.clean=function(e,t,r,n){var i=n._has&&n._has(DB),a=t._has&&t._has(DB);i&&!a&&(n._paperdiv.selectAll(".sankey").remove(),n._paperdiv.selectAll(".bgsankey").remove())};ow.updateFx=function(e){for(var t=0;t{"use strict";RXe.exports=function(t,r){for(var n=t.cd,i=[],a=n[0].trace,o=a._sankey.graph.nodes,s=0;s{"use strict";FXe.exports={attributes:JJ(),supplyDefaults:Nje(),calc:Wje(),plot:l$(),moduleType:"trace",name:"sankey",basePlotModule:IXe(),selectPoints:DXe(),categories:["noOpacity"],meta:{}}});var qXe=Te((Z2r,OXe)=>{"use strict";OXe.exports=BXe()});var UXe=Te(RS=>{"use strict";var NXe=Cc();RS.name="indicator";RS.plot=function(e,t,r,n){NXe.plotBasePlot(RS.name,e,t,r,n)};RS.clean=function(e,t,r,n){NXe.cleanBasePlot(RS.name,e,t,r,n)}});var c$=Te((K2r,XXe)=>{"use strict";var Mx=Su().extendFlat,GXe=Su().extendDeep,IYt=Sc().overrideAll,HXe=gc(),WXe=Ih(),RYt=zc().attributes,lh=Dd(),DYt=Pf().templatedArray,FB=GA(),VXe=jc().descriptionOnlyNumbers,f$=HXe({editType:"plot",colorEditType:"plot"}),$k={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:WXe.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},jXe={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},FYt=DYt("step",GXe({},$k,{range:jXe}));XXe.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:RYt({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:Mx({},f$,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:VXe("value")},font:Mx({},f$,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:VXe("value")},increasing:{symbol:{valType:"string",dflt:FB.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:FB.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:FB.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:FB.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:Mx({},f$,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:GXe({},$k,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:WXe.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:IYt({range:jXe,visible:Mx({},lh.visible,{dflt:!0}),tickmode:lh.minor.tickmode,nticks:lh.nticks,tick0:lh.tick0,dtick:lh.dtick,tickvals:lh.tickvals,ticktext:lh.ticktext,ticks:Mx({},lh.ticks,{dflt:"outside"}),ticklen:lh.ticklen,tickwidth:lh.tickwidth,tickcolor:lh.tickcolor,ticklabelstep:lh.ticklabelstep,showticklabels:lh.showticklabels,labelalias:lh.labelalias,tickfont:HXe({}),tickangle:lh.tickangle,tickformat:lh.tickformat,tickformatstops:lh.tickformatstops,tickprefix:lh.tickprefix,showtickprefix:lh.showtickprefix,ticksuffix:lh.ticksuffix,showticksuffix:lh.showticksuffix,separatethousands:lh.separatethousands,exponentformat:lh.exponentformat,minexponent:lh.minexponent,showexponent:lh.showexponent,editType:"plot"},"plot"),steps:FYt,threshold:{line:{color:Mx({},$k.line.color,{}),width:Mx({},$k.line.width,{dflt:1}),editType:"plot"},thickness:Mx({},$k.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var h$=Te((J2r,ZXe)=>{"use strict";ZXe.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var JXe=Te(($2r,KXe)=>{"use strict";var eg=ei(),OB=c$(),BYt=zc().defaults,YXe=Pf(),OYt=Jd(),BB=h$(),qYt=xb(),NYt=A3(),UYt=t_(),VYt=r_();function GYt(e,t,r,n){function i(_,C){return eg.coerce(e,t,OB,_,C)}BYt(t,n,i),i("mode"),t._hasNumber=t.mode.indexOf("number")!==-1,t._hasDelta=t.mode.indexOf("delta")!==-1,t._hasGauge=t.mode.indexOf("gauge")!==-1;var a=i("value");t._range=[0,typeof a=="number"?1.5*a:1];var o=new Array(2),s;if(t._hasNumber){i("number.valueformat");var u=eg.extendFlat({},n.font);u.size=void 0,eg.coerceFont(i,"number.font",u),t.number.font.size===void 0&&(t.number.font.size=BB.defaultNumberFontSize,o[0]=!0),i("number.prefix"),i("number.suffix"),s=t.number.font.size}var l;if(t._hasDelta){var f=eg.extendFlat({},n.font);f.size=void 0,eg.coerceFont(i,"delta.font",f),t.delta.font.size===void 0&&(t.delta.font.size=(t._hasNumber?.5:1)*(s||BB.defaultNumberFontSize),o[1]=!0),i("delta.reference",t.value),i("delta.relative"),i("delta.valueformat",t.delta.relative?"2%":""),i("delta.increasing.symbol"),i("delta.increasing.color"),i("delta.decreasing.symbol"),i("delta.decreasing.color"),i("delta.position"),i("delta.prefix"),i("delta.suffix"),l=t.delta.font.size}t._scaleNumbers=(!t._hasNumber||o[0])&&(!t._hasDelta||o[1])||!1;var c=eg.extendFlat({},n.font);c.size=.25*(s||l||BB.defaultNumberFontSize),eg.coerceFont(i,"title.font",c),i("title.text");var h,d,p,x;function b(_,C){return eg.coerce(h,d,OB.gauge,_,C)}function v(_,C){return eg.coerce(p,x,OB.gauge.axis,_,C)}if(t._hasGauge){h=e.gauge,h||(h={}),d=YXe.newContainer(t,"gauge"),b("shape");var k=t._isBullet=t.gauge.shape==="bullet";k||i("title.align","center");var E=t._isAngular=t.gauge.shape==="angular";E||i("align","center"),b("bgcolor",n.paper_bgcolor),b("borderwidth"),b("bordercolor"),b("bar.color"),b("bar.line.color"),b("bar.line.width");var T=BB.valueThickness*(t.gauge.shape==="bullet"?.5:1);b("bar.thickness",T),OYt(h,d,{name:"steps",handleItemDefaults:HYt}),b("threshold.value"),b("threshold.thickness"),b("threshold.line.width"),b("threshold.line.color"),p={},h&&(p=h.axis||{}),x=YXe.newContainer(d,"axis"),v("visible"),t._range=v("range",t._range);var L={font:n.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};qYt(p,x,v,"linear"),VYt(p,x,v,"linear",L),UYt(p,x,v,"linear",L),NYt(p,x,v,L)}else i("title.align","center"),i("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function HYt(e,t){function r(n,i){return eg.coerce(e,t,OB.gauge.steps,n,i)}r("color"),r("line.color"),r("line.width"),r("range"),r("thickness")}KXe.exports={supplyDefaults:GYt}});var QXe=Te((Q2r,$Xe)=>{"use strict";function WYt(e,t){var r=[],n=t.value;typeof t._lastValue!="number"&&(t._lastValue=t.value);var i=t._lastValue,a=i;return t._hasDelta&&typeof t.delta.reference=="number"&&(a=t.delta.reference),r[0]={y:n,lastY:i,delta:n-a,relativeDelta:(n-a)/a},r}$Xe.exports={calc:WYt}});var aZe=Te((ewr,nZe)=>{"use strict";var cw=Jl(),jYt=(I2(),q1(z2)).interpolate,eZe=(I2(),q1(z2)).interpolateNumber,Ex=ei(),XYt=Ex.strScale,eC=Ex.strTranslate,ZYt=Ex.rad2deg,YYt=Qh().MID_SHIFT,fw=Mu(),sw=h$(),NB=Zf(),up=wu(),KYt=tE(),JYt=aI(),$Yt=Dd(),DS=jl(),d$={left:"start",center:"middle",right:"end"},lw={left:0,center:.5,right:1},tZe=/[yzafpnµmkMGTPEZY]/;function tC(e){return e&&e.duration>0}nZe.exports=function(t,r,n,i){var a=t._fullLayout,o;tC(n)&&i&&(o=i()),Ex.makeTraceGroups(a._indicatorlayer,r,"trace").each(function(s){var u=s[0],l=u.trace,f=cw.select(this),c=l._hasGauge,h=l._isAngular,d=l._isBullet,p=l.domain,x={w:a._size.w*(p.x[1]-p.x[0]),h:a._size.h*(p.y[1]-p.y[0]),l:a._size.l+a._size.w*p.x[0],r:a._size.r+a._size.w*(1-p.x[1]),t:a._size.t+a._size.h*(1-p.y[1]),b:a._size.b+a._size.h*p.y[0]},b=x.l+x.w/2,v=x.t+x.h/2,k=Math.min(x.w/2,x.h),E=sw.innerRadius*k,T,L,_,C=l.align||"center";if(L=v,!c)T=x.l+lw[C]*x.w,_=function(H){return rZe(H,x.w,x.h)};else if(h&&(T=b,L=v+k/2,_=function(H){return iKt(H,.9*E)}),d){var S=sw.bulletPadding,m=1-sw.bulletNumberDomainSize+S;T=x.l+(m+(1-m)*lw[C])*x.w,_=function(H){return rZe(H,(sw.bulletNumberDomainSize-S)*x.w,x.h)}}tKt(t,f,s,{numbersX:T,numbersY:L,numbersScaler:_,transitionOpts:n,onComplete:o});var P,A;c&&(P={range:l.gauge.axis.range,color:l.gauge.bgcolor,line:{color:l.gauge.bordercolor,width:0},thickness:1},A={range:l.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:l.gauge.bordercolor,width:l.gauge.borderwidth},thickness:1});var B=f.selectAll("g.angular").data(h?s:[]);B.exit().remove();var F=f.selectAll("g.angularaxis").data(h?s:[]);F.exit().remove(),h&&eKt(t,f,s,{radius:k,innerRadius:E,gauge:B,layer:F,size:x,gaugeBg:P,gaugeOutline:A,transitionOpts:n,onComplete:o});var U=f.selectAll("g.bullet").data(d?s:[]);U.exit().remove();var G=f.selectAll("g.bulletaxis").data(d?s:[]);G.exit().remove(),d&&QYt(t,f,s,{gauge:U,layer:G,size:x,gaugeBg:P,gaugeOutline:A,transitionOpts:n,onComplete:o});var j=f.selectAll("text.title").data(s);j.exit().remove(),j.enter().append("text").classed("title",!0),j.attr("text-anchor",function(){return d?d$.right:d$[l.title.align]}).text(l.title.text).call(fw.font,l.title.font).call(NB.convertToTspans,t),j.attr("transform",function(){var H=x.l+x.w*lw[l.title.align],N,W=sw.titlePadding,re=fw.bBox(j.node());if(c){if(h)if(l.gauge.axis.visible){var ae=fw.bBox(F.node());N=ae.top-W-re.bottom}else N=x.t+x.h/2-k/2-re.bottom-W;d&&(N=L-(re.top+re.bottom)/2,H=x.l-sw.bulletPadding*x.w)}else N=l._numbersTop-W-re.bottom;return eC(H,N)})})};function QYt(e,t,r,n){var i=r[0].trace,a=n.gauge,o=n.layer,s=n.gaugeBg,u=n.gaugeOutline,l=n.size,f=i.domain,c=n.transitionOpts,h=n.onComplete,d,p,x,b,v;a.enter().append("g").classed("bullet",!0),a.attr("transform",eC(l.l,l.t)),o.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),o.selectAll("g.xbulletaxistick,path,text").remove();var k=l.h,E=i.gauge.bar.thickness*k,T=f.x[0],L=f.x[0]+(f.x[1]-f.x[0])*(i._hasNumber||i._hasDelta?1-sw.bulletNumberDomainSize:1);d=Qk(e,i.gauge.axis),d._id="xbulletaxis",d.domain=[T,L],d.setScale(),p=up.calcTicks(d),x=up.makeTransTickFn(d),b=up.getTickSigns(d)[2],v=l.t+l.h,d.visible&&(up.drawTicks(e,d,{vals:d.ticks==="inside"?up.clipEnds(d,p):p,layer:o,path:up.makeTickPath(d,v,b),transFn:x}),up.drawLabels(e,d,{vals:p,layer:o,transFn:x,labelFns:up.makeLabelFns(d,v)}));function _(F){F.attr("width",function(U){return Math.max(0,d.c2p(U.range[1])-d.c2p(U.range[0]))}).attr("x",function(U){return d.c2p(U.range[0])}).attr("y",function(U){return .5*(1-U.thickness)*k}).attr("height",function(U){return U.thickness*k})}var C=[s].concat(i.gauge.steps),S=a.selectAll("g.bg-bullet").data(C);S.enter().append("g").classed("bg-bullet",!0).append("rect"),S.select("rect").call(_).call(uw),S.exit().remove();var m=a.selectAll("g.value-bullet").data([i.gauge.bar]);m.enter().append("g").classed("value-bullet",!0).append("rect"),m.select("rect").attr("height",E).attr("y",(k-E)/2).call(uw),tC(c)?m.select("rect").transition().duration(c.duration).ease(c.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()}).attr("width",Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y)))):m.select("rect").attr("width",typeof r[0].y=="number"?Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y))):0),m.exit().remove();var P=r.filter(function(){return i.gauge.threshold.value||i.gauge.threshold.value===0}),A=a.selectAll("g.threshold-bullet").data(P);A.enter().append("g").classed("threshold-bullet",!0).append("line"),A.select("line").attr("x1",d.c2p(i.gauge.threshold.value)).attr("x2",d.c2p(i.gauge.threshold.value)).attr("y1",(1-i.gauge.threshold.thickness)/2*k).attr("y2",(1-(1-i.gauge.threshold.thickness)/2)*k).call(DS.stroke,i.gauge.threshold.line.color).style("stroke-width",i.gauge.threshold.line.width),A.exit().remove();var B=a.selectAll("g.gauge-outline").data([u]);B.enter().append("g").classed("gauge-outline",!0).append("rect"),B.select("rect").call(_).call(uw),B.exit().remove()}function eKt(e,t,r,n){var i=r[0].trace,a=n.size,o=n.radius,s=n.innerRadius,u=n.gaugeBg,l=n.gaugeOutline,f=[a.l+a.w/2,a.t+a.h/2+o/2],c=n.gauge,h=n.layer,d=n.transitionOpts,p=n.onComplete,x=Math.PI/2;function b(be){var Ce=i.gauge.axis.range[0],Le=i.gauge.axis.range[1],pe=(be-Ce)/(Le-Ce)*Math.PI-x;return pe<-x?-x:pe>x?x:pe}function v(be){return cw.svg.arc().innerRadius((s+o)/2-be/2*(o-s)).outerRadius((s+o)/2+be/2*(o-s)).startAngle(-x)}function k(be){be.attr("d",function(Ce){return v(Ce.thickness).startAngle(b(Ce.range[0])).endAngle(b(Ce.range[1]))()})}var E,T,L,_;c.enter().append("g").classed("angular",!0),c.attr("transform",eC(f[0],f[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),E=Qk(e,i.gauge.axis),E.type="linear",E.range=i.gauge.axis.range,E._id="xangularaxis",E.ticklabeloverflow="allow",E.setScale();var C=function(be){return(E.range[0]-be.x)/(E.range[1]-E.range[0])*Math.PI+Math.PI},S={},m=up.makeLabelFns(E,0),P=m.labelStandoff;S.xFn=function(be){var Ce=C(be);return Math.cos(Ce)*P},S.yFn=function(be){var Ce=C(be),Le=Math.sin(Ce)>0?.2:1;return-Math.sin(Ce)*(P+be.fontSize*Le)+Math.abs(Math.cos(Ce))*(be.fontSize*YYt)},S.anchorFn=function(be){var Ce=C(be),Le=Math.cos(Ce);return Math.abs(Le)<.1?"middle":Le>0?"start":"end"},S.heightFn=function(be,Ce,Le){var pe=C(be);return-.5*(1+Math.sin(pe))*Le};var A=function(be){return eC(f[0]+o*Math.cos(be),f[1]-o*Math.sin(be))};L=function(be){return A(C(be))};var B=function(be){var Ce=C(be);return A(Ce)+"rotate("+-ZYt(Ce)+")"};if(T=up.calcTicks(E),_=up.getTickSigns(E)[2],E.visible){_=E.ticks==="inside"?-1:1;var F=(E.linewidth||1)/2;up.drawTicks(e,E,{vals:T,layer:h,path:"M"+_*F+",0h"+_*E.ticklen,transFn:B}),up.drawLabels(e,E,{vals:T,layer:h,transFn:L,labelFns:S})}var U=[u].concat(i.gauge.steps),G=c.selectAll("g.bg-arc").data(U);G.enter().append("g").classed("bg-arc",!0).append("path"),G.select("path").call(k).call(uw),G.exit().remove();var j=v(i.gauge.bar.thickness),H=c.selectAll("g.value-arc").data([i.gauge.bar]);H.enter().append("g").classed("value-arc",!0).append("path");var N=H.select("path");tC(d)?(N.transition().duration(d.duration).ease(d.easing).each("end",function(){p&&p()}).each("interrupt",function(){p&&p()}).attrTween("d",rKt(j,b(r[0].lastY),b(r[0].y))),i._lastValue=r[0].y):N.attr("d",typeof r[0].y=="number"?j.endAngle(b(r[0].y)):"M0,0Z"),N.call(uw),H.exit().remove(),U=[];var W=i.gauge.threshold.value;(W||W===0)&&U.push({range:[W,W],color:i.gauge.threshold.color,line:{color:i.gauge.threshold.line.color,width:i.gauge.threshold.line.width},thickness:i.gauge.threshold.thickness});var re=c.selectAll("g.threshold-arc").data(U);re.enter().append("g").classed("threshold-arc",!0).append("path"),re.select("path").call(k).call(uw),re.exit().remove();var ae=c.selectAll("g.gauge-outline").data([l]);ae.enter().append("g").classed("gauge-outline",!0).append("path"),ae.select("path").call(k).call(uw),ae.exit().remove()}function tKt(e,t,r,n){var i=r[0].trace,a=n.numbersX,o=n.numbersY,s=i.align||"center",u=d$[s],l=n.transitionOpts,f=n.onComplete,c=Ex.ensureSingle(t,"g","numbers"),h,d,p,x=[];i._hasNumber&&x.push("number"),i._hasDelta&&(x.push("delta"),i.delta.position==="left"&&x.reverse());var b=c.selectAll("text").data(x);b.enter().append("text"),b.attr("text-anchor",function(){return u}).attr("class",function(A){return A}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),b.exit().remove();function v(A,B,F,U){if(A.match("s")&&F>=0!=U>=0&&!B(F).slice(-1).match(tZe)&&!B(U).slice(-1).match(tZe)){var G=A.slice().replace("s","f").replace(/\d+/,function(H){return parseInt(H)-1}),j=Qk(e,{tickformat:G});return function(H){return Math.abs(H)<1?up.tickText(j,H).text:B(H)}}else return B}function k(){var A=Qk(e,{tickformat:i.number.valueformat},i._range);A.setScale(),up.prepTicks(A);var B=function(H){return up.tickText(A,H).text},F=i.number.suffix,U=i.number.prefix,G=c.select("text.number");function j(){var H=typeof r[0].y=="number"?U+B(r[0].y)+F:"-";G.text(H).call(fw.font,i.number.font).call(NB.convertToTspans,e)}return tC(l)?G.transition().duration(l.duration).ease(l.easing).each("end",function(){j(),f&&f()}).each("interrupt",function(){j(),f&&f()}).attrTween("text",function(){var H=cw.select(this),N=eZe(r[0].lastY,r[0].y);i._lastValue=r[0].y;var W=v(i.number.valueformat,B,r[0].lastY,r[0].y);return function(re){H.text(U+W(N(re))+F)}}):j(),h=iZe(U+B(r[0].y)+F,i.number.font,u,e),G}function E(){var A=Qk(e,{tickformat:i.delta.valueformat},i._range);A.setScale(),up.prepTicks(A);var B=function(re){return up.tickText(A,re).text},F=i.delta.suffix,U=i.delta.prefix,G=function(re){var ae=i.delta.relative?re.relativeDelta:re.delta;return ae},j=function(re,ae){return re===0||typeof re!="number"||isNaN(re)?"-":(re>0?i.delta.increasing.symbol:i.delta.decreasing.symbol)+U+ae(re)+F},H=function(re){return re.delta>=0?i.delta.increasing.color:i.delta.decreasing.color};i._deltaLastValue===void 0&&(i._deltaLastValue=G(r[0]));var N=c.select("text.delta");N.call(fw.font,i.delta.font).call(DS.fill,H({delta:i._deltaLastValue}));function W(){N.text(j(G(r[0]),B)).call(DS.fill,H(r[0])).call(NB.convertToTspans,e)}return tC(l)?N.transition().duration(l.duration).ease(l.easing).tween("text",function(){var re=cw.select(this),ae=G(r[0]),be=i._deltaLastValue,Ce=v(i.delta.valueformat,B,be,ae),Le=eZe(be,ae);return i._deltaLastValue=ae,function(pe){re.text(j(Le(pe),Ce)),re.call(DS.fill,H({delta:Le(pe)}))}}).each("end",function(){W(),f&&f()}).each("interrupt",function(){W(),f&&f()}):W(),d=iZe(j(G(r[0]),B),i.delta.font,u,e),N}var T=i.mode+i.align,L;if(i._hasDelta&&(L=E(),T+=i.delta.position+i.delta.font.size+i.delta.font.family+i.delta.valueformat,T+=i.delta.increasing.symbol+i.delta.decreasing.symbol,p=d),i._hasNumber&&(k(),T+=i.number.font.size+i.number.font.family+i.number.valueformat+i.number.suffix+i.number.prefix,p=h),i._hasDelta&&i._hasNumber){var _=[(h.left+h.right)/2,(h.top+h.bottom)/2],C=[(d.left+d.right)/2,(d.top+d.bottom)/2],S,m,P=.75*i.delta.font.size;i.delta.position==="left"&&(S=qB(i,"deltaPos",0,-1*(h.width*lw[i.align]+d.width*(1-lw[i.align])+P),T,Math.min),m=_[1]-C[1],p={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:d.left+S,right:h.right,top:Math.min(h.top,d.top+m),bottom:Math.max(h.bottom,d.bottom+m)}),i.delta.position==="right"&&(S=qB(i,"deltaPos",0,h.width*(1-lw[i.align])+d.width*lw[i.align]+P,T,Math.max),m=_[1]-C[1],p={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:h.left,right:d.right+S,top:Math.min(h.top,d.top+m),bottom:Math.max(h.bottom,d.bottom+m)}),i.delta.position==="bottom"&&(S=null,m=d.height,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height,bottom:h.bottom+d.height}),i.delta.position==="top"&&(S=null,m=h.top,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height-d.height,bottom:h.bottom}),L.attr({dx:S,dy:m})}(i._hasNumber||i._hasDelta)&&c.attr("transform",function(){var A=n.numbersScaler(p);T+=A[2];var B=qB(i,"numbersScale",1,A[0],T,Math.min),F;i._scaleNumbers||(B=1),i._isAngular?F=o-B*p.bottom:F=o-B*(p.top+p.bottom)/2,i._numbersTop=B*p.top+F;var U=p[s];s==="center"&&(U=(p.left+p.right)/2);var G=a-B*U;return G=qB(i,"numbersTranslate",0,G,T,Math.max),eC(G,F)+XYt(B)})}function uw(e){e.each(function(t){DS.stroke(cw.select(this),t.line.color)}).each(function(t){DS.fill(cw.select(this),t.color)}).style("stroke-width",function(t){return t.line.width})}function rKt(e,t,r){return function(){var n=jYt(t,r);return function(i){return e.endAngle(n(i))()}}}function Qk(e,t,r){var n=e._fullLayout,i=Ex.extendFlat({type:"linear",ticks:"outside",range:r,showline:!0},t),a={type:"linear",_id:"x"+t._id},o={letter:"x",font:n.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function s(u,l){return Ex.coerce(i,a,$Yt,u,l)}return KYt(i,a,s,o,n),JYt(i,a,s,o),a}function rZe(e,t,r){var n=Math.min(t/e.width,r/e.height);return[n,e,t+"x"+r]}function iKt(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),n=t/r;return[n,e,t]}function iZe(e,t,r,n){var i=document.createElementNS("http://www.w3.org/2000/svg","text"),a=cw.select(i);return a.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call(NB.convertToTspans,n).call(fw.font,t),fw.bBox(a.node())}function qB(e,t,r,n,i,a){var o="_cache"+t;e[o]&&e[o].key===i||(e[o]={key:i,value:r});var s=Ex.aggNums(a,null,[e[o].value,n],2);return e[o].value=s,s}});var sZe=Te((twr,oZe)=>{"use strict";oZe.exports={moduleType:"trace",name:"indicator",basePlotModule:UXe(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:c$(),supplyDefaults:JXe().supplyDefaults,calc:QXe().calc,plot:aZe(),meta:{}}});var uZe=Te((rwr,lZe)=>{"use strict";lZe.exports=sZe()});var p$=Te((nwr,dZe)=>{"use strict";var fZe=Nb(),UB=Su().extendFlat,nKt=Sc().overrideAll,cZe=gc(),aKt=zc().attributes,hZe=jc().descriptionOnlyNumbers,iwr=dZe.exports=nKt({domain:aKt({name:"table",trace:!0}),columnwidth:{valType:"number",arrayOk:!0,dflt:null},columnorder:{valType:"data_array"},header:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:hZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:UB({},fZe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:UB({},cZe({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:hZe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:UB({},fZe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:UB({},cZe({arrayOk:!0}))}},"calc","from-root")});var vZe=Te((awr,pZe)=>{"use strict";var v$=ei(),oKt=p$(),sKt=zc().defaults;function lKt(e,t){for(var r=e.columnorder||[],n=e.header.values.length,i=r.slice(0,n),a=i.slice().sort(function(u,l){return u-l}),o=i.map(function(u){return a.indexOf(u)}),s=o.length;s{"use strict";var uKt=Ky().wrap;mZe.exports=function(){return uKt({})}});var m$=Te((swr,gZe)=>{"use strict";gZe.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:"
",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}});var EZe=Te((lwr,MZe)=>{"use strict";var _Ze=m$(),g$=Su().extendFlat,fKt=ku(),cKt=mp().isTypedArray,VB=mp().isArrayOrTypedArray;MZe.exports=function(t,r){var n=y$(r.cells.values),i=function(m){return m.slice(r.header.values.length,m.length)},a=y$(r.header.values);a.length&&!a[0].length&&(a[0]=[""],a=y$(a));var o=a.concat(i(n).map(function(){return SZe((a[0]||[""]).length)})),s=r.domain,u=Math.floor(t._fullLayout._size.w*(s.x[1]-s.x[0])),l=Math.floor(t._fullLayout._size.h*(s.y[1]-s.y[0])),f=r.header.values.length?o[0].map(function(){return r.header.height}):[_Ze.emptyHeaderHeight],c=n.length?n[0].map(function(){return r.cells.height}):[],h=f.reduce(xZe,0),d=l-h,p=d+_Ze.uplift,x=AZe(c,p),b=AZe(f,h),v=wZe(b,[]),k=wZe(x,v),E={},T=r._fullInput.columnorder;VB(T)&&(T=Array.from(T)),T=T.concat(i(n.map(function(m,P){return P})));var L=o.map(function(m,P){var A=VB(r.columnwidth)?r.columnwidth[Math.min(P,r.columnwidth.length-1)]:r.columnwidth;return fKt(A)?Number(A):1}),_=L.reduce(xZe,0);L=L.map(function(m){return m/_*u});var C=Math.max(_$(r.header.line.width),_$(r.cells.line.width)),S={key:r.uid+t._context.staticPlot,translateX:s.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-s.y[1]),size:t._fullLayout._size,width:u,maxLineWidth:C,height:l,columnOrder:T,groupHeight:l,rowBlocks:k,headerRowBlocks:v,scrollY:0,cells:g$({},r.cells,{values:n}),headerCells:g$({},r.header,{values:o}),gdColumns:o.map(function(m){return m[0]}),gdColumnsOriginalOrder:o.map(function(m){return m[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:o.map(function(m,P){var A=E[m];E[m]=(A||0)+1;var B=m+"__"+E[m];return{key:B,label:m,specIndex:P,xIndex:T[P],xScale:bZe,x:void 0,calcdata:void 0,columnWidth:L[P]}})};return S.columns.forEach(function(m){m.calcdata=S,m.x=bZe(m)}),S};function _$(e){if(VB(e)){for(var t=0,r=0;r=t||l===e.length-1)&&(r[i]=o,o.key=u++,o.firstRowIndex=s,o.lastRowIndex=l,o=TZe(),i+=a,s=l+1,a=0);return r}function TZe(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}});var kZe=Te(x$=>{"use strict";var GB=Su().extendFlat;x$.splitToPanels=function(e){var t=[0,0],r=GB({},e,{key:"header",type:"header",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!0,values:e.calcdata.headerCells.values[e.specIndex],rowBlocks:e.calcdata.headerRowBlocks,calcdata:GB({},e.calcdata,{cells:e.calcdata.headerCells})}),n=GB({},e,{key:"cells1",type:"cells",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks}),i=GB({},e,{key:"cells2",type:"cells",page:1,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks});return[n,i,r]};x$.splitToCells=function(e){var t=hKt(e);return(e.values||[]).slice(t[0],t[1]).map(function(r,n){var i=typeof r=="string"&&r.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:n+i,key:t[0]+n,column:e,calcdata:e.calcdata,page:e.page,rowBlocks:e.rowBlocks,value:r}})};function hKt(e){var t=e.rowBlocks[e.page],r=t?t.rows[0].rowIndex:0,n=t?r+t.rows.length:0;return[r,n]}});var L$=Te((fwr,qZe)=>{"use strict";var uu=m$(),Gc=Jl(),b$=ei(),dKt=b$.numberFormat,pc=Ky(),w$=Mu(),pKt=Zf(),vKt=ei().raiseToTop,om=ei().strTranslate,mKt=ei().cancelTransition,yKt=EZe(),DZe=kZe(),CZe=jl();qZe.exports=function(t,r){var n=!t._context.staticPlot,i=t._fullLayout._paper.selectAll("."+uu.cn.table).data(r.map(function(k){var E=pc.unwrap(k),T=E.trace;return yKt(t,T)}),pc.keyFun);i.exit().remove(),i.enter().append("g").classed(uu.cn.table,!0).attr("overflow","visible").style("box-sizing","content-box").style("position","absolute").style("left",0).style("overflow","visible").style("shape-rendering","crispEdges").style("pointer-events","all"),i.attr("width",function(k){return k.width+k.size.l+k.size.r}).attr("height",function(k){return k.height+k.size.t+k.size.b}).attr("transform",function(k){return om(k.translateX,k.translateY)});var a=i.selectAll("."+uu.cn.tableControlView).data(pc.repeat,pc.keyFun),o=a.enter().append("g").classed(uu.cn.tableControlView,!0).style("box-sizing","content-box");if(n){var s="onwheel"in document?"wheel":"mousewheel";o.on("mousemove",function(k){a.filter(function(E){return k===E}).call(rC,t)}).on(s,function(k){if(!k.scrollbarState.wheeling){k.scrollbarState.wheeling=!0;var E=k.scrollY+Gc.event.deltaY,T=WB(t,a,null,E)(k);T||(Gc.event.stopPropagation(),Gc.event.preventDefault()),k.scrollbarState.wheeling=!1}}).call(rC,t,!0)}a.attr("transform",function(k){return om(k.size.l,k.size.t)});var u=a.selectAll("."+uu.cn.scrollBackground).data(pc.repeat,pc.keyFun);u.enter().append("rect").classed(uu.cn.scrollBackground,!0).attr("fill","none"),u.attr("width",function(k){return k.width}).attr("height",function(k){return k.height}),a.each(function(k){w$.setClipUrl(Gc.select(this),LZe(t,k),t)});var l=a.selectAll("."+uu.cn.yColumn).data(function(k){return k.columns},pc.keyFun);l.enter().append("g").classed(uu.cn.yColumn,!0),l.exit().remove(),l.attr("transform",function(k){return om(k.x,0)}),n&&l.call(Gc.behavior.drag().origin(function(k){var E=Gc.select(this);return IZe(E,k,-uu.uplift),vKt(this),k.calcdata.columnDragInProgress=!0,rC(a.filter(function(T){return k.calcdata.key===T.key}),t),k}).on("drag",function(k){var E=Gc.select(this),T=function(C){return(k===C?Gc.event.x:C.x)+C.columnWidth/2};k.x=Math.max(-uu.overdrag,Math.min(k.calcdata.width+uu.overdrag-k.columnWidth,Gc.event.x));var L=FZe(l).filter(function(C){return C.calcdata.key===k.calcdata.key}),_=L.sort(function(C,S){return T(C)-T(S)});_.forEach(function(C,S){C.xIndex=S,C.x=k===C?C.x:C.xScale(C)}),l.filter(function(C){return k!==C}).transition().ease(uu.transitionEase).duration(uu.transitionDuration).attr("transform",function(C){return om(C.x,0)}),E.call(mKt).attr("transform",om(k.x,-uu.uplift))}).on("dragend",function(k){var E=Gc.select(this),T=k.calcdata;k.x=k.xScale(k),k.calcdata.columnDragInProgress=!1,IZe(E,k,0),EKt(t,T,T.columns.map(function(L){return L.xIndex}))})),l.each(function(k){w$.setClipUrl(Gc.select(this),PZe(t,k),t)});var f=l.selectAll("."+uu.cn.columnBlock).data(DZe.splitToPanels,pc.keyFun);f.enter().append("g").classed(uu.cn.columnBlock,!0).attr("id",function(k){return k.key}),f.style("cursor",function(k){return k.dragHandle?"ew-resize":k.calcdata.scrollbarState.barWiggleRoom?"ns-resize":"default"});var c=f.filter(kKt),h=f.filter(E$);n&&h.call(Gc.behavior.drag().origin(function(k){return Gc.event.stopPropagation(),k}).on("drag",WB(t,a,-1)).on("dragend",function(){})),A$(t,a,c,f),A$(t,a,h,f);var d=a.selectAll("."+uu.cn.scrollAreaClip).data(pc.repeat,pc.keyFun);d.enter().append("clipPath").classed(uu.cn.scrollAreaClip,!0).attr("id",function(k){return LZe(t,k)});var p=d.selectAll("."+uu.cn.scrollAreaClipRect).data(pc.repeat,pc.keyFun);p.enter().append("rect").classed(uu.cn.scrollAreaClipRect,!0).attr("x",-uu.overdrag).attr("y",-uu.uplift).attr("fill","none"),p.attr("width",function(k){return k.width+2*uu.overdrag}).attr("height",function(k){return k.height+uu.uplift});var x=l.selectAll("."+uu.cn.columnBoundary).data(pc.repeat,pc.keyFun);x.enter().append("g").classed(uu.cn.columnBoundary,!0);var b=l.selectAll("."+uu.cn.columnBoundaryClippath).data(pc.repeat,pc.keyFun);b.enter().append("clipPath").classed(uu.cn.columnBoundaryClippath,!0),b.attr("id",function(k){return PZe(t,k)});var v=b.selectAll("."+uu.cn.columnBoundaryRect).data(pc.repeat,pc.keyFun);v.enter().append("rect").classed(uu.cn.columnBoundaryRect,!0).attr("fill","none"),v.attr("width",function(k){return k.columnWidth+2*HB(k)}).attr("height",function(k){return k.calcdata.height+2*HB(k)+uu.uplift}).attr("x",function(k){return-HB(k)}).attr("y",function(k){return-HB(k)}),k$(null,h,a)};function HB(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function LZe(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function PZe(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function FZe(e){return[].concat.apply([],e.map(function(t){return t})).map(function(t){return t.__data__})}function rC(e,t,r){function n(l){var f=l.rowBlocks;return S$(f,f.length-1)+(f.length?jB(f[f.length-1],1/0):1)}var i=e.selectAll("."+uu.cn.scrollbarKit).data(pc.repeat,pc.keyFun);i.enter().append("g").classed(uu.cn.scrollbarKit,!0).style("shape-rendering","geometricPrecision"),i.each(function(l){var f=l.scrollbarState;f.totalHeight=n(l),f.scrollableAreaHeight=l.groupHeight-T$(l),f.currentlyVisibleHeight=Math.min(f.totalHeight,f.scrollableAreaHeight),f.ratio=f.currentlyVisibleHeight/f.totalHeight,f.barLength=Math.max(f.ratio*f.currentlyVisibleHeight,uu.goldenRatio*uu.scrollbarWidth),f.barWiggleRoom=f.currentlyVisibleHeight-f.barLength,f.wiggleRoom=Math.max(0,f.totalHeight-f.scrollableAreaHeight),f.topY=f.barWiggleRoom===0?0:l.scrollY/f.wiggleRoom*f.barWiggleRoom,f.bottomY=f.topY+f.barLength,f.dragMultiplier=f.wiggleRoom/f.barWiggleRoom}).attr("transform",function(l){var f=l.width+uu.scrollbarWidth/2+uu.scrollbarOffset;return om(f,T$(l))});var a=i.selectAll("."+uu.cn.scrollbar).data(pc.repeat,pc.keyFun);a.enter().append("g").classed(uu.cn.scrollbar,!0);var o=a.selectAll("."+uu.cn.scrollbarSlider).data(pc.repeat,pc.keyFun);o.enter().append("g").classed(uu.cn.scrollbarSlider,!0),o.attr("transform",function(l){return om(0,l.scrollbarState.topY||0)});var s=o.selectAll("."+uu.cn.scrollbarGlyph).data(pc.repeat,pc.keyFun);s.enter().append("line").classed(uu.cn.scrollbarGlyph,!0).attr("stroke","black").attr("stroke-width",uu.scrollbarWidth).attr("stroke-linecap","round").attr("y1",uu.scrollbarWidth/2),s.attr("y2",function(l){return l.scrollbarState.barLength-uu.scrollbarWidth/2}).attr("stroke-opacity",function(l){return l.columnDragInProgress||!l.scrollbarState.barWiggleRoom||r?0:.4}),s.transition().delay(0).duration(0),s.transition().delay(uu.scrollbarHideDelay).duration(uu.scrollbarHideDuration).attr("stroke-opacity",0);var u=a.selectAll("."+uu.cn.scrollbarCaptureZone).data(pc.repeat,pc.keyFun);u.enter().append("line").classed(uu.cn.scrollbarCaptureZone,!0).attr("stroke","white").attr("stroke-opacity",.01).attr("stroke-width",uu.scrollbarCaptureWidth).attr("stroke-linecap","butt").attr("y1",0).on("mousedown",function(l){var f=Gc.event.y,c=this.getBoundingClientRect(),h=l.scrollbarState,d=f-c.top,p=Gc.scale.linear().domain([0,h.scrollableAreaHeight]).range([0,h.totalHeight]).clamp(!0);h.topY<=d&&d<=h.bottomY||WB(t,e,null,p(d-h.barLength/2))(l)}).call(Gc.behavior.drag().origin(function(l){return Gc.event.stopPropagation(),l.scrollbarState.scrollbarScrollInProgress=!0,l}).on("drag",WB(t,e)).on("dragend",function(){})),u.attr("y2",function(l){return l.scrollbarState.scrollableAreaHeight}),t._context.staticPlot&&(s.remove(),u.remove())}function A$(e,t,r,n){var i=gKt(r),a=_Kt(i);AKt(a);var o=xKt(a);SKt(o);var s=wKt(a),u=bKt(s);TKt(u),BZe(u,t,n,e),C$(a)}function gKt(e){var t=e.selectAll("."+uu.cn.columnCells).data(pc.repeat,pc.keyFun);return t.enter().append("g").classed(uu.cn.columnCells,!0),t.exit().remove(),t}function _Kt(e){var t=e.selectAll("."+uu.cn.columnCell).data(DZe.splitToCells,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(uu.cn.columnCell,!0),t.exit().remove(),t}function xKt(e){var t=e.selectAll("."+uu.cn.cellRect).data(pc.repeat,function(r){return r.keyWithinBlock});return t.enter().append("rect").classed(uu.cn.cellRect,!0),t}function bKt(e){var t=e.selectAll("."+uu.cn.cellText).data(pc.repeat,function(r){return r.keyWithinBlock});return t.enter().append("text").classed(uu.cn.cellText,!0).style("cursor",function(){return"auto"}).on("mousedown",function(){Gc.event.stopPropagation()}),t}function wKt(e){var t=e.selectAll("."+uu.cn.cellTextHolder).data(pc.repeat,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(uu.cn.cellTextHolder,!0).style("shape-rendering","geometricPrecision"),t}function AKt(e){e.each(function(t,r){var n=t.calcdata.cells.font,i=t.column.specIndex,a={size:Zp(n.size,i,r),color:Zp(n.color,i,r),family:Zp(n.family,i,r),weight:Zp(n.weight,i,r),style:Zp(n.style,i,r),variant:Zp(n.variant,i,r),textcase:Zp(n.textcase,i,r),lineposition:Zp(n.lineposition,i,r),shadow:Zp(n.shadow,i,r)};t.rowNumber=t.key,t.align=Zp(t.calcdata.cells.align,i,r),t.cellBorderWidth=Zp(t.calcdata.cells.line.width,i,r),t.font=a})}function TKt(e){e.each(function(t){w$.font(Gc.select(this),t.font)})}function SKt(e){e.attr("width",function(t){return t.column.columnWidth}).attr("stroke-width",function(t){return t.cellBorderWidth}).each(function(t){var r=Gc.select(this);CZe.stroke(r,Zp(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),CZe.fill(r,Zp(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function BZe(e,t,r,n){e.text(function(i){var a=i.column.specIndex,o=i.rowNumber,s=i.value,u=typeof s=="string",l=u&&s.match(/
/i),f=!u||l;i.mayHaveMarkup=u&&s.match(/[<&>]/);var c=MKt(s);i.latex=c;var h=c?"":Zp(i.calcdata.cells.prefix,a,o)||"",d=c?"":Zp(i.calcdata.cells.suffix,a,o)||"",p=c?null:Zp(i.calcdata.cells.format,a,o)||null,x=h+(p?dKt(p)(i.value):i.value)+d,b;i.wrappingNeeded=!i.wrapped&&!f&&!c&&(b=zZe(x)),i.cellHeightMayIncrease=l||c||i.mayHaveMarkup||(b===void 0?zZe(x):b),i.needsConvertToTspans=i.mayHaveMarkup||i.wrappingNeeded||i.latex;var v;if(i.wrappingNeeded){var k=uu.wrapSplitCharacter===" "?x.replace(/i&&n.push(a),i+=u}return n}function k$(e,t,r){var n=FZe(t)[0];if(n!==void 0){var i=n.rowBlocks,a=n.calcdata,o=S$(i,i.length),s=n.calcdata.groupHeight-T$(n),u=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),l=CKt(i,u,s);l.length===1&&(l[0]===i.length-1?l.unshift(l[0]-1):l.push(l[0]+1)),l[0]%2&&l.reverse(),t.each(function(f,c){f.page=l[c],f.scrollY=u}),t.attr("transform",function(f){var c=S$(f.rowBlocks,f.page)-f.scrollY;return om(0,c)}),e&&(RZe(e,r,t,l,n.prevPages,n,0),RZe(e,r,t,l,n.prevPages,n,1),rC(r,e))}}function WB(e,t,r,n){return function(a){var o=a.calcdata?a.calcdata:a,s=t.filter(function(c){return o.key===c.key}),u=r||o.scrollbarState.dragMultiplier,l=o.scrollY;o.scrollY=n===void 0?o.scrollY+u*Gc.event.dy:n;var f=s.selectAll("."+uu.cn.yColumn).selectAll("."+uu.cn.columnBlock).filter(E$);return k$(e,f,s),o.scrollY===l}}function RZe(e,t,r,n,i,a,o){var s=n[o]!==i[o];s&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout(function(){var u=r.filter(function(l,f){return f===o&&n[f]!==i[f]});A$(e,t,u,r),i[o]=n[o]}))}function LKt(e,t,r,n){return function(){var a=Gc.select(t.parentNode);a.each(function(o){var s=o.fragments;a.selectAll("tspan.line").each(function(x,b){s[b].width=this.getComputedTextLength()});var u=s[s.length-1].width,l=s.slice(0,-1),f=[],c,h,d=0,p=o.column.columnWidth-2*uu.cellPad;for(o.value="";l.length;)c=l.shift(),h=c.width+u,d+h>p&&(o.value+=f.join(uu.wrapSpacer)+uu.lineBreaker,f=[],d=0),f.push(c.text),d+=h;d&&(o.value+=f.join(uu.wrapSpacer)),o.wrapped=!0}),a.selectAll("tspan.line").remove(),BZe(a.select("."+uu.cn.cellText),r,e,n),Gc.select(t.parentNode.parentNode).call(C$)}}function PKt(e,t,r,n,i){return function(){if(!i.settledY){var o=Gc.select(t.parentNode),s=M$(i),u=i.key-s.firstRowIndex,l=s.rows[u].rowHeight,f=i.cellHeightMayIncrease?t.parentNode.getBoundingClientRect().height+2*uu.cellPad:l,c=Math.max(f,l),h=c-s.rows[u].rowHeight;h&&(s.rows[u].rowHeight=c,e.selectAll("."+uu.cn.columnCell).call(C$),k$(null,e.filter(E$),0),rC(r,n,!0)),o.attr("transform",function(){var d=this,p=d.parentNode,x=p.getBoundingClientRect(),b=Gc.select(d.parentNode).select("."+uu.cn.cellRect).node().getBoundingClientRect(),v=d.transform.baseVal.consolidate(),k=b.top-x.top+(v?v.matrix.f:uu.cellPad);return om(OZe(i,Gc.select(d.parentNode).select("."+uu.cn.cellTextHolder).node().getBoundingClientRect().width),k)}),i.settledY=!0}}}function OZe(e,t){switch(e.align){case"left":return uu.cellPad;case"right":return e.column.columnWidth-(t||0)-uu.cellPad;case"center":return(e.column.columnWidth-(t||0))/2;default:return uu.cellPad}}function C$(e){e.attr("transform",function(t){var r=t.rowBlocks[0].auxiliaryBlocks.reduce(function(o,s){return o+jB(s,1/0)},0),n=M$(t),i=jB(n,t.key),a=i+r;return om(0,a)}).selectAll("."+uu.cn.cellRect).attr("height",function(t){return IKt(M$(t),t.key).rowHeight})}function S$(e,t){for(var r=0,n=t-1;n>=0;n--)r+=zKt(e[n]);return r}function jB(e,t){for(var r=0,n=0;n{"use strict";var RKt=Rd().getModuleCalcData,DKt=L$(),XB="table";ZB.name=XB;ZB.plot=function(e){var t=RKt(e.calcdata,XB)[0];t.length&&DKt(e,t)};ZB.clean=function(e,t,r,n){var i=n._has&&n._has(XB),a=t._has&&t._has(XB);i&&!a&&n._paperdiv.selectAll(".table").remove()}});var VZe=Te((hwr,UZe)=>{"use strict";UZe.exports={attributes:p$(),supplyDefaults:vZe(),calc:yZe(),plot:L$(),moduleType:"trace",name:"table",basePlotModule:NZe(),categories:["noOpacity"],meta:{}}});var HZe=Te((dwr,GZe)=>{"use strict";GZe.exports=VZe()});var YZe=Te((pwr,ZZe)=>{"use strict";var WZe=gc(),jZe=Ih(),P$=Dd(),FKt=jc().descriptionWithDates,BKt=Sc().overrideAll,XZe=Id().dash,z$=Su().extendFlat;ZZe.exports={color:{valType:"color",editType:"calc"},smoothing:{valType:"number",dflt:1,min:0,max:1.3,editType:"calc"},title:{text:{valType:"string",dflt:"",editType:"calc"},font:WZe({editType:"calc"}),offset:{valType:"number",dflt:10,editType:"calc"},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc"},autotypenumbers:P$.autotypenumbers,autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"calc"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"calc"},range:{valType:"info_array",editType:"calc",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}]},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},cheatertype:{valType:"enumerated",values:["index","value"],dflt:"value",editType:"calc"},tickmode:{valType:"enumerated",values:["linear","array"],dflt:"array",editType:"calc"},nticks:{valType:"integer",min:0,dflt:0,editType:"calc"},tickvals:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},showticklabels:{valType:"enumerated",values:["start","end","both","none"],dflt:"start",editType:"calc"},labelalias:z$({},P$.labelalias,{editType:"calc"}),tickfont:WZe({editType:"calc"}),tickangle:{valType:"angle",dflt:"auto",editType:"calc"},tickprefix:{valType:"string",dflt:"",editType:"calc"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},ticksuffix:{valType:"string",dflt:"",editType:"calc"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"calc"},minexponent:{valType:"number",dflt:3,min:0,editType:"calc"},separatethousands:{valType:"boolean",dflt:!1,editType:"calc"},tickformat:{valType:"string",dflt:"",editType:"calc",description:FKt("tick label")},tickformatstops:BKt(P$.tickformatstops,"calc","from-root"),categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},labelpadding:{valType:"integer",dflt:10,editType:"calc"},labelprefix:{valType:"string",editType:"calc"},labelsuffix:{valType:"string",dflt:"",editType:"calc"},showline:{valType:"boolean",dflt:!1,editType:"calc"},linecolor:{valType:"color",dflt:jZe.defaultLine,editType:"calc"},linewidth:{valType:"number",min:0,dflt:1,editType:"calc"},gridcolor:{valType:"color",editType:"calc"},gridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},griddash:z$({},XZe,{editType:"calc"}),showgrid:{valType:"boolean",dflt:!0,editType:"calc"},minorgridcount:{valType:"integer",min:0,dflt:0,editType:"calc"},minorgridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},minorgriddash:z$({},XZe,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:jZe.lightLine,editType:"calc"},startline:{valType:"boolean",editType:"calc"},startlinecolor:{valType:"color",editType:"calc"},startlinewidth:{valType:"number",dflt:1,editType:"calc"},endline:{valType:"boolean",editType:"calc"},endlinewidth:{valType:"number",dflt:1,editType:"calc"},endlinecolor:{valType:"color",editType:"calc"},tick0:{valType:"number",min:0,dflt:0,editType:"calc"},dtick:{valType:"number",min:0,dflt:1,editType:"calc"},arraytick0:{valType:"integer",min:0,dflt:0,editType:"calc"},arraydtick:{valType:"integer",min:1,dflt:1,editType:"calc"},editType:"calc"}});var KB=Te((vwr,$Ze)=>{"use strict";var OKt=gc(),KZe=YZe(),JZe=Ih(),YB=OKt({editType:"calc"}),qKt=Zc().zorder;YB.family.dflt='"Open Sans", verdana, arial, sans-serif';YB.size.dflt=12;YB.color.dflt=JZe.defaultLine;$Ze.exports={carpet:{valType:"string",editType:"calc"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},a:{valType:"data_array",editType:"calc"},a0:{valType:"number",dflt:0,editType:"calc"},da:{valType:"number",dflt:1,editType:"calc"},b:{valType:"data_array",editType:"calc"},b0:{valType:"number",dflt:0,editType:"calc"},db:{valType:"number",dflt:1,editType:"calc"},cheaterslope:{valType:"number",dflt:1,editType:"calc"},aaxis:KZe,baxis:KZe,font:YB,color:{valType:"color",dflt:JZe.defaultLine,editType:"plot"},zorder:qKt}});var tYe=Te((mwr,eYe)=>{"use strict";var QZe=ei().isArray1D;eYe.exports=function(t,r,n){var i=n("x"),a=i&&i.length,o=n("y"),s=o&&o.length;if(!a&&!s)return!1;if(r._cheater=!i,(!a||QZe(i))&&(!s||QZe(o))){var u=a?i.length:1/0;s&&(u=Math.min(u,o.length)),r.a&&r.a.length&&(u=Math.min(u,r.a.length)),r.b&&r.b.length&&(u=Math.min(u,r.b.length)),r._length=u}else r._length=null;return!0}});var nYe=Te((ywr,iYe)=>{"use strict";var NKt=KB(),rYe=jl().addOpacity,UKt=$l(),iC=ei(),VKt=xb(),GKt=t_(),HKt=r_(),WKt=rI(),jKt=gy(),XKt=L3();iYe.exports=function(t,r,n){var i=n.letter,a=n.font||{},o=NKt[i+"axis"];function s(m,P){return iC.coerce(t,r,o,m,P)}function u(m,P){return iC.coerce2(t,r,o,m,P)}n.name&&(r._name=n.name,r._id=n.name),s("autotypenumbers",n.autotypenumbersDflt);var l=s("type");if(l==="-"&&(n.data&&ZKt(r,n.data),r.type==="-"?r.type="linear":l=t.type=r.type),s("smoothing"),s("cheatertype"),s("showticklabels"),s("labelprefix",i+" = "),s("labelsuffix"),s("showtickprefix"),s("showticksuffix"),s("separatethousands"),s("tickformat"),s("exponentformat"),s("minexponent"),s("showexponent"),s("categoryorder"),s("tickmode"),s("tickvals"),s("ticktext"),s("tick0"),s("dtick"),r.tickmode==="array"&&(s("arraytick0"),s("arraydtick")),s("labelpadding"),r._hovertitle=i,l==="date"){var f=UKt.getComponentMethod("calendars","handleDefaults");f(t,r,"calendar",n.calendar)}jKt(r,n.fullLayout),r.c2p=iC.identity;var c=s("color",n.dfltColor),h=c===t.color?c:a.color,d=s("title.text");d&&(iC.coerceFont(s,"title.font",a,{overrideDflt:{size:iC.bigFont(a.size),color:h}}),s("title.offset")),s("tickangle");var p=s("autorange",!r.isValidRange(t.range));p&&s("rangemode"),s("range"),r.cleanRange(),s("fixedrange"),VKt(t,r,s,l),HKt(t,r,s,l,n),GKt(t,r,s,l,n),WKt(t,r,s,{data:n.data,dataAttr:i});var x=u("gridcolor",rYe(c,.3)),b=u("gridwidth"),v=u("griddash"),k=s("showgrid");k||(delete r.gridcolor,delete r.gridwidth,delete r.griddash);var E=u("startlinecolor",c),T=u("startlinewidth",b),L=s("startline",r.showgrid||!!E||!!T);L||(delete r.startlinecolor,delete r.startlinewidth);var _=u("endlinecolor",c),C=u("endlinewidth",b),S=s("endline",r.showgrid||!!_||!!C);return S||(delete r.endlinecolor,delete r.endlinewidth),k?(s("minorgridcount"),s("minorgridwidth",b),s("minorgriddash",v),s("minorgridcolor",rYe(x,.06)),r.minorgridcount||(delete r.minorgridwidth,delete r.minorgriddash,delete r.minorgridcolor)):(delete r.gridcolor,delete r.gridwidth,delete r.griddash),r.showticklabels==="none"&&(delete r.tickfont,delete r.tickangle,delete r.showexponent,delete r.exponentformat,delete r.minexponent,delete r.tickformat,delete r.showticksuffix,delete r.showtickprefix),r.showticksuffix||delete r.ticksuffix,r.showtickprefix||delete r.tickprefix,s("tickmode"),r};function ZKt(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i=n+"calendar",a=e[i];e.type=XKt(t,a,{autotypenumbers:e.autotypenumbers})}}});var oYe=Te((gwr,aYe)=>{"use strict";var YKt=nYe(),KKt=Pf();aYe.exports=function(t,r,n,i,a){var o=i("a");o||(i("da"),i("a0"));var s=i("b");s||(i("db"),i("b0")),JKt(t,r,n,a)};function JKt(e,t,r,n){var i=["aaxis","baxis"];i.forEach(function(a){var o=a.charAt(0),s=e[a]||{},u=KKt.newContainer(t,a),l={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,tickfont:"x",id:o+"axis",letter:o,font:t.font,name:a,data:e[o],calendar:t.calendar,dfltColor:n,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};YKt(s,u,l),u._categories=u._categories||[],!e[a]&&s.type!=="-"&&(e[a]={type:s.type})})}});var uYe=Te((_wr,lYe)=>{"use strict";var sYe=ei(),$Kt=tYe(),QKt=oYe(),eJt=KB(),tJt=Ih();lYe.exports=function(t,r,n,i){function a(u,l){return sYe.coerce(t,r,eJt,u,l)}r._clipPathId="clip"+r.uid+"carpet";var o=a("color",tJt.defaultLine);if(sYe.coerceFont(a,"font",i.font),a("carpet"),QKt(t,r,i,a,o),!r.a||!r.b){r.visible=!1;return}r.a.length<3&&(r.aaxis.smoothing=0),r.b.length<3&&(r.baxis.smoothing=0);var s=$Kt(t,r,a);s||(r.visible=!1),r._cheater&&a("cheaterslope"),a("zorder")}});var I$=Te((xwr,fYe)=>{"use strict";var rJt=ei().isArrayOrTypedArray;fYe.exports=function(t,r,n){var i;for(rJt(t)?t.length>r.length&&(t=t.slice(0,r.length)):t=[],i=0;i{"use strict";cYe.exports=function(t,r,n){if(t.length===0)return"";var i,a=[],o=n?3:1;for(i=0;i{"use strict";hYe.exports=function(t,r,n,i,a,o){var s=a[0]*t.dpdx(r),u=a[1]*t.dpdy(n),l=1,f=1;if(o){var c=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=Math.sqrt(o[0]*o[0]+o[1]*o[1]),d=(a[0]*o[0]+a[1]*o[1])/c/h;f=Math.max(0,d)}var p=Math.atan2(u,s)*180/Math.PI;return p<-90?(p+=180,l=-l):p>90&&(p-=180,l=-l),{angle:p,flip:l,p:t.c2p(i,r,n),offsetMultplier:f}}});var bYe=Te((Awr,xYe)=>{"use strict";var eO=Jl(),JB=Mu(),$B=I$(),mYe=R$(),nC=dYe(),D$=Zf(),Nv=ei(),yYe=Nv.strRotate,QB=Nv.strTranslate,gYe=Qh();xYe.exports=function(t,r,n,i){var a=t._context.staticPlot,o=r.xaxis,s=r.yaxis,u=t._fullLayout,l=u._clips;Nv.makeTraceGroups(i,n,"trace").each(function(f){var c=eO.select(this),h=f[0],d=h.trace,p=d.aaxis,x=d.baxis,b=Nv.ensureSingle(c,"g","minorlayer"),v=Nv.ensureSingle(c,"g","majorlayer"),k=Nv.ensureSingle(c,"g","boundarylayer"),E=Nv.ensureSingle(c,"g","labellayer");c.style("opacity",d.opacity),FS(o,s,v,p,"a",p._gridlines,!0,a),FS(o,s,v,x,"b",x._gridlines,!0,a),FS(o,s,b,p,"a",p._minorgridlines,!0,a),FS(o,s,b,x,"b",x._minorgridlines,!0,a),FS(o,s,k,p,"a-boundary",p._boundarylines,a),FS(o,s,k,x,"b-boundary",x._boundarylines,a);var T=pYe(t,o,s,d,h,E,p._labels,"a-label"),L=pYe(t,o,s,d,h,E,x._labels,"b-label");nJt(t,E,d,h,o,s,T,L),iJt(d,h,l,o,s)})};function iJt(e,t,r,n,i){var a,o,s,u,l=r.select("#"+e._clipPathId);l.size()||(l=r.append("clipPath").classed("carpetclip",!0));var f=Nv.ensureSingle(l,"path","carpetboundary"),c=t.clipsegments,h=[];for(u=0;u0?"start":"end","data-notex":1}).call(JB.font,c.font).text(c.text).call(D$.convertToTspans,e),v=JB.bBox(this);b.attr("transform",QB(d.p[0],d.p[1])+yYe(d.angle)+QB(c.axis.labelpadding*x,v.height*.3)),l=Math.max(l,v.width+c.axis.labelpadding)}),u.exit().remove(),f.maxExtent=l,f}function nJt(e,t,r,n,i,a,o,s){var u,l,f,c,h=Nv.aggNums(Math.min,null,r.a),d=Nv.aggNums(Math.max,null,r.a),p=Nv.aggNums(Math.min,null,r.b),x=Nv.aggNums(Math.max,null,r.b);u=.5*(h+d),l=p,f=r.ab2xy(u,l,!0),c=r.dxyda_rough(u,l),o.angle===void 0&&Nv.extendFlat(o,nC(r,i,a,f,r.dxydb_rough(u,l))),vYe(e,t,r,n,f,c,r.aaxis,i,a,o,"a-title"),u=h,l=.5*(p+x),f=r.ab2xy(u,l,!0),c=r.dxydb_rough(u,l),s.angle===void 0&&Nv.extendFlat(s,nC(r,i,a,f,r.dxyda_rough(u,l))),vYe(e,t,r,n,f,c,r.baxis,i,a,s,"b-title")}var _Ye=gYe.LINE_SPACING,aJt=(1-gYe.MID_SHIFT)/_Ye+1;function vYe(e,t,r,n,i,a,o,s,u,l,f){var c=[];o.title.text&&c.push(o.title.text);var h=t.selectAll("text."+f).data(c),d=l.maxExtent;h.enter().append("text").classed(f,!0),h.each(function(){var p=nC(r,s,u,i,a);["start","both"].indexOf(o.showticklabels)===-1&&(d=0);var x=o.title.font.size;d+=x+o.title.offset;var b=l.angle+(l.flip<0?180:0),v=(b-p.angle+450)%360,k=v>90&&v<270,E=eO.select(this);E.text(o.title.text).call(D$.convertToTspans,e),k&&(d=(-D$.lineCount(E)+aJt)*_Ye*x-d),E.attr("transform",QB(p.p[0],p.p[1])+yYe(p.angle)+QB(0,d)).attr("text-anchor","middle").call(JB.font,o.title.font)}),h.exit().remove()}});var AYe=Te((Twr,wYe)=>{"use strict";var tO=ei().isArrayOrTypedArray;wYe.exports=function(e,t,r){var n,i,a,o,s,u,l=[],f=tO(e)?e.length:e,c=tO(t)?t.length:t,h=tO(e)?e:null,d=tO(t)?t:null;h&&(a=(h.length-1)/(h[h.length-1]-h[0])/(f-1)),d&&(o=(d.length-1)/(d[d.length-1]-d[0])/(c-1));var p,x=1/0,b=-1/0;for(i=0;i{"use strict";var TYe=ei().isArrayOrTypedArray;MYe.exports=function(e){return SYe(e,0)};function SYe(e,t){if(!TYe(e)||t>=10)return null;for(var r=1/0,n=-1/0,i=e.length,a=0;a{"use strict";var oJt=wu(),kx=Su().extendFlat;kYe.exports=function(t,r,n){var i,a,o,s,u,l,f,c,h,d,p,x,b,v,k=t["_"+r],E=t[r+"axis"],T=E._gridlines=[],L=E._minorgridlines=[],_=E._boundarylines=[],C=t["_"+n],S=t[n+"axis"];E.tickmode==="array"&&(E.tickvals=k.slice());var m=t._xctrl,P=t._yctrl,A=m[0].length,B=m.length,F=t._a.length,U=t._b.length;oJt.prepTicks(E),E.tickmode==="array"&&delete E.tickvals;var G=E.smoothing?3:1;function j(N){var W,re,ae,be,Ce,Le,pe,te,ke,Ee,Me,Ne,Fe=[],ye=[],Ve={};if(r==="b")for(re=t.b2j(N),ae=Math.floor(Math.max(0,Math.min(U-2,re))),be=re-ae,Ve.length=U,Ve.crossLength=F,Ve.xy=function(ce){return t.evalxy([],ce,re)},Ve.dxy=function(ce,Je){return t.dxydi([],ce,ae,Je,be)},W=0;W0&&(ke=t.dxydi([],W-1,ae,0,be),Fe.push(Ce[0]+ke[0]/3),ye.push(Ce[1]+ke[1]/3),Ee=t.dxydi([],W-1,ae,1,be),Fe.push(te[0]-Ee[0]/3),ye.push(te[1]-Ee[1]/3)),Fe.push(te[0]),ye.push(te[1]),Ce=te;else for(W=t.a2i(N),Le=Math.floor(Math.max(0,Math.min(F-2,W))),pe=W-Le,Ve.length=F,Ve.crossLength=U,Ve.xy=function(ce){return t.evalxy([],W,ce)},Ve.dxy=function(ce,Je){return t.dxydj([],Le,ce,pe,Je)},re=0;re0&&(Me=t.dxydj([],Le,re-1,pe,0),Fe.push(Ce[0]+Me[0]/3),ye.push(Ce[1]+Me[1]/3),Ne=t.dxydj([],Le,re-1,pe,1),Fe.push(te[0]-Ne[0]/3),ye.push(te[1]-Ne[1]/3)),Fe.push(te[0]),ye.push(te[1]),Ce=te;return Ve.axisLetter=r,Ve.axis=E,Ve.crossAxis=S,Ve.value=N,Ve.constvar=n,Ve.index=c,Ve.x=Fe,Ve.y=ye,Ve.smoothing=S.smoothing,Ve}function H(N){var W,re,ae,be,Ce,Le=[],pe=[],te={};if(te.length=k.length,te.crossLength=C.length,r==="b")for(ae=Math.max(0,Math.min(U-2,N)),Ce=Math.min(1,Math.max(0,N-ae)),te.xy=function(ke){return t.evalxy([],ke,N)},te.dxy=function(ke,Ee){return t.dxydi([],ke,ae,Ee,Ce)},W=0;Wk.length-1)&&T.push(kx(H(a),{color:E.gridcolor,width:E.gridwidth,dash:E.griddash}));for(c=l;ck.length-1)&&!(p<0||p>k.length-1))for(x=k[o],b=k[p],i=0;ik[k.length-1])&&L.push(kx(j(d),{color:E.minorgridcolor,width:E.minorgridwidth,dash:E.minorgriddash})));E.startline&&_.push(kx(H(0),{color:E.startlinecolor,width:E.startlinewidth})),E.endline&&_.push(kx(H(k.length-1),{color:E.endlinecolor,width:E.endlinewidth}))}else{for(s=5e-15,u=[Math.floor((k[k.length-1]-E.tick0)/E.dtick*(1+s)),Math.ceil((k[0]-E.tick0)/E.dtick/(1+s))].sort(function(N,W){return N-W}),l=u[0],f=u[1],c=l;c<=f;c++)h=E.tick0+E.dtick*c,T.push(kx(j(h),{color:E.gridcolor,width:E.gridwidth,dash:E.griddash}));for(c=l-1;ck[k.length-1])&&L.push(kx(j(d),{color:E.minorgridcolor,width:E.minorgridwidth,dash:E.minorgriddash}));E.startline&&_.push(kx(j(k[0]),{color:E.startlinecolor,width:E.startlinewidth})),E.endline&&_.push(kx(j(k[k.length-1]),{color:E.endlinecolor,width:E.endlinewidth}))}}});var IYe=Te((Ewr,zYe)=>{"use strict";var LYe=wu(),PYe=Su().extendFlat;zYe.exports=function(t,r){var n,i,a,o,s,u=r._labels=[],l=r._gridlines;for(n=0;n{"use strict";RYe.exports=function(t,r,n,i){var a,o,s,u=[],l=!!n.smoothing,f=!!i.smoothing,c=t[0].length-1,h=t.length-1;for(a=0,o=[],s=[];a<=c;a++)o[a]=t[0][a],s[a]=r[0][a];for(u.push({x:o,y:s,bicubic:l}),a=0,o=[],s=[];a<=h;a++)o[a]=t[a][c],s[a]=r[a][c];for(u.push({x:o,y:s,bicubic:f}),a=c,o=[],s=[];a>=0;a--)o[c-a]=t[h][a],s[c-a]=r[h][a];for(u.push({x:o,y:s,bicubic:l}),a=h,o=[],s=[];a>=0;a--)o[h-a]=t[a][0],s[h-a]=r[a][0];return u.push({x:o,y:s,bicubic:f}),u}});var BYe=Te((Cwr,FYe)=>{"use strict";var sJt=ei();FYe.exports=function(t,r,n){var i,a,o,s=[],u=[],l=t[0].length,f=t.length;function c(ae,be){var Ce=0,Le,pe=0;return ae>0&&(Le=t[be][ae-1])!==void 0&&(pe++,Ce+=Le),ae0&&(Le=t[be-1][ae])!==void 0&&(pe++,Ce+=Le),be0&&a0&&iS);return sJt.log("Smoother converged to",m,"after",A,"iterations"),t}});var qYe=Te((Lwr,OYe)=>{"use strict";OYe.exports={RELATIVE_CULL_TOLERANCE:1e-6}});var VYe=Te((Pwr,UYe)=>{"use strict";var NYe=.5;UYe.exports=function(t,r,n,i){var a=t[0]-r[0],o=t[1]-r[1],s=n[0]-r[0],u=n[1]-r[1],l=Math.pow(a*a+o*o,NYe/2),f=Math.pow(s*s+u*u,NYe/2),c=(f*f*a-l*l*s)*i,h=(f*f*o-l*l*u)*i,d=f*(l+f)*3,p=l*(l+f)*3;return[[r[0]+(d&&c/d),r[1]+(d&&h/d)],[r[0]-(p&&c/p),r[1]-(p&&h/p)]]}});var HYe=Te((zwr,GYe)=>{"use strict";var F$=VYe(),rO=ei().ensureArray;function BS(e,t,r){var n=-.5*r[0]+1.5*t[0],i=-.5*r[1]+1.5*t[1];return[(2*n+e[0])/3,(2*i+e[1])/3]}GYe.exports=function(t,r,n,i,a,o){var s,u,l,f,c,h,d,p,x,b,v=n[0].length,k=n.length,E=a?3*v-2:v,T=o?3*k-2:k;for(t=rO(t,T),r=rO(r,T),l=0;l{"use strict";WYe.exports=function(e,t,r,n,i){var a=t-2,o=r-2;return n&&i?function(s,u,l){s||(s=[]);var f,c,h,d,p,x,b=Math.max(0,Math.min(Math.floor(u),a)),v=Math.max(0,Math.min(Math.floor(l),o)),k=Math.max(0,Math.min(1,u-b)),E=Math.max(0,Math.min(1,l-v));b*=3,v*=3;var T=k*k,L=T*k,_=1-k,C=_*_,S=C*_,m=E*E,P=m*E,A=1-E,B=A*A,F=B*A;for(x=0;x{"use strict";XYe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var u,l,f,c,h,d;i*=3,a*=3;var p=o*o,x=1-o,b=x*x,v=x*o*2,k=-3*b,E=3*(b-v),T=3*(v-p),L=3*p,_=s*s,C=_*s,S=1-s,m=S*S,P=m*S;for(d=0;d{"use strict";YYe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var u,l,f,c,h,d;i*=3,a*=3;var p=o*o,x=p*o,b=1-o,v=b*b,k=v*b,E=s*s,T=1-s,L=T*T,_=T*s*2,C=-3*L,S=3*(L-_),m=3*(_-E),P=3*E;for(d=0;d{"use strict";var JYe=qYe(),$Ye=LL().findBin,lJt=HYe(),uJt=jYe(),fJt=ZYe(),cJt=KYe();QYe.exports=function(t){var r=t._a,n=t._b,i=r.length,a=n.length,o=t.aaxis,s=t.baxis,u=r[0],l=r[i-1],f=n[0],c=n[a-1],h=r[r.length-1]-r[0],d=n[n.length-1]-n[0],p=h*JYe.RELATIVE_CULL_TOLERANCE,x=d*JYe.RELATIVE_CULL_TOLERANCE;u-=p,l+=p,f-=x,c+=x,t.isVisible=function(b,v){return b>u&&bf&&vl||vc},t.setScale=function(){var b=t._x,v=t._y,k=lJt(t._xctrl,t._yctrl,b,v,o.smoothing,s.smoothing);t._xctrl=k[0],t._yctrl=k[1],t.evalxy=uJt([t._xctrl,t._yctrl],i,a,o.smoothing,s.smoothing),t.dxydi=fJt([t._xctrl,t._yctrl],o.smoothing,s.smoothing),t.dxydj=cJt([t._xctrl,t._yctrl],o.smoothing,s.smoothing)},t.i2a=function(b){var v=Math.max(0,Math.floor(b[0]),i-2),k=b[0]-v;return(1-k)*r[v]+k*r[v+1]},t.j2b=function(b){var v=Math.max(0,Math.floor(b[1]),i-2),k=b[1]-v;return(1-k)*n[v]+k*n[v+1]},t.ij2ab=function(b){return[t.i2a(b[0]),t.j2b(b[1])]},t.a2i=function(b){var v=Math.max(0,Math.min($Ye(b,r),i-2)),k=r[v],E=r[v+1];return Math.max(0,Math.min(i-1,v+(b-k)/(E-k)))},t.b2j=function(b){var v=Math.max(0,Math.min($Ye(b,n),a-2)),k=n[v],E=n[v+1];return Math.max(0,Math.min(a-1,v+(b-k)/(E-k)))},t.ab2ij=function(b){return[t.a2i(b[0]),t.b2j(b[1])]},t.i2c=function(b,v){return t.evalxy([],b,v)},t.ab2xy=function(b,v,k){if(!k&&(br[i-1]|vn[a-1]))return[!1,!1];var E=t.a2i(b),T=t.b2j(v),L=t.evalxy([],E,T);if(k){var _=0,C=0,S=[],m,P,A,B;br[i-1]?(m=i-2,P=1,_=(b-r[i-1])/(r[i-1]-r[i-2])):(m=Math.max(0,Math.min(i-2,Math.floor(E))),P=E-m),vn[a-1]?(A=a-2,B=1,C=(v-n[a-1])/(n[a-1]-n[a-2])):(A=Math.max(0,Math.min(a-2,Math.floor(T))),B=T-A),_&&(t.dxydi(S,m,A,P,B),L[0]+=S[0]*_,L[1]+=S[1]*_),C&&(t.dxydj(S,m,A,P,B),L[0]+=S[0]*C,L[1]+=S[1]*C)}return L},t.c2p=function(b,v,k){return[v.c2p(b[0]),k.c2p(b[1])]},t.p2x=function(b,v,k){return[v.p2c(b[0]),k.p2c(b[1])]},t.dadi=function(b){var v=Math.max(0,Math.min(r.length-2,b));return r[v+1]-r[v]},t.dbdj=function(b){var v=Math.max(0,Math.min(n.length-2,b));return n[v+1]-n[v]},t.dxyda=function(b,v,k,E){var T=t.dxydi(null,b,v,k,E),L=t.dadi(b,k);return[T[0]/L,T[1]/L]},t.dxydb=function(b,v,k,E){var T=t.dxydj(null,b,v,k,E),L=t.dbdj(v,E);return[T[0]/L,T[1]/L]},t.dxyda_rough=function(b,v,k){var E=h*(k||.1),T=t.ab2xy(b+E,v,!0),L=t.ab2xy(b-E,v,!0);return[(T[0]-L[0])*.5/E,(T[1]-L[1])*.5/E]},t.dxydb_rough=function(b,v,k){var E=d*(k||.1),T=t.ab2xy(b,v+E,!0),L=t.ab2xy(b,v-E,!0);return[(T[0]-L[0])*.5/E,(T[1]-L[1])*.5/E]},t.dpdx=function(b){return b._m},t.dpdy=function(b){return b._m}}});var lKe=Te((Bwr,sKe)=>{"use strict";var iO=wu(),tKe=ei().isArray1D,hJt=AYe(),rKe=EYe(),iKe=CYe(),nKe=IYe(),dJt=DYe(),aKe=tR(),oKe=BYe(),pJt=QI(),vJt=eKe();sKe.exports=function(t,r){var n=iO.getFromId(t,r.xaxis),i=iO.getFromId(t,r.yaxis),a=r.aaxis,o=r.baxis,s=r.x,u=r.y,l=[];s&&tKe(s)&&l.push("x"),u&&tKe(u)&&l.push("y"),l.length&&pJt(r,a,o,"a","b",l);var f=r._a=r._a||r.a,c=r._b=r._b||r.b;s=r._x||r.x,u=r._y||r.y;var h={};if(r._cheater){var d=a.cheatertype==="index"?f.length:f,p=o.cheatertype==="index"?c.length:c;s=hJt(d,p,r.cheaterslope)}r._x=s=aKe(s),r._y=u=aKe(u),oKe(s,f,c),oKe(u,f,c),vJt(r),r.setScale();var x=rKe(s),b=rKe(u),v=.5*(x[1]-x[0]),k=.5*(x[1]+x[0]),E=.5*(b[1]-b[0]),T=.5*(b[1]+b[0]),L=1.3;return x=[k-v*L,k+v*L],b=[T-E*L,T+E*L],r._extremes[n._id]=iO.findExtremes(n,x,{padded:!0}),r._extremes[i._id]=iO.findExtremes(i,b,{padded:!0}),iKe(r,"a","b"),iKe(r,"b","a"),nKe(r,a),nKe(r,o),h.clipsegments=dJt(r._xctrl,r._yctrl,a,o),h.x=s,h.y=u,h.a=f,h.b=c,[h]}});var fKe=Te((Owr,uKe)=>{"use strict";uKe.exports={attributes:KB(),supplyDefaults:uYe(),plot:bYe(),calc:lKe(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:Ah(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}});var hKe=Te((qwr,cKe)=>{"use strict";cKe.exports=fKe()});var B$=Te((Nwr,pKe)=>{"use strict";var mJt=Em(),u0=Zc(),yJt=Vf(),gJt=Nu().hovertemplateAttrs,_Jt=Nu().texttemplateAttrs,dKe=nc(),Cx=Su().extendFlat,sm=u0.marker,OS=u0.line,xJt=sm.line;pKe.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:Cx({},u0.mode,{dflt:"markers"}),text:Cx({},u0.text,{}),texttemplate:_Jt({editType:"plot"},{keys:["a","b","text"]}),hovertext:Cx({},u0.hovertext,{}),line:{color:OS.color,width:OS.width,dash:OS.dash,backoff:OS.backoff,shape:Cx({},OS.shape,{values:["linear","spline"]}),smoothing:OS.smoothing,editType:"calc"},connectgaps:u0.connectgaps,fill:Cx({},u0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:mJt(),marker:Cx({symbol:sm.symbol,opacity:sm.opacity,maxdisplayed:sm.maxdisplayed,angle:sm.angle,angleref:sm.angleref,standoff:sm.standoff,size:sm.size,sizeref:sm.sizeref,sizemin:sm.sizemin,sizemode:sm.sizemode,line:Cx({width:xJt.width,editType:"calc"},dKe("marker.line")),gradient:sm.gradient,editType:"calc"},dKe("marker")),textfont:u0.textfont,textposition:u0.textposition,selected:u0.selected,unselected:u0.unselected,hoverinfo:Cx({},yJt.hoverinfo,{flags:["a","b","text","name"]}),hoveron:u0.hoveron,hovertemplate:gJt(),zorder:u0.zorder}});var gKe=Te((Uwr,yKe)=>{"use strict";var vKe=ei(),bJt=Sy(),qS=lc(),wJt=$v(),AJt=I0(),mKe=J3(),TJt=R0(),SJt=zm(),MJt=B$();yKe.exports=function(t,r,n,i){function a(h,d){return vKe.coerce(t,r,MJt,h,d)}a("carpet"),r.xaxis="x",r.yaxis="y";var o=a("a"),s=a("b"),u=Math.min(o.length,s.length);if(!u){r.visible=!1;return}r._length=u,a("text"),a("texttemplate"),a("hovertext");var l=u{"use strict";_Ke.exports=function(t,r){var n={},i=r._carpet,a=i.ab2ij([t.a,t.b]),o=Math.floor(a[0]),s=a[0]-o,u=Math.floor(a[1]),l=a[1]-u,f=i.evalxy([],o,u,s,l);return n.yLabel=f[1].toFixed(3),n}});var nO=Te((Gwr,bKe)=>{"use strict";bKe.exports=function(e,t){for(var r=e._fullData.length,n,i=0;i{"use strict";var wKe=ku(),EJt=D0(),kJt=ky(),CJt=F0(),LJt=B0().calcMarkerSize,PJt=nO();AKe.exports=function(t,r){var n=r._carpetTrace=PJt(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){var i;r.xaxis=n.xaxis,r.yaxis=n.yaxis;var a=r._length,o=new Array(a),s,u,l=!1;for(i=0;i{"use strict";var zJt=iA(),SKe=wu(),IJt=Mu();MKe.exports=function(t,r,n,i){var a,o,s,u=n[0][0].carpet,l=SKe.getFromId(t,u.xaxis||"x"),f=SKe.getFromId(t,u.yaxis||"y"),c={xaxis:l,yaxis:f,plot:r.plot};for(a=0;a{"use strict";var RJt=sA(),DJt=ei().fillText;kKe.exports=function(t,r,n,i){var a=RJt(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,u=t.xa._length,l=u*s/2,f=u-l;return o.x0=Math.max(Math.min(o.x0,f),l),o.x1=Math.max(Math.min(o.x1,f),l),a}var c=o.cd[o.index];o.a=c.a,o.b=c.b,o.xLabelVal=void 0,o.yLabelVal=void 0;var h=o.trace,d=h._carpet,p=h._module.formatLabels(c,h);o.yLabel=p.yLabel,delete o.text;var x=[];function b(E,T){var L;E.labelprefix&&E.labelprefix.length>0?L=E.labelprefix.replace(/ = $/,""):L=E._hovertitle,x.push(L+": "+T.toFixed(3)+E.labelsuffix)}if(!h.hovertemplate){var v=c.hi||h.hoverinfo,k=v.split("+");k.indexOf("all")!==-1&&(k=["a","b","text"]),k.indexOf("a")!==-1&&b(d.aaxis,c.a),k.indexOf("b")!==-1&&b(d.baxis,c.b),x.push("y: "+o.yLabel),k.indexOf("text")!==-1&&DJt(c,h,x),o.extraText=x.join("
")}return a}});var PKe=Te((Xwr,LKe)=>{"use strict";LKe.exports=function(t,r,n,i,a){var o=i[a];return t.a=o.a,t.b=o.b,t.y=o.y,t}});var IKe=Te((Zwr,zKe)=>{"use strict";zKe.exports={attributes:B$(),supplyDefaults:gKe(),colorbar:ep(),formatLabels:xKe(),calc:TKe(),plot:EKe(),style:av().style,styleOnSelect:av().styleOnSelect,hoverPoints:CKe(),selectPoints:lA(),eventData:PKe(),moduleType:"trace",name:"scattercarpet",basePlotModule:Ah(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}});var DKe=Te((Ywr,RKe)=>{"use strict";RKe.exports=IKe()});var O$=Te((Kwr,FKe)=>{"use strict";var lm=EA(),m1=EE(),FJt=nc(),BJt=Su().extendFlat,tg=m1.contours;FKe.exports=BJt({carpet:{valType:"string",editType:"calc"},z:lm.z,a:lm.x,a0:lm.x0,da:lm.dx,b:lm.y,b0:lm.y0,db:lm.dy,text:lm.text,hovertext:lm.hovertext,transpose:lm.transpose,atype:lm.xtype,btype:lm.ytype,fillcolor:m1.fillcolor,autocontour:m1.autocontour,ncontours:m1.ncontours,contours:{type:tg.type,start:tg.start,end:tg.end,size:tg.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:tg.showlines,showlabels:tg.showlabels,labelfont:tg.labelfont,labelformat:tg.labelformat,operation:tg.operation,value:tg.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:m1.line.color,width:m1.line.width,dash:m1.line.dash,smoothing:m1.line.smoothing,editType:"plot"},zorder:m1.zorder},FJt("",{cLetter:"z",autoColorDflt:!1}))});var q$=Te((Jwr,qKe)=>{"use strict";var BKe=ei(),OJt=KI(),OKe=O$(),qJt=IG(),NJt=xR(),UJt=bR();qKe.exports=function(t,r,n,i){function a(l,f){return BKe.coerce(t,r,OKe,l,f)}function o(l){return BKe.coerce2(t,r,OKe,l)}if(a("carpet"),t.a&&t.b){var s=OJt(t,r,a,i,"a","b");if(!s){r.visible=!1;return}a("text");var u=a("contours.type")==="constraint";u?qJt(t,r,a,i,n,{hasHover:!1}):(NJt(t,r,a,o),UJt(t,r,a,i,{hasHover:!1}))}else r._defaultColor=n,r._length=null;a("zorder")}});var GKe=Te(($wr,VKe)=>{"use strict";var VJt=Dp(),NKe=ei(),GJt=QI(),HJt=tR(),WJt=rR(),jJt=iR(),UKe=rG(),XJt=q$(),ZJt=nO(),YJt=bG();VKe.exports=function(t,r){var n=r._carpetTrace=ZJt(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){if(!r.a||!r.b){var i=t.data[n.index],a=t.data[r.index];a.a||(a.a=i.a),a.b||(a.b=i.b),XJt(a,r,r._defaultColor,t._fullLayout)}var o=KJt(t,r);return YJt(r,r._z),o}};function KJt(e,t){var r=t._carpetTrace,n=r.aaxis,i=r.baxis,a,o,s,u,l,f,c;n._minDtick=0,i._minDtick=0,NKe.isArray1D(t.z)&&GJt(t,n,i,"a","b",["z"]),a=t._a=t._a||t.a,u=t._b=t._b||t.b,a=a?n.makeCalcdata(t,"_a"):[],u=u?i.makeCalcdata(t,"_b"):[],o=t.a0||0,s=t.da||1,l=t.b0||0,f=t.db||1,c=t._z=HJt(t._z||t.z,t.transpose),t._emptypoints=jJt(c),WJt(c,t._emptypoints);var h=NKe.maxRowLength(c),d=t.xtype==="scaled"?"":a,p=UKe(t,d,o,s,h,n),x=t.ytype==="scaled"?"":u,b=UKe(t,x,l,f,c.length,i),v={a:p,b,z:c};return t.contours.type==="levels"&&t.contours.coloring!=="none"&&VJt(e,t,{vals:c,containerStr:"",cLetter:"z"}),[v]}});var WKe=Te((Qwr,HKe)=>{"use strict";var JJt=ei().isArrayOrTypedArray;HKe.exports=function(e,t,r,n){var i,a,o,s,u,l,f,c,h,d,p,x,b,v=JJt(r)?"a":"b",k=v==="a"?e.aaxis:e.baxis,E=k.smoothing,T=v==="a"?e.a2i:e.b2j,L=v==="a"?r:n,_=v==="a"?n:r,C=v==="a"?t.a.length:t.b.length,S=v==="a"?t.b.length:t.a.length,m=Math.floor(v==="a"?e.b2j(_):e.a2i(_)),P=v==="a"?function(be){return e.evalxy([],be,m)}:function(be){return e.evalxy([],m,be)};E&&(o=Math.max(0,Math.min(S-2,m)),s=m-o,a=v==="a"?function(be,Ce){return e.dxydi([],be,o,Ce,s)}:function(be,Ce){return e.dxydj([],o,be,s,Ce)});var A=T(L[0]),B=T(L[1]),F=A0?Math.floor:Math.ceil,j=F>0?Math.ceil:Math.floor,H=F>0?Math.min:Math.max,N=F>0?Math.max:Math.min,W=G(A+U),re=j(B-U);f=P(A);var ae=[[f]];for(i=W;i*F{"use strict";var oO=Jl(),sO=I$(),KKe=R$(),aC=Mu(),y1=ei(),$Jt=AG(),QJt=TG(),hw=TR(),aO=CE(),e$t=kG(),t$t=EG(),r$t=CG(),i$t=nO(),jKe=WKe();JKe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;y1.makeTraceGroups(i,n,"contour").each(function(s){var u=oO.select(this),l=s[0],f=l.trace,c=f._carpetTrace=i$t(t,f),h=t.calcdata[c.index][0];if(!c.visible||c.visible==="legendonly")return;var d=l.a,p=l.b,x=f.contours,b=t$t(x,r,l),v=x.type==="constraint",k=x._operation,E=v?k==="="?"lines":"fill":x.coloring;function T(G){var j=c.ab2xy(G[0],G[1],!0);return[a.c2p(j[0]),o.c2p(j[1])]}var L=[[d[0],p[p.length-1]],[d[d.length-1],p[p.length-1]],[d[d.length-1],p[0]],[d[0],p[0]]];$Jt(b);var _=(d[d.length-1]-d[0])*1e-8,C=(p[p.length-1]-p[0])*1e-8;QJt(b,_,C);var S=b;x.type==="constraint"&&(S=e$t(b,k)),n$t(b,T);var m,P,A,B,F=[];for(B=h.clipsegments.length-1;B>=0;B--)m=h.clipsegments[B],P=sO([],m.x,a.c2p),A=sO([],m.y,o.c2p),P.reverse(),A.reverse(),F.push(KKe(P,A,m.bicubic));var U="M"+F.join("L")+"Z";s$t(u,h.clipsegments,a,o,v,E),l$t(f,u,a,o,S,L,T,c,h,E,U),a$t(u,b,t,l,x,r,c),aC.setClipUrl(u,c._clipPathId,t)})};function n$t(e,t){var r,n,i,a,o,s,u,l,f;for(r=0;rb&&(n.max=b),n.len=n.max-n.min}function XKe(e,t,r){var n=e.getPointAtLength(t),i=e.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function ZKe(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function YKe(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]),n=Math.sqrt(1-r*r);return n/r}function s$t(e,t,r,n,i,a){var o,s,u,l,f=y1.ensureSingle(e,"g","contourbg"),c=f.selectAll("path").data(a==="fill"&&!i?[0]:[]);c.enter().append("path"),c.exit().remove();var h=[];for(l=0;l=0&&(d=P,x=b):Math.abs(h[1]-d[1])=0&&(d=P,x=b):y1.log("endpt to newendpt is not vert. or horz.",h,d,P)}if(x>=0)break;l+=S(h,d),h=d}if(x===t.edgepaths.length){y1.log("unclosed perimeter path");break}u=x,c=f.indexOf(u)===-1,c&&(u=f[0],l+=S(h,d)+"Z",h=null)}for(u=0;u{"use strict";QKe.exports={attributes:O$(),supplyDefaults:q$(),colorbar:ER(),calc:GKe(),plot:$Ke(),style:MR(),moduleType:"trace",name:"contourcarpet",basePlotModule:Ah(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}});var rJe=Te((r3r,tJe)=>{"use strict";tJe.exports=eJe()});var uO=Te((i3r,sJe)=>{"use strict";var lO=ei().extendFlat,oC=Zc(),iJe=jc().axisHoverFormat,aJe=Id().dash,f$t=i3(),oJe=GA(),c$t=oJe.INCREASING.COLOR,h$t=oJe.DECREASING.COLOR,N$=oC.line;function nJe(e){return{line:{color:lO({},N$.color,{dflt:e}),width:N$.width,dash:aJe,editType:"style"},editType:"style"}}sJe.exports={xperiod:oC.xperiod,xperiod0:oC.xperiod0,xperiodalignment:oC.xperiodalignment,xhoverformat:iJe("x"),yhoverformat:iJe("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:lO({},N$.width,{}),dash:lO({},aJe,{}),editType:"style"},increasing:nJe(c$t),decreasing:nJe(h$t),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:lO({},f$t.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:oC.zorder}});var U$=Te((n3r,lJe)=>{"use strict";var d$t=$l(),p$t=ei();lJe.exports=function(t,r,n,i){var a=n("x"),o=n("open"),s=n("high"),u=n("low"),l=n("close");n("hoverlabel.split");var f=d$t.getComponentMethod("calendars","handleTraceDefaults");if(f(t,r,["x"],i),!!(o&&s&&u&&l)){var c=Math.min(o.length,s.length,u.length,l.length);return a&&(c=Math.min(c,p$t.minRowLength(a))),r._length=c,c}}});var cJe=Te((a3r,fJe)=>{"use strict";var v$t=ei(),m$t=U$(),y$t=Pm(),g$t=uO();fJe.exports=function(t,r,n,i){function a(s,u){return v$t.coerce(t,r,g$t,s,u)}var o=m$t(t,r,a,i);if(!o){r.visible=!1;return}y$t(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),a("line.dash"),uJe(t,r,a,"increasing"),uJe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("tickwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function uJe(e,t,r,n){r(n+".line.color"),r(n+".line.width",t.line.width),r(n+".line.dash",t.line.dash)}});var V$=Te((o3r,dJe)=>{"use strict";var NS=ei(),fO=NS._,cO=wu(),_$t=Im(),sC=nf().BADNUM;function x$t(e,t){var r=cO.getFromId(e,t.xaxis),n=cO.getFromId(e,t.yaxis),i=w$t(e,r,t),a=t._minDiff;t._minDiff=null;var o=t._origX;t._origX=null;var s=t._xcalc;t._xcalc=null;var u=hJe(e,t,o,s,n,b$t);return t._extremes[r._id]=cO.findExtremes(r,s,{vpad:a/2}),u.length?(NS.extendFlat(u[0].t,{wHover:a/2,tickLen:i}),u):[{t:{empty:!0}}]}function b$t(e,t,r,n){return{o:e,h:t,l:r,c:n}}function hJe(e,t,r,n,i,a){for(var o=i.makeCalcdata(t,"open"),s=i.makeCalcdata(t,"high"),u=i.makeCalcdata(t,"low"),l=i.makeCalcdata(t,"close"),f=NS.isArrayOrTypedArray(t.text),c=NS.isArrayOrTypedArray(t.hovertext),h=!0,d=null,p=!!t.xperiodalignment,x=[],b=0;bd):h=L>k,d=L;var _=a(k,E,T,L);_.pos=v,_.yc=(k+L)/2,_.i=b,_.dir=h?"increasing":"decreasing",_.x=_.pos,_.y=[T,E],p&&(_.orig_p=r[b]),f&&(_.tx=t.text[b]),c&&(_.htx=t.hovertext[b]),x.push(_)}else x.push({pos:v,empty:!0})}return t._extremes[i._id]=cO.findExtremes(i,NS.concat(u,s),{padded:!0}),x.length&&(x[0].t={labels:{open:fO(e,"open:")+" ",high:fO(e,"high:")+" ",low:fO(e,"low:")+" ",close:fO(e,"close:")+" "}}),x}function w$t(e,t,r){var n=r._minDiff;if(!n){var i=e._fullData,a=[];n=1/0;var o;for(o=0;o{"use strict";var A$t=Jl(),pJe=ei();vJe.exports=function(t,r,n,i){var a=r.yaxis,o=r.xaxis,s=!!o.rangebreaks;pJe.makeTraceGroups(i,n,"trace ohlc").each(function(u){var l=A$t.select(this),f=u[0],c=f.t,h=f.trace;if(h.visible!==!0||c.empty){l.remove();return}var d=c.tickLen,p=l.selectAll("path").data(pJe.identity);p.enter().append("path"),p.exit().remove(),p.attr("d",function(x){if(x.empty)return"M0,0Z";var b=o.c2p(x.pos-d,!0),v=o.c2p(x.pos+d,!0),k=s?(b+v)/2:o.c2p(x.pos,!0),E=a.c2p(x.o,!0),T=a.c2p(x.h,!0),L=a.c2p(x.l,!0),_=a.c2p(x.c,!0);return"M"+b+","+E+"H"+k+"M"+k+","+T+"V"+L+"M"+v+","+_+"H"+k})})}});var gJe=Te((l3r,yJe)=>{"use strict";var G$=Jl(),T$t=Mu(),S$t=jl();yJe.exports=function(t,r,n){var i=n||G$.select(t).selectAll("g.ohlclayer").selectAll("g.trace");i.style("opacity",function(a){return a[0].trace.opacity}),i.each(function(a){var o=a[0].trace;G$.select(this).selectAll("path").each(function(s){if(!s.empty){var u=o[s.dir].line;G$.select(this).style("fill","none").call(S$t.stroke,u.color).call(T$t.dashLine,u.dash,u.width).style("opacity",o.selectedpoints&&!s.selected?.3:1)}})})}});var W$=Te((u3r,AJe)=>{"use strict";var H$=wu(),M$t=ei(),hO=Xc(),E$t=jl(),k$t=ei().fillText,_Je=GA(),C$t={increasing:_Je.INCREASING.SYMBOL,decreasing:_Je.DECREASING.SYMBOL};function L$t(e,t,r,n){var i=e.cd,a=i[0].trace;return a.hoverlabel.split?bJe(e,t,r,n):wJe(e,t,r,n)}function xJe(e,t,r,n){var i=e.cd,a=e.xa,o=i[0].trace,s=i[0].t,u=o.type,l=u==="ohlc"?"l":"min",f=u==="ohlc"?"h":"max",c,h,d=s.bPos||0,p=function(P){return P.pos+d-t},x=s.bdPos||s.tickLen,b=s.wHover,v=Math.min(1,x/Math.abs(a.r2c(a.range[1])-a.r2c(a.range[0])));c=e.maxHoverDistance-v,h=e.maxSpikeDistance-v;function k(P){var A=p(P);return hO.inbox(A-b,A+b,c)}function E(P){var A=P[l],B=P[f];return A===B||hO.inbox(A-r,B-r,c)}function T(P){return(k(P)+E(P))/2}var L=hO.getDistanceFunction(n,k,E,T);if(hO.getClosest(i,L,e),e.index===!1)return null;var _=i[e.index];if(_.empty)return null;var C=_.dir,S=o[C],m=S.line.color;return E$t.opacity(m)&&S.line.width?e.color=m:e.color=S.fillcolor,e.x0=a.c2p(_.pos+d-x,!0),e.x1=a.c2p(_.pos+d+x,!0),e.xLabelVal=_.orig_p!==void 0?_.orig_p:_.pos,e.spikeDistance=T(_)*h/c,e.xSpike=a.c2p(_.pos,!0),e}function bJe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,u=[],l=xJe(e,t,r,n);if(!l)return[];var f=l.index,c=i[f],h=c.hi||o.hoverinfo,d=h.split("+"),p=h==="all",x=p||d.indexOf("y")!==-1;if(!x)return[];for(var b=["high","open","close","low"],v={},k=0;k"+s.labels[E]+H$.hoverLabelText(a,T,o.yhoverformat)):(_=M$t.extendFlat({},l),_.y0=_.y1=L,_.yLabelVal=T,_.yLabel=s.labels[E]+H$.hoverLabelText(a,T,o.yhoverformat),_.name="",u.push(_),v[T]=_)}return u}function wJe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,u=xJe(e,t,r,n);if(!u)return[];var l=u.index,f=i[l],c=u.index=f.i,h=f.dir;function d(T){return s.labels[T]+H$.hoverLabelText(a,o[T][c],o.yhoverformat)}var p=f.hi||o.hoverinfo,x=p.split("+"),b=p==="all",v=b||x.indexOf("y")!==-1,k=b||x.indexOf("text")!==-1,E=v?[d("open"),d("high"),d("low"),d("close")+" "+C$t[h]]:[];return k&&k$t(f,o,E),u.extraText=E.join("
"),u.y0=u.y1=a.c2p(f.yc,!0),[u]}AJe.exports={hoverPoints:L$t,hoverSplit:bJe,hoverOnPoints:wJe}});var j$=Te((f3r,TJe)=>{"use strict";TJe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,u=n[0].t.bPos||0;if(r===!1)for(s=0;s{"use strict";SJe.exports={moduleType:"trace",name:"ohlc",basePlotModule:Ah(),categories:["cartesian","svg","showLegend"],meta:{},attributes:uO(),supplyDefaults:cJe(),calc:V$().calc,plot:mJe(),style:gJe(),hoverPoints:W$().hoverPoints,selectPoints:j$()}});var kJe=Te((h3r,EJe)=>{"use strict";EJe.exports=MJe()});var Z$=Te((d3r,PJe)=>{"use strict";var X$=ei().extendFlat,CJe=jc().axisHoverFormat,f0=uO(),US=gE();function LJe(e){return{line:{color:X$({},US.line.color,{dflt:e}),width:US.line.width,editType:"style"},fillcolor:US.fillcolor,editType:"style"}}PJe.exports={xperiod:f0.xperiod,xperiod0:f0.xperiod0,xperiodalignment:f0.xperiodalignment,xhoverformat:CJe("x"),yhoverformat:CJe("y"),x:f0.x,open:f0.open,high:f0.high,low:f0.low,close:f0.close,line:{width:X$({},US.line.width,{}),editType:"style"},increasing:LJe(f0.increasing.line.color.dflt),decreasing:LJe(f0.decreasing.line.color.dflt),text:f0.text,hovertext:f0.hovertext,whiskerwidth:X$({},US.whiskerwidth,{dflt:0}),hoverlabel:f0.hoverlabel,zorder:US.zorder}});var RJe=Te((p3r,IJe)=>{"use strict";var P$t=ei(),z$t=jl(),I$t=U$(),R$t=Pm(),D$t=Z$();IJe.exports=function(t,r,n,i){function a(s,u){return P$t.coerce(t,r,D$t,s,u)}var o=I$t(t,r,a,i);if(!o){r.visible=!1;return}R$t(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),zJe(t,r,a,"increasing"),zJe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("whiskerwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function zJe(e,t,r,n){var i=r(n+".line.color");r(n+".line.width",t.line.width),r(n+".fillcolor",z$t.addOpacity(i,.5))}});var OJe=Te((v3r,BJe)=>{"use strict";var DJe=ei(),FJe=wu(),F$t=Im(),B$t=V$().calcCommon;BJe.exports=function(e,t){var r=e._fullLayout,n=FJe.getFromId(e,t.xaxis),i=FJe.getFromId(e,t.yaxis),a=n.makeCalcdata(t,"x"),o=F$t(t,n,"x",a).vals,s=B$t(e,t,a,o,i,O$t);return s.length?(DJe.extendFlat(s[0].t,{num:r._numBoxes,dPos:DJe.distinctVals(o).minDiff/2,posLetter:"x",valLetter:"y"}),r._numBoxes++,s):[{t:{empty:!0}}]};function O$t(e,t,r,n){return{min:r,q1:Math.min(e,n),med:n,q3:Math.max(e,n),max:t}}});var NJe=Te((m3r,qJe)=>{"use strict";qJe.exports={moduleType:"trace",name:"candlestick",basePlotModule:Ah(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:Z$(),layoutAttributes:_E(),supplyLayoutDefaults:HI().supplyLayoutDefaults,crossTraceCalc:jI().crossTraceCalc,supplyDefaults:RJe(),calc:OJe(),plot:XI().plot,layerName:"boxlayer",style:ZI().style,hoverPoints:W$().hoverPoints,selectPoints:j$()}});var VJe=Te((y3r,UJe)=>{"use strict";UJe.exports=NJe()});var K$=Te((g3r,GJe)=>{"use strict";var pO=ei(),q$t=gy(),dO=pO.deg2rad,Y$=pO.rad2deg;GJe.exports=function(t,r,n){switch(q$t(t,n),t._id){case"x":case"radialaxis":N$t(t,r);break;case"angularaxis":G$t(t,r);break}};function N$t(e,t){var r=t._subplot;e.setGeometry=function(){var n=e._rl[0],i=e._rl[1],a=r.innerRadius,o=(r.radius-a)/(i-n),s=a/o,u=n>i?function(l){return l<=0}:function(l){return l>=0};e.c2g=function(l){var f=e.c2l(l)-n;return(u(f)?f:0)+s},e.g2c=function(l){return e.l2c(l+n-s)},e.g2p=function(l){return l*o},e.c2p=function(l){return e.g2p(e.c2g(l))}}}function U$t(e,t){return t==="degrees"?dO(e):e}function V$t(e,t){return t==="degrees"?Y$(e):e}function G$t(e,t){var r=e.type;if(r==="linear"){var n=e.d2c,i=e.c2d;e.d2c=function(a,o){return U$t(n(a),o)},e.c2d=function(a,o){return i(V$t(a,o))}}e.makeCalcdata=function(a,o){var s=a[o],u=a._length,l,f,c=function(b){return e.d2c(b,a.thetaunit)};if(s)for(l=new Array(u),f=0;f{"use strict";HJe.exports={attr:"subplot",name:"polar",axisNames:["angularaxis","radialaxis"],axisName2dataArray:{angularaxis:"theta",radialaxis:"r"},layerNames:["draglayer","plotbg","backplot","angular-grid","radial-grid","frontplot","angular-line","radial-line","angular-axis","radial-axis"],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}});var yO=Te((x3r,YJe)=>{"use strict";var dw=ei(),WJe=M5().tester,J$=dw.findIndexOfMin,XJe=dw.isAngleInsideSector,H$t=dw.angleDelta,jJe=dw.angleDist;function W$t(e,t,r,n,i){if(!XJe(t,n))return!1;var a,o;r[0]0?o:1/0},n=J$(t,r),i=dw.mod(n+1,t.length);return[t[n],t[i]]}function mO(e){return Math.abs(e)>1e-10?e:0}function $$(e,t,r){t=t||0,r=r||0;for(var n=e.length,i=new Array(n),a=0;a{"use strict";function KJe(e){return e<0?-1:e>0?1:0}function GS(e){var t=e[0],r=e[1];if(!isFinite(t)||!isFinite(r))return[1,0];var n=(t+1)*(t+1)+r*r;return[(t*t+r*r-1)/n,2*r/n]}function HS(e,t){var r=t[0],n=t[1];return[r*e.radius+e.cx,-n*e.radius+e.cy]}function JJe(e,t){return t*e.radius}function Q$t(e,t,r,n){var i=HS(e,GS([r,t])),a=i[0],o=i[1],s=HS(e,GS([n,t])),u=s[0],l=s[1];if(t===0)return["M"+a+","+o,"L"+u+","+l].join(" ");var f=JJe(e,1/Math.abs(t));return["M"+a+","+o,"A"+f+","+f+" 0 0,"+(t<0?1:0)+" "+u+","+l].join(" ")}function eQt(e,t,r,n){var i=JJe(e,1/(t+1)),a=HS(e,GS([t,r])),o=a[0],s=a[1],u=HS(e,GS([t,n])),l=u[0],f=u[1];if(KJe(r)!==KJe(n)){var c=HS(e,GS([t,0])),h=c[0],d=c[1];return["M"+o+","+s,"A"+i+","+i+" 0 0,"+(0{"use strict";var pw=Jl(),tQt=cd(),mw=$l(),Oc=ei(),rg=Oc.strRotate,bd=Oc.strTranslate,eQ=jl(),lC=Mu(),rQt=Cc(),hv=wu(),iQt=gy(),nQt=K$(),aQt=wm().doAutoRange,g1=X7(),xO=gp(),QJe=Xc(),oQt=Mb(),sQt=ah().prepSelect,lQt=ah().selectOnClick,tQ=ah().clearOutline,e$e=Am(),t$e=h5(),r$e=x5().redrawReglTraces,uQt=Qh().MID_SHIFT,Lx=vO(),_1=yO(),bO=Q$(),gO=bO.smith,fQt=bO.reactanceArc,cQt=bO.resistanceArc,_O=bO.smithTransform,hQt=Oc._,i$e=Oc.mod,Px=Oc.deg2rad,vw=Oc.rad2deg;function n$e(e,t,r){this.isSmith=r||!1,this.id=t,this.gd=e,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var n=e._fullLayout,i="clip"+n._uid+t;this.clipIds.forTraces=i+"-for-traces",this.clipPaths.forTraces=n._clips.append("clipPath").attr("id",this.clipIds.forTraces),this.clipPaths.forTraces.append("path"),this.framework=n["_"+(r?"smith":"polar")+"layer"].append("g").attr("class",t),this.getHole=function(a){return this.isSmith?0:a.hole},this.getSector=function(a){return this.isSmith?[0,360]:a.sector},this.getRadial=function(a){return this.isSmith?a.realaxis:a.radialaxis},this.getAngular=function(a){return this.isSmith?a.imaginaryaxis:a.angularaxis},r||(this.radialTickLayout=null,this.angularTickLayout=null)}var Vd=n$e.prototype;s$e.exports=function(t,r,n){return new n$e(t,r,n)};Vd.plot=function(e,t){for(var r=this,n=t[r.id],i=!1,a=0;ab?(v=l,k=l*b,L=(f-k)/i.h/2,E=[s[0],s[1]],T=[u[0]+L,u[1]-L]):(v=f/b,k=f,L=(l-v)/i.w/2,E=[s[0]+L,s[1]-L],T=[u[0],u[1]]),r.xLength2=v,r.yLength2=k,r.xDomain2=E,r.yDomain2=T;var _=r.xOffset2=i.l+i.w*E[0],C=r.yOffset2=i.t+i.h*(1-T[1]),S=r.radius=v/d,m=r.innerRadius=r.getHole(t)*S,P=r.cx=_-S*h[0],A=r.cy=C+S*h[3],B=r.cxx=P-_,F=r.cyy=A-C,U=a.side,G;U==="counterclockwise"?(G=U,U="top"):U==="clockwise"&&(G=U,U="bottom"),r.radialAxis=r.mockAxis(e,t,a,{_id:"x",side:U,_trueSide:G,domain:[m/i.w,S/i.w]}),r.angularAxis=r.mockAxis(e,t,o,{side:"right",domain:[0,Math.PI],autorange:!1}),r.doAutoRange(e,t),r.updateAngularAxis(e,t),r.updateRadialAxis(e,t),r.updateRadialAxisTitle(e,t),r.xaxis=r.mockCartesianAxis(e,t,{_id:"x",domain:E}),r.yaxis=r.mockCartesianAxis(e,t,{_id:"y",domain:T});var j=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",j).attr("transform",bd(B,F)),n.frontplot.attr("transform",bd(_,C)).call(lC.setClipUrl,r._hasClipOnAxisFalse?null:r.clipIds.forTraces,r.gd),n.bg.attr("d",j).attr("transform",bd(P,A)).call(eQ.fill,t.bgcolor)};Vd.mockAxis=function(e,t,r,n){var i=Oc.extendFlat({},r,n);return nQt(i,t,e),i};Vd.mockCartesianAxis=function(e,t,r){var n=this,i=n.isSmith,a=r._id,o=Oc.extendFlat({type:"linear"},r);iQt(o,e);var s={x:[0,2],y:[1,3]};return o.setRange=function(){var u=n.sectorBBox,l=s[a],f=n.radialAxis._rl,c=(f[1]-f[0])/(1-n.getHole(t));o.range=[u[l[0]]*c,u[l[1]]*c]},o.isPtWithinRange=a==="x"&&!i?function(u){return n.isPtInside(u)}:function(){return!0},o.setRange(),o.setScale(),o};Vd.doAutoRange=function(e,t){var r=this,n=r.gd,i=r.radialAxis,a=r.getRadial(t);aQt(n,i);var o=i.range;if(a.range=o.slice(),a._input.range=o.slice(),i._rl=[i.r2l(o[0],null,"gregorian"),i.r2l(o[1],null,"gregorian")],i.minallowed!==void 0){var s=i.r2l(i.minallowed);i._rl[0]>i._rl[1]?i._rl[1]=Math.max(i._rl[1],s):i._rl[0]=Math.max(i._rl[0],s)}if(i.maxallowed!==void 0){var u=i.r2l(i.maxallowed);i._rl[0]90&&f<=270&&(c.tickangle=180);var p=d?function(S){var m=_O(r,gO([S.x,0]));return bd(m[0]-s,m[1]-u)}:function(S){return bd(c.l2p(S.x)+o,0)},x=d?function(S){return cQt(r,S.x,-1/0,1/0)}:function(S){return r.pathArc(c.r2p(S.x)+o)},b=a$e(l);if(r.radialTickLayout!==b&&(i["radial-axis"].selectAll(".xtick").remove(),r.radialTickLayout=b),h){c.setScale();var v=0,k=d?(c.tickvals||[]).filter(function(S){return S>=0}).map(function(S){return hv.tickText(c,S,!0,!1)}):hv.calcTicks(c),E=d?k:hv.clipEnds(c,k),T=hv.getTickSigns(c)[2];d&&((c.ticks==="top"&&c.side==="bottom"||c.ticks==="bottom"&&c.side==="top")&&(T=-T),c.ticks==="top"&&c.side==="top"&&(v=-c.ticklen),c.ticks==="bottom"&&c.side==="bottom"&&(v=c.ticklen)),hv.drawTicks(n,c,{vals:k,layer:i["radial-axis"],path:hv.makeTickPath(c,0,T),transFn:p,crisp:!1}),hv.drawGrid(n,c,{vals:E,layer:i["radial-grid"],path:x,transFn:Oc.noop,crisp:!1}),hv.drawLabels(n,c,{vals:k,layer:i["radial-axis"],transFn:p,labelFns:hv.makeLabelFns(c,v)})}var L=r.radialAxisAngle=r.vangles?vw(o$e(Px(l.angle),r.vangles)):l.angle,_=bd(s,u),C=_+rg(-L);uC(i["radial-axis"],h&&(l.showticklabels||l.ticks),{transform:C}),uC(i["radial-grid"],h&&l.showgrid,{transform:d?"":_}),uC(i["radial-line"].select("line"),h&&l.showline,{x1:d?-a:o,y1:0,x2:a,y2:0,transform:C}).attr("stroke-width",l.linewidth).call(eQ.stroke,l.linecolor)};Vd.updateRadialAxisTitle=function(e,t,r){if(!this.isSmith){var n=this,i=n.gd,a=n.radius,o=n.cx,s=n.cy,u=n.getRadial(t),l=n.id+"title",f=0;if(u.title){var c=lC.bBox(n.layers["radial-axis"].node()).height,h=u.title.font.size,d=u.side;f=d==="top"?h:d==="counterclockwise"?-(c+h*.4):c+h*.8}var p=r!==void 0?r:n.radialAxisAngle,x=Px(p),b=Math.cos(x),v=Math.sin(x),k=o+a/2*b+f*v,E=s-a/2*v+f*b;n.layers["radial-axis-title"]=oQt.draw(i,l,{propContainer:u,propName:n.id+".radialaxis.title",placeholder:hQt(i,"Click to enter radial axis title"),attributes:{x:k,y:E,"text-anchor":"middle"},transform:{rotate:-p}})}};Vd.updateAngularAxis=function(e,t){var r=this,n=r.gd,i=r.layers,a=r.radius,o=r.innerRadius,s=r.cx,u=r.cy,l=r.getAngular(t),f=r.angularAxis,c=r.isSmith;c||(r.fillViewInitialKey("angularaxis.rotation",l.rotation),f.setGeometry(),f.setScale());var h=c?function(m){var P=_O(r,gO([0,m.x]));return Math.atan2(P[0]-s,P[1]-u)-Math.PI/2}:function(m){return f.t2g(m.x)};f.type==="linear"&&f.thetaunit==="radians"&&(f.tick0=vw(f.tick0),f.dtick=vw(f.dtick));var d=function(m){return bd(s+a*Math.cos(m),u-a*Math.sin(m))},p=c?function(m){var P=_O(r,gO([0,m.x]));return bd(P[0],P[1])}:function(m){return d(h(m))},x=c?function(m){var P=_O(r,gO([0,m.x])),A=Math.atan2(P[0]-s,P[1]-u)-Math.PI/2;return bd(P[0],P[1])+rg(-vw(A))}:function(m){var P=h(m);return d(P)+rg(-vw(P))},b=c?function(m){return fQt(r,m.x,0,1/0)}:function(m){var P=h(m),A=Math.cos(P),B=Math.sin(P);return"M"+[s+o*A,u-o*B]+"L"+[s+a*A,u-a*B]},v=hv.makeLabelFns(f,0),k=v.labelStandoff,E={};E.xFn=function(m){var P=h(m);return Math.cos(P)*k},E.yFn=function(m){var P=h(m),A=Math.sin(P)>0?.2:1;return-Math.sin(P)*(k+m.fontSize*A)+Math.abs(Math.cos(P))*(m.fontSize*uQt)},E.anchorFn=function(m){var P=h(m),A=Math.cos(P);return Math.abs(A)<.1?"middle":A>0?"start":"end"},E.heightFn=function(m,P,A){var B=h(m);return-.5*(1+Math.sin(B))*A};var T=a$e(l);r.angularTickLayout!==T&&(i["angular-axis"].selectAll("."+f._id+"tick").remove(),r.angularTickLayout=T);var L=c?[1/0].concat(f.tickvals||[]).map(function(m){return hv.tickText(f,m,!0,!1)}):hv.calcTicks(f);c&&(L[0].text="\u221E",L[0].fontSize*=1.75);var _;if(t.gridshape==="linear"?(_=L.map(h),Oc.angleDelta(_[0],_[1])<0&&(_=_.slice().reverse())):_=null,r.vangles=_,f.type==="category"&&(L=L.filter(function(m){return Oc.isAngleInsideSector(h(m),r.sectorInRad)})),f.visible){var C=f.ticks==="inside"?-1:1,S=(f.linewidth||1)/2;hv.drawTicks(n,f,{vals:L,layer:i["angular-axis"],path:"M"+C*S+",0h"+C*f.ticklen,transFn:x,crisp:!1}),hv.drawGrid(n,f,{vals:L,layer:i["angular-grid"],path:b,transFn:Oc.noop,crisp:!1}),hv.drawLabels(n,f,{vals:L,layer:i["angular-axis"],repositionOnUpdate:!0,transFn:p,labelFns:E})}uC(i["angular-line"].select("path"),l.showline,{d:r.pathSubplot(),transform:bd(s,u)}).attr("stroke-width",l.linewidth).call(eQ.stroke,l.linecolor)};Vd.updateFx=function(e,t){if(!this.gd._context.staticPlot){var r=!this.isSmith;r&&(this.updateAngularDrag(e),this.updateRadialDrag(e,t,0),this.updateRadialDrag(e,t,1)),this.updateHoverAndMainDrag(e)}};Vd.updateHoverAndMainDrag=function(e){var t=this,r=t.isSmith,n=t.gd,i=t.layers,a=e._zoomlayer,o=Lx.MINZOOM,s=Lx.OFFEDGE,u=t.radius,l=t.innerRadius,f=t.cx,c=t.cy,h=t.cxx,d=t.cyy,p=t.sectorInRad,x=t.vangles,b=t.radialAxis,v=_1.clampTiny,k=_1.findXYatLength,E=_1.findEnclosingVertexAngles,T=Lx.cornerHalfWidth,L=Lx.cornerLen/2,_,C,S=g1.makeDragger(i,"path","maindrag",e.dragmode===!1?"none":"crosshair");pw.select(S).attr("d",t.pathSubplot()).attr("transform",bd(f,c)),S.onmousemove=function(ce){QJe.hover(n,ce,t.id),n._fullLayout._lasthover=S,n._fullLayout._hoversubplot=t.id},S.onmouseout=function(ce){n._dragging||xO.unhover(n,ce)};var m={element:S,gd:n,subplot:t.id,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis},xaxes:[t.xaxis],yaxes:[t.yaxis]},P,A,B,F,U,G,j,H,N;function W(ce,Je){return Math.sqrt(ce*ce+Je*Je)}function re(ce,Je){return W(ce-h,Je-d)}function ae(ce,Je){return Math.atan2(d-Je,ce-h)}function be(ce,Je){return[ce*Math.cos(Je),ce*Math.sin(-Je)]}function Ce(ce,Je){if(ce===0)return t.pathSector(2*T);var nt=L/ce,gt=Je-nt,Nt=Je+nt,it=Math.max(0,Math.min(ce,u)),Ye=it-T,kt=it+T;return"M"+be(Ye,gt)+"A"+[Ye,Ye]+" 0,0,0 "+be(Ye,Nt)+"L"+be(kt,Nt)+"A"+[kt,kt]+" 0,0,1 "+be(kt,gt)+"Z"}function Le(ce,Je,nt){if(ce===0)return t.pathSector(2*T);var gt=be(ce,Je),Nt=be(ce,nt),it=v((gt[0]+Nt[0])/2),Ye=v((gt[1]+Nt[1])/2),kt,Tt;if(it&&Ye){var St=Ye/it,Dt=-1/St,Zt=k(T,St,it,Ye);kt=k(L,Dt,Zt[0][0],Zt[0][1]),Tt=k(L,Dt,Zt[1][0],Zt[1][1])}else{var Et,Ae;Ye?(Et=L,Ae=T):(Et=T,Ae=L),kt=[[it-Et,Ye-Ae],[it+Et,Ye-Ae]],Tt=[[it-Et,Ye+Ae],[it+Et,Ye+Ae]]}return"M"+kt.join("L")+"L"+Tt.reverse().join("L")+"Z"}function pe(){B=null,F=null,U=t.pathSubplot(),G=!1;var ce=n._fullLayout[t.id];j=tQt(ce.bgcolor).getLuminance(),H=g1.makeZoombox(a,j,f,c,U),H.attr("fill-rule","evenodd"),N=g1.makeCorners(a,f,c),tQ(n)}function te(ce,Je){return Je=Math.max(Math.min(Je,u),l),ceo?(ce-1&&ce===1&&lQt(Je,n,[t.xaxis],[t.yaxis],t.id,m),nt.indexOf("event")>-1&&QJe.click(n,Je,t.id)}m.prepFn=function(ce,Je,nt){var gt=n._fullLayout.dragmode,Nt=S.getBoundingClientRect();n._fullLayout._calcInverseTransform(n);var it=n._fullLayout._invTransform;_=n._fullLayout._invScaleX,C=n._fullLayout._invScaleY;var Ye=Oc.apply3DTransform(it)(Je-Nt.left,nt-Nt.top);if(P=Ye[0],A=Ye[1],x){var kt=_1.findPolygonOffset(u,p[0],p[1],x);P+=h+kt[0],A+=d+kt[1]}switch(gt){case"zoom":m.clickFn=Ve,r||(x?m.moveFn=Ne:m.moveFn=Ee,m.doneFn=Fe,pe(ce,Je,nt));break;case"select":case"lasso":sQt(ce,Je,nt,m,gt);break}},xO.init(m)};Vd.updateRadialDrag=function(e,t,r){var n=this,i=n.gd,a=n.layers,o=n.radius,s=n.innerRadius,u=n.cx,l=n.cy,f=n.radialAxis,c=Lx.radialDragBoxSize,h=c/2;if(!f.visible)return;var d=Px(n.radialAxisAngle),p=f._rl,x=p[0],b=p[1],v=p[r],k=.75*(p[1]-p[0])/(1-n.getHole(t))/o,E,T,L;r?(E=u+(o+h)*Math.cos(d),T=l-(o+h)*Math.sin(d),L="radialdrag"):(E=u+(s-h)*Math.cos(d),T=l-(s-h)*Math.sin(d),L="radialdrag-inner");var _=g1.makeRectDragger(a,L,"crosshair",-h,-h,c,c),C={element:_,gd:i};e.dragmode===!1&&(C.dragmode=!1),uC(pw.select(_),f.visible&&s0!=(r?P>x:P=90||i>90&&a>=450?d=1:s<=0&&l<=0?d=0:d=Math.max(s,l),i<=180&&a>=180||i>180&&a>=540?f=-1:o>=0&&u>=0?f=0:f=Math.min(o,u),i<=270&&a>=270||i>270&&a>=630?c=-1:s>=0&&l>=0?c=0:c=Math.min(s,l),a>=360?h=1:o<=0&&u<=0?h=0:h=Math.max(o,u),[f,c,h,d]}function o$e(e,t){var r=function(i){return Oc.angleDist(e,i)},n=Oc.findIndexOfMin(t,r);return t[n]}function uC(e,t,r){return t?(e.attr("display",null),e.attr(r)):e&&e.attr("display","none"),e}});var iQ=Te((A3r,d$e)=>{"use strict";var pQt=Ih(),Ku=Dd(),vQt=zc().attributes,c0=ei().extendFlat,l$e=Sc().overrideAll,u$e=l$e({color:Ku.color,showline:c0({},Ku.showline,{dflt:!0}),linecolor:Ku.linecolor,linewidth:Ku.linewidth,showgrid:c0({},Ku.showgrid,{dflt:!0}),gridcolor:Ku.gridcolor,gridwidth:Ku.gridwidth,griddash:Ku.griddash},"plot","from-root"),f$e=l$e({tickmode:Ku.minor.tickmode,nticks:Ku.nticks,tick0:Ku.tick0,dtick:Ku.dtick,tickvals:Ku.tickvals,ticktext:Ku.ticktext,ticks:Ku.ticks,ticklen:Ku.ticklen,tickwidth:Ku.tickwidth,tickcolor:Ku.tickcolor,ticklabelstep:Ku.ticklabelstep,showticklabels:Ku.showticklabels,labelalias:Ku.labelalias,minorloglabels:Ku.minorloglabels,showtickprefix:Ku.showtickprefix,tickprefix:Ku.tickprefix,showticksuffix:Ku.showticksuffix,ticksuffix:Ku.ticksuffix,showexponent:Ku.showexponent,exponentformat:Ku.exponentformat,minexponent:Ku.minexponent,separatethousands:Ku.separatethousands,tickfont:Ku.tickfont,tickangle:Ku.tickangle,tickformat:Ku.tickformat,tickformatstops:Ku.tickformatstops,layer:Ku.layer},"plot","from-root"),c$e={visible:c0({},Ku.visible,{dflt:!0}),type:c0({},Ku.type,{values:["-","linear","log","date","category"]}),autotypenumbers:Ku.autotypenumbers,autorangeoptions:{minallowed:Ku.autorangeoptions.minallowed,maxallowed:Ku.autorangeoptions.maxallowed,clipmin:Ku.autorangeoptions.clipmin,clipmax:Ku.autorangeoptions.clipmax,include:Ku.autorangeoptions.include,editType:"plot"},autorange:c0({},Ku.autorange,{editType:"plot"}),rangemode:{valType:"enumerated",values:["tozero","nonnegative","normal"],dflt:"tozero",editType:"calc"},minallowed:c0({},Ku.minallowed,{editType:"plot"}),maxallowed:c0({},Ku.maxallowed,{editType:"plot"}),range:c0({},Ku.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],editType:"plot"}),categoryorder:Ku.categoryorder,categoryarray:Ku.categoryarray,angle:{valType:"angle",editType:"plot"},autotickangles:Ku.autotickangles,side:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"clockwise",editType:"plot"},title:{text:c0({},Ku.title.text,{editType:"plot",dflt:""}),font:c0({},Ku.title.font,{editType:"plot"}),editType:"plot"},hoverformat:Ku.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};c0(c$e,u$e,f$e);var h$e={visible:c0({},Ku.visible,{dflt:!0}),type:{valType:"enumerated",values:["-","linear","category"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:Ku.autotypenumbers,categoryorder:Ku.categoryorder,categoryarray:Ku.categoryarray,thetaunit:{valType:"enumerated",values:["radians","degrees"],dflt:"degrees",editType:"calc"},period:{valType:"number",editType:"calc",min:0},direction:{valType:"enumerated",values:["counterclockwise","clockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",editType:"calc"},hoverformat:Ku.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};c0(h$e,u$e,f$e);d$e.exports={domain:vQt({name:"polar",editType:"plot"}),sector:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],dflt:[0,360],editType:"plot"},hole:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},bgcolor:{valType:"color",editType:"plot",dflt:pQt.background},radialaxis:c$e,angularaxis:h$e,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var y$e=Te((T3r,m$e)=>{"use strict";var wO=ei(),mQt=jl(),yQt=Pf(),gQt=C_(),_Qt=Rd().getSubplotData,xQt=xb(),bQt=A3(),wQt=t_(),AQt=r_(),TQt=rI(),SQt=Q5(),MQt=SN(),EQt=L3(),v$e=iQ(),kQt=K$(),AO=vO(),p$e=AO.axisNames;function CQt(e,t,r,n){var i=r("bgcolor");n.bgColor=mQt.combine(i,n.paper_bgcolor);var a=r("sector");r("hole");var o=_Qt(n.fullData,AO.name,n.id),s=n.layoutOut,u;function l(H,N){return r(u+"."+H,N)}for(var f=0;f{"use strict";var PQt=Rd().getSubplotCalcData,zQt=ei().counterRegex,IQt=rQ(),_$e=vO(),x$e=_$e.attr,yw=_$e.name,g$e=zQt(yw),b$e={};b$e[x$e]={valType:"subplotid",dflt:yw,editType:"calc"};function RQt(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[yw],i=0;i{"use strict";var FQt=Nu().hovertemplateAttrs,BQt=Nu().texttemplateAttrs,SO=Su().extendFlat,OQt=Em(),h0=Zc(),qQt=Vf(),WS=h0.line;A$e.exports={mode:h0.mode,r:{valType:"data_array",editType:"calc+clearAxisTypes"},theta:{valType:"data_array",editType:"calc+clearAxisTypes"},r0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dr:{valType:"number",dflt:1,editType:"calc"},theta0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dtheta:{valType:"number",editType:"calc"},thetaunit:{valType:"enumerated",values:["radians","degrees","gradians"],dflt:"degrees",editType:"calc+clearAxisTypes"},text:h0.text,texttemplate:BQt({editType:"plot"},{keys:["r","theta","text"]}),hovertext:h0.hovertext,line:{color:WS.color,width:WS.width,dash:WS.dash,backoff:WS.backoff,shape:SO({},WS.shape,{values:["linear","spline"]}),smoothing:WS.smoothing,editType:"calc"},connectgaps:h0.connectgaps,marker:h0.marker,cliponaxis:SO({},h0.cliponaxis,{dflt:!1}),textposition:h0.textposition,textfont:h0.textfont,fill:SO({},h0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:OQt(),hoverinfo:SO({},qQt.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:h0.hoveron,hovertemplate:FQt(),selected:h0.selected,unselected:h0.unselected}});var EO=Te((E3r,M$e)=>{"use strict";var MO=ei(),jS=lc(),NQt=$v(),UQt=I0(),T$e=J3(),VQt=R0(),GQt=zm(),HQt=Sy().PTS_LINESONLY,WQt=fC();function jQt(e,t,r,n){function i(s,u){return MO.coerce(e,t,WQt,s,u)}var a=S$e(e,t,n,i);if(!a){t.visible=!1;return}i("thetaunit"),i("mode",a{"use strict";var XQt=ei(),E$e=wu();k$e.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o,s;a?(o=a.radialAxis,s=a.angularAxis):(a=n[r.subplot],o=a.radialaxis,s=a.angularaxis);var u=o.c2l(t.r);i.rLabel=E$e.tickText(o,u,!0).text;var l=s.thetaunit==="degrees"?XQt.rad2deg(t.theta):t.theta;return i.thetaLabel=E$e.tickText(s,l,!0).text,i}});var P$e=Te((C3r,L$e)=>{"use strict";var C$e=ku(),ZQt=nf().BADNUM,YQt=wu(),KQt=D0(),JQt=ky(),$Qt=F0(),QQt=B0().calcMarkerSize;L$e.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=a.makeCalcdata(r,"r"),u=o.makeCalcdata(r,"theta"),l=r._length,f=new Array(l),c=0;c{"use strict";var eer=iA(),z$e=nf().BADNUM;I$e.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},u=r.radialAxis,l=r.angularAxis,f=0;f{"use strict";var ter=sA();function rer(e,t,r,n){var i=ter(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],u=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,D$e(s,u,o,a),a.hovertemplate=u.hovertemplate,i}}function D$e(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="r",a._hovertitle="\u03B8";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var u=e.hi||t.hoverinfo,l=[];function f(h,d){l.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var c=u.split("+");c.indexOf("all")!==-1&&(c=["r","theta","text"]),c.indexOf("r")!==-1&&f(i,n.rLabel),c.indexOf("theta")!==-1&&f(a,n.thetaLabel),c.indexOf("text")!==-1&&n.text&&(l.push(n.text),delete n.text),n.extraText=l.join("
")}}F$e.exports={hoverPoints:rer,makeHoverPointText:D$e}});var O$e=Te((z3r,B$e)=>{"use strict";B$e.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:TO(),categories:["polar","symbols","showLegend","scatter-like"],attributes:fC(),supplyDefaults:EO().supplyDefaults,colorbar:ep(),formatLabels:kO(),calc:P$e(),plot:R$e(),style:av().style,styleOnSelect:av().styleOnSelect,hoverPoints:CO().hoverPoints,selectPoints:lA(),meta:{}}});var N$e=Te((I3r,q$e)=>{"use strict";q$e.exports=O$e()});var nQ=Te((R3r,U$e)=>{"use strict";var Uv=fC(),x1=ok(),ier=Nu().texttemplateAttrs;U$e.exports={mode:Uv.mode,r:Uv.r,theta:Uv.theta,r0:Uv.r0,dr:Uv.dr,theta0:Uv.theta0,dtheta:Uv.dtheta,thetaunit:Uv.thetaunit,text:Uv.text,texttemplate:ier({editType:"plot"},{keys:["r","theta","text"]}),hovertext:Uv.hovertext,hovertemplate:Uv.hovertemplate,line:{color:x1.line.color,width:x1.line.width,dash:x1.line.dash,editType:"calc"},connectgaps:x1.connectgaps,marker:x1.marker,fill:x1.fill,fillcolor:x1.fillcolor,textposition:x1.textposition,textfont:x1.textfont,hoverinfo:Uv.hoverinfo,selected:Uv.selected,unselected:Uv.unselected}});var H$e=Te((D3r,G$e)=>{"use strict";var V$e=ei(),aQ=lc(),ner=EO().handleRThetaDefaults,aer=$v(),oer=I0(),ser=R0(),ler=zm(),uer=Sy().PTS_LINESONLY,fer=nQ();G$e.exports=function(t,r,n,i){function a(s,u){return V$e.coerce(t,r,fer,s,u)}var o=ner(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("mode",o{"use strict";var cer=kO();W$e.exports=function(t,r,n){var i=t.i;return"r"in t||(t.r=r._r[i]),"theta"in t||(t.theta=r._theta[i]),cer(t,r,n)}});var Z$e=Te((B3r,X$e)=>{"use strict";var her=D0(),der=B0().calcMarkerSize,per=Y2(),ver=wu(),mer=sx().TOO_MANY_POINTS;X$e.exports=function(t,r){var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=r._r=a.makeCalcdata(r,"r"),u=r._theta=o.makeCalcdata(r,"theta"),l=r._length,f={};l{"use strict";var yer=BF(),ger=CO().makeHoverPointText;function _er(e,t,r,n){var i=e.cd,a=i[0].t,o=a.r,s=a.theta,u=yer.hoverPoints(e,t,r,n);if(!(!u||u[0].index===!1)){var l=u[0];if(l.index===void 0)return u;var f=e.subplot,c=l.cd[l.index],h=l.trace;if(c.r=o[l.index],c.theta=s[l.index],!!f.isPtInside(c))return l.xLabelVal=void 0,l.yLabelVal=void 0,ger(c,h,f,l),u}}Y$e.exports={hoverPoints:_er}});var $$e=Te((q3r,J$e)=>{"use strict";J$e.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:TO(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:nQ(),supplyDefaults:H$e(),colorbar:ep(),formatLabels:j$e(),calc:Z$e(),hoverPoints:K$e().hoverPoints,selectPoints:mY(),meta:{}}});var Q$e=Te((N3r,oQ)=>{"use strict";var xer=NF(),ber=ku(),wer=xK(),Aer=dY(),LO=Y2(),PO=ei(),Ter=sx().TOO_MANY_POINTS,Ser={};oQ.exports=function(t,r,n){if(n.length){var i=r.radialAxis,a=r.angularAxis,o=Aer(t,r);return n.forEach(function(s){if(!(!s||!s[0]||!s[0].trace)){var u=s[0],l=u.trace,f=u.t,c=l._length,h=f.r,d=f.theta,p=f.opts,x,b=h.slice(),v=d.slice();for(x=0;x=Ter&&(p.marker.cluster=f.tree),p.marker&&(p.markerSel.positions=p.markerUnsel.positions=p.marker.positions=k),p.line&&k.length>1&&PO.extendFlat(p.line,LO.linePositions(t,l,k)),p.text&&(PO.extendFlat(p.text,{positions:k},LO.textPosition(t,l,p.text,p.marker)),PO.extendFlat(p.textSel,{positions:k},LO.textPosition(t,l,p.text,p.markerSel)),PO.extendFlat(p.textUnsel,{positions:k},LO.textPosition(t,l,p.text,p.markerUnsel))),p.fill&&!o.fill2d&&(o.fill2d=!0),p.marker&&!o.scatter2d&&(o.scatter2d=!0),p.line&&!o.line2d&&(o.line2d=!0),p.text&&!o.glText&&(o.glText=!0),o.lineOptions.push(p.line),o.fillOptions.push(p.fill),o.markerOptions.push(p.marker),o.markerSelectedOptions.push(p.markerSel),o.markerUnselectedOptions.push(p.markerUnsel),o.textOptions.push(p.text),o.textSelectedOptions.push(p.textSel),o.textUnselectedOptions.push(p.textUnsel),o.selectBatch.push([]),o.unselectBatch.push([]),f.x=E,f.y=T,f.rawx=E,f.rawy=T,f.r=h,f.theta=d,f.positions=k,f._scene=o,f.index=o.count,o.count++}}),wer(t,r,n)}};oQ.exports.reglPrecompiled=Ser});var tQe=Te((U3r,eQe)=>{"use strict";var Mer=A8(),Eer=T8(),ker=S8(),Cer=M8(),Ler=E8(),Per=k8(),zer=C8(),Ier=L8(),Rer=P8(),Der=z8();eQe.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":Mer,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:Eer,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":ker,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:Cer,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:Ler,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":Per,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:zer,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:Ier,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":Rer,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":Der}});var iQe=Te((V3r,rQe)=>{"use strict";var sQ=Q$e(),Fer=tQe(),Ber=bK();Object.assign(sQ.reglPrecompiled,Fer);Object.assign(sQ.reglPrecompiled,Ber);rQe.exports=sQ});var oQe=Te((G3r,aQe)=>{"use strict";var nQe=$$e();nQe.plot=iQe();aQe.exports=nQe});var lQ=Te((H3r,sQe)=>{"use strict";var Oer=Nu().hovertemplateAttrs,XS=Su().extendFlat,zx=fC(),Ix=Ly();sQe.exports={r:zx.r,theta:zx.theta,r0:zx.r0,dr:zx.dr,theta0:zx.theta0,dtheta:zx.dtheta,thetaunit:zx.thetaunit,base:XS({},Ix.base,{}),offset:XS({},Ix.offset,{}),width:XS({},Ix.width,{}),text:XS({},Ix.text,{}),hovertext:XS({},Ix.hovertext,{}),marker:qer(),hoverinfo:zx.hoverinfo,hovertemplate:Oer(),selected:Ix.selected,unselected:Ix.unselected};function qer(){var e=XS({},Ix.marker);return delete e.cornerradius,e}});var uQ=Te((W3r,lQe)=>{"use strict";lQe.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}});var cQe=Te((j3r,fQe)=>{"use strict";var uQe=ei(),Ner=EO().handleRThetaDefaults,Uer=OI(),Ver=lQ();fQe.exports=function(t,r,n,i){function a(s,u){return uQe.coerce(t,r,Ver,s,u)}var o=Ner(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("base"),a("offset"),a("width"),a("text"),a("hovertext"),a("hovertemplate"),Uer(t,r,a,n,i),uQe.coerceSelectionMarkerOpacity(r,a)}});var dQe=Te((X3r,hQe)=>{"use strict";var Ger=ei(),Her=uQ();hQe.exports=function(e,t,r){var n={},i;function a(u,l){return Ger.coerce(e[i]||{},t[i],Her,u,l)}for(var o=0;o{"use strict";var pQe=Rp().hasColorscale,vQe=Dp(),Wer=ei().isArrayOrTypedArray,jer=pE(),Xer=Hb().setGroupPositions,Zer=F0(),Yer=$l().traceIs,Ker=ei().extendFlat;function Jer(e,t){for(var r=e._fullLayout,n=t.subplot,i=r[n].radialaxis,a=r[n].angularaxis,o=i.makeCalcdata(t,"r"),s=a.makeCalcdata(t,"theta"),u=t._length,l=new Array(u),f=o,c=s,h=0;h{"use strict";var yQe=Jl(),zO=ku(),ZS=ei(),Qer=Mu(),cQ=yO();gQe.exports=function(t,r,n){var i=t._context.staticPlot,a=r.xaxis,o=r.yaxis,s=r.radialAxis,u=r.angularAxis,l=etr(r),f=r.layers.frontplot.select("g.barlayer");ZS.makeTraceGroups(f,n,"trace bars").each(function(){var c=yQe.select(this),h=ZS.ensureSingle(c,"g","points"),d=h.selectAll("g.point").data(ZS.identity);d.enter().append("g").style("vector-effect",i?"none":"non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),d.exit().remove(),d.each(function(p){var x=yQe.select(this),b=p.rp0=s.c2p(p.s0),v=p.rp1=s.c2p(p.s1),k=p.thetag0=u.c2g(p.p0),E=p.thetag1=u.c2g(p.p1),T;if(!zO(b)||!zO(v)||!zO(k)||!zO(E)||b===v||k===E)T="M0,0Z";else{var L=s.c2g(p.s1),_=(k+E)/2;p.ct=[a.c2p(L*Math.cos(_)),o.c2p(L*Math.sin(_))],T=l(b,v,k,E)}ZS.ensureSingle(x,"path").attr("d",T)}),Qer.setClipUrl(c,r._hasClipOnAxisFalse?r.clipIds.forTraces:null,t)})};function etr(e){var t=e.cxx,r=e.cyy;return e.vangles?function(n,i,a,o){var s,u;ZS.angleDelta(a,o)>0?(s=a,u=o):(s=o,u=a);var l=cQ.findEnclosingVertexAngles(s,e.vangles)[0],f=cQ.findEnclosingVertexAngles(u,e.vangles)[1],c=[l,(s+u)/2,f];return cQ.pathPolygonAnnulus(n,i,s,u,c,t,r)}:function(n,i,a,o){return ZS.pathAnnulus(n,i,a,o,t,r)}}});var bQe=Te((K3r,xQe)=>{"use strict";var ttr=Xc(),hQ=ei(),rtr=AA().getTraceColor,itr=hQ.fillText,ntr=CO().makeHoverPointText,atr=yO().isPtInsidePolygon;xQe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s=o.radialAxis,u=o.angularAxis,l=o.vangles,f=l?atr:hQ.isPtInsideSector,c=t.maxHoverDistance,h=u._period||2*Math.PI,d=Math.abs(s.g2p(Math.sqrt(r*r+n*n))),p=Math.atan2(n,r);s.range[0]>s.range[1]&&(p+=Math.PI);var x=function(E){return f(d,p,[E.rp0,E.rp1],[E.thetag0,E.thetag1],l)?c+Math.min(1,Math.abs(E.thetag1-E.thetag0)/h)-1+(E.rp1-d)/(E.rp1-E.rp0)-1:1/0};if(ttr.getClosest(i,x,t),t.index!==!1){var b=t.index,v=i[b];t.x0=t.x1=v.ct[0],t.y0=t.y1=v.ct[1];var k=hQ.extendFlat({},v,{r:v.s,theta:v.p});return itr(v,a,t),ntr(k,a,o,t),t.hovertemplate=a.hovertemplate,t.color=rtr(a,v),t.xLabelVal=t.yLabelVal=void 0,v.s<0&&(t.idealAlign="left"),[t]}}});var AQe=Te((J3r,wQe)=>{"use strict";wQe.exports={moduleType:"trace",name:"barpolar",basePlotModule:TO(),categories:["polar","bar","showLegend"],attributes:lQ(),layoutAttributes:uQ(),supplyDefaults:cQe(),supplyLayoutDefaults:dQe(),calc:fQ().calc,crossTraceCalc:fQ().crossTraceCalc,plot:_Qe(),colorbar:ep(),formatLabels:kO(),style:N0().style,styleOnSelect:N0().styleOnSelect,hoverPoints:bQe(),selectPoints:TA(),meta:{}}});var SQe=Te(($3r,TQe)=>{"use strict";TQe.exports=AQe()});var dQ=Te((Q3r,MQe)=>{"use strict";MQe.exports={attr:"subplot",name:"smith",axisNames:["realaxis","imaginaryaxis"],axisName2dataArray:{imaginaryaxis:"imag",realaxis:"real"}}});var pQ=Te((eAr,LQe)=>{"use strict";var otr=Ih(),uh=Dd(),str=zc().attributes,Rx=ei().extendFlat,EQe=Sc().overrideAll,kQe=EQe({color:uh.color,showline:Rx({},uh.showline,{dflt:!0}),linecolor:uh.linecolor,linewidth:uh.linewidth,showgrid:Rx({},uh.showgrid,{dflt:!0}),gridcolor:uh.gridcolor,gridwidth:uh.gridwidth,griddash:uh.griddash},"plot","from-root"),CQe=EQe({ticklen:uh.ticklen,tickwidth:Rx({},uh.tickwidth,{dflt:2}),tickcolor:uh.tickcolor,showticklabels:uh.showticklabels,labelalias:uh.labelalias,showtickprefix:uh.showtickprefix,tickprefix:uh.tickprefix,showticksuffix:uh.showticksuffix,ticksuffix:uh.ticksuffix,tickfont:uh.tickfont,tickformat:uh.tickformat,hoverformat:uh.hoverformat,layer:uh.layer},"plot","from-root"),ltr=Rx({visible:Rx({},uh.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:Rx({},uh.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},kQe,CQe),utr=Rx({visible:Rx({},uh.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:uh.ticks,editType:"calc"},kQe,CQe);LQe.exports={domain:str({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:otr.background},realaxis:ltr,imaginaryaxis:utr,editType:"calc"}});var IQe=Te((tAr,zQe)=>{"use strict";var YS=ei(),ftr=jl(),ctr=Pf(),htr=C_(),dtr=Rd().getSubplotData,ptr=r_(),vtr=t_(),mtr=Q5(),ytr=gy(),KS=pQ(),vQ=dQ(),PQe=vQ.axisNames,gtr=xtr(function(e){return YS.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(t){return-t}).concat([0]).concat(e)},String);function _tr(e,t,r,n){var i=r("bgcolor");n.bgColor=ftr.combine(i,n.paper_bgcolor);var a=dtr(n.fullData,vQ.name,n.id),o=n.layoutOut,s;function u(L,_){return r(s+"."+L,_)}for(var l=0;l{"use strict";var btr=Rd().getSubplotCalcData,wtr=ei().counterRegex,Atr=rQ(),DQe=dQ(),FQe=DQe.attr,gw=DQe.name,RQe=wtr(gw),BQe={};BQe[FQe]={valType:"subplotid",dflt:gw,editType:"calc"};function Ttr(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[gw],i=0;i{"use strict";var Mtr=Nu().hovertemplateAttrs,Etr=Nu().texttemplateAttrs,IO=Su().extendFlat,ktr=Em(),d0=Zc(),Ctr=Vf(),JS=d0.line;NQe.exports={mode:d0.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:d0.text,texttemplate:Etr({editType:"plot"},{keys:["real","imag","text"]}),hovertext:d0.hovertext,line:{color:JS.color,width:JS.width,dash:JS.dash,backoff:JS.backoff,shape:IO({},JS.shape,{values:["linear","spline"]}),smoothing:JS.smoothing,editType:"calc"},connectgaps:d0.connectgaps,marker:d0.marker,cliponaxis:IO({},d0.cliponaxis,{dflt:!1}),textposition:d0.textposition,textfont:d0.textfont,fill:IO({},d0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:ktr(),hoverinfo:IO({},Ctr.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:d0.hoveron,hovertemplate:Mtr(),selected:d0.selected,unselected:d0.unselected}});var GQe=Te((nAr,VQe)=>{"use strict";var RO=ei(),$S=lc(),Ltr=$v(),Ptr=I0(),UQe=J3(),ztr=R0(),Itr=zm(),Rtr=Sy().PTS_LINESONLY,Dtr=mQ();VQe.exports=function(t,r,n,i){function a(u,l){return RO.coerce(t,r,Dtr,u,l)}var o=Ftr(t,r,i,a);if(!o){r.visible=!1;return}a("mode",o{"use strict";var HQe=wu();WQe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.realLabel=HQe.tickText(a.radialAxis,t.real,!0).text,i.imagLabel=HQe.tickText(a.angularAxis,t.imag,!0).text,i}});var YQe=Te((oAr,ZQe)=>{"use strict";var XQe=ku(),Btr=nf().BADNUM,Otr=D0(),qtr=ky(),Ntr=F0(),Utr=B0().calcMarkerSize;ZQe.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].realaxis,o=n[i].imaginaryaxis,s=a.makeCalcdata(r,"real"),u=o.makeCalcdata(r,"imag"),l=r._length,f=new Array(l),c=0;c{"use strict";var Vtr=iA(),KQe=nf().BADNUM,Gtr=Q$(),Htr=Gtr.smith;JQe.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},u=0;u{"use strict";var Wtr=sA();function jtr(e,t,r,n){var i=Wtr(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],u=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,QQe(s,u,o,a),a.hovertemplate=u.hovertemplate,i}}function QQe(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="real",a._hovertitle="imag";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.realLabel=s.realLabel,n.imagLabel=s.imagLabel;var u=e.hi||t.hoverinfo,l=[];function f(h,d){l.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var c=u.split("+");c.indexOf("all")!==-1&&(c=["real","imag","text"]),c.indexOf("real")!==-1&&f(i,n.realLabel),c.indexOf("imag")!==-1&&f(a,n.imagLabel),c.indexOf("text")!==-1&&n.text&&(l.push(n.text),delete n.text),n.extraText=l.join("
")}}eet.exports={hoverPoints:jtr,makeHoverPointText:QQe}});var iet=Te((uAr,ret)=>{"use strict";ret.exports={moduleType:"trace",name:"scattersmith",basePlotModule:qQe(),categories:["smith","symbols","showLegend","scatter-like"],attributes:mQ(),supplyDefaults:GQe(),colorbar:ep(),formatLabels:jQe(),calc:YQe(),plot:$Qe(),style:av().style,styleOnSelect:av().styleOnSelect,hoverPoints:tet().hoverPoints,selectPoints:lA(),meta:{}}});var aet=Te((fAr,net)=>{"use strict";net.exports=iet()});var Ep=Te((cAr,set)=>{var FO=Uh();function oet(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}FO(oet.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,n,i){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,i):n)||this.instance(),n.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var n="",i=0;r>0;){var a=r%10;n=(a===0?"":e[a]+t[i])+n,i++,r=Math.floor(r/10)}return n.indexOf(e[1]+t[1])===0&&(n=n.substr(1)),n||e[0]}}});function yQ(e,t,r,n){if(this._calendar=e,this._year=t,this._month=r,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Af.local.invalidDate||Af.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function DO(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}FO(yQ.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(Af.local.invalidDate||Af.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Af.local.differentCalendars||Af.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+DO(Math.abs(this.year()),4)+"-"+DO(this.month(),2)+"-"+DO(this.day(),2)}});function gQ(){this.shortYearCutoff="+10"}FO(gQ.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,Af.local.invalidDate||Af.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new yQ(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,Af.local.invalidYear||Af.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Af.local.invalidYear||Af.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+DO(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Af.local.invalidYear||Af.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,Af.local.invalidMonth||Af.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,Af.local.invalidMonth||Af.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Af.local.invalidYear||Af.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var n=this._validate(e,t,r,Af.local.invalidDate||Af.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,Af.local.invalidDate||Af.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,Af.local.invalidDate||Af.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,Af.local.invalidDate||Af.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var n=e.toJD()+t*(r==="w"?this.daysInWeek():1),i=e.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=e.year()+(r==="y"?t:0),o=e.monthOfYear()+(r==="m"?t:0),i=e.day(),s=function(f){for(;oc-1+f.minMonth;)a++,o-=c,c=f.monthsInYear(a)};r==="y"?(e.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):r==="m"&&(s(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var u=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,u}catch(l){throw this._validateLevel--,l}},_correctAdd:function(e,t,r,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var i={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],a=r<0?-1:1;t=this._add(e,r*i[0]+a*i[1],i[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,Af.local.invalidDate||Af.regionalOptions[""].invalidDate);var n=r==="y"?t:e.year(),i=r==="m"?t:e.month(),a=r==="d"?t:e.day();return(r==="y"||r==="m")&&(a=Math.min(a,this.daysInMonth(n,i))),e.date(n,i,a)},isValid:function(e,t,r){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var i=this.newDate(e,t,this.minDay);n=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),l=i-(u>2.5?4716:4715);return l<=0&&l--,this.newDate(l,u,s)},toJSDate:function(e,t,r){var n=this._validate(e,t,r,Af.local.invalidDate||Af.regionalOptions[""].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()>12?i.getHours()+2:0),i},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Af=set.exports=new oet;Af.cdate=yQ;Af.baseCalendar=gQ;Af.calendars.gregorian=_Q});var uet=Te(()=>{var xQ=Uh(),Gd=Ep();xQ(Gd.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Gd.local=Gd.regionalOptions[""];xQ(Gd.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});xQ(Gd.baseCalendar.prototype,{UNIX_EPOCH:Gd.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Gd.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw Gd.local.invalidFormat||Gd.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var n=r.dayNamesShort||this.local.dayNamesShort,i=r.dayNames||this.local.dayNames,a=r.monthNumbers||this.local.monthNumbers,o=r.monthNamesShort||this.local.monthNamesShort,s=r.monthNames||this.local.monthNames,u=r.calculateWeek||this.local.calculateWeek,l=function(T,L){for(var _=1;E+_1},f=function(T,L,_,C){var S=""+L;if(l(T,C))for(;S.length<_;)S="0"+S;return S},c=function(T,L,_,C){return l(T)?C[L]:_[L]},h=this,d=function(T){return typeof a=="function"?a.call(h,T,l("m")):b(f("m",T.month(),2))},p=function(T,L){return L?typeof s=="function"?s.call(h,T):s[T.month()-h.minMonth]:typeof o=="function"?o.call(h,T):o[T.month()-h.minMonth]},x=this.local.digits,b=function(T){return r.localNumbers&&x?x(T):T},v="",k=!1,E=0;E1},k=function(B,F){var U=v(B,F),G=[2,3,U?4:2,U?4:2,10,11,20]["oyYJ@!".indexOf(B)+1],j=new RegExp("^-?\\d{1,"+G+"}"),H=t.substring(S).match(j);if(!H)throw(Gd.local.missingNumberAt||Gd.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=H[0].length,parseInt(H[0],10)},E=this,T=function(){if(typeof s=="function"){v("m");var B=s.call(E,t.substring(S));return S+=B.length,B}return k("m")},L=function(B,F,U,G){for(var j=v(B,G)?U:F,H=0;H-1){h=1,d=p;for(var A=this.daysInMonth(c,h);d>A;A=this.daysInMonth(c,h))h++,d-=A}return f>-1?this.fromJD(f):this.newDate(c,h,d)},determineDate:function(e,t,r,n,i){r&&typeof r!="object"&&(i=n,n=r,r=null),typeof n!="string"&&(i=n,n="");var a=this,o=function(s){try{return a.parseDate(n,s,i)}catch(c){}s=s.toLowerCase();for(var u=(s.match(/^c/)&&r?r.newDate():null)||a.today(),l=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=l.exec(s);f;)u.add(parseInt(f[1],10),f[2]||"d"),f=l.exec(s);return u};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:a.today().add(e,"d"):a.newDate(e),e}})});var fet=Te(()=>{var Dx=Ep(),Xtr=Uh(),bQ=Dx.instance();function BO(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}BO.prototype=new Dx.baseCalendar;Xtr(BO.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(Ytr);return r?r[0]:""}var n=this._validateYear(e),i=e.month(),a=""+this.toChineseMonth(n,i);return t&&a.length<2&&(a="0"+a),this.isIntercalaryMonth(n,i)&&(a+="i"),a},monthNames:function(e){if(typeof e=="string"){var t=e.match(Ktr);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(Jtr);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),n;if(isNaN(r))t[0]==="\u95F0"&&(n=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var i=t[t.length-1];n=i==="i"||i==="I"}var a=this.toMonthIndex(e,r,n);return a},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var n=this.intercalaryMonth(e),i=r&&t!==n;if(i||t<1||t>12)throw Dx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return n?!r&&t<=n?a=t-1:a=t:a=t-1,a},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),n=r?12:11;if(t<0||t>n)throw Dx.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var n=this._validateYear(e,Dx.local.invalidyear),i=Bx[n-Bx[0]],a=i>>9&4095,o=i>>5&15,s=i&31,u;u=bQ.newDate(a,o,s),u.add(4-(u.dayOfWeek()||7),"d");var l=this.toJD(e,t,r)-u.toJD();return 1+Math.floor(l/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=Fx[e-Fx[0]],n=r>>13,i=n?12:11;if(t>i)throw Dx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a=r&1<<12-t?30:29;return a},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,a,r,Dx.local.invalidDate);e=this._validateYear(n.year()),t=n.month(),r=n.day();var i=this.isIntercalaryMonth(e,t),a=this.toChineseMonth(e,t),o=Qtr(e,a,r,i);return bQ.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=bQ.fromJD(e),r=$tr(t.year(),t.month(),t.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(e){var t=e.match(Ztr),r=this._validateYear(+t[1]),n=+t[2],i=!!t[3],a=this.toMonthIndex(r,n,i),o=+t[4];return this.newDate(r,a,o)},add:function(e,t,r){var n=e.year(),i=e.month(),a=this.isIntercalaryMonth(n,i),o=this.toChineseMonth(n,i),s=Object.getPrototypeOf(BO.prototype).add.call(this,e,t,r);if(r==="y"){var u=s.year(),l=s.month(),f=this.isIntercalaryMonth(u,o),c=a&&f?this.toMonthIndex(u,o,!0):this.toMonthIndex(u,o,!1);c!==l&&s.month(c)}return s}});var Ztr=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Ytr=/^\d?\d[iI]?/m,Ktr=/^闰?十?[一二三四五六七八九]?月/m,Jtr=/^闰?十?[一二三四五六七八九]?/m;Dx.calendars.chinese=BO;var Fx=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Bx=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function $tr(e,t,r,n){var i,a;if(typeof e=="object")i=e,a=t||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var s=typeof t=="number"&&t>=1&&t<=12;if(!s)throw new Error("Solar month outside range 1 - 12");var u=typeof r=="number"&&r>=1&&r<=31;if(!u)throw new Error("Solar day outside range 1 - 31");i={year:e,month:t,day:r},a=n||{}}var l=Bx[i.year-Bx[0]],f=i.year<<9|i.month<<5|i.day;a.year=f>=l?i.year:i.year-1,l=Bx[a.year-Bx[0]];var c=l>>9&4095,h=l>>5&15,d=l&31,p,x=new Date(c,h-1,d),b=new Date(i.year,i.month-1,i.day);p=Math.round((b-x)/(24*3600*1e3));var v=Fx[a.year-Fx[0]],k;for(k=0;k<13;k++){var E=v&1<<12-k?30:29;if(p>13;return!T||k=1888&&e<=2111;if(!s)throw new Error("Lunar year outside range 1888-2111");var u=typeof t=="number"&&t>=1&&t<=12;if(!u)throw new Error("Lunar month outside range 1 - 12");var l=typeof r=="number"&&r>=1&&r<=30;if(!l)throw new Error("Lunar day outside range 1 - 30");var f;typeof n=="object"?(f=!1,a=n):(f=!!n,a=i||{}),o={year:e,month:t,day:r,isIntercalary:f}}var c;c=o.day-1;var h=Fx[o.year-Fx[0]],d=h>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var x=0;x>9&4095,E=v>>5&15,T=v&31,L=new Date(k,E-1,T+c);return a.year=L.getFullYear(),a.month=1+L.getMonth(),a.day=L.getDate(),a}});var cet=Te(()=>{var _w=Ep(),err=Uh();function wQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wQ.prototype=new _w.baseCalendar;err(wQ.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,_w.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,_w.local.invalidYear||_w.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,_w.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,_w.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});_w.calendars.coptic=wQ});var het=Te(()=>{var b1=Ep(),trr=Uh();function AQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}AQ.prototype=new b1.baseCalendar;trr(AQ.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),400},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,b1.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,t,r){var n=this.dayOfWeek(e,t,r);return n>=2&&n<=6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return{century:rrr[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return e=n.year()+(n.year()<0?1:0),t=n.month(),r=n.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,n=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,n)}});var rrr={20:"Fruitbat",21:"Anchovy"};b1.calendars.discworld=AQ});var det=Te(()=>{var xw=Ep(),irr=Uh();function TQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}TQ.prototype=new xw.baseCalendar;irr(TQ.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,xw.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,xw.local.invalidYear||xw.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,xw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,xw.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});xw.calendars.ethiopian=TQ});var pet=Te(()=>{var Ox=Ep(),nrr=Uh();function SQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}SQ.prototype=new Ox.baseCalendar;nrr(SQ.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Ox.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,OO(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ox.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Ox.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,Ox.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&OO(this.daysInYear(e),10)===5?30:t===9&&OO(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,Ox.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,t,r){var n=this._validate(e,t,r,Ox.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=e<=0?e+1:e,a=this.jdEpoch+this._delay1(i)+this._delay2(i)+r+1;if(t<7){for(var o=7;o<=this.monthsInYear(e);o++)a+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});function OO(e,t){return e-t*Math.floor(e/t)}Ox.calendars.hebrew=SQ});var vet=Te(()=>{var cC=Ep(),arr=Uh();function MQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}MQ.prototype=new cC.baseCalendar;arr(MQ.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,cC.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,cC.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,cC.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});cC.calendars.islamic=MQ});var met=Te(()=>{var hC=Ep(),orr=Uh();function EQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}EQ.prototype=new hC.baseCalendar;orr(EQ.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,hC.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,hC.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,hC.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,n=Math.floor((r-122.1)/365.25),i=Math.floor(365.25*n),a=Math.floor((r-i)/30.6001),o=a-Math.floor(a<14?1:13),s=n-Math.floor(o>2?4716:4715),u=r-i-Math.floor(30.6001*a);return s<=0&&s--,this.newDate(s,o,u)}});hC.calendars.julian=EQ});var get=Te(()=>{var um=Ep(),srr=Uh();function CQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}CQ.prototype=new um.baseCalendar;srr(CQ.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,um.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,um.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return r+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&n<0)throw"Invalid Mayan year";t=t*20+n}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,um.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,um.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,um.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,um.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,um.local.invalidDate);return n.day()},weekDay:function(e,t,r){return this._validate(e,t,r,um.local.invalidDate),!0},extraInfo:function(e,t,r){var n=this._validate(e,t,r,um.local.invalidDate),i=n.toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=kQ(e+8+17*20,365);return[Math.floor(t/20)+1,kQ(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[yet(e+20,20),yet(e+4,13)]},toJD:function(e,t,r){var n=this._validate(e,t,r,um.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),n=e%20;return this.newDate(t,r,n)}});function kQ(e,t){return e-t*Math.floor(e/t)}function yet(e,t){return kQ(e-1,t)+1}um.calendars.mayan=CQ});var xet=Te(()=>{var bw=Ep(),lrr=Uh();function LQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}LQ.prototype=new bw.baseCalendar;var _et=bw.instance("gregorian");lrr(LQ.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,bw.local.invalidYear||bw.regionalOptions[""].invalidYear);return _et.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,bw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,bw.local.invalidMonth),i=n.year();i<0&&i++;for(var a=n.day(),o=1;o=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,n=1;r>this.daysInMonth(t,n);)r-=this.daysInMonth(t,n),n++;return this.newDate(t,n,r)}});bw.calendars.nanakshahi=LQ});var bet=Te(()=>{var ww=Ep(),urr=Uh();function PQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}PQ.prototype=new ww.baseCalendar;urr(PQ.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ww.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,n=this.minMonth;n<=12;n++)r+=this.NEPALI_CALENDAR_DATA[e][n];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,ww.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var n=this._validate(e,t,r,ww.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=ww.instance(),a=0,o=t,s=e;this._createMissingCalendarData(e);var u=e-(o>9||o===9&&r>=this.NEPALI_CALENDAR_DATA[s][0]?56:57);for(t!==9&&(a=r,o--);o!==9;)o<=0&&(o=12,s--),a+=this.NEPALI_CALENDAR_DATA[s][o],o--;return t===9?(a+=r-this.NEPALI_CALENDAR_DATA[s][0],a<0&&(a+=i.daysInYear(u))):a+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],i.newDate(u,1,1).add(a,"d").toJD()},fromJD:function(e){var t=ww.instance(),r=t.fromJD(e),n=r.year(),i=r.dayOfYear(),a=n+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],u=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i>u;)o++,o>12&&(o=1,a++),u+=this.NEPALI_CALENDAR_DATA[a][o];var l=this.NEPALI_CALENDAR_DATA[a][o]-(u-i);return this.newDate(a,o,l)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var QS=Ep(),frr=Uh();function NO(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function qO(e){var t=e-475;e<0&&t++;var r=.242197,n=r*t,i=r*(t+1),a=n-Math.floor(n),o=i-Math.floor(i);return a>o}NO.prototype=new QS.baseCalendar;frr(NO.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,QS.local.invalidYear);return qO(t.year())},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,QS.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,QS.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=0;if(e>0)for(var a=1;a0?e-1:e)*365+i+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=475+(e-this.toJD(475,1,1))/365.242197,r=Math.floor(t);r<=0&&r--,e>this.toJD(r,12,qO(r)?30:29)&&(r++,r===0&&r++);var n=e-this.toJD(r,1,1)+1,i=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),a=e-this.toJD(r,i,1)+1;return this.newDate(r,i,a)}});QS.calendars.persian=NO;QS.calendars.jalali=NO});var Aet=Te(()=>{var Aw=Ep(),crr=Uh(),UO=Aw.instance();function zQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}zQ.prototype=new Aw.baseCalendar;crr(zQ.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Aw.local.invalidYear),r=this._t2gYear(t.year());return UO.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Aw.local.invalidYear),i=this._t2gYear(n.year());return UO.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Aw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Aw.local.invalidDate),i=this._t2gYear(n.year());return UO.toJD(i,n.month(),n.day())},fromJD:function(e){var t=UO.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Aw.calendars.taiwan=zQ});var Tet=Te(()=>{var Tw=Ep(),hrr=Uh(),VO=Tw.instance();function IQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}IQ.prototype=new Tw.baseCalendar;hrr(IQ.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Tw.local.invalidYear),r=this._t2gYear(t.year());return VO.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Tw.local.invalidYear),i=this._t2gYear(n.year());return VO.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Tw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Tw.local.invalidDate),i=this._t2gYear(n.year());return VO.toJD(i,n.month(),n.day())},fromJD:function(e){var t=VO.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Tw.calendars.thai=IQ});var Met=Te(()=>{var Sw=Ep(),drr=Uh();function RQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}RQ.prototype=new Sw.baseCalendar;drr(RQ.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Sw.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,Sw.local.invalidMonth),n=r.toJD()-24e5+.5,i=0,a=0;an)return qx[i]-qx[i-1];i++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,Sw.local.invalidDate),i=12*(n.year()-1)+n.month()-15292,a=n.day()+qx[i-1]-1;return a+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,n=0;nt);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),o=a+1,s=i-12*a,u=t-qx[r-1]+1;return this.newDate(o,s,u)},isValid:function(e,t,r){var n=Sw.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,t,r,n){var i=Sw.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw n.replace(/\{0\}/,this.local.name);return i}});Sw.calendars.ummalqura=RQ;var qx=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var ket=Te((VAr,Eet)=>{"use strict";Eet.exports=Ep();uet();fet();cet();het();det();pet();vet();met();get();xet();bet();wet();Aet();Tet();Met()});var Det=Te((GAr,Ret)=>{"use strict";var Let=ket(),dC=ei(),Pet=nf(),prr=Pet.EPOCHJD,vrr=Pet.ONEDAY,BQ={valType:"enumerated",values:dC.sortObjectKeys(Let.calendars),editType:"calc",dflt:"gregorian"},zet=function(e,t,r,n){var i={};return i[r]=BQ,dC.coerce(e,t,i,r,n)},mrr=function(e,t,r,n){for(var i=0;i{"use strict";Fet.exports=Det()});var wrr=Te((WAr,qet)=>{var Oet=pge();Oet.register([m1e(),i_e(),pxe(),Rxe(),Xxe(),Gbe(),r2e(),V2e(),ywe(),$we(),O3e(),K4e(),Oke(),kLe(),vPe(),WPe(),pze(),OIe(),iRe(),bRe(),IRe(),XRe(),lDe(),TDe(),J6e(),yFe(),jNe(),Y7e(),mVe(),UVe(),KGe(),cHe(),DHe(),jWe(),sje(),Pje(),qXe(),uZe(),HZe(),hKe(),DKe(),rJe(),kJe(),VJe(),N$e(),oQe(),SQe(),aet(),Bet()]);qet.exports=Oet});return wrr();})(); /*! * The buffer module from node.js, for the browser. * diff --git a/dist/plotly-with-meta.js b/dist/plotly-with-meta.js index 90c6b90236a..73f238e2274 100644 --- a/dist/plotly-with-meta.js +++ b/dist/plotly-with-meta.js @@ -1,5 +1,5 @@ /** -* plotly.js v3.1.0-rc.0 +* plotly.js v3.1.0-rc.1 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -69,7 +69,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.1.0-rc.0"; + exports.version = "3.1.0-rc.1"; } }); @@ -10472,6 +10472,15 @@ var Plotly = (() => { "`namelength - 3` characters and add an ellipsis." ].join(" ") }, + showarrow: { + valType: "boolean", + dflt: true, + editType: "none", + description: [ + "Sets whether or not to show the hover label arrow/triangle", + "pointing to the data point." + ].join(" ") + }, editType: "none" }, selectdirection: { @@ -10513,6 +10522,7 @@ var Plotly = (() => { }), align: extendFlat({}, hoverLabelAttrs.align, { arrayOk: true }), namelength: extendFlat({}, hoverLabelAttrs.namelength, { arrayOk: true }), + showarrow: extendFlat({}, hoverLabelAttrs.showarrow), editType: "none" } }; @@ -13870,6 +13880,7 @@ var Plotly = (() => { "for details on the date formatting syntax." ].join(" "); } + exports.templateFormatStringDescription = templateFormatStringDescription; function shapeTemplateFormatStringDescription() { return [ "Variables are inserted using %{variable},", @@ -16692,6 +16703,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); @@ -17101,9 +17114,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;", @@ -17544,6 +17560,10 @@ var Plotly = (() => { ev.emit(event, data); internalEv.emit(event, data); }; + if (typeof plotObj.addEventListener === "function") { + plotObj.addEventListener("wheel", () => { + }); + } return plotObj; }, /* @@ -22105,6 +22125,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(); @@ -22467,6 +22488,18 @@ var Plotly = (() => { "If true, then zoom is disabled." ].join(" ") }, + modebardisable: { + valType: "flaglist", + flags: ["autoscale", "zoominout"], + extras: ["none"], + dflt: "none", + editType: "modebar", + description: [ + "Disables certain modebar buttons for this axis.", + "*autoscale* disables the autoscale buttons, *zoominout*", + "disables the zoom-in and zoom-out buttons." + ].join(" ") + }, insiderange: { valType: "info_array", items: [ @@ -23048,6 +23081,18 @@ var Plotly = (() => { editType: "none", description: descriptionWithDates("hover text") }, + unifiedhovertitle: { + text: { + valType: "string", + dflt: "", + editType: "none", + description: [ + "Template string used for rendering the title that appear on x or y unified hover box.", + templateFormatStringDescription() + ].join(" ") + }, + editType: "none" + }, // lines and grids showline: { valType: "boolean", @@ -23202,6 +23247,18 @@ var Plotly = (() => { showgrid, editType: "ticks" }, + minorloglabels: { + valType: "enumerated", + values: ["small digits", "complete", "none"], + dflt: "small digits", + editType: "calc", + 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." + ].join(" ") + }, layer: { valType: "enumerated", values: ["above traces", "below traces"], @@ -24084,6 +24141,9 @@ var Plotly = (() => { coerce("separatethousands"); } } + if (!options.noMinorloglabels && axType === "log") { + coerce("minorloglabels"); + } } }; function tickformatstopDefaults(valueIn, valueOut) { @@ -26884,7 +26944,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; @@ -29626,17 +29686,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") { @@ -29644,7 +29712,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") { @@ -30384,11 +30455,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); @@ -30790,7 +30863,7 @@ var Plotly = (() => { transform, "text-anchor": anchor }); - thisText.style("opacity", 1); + thisText.style("display", null); if (ax._adjustTickLabelsOverflow) { ax._adjustTickLabelsOverflow(); } @@ -30833,9 +30906,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 { @@ -30895,7 +30968,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); } }); @@ -34999,10 +35072,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 ? t02 : 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: t02, font }, + title: { text: mainText, font }, font, bgcolor: hoverlabel.bgcolor, bordercolor: hoverlabel.bordercolor, @@ -35534,13 +35615,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"; @@ -35908,6 +35992,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); }; @@ -36030,6 +36115,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) { @@ -36700,6 +36786,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; @@ -36766,10 +36853,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); @@ -38585,10 +38684,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; @@ -39225,8 +39327,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"; @@ -39292,13 +39395,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) { @@ -39653,7 +39761,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; } } @@ -53504,7 +53613,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]; @@ -54015,6 +54129,7 @@ var Plotly = (() => { grid: layoutOut.grid }); coerce("fixedrange"); + coerce("modebardisable"); addMissingMatchedAxis(); axLayoutOut._input = axLayoutIn; } @@ -54035,6 +54150,7 @@ var Plotly = (() => { ); } coerce("fixedrange"); + coerce("modebardisable"); } for (i = 0; i < yNames.length; i++) { axName = yNames[i]; @@ -54043,6 +54159,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), @@ -67976,7 +68093,7 @@ var Plotly = (() => { return _supportsPixelated; } _supportsPixelated = false; - var unsupportedBrowser = Lib.isSafari() || Lib.isIOS(); + var unsupportedBrowser = Lib.isSafari() || Lib.isMacWKWebView() || Lib.isIOS(); if (window.navigator.userAgent && !unsupportedBrowser) { var declarations = Array.from(constants.CSS_DECLARATIONS).reverse(); var supports = window.CSS && window.CSS.supports || window.supportsCSS; @@ -131019,6 +131136,7 @@ var Plotly = (() => { data: options.data, showGrid: true, noAutotickangles: true, + noMinorloglabels: true, noTicklabelindex: true, noTickson: true, noTicklabelmode: true, @@ -131028,6 +131146,7 @@ var Plotly = (() => { noTicklabelposition: true, noTicklabeloverflow: true, noInsiderange: true, + noUnifiedhovertitle: true, bgColor: options.bgColor, calendar: options.calendar }, @@ -262382,6 +262501,7 @@ uniform ${i3} ${a3} u_${s3}; ticklabelstep: axesAttrs.ticklabelstep, showticklabels: axesAttrs.showticklabels, labelalias: axesAttrs.labelalias, + minorloglabels: axesAttrs.minorloglabels, showtickprefix: axesAttrs.showtickprefix, tickprefix: axesAttrs.tickprefix, showticksuffix: axesAttrs.showticksuffix, diff --git a/dist/plotly.js b/dist/plotly.js index 8c8ceb6c5c0..65c7a749af6 100644 --- a/dist/plotly.js +++ b/dist/plotly.js @@ -1,5 +1,5 @@ /** -* plotly.js v3.1.0-rc.0 +* plotly.js v3.1.0-rc.1 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -69,7 +69,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "3.1.0-rc.0"; + exports.version = "3.1.0-rc.1"; } }); @@ -10362,6 +10362,11 @@ var Plotly = (() => { dflt: 15, editType: "none" }, + showarrow: { + valType: "boolean", + dflt: true, + editType: "none" + }, editType: "none" }, selectdirection: { @@ -10395,6 +10400,7 @@ var Plotly = (() => { }), align: extendFlat({}, hoverLabelAttrs.align, { arrayOk: true }), namelength: extendFlat({}, hoverLabelAttrs.namelength, { arrayOk: true }), + showarrow: extendFlat({}, hoverLabelAttrs.showarrow), editType: "none" } }; @@ -13180,6 +13186,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 || []; @@ -15623,6 +15643,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); @@ -16032,9 +16054,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;", @@ -16475,6 +16500,10 @@ var Plotly = (() => { ev.emit(event, data); internalEv.emit(event, data); }; + if (typeof plotObj.addEventListener === "function") { + plotObj.addEventListener("wheel", () => { + }); + } return plotObj; }, /* @@ -20965,6 +20994,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(); @@ -21160,6 +21190,13 @@ var Plotly = (() => { dflt: false, editType: "calc" }, + modebardisable: { + valType: "flaglist", + flags: ["autoscale", "zoominout"], + extras: ["none"], + dflt: "none", + editType: "modebar" + }, insiderange: { valType: "info_array", items: [ @@ -21483,6 +21520,14 @@ var Plotly = (() => { editType: "none", description: descriptionWithDates("hover text") }, + unifiedhovertitle: { + text: { + valType: "string", + dflt: "", + editType: "none" + }, + editType: "none" + }, // lines and grids showline: { valType: "boolean", @@ -21587,6 +21632,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"], @@ -22220,6 +22271,9 @@ var Plotly = (() => { coerce("separatethousands"); } } + if (!options.noMinorloglabels && axType === "log") { + coerce("minorloglabels"); + } } }; function tickformatstopDefaults(valueIn, valueOut) { @@ -25020,7 +25074,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; @@ -27762,17 +27816,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") { @@ -27780,7 +27842,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") { @@ -28520,11 +28585,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); @@ -28926,7 +28993,7 @@ var Plotly = (() => { transform, "text-anchor": anchor }); - thisText.style("opacity", 1); + thisText.style("display", null); if (ax._adjustTickLabelsOverflow) { ax._adjustTickLabelsOverflow(); } @@ -28969,9 +29036,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 { @@ -29031,7 +29098,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); } }); @@ -33003,10 +33070,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 ? t02 : 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: t02, font }, + title: { text: mainText, font }, font, bgcolor: hoverlabel.bgcolor, bordercolor: hoverlabel.bordercolor, @@ -33538,13 +33613,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"; @@ -33912,6 +33990,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); }; @@ -34034,6 +34113,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) { @@ -34704,6 +34784,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; @@ -34770,10 +34851,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); @@ -36589,10 +36682,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; @@ -37208,8 +37304,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"; @@ -37275,13 +37372,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) { @@ -37636,7 +37738,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; } } @@ -50889,7 +50992,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]; @@ -51400,6 +51508,7 @@ var Plotly = (() => { grid: layoutOut.grid }); coerce("fixedrange"); + coerce("modebardisable"); addMissingMatchedAxis(); axLayoutOut._input = axLayoutIn; } @@ -51420,6 +51529,7 @@ var Plotly = (() => { ); } coerce("fixedrange"); + coerce("modebardisable"); } for (i = 0; i < yNames.length; i++) { axName = yNames[i]; @@ -51428,6 +51538,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), @@ -64302,7 +64413,7 @@ var Plotly = (() => { return _supportsPixelated; } _supportsPixelated = false; - var unsupportedBrowser = Lib.isSafari() || Lib.isIOS(); + var unsupportedBrowser = Lib.isSafari() || Lib.isMacWKWebView() || Lib.isIOS(); if (window.navigator.userAgent && !unsupportedBrowser) { var declarations = Array.from(constants.CSS_DECLARATIONS).reverse(); var supports = window.CSS && window.CSS.supports || window.supportsCSS; @@ -126673,6 +126784,7 @@ var Plotly = (() => { data: options.data, showGrid: true, noAutotickangles: true, + noMinorloglabels: true, noTicklabelindex: true, noTickson: true, noTicklabelmode: true, @@ -126682,6 +126794,7 @@ var Plotly = (() => { noTicklabelposition: true, noTicklabeloverflow: true, noInsiderange: true, + noUnifiedhovertitle: true, bgColor: options.bgColor, calendar: options.calendar }, @@ -255955,6 +256068,7 @@ uniform ${i3} ${a3} u_${s3}; ticklabelstep: axesAttrs.ticklabelstep, showticklabels: axesAttrs.showticklabels, labelalias: axesAttrs.labelalias, + minorloglabels: axesAttrs.minorloglabels, showtickprefix: axesAttrs.showtickprefix, tickprefix: axesAttrs.tickprefix, showticksuffix: axesAttrs.showticksuffix, diff --git a/dist/plotly.min.js b/dist/plotly.min.js index 3d926afdd49..8268709bcc4 100644 --- a/dist/plotly.min.js +++ b/dist/plotly.min.js @@ -1,5 +1,5 @@ /** -* plotly.js v3.1.0-rc.0 +* plotly.js v3.1.0-rc.1 * Copyright 2012-2025, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,39 +12,39 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var qet=Object.create;var ES=Object.defineProperty,Bet=Object.defineProperties,Net=Object.getOwnPropertyDescriptor,Uet=Object.getOwnPropertyDescriptors,Vet=Object.getOwnPropertyNames,iee=Object.getOwnPropertySymbols,Get=Object.getPrototypeOf,aee=Object.prototype.hasOwnProperty,Het=Object.prototype.propertyIsEnumerable;var nee=(e,t,r)=>t in e?ES(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oee=(e,t)=>{for(var r in t||(t={}))aee.call(t,r)&&nee(e,r,t[r]);if(iee)for(var r of iee(t))Het.call(t,r)&&nee(e,r,t[r]);return e},see=(e,t)=>Bet(e,Uet(t));var ru=(e,t)=>()=>(e&&(t=e(e=0)),t);var ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),lee=(e,t)=>{for(var r in t)ES(e,r,{get:t[r],enumerable:!0})},uee=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Vet(t))!aee.call(e,i)&&i!==r&&ES(e,i,{get:()=>t[i],enumerable:!(n=Net(t,i))||n.enumerable});return e};var jet=(e,t,r)=>(r=e!=null?qet(Get(e)):{},uee(t||!e||!e.__esModule?ES(r,"default",{value:e,enumerable:!0}):r,e)),B1=e=>uee(ES({},"__esModule",{value:!0}),e);var r6=ye(cee=>{"use strict";cee.version="3.1.0-rc.0"});var hee=ye((fee,i6)=>{(function(t,r,n){r[t]=r[t]||n(),typeof i6!="undefined"&&i6.exports&&(i6.exports=r[t])})("Promise",typeof window!="undefined"?window:fee,function(){"use strict";var t,r,n,i=Object.prototype.toString,a=typeof setImmediate!="undefined"?function(C){return setImmediate(C)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(C,E,A,L){return Object.defineProperty(C,E,{value:A,writable:!0,configurable:L!==!1})}}catch(p){t=function(E,A,L){return E[A]=L,E}}n=function(){var C,E,A;function L(_,k){this.fn=_,this.self=k,this.next=void 0}return{add:function(k,M){A=new L(k,M),E?E.next=A:C=A,E=A,A=void 0},drain:function(){var k=C;for(C=E=r=void 0;k;)k.fn.call(k.self),k=k.next}}}();function o(p,C){n.add(p,C),r||(r=a(n.drain))}function s(p){var C,E=typeof p;return p!=null&&(E=="object"||E=="function")&&(C=p.then),typeof C=="function"?C:!1}function l(){for(var p=0;p0&&o(l,E))}catch(A){f.call(new d(E),A)}}}function f(p){var C=this;C.triggered||(C.triggered=!0,C.def&&(C=C.def),C.msg=p,C.state=2,C.chain.length>0&&o(l,C))}function h(p,C,E,A){for(var L=0;L{(function(){var e={version:"3.8.2"},t=[].slice,r=function(X){return t.call(X)},n=self.document;function i(X){return X&&(X.ownerDocument||X.document||X).documentElement}function a(X){return X&&(X.ownerDocument&&X.ownerDocument.defaultView||X.document&&X||X.defaultView)}if(n)try{r(n.documentElement.childNodes)[0].nodeType}catch(X){r=function(se){for(var Te=se.length,Ne=new Array(Te);Te--;)Ne[Te]=se[Te];return Ne}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(X){var o=this.Element.prototype,s=o.setAttribute,l=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,c=u.setProperty;o.setAttribute=function(se,Te){s.call(this,se,Te+"")},o.setAttributeNS=function(se,Te,Ne){l.call(this,se,Te,Ne+"")},u.setProperty=function(se,Te,Ne){c.call(this,se,Te+"",Ne)}}e.ascending=f;function f(X,se){return Xse?1:X>=se?0:NaN}e.descending=function(X,se){return seX?1:se>=X?0:NaN},e.min=function(X,se){var Te=-1,Ne=X.length,He,Ye;if(arguments.length===1){for(;++Te=Ye){He=Ye;break}for(;++TeYe&&(He=Ye)}else{for(;++Te=Ye){He=Ye;break}for(;++TeYe&&(He=Ye)}return He},e.max=function(X,se){var Te=-1,Ne=X.length,He,Ye;if(arguments.length===1){for(;++Te=Ye){He=Ye;break}for(;++TeHe&&(He=Ye)}else{for(;++Te=Ye){He=Ye;break}for(;++TeHe&&(He=Ye)}return He},e.extent=function(X,se){var Te=-1,Ne=X.length,He,Ye,Et;if(arguments.length===1){for(;++Te=Ye){He=Et=Ye;break}for(;++TeYe&&(He=Ye),Et=Ye){He=Et=Ye;break}for(;++TeYe&&(He=Ye),Et1)return Et/(Wt-1)},e.deviation=function(){var X=e.variance.apply(this,arguments);return X&&Math.sqrt(X)};function v(X){return{left:function(se,Te,Ne,He){for(arguments.length<3&&(Ne=0),arguments.length<4&&(He=se.length);Ne>>1;X(se[Ye],Te)<0?Ne=Ye+1:He=Ye}return Ne},right:function(se,Te,Ne,He){for(arguments.length<3&&(Ne=0),arguments.length<4&&(He=se.length);Ne>>1;X(se[Ye],Te)>0?He=Ye:Ne=Ye+1}return Ne}}}var x=v(f);e.bisectLeft=x.left,e.bisect=e.bisectRight=x.right,e.bisector=function(X){return v(X.length===1?function(se,Te){return f(X(se),Te)}:X)},e.shuffle=function(X,se,Te){(Ne=arguments.length)<3&&(Te=X.length,Ne<2&&(se=0));for(var Ne=Te-se,He,Ye;Ne;)Ye=Math.random()*Ne--|0,He=X[Ne+se],X[Ne+se]=X[Ye+se],X[Ye+se]=He;return X},e.permute=function(X,se){for(var Te=se.length,Ne=new Array(Te);Te--;)Ne[Te]=X[se[Te]];return Ne},e.pairs=function(X){for(var se=0,Te=X.length-1,Ne,He=X[0],Ye=new Array(Te<0?0:Te);se=0;)for(Et=X[se],Te=Et.length;--Te>=0;)Ye[--He]=Et[Te];return Ye};var p=Math.abs;e.range=function(X,se,Te){if(arguments.length<3&&(Te=1,arguments.length<2&&(se=X,X=0)),(se-X)/Te===1/0)throw new Error("infinite range");var Ne=[],He=C(p(Te)),Ye=-1,Et;if(X*=He,se*=He,Te*=He,Te<0)for(;(Et=X+Te*++Ye)>se;)Ne.push(Et/He);else for(;(Et=X+Te*++Ye)=se.length)return He?He.call(X,Wt):Ne?Wt.sort(Ne):Wt;for(var yr=-1,Vr=Wt.length,qr=se[gr++],_i,bi,Wr,ni=new A,pi;++yr=se.length)return nt;var gr=[],yr=Te[Wt++];return nt.forEach(function(Vr,qr){gr.push({key:Vr,values:Et(qr,Wt)})}),yr?gr.sort(function(Vr,qr){return yr(Vr.key,qr.key)}):gr}return X.map=function(nt,Wt){return Ye(Wt,nt,0)},X.entries=function(nt){return Et(Ye(e.map,nt,0),0)},X.key=function(nt){return se.push(nt),X},X.sortKeys=function(nt){return Te[se.length-1]=nt,X},X.sortValues=function(nt){return Ne=nt,X},X.rollup=function(nt){return He=nt,X},X},e.set=function(X){var se=new V;if(X)for(var Te=0,Ne=X.length;Te=0&&(Ne=X.slice(Te+1),X=X.slice(0,Te)),X)return arguments.length<2?this[X].on(Ne):this[X].on(Ne,se);if(arguments.length===2){if(se==null)for(X in this)this.hasOwnProperty(X)&&this[X].on(Ne,null);return this}};function oe(X){var se=[],Te=new A;function Ne(){for(var He=se,Ye=-1,Et=He.length,nt;++Ye=0&&(Te=X.slice(0,se))!=="xmlns"&&(X=X.slice(se+1)),Ze.hasOwnProperty(Te)?{space:Ze[Te],local:X}:X}},Pe.attr=function(X,se){if(arguments.length<2){if(typeof X=="string"){var Te=this.node();return X=e.ns.qualify(X),X.local?Te.getAttributeNS(X.space,X.local):Te.getAttribute(X)}for(se in X)this.each(ut(se,X[se]));return this}return this.each(ut(X,se))};function ut(X,se){X=e.ns.qualify(X);function Te(){this.removeAttribute(X)}function Ne(){this.removeAttributeNS(X.space,X.local)}function He(){this.setAttribute(X,se)}function Ye(){this.setAttributeNS(X.space,X.local,se)}function Et(){var Wt=se.apply(this,arguments);Wt==null?this.removeAttribute(X):this.setAttribute(X,Wt)}function nt(){var Wt=se.apply(this,arguments);Wt==null?this.removeAttributeNS(X.space,X.local):this.setAttributeNS(X.space,X.local,Wt)}return se==null?X.local?Ne:Te:typeof se=="function"?X.local?nt:Et:X.local?Ye:He}function gt(X){return X.trim().replace(/\s+/g," ")}Pe.classed=function(X,se){if(arguments.length<2){if(typeof X=="string"){var Te=this.node(),Ne=(X=st(X)).length,He=-1;if(se=Te.classList){for(;++He=0;)(Ye=Te[Ne])&&(He&&He!==Ye.nextSibling&&He.parentNode.insertBefore(Ye,He),He=Ye);return this},Pe.sort=function(X){X=Mt.apply(this,arguments);for(var se=-1,Te=this.length;++se=se&&(se=He+1);!(Wt=Et[se])&&++se0&&(X=X.slice(0,He));var Et=rr.get(X);Et&&(X=Et,Ye=wr);function nt(){var yr=this[Ne];yr&&(this.removeEventListener(X,yr,yr.$),delete this[Ne])}function Wt(){var yr=Ye(se,r(arguments));nt.call(this),this.addEventListener(X,this[Ne]=yr,yr.$=Te),yr._=se}function gr(){var yr=new RegExp("^__on([^.]+)"+e.requote(X)+"$"),Vr;for(var qr in this)if(Vr=qr.match(yr)){var _i=this[qr];this.removeEventListener(Vr[1],_i,_i.$),delete this[qr]}}return He?se?Wt:nt:se?j:gr}var rr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&rr.forEach(function(X){"on"+X in n&&rr.remove(X)});function lr(X,se){return function(Te){var Ne=e.event;e.event=Te,se[0]=this.__data__;try{X.apply(this,se)}finally{e.event=Ne}}}function wr(X,se){var Te=lr(X,se);return function(Ne){var He=this,Ye=Ne.relatedTarget;(!Ye||Ye!==He&&!(Ye.compareDocumentPosition(He)&8))&&Te.call(He,Ne)}}var Cr,Kr=0;function Gr(X){var se=".dragsuppress-"+ ++Kr,Te="click"+se,Ne=e.select(a(X)).on("touchmove"+se,_e).on("dragstart"+se,_e).on("selectstart"+se,_e);if(Cr==null&&(Cr="onselectstart"in X?!1:H(X.style,"userSelect")),Cr){var He=i(X).style,Ye=He[Cr];He[Cr]="none"}return function(Et){if(Ne.on(se,null),Cr&&(He[Cr]=Ye),Et){var nt=function(){Ne.on(Te,null)};Ne.on(Te,function(){_e(),nt()},!0),setTimeout(nt,0)}}}e.mouse=function(X){return dt(X,Me())};var Yr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function dt(X,se){se.changedTouches&&(se=se.changedTouches[0]);var Te=X.ownerSVGElement||X;if(Te.createSVGPoint){var Ne=Te.createSVGPoint();if(Yr<0){var He=a(X);if(He.scrollX||He.scrollY){Te=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Ye=Te[0][0].getScreenCTM();Yr=!(Ye.f||Ye.e),Te.remove()}}return Yr?(Ne.x=se.pageX,Ne.y=se.pageY):(Ne.x=se.clientX,Ne.y=se.clientY),Ne=Ne.matrixTransform(X.getScreenCTM().inverse()),[Ne.x,Ne.y]}var Et=X.getBoundingClientRect();return[se.clientX-Et.left-X.clientLeft,se.clientY-Et.top-X.clientTop]}e.touch=function(X,se,Te){if(arguments.length<3&&(Te=se,se=Me().changedTouches),se){for(var Ne=0,He=se.length,Ye;Ne0?1:X<0?-1:0}function ir(X,se,Te){return(se[0]-X[0])*(Te[1]-X[1])-(se[1]-X[1])*(Te[0]-X[0])}function vr(X){return X>1?0:X<-1?Je:Math.acos(X)}function si(X){return X>1?xe:X<-1?-xe:Math.asin(X)}function mi(X){return((X=Math.exp(X))-1/X)/2}function ei(X){return((X=Math.exp(X))+1/X)/2}function vi(X){return((X=Math.exp(2*X))-1)/(X+1)}function ji(X){return(X=Math.sin(X/2))*X}var Rn=Math.SQRT2,wn=2,pn=4;e.interpolateZoom=function(X,se){var Te=X[0],Ne=X[1],He=X[2],Ye=se[0],Et=se[1],nt=se[2],Wt=Ye-Te,gr=Et-Ne,yr=Wt*Wt+gr*gr,Vr,qr;if(yr0&&(Gn=Gn.transition().duration(Et)),Gn.call(Ai.event)}function Ea(){ni&&ni.domain(Wr.range().map(function(Gn){return(Gn-X.x)/X.k}).map(Wr.invert)),Pi&&Pi.domain(pi.range().map(function(Gn){return(Gn-X.y)/X.k}).map(pi.invert))}function Ia(Gn){nt++||Gn({type:"zoomstart"})}function yo(Gn){Ea(),Gn({type:"zoom",scale:X.k,translate:[X.x,X.y]})}function Da(Gn){--nt||(Gn({type:"zoomend"}),Te=null)}function go(){var Gn=this,Ha=bi.of(Gn,arguments),Fo=0,Uo=e.select(a(Gn)).on(gr,bu).on(yr,vl),Qs=ti(e.mouse(Gn)),Sl=Gr(Gn);fa.call(Gn),Ia(Ha);function bu(){Fo=1,Nn(e.mouse(Gn),Qs),yo(Ha)}function vl(){Uo.on(gr,null).on(yr,null),Sl(Fo),Da(Ha)}}function Rs(){var Gn=this,Ha=bi.of(Gn,arguments),Fo={},Uo=0,Qs,Sl=".zoom-"+e.event.changedTouches[0].identifier,bu="touchmove"+Sl,vl="touchend"+Sl,Sc=[],Ee=e.select(Gn),_t=Gr(Gn);Rr(),Ia(Ha),Ee.on(Wt,null).on(qr,Rr);function zt(){var Ur=e.touches(Gn);return Qs=X.k,Ur.forEach(function(gi){gi.identifier in Fo&&(Fo[gi.identifier]=ti(gi))}),Ur}function Rr(){var Ur=e.event.target;e.select(Ur).on(bu,Hr).on(vl,Br),Sc.push(Ur);for(var gi=e.event.changedTouches,Ni=0,Oi=gi.length;Ni1){var Qi=Mi[0],Hi=Mi[1],oi=Qi[0]-Hi[0],Mr=Qi[1]-Hi[1];Uo=oi*oi+Mr*Mr}}function Hr(){var Ur=e.touches(Gn),gi,Ni,Oi,Mi;fa.call(Gn);for(var Hn=0,Qi=Ur.length;Hn1?1:se,Te=Te<0?0:Te>1?1:Te,He=Te<=.5?Te*(1+se):Te+se-Te*se,Ne=2*Te-He;function Ye(nt){return nt>360?nt-=360:nt<0&&(nt+=360),nt<60?Ne+(He-Ne)*nt/60:nt<180?He:nt<240?Ne+(He-Ne)*(240-nt)/60:Ne}function Et(nt){return Math.round(Ye(nt)*255)}return new Wa(Et(X+120),Et(X),Et(X-120))}e.hcl=ar;function ar(X,se,Te){return this instanceof ar?(this.h=+X,this.c=+se,void(this.l=+Te)):arguments.length<2?X instanceof ar?new ar(X.h,X.c,X.l):X instanceof ri?Mn(X.l,X.a,X.b):Mn((X=jn((X=e.rgb(X)).r,X.g,X.b)).l,X.a,X.b):new ar(X,se,Te)}var Er=ar.prototype=new ua;Er.brighter=function(X){return new ar(this.h,this.c,Math.min(100,this.l+$r*(arguments.length?X:1)))},Er.darker=function(X){return new ar(this.h,this.c,Math.max(0,this.l-$r*(arguments.length?X:1)))},Er.rgb=function(){return Xr(this.h,this.c,this.l).rgb()};function Xr(X,se,Te){return isNaN(X)&&(X=0),isNaN(se)&&(se=0),new ri(Te,Math.cos(X*=Ce)*se,Math.sin(X)*se)}e.lab=ri;function ri(X,se,Te){return this instanceof ri?(this.l=+X,this.a=+se,void(this.b=+Te)):arguments.length<2?X instanceof ri?new ri(X.l,X.a,X.b):X instanceof ar?Xr(X.h,X.c,X.l):jn((X=Wa(X)).r,X.g,X.b):new ri(X,se,Te)}var $r=18,zi=.95047,Ji=1,en=1.08883,cn=ri.prototype=new ua;cn.brighter=function(X){return new ri(Math.min(100,this.l+$r*(arguments.length?X:1)),this.a,this.b)},cn.darker=function(X){return new ri(Math.max(0,this.l-$r*(arguments.length?X:1)),this.a,this.b)},cn.rgb=function(){return yn(this.l,this.a,this.b)};function yn(X,se,Te){var Ne=(X+16)/116,He=Ne+se/500,Ye=Ne-Te/200;return He=Ba(He)*zi,Ne=Ba(Ne)*Ji,Ye=Ba(Ye)*en,new Wa(ma(3.2404542*He-1.5371385*Ne-.4985314*Ye),ma(-.969266*He+1.8760108*Ne+.041556*Ye),ma(.0556434*He-.2040259*Ne+1.0572252*Ye))}function Mn(X,se,Te){return X>0?new ar(Math.atan2(Te,se)*pt,Math.sqrt(se*se+Te*Te),X):new ar(NaN,NaN,X)}function Ba(X){return X>.206893034?X*X*X:(X-4/29)/7.787037}function la(X){return X>.008856?Math.pow(X,1/3):7.787037*X+4/29}function ma(X){return Math.round(255*(X<=.00304?12.92*X:1.055*Math.pow(X,1/2.4)-.055))}e.rgb=Wa;function Wa(X,se,Te){return this instanceof Wa?(this.r=~~X,this.g=~~se,void(this.b=~~Te)):arguments.length<2?X instanceof Wa?new Wa(X.r,X.g,X.b):Ga(""+X,Wa,er):new Wa(X,se,Te)}function Fa(X){return new Wa(X>>16,X>>8&255,X&255)}function Wo(X){return Fa(X)+""}var da=Wa.prototype=new ua;da.brighter=function(X){X=Math.pow(.7,arguments.length?X:1);var se=this.r,Te=this.g,Ne=this.b,He=30;return!se&&!Te&&!Ne?new Wa(He,He,He):(se&&se>4,Ne=Ne>>4|Ne,He=Wt&240,He=He>>4|He,Ye=Wt&15,Ye=Ye<<4|Ye):X.length===7&&(Ne=(Wt&16711680)>>16,He=(Wt&65280)>>8,Ye=Wt&255)),se(Ne,He,Ye))}function vo(X,se,Te){var Ne=Math.min(X/=255,se/=255,Te/=255),He=Math.max(X,se,Te),Ye=He-Ne,Et,nt,Wt=(He+Ne)/2;return Ye?(nt=Wt<.5?Ye/(He+Ne):Ye/(2-He-Ne),X==He?Et=(se-Te)/Ye+(se0&&Wt<1?0:Et),new Ht(Et,nt,Wt)}function jn(X,se,Te){X=At(X),se=At(se),Te=At(Te);var Ne=la((.4124564*X+.3575761*se+.1804375*Te)/zi),He=la((.2126729*X+.7151522*se+.072175*Te)/Ji),Ye=la((.0193339*X+.119192*se+.9503041*Te)/en);return ri(116*He-16,500*(Ne-He),200*(He-Ye))}function At(X){return(X/=255)<=.04045?X/12.92:Math.pow((X+.055)/1.055,2.4)}function kr(X){var se=parseFloat(X);return X.charAt(X.length-1)==="%"?Math.round(se*2.55):se}var Qr=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Qr.forEach(function(X,se){Qr.set(X,Fa(se))});function di(X){return typeof X=="function"?X:function(){return X}}e.functor=di,e.xhr=fn(G);function fn(X){return function(se,Te,Ne){return arguments.length===2&&typeof Te=="function"&&(Ne=Te,Te=null),Sn(se,Te,X,Ne)}}function Sn(X,se,Te,Ne){var He={},Ye=e.dispatch("beforesend","progress","load","error"),Et={},nt=new XMLHttpRequest,Wt=null;self.XDomainRequest&&!("withCredentials"in nt)&&/^(http(s)?:)?\/\//.test(X)&&(nt=new XDomainRequest),"onload"in nt?nt.onload=nt.onerror=gr:nt.onreadystatechange=function(){nt.readyState>3&&gr()};function gr(){var yr=nt.status,Vr;if(!yr&&ki(nt)||yr>=200&&yr<300||yr===304){try{Vr=Te.call(He,nt)}catch(qr){Ye.error.call(He,qr);return}Ye.load.call(He,Vr)}else Ye.error.call(He,nt)}return nt.onprogress=function(yr){var Vr=e.event;e.event=yr;try{Ye.progress.call(He,nt)}finally{e.event=Vr}},He.header=function(yr,Vr){return yr=(yr+"").toLowerCase(),arguments.length<2?Et[yr]:(Vr==null?delete Et[yr]:Et[yr]=Vr+"",He)},He.mimeType=function(yr){return arguments.length?(se=yr==null?null:yr+"",He):se},He.responseType=function(yr){return arguments.length?(Wt=yr,He):Wt},He.response=function(yr){return Te=yr,He},["get","post"].forEach(function(yr){He[yr]=function(){return He.send.apply(He,[yr].concat(r(arguments)))}}),He.send=function(yr,Vr,qr){if(arguments.length===2&&typeof Vr=="function"&&(qr=Vr,Vr=null),nt.open(yr,X,!0),se!=null&&!("accept"in Et)&&(Et.accept=se+",*/*"),nt.setRequestHeader)for(var _i in Et)nt.setRequestHeader(_i,Et[_i]);return se!=null&&nt.overrideMimeType&&nt.overrideMimeType(se),Wt!=null&&(nt.responseType=Wt),qr!=null&&He.on("error",qr).on("load",function(bi){qr(null,bi)}),Ye.beforesend.call(He,nt),nt.send(Vr==null?null:Vr),He},He.abort=function(){return nt.abort(),He},e.rebind(He,Ye,"on"),Ne==null?He:He.get(En(Ne))}function En(X){return X.length===1?function(se,Te){X(se==null?Te:null)}:X}function ki(X){var se=X.responseType;return se&&se!=="text"?X.response:X.responseText}e.dsv=function(X,se){var Te=new RegExp('["'+X+` -]`),Ne=X.charCodeAt(0);function He(gr,yr,Vr){arguments.length<3&&(Vr=yr,yr=null);var qr=Sn(gr,se,yr==null?Ye:Et(yr),Vr);return qr.row=function(_i){return arguments.length?qr.response((yr=_i)==null?Ye:Et(_i)):yr},qr}function Ye(gr){return He.parse(gr.responseText)}function Et(gr){return function(yr){return He.parse(yr.responseText,gr)}}He.parse=function(gr,yr){var Vr;return He.parseRows(gr,function(qr,_i){if(Vr)return Vr(qr,_i-1);var bi=function(Wr){for(var ni={},pi=qr.length,Pi=0;Pi=bi)return qr;if(Pi)return Pi=!1,Vr;var In=Wr;if(gr.charCodeAt(In)===34){for(var Cn=In;Cn++{var Bet=Object.create;var ES=Object.defineProperty,Net=Object.defineProperties,Uet=Object.getOwnPropertyDescriptor,Vet=Object.getOwnPropertyDescriptors,Get=Object.getOwnPropertyNames,nee=Object.getOwnPropertySymbols,Het=Object.getPrototypeOf,oee=Object.prototype.hasOwnProperty,jet=Object.prototype.propertyIsEnumerable;var aee=(e,t,r)=>t in e?ES(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,see=(e,t)=>{for(var r in t||(t={}))oee.call(t,r)&&aee(e,r,t[r]);if(nee)for(var r of nee(t))jet.call(t,r)&&aee(e,r,t[r]);return e},lee=(e,t)=>Net(e,Vet(t));var ru=(e,t)=>()=>(e&&(t=e(e=0)),t);var ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),uee=(e,t)=>{for(var r in t)ES(e,r,{get:t[r],enumerable:!0})},cee=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Get(t))!oee.call(e,i)&&i!==r&&ES(e,i,{get:()=>t[i],enumerable:!(n=Uet(t,i))||n.enumerable});return e};var Wet=(e,t,r)=>(r=e!=null?Bet(Het(e)):{},cee(t||!e||!e.__esModule?ES(r,"default",{value:e,enumerable:!0}):r,e)),B1=e=>cee(ES({},"__esModule",{value:!0}),e);var a6=ye(fee=>{"use strict";fee.version="3.1.0-rc.1"});var dee=ye((hee,o6)=>{(function(t,r,n){r[t]=r[t]||n(),typeof o6!="undefined"&&o6.exports&&(o6.exports=r[t])})("Promise",typeof window!="undefined"?window:hee,function(){"use strict";var t,r,n,i=Object.prototype.toString,a=typeof setImmediate!="undefined"?function(C){return setImmediate(C)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(C,E,A,L){return Object.defineProperty(C,E,{value:A,writable:!0,configurable:L!==!1})}}catch(p){t=function(E,A,L){return E[A]=L,E}}n=function(){var C,E,A;function L(x,k){this.fn=x,this.self=k,this.next=void 0}return{add:function(k,M){A=new L(k,M),E?E.next=A:C=A,E=A,A=void 0},drain:function(){var k=C;for(C=E=r=void 0;k;)k.fn.call(k.self),k=k.next}}}();function o(p,C){n.add(p,C),r||(r=a(n.drain))}function s(p){var C,E=typeof p;return p!=null&&(E=="object"||E=="function")&&(C=p.then),typeof C=="function"?C:!1}function l(){for(var p=0;p0&&o(l,E))}catch(A){f.call(new d(E),A)}}}function f(p){var C=this;C.triggered||(C.triggered=!0,C.def&&(C=C.def),C.msg=p,C.state=2,C.chain.length>0&&o(l,C))}function h(p,C,E,A){for(var L=0;L{(function(){var e={version:"3.8.2"},t=[].slice,r=function(X){return t.call(X)},n=self.document;function i(X){return X&&(X.ownerDocument||X.document||X).documentElement}function a(X){return X&&(X.ownerDocument&&X.ownerDocument.defaultView||X.document&&X||X.defaultView)}if(n)try{r(n.documentElement.childNodes)[0].nodeType}catch(X){r=function(se){for(var Te=se.length,Ne=new Array(Te);Te--;)Ne[Te]=se[Te];return Ne}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(X){var o=this.Element.prototype,s=o.setAttribute,l=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,c=u.setProperty;o.setAttribute=function(se,Te){s.call(this,se,Te+"")},o.setAttributeNS=function(se,Te,Ne){l.call(this,se,Te,Ne+"")},u.setProperty=function(se,Te,Ne){c.call(this,se,Te+"",Ne)}}e.ascending=f;function f(X,se){return Xse?1:X>=se?0:NaN}e.descending=function(X,se){return seX?1:se>=X?0:NaN},e.min=function(X,se){var Te=-1,Ne=X.length,He,Ze;if(arguments.length===1){for(;++Te=Ze){He=Ze;break}for(;++TeZe&&(He=Ze)}else{for(;++Te=Ze){He=Ze;break}for(;++TeZe&&(He=Ze)}return He},e.max=function(X,se){var Te=-1,Ne=X.length,He,Ze;if(arguments.length===1){for(;++Te=Ze){He=Ze;break}for(;++TeHe&&(He=Ze)}else{for(;++Te=Ze){He=Ze;break}for(;++TeHe&&(He=Ze)}return He},e.extent=function(X,se){var Te=-1,Ne=X.length,He,Ze,Ct;if(arguments.length===1){for(;++Te=Ze){He=Ct=Ze;break}for(;++TeZe&&(He=Ze),Ct=Ze){He=Ct=Ze;break}for(;++TeZe&&(He=Ze),Ct1)return Ct/(jt-1)},e.deviation=function(){var X=e.variance.apply(this,arguments);return X&&Math.sqrt(X)};function v(X){return{left:function(se,Te,Ne,He){for(arguments.length<3&&(Ne=0),arguments.length<4&&(He=se.length);Ne>>1;X(se[Ze],Te)<0?Ne=Ze+1:He=Ze}return Ne},right:function(se,Te,Ne,He){for(arguments.length<3&&(Ne=0),arguments.length<4&&(He=se.length);Ne>>1;X(se[Ze],Te)>0?He=Ze:Ne=Ze+1}return Ne}}}var _=v(f);e.bisectLeft=_.left,e.bisect=e.bisectRight=_.right,e.bisector=function(X){return v(X.length===1?function(se,Te){return f(X(se),Te)}:X)},e.shuffle=function(X,se,Te){(Ne=arguments.length)<3&&(Te=X.length,Ne<2&&(se=0));for(var Ne=Te-se,He,Ze;Ne;)Ze=Math.random()*Ne--|0,He=X[Ne+se],X[Ne+se]=X[Ze+se],X[Ze+se]=He;return X},e.permute=function(X,se){for(var Te=se.length,Ne=new Array(Te);Te--;)Ne[Te]=X[se[Te]];return Ne},e.pairs=function(X){for(var se=0,Te=X.length-1,Ne,He=X[0],Ze=new Array(Te<0?0:Te);se=0;)for(Ct=X[se],Te=Ct.length;--Te>=0;)Ze[--He]=Ct[Te];return Ze};var p=Math.abs;e.range=function(X,se,Te){if(arguments.length<3&&(Te=1,arguments.length<2&&(se=X,X=0)),(se-X)/Te===1/0)throw new Error("infinite range");var Ne=[],He=C(p(Te)),Ze=-1,Ct;if(X*=He,se*=He,Te*=He,Te<0)for(;(Ct=X+Te*++Ze)>se;)Ne.push(Ct/He);else for(;(Ct=X+Te*++Ze)=se.length)return He?He.call(X,jt):Ne?jt.sort(Ne):jt;for(var yr=-1,Gr=jt.length,qr=se[gr++],_i,bi,Xr,ni=new A,gi;++yr=se.length)return nt;var gr=[],yr=Te[jt++];return nt.forEach(function(Gr,qr){gr.push({key:Gr,values:Ct(qr,jt)})}),yr?gr.sort(function(Gr,qr){return yr(Gr.key,qr.key)}):gr}return X.map=function(nt,jt){return Ze(jt,nt,0)},X.entries=function(nt){return Ct(Ze(e.map,nt,0),0)},X.key=function(nt){return se.push(nt),X},X.sortKeys=function(nt){return Te[se.length-1]=nt,X},X.sortValues=function(nt){return Ne=nt,X},X.rollup=function(nt){return He=nt,X},X},e.set=function(X){var se=new V;if(X)for(var Te=0,Ne=X.length;Te=0&&(Ne=X.slice(Te+1),X=X.slice(0,Te)),X)return arguments.length<2?this[X].on(Ne):this[X].on(Ne,se);if(arguments.length===2){if(se==null)for(X in this)this.hasOwnProperty(X)&&this[X].on(Ne,null);return this}};function oe(X){var se=[],Te=new A;function Ne(){for(var He=se,Ze=-1,Ct=He.length,nt;++Ze=0&&(Te=X.slice(0,se))!=="xmlns"&&(X=X.slice(se+1)),Ye.hasOwnProperty(Te)?{space:Ye[Te],local:X}:X}},Pe.attr=function(X,se){if(arguments.length<2){if(typeof X=="string"){var Te=this.node();return X=e.ns.qualify(X),X.local?Te.getAttributeNS(X.space,X.local):Te.getAttribute(X)}for(se in X)this.each(ct(se,X[se]));return this}return this.each(ct(X,se))};function ct(X,se){X=e.ns.qualify(X);function Te(){this.removeAttribute(X)}function Ne(){this.removeAttributeNS(X.space,X.local)}function He(){this.setAttribute(X,se)}function Ze(){this.setAttributeNS(X.space,X.local,se)}function Ct(){var jt=se.apply(this,arguments);jt==null?this.removeAttribute(X):this.setAttribute(X,jt)}function nt(){var jt=se.apply(this,arguments);jt==null?this.removeAttributeNS(X.space,X.local):this.setAttributeNS(X.space,X.local,jt)}return se==null?X.local?Ne:Te:typeof se=="function"?X.local?nt:Ct:X.local?Ze:He}function pt(X){return X.trim().replace(/\s+/g," ")}Pe.classed=function(X,se){if(arguments.length<2){if(typeof X=="string"){var Te=this.node(),Ne=(X=st(X)).length,He=-1;if(se=Te.classList){for(;++He=0;)(Ze=Te[Ne])&&(He&&He!==Ze.nextSibling&&He.parentNode.insertBefore(Ze,He),He=Ze);return this},Pe.sort=function(X){X=Et.apply(this,arguments);for(var se=-1,Te=this.length;++se=se&&(se=He+1);!(jt=Ct[se])&&++se0&&(X=X.slice(0,He));var Ct=Yt.get(X);Ct&&(X=Ct,Ze=Tr);function nt(){var yr=this[Ne];yr&&(this.removeEventListener(X,yr,yr.$),delete this[Ne])}function jt(){var yr=Ze(se,r(arguments));nt.call(this),this.addEventListener(X,this[Ne]=yr,yr.$=Te),yr._=se}function gr(){var yr=new RegExp("^__on([^.]+)"+e.requote(X)+"$"),Gr;for(var qr in this)if(Gr=qr.match(yr)){var _i=this[qr];this.removeEventListener(Gr[1],_i,_i.$),delete this[qr]}}return He?se?jt:nt:se?j:gr}var Yt=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&Yt.forEach(function(X){"on"+X in n&&Yt.remove(X)});function lr(X,se){return function(Te){var Ne=e.event;e.event=Te,se[0]=this.__data__;try{X.apply(this,se)}finally{e.event=Ne}}}function Tr(X,se){var Te=lr(X,se);return function(Ne){var He=this,Ze=Ne.relatedTarget;(!Ze||Ze!==He&&!(Ze.compareDocumentPosition(He)&8))&&Te.call(He,Ne)}}var Rr,ei=0;function Wr(X){var se=".dragsuppress-"+ ++ei,Te="click"+se,Ne=e.select(a(X)).on("touchmove"+se,_e).on("dragstart"+se,_e).on("selectstart"+se,_e);if(Rr==null&&(Rr="onselectstart"in X?!1:H(X.style,"userSelect")),Rr){var He=i(X).style,Ze=He[Rr];He[Rr]="none"}return function(Ct){if(Ne.on(se,null),Rr&&(He[Rr]=Ze),Ct){var nt=function(){Ne.on(Te,null)};Ne.on(Te,function(){_e(),nt()},!0),setTimeout(nt,0)}}}e.mouse=function(X){return dt(X,Me())};var Ur=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function dt(X,se){se.changedTouches&&(se=se.changedTouches[0]);var Te=X.ownerSVGElement||X;if(Te.createSVGPoint){var Ne=Te.createSVGPoint();if(Ur<0){var He=a(X);if(He.scrollX||He.scrollY){Te=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Ze=Te[0][0].getScreenCTM();Ur=!(Ze.f||Ze.e),Te.remove()}}return Ur?(Ne.x=se.pageX,Ne.y=se.pageY):(Ne.x=se.clientX,Ne.y=se.clientY),Ne=Ne.matrixTransform(X.getScreenCTM().inverse()),[Ne.x,Ne.y]}var Ct=X.getBoundingClientRect();return[se.clientX-Ct.left-X.clientLeft,se.clientY-Ct.top-X.clientTop]}e.touch=function(X,se,Te){if(arguments.length<3&&(Te=se,se=Me().changedTouches),se){for(var Ne=0,He=se.length,Ze;Ne0?1:X<0?-1:0}function ir(X,se,Te){return(se[0]-X[0])*(Te[1]-X[1])-(se[1]-X[1])*(Te[0]-X[0])}function pr(X){return X>1?0:X<-1?$e:Math.acos(X)}function oi(X){return X>1?xe:X<-1?-xe:Math.asin(X)}function di(X){return((X=Math.exp(X))-1/X)/2}function Jr(X){return((X=Math.exp(X))+1/X)/2}function fi(X){return((X=Math.exp(2*X))-1)/(X+1)}function Hi(X){return(X=Math.sin(X/2))*X}var Pn=Math.SQRT2,wn=2,pn=4;e.interpolateZoom=function(X,se){var Te=X[0],Ne=X[1],He=X[2],Ze=se[0],Ct=se[1],nt=se[2],jt=Ze-Te,gr=Ct-Ne,yr=jt*jt+gr*gr,Gr,qr;if(yr0&&(Gn=Gn.transition().duration(Ct)),Gn.call(Ai.event)}function Ea(){ni&&ni.domain(Xr.range().map(function(Gn){return(Gn-X.x)/X.k}).map(Xr.invert)),Pi&&Pi.domain(gi.range().map(function(Gn){return(Gn-X.y)/X.k}).map(gi.invert))}function Ia(Gn){nt++||Gn({type:"zoomstart"})}function yo(Gn){Ea(),Gn({type:"zoom",scale:X.k,translate:[X.x,X.y]})}function Da(Gn){--nt||(Gn({type:"zoomend"}),Te=null)}function go(){var Gn=this,Ha=bi.of(Gn,arguments),Fo=0,Uo=e.select(a(Gn)).on(gr,bu).on(yr,vl),Qs=ti(e.mouse(Gn)),Sl=Wr(Gn);fa.call(Gn),Ia(Ha);function bu(){Fo=1,Nn(e.mouse(Gn),Qs),yo(Ha)}function vl(){Uo.on(gr,null).on(yr,null),Sl(Fo),Da(Ha)}}function Rs(){var Gn=this,Ha=bi.of(Gn,arguments),Fo={},Uo=0,Qs,Sl=".zoom-"+e.event.changedTouches[0].identifier,bu="touchmove"+Sl,vl="touchend"+Sl,Sc=[],Ee=e.select(Gn),xt=Wr(Gn);Ir(),Ia(Ha),Ee.on(jt,null).on(qr,Ir);function zt(){var Vr=e.touches(Gn);return Qs=X.k,Vr.forEach(function(mi){mi.identifier in Fo&&(Fo[mi.identifier]=ti(mi))}),Vr}function Ir(){var Vr=e.event.target;e.select(Vr).on(bu,Hr).on(vl,Br),Sc.push(Vr);for(var mi=e.event.changedTouches,Ni=0,Oi=mi.length;Ni1){var Qi=Mi[0],ji=Mi[1],si=Qi[0]-ji[0],Mr=Qi[1]-ji[1];Uo=si*si+Mr*Mr}}function Hr(){var Vr=e.touches(Gn),mi,Ni,Oi,Mi;fa.call(Gn);for(var Hn=0,Qi=Vr.length;Hn1?1:se,Te=Te<0?0:Te>1?1:Te,He=Te<=.5?Te*(1+se):Te+se-Te*se,Ne=2*Te-He;function Ze(nt){return nt>360?nt-=360:nt<0&&(nt+=360),nt<60?Ne+(He-Ne)*nt/60:nt<180?He:nt<240?Ne+(He-Ne)*(240-nt)/60:Ne}function Ct(nt){return Math.round(Ze(nt)*255)}return new Wa(Ct(X+120),Ct(X),Ct(X-120))}e.hcl=ar;function ar(X,se,Te){return this instanceof ar?(this.h=+X,this.c=+se,void(this.l=+Te)):arguments.length<2?X instanceof ar?new ar(X.h,X.c,X.l):X instanceof ri?Mn(X.l,X.a,X.b):Mn((X=jn((X=e.rgb(X)).r,X.g,X.b)).l,X.a,X.b):new ar(X,se,Te)}var Er=ar.prototype=new ua;Er.brighter=function(X){return new ar(this.h,this.c,Math.min(100,this.l+$r*(arguments.length?X:1)))},Er.darker=function(X){return new ar(this.h,this.c,Math.max(0,this.l-$r*(arguments.length?X:1)))},Er.rgb=function(){return Zr(this.h,this.c,this.l).rgb()};function Zr(X,se,Te){return isNaN(X)&&(X=0),isNaN(se)&&(se=0),new ri(Te,Math.cos(X*=Ce)*se,Math.sin(X)*se)}e.lab=ri;function ri(X,se,Te){return this instanceof ri?(this.l=+X,this.a=+se,void(this.b=+Te)):arguments.length<2?X instanceof ri?new ri(X.l,X.a,X.b):X instanceof ar?Zr(X.h,X.c,X.l):jn((X=Wa(X)).r,X.g,X.b):new ri(X,se,Te)}var $r=18,zi=.95047,Ji=1,en=1.08883,cn=ri.prototype=new ua;cn.brighter=function(X){return new ri(Math.min(100,this.l+$r*(arguments.length?X:1)),this.a,this.b)},cn.darker=function(X){return new ri(Math.max(0,this.l-$r*(arguments.length?X:1)),this.a,this.b)},cn.rgb=function(){return yn(this.l,this.a,this.b)};function yn(X,se,Te){var Ne=(X+16)/116,He=Ne+se/500,Ze=Ne-Te/200;return He=Ba(He)*zi,Ne=Ba(Ne)*Ji,Ze=Ba(Ze)*en,new Wa(ma(3.2404542*He-1.5371385*Ne-.4985314*Ze),ma(-.969266*He+1.8760108*Ne+.041556*Ze),ma(.0556434*He-.2040259*Ne+1.0572252*Ze))}function Mn(X,se,Te){return X>0?new ar(Math.atan2(Te,se)*vt,Math.sqrt(se*se+Te*Te),X):new ar(NaN,NaN,X)}function Ba(X){return X>.206893034?X*X*X:(X-4/29)/7.787037}function la(X){return X>.008856?Math.pow(X,1/3):7.787037*X+4/29}function ma(X){return Math.round(255*(X<=.00304?12.92*X:1.055*Math.pow(X,1/2.4)-.055))}e.rgb=Wa;function Wa(X,se,Te){return this instanceof Wa?(this.r=~~X,this.g=~~se,void(this.b=~~Te)):arguments.length<2?X instanceof Wa?new Wa(X.r,X.g,X.b):Ga(""+X,Wa,tr):new Wa(X,se,Te)}function Fa(X){return new Wa(X>>16,X>>8&255,X&255)}function Wo(X){return Fa(X)+""}var da=Wa.prototype=new ua;da.brighter=function(X){X=Math.pow(.7,arguments.length?X:1);var se=this.r,Te=this.g,Ne=this.b,He=30;return!se&&!Te&&!Ne?new Wa(He,He,He):(se&&se>4,Ne=Ne>>4|Ne,He=jt&240,He=He>>4|He,Ze=jt&15,Ze=Ze<<4|Ze):X.length===7&&(Ne=(jt&16711680)>>16,He=(jt&65280)>>8,Ze=jt&255)),se(Ne,He,Ze))}function vo(X,se,Te){var Ne=Math.min(X/=255,se/=255,Te/=255),He=Math.max(X,se,Te),Ze=He-Ne,Ct,nt,jt=(He+Ne)/2;return Ze?(nt=jt<.5?Ze/(He+Ne):Ze/(2-He-Ne),X==He?Ct=(se-Te)/Ze+(se0&&jt<1?0:Ct),new Vt(Ct,nt,jt)}function jn(X,se,Te){X=St(X),se=St(se),Te=St(Te);var Ne=la((.4124564*X+.3575761*se+.1804375*Te)/zi),He=la((.2126729*X+.7151522*se+.072175*Te)/Ji),Ze=la((.0193339*X+.119192*se+.9503041*Te)/en);return ri(116*He-16,500*(Ne-He),200*(He-Ze))}function St(X){return(X/=255)<=.04045?X/12.92:Math.pow((X+.055)/1.055,2.4)}function Cr(X){var se=parseFloat(X);return X.charAt(X.length-1)==="%"?Math.round(se*2.55):se}var Qr=e.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Qr.forEach(function(X,se){Qr.set(X,Fa(se))});function pi(X){return typeof X=="function"?X:function(){return X}}e.functor=pi,e.xhr=fn(G);function fn(X){return function(se,Te,Ne){return arguments.length===2&&typeof Te=="function"&&(Ne=Te,Te=null),Sn(se,Te,X,Ne)}}function Sn(X,se,Te,Ne){var He={},Ze=e.dispatch("beforesend","progress","load","error"),Ct={},nt=new XMLHttpRequest,jt=null;self.XDomainRequest&&!("withCredentials"in nt)&&/^(http(s)?:)?\/\//.test(X)&&(nt=new XDomainRequest),"onload"in nt?nt.onload=nt.onerror=gr:nt.onreadystatechange=function(){nt.readyState>3&&gr()};function gr(){var yr=nt.status,Gr;if(!yr&&ki(nt)||yr>=200&&yr<300||yr===304){try{Gr=Te.call(He,nt)}catch(qr){Ze.error.call(He,qr);return}Ze.load.call(He,Gr)}else Ze.error.call(He,nt)}return nt.onprogress=function(yr){var Gr=e.event;e.event=yr;try{Ze.progress.call(He,nt)}finally{e.event=Gr}},He.header=function(yr,Gr){return yr=(yr+"").toLowerCase(),arguments.length<2?Ct[yr]:(Gr==null?delete Ct[yr]:Ct[yr]=Gr+"",He)},He.mimeType=function(yr){return arguments.length?(se=yr==null?null:yr+"",He):se},He.responseType=function(yr){return arguments.length?(jt=yr,He):jt},He.response=function(yr){return Te=yr,He},["get","post"].forEach(function(yr){He[yr]=function(){return He.send.apply(He,[yr].concat(r(arguments)))}}),He.send=function(yr,Gr,qr){if(arguments.length===2&&typeof Gr=="function"&&(qr=Gr,Gr=null),nt.open(yr,X,!0),se!=null&&!("accept"in Ct)&&(Ct.accept=se+",*/*"),nt.setRequestHeader)for(var _i in Ct)nt.setRequestHeader(_i,Ct[_i]);return se!=null&&nt.overrideMimeType&&nt.overrideMimeType(se),jt!=null&&(nt.responseType=jt),qr!=null&&He.on("error",qr).on("load",function(bi){qr(null,bi)}),Ze.beforesend.call(He,nt),nt.send(Gr==null?null:Gr),He},He.abort=function(){return nt.abort(),He},e.rebind(He,Ze,"on"),Ne==null?He:He.get(En(Ne))}function En(X){return X.length===1?function(se,Te){X(se==null?Te:null)}:X}function ki(X){var se=X.responseType;return se&&se!=="text"?X.response:X.responseText}e.dsv=function(X,se){var Te=new RegExp('["'+X+` +]`),Ne=X.charCodeAt(0);function He(gr,yr,Gr){arguments.length<3&&(Gr=yr,yr=null);var qr=Sn(gr,se,yr==null?Ze:Ct(yr),Gr);return qr.row=function(_i){return arguments.length?qr.response((yr=_i)==null?Ze:Ct(_i)):yr},qr}function Ze(gr){return He.parse(gr.responseText)}function Ct(gr){return function(yr){return He.parse(yr.responseText,gr)}}He.parse=function(gr,yr){var Gr;return He.parseRows(gr,function(qr,_i){if(Gr)return Gr(qr,_i-1);var bi=function(Xr){for(var ni={},gi=qr.length,Pi=0;Pi=bi)return qr;if(Pi)return Pi=!1,Gr;var Rn=Xr;if(gr.charCodeAt(Rn)===34){for(var Cn=Rn;Cn++24?(isFinite(se)&&(clearTimeout(Ma),Ma=setTimeout(po,se)),Jn=0):(Jn=1,_o(po))}e.timer.flush=function(){Lo(),Co()};function Lo(){for(var X=Date.now(),se=_n;se;)X>=se.t&&se.c(X-se.t)&&(se.c=null),se=se.n;return X}function Co(){for(var X,se=_n,Te=1/0;se;)se.c?(se.t=0;--nt)Wr.push(He[gr[Vr[nt]][2]]);for(nt=+_i;nt1&&ir(X[Te[Ne-2]],X[Te[Ne-1]],X[He])<=0;)--Ne;Te[Ne++]=He}return Te.slice(0,Ne)}function cl(X,se){return X[0]-se[0]||X[1]-se[1]}e.geom.polygon=function(X){return ie(X,Fl),X};var Fl=e.geom.polygon.prototype=[];Fl.area=function(){for(var X=-1,se=this.length,Te,Ne=this[se-1],He=0;++XQe)nt=nt.L;else if(Et=se-xo(nt,Te),Et>Qe){if(!nt.R){Ne=nt;break}nt=nt.R}else{Ye>-Qe?(Ne=nt.P,He=nt):Et>-Qe?(Ne=nt,He=nt.N):Ne=He=nt;break}var Wt=ws(X);if(Os.insert(Ne,Wt),!(!Ne&&!He)){if(Ne===He){Oo(Ne),He=ws(Ne.site),Os.insert(Wt,He),Wt.edge=He.edge=tf(Ne.site,Wt.site),aa(Ne),aa(He);return}if(!He){Wt.edge=tf(Ne.site,Wt.site);return}Oo(Ne),Oo(He);var gr=Ne.site,yr=gr.x,Vr=gr.y,qr=X.x-yr,_i=X.y-Vr,bi=He.site,Wr=bi.x-yr,ni=bi.y-Vr,pi=2*(qr*ni-_i*Wr),Pi=qr*qr+_i*_i,Ai=Wr*Wr+ni*ni,ti={x:(ni*Pi-_i*Ai)/pi+yr,y:(qr*Ai-Wr*Pi)/pi+Vr};ml(He.edge,gr,bi,ti),Wt.edge=tf(gr,X,null,ti),He.edge=tf(X,bi,null,ti),aa(Ne),aa(He)}}function zl(X,se){var Te=X.site,Ne=Te.x,He=Te.y,Ye=He-se;if(!Ye)return Ne;var Et=X.P;if(!Et)return-1/0;Te=Et.site;var nt=Te.x,Wt=Te.y,gr=Wt-se;if(!gr)return nt;var yr=nt-Ne,Vr=1/Ye-1/gr,qr=yr/gr;return Vr?(-qr+Math.sqrt(qr*qr-2*Vr*(yr*yr/(-2*gr)-Wt+gr/2+He-Ye/2)))/Vr+Ne:(Ne+nt)/2}function xo(X,se){var Te=X.N;if(Te)return zl(Te,se);var Ne=X.site;return Ne.y===se?Ne.x:1/0}function Yl(X){this.site=X,this.edges=[]}Yl.prototype.prepare=function(){for(var X=this.edges,se=X.length,Te;se--;)Te=X[se].edge,(!Te.b||!Te.a)&&X.splice(se,1);return X.sort(Hl),X.length};function Us(X){for(var se=X[0][0],Te=X[1][0],Ne=X[0][1],He=X[1][1],Ye,Et,nt,Wt,gr=Js,yr=gr.length,Vr,qr,_i,bi,Wr,ni;yr--;)if(Vr=gr[yr],!(!Vr||!Vr.prepare()))for(_i=Vr.edges,bi=_i.length,qr=0;qrQe||p(Wt-Et)>Qe)&&(_i.splice(qr,0,new Zc(Nf(Vr.site,ni,p(nt-se)Qe?{x:se,y:p(Ye-se)Qe?{x:p(Et-He)Qe?{x:Te,y:p(Ye-Te)Qe?{x:p(Et-Ne)=-je)){var qr=Wt*Wt+gr*gr,_i=yr*yr+ni*ni,bi=(ni*qr-gr*_i)/Vr,Wr=(Wt*_i-yr*qr)/Vr,ni=Wr+nt,pi=Su.pop()||new ac;pi.arc=X,pi.site=He,pi.x=bi+Et,pi.y=ni+Math.sqrt(bi*bi+Wr*Wr),pi.cy=ni,X.circle=pi;for(var Pi=null,Ai=Zl._;Ai;)if(pi.y0)){if(Wr/=_i,_i<0){if(Wr0){if(Wr>qr)return;Wr>Vr&&(Vr=Wr)}if(Wr=Te-nt,!(!_i&&Wr<0)){if(Wr/=_i,_i<0){if(Wr>qr)return;Wr>Vr&&(Vr=Wr)}else if(_i>0){if(Wr0)){if(Wr/=bi,bi<0){if(Wr0){if(Wr>qr)return;Wr>Vr&&(Vr=Wr)}if(Wr=Ne-Wt,!(!bi&&Wr<0)){if(Wr/=bi,bi<0){if(Wr>qr)return;Wr>Vr&&(Vr=Wr)}else if(bi>0){if(Wr0&&(He.a={x:nt+Vr*_i,y:Wt+Vr*bi}),qr<1&&(He.b={x:nt+qr*_i,y:Wt+qr*bi}),He}}}}}}function Ol(X){for(var se=fl,Te=qo(X[0][0],X[0][1],X[1][0],X[1][1]),Ne=se.length,He;Ne--;)He=se[Ne],(!Pc(He,X)||!Te(He)||p(He.a.x-He.b.x)=Ye)return;if(yr>qr){if(!Ne)Ne={x:bi,y:Et};else if(Ne.y>=nt)return;Te={x:bi,y:nt}}else{if(!Ne)Ne={x:bi,y:nt};else if(Ne.y1)if(yr>qr){if(!Ne)Ne={x:(Et-pi)/ni,y:Et};else if(Ne.y>=nt)return;Te={x:(nt-pi)/ni,y:nt}}else{if(!Ne)Ne={x:(nt-pi)/ni,y:nt};else if(Ne.y=Ye)return;Te={x:Ye,y:ni*Ye+pi}}else{if(!Ne)Ne={x:Ye,y:ni*Ye+pi};else if(Ne.x=yr&&pi.x<=qr&&pi.y>=Vr&&pi.y<=_i?[[yr,_i],[qr,_i],[qr,Vr],[yr,Vr]]:[];Pi.point=Wt[Wr]}),gr}function nt(Wt){return Wt.map(function(gr,yr){return{x:Math.round(Ne(gr,yr)/Qe)*Qe,y:Math.round(He(gr,yr)/Qe)*Qe,i:yr}})}return Et.links=function(Wt){return sc(nt(Wt)).edges.filter(function(gr){return gr.l&&gr.r}).map(function(gr){return{source:Wt[gr.l.i],target:Wt[gr.r.i]}})},Et.triangles=function(Wt){var gr=[];return sc(nt(Wt)).cells.forEach(function(yr,Vr){for(var qr=yr.site,_i=yr.edges.sort(Hl),bi=-1,Wr=_i.length,ni,pi,Pi=_i[Wr-1].edge,Ai=Pi.l===qr?Pi.r:Pi.l;++biAi&&(Ai=yr.x),yr.y>ti&&(ti=yr.y),_i.push(yr.x),bi.push(yr.y);else for(Wr=0;WrAi&&(Ai=In),Cn>ti&&(ti=Cn),_i.push(In),bi.push(Cn)}var Nn=Ai-pi,ia=ti-Pi;Nn>ia?ti=Pi+Nn:Ai=pi+ia;function Ea(Da,go,Rs,Es,Zs,Gn,Ha,Fo){if(!(isNaN(Rs)||isNaN(Es)))if(Da.leaf){var Uo=Da.x,Qs=Da.y;if(Uo!=null)if(p(Uo-Rs)+p(Qs-Es)<.01)Ia(Da,go,Rs,Es,Zs,Gn,Ha,Fo);else{var Sl=Da.point;Da.x=Da.y=Da.point=null,Ia(Da,Sl,Uo,Qs,Zs,Gn,Ha,Fo),Ia(Da,go,Rs,Es,Zs,Gn,Ha,Fo)}else Da.x=Rs,Da.y=Es,Da.point=go}else Ia(Da,go,Rs,Es,Zs,Gn,Ha,Fo)}function Ia(Da,go,Rs,Es,Zs,Gn,Ha,Fo){var Uo=(Zs+Ha)*.5,Qs=(Gn+Fo)*.5,Sl=Rs>=Uo,bu=Es>=Qs,vl=bu<<1|Sl;Da.leaf=!1,Da=Da.nodes[vl]||(Da.nodes[vl]=Jl()),Sl?Zs=Uo:Ha=Uo,bu?Gn=Qs:Fo=Qs,Ea(Da,go,Rs,Es,Zs,Gn,Ha,Fo)}var yo=Jl();if(yo.add=function(Da){Ea(yo,Da,+Vr(Da,++Wr),+qr(Da,Wr),pi,Pi,Ai,ti)},yo.visit=function(Da){hl(Da,yo,pi,Pi,Ai,ti)},yo.find=function(Da){return lc(yo,Da[0],Da[1],pi,Pi,Ai,ti)},Wr=-1,se==null){for(;++WrYe||qr>Et||_i=In,ia=Te>=Cn,Ea=ia<<1|Nn,Ia=Ea+4;EaTe&&(Ye=se.slice(Te,Ye),nt[Et]?nt[Et]+=Ye:nt[++Et]=Ye),(Ne=Ne[0])===(He=He[0])?nt[Et]?nt[Et]+=He:nt[++Et]=He:(nt[++Et]=null,Wt.push({i:Et,x:js(Ne,He)})),Te=uc.lastIndex;return Te=0&&!(Ne=e.interpolators[Te](X,se)););return Ne}e.interpolators=[function(X,se){var Te=typeof se;return(Te==="string"?Qr.has(se.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(se)?Fu:Go:se instanceof ua?Fu:Array.isArray(se)?Gu:Te==="object"&&isNaN(se)?Cs:js)(X,se)}],e.interpolateArray=Gu;function Gu(X,se){var Te=[],Ne=[],He=X.length,Ye=se.length,Et=Math.min(X.length,se.length),nt;for(nt=0;nt=0?X.slice(0,se):X,Ne=se>=0?X.slice(se+1):"in";return Te=ad.get(Te)||Bs,Ne=Po.get(Ne)||G,od(Ne(Te.apply(null,t.call(arguments,1))))};function od(X){return function(se){return se<=0?0:se>=1?1:X(se)}}function Yo(X){return function(se){return 1-X(1-se)}}function Pa(X){return function(se){return .5*(se<.5?X(2*se):2-X(2-2*se))}}function nf(X){return X*X}function Hu(X){return X*X*X}function bl(X){if(X<=0)return 0;if(X>=1)return 1;var se=X*X,Te=se*X;return 4*(X<.5?Te:3*(X-se)+Te-.75)}function Vf(X){return function(se){return Math.pow(se,X)}}function Ic(X){return 1-Math.cos(X*xe)}function gf(X){return Math.pow(2,10*(X-1))}function ql(X){return 1-Math.sqrt(1-X*X)}function _h(X,se){var Te;return arguments.length<2&&(se=.45),arguments.length?Te=se/xt*Math.asin(1/X):(X=1,Te=se/4),function(Ne){return 1+X*Math.pow(2,-10*Ne)*Math.sin((Ne-Te)*xt/se)}}function Qf(X){return X||(X=1.70158),function(se){return se*se*((X+1)*se-X)}}function mf(X){return X<1/2.75?7.5625*X*X:X<2/2.75?7.5625*(X-=1.5/2.75)*X+.75:X<2.5/2.75?7.5625*(X-=2.25/2.75)*X+.9375:7.5625*(X-=2.625/2.75)*X+.984375}e.interpolateHcl=Yc;function Yc(X,se){X=e.hcl(X),se=e.hcl(se);var Te=X.h,Ne=X.c,He=X.l,Ye=se.h-Te,Et=se.c-Ne,nt=se.l-He;return isNaN(Et)&&(Et=0,Ne=isNaN(Ne)?se.c:Ne),isNaN(Ye)?(Ye=0,Te=isNaN(Te)?se.h:Te):Ye>180?Ye-=360:Ye<-180&&(Ye+=360),function(Wt){return Xr(Te+Ye*Wt,Ne+Et*Wt,He+nt*Wt)+""}}e.interpolateHsl=eh;function eh(X,se){X=e.hsl(X),se=e.hsl(se);var Te=X.h,Ne=X.s,He=X.l,Ye=se.h-Te,Et=se.s-Ne,nt=se.l-He;return isNaN(Et)&&(Et=0,Ne=isNaN(Ne)?se.s:Ne),isNaN(Ye)?(Ye=0,Te=isNaN(Te)?se.h:Te):Ye>180?Ye-=360:Ye<-180&&(Ye+=360),function(Wt){return er(Te+Ye*Wt,Ne+Et*Wt,He+nt*Wt)+""}}e.interpolateLab=th;function th(X,se){X=e.lab(X),se=e.lab(se);var Te=X.l,Ne=X.a,He=X.b,Ye=se.l-Te,Et=se.a-Ne,nt=se.b-He;return function(Wt){return yn(Te+Ye*Wt,Ne+Et*Wt,He+nt*Wt)+""}}e.interpolateRound=ju;function ju(X,se){return se-=X,function(Te){return Math.round(X+se*Te)}}e.transform=function(X){var se=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(Te){if(Te!=null){se.setAttribute("transform",Te);var Ne=se.transform.baseVal.consolidate()}return new Gf(Ne?Ne.matrix:Kc)})(X)};function Gf(X){var se=[X.a,X.b],Te=[X.c,X.d],Ne=af(se),He=cc(se,Te),Ye=af(Bl(Te,se,-He))||0;se[0]*Te[1]180?se+=360:se-X>180&&(X+=360),Ne.push({i:Te.push(Rc(Te)+"rotate(",null,")")-2,x:js(X,se)})):se&&Te.push(Rc(Te)+"rotate("+se+")")}function Uh(X,se,Te,Ne){X!==se?Ne.push({i:Te.push(Rc(Te)+"skewX(",null,")")-2,x:js(X,se)}):se&&Te.push(Rc(Te)+"skewX("+se+")")}function rh(X,se,Te,Ne){if(X[0]!==se[0]||X[1]!==se[1]){var He=Te.push(Rc(Te)+"scale(",null,",",null,")");Ne.push({i:He-4,x:js(X[0],se[0])},{i:He-2,x:js(X[1],se[1])})}else(se[0]!==1||se[1]!==1)&&Te.push(Rc(Te)+"scale("+se+")")}function of(X,se){var Te=[],Ne=[];return X=e.transform(X),se=e.transform(se),ms(X.translate,se.translate,Te,Ne),Hf(X.rotate,se.rotate,Te,Ne),Uh(X.skew,se.skew,Te,Ne),rh(X.scale,se.scale,Te,Ne),X=se=null,function(He){for(var Ye=-1,Et=Ne.length,nt;++Ye0?Ye=ti:(Te.c=null,Te.t=NaN,Te=null,se.end({type:"end",alpha:Ye=0})):ti>0&&(se.start({type:"start",alpha:Ye=ti}),Te=No(X.tick)),X):Ye},X.start=function(){var ti,In=_i.length,Cn=bi.length,Nn=Ne[0],ia=Ne[1],Ea,Ia;for(ti=0;ti=0;)Ye.push(yr=gr[Wt]),yr.parent=nt,yr.depth=nt.depth+1;Te&&(nt.value=0),nt.children=gr}else Te&&(nt.value=+Te.call(Ne,nt,nt.depth)||0),delete nt.children;return wc(He,function(Vr){var qr,_i;X&&(qr=Vr.children)&&qr.sort(X),Te&&(_i=Vr.parent)&&(_i.value+=Vr.value)}),Et}return Ne.sort=function(He){return arguments.length?(X=He,Ne):X},Ne.children=function(He){return arguments.length?(se=He,Ne):se},Ne.value=function(He){return arguments.length?(Te=He,Ne):Te},Ne.revalue=function(He){return Te&&(Fc(He,function(Ye){Ye.children&&(Ye.value=0)}),wc(He,function(Ye){var Et;Ye.children||(Ye.value=+Te.call(Ne,Ye,Ye.depth)||0),(Et=Ye.parent)&&(Et.value+=Ye.value)})),He},Ne};function zu(X,se){return e.rebind(X,se,"sort","children","value"),X.nodes=X,X.links=Ou,X}function Fc(X,se){for(var Te=[X];(X=Te.pop())!=null;)if(se(X),(He=X.children)&&(Ne=He.length))for(var Ne,He;--Ne>=0;)Te.push(He[Ne])}function wc(X,se){for(var Te=[X],Ne=[];(X=Te.pop())!=null;)if(Ne.push(X),(Et=X.children)&&(Ye=Et.length))for(var He=-1,Ye,Et;++HeHe&&(He=nt),Ne.push(nt)}for(Et=0;EtNe&&(Te=se,Ne=He);return Te}function Vs(X){return X.reduce(xf,0)}function xf(X,se){return X+se[1]}e.layout.histogram=function(){var X=!0,se=Number,Te=If,Ne=zc;function He(Ye,qr){for(var nt=[],Wt=Ye.map(se,this),gr=Te.call(this,Wt,qr),yr=Ne.call(this,gr,Wt,qr),Vr,qr=-1,_i=Wt.length,bi=yr.length-1,Wr=X?1:1/_i,ni;++qr0)for(qr=-1;++qr<_i;)ni=Wt[qr],ni>=gr[0]&&ni<=gr[1]&&(Vr=nt[e.bisect(yr,ni,1,bi)-1],Vr.y+=Wr,Vr.push(Ye[qr]));return nt}return He.value=function(Ye){return arguments.length?(se=Ye,He):se},He.range=function(Ye){return arguments.length?(Te=di(Ye),He):Te},He.bins=function(Ye){return arguments.length?(Ne=typeof Ye=="number"?function(Et){return Wu(Et,Ye)}:di(Ye),He):Ne},He.frequency=function(Ye){return arguments.length?(X=!!Ye,He):X},He};function zc(X,se){return Wu(X,Math.ceil(Math.log(se.length)/Math.LN2+1))}function Wu(X,se){for(var Te=-1,Ne=+X[0],He=(X[1]-Ne)/se,Ye=[];++Te<=se;)Ye[Te]=He*Te+Ne;return Ye}function If(X){return[e.min(X),e.max(X)]}e.layout.pack=function(){var X=e.layout.hierarchy().sort(Xu),se=0,Te=[1,1],Ne;function He(Ye,Et){var nt=X.call(this,Ye,Et),Wt=nt[0],gr=Te[0],yr=Te[1],Vr=Ne==null?Math.sqrt:typeof Ne=="function"?Ne:function(){return Ne};if(Wt.x=Wt.y=0,wc(Wt,function(_i){_i.r=+Vr(_i.value)}),wc(Wt,ah),se){var qr=se*(Ne?1:Math.max(2*Wt.r/gr,2*Wt.r/yr))/2;wc(Wt,function(_i){_i.r+=qr}),wc(Wt,ah),wc(Wt,function(_i){_i.r-=qr})}return Tc(Wt,gr/2,yr/2,Ne?1:1/Math.max(2*Wt.r/gr,2*Wt.r/yr)),nt}return He.size=function(Ye){return arguments.length?(Te=Ye,He):Te},He.radius=function(Ye){return arguments.length?(Ne=Ye==null||typeof Ye=="function"?Ye:+Ye,He):Ne},He.padding=function(Ye){return arguments.length?(se=+Ye,He):se},zu(He,X)};function Xu(X,se){return X.value-se.value}function lf(X,se){var Te=X._pack_next;X._pack_next=se,se._pack_prev=X,se._pack_next=Te,Te._pack_prev=se}function Wf(X,se){X._pack_next=se,se._pack_prev=X}function Wl(X,se){var Te=se.x-X.x,Ne=se.y-X.y,He=X.r+se.r;return .999*He*He>Te*Te+Ne*Ne}function ah(X){if(!(se=X.children)||!(qr=se.length))return;var se,Te=1/0,Ne=-1/0,He=1/0,Ye=-1/0,Et,nt,Wt,gr,yr,Vr,qr;function _i(ti){Te=Math.min(ti.x-ti.r,Te),Ne=Math.max(ti.x+ti.r,Ne),He=Math.min(ti.y-ti.r,He),Ye=Math.max(ti.y+ti.r,Ye)}if(se.forEach(Zu),Et=se[0],Et.x=-Et.r,Et.y=0,_i(Et),qr>1&&(nt=se[1],nt.x=nt.r,nt.y=0,_i(nt),qr>2))for(Wt=se[2],wl(Et,nt,Wt),_i(Wt),lf(Et,Wt),Et._pack_prev=Wt,lf(Wt,nt),nt=Et._pack_next,gr=3;grni.x&&(ni=In),In.depth>pi.depth&&(pi=In)});var Pi=se(Wr,ni)/2-Wr.x,Ai=Te[0]/(ni.x+se(ni,Wr)/2+Pi),ti=Te[1]/(pi.depth||1);Fc(_i,function(In){In.x=(In.x+Pi)*Ai,In.y=In.depth*ti})}return qr}function Ye(yr){for(var Vr={A:null,children:[yr]},qr=[Vr],_i;(_i=qr.pop())!=null;)for(var bi=_i.children,Wr,ni=0,pi=bi.length;ni0&&(fc(Tt(Wr,yr,qr),yr,In),pi+=In,Pi+=In),Ai+=Wr.m,pi+=_i.m,ti+=ni.m,Pi+=bi.m;Wr&&!uf(bi)&&(bi.t=Wr,bi.m+=Ai-Pi),_i&&!qc(ni)&&(ni.t=_i,ni.m+=pi-ti,qr=yr)}return qr}function gr(yr){yr.x*=Te[0],yr.y=yr.depth*Te[1]}return He.separation=function(yr){return arguments.length?(se=yr,He):se},He.size=function(yr){return arguments.length?(Ne=(Te=yr)==null?gr:null,He):Ne?null:Te},He.nodeSize=function(yr){return arguments.length?(Ne=(Te=yr)==null?null:gr,He):Ne?Te:null},zu(He,X)};function pu(X,se){return X.parent==se.parent?1:2}function qc(X){var se=X.children;return se.length?se[0]:X.t}function uf(X){var se=X.children,Te;return(Te=se.length)?se[Te-1]:X.t}function fc(X,se,Te){var Ne=Te/(se.i-X.i);se.c-=Ne,se.s+=Te,X.c+=Ne,se.z+=Te,se.m+=Te}function Bc(X){for(var se=0,Te=0,Ne=X.children,He=Ne.length,Ye;--He>=0;)Ye=Ne[He],Ye.z+=se,Ye.m+=se,se+=Ye.s+(Te+=Ye.c)}function Tt(X,se,Te){return X.a.parent===se.parent?X.a:Te}e.layout.cluster=function(){var X=e.layout.hierarchy().sort(null).value(null),se=pu,Te=[1,1],Ne=!1;function He(Ye,Et){var nt=X.call(this,Ye,Et),Wt=nt[0],gr,yr=0;wc(Wt,function(Wr){var ni=Wr.children;ni&&ni.length?(Wr.x=Lr(ni),Wr.y=Xt(ni)):(Wr.x=gr?yr+=se(Wr,gr):0,Wr.y=0,gr=Wr)});var Vr=Ar(Wt),qr=Jr(Wt),_i=Vr.x-se(Vr,qr)/2,bi=qr.x+se(qr,Vr)/2;return wc(Wt,Ne?function(Wr){Wr.x=(Wr.x-Wt.x)*Te[0],Wr.y=(Wt.y-Wr.y)*Te[1]}:function(Wr){Wr.x=(Wr.x-_i)/(bi-_i)*Te[0],Wr.y=(1-(Wt.y?Wr.y/Wt.y:1))*Te[1]}),nt}return He.separation=function(Ye){return arguments.length?(se=Ye,He):se},He.size=function(Ye){return arguments.length?(Ne=(Te=Ye)==null,He):Ne?null:Te},He.nodeSize=function(Ye){return arguments.length?(Ne=(Te=Ye)!=null,He):Ne?Te:null},zu(He,X)};function Xt(X){return 1+e.max(X,function(se){return se.y})}function Lr(X){return X.reduce(function(se,Te){return se+Te.x},0)/X.length}function Ar(X){var se=X.children;return se&&se.length?Ar(se[0]):X}function Jr(X){var se=X.children,Te;return se&&(Te=se.length)?Jr(se[Te-1]):X}e.layout.treemap=function(){var X=e.layout.hierarchy(),se=Math.round,Te=[1,1],Ne=null,He=Ei,Ye=!1,Et,nt="squarify",Wt=.5*(1+Math.sqrt(5));function gr(Wr,ni){for(var pi=-1,Pi=Wr.length,Ai,ti;++pi0;)Pi.push(ti=Ai[ia-1]),Pi.area+=ti.area,nt!=="squarify"||(Cn=qr(Pi,Nn))<=In?(Ai.pop(),In=Cn):(Pi.area-=Pi.pop().area,_i(Pi,Nn,pi,!1),Nn=Math.min(pi.dx,pi.dy),Pi.length=Pi.area=0,In=1/0);Pi.length&&(_i(Pi,Nn,pi,!0),Pi.length=Pi.area=0),ni.forEach(yr)}}function Vr(Wr){var ni=Wr.children;if(ni&&ni.length){var pi=He(Wr),Pi=ni.slice(),Ai,ti=[];for(gr(Pi,pi.dx*pi.dy/Wr.value),ti.area=0;Ai=Pi.pop();)ti.push(Ai),ti.area+=Ai.area,Ai.z!=null&&(_i(ti,Ai.z?pi.dx:pi.dy,pi,!Pi.length),ti.length=ti.area=0);ni.forEach(Vr)}}function qr(Wr,ni){for(var pi=Wr.area,Pi,Ai=0,ti=1/0,In=-1,Cn=Wr.length;++InAi&&(Ai=Pi));return pi*=pi,ni*=ni,pi?Math.max(ni*Ai*Wt/pi,pi/(ni*ti*Wt)):1/0}function _i(Wr,ni,pi,Pi){var Ai=-1,ti=Wr.length,In=pi.x,Cn=pi.y,Nn=ni?se(Wr.area/ni):0,ia;if(ni==pi.dx){for((Pi||Nn>pi.dy)&&(Nn=pi.dy);++Aipi.dx)&&(Nn=pi.dx);++Ai1);return X+se*Ne*Math.sqrt(-2*Math.log(Ye)/Ye)}},logNormal:function(){var X=e.random.normal.apply(e,arguments);return function(){return Math.exp(X())}},bates:function(X){var se=e.random.irwinHall(X);return function(){return se()/X}},irwinHall:function(X){return function(){for(var se=0,Te=0;Te2?Di:Bn,gr=Ne?Mu:xh;return He=Wt(X,se,gr,Te),Ye=Wt(se,X,gr,xl),nt}function nt(Wt){return He(Wt)}return nt.invert=function(Wt){return Ye(Wt)},nt.domain=function(Wt){return arguments.length?(X=Wt.map(Number),Et()):X},nt.range=function(Wt){return arguments.length?(se=Wt,Et()):se},nt.rangeRound=function(Wt){return nt.range(Wt).interpolate(ju)},nt.clamp=function(Wt){return arguments.length?(Ne=Wt,Et()):Ne},nt.interpolate=function(Wt){return arguments.length?(Te=Wt,Et()):Te},nt.ticks=function(Wt){return Na(X,Wt)},nt.tickFormat=function(Wt,gr){return d3_scale_linearTickFormat(X,Wt,gr)},nt.nice=function(Wt){return Ra(X,Wt),Et()},nt.copy=function(){return $n(X,se,Te,Ne)},Et()}function ka(X,se){return e.rebind(X,se,"range","rangeRound","interpolate","clamp")}function Ra(X,se){return Zi(X,$i(La(X,se)[2])),Zi(X,$i(La(X,se)[2])),X}function La(X,se){se==null&&(se=10);var Te=hn(X),Ne=Te[1]-Te[0],He=Math.pow(10,Math.floor(Math.log(Ne/se)/Math.LN10)),Ye=se/Ne*He;return Ye<=.15?He*=10:Ye<=.35?He*=5:Ye<=.75&&(He*=2),Te[0]=Math.ceil(Te[0]/He)*He,Te[1]=Math.floor(Te[1]/He)*He+He*.5,Te[2]=He,Te}function Na(X,se){return e.range.apply(e,La(X,se))}var Yn={s:1,g:1,p:1,r:1,e:1};function zn(X){return-Math.floor(Math.log(X)/Math.LN10+.01)}function Ka(X,se){var Te=zn(se[2]);return X in Yn?Math.abs(Te-zn(Math.max(p(se[0]),p(se[1]))))+ +(X!=="e"):Te-(X==="%")*2}e.scale.log=function(){return bo(e.scale.linear().domain([0,1]),10,!0,[1,10])};function bo(X,se,Te,Ne){function He(nt){return(Te?Math.log(nt<0?0:nt):-Math.log(nt>0?0:-nt))/Math.log(se)}function Ye(nt){return Te?Math.pow(se,nt):-Math.pow(se,-nt)}function Et(nt){return X(He(nt))}return Et.invert=function(nt){return Ye(X.invert(nt))},Et.domain=function(nt){return arguments.length?(Te=nt[0]>=0,X.domain((Ne=nt.map(Number)).map(He)),Et):Ne},Et.base=function(nt){return arguments.length?(se=+nt,X.domain(Ne.map(He)),Et):se},Et.nice=function(){var nt=Zi(Ne.map(He),Te?Math:Xo);return X.domain(nt),Ne=nt.map(Ye),Et},Et.ticks=function(){var nt=hn(Ne),Wt=[],gr=nt[0],yr=nt[1],Vr=Math.floor(He(gr)),qr=Math.ceil(He(yr)),_i=se%1?2:se;if(isFinite(qr-Vr)){if(Te){for(;Vr0;bi--)Wt.push(Ye(Vr)*bi);for(Vr=0;Wt[Vr]yr;qr--);Wt=Wt.slice(Vr,qr)}return Wt},Et.copy=function(){return bo(X.copy(),se,Te,Ne)},ka(Et,X)}var Xo={floor:function(X){return-Math.ceil(-X)},ceil:function(X){return-Math.floor(-X)}};e.scale.pow=function(){return Ms(e.scale.linear(),1,[0,1])};function Ms(X,se,Te){var Ne=os(se),He=os(1/se);function Ye(Et){return X(Ne(Et))}return Ye.invert=function(Et){return He(X.invert(Et))},Ye.domain=function(Et){return arguments.length?(X.domain((Te=Et.map(Number)).map(Ne)),Ye):Te},Ye.ticks=function(Et){return Na(Te,Et)},Ye.tickFormat=function(Et,nt){return d3_scale_linearTickFormat(Te,Et,nt)},Ye.nice=function(Et){return Ye.domain(Ra(Te,Et))},Ye.exponent=function(Et){return arguments.length?(Ne=os(se=Et),He=os(1/se),X.domain(Te.map(Ne)),Ye):se},Ye.copy=function(){return Ms(X.copy(),se,Te)},ka(Ye,X)}function os(X){return function(se){return se<0?-Math.pow(-se,X):Math.pow(se,X)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Ts([],{t:"range",a:[[]]})};function Ts(X,se){var Te,Ne,He;function Ye(nt){return Ne[((Te.get(nt)||(se.t==="range"?Te.set(nt,X.push(nt)):NaN))-1)%Ne.length]}function Et(nt,Wt){return e.range(X.length).map(function(gr){return nt+Wt*gr})}return Ye.domain=function(nt){if(!arguments.length)return X;X=[],Te=new A;for(var Wt=-1,gr=nt.length,yr;++Wt0?Te[Ye-1]:X[0],Yeqr?0:1;if(yr=Ie)return Wt(yr,bi)+(gr?Wt(gr,1-bi):"")+"Z";var Wr,ni,pi,Pi,Ai=0,ti=0,In,Cn,Nn,ia,Ea,Ia,yo,Da,go=[];if((Pi=(+Et.apply(this,arguments)||0)/2)&&(pi=Ne===ku?Math.sqrt(gr*gr+yr*yr):+Ne.apply(this,arguments),bi||(ti*=-1),yr&&(ti=si(pi/yr*Math.sin(Pi))),gr&&(Ai=si(pi/gr*Math.sin(Pi)))),yr){In=yr*Math.cos(Vr+ti),Cn=yr*Math.sin(Vr+ti),Nn=yr*Math.cos(qr-ti),ia=yr*Math.sin(qr-ti);var Rs=Math.abs(qr-Vr-2*ti)<=Je?0:1;if(ti&&Ac(In,Cn,Nn,ia)===bi^Rs){var Es=(Vr+qr)/2;In=yr*Math.cos(Es),Cn=yr*Math.sin(Es),Nn=ia=null}}else In=Cn=0;if(gr){Ea=gr*Math.cos(qr-Ai),Ia=gr*Math.sin(qr-Ai),yo=gr*Math.cos(Vr+Ai),Da=gr*Math.sin(Vr+Ai);var Zs=Math.abs(Vr-qr+2*Ai)<=Je?0:1;if(Ai&&Ac(Ea,Ia,yo,Da)===1-bi^Zs){var Gn=(Vr+qr)/2;Ea=gr*Math.cos(Gn),Ia=gr*Math.sin(Gn),yo=Da=null}}else Ea=Ia=0;if(_i>Qe&&(Wr=Math.min(Math.abs(yr-gr)/2,+Te.apply(this,arguments)))>.001){ni=gr0?0:1}function Ua(X,se,Te,Ne,He){var Ye=X[0]-se[0],Et=X[1]-se[1],nt=(He?Ne:-Ne)/Math.sqrt(Ye*Ye+Et*Et),Wt=nt*Et,gr=-nt*Ye,yr=X[0]+Wt,Vr=X[1]+gr,qr=se[0]+Wt,_i=se[1]+gr,bi=(yr+qr)/2,Wr=(Vr+_i)/2,ni=qr-yr,pi=_i-Vr,Pi=ni*ni+pi*pi,Ai=Te-Ne,ti=yr*_i-qr*Vr,In=(pi<0?-1:1)*Math.sqrt(Math.max(0,Ai*Ai*Pi-ti*ti)),Cn=(ti*pi-ni*In)/Pi,Nn=(-ti*ni-pi*In)/Pi,ia=(ti*pi+ni*In)/Pi,Ea=(-ti*ni+pi*In)/Pi,Ia=Cn-bi,yo=Nn-Wr,Da=ia-bi,go=Ea-Wr;return Ia*Ia+yo*yo>Da*Da+go*go&&(Cn=ia,Nn=Ea),[[Cn-Wt,Nn-gr],[Cn*Te/Ai,Nn*Te/Ai]]}function oo(){return!0}function Vc(X){var se=Fs,Te=zs,Ne=oo,He=Ku,Ye=He.key,Et=.7;function nt(Wt){var gr=[],yr=[],Vr=-1,qr=Wt.length,_i,bi=di(se),Wr=di(Te);function ni(){gr.push("M",He(X(yr),Et))}for(;++Vr1?X.join("L"):X+"Z"}function ue(X){return X.join("L")+"Z"}function w(X){for(var se=0,Te=X.length,Ne=X[0],He=[Ne[0],",",Ne[1]];++se1&&He.push("H",Ne[0]),He.join("")}function B(X){for(var se=0,Te=X.length,Ne=X[0],He=[Ne[0],",",Ne[1]];++se1){nt=se[1],Ye=X[Wt],Wt++,Ne+="C"+(He[0]+Et[0])+","+(He[1]+Et[1])+","+(Ye[0]-nt[0])+","+(Ye[1]-nt[1])+","+Ye[0]+","+Ye[1];for(var gr=2;gr9&&(Ye=Te*3/Math.sqrt(Ye),Et[nt]=Ye*Ne,Et[nt+1]=Ye*He));for(nt=-1;++nt<=Wt;)Ye=(X[Math.min(Wt,nt+1)][0]-X[Math.max(0,nt-1)][0])/(6*(1+Et[nt]*Et[nt])),se.push([Ye||0,Et[nt]*Ye||0]);return se}function Ft(X){return X.length<3?Ku(X):X[0]+Xe(X,it(X))}e.svg.line.radial=function(){var X=Vc(jt);return X.radius=X.x,delete X.x,X.angle=X.y,delete X.y,X};function jt(X){for(var se,Te=-1,Ne=X.length,He,Ye;++TeJe)+",1 "+Vr}function gr(yr,Vr,qr,_i){return"Q 0,0 "+_i}return Ye.radius=function(yr){return arguments.length?(Te=di(yr),Ye):Te},Ye.source=function(yr){return arguments.length?(X=di(yr),Ye):X},Ye.target=function(yr){return arguments.length?(se=di(yr),Ye):se},Ye.startAngle=function(yr){return arguments.length?(Ne=di(yr),Ye):Ne},Ye.endAngle=function(yr){return arguments.length?(He=di(yr),Ye):He},Ye};function Or(X){return X.radius}e.svg.diagonal=function(){var X=dr,se=Sr,Te=jr;function Ne(He,Ye){var Et=X.call(this,He,Ye),nt=se.call(this,He,Ye),Wt=(Et.y+nt.y)/2,gr=[Et,{x:Et.x,y:Wt},{x:nt.x,y:Wt},nt];return gr=gr.map(Te),"M"+gr[0]+"C"+gr[1]+" "+gr[2]+" "+gr[3]}return Ne.source=function(He){return arguments.length?(X=di(He),Ne):X},Ne.target=function(He){return arguments.length?(se=di(He),Ne):se},Ne.projection=function(He){return arguments.length?(Te=He,Ne):Te},Ne};function jr(X){return[X.x,X.y]}e.svg.diagonal.radial=function(){var X=e.svg.diagonal(),se=jr,Te=X.projection;return X.projection=function(Ne){return arguments.length?Te(ii(se=Ne)):se},X};function ii(X){return function(){var se=X.apply(this,arguments),Te=se[0],Ne=se[1]-xe;return[Te*Math.cos(Ne),Te*Math.sin(Ne)]}}e.svg.symbol=function(){var X=un,se=Li;function Te(Ne,He){return(Pn.get(X.call(this,Ne,He))||sn)(se.call(this,Ne,He))}return Te.type=function(Ne){return arguments.length?(X=di(Ne),Te):X},Te.size=function(Ne){return arguments.length?(se=di(Ne),Te):se},Te};function Li(){return 64}function un(){return"circle"}function sn(X){var se=Math.sqrt(X/Je);return"M0,"+se+"A"+se+","+se+" 0 1,1 0,"+-se+"A"+se+","+se+" 0 1,1 0,"+se+"Z"}var Pn=e.map({circle:sn,cross:function(X){var se=Math.sqrt(X/5)/2;return"M"+-3*se+","+-se+"H"+-se+"V"+-3*se+"H"+se+"V"+-se+"H"+3*se+"V"+se+"H"+se+"V"+3*se+"H"+-se+"V"+se+"H"+-3*se+"Z"},diamond:function(X){var se=Math.sqrt(X/(2*Aa)),Te=se*Aa;return"M0,"+-se+"L"+Te+",0 0,"+se+" "+-Te+",0Z"},square:function(X){var se=Math.sqrt(X)/2;return"M"+-se+","+-se+"L"+se+","+-se+" "+se+","+se+" "+-se+","+se+"Z"},"triangle-down":function(X){var se=Math.sqrt(X/Kn),Te=se*Kn/2;return"M0,"+Te+"L"+se+","+-Te+" "+-se+","+-Te+"Z"},"triangle-up":function(X){var se=Math.sqrt(X/Kn),Te=se*Kn/2;return"M0,"+-Te+"L"+se+","+Te+" "+-se+","+Te+"Z"}});e.svg.symbolTypes=Pn.keys();var Kn=Math.sqrt(3),Aa=Math.tan(30*Ce);Pe.transition=function(X){for(var se=Bo||++mo,Te=To(X),Ne=[],He,Ye,Et=Is||{time:Date.now(),ease:bl,delay:0,duration:250},nt=-1,Wt=this.length;++nt0;)Vr[--Pi].call(X,pi);if(ni>=1)return Et.event&&Et.event.end.call(X,X.__data__,se),--Ye.count?delete Ye[Ne]:delete X[Te],1}Et||(nt=He.time,Wt=No(qr,0,nt),Et=Ye[Ne]={tween:new A,time:nt,timer:Wt,delay:He.delay,duration:He.duration,ease:He.ease,index:se},He=null,++Ye.count)}e.svg.axis=function(){var X=e.scale.linear(),se=Nl,Te=6,Ne=6,He=3,Ye=[10],Et=null,nt;function Wt(gr){gr.each(function(){var yr=e.select(this),Vr=this.__chart__||X,qr=this.__chart__=X.copy(),_i=Et==null?qr.ticks?qr.ticks.apply(qr,Ye):qr.domain():Et,bi=nt==null?qr.tickFormat?qr.tickFormat.apply(qr,Ye):G:nt,Wr=yr.selectAll(".tick").data(_i,qr),ni=Wr.enter().insert("g",".domain").attr("class","tick").style("opacity",Qe),pi=e.transition(Wr.exit()).style("opacity",Qe).remove(),Pi=e.transition(Wr.order()).style("opacity",1),Ai=Math.max(Te,0)+He,ti,In=Tn(qr),Cn=yr.selectAll(".domain").data([0]),Nn=(Cn.enter().append("path").attr("class","domain"),e.transition(Cn));ni.append("line"),ni.append("text");var ia=ni.select("line"),Ea=Pi.select("line"),Ia=Wr.select("text").text(bi),yo=ni.select("text"),Da=Pi.select("text"),go=se==="top"||se==="left"?-1:1,Rs,Es,Zs,Gn;if(se==="bottom"||se==="top"?(ti=ou,Rs="x",Zs="y",Es="x2",Gn="y2",Ia.attr("dy",go<0?"0em":".71em").style("text-anchor","middle"),Nn.attr("d","M"+In[0]+","+go*Ne+"V0H"+In[1]+"V"+go*Ne)):(ti=$s,Rs="y",Zs="x",Es="y2",Gn="x2",Ia.attr("dy",".32em").style("text-anchor",go<0?"end":"start"),Nn.attr("d","M"+go*Ne+","+In[0]+"H0V"+In[1]+"H"+go*Ne)),ia.attr(Gn,go*Te),yo.attr(Zs,go*Ai),Ea.attr(Es,0).attr(Gn,go*Te),Da.attr(Rs,0).attr(Zs,go*Ai),qr.rangeBand){var Ha=qr,Fo=Ha.rangeBand()/2;Vr=qr=function(Uo){return Ha(Uo)+Fo}}else Vr.rangeBand?Vr=qr:pi.call(ti,qr,Vr);ni.call(ti,Vr,qr),Pi.call(ti,qr,qr)})}return Wt.scale=function(gr){return arguments.length?(X=gr,Wt):X},Wt.orient=function(gr){return arguments.length?(se=gr in Lu?gr+"":Nl,Wt):se},Wt.ticks=function(){return arguments.length?(Ye=r(arguments),Wt):Ye},Wt.tickValues=function(gr){return arguments.length?(Et=gr,Wt):Et},Wt.tickFormat=function(gr){return arguments.length?(nt=gr,Wt):nt},Wt.tickSize=function(gr){var yr=arguments.length;return yr?(Te=+gr,Ne=+arguments[yr-1],Wt):Te},Wt.innerTickSize=function(gr){return arguments.length?(Te=+gr,Wt):Te},Wt.outerTickSize=function(gr){return arguments.length?(Ne=+gr,Wt):Ne},Wt.tickPadding=function(gr){return arguments.length?(He=+gr,Wt):He},Wt.tickSubdivide=function(){return arguments.length&&Wt},Wt};var Nl="bottom",Lu={top:1,right:1,bottom:1,left:1};function ou(X,se,Te){X.attr("transform",function(Ne){var He=se(Ne);return"translate("+(isFinite(He)?He:Te(Ne))+",0)"})}function $s(X,se,Te){X.attr("transform",function(Ne){var He=se(Ne);return"translate(0,"+(isFinite(He)?He:Te(Ne))+")"})}e.svg.brush=function(){var X=ke(yr,"brushstart","brush","brushend"),se=null,Te=null,Ne=[0,0],He=[0,0],Ye,Et,nt=!0,Wt=!0,gr=dc[0];function yr(Wr){Wr.each(function(){var ni=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",bi).on("touchstart.brush",bi),pi=ni.selectAll(".background").data([0]);pi.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ni.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Pi=ni.selectAll(".resize").data(gr,G);Pi.exit().remove(),Pi.enter().append("g").attr("class",function(Cn){return"resize "+Cn}).style("cursor",function(Cn){return Ql[Cn]}).append("rect").attr("x",function(Cn){return/[ew]$/.test(Cn)?-3:null}).attr("y",function(Cn){return/^[ns]/.test(Cn)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Pi.style("display",yr.empty()?"none":null);var Ai=e.transition(ni),ti=e.transition(pi),In;se&&(In=Tn(se),ti.attr("x",In[0]).attr("width",In[1]-In[0]),qr(Ai)),Te&&(In=Tn(Te),ti.attr("y",In[0]).attr("height",In[1]-In[0]),_i(Ai)),Vr(Ai)})}yr.event=function(Wr){Wr.each(function(){var ni=X.of(this,arguments),pi={x:Ne,y:He,i:Ye,j:Et},Pi=this.__chart__||pi;this.__chart__=pi,Bo?e.select(this).transition().each("start.brush",function(){Ye=Pi.i,Et=Pi.j,Ne=Pi.x,He=Pi.y,ni({type:"brushstart"})}).tween("brush:brush",function(){var Ai=Gu(Ne,pi.x),ti=Gu(He,pi.y);return Ye=Et=null,function(In){Ne=pi.x=Ai(In),He=pi.y=ti(In),ni({type:"brush",mode:"resize"})}}).each("end.brush",function(){Ye=pi.i,Et=pi.j,ni({type:"brush",mode:"resize"}),ni({type:"brushend"})}):(ni({type:"brushstart"}),ni({type:"brush",mode:"resize"}),ni({type:"brushend"}))})};function Vr(Wr){Wr.selectAll(".resize").attr("transform",function(ni){return"translate("+Ne[+/e$/.test(ni)]+","+He[+/^s/.test(ni)]+")"})}function qr(Wr){Wr.select(".extent").attr("x",Ne[0]),Wr.selectAll(".extent,.n>rect,.s>rect").attr("width",Ne[1]-Ne[0])}function _i(Wr){Wr.select(".extent").attr("y",He[0]),Wr.selectAll(".extent,.e>rect,.w>rect").attr("height",He[1]-He[0])}function bi(){var Wr=this,ni=e.select(e.event.target),pi=X.of(Wr,arguments),Pi=e.select(Wr),Ai=ni.datum(),ti=!/^(n|s)$/.test(Ai)&&se,In=!/^(e|w)$/.test(Ai)&&Te,Cn=ni.classed("extent"),Nn=Gr(Wr),ia,Ea=e.mouse(Wr),Ia,yo=e.select(a(Wr)).on("keydown.brush",Rs).on("keyup.brush",Es);if(e.event.changedTouches?yo.on("touchmove.brush",Zs).on("touchend.brush",Ha):yo.on("mousemove.brush",Zs).on("mouseup.brush",Ha),Pi.interrupt().selectAll("*").interrupt(),Cn)Ea[0]=Ne[0]-Ea[0],Ea[1]=He[0]-Ea[1];else if(Ai){var Da=+/w$/.test(Ai),go=+/^n/.test(Ai);Ia=[Ne[1-Da]-Ea[0],He[1-go]-Ea[1]],Ea[0]=Ne[Da],Ea[1]=He[go]}else e.event.altKey&&(ia=Ea.slice());Pi.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ni.style("cursor")),pi({type:"brushstart"}),Zs();function Rs(){e.event.keyCode==32&&(Cn||(ia=null,Ea[0]-=Ne[1],Ea[1]-=He[1],Cn=2),_e())}function Es(){e.event.keyCode==32&&Cn==2&&(Ea[0]+=Ne[1],Ea[1]+=He[1],Cn=0,_e())}function Zs(){var Fo=e.mouse(Wr),Uo=!1;Ia&&(Fo[0]+=Ia[0],Fo[1]+=Ia[1]),Cn||(e.event.altKey?(ia||(ia=[(Ne[0]+Ne[1])/2,(He[0]+He[1])/2]),Ea[0]=Ne[+(Fo[0]{(function(e,t){typeof a6=="object"&&typeof dee!="undefined"?t(a6):(e=e||self,t(e.d3=e.d3||{}))})(a6,function(e){"use strict";var t=new Date,r=new Date;function n($e,Mt,Ct,Vt){function It(Ot){return $e(Ot=arguments.length===0?new Date:new Date(+Ot)),Ot}return It.floor=function(Ot){return $e(Ot=new Date(+Ot)),Ot},It.ceil=function(Ot){return $e(Ot=new Date(Ot-1)),Mt(Ot,1),$e(Ot),Ot},It.round=function(Ot){var bt=It(Ot),rr=It.ceil(Ot);return Ot-bt0))return lr;do lr.push(wr=new Date(+Ot)),Mt(Ot,rr),$e(Ot);while(wr=bt)for(;$e(bt),!Ot(bt);)bt.setTime(bt-1)},function(bt,rr){if(bt>=bt)if(rr<0)for(;++rr<=0;)for(;Mt(bt,-1),!Ot(bt););else for(;--rr>=0;)for(;Mt(bt,1),!Ot(bt););})},Ct&&(It.count=function(Ot,bt){return t.setTime(+Ot),r.setTime(+bt),$e(t),$e(r),Math.floor(Ct(t,r))},It.every=function(Ot){return Ot=Math.floor(Ot),!isFinite(Ot)||!(Ot>0)?null:Ot>1?It.filter(Vt?function(bt){return Vt(bt)%Ot===0}:function(bt){return It.count(0,bt)%Ot===0}):It}),It}var i=n(function(){},function($e,Mt){$e.setTime(+$e+Mt)},function($e,Mt){return Mt-$e});i.every=function($e){return $e=Math.floor($e),!isFinite($e)||!($e>0)?null:$e>1?n(function(Mt){Mt.setTime(Math.floor(Mt/$e)*$e)},function(Mt,Ct){Mt.setTime(+Mt+Ct*$e)},function(Mt,Ct){return(Ct-Mt)/$e}):i};var a=i.range,o=1e3,s=6e4,l=36e5,u=864e5,c=6048e5,f=n(function($e){$e.setTime($e-$e.getMilliseconds())},function($e,Mt){$e.setTime(+$e+Mt*o)},function($e,Mt){return(Mt-$e)/o},function($e){return $e.getUTCSeconds()}),h=f.range,d=n(function($e){$e.setTime($e-$e.getMilliseconds()-$e.getSeconds()*o)},function($e,Mt){$e.setTime(+$e+Mt*s)},function($e,Mt){return(Mt-$e)/s},function($e){return $e.getMinutes()}),v=d.range,x=n(function($e){$e.setTime($e-$e.getMilliseconds()-$e.getSeconds()*o-$e.getMinutes()*s)},function($e,Mt){$e.setTime(+$e+Mt*l)},function($e,Mt){return(Mt-$e)/l},function($e){return $e.getHours()}),b=x.range,p=n(function($e){$e.setHours(0,0,0,0)},function($e,Mt){$e.setDate($e.getDate()+Mt)},function($e,Mt){return(Mt-$e-(Mt.getTimezoneOffset()-$e.getTimezoneOffset())*s)/u},function($e){return $e.getDate()-1}),C=p.range;function E($e){return n(function(Mt){Mt.setDate(Mt.getDate()-(Mt.getDay()+7-$e)%7),Mt.setHours(0,0,0,0)},function(Mt,Ct){Mt.setDate(Mt.getDate()+Ct*7)},function(Mt,Ct){return(Ct-Mt-(Ct.getTimezoneOffset()-Mt.getTimezoneOffset())*s)/c})}var A=E(0),L=E(1),_=E(2),k=E(3),M=E(4),g=E(5),P=E(6),T=A.range,z=L.range,O=_.range,V=k.range,G=M.range,Z=g.range,H=P.range,N=n(function($e){$e.setDate(1),$e.setHours(0,0,0,0)},function($e,Mt){$e.setMonth($e.getMonth()+Mt)},function($e,Mt){return Mt.getMonth()-$e.getMonth()+(Mt.getFullYear()-$e.getFullYear())*12},function($e){return $e.getMonth()}),j=N.range,re=n(function($e){$e.setMonth(0,1),$e.setHours(0,0,0,0)},function($e,Mt){$e.setFullYear($e.getFullYear()+Mt)},function($e,Mt){return Mt.getFullYear()-$e.getFullYear()},function($e){return $e.getFullYear()});re.every=function($e){return!isFinite($e=Math.floor($e))||!($e>0)?null:n(function(Mt){Mt.setFullYear(Math.floor(Mt.getFullYear()/$e)*$e),Mt.setMonth(0,1),Mt.setHours(0,0,0,0)},function(Mt,Ct){Mt.setFullYear(Mt.getFullYear()+Ct*$e)})};var oe=re.range,_e=n(function($e){$e.setUTCSeconds(0,0)},function($e,Mt){$e.setTime(+$e+Mt*s)},function($e,Mt){return(Mt-$e)/s},function($e){return $e.getUTCMinutes()}),Me=_e.range,ke=n(function($e){$e.setUTCMinutes(0,0,0)},function($e,Mt){$e.setTime(+$e+Mt*l)},function($e,Mt){return(Mt-$e)/l},function($e){return $e.getUTCHours()}),me=ke.range,ie=n(function($e){$e.setUTCHours(0,0,0,0)},function($e,Mt){$e.setUTCDate($e.getUTCDate()+Mt)},function($e,Mt){return(Mt-$e)/u},function($e){return $e.getUTCDate()-1}),Se=ie.range;function Le($e){return n(function(Mt){Mt.setUTCDate(Mt.getUTCDate()-(Mt.getUTCDay()+7-$e)%7),Mt.setUTCHours(0,0,0,0)},function(Mt,Ct){Mt.setUTCDate(Mt.getUTCDate()+Ct*7)},function(Mt,Ct){return(Ct-Mt)/c})}var Ae=Le(0),Fe=Le(1),Pe=Le(2),ge=Le(3),De=Le(4),ce=Le(5),Ze=Le(6),ut=Ae.range,gt=Fe.range,Kt=Pe.range,st=ge.range,lt=De.range,Gt=ce.range,Ut=Ze.range,$t=n(function($e){$e.setUTCDate(1),$e.setUTCHours(0,0,0,0)},function($e,Mt){$e.setUTCMonth($e.getUTCMonth()+Mt)},function($e,Mt){return Mt.getUTCMonth()-$e.getUTCMonth()+(Mt.getUTCFullYear()-$e.getUTCFullYear())*12},function($e){return $e.getUTCMonth()}),sr=$t.range,Tr=n(function($e){$e.setUTCMonth(0,1),$e.setUTCHours(0,0,0,0)},function($e,Mt){$e.setUTCFullYear($e.getUTCFullYear()+Mt)},function($e,Mt){return Mt.getUTCFullYear()-$e.getUTCFullYear()},function($e){return $e.getUTCFullYear()});Tr.every=function($e){return!isFinite($e=Math.floor($e))||!($e>0)?null:n(function(Mt){Mt.setUTCFullYear(Math.floor(Mt.getUTCFullYear()/$e)*$e),Mt.setUTCMonth(0,1),Mt.setUTCHours(0,0,0,0)},function(Mt,Ct){Mt.setUTCFullYear(Mt.getUTCFullYear()+Ct*$e)})};var ur=Tr.range;e.timeDay=p,e.timeDays=C,e.timeFriday=g,e.timeFridays=Z,e.timeHour=x,e.timeHours=b,e.timeInterval=n,e.timeMillisecond=i,e.timeMilliseconds=a,e.timeMinute=d,e.timeMinutes=v,e.timeMonday=L,e.timeMondays=z,e.timeMonth=N,e.timeMonths=j,e.timeSaturday=P,e.timeSaturdays=H,e.timeSecond=f,e.timeSeconds=h,e.timeSunday=A,e.timeSundays=T,e.timeThursday=M,e.timeThursdays=G,e.timeTuesday=_,e.timeTuesdays=O,e.timeWednesday=k,e.timeWednesdays=V,e.timeWeek=A,e.timeWeeks=T,e.timeYear=re,e.timeYears=oe,e.utcDay=ie,e.utcDays=Se,e.utcFriday=ce,e.utcFridays=Gt,e.utcHour=ke,e.utcHours=me,e.utcMillisecond=i,e.utcMilliseconds=a,e.utcMinute=_e,e.utcMinutes=Me,e.utcMonday=Fe,e.utcMondays=gt,e.utcMonth=$t,e.utcMonths=sr,e.utcSaturday=Ze,e.utcSaturdays=Ut,e.utcSecond=f,e.utcSeconds=h,e.utcSunday=Ae,e.utcSundays=ut,e.utcThursday=De,e.utcThursdays=lt,e.utcTuesday=Pe,e.utcTuesdays=Kt,e.utcWednesday=ge,e.utcWednesdays=st,e.utcWeek=Ae,e.utcWeeks=ut,e.utcYear=Tr,e.utcYears=ur,Object.defineProperty(e,"__esModule",{value:!0})})});var e3=ye((o6,vee)=>{(function(e,t){typeof o6=="object"&&typeof vee!="undefined"?t(o6,gO()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(o6,function(e,t){"use strict";function r(Ge){if(0<=Ge.y&&Ge.y<100){var Qe=new Date(-1,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L);return Qe.setFullYear(Ge.y),Qe}return new Date(Ge.y,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L)}function n(Ge){if(0<=Ge.y&&Ge.y<100){var Qe=new Date(Date.UTC(-1,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L));return Qe.setUTCFullYear(Ge.y),Qe}return new Date(Date.UTC(Ge.y,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L))}function i(Ge,Qe,je){return{y:Ge,m:Qe,d:je,H:0,M:0,S:0,L:0}}function a(Ge){var Qe=Ge.dateTime,je=Ge.date,Je=Ge.time,xt=Ge.periods,Ie=Ge.days,xe=Ge.shortDays,Ce=Ge.months,pt=Ge.shortMonths,nr=h(xt),ir=d(xt),vr=h(Ie),si=d(Ie),mi=h(xe),ei=d(xe),vi=h(Ce),ji=d(Ce),Rn=h(pt),wn=d(pt),pn={a:Ji,A:en,b:cn,B:yn,c:null,d:N,e:N,f:Me,H:j,I:re,j:oe,L:_e,m:ke,M:me,p:Mn,q:Ba,Q:bt,s:rr,S:ie,u:Se,U:Le,V:Ae,w:Fe,W:Pe,x:null,X:null,y:ge,Y:De,Z:ce,"%":Ot},Vn={a:la,A:ma,b:Wa,B:Fa,c:null,d:Ze,e:Ze,f:lt,H:ut,I:gt,j:Kt,L:st,m:Gt,M:Ut,p:Wo,q:da,Q:bt,s:rr,S:$t,u:sr,U:Tr,V:ur,w:$e,W:Mt,x:null,X:null,y:Ct,Y:Vt,Z:It,"%":Ot},kn={a:er,A:ar,b:Er,B:Xr,c:ri,d:M,e:M,f:V,H:P,I:P,j:g,L:O,m:k,M:T,p:yt,q:_,Q:Z,s:H,S:z,u:x,U:b,V:p,w:v,W:C,x:$r,X:zi,y:A,Y:E,Z:L,"%":G};pn.x=ea(je,pn),pn.X=ea(Je,pn),pn.c=ea(Qe,pn),Vn.x=ea(je,Vn),Vn.X=ea(Je,Vn),Vn.c=ea(Qe,Vn);function ea(Wn,Ga){return function(vo){var jn=[],At=-1,kr=0,Qr=Wn.length,di,fn,Sn;for(vo instanceof Date||(vo=new Date(+vo));++At53)return null;"w"in jn||(jn.w=1),"Z"in jn?(kr=n(i(jn.y,0,1)),Qr=kr.getUTCDay(),kr=Qr>4||Qr===0?t.utcMonday.ceil(kr):t.utcMonday(kr),kr=t.utcDay.offset(kr,(jn.V-1)*7),jn.y=kr.getUTCFullYear(),jn.m=kr.getUTCMonth(),jn.d=kr.getUTCDate()+(jn.w+6)%7):(kr=r(i(jn.y,0,1)),Qr=kr.getDay(),kr=Qr>4||Qr===0?t.timeMonday.ceil(kr):t.timeMonday(kr),kr=t.timeDay.offset(kr,(jn.V-1)*7),jn.y=kr.getFullYear(),jn.m=kr.getMonth(),jn.d=kr.getDate()+(jn.w+6)%7)}else("W"in jn||"U"in jn)&&("w"in jn||(jn.w="u"in jn?jn.u%7:"W"in jn?1:0),Qr="Z"in jn?n(i(jn.y,0,1)).getUTCDay():r(i(jn.y,0,1)).getDay(),jn.m=0,jn.d="W"in jn?(jn.w+6)%7+jn.W*7-(Qr+5)%7:jn.w+jn.U*7-(Qr+6)%7);return"Z"in jn?(jn.H+=jn.Z/100|0,jn.M+=jn.Z%100,n(jn)):r(jn)}}function Ht(Wn,Ga,vo,jn){for(var At=0,kr=Ga.length,Qr=vo.length,di,fn;At=Qr)return-1;if(di=Ga.charCodeAt(At++),di===37){if(di=Ga.charAt(At++),fn=kn[di in o?Ga.charAt(At++):di],!fn||(jn=fn(Wn,vo,jn))<0)return-1}else if(di!=vo.charCodeAt(jn++))return-1}return jn}function yt(Wn,Ga,vo){var jn=nr.exec(Ga.slice(vo));return jn?(Wn.p=ir[jn[0].toLowerCase()],vo+jn[0].length):-1}function er(Wn,Ga,vo){var jn=mi.exec(Ga.slice(vo));return jn?(Wn.w=ei[jn[0].toLowerCase()],vo+jn[0].length):-1}function ar(Wn,Ga,vo){var jn=vr.exec(Ga.slice(vo));return jn?(Wn.w=si[jn[0].toLowerCase()],vo+jn[0].length):-1}function Er(Wn,Ga,vo){var jn=Rn.exec(Ga.slice(vo));return jn?(Wn.m=wn[jn[0].toLowerCase()],vo+jn[0].length):-1}function Xr(Wn,Ga,vo){var jn=vi.exec(Ga.slice(vo));return jn?(Wn.m=ji[jn[0].toLowerCase()],vo+jn[0].length):-1}function ri(Wn,Ga,vo){return Ht(Wn,Qe,Ga,vo)}function $r(Wn,Ga,vo){return Ht(Wn,je,Ga,vo)}function zi(Wn,Ga,vo){return Ht(Wn,Je,Ga,vo)}function Ji(Wn){return xe[Wn.getDay()]}function en(Wn){return Ie[Wn.getDay()]}function cn(Wn){return pt[Wn.getMonth()]}function yn(Wn){return Ce[Wn.getMonth()]}function Mn(Wn){return xt[+(Wn.getHours()>=12)]}function Ba(Wn){return 1+~~(Wn.getMonth()/3)}function la(Wn){return xe[Wn.getUTCDay()]}function ma(Wn){return Ie[Wn.getUTCDay()]}function Wa(Wn){return pt[Wn.getUTCMonth()]}function Fa(Wn){return Ce[Wn.getUTCMonth()]}function Wo(Wn){return xt[+(Wn.getUTCHours()>=12)]}function da(Wn){return 1+~~(Wn.getUTCMonth()/3)}return{format:function(Wn){var Ga=ea(Wn+="",pn);return Ga.toString=function(){return Wn},Ga},parse:function(Wn){var Ga=ua(Wn+="",!1);return Ga.toString=function(){return Wn},Ga},utcFormat:function(Wn){var Ga=ea(Wn+="",Vn);return Ga.toString=function(){return Wn},Ga},utcParse:function(Wn){var Ga=ua(Wn+="",!0);return Ga.toString=function(){return Wn},Ga}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,l=/^%/,u=/[\\^$*+?|[\]().{}]/g;function c(Ge,Qe,je){var Je=Ge<0?"-":"",xt=(Je?-Ge:Ge)+"",Ie=xt.length;return Je+(Ie68?1900:2e3),je+Je[0].length):-1}function L(Ge,Qe,je){var Je=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Qe.slice(je,je+6));return Je?(Ge.Z=Je[1]?0:-(Je[2]+(Je[3]||"00")),je+Je[0].length):-1}function _(Ge,Qe,je){var Je=s.exec(Qe.slice(je,je+1));return Je?(Ge.q=Je[0]*3-3,je+Je[0].length):-1}function k(Ge,Qe,je){var Je=s.exec(Qe.slice(je,je+2));return Je?(Ge.m=Je[0]-1,je+Je[0].length):-1}function M(Ge,Qe,je){var Je=s.exec(Qe.slice(je,je+2));return Je?(Ge.d=+Je[0],je+Je[0].length):-1}function g(Ge,Qe,je){var Je=s.exec(Qe.slice(je,je+3));return Je?(Ge.m=0,Ge.d=+Je[0],je+Je[0].length):-1}function P(Ge,Qe,je){var Je=s.exec(Qe.slice(je,je+2));return Je?(Ge.H=+Je[0],je+Je[0].length):-1}function T(Ge,Qe,je){var Je=s.exec(Qe.slice(je,je+2));return Je?(Ge.M=+Je[0],je+Je[0].length):-1}function z(Ge,Qe,je){var Je=s.exec(Qe.slice(je,je+2));return Je?(Ge.S=+Je[0],je+Je[0].length):-1}function O(Ge,Qe,je){var Je=s.exec(Qe.slice(je,je+3));return Je?(Ge.L=+Je[0],je+Je[0].length):-1}function V(Ge,Qe,je){var Je=s.exec(Qe.slice(je,je+6));return Je?(Ge.L=Math.floor(Je[0]/1e3),je+Je[0].length):-1}function G(Ge,Qe,je){var Je=l.exec(Qe.slice(je,je+1));return Je?je+Je[0].length:-1}function Z(Ge,Qe,je){var Je=s.exec(Qe.slice(je));return Je?(Ge.Q=+Je[0],je+Je[0].length):-1}function H(Ge,Qe,je){var Je=s.exec(Qe.slice(je));return Je?(Ge.s=+Je[0],je+Je[0].length):-1}function N(Ge,Qe){return c(Ge.getDate(),Qe,2)}function j(Ge,Qe){return c(Ge.getHours(),Qe,2)}function re(Ge,Qe){return c(Ge.getHours()%12||12,Qe,2)}function oe(Ge,Qe){return c(1+t.timeDay.count(t.timeYear(Ge),Ge),Qe,3)}function _e(Ge,Qe){return c(Ge.getMilliseconds(),Qe,3)}function Me(Ge,Qe){return _e(Ge,Qe)+"000"}function ke(Ge,Qe){return c(Ge.getMonth()+1,Qe,2)}function me(Ge,Qe){return c(Ge.getMinutes(),Qe,2)}function ie(Ge,Qe){return c(Ge.getSeconds(),Qe,2)}function Se(Ge){var Qe=Ge.getDay();return Qe===0?7:Qe}function Le(Ge,Qe){return c(t.timeSunday.count(t.timeYear(Ge)-1,Ge),Qe,2)}function Ae(Ge,Qe){var je=Ge.getDay();return Ge=je>=4||je===0?t.timeThursday(Ge):t.timeThursday.ceil(Ge),c(t.timeThursday.count(t.timeYear(Ge),Ge)+(t.timeYear(Ge).getDay()===4),Qe,2)}function Fe(Ge){return Ge.getDay()}function Pe(Ge,Qe){return c(t.timeMonday.count(t.timeYear(Ge)-1,Ge),Qe,2)}function ge(Ge,Qe){return c(Ge.getFullYear()%100,Qe,2)}function De(Ge,Qe){return c(Ge.getFullYear()%1e4,Qe,4)}function ce(Ge){var Qe=Ge.getTimezoneOffset();return(Qe>0?"-":(Qe*=-1,"+"))+c(Qe/60|0,"0",2)+c(Qe%60,"0",2)}function Ze(Ge,Qe){return c(Ge.getUTCDate(),Qe,2)}function ut(Ge,Qe){return c(Ge.getUTCHours(),Qe,2)}function gt(Ge,Qe){return c(Ge.getUTCHours()%12||12,Qe,2)}function Kt(Ge,Qe){return c(1+t.utcDay.count(t.utcYear(Ge),Ge),Qe,3)}function st(Ge,Qe){return c(Ge.getUTCMilliseconds(),Qe,3)}function lt(Ge,Qe){return st(Ge,Qe)+"000"}function Gt(Ge,Qe){return c(Ge.getUTCMonth()+1,Qe,2)}function Ut(Ge,Qe){return c(Ge.getUTCMinutes(),Qe,2)}function $t(Ge,Qe){return c(Ge.getUTCSeconds(),Qe,2)}function sr(Ge){var Qe=Ge.getUTCDay();return Qe===0?7:Qe}function Tr(Ge,Qe){return c(t.utcSunday.count(t.utcYear(Ge)-1,Ge),Qe,2)}function ur(Ge,Qe){var je=Ge.getUTCDay();return Ge=je>=4||je===0?t.utcThursday(Ge):t.utcThursday.ceil(Ge),c(t.utcThursday.count(t.utcYear(Ge),Ge)+(t.utcYear(Ge).getUTCDay()===4),Qe,2)}function $e(Ge){return Ge.getUTCDay()}function Mt(Ge,Qe){return c(t.utcMonday.count(t.utcYear(Ge)-1,Ge),Qe,2)}function Ct(Ge,Qe){return c(Ge.getUTCFullYear()%100,Qe,2)}function Vt(Ge,Qe){return c(Ge.getUTCFullYear()%1e4,Qe,4)}function It(){return"+0000"}function Ot(){return"%"}function bt(Ge){return+Ge}function rr(Ge){return Math.floor(+Ge/1e3)}var lr;wr({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 wr(Ge){return lr=a(Ge),e.timeFormat=lr.format,e.timeParse=lr.parse,e.utcFormat=lr.utcFormat,e.utcParse=lr.utcParse,lr}var Cr="%Y-%m-%dT%H:%M:%S.%LZ";function Kr(Ge){return Ge.toISOString()}var Gr=Date.prototype.toISOString?Kr:e.utcFormat(Cr);function Yr(Ge){var Qe=new Date(Ge);return isNaN(Qe)?null:Qe}var dt=+new Date("2000-01-01T00:00:00.000Z")?Yr:e.utcParse(Cr);e.isoFormat=Gr,e.isoParse=dt,e.timeFormatDefaultLocale=wr,e.timeFormatLocale=a,Object.defineProperty(e,"__esModule",{value:!0})})});var mO=ye((s6,pee)=>{(function(e,t){typeof s6=="object"&&typeof pee!="undefined"?t(s6):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(s6,function(e){"use strict";function t(k){return Math.abs(k=Math.round(k))>=1e21?k.toLocaleString("en").replace(/,/g,""):k.toString(10)}function r(k,M){if((g=(k=M?k.toExponential(M-1):k.toExponential()).indexOf("e"))<0)return null;var g,P=k.slice(0,g);return[P.length>1?P[0]+P.slice(2):P,+k.slice(g+1)]}function n(k){return k=r(Math.abs(k)),k?k[1]:NaN}function i(k,M){return function(g,P){for(var T=g.length,z=[],O=0,V=k[0],G=0;T>0&&V>0&&(G+V+1>P&&(V=Math.max(1,P-G)),z.push(g.substring(T-=V,T+V)),!((G+=V+1)>P));)V=k[O=(O+1)%k.length];return z.reverse().join(M)}}function a(k){return function(M){return M.replace(/[0-9]/g,function(g){return k[+g]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(k){if(!(M=o.exec(k)))throw new Error("invalid format: "+k);var M;return new l({fill:M[1],align:M[2],sign:M[3],symbol:M[4],zero:M[5],width:M[6],comma:M[7],precision:M[8]&&M[8].slice(1),trim:M[9],type:M[10]})}s.prototype=l.prototype;function l(k){this.fill=k.fill===void 0?" ":k.fill+"",this.align=k.align===void 0?">":k.align+"",this.sign=k.sign===void 0?"-":k.sign+"",this.symbol=k.symbol===void 0?"":k.symbol+"",this.zero=!!k.zero,this.width=k.width===void 0?void 0:+k.width,this.comma=!!k.comma,this.precision=k.precision===void 0?void 0:+k.precision,this.trim=!!k.trim,this.type=k.type===void 0?"":k.type+""}l.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(k){e:for(var M=k.length,g=1,P=-1,T;g0&&(P=0);break}return P>0?k.slice(0,P)+k.slice(T+1):k}var c;function f(k,M){var g=r(k,M);if(!g)return k+"";var P=g[0],T=g[1],z=T-(c=Math.max(-8,Math.min(8,Math.floor(T/3)))*3)+1,O=P.length;return z===O?P:z>O?P+new Array(z-O+1).join("0"):z>0?P.slice(0,z)+"."+P.slice(z):"0."+new Array(1-z).join("0")+r(k,Math.max(0,M+z-1))[0]}function h(k,M){var g=r(k,M);if(!g)return k+"";var P=g[0],T=g[1];return T<0?"0."+new Array(-T).join("0")+P:P.length>T+1?P.slice(0,T+1)+"."+P.slice(T+1):P+new Array(T-P.length+2).join("0")}var d={"%":function(k,M){return(k*100).toFixed(M)},b:function(k){return Math.round(k).toString(2)},c:function(k){return k+""},d:t,e:function(k,M){return k.toExponential(M)},f:function(k,M){return k.toFixed(M)},g:function(k,M){return k.toPrecision(M)},o:function(k){return Math.round(k).toString(8)},p:function(k,M){return h(k*100,M)},r:h,s:f,X:function(k){return Math.round(k).toString(16).toUpperCase()},x:function(k){return Math.round(k).toString(16)}};function v(k){return k}var x=Array.prototype.map,b=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function p(k){var M=k.grouping===void 0||k.thousands===void 0?v:i(x.call(k.grouping,Number),k.thousands+""),g=k.currency===void 0?"":k.currency[0]+"",P=k.currency===void 0?"":k.currency[1]+"",T=k.decimal===void 0?".":k.decimal+"",z=k.numerals===void 0?v:a(x.call(k.numerals,String)),O=k.percent===void 0?"%":k.percent+"",V=k.minus===void 0?"-":k.minus+"",G=k.nan===void 0?"NaN":k.nan+"";function Z(N){N=s(N);var j=N.fill,re=N.align,oe=N.sign,_e=N.symbol,Me=N.zero,ke=N.width,me=N.comma,ie=N.precision,Se=N.trim,Le=N.type;Le==="n"?(me=!0,Le="g"):d[Le]||(ie===void 0&&(ie=12),Se=!0,Le="g"),(Me||j==="0"&&re==="=")&&(Me=!0,j="0",re="=");var Ae=_e==="$"?g:_e==="#"&&/[boxX]/.test(Le)?"0"+Le.toLowerCase():"",Fe=_e==="$"?P:/[%p]/.test(Le)?O:"",Pe=d[Le],ge=/[defgprs%]/.test(Le);ie=ie===void 0?6:/[gprs]/.test(Le)?Math.max(1,Math.min(21,ie)):Math.max(0,Math.min(20,ie));function De(ce){var Ze=Ae,ut=Fe,gt,Kt,st;if(Le==="c")ut=Pe(ce)+ut,ce="";else{ce=+ce;var lt=ce<0||1/ce<0;if(ce=isNaN(ce)?G:Pe(Math.abs(ce),ie),Se&&(ce=u(ce)),lt&&+ce==0&&oe!=="+"&&(lt=!1),Ze=(lt?oe==="("?oe:V:oe==="-"||oe==="("?"":oe)+Ze,ut=(Le==="s"?b[8+c/3]:"")+ut+(lt&&oe==="("?")":""),ge){for(gt=-1,Kt=ce.length;++gtst||st>57){ut=(st===46?T+ce.slice(gt+1):ce.slice(gt))+ut,ce=ce.slice(0,gt);break}}}me&&!Me&&(ce=M(ce,1/0));var Gt=Ze.length+ce.length+ut.length,Ut=Gt>1)+Ze+ce+ut+Ut.slice(Gt);break;default:ce=Ut+Ze+ce+ut;break}return z(ce)}return De.toString=function(){return N+""},De}function H(N,j){var re=Z((N=s(N),N.type="f",N)),oe=Math.max(-8,Math.min(8,Math.floor(n(j)/3)))*3,_e=Math.pow(10,-oe),Me=b[8+oe/3];return function(ke){return re(_e*ke)+Me}}return{format:Z,formatPrefix:H}}var C;E({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function E(k){return C=p(k),e.format=C.format,e.formatPrefix=C.formatPrefix,C}function A(k){return Math.max(0,-n(Math.abs(k)))}function L(k,M){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(M)/3)))*3-n(Math.abs(k)))}function _(k,M){return k=Math.abs(k),M=Math.abs(M)-k,Math.max(0,n(M)-n(k))+1}e.FormatSpecifier=l,e.formatDefaultLocale=E,e.formatLocale=p,e.formatSpecifier=s,e.precisionFixed=A,e.precisionPrefix=L,e.precisionRound=_,Object.defineProperty(e,"__esModule",{value:!0})})});var mee=ye((Ker,gee)=>{"use strict";gee.exports=function(e){for(var t=e.length,r,n=0;n13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var Eo=ye((Jer,yee)=>{"use strict";var Wet=mee();yee.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&Wet(r))return!1}else if(t!=="number")return!1;return e-e<1}});var hs=ye(($er,_ee)=>{"use strict";_ee.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 yO=ye((l6,xee)=>{(function(e,t){typeof l6=="object"&&typeof xee!="undefined"?t(l6):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(l6,function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],c+=t[(s[l]&3)<<4|s[l+1]>>4],c+=t[(s[l+1]&15)<<2|s[l+2]>>6],c+=t[s[l+2]&63];return u%3===2?c=c.substring(0,c.length-1)+"=":u%3===1&&(c=c.substring(0,c.length-2)+"=="),c},a=function(o){var s=o.length*.75,l=o.length,u,c=0,f,h,d,v;o[o.length-1]==="="&&(s--,o[o.length-2]==="="&&s--);var x=new ArrayBuffer(s),b=new Uint8Array(x);for(u=0;u>4,b[c++]=(h&15)<<4|d>>2,b[c++]=(d&3)<<6|v&63;return x};e.decode=a,e.encode=i,Object.defineProperty(e,"__esModule",{value:!0})})});var gy=ye((Qer,bee)=>{"use strict";bee.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var vv=ye(mg=>{"use strict";var Xet=yO().decode,Zet=gy(),_O=Array.isArray,Yet=ArrayBuffer,Ket=DataView;function wee(e){return Yet.isView(e)&&!(e instanceof Ket)}mg.isTypedArray=wee;function u6(e){return _O(e)||wee(e)}mg.isArrayOrTypedArray=u6;function Jet(e){return!u6(e[0])}mg.isArray1D=Jet;mg.ensureArray=function(e,t){return _O(e)||(e=[]),e.length=t,e};var Ld={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Ld.uint8c=Ld.u1c;Ld.uint8=Ld.u1;Ld.int8=Ld.i1;Ld.uint16=Ld.u2;Ld.int16=Ld.i2;Ld.uint32=Ld.u4;Ld.int32=Ld.i4;Ld.float32=Ld.f4;Ld.float64=Ld.f8;function xO(e){return e.constructor===ArrayBuffer}mg.isArrayBuffer=xO;mg.decodeTypedArraySpec=function(e){var t=[],r=$et(e),n=r.dtype,i=Ld[n];if(!i)throw new Error('Error in dtype: "'+n+'"');var a=i.BYTES_PER_ELEMENT,o=r.bdata;xO(o)||(o=Xet(o));var s=r.shape===void 0?[o.byteLength/a]:(""+r.shape).split(",");s.reverse();var l=s.length,u,c,f=+s[0],h=a*f,d=0;if(l===1)t=new i(o);else if(l===2)for(u=+s[1],c=0;c{"use strict";var Aee=Eo(),wO=vv().isArrayOrTypedArray;Cee.exports=function(t,r){if(Aee(r))r=String(r);else if(typeof r!="string"||r.substr(r.length-4)==="[-1]")throw"bad property string";var n=r.split("."),i,a,o,s;for(s=0;s{"use strict";var t3=CS(),itt=/^\w*$/,ntt=0,kee=1,c6=2,Lee=3,ob=4;Pee.exports=function(t,r,n,i){n=n||"name",i=i||"value";var a,o,s,l={};r&&r.length?(s=t3(t,r),o=s.get()):o=t,r=r||"";var u={};if(o)for(a=0;a2)return l[d]=l[d]|c6,f.set(h,null);if(c){for(a=d;a{"use strict";var att=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,ott=/^[^\.\[\]]+$/;Ree.exports=function(e,t){for(;t;){var r=e.match(att);if(r)e=r[1];else if(e.match(ott))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var f6=ye((ntr,Fee)=>{"use strict";var stt=Eo();Fee.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var n=Math.log(Math.min(r[0],r[1]))/Math.LN10;return stt(n)||(n=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),n}});var qee=ye((atr,Oee)=>{"use strict";var zee=vv().isArrayOrTypedArray,kS=gy();Oee.exports=function e(t,r){for(var n in r){var i=r[n],a=t[n];if(a!==i)if(n.charAt(0)==="_"||typeof i=="function"){if(n in t)continue;t[n]=i}else if(zee(i)&&zee(a)&&kS(i[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(i.length,a.length),s=0;s{"use strict";function ltt(e,t){var r=e%t;return r<0?r+t:r}function utt(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}Bee.exports={mod:ltt,modHalf:utt}});var cd=ye((str,h6)=>{(function(e){var t=/^\s+/,r=/\s+$/,n=0,i=e.round,a=e.min,o=e.max,s=e.random;function l(ge,De){if(ge=ge||"",De=De||{},ge instanceof l)return ge;if(!(this instanceof l))return new l(ge,De);var ce=u(ge);this._originalInput=ge,this._r=ce.r,this._g=ce.g,this._b=ce.b,this._a=ce.a,this._roundA=i(100*this._a)/100,this._format=De.format||ce.format,this._gradientType=De.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=ce.ok,this._tc_id=n++}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ge=this.toRgb();return(ge.r*299+ge.g*587+ge.b*114)/1e3},getLuminance:function(){var ge=this.toRgb(),De,ce,Ze,ut,gt,Kt;return De=ge.r/255,ce=ge.g/255,Ze=ge.b/255,De<=.03928?ut=De/12.92:ut=e.pow((De+.055)/1.055,2.4),ce<=.03928?gt=ce/12.92:gt=e.pow((ce+.055)/1.055,2.4),Ze<=.03928?Kt=Ze/12.92:Kt=e.pow((Ze+.055)/1.055,2.4),.2126*ut+.7152*gt+.0722*Kt},setAlpha:function(ge){return this._a=N(ge),this._roundA=i(100*this._a)/100,this},toHsv:function(){var ge=d(this._r,this._g,this._b);return{h:ge.h*360,s:ge.s,v:ge.v,a:this._a}},toHsvString:function(){var ge=d(this._r,this._g,this._b),De=i(ge.h*360),ce=i(ge.s*100),Ze=i(ge.v*100);return this._a==1?"hsv("+De+", "+ce+"%, "+Ze+"%)":"hsva("+De+", "+ce+"%, "+Ze+"%, "+this._roundA+")"},toHsl:function(){var ge=f(this._r,this._g,this._b);return{h:ge.h*360,s:ge.s,l:ge.l,a:this._a}},toHslString:function(){var ge=f(this._r,this._g,this._b),De=i(ge.h*360),ce=i(ge.s*100),Ze=i(ge.l*100);return this._a==1?"hsl("+De+", "+ce+"%, "+Ze+"%)":"hsla("+De+", "+ce+"%, "+Ze+"%, "+this._roundA+")"},toHex:function(ge){return x(this._r,this._g,this._b,ge)},toHexString:function(ge){return"#"+this.toHex(ge)},toHex8:function(ge){return b(this._r,this._g,this._b,this._a,ge)},toHex8String:function(ge){return"#"+this.toHex8(ge)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(j(this._r,255)*100)+"%",g:i(j(this._g,255)*100)+"%",b:i(j(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(j(this._r,255)*100)+"%, "+i(j(this._g,255)*100)+"%, "+i(j(this._b,255)*100)+"%)":"rgba("+i(j(this._r,255)*100)+"%, "+i(j(this._g,255)*100)+"%, "+i(j(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Z[x(this._r,this._g,this._b,!0)]||!1},toFilter:function(ge){var De="#"+p(this._r,this._g,this._b,this._a),ce=De,Ze=this._gradientType?"GradientType = 1, ":"";if(ge){var ut=l(ge);ce="#"+p(ut._r,ut._g,ut._b,ut._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ze+"startColorstr="+De+",endColorstr="+ce+")"},toString:function(ge){var De=!!ge;ge=ge||this._format;var ce=!1,Ze=this._a<1&&this._a>=0,ut=!De&&Ze&&(ge==="hex"||ge==="hex6"||ge==="hex3"||ge==="hex4"||ge==="hex8"||ge==="name");return ut?ge==="name"&&this._a===0?this.toName():this.toRgbString():(ge==="rgb"&&(ce=this.toRgbString()),ge==="prgb"&&(ce=this.toPercentageRgbString()),(ge==="hex"||ge==="hex6")&&(ce=this.toHexString()),ge==="hex3"&&(ce=this.toHexString(!0)),ge==="hex4"&&(ce=this.toHex8String(!0)),ge==="hex8"&&(ce=this.toHex8String()),ge==="name"&&(ce=this.toName()),ge==="hsl"&&(ce=this.toHslString()),ge==="hsv"&&(ce=this.toHsvString()),ce||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(ge,De){var ce=ge.apply(null,[this].concat([].slice.call(De)));return this._r=ce._r,this._g=ce._g,this._b=ce._b,this.setAlpha(ce._a),this},lighten:function(){return this._applyModification(L,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(E,arguments)},greyscale:function(){return this._applyModification(A,arguments)},spin:function(){return this._applyModification(M,arguments)},_applyCombination:function(ge,De){return ge.apply(null,[this].concat([].slice.call(De)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(g,arguments)},monochromatic:function(){return this._applyCombination(V,arguments)},splitcomplement:function(){return this._applyCombination(z,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},l.fromRatio=function(ge,De){if(typeof ge=="object"){var ce={};for(var Ze in ge)ge.hasOwnProperty(Ze)&&(Ze==="a"?ce[Ze]=ge[Ze]:ce[Ze]=me(ge[Ze]));ge=ce}return l(ge,De)};function u(ge){var De={r:0,g:0,b:0},ce=1,Ze=null,ut=null,gt=null,Kt=!1,st=!1;return typeof ge=="string"&&(ge=Fe(ge)),typeof ge=="object"&&(Ae(ge.r)&&Ae(ge.g)&&Ae(ge.b)?(De=c(ge.r,ge.g,ge.b),Kt=!0,st=String(ge.r).substr(-1)==="%"?"prgb":"rgb"):Ae(ge.h)&&Ae(ge.s)&&Ae(ge.v)?(Ze=me(ge.s),ut=me(ge.v),De=v(ge.h,Ze,ut),Kt=!0,st="hsv"):Ae(ge.h)&&Ae(ge.s)&&Ae(ge.l)&&(Ze=me(ge.s),gt=me(ge.l),De=h(ge.h,Ze,gt),Kt=!0,st="hsl"),ge.hasOwnProperty("a")&&(ce=ge.a)),ce=N(ce),{ok:Kt,format:ge.format||st,r:a(255,o(De.r,0)),g:a(255,o(De.g,0)),b:a(255,o(De.b,0)),a:ce}}function c(ge,De,ce){return{r:j(ge,255)*255,g:j(De,255)*255,b:j(ce,255)*255}}function f(ge,De,ce){ge=j(ge,255),De=j(De,255),ce=j(ce,255);var Ze=o(ge,De,ce),ut=a(ge,De,ce),gt,Kt,st=(Ze+ut)/2;if(Ze==ut)gt=Kt=0;else{var lt=Ze-ut;switch(Kt=st>.5?lt/(2-Ze-ut):lt/(Ze+ut),Ze){case ge:gt=(De-ce)/lt+(De1&&($t-=1),$t<1/6?Gt+(Ut-Gt)*6*$t:$t<1/2?Ut:$t<2/3?Gt+(Ut-Gt)*(2/3-$t)*6:Gt}if(De===0)Ze=ut=gt=ce;else{var st=ce<.5?ce*(1+De):ce+De-ce*De,lt=2*ce-st;Ze=Kt(lt,st,ge+1/3),ut=Kt(lt,st,ge),gt=Kt(lt,st,ge-1/3)}return{r:Ze*255,g:ut*255,b:gt*255}}function d(ge,De,ce){ge=j(ge,255),De=j(De,255),ce=j(ce,255);var Ze=o(ge,De,ce),ut=a(ge,De,ce),gt,Kt,st=Ze,lt=Ze-ut;if(Kt=Ze===0?0:lt/Ze,Ze==ut)gt=0;else{switch(Ze){case ge:gt=(De-ce)/lt+(De>1)+720)%360;--De;)Ze.h=(Ze.h+ut)%360,gt.push(l(Ze));return gt}function V(ge,De){De=De||6;for(var ce=l(ge).toHsv(),Ze=ce.h,ut=ce.s,gt=ce.v,Kt=[],st=1/De;De--;)Kt.push(l({h:Ze,s:ut,v:gt})),gt=(gt+st)%1;return Kt}l.mix=function(ge,De,ce){ce=ce===0?0:ce||50;var Ze=l(ge).toRgb(),ut=l(De).toRgb(),gt=ce/100,Kt={r:(ut.r-Ze.r)*gt+Ze.r,g:(ut.g-Ze.g)*gt+Ze.g,b:(ut.b-Ze.b)*gt+Ze.b,a:(ut.a-Ze.a)*gt+Ze.a};return l(Kt)},l.readability=function(ge,De){var ce=l(ge),Ze=l(De);return(e.max(ce.getLuminance(),Ze.getLuminance())+.05)/(e.min(ce.getLuminance(),Ze.getLuminance())+.05)},l.isReadable=function(ge,De,ce){var Ze=l.readability(ge,De),ut,gt;switch(gt=!1,ut=Pe(ce),ut.level+ut.size){case"AAsmall":case"AAAlarge":gt=Ze>=4.5;break;case"AAlarge":gt=Ze>=3;break;case"AAAsmall":gt=Ze>=7;break}return gt},l.mostReadable=function(ge,De,ce){var Ze=null,ut=0,gt,Kt,st,lt;ce=ce||{},Kt=ce.includeFallbackColors,st=ce.level,lt=ce.size;for(var Gt=0;Gtut&&(ut=gt,Ze=l(De[Gt]));return l.isReadable(ge,Ze,{level:st,size:lt})||!Kt?Ze:(ce.includeFallbackColors=!1,l.mostReadable(ge,["#fff","#000"],ce))};var G=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Z=l.hexNames=H(G);function H(ge){var De={};for(var ce in ge)ge.hasOwnProperty(ce)&&(De[ge[ce]]=ce);return De}function N(ge){return ge=parseFloat(ge),(isNaN(ge)||ge<0||ge>1)&&(ge=1),ge}function j(ge,De){_e(ge)&&(ge="100%");var ce=Me(ge);return ge=a(De,o(0,parseFloat(ge))),ce&&(ge=parseInt(ge*De,10)/100),e.abs(ge-De)<1e-6?1:ge%De/parseFloat(De)}function re(ge){return a(1,o(0,ge))}function oe(ge){return parseInt(ge,16)}function _e(ge){return typeof ge=="string"&&ge.indexOf(".")!=-1&&parseFloat(ge)===1}function Me(ge){return typeof ge=="string"&&ge.indexOf("%")!=-1}function ke(ge){return ge.length==1?"0"+ge:""+ge}function me(ge){return ge<=1&&(ge=ge*100+"%"),ge}function ie(ge){return e.round(parseFloat(ge)*255).toString(16)}function Se(ge){return oe(ge)/255}var Le=function(){var ge="[-\\+]?\\d+%?",De="[-\\+]?\\d*\\.\\d+%?",ce="(?:"+De+")|(?:"+ge+")",Ze="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?",ut="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?";return{CSS_UNIT:new RegExp(ce),rgb:new RegExp("rgb"+Ze),rgba:new RegExp("rgba"+ut),hsl:new RegExp("hsl"+Ze),hsla:new RegExp("hsla"+ut),hsv:new RegExp("hsv"+Ze),hsva:new RegExp("hsva"+ut),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ae(ge){return!!Le.CSS_UNIT.exec(ge)}function Fe(ge){ge=ge.replace(t,"").replace(r,"").toLowerCase();var De=!1;if(G[ge])ge=G[ge],De=!0;else if(ge=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ce;return(ce=Le.rgb.exec(ge))?{r:ce[1],g:ce[2],b:ce[3]}:(ce=Le.rgba.exec(ge))?{r:ce[1],g:ce[2],b:ce[3],a:ce[4]}:(ce=Le.hsl.exec(ge))?{h:ce[1],s:ce[2],l:ce[3]}:(ce=Le.hsla.exec(ge))?{h:ce[1],s:ce[2],l:ce[3],a:ce[4]}:(ce=Le.hsv.exec(ge))?{h:ce[1],s:ce[2],v:ce[3]}:(ce=Le.hsva.exec(ge))?{h:ce[1],s:ce[2],v:ce[3],a:ce[4]}:(ce=Le.hex8.exec(ge))?{r:oe(ce[1]),g:oe(ce[2]),b:oe(ce[3]),a:Se(ce[4]),format:De?"name":"hex8"}:(ce=Le.hex6.exec(ge))?{r:oe(ce[1]),g:oe(ce[2]),b:oe(ce[3]),format:De?"name":"hex"}:(ce=Le.hex4.exec(ge))?{r:oe(ce[1]+""+ce[1]),g:oe(ce[2]+""+ce[2]),b:oe(ce[3]+""+ce[3]),a:Se(ce[4]+""+ce[4]),format:De?"name":"hex8"}:(ce=Le.hex3.exec(ge))?{r:oe(ce[1]+""+ce[1]),g:oe(ce[2]+""+ce[2]),b:oe(ce[3]+""+ce[3]),format:De?"name":"hex"}:!1}function Pe(ge){var De,ce;return ge=ge||{level:"AA",size:"small"},De=(ge.level||"AA").toUpperCase(),ce=(ge.size||"small").toLowerCase(),De!=="AA"&&De!=="AAA"&&(De="AA"),ce!=="small"&&ce!=="large"&&(ce="small"),{level:De,size:ce}}typeof h6!="undefined"&&h6.exports?h6.exports=l:window.tinycolor=l})(Math)});var Ao=ye(IS=>{"use strict";var Nee=gy(),LS=Array.isArray;function ctt(e,t){var r,n;for(r=0;r{"use strict";Uee.exports=function(e){var t=e.variantValues,r=e.editType,n=e.colorEditType;n===void 0&&(n=r);var i={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(i.valType="enumerated",i.values=i.extras,i.extras=void 0,i.min=void 0,i.max=void 0);var a={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:n},weight:i,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(a.size.dflt="auto"),e.autoColor&&(a.color.dflt="auto"),e.arrayOk&&(a.family.arrayOk=!0,a.weight.arrayOk=!0,a.style.arrayOk=!0,e.noFontVariant||(a.variant.arrayOk=!0),e.noFontTextcase||(a.textcase.arrayOk=!0),e.noFontLineposition||(a.lineposition.arrayOk=!0),e.noFontShadow||(a.shadow.arrayOk=!0),a.size.arrayOk=!0,a.color.arrayOk=!0),a}});var RS=ye((ctr,Vee)=>{"use strict";Vee.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var N1=ye((ftr,jee)=>{"use strict";var Gee=RS(),Hee=ec(),TO=Hee({editType:"none"});TO.family.dflt=Gee.HOVERFONT;TO.size.dflt=Gee.HOVERFONTSIZE;jee.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:TO,grouptitlefont:Hee({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 i3=ye((htr,Wee)=>{"use strict";var ftt=ec(),d6=N1().hoverlabel,v6=Ao().extendFlat;Wee.exports={hoverlabel:{bgcolor:v6({},d6.bgcolor,{arrayOk:!0}),bordercolor:v6({},d6.bordercolor,{arrayOk:!0}),font:ftt({arrayOk:!0,editType:"none"}),align:v6({},d6.align,{arrayOk:!0}),namelength:v6({},d6.namelength,{arrayOk:!0}),editType:"none"}}});var Vl=ye((dtr,Xee)=>{"use strict";var htt=ec(),dtt=i3();Xee.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:htt({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:dtt.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var sb=ye((vtr,Kee)=>{"use strict";var vtt=cd(),p6={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)"]]},Zee=p6.RdBu;function ptt(e,t){if(t||(t=Zee),!e)return t;function r(){try{e=p6[e]||JSON.parse(e)}catch(n){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),Yee(e)?e:t}function Yee(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;r{"use strict";lb.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];lb.defaultLine="#444";lb.lightLine="#eee";lb.background="#fff";lb.borderLine="#BEC8D9";lb.lightFraction=100*10/11});var Ca=ye((gtr,Jee)=>{"use strict";var _p=cd(),mtt=Eo(),ytt=vv().isTypedArray,fd=Jee.exports={},g6=Eh();fd.defaults=g6.defaults;var _tt=fd.defaultLine=g6.defaultLine;fd.lightLine=g6.lightLine;var SO=fd.background=g6.background;fd.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"};fd.rgb=function(e){return fd.tinyRGB(_p(e))};fd.opacity=function(e){return e?_p(e).getAlpha():0};fd.addOpacity=function(e,t){var r=_p(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"};fd.combine=function(e,t){var r=_p(e).toRgb();if(r.a===1)return _p(e).toRgbString();var n=_p(t||SO).toRgb(),i=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},a={r:i.r*(1-r.a)+r.r*r.a,g:i.g*(1-r.a)+r.g*r.a,b:i.b*(1-r.a)+r.b*r.a};return _p(a).toRgbString()};fd.interpolate=function(e,t,r){var n=_p(e).toRgb(),i=_p(t).toRgb(),a={r:r*n.r+(1-r)*i.r,g:r*n.g+(1-r)*i.g,b:r*n.b+(1-r)*i.b};return _p(a).toRgbString()};fd.contrast=function(e,t,r){var n=_p(e);n.getAlpha()!==1&&(n=_p(fd.combine(e,SO)));var i=n.isDark()?t?n.lighten(t):SO:r?n.darken(r):_tt;return i.toString()};fd.stroke=function(e,t){var r=_p(t);e.style({stroke:fd.tinyRGB(r),"stroke-opacity":r.getAlpha()})};fd.fill=function(e,t){var r=_p(t);e.style({fill:fd.tinyRGB(r),"fill-opacity":r.getAlpha()})};fd.clean=function(e){if(!(!e||typeof e!="object")){var t=Object.keys(e),r,n,i,a;for(r=0;r=0)))return e;if(a===3)n[a]>1&&(n[a]=1);else if(n[a]>=1)return e}var o=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return i?"rgba("+o+", "+n[3]+")":"rgb("+o+")"}});var U1=ye((mtr,$ee)=>{"use strict";$ee.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var n3=ye(Qee=>{"use strict";Qee.counter=function(e,t,r,n){var i=(t||"")+(r?"":"$"),a=n===!1?"":"^";return e==="xy"?new RegExp(a+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+i):new RegExp(a+e+"([2-9]|[1-9][0-9]+)?"+i)}});var ite=ye(xp=>{"use strict";var MO=Eo(),ete=cd(),tte=Ao().extendFlat,xtt=Vl(),btt=sb(),wtt=Ca(),Ttt=U1().DESELECTDIM,a3=CS(),rte=n3().counter,Att=r3().modHalf,dm=vv().isArrayOrTypedArray,V1=vv().isTypedArraySpec,G1=vv().decodeTypedArraySpec;xp.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(dm(e)?e:V1(e)?G1(e):r)}},enumerated:{coerceFunction:function(e,t,r,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,n=0;nn.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}V1(e)&&(e=G1(e)),e%1||!MO(e)||n.min!==void 0&&en.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,n){if(typeof e!="string"){var i=typeof e=="number";n.strict===!0||!i?t.set(r):t.set(String(e))}else n.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){V1(e)&&(e=G1(e)),ete(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function n(i){return ete(i).isValid()}!Array.isArray(e)||!e.length?t.set(r):e.every(n)?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(btt.get(e,r))}},angle:{coerceFunction:function(e,t,r){V1(e)&&(e=G1(e)),e==="auto"?t.set("auto"):MO(e)?t.set(Att(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,n){var i=n.regex||rte(r);if(typeof e=="string"&&i.test(e)){t.set(e);return}t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!rte(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var i=e.split("+"),a=0;a{"use strict";var nte={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:{}}},ate={};function ote(e,t){for(var r in e){var n=e[r];n.valType?t[r]=n.dflt:(t[r]||(t[r]={}),ote(n,t[r]))}}ote(nte,ate);ste.exports={configAttributes:nte,dfltConfig:ate}});var CO=ye((btr,lte)=>{"use strict";var EO=Oa(),Stt=Eo(),DS=[];lte.exports=function(e,t){if(DS.indexOf(e)!==-1)return;DS.push(e);var r=1e3;Stt(t)?r=t:t==="long"&&(r=3e3);var n=EO.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(DS);function a(o){o.duration(700).style("opacity",0).each("end",function(s){var l=DS.indexOf(s);l!==-1&&DS.splice(l,1),EO.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var s=EO.select(this);s.append("button").classed("notifier-close",!0).html("×").on("click",function(){s.transition().call(a)});for(var l=s.append("p"),u=o.split(//g),c=0;c{"use strict";var o3=ub().dfltConfig,kO=CO(),LO=ute.exports={};LO.log=function(){var e;if(o3.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};LO.warn=function(){var e;if(o3.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};LO.error=function(){var e;if(o3.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var y6=ye((Ttr,cte)=>{"use strict";cte.exports=function(){}});var PO=ye((Atr,fte)=>{"use strict";fte.exports=function(t,r){if(r instanceof RegExp){for(var n=r.toString(),i=0;i{hte.exports=Mtt;function Mtt(){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 pte=ye((Mtr,vte)=>{vte.exports=Ett;function Ett(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var mte=ye((Etr,gte)=>{gte.exports=Ctt;function Ctt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var IO=ye((Ctr,yte)=>{yte.exports=ktt;function ktt(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 xte=ye((ktr,_te)=>{_te.exports=Ltt;function Ltt(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var wte=ye((Ltr,bte)=>{bte.exports=Ptt;function Ptt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],h=t[10],d=t[11],v=t[12],x=t[13],b=t[14],p=t[15],C=r*s-n*o,E=r*l-i*o,A=r*u-a*o,L=n*l-i*s,_=n*u-a*s,k=i*u-a*l,M=c*x-f*v,g=c*b-h*v,P=c*p-d*v,T=f*b-h*x,z=f*p-d*x,O=h*p-d*b,V=C*O-E*z+A*T+L*P-_*g+k*M;return V?(V=1/V,e[0]=(s*O-l*z+u*T)*V,e[1]=(i*z-n*O-a*T)*V,e[2]=(x*k-b*_+p*L)*V,e[3]=(h*_-f*k-d*L)*V,e[4]=(l*P-o*O-u*g)*V,e[5]=(r*O-i*P+a*g)*V,e[6]=(b*A-v*k-p*E)*V,e[7]=(c*k-h*A+d*E)*V,e[8]=(o*z-s*P+u*M)*V,e[9]=(n*P-r*z-a*M)*V,e[10]=(v*_-x*A+p*C)*V,e[11]=(f*A-c*_-d*C)*V,e[12]=(s*g-o*T-l*M)*V,e[13]=(r*T-n*g+i*M)*V,e[14]=(x*E-v*L-b*C)*V,e[15]=(c*L-f*E+h*C)*V,e):null}});var Ate=ye((Ptr,Tte)=>{Tte.exports=Itt;function Itt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],h=t[10],d=t[11],v=t[12],x=t[13],b=t[14],p=t[15];return e[0]=s*(h*p-d*b)-f*(l*p-u*b)+x*(l*d-u*h),e[1]=-(n*(h*p-d*b)-f*(i*p-a*b)+x*(i*d-a*h)),e[2]=n*(l*p-u*b)-s*(i*p-a*b)+x*(i*u-a*l),e[3]=-(n*(l*d-u*h)-s*(i*d-a*h)+f*(i*u-a*l)),e[4]=-(o*(h*p-d*b)-c*(l*p-u*b)+v*(l*d-u*h)),e[5]=r*(h*p-d*b)-c*(i*p-a*b)+v*(i*d-a*h),e[6]=-(r*(l*p-u*b)-o*(i*p-a*b)+v*(i*u-a*l)),e[7]=r*(l*d-u*h)-o*(i*d-a*h)+c*(i*u-a*l),e[8]=o*(f*p-d*x)-c*(s*p-u*x)+v*(s*d-u*f),e[9]=-(r*(f*p-d*x)-c*(n*p-a*x)+v*(n*d-a*f)),e[10]=r*(s*p-u*x)-o*(n*p-a*x)+v*(n*u-a*s),e[11]=-(r*(s*d-u*f)-o*(n*d-a*f)+c*(n*u-a*s)),e[12]=-(o*(f*b-h*x)-c*(s*b-l*x)+v*(s*h-l*f)),e[13]=r*(f*b-h*x)-c*(n*b-i*x)+v*(n*h-i*f),e[14]=-(r*(s*b-l*x)-o*(n*b-i*x)+v*(n*l-i*s)),e[15]=r*(s*h-l*f)-o*(n*h-i*f)+c*(n*l-i*s),e}});var Mte=ye((Itr,Ste)=>{Ste.exports=Rtt;function Rtt(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],f=e[10],h=e[11],d=e[12],v=e[13],x=e[14],b=e[15],p=t*o-r*a,C=t*s-n*a,E=t*l-i*a,A=r*s-n*o,L=r*l-i*o,_=n*l-i*s,k=u*v-c*d,M=u*x-f*d,g=u*b-h*d,P=c*x-f*v,T=c*b-h*v,z=f*b-h*x;return p*z-C*T+E*P+A*g-L*M+_*k}});var Cte=ye((Rtr,Ete)=>{Ete.exports=Dtt;function Dtt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],f=t[8],h=t[9],d=t[10],v=t[11],x=t[12],b=t[13],p=t[14],C=t[15],E=r[0],A=r[1],L=r[2],_=r[3];return e[0]=E*n+A*s+L*f+_*x,e[1]=E*i+A*l+L*h+_*b,e[2]=E*a+A*u+L*d+_*p,e[3]=E*o+A*c+L*v+_*C,E=r[4],A=r[5],L=r[6],_=r[7],e[4]=E*n+A*s+L*f+_*x,e[5]=E*i+A*l+L*h+_*b,e[6]=E*a+A*u+L*d+_*p,e[7]=E*o+A*c+L*v+_*C,E=r[8],A=r[9],L=r[10],_=r[11],e[8]=E*n+A*s+L*f+_*x,e[9]=E*i+A*l+L*h+_*b,e[10]=E*a+A*u+L*d+_*p,e[11]=E*o+A*c+L*v+_*C,E=r[12],A=r[13],L=r[14],_=r[15],e[12]=E*n+A*s+L*f+_*x,e[13]=E*i+A*l+L*h+_*b,e[14]=E*a+A*u+L*d+_*p,e[15]=E*o+A*c+L*v+_*C,e}});var Lte=ye((Dtr,kte)=>{kte.exports=Ftt;function Ftt(e,t,r){var n=r[0],i=r[1],a=r[2],o,s,l,u,c,f,h,d,v,x,b,p;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],c=t[4],f=t[5],h=t[6],d=t[7],v=t[8],x=t[9],b=t[10],p=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=c,e[5]=f,e[6]=h,e[7]=d,e[8]=v,e[9]=x,e[10]=b,e[11]=p,e[12]=o*n+c*i+v*a+t[12],e[13]=s*n+f*i+x*a+t[13],e[14]=l*n+h*i+b*a+t[14],e[15]=u*n+d*i+p*a+t[15]),e}});var Ite=ye((Ftr,Pte)=>{Pte.exports=ztt;function ztt(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var Dte=ye((ztr,Rte)=>{Rte.exports=Ott;function Ott(e,t,r,n){var i=n[0],a=n[1],o=n[2],s=Math.sqrt(i*i+a*a+o*o),l,u,c,f,h,d,v,x,b,p,C,E,A,L,_,k,M,g,P,T,z,O,V,G;return Math.abs(s)<1e-6?null:(s=1/s,i*=s,a*=s,o*=s,l=Math.sin(r),u=Math.cos(r),c=1-u,f=t[0],h=t[1],d=t[2],v=t[3],x=t[4],b=t[5],p=t[6],C=t[7],E=t[8],A=t[9],L=t[10],_=t[11],k=i*i*c+u,M=a*i*c+o*l,g=o*i*c-a*l,P=i*a*c-o*l,T=a*a*c+u,z=o*a*c+i*l,O=i*o*c+a*l,V=a*o*c-i*l,G=o*o*c+u,e[0]=f*k+x*M+E*g,e[1]=h*k+b*M+A*g,e[2]=d*k+p*M+L*g,e[3]=v*k+C*M+_*g,e[4]=f*P+x*T+E*z,e[5]=h*P+b*T+A*z,e[6]=d*P+p*T+L*z,e[7]=v*P+C*T+_*z,e[8]=f*O+x*V+E*G,e[9]=h*O+b*V+A*G,e[10]=d*O+p*V+L*G,e[11]=v*O+C*V+_*G,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var zte=ye((Otr,Fte)=>{Fte.exports=qtt;function qtt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],f=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+u*n,e[5]=o*i+c*n,e[6]=s*i+f*n,e[7]=l*i+h*n,e[8]=u*i-a*n,e[9]=c*i-o*n,e[10]=f*i-s*n,e[11]=h*i-l*n,e}});var qte=ye((qtr,Ote)=>{Ote.exports=Btt;function Btt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[8],c=t[9],f=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-u*n,e[1]=o*i-c*n,e[2]=s*i-f*n,e[3]=l*i-h*n,e[8]=a*n+u*i,e[9]=o*n+c*i,e[10]=s*n+f*i,e[11]=l*n+h*i,e}});var Nte=ye((Btr,Bte)=>{Bte.exports=Ntt;function Ntt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[4],c=t[5],f=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+u*n,e[1]=o*i+c*n,e[2]=s*i+f*n,e[3]=l*i+h*n,e[4]=u*i-a*n,e[5]=c*i-o*n,e[6]=f*i-s*n,e[7]=h*i-l*n,e}});var Vte=ye((Ntr,Ute)=>{Ute.exports=Utt;function Utt(e,t,r){var n,i,a,o=r[0],s=r[1],l=r[2],u=Math.sqrt(o*o+s*s+l*l);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,s*=u,l*=u,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=s*o*a+l*n,e[2]=l*o*a-s*n,e[3]=0,e[4]=o*s*a-l*n,e[5]=s*s*a+i,e[6]=l*s*a+o*n,e[7]=0,e[8]=o*l*a+s*n,e[9]=s*l*a-o*n,e[10]=l*l*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var Hte=ye((Utr,Gte)=>{Gte.exports=Vtt;function Vtt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=n+n,l=i+i,u=a+a,c=n*s,f=n*l,h=n*u,d=i*l,v=i*u,x=a*u,b=o*s,p=o*l,C=o*u;return e[0]=1-(d+x),e[1]=f+C,e[2]=h-p,e[3]=0,e[4]=f-C,e[5]=1-(c+x),e[6]=v+b,e[7]=0,e[8]=h+p,e[9]=v-b,e[10]=1-(c+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var Wte=ye((Vtr,jte)=>{jte.exports=Gtt;function Gtt(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Zte=ye((Gtr,Xte)=>{Xte.exports=Htt;function Htt(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var Kte=ye((Htr,Yte)=>{Yte.exports=jtt;function jtt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var $te=ye((jtr,Jte)=>{Jte.exports=Wtt;function Wtt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var ere=ye((Wtr,Qte)=>{Qte.exports=Xtt;function Xtt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var RO=ye((Xtr,tre)=>{tre.exports=Ztt;function Ztt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,s=n+n,l=i+i,u=r*o,c=n*o,f=n*s,h=i*o,d=i*s,v=i*l,x=a*o,b=a*s,p=a*l;return e[0]=1-f-v,e[1]=c+p,e[2]=h-b,e[3]=0,e[4]=c-p,e[5]=1-u-v,e[6]=d+x,e[7]=0,e[8]=h+b,e[9]=d-x,e[10]=1-u-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var ire=ye((Ztr,rre)=>{rre.exports=Ytt;function Ytt(e,t,r,n,i,a,o){var s=1/(r-t),l=1/(i-n),u=1/(a-o);return e[0]=a*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*l,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(i+n)*l,e[10]=(o+a)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*u,e[15]=0,e}});var are=ye((Ytr,nre)=>{nre.exports=Ktt;function Ktt(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}});var sre=ye((Ktr,ore)=>{ore.exports=Jtt;function Jtt(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(i+a);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-s)*l*.5),e[9]=(i-a)*u*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}});var ure=ye((Jtr,lre)=>{lre.exports=$tt;function $tt(e,t,r,n,i,a,o){var s=1/(t-r),l=1/(n-i),u=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*s,e[13]=(i+n)*l,e[14]=(o+a)*u,e[15]=1,e}});var fre=ye(($tr,cre)=>{var Qtt=IO();cre.exports=ert;function ert(e,t,r,n){var i,a,o,s,l,u,c,f,h,d,v=t[0],x=t[1],b=t[2],p=n[0],C=n[1],E=n[2],A=r[0],L=r[1],_=r[2];return Math.abs(v-A)<1e-6&&Math.abs(x-L)<1e-6&&Math.abs(b-_)<1e-6?Qtt(e):(c=v-A,f=x-L,h=b-_,d=1/Math.sqrt(c*c+f*f+h*h),c*=d,f*=d,h*=d,i=C*h-E*f,a=E*c-p*h,o=p*f-C*c,d=Math.sqrt(i*i+a*a+o*o),d?(d=1/d,i*=d,a*=d,o*=d):(i=0,a=0,o=0),s=f*o-h*a,l=h*i-c*o,u=c*a-f*i,d=Math.sqrt(s*s+l*l+u*u),d?(d=1/d,s*=d,l*=d,u*=d):(s=0,l=0,u=0),e[0]=i,e[1]=s,e[2]=c,e[3]=0,e[4]=a,e[5]=l,e[6]=f,e[7]=0,e[8]=o,e[9]=u,e[10]=h,e[11]=0,e[12]=-(i*v+a*x+o*b),e[13]=-(s*v+l*x+u*b),e[14]=-(c*v+f*x+h*b),e[15]=1,e)}});var dre=ye((Qtr,hre)=>{hre.exports=trt;function trt(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var DO=ye((err,vre)=>{vre.exports={create:dte(),clone:pte(),copy:mte(),identity:IO(),transpose:xte(),invert:wte(),adjoint:Ate(),determinant:Mte(),multiply:Cte(),translate:Lte(),scale:Ite(),rotate:Dte(),rotateX:zte(),rotateY:qte(),rotateZ:Nte(),fromRotation:Vte(),fromRotationTranslation:Hte(),fromScaling:Wte(),fromTranslation:Zte(),fromXRotation:Kte(),fromYRotation:$te(),fromZRotation:ere(),fromQuat:RO(),frustum:ire(),perspective:are(),perspectiveFromFieldOfView:sre(),ortho:ure(),lookAt:fre(),str:dre()}});var _6=ye(fh=>{"use strict";var rrt=DO();fh.init2dArray=function(e,t){for(var r=new Array(e),n=0;n{"use strict";var irt=Oa(),pre=H1(),nrt=_6(),art=DO();function ort(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function srt(e){var t=irt.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function gre(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function lrt(e,t){mre("global",e,t)}function mre(e,t,r){var n="plotly.js-style-"+e,i=document.getElementById(n);if(!(i&&i.matches(".no-inline-styles"))){i||(i=document.createElement("style"),i.setAttribute("id",n),i.appendChild(document.createTextNode("")),document.head.appendChild(i));var a=i.sheet;a?a.insertRule?a.insertRule(t+"{"+r+"}",0):a.addRule?a.addRule(t,r,0):pre.warn("addStyleRule failed"):pre.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function urt(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&gre(r)}function crt(e,t,r,n,i,a){var o=n.split(":"),s=i.split(":"),l="data-btn-style-event-added";a||(a=document),a.querySelectorAll(e).forEach(function(u){u.getAttribute(l)||(u.addEventListener("mouseenter",function(){var c=this.querySelector(r);c&&(c.style[o[0]]=o[1])}),u.addEventListener("mouseleave",function(){var c=this.querySelector(r);c&&(t&&this.matches(t)?c.style[o[0]]=o[1]:c.style[s[0]]=s[1])}),u.setAttribute(l,!0))})}function frt(e){var t=_re(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(n){var i=yre(n);if(i){var a=nrt.convertCssMatrix(i);r=art.multiply(r,r,a)}}),r}function yre(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function _re(e){for(var t=[];hrt(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function hrt(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function drt(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}xre.exports={getGraphDiv:ort,isPlotDiv:srt,removeElement:gre,addStyleRule:lrt,addRelatedStyleRule:mre,deleteRelatedStyleRule:urt,setStyleOnHover:crt,getFullTransformMatrix:frt,getElementTransformMatrix:yre,getElementAndAncestors:_re,equalDomRects:drt}});var zS=ye((irr,bre)=>{"use strict";bre.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var mc=ye((nrr,Cre)=>{"use strict";var Tre=Ao().extendFlat,vrt=gy(),Are={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},Sre={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},prt=Are.flags.slice().concat(["fullReplot"]),grt=Sre.flags.slice().concat("layoutReplot");Cre.exports={traces:Are,layout:Sre,traceFlags:function(){return wre(prt)},layoutFlags:function(){return wre(grt)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var n=r.split("+"),i=0;i{"use strict";FO.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};FO.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var zO=ye((orr,kre)=>{"use strict";kre.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 rs=ye(x6=>{"use strict";var Lre=zO(),srr=Lre.FORMAT_LINK,lrr=Lre.DATE_FORMAT_LINK;function OO(e){var t=e.description?" "+e.description:"",r=e.keys||[];if(r.length>0){for(var n=[],i=0;i{"use strict";function j1(e,t){return t?t.d2l(e):e}function Pre(e,t){return t?t.l2d(e):e}function mrt(e){return e.x0}function yrt(e){return e.x1}function _rt(e){return e.y0}function xrt(e){return e.y1}function Ire(e){return e.x0shift||0}function Rre(e){return e.x1shift||0}function Dre(e){return e.y0shift||0}function Fre(e){return e.y1shift||0}function b6(e,t){return j1(e.x1,t)+Rre(e)-j1(e.x0,t)-Ire(e)}function w6(e,t,r){return j1(e.y1,r)+Fre(e)-j1(e.y0,r)-Dre(e)}function brt(e,t){return Math.abs(b6(e,t))}function wrt(e,t,r){return Math.abs(w6(e,t,r))}function Trt(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(b6(e,t),2)+Math.pow(w6(e,t,r),2))}function Art(e,t){return Pre((j1(e.x1,t)+Rre(e)+j1(e.x0,t)+Ire(e))/2,t)}function Srt(e,t,r){return Pre((j1(e.y1,r)+Fre(e)+j1(e.y0,r)+Dre(e))/2,r)}function Mrt(e,t,r){return e.type!=="line"?void 0:w6(e,t,r)/b6(e,t)}zre.exports={x0:mrt,x1:yrt,y0:_rt,y1:xrt,slope:Mrt,dx:b6,dy:w6,width:brt,height:wrt,length:Trt,xcenter:Art,ycenter:Srt}});var Bre=ye((frr,qre)=>{"use strict";var Ert=mc().overrideAll,cb=Vl(),Ore=ec(),Crt=Pd().dash,W1=Ao().extendFlat,krt=rs().shapeTexttemplateAttrs,Lrt=T6();qre.exports=Ert({newshape:{visible:W1({},cb.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:W1({},cb.legend,{}),legendgroup:W1({},cb.legendgroup,{}),legendgrouptitle:{text:W1({},cb.legendgrouptitle.text,{}),font:Ore({})},legendrank:W1({},cb.legendrank,{}),legendwidth:W1({},cb.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:W1({},Crt,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:W1({},cb.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:krt({newshape:!0},{keys:Object.keys(Lrt)}),font:Ore({}),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 Ure=ye((hrr,Nre)=>{"use strict";var Prt=Pd().dash,Irt=Ao().extendFlat;Nre.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:Irt({},Prt,{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 A6=ye((drr,Vre)=>{"use strict";Vre.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var s3=ye((vrr,Wre)=>{"use strict";var qO=ec(),Rrt=zS(),S6=Eh(),Gre=Bre(),Hre=Ure(),Drt=A6(),jre=Ao().extendFlat,M6=qO({editType:"calc"});M6.family.dflt='"Open Sans", verdana, arial, sans-serif';M6.size.dflt=12;M6.color.dflt=S6.defaultLine;Wre.exports={font:M6,title:{text:{valType:"string",editType:"layoutstyle"},font:qO({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:qO({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:jre(Drt({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:S6.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:S6.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:S6.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:Gre.newshape,activeshape:Gre.activeshape,newselection:Hre.newselection,activeselection:Hre.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:jre({},Rrt.transition,{editType:"none"})}});var Xre=ru(()=>{});var Frt={};var Zre=ru(()=>{Xre()});var qa=ye(tl=>{"use strict";var l3=H1(),Yre=y6(),Kre=PO(),zrt=gy(),Ort=FS().addStyleRule,Jre=Ao(),qrt=Vl(),Brt=s3(),Nrt=Jre.extendFlat,BO=Jre.extendDeepAll;tl.modules={};tl.allCategories={};tl.allTypes=[];tl.subplotsRegistry={};tl.componentsRegistry={};tl.layoutArrayContainers=[];tl.layoutArrayRegexes=[];tl.traceLayoutAttributes={};tl.localeRegistry={};tl.apiMethodRegistry={};tl.collectableSubplotTypes=null;tl.register=function(t){if(tl.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var Wrt=e3().timeFormat,lie=Eo(),NO=H1(),Z1=r3().mod,f3=hs(),_0=f3.BADNUM,bp=f3.ONEDAY,OS=f3.ONEHOUR,X1=f3.ONEMIN,c3=f3.ONESEC,qS=f3.EPOCHJD,my=qa(),rie=e3().utcFormat,Xrt=/^\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,Zrt=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,iie=new Date().getFullYear()-70;function yy(e){return e&&my.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}hh.dateTick0=function(e,t){var r=Yrt(e,!!t);if(t<2)return r;var n=hh.dateTime2ms(r,e);return n+=bp*(t-1),hh.ms2DateTime(n,0,e)};function Yrt(e,t){return yy(e)?t?my.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:my.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}hh.dfltRange=function(e){return yy(e)?my.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};hh.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var C6,k6;hh.dateTime2ms=function(e,t){if(hh.isJSDate(e)){var r=e.getTimezoneOffset()*X1,n=(e.getUTCMinutes()-e.getMinutes())*X1+(e.getUTCSeconds()-e.getSeconds())*c3+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var i=3*X1;r=r-i/2+Z1(n-r+i/2,i)}return e=Number(e)-r,e>=C6&&e<=k6?e:_0}if(typeof e!="string"&&typeof e!="number")return _0;e=String(e);var a=yy(t),o=e.charAt(0);a&&(o==="G"||o==="g")&&(e=e.substr(1),t="");var s=a&&t.substr(0,7)==="chinese",l=e.match(s?Zrt:Xrt);if(!l)return _0;var u=l[1],c=l[3]||"1",f=Number(l[5]||1),h=Number(l[7]||0),d=Number(l[9]||0),v=Number(l[11]||0);if(a){if(u.length===2)return _0;u=Number(u);var x;try{var b=my.getComponentMethod("calendars","getCal")(t);if(s){var p=c.charAt(c.length-1)==="i";c=parseInt(c,10),x=b.newDate(u,b.toMonthIndex(u,c,p),f)}else x=b.newDate(u,Number(c),f)}catch(E){return _0}return x?(x.toJD()-qS)*bp+h*OS+d*X1+v*c3:_0}u.length===2?u=(Number(u)+2e3-iie)%100+iie:u=Number(u),c-=1;var C=new Date(Date.UTC(2e3,c,f,h,d));return C.setUTCFullYear(u),C.getUTCMonth()!==c||C.getUTCDate()!==f?_0:C.getTime()+v*c3};C6=hh.MIN_MS=hh.dateTime2ms("-9999");k6=hh.MAX_MS=hh.dateTime2ms("9999-12-31 23:59:59.9999");hh.isDateTime=function(e,t){return hh.dateTime2ms(e,t)!==_0};function u3(e,t){return String(e+Math.pow(10,t)).substr(1)}var E6=90*bp,nie=3*OS,aie=5*X1;hh.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=C6&&e<=k6))return _0;t||(t=0);var n=Math.floor(Z1(e+.05,1)*10),i=Math.round(e-n/10),a,o,s,l,u,c;if(yy(r)){var f=Math.floor(i/bp)+qS,h=Math.floor(Z1(e,bp));try{a=my.getComponentMethod("calendars","getCal")(r).fromJD(f).formatDate("yyyy-mm-dd")}catch(d){a=rie("G%Y-%m-%d")(new Date(i))}if(a.charAt(0)==="-")for(;a.length<11;)a="-0"+a.substr(1);else for(;a.length<10;)a="0"+a;o=t=C6+bp&&e<=k6-bp))return _0;var t=Math.floor(Z1(e+.05,1)*10),r=new Date(Math.round(e-t/10)),n=Wrt("%Y-%m-%d")(r),i=r.getHours(),a=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return uie(n,i,a,o,s)};function uie(e,t,r,n,i){if((t||r||n||i)&&(e+=" "+u3(t,2)+":"+u3(r,2),(n||i)&&(e+=":"+u3(n,2),i))){for(var a=4;i%10===0;)a-=1,i/=10;e+="."+u3(i,a)}return e}hh.cleanDate=function(e,t,r){if(e===_0)return t;if(hh.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(yy(r))return NO.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=hh.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!hh.isDateTime(e,r))return NO.error("unrecognized date",e),t;return e};var Krt=/%\d?f/g,Jrt=/%h/g,$rt={1:"1",2:"1",3:"2",4:"2"};function oie(e,t,r,n){e=e.replace(Krt,function(a){var o=Math.min(+a.charAt(1)||6,6),s=(t/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return s});var i=new Date(Math.floor(t+.05));if(e=e.replace(Jrt,function(){return $rt[r("%q")(i)]}),yy(n))try{e=my.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(a){return"Invalid"}return r(e)(i)}var Qrt=[59,59.9,59.99,59.999,59.9999];function eit(e,t){var r=Z1(e+.05,bp),n=u3(Math.floor(r/OS),2)+":"+u3(Z1(Math.floor(r/X1),60),2);if(t!=="M"){lie(t)||(t=0);var i=Math.min(Z1(e/c3,60),Qrt[t]),a=(100+i).toFixed(t).substr(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+a}return n}hh.formatDate=function(e,t,r,n,i,a){if(i=yy(i)&&i,!t)if(r==="y")t=a.year;else if(r==="m")t=a.month;else if(r==="d")t=a.dayMonth+` -`+a.year;else return eit(e,r)+` -`+oie(a.dayMonthYear,e,n,i);return oie(t,e,n,i)};var sie=3*bp;hh.incrementMonth=function(e,t,r){r=yy(r)&&r;var n=Z1(e,bp);if(e=Math.round(e-n),r)try{var i=Math.round(e/bp)+qS,a=my.getComponentMethod("calendars","getCal")(r),o=a.fromJD(i);return t%12?a.add(o,t,"m"):a.add(o,t/12,"y"),(o.toJD()-qS)*bp+n}catch(l){NO.error("invalid ms "+e+" in calendar "+r)}var s=new Date(e+sie);return s.setUTCMonth(s.getUTCMonth()+t)+n-sie};hh.findExactDates=function(e,t){for(var r=0,n=0,i=0,a=0,o,s,l=yy(t)&&my.getComponentMethod("calendars","getCal")(t),u=0;u{"use strict";fie.exports=function(t){return t}});var L6=ye(_y=>{"use strict";var tit=Eo(),rit=H1(),iit=BS(),nit=hs().BADNUM,UO=1e-9;_y.findBin=function(e,t,r){if(tit(t.start))return r?Math.ceil((e-t.start)/t.size-UO)-1:Math.floor((e-t.start)/t.size+UO);var n=0,i=t.length,a=0,o=i>1?(t[i-1]-t[0])/(i-1):1,s,l;for(o>=0?l=r?ait:oit:l=r?lit:sit,e+=o*UO*(r?-1:1)*(o>=0?1:-1);n90&&rit.log("Long binary search..."),n-1};function ait(e,t){return et}function lit(e,t){return e>=t}_y.sorterAsc=function(e,t){return e-t};_y.sorterDes=function(e,t){return t-e};_y.distinctVals=function(e){var t=e.slice();t.sort(_y.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===nit;r--);for(var n=t[r]-t[0]||1,i=n/(r||1)/1e4,a=[],o,s=0;s<=r;s++){var l=t[s],u=l-o;o===void 0?(a.push(l),o=l):u>i&&(n=Math.min(n,u),a.push(l),o=l)}return{vals:a,minDiff:n}};_y.roundUp=function(e,t,r){for(var n=0,i=t.length-1,a,o=0,s=r?0:1,l=r?1:0,u=r?Math.ceil:Math.floor;n0&&(n=1),r&&n)return e.sort(t)}return n?e:e.reverse()};_y.findIndexOfMin=function(e,t){t=t||iit;for(var r=1/0,n,i=0;i{"use strict";hie.exports=function(t){return Object.keys(t).sort()}});var die=ye(dh=>{"use strict";var NS=Eo(),uit=vv().isArrayOrTypedArray;dh.aggNums=function(e,t,r,n){var i,a;if((!n||n>r.length)&&(n=r.length),NS(t)||(t=!1),uit(r[0])){for(a=new Array(n),i=0;ie.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var yie=ye((Arr,mie)=>{"use strict";var vie=r3(),VO=vie.mod,cit=vie.modHalf,US=Math.PI,K1=2*US;function fit(e){return e/180*US}function hit(e){return e/US*180}function GO(e){return Math.abs(e[1]-e[0])>K1-1e-14}function pie(e,t){return cit(t-e,K1)}function dit(e,t){return Math.abs(pie(e,t))}function gie(e,t){if(GO(t))return!0;var r,n;t[0]n&&(n+=K1);var i=VO(e,K1),a=i+K1;return i>=r&&i<=n||a>=r&&a<=n}function vit(e,t,r,n){if(!gie(t,n))return!1;var i,a;return r[0]=i&&e<=a}function HO(e,t,r,n,i,a,o){i=i||0,a=a||0;var s=GO([r,n]),l,u,c,f,h;s?(l=0,u=US,c=K1):r{"use strict";fb.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};fb.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};fb.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};fb.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};fb.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};fb.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var wie=ye(hb=>{"use strict";var jO=r3().mod;hb.segmentsIntersect=bie;function bie(e,t,r,n,i,a,o,s){var l=r-e,u=i-e,c=o-i,f=n-t,h=a-t,d=s-a,v=l*d-c*f;if(v===0)return null;var x=(u*d-c*h)/v,b=(u*f-l*h)/v;return b<0||b>1||x<0||x>1?null:{x:e+l*x,y:t+f*x}}hb.segmentDistance=function(t,r,n,i,a,o,s,l){if(bie(t,r,n,i,a,o,s,l))return 0;var u=n-t,c=i-r,f=s-a,h=l-o,d=u*u+c*c,v=f*f+h*h,x=Math.min(P6(u,c,d,a-t,o-r),P6(u,c,d,s-t,l-r),P6(f,h,v,t-a,r-o),P6(f,h,v,n-a,i-o));return Math.sqrt(x)};function P6(e,t,r,n,i){var a=n*e+i*t;if(a<0)return n*n+i*i;if(a>r){var o=n-e,s=i-t;return o*o+s*s}else{var l=n*t-i*e;return l*l/r}}var I6,WO,xie;hb.getTextLocation=function(t,r,n,i){if((t!==WO||i!==xie)&&(I6={},WO=t,xie=i),I6[n])return I6[n];var a=t.getPointAtLength(jO(n-i/2,r)),o=t.getPointAtLength(jO(n+i/2,r)),s=Math.atan((o.y-a.y)/(o.x-a.x)),l=t.getPointAtLength(jO(n,r)),u=(l.x*4+a.x+o.x)/6,c=(l.y*4+a.y+o.y)/6,f={x:u,y:c,theta:s};return I6[n]=f,f};hb.clearLocationCache=function(){WO=null};hb.getVisibleSegment=function(t,r,n){var i=r.left,a=r.right,o=r.top,s=r.bottom,l=0,u=t.getTotalLength(),c=u,f,h;function d(x){var b=t.getPointAtLength(x);x===0?f=b:x===u&&(h=b);var p=b.xa?b.x-a:0,C=b.ys?b.y-s:0;return Math.sqrt(p*p+C*C)}for(var v=d(l);v;){if(l+=v+n,l>c)return;v=d(l)}for(v=d(c);v;){if(c-=v+n,l>c)return;v=d(c)}return{min:l,max:c,len:c-l,total:u,isClosed:l===0&&c===u&&Math.abs(f.x-h.x)<.1&&Math.abs(f.y-h.y)<.1}};hb.findPointOnPath=function(t,r,n,i){i=i||{};for(var a=i.pathLength||t.getTotalLength(),o=i.tolerance||.001,s=i.iterationLimit||30,l=t.getPointAtLength(0)[n]>t.getPointAtLength(a)[n]?-1:1,u=0,c=0,f=a,h,d,v;u0?f=h:c=h,u++}return d}});var R6=ye(VS=>{"use strict";var xy={};VS.throttle=function(t,r,n){var i=xy[t],a=Date.now();if(!i){for(var o in xy)xy[o].tsi.ts+r){s();return}i.timer=setTimeout(function(){s(),i.timer=null},r)};VS.done=function(e){var t=xy[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var n=t.onDone;t.onDone=function(){n&&n(),r(),t.onDone=null}})};VS.clear=function(e){if(e)Tie(xy[e]),delete xy[e];else for(var t in xy)VS.clear(t)};function Tie(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Sie=ye((Crr,Aie)=>{"use strict";Aie.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var Mie=ye((krr,D6)=>{"use strict";D6.exports=XO;D6.exports.isMobile=XO;D6.exports.default=XO;var yit=/(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,_it=/CrOS/,xit=/android|ipad|playbook|silk/i;function XO(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=yit.test(t)&&!_it.test(t)||!!e.tablet&&xit.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var Cie=ye((Lrr,Eie)=>{"use strict";var bit=Eo(),wit=Mie();Eie.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=Tit(),typeof r!="string")return!0;var n=wit({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!n)for(var i=r.split(" "),a=1;a-1;s--){var l=i[s];if(l.substr(0,8)==="Version/"){var u=l.substr(8).split(".")[0];if(bit(u)&&(u=+u),u>=13)return!0}}}return n};function Tit(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var Lie=ye((Prr,kie)=>{"use strict";var Ait=Oa();kie.exports=function(t,r,n){var i=t.selectAll("g."+n.replace(/\s/g,".")).data(r,function(o){return o[0].trace.uid});i.exit().remove(),i.enter().append("g").attr("class",n),i.order();var a=t.classed("rangeplot")?"nodeRangePlot3":"node3";return i.each(function(o){o[0][a]=Ait.select(this)}),i}});var Iie=ye((Irr,Pie)=>{"use strict";var Sit=qa();Pie.exports=function(t,r){for(var n=t._context.locale,i=0;i<2;i++){for(var a=t._context.locales,o=0;o<2;o++){var s=(a[n]||{}).dictionary;if(s){var l=s[r];if(l)return l}a=Sit.localeRegistry}var u=n.split("-")[0];if(u===n)break;n=u}return r}});var ZO=ye((Rrr,Rie)=>{"use strict";Rie.exports=function(t){for(var r={},n=[],i=0,a=0;a{"use strict";Die.exports=function(t){for(var r=Cit(t)?Eit:Mit,n=[],i=0;i{"use strict";zie.exports=function(t,r){if(!r)return t;var n=1/Math.abs(r),i=n>1?(n*t+n*r)/n:t+r,a=String(i).length;if(a>16){var o=String(r).length,s=String(t).length;if(a>=s+o){var l=parseFloat(i).toPrecision(12);l.indexOf("e+")===-1&&(i=+l)}}return i}});var Bie=ye((zrr,qie)=>{"use strict";var kit=Eo(),Lit=hs().BADNUM,Pit=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;qie.exports=function(t){return typeof t=="string"&&(t=t.replace(Pit,"")),kit(t)?Number(t):Lit}});var Dr=ye((Orr,$ie)=>{"use strict";var GS=Oa(),Iit=e3().utcFormat,Rit=mO().format,jie=Eo(),Wie=hs(),Xie=Wie.FP_SAFE,Dit=-Xie,Nie=Wie.BADNUM,Si=$ie.exports={};Si.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:t==="0.f"?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var Uie={};Si.warnBadFormat=function(e){var t=String(e);Uie[t]||(Uie[t]=1,Si.warn('encountered bad format: "'+t+'"'))};Si.noFormat=function(e){return String(e)};Si.numberFormat=function(e){var t;try{t=Rit(Si.adjustFormat(e))}catch(r){return Si.warnBadFormat(e),Si.noFormat}return t};Si.nestedProperty=CS();Si.keyedContainer=Iee();Si.relativeAttr=Dee();Si.isPlainObject=gy();Si.toLogRange=f6();Si.relinkPrivateKeys=qee();var J1=vv();Si.isArrayBuffer=J1.isArrayBuffer;Si.isTypedArray=J1.isTypedArray;Si.isArrayOrTypedArray=J1.isArrayOrTypedArray;Si.isArray1D=J1.isArray1D;Si.ensureArray=J1.ensureArray;Si.concat=J1.concat;Si.maxRowLength=J1.maxRowLength;Si.minRowLength=J1.minRowLength;var Zie=r3();Si.mod=Zie.mod;Si.modHalf=Zie.modHalf;var $1=ite();Si.valObjectMeta=$1.valObjectMeta;Si.coerce=$1.coerce;Si.coerce2=$1.coerce2;Si.coerceFont=$1.coerceFont;Si.coercePattern=$1.coercePattern;Si.coerceHoverinfo=$1.coerceHoverinfo;Si.coerceSelectionMarkerOpacity=$1.coerceSelectionMarkerOpacity;Si.validate=$1.validate;var jp=cie();Si.dateTime2ms=jp.dateTime2ms;Si.isDateTime=jp.isDateTime;Si.ms2DateTime=jp.ms2DateTime;Si.ms2DateTimeLocal=jp.ms2DateTimeLocal;Si.cleanDate=jp.cleanDate;Si.isJSDate=jp.isJSDate;Si.formatDate=jp.formatDate;Si.incrementMonth=jp.incrementMonth;Si.dateTick0=jp.dateTick0;Si.dfltRange=jp.dfltRange;Si.findExactDates=jp.findExactDates;Si.MIN_MS=jp.MIN_MS;Si.MAX_MS=jp.MAX_MS;var db=L6();Si.findBin=db.findBin;Si.sorterAsc=db.sorterAsc;Si.sorterDes=db.sorterDes;Si.distinctVals=db.distinctVals;Si.roundUp=db.roundUp;Si.sort=db.sort;Si.findIndexOfMin=db.findIndexOfMin;Si.sortObjectKeys=Y1();var by=die();Si.aggNums=by.aggNums;Si.len=by.len;Si.mean=by.mean;Si.geometricMean=by.geometricMean;Si.median=by.median;Si.midRange=by.midRange;Si.variance=by.variance;Si.stdev=by.stdev;Si.interp=by.interp;var yg=_6();Si.init2dArray=yg.init2dArray;Si.transposeRagged=yg.transposeRagged;Si.dot=yg.dot;Si.translationMatrix=yg.translationMatrix;Si.rotationMatrix=yg.rotationMatrix;Si.rotationXYMatrix=yg.rotationXYMatrix;Si.apply3DTransform=yg.apply3DTransform;Si.apply2DTransform=yg.apply2DTransform;Si.apply2DTransform2=yg.apply2DTransform2;Si.convertCssMatrix=yg.convertCssMatrix;Si.inverseTransformMatrix=yg.inverseTransformMatrix;var vm=yie();Si.deg2rad=vm.deg2rad;Si.rad2deg=vm.rad2deg;Si.angleDelta=vm.angleDelta;Si.angleDist=vm.angleDist;Si.isFullCircle=vm.isFullCircle;Si.isAngleInsideSector=vm.isAngleInsideSector;Si.isPtInsideSector=vm.isPtInsideSector;Si.pathArc=vm.pathArc;Si.pathSector=vm.pathSector;Si.pathAnnulus=vm.pathAnnulus;var d3=_ie();Si.isLeftAnchor=d3.isLeftAnchor;Si.isCenterAnchor=d3.isCenterAnchor;Si.isRightAnchor=d3.isRightAnchor;Si.isTopAnchor=d3.isTopAnchor;Si.isMiddleAnchor=d3.isMiddleAnchor;Si.isBottomAnchor=d3.isBottomAnchor;var v3=wie();Si.segmentsIntersect=v3.segmentsIntersect;Si.segmentDistance=v3.segmentDistance;Si.getTextLocation=v3.getTextLocation;Si.clearLocationCache=v3.clearLocationCache;Si.getVisibleSegment=v3.getVisibleSegment;Si.findPointOnPath=v3.findPointOnPath;var O6=Ao();Si.extendFlat=O6.extendFlat;Si.extendDeep=O6.extendDeep;Si.extendDeepAll=O6.extendDeepAll;Si.extendDeepNoArrays=O6.extendDeepNoArrays;var YO=H1();Si.log=YO.log;Si.warn=YO.warn;Si.error=YO.error;var Fit=n3();Si.counterRegex=Fit.counter;var KO=R6();Si.throttle=KO.throttle;Si.throttleDone=KO.done;Si.clearThrottle=KO.clear;var _g=FS();Si.getGraphDiv=_g.getGraphDiv;Si.isPlotDiv=_g.isPlotDiv;Si.removeElement=_g.removeElement;Si.addStyleRule=_g.addStyleRule;Si.addRelatedStyleRule=_g.addRelatedStyleRule;Si.deleteRelatedStyleRule=_g.deleteRelatedStyleRule;Si.setStyleOnHover=_g.setStyleOnHover;Si.getFullTransformMatrix=_g.getFullTransformMatrix;Si.getElementTransformMatrix=_g.getElementTransformMatrix;Si.getElementAndAncestors=_g.getElementAndAncestors;Si.equalDomRects=_g.equalDomRects;Si.clearResponsive=Sie();Si.preserveDrawingBuffer=Cie();Si.makeTraceGroups=Lie();Si._=Iie();Si.notifier=CO();Si.filterUnique=ZO();Si.filterVisible=Fie();Si.pushUnique=PO();Si.increment=Oie();Si.cleanNumber=Bie();Si.ensureNumber=function(t){return jie(t)?(t=Number(t),t>Xie||t=t?!1:jie(e)&&e>=0&&e%1===0};Si.noop=y6();Si.identity=BS();Si.repeat=function(e,t){for(var r=new Array(t),n=0;nr?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};Si.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};Si.simpleMap=function(e,t,r,n,i){for(var a=e.length,o=new Array(a),s=0;s=Math.pow(2,r)?i>10?(Si.warn("randstr failed uniqueness"),o):e(t,r,n,(i||0)+1):o};Si.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(n){n[t]=e,r[n.name]=n,r.optionList.push(n)},r["_"+t]=e,r};Si.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,n=2*r,i=2*t-1,a=new Array(i),o=new Array(r),s,l,u,c;for(s=0;s=n&&(u-=n*Math.floor(u/n)),u<0?u=-1-u:u>=r&&(u=n-1-u),c+=e[u]*a[l];o[s]=c}return o};Si.syncOrAsync=function(e,t,r){var n,i;function a(){return Si.syncOrAsync(e,t,r)}for(;e.length;)if(i=e.splice(0,1)[0],n=i(t),n&&n.then)return n.then(a);return r&&r(t)};Si.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};Si.noneOrAll=function(e,t,r){if(e){var n=!1,i=!0,a,o;for(a=0;a0?i:0})};Si.fillArray=function(e,t,r,n){if(n=n||Si.identity,Si.isArrayOrTypedArray(e))for(var i=0;i1?i+o[1]:"";if(a&&(o.length>1||s.length>4||r))for(;n.test(s);)s=s.replace(n,"$1"+a+"$2");return s+l};Si.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Jie=/^\w*$/;Si.templateString=function(e,t){var r={};return e.replace(Si.TEMPLATE_STRING_REGEX,function(n,i){var a;return Jie.test(i)?a=t[i]:(r[i]=r[i]||Si.nestedProperty(t,i).get,a=r[i](!0)),a!==void 0?a:""})};var Uit={max:10,count:0,name:"hovertemplate"};Si.hovertemplateString=function(){return JO.apply(Uit,arguments)};var Vit={max:10,count:0,name:"texttemplate"};Si.texttemplateString=function(){return JO.apply(Vit,arguments)};var Git=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Hit(e){var t=e.match(Git);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var jit={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Si.texttemplateStringForShapes=function(){return JO.apply(jit,arguments)};var Vie=/^[:|\|]/;function JO(e,t,r){var n=this,i=arguments;return t||(t={}),e.replace(Si.TEMPLATE_STRING_REGEX,function(a,o,s){var l=o==="xother"||o==="yother",u=o==="_xother"||o==="_yother",c=o==="_xother_"||o==="_yother_",f=o==="xother_"||o==="yother_",h=l||u||f||c,d=o;(u||c)&&(d=d.substring(1)),(f||c)&&(d=d.substring(0,d.length-1));var v=null,x=null;if(n.parseMultDiv){var b=Hit(d);d=b.key,v=b.op,x=b.number}var p;if(h){if(p=t[d],p===void 0)return""}else{var C,E;for(E=3;E=z6&&o<=Gie,u=s>=z6&&s<=Gie;if(l&&(n=10*n+o-z6),u&&(i=10*i+s-z6),!l||!u){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var h3=2e9;Si.seedPseudoRandom=function(){h3=2e9};Si.pseudoRandom=function(){var e=h3;return h3=(69069*h3+1)%4294967296,Math.abs(h3-e)<429496729?Si.pseudoRandom():h3/4294967296};Si.fillText=function(e,t,r){var n=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},i=Si.extractOption(e,t,"htx","hovertext");if(Si.isValidTextValue(i))return n(i);var a=Si.extractOption(e,t,"tx","text");if(Si.isValidTextValue(a))return n(a)};Si.isValidTextValue=function(e){return e||e===0};Si.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",n=0;n1&&(u=1):u=0,Si.strTranslate(i-u*(r+o),a-u*(n+s))+Si.strScale(u)+(l?"rotate("+l+(t?"":" "+r+" "+n)+")":"")};Si.setTransormAndDisplay=function(e,t){e.attr("transform",Si.getTextTransform(t)),e.style("display",t.scale?null:"none")};Si.ensureUniformFontSize=function(e,t){var r=Si.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};Si.join2=function(e,t,r){var n=e.length;return n>1?e.slice(0,-1).join(t)+r+e[n-1]:e.join(t)};Si.bigFont=function(e){return Math.round(1.2*e)};var Hie=Si.getFirefoxVersion(),Wit=Hie!==null&&Hie<86;Si.getPositionFromD3Event=function(){return Wit?[GS.event.layerX,GS.event.layerY]:[GS.event.offsetX,GS.event.offsetY]}});var tne=ye(()=>{"use strict";var Xit=Dr(),Qie={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .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($O in Qie)ene=$O.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Xit.addStyleRule(ene,Qie[$O]);var ene,$O});var QO=ye((Nrr,rne)=>{rne.exports=!0});var tq=ye((Urr,ine)=>{"use strict";var Zit=QO(),eq;typeof window.matchMedia=="function"?eq=!window.matchMedia("(hover: none)").matches:eq=Zit;ine.exports=eq});var vb=ye((Vrr,rq)=>{"use strict";var p3=typeof Reflect=="object"?Reflect:null,nne=p3&&typeof p3.apply=="function"?p3.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},q6;p3&&typeof p3.ownKeys=="function"?q6=p3.ownKeys:Object.getOwnPropertySymbols?q6=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:q6=function(t){return Object.getOwnPropertyNames(t)};function Yit(e){console&&console.warn&&console.warn(e)}var one=Number.isNaN||function(t){return t!==t};function Jc(){Jc.init.call(this)}rq.exports=Jc;rq.exports.once=Qit;Jc.EventEmitter=Jc;Jc.prototype._events=void 0;Jc.prototype._eventsCount=0;Jc.prototype._maxListeners=void 0;var ane=10;function B6(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Jc,"defaultMaxListeners",{enumerable:!0,get:function(){return ane},set:function(e){if(typeof e!="number"||e<0||one(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");ane=e}});Jc.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Jc.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||one(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function sne(e){return e._maxListeners===void 0?Jc.defaultMaxListeners:e._maxListeners}Jc.prototype.getMaxListeners=function(){return sne(this)};Jc.prototype.emit=function(t){for(var r=[],n=1;n0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=a[t];if(l===void 0)return!1;if(typeof l=="function")nne(l,this,r);else for(var u=l.length,c=hne(l,u),n=0;n0&&o.length>i&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,Yit(s)}return e}Jc.prototype.addListener=function(t,r){return lne(this,t,r,!1)};Jc.prototype.on=Jc.prototype.addListener;Jc.prototype.prependListener=function(t,r){return lne(this,t,r,!0)};function Kit(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function une(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=Kit.bind(n);return i.listener=r,n.wrapFn=i,i}Jc.prototype.once=function(t,r){return B6(r),this.on(t,une(this,t,r)),this};Jc.prototype.prependOnceListener=function(t,r){return B6(r),this.prependListener(t,une(this,t,r)),this};Jc.prototype.removeListener=function(t,r){var n,i,a,o,s;if(B6(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){s=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():Jit(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};Jc.prototype.off=Jc.prototype.removeListener;Jc.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i=0;i--)this.removeListener(t,r[i]);return this};function cne(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?$it(i):hne(i,i.length)}Jc.prototype.listeners=function(t){return cne(this,t,!0)};Jc.prototype.rawListeners=function(t){return cne(this,t,!1)};Jc.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):fne.call(e,t)};Jc.prototype.listenerCount=fne;function fne(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Jc.prototype.eventNames=function(){return this._eventsCount>0?q6(this._events):[]};function hne(e,t){for(var r=new Array(t),n=0;n{"use strict";var iq=vb().EventEmitter,tnt={init:function(e){if(e._ev instanceof iq)return e;var t=new iq,r=new iq;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(n,i){t.emit(n,i),r.emit(n,i)},e},triggerHandler:function(e,t,r){var n,i=e._ev;if(!i)return;var a=i._events[t];if(!a)return;function o(l){if(l.listener){if(i.removeListener(t,l.listener),!l.fired)return l.fired=!0,l.listener.apply(i,[r])}else return l.apply(i,[r])}a=Array.isArray(a)?a:[a];var s;for(s=0;s{"use strict";var pne=Dr(),rnt=ub().dfltConfig;function int(e,t){for(var r=[],n,i=0;irnt.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};wy.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};wy.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};wy.undo=function(t){var r,n;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n{"use strict";yne.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var _3=ye(Yh=>{"use strict";var x0=qa(),HS=Dr(),U6=Vl(),aq=s3(),nnt=nq(),ant=zS(),ont=ub().configAttributes,_ne=mc(),xg=HS.extendDeepAll,m3=HS.isPlainObject,snt=HS.isArrayOrTypedArray,V6=HS.nestedProperty,lnt=HS.valObjectMeta,oq="_isSubplotObj",G6="_isLinkedToArray",unt="_arrayAttrRegexps",bne="_deprecated",sq=[oq,G6,unt,bne];Yh.IS_SUBPLOT_OBJ=oq;Yh.IS_LINKED_TO_ARRAY=G6;Yh.DEPRECATED=bne;Yh.UNDERSCORE_ATTRS=sq;Yh.get=function(){var e={};return x0.allTypes.forEach(function(t){e[t]=fnt(t)}),{defs:{valObjects:lnt,metaKeys:sq.concat(["description","role","editType","impliedEdits"]),editType:{traces:_ne.traces,layout:_ne.layout},impliedEdits:{}},traces:e,layout:hnt(),frames:dnt(),animation:y3(ant),config:y3(ont)}};Yh.crawl=function(e,t,r,n){var i=r||0;n=n||"",Object.keys(e).forEach(function(a){var o=e[a];if(sq.indexOf(a)===-1){var s=(n?n+".":"")+a;t(o,a,e,i,s),!Yh.isValObject(o)&&m3(o)&&a!=="impliedEdits"&&Yh.crawl(o,t,i+1,s)}})};Yh.isValObject=function(e){return e&&e.valType!==void 0};Yh.findArrayAttributes=function(e){var t=[],r=[],n=[],i,a;function o(l,u,c,f){r=r.slice(0,f).concat([u]),n=n.slice(0,f).concat([l&&l._isLinkedToArray]);var h=l&&(l.valType==="data_array"||l.arrayOk===!0)&&!(r[f-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&s(i,0,"")}function s(l,u,c){var f=l[r[u]],h=c+r[u];if(u===r.length-1)snt(f)&&t.push(a+h);else if(n[u]){if(Array.isArray(f))for(var d=0;d=a.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var o=t[r];if(!N6(o))return!1;e=a[i][o]}else e=a[i]}else e=a}}return e}function N6(e){return e===Math.round(e)&&e>=0}function fnt(e){var t,r;t=x0.modules[e]._module,r=t.basePlotModule;var n={};n.type=null;var i=xg({},U6),a=xg({},t.attributes);Yh.crawl(a,function(l,u,c,f,h){V6(i,h).set(void 0),l===void 0&&V6(a,h).set(void 0)}),xg(n,i),x0.traceIs(e,"noOpacity")&&delete n.opacity,x0.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),x0.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),t.selectPoints||delete n.selectedpoints,xg(n,a),r.attributes&&xg(n,r.attributes),n.type=e;var o={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:y3(n)};if(t.layoutAttributes){var s={};xg(s,t.layoutAttributes),o.layoutAttributes=y3(s)}return t.animatable||Yh.crawl(o,function(l){Yh.isValObject(l)&&"anim"in l&&delete l.anim}),o}function hnt(){var e={},t,r;xg(e,aq);for(t in x0.subplotsRegistry)if(r=x0.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var n=0;n{"use strict";var x3=Dr(),ynt=Vl(),Q1="templateitemname",lq={name:{valType:"string",editType:"none"}};lq[Q1]={valType:"string",editType:"calc"};pb.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=lq.name,t[Q1]=lq[Q1],t};pb.traceTemplater=function(e){var t={},r,n;for(r in e)n=e[r],Array.isArray(n)&&n.length&&(t[r]=0);function i(a){r=x3.coerce(a,{},ynt,"type");var o={type:r,_template:null};if(r in t){n=e[r];var s=t[r]%n.length;t[r]++,o._template=n[s]}return o}return{newTrace:i}};pb.newContainer=function(e,t,r){var n=e._template,i=n&&(n[t]||r&&n[r]);x3.isPlainObject(i)||(i=null);var a=e[t]={_template:i};return a};pb.arrayTemplater=function(e,t,r){var n=e._template,i=n&&n[Ane(t)],a=n&&n[t];(!Array.isArray(a)||!a.length)&&(a=[]);var o={};function s(u){var c={name:u.name,_input:u},f=c[Q1]=u[Q1];if(!Tne(f))return c._template=i,c;for(var h=0;h=n&&(r._input||{})._templateitemname;a&&(i=n);var o=t+"["+i+"]",s;function l(){s={},a&&(s[o]={},s[o][Q1]=a)}l();function u(d,v){s[d]=v}function c(d,v){a?x3.nestedProperty(s[o],d).set(v):s[o+"."+d]=v}function f(){var d=s;return l(),d}function h(d,v){d&&c(d,v);var x=f();for(var b in x)x3.nestedProperty(e,b).set(x[b])}return{modifyBase:u,modifyItem:c,getUpdateObj:f,applyUpdate:h}}});var hd=ye((Zrr,Sne)=>{"use strict";var jS=n3().counter;Sne.exports={idRegex:{x:jS("x","( domain)?"),y:jS("y","( domain)?")},attrRegex:jS("[xy]axis"),xAxisMatch:jS("xaxis"),yAxisMatch:jS("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 Af=ye(wp=>{"use strict";var _nt=qa(),uq=hd();wp.id2name=function(t){if(!(typeof t!="string"||!t.match(uq.AX_ID_PATTERN))){var r=t.split(" ")[0].substr(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};wp.name2id=function(t){if(t.match(uq.AX_NAME_PATTERN)){var r=t.substr(5);return r==="1"&&(r=""),t.charAt(0)+r}};wp.cleanId=function(t,r,n){var i=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(uq.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(i&&!n)){var a=t.split(" ")[0].substr(1).replace(/^0+/,"");return a==="1"&&(a=""),t.charAt(0)+a+(i&&n?" domain":"")}};wp.list=function(e,t,r){var n=e._fullLayout;if(!n)return[];var i=wp.listIds(e,t),a=new Array(i.length),o;for(o=0;on?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)};wp.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Mne(e,t){if(t&&t.length){for(var r=0;r{"use strict";function xnt(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function bnt(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Ene.exports={clearOutlineControllers:xnt,clearOutline:bnt}});var H6=ye((Jrr,Cne)=>{"use strict";Cne.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Id=ye(W6=>{"use strict";var j6=qa(),$rr=hd().SUBPLOT_PATTERN;W6.getSubplotCalcData=function(e,t,r){var n=j6.subplotsRegistry[t];if(!n)return[];for(var i=n.attr,a=[],o=0;o{"use strict";var wnt=qa(),b3=Dr();gb.manageCommandObserver=function(e,t,r,n){var i={},a=!0;t&&t._commandObserver&&(i=t._commandObserver),i.cache||(i.cache={}),i.lookupTable={};var o=gb.hasSimpleAPICommandBindings(e,r,i.lookupTable);if(t&&t._commandObserver){if(o)return i;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,i}if(o){kne(e,o,i.cache),i.check=function(){if(a){var c=kne(e,o,i.cache);return c.changed&&n&&i.lookupTable[c.value]!==void 0&&(i.disable(),Promise.resolve(n({value:c.value,type:o.type,prop:o.prop,traces:o.traces,index:i.lookupTable[c.value]})).then(i.enable,i.enable)),c.changed}};for(var s=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],l=0;l0?".":"")+i;b3.isPlainObject(a)?cq(a,t,o,n+1):t(o,i,a)}})}});var Mc=ye((tir,Wne)=>{"use strict";var Bne=Oa(),Ant=e3().timeFormatLocale,Snt=mO().formatLocale,WS=Eo(),Mnt=yO(),Xl=qa(),Nne=_3(),Ent=pl(),ja=Dr(),Une=Ca(),Rne=hs().BADNUM,Tp=Af(),Cnt=e_().clearOutline,knt=H6(),fq=zS(),Lnt=nq(),Pnt=Id().getModuleCalcData,Dne=ja.relinkPrivateKeys,mb=ja._,ba=Wne.exports={};ja.extendFlat(ba,Xl);ba.attributes=Vl();ba.attributes.type.values=ba.allTypes;ba.fontAttrs=ec();ba.layoutAttributes=s3();var Z6=Ine();ba.executeAPICommand=Z6.executeAPICommand;ba.computeAPICommandBindings=Z6.computeAPICommandBindings;ba.manageCommandObserver=Z6.manageCommandObserver;ba.hasSimpleAPICommandBindings=Z6.hasSimpleAPICommandBindings;ba.redrawText=function(e){return e=ja.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(Xl.getComponentMethod("annotations","draw")(e),Xl.getComponentMethod("legend","draw")(e),Xl.getComponentMethod("colorbar","draw")(e),t(ba.previousPromises(e)))},300)})};ba.resize=function(e){e=ja.getGraphDiv(e);var t,r=new Promise(function(n,i){(!e||ja.isHidden(e))&&i(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||ja.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var a=e.changed;e.autoplay=!0,Xl.call("relayout",e,{autosize:!0}).then(function(){e.changed=a,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return t&&t(r),r};ba.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};ba.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=ja.ensureSingle(t._paper,"text","js-plot-link-container",function(l){l.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Une.defaultLine,"pointer-events":"all"}).each(function(){var u=Bne.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),n=r.node(),i={y:t._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),r.attr(i);var a=r.select(".js-link-to-tool"),o=r.select(".js-link-spacer"),s=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&Int(e,a),o.text(a.text()&&s.text()?" - ":"")}};function Int(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)r.on("click",function(){ba.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),i=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+i})}}ba.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=Bne.select(e).append("div").attr("id","hiddenform").style("display","none"),n=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"}),i=n.append("input").attr({type:"text",name:"data"});return i.node().value=ba.graphJson(e,!1,"keepdata"),n.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var Rnt=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Dnt=["year","month","dayMonth","dayMonthYear"];ba.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var i=e._fullLayout={},a=e.layout||{},o=e._fullData||[],s=e._fullData=[],l=e.data||[],u=e.calcdata||[],c=e._context||{},f;e._transitionData||ba.createTransitionData(e),i._dfltTitle={plot:mb(e,"Click to enter Plot title"),subtitle:mb(e,"Click to enter Plot subtitle"),x:mb(e,"Click to enter X axis title"),y:mb(e,"Click to enter Y axis title"),colorbar:mb(e,"Click to enter Colorscale title"),annotation:mb(e,"new text")},i._traceWord=mb(e,"trace");var h=Fne(e,Rnt);if(i._mapboxAccessToken=c.mapboxAccessToken,n._initialAutoSizeIsDone){var d=n.width,v=n.height;ba.supplyLayoutGlobalDefaults(a,i,h),a.width||(i.width=d),a.height||(i.height=v),ba.sanitizeMargins(i)}else{ba.supplyLayoutGlobalDefaults(a,i,h);var x=!a.width||!a.height,b=i.autosize,p=c.autosizable,C=x&&(b||p);C?ba.plotAutoSize(e,a,i):x&&ba.sanitizeMargins(i),!b&&x&&(a.width=i.width,a.height=i.height)}i._d3locale=Ont(h,i.separators),i._extraFormat=Fne(e,Dnt),i._initialAutoSizeIsDone=!0,i._dataLength=l.length,i._modules=[],i._visibleModules=[],i._basePlotModules=[];var E=i._subplots=znt(),A=i._splomAxes={x:{},y:{}},L=i._splomSubplots={};i._splomGridDflt={},i._scatterStackOpts={},i._firstScatter={},i._alignmentOpts={},i._colorAxes={},i._requestRangeslider={},i._traceUids=Fnt(o,l),ba.supplyDataDefaults(l,s,a,i);var _=Object.keys(A.x),k=Object.keys(A.y);if(_.length>1&&k.length>1){for(Xl.getComponentMethod("grid","sizeDefaults")(a,i),f=0;f<_.length;f++)ja.pushUnique(E.xaxis,_[f]);for(f=0;f15&&k.length>15&&i.shapes.length===0&&i.images.length===0,ba.linkSubplots(s,i,o,n),ba.cleanPlot(s,i,o,n);var z=!!(n._has&&n._has("cartesian")),O=!!(i._has&&i._has("cartesian")),V=z,G=O;V&&!G?n._bgLayer.remove():G&&!V&&(i._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&Cnt({_fullLayout:n}),qnt(s,i),Dne(i,n),Xl.getComponentMethod("colorscale","crossTraceDefaults")(s,i),i._preGUI||(i._preGUI={}),i._tracePreGUI||(i._tracePreGUI={});var Z=i._tracePreGUI,H={},N;for(N in Z)H[N]="old";for(f=0;f0){var c=1-2*a;o=Math.round(c*o),s=Math.round(c*s)}}var f=ba.layoutAttributes.width.min,h=ba.layoutAttributes.height.min;o1,v=!r.height&&Math.abs(n.height-s)>1;(v||d)&&(d&&(n.width=o),v&&(n.height=s)),t._initialAutoSize||(t._initialAutoSize={width:o,height:s}),ba.sanitizeMargins(n)};ba.supplyLayoutModuleDefaults=function(e,t,r,n){var i=Xl.componentsRegistry,a=t._basePlotModules,o,s,l,u=Xl.subplotsRegistry.cartesian;for(o in i)l=i[o],l.includeBasePlot&&l.includeBasePlot(e,t);a.length||a.push(u),t._has("cartesian")&&(Xl.getComponentMethod("grid","contentDefaults")(e,t),u.finalizeSubplots(e,t));for(var c in t._subplots)t._subplots[c].sort(ja.subplotSort);for(s=0;s1&&(r.l/=b,r.r/=b)}if(h){var p=(r.t+r.b)/h;p>1&&(r.t/=p,r.b/=p)}var C=r.xl!==void 0?r.xl:r.x,E=r.xr!==void 0?r.xr:r.x,A=r.yt!==void 0?r.yt:r.y,L=r.yb!==void 0?r.yb:r.y;d[t]={l:{val:C,size:r.l+x},r:{val:E,size:r.r+x},b:{val:L,size:r.b+x},t:{val:A,size:r.t+x}},v[t]=1}if(!n._replotting)return ba.doAutoMargin(e)}};function Nnt(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Tp.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}ba.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,n=t.height;t._size||(t._size={}),Vne(t);var i=t._size,a=t.margin,o={t:0,b:0,l:0,r:0},s=ja.extendFlat({},i),l=a.l,u=a.r,c=a.t,f=a.b,h=t._pushmargin,d=t._pushmarginIds,v=t.minreducedwidth,x=t.minreducedheight;if(a.autoexpand!==!1){for(var b in h)d[b]||delete h[b];var p=e._fullLayout._reservedMargin;for(var C in p)for(var E in p[C]){var A=p[C][E];o[E]=Math.max(o[E],A)}h.base={l:{val:0,size:l},r:{val:1,size:u},t:{val:1,size:c},b:{val:0,size:f}};for(var L in o){var _=0;for(var k in h)k!=="base"&&WS(h[k][L].size)&&(_=h[k][L].size>_?h[k][L].size:_);var M=Math.max(0,a[L]-_);o[L]=Math.max(0,o[L]-M)}for(var g in h){var P=h[g].l||{},T=h[g].b||{},z=P.val,O=P.size,V=T.val,G=T.size,Z=r-o.r-o.l,H=n-o.t-o.b;for(var N in h){if(WS(O)&&h[N].r){var j=h[N].r.val,re=h[N].r.size;if(j>z){var oe=(O*j+(re-Z)*z)/(j-z),_e=(re*(1-z)+(O-Z)*(1-j))/(j-z);oe+_e>l+u&&(l=oe,u=_e)}}if(WS(G)&&h[N].t){var Me=h[N].t.val,ke=h[N].t.size;if(Me>V){var me=(G*Me+(ke-H)*V)/(Me-V),ie=(ke*(1-V)+(G-H)*(1-Me))/(Me-V);me+ie>f+c&&(f=me,c=ie)}}}}}var Se=ja.constrain(r-a.l-a.r,Gne,v),Le=ja.constrain(n-a.t-a.b,Hne,x),Ae=Math.max(0,r-Se),Fe=Math.max(0,n-Le);if(Ae){var Pe=(l+u)/Ae;Pe>1&&(l/=Pe,u/=Pe)}if(Fe){var ge=(f+c)/Fe;ge>1&&(f/=ge,c/=ge)}if(i.l=Math.round(l)+o.l,i.r=Math.round(u)+o.r,i.t=Math.round(c)+o.t,i.b=Math.round(f)+o.b,i.p=Math.round(a.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!t._replotting&&(ba.didMarginChange(s,i)||Nnt(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var De=3*(1+Object.keys(d).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};ba.graphJson=function(e,t,r,n,i,a){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&ba.supplyDefaults(e);var o=i?e._fullData:e.data,s=i?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(ja.isPlainObject(h)){var v={},x;return Object.keys(h).sort().forEach(function(E){if(["_","["].indexOf(E.charAt(0))===-1){if(typeof h[E]=="function"){d&&(v[E]="_function");return}if(r==="keepdata"){if(E.substr(E.length-3)==="src")return}else if(r==="keepstream"){if(x=h[E+"src"],typeof x=="string"&&x.indexOf(":")>0&&!ja.isPlainObject(h.stream))return}else if(r!=="keepall"&&(x=h[E+"src"],typeof x=="string"&&x.indexOf(":")>0))return;v[E]=u(h[E],d)}}),v}var b=Array.isArray(h),p=ja.isTypedArray(h);if((b||p)&&h.dtype&&h.shape){var C=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:ja.isArrayBuffer(C)?Mnt.encode(C):C},d)}return b?h.map(function(E){return u(E,d)}):p?ja.simpleMap(h,ja.identity):ja.isJSDate(h)?ja.ms2DateTimeLocal(+h):h}var c={data:(o||[]).map(function(h){var d=u(h);return t&&delete d.fit,d})};if(!t&&(c.layout=u(s),i)){var f=s._size;c.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(c.frames=u(l)),a&&(c.config=u(e._context,!0)),n==="object"?c:JSON.stringify(c)};ba.modifyFrames=function(e,t){var r,n,i,a=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return Xl.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function v(){return h++,function(){d++,!n&&d===h&&s(f)}}r.runFn(v),setTimeout(v())})}function s(f){if(e._transitionData)return a(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return Xl.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(f)}function l(){if(e._transitionData)return e._transitioning=!1,i(e._transitionData._interruptCallbacks)}var u=[ba.previousPromises,l,r.prepareFn,ba.rehover,ba.reselect,o],c=ja.syncOrAsync(u,e);return(!c||!c.then)&&(c=Promise.resolve()),c.then(function(){return e})}ba.doCalcdata=function(e,t){var r=Tp.list(e),n=e._fullData,i=e._fullLayout,a,o,s,l,u=new Array(n.length),c=(e.calcdata||[]).slice();for(e.calcdata=u,i._numBoxes=0,i._numViolins=0,i._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,i._piecolormap={},i._sunburstcolormap={},i._treemapcolormap={},i._iciclecolormap={},i._funnelareacolormap={},s=0;s=0;l--)if(L[l].enabled){a._indexToPoints=L[l]._indexToPoints;break}o&&o.calc&&(A=o.calc(e,a))}(!Array.isArray(A)||!A[0])&&(A=[{x:Rne,y:Rne}]),A[0].t||(A[0].t={}),A[0].trace=a,u[C]=A}}for(One(r,n,i),s=0;s{"use strict";yb.xmlns="http://www.w3.org/2000/xmlns/";yb.svg="http://www.w3.org/2000/svg";yb.xlink="http://www.w3.org/1999/xlink";yb.svgAttrs={xmlns:yb.svg,"xmlns:xlink":yb.xlink}});var Kh=ye((iir,Xne)=>{"use strict";Xne.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var iu=ye(b0=>{"use strict";var Ch=Oa(),Ty=Dr(),Hnt=Ty.strTranslate,hq=Wp(),jnt=Kh().LINE_SPACING,Wnt=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;b0.convertToTspans=function(e,t,r){var n=e.text(),i=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&n.match(Wnt),a=Ch.select(e.node().parentNode);if(a.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function s(){a.empty()||(o=e.attr("class")+"-math",a.select("svg."+o).remove()),e.text("").style("white-space","pre");var l=aat(e.node(),n);l&&e.style("pointer-events","all"),b0.positionText(e),r&&r.call(e)}return i?(t&&t._promises||[]).push(new Promise(function(l){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),c={fontSize:u};Knt(i[2],c,function(f,h,d){a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove();var v=f&&f.select("svg");if(!v||!v.node()){s(),l();return}var x=a.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});x.node().appendChild(v.node()),h&&h.node()&&v.node().insertBefore(h.node().cloneNode(!0),v.node().firstChild);var b=d.width,p=d.height;v.attr({class:o,height:p,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var C=e.node().style.fill||"black",E=v.select("g");E.attr({fill:C,stroke:C});var A=E.node().getBoundingClientRect(),L=A.width,_=A.height;(L>b||_>p)&&(v.style("overflow","hidden"),A=v.node().getBoundingClientRect(),L=A.width,_=A.height);var k=+e.attr("x"),M=+e.attr("y"),g=u||e.node().getBoundingClientRect().height,P=-g/4;if(o[0]==="y")x.attr({transform:"rotate("+[-90,k,M]+")"+Hnt(-L/2,P-_/2)});else if(o[0]==="l")M=P-_/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)k=0,M=P;else{var T=e.attr("text-anchor");k=k-L*(T==="middle"?.5:T==="end"?1:0),M=M+P-_/2}v.attr({x:k,y:M}),r&&r.call(e,x),l(x)})})):s(),e};var Xnt=/(<|<|<)/g,Znt=/(>|>|>)/g;function Ynt(e){return e.replace(Xnt,"\\lt ").replace(Znt,"\\gt ")}var Zne=[["$","$"],["\\(","\\)"]];function Knt(e,t,r){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){Ty.warn("No MathJax version:",MathJax.version);return}var i,a,o,s,l=function(){return a=Ty.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:Zne},displayAlign:"left"})},u=function(){a=Ty.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=Zne},c=function(){if(i=MathJax.Hub.config.menuSettings.renderer,i!=="SVG")return MathJax.Hub.setRenderer("SVG")},f=function(){i=MathJax.config.startup.output,i!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var C="math-output-"+Ty.randstr({},64);s=Ch.select("body").append("div").attr({id:C}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(Ynt(e));var E=s.node();return n===2?MathJax.Hub.Typeset(E):MathJax.typeset([E])},d=function(){var C=s.select(n===2?".MathJax_SVG":".MathJax"),E=!C.empty()&&s.select("svg").node();if(!E)Ty.log("There was an error in the tex syntax.",e),r();else{var A=E.getBoundingClientRect(),L;n===2?L=Ch.select("body").select("#MathJax_SVG_glyphs"):L=C.select("defs"),r(C,L,A)}s.remove()},v=function(){if(i!=="SVG")return MathJax.Hub.setRenderer(i)},x=function(){i!=="svg"&&(MathJax.config.startup.output=i)},b=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(a)},p=function(){MathJax.config=a};n===2?MathJax.Hub.Queue(l,c,h,d,v,b):n===3&&(u(),f(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),x(),p()}))}var $ne={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},Jnt={sub:"0.3em",sup:"-0.6em"},$nt={sub:"-0.21em",sup:"0.42em"},Yne="\u200B",Kne=["http:","https:","mailto:","",void 0,":"],Qne=b0.NEWLINES=/(\r\n?|\n)/g,vq=/(<[^<>]*>)/,pq=/<(\/?)([^ >]*)(\s+(.*))?>/i,Qnt=//i;b0.BR_TAG_ALL=//gi;var eae=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,tae=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,rae=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,eat=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function _b(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&Y6(n)}var tat=/(^|;)\s*color:/;b0.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,n=t.allowedTags!==void 0?t.allowedTags:["br"],i="...",a=i.length,o=e.split(vq),s=[],l="",u=0,c=0;ca?s.push(f.substr(0,x-a)+i):s.push(f.substr(0,x));break}l=""}}return s.join("")};var rat={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},iat=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Y6(e){return e.replace(iat,function(t,r){var n;return r.charAt(0)==="#"?n=nat(r.charAt(1)==="x"?parseInt(r.substr(2),16):parseInt(r.substr(1),10)):n=rat[r],n||t})}b0.convertEntities=Y6;function nat(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function aat(e,t){t=t.replace(Qne," ");var r=!1,n=[],i,a=-1;function o(){a++;var _=document.createElementNS(hq.svg,"tspan");Ch.select(_).attr({class:"line",dy:a*jnt+"em"}),e.appendChild(_),i=_;var k=n;if(n=[{node:_}],k.length>1)for(var M=1;M.",t);return}var k=n.pop();_!==k.type&&Ty.log("Start tag <"+k.type+"> doesnt match end tag <"+_+">. Pretending it did match.",t),i=n[n.length-1].node}var c=Qnt.test(t);c?o():(i=e,n=[{node:e}]);for(var f=t.split(vq),h=0;h{"use strict";var oat=Oa(),J6=cd(),ZS=Eo(),K6=Dr(),nae=Ca(),sat=sb().isValid;function lat(e,t,r){var n=t?K6.nestedProperty(e,t).get()||{}:e,i=n[r||"color"];i&&i._inputArray&&(i=i._inputArray);var a=!1;if(K6.isArrayOrTypedArray(i)){for(var o=0;o=0;n--,i++){var a=e[n];r[i]=[1-a[0],a[1]]}return r}function cae(e,t){t=t||{};for(var r=e.domain,n=e.range,i=n.length,a=new Array(i),o=0;o{"use strict";var hae=zO(),cat=hae.FORMAT_LINK,fat=hae.DATE_FORMAT_LINK;function hat(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?gq:dae)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function gq(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+cat+"."].join(" ")}function dae(e,t){return gq(e,t)+[" And for dates see: "+fat+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}vae.exports={axisHoverFormat:hat,descriptionOnlyNumbers:gq,descriptionWithDates:dae}});var Rd=ye((sir,Pae)=>{"use strict";var pae=ec(),w3=Eh(),Lae=Pd().dash,yq=Ao().extendFlat,gae=pl().templatedArray,mae=ff().descriptionWithDates,dat=hs().ONEDAY,pm=hd(),vat=pm.HOUR_PATTERN,pat=pm.WEEKDAY_PATTERN,mq={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},gat=yq({},mq,{values:mq.values.slice().concat(["sync"])});function yae(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var _ae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},xae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},bae={valType:"data_array",editType:"ticks"},wae={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function Tae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function Aae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Sae={valType:"color",dflt:w3.defaultLine,editType:"ticks"},Mae={valType:"color",dflt:w3.lightLine,editType:"ticks"};function Eae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Cae=yq({},Lae,{editType:"ticks"}),kae={valType:"boolean",editType:"ticks"};Pae.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:pae({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[pm.idRegex.x.toString(),pm.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[pm.idRegex.x.toString(),pm.idRegex.y.toString()],editType:"calc"},rangebreaks:gae("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[pat,vat,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:dat},editType:"calc"}),tickmode:gat,nticks:yae(),tick0:_ae,dtick:xae,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:bae,ticktext:{valType:"data_array",editType:"ticks"},ticks:wae,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:Tae(),tickwidth:Aae(),tickcolor:Sae,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:yq({},Lae,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:pae({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:mae("tick label")},tickformatstops:gae("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:mae("hover text")},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:w3.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:kae,gridcolor:Mae,gridwidth:Eae(),griddash:Cae,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",pm.idRegex.x.toString(),pm.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",pm.idRegex.x.toString(),pm.idRegex.y.toString()],editType:"plot"},minor:{tickmode:mq,nticks:yae("minor"),tick0:_ae,dtick:xae,tickvals:bae,ticks:wae,ticklen:Tae("minor"),tickwidth:Aae("minor"),tickcolor:Sae,gridcolor:Mae,gridwidth:Eae("minor"),griddash:Cae,showgrid:kae,editType:"ticks"},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 $6=ye((lir,Dae)=>{"use strict";var $c=Rd(),Iae=ec(),Rae=Ao().extendFlat,mat=mc().overrideAll;Dae.exports=mat({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:$c.linecolor,outlinewidth:$c.linewidth,bordercolor:$c.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:$c.minor.tickmode,nticks:$c.nticks,tick0:$c.tick0,dtick:$c.dtick,tickvals:$c.tickvals,ticktext:$c.ticktext,ticks:Rae({},$c.ticks,{dflt:""}),ticklabeloverflow:Rae({},$c.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:$c.ticklen,tickwidth:$c.tickwidth,tickcolor:$c.tickcolor,ticklabelstep:$c.ticklabelstep,showticklabels:$c.showticklabels,labelalias:$c.labelalias,tickfont:Iae({}),tickangle:$c.tickangle,tickformat:$c.tickformat,tickformatstops:$c.tickformatstops,tickprefix:$c.tickprefix,showtickprefix:$c.showtickprefix,ticksuffix:$c.ticksuffix,showticksuffix:$c.showticksuffix,separatethousands:$c.separatethousands,exponentformat:$c.exponentformat,minexponent:$c.minexponent,showexponent:$c.showexponent,title:{text:{valType:"string"},font:Iae({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Tu=ye((cir,zae)=>{"use strict";var yat=$6(),_at=n3().counter,xat=Y1(),Fae=sb().scales,uir=xat(Fae);function Q6(e){return"`"+e+"`"}zae.exports=function(t,r){t=t||"",r=r||{};var n=r.cLetter||"c",i="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,a="noScale"in r?r.noScale:t==="marker.line",o="showScaleDflt"in r?r.showScaleDflt:n==="z",s=typeof r.colorscaleDflt=="string"?Fae[r.colorscaleDflt]:null,l=r.editTypeOverride||"",u=t?t+".":"",c,f;"colorAttr"in r?(c=r.colorAttr,f=r.colorAttr):(c={z:"z",c:"color"}[n],f="in "+Q6(u+c));var h=i?" Has an effect only if "+f+" is set to a numerical array.":"",d=n+"auto",v=n+"min",x=n+"max",b=n+"mid",p=Q6(u+d),C=Q6(u+v),E=Q6(u+x),A=C+" and "+E,L={};L[v]=L[x]=void 0;var _={};_[d]=!1;var k={};return c==="color"&&(k.color={valType:"color",arrayOk:!0,editType:l||"style"},r.anim&&(k.color.anim=!0)),k[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:L},k[v]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:_},k[x]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:_},k[b]={valType:"number",dflt:null,editType:"calc",impliedEdits:L},k.colorscale={valType:"colorscale",editType:"calc",dflt:s,impliedEdits:{autocolorscale:!1}},k.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},k.reversescale={valType:"boolean",dflt:!1,editType:"plot"},a||(k.showscale={valType:"boolean",dflt:o,editType:"calc"},k.colorbar=yat),r.noColorAxis||(k.coloraxis={valType:"subplotid",regex:_at("coloraxis"),dflt:null,editType:"calc"}),k}});var xq=ye((fir,Oae)=>{"use strict";var bat=Ao().extendFlat,wat=Tu(),_q=sb().scales;Oae.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:_q.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:_q.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:_q.RdBu,editType:"calc"}},coloraxis:bat({_isSubplotObj:!0,editType:"calc"},wat("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var bq=ye((hir,qae)=>{"use strict";var Tat=Dr();qae.exports=function(t){return Tat.isPlainObject(t.colorbar)}});var Aq=ye(Tq=>{"use strict";var wq=Eo(),Bae=Dr(),Nae=hs(),Aat=Nae.ONEDAY,Sat=Nae.ONEWEEK;Tq.dtick=function(e,t){var r=t==="log",n=t==="date",i=t==="category",a=n?Aat:1;if(!e)return a;if(wq(e))return e=Number(e),e<=0?a:i?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||r))return a;var o=e.charAt(0),s=e.substr(1);return s=wq(s)?Number(s):0,s<=0||!(n&&o==="M"&&s===Math.round(s)||r&&o==="L"||r&&o==="D"&&(s===1||s===2))?a:e};Tq.tick0=function(e,t,r,n){if(t==="date")return Bae.cleanDate(e,Bae.dateTick0(r,n%Sat===0?1:0));if(!(n==="D1"||n==="D2"))return wq(e)?Number(e):0}});var xb=ye((vir,Vae)=>{"use strict";var Uae=Aq(),Mat=Dr().isArrayOrTypedArray,Eat=vv().isTypedArraySpec,Cat=vv().decodeTypedArraySpec;Vae.exports=function(t,r,n,i,a){a||(a={});var o=a.isMinor,s=o?t.minor||{}:t,l=o?r.minor:r,u=o?"minor.":"";function c(C){var E=s[C];return Eat(E)&&(E=Cat(E)),E!==void 0?E:(l._template||{})[C]}var f=c("tick0"),h=c("dtick"),d=c("tickvals"),v=Mat(d)?"array":h?"linear":"auto",x=n(u+"tickmode",v);if(x==="auto"||x==="sync")n(u+"nticks");else if(x==="linear"){var b=l.dtick=Uae.dtick(h,i);l.tick0=Uae.tick0(f,i,r.calendar,b)}else if(i!=="multicategory"){var p=n(u+"tickvals");p===void 0?l.tickmode="auto":o||n("ticktext")}}});var T3=ye((pir,Hae)=>{"use strict";var Sq=Dr(),Gae=Rd();Hae.exports=function(t,r,n,i){var a=i.isMinor,o=a?t.minor||{}:t,s=a?r.minor:r,l=a?Gae.minor:Gae,u=a?"minor.":"",c=Sq.coerce2(o,s,l,"ticklen",a?(r.ticklen||5)*.6:void 0),f=Sq.coerce2(o,s,l,"tickwidth",a?r.tickwidth||1:void 0),h=Sq.coerce2(o,s,l,"tickcolor",(a?r.tickcolor:void 0)||s.color),d=n(u+"ticks",!a&&i.outerTicks||c||f||h?"outside":"");d||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}});var Mq=ye((gir,jae)=>{"use strict";jae.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],n=r.filter(function(a){return t[a]!==void 0}),i=function(a){return t[a]===t[n[0]]};if(n.every(i)||n.length===1)return t[n[0]]}});var Yd=ye((mir,Wae)=>{"use strict";var eL=Dr(),kat=pl();Wae.exports=function(t,r,n){var i=n.name,a=n.inclusionAttr||"visible",o=r[i],s=eL.isArrayOrTypedArray(t[i])?t[i]:[],l=r[i]=[],u=kat.arrayTemplater(r,i,a),c,f;for(c=0;c{"use strict";var Eq=Dr(),Lat=Ca().contrast,Xae=Rd(),Pat=Mq(),Iat=Yd();Zae.exports=function(t,r,n,i,a){a||(a={});var o=n("labelalias");Eq.isPlainObject(o)||delete r.labelalias;var s=Pat(t),l=n("showticklabels");if(l){a.noTicklabelshift||n("ticklabelshift"),a.noTicklabelstandoff||n("ticklabelstandoff");var u=a.font||{},c=r.color,f=r.ticklabelposition||"",h=f.indexOf("inside")!==-1?Lat(a.bgColor):c&&c!==Xae.color.dflt?c:u.color;if(Eq.coerceFont(n,"tickfont",u,{overrideDflt:{color:h}}),!a.noTicklabelstep&&i!=="multicategory"&&i!=="log"&&n("ticklabelstep"),!a.noAng){var d=n("tickangle");!a.noAutotickangles&&d==="auto"&&n("autotickangles")}if(i!=="category"){var v=n("tickformat");Iat(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Rat}),r.tickformatstops.length||delete r.tickformatstops,!a.noExp&&!v&&i!=="date"&&(n("showexponent",s),n("exponentformat"),n("minexponent"),n("separatethousands"))}}};function Rat(e,t){function r(i,a){return Eq.coerce(e,t,Xae.tickformatstops,i,a)}var n=r("enabled");n&&(r("dtickrange"),r("value"))}});var r_=ye((_ir,Yae)=>{"use strict";var Dat=Mq();Yae.exports=function(t,r,n,i,a){a||(a={});var o=a.tickSuffixDflt,s=Dat(t),l=n("tickprefix");l&&n("showtickprefix",s);var u=n("ticksuffix",o);u&&n("showticksuffix",s)}});var Cq=ye((xir,Kae)=>{"use strict";var i_=Dr(),Fat=pl(),zat=xb(),Oat=T3(),qat=t_(),Bat=r_(),Nat=$6();Kae.exports=function(t,r,n){var i=Fat.newContainer(r,"colorbar"),a=t.colorbar||{};function o(T,z){return i_.coerce(a,i,Nat,T,z)}var s=n.margin||{t:0,b:0,l:0,r:0},l=n.width-s.l-s.r,u=n.height-s.t-s.b,c=o("orientation"),f=c==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(f?l:u):30);var d=o("lenmode");o("len",d==="fraction"?1:f?u:l);var v=o("yref"),x=o("xref"),b=v==="paper",p=x==="paper",C,E,A,L="left";f?(A="middle",L=p?"left":"right",C=p?1.02:1,E=.5):(A=b?"bottom":"top",L="center",C=.5,E=b?1.02:1),i_.coerce(a,i,{x:{valType:"number",min:p?-2:0,max:p?3:1,dflt:C}},"x"),i_.coerce(a,i,{y:{valType:"number",min:b?-2:0,max:b?3:1,dflt:E}},"y"),o("xanchor",L),o("xpad"),o("yanchor",A),o("ypad"),i_.noneOrAll(a,i,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var _=i_.coerce(a,i,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:f?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",_.indexOf("inside")!==-1?"hide past domain":"hide past div"),zat(a,i,o,"linear");var k=n.font,M={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:k};_.indexOf("inside")!==-1&&(M.bgColor="black"),Bat(a,i,o,"linear",M),qat(a,i,o,"linear",M),Oat(a,i,o,"linear",M),o("title.text",n._dfltTitle.colorbar);var g=i.showticklabels?i.tickfont:k,P=i_.extendFlat({},k,{family:g.family,size:i_.bigFont(g.size)});i_.coerceFont(o,"title.font",P),o("title.side",f?"top":"right")}});var Jh=ye((bir,Qae)=>{"use strict";var Jae=Eo(),Lq=Dr(),Uat=bq(),Vat=Cq(),$ae=sb().isValid,Gat=qa().traceIs;function kq(e,t){var r=t.slice(0,t.length-1);return t?Lq.nestedProperty(e,r).get()||{}:e}Qae.exports=function e(t,r,n,i,a){var o=a.prefix,s=a.cLetter,l="_module"in r,u=kq(t,o),c=kq(r,o),f=kq(r._template||{},o)||{},h=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,n,i,a)};if(l){var d=n._colorAxes||{},v=i(o+"coloraxis");if(v){var x=Gat(r,"contour")&&Lq.nestedProperty(r,"contours.coloring").get()||"heatmap",b=d[v];b?(b[2].push(h),b[0]!==x&&(b[0]=!1,Lq.warn(["Ignoring coloraxis:",v,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[v]=[x,r,[h]];return}}var p=u[s+"min"],C=u[s+"max"],E=Jae(p)&&Jae(C)&&p{"use strict";var eoe=Dr(),Hat=pl(),toe=xq(),jat=Jh();roe.exports=function(t,r){function n(f,h){return eoe.coerce(t,r,toe,f,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var i=r._colorAxes,a,o;function s(f,h){return eoe.coerce(a,o,toe.coloraxis,f,h)}for(var l in i){var u=i[l];if(u[0])a=t[l]||{},o=Hat.newContainer(r,l,"coloraxis"),o._name=l,jat(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var c=0;c{"use strict";var Wat=Dr(),Xat=Dv().hasColorscale,Zat=Dv().extractOpts;noe.exports=function(t,r){function n(c,f){var h=c["_"+f];h!==void 0&&(c[f]=h)}function i(c,f){var h=f.container?Wat.nestedProperty(c,f.container).get():c;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var d=Zat(h),v=d.auto;(v||d.min===void 0)&&n(h,f.min),(v||d.max===void 0)&&n(h,f.max),d.autocolorscale&&n(h,"colorscale")}}for(var a=0;a{"use strict";var ooe=Eo(),Pq=Dr(),Yat=Dv().extractOpts;soe.exports=function(t,r,n){var i=t._fullLayout,a=n.vals,o=n.containerStr,s=o?Pq.nestedProperty(r,o).get():r,l=Yat(s),u=l.auto!==!1,c=l.min,f=l.max,h=l.mid,d=function(){return Pq.aggNums(Math.min,null,a)},v=function(){return Pq.aggNums(Math.max,null,a)};if(c===void 0?c=d():u&&(s._colorAx&&ooe(c)?c=Math.min(c,d()):c=d()),f===void 0?f=v():u&&(s._colorAx&&ooe(f)?f=Math.max(f,v()):f=v()),u&&h!==void 0&&(f-h>h-c?c=h-(f-h):f-h=0?x=i.colorscale.sequential:x=i.colorscale.sequentialminus,l._sync("colorscale",x)}}});var tc=ye((Sir,loe)=>{"use strict";var tL=sb(),A3=Dv();loe.exports={moduleType:"component",name:"colorscale",attributes:Tu(),layoutAttributes:xq(),supplyLayoutDefaults:ioe(),handleDefaults:Jh(),crossTraceDefaults:aoe(),calc:Fv(),scales:tL.scales,defaultScale:tL.defaultScale,getScale:tL.get,isValidScale:tL.isValid,hasColorscale:A3.hasColorscale,extractOpts:A3.extractOpts,extractScale:A3.extractScale,flipScale:A3.flipScale,makeColorScaleFunc:A3.makeColorScaleFunc,makeColorScaleFuncFromTrace:A3.makeColorScaleFuncFromTrace}});var Ru=ye((Mir,coe)=>{"use strict";var uoe=Dr(),Kat=vv().isTypedArraySpec;coe.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return uoe.isPlainObject(t)&&(uoe.isArrayOrTypedArray(t.size)||Kat(t.size))}}});var S3=ye((Eir,foe)=>{"use strict";var Jat=Eo();foe.exports=function(t,r){r||(r=2);var n=t.marker,i=n.sizeref||1,a=n.sizemin||0,o=n.sizemode==="area"?function(s){return Math.sqrt(s/i)}:function(s){return s/i};return function(s){var l=o(s/r);return Jat(l)&&l>0?Math.max(l,a):0}}});var rp=ye(pv=>{"use strict";var hoe=Dr();pv.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};pv.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],n=e.yaxes||[],i=0;i=0&&r.index{poe.exports=rot;var Iq={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},tot=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function rot(e){var t=[];return e.replace(tot,function(r,n,i){var a=n.toLowerCase();for(i=not(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==Iq[a])return i.unshift(n),t.push(i);if(i.length{"use strict";var aot=YS(),ca=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},ds="M0,0Z",goe=Math.sqrt(2),n_=Math.sqrt(3),Rq=Math.PI,Dq=Math.cos,Fq=Math.sin;boe.exports={circle:{n:0,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return r?ps(t,r,i):i}},square:{n:1,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.3,2);return ps(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.4,2),i=ca(e*1.2,2);return ps(t,r,"M"+i+","+n+"H"+n+"V"+i+"H-"+n+"V"+n+"H-"+i+"V-"+n+"H-"+n+"V-"+i+"H"+n+"V-"+n+"H"+i+"Z")}},x:{n:4,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.8/goe,2),i="l"+n+","+n,a="l"+n+",-"+n,o="l-"+n+",-"+n,s="l-"+n+","+n;return ps(t,r,"M0,"+n+i+a+o+a+o+s+o+s+i+s+i+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2/n_,2),i=ca(e/2,2),a=ca(e,2);return ps(t,r,"M-"+n+","+i+"H"+n+"L0,-"+a+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2/n_,2),i=ca(e/2,2),a=ca(e,2);return ps(t,r,"M-"+n+",-"+i+"H"+n+"L0,"+a+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2/n_,2),i=ca(e/2,2),a=ca(e,2);return ps(t,r,"M"+i+",-"+n+"V"+n+"L-"+a+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2/n_,2),i=ca(e/2,2),a=ca(e,2);return ps(t,r,"M-"+i+",-"+n+"V"+n+"L"+a+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.6,2),i=ca(e*1.2,2);return ps(t,r,"M-"+i+",-"+n+"H"+n+"V"+i+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.6,2),i=ca(e*1.2,2);return ps(t,r,"M"+n+",-"+i+"V"+n+"H-"+i+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.6,2),i=ca(e*1.2,2);return ps(t,r,"M"+i+","+n+"H-"+n+"V-"+i+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.6,2),i=ca(e*1.2,2);return ps(t,r,"M-"+n+","+i+"V-"+n+"H"+i+"Z")}},pentagon:{n:13,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.951,2),i=ca(e*.588,2),a=ca(-e,2),o=ca(e*-.309,2),s=ca(e*.809,2);return ps(t,r,"M"+n+","+o+"L"+i+","+s+"H-"+i+"L-"+n+","+o+"L0,"+a+"Z")}},hexagon:{n:14,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e/2,2),a=ca(e*n_/2,2);return ps(t,r,"M"+a+",-"+i+"V"+i+"L0,"+n+"L-"+a+","+i+"V-"+i+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e/2,2),a=ca(e*n_/2,2);return ps(t,r,"M-"+i+","+a+"H"+i+"L"+n+",0L"+i+",-"+a+"H-"+i+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.924,2),i=ca(e*.383,2);return ps(t,r,"M-"+i+",-"+n+"H"+i+"L"+n+",-"+i+"V"+i+"L"+i+","+n+"H-"+i+"L-"+n+","+i+"V-"+i+"Z")}},star:{n:17,f:function(e,t,r){if(vs(t))return ds;var n=e*1.4,i=ca(n*.225,2),a=ca(n*.951,2),o=ca(n*.363,2),s=ca(n*.588,2),l=ca(-n,2),u=ca(n*-.309,2),c=ca(n*.118,2),f=ca(n*.809,2),h=ca(n*.382,2);return ps(t,r,"M"+i+","+u+"H"+a+"L"+o+","+c+"L"+s+","+f+"L0,"+h+"L-"+s+","+f+"L-"+o+","+c+"L-"+a+","+u+"H-"+i+"L0,"+l+"Z")}},hexagram:{n:18,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.66,2),i=ca(e*.38,2),a=ca(e*.76,2);return ps(t,r,"M-"+a+",0l-"+i+",-"+n+"h"+a+"l"+i+",-"+n+"l"+i+","+n+"h"+a+"l-"+i+","+n+"l"+i+","+n+"h-"+a+"l-"+i+","+n+"l-"+i+",-"+n+"h-"+a+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*n_*.8,2),i=ca(e*.8,2),a=ca(e*1.6,2),o=ca(e*4,2),s="A "+o+","+o+" 0 0 1 ";return ps(t,r,"M-"+n+","+i+s+n+","+i+s+"0,-"+a+s+"-"+n+","+i+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*n_*.8,2),i=ca(e*.8,2),a=ca(e*1.6,2),o=ca(e*4,2),s="A "+o+","+o+" 0 0 1 ";return ps(t,r,"M"+n+",-"+i+s+"-"+n+",-"+i+s+"0,"+a+s+n+",-"+i+"Z")}},"star-square":{n:21,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.1,2),i=ca(e*2,2),a="A "+i+","+i+" 0 0 1 ";return ps(t,r,"M-"+n+",-"+n+a+"-"+n+","+n+a+n+","+n+a+n+",-"+n+a+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2),i=ca(e*1.9,2),a="A "+i+","+i+" 0 0 1 ";return ps(t,r,"M-"+n+",0"+a+"0,"+n+a+n+",0"+a+"0,-"+n+a+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.7,2),i=ca(e*1.4,2);return ps(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2),i=ca(e*.7,2);return ps(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e/goe,2);return ps(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.3,2);return ps(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.3,2),i=ca(e*.65,2);return ps(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+i+",-"+i+"L"+i+","+i+"M-"+i+","+i+"L"+i+",-"+i)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2);return ps(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*.85,2);return ps(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(vs(t))return ds;var n=ca(e/2,2),i=ca(e,2);return ps(t,r,"M"+n+","+i+"V-"+i+"M"+(n-i)+",-"+i+"V"+i+"M"+i+","+n+"H-"+i+"M-"+i+","+(n-i)+"H"+i)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return ps(t,r,"M-"+n+","+a+"L0,0M"+n+","+a+"L0,0M0,-"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return ps(t,r,"M-"+n+",-"+a+"L0,0M"+n+",-"+a+"L0,0M0,"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return ps(t,r,"M"+a+","+n+"L0,0M"+a+",-"+n+"L0,0M-"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return ps(t,r,"M-"+a+","+n+"L0,0M-"+a+",-"+n+"L0,0M"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2);return ps(t,r,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2);return ps(t,r,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e*2,2);return ps(t,r,"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e*2,2);return ps(t,r,"M0,0L-"+n+",-"+i+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2,2),i=ca(e,2);return ps(t,r,"M0,0L"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2,2),i=ca(e,2);return ps(t,r,"M0,0L-"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e*2,2);return ps(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e*2,2);return ps(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+i+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2,2),i=ca(e,2);return ps(t,r,"M0,-"+i+"V"+i+"M0,0L"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2,2),i=ca(e,2);return ps(t,r,"M0,-"+i+"V"+i+"M0,0L-"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(vs(t))return ds;var n=Rq/2.5,i=2*e*Dq(n),a=2*e*Fq(n);return ps(t,r,"M0,0L"+-i+","+a+"L"+i+","+a+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(vs(t))return ds;var n=Rq/4,i=2*e*Dq(n),a=2*e*Fq(n);return ps(t,r,"M0,0L"+-i+","+a+"A "+2*e+","+2*e+" 0 0 1 "+i+","+a+"Z")},backoff:.4,noDot:!0}};function vs(e){return e===null}var moe,yoe,_oe,xoe;function ps(e,t,r){if((!e||e%360===0)&&!t)return r;if(_oe===e&&xoe===t&&moe===r)return yoe;_oe=e,xoe=t,moe=r;function n(b,p){var C=Dq(b),E=Fq(b),A=p[0],L=p[1]+(t||0);return[A*C-L*E,A*E+L*C]}for(var i=e/180*Rq,a=0,o=0,s=aot(r),l="",u=0;u{"use strict";var dd=Oa(),Du=Dr(),oot=Du.numberFormat,Ab=Eo(),Uq=cd(),iL=qa(),Kd=Ca(),sot=tc(),JS=Du.strTranslate,nL=iu(),lot=Wp(),uot=Kh(),cot=uot.LINE_SPACING,Ioe=U1().DESELECTDIM,fot=Ru(),hot=S3(),dot=rp().appendArrayPointValue,Sa=Voe.exports={};Sa.font=function(e,t){var r=t.variant,n=t.style,i=t.weight,a=t.color,o=t.size,s=t.family,l=t.shadow,u=t.lineposition,c=t.textcase;s&&e.style("font-family",s),o+1&&e.style("font-size",o+"px"),a&&e.call(Kd.fill,a),i&&e.style("font-weight",i),n&&e.style("font-style",n),r&&e.style("font-variant",r),c&&e.style("text-transform",zq(pot(c))),l&&e.style("text-shadow",l==="auto"?nL.makeTextShadow(Kd.contrast(a)):zq(l)),u&&e.style("text-decoration-line",zq(got(u)))};function zq(e){return e==="none"?void 0:e}var vot={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function pot(e){return vot[e]}function got(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Sa.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};Sa.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};Sa.setRect=function(e,t,r,n,i){e.call(Sa.setPosition,t,r).call(Sa.setSize,n,i)};Sa.translatePoint=function(e,t,r,n){var i=r.c2p(e.x),a=n.c2p(e.y);if(Ab(i)&&Ab(a)&&t.node())t.node().nodeName==="text"?t.attr("x",i).attr("y",a):t.attr("transform",JS(i,a));else return!1;return!0};Sa.translatePoints=function(e,t,r){e.each(function(n){var i=dd.select(this);Sa.translatePoint(n,i,t,r)})};Sa.hideOutsideRangePoint=function(e,t,r,n,i,a){t.attr("display",r.isPtWithinRange(e,i)&&n.isPtWithinRange(e,a)?null:"none")};Sa.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,n=t.yaxis;e.each(function(i){var a=i[0].trace,o=a.xcalendar,s=a.ycalendar,l=iL.traceIs(a,"bar-like")?".bartext":".point,.textpoint";e.selectAll(l).each(function(u){Sa.hideOutsideRangePoint(u,dd.select(this),r,n,o,s)})})}};Sa.crispRound=function(e,t,r){return!t||!Ab(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};Sa.singleLineStyle=function(e,t,r,n,i){t.style("fill","none");var a=(((e||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=i||a.dash||"";Kd.stroke(t,n||a.color),Sa.dashLine(t,s,o)};Sa.lineGroupStyle=function(e,t,r,n){e.style("fill","none").each(function(i){var a=(((i||[])[0]||{}).trace||{}).line||{},o=t||a.width||0,s=n||a.dash||"";dd.select(this).call(Kd.stroke,r||a.color).call(Sa.dashLine,s,o)})};Sa.dashLine=function(e,t,r){r=+r||0,t=Sa.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};Sa.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function Roe(e,t,r,n){var i=t.fillpattern,a=t.fillgradient,o=Sa.getPatternAttr,s=i&&(o(i.shape,0,"")||o(i.path,0,""));if(s){var l=o(i.bgcolor,0,null),u=o(i.fgcolor,0,null),c=i.fgopacity,f=o(i.size,0,8),h=o(i.solidity,0,.3),d=t.uid;Sa.pattern(e,"point",r,d,s,f,h,void 0,i.fillmode,l,u,c)}else if(a&&a.type!=="none"){var v=a.type,x="scatterfill-"+t.uid;if(n&&(x="legendfill-"+t.uid),!n&&(a.start!==void 0||a.stop!==void 0)){var b,p;v==="horizontal"?(b={x:a.start,y:0},p={x:a.stop,y:0}):v==="vertical"&&(b={x:0,y:a.start},p={x:0,y:a.stop}),b.x=t._xA.c2p(b.x===void 0?t._extremes.x.min[0].val:b.x,!0),b.y=t._yA.c2p(b.y===void 0?t._extremes.y.min[0].val:b.y,!0),p.x=t._xA.c2p(p.x===void 0?t._extremes.x.max[0].val:p.x,!0),p.y=t._yA.c2p(p.y===void 0?t._extremes.y.max[0].val:p.y,!0),e.call(zoe,r,x,"linear",a.colorscale,"fill",b,p,!0,!1)}else v==="horizontal"&&(v=v+"reversed"),e.call(Sa.gradient,r,x,v,a.colorscale,"fill")}else t.fillcolor&&e.call(Kd.fill,t.fillcolor)}Sa.singleFillStyle=function(e,t){var r=dd.select(e.node()),n=r.data(),i=((n[0]||[])[0]||{}).trace||{};Roe(e,i,t,!1)};Sa.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(n){var i=dd.select(this);n[0].trace&&Roe(i,n[0].trace,t,r)})};var Toe=woe();Sa.symbolNames=[];Sa.symbolFuncs=[];Sa.symbolBackOffs=[];Sa.symbolNeedLines={};Sa.symbolNoDot={};Sa.symbolNoFill={};Sa.symbolList=[];Object.keys(Toe).forEach(function(e){var t=Toe[e],r=t.n;Sa.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),Sa.symbolNames[r]=e,Sa.symbolFuncs[r]=t.f,Sa.symbolBackOffs[r]=t.backoff||0,t.needLine&&(Sa.symbolNeedLines[r]=!0),t.noDot?Sa.symbolNoDot[r]=!0:Sa.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(Sa.symbolNoFill[r]=!0)});var mot=Sa.symbolNames.length,yot="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Sa.symbolNumber=function(e){if(Ab(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=Sa.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=mot||e>=400?0:Math.floor(Math.max(e,0))};function Doe(e,t,r,n){var i=e%100;return Sa.symbolFuncs[i](t,r,n)+(e>=200?yot:"")}var Aoe=oot("~f"),Foe={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};Sa.gradient=function(e,t,r,n,i,a){var o=Foe[n];return zoe(e,t,r,o.type,i,a,o.start,o.stop,!1,o.reversed)};function zoe(e,t,r,n,i,a,o,s,l,u){var c=i.length,f;n==="linear"?f={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:s.x,y2:s.y,gradientUnits:l?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:n==="radial"&&(f={node:"radialGradient",reversed:u});for(var h=new Array(c),d=0;d=0&&e.i===void 0&&(e.i=a.i),t.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),n.ms2mrc){var l;e.ms==="various"||o.size==="various"?l=3:l=n.ms2mrc(e.ms),e.mrc=l,n.selectedSizeFn&&(l=e.mrc=n.selectedSizeFn(e));var u=Sa.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var c=Hq(e,r),f=Gq(e,r);t.attr("d",Doe(u,l,c,f))}var h=!1,d,v,x;if(e.so)x=s.outlierwidth,v=s.outliercolor,d=o.outliercolor;else{var b=(s||{}).width;x=(e.mlw+1||b+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?v=e.mlcc=n.lineScale(e.mlc):Du.isArrayOrTypedArray(s.color)?v=Kd.defaultLine:v=s.color,Du.isArrayOrTypedArray(o.color)&&(d=Kd.defaultLine,h=!0),"mc"in e?d=e.mcc=n.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(d=n.selectedColorFn(e))}if(e.om)t.call(Kd.stroke,d).style({"stroke-width":(x||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:x)+"px");var p=o.gradient,C=e.mgt;C?h=!0:C=p&&p.type,Du.isArrayOrTypedArray(C)&&(C=C[0],Foe[C]||(C=0));var E=o.pattern,A=Sa.getPatternAttr,L=E&&(A(E.shape,e.i,"")||A(E.path,e.i,""));if(C&&C!=="none"){var _=e.mgc;_?h=!0:_=p.color;var k=r.uid;h&&(k+="-"+e.i),Sa.gradient(t,i,k,C,[[0,_],[1,d]],"fill")}else if(L){var M=!1,g=E.fgcolor;!g&&a&&a.color&&(g=a.color,M=!0);var P=A(g,e.i,a&&a.color||null),T=A(E.bgcolor,e.i,null),z=E.fgopacity,O=A(E.size,e.i,8),V=A(E.solidity,e.i,.3);M=M||e.mcc||Du.isArrayOrTypedArray(E.shape)||Du.isArrayOrTypedArray(E.path)||Du.isArrayOrTypedArray(E.bgcolor)||Du.isArrayOrTypedArray(E.fgcolor)||Du.isArrayOrTypedArray(E.size)||Du.isArrayOrTypedArray(E.solidity);var G=r.uid;M&&(G+="-"+e.i),Sa.pattern(t,"point",i,G,L,O,V,e.mcc,E.fillmode,T,P,z)}else Du.isArrayOrTypedArray(d)?Kd.fill(t,d[e.i]):Kd.fill(t,d);x&&Kd.stroke(t,v)}};Sa.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=Sa.tryColorscale(r,""),t.lineScale=Sa.tryColorscale(r,"line"),iL.traceIs(e,"symbols")&&(t.ms2mrc=fot.isBubble(e)?hot(e):function(){return(r.size||6)/2}),e.selectedpoints&&Du.extendFlat(t,Sa.makeSelectedPointStyleFns(e)),t};Sa.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.marker||{},a=r.marker||{},o=n.marker||{},s=i.opacity,l=a.opacity,u=o.opacity,c=l!==void 0,f=u!==void 0;(Du.isArrayOrTypedArray(s)||c||f)&&(t.selectedOpacityFn=function(A){var L=A.mo===void 0?i.opacity:A.mo;return A.selected?c?l:L:f?u:Ioe*L});var h=i.color,d=a.color,v=o.color;(d||v)&&(t.selectedColorFn=function(A){var L=A.mcc||h;return A.selected?d||L:v||L});var x=i.size,b=a.size,p=o.size,C=b!==void 0,E=p!==void 0;return iL.traceIs(e,"symbols")&&(C||E)&&(t.selectedSizeFn=function(A){var L=A.mrc||x/2;return A.selected?C?b/2:L:E?p/2:L}),t};Sa.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.textfont||{},a=r.textfont||{},o=n.textfont||{},s=i.color,l=a.color,u=o.color;return t.selectedTextColorFn=function(c){var f=c.tc||s;return c.selected?l||f:u||(l?f:Kd.addOpacity(f,Ioe))},t};Sa.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Sa.makeSelectedPointStyleFns(t),n=t.marker||{},i=[];r.selectedOpacityFn&&i.push(function(a,o){a.style("opacity",r.selectedOpacityFn(o))}),r.selectedColorFn&&i.push(function(a,o){Kd.fill(a,r.selectedColorFn(o))}),r.selectedSizeFn&&i.push(function(a,o){var s=o.mx||n.symbol||0,l=r.selectedSizeFn(o);a.attr("d",Doe(Sa.symbolNumber(s),l,Hq(o,t),Gq(o,t))),o.mrc2=l}),i.length&&e.each(function(a){for(var o=dd.select(this),s=0;s0?r:0}Sa.textPointStyle=function(e,t,r){if(e.size()){var n;if(t.selectedpoints){var i=Sa.makeSelectedTextStyleFns(t);n=i.selectedTextColorFn}var a=t.texttemplate,o=r._fullLayout;e.each(function(s){var l=dd.select(this),u=a?Du.extractOption(s,t,"txt","texttemplate"):Du.extractOption(s,t,"tx","text");if(!u&&u!==0){l.remove();return}if(a){var c=t._module.formatLabels,f=c?c(s,t,o):{},h={};dot(h,t,s.i);var d=t._meta||{};u=Du.texttemplateString(u,f,o._d3locale,h,s,d)}var v=s.tp||t.textposition,x=qoe(s,t),b=n?n(s):s.tc||t.textfont.color;l.call(Sa.font,{family:s.tf||t.textfont.family,weight:s.tw||t.textfont.weight,style:s.ty||t.textfont.style,variant:s.tv||t.textfont.variant,textcase:s.tC||t.textfont.textcase,lineposition:s.tE||t.textfont.lineposition,shadow:s.tS||t.textfont.shadow,size:x,color:b}).text(u).call(nL.convertToTspans,r).call(Ooe,v,x,s.mrc)})}};Sa.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Sa.makeSelectedTextStyleFns(t);e.each(function(n){var i=dd.select(this),a=r.selectedTextColorFn(n),o=n.tp||t.textposition,s=qoe(n,t);Kd.fill(i,a);var l=iL.traceIs(t,"bar-like");Ooe(i,o,s,n.mrc2||n.mrc,l)})}};var Soe=.5;Sa.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],n=[],i;for(i=1;i=l||A>=c&&A<=l)&&(L<=f&&L>=u||L>=f&&L<=u)&&(e=[A,L])}return e}Sa.applyBackoff=Uoe;Sa.makeTester=function(){var e=Du.ensureSingleById(dd.select("body"),"svg","js-plotly-tester",function(r){r.attr(lot.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=Du.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Sa.tester=e,Sa.testref=t};Sa.savedBBoxes={};var qq=0,bot=1e4;Sa.bBox=function(e,t,r){r||(r=Moe(e));var n;if(r){if(n=Sa.savedBBoxes[r],n)return Du.extendFlat({},n)}else if(e.childNodes.length===1){var i=e.childNodes[0];if(r=Moe(i),r){var a=+i.getAttribute("x")||0,o=+i.getAttribute("y")||0,s=i.getAttribute("transform");if(!s){var l=Sa.bBox(i,!1,r);return a&&(l.left+=a,l.right+=a),o&&(l.top+=o,l.bottom+=o),l}if(r+="~"+a+"~"+o+"~"+s,n=Sa.savedBBoxes[r],n)return Du.extendFlat({},n)}}var u,c;t?u=e:(c=Sa.tester.node(),u=e.cloneNode(!0),c.appendChild(u)),dd.select(u).attr("transform",null).call(nL.positionText,0,0);var f=u.getBoundingClientRect(),h=Sa.testref.node().getBoundingClientRect();t||c.removeChild(u);var d={height:f.height,width:f.width,left:f.left-h.left,top:f.top-h.top,right:f.right-h.left,bottom:f.bottom-h.top};return qq>=bot&&(Sa.savedBBoxes={},qq=0),r&&(Sa.savedBBoxes[r]=d),qq++,Du.extendFlat({},d)};function Moe(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Sa.setClipUrl=function(e,t,r){e.attr("clip-path",Vq(t,r))};function Vq(e,t){if(!e)return null;var r=t._context,n=r._exportedPlot?"":r._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}Sa.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||0,y:+i[1]||0}};Sa.setTranslate=function(e,t,r){var n=/(\btranslate\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||0,r=r||0,o=o.replace(n,"").trim(),o+=JS(t,r),o=o.trim(),e[a]("transform",o),o};Sa.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||1,y:+i[1]||1}};Sa.setScale=function(e,t,r){var n=/(\bscale\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||1,r=r||1,o=o.replace(n,"").trim(),o+="scale("+t+","+r+")",o=o.trim(),e[a]("transform",o),o};var wot=/\s*sc.*/;Sa.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var n=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var i=(this.getAttribute("transform")||"").replace(wot,"");i+=n,i=i.trim(),this.setAttribute("transform",i)})}};var Tot=/translate\([^)]*\)\s*$/;Sa.setTextPointsScale=function(e,t,r){e&&e.each(function(){var n,i=dd.select(this),a=i.select("text");if(a.node()){var o=parseFloat(a.attr("x")||0),s=parseFloat(a.attr("y")||0),l=(i.attr("transform")||"").match(Tot);t===1&&r===1?n=[]:n=[JS(o,s),"scale("+t+","+r+")",JS(-o,-s)],l&&n.push(l),i.attr("transform",n.join(""))}})};function Gq(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}Sa.getMarkerStandoff=Gq;var KS=Math.atan2,bb=Math.cos,E3=Math.sin;function Eoe(e,t){var r=t[0],n=t[1];return[r*bb(e)-n*E3(e),r*E3(e)+n*bb(e)]}var Coe,koe,Loe,Poe,Bq,Nq;function Hq(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!r||Du.isArrayOrTypedArray(r))&&(r=0));var n,i,a=t.marker.angleref;if(a==="previous"||a==="north"){if(t._geo){var o=t._geo.project(e.lonlat);n=o[0],i=o[1]}else{var s=t._xA,l=t._yA;if(s&&l)n=s.c2p(e.x),i=l.c2p(e.y);else return 90}if(t._geo){var u=e.lonlat[0],c=e.lonlat[1],f=t._geo.project([u,c+1e-5]),h=t._geo.project([u+1e-5,c]),d=KS(h[1]-i,h[0]-n),v=KS(f[1]-i,f[0]-n),x;if(a==="north")x=r/180*Math.PI;else if(a==="previous"){var b=u/180*Math.PI,p=c/180*Math.PI,C=Coe/180*Math.PI,E=koe/180*Math.PI,A=C-b,L=bb(E)*E3(A),_=E3(E)*bb(p)-bb(E)*E3(p)*bb(A);x=-KS(L,_)-Math.PI,Coe=u,koe=c}var k=Eoe(d,[bb(x),0]),M=Eoe(v,[E3(x),0]);r=KS(k[1]+M[1],k[0]+M[0])/Math.PI*180,a==="previous"&&!(Nq===t.uid&&e.i===Bq+1)&&(r=null)}if(a==="previous"&&!t._geo)if(Nq===t.uid&&e.i===Bq+1&&Ab(n)&&Ab(i)){var g=n-Loe,P=i-Poe,T=t.line&&t.line.shape||"",z=T.slice(T.length-1);z==="h"&&(P=0),z==="v"&&(g=0),r+=KS(P,g)/Math.PI*180+90}else r=null}return Loe=n,Poe=i,Bq=e.i,Nq=t.uid,r}Sa.getMarkerAngle=Hq});var Mb=ye((Iir,Woe)=>{"use strict";var C3=Oa(),Aot=Eo(),Sot=Mc(),jq=qa(),Sb=Dr(),Goe=Sb.strTranslate,aL=So(),oL=Ca(),k3=iu(),Hoe=U1(),Mot=Kh().OPPOSITE_SIDE,joe=/ [XY][0-9]* /,Wq=1.6,Xq=1.6;function Eot(e,t,r){var n=e._fullLayout,i=r.propContainer,a=r.propName,o=r.placeholder,s=r.traceIndex,l=r.avoid||{},u=r.attributes,c=r.transform,f=r.containerGroup,h=1,d=i.title,v=(d&&d.text?d.text:"").trim(),x=!1,b=d&&d.font?d.font:{},p=b.family,C=b.size,E=b.color,A=b.weight,L=b.style,_=b.variant,k=b.textcase,M=b.lineposition,g=b.shadow,P=r.subtitlePropName,T=!!P,z=r.subtitlePlaceholder,O=(i.title||{}).subtitle||{text:"",font:{}},V=O.text.trim(),G=!1,Z=1,H=O.font,N=H.family,j=H.size,re=H.color,oe=H.weight,_e=H.style,Me=H.variant,ke=H.textcase,me=H.lineposition,ie=H.shadow,Se;a==="title.text"?Se="titleText":a.indexOf("axis")!==-1?Se="axisTitleText":a.indexOf(!0)&&(Se="colorbarTitleText");var Le=e._context.edits[Se];function Ae(Ut,$t){return Ut===void 0||$t===void 0?!1:Ut.replace(joe," % ")===$t.replace(joe," % ")}v===""?h=0:Ae(v,o)&&(Le||(v=""),h=.2,x=!0),T&&(V===""?Z=0:Ae(V,z)&&(Le||(V=""),Z=.2,G=!0)),r._meta?v=Sb.templateString(v,r._meta):n._meta&&(v=Sb.templateString(v,n._meta));var Fe=v||V||Le,Pe;f||(f=Sb.ensureSingle(n._infolayer,"g","g-"+t),Pe=n._hColorbarMoveTitle);var ge=f.selectAll("text."+t).data(Fe?[0]:[]);ge.enter().append("text"),ge.text(v).attr("class",t),ge.exit().remove();var De=null,ce=t+"-subtitle",Ze=V||Le;if(T&&Ze&&(De=f.selectAll("text."+ce).data(Ze?[0]:[]),De.enter().append("text"),De.text(V).attr("class",ce),De.exit().remove()),!Fe)return f;function ut(Ut,$t){Sb.syncOrAsync([gt,Kt],{title:Ut,subtitle:$t})}function gt(Ut){var $t=Ut.title,sr=Ut.subtitle,Tr;!c&&Pe&&(c={}),c?(Tr="",c.rotate&&(Tr+="rotate("+[c.rotate,u.x,u.y]+")"),(c.offset||Pe)&&(Tr+=Goe(0,(c.offset||0)-(Pe||0)))):Tr=null,$t.attr("transform",Tr);function ur(Ot){if(Ot){var bt=C3.select(Ot.node().parentNode).select("."+ce);if(!bt.empty()){var rr=Ot.node().getBBox();if(rr.height){var lr=rr.y+rr.height+Wq*j;bt.attr("y",lr)}}}}if($t.style("opacity",h*oL.opacity(E)).call(aL.font,{color:oL.rgb(E),size:C3.round(C,2),family:p,weight:A,style:L,variant:_,textcase:k,shadow:g,lineposition:M}).attr(u).call(k3.convertToTspans,e,ur),sr){var $e=f.select("."+t+"-math-group"),Mt=$t.node().getBBox(),Ct=$e.node()?$e.node().getBBox():void 0,Vt=Ct?Ct.y+Ct.height+Wq*j:Mt.y+Mt.height+Xq*j,It=Sb.extendFlat({},u,{y:Vt});sr.attr("transform",Tr),sr.style("opacity",Z*oL.opacity(re)).call(aL.font,{color:oL.rgb(re),size:C3.round(j,2),family:N,weight:oe,style:_e,variant:Me,textcase:ke,shadow:ie,lineposition:me}).attr(It).call(k3.convertToTspans,e)}return Sot.previousPromises(e)}function Kt(Ut){var $t=Ut.title,sr=C3.select($t.node().parentNode);if(l&&l.selection&&l.side&&v){sr.attr("transform",null);var Tr=Mot[l.side],ur=l.side==="left"||l.side==="top"?-1:1,$e=Aot(l.pad)?l.pad:2,Mt=aL.bBox(sr.node()),Ct={t:0,b:0,l:0,r:0},Vt=e._fullLayout._reservedMargin;for(var It in Vt)for(var Ot in Vt[It]){var bt=Vt[It][Ot];Ct[Ot]=Math.max(Ct[Ot],bt)}var rr={left:Ct.l,top:Ct.t,right:n.width-Ct.r,bottom:n.height-Ct.b},lr=l.maxShift||ur*(rr[l.side]-Mt[l.side]),wr=0;if(lr<0)wr=lr;else{var Cr=l.offsetLeft||0,Kr=l.offsetTop||0;Mt.left-=Cr,Mt.right-=Cr,Mt.top-=Kr,Mt.bottom-=Kr,l.selection.each(function(){var Yr=aL.bBox(this);Sb.bBoxIntersect(Mt,Yr,$e)&&(wr=Math.max(wr,ur*(Yr[l.side]-Mt[Tr])+$e))}),wr=Math.min(lr,wr),i._titleScoot=Math.abs(wr)}if(wr>0||lr<0){var Gr={left:[-wr,0],right:[wr,0],top:[0,-wr],bottom:[0,wr]}[l.side];sr.attr("transform",Goe(Gr[0],Gr[1]))}}}ge.call(ut,De);function st(Ut,$t){Ut.text($t).on("mouseover.opacity",function(){C3.select(this).transition().duration(Hoe.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){C3.select(this).transition().duration(Hoe.HIDE_PLACEHOLDER).style("opacity",0)})}if(Le&&(v?ge.on(".opacity",null):(st(ge,o),x=!0),ge.call(k3.makeEditable,{gd:e}).on("edit",function(Ut){s!==void 0?jq.call("_guiRestyle",e,a,Ut,s):jq.call("_guiRelayout",e,a,Ut)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ut)}).on("input",function(Ut){this.text(Ut||" ").call(k3.positionText,u.x,u.y)}),T)){if(T&&!v){var lt=ge.node().getBBox(),Gt=lt.y+lt.height+Xq*j;De.attr("y",Gt)}V?De.on(".opacity",null):(st(De,z),G=!0),De.call(k3.makeEditable,{gd:e}).on("edit",function(Ut){jq.call("_guiRelayout",e,"title.subtitle.text",Ut)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ut)}).on("input",function(Ut){this.text(Ut||" ").call(k3.positionText,De.attr("x"),De.attr("y"))})}return ge.classed("js-placeholder",x),De&&De.classed("js-placeholder",G),f}Woe.exports={draw:Eot,SUBTITLE_PADDING_EM:Xq,SUBTITLE_PADDING_MATHJAX_EM:Wq}});var ym=ye((Rir,Joe)=>{"use strict";var Cot=Oa(),kot=e3().utcFormat,yc=Dr(),Lot=yc.numberFormat,gm=Eo(),a_=yc.cleanNumber,Pot=yc.ms2DateTime,Xoe=yc.dateTime2ms,mm=yc.ensureNumber,Zoe=yc.isArrayOrTypedArray,o_=hs(),sL=o_.FP_SAFE,bg=o_.BADNUM,Iot=o_.LOG_CLIP,Rot=o_.ONEWEEK,lL=o_.ONEDAY,uL=o_.ONEHOUR,Yoe=o_.ONEMIN,Koe=o_.ONESEC,cL=Af(),dL=hd(),fL=dL.HOUR_PATTERN,hL=dL.WEEKDAY_PATTERN;function $S(e){return Math.pow(10,e)}function Zq(e){return e!=null}Joe.exports=function(t,r){r=r||{};var n=t._id||"x",i=n.charAt(0);function a(A,L){if(A>0)return Math.log(A)/Math.LN10;if(A<=0&&L&&t.range&&t.range.length===2){var _=t.range[0],k=t.range[1];return .5*(_+k-2*Iot*Math.abs(_-k))}else return bg}function o(A,L,_,k){if((k||{}).msUTC&&gm(A))return+A;var M=Xoe(A,_||t.calendar);if(M===bg)if(gm(A)){A=+A;var g=Math.floor(yc.mod(A+.05,1)*10),P=Math.round(A-g/10);M=Xoe(new Date(P))+g/10}else return bg;return M}function s(A,L,_){return Pot(A,L,_||t.calendar)}function l(A){return t._categories[Math.round(A)]}function u(A){if(Zq(A)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[A]!==void 0)return t._categoriesMap[A];t._categories.push(typeof A=="number"?String(A):A);var L=t._categories.length-1;return t._categoriesMap[A]=L,L}return bg}function c(A,L){for(var _=new Array(L),k=0;kt.range[1]&&(_=!_);for(var k=_?-1:1,M=k*A,g=0,P=0;Pz)g=P+1;else{g=M<(T+z)/2?P:P+1;break}}var O=t._B[g]||0;return isFinite(O)?v(A,t._m2,O):0},p=function(A){var L=t._rangebreaks.length;if(!L)return x(A,t._m,t._b);for(var _=0,k=0;kt._rangebreaks[k].pmax&&(_=k+1);return x(A,t._m2,t._B[_])}}t.c2l=t.type==="log"?a:mm,t.l2c=t.type==="log"?$S:mm,t.l2p=b,t.p2l=p,t.c2p=t.type==="log"?function(A,L){return b(a(A,L))}:b,t.p2c=t.type==="log"?function(A){return $S(p(A))}:p,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=a_,t.c2d=t.c2r=t.l2d=t.l2r=mm,t.d2p=t.r2p=function(A){return t.l2p(a_(A))},t.p2d=t.p2r=p,t.cleanPos=mm):t.type==="log"?(t.d2r=t.d2l=function(A,L){return a(a_(A),L)},t.r2d=t.r2c=function(A){return $S(a_(A))},t.d2c=t.r2l=a_,t.c2d=t.l2r=mm,t.c2r=a,t.l2d=$S,t.d2p=function(A,L){return t.l2p(t.d2r(A,L))},t.p2d=function(A){return $S(p(A))},t.r2p=function(A){return t.l2p(a_(A))},t.p2r=p,t.cleanPos=mm):t.type==="date"?(t.d2r=t.r2d=yc.identity,t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=s,t.d2p=t.r2p=function(A,L,_){return t.l2p(o(A,0,_))},t.p2d=t.p2r=function(A,L,_){return s(p(A),L,_)},t.cleanPos=function(A){return yc.cleanDate(A,bg,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=u,t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(A){var L=d(A);return L!==void 0?L:t.fraction2r(.5)},t.l2r=t.c2r=mm,t.r2l=d,t.d2p=function(A){return t.l2p(t.r2c(A))},t.p2d=function(A){return l(p(A))},t.r2p=t.d2p,t.p2r=p,t.cleanPos=function(A){return typeof A=="string"&&A!==""?A:mm(A)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(A){var L=h(A);return L!==void 0?L:t.fraction2r(.5)},t.r2c_just_indices=f,t.l2r=t.c2r=mm,t.r2l=h,t.d2p=function(A){return t.l2p(t.r2c(A))},t.p2d=function(A){return l(p(A))},t.r2p=t.d2p,t.p2r=p,t.cleanPos=function(A){return Array.isArray(A)||typeof A=="string"&&A!==""?A:mm(A)},t.setupMultiCategory=function(A){var L=t._traceIndices,_,k,M=t._matchGroup;if(M&&t._categories.length===0){for(var g in M)if(g!==n){var P=r[cL.id2name(g)];L=L.concat(P._traceIndices)}}var T=[[0,{}],[0,{}]],z=[];for(_=0;_P[1]&&(k[g?0:1]=_),k[0]===k[1]){var T=t.l2r(L),z=t.l2r(_);if(L!==void 0){var O=T+1;_!==void 0&&(O=Math.min(O,z)),k[g?1:0]=O}if(_!==void 0){var V=z+1;L!==void 0&&(V=Math.max(V,T)),k[g?0:1]=V}}}},t.cleanRange=function(A,L){t._cleanRange(A,L),t.limitRange(A)},t._cleanRange=function(A,L){L||(L={}),A||(A="range");var _=yc.nestedProperty(t,A).get(),k,M;if(t.type==="date"?M=yc.dfltRange(t.calendar):i==="y"?M=dL.DFLTRANGEY:t._name==="realaxis"?M=[0,1]:M=L.dfltRange||dL.DFLTRANGEX,M=M.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(M[0]=0),!_||_.length!==2){yc.nestedProperty(t,A).set(M);return}var g=_[0]===null,P=_[1]===null;for(t.type==="date"&&!t.autorange&&(_[0]=yc.cleanDate(_[0],bg,t.calendar),_[1]=yc.cleanDate(_[1],bg,t.calendar)),k=0;k<2;k++)if(t.type==="date"){if(!yc.isDateTime(_[k],t.calendar)){t[A]=M;break}if(t.r2l(_[0])===t.r2l(_[1])){var T=yc.constrain(t.r2l(_[0]),yc.MIN_MS+1e3,yc.MAX_MS-1e3);_[0]=t.l2r(T-1e3),_[1]=t.l2r(T+1e3);break}}else{if(!gm(_[k]))if(!(g||P)&&gm(_[1-k]))_[k]=_[1-k]*(k?10:.1);else{t[A]=M;break}if(_[k]<-sL?_[k]=-sL:_[k]>sL&&(_[k]=sL),_[0]===_[1]){var z=Math.max(1,Math.abs(_[0]*1e-6));_[0]-=z,_[1]+=z}}},t.setScale=function(A){var L=r._size;if(t.overlaying){var _=cL.getFromId({_fullLayout:r},t.overlaying);t.domain=_.domain}var k=A&&t._r?"_r":"range",M=t.calendar;t.cleanRange(k);var g=t.r2l(t[k][0],M),P=t.r2l(t[k][1],M),T=i==="y";if(T?(t._offset=L.t+(1-t.domain[1])*L.h,t._length=L.h*(t.domain[1]-t.domain[0]),t._m=t._length/(g-P),t._b=-t._m*P):(t._offset=L.l+t.domain[0]*L.w,t._length=L.w*(t.domain[1]-t.domain[0]),t._m=t._length/(P-g),t._b=-t._m*g),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var z,O;if(t._rangebreaks=t.locateBreaks(Math.min(g,P),Math.max(g,P)),t._rangebreaks.length){for(z=0;zP&&(V=!V),V&&t._rangebreaks.reverse();var G=V?-1:1;for(t._m2=G*t._length/(Math.abs(P-g)-t._lBreaks),t._B.push(-t._m2*(T?P:g)),z=0;zM&&(M+=7,gM&&(M+=24,g=k&&g=k&&A=ie.min&&(_eie.max&&(ie.max=Me),ke=!1)}ke&&P.push({min:_e,max:Me})}};for(_=0;_{"use strict";var $oe=Eo(),Yq=Dr(),Dot=hs().BADNUM,vL=Yq.isArrayOrTypedArray,Fot=Yq.isDateTime,zot=Yq.cleanNumber,Qoe=Math.round;tse.exports=function(t,r,n){var i=t,a=n.noMultiCategory;if(vL(i)&&!i.length)return"-";if(!a&&Uot(i))return"multicategory";if(a&&Array.isArray(i[0])){for(var o=[],s=0;sa*2}function ese(e){return Math.max(1,(e-1)/1e3)}function Not(e,t){for(var r=e.length,n=ese(r),i=0,a=0,o={},s=0;si*2}function Uot(e){return vL(e[0])&&vL(e[1])}});var wg=ye((Fir,use)=>{"use strict";var Vot=Oa(),ase=Eo(),s_=Dr(),pL=hs().FP_SAFE,Got=qa(),Hot=So(),ose=Af(),jot=ose.getFromId,Wot=ose.isLinked;use.exports={applyAutorangeOptions:lse,getAutoRange:Kq,makePadFn:Jq,doAutoRange:Zot,findExtremes:Yot,concatExtremes:eB};function Kq(e,t){var r,n,i=[],a=e._fullLayout,o=Jq(a,t,0),s=Jq(a,t,1),l=eB(e,t),u=l.min,c=l.max;if(u.length===0||c.length===0)return s_.simpleMap(t.range,t.r2l);var f=u[0].val,h=c[0].val;for(r=1;r0&&(P=E-o(_)-s(k),P>A?T/P>L&&(M=_,g=k,L=T/P):T/E>L&&(M={val:_.val,nopad:1},g={val:k.val,nopad:1},L=T/E));function z(H,N){return Math.max(H,s(N))}if(f===h){var O=f-1,V=f+1;if(p)if(f===0)i=[0,1];else{var G=(f>0?c:u).reduce(z,0),Z=f/(1-Math.min(.5,G/E));i=f>0?[0,Z]:[Z,0]}else C?i=[Math.max(0,O),Math.max(1,V)]:i=[O,V]}else p?(M.val>=0&&(M={val:0,nopad:1}),g.val<=0&&(g={val:0,nopad:1})):C&&(M.val-L*o(M)<0&&(M={val:0,nopad:1}),g.val<=0&&(g={val:1,nopad:1})),L=(g.val-M.val-rse(t,_.val,k.val))/(E-o(M)-s(g)),i=[M.val-L*o(M),g.val+L*s(g)];return i=lse(i,t),t.limitRange&&t.limitRange(),v&&i.reverse(),s_.simpleMap(i,t.l2r||Number)}function rse(e,t,r){var n=0;if(e.rangebreaks)for(var i=e.locateBreaks(t,r),a=0;a0?r.ppadplus:r.ppadminus)||r.ppad||0),_=A((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),k=A(r.vpadplus||r.vpad),M=A(r.vpadminus||r.vpad);if(!u){if(C=1/0,E=-1/0,l)for(f=0;f0&&(C=h),h>E&&h-pL&&(C=h),h>E&&h=T;f--)P(f);return{min:n,max:i,opts:r}}function $q(e,t,r,n){sse(e,t,r,n,Kot)}function Qq(e,t,r,n){sse(e,t,r,n,Jot)}function sse(e,t,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,l=0;l=r&&(u.extrapad||!o)){s=!1;break}else i(t,u.val)&&u.pad<=r&&(o||!u.extrapad)&&(e.splice(l,1),l--)}if(s){var c=a&&t===0;e.push({val:t,pad:c?0:r,extrapad:c?!1:o})}}function nse(e){return ase(e)&&Math.abs(e)=t}function $ot(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&gL(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&gL(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function Qot(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&gL(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&gL(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function gL(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=l&&(a=l,r=l),o<=l&&(o=l,n=l)}}return r=$ot(r,t),n=Qot(n,t),[r,n]}});var ho=ye((zir,Pse)=>{"use strict";var w0=Oa(),kh=Eo(),P3=Mc(),eM=qa(),$o=Dr(),I3=$o.strTranslate,Eb=iu(),est=Mb(),tM=Ca(),Xp=So(),tst=Rd(),cse=Aq(),Jd=hs(),rst=Jd.ONEMAXYEAR,_L=Jd.ONEAVGYEAR,xL=Jd.ONEMINYEAR,ist=Jd.ONEMAXQUARTER,nB=Jd.ONEAVGQUARTER,bL=Jd.ONEMINQUARTER,nst=Jd.ONEMAXMONTH,R3=Jd.ONEAVGMONTH,wL=Jd.ONEMINMONTH,Zp=Jd.ONEWEEK,zv=Jd.ONEDAY,l_=zv/2,xm=Jd.ONEHOUR,rM=Jd.ONEMIN,TL=Jd.ONESEC,ast=Jd.ONEMILLI,ost=Jd.ONEMICROSEC,Cb=Jd.MINUS_SIGN,ML=Jd.BADNUM,aB={K:"zeroline"},oB={K:"gridline",L:"path"},sB={K:"minor-gridline",L:"path"},bse={K:"tick",L:"path"},fse={K:"tick",L:"text"},hse={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},EL=Kh(),QS=EL.MID_SHIFT,kb=EL.CAP_SHIFT,iM=EL.LINE_SPACING,sst=EL.OPPOSITE_SIDE,AL=3,Qn=Pse.exports={};Qn.setConvert=ym();var lst=L3(),Ay=Af(),ust=Ay.idSort,cst=Ay.isLinked;Qn.id2name=Ay.id2name;Qn.name2id=Ay.name2id;Qn.cleanId=Ay.cleanId;Qn.list=Ay.list;Qn.listIds=Ay.listIds;Qn.getFromId=Ay.getFromId;Qn.getFromTrace=Ay.getFromTrace;var wse=wg();Qn.getAutoRange=wse.getAutoRange;Qn.findExtremes=wse.findExtremes;var fst=1e-4;function fB(e){var t=(e[1]-e[0])*fst;return[e[0]-t,e[1]+t]}Qn.coerceRef=function(e,t,r,n,i,a){var o=n.charAt(n.length-1),s=r._fullLayout._subplots[o+"axis"],l=n+"ref",u={};return i||(i=s[0]||(typeof a=="string"?a:a[0])),a||(a=i),s=s.concat(s.map(function(c){return c+" domain"})),u[l]={valType:"enumerated",values:s.concat(a?typeof a=="string"?[a]:a:[]),dflt:i},$o.coerce(e,t,u,l)};Qn.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Qn.coercePosition=function(e,t,r,n,i,a){var o,s,l=Qn.getRefType(n);if(l!=="range")o=$o.ensureNumber,s=r(i,a);else{var u=Qn.getFromId(t,n);a=u.fraction2r(a),s=r(i,a),o=u.cleanPos}e[i]=o(s)};Qn.cleanPosition=function(e,t,r){var n=r==="paper"||r==="pixel"?$o.ensureNumber:Qn.getFromId(t,r).cleanPos;return n(e)};Qn.redrawComponents=function(e,t){t=t||Qn.listIds(e);var r=e._fullLayout;function n(i,a,o,s){for(var l=eM.getComponentMethod(i,a),u={},c=0;c2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Qn.saveRangeInitial=function(e,t){for(var r=Qn.list(e,"",!0),n=!1,i=0;if*.3||u(n)||u(i))){var h=r.dtick/2;e+=e+ho){var s=Number(r.substr(1));a.exactYears>o&&s%12===0?e=Qn.tickIncrement(e,"M6","reverse")+zv*1.5:a.exactMonths>o?e=Qn.tickIncrement(e,"M1","reverse")+zv*15.5:e-=l_;var l=Qn.tickIncrement(e,r);if(l<=n)return l}return e}Qn.prepMinorTicks=function(e,t,r){if(!t.minor.dtick){delete e.dtick;var n=t.dtick&&kh(t._tmin),i;if(n){var a=Qn.tickIncrement(t._tmin,t.dtick,!0);i=[t._tmin,a*.99+t._tmin*.01]}else{var o=$o.simpleMap(t.range,t.r2l);i=[o[0],.8*o[0]+.2*o[1]]}if(e.range=$o.simpleMap(i,t.l2r),e._isMinor=!0,Qn.prepTicks(e,r),n){var s=kh(t.dtick),l=kh(e.dtick),u=s?t.dtick:+t.dtick.substring(1),c=l?e.dtick:+e.dtick.substring(1);s&&l?tB(u,c)?u===2*Zp&&c===2*zv&&(e.dtick=Zp):u===2*Zp&&c===3*zv?e.dtick=Zp:u===Zp&&!(t._input.minor||{}).nticks?e.dtick=zv:pse(u/c,2.5)?e.dtick=u/2:e.dtick=u:String(t.dtick).charAt(0)==="M"?l?e.dtick="M1":tB(u,c)?u>=12&&c===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?tB(u,c)||(e.dtick=pse(u/c,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}t.minor._tick0Init===void 0&&(e.tick0=t.tick0)};function tB(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function pse(e,t){return Math.abs(e/t-1)<.001}Qn.prepTicks=function(e,t){var r=$o.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,i;n||(e.type==="category"||e.type==="multicategory"?(i=e.tickfont?$o.bigFont(e.tickfont.size||12):15,n=e._length/i):(i=e._id.charAt(0)==="y"?40:80,n=$o.constrain(e._length/i,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(r[1]-r[0])/n,Qn.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(a=n-1,o=n):(a=n,o=n);var s=e[a].value,l=e[o].value,u=Math.abs(l-s),c=r||u,f=0;c>=xL?u>=xL&&u<=rst?f=u:f=_L:r===nB&&c>=bL?u>=bL&&u<=ist?f=u:f=nB:c>=wL?u>=wL&&u<=nst?f=u:f=R3:r===Zp&&c>=Zp?f=Zp:c>=zv?f=zv:r===l_&&c>=l_?f=l_:r===xm&&c>=xm&&(f=xm);var h;f>=u&&(f=u,h=!0);var d=i+f;if(t.rangebreaks&&f>0){for(var v=84,x=0,b=0;bZp&&(f=u)}(f>0||n===0)&&(e[n].periodX=i+f/2)}}Qn.calcTicks=function(t,r){for(var n=t.type,i=t.calendar,a=t.ticklabelstep,o=t.ticklabelmode==="period",s=t.range[0]>t.range[1],l=!t.ticklabelindex||$o.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],u=$o.simpleMap(t.range,t.r2l,void 0,void 0,r),c=u[1]=(E?0:1);A--){var L=!A;A?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var _=A?t:$o.extendFlat({},t,t.minor);if(L?Qn.prepMinorTicks(_,t,r):Qn.prepTicks(_,r),_.tickmode==="array"){A?(b=[],v=gse(t,!L)):(p=[],x=gse(t,!L));continue}if(_.tickmode==="sync"){b=[],v=mst(t);continue}var k=fB(u),M=k[0],g=k[1],P=kh(_.dtick),T=n==="log"&&!(P||_.dtick.charAt(0)==="L"),z=Qn.tickFirst(_,r);if(A){if(t._tmin=z,z=g:V<=g;V=Qn.tickIncrement(V,H,c,i)){if(A&&G++,_.rangebreaks&&!c){if(V=h)break}if(b.length>d||V===O)break;O=V;var N={value:V};A?(T&&V!==(V|0)&&(N.simpleLabel=!0),a>1&&G%a&&(N.skipLabel=!0),b.push(N)):(N.minor=!0,p.push(N))}}if(!p||p.length<2)l=!1;else{var j=(p[1].value-p[0].value)*(s?-1:1);Ust(j,t.tickformat)||(l=!1)}if(!l)C=b;else{var re=b.concat(p);o&&b.length&&(re=re.slice(1)),re=re.sort(function(Gt,Ut){return Gt.value-Ut.value}).filter(function(Gt,Ut,$t){return Ut===0||Gt.value!==$t[Ut-1].value});var oe=re.map(function(Gt,Ut){return Gt.minor===void 0&&!Gt.skipLabel?Ut:null}).filter(function(Gt){return Gt!==null});oe.forEach(function(Gt){l.map(function(Ut){var $t=Gt+Ut;$t>=0&&$t-1;Fe--){if(b[Fe].drop){b.splice(Fe,1);continue}b[Fe].value=iB(b[Fe].value,t);var ce=t.c2p(b[Fe].value);(Pe?De>ce-ge:Deh||srh&&($t.periodX=h),sri&&h_L)t/=_L,n=i(10),e.dtick="M"+12*_m(t,n,mL);else if(a>R3)t/=R3,e.dtick="M"+_m(t,1,mse);else if(a>zv){if(e.dtick=_m(t,zv,e._hasDayOfWeekBreaks?[1,2,7,14]:yst),!r){var o=Qn.getTickFormat(e),s=e.ticklabelmode==="period";s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=$o.dateTick0(e.calendar,2):e.tick0=$o.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}}else a>xm?e.dtick=_m(t,xm,mse):a>rM?e.dtick=_m(t,rM,yse):a>TL?e.dtick=_m(t,TL,yse):(n=i(10),e.dtick=_m(t,n,mL))}else if(e.type==="log"){e.tick0=0;var l=$o.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(l[1]-l[0])<1){var u=1.5*Math.abs((l[1]-l[0])/t);t=Math.abs(Math.pow(10,l[1])-Math.pow(10,l[0]))/u,n=i(10),e.dtick="L"+_m(t,n,mL)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):vB(e)?(e.tick0=0,n=1,e.dtick=_m(t,n,_st)):(e.tick0=0,n=i(10),e.dtick=_m(t,n,mL));if(e.dtick===0&&(e.dtick=1),!kh(e.dtick)&&typeof e.dtick!="string"){var c=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(c)}};function Mse(e){var t=e.dtick;if(e._tickexponent=0,!kh(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),n=e.l2r(r).replace(/(^-|i)/g,""),i=n.length;if(String(t).charAt(0)==="M")i>10||n.substr(5)!=="01-01"?e._tickround="d":e._tickround=+t.substr(1)%12===0?"y":"m";else if(t>=zv&&i<=10||t>=zv*15)e._tickround="d";else if(t>=rM&&i<=16||t>=xm)e._tickround="M";else if(t>=TL&&i<=19||t>=rM)e._tickround="S";else{var a=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(i,a)-20,e._tickround<0&&(e._tickround=4)}}else if(kh(t)||t.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);kh(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),l=Math.floor(Math.log(s)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(l)>u&&(SL(e.exponentformat)&&!hB(l)?e._tickexponent=3*Math.round((l-1)/3):e._tickexponent=l)}else e._tickround=null}Qn.tickIncrement=function(e,t,r,n){var i=r?-1:1;if(kh(t))return $o.increment(e,i*t);var a=t.charAt(0),o=i*Number(t.substr(1));if(a==="M")return $o.incrementMonth(e,o,n);if(a==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(a==="D"){var s=t==="D2"?Sse:Ase,l=e+i*.01,u=$o.roundUp($o.mod(l,1),s,r);return Math.floor(l)+Math.log(w0.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(t)};Qn.tickFirst=function(e,t){var r=e.r2l||Number,n=$o.simpleMap(e.range,r,void 0,void 0,t),i=n[1]=0&&p<=e._length?b:null};if(a&&$o.isArrayOrTypedArray(e.ticktext)){var f=$o.simpleMap(e.range,e.r2l),h=(Math.abs(f[1]-f[0])-(e._lBreaks||0))/1e4;for(u=0;u"+s;else{var u=aM(e),c=e._trueSide||e.side;(!u&&c==="top"||u&&c==="bottom")&&(o+="
")}t.text=o}function bst(e,t,r,n,i){var a=e.dtick,o=t.x,s=e.tickformat,l=typeof a=="string"&&a.charAt(0);if(i==="never"&&(i=""),n&&l!=="L"&&(a="L3",l="L"),s||l==="L")t.text=nM(Math.pow(10,o),e,i,n);else if(kh(a)||l==="D"&&$o.mod(o+.01,1)<.1){var u=Math.round(o),c=Math.abs(u),f=e.exponentformat;f==="power"||SL(f)&&hB(u)?(u===0?t.text=1:u===1?t.text="10":t.text="10"+(u>1?"":Cb)+c+"",t.fontSize*=1.25):(f==="e"||f==="E")&&c>2?t.text="1"+f+(u>0?"+":Cb)+c:(t.text=nM(Math.pow(10,o),e,"","fakehover"),a==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(l==="D")t.text=String(Math.round(Math.pow(10,$o.mod(o,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(a);if(e.dtick==="D1"){var h=String(t.text).charAt(0);(h==="0"||h==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(o<0?.5:.25)))}}function wst(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function Tst(e,t,r){var n=Math.round(t.x),i=e._categories[n]||[],a=i[1]===void 0?"":String(i[1]),o=i[0]===void 0?"":String(i[0]);r?t.text=o+" - "+a:(t.text=a,t.text2=o)}function Ast(e,t,r,n,i){i==="never"?i="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide"),t.text=nM(t.x,e,i,n)}function Sst(e,t,r,n,i){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=Mst(a);if(o[1]>=100)t.text=nM($o.deg2rad(t.x),e,i,n);else{var s=t.x<0;o[1]===1?o[0]===1?t.text="\u03C0":t.text=o[0]+"\u03C0":t.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),s&&(t.text=Cb+t.text)}}}else t.text=nM(t.x,e,i,n)}function Mst(e){function t(s,l){return Math.abs(s-l)<=1e-6}function r(s,l){return t(l,0)?s:r(l,s%l)}function n(s){for(var l=1;!t(Math.round(s*l)/l,s);)l*=10;return l}var i=n(e),a=e*i,o=Math.abs(r(a,i));return[Math.round(a/o),Math.round(i/o)]}var Est=["f","p","n","\u03BC","m","","k","M","G","T"];function SL(e){return e==="SI"||e==="B"}function hB(e){return e>14||e<-15}function nM(e,t,r,n){var i=e<0,a=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,l=Qn.getTickFormat(t),u=t.separatethousands;if(n){var c={exponentformat:o,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:kh(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};Mse(c),a=(Number(c._tickround)||0)+4,s=c._tickexponent,t.hoverformat&&(l=t.hoverformat)}if(l)return t._numFormat(l)(e).replace(/-/g,Cb);var f=Math.pow(10,-a)/2;if(o==="none"&&(s=0),e=Math.abs(e),e"+v+"":o==="B"&&s===9?e+="B":SL(o)&&(e+=Est[s/3+5])}return i?Cb+e:e}Qn.getTickFormat=function(e){var t;function r(l){return typeof l!="string"?l:Number(l.replace("M",""))*R3}function n(l,u){var c=["L","D"];if(typeof l==typeof u){if(typeof l=="number")return l-u;var f=c.indexOf(l.charAt(0)),h=c.indexOf(u.charAt(0));return f===h?Number(l.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):f-h}else return typeof l=="number"?1:-1}function i(l,u,c){var f=c||function(v){return v},h=u[0],d=u[1];return(!h&&typeof h!="number"||f(h)<=f(l))&&(!d&&typeof d!="number"||f(d)>=f(l))}function a(l,u){var c=u[0]===null,f=u[1]===null,h=n(l,u[0])>=0,d=n(l,u[1])<=0;return(c||h)&&(f||d)}var o,s;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&i.unshift(i.splice(c,1).shift())}});var s={false:{left:0,right:0}};return $o.syncOrAsync(i.map(function(l){return function(){if(l){var u=Qn.getFromId(e,l);r||(r={}),r.axShifts=s,r.overlayingShiftedAx=o;var c=Qn.drawOne(e,u,r);return u._shiftPusher&&cB(u,u._fullDepth||0,s,!0),u._r=u.range.slice(),u._rl=$o.simpleMap(u._r,u.r2l),c}}}))};Qn.drawOne=function(e,t,r){r=r||{};var n=r.axShifts||{},i=r.overlayingShiftedAx||[],a,o,s;t.setScale();var l=e._fullLayout,u=t._id,c=u.charAt(0),f=Qn.counterLetter(u),h=l._plots[t._mainSubplot],d=t.zerolinelayer==="above traces";if(!h)return;if(t._shiftPusher=t.autoshift||i.indexOf(t._id)!==-1||i.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var v=t.linewidth/2||0;t.ticks==="inside"&&(v+=t.ticklen),cB(t,v,n,!0),cB(t,t.shift||0,n,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=Nst(t,n));var x=h[c+"axislayer"],b=t._mainLinePosition,p=b+=t._shift,C=t._mainMirrorPosition,E=t._vals=Qn.calcTicks(t),A=[t.mirror,p,C].join("_");for(a=0;a0?sr.bottom-Ut:0,$t))));var Mt=0,Ct=0;if(t._shiftPusher&&(Mt=Math.max($t,sr.height>0?lt==="l"?Ut-sr.left:sr.right-Ut:0),t.title.text!==l._dfltTitle[c]&&(Ct=(t._titleStandoff||0)+(t._titleScoot||0),lt==="l"&&(Ct+=xse(t))),t._fullDepth=Math.max(Mt,Ct)),t.automargin){Tr={x:0,y:0,r:0,l:0,t:0,b:0};var Vt=[0,1],It=typeof t._shift=="number"?t._shift:0;if(c==="x"){if(lt==="b"?Tr[lt]=t._depth:(Tr[lt]=t._depth=Math.max(sr.width>0?Ut-sr.top:0,$t),Vt.reverse()),sr.width>0){var Ot=sr.right-(t._offset+t._length);Ot>0&&(Tr.xr=1,Tr.r=Ot);var bt=t._offset-sr.left;bt>0&&(Tr.xl=0,Tr.l=bt)}}else if(lt==="l"?(t._depth=Math.max(sr.height>0?Ut-sr.left:0,$t),Tr[lt]=t._depth-It):(t._depth=Math.max(sr.height>0?sr.right-Ut:0,$t),Tr[lt]=t._depth+It,Vt.reverse()),sr.height>0){var rr=sr.bottom-(t._offset+t._length);rr>0&&(Tr.yb=0,Tr.b=rr);var lr=t._offset-sr.top;lr>0&&(Tr.yt=1,Tr.t=lr)}Tr[f]=t.anchor==="free"?t.position:t._anchorAxis.domain[Vt[0]],t.title.text!==l._dfltTitle[c]&&(Tr[lt]+=xse(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(ur={x:0,y:0,r:0,l:0,t:0,b:0},ur[Gt]=t.linewidth,t.mirror&&t.mirror!==!0&&(ur[Gt]+=$t),t.mirror===!0||t.mirror==="ticks"?ur[f]=t._anchorAxis.domain[Vt[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(ur[f]=[t._counterDomainMin,t._counterDomainMax][Vt[1]]))}st&&($e=eM.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(_se(Tr,t.automargin),_se(ur,t.automargin)),P3.autoMargin(e,dB(t),Tr),P3.autoMargin(e,kse(t),ur),P3.autoMargin(e,Lse(t),$e)}),$o.syncOrAsync(gt)}};function _se(e,t){if(e){var r=Object.keys(hse).reduce(function(n,i){return t.indexOf(i)!==-1&&hse[i].forEach(function(a){n[a]=1}),n},{});Object.keys(e).forEach(function(n){r[n]||(n.length===1?e[n]=0:delete e[n])})}}function Cst(e,t){var r=[],n,i=function(a,o){var s=a.xbnd[o];s!==null&&r.push($o.extendFlat({},a,{x:s}))};if(t.length){for(n=0;ne.range[1],s=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,l=!s;if(r){var u=o?-1:1;r=r*u}if(n){var c=e.side,f=s&&(c==="top"||c==="left")||l&&(c==="bottom"||c==="right")?1:-1;n=n*f}return e._id.charAt(0)==="x"?function(h){return I3(i+e._offset+e.l2p(lB(h))+r,a+n)}:function(h){return I3(a+n,i+e._offset+e.l2p(lB(h))+r)}};function lB(e){return e.periodX!==void 0?e.periodX:e.x}function Ist(e){var t=e.ticklabelposition||"",r=e.tickson||"",n=function(v){return t.indexOf(v)!==-1},i=n("top"),a=n("left"),o=n("right"),s=n("bottom"),l=n("inside"),u=r!=="boundaries"&&(s||a||i||o);if(!u&&!l)return[0,0];var c=e.side,f=u?(e.tickwidth||0)/2:0,h=AL,d=e.tickfont?e.tickfont.size:12;return(s||i)&&(f+=d*kb,h+=(e.linewidth||0)/2),(a||o)&&(f+=(e.linewidth||0)/2,h+=AL),l&&c==="top"&&(h-=d*(1-kb)),(a||i)&&(f=-f),(c==="bottom"||c==="right")&&(h=-h),[u?f:0,l?h:0]}Qn.makeTickPath=function(e,t,r,n){n||(n={});var i=n.minor;if(i&&!e.minor)return"";var a=n.len!==void 0?n.len:i?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),s=(e.linewidth||1)/2;return o==="x"?"M0,"+(t+s*r)+"v"+a*r:"M"+(t+s*r)+",0h"+a*r};Qn.makeLabelFns=function(e,t,r){var n=e.ticklabelposition||"",i=e.tickson||"",a=function(O){return n.indexOf(O)!==-1},o=a("top"),s=a("left"),l=a("right"),u=a("bottom"),c=i!=="boundaries"&&(u||s||o||l),f=a("inside"),h=n==="inside"&&e.ticks==="inside"||!f&&e.ticks==="outside"&&i!=="boundaries",d=0,v=0,x=h?e.ticklen:0;if(f?x*=-1:c&&(x=0),h&&(d+=x,r)){var b=$o.deg2rad(r);d=x*Math.cos(b)+1,v=x*Math.sin(b)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(f?-1:1);var p={labelStandoff:d,labelShift:v},C,E,A,L,_=0,k=e.side,M=e._id.charAt(0),g=e.tickangle,P;if(M==="x")P=!f&&k==="bottom"||f&&k==="top",L=P?1:-1,f&&(L*=-1),C=v*L,E=t+d*L,A=P?1:-.2,Math.abs(g)===90&&(f?A+=QS:g===-90&&k==="bottom"?A=kb:g===90&&k==="top"?A=QS:A=.5,_=QS/2*(g/90)),p.xFn=function(O){return O.dx+C+_*O.fontSize},p.yFn=function(O){return O.dy+E+O.fontSize*A},p.anchorFn=function(O,V){if(c){if(s)return"end";if(l)return"start"}return!kh(V)||V===0||V===180?"middle":V*L<0!==f?"end":"start"},p.heightFn=function(O,V,G){return V<-60||V>60?-.5*G:e.side==="top"!==f?-G:0};else if(M==="y"){if(P=!f&&k==="left"||f&&k==="right",L=P?1:-1,f&&(L*=-1),C=d,E=v*L,A=0,!f&&Math.abs(g)===90&&(g===-90&&k==="left"||g===90&&k==="right"?A=kb:A=.5),f){var T=kh(g)?+g:0;if(T!==0){var z=$o.deg2rad(T);_=Math.abs(Math.sin(z))*kb*L,A=0}}p.xFn=function(O){return O.dx+t-(C+O.fontSize*A)*L+_*O.fontSize},p.yFn=function(O){return O.dy+E+O.fontSize*QS},p.anchorFn=function(O,V){return kh(V)&&Math.abs(V)===90?"middle":P?"end":"start"},p.heightFn=function(O,V,G){return e.side==="right"&&(V*=-1),V<-30?-G:V<30?-.5*G:0}}return p};function CL(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Qn.drawTicks=function(e,t,r){r=r||{};var n=t._id+"tick",i=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(t.ticks?r.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),a=r.layer.selectAll("path."+n).data(i,CL);a.exit().remove(),a.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return tM.stroke(w0.select(this),o.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(o){return Xp.crispRound(e,o.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),kL(t,[bse]),a.attr("transform",r.transFn)};Qn.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var n=t._id+"grid",i=t.minor&&t.minor.showgrid,a=i?r.vals.filter(function(p){return p.minor}):[],o=t.showgrid?r.vals.filter(function(p){return!p.minor}):[],s=r.counterAxis;if(s&&Qn.shouldShowZeroLine(e,t,s))for(var l=t.tickmode==="array",u=0;u=0;v--){var x=v?h:d;if(x){var b=x.selectAll("path."+n).data(v?o:a,CL);b.exit().remove(),b.enter().append("path").classed(n,1).classed("crisp",r.crisp!==!1),b.attr("transform",r.transFn).attr("d",r.path).each(function(p){return tM.stroke(w0.select(this),p.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(p){return Xp.dashStyle(p.minor?t.minor.griddash:t.griddash,p.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(p){return(p.minor?f:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&b.attr("d",r.path)}}kL(t,[oB,sB])}};Qn.drawZeroLine=function(e,t,r){r=r||r;var n=t._id+"zl",i=Qn.shouldShowZeroLine(e,t,r.counterAxis),a=r.layer.selectAll("path."+n).data(i?[{x:0,id:t._id}]:[]);a.exit().remove(),a.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(o,s){return ust(o.id,s.id)})}),a.attr("transform",r.transFn).attr("d",r.path).call(tM.stroke,t.zerolinecolor||tM.defaultLine).style("stroke-width",Xp.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),kL(t,[aB])};Qn.drawLabels=function(e,t,r){r=r||{};var n=e._fullLayout,i=t._id,a=t.zerolinelayer==="above traces",o=r.cls||i+"tick",s=r.vals.filter(function(j){return j.text}),l=r.labelFns,u=r.secondary?0:t.tickangle,c=(t._prevTickAngles||{})[o],f=r.layer.selectAll("g."+o).data(t.showticklabels?s:[],CL),h=[];f.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(j){var re=w0.select(this),oe=e._promises.length;re.call(Eb.positionText,l.xFn(j),l.yFn(j)).call(Xp.font,{family:j.font,size:j.fontSize,color:j.fontColor,weight:j.fontWeight,style:j.fontStyle,variant:j.fontVariant,textcase:j.fontTextcase,lineposition:j.fontLineposition,shadow:j.fontShadow}).text(j.text).call(Eb.convertToTspans,e),e._promises[oe]?h.push(e._promises.pop().then(function(){d(re,u)})):d(re,u)}),kL(t,[fse]),f.exit().remove(),r.repositionOnUpdate&&f.each(function(j){w0.select(this).select("text").call(Eb.positionText,l.xFn(j),l.yFn(j))});function d(j,re){j.each(function(oe){var _e=w0.select(this),Me=_e.select(".text-math-group"),ke=l.anchorFn(oe,re),me=r.transFn.call(_e.node(),oe)+(kh(re)&&+re!=0?" rotate("+re+","+l.xFn(oe)+","+(l.yFn(oe)-oe.fontSize/2)+")":""),ie=Eb.lineCount(_e),Se=iM*oe.fontSize,Le=l.heightFn(oe,kh(re)?+re:0,(ie-1)*Se);if(Le&&(me+=I3(0,Le)),Me.empty()){var Ae=_e.select("text");Ae.attr({transform:me,"text-anchor":ke}),Ae.style("opacity",1),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var Fe=Xp.bBox(Me.node()).width,Pe=Fe*{end:-.5,start:.5}[ke];Me.attr("transform",me+I3(Pe,0))}})}t._adjustTickLabelsOverflow=function(){var j=t.ticklabeloverflow;if(!(!j||j==="allow")){var re=j.indexOf("hide")!==-1,oe=t._id.charAt(0)==="x",_e=0,Me=oe?e._fullLayout.width:e._fullLayout.height;if(j.indexOf("domain")!==-1){var ke=$o.simpleMap(t.range,t.r2l);_e=t.l2p(ke[0])+t._offset,Me=t.l2p(ke[1])+t._offset}var me=Math.min(_e,Me),ie=Math.max(_e,Me),Se=t.side,Le=1/0,Ae=-1/0;f.each(function(De){var ce=w0.select(this),Ze=ce.select(".text-math-group");if(Ze.empty()){var ut=Xp.bBox(ce.node()),gt=0;oe?(ut.right>ie||ut.leftie||ut.top+(t.tickangle?0:De.fontSize/4)t["_visibleLabelMin_"+ke._id]?ce.style("display","none"):ie.K==="tick"&&!me&&ce.style("display",null)})})})})},d(f,c+1?c:u);function v(){return h.length&&Promise.all(h)}var x=null;function b(){if(d(f,u),s.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){x=t.autotickangles[0];var j=0,re=[],oe,_e=1;f.each(function(Tr){j=Math.max(j,Tr.fontSize);var ur=t.l2p(Tr.x),$e=uB(this),Mt=Xp.bBox($e.node());_e=Math.max(_e,Eb.lineCount($e)),re.push({top:0,bottom:10,height:10,left:ur-Mt.width/2,right:ur+Mt.width/2+2,width:Mt.width+2})});var Me=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,ke=s.length,me=Math.abs((s[ke-1].x-s[0].x)*t._m)/(ke-1),ie=Me?me/2:me,Se=Me?t.ticklen:j*1.25*_e,Le=Math.sqrt(Math.pow(ie,2)+Math.pow(Se,2)),Ae=ie/Le,Fe=t.autotickangles.map(function(Tr){return Tr*Math.PI/180}),Pe=Fe.find(function(Tr){return Math.abs(Math.cos(Tr))<=Ae});Pe===void 0&&(Pe=Fe.reduce(function(Tr,ur){return Math.abs(Math.cos(Tr))Z*G&&(z=G,g[M]=P[M]=O[M])}var H=Math.abs(z-T);H-L>0?(H-=L,L*=1+L/H):L=0,t._id.charAt(0)!=="y"&&(L=-L),g[k]=E.p2r(E.r2p(P[k])+_*L),E.autorange==="min"||E.autorange==="max reversed"?(g[0]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0):(E.autorange==="max"||E.autorange==="min reversed")&&(g[1]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[E._name+".range"]=g}var N=$o.syncOrAsync(p);return N&&N.then&&e._promises.push(N),N};function Rst(e,t,r){var n=t._id+"divider",i=r.vals,a=r.layer.selectAll("path."+n).data(i,CL);a.exit().remove(),a.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(tM.stroke,t.dividercolor).style("stroke-width",Xp.crispRound(e,t.dividerwidth,1)+"px"),a.attr("transform",r.transFn).attr("d",r.path)}Qn.getPxPosition=function(e,t){var r=e._fullLayout._size,n=t._id.charAt(0),i=t.side,a;if(t.anchor!=="free"?a=t._anchorAxis:n==="x"?a={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:n==="y"&&(a={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),i==="top"||i==="left")return a._offset;if(i==="bottom"||i==="right")return a._offset+a._length};function xse(e){var t=e.title.font.size,r=(e.title.text.match(Eb.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(kb+r*iM):r?t*(r+1)*iM:t}function Dst(e,t){var r=e._fullLayout,n=t._id,i=n.charAt(0),a=t.title.font.size,o,s=(t.title.text.match(Eb.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?o=t._depth+t.title.standoff+a*kb:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+a*(QS+s*iM));else{var l=aM(t);if(t.type==="multicategory")o=t._depth;else{var u=1.5*a;l&&(u=.5*a,t.ticks==="outside"&&(u+=t.ticklen)),o=10+u+(t.linewidth?t.linewidth-1:0)}l||(i==="x"?o+=t.side==="top"?a*(t.showticklabels?1:0):a*(t.showticklabels?1.5:.5):o+=t.side==="right"?a*(t.showticklabels?1:.5):a*(t.showticklabels?.5:0))}var c=Qn.getPxPosition(e,t),f,h,d;i==="x"?(h=t._offset+t._length/2,d=t.side==="top"?c-o:c+o):(d=t._offset+t._length/2,h=t.side==="right"?c+o:c-o,f={rotate:"-90",offset:0});var v;if(t.type!=="multicategory"){var x=t._selections[t._id+"tick"];if(v={selection:x,side:t.side},x&&x.node()&&x.node().parentNode){var b=Xp.getTranslate(x.node().parentNode);v.offsetLeft=b.x,v.offsetTop=b.y}t.title.hasOwnProperty("standoff")&&(v.pad=0)}return t._titleStandoff=o,est.draw(e,n+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[i],avoid:v,transform:f,attributes:{x:h,y:d,"text-anchor":"middle"}})}Qn.shouldShowZeroLine=function(e,t,r){var n=$o.simpleMap(t.range,t.r2l);return n[0]*n[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===ML)&&(Cse(t,0)||!Fst(e,t,r,n)||zst(e,t))};Qn.clipEnds=function(e,t){return t.filter(function(r){return Cse(e,r.x)})};function Cse(e,t){var r=e.l2p(t);return r>1&&r1)for(i=1;i=i.min&&e=ost:/%L/.test(t)?e>=ast:/%[SX]/.test(t)?e>=TL:/%M/.test(t)?e>=rM:/%[HI]/.test(t)?e>=xm:/%p/.test(t)?e>=l_:/%[Aadejuwx]/.test(t)?e>=zv:/%[UVW]/.test(t)?e>=Zp:/%[Bbm]/.test(t)?e>=wL:/%[q]/.test(t)?e>=bL:/%[Yy]/.test(t)?e>=xL:!0}});var pB=ye((Oir,Ise)=>{"use strict";Ise.exports=function(t,r,n){var i,a;if(n){var o=r==="reversed"||r==="min reversed"||r==="max reversed";i=n[o?1:0],a=n[o?0:1]}var s=t("autorangeoptions.minallowed",a===null?i:void 0),l=t("autorangeoptions.maxallowed",i===null?a:void 0);s===void 0&&t("autorangeoptions.clipmin"),l===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var gB=ye((qir,Rse)=>{"use strict";var Vst=pB();Rse.exports=function(t,r,n,i){var a=r._template||{},o=r.type||a.type||"-";n("minallowed"),n("maxallowed");var s=n("range");if(!s){var l;!i.noInsiderange&&o!=="log"&&(l=n("insiderange"),l&&(l[0]===null||l[1]===null)&&(r.insiderange=!1,l=void 0),l&&(s=n("range",l)))}var u=r.getAutorangeDflt(s,i),c=n("autorange",u),f;s&&(s[0]===null&&s[1]===null||(s[0]===null||s[1]===null)&&(c==="reversed"||c===!0)||s[0]!==null&&(c==="min"||c==="max reversed")||s[1]!==null&&(c==="max"||c==="min reversed"))&&(s=void 0,delete r.range,r.autorange=!0,f=!0),f||(u=r.getAutorangeDflt(s,i),c=n("autorange",u)),c&&(Vst(n,c,s),(o==="linear"||o==="-")&&n("rangemode")),r.cleanRange()}});var Fse=ye((Bir,Dse)=>{var Gst={left:0,top:0};Dse.exports=Hst;function Hst(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var n=e.clientX||0,i=e.clientY||0,a=jst(t);return r[0]=n-a.left,r[1]=i-a.top,r}function jst(e){return e===window||e===document||e===document.body?Gst:e.getBoundingClientRect()}});var LL=ye((Nir,zse)=>{"use strict";var Wst=QO();function Xst(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}zse.exports=Wst&&Xst()});var qse=ye((Uir,Ose)=>{"use strict";Ose.exports=function(t,r,n,i,a){var o=(t-n)/(i-n),s=o+r/(i-n),l=(o+s)/2;return a==="left"||a==="bottom"?o:a==="center"||a==="middle"?l:a==="right"||a==="top"?s:o<2/3-l?o:s>4/3-l?s:l}});var Use=ye((Vir,Nse)=>{"use strict";var Bse=Dr(),Zst=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];Nse.exports=function(t,r,n,i){return n==="left"?t=0:n==="center"?t=1:n==="right"?t=2:t=Bse.constrain(Math.floor(t*3),0,2),i==="bottom"?r=0:i==="middle"?r=1:i==="top"?r=2:r=Bse.constrain(Math.floor(r*3),0,2),Zst[r][t]}});var Gse=ye((Gir,Vse)=>{"use strict";var Yst=g3(),Kst=R6(),Jst=FS().getGraphDiv,$st=RS(),mB=Vse.exports={};mB.wrapped=function(e,t,r){e=Jst(e),e._fullLayout&&Kst.clear(e._fullLayout._uid+$st.HOVERID),mB.raw(e,t,r)};mB.raw=function(t,r){var n=t._fullLayout,i=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&Yst.triggerHandler(t,"plotly_beforehover",r)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&i&&t.emit("plotly_unhover",{event:r,points:i}))}});var gv=ye((Hir,Xse)=>{"use strict";var Qst=Fse(),yB=tq(),elt=LL(),tlt=Dr().removeElement,rlt=hd(),Lb=Xse.exports={};Lb.align=qse();Lb.getCursor=Use();var jse=Gse();Lb.unhover=jse.wrapped;Lb.unhoverRaw=jse.raw;Lb.init=function(t){var r=t.gd,n=1,i=r._context.doubleClickDelay,a=t.element,o,s,l,u,c,f,h,d;r._mouseDownTime||(r._mouseDownTime=0),a.style.pointerEvents="all",a.onmousedown=b,elt?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=b,a.addEventListener("touchstart",b,{passive:!1})):a.ontouchstart=b;function v(E,A,L){return Math.abs(E)i&&(n=Math.max(n-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var A;f.target===h?A=f:(A={target:h,srcElement:h,toElement:h},Object.keys(f).concat(Object.keys(f.__proto__)).forEach(L=>{var _=f[L];!A[L]&&typeof _!="function"&&(A[L]=_)})),t.clickFn&&t.clickFn(n,A),d||h.dispatchEvent(new MouseEvent("click",E))}r._dragging=!1,r._dragged=!1}};function Wse(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}Lb.coverSlip=Wse;function Hse(e){return Qst(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Tg=ye((jir,Zse)=>{"use strict";Zse.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&t.classed(n,!1)}),r&&t.classed("cursor-"+r,!0)}});var Jse=ye((Wir,Kse)=>{"use strict";var _B=Tg(),oM="data-savedcursor",Yse="!!";Kse.exports=function(t,r){var n=t.attr(oM);if(r){if(!n){for(var i=(t.attr("class")||"").split(" "),a=0;a{"use strict";var xB=ec(),ilt=Eh();$se.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:ilt.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:xB({editType:"legend"}),grouptitlefont:xB({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:xB({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var IL=ye(PL=>{"use strict";PL.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};PL.isVertical=function(t){return t.orientation!=="h"};PL.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1}});var AB=ye((Yir,Qse)=>{"use strict";var wB=qa(),Yp=Dr(),nlt=pl(),alt=Vl(),olt=bB(),slt=s3(),TB=IL();function llt(e,t,r,n){var i=t[e]||{},a=nlt.newContainer(r,e);function o(H,N){return Yp.coerce(i,a,olt,H,N)}var s=Yp.coerceFont(o,"font",r.font);o("bgcolor",r.paper_bgcolor),o("bordercolor");var l=o("visible");if(l){for(var u,c=function(H,N){var j=u._input,re=u;return Yp.coerce(j,re,alt,H,N)},f=r.font||{},h=Yp.coerceFont(o,"grouptitlefont",f,{overrideDflt:{size:Math.round(f.size*1.1)}}),d=0,v=!1,x="normal",b=(r.shapes||[]).filter(function(H){return H.showlegend}),p=n.concat(b).filter(function(H){return e===(H.legend||"legend")}),C=0;C(e==="legend"?1:0));if(A===!1&&(r[e]=void 0),!(A===!1&&!i.uirevision)&&(o("uirevision",r.uirevision),A!==!1)){o("borderwidth");var L=o("orientation"),_=o("yref"),k=o("xref"),M=L==="h",g=_==="paper",P=k==="paper",T,z,O,V="left";M?(T=0,wB.getComponentMethod("rangeslider","isVisible")(t.xaxis)?g?(z=1.1,O="bottom"):(z=1,O="top"):g?(z=-.1,O="top"):(z=0,O="bottom")):(z=1,O="auto",P?T=1.02:(T=1,V="right")),Yp.coerce(i,a,{x:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:T}},"x"),Yp.coerce(i,a,{y:{valType:"number",editType:"legend",min:g?-2:0,max:g?3:1,dflt:z}},"y"),o("traceorder",x),TB.isGrouped(r[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",V),o("yanchor",O),o("maxheight",M?.5:1),o("valign"),Yp.noneOrAll(i,a,["x","y"]);var G=o("title.text");if(G){o("title.side",M?"left":"top");var Z=Yp.extendFlat({},s,{size:Yp.bigFont(s.size)});Yp.coerceFont(o,"title.font",Z)}}}}Qse.exports=function(t,r,n){var i,a=n.slice(),o=r.shapes;if(o)for(i=0;i{"use strict";var D3=qa(),MB=Dr(),ult=MB.pushUnique,SB=!0;ele.exports=function(t,r,n){var i=r._fullLayout;if(r._dragged||r._editing)return;var a=i.legend.itemclick,o=i.legend.itemdoubleclick,s=i.legend.groupclick;n===1&&a==="toggle"&&o==="toggleothers"&&SB&&r.data&&r._context.showTips&&MB.notifier(MB._(r,"Double-click on legend to isolate one trace"),"long"),SB=!1;var l;if(n===1?l=a:n===2&&(l=o),!l)return;var u=s==="togglegroup",c=i.hiddenlabels?i.hiddenlabels.slice():[],f=t.data()[0][0];if(f.groupTitle&&f.noClick)return;var h=r._fullData,d=(i.shapes||[]).filter(function(Gt){return Gt.showlegend}),v=h.concat(d),x=f.trace;x._isShape&&(x=x._fullInput);var b=x.legendgroup,p,C,E,A,L,_,k={},M=[],g=[],P=[];function T(Gt,Ut){var $t=M.indexOf(Gt),sr=k.visible;return sr||(sr=k.visible=[]),M.indexOf(Gt)===-1&&(M.push(Gt),$t=M.length-1),sr[$t]=Ut,$t}var z=(i.shapes||[]).map(function(Gt){return Gt._input}),O=!1;function V(Gt,Ut){z[Gt].visible=Ut,O=!0}function G(Gt,Ut){if(!(f.groupTitle&&!u)){var $t=Gt._fullInput||Gt,sr=$t._isShape,Tr=$t.index;Tr===void 0&&(Tr=$t._index);var ur=$t.visible===!1?!1:Ut;sr?V(Tr,ur):T(Tr,ur)}}var Z=x.legend,H=x._fullInput,N=H&&H._isShape;if(!N&&D3.traceIs(x,"pie-like")){var j=f.label,re=c.indexOf(j);if(l==="toggle")re===-1?c.push(j):c.splice(re,1);else if(l==="toggleothers"){var oe=re!==-1,_e=[];for(p=0;p{"use strict";rle.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var ale=ye(($ir,nle)=>{"use strict";var ile=qa(),CB=IL();nle.exports=function(t,r,n){var i=r._inHover,a=CB.isGrouped(r),o=CB.isReversed(r),s={},l=[],u=!1,c={},f=0,h=0,d,v;function x(H,N,j){if(r.visible!==!1&&!(n&&H!==r._id))if(N===""||!CB.isGrouped(r)){var re="~~i"+f;l.push(re),s[re]=[j],f++}else l.indexOf(N)===-1?(l.push(N),u=!0,s[N]=[j]):s[N].push(j)}for(d=0;dP&&(g=P)}k[d][0]._groupMinRank=g,k[d][0]._preGroupSort=d}var T=function(H,N){return H[0]._groupMinRank-N[0]._groupMinRank||H[0]._preGroupSort-N[0]._preGroupSort},z=function(H,N){return H.trace.legendrank-N.trace.legendrank||H._preSort-N._preSort};for(k.forEach(function(H,N){H[0]._preGroupSort=N}),k.sort(T),d=0;d{"use strict";var RL=Dr();function ole(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Pb.formatPiePercent=function(t,r){var n=ole((t*100).toPrecision(3));return RL.numSeparate(n,r)+"%"};Pb.formatPieValue=function(t,r){var n=ole(t.toPrecision(10));return RL.numSeparate(n,r)};Pb.getFirstFilled=function(t,r){if(RL.isArrayOrTypedArray(t))for(var n=0;n{"use strict";var clt=So(),flt=Ca();sle.exports=function(t,r,n,i){var a=n.marker.pattern;a&&a.shape?clt.pointStyle(t,n,i,r):flt.fill(t,r.color)}});var F3=ye((tnr,fle)=>{"use strict";var ule=Ca(),cle=u_().castOption,hlt=lle();fle.exports=function(t,r,n,i){var a=n.marker.line,o=cle(a.color,r.pts)||ule.defaultLine,s=cle(a.width,r.pts)||0;t.call(hlt,r,n,i).style("stroke-width",s).call(ule.stroke,o)}});var IB=ye((rnr,mle)=>{"use strict";var Ov=Oa(),kB=qa(),mv=Dr(),hle=mv.strTranslate,Kp=So(),T0=Ca(),LB=Dv().extractOpts,DL=Ru(),dlt=F3(),vlt=u_().castOption,plt=EB(),dle=12,vle=5,Ib=2,glt=10,z3=5;mle.exports=function(t,r,n){var i=r._fullLayout;n||(n=i.legend);var a=n.itemsizing==="constant",o=n.itemwidth,s=(o+plt.itemGap*2)/2,l=hle(s,0),u=function(k,M,g,P){var T;if(k+1)T=k;else if(M&&M.width>0)T=M.width;else return 0;return a?P:Math.min(T,g)};t.each(function(k){var M=Ov.select(this),g=mv.ensureSingle(M,"g","layers");g.style("opacity",k[0].trace.opacity);var P=n.indentation,T=n.valign,z=k[0].lineHeight,O=k[0].height;if(T==="middle"&&P===0||!z||!O)g.attr("transform",null);else{var V={top:1,bottom:-1}[T],G=V*(.5*(z-O+3))||0,Z=n.indentation;g.attr("transform",hle(Z,G))}var H=g.selectAll("g.legendfill").data([k]);H.enter().append("g").classed("legendfill",!0);var N=g.selectAll("g.legendlines").data([k]);N.enter().append("g").classed("legendlines",!0);var j=g.selectAll("g.legendsymbols").data([k]);j.enter().append("g").classed("legendsymbols",!0),j.selectAll("g.legendpoints").data([k]).enter().append("g").classed("legendpoints",!0)}).each(_).each(h).each(v).each(d).each(b).each(A).each(E).each(c).each(f).each(p).each(C);function c(k){var M=ple(k),g=M.showFill,P=M.showLine,T=M.showGradientLine,z=M.showGradientFill,O=M.anyFill,V=M.anyLine,G=k[0],Z=G.trace,H,N,j=LB(Z),re=j.colorscale,oe=j.reversescale,_e=function(Ae){if(Ae.size())if(g)Kp.fillGroupStyle(Ae,r,!0);else{var Fe="legendfill-"+Z.uid;Kp.gradient(Ae,r,Fe,PB(oe),re,"fill")}},Me=function(Ae){if(Ae.size()){var Fe="legendline-"+Z.uid;Kp.lineGroupStyle(Ae),Kp.gradient(Ae,r,Fe,PB(oe),re,"stroke")}},ke=DL.hasMarkers(Z)||!O?"M5,0":V?"M5,-2":"M5,-3",me=Ov.select(this),ie=me.select(".legendfill").selectAll("path").data(g||z?[k]:[]);if(ie.enter().append("path").classed("js-fill",!0),ie.exit().remove(),ie.attr("d",ke+"h"+o+"v6h-"+o+"z").call(_e),P||T){var Se=u(void 0,Z.line,glt,vle);N=mv.minExtend(Z,{line:{width:Se}}),H=[mv.minExtend(G,{trace:N})]}var Le=me.select(".legendlines").selectAll("path").data(P||T?[H]:[]);Le.enter().append("path").classed("js-line",!0),Le.exit().remove(),Le.attr("d",ke+(T?"l"+o+",0.0001":"h"+o)).call(P?Kp.lineGroupStyle:Me)}function f(k){var M=ple(k),g=M.anyFill,P=M.anyLine,T=M.showLine,z=M.showMarker,O=k[0],V=O.trace,G=!z&&!P&&!g&&DL.hasText(V),Z,H;function N(ie,Se,Le,Ae){var Fe=mv.nestedProperty(V,ie).get(),Pe=mv.isArrayOrTypedArray(Fe)&&Se?Se(Fe):Fe;if(a&&Pe&&Ae!==void 0&&(Pe=Ae),Le){if(PeLe[1])return Le[1]}return Pe}function j(ie){return O._distinct&&O.index&&ie[O.index]?ie[O.index]:ie[0]}if(z||G||T){var re={},oe={};if(z){re.mc=N("marker.color",j),re.mx=N("marker.symbol",j),re.mo=N("marker.opacity",mv.mean,[.2,1]),re.mlc=N("marker.line.color",j),re.mlw=N("marker.line.width",mv.mean,[0,5],Ib),oe.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var _e=N("marker.size",mv.mean,[2,16],dle);re.ms=_e,oe.marker.size=_e}T&&(oe.line={width:N("line.width",j,[0,10],vle)}),G&&(re.tx="Aa",re.tp=N("textposition",j),re.ts=10,re.tc=N("textfont.color",j),re.tf=N("textfont.family",j),re.tw=N("textfont.weight",j),re.ty=N("textfont.style",j),re.tv=N("textfont.variant",j),re.tC=N("textfont.textcase",j),re.tE=N("textfont.lineposition",j),re.tS=N("textfont.shadow",j)),Z=[mv.minExtend(O,re)],H=mv.minExtend(V,oe),H.selectedpoints=null,H.texttemplate=null}var Me=Ov.select(this).select("g.legendpoints"),ke=Me.selectAll("path.scatterpts").data(z?Z:[]);ke.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",l),ke.exit().remove(),ke.call(Kp.pointStyle,H,r),z&&(Z[0].mrc=3);var me=Me.selectAll("g.pointtext").data(G?Z:[]);me.enter().append("g").classed("pointtext",!0).append("text").attr("transform",l),me.exit().remove(),me.selectAll("text").call(Kp.textPointStyle,H,r)}function h(k){var M=k[0].trace,g=M.type==="waterfall";if(k[0]._distinct&&g){var P=k[0].trace[k[0].dir].marker;return k[0].mc=P.color,k[0].mlw=P.line.width,k[0].mlc=P.line.color,x(k,this,"waterfall")}var T=[];M.visible&&g&&(T=k[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var z=Ov.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(T);z.enter().append("path").classed("legendwaterfall",!0).attr("transform",l).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(O){var V=Ov.select(this),G=M[O[0]].marker,Z=u(void 0,G.line,z3,Ib);V.attr("d",O[1]).style("stroke-width",Z+"px").call(T0.fill,G.color),Z&&V.call(T0.stroke,G.line.color)})}function d(k){x(k,this)}function v(k){x(k,this,"funnel")}function x(k,M,g){var P=k[0].trace,T=P.marker||{},z=T.line||{},O=T.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",V=g?P.visible&&P.type===g:kB.traceIs(P,"bar"),G=Ov.select(M).select("g.legendpoints").selectAll("path.legend"+g).data(V?[k]:[]);G.enter().append("path").classed("legend"+g,!0).attr("d",O).attr("transform",l),G.exit().remove(),G.each(function(Z){var H=Ov.select(this),N=Z[0],j=u(N.mlw,T.line,z3,Ib);H.style("stroke-width",j+"px");var re=N.mcc;if(!n._inHover&&"mc"in N){var oe=LB(T),_e=oe.mid;_e===void 0&&(_e=(oe.max+oe.min)/2),re=Kp.tryColorscale(T,"")(_e)}var Me=re||N.mc||T.color,ke=T.pattern,me=Kp.getPatternAttr,ie=ke&&(me(ke.shape,0,"")||me(ke.path,0,""));if(ie){var Se=me(ke.bgcolor,0,null),Le=me(ke.fgcolor,0,null),Ae=ke.fgopacity,Fe=gle(ke.size,8,10),Pe=gle(ke.solidity,.5,1),ge="legend-"+P.uid;H.call(Kp.pattern,"legend",r,ge,ie,Fe,Pe,re,ke.fillmode,Se,Le,Ae)}else H.call(T0.fill,Me);j&&T0.stroke(H,N.mlc||z.color)})}function b(k){var M=k[0].trace,g=Ov.select(this).select("g.legendpoints").selectAll("path.legendbox").data(M.visible&&kB.traceIs(M,"box-violin")?[k]:[]);g.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),g.exit().remove(),g.each(function(){var P=Ov.select(this);if((M.boxpoints==="all"||M.points==="all")&&T0.opacity(M.fillcolor)===0&&T0.opacity((M.line||{}).color)===0){var T=mv.minExtend(M,{marker:{size:a?dle:mv.constrain(M.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});g.call(Kp.pointStyle,T,r)}else{var z=u(void 0,M.line,z3,Ib);P.style("stroke-width",z+"px").call(T0.fill,M.fillcolor),z&&T0.stroke(P,M.line.color)}})}function p(k){var M=k[0].trace,g=Ov.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(M.visible&&M.type==="candlestick"?[k,k]:[]);g.enter().append("path").classed("legendcandle",!0).attr("d",function(P,T){return T?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",l).style("stroke-miterlimit",1),g.exit().remove(),g.each(function(P,T){var z=Ov.select(this),O=M[T?"increasing":"decreasing"],V=u(void 0,O.line,z3,Ib);z.style("stroke-width",V+"px").call(T0.fill,O.fillcolor),V&&T0.stroke(z,O.line.color)})}function C(k){var M=k[0].trace,g=Ov.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(M.visible&&M.type==="ohlc"?[k,k]:[]);g.enter().append("path").classed("legendohlc",!0).attr("d",function(P,T){return T?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",l).style("stroke-miterlimit",1),g.exit().remove(),g.each(function(P,T){var z=Ov.select(this),O=M[T?"increasing":"decreasing"],V=u(void 0,O.line,z3,Ib);z.style("fill","none").call(Kp.dashLine,O.line.dash,V),V&&T0.stroke(z,O.line.color)})}function E(k){L(k,this,"pie")}function A(k){L(k,this,"funnelarea")}function L(k,M,g){var P=k[0],T=P.trace,z=g?T.visible&&T.type===g:kB.traceIs(T,g),O=Ov.select(M).select("g.legendpoints").selectAll("path.legend"+g).data(z?[k]:[]);if(O.enter().append("path").classed("legend"+g,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),O.exit().remove(),O.size()){var V=T.marker||{},G=u(vlt(V.line.width,P.pts),V.line,z3,Ib),Z="pieLike",H=mv.minExtend(T,{marker:{line:{width:G}}},Z),N=mv.minExtend(P,{trace:H},Z);dlt(O,N,H,r)}}function _(k){var M=k[0].trace,g,P=[];if(M.visible)switch(M.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],g=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],g=!0;break;case"densitymapbox":case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],g="radial";break;case"cone":P=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],g=!1;break;case"streamtube":P=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],g=!1;break;case"surface":P=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],g=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],g=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],g=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],g=!1;break}var T=Ov.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);T.enter().append("path").classed("legend3dandfriends",!0).attr("transform",l).style("stroke-miterlimit",1),T.exit().remove(),T.each(function(z,O){var V=Ov.select(this),G=LB(M),Z=G.colorscale,H=G.reversescale,N=function(_e){if(_e.size()){var Me="legendfill-"+M.uid;Kp.gradient(_e,r,Me,PB(H,g==="radial"),Z,"fill")}},j;if(Z){if(!g){var oe=Z.length;j=O===0?Z[H?oe-1:0][1]:O===1?Z[H?0:oe-1][1]:Z[Math.floor((oe-1)/2)][1]}}else{var re=M.vertexcolor||M.facecolor||M.color;j=mv.isArrayOrTypedArray(re)?re[O]||re[0]:re}V.attr("d",z[0]),j?V.call(T0.fill,j):V.call(N)})}};function PB(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function ple(e){var t=e[0].trace,r=t.contours,n=DL.hasLines(t),i=DL.hasMarkers(t),a=t.visible&&t.fill&&t.fill!=="none",o=!1,s=!1;if(r){var l=r.coloring;l==="lines"?o=!0:n=l==="none"||l==="heatmap"||r.showlines,r.type==="constraint"?a=r._operation!=="=":(l==="fill"||l==="heatmap")&&(s=!0)}return{showMarker:i,showLine:n,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:n||o,anyFill:a||s}}function gle(e,t,r){return e&&mv.isArrayOrTypedArray(e)?t:e>r?r:e}});var zB=ye((inr,Ele)=>{"use strict";var Ap=Oa(),Lh=Dr(),DB=Mc(),B3=qa(),yle=g3(),RB=gv(),Ph=So(),zL=Ca(),Rb=iu(),_le=tle(),$h=EB(),FB=Kh(),Sle=FB.LINE_SPACING,q3=FB.FROM_TL,xle=FB.FROM_BR,ble=ale(),mlt=IB(),wle=IL(),O3=1,ylt=/^legend[0-9]*$/;Ele.exports=function(t,r){if(r)Tle(t,r);else{var n=t._fullLayout,i=n._legends,a=n._infolayer.selectAll('[class^="legend"]');a.each(function(){var u=Ap.select(this),c=u.attr("class"),f=c.split(" ")[0];f.match(ylt)&&i.indexOf(f)===-1&&u.remove()});for(var o=0;o1)}var v=n.hiddenlabels||[];if(!s&&(!n.showlegend||!l.length))return o.selectAll("."+i).remove(),n._topdefs.select("#"+a).remove(),DB.autoMargin(e,i);var x=Lh.ensureSingle(o,"g",i,function(M){s||M.attr("pointer-events","all")}),b=Lh.ensureSingleById(n._topdefs,"clipPath",a,function(M){M.append("rect")}),p=Lh.ensureSingle(x,"rect","bg",function(M){M.attr("shape-rendering","crispEdges")});p.call(zL.stroke,r.bordercolor).call(zL.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var C=Lh.ensureSingle(x,"g","scrollbox"),E=r.title;r._titleWidth=0,r._titleHeight=0;var A;E.text?(A=Lh.ensureSingle(C,"text",i+"titletext"),A.attr("text-anchor","start").call(Ph.font,E.font).text(E.text),OL(A,C,e,r,O3)):C.selectAll("."+i+"titletext").remove();var L=Lh.ensureSingle(x,"rect","scrollbar",function(M){M.attr($h.scrollBarEnterAttrs).call(zL.fill,$h.scrollBarColor)}),_=C.selectAll("g.groups").data(l);_.enter().append("g").attr("class","groups"),_.exit().remove();var k=_.selectAll("g.traces").data(Lh.identity);k.enter().append("g").attr("class","traces"),k.exit().remove(),k.style("opacity",function(M){var g=M[0].trace;return B3.traceIs(g,"pie-like")?v.indexOf(M[0].label)!==-1?.5:1:g.visible==="legendonly"?.5:1}).each(function(){Ap.select(this).call(xlt,e,r)}).call(mlt,e,r).each(function(){s||Ap.select(this).call(blt,e,i)}),Lh.syncOrAsync([DB.previousPromises,function(){return Alt(e,_,k,r)},function(){var M=n._size,g=r.borderwidth,P=r.xref==="paper",T=r.yref==="paper";if(E.text&&_lt(A,r,g),!s){var z,O;P?z=M.l+M.w*r.x-q3[qL(r)]*r._width:z=n.width*r.x-q3[qL(r)]*r._width,T?O=M.t+M.h*(1-r.y)-q3[BL(r)]*r._effHeight:O=n.height*(1-r.y)-q3[BL(r)]*r._effHeight;var V=Slt(e,i,z,O);if(V)return;if(n.margin.autoexpand){var G=z,Z=O;z=P?Lh.constrain(z,0,n.width-r._width):G,O=T?Lh.constrain(O,0,n.height-r._effHeight):Z,z!==G&&Lh.log("Constrain "+i+".x to make legend fit inside graph"),O!==Z&&Lh.log("Constrain "+i+".y to make legend fit inside graph")}Ph.setTranslate(x,z,O)}if(L.on(".drag",null),x.on("wheel",null),s||r._height<=r._maxHeight||e._context.staticPlot){var H=r._effHeight;s&&(H=r._height),p.attr({width:r._width-g,height:H-g,x:g/2,y:g/2}),Ph.setTranslate(C,0,0),b.select("rect").attr({width:r._width-2*g,height:H-2*g,x:g,y:g}),Ph.setClipUrl(C,a,e),Ph.setRect(L,0,0,0,0),delete r._scrollY}else{var N=Math.max($h.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),j=r._effHeight-N-2*$h.scrollBarMargin,re=r._height-r._effHeight,oe=j/re,_e=Math.min(r._scrollY||0,re);p.attr({width:r._width-2*g+$h.scrollBarWidth+$h.scrollBarMargin,height:r._effHeight-g,x:g/2,y:g/2}),b.select("rect").attr({width:r._width-2*g+$h.scrollBarWidth+$h.scrollBarMargin,height:r._effHeight-2*g,x:g,y:g+_e}),Ph.setClipUrl(C,a,e),Fe(_e,N,oe),x.on("wheel",function(){_e=Lh.constrain(r._scrollY+Ap.event.deltaY/j*re,0,re),Fe(_e,N,oe),_e!==0&&_e!==re&&Ap.event.preventDefault()});var Me,ke,me,ie=function(Ze,ut,gt){var Kt=(gt-ut)/oe+Ze;return Lh.constrain(Kt,0,re)},Se=function(Ze,ut,gt){var Kt=(ut-gt)/oe+Ze;return Lh.constrain(Kt,0,re)},Le=Ap.behavior.drag().on("dragstart",function(){var Ze=Ap.event.sourceEvent;Ze.type==="touchstart"?Me=Ze.changedTouches[0].clientY:Me=Ze.clientY,me=_e}).on("drag",function(){var Ze=Ap.event.sourceEvent;Ze.buttons===2||Ze.ctrlKey||(Ze.type==="touchmove"?ke=Ze.changedTouches[0].clientY:ke=Ze.clientY,_e=ie(me,Me,ke),Fe(_e,N,oe))});L.call(Le);var Ae=Ap.behavior.drag().on("dragstart",function(){var Ze=Ap.event.sourceEvent;Ze.type==="touchstart"&&(Me=Ze.changedTouches[0].clientY,me=_e)}).on("drag",function(){var Ze=Ap.event.sourceEvent;Ze.type==="touchmove"&&(ke=Ze.changedTouches[0].clientY,_e=Se(me,Me,ke),Fe(_e,N,oe))});C.call(Ae)}function Fe(Ze,ut,gt){r._scrollY=e._fullLayout[i]._scrollY=Ze,Ph.setTranslate(C,0,-Ze),Ph.setRect(L,r._width,$h.scrollBarMargin+Ze*gt,$h.scrollBarWidth,ut),b.select("rect").attr("y",g+Ze)}if(e._context.edits.legendPosition){var Pe,ge,De,ce;x.classed("cursor-move",!0),RB.init({element:x.node(),gd:e,prepFn:function(Ze){if(Ze.target!==L.node()){var ut=Ph.getTranslate(x);De=ut.x,ce=ut.y}},moveFn:function(Ze,ut){if(De!==void 0&&ce!==void 0){var gt=De+Ze,Kt=ce+ut;Ph.setTranslate(x,gt,Kt),Pe=RB.align(gt,r._width,M.l,M.l+M.w,r.xanchor),ge=RB.align(Kt+r._height,-r._height,M.t+M.h,M.t,r.yanchor)}},doneFn:function(){if(Pe!==void 0&&ge!==void 0){var Ze={};Ze[i+".x"]=Pe,Ze[i+".y"]=ge,B3.call("_guiRelayout",e,Ze)}},clickFn:function(Ze,ut){var gt=o.selectAll("g.traces").filter(function(){var Kt=this.getBoundingClientRect();return ut.clientX>=Kt.left&&ut.clientX<=Kt.right&&ut.clientY>=Kt.top&&ut.clientY<=Kt.bottom});gt.size()>0&&Mle(e,x,gt,Ze,ut)}})}}],e)}}function FL(e,t,r){var n=e[0],i=n.width,a=t.entrywidthmode,o=n.trace.legendwidth||t.entrywidth;return a==="fraction"?t._maxWidth*o:r+(o||i)}function Mle(e,t,r,n,i){var a=r.data()[0][0].trace,o={event:i,node:r.node(),curveNumber:a.index,expandedIndex:a.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};a._group&&(o.group=a._group),B3.traceIs(a,"pie-like")&&(o.label=r.datum()[0].label);var s=yle.triggerHandler(e,"plotly_legendclick",o);if(n===1){if(s===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&_le(r,e,n)},e._context.doubleClickDelay)}else if(n===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var l=yle.triggerHandler(e,"plotly_legenddoubleclick",o);l!==!1&&s!==!1&&_le(r,e,n)}}function xlt(e,t,r){var n=NL(r),i=e.data()[0][0],a=i.trace,o=B3.traceIs(a,"pie-like"),s=!r._inHover&&t._context.edits.legendText&&!o,l=r._maxNameLength,u,c;i.groupTitle?(u=i.groupTitle.text,c=i.groupTitle.font):(c=r.font,r.entries?u=i.text:(u=o?i.label:a.name,a._meta&&(u=Lh.templateString(u,a._meta))));var f=Lh.ensureSingle(e,"text",n+"text");f.attr("text-anchor","start").call(Ph.font,c).text(s?Ale(u,l):u);var h=r.indentation+r.itemwidth+$h.itemGap*2;Rb.positionText(f,h,0),s?f.call(Rb.makeEditable,{gd:t,text:u}).call(OL,e,t,r).on("edit",function(d){this.text(Ale(d,l)).call(OL,e,t,r);var v=i.trace._fullInput||{},x={};return x.name=d,v._isShape?B3.call("_guiRelayout",t,"shapes["+a.index+"].name",x.name):B3.call("_guiRestyle",t,x,a.index)}):OL(f,e,t,r)}function Ale(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var n=r-e.length;n>0;n--)e+=" ";return e}function blt(e,t,r){var n=t._context.doubleClickDelay,i,a=1,o=Lh.ensureSingle(e,"rect",r+"toggle",function(s){t._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(zL.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(o.on("mousedown",function(){i=new Date().getTime(),i-t._legendMouseDownTimen&&(a=Math.max(a-1,1)),Mle(t,s,e,a,Ap.event)}}))}function OL(e,t,r,n,i){n._inHover&&e.attr("data-notex",!0),Rb.convertToTspans(e,r,function(){wlt(t,r,n,i)})}function wlt(e,t,r,n){var i=e.data()[0][0];if(!r._inHover&&i&&!i.trace.showlegend){e.remove();return}var a=e.select("g[class*=math-group]"),o=a.node(),s=NL(r);r||(r=t._fullLayout[s]);var l=r.borderwidth,u;n===O3?u=r.title.font:i.groupTitle?u=i.groupTitle.font:u=r.font;var c=u.size*Sle,f,h;if(o){var d=Ph.bBox(o);f=d.height,h=d.width,n===O3?Ph.setTranslate(a,l,l+f*.75):Ph.setTranslate(a,0,f*.25)}else{var v="."+s+(n===O3?"title":"")+"text",x=e.select(v),b=Rb.lineCount(x),p=x.node();if(f=c*b,h=p?Ph.bBox(p).width:0,n===O3)r.title.side==="left"&&(h+=$h.itemGap*2),Rb.positionText(x,l+$h.titlePad,l+c);else{var C=$h.itemGap*2+r.indentation+r.itemwidth;i.groupTitle&&(C=$h.itemGap,h-=r.indentation+r.itemwidth),Rb.positionText(x,C,-c*((b-1)/2-.3))}}n===O3?(r._titleWidth=h,r._titleHeight=f):(i.lineHeight=c,i.height=Math.max(f,16)+3,i.width=h)}function Tlt(e){var t=0,r=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(t=e._titleWidth),n.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function Alt(e,t,r,n){var i=e._fullLayout,a=NL(n);n||(n=i[a]);var o=i._size,s=wle.isVertical(n),l=wle.isGrouped(n),u=n.entrywidthmode==="fraction",c=n.borderwidth,f=2*c,h=$h.itemGap,d=n.indentation+n.itemwidth+h*2,v=2*(c+h),x=BL(n),b=n.y<0||n.y===0&&x==="top",p=n.y>1||n.y===1&&x==="bottom",C=n.tracegroupgap,E={},{maxheight:A,orientation:L,yref:_}=n,k=L==="v"&&_==="paper"?o.h:i.height;n._maxHeight=Math.max(A>1?A:A*k,30);var M=0;n._width=0,n._height=0;var g=Tlt(n);if(s)r.each(function(Ae){var Fe=Ae[0].height;Ph.setTranslate(this,c+g[0],c+g[1]+n._height+Fe/2+h),n._height+=Fe,n._width=Math.max(n._width,Ae[0].width)}),M=d+n._width,n._width+=h+d+f,n._height+=v,l&&(t.each(function(Ae,Fe){Ph.setTranslate(this,0,Fe*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var P=qL(n),T=n.x<0||n.x===0&&P==="right",z=n.x>1||n.x===1&&P==="left",O=p||b,V=i.width/2;n._maxWidth=Math.max(T?O&&P==="left"?o.l+o.w:V:z?O&&P==="right"?o.r+o.w:V:o.w,2*d);var G=0,Z=0;r.each(function(Ae){var Fe=FL(Ae,n,d);G=Math.max(G,Fe),Z+=Fe}),M=null;var H=0;if(l){var N=0,j=0,re=0;t.each(function(){var Ae=0,Fe=0;Ap.select(this).selectAll("g.traces").each(function(ge){var De=FL(ge,n,d),ce=ge[0].height;Ph.setTranslate(this,g[0],g[1]+c+h+ce/2+Fe),Fe+=ce,Ae=Math.max(Ae,De),E[ge[0].trace.legendgroup]=Ae});var Pe=Ae+h;j>0&&Pe+c+j>n._maxWidth?(H=Math.max(H,j),j=0,re+=N+C,N=Fe):N=Math.max(N,Fe),Ph.setTranslate(this,j,re),j+=Pe}),n._width=Math.max(H,j)+c,n._height=re+N+v}else{var oe=r.size(),_e=Z+f+(oe-1)*h=n._maxWidth&&(H=Math.max(H,ie),ke=0,me+=Me,n._height+=Me,Me=0),Ph.setTranslate(this,g[0]+c+ke,g[1]+c+me+Fe/2+h),ie=ke+Pe+h,ke+=ge,Me=Math.max(Me,Fe)}),_e?(n._width=ke+f,n._height=Me+v):(n._width=Math.max(H,ie)+f,n._height+=Me+v)}}n._width=Math.ceil(Math.max(n._width+g[0],n._titleWidth+2*(c+$h.titlePad))),n._height=Math.ceil(Math.max(n._height+g[1],n._titleHeight+2*(c+$h.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var Se=e._context.edits,Le=Se.legendText||Se.legendPosition;r.each(function(Ae){var Fe=Ap.select(this).select("."+a+"toggle"),Pe=Ae[0].height,ge=Ae[0].trace.legendgroup,De=FL(Ae,n,d);l&&ge!==""&&(De=E[ge]);var ce=Le?d:M||De;!s&&!u&&(ce+=h/2),Ph.setRect(Fe,0,-Pe/2,ce,Pe)})}function Slt(e,t,r,n){var i=e._fullLayout,a=i[t],o=qL(a),s=BL(a),l=a.xref==="paper",u=a.yref==="paper";e._fullLayout._reservedMargin[t]={};var c=a.y<.5?"b":"t",f=a.x<.5?"l":"r",h={r:i.width-r,l:r+a._width,b:i.height-n,t:n+a._effHeight};if(l&&u)return DB.autoMargin(e,t,{x:a.x,y:a.y,l:a._width*q3[o],r:a._width*xle[o],b:a._effHeight*xle[s],t:a._effHeight*q3[s]});l?e._fullLayout._reservedMargin[t][c]=h[c]:u||a.orientation==="v"?e._fullLayout._reservedMargin[t][f]=h[f]:e._fullLayout._reservedMargin[t][c]=h[c]}function qL(e){return Lh.isRightAnchor(e)?"right":Lh.isCenterAnchor(e)?"center":"left"}function BL(e){return Lh.isBottomAnchor(e)?"bottom":Lh.isMiddleAnchor(e)?"middle":"top"}function NL(e){return e._id||"legend"}});var NB=ye(BB=>{"use strict";var Db=Oa(),Sy=Eo(),Cle=cd(),Zf=Dr(),Mlt=Zf.pushUnique,OB=Zf.strTranslate,Elt=Zf.strRotate,Clt=g3(),A0=iu(),klt=Jse(),bm=So(),vd=Ca(),UL=gv(),wm=ho(),Llt=hd().zindexSeparator,U3=qa(),Ag=rp(),Fb=RS(),Plt=AB(),Ilt=zB(),zle=Fb.YANGLE,qB=Math.PI*zle/180,Rlt=1/Math.sin(qB),Dlt=Math.cos(qB),Flt=Math.sin(qB),hf=Fb.HOVERARROWSIZE,ll=Fb.HOVERTEXTPAD,kle={box:!0,ohlc:!0,violin:!0,candlestick:!0},zlt={scatter:!0,scattergl:!0,splom:!0};function Lle(e,t){return e.distance-t.distance}BB.hover=function(t,r,n,i){t=Zf.getGraphDiv(t);var a=r.target;Zf.throttle(t._fullLayout._uid+Fb.HOVERID,Fb.HOVERMINTIME,function(){Olt(t,r,n,i,a)})};BB.loneHover=function(t,r){var n=!0;Array.isArray(t)||(n=!1,t=[t]);var i=r.gd,a=Ule(i),o=Vle(i),s=t.map(function(b){var p=b._x0||b.x0||b.x||0,C=b._x1||b.x1||b.x||0,E=b._y0||b.y0||b.y||0,A=b._y1||b.y1||b.y||0,L=b.eventData;if(L){var _=Math.min(p,C),k=Math.max(p,C),M=Math.min(E,A),g=Math.max(E,A),P=b.trace;if(U3.traceIs(P,"gl3d")){var T=i._fullLayout[P.scene]._scene.container,z=T.offsetLeft,O=T.offsetTop;_+=z,k+=z,M+=O,g+=O}L.bbox={x0:_+o,x1:k+o,y0:M+a,y1:g+a},r.inOut_bbox&&r.inOut_bbox.push(L.bbox)}else L=!1;return{color:b.color||vd.defaultLine,x0:b.x0||b.x||0,x1:b.x1||b.x||0,y0:b.y0||b.y||0,y1:b.y1||b.y||0,xLabel:b.xLabel,yLabel:b.yLabel,zLabel:b.zLabel,text:b.text,name:b.name,idealAlign:b.idealAlign,borderColor:b.borderColor,fontFamily:b.fontFamily,fontSize:b.fontSize,fontColor:b.fontColor,fontWeight:b.fontWeight,fontStyle:b.fontStyle,fontVariant:b.fontVariant,nameLength:b.nameLength,textAlign:b.textAlign,trace:b.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:b.hovertemplate||!1,hovertemplateLabels:b.hovertemplateLabels||!1,eventData:L}}),l=!1,u=qle(s,{gd:i,hovermode:"closest",rotateLabels:l,bgColor:r.bgColor||vd.background,container:Db.select(r.container),outerContainer:r.outerContainer||r.container}),c=u.hoverLabels,f=5,h=0,d=0;c.sort(function(b,p){return b.y0-p.y0}).each(function(b,p){var C=b.y0-b.by/2;C-fk[0]._length||ce<0||ce>M[0]._length)return UL.unhoverRaw(e,t)}if(t.pointerX=De+k[0]._offset,t.pointerY=ce+M[0]._offset,"xval"in t?Z=Ag.flat(a,t.xval):Z=Ag.p2c(k,De),"yval"in t?H=Ag.flat(a,t.yval):H=Ag.p2c(M,ce),!Sy(Z[0])||!Sy(H[0]))return Zf.warn("Fx.hover failed",t,e),UL.unhoverRaw(e,t)}var gt=1/0;function Kt(pn,Vn){for(j=0;jLe&&(V.splice(0,Le),gt=V[0].distance),f&&O!==0&&V.length===0){Se.distance=O,Se.index=!1;var yt=oe._module.hoverPoints(Se,me,ie,"closest",{hoverLayer:s._hoverlayer});if(yt&&(yt=yt.filter(function($r){return $r.spikeDistance<=O})),yt&&yt.length){var er,ar=yt.filter(function($r){return $r.xa.showspikes&&$r.xa.spikesnap!=="hovered data"});if(ar.length){var Er=ar[0];Sy(Er.x0)&&Sy(Er.y0)&&(er=lt(Er),(!Ae.vLinePoint||Ae.vLinePoint.spikeDistance>er.spikeDistance)&&(Ae.vLinePoint=er))}var Xr=yt.filter(function($r){return $r.ya.showspikes&&$r.ya.spikesnap!=="hovered data"});if(Xr.length){var ri=Xr[0];Sy(ri.x0)&&Sy(ri.y0)&&(er=lt(ri),(!Ae.hLinePoint||Ae.hLinePoint.spikeDistance>er.spikeDistance)&&(Ae.hLinePoint=er))}}}}}Kt();function st(pn,Vn,kn){for(var ea=null,ua=1/0,Ht,yt=0;yt0&&Math.abs(pn.distance)bt-1;Yr--)Gr(V[Yr]);V=wr,sr()}var dt=e._hoverdata,Ge=[],Qe=Ule(e),je=Vle(e);for(N=0;N1||V.length>1)||h==="closest"&&Fe&&V.length>1,vi=vd.combine(s.plot_bgcolor||vd.background,s.paper_bgcolor),ji=qle(V,{gd:e,hovermode:h,rotateLabels:ei,bgColor:vi,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),Rn=ji.hoverLabels;if(Ag.isUnifiedHover(h)||(Blt(Rn,ei,s,ji.commonLabelBoundingBox),Nle(Rn,ei,s._invScaleX,s._invScaleY)),i&&i.tagName){var wn=U3.getComponentMethod("annotations","hasClickToShow")(e,Ge);klt(Db.select(i),wn?"pointer":"")}!i||n||!Vlt(e,t,dt)||(dt&&e.emit("plotly_unhover",{event:t,points:dt}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:k,yaxes:M,xvals:Z,yvals:H}))}function Ole(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var qlt=/([\s\S]*)<\/extra>/;function qle(e,t){var r=t.gd,n=r._fullLayout,i=t.hovermode,a=t.rotateLabels,o=t.bgColor,s=t.container,l=t.outerContainer,u=t.commonLabelOpts||{};if(e.length===0)return[[]];var c=t.fontFamily||Fb.HOVERFONT,f=t.fontSize||Fb.HOVERFONTSIZE,h=t.fontWeight||n.font.weight,d=t.fontStyle||n.font.style,v=t.fontVariant||n.font.variant,x=t.fontTextcase||n.font.textcase,b=t.fontLineposition||n.font.lineposition,p=t.fontShadow||n.font.shadow,C=e[0],E=C.xa,A=C.ya,L=i.charAt(0),_=L+"Label",k=C[_];if(k===void 0&&E.type==="multicategory")for(var M=0;Mn.width-dt&&(Ge=n.width-dt),Vt.attr("d","M"+(Kr-Ge)+",0L"+(Kr-Ge+hf)+","+Yr+hf+"H"+dt+"v"+Yr+(ll*2+Cr.height)+"H"+-dt+"V"+Yr+hf+"H"+(Kr-Ge-hf)+"Z"),Kr=Ge,j.minX=Kr-dt,j.maxX=Kr+dt,E.side==="top"?(j.minY=Gr-(ll*2+Cr.height),j.maxY=Gr-ll):(j.minY=Gr+ll,j.maxY=Gr+(ll*2+Cr.height))}else{var Qe,je,Je;A.side==="right"?(Qe="start",je=1,Je="",Kr=E._offset+E._length):(Qe="end",je=-1,Je="-",Kr=E._offset),Gr=A._offset+(C.y0+C.y1)/2,It.attr("text-anchor",Qe),Vt.attr("d","M0,0L"+Je+hf+","+hf+"V"+(ll+Cr.height/2)+"h"+Je+(ll*2+Cr.width)+"V-"+(ll+Cr.height/2)+"H"+Je+hf+"V-"+hf+"Z"),j.minY=Gr-(ll+Cr.height/2),j.maxY=Gr+(ll+Cr.height/2),A.side==="right"?(j.minX=Kr+hf,j.maxX=Kr+hf+(ll*2+Cr.width)):(j.minX=Kr-hf-(ll*2+Cr.width),j.maxX=Kr-hf);var xt=Cr.height/2,Ie=P-Cr.top-xt,xe="clip"+n._uid+"commonlabel"+A._id,Ce;if(Kr=0?ur=Ut:$t+ce=0?ur=$t:sr+ce=0?$e=lt:Gt+Ze=0?$e=Gt:Tr+Ze=0,(Ct.idealAlign==="top"||!ir)&&vr?(Je-=Ie/2,Ct.anchor="end"):ir?(Je+=Ie/2,Ct.anchor="start"):Ct.anchor="middle",Ct.crossPos=Je;else{if(Ct.pos=Je,ir=je+xt/2+nr<=T,vr=je-xt/2-nr>=0,(Ct.idealAlign==="left"||!ir)&&vr)je-=xt/2,Ct.anchor="end";else if(ir)je+=xt/2,Ct.anchor="start";else{Ct.anchor="middle";var si=nr/2,mi=je+si-T,ei=je-si;mi>0&&(je-=mi),ei<0&&(je+=-ei)}Ct.crossPos=je}Gr.attr("text-anchor",Ct.anchor),dt&&Yr.attr("text-anchor",Ct.anchor),Vt.attr("transform",OB(je,Je)+(a?Elt(zle):""))}),{hoverLabels:Mt,commonLabelBoundingBox:j}}function Ple(e,t,r,n,i,a){var o="",s="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Zf.templateString(e.name,e.trace._meta)),o=Dle(e.name,e.nameLength));var l=r.charAt(0),u=l==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(s+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(s+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[l+"Label"]===i?s=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(s=e.yLabel):e.yLabel===void 0?s=e.xLabel:s="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(s+=(s?"
":"")+e.text),e.extraText!==void 0&&(s+=(s?"
":"")+e.extraText),a&&s===""&&!e.hovertemplate&&(o===""&&a.remove(),s=o);var c=e.hovertemplate||!1;if(c){var f=e.hovertemplateLabels||e;e[l+"Label"]!==i&&(f[l+"other"]=f[l+"Val"],f[l+"otherLabel"]=f[l+"Label"]),s=Zf.hovertemplateString(c,f,n._d3locale,e.eventData[0]||{},e.trace._meta),s=s.replace(qlt,function(h,d){return o=Dle(d,e.nameLength),""})}return[s,o]}function Blt(e,t,r,n){var i=t?"xa":"ya",a=t?"ya":"xa",o=0,s=1,l=e.size(),u=new Array(l),c=0,f=n.minX,h=n.maxX,d=n.minY,v=n.maxY,x=function(Z){return Z*r._invScaleX},b=function(Z){return Z*r._invScaleY};e.each(function(Z){var H=Z[i],N=Z[a],j=H._id.charAt(0)==="x",re=H.range;c===0&&re&&re[0]>re[1]!==j&&(s=-1);var oe=0,_e=j?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var Me=Ble(Z,t),ke=Z.anchor,me=ke==="end"?-1:1,ie,Se;if(ke==="middle")ie=Z.crossPos+(j?b(Me.y-Z.by/2):x(Z.bx/2+Z.tx2width/2)),Se=ie+(j?b(Z.by):x(Z.bx));else if(j)ie=Z.crossPos+b(hf+Me.y)-b(Z.by/2-hf),Se=ie+b(Z.by);else{var Le=x(me*hf+Me.x),Ae=Le+x(me*Z.bx);ie=Z.crossPos+Math.min(Le,Ae),Se=Z.crossPos+Math.max(Le,Ae)}j?d!==void 0&&v!==void 0&&Math.min(Se,v)-Math.max(ie,d)>1&&(N.side==="left"?(oe=N._mainLinePosition,_e=r.width):_e=N._mainLinePosition):f!==void 0&&h!==void 0&&Math.min(Se,h)-Math.max(ie,f)>1&&(N.side==="top"?(oe=N._mainLinePosition,_e=r.height):_e=N._mainLinePosition)}u[c++]=[{datum:Z,traceIndex:Z.trace.index,dp:0,pos:Z.pos,posref:Z.posref,size:Z.by*(j?Rlt:1)/2,pmin:oe,pmax:_e}]}),u.sort(function(Z,H){return Z[0].posref-H[0].posref||s*(H[0].traceIndex-Z[0].traceIndex)});var p,C,E,A,L,_,k;function M(Z){var H=Z[0],N=Z[Z.length-1];if(C=H.pmin-H.pos-H.dp+H.size,E=N.pos+N.dp+N.size-H.pmax,C>.01){for(L=Z.length-1;L>=0;L--)Z[L].dp+=C;p=!1}if(!(E<.01)){if(C<-.01){for(L=Z.length-1;L>=0;L--)Z[L].dp-=E;p=!1}if(p){var j=0;for(A=0;AH.pmax&&j++;for(A=Z.length-1;A>=0&&!(j<=0);A--)_=Z[A],_.pos>H.pmax-1&&(_.del=!0,j--);for(A=0;A=0;L--)Z[L].dp-=E;for(A=Z.length-1;A>=0&&!(j<=0);A--)_=Z[A],_.pos+_.dp+_.size>H.pmax&&(_.del=!0,j--)}}}for(;!p&&o<=l;){for(o++,p=!0,A=0;A.01){for(L=P.length-1;L>=0;L--)P[L].dp+=C;for(g.push.apply(g,P),u.splice(A+1,1),k=0,L=g.length-1;L>=0;L--)k+=g[L].dp;for(E=k/g.length,L=g.length-1;L>=0;L--)g[L].dp-=E;p=!1}else A++}u.forEach(M)}for(A=u.length-1;A>=0;A--){var O=u[A];for(L=O.length-1;L>=0;L--){var V=O[L],G=V.datum;G.offset=V.dp,G.del=V.del}}}function Ble(e,t){var r=0,n=e.offset;return t&&(n*=-Flt,r=e.offset*Dlt),{x:r,y:n}}function Nlt(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(hf+ll),n=r+t*(e.txwidth+ll),i=e.anchor==="middle";return i&&(r-=e.tx2width/2,n+=e.txwidth/2+ll),{alignShift:t,textShiftX:r,text2ShiftX:n}}function Nle(e,t,r,n){var i=function(o){return o*r},a=function(o){return o*n};e.each(function(o){var s=Db.select(this);if(o.del)return s.remove();var l=s.select("text.nums"),u=o.anchor,c=u==="end"?-1:1,f=Nlt(o),h=Ble(o,t),d=h.x,v=h.y,x=u==="middle";s.select("path").attr("d",x?"M-"+i(o.bx/2+o.tx2width/2)+","+a(v-o.by/2)+"h"+i(o.bx)+"v"+a(o.by)+"h-"+i(o.bx)+"Z":"M0,0L"+i(c*hf+d)+","+a(hf+v)+"v"+a(o.by/2-hf)+"h"+i(c*o.bx)+"v-"+a(o.by)+"H"+i(c*hf+d)+"V"+a(v-hf)+"Z");var b=d+f.textShiftX,p=v+o.ty0-o.by/2+ll,C=o.textAlign||"auto";C!=="auto"&&(C==="left"&&u!=="start"?(l.attr("text-anchor","start"),b=x?-o.bx/2-o.tx2width/2+ll:-o.bx-ll):C==="right"&&u!=="end"&&(l.attr("text-anchor","end"),b=x?o.bx/2-o.tx2width/2-ll:o.bx+ll)),l.call(A0.positionText,i(b),a(p)),o.tx2width&&(s.select("text.name").call(A0.positionText,i(f.text2ShiftX+f.alignShift*ll+d),a(v+o.ty0-o.by/2+ll)),s.select("rect").call(bm.setRect,i(f.text2ShiftX+(f.alignShift-1)*o.tx2width/2+d),a(v-o.by/2-1),i(o.tx2width),a(o.by+2)))})}function Ult(e,t){var r=e.index,n=e.trace||{},i=e.cd[0],a=e.cd[r]||{};function o(h){return h||Sy(h)&&h===0}var s=Array.isArray(r)?function(h,d){var v=Zf.castOption(i,r,h);return o(v)?v:Zf.extractOption({},n,"",d)}:function(h,d){return Zf.extractOption(a,n,h,d)};function l(h,d,v){var x=s(d,v);o(x)&&(e[h]=x)}if(l("hoverinfo","hi","hoverinfo"),l("bgcolor","hbg","hoverlabel.bgcolor"),l("borderColor","hbc","hoverlabel.bordercolor"),l("fontFamily","htf","hoverlabel.font.family"),l("fontSize","hts","hoverlabel.font.size"),l("fontColor","htc","hoverlabel.font.color"),l("fontWeight","htw","hoverlabel.font.weight"),l("fontStyle","hty","hoverlabel.font.style"),l("fontVariant","htv","hoverlabel.font.variant"),l("nameLength","hnl","hoverlabel.namelength"),l("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Zf.constrain(e.x0,0,e.xa._length),e.x1=Zf.constrain(e.x1,0,e.xa._length),e.y0=Zf.constrain(e.y0,0,e.ya._length),e.y1=Zf.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:wm.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:wm.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=wm.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+wm.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var c=wm.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+c+" / -"+wm.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+c,t==="y"&&(e.distance+=1)}var f=e.hoverinfo||e.trace.hoverinfo;return f&&f!=="all"&&(f=Array.isArray(f)?f:f.split("+"),f.indexOf("x")===-1&&(e.xLabel=void 0),f.indexOf("y")===-1&&(e.yLabel=void 0),f.indexOf("z")===-1&&(e.zLabel=void 0),f.indexOf("text")===-1&&(e.text=void 0),f.indexOf("name")===-1&&(e.name=void 0)),e}function Ile(e,t,r){var n=r.container,i=r.fullLayout,a=i._size,o=r.event,s=!!t.hLinePoint,l=!!t.vLinePoint,u,c;if(n.selectAll(".spikeline").remove(),!!(l||s)){var f=vd.combine(i.plot_bgcolor,i.paper_bgcolor);if(s){var h=t.hLinePoint,d,v;u=h&&h.xa,c=h&&h.ya;var x=c.spikesnap;x==="cursor"?(d=o.pointerX,v=o.pointerY):(d=u._offset+h.x,v=c._offset+h.y);var b=Cle.readability(h.color,f)<1.5?vd.contrast(f):h.color,p=c.spikemode,C=c.spikethickness,E=c.spikecolor||b,A=wm.getPxPosition(e,c),L,_;if(p.indexOf("toaxis")!==-1||p.indexOf("across")!==-1){if(p.indexOf("toaxis")!==-1&&(L=A,_=d),p.indexOf("across")!==-1){var k=c._counterDomainMin,M=c._counterDomainMax;c.anchor==="free"&&(k=Math.min(k,c.position),M=Math.max(M,c.position)),L=a.l+k*a.w,_=a.l+M*a.w}n.insert("line",":first-child").attr({x1:L,x2:_,y1:v,y2:v,"stroke-width":C,stroke:E,"stroke-dasharray":bm.dashStyle(c.spikedash,C)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:L,x2:_,y1:v,y2:v,"stroke-width":C+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}p.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:A+(c.side!=="right"?C:-C),cy:v,r:C,fill:E}).classed("spikeline",!0)}if(l){var g=t.vLinePoint,P,T;u=g&&g.xa,c=g&&g.ya;var z=u.spikesnap;z==="cursor"?(P=o.pointerX,T=o.pointerY):(P=u._offset+g.x,T=c._offset+g.y);var O=Cle.readability(g.color,f)<1.5?vd.contrast(f):g.color,V=u.spikemode,G=u.spikethickness,Z=u.spikecolor||O,H=wm.getPxPosition(e,u),N,j;if(V.indexOf("toaxis")!==-1||V.indexOf("across")!==-1){if(V.indexOf("toaxis")!==-1&&(N=H,j=T),V.indexOf("across")!==-1){var re=u._counterDomainMin,oe=u._counterDomainMax;u.anchor==="free"&&(re=Math.min(re,u.position),oe=Math.max(oe,u.position)),N=a.t+(1-oe)*a.h,j=a.t+(1-re)*a.h}n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:j,"stroke-width":G,stroke:Z,"stroke-dasharray":bm.dashStyle(u.spikedash,G)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:j,"stroke-width":G+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}V.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:P,cy:H-(u.side!=="top"?G:-G),r:G,fill:Z}).classed("spikeline",!0)}}}function Vlt(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var i=r[n],a=e._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers))return!0}return!1}function Rle(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function Dle(e,t){return A0.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Glt(e,t){for(var r=t.charAt(0),n=[],i=[],a=[],o=0;o{"use strict";var Hlt=Dr(),jlt=Ca(),Wlt=rp().isUnifiedHover;Gle.exports=function(t,r,n,i){i=i||{};var a=r.legend;function o(s){i.font[s]||(i.font[s]=a?r.legend.font[s]:r.font[s])}r&&Wlt(r.hovermode)&&(i.font||(i.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(i.bgcolor||(i.bgcolor=jlt.combine(r.legend.bgcolor,r.paper_bgcolor)),i.bordercolor||(i.bordercolor=r.legend.bordercolor)):i.bgcolor||(i.bgcolor=r.paper_bgcolor)),n("hoverlabel.bgcolor",i.bgcolor),n("hoverlabel.bordercolor",i.bordercolor),n("hoverlabel.namelength",i.namelength),Hlt.coerceFont(n,"hoverlabel.font",i.font),n("hoverlabel.align",i.align)}});var jle=ye((onr,Hle)=>{"use strict";var Xlt=Dr(),Zlt=sM(),Ylt=N1();Hle.exports=function(t,r){function n(i,a){return Xlt.coerce(t,r,Ylt,i,a)}Zlt(t,r,n)}});var Zle=ye((snr,Xle)=>{"use strict";var Wle=Dr(),Klt=i3(),Jlt=sM();Xle.exports=function(t,r,n,i){function a(s,l){return Wle.coerce(t,r,Klt,s,l)}var o=Wle.extendFlat({},i.hoverlabel);r.hovertemplate&&(o.namelength=-1),Jlt(t,r,a,o)}});var UB=ye((lnr,Yle)=>{"use strict";var $lt=Dr(),Qlt=N1();Yle.exports=function(t,r){function n(i,a){return r[i]!==void 0?r[i]:$lt.coerce(t,r,Qlt,i,a)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var $le=ye((unr,Jle)=>{"use strict";var Kle=Dr(),eut=N1(),tut=UB(),rut=sM();Jle.exports=function(t,r){function n(c,f){return Kle.coerce(t,r,eut,c,f)}var i=tut(t,r);i&&(n("hoverdistance"),n("spikedistance"));var a=n("dragmode");a==="select"&&n("selectdirection");var o=r._has("mapbox"),s=r._has("map"),l=r._has("geo"),u=r._basePlotModules.length;r.dragmode==="zoom"&&((o||s||l)&&u===1||(o||s)&&l&&u===2)&&(r.dragmode="pan"),rut(t,r,n),Kle.coerceFont(n,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var tue=ye((cnr,eue)=>{"use strict";var VB=Dr(),Qle=qa();eue.exports=function(t){var r=t.calcdata,n=t._fullLayout;function i(u){return function(c){return VB.coerceHoverinfo({hoverinfo:c},{_module:u._module},n)}}for(var a=0;a{"use strict";var nut=qa(),aut=NB().hover;rue.exports=function(t,r,n){var i=nut.getComponentMethod("annotations","onClick")(t,t._hoverdata);n!==void 0&&aut(t,r,n,!0);function a(){t.emit("plotly_click",{points:t._hoverdata,event:r})}t._hoverdata&&r&&r.target&&(i&&i.then?i.then(a):a(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var df=ye((hnr,oue)=>{"use strict";var out=Oa(),VL=Dr(),sut=gv(),lM=rp(),nue=N1(),aue=NB();oue.exports={moduleType:"component",name:"fx",constants:RS(),schema:{layout:nue},attributes:i3(),layoutAttributes:nue,supplyLayoutGlobalDefaults:jle(),supplyDefaults:Zle(),supplyLayoutDefaults:$le(),calc:tue(),getDistanceFunction:lM.getDistanceFunction,getClosest:lM.getClosest,inbox:lM.inbox,quadrature:lM.quadrature,appendArrayPointValue:lM.appendArrayPointValue,castHoverOption:uut,castHoverinfo:cut,hover:aue.hover,unhover:sut.unhover,loneHover:aue.loneHover,loneUnhover:lut,click:iue()};function lut(e){var t=VL.isD3Selection(e)?e:out.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function uut(e,t,r){return VL.castOption(e,t,"hoverlabel."+r)}function cut(e,t,r){function n(i){return VL.coerceHoverinfo({hoverinfo:i},{_module:e._module},t)}return VL.castOption(e,r,"hoverinfo",n)}});var Sg=ye(My=>{"use strict";My.selectMode=function(e){return e==="lasso"||e==="select"};My.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};My.openMode=function(e){return e==="drawline"||e==="drawopenpath"};My.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};My.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};My.selectingOrDrawing=function(e){return My.freeMode(e)||My.rectMode(e)}});var uM=ye((vnr,sue)=>{"use strict";sue.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var GL=ye((pnr,lue)=>{"use strict";lue.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var jL=ye((gnr,uue)=>{"use strict";var HL=32;uue.exports={CIRCLE_SIDES:HL,i000:0,i090:HL/4,i180:HL/2,i270:HL/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var WL=ye((mnr,fue)=>{"use strict";var fut=Dr().strTranslate;function cue(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function hut(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function dut(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return cue(e,r[t])}}function vut(e){return fut(e.xaxis._offset,e.yaxis._offset)}fue.exports={p2r:cue,r2p:hut,axValue:dut,getTransform:vut}});var c_=ye(Ey=>{"use strict";var put=YS(),vue=jL(),V3=vue.CIRCLE_SIDES,GB=vue.SQRT2,pue=WL(),hue=pue.p2r,due=pue.r2p,gut=[0,3,4,5,6,1,2],mut=[0,3,4,1,2];Ey.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",n=0;n0&&l{"use strict";var xue=Sg(),yut=xue.drawMode,_ut=xue.openMode,G3=jL(),gue=G3.i000,mue=G3.i090,yue=G3.i180,_ue=G3.i270,xut=G3.cos45,but=G3.sin45,bue=WL(),ZL=bue.p2r,f_=bue.r2p,wut=e_(),Tut=wut.clearOutline,YL=c_(),Aut=YL.readPaths,Sut=YL.writePaths,Mut=YL.ellipseOver,Eut=YL.fixDatesForPaths;function Cut(e,t){if(e.length){var r=e[0][0];if(r){var n=t.gd,i=t.isActiveShape,a=t.dragmode,o=(n.layout||{}).shapes||[];if(!yut(a)&&i!==void 0){var s=n._fullLayout._activeShapeIndex;if(s{"use strict";var kut=Sg(),Lut=kut.selectMode,Put=e_(),Iut=Put.clearOutline,HB=c_(),Rut=HB.readPaths,Dut=HB.writePaths,Fut=HB.fixDatesForPaths;Aue.exports=function(t,r){if(t.length){var n=t[0][0];if(n){var i=n.getAttribute("d"),a=r.gd,o=a._fullLayout.newselection,s=r.plotinfo,l=s.xaxis,u=s.yaxis,c=r.isActiveSelection,f=r.dragmode,h=(a.layout||{}).selections||[];if(!Lut(f)&&c!==void 0){var d=a._fullLayout._activeSelectionIndex;if(d{"use strict";Sue.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var h_=ye(Dd=>{"use strict";var zb=fM(),Mue=Dr(),JL=ho();Dd.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};Dd.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};Dd.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};Dd.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};Dd.extractPathCoords=function(e,t,r){var n=[],i=e.match(zb.segmentRE);return i.forEach(function(a){var o=t[a.charAt(0)].drawn;if(o!==void 0){var s=a.substr(1).match(zb.paramRE);if(!(!s||s.lengthd&&(x="X"),x});return u>d&&(v=v.replace(/[\s,]*X.*/,""),Mue.log("Ignoring extra params in segment "+l)),c+v})}function hM(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var XB=ye((Tnr,Lue)=>{"use strict";var Out=Dr(),H3=ho(),Eue=iu(),Cue=So(),qut=c_().readPaths,WB=h_(),But=WB.getPathString,kue=T6(),Nut=Kh().FROM_TL;Lue.exports=function(t,r,n,i){if(i.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var a;if(n.label.texttemplate){var o={};if(n.type!=="path"){var s=H3.getFromId(t,n.xref),l=H3.getFromId(t,n.yref);for(var u in kue){var c=kue[u](n,s,l);c!==void 0&&(o[u]=c)}}a=Out.texttemplateStringForShapes(n.label.texttemplate,{},t._fullLayout._d3locale,o)}else a=n.label.text;var f={"data-index":r},h=n.label.font,d={"data-notex":1},v=i.append("g").attr(f).classed("shape-label",!0),x=v.append("text").attr(d).classed("shape-label-text",!0).text(a),b,p,C,E;if(n.path){var A=But(t,n),L=qut(A,t);b=1/0,C=1/0,p=-1/0,E=-1/0;for(var _=0;_=e?i=t-n:i=n-t,-180/Math.PI*Math.atan2(i,a)}function Vut(e,t,r,n,i,a,o){var s=i.label.textposition,l=i.label.textangle,u=i.label.padding,c=i.type,f=Math.PI/180*a,h=Math.sin(f),d=Math.cos(f),v=i.label.xanchor,x=i.label.yanchor,b,p,C,E;if(c==="line"){s==="start"?(b=e,p=t):s==="end"?(b=r,p=n):(b=(e+r)/2,p=(t+n)/2),v==="auto"&&(s==="start"?l==="auto"?r>e?v="left":re?v="right":re?v="right":re?v="left":r{"use strict";var Gut=Dr(),Hut=Gut.strTranslate,Pue=gv(),Due=Sg(),jut=Due.drawMode,Fue=Due.selectMode,zue=qa(),Iue=Ca(),QL=jL(),Wut=QL.i000,Xut=QL.i090,Zut=QL.i180,Yut=QL.i270,Kut=e_(),Oue=Kut.clearOutlineControllers,YB=c_(),$L=YB.pointsOnRectangle,ZB=YB.pointsOnEllipse,Jut=YB.writePaths,$ut=KL().newShapes,Qut=KL().createShapeObj,ect=jB(),tct=XB();que.exports=function e(t,r,n,i){i||(i=0);var a=n.gd;function o(){e(t,r,n,i++),(ZB(t[0])||n.hasText)&&s({redrawing:!0})}function s(H){var N={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,N=$ut(r,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,N=ect(r,n),a._fullLayout._reselect=!0),Object.keys(N).length&&zue.call((H||{}).redrawing?"relayout":"_guiRelayout",a,N)}var l=a._fullLayout,u=l._zoomlayer,c=n.dragmode,f=jut(c),h=Fue(c);(f||h)&&(a._fullLayout._outlining=!0),Oue(a),r.attr("d",Jut(t));var d,v,x,b,p;if(!i&&(n.isActiveShape||n.isActiveSelection)){p=rct([],t);var C=u.append("g").attr("class","outline-controllers");P(C),Z()}if(f&&n.hasText){var E=u.select(".label-temp"),A=Qut(r,n,n.dragmode);tct(a,"label-temp",A,E)}function L(H){x=+H.srcElement.getAttribute("data-i"),b=+H.srcElement.getAttribute("data-j"),d[x][b].moveFn=_}function _(H,N){if(t.length){var j=p[x][b][1],re=p[x][b][2],oe=t[x],_e=oe.length;if($L(oe)){var Me=H,ke=N;if(n.isActiveSelection){var me=Rue(oe,b);me[1]===oe[b][1]?ke=0:Me=0}for(var ie=0;ie<_e;ie++)if(ie!==b){var Se=oe[ie];Se[1]===oe[b][1]&&(Se[1]=j+Me),Se[2]===oe[b][2]&&(Se[2]=re+ke)}if(oe[b][1]=j+Me,oe[b][2]=re+ke,!$L(oe))for(var Le=0;Le<_e;Le++)for(var Ae=0;Ae1&&!(H.length===2&&H[1][0]==="Z")&&(b===0&&(H[0][0]="M"),t[x]=H,o(),s())}}function g(H,N){if(H===2){x=+N.srcElement.getAttribute("data-i"),b=+N.srcElement.getAttribute("data-j");var j=t[x];!$L(j)&&!ZB(j)&&M()}}function P(H){d=[];for(var N=0;N{"use strict";var nct=Oa(),Hue=qa(),Bue=Dr(),j3=ho(),act=c_().readPaths,oct=eP(),rP=XB(),jue=e_().clearOutlineControllers,KB=Ca(),$B=So(),sct=pl().arrayEditor,Nue=gv(),Uue=Tg(),Ob=fM(),Sp=h_(),JB=Sp.getPathString;Zue.exports={draw:QB,drawOne:Wue,eraseActiveShape:cct,drawLabel:rP};function QB(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var n=t._plots[r].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var i=0;io&&Ut>s&&!st.shiftKey?Nue.getCursor($t/Gt,1-sr/Ut):"move";Uue(t,Tr),Se=Tr.split("-")[0]}}function Pe(st){tP(e)||(l&&(p=oe(r.xanchor)),u&&(C=_e(r.yanchor)),r.type==="path"?T=r.path:(d=l?r.x0:oe(r.x0),v=u?r.y0:_e(r.y0),x=l?r.x1:oe(r.x1),b=u?r.y1:_e(r.y1)),db?(E=v,k="y0",A=b,M="y1"):(E=b,k="y1",A=v,M="y0"),Fe(st),ut(i,r),Kt(t,r,e),ie.moveFn=Se==="move"?ce:Ze,ie.altKey=st.altKey)}function ge(){tP(e)||(Uue(t),gt(i),Xue(t,e,r),Hue.call("_guiRelayout",e,a.getUpdateObj()))}function De(){tP(e)||gt(i)}function ce(st,lt){if(r.type==="path"){var Gt=function(sr){return sr},Ut=Gt,$t=Gt;l?h("xanchor",r.xanchor=Me(p+st)):(Ut=function(Tr){return Me(oe(Tr)+st)},O&&O.type==="date"&&(Ut=Sp.encodeDate(Ut))),u?h("yanchor",r.yanchor=ke(C+lt)):($t=function(Tr){return ke(_e(Tr)+lt)},G&&G.type==="date"&&($t=Sp.encodeDate($t))),h("path",r.path=Vue(T,Ut,$t))}else l?h("xanchor",r.xanchor=Me(p+st)):(h("x0",r.x0=Me(d+st)),h("x1",r.x1=Me(x+st))),u?h("yanchor",r.yanchor=ke(C+lt)):(h("y0",r.y0=ke(v+lt)),h("y1",r.y1=ke(b+lt)));t.attr("d",JB(e,r)),ut(i,r),rP(e,n,r,z)}function Ze(st,lt){if(f){var Gt=function(Cr){return Cr},Ut=Gt,$t=Gt;l?h("xanchor",r.xanchor=Me(p+st)):(Ut=function(Kr){return Me(oe(Kr)+st)},O&&O.type==="date"&&(Ut=Sp.encodeDate(Ut))),u?h("yanchor",r.yanchor=ke(C+lt)):($t=function(Kr){return ke(_e(Kr)+lt)},G&&G.type==="date"&&($t=Sp.encodeDate($t))),h("path",r.path=Vue(T,Ut,$t))}else if(c){if(Se==="resize-over-start-point"){var sr=d+st,Tr=u?v-lt:v+lt;h("x0",r.x0=l?sr:Me(sr)),h("y0",r.y0=u?Tr:ke(Tr))}else if(Se==="resize-over-end-point"){var ur=x+st,$e=u?b-lt:b+lt;h("x1",r.x1=l?ur:Me(ur)),h("y1",r.y1=u?$e:ke($e))}}else{var Mt=function(Cr){return Se.indexOf(Cr)!==-1},Ct=Mt("n"),Vt=Mt("s"),It=Mt("w"),Ot=Mt("e"),bt=Ct?E+lt:E,rr=Vt?A+lt:A,lr=It?L+st:L,wr=Ot?_+st:_;u&&(Ct&&(bt=E-lt),Vt&&(rr=A-lt)),(!u&&rr-bt>s||u&&bt-rr>s)&&(h(k,r[k]=u?bt:ke(bt)),h(M,r[M]=u?rr:ke(rr))),wr-lr>o&&(h(g,r[g]=l?lr:Me(lr)),h(P,r[P]=l?wr:Me(wr)))}t.attr("d",JB(e,r)),ut(i,r),rP(e,n,r,z)}function ut(st,lt){(l||u)&&Gt();function Gt(){var Ut=lt.type!=="path",$t=st.selectAll(".visual-cue").data([0]),sr=1;$t.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":sr}).classed("visual-cue",!0);var Tr=oe(l?lt.xanchor:Bue.midRange(Ut?[lt.x0,lt.x1]:Sp.extractPathCoords(lt.path,Ob.paramIsX))),ur=_e(u?lt.yanchor:Bue.midRange(Ut?[lt.y0,lt.y1]:Sp.extractPathCoords(lt.path,Ob.paramIsY)));if(Tr=Sp.roundPositionForSharpStrokeRendering(Tr,sr),ur=Sp.roundPositionForSharpStrokeRendering(ur,sr),l&&u){var $e="M"+(Tr-1-sr)+","+(ur-1-sr)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";$t.attr("d",$e)}else if(l){var Mt="M"+(Tr-1-sr)+","+(ur-9-sr)+"v18 h2 v-18 Z";$t.attr("d",Mt)}else{var Ct="M"+(Tr-9-sr)+","+(ur-1-sr)+"h18 v2 h-18 Z";$t.attr("d",Ct)}}}function gt(st){st.selectAll(".visual-cue").remove()}function Kt(st,lt,Gt){var Ut=lt.xref,$t=lt.yref,sr=j3.getFromId(Gt,Ut),Tr=j3.getFromId(Gt,$t),ur="";Ut!=="paper"&&!sr.autorange&&(ur+=Ut),$t!=="paper"&&!Tr.autorange&&(ur+=$t),$B.setClipUrl(st,ur?"clip"+Gt._fullLayout._uid+ur:null,Gt)}}function Vue(e,t,r){return e.replace(Ob.segmentRE,function(n){var i=0,a=n.charAt(0),o=Ob.paramIsX[a],s=Ob.paramIsY[a],l=Ob.numParams[a],u=n.substr(1).replace(Ob.paramRE,function(c){return i>=l||(o[i]?c=t(c):s[i]&&(c=r(c)),i++),c});return a+u})}function uct(e,t){if(iP(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){Gue(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=Gue,QB(e)}}}function Gue(e){if(iP(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(jue(e),delete e._fullLayout._activeShapeIndex,QB(e))}}function cct(e){if(iP(e)){jue(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var S0=qa(),Yue=Mc(),Kue=Af(),Ll=GL(),fct=nP().eraseActiveShape,aP=Dr(),rl=aP._,Pl=ice.exports={};Pl.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?rl(e,"Download plot as a PNG"):rl(e,"Download plot")},icon:Ll.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};aP.notifier(rl(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in t&&(r[n]=t[n])}),S0.call("downloadImage",e,r).then(function(n){aP.notifier(rl(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){aP.notifier(rl(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Pl.sendDataToCloud={name:"sendDataToCloud",title:function(e){return rl(e,"Edit in Chart Studio")},icon:Ll.disk,click:function(e){Yue.sendDataToCloud(e)}};Pl.editInChartStudio={name:"editInChartStudio",title:function(e){return rl(e,"Edit in Chart Studio")},icon:Ll.pencil,click:function(e){Yue.sendDataToCloud(e)}};Pl.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return rl(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ll.zoombox,click:qv};Pl.pan2d={name:"pan2d",_cat:"pan",title:function(e){return rl(e,"Pan")},attr:"dragmode",val:"pan",icon:Ll.pan,click:qv};Pl.select2d={name:"select2d",_cat:"select",title:function(e){return rl(e,"Box Select")},attr:"dragmode",val:"select",icon:Ll.selectbox,click:qv};Pl.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return rl(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ll.lasso,click:qv};Pl.drawclosedpath={name:"drawclosedpath",title:function(e){return rl(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ll.drawclosedpath,click:qv};Pl.drawopenpath={name:"drawopenpath",title:function(e){return rl(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ll.drawopenpath,click:qv};Pl.drawline={name:"drawline",title:function(e){return rl(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ll.drawline,click:qv};Pl.drawrect={name:"drawrect",title:function(e){return rl(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ll.drawrect,click:qv};Pl.drawcircle={name:"drawcircle",title:function(e){return rl(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ll.drawcircle,click:qv};Pl.eraseshape={name:"eraseshape",title:function(e){return rl(e,"Erase active shape")},icon:Ll.eraseshape,click:fct};Pl.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return rl(e,"Zoom in")},attr:"zoom",val:"in",icon:Ll.zoom_plus,click:qv};Pl.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return rl(e,"Zoom out")},attr:"zoom",val:"out",icon:Ll.zoom_minus,click:qv};Pl.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return rl(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ll.autoscale,click:qv};Pl.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return rl(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ll.home,click:qv};Pl.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return rl(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Ll.tooltip_basic,gravity:"ne",click:qv};Pl.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return rl(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Ll.tooltip_compare,gravity:"ne",click:qv};function qv(e,t){var r=t.currentTarget,n=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,a=e._fullLayout,o={},s=Kue.list(e,null,!0),l=a._cartesianSpikesEnabled,u,c;if(n==="zoom"){var f=i==="in"?.5:2,h=(1+f)/2,d=(1-f)/2,v;for(c=0;c{"use strict";var nce=rN(),vct=Object.keys(nce),ace=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],oce=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(ace),X3=[],pct=function(e){if(oce.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();X3.indexOf(t)===-1&&X3.push(t),X3.indexOf(r)===-1&&X3.push(r)}};vct.forEach(function(e){pct(nce[e])});X3.sort();sce.exports={DRAW_MODES:ace,backButtons:oce,foreButtons:X3}});var nN=ye((knr,lce)=>{"use strict";var Cnr=iN();lce.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var cce=ye((Lnr,uce)=>{"use strict";var gct=Dr(),dM=Ca(),mct=pl(),yct=nN();uce.exports=function(t,r){var n=t.modebar||{},i=mct.newContainer(r,"modebar");function a(s,l){return gct.coerce(n,i,yct,s,l)}a("orientation"),a("bgcolor",dM.addOpacity(r.paper_bgcolor,.5));var o=dM.contrast(dM.rgb(r.modebar.bgcolor));a("color",dM.addOpacity(o,.3)),a("activecolor",dM.addOpacity(o,.7)),a("uirevision",r.uirevision),a("add"),a("remove")}});var vce=ye((Pnr,dce)=>{"use strict";var aN=Oa(),_ct=Eo(),sP=Dr(),fce=GL(),xct=r6().version,bct=new DOMParser;function hce(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Tm=hce.prototype;Tm.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i="modebar-"+n._uid;this.element.setAttribute("id",i),this._uid=i,this.element.className="modebar",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var a=n.modebar,o="#"+i+" .modebar-group";document.querySelectorAll(o).forEach(function(f){f.style.backgroundColor=a.bgcolor});var s=!this.hasButtons(t),l=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(s||l||u)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var c=this.getLogo();r.watermark&&(c.className=c.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(c,this.element.childNodes[0]):this.element.appendChild(c),this.hasLogo=!0}this.updateActiveButton(),sP.setStyleOnHover("#"+i+" .modebar-btn",".active",".icon path","fill: "+a.activecolor,"fill: "+a.color,this.element)};Tm.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var n=t.createGroup();r.forEach(function(i){var a=i.name;if(!a)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(a)!==-1)throw new Error("button name '"+a+"' is taken");t.buttonsNames.push(a);var o=t.createButton(i);t.buttonElements.push(o),n.appendChild(o)}),t.element.appendChild(n)})};Tm.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};Tm.createButton=function(e){var t=this,r=document.createElement("a");r.setAttribute("rel","tooltip"),r.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&r.setAttribute("data-title",n),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var i=e.val;i!==void 0&&(typeof i=="function"&&(i=i(this.graphInfo)),r.setAttribute("data-val",i));var a=e.click;if(typeof a!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(s){e.click(t.graphInfo,s),t.updateActiveButton(s.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&aN.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||fce.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};Tm.createIcon=function(e){var t=_ct(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(r,"svg"),n.setAttribute("viewBox",[0,0,e.width,t].join(" ")),n.setAttribute("class","icon");var i=document.createElementNS(r,"path");i.setAttribute("d",e.path),e.transform?i.setAttribute("transform",e.transform):e.ascent!==void 0&&i.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(i)}if(e.svg){var a=bct.parseFromString(e.svg,"application/xml");n=a.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};Tm.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var i=n.getAttribute("data-val")||!0,a=n.getAttribute("data-attr"),o=n.getAttribute("data-toggle")==="true",s=aN.select(n),l=function(f,h){var d=t.modebar,v=f.querySelector(".icon path");v&&(h||f.matches(":hover")?v.style.fill=d.activecolor:v.style.fill=d.color)};if(o){if(a===r){var u=!s.classed("active");s.classed("active",u),l(n,u)}}else{var c=a===null?a:sP.nestedProperty(t,a).get();s.classed("active",c===i),l(n,c===i)}})};Tm.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var Act=Af(),pce=Ru(),oN=qa(),Sct=rp().isUnifiedHover,Mct=vce(),lP=rN(),Ect=iN().DRAW_MODES,Cct=Dr().extendDeep;gce.exports=function(t){var r=t._fullLayout,n=t._context,i=r._modeBar;if(!n.displayModeBar&&!n.watermark){i&&(i.destroy(),delete r._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var a=n.modeBarButtons,o;Array.isArray(a)&&a.length?o=Dct(a):!n.displayModeBar&&n.watermark?o=[]:o=kct(t),i?i.update(t,o):r._modeBar=Mct(t,o)};function kct(e){var t=e._fullLayout,r=e._fullData,n=e._context;function i(N,j){if(typeof j=="string"){if(j.toLowerCase()===N.toLowerCase())return!0}else{var re=j.name,oe=j._cat||j.name;if(re===N||oe===N.toLowerCase())return!0}return!1}var a=t.modebar.add;typeof a=="string"&&(a=[a]);var o=t.modebar.remove;typeof o=="string"&&(o=[o]);var s=n.modeBarButtonsToAdd.concat(a.filter(function(N){for(var j=0;j1?(P=["toggleHover"],T=["resetViews"]):f?(g=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],T=["resetGeo"]):c?(P=["hoverClosest3d"],T=["resetCameraDefault3d","resetCameraLastSave3d"]):x?(g=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],T=["resetViewMapbox"]):b?(g=["zoomInMap","zoomOutMap"],P=["toggleHover"],T=["resetViewMap"]):h?P=["hoverClosestPie"]:E?(P=["hoverClosestCartesian","hoverCompareCartesian"],T=["resetViewSankey"]):P=["toggleHover"],u&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Ict(r)||L)&&(P=[]),u&&!A&&(g=["zoomIn2d","zoomOut2d","autoScale2d"],T[0]!=="resetViews"&&(T=["resetScale2d"])),c?z=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!A||v?z=["zoom2d","pan2d"]:x||b||f?z=["pan2d"]:p&&(z=["zoom2d"]),Pct(r)&&z.push("select2d","lasso2d");var O=[],V=function(N){O.indexOf(N)===-1&&P.indexOf(N)!==-1&&O.push(N)};if(Array.isArray(s)){for(var G=[],Z=0;Z{"use strict";yce.exports={moduleType:"component",name:"modebar",layoutAttributes:nN(),supplyLayoutDefaults:cce(),manage:mce()}});var lN=ye((Dnr,_ce)=>{"use strict";var Fct=Kh().FROM_BL;_ce.exports=function(t,r,n){n===void 0&&(n=Fct[t.constraintoward||"center"]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*n;t.range=t._input.range=[t.l2r(a+(i[0]-a)*r),t.l2r(a+(i[1]-a)*r)],t.setScale()}});var Bb=ye(vM=>{"use strict";var qb=Dr(),uN=wg(),Mg=Af().id2name,zct=Rd(),xce=lN(),Oct=ym(),qct=hs().ALMOST_EQUAL,Bct=Kh().FROM_BL;vM.handleDefaults=function(e,t,r){var n=r.axIds,i=r.axHasImage,a=t._axisConstraintGroups=[],o=t._axisMatchGroups=[],s,l,u,c,f,h,d,v;for(s=0;sa?r.substr(a):n.substr(i))+o}function Uct(e,t){for(var r=t._size,n=r.h/r.w,i={},a=Object.keys(e),o=0;oqct*v&&!C)){for(a=0;az&&reP&&(P=re);var _e=(P-g)/(2*T);f/=_e,g=l.l2r(g),P=l.l2r(P),l.range=l._input.range=_{"use strict";var cP=Oa(),Bv=qa(),Jp=Mc(),M0=Dr(),hN=iu(),dN=uM(),pM=Ca(),Z3=So(),Ace=Mb(),kce=sN(),gM=ho(),Cy=Kh(),Lce=Bb(),Vct=Lce.enforce,Gct=Lce.clean,Sce=wg().doAutoRange,Pce="start",Hct="middle",Ice="end",jct=hd().zindexSeparator;pd.layoutStyles=function(e){return M0.syncOrAsync([Jp.doAutoMargin,Xct],e)};function Wct(e,t,r){for(var n=0;n=e[1]||i[1]<=e[0])&&a[0]t[0])return!0}return!1}function Xct(e){var t=e._fullLayout,r=t._size,n=r.p,i=gM.list(e,"",!0),a,o,s,l,u,c;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(Z3.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),pd.drawMainTitle(e),kce.manage(e),!t._has("cartesian"))return Jp.previousPromises(e);function f(Pe,ge,De){var ce=Pe._lw/2;if(Pe._id.charAt(0)==="x"){if(ge){if(De==="top")return ge._offset-n-ce}else return r.t+r.h*(1-(Pe.position||0))+ce%1;return ge._offset+ge._length+n+ce}if(ge){if(De==="right")return ge._offset+ge._length+n+ce}else return r.l+r.w*(Pe.position||0)+ce%1;return ge._offset-n-ce}for(a=0;a0){Jct(e,a,u,l),s.attr({x:o,y:a,"text-anchor":n,dy:Cce(t.yanchor)}).call(hN.positionText,o,a);var c=(t.text.match(hN.BR_TAG_ALL)||[]).length;if(c){var f=Cy.LINE_SPACING*c+Cy.MID_SHIFT;t.y===0&&(f=-f),s.selectAll(".line").each(function(){var b=+this.getAttribute("dy").slice(0,-2)-f+"em";this.setAttribute("dy",b)})}var h=cP.selectAll(".gtitle-subtitle");if(h.node()){var d=s.node().getBBox(),v=d.y+d.height,x=v+Ace.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y:x,"text-anchor":n,dy:Cce(t.yanchor)}).call(hN.positionText,o,x)}}}};function Zct(e,t,r,n,i){var a=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=M0.isTopAnchor(t)?n:n-i,s=r==="b"?a-o:o;return M0.isTopAnchor(t)&&r==="t"||M0.isBottomAnchor(t)&&r==="b"?!1:s.5?"t":"b",o=e._fullLayout.margin[a],s=0;return t.yref==="paper"?s=r+t.pad.t+t.pad.b:t.yref==="container"&&(s=Yct(a,n,i,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function Jct(e,t,r,n){var i="title.automargin",a=e._fullLayout.title,o=a.y>.5?"t":"b",s={x:a.x,y:a.y,t:0,b:0},l={};a.yref==="paper"&&Zct(e,a,o,t,n)?s[o]=r:a.yref==="container"&&(l[o]=r,e._fullLayout._reservedMargin[i]=l),Jp.allowAutoMargin(e,i),Jp.autoMargin(e,i,s)}function $ct(e,t){var r=e.title,n=e._size,i=0;switch(t===Pce?i=r.pad.l:t===Ice&&(i=-r.pad.r),r.xref){case"paper":return n.l+n.w*r.x+i;case"container":default:return e.width*r.x+i}}function Qct(e,t){var r=e.title,n=e._size,i=0;if(t==="0em"||!t?i=-r.pad.b:t===Cy.CAP_SHIFT+"em"&&(i=r.pad.t),r.y==="auto")return n.t/2;switch(r.yref){case"paper":return n.t+n.h-n.h*r.y+i;case"container":default:return e.height-e.height*r.y+i}}function Cce(e){return e==="top"?Cy.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Cy.MID_SHIFT+"em"}function eft(e){var t=e.title,r=Hct;return M0.isRightAnchor(t)?r=Ice:M0.isLeftAnchor(t)&&(r=Pce),r}function tft(e){var t=e.title,r="0em";return M0.isTopAnchor(t)?r=Cy.CAP_SHIFT+"em":M0.isMiddleAnchor(t)&&(r=Cy.MID_SHIFT+"em"),r}pd.doTraceStyle=function(e){var t=e.calcdata,r=[],n;for(n=0;n{"use strict";var rft=c_().readPaths,ift=eP(),Rce=e_().clearOutlineControllers,vN=Ca(),Dce=So(),nft=pl().arrayEditor,Fce=h_(),aft=Fce.getPathString;Oce.exports={draw:fP,drawOne:zce,activateLastSelection:lft};function fP(e){var t=e._fullLayout;Rce(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var n=t._plots[r].selectionLayer;n&&n.selectAll("path").remove()}for(var i=0;i=0;b--){var p=o.append("path").attr(l).style("opacity",b?.1:u).call(vN.stroke,f).call(vN.fill,c).call(Dce.dashLine,b?"solid":d,b?4+h:h);if(oft(p,e,n),v){var C=nft(e.layout,"selections",n);p.style({cursor:"move"});var E={element:p.node(),plotinfo:i,gd:e,editHelpers:C,isActiveSelection:!0},A=rft(s,e);ift(A,p,E)}else p.style("pointer-events",b?"all":"none");x[b]=p}var L=x[0],_=x[1];_.node().addEventListener("click",function(){return sft(e,L)})}}function oft(e,t,r){var n=r.xref+r.yref;Dce.setClipUrl(e,"clip"+t._fullLayout._uid+n,t)}function sft(e,t){if(hP(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){pN(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=pN,fP(e)}}}function lft(e){if(hP(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=pN,fP(e)}}function pN(e){if(hP(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(Rce(e),delete e._fullLayout._activeSelectionIndex,fP(e))}}});var Bce=ye((qnr,qce)=>{function uft(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,o){return n("temp_status",{seg:i,above:a,below:o})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,o){return n("status",{seg:i,above:a,below:o})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}qce.exports=uft});var Uce=ye((Bnr,Nce)=>{function cft(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],o=n[1],s=i[0],l=i[1],u=r[0],c=r[1];return(s-a)*(c-o)-(l-o)*(u-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],s=r[0]-n[0],l=i[1]-n[1],u=s*o+a*l;if(u-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])e!=s-a>e&&(o-c)*(a-f)/(s-f)+c-i>e&&(l=!l),o=c,s=f}return l}};return t}Nce.exports=cft});var Gce=ye((Nnr,Vce)=>{var fft={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,i=e.root.next;i!==null;){if(r(i)){t.prev=i.prev,t.next=i,i.prev.next=t,i.prev=t;return}n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(i){return i.prev=r,i.next=n,r.next=i,n!==null&&(n.prev=i),i}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};Vce.exports=fft});var jce=ye((Unr,Hce)=>{var yM=Gce();function hft(e,t,r){function n(v,x){return{id:r?r.segmentId():-1,start:v,end:x,myFill:{above:null,below:null},otherFill:null}}function i(v,x,b){return{id:r?r.segmentId():-1,start:v,end:x,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=yM.create();function o(v,x,b,p,C,E){var A=t.pointsCompare(x,C);return A!==0?A:t.pointsSame(b,E)?0:v!==p?v?1:-1:t.pointAboveOrOnLine(b,p?C:E,p?E:C)?1:-1}function s(v,x){a.insertBefore(v,function(b){var p=o(v.isStart,v.pt,x,b.isStart,b.pt,b.other.pt);return p<0})}function l(v,x){var b=yM.node({isStart:!0,pt:v.start,seg:v,primary:x,other:null,status:null});return s(b,v.end),b}function u(v,x,b){var p=yM.node({isStart:!1,pt:x.end,seg:x,primary:b,other:v,status:null});v.other=p,s(p,v.pt)}function c(v,x){var b=l(v,x);return u(b,v,x),b}function f(v,x){r&&r.segmentChop(v.seg,x),v.other.remove(),v.seg.end=x,v.other.pt=x,s(v.other,v.pt)}function h(v,x){var b=i(x,v.seg.end,v.seg);return f(v,x),c(b,v.primary)}function d(v,x){var b=yM.create();function p(G,Z){var H=G.seg.start,N=G.seg.end,j=Z.seg.start,re=Z.seg.end;return t.pointsCollinear(H,j,re)?t.pointsCollinear(N,j,re)||t.pointAboveOrOnLine(N,j,re)?1:-1:t.pointAboveOrOnLine(H,j,re)?1:-1}function C(G){return b.findTransition(function(Z){var H=p(G,Z.ev);return H>0})}function E(G,Z){var H=G.seg,N=Z.seg,j=H.start,re=H.end,oe=N.start,_e=N.end;r&&r.checkIntersection(H,N);var Me=t.linesIntersect(j,re,oe,_e);if(Me===!1){if(!t.pointsCollinear(j,re,oe)||t.pointsSame(j,_e)||t.pointsSame(re,oe))return!1;var ke=t.pointsSame(j,oe),me=t.pointsSame(re,_e);if(ke&&me)return Z;var ie=!ke&&t.pointBetween(j,oe,_e),Se=!me&&t.pointBetween(re,oe,_e);if(ke)return Se?h(Z,re):h(G,_e),Z;ie&&(me||(Se?h(Z,re):h(G,_e)),h(Z,j))}else Me.alongA===0&&(Me.alongB===-1?h(G,oe):Me.alongB===0?h(G,Me.pt):Me.alongB===1&&h(G,_e)),Me.alongB===0&&(Me.alongA===-1?h(Z,j):Me.alongA===0?h(Z,Me.pt):Me.alongA===1&&h(Z,re));return!1}for(var A=[];!a.isEmpty();){var L=a.getHead();if(r&&r.vert(L.pt[0]),L.isStart){let G=function(){if(k){var Z=E(L,k);if(Z)return Z}return M?E(L,M):!1};var V=G;r&&r.segmentNew(L.seg,L.primary);var _=C(L),k=_.before?_.before.ev:null,M=_.after?_.after.ev:null;r&&r.tempStatus(L.seg,k?k.seg:!1,M?M.seg:!1);var g=G();if(g){if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,P&&(g.seg.myFill.above=!g.seg.myFill.above)}else g.seg.otherFill=L.seg.myFill;r&&r.segmentUpdate(g.seg),L.other.remove(),L.remove()}if(a.getHead()!==L){r&&r.rewind(L.seg);continue}if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,M?L.seg.myFill.below=M.seg.myFill.above:L.seg.myFill.below=v,P?L.seg.myFill.above=!L.seg.myFill.below:L.seg.myFill.above=L.seg.myFill.below}else if(L.seg.otherFill===null){var T;M?L.primary===M.primary?T=M.seg.otherFill.above:T=M.seg.myFill.above:T=L.primary?x:v,L.seg.otherFill={above:T,below:T}}r&&r.status(L.seg,k?k.seg:!1,M?M.seg:!1),L.other.status=_.insert(yM.node({ev:L}))}else{var z=L.status;if(z===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(z.prev)&&b.exists(z.next)&&E(z.prev.ev,z.next.ev),r&&r.statusRemove(z.ev.seg),z.remove(),!L.primary){var O=L.seg.myFill;L.seg.myFill=L.seg.otherFill,L.seg.otherFill=O}A.push(L.seg)}a.getHead().remove()}return r&&r.done(),A}return e?{addRegion:function(v){for(var x,b=v[v.length-1],p=0;p{function dft(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,s=a.end;if(t.pointsSame(o,s)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var l={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},c=l;function f(V,G,Z){return c.index=V,c.matches_head=G,c.matches_pt1=Z,c===l?(c=u,!1):(c=null,!0)}for(var h=0;h{function _M(e,t,r){var n=[];return e.forEach(function(i){var a=(i.myFill.above?8:0)+(i.myFill.below?4:0)+(i.otherFill&&i.otherFill.above?2:0)+(i.otherFill&&i.otherFill.below?1:0);t[a]!==0&&n.push({id:r?r.segmentId():-1,start:i.start,end:i.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(n),n}var vft={union:function(e,t){return _M(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return _M(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return _M(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return _M(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return _M(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};Zce.exports=vft});var Jce=ye((Hnr,Kce)=>{var pft={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var c=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[c]})}for(var s=o(a[0]),l=1;l{var gft=Bce(),mft=Uce(),$ce=jce(),yft=Xce(),xM=Yce(),Qce=Jce(),E0=!1,bM=mft(),Mp;Mp={buildLog:function(e){return e===!0?E0=gft():e===!1&&(E0=!1),E0===!1?!1:E0.list},epsilon:function(e){return bM.epsilon(e)},segments:function(e){var t=$ce(!0,bM,E0);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=$ce(!1,bM,E0);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:xM.union(e.combined,E0),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:xM.intersect(e.combined,E0),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:xM.difference(e.combined,E0),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:xM.differenceRev(e.combined,E0),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:xM.xor(e.combined,E0),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:yft(e.segments,bM,E0),inverted:e.inverted}},polygonFromGeoJSON:function(e){return Qce.toPolygon(Mp,e)},polygonToGeoJSON:function(e){return Qce.fromPolygon(Mp,bM,e)},union:function(e,t){return wM(e,t,Mp.selectUnion)},intersect:function(e,t){return wM(e,t,Mp.selectIntersect)},difference:function(e,t){return wM(e,t,Mp.selectDifference)},differenceRev:function(e,t){return wM(e,t,Mp.selectDifferenceRev)},xor:function(e,t){return wM(e,t,Mp.selectXor)}};function wM(e,t,r){var n=Mp.segments(e),i=Mp.segments(t),a=Mp.combine(n,i),o=r(a);return Mp.polygon(o)}typeof window=="object"&&(window.PolyBool=Mp);efe.exports=Mp});var ife=ye((Wnr,rfe)=>{rfe.exports=function(t,r,n,i){var a=t[0],o=t[1],s=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var l=i-n,u=0,c=l-1;uo!=v>o&&a<(d-f)*(o-h)/(v-h)+f;x&&(s=!s)}return s}});var TM=ye((Xnr,nfe)=>{"use strict";var mN=_6().dot,dP=hs().BADNUM,vP=nfe.exports={};vP.tester=function(t){var r=t.slice(),n=r[0][0],i=n,a=r[0][1],o=a,s;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),s=1;si||p===dP||po||x&&u(v))}function f(v,x){var b=v[0],p=v[1];if(b===dP||bi||p===dP||po)return!1;var C=r.length,E=r[0][0],A=r[0][1],L=0,_,k,M,g,P;for(_=1;_Math.max(k,E)||p>Math.max(M,A)))if(ps||Math.abs(mN(f,u))>i)return!0;return!1};vP.filter=function(t,r){var n=[t[0]],i=0,a=0;function o(l){t.push(l);var u=n.length,c=i;n.splice(a+1);for(var f=c+1;f1){var s=t.pop();o(s)}return{addPt:o,raw:t,filtered:n}}});var ofe=ye((Znr,afe)=>{"use strict";afe.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Cfe=ye((Ynr,Efe)=>{"use strict";var sfe=tfe(),_ft=ife(),MM=qa(),xft=So().dashStyle,AM=Ca(),bft=df(),wft=rp().makeEventData,PM=Sg(),Tft=PM.freeMode,Aft=PM.rectMode,EM=PM.drawMode,bN=PM.openMode,wN=PM.selectMode,lfe=h_(),ufe=fM(),vfe=eP(),pfe=e_().clearOutline,gfe=c_(),yN=gfe.handleEllipse,Sft=gfe.readPaths,Mft=KL().newShapes,Eft=jB(),Cft=gN().activateLastSelection,gP=Dr(),kft=gP.sorterAsc,mfe=TM(),SM=R6(),C0=Af().getFromId,Lft=uM(),Pft=mM().redrawReglTraces,mP=ofe(),Am=mP.MINSELECT,Ift=mfe.filter,TN=mfe.tester,AN=WL(),cfe=AN.p2r,Rft=AN.axValue,Dft=AN.getTransform;function SN(e){return e.subplot!==void 0}function Fft(e,t,r,n,i){var a=!SN(n),o=Tft(i),s=Aft(i),l=bN(i),u=EM(i),c=wN(i),f=i==="drawline",h=i==="drawcircle",d=f||h,v=n.gd,x=v._fullLayout,b=c&&x.newselection.mode==="immediate"&&a,p=x._zoomlayer,C=n.element.getBoundingClientRect(),E=n.plotinfo,A=Dft(E),L=t-C.left,_=r-C.top;x._calcInverseTransform(v);var k=gP.apply3DTransform(x._invTransform)(L,_);L=k[0],_=k[1];var M=x._invScaleX,g=x._invScaleY,P=L,T=_,z="M"+L+","+_,O=n.xaxes[0],V=n.yaxes[0],G=O._length,Z=V._length,H=e.altKey&&!(EM(i)&&l),N,j,re,oe,_e,Me,ke;_fe(e,v,n),o&&(N=Ift([[L,_]],mP.BENDPX));var me=p.selectAll("path.select-outline-"+E.id).data([1]),ie=u?x.newshape:x.newselection;u&&(n.hasText=ie.label.text||ie.label.texttemplate);var Se=u&&!l?ie.fillcolor:"rgba(0,0,0,0)",Le=ie.line.color||(a?AM.contrast(v._fullLayout.plot_bgcolor):"#7f7f7f");me.enter().append("path").attr("class","select-outline select-outline-"+E.id).style({opacity:u?ie.opacity/2:1,"stroke-dasharray":xft(ie.line.dash,ie.line.width),"stroke-width":ie.line.width+"px","shape-rendering":"crispEdges"}).call(AM.stroke,Le).call(AM.fill,Se).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",A).attr("d",z+"Z");var Ae=p.append("path").attr("class","zoombox-corners").style({fill:AM.background,stroke:AM.defaultLine,"stroke-width":1}).attr("transform",A).attr("d","M0,0Z");if(u&&n.hasText){var Fe=p.select(".label-temp");Fe.empty()&&(Fe=p.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Pe=x._uid+mP.SELECTID,ge=[],De=yP(v,n.xaxes,n.yaxes,n.subplot);b&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(a){var Ze=O._id,ut=V._id;Afe(v,Ze,ut,De);for(var gt=(v.layout||{}).selections||[],Kt=[],st=!1,lt=0;lt=0){v._fullLayout._deactivateShape(v);return}if(!u){var gt=x.clickmode;SM.done(Pe).then(function(){if(SM.clear(Pe),Ze===2){for(me.remove(),_e=0;_e-1&&yfe(ut,v,n.xaxes,n.yaxes,n.subplot,n,me),gt==="event"&&LM(v,void 0);bft.click(v,ut,E.id)}).catch(gP.error)}},n.doneFn=function(){Ae.remove(),SM.done(Pe).then(function(){SM.clear(Pe),!b&&oe&&n.selectionDefs&&(oe.subtract=H,n.selectionDefs.push(oe),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,re)),(b||u)&&CM(n,b),n.doneFnCompleted&&n.doneFnCompleted(ge),c&&LM(v,ke)}).catch(gP.error)}}function yfe(e,t,r,n,i,a,o){var s=t._hoverdata,l=t._fullLayout,u=l.clickmode,c=u.indexOf("event")>-1,f=[],h,d,v,x,b,p,C,E,A,L;if(Nft(s)){_fe(e,t,a),h=yP(t,r,n,i);var _=Uft(s,h),k=_.pointNumbers.length>0;if(k?Vft(h,_):Gft(h)&&(C=hfe(_))){for(o&&o.remove(),L=0;L=0}function Bft(e){return e._fullLayout._activeSelectionIndex>=0}function CM(e,t){var r=e.dragmode,n=e.plotinfo,i=e.gd;qft(i)&&i._fullLayout._deactivateShape(i),Bft(i)&&i._fullLayout._deactivateSelection(i);var a=i._fullLayout,o=a._zoomlayer,s=EM(r),l=wN(r);if(s||l){var u=o.selectAll(".select-outline-"+n.id);if(u&&i._fullLayout._outlining){var c;s&&(c=Mft(u,e)),c&&MM.call("_guiRelayout",i,{shapes:c});var f;l&&!SN(e)&&(f=Eft(u,e)),f&&(i._fullLayout._noEmitSelectedAtStart=!0,MM.call("_guiRelayout",i,{selections:f}).then(function(){t&&Cft(i)})),i._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function ffe(e){return e._id}function yP(e,t,r,n){if(!e.calcdata)return[];var i=[],a=t.map(ffe),o=r.map(ffe),s,l,u;for(u=0;u0,a=i?n[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function Vft(e,t){var r=[],n,i,a,o;for(o=0;o0&&r.push(n);if(r.length===1&&(a=r[0]===t.searchInfo,a&&(i=t.searchInfo.cd[0].trace,i.selectedpoints.length===t.pointNumbers.length))){for(o=0;o1||(t+=n.selectedpoints.length,t>1)))return!1;return t===1}function kM(e,t,r){var n;for(n=0;n-1&&t;if(!o&&t){var Ze=dfe(e,!0);if(Ze.length){var ut=Ze[0].xref,gt=Ze[0].yref;if(ut&>){var Kt=Sfe(Ze),st=Mfe([C0(e,ut,"x"),C0(e,gt,"y")]);st(ge,Kt)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ce&&LM(e,ge),h._reselect=!1}if(!o&&h._deselect){var lt=h._deselect;s=lt.xref,l=lt.yref,Wft(s,l,c)||Afe(e,s,l,n),ce&&(ge.points.length?LM(e,ge):CN(e)),h._deselect=!1}return{eventData:ge,selectionTesters:r}}function jft(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";kfe.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var IM=ye((Jnr,Lfe)=>{"use strict";Lfe.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}});var Nb=ye((Qnr,Rfe)=>{"use strict";var Pfe=kN(),Ife=ec(),_P=hd(),Jft=pl().templatedArray,$nr=IM();Rfe.exports=Jft("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Ife({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:Pfe.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Pfe.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",_P.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",_P.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",_P.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",_P.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:Ife({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Sm=ye((ear,Dfe)=>{"use strict";Dfe.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Eg=ye((tar,Ffe)=>{"use strict";Ffe.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var vf=ye((rar,Ufe)=>{"use strict";var zfe=ff().axisHoverFormat,$ft=rs().texttemplateAttrs,Qft=rs().hovertemplateAttrs,Ofe=Tu(),eht=ec(),tht=Pd().dash,rht=Pd().pattern,iht=So(),nht=Sm(),xP=Ao().extendFlat,aht=Eg();function qfe(e){return{valType:"any",dflt:0,editType:"calc"}}function Bfe(e){return{valType:"any",editType:"calc"}}function Nfe(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}Ufe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:qfe("x"),yperiod:qfe("y"),xperiod0:Bfe("x0"),yperiod0:Bfe("y0"),xperiodalignment:Nfe("x"),yperiodalignment:Nfe("y"),xhoverformat:zfe("x"),yhoverformat:zfe("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:$ft({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:Qft({},{keys:nht.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:xP({},tht,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:aht(!0),fillgradient:xP({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:rht,marker:xP({symbol:{valType:"enumerated",values:iht.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:xP({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},Ofe("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},Ofe("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:eht({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var LN=ye((nar,Hfe)=>{"use strict";var Vfe=Nb(),Gfe=vf().line,oht=Pd().dash,bP=Ao().extendFlat,sht=mc().overrideAll,lht=pl().templatedArray,iar=IM();Hfe.exports=sht(lht("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:bP({},Vfe.xref,{}),yref:bP({},Vfe.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:Gfe.color,width:bP({},Gfe.width,{min:1,dflt:1}),dash:bP({},oht,{dflt:"dot"})}}),"arraydraw","from-root")});var Zfe=ye((aar,Xfe)=>{"use strict";var jfe=Dr(),wP=ho(),uht=Yd(),cht=LN(),Wfe=h_();Xfe.exports=function(t,r){uht(t,r,{name:"selections",handleItemDefaults:fht});for(var n=r.selections,i=0;i{"use strict";Yfe.exports=function(t,r,n){n("newselection.mode");var i=n("newselection.line.width");i&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var RM=ye((sar,Qfe)=>{"use strict";var hht=qa(),Jfe=Dr(),$fe=Af();Qfe.exports=function(t){return function(n,i){var a=n[t];if(Array.isArray(a))for(var o=hht.subplotsRegistry.cartesian,s=o.idRegex,l=i._subplots,u=l.xaxis,c=l.yaxis,f=l.cartesian,h=i._has("cartesian"),d=0;d{"use strict";var ehe=gN(),DM=Cfe();the.exports={moduleType:"component",name:"selections",layoutAttributes:LN(),supplyLayoutDefaults:Zfe(),supplyDrawNewSelectionDefaults:Kfe(),includeBasePlot:RM()("selections"),draw:ehe.draw,drawOne:ehe.drawOne,reselect:DM.reselect,prepSelect:DM.prepSelect,clearOutline:DM.clearOutline,clearSelectionsCache:DM.clearSelectionsCache,selectOnClick:DM.selectOnClick}});var ON=ye((uar,bhe)=>{"use strict";var FN=Oa(),k0=Dr(),rhe=k0.numberFormat,dht=cd(),vht=LL(),TP=qa(),fhe=k0.strTranslate,pht=iu(),ihe=Ca(),v_=So(),ght=df(),nhe=ho(),mht=Tg(),yht=gv(),hhe=Sg(),AP=hhe.selectingOrDrawing,_ht=hhe.freeMode,xht=Kh().FROM_TL,bht=uM(),wht=mM().redrawReglTraces,Tht=Mc(),IN=Af().getFromId,Aht=Ff().prepSelect,Sht=Ff().clearOutline,Mht=Ff().selectOnClick,PN=lN(),zN=hd(),ahe=zN.MINDRAG,ip=zN.MINZOOM,ohe=!0;function Eht(e,t,r,n,i,a,o,s){var l=e._fullLayout._zoomlayer,u=o+s==="nsew",c=(o+s).length===1,f,h,d,v,x,b,p,C,E,A,L,_,k,M,g,P,T,z,O,V,G,Z,H;r+=t.yaxis._shift;function N(){if(f=t.xaxis,h=t.yaxis,E=f._length,A=h._length,p=f._offset,C=h._offset,d={},d[f._id]=f,v={},v[h._id]=h,o&&s)for(var Ot=t.overlays,bt=0;bt=0){rr._fullLayout._deactivateShape(rr);return}var lr=rr._fullLayout.clickmode;if(DN(rr),Ot===2&&!c&&ur(),u)lr.indexOf("select")>-1&&Mht(bt,rr,x,b,t.id,oe),lr.indexOf("event")>-1&&ght.click(rr,bt,t.id);else if(Ot===1&&c){var wr=o?h:f,Cr=o==="s"||s==="w"?0:1,Kr=wr._name+".range["+Cr+"]",Gr=Cht(wr,Cr),Yr="left",dt="middle";if(wr.fixedrange)return;o?(dt=o==="n"?"top":"bottom",wr.side==="right"&&(Yr="right")):s==="e"&&(Yr="right"),rr._context.showAxisRangeEntryBoxes&&FN.select(re).call(pht.makeEditable,{gd:rr,immediate:!0,background:rr._fullLayout.paper_bgcolor,text:String(Gr),fill:wr.tickfont?wr.tickfont.color:"#444",horizontalAlign:Yr,verticalAlign:dt}).on("edit",function(Ge){var Qe=wr.d2r(Ge);Qe!==void 0&&TP.call("_guiRelayout",rr,Kr,Qe)})}}yht.init(oe);var ke,me,ie,Se,Le,Ae,Fe,Pe,ge,De;function ce(Ot,bt,rr){var lr=re.getBoundingClientRect();ke=bt-lr.left,me=rr-lr.top,e._fullLayout._calcInverseTransform(e);var wr=k0.apply3DTransform(e._fullLayout._invTransform)(ke,me);ke=wr[0],me=wr[1],ie={l:ke,r:ke,w:0,t:me,b:me,h:0},Se=e._hmpixcount?e._hmlumcount/e._hmpixcount:dht(e._fullLayout.plot_bgcolor).getLuminance(),Le="M0,0H"+E+"V"+A+"H0V0",Ae=!1,Fe="xy",De=!1,Pe=phe(l,Se,p,C,Le),ge=ghe(l,p,C)}function Ze(Ot,bt){if(e._transitioningWithDuration)return!1;var rr=Math.max(0,Math.min(E,Z*Ot+ke)),lr=Math.max(0,Math.min(A,H*bt+me)),wr=Math.abs(rr-ke),Cr=Math.abs(lr-me);ie.l=Math.min(ke,rr),ie.r=Math.max(ke,rr),ie.t=Math.min(me,lr),ie.b=Math.max(me,lr);function Kr(){Fe="",ie.r=ie.l,ie.t=ie.b,ge.attr("d","M0,0Z")}if(L.isSubplotConstrained)wr>ip||Cr>ip?(Fe="xy",wr/E>Cr/A?(Cr=wr*A/E,me>lr?ie.t=me-Cr:ie.b=me+Cr):(wr=Cr*E/A,ke>rr?ie.l=ke-wr:ie.r=ke+wr),ge.attr("d",SP(ie))):Kr();else if(_.isSubplotConstrained)if(wr>ip||Cr>ip){Fe="xy";var Gr=Math.min(ie.l/E,(A-ie.b)/A),Yr=Math.max(ie.r/E,(A-ie.t)/A);ie.l=Gr*E,ie.r=Yr*E,ie.b=(1-Gr)*A,ie.t=(1-Yr)*A,ge.attr("d",SP(ie))}else Kr();else!M||Cr0){var Ge;if(_.isSubplotConstrained||!k&&M.length===1){for(Ge=0;Ge1&&(Kr.maxallowed!==void 0&&P===(Kr.range[0]1&&(Gr.maxallowed!==void 0&&T===(Gr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Lht(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function phe(e,t,r,n,i){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",fhe(r,n)).attr("d",i+"Z")}function ghe(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:ihe.background,stroke:ihe.defaultLine,"stroke-width":1,opacity:0}).attr("transform",fhe(t,r)).attr("d","M0,0Z")}function mhe(e,t,r,n,i,a){e.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),yhe(e,t,i,a)}function yhe(e,t,r,n){r||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function DN(e){FN.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function _he(e){ohe&&e.data&&e._context.showTips&&(k0.notifier(k0._(e,"Double-click to zoom back out"),"long"),ohe=!1)}function Pht(e,t){return"M"+(e.l-.5)+","+(t-ip-.5)+"h-3v"+(2*ip+1)+"h3ZM"+(e.r+.5)+","+(t-ip-.5)+"h3v"+(2*ip+1)+"h-3Z"}function Iht(e,t){return"M"+(t-ip-.5)+","+(e.t-.5)+"v-3h"+(2*ip+1)+"v3ZM"+(t-ip-.5)+","+(e.b+.5)+"v3h"+(2*ip+1)+"v-3Z"}function SP(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,ip)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function uhe(e,t,r,n,i){for(var a=!1,o={},s={},l,u,c,f,h=(i||{}).xaHash,d=(i||{}).yaHash,v=0;v{"use strict";var Rht=Oa(),MP=df(),Dht=gv(),Fht=Tg(),Cg=ON().makeDragBox,gd=hd().DRAGGERSIZE;EP.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){Rht.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var n=Object.keys(r._plots||{}).sort(function(a,o){if((r._plots[a].mainplot&&!0)===(r._plots[o].mainplot&&!0)){var s=a.split("y"),l=o.split("y");return s[0]===l[0]?Number(s[1]||1)-Number(l[1]||1):Number(s[0]||1)-Number(l[0]||1)}return r._plots[a].mainplot?1:-1});n.forEach(function(a){var o=r._plots[a],s=o.xaxis,l=o.yaxis;if(!o.mainplot){var u=Cg(t,o,s._offset,l._offset,s._length,l._length,"ns","ew");u.onmousemove=function(h){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===a&&t._fullLayout._plots[a]&&MP.hover(t,h,a)},MP.hover(t,h,a),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=a},u.onmouseout=function(h){t._dragging||(t._fullLayout._hoversubplot=null,Dht.unhover(t,h))},t._context.showAxisDragHandles&&(Cg(t,o,s._offset-gd,l._offset-gd,gd,gd,"n","w"),Cg(t,o,s._offset+s._length,l._offset-gd,gd,gd,"n","e"),Cg(t,o,s._offset-gd,l._offset+l._length,gd,gd,"s","w"),Cg(t,o,s._offset+s._length,l._offset+l._length,gd,gd,"s","e"))}if(t._context.showAxisDragHandles){if(a===s._mainSubplot){var c=s._mainLinePosition;s.side==="top"&&(c-=gd),Cg(t,o,s._offset+s._length*.1,c,s._length*.8,gd,"","ew"),Cg(t,o,s._offset,c,s._length*.1,gd,"","w"),Cg(t,o,s._offset+s._length*.9,c,s._length*.1,gd,"","e")}if(a===l._mainSubplot){var f=l._mainLinePosition;l.side!=="right"&&(f-=gd),Cg(t,o,f,l._offset+l._length*.1,gd,l._length*.8,"ns",""),Cg(t,o,f,l._offset+l._length*.9,gd,l._length*.1,"s",""),Cg(t,o,f,l._offset,gd,l._length*.1,"n","")}}});var i=r._hoverlayer.node();i.onmousemove=function(a){a.target=t._fullLayout._lasthover,MP.hover(t,a,r._hoversubplot)},i.onclick=function(a){a.target=t._fullLayout._lasthover,MP.click(t,a)},i.onmousedown=function(a){t._fullLayout._lasthover.onmousedown(a)},EP.updateFx(t)}};EP.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";Fht(t._draggers,r)}});var Ahe=ye((far,The)=>{"use strict";var whe=qa();The.exports=function(t){for(var r=whe.layoutArrayContainers,n=whe.layoutArrayRegexes,i=t.split("[")[0],a,o,s=0;s{"use strict";var zht=gy(),BN=y6(),FM=H1(),Oht=L6().sorterAsc,NN=qa();zM.containerArrayMatch=Ahe();var qht=zM.isAddVal=function(t){return t==="add"||zht(t)},She=zM.isRemoveVal=function(t){return t===null||t==="remove"};zM.applyContainerArrayChanges=function(t,r,n,i,a){var o=r.astr,s=NN.getComponentMethod(o,"supplyLayoutDefaults"),l=NN.getComponentMethod(o,"draw"),u=NN.getComponentMethod(o,"drawOne"),c=i.replot||i.recalc||s===BN||l===BN,f=t.layout,h=t._fullLayout;if(n[""]){Object.keys(n).length>1&&FM.warn("Full array edits are incompatible with other edits",o);var d=n[""][""];if(She(d))r.set(null);else if(Array.isArray(d))r.set(d);else return FM.warn("Unrecognized full array edit value",o,d),!0;return c?!1:(s(f,h),l(t),!0)}var v=Object.keys(n).map(Number).sort(Oht),x=r.get(),b=x||[],p=a(h,o).get(),C=[],E=-1,A=b.length,L,_,k,M,g,P,T,z;for(L=0;Lb.length-(T?0:1)){FM.warn("index out of range",o,k);continue}if(P!==void 0)g.length>1&&FM.warn("Insertion & removal are incompatible with edits to the same index.",o,k),She(P)?C.push(k):T?(P==="add"&&(P={}),b.splice(k,0,P),p&&p.splice(k,0,{})):FM.warn("Unrecognized full object edit value",o,k,P),E===-1&&(E=k);else for(_=0;_=0;L--)b.splice(C[L],1),p&&p.splice(C[L],1);if(b.length?x||r.set(b):r.set(null),c)return!1;if(s(f,h),u!==BN){var O;if(E===-1)O=v;else{for(A=Math.max(b.length,A),O=[],L=0;L=E));L++)O.push(k);for(L=E;L{"use strict";var Lhe=Eo(),dar=RO(),Phe=qa(),Ep=Dr(),OM=Mc(),Ihe=Af(),Rhe=Ca(),qM=Ihe.cleanId,Bht=Ihe.getFromTrace,UN=Phe.traceIs;kg.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ep.log("Clearing previous rejected promises from queue."),e._promises=[]};kg.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(OM.subplotsRegistry.cartesian||{}).attrRegex,i=(OM.subplotsRegistry.polar||{}).attrRegex,a=(OM.subplotsRegistry.ternary||{}).attrRegex,o=(OM.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(e);for(t=0;t3?(b.x=1.02,b.xanchor="left"):b.x<-2&&(b.x=-.02,b.xanchor="right"),b.y>3?(b.y=1.02,b.yanchor="bottom"):b.y<-2&&(b.y=-.02,b.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),Rhe.clean(e),e.template&&e.template.layout&&kg.cleanLayout(e.template.layout),e};function Y3(e,t){var r=e[t],n=t.charAt(0);r&&r!=="paper"&&(e[t]=qM(r,n,!0))}kg.cleanData=function(e){for(var t=0;t0)return e.substr(0,t)}kg.hasParent=function(e,t){for(var r=khe(t);r;){if(r in e)return!0;r=khe(r)}return!1};var Vht=["x","y","z"];kg.clearAxisTypes=function(e,t,r){for(var n=0;n{"use strict";var PP=Oa(),Ght=Eo(),Hht=tq(),xa=Dr(),Ec=xa.nestedProperty,HN=g3(),np=mne(),L0=qa(),qP=_3(),Qo=Mc(),Nv=ho(),jht=gB(),Wht=Rd(),VN=So(),Xht=Ca(),Zht=qN().initInteractions,Yht=Wp(),Kht=Ff().clearOutline,Bhe=ub().dfltConfig,kP=Mhe(),Ih=Dhe(),Au=mM(),p_=mc(),Jht=hd().AX_NAME_PATTERN,GN=0,Fhe=5;function $ht(e,t,r,n){var i;if(e=xa.getGraphDiv(e),HN.init(e),xa.isPlainObject(t)){var a=t;t=a.data,r=a.layout,n=a.config,i=a.frames}var o=HN.triggerHandler(e,"plotly_beforeplot",[t,r,n]);if(o===!1)return Promise.reject();!t&&!r&&!xa.isPlotDiv(e)&&xa.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function s(){if(i)return Gl.addFrames(e,i)}Uhe(e,n),r||(r={}),PP.select(e).classed("js-plotly-plot",!0),VN.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var l=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(Ih.cleanData(t),l?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||l)&&(e.layout=Ih.cleanLayout(r)),Qo.supplyDefaults(e);var u=e._fullLayout,c=u._has("cartesian");u._replotting=!0,(l||u._shouldCreateBgLayer)&&(bdt(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),VN.initGradients(e),VN.initPatterns(e),l&&Nv.saveShowSpikeInitial(e);var f=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;f&&Qo.doCalcdata(e);for(var h=0;h=e.data.length||i<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(i,n+1)>-1||i>=0&&t.indexOf(-e.data.length+i)>-1||i<0&&t.indexOf(e.data.length+i)>-1)throw new Error("each index in "+r+" must be unique.")}}function Vhe(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),RP(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&RP(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function idt(e,t,r){var n,i;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),n=0;n=0&&c=0&&c0&&typeof M.parts[T]!="string";)T--;var z=M.parts[T],O=M.parts[T-1]+"."+z,V=M.parts.slice(0,T).join("."),G=Ec(e.layout,V).get(),Z=Ec(n,V).get(),H=M.get();if(g!==void 0){p[k]=g,C[k]=z==="reverse"?g:ky(H);var N=qP.getLayoutValObject(n,M.parts);if(N&&N.impliedEdits&&g!==null)for(var j in N.impliedEdits)E(xa.relativeAttr(k,j),N.impliedEdits[j]);if(["width","height"].indexOf(k)!==-1)if(g){E("autosize",null);var re=k==="height"?"width":"height";E(re,n[re])}else n[k]=e._initialAutoSize[k];else if(k==="autosize")E("width",g?null:n.width),E("height",g?null:n.height);else if(O.match(Jhe))_(O),Ec(n,V+"._inputRange").set(null);else if(O.match($he)){_(O),Ec(n,V+"._inputRange").set(null);var oe=Ec(n,V).get();oe._inputDomain&&(oe._input.domain=oe._inputDomain.slice())}else O.match(sdt)&&Ec(n,V+"._inputDomain").set(null);if(z==="type"){L=G;var _e=Z.type==="linear"&&g==="log",Me=Z.type==="log"&&g==="linear";if(_e||Me){if(!L||!L.range)E(V+".autorange",!0);else if(Z.autorange)_e&&(L.range=L.range[1]>L.range[0]?[1,2]:[2,1]);else{var ke=L.range[0],me=L.range[1];_e?(ke<=0&&me<=0&&E(V+".autorange",!0),ke<=0?ke=me/1e6:me<=0&&(me=ke/1e6),E(V+".range[0]",Math.log(ke)/Math.LN10),E(V+".range[1]",Math.log(me)/Math.LN10)):(E(V+".range[0]",Math.pow(10,ke)),E(V+".range[1]",Math.pow(10,me)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[M.parts[0]]&&M.parts[1]==="radialaxis"&&delete n[M.parts[0]]._subplot.viewInitial["radialaxis.range"],L0.getComponentMethod("annotations","convertCoords")(e,Z,g,E),L0.getComponentMethod("images","convertCoords")(e,Z,g,E)}else E(V+".autorange",!0),E(V+".range",null);Ec(n,V+"._inputRange").set(null)}else if(z.match(Jht)){var ie=Ec(n,k).get(),Se=(g||{}).type;(!Se||Se==="-")&&(Se="linear"),L0.getComponentMethod("annotations","convertCoords")(e,ie,Se,E),L0.getComponentMethod("images","convertCoords")(e,ie,Se,E)}var Le=kP.containerArrayMatch(k);if(Le){c=Le.array,f=Le.index;var Ae=Le.property,Fe=N||{editType:"calc"};f!==""&&Ae===""&&(kP.isAddVal(g)?C[k]=null:kP.isRemoveVal(g)?C[k]=(Ec(r,c).get()||[])[f]:xa.warn("unrecognized full object value",t)),p_.update(b,Fe),u[c]||(u[c]={});var Pe=u[c][f];Pe||(Pe=u[c][f]={}),Pe[Ae]=g,delete t[k]}else z==="reverse"?(G.range?G.range.reverse():(E(V+".autorange",!0),G.range=[1,0]),Z.autorange?b.calc=!0:b.plot=!0):(k==="dragmode"&&(g===!1&&H!==!1||g!==!1&&H===!1)||n._has("scatter-like")&&n._has("regl")&&k==="dragmode"&&(g==="lasso"||g==="select")&&!(H==="lasso"||H==="select")?b.plot=!0:N?p_.update(b,N):b.calc=!0,M.set(g))}}for(c in u){var ge=kP.applyContainerArrayChanges(e,a(r,c),u[c],b,a);ge||(b.plot=!0)}for(var De in A){L=Nv.getFromId(e,De);var ce=L&&L._constraintGroup;if(ce){b.calc=!0;for(var Ze in ce)A[Ze]||(Nv.getFromId(e,Ze)._constraintShrinkable=!0)}}(ede(e)||t.height||t.width)&&(b.plot=!0);var ut=n.shapes;for(f=0;f1;)if(n.pop(),r=Ec(t,n.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function cdt(e,t){for(var r=0;r=i.length?i[0]:i[u]:i}function s(u){return Array.isArray(a)?u>=a.length?a[0]:a[u]:a}function l(u,c){var f=0;return function(){if(u&&++f===c)return u()}}return new Promise(function(u,c){function f(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var z=n._frameQueue.pop();z.onInterrupt&&z.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(z){if(z.length!==0){for(var O=0;On._timeToNext&&v()};z()}var b=0;function p(z){return Array.isArray(i)?b>=i.length?z.transitionOpts=i[b]:z.transitionOpts=i[0]:z.transitionOpts=i,b++,z}var C,E,A=[],L=t==null,_=Array.isArray(t),k=!L&&!_&&xa.isPlainObject(t);if(k)A.push({type:"object",data:p(xa.extendFlat({},t))});else if(L||["string","number"].indexOf(typeof t)!==-1)for(C=0;C0&&PP)&&T.push(E);A=T}}A.length>0?h(A):(e.emit("plotly_animated"),u())})}function mdt(e,t,r){if(e=xa.getGraphDiv(e),t==null)return Promise.resolve();if(!xa.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,i,a,o,s=e._transitionData._frames,l=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var u=s.length+t.length*2,c=[],f={};for(n=t.length-1;n>=0;n--)if(xa.isPlainObject(t[n])){var h=t[n].name,d=(l[h]||f[h]||{}).name,v=t[n].name,x=l[d]||f[d];d&&v&&typeof v=="number"&&x&&GNM.index?-1:k.index=0;n--){if(i=c[n].frame,typeof i.name=="number"&&xa.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!i.name)for(;l[i.name="frame "+e._transitionData._counter++];);if(l[i.name]){for(a=0;a=0;r--)n=t[r],a.push({type:"delete",index:n}),o.unshift({type:"insert",index:n,value:i[n]});var s=Qo.modifyFrames,l=Qo.modifyFrames,u=[e,o],c=[e,a];return np&&np.add(e,s,u,l,c),Qo.modifyFrames(e,a)}function _dt(e){e=xa.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return Qo.cleanPlot([],{},r,t),Qo.purge(e),HN.purge(e),t._container&&t._container.remove(),delete e._context,e}function xdt(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!xa.equalDomRects(r,t._lastBBox)){var n=t._invTransform=xa.inverseTransformMatrix(xa.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),t._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),t._lastBBox=r}}function bdt(e){var t=PP.select(e),r=e._fullLayout;if(r._calcInverseTransform=xdt,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var n={};PP.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),r._uid=xa.randstr(n)}r._paperdiv.selectAll(".main-svg").attr(Yht.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var i=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=i.append("g").classed("imagelayer",!0),r._shapeLowerLayer=i.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var a=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=a.append("g").classed("imagelayer",!0),r._shapeUpperLayer=a.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Gl.animate=gdt;Gl.addFrames=mdt;Gl.deleteFrames=ydt;Gl.addTraces=Xhe;Gl.deleteTraces=Zhe;Gl.extendTraces=jhe;Gl.moveTraces=jN;Gl.prependTraces=Whe;Gl.newPlot=rdt;Gl._doPlot=$ht;Gl.purge=_dt;Gl.react=ddt;Gl.redraw=tdt;Gl.relayout=BM;Gl.restyle=DP;Gl.setPlotConfig=Qht;Gl.update=zP;Gl._guiRelayout=XN(BM);Gl._guiRestyle=XN(DP);Gl._guiUpdate=XN(zP);Gl._storeDirectGUIEdit=odt});var Ly=ye(Mm=>{"use strict";var wdt=qa();Mm.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Mm.getRedrawFunc=function(e){return function(){wdt.getComponentMethod("colorbar","draw")(e)}};Mm.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Mm.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var tde=window.URL||window.webkitURL;Mm.createObjectURL=function(e){return tde.createObjectURL(e)};Mm.revokeObjectURL=function(e){return tde.revokeObjectURL(e)};Mm.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=Tdt(window.atob(e));return new window.Blob([r],{type:"image/"+t})};Mm.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function Tdt(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;i{"use strict";var YN=Oa(),yar=Dr(),Adt=So(),Sdt=Ca(),_ar=Wp(),ZN=/"/g,UM="TOBESTRIPPED",Mdt=new RegExp('("'+UM+")|("+UM+'")',"g");function Edt(e){var t=YN.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,function(n){return n==="<"?"<":n==="&rt;"?">":n.indexOf("<")!==-1||n.indexOf(">")!==-1?"":t.html(n).text()});return t.remove(),r}function Cdt(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}rde.exports=function(t,r,n){var i=t._fullLayout,a=i._paper,o=i._toppaper,s=i.width,l=i.height,u;a.insert("rect",":first-child").call(Adt.setRect,0,0,s,l).call(Sdt.fill,i.paper_bgcolor);var c=i._basePlotModules||[];for(u=0;u{"use strict";var kdt=Dr(),Ldt=vb().EventEmitter,VM=Ly();function Pdt(e){var t=e.emitter||new Ldt,r=new Promise(function(n,i){var a=window.Image,o=e.svg,s=e.format||"png",l=e.canvas,u=e.scale||1,c=e.width||300,f=e.height||150,h=u*c,d=u*f,v=l.getContext("2d",{willReadFrequently:!0}),x=new a,b,p;s==="svg"||kdt.isSafari()?p=VM.encodeSVG(o):(b=VM.createBlob(o,"svg"),p=VM.createObjectURL(b)),l.width=h,l.height=d,x.onload=function(){var C;switch(b=null,VM.revokeObjectURL(p),s!=="svg"&&v.drawImage(x,0,0,h,d),s){case"jpeg":C=l.toDataURL("image/jpeg");break;case"png":C=l.toDataURL("image/png");break;case"webp":C=l.toDataURL("image/webp");break;case"svg":C=p;break;default:var E="Image format is not jpeg, png, svg or webp.";if(i(new Error(E)),!e.promise)return t.emit("error",E)}n(C),e.promise||t.emit("success",C)},x.onerror=function(C){if(b=null,VM.revokeObjectURL(p),i(C),!e.promise)return t.emit("error",C)},x.src=p});return e.promise?r:t}ide.exports=Pdt});var JN=ye((war,ode)=>{"use strict";var nde=Eo(),ade=NP(),Idt=Mc(),Em=Dr(),GM=Ly(),Rdt=UP(),Ddt=VP(),Fdt=r6().version,KN={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function zdt(e,t){t=t||{};var r,n,i,a;Em.isPlainObject(e)?(r=e.data||[],n=e.layout||{},i=e.config||{},a={}):(e=Em.getGraphDiv(e),r=Em.extendDeep([],e.data),n=Em.extendDeep({},e.layout),i=e._context,a=e._fullLayout||{});function o(_){return!(_ in t)||Em.validate(t[_],KN[_])}if(!o("width")&&t.width!==null||!o("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Em.join2(KN.format.values,", "," or ")+".");var s={};function l(_,k){return Em.coerce(t,s,KN,_,k)}var u=l("format"),c=l("width"),f=l("height"),h=l("scale"),d=l("setBackground"),v=l("imageDataOnly"),x=document.createElement("div");x.style.position="absolute",x.style.left="-5000px",document.body.appendChild(x);var b=Em.extendFlat({},n);c?b.width=c:t.width===null&&nde(a.width)&&(b.width=a.width),f?b.height=f:t.height===null&&nde(a.height)&&(b.height=a.height);var p=Em.extendFlat({},i,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),C=GM.getRedrawFunc(x);function E(){return new Promise(function(_){setTimeout(_,GM.getDelay(x._fullLayout))})}function A(){return new Promise(function(_,k){var M=Rdt(x,u,h),g=x._fullLayout.width,P=x._fullLayout.height;function T(){ade.purge(x),document.body.removeChild(x)}if(u==="full-json"){var z=Idt.graphJson(x,!1,"keepdata","object",!0,!0);return z.version=Fdt,z=JSON.stringify(z),T(),_(v?z:GM.encodeJSON(z))}if(T(),u==="svg")return _(v?M:GM.encodeSVG(M));var O=document.createElement("canvas");O.id=Em.randstr(),Ddt({format:u,width:g,height:P,scale:h,canvas:O,svg:M,promise:!0}).then(_).catch(k)})}function L(_){return v?_.replace(GM.IMAGE_URL_PREFIX,""):_}return new Promise(function(_,k){ade.newPlot(x,r,b,p).then(C).then(E).then(A).then(function(M){_(L(M))}).catch(function(M){k(M)})})}ode.exports=zdt});var ude=ye((Tar,lde)=>{"use strict";var P0=Dr(),Odt=Mc(),qdt=_3(),Bdt=ub().dfltConfig,Lg=P0.isPlainObject,Vb=Array.isArray,$N=P0.isArrayOrTypedArray;lde.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var n=qdt.get(),i=[],a={_context:P0.extendFlat({},Bdt)},o,s;Vb(t)?(a.data=P0.extendDeep([],t),o=t):(a.data=[],o=[],i.push(md("array","data"))),Lg(r)?(a.layout=P0.extendDeep({},r),s=r):(a.layout={},s={},arguments.length>1&&i.push(md("object","layout"))),Odt.supplyDefaults(a);for(var l=a._fullData,u=o.length,c=0;cf.length&&n.push(md("unused",i,u.concat(f.length)));var p=f.length,C=Array.isArray(b);C&&(p=Math.min(p,b.length));var E,A,L,_,k;if(h.dimensions===2)for(A=0;Af[A].length&&n.push(md("unused",i,u.concat(A,f[A].length)));var M=f[A].length;for(E=0;E<(C?Math.min(M,b[A].length):M);E++)L=C?b[A][E]:b,_=c[A][E],k=f[A][E],P0.validate(_,L)?k!==_&&k!==+_&&n.push(md("dynamic",i,u.concat(A,E),_,k)):n.push(md("value",i,u.concat(A,E),_))}else n.push(md("array",i,u.concat(A),c[A]));else for(A=0;A{"use strict";var Wdt=Dr(),HP=Ly();function Xdt(e,t,r){var n=document.createElement("a"),i="download"in n,a=new Promise(function(o,s){var l,u;if(i)return l=HP.createBlob(e,r),u=HP.createObjectURL(l),n.href=u,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),HP.revokeObjectURL(u),l=null,o(t);if(Wdt.isSafari()){var c=r==="svg"?",":";base64,";return HP.octetStream(c+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}cde.exports=Xdt});var QN=ye((Mar,dde)=>{"use strict";var hde=Dr(),Zdt=JN(),Ydt=fde(),Sar=Ly();function Kdt(e,t){var r;return hde.isPlainObject(e)||(r=hde.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(n,i){r&&r._snapshotInProgress&&i(new Error("Snapshotting already in progress.")),r&&(r._snapshotInProgress=!0);var a=Zdt(e,t),o=t.filename||e.fn||"newplot";o+="."+t.format.replace("-","."),a.then(function(s){return r&&(r._snapshotInProgress=!1),Ydt(s,o,t.format)}).then(function(s){n(s)}).catch(function(s){r&&(r._snapshotInProgress=!1),i(s)})})}dde.exports=Kdt});var yde=ye(eU=>{"use strict";var Cp=Dr(),kp=Cp.isPlainObject,vde=_3(),pde=Mc(),Jdt=Vl(),gde=pl(),mde=ub().dfltConfig;eU.makeTemplate=function(e){e=Cp.isPlainObject(e)?e:Cp.getGraphDiv(e),e=Cp.extendDeep({_context:mde},{data:e.data,layout:e.layout}),pde.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var n={data:{},layout:{}};t.forEach(function(d){var v={};HM(d,v,Qdt.bind(null,d));var x=Cp.coerce(d,{},Jdt,"type"),b=n.data[x];b||(b=n.data[x]=[]),b.push(v)}),HM(r,n.layout,$dt.bind(null,r)),delete n.layout.template;var i=r.template;if(kp(i)){var a=i.layout,o,s,l,u,c,f;kp(a)&&jP(a,n.layout);var h=i.data;if(kp(h)){for(s in n.data)if(l=h[s],Array.isArray(l)){for(c=n.data[s],f=c.length,u=l.length,o=0;op?o.push({code:"unused",traceType:d,templateCount:b,dataCount:p}):p>b&&o.push({code:"reused",traceType:d,templateCount:b,dataCount:p})}}function C(E,A){for(var L in E)if(L.charAt(0)!=="_"){var _=E[L],k=I0(E,L,A);kp(_)?(Array.isArray(E)&&_._template===!1&&_.templateitemname&&o.push({code:"missing",path:k,templateitemname:_.templateitemname}),C(_,k)):Array.isArray(_)&&evt(_)&&C(_,k)}}if(C({data:l,layout:s},""),o.length)return o.map(tvt)};function evt(e){for(var t=0;t{"use strict";var Qh=NP();Qc._doPlot=Qh._doPlot;Qc.newPlot=Qh.newPlot;Qc.restyle=Qh.restyle;Qc.relayout=Qh.relayout;Qc.redraw=Qh.redraw;Qc.update=Qh.update;Qc._guiRestyle=Qh._guiRestyle;Qc._guiRelayout=Qh._guiRelayout;Qc._guiUpdate=Qh._guiUpdate;Qc._storeDirectGUIEdit=Qh._storeDirectGUIEdit;Qc.react=Qh.react;Qc.extendTraces=Qh.extendTraces;Qc.prependTraces=Qh.prependTraces;Qc.addTraces=Qh.addTraces;Qc.deleteTraces=Qh.deleteTraces;Qc.moveTraces=Qh.moveTraces;Qc.purge=Qh.purge;Qc.addFrames=Qh.addFrames;Qc.deleteFrames=Qh.deleteFrames;Qc.animate=Qh.animate;Qc.setPlotConfig=Qh.setPlotConfig;var rvt=FS().getGraphDiv,ivt=nP().eraseActiveShape;Qc.deleteActiveShape=function(e){return ivt(rvt(e))};Qc.toImage=JN();Qc.validate=ude();Qc.downloadImage=QN();var _de=yde();Qc.makeTemplate=_de.makeTemplate;Qc.validateTemplate=_de.validateTemplate});var K3=ye((kar,bde)=>{"use strict";var tU=Dr(),nvt=qa();bde.exports=function(t,r,n,i){var a=i("x"),o=i("y"),s,l=nvt.getComponentMethod("calendars","handleTraceDefaults");if(l(t,r,["x","y"],n),a){var u=tU.minRowLength(a);o?s=Math.min(u,tU.minRowLength(o)):(s=u,i("y0"),i("dy"))}else{if(!o)return 0;s=tU.minRowLength(o),i("x0"),i("dx")}return r._length=s,s}});var Pg=ye((Lar,Ade)=>{"use strict";var wde=Dr().dateTick0,avt=hs(),ovt=avt.ONEWEEK;function Tde(e,t){return e%ovt===0?wde(t,1):wde(t,0)}Ade.exports=function(t,r,n,i,a){if(a||(a={x:!0,y:!0}),a.x){var o=i("xperiod");o&&(i("xperiod0",Tde(o,r.xcalendar)),i("xperiodalignment"))}if(a.y){var s=i("yperiod");s&&(i("yperiod0",Tde(s,r.ycalendar)),i("yperiodalignment"))}}});var Ede=ye((Par,Mde)=>{"use strict";var Sde=["orientation","groupnorm","stackgaps"];Mde.exports=function(t,r,n,i){var a=n._scatterStackOpts,o=i("stackgroup");if(o){var s=r.xaxis+r.yaxis,l=a[s];l||(l=a[s]={});var u=l[o],c=!1;u?u.traces.push(r):(u=l[o]={traceIndices:[],traces:[r]},c=!0);for(var f={orientation:r.x&&!r.y?"h":"v"},h=0;h{"use strict";var Cde=Ca(),kde=Dv().hasColorscale,Lde=Jh(),svt=Ru();Pde.exports=function(t,r,n,i,a,o){var s=svt.isBubble(t),l=(t.line||{}).color,u;if(o=o||{},l&&(n=l),a("marker.symbol"),a("marker.opacity",s?.7:1),a("marker.size"),o.noAngle||(a("marker.angle"),o.noAngleRef||a("marker.angleref"),o.noStandOff||a("marker.standoff")),a("marker.color",n),kde(t,"marker")&&Lde(t,r,i,a,{prefix:"marker.",cLetter:"c"}),o.noSelect||(a("selected.marker.color"),a("unselected.marker.color"),a("selected.marker.size"),a("unselected.marker.size")),o.noLine||(l&&!Array.isArray(l)&&r.marker.color!==l?u=l:s?u=Cde.background:u=Cde.defaultLine,a("marker.line.color",u),kde(t,"marker.line")&&Lde(t,r,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width",s?1:0)),s&&(a("marker.sizeref"),a("marker.sizemin"),a("marker.sizemode")),o.gradient){var c=a("marker.gradient.type");c!=="none"&&a("marker.gradient.color")}}});var R0=ye((Rar,Ide)=>{"use strict";var lvt=Dr().isArrayOrTypedArray,uvt=Dv().hasColorscale,cvt=Jh();Ide.exports=function(t,r,n,i,a,o){o||(o={});var s=(t.marker||{}).color;if(s&&s._inputArray&&(s=s._inputArray),a("line.color",n),uvt(t,"line"))cvt(t,r,i,a,{prefix:"line.",cLetter:"c"});else{var l=(lvt(s)?!1:s)||n;a("line.color",l)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var J3=ye((Dar,Rde)=>{"use strict";Rde.exports=function(t,r,n){var i=n("line.shape");i==="spline"&&n("line.smoothing")}});var D0=ye((Far,Dde)=>{"use strict";var fvt=Dr();Dde.exports=function(e,t,r,n,i){i=i||{},n("textposition"),fvt.coerceFont(n,"textfont",i.font||r.font,i),i.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var Ig=ye((zar,zde)=>{"use strict";var XP=Ca(),Fde=Dr().isArrayOrTypedArray;function hvt(e){for(var t=XP.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var Ode=Dr(),dvt=qa(),vvt=vf(),pvt=Sm(),$3=Ru(),gvt=K3(),mvt=Pg(),yvt=Ede(),_vt=$p(),xvt=R0(),qde=J3(),bvt=D0(),wvt=Ig(),Tvt=Dr().coercePattern;Bde.exports=function(t,r,n,i){function a(d,v){return Ode.coerce(t,r,vvt,d,v)}var o=gvt(t,r,i,a);if(o||(r.visible=!1),!!r.visible){mvt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=yvt(t,r,i,a);i.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var l=!s&&o{"use strict";var Avt=Bb().getAxisGroup;Ude.exports=function(t,r,n,i,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],l=Avt(n,s)+o,u=n._alignmentOpts||{},c=i("alignmentgroup"),f=u[l];f||(f=u[l]={});var h=f[c];h?h.traces.push(r):h=f[c]={traces:[r],alignmentIndex:Object.keys(f).length,offsetGroups:{}};var d=i("offsetgroup")||"",v=h.offsetGroups,x=v[d];r._offsetIndex=0,(a!=="group"||d)&&(x||(x=v[d]={offsetIndex:Object.keys(v).length}),r._offsetIndex=x.offsetIndex)}});var rU=ye((Bar,Vde)=>{"use strict";var Svt=Dr(),Mvt=Gb(),Evt=vf();Vde.exports=function(t,r){var n,i,a,o=r.scattermode;function s(h){return Svt.coerce(i._input,i,Evt,h)}if(r.scattermode==="group")for(a=0;a=0;c--){var f=t[c];if(f.type==="scatter"&&f.xaxis===l.xaxis&&f.yaxis===l.yaxis){f.opacity=void 0;break}}}}}});var Hde=ye((Nar,Gde)=>{"use strict";var Cvt=Dr(),kvt=H6();Gde.exports=function(e,t){function r(i,a){return Cvt.coerce(e,t,kvt,i,a)}var n=t.barmode==="group";t.scattermode==="group"&&r("scattergap",n?t.bargap:.2)}});var Rg=ye((Uar,Wde)=>{"use strict";var Lvt=Eo(),jde=Dr(),Pvt=jde.dateTime2ms,ZP=jde.incrementMonth,Ivt=hs(),Rvt=Ivt.ONEAVGMONTH;Wde.exports=function(t,r,n,i){if(r.type!=="date")return{vals:i};var a=t[n+"periodalignment"];if(!a)return{vals:i};var o=t[n+"period"],s;if(Lvt(o)){if(o=+o,o<=0)return{vals:i}}else if(typeof o=="string"&&o.charAt(0)==="M"){var l=+o.substring(1);if(l>0&&Math.round(l)===l)s=l;else return{vals:i}}for(var u=r.calendar,c=a==="start",f=a==="end",h=t[n+"period0"],d=Pvt(h,u)||0,v=[],x=[],b=[],p=i.length,C=0;CE;)_=ZP(_,-s,u);for(;_<=E;)_=ZP(_,s,u);L=ZP(_,-s,u)}else{for(A=Math.round((E-d)/o),_=d+A*o;_>E;)_-=o;for(;_<=E;)_+=o;L=_-o}v[C]=c?L:f?_:(L+_)/2,x[C]=L,b[C]=_}return{vals:v,starts:x,ends:b}}});var F0=ye((Var,Zde)=>{"use strict";var iU=Dv().hasColorscale,nU=Fv(),Xde=Ru();Zde.exports=function(t,r){Xde.hasLines(r)&&iU(r,"line")&&nU(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),Xde.hasMarkers(r)&&(iU(r,"marker")&&nU(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),iU(r,"marker.line")&&nU(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Cm=ye((Gar,Yde)=>{"use strict";var Yf=Dr();Yde.exports=function(t,r){for(var n=0;n{"use strict";var Kde=Dr();Jde.exports=function(t,r){Kde.isArrayOrTypedArray(r.selectedpoints)&&Kde.tagSelected(t,r)}});var O0=ye((jar,nve)=>{"use strict";var $de=Eo(),oU=Dr(),jM=ho(),Qde=Rg(),aU=hs().BADNUM,sU=Ru(),Dvt=F0(),Fvt=Cm(),zvt=z0();function Ovt(e,t){var r=e._fullLayout,n=t._xA=jM.getFromId(e,t.xaxis||"x","x"),i=t._yA=jM.getFromId(e,t.yaxis||"y","y"),a=n.makeCalcdata(t,"x"),o=i.makeCalcdata(t,"y"),s=Qde(t,n,"x",a),l=Qde(t,i,"y",o),u=s.vals,c=l.vals,f=t._length,h=new Array(f),d=t.ids,v=lU(t,r,n,i),x=!1,b,p,C,E,A,L;rve(r,t);var _="x",k="y",M;if(v)oU.pushUnique(v.traceIndices,t.index),b=v.orientation==="v",b?(k="s",M="x"):(_="s",M="y"),A=v.stackgaps==="interpolate";else{var g=tve(t,f);eve(e,t,n,i,u,c,g)}var P=!!t.xperiodalignment,T=!!t.yperiodalignment;for(p=0;pp&&h[E].gap;)E--;for(L=h[E].s,C=h.length-1;C>E;C--)h[C].s=L;for(;p{"use strict";ave.exports=YP;var qvt=Dr().distinctVals;function YP(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,n=t.posAxis._id.charAt(0),i=[],a=0;a{"use strict";var q0=Eo(),g_=Dr().isArrayOrTypedArray,Q3=hs().BADNUM,Bvt=qa(),WM=ho(),Nvt=Bb().getAxisGroup,KP=ove();function Uvt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;ul+o||!q0(s))}for(var c=0;c{"use strict";var fve=O0(),hve=Hb().setGroupPositions;function Qvt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;ug[c]&&c{"use strict";var tpt=So(),yve=hs(),XM=yve.BADNUM,_ve=yve.LOG_CLIP,pve=_ve+.5,gve=_ve-.5,JP=Dr(),rpt=JP.segmentsIntersect,mve=JP.constrain,vU=Sm();xve.exports=function(t,r){var n=r.trace||{},i=r.xaxis,a=r.yaxis,o=i.type==="log",s=a.type==="log",l=i._length,u=a._length,c=r.backoff,f=n.marker,h=r.connectGaps,d=r.baseTolerance,v=r.shape,x=v==="linear",b=n.fill&&n.fill!=="none",p=[],C=vU.minTolerance,E=t.length,A=new Array(E),L=0,_,k,M,g,P,T,z,O,V,G,Z,H,N,j,re,oe;function _e(dt){var Ge=t[dt];if(!Ge)return!1;var Qe=r.linearized?i.l2p(Ge.x):i.c2p(Ge.x),je=r.linearized?a.l2p(Ge.y):a.c2p(Ge.y);if(Qe===XM){if(o&&(Qe=i.c2p(Ge.x,!0)),Qe===XM)return!1;s&&je===XM&&(Qe*=Math.abs(i._m*u*(i._m>0?pve:gve)/(a._m*l*(a._m>0?pve:gve)))),Qe*=1e3}if(je===XM){if(s&&(je=a.c2p(Ge.y,!0)),je===XM)return!1;je*=1e3}return[Qe,je]}function Me(dt,Ge,Qe,je){var Je=Qe-dt,xt=je-Ge,Ie=.5-dt,xe=.5-Ge,Ce=Je*Je+xt*xt,pt=Je*Ie+xt*xe;if(pt>0&&pt1||Math.abs(Ie.y-Qe[0][1])>1)&&(Ie=[Ie.x,Ie.y],je&&Se(Ie,dt)Fe||dt[1]ge)return[mve(dt[0],Ae,Fe),mve(dt[1],Pe,ge)]}function Ut(dt,Ge){if(dt[0]===Ge[0]&&(dt[0]===Ae||dt[0]===Fe)||dt[1]===Ge[1]&&(dt[1]===Pe||dt[1]===ge))return!0}function $t(dt,Ge){var Qe=[],je=Gt(dt),Je=Gt(Ge);return je&&Je&&Ut(je,Je)||(je&&Qe.push(je),Je&&Qe.push(Je)),Qe}function sr(dt,Ge,Qe){return function(je,Je){var xt=Gt(je),Ie=Gt(Je),xe=[];if(xt&&Ie&&Ut(xt,Ie))return xe;xt&&xe.push(xt),Ie&&xe.push(Ie);var Ce=2*JP.constrain((je[dt]+Je[dt])/2,Ge,Qe)-((xt||je)[dt]+(Ie||Je)[dt]);if(Ce){var pt;xt&&Ie?pt=Ce>0==xt[dt]>Ie[dt]?xt:Ie:pt=xt||Ie,pt[dt]+=Ce}return xe}}var Tr;v==="linear"||v==="spline"?Tr=lt:v==="hv"||v==="vh"?Tr=$t:v==="hvh"?Tr=sr(0,Ae,Fe):v==="vhv"&&(Tr=sr(1,Pe,ge));function ur(dt,Ge){var Qe=Ge[0]-dt[0],je=(Ge[1]-dt[1])/Qe,Je=(dt[1]*Ge[0]-Ge[1]*dt[0])/Qe;return Je>0?[je>0?Ae:Fe,ge]:[je>0?Fe:Ae,Pe]}function $e(dt){var Ge=dt[0],Qe=dt[1],je=Ge===A[L-1][0],Je=Qe===A[L-1][1];if(!(je&&Je))if(L>1){var xt=Ge===A[L-2][0],Ie=Qe===A[L-2][1];je&&(Ge===Ae||Ge===Fe)&&xt?Ie?L--:A[L-1]=dt:Je&&(Qe===Pe||Qe===ge)&&Ie?xt?L--:A[L-1]=dt:A[L++]=dt}else A[L++]=dt}function Mt(dt){A[L-1][0]!==dt[0]&&A[L-1][1]!==dt[1]&&$e([ut,gt]),$e(dt),Kt=null,ut=gt=0}var Ct=JP.isArrayOrTypedArray(f);function Vt(dt){if(dt&&c&&(dt.i=_,dt.d=t,dt.trace=n,dt.marker=Ct?f[dt.i]:f,dt.backoff=c),ke=dt[0]/l,me=dt[1]/u,ce=dt[0]Fe?Fe:0,Ze=dt[1]ge?ge:0,ce||Ze){if(!L)A[L++]=[ce||dt[0],Ze||dt[1]];else if(Kt){var Ge=Tr(Kt,dt);Ge.length>1&&(Mt(Ge[0]),A[L++]=Ge[1])}else st=Tr(A[L-1],dt)[0],A[L++]=st;var Qe=A[L-1];ce&&Ze&&(Qe[0]!==ce||Qe[1]!==Ze)?(Kt&&(ut!==ce&>!==Ze?$e(ut&>?ur(Kt,dt):[ut||ce,gt||Ze]):ut&>&&$e([ut,gt])),$e([ce,Ze])):ut-ce&>-Ze&&$e([ce||ut,Ze||gt]),Kt=dt,ut=ce,gt=Ze}else Kt&&Mt(Tr(Kt,dt)[0]),A[L++]=dt}for(_=0;_ie(T,It))break;M=T,N=V[0]*O[0]+V[1]*O[1],N>Z?(Z=N,g=T,z=!1):N=t.length||!T)break;Vt(T),k=T}}Kt&&$e([ut||Kt[0],gt||Kt[1]]),p.push(A.slice(0,L))}var Ot=v.slice(v.length-1);if(c&&Ot!=="h"&&Ot!=="v"){for(var bt=!1,rr=-1,lr=[],wr=0;wr{"use strict";var bve={tonextx:1,tonexty:1,tonext:1};wve.exports=function(t,r,n){var i,a,o,s,l,u={},c=!1,f=-1,h=0,d=-1;for(a=0;a=0?l=d:(l=d=h,h++),l{"use strict";var Dg=Oa(),ipt=qa(),ZM=Dr(),tT=ZM.ensureSingle,Ave=ZM.identity,Kf=So(),rT=Ru(),npt=pU(),apt=gU(),$P=TM().tester;Sve.exports=function(t,r,n,i,a,o){var s,l,u=!a,c=!!a&&a.duration>0,f=apt(t,r,n);if(s=i.selectAll("g.trace").data(f,function(d){return d[0].trace.uid}),s.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),s.order(),opt(t,s,r),c){o&&(l=o());var h=Dg.transition().duration(a.duration).ease(a.easing).each("end",function(){l&&l()}).each("interrupt",function(){l&&l()});h.each(function(){i.selectAll("g.trace").each(function(d,v){Tve(t,v,r,d,f,this,a)})})}else s.each(function(d,v){Tve(t,v,r,d,f,this,a)});u&&s.exit().remove(),i.selectAll("path:not([d])").remove()};function opt(e,t,r){t.each(function(n){var i=tT(Dg.select(this),"g","fills");Kf.setClipUrl(i,r.layerClipId,e);var a=n[0].trace,o=[];a._ownfill&&o.push("_ownFill"),a._nexttrace&&o.push("_nextFill");var s=i.selectAll("g").data(o,Ave);s.enter().append("g"),s.exit().each(function(l){a[l]=null}).remove(),s.order().each(function(l){a[l]=tT(Dg.select(this),"path","js-fill")})})}function Tve(e,t,r,n,i,a,o){var s=e._context.staticPlot,l;spt(e,t,r,n,i);var u=!!o&&o.duration>0;function c(sr){return u?sr.transition():sr}var f=r.xaxis,h=r.yaxis,d=n[0].trace,v=d.line,x=Dg.select(a),b=tT(x,"g","errorbars"),p=tT(x,"g","lines"),C=tT(x,"g","points"),E=tT(x,"g","text");if(ipt.getComponentMethod("errorbars","plot")(e,b,r,o),d.visible!==!0)return;c(x).style("opacity",d.opacity);var A,L,_=d.fill.charAt(d.fill.length-1);_!=="x"&&_!=="y"&&(_="");var k,M;_==="y"?(k=1,M=h.c2p(0,!0)):_==="x"&&(k=0,M=f.c2p(0,!0)),n[0][r.isRangePlot?"nodeRangePlot3":"node3"]=x;var g="",P=[],T=d._prevtrace,z=null,O=null;T&&(g=T._prevRevpath||"",L=T._nextFill,P=T._ownPolygons,z=T._fillsegments,O=T._fillElement);var V,G,Z="",H="",N,j,re,oe,_e,Me,ke=[];d._polygons=[];var me=[],ie=[],Se=ZM.noop;if(A=d._ownFill,rT.hasLines(d)||d.fill!=="none"){L&&L.datum(n),["hv","vh","hvh","vhv"].indexOf(v.shape)!==-1?(N=Kf.steps(v.shape),j=Kf.steps(v.shape.split("").reverse().join(""))):v.shape==="spline"?N=j=function(sr){var Tr=sr[sr.length-1];return sr.length>1&&sr[0][0]===Tr[0]&&sr[0][1]===Tr[1]?Kf.smoothclosed(sr.slice(1),v.smoothing):Kf.smoothopen(sr,v.smoothing)}:N=j=function(sr){return"M"+sr.join("L")},re=function(sr){return j(sr.reverse())},ie=npt(n,{xaxis:f,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(v.width||1,3)/4,shape:v.shape,backoff:v.backoff,simplify:v.simplify,fill:d.fill}),me=new Array(ie.length);var Le=0;for(l=0;l=s[0]&&x.x<=s[1]&&x.y>=l[0]&&x.y<=l[1]}),h=Math.ceil(f.length/c),d=0;i.forEach(function(x,b){var p=x[0].trace;rT.hasMarkers(p)&&p.marker.maxdisplayed>0&&b{"use strict";Mve.exports={container:"marker",min:"cmin",max:"cmax"}});var eI=ye((Qar,Eve)=>{"use strict";var QP=ho();Eve.exports=function(t,r,n){var i={},a={_fullLayout:n},o=QP.getFromTrace(a,r,"x"),s=QP.getFromTrace(a,r,"y"),l=t.orig_x;l===void 0&&(l=t.x);var u=t.orig_y;return u===void 0&&(u=t.y),i.xLabel=QP.tickText(o,o.c2l(l),!0).text,i.yLabel=QP.tickText(s,s.c2l(u),!0).text,i}});var ap=ye((eor,Cve)=>{"use strict";var mU=Oa(),nT=So(),lpt=qa();function upt(e){var t=mU.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var n=mU.select(this),i=r.trace||r[0].trace;yU(n,i,e)}),t.selectAll("g.text").each(function(r){var n=mU.select(this),i=r.trace||r[0].trace;_U(n,i,e)}),t.selectAll("g.trace path.js-line").call(nT.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(nT.fillGroupStyle,e,!1),lpt.getComponentMethod("errorbars","style")(t)}function yU(e,t,r){nT.pointStyle(e.selectAll("path.point"),t,r)}function _U(e,t,r){nT.textPointStyle(e.selectAll("text"),t,r)}function cpt(e,t,r){var n=t[0].trace;n.selectedpoints?(nT.selectedPointStyle(r.selectAll("path.point"),n),nT.selectedTextStyle(r.selectAll("text"),n)):(yU(r,n,e),_U(r,n,e))}Cve.exports={style:upt,stylePoints:yU,styleText:_U,styleOnSelect:cpt}});var oT=ye((tor,kve)=>{"use strict";var aT=Ca(),fpt=Ru();kve.exports=function(t,r){var n,i;if(t.mode==="lines")return n=t.line.color,n&&aT.opacity(n)?n:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var a=r.mcc||(t.marker||{}).color,o=r.mlcc||((t.marker||{}).line||{}).color;return i=a&&aT.opacity(a)?a:o&&aT.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",i?aT.opacity(i)<.3?aT.addOpacity(i,.3):i:(n=(t.line||{}).color,n&&aT.opacity(n)&&fpt.hasLines(t)&&t.line.width?n:t.fillcolor)}});var sT=ye((ror,Pve)=>{"use strict";var tI=Dr(),Lve=df(),hpt=qa(),dpt=oT(),xU=Ca(),vpt=tI.fillText;Pve.exports=function(t,r,n,i){var a=t.cd,o=a[0].trace,s=t.xa,l=t.ya,u=s.c2p(r),c=l.c2p(n),f=[u,c],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,v=!!o.xperiodalignment,x=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var b=function(H){if(v){var N=s.c2p(H.xStart),j=s.c2p(H.xEnd);return u>=Math.min(N,j)&&u<=Math.max(N,j)?0:1/0}var re=Math.max(3,H.mrc||0),oe=1-1/re,_e=Math.abs(s.c2p(H.x)-u);return _e=Math.min(N,j)&&c<=Math.max(N,j)?0:1/0}var re=Math.max(3,H.mrc||0),oe=1-1/re,_e=Math.abs(l.c2p(H.y)-c);return _eke!=ge>=ke&&(Ae=Se[ie-1][0],Fe=Se[ie][0],ge-Pe&&(Le=Ae+(Fe-Ae)*(ke-Pe)/(ge-Pe),re=Math.min(re,Le),oe=Math.max(oe,Le)));return re=Math.max(re,0),oe=Math.min(oe,s._length),{x0:re,x1:oe,y0:ke,y1:ke}}if(h.indexOf("fills")!==-1&&o._fillElement){var V=z(o._fillElement)&&!z(o._fillExclusionElement);if(V){var G=O(o._polygons);G===null&&(G={x0:f[0],x1:f[0],y0:f[1],y1:f[1]});var Z=xU.defaultLine;return xU.opacity(o.fillcolor)?Z=o.fillcolor:xU.opacity((o.line||{}).color)&&(Z=o.line.color),tI.extendFlat(t,{distance:t.maxHoverDistance,x0:G.x0,x1:G.x1,y0:G.y0,y1:G.y1,color:Z,hovertemplate:!1}),delete t.index,o.text&&!tI.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var lT=ye((ior,Rve)=>{"use strict";var Ive=Ru();Rve.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l,u,c,f,h=!Ive.hasMarkers(s)&&!Ive.hasText(s);if(h)return[];if(r===!1)for(l=0;l{"use strict";Dve.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var wU=ye((aor,qve)=>{"use strict";var YM=qa().traceIs,bU=L3();qve.exports=function(t,r,n,i){n("autotypenumbers",i.autotypenumbersDflt);var a=n("type",(i.splomStash||{}).type);a==="-"&&(ppt(r,i.data),r.type==="-"?r.type="linear":t.type=r.type)};function ppt(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i;r.indexOf("scene")!==-1&&(r=n);var a=gpt(t,r,n);if(a){if(a.type==="histogram"&&n==={v:"y",h:"x"}[a.orientation||"v"]){e.type="linear";return}var o=n+"calendar",s=a[o],l={noMultiCategory:!YM(a,"cartesian")||YM(a,"noMultiCategory")};if(a.type==="box"&&a._hasPreCompStats&&n==={h:"x",v:"y"}[a.orientation||"v"]&&(l.noMultiCategory=!0),l.autotypenumbers=e.autotypenumbers,Ove(a,n)){var u=zve(a),c=[];for(i=0;i0&&(i["_"+r+"axes"]||{})[t])return i;if((i[r+"axis"]||r)===t){if(Ove(i,r))return i;if((i[r]||[]).length||i[r+"0"])return i}}}function zve(e){return{v:"x",h:"y"}[e.orientation||"v"]}function Ove(e,t){var r=zve(e),n=YM(e,"box-violin"),i=YM(e._fullInput||{},"candlestick");return n&&!i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var rI=ye((oor,Bve)=>{"use strict";var mpt=vv().isTypedArraySpec;function ypt(e,t){var r=t.dataAttr||e._id.charAt(0),n={},i,a,o;if(t.axData)i=t.axData;else for(i=[],a=0;a0||mpt(a),s;o&&(s="array");var l=n("categoryorder",s),u;l==="array"&&(u=n("categoryarray")),!o&&l==="array"&&(l=r.categoryorder="trace"),l==="trace"?r._initialCategories=[]:l==="array"?r._initialCategories=u.slice():(u=ypt(r,i).sort(),l==="category ascending"?r._initialCategories=u:l==="category descending"&&(r._initialCategories=u.reverse()))}}});var KM=ye((sor,Uve)=>{"use strict";var Nve=cd().mix,_pt=Eh(),xpt=Dr();Uve.exports=function(t,r,n,i){i=i||{};var a=i.dfltColor;function o(M,g){return xpt.coerce2(t,r,i.attributes,M,g)}var s=o("linecolor",a),l=o("linewidth"),u=n("showline",i.showLine||!!s||!!l);u||(delete r.linecolor,delete r.linewidth);var c=Nve(a,i.bgColor,i.blend||_pt.lightFraction).toRgbString(),f=o("gridcolor",c),h=o("gridwidth"),d=o("griddash"),v=n("showgrid",i.showGrid||!!f||!!h||!!d);if(v||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),i.hasMinor){var x=Nve(r.gridcolor,i.bgColor,67).toRgbString(),b=o("minor.gridcolor",x),p=o("minor.gridwidth",r.gridwidth||1),C=o("minor.griddash",r.griddash||"solid"),E=n("minor.showgrid",!!b||!!p||!!C);E||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!i.noZeroLine){var A=o("zerolinelayer"),L=o("zerolinecolor",a),_=o("zerolinewidth"),k=n("zeroline",i.showGrid||!!L||!!_);k||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var $M=ye((lor,Xve)=>{"use strict";var Vve=Eo(),bpt=qa(),JM=Dr(),wpt=pl(),Tpt=Yd(),TU=Rd(),Gve=xb(),Hve=T3(),Apt=t_(),Spt=r_(),Mpt=rI(),Ept=KM(),Cpt=gB(),jve=ym(),iI=hd().WEEKDAY_PATTERN,kpt=hd().HOUR_PATTERN;Xve.exports=function(t,r,n,i,a){var o=i.letter,s=i.font||{},l=i.splomStash||{},u=n("visible",!i.visibleDflt),c=r._template||{},f=r.type||c.type||"-",h;if(f==="date"){var d=bpt.getComponentMethod("calendars","handleDefaults");d(t,r,"calendar",i.calendar),i.noTicklabelmode||(h=n("ticklabelmode"))}!i.noTicklabelindex&&(f==="date"||f==="linear")&&n("ticklabelindex");var v="";(!i.noTicklabelposition||f==="multicategory")&&(v=JM.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),i.noTicklabeloverflow||n("ticklabeloverflow",v.indexOf("inside")!==-1?"hide past domain":f==="category"||f==="multicategory"?"allow":"hide past div"),jve(r,a),Cpt(t,r,n,i),Mpt(t,r,n,i),f!=="category"&&!i.noHover&&n("hoverformat");var x=n("color"),b=x!==TU.color.dflt?x:s.color,p=l.label||a._dfltTitle[o];if(Spt(t,r,n,f,i),!u)return r;n("title.text",p),JM.coerceFont(n,"title.font",s,{overrideDflt:{size:JM.bigFont(s.size),color:b}}),Gve(t,r,n,f);var C=i.hasMinor;if(C&&(wpt.newContainer(r,"minor"),Gve(t,r,n,f,{isMinor:!0})),Apt(t,r,n,f,i),Hve(t,r,n,i),C){var E=i.isMinor;i.isMinor=!0,Hve(t,r,n,i),i.isMinor=E}Ept(t,r,n,{dfltColor:x,bgColor:i.bgColor,showGrid:i.showGrid,hasMinor:C,attributes:TU}),C&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&n("mirror");var A=f==="multicategory";if(!i.noTickson&&(f==="category"||A)&&(r.ticks||r.showgrid)&&(A?(n("tickson","boundaries"),delete r.ticklabelposition):n("tickson")),A){var L=n("showdividers");L&&(n("dividercolor"),n("dividerwidth"))}if(f==="date")if(Tpt(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Lpt}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var _=0;_=2){var o="",s,l;if(a.length===2){for(s=0;s<2;s++)if(l=Wve(a[s]),l){o=iI;break}}var u=n("pattern",o);if(u===iI)for(s=0;s<2;s++)l=Wve(a[s]),l&&(t.bounds[s]=a[s]=l-1);if(u)for(s=0;s<2;s++)switch(l=a[s],u){case iI:if(!Vve(l)){t.enabled=!1;return}if(l=+l,l!==Math.floor(l)||l<0||l>=7){t.enabled=!1;return}t.bounds[s]=a[s]=l;break;case kpt:if(!Vve(l)){t.enabled=!1;return}if(l=+l,l<0||l>24){t.enabled=!1;return}t.bounds[s]=a[s]=l;break}if(r.autorange===!1){var c=r.range;if(c[0]c[1]){t.enabled=!1;return}}else if(a[0]>c[0]&&a[1]{"use strict";var Ipt=Eo(),nI=Dr();Zve.exports=function(t,r,n,i){var a=i.counterAxes||[],o=i.overlayableAxes||[],s=i.letter,l=i.grid,u=i.overlayingDomain,c,f,h,d,v,x;l&&(f=l._domains[s][l._axisMap[r._id]],c=l._anchors[r._id],f&&(h=l[s+"side"].split(" ")[0],d=l.domain[s][h==="right"||h==="top"?1:0])),f=f||[0,1],c=c||(Ipt(t.position)?"free":a[0]||"free"),h=h||(s==="x"?"bottom":"left"),d=d||0,v=0,x=!1;var b=nI.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(a),dflt:c}},"anchor"),p=nI.coerce(t,r,{side:{valType:"enumerated",values:s==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(b==="free"){if(s==="y"){var C=n("autoshift");C&&(d=p==="left"?u[0]:u[1],x=r.automargin?r.automargin:!0,v=p==="left"?-3:3),n("shift",v)}n("position",d)}n("automargin",x);var E=!1;if(o.length&&(E=nI.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!E){var A=n("domain",f);A[0]>A[1]-1/4096&&(r.domain=f),nI.noneOrAll(t.domain,r.domain,f),r.tickmode==="sync"&&(r.tickmode="auto")}return n("layer"),r}});var ipe=ye((cor,rpe)=>{"use strict";var jb=Dr(),Yve=Ca(),Rpt=rp().isUnifiedHover,Dpt=UB(),Kve=pl(),Fpt=s3(),Jve=Rd(),zpt=wU(),$ve=$M(),Opt=Bb(),Qve=aI(),SU=Af(),km=SU.id2name,epe=SU.name2id,qpt=hd().AX_ID_PATTERN,tpe=qa(),oI=tpe.traceIs,AU=tpe.getComponentMethod;function sI(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}rpe.exports=function(t,r,n){var i=r.autotypenumbers,a={},o={},s={},l={},u={},c={},f={},h={},d={},v={},x,b;for(x=0;x{"use strict";var Bpt=Oa(),npe=qa(),lI=Dr(),Qp=So(),uI=ho();ape.exports=function(t,r,n,i){var a=t._fullLayout;if(r.length===0){uI.redrawComponents(t);return}function o(b){var p=b.xaxis,C=b.yaxis;a._defs.select("#"+b.clipId+"> rect").call(Qp.setTranslate,0,0).call(Qp.setScale,1,1),b.plot.call(Qp.setTranslate,p._offset,C._offset).call(Qp.setScale,1,1);var E=b.plot.selectAll(".scatterlayer .trace");E.selectAll(".point").call(Qp.setPointGroupScale,1,1),E.selectAll(".textpoint").call(Qp.setTextPointsScale,1,1),E.call(Qp.hideOutsideRangePoints,b)}function s(b,p){var C=b.plotinfo,E=C.xaxis,A=C.yaxis,L=E._length,_=A._length,k=!!b.xr1,M=!!b.yr1,g=[];if(k){var P=lI.simpleMap(b.xr0,E.r2l),T=lI.simpleMap(b.xr1,E.r2l),z=P[1]-P[0],O=T[1]-T[0];g[0]=(P[0]*(1-p)+p*T[0]-P[0])/(P[1]-P[0])*L,g[2]=L*(1-p+p*O/z),E.range[0]=E.l2r(P[0]*(1-p)+p*T[0]),E.range[1]=E.l2r(P[1]*(1-p)+p*T[1])}else g[0]=0,g[2]=L;if(M){var V=lI.simpleMap(b.yr0,A.r2l),G=lI.simpleMap(b.yr1,A.r2l),Z=V[1]-V[0],H=G[1]-G[0];g[1]=(V[1]*(1-p)+p*G[1]-V[1])/(V[0]-V[1])*_,g[3]=_*(1-p+p*H/Z),A.range[0]=E.l2r(V[0]*(1-p)+p*G[0]),A.range[1]=A.l2r(V[1]*(1-p)+p*G[1])}else g[1]=0,g[3]=_;uI.drawOne(t,E,{skipTitle:!0}),uI.drawOne(t,A,{skipTitle:!0}),uI.redrawComponents(t,[E._id,A._id]);var N=k?L/g[2]:1,j=M?_/g[3]:1,re=k?g[0]:0,oe=M?g[1]:0,_e=k?g[0]/g[2]*L:0,Me=M?g[1]/g[3]*_:0,ke=E._offset-_e,me=A._offset-Me;C.clipRect.call(Qp.setTranslate,re,oe).call(Qp.setScale,1/N,1/j),C.plot.call(Qp.setTranslate,ke,me).call(Qp.setScale,N,j),Qp.setPointGroupScale(C.zoomScalePts,1/N,1/j),Qp.setTextPointsScale(C.zoomScaleTxt,1/N,1/j)}var l;i&&(l=i());function u(){for(var b={},p=0;pn.duration?(u(),d=window.cancelAnimationFrame(x)):d=window.requestAnimationFrame(x)}return f=Date.now(),d=window.requestAnimationFrame(x),Promise.resolve()}});var vh=ye(yv=>{"use strict";var fI=Oa(),spe=qa(),Wb=Dr(),Npt=Mc(),Upt=So(),lpe=Id().getModuleCalcData,m_=Af(),Fg=hd(),Vpt=Wp(),nu=Wb.ensureSingle;function cI(e,t,r){return Wb.ensureSingle(e,t,r,function(n){n.datum(r)})}var Xb=Fg.zindexSeparator;yv.name="cartesian";yv.attr=["xaxis","yaxis"];yv.idRoot=["x","y"];yv.idRegex=Fg.idRegex;yv.attrRegex=Fg.attrRegex;yv.attributes=Fve();yv.layoutAttributes=Rd();yv.supplyLayoutDefaults=ipe();yv.transitionAxes=ope();yv.finalizeSubplots=function(e,t){var r=t._subplots,n=r.xaxis,i=r.yaxis,a=r.cartesian,o=a,s={},l={},u,c,f;for(u=0;u0){var d=h.id;if(d.indexOf(Xb)!==-1)continue;d+=Xb+(u+1),h=Wb.extendFlat({},h,{id:d,plot:i._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var v=[],x,b=0;b1&&(L+=Xb+A),E.push(s+L),o=0;o1,f=t.mainplotinfo;if(!t.mainplot||c)if(u)t.xlines=nu(n,"path","xlines-above"),t.ylines=nu(n,"path","ylines-above"),t.xaxislayer=nu(n,"g","xaxislayer-above"),t.yaxislayer=nu(n,"g","yaxislayer-above");else{if(!o){var h=nu(n,"g","layer-subplot");t.shapelayer=nu(h,"g","shapelayer"),t.imagelayer=nu(h,"g","imagelayer"),f&&c?(t.minorGridlayer=f.minorGridlayer,t.gridlayer=f.gridlayer,t.zerolinelayer=f.zerolinelayer):(t.minorGridlayer=nu(n,"g","minor-gridlayer"),t.gridlayer=nu(n,"g","gridlayer"),t.zerolinelayer=nu(n,"g","zerolinelayer"));var d=nu(n,"g","layer-between");t.shapelayerBetween=nu(d,"g","shapelayer"),t.imagelayerBetween=nu(d,"g","imagelayer"),nu(n,"path","xlines-below"),nu(n,"path","ylines-below"),t.overlinesBelow=nu(n,"g","overlines-below"),nu(n,"g","xaxislayer-below"),nu(n,"g","yaxislayer-below"),t.overaxesBelow=nu(n,"g","overaxes-below")}t.overplot=nu(n,"g","overplot"),t.plot=nu(t.overplot,"g",i),f&&c?t.zerolinelayerAbove=f.zerolinelayerAbove:t.zerolinelayerAbove=nu(n,"g","zerolinelayer-above"),o||(t.xlines=nu(n,"path","xlines-above"),t.ylines=nu(n,"path","ylines-above"),t.overlinesAbove=nu(n,"g","overlines-above"),nu(n,"g","xaxislayer-above"),nu(n,"g","yaxislayer-above"),t.overaxesAbove=nu(n,"g","overaxes-above"),t.xlines=n.select(".xlines-"+s),t.ylines=n.select(".ylines-"+l),t.xaxislayer=n.select(".xaxislayer-"+s),t.yaxislayer=n.select(".yaxislayer-"+l))}else{var v=f.plotgroup,x=i+"-x",b=i+"-y";t.minorGridlayer=f.minorGridlayer,t.gridlayer=f.gridlayer,t.zerolinelayer=f.zerolinelayer,t.zerolinelayerAbove=f.zerolinelayerAbove,nu(f.overlinesBelow,"path",x),nu(f.overlinesBelow,"path",b),nu(f.overaxesBelow,"g",x),nu(f.overaxesBelow,"g",b),t.plot=nu(f.overplot,"g",i),nu(f.overlinesAbove,"path",x),nu(f.overlinesAbove,"path",b),nu(f.overaxesAbove,"g",x),nu(f.overaxesAbove,"g",b),t.xlines=v.select(".overlines-"+s).select("."+x),t.ylines=v.select(".overlines-"+l).select("."+b),t.xaxislayer=v.select(".overaxes-"+s).select("."+x),t.yaxislayer=v.select(".overaxes-"+l).select("."+b)}o||(u||(cI(t.minorGridlayer,"g",t.xaxis._id),cI(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(p){return p[0]}).sort(m_.idSort),cI(t.gridlayer,"g",t.xaxis._id),cI(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(p){return p[0]}).sort(m_.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function fpe(e,t){if(e){var r={};e.each(function(l){var u=l[0],c=fI.select(this);c.remove(),hpe(u,t),r[u]=!0});for(var n in t._plots)for(var i=t._plots[n],a=i.overlays||[],o=0;o{"use strict";var hI=Ru();dpe.exports={hasLines:hI.hasLines,hasMarkers:hI.hasMarkers,hasText:hI.hasText,isBubble:hI.isBubble,attributes:vf(),layoutAttributes:H6(),supplyDefaults:Nde(),crossTraceDefaults:rU(),supplyLayoutDefaults:Hde(),calc:O0().calc,crossTraceCalc:vve(),arraysToCalcdata:Cm(),plot:iT(),colorbar:$d(),formatLabels:eI(),style:ap().style,styleOnSelect:ap().styleOnSelect,hoverPoints:sT(),selectPoints:lT(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:vh(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var mpe=ye((por,gpe)=>{"use strict";var Hpt=Oa(),jpt=Ca(),ppe=kN(),MU=Dr(),Wpt=MU.strScale,Xpt=MU.strRotate,Zpt=MU.strTranslate;gpe.exports=function(t,r,n){var i=t.node(),a=ppe[n.arrowhead||0],o=ppe[n.startarrowhead||0],s=(n.arrowwidth||1)*(n.arrowsize||1),l=(n.arrowwidth||1)*(n.startarrowsize||1),u=r.indexOf("start")>=0,c=r.indexOf("end")>=0,f=a.backoff*s+n.standoff,h=o.backoff*l+n.startstandoff,d,v,x,b;if(i.nodeName==="line"){d={x:+t.attr("x1"),y:+t.attr("y1")},v={x:+t.attr("x2"),y:+t.attr("y2")};var p=d.x-v.x,C=d.y-v.y;if(x=Math.atan2(C,p),b=x+Math.PI,f&&h&&f+h>Math.sqrt(p*p+C*C)){V();return}if(f){if(f*f>p*p+C*C){V();return}var E=f*Math.cos(x),A=f*Math.sin(x);v.x+=E,v.y+=A,t.attr({x2:v.x,y2:v.y})}if(h){if(h*h>p*p+C*C){V();return}var L=h*Math.cos(x),_=h*Math.sin(x);d.x-=L,d.y-=_,t.attr({x1:d.x,y1:d.y})}}else if(i.nodeName==="path"){var k=i.getTotalLength(),M="";if(k{"use strict";var ype=Oa(),EU=qa(),Ypt=Mc(),__=Dr(),CU=__.strTranslate,e4=ho(),Zb=Ca(),Py=So(),_pe=df(),kU=iu(),LU=Tg(),QM=gv(),Kpt=pl().arrayEditor,Jpt=mpe();wpe.exports={draw:$pt,drawOne:xpe,drawRaw:bpe};function $pt(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?Je="right":Je="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Je]}for(var Pe=!1,ge=["x","y"],De=0;De1)&&(ut===Ze?(It=gt.r2fraction(t["a"+ce]),(It<0||It>1)&&(Pe=!0)):Pe=!0),Tr=gt._offset+gt.r2p(t[ce]),Mt=.5}else{var Ot=Vt==="domain";ce==="x"?($e=t[ce],Tr=Ot?gt._offset+gt._length*$e:Tr=s.l+s.w*$e):($e=1-t[ce],Tr=Ot?gt._offset+gt._length*$e:Tr=s.t+s.h*$e),Mt=t.showarrow?.5:$e}if(t.showarrow){sr.head=Tr;var bt=t["a"+ce];if(Ct=st*Fe(.5,t.xanchor)-lt*Fe(.5,t.yanchor),ut===Ze){var rr=e4.getRefType(ut);rr==="domain"?(ce==="y"&&(bt=1-bt),sr.tail=gt._offset+gt._length*bt):rr==="paper"?ce==="y"?(bt=1-bt,sr.tail=s.t+s.h*bt):sr.tail=s.l+s.w*bt:sr.tail=gt._offset+gt.r2p(bt),ur=Ct}else sr.tail=Tr+bt,ur=Ct+bt;sr.text=sr.tail+Ct;var lr=o[ce==="x"?"width":"height"];if(Ze==="paper"&&(sr.head=__.constrain(sr.head,1,lr-1)),ut==="pixel"){var wr=-Math.max(sr.tail-3,sr.text),Cr=Math.min(sr.tail+3,sr.text)-lr;wr>0?(sr.tail+=wr,sr.text+=wr):Cr>0&&(sr.tail-=Cr,sr.text-=Cr)}sr.tail+=$t,sr.head+=$t}else Ct=Gt*Fe(Mt,Ut),ur=Ct,sr.text=Tr+Ct;sr.text+=$t,Ct+=$t,ur+=$t,t["_"+ce+"padplus"]=Gt/2+ur,t["_"+ce+"padminus"]=Gt/2-ur,t["_"+ce+"size"]=Gt,t["_"+ce+"shift"]=Ct}if(Pe){k.remove();return}var Kr=0,Gr=0;if(t.align!=="left"&&(Kr=(ie-ke)*(t.align==="center"?.5:1)),t.valign!=="top"&&(Gr=(Se-me)*(t.valign==="middle"?.5:1)),_e)oe.select("svg").attr({x:P+Kr-1,y:P+Gr}).call(Py.setClipUrl,z?x:null,e);else{var Yr=P+Gr-Me.top,dt=P+Kr-Me.left;Z.call(kU.positionText,dt,Yr).call(Py.setClipUrl,z?x:null,e)}O.select("rect").call(Py.setRect,P,P,ie,Se),T.call(Py.setRect,M/2,M/2,Le-M,Ae-M),k.call(Py.setTranslate,Math.round(b.x.text-Le/2),Math.round(b.y.text-Ae/2)),E.attr({transform:"rotate("+p+","+b.x.text+","+b.y.text+")"});var Ge=function(je,Je){C.selectAll(".annotation-arrow-g").remove();var xt=b.x.head,Ie=b.y.head,xe=b.x.tail+je,Ce=b.y.tail+Je,pt=b.x.text+je,nr=b.y.text+Je,ir=__.rotationXYMatrix(p,pt,nr),vr=__.apply2DTransform(ir),si=__.apply2DTransform2(ir),mi=+T.attr("width"),ei=+T.attr("height"),vi=pt-.5*mi,ji=vi+mi,Rn=nr-.5*ei,wn=Rn+ei,pn=[[vi,Rn,vi,wn],[vi,wn,ji,wn],[ji,wn,ji,Rn],[ji,Rn,vi,Rn]].map(si);if(!pn.reduce(function($r,zi){return $r^!!__.segmentsIntersect(xt,Ie,xt+1e6,Ie+1e6,zi[0],zi[1],zi[2],zi[3])},!1)){pn.forEach(function($r){var zi=__.segmentsIntersect(xe,Ce,xt,Ie,$r[0],$r[1],$r[2],$r[3]);zi&&(xe=zi.x,Ce=zi.y)});var Vn=t.arrowwidth,kn=t.arrowcolor,ea=t.arrowside,ua=C.append("g").style({opacity:Zb.opacity(kn)}).classed("annotation-arrow-g",!0),Ht=ua.append("path").attr("d","M"+xe+","+Ce+"L"+xt+","+Ie).style("stroke-width",Vn+"px").call(Zb.stroke,Zb.rgb(kn));if(Jpt(Ht,ea,t),l.annotationPosition&&Ht.node().parentNode&&!n){var yt=xt,er=Ie;if(t.standoff){var ar=Math.sqrt(Math.pow(xt-xe,2)+Math.pow(Ie-Ce,2));yt+=t.standoff*(xe-xt)/ar,er+=t.standoff*(Ce-Ie)/ar}var Er=ua.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(xe-yt)+","+(Ce-er),transform:CU(yt,er)}).style("stroke-width",Vn+6+"px").call(Zb.stroke,"rgba(0,0,0,0)").call(Zb.fill,"rgba(0,0,0,0)"),Xr,ri;QM.init({element:Er.node(),gd:e,prepFn:function(){var $r=Py.getTranslate(k);Xr=$r.x,ri=$r.y,i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0)},moveFn:function($r,zi){var Ji=vr(Xr,ri),en=Ji[0]+$r,cn=Ji[1]+zi;k.call(Py.setTranslate,en,cn),d("x",y_(i,$r,"x",s,t)),d("y",y_(a,zi,"y",s,t)),t.axref===t.xref&&d("ax",y_(i,$r,"ax",s,t)),t.ayref===t.yref&&d("ay",y_(a,zi,"ay",s,t)),ua.attr("transform",CU($r,zi)),E.attr({transform:"rotate("+p+","+en+","+cn+")"})},doneFn:function(){EU.call("_guiRelayout",e,v());var $r=document.querySelector(".js-notes-box-panel");$r&&$r.redraw($r.selectedObj)}})}}};if(t.showarrow&&Ge(0,0),A){var Qe;QM.init({element:k.node(),gd:e,prepFn:function(){Qe=E.attr("transform")},moveFn:function(je,Je){var xt="pointer";if(t.showarrow)t.axref===t.xref?d("ax",y_(i,je,"ax",s,t)):d("ax",t.ax+je),t.ayref===t.yref?d("ay",y_(a,Je,"ay",s.w,t)):d("ay",t.ay+Je),Ge(je,Je);else{if(n)return;var Ie,xe;if(i)Ie=y_(i,je,"x",s,t);else{var Ce=t._xsize/s.w,pt=t.x+(t._xshift-t.xshift)/s.w-Ce/2;Ie=QM.align(pt+je/s.w,Ce,0,1,t.xanchor)}if(a)xe=y_(a,Je,"y",s,t);else{var nr=t._ysize/s.h,ir=t.y-(t._yshift+t.yshift)/s.h-nr/2;xe=QM.align(ir-Je/s.h,nr,0,1,t.yanchor)}d("x",Ie),d("y",xe),(!i||!a)&&(xt=QM.getCursor(i?.5:Ie,a?.5:xe,t.xanchor,t.yanchor))}E.attr({transform:CU(je,Je)+Qe}),LU(k,xt)},clickFn:function(je,Je){t.captureevents&&e.emit("plotly_clickannotation",_(Je))},doneFn:function(){LU(k),EU.call("_guiRelayout",e,v());var je=document.querySelector(".js-notes-box-panel");je&&je.redraw(je.selectedObj)}})}}l.annotationText?Z.call(kU.makeEditable,{delegate:k,gd:e}).call(H).on("edit",function(j){t.text=j,this.call(H),d("text",j),i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0),EU.call("_guiRelayout",e,v())}):Z.call(H)}});var Cpe=ye((mor,Epe)=>{"use strict";var Tpe=Dr(),Qpt=qa(),Ape=pl().arrayEditor;Epe.exports={hasClickToShow:e0t,onClick:t0t};function e0t(e,t){var r=Mpe(e,t);return r.on.length>0||r.explicitOff.length>0}function t0t(e,t){var r=Mpe(e,t),n=r.on,i=r.off.concat(r.explicitOff),a={},o=e._fullLayout.annotations,s,l;if(n.length||i.length){for(s=0;s{"use strict";var PU=Dr(),uT=Ca();kpe.exports=function(t,r,n,i){i("opacity");var a=i("bgcolor"),o=i("bordercolor"),s=uT.opacity(o);i("borderpad");var l=i("borderwidth"),u=i("showarrow");i("text",u?" ":n._dfltTitle.annotation),i("textangle"),PU.coerceFont(i,"font",n.font),i("width"),i("align");var c=i("height");if(c&&i("valign"),u){var f=i("arrowside"),h,d;f.indexOf("end")!==-1&&(h=i("arrowhead"),d=i("arrowsize")),f.indexOf("start")!==-1&&(i("startarrowhead",h),i("startarrowsize",d)),i("arrowcolor",s?r.bordercolor:uT.defaultLine),i("arrowwidth",(s&&l||1)*2),i("standoff"),i("startstandoff")}var v=i("hovertext"),x=n.hoverlabel||{};if(v){var b=i("hoverlabel.bgcolor",x.bgcolor||(uT.opacity(a)?uT.rgb(a):uT.defaultLine)),p=i("hoverlabel.bordercolor",x.bordercolor||uT.contrast(b)),C=PU.extendFlat({},x.font);C.color||(C.color=p),PU.coerceFont(i,"hoverlabel.font",C)}i("captureevents",!!v)}});var Ppe=ye((_or,Lpe)=>{"use strict";var RU=Dr(),Yb=ho(),r0t=Yd(),i0t=IU(),n0t=Nb();Lpe.exports=function(t,r){r0t(t,r,{name:"annotations",handleItemDefaults:a0t})};function a0t(e,t,r){function n(E,A){return RU.coerce(e,t,n0t,E,A)}var i=n("visible"),a=n("clicktoshow");if(i||a){i0t(e,t,r,n);for(var o=t.showarrow,s=["x","y"],l=[-10,-30],u={_fullLayout:r},c=0;c<2;c++){var f=s[c],h=Yb.coerceRef(e,t,u,f,"","paper");if(h!=="paper"){var d=Yb.getFromId(u,h);d._annIndices.push(t._index)}if(Yb.coercePosition(t,u,n,h,f,.5),o){var v="a"+f,x=Yb.coerceRef(e,t,u,v,"pixel",["pixel","paper"]);x!=="pixel"&&x!==h&&(x=t[v]="pixel");var b=x==="pixel"?l[c]:.4;Yb.coercePosition(t,u,n,x,v,b)}n(f+"anchor"),n(f+"shift")}if(RU.noneOrAll(e,t,["x","y"]),o&&RU.noneOrAll(e,t,["ax","ay"]),a){var p=n("xclick"),C=n("yclick");t._xclick=p===void 0?t.x:Yb.cleanPosition(p,u,t.xref),t._yclick=C===void 0?t.y:Yb.cleanPosition(C,u,t.yref)}}}});var Dpe=ye((xor,Rpe)=>{"use strict";var DU=Dr(),Kb=ho(),o0t=dI().draw;Rpe.exports=function(t){var r=t._fullLayout,n=DU.filterVisible(r.annotations);if(n.length&&t._fullData.length)return DU.syncOrAsync([o0t,s0t],t)};function s0t(e){var t=e._fullLayout;DU.filterVisible(t.annotations).forEach(function(r){var n=Kb.getFromId(e,r.xref),i=Kb.getFromId(e,r.yref),a=Kb.getRefType(r.xref),o=Kb.getRefType(r.yref);r._extremes={},a==="range"&&Ipe(r,n),o==="range"&&Ipe(r,i)})}function Ipe(e,t){var r=t._id,n=r.charAt(0),i=e[n],a=e["a"+n],o=e[n+"ref"],s=e["a"+n+"ref"],l=e["_"+n+"padplus"],u=e["_"+n+"padminus"],c={x:1,y:-1}[n]*e[n+"shift"],f=3*e.arrowsize*e.arrowwidth||0,h=f+c,d=f-c,v=3*e.startarrowsize*e.arrowwidth||0,x=v+c,b=v-c,p;if(s===o){var C=Kb.findExtremes(t,[t.r2c(i)],{ppadplus:h,ppadminus:d}),E=Kb.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(l,x),ppadminus:Math.max(u,b)});p={min:[C.min[0],E.min[0]],max:[C.max[0],E.max[0]]}}else x=a?x+a:x,b=a?b-a:b,p=Kb.findExtremes(t,[t.r2c(i)],{ppadplus:Math.max(l,h,x),ppadminus:Math.max(u,d,b)});e._extremes[r]=p}});var zpe=ye((bor,Fpe)=>{"use strict";var l0t=Eo(),u0t=f6();Fpe.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(!(a||o))return;var s=t._fullLayout.annotations,l=r._id.charAt(0),u,c;function f(d){var v=u[d],x=null;a?x=u0t(v,r.range):x=Math.pow(10,v),l0t(x)||(x=null),i(c+d,x)}for(var h=0;h{"use strict";var FU=dI(),Ope=Cpe();qpe.exports={moduleType:"component",name:"annotations",layoutAttributes:Nb(),supplyLayoutDefaults:Ppe(),includeBasePlot:RM()("annotations"),calcAutorange:Dpe(),draw:FU.draw,drawOne:FU.drawOne,drawRaw:FU.drawRaw,hasClickToShow:Ope.hasClickToShow,onClick:Ope.onClick,convertCoords:zpe()}});var vI=ye((Tor,Npe)=>{"use strict";var Cc=Nb(),c0t=mc().overrideAll,f0t=pl().templatedArray;Npe.exports=c0t(f0t("annotation",{visible:Cc.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Cc.xanchor,xshift:Cc.xshift,yanchor:Cc.yanchor,yshift:Cc.yshift,text:Cc.text,textangle:Cc.textangle,font:Cc.font,width:Cc.width,height:Cc.height,opacity:Cc.opacity,align:Cc.align,valign:Cc.valign,bgcolor:Cc.bgcolor,bordercolor:Cc.bordercolor,borderpad:Cc.borderpad,borderwidth:Cc.borderwidth,showarrow:Cc.showarrow,arrowcolor:Cc.arrowcolor,arrowhead:Cc.arrowhead,startarrowhead:Cc.startarrowhead,arrowside:Cc.arrowside,arrowsize:Cc.arrowsize,startarrowsize:Cc.startarrowsize,arrowwidth:Cc.arrowwidth,standoff:Cc.standoff,startstandoff:Cc.startstandoff,hovertext:Cc.hovertext,hoverlabel:Cc.hoverlabel,captureevents:Cc.captureevents}),"calc","from-root")});var Vpe=ye((Aor,Upe)=>{"use strict";var zU=Dr(),h0t=ho(),d0t=Yd(),v0t=IU(),p0t=vI();Upe.exports=function(t,r,n){d0t(t,r,{name:"annotations",handleItemDefaults:g0t,fullLayout:n.fullLayout})};function g0t(e,t,r,n){function i(s,l){return zU.coerce(e,t,p0t,s,l)}function a(s){var l=s+"axis",u={_fullLayout:{}};return u._fullLayout[l]=r[l],h0t.coercePosition(t,u,i,s,s,.5)}var o=i("visible");o&&(v0t(e,t,n.fullLayout,i),a("x"),a("y"),a("z"),zU.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",i("xanchor"),i("yanchor"),i("xshift"),i("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",i("ax",-10),i("ay",-30),zU.noneOrAll(e,t,["ax","ay"])))}});var Wpe=ye((Sor,jpe)=>{"use strict";var Gpe=Dr(),Hpe=ho();jpe.exports=function(t){for(var r=t.fullSceneLayout,n=r.annotations,i=0;i{"use strict";function OU(e,t){var r=[0,0,0,0],n,i;for(n=0;n<4;++n)for(i=0;i<4;++i)r[i]+=e[4*n+i]*t[n];return r}function y0t(e,t){var r=OU(e.projection,OU(e.view,OU(e.model,[t[0],t[1],t[2],1])));return r}Xpe.exports=y0t});var Ype=ye((Eor,Zpe)=>{"use strict";var _0t=dI().drawRaw,x0t=qU(),b0t=["x","y","z"];Zpe.exports=function(t){for(var r=t.fullSceneLayout,n=t.dataScale,i=r.annotations,a=0;a1){s=!0;break}}s?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+a+'"]').remove():(o._pdata=x0t(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*n[0],r.yaxis.r2l(o.y)*n[1],r.zaxis.r2l(o.z)*n[2]]),_0t(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var $pe=ye((Cor,Jpe)=>{"use strict";var w0t=qa(),Kpe=Dr();Jpe.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:vI()}}},layoutAttributes:vI(),handleDefaults:Vpe(),includeBasePlot:T0t,convert:Wpe(),draw:Ype()};function T0t(e,t){var r=w0t.subplotsRegistry.gl3d;if(r)for(var n=r.attrRegex,i=Object.keys(e),a=0;a{"use strict";var Qpe=Nb(),e0e=ec(),t0e=vf().line,A0t=Pd().dash,zg=Ao().extendFlat,S0t=pl().templatedArray,kor=IM(),cT=Vl(),M0t=rs().shapeTexttemplateAttrs,E0t=T6();r0e.exports=S0t("shape",{visible:zg({},cT.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:zg({},cT.legend,{editType:"calc+arraydraw"}),legendgroup:zg({},cT.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:zg({},cT.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:e0e({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:zg({},cT.legendrank,{editType:"calc+arraydraw"}),legendwidth:zg({},cT.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:zg({},Qpe.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:zg({},Qpe.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:zg({},t0e.color,{editType:"arraydraw"}),width:zg({},t0e.width,{editType:"calc+arraydraw"}),dash:zg({},A0t,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:M0t({},{keys:Object.keys(E0t)}),font:e0e({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var a0e=ye((Por,n0e)=>{"use strict";var t4=Dr(),fT=ho(),C0t=Yd(),k0t=BU(),i0e=h_();n0e.exports=function(t,r){C0t(t,r,{name:"shapes",handleItemDefaults:P0t})};function L0t(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function P0t(e,t,r){function n(j,re){return t4.coerce(e,t,k0t,j,re)}t._isShape=!0;var i=n("visible");if(i){var a=n("showlegend");a&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),t4.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var o=n("path"),s=o?"path":"rect",l=n("type",s),u=l!=="path";u&&delete t.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var c=n("line.width");c&&(n("line.color"),n("line.dash"));for(var f=n("xsizemode"),h=n("ysizemode"),d=["x","y"],v=0;v<2;v++){var x=d[v],b=x+"anchor",p=x==="x"?f:h,C={_fullLayout:r},E,A,L,_=fT.coerceRef(e,t,C,x,void 0,"paper"),k=fT.getRefType(_);if(k==="range"?(E=fT.getFromId(C,_),E._shapeIndices.push(t._index),L=i0e.rangeToShapePosition(E),A=i0e.shapePositionToRange(E),(E.type==="category"||E.type==="multicategory")&&(n(x+"0shift"),n(x+"1shift"))):A=L=t4.identity,u){var M=.25,g=.75,P=x+"0",T=x+"1",z=e[P],O=e[T];e[P]=A(e[P],!0),e[T]=A(e[T],!0),p==="pixel"?(n(P,0),n(T,10)):(fT.coercePosition(t,C,n,_,P,M),fT.coercePosition(t,C,n,_,T,g)),t[P]=L(t[P]),t[T]=L(t[T]),e[P]=z,e[T]=O}if(p==="pixel"){var V=e[b];e[b]=A(e[b],!0),fT.coercePosition(t,C,n,_,b,.25),t[b]=L(t[b]),e[b]=V}}u&&t4.noneOrAll(e,t,["x0","x1","y0","y1"]);var G=l==="line",Z,H;if(u&&(Z=n("label.texttemplate")),Z||(H=n("label.text")),H||Z){n("label.textangle");var N=n("label.textposition",G?"middle":"middle center");n("label.xanchor"),n("label.yanchor",L0t(G,N)),n("label.padding"),t4.coerceFont(n,"label.font",r.font)}}}});var l0e=ye((Ior,s0e)=>{"use strict";var I0t=Ca(),o0e=Dr();function R0t(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}s0e.exports=function(t,r,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),o0e.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var i=n("newshape.line.width");if(i){var a=(t||{}).plot_bgcolor||"#FFF";n("newshape.line.color",I0t.contrast(a)),n("newshape.line.dash")}var o=t.dragmode==="drawline",s=n("newshape.label.text"),l=n("newshape.label.texttemplate");if(s||l){n("newshape.label.textangle");var u=n("newshape.label.textposition",o?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",R0t(o,u)),n("newshape.label.padding"),o0e.coerceFont(n,"newshape.label.font",r.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var d0e=ye((Ror,h0e)=>{"use strict";var NU=Dr(),hT=ho(),dT=fM(),c0e=h_();h0e.exports=function(t){var r=t._fullLayout,n=NU.filterVisible(r.shapes);if(!(!n.length||!t._fullData.length))for(var i=0;i0?u+o:o;return{ppad:o,ppadplus:s?f:h,ppadminus:s?h:f}}else return{ppad:o}}function u0e(e,t,r){var n=e._id.charAt(0)==="x"?"x":"y",i=e.type==="category"||e.type==="multicategory",a,o,s=0,l=0,u=i?e.r2c:e.d2c,c=t[n+"sizemode"]==="scaled";if(c?(a=t[n+"0"],o=t[n+"1"],i&&(s=t[n+"0shift"],l=t[n+"1shift"])):(a=t[n+"anchor"],o=t[n+"anchor"]),a!==void 0)return[u(a)+s,u(o)+l];if(t.path){var f=1/0,h=-1/0,d=t.path.match(dT.segmentRE),v,x,b,p,C;for(e.type==="date"&&(u=c0e.decodeDate(u)),v=0;vh&&(h=C)));if(h>=f)return[f,h]}}});var g0e=ye((Dor,p0e)=>{"use strict";var v0e=nP();p0e.exports={moduleType:"component",name:"shapes",layoutAttributes:BU(),supplyLayoutDefaults:a0e(),supplyDrawNewShapeDefaults:l0e(),includeBasePlot:RM()("shapes"),calcAutorange:d0e(),draw:v0e.draw,drawOne:v0e.drawOne}});var UU=ye((zor,y0e)=>{"use strict";var m0e=hd(),z0t=pl().templatedArray,For=IM();y0e.exports=z0t("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",m0e.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",m0e.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var x0e=ye((Oor,_0e)=>{"use strict";var O0t=Dr(),VU=ho(),q0t=Yd(),B0t=UU(),N0t="images";_0e.exports=function(t,r){var n={name:N0t,handleItemDefaults:U0t};q0t(t,r,n)};function U0t(e,t,r){function n(h,d){return O0t.coerce(e,t,B0t,h,d)}var i=n("source"),a=n("visible",!!i);if(!a)return t;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var o={_fullLayout:r},s=["x","y"],l=0;l<2;l++){var u=s[l],c=VU.coerceRef(e,t,o,u,"paper",void 0);if(c!=="paper"){var f=VU.getFromId(o,c);f._imgIndices.push(t._index)}VU.coercePosition(t,o,n,c,u,0)}return t}});var A0e=ye((qor,T0e)=>{"use strict";var b0e=Oa(),V0t=So(),vT=ho(),w0e=Af(),G0t=Wp();T0e.exports=function(t){var r=t._fullLayout,n=[],i={},a=[],o,s;for(s=0;s{"use strict";var S0e=Eo(),H0t=f6();M0e.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(a||o){for(var s=t._fullLayout.images,l=r._id.charAt(0),u,c,f=0;f{"use strict";C0e.exports={moduleType:"component",name:"images",layoutAttributes:UU(),supplyLayoutDefaults:x0e(),includeBasePlot:RM()("images"),draw:A0e(),convertCoords:E0e()}});var pI=ye((Uor,L0e)=>{"use strict";L0e.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var GU=ye((Vor,I0e)=>{"use strict";var j0t=ec(),W0t=Eh(),X0t=Ao().extendFlat,Z0t=mc().overrideAll,Y0t=A6(),P0e=pl().templatedArray,K0t=P0e("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});I0e.exports=Z0t(P0e("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:K0t,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:X0t(Y0t({editType:"arraydraw"}),{}),font:j0t({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:W0t.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var z0e=ye((Gor,F0e)=>{"use strict";var gI=Dr(),R0e=Yd(),D0e=GU(),J0t=pI(),$0t=J0t.name,Q0t=D0e.buttons;F0e.exports=function(t,r){var n={name:$0t,handleItemDefaults:egt};R0e(t,r,n)};function egt(e,t,r){function n(o,s){return gI.coerce(e,t,D0e,o,s)}var i=R0e(e,t,{name:"buttons",handleItemDefaults:tgt}),a=n("visible",i.length>0);a&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),gI.noneOrAll(e,t,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),gI.coerceFont(n,"font",r.font),n("bgcolor",r.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function tgt(e,t){function r(i,a){return gI.coerce(e,t,Q0t,i,a)}var n=r("visible",e.method==="skip"||Array.isArray(e.args));n&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var B0e=ye((Hor,q0e)=>{"use strict";q0e.exports=Sf;var Og=Oa(),O0e=Ca(),pT=So(),mI=Dr();function Sf(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Sf.barWidth=2;Sf.barLength=20;Sf.barRadius=2;Sf.barPad=1;Sf.barColor="#808BA4";Sf.prototype.enable=function(t,r,n){var i=this.gd._fullLayout,a=i.width,o=i.height;this.position=t;var s=this.position.l,l=this.position.w,u=this.position.t,c=this.position.h,f=this.position.direction,h=f==="down",d=f==="left",v=f==="right",x=f==="up",b=l,p=c,C,E,A,L;!h&&!d&&!v&&!x&&(this.position.direction="down",h=!0);var _=h||x;_?(C=s,E=C+b,h?(A=u,L=Math.min(A+p,o),p=L-A):(L=u+p,A=Math.max(L-p,0),p=L-A)):(A=u,L=A+p,d?(E=s+b,C=Math.max(E-b,0),b=E-C):(C=s,E=Math.min(C+b,a),b=E-C)),this._box={l:C,t:A,w:b,h:p};var k=l>b,M=Sf.barLength+2*Sf.barPad,g=Sf.barWidth+2*Sf.barPad,P=s,T=u+c;T+g>o&&(T=o-g);var z=this.container.selectAll("rect.scrollbar-horizontal").data(k?[0]:[]);z.exit().on(".drag",null).remove(),z.enter().append("rect").classed("scrollbar-horizontal",!0).call(O0e.fill,Sf.barColor),k?(this.hbar=z.attr({rx:Sf.barRadius,ry:Sf.barRadius,x:P,y:T,width:M,height:g}),this._hbarXMin=P+M/2,this._hbarTranslateMax=b-M):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var O=c>p,V=Sf.barWidth+2*Sf.barPad,G=Sf.barLength+2*Sf.barPad,Z=s+l,H=u;Z+V>a&&(Z=a-V);var N=this.container.selectAll("rect.scrollbar-vertical").data(O?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-vertical",!0).call(O0e.fill,Sf.barColor),O?(this.vbar=N.attr({rx:Sf.barRadius,ry:Sf.barRadius,x:Z,y:H,width:V,height:G}),this._vbarYMin=H+G/2,this._vbarTranslateMax=p-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var j=this.id,re=C-.5,oe=O?E+V+.5:E+.5,_e=A-.5,Me=k?L+g+.5:L+.5,ke=i._topdefs.selectAll("#"+j).data(k||O?[0]:[]);if(ke.exit().remove(),ke.enter().append("clipPath").attr("id",j).append("rect"),k||O?(this._clipRect=ke.select("rect").attr({x:Math.floor(re),y:Math.floor(_e),width:Math.ceil(oe)-Math.floor(re),height:Math.ceil(Me)-Math.floor(_e)}),this.container.call(pT.setClipUrl,j,this.gd),this.bg.attr({x:s,y:u,width:l,height:c})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(pT.setClipUrl,null),delete this._clipRect),k||O){var me=Og.behavior.drag().on("dragstart",function(){Og.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(me);var ie=Og.behavior.drag().on("dragstart",function(){Og.event.sourceEvent.preventDefault(),Og.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));k&&this.hbar.on(".drag",null).call(ie),O&&this.vbar.on(".drag",null).call(ie)}this.setTranslate(r,n)};Sf.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(pT.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Sf.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Og.event.dx),this.vbar&&(r-=Og.event.dy),this.setTranslate(t,r)};Sf.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Og.event.deltaY),this.vbar&&(r+=Og.event.deltaY),this.setTranslate(t,r)};Sf.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var n=t+this._hbarXMin,i=n+this._hbarTranslateMax,a=mI.constrain(Og.event.x,n,i),o=(a-n)/(i-n),s=this.position.w-this._box.w;t=o*s}if(this.vbar){var l=r+this._vbarYMin,u=l+this._vbarTranslateMax,c=mI.constrain(Og.event.y,l,u),f=(c-l)/(u-l),h=this.position.h-this._box.h;r=f*h}this.setTranslate(t,r)};Sf.prototype.setTranslate=function(t,r){var n=this.position.w-this._box.w,i=this.position.h-this._box.h;if(t=mI.constrain(t||0,0,n),r=mI.constrain(r||0,0,i),this.translateX=t,this.translateY=r,this.container.call(pT.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var a=t/n;this.hbar.call(pT.setTranslate,t+a*this._hbarTranslateMax,r)}if(this.vbar){var o=r/i;this.vbar.call(pT.setTranslate,t,r+o*this._vbarTranslateMax)}}});var Y0e=ye((jor,Z0e)=>{"use strict";var gT=Oa(),r4=Mc(),i4=Ca(),mT=So(),e0=Dr(),yI=iu(),rgt=pl().arrayEditor,U0e=Kh().LINE_SPACING,es=pI(),igt=B0e();Z0e.exports=function(t){var r=t._fullLayout,n=e0.filterVisible(r[es.name]);function i(h){r4.autoMargin(t,W0e(h))}var a=r._menulayer.selectAll("g."+es.containerClassName).data(n.length>0?[0]:[]);if(a.enter().append("g").classed(es.containerClassName,!0).style("cursor","pointer"),a.exit().each(function(){gT.select(this).selectAll("g."+es.headerGroupClassName).each(i)}).remove(),n.length!==0){var o=a.selectAll("g."+es.headerGroupClassName).data(n,ngt);o.enter().append("g").classed(es.headerGroupClassName,!0);for(var s=e0.ensureSingle(a,"g",es.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),l=0;l{"use strict";var fgt=pI();K0e.exports={moduleType:"component",name:fgt.name,layoutAttributes:GU(),supplyLayoutDefaults:z0e(),draw:Y0e()}});var a4=ye((Xor,$0e)=>{"use strict";$0e.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var XU=ye((Zor,tge)=>{"use strict";var Q0e=ec(),hgt=A6(),dgt=Ao().extendDeepAll,vgt=mc().overrideAll,pgt=zS(),ege=pl().templatedArray,Jb=a4(),ggt=ege("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});tge.exports=vgt(ege("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:ggt,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:dgt(hgt({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:pgt.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:Q0e({})},font:Q0e({}),activebgcolor:{valType:"color",dflt:Jb.gripBgActiveColor},bgcolor:{valType:"color",dflt:Jb.railBgColor},bordercolor:{valType:"color",dflt:Jb.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Jb.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Jb.tickLength},tickcolor:{valType:"color",dflt:Jb.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Jb.minorTickLength}}),"arraydraw","from-root")});var age=ye((Yor,nge)=>{"use strict";var yT=Dr(),rge=Yd(),ige=XU(),mgt=a4(),ygt=mgt.name,_gt=ige.steps;nge.exports=function(t,r){rge(t,r,{name:ygt,handleItemDefaults:xgt})};function xgt(e,t,r){function n(f,h){return yT.coerce(e,t,ige,f,h)}for(var i=rge(e,t,{name:"steps",handleItemDefaults:bgt}),a=0,o=0;o{"use strict";var qg=Oa(),_I=Mc(),x_=Ca(),Bg=So(),t0=Dr(),wgt=t0.strTranslate,o4=iu(),Tgt=pl().arrayEditor,Ds=a4(),KU=Kh(),lge=KU.LINE_SPACING,ZU=KU.FROM_TL,YU=KU.FROM_BR;vge.exports=function(t){var r=t._context.staticPlot,n=t._fullLayout,i=Agt(n,t),a=n._infolayer.selectAll("g."+Ds.containerClassName).data(i.length>0?[0]:[]);a.enter().append("g").classed(Ds.containerClassName,!0).style("cursor",r?null:"ew-resize");function o(c){c._commandObserver&&(c._commandObserver.remove(),delete c._commandObserver),_I.autoMargin(t,uge(c))}if(a.exit().each(function(){qg.select(this).selectAll("g."+Ds.groupClassName).each(o)}).remove(),i.length!==0){var s=a.selectAll("g."+Ds.groupClassName).data(i,Sgt);s.enter().append("g").classed(Ds.groupClassName,!0),s.exit().each(o).remove();for(var l=0;l0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",wgt(o-Ds.gripWidth*.5,t._dims.currentValueTotalHeight))}}function JU(e,t){var r=e._dims;return r.inputAreaStart+Ds.stepInset+(r.inputAreaLength-2*Ds.stepInset)*Math.min(1,Math.max(0,t))}function sge(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-Ds.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*Ds.stepInset-2*r.inputAreaStart)))}function Igt(e,t,r){var n=r._dims,i=t0.ensureSingle(e,"rect",Ds.railTouchRectClass,function(a){a.call(hge,t,e,r).style("pointer-events","all")});i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Ds.tickOffset+r.ticklen+n.labelHeight)}).call(x_.fill,r.bgcolor).attr("opacity",0),Bg.setTranslate(i,0,n.currentValueTotalHeight)}function Rgt(e,t){var r=t._dims,n=r.inputAreaLength-Ds.railInset*2,i=t0.ensureSingle(e,"rect",Ds.railRectClass);i.attr({width:n,height:Ds.railWidth,rx:Ds.railRadius,ry:Ds.railRadius,"shape-rendering":"crispEdges"}).call(x_.stroke,t.bordercolor).call(x_.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),Bg.setTranslate(i,Ds.railInset,(r.inputAreaWidth-Ds.railWidth)*.5+r.currentValueTotalHeight)}});var mge=ye((Jor,gge)=>{"use strict";var Dgt=a4();gge.exports={moduleType:"component",name:Dgt.name,layoutAttributes:XU(),supplyLayoutDefaults:age(),draw:pge()}});var bI=ye(($or,_ge)=>{"use strict";var yge=Eh();_ge.exports={bgcolor:{valType:"color",dflt:yge.background,editType:"plot"},bordercolor:{valType:"color",dflt:yge.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var $U=ye((Qor,xge)=>{"use strict";xge.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var wI=ye((esr,bge)=>{"use strict";bge.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var Age=ye(AI=>{"use strict";var Fgt=Af(),zgt=iu(),wge=wI(),Ogt=Kh().LINE_SPACING,TI=wge.name;function Tge(e){var t=e&&e[TI];return t&&t.visible}AI.isVisible=Tge;AI.makeData=function(e){for(var t=Fgt.list({_fullLayout:e},"x",!0),r=e.margin,n=[],i=0;i{"use strict";var SI=Dr(),Sge=pl(),Mge=Af(),qgt=bI(),Bgt=$U();Ege.exports=function(t,r,n){var i=t[n],a=r[n];if(!(i.rangeslider||r._requestRangeslider[a._id]))return;SI.isPlainObject(i.rangeslider)||(i.rangeslider={});var o=i.rangeslider,s=Sge.newContainer(a,"rangeslider");function l(L,_){return SI.coerce(o,s,qgt,L,_)}var u,c;function f(L,_){return SI.coerce(u,c,Bgt,L,_)}var h=l("visible");if(h){l("bgcolor",r.plot_bgcolor),l("bordercolor"),l("borderwidth"),l("thickness"),l("autorange",!a.isValidRange(o.range)),l("range");var d=r._subplots;if(d)for(var v=d.cartesian.filter(function(L){return L.substr(0,L.indexOf("y"))===Mge.name2id(n)}).map(function(L){return L.substr(L.indexOf("y"),L.length)}),x=SI.simpleMap(v,Mge.id2name),b=0;b{"use strict";var Ngt=Af().list,Ugt=wg().getAutoRange,Vgt=wI();kge.exports=function(t){for(var r=Ngt(t,"x",!0),n=0;n{"use strict";var MI=Oa(),Ggt=qa(),Hgt=Mc(),Jf=Dr(),EI=Jf.strTranslate,Ige=So(),b_=Ca(),jgt=Mb(),Wgt=vh(),QU=Af(),Xgt=gv(),Zgt=Tg(),il=wI();Rge.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,n=0;n=N.max)Z=T[H+1];else if(G=N.pmax)Z=T[H+1];else if(G0?e.touches[0].clientX:0}function Ygt(e,t,r,n){if(t._context.staticPlot)return;var i=e.select("rect."+il.slideBoxClassName).node(),a=e.select("rect."+il.grabAreaMinClassName).node(),o=e.select("rect."+il.grabAreaMaxClassName).node();function s(){var l=MI.event,u=l.target,c=Pge(l),f=c-e.node().getBoundingClientRect().left,h=n.d2p(r._rl[0]),d=n.d2p(r._rl[1]),v=Xgt.coverSlip();this.addEventListener("touchmove",x),this.addEventListener("touchend",b),v.addEventListener("mousemove",x),v.addEventListener("mouseup",b);function x(p){var C=Pge(p),E=+C-c,A,L,_;switch(u){case i:if(_="ew-resize",h+E>r._length||d+E<0)return;A=h+E,L=d+E;break;case a:if(_="col-resize",h+E>r._length)return;A=h+E,L=d;break;case o:if(_="col-resize",d+E<0)return;A=h,L=d+E;break;default:_="ew-resize",A=f,L=f+E;break}if(L{"use strict";var amt=Dr(),omt=bI(),smt=$U(),eV=Age();Fge.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:amt.extendFlat({},omt,{yaxis:smt})}}},layoutAttributes:bI(),handleDefaults:Cge(),calcAutorange:Lge(),draw:Dge(),isVisible:eV.isVisible,makeData:eV.makeData,autoMarginOpts:eV.autoMarginOpts}});var CI=ye((osr,qge)=>{"use strict";var lmt=ec(),Oge=Eh(),umt=pl().templatedArray,cmt=umt("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});qge.exports={visible:{valType:"boolean",editType:"plot"},buttons:cmt,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:lmt({editType:"plot"}),bgcolor:{valType:"color",dflt:Oge.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:Oge.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var tV=ye((ssr,Bge)=>{"use strict";Bge.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var Vge=ye((lsr,Uge)=>{"use strict";var kI=Dr(),fmt=Ca(),hmt=pl(),dmt=Yd(),Nge=CI(),rV=tV();Uge.exports=function(t,r,n,i,a){var o=t.rangeselector||{},s=hmt.newContainer(r,"rangeselector");function l(d,v){return kI.coerce(o,s,Nge,d,v)}var u=dmt(o,s,{name:"buttons",handleItemDefaults:vmt,calendar:a}),c=l("visible",u.length>0);if(c){var f=pmt(r,n,i);l("x",f[0]),l("y",f[1]),kI.noneOrAll(t,r,["x","y"]),l("xanchor"),l("yanchor"),kI.coerceFont(l,"font",n.font);var h=l("bgcolor");l("activecolor",fmt.contrast(h,rV.lightAmount,rV.darkAmount)),l("bordercolor"),l("borderwidth")}};function vmt(e,t,r,n){var i=n.calendar;function a(l,u){return kI.coerce(e,t,Nge.buttons,l,u)}var o=a("visible");if(o){var s=a("step");s!=="all"&&(i&&i!=="gregorian"&&(s==="month"||s==="year")?t.stepmode="backward":a("stepmode"),a("count")),a("label")}}function pmt(e,t,r){for(var n=r.filter(function(s){return t[s].anchor===e._id}),i=0,a=0;a{"use strict";var gmt=gO(),mmt=Dr().titleCase;Gge.exports=function(t,r){var n=t._name,i={};if(r.step==="all")i[n+".autorange"]=!0;else{var a=ymt(t,r);i[n+".range[0]"]=a[0],i[n+".range[1]"]=a[1]}return i};function ymt(e,t){var r=e.range,n=new Date(e.r2l(r[1])),i=t.step,a=gmt["utc"+mmt(i)],o=t.count,s;switch(t.stepmode){case"backward":s=e.l2r(+a.offset(n,-o));break;case"todate":var l=a.offset(n,-o);s=e.l2r(+a.ceil(l));break}var u=r[1];return[s,u]}});var $ge=ye((csr,Jge)=>{"use strict";var PI=Oa(),_mt=qa(),xmt=Mc(),jge=Ca(),Kge=So(),Iy=Dr(),Wge=Iy.strTranslate,LI=iu(),bmt=Af(),aV=Kh(),Xge=aV.LINE_SPACING,Zge=aV.FROM_TL,Yge=aV.FROM_BR,nV=tV(),wmt=Hge();Jge.exports=function(t){var r=t._fullLayout,n=r._infolayer.selectAll(".rangeselector").data(Tmt(t),Amt);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(i){var a=PI.select(this),o=i,s=o.rangeselector,l=a.selectAll("g.button").data(Iy.filterVisible(s.buttons));l.enter().append("g").classed("button",!0),l.exit().remove(),l.each(function(u){var c=PI.select(this),f=wmt(o,u);u._isActive=Smt(o,u,f),c.call(iV,s,u),c.call(Emt,s,u,t),c.on("click",function(){t._dragged||_mt.call("_guiRelayout",t,f)}),c.on("mouseover",function(){u._isHovered=!0,c.call(iV,s,u)}),c.on("mouseout",function(){u._isHovered=!1,c.call(iV,s,u)})}),kmt(t,l,s,o._name,a)})};function Tmt(e){for(var t=bmt.list(e,"x",!0),r=[],n=0;n{"use strict";Qge.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:CI()}}},layoutAttributes:CI(),handleDefaults:Vge(),draw:$ge()}});var kc=ye(oV=>{"use strict";var tme=Ao().extendFlat;oV.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",i=e.trace?"trace ":"subplot ",a=t.description?" "+t.description:"",o={x:tme({},r,{}),y:tme({},r,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};oV.defaults=function(e,t,r,n){var i=n&&n.x||[0,1],a=n&&n.y||[0,1],o=t.grid;if(o){var s=r("domain.column");s!==void 0&&(s{"use strict";var Lmt=Dr(),Pmt=n3().counter,Imt=kc().attributes,rme=hd().idRegex,Rmt=pl(),sV={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Pmt("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[rme.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[rme.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Imt({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function II(e,t,r){var n=t[r+"axes"],i=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(n))return n;if(i.length)return i}function Dmt(e,t){var r=e.grid||{},n=II(t,r,"x"),i=II(t,r,"y");if(!e.grid&&!n&&!i)return;var a=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),o=Array.isArray(n),s=Array.isArray(i),l=o&&n!==r.xaxes&&s&&i!==r.yaxes,u,c;a?(u=r.subplots.length,c=r.subplots[0].length):(s&&(u=i.length),o&&(c=n.length));var f=Rmt.newContainer(t,"grid");function h(_,k){return Lmt.coerce(r,f,sV,_,k)}var d=h("rows",u),v=h("columns",c);if(!(d*v>1)){delete t.grid;return}if(!a&&!o&&!s){var x=h("pattern")==="independent";x&&(a=!0)}f._hasSubplotGrid=a;var b=h("roworder"),p=b==="top to bottom",C=a?.2:.1,E=a?.3:.1,A,L;l&&t._splomGridDflt&&(A=t._splomGridDflt.xside,L=t._splomGridDflt.yside),f._domains={x:ime("x",h,C,A,v),y:ime("y",h,E,L,d,p)}}function ime(e,t,r,n,i,a){var o=t(e+"gap",r),s=t("domain."+e);t(e+"side",n);for(var l=new Array(i),u=s[0],c=(s[1]-u)/(i-o),f=c*(1-o),h=0;h{"use strict";ome.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var ume=ye((psr,lme)=>{"use strict";var sme=Eo(),zmt=qa(),Omt=Dr(),qmt=pl(),Bmt=uV();lme.exports=function(e,t,r,n){var i="error_"+n.axis,a=qmt.newContainer(t,i),o=e[i]||{};function s(v,x){return Omt.coerce(o,a,Bmt,v,x)}var l=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=s("visible",l);if(u!==!1){var c=s("type","array"in o?"data":"percent"),f=!0;c!=="sqrt"&&(f=s("symmetric",!((c==="data"?"arrayminus":"valueminus")in o))),c==="data"?(s("array"),s("traceref"),f||(s("arrayminus"),s("tracerefminus"))):(c==="percent"||c==="constant")&&(s("value"),f||s("valueminus"));var h="copy_"+n.inherit+"style";if(n.inherit){var d=t["error_"+n.inherit];(d||{}).visible&&s(h,!(o.color||sme(o.thickness)||sme(o.width)))}(!n.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",zmt.traceIs(t,"gl3d")?0:4))}}});var cV=ye((gsr,fme)=>{"use strict";fme.exports=function(t){var r=t.type,n=t.symmetric;if(r==="data"){var i=t.array||[];if(n)return function(u,c){var f=+i[c];return[f,f]};var a=t.arrayminus||[];return function(u,c){var f=+i[c],h=+a[c];return!isNaN(f)||!isNaN(h)?[h||0,f||0]:[NaN,NaN]}}else{var o=cme(r,t.value),s=cme(r,t.valueminus);return n||t.valueminus===void 0?function(u){var c=o(u);return[c,c]}:function(u){return[s(u),o(u)]}}};function cme(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var vme=ye((msr,dme)=>{"use strict";var fV=Eo(),Nmt=qa(),hV=ho(),Umt=Dr(),Vmt=cV();dme.exports=function(t){for(var r=t.calcdata,n=0;n{"use strict";var pme=Oa(),w_=Eo(),Gmt=So(),Hmt=Ru();gme.exports=function(t,r,n,i){var a,o=n.xaxis,s=n.yaxis,l=i&&i.duration>0,u=t._context.staticPlot;r.each(function(c){var f=c[0].trace,h=f.error_x||{},d=f.error_y||{},v;f.ids&&(v=function(C){return C.id});var x=Hmt.hasMarkers(f)&&f.marker.maxdisplayed>0;!d.visible&&!h.visible&&(c=[]);var b=pme.select(this).selectAll("g.errorbar").data(c,v);if(b.exit().remove(),!!c.length){h.visible||b.selectAll("path.xerror").remove(),d.visible||b.selectAll("path.yerror").remove(),b.style("opacity",1);var p=b.enter().append("g").classed("errorbar",!0);l&&p.style("opacity",0).transition().duration(i.duration).style("opacity",1),Gmt.setClipUrl(b,n.layerClipId,t),b.each(function(C){var E=pme.select(this),A=jmt(C,o,s);if(!(x&&!C.vis)){var L,_=E.select("path.yerror");if(d.visible&&w_(A.x)&&w_(A.yh)&&w_(A.ys)){var k=d.width;L="M"+(A.x-k)+","+A.yh+"h"+2*k+"m-"+k+",0V"+A.ys,A.noYS||(L+="m-"+k+",0h"+2*k),a=!_.size(),a?_=E.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):l&&(_=_.transition().duration(i.duration).ease(i.easing)),_.attr("d",L)}else _.remove();var M=E.select("path.xerror");if(h.visible&&w_(A.y)&&w_(A.xh)&&w_(A.xs)){var g=(h.copy_ystyle?d:h).width;L="M"+A.xh+","+(A.y-g)+"v"+2*g+"m0,-"+g+"H"+A.xs,A.noXS||(L+="m0,-"+g+"v"+2*g),a=!M.size(),a?M=E.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):l&&(M=M.transition().duration(i.duration).ease(i.easing)),M.attr("d",L)}else M.remove()}})}})};function jmt(e,t,r){var n={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(n.yh=r.c2p(e.yh),n.ys=r.c2p(e.ys),w_(n.ys)||(n.noYS=!0,n.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=t.c2p(e.xh),n.xs=t.c2p(e.xs),w_(n.xs)||(n.noXS=!0,n.xs=t.c2p(e.xs,!0))),n}});var xme=ye((_sr,_me)=>{"use strict";var Wmt=Oa(),yme=Ca();_me.exports=function(t){t.each(function(r){var n=r[0].trace,i=n.error_y||{},a=n.error_x||{},o=Wmt.select(this);o.selectAll("path.yerror").style("stroke-width",i.thickness+"px").call(yme.stroke,i.color),a.copy_ystyle&&(a=i),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(yme.stroke,a.color)})}});var Tme=ye((xsr,wme)=>{"use strict";var s4=Dr(),bme=mc().overrideAll,l4=uV(),$b={error_x:s4.extendFlat({},l4),error_y:s4.extendFlat({},l4)};delete $b.error_x.copy_zstyle;delete $b.error_y.copy_zstyle;delete $b.error_y.copy_ystyle;var u4={error_x:s4.extendFlat({},l4),error_y:s4.extendFlat({},l4),error_z:s4.extendFlat({},l4)};delete u4.error_x.copy_ystyle;delete u4.error_y.copy_ystyle;delete u4.error_z.copy_ystyle;delete u4.error_z.copy_zstyle;wme.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:$b,bar:$b,histogram:$b,scatter3d:bme(u4,"calc","nested"),scattergl:bme($b,"calc","nested")}},supplyDefaults:ume(),calc:vme(),makeComputeError:cV(),plot:mme(),style:xme(),hoverInfo:Xmt};function Xmt(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var Sme=ye((bsr,Ame)=>{"use strict";Ame.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var Ime=ye((wsr,Pme)=>{"use strict";var T_=Oa(),dV=cd(),DI=Mc(),Mme=qa(),Ry=ho(),RI=gv(),B0=Dr(),Ug=B0.strTranslate,Lme=Ao().extendFlat,vV=Tg(),Ng=So(),pV=Ca(),Zmt=Mb(),Ymt=iu(),Kmt=Dv().flipScale,Jmt=$M(),$mt=aI(),Qmt=Rd(),gV=Kh(),Eme=gV.LINE_SPACING,Cme=gV.FROM_TL,kme=gV.FROM_BR,pf=Sme().cn;function eyt(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+pf.colorbar).data(tyt(e),function(n){return n._id});r.enter().append("g").attr("class",function(n){return n._id}).classed(pf.colorbar,!0),r.each(function(n){var i=T_.select(this);B0.ensureSingle(i,"rect",pf.cbbg),B0.ensureSingle(i,"g",pf.cbfills),B0.ensureSingle(i,"g",pf.cblines),B0.ensureSingle(i,"g",pf.cbaxis,function(o){o.classed(pf.crisp,!0)}),B0.ensureSingle(i,"g",pf.cbtitleunshift,function(o){o.append("g").classed(pf.cbtitle,!0)}),B0.ensureSingle(i,"rect",pf.cboutline);var a=ryt(i,n,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&iyt(i,n,e)}),r.exit().each(function(n){DI.autoMargin(e,n._id)}).remove(),r.order()}function tyt(e){var t=e._fullLayout,r=e.calcdata,n=[],i,a,o,s;function l(E){return Lme(E,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof s.calc=="function"?s.calc(e,o,i):(i._fillgradient=a.reversescale?Kmt(a.colorscale):a.colorscale,i._zrange=[a[s.min],a[s.max]])}for(var c=0;c1){var De=Math.pow(10,Math.floor(Math.log(ge)/Math.LN10));Fe*=De*B0.roundUp(ge/De,[2,5,10]),(Math.abs(z.start)/z.size+1e-6)%1<2e-6&&(Le.tick0=0)}Le.dtick=Fe}Le.domain=n?[ie+v/A.h,ie+j-v/A.h]:[ie+d/A.w,ie+j-d/A.w],Le.setScale(),e.attr("transform",Ug(Math.round(A.l),Math.round(A.t)));var ce=e.select("."+pf.cbtitleunshift).attr("transform",Ug(-Math.round(A.l),-Math.round(A.t))),Ze=Le.ticklabelposition,ut=Le.title.font.size,gt=e.select("."+pf.cbaxis),Kt,st=0,lt=0;function Gt(ur,$e){var Mt={propContainer:Le,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:E._dfltTitle.colorbar,containerGroup:e.select("."+pf.cbtitle)},Ct=ur.charAt(0)==="h"?ur.substr(1):"h"+ur;e.selectAll("."+Ct+",."+Ct+"-math-group").remove(),Zmt.draw(r,ur,Lme(Mt,$e||{}))}function Ut(){if(n&&Ae||!n&&!Ae){var ur,$e;M==="top"&&(ur=d+A.l+re*x,$e=v+A.t+oe*(1-ie-j)+3+ut*.75),M==="bottom"&&(ur=d+A.l+re*x,$e=v+A.t+oe*(1-ie)-3-ut*.25),M==="right"&&($e=v+A.t+oe*b+3+ut*.75,ur=d+A.l+re*ie),Gt(Le._id+"title",{attributes:{x:ur,y:$e,"text-anchor":n?"start":"middle"}})}}function $t(){if(n&&!Ae||!n&&Ae){var ur=Le.position||0,$e=Le._offset+Le._length/2,Mt,Ct;if(M==="right")Ct=$e,Mt=A.l+re*ur+10+ut*(Le.showticklabels?1:.5);else if(Mt=$e,M==="bottom"&&(Ct=A.t+oe*ur+10+(Ze.indexOf("inside")===-1?Le.tickfont.size:0)+(Le.ticks!=="intside"&&t.ticklen||0)),M==="top"){var Vt=k.text.split("
").length;Ct=A.t+oe*ur+10-Z-Eme*ut*Vt}Gt((n?"h":"v")+Le._id+"title",{avoid:{selection:T_.select(r).selectAll("g."+Le._id+"tick"),side:M,offsetTop:n?0:A.t,offsetLeft:n?A.l:0,maxShift:n?E.width:E.height},attributes:{x:Mt,y:Ct,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function sr(){if(!n&&!Ae||n&&Ae){var ur=e.select("."+pf.cbtitle),$e=ur.select("text"),Mt=[-l/2,l/2],Ct=ur.select(".h"+Le._id+"title-math-group").node(),Vt=15.6;$e.node()&&(Vt=parseInt($e.node().style.fontSize,10)*Eme);var It;if(Ct?(It=Ng.bBox(Ct),lt=It.width,st=It.height,st>Vt&&(Mt[1]-=(st-Vt)/2)):$e.node()&&!$e.classed(pf.jsPlaceholder)&&(It=Ng.bBox($e.node()),lt=It.width,st=It.height),n){if(st){if(st+=5,M==="top")Le.domain[1]-=st/A.h,Mt[1]*=-1;else{Le.domain[0]+=st/A.h;var Ot=Ymt.lineCount($e);Mt[1]+=(1-Ot)*Vt}ur.attr("transform",Ug(Mt[0],Mt[1])),Le.setScale()}}else lt&&(M==="right"&&(Le.domain[0]+=(lt+ut/2)/A.w),ur.attr("transform",Ug(Mt[0],Mt[1])),Le.setScale())}e.selectAll("."+pf.cbfills+",."+pf.cblines).attr("transform",n?Ug(0,Math.round(A.h*(1-Le.domain[1]))):Ug(Math.round(A.w*Le.domain[0]),0)),gt.attr("transform",n?Ug(0,Math.round(-A.t)):Ug(Math.round(-A.l),0));var bt=e.select("."+pf.cbfills).selectAll("rect."+pf.cbfill).attr("style","").data(V);bt.enter().append("rect").classed(pf.cbfill,!0).attr("style",""),bt.exit().remove();var rr=g.map(Le.c2p).map(Math.round).sort(function(Gr,Yr){return Gr-Yr});bt.each(function(Gr,Yr){var dt=[Yr===0?g[0]:(V[Yr]+V[Yr-1])/2,Yr===V.length-1?g[1]:(V[Yr]+V[Yr+1])/2].map(Le.c2p).map(Math.round);n&&(dt[1]=B0.constrain(dt[1]+(dt[1]>dt[0])?1:-1,rr[0],rr[1]));var Ge=T_.select(this).attr(n?"x":"y",_e).attr(n?"y":"x",T_.min(dt)).attr(n?"width":"height",Math.max(Z,2)).attr(n?"height":"width",Math.max(T_.max(dt)-T_.min(dt),2));if(t._fillgradient)Ng.gradient(Ge,r,t._id,n?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Qe=T(Gr).replace("e-","");Ge.attr("fill",dV(Qe).toHexString())}});var lr=e.select("."+pf.cblines).selectAll("path."+pf.cbline).data(_.color&&_.width?G:[]);lr.enter().append("path").classed(pf.cbline,!0),lr.exit().remove(),lr.each(function(Gr){var Yr=_e,dt=Math.round(Le.c2p(Gr))+_.width/2%1;T_.select(this).attr("d","M"+(n?Yr+","+dt:dt+","+Yr)+(n?"h":"v")+Z).call(Ng.lineGroupStyle,_.width,P(Gr),_.dash)}),gt.selectAll("g."+Le._id+"tick,path").remove();var wr=_e+Z+(l||0)/2-(t.ticks==="outside"?1:0),Cr=Ry.calcTicks(Le),Kr=Ry.getTickSigns(Le)[2];return Ry.drawTicks(r,Le,{vals:Le.ticks==="inside"?Ry.clipEnds(Le,Cr):Cr,layer:gt,path:Ry.makeTickPath(Le,wr,Kr),transFn:Ry.makeTransTickFn(Le)}),Ry.drawLabels(r,Le,{vals:Cr,layer:gt,transFn:Ry.makeTransTickLabelFn(Le),labelFns:Ry.makeLabelFns(Le,wr)})}function Tr(){var ur,$e=Z+l/2;Ze.indexOf("inside")===-1&&(ur=Ng.bBox(gt.node()),$e+=n?ur.width:ur.height),Kt=ce.select("text");var Mt=0,Ct=n&&M==="top",Vt=!n&&M==="right",It=0;if(Kt.node()&&!Kt.classed(pf.jsPlaceholder)){var Ot,bt=ce.select(".h"+Le._id+"title-math-group").node();bt&&(n&&Ae||!n&&!Ae)?(ur=Ng.bBox(bt),Mt=ur.width,Ot=ur.height):(ur=Ng.bBox(ce.node()),Mt=ur.right-A.l-(n?_e:Se),Ot=ur.bottom-A.t-(n?Se:_e),!n&&M==="top"&&($e+=ur.height,It=ur.height)),Vt&&(Kt.attr("transform",Ug(Mt/2+ut/2,0)),Mt*=2),$e=Math.max($e,n?Mt:Ot)}var rr=(n?d:v)*2+$e+u+l/2,lr=0;!n&&k.text&&h==="bottom"&&b<=0&&(lr=rr/2,rr+=lr,It+=lr),E._hColorbarMoveTitle=lr,E._hColorbarMoveCBTitle=It;var wr=u+l,Cr=(n?_e:Se)-wr/2-(n?d:0),Kr=(n?Se:_e)-(n?N:v+It-lr);e.select("."+pf.cbbg).attr("x",Cr).attr("y",Kr).attr(n?"width":"height",Math.max(rr-lr,2)).attr(n?"height":"width",Math.max(N+wr,2)).call(pV.fill,c).call(pV.stroke,t.bordercolor).style("stroke-width",u);var Gr=Vt?Math.max(Mt-10,0):0;e.selectAll("."+pf.cboutline).attr("x",(n?_e:Se+d)+Gr).attr("y",(n?Se+v-N:_e)+(Ct?st:0)).attr(n?"width":"height",Math.max(Z,2)).attr(n?"height":"width",Math.max(N-(n?2*v+st:2*d+Gr),2)).call(pV.stroke,t.outlinecolor).style({fill:"none","stroke-width":l});var Yr=n?Me*rr:0,dt=n?0:(1-ke)*rr-It;if(Yr=C?A.l-Yr:-Yr,dt=p?A.t-dt:-dt,e.attr("transform",Ug(Yr,dt)),!n&&(u||dV(c).getAlpha()&&!dV.equals(E.paper_bgcolor,c))){var Ge=gt.selectAll("text"),Qe=Ge[0].length,je=e.select("."+pf.cbbg).node(),Je=Ng.bBox(je),xt=Ng.getTranslate(e),Ie=2;Ge.each(function(vi,ji){var Rn=0,wn=Qe-1;if(ji===Rn||ji===wn){var pn=Ng.bBox(this),Vn=Ng.getTranslate(this),kn;if(ji===wn){var ea=pn.right+Vn.x,ua=Je.right+xt.x+Se-u-Ie+x;kn=ua-ea,kn>0&&(kn=0)}else if(ji===Rn){var Ht=pn.left+Vn.x,yt=Je.left+xt.x+Se+u+Ie;kn=yt-Ht,kn<0&&(kn=0)}kn&&(Qe<3?this.setAttribute("transform","translate("+kn+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var xe={},Ce=Cme[f],pt=kme[f],nr=Cme[h],ir=kme[h],vr=rr-Z;n?(a==="pixels"?(xe.y=b,xe.t=N*nr,xe.b=N*ir):(xe.t=xe.b=0,xe.yt=b+i*nr,xe.yb=b-i*ir),s==="pixels"?(xe.x=x,xe.l=rr*Ce,xe.r=rr*pt):(xe.l=vr*Ce,xe.r=vr*pt,xe.xl=x-o*Ce,xe.xr=x+o*pt)):(a==="pixels"?(xe.x=x,xe.l=N*Ce,xe.r=N*pt):(xe.l=xe.r=0,xe.xl=x+i*Ce,xe.xr=x-i*pt),s==="pixels"?(xe.y=1-b,xe.t=rr*nr,xe.b=rr*ir):(xe.t=vr*nr,xe.b=vr*ir,xe.yt=b-o*nr,xe.yb=b+o*ir));var si=t.y<.5?"b":"t",mi=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var ei={r:E.width-Cr-Yr,l:Cr+xe.r,b:E.height-Kr-dt,t:Kr+xe.b};C&&p?DI.autoMargin(r,t._id,xe):C?r._fullLayout._reservedMargin[t._id][si]=ei[si]:p||n?r._fullLayout._reservedMargin[t._id][mi]=ei[mi]:r._fullLayout._reservedMargin[t._id][si]=ei[si]}return B0.syncOrAsync([DI.previousPromises,Ut,sr,$t,DI.previousPromises,Tr],r)}function iyt(e,t,r){var n=t.orientation==="v",i=r._fullLayout,a=i._size,o,s,l;RI.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),vV(e)},moveFn:function(u,c){e.attr("transform",o+Ug(u,c)),s=RI.align((n?t._uFrac:t._vFrac)+u/a.w,n?t._thickFrac:t._lenFrac,0,1,t.xanchor),l=RI.align((n?t._vFrac:1-t._uFrac)-c/a.h,n?t._lenFrac:t._thickFrac,0,1,t.yanchor);var f=RI.getCursor(s,l,t.xanchor,t.yanchor);vV(e,f)},doneFn:function(){if(vV(e),s!==void 0&&l!==void 0){var u={};u[t._propPrefix+"x"]=s,u[t._propPrefix+"y"]=l,t._traceIndex!==void 0?Mme.call("_guiRestyle",r,u,t._traceIndex):Mme.call("_guiRelayout",r,u)}}})}function nyt(e,t,r){var n=t._levels,i=[],a=[],o,s,l=n.end+n.size/100,u=n.size,c=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(s=0;s<1e5&&(o=n.start+s*u,!(u>0?o>=l:o<=l));s++)o>c&&o0?o>=l:o<=l));s++)o>r[0]&&o{"use strict";Rme.exports={moduleType:"component",name:"colorbar",attributes:$6(),supplyDefaults:Cq(),draw:Ime().draw,hasColorbar:bq()}});var zme=ye((Asr,Fme)=>{"use strict";Fme.exports={moduleType:"component",name:"legend",layoutAttributes:bB(),supplyLayoutDefaults:AB(),draw:zB(),style:IB()}});var qme=ye((Ssr,Ome)=>{"use strict";Ome.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var Nme=ye((Msr,Bme)=>{"use strict";Bme.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var yV=ye((Esr,Hme)=>{"use strict";var oyt=qa(),Gme=Dr(),mV=Gme.extendFlat,Ume=Gme.extendDeep;function Vme(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function syt(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}Hme.exports=function(t,r){var n,i=t.data,a=t.layout,o=Ume([],i),s=Ume({},a,Vme(r.tileClass)),l=t._context||{};if(r.width&&(s.width=r.width),r.height&&(s.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){s.annotations=[];var u=Object.keys(s);for(n=0;n{"use strict";var lyt=vb().EventEmitter,uyt=qa(),cyt=Dr(),jme=Ly(),fyt=yV(),hyt=UP(),dyt=VP();function vyt(e,t){var r=new lyt,n=fyt(e,{format:"png"}),i=n.gd;i.style.position="absolute",i.style.left="-5000px",document.body.appendChild(i);function a(){var s=jme.getDelay(i._fullLayout);setTimeout(function(){var l=hyt(i),u=document.createElement("canvas");u.id=cyt.randstr(),r=dyt({format:t.format,width:i._fullLayout.width,height:i._fullLayout.height,canvas:u,emitter:r,svg:l}),r.clean=function(){i&&document.body.removeChild(i)}},s)}var o=jme.getRedrawFunc(i);return uyt.call("_doPlot",i,n.data,n.layout,n.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}Wme.exports=vyt});var Kme=ye((ksr,Yme)=>{"use strict";var Zme=Ly(),pyt={getDelay:Zme.getDelay,getRedrawFunc:Zme.getRedrawFunc,clone:yV(),toSVG:UP(),svgToImg:VP(),toImage:Xme(),downloadImage:QN()};Yme.exports=pyt});var $me=ye(Dy=>{"use strict";Dy.version=r6().version;hee();tne();var gyt=qa(),c4=Dy.register=gyt.register,xV=xde(),Jme=Object.keys(xV);for(FI=0;FI{"use strict";Qme.exports=$me()});var Qb=ye((Isr,tye)=>{"use strict";tye.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Lm=ye((Rsr,aye)=>{"use strict";var zf=vf(),rye=ff().axisHoverFormat,myt=rs().hovertemplateAttrs,yyt=rs().texttemplateAttrs,nye=Tu(),_yt=ec(),iye=Qb(),xyt=Pd().pattern,e2=Ao().extendFlat,bV=_yt({editType:"calc",arrayOk:!0,colorEditType:"style"}),byt=zf.marker,wyt=byt.line,Tyt=e2({},wyt.width,{dflt:0}),Ayt=e2({width:Tyt,editType:"calc"},nye("marker.line")),Syt=e2({line:Ayt,editType:"calc"},nye("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:xyt,cornerradius:{valType:"any",editType:"calc"}});aye.exports={x:zf.x,x0:zf.x0,dx:zf.dx,y:zf.y,y0:zf.y0,dy:zf.dy,xperiod:zf.xperiod,yperiod:zf.yperiod,xperiod0:zf.xperiod0,yperiod0:zf.yperiod0,xperiodalignment:zf.xperiodalignment,yperiodalignment:zf.yperiodalignment,xhoverformat:rye("x"),yhoverformat:rye("y"),text:zf.text,texttemplate:yyt({editType:"plot"},{keys:iye.eventDataKeys}),hovertext:zf.hovertext,hovertemplate:myt({},{keys:iye.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:e2({},bV,{}),insidetextfont:e2({},bV,{}),outsidetextfont:e2({},bV,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:e2({},zf.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:Syt,offsetgroup:zf.offsetgroup,alignmentgroup:zf.alignmentgroup,selected:{marker:{opacity:zf.selected.marker.opacity,color:zf.selected.marker.color,editType:"style"},textfont:zf.selected.textfont,editType:"style"},unselected:{marker:{opacity:zf.unselected.marker.opacity,color:zf.unselected.marker.color,editType:"style"},textfont:zf.unselected.textfont,editType:"style"},zorder:zf.zorder}});var OI=ye((Dsr,oye)=>{"use strict";oye.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var qI=ye((Fsr,uye)=>{"use strict";var Myt=Ca(),sye=Dv().hasColorscale,lye=Jh(),Eyt=Dr().coercePattern;uye.exports=function(t,r,n,i,a){var o=n("marker.color",i),s=sye(t,"marker");s&&lye(t,r,a,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",Myt.defaultLine),sye(t,"marker.line")&&lye(t,r,a,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width"),n("marker.opacity"),Eyt(n,"marker.pattern",o,s),n("selected.marker.color"),n("unselected.marker.color")}});var r0=ye((zsr,pye)=>{"use strict";var cye=Eo(),xT=Dr(),fye=Ca(),Cyt=qa(),kyt=K3(),Lyt=Pg(),Pyt=qI(),Iyt=Gb(),hye=Lm(),BI=xT.coerceFont;function Ryt(e,t,r,n){function i(u,c){return xT.coerce(e,t,hye,u,c)}var a=kyt(e,t,n,i);if(!a){t.visible=!1;return}Lyt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate");var o=i("textposition");vye(e,t,n,i,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),Pyt(e,t,i,r,n);var s=(t.marker.line||{}).color,l=Cyt.getComponentMethod("errorbars","supplyDefaults");l(e,t,s||fye.defaultLine,{axis:"y"}),l(e,t,s||fye.defaultLine,{axis:"x",inherit:"y"}),xT.coerceSelectionMarkerOpacity(t,i)}function Dyt(e,t){var r,n;function i(s,l){return xT.coerce(n._input,n,hye,s,l)}for(var a=0;a=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&cye(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function vye(e,t,r,n,i,a){a=a||{};var o=a.moduleHasSelected!==!1,s=a.moduleHasUnselected!==!1,l=a.moduleHasConstrain!==!1,u=a.moduleHasCliponaxis!==!1,c=a.moduleHasTextangle!==!1,f=a.moduleHasInsideanchor!==!1,h=!!a.hasPathbar,d=Array.isArray(i)||i==="auto",v=d||i==="inside",x=d||i==="outside";if(v||x){var b=BI(n,"textfont",r.font),p=xT.extendFlat({},b),C=e.textfont&&e.textfont.color,E=!C;if(E&&delete p.color,BI(n,"insidetextfont",p),h){var A=xT.extendFlat({},b);E&&delete A.color,BI(n,"pathbar.textfont",A)}x&&BI(n,"outsidetextfont",b),o&&n("selected.textfont.color"),s&&n("unselected.textfont.color"),l&&n("constraintext"),u&&n("cliponaxis"),c&&n("textangle"),n("texttemplate")}v&&f&&n("insidetextanchor")}pye.exports={supplyDefaults:Ryt,crossTraceDefaults:Dyt,handleText:vye,validateCornerradius:dye}});var wV=ye((Osr,gye)=>{"use strict";var Fyt=qa(),zyt=ho(),Oyt=Dr(),qyt=OI(),Byt=r0().validateCornerradius;gye.exports=function(e,t,r){function n(x,b){return Oyt.coerce(e,t,qyt,x,b)}for(var i=!1,a=!1,o=!1,s={},l=n("barmode"),u=l==="group",c=0;c0&&!s[h]&&(o=!0),s[h]=!0),f.visible&&f.type==="histogram"){var d=zyt.getFromId({_fullLayout:t},f[f.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(a=!0)}}if(!i){delete t.barmode;return}l!=="overlay"&&n("barnorm"),n("bargap",a&&!o?0:.2),n("bargroupgap");var v=n("barcornerradius");t.barcornerradius=Byt(v)}});var f4=ye((qsr,mye)=>{"use strict";var bT=Dr();mye.exports=function(t,r){for(var n=0;n{"use strict";var yye=ho(),_ye=Rg(),xye=Dv().hasColorscale,bye=Fv(),Nyt=f4(),Uyt=z0();wye.exports=function(t,r){var n=yye.getFromId(t,r.xaxis||"x"),i=yye.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c,f={msUTC:!!(r.base||r.base===0)};r.orientation==="h"?(a=n.makeCalcdata(r,"x",f),s=i.makeCalcdata(r,"y"),l=_ye(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y",f),s=n.makeCalcdata(r,"x"),l=_ye(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;for(var h=Math.min(o.length,a.length),d=new Array(h),v=0;v{"use strict";var Vyt=Oa(),Gyt=Dr();function Hyt(e,t,r){var n=e._fullLayout,i=n["_"+r+"Text_minsize"];if(i){var a=n.uniformtext.mode==="hide",o;switch(r){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}t.selectAll(o).each(function(s){var l=s.transform;if(l){l.scale=a&&l.hide?0:i/l.fontSize;var u=Vyt.select(this).select("text");Gyt.setTransormAndDisplay(u,l)}})}}function jyt(e,t,r){if(r.uniformtext.mode){var n=Aye(e),i=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a{"use strict";var Xyt=Eo(),Zyt=cd(),Mye=Dr().isArrayOrTypedArray;t2.coerceString=function(e,t,r){if(typeof t=="string"){if(t||!e.noBlank)return t}else if((typeof t=="number"||t===!0)&&!e.strict)return String(t);return r!==void 0?r:e.dflt};t2.coerceNumber=function(e,t,r){if(Xyt(t)){t=+t;var n=e.min,i=e.max,a=n!==void 0&&ti;if(!a)return t}return r!==void 0?r:e.dflt};t2.coerceColor=function(e,t,r){return Zyt(t).isValid()?t:r!==void 0?r:e.dflt};t2.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};t2.getValue=function(e,t){var r;return Mye(e)?t{"use strict";var h4=Oa(),Yyt=Ca(),d4=So(),Eye=Dr(),Cye=qa(),kye=_v().resizeText,TV=Lm(),Kyt=TV.textfont,Jyt=TV.insidetextfont,$yt=TV.outsidetextfont,Qd=NI();function Qyt(e){var t=h4.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");kye(e,t,"bar");var r=t.size(),n=e._fullLayout;t.style("opacity",function(i){return i[0].trace.opacity}).each(function(i){(n.barmode==="stack"&&r>1||n.bargap===0&&n.bargroupgap===0&&!i[0].trace.marker.line.width)&&h4.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(i){var a=h4.select(this),o=i[0].trace;Lye(a,o,e)}),Cye.getComponentMethod("errorbars","style")(t)}function Lye(e,t,r){d4.pointStyle(e.selectAll("path"),t,r),Pye(e,t,r)}function Pye(e,t,r){e.selectAll("text").each(function(n){var i=h4.select(this),a=Eye.ensureUniformFontSize(r,Iye(i,n,t,r));d4.font(i,a)})}function e1t(e,t,r){var n=t[0].trace;n.selectedpoints?t1t(r,n,e):(Lye(r,n,e),Cye.getComponentMethod("errorbars","style")(r))}function t1t(e,t,r){d4.selectedPointStyle(e.selectAll("path"),t),r1t(e.selectAll("text"),t,r)}function r1t(e,t,r){e.each(function(n){var i=h4.select(this),a;if(n.selected){a=Eye.ensureUniformFontSize(r,Iye(i,n,t,r));var o=t.selected.textfont&&t.selected.textfont.color;o&&(a.color=o),d4.font(i,a)}else d4.selectedTextStyle(i,t)})}function Iye(e,t,r,n){var i=n._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=zye(t,r);a=Dye(r,t.i,i,o)}else e.classed("bartext-outside")&&(a=Fye(r,t.i,i));return a}function Rye(e,t,r){return AV(Kyt,e.textfont,t,r)}function Dye(e,t,r,n){var i=Rye(e,t,r),a=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[t]===void 0;return a&&(i={color:Yyt.contrast(n),family:i.family,size:i.size,weight:i.weight,style:i.style,variant:i.variant,textcase:i.textcase,lineposition:i.lineposition,shadow:i.shadow}),AV(Jyt,e.insidetextfont,t,i)}function Fye(e,t,r){var n=Rye(e,t,r);return AV($yt,e.outsidetextfont,t,n)}function AV(e,t,r,n){t=t||{};var i=Qd.getValue(t.family,r),a=Qd.getValue(t.size,r),o=Qd.getValue(t.color,r),s=Qd.getValue(t.weight,r),l=Qd.getValue(t.style,r),u=Qd.getValue(t.variant,r),c=Qd.getValue(t.textcase,r),f=Qd.getValue(t.lineposition,r),h=Qd.getValue(t.shadow,r);return{family:Qd.coerceString(e.family,i,n.family),size:Qd.coerceNumber(e.size,a,n.size),color:Qd.coerceColor(e.color,o,n.color),weight:Qd.coerceString(e.weight,s,n.weight),style:Qd.coerceString(e.style,l,n.style),variant:Qd.coerceString(e.variant,u,n.variant),textcase:Qd.coerceString(e.variant,c,n.textcase),lineposition:Qd.coerceString(e.variant,f,n.lineposition),shadow:Qd.coerceString(e.variant,h,n.shadow)}}function zye(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}Oye.exports={style:Qyt,styleTextPoints:Pye,styleOnSelect:e1t,getInsideTextFont:Dye,getOutsideTextFont:Fye,getBarColor:zye,resizeText:kye}});var i2=ye((Gsr,jye)=>{"use strict";var UI=Oa(),VI=Eo(),Fd=Dr(),i1t=iu(),n1t=Ca(),A_=So(),a1t=qa(),GI=ho().tickText,qye=_v(),o1t=qye.recordMinTextSize,s1t=qye.clearMinTextSize,SV=N0(),wT=NI(),l1t=Qb(),Bye=Lm(),u1t=Bye.text,c1t=Bye.textposition,f1t=rp().appendArrayPointValue,Uv=l1t.TEXTPAD;function h1t(e){return e.id}function d1t(e){if(e.ids)return h1t}function MV(e){return(e>0)-(e<0)}function Pm(e,t){return e0}function p1t(e,t,r,n,i,a){var o=t.xaxis,s=t.yaxis,l=e._fullLayout,u=e._context.staticPlot;i||(i={mode:l.barmode,norm:l.barmode,gap:l.bargap,groupgap:l.bargroupgap},s1t("bar",l));var c=Fd.makeTraceGroups(n,r,"trace bars").each(function(f){var h=UI.select(this),d=f[0].trace,v=f[0].t,x=d.type==="waterfall",b=d.type==="funnel",p=d.type==="histogram",C=d.type==="bar",E=C||b,A=0;x&&d.connector.visible&&d.connector.mode==="between"&&(A=d.connector.line.width/2);var L=d.orientation==="h",_=Uye(i),k=Fd.ensureSingle(h,"g","points"),M=d1t(d),g=k.selectAll("g.point").data(Fd.identity,M);g.enter().append("g").classed("point",!0),g.exit().remove(),g.each(function(T,z){var O=UI.select(this),V=v1t(T,o,s,L),G=V[0][0],Z=V[0][1],H=V[1][0],N=V[1][1],j=(L?Z-G:N-H)===0;j&&E&&wT.getLineWidth(d,T)&&(j=!1),j||(j=!VI(G)||!VI(Z)||!VI(H)||!VI(N)),T.isBlank=j,j&&(L?Z=G:N=H),A&&!j&&(L?(G-=Pm(G,Z)*A,Z+=Pm(G,Z)*A):(H-=Pm(H,N)*A,N+=Pm(H,N)*A));var re,oe;if(d.type==="waterfall"){if(!j){var _e=d[T.dir].marker;re=_e.line.width,oe=_e.color}}else re=wT.getLineWidth(d,T),oe=T.mc||d.marker.color;function Me($e){var Mt=UI.round(re/2%1,2);return i.gap===0&&i.groupgap===0?UI.round(Math.round($e)-Mt,2):$e}function ke($e,Mt,Ct){return Ct&&$e===Mt?$e:Math.abs($e-Mt)>=2?Me($e):$e>Mt?Math.ceil($e):Math.floor($e)}var me=n1t.opacity(oe),ie=me<1||re>.01?Me:ke;e._context.staticPlot||(G=ie(G,Z,L),Z=ie(Z,G,L),H=ie(H,N,!L),N=ie(N,H,!L));var Se=L?o.c2p:s.c2p,Le;T.s0>0?Le=T._sMax:T.s0<0?Le=T._sMin:Le=T.s1>0?T._sMax:T._sMin;function Ae($e,Mt){if(!$e)return 0;var Ct=Math.abs(L?N-H:Z-G),Vt=Math.abs(L?Z-G:N-H),It=ie(Math.abs(Se(Le,!0)-Se(0,!0))),Ot=T.hasB?Math.min(Ct/2,Vt/2):Math.min(Ct/2,It),bt;if(Mt==="%"){var rr=Math.min(50,$e);bt=Ct*(rr/100)}else bt=$e;return ie(Math.max(Math.min(bt,Ot),0))}var Fe=C||p?Ae(v.cornerradiusvalue,v.cornerradiusform):0,Pe,ge,De="M"+G+","+H+"V"+N+"H"+Z+"V"+H+"Z",ce=0;if(Fe&&T.s){var Ze=MV(T.s0)===0||MV(T.s)===MV(T.s0)?T.s1:T.s0;if(ce=ie(T.hasB?0:Math.abs(Se(Le,!0)-Se(Ze,!0))),ce0?Math.sqrt(ce*(2*Fe-ce)):0,Gt=ut>0?Math.max:Math.min;Pe="M"+G+","+H+"V"+(N-st*gt)+"H"+Gt(Z-(Fe-ce)*ut,G)+"A "+Fe+","+Fe+" 0 0 "+Kt+" "+Z+","+(N-Fe*gt-lt)+"V"+(H+Fe*gt+lt)+"A "+Fe+","+Fe+" 0 0 "+Kt+" "+Gt(Z-(Fe-ce)*ut,G)+","+(H+st*gt)+"Z"}else if(T.hasB)Pe="M"+(G+Fe*ut)+","+H+"A "+Fe+","+Fe+" 0 0 "+Kt+" "+G+","+(H+Fe*gt)+"V"+(N-Fe*gt)+"A "+Fe+","+Fe+" 0 0 "+Kt+" "+(G+Fe*ut)+","+N+"H"+(Z-Fe*ut)+"A "+Fe+","+Fe+" 0 0 "+Kt+" "+Z+","+(N-Fe*gt)+"V"+(H+Fe*gt)+"A "+Fe+","+Fe+" 0 0 "+Kt+" "+(Z-Fe*ut)+","+H+"Z";else{ge=Math.abs(N-H)+ce;var Ut=ge0?Math.sqrt(ce*(2*Fe-ce)):0,sr=gt>0?Math.max:Math.min;Pe="M"+(G+Ut*ut)+","+H+"V"+sr(N-(Fe-ce)*gt,H)+"A "+Fe+","+Fe+" 0 0 "+Kt+" "+(G+Fe*ut-$t)+","+N+"H"+(Z-Fe*ut+$t)+"A "+Fe+","+Fe+" 0 0 "+Kt+" "+(Z-Ut*ut)+","+sr(N-(Fe-ce)*gt,H)+"V"+H+"Z"}}else Pe=De}else Pe=De;var Tr=Nye(Fd.ensureSingle(O,"path"),l,i,a);if(Tr.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((Z-G)*(N-H))||j&&e._context.staticPlot?"M0,0Z":Pe).call(A_.setClipUrl,t.layerClipId,e),!l.uniformtext.mode&&_){var ur=A_.makePointStyleFns(d);A_.singlePointStyle(T,Tr,d,ur,e)}g1t(e,t,O,f,z,G,Z,H,N,Fe,ce,i,a),t.layerClipId&&A_.hideOutsideRangePoint(T,O.select("text"),o,s,d.xcalendar,d.ycalendar)});var P=d.cliponaxis===!1;A_.setClipUrl(h,P?null:t.layerClipId,e)});a1t.getComponentMethod("errorbars","plot")(e,c,t,i)}function g1t(e,t,r,n,i,a,o,s,l,u,c,f,h){var d=t.xaxis,v=t.yaxis,x=e._fullLayout,b;function p(ge,De,ce){var Ze=Fd.ensureSingle(ge,"text").text(De).attr({class:"bartext bartext-"+b,"text-anchor":"middle","data-notex":1}).call(A_.font,ce).call(i1t.convertToTspans,e);return Ze}var C=n[0].trace,E=C.orientation==="h",A=_1t(x,n,i,d,v);b=x1t(C,i);var L=f.mode==="stack"||f.mode==="relative",_=n[i],k=!L||_._outmost,M=_.hasB,g=u&&u-c>Uv;if(!A||b==="none"||(_.isBlank||a===o||s===l)&&(b==="auto"||b==="inside")){r.select("text").remove();return}var P=x.font,T=SV.getBarColor(n[i],C),z=SV.getInsideTextFont(C,i,P,T),O=SV.getOutsideTextFont(C,i,P),V=C.insidetextanchor||"end",G=r.datum();E?d.type==="log"&&G.s0<=0&&(d.range[0]0&&Me>0,ie;g?M?ie=r2(N-2*u,j,_e,Me,E)||r2(N,j-2*u,_e,Me,E):E?ie=r2(N-(u-c),j,_e,Me,E)||r2(N,j-2*(u-c),_e,Me,E):ie=r2(N,j-(u-c),_e,Me,E)||r2(N-2*(u-c),j,_e,Me,E):ie=r2(N,j,_e,Me,E),me&&ie?b="inside":(b="outside",re.remove(),re=null)}else b="inside";if(!re){ke=Fd.ensureUniformFontSize(e,b==="outside"?O:z),re=p(r,A,ke);var Se=re.attr("transform");if(re.attr("transform",""),oe=A_.bBox(re.node()),_e=oe.width,Me=oe.height,re.attr("transform",Se),_e<=0||Me<=0){re.remove();return}}var Le=C.textangle,Ae,Fe;b==="outside"?(Fe=C.constraintext==="both"||C.constraintext==="outside",Ae=y1t(a,o,s,l,oe,{isHorizontal:E,constrained:Fe,angle:Le})):(Fe=C.constraintext==="both"||C.constraintext==="inside",Ae=Hye(a,o,s,l,oe,{isHorizontal:E,constrained:Fe,angle:Le,anchor:V,hasB:M,r:u,overhead:c})),Ae.fontSize=ke.size,o1t(C.type==="histogram"?"bar":C.type,Ae,x),_.transform=Ae;var Pe=Nye(re,x,f,h);Fd.setTransormAndDisplay(Pe,Ae)}function r2(e,t,r,n,i){if(e<0||t<0)return!1;var a=r<=e&&n<=t,o=r<=t&&n<=e,s=i?e>=r*(t/n):t>=n*(e/r);return a||o||s}function Vye(e){return e==="auto"?0:e}function Gye(e,t){var r=Math.PI/180*t,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:e.width*i+e.height*n,y:e.width*n+e.height*i}}function Hye(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=a.anchor,c=u==="end",f=u==="start",h=a.leftToRight||0,d=(h+1)/2,v=1-d,x=a.hasB,b=a.r,p=a.overhead,C=i.width,E=i.height,A=Math.abs(t-e),L=Math.abs(n-r),_=A>2*Uv&&L>2*Uv?Uv:0;A-=2*_,L-=2*_;var k=Vye(l);l==="auto"&&!(C<=A&&E<=L)&&(C>A||E>L)&&(!(C>L||E>A)||CUv){var T=m1t(e,t,r,n,M,b,p,o,x);g=T.scale,P=T.pad}else g=1,s&&(g=Math.min(1,A/M.x,L/M.y)),P=0;var z=i.left*v+i.right*d,O=(i.top+i.bottom)/2,V=(e+Uv)*v+(t-Uv)*d,G=(r+n)/2,Z=0,H=0;if(f||c){var N=(o?M.x:M.y)/2;b&&(c||x)&&(_+=P);var j=o?Pm(e,t):Pm(r,n);o?f?(V=e+j*_,Z=-j*N):(V=t-j*_,Z=j*N):f?(G=r+j*_,H=-j*N):(G=n-j*_,H=j*N)}return{textX:z,textY:O,targetX:V,targetY:G,anchorX:Z,anchorY:H,scale:g,rotate:k}}function m1t(e,t,r,n,i,a,o,s,l){var u=Math.max(0,Math.abs(t-e)-2*Uv),c=Math.max(0,Math.abs(n-r)-2*Uv),f=a-Uv,h=o?f-Math.sqrt(f*f-(f-o)*(f-o)):f,d=l?f*2:s?f-o:2*h,v=l?f*2:s?2*h:f-o,x,b,p,C,E;return i.y/i.x>=c/(u-d)?C=c/i.y:i.y/i.x<=(c-v)/u?C=u/i.x:!l&&s?(x=i.x*i.x+i.y*i.y/4,b=-2*i.x*(u-f)-i.y*(c/2-f),p=(u-f)*(u-f)+(c/2-f)*(c/2-f)-f*f,C=(-b+Math.sqrt(b*b-4*x*p))/(2*x)):l?(x=(i.x*i.x+i.y*i.y)/4,b=-i.x*(u/2-f)-i.y*(c/2-f),p=(u/2-f)*(u/2-f)+(c/2-f)*(c/2-f)-f*f,C=(-b+Math.sqrt(b*b-4*x*p))/(2*x)):(x=i.x*i.x/4+i.y*i.y,b=-i.x*(u/2-f)-2*i.y*(c-f),p=(u/2-f)*(u/2-f)+(c-f)*(c-f)-f*f,C=(-b+Math.sqrt(b*b-4*x*p))/(2*x)),C=Math.min(1,C),s?E=Math.max(0,f-Math.sqrt(Math.max(0,f*f-(f-(c-i.y*C)/2)*(f-(c-i.y*C)/2)))-o):E=Math.max(0,f-Math.sqrt(Math.max(0,f*f-(f-(u-i.x*C)/2)*(f-(u-i.x*C)/2)))-o),{scale:C,pad:E}}function y1t(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=i.width,c=i.height,f=Math.abs(t-e),h=Math.abs(n-r),d;o?d=h>2*Uv?Uv:0:d=f>2*Uv?Uv:0;var v=1;s&&(v=o?Math.min(1,h/c):Math.min(1,f/u));var x=Vye(l),b=Gye(i,x),p=(o?b.x:b.y)/2,C=(i.left+i.right)/2,E=(i.top+i.bottom)/2,A=(e+t)/2,L=(r+n)/2,_=0,k=0,M=o?Pm(t,e):Pm(r,n);return o?(A=t-M*d,_=M*p):(L=n+M*d,k=-M*p),{textX:C,textY:E,targetX:A,targetY:L,anchorX:_,anchorY:k,scale:v,rotate:x}}function _1t(e,t,r,n,i){var a=t[0].trace,o=a.texttemplate,s;return o?s=b1t(e,t,r,n,i):a.textinfo?s=w1t(t,r,n,i):s=wT.getValue(a.text,r),wT.coerceString(u1t,s)}function x1t(e,t){var r=wT.getValue(e.textposition,t);return wT.coerceEnumerated(c1t,r)}function b1t(e,t,r,n,i){var a=t[0].trace,o=Fd.castOption(a,r,"texttemplate");if(!o)return"";var s=a.type==="histogram",l=a.type==="waterfall",u=a.type==="funnel",c=a.orientation==="h",f,h,d,v;c?(f="y",h=i,d="x",v=n):(f="x",h=n,d="y",v=i);function x(_){return GI(h,h.c2l(_),!0).text}function b(_){return GI(v,v.c2l(_),!0).text}var p=t[r],C={};C.label=p.p,C.labelLabel=C[f+"Label"]=x(p.p);var E=Fd.castOption(a,p.i,"text");(E===0||E)&&(C.text=E),C.value=p.s,C.valueLabel=C[d+"Label"]=b(p.s);var A={};f1t(A,a,p.i),(s||A.x===void 0)&&(A.x=c?C.value:C.label),(s||A.y===void 0)&&(A.y=c?C.label:C.value),(s||A.xLabel===void 0)&&(A.xLabel=c?C.valueLabel:C.labelLabel),(s||A.yLabel===void 0)&&(A.yLabel=c?C.labelLabel:C.valueLabel),l&&(C.delta=+p.rawS||p.s,C.deltaLabel=b(C.delta),C.final=p.v,C.finalLabel=b(C.final),C.initial=C.final-C.delta,C.initialLabel=b(C.initial)),u&&(C.value=p.s,C.valueLabel=b(C.value),C.percentInitial=p.begR,C.percentInitialLabel=Fd.formatPercent(p.begR),C.percentPrevious=p.difR,C.percentPreviousLabel=Fd.formatPercent(p.difR),C.percentTotal=p.sumR,C.percenTotalLabel=Fd.formatPercent(p.sumR));var L=Fd.castOption(a,p.i,"customdata");return L&&(C.customdata=L),Fd.texttemplateString(o,C,e._d3locale,A,C,a._meta||{})}function w1t(e,t,r,n){var i=e[0].trace,a=i.orientation==="h",o=i.type==="waterfall",s=i.type==="funnel";function l(L){var _=a?n:r;return GI(_,L,!0).text}function u(L){var _=a?r:n;return GI(_,+L,!0).text}var c=i.textinfo,f=e[t],h=c.split("+"),d=[],v,x=function(L){return h.indexOf(L)!==-1};if(x("label")&&d.push(l(e[t].p)),x("text")&&(v=Fd.castOption(i,f.i,"text"),(v===0||v)&&d.push(v)),o){var b=+f.rawS||f.s,p=f.v,C=p-b;x("initial")&&d.push(u(C)),x("delta")&&d.push(u(b)),x("final")&&d.push(u(p))}if(s){x("value")&&d.push(u(f.s));var E=0;x("percent initial")&&E++,x("percent previous")&&E++,x("percent total")&&E++;var A=E>1;x("percent initial")&&(v=Fd.formatPercent(f.begR),A&&(v+=" of initial"),d.push(v)),x("percent previous")&&(v=Fd.formatPercent(f.difR),A&&(v+=" of previous"),d.push(v)),x("percent total")&&(v=Fd.formatPercent(f.sumR),A&&(v+=" of total"),d.push(v))}return d.join("
")}jye.exports={plot:p1t,toMoveInsideBar:Hye}});var TT=ye((Hsr,Yye)=>{"use strict";var v4=df(),T1t=qa(),Wye=Ca(),A1t=Dr().fillText,S1t=NI().getLineWidth,EV=ho().hoverLabelText,M1t=hs().BADNUM;function E1t(e,t,r,n,i){var a=Xye(e,t,r,n,i);if(a){var o=a.cd,s=o[0].trace,l=o[a.index];return a.color=Zye(s,l),T1t.getComponentMethod("errorbars","hoverInfo")(l,s,a),[a]}}function Xye(e,t,r,n,i){var a=e.cd,o=a[0].trace,s=a[0].t,l=n==="closest",u=o.type==="waterfall",c=e.maxHoverDistance,f=e.maxSpikeDistance,h,d,v,x,b,p,C;o.orientation==="h"?(h=r,d=t,v="y",x="x",b=G,p=z):(h=t,d=r,v="x",x="y",p=G,b=z);var E=o[v+"period"],A=l||E;function L(ie){return k(ie,-1)}function _(ie){return k(ie,1)}function k(ie,Se){var Le=ie.w;return ie[v]+Se*Le/2}function M(ie){return ie[v+"End"]-ie[v+"Start"]}var g=l?L:E?function(ie){return ie.p-M(ie)/2}:function(ie){return Math.min(L(ie),ie.p-s.bardelta/2)},P=l?_:E?function(ie){return ie.p+M(ie)/2}:function(ie){return Math.max(_(ie),ie.p+s.bardelta/2)};function T(ie,Se,Le){return i.finiteRange&&(Le=0),v4.inbox(ie-h,Se-h,Le+Math.min(1,Math.abs(Se-ie)/C)-1)}function z(ie){return T(g(ie),P(ie),c)}function O(ie){return T(L(ie),_(ie),f)}function V(ie){var Se=ie[x];if(u){var Le=Math.abs(ie.rawS)||0;d>0?Se+=Le:d<0&&(Se-=Le)}return Se}function G(ie){var Se=d,Le=ie.b,Ae=V(ie);return v4.inbox(Le-Se,Ae-Se,c+(Ae-Se)/(Ae-Le)-1)}function Z(ie){var Se=d,Le=ie.b,Ae=V(ie);return v4.inbox(Le-Se,Ae-Se,f+(Ae-Se)/(Ae-Le)-1)}var H=e[v+"a"],N=e[x+"a"];C=Math.abs(H.r2c(H.range[1])-H.r2c(H.range[0]));function j(ie){return(b(ie)+p(ie))/2}var re=v4.getDistanceFunction(n,b,p,j);if(v4.getClosest(a,re,e),e.index!==!1&&a[e.index].p!==M1t){A||(g=function(ie){return Math.min(L(ie),ie.p-s.bargroupwidth/2)},P=function(ie){return Math.max(_(ie),ie.p+s.bargroupwidth/2)});var oe=e.index,_e=a[oe],Me=o.base?_e.b+_e.s:_e.s;e[x+"0"]=e[x+"1"]=N.c2p(_e[x],!0),e[x+"LabelVal"]=Me;var ke=s.extents[s.extents.round(_e.p)];e[v+"0"]=H.c2p(l?g(_e):ke[0],!0),e[v+"1"]=H.c2p(l?P(_e):ke[1],!0);var me=_e.orig_p!==void 0;return e[v+"LabelVal"]=me?_e.orig_p:_e.p,e.labelLabel=EV(H,e[v+"LabelVal"],o[v+"hoverformat"]),e.valueLabel=EV(N,e[x+"LabelVal"],o[x+"hoverformat"]),e.baseLabel=EV(N,_e.b,o[x+"hoverformat"]),e.spikeDistance=(Z(_e)+O(_e))/2,e[v+"Spike"]=H.c2p(_e.p,!0),A1t(_e,o,e),e.hovertemplate=o.hovertemplate,e}}function Zye(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,i=S1t(e,t);if(Wye.opacity(r))return r;if(Wye.opacity(n)&&i)return n}Yye.exports={hoverPoints:E1t,hoverOnBars:Xye,getTraceColor:Zye}});var Jye=ye((jsr,Kye)=>{"use strict";Kye.exports=function(t,r,n){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),n.orientation==="h"?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}});var AT=ye((Wsr,$ye)=>{"use strict";$ye.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=n[0].trace,s=o.type==="funnel",l=o.orientation==="h",u=[],c;if(r===!1)for(c=0;c{"use strict";Qye.exports={attributes:Lm(),layoutAttributes:OI(),supplyDefaults:r0().supplyDefaults,crossTraceDefaults:r0().crossTraceDefaults,supplyLayoutDefaults:wV(),calc:Tye(),crossTraceCalc:Hb().crossTraceCalc,colorbar:$d(),arraysToCalcdata:f4(),plot:i2().plot,style:N0().style,styleOnSelect:N0().styleOnSelect,hoverPoints:TT().hoverPoints,eventData:Jye(),selectPoints:AT(),moduleType:"trace",name:"bar",basePlotModule:vh(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var r1e=ye((Zsr,t1e)=>{"use strict";t1e.exports=e1e()});var p4=ye((Ysr,o1e)=>{"use strict";var k1t=Eg(),U0=vf(),i1e=Lm(),L1t=Eh(),n1e=ff().axisHoverFormat,P1t=rs().hovertemplateAttrs,Fy=Ao().extendFlat,ST=U0.marker,a1e=ST.line;o1e.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:U0.xperiod,yperiod:U0.yperiod,xperiod0:U0.xperiod0,yperiod0:U0.yperiod0,xperiodalignment:U0.xperiodalignment,yperiodalignment:U0.yperiodalignment,xhoverformat:n1e("x"),yhoverformat:n1e("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:Fy({},ST.symbol,{arrayOk:!1,editType:"plot"}),opacity:Fy({},ST.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Fy({},ST.angle,{arrayOk:!1,editType:"calc"}),size:Fy({},ST.size,{arrayOk:!1,editType:"calc"}),color:Fy({},ST.color,{arrayOk:!1,editType:"style"}),line:{color:Fy({},a1e.color,{arrayOk:!1,dflt:L1t.defaultLine,editType:"style"}),width:Fy({},a1e.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:k1t(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:i1e.offsetgroup,alignmentgroup:i1e.alignmentgroup,selected:{marker:U0.selected.marker,editType:"style"},unselected:{marker:U0.unselected.marker,editType:"style"},text:Fy({},U0.text,{}),hovertext:Fy({},U0.hovertext,{}),hovertemplate:P1t({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:U0.zorder}});var g4=ye((Ksr,s1e)=>{"use strict";s1e.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var y4=ye((Jsr,f1e)=>{"use strict";var V0=Dr(),I1t=qa(),R1t=Ca(),D1t=Pg(),F1t=Gb(),l1e=L3(),m4=p4();function z1t(e,t,r,n){function i(v,x){return V0.coerce(e,t,m4,v,x)}if(u1e(e,t,i,n),t.visible!==!1){D1t(e,t,n,i),i("xhoverformat"),i("yhoverformat");var a=t._hasPreCompStats;a&&(i("lowerfence"),i("upperfence")),i("line.color",(e.marker||{}).color||r),i("line.width"),i("fillcolor",R1t.addOpacity(t.line.color,.5));var o=!1;if(a){var s=i("mean"),l=i("sd");s&&s.length&&(o=!0,l&&l.length&&(o="sd"))}i("whiskerwidth");var u=i("sizemode"),c;u==="quartiles"&&(c=i("boxmean",o)),i("showwhiskers",u==="quartiles"),(u==="sd"||c==="sd")&&i("sdmultiple"),i("width"),i("quartilemethod");var f=!1;if(a){var h=i("notchspan");h&&h.length&&(f=!0)}else V0.validate(e.notchwidth,m4.notchwidth)&&(f=!0);var d=i("notched",f);d&&i("notchwidth"),c1e(e,t,i,{prefix:"box"}),i("zorder")}}function u1e(e,t,r,n){function i(P){var T=0;return P&&P.length&&(T+=1,V0.isArrayOrTypedArray(P[0])&&P[0].length&&(T+=1)),T}function a(P){return V0.validate(e[P],m4[P])}var o=r("y"),s=r("x"),l;if(t.type==="box"){var u=r("q1"),c=r("median"),f=r("q3");t._hasPreCompStats=u&&u.length&&c&&c.length&&f&&f.length,l=Math.min(V0.minRowLength(u),V0.minRowLength(c),V0.minRowLength(f))}var h=i(o),d=i(s),v=h&&V0.minRowLength(o),x=d&&V0.minRowLength(s),b=n.calendar,p={autotypenumbers:n.autotypenumbers},C,E;if(t._hasPreCompStats)switch(String(d)+String(h)){case"00":var A=a("x0")||a("dx"),L=a("y0")||a("dy");L&&!A?C="h":C="v",E=l;break;case"10":C="v",E=Math.min(l,x);break;case"20":C="h",E=Math.min(l,s.length);break;case"01":C="h",E=Math.min(l,v);break;case"02":C="v",E=Math.min(l,o.length);break;case"12":C="v",E=Math.min(l,x,o.length);break;case"21":C="h",E=Math.min(l,s.length,v);break;case"11":E=0;break;case"22":var _=!1,k;for(k=0;k0?(C="v",d>0?E=Math.min(x,v):E=Math.min(v)):d>0?(C="h",E=Math.min(x)):E=0;if(!E){t.visible=!1;return}t._length=E;var M=r("orientation",C);t._hasPreCompStats?M==="v"&&d===0?(r("x0",0),r("dx",1)):M==="h"&&h===0&&(r("y0",0),r("dy",1)):M==="v"&&d===0?r("x0"):M==="h"&&h===0&&r("y0");var g=I1t.getComponentMethod("calendars","handleTraceDefaults");g(e,t,["x","y"],n)}function c1e(e,t,r,n){var i=n.prefix,a=V0.coerce2(e,t,m4,"marker.outliercolor"),o=r("marker.line.outliercolor"),s="outliers";t._hasPreCompStats?s="all":(a||o)&&(s="suspectedoutliers");var l=r(i+"points",s);l?(r("jitter",l==="all"?.3:0),r("pointpos",l==="all"?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.angle"),r("marker.color",t.line.color),r("marker.line.color"),r("marker.line.width"),l==="suspectedoutliers"&&(r("marker.line.outliercolor",t.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete t.marker;var u=r("hoveron");(u==="all"||u.indexOf("points")!==-1)&&r("hovertemplate"),V0.coerceSelectionMarkerOpacity(t,r)}function O1t(e,t){var r,n;function i(l){return V0.coerce(n._input,n,m4,l)}for(var a=0;a{"use strict";var q1t=qa(),B1t=Dr(),N1t=g4();function h1e(e,t,r,n,i){for(var a=i+"Layout",o=!1,s=0;s{"use strict";var kV=Eo(),jI=ho(),V1t=Rg(),ph=Dr(),i0=hs().BADNUM,zy=ph._;w1e.exports=function(t,r){var n=t._fullLayout,i=jI.getFromId(t,r.xaxis||"x"),a=jI.getFromId(t,r.yaxis||"y"),o=[],s=r.type==="violin"?"_numViolins":"_numBoxes",l,u,c,f,h,d,v;r.orientation==="h"?(c=i,f="x",h=a,d="y",v=!!r.yperiodalignment):(c=a,f="y",h=i,d="x",v=!!r.xperiodalignment);var x=G1t(r,d,h,n[s]),b=x[0],p=x[1],C=ph.distinctVals(b,h),E=C.vals,A=C.minDiff/2,L,_,k,M,g,P,T=(r.boxpoints||r.points)==="all"?ph.identity:function(Kt){return Kt.vL.uf};if(r._hasPreCompStats){var z=r[f],O=function(Kt){return c.d2c((r[Kt]||[])[l])},V=1/0,G=-1/0;for(l=0;l=L.q1&&L.q3>=L.med){var H=O("lowerfence");L.lf=H!==i0&&H<=L.q1?H:m1e(L,k,M);var N=O("upperfence");L.uf=N!==i0&&N>=L.q3?N:y1e(L,k,M);var j=O("mean");L.mean=j!==i0?j:M?ph.mean(k,M):(L.q1+L.q3)/2;var re=O("sd");L.sd=j!==i0&&re>=0?re:M?ph.stdev(k,M,L.mean):L.q3-L.q1,L.lo=_1e(L),L.uo=x1e(L);var oe=O("notchspan");oe=oe!==i0&&oe>0?oe:b1e(L,M),L.ln=L.med-oe,L.un=L.med+oe;var _e=L.lf,Me=L.uf;r.boxpoints&&k.length&&(_e=Math.min(_e,k[0]),Me=Math.max(Me,k[M-1])),r.notched&&(_e=Math.min(_e,L.ln),Me=Math.max(Me,L.un)),L.min=_e,L.max=Me}else{ph.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+L.q1,"median = "+L.med,"q3 = "+L.q3].join(` -`));var ke;L.med!==i0?ke=L.med:L.q1!==i0?L.q3!==i0?ke=(L.q1+L.q3)/2:ke=L.q1:L.q3!==i0?ke=L.q3:ke=0,L.med=ke,L.q1=L.q3=ke,L.lf=L.uf=ke,L.mean=L.sd=ke,L.ln=L.un=ke,L.min=L.max=ke}V=Math.min(V,L.min),G=Math.max(G,L.max),L.pts2=_.filter(T),o.push(L)}}r._extremes[c._id]=jI.findExtremes(c,[V,G],{padded:!0})}else{var me=c.makeCalcdata(r,f),ie=H1t(E,A),Se=E.length,Le=j1t(Se);for(l=0;l=0&&Ae0){if(L={},L.pos=L[d]=E[l],_=L.pts=Le[l].sort(p1e),k=L[f]=_.map(g1e),M=k.length,L.min=k[0],L.max=k[M-1],L.mean=ph.mean(k,M),L.sd=ph.stdev(k,M,L.mean)*r.sdmultiple,L.med=ph.interp(k,.5),M%2&&(De||ce)){var Ze,ut;De?(Ze=k.slice(0,M/2),ut=k.slice(M/2+1)):ce&&(Ze=k.slice(0,M/2+1),ut=k.slice(M/2)),L.q1=ph.interp(Ze,.5),L.q3=ph.interp(ut,.5)}else L.q1=ph.interp(k,.25),L.q3=ph.interp(k,.75);L.lf=m1e(L,k,M),L.uf=y1e(L,k,M),L.lo=_1e(L),L.uo=x1e(L);var gt=b1e(L,M);L.ln=L.med-gt,L.un=L.med+gt,Fe=Math.min(Fe,L.ln),Pe=Math.max(Pe,L.un),L.pts2=_.filter(T),o.push(L)}r.notched&&ph.isTypedArray(me)&&(me=Array.from(me)),r._extremes[c._id]=jI.findExtremes(c,r.notched?me.concat([Fe,Pe]):me,{padded:!0})}return W1t(o,r),o.length>0?(o[0].t={num:n[s],dPos:A,posLetter:d,valLetter:f,labels:{med:zy(t,"median:"),min:zy(t,"min:"),q1:zy(t,"q1:"),q3:zy(t,"q3:"),max:zy(t,"max:"),mean:r.boxmean==="sd"||r.sizemode==="sd"?zy(t,"mean \xB1 \u03C3:").replace("\u03C3",r.sdmultiple===1?"\u03C3":r.sdmultiple+"\u03C3"):zy(t,"mean:"),lf:zy(t,"lower fence:"),uf:zy(t,"upper fence:")}},n[s]++,o):[{t:{empty:!0}}]};function G1t(e,t,r,n){var i=t in e,a=t+"0"in e,o="d"+t in e;if(i||a&&o){var s=r.makeCalcdata(e,t),l=V1t(e,r,t,s).vals;return[l,s]}var u;a?u=e[t+"0"]:"name"in e&&(r.type==="category"||kV(e.name)&&["linear","log"].indexOf(r.type)!==-1||ph.isDateTime(e.name)&&r.type==="date")?u=e.name:u=n;for(var c=r.type==="multicategory"?r.r2c_just_indices(u):r.d2c(u,0,e[t+"calendar"]),f=e._length,h=new Array(f),d=0;d{"use strict";var T1e=ho(),X1t=Dr(),Z1t=Bb().getAxisGroup,A1e=["v","h"];function Y1t(e,t){for(var r=e.calcdata,n=t.xaxis,i=t.yaxis,a=0;a1,C=1-a[e+"gap"],E=1-a[e+"groupgap"];for(l=0;l0;if(k==="positive"?(N=M*(_?1:.5),oe=re,j=oe=P):k==="negative"?(N=oe=P,j=M*(_?1:.5),_e=re):(N=j=M,oe=_e=re),Le){var Ae=A.pointpos,Fe=A.jitter,Pe=A.marker.size/2,ge=0;Ae+Fe>=0&&(ge=re*(Ae+Fe),ge>N?(Se=!0,me=Pe,Me=ge):ge>oe&&(me=Pe,Me=N)),ge<=N&&(Me=N);var De=0;Ae-Fe<=0&&(De=-re*(Ae-Fe),De>j?(Se=!0,ie=Pe,ke=De):De>_e&&(ie=Pe,ke=j)),De<=j&&(ke=j)}else Me=N,ke=j;var ce=new Array(c.length);for(u=0;u{"use strict";var MT=Oa(),n2=Dr(),K1t=So(),E1e=5,J1t=.01;function $1t(e,t,r,n){var i=e._context.staticPlot,a=t.xaxis,o=t.yaxis;n2.makeTraceGroups(n,r,"trace boxes").each(function(s){var l=MT.select(this),u=s[0],c=u.t,f=u.trace;if(c.wdPos=c.bdPos*f.whiskerwidth,f.visible!==!0||c.empty){l.remove();return}var h,d;f.orientation==="h"?(h=o,d=a):(h=a,d=o),C1e(l,{pos:h,val:d},f,c,i),k1e(l,{x:a,y:o},f,c),L1e(l,{pos:h,val:d},f,c)})}function C1e(e,t,r,n,i){var a=r.orientation==="h",o=t.val,s=t.pos,l=!!s.rangebreaks,u=n.bPos,c=n.wdPos||0,f=n.bPosPxOffset||0,h=r.whiskerwidth||0,d=r.showwhiskers!==!1,v=r.notched||!1,x=v?1-2*r.notchwidth:1,b,p;Array.isArray(n.bdPos)?(b=n.bdPos[0],p=n.bdPos[1]):(b=n.bdPos,p=n.bdPos);var C=e.selectAll("path.box").data(r.type!=="violin"||r.box.visible?n2.identity:[]);C.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","box"),C.exit().remove(),C.each(function(E){if(E.empty)return MT.select(this).attr("d","M0,0Z");var A=s.c2l(E.pos+u,!0),L=s.l2p(A-b)+f,_=s.l2p(A+p)+f,k=l?(L+_)/2:s.l2p(A)+f,M=r.whiskerwidth,g=l?L*M+(1-M)*k:s.l2p(A-c)+f,P=l?_*M+(1-M)*k:s.l2p(A+c)+f,T=s.l2p(A-b*x)+f,z=s.l2p(A+p*x)+f,O=r.sizemode==="sd",V=o.c2p(O?E.mean-E.sd:E.q1,!0),G=O?o.c2p(E.mean+E.sd,!0):o.c2p(E.q3,!0),Z=n2.constrain(O?o.c2p(E.mean,!0):o.c2p(E.med,!0),Math.min(V,G)+1,Math.max(V,G)-1),H=E.lf===void 0||r.boxpoints===!1||O,N=o.c2p(H?E.min:E.lf,!0),j=o.c2p(H?E.max:E.uf,!0),re=o.c2p(E.ln,!0),oe=o.c2p(E.un,!0);a?MT.select(this).attr("d","M"+Z+","+T+"V"+z+"M"+V+","+L+"V"+_+(v?"H"+re+"L"+Z+","+z+"L"+oe+","+_:"")+"H"+G+"V"+L+(v?"H"+oe+"L"+Z+","+T+"L"+re+","+L:"")+"Z"+(d?"M"+V+","+k+"H"+N+"M"+G+","+k+"H"+j+(h===0?"":"M"+N+","+g+"V"+P+"M"+j+","+g+"V"+P):"")):MT.select(this).attr("d","M"+T+","+Z+"H"+z+"M"+L+","+V+"H"+_+(v?"V"+re+"L"+z+","+Z+"L"+_+","+oe:"")+"V"+G+"H"+L+(v?"V"+oe+"L"+T+","+Z+"L"+L+","+re:"")+"Z"+(d?"M"+k+","+V+"V"+N+"M"+k+","+G+"V"+j+(h===0?"":"M"+g+","+N+"H"+P+"M"+g+","+j+"H"+P):""))})}function k1e(e,t,r,n){var i=t.x,a=t.y,o=n.bdPos,s=n.bPos,l=r.boxpoints||r.points;n2.seedPseudoRandom();var u=function(h){return h.forEach(function(d){d.t=n,d.trace=r}),h},c=e.selectAll("g.points").data(l?u:[]);c.enter().append("g").attr("class","points"),c.exit().remove();var f=c.selectAll("path").data(function(h){var d,v=h.pts2,x=Math.max((h.max-h.min)/10,h.q3-h.q1),b=x*1e-9,p=x*J1t,C=[],E=0,A;if(r.jitter){if(x===0)for(E=1,C=new Array(v.length),d=0;dh.lo&&(P.so=!0)}return v});f.enter().append("path").classed("point",!0),f.exit().remove(),f.call(K1t.translatePoints,i,a)}function L1e(e,t,r,n){var i=t.val,a=t.pos,o=!!a.rangebreaks,s=n.bPos,l=n.bPosPxOffset||0,u=r.boxmean||(r.meanline||{}).visible,c,f;Array.isArray(n.bdPos)?(c=n.bdPos[0],f=n.bdPos[1]):(c=n.bdPos,f=n.bdPos);var h=e.selectAll("path.mean").data(r.type==="box"&&r.boxmean||r.type==="violin"&&r.box.visible&&r.meanline.visible?n2.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each(function(d){var v=a.c2l(d.pos+s,!0),x=a.l2p(v-c)+l,b=a.l2p(v+f)+l,p=o?(x+b)/2:a.l2p(v)+l,C=i.c2p(d.mean,!0),E=i.c2p(d.mean-d.sd,!0),A=i.c2p(d.mean+d.sd,!0);r.orientation==="h"?MT.select(this).attr("d","M"+C+","+x+"V"+b+(u==="sd"?"m0,0L"+E+","+p+"L"+C+","+x+"L"+A+","+p+"Z":"")):MT.select(this).attr("d","M"+x+","+C+"H"+b+(u==="sd"?"m0,0L"+p+","+E+"L"+x+","+C+"L"+p+","+A+"Z":""))})}P1e.exports={plot:$1t,plotBoxAndWhiskers:C1e,plotPoints:k1e,plotBoxMean:L1e}});var ZI=ye((rlr,I1e)=>{"use strict";var PV=Oa(),IV=Ca(),RV=So();function Q1t(e,t,r){var n=r||PV.select(e).selectAll("g.trace.boxes");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=PV.select(this),o=i[0].trace,s=o.line.width;function l(f,h,d,v){f.style("stroke-width",h+"px").call(IV.stroke,d).call(IV.fill,v)}var u=a.selectAll("path.box");if(o.type==="candlestick")u.each(function(f){if(!f.empty){var h=PV.select(this),d=o[f.dir];l(h,d.line.width,d.line.color,d.fillcolor),h.style("opacity",o.selectedpoints&&!f.selected?.3:1)}});else{l(u,s,o.line.color,o.fillcolor),a.selectAll("path.mean").style({"stroke-width":s,"stroke-dasharray":2*s+"px,"+s+"px"}).call(IV.stroke,o.line.color);var c=a.selectAll("path.point");RV.pointStyle(c,o,e)}})}function e_t(e,t,r){var n=t[0].trace,i=r.selectAll("path.point");n.selectedpoints?RV.selectedPointStyle(i,n):RV.pointStyle(i,n,e)}I1e.exports={style:Q1t,styleOnSelect:e_t}});var FV=ye((ilr,z1e)=>{"use strict";var t_t=ho(),DV=Dr(),S_=df(),R1e=Ca(),r_t=DV.fillText;function i_t(e,t,r,n){var i=e.cd,a=i[0].trace,o=a.hoveron,s=[],l;return o.indexOf("boxes")!==-1&&(s=s.concat(D1e(e,t,r,n))),o.indexOf("points")!==-1&&(l=F1e(e,t,r)),n==="closest"?l?[l]:s:(l&&s.push(l),s)}function D1e(e,t,r,n){var i=e.cd,a=e.xa,o=e.ya,s=i[0].trace,l=i[0].t,u=s.type==="violin",c,f,h,d,v,x,b,p,C,E,A,L=l.bdPos,_,k,M=l.wHover,g=function(Pe){return h.c2l(Pe.pos)+l.bPos-h.c2l(x)};u&&s.side!=="both"?(s.side==="positive"&&(C=function(Pe){var ge=g(Pe);return S_.inbox(ge,ge+M,E)},_=L,k=0),s.side==="negative"&&(C=function(Pe){var ge=g(Pe);return S_.inbox(ge-M,ge,E)},_=0,k=L)):(C=function(Pe){var ge=g(Pe);return S_.inbox(ge-M,ge+M,E)},_=k=L);var P;u?P=function(Pe){return S_.inbox(Pe.span[0]-v,Pe.span[1]-v,E)}:P=function(Pe){return S_.inbox(Pe.min-v,Pe.max-v,E)},s.orientation==="h"?(v=t,x=r,b=P,p=C,c="y",h=o,f="x",d=a):(v=r,x=t,b=C,p=P,c="x",h=a,f="y",d=o);var T=Math.min(1,L/Math.abs(h.r2c(h.range[1])-h.r2c(h.range[0])));E=e.maxHoverDistance-T,A=e.maxSpikeDistance-T;function z(Pe){return(b(Pe)+p(Pe))/2}var O=S_.getDistanceFunction(n,b,p,z);if(S_.getClosest(i,O,e),e.index===!1)return[];var V=i[e.index],G=s.line.color,Z=(s.marker||{}).color;R1e.opacity(G)&&s.line.width?e.color=G:R1e.opacity(Z)&&s.boxpoints?e.color=Z:e.color=s.fillcolor,e[c+"0"]=h.c2p(V.pos+l.bPos-k,!0),e[c+"1"]=h.c2p(V.pos+l.bPos+_,!0),e[c+"LabelVal"]=V.orig_p!==void 0?V.orig_p:V.pos;var H=c+"Spike";e.spikeDistance=z(V)*A/E,e[H]=h.c2p(V.pos,!0);var N=s.boxmean||s.sizemode==="sd"||(s.meanline||{}).visible,j=s.boxpoints||s.points,re=j&&N?["max","uf","q3","med","mean","q1","lf","min"]:j&&!N?["max","uf","q3","med","q1","lf","min"]:!j&&N?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],oe=d.range[1]{"use strict";O1e.exports=function(t,r){return r.hoverOnBox&&(t.hoverOnBox=r.hoverOnBox),"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var zV=ye((alr,B1e)=>{"use strict";B1e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l;if(r===!1)for(s=0;s{"use strict";N1e.exports={attributes:p4(),layoutAttributes:g4(),supplyDefaults:y4().supplyDefaults,crossTraceDefaults:y4().crossTraceDefaults,supplyLayoutDefaults:HI().supplyLayoutDefaults,calc:LV(),crossTraceCalc:WI().crossTraceCalc,plot:XI().plot,style:ZI().style,styleOnSelect:ZI().styleOnSelect,hoverPoints:FV().hoverPoints,eventData:q1e(),selectPoints:zV(),moduleType:"trace",name:"box",basePlotModule:vh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var G1e=ye((slr,V1e)=>{"use strict";V1e.exports=U1e()});var ET=ye((llr,H1e)=>{"use strict";var n0=vf(),n_t=Vl(),a_t=ec(),OV=ff().axisHoverFormat,o_t=rs().hovertemplateAttrs,s_t=rs().texttemplateAttrs,l_t=Tu(),Lp=Ao().extendFlat;H1e.exports=Lp({z:{valType:"data_array",editType:"calc"},x:Lp({},n0.x,{impliedEdits:{xtype:"array"}}),x0:Lp({},n0.x0,{impliedEdits:{xtype:"scaled"}}),dx:Lp({},n0.dx,{impliedEdits:{xtype:"scaled"}}),y:Lp({},n0.y,{impliedEdits:{ytype:"array"}}),y0:Lp({},n0.y0,{impliedEdits:{ytype:"scaled"}}),dy:Lp({},n0.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:Lp({},n0.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:Lp({},n0.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:Lp({},n0.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:Lp({},n0.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:Lp({},n0.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:Lp({},n0.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:OV("x"),yhoverformat:OV("y"),zhoverformat:OV("z",1),hovertemplate:o_t(),texttemplate:s_t({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:a_t({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Lp({},n_t.showlegend,{dflt:!1}),zorder:n0.zorder},l_t("",{cLetter:"z",autoColorDflt:!1}))});var KI=ye((ulr,W1e)=>{"use strict";var u_t=Eo(),YI=Dr(),c_t=qa();W1e.exports=function(t,r,n,i,a,o){var s=n("z");a=a||"x",o=o||"y";var l,u;if(s===void 0||!s.length)return 0;if(YI.isArray1D(s)){l=n(a),u=n(o);var c=YI.minRowLength(l),f=YI.minRowLength(u);if(c===0||f===0)return 0;r._length=Math.min(c,f,s.length)}else{if(l=j1e(a,n),u=j1e(o,n),!f_t(s))return 0;n("transpose"),r._length=null}var h=c_t.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],i),!0};function j1e(e,t){var r=t(e),n=r?t(e+"type","array"):"scaled";return n==="scaled"&&(t(e+"0"),t("d"+e)),r}function f_t(e){for(var t=!0,r=!1,n=!1,i,a=0;a0&&(r=!0);for(var o=0;o{"use strict";var X1e=Dr();Z1e.exports=function(t,r){t("texttemplate");var n=X1e.extendFlat({},r.font,{color:"auto",size:"auto"});X1e.coerceFont(t,"textfont",n)}});var qV=ye((flr,Y1e)=>{"use strict";Y1e.exports=function(t,r,n){var i=n("zsmooth");i===!1&&(n("xgap"),n("ygap")),n("zhoverformat")}});var $1e=ye((hlr,J1e)=>{"use strict";var K1e=Dr(),h_t=KI(),d_t=_4(),v_t=Pg(),p_t=qV(),g_t=Jh(),m_t=ET();J1e.exports=function(t,r,n,i){function a(s,l){return K1e.coerce(t,r,m_t,s,l)}var o=h_t(t,r,a,i);if(!o){r.visible=!1;return}v_t(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hovertemplate"),d_t(a,i),p_t(t,r,a,i),a("hoverongaps"),a("connectgaps",K1e.isArray1D(r.z)&&r.zsmooth!==!1),g_t(t,r,i,a,{prefix:"",cLetter:"z"}),a("zorder")}});var BV=ye((dlr,Q1e)=>{"use strict";var CT=Eo();Q1e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,n){var i=n[t];return CT(i)?(i=Number(i),r[e]+=i,i):0},avg:function(e,t,r,n,i){var a=n[t];return CT(a)&&(a=Number(a),r[e]+=a,i[e]++),0},min:function(e,t,r,n){var i=n[t];if(CT(i))if(i=Number(i),CT(r[e])){if(r[e]>i){var a=i-r[e];return r[e]=i,a}}else return r[e]=i,i;return 0},max:function(e,t,r,n){var i=n[t];if(CT(i))if(i=Number(i),CT(r[e])){if(r[e]{"use strict";e_e.exports={percent:function(e,t){for(var r=e.length,n=100/t,i=0;i{"use strict";t_e.exports=function(t,r){for(var n=t.length,i=0,a=0;a{"use strict";var kT=hs(),a2=kT.ONEAVGYEAR,r_e=kT.ONEAVGMONTH,$I=kT.ONEDAY,i_e=kT.ONEHOUR,n_e=kT.ONEMIN,a_e=kT.ONESEC,o_e=ho().tickIncrement;u_e.exports=function(t,r,n,i,a){var o=-1.1*r,s=-.1*r,l=t-s,u=n[0],c=n[1],f=Math.min(JI(u+s,u+l,i,a),JI(c+s,c+l,i,a)),h=Math.min(JI(u+o,u+s,i,a),JI(c+o,c+s,i,a)),d,v;if(f>h&&h$I){var x=d===a2?1:6,b=d===a2?"M12":"M1";return function(p,C){var E=i.c2d(p,a2,a),A=E.indexOf("-",x);A>0&&(E=E.substr(0,A));var L=i.d2c(E,0,a);if(La_e?e>$I?e>a2*1.1?a2:e>r_e*1.1?r_e:$I:e>i_e?i_e:e>n_e?n_e:a_e:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function y_t(e,t,r,n,i,a){if(n&&e>$I){var o=l_e(t,i,a),s=l_e(r,i,a),l=e===a2?0:1;return o[l]!==s[l]}return Math.floor(r/e)-Math.floor(t/e)>.1}function l_e(e,t,r){var n=t.c2d(e,a2,r).split("-");return n[0]===""&&(n.unshift(),n[0]="-"+n[0]),n}});var jV=ye((mlr,h_e)=>{"use strict";var GV=Eo(),Vv=Dr(),c_e=qa(),G0=ho(),__t=f4(),f_e=BV(),x_t=NV(),b_t=UV(),w_t=VV();function T_t(e,t){var r=[],n=[],i=t.orientation==="h",a=G0.getFromId(e,i?t.yaxis:t.xaxis),o=i?"y":"x",s={x:"y",y:"x"}[o],l=t[o+"calendar"],u=t.cumulative,c,f=HV(e,t,a,o),h=f[0],d=f[1],v=typeof h.size=="string",x=[],b=v?x:h,p=[],C=[],E=[],A=0,L=t.histnorm,_=t.histfunc,k=L.indexOf("density")!==-1,M,g,P;u.enabled&&k&&(L=L.replace(/ ?density$/,""),k=!1);var T=_==="max"||_==="min",z=T?null:0,O=f_e.count,V=x_t[L],G=!1,Z=function(ge){return a.r2c(ge,0,l)},H;for(Vv.isArrayOrTypedArray(t[s])&&_!=="count"&&(H=t[s],G=_==="avg",O=f_e[_]),c=Z(h.start),g=Z(h.end)+(c-G0.tickIncrement(c,h.size,!1,l))/1e6;c=0&&P=Ae;c--)if(n[c]){Fe=c;break}for(c=Ae;c<=Fe;c++)if(GV(r[c])&&GV(n[c])){var Pe={p:r[c],s:n[c],b:0};u.enabled||(Pe.pts=E[c],oe?Pe.ph0=Pe.ph1=E[c].length?d[E[c][0]]:r[c]:(t._computePh=!0,Pe.ph0=ie(x[c]),Pe.ph1=ie(x[c+1],!0))),Le.push(Pe)}return Le.length===1&&(Le[0].width1=G0.tickIncrement(Le[0].p,h.size,!1,l)-Le[0].p),__t(Le,t),Vv.isArrayOrTypedArray(t.selectedpoints)&&Vv.tagSelected(Le,t,ke),Le}function HV(e,t,r,n,i){var a=n+"bins",o=e._fullLayout,s=t["_"+n+"bingroup"],l=o._histogramBinOpts[s],u=o.barmode==="overlay",c,f,h,d,v,x,b,p=function(me){return r.r2c(me,0,d)},C=function(me){return r.c2r(me,0,d)},E=r.type==="date"?function(me){return me||me===0?Vv.cleanDate(me,null,d):null}:function(me){return GV(me)?Number(me):null};function A(me,ie,Se){ie[me+"Found"]?(ie[me]=E(ie[me]),ie[me]===null&&(ie[me]=Se[me])):(x[me]=ie[me]=Se[me],Vv.nestedProperty(f[0],a+"."+me).set(Se[me]))}if(t["_"+n+"autoBinFinished"])delete t["_"+n+"autoBinFinished"];else{f=l.traces;var L=[],_=!0,k=!1,M=!1;for(c=0;cr.r2l(H)&&(j=G0.tickIncrement(j,l.size,!0,d)),O.start=r.l2r(j),Z||Vv.nestedProperty(t,a+".start").set(O.start)}var re=l.end,oe=r.r2l(z.end),_e=oe!==void 0;if((l.endFound||_e)&&oe!==r.r2l(re)){var Me=_e?oe:Vv.aggNums(Math.max,null,v);O.end=r.l2r(Me),_e||Vv.nestedProperty(t,a+".start").set(O.end)}var ke="autobin"+n;return t._input[ke]===!1&&(t._input[a]=Vv.extendFlat({},t[a]||{}),delete t._input[ke],delete t[ke]),[O,v]}function A_t(e,t,r,n,i){var a=e._fullLayout,o=S_t(e,t),s=!1,l=1/0,u=[t],c,f,h;for(c=0;c=0;n--)s(n);else if(t==="increasing"){for(n=1;n=0;n--)e[n]+=e[n+1];r==="exclude"&&(e.push(0),e.shift())}}h_e.exports={calc:T_t,calcAllAutoBins:HV}});var x_e=ye((ylr,__e)=>{"use strict";var d_e=Dr(),LT=ho(),v_e=BV(),E_t=NV(),C_t=UV(),k_t=VV(),p_e=jV().calcAllAutoBins;__e.exports=function(t,r){var n=LT.getFromId(t,r.xaxis),i=LT.getFromId(t,r.yaxis),a=r.xcalendar,o=r.ycalendar,s=function(Ot){return n.r2c(Ot,0,a)},l=function(Ot){return i.r2c(Ot,0,o)},u=function(Ot){return n.c2r(Ot,0,a)},c=function(Ot){return i.c2r(Ot,0,o)},f,h,d,v,x=p_e(t,r,n,"x"),b=x[0],p=x[1],C=p_e(t,r,i,"y"),E=C[0],A=C[1],L=r._length;p.length>L&&p.splice(L,p.length-L),A.length>L&&A.splice(L,A.length-L);var _=[],k=[],M=[],g=typeof b.size=="string",P=typeof E.size=="string",T=[],z=[],O=g?T:b,V=P?z:E,G=0,Z=[],H=[],N=r.histnorm,j=r.histfunc,re=N.indexOf("density")!==-1,oe=j==="max"||j==="min",_e=oe?null:0,Me=v_e.count,ke=E_t[N],me=!1,ie=[],Se=[],Le="z"in r?r.z:"marker"in r&&Array.isArray(r.marker.color)?r.marker.color:"";Le&&j!=="count"&&(me=j==="avg",Me=v_e[j]);var Ae=b.size,Fe=s(b.start),Pe=s(b.end)+(Fe-LT.tickIncrement(Fe,Ae,!1,a))/1e6;for(f=Fe;f=0&&d=0&&v{"use strict";var Im=Dr(),b_e=hs().BADNUM,w_e=Rg();T_e.exports=function(t,r,n,i,a,o){var s=t._length,l=r.makeCalcdata(t,i),u=n.makeCalcdata(t,a);l=w_e(t,r,i,l).vals,u=w_e(t,n,a,u).vals;var c=t.text,f=c!==void 0&&Im.isArray1D(c),h=t.hovertext,d=h!==void 0&&Im.isArray1D(h),v,x,b=Im.distinctVals(l),p=b.vals,C=Im.distinctVals(u),E=C.vals,A=[],L,_,k=E.length,M=p.length;for(v=0;v{"use strict";var L_t=Eo(),P_t=Dr(),e8=hs().BADNUM;A_e.exports=function(t,r,n,i){var a,o,s,l,u,c;function f(p){if(L_t(p))return+p}if(r&&r.transpose){for(a=0,u=0;u{"use strict";var I_t=Dr(),S_e=.01,R_t=[[-1,0],[1,0],[0,-1],[0,1]];function D_t(e){return .5-.25*Math.min(1,e*.5)}E_e.exports=function(t,r){var n=1,i;for(M_e(t,r),i=0;iS_e;i++)n=M_e(t,r,D_t(n));return n>S_e&&I_t.log("interp2d didn't converge quickly",n),t};function M_e(e,t,r){var n=0,i,a,o,s,l,u,c,f,h,d,v,x,b;for(s=0;sx&&(n=Math.max(n,Math.abs(e[a][o]-v)/(b-x))))}return n}});var i8=ye((wlr,C_e)=>{"use strict";var F_t=Dr().maxRowLength;C_e.exports=function(t){var r=[],n={},i=[],a=t[0],o=[],s=[0,0,0],l=F_t(t),u,c,f,h,d,v,x,b;for(c=0;c=0;d--)h=i[d],c=h[0],f=h[1],v=((n[[c-1,f]]||s)[2]+(n[[c+1,f]]||s)[2]+(n[[c,f-1]]||s)[2]+(n[[c,f+1]]||s)[2])/20,v&&(x[h]=[c,f,v],i.splice(d,1),b=!0);if(!b)throw"findEmpties iterated with no new neighbors";for(h in x)n[h]=x[h],r.push(x[h])}return r.sort(function(p,C){return C[2]-p[2]})}});var WV=ye((Tlr,P_e)=>{"use strict";var k_e=qa(),L_e=Dr().isArrayOrTypedArray;P_e.exports=function(t,r,n,i,a,o){var s=[],l=k_e.traceIs(t,"contour"),u=k_e.traceIs(t,"histogram"),c,f,h,d=L_e(r)&&r.length>1;if(d&&!u&&o.type!=="category"){var v=r.length;if(v<=a){if(l)s=Array.from(r).slice(0,a);else if(a===1)o.type==="log"?s=[.5*r[0],2*r[0]]:s=[r[0]-.5,r[0]+.5];else if(o.type==="log"){for(s=[Math.pow(r[0],1.5)/Math.pow(r[1],.5)],h=1;h{"use strict";var I_e=qa(),XV=Dr(),n8=ho(),R_e=Rg(),z_t=x_e(),O_t=Fv(),q_t=QI(),B_t=t8(),N_t=r8(),U_t=i8(),a8=WV(),ZV=hs().BADNUM;F_e.exports=function(t,r){var n=n8.getFromId(t,r.xaxis||"x"),i=n8.getFromId(t,r.yaxis||"y"),a=I_e.traceIs(r,"contour"),o=I_e.traceIs(r,"histogram"),s=a?"best":r.zsmooth,l,u,c,f,h,d,v,x,b,p,C;if(n._minDtick=0,i._minDtick=0,o)C=z_t(t,r),f=C.orig_x,l=C.x,u=C.x0,c=C.dx,x=C.orig_y,h=C.y,d=C.y0,v=C.dy,b=C.z;else{var E=r.z;XV.isArray1D(E)?(q_t(r,n,i,"x","y",["z"]),l=r._x,h=r._y,E=r._z):(f=r.x?n.makeCalcdata(r,"x"):[],x=r.y?i.makeCalcdata(r,"y"):[],l=R_e(r,n,"x",f).vals,h=R_e(r,i,"y",x).vals,r._x=l,r._y=h),u=r.x0,c=r.dx,d=r.y0,v=r.dy,b=B_t(E,r,n,i)}(n.rangebreaks||i.rangebreaks)&&(b=V_t(l,h,b),o||(l=D_e(l),h=D_e(h),r._x=l,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=U_t(b),N_t(b,r._emptypoints));function A(O){s=r._input.zsmooth=r.zsmooth=!1,XV.warn('cannot use zsmooth: "fast": '+O)}function L(O){if(O.length>1){var V=(O[O.length-1]-O[0])/(O.length-1),G=Math.abs(V/100);for(p=0;pG)return!1}return!0}r._islinear=!1,n.type==="log"||i.type==="log"?s==="fast"&&A("log axis found"):L(l)?L(h)?r._islinear=!0:s==="fast"&&A("y scale is not linear"):s==="fast"&&A("x scale is not linear");var _=XV.maxRowLength(b),k=r.xtype==="scaled"?"":l,M=a8(r,k,u,c,_,n),g=r.ytype==="scaled"?"":h,P=a8(r,g,d,v,b.length,i);r._extremes[n._id]=n8.findExtremes(n,M),r._extremes[i._id]=n8.findExtremes(i,P);var T={x:M,y:P,z:b,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&f&&(T.orig_x=f),r.yperiodalignment&&x&&(T.orig_y=x),k&&k.length===M.length-1&&(T.xCenter=k),g&&g.length===P.length-1&&(T.yCenter=g),o&&(T.xRanges=C.xRanges,T.yRanges=C.yRanges,T.pts=C.pts),a||O_t(t,r,{vals:b,cLetter:"z"}),a&&r.contours&&r.contours.coloring==="heatmap"){var z={type:r.type==="contour"?"heatmap":"histogram2d",xcalendar:r.xcalendar,ycalendar:r.ycalendar};T.xfill=a8(z,k,u,c,_,n),T.yfill=a8(z,g,d,v,b.length,i)}return[T]};function D_e(e){for(var t=[],r=e.length,n=0;n{"use strict";s8.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]];s8.STYLE=s8.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var YV=ye((Mlr,q_e)=>{"use strict";var z_e=l8(),G_t=So(),O_e=Dr(),PT=null;function H_t(){if(PT!==null)return PT;PT=!1;var e=O_e.isSafari()||O_e.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(z_e.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")PT=t.some(function(o){return r.apply(null,o)});else{var n=G_t.tester.append("image").attr("style",z_e.STYLE),i=window.getComputedStyle(n.node()),a=i.imageRendering;PT=t.some(function(o){var s=o[1];return a===s||a===s.toLowerCase()}),n.remove()}}return PT}q_e.exports=H_t});var u8=ye((Elr,X_e)=>{"use strict";var B_e=Oa(),j_t=cd(),W_t=qa(),X_t=So(),Z_t=ho(),H0=Dr(),N_e=iu(),Y_t=eI(),K_t=Ca(),J_t=tc().extractOpts,$_t=tc().makeColorScaleFuncFromTrace,Q_t=Wp(),ext=Kh(),KV=ext.LINE_SPACING,txt=YV(),rxt=l8().STYLE,j_e="heatmap-label";function W_e(e){return e.selectAll("g."+j_e)}function U_e(e){W_e(e).remove()}X_e.exports=function(e,t,r,n){var i=t.xaxis,a=t.yaxis;H0.makeTraceGroups(n,r,"hm").each(function(o){var s=B_e.select(this),l=o[0],u=l.trace,c=u.xgap||0,f=u.ygap||0,h=l.z,d=l.x,v=l.y,x=l.xCenter,b=l.yCenter,p=W_t.traceIs(u,"contour"),C=p?"best":u.zsmooth,E=h.length,A=H0.maxRowLength(h),L=!1,_=!1,k,M,g,P,T,z,O,V;for(z=0;k===void 0&&z0;)M=i.c2p(d[z]),z--;for(M0;)T=a.c2p(v[z]),z--;T=i._length||M<=0||P>=a._length||T<=0;if(j){var re=s.selectAll("image").data([]);re.exit().remove(),U_e(s);return}var oe,_e;G==="fast"?(oe=A,_e=E):(oe=H,_e=N);var Me=document.createElement("canvas");Me.width=oe,Me.height=_e;var ke=Me.getContext("2d",{willReadFrequently:!0}),me=$_t(u,{noNumericCheck:!0,returnArray:!0}),ie,Se;G==="fast"?(ie=L?function(cn){return A-1-cn}:H0.identity,Se=_?function(cn){return E-1-cn}:H0.identity):(ie=function(cn){return H0.constrain(Math.round(i.c2p(d[cn])-k),0,H)},Se=function(cn){return H0.constrain(Math.round(a.c2p(v[cn])-P),0,N)});var Le=Se(0),Ae=[Le,Le],Fe=L?0:1,Pe=_?0:1,ge=0,De=0,ce=0,Ze=0,ut,gt,Kt,st,lt;function Gt(cn,yn){if(cn!==void 0){var Mn=me(cn);return Mn[0]=Math.round(Mn[0]),Mn[1]=Math.round(Mn[1]),Mn[2]=Math.round(Mn[2]),ge+=yn,De+=Mn[0]*yn,ce+=Mn[1]*yn,Ze+=Mn[2]*yn,Mn}return[0,0,0,0]}function Ut(cn,yn,Mn,Ba){var la=cn[Mn.bin0];if(la===void 0)return Gt(void 0,1);var ma=cn[Mn.bin1],Wa=yn[Mn.bin0],Fa=yn[Mn.bin1],Wo=ma-la||0,da=Wa-la||0,Wn;return ma===void 0?Fa===void 0?Wn=0:Wa===void 0?Wn=2*(Fa-la):Wn=(2*Fa-Wa-la)*2/3:Fa===void 0?Wa===void 0?Wn=0:Wn=(2*la-ma-Wa)*2/3:Wa===void 0?Wn=(2*Fa-ma-la)*2/3:Wn=Fa+la-ma-Wa,Gt(la+Mn.frac*Wo+Ba.frac*(da+Mn.frac*Wn))}if(G!=="default"){var $t=0,sr;try{sr=new Uint8Array(oe*_e*4)}catch(cn){sr=new Array(oe*_e*4)}if(G==="smooth"){var Tr=x||d,ur=b||v,$e=new Array(Tr.length),Mt=new Array(ur.length),Ct=new Array(H),Vt=x?G_e:V_e,It=b?G_e:V_e,Ot,bt,rr;for(z=0;zvr||vr>a._length))for(O=Ce;Omi||mi>i._length)){var ei=Y_t({x:si,y:ir},u,e._fullLayout);ei.x=si,ei.y=ir;var vi=l.z[z][O];vi===void 0?(ei.z="",ei.zLabel=""):(ei.z=vi,ei.zLabel=Z_t.tickText(je,vi,"hover").text);var ji=l.text&&l.text[z]&&l.text[z][O];(ji===void 0||ji===!1)&&(ji=""),ei.text=ji;var Rn=H0.texttemplateString(Ge,ei,e._fullLayout._d3locale,ei,u._meta||{});if(Rn){var wn=Rn.split("
"),pn=wn.length,Vn=0;for(V=0;V{"use strict";Z_e.exports={min:"zmin",max:"zmax"}});var c8=ye((klr,Y_e)=>{"use strict";var ixt=Oa();Y_e.exports=function(t){ixt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var h8=ye((Llr,J_e)=>{"use strict";var K_e=df(),x4=Dr(),f8=x4.isArrayOrTypedArray,nxt=ho(),axt=tc().extractOpts;J_e.exports=function(t,r,n,i,a){a||(a={});var o=a.isContour,s=t.cd[0],l=s.trace,u=t.xa,c=t.ya,f=s.x,h=s.y,d=s.z,v=s.xCenter,x=s.yCenter,b=s.zmask,p=l.zhoverformat,C=f,E=h,A,L,_,k;if(t.index!==!1){try{_=Math.round(t.index[1]),k=Math.round(t.index[0])}catch(re){x4.error("Error hovering on heatmap, pointNumber must be [row,col], found:",t.index);return}if(_<0||_>=d[0].length||k<0||k>d.length)return}else{if(K_e.inbox(r-f[0],r-f[f.length-1],0)>0||K_e.inbox(n-h[0],n-h[h.length-1],0)>0)return;if(o){var M;for(C=[2*f[0]-f[1]],M=1;M{"use strict";$_e.exports={attributes:ET(),supplyDefaults:$1e(),calc:o8(),plot:u8(),colorbar:M_(),style:c8(),hoverPoints:h8(),moduleType:"trace",name:"heatmap",basePlotModule:vh(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var txe=ye((Ilr,exe)=>{"use strict";exe.exports=Q_e()});var JV=ye((Rlr,rxe)=>{"use strict";rxe.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var nxe=ye((Dlr,ixe)=>{"use strict";ixe.exports={eventDataKeys:["binNumber"]}});var d8=ye((Flr,sxe)=>{"use strict";var Pp=Lm(),axe=ff().axisHoverFormat,oxt=rs().hovertemplateAttrs,sxt=rs().texttemplateAttrs,$V=ec(),oxe=JV(),lxt=nxe(),QV=Ao().extendFlat;sxe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:axe("x"),yhoverformat:axe("y"),text:QV({},Pp.text,{}),hovertext:QV({},Pp.hovertext,{}),orientation:Pp.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:oxe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:oxe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:oxt({},{keys:lxt.eventDataKeys}),texttemplate:sxt({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),textposition:QV({},Pp.textposition,{arrayOk:!1}),textfont:$V({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:$V({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:$V({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Pp.insidetextanchor,textangle:Pp.textangle,cliponaxis:Pp.cliponaxis,constraintext:Pp.constraintext,marker:Pp.marker,offsetgroup:Pp.offsetgroup,alignmentgroup:Pp.alignmentgroup,selected:Pp.selected,unselected:Pp.unselected,zorder:Pp.zorder}});var fxe=ye((zlr,cxe)=>{"use strict";var lxe=qa(),b4=Dr(),uxe=Ca(),uxt=r0().handleText,cxt=qI(),fxt=d8();cxe.exports=function(t,r,n,i){function a(C,E){return b4.coerce(t,r,fxt,C,E)}var o=a("x"),s=a("y"),l=a("cumulative.enabled");l&&(a("cumulative.direction"),a("cumulative.currentbin")),a("text");var u=a("textposition");uxt(t,r,i,a,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat");var c=a("orientation",s&&!o?"h":"v"),f=c==="v"?"x":"y",h=c==="v"?"y":"x",d=o&&s?Math.min(b4.minRowLength(o)&&b4.minRowLength(s)):b4.minRowLength(r[f]||[]);if(!d){r.visible=!1;return}r._length=d;var v=lxe.getComponentMethod("calendars","handleTraceDefaults");v(t,r,["x","y"],i);var x=r[h];x&&a("histfunc"),a("histnorm"),a("autobin"+f),cxt(t,r,a,n,i),b4.coerceSelectionMarkerOpacity(r,a);var b=(r.marker.line||{}).color,p=lxe.getComponentMethod("errorbars","supplyDefaults");p(t,r,b||uxe.defaultLine,{axis:"y"}),p(t,r,b||uxe.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var p8=ye((Olr,vxe)=>{"use strict";var w4=Dr(),hxt=Af(),v8=qa().traceIs,dxt=Gb(),vxt=r0().validateCornerradius,hxe=w4.nestedProperty,eG=Bb().getAxisGroup,dxe=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],pxt=["x","y"];vxe.exports=function(t,r){var n=r._histogramBinOpts={},i=[],a={},o=[],s,l,u,c,f,h,d;function v(G,Z){return w4.coerce(s._input,s,s._module.attributes,G,Z)}function x(G){return G.orientation==="v"?"x":"y"}function b(G,Z){var H=hxt.getFromTrace({_fullLayout:r},G,Z);return H.type}function p(G,Z,H){var N=G.uid+"__"+H;Z||(Z=N);var j=b(G,H),re=G[H+"calendar"]||"",oe=n[Z],_e=!0;oe&&(j===oe.axType&&re===oe.calendar?(_e=!1,oe.traces.push(G),oe.dirs.push(H)):(Z=N,j!==oe.axType&&w4.warn(["Attempted to group the bins of trace",G.index,"set on a","type:"+j,"axis","with bins on","type:"+oe.axType,"axis."].join(" ")),re!==oe.calendar&&w4.warn(["Attempted to group the bins of trace",G.index,"set with a",re,"calendar","with bins",oe.calendar?"on a "+oe.calendar+" calendar":"w/o a set calendar"].join(" ")))),_e&&(n[Z]={traces:[G],dirs:[H],axType:j,calendar:G[H+"calendar"]||""}),G["_"+H+"bingroup"]=Z}for(f=0;f{"use strict";var gxt=TT().hoverPoints,mxt=ho().hoverLabelText;pxe.exports=function(t,r,n,i,a){var o=gxt(t,r,n,i,a);if(o){t=o[0];var s=t.cd[t.index],l=t.cd[0].trace;if(!l.cumulative.enabled){var u=l.orientation==="h"?"y":"x";t[u+"Label"]=mxt(t[u+"a"],[s.ph0,s.ph1],l[u+"hoverformat"])}return o}}});var tG=ye((Blr,mxe)=>{"use strict";mxe.exports=function(t,r,n,i,a){if(t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"zLabelVal"in r&&(t.z=r.zLabelVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),!(n.cumulative||{}).enabled){var o=Array.isArray(a)?i[0].pts[a[0]][a[1]]:i[a].pts;t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex;var s;if(n._indexToPoints){s=[];for(var l=0;l{"use strict";yxe.exports={attributes:d8(),layoutAttributes:OI(),supplyDefaults:fxe(),crossTraceDefaults:p8(),supplyLayoutDefaults:wV(),calc:jV().calc,crossTraceCalc:Hb().crossTraceCalc,plot:i2().plot,layerName:"barlayer",style:N0().style,styleOnSelect:N0().styleOnSelect,colorbar:$d(),hoverPoints:gxe(),selectPoints:AT(),eventData:tG(),moduleType:"trace",name:"histogram",basePlotModule:vh(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var bxe=ye((Ulr,xxe)=>{"use strict";xxe.exports=_xe()});var m8=ye((Vlr,Txe)=>{"use strict";var Vg=d8(),wxe=JV(),g8=ET(),yxt=Vl(),rG=ff().axisHoverFormat,_xt=rs().hovertemplateAttrs,xxt=rs().texttemplateAttrs,bxt=Tu(),T4=Ao().extendFlat;Txe.exports=T4({x:Vg.x,y:Vg.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:Vg.histnorm,histfunc:Vg.histfunc,nbinsx:Vg.nbinsx,xbins:wxe("x"),nbinsy:Vg.nbinsy,ybins:wxe("y"),autobinx:Vg.autobinx,autobiny:Vg.autobiny,bingroup:T4({},Vg.bingroup,{}),xbingroup:T4({},Vg.bingroup,{}),ybingroup:T4({},Vg.bingroup,{}),xgap:g8.xgap,ygap:g8.ygap,zsmooth:g8.zsmooth,xhoverformat:rG("x"),yhoverformat:rG("y"),zhoverformat:rG("z",1),hovertemplate:_xt({},{keys:"z"}),texttemplate:xxt({arrayOk:!1,editType:"plot"},{keys:"z"}),textfont:g8.textfont,showlegend:T4({},yxt.showlegend,{dflt:!1})},bxt("",{cLetter:"z",autoColorDflt:!1}))});var iG=ye((Glr,Sxe)=>{"use strict";var wxt=qa(),Axe=Dr();Sxe.exports=function(t,r,n,i){var a=n("x"),o=n("y"),s=Axe.minRowLength(a),l=Axe.minRowLength(o);if(!s||!l){r.visible=!1;return}r._length=Math.min(s,l);var u=wxt.getComponentMethod("calendars","handleTraceDefaults");u(t,r,["x","y"],i);var c=n("z")||n("marker.color");c&&n("histfunc"),n("histnorm"),n("autobinx"),n("autobiny")}});var Exe=ye((Hlr,Mxe)=>{"use strict";var Txt=Dr(),Axt=iG(),Sxt=qV(),Mxt=Jh(),Ext=_4(),Cxt=m8();Mxe.exports=function(t,r,n,i){function a(o,s){return Txt.coerce(t,r,Cxt,o,s)}Axt(t,r,a,i),r.visible!==!1&&(Sxt(t,r,a,i),Mxt(t,r,i,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),Ext(a,i),a("xhoverformat"),a("yhoverformat"))}});var Lxe=ye((jlr,kxe)=>{"use strict";var kxt=h8(),Cxe=ho().hoverLabelText;kxe.exports=function(t,r,n,i,a){var o=kxt(t,r,n,i,a);if(o){t=o[0];var s=t.index,l=s[0],u=s[1],c=t.cd[0],f=c.trace,h=c.xRanges[u],d=c.yRanges[l];return t.xLabel=Cxe(t.xa,[h[0],h[1]],f.xhoverformat),t.yLabel=Cxe(t.ya,[d[0],d[1]],f.yhoverformat),o}}});var Ixe=ye((Wlr,Pxe)=>{"use strict";Pxe.exports={attributes:m8(),supplyDefaults:Exe(),crossTraceDefaults:p8(),calc:o8(),plot:u8(),layerName:"heatmaplayer",colorbar:M_(),style:c8(),hoverPoints:Lxe(),eventData:tG(),moduleType:"trace",name:"histogram2d",basePlotModule:vh(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var Dxe=ye((Xlr,Rxe)=>{"use strict";Rxe.exports=Ixe()});var y8=ye((Zlr,Fxe)=>{"use strict";Fxe.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var A4=ye((Ylr,Bxe)=>{"use strict";var ed=ET(),_8=vf(),Oxe=ff(),nG=Oxe.axisHoverFormat,Lxt=Oxe.descriptionOnlyNumbers,Pxt=Tu(),Ixt=Pd().dash,Rxt=ec(),IT=Ao().extendFlat,qxe=y8(),Dxt=qxe.COMPARISON_OPS2,Fxt=qxe.INTERVAL_OPS,zxe=_8.line;Bxe.exports=IT({z:ed.z,x:ed.x,x0:ed.x0,dx:ed.dx,y:ed.y,y0:ed.y0,dy:ed.dy,xperiod:ed.xperiod,yperiod:ed.yperiod,xperiod0:_8.xperiod0,yperiod0:_8.yperiod0,xperiodalignment:ed.xperiodalignment,yperiodalignment:ed.yperiodalignment,text:ed.text,hovertext:ed.hovertext,transpose:ed.transpose,xtype:ed.xtype,ytype:ed.ytype,xhoverformat:nG("x"),yhoverformat:nG("y"),zhoverformat:nG("z",1),hovertemplate:ed.hovertemplate,texttemplate:IT({},ed.texttemplate,{}),textfont:IT({},ed.textfont,{}),hoverongaps:ed.hoverongaps,connectgaps:IT({},ed.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:Rxt({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:Lxt("contour label")},operation:{valType:"enumerated",values:[].concat(Dxt).concat(Fxt),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:IT({},zxe.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:Ixt,smoothing:IT({},zxe.smoothing,{}),editType:"plot"},zorder:_8.zorder},Pxt("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var oG=ye((Klr,Uxe)=>{"use strict";var Gv=m8(),Oy=A4(),zxt=Tu(),aG=ff().axisHoverFormat,Nxe=Ao().extendFlat;Uxe.exports=Nxe({x:Gv.x,y:Gv.y,z:Gv.z,marker:Gv.marker,histnorm:Gv.histnorm,histfunc:Gv.histfunc,nbinsx:Gv.nbinsx,xbins:Gv.xbins,nbinsy:Gv.nbinsy,ybins:Gv.ybins,autobinx:Gv.autobinx,autobiny:Gv.autobiny,bingroup:Gv.bingroup,xbingroup:Gv.xbingroup,ybingroup:Gv.ybingroup,autocontour:Oy.autocontour,ncontours:Oy.ncontours,contours:Oy.contours,line:{color:Oy.line.color,width:Nxe({},Oy.line.width,{dflt:.5}),dash:Oy.line.dash,smoothing:Oy.line.smoothing,editType:"plot"},xhoverformat:aG("x"),yhoverformat:aG("y"),zhoverformat:aG("z",1),hovertemplate:Gv.hovertemplate,texttemplate:Oy.texttemplate,textfont:Oy.textfont},zxt("",{cLetter:"z",editTypeOverride:"calc"}))});var x8=ye((Jlr,Vxe)=>{"use strict";Vxe.exports=function(t,r,n,i){var a=i("contours.start"),o=i("contours.end"),s=a===!1||o===!1,l=n("contours.size"),u;s?u=r.autocontour=!0:u=n("autocontour",!1),(u||!l)&&n("ncontours")}});var sG=ye(($lr,Gxe)=>{"use strict";var Oxt=Dr();Gxe.exports=function(t,r,n,i){i||(i={});var a=t("contours.showlabels");if(a){var o=r.font;Oxt.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:n}}),t("contours.labelformat")}i.hasHover!==!1&&t("zhoverformat")}});var b8=ye((Qlr,Hxe)=>{"use strict";var qxt=Jh(),Bxt=sG();Hxe.exports=function(t,r,n,i,a){var o=n("contours.coloring"),s,l="";o==="fill"&&(s=n("contours.showlines")),s!==!1&&(o!=="lines"&&(l=n("line.color","#000")),n("line.width",.5),n("line.dash")),o!=="none"&&(t.showlegend!==!0&&(r.showlegend=!1),r._dfltShowLegend=!1,qxt(t,r,i,n,{prefix:"",cLetter:"z"})),n("line.smoothing"),Bxt(n,i,l,a)}});var Zxe=ye((eur,Xxe)=>{"use strict";var jxe=Dr(),Nxt=iG(),Uxt=x8(),Vxt=b8(),Gxt=_4(),Wxe=oG();Xxe.exports=function(t,r,n,i){function a(s,l){return jxe.coerce(t,r,Wxe,s,l)}function o(s){return jxe.coerce2(t,r,Wxe,s)}Nxt(t,r,a,i),r.visible!==!1&&(Uxt(t,r,a,o),Vxt(t,r,a,i),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),r.contours&&r.contours.coloring==="heatmap"&&Gxt(a,i))}});var cG=ye((tur,Kxe)=>{"use strict";var uG=ho(),lG=Dr();Kxe.exports=function(t,r){var n=t.contours;if(t.autocontour){var i=t.zmin,a=t.zmax;(t.zauto||i===void 0)&&(i=lG.aggNums(Math.min,null,r)),(t.zauto||a===void 0)&&(a=lG.aggNums(Math.max,null,r));var o=Yxe(i,a,t.ncontours);n.size=o.dtick,n.start=uG.tickFirst(o),o.range.reverse(),n.end=uG.tickFirst(o),n.start===i&&(n.start+=n.size),n.end===a&&(n.end-=n.size),n.start>n.end&&(n.start=n.end=(n.start+n.end)/2),t._input.contours||(t._input.contours={}),lG.extendFlat(t._input.contours,{start:n.start,end:n.end,size:n.size}),t._input.autocontour=!0}else if(n.type!=="constraint"){var s=n.start,l=n.end,u=t._input.contours;if(s>l&&(n.start=u.start=l,l=n.end=u.end=s,s=n.start),!(n.size>0)){var c;s===l?c=1:c=Yxe(s,l,t.ncontours).dtick,u.size=n.size=c}}};function Yxe(e,t,r){var n={type:"linear",range:[e,t]};return uG.autoTicks(n,(t-e)/(r||15)),n}});var S4=ye((rur,Jxe)=>{"use strict";Jxe.exports=function(t){return t.end+t.size/1e6}});var fG=ye((iur,Qxe)=>{"use strict";var $xe=tc(),Hxt=o8(),jxt=cG(),Wxt=S4();Qxe.exports=function(t,r){var n=Hxt(t,r),i=n[0].z;jxt(r,i);var a=r.contours,o=$xe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var l=a.start,u=Wxt(a),c=a.size||1,f=Math.floor((u-l)/c)+1;isFinite(c)||(c=1,f=1);var h=l-c/2,d=h+f*c;s=[h,d]}else s=i;return $xe.calc(t,r,{vals:s,cLetter:"z"}),n}});var M4=ye((nur,ebe)=>{"use strict";ebe.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}});var hG=ye((aur,tbe)=>{"use strict";var w8=M4();tbe.exports=function(t){var r=t[0].z,n=r.length,i=r[0].length,a=n===2||i===2,o,s,l,u,c,f,h,d,v;for(s=0;se?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);if(r===5||r===10){var n=(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4;return e>n?r===5?713:1114:r===5?104:208}return r===15?0:r}});var dG=ye((our,nbe)=>{"use strict";var T8=Dr(),RT=M4();nbe.exports=function(t,r,n){var i,a,o,s,l;for(r=r||.01,n=n||.01,o=0;o20?(o=RT.CHOOSESADDLE[o][(s[0]||s[1])<0?0:1],e.crossings[a]=RT.SADDLEREMAINDER[o]):delete e.crossings[a],s=RT.NEWDELTA[o],!s){T8.log("Found bad marching index:",o,t,e.level);break}l.push(ibe(e,t,s)),t[0]+=s[0],t[1]+=s[1],a=t.join(","),E4(l[l.length-1],l[l.length-2],n,i)&&l.pop();var v=s[0]&&(t[0]<0||t[0]>c-2)||s[1]&&(t[1]<0||t[1]>u-2),x=t[0]===f[0]&&t[1]===f[1]&&s[0]===h[0]&&s[1]===h[1];if(x||r&&v)break;o=e.crossings[a]}d===1e4&&T8.log("Infinite loop in contour?");var b=E4(l[0],l[l.length-1],n,i),p=0,C=.2*e.smoothing,E=[],A=0,L,_,k,M,g,P,T,z,O,V,G;for(d=1;d=A;d--)if(L=E[d],L=A&&L+E[_]z&&O--,e.edgepaths[O]=G.concat(l,V));break}j||(e.edgepaths[z]=l.concat(V))}for(z=0;z20&&t?e===208||e===1114?n=r[0]===0?1:-1:i=r[1]===0?1:-1:RT.BOTTOMSTART.indexOf(e)!==-1?i=1:RT.LEFTSTART.indexOf(e)!==-1?n=1:RT.TOPSTART.indexOf(e)!==-1?i=-1:n=-1,[n,i]}function ibe(e,t,r){var n=t[0]+Math.max(r[0],0),i=t[1]+Math.max(r[1],0),a=e.z[i][n],o=e.xaxis,s=e.yaxis;if(r[1]){var l=(e.level-a)/(e.z[i][n+1]-a),u=(l!==1?(1-l)*o.c2l(e.x[n]):0)+(l!==0?l*o.c2l(e.x[n+1]):0);return[o.c2p(o.l2c(u),!0),s.c2p(e.y[i],!0),n+l,i]}else{var c=(e.level-a)/(e.z[i+1][n]-a),f=(c!==1?(1-c)*s.c2l(e.y[i]):0)+(c!==0?c*s.c2l(e.y[i+1]):0);return[o.c2p(e.x[n],!0),s.c2p(s.l2c(f),!0),n,i+c]}}});var lbe=ye((sur,sbe)=>{"use strict";var vG=y8(),Kxt=Eo();sbe.exports={"[]":abe("[]"),"][":abe("]["),">":pG(">"),"<":pG("<"),"=":pG("=")};function obe(e,t){var r=Array.isArray(t),n;function i(a){return Kxt(a)?+a:null}return vG.COMPARISON_OPS2.indexOf(e)!==-1?n=i(r?t[0]:t):vG.INTERVAL_OPS.indexOf(e)!==-1?n=r?[i(t[0]),i(t[1])]:[i(t),i(t)]:vG.SET_OPS.indexOf(e)!==-1&&(n=r?t.map(i):[i(t)]),n}function abe(e){return function(t){t=obe(e,t);var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return{start:r,end:n,size:n-r}}}function pG(e){return function(t){return t=obe(e,t),{start:t,end:1/0,size:1/0}}}});var gG=ye((lur,cbe)=>{"use strict";var ube=Dr(),Jxt=lbe(),$xt=S4();cbe.exports=function(t,r,n){for(var i=t.type==="constraint"?Jxt[t._operation](t.value):t,a=i.size,o=[],s=$xt(i),l=n.trace._carpetTrace,u=l?{xaxis:l.aaxis,yaxis:l.baxis,x:n.a,y:n.b}:{xaxis:r.xaxis,yaxis:r.yaxis,x:n.x,y:n.y},c=i.start;c1e3){ube.warn("Too many contours, clipping at 1000",t);break}return o}});var mG=ye((uur,hbe)=>{"use strict";var DT=Dr();hbe.exports=function(e,t){var r,n,i,a=function(l){return l.reverse()},o=function(l){return l};switch(t){case"=":case"<":return e;case">":for(e.length!==1&&DT.warn("Contour data invalid for the specified inequality operation."),n=e[0],r=0;r{"use strict";dbe.exports=function(e,t){var r=e[0],n=r.z,i;switch(t.type){case"levels":var a=Math.min(n[0][0],n[0][1]);for(i=0;io.level||o.starts.length&&a===o.level)}break;case"constraint":if(r.prefixBoundary=!1,r.edgepaths.length)return;var s=r.x.length,l=r.y.length,u=-1/0,c=1/0;for(i=0;i":f>u&&(r.prefixBoundary=!0);break;case"<":(fu||r.starts.length&&d===c)&&(r.prefixBoundary=!0);break;case"][":h=Math.min(f[0],f[1]),d=Math.max(f[0],f[1]),hu&&(r.prefixBoundary=!0);break}break}}});var A8=ye(Hv=>{"use strict";var k4=Oa(),zd=Dr(),qy=So(),Qxt=tc(),gbe=iu(),vbe=ho(),pbe=ym(),ebt=u8(),mbe=hG(),ybe=dG(),tbt=gG(),rbt=mG(),_be=yG(),C4=M4(),Rm=C4.LABELOPTIMIZER;Hv.plot=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;zd.makeTraceGroups(i,n,"contour").each(function(s){var l=k4.select(this),u=s[0],c=u.trace,f=u.x,h=u.y,d=c.contours,v=tbt(d,r,u),x=zd.ensureSingle(l,"g","heatmapcoloring"),b=[];d.coloring==="heatmap"&&(b=[s]),ebt(t,r,b,x),mbe(v),ybe(v);var p=a.c2p(f[0],!0),C=a.c2p(f[f.length-1],!0),E=o.c2p(h[0],!0),A=o.c2p(h[h.length-1],!0),L=[[p,A],[C,A],[C,E],[p,E]],_=v;d.type==="constraint"&&(_=rbt(v,d._operation)),ibt(l,L,d),nbt(l,_,L,d),abt(l,v,t,u,d),sbt(l,r,t,u,L)})};function ibt(e,t,r){var n=zd.ensureSingle(e,"g","contourbg"),i=n.selectAll("path").data(r.coloring==="fill"?[0]:[]);i.enter().append("path"),i.exit().remove(),i.attr("d","M"+t.join("L")+"Z").style("stroke","none")}function nbt(e,t,r,n){var i=n.coloring==="fill"||n.type==="constraint"&&n._operation!=="=",a="M"+r.join("L")+"Z";i&&_be(t,n);var o=zd.ensureSingle(e,"g","contourfill"),s=o.selectAll("path").data(i?t:[]);s.enter().append("path"),s.exit().remove(),s.each(function(l){var u=(l.prefixBoundary?a:"")+xbe(l,r);u?k4.select(this).attr("d",u).style("stroke","none"):k4.select(this).remove()})}function xbe(e,t){var r="",n=0,i=e.edgepaths.map(function(p,C){return C}),a=!0,o,s,l,u,c,f;function h(p){return Math.abs(p[1]-t[0][1])<.01}function d(p){return Math.abs(p[1]-t[2][1])<.01}function v(p){return Math.abs(p[0]-t[0][0])<.01}function x(p){return Math.abs(p[0]-t[2][0])<.01}for(;i.length;){for(f=qy.smoothopen(e.edgepaths[n],e.smoothing),r+=a?f:f.replace(/^M/,"L"),i.splice(i.indexOf(n),1),o=e.edgepaths[n][e.edgepaths[n].length-1],u=-1,l=0;l<4;l++){if(!o){zd.log("Missing end?",n,e);break}for(h(o)&&!x(o)?s=t[1]:v(o)?s=t[0]:d(o)?s=t[3]:x(o)&&(s=t[2]),c=0;c=0&&(s=b,u=c):Math.abs(o[1]-s[1])<.01?Math.abs(o[1]-b[1])<.01&&(b[0]-o[0])*(s[0]-b[0])>=0&&(s=b,u=c):zd.log("endpt to newendpt is not vert. or horz.",o,s,b)}if(o=s,u>=0)break;r+="L"+s}if(u===e.edgepaths.length){zd.log("unclosed perimeter path");break}n=u,a=i.indexOf(n)===-1,a&&(n=i[0],r+="Z")}for(n=0;nRm.MAXCOST*2)break;h&&(s/=2),o=u-s/2,l=o+s*1.5}if(f<=Rm.MAXCOST)return c};function obt(e,t,r,n){var i=t.width/2,a=t.height/2,o=e.x,s=e.y,l=e.theta,u=Math.cos(l)*i,c=Math.sin(l)*i,f=(o>n.center?n.right-o:o-n.left)/(u+Math.abs(Math.sin(l)*a)),h=(s>n.middle?n.bottom-s:s-n.top)/(Math.abs(c)+Math.cos(l)*a);if(f<1||h<1)return 1/0;var d=Rm.EDGECOST*(1/(f-1)+1/(h-1));d+=Rm.ANGLECOST*l*l;for(var v=o-u,x=s-c,b=o+u,p=s+c,C=0;C{"use strict";var ubt=Oa(),_G=tc(),cbt=S4();bbe.exports=function(t){var r=t.contours,n=r.start,i=cbt(r),a=r.size||1,o=Math.floor((i-n)/a)+1,s=r.coloring==="lines"?0:1,l=_G.extractOpts(t);isFinite(a)||(a=1,o=1);var u=l.reversescale?_G.flipScale(l.colorscale):l.colorscale,c=u.length,f=new Array(c),h=new Array(c),d,v,x=l.min,b=l.max;if(r.coloring==="heatmap"){for(v=0;v=b)&&(n<=x&&(n=x),i>=b&&(i=b),o=Math.floor((i-n)/a)+1,s=0),v=0;vx&&(f.unshift(x),h.unshift(h[0])),f[f.length-1]{"use strict";var S8=Oa(),wbe=So(),fbt=c8(),hbt=xG();Tbe.exports=function(t){var r=S8.select(t).selectAll("g.contour");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=S8.select(this),a=n[0].trace,o=a.contours,s=a.line,l=o.size||1,u=o.start,c=o.type==="constraint",f=!c&&o.coloring==="lines",h=!c&&o.coloring==="fill",d=f||h?hbt(a):null;i.selectAll("g.contourlevel").each(function(b){S8.select(this).selectAll("path").call(wbe.lineGroupStyle,s.width,f?d(b.level):s.color,s.dash)});var v=o.labelfont;if(i.selectAll("g.contourlabels text").each(function(b){wbe.font(S8.select(this),{weight:v.weight,style:v.style,variant:v.variant,textcase:v.textcase,lineposition:v.lineposition,shadow:v.shadow,family:v.family,size:v.size,color:v.color||(f?d(b.level):s.color)})}),c)i.selectAll("g.contourfill path").style("fill",a.fillcolor);else if(h){var x;i.selectAll("g.contourfill path").style("fill",function(b){return x===void 0&&(x=b.level),d(b.level+.5*l)}),x===void 0&&(x=u),i.selectAll("g.contourbg path").style("fill",d(x-.5*l))}}),fbt(t)}});var E8=ye((vur,Sbe)=>{"use strict";var Abe=tc(),dbt=xG(),vbt=S4();function pbt(e,t,r){var n=t.contours,i=t.line,a=n.size||1,o=n.coloring,s=dbt(t,{isColorbar:!0});if(o==="heatmap"){var l=Abe.extractOpts(t);r._fillgradient=l.reversescale?Abe.flipScale(l.colorscale):l.colorscale,r._zrange=[l.min,l.max]}else o==="fill"&&(r._fillcolor=s);r._line={color:o==="lines"?s:i.color,width:n.showlines!==!1?i.width:0,dash:i.dash},r._levels={start:n.start,end:vbt(n),size:a}}Sbe.exports={min:"zmin",max:"zmax",calc:pbt}});var bG=ye((pur,Mbe)=>{"use strict";var C8=Ca(),gbt=h8();Mbe.exports=function(t,r,n,i,a){a||(a={}),a.isContour=!0;var o=gbt(t,r,n,i,a);return o&&o.forEach(function(s){var l=s.trace;l.contours.type==="constraint"&&(l.fillcolor&&C8.opacity(l.fillcolor)?s.color=C8.addOpacity(l.fillcolor,1):l.contours.showlines&&C8.opacity(l.line.color)&&(s.color=C8.addOpacity(l.line.color,1)))}),o}});var Cbe=ye((gur,Ebe)=>{"use strict";Ebe.exports={attributes:oG(),supplyDefaults:Zxe(),crossTraceDefaults:p8(),calc:fG(),plot:A8().plot,layerName:"contourlayer",style:M8(),colorbar:E8(),hoverPoints:bG(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:vh(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var Lbe=ye((mur,kbe)=>{"use strict";kbe.exports=Cbe()});var wG=ye((yur,zbe)=>{"use strict";var Pbe=Eo(),mbt=sG(),Dbe=Ca(),Ibe=Dbe.addOpacity,ybt=Dbe.opacity,Fbe=y8(),Rbe=Dr().isArrayOrTypedArray,_bt=Fbe.CONSTRAINT_REDUCTION,xbt=Fbe.COMPARISON_OPS2;zbe.exports=function(t,r,n,i,a,o){var s=r.contours,l,u,c,f=n("contours.operation");if(s._operation=_bt[f],bbt(n,s),f==="="?l=s.showlines=!0:(l=n("contours.showlines"),c=n("fillcolor",Ibe((t.line||{}).color||a,.5))),l){var h=c&&ybt(c)?Ibe(r.fillcolor,1):a;u=n("line.color",h),n("line.width",2),n("line.dash")}n("line.smoothing"),mbt(n,i,u,o)};function bbt(e,t){var r;xbt.indexOf(t.operation)===-1?(e("contours.value",[0,1]),Rbe(t.value)?t.value.length>2?t.value=t.value.slice(2):t.length===0?t.value=[0,1]:t.length<2?(r=parseFloat(t.value[0]),t.value=[r,r+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:Pbe(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),Pbe(t.value)||(Rbe(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var Bbe=ye((_ur,qbe)=>{"use strict";var TG=Dr(),wbt=KI(),Tbt=Pg(),Abt=wG(),Sbt=x8(),Mbt=b8(),Ebt=_4(),Obe=A4();qbe.exports=function(t,r,n,i){function a(u,c){return TG.coerce(t,r,Obe,u,c)}function o(u){return TG.coerce2(t,r,Obe,u)}var s=wbt(t,r,a,i);if(!s){r.visible=!1;return}Tbt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hoverongaps"),a("hovertemplate");var l=a("contours.type")==="constraint";a("connectgaps",TG.isArray1D(r.z)),l?Abt(t,r,a,i,n):(Sbt(t,r,a,o),Mbt(t,r,a,i)),r.contours&&r.contours.coloring==="heatmap"&&Ebt(a,i),a("zorder")}});var Ube=ye((xur,Nbe)=>{"use strict";Nbe.exports={attributes:A4(),supplyDefaults:Bbe(),calc:fG(),plot:A8().plot,style:M8(),colorbar:E8(),hoverPoints:bG(),moduleType:"trace",name:"contour",basePlotModule:vh(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var Gbe=ye((bur,Vbe)=>{"use strict";Vbe.exports=Ube()});var AG=ye((wur,jbe)=>{"use strict";var Cbt=rs().hovertemplateAttrs,kbt=rs().texttemplateAttrs,Lbt=Eg(),a0=vf(),Pbt=Vl(),Hbe=Tu(),Ibt=Pd().dash,E_=Ao().extendFlat,j0=a0.marker,L4=a0.line,Rbt=j0.line;jbe.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:E_({},a0.mode,{dflt:"markers"}),text:E_({},a0.text,{}),texttemplate:kbt({editType:"plot"},{keys:["a","b","c","text"]}),hovertext:E_({},a0.hovertext,{}),line:{color:L4.color,width:L4.width,dash:Ibt,backoff:L4.backoff,shape:E_({},L4.shape,{values:["linear","spline"]}),smoothing:L4.smoothing,editType:"calc"},connectgaps:a0.connectgaps,cliponaxis:a0.cliponaxis,fill:E_({},a0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:Lbt(),marker:E_({symbol:j0.symbol,opacity:j0.opacity,angle:j0.angle,angleref:j0.angleref,standoff:j0.standoff,maxdisplayed:j0.maxdisplayed,size:j0.size,sizeref:j0.sizeref,sizemin:j0.sizemin,sizemode:j0.sizemode,line:E_({width:Rbt.width,editType:"calc"},Hbe("marker.line")),gradient:j0.gradient,editType:"calc"},Hbe("marker")),textfont:a0.textfont,textposition:a0.textposition,selected:a0.selected,unselected:a0.unselected,hoverinfo:E_({},Pbt.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:a0.hoveron,hovertemplate:Cbt()}});var Ybe=ye((Tur,Zbe)=>{"use strict";var Wbe=Dr(),Dbt=Sm(),FT=Ru(),Fbt=$p(),zbt=R0(),Xbe=J3(),Obt=D0(),qbt=Ig(),Bbt=AG();Zbe.exports=function(t,r,n,i){function a(h,d){return Wbe.coerce(t,r,Bbt,h,d)}var o=a("a"),s=a("b"),l=a("c"),u;if(o?(u=o.length,s?(u=Math.min(u,s.length),l&&(u=Math.min(u,l.length))):l?u=Math.min(u,l.length):u=0):s&&l&&(u=Math.min(s.length,l.length)),!u){r.visible=!1;return}r._length=u,a("sum"),a("text"),a("hovertext"),r.hoveron!=="fills"&&a("hovertemplate");var c=u{"use strict";var SG=ho();Kbe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.aLabel=SG.tickText(a.aaxis,t.a,!0).text,i.bLabel=SG.tickText(a.baxis,t.b,!0).text,i.cLabel=SG.tickText(a.caxis,t.c,!0).text,i}});var t2e=ye((Sur,e2e)=>{"use strict";var MG=Eo(),Nbt=F0(),Ubt=Cm(),Vbt=z0(),Gbt=O0().calcMarkerSize,$be=["a","b","c"],Qbe={a:["b","c"],b:["a","c"],c:["a","b"]};e2e.exports=function(t,r){var n=t._fullLayout[r.subplot],i=n.sum,a=r.sum||i,o={a:r.a,b:r.b,c:r.c},s=r.ids,l,u,c,f,h,d;for(l=0;l<$be.length;l++)if(c=$be[l],!o[c]){for(h=o[Qbe[c][0]],d=o[Qbe[c][1]],f=new Array(h.length),u=0;u{"use strict";var Hbt=iT();r2e.exports=function(t,r,n){var i=r.plotContainer;i.select(".scatterlayer").selectAll("*").remove();for(var a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:i,layerClipId:r._hasClipOnAxisFalse?r.clipIdRelative:null},l=r.layers.frontplot.select("g.scatterlayer"),u=0;u{"use strict";var jbt=sT();n2e.exports=function(t,r,n,i){var a=jbt(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,l=t.xa._length,u=l*s/2,c=l-u;return o.x0=Math.max(Math.min(o.x0,c),u),o.x1=Math.max(Math.min(o.x1,c),u),a}var f=o.cd[o.index],h=o.trace,d=o.subplot;o.a=f.a,o.b=f.b,o.c=f.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var v={};v[h.subplot]={_subplot:d};var x=h._module.formatLabels(f,h,v);o.aLabel=x.aLabel,o.bLabel=x.bLabel,o.cLabel=x.cLabel;var b=f.hi||h.hoverinfo,p=[];function C(A,L){p.push(A._hovertitle+": "+L)}if(!h.hovertemplate){var E=b.split("+");E.indexOf("all")!==-1&&(E=["a","b","c"]),E.indexOf("a")!==-1&&C(d.aaxis,o.aLabel),E.indexOf("b")!==-1&&C(d.baxis,o.bLabel),E.indexOf("c")!==-1&&C(d.caxis,o.cLabel)}return o.extraText=p.join("
"),o.hovertemplate=h.hovertemplate,a}});var s2e=ye((Cur,o2e)=>{"use strict";o2e.exports=function(t,r,n,i,a){if(r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),i[a]){var o=i[a];t.a=o.a,t.b=o.b,t.c=o.c}else t.a=r.a,t.b=r.b,t.c=r.c;return t}});var y2e=ye((kur,m2e)=>{"use strict";var d2e=Oa(),Wbt=cd(),EG=qa(),By=Dr(),Dm=By.strTranslate,k8=By._,OT=Ca(),L8=So(),P4=ym(),CG=Ao().extendFlat,Xbt=Mc(),C_=ho(),l2e=gv(),u2e=df(),v2e=Sg(),c2e=v2e.freeMode,Zbt=v2e.rectMode,kG=Mb(),Ybt=Ff().prepSelect,Kbt=Ff().selectOnClick,Jbt=Ff().clearOutline,$bt=Ff().clearSelectionsCache,p2e=hd();function g2e(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.updateFx(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}m2e.exports=g2e;var Fm=g2e.prototype;Fm.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Fm.plot=function(e,t){var r=this,n=t[r.id],i=t._size;r._hasClipOnAxisFalse=!1;for(var a=0;azT*u?(p=u,b=p*zT):(b=l,p=b/zT),C=o*b/l,E=s*p/u,v=t.l+t.w*i-b/2,x=t.t+t.h*(1-a)-p/2,r.x0=v,r.y0=x,r.w=b,r.h=p,r.sum=c,r.xaxis={type:"linear",range:[f+2*d-c,c-f-2*h],domain:[i-C/2,i+C/2],_id:"x"},P4(r.xaxis,r.graphDiv._fullLayout),r.xaxis.setScale(),r.xaxis.isPtWithinRange=function(V){return V.a>=r.aaxis.range[0]&&V.a<=r.aaxis.range[1]&&V.b>=r.baxis.range[1]&&V.b<=r.baxis.range[0]&&V.c>=r.caxis.range[1]&&V.c<=r.caxis.range[0]},r.yaxis={type:"linear",range:[f,c-h-d],domain:[a-E/2,a+E/2],_id:"y"},P4(r.yaxis,r.graphDiv._fullLayout),r.yaxis.setScale(),r.yaxis.isPtWithinRange=function(){return!0};var A=r.yaxis.domain[0],L=r.aaxis=CG({},e.aaxis,{range:[f,c-h-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[A,A+E*zT],anchor:"free",position:0,_id:"y",_length:b});P4(L,r.graphDiv._fullLayout),L.setScale();var _=r.baxis=CG({},e.baxis,{range:[c-f-d,h],side:"bottom",domain:r.xaxis.domain,anchor:"free",position:0,_id:"x",_length:b});P4(_,r.graphDiv._fullLayout),_.setScale();var k=r.caxis=CG({},e.caxis,{range:[c-f-h,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[A,A+E*zT],anchor:"free",position:0,_id:"y",_length:b});P4(k,r.graphDiv._fullLayout),k.setScale();var M="M"+v+","+(x+p)+"h"+b+"l-"+b/2+",-"+p+"Z";r.clipDef.select("path").attr("d",M),r.layers.plotbg.select("path").attr("d",M);var g="M0,"+p+"h"+b+"l-"+b/2+",-"+p+"Z";r.clipDefRelative.select("path").attr("d",g);var P=Dm(v,x);r.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",P),r.clipDefRelative.select("path").attr("transform",null);var T=Dm(v-_._offset,x+p);r.layers.baxis.attr("transform",T),r.layers.bgrid.attr("transform",T);var z=Dm(v+b/2,x)+"rotate(30)"+Dm(0,-L._offset);r.layers.aaxis.attr("transform",z),r.layers.agrid.attr("transform",z);var O=Dm(v+b/2,x)+"rotate(-30)"+Dm(0,-k._offset);r.layers.caxis.attr("transform",O),r.layers.cgrid.attr("transform",O),r.drawAxes(!0),r.layers.aline.select("path").attr("d",L.showline?"M"+v+","+(x+p)+"l"+b/2+",-"+p:"M0,0").call(OT.stroke,L.linecolor||"#000").style("stroke-width",(L.linewidth||0)+"px"),r.layers.bline.select("path").attr("d",_.showline?"M"+v+","+(x+p)+"h"+b:"M0,0").call(OT.stroke,_.linecolor||"#000").style("stroke-width",(_.linewidth||0)+"px"),r.layers.cline.select("path").attr("d",k.showline?"M"+(v+b/2)+","+x+"l"+b/2+","+p:"M0,0").call(OT.stroke,k.linecolor||"#000").style("stroke-width",(k.linewidth||0)+"px"),r.graphDiv._context.staticPlot||r.initInteractions(),L8.setClipUrl(r.layers.frontplot,r._hasClipOnAxisFalse?null:r.clipId,r.graphDiv)};Fm.drawAxes=function(e){var t=this,r=t.graphDiv,n=t.id.substr(7)+"title",i=t.layers,a=t.aaxis,o=t.baxis,s=t.caxis;if(t.drawAx(a),t.drawAx(o),t.drawAx(s),e){var l=Math.max(a.showticklabels?a.tickfont.size/2:0,(s.showticklabels?s.tickfont.size*.75:0)+(s.ticks==="outside"?s.ticklen*.87:0)),u=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;i["a-title"]=kG.draw(r,"a"+n,{propContainer:a,propName:t.id+".aaxis.title",placeholder:k8(r,"Click to enter Component A title"),attributes:{x:t.x0+t.w/2,y:t.y0-a.title.font.size/3-l,"text-anchor":"middle"}}),i["b-title"]=kG.draw(r,"b"+n,{propContainer:o,propName:t.id+".baxis.title",placeholder:k8(r,"Click to enter Component B title"),attributes:{x:t.x0-u,y:t.y0+t.h+o.title.font.size*.83+u,"text-anchor":"middle"}}),i["c-title"]=kG.draw(r,"c"+n,{propContainer:s,propName:t.id+".caxis.title",placeholder:k8(r,"Click to enter Component C title"),attributes:{x:t.x0+t.w+u,y:t.y0+t.h+s.title.font.size*.83+u,"text-anchor":"middle"}})}};Fm.drawAx=function(e){var t=this,r=t.graphDiv,n=e._name,i=n.charAt(0),a=e._id,o=t.layers[n],s=30,l=i+"tickLayout",u=Qbt(e);t[l]!==u&&(o.selectAll("."+a+"tick").remove(),t[l]=u),e.setScale();var c=C_.calcTicks(e),f=C_.clipEnds(e,c),h=C_.makeTransTickFn(e),d=C_.getTickSigns(e)[2],v=By.deg2rad(s),x=d*(e.linewidth||1)/2,b=d*e.ticklen,p=t.w,C=t.h,E=i==="b"?"M0,"+x+"l"+Math.sin(v)*b+","+Math.cos(v)*b:"M"+x+",0l"+Math.cos(v)*b+","+-Math.sin(v)*b,A={a:"M0,0l"+C+",-"+p/2,b:"M0,0l-"+p/2+",-"+C,c:"M0,0l-"+C+","+p/2}[i];C_.drawTicks(r,e,{vals:e.ticks==="inside"?f:c,layer:o,path:E,transFn:h,crisp:!1}),C_.drawGrid(r,e,{vals:f,layer:t.layers[i+"grid"],path:A,transFn:h,crisp:!1}),C_.drawLabels(r,e,{vals:c,layer:o,transFn:h,labelFns:C_.makeLabelFns(e,0,s)})};function Qbt(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var yd=p2e.MINZOOM/2+.87,e2t="m-0.87,.5h"+yd+"v3h-"+(yd+5.2)+"l"+(yd/2+2.6)+",-"+(yd*.87+4.5)+"l2.6,1.5l-"+yd/2+","+yd*.87+"Z",t2t="m0.87,.5h-"+yd+"v3h"+(yd+5.2)+"l-"+(yd/2+2.6)+",-"+(yd*.87+4.5)+"l-2.6,1.5l"+yd/2+","+yd*.87+"Z",r2t="m0,1l"+yd/2+","+yd*.87+"l2.6,-1.5l-"+(yd/2+2.6)+",-"+(yd*.87+4.5)+"l-"+(yd/2+2.6)+","+(yd*.87+4.5)+"l2.6,1.5l"+yd/2+",-"+yd*.87+"Z",i2t="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",f2e=!0;Fm.clearOutline=function(){$bt(this.dragOptions),Jbt(this.dragOptions.gd)};Fm.initInteractions=function(){var e=this,t=e.layers.plotbg.select("path").node(),r=e.graphDiv,n=r._fullLayout._zoomlayer,i,a;this.dragOptions={element:t,gd:r,plotinfo:{id:e.id,domain:r._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(T,z,O){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],i=r._fullLayout._invScaleX,a=r._fullLayout._invScaleY;var V=e.dragOptions.dragmode=r._fullLayout.dragmode;c2e(V)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,V==="zoom"?(e.dragOptions.moveFn=_,e.dragOptions.clickFn=p,e.dragOptions.doneFn=k,C(T,z,O)):V==="pan"?(e.dragOptions.moveFn=g,e.dragOptions.clickFn=p,e.dragOptions.doneFn=P,M(),e.clearOutline(r)):(Zbt(V)||c2e(V))&&Ybt(T,z,O,e.dragOptions,V)}};var o,s,l,u,c,f,h,d,v,x;function b(T){var z={};return z[e.id+".aaxis.min"]=T.a,z[e.id+".baxis.min"]=T.b,z[e.id+".caxis.min"]=T.c,z}function p(T,z){var O=r._fullLayout.clickmode;h2e(r),T===2&&(r.emit("plotly_doubleclick",null),EG.call("_guiRelayout",r,b({a:0,b:0,c:0}))),O.indexOf("select")>-1&&T===1&&Kbt(z,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),O.indexOf("event")>-1&&u2e.click(r,z,e.id)}function C(T,z,O){var V=t.getBoundingClientRect();o=z-V.left,s=O-V.top,r._fullLayout._calcInverseTransform(r);var G=r._fullLayout._invTransform,Z=By.apply3DTransform(G)(o,s);o=Z[0],s=Z[1],l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},c=l,u=e.aaxis.range[1]-l.a,f=Wbt(e.graphDiv._fullLayout[e.id].bgcolor).getLuminance(),h="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,v=n.append("path").attr("class","zoombox").attr("transform",Dm(e.x0,e.y0)).style({fill:f>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",h),x=n.append("path").attr("class","zoombox-corners").attr("transform",Dm(e.x0,e.y0)).style({fill:OT.background,stroke:OT.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(r)}function E(T,z){return 1-z/e.h}function A(T,z){return 1-(T+(e.h-z)/Math.sqrt(3))/e.w}function L(T,z){return(T-(e.h-z)/Math.sqrt(3))/e.w}function _(T,z){var O=o+T*i,V=s+z*a,G=Math.max(0,Math.min(1,E(o,s),E(O,V))),Z=Math.max(0,Math.min(1,A(o,s),A(O,V))),H=Math.max(0,Math.min(1,L(o,s),L(O,V))),N=(G/2+H)*e.w,j=(1-G/2-Z)*e.w,re=(N+j)/2,oe=j-N,_e=(1-G)*e.h,Me=_e-oe/zT;oe.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),x.transition().style("opacity",1).duration(200),d=!0),r.emit("plotly_relayouting",b(c))}function k(){h2e(r),c!==l&&(EG.call("_guiRelayout",r,b(c)),f2e&&r.data&&r._context.showTips&&(By.notifier(k8(r,"Double-click to zoom back out"),"long"),f2e=!1))}function M(){l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},c=l}function g(T,z){var O=T/e.xaxis._m,V=z/e.yaxis._m;c={a:l.a-V,b:l.b+(O+V)/2,c:l.c-(O-V)/2};var G=[c.a,c.b,c.c].sort(By.sorterAsc),Z={a:G.indexOf(c.a),b:G.indexOf(c.b),c:G.indexOf(c.c)};G[0]<0&&(G[1]+G[0]/2<0?(G[2]+=G[0]+G[1],G[0]=G[1]=0):(G[2]+=G[0]/2,G[1]+=G[0]/2,G[0]=0),c={a:G[Z.a],b:G[Z.b],c:G[Z.c]},z=(l.a-c.a)*e.yaxis._m,T=(l.c-c.c-l.b+c.b)*e.xaxis._m);var H=Dm(e.x0+T,e.y0+z);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",H);var N=Dm(-T,-z);e.clipDefRelative.select("path").attr("transform",N),e.aaxis.range=[c.a,e.sum-c.b-c.c],e.baxis.range=[e.sum-c.a-c.c,c.b],e.caxis.range=[e.sum-c.a-c.b,c.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(L8.hideOutsideRangePoints,e),r.emit("plotly_relayouting",b(c))}function P(){EG.call("_guiRelayout",r,b(c))}t.onmousemove=function(T){u2e.hover(r,T,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(T){r._dragging||l2e.unhover(r,T)},l2e.init(this.dragOptions)};function h2e(e){d2e.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var IG=ye((Lur,_2e)=>{"use strict";var n2t=Eh(),a2t=kc().attributes,lu=Rd(),o2t=mc().overrideAll,LG=Ao().extendFlat,PG={title:{text:lu.title.text,font:lu.title.font},color:lu.color,tickmode:lu.minor.tickmode,nticks:LG({},lu.nticks,{dflt:6,min:1}),tick0:lu.tick0,dtick:lu.dtick,tickvals:lu.tickvals,ticktext:lu.ticktext,ticks:lu.ticks,ticklen:lu.ticklen,tickwidth:lu.tickwidth,tickcolor:lu.tickcolor,ticklabelstep:lu.ticklabelstep,showticklabels:lu.showticklabels,labelalias:lu.labelalias,showtickprefix:lu.showtickprefix,tickprefix:lu.tickprefix,showticksuffix:lu.showticksuffix,ticksuffix:lu.ticksuffix,showexponent:lu.showexponent,exponentformat:lu.exponentformat,minexponent:lu.minexponent,separatethousands:lu.separatethousands,tickfont:lu.tickfont,tickangle:lu.tickangle,tickformat:lu.tickformat,tickformatstops:lu.tickformatstops,hoverformat:lu.hoverformat,showline:LG({},lu.showline,{dflt:!0}),linecolor:lu.linecolor,linewidth:lu.linewidth,showgrid:LG({},lu.showgrid,{dflt:!0}),gridcolor:lu.gridcolor,gridwidth:lu.gridwidth,griddash:lu.griddash,layer:lu.layer,min:{valType:"number",dflt:0,min:0}},P8=_2e.exports=o2t({domain:a2t({name:"ternary"}),bgcolor:{valType:"color",dflt:n2t.background},sum:{valType:"number",dflt:1,min:0},aaxis:PG,baxis:PG,caxis:PG},"plot","from-root");P8.uirevision={valType:"any",editType:"none"};P8.aaxis.uirevision=P8.baxis.uirevision=P8.caxis.uirevision={valType:"any",editType:"none"}});var k_=ye((Pur,x2e)=>{"use strict";var s2t=Dr(),l2t=pl(),u2t=kc().defaults;x2e.exports=function(t,r,n,i){var a=i.type,o=i.attributes,s=i.handleDefaults,l=i.partition||"x",u=r._subplots[a],c=u.length,f=c&&u[0].replace(/\d+$/,""),h,d;function v(C,E){return s2t.coerce(h,d,o,C,E)}for(var x=0;x{"use strict";var c2t=Ca(),f2t=pl(),I8=Dr(),h2t=k_(),d2t=t_(),v2t=r_(),p2t=T3(),g2t=xb(),m2t=KM(),w2e=IG(),b2e=["aaxis","baxis","caxis"];T2e.exports=function(t,r,n){h2t(t,r,n,{type:"ternary",attributes:w2e,handleDefaults:y2t,font:r.font,paper_bgcolor:r.paper_bgcolor})};function y2t(e,t,r,n){var i=r("bgcolor"),a=r("sum");n.bgColor=c2t.combine(i,n.paper_bgcolor);for(var o,s,l,u=0;u=a&&(c.min=0,f.min=0,h.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function _2t(e,t,r,n){var i=w2e[t._name];function a(d,v){return I8.coerce(e,t,i,d,v)}a("uirevision",n.uirevision),t.type="linear";var o=a("color"),s=o!==i.color.dflt?o:r.font.color,l=t._name,u=l.charAt(0).toUpperCase(),c="Component "+u,f=a("title.text",c);t._hovertitle=f===c?f:u,I8.coerceFont(a,"title.font",r.font,{overrideDflt:{size:I8.bigFont(r.font.size),color:s}}),a("min"),g2t(e,t,a,"linear"),v2t(e,t,a,"linear"),d2t(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),p2t(e,t,a,{outerTicks:!0});var h=a("showticklabels");h&&(I8.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:s}}),a("tickangle"),a("tickformat")),m2t(e,t,a,{dfltColor:o,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),a("hoverformat"),a("layer")}});var S2e=ye(W0=>{"use strict";var x2t=y2e(),b2t=Id().getSubplotCalcData,w2t=Dr().counterRegex,qT="ternary";W0.name=qT;var T2t=W0.attr="subplot";W0.idRoot=qT;W0.idRegex=W0.attrRegex=w2t(qT);var A2t=W0.attributes={};A2t[T2t]={valType:"subplotid",dflt:"ternary",editType:"calc"};W0.layoutAttributes=IG();W0.supplyLayoutDefaults=A2e();W0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[qT],a=0;a{"use strict";M2e.exports={attributes:AG(),supplyDefaults:Ybe(),colorbar:$d(),formatLabels:Jbe(),calc:t2e(),plot:i2e(),style:ap().style,styleOnSelect:ap().styleOnSelect,hoverPoints:a2e(),selectPoints:lT(),eventData:s2e(),moduleType:"trace",name:"scatterternary",basePlotModule:S2e(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var k2e=ye((Fur,C2e)=>{"use strict";C2e.exports=E2e()});var RG=ye((zur,P2e)=>{"use strict";var td=p4(),BT=Ao().extendFlat,L2e=ff().axisHoverFormat;P2e.exports={y:td.y,x:td.x,x0:td.x0,y0:td.y0,xhoverformat:L2e("x"),yhoverformat:L2e("y"),name:BT({},td.name,{}),orientation:BT({},td.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:td.fillcolor,points:BT({},td.boxpoints,{}),jitter:BT({},td.jitter,{}),pointpos:BT({},td.pointpos,{}),width:BT({},td.width,{}),marker:td.marker,text:td.text,hovertext:td.hovertext,hovertemplate:td.hovertemplate,quartilemethod:td.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:td.offsetgroup,alignmentgroup:td.alignmentgroup,selected:td.selected,unselected:td.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:td.zorder}});var zG=ye((Our,I2e)=>{"use strict";var DG=g4(),FG=Dr().extendFlat;I2e.exports={violinmode:FG({},DG.boxmode,{}),violingap:FG({},DG.boxgap,{}),violingroupgap:FG({},DG.boxgroupgap,{})}});var O2e=ye((qur,z2e)=>{"use strict";var R2e=Dr(),S2t=Ca(),D2e=y4(),F2e=RG();z2e.exports=function(t,r,n,i){function a(L,_){return R2e.coerce(t,r,F2e,L,_)}function o(L,_){return R2e.coerce2(t,r,F2e,L,_)}if(D2e.handleSampleDefaults(t,r,a,i),r.visible!==!1){a("bandwidth"),a("side");var s=a("width");s||(a("scalegroup",r.name),a("scalemode"));var l=a("span"),u;Array.isArray(l)&&(u="manual"),a("spanmode",u);var c=a("line.color",(t.marker||{}).color||n),f=a("line.width"),h=a("fillcolor",S2t.addOpacity(r.line.color,.5));D2e.handlePointsDefaults(t,r,a,{prefix:""});var d=o("box.width"),v=o("box.fillcolor",h),x=o("box.line.color",c),b=o("box.line.width",f),p=a("box.visible",!!(d||v||x||b));p||(r.box={visible:!1});var C=o("meanline.color",c),E=o("meanline.width",f),A=a("meanline.visible",!!(C||E));A||(r.meanline={visible:!1}),a("quartilemethod"),a("zorder")}}});var B2e=ye((Bur,q2e)=>{"use strict";var M2t=Dr(),E2t=zG(),C2t=HI();q2e.exports=function(t,r,n){function i(a,o){return M2t.coerce(t,r,E2t,a,o)}C2t._supply(t,r,n,i,"violin")}});var R8=ye(o2=>{"use strict";var k2t=Dr(),L2t={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};o2.makeKDE=function(e,t,r){var n=r.length,i=L2t.gaussian,a=e.bandwidth,o=1/(n*a);return function(s){for(var l=0,u=0;u{"use strict";var OG=Dr(),qG=ho(),P2t=LV(),N2e=R8(),I2t=hs().BADNUM;U2e.exports=function(t,r){var n=P2t(t,r);if(n[0].t.empty)return n;for(var i=t._fullLayout,a=qG.getFromId(t,r[r.orientation==="h"?"xaxis":"yaxis"]),o=1/0,s=-1/0,l=0,u=0,c=0;c{"use strict";var z2t=WI().setPositionOffset,G2e=["v","h"];H2e.exports=function(t,r){for(var n=t.calcdata,i=r.xaxis,a=r.yaxis,o=0;o{"use strict";var BG=Oa(),NG=Dr(),O2t=So(),UG=XI(),q2t=pU(),B2t=R8();W2e.exports=function(t,r,n,i){var a=t._context.staticPlot,o=t._fullLayout,s=r.xaxis,l=r.yaxis;function u(c,f){var h=q2t(c,{xaxis:s,yaxis:l,trace:f,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return O2t.smoothopen(h[0],1)}NG.makeTraceGroups(i,n,"trace violins").each(function(c){var f=BG.select(this),h=c[0],d=h.t,v=h.trace;if(v.visible!==!0||d.empty){f.remove();return}var x=d.bPos,b=d.bdPos,p=r[d.valLetter+"axis"],C=r[d.posLetter+"axis"],E=v.side==="both",A=E||v.side==="positive",L=E||v.side==="negative",_=f.selectAll("path.violin").data(NG.identity);_.enter().append("path").style("vector-effect",a?"none":"non-scaling-stroke").attr("class","violin"),_.exit().remove(),_.each(function(V){var G=BG.select(this),Z=V.density,H=Z.length,N=C.c2l(V.pos+x,!0),j=C.l2p(N),re;if(v.width)re=d.maxKDE/b;else{var oe=o._violinScaleGroupStats[v.scalegroup];re=v.scalemode==="count"?oe.maxKDE/b*(oe.maxCount/V.pts.length):oe.maxKDE/b}var _e,Me,ke,me,ie,Se,Le;if(A){for(Se=new Array(H),me=0;me{"use strict";var Z2e=Oa(),NT=Ca(),N2t=ap().stylePoints;Y2e.exports=function(t){var r=Z2e.select(t).selectAll("g.trace.violins");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=n[0].trace,a=Z2e.select(this),o=i.box||{},s=o.line||{},l=i.meanline||{},u=l.width;a.selectAll("path.violin").style("stroke-width",i.line.width+"px").call(NT.stroke,i.line.color).call(NT.fill,i.fillcolor),a.selectAll("path.box").style("stroke-width",s.width+"px").call(NT.stroke,s.color).call(NT.fill,o.fillcolor);var c={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};a.selectAll("path.mean").style(c).call(NT.stroke,l.color),a.selectAll("path.meanline").style(c).call(NT.stroke,l.color),N2t(a,i,t)})}});var ewe=ye((jur,Q2e)=>{"use strict";var U2t=Ca(),VG=Dr(),V2t=ho(),J2e=FV(),$2e=R8();Q2e.exports=function(t,r,n,i,a){a||(a={});var o=a.hoverLayer,s=t.cd,l=s[0].trace,u=l.hoveron,c=u.indexOf("violins")!==-1,f=u.indexOf("kde")!==-1,h=[],d,v;if(c||f){var x=J2e.hoverOnBoxes(t,r,n,i);if(f&&x.length>0){var b=t.xa,p=t.ya,C,E,A,L,_;l.orientation==="h"?(_=r,C="y",A=p,E="x",L=b):(_=n,C="x",A=b,E="y",L=p);var k=s[t.index];if(_>=k.span[0]&&_<=k.span[1]){var M=VG.extendFlat({},t),g=L.c2p(_,!0),P=$2e.getKdeValue(k,l,_),T=$2e.getPositionOnKdePath(k,l,g),z=A._offset,O=A._length;M[C+"0"]=T[0],M[C+"1"]=T[1],M[E+"0"]=M[E+"1"]=g,M[E+"Label"]=E+": "+V2t.hoverLabelText(L,_,l[E+"hoverformat"])+", "+s[0].t.labels.kde+" "+P.toFixed(3);for(var V=0,G=0;G{"use strict";twe.exports={attributes:RG(),layoutAttributes:zG(),supplyDefaults:O2e(),crossTraceDefaults:y4().crossTraceDefaults,supplyLayoutDefaults:B2e(),calc:V2e(),crossTraceCalc:j2e(),plot:X2e(),style:K2e(),styleOnSelect:ap().styleOnSelect,hoverPoints:ewe(),selectPoints:zV(),moduleType:"trace",name:"violin",basePlotModule:vh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var nwe=ye((Xur,iwe)=>{"use strict";iwe.exports=rwe()});var owe=ye((Zur,awe)=>{"use strict";awe.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var HG=ye((Yur,uwe)=>{"use strict";var jc=Lm(),GG=vf().line,G2t=Vl(),swe=ff().axisHoverFormat,H2t=rs().hovertemplateAttrs,j2t=rs().texttemplateAttrs,lwe=owe(),Ny=Ao().extendFlat,W2t=Ca();uwe.exports={x:jc.x,x0:jc.x0,dx:jc.dx,y:jc.y,y0:jc.y0,dy:jc.dy,xperiod:jc.xperiod,yperiod:jc.yperiod,xperiod0:jc.xperiod0,yperiod0:jc.yperiod0,xperiodalignment:jc.xperiodalignment,yperiodalignment:jc.yperiodalignment,xhoverformat:swe("x"),yhoverformat:swe("y"),hovertext:jc.hovertext,hovertemplate:H2t({},{keys:lwe.eventDataKeys}),hoverinfo:Ny({},G2t.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:j2t({editType:"plot"},{keys:lwe.eventDataKeys.concat(["label","value"])}),text:jc.text,textposition:jc.textposition,insidetextanchor:Ny({},jc.insidetextanchor,{dflt:"middle"}),textangle:Ny({},jc.textangle,{dflt:0}),textfont:jc.textfont,insidetextfont:jc.insidetextfont,outsidetextfont:jc.outsidetextfont,constraintext:jc.constraintext,cliponaxis:jc.cliponaxis,orientation:Ny({},jc.orientation,{}),offset:Ny({},jc.offset,{arrayOk:!1}),width:Ny({},jc.width,{arrayOk:!1}),marker:X2t(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Ny({},GG.color,{dflt:W2t.defaultLine}),width:Ny({},GG.width,{dflt:0,editType:"plot"}),dash:GG.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:jc.offsetgroup,alignmentgroup:jc.alignmentgroup,zorder:jc.zorder};function X2t(){var e=Ny({},jc.marker);return delete e.pattern,delete e.cornerradius,e}});var jG=ye((Kur,cwe)=>{"use strict";cwe.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var XG=ye((Jur,hwe)=>{"use strict";var D8=Dr(),Z2t=Gb(),Y2t=r0().handleText,K2t=K3(),J2t=Pg(),fwe=HG(),WG=Ca();function $2t(e,t,r,n){function i(f,h){return D8.coerce(e,t,fwe,f,h)}var a=K2t(e,t,n,i);if(!a){t.visible=!1;return}J2t(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("orientation",t.y&&!t.x?"v":"h"),i("offset"),i("width");var o=i("text");i("hovertext"),i("hovertemplate");var s=i("textposition");Y2t(e,t,n,i,s,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&!t.texttemplate&&i("textinfo",D8.isArrayOrTypedArray(o)?"text+value":"value");var l=i("marker.color",r);i("marker.line.color",WG.defaultLine),i("marker.line.width");var u=i("connector.visible");if(u){i("connector.fillcolor",Q2t(l));var c=i("connector.line.width");c&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function Q2t(e){var t=D8.isArrayOrTypedArray(e)?"#000":e;return WG.addOpacity(t,.5*WG.opacity(t))}function ewt(e,t){var r,n;function i(o){return D8.coerce(n._input,n,fwe,o)}for(var a=0;a{"use strict";var twt=Dr(),rwt=jG();dwe.exports=function(e,t,r){var n=!1;function i(s,l){return twt.coerce(e,t,rwt,s,l)}for(var a=0;a{"use strict";var UT=Dr();pwe.exports=function(t,r){for(var n=0;n{"use strict";var mwe=ho(),ywe=Rg(),iwt=gwe(),nwt=z0(),I4=hs().BADNUM;_we.exports=function(t,r){var n=mwe.getFromId(t,r.xaxis||"x"),i=mwe.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c,f,h;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),l=ywe(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),l=ywe(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;var d=Math.min(o.length,a.length),v=new Array(d);for(r._base=[],f=0;f{"use strict";var bwe=Hb().setGroupPositions;wwe.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],c=[],f,h;for(h=0;h{"use strict";var F8=Oa(),P_=Dr(),Awe=So(),L_=hs().BADNUM,awt=i2(),owt=_v().clearMinTextSize;Mwe.exports=function(t,r,n,i){var a=t._fullLayout;owt("funnel",a),swt(t,r,n,i),lwt(t,r,n,i),awt.plot(t,r,n,i,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function swt(e,t,r,n){var i=t.xaxis,a=t.yaxis;P_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=F8.select(this),l=o[0].trace,u=P_.ensureSingle(s,"g","regions");if(!l.connector||!l.connector.visible){u.remove();return}var c=l.orientation==="h",f=u.selectAll("g.region").data(P_.identity);f.enter().append("g").classed("region",!0),f.exit().remove();var h=f.size();f.each(function(d,v){if(!(v!==h-1&&!d.cNext)){var x=Swe(d,i,a,c),b=x[0],p=x[1],C="";b[0]!==L_&&p[0]!==L_&&b[1]!==L_&&p[1]!==L_&&b[2]!==L_&&p[2]!==L_&&b[3]!==L_&&p[3]!==L_&&(c?C+="M"+b[0]+","+p[1]+"L"+b[2]+","+p[2]+"H"+b[3]+"L"+b[1]+","+p[1]+"Z":C+="M"+b[1]+","+p[1]+"L"+b[2]+","+p[3]+"V"+p[2]+"L"+b[1]+","+p[0]+"Z"),C===""&&(C="M0,0Z"),P_.ensureSingle(F8.select(this),"path").attr("d",C).call(Awe.setClipUrl,t.layerClipId,e)}})})}function lwt(e,t,r,n){var i=t.xaxis,a=t.yaxis;P_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=F8.select(this),l=o[0].trace,u=P_.ensureSingle(s,"g","lines");if(!l.connector||!l.connector.visible||!l.connector.line.width){u.remove();return}var c=l.orientation==="h",f=u.selectAll("g.line").data(P_.identity);f.enter().append("g").classed("line",!0),f.exit().remove();var h=f.size();f.each(function(d,v){if(!(v!==h-1&&!d.cNext)){var x=Swe(d,i,a,c),b=x[0],p=x[1],C="";b[3]!==void 0&&p[3]!==void 0&&(c?(C+="M"+b[0]+","+p[1]+"L"+b[2]+","+p[2],C+="M"+b[1]+","+p[1]+"L"+b[3]+","+p[2]):(C+="M"+b[1]+","+p[1]+"L"+b[2]+","+p[3],C+="M"+b[1]+","+p[0]+"L"+b[2]+","+p[2])),C===""&&(C="M0,0Z"),P_.ensureSingle(F8.select(this),"path").attr("d",C).call(Awe.setClipUrl,t.layerClipId,e)}})})}function Swe(e,t,r,n){var i=[],a=[],o=n?t:r,s=n?r:t;return i[0]=o.c2p(e.s0,!0),a[0]=s.c2p(e.p0,!0),i[1]=o.c2p(e.s1,!0),a[1]=s.c2p(e.p1,!0),i[2]=o.c2p(e.nextS0,!0),a[2]=s.c2p(e.nextP0,!0),i[3]=o.c2p(e.nextS1,!0),a[3]=s.c2p(e.nextP1,!0),n?[i,a]:[a,i]}});var Lwe=ye((icr,kwe)=>{"use strict";var R4=Oa(),Cwe=So(),YG=Ca(),uwt=U1().DESELECTDIM,cwt=N0(),fwt=_v().resizeText,hwt=cwt.styleTextPoints;function dwt(e,t,r){var n=r||R4.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");fwt(e,n,"funnel"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=R4.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o.marker;R4.select(this).call(YG.fill,s.mc||l.color).call(YG.stroke,s.mlc||l.line.color).call(Cwe.dashLine,l.line.dash,s.mlw||l.line.width).style("opacity",o.selectedpoints&&!s.selected?uwt:1)}}),hwt(a,o,e),a.selectAll(".regions").each(function(){R4.select(this).selectAll("path").style("stroke-width",0).call(YG.fill,o.connector.fillcolor)}),a.selectAll(".lines").each(function(){var s=o.connector.line;Cwe.lineGroupStyle(R4.select(this).selectAll("path"),s.width,s.color,s.dash)})})}kwe.exports={style:dwt}});var Rwe=ye((ncr,Iwe)=>{"use strict";var Pwe=Ca().opacity,vwt=TT().hoverOnBars,KG=Dr().formatPercent;Iwe.exports=function(t,r,n,i,a){var o=vwt(t,r,n,i,a);if(o){var s=o.cd,l=s[0].trace,u=l.orientation==="h",c=o.index,f=s[c],h=u?"x":"y";o[h+"LabelVal"]=f.s,o.percentInitial=f.begR,o.percentInitialLabel=KG(f.begR,1),o.percentPrevious=f.difR,o.percentPreviousLabel=KG(f.difR,1),o.percentTotal=f.sumR,o.percentTotalLabel=KG(f.sumR,1);var d=f.hi||l.hoverinfo,v=[];if(d&&d!=="none"&&d!=="skip"){var x=d==="all",b=d.split("+"),p=function(C){return x||b.indexOf(C)!==-1};p("percent initial")&&v.push(o.percentInitialLabel+" of initial"),p("percent previous")&&v.push(o.percentPreviousLabel+" of previous"),p("percent total")&&v.push(o.percentTotalLabel+" of total")}return o.extraText=v.join("
"),o.color=pwt(l,f),[o]}};function pwt(e,t){var r=e.marker,n=t.mc||r.color,i=t.mlc||r.line.color,a=t.mlw||r.line.width;if(Pwe(n))return n;if(Pwe(i)&&a)return i}});var Fwe=ye((acr,Dwe)=>{"use strict";Dwe.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"percentInitial"in r&&(t.percentInitial=r.percentInitial),"percentPrevious"in r&&(t.percentPrevious=r.percentPrevious),"percentTotal"in r&&(t.percentTotal=r.percentTotal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var Owe=ye((ocr,zwe)=>{"use strict";zwe.exports={attributes:HG(),layoutAttributes:jG(),supplyDefaults:XG().supplyDefaults,crossTraceDefaults:XG().crossTraceDefaults,supplyLayoutDefaults:vwe(),calc:xwe(),crossTraceCalc:Twe(),plot:Ewe(),style:Lwe().style,hoverPoints:Rwe(),eventData:Fwe(),selectPoints:AT(),moduleType:"trace",name:"funnel",basePlotModule:vh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var Bwe=ye((scr,qwe)=>{"use strict";qwe.exports=Owe()});var Uwe=ye((lcr,Nwe)=>{"use strict";Nwe.exports={eventDataKeys:["initial","delta","final"]}});var QG=ye((ucr,Hwe)=>{"use strict";var _c=Lm(),JG=vf().line,gwt=Vl(),Vwe=ff().axisHoverFormat,mwt=rs().hovertemplateAttrs,ywt=rs().texttemplateAttrs,Gwe=Uwe(),VT=Ao().extendFlat,_wt=Ca();function $G(e){return{marker:{color:VT({},_c.marker.color,{arrayOk:!1,editType:"style"}),line:{color:VT({},_c.marker.line.color,{arrayOk:!1,editType:"style"}),width:VT({},_c.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}Hwe.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:_c.x,x0:_c.x0,dx:_c.dx,y:_c.y,y0:_c.y0,dy:_c.dy,xperiod:_c.xperiod,yperiod:_c.yperiod,xperiod0:_c.xperiod0,yperiod0:_c.yperiod0,xperiodalignment:_c.xperiodalignment,yperiodalignment:_c.yperiodalignment,xhoverformat:Vwe("x"),yhoverformat:Vwe("y"),hovertext:_c.hovertext,hovertemplate:mwt({},{keys:Gwe.eventDataKeys}),hoverinfo:VT({},gwt.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:ywt({editType:"plot"},{keys:Gwe.eventDataKeys.concat(["label"])}),text:_c.text,textposition:_c.textposition,insidetextanchor:_c.insidetextanchor,textangle:_c.textangle,textfont:_c.textfont,insidetextfont:_c.insidetextfont,outsidetextfont:_c.outsidetextfont,constraintext:_c.constraintext,cliponaxis:_c.cliponaxis,orientation:_c.orientation,offset:_c.offset,width:_c.width,increasing:$G("increasing"),decreasing:$G("decreasing"),totals:$G("intermediate sums and total"),connector:{line:{color:VT({},JG.color,{dflt:_wt.defaultLine}),width:VT({},JG.width,{editType:"plot"}),dash:JG.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:_c.offsetgroup,alignmentgroup:_c.alignmentgroup,zorder:_c.zorder}});var eH=ye((ccr,jwe)=>{"use strict";jwe.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var GT=ye((fcr,Wwe)=>{"use strict";Wwe.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var rH=ye((hcr,Kwe)=>{"use strict";var Xwe=Dr(),xwt=Gb(),bwt=r0().handleText,wwt=K3(),Twt=Pg(),Zwe=QG(),Awt=Ca(),Ywe=GT(),Swt=Ywe.INCREASING.COLOR,Mwt=Ywe.DECREASING.COLOR,Ewt="#4499FF";function tH(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",Awt.defaultLine),e(t+".marker.line.width")}function Cwt(e,t,r,n){function i(u,c){return Xwe.coerce(e,t,Zwe,u,c)}var a=wwt(e,t,n,i);if(!a){t.visible=!1;return}Twt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("measure"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate");var o=i("textposition");bwt(e,t,n,i,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&(i("texttemplate"),t.texttemplate||i("textinfo")),tH(i,"increasing",Swt),tH(i,"decreasing",Mwt),tH(i,"totals",Ewt);var s=i("connector.visible");if(s){i("connector.mode");var l=i("connector.line.width");l&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function kwt(e,t){var r,n;function i(o){return Xwe.coerce(n._input,n,Zwe,o)}if(t.waterfallmode==="group")for(var a=0;a{"use strict";var Lwt=Dr(),Pwt=eH();Jwe.exports=function(e,t,r){var n=!1;function i(s,l){return Lwt.coerce(e,t,Pwt,s,l)}for(var a=0;a{"use strict";var Qwe=ho(),e3e=Rg(),t3e=Dr().mergeArray,Iwt=z0(),r3e=hs().BADNUM;function iH(e){return e==="a"||e==="absolute"}function nH(e){return e==="t"||e==="total"}i3e.exports=function(t,r){var n=Qwe.getFromId(t,r.xaxis||"x"),i=Qwe.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),l=e3e(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),l=e3e(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;for(var f=Math.min(o.length,a.length),h=new Array(f),d=0,v,x=!1,b=0;b{"use strict";var a3e=Hb().setGroupPositions;o3e.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],c=[],f,h;for(h=0;h{"use strict";var l3e=Oa(),z8=Dr(),Rwt=So(),HT=hs().BADNUM,Dwt=i2(),Fwt=_v().clearMinTextSize;u3e.exports=function(t,r,n,i){var a=t._fullLayout;Fwt("waterfall",a),Dwt.plot(t,r,n,i,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),zwt(t,r,n,i)};function zwt(e,t,r,n){var i=t.xaxis,a=t.yaxis;z8.makeTraceGroups(n,r,"trace bars").each(function(o){var s=l3e.select(this),l=o[0].trace,u=z8.ensureSingle(s,"g","lines");if(!l.connector||!l.connector.visible){u.remove();return}var c=l.orientation==="h",f=l.connector.mode,h=u.selectAll("g.line").data(z8.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(v,x){if(!(x!==d-1&&!v.cNext)){var b=Owt(v,i,a,c),p=b[0],C=b[1],E="";p[0]!==HT&&C[0]!==HT&&p[1]!==HT&&C[1]!==HT&&(f==="spanning"&&!v.isSum&&x>0&&(c?E+="M"+p[0]+","+C[1]+"V"+C[0]:E+="M"+p[1]+","+C[0]+"H"+p[0]),f!=="between"&&(v.isSum||x{"use strict";var O8=Oa(),f3e=So(),h3e=Ca(),qwt=U1().DESELECTDIM,Bwt=N0(),Nwt=_v().resizeText,Uwt=Bwt.styleTextPoints;function Vwt(e,t,r){var n=r||O8.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");Nwt(e,n,"waterfall"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=O8.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o[s.dir].marker;O8.select(this).call(h3e.fill,l.color).call(h3e.stroke,l.line.color).call(f3e.dashLine,l.line.dash,l.line.width).style("opacity",o.selectedpoints&&!s.selected?qwt:1)}}),Uwt(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;f3e.lineGroupStyle(O8.select(this).selectAll("path"),s.width,s.color,s.dash)})})}d3e.exports={style:Vwt}});var _3e=ye((ycr,y3e)=>{"use strict";var Gwt=ho().hoverLabelText,p3e=Ca().opacity,Hwt=TT().hoverOnBars,g3e=GT(),m3e={increasing:g3e.INCREASING.SYMBOL,decreasing:g3e.DECREASING.SYMBOL};y3e.exports=function(t,r,n,i,a){var o=Hwt(t,r,n,i,a);if(!o)return;var s=o.cd,l=s[0].trace,u=l.orientation==="h",c=u?"x":"y",f=u?t.xa:t.ya;function h(_){return Gwt(f,_,l[c+"hoverformat"])}var d=o.index,v=s[d],x=v.isSum?v.b+v.s:v.rawS;o.initial=v.b+v.s-x,o.delta=x,o.final=o.initial+o.delta;var b=h(Math.abs(o.delta));o.deltaLabel=x<0?"("+b+")":b,o.finalLabel=h(o.final),o.initialLabel=h(o.initial);var p=v.hi||l.hoverinfo,C=[];if(p&&p!=="none"&&p!=="skip"){var E=p==="all",A=p.split("+"),L=function(_){return E||A.indexOf(_)!==-1};v.isSum||(L("final")&&(u?!L("x"):!L("y"))&&C.push(o.finalLabel),L("delta")&&(x<0?C.push(o.deltaLabel+" "+m3e.decreasing):C.push(o.deltaLabel+" "+m3e.increasing)),L("initial")&&C.push("Initial: "+o.initialLabel))}return C.length&&(o.extraText=C.join("
")),o.color=jwt(l,v),[o]};function jwt(e,t){var r=e[t.dir].marker,n=r.color,i=r.line.color,a=r.line.width;if(p3e(n))return n;if(p3e(i)&&a)return i}});var b3e=ye((_cr,x3e)=>{"use strict";x3e.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"initial"in r&&(t.initial=r.initial),"delta"in r&&(t.delta=r.delta),"final"in r&&(t.final=r.final),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var T3e=ye((xcr,w3e)=>{"use strict";w3e.exports={attributes:QG(),layoutAttributes:eH(),supplyDefaults:rH().supplyDefaults,crossTraceDefaults:rH().crossTraceDefaults,supplyLayoutDefaults:$we(),calc:n3e(),crossTraceCalc:s3e(),plot:c3e(),style:v3e().style,hoverPoints:_3e(),eventData:b3e(),selectPoints:AT(),moduleType:"trace",name:"waterfall",basePlotModule:vh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var S3e=ye((bcr,A3e)=>{"use strict";A3e.exports=T3e()});var jT=ye((wcr,M3e)=>{"use strict";M3e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var t=e.slice(0,3);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var t=e.slice(0,4);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%",""]}}}});var aH=ye((Tcr,C3e)=>{"use strict";var Wwt=Vl(),Xwt=vf().zorder,Zwt=rs().hovertemplateAttrs,E3e=Ao().extendFlat,Ywt=jT().colormodel,F4=["rgb","rgba","rgba256","hsl","hsla"],Kwt=[],Jwt=[];for(WT=0;WT{"use strict";var $wt=Dr(),Qwt=aH(),k3e=jT(),e3t=Ly().IMAGE_URL_PREFIX;L3e.exports=function(t,r){function n(o,s){return $wt.coerce(t,r,Qwt,o,s)}n("source"),r.source&&!r.source.match(e3t)&&delete r.source,r._hasSource=!!r.source;var i=n("z");if(r._hasZ=!(i===void 0||!i.length||!i[0]||!i[0].length),!r._hasZ&&!r._hasSource){r.visible=!1;return}n("x0"),n("y0"),n("dx"),n("dy");var a;r._hasZ?(n("colormodel","rgb"),a=k3e.colormodel[r.colormodel],n("zmin",a.zminDflt||a.min),n("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=k3e.colormodel[r.colormodel],r.zmin=a.zminDflt,r.zmax=a.zmaxDflt),n("zsmooth"),n("text"),n("hovertext"),n("hovertemplate"),r._length=null,n("zorder")}});var Uy=ye((Scr,oH)=>{typeof Object.create=="function"?oH.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:oH.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var sH=ye((Mcr,I3e)=>{I3e.exports=vb().EventEmitter});var F3e=ye(q8=>{"use strict";q8.byteLength=r3t;q8.toByteArray=n3t;q8.fromByteArray=s3t;var zm=[],X0=[],t3t=typeof Uint8Array!="undefined"?Uint8Array:Array,lH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(s2=0,R3e=lH.length;s20)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function r3t(e){var t=D3e(e),r=t[0],n=t[1];return(r+n)*3/4-n}function i3t(e,t,r){return(t+r)*3/4-r}function n3t(e){var t,r=D3e(e),n=r[0],i=r[1],a=new t3t(i3t(e,n,i)),o=0,s=i>0?n-4:n,l;for(l=0;l>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=X0[e.charCodeAt(l)]<<2|X0[e.charCodeAt(l+1)]>>4,a[o++]=t&255),i===1&&(t=X0[e.charCodeAt(l)]<<10|X0[e.charCodeAt(l+1)]<<4|X0[e.charCodeAt(l+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function a3t(e){return zm[e>>18&63]+zm[e>>12&63]+zm[e>>6&63]+zm[e&63]}function o3t(e,t,r){for(var n,i=[],a=t;as?s:o+a));return n===1?(t=e[r-1],i.push(zm[t>>2]+zm[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(zm[t>>10]+zm[t>>4&63]+zm[t<<2&63]+"=")),i.join("")}});var z3e=ye(uH=>{uH.read=function(e,t,r,n,i){var a,o,s=i*8-n-1,l=(1<>1,c=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f];for(f+=h,a=d&(1<<-c)-1,d>>=-c,c+=s;c>0;a=a*256+e[t+f],f+=h,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=o*256+e[t+f],f+=h,c-=8);if(a===0)a=1-u;else{if(a===l)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-u}return(d?-1:1)*o*Math.pow(2,a-n)};uH.write=function(e,t,r,n,i,a){var o,s,l,u=a*8-i-1,c=(1<>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,v=n?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+f>=1?t+=h/l:t+=h*Math.pow(2,1-f),t*l>=2&&(o++,l/=2),o+f>=c?(s=0,o=c):o+f>=1?(s=(t*l-1)*Math.pow(2,i),o=o+f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[r+d]=s&255,d+=v,s/=256,i-=8);for(o=o<0;e[r+d]=o&255,d+=v,o/=256,u-=8);e[r+d-v]|=x*128}});var u2=ye(KT=>{"use strict";var cH=F3e(),ZT=z3e(),O3e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;KT.Buffer=ta;KT.SlowBuffer=d3t;KT.INSPECT_MAX_BYTES=50;var B8=2147483647;KT.kMaxLength=B8;ta.TYPED_ARRAY_SUPPORT=l3t();!ta.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function l3t(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(e){return!1}}Object.defineProperty(ta.prototype,"parent",{enumerable:!0,get:function(){if(ta.isBuffer(this))return this.buffer}});Object.defineProperty(ta.prototype,"offset",{enumerable:!0,get:function(){if(ta.isBuffer(this))return this.byteOffset}});function Vy(e){if(e>B8)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,ta.prototype),t}function ta(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return vH(e)}return U3e(e,t,r)}ta.poolSize=8192;function U3e(e,t,r){if(typeof e=="string")return c3t(e,t);if(ArrayBuffer.isView(e))return f3t(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Om(e,ArrayBuffer)||e&&Om(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Om(e,SharedArrayBuffer)||e&&Om(e.buffer,SharedArrayBuffer)))return hH(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return ta.from(n,t,r);let i=h3t(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return ta.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}ta.from=function(e,t,r){return U3e(e,t,r)};Object.setPrototypeOf(ta.prototype,Uint8Array.prototype);Object.setPrototypeOf(ta,Uint8Array);function V3e(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u3t(e,t,r){return V3e(e),e<=0?Vy(e):t!==void 0?typeof r=="string"?Vy(e).fill(t,r):Vy(e).fill(t):Vy(e)}ta.alloc=function(e,t,r){return u3t(e,t,r)};function vH(e){return V3e(e),Vy(e<0?0:pH(e)|0)}ta.allocUnsafe=function(e){return vH(e)};ta.allocUnsafeSlow=function(e){return vH(e)};function c3t(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!ta.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=G3e(e,t)|0,n=Vy(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function fH(e){let t=e.length<0?0:pH(e.length)|0,r=Vy(t);for(let n=0;n=B8)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+B8.toString(16)+" bytes");return e|0}function d3t(e){return+e!=e&&(e=0),ta.alloc(+e)}ta.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==ta.prototype};ta.compare=function(t,r){if(Om(t,Uint8Array)&&(t=ta.from(t,t.offset,t.byteLength)),Om(r,Uint8Array)&&(r=ta.from(r,r.offset,r.byteLength)),!ta.isBuffer(t)||!ta.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,i=r.length;for(let a=0,o=Math.min(n,i);ai.length?(ta.isBuffer(o)||(o=ta.from(o)),o.copy(i,a)):Uint8Array.prototype.set.call(i,o,a);else if(ta.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function G3e(e,t){if(ta.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Om(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return dH(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return $3e(e).length;default:if(i)return n?-1:dH(e).length;t=(""+t).toLowerCase(),i=!0}}ta.byteLength=G3e;function v3t(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return A3t(this,t,r);case"utf8":case"utf-8":return j3e(this,t,r);case"ascii":return w3t(this,t,r);case"latin1":case"binary":return T3t(this,t,r);case"base64":return x3t(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S3t(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}ta.prototype._isBuffer=!0;function l2(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}ta.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;rr&&(t+=" ... "),""};O3e&&(ta.prototype[O3e]=ta.prototype.inspect);ta.prototype.compare=function(t,r,n,i,a){if(Om(t,Uint8Array)&&(t=ta.from(t,t.offset,t.byteLength)),!ta.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>t.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===t)return 0;let o=a-i,s=n-r,l=Math.min(o,s),u=this.slice(i,a),c=t.slice(r,n);for(let f=0;f2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,mH(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=ta.from(t,n)),ta.isBuffer(t))return t.length===0?-1:q3e(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):q3e(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function q3e(e,t,r,n,i){let a=1,o=e.length,s=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function l(c,f){return a===1?c[f]:c.readUInt16BE(f*a)}let u;if(i){let c=-1;for(u=r;uo&&(r=o-s),u=r;u>=0;u--){let c=!0;for(let f=0;fi&&(n=i)):n=i;let a=t.length;n>a/2&&(n=a/2);let o;for(o=0;o>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return p3t(this,t,r,n);case"utf8":case"utf-8":return g3t(this,t,r,n);case"ascii":case"latin1":case"binary":return m3t(this,t,r,n);case"base64":return y3t(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _3t(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};ta.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function x3t(e,t,r){return t===0&&r===e.length?cH.fromByteArray(e):cH.fromByteArray(e.slice(t,r))}function j3e(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i239?4:a>223?3:a>191?2:1;if(i+s<=r){let l,u,c,f;switch(s){case 1:a<128&&(o=a);break;case 2:l=e[i+1],(l&192)===128&&(f=(a&31)<<6|l&63,f>127&&(o=f));break;case 3:l=e[i+1],u=e[i+2],(l&192)===128&&(u&192)===128&&(f=(a&15)<<12|(l&63)<<6|u&63,f>2047&&(f<55296||f>57343)&&(o=f));break;case 4:l=e[i+1],u=e[i+2],c=e[i+3],(l&192)===128&&(u&192)===128&&(c&192)===128&&(f=(a&15)<<18|(l&63)<<12|(u&63)<<6|c&63,f>65535&&f<1114112&&(o=f))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return b3t(n)}var B3e=4096;function b3t(e){let t=e.length;if(t<=B3e)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let a=t;an&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),rr)throw new RangeError("Trying to access beyond buffer length")}ta.prototype.readUintLE=ta.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||ev(t,r,this.length);let i=this[t],a=1,o=0;for(;++o>>0,r=r>>>0,n||ev(t,r,this.length);let i=this[t+--r],a=1;for(;r>0&&(a*=256);)i+=this[t+--r]*a;return i};ta.prototype.readUint8=ta.prototype.readUInt8=function(t,r){return t=t>>>0,r||ev(t,1,this.length),this[t]};ta.prototype.readUint16LE=ta.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||ev(t,2,this.length),this[t]|this[t+1]<<8};ta.prototype.readUint16BE=ta.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||ev(t,2,this.length),this[t]<<8|this[t+1]};ta.prototype.readUint32LE=ta.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};ta.prototype.readUint32BE=ta.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};ta.prototype.readBigUInt64LE=I_(function(t){t=t>>>0,YT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&z4(t,this.length-8);let i=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(a)<>>0,YT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&z4(t,this.length-8);let i=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<>>0,r=r>>>0,n||ev(t,r,this.length);let i=this[t],a=1,o=0;for(;++o=a&&(i-=Math.pow(2,8*r)),i};ta.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||ev(t,r,this.length);let i=r,a=1,o=this[t+--i];for(;i>0&&(a*=256);)o+=this[t+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};ta.prototype.readInt8=function(t,r){return t=t>>>0,r||ev(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};ta.prototype.readInt16LE=function(t,r){t=t>>>0,r||ev(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};ta.prototype.readInt16BE=function(t,r){t=t>>>0,r||ev(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};ta.prototype.readInt32LE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};ta.prototype.readInt32BE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};ta.prototype.readBigInt64LE=I_(function(t){t=t>>>0,YT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&z4(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<>>0,YT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&z4(t,this.length-8);let i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<>>0,r||ev(t,4,this.length),ZT.read(this,t,!0,23,4)};ta.prototype.readFloatBE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),ZT.read(this,t,!1,23,4)};ta.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||ev(t,8,this.length),ZT.read(this,t,!0,52,8)};ta.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||ev(t,8,this.length),ZT.read(this,t,!1,52,8)};function Ip(e,t,r,n,i,a){if(!ta.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}ta.prototype.writeUintLE=ta.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Ip(this,t,r,n,s,0)}let a=1,o=0;for(this[r]=t&255;++o>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Ip(this,t,r,n,s,0)}let a=n-1,o=1;for(this[r+a]=t&255;--a>=0&&(o*=256);)this[r+a]=t/o&255;return r+n};ta.prototype.writeUint8=ta.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,1,255,0),this[r]=t&255,r+1};ta.prototype.writeUint16LE=ta.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};ta.prototype.writeUint16BE=ta.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};ta.prototype.writeUint32LE=ta.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};ta.prototype.writeUint32BE=ta.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function W3e(e,t,r,n,i){J3e(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function X3e(e,t,r,n,i){J3e(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}ta.prototype.writeBigUInt64LE=I_(function(t,r=0){return W3e(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ta.prototype.writeBigUInt64BE=I_(function(t,r=0){return X3e(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ta.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let l=Math.pow(2,8*n-1);Ip(this,t,r,n,l-1,-l)}let a=0,o=1,s=0;for(this[r]=t&255;++a>0)-s&255;return r+n};ta.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let l=Math.pow(2,8*n-1);Ip(this,t,r,n,l-1,-l)}let a=n-1,o=1,s=0;for(this[r+a]=t&255;--a>=0&&(o*=256);)t<0&&s===0&&this[r+a+1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+n};ta.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};ta.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};ta.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};ta.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};ta.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};ta.prototype.writeBigInt64LE=I_(function(t,r=0){return W3e(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});ta.prototype.writeBigInt64BE=I_(function(t,r=0){return X3e(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Z3e(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Y3e(e,t,r,n,i){return t=+t,r=r>>>0,i||Z3e(e,t,r,4,34028234663852886e22,-34028234663852886e22),ZT.write(e,t,r,n,23,4),r+4}ta.prototype.writeFloatLE=function(t,r,n){return Y3e(this,t,r,!0,n)};ta.prototype.writeFloatBE=function(t,r,n){return Y3e(this,t,r,!1,n)};function K3e(e,t,r,n,i){return t=+t,r=r>>>0,i||Z3e(e,t,r,8,17976931348623157e292,-17976931348623157e292),ZT.write(e,t,r,n,52,8),r+8}ta.prototype.writeDoubleLE=function(t,r,n){return K3e(this,t,r,!0,n)};ta.prototype.writeDoubleBE=function(t,r,n){return K3e(this,t,r,!1,n)};ta.prototype.copy=function(t,r,n,i){if(!ta.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a2**32?i=N3e(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=N3e(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function N3e(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function M3t(e,t,r){YT(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&z4(t,e.length-(r+1))}function J3e(e,t,r,n,i,a){if(e>r||e3?t===0||t===BigInt(0)?s=`>= 0${o} and < 2${o} ** ${(a+1)*8}${o}`:s=`>= -(2${o} ** ${(a+1)*8-1}${o}) and < 2 ** ${(a+1)*8-1}${o}`:s=`>= ${t}${o} and <= ${r}${o}`,new XT.ERR_OUT_OF_RANGE("value",s,e)}M3t(n,i,a)}function YT(e,t){if(typeof e!="number")throw new XT.ERR_INVALID_ARG_TYPE(t,"number",e)}function z4(e,t,r){throw Math.floor(e)!==e?(YT(e,r),new XT.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new XT.ERR_BUFFER_OUT_OF_BOUNDS:new XT.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var E3t=/[^+/0-9A-Za-z-_]/g;function C3t(e){if(e=e.split("=")[0],e=e.trim().replace(E3t,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function dH(e,t){t=t||1/0;let r,n=e.length,i=null,a=[];for(let o=0;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function k3t(e){let t=[];for(let r=0;r>8,i=r%256,a.push(i),a.push(n);return a}function $3e(e){return cH.toByteArray(C3t(e))}function N8(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Om(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function mH(e){return e!==e}var P3t=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function I_(e){return typeof BigInt=="undefined"?I3t:e}function I3t(){throw new Error("BigInt not supported")}});var U8=ye((Pcr,Q3e)=>{"use strict";Q3e.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}});var O4=ye((Icr,eTe)=>{"use strict";var R3t=U8();eTe.exports=function(){return R3t()&&!!Symbol.toStringTag}});var yH=ye((Rcr,tTe)=>{"use strict";tTe.exports=Object});var iTe=ye((Dcr,rTe)=>{"use strict";rTe.exports=Error});var aTe=ye((Fcr,nTe)=>{"use strict";nTe.exports=EvalError});var sTe=ye((zcr,oTe)=>{"use strict";oTe.exports=RangeError});var uTe=ye((Ocr,lTe)=>{"use strict";lTe.exports=ReferenceError});var _H=ye((qcr,cTe)=>{"use strict";cTe.exports=SyntaxError});var JT=ye((Bcr,fTe)=>{"use strict";fTe.exports=TypeError});var dTe=ye((Ncr,hTe)=>{"use strict";hTe.exports=URIError});var pTe=ye((Ucr,vTe)=>{"use strict";vTe.exports=Math.abs});var mTe=ye((Vcr,gTe)=>{"use strict";gTe.exports=Math.floor});var _Te=ye((Gcr,yTe)=>{"use strict";yTe.exports=Math.max});var bTe=ye((Hcr,xTe)=>{"use strict";xTe.exports=Math.min});var TTe=ye((jcr,wTe)=>{"use strict";wTe.exports=Math.pow});var STe=ye((Wcr,ATe)=>{"use strict";ATe.exports=Math.round});var ETe=ye((Xcr,MTe)=>{"use strict";MTe.exports=Number.isNaN||function(t){return t!==t}});var kTe=ye((Zcr,CTe)=>{"use strict";var D3t=ETe();CTe.exports=function(t){return D3t(t)||t===0?t:t<0?-1:1}});var PTe=ye((Ycr,LTe)=>{"use strict";LTe.exports=Object.getOwnPropertyDescriptor});var c2=ye((Kcr,ITe)=>{"use strict";var V8=PTe();if(V8)try{V8([],"length")}catch(e){V8=null}ITe.exports=V8});var q4=ye((Jcr,RTe)=>{"use strict";var G8=Object.defineProperty||!1;if(G8)try{G8({},"a",{value:1})}catch(e){G8=!1}RTe.exports=G8});var zTe=ye(($cr,FTe)=>{"use strict";var DTe=typeof Symbol!="undefined"&&Symbol,F3t=U8();FTe.exports=function(){return typeof DTe!="function"||typeof Symbol!="function"||typeof DTe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:F3t()}});var xH=ye((Qcr,OTe)=>{"use strict";OTe.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var bH=ye((efr,qTe)=>{"use strict";var z3t=yH();qTe.exports=z3t.getPrototypeOf||null});var UTe=ye((tfr,NTe)=>{"use strict";var O3t="Function.prototype.bind called on incompatible ",q3t=Object.prototype.toString,B3t=Math.max,N3t="[object Function]",BTe=function(t,r){for(var n=[],i=0;i{"use strict";var G3t=UTe();VTe.exports=Function.prototype.bind||G3t});var H8=ye((ifr,GTe)=>{"use strict";GTe.exports=Function.prototype.call});var wH=ye((nfr,HTe)=>{"use strict";HTe.exports=Function.prototype.apply});var WTe=ye((afr,jTe)=>{"use strict";jTe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var ZTe=ye((ofr,XTe)=>{"use strict";var H3t=$T(),j3t=wH(),W3t=H8(),X3t=WTe();XTe.exports=X3t||H3t.call(W3t,j3t)});var KTe=ye((sfr,YTe)=>{"use strict";var Z3t=$T(),Y3t=JT(),K3t=H8(),J3t=ZTe();YTe.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new Y3t("a function is required");return J3t(Z3t,K3t,t)}});var rAe=ye((lfr,tAe)=>{"use strict";var $3t=KTe(),JTe=c2(),QTe;try{QTe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var TH=!!QTe&&JTe&&JTe(Object.prototype,"__proto__"),eAe=Object,$Te=eAe.getPrototypeOf;tAe.exports=TH&&typeof TH.get=="function"?$3t([TH.get]):typeof $Te=="function"?function(t){return $Te(t==null?t:eAe(t))}:!1});var sAe=ye((ufr,oAe)=>{"use strict";var iAe=xH(),nAe=bH(),aAe=rAe();oAe.exports=iAe?function(t){return iAe(t)}:nAe?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return nAe(t)}:aAe?function(t){return aAe(t)}:null});var uAe=ye((cfr,lAe)=>{"use strict";var Q3t=Function.prototype.call,eTt=Object.prototype.hasOwnProperty,tTt=$T();lAe.exports=tTt.call(Q3t,eTt)});var X8=ye((ffr,pAe)=>{"use strict";var uu,rTt=yH(),iTt=iTe(),nTt=aTe(),aTt=sTe(),oTt=uTe(),rA=_H(),tA=JT(),sTt=dTe(),lTt=pTe(),uTt=mTe(),cTt=_Te(),fTt=bTe(),hTt=TTe(),dTt=STe(),vTt=kTe(),dAe=Function,AH=function(e){try{return dAe('"use strict"; return ('+e+").constructor;")()}catch(t){}},B4=c2(),pTt=q4(),SH=function(){throw new tA},gTt=B4?function(){try{return arguments.callee,SH}catch(e){try{return B4(arguments,"callee").get}catch(t){return SH}}}():SH,QT=zTe()(),tv=sAe(),mTt=bH(),yTt=xH(),vAe=wH(),N4=H8(),eA={},_Tt=typeof Uint8Array=="undefined"||!tv?uu:tv(Uint8Array),f2={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?uu:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?uu:ArrayBuffer,"%ArrayIteratorPrototype%":QT&&tv?tv([][Symbol.iterator]()):uu,"%AsyncFromSyncIteratorPrototype%":uu,"%AsyncFunction%":eA,"%AsyncGenerator%":eA,"%AsyncGeneratorFunction%":eA,"%AsyncIteratorPrototype%":eA,"%Atomics%":typeof Atomics=="undefined"?uu:Atomics,"%BigInt%":typeof BigInt=="undefined"?uu:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?uu:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?uu:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?uu:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":iTt,"%eval%":eval,"%EvalError%":nTt,"%Float16Array%":typeof Float16Array=="undefined"?uu:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?uu:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?uu:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?uu:FinalizationRegistry,"%Function%":dAe,"%GeneratorFunction%":eA,"%Int8Array%":typeof Int8Array=="undefined"?uu:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?uu:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?uu:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":QT&&tv?tv(tv([][Symbol.iterator]())):uu,"%JSON%":typeof JSON=="object"?JSON:uu,"%Map%":typeof Map=="undefined"?uu:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!QT||!tv?uu:tv(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":rTt,"%Object.getOwnPropertyDescriptor%":B4,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?uu:Promise,"%Proxy%":typeof Proxy=="undefined"?uu:Proxy,"%RangeError%":aTt,"%ReferenceError%":oTt,"%Reflect%":typeof Reflect=="undefined"?uu:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?uu:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!QT||!tv?uu:tv(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?uu:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":QT&&tv?tv(""[Symbol.iterator]()):uu,"%Symbol%":QT?Symbol:uu,"%SyntaxError%":rA,"%ThrowTypeError%":gTt,"%TypedArray%":_Tt,"%TypeError%":tA,"%Uint8Array%":typeof Uint8Array=="undefined"?uu:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?uu:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?uu:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?uu:Uint32Array,"%URIError%":sTt,"%WeakMap%":typeof WeakMap=="undefined"?uu:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?uu:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?uu:WeakSet,"%Function.prototype.call%":N4,"%Function.prototype.apply%":vAe,"%Object.defineProperty%":pTt,"%Object.getPrototypeOf%":mTt,"%Math.abs%":lTt,"%Math.floor%":uTt,"%Math.max%":cTt,"%Math.min%":fTt,"%Math.pow%":hTt,"%Math.round%":dTt,"%Math.sign%":vTt,"%Reflect.getPrototypeOf%":yTt};if(tv)try{null.error}catch(e){cAe=tv(tv(e)),f2["%Error.prototype%"]=cAe}var cAe,xTt=function e(t){var r;if(t==="%AsyncFunction%")r=AH("async function () {}");else if(t==="%GeneratorFunction%")r=AH("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=AH("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&tv&&(r=tv(i.prototype))}return f2[t]=r,r},fAe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},U4=$T(),j8=uAe(),bTt=U4.call(N4,Array.prototype.concat),wTt=U4.call(vAe,Array.prototype.splice),hAe=U4.call(N4,String.prototype.replace),W8=U4.call(N4,String.prototype.slice),TTt=U4.call(N4,RegExp.prototype.exec),ATt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,STt=/\\(\\)?/g,MTt=function(t){var r=W8(t,0,1),n=W8(t,-1);if(r==="%"&&n!=="%")throw new rA("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new rA("invalid intrinsic syntax, expected opening `%`");var i=[];return hAe(t,ATt,function(a,o,s,l){i[i.length]=s?hAe(l,STt,"$1"):o||a}),i},ETt=function(t,r){var n=t,i;if(j8(fAe,n)&&(i=fAe[n],n="%"+i[0]+"%"),j8(f2,n)){var a=f2[n];if(a===eA&&(a=xTt(n)),typeof a=="undefined"&&!r)throw new tA("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new rA("intrinsic "+t+" does not exist!")};pAe.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new tA("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new tA('"allowMissing" argument must be a boolean');if(TTt(/^%?[^%]*%?$/,t)===null)throw new rA("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=MTt(t),i=n.length>0?n[0]:"",a=ETt("%"+i+"%",r),o=a.name,s=a.value,l=!1,u=a.alias;u&&(i=u[0],wTt(n,bTt([0,1],u)));for(var c=1,f=!0;c=n.length){var x=B4(s,h);f=!!x,f&&"get"in x&&!("originalValue"in x.get)?s=x.get:s=s[h]}else f=j8(s,h),s=s[h];f&&!l&&(f2[o]=s)}}return s}});var _Ae=ye((hfr,yAe)=>{"use strict";var gAe=q4(),CTt=_H(),iA=JT(),mAe=c2();yAe.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new iA("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new iA("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new iA("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new iA("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new iA("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new iA("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!mAe&&mAe(t,r);if(gAe)gAe(t,r,{configurable:o===null&&l?l.configurable:!o,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:a===null&&l?l.writable:!a});else if(s||!i&&!a&&!o)t[r]=n;else throw new CTt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var EH=ye((dfr,bAe)=>{"use strict";var MH=q4(),xAe=function(){return!!MH};xAe.hasArrayLengthDefineBug=function(){if(!MH)return null;try{return MH([],"length",{value:1}).length!==1}catch(t){return!0}};bAe.exports=xAe});var MAe=ye((vfr,SAe)=>{"use strict";var kTt=X8(),wAe=_Ae(),LTt=EH()(),TAe=c2(),AAe=JT(),PTt=kTt("%Math.floor%");SAe.exports=function(t,r){if(typeof t!="function")throw new AAe("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||PTt(r)!==r)throw new AAe("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,a=!0;if("length"in t&&TAe){var o=TAe(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(a=!1)}return(i||a||!n)&&(LTt?wAe(t,"length",r,!0,!0):wAe(t,"length",r)),t}});var V4=ye((pfr,Z8)=>{"use strict";var CH=$T(),Y8=X8(),ITt=MAe(),RTt=JT(),kAe=Y8("%Function.prototype.apply%"),LAe=Y8("%Function.prototype.call%"),PAe=Y8("%Reflect.apply%",!0)||CH.call(LAe,kAe),EAe=q4(),DTt=Y8("%Math.max%");Z8.exports=function(t){if(typeof t!="function")throw new RTt("a function is required");var r=PAe(CH,LAe,arguments);return ITt(r,1+DTt(0,t.length-(arguments.length-1)),!0)};var CAe=function(){return PAe(CH,kAe,arguments)};EAe?EAe(Z8.exports,"apply",{value:CAe}):Z8.exports.apply=CAe});var nA=ye((gfr,DAe)=>{"use strict";var IAe=X8(),RAe=V4(),FTt=RAe(IAe("String.prototype.indexOf"));DAe.exports=function(t,r){var n=IAe(t,!!r);return typeof n=="function"&&FTt(t,".prototype.")>-1?RAe(n):n}});var OAe=ye((mfr,zAe)=>{"use strict";var zTt=O4()(),OTt=nA(),kH=OTt("Object.prototype.toString"),K8=function(t){return zTt&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:kH(t)==="[object Arguments]"},FAe=function(t){return K8(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&kH(t)!=="[object Array]"&&kH(t.callee)==="[object Function]"},qTt=function(){return K8(arguments)}();K8.isLegacyArguments=FAe;zAe.exports=qTt?K8:FAe});var NAe=ye((yfr,BAe)=>{"use strict";var BTt=Object.prototype.toString,NTt=Function.prototype.toString,UTt=/^\s*(?:function)?\*/,qAe=O4()(),LH=Object.getPrototypeOf,VTt=function(){if(!qAe)return!1;try{return Function("return function*() {}")()}catch(e){}},PH;BAe.exports=function(t){if(typeof t!="function")return!1;if(UTt.test(NTt.call(t)))return!0;if(!qAe){var r=BTt.call(t);return r==="[object GeneratorFunction]"}if(!LH)return!1;if(typeof PH=="undefined"){var n=VTt();PH=n?LH(n):!1}return LH(t)===PH}});var HAe=ye((_fr,GAe)=>{"use strict";var VAe=Function.prototype.toString,aA=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,RH,J8;if(typeof aA=="function"&&typeof Object.defineProperty=="function")try{RH=Object.defineProperty({},"length",{get:function(){throw J8}}),J8={},aA(function(){throw 42},null,RH)}catch(e){e!==J8&&(aA=null)}else aA=null;var GTt=/^\s*class\b/,DH=function(t){try{var r=VAe.call(t);return GTt.test(r)}catch(n){return!1}},IH=function(t){try{return DH(t)?!1:(VAe.call(t),!0)}catch(r){return!1}},$8=Object.prototype.toString,HTt="[object Object]",jTt="[object Function]",WTt="[object GeneratorFunction]",XTt="[object HTMLAllCollection]",ZTt="[object HTML document.all class]",YTt="[object HTMLCollection]",KTt=typeof Symbol=="function"&&!!Symbol.toStringTag,JTt=!(0 in[,]),FH=function(){return!1};typeof document=="object"&&(UAe=document.all,$8.call(UAe)===$8.call(document.all)&&(FH=function(t){if((JTt||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=$8.call(t);return(r===XTt||r===ZTt||r===YTt||r===HTt)&&t("")==null}catch(n){}return!1}));var UAe;GAe.exports=aA?function(t){if(FH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{aA(t,null,RH)}catch(r){if(r!==J8)return!1}return!DH(t)&&IH(t)}:function(t){if(FH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(KTt)return IH(t);if(DH(t))return!1;var r=$8.call(t);return r!==jTt&&r!==WTt&&!/^\[object HTML/.test(r)?!1:IH(t)}});var zH=ye((xfr,WAe)=>{"use strict";var $Tt=HAe(),QTt=Object.prototype.toString,jAe=Object.prototype.hasOwnProperty,eAt=function(t,r,n){for(var i=0,a=t.length;i=3&&(i=n),QTt.call(t)==="[object Array]"?eAt(t,r,i):typeof t=="string"?tAt(t,r,i):rAt(t,r,i)};WAe.exports=iAt});var qH=ye((bfr,XAe)=>{"use strict";var OH=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],nAt=typeof globalThis=="undefined"?window:globalThis;XAe.exports=function(){for(var t=[],r=0;r{"use strict";var eR=zH(),aAt=qH(),ZAe=V4(),UH=nA(),Q8=c2(),oAt=UH("Object.prototype.toString"),KAe=O4()(),YAe=typeof globalThis=="undefined"?window:globalThis,NH=aAt(),VH=UH("String.prototype.slice"),BH=Object.getPrototypeOf,sAt=UH("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1?r:r!=="Object"?!1:uAt(t)}return Q8?lAt(t):null}});var n5e=ye((Tfr,i5e)=>{"use strict";var QAe=zH(),cAt=qH(),HH=nA(),fAt=HH("Object.prototype.toString"),e5e=O4()(),rR=c2(),hAt=typeof globalThis=="undefined"?window:globalThis,t5e=cAt(),dAt=HH("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1}return rR?pAt(t):!1}});var XH=ye(cu=>{"use strict";var gAt=OAe(),mAt=NAe(),Gg=$Ae(),a5e=n5e();function oA(e){return e.call.bind(e)}var o5e=typeof BigInt!="undefined",s5e=typeof Symbol!="undefined",Z0=oA(Object.prototype.toString),yAt=oA(Number.prototype.valueOf),_At=oA(String.prototype.valueOf),xAt=oA(Boolean.prototype.valueOf);o5e&&(l5e=oA(BigInt.prototype.valueOf));var l5e;s5e&&(u5e=oA(Symbol.prototype.valueOf));var u5e;function H4(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}cu.isArgumentsObject=gAt;cu.isGeneratorFunction=mAt;cu.isTypedArray=a5e;function bAt(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}cu.isPromise=bAt;function wAt(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):a5e(e)||f5e(e)}cu.isArrayBufferView=wAt;function TAt(e){return Gg(e)==="Uint8Array"}cu.isUint8Array=TAt;function AAt(e){return Gg(e)==="Uint8ClampedArray"}cu.isUint8ClampedArray=AAt;function SAt(e){return Gg(e)==="Uint16Array"}cu.isUint16Array=SAt;function MAt(e){return Gg(e)==="Uint32Array"}cu.isUint32Array=MAt;function EAt(e){return Gg(e)==="Int8Array"}cu.isInt8Array=EAt;function CAt(e){return Gg(e)==="Int16Array"}cu.isInt16Array=CAt;function kAt(e){return Gg(e)==="Int32Array"}cu.isInt32Array=kAt;function LAt(e){return Gg(e)==="Float32Array"}cu.isFloat32Array=LAt;function PAt(e){return Gg(e)==="Float64Array"}cu.isFloat64Array=PAt;function IAt(e){return Gg(e)==="BigInt64Array"}cu.isBigInt64Array=IAt;function RAt(e){return Gg(e)==="BigUint64Array"}cu.isBigUint64Array=RAt;function iR(e){return Z0(e)==="[object Map]"}iR.working=typeof Map!="undefined"&&iR(new Map);function DAt(e){return typeof Map=="undefined"?!1:iR.working?iR(e):e instanceof Map}cu.isMap=DAt;function nR(e){return Z0(e)==="[object Set]"}nR.working=typeof Set!="undefined"&&nR(new Set);function FAt(e){return typeof Set=="undefined"?!1:nR.working?nR(e):e instanceof Set}cu.isSet=FAt;function aR(e){return Z0(e)==="[object WeakMap]"}aR.working=typeof WeakMap!="undefined"&&aR(new WeakMap);function zAt(e){return typeof WeakMap=="undefined"?!1:aR.working?aR(e):e instanceof WeakMap}cu.isWeakMap=zAt;function WH(e){return Z0(e)==="[object WeakSet]"}WH.working=typeof WeakSet!="undefined"&&WH(new WeakSet);function OAt(e){return WH(e)}cu.isWeakSet=OAt;function oR(e){return Z0(e)==="[object ArrayBuffer]"}oR.working=typeof ArrayBuffer!="undefined"&&oR(new ArrayBuffer);function c5e(e){return typeof ArrayBuffer=="undefined"?!1:oR.working?oR(e):e instanceof ArrayBuffer}cu.isArrayBuffer=c5e;function sR(e){return Z0(e)==="[object DataView]"}sR.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&sR(new DataView(new ArrayBuffer(1),0,1));function f5e(e){return typeof DataView=="undefined"?!1:sR.working?sR(e):e instanceof DataView}cu.isDataView=f5e;var jH=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function G4(e){return Z0(e)==="[object SharedArrayBuffer]"}function h5e(e){return typeof jH=="undefined"?!1:(typeof G4.working=="undefined"&&(G4.working=G4(new jH)),G4.working?G4(e):e instanceof jH)}cu.isSharedArrayBuffer=h5e;function qAt(e){return Z0(e)==="[object AsyncFunction]"}cu.isAsyncFunction=qAt;function BAt(e){return Z0(e)==="[object Map Iterator]"}cu.isMapIterator=BAt;function NAt(e){return Z0(e)==="[object Set Iterator]"}cu.isSetIterator=NAt;function UAt(e){return Z0(e)==="[object Generator]"}cu.isGeneratorObject=UAt;function VAt(e){return Z0(e)==="[object WebAssembly.Module]"}cu.isWebAssemblyCompiledModule=VAt;function d5e(e){return H4(e,yAt)}cu.isNumberObject=d5e;function v5e(e){return H4(e,_At)}cu.isStringObject=v5e;function p5e(e){return H4(e,xAt)}cu.isBooleanObject=p5e;function g5e(e){return o5e&&H4(e,l5e)}cu.isBigIntObject=g5e;function m5e(e){return s5e&&H4(e,u5e)}cu.isSymbolObject=m5e;function GAt(e){return d5e(e)||v5e(e)||p5e(e)||g5e(e)||m5e(e)}cu.isBoxedPrimitive=GAt;function HAt(e){return typeof Uint8Array!="undefined"&&(c5e(e)||h5e(e))}cu.isAnyArrayBuffer=HAt;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(cu,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var ZH=ye((Sfr,y5e)=>{y5e.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var ej=ye(fu=>{var _5e=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(l){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),$H(t)?r.showHidden=t:t&&fu._extend(r,t),d2(r.showHidden)&&(r.showHidden=!1),d2(r.depth)&&(r.depth=2),d2(r.colors)&&(r.colors=!1),d2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=WAt),fR(r,e,r.depth)}fu.inspect=R_;R_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};R_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function WAt(e,t){var r=R_.styles[t];return r?"\x1B["+R_.colors[r][0]+"m"+e+"\x1B["+R_.colors[r][1]+"m":e}function XAt(e,t){return e}function ZAt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function fR(e,t,r){if(e.customInspect&&t&&cR(t.inspect)&&t.inspect!==fu.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return vR(n)||(n=fR(e,n,r)),n}var i=YAt(e,t);if(i)return i;var a=Object.keys(t),o=ZAt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),W4(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return YH(t);if(a.length===0){if(cR(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(j4(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(hR(t))return e.stylize(Date.prototype.toString.call(t),"date");if(W4(t))return YH(t)}var l="",u=!1,c=["{","}"];if(b5e(t)&&(u=!0,c=["[","]"]),cR(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(j4(t)&&(l=" "+RegExp.prototype.toString.call(t)),hR(t)&&(l=" "+Date.prototype.toUTCString.call(t)),W4(t)&&(l=" "+YH(t)),a.length===0&&(!u||t.length==0))return c[0]+l+c[1];if(r<0)return j4(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=KAt(e,t,r,o,a):h=a.map(function(d){return JH(e,t,r,o,d,u)}),e.seen.pop(),JAt(h,l,c)}function YAt(e,t){if(d2(t))return e.stylize("undefined","undefined");if(vR(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(w5e(t))return e.stylize(""+t,"number");if($H(t))return e.stylize(""+t,"boolean");if(dR(t))return e.stylize("null","null")}function YH(e){return"["+Error.prototype.toString.call(e)+"]"}function KAt(e,t,r,n,i){for(var a=[],o=0,s=t.length;o24?(isFinite(se)&&(clearTimeout(Ma),Ma=setTimeout(po,se)),Jn=0):(Jn=1,_o(po))}e.timer.flush=function(){Lo(),Co()};function Lo(){for(var X=Date.now(),se=_n;se;)X>=se.t&&se.c(X-se.t)&&(se.c=null),se=se.n;return X}function Co(){for(var X,se=_n,Te=1/0;se;)se.c?(se.t=0;--nt)Xr.push(He[gr[Gr[nt]][2]]);for(nt=+_i;nt1&&ir(X[Te[Ne-2]],X[Te[Ne-1]],X[He])<=0;)--Ne;Te[Ne++]=He}return Te.slice(0,Ne)}function cl(X,se){return X[0]-se[0]||X[1]-se[1]}e.geom.polygon=function(X){return ie(X,Fl),X};var Fl=e.geom.polygon.prototype=[];Fl.area=function(){for(var X=-1,se=this.length,Te,Ne=this[se-1],He=0;++XJe)nt=nt.L;else if(Ct=se-xo(nt,Te),Ct>Je){if(!nt.R){Ne=nt;break}nt=nt.R}else{Ze>-Je?(Ne=nt.P,He=nt):Ct>-Je?(Ne=nt,He=nt.N):Ne=He=nt;break}var jt=ws(X);if(Os.insert(Ne,jt),!(!Ne&&!He)){if(Ne===He){Oo(Ne),He=ws(Ne.site),Os.insert(jt,He),jt.edge=He.edge=rf(Ne.site,jt.site),aa(Ne),aa(He);return}if(!He){jt.edge=rf(Ne.site,jt.site);return}Oo(Ne),Oo(He);var gr=Ne.site,yr=gr.x,Gr=gr.y,qr=X.x-yr,_i=X.y-Gr,bi=He.site,Xr=bi.x-yr,ni=bi.y-Gr,gi=2*(qr*ni-_i*Xr),Pi=qr*qr+_i*_i,Ai=Xr*Xr+ni*ni,ti={x:(ni*Pi-_i*Ai)/gi+yr,y:(qr*Ai-Xr*Pi)/gi+Gr};ml(He.edge,gr,bi,ti),jt.edge=rf(gr,X,null,ti),He.edge=rf(X,bi,null,ti),aa(Ne),aa(He)}}function zl(X,se){var Te=X.site,Ne=Te.x,He=Te.y,Ze=He-se;if(!Ze)return Ne;var Ct=X.P;if(!Ct)return-1/0;Te=Ct.site;var nt=Te.x,jt=Te.y,gr=jt-se;if(!gr)return nt;var yr=nt-Ne,Gr=1/Ze-1/gr,qr=yr/gr;return Gr?(-qr+Math.sqrt(qr*qr-2*Gr*(yr*yr/(-2*gr)-jt+gr/2+He-Ze/2)))/Gr+Ne:(Ne+nt)/2}function xo(X,se){var Te=X.N;if(Te)return zl(Te,se);var Ne=X.site;return Ne.y===se?Ne.x:1/0}function Yl(X){this.site=X,this.edges=[]}Yl.prototype.prepare=function(){for(var X=this.edges,se=X.length,Te;se--;)Te=X[se].edge,(!Te.b||!Te.a)&&X.splice(se,1);return X.sort(Hl),X.length};function Us(X){for(var se=X[0][0],Te=X[1][0],Ne=X[0][1],He=X[1][1],Ze,Ct,nt,jt,gr=Js,yr=gr.length,Gr,qr,_i,bi,Xr,ni;yr--;)if(Gr=gr[yr],!(!Gr||!Gr.prepare()))for(_i=Gr.edges,bi=_i.length,qr=0;qrJe||p(jt-Ct)>Je)&&(_i.splice(qr,0,new Zc(Uf(Gr.site,ni,p(nt-se)Je?{x:se,y:p(Ze-se)Je?{x:p(Ct-He)Je?{x:Te,y:p(Ze-Te)Je?{x:p(Ct-Ne)=-je)){var qr=jt*jt+gr*gr,_i=yr*yr+ni*ni,bi=(ni*qr-gr*_i)/Gr,Xr=(jt*_i-yr*qr)/Gr,ni=Xr+nt,gi=Su.pop()||new ac;gi.arc=X,gi.site=He,gi.x=bi+Ct,gi.y=ni+Math.sqrt(bi*bi+Xr*Xr),gi.cy=ni,X.circle=gi;for(var Pi=null,Ai=Zl._;Ai;)if(gi.y0)){if(Xr/=_i,_i<0){if(Xr0){if(Xr>qr)return;Xr>Gr&&(Gr=Xr)}if(Xr=Te-nt,!(!_i&&Xr<0)){if(Xr/=_i,_i<0){if(Xr>qr)return;Xr>Gr&&(Gr=Xr)}else if(_i>0){if(Xr0)){if(Xr/=bi,bi<0){if(Xr0){if(Xr>qr)return;Xr>Gr&&(Gr=Xr)}if(Xr=Ne-jt,!(!bi&&Xr<0)){if(Xr/=bi,bi<0){if(Xr>qr)return;Xr>Gr&&(Gr=Xr)}else if(bi>0){if(Xr0&&(He.a={x:nt+Gr*_i,y:jt+Gr*bi}),qr<1&&(He.b={x:nt+qr*_i,y:jt+qr*bi}),He}}}}}}function Ol(X){for(var se=fl,Te=qo(X[0][0],X[0][1],X[1][0],X[1][1]),Ne=se.length,He;Ne--;)He=se[Ne],(!Pc(He,X)||!Te(He)||p(He.a.x-He.b.x)=Ze)return;if(yr>qr){if(!Ne)Ne={x:bi,y:Ct};else if(Ne.y>=nt)return;Te={x:bi,y:nt}}else{if(!Ne)Ne={x:bi,y:nt};else if(Ne.y1)if(yr>qr){if(!Ne)Ne={x:(Ct-gi)/ni,y:Ct};else if(Ne.y>=nt)return;Te={x:(nt-gi)/ni,y:nt}}else{if(!Ne)Ne={x:(nt-gi)/ni,y:nt};else if(Ne.y=Ze)return;Te={x:Ze,y:ni*Ze+gi}}else{if(!Ne)Ne={x:Ze,y:ni*Ze+gi};else if(Ne.x=yr&&gi.x<=qr&&gi.y>=Gr&&gi.y<=_i?[[yr,_i],[qr,_i],[qr,Gr],[yr,Gr]]:[];Pi.point=jt[Xr]}),gr}function nt(jt){return jt.map(function(gr,yr){return{x:Math.round(Ne(gr,yr)/Je)*Je,y:Math.round(He(gr,yr)/Je)*Je,i:yr}})}return Ct.links=function(jt){return sc(nt(jt)).edges.filter(function(gr){return gr.l&&gr.r}).map(function(gr){return{source:jt[gr.l.i],target:jt[gr.r.i]}})},Ct.triangles=function(jt){var gr=[];return sc(nt(jt)).cells.forEach(function(yr,Gr){for(var qr=yr.site,_i=yr.edges.sort(Hl),bi=-1,Xr=_i.length,ni,gi,Pi=_i[Xr-1].edge,Ai=Pi.l===qr?Pi.r:Pi.l;++biAi&&(Ai=yr.x),yr.y>ti&&(ti=yr.y),_i.push(yr.x),bi.push(yr.y);else for(Xr=0;XrAi&&(Ai=Rn),Cn>ti&&(ti=Cn),_i.push(Rn),bi.push(Cn)}var Nn=Ai-gi,ia=ti-Pi;Nn>ia?ti=Pi+Nn:Ai=gi+ia;function Ea(Da,go,Rs,Es,Zs,Gn,Ha,Fo){if(!(isNaN(Rs)||isNaN(Es)))if(Da.leaf){var Uo=Da.x,Qs=Da.y;if(Uo!=null)if(p(Uo-Rs)+p(Qs-Es)<.01)Ia(Da,go,Rs,Es,Zs,Gn,Ha,Fo);else{var Sl=Da.point;Da.x=Da.y=Da.point=null,Ia(Da,Sl,Uo,Qs,Zs,Gn,Ha,Fo),Ia(Da,go,Rs,Es,Zs,Gn,Ha,Fo)}else Da.x=Rs,Da.y=Es,Da.point=go}else Ia(Da,go,Rs,Es,Zs,Gn,Ha,Fo)}function Ia(Da,go,Rs,Es,Zs,Gn,Ha,Fo){var Uo=(Zs+Ha)*.5,Qs=(Gn+Fo)*.5,Sl=Rs>=Uo,bu=Es>=Qs,vl=bu<<1|Sl;Da.leaf=!1,Da=Da.nodes[vl]||(Da.nodes[vl]=Jl()),Sl?Zs=Uo:Ha=Uo,bu?Gn=Qs:Fo=Qs,Ea(Da,go,Rs,Es,Zs,Gn,Ha,Fo)}var yo=Jl();if(yo.add=function(Da){Ea(yo,Da,+Gr(Da,++Xr),+qr(Da,Xr),gi,Pi,Ai,ti)},yo.visit=function(Da){hl(Da,yo,gi,Pi,Ai,ti)},yo.find=function(Da){return lc(yo,Da[0],Da[1],gi,Pi,Ai,ti)},Xr=-1,se==null){for(;++XrZe||qr>Ct||_i=Rn,ia=Te>=Cn,Ea=ia<<1|Nn,Ia=Ea+4;EaTe&&(Ze=se.slice(Te,Ze),nt[Ct]?nt[Ct]+=Ze:nt[++Ct]=Ze),(Ne=Ne[0])===(He=He[0])?nt[Ct]?nt[Ct]+=He:nt[++Ct]=He:(nt[++Ct]=null,jt.push({i:Ct,x:js(Ne,He)})),Te=uc.lastIndex;return Te=0&&!(Ne=e.interpolators[Te](X,se)););return Ne}e.interpolators=[function(X,se){var Te=typeof se;return(Te==="string"?Qr.has(se.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(se)?Fu:Go:se instanceof ua?Fu:Array.isArray(se)?Gu:Te==="object"&&isNaN(se)?Cs:js)(X,se)}],e.interpolateArray=Gu;function Gu(X,se){var Te=[],Ne=[],He=X.length,Ze=se.length,Ct=Math.min(X.length,se.length),nt;for(nt=0;nt=0?X.slice(0,se):X,Ne=se>=0?X.slice(se+1):"in";return Te=ad.get(Te)||Bs,Ne=Po.get(Ne)||G,od(Ne(Te.apply(null,t.call(arguments,1))))};function od(X){return function(se){return se<=0?0:se>=1?1:X(se)}}function Yo(X){return function(se){return 1-X(1-se)}}function Pa(X){return function(se){return .5*(se<.5?X(2*se):2-X(2-2*se))}}function af(X){return X*X}function Hu(X){return X*X*X}function bl(X){if(X<=0)return 0;if(X>=1)return 1;var se=X*X,Te=se*X;return 4*(X<.5?Te:3*(X-se)+Te-.75)}function Gf(X){return function(se){return Math.pow(se,X)}}function Ic(X){return 1-Math.cos(X*xe)}function mf(X){return Math.pow(2,10*(X-1))}function ql(X){return 1-Math.sqrt(1-X*X)}function _h(X,se){var Te;return arguments.length<2&&(se=.45),arguments.length?Te=se/wt*Math.asin(1/X):(X=1,Te=se/4),function(Ne){return 1+X*Math.pow(2,-10*Ne)*Math.sin((Ne-Te)*wt/se)}}function Qf(X){return X||(X=1.70158),function(se){return se*se*((X+1)*se-X)}}function yf(X){return X<1/2.75?7.5625*X*X:X<2/2.75?7.5625*(X-=1.5/2.75)*X+.75:X<2.5/2.75?7.5625*(X-=2.25/2.75)*X+.9375:7.5625*(X-=2.625/2.75)*X+.984375}e.interpolateHcl=Yc;function Yc(X,se){X=e.hcl(X),se=e.hcl(se);var Te=X.h,Ne=X.c,He=X.l,Ze=se.h-Te,Ct=se.c-Ne,nt=se.l-He;return isNaN(Ct)&&(Ct=0,Ne=isNaN(Ne)?se.c:Ne),isNaN(Ze)?(Ze=0,Te=isNaN(Te)?se.h:Te):Ze>180?Ze-=360:Ze<-180&&(Ze+=360),function(jt){return Zr(Te+Ze*jt,Ne+Ct*jt,He+nt*jt)+""}}e.interpolateHsl=eh;function eh(X,se){X=e.hsl(X),se=e.hsl(se);var Te=X.h,Ne=X.s,He=X.l,Ze=se.h-Te,Ct=se.s-Ne,nt=se.l-He;return isNaN(Ct)&&(Ct=0,Ne=isNaN(Ne)?se.s:Ne),isNaN(Ze)?(Ze=0,Te=isNaN(Te)?se.h:Te):Ze>180?Ze-=360:Ze<-180&&(Ze+=360),function(jt){return tr(Te+Ze*jt,Ne+Ct*jt,He+nt*jt)+""}}e.interpolateLab=th;function th(X,se){X=e.lab(X),se=e.lab(se);var Te=X.l,Ne=X.a,He=X.b,Ze=se.l-Te,Ct=se.a-Ne,nt=se.b-He;return function(jt){return yn(Te+Ze*jt,Ne+Ct*jt,He+nt*jt)+""}}e.interpolateRound=ju;function ju(X,se){return se-=X,function(Te){return Math.round(X+se*Te)}}e.transform=function(X){var se=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(Te){if(Te!=null){se.setAttribute("transform",Te);var Ne=se.transform.baseVal.consolidate()}return new Hf(Ne?Ne.matrix:Kc)})(X)};function Hf(X){var se=[X.a,X.b],Te=[X.c,X.d],Ne=of(se),He=cc(se,Te),Ze=of(Bl(Te,se,-He))||0;se[0]*Te[1]180?se+=360:se-X>180&&(X+=360),Ne.push({i:Te.push(Rc(Te)+"rotate(",null,")")-2,x:js(X,se)})):se&&Te.push(Rc(Te)+"rotate("+se+")")}function Uh(X,se,Te,Ne){X!==se?Ne.push({i:Te.push(Rc(Te)+"skewX(",null,")")-2,x:js(X,se)}):se&&Te.push(Rc(Te)+"skewX("+se+")")}function rh(X,se,Te,Ne){if(X[0]!==se[0]||X[1]!==se[1]){var He=Te.push(Rc(Te)+"scale(",null,",",null,")");Ne.push({i:He-4,x:js(X[0],se[0])},{i:He-2,x:js(X[1],se[1])})}else(se[0]!==1||se[1]!==1)&&Te.push(Rc(Te)+"scale("+se+")")}function sf(X,se){var Te=[],Ne=[];return X=e.transform(X),se=e.transform(se),ms(X.translate,se.translate,Te,Ne),jf(X.rotate,se.rotate,Te,Ne),Uh(X.skew,se.skew,Te,Ne),rh(X.scale,se.scale,Te,Ne),X=se=null,function(He){for(var Ze=-1,Ct=Ne.length,nt;++Ze0?Ze=ti:(Te.c=null,Te.t=NaN,Te=null,se.end({type:"end",alpha:Ze=0})):ti>0&&(se.start({type:"start",alpha:Ze=ti}),Te=No(X.tick)),X):Ze},X.start=function(){var ti,Rn=_i.length,Cn=bi.length,Nn=Ne[0],ia=Ne[1],Ea,Ia;for(ti=0;ti=0;)Ze.push(yr=gr[jt]),yr.parent=nt,yr.depth=nt.depth+1;Te&&(nt.value=0),nt.children=gr}else Te&&(nt.value=+Te.call(Ne,nt,nt.depth)||0),delete nt.children;return wc(He,function(Gr){var qr,_i;X&&(qr=Gr.children)&&qr.sort(X),Te&&(_i=Gr.parent)&&(_i.value+=Gr.value)}),Ct}return Ne.sort=function(He){return arguments.length?(X=He,Ne):X},Ne.children=function(He){return arguments.length?(se=He,Ne):se},Ne.value=function(He){return arguments.length?(Te=He,Ne):Te},Ne.revalue=function(He){return Te&&(Fc(He,function(Ze){Ze.children&&(Ze.value=0)}),wc(He,function(Ze){var Ct;Ze.children||(Ze.value=+Te.call(Ne,Ze,Ze.depth)||0),(Ct=Ze.parent)&&(Ct.value+=Ze.value)})),He},Ne};function zu(X,se){return e.rebind(X,se,"sort","children","value"),X.nodes=X,X.links=Ou,X}function Fc(X,se){for(var Te=[X];(X=Te.pop())!=null;)if(se(X),(He=X.children)&&(Ne=He.length))for(var Ne,He;--Ne>=0;)Te.push(He[Ne])}function wc(X,se){for(var Te=[X],Ne=[];(X=Te.pop())!=null;)if(Ne.push(X),(Ct=X.children)&&(Ze=Ct.length))for(var He=-1,Ze,Ct;++HeHe&&(He=nt),Ne.push(nt)}for(Ct=0;CtNe&&(Te=se,Ne=He);return Te}function Vs(X){return X.reduce(bf,0)}function bf(X,se){return X+se[1]}e.layout.histogram=function(){var X=!0,se=Number,Te=If,Ne=zc;function He(Ze,qr){for(var nt=[],jt=Ze.map(se,this),gr=Te.call(this,jt,qr),yr=Ne.call(this,gr,jt,qr),Gr,qr=-1,_i=jt.length,bi=yr.length-1,Xr=X?1:1/_i,ni;++qr0)for(qr=-1;++qr<_i;)ni=jt[qr],ni>=gr[0]&&ni<=gr[1]&&(Gr=nt[e.bisect(yr,ni,1,bi)-1],Gr.y+=Xr,Gr.push(Ze[qr]));return nt}return He.value=function(Ze){return arguments.length?(se=Ze,He):se},He.range=function(Ze){return arguments.length?(Te=pi(Ze),He):Te},He.bins=function(Ze){return arguments.length?(Ne=typeof Ze=="number"?function(Ct){return Wu(Ct,Ze)}:pi(Ze),He):Ne},He.frequency=function(Ze){return arguments.length?(X=!!Ze,He):X},He};function zc(X,se){return Wu(X,Math.ceil(Math.log(se.length)/Math.LN2+1))}function Wu(X,se){for(var Te=-1,Ne=+X[0],He=(X[1]-Ne)/se,Ze=[];++Te<=se;)Ze[Te]=He*Te+Ne;return Ze}function If(X){return[e.min(X),e.max(X)]}e.layout.pack=function(){var X=e.layout.hierarchy().sort(Xu),se=0,Te=[1,1],Ne;function He(Ze,Ct){var nt=X.call(this,Ze,Ct),jt=nt[0],gr=Te[0],yr=Te[1],Gr=Ne==null?Math.sqrt:typeof Ne=="function"?Ne:function(){return Ne};if(jt.x=jt.y=0,wc(jt,function(_i){_i.r=+Gr(_i.value)}),wc(jt,ah),se){var qr=se*(Ne?1:Math.max(2*jt.r/gr,2*jt.r/yr))/2;wc(jt,function(_i){_i.r+=qr}),wc(jt,ah),wc(jt,function(_i){_i.r-=qr})}return Tc(jt,gr/2,yr/2,Ne?1:1/Math.max(2*jt.r/gr,2*jt.r/yr)),nt}return He.size=function(Ze){return arguments.length?(Te=Ze,He):Te},He.radius=function(Ze){return arguments.length?(Ne=Ze==null||typeof Ze=="function"?Ze:+Ze,He):Ne},He.padding=function(Ze){return arguments.length?(se=+Ze,He):se},zu(He,X)};function Xu(X,se){return X.value-se.value}function uf(X,se){var Te=X._pack_next;X._pack_next=se,se._pack_prev=X,se._pack_next=Te,Te._pack_prev=se}function Xf(X,se){X._pack_next=se,se._pack_prev=X}function Wl(X,se){var Te=se.x-X.x,Ne=se.y-X.y,He=X.r+se.r;return .999*He*He>Te*Te+Ne*Ne}function ah(X){if(!(se=X.children)||!(qr=se.length))return;var se,Te=1/0,Ne=-1/0,He=1/0,Ze=-1/0,Ct,nt,jt,gr,yr,Gr,qr;function _i(ti){Te=Math.min(ti.x-ti.r,Te),Ne=Math.max(ti.x+ti.r,Ne),He=Math.min(ti.y-ti.r,He),Ze=Math.max(ti.y+ti.r,Ze)}if(se.forEach(Zu),Ct=se[0],Ct.x=-Ct.r,Ct.y=0,_i(Ct),qr>1&&(nt=se[1],nt.x=nt.r,nt.y=0,_i(nt),qr>2))for(jt=se[2],wl(Ct,nt,jt),_i(jt),uf(Ct,jt),Ct._pack_prev=jt,uf(jt,nt),nt=Ct._pack_next,gr=3;grni.x&&(ni=Rn),Rn.depth>gi.depth&&(gi=Rn)});var Pi=se(Xr,ni)/2-Xr.x,Ai=Te[0]/(ni.x+se(ni,Xr)/2+Pi),ti=Te[1]/(gi.depth||1);Fc(_i,function(Rn){Rn.x=(Rn.x+Pi)*Ai,Rn.y=Rn.depth*ti})}return qr}function Ze(yr){for(var Gr={A:null,children:[yr]},qr=[Gr],_i;(_i=qr.pop())!=null;)for(var bi=_i.children,Xr,ni=0,gi=bi.length;ni0&&(fc(At(Xr,yr,qr),yr,Rn),gi+=Rn,Pi+=Rn),Ai+=Xr.m,gi+=_i.m,ti+=ni.m,Pi+=bi.m;Xr&&!cf(bi)&&(bi.t=Xr,bi.m+=Ai-Pi),_i&&!qc(ni)&&(ni.t=_i,ni.m+=gi-ti,qr=yr)}return qr}function gr(yr){yr.x*=Te[0],yr.y=yr.depth*Te[1]}return He.separation=function(yr){return arguments.length?(se=yr,He):se},He.size=function(yr){return arguments.length?(Ne=(Te=yr)==null?gr:null,He):Ne?null:Te},He.nodeSize=function(yr){return arguments.length?(Ne=(Te=yr)==null?null:gr,He):Ne?Te:null},zu(He,X)};function pu(X,se){return X.parent==se.parent?1:2}function qc(X){var se=X.children;return se.length?se[0]:X.t}function cf(X){var se=X.children,Te;return(Te=se.length)?se[Te-1]:X.t}function fc(X,se,Te){var Ne=Te/(se.i-X.i);se.c-=Ne,se.s+=Te,X.c+=Ne,se.z+=Te,se.m+=Te}function Bc(X){for(var se=0,Te=0,Ne=X.children,He=Ne.length,Ze;--He>=0;)Ze=Ne[He],Ze.z+=se,Ze.m+=se,se+=Ze.s+(Te+=Ze.c)}function At(X,se,Te){return X.a.parent===se.parent?X.a:Te}e.layout.cluster=function(){var X=e.layout.hierarchy().sort(null).value(null),se=pu,Te=[1,1],Ne=!1;function He(Ze,Ct){var nt=X.call(this,Ze,Ct),jt=nt[0],gr,yr=0;wc(jt,function(Xr){var ni=Xr.children;ni&&ni.length?(Xr.x=kr(ni),Xr.y=Xt(ni)):(Xr.x=gr?yr+=se(Xr,gr):0,Xr.y=0,gr=Xr)});var Gr=Ar(jt),qr=Kr(jt),_i=Gr.x-se(Gr,qr)/2,bi=qr.x+se(qr,Gr)/2;return wc(jt,Ne?function(Xr){Xr.x=(Xr.x-jt.x)*Te[0],Xr.y=(jt.y-Xr.y)*Te[1]}:function(Xr){Xr.x=(Xr.x-_i)/(bi-_i)*Te[0],Xr.y=(1-(jt.y?Xr.y/jt.y:1))*Te[1]}),nt}return He.separation=function(Ze){return arguments.length?(se=Ze,He):se},He.size=function(Ze){return arguments.length?(Ne=(Te=Ze)==null,He):Ne?null:Te},He.nodeSize=function(Ze){return arguments.length?(Ne=(Te=Ze)!=null,He):Ne?Te:null},zu(He,X)};function Xt(X){return 1+e.max(X,function(se){return se.y})}function kr(X){return X.reduce(function(se,Te){return se+Te.x},0)/X.length}function Ar(X){var se=X.children;return se&&se.length?Ar(se[0]):X}function Kr(X){var se=X.children,Te;return se&&(Te=se.length)?Kr(se[Te-1]):X}e.layout.treemap=function(){var X=e.layout.hierarchy(),se=Math.round,Te=[1,1],Ne=null,He=Ei,Ze=!1,Ct,nt="squarify",jt=.5*(1+Math.sqrt(5));function gr(Xr,ni){for(var gi=-1,Pi=Xr.length,Ai,ti;++gi0;)Pi.push(ti=Ai[ia-1]),Pi.area+=ti.area,nt!=="squarify"||(Cn=qr(Pi,Nn))<=Rn?(Ai.pop(),Rn=Cn):(Pi.area-=Pi.pop().area,_i(Pi,Nn,gi,!1),Nn=Math.min(gi.dx,gi.dy),Pi.length=Pi.area=0,Rn=1/0);Pi.length&&(_i(Pi,Nn,gi,!0),Pi.length=Pi.area=0),ni.forEach(yr)}}function Gr(Xr){var ni=Xr.children;if(ni&&ni.length){var gi=He(Xr),Pi=ni.slice(),Ai,ti=[];for(gr(Pi,gi.dx*gi.dy/Xr.value),ti.area=0;Ai=Pi.pop();)ti.push(Ai),ti.area+=Ai.area,Ai.z!=null&&(_i(ti,Ai.z?gi.dx:gi.dy,gi,!Pi.length),ti.length=ti.area=0);ni.forEach(Gr)}}function qr(Xr,ni){for(var gi=Xr.area,Pi,Ai=0,ti=1/0,Rn=-1,Cn=Xr.length;++RnAi&&(Ai=Pi));return gi*=gi,ni*=ni,gi?Math.max(ni*Ai*jt/gi,gi/(ni*ti*jt)):1/0}function _i(Xr,ni,gi,Pi){var Ai=-1,ti=Xr.length,Rn=gi.x,Cn=gi.y,Nn=ni?se(Xr.area/ni):0,ia;if(ni==gi.dx){for((Pi||Nn>gi.dy)&&(Nn=gi.dy);++Aigi.dx)&&(Nn=gi.dx);++Ai1);return X+se*Ne*Math.sqrt(-2*Math.log(Ze)/Ze)}},logNormal:function(){var X=e.random.normal.apply(e,arguments);return function(){return Math.exp(X())}},bates:function(X){var se=e.random.irwinHall(X);return function(){return se()/X}},irwinHall:function(X){return function(){for(var se=0,Te=0;Te2?Di:Bn,gr=Ne?Mu:xh;return He=jt(X,se,gr,Te),Ze=jt(se,X,gr,xl),nt}function nt(jt){return He(jt)}return nt.invert=function(jt){return Ze(jt)},nt.domain=function(jt){return arguments.length?(X=jt.map(Number),Ct()):X},nt.range=function(jt){return arguments.length?(se=jt,Ct()):se},nt.rangeRound=function(jt){return nt.range(jt).interpolate(ju)},nt.clamp=function(jt){return arguments.length?(Ne=jt,Ct()):Ne},nt.interpolate=function(jt){return arguments.length?(Te=jt,Ct()):Te},nt.ticks=function(jt){return Na(X,jt)},nt.tickFormat=function(jt,gr){return d3_scale_linearTickFormat(X,jt,gr)},nt.nice=function(jt){return Ra(X,jt),Ct()},nt.copy=function(){return $n(X,se,Te,Ne)},Ct()}function ka(X,se){return e.rebind(X,se,"range","rangeRound","interpolate","clamp")}function Ra(X,se){return Zi(X,$i(La(X,se)[2])),Zi(X,$i(La(X,se)[2])),X}function La(X,se){se==null&&(se=10);var Te=hn(X),Ne=Te[1]-Te[0],He=Math.pow(10,Math.floor(Math.log(Ne/se)/Math.LN10)),Ze=se/Ne*He;return Ze<=.15?He*=10:Ze<=.35?He*=5:Ze<=.75&&(He*=2),Te[0]=Math.ceil(Te[0]/He)*He,Te[1]=Math.floor(Te[1]/He)*He+He*.5,Te[2]=He,Te}function Na(X,se){return e.range.apply(e,La(X,se))}var Yn={s:1,g:1,p:1,r:1,e:1};function zn(X){return-Math.floor(Math.log(X)/Math.LN10+.01)}function Ka(X,se){var Te=zn(se[2]);return X in Yn?Math.abs(Te-zn(Math.max(p(se[0]),p(se[1]))))+ +(X!=="e"):Te-(X==="%")*2}e.scale.log=function(){return bo(e.scale.linear().domain([0,1]),10,!0,[1,10])};function bo(X,se,Te,Ne){function He(nt){return(Te?Math.log(nt<0?0:nt):-Math.log(nt>0?0:-nt))/Math.log(se)}function Ze(nt){return Te?Math.pow(se,nt):-Math.pow(se,-nt)}function Ct(nt){return X(He(nt))}return Ct.invert=function(nt){return Ze(X.invert(nt))},Ct.domain=function(nt){return arguments.length?(Te=nt[0]>=0,X.domain((Ne=nt.map(Number)).map(He)),Ct):Ne},Ct.base=function(nt){return arguments.length?(se=+nt,X.domain(Ne.map(He)),Ct):se},Ct.nice=function(){var nt=Zi(Ne.map(He),Te?Math:Xo);return X.domain(nt),Ne=nt.map(Ze),Ct},Ct.ticks=function(){var nt=hn(Ne),jt=[],gr=nt[0],yr=nt[1],Gr=Math.floor(He(gr)),qr=Math.ceil(He(yr)),_i=se%1?2:se;if(isFinite(qr-Gr)){if(Te){for(;Gr0;bi--)jt.push(Ze(Gr)*bi);for(Gr=0;jt[Gr]yr;qr--);jt=jt.slice(Gr,qr)}return jt},Ct.copy=function(){return bo(X.copy(),se,Te,Ne)},ka(Ct,X)}var Xo={floor:function(X){return-Math.ceil(-X)},ceil:function(X){return-Math.floor(-X)}};e.scale.pow=function(){return Ms(e.scale.linear(),1,[0,1])};function Ms(X,se,Te){var Ne=os(se),He=os(1/se);function Ze(Ct){return X(Ne(Ct))}return Ze.invert=function(Ct){return He(X.invert(Ct))},Ze.domain=function(Ct){return arguments.length?(X.domain((Te=Ct.map(Number)).map(Ne)),Ze):Te},Ze.ticks=function(Ct){return Na(Te,Ct)},Ze.tickFormat=function(Ct,nt){return d3_scale_linearTickFormat(Te,Ct,nt)},Ze.nice=function(Ct){return Ze.domain(Ra(Te,Ct))},Ze.exponent=function(Ct){return arguments.length?(Ne=os(se=Ct),He=os(1/se),X.domain(Te.map(Ne)),Ze):se},Ze.copy=function(){return Ms(X.copy(),se,Te)},ka(Ze,X)}function os(X){return function(se){return se<0?-Math.pow(-se,X):Math.pow(se,X)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Ts([],{t:"range",a:[[]]})};function Ts(X,se){var Te,Ne,He;function Ze(nt){return Ne[((Te.get(nt)||(se.t==="range"?Te.set(nt,X.push(nt)):NaN))-1)%Ne.length]}function Ct(nt,jt){return e.range(X.length).map(function(gr){return nt+jt*gr})}return Ze.domain=function(nt){if(!arguments.length)return X;X=[],Te=new A;for(var jt=-1,gr=nt.length,yr;++jt0?Te[Ze-1]:X[0],Zeqr?0:1;if(yr=Ie)return jt(yr,bi)+(gr?jt(gr,1-bi):"")+"Z";var Xr,ni,gi,Pi,Ai=0,ti=0,Rn,Cn,Nn,ia,Ea,Ia,yo,Da,go=[];if((Pi=(+Ct.apply(this,arguments)||0)/2)&&(gi=Ne===ku?Math.sqrt(gr*gr+yr*yr):+Ne.apply(this,arguments),bi||(ti*=-1),yr&&(ti=oi(gi/yr*Math.sin(Pi))),gr&&(Ai=oi(gi/gr*Math.sin(Pi)))),yr){Rn=yr*Math.cos(Gr+ti),Cn=yr*Math.sin(Gr+ti),Nn=yr*Math.cos(qr-ti),ia=yr*Math.sin(qr-ti);var Rs=Math.abs(qr-Gr-2*ti)<=$e?0:1;if(ti&&Ac(Rn,Cn,Nn,ia)===bi^Rs){var Es=(Gr+qr)/2;Rn=yr*Math.cos(Es),Cn=yr*Math.sin(Es),Nn=ia=null}}else Rn=Cn=0;if(gr){Ea=gr*Math.cos(qr-Ai),Ia=gr*Math.sin(qr-Ai),yo=gr*Math.cos(Gr+Ai),Da=gr*Math.sin(Gr+Ai);var Zs=Math.abs(Gr-qr+2*Ai)<=$e?0:1;if(Ai&&Ac(Ea,Ia,yo,Da)===1-bi^Zs){var Gn=(Gr+qr)/2;Ea=gr*Math.cos(Gn),Ia=gr*Math.sin(Gn),yo=Da=null}}else Ea=Ia=0;if(_i>Je&&(Xr=Math.min(Math.abs(yr-gr)/2,+Te.apply(this,arguments)))>.001){ni=gr0?0:1}function Ua(X,se,Te,Ne,He){var Ze=X[0]-se[0],Ct=X[1]-se[1],nt=(He?Ne:-Ne)/Math.sqrt(Ze*Ze+Ct*Ct),jt=nt*Ct,gr=-nt*Ze,yr=X[0]+jt,Gr=X[1]+gr,qr=se[0]+jt,_i=se[1]+gr,bi=(yr+qr)/2,Xr=(Gr+_i)/2,ni=qr-yr,gi=_i-Gr,Pi=ni*ni+gi*gi,Ai=Te-Ne,ti=yr*_i-qr*Gr,Rn=(gi<0?-1:1)*Math.sqrt(Math.max(0,Ai*Ai*Pi-ti*ti)),Cn=(ti*gi-ni*Rn)/Pi,Nn=(-ti*ni-gi*Rn)/Pi,ia=(ti*gi+ni*Rn)/Pi,Ea=(-ti*ni+gi*Rn)/Pi,Ia=Cn-bi,yo=Nn-Xr,Da=ia-bi,go=Ea-Xr;return Ia*Ia+yo*yo>Da*Da+go*go&&(Cn=ia,Nn=Ea),[[Cn-jt,Nn-gr],[Cn*Te/Ai,Nn*Te/Ai]]}function oo(){return!0}function Vc(X){var se=Fs,Te=zs,Ne=oo,He=Ku,Ze=He.key,Ct=.7;function nt(jt){var gr=[],yr=[],Gr=-1,qr=jt.length,_i,bi=pi(se),Xr=pi(Te);function ni(){gr.push("M",He(X(yr),Ct))}for(;++Gr1?X.join("L"):X+"Z"}function ue(X){return X.join("L")+"Z"}function w(X){for(var se=0,Te=X.length,Ne=X[0],He=[Ne[0],",",Ne[1]];++se1&&He.push("H",Ne[0]),He.join("")}function B(X){for(var se=0,Te=X.length,Ne=X[0],He=[Ne[0],",",Ne[1]];++se1){nt=se[1],Ze=X[jt],jt++,Ne+="C"+(He[0]+Ct[0])+","+(He[1]+Ct[1])+","+(Ze[0]-nt[0])+","+(Ze[1]-nt[1])+","+Ze[0]+","+Ze[1];for(var gr=2;gr9&&(Ze=Te*3/Math.sqrt(Ze),Ct[nt]=Ze*Ne,Ct[nt+1]=Ze*He));for(nt=-1;++nt<=jt;)Ze=(X[Math.min(jt,nt+1)][0]-X[Math.max(0,nt-1)][0])/(6*(1+Ct[nt]*Ct[nt])),se.push([Ze||0,Ct[nt]*Ze||0]);return se}function Dt(X){return X.length<3?Ku(X):X[0]+Xe(X,it(X))}e.svg.line.radial=function(){var X=Vc(Ht);return X.radius=X.x,delete X.x,X.angle=X.y,delete X.y,X};function Ht(X){for(var se,Te=-1,Ne=X.length,He,Ze;++Te$e)+",1 "+Gr}function gr(yr,Gr,qr,_i){return"Q 0,0 "+_i}return Ze.radius=function(yr){return arguments.length?(Te=pi(yr),Ze):Te},Ze.source=function(yr){return arguments.length?(X=pi(yr),Ze):X},Ze.target=function(yr){return arguments.length?(se=pi(yr),Ze):se},Ze.startAngle=function(yr){return arguments.length?(Ne=pi(yr),Ze):Ne},Ze.endAngle=function(yr){return arguments.length?(He=pi(yr),Ze):He},Ze};function Or(X){return X.radius}e.svg.diagonal=function(){var X=dr,se=Sr,Te=jr;function Ne(He,Ze){var Ct=X.call(this,He,Ze),nt=se.call(this,He,Ze),jt=(Ct.y+nt.y)/2,gr=[Ct,{x:Ct.x,y:jt},{x:nt.x,y:jt},nt];return gr=gr.map(Te),"M"+gr[0]+"C"+gr[1]+" "+gr[2]+" "+gr[3]}return Ne.source=function(He){return arguments.length?(X=pi(He),Ne):X},Ne.target=function(He){return arguments.length?(se=pi(He),Ne):se},Ne.projection=function(He){return arguments.length?(Te=He,Ne):Te},Ne};function jr(X){return[X.x,X.y]}e.svg.diagonal.radial=function(){var X=e.svg.diagonal(),se=jr,Te=X.projection;return X.projection=function(Ne){return arguments.length?Te(ii(se=Ne)):se},X};function ii(X){return function(){var se=X.apply(this,arguments),Te=se[0],Ne=se[1]-xe;return[Te*Math.cos(Ne),Te*Math.sin(Ne)]}}e.svg.symbol=function(){var X=un,se=Li;function Te(Ne,He){return(In.get(X.call(this,Ne,He))||sn)(se.call(this,Ne,He))}return Te.type=function(Ne){return arguments.length?(X=pi(Ne),Te):X},Te.size=function(Ne){return arguments.length?(se=pi(Ne),Te):se},Te};function Li(){return 64}function un(){return"circle"}function sn(X){var se=Math.sqrt(X/$e);return"M0,"+se+"A"+se+","+se+" 0 1,1 0,"+-se+"A"+se+","+se+" 0 1,1 0,"+se+"Z"}var In=e.map({circle:sn,cross:function(X){var se=Math.sqrt(X/5)/2;return"M"+-3*se+","+-se+"H"+-se+"V"+-3*se+"H"+se+"V"+-se+"H"+3*se+"V"+se+"H"+se+"V"+3*se+"H"+-se+"V"+se+"H"+-3*se+"Z"},diamond:function(X){var se=Math.sqrt(X/(2*Aa)),Te=se*Aa;return"M0,"+-se+"L"+Te+",0 0,"+se+" "+-Te+",0Z"},square:function(X){var se=Math.sqrt(X)/2;return"M"+-se+","+-se+"L"+se+","+-se+" "+se+","+se+" "+-se+","+se+"Z"},"triangle-down":function(X){var se=Math.sqrt(X/Kn),Te=se*Kn/2;return"M0,"+Te+"L"+se+","+-Te+" "+-se+","+-Te+"Z"},"triangle-up":function(X){var se=Math.sqrt(X/Kn),Te=se*Kn/2;return"M0,"+-Te+"L"+se+","+Te+" "+-se+","+Te+"Z"}});e.svg.symbolTypes=In.keys();var Kn=Math.sqrt(3),Aa=Math.tan(30*Ce);Pe.transition=function(X){for(var se=Bo||++mo,Te=To(X),Ne=[],He,Ze,Ct=Is||{time:Date.now(),ease:bl,delay:0,duration:250},nt=-1,jt=this.length;++nt0;)Gr[--Pi].call(X,gi);if(ni>=1)return Ct.event&&Ct.event.end.call(X,X.__data__,se),--Ze.count?delete Ze[Ne]:delete X[Te],1}Ct||(nt=He.time,jt=No(qr,0,nt),Ct=Ze[Ne]={tween:new A,time:nt,timer:jt,delay:He.delay,duration:He.duration,ease:He.ease,index:se},He=null,++Ze.count)}e.svg.axis=function(){var X=e.scale.linear(),se=Nl,Te=6,Ne=6,He=3,Ze=[10],Ct=null,nt;function jt(gr){gr.each(function(){var yr=e.select(this),Gr=this.__chart__||X,qr=this.__chart__=X.copy(),_i=Ct==null?qr.ticks?qr.ticks.apply(qr,Ze):qr.domain():Ct,bi=nt==null?qr.tickFormat?qr.tickFormat.apply(qr,Ze):G:nt,Xr=yr.selectAll(".tick").data(_i,qr),ni=Xr.enter().insert("g",".domain").attr("class","tick").style("opacity",Je),gi=e.transition(Xr.exit()).style("opacity",Je).remove(),Pi=e.transition(Xr.order()).style("opacity",1),Ai=Math.max(Te,0)+He,ti,Rn=Tn(qr),Cn=yr.selectAll(".domain").data([0]),Nn=(Cn.enter().append("path").attr("class","domain"),e.transition(Cn));ni.append("line"),ni.append("text");var ia=ni.select("line"),Ea=Pi.select("line"),Ia=Xr.select("text").text(bi),yo=ni.select("text"),Da=Pi.select("text"),go=se==="top"||se==="left"?-1:1,Rs,Es,Zs,Gn;if(se==="bottom"||se==="top"?(ti=ou,Rs="x",Zs="y",Es="x2",Gn="y2",Ia.attr("dy",go<0?"0em":".71em").style("text-anchor","middle"),Nn.attr("d","M"+Rn[0]+","+go*Ne+"V0H"+Rn[1]+"V"+go*Ne)):(ti=$s,Rs="y",Zs="x",Es="y2",Gn="x2",Ia.attr("dy",".32em").style("text-anchor",go<0?"end":"start"),Nn.attr("d","M"+go*Ne+","+Rn[0]+"H0V"+Rn[1]+"H"+go*Ne)),ia.attr(Gn,go*Te),yo.attr(Zs,go*Ai),Ea.attr(Es,0).attr(Gn,go*Te),Da.attr(Rs,0).attr(Zs,go*Ai),qr.rangeBand){var Ha=qr,Fo=Ha.rangeBand()/2;Gr=qr=function(Uo){return Ha(Uo)+Fo}}else Gr.rangeBand?Gr=qr:gi.call(ti,qr,Gr);ni.call(ti,Gr,qr),Pi.call(ti,qr,qr)})}return jt.scale=function(gr){return arguments.length?(X=gr,jt):X},jt.orient=function(gr){return arguments.length?(se=gr in Lu?gr+"":Nl,jt):se},jt.ticks=function(){return arguments.length?(Ze=r(arguments),jt):Ze},jt.tickValues=function(gr){return arguments.length?(Ct=gr,jt):Ct},jt.tickFormat=function(gr){return arguments.length?(nt=gr,jt):nt},jt.tickSize=function(gr){var yr=arguments.length;return yr?(Te=+gr,Ne=+arguments[yr-1],jt):Te},jt.innerTickSize=function(gr){return arguments.length?(Te=+gr,jt):Te},jt.outerTickSize=function(gr){return arguments.length?(Ne=+gr,jt):Ne},jt.tickPadding=function(gr){return arguments.length?(He=+gr,jt):He},jt.tickSubdivide=function(){return arguments.length&&jt},jt};var Nl="bottom",Lu={top:1,right:1,bottom:1,left:1};function ou(X,se,Te){X.attr("transform",function(Ne){var He=se(Ne);return"translate("+(isFinite(He)?He:Te(Ne))+",0)"})}function $s(X,se,Te){X.attr("transform",function(Ne){var He=se(Ne);return"translate(0,"+(isFinite(He)?He:Te(Ne))+")"})}e.svg.brush=function(){var X=ke(yr,"brushstart","brush","brushend"),se=null,Te=null,Ne=[0,0],He=[0,0],Ze,Ct,nt=!0,jt=!0,gr=dc[0];function yr(Xr){Xr.each(function(){var ni=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",bi).on("touchstart.brush",bi),gi=ni.selectAll(".background").data([0]);gi.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ni.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Pi=ni.selectAll(".resize").data(gr,G);Pi.exit().remove(),Pi.enter().append("g").attr("class",function(Cn){return"resize "+Cn}).style("cursor",function(Cn){return Ql[Cn]}).append("rect").attr("x",function(Cn){return/[ew]$/.test(Cn)?-3:null}).attr("y",function(Cn){return/^[ns]/.test(Cn)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Pi.style("display",yr.empty()?"none":null);var Ai=e.transition(ni),ti=e.transition(gi),Rn;se&&(Rn=Tn(se),ti.attr("x",Rn[0]).attr("width",Rn[1]-Rn[0]),qr(Ai)),Te&&(Rn=Tn(Te),ti.attr("y",Rn[0]).attr("height",Rn[1]-Rn[0]),_i(Ai)),Gr(Ai)})}yr.event=function(Xr){Xr.each(function(){var ni=X.of(this,arguments),gi={x:Ne,y:He,i:Ze,j:Ct},Pi=this.__chart__||gi;this.__chart__=gi,Bo?e.select(this).transition().each("start.brush",function(){Ze=Pi.i,Ct=Pi.j,Ne=Pi.x,He=Pi.y,ni({type:"brushstart"})}).tween("brush:brush",function(){var Ai=Gu(Ne,gi.x),ti=Gu(He,gi.y);return Ze=Ct=null,function(Rn){Ne=gi.x=Ai(Rn),He=gi.y=ti(Rn),ni({type:"brush",mode:"resize"})}}).each("end.brush",function(){Ze=gi.i,Ct=gi.j,ni({type:"brush",mode:"resize"}),ni({type:"brushend"})}):(ni({type:"brushstart"}),ni({type:"brush",mode:"resize"}),ni({type:"brushend"}))})};function Gr(Xr){Xr.selectAll(".resize").attr("transform",function(ni){return"translate("+Ne[+/e$/.test(ni)]+","+He[+/^s/.test(ni)]+")"})}function qr(Xr){Xr.select(".extent").attr("x",Ne[0]),Xr.selectAll(".extent,.n>rect,.s>rect").attr("width",Ne[1]-Ne[0])}function _i(Xr){Xr.select(".extent").attr("y",He[0]),Xr.selectAll(".extent,.e>rect,.w>rect").attr("height",He[1]-He[0])}function bi(){var Xr=this,ni=e.select(e.event.target),gi=X.of(Xr,arguments),Pi=e.select(Xr),Ai=ni.datum(),ti=!/^(n|s)$/.test(Ai)&&se,Rn=!/^(e|w)$/.test(Ai)&&Te,Cn=ni.classed("extent"),Nn=Wr(Xr),ia,Ea=e.mouse(Xr),Ia,yo=e.select(a(Xr)).on("keydown.brush",Rs).on("keyup.brush",Es);if(e.event.changedTouches?yo.on("touchmove.brush",Zs).on("touchend.brush",Ha):yo.on("mousemove.brush",Zs).on("mouseup.brush",Ha),Pi.interrupt().selectAll("*").interrupt(),Cn)Ea[0]=Ne[0]-Ea[0],Ea[1]=He[0]-Ea[1];else if(Ai){var Da=+/w$/.test(Ai),go=+/^n/.test(Ai);Ia=[Ne[1-Da]-Ea[0],He[1-go]-Ea[1]],Ea[0]=Ne[Da],Ea[1]=He[go]}else e.event.altKey&&(ia=Ea.slice());Pi.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ni.style("cursor")),gi({type:"brushstart"}),Zs();function Rs(){e.event.keyCode==32&&(Cn||(ia=null,Ea[0]-=Ne[1],Ea[1]-=He[1],Cn=2),_e())}function Es(){e.event.keyCode==32&&Cn==2&&(Ea[0]+=Ne[1],Ea[1]+=He[1],Cn=0,_e())}function Zs(){var Fo=e.mouse(Xr),Uo=!1;Ia&&(Fo[0]+=Ia[0],Fo[1]+=Ia[1]),Cn||(e.event.altKey?(ia||(ia=[(Ne[0]+Ne[1])/2,(He[0]+He[1])/2]),Ea[0]=Ne[+(Fo[0]{(function(e,t){typeof l6=="object"&&typeof vee!="undefined"?t(l6):(e=e||self,t(e.d3=e.d3||{}))})(l6,function(e){"use strict";var t=new Date,r=new Date;function n(Qe,Et,er,Ut){function Ft(bt){return Qe(bt=arguments.length===0?new Date:new Date(+bt)),bt}return Ft.floor=function(bt){return Qe(bt=new Date(+bt)),bt},Ft.ceil=function(bt){return Qe(bt=new Date(bt-1)),Et(bt,1),Qe(bt),bt},Ft.round=function(bt){var yt=Ft(bt),Yt=Ft.ceil(bt);return bt-yt0))return lr;do lr.push(Tr=new Date(+bt)),Et(bt,Yt),Qe(bt);while(Tr=yt)for(;Qe(yt),!bt(yt);)yt.setTime(yt-1)},function(yt,Yt){if(yt>=yt)if(Yt<0)for(;++Yt<=0;)for(;Et(yt,-1),!bt(yt););else for(;--Yt>=0;)for(;Et(yt,1),!bt(yt););})},er&&(Ft.count=function(bt,yt){return t.setTime(+bt),r.setTime(+yt),Qe(t),Qe(r),Math.floor(er(t,r))},Ft.every=function(bt){return bt=Math.floor(bt),!isFinite(bt)||!(bt>0)?null:bt>1?Ft.filter(Ut?function(yt){return Ut(yt)%bt===0}:function(yt){return Ft.count(0,yt)%bt===0}):Ft}),Ft}var i=n(function(){},function(Qe,Et){Qe.setTime(+Qe+Et)},function(Qe,Et){return Et-Qe});i.every=function(Qe){return Qe=Math.floor(Qe),!isFinite(Qe)||!(Qe>0)?null:Qe>1?n(function(Et){Et.setTime(Math.floor(Et/Qe)*Qe)},function(Et,er){Et.setTime(+Et+er*Qe)},function(Et,er){return(er-Et)/Qe}):i};var a=i.range,o=1e3,s=6e4,l=36e5,u=864e5,c=6048e5,f=n(function(Qe){Qe.setTime(Qe-Qe.getMilliseconds())},function(Qe,Et){Qe.setTime(+Qe+Et*o)},function(Qe,Et){return(Et-Qe)/o},function(Qe){return Qe.getUTCSeconds()}),h=f.range,d=n(function(Qe){Qe.setTime(Qe-Qe.getMilliseconds()-Qe.getSeconds()*o)},function(Qe,Et){Qe.setTime(+Qe+Et*s)},function(Qe,Et){return(Et-Qe)/s},function(Qe){return Qe.getMinutes()}),v=d.range,_=n(function(Qe){Qe.setTime(Qe-Qe.getMilliseconds()-Qe.getSeconds()*o-Qe.getMinutes()*s)},function(Qe,Et){Qe.setTime(+Qe+Et*l)},function(Qe,Et){return(Et-Qe)/l},function(Qe){return Qe.getHours()}),b=_.range,p=n(function(Qe){Qe.setHours(0,0,0,0)},function(Qe,Et){Qe.setDate(Qe.getDate()+Et)},function(Qe,Et){return(Et-Qe-(Et.getTimezoneOffset()-Qe.getTimezoneOffset())*s)/u},function(Qe){return Qe.getDate()-1}),C=p.range;function E(Qe){return n(function(Et){Et.setDate(Et.getDate()-(Et.getDay()+7-Qe)%7),Et.setHours(0,0,0,0)},function(Et,er){Et.setDate(Et.getDate()+er*7)},function(Et,er){return(er-Et-(er.getTimezoneOffset()-Et.getTimezoneOffset())*s)/c})}var A=E(0),L=E(1),x=E(2),k=E(3),M=E(4),g=E(5),P=E(6),T=A.range,z=L.range,O=x.range,V=k.range,G=M.range,Z=g.range,H=P.range,N=n(function(Qe){Qe.setDate(1),Qe.setHours(0,0,0,0)},function(Qe,Et){Qe.setMonth(Qe.getMonth()+Et)},function(Qe,Et){return Et.getMonth()-Qe.getMonth()+(Et.getFullYear()-Qe.getFullYear())*12},function(Qe){return Qe.getMonth()}),j=N.range,re=n(function(Qe){Qe.setMonth(0,1),Qe.setHours(0,0,0,0)},function(Qe,Et){Qe.setFullYear(Qe.getFullYear()+Et)},function(Qe,Et){return Et.getFullYear()-Qe.getFullYear()},function(Qe){return Qe.getFullYear()});re.every=function(Qe){return!isFinite(Qe=Math.floor(Qe))||!(Qe>0)?null:n(function(Et){Et.setFullYear(Math.floor(Et.getFullYear()/Qe)*Qe),Et.setMonth(0,1),Et.setHours(0,0,0,0)},function(Et,er){Et.setFullYear(Et.getFullYear()+er*Qe)})};var oe=re.range,_e=n(function(Qe){Qe.setUTCSeconds(0,0)},function(Qe,Et){Qe.setTime(+Qe+Et*s)},function(Qe,Et){return(Et-Qe)/s},function(Qe){return Qe.getUTCMinutes()}),Me=_e.range,ke=n(function(Qe){Qe.setUTCMinutes(0,0,0)},function(Qe,Et){Qe.setTime(+Qe+Et*l)},function(Qe,Et){return(Et-Qe)/l},function(Qe){return Qe.getUTCHours()}),me=ke.range,ie=n(function(Qe){Qe.setUTCHours(0,0,0,0)},function(Qe,Et){Qe.setUTCDate(Qe.getUTCDate()+Et)},function(Qe,Et){return(Et-Qe)/u},function(Qe){return Qe.getUTCDate()-1}),Se=ie.range;function Le(Qe){return n(function(Et){Et.setUTCDate(Et.getUTCDate()-(Et.getUTCDay()+7-Qe)%7),Et.setUTCHours(0,0,0,0)},function(Et,er){Et.setUTCDate(Et.getUTCDate()+er*7)},function(Et,er){return(er-Et)/c})}var Ae=Le(0),De=Le(1),Pe=Le(2),ge=Le(3),Fe=Le(4),ce=Le(5),Ye=Le(6),ct=Ae.range,pt=De.range,Wt=Pe.range,st=ge.range,lt=Fe.range,Gt=ce.range,Nt=Ye.range,$t=n(function(Qe){Qe.setUTCDate(1),Qe.setUTCHours(0,0,0,0)},function(Qe,Et){Qe.setUTCMonth(Qe.getUTCMonth()+Et)},function(Qe,Et){return Et.getUTCMonth()-Qe.getUTCMonth()+(Et.getUTCFullYear()-Qe.getUTCFullYear())*12},function(Qe){return Qe.getUTCMonth()}),sr=$t.range,wr=n(function(Qe){Qe.setUTCMonth(0,1),Qe.setUTCHours(0,0,0,0)},function(Qe,Et){Qe.setUTCFullYear(Qe.getUTCFullYear()+Et)},function(Qe,Et){return Et.getUTCFullYear()-Qe.getUTCFullYear()},function(Qe){return Qe.getUTCFullYear()});wr.every=function(Qe){return!isFinite(Qe=Math.floor(Qe))||!(Qe>0)?null:n(function(Et){Et.setUTCFullYear(Math.floor(Et.getUTCFullYear()/Qe)*Qe),Et.setUTCMonth(0,1),Et.setUTCHours(0,0,0,0)},function(Et,er){Et.setUTCFullYear(Et.getUTCFullYear()+er*Qe)})};var ur=wr.range;e.timeDay=p,e.timeDays=C,e.timeFriday=g,e.timeFridays=Z,e.timeHour=_,e.timeHours=b,e.timeInterval=n,e.timeMillisecond=i,e.timeMilliseconds=a,e.timeMinute=d,e.timeMinutes=v,e.timeMonday=L,e.timeMondays=z,e.timeMonth=N,e.timeMonths=j,e.timeSaturday=P,e.timeSaturdays=H,e.timeSecond=f,e.timeSeconds=h,e.timeSunday=A,e.timeSundays=T,e.timeThursday=M,e.timeThursdays=G,e.timeTuesday=x,e.timeTuesdays=O,e.timeWednesday=k,e.timeWednesdays=V,e.timeWeek=A,e.timeWeeks=T,e.timeYear=re,e.timeYears=oe,e.utcDay=ie,e.utcDays=Se,e.utcFriday=ce,e.utcFridays=Gt,e.utcHour=ke,e.utcHours=me,e.utcMillisecond=i,e.utcMilliseconds=a,e.utcMinute=_e,e.utcMinutes=Me,e.utcMonday=De,e.utcMondays=pt,e.utcMonth=$t,e.utcMonths=sr,e.utcSaturday=Ye,e.utcSaturdays=Nt,e.utcSecond=f,e.utcSeconds=h,e.utcSunday=Ae,e.utcSundays=ct,e.utcThursday=Fe,e.utcThursdays=lt,e.utcTuesday=Pe,e.utcTuesdays=Wt,e.utcWednesday=ge,e.utcWednesdays=st,e.utcWeek=Ae,e.utcWeeks=ct,e.utcYear=wr,e.utcYears=ur,Object.defineProperty(e,"__esModule",{value:!0})})});var e3=ye((u6,pee)=>{(function(e,t){typeof u6=="object"&&typeof pee!="undefined"?t(u6,gO()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(u6,function(e,t){"use strict";function r(Ge){if(0<=Ge.y&&Ge.y<100){var Je=new Date(-1,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L);return Je.setFullYear(Ge.y),Je}return new Date(Ge.y,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L)}function n(Ge){if(0<=Ge.y&&Ge.y<100){var Je=new Date(Date.UTC(-1,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L));return Je.setUTCFullYear(Ge.y),Je}return new Date(Date.UTC(Ge.y,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L))}function i(Ge,Je,je){return{y:Ge,m:Je,d:je,H:0,M:0,S:0,L:0}}function a(Ge){var Je=Ge.dateTime,je=Ge.date,$e=Ge.time,wt=Ge.periods,Ie=Ge.days,xe=Ge.shortDays,Ce=Ge.months,vt=Ge.shortMonths,nr=h(wt),ir=d(wt),pr=h(Ie),oi=d(Ie),di=h(xe),Jr=d(xe),fi=h(Ce),Hi=d(Ce),Pn=h(vt),wn=d(vt),pn={a:Ji,A:en,b:cn,B:yn,c:null,d:N,e:N,f:Me,H:j,I:re,j:oe,L:_e,m:ke,M:me,p:Mn,q:Ba,Q:yt,s:Yt,S:ie,u:Se,U:Le,V:Ae,w:De,W:Pe,x:null,X:null,y:ge,Y:Fe,Z:ce,"%":bt},Vn={a:la,A:ma,b:Wa,B:Fa,c:null,d:Ye,e:Ye,f:lt,H:ct,I:pt,j:Wt,L:st,m:Gt,M:Nt,p:Wo,q:da,Q:yt,s:Yt,S:$t,u:sr,U:wr,V:ur,w:Qe,W:Et,x:null,X:null,y:er,Y:Ut,Z:Ft,"%":bt},kn={a:tr,A:ar,b:Er,B:Zr,c:ri,d:M,e:M,f:V,H:P,I:P,j:g,L:O,m:k,M:T,p:_t,q:x,Q:Z,s:H,S:z,u:_,U:b,V:p,w:v,W:C,x:$r,X:zi,y:A,Y:E,Z:L,"%":G};pn.x=ea(je,pn),pn.X=ea($e,pn),pn.c=ea(Je,pn),Vn.x=ea(je,Vn),Vn.X=ea($e,Vn),Vn.c=ea(Je,Vn);function ea(Wn,Ga){return function(vo){var jn=[],St=-1,Cr=0,Qr=Wn.length,pi,fn,Sn;for(vo instanceof Date||(vo=new Date(+vo));++St53)return null;"w"in jn||(jn.w=1),"Z"in jn?(Cr=n(i(jn.y,0,1)),Qr=Cr.getUTCDay(),Cr=Qr>4||Qr===0?t.utcMonday.ceil(Cr):t.utcMonday(Cr),Cr=t.utcDay.offset(Cr,(jn.V-1)*7),jn.y=Cr.getUTCFullYear(),jn.m=Cr.getUTCMonth(),jn.d=Cr.getUTCDate()+(jn.w+6)%7):(Cr=r(i(jn.y,0,1)),Qr=Cr.getDay(),Cr=Qr>4||Qr===0?t.timeMonday.ceil(Cr):t.timeMonday(Cr),Cr=t.timeDay.offset(Cr,(jn.V-1)*7),jn.y=Cr.getFullYear(),jn.m=Cr.getMonth(),jn.d=Cr.getDate()+(jn.w+6)%7)}else("W"in jn||"U"in jn)&&("w"in jn||(jn.w="u"in jn?jn.u%7:"W"in jn?1:0),Qr="Z"in jn?n(i(jn.y,0,1)).getUTCDay():r(i(jn.y,0,1)).getDay(),jn.m=0,jn.d="W"in jn?(jn.w+6)%7+jn.W*7-(Qr+5)%7:jn.w+jn.U*7-(Qr+6)%7);return"Z"in jn?(jn.H+=jn.Z/100|0,jn.M+=jn.Z%100,n(jn)):r(jn)}}function Vt(Wn,Ga,vo,jn){for(var St=0,Cr=Ga.length,Qr=vo.length,pi,fn;St=Qr)return-1;if(pi=Ga.charCodeAt(St++),pi===37){if(pi=Ga.charAt(St++),fn=kn[pi in o?Ga.charAt(St++):pi],!fn||(jn=fn(Wn,vo,jn))<0)return-1}else if(pi!=vo.charCodeAt(jn++))return-1}return jn}function _t(Wn,Ga,vo){var jn=nr.exec(Ga.slice(vo));return jn?(Wn.p=ir[jn[0].toLowerCase()],vo+jn[0].length):-1}function tr(Wn,Ga,vo){var jn=di.exec(Ga.slice(vo));return jn?(Wn.w=Jr[jn[0].toLowerCase()],vo+jn[0].length):-1}function ar(Wn,Ga,vo){var jn=pr.exec(Ga.slice(vo));return jn?(Wn.w=oi[jn[0].toLowerCase()],vo+jn[0].length):-1}function Er(Wn,Ga,vo){var jn=Pn.exec(Ga.slice(vo));return jn?(Wn.m=wn[jn[0].toLowerCase()],vo+jn[0].length):-1}function Zr(Wn,Ga,vo){var jn=fi.exec(Ga.slice(vo));return jn?(Wn.m=Hi[jn[0].toLowerCase()],vo+jn[0].length):-1}function ri(Wn,Ga,vo){return Vt(Wn,Je,Ga,vo)}function $r(Wn,Ga,vo){return Vt(Wn,je,Ga,vo)}function zi(Wn,Ga,vo){return Vt(Wn,$e,Ga,vo)}function Ji(Wn){return xe[Wn.getDay()]}function en(Wn){return Ie[Wn.getDay()]}function cn(Wn){return vt[Wn.getMonth()]}function yn(Wn){return Ce[Wn.getMonth()]}function Mn(Wn){return wt[+(Wn.getHours()>=12)]}function Ba(Wn){return 1+~~(Wn.getMonth()/3)}function la(Wn){return xe[Wn.getUTCDay()]}function ma(Wn){return Ie[Wn.getUTCDay()]}function Wa(Wn){return vt[Wn.getUTCMonth()]}function Fa(Wn){return Ce[Wn.getUTCMonth()]}function Wo(Wn){return wt[+(Wn.getUTCHours()>=12)]}function da(Wn){return 1+~~(Wn.getUTCMonth()/3)}return{format:function(Wn){var Ga=ea(Wn+="",pn);return Ga.toString=function(){return Wn},Ga},parse:function(Wn){var Ga=ua(Wn+="",!1);return Ga.toString=function(){return Wn},Ga},utcFormat:function(Wn){var Ga=ea(Wn+="",Vn);return Ga.toString=function(){return Wn},Ga},utcParse:function(Wn){var Ga=ua(Wn+="",!0);return Ga.toString=function(){return Wn},Ga}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,l=/^%/,u=/[\\^$*+?|[\]().{}]/g;function c(Ge,Je,je){var $e=Ge<0?"-":"",wt=($e?-Ge:Ge)+"",Ie=wt.length;return $e+(Ie68?1900:2e3),je+$e[0].length):-1}function L(Ge,Je,je){var $e=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Je.slice(je,je+6));return $e?(Ge.Z=$e[1]?0:-($e[2]+($e[3]||"00")),je+$e[0].length):-1}function x(Ge,Je,je){var $e=s.exec(Je.slice(je,je+1));return $e?(Ge.q=$e[0]*3-3,je+$e[0].length):-1}function k(Ge,Je,je){var $e=s.exec(Je.slice(je,je+2));return $e?(Ge.m=$e[0]-1,je+$e[0].length):-1}function M(Ge,Je,je){var $e=s.exec(Je.slice(je,je+2));return $e?(Ge.d=+$e[0],je+$e[0].length):-1}function g(Ge,Je,je){var $e=s.exec(Je.slice(je,je+3));return $e?(Ge.m=0,Ge.d=+$e[0],je+$e[0].length):-1}function P(Ge,Je,je){var $e=s.exec(Je.slice(je,je+2));return $e?(Ge.H=+$e[0],je+$e[0].length):-1}function T(Ge,Je,je){var $e=s.exec(Je.slice(je,je+2));return $e?(Ge.M=+$e[0],je+$e[0].length):-1}function z(Ge,Je,je){var $e=s.exec(Je.slice(je,je+2));return $e?(Ge.S=+$e[0],je+$e[0].length):-1}function O(Ge,Je,je){var $e=s.exec(Je.slice(je,je+3));return $e?(Ge.L=+$e[0],je+$e[0].length):-1}function V(Ge,Je,je){var $e=s.exec(Je.slice(je,je+6));return $e?(Ge.L=Math.floor($e[0]/1e3),je+$e[0].length):-1}function G(Ge,Je,je){var $e=l.exec(Je.slice(je,je+1));return $e?je+$e[0].length:-1}function Z(Ge,Je,je){var $e=s.exec(Je.slice(je));return $e?(Ge.Q=+$e[0],je+$e[0].length):-1}function H(Ge,Je,je){var $e=s.exec(Je.slice(je));return $e?(Ge.s=+$e[0],je+$e[0].length):-1}function N(Ge,Je){return c(Ge.getDate(),Je,2)}function j(Ge,Je){return c(Ge.getHours(),Je,2)}function re(Ge,Je){return c(Ge.getHours()%12||12,Je,2)}function oe(Ge,Je){return c(1+t.timeDay.count(t.timeYear(Ge),Ge),Je,3)}function _e(Ge,Je){return c(Ge.getMilliseconds(),Je,3)}function Me(Ge,Je){return _e(Ge,Je)+"000"}function ke(Ge,Je){return c(Ge.getMonth()+1,Je,2)}function me(Ge,Je){return c(Ge.getMinutes(),Je,2)}function ie(Ge,Je){return c(Ge.getSeconds(),Je,2)}function Se(Ge){var Je=Ge.getDay();return Je===0?7:Je}function Le(Ge,Je){return c(t.timeSunday.count(t.timeYear(Ge)-1,Ge),Je,2)}function Ae(Ge,Je){var je=Ge.getDay();return Ge=je>=4||je===0?t.timeThursday(Ge):t.timeThursday.ceil(Ge),c(t.timeThursday.count(t.timeYear(Ge),Ge)+(t.timeYear(Ge).getDay()===4),Je,2)}function De(Ge){return Ge.getDay()}function Pe(Ge,Je){return c(t.timeMonday.count(t.timeYear(Ge)-1,Ge),Je,2)}function ge(Ge,Je){return c(Ge.getFullYear()%100,Je,2)}function Fe(Ge,Je){return c(Ge.getFullYear()%1e4,Je,4)}function ce(Ge){var Je=Ge.getTimezoneOffset();return(Je>0?"-":(Je*=-1,"+"))+c(Je/60|0,"0",2)+c(Je%60,"0",2)}function Ye(Ge,Je){return c(Ge.getUTCDate(),Je,2)}function ct(Ge,Je){return c(Ge.getUTCHours(),Je,2)}function pt(Ge,Je){return c(Ge.getUTCHours()%12||12,Je,2)}function Wt(Ge,Je){return c(1+t.utcDay.count(t.utcYear(Ge),Ge),Je,3)}function st(Ge,Je){return c(Ge.getUTCMilliseconds(),Je,3)}function lt(Ge,Je){return st(Ge,Je)+"000"}function Gt(Ge,Je){return c(Ge.getUTCMonth()+1,Je,2)}function Nt(Ge,Je){return c(Ge.getUTCMinutes(),Je,2)}function $t(Ge,Je){return c(Ge.getUTCSeconds(),Je,2)}function sr(Ge){var Je=Ge.getUTCDay();return Je===0?7:Je}function wr(Ge,Je){return c(t.utcSunday.count(t.utcYear(Ge)-1,Ge),Je,2)}function ur(Ge,Je){var je=Ge.getUTCDay();return Ge=je>=4||je===0?t.utcThursday(Ge):t.utcThursday.ceil(Ge),c(t.utcThursday.count(t.utcYear(Ge),Ge)+(t.utcYear(Ge).getUTCDay()===4),Je,2)}function Qe(Ge){return Ge.getUTCDay()}function Et(Ge,Je){return c(t.utcMonday.count(t.utcYear(Ge)-1,Ge),Je,2)}function er(Ge,Je){return c(Ge.getUTCFullYear()%100,Je,2)}function Ut(Ge,Je){return c(Ge.getUTCFullYear()%1e4,Je,4)}function Ft(){return"+0000"}function bt(){return"%"}function yt(Ge){return+Ge}function Yt(Ge){return Math.floor(+Ge/1e3)}var lr;Tr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Tr(Ge){return lr=a(Ge),e.timeFormat=lr.format,e.timeParse=lr.parse,e.utcFormat=lr.utcFormat,e.utcParse=lr.utcParse,lr}var Rr="%Y-%m-%dT%H:%M:%S.%LZ";function ei(Ge){return Ge.toISOString()}var Wr=Date.prototype.toISOString?ei:e.utcFormat(Rr);function Ur(Ge){var Je=new Date(Ge);return isNaN(Je)?null:Je}var dt=+new Date("2000-01-01T00:00:00.000Z")?Ur:e.utcParse(Rr);e.isoFormat=Wr,e.isoParse=dt,e.timeFormatDefaultLocale=Tr,e.timeFormatLocale=a,Object.defineProperty(e,"__esModule",{value:!0})})});var mO=ye((c6,gee)=>{(function(e,t){typeof c6=="object"&&typeof gee!="undefined"?t(c6):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(c6,function(e){"use strict";function t(k){return Math.abs(k=Math.round(k))>=1e21?k.toLocaleString("en").replace(/,/g,""):k.toString(10)}function r(k,M){if((g=(k=M?k.toExponential(M-1):k.toExponential()).indexOf("e"))<0)return null;var g,P=k.slice(0,g);return[P.length>1?P[0]+P.slice(2):P,+k.slice(g+1)]}function n(k){return k=r(Math.abs(k)),k?k[1]:NaN}function i(k,M){return function(g,P){for(var T=g.length,z=[],O=0,V=k[0],G=0;T>0&&V>0&&(G+V+1>P&&(V=Math.max(1,P-G)),z.push(g.substring(T-=V,T+V)),!((G+=V+1)>P));)V=k[O=(O+1)%k.length];return z.reverse().join(M)}}function a(k){return function(M){return M.replace(/[0-9]/g,function(g){return k[+g]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(k){if(!(M=o.exec(k)))throw new Error("invalid format: "+k);var M;return new l({fill:M[1],align:M[2],sign:M[3],symbol:M[4],zero:M[5],width:M[6],comma:M[7],precision:M[8]&&M[8].slice(1),trim:M[9],type:M[10]})}s.prototype=l.prototype;function l(k){this.fill=k.fill===void 0?" ":k.fill+"",this.align=k.align===void 0?">":k.align+"",this.sign=k.sign===void 0?"-":k.sign+"",this.symbol=k.symbol===void 0?"":k.symbol+"",this.zero=!!k.zero,this.width=k.width===void 0?void 0:+k.width,this.comma=!!k.comma,this.precision=k.precision===void 0?void 0:+k.precision,this.trim=!!k.trim,this.type=k.type===void 0?"":k.type+""}l.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(k){e:for(var M=k.length,g=1,P=-1,T;g0&&(P=0);break}return P>0?k.slice(0,P)+k.slice(T+1):k}var c;function f(k,M){var g=r(k,M);if(!g)return k+"";var P=g[0],T=g[1],z=T-(c=Math.max(-8,Math.min(8,Math.floor(T/3)))*3)+1,O=P.length;return z===O?P:z>O?P+new Array(z-O+1).join("0"):z>0?P.slice(0,z)+"."+P.slice(z):"0."+new Array(1-z).join("0")+r(k,Math.max(0,M+z-1))[0]}function h(k,M){var g=r(k,M);if(!g)return k+"";var P=g[0],T=g[1];return T<0?"0."+new Array(-T).join("0")+P:P.length>T+1?P.slice(0,T+1)+"."+P.slice(T+1):P+new Array(T-P.length+2).join("0")}var d={"%":function(k,M){return(k*100).toFixed(M)},b:function(k){return Math.round(k).toString(2)},c:function(k){return k+""},d:t,e:function(k,M){return k.toExponential(M)},f:function(k,M){return k.toFixed(M)},g:function(k,M){return k.toPrecision(M)},o:function(k){return Math.round(k).toString(8)},p:function(k,M){return h(k*100,M)},r:h,s:f,X:function(k){return Math.round(k).toString(16).toUpperCase()},x:function(k){return Math.round(k).toString(16)}};function v(k){return k}var _=Array.prototype.map,b=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function p(k){var M=k.grouping===void 0||k.thousands===void 0?v:i(_.call(k.grouping,Number),k.thousands+""),g=k.currency===void 0?"":k.currency[0]+"",P=k.currency===void 0?"":k.currency[1]+"",T=k.decimal===void 0?".":k.decimal+"",z=k.numerals===void 0?v:a(_.call(k.numerals,String)),O=k.percent===void 0?"%":k.percent+"",V=k.minus===void 0?"-":k.minus+"",G=k.nan===void 0?"NaN":k.nan+"";function Z(N){N=s(N);var j=N.fill,re=N.align,oe=N.sign,_e=N.symbol,Me=N.zero,ke=N.width,me=N.comma,ie=N.precision,Se=N.trim,Le=N.type;Le==="n"?(me=!0,Le="g"):d[Le]||(ie===void 0&&(ie=12),Se=!0,Le="g"),(Me||j==="0"&&re==="=")&&(Me=!0,j="0",re="=");var Ae=_e==="$"?g:_e==="#"&&/[boxX]/.test(Le)?"0"+Le.toLowerCase():"",De=_e==="$"?P:/[%p]/.test(Le)?O:"",Pe=d[Le],ge=/[defgprs%]/.test(Le);ie=ie===void 0?6:/[gprs]/.test(Le)?Math.max(1,Math.min(21,ie)):Math.max(0,Math.min(20,ie));function Fe(ce){var Ye=Ae,ct=De,pt,Wt,st;if(Le==="c")ct=Pe(ce)+ct,ce="";else{ce=+ce;var lt=ce<0||1/ce<0;if(ce=isNaN(ce)?G:Pe(Math.abs(ce),ie),Se&&(ce=u(ce)),lt&&+ce==0&&oe!=="+"&&(lt=!1),Ye=(lt?oe==="("?oe:V:oe==="-"||oe==="("?"":oe)+Ye,ct=(Le==="s"?b[8+c/3]:"")+ct+(lt&&oe==="("?")":""),ge){for(pt=-1,Wt=ce.length;++ptst||st>57){ct=(st===46?T+ce.slice(pt+1):ce.slice(pt))+ct,ce=ce.slice(0,pt);break}}}me&&!Me&&(ce=M(ce,1/0));var Gt=Ye.length+ce.length+ct.length,Nt=Gt>1)+Ye+ce+ct+Nt.slice(Gt);break;default:ce=Nt+Ye+ce+ct;break}return z(ce)}return Fe.toString=function(){return N+""},Fe}function H(N,j){var re=Z((N=s(N),N.type="f",N)),oe=Math.max(-8,Math.min(8,Math.floor(n(j)/3)))*3,_e=Math.pow(10,-oe),Me=b[8+oe/3];return function(ke){return re(_e*ke)+Me}}return{format:Z,formatPrefix:H}}var C;E({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function E(k){return C=p(k),e.format=C.format,e.formatPrefix=C.formatPrefix,C}function A(k){return Math.max(0,-n(Math.abs(k)))}function L(k,M){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(M)/3)))*3-n(Math.abs(k)))}function x(k,M){return k=Math.abs(k),M=Math.abs(M)-k,Math.max(0,n(M)-n(k))+1}e.FormatSpecifier=l,e.formatDefaultLocale=E,e.formatLocale=p,e.formatSpecifier=s,e.precisionFixed=A,e.precisionPrefix=L,e.precisionRound=x,Object.defineProperty(e,"__esModule",{value:!0})})});var yee=ye((ttr,mee)=>{"use strict";mee.exports=function(e){for(var t=e.length,r,n=0;n13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var Eo=ye((rtr,_ee)=>{"use strict";var Xet=yee();_ee.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&Xet(r))return!1}else if(t!=="number")return!1;return e-e<1}});var hs=ye((itr,xee)=>{"use strict";xee.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var yO=ye((f6,bee)=>{(function(e,t){typeof f6=="object"&&typeof bee!="undefined"?t(f6):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(f6,function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],c+=t[(s[l]&3)<<4|s[l+1]>>4],c+=t[(s[l+1]&15)<<2|s[l+2]>>6],c+=t[s[l+2]&63];return u%3===2?c=c.substring(0,c.length-1)+"=":u%3===1&&(c=c.substring(0,c.length-2)+"=="),c},a=function(o){var s=o.length*.75,l=o.length,u,c=0,f,h,d,v;o[o.length-1]==="="&&(s--,o[o.length-2]==="="&&s--);var _=new ArrayBuffer(s),b=new Uint8Array(_);for(u=0;u>4,b[c++]=(h&15)<<4|d>>2,b[c++]=(d&3)<<6|v&63;return _};e.decode=a,e.encode=i,Object.defineProperty(e,"__esModule",{value:!0})})});var gy=ye((ntr,wee)=>{"use strict";wee.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var vv=ye(mg=>{"use strict";var Zet=yO().decode,Yet=gy(),_O=Array.isArray,Ket=ArrayBuffer,Jet=DataView;function Tee(e){return Ket.isView(e)&&!(e instanceof Jet)}mg.isTypedArray=Tee;function h6(e){return _O(e)||Tee(e)}mg.isArrayOrTypedArray=h6;function $et(e){return!h6(e[0])}mg.isArray1D=$et;mg.ensureArray=function(e,t){return _O(e)||(e=[]),e.length=t,e};var Ld={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Ld.uint8c=Ld.u1c;Ld.uint8=Ld.u1;Ld.int8=Ld.i1;Ld.uint16=Ld.u2;Ld.int16=Ld.i2;Ld.uint32=Ld.u4;Ld.int32=Ld.i4;Ld.float32=Ld.f4;Ld.float64=Ld.f8;function xO(e){return e.constructor===ArrayBuffer}mg.isArrayBuffer=xO;mg.decodeTypedArraySpec=function(e){var t=[],r=Qet(e),n=r.dtype,i=Ld[n];if(!i)throw new Error('Error in dtype: "'+n+'"');var a=i.BYTES_PER_ELEMENT,o=r.bdata;xO(o)||(o=Zet(o));var s=r.shape===void 0?[o.byteLength/a]:(""+r.shape).split(",");s.reverse();var l=s.length,u,c,f=+s[0],h=a*f,d=0;if(l===1)t=new i(o);else if(l===2)for(u=+s[1],c=0;c{"use strict";var See=Eo(),wO=vv().isArrayOrTypedArray;kee.exports=function(t,r){if(See(r))r=String(r);else if(typeof r!="string"||r.substr(r.length-4)==="[-1]")throw"bad property string";var n=r.split("."),i,a,o,s;for(s=0;s{"use strict";var t3=CS(),ntt=/^\w*$/,att=0,Lee=1,d6=2,Pee=3,ob=4;Iee.exports=function(t,r,n,i){n=n||"name",i=i||"value";var a,o,s,l={};r&&r.length?(s=t3(t,r),o=s.get()):o=t,r=r||"";var u={};if(o)for(a=0;a2)return l[d]=l[d]|d6,f.set(h,null);if(c){for(a=d;a{"use strict";var ott=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,stt=/^[^\.\[\]]+$/;Dee.exports=function(e,t){for(;t;){var r=e.match(ott);if(r)e=r[1];else if(e.match(stt))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var v6=ye((utr,zee)=>{"use strict";var ltt=Eo();zee.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var n=Math.log(Math.min(r[0],r[1]))/Math.LN10;return ltt(n)||(n=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),n}});var Bee=ye((ctr,qee)=>{"use strict";var Oee=vv().isArrayOrTypedArray,kS=gy();qee.exports=function e(t,r){for(var n in r){var i=r[n],a=t[n];if(a!==i)if(n.charAt(0)==="_"||typeof i=="function"){if(n in t)continue;t[n]=i}else if(Oee(i)&&Oee(a)&&kS(i[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(i.length,a.length),s=0;s{"use strict";function utt(e,t){var r=e%t;return r<0?r+t:r}function ctt(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}Nee.exports={mod:utt,modHalf:ctt}});var cd=ye((htr,p6)=>{(function(e){var t=/^\s+/,r=/\s+$/,n=0,i=e.round,a=e.min,o=e.max,s=e.random;function l(ge,Fe){if(ge=ge||"",Fe=Fe||{},ge instanceof l)return ge;if(!(this instanceof l))return new l(ge,Fe);var ce=u(ge);this._originalInput=ge,this._r=ce.r,this._g=ce.g,this._b=ce.b,this._a=ce.a,this._roundA=i(100*this._a)/100,this._format=Fe.format||ce.format,this._gradientType=Fe.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=ce.ok,this._tc_id=n++}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ge=this.toRgb();return(ge.r*299+ge.g*587+ge.b*114)/1e3},getLuminance:function(){var ge=this.toRgb(),Fe,ce,Ye,ct,pt,Wt;return Fe=ge.r/255,ce=ge.g/255,Ye=ge.b/255,Fe<=.03928?ct=Fe/12.92:ct=e.pow((Fe+.055)/1.055,2.4),ce<=.03928?pt=ce/12.92:pt=e.pow((ce+.055)/1.055,2.4),Ye<=.03928?Wt=Ye/12.92:Wt=e.pow((Ye+.055)/1.055,2.4),.2126*ct+.7152*pt+.0722*Wt},setAlpha:function(ge){return this._a=N(ge),this._roundA=i(100*this._a)/100,this},toHsv:function(){var ge=d(this._r,this._g,this._b);return{h:ge.h*360,s:ge.s,v:ge.v,a:this._a}},toHsvString:function(){var ge=d(this._r,this._g,this._b),Fe=i(ge.h*360),ce=i(ge.s*100),Ye=i(ge.v*100);return this._a==1?"hsv("+Fe+", "+ce+"%, "+Ye+"%)":"hsva("+Fe+", "+ce+"%, "+Ye+"%, "+this._roundA+")"},toHsl:function(){var ge=f(this._r,this._g,this._b);return{h:ge.h*360,s:ge.s,l:ge.l,a:this._a}},toHslString:function(){var ge=f(this._r,this._g,this._b),Fe=i(ge.h*360),ce=i(ge.s*100),Ye=i(ge.l*100);return this._a==1?"hsl("+Fe+", "+ce+"%, "+Ye+"%)":"hsla("+Fe+", "+ce+"%, "+Ye+"%, "+this._roundA+")"},toHex:function(ge){return _(this._r,this._g,this._b,ge)},toHexString:function(ge){return"#"+this.toHex(ge)},toHex8:function(ge){return b(this._r,this._g,this._b,this._a,ge)},toHex8String:function(ge){return"#"+this.toHex8(ge)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(j(this._r,255)*100)+"%",g:i(j(this._g,255)*100)+"%",b:i(j(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(j(this._r,255)*100)+"%, "+i(j(this._g,255)*100)+"%, "+i(j(this._b,255)*100)+"%)":"rgba("+i(j(this._r,255)*100)+"%, "+i(j(this._g,255)*100)+"%, "+i(j(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Z[_(this._r,this._g,this._b,!0)]||!1},toFilter:function(ge){var Fe="#"+p(this._r,this._g,this._b,this._a),ce=Fe,Ye=this._gradientType?"GradientType = 1, ":"";if(ge){var ct=l(ge);ce="#"+p(ct._r,ct._g,ct._b,ct._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ye+"startColorstr="+Fe+",endColorstr="+ce+")"},toString:function(ge){var Fe=!!ge;ge=ge||this._format;var ce=!1,Ye=this._a<1&&this._a>=0,ct=!Fe&&Ye&&(ge==="hex"||ge==="hex6"||ge==="hex3"||ge==="hex4"||ge==="hex8"||ge==="name");return ct?ge==="name"&&this._a===0?this.toName():this.toRgbString():(ge==="rgb"&&(ce=this.toRgbString()),ge==="prgb"&&(ce=this.toPercentageRgbString()),(ge==="hex"||ge==="hex6")&&(ce=this.toHexString()),ge==="hex3"&&(ce=this.toHexString(!0)),ge==="hex4"&&(ce=this.toHex8String(!0)),ge==="hex8"&&(ce=this.toHex8String()),ge==="name"&&(ce=this.toName()),ge==="hsl"&&(ce=this.toHslString()),ge==="hsv"&&(ce=this.toHsvString()),ce||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(ge,Fe){var ce=ge.apply(null,[this].concat([].slice.call(Fe)));return this._r=ce._r,this._g=ce._g,this._b=ce._b,this.setAlpha(ce._a),this},lighten:function(){return this._applyModification(L,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(E,arguments)},greyscale:function(){return this._applyModification(A,arguments)},spin:function(){return this._applyModification(M,arguments)},_applyCombination:function(ge,Fe){return ge.apply(null,[this].concat([].slice.call(Fe)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(g,arguments)},monochromatic:function(){return this._applyCombination(V,arguments)},splitcomplement:function(){return this._applyCombination(z,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},l.fromRatio=function(ge,Fe){if(typeof ge=="object"){var ce={};for(var Ye in ge)ge.hasOwnProperty(Ye)&&(Ye==="a"?ce[Ye]=ge[Ye]:ce[Ye]=me(ge[Ye]));ge=ce}return l(ge,Fe)};function u(ge){var Fe={r:0,g:0,b:0},ce=1,Ye=null,ct=null,pt=null,Wt=!1,st=!1;return typeof ge=="string"&&(ge=De(ge)),typeof ge=="object"&&(Ae(ge.r)&&Ae(ge.g)&&Ae(ge.b)?(Fe=c(ge.r,ge.g,ge.b),Wt=!0,st=String(ge.r).substr(-1)==="%"?"prgb":"rgb"):Ae(ge.h)&&Ae(ge.s)&&Ae(ge.v)?(Ye=me(ge.s),ct=me(ge.v),Fe=v(ge.h,Ye,ct),Wt=!0,st="hsv"):Ae(ge.h)&&Ae(ge.s)&&Ae(ge.l)&&(Ye=me(ge.s),pt=me(ge.l),Fe=h(ge.h,Ye,pt),Wt=!0,st="hsl"),ge.hasOwnProperty("a")&&(ce=ge.a)),ce=N(ce),{ok:Wt,format:ge.format||st,r:a(255,o(Fe.r,0)),g:a(255,o(Fe.g,0)),b:a(255,o(Fe.b,0)),a:ce}}function c(ge,Fe,ce){return{r:j(ge,255)*255,g:j(Fe,255)*255,b:j(ce,255)*255}}function f(ge,Fe,ce){ge=j(ge,255),Fe=j(Fe,255),ce=j(ce,255);var Ye=o(ge,Fe,ce),ct=a(ge,Fe,ce),pt,Wt,st=(Ye+ct)/2;if(Ye==ct)pt=Wt=0;else{var lt=Ye-ct;switch(Wt=st>.5?lt/(2-Ye-ct):lt/(Ye+ct),Ye){case ge:pt=(Fe-ce)/lt+(Fe1&&($t-=1),$t<1/6?Gt+(Nt-Gt)*6*$t:$t<1/2?Nt:$t<2/3?Gt+(Nt-Gt)*(2/3-$t)*6:Gt}if(Fe===0)Ye=ct=pt=ce;else{var st=ce<.5?ce*(1+Fe):ce+Fe-ce*Fe,lt=2*ce-st;Ye=Wt(lt,st,ge+1/3),ct=Wt(lt,st,ge),pt=Wt(lt,st,ge-1/3)}return{r:Ye*255,g:ct*255,b:pt*255}}function d(ge,Fe,ce){ge=j(ge,255),Fe=j(Fe,255),ce=j(ce,255);var Ye=o(ge,Fe,ce),ct=a(ge,Fe,ce),pt,Wt,st=Ye,lt=Ye-ct;if(Wt=Ye===0?0:lt/Ye,Ye==ct)pt=0;else{switch(Ye){case ge:pt=(Fe-ce)/lt+(Fe>1)+720)%360;--Fe;)Ye.h=(Ye.h+ct)%360,pt.push(l(Ye));return pt}function V(ge,Fe){Fe=Fe||6;for(var ce=l(ge).toHsv(),Ye=ce.h,ct=ce.s,pt=ce.v,Wt=[],st=1/Fe;Fe--;)Wt.push(l({h:Ye,s:ct,v:pt})),pt=(pt+st)%1;return Wt}l.mix=function(ge,Fe,ce){ce=ce===0?0:ce||50;var Ye=l(ge).toRgb(),ct=l(Fe).toRgb(),pt=ce/100,Wt={r:(ct.r-Ye.r)*pt+Ye.r,g:(ct.g-Ye.g)*pt+Ye.g,b:(ct.b-Ye.b)*pt+Ye.b,a:(ct.a-Ye.a)*pt+Ye.a};return l(Wt)},l.readability=function(ge,Fe){var ce=l(ge),Ye=l(Fe);return(e.max(ce.getLuminance(),Ye.getLuminance())+.05)/(e.min(ce.getLuminance(),Ye.getLuminance())+.05)},l.isReadable=function(ge,Fe,ce){var Ye=l.readability(ge,Fe),ct,pt;switch(pt=!1,ct=Pe(ce),ct.level+ct.size){case"AAsmall":case"AAAlarge":pt=Ye>=4.5;break;case"AAlarge":pt=Ye>=3;break;case"AAAsmall":pt=Ye>=7;break}return pt},l.mostReadable=function(ge,Fe,ce){var Ye=null,ct=0,pt,Wt,st,lt;ce=ce||{},Wt=ce.includeFallbackColors,st=ce.level,lt=ce.size;for(var Gt=0;Gtct&&(ct=pt,Ye=l(Fe[Gt]));return l.isReadable(ge,Ye,{level:st,size:lt})||!Wt?Ye:(ce.includeFallbackColors=!1,l.mostReadable(ge,["#fff","#000"],ce))};var G=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Z=l.hexNames=H(G);function H(ge){var Fe={};for(var ce in ge)ge.hasOwnProperty(ce)&&(Fe[ge[ce]]=ce);return Fe}function N(ge){return ge=parseFloat(ge),(isNaN(ge)||ge<0||ge>1)&&(ge=1),ge}function j(ge,Fe){_e(ge)&&(ge="100%");var ce=Me(ge);return ge=a(Fe,o(0,parseFloat(ge))),ce&&(ge=parseInt(ge*Fe,10)/100),e.abs(ge-Fe)<1e-6?1:ge%Fe/parseFloat(Fe)}function re(ge){return a(1,o(0,ge))}function oe(ge){return parseInt(ge,16)}function _e(ge){return typeof ge=="string"&&ge.indexOf(".")!=-1&&parseFloat(ge)===1}function Me(ge){return typeof ge=="string"&&ge.indexOf("%")!=-1}function ke(ge){return ge.length==1?"0"+ge:""+ge}function me(ge){return ge<=1&&(ge=ge*100+"%"),ge}function ie(ge){return e.round(parseFloat(ge)*255).toString(16)}function Se(ge){return oe(ge)/255}var Le=function(){var ge="[-\\+]?\\d+%?",Fe="[-\\+]?\\d*\\.\\d+%?",ce="(?:"+Fe+")|(?:"+ge+")",Ye="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?",ct="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?";return{CSS_UNIT:new RegExp(ce),rgb:new RegExp("rgb"+Ye),rgba:new RegExp("rgba"+ct),hsl:new RegExp("hsl"+Ye),hsla:new RegExp("hsla"+ct),hsv:new RegExp("hsv"+Ye),hsva:new RegExp("hsva"+ct),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ae(ge){return!!Le.CSS_UNIT.exec(ge)}function De(ge){ge=ge.replace(t,"").replace(r,"").toLowerCase();var Fe=!1;if(G[ge])ge=G[ge],Fe=!0;else if(ge=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ce;return(ce=Le.rgb.exec(ge))?{r:ce[1],g:ce[2],b:ce[3]}:(ce=Le.rgba.exec(ge))?{r:ce[1],g:ce[2],b:ce[3],a:ce[4]}:(ce=Le.hsl.exec(ge))?{h:ce[1],s:ce[2],l:ce[3]}:(ce=Le.hsla.exec(ge))?{h:ce[1],s:ce[2],l:ce[3],a:ce[4]}:(ce=Le.hsv.exec(ge))?{h:ce[1],s:ce[2],v:ce[3]}:(ce=Le.hsva.exec(ge))?{h:ce[1],s:ce[2],v:ce[3],a:ce[4]}:(ce=Le.hex8.exec(ge))?{r:oe(ce[1]),g:oe(ce[2]),b:oe(ce[3]),a:Se(ce[4]),format:Fe?"name":"hex8"}:(ce=Le.hex6.exec(ge))?{r:oe(ce[1]),g:oe(ce[2]),b:oe(ce[3]),format:Fe?"name":"hex"}:(ce=Le.hex4.exec(ge))?{r:oe(ce[1]+""+ce[1]),g:oe(ce[2]+""+ce[2]),b:oe(ce[3]+""+ce[3]),a:Se(ce[4]+""+ce[4]),format:Fe?"name":"hex8"}:(ce=Le.hex3.exec(ge))?{r:oe(ce[1]+""+ce[1]),g:oe(ce[2]+""+ce[2]),b:oe(ce[3]+""+ce[3]),format:Fe?"name":"hex"}:!1}function Pe(ge){var Fe,ce;return ge=ge||{level:"AA",size:"small"},Fe=(ge.level||"AA").toUpperCase(),ce=(ge.size||"small").toLowerCase(),Fe!=="AA"&&Fe!=="AAA"&&(Fe="AA"),ce!=="small"&&ce!=="large"&&(ce="small"),{level:Fe,size:ce}}typeof p6!="undefined"&&p6.exports?p6.exports=l:window.tinycolor=l})(Math)});var Ao=ye(IS=>{"use strict";var Uee=gy(),LS=Array.isArray;function ftt(e,t){var r,n;for(r=0;r{"use strict";Vee.exports=function(e){var t=e.variantValues,r=e.editType,n=e.colorEditType;n===void 0&&(n=r);var i={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(i.valType="enumerated",i.values=i.extras,i.extras=void 0,i.min=void 0,i.max=void 0);var a={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:n},weight:i,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(a.size.dflt="auto"),e.autoColor&&(a.color.dflt="auto"),e.arrayOk&&(a.family.arrayOk=!0,a.weight.arrayOk=!0,a.style.arrayOk=!0,e.noFontVariant||(a.variant.arrayOk=!0),e.noFontTextcase||(a.textcase.arrayOk=!0),e.noFontLineposition||(a.lineposition.arrayOk=!0),e.noFontShadow||(a.shadow.arrayOk=!0),a.size.arrayOk=!0,a.color.arrayOk=!0),a}});var RS=ye((ptr,Gee)=>{"use strict";Gee.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var N1=ye((gtr,Wee)=>{"use strict";var Hee=RS(),jee=ec(),TO=jee({editType:"none"});TO.family.dflt=Hee.HOVERFONT;TO.size.dflt=Hee.HOVERFONTSIZE;Wee.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:TO,grouptitlefont:jee({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var i3=ye((mtr,Xee)=>{"use strict";var htt=ec(),DS=N1().hoverlabel,FS=Ao().extendFlat;Xee.exports={hoverlabel:{bgcolor:FS({},DS.bgcolor,{arrayOk:!0}),bordercolor:FS({},DS.bordercolor,{arrayOk:!0}),font:htt({arrayOk:!0,editType:"none"}),align:FS({},DS.align,{arrayOk:!0}),namelength:FS({},DS.namelength,{arrayOk:!0}),showarrow:FS({},DS.showarrow),editType:"none"}}});var Vl=ye((ytr,Zee)=>{"use strict";var dtt=ec(),vtt=i3();Zee.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:dtt({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:vtt.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var sb=ye((_tr,Jee)=>{"use strict";var ptt=cd(),g6={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},Yee=g6.RdBu;function gtt(e,t){if(t||(t=Yee),!e)return t;function r(){try{e=g6[e]||JSON.parse(e)}catch(n){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),Kee(e)?e:t}function Kee(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;r{"use strict";lb.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];lb.defaultLine="#444";lb.lightLine="#eee";lb.background="#fff";lb.borderLine="#BEC8D9";lb.lightFraction=100*10/11});var Ca=ye((btr,$ee)=>{"use strict";var _p=cd(),ytt=Eo(),_tt=vv().isTypedArray,fd=$ee.exports={},m6=Eh();fd.defaults=m6.defaults;var xtt=fd.defaultLine=m6.defaultLine;fd.lightLine=m6.lightLine;var SO=fd.background=m6.background;fd.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"};fd.rgb=function(e){return fd.tinyRGB(_p(e))};fd.opacity=function(e){return e?_p(e).getAlpha():0};fd.addOpacity=function(e,t){var r=_p(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"};fd.combine=function(e,t){var r=_p(e).toRgb();if(r.a===1)return _p(e).toRgbString();var n=_p(t||SO).toRgb(),i=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},a={r:i.r*(1-r.a)+r.r*r.a,g:i.g*(1-r.a)+r.g*r.a,b:i.b*(1-r.a)+r.b*r.a};return _p(a).toRgbString()};fd.interpolate=function(e,t,r){var n=_p(e).toRgb(),i=_p(t).toRgb(),a={r:r*n.r+(1-r)*i.r,g:r*n.g+(1-r)*i.g,b:r*n.b+(1-r)*i.b};return _p(a).toRgbString()};fd.contrast=function(e,t,r){var n=_p(e);n.getAlpha()!==1&&(n=_p(fd.combine(e,SO)));var i=n.isDark()?t?n.lighten(t):SO:r?n.darken(r):xtt;return i.toString()};fd.stroke=function(e,t){var r=_p(t);e.style({stroke:fd.tinyRGB(r),"stroke-opacity":r.getAlpha()})};fd.fill=function(e,t){var r=_p(t);e.style({fill:fd.tinyRGB(r),"fill-opacity":r.getAlpha()})};fd.clean=function(e){if(!(!e||typeof e!="object")){var t=Object.keys(e),r,n,i,a;for(r=0;r=0)))return e;if(a===3)n[a]>1&&(n[a]=1);else if(n[a]>=1)return e}var o=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return i?"rgba("+o+", "+n[3]+")":"rgb("+o+")"}});var U1=ye((wtr,Qee)=>{"use strict";Qee.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var n3=ye(ete=>{"use strict";ete.counter=function(e,t,r,n){var i=(t||"")+(r?"":"$"),a=n===!1?"":"^";return e==="xy"?new RegExp(a+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+i):new RegExp(a+e+"([2-9]|[1-9][0-9]+)?"+i)}});var nte=ye(xp=>{"use strict";var MO=Eo(),tte=cd(),rte=Ao().extendFlat,btt=Vl(),wtt=sb(),Ttt=Ca(),Att=U1().DESELECTDIM,a3=CS(),ite=n3().counter,Stt=r3().modHalf,dm=vv().isArrayOrTypedArray,V1=vv().isTypedArraySpec,G1=vv().decodeTypedArraySpec;xp.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(dm(e)?e:V1(e)?G1(e):r)}},enumerated:{coerceFunction:function(e,t,r,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,n=0;nn.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}V1(e)&&(e=G1(e)),e%1||!MO(e)||n.min!==void 0&&en.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,n){if(typeof e!="string"){var i=typeof e=="number";n.strict===!0||!i?t.set(r):t.set(String(e))}else n.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){V1(e)&&(e=G1(e)),tte(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function n(i){return tte(i).isValid()}!Array.isArray(e)||!e.length?t.set(r):e.every(n)?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(wtt.get(e,r))}},angle:{coerceFunction:function(e,t,r){V1(e)&&(e=G1(e)),e==="auto"?t.set("auto"):MO(e)?t.set(Stt(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,n){var i=n.regex||ite(r);if(typeof e=="string"&&i.test(e)){t.set(e);return}t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!ite(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var i=e.split("+"),a=0;a{"use strict";var ate={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},ote={};function ste(e,t){for(var r in e){var n=e[r];n.valType?t[r]=n.dflt:(t[r]||(t[r]={}),ste(n,t[r]))}}ste(ate,ote);lte.exports={configAttributes:ate,dfltConfig:ote}});var CO=ye((Mtr,ute)=>{"use strict";var EO=Oa(),Mtt=Eo(),zS=[];ute.exports=function(e,t){if(zS.indexOf(e)!==-1)return;zS.push(e);var r=1e3;Mtt(t)?r=t:t==="long"&&(r=3e3);var n=EO.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(zS);function a(o){o.duration(700).style("opacity",0).each("end",function(s){var l=zS.indexOf(s);l!==-1&&zS.splice(l,1),EO.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var s=EO.select(this);s.append("button").classed("notifier-close",!0).html("×").on("click",function(){s.transition().call(a)});for(var l=s.append("p"),u=o.split(//g),c=0;c{"use strict";var o3=ub().dfltConfig,kO=CO(),LO=cte.exports={};LO.log=function(){var e;if(o3.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};LO.warn=function(){var e;if(o3.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};LO.error=function(){var e;if(o3.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var _6=ye((Ctr,fte)=>{"use strict";fte.exports=function(){}});var PO=ye((ktr,hte)=>{"use strict";hte.exports=function(t,r){if(r instanceof RegExp){for(var n=r.toString(),i=0;i{dte.exports=Ett;function Ett(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var gte=ye((Ptr,pte)=>{pte.exports=Ctt;function Ctt(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var yte=ye((Itr,mte)=>{mte.exports=ktt;function ktt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var IO=ye((Rtr,_te)=>{_te.exports=Ltt;function Ltt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var bte=ye((Dtr,xte)=>{xte.exports=Ptt;function Ptt(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var Tte=ye((Ftr,wte)=>{wte.exports=Itt;function Itt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],h=t[10],d=t[11],v=t[12],_=t[13],b=t[14],p=t[15],C=r*s-n*o,E=r*l-i*o,A=r*u-a*o,L=n*l-i*s,x=n*u-a*s,k=i*u-a*l,M=c*_-f*v,g=c*b-h*v,P=c*p-d*v,T=f*b-h*_,z=f*p-d*_,O=h*p-d*b,V=C*O-E*z+A*T+L*P-x*g+k*M;return V?(V=1/V,e[0]=(s*O-l*z+u*T)*V,e[1]=(i*z-n*O-a*T)*V,e[2]=(_*k-b*x+p*L)*V,e[3]=(h*x-f*k-d*L)*V,e[4]=(l*P-o*O-u*g)*V,e[5]=(r*O-i*P+a*g)*V,e[6]=(b*A-v*k-p*E)*V,e[7]=(c*k-h*A+d*E)*V,e[8]=(o*z-s*P+u*M)*V,e[9]=(n*P-r*z-a*M)*V,e[10]=(v*x-_*A+p*C)*V,e[11]=(f*A-c*x-d*C)*V,e[12]=(s*g-o*T-l*M)*V,e[13]=(r*T-n*g+i*M)*V,e[14]=(_*E-v*L-b*C)*V,e[15]=(c*L-f*E+h*C)*V,e):null}});var Ste=ye((ztr,Ate)=>{Ate.exports=Rtt;function Rtt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],h=t[10],d=t[11],v=t[12],_=t[13],b=t[14],p=t[15];return e[0]=s*(h*p-d*b)-f*(l*p-u*b)+_*(l*d-u*h),e[1]=-(n*(h*p-d*b)-f*(i*p-a*b)+_*(i*d-a*h)),e[2]=n*(l*p-u*b)-s*(i*p-a*b)+_*(i*u-a*l),e[3]=-(n*(l*d-u*h)-s*(i*d-a*h)+f*(i*u-a*l)),e[4]=-(o*(h*p-d*b)-c*(l*p-u*b)+v*(l*d-u*h)),e[5]=r*(h*p-d*b)-c*(i*p-a*b)+v*(i*d-a*h),e[6]=-(r*(l*p-u*b)-o*(i*p-a*b)+v*(i*u-a*l)),e[7]=r*(l*d-u*h)-o*(i*d-a*h)+c*(i*u-a*l),e[8]=o*(f*p-d*_)-c*(s*p-u*_)+v*(s*d-u*f),e[9]=-(r*(f*p-d*_)-c*(n*p-a*_)+v*(n*d-a*f)),e[10]=r*(s*p-u*_)-o*(n*p-a*_)+v*(n*u-a*s),e[11]=-(r*(s*d-u*f)-o*(n*d-a*f)+c*(n*u-a*s)),e[12]=-(o*(f*b-h*_)-c*(s*b-l*_)+v*(s*h-l*f)),e[13]=r*(f*b-h*_)-c*(n*b-i*_)+v*(n*h-i*f),e[14]=-(r*(s*b-l*_)-o*(n*b-i*_)+v*(n*l-i*s)),e[15]=r*(s*h-l*f)-o*(n*h-i*f)+c*(n*l-i*s),e}});var Ete=ye((Otr,Mte)=>{Mte.exports=Dtt;function Dtt(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],f=e[10],h=e[11],d=e[12],v=e[13],_=e[14],b=e[15],p=t*o-r*a,C=t*s-n*a,E=t*l-i*a,A=r*s-n*o,L=r*l-i*o,x=n*l-i*s,k=u*v-c*d,M=u*_-f*d,g=u*b-h*d,P=c*_-f*v,T=c*b-h*v,z=f*b-h*_;return p*z-C*T+E*P+A*g-L*M+x*k}});var kte=ye((qtr,Cte)=>{Cte.exports=Ftt;function Ftt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],f=t[8],h=t[9],d=t[10],v=t[11],_=t[12],b=t[13],p=t[14],C=t[15],E=r[0],A=r[1],L=r[2],x=r[3];return e[0]=E*n+A*s+L*f+x*_,e[1]=E*i+A*l+L*h+x*b,e[2]=E*a+A*u+L*d+x*p,e[3]=E*o+A*c+L*v+x*C,E=r[4],A=r[5],L=r[6],x=r[7],e[4]=E*n+A*s+L*f+x*_,e[5]=E*i+A*l+L*h+x*b,e[6]=E*a+A*u+L*d+x*p,e[7]=E*o+A*c+L*v+x*C,E=r[8],A=r[9],L=r[10],x=r[11],e[8]=E*n+A*s+L*f+x*_,e[9]=E*i+A*l+L*h+x*b,e[10]=E*a+A*u+L*d+x*p,e[11]=E*o+A*c+L*v+x*C,E=r[12],A=r[13],L=r[14],x=r[15],e[12]=E*n+A*s+L*f+x*_,e[13]=E*i+A*l+L*h+x*b,e[14]=E*a+A*u+L*d+x*p,e[15]=E*o+A*c+L*v+x*C,e}});var Pte=ye((Btr,Lte)=>{Lte.exports=ztt;function ztt(e,t,r){var n=r[0],i=r[1],a=r[2],o,s,l,u,c,f,h,d,v,_,b,p;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],c=t[4],f=t[5],h=t[6],d=t[7],v=t[8],_=t[9],b=t[10],p=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=c,e[5]=f,e[6]=h,e[7]=d,e[8]=v,e[9]=_,e[10]=b,e[11]=p,e[12]=o*n+c*i+v*a+t[12],e[13]=s*n+f*i+_*a+t[13],e[14]=l*n+h*i+b*a+t[14],e[15]=u*n+d*i+p*a+t[15]),e}});var Rte=ye((Ntr,Ite)=>{Ite.exports=Ott;function Ott(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var Fte=ye((Utr,Dte)=>{Dte.exports=qtt;function qtt(e,t,r,n){var i=n[0],a=n[1],o=n[2],s=Math.sqrt(i*i+a*a+o*o),l,u,c,f,h,d,v,_,b,p,C,E,A,L,x,k,M,g,P,T,z,O,V,G;return Math.abs(s)<1e-6?null:(s=1/s,i*=s,a*=s,o*=s,l=Math.sin(r),u=Math.cos(r),c=1-u,f=t[0],h=t[1],d=t[2],v=t[3],_=t[4],b=t[5],p=t[6],C=t[7],E=t[8],A=t[9],L=t[10],x=t[11],k=i*i*c+u,M=a*i*c+o*l,g=o*i*c-a*l,P=i*a*c-o*l,T=a*a*c+u,z=o*a*c+i*l,O=i*o*c+a*l,V=a*o*c-i*l,G=o*o*c+u,e[0]=f*k+_*M+E*g,e[1]=h*k+b*M+A*g,e[2]=d*k+p*M+L*g,e[3]=v*k+C*M+x*g,e[4]=f*P+_*T+E*z,e[5]=h*P+b*T+A*z,e[6]=d*P+p*T+L*z,e[7]=v*P+C*T+x*z,e[8]=f*O+_*V+E*G,e[9]=h*O+b*V+A*G,e[10]=d*O+p*V+L*G,e[11]=v*O+C*V+x*G,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var Ote=ye((Vtr,zte)=>{zte.exports=Btt;function Btt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],f=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+u*n,e[5]=o*i+c*n,e[6]=s*i+f*n,e[7]=l*i+h*n,e[8]=u*i-a*n,e[9]=c*i-o*n,e[10]=f*i-s*n,e[11]=h*i-l*n,e}});var Bte=ye((Gtr,qte)=>{qte.exports=Ntt;function Ntt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[8],c=t[9],f=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-u*n,e[1]=o*i-c*n,e[2]=s*i-f*n,e[3]=l*i-h*n,e[8]=a*n+u*i,e[9]=o*n+c*i,e[10]=s*n+f*i,e[11]=l*n+h*i,e}});var Ute=ye((Htr,Nte)=>{Nte.exports=Utt;function Utt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[4],c=t[5],f=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+u*n,e[1]=o*i+c*n,e[2]=s*i+f*n,e[3]=l*i+h*n,e[4]=u*i-a*n,e[5]=c*i-o*n,e[6]=f*i-s*n,e[7]=h*i-l*n,e}});var Gte=ye((jtr,Vte)=>{Vte.exports=Vtt;function Vtt(e,t,r){var n,i,a,o=r[0],s=r[1],l=r[2],u=Math.sqrt(o*o+s*s+l*l);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,s*=u,l*=u,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=s*o*a+l*n,e[2]=l*o*a-s*n,e[3]=0,e[4]=o*s*a-l*n,e[5]=s*s*a+i,e[6]=l*s*a+o*n,e[7]=0,e[8]=o*l*a+s*n,e[9]=s*l*a-o*n,e[10]=l*l*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var jte=ye((Wtr,Hte)=>{Hte.exports=Gtt;function Gtt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=n+n,l=i+i,u=a+a,c=n*s,f=n*l,h=n*u,d=i*l,v=i*u,_=a*u,b=o*s,p=o*l,C=o*u;return e[0]=1-(d+_),e[1]=f+C,e[2]=h-p,e[3]=0,e[4]=f-C,e[5]=1-(c+_),e[6]=v+b,e[7]=0,e[8]=h+p,e[9]=v-b,e[10]=1-(c+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var Xte=ye((Xtr,Wte)=>{Wte.exports=Htt;function Htt(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Yte=ye((Ztr,Zte)=>{Zte.exports=jtt;function jtt(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var Jte=ye((Ytr,Kte)=>{Kte.exports=Wtt;function Wtt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Qte=ye((Ktr,$te)=>{$te.exports=Xtt;function Xtt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var tre=ye((Jtr,ere)=>{ere.exports=Ztt;function Ztt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var RO=ye(($tr,rre)=>{rre.exports=Ytt;function Ytt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,s=n+n,l=i+i,u=r*o,c=n*o,f=n*s,h=i*o,d=i*s,v=i*l,_=a*o,b=a*s,p=a*l;return e[0]=1-f-v,e[1]=c+p,e[2]=h-b,e[3]=0,e[4]=c-p,e[5]=1-u-v,e[6]=d+_,e[7]=0,e[8]=h+b,e[9]=d-_,e[10]=1-u-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var nre=ye((Qtr,ire)=>{ire.exports=Ktt;function Ktt(e,t,r,n,i,a,o){var s=1/(r-t),l=1/(i-n),u=1/(a-o);return e[0]=a*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*l,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(i+n)*l,e[10]=(o+a)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*u,e[15]=0,e}});var ore=ye((err,are)=>{are.exports=Jtt;function Jtt(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}});var lre=ye((trr,sre)=>{sre.exports=$tt;function $tt(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(i+a);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-s)*l*.5),e[9]=(i-a)*u*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}});var cre=ye((rrr,ure)=>{ure.exports=Qtt;function Qtt(e,t,r,n,i,a,o){var s=1/(t-r),l=1/(n-i),u=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*s,e[13]=(i+n)*l,e[14]=(o+a)*u,e[15]=1,e}});var hre=ye((irr,fre)=>{var ert=IO();fre.exports=trt;function trt(e,t,r,n){var i,a,o,s,l,u,c,f,h,d,v=t[0],_=t[1],b=t[2],p=n[0],C=n[1],E=n[2],A=r[0],L=r[1],x=r[2];return Math.abs(v-A)<1e-6&&Math.abs(_-L)<1e-6&&Math.abs(b-x)<1e-6?ert(e):(c=v-A,f=_-L,h=b-x,d=1/Math.sqrt(c*c+f*f+h*h),c*=d,f*=d,h*=d,i=C*h-E*f,a=E*c-p*h,o=p*f-C*c,d=Math.sqrt(i*i+a*a+o*o),d?(d=1/d,i*=d,a*=d,o*=d):(i=0,a=0,o=0),s=f*o-h*a,l=h*i-c*o,u=c*a-f*i,d=Math.sqrt(s*s+l*l+u*u),d?(d=1/d,s*=d,l*=d,u*=d):(s=0,l=0,u=0),e[0]=i,e[1]=s,e[2]=c,e[3]=0,e[4]=a,e[5]=l,e[6]=f,e[7]=0,e[8]=o,e[9]=u,e[10]=h,e[11]=0,e[12]=-(i*v+a*_+o*b),e[13]=-(s*v+l*_+u*b),e[14]=-(c*v+f*_+h*b),e[15]=1,e)}});var vre=ye((nrr,dre)=>{dre.exports=rrt;function rrt(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var DO=ye((arr,pre)=>{pre.exports={create:vte(),clone:gte(),copy:yte(),identity:IO(),transpose:bte(),invert:Tte(),adjoint:Ste(),determinant:Ete(),multiply:kte(),translate:Pte(),scale:Rte(),rotate:Fte(),rotateX:Ote(),rotateY:Bte(),rotateZ:Ute(),fromRotation:Gte(),fromRotationTranslation:jte(),fromScaling:Xte(),fromTranslation:Yte(),fromXRotation:Jte(),fromYRotation:Qte(),fromZRotation:tre(),fromQuat:RO(),frustum:nre(),perspective:ore(),perspectiveFromFieldOfView:lre(),ortho:cre(),lookAt:hre(),str:vre()}});var x6=ye(fh=>{"use strict";var irt=DO();fh.init2dArray=function(e,t){for(var r=new Array(e),n=0;n{"use strict";var nrt=Oa(),gre=H1(),art=x6(),ort=DO();function srt(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function lrt(e){var t=nrt.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function mre(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function urt(e,t){yre("global",e,t)}function yre(e,t,r){var n="plotly.js-style-"+e,i=document.getElementById(n);if(!(i&&i.matches(".no-inline-styles"))){i||(i=document.createElement("style"),i.setAttribute("id",n),i.appendChild(document.createTextNode("")),document.head.appendChild(i));var a=i.sheet;a?a.insertRule?a.insertRule(t+"{"+r+"}",0):a.addRule?a.addRule(t,r,0):gre.warn("addStyleRule failed"):gre.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function crt(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&mre(r)}function frt(e,t,r,n,i,a){var o=n.split(":"),s=i.split(":"),l="data-btn-style-event-added";a||(a=document),a.querySelectorAll(e).forEach(function(u){u.getAttribute(l)||(u.addEventListener("mouseenter",function(){var c=this.querySelector(r);c&&(c.style[o[0]]=o[1])}),u.addEventListener("mouseleave",function(){var c=this.querySelector(r);c&&(t&&this.matches(t)?c.style[o[0]]=o[1]:c.style[s[0]]=s[1])}),u.setAttribute(l,!0))})}function hrt(e){var t=xre(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(n){var i=_re(n);if(i){var a=art.convertCssMatrix(i);r=ort.multiply(r,r,a)}}),r}function _re(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function xre(e){for(var t=[];drt(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function drt(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function vrt(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}bre.exports={getGraphDiv:srt,isPlotDiv:lrt,removeElement:mre,addStyleRule:urt,addRelatedStyleRule:yre,deleteRelatedStyleRule:crt,setStyleOnHover:frt,getFullTransformMatrix:hrt,getElementTransformMatrix:_re,getElementAndAncestors:xre,equalDomRects:vrt}});var qS=ye((lrr,wre)=>{"use strict";wre.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var mc=ye((urr,kre)=>{"use strict";var Are=Ao().extendFlat,prt=gy(),Sre={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},Mre={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},grt=Sre.flags.slice().concat(["fullReplot"]),mrt=Mre.flags.slice().concat("layoutReplot");kre.exports={traces:Sre,layout:Mre,traceFlags:function(){return Tre(grt)},layoutFlags:function(){return Tre(mrt)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var n=r.split("+"),i=0;i{"use strict";FO.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};FO.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}});var zO=ye((frr,Lre)=>{"use strict";Lre.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Qo=ye(BS=>{"use strict";var Pre=zO(),yrt=Pre.FORMAT_LINK,_rt=Pre.DATE_FORMAT_LINK;function xrt(e){var t=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(t?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,yrt,"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}".`,_rt,"for details on the date formatting syntax."].join(" ")}BS.templateFormatStringDescription=xrt;function OO(e){var t=e.description?" "+e.description:"",r=e.keys||[];if(r.length>0){for(var n=[],i=0;i{"use strict";function j1(e,t){return t?t.d2l(e):e}function Ire(e,t){return t?t.l2d(e):e}function brt(e){return e.x0}function wrt(e){return e.x1}function Trt(e){return e.y0}function Art(e){return e.y1}function Rre(e){return e.x0shift||0}function Dre(e){return e.x1shift||0}function Fre(e){return e.y0shift||0}function zre(e){return e.y1shift||0}function b6(e,t){return j1(e.x1,t)+Dre(e)-j1(e.x0,t)-Rre(e)}function w6(e,t,r){return j1(e.y1,r)+zre(e)-j1(e.y0,r)-Fre(e)}function Srt(e,t){return Math.abs(b6(e,t))}function Mrt(e,t,r){return Math.abs(w6(e,t,r))}function Ert(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(b6(e,t),2)+Math.pow(w6(e,t,r),2))}function Crt(e,t){return Ire((j1(e.x1,t)+Dre(e)+j1(e.x0,t)+Rre(e))/2,t)}function krt(e,t,r){return Ire((j1(e.y1,r)+zre(e)+j1(e.y0,r)+Fre(e))/2,r)}function Lrt(e,t,r){return e.type!=="line"?void 0:w6(e,t,r)/b6(e,t)}Ore.exports={x0:brt,x1:wrt,y0:Trt,y1:Art,slope:Lrt,dx:b6,dy:w6,width:Srt,height:Mrt,length:Ert,xcenter:Crt,ycenter:krt}});var Nre=ye((vrr,Bre)=>{"use strict";var Prt=mc().overrideAll,cb=Vl(),qre=ec(),Irt=Pd().dash,W1=Ao().extendFlat,Rrt=Qo().shapeTexttemplateAttrs,Drt=T6();Bre.exports=Prt({newshape:{visible:W1({},cb.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:W1({},cb.legend,{}),legendgroup:W1({},cb.legendgroup,{}),legendgrouptitle:{text:W1({},cb.legendgrouptitle.text,{}),font:qre({})},legendrank:W1({},cb.legendrank,{}),legendwidth:W1({},cb.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:W1({},Irt,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:W1({},cb.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:Rrt({newshape:!0},{keys:Object.keys(Drt)}),font:qre({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var Vre=ye((prr,Ure)=>{"use strict";var Frt=Pd().dash,zrt=Ao().extendFlat;Ure.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:zrt({},Frt,{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 A6=ye((grr,Gre)=>{"use strict";Gre.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var s3=ye((mrr,Xre)=>{"use strict";var qO=ec(),Ort=qS(),S6=Eh(),Hre=Nre(),jre=Vre(),qrt=A6(),Wre=Ao().extendFlat,M6=qO({editType:"calc"});M6.family.dflt='"Open Sans", verdana, arial, sans-serif';M6.size.dflt=12;M6.color.dflt=S6.defaultLine;Xre.exports={font:M6,title:{text:{valType:"string",editType:"layoutstyle"},font:qO({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:qO({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:Wre(qrt({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:S6.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:S6.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:S6.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:Hre.newshape,activeshape:Hre.activeshape,newselection:jre.newselection,activeselection:jre.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:Wre({},Ort.transition,{editType:"none"})}});var Zre=ru(()=>{});var Brt={};var Yre=ru(()=>{Zre()});var qa=ye(tl=>{"use strict";var l3=H1(),Kre=_6(),Jre=PO(),Nrt=gy(),Urt=OS().addStyleRule,$re=Ao(),Vrt=Vl(),Grt=s3(),Hrt=$re.extendFlat,BO=$re.extendDeepAll;tl.modules={};tl.allCategories={};tl.allTypes=[];tl.subplotsRegistry={};tl.componentsRegistry={};tl.layoutArrayContainers=[];tl.layoutArrayRegexes=[];tl.traceLayoutAttributes={};tl.localeRegistry={};tl.apiMethodRegistry={};tl.collectableSubplotTypes=null;tl.register=function(t){if(tl.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var Krt=e3().timeFormat,uie=Eo(),NO=H1(),Z1=r3().mod,f3=hs(),_0=f3.BADNUM,bp=f3.ONEDAY,NS=f3.ONEHOUR,X1=f3.ONEMIN,c3=f3.ONESEC,US=f3.EPOCHJD,my=qa(),iie=e3().utcFormat,Jrt=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,$rt=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,nie=new Date().getFullYear()-70;function yy(e){return e&&my.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}hh.dateTick0=function(e,t){var r=Qrt(e,!!t);if(t<2)return r;var n=hh.dateTime2ms(r,e);return n+=bp*(t-1),hh.ms2DateTime(n,0,e)};function Qrt(e,t){return yy(e)?t?my.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:my.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}hh.dfltRange=function(e){return yy(e)?my.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};hh.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var C6,k6;hh.dateTime2ms=function(e,t){if(hh.isJSDate(e)){var r=e.getTimezoneOffset()*X1,n=(e.getUTCMinutes()-e.getMinutes())*X1+(e.getUTCSeconds()-e.getSeconds())*c3+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var i=3*X1;r=r-i/2+Z1(n-r+i/2,i)}return e=Number(e)-r,e>=C6&&e<=k6?e:_0}if(typeof e!="string"&&typeof e!="number")return _0;e=String(e);var a=yy(t),o=e.charAt(0);a&&(o==="G"||o==="g")&&(e=e.substr(1),t="");var s=a&&t.substr(0,7)==="chinese",l=e.match(s?$rt:Jrt);if(!l)return _0;var u=l[1],c=l[3]||"1",f=Number(l[5]||1),h=Number(l[7]||0),d=Number(l[9]||0),v=Number(l[11]||0);if(a){if(u.length===2)return _0;u=Number(u);var _;try{var b=my.getComponentMethod("calendars","getCal")(t);if(s){var p=c.charAt(c.length-1)==="i";c=parseInt(c,10),_=b.newDate(u,b.toMonthIndex(u,c,p),f)}else _=b.newDate(u,Number(c),f)}catch(E){return _0}return _?(_.toJD()-US)*bp+h*NS+d*X1+v*c3:_0}u.length===2?u=(Number(u)+2e3-nie)%100+nie:u=Number(u),c-=1;var C=new Date(Date.UTC(2e3,c,f,h,d));return C.setUTCFullYear(u),C.getUTCMonth()!==c||C.getUTCDate()!==f?_0:C.getTime()+v*c3};C6=hh.MIN_MS=hh.dateTime2ms("-9999");k6=hh.MAX_MS=hh.dateTime2ms("9999-12-31 23:59:59.9999");hh.isDateTime=function(e,t){return hh.dateTime2ms(e,t)!==_0};function u3(e,t){return String(e+Math.pow(10,t)).substr(1)}var E6=90*bp,aie=3*NS,oie=5*X1;hh.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=C6&&e<=k6))return _0;t||(t=0);var n=Math.floor(Z1(e+.05,1)*10),i=Math.round(e-n/10),a,o,s,l,u,c;if(yy(r)){var f=Math.floor(i/bp)+US,h=Math.floor(Z1(e,bp));try{a=my.getComponentMethod("calendars","getCal")(r).fromJD(f).formatDate("yyyy-mm-dd")}catch(d){a=iie("G%Y-%m-%d")(new Date(i))}if(a.charAt(0)==="-")for(;a.length<11;)a="-0"+a.substr(1);else for(;a.length<10;)a="0"+a;o=t=C6+bp&&e<=k6-bp))return _0;var t=Math.floor(Z1(e+.05,1)*10),r=new Date(Math.round(e-t/10)),n=Krt("%Y-%m-%d")(r),i=r.getHours(),a=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return cie(n,i,a,o,s)};function cie(e,t,r,n,i){if((t||r||n||i)&&(e+=" "+u3(t,2)+":"+u3(r,2),(n||i)&&(e+=":"+u3(n,2),i))){for(var a=4;i%10===0;)a-=1,i/=10;e+="."+u3(i,a)}return e}hh.cleanDate=function(e,t,r){if(e===_0)return t;if(hh.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(yy(r))return NO.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=hh.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!hh.isDateTime(e,r))return NO.error("unrecognized date",e),t;return e};var eit=/%\d?f/g,tit=/%h/g,rit={1:"1",2:"1",3:"2",4:"2"};function sie(e,t,r,n){e=e.replace(eit,function(a){var o=Math.min(+a.charAt(1)||6,6),s=(t/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return s});var i=new Date(Math.floor(t+.05));if(e=e.replace(tit,function(){return rit[r("%q")(i)]}),yy(n))try{e=my.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(a){return"Invalid"}return r(e)(i)}var iit=[59,59.9,59.99,59.999,59.9999];function nit(e,t){var r=Z1(e+.05,bp),n=u3(Math.floor(r/NS),2)+":"+u3(Z1(Math.floor(r/X1),60),2);if(t!=="M"){uie(t)||(t=0);var i=Math.min(Z1(e/c3,60),iit[t]),a=(100+i).toFixed(t).substr(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+a}return n}hh.formatDate=function(e,t,r,n,i,a){if(i=yy(i)&&i,!t)if(r==="y")t=a.year;else if(r==="m")t=a.month;else if(r==="d")t=a.dayMonth+` +`+a.year;else return nit(e,r)+` +`+sie(a.dayMonthYear,e,n,i);return sie(t,e,n,i)};var lie=3*bp;hh.incrementMonth=function(e,t,r){r=yy(r)&&r;var n=Z1(e,bp);if(e=Math.round(e-n),r)try{var i=Math.round(e/bp)+US,a=my.getComponentMethod("calendars","getCal")(r),o=a.fromJD(i);return t%12?a.add(o,t,"m"):a.add(o,t/12,"y"),(o.toJD()-US)*bp+n}catch(l){NO.error("invalid ms "+e+" in calendar "+r)}var s=new Date(e+lie);return s.setUTCMonth(s.getUTCMonth()+t)+n-lie};hh.findExactDates=function(e,t){for(var r=0,n=0,i=0,a=0,o,s,l=yy(t)&&my.getComponentMethod("calendars","getCal")(t),u=0;u{"use strict";hie.exports=function(t){return t}});var L6=ye(_y=>{"use strict";var ait=Eo(),oit=H1(),sit=VS(),lit=hs().BADNUM,UO=1e-9;_y.findBin=function(e,t,r){if(ait(t.start))return r?Math.ceil((e-t.start)/t.size-UO)-1:Math.floor((e-t.start)/t.size+UO);var n=0,i=t.length,a=0,o=i>1?(t[i-1]-t[0])/(i-1):1,s,l;for(o>=0?l=r?uit:cit:l=r?hit:fit,e+=o*UO*(r?-1:1)*(o>=0?1:-1);n90&&oit.log("Long binary search..."),n-1};function uit(e,t){return et}function hit(e,t){return e>=t}_y.sorterAsc=function(e,t){return e-t};_y.sorterDes=function(e,t){return t-e};_y.distinctVals=function(e){var t=e.slice();t.sort(_y.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===lit;r--);for(var n=t[r]-t[0]||1,i=n/(r||1)/1e4,a=[],o,s=0;s<=r;s++){var l=t[s],u=l-o;o===void 0?(a.push(l),o=l):u>i&&(n=Math.min(n,u),a.push(l),o=l)}return{vals:a,minDiff:n}};_y.roundUp=function(e,t,r){for(var n=0,i=t.length-1,a,o=0,s=r?0:1,l=r?1:0,u=r?Math.ceil:Math.floor;n0&&(n=1),r&&n)return e.sort(t)}return n?e:e.reverse()};_y.findIndexOfMin=function(e,t){t=t||sit;for(var r=1/0,n,i=0;i{"use strict";die.exports=function(t){return Object.keys(t).sort()}});var vie=ye(dh=>{"use strict";var GS=Eo(),dit=vv().isArrayOrTypedArray;dh.aggNums=function(e,t,r,n){var i,a;if((!n||n>r.length)&&(n=r.length),GS(t)||(t=!1),dit(r[0])){for(a=new Array(n),i=0;ie.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var _ie=ye((Err,yie)=>{"use strict";var pie=r3(),VO=pie.mod,vit=pie.modHalf,HS=Math.PI,K1=2*HS;function pit(e){return e/180*HS}function git(e){return e/HS*180}function GO(e){return Math.abs(e[1]-e[0])>K1-1e-14}function gie(e,t){return vit(t-e,K1)}function mit(e,t){return Math.abs(gie(e,t))}function mie(e,t){if(GO(t))return!0;var r,n;t[0]n&&(n+=K1);var i=VO(e,K1),a=i+K1;return i>=r&&i<=n||a>=r&&a<=n}function yit(e,t,r,n){if(!mie(t,n))return!1;var i,a;return r[0]=i&&e<=a}function HO(e,t,r,n,i,a,o){i=i||0,a=a||0;var s=GO([r,n]),l,u,c,f,h;s?(l=0,u=HS,c=K1):r{"use strict";fb.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};fb.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};fb.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};fb.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};fb.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};fb.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var Tie=ye(hb=>{"use strict";var jO=r3().mod;hb.segmentsIntersect=wie;function wie(e,t,r,n,i,a,o,s){var l=r-e,u=i-e,c=o-i,f=n-t,h=a-t,d=s-a,v=l*d-c*f;if(v===0)return null;var _=(u*d-c*h)/v,b=(u*f-l*h)/v;return b<0||b>1||_<0||_>1?null:{x:e+l*_,y:t+f*_}}hb.segmentDistance=function(t,r,n,i,a,o,s,l){if(wie(t,r,n,i,a,o,s,l))return 0;var u=n-t,c=i-r,f=s-a,h=l-o,d=u*u+c*c,v=f*f+h*h,_=Math.min(P6(u,c,d,a-t,o-r),P6(u,c,d,s-t,l-r),P6(f,h,v,t-a,r-o),P6(f,h,v,n-a,i-o));return Math.sqrt(_)};function P6(e,t,r,n,i){var a=n*e+i*t;if(a<0)return n*n+i*i;if(a>r){var o=n-e,s=i-t;return o*o+s*s}else{var l=n*t-i*e;return l*l/r}}var I6,WO,bie;hb.getTextLocation=function(t,r,n,i){if((t!==WO||i!==bie)&&(I6={},WO=t,bie=i),I6[n])return I6[n];var a=t.getPointAtLength(jO(n-i/2,r)),o=t.getPointAtLength(jO(n+i/2,r)),s=Math.atan((o.y-a.y)/(o.x-a.x)),l=t.getPointAtLength(jO(n,r)),u=(l.x*4+a.x+o.x)/6,c=(l.y*4+a.y+o.y)/6,f={x:u,y:c,theta:s};return I6[n]=f,f};hb.clearLocationCache=function(){WO=null};hb.getVisibleSegment=function(t,r,n){var i=r.left,a=r.right,o=r.top,s=r.bottom,l=0,u=t.getTotalLength(),c=u,f,h;function d(_){var b=t.getPointAtLength(_);_===0?f=b:_===u&&(h=b);var p=b.xa?b.x-a:0,C=b.ys?b.y-s:0;return Math.sqrt(p*p+C*C)}for(var v=d(l);v;){if(l+=v+n,l>c)return;v=d(l)}for(v=d(c);v;){if(c-=v+n,l>c)return;v=d(c)}return{min:l,max:c,len:c-l,total:u,isClosed:l===0&&c===u&&Math.abs(f.x-h.x)<.1&&Math.abs(f.y-h.y)<.1}};hb.findPointOnPath=function(t,r,n,i){i=i||{};for(var a=i.pathLength||t.getTotalLength(),o=i.tolerance||.001,s=i.iterationLimit||30,l=t.getPointAtLength(0)[n]>t.getPointAtLength(a)[n]?-1:1,u=0,c=0,f=a,h,d,v;u0?f=h:c=h,u++}return d}});var R6=ye(jS=>{"use strict";var xy={};jS.throttle=function(t,r,n){var i=xy[t],a=Date.now();if(!i){for(var o in xy)xy[o].tsi.ts+r){s();return}i.timer=setTimeout(function(){s(),i.timer=null},r)};jS.done=function(e){var t=xy[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var n=t.onDone;t.onDone=function(){n&&n(),r(),t.onDone=null}})};jS.clear=function(e){if(e)Aie(xy[e]),delete xy[e];else for(var t in xy)jS.clear(t)};function Aie(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Mie=ye((Prr,Sie)=>{"use strict";Sie.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var Eie=ye((Irr,D6)=>{"use strict";D6.exports=XO;D6.exports.isMobile=XO;D6.exports.default=XO;var wit=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,Tit=/CrOS/,Ait=/android|ipad|playbook|silk/i;function XO(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=wit.test(t)&&!Tit.test(t)||!!e.tablet&&Ait.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var kie=ye((Rrr,Cie)=>{"use strict";var Sit=Eo(),Mit=Eie();Cie.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=Eit(),typeof r!="string")return!0;var n=Mit({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!n)for(var i=r.split(" "),a=1;a-1;s--){var l=i[s];if(l.substr(0,8)==="Version/"){var u=l.substr(8).split(".")[0];if(Sit(u)&&(u=+u),u>=13)return!0}}}return n};function Eit(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var Pie=ye((Drr,Lie)=>{"use strict";var Cit=Oa();Lie.exports=function(t,r,n){var i=t.selectAll("g."+n.replace(/\s/g,".")).data(r,function(o){return o[0].trace.uid});i.exit().remove(),i.enter().append("g").attr("class",n),i.order();var a=t.classed("rangeplot")?"nodeRangePlot3":"node3";return i.each(function(o){o[0][a]=Cit.select(this)}),i}});var Rie=ye((Frr,Iie)=>{"use strict";var kit=qa();Iie.exports=function(t,r){for(var n=t._context.locale,i=0;i<2;i++){for(var a=t._context.locales,o=0;o<2;o++){var s=(a[n]||{}).dictionary;if(s){var l=s[r];if(l)return l}a=kit.localeRegistry}var u=n.split("-")[0];if(u===n)break;n=u}return r}});var ZO=ye((zrr,Die)=>{"use strict";Die.exports=function(t){for(var r={},n=[],i=0,a=0;a{"use strict";Fie.exports=function(t){for(var r=Iit(t)?Pit:Lit,n=[],i=0;i{"use strict";Oie.exports=function(t,r){if(!r)return t;var n=1/Math.abs(r),i=n>1?(n*t+n*r)/n:t+r,a=String(i).length;if(a>16){var o=String(r).length,s=String(t).length;if(a>=s+o){var l=parseFloat(i).toPrecision(12);l.indexOf("e+")===-1&&(i=+l)}}return i}});var Nie=ye((Brr,Bie)=>{"use strict";var Rit=Eo(),Dit=hs().BADNUM,Fit=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Bie.exports=function(t){return typeof t=="string"&&(t=t.replace(Fit,"")),Rit(t)?Number(t):Dit}});var Dr=ye((Nrr,Qie)=>{"use strict";var WS=Oa(),zit=e3().utcFormat,Oit=mO().format,Wie=Eo(),Xie=hs(),Zie=Xie.FP_SAFE,qit=-Zie,Uie=Xie.BADNUM,Si=Qie.exports={};Si.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:t==="0.f"?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var Vie={};Si.warnBadFormat=function(e){var t=String(e);Vie[t]||(Vie[t]=1,Si.warn('encountered bad format: "'+t+'"'))};Si.noFormat=function(e){return String(e)};Si.numberFormat=function(e){var t;try{t=Oit(Si.adjustFormat(e))}catch(r){return Si.warnBadFormat(e),Si.noFormat}return t};Si.nestedProperty=CS();Si.keyedContainer=Ree();Si.relativeAttr=Fee();Si.isPlainObject=gy();Si.toLogRange=v6();Si.relinkPrivateKeys=Bee();var J1=vv();Si.isArrayBuffer=J1.isArrayBuffer;Si.isTypedArray=J1.isTypedArray;Si.isArrayOrTypedArray=J1.isArrayOrTypedArray;Si.isArray1D=J1.isArray1D;Si.ensureArray=J1.ensureArray;Si.concat=J1.concat;Si.maxRowLength=J1.maxRowLength;Si.minRowLength=J1.minRowLength;var Yie=r3();Si.mod=Yie.mod;Si.modHalf=Yie.modHalf;var $1=nte();Si.valObjectMeta=$1.valObjectMeta;Si.coerce=$1.coerce;Si.coerce2=$1.coerce2;Si.coerceFont=$1.coerceFont;Si.coercePattern=$1.coercePattern;Si.coerceHoverinfo=$1.coerceHoverinfo;Si.coerceSelectionMarkerOpacity=$1.coerceSelectionMarkerOpacity;Si.validate=$1.validate;var jp=fie();Si.dateTime2ms=jp.dateTime2ms;Si.isDateTime=jp.isDateTime;Si.ms2DateTime=jp.ms2DateTime;Si.ms2DateTimeLocal=jp.ms2DateTimeLocal;Si.cleanDate=jp.cleanDate;Si.isJSDate=jp.isJSDate;Si.formatDate=jp.formatDate;Si.incrementMonth=jp.incrementMonth;Si.dateTick0=jp.dateTick0;Si.dfltRange=jp.dfltRange;Si.findExactDates=jp.findExactDates;Si.MIN_MS=jp.MIN_MS;Si.MAX_MS=jp.MAX_MS;var db=L6();Si.findBin=db.findBin;Si.sorterAsc=db.sorterAsc;Si.sorterDes=db.sorterDes;Si.distinctVals=db.distinctVals;Si.roundUp=db.roundUp;Si.sort=db.sort;Si.findIndexOfMin=db.findIndexOfMin;Si.sortObjectKeys=Y1();var by=vie();Si.aggNums=by.aggNums;Si.len=by.len;Si.mean=by.mean;Si.geometricMean=by.geometricMean;Si.median=by.median;Si.midRange=by.midRange;Si.variance=by.variance;Si.stdev=by.stdev;Si.interp=by.interp;var yg=x6();Si.init2dArray=yg.init2dArray;Si.transposeRagged=yg.transposeRagged;Si.dot=yg.dot;Si.translationMatrix=yg.translationMatrix;Si.rotationMatrix=yg.rotationMatrix;Si.rotationXYMatrix=yg.rotationXYMatrix;Si.apply3DTransform=yg.apply3DTransform;Si.apply2DTransform=yg.apply2DTransform;Si.apply2DTransform2=yg.apply2DTransform2;Si.convertCssMatrix=yg.convertCssMatrix;Si.inverseTransformMatrix=yg.inverseTransformMatrix;var vm=_ie();Si.deg2rad=vm.deg2rad;Si.rad2deg=vm.rad2deg;Si.angleDelta=vm.angleDelta;Si.angleDist=vm.angleDist;Si.isFullCircle=vm.isFullCircle;Si.isAngleInsideSector=vm.isAngleInsideSector;Si.isPtInsideSector=vm.isPtInsideSector;Si.pathArc=vm.pathArc;Si.pathSector=vm.pathSector;Si.pathAnnulus=vm.pathAnnulus;var d3=xie();Si.isLeftAnchor=d3.isLeftAnchor;Si.isCenterAnchor=d3.isCenterAnchor;Si.isRightAnchor=d3.isRightAnchor;Si.isTopAnchor=d3.isTopAnchor;Si.isMiddleAnchor=d3.isMiddleAnchor;Si.isBottomAnchor=d3.isBottomAnchor;var v3=Tie();Si.segmentsIntersect=v3.segmentsIntersect;Si.segmentDistance=v3.segmentDistance;Si.getTextLocation=v3.getTextLocation;Si.clearLocationCache=v3.clearLocationCache;Si.getVisibleSegment=v3.getVisibleSegment;Si.findPointOnPath=v3.findPointOnPath;var O6=Ao();Si.extendFlat=O6.extendFlat;Si.extendDeep=O6.extendDeep;Si.extendDeepAll=O6.extendDeepAll;Si.extendDeepNoArrays=O6.extendDeepNoArrays;var YO=H1();Si.log=YO.log;Si.warn=YO.warn;Si.error=YO.error;var Bit=n3();Si.counterRegex=Bit.counter;var KO=R6();Si.throttle=KO.throttle;Si.throttleDone=KO.done;Si.clearThrottle=KO.clear;var _g=OS();Si.getGraphDiv=_g.getGraphDiv;Si.isPlotDiv=_g.isPlotDiv;Si.removeElement=_g.removeElement;Si.addStyleRule=_g.addStyleRule;Si.addRelatedStyleRule=_g.addRelatedStyleRule;Si.deleteRelatedStyleRule=_g.deleteRelatedStyleRule;Si.setStyleOnHover=_g.setStyleOnHover;Si.getFullTransformMatrix=_g.getFullTransformMatrix;Si.getElementTransformMatrix=_g.getElementTransformMatrix;Si.getElementAndAncestors=_g.getElementAndAncestors;Si.equalDomRects=_g.equalDomRects;Si.clearResponsive=Mie();Si.preserveDrawingBuffer=kie();Si.makeTraceGroups=Pie();Si._=Rie();Si.notifier=CO();Si.filterUnique=ZO();Si.filterVisible=zie();Si.pushUnique=PO();Si.increment=qie();Si.cleanNumber=Nie();Si.ensureNumber=function(t){return Wie(t)?(t=Number(t),t>Zie||t=t?!1:Wie(e)&&e>=0&&e%1===0};Si.noop=_6();Si.identity=VS();Si.repeat=function(e,t){for(var r=new Array(t),n=0;nr?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};Si.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};Si.simpleMap=function(e,t,r,n,i){for(var a=e.length,o=new Array(a),s=0;s=Math.pow(2,r)?i>10?(Si.warn("randstr failed uniqueness"),o):e(t,r,n,(i||0)+1):o};Si.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(n){n[t]=e,r[n.name]=n,r.optionList.push(n)},r["_"+t]=e,r};Si.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,n=2*r,i=2*t-1,a=new Array(i),o=new Array(r),s,l,u,c;for(s=0;s=n&&(u-=n*Math.floor(u/n)),u<0?u=-1-u:u>=r&&(u=n-1-u),c+=e[u]*a[l];o[s]=c}return o};Si.syncOrAsync=function(e,t,r){var n,i;function a(){return Si.syncOrAsync(e,t,r)}for(;e.length;)if(i=e.splice(0,1)[0],n=i(t),n&&n.then)return n.then(a);return r&&r(t)};Si.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};Si.noneOrAll=function(e,t,r){if(e){var n=!1,i=!0,a,o;for(a=0;a0?i:0})};Si.fillArray=function(e,t,r,n){if(n=n||Si.identity,Si.isArrayOrTypedArray(e))for(var i=0;iVit.test(window.navigator.userAgent);var Git=/Firefox\/(\d+)\.\d+/;Si.getFirefoxVersion=function(){var e=Git.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};Si.isD3Selection=function(e){return e instanceof WS.selection};Si.ensureSingle=function(e,t,r,n){var i=e.select(t+(r?"."+r:""));if(i.size())return i;var a=e.append(t);return r&&a.classed(r,!0),n&&a.call(n),a};Si.ensureSingleById=function(e,t,r,n){var i=e.select(t+"#"+r);if(i.size())return i;var a=e.append(t).attr("id",r);return n&&a.call(n),a};Si.objectFromPath=function(e,t){for(var r=e.split("."),n,i=n={},a=0;a1?i+o[1]:"";if(a&&(o.length>1||s.length>4||r))for(;n.test(s);)s=s.replace(n,"$1"+a+"$2");return s+l};Si.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var $ie=/^\w*$/;Si.templateString=function(e,t){var r={};return e.replace(Si.TEMPLATE_STRING_REGEX,function(n,i){var a;return $ie.test(i)?a=t[i]:(r[i]=r[i]||Si.nestedProperty(t,i).get,a=r[i](!0)),a!==void 0?a:""})};var Wit={max:10,count:0,name:"hovertemplate"};Si.hovertemplateString=function(){return JO.apply(Wit,arguments)};var Xit={max:10,count:0,name:"texttemplate"};Si.texttemplateString=function(){return JO.apply(Xit,arguments)};var Zit=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Yit(e){var t=e.match(Zit);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var Kit={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Si.texttemplateStringForShapes=function(){return JO.apply(Kit,arguments)};var Gie=/^[:|\|]/;function JO(e,t,r){var n=this,i=arguments;return t||(t={}),e.replace(Si.TEMPLATE_STRING_REGEX,function(a,o,s){var l=o==="xother"||o==="yother",u=o==="_xother"||o==="_yother",c=o==="_xother_"||o==="_yother_",f=o==="xother_"||o==="yother_",h=l||u||f||c,d=o;(u||c)&&(d=d.substring(1)),(f||c)&&(d=d.substring(0,d.length-1));var v=null,_=null;if(n.parseMultDiv){var b=Yit(d);d=b.key,v=b.op,_=b.number}var p;if(h){if(p=t[d],p===void 0)return""}else{var C,E;for(E=3;E=z6&&o<=Hie,u=s>=z6&&s<=Hie;if(l&&(n=10*n+o-z6),u&&(i=10*i+s-z6),!l||!u){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var h3=2e9;Si.seedPseudoRandom=function(){h3=2e9};Si.pseudoRandom=function(){var e=h3;return h3=(69069*h3+1)%4294967296,Math.abs(h3-e)<429496729?Si.pseudoRandom():h3/4294967296};Si.fillText=function(e,t,r){var n=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},i=Si.extractOption(e,t,"htx","hovertext");if(Si.isValidTextValue(i))return n(i);var a=Si.extractOption(e,t,"tx","text");if(Si.isValidTextValue(a))return n(a)};Si.isValidTextValue=function(e){return e||e===0};Si.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",n=0;n1&&(u=1):u=0,Si.strTranslate(i-u*(r+o),a-u*(n+s))+Si.strScale(u)+(l?"rotate("+l+(t?"":" "+r+" "+n)+")":"")};Si.setTransormAndDisplay=function(e,t){e.attr("transform",Si.getTextTransform(t)),e.style("display",t.scale?null:"none")};Si.ensureUniformFontSize=function(e,t){var r=Si.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};Si.join2=function(e,t,r){var n=e.length;return n>1?e.slice(0,-1).join(t)+r+e[n-1]:e.join(t)};Si.bigFont=function(e){return Math.round(1.2*e)};var jie=Si.getFirefoxVersion(),Jit=jie!==null&&jie<86;Si.getPositionFromD3Event=function(){return Jit?[WS.event.layerX,WS.event.layerY]:[WS.event.offsetX,WS.event.offsetY]}});var rne=ye(()=>{"use strict";var $it=Dr(),ene={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X:focus-within .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for($O in ene)tne=$O.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),$it.addStyleRule(tne,ene[$O]);var tne,$O});var QO=ye((Grr,ine)=>{ine.exports=!0});var tq=ye((Hrr,nne)=>{"use strict";var Qit=QO(),eq;typeof window.matchMedia=="function"?eq=!window.matchMedia("(hover: none)").matches:eq=Qit;nne.exports=eq});var vb=ye((jrr,rq)=>{"use strict";var p3=typeof Reflect=="object"?Reflect:null,ane=p3&&typeof p3.apply=="function"?p3.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},q6;p3&&typeof p3.ownKeys=="function"?q6=p3.ownKeys:Object.getOwnPropertySymbols?q6=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:q6=function(t){return Object.getOwnPropertyNames(t)};function ent(e){console&&console.warn&&console.warn(e)}var sne=Number.isNaN||function(t){return t!==t};function Jc(){Jc.init.call(this)}rq.exports=Jc;rq.exports.once=nnt;Jc.EventEmitter=Jc;Jc.prototype._events=void 0;Jc.prototype._eventsCount=0;Jc.prototype._maxListeners=void 0;var one=10;function B6(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Jc,"defaultMaxListeners",{enumerable:!0,get:function(){return one},set:function(e){if(typeof e!="number"||e<0||sne(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");one=e}});Jc.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Jc.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||sne(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function lne(e){return e._maxListeners===void 0?Jc.defaultMaxListeners:e._maxListeners}Jc.prototype.getMaxListeners=function(){return lne(this)};Jc.prototype.emit=function(t){for(var r=[],n=1;n0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=a[t];if(l===void 0)return!1;if(typeof l=="function")ane(l,this,r);else for(var u=l.length,c=dne(l,u),n=0;n0&&o.length>i&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,ent(s)}return e}Jc.prototype.addListener=function(t,r){return une(this,t,r,!1)};Jc.prototype.on=Jc.prototype.addListener;Jc.prototype.prependListener=function(t,r){return une(this,t,r,!0)};function tnt(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function cne(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=tnt.bind(n);return i.listener=r,n.wrapFn=i,i}Jc.prototype.once=function(t,r){return B6(r),this.on(t,cne(this,t,r)),this};Jc.prototype.prependOnceListener=function(t,r){return B6(r),this.prependListener(t,cne(this,t,r)),this};Jc.prototype.removeListener=function(t,r){var n,i,a,o,s;if(B6(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){s=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():rnt(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};Jc.prototype.off=Jc.prototype.removeListener;Jc.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i=0;i--)this.removeListener(t,r[i]);return this};function fne(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?int(i):dne(i,i.length)}Jc.prototype.listeners=function(t){return fne(this,t,!0)};Jc.prototype.rawListeners=function(t){return fne(this,t,!1)};Jc.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):hne.call(e,t)};Jc.prototype.listenerCount=hne;function hne(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Jc.prototype.eventNames=function(){return this._eventsCount>0?q6(this._events):[]};function dne(e,t){for(var r=new Array(t),n=0;n{"use strict";var iq=vb().EventEmitter,ont={init:function(e){if(e._ev instanceof iq)return e;var t=new iq,r=new iq;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(n,i){t.emit(n,i),r.emit(n,i)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{}),e},triggerHandler:function(e,t,r){var n,i=e._ev;if(!i)return;var a=i._events[t];if(!a)return;function o(l){if(l.listener){if(i.removeListener(t,l.listener),!l.fired)return l.fired=!0,l.listener.apply(i,[r])}else return l.apply(i,[r])}a=Array.isArray(a)?a:[a];var s;for(s=0;s{"use strict";var gne=Dr(),snt=ub().dfltConfig;function lnt(e,t){for(var r=[],n,i=0;isnt.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};wy.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};wy.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};wy.undo=function(t){var r,n;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n{"use strict";_ne.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var _3=ye(Yh=>{"use strict";var x0=qa(),XS=Dr(),U6=Vl(),aq=s3(),unt=nq(),cnt=qS(),fnt=ub().configAttributes,xne=mc(),xg=XS.extendDeepAll,m3=XS.isPlainObject,hnt=XS.isArrayOrTypedArray,V6=XS.nestedProperty,dnt=XS.valObjectMeta,oq="_isSubplotObj",G6="_isLinkedToArray",vnt="_arrayAttrRegexps",wne="_deprecated",sq=[oq,G6,vnt,wne];Yh.IS_SUBPLOT_OBJ=oq;Yh.IS_LINKED_TO_ARRAY=G6;Yh.DEPRECATED=wne;Yh.UNDERSCORE_ATTRS=sq;Yh.get=function(){var e={};return x0.allTypes.forEach(function(t){e[t]=gnt(t)}),{defs:{valObjects:dnt,metaKeys:sq.concat(["description","role","editType","impliedEdits"]),editType:{traces:xne.traces,layout:xne.layout},impliedEdits:{}},traces:e,layout:mnt(),frames:ynt(),animation:y3(cnt),config:y3(fnt)}};Yh.crawl=function(e,t,r,n){var i=r||0;n=n||"",Object.keys(e).forEach(function(a){var o=e[a];if(sq.indexOf(a)===-1){var s=(n?n+".":"")+a;t(o,a,e,i,s),!Yh.isValObject(o)&&m3(o)&&a!=="impliedEdits"&&Yh.crawl(o,t,i+1,s)}})};Yh.isValObject=function(e){return e&&e.valType!==void 0};Yh.findArrayAttributes=function(e){var t=[],r=[],n=[],i,a;function o(l,u,c,f){r=r.slice(0,f).concat([u]),n=n.slice(0,f).concat([l&&l._isLinkedToArray]);var h=l&&(l.valType==="data_array"||l.arrayOk===!0)&&!(r[f-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&s(i,0,"")}function s(l,u,c){var f=l[r[u]],h=c+r[u];if(u===r.length-1)hnt(f)&&t.push(a+h);else if(n[u]){if(Array.isArray(f))for(var d=0;d=a.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var o=t[r];if(!N6(o))return!1;e=a[i][o]}else e=a[i]}else e=a}}return e}function N6(e){return e===Math.round(e)&&e>=0}function gnt(e){var t,r;t=x0.modules[e]._module,r=t.basePlotModule;var n={};n.type=null;var i=xg({},U6),a=xg({},t.attributes);Yh.crawl(a,function(l,u,c,f,h){V6(i,h).set(void 0),l===void 0&&V6(a,h).set(void 0)}),xg(n,i),x0.traceIs(e,"noOpacity")&&delete n.opacity,x0.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),x0.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),t.selectPoints||delete n.selectedpoints,xg(n,a),r.attributes&&xg(n,r.attributes),n.type=e;var o={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:y3(n)};if(t.layoutAttributes){var s={};xg(s,t.layoutAttributes),o.layoutAttributes=y3(s)}return t.animatable||Yh.crawl(o,function(l){Yh.isValObject(l)&&"anim"in l&&delete l.anim}),o}function mnt(){var e={},t,r;xg(e,aq);for(t in x0.subplotsRegistry)if(r=x0.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var n=0;n{"use strict";var x3=Dr(),Tnt=Vl(),Q1="templateitemname",lq={name:{valType:"string",editType:"none"}};lq[Q1]={valType:"string",editType:"calc"};pb.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=lq.name,t[Q1]=lq[Q1],t};pb.traceTemplater=function(e){var t={},r,n;for(r in e)n=e[r],Array.isArray(n)&&n.length&&(t[r]=0);function i(a){r=x3.coerce(a,{},Tnt,"type");var o={type:r,_template:null};if(r in t){n=e[r];var s=t[r]%n.length;t[r]++,o._template=n[s]}return o}return{newTrace:i}};pb.newContainer=function(e,t,r){var n=e._template,i=n&&(n[t]||r&&n[r]);x3.isPlainObject(i)||(i=null);var a=e[t]={_template:i};return a};pb.arrayTemplater=function(e,t,r){var n=e._template,i=n&&n[Sne(t)],a=n&&n[t];(!Array.isArray(a)||!a.length)&&(a=[]);var o={};function s(u){var c={name:u.name,_input:u},f=c[Q1]=u[Q1];if(!Ane(f))return c._template=i,c;for(var h=0;h=n&&(r._input||{})._templateitemname;a&&(i=n);var o=t+"["+i+"]",s;function l(){s={},a&&(s[o]={},s[o][Q1]=a)}l();function u(d,v){s[d]=v}function c(d,v){a?x3.nestedProperty(s[o],d).set(v):s[o+"."+d]=v}function f(){var d=s;return l(),d}function h(d,v){d&&c(d,v);var _=f();for(var b in _)x3.nestedProperty(e,b).set(_[b])}return{modifyBase:u,modifyItem:c,getUpdateObj:f,applyUpdate:h}}});var hd=ye((Jrr,Mne)=>{"use strict";var ZS=n3().counter;Mne.exports={idRegex:{x:ZS("x","( domain)?"),y:ZS("y","( domain)?")},attrRegex:ZS("[xy]axis"),xAxisMatch:ZS("xaxis"),yAxisMatch:ZS("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var hf=ye(wp=>{"use strict";var Ant=qa(),uq=hd();wp.id2name=function(t){if(!(typeof t!="string"||!t.match(uq.AX_ID_PATTERN))){var r=t.split(" ")[0].substr(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};wp.name2id=function(t){if(t.match(uq.AX_NAME_PATTERN)){var r=t.substr(5);return r==="1"&&(r=""),t.charAt(0)+r}};wp.cleanId=function(t,r,n){var i=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(uq.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(i&&!n)){var a=t.split(" ")[0].substr(1).replace(/^0+/,"");return a==="1"&&(a=""),t.charAt(0)+a+(i&&n?" domain":"")}};wp.list=function(e,t,r){var n=e._fullLayout;if(!n)return[];var i=wp.listIds(e,t),a=new Array(i.length),o;for(o=0;on?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)};wp.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Ene(e,t){if(t&&t.length){for(var r=0;r{"use strict";function Snt(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function Mnt(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Cne.exports={clearOutlineControllers:Snt,clearOutline:Mnt}});var H6=ye((eir,kne)=>{"use strict";kne.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Id=ye(W6=>{"use strict";var j6=qa(),tir=hd().SUBPLOT_PATTERN;W6.getSubplotCalcData=function(e,t,r){var n=j6.subplotsRegistry[t];if(!n)return[];for(var i=n.attr,a=[],o=0;o{"use strict";var Ent=qa(),b3=Dr();gb.manageCommandObserver=function(e,t,r,n){var i={},a=!0;t&&t._commandObserver&&(i=t._commandObserver),i.cache||(i.cache={}),i.lookupTable={};var o=gb.hasSimpleAPICommandBindings(e,r,i.lookupTable);if(t&&t._commandObserver){if(o)return i;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,i}if(o){Lne(e,o,i.cache),i.check=function(){if(a){var c=Lne(e,o,i.cache);return c.changed&&n&&i.lookupTable[c.value]!==void 0&&(i.disable(),Promise.resolve(n({value:c.value,type:o.type,prop:o.prop,traces:o.traces,index:i.lookupTable[c.value]})).then(i.enable,i.enable)),c.changed}};for(var s=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],l=0;l0?".":"")+i;b3.isPlainObject(a)?cq(a,t,o,n+1):t(o,i,a)}})}});var Mc=ye((nir,Xne)=>{"use strict";var Nne=Oa(),knt=e3().timeFormatLocale,Lnt=mO().formatLocale,YS=Eo(),Pnt=yO(),Xl=qa(),Une=_3(),Int=pl(),ja=Dr(),Vne=Ca(),Dne=hs().BADNUM,Tp=hf(),Rnt=e_().clearOutline,Dnt=H6(),fq=qS(),Fnt=nq(),znt=Id().getModuleCalcData,Fne=ja.relinkPrivateKeys,mb=ja._,ba=Xne.exports={};ja.extendFlat(ba,Xl);ba.attributes=Vl();ba.attributes.type.values=ba.allTypes;ba.fontAttrs=ec();ba.layoutAttributes=s3();var Z6=Rne();ba.executeAPICommand=Z6.executeAPICommand;ba.computeAPICommandBindings=Z6.computeAPICommandBindings;ba.manageCommandObserver=Z6.manageCommandObserver;ba.hasSimpleAPICommandBindings=Z6.hasSimpleAPICommandBindings;ba.redrawText=function(e){return e=ja.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(Xl.getComponentMethod("annotations","draw")(e),Xl.getComponentMethod("legend","draw")(e),Xl.getComponentMethod("colorbar","draw")(e),t(ba.previousPromises(e)))},300)})};ba.resize=function(e){e=ja.getGraphDiv(e);var t,r=new Promise(function(n,i){(!e||ja.isHidden(e))&&i(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||ja.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var a=e.changed;e.autoplay=!0,Xl.call("relayout",e,{autosize:!0}).then(function(){e.changed=a,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return t&&t(r),r};ba.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};ba.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=ja.ensureSingle(t._paper,"text","js-plot-link-container",function(l){l.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Vne.defaultLine,"pointer-events":"all"}).each(function(){var u=Nne.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),n=r.node(),i={y:t._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),r.attr(i);var a=r.select(".js-link-to-tool"),o=r.select(".js-link-spacer"),s=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&Ont(e,a),o.text(a.text()&&s.text()?" - ":"")}};function Ont(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)r.on("click",function(){ba.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),i=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+i})}}ba.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=Nne.select(e).append("div").attr("id","hiddenform").style("display","none"),n=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"}),i=n.append("input").attr({type:"text",name:"data"});return i.node().value=ba.graphJson(e,!1,"keepdata"),n.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var qnt=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Bnt=["year","month","dayMonth","dayMonthYear"];ba.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var i=e._fullLayout={},a=e.layout||{},o=e._fullData||[],s=e._fullData=[],l=e.data||[],u=e.calcdata||[],c=e._context||{},f;e._transitionData||ba.createTransitionData(e),i._dfltTitle={plot:mb(e,"Click to enter Plot title"),subtitle:mb(e,"Click to enter Plot subtitle"),x:mb(e,"Click to enter X axis title"),y:mb(e,"Click to enter Y axis title"),colorbar:mb(e,"Click to enter Colorscale title"),annotation:mb(e,"new text")},i._traceWord=mb(e,"trace");var h=zne(e,qnt);if(i._mapboxAccessToken=c.mapboxAccessToken,n._initialAutoSizeIsDone){var d=n.width,v=n.height;ba.supplyLayoutGlobalDefaults(a,i,h),a.width||(i.width=d),a.height||(i.height=v),ba.sanitizeMargins(i)}else{ba.supplyLayoutGlobalDefaults(a,i,h);var _=!a.width||!a.height,b=i.autosize,p=c.autosizable,C=_&&(b||p);C?ba.plotAutoSize(e,a,i):_&&ba.sanitizeMargins(i),!b&&_&&(a.width=i.width,a.height=i.height)}i._d3locale=Vnt(h,i.separators),i._extraFormat=zne(e,Bnt),i._initialAutoSizeIsDone=!0,i._dataLength=l.length,i._modules=[],i._visibleModules=[],i._basePlotModules=[];var E=i._subplots=Unt(),A=i._splomAxes={x:{},y:{}},L=i._splomSubplots={};i._splomGridDflt={},i._scatterStackOpts={},i._firstScatter={},i._alignmentOpts={},i._colorAxes={},i._requestRangeslider={},i._traceUids=Nnt(o,l),ba.supplyDataDefaults(l,s,a,i);var x=Object.keys(A.x),k=Object.keys(A.y);if(x.length>1&&k.length>1){for(Xl.getComponentMethod("grid","sizeDefaults")(a,i),f=0;f15&&k.length>15&&i.shapes.length===0&&i.images.length===0,ba.linkSubplots(s,i,o,n),ba.cleanPlot(s,i,o,n);var z=!!(n._has&&n._has("cartesian")),O=!!(i._has&&i._has("cartesian")),V=z,G=O;V&&!G?n._bgLayer.remove():G&&!V&&(i._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&Rnt({_fullLayout:n}),Gnt(s,i),Fne(i,n),Xl.getComponentMethod("colorscale","crossTraceDefaults")(s,i),i._preGUI||(i._preGUI={}),i._tracePreGUI||(i._tracePreGUI={});var Z=i._tracePreGUI,H={},N;for(N in Z)H[N]="old";for(f=0;f0){var c=1-2*a;o=Math.round(c*o),s=Math.round(c*s)}}var f=ba.layoutAttributes.width.min,h=ba.layoutAttributes.height.min;o1,v=!r.height&&Math.abs(n.height-s)>1;(v||d)&&(d&&(n.width=o),v&&(n.height=s)),t._initialAutoSize||(t._initialAutoSize={width:o,height:s}),ba.sanitizeMargins(n)};ba.supplyLayoutModuleDefaults=function(e,t,r,n){var i=Xl.componentsRegistry,a=t._basePlotModules,o,s,l,u=Xl.subplotsRegistry.cartesian;for(o in i)l=i[o],l.includeBasePlot&&l.includeBasePlot(e,t);a.length||a.push(u),t._has("cartesian")&&(Xl.getComponentMethod("grid","contentDefaults")(e,t),u.finalizeSubplots(e,t));for(var c in t._subplots)t._subplots[c].sort(ja.subplotSort);for(s=0;s1&&(r.l/=b,r.r/=b)}if(h){var p=(r.t+r.b)/h;p>1&&(r.t/=p,r.b/=p)}var C=r.xl!==void 0?r.xl:r.x,E=r.xr!==void 0?r.xr:r.x,A=r.yt!==void 0?r.yt:r.y,L=r.yb!==void 0?r.yb:r.y;d[t]={l:{val:C,size:r.l+_},r:{val:E,size:r.r+_},b:{val:L,size:r.b+_},t:{val:A,size:r.t+_}},v[t]=1}if(!n._replotting)return ba.doAutoMargin(e)}};function jnt(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Tp.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}ba.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,n=t.height;t._size||(t._size={}),Gne(t);var i=t._size,a=t.margin,o={t:0,b:0,l:0,r:0},s=ja.extendFlat({},i),l=a.l,u=a.r,c=a.t,f=a.b,h=t._pushmargin,d=t._pushmarginIds,v=t.minreducedwidth,_=t.minreducedheight;if(a.autoexpand!==!1){for(var b in h)d[b]||delete h[b];var p=e._fullLayout._reservedMargin;for(var C in p)for(var E in p[C]){var A=p[C][E];o[E]=Math.max(o[E],A)}h.base={l:{val:0,size:l},r:{val:1,size:u},t:{val:1,size:c},b:{val:0,size:f}};for(var L in o){var x=0;for(var k in h)k!=="base"&&YS(h[k][L].size)&&(x=h[k][L].size>x?h[k][L].size:x);var M=Math.max(0,a[L]-x);o[L]=Math.max(0,o[L]-M)}for(var g in h){var P=h[g].l||{},T=h[g].b||{},z=P.val,O=P.size,V=T.val,G=T.size,Z=r-o.r-o.l,H=n-o.t-o.b;for(var N in h){if(YS(O)&&h[N].r){var j=h[N].r.val,re=h[N].r.size;if(j>z){var oe=(O*j+(re-Z)*z)/(j-z),_e=(re*(1-z)+(O-Z)*(1-j))/(j-z);oe+_e>l+u&&(l=oe,u=_e)}}if(YS(G)&&h[N].t){var Me=h[N].t.val,ke=h[N].t.size;if(Me>V){var me=(G*Me+(ke-H)*V)/(Me-V),ie=(ke*(1-V)+(G-H)*(1-Me))/(Me-V);me+ie>f+c&&(f=me,c=ie)}}}}}var Se=ja.constrain(r-a.l-a.r,Hne,v),Le=ja.constrain(n-a.t-a.b,jne,_),Ae=Math.max(0,r-Se),De=Math.max(0,n-Le);if(Ae){var Pe=(l+u)/Ae;Pe>1&&(l/=Pe,u/=Pe)}if(De){var ge=(f+c)/De;ge>1&&(f/=ge,c/=ge)}if(i.l=Math.round(l)+o.l,i.r=Math.round(u)+o.r,i.t=Math.round(c)+o.t,i.b=Math.round(f)+o.b,i.p=Math.round(a.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!t._replotting&&(ba.didMarginChange(s,i)||jnt(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var Fe=3*(1+Object.keys(d).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};ba.graphJson=function(e,t,r,n,i,a){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&ba.supplyDefaults(e);var o=i?e._fullData:e.data,s=i?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(ja.isPlainObject(h)){var v={},_;return Object.keys(h).sort().forEach(function(E){if(["_","["].indexOf(E.charAt(0))===-1){if(typeof h[E]=="function"){d&&(v[E]="_function");return}if(r==="keepdata"){if(E.substr(E.length-3)==="src")return}else if(r==="keepstream"){if(_=h[E+"src"],typeof _=="string"&&_.indexOf(":")>0&&!ja.isPlainObject(h.stream))return}else if(r!=="keepall"&&(_=h[E+"src"],typeof _=="string"&&_.indexOf(":")>0))return;v[E]=u(h[E],d)}}),v}var b=Array.isArray(h),p=ja.isTypedArray(h);if((b||p)&&h.dtype&&h.shape){var C=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:ja.isArrayBuffer(C)?Pnt.encode(C):C},d)}return b?h.map(function(E){return u(E,d)}):p?ja.simpleMap(h,ja.identity):ja.isJSDate(h)?ja.ms2DateTimeLocal(+h):h}var c={data:(o||[]).map(function(h){var d=u(h);return t&&delete d.fit,d})};if(!t&&(c.layout=u(s),i)){var f=s._size;c.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(c.frames=u(l)),a&&(c.config=u(e._context,!0)),n==="object"?c:JSON.stringify(c)};ba.modifyFrames=function(e,t){var r,n,i,a=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return Xl.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function v(){return h++,function(){d++,!n&&d===h&&s(f)}}r.runFn(v),setTimeout(v())})}function s(f){if(e._transitionData)return a(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return Xl.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(f)}function l(){if(e._transitionData)return e._transitioning=!1,i(e._transitionData._interruptCallbacks)}var u=[ba.previousPromises,l,r.prepareFn,ba.rehover,ba.reselect,o],c=ja.syncOrAsync(u,e);return(!c||!c.then)&&(c=Promise.resolve()),c.then(function(){return e})}ba.doCalcdata=function(e,t){var r=Tp.list(e),n=e._fullData,i=e._fullLayout,a,o,s,l,u=new Array(n.length),c=(e.calcdata||[]).slice();for(e.calcdata=u,i._numBoxes=0,i._numViolins=0,i._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,i._piecolormap={},i._sunburstcolormap={},i._treemapcolormap={},i._iciclecolormap={},i._funnelareacolormap={},s=0;s=0;l--)if(L[l].enabled){a._indexToPoints=L[l]._indexToPoints;break}o&&o.calc&&(A=o.calc(e,a))}(!Array.isArray(A)||!A[0])&&(A=[{x:Dne,y:Dne}]),A[0].t||(A[0].t={}),A[0].trace=a,u[C]=A}}for(qne(r,n,i),s=0;s{"use strict";yb.xmlns="http://www.w3.org/2000/xmlns/";yb.svg="http://www.w3.org/2000/svg";yb.xlink="http://www.w3.org/1999/xlink";yb.svgAttrs={xmlns:yb.svg,"xmlns:xlink":yb.xlink}});var Kh=ye((oir,Zne)=>{"use strict";Zne.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var iu=ye(b0=>{"use strict";var Ch=Oa(),Ty=Dr(),Ynt=Ty.strTranslate,hq=Wp(),Knt=Kh().LINE_SPACING,Jnt=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;b0.convertToTspans=function(e,t,r){var n=e.text(),i=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&n.match(Jnt),a=Ch.select(e.node().parentNode);if(a.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function s(){a.empty()||(o=e.attr("class")+"-math",a.select("svg."+o).remove()),e.text("").style("white-space","pre");var l=cat(e.node(),n);l&&e.style("pointer-events","all"),b0.positionText(e),r&&r.call(e)}return i?(t&&t._promises||[]).push(new Promise(function(l){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),c={fontSize:u};tat(i[2],c,function(f,h,d){a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove();var v=f&&f.select("svg");if(!v||!v.node()){s(),l();return}var _=a.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});_.node().appendChild(v.node()),h&&h.node()&&v.node().insertBefore(h.node().cloneNode(!0),v.node().firstChild);var b=d.width,p=d.height;v.attr({class:o,height:p,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var C=e.node().style.fill||"black",E=v.select("g");E.attr({fill:C,stroke:C});var A=E.node().getBoundingClientRect(),L=A.width,x=A.height;(L>b||x>p)&&(v.style("overflow","hidden"),A=v.node().getBoundingClientRect(),L=A.width,x=A.height);var k=+e.attr("x"),M=+e.attr("y"),g=u||e.node().getBoundingClientRect().height,P=-g/4;if(o[0]==="y")_.attr({transform:"rotate("+[-90,k,M]+")"+Ynt(-L/2,P-x/2)});else if(o[0]==="l")M=P-x/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)k=0,M=P;else{var T=e.attr("text-anchor");k=k-L*(T==="middle"?.5:T==="end"?1:0),M=M+P-x/2}v.attr({x:k,y:M}),r&&r.call(e,_),l(_)})})):s(),e};var $nt=/(<|<|<)/g,Qnt=/(>|>|>)/g;function eat(e){return e.replace($nt,"\\lt ").replace(Qnt,"\\gt ")}var Yne=[["$","$"],["\\(","\\)"]];function tat(e,t,r){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){Ty.warn("No MathJax version:",MathJax.version);return}var i,a,o,s,l=function(){return a=Ty.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:Yne},displayAlign:"left"})},u=function(){a=Ty.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=Yne},c=function(){if(i=MathJax.Hub.config.menuSettings.renderer,i!=="SVG")return MathJax.Hub.setRenderer("SVG")},f=function(){i=MathJax.config.startup.output,i!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var C="math-output-"+Ty.randstr({},64);s=Ch.select("body").append("div").attr({id:C}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(eat(e));var E=s.node();return n===2?MathJax.Hub.Typeset(E):MathJax.typeset([E])},d=function(){var C=s.select(n===2?".MathJax_SVG":".MathJax"),E=!C.empty()&&s.select("svg").node();if(!E)Ty.log("There was an error in the tex syntax.",e),r();else{var A=E.getBoundingClientRect(),L;n===2?L=Ch.select("body").select("#MathJax_SVG_glyphs"):L=C.select("defs"),r(C,L,A)}s.remove()},v=function(){if(i!=="SVG")return MathJax.Hub.setRenderer(i)},_=function(){i!=="svg"&&(MathJax.config.startup.output=i)},b=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(a)},p=function(){MathJax.config=a};n===2?MathJax.Hub.Queue(l,c,h,d,v,b):n===3&&(u(),f(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),_(),p()}))}var Qne={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},rat={sub:"0.3em",sup:"-0.6em"},iat={sub:"-0.21em",sup:"0.42em"},Kne="\u200B",Jne=["http:","https:","mailto:","",void 0,":"],eae=b0.NEWLINES=/(\r\n?|\n)/g,vq=/(<[^<>]*>)/,pq=/<(\/?)([^ >]*)(\s+(.*))?>/i,nat=//i;b0.BR_TAG_ALL=//gi;var tae=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,rae=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,iae=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,aat=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function _b(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&Y6(n)}var oat=/(^|;)\s*color:/;b0.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,n=t.allowedTags!==void 0?t.allowedTags:["br"],i="...",a=i.length,o=e.split(vq),s=[],l="",u=0,c=0;ca?s.push(f.substr(0,_-a)+i):s.push(f.substr(0,_));break}l=""}}return s.join("")};var sat={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},lat=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Y6(e){return e.replace(lat,function(t,r){var n;return r.charAt(0)==="#"?n=uat(r.charAt(1)==="x"?parseInt(r.substr(2),16):parseInt(r.substr(1),10)):n=sat[r],n||t})}b0.convertEntities=Y6;function uat(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function cat(e,t){t=t.replace(eae," ");var r=!1,n=[],i,a=-1;function o(){a++;var x=document.createElementNS(hq.svg,"tspan");Ch.select(x).attr({class:"line",dy:a*Knt+"em"}),e.appendChild(x),i=x;var k=n;if(n=[{node:x}],k.length>1)for(var M=1;M.",t);return}var k=n.pop();x!==k.type&&Ty.log("Start tag <"+k.type+"> doesnt match end tag <"+x+">. Pretending it did match.",t),i=n[n.length-1].node}var c=nat.test(t);c?o():(i=e,n=[{node:e}]);for(var f=t.split(vq),h=0;h{"use strict";var fat=Oa(),J6=cd(),JS=Eo(),K6=Dr(),aae=Ca(),hat=sb().isValid;function dat(e,t,r){var n=t?K6.nestedProperty(e,t).get()||{}:e,i=n[r||"color"];i&&i._inputArray&&(i=i._inputArray);var a=!1;if(K6.isArrayOrTypedArray(i)){for(var o=0;o=0;n--,i++){var a=e[n];r[i]=[1-a[0],a[1]]}return r}function fae(e,t){t=t||{};for(var r=e.domain,n=e.range,i=n.length,a=new Array(i),o=0;o{"use strict";var dae=zO(),pat=dae.FORMAT_LINK,gat=dae.DATE_FORMAT_LINK;function mat(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?gq:vae)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function gq(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+pat+"."].join(" ")}function vae(e,t){return gq(e,t)+[" And for dates see: "+gat+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}pae.exports={axisHoverFormat:mat,descriptionOnlyNumbers:gq,descriptionWithDates:vae}});var Rd=ye((fir,Iae)=>{"use strict";var gae=ec(),w3=Eh(),Pae=Pd().dash,yq=Ao().extendFlat,mae=pl().templatedArray,cir=Qo().templateFormatStringDescription,yae=df().descriptionWithDates,yat=hs().ONEDAY,pm=hd(),_at=pm.HOUR_PATTERN,xat=pm.WEEKDAY_PATTERN,mq={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},bat=yq({},mq,{values:mq.values.slice().concat(["sync"])});function _ae(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var xae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},bae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},wae={valType:"data_array",editType:"ticks"},Tae={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function Aae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function Sae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Mae={valType:"color",dflt:w3.defaultLine,editType:"ticks"},Eae={valType:"color",dflt:w3.lightLine,editType:"ticks"};function Cae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var kae=yq({},Pae,{editType:"ticks"}),Lae={valType:"boolean",editType:"ticks"};Iae.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:gae({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[pm.idRegex.x.toString(),pm.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[pm.idRegex.x.toString(),pm.idRegex.y.toString()],editType:"calc"},rangebreaks:mae("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[xat,_at,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:yat},editType:"calc"}),tickmode:bat,nticks:_ae(),tick0:xae,dtick:bae,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:wae,ticktext:{valType:"data_array",editType:"ticks"},ticks:Tae,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:Aae(),tickwidth:Sae(),tickcolor:Mae,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:yq({},Pae,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:gae({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:yae("tick label")},tickformatstops:mae("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:yae("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:w3.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:Lae,gridcolor:Eae,gridwidth:Cae(),griddash:kae,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",pm.idRegex.x.toString(),pm.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",pm.idRegex.x.toString(),pm.idRegex.y.toString()],editType:"plot"},minor:{tickmode:mq,nticks:_ae("minor"),tick0:xae,dtick:bae,tickvals:wae,ticks:Tae,ticklen:Aae("minor"),tickwidth:Sae("minor"),tickcolor:Mae,gridcolor:Eae,gridwidth:Cae("minor"),griddash:kae,showgrid:Lae,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var $6=ye((hir,Fae)=>{"use strict";var $c=Rd(),Rae=ec(),Dae=Ao().extendFlat,wat=mc().overrideAll;Fae.exports=wat({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:$c.linecolor,outlinewidth:$c.linewidth,bordercolor:$c.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:$c.minor.tickmode,nticks:$c.nticks,tick0:$c.tick0,dtick:$c.dtick,tickvals:$c.tickvals,ticktext:$c.ticktext,ticks:Dae({},$c.ticks,{dflt:""}),ticklabeloverflow:Dae({},$c.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:$c.ticklen,tickwidth:$c.tickwidth,tickcolor:$c.tickcolor,ticklabelstep:$c.ticklabelstep,showticklabels:$c.showticklabels,labelalias:$c.labelalias,tickfont:Rae({}),tickangle:$c.tickangle,tickformat:$c.tickformat,tickformatstops:$c.tickformatstops,tickprefix:$c.tickprefix,showtickprefix:$c.showtickprefix,ticksuffix:$c.ticksuffix,showticksuffix:$c.showticksuffix,separatethousands:$c.separatethousands,exponentformat:$c.exponentformat,minexponent:$c.minexponent,showexponent:$c.showexponent,title:{text:{valType:"string"},font:Rae({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Tu=ye((vir,Oae)=>{"use strict";var Tat=$6(),Aat=n3().counter,Sat=Y1(),zae=sb().scales,dir=Sat(zae);function Q6(e){return"`"+e+"`"}Oae.exports=function(t,r){t=t||"",r=r||{};var n=r.cLetter||"c",i="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,a="noScale"in r?r.noScale:t==="marker.line",o="showScaleDflt"in r?r.showScaleDflt:n==="z",s=typeof r.colorscaleDflt=="string"?zae[r.colorscaleDflt]:null,l=r.editTypeOverride||"",u=t?t+".":"",c,f;"colorAttr"in r?(c=r.colorAttr,f=r.colorAttr):(c={z:"z",c:"color"}[n],f="in "+Q6(u+c));var h=i?" Has an effect only if "+f+" is set to a numerical array.":"",d=n+"auto",v=n+"min",_=n+"max",b=n+"mid",p=Q6(u+d),C=Q6(u+v),E=Q6(u+_),A=C+" and "+E,L={};L[v]=L[_]=void 0;var x={};x[d]=!1;var k={};return c==="color"&&(k.color={valType:"color",arrayOk:!0,editType:l||"style"},r.anim&&(k.color.anim=!0)),k[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:L},k[v]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:x},k[_]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:x},k[b]={valType:"number",dflt:null,editType:"calc",impliedEdits:L},k.colorscale={valType:"colorscale",editType:"calc",dflt:s,impliedEdits:{autocolorscale:!1}},k.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},k.reversescale={valType:"boolean",dflt:!1,editType:"plot"},a||(k.showscale={valType:"boolean",dflt:o,editType:"calc"},k.colorbar=Tat),r.noColorAxis||(k.coloraxis={valType:"subplotid",regex:Aat("coloraxis"),dflt:null,editType:"calc"}),k}});var xq=ye((pir,qae)=>{"use strict";var Mat=Ao().extendFlat,Eat=Tu(),_q=sb().scales;qae.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:_q.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:_q.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:_q.RdBu,editType:"calc"}},coloraxis:Mat({_isSubplotObj:!0,editType:"calc"},Eat("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var bq=ye((gir,Bae)=>{"use strict";var Cat=Dr();Bae.exports=function(t){return Cat.isPlainObject(t.colorbar)}});var Aq=ye(Tq=>{"use strict";var wq=Eo(),Nae=Dr(),Uae=hs(),kat=Uae.ONEDAY,Lat=Uae.ONEWEEK;Tq.dtick=function(e,t){var r=t==="log",n=t==="date",i=t==="category",a=n?kat:1;if(!e)return a;if(wq(e))return e=Number(e),e<=0?a:i?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||r))return a;var o=e.charAt(0),s=e.substr(1);return s=wq(s)?Number(s):0,s<=0||!(n&&o==="M"&&s===Math.round(s)||r&&o==="L"||r&&o==="D"&&(s===1||s===2))?a:e};Tq.tick0=function(e,t,r,n){if(t==="date")return Nae.cleanDate(e,Nae.dateTick0(r,n%Lat===0?1:0));if(!(n==="D1"||n==="D2"))return wq(e)?Number(e):0}});var xb=ye((yir,Gae)=>{"use strict";var Vae=Aq(),Pat=Dr().isArrayOrTypedArray,Iat=vv().isTypedArraySpec,Rat=vv().decodeTypedArraySpec;Gae.exports=function(t,r,n,i,a){a||(a={});var o=a.isMinor,s=o?t.minor||{}:t,l=o?r.minor:r,u=o?"minor.":"";function c(C){var E=s[C];return Iat(E)&&(E=Rat(E)),E!==void 0?E:(l._template||{})[C]}var f=c("tick0"),h=c("dtick"),d=c("tickvals"),v=Pat(d)?"array":h?"linear":"auto",_=n(u+"tickmode",v);if(_==="auto"||_==="sync")n(u+"nticks");else if(_==="linear"){var b=l.dtick=Vae.dtick(h,i);l.tick0=Vae.tick0(f,i,r.calendar,b)}else if(i!=="multicategory"){var p=n(u+"tickvals");p===void 0?l.tickmode="auto":o||n("ticktext")}}});var T3=ye((_ir,jae)=>{"use strict";var Sq=Dr(),Hae=Rd();jae.exports=function(t,r,n,i){var a=i.isMinor,o=a?t.minor||{}:t,s=a?r.minor:r,l=a?Hae.minor:Hae,u=a?"minor.":"",c=Sq.coerce2(o,s,l,"ticklen",a?(r.ticklen||5)*.6:void 0),f=Sq.coerce2(o,s,l,"tickwidth",a?r.tickwidth||1:void 0),h=Sq.coerce2(o,s,l,"tickcolor",(a?r.tickcolor:void 0)||s.color),d=n(u+"ticks",!a&&i.outerTicks||c||f||h?"outside":"");d||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}});var Mq=ye((xir,Wae)=>{"use strict";Wae.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],n=r.filter(function(a){return t[a]!==void 0}),i=function(a){return t[a]===t[n[0]]};if(n.every(i)||n.length===1)return t[n[0]]}});var Yd=ye((bir,Xae)=>{"use strict";var eL=Dr(),Dat=pl();Xae.exports=function(t,r,n){var i=n.name,a=n.inclusionAttr||"visible",o=r[i],s=eL.isArrayOrTypedArray(t[i])?t[i]:[],l=r[i]=[],u=Dat.arrayTemplater(r,i,a),c,f;for(c=0;c{"use strict";var Eq=Dr(),Fat=Ca().contrast,Zae=Rd(),zat=Mq(),Oat=Yd();Yae.exports=function(t,r,n,i,a){a||(a={});var o=n("labelalias");Eq.isPlainObject(o)||delete r.labelalias;var s=zat(t),l=n("showticklabels");if(l){a.noTicklabelshift||n("ticklabelshift"),a.noTicklabelstandoff||n("ticklabelstandoff");var u=a.font||{},c=r.color,f=r.ticklabelposition||"",h=f.indexOf("inside")!==-1?Fat(a.bgColor):c&&c!==Zae.color.dflt?c:u.color;if(Eq.coerceFont(n,"tickfont",u,{overrideDflt:{color:h}}),!a.noTicklabelstep&&i!=="multicategory"&&i!=="log"&&n("ticklabelstep"),!a.noAng){var d=n("tickangle");!a.noAutotickangles&&d==="auto"&&n("autotickangles")}if(i!=="category"){var v=n("tickformat");Oat(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:qat}),r.tickformatstops.length||delete r.tickformatstops,!a.noExp&&!v&&i!=="date"&&(n("showexponent",s),n("exponentformat"),n("minexponent"),n("separatethousands"))}!a.noMinorloglabels&&i==="log"&&n("minorloglabels")}};function qat(e,t){function r(i,a){return Eq.coerce(e,t,Zae.tickformatstops,i,a)}var n=r("enabled");n&&(r("dtickrange"),r("value"))}});var r_=ye((Tir,Kae)=>{"use strict";var Bat=Mq();Kae.exports=function(t,r,n,i,a){a||(a={});var o=a.tickSuffixDflt,s=Bat(t),l=n("tickprefix");l&&n("showtickprefix",s);var u=n("ticksuffix",o);u&&n("showticksuffix",s)}});var Cq=ye((Air,Jae)=>{"use strict";var i_=Dr(),Nat=pl(),Uat=xb(),Vat=T3(),Gat=t_(),Hat=r_(),jat=$6();Jae.exports=function(t,r,n){var i=Nat.newContainer(r,"colorbar"),a=t.colorbar||{};function o(T,z){return i_.coerce(a,i,jat,T,z)}var s=n.margin||{t:0,b:0,l:0,r:0},l=n.width-s.l-s.r,u=n.height-s.t-s.b,c=o("orientation"),f=c==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(f?l:u):30);var d=o("lenmode");o("len",d==="fraction"?1:f?u:l);var v=o("yref"),_=o("xref"),b=v==="paper",p=_==="paper",C,E,A,L="left";f?(A="middle",L=p?"left":"right",C=p?1.02:1,E=.5):(A=b?"bottom":"top",L="center",C=.5,E=b?1.02:1),i_.coerce(a,i,{x:{valType:"number",min:p?-2:0,max:p?3:1,dflt:C}},"x"),i_.coerce(a,i,{y:{valType:"number",min:b?-2:0,max:b?3:1,dflt:E}},"y"),o("xanchor",L),o("xpad"),o("yanchor",A),o("ypad"),i_.noneOrAll(a,i,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var x=i_.coerce(a,i,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:f?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",x.indexOf("inside")!==-1?"hide past domain":"hide past div"),Uat(a,i,o,"linear");var k=n.font,M={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:k};x.indexOf("inside")!==-1&&(M.bgColor="black"),Hat(a,i,o,"linear",M),Gat(a,i,o,"linear",M),Vat(a,i,o,"linear",M),o("title.text",n._dfltTitle.colorbar);var g=i.showticklabels?i.tickfont:k,P=i_.extendFlat({},k,{family:g.family,size:i_.bigFont(g.size)});i_.coerceFont(o,"title.font",P),o("title.side",f?"top":"right")}});var Jh=ye((Sir,eoe)=>{"use strict";var $ae=Eo(),Lq=Dr(),Wat=bq(),Xat=Cq(),Qae=sb().isValid,Zat=qa().traceIs;function kq(e,t){var r=t.slice(0,t.length-1);return t?Lq.nestedProperty(e,r).get()||{}:e}eoe.exports=function e(t,r,n,i,a){var o=a.prefix,s=a.cLetter,l="_module"in r,u=kq(t,o),c=kq(r,o),f=kq(r._template||{},o)||{},h=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,n,i,a)};if(l){var d=n._colorAxes||{},v=i(o+"coloraxis");if(v){var _=Zat(r,"contour")&&Lq.nestedProperty(r,"contours.coloring").get()||"heatmap",b=d[v];b?(b[2].push(h),b[0]!==_&&(b[0]=!1,Lq.warn(["Ignoring coloraxis:",v,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[v]=[_,r,[h]];return}}var p=u[s+"min"],C=u[s+"max"],E=$ae(p)&&$ae(C)&&p{"use strict";var toe=Dr(),Yat=pl(),roe=xq(),Kat=Jh();ioe.exports=function(t,r){function n(f,h){return toe.coerce(t,r,roe,f,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var i=r._colorAxes,a,o;function s(f,h){return toe.coerce(a,o,roe.coloraxis,f,h)}for(var l in i){var u=i[l];if(u[0])a=t[l]||{},o=Yat.newContainer(r,l,"coloraxis"),o._name=l,Kat(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var c=0;c{"use strict";var Jat=Dr(),$at=Dv().hasColorscale,Qat=Dv().extractOpts;aoe.exports=function(t,r){function n(c,f){var h=c["_"+f];h!==void 0&&(c[f]=h)}function i(c,f){var h=f.container?Jat.nestedProperty(c,f.container).get():c;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var d=Qat(h),v=d.auto;(v||d.min===void 0)&&n(h,f.min),(v||d.max===void 0)&&n(h,f.max),d.autocolorscale&&n(h,"colorscale")}}for(var a=0;a{"use strict";var soe=Eo(),Pq=Dr(),eot=Dv().extractOpts;loe.exports=function(t,r,n){var i=t._fullLayout,a=n.vals,o=n.containerStr,s=o?Pq.nestedProperty(r,o).get():r,l=eot(s),u=l.auto!==!1,c=l.min,f=l.max,h=l.mid,d=function(){return Pq.aggNums(Math.min,null,a)},v=function(){return Pq.aggNums(Math.max,null,a)};if(c===void 0?c=d():u&&(s._colorAx&&soe(c)?c=Math.min(c,d()):c=d()),f===void 0?f=v():u&&(s._colorAx&&soe(f)?f=Math.max(f,v()):f=v()),u&&h!==void 0&&(f-h>h-c?c=h-(f-h):f-h=0?_=i.colorscale.sequential:_=i.colorscale.sequentialminus,l._sync("colorscale",_)}}});var tc=ye((kir,uoe)=>{"use strict";var tL=sb(),A3=Dv();uoe.exports={moduleType:"component",name:"colorscale",attributes:Tu(),layoutAttributes:xq(),supplyLayoutDefaults:noe(),handleDefaults:Jh(),crossTraceDefaults:ooe(),calc:Fv(),scales:tL.scales,defaultScale:tL.defaultScale,getScale:tL.get,isValidScale:tL.isValid,hasColorscale:A3.hasColorscale,extractOpts:A3.extractOpts,extractScale:A3.extractScale,flipScale:A3.flipScale,makeColorScaleFunc:A3.makeColorScaleFunc,makeColorScaleFuncFromTrace:A3.makeColorScaleFuncFromTrace}});var Ru=ye((Lir,foe)=>{"use strict";var coe=Dr(),tot=vv().isTypedArraySpec;foe.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return coe.isPlainObject(t)&&(coe.isArrayOrTypedArray(t.size)||tot(t.size))}}});var S3=ye((Pir,hoe)=>{"use strict";var rot=Eo();hoe.exports=function(t,r){r||(r=2);var n=t.marker,i=n.sizeref||1,a=n.sizemin||0,o=n.sizemode==="area"?function(s){return Math.sqrt(s/i)}:function(s){return s/i};return function(s){var l=o(s/r);return rot(l)&&l>0?Math.max(l,a):0}}});var rp=ye(pv=>{"use strict";var doe=Dr();pv.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};pv.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],n=e.yaxes||[],i=0;i=0&&r.index{goe.exports=sot;var Iq={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},oot=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function sot(e){var t=[];return e.replace(oot,function(r,n,i){var a=n.toLowerCase();for(i=uot(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==Iq[a])return i.unshift(n),t.push(i);if(i.length{"use strict";var cot=$S(),ca=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},ds="M0,0Z",moe=Math.sqrt(2),n_=Math.sqrt(3),Rq=Math.PI,Dq=Math.cos,Fq=Math.sin;woe.exports={circle:{n:0,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return r?ps(t,r,i):i}},square:{n:1,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.3,2);return ps(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.4,2),i=ca(e*1.2,2);return ps(t,r,"M"+i+","+n+"H"+n+"V"+i+"H-"+n+"V"+n+"H-"+i+"V-"+n+"H-"+n+"V-"+i+"H"+n+"V-"+n+"H"+i+"Z")}},x:{n:4,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.8/moe,2),i="l"+n+","+n,a="l"+n+",-"+n,o="l-"+n+",-"+n,s="l-"+n+","+n;return ps(t,r,"M0,"+n+i+a+o+a+o+s+o+s+i+s+i+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2/n_,2),i=ca(e/2,2),a=ca(e,2);return ps(t,r,"M-"+n+","+i+"H"+n+"L0,-"+a+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2/n_,2),i=ca(e/2,2),a=ca(e,2);return ps(t,r,"M-"+n+",-"+i+"H"+n+"L0,"+a+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2/n_,2),i=ca(e/2,2),a=ca(e,2);return ps(t,r,"M"+i+",-"+n+"V"+n+"L-"+a+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2/n_,2),i=ca(e/2,2),a=ca(e,2);return ps(t,r,"M-"+i+",-"+n+"V"+n+"L"+a+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.6,2),i=ca(e*1.2,2);return ps(t,r,"M-"+i+",-"+n+"H"+n+"V"+i+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.6,2),i=ca(e*1.2,2);return ps(t,r,"M"+n+",-"+i+"V"+n+"H-"+i+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.6,2),i=ca(e*1.2,2);return ps(t,r,"M"+i+","+n+"H-"+n+"V-"+i+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.6,2),i=ca(e*1.2,2);return ps(t,r,"M-"+n+","+i+"V-"+n+"H"+i+"Z")}},pentagon:{n:13,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.951,2),i=ca(e*.588,2),a=ca(-e,2),o=ca(e*-.309,2),s=ca(e*.809,2);return ps(t,r,"M"+n+","+o+"L"+i+","+s+"H-"+i+"L-"+n+","+o+"L0,"+a+"Z")}},hexagon:{n:14,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e/2,2),a=ca(e*n_/2,2);return ps(t,r,"M"+a+",-"+i+"V"+i+"L0,"+n+"L-"+a+","+i+"V-"+i+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e/2,2),a=ca(e*n_/2,2);return ps(t,r,"M-"+i+","+a+"H"+i+"L"+n+",0L"+i+",-"+a+"H-"+i+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.924,2),i=ca(e*.383,2);return ps(t,r,"M-"+i+",-"+n+"H"+i+"L"+n+",-"+i+"V"+i+"L"+i+","+n+"H-"+i+"L-"+n+","+i+"V-"+i+"Z")}},star:{n:17,f:function(e,t,r){if(vs(t))return ds;var n=e*1.4,i=ca(n*.225,2),a=ca(n*.951,2),o=ca(n*.363,2),s=ca(n*.588,2),l=ca(-n,2),u=ca(n*-.309,2),c=ca(n*.118,2),f=ca(n*.809,2),h=ca(n*.382,2);return ps(t,r,"M"+i+","+u+"H"+a+"L"+o+","+c+"L"+s+","+f+"L0,"+h+"L-"+s+","+f+"L-"+o+","+c+"L-"+a+","+u+"H-"+i+"L0,"+l+"Z")}},hexagram:{n:18,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.66,2),i=ca(e*.38,2),a=ca(e*.76,2);return ps(t,r,"M-"+a+",0l-"+i+",-"+n+"h"+a+"l"+i+",-"+n+"l"+i+","+n+"h"+a+"l-"+i+","+n+"l"+i+","+n+"h-"+a+"l-"+i+","+n+"l-"+i+",-"+n+"h-"+a+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*n_*.8,2),i=ca(e*.8,2),a=ca(e*1.6,2),o=ca(e*4,2),s="A "+o+","+o+" 0 0 1 ";return ps(t,r,"M-"+n+","+i+s+n+","+i+s+"0,-"+a+s+"-"+n+","+i+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*n_*.8,2),i=ca(e*.8,2),a=ca(e*1.6,2),o=ca(e*4,2),s="A "+o+","+o+" 0 0 1 ";return ps(t,r,"M"+n+",-"+i+s+"-"+n+",-"+i+s+"0,"+a+s+n+",-"+i+"Z")}},"star-square":{n:21,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.1,2),i=ca(e*2,2),a="A "+i+","+i+" 0 0 1 ";return ps(t,r,"M-"+n+",-"+n+a+"-"+n+","+n+a+n+","+n+a+n+",-"+n+a+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2),i=ca(e*1.9,2),a="A "+i+","+i+" 0 0 1 ";return ps(t,r,"M-"+n+",0"+a+"0,"+n+a+n+",0"+a+"0,-"+n+a+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.7,2),i=ca(e*1.4,2);return ps(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2),i=ca(e*.7,2);return ps(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e/moe,2);return ps(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.3,2);return ps(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.3,2),i=ca(e*.65,2);return ps(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+i+",-"+i+"L"+i+","+i+"M-"+i+","+i+"L"+i+",-"+i)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2);return ps(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*.85,2);return ps(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(vs(t))return ds;var n=ca(e/2,2),i=ca(e,2);return ps(t,r,"M"+n+","+i+"V-"+i+"M"+(n-i)+",-"+i+"V"+i+"M"+i+","+n+"H-"+i+"M-"+i+","+(n-i)+"H"+i)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return ps(t,r,"M-"+n+","+a+"L0,0M"+n+","+a+"L0,0M0,-"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return ps(t,r,"M-"+n+",-"+a+"L0,0M"+n+",-"+a+"L0,0M0,"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return ps(t,r,"M"+a+","+n+"L0,0M"+a+",-"+n+"L0,0M-"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return ps(t,r,"M-"+a+","+n+"L0,0M-"+a+",-"+n+"L0,0M"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2);return ps(t,r,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2);return ps(t,r,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e*2,2);return ps(t,r,"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e*2,2);return ps(t,r,"M0,0L-"+n+",-"+i+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2,2),i=ca(e,2);return ps(t,r,"M0,0L"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2,2),i=ca(e,2);return ps(t,r,"M0,0L-"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e*2,2);return ps(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e*2,2);return ps(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+i+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2,2),i=ca(e,2);return ps(t,r,"M0,-"+i+"V"+i+"M0,0L"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2,2),i=ca(e,2);return ps(t,r,"M0,-"+i+"V"+i+"M0,0L-"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(vs(t))return ds;var n=Rq/2.5,i=2*e*Dq(n),a=2*e*Fq(n);return ps(t,r,"M0,0L"+-i+","+a+"L"+i+","+a+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(vs(t))return ds;var n=Rq/4,i=2*e*Dq(n),a=2*e*Fq(n);return ps(t,r,"M0,0L"+-i+","+a+"A "+2*e+","+2*e+" 0 0 1 "+i+","+a+"Z")},backoff:.4,noDot:!0}};function vs(e){return e===null}var yoe,_oe,xoe,boe;function ps(e,t,r){if((!e||e%360===0)&&!t)return r;if(xoe===e&&boe===t&&yoe===r)return _oe;xoe=e,boe=t,yoe=r;function n(b,p){var C=Dq(b),E=Fq(b),A=p[0],L=p[1]+(t||0);return[A*C-L*E,A*E+L*C]}for(var i=e/180*Rq,a=0,o=0,s=cot(r),l="",u=0;u{"use strict";var dd=Oa(),Du=Dr(),fot=Du.numberFormat,Ab=Eo(),Uq=cd(),iL=qa(),Kd=Ca(),hot=tc(),eM=Du.strTranslate,nL=iu(),dot=Wp(),vot=Kh(),pot=vot.LINE_SPACING,Roe=U1().DESELECTDIM,got=Ru(),mot=S3(),yot=rp().appendArrayPointValue,Sa=Goe.exports={};Sa.font=function(e,t){var r=t.variant,n=t.style,i=t.weight,a=t.color,o=t.size,s=t.family,l=t.shadow,u=t.lineposition,c=t.textcase;s&&e.style("font-family",s),o+1&&e.style("font-size",o+"px"),a&&e.call(Kd.fill,a),i&&e.style("font-weight",i),n&&e.style("font-style",n),r&&e.style("font-variant",r),c&&e.style("text-transform",zq(xot(c))),l&&e.style("text-shadow",l==="auto"?nL.makeTextShadow(Kd.contrast(a)):zq(l)),u&&e.style("text-decoration-line",zq(bot(u)))};function zq(e){return e==="none"?void 0:e}var _ot={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function xot(e){return _ot[e]}function bot(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Sa.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};Sa.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};Sa.setRect=function(e,t,r,n,i){e.call(Sa.setPosition,t,r).call(Sa.setSize,n,i)};Sa.translatePoint=function(e,t,r,n){var i=r.c2p(e.x),a=n.c2p(e.y);if(Ab(i)&&Ab(a)&&t.node())t.node().nodeName==="text"?t.attr("x",i).attr("y",a):t.attr("transform",eM(i,a));else return!1;return!0};Sa.translatePoints=function(e,t,r){e.each(function(n){var i=dd.select(this);Sa.translatePoint(n,i,t,r)})};Sa.hideOutsideRangePoint=function(e,t,r,n,i,a){t.attr("display",r.isPtWithinRange(e,i)&&n.isPtWithinRange(e,a)?null:"none")};Sa.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,n=t.yaxis;e.each(function(i){var a=i[0].trace,o=a.xcalendar,s=a.ycalendar,l=iL.traceIs(a,"bar-like")?".bartext":".point,.textpoint";e.selectAll(l).each(function(u){Sa.hideOutsideRangePoint(u,dd.select(this),r,n,o,s)})})}};Sa.crispRound=function(e,t,r){return!t||!Ab(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};Sa.singleLineStyle=function(e,t,r,n,i){t.style("fill","none");var a=(((e||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=i||a.dash||"";Kd.stroke(t,n||a.color),Sa.dashLine(t,s,o)};Sa.lineGroupStyle=function(e,t,r,n){e.style("fill","none").each(function(i){var a=(((i||[])[0]||{}).trace||{}).line||{},o=t||a.width||0,s=n||a.dash||"";dd.select(this).call(Kd.stroke,r||a.color).call(Sa.dashLine,s,o)})};Sa.dashLine=function(e,t,r){r=+r||0,t=Sa.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};Sa.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function Doe(e,t,r,n){var i=t.fillpattern,a=t.fillgradient,o=Sa.getPatternAttr,s=i&&(o(i.shape,0,"")||o(i.path,0,""));if(s){var l=o(i.bgcolor,0,null),u=o(i.fgcolor,0,null),c=i.fgopacity,f=o(i.size,0,8),h=o(i.solidity,0,.3),d=t.uid;Sa.pattern(e,"point",r,d,s,f,h,void 0,i.fillmode,l,u,c)}else if(a&&a.type!=="none"){var v=a.type,_="scatterfill-"+t.uid;if(n&&(_="legendfill-"+t.uid),!n&&(a.start!==void 0||a.stop!==void 0)){var b,p;v==="horizontal"?(b={x:a.start,y:0},p={x:a.stop,y:0}):v==="vertical"&&(b={x:0,y:a.start},p={x:0,y:a.stop}),b.x=t._xA.c2p(b.x===void 0?t._extremes.x.min[0].val:b.x,!0),b.y=t._yA.c2p(b.y===void 0?t._extremes.y.min[0].val:b.y,!0),p.x=t._xA.c2p(p.x===void 0?t._extremes.x.max[0].val:p.x,!0),p.y=t._yA.c2p(p.y===void 0?t._extremes.y.max[0].val:p.y,!0),e.call(Ooe,r,_,"linear",a.colorscale,"fill",b,p,!0,!1)}else v==="horizontal"&&(v=v+"reversed"),e.call(Sa.gradient,r,_,v,a.colorscale,"fill")}else t.fillcolor&&e.call(Kd.fill,t.fillcolor)}Sa.singleFillStyle=function(e,t){var r=dd.select(e.node()),n=r.data(),i=((n[0]||[])[0]||{}).trace||{};Doe(e,i,t,!1)};Sa.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(n){var i=dd.select(this);n[0].trace&&Doe(i,n[0].trace,t,r)})};var Aoe=Toe();Sa.symbolNames=[];Sa.symbolFuncs=[];Sa.symbolBackOffs=[];Sa.symbolNeedLines={};Sa.symbolNoDot={};Sa.symbolNoFill={};Sa.symbolList=[];Object.keys(Aoe).forEach(function(e){var t=Aoe[e],r=t.n;Sa.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),Sa.symbolNames[r]=e,Sa.symbolFuncs[r]=t.f,Sa.symbolBackOffs[r]=t.backoff||0,t.needLine&&(Sa.symbolNeedLines[r]=!0),t.noDot?Sa.symbolNoDot[r]=!0:Sa.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(Sa.symbolNoFill[r]=!0)});var wot=Sa.symbolNames.length,Tot="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Sa.symbolNumber=function(e){if(Ab(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=Sa.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=wot||e>=400?0:Math.floor(Math.max(e,0))};function Foe(e,t,r,n){var i=e%100;return Sa.symbolFuncs[i](t,r,n)+(e>=200?Tot:"")}var Soe=fot("~f"),zoe={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};Sa.gradient=function(e,t,r,n,i,a){var o=zoe[n];return Ooe(e,t,r,o.type,i,a,o.start,o.stop,!1,o.reversed)};function Ooe(e,t,r,n,i,a,o,s,l,u){var c=i.length,f;n==="linear"?f={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:s.x,y2:s.y,gradientUnits:l?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:n==="radial"&&(f={node:"radialGradient",reversed:u});for(var h=new Array(c),d=0;d=0&&e.i===void 0&&(e.i=a.i),t.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),n.ms2mrc){var l;e.ms==="various"||o.size==="various"?l=3:l=n.ms2mrc(e.ms),e.mrc=l,n.selectedSizeFn&&(l=e.mrc=n.selectedSizeFn(e));var u=Sa.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var c=Hq(e,r),f=Gq(e,r);t.attr("d",Foe(u,l,c,f))}var h=!1,d,v,_;if(e.so)_=s.outlierwidth,v=s.outliercolor,d=o.outliercolor;else{var b=(s||{}).width;_=(e.mlw+1||b+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?v=e.mlcc=n.lineScale(e.mlc):Du.isArrayOrTypedArray(s.color)?v=Kd.defaultLine:v=s.color,Du.isArrayOrTypedArray(o.color)&&(d=Kd.defaultLine,h=!0),"mc"in e?d=e.mcc=n.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(d=n.selectedColorFn(e))}if(e.om)t.call(Kd.stroke,d).style({"stroke-width":(_||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:_)+"px");var p=o.gradient,C=e.mgt;C?h=!0:C=p&&p.type,Du.isArrayOrTypedArray(C)&&(C=C[0],zoe[C]||(C=0));var E=o.pattern,A=Sa.getPatternAttr,L=E&&(A(E.shape,e.i,"")||A(E.path,e.i,""));if(C&&C!=="none"){var x=e.mgc;x?h=!0:x=p.color;var k=r.uid;h&&(k+="-"+e.i),Sa.gradient(t,i,k,C,[[0,x],[1,d]],"fill")}else if(L){var M=!1,g=E.fgcolor;!g&&a&&a.color&&(g=a.color,M=!0);var P=A(g,e.i,a&&a.color||null),T=A(E.bgcolor,e.i,null),z=E.fgopacity,O=A(E.size,e.i,8),V=A(E.solidity,e.i,.3);M=M||e.mcc||Du.isArrayOrTypedArray(E.shape)||Du.isArrayOrTypedArray(E.path)||Du.isArrayOrTypedArray(E.bgcolor)||Du.isArrayOrTypedArray(E.fgcolor)||Du.isArrayOrTypedArray(E.size)||Du.isArrayOrTypedArray(E.solidity);var G=r.uid;M&&(G+="-"+e.i),Sa.pattern(t,"point",i,G,L,O,V,e.mcc,E.fillmode,T,P,z)}else Du.isArrayOrTypedArray(d)?Kd.fill(t,d[e.i]):Kd.fill(t,d);_&&Kd.stroke(t,v)}};Sa.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=Sa.tryColorscale(r,""),t.lineScale=Sa.tryColorscale(r,"line"),iL.traceIs(e,"symbols")&&(t.ms2mrc=got.isBubble(e)?mot(e):function(){return(r.size||6)/2}),e.selectedpoints&&Du.extendFlat(t,Sa.makeSelectedPointStyleFns(e)),t};Sa.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.marker||{},a=r.marker||{},o=n.marker||{},s=i.opacity,l=a.opacity,u=o.opacity,c=l!==void 0,f=u!==void 0;(Du.isArrayOrTypedArray(s)||c||f)&&(t.selectedOpacityFn=function(A){var L=A.mo===void 0?i.opacity:A.mo;return A.selected?c?l:L:f?u:Roe*L});var h=i.color,d=a.color,v=o.color;(d||v)&&(t.selectedColorFn=function(A){var L=A.mcc||h;return A.selected?d||L:v||L});var _=i.size,b=a.size,p=o.size,C=b!==void 0,E=p!==void 0;return iL.traceIs(e,"symbols")&&(C||E)&&(t.selectedSizeFn=function(A){var L=A.mrc||_/2;return A.selected?C?b/2:L:E?p/2:L}),t};Sa.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.textfont||{},a=r.textfont||{},o=n.textfont||{},s=i.color,l=a.color,u=o.color;return t.selectedTextColorFn=function(c){var f=c.tc||s;return c.selected?l||f:u||(l?f:Kd.addOpacity(f,Roe))},t};Sa.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Sa.makeSelectedPointStyleFns(t),n=t.marker||{},i=[];r.selectedOpacityFn&&i.push(function(a,o){a.style("opacity",r.selectedOpacityFn(o))}),r.selectedColorFn&&i.push(function(a,o){Kd.fill(a,r.selectedColorFn(o))}),r.selectedSizeFn&&i.push(function(a,o){var s=o.mx||n.symbol||0,l=r.selectedSizeFn(o);a.attr("d",Foe(Sa.symbolNumber(s),l,Hq(o,t),Gq(o,t))),o.mrc2=l}),i.length&&e.each(function(a){for(var o=dd.select(this),s=0;s0?r:0}Sa.textPointStyle=function(e,t,r){if(e.size()){var n;if(t.selectedpoints){var i=Sa.makeSelectedTextStyleFns(t);n=i.selectedTextColorFn}var a=t.texttemplate,o=r._fullLayout;e.each(function(s){var l=dd.select(this),u=a?Du.extractOption(s,t,"txt","texttemplate"):Du.extractOption(s,t,"tx","text");if(!u&&u!==0){l.remove();return}if(a){var c=t._module.formatLabels,f=c?c(s,t,o):{},h={};yot(h,t,s.i);var d=t._meta||{};u=Du.texttemplateString(u,f,o._d3locale,h,s,d)}var v=s.tp||t.textposition,_=Boe(s,t),b=n?n(s):s.tc||t.textfont.color;l.call(Sa.font,{family:s.tf||t.textfont.family,weight:s.tw||t.textfont.weight,style:s.ty||t.textfont.style,variant:s.tv||t.textfont.variant,textcase:s.tC||t.textfont.textcase,lineposition:s.tE||t.textfont.lineposition,shadow:s.tS||t.textfont.shadow,size:_,color:b}).text(u).call(nL.convertToTspans,r).call(qoe,v,_,s.mrc)})}};Sa.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Sa.makeSelectedTextStyleFns(t);e.each(function(n){var i=dd.select(this),a=r.selectedTextColorFn(n),o=n.tp||t.textposition,s=Boe(n,t);Kd.fill(i,a);var l=iL.traceIs(t,"bar-like");qoe(i,o,s,n.mrc2||n.mrc,l)})}};var Moe=.5;Sa.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],n=[],i;for(i=1;i=l||A>=c&&A<=l)&&(L<=f&&L>=u||L>=f&&L<=u)&&(e=[A,L])}return e}Sa.applyBackoff=Voe;Sa.makeTester=function(){var e=Du.ensureSingleById(dd.select("body"),"svg","js-plotly-tester",function(r){r.attr(dot.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=Du.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Sa.tester=e,Sa.testref=t};Sa.savedBBoxes={};var qq=0,Mot=1e4;Sa.bBox=function(e,t,r){r||(r=Eoe(e));var n;if(r){if(n=Sa.savedBBoxes[r],n)return Du.extendFlat({},n)}else if(e.childNodes.length===1){var i=e.childNodes[0];if(r=Eoe(i),r){var a=+i.getAttribute("x")||0,o=+i.getAttribute("y")||0,s=i.getAttribute("transform");if(!s){var l=Sa.bBox(i,!1,r);return a&&(l.left+=a,l.right+=a),o&&(l.top+=o,l.bottom+=o),l}if(r+="~"+a+"~"+o+"~"+s,n=Sa.savedBBoxes[r],n)return Du.extendFlat({},n)}}var u,c;t?u=e:(c=Sa.tester.node(),u=e.cloneNode(!0),c.appendChild(u)),dd.select(u).attr("transform",null).call(nL.positionText,0,0);var f=u.getBoundingClientRect(),h=Sa.testref.node().getBoundingClientRect();t||c.removeChild(u);var d={height:f.height,width:f.width,left:f.left-h.left,top:f.top-h.top,right:f.right-h.left,bottom:f.bottom-h.top};return qq>=Mot&&(Sa.savedBBoxes={},qq=0),r&&(Sa.savedBBoxes[r]=d),qq++,Du.extendFlat({},d)};function Eoe(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Sa.setClipUrl=function(e,t,r){e.attr("clip-path",Vq(t,r))};function Vq(e,t){if(!e)return null;var r=t._context,n=r._exportedPlot?"":r._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}Sa.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||0,y:+i[1]||0}};Sa.setTranslate=function(e,t,r){var n=/(\btranslate\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||0,r=r||0,o=o.replace(n,"").trim(),o+=eM(t,r),o=o.trim(),e[a]("transform",o),o};Sa.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||1,y:+i[1]||1}};Sa.setScale=function(e,t,r){var n=/(\bscale\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||1,r=r||1,o=o.replace(n,"").trim(),o+="scale("+t+","+r+")",o=o.trim(),e[a]("transform",o),o};var Eot=/\s*sc.*/;Sa.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var n=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var i=(this.getAttribute("transform")||"").replace(Eot,"");i+=n,i=i.trim(),this.setAttribute("transform",i)})}};var Cot=/translate\([^)]*\)\s*$/;Sa.setTextPointsScale=function(e,t,r){e&&e.each(function(){var n,i=dd.select(this),a=i.select("text");if(a.node()){var o=parseFloat(a.attr("x")||0),s=parseFloat(a.attr("y")||0),l=(i.attr("transform")||"").match(Cot);t===1&&r===1?n=[]:n=[eM(o,s),"scale("+t+","+r+")",eM(-o,-s)],l&&n.push(l),i.attr("transform",n.join(""))}})};function Gq(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}Sa.getMarkerStandoff=Gq;var QS=Math.atan2,bb=Math.cos,E3=Math.sin;function Coe(e,t){var r=t[0],n=t[1];return[r*bb(e)-n*E3(e),r*E3(e)+n*bb(e)]}var koe,Loe,Poe,Ioe,Bq,Nq;function Hq(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!r||Du.isArrayOrTypedArray(r))&&(r=0));var n,i,a=t.marker.angleref;if(a==="previous"||a==="north"){if(t._geo){var o=t._geo.project(e.lonlat);n=o[0],i=o[1]}else{var s=t._xA,l=t._yA;if(s&&l)n=s.c2p(e.x),i=l.c2p(e.y);else return 90}if(t._geo){var u=e.lonlat[0],c=e.lonlat[1],f=t._geo.project([u,c+1e-5]),h=t._geo.project([u+1e-5,c]),d=QS(h[1]-i,h[0]-n),v=QS(f[1]-i,f[0]-n),_;if(a==="north")_=r/180*Math.PI;else if(a==="previous"){var b=u/180*Math.PI,p=c/180*Math.PI,C=koe/180*Math.PI,E=Loe/180*Math.PI,A=C-b,L=bb(E)*E3(A),x=E3(E)*bb(p)-bb(E)*E3(p)*bb(A);_=-QS(L,x)-Math.PI,koe=u,Loe=c}var k=Coe(d,[bb(_),0]),M=Coe(v,[E3(_),0]);r=QS(k[1]+M[1],k[0]+M[0])/Math.PI*180,a==="previous"&&!(Nq===t.uid&&e.i===Bq+1)&&(r=null)}if(a==="previous"&&!t._geo)if(Nq===t.uid&&e.i===Bq+1&&Ab(n)&&Ab(i)){var g=n-Poe,P=i-Ioe,T=t.line&&t.line.shape||"",z=T.slice(T.length-1);z==="h"&&(P=0),z==="v"&&(g=0),r+=QS(P,g)/Math.PI*180+90}else r=null}return Poe=n,Ioe=i,Bq=e.i,Nq=t.uid,r}Sa.getMarkerAngle=Hq});var Mb=ye((zir,Xoe)=>{"use strict";var C3=Oa(),kot=Eo(),Lot=Mc(),jq=qa(),Sb=Dr(),Hoe=Sb.strTranslate,aL=So(),oL=Ca(),k3=iu(),joe=U1(),Pot=Kh().OPPOSITE_SIDE,Woe=/ [XY][0-9]* /,Wq=1.6,Xq=1.6;function Iot(e,t,r){var n=e._fullLayout,i=r.propContainer,a=r.propName,o=r.placeholder,s=r.traceIndex,l=r.avoid||{},u=r.attributes,c=r.transform,f=r.containerGroup,h=1,d=i.title,v=(d&&d.text?d.text:"").trim(),_=!1,b=d&&d.font?d.font:{},p=b.family,C=b.size,E=b.color,A=b.weight,L=b.style,x=b.variant,k=b.textcase,M=b.lineposition,g=b.shadow,P=r.subtitlePropName,T=!!P,z=r.subtitlePlaceholder,O=(i.title||{}).subtitle||{text:"",font:{}},V=O.text.trim(),G=!1,Z=1,H=O.font,N=H.family,j=H.size,re=H.color,oe=H.weight,_e=H.style,Me=H.variant,ke=H.textcase,me=H.lineposition,ie=H.shadow,Se;a==="title.text"?Se="titleText":a.indexOf("axis")!==-1?Se="axisTitleText":a.indexOf("colorbar")!==-1&&(Se="colorbarTitleText");var Le=e._context.edits[Se];function Ae(Nt,$t){return Nt===void 0||$t===void 0?!1:Nt.replace(Woe," % ")===$t.replace(Woe," % ")}v===""?h=0:Ae(v,o)&&(Le||(v=""),h=.2,_=!0),T&&(V===""?Z=0:Ae(V,z)&&(Le||(V=""),Z=.2,G=!0)),r._meta?v=Sb.templateString(v,r._meta):n._meta&&(v=Sb.templateString(v,n._meta));var De=v||V||Le,Pe;f||(f=Sb.ensureSingle(n._infolayer,"g","g-"+t),Pe=n._hColorbarMoveTitle);var ge=f.selectAll("text."+t).data(De?[0]:[]);ge.enter().append("text"),ge.text(v).attr("class",t),ge.exit().remove();var Fe=null,ce=t+"-subtitle",Ye=V||Le;if(T&&Ye&&(Fe=f.selectAll("text."+ce).data(Ye?[0]:[]),Fe.enter().append("text"),Fe.text(V).attr("class",ce),Fe.exit().remove()),!De)return f;function ct(Nt,$t){Sb.syncOrAsync([pt,Wt],{title:Nt,subtitle:$t})}function pt(Nt){var $t=Nt.title,sr=Nt.subtitle,wr;!c&&Pe&&(c={}),c?(wr="",c.rotate&&(wr+="rotate("+[c.rotate,u.x,u.y]+")"),(c.offset||Pe)&&(wr+=Hoe(0,(c.offset||0)-(Pe||0)))):wr=null,$t.attr("transform",wr);function ur(bt){if(bt){var yt=C3.select(bt.node().parentNode).select("."+ce);if(!yt.empty()){var Yt=bt.node().getBBox();if(Yt.height){var lr=Yt.y+Yt.height+Wq*j;yt.attr("y",lr)}}}}if($t.style("opacity",h*oL.opacity(E)).call(aL.font,{color:oL.rgb(E),size:C3.round(C,2),family:p,weight:A,style:L,variant:x,textcase:k,shadow:g,lineposition:M}).attr(u).call(k3.convertToTspans,e,ur),sr){var Qe=f.select("."+t+"-math-group"),Et=$t.node().getBBox(),er=Qe.node()?Qe.node().getBBox():void 0,Ut=er?er.y+er.height+Wq*j:Et.y+Et.height+Xq*j,Ft=Sb.extendFlat({},u,{y:Ut});sr.attr("transform",wr),sr.style("opacity",Z*oL.opacity(re)).call(aL.font,{color:oL.rgb(re),size:C3.round(j,2),family:N,weight:oe,style:_e,variant:Me,textcase:ke,shadow:ie,lineposition:me}).attr(Ft).call(k3.convertToTspans,e)}return Lot.previousPromises(e)}function Wt(Nt){var $t=Nt.title,sr=C3.select($t.node().parentNode);if(l&&l.selection&&l.side&&v){sr.attr("transform",null);var wr=Pot[l.side],ur=l.side==="left"||l.side==="top"?-1:1,Qe=kot(l.pad)?l.pad:2,Et=aL.bBox(sr.node()),er={t:0,b:0,l:0,r:0},Ut=e._fullLayout._reservedMargin;for(var Ft in Ut)for(var bt in Ut[Ft]){var yt=Ut[Ft][bt];er[bt]=Math.max(er[bt],yt)}var Yt={left:er.l,top:er.t,right:n.width-er.r,bottom:n.height-er.b},lr=l.maxShift||ur*(Yt[l.side]-Et[l.side]),Tr=0;if(lr<0)Tr=lr;else{var Rr=l.offsetLeft||0,ei=l.offsetTop||0;Et.left-=Rr,Et.right-=Rr,Et.top-=ei,Et.bottom-=ei,l.selection.each(function(){var Ur=aL.bBox(this);Sb.bBoxIntersect(Et,Ur,Qe)&&(Tr=Math.max(Tr,ur*(Ur[l.side]-Et[wr])+Qe))}),Tr=Math.min(lr,Tr),i._titleScoot=Math.abs(Tr)}if(Tr>0||lr<0){var Wr={left:[-Tr,0],right:[Tr,0],top:[0,-Tr],bottom:[0,Tr]}[l.side];sr.attr("transform",Hoe(Wr[0],Wr[1]))}}}ge.call(ct,Fe);function st(Nt,$t){Nt.text($t).on("mouseover.opacity",function(){C3.select(this).transition().duration(joe.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){C3.select(this).transition().duration(joe.HIDE_PLACEHOLDER).style("opacity",0)})}if(Le&&(v?ge.on(".opacity",null):(st(ge,o),_=!0),ge.call(k3.makeEditable,{gd:e}).on("edit",function(Nt){s!==void 0?jq.call("_guiRestyle",e,a,Nt,s):jq.call("_guiRelayout",e,a,Nt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ct)}).on("input",function(Nt){this.text(Nt||" ").call(k3.positionText,u.x,u.y)}),T)){if(T&&!v){var lt=ge.node().getBBox(),Gt=lt.y+lt.height+Xq*j;Fe.attr("y",Gt)}V?Fe.on(".opacity",null):(st(Fe,z),G=!0),Fe.call(k3.makeEditable,{gd:e}).on("edit",function(Nt){jq.call("_guiRelayout",e,"title.subtitle.text",Nt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ct)}).on("input",function(Nt){this.text(Nt||" ").call(k3.positionText,Fe.attr("x"),Fe.attr("y"))})}return ge.classed("js-placeholder",_),Fe&&Fe.classed("js-placeholder",G),f}Xoe.exports={draw:Iot,SUBTITLE_PADDING_EM:Xq,SUBTITLE_PADDING_MATHJAX_EM:Wq}});var ym=ye((Oir,$oe)=>{"use strict";var Rot=Oa(),Dot=e3().utcFormat,yc=Dr(),Fot=yc.numberFormat,gm=Eo(),a_=yc.cleanNumber,zot=yc.ms2DateTime,Zoe=yc.dateTime2ms,mm=yc.ensureNumber,Yoe=yc.isArrayOrTypedArray,o_=hs(),sL=o_.FP_SAFE,bg=o_.BADNUM,Oot=o_.LOG_CLIP,qot=o_.ONEWEEK,lL=o_.ONEDAY,uL=o_.ONEHOUR,Koe=o_.ONEMIN,Joe=o_.ONESEC,cL=hf(),dL=hd(),fL=dL.HOUR_PATTERN,hL=dL.WEEKDAY_PATTERN;function tM(e){return Math.pow(10,e)}function Zq(e){return e!=null}$oe.exports=function(t,r){r=r||{};var n=t._id||"x",i=n.charAt(0);function a(A,L){if(A>0)return Math.log(A)/Math.LN10;if(A<=0&&L&&t.range&&t.range.length===2){var x=t.range[0],k=t.range[1];return .5*(x+k-2*Oot*Math.abs(x-k))}else return bg}function o(A,L,x,k){if((k||{}).msUTC&&gm(A))return+A;var M=Zoe(A,x||t.calendar);if(M===bg)if(gm(A)){A=+A;var g=Math.floor(yc.mod(A+.05,1)*10),P=Math.round(A-g/10);M=Zoe(new Date(P))+g/10}else return bg;return M}function s(A,L,x){return zot(A,L,x||t.calendar)}function l(A){return t._categories[Math.round(A)]}function u(A){if(Zq(A)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[A]!==void 0)return t._categoriesMap[A];t._categories.push(typeof A=="number"?String(A):A);var L=t._categories.length-1;return t._categoriesMap[A]=L,L}return bg}function c(A,L){for(var x=new Array(L),k=0;kt.range[1]&&(x=!x);for(var k=x?-1:1,M=k*A,g=0,P=0;Pz)g=P+1;else{g=M<(T+z)/2?P:P+1;break}}var O=t._B[g]||0;return isFinite(O)?v(A,t._m2,O):0},p=function(A){var L=t._rangebreaks.length;if(!L)return _(A,t._m,t._b);for(var x=0,k=0;kt._rangebreaks[k].pmax&&(x=k+1);return _(A,t._m2,t._B[x])}}t.c2l=t.type==="log"?a:mm,t.l2c=t.type==="log"?tM:mm,t.l2p=b,t.p2l=p,t.c2p=t.type==="log"?function(A,L){return b(a(A,L))}:b,t.p2c=t.type==="log"?function(A){return tM(p(A))}:p,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=a_,t.c2d=t.c2r=t.l2d=t.l2r=mm,t.d2p=t.r2p=function(A){return t.l2p(a_(A))},t.p2d=t.p2r=p,t.cleanPos=mm):t.type==="log"?(t.d2r=t.d2l=function(A,L){return a(a_(A),L)},t.r2d=t.r2c=function(A){return tM(a_(A))},t.d2c=t.r2l=a_,t.c2d=t.l2r=mm,t.c2r=a,t.l2d=tM,t.d2p=function(A,L){return t.l2p(t.d2r(A,L))},t.p2d=function(A){return tM(p(A))},t.r2p=function(A){return t.l2p(a_(A))},t.p2r=p,t.cleanPos=mm):t.type==="date"?(t.d2r=t.r2d=yc.identity,t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=s,t.d2p=t.r2p=function(A,L,x){return t.l2p(o(A,0,x))},t.p2d=t.p2r=function(A,L,x){return s(p(A),L,x)},t.cleanPos=function(A){return yc.cleanDate(A,bg,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=u,t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(A){var L=d(A);return L!==void 0?L:t.fraction2r(.5)},t.l2r=t.c2r=mm,t.r2l=d,t.d2p=function(A){return t.l2p(t.r2c(A))},t.p2d=function(A){return l(p(A))},t.r2p=t.d2p,t.p2r=p,t.cleanPos=function(A){return typeof A=="string"&&A!==""?A:mm(A)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(A){var L=h(A);return L!==void 0?L:t.fraction2r(.5)},t.r2c_just_indices=f,t.l2r=t.c2r=mm,t.r2l=h,t.d2p=function(A){return t.l2p(t.r2c(A))},t.p2d=function(A){return l(p(A))},t.r2p=t.d2p,t.p2r=p,t.cleanPos=function(A){return Array.isArray(A)||typeof A=="string"&&A!==""?A:mm(A)},t.setupMultiCategory=function(A){var L=t._traceIndices,x,k,M=t._matchGroup;if(M&&t._categories.length===0){for(var g in M)if(g!==n){var P=r[cL.id2name(g)];L=L.concat(P._traceIndices)}}var T=[[0,{}],[0,{}]],z=[];for(x=0;xP[1]&&(k[g?0:1]=x),k[0]===k[1]){var T=t.l2r(L),z=t.l2r(x);if(L!==void 0){var O=T+1;x!==void 0&&(O=Math.min(O,z)),k[g?1:0]=O}if(x!==void 0){var V=z+1;L!==void 0&&(V=Math.max(V,T)),k[g?0:1]=V}}}},t.cleanRange=function(A,L){t._cleanRange(A,L),t.limitRange(A)},t._cleanRange=function(A,L){L||(L={}),A||(A="range");var x=yc.nestedProperty(t,A).get(),k,M;if(t.type==="date"?M=yc.dfltRange(t.calendar):i==="y"?M=dL.DFLTRANGEY:t._name==="realaxis"?M=[0,1]:M=L.dfltRange||dL.DFLTRANGEX,M=M.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(M[0]=0),!x||x.length!==2){yc.nestedProperty(t,A).set(M);return}var g=x[0]===null,P=x[1]===null;for(t.type==="date"&&!t.autorange&&(x[0]=yc.cleanDate(x[0],bg,t.calendar),x[1]=yc.cleanDate(x[1],bg,t.calendar)),k=0;k<2;k++)if(t.type==="date"){if(!yc.isDateTime(x[k],t.calendar)){t[A]=M;break}if(t.r2l(x[0])===t.r2l(x[1])){var T=yc.constrain(t.r2l(x[0]),yc.MIN_MS+1e3,yc.MAX_MS-1e3);x[0]=t.l2r(T-1e3),x[1]=t.l2r(T+1e3);break}}else{if(!gm(x[k]))if(!(g||P)&&gm(x[1-k]))x[k]=x[1-k]*(k?10:.1);else{t[A]=M;break}if(x[k]<-sL?x[k]=-sL:x[k]>sL&&(x[k]=sL),x[0]===x[1]){var z=Math.max(1,Math.abs(x[0]*1e-6));x[0]-=z,x[1]+=z}}},t.setScale=function(A){var L=r._size;if(t.overlaying){var x=cL.getFromId({_fullLayout:r},t.overlaying);t.domain=x.domain}var k=A&&t._r?"_r":"range",M=t.calendar;t.cleanRange(k);var g=t.r2l(t[k][0],M),P=t.r2l(t[k][1],M),T=i==="y";if(T?(t._offset=L.t+(1-t.domain[1])*L.h,t._length=L.h*(t.domain[1]-t.domain[0]),t._m=t._length/(g-P),t._b=-t._m*P):(t._offset=L.l+t.domain[0]*L.w,t._length=L.w*(t.domain[1]-t.domain[0]),t._m=t._length/(P-g),t._b=-t._m*g),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var z,O;if(t._rangebreaks=t.locateBreaks(Math.min(g,P),Math.max(g,P)),t._rangebreaks.length){for(z=0;zP&&(V=!V),V&&t._rangebreaks.reverse();var G=V?-1:1;for(t._m2=G*t._length/(Math.abs(P-g)-t._lBreaks),t._B.push(-t._m2*(T?P:g)),z=0;zM&&(M+=7,gM&&(M+=24,g=k&&g=k&&A=ie.min&&(_eie.max&&(ie.max=Me),ke=!1)}ke&&P.push({min:_e,max:Me})}};for(x=0;x{"use strict";var Qoe=Eo(),Yq=Dr(),Bot=hs().BADNUM,vL=Yq.isArrayOrTypedArray,Not=Yq.isDateTime,Uot=Yq.cleanNumber,ese=Math.round;rse.exports=function(t,r,n){var i=t,a=n.noMultiCategory;if(vL(i)&&!i.length)return"-";if(!a&&Wot(i))return"multicategory";if(a&&Array.isArray(i[0])){for(var o=[],s=0;sa*2}function tse(e){return Math.max(1,(e-1)/1e3)}function jot(e,t){for(var r=e.length,n=tse(r),i=0,a=0,o={},s=0;si*2}function Wot(e){return vL(e[0])&&vL(e[1])}});var wg=ye((Bir,cse)=>{"use strict";var Xot=Oa(),ose=Eo(),s_=Dr(),pL=hs().FP_SAFE,Zot=qa(),Yot=So(),sse=hf(),Kot=sse.getFromId,Jot=sse.isLinked;cse.exports={applyAutorangeOptions:use,getAutoRange:Kq,makePadFn:Jq,doAutoRange:Qot,findExtremes:est,concatExtremes:eB};function Kq(e,t){var r,n,i=[],a=e._fullLayout,o=Jq(a,t,0),s=Jq(a,t,1),l=eB(e,t),u=l.min,c=l.max;if(u.length===0||c.length===0)return s_.simpleMap(t.range,t.r2l);var f=u[0].val,h=c[0].val;for(r=1;r0&&(P=E-o(x)-s(k),P>A?T/P>L&&(M=x,g=k,L=T/P):T/E>L&&(M={val:x.val,nopad:1},g={val:k.val,nopad:1},L=T/E));function z(H,N){return Math.max(H,s(N))}if(f===h){var O=f-1,V=f+1;if(p)if(f===0)i=[0,1];else{var G=(f>0?c:u).reduce(z,0),Z=f/(1-Math.min(.5,G/E));i=f>0?[0,Z]:[Z,0]}else C?i=[Math.max(0,O),Math.max(1,V)]:i=[O,V]}else p?(M.val>=0&&(M={val:0,nopad:1}),g.val<=0&&(g={val:0,nopad:1})):C&&(M.val-L*o(M)<0&&(M={val:0,nopad:1}),g.val<=0&&(g={val:1,nopad:1})),L=(g.val-M.val-ise(t,x.val,k.val))/(E-o(M)-s(g)),i=[M.val-L*o(M),g.val+L*s(g)];return i=use(i,t),t.limitRange&&t.limitRange(),v&&i.reverse(),s_.simpleMap(i,t.l2r||Number)}function ise(e,t,r){var n=0;if(e.rangebreaks)for(var i=e.locateBreaks(t,r),a=0;a0?r.ppadplus:r.ppadminus)||r.ppad||0),x=A((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),k=A(r.vpadplus||r.vpad),M=A(r.vpadminus||r.vpad);if(!u){if(C=1/0,E=-1/0,l)for(f=0;f0&&(C=h),h>E&&h-pL&&(C=h),h>E&&h=T;f--)P(f);return{min:n,max:i,opts:r}}function $q(e,t,r,n){lse(e,t,r,n,tst)}function Qq(e,t,r,n){lse(e,t,r,n,rst)}function lse(e,t,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,l=0;l=r&&(u.extrapad||!o)){s=!1;break}else i(t,u.val)&&u.pad<=r&&(o||!u.extrapad)&&(e.splice(l,1),l--)}if(s){var c=a&&t===0;e.push({val:t,pad:c?0:r,extrapad:c?!1:o})}}function ase(e){return ose(e)&&Math.abs(e)=t}function ist(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&gL(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&gL(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function nst(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&gL(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&gL(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function gL(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=l&&(a=l,r=l),o<=l&&(o=l,n=l)}}return r=ist(r,t),n=nst(n,t),[r,n]}});var ho=ye((Nir,Ise)=>{"use strict";var w0=Oa(),kh=Eo(),P3=Mc(),iM=qa(),Jo=Dr(),I3=Jo.strTranslate,Eb=iu(),ast=Mb(),nM=Ca(),Xp=So(),ost=Rd(),fse=Aq(),Jd=hs(),sst=Jd.ONEMAXYEAR,_L=Jd.ONEAVGYEAR,xL=Jd.ONEMINYEAR,lst=Jd.ONEMAXQUARTER,nB=Jd.ONEAVGQUARTER,bL=Jd.ONEMINQUARTER,ust=Jd.ONEMAXMONTH,R3=Jd.ONEAVGMONTH,wL=Jd.ONEMINMONTH,Zp=Jd.ONEWEEK,zv=Jd.ONEDAY,l_=zv/2,xm=Jd.ONEHOUR,aM=Jd.ONEMIN,TL=Jd.ONESEC,cst=Jd.ONEMILLI,fst=Jd.ONEMICROSEC,Cb=Jd.MINUS_SIGN,ML=Jd.BADNUM,aB={K:"zeroline"},oB={K:"gridline",L:"path"},sB={K:"minor-gridline",L:"path"},wse={K:"tick",L:"path"},hse={K:"tick",L:"text"},dse={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},EL=Kh(),rM=EL.MID_SHIFT,kb=EL.CAP_SHIFT,oM=EL.LINE_SPACING,hst=EL.OPPOSITE_SIDE,AL=3,Qn=Ise.exports={};Qn.setConvert=ym();var dst=L3(),Ay=hf(),vst=Ay.idSort,pst=Ay.isLinked;Qn.id2name=Ay.id2name;Qn.name2id=Ay.name2id;Qn.cleanId=Ay.cleanId;Qn.list=Ay.list;Qn.listIds=Ay.listIds;Qn.getFromId=Ay.getFromId;Qn.getFromTrace=Ay.getFromTrace;var Tse=wg();Qn.getAutoRange=Tse.getAutoRange;Qn.findExtremes=Tse.findExtremes;var gst=1e-4;function fB(e){var t=(e[1]-e[0])*gst;return[e[0]-t,e[1]+t]}Qn.coerceRef=function(e,t,r,n,i,a){var o=n.charAt(n.length-1),s=r._fullLayout._subplots[o+"axis"],l=n+"ref",u={};return i||(i=s[0]||(typeof a=="string"?a:a[0])),a||(a=i),s=s.concat(s.map(function(c){return c+" domain"})),u[l]={valType:"enumerated",values:s.concat(a?typeof a=="string"?[a]:a:[]),dflt:i},Jo.coerce(e,t,u,l)};Qn.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Qn.coercePosition=function(e,t,r,n,i,a){var o,s,l=Qn.getRefType(n);if(l!=="range")o=Jo.ensureNumber,s=r(i,a);else{var u=Qn.getFromId(t,n);a=u.fraction2r(a),s=r(i,a),o=u.cleanPos}e[i]=o(s)};Qn.cleanPosition=function(e,t,r){var n=r==="paper"||r==="pixel"?Jo.ensureNumber:Qn.getFromId(t,r).cleanPos;return n(e)};Qn.redrawComponents=function(e,t){t=t||Qn.listIds(e);var r=e._fullLayout;function n(i,a,o,s){for(var l=iM.getComponentMethod(i,a),u={},c=0;c2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Qn.saveRangeInitial=function(e,t){for(var r=Qn.list(e,"",!0),n=!1,i=0;if*.3||u(n)||u(i))){var h=r.dtick/2;e+=e+ho){var s=Number(r.substr(1));a.exactYears>o&&s%12===0?e=Qn.tickIncrement(e,"M6","reverse")+zv*1.5:a.exactMonths>o?e=Qn.tickIncrement(e,"M1","reverse")+zv*15.5:e-=l_;var l=Qn.tickIncrement(e,r);if(l<=n)return l}return e}Qn.prepMinorTicks=function(e,t,r){if(!t.minor.dtick){delete e.dtick;var n=t.dtick&&kh(t._tmin),i;if(n){var a=Qn.tickIncrement(t._tmin,t.dtick,!0);i=[t._tmin,a*.99+t._tmin*.01]}else{var o=Jo.simpleMap(t.range,t.r2l);i=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Jo.simpleMap(i,t.l2r),e._isMinor=!0,Qn.prepTicks(e,r),n){var s=kh(t.dtick),l=kh(e.dtick),u=s?t.dtick:+t.dtick.substring(1),c=l?e.dtick:+e.dtick.substring(1);s&&l?tB(u,c)?u===2*Zp&&c===2*zv&&(e.dtick=Zp):u===2*Zp&&c===3*zv?e.dtick=Zp:u===Zp&&!(t._input.minor||{}).nticks?e.dtick=zv:gse(u/c,2.5)?e.dtick=u/2:e.dtick=u:String(t.dtick).charAt(0)==="M"?l?e.dtick="M1":tB(u,c)?u>=12&&c===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?tB(u,c)||(e.dtick=gse(u/c,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}t.minor._tick0Init===void 0&&(e.tick0=t.tick0)};function tB(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function gse(e,t){return Math.abs(e/t-1)<.001}Qn.prepTicks=function(e,t){var r=Jo.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,i;n||(e.type==="category"||e.type==="multicategory"?(i=e.tickfont?Jo.bigFont(e.tickfont.size||12):15,n=e._length/i):(i=e._id.charAt(0)==="y"?40:80,n=Jo.constrain(e._length/i,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(r[1]-r[0])/n,Qn.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(a=n-1,o=n):(a=n,o=n);var s=e[a].value,l=e[o].value,u=Math.abs(l-s),c=r||u,f=0;c>=xL?u>=xL&&u<=sst?f=u:f=_L:r===nB&&c>=bL?u>=bL&&u<=lst?f=u:f=nB:c>=wL?u>=wL&&u<=ust?f=u:f=R3:r===Zp&&c>=Zp?f=Zp:c>=zv?f=zv:r===l_&&c>=l_?f=l_:r===xm&&c>=xm&&(f=xm);var h;f>=u&&(f=u,h=!0);var d=i+f;if(t.rangebreaks&&f>0){for(var v=84,_=0,b=0;bZp&&(f=u)}(f>0||n===0)&&(e[n].periodX=i+f/2)}}Qn.calcTicks=function(t,r){for(var n=t.type,i=t.calendar,a=t.ticklabelstep,o=t.ticklabelmode==="period",s=t.range[0]>t.range[1],l=!t.ticklabelindex||Jo.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],u=Jo.simpleMap(t.range,t.r2l,void 0,void 0,r),c=u[1]=(E?0:1);A--){var L=!A;A?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var x=A?t:Jo.extendFlat({},t,t.minor);if(L?Qn.prepMinorTicks(x,t,r):Qn.prepTicks(x,r),x.tickmode==="array"){A?(b=[],v=mse(t,!L)):(p=[],_=mse(t,!L));continue}if(x.tickmode==="sync"){b=[],v=wst(t);continue}var k=fB(u),M=k[0],g=k[1],P=kh(x.dtick),T=n==="log"&&!(P||x.dtick.charAt(0)==="L"),z=Qn.tickFirst(x,r);if(A){if(t._tmin=z,z=g:V<=g;V=Qn.tickIncrement(V,H,c,i)){if(A&&G++,x.rangebreaks&&!c){if(V=h)break}if(b.length>d||V===O)break;O=V;var N={value:V};A?(T&&V!==(V|0)&&(N.simpleLabel=!0),a>1&&G%a&&(N.skipLabel=!0),b.push(N)):(N.minor=!0,p.push(N))}}if(!p||p.length<2)l=!1;else{var j=(p[1].value-p[0].value)*(s?-1:1);Wst(j,t.tickformat)||(l=!1)}if(!l)C=b;else{var re=b.concat(p);o&&b.length&&(re=re.slice(1)),re=re.sort(function(Gt,Nt){return Gt.value-Nt.value}).filter(function(Gt,Nt,$t){return Nt===0||Gt.value!==$t[Nt-1].value});var oe=re.map(function(Gt,Nt){return Gt.minor===void 0&&!Gt.skipLabel?Nt:null}).filter(function(Gt){return Gt!==null});oe.forEach(function(Gt){l.map(function(Nt){var $t=Gt+Nt;$t>=0&&$t-1;De--){if(b[De].drop){b.splice(De,1);continue}b[De].value=iB(b[De].value,t);var ce=t.c2p(b[De].value);(Pe?Fe>ce-ge:Feh||srh&&($t.periodX=h),sri&&h_L)t/=_L,n=i(10),e.dtick="M"+12*_m(t,n,mL);else if(a>R3)t/=R3,e.dtick="M"+_m(t,1,yse);else if(a>zv){if(e.dtick=_m(t,zv,e._hasDayOfWeekBreaks?[1,2,7,14]:Tst),!r){var o=Qn.getTickFormat(e),s=e.ticklabelmode==="period";s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Jo.dateTick0(e.calendar,2):e.tick0=Jo.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}}else a>xm?e.dtick=_m(t,xm,yse):a>aM?e.dtick=_m(t,aM,_se):a>TL?e.dtick=_m(t,TL,_se):(n=i(10),e.dtick=_m(t,n,mL))}else if(e.type==="log"){e.tick0=0;var l=Jo.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(l[1]-l[0])<1){var u=1.5*Math.abs((l[1]-l[0])/t);t=Math.abs(Math.pow(10,l[1])-Math.pow(10,l[0]))/u,n=i(10),e.dtick="L"+_m(t,n,mL)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):vB(e)?(e.tick0=0,n=1,e.dtick=_m(t,n,Ast)):(e.tick0=0,n=i(10),e.dtick=_m(t,n,mL));if(e.dtick===0&&(e.dtick=1),!kh(e.dtick)&&typeof e.dtick!="string"){var c=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(c)}};function Ese(e){var t=e.dtick;if(e._tickexponent=0,!kh(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),n=e.l2r(r).replace(/(^-|i)/g,""),i=n.length;if(String(t).charAt(0)==="M")i>10||n.substr(5)!=="01-01"?e._tickround="d":e._tickround=+t.substr(1)%12===0?"y":"m";else if(t>=zv&&i<=10||t>=zv*15)e._tickround="d";else if(t>=aM&&i<=16||t>=xm)e._tickround="M";else if(t>=TL&&i<=19||t>=aM)e._tickround="S";else{var a=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(i,a)-20,e._tickround<0&&(e._tickround=4)}}else if(kh(t)||t.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);kh(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),l=Math.floor(Math.log(s)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(l)>u&&(SL(e.exponentformat)&&!hB(l)?e._tickexponent=3*Math.round((l-1)/3):e._tickexponent=l)}else e._tickround=null}Qn.tickIncrement=function(e,t,r,n){var i=r?-1:1;if(kh(t))return Jo.increment(e,i*t);var a=t.charAt(0),o=i*Number(t.substr(1));if(a==="M")return Jo.incrementMonth(e,o,n);if(a==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(a==="D"){var s=t==="D2"?Mse:Sse,l=e+i*.01,u=Jo.roundUp(Jo.mod(l,1),s,r);return Math.floor(l)+Math.log(w0.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(t)};Qn.tickFirst=function(e,t){var r=e.r2l||Number,n=Jo.simpleMap(e.range,r,void 0,void 0,t),i=n[1]=0&&p<=e._length?b:null};if(a&&Jo.isArrayOrTypedArray(e.ticktext)){var f=Jo.simpleMap(e.range,e.r2l),h=(Math.abs(f[1]-f[0])-(e._lBreaks||0))/1e4;for(u=0;u"+s;else{var u=lM(e),c=e._trueSide||e.side;(!u&&c==="top"||u&&c==="bottom")&&(o+="
")}t.text=o}function Mst(e,t,r,n,i){var a=e.dtick,o=t.x,s=e.tickformat,l=typeof a=="string"&&a.charAt(0);if(i==="never"&&(i=""),n&&l!=="L"&&(a="L3",l="L"),s||l==="L")t.text=sM(Math.pow(10,o),e,i,n);else if(kh(a)||l==="D"&&(e.minorloglabels==="complete"||Jo.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(Jo.mod(o+.01,1)<.1)&&(u=!0,t.fontSize*=.75);var c=Math.pow(10,o).toExponential(0),f=c.split("e"),h=+f[1],d=Math.abs(h),v=e.exponentformat;v==="power"||SL(v)&&hB(h)?(t.text=f[0],d>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),h!==0&&h!==1&&(t.text+=""+(h>0?"":Cb)+d+""),t.fontSize*=1.25):(v==="e"||v==="E")&&d>2?t.text=f[0]+v+(h>0?"+":Cb)+d:(t.text=sM(Math.pow(10,o),e,"","fakehover"),a==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(l==="D")t.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Jo.mod(o,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(a);if(e.dtick==="D1"){var _=String(t.text).charAt(0);(_==="0"||_==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(o<0?.5:.25)))}}function Est(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function Cst(e,t,r){var n=Math.round(t.x),i=e._categories[n]||[],a=i[1]===void 0?"":String(i[1]),o=i[0]===void 0?"":String(i[0]);r?t.text=o+" - "+a:(t.text=a,t.text2=o)}function kst(e,t,r,n,i){i==="never"?i="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide"),t.text=sM(t.x,e,i,n)}function Lst(e,t,r,n,i){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=Pst(a);if(o[1]>=100)t.text=sM(Jo.deg2rad(t.x),e,i,n);else{var s=t.x<0;o[1]===1?o[0]===1?t.text="\u03C0":t.text=o[0]+"\u03C0":t.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),s&&(t.text=Cb+t.text)}}}else t.text=sM(t.x,e,i,n)}function Pst(e){function t(s,l){return Math.abs(s-l)<=1e-6}function r(s,l){return t(l,0)?s:r(l,s%l)}function n(s){for(var l=1;!t(Math.round(s*l)/l,s);)l*=10;return l}var i=n(e),a=e*i,o=Math.abs(r(a,i));return[Math.round(a/o),Math.round(i/o)]}var Ist=["f","p","n","\u03BC","m","","k","M","G","T"];function SL(e){return e==="SI"||e==="B"}function hB(e){return e>14||e<-15}function sM(e,t,r,n){var i=e<0,a=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,l=Qn.getTickFormat(t),u=t.separatethousands;if(n){var c={exponentformat:o,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:kh(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};Ese(c),a=(Number(c._tickround)||0)+4,s=c._tickexponent,t.hoverformat&&(l=t.hoverformat)}if(l)return t._numFormat(l)(e).replace(/-/g,Cb);var f=Math.pow(10,-a)/2;if(o==="none"&&(s=0),e=Math.abs(e),e"+v+"":o==="B"&&s===9?e+="B":SL(o)&&(e+=Ist[s/3+5])}return i?Cb+e:e}Qn.getTickFormat=function(e){var t;function r(l){return typeof l!="string"?l:Number(l.replace("M",""))*R3}function n(l,u){var c=["L","D"];if(typeof l==typeof u){if(typeof l=="number")return l-u;var f=c.indexOf(l.charAt(0)),h=c.indexOf(u.charAt(0));return f===h?Number(l.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):f-h}else return typeof l=="number"?1:-1}function i(l,u,c){var f=c||function(v){return v},h=u[0],d=u[1];return(!h&&typeof h!="number"||f(h)<=f(l))&&(!d&&typeof d!="number"||f(d)>=f(l))}function a(l,u){var c=u[0]===null,f=u[1]===null,h=n(l,u[0])>=0,d=n(l,u[1])<=0;return(c||h)&&(f||d)}var o,s;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&i.unshift(i.splice(c,1).shift())}});var s={false:{left:0,right:0}};return Jo.syncOrAsync(i.map(function(l){return function(){if(l){var u=Qn.getFromId(e,l);r||(r={}),r.axShifts=s,r.overlayingShiftedAx=o;var c=Qn.drawOne(e,u,r);return u._shiftPusher&&cB(u,u._fullDepth||0,s,!0),u._r=u.range.slice(),u._rl=Jo.simpleMap(u._r,u.r2l),c}}}))};Qn.drawOne=function(e,t,r){r=r||{};var n=r.axShifts||{},i=r.overlayingShiftedAx||[],a,o,s;t.setScale();var l=e._fullLayout,u=t._id,c=u.charAt(0),f=Qn.counterLetter(u),h=l._plots[t._mainSubplot],d=t.zerolinelayer==="above traces";if(!h)return;if(t._shiftPusher=t.autoshift||i.indexOf(t._id)!==-1||i.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var v=t.linewidth/2||0;t.ticks==="inside"&&(v+=t.ticklen),cB(t,v,n,!0),cB(t,t.shift||0,n,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=jst(t,n));var _=h[c+"axislayer"],b=t._mainLinePosition,p=b+=t._shift,C=t._mainMirrorPosition,E=t._vals=Qn.calcTicks(t),A=[t.mirror,p,C].join("_");for(a=0;a0?sr.bottom-Nt:0,$t))));var Et=0,er=0;if(t._shiftPusher&&(Et=Math.max($t,sr.height>0?lt==="l"?Nt-sr.left:sr.right-Nt:0),t.title.text!==l._dfltTitle[c]&&(er=(t._titleStandoff||0)+(t._titleScoot||0),lt==="l"&&(er+=bse(t))),t._fullDepth=Math.max(Et,er)),t.automargin){wr={x:0,y:0,r:0,l:0,t:0,b:0};var Ut=[0,1],Ft=typeof t._shift=="number"?t._shift:0;if(c==="x"){if(lt==="b"?wr[lt]=t._depth:(wr[lt]=t._depth=Math.max(sr.width>0?Nt-sr.top:0,$t),Ut.reverse()),sr.width>0){var bt=sr.right-(t._offset+t._length);bt>0&&(wr.xr=1,wr.r=bt);var yt=t._offset-sr.left;yt>0&&(wr.xl=0,wr.l=yt)}}else if(lt==="l"?(t._depth=Math.max(sr.height>0?Nt-sr.left:0,$t),wr[lt]=t._depth-Ft):(t._depth=Math.max(sr.height>0?sr.right-Nt:0,$t),wr[lt]=t._depth+Ft,Ut.reverse()),sr.height>0){var Yt=sr.bottom-(t._offset+t._length);Yt>0&&(wr.yb=0,wr.b=Yt);var lr=t._offset-sr.top;lr>0&&(wr.yt=1,wr.t=lr)}wr[f]=t.anchor==="free"?t.position:t._anchorAxis.domain[Ut[0]],t.title.text!==l._dfltTitle[c]&&(wr[lt]+=bse(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(ur={x:0,y:0,r:0,l:0,t:0,b:0},ur[Gt]=t.linewidth,t.mirror&&t.mirror!==!0&&(ur[Gt]+=$t),t.mirror===!0||t.mirror==="ticks"?ur[f]=t._anchorAxis.domain[Ut[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(ur[f]=[t._counterDomainMin,t._counterDomainMax][Ut[1]]))}st&&(Qe=iM.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(xse(wr,t.automargin),xse(ur,t.automargin)),P3.autoMargin(e,dB(t),wr),P3.autoMargin(e,Lse(t),ur),P3.autoMargin(e,Pse(t),Qe)}),Jo.syncOrAsync(pt)}};function xse(e,t){if(e){var r=Object.keys(dse).reduce(function(n,i){return t.indexOf(i)!==-1&&dse[i].forEach(function(a){n[a]=1}),n},{});Object.keys(e).forEach(function(n){r[n]||(n.length===1?e[n]=0:delete e[n])})}}function Rst(e,t){var r=[],n,i=function(a,o){var s=a.xbnd[o];s!==null&&r.push(Jo.extendFlat({},a,{x:s}))};if(t.length){for(n=0;ne.range[1],s=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,l=!s;if(r){var u=o?-1:1;r=r*u}if(n){var c=e.side,f=s&&(c==="top"||c==="left")||l&&(c==="bottom"||c==="right")?1:-1;n=n*f}return e._id.charAt(0)==="x"?function(h){return I3(i+e._offset+e.l2p(lB(h))+r,a+n)}:function(h){return I3(a+n,i+e._offset+e.l2p(lB(h))+r)}};function lB(e){return e.periodX!==void 0?e.periodX:e.x}function Ost(e){var t=e.ticklabelposition||"",r=e.tickson||"",n=function(v){return t.indexOf(v)!==-1},i=n("top"),a=n("left"),o=n("right"),s=n("bottom"),l=n("inside"),u=r!=="boundaries"&&(s||a||i||o);if(!u&&!l)return[0,0];var c=e.side,f=u?(e.tickwidth||0)/2:0,h=AL,d=e.tickfont?e.tickfont.size:12;return(s||i)&&(f+=d*kb,h+=(e.linewidth||0)/2),(a||o)&&(f+=(e.linewidth||0)/2,h+=AL),l&&c==="top"&&(h-=d*(1-kb)),(a||i)&&(f=-f),(c==="bottom"||c==="right")&&(h=-h),[u?f:0,l?h:0]}Qn.makeTickPath=function(e,t,r,n){n||(n={});var i=n.minor;if(i&&!e.minor)return"";var a=n.len!==void 0?n.len:i?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),s=(e.linewidth||1)/2;return o==="x"?"M0,"+(t+s*r)+"v"+a*r:"M"+(t+s*r)+",0h"+a*r};Qn.makeLabelFns=function(e,t,r){var n=e.ticklabelposition||"",i=e.tickson||"",a=function(O){return n.indexOf(O)!==-1},o=a("top"),s=a("left"),l=a("right"),u=a("bottom"),c=i!=="boundaries"&&(u||s||o||l),f=a("inside"),h=n==="inside"&&e.ticks==="inside"||!f&&e.ticks==="outside"&&i!=="boundaries",d=0,v=0,_=h?e.ticklen:0;if(f?_*=-1:c&&(_=0),h&&(d+=_,r)){var b=Jo.deg2rad(r);d=_*Math.cos(b)+1,v=_*Math.sin(b)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(f?-1:1);var p={labelStandoff:d,labelShift:v},C,E,A,L,x=0,k=e.side,M=e._id.charAt(0),g=e.tickangle,P;if(M==="x")P=!f&&k==="bottom"||f&&k==="top",L=P?1:-1,f&&(L*=-1),C=v*L,E=t+d*L,A=P?1:-.2,Math.abs(g)===90&&(f?A+=rM:g===-90&&k==="bottom"?A=kb:g===90&&k==="top"?A=rM:A=.5,x=rM/2*(g/90)),p.xFn=function(O){return O.dx+C+x*O.fontSize},p.yFn=function(O){return O.dy+E+O.fontSize*A},p.anchorFn=function(O,V){if(c){if(s)return"end";if(l)return"start"}return!kh(V)||V===0||V===180?"middle":V*L<0!==f?"end":"start"},p.heightFn=function(O,V,G){return V<-60||V>60?-.5*G:e.side==="top"!==f?-G:0};else if(M==="y"){if(P=!f&&k==="left"||f&&k==="right",L=P?1:-1,f&&(L*=-1),C=d,E=v*L,A=0,!f&&Math.abs(g)===90&&(g===-90&&k==="left"||g===90&&k==="right"?A=kb:A=.5),f){var T=kh(g)?+g:0;if(T!==0){var z=Jo.deg2rad(T);x=Math.abs(Math.sin(z))*kb*L,A=0}}p.xFn=function(O){return O.dx+t-(C+O.fontSize*A)*L+x*O.fontSize},p.yFn=function(O){return O.dy+E+O.fontSize*rM},p.anchorFn=function(O,V){return kh(V)&&Math.abs(V)===90?"middle":P?"end":"start"},p.heightFn=function(O,V,G){return e.side==="right"&&(V*=-1),V<-30?-G:V<30?-.5*G:0}}return p};function CL(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Qn.drawTicks=function(e,t,r){r=r||{};var n=t._id+"tick",i=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(t.ticks?r.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),a=r.layer.selectAll("path."+n).data(i,CL);a.exit().remove(),a.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return nM.stroke(w0.select(this),o.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(o){return Xp.crispRound(e,o.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),kL(t,[wse]),a.attr("transform",r.transFn)};Qn.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var n=t._id+"grid",i=t.minor&&t.minor.showgrid,a=i?r.vals.filter(function(p){return p.minor}):[],o=t.showgrid?r.vals.filter(function(p){return!p.minor}):[],s=r.counterAxis;if(s&&Qn.shouldShowZeroLine(e,t,s))for(var l=t.tickmode==="array",u=0;u=0;v--){var _=v?h:d;if(_){var b=_.selectAll("path."+n).data(v?o:a,CL);b.exit().remove(),b.enter().append("path").classed(n,1).classed("crisp",r.crisp!==!1),b.attr("transform",r.transFn).attr("d",r.path).each(function(p){return nM.stroke(w0.select(this),p.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(p){return Xp.dashStyle(p.minor?t.minor.griddash:t.griddash,p.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(p){return(p.minor?f:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&b.attr("d",r.path)}}kL(t,[oB,sB])}};Qn.drawZeroLine=function(e,t,r){r=r||r;var n=t._id+"zl",i=Qn.shouldShowZeroLine(e,t,r.counterAxis),a=r.layer.selectAll("path."+n).data(i?[{x:0,id:t._id}]:[]);a.exit().remove(),a.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(o,s){return vst(o.id,s.id)})}),a.attr("transform",r.transFn).attr("d",r.path).call(nM.stroke,t.zerolinecolor||nM.defaultLine).style("stroke-width",Xp.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),kL(t,[aB])};Qn.drawLabels=function(e,t,r){r=r||{};var n=e._fullLayout,i=t._id,a=t.zerolinelayer==="above traces",o=r.cls||i+"tick",s=r.vals.filter(function(j){return j.text}),l=r.labelFns,u=r.secondary?0:t.tickangle,c=(t._prevTickAngles||{})[o],f=r.layer.selectAll("g."+o).data(t.showticklabels?s:[],CL),h=[];f.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(j){var re=w0.select(this),oe=e._promises.length;re.call(Eb.positionText,l.xFn(j),l.yFn(j)).call(Xp.font,{family:j.font,size:j.fontSize,color:j.fontColor,weight:j.fontWeight,style:j.fontStyle,variant:j.fontVariant,textcase:j.fontTextcase,lineposition:j.fontLineposition,shadow:j.fontShadow}).text(j.text).call(Eb.convertToTspans,e),e._promises[oe]?h.push(e._promises.pop().then(function(){d(re,u)})):d(re,u)}),kL(t,[hse]),f.exit().remove(),r.repositionOnUpdate&&f.each(function(j){w0.select(this).select("text").call(Eb.positionText,l.xFn(j),l.yFn(j))});function d(j,re){j.each(function(oe){var _e=w0.select(this),Me=_e.select(".text-math-group"),ke=l.anchorFn(oe,re),me=r.transFn.call(_e.node(),oe)+(kh(re)&&+re!=0?" rotate("+re+","+l.xFn(oe)+","+(l.yFn(oe)-oe.fontSize/2)+")":""),ie=Eb.lineCount(_e),Se=oM*oe.fontSize,Le=l.heightFn(oe,kh(re)?+re:0,(ie-1)*Se);if(Le&&(me+=I3(0,Le)),Me.empty()){var Ae=_e.select("text");Ae.attr({transform:me,"text-anchor":ke}),Ae.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var De=Xp.bBox(Me.node()).width,Pe=De*{end:-.5,start:.5}[ke];Me.attr("transform",me+I3(Pe,0))}})}t._adjustTickLabelsOverflow=function(){var j=t.ticklabeloverflow;if(!(!j||j==="allow")){var re=j.indexOf("hide")!==-1,oe=t._id.charAt(0)==="x",_e=0,Me=oe?e._fullLayout.width:e._fullLayout.height;if(j.indexOf("domain")!==-1){var ke=Jo.simpleMap(t.range,t.r2l);_e=t.l2p(ke[0])+t._offset,Me=t.l2p(ke[1])+t._offset}var me=Math.min(_e,Me),ie=Math.max(_e,Me),Se=t.side,Le=1/0,Ae=-1/0;f.each(function(Fe){var ce=w0.select(this),Ye=ce.select(".text-math-group");if(Ye.empty()){var ct=Xp.bBox(ce.node()),pt=0;oe?(ct.right>ie||ct.leftie||ct.top+(t.tickangle?0:Fe.fontSize/4)t["_visibleLabelMin_"+ke._id]?ce.style("display","none"):ie.K==="tick"&&!me&&ce.node().style.display!=="none"&&ce.style("display",null)})})})})},d(f,c+1?c:u);function v(){return h.length&&Promise.all(h)}var _=null;function b(){if(d(f,u),s.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){_=t.autotickangles[0];var j=0,re=[],oe,_e=1;f.each(function(wr){j=Math.max(j,wr.fontSize);var ur=t.l2p(wr.x),Qe=uB(this),Et=Xp.bBox(Qe.node());_e=Math.max(_e,Eb.lineCount(Qe)),re.push({top:0,bottom:10,height:10,left:ur-Et.width/2,right:ur+Et.width/2+2,width:Et.width+2})});var Me=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,ke=s.length,me=Math.abs((s[ke-1].x-s[0].x)*t._m)/(ke-1),ie=Me?me/2:me,Se=Me?t.ticklen:j*1.25*_e,Le=Math.sqrt(Math.pow(ie,2)+Math.pow(Se,2)),Ae=ie/Le,De=t.autotickangles.map(function(wr){return wr*Math.PI/180}),Pe=De.find(function(wr){return Math.abs(Math.cos(wr))<=Ae});Pe===void 0&&(Pe=De.reduce(function(wr,ur){return Math.abs(Math.cos(wr))Z*G&&(z=G,g[M]=P[M]=O[M])}var H=Math.abs(z-T);H-L>0?(H-=L,L*=1+L/H):L=0,t._id.charAt(0)!=="y"&&(L=-L),g[k]=E.p2r(E.r2p(P[k])+x*L),E.autorange==="min"||E.autorange==="max reversed"?(g[0]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0):(E.autorange==="max"||E.autorange==="min reversed")&&(g[1]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[E._name+".range"]=g}var N=Jo.syncOrAsync(p);return N&&N.then&&e._promises.push(N),N};function qst(e,t,r){var n=t._id+"divider",i=r.vals,a=r.layer.selectAll("path."+n).data(i,CL);a.exit().remove(),a.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(nM.stroke,t.dividercolor).style("stroke-width",Xp.crispRound(e,t.dividerwidth,1)+"px"),a.attr("transform",r.transFn).attr("d",r.path)}Qn.getPxPosition=function(e,t){var r=e._fullLayout._size,n=t._id.charAt(0),i=t.side,a;if(t.anchor!=="free"?a=t._anchorAxis:n==="x"?a={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:n==="y"&&(a={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),i==="top"||i==="left")return a._offset;if(i==="bottom"||i==="right")return a._offset+a._length};function bse(e){var t=e.title.font.size,r=(e.title.text.match(Eb.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(kb+r*oM):r?t*(r+1)*oM:t}function Bst(e,t){var r=e._fullLayout,n=t._id,i=n.charAt(0),a=t.title.font.size,o,s=(t.title.text.match(Eb.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?o=t._depth+t.title.standoff+a*kb:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+a*(rM+s*oM));else{var l=lM(t);if(t.type==="multicategory")o=t._depth;else{var u=1.5*a;l&&(u=.5*a,t.ticks==="outside"&&(u+=t.ticklen)),o=10+u+(t.linewidth?t.linewidth-1:0)}l||(i==="x"?o+=t.side==="top"?a*(t.showticklabels?1:0):a*(t.showticklabels?1.5:.5):o+=t.side==="right"?a*(t.showticklabels?1:.5):a*(t.showticklabels?.5:0))}var c=Qn.getPxPosition(e,t),f,h,d;i==="x"?(h=t._offset+t._length/2,d=t.side==="top"?c-o:c+o):(d=t._offset+t._length/2,h=t.side==="right"?c+o:c-o,f={rotate:"-90",offset:0});var v;if(t.type!=="multicategory"){var _=t._selections[t._id+"tick"];if(v={selection:_,side:t.side},_&&_.node()&&_.node().parentNode){var b=Xp.getTranslate(_.node().parentNode);v.offsetLeft=b.x,v.offsetTop=b.y}t.title.hasOwnProperty("standoff")&&(v.pad=0)}return t._titleStandoff=o,ast.draw(e,n+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[i],avoid:v,transform:f,attributes:{x:h,y:d,"text-anchor":"middle"}})}Qn.shouldShowZeroLine=function(e,t,r){var n=Jo.simpleMap(t.range,t.r2l);return n[0]*n[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===ML)&&(kse(t,0)||!Nst(e,t,r,n)||Ust(e,t))};Qn.clipEnds=function(e,t){return t.filter(function(r){return kse(e,r.x)})};function kse(e,t){var r=e.l2p(t);return r>1&&r1)for(i=1;i=i.min&&e=fst:/%L/.test(t)?e>=cst:/%[SX]/.test(t)?e>=TL:/%M/.test(t)?e>=aM:/%[HI]/.test(t)?e>=xm:/%p/.test(t)?e>=l_:/%[Aadejuwx]/.test(t)?e>=zv:/%[UVW]/.test(t)?e>=Zp:/%[Bbm]/.test(t)?e>=wL:/%[q]/.test(t)?e>=bL:/%[Yy]/.test(t)?e>=xL:!0}});var pB=ye((Uir,Rse)=>{"use strict";Rse.exports=function(t,r,n){var i,a;if(n){var o=r==="reversed"||r==="min reversed"||r==="max reversed";i=n[o?1:0],a=n[o?0:1]}var s=t("autorangeoptions.minallowed",a===null?i:void 0),l=t("autorangeoptions.maxallowed",i===null?a:void 0);s===void 0&&t("autorangeoptions.clipmin"),l===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var gB=ye((Vir,Dse)=>{"use strict";var Xst=pB();Dse.exports=function(t,r,n,i){var a=r._template||{},o=r.type||a.type||"-";n("minallowed"),n("maxallowed");var s=n("range");if(!s){var l;!i.noInsiderange&&o!=="log"&&(l=n("insiderange"),l&&(l[0]===null||l[1]===null)&&(r.insiderange=!1,l=void 0),l&&(s=n("range",l)))}var u=r.getAutorangeDflt(s,i),c=n("autorange",u),f;s&&(s[0]===null&&s[1]===null||(s[0]===null||s[1]===null)&&(c==="reversed"||c===!0)||s[0]!==null&&(c==="min"||c==="max reversed")||s[1]!==null&&(c==="max"||c==="min reversed"))&&(s=void 0,delete r.range,r.autorange=!0,f=!0),f||(u=r.getAutorangeDflt(s,i),c=n("autorange",u)),c&&(Xst(n,c,s),(o==="linear"||o==="-")&&n("rangemode")),r.cleanRange()}});var zse=ye((Gir,Fse)=>{var Zst={left:0,top:0};Fse.exports=Yst;function Yst(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var n=e.clientX||0,i=e.clientY||0,a=Kst(t);return r[0]=n-a.left,r[1]=i-a.top,r}function Kst(e){return e===window||e===document||e===document.body?Zst:e.getBoundingClientRect()}});var LL=ye((Hir,Ose)=>{"use strict";var Jst=QO();function $st(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}Ose.exports=Jst&&$st()});var Bse=ye((jir,qse)=>{"use strict";qse.exports=function(t,r,n,i,a){var o=(t-n)/(i-n),s=o+r/(i-n),l=(o+s)/2;return a==="left"||a==="bottom"?o:a==="center"||a==="middle"?l:a==="right"||a==="top"?s:o<2/3-l?o:s>4/3-l?s:l}});var Vse=ye((Wir,Use)=>{"use strict";var Nse=Dr(),Qst=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];Use.exports=function(t,r,n,i){return n==="left"?t=0:n==="center"?t=1:n==="right"?t=2:t=Nse.constrain(Math.floor(t*3),0,2),i==="bottom"?r=0:i==="middle"?r=1:i==="top"?r=2:r=Nse.constrain(Math.floor(r*3),0,2),Qst[r][t]}});var Hse=ye((Xir,Gse)=>{"use strict";var elt=g3(),tlt=R6(),rlt=OS().getGraphDiv,ilt=RS(),mB=Gse.exports={};mB.wrapped=function(e,t,r){e=rlt(e),e._fullLayout&&tlt.clear(e._fullLayout._uid+ilt.HOVERID),mB.raw(e,t,r)};mB.raw=function(t,r){var n=t._fullLayout,i=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&elt.triggerHandler(t,"plotly_beforehover",r)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&i&&t.emit("plotly_unhover",{event:r,points:i}))}});var gv=ye((Zir,Zse)=>{"use strict";var nlt=zse(),yB=tq(),alt=LL(),olt=Dr().removeElement,slt=hd(),Lb=Zse.exports={};Lb.align=Bse();Lb.getCursor=Vse();var Wse=Hse();Lb.unhover=Wse.wrapped;Lb.unhoverRaw=Wse.raw;Lb.init=function(t){var r=t.gd,n=1,i=r._context.doubleClickDelay,a=t.element,o,s,l,u,c,f,h,d;r._mouseDownTime||(r._mouseDownTime=0),a.style.pointerEvents="all",a.onmousedown=b,alt?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=b,a.addEventListener("touchstart",b,{passive:!1})):a.ontouchstart=b;function v(E,A,L){return Math.abs(E)i&&(n=Math.max(n-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var A;f.target===h?A=f:(A={target:h,srcElement:h,toElement:h},Object.keys(f).concat(Object.keys(f.__proto__)).forEach(L=>{var x=f[L];!A[L]&&typeof x!="function"&&(A[L]=x)})),t.clickFn&&t.clickFn(n,A),d||h.dispatchEvent(new MouseEvent("click",E))}r._dragging=!1,r._dragged=!1}};function Xse(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}Lb.coverSlip=Xse;function jse(e){return nlt(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Tg=ye((Yir,Yse)=>{"use strict";Yse.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&t.classed(n,!1)}),r&&t.classed("cursor-"+r,!0)}});var $se=ye((Kir,Jse)=>{"use strict";var _B=Tg(),uM="data-savedcursor",Kse="!!";Jse.exports=function(t,r){var n=t.attr(uM);if(r){if(!n){for(var i=(t.attr("class")||"").split(" "),a=0;a{"use strict";var xB=ec(),llt=Eh();Qse.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:llt.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:xB({editType:"legend"}),grouptitlefont:xB({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:xB({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var IL=ye(PL=>{"use strict";PL.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};PL.isVertical=function(t){return t.orientation!=="h"};PL.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1}});var AB=ye((Qir,ele)=>{"use strict";var wB=qa(),Yp=Dr(),ult=pl(),clt=Vl(),flt=bB(),hlt=s3(),TB=IL();function dlt(e,t,r,n){var i=t[e]||{},a=ult.newContainer(r,e);function o(H,N){return Yp.coerce(i,a,flt,H,N)}var s=Yp.coerceFont(o,"font",r.font);o("bgcolor",r.paper_bgcolor),o("bordercolor");var l=o("visible");if(l){for(var u,c=function(H,N){var j=u._input,re=u;return Yp.coerce(j,re,clt,H,N)},f=r.font||{},h=Yp.coerceFont(o,"grouptitlefont",f,{overrideDflt:{size:Math.round(f.size*1.1)}}),d=0,v=!1,_="normal",b=(r.shapes||[]).filter(function(H){return H.showlegend}),p=n.concat(b).filter(function(H){return e===(H.legend||"legend")}),C=0;C(e==="legend"?1:0));if(A===!1&&(r[e]=void 0),!(A===!1&&!i.uirevision)&&(o("uirevision",r.uirevision),A!==!1)){o("borderwidth");var L=o("orientation"),x=o("yref"),k=o("xref"),M=L==="h",g=x==="paper",P=k==="paper",T,z,O,V="left";M?(T=0,wB.getComponentMethod("rangeslider","isVisible")(t.xaxis)?g?(z=1.1,O="bottom"):(z=1,O="top"):g?(z=-.1,O="top"):(z=0,O="bottom")):(z=1,O="auto",P?T=1.02:(T=1,V="right")),Yp.coerce(i,a,{x:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:T}},"x"),Yp.coerce(i,a,{y:{valType:"number",editType:"legend",min:g?-2:0,max:g?3:1,dflt:z}},"y"),o("traceorder",_),TB.isGrouped(r[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",V),o("yanchor",O),o("maxheight",M?.5:1),o("valign"),Yp.noneOrAll(i,a,["x","y"]);var G=o("title.text");if(G){o("title.side",M?"left":"top");var Z=Yp.extendFlat({},s,{size:Yp.bigFont(s.size)});Yp.coerceFont(o,"title.font",Z)}}}}ele.exports=function(t,r,n){var i,a=n.slice(),o=r.shapes;if(o)for(i=0;i{"use strict";var D3=qa(),MB=Dr(),vlt=MB.pushUnique,SB=!0;tle.exports=function(t,r,n){var i=r._fullLayout;if(r._dragged||r._editing)return;var a=i.legend.itemclick,o=i.legend.itemdoubleclick,s=i.legend.groupclick;n===1&&a==="toggle"&&o==="toggleothers"&&SB&&r.data&&r._context.showTips&&MB.notifier(MB._(r,"Double-click on legend to isolate one trace"),"long"),SB=!1;var l;if(n===1?l=a:n===2&&(l=o),!l)return;var u=s==="togglegroup",c=i.hiddenlabels?i.hiddenlabels.slice():[],f=t.data()[0][0];if(f.groupTitle&&f.noClick)return;var h=r._fullData,d=(i.shapes||[]).filter(function(Gt){return Gt.showlegend}),v=h.concat(d),_=f.trace;_._isShape&&(_=_._fullInput);var b=_.legendgroup,p,C,E,A,L,x,k={},M=[],g=[],P=[];function T(Gt,Nt){var $t=M.indexOf(Gt),sr=k.visible;return sr||(sr=k.visible=[]),M.indexOf(Gt)===-1&&(M.push(Gt),$t=M.length-1),sr[$t]=Nt,$t}var z=(i.shapes||[]).map(function(Gt){return Gt._input}),O=!1;function V(Gt,Nt){z[Gt].visible=Nt,O=!0}function G(Gt,Nt){if(!(f.groupTitle&&!u)){var $t=Gt._fullInput||Gt,sr=$t._isShape,wr=$t.index;wr===void 0&&(wr=$t._index);var ur=$t.visible===!1?!1:Nt;sr?V(wr,ur):T(wr,ur)}}var Z=_.legend,H=_._fullInput,N=H&&H._isShape;if(!N&&D3.traceIs(_,"pie-like")){var j=f.label,re=c.indexOf(j);if(l==="toggle")re===-1?c.push(j):c.splice(re,1);else if(l==="toggleothers"){var oe=re!==-1,_e=[];for(p=0;p{"use strict";ile.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var ole=ye((rnr,ale)=>{"use strict";var nle=qa(),CB=IL();ale.exports=function(t,r,n){var i=r._inHover,a=CB.isGrouped(r),o=CB.isReversed(r),s={},l=[],u=!1,c={},f=0,h=0,d,v;function _(H,N,j){if(r.visible!==!1&&!(n&&H!==r._id))if(N===""||!CB.isGrouped(r)){var re="~~i"+f;l.push(re),s[re]=[j],f++}else l.indexOf(N)===-1?(l.push(N),u=!0,s[N]=[j]):s[N].push(j)}for(d=0;dP&&(g=P)}k[d][0]._groupMinRank=g,k[d][0]._preGroupSort=d}var T=function(H,N){return H[0]._groupMinRank-N[0]._groupMinRank||H[0]._preGroupSort-N[0]._preGroupSort},z=function(H,N){return H.trace.legendrank-N.trace.legendrank||H._preSort-N._preSort};for(k.forEach(function(H,N){H[0]._preGroupSort=N}),k.sort(T),d=0;d{"use strict";var RL=Dr();function sle(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Pb.formatPiePercent=function(t,r){var n=sle((t*100).toPrecision(3));return RL.numSeparate(n,r)+"%"};Pb.formatPieValue=function(t,r){var n=sle(t.toPrecision(10));return RL.numSeparate(n,r)};Pb.getFirstFilled=function(t,r){if(RL.isArrayOrTypedArray(t))for(var n=0;n{"use strict";var plt=So(),glt=Ca();lle.exports=function(t,r,n,i){var a=n.marker.pattern;a&&a.shape?plt.pointStyle(t,n,i,r):glt.fill(t,r.color)}});var F3=ye((anr,hle)=>{"use strict";var cle=Ca(),fle=u_().castOption,mlt=ule();hle.exports=function(t,r,n,i){var a=n.marker.line,o=fle(a.color,r.pts)||cle.defaultLine,s=fle(a.width,r.pts)||0;t.call(mlt,r,n,i).style("stroke-width",s).call(cle.stroke,o)}});var IB=ye((onr,yle)=>{"use strict";var Ov=Oa(),kB=qa(),mv=Dr(),dle=mv.strTranslate,Kp=So(),T0=Ca(),LB=Dv().extractOpts,DL=Ru(),ylt=F3(),_lt=u_().castOption,xlt=EB(),vle=12,ple=5,Ib=2,blt=10,z3=5;yle.exports=function(t,r,n){var i=r._fullLayout;n||(n=i.legend);var a=n.itemsizing==="constant",o=n.itemwidth,s=(o+xlt.itemGap*2)/2,l=dle(s,0),u=function(k,M,g,P){var T;if(k+1)T=k;else if(M&&M.width>0)T=M.width;else return 0;return a?P:Math.min(T,g)};t.each(function(k){var M=Ov.select(this),g=mv.ensureSingle(M,"g","layers");g.style("opacity",k[0].trace.opacity);var P=n.indentation,T=n.valign,z=k[0].lineHeight,O=k[0].height;if(T==="middle"&&P===0||!z||!O)g.attr("transform",null);else{var V={top:1,bottom:-1}[T],G=V*(.5*(z-O+3))||0,Z=n.indentation;g.attr("transform",dle(Z,G))}var H=g.selectAll("g.legendfill").data([k]);H.enter().append("g").classed("legendfill",!0);var N=g.selectAll("g.legendlines").data([k]);N.enter().append("g").classed("legendlines",!0);var j=g.selectAll("g.legendsymbols").data([k]);j.enter().append("g").classed("legendsymbols",!0),j.selectAll("g.legendpoints").data([k]).enter().append("g").classed("legendpoints",!0)}).each(x).each(h).each(v).each(d).each(b).each(A).each(E).each(c).each(f).each(p).each(C);function c(k){var M=gle(k),g=M.showFill,P=M.showLine,T=M.showGradientLine,z=M.showGradientFill,O=M.anyFill,V=M.anyLine,G=k[0],Z=G.trace,H,N,j=LB(Z),re=j.colorscale,oe=j.reversescale,_e=function(Ae){if(Ae.size())if(g)Kp.fillGroupStyle(Ae,r,!0);else{var De="legendfill-"+Z.uid;Kp.gradient(Ae,r,De,PB(oe),re,"fill")}},Me=function(Ae){if(Ae.size()){var De="legendline-"+Z.uid;Kp.lineGroupStyle(Ae),Kp.gradient(Ae,r,De,PB(oe),re,"stroke")}},ke=DL.hasMarkers(Z)||!O?"M5,0":V?"M5,-2":"M5,-3",me=Ov.select(this),ie=me.select(".legendfill").selectAll("path").data(g||z?[k]:[]);if(ie.enter().append("path").classed("js-fill",!0),ie.exit().remove(),ie.attr("d",ke+"h"+o+"v6h-"+o+"z").call(_e),P||T){var Se=u(void 0,Z.line,blt,ple);N=mv.minExtend(Z,{line:{width:Se}}),H=[mv.minExtend(G,{trace:N})]}var Le=me.select(".legendlines").selectAll("path").data(P||T?[H]:[]);Le.enter().append("path").classed("js-line",!0),Le.exit().remove(),Le.attr("d",ke+(T?"l"+o+",0.0001":"h"+o)).call(P?Kp.lineGroupStyle:Me)}function f(k){var M=gle(k),g=M.anyFill,P=M.anyLine,T=M.showLine,z=M.showMarker,O=k[0],V=O.trace,G=!z&&!P&&!g&&DL.hasText(V),Z,H;function N(ie,Se,Le,Ae){var De=mv.nestedProperty(V,ie).get(),Pe=mv.isArrayOrTypedArray(De)&&Se?Se(De):De;if(a&&Pe&&Ae!==void 0&&(Pe=Ae),Le){if(PeLe[1])return Le[1]}return Pe}function j(ie){return O._distinct&&O.index&&ie[O.index]?ie[O.index]:ie[0]}if(z||G||T){var re={},oe={};if(z){re.mc=N("marker.color",j),re.mx=N("marker.symbol",j),re.mo=N("marker.opacity",mv.mean,[.2,1]),re.mlc=N("marker.line.color",j),re.mlw=N("marker.line.width",mv.mean,[0,5],Ib),oe.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var _e=N("marker.size",mv.mean,[2,16],vle);re.ms=_e,oe.marker.size=_e}T&&(oe.line={width:N("line.width",j,[0,10],ple)}),G&&(re.tx="Aa",re.tp=N("textposition",j),re.ts=10,re.tc=N("textfont.color",j),re.tf=N("textfont.family",j),re.tw=N("textfont.weight",j),re.ty=N("textfont.style",j),re.tv=N("textfont.variant",j),re.tC=N("textfont.textcase",j),re.tE=N("textfont.lineposition",j),re.tS=N("textfont.shadow",j)),Z=[mv.minExtend(O,re)],H=mv.minExtend(V,oe),H.selectedpoints=null,H.texttemplate=null}var Me=Ov.select(this).select("g.legendpoints"),ke=Me.selectAll("path.scatterpts").data(z?Z:[]);ke.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",l),ke.exit().remove(),ke.call(Kp.pointStyle,H,r),z&&(Z[0].mrc=3);var me=Me.selectAll("g.pointtext").data(G?Z:[]);me.enter().append("g").classed("pointtext",!0).append("text").attr("transform",l),me.exit().remove(),me.selectAll("text").call(Kp.textPointStyle,H,r)}function h(k){var M=k[0].trace,g=M.type==="waterfall";if(k[0]._distinct&&g){var P=k[0].trace[k[0].dir].marker;return k[0].mc=P.color,k[0].mlw=P.line.width,k[0].mlc=P.line.color,_(k,this,"waterfall")}var T=[];M.visible&&g&&(T=k[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var z=Ov.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(T);z.enter().append("path").classed("legendwaterfall",!0).attr("transform",l).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(O){var V=Ov.select(this),G=M[O[0]].marker,Z=u(void 0,G.line,z3,Ib);V.attr("d",O[1]).style("stroke-width",Z+"px").call(T0.fill,G.color),Z&&V.call(T0.stroke,G.line.color)})}function d(k){_(k,this)}function v(k){_(k,this,"funnel")}function _(k,M,g){var P=k[0].trace,T=P.marker||{},z=T.line||{},O=T.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",V=g?P.visible&&P.type===g:kB.traceIs(P,"bar"),G=Ov.select(M).select("g.legendpoints").selectAll("path.legend"+g).data(V?[k]:[]);G.enter().append("path").classed("legend"+g,!0).attr("d",O).attr("transform",l),G.exit().remove(),G.each(function(Z){var H=Ov.select(this),N=Z[0],j=u(N.mlw,T.line,z3,Ib);H.style("stroke-width",j+"px");var re=N.mcc;if(!n._inHover&&"mc"in N){var oe=LB(T),_e=oe.mid;_e===void 0&&(_e=(oe.max+oe.min)/2),re=Kp.tryColorscale(T,"")(_e)}var Me=re||N.mc||T.color,ke=T.pattern,me=Kp.getPatternAttr,ie=ke&&(me(ke.shape,0,"")||me(ke.path,0,""));if(ie){var Se=me(ke.bgcolor,0,null),Le=me(ke.fgcolor,0,null),Ae=ke.fgopacity,De=mle(ke.size,8,10),Pe=mle(ke.solidity,.5,1),ge="legend-"+P.uid;H.call(Kp.pattern,"legend",r,ge,ie,De,Pe,re,ke.fillmode,Se,Le,Ae)}else H.call(T0.fill,Me);j&&T0.stroke(H,N.mlc||z.color)})}function b(k){var M=k[0].trace,g=Ov.select(this).select("g.legendpoints").selectAll("path.legendbox").data(M.visible&&kB.traceIs(M,"box-violin")?[k]:[]);g.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),g.exit().remove(),g.each(function(){var P=Ov.select(this);if((M.boxpoints==="all"||M.points==="all")&&T0.opacity(M.fillcolor)===0&&T0.opacity((M.line||{}).color)===0){var T=mv.minExtend(M,{marker:{size:a?vle:mv.constrain(M.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});g.call(Kp.pointStyle,T,r)}else{var z=u(void 0,M.line,z3,Ib);P.style("stroke-width",z+"px").call(T0.fill,M.fillcolor),z&&T0.stroke(P,M.line.color)}})}function p(k){var M=k[0].trace,g=Ov.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(M.visible&&M.type==="candlestick"?[k,k]:[]);g.enter().append("path").classed("legendcandle",!0).attr("d",function(P,T){return T?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",l).style("stroke-miterlimit",1),g.exit().remove(),g.each(function(P,T){var z=Ov.select(this),O=M[T?"increasing":"decreasing"],V=u(void 0,O.line,z3,Ib);z.style("stroke-width",V+"px").call(T0.fill,O.fillcolor),V&&T0.stroke(z,O.line.color)})}function C(k){var M=k[0].trace,g=Ov.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(M.visible&&M.type==="ohlc"?[k,k]:[]);g.enter().append("path").classed("legendohlc",!0).attr("d",function(P,T){return T?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",l).style("stroke-miterlimit",1),g.exit().remove(),g.each(function(P,T){var z=Ov.select(this),O=M[T?"increasing":"decreasing"],V=u(void 0,O.line,z3,Ib);z.style("fill","none").call(Kp.dashLine,O.line.dash,V),V&&T0.stroke(z,O.line.color)})}function E(k){L(k,this,"pie")}function A(k){L(k,this,"funnelarea")}function L(k,M,g){var P=k[0],T=P.trace,z=g?T.visible&&T.type===g:kB.traceIs(T,g),O=Ov.select(M).select("g.legendpoints").selectAll("path.legend"+g).data(z?[k]:[]);if(O.enter().append("path").classed("legend"+g,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),O.exit().remove(),O.size()){var V=T.marker||{},G=u(_lt(V.line.width,P.pts),V.line,z3,Ib),Z="pieLike",H=mv.minExtend(T,{marker:{line:{width:G}}},Z),N=mv.minExtend(P,{trace:H},Z);ylt(O,N,H,r)}}function x(k){var M=k[0].trace,g,P=[];if(M.visible)switch(M.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],g=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],g=!0;break;case"densitymapbox":case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],g="radial";break;case"cone":P=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],g=!1;break;case"streamtube":P=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],g=!1;break;case"surface":P=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],g=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],g=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],g=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],g=!1;break}var T=Ov.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);T.enter().append("path").classed("legend3dandfriends",!0).attr("transform",l).style("stroke-miterlimit",1),T.exit().remove(),T.each(function(z,O){var V=Ov.select(this),G=LB(M),Z=G.colorscale,H=G.reversescale,N=function(_e){if(_e.size()){var Me="legendfill-"+M.uid;Kp.gradient(_e,r,Me,PB(H,g==="radial"),Z,"fill")}},j;if(Z){if(!g){var oe=Z.length;j=O===0?Z[H?oe-1:0][1]:O===1?Z[H?0:oe-1][1]:Z[Math.floor((oe-1)/2)][1]}}else{var re=M.vertexcolor||M.facecolor||M.color;j=mv.isArrayOrTypedArray(re)?re[O]||re[0]:re}V.attr("d",z[0]),j?V.call(T0.fill,j):V.call(N)})}};function PB(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function gle(e){var t=e[0].trace,r=t.contours,n=DL.hasLines(t),i=DL.hasMarkers(t),a=t.visible&&t.fill&&t.fill!=="none",o=!1,s=!1;if(r){var l=r.coloring;l==="lines"?o=!0:n=l==="none"||l==="heatmap"||r.showlines,r.type==="constraint"?a=r._operation!=="=":(l==="fill"||l==="heatmap")&&(s=!0)}return{showMarker:i,showLine:n,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:n||o,anyFill:a||s}}function mle(e,t,r){return e&&mv.isArrayOrTypedArray(e)?t:e>r?r:e}});var zB=ye((snr,Cle)=>{"use strict";var Ap=Oa(),Lh=Dr(),DB=Mc(),B3=qa(),_le=g3(),RB=gv(),Ph=So(),zL=Ca(),Rb=iu(),xle=rle(),$h=EB(),FB=Kh(),Mle=FB.LINE_SPACING,q3=FB.FROM_TL,ble=FB.FROM_BR,wle=ole(),wlt=IB(),Tle=IL(),O3=1,Tlt=/^legend[0-9]*$/;Cle.exports=function(t,r){if(r)Ale(t,r);else{var n=t._fullLayout,i=n._legends,a=n._infolayer.selectAll('[class^="legend"]');a.each(function(){var u=Ap.select(this),c=u.attr("class"),f=c.split(" ")[0];f.match(Tlt)&&i.indexOf(f)===-1&&u.remove()});for(var o=0;o1)}var v=n.hiddenlabels||[];if(!s&&(!n.showlegend||!l.length))return o.selectAll("."+i).remove(),n._topdefs.select("#"+a).remove(),DB.autoMargin(e,i);var _=Lh.ensureSingle(o,"g",i,function(M){s||M.attr("pointer-events","all")}),b=Lh.ensureSingleById(n._topdefs,"clipPath",a,function(M){M.append("rect")}),p=Lh.ensureSingle(_,"rect","bg",function(M){M.attr("shape-rendering","crispEdges")});p.call(zL.stroke,r.bordercolor).call(zL.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var C=Lh.ensureSingle(_,"g","scrollbox"),E=r.title;r._titleWidth=0,r._titleHeight=0;var A;E.text?(A=Lh.ensureSingle(C,"text",i+"titletext"),A.attr("text-anchor","start").call(Ph.font,E.font).text(E.text),OL(A,C,e,r,O3)):C.selectAll("."+i+"titletext").remove();var L=Lh.ensureSingle(_,"rect","scrollbar",function(M){M.attr($h.scrollBarEnterAttrs).call(zL.fill,$h.scrollBarColor)}),x=C.selectAll("g.groups").data(l);x.enter().append("g").attr("class","groups"),x.exit().remove();var k=x.selectAll("g.traces").data(Lh.identity);k.enter().append("g").attr("class","traces"),k.exit().remove(),k.style("opacity",function(M){var g=M[0].trace;return B3.traceIs(g,"pie-like")?v.indexOf(M[0].label)!==-1?.5:1:g.visible==="legendonly"?.5:1}).each(function(){Ap.select(this).call(Slt,e,r)}).call(wlt,e,r).each(function(){s||Ap.select(this).call(Mlt,e,i)}),Lh.syncOrAsync([DB.previousPromises,function(){return klt(e,x,k,r)},function(){var M=n._size,g=r.borderwidth,P=r.xref==="paper",T=r.yref==="paper";if(E.text&&Alt(A,r,g),!s){var z,O;P?z=M.l+M.w*r.x-q3[qL(r)]*r._width:z=n.width*r.x-q3[qL(r)]*r._width,T?O=M.t+M.h*(1-r.y)-q3[BL(r)]*r._effHeight:O=n.height*(1-r.y)-q3[BL(r)]*r._effHeight;var V=Llt(e,i,z,O);if(V)return;if(n.margin.autoexpand){var G=z,Z=O;z=P?Lh.constrain(z,0,n.width-r._width):G,O=T?Lh.constrain(O,0,n.height-r._effHeight):Z,z!==G&&Lh.log("Constrain "+i+".x to make legend fit inside graph"),O!==Z&&Lh.log("Constrain "+i+".y to make legend fit inside graph")}Ph.setTranslate(_,z,O)}if(L.on(".drag",null),_.on("wheel",null),s||r._height<=r._maxHeight||e._context.staticPlot){var H=r._effHeight;s&&(H=r._height),p.attr({width:r._width-g,height:H-g,x:g/2,y:g/2}),Ph.setTranslate(C,0,0),b.select("rect").attr({width:r._width-2*g,height:H-2*g,x:g,y:g}),Ph.setClipUrl(C,a,e),Ph.setRect(L,0,0,0,0),delete r._scrollY}else{var N=Math.max($h.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),j=r._effHeight-N-2*$h.scrollBarMargin,re=r._height-r._effHeight,oe=j/re,_e=Math.min(r._scrollY||0,re);p.attr({width:r._width-2*g+$h.scrollBarWidth+$h.scrollBarMargin,height:r._effHeight-g,x:g/2,y:g/2}),b.select("rect").attr({width:r._width-2*g+$h.scrollBarWidth+$h.scrollBarMargin,height:r._effHeight-2*g,x:g,y:g+_e}),Ph.setClipUrl(C,a,e),De(_e,N,oe),_.on("wheel",function(){_e=Lh.constrain(r._scrollY+Ap.event.deltaY/j*re,0,re),De(_e,N,oe),_e!==0&&_e!==re&&Ap.event.preventDefault()});var Me,ke,me,ie=function(Ye,ct,pt){var Wt=(pt-ct)/oe+Ye;return Lh.constrain(Wt,0,re)},Se=function(Ye,ct,pt){var Wt=(ct-pt)/oe+Ye;return Lh.constrain(Wt,0,re)},Le=Ap.behavior.drag().on("dragstart",function(){var Ye=Ap.event.sourceEvent;Ye.type==="touchstart"?Me=Ye.changedTouches[0].clientY:Me=Ye.clientY,me=_e}).on("drag",function(){var Ye=Ap.event.sourceEvent;Ye.buttons===2||Ye.ctrlKey||(Ye.type==="touchmove"?ke=Ye.changedTouches[0].clientY:ke=Ye.clientY,_e=ie(me,Me,ke),De(_e,N,oe))});L.call(Le);var Ae=Ap.behavior.drag().on("dragstart",function(){var Ye=Ap.event.sourceEvent;Ye.type==="touchstart"&&(Me=Ye.changedTouches[0].clientY,me=_e)}).on("drag",function(){var Ye=Ap.event.sourceEvent;Ye.type==="touchmove"&&(ke=Ye.changedTouches[0].clientY,_e=Se(me,Me,ke),De(_e,N,oe))});C.call(Ae)}function De(Ye,ct,pt){r._scrollY=e._fullLayout[i]._scrollY=Ye,Ph.setTranslate(C,0,-Ye),Ph.setRect(L,r._width,$h.scrollBarMargin+Ye*pt,$h.scrollBarWidth,ct),b.select("rect").attr("y",g+Ye)}if(e._context.edits.legendPosition){var Pe,ge,Fe,ce;_.classed("cursor-move",!0),RB.init({element:_.node(),gd:e,prepFn:function(Ye){if(Ye.target!==L.node()){var ct=Ph.getTranslate(_);Fe=ct.x,ce=ct.y}},moveFn:function(Ye,ct){if(Fe!==void 0&&ce!==void 0){var pt=Fe+Ye,Wt=ce+ct;Ph.setTranslate(_,pt,Wt),Pe=RB.align(pt,r._width,M.l,M.l+M.w,r.xanchor),ge=RB.align(Wt+r._height,-r._height,M.t+M.h,M.t,r.yanchor)}},doneFn:function(){if(Pe!==void 0&&ge!==void 0){var Ye={};Ye[i+".x"]=Pe,Ye[i+".y"]=ge,B3.call("_guiRelayout",e,Ye)}},clickFn:function(Ye,ct){var pt=o.selectAll("g.traces").filter(function(){var Wt=this.getBoundingClientRect();return ct.clientX>=Wt.left&&ct.clientX<=Wt.right&&ct.clientY>=Wt.top&&ct.clientY<=Wt.bottom});pt.size()>0&&Ele(e,_,pt,Ye,ct)}})}}],e)}}function FL(e,t,r){var n=e[0],i=n.width,a=t.entrywidthmode,o=n.trace.legendwidth||t.entrywidth;return a==="fraction"?t._maxWidth*o:r+(o||i)}function Ele(e,t,r,n,i){var a=r.data()[0][0].trace,o={event:i,node:r.node(),curveNumber:a.index,expandedIndex:a.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};a._group&&(o.group=a._group),B3.traceIs(a,"pie-like")&&(o.label=r.datum()[0].label);var s=_le.triggerHandler(e,"plotly_legendclick",o);if(n===1){if(s===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&xle(r,e,n)},e._context.doubleClickDelay)}else if(n===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var l=_le.triggerHandler(e,"plotly_legenddoubleclick",o);l!==!1&&s!==!1&&xle(r,e,n)}}function Slt(e,t,r){var n=NL(r),i=e.data()[0][0],a=i.trace,o=B3.traceIs(a,"pie-like"),s=!r._inHover&&t._context.edits.legendText&&!o,l=r._maxNameLength,u,c;i.groupTitle?(u=i.groupTitle.text,c=i.groupTitle.font):(c=r.font,r.entries?u=i.text:(u=o?i.label:a.name,a._meta&&(u=Lh.templateString(u,a._meta))));var f=Lh.ensureSingle(e,"text",n+"text");f.attr("text-anchor","start").call(Ph.font,c).text(s?Sle(u,l):u);var h=r.indentation+r.itemwidth+$h.itemGap*2;Rb.positionText(f,h,0),s?f.call(Rb.makeEditable,{gd:t,text:u}).call(OL,e,t,r).on("edit",function(d){this.text(Sle(d,l)).call(OL,e,t,r);var v=i.trace._fullInput||{},_={};return _.name=d,v._isShape?B3.call("_guiRelayout",t,"shapes["+a.index+"].name",_.name):B3.call("_guiRestyle",t,_,a.index)}):OL(f,e,t,r)}function Sle(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var n=r-e.length;n>0;n--)e+=" ";return e}function Mlt(e,t,r){var n=t._context.doubleClickDelay,i,a=1,o=Lh.ensureSingle(e,"rect",r+"toggle",function(s){t._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(zL.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(o.on("mousedown",function(){i=new Date().getTime(),i-t._legendMouseDownTimen&&(a=Math.max(a-1,1)),Ele(t,s,e,a,Ap.event)}}))}function OL(e,t,r,n,i){n._inHover&&e.attr("data-notex",!0),Rb.convertToTspans(e,r,function(){Elt(t,r,n,i)})}function Elt(e,t,r,n){var i=e.data()[0][0];if(!r._inHover&&i&&!i.trace.showlegend){e.remove();return}var a=e.select("g[class*=math-group]"),o=a.node(),s=NL(r);r||(r=t._fullLayout[s]);var l=r.borderwidth,u;n===O3?u=r.title.font:i.groupTitle?u=i.groupTitle.font:u=r.font;var c=u.size*Mle,f,h;if(o){var d=Ph.bBox(o);f=d.height,h=d.width,n===O3?Ph.setTranslate(a,l,l+f*.75):Ph.setTranslate(a,0,f*.25)}else{var v="."+s+(n===O3?"title":"")+"text",_=e.select(v),b=Rb.lineCount(_),p=_.node();if(f=c*b,h=p?Ph.bBox(p).width:0,n===O3)r.title.side==="left"&&(h+=$h.itemGap*2),Rb.positionText(_,l+$h.titlePad,l+c);else{var C=$h.itemGap*2+r.indentation+r.itemwidth;i.groupTitle&&(C=$h.itemGap,h-=r.indentation+r.itemwidth),Rb.positionText(_,C,-c*((b-1)/2-.3))}}n===O3?(r._titleWidth=h,r._titleHeight=f):(i.lineHeight=c,i.height=Math.max(f,16)+3,i.width=h)}function Clt(e){var t=0,r=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(t=e._titleWidth),n.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function klt(e,t,r,n){var i=e._fullLayout,a=NL(n);n||(n=i[a]);var o=i._size,s=Tle.isVertical(n),l=Tle.isGrouped(n),u=n.entrywidthmode==="fraction",c=n.borderwidth,f=2*c,h=$h.itemGap,d=n.indentation+n.itemwidth+h*2,v=2*(c+h),_=BL(n),b=n.y<0||n.y===0&&_==="top",p=n.y>1||n.y===1&&_==="bottom",C=n.tracegroupgap,E={},{maxheight:A,orientation:L,yref:x}=n,k=L==="v"&&x==="paper"?o.h:i.height;n._maxHeight=Math.max(A>1?A:A*k,30);var M=0;n._width=0,n._height=0;var g=Clt(n);if(s)r.each(function(Ae){var De=Ae[0].height;Ph.setTranslate(this,c+g[0],c+g[1]+n._height+De/2+h),n._height+=De,n._width=Math.max(n._width,Ae[0].width)}),M=d+n._width,n._width+=h+d+f,n._height+=v,l&&(t.each(function(Ae,De){Ph.setTranslate(this,0,De*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var P=qL(n),T=n.x<0||n.x===0&&P==="right",z=n.x>1||n.x===1&&P==="left",O=p||b,V=i.width/2;n._maxWidth=Math.max(T?O&&P==="left"?o.l+o.w:V:z?O&&P==="right"?o.r+o.w:V:o.w,2*d);var G=0,Z=0;r.each(function(Ae){var De=FL(Ae,n,d);G=Math.max(G,De),Z+=De}),M=null;var H=0;if(l){var N=0,j=0,re=0;t.each(function(){var Ae=0,De=0;Ap.select(this).selectAll("g.traces").each(function(ge){var Fe=FL(ge,n,d),ce=ge[0].height;Ph.setTranslate(this,g[0],g[1]+c+h+ce/2+De),De+=ce,Ae=Math.max(Ae,Fe),E[ge[0].trace.legendgroup]=Ae});var Pe=Ae+h;j>0&&Pe+c+j>n._maxWidth?(H=Math.max(H,j),j=0,re+=N+C,N=De):N=Math.max(N,De),Ph.setTranslate(this,j,re),j+=Pe}),n._width=Math.max(H,j)+c,n._height=re+N+v}else{var oe=r.size(),_e=Z+f+(oe-1)*h=n._maxWidth&&(H=Math.max(H,ie),ke=0,me+=Me,n._height+=Me,Me=0),Ph.setTranslate(this,g[0]+c+ke,g[1]+c+me+De/2+h),ie=ke+Pe+h,ke+=ge,Me=Math.max(Me,De)}),_e?(n._width=ke+f,n._height=Me+v):(n._width=Math.max(H,ie)+f,n._height+=Me+v)}}n._width=Math.ceil(Math.max(n._width+g[0],n._titleWidth+2*(c+$h.titlePad))),n._height=Math.ceil(Math.max(n._height+g[1],n._titleHeight+2*(c+$h.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var Se=e._context.edits,Le=Se.legendText||Se.legendPosition;r.each(function(Ae){var De=Ap.select(this).select("."+a+"toggle"),Pe=Ae[0].height,ge=Ae[0].trace.legendgroup,Fe=FL(Ae,n,d);l&&ge!==""&&(Fe=E[ge]);var ce=Le?d:M||Fe;!s&&!u&&(ce+=h/2),Ph.setRect(De,0,-Pe/2,ce,Pe)})}function Llt(e,t,r,n){var i=e._fullLayout,a=i[t],o=qL(a),s=BL(a),l=a.xref==="paper",u=a.yref==="paper";e._fullLayout._reservedMargin[t]={};var c=a.y<.5?"b":"t",f=a.x<.5?"l":"r",h={r:i.width-r,l:r+a._width,b:i.height-n,t:n+a._effHeight};if(l&&u)return DB.autoMargin(e,t,{x:a.x,y:a.y,l:a._width*q3[o],r:a._width*ble[o],b:a._effHeight*ble[s],t:a._effHeight*q3[s]});l?e._fullLayout._reservedMargin[t][c]=h[c]:u||a.orientation==="v"?e._fullLayout._reservedMargin[t][f]=h[f]:e._fullLayout._reservedMargin[t][c]=h[c]}function qL(e){return Lh.isRightAnchor(e)?"right":Lh.isCenterAnchor(e)?"center":"left"}function BL(e){return Lh.isBottomAnchor(e)?"bottom":Lh.isMiddleAnchor(e)?"middle":"top"}function NL(e){return e._id||"legend"}});var NB=ye(BB=>{"use strict";var Db=Oa(),Sy=Eo(),kle=cd(),Ff=Dr(),Plt=Ff.pushUnique,OB=Ff.strTranslate,Ilt=Ff.strRotate,Rlt=g3(),A0=iu(),Dlt=$se(),bm=So(),vd=Ca(),UL=gv(),wm=ho(),Flt=hd().zindexSeparator,U3=qa(),Ag=rp(),Fb=RS(),zlt=AB(),Olt=zB(),Ole=Fb.YANGLE,qB=Math.PI*Ole/180,qlt=1/Math.sin(qB),Blt=Math.cos(qB),Nlt=Math.sin(qB),Qc=Fb.HOVERARROWSIZE,ll=Fb.HOVERTEXTPAD,Lle={box:!0,ohlc:!0,violin:!0,candlestick:!0},Ult={scatter:!0,scattergl:!0,splom:!0};function Ple(e,t){return e.distance-t.distance}BB.hover=function(t,r,n,i){t=Ff.getGraphDiv(t);var a=r.target;Ff.throttle(t._fullLayout._uid+Fb.HOVERID,Fb.HOVERMINTIME,function(){Vlt(t,r,n,i,a)})};BB.loneHover=function(t,r){var n=!0;Array.isArray(t)||(n=!1,t=[t]);var i=r.gd,a=Vle(i),o=Gle(i),s=t.map(function(b){var p=b._x0||b.x0||b.x||0,C=b._x1||b.x1||b.x||0,E=b._y0||b.y0||b.y||0,A=b._y1||b.y1||b.y||0,L=b.eventData;if(L){var x=Math.min(p,C),k=Math.max(p,C),M=Math.min(E,A),g=Math.max(E,A),P=b.trace;if(U3.traceIs(P,"gl3d")){var T=i._fullLayout[P.scene]._scene.container,z=T.offsetLeft,O=T.offsetTop;x+=z,k+=z,M+=O,g+=O}L.bbox={x0:x+o,x1:k+o,y0:M+a,y1:g+a},r.inOut_bbox&&r.inOut_bbox.push(L.bbox)}else L=!1;return{color:b.color||vd.defaultLine,x0:b.x0||b.x||0,x1:b.x1||b.x||0,y0:b.y0||b.y||0,y1:b.y1||b.y||0,xLabel:b.xLabel,yLabel:b.yLabel,zLabel:b.zLabel,text:b.text,name:b.name,idealAlign:b.idealAlign,borderColor:b.borderColor,fontFamily:b.fontFamily,fontSize:b.fontSize,fontColor:b.fontColor,fontWeight:b.fontWeight,fontStyle:b.fontStyle,fontVariant:b.fontVariant,nameLength:b.nameLength,textAlign:b.textAlign,trace:b.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:b.hovertemplate||!1,hovertemplateLabels:b.hovertemplateLabels||!1,eventData:L}}),l=!1,u=Ble(s,{gd:i,hovermode:"closest",rotateLabels:l,bgColor:r.bgColor||vd.background,container:Db.select(r.container),outerContainer:r.outerContainer||r.container}),c=u.hoverLabels,f=5,h=0,d=0;c.sort(function(b,p){return b.y0-p.y0}).each(function(b,p){var C=b.y0-b.by/2;C-fk[0]._length||ce<0||ce>M[0]._length)return UL.unhoverRaw(e,t)}if(t.pointerX=Fe+k[0]._offset,t.pointerY=ce+M[0]._offset,"xval"in t?Z=Ag.flat(a,t.xval):Z=Ag.p2c(k,Fe),"yval"in t?H=Ag.flat(a,t.yval):H=Ag.p2c(M,ce),!Sy(Z[0])||!Sy(H[0]))return Ff.warn("Fx.hover failed",t,e),UL.unhoverRaw(e,t)}var pt=1/0;function Wt(pn,Vn){for(j=0;jLe&&(V.splice(0,Le),pt=V[0].distance),f&&O!==0&&V.length===0){Se.distance=O,Se.index=!1;var _t=oe._module.hoverPoints(Se,me,ie,"closest",{hoverLayer:s._hoverlayer});if(_t&&(_t=_t.filter(function($r){return $r.spikeDistance<=O})),_t&&_t.length){var tr,ar=_t.filter(function($r){return $r.xa.showspikes&&$r.xa.spikesnap!=="hovered data"});if(ar.length){var Er=ar[0];Sy(Er.x0)&&Sy(Er.y0)&&(tr=lt(Er),(!Ae.vLinePoint||Ae.vLinePoint.spikeDistance>tr.spikeDistance)&&(Ae.vLinePoint=tr))}var Zr=_t.filter(function($r){return $r.ya.showspikes&&$r.ya.spikesnap!=="hovered data"});if(Zr.length){var ri=Zr[0];Sy(ri.x0)&&Sy(ri.y0)&&(tr=lt(ri),(!Ae.hLinePoint||Ae.hLinePoint.spikeDistance>tr.spikeDistance)&&(Ae.hLinePoint=tr))}}}}}Wt();function st(pn,Vn,kn){for(var ea=null,ua=1/0,Vt,_t=0;_t0&&Math.abs(pn.distance)yt-1;Ur--)Wr(V[Ur]);V=Tr,sr()}var dt=e._hoverdata,Ge=[],Je=Vle(e),je=Gle(e);for(N=0;N1||V.length>1)||h==="closest"&&De&&V.length>1,fi=vd.combine(s.plot_bgcolor||vd.background,s.paper_bgcolor),Hi=Ble(V,{gd:e,hovermode:h,rotateLabels:Jr,bgColor:fi,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),Pn=Hi.hoverLabels;if(Ag.isUnifiedHover(h)||(Hlt(Pn,Jr,s,Hi.commonLabelBoundingBox),Ule(Pn,Jr,s._invScaleX,s._invScaleY)),i&&i.tagName){var wn=U3.getComponentMethod("annotations","hasClickToShow")(e,Ge);Dlt(Db.select(i),wn?"pointer":"")}!i||n||!Xlt(e,t,dt)||(dt&&e.emit("plotly_unhover",{event:t,points:dt}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:k,yaxes:M,xvals:Z,yvals:H}))}function qle(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Glt=/([\s\S]*)<\/extra>/;function Ble(e,t){var r=t.gd,n=r._fullLayout,i=t.hovermode,a=t.rotateLabels,o=t.bgColor,s=t.container,l=t.outerContainer,u=t.commonLabelOpts||{};if(e.length===0)return[[]];var c=t.fontFamily||Fb.HOVERFONT,f=t.fontSize||Fb.HOVERFONTSIZE,h=t.fontWeight||n.font.weight,d=t.fontStyle||n.font.style,v=t.fontVariant||n.font.variant,_=t.fontTextcase||n.font.textcase,b=t.fontLineposition||n.font.lineposition,p=t.fontShadow||n.font.shadow,C=e[0],E=C.xa,A=C.ya,L=i.charAt(0),x=L+"Label",k=C[x];if(k===void 0&&E.type==="multicategory")for(var M=0;Mn.width-je&&($e=n.width-je),yt.attr("d","M"+(dt-$e)+",0L"+(dt-$e+Qc)+","+Je+Qc+"H"+je+"v"+Je+(ll*2+Ur.height)+"H"+-je+"V"+Je+Qc+"H"+(dt-$e-Qc)+"Z"),dt=$e,j.minX=dt-je,j.maxX=dt+je,E.side==="top"?(j.minY=Ge-(ll*2+Ur.height),j.maxY=Ge-ll):(j.minY=Ge+ll,j.maxY=Ge+(ll*2+Ur.height))}else{var wt,Ie,xe;A.side==="right"?(wt="start",Ie=1,xe="",dt=E._offset+E._length):(wt="end",Ie=-1,xe="-",dt=E._offset),Ge=A._offset+(C.y0+C.y1)/2,Yt.attr("text-anchor",wt),yt.attr("d","M0,0L"+xe+Qc+","+Qc+"V"+(ll+Ur.height/2)+"h"+xe+(ll*2+Ur.width)+"V-"+(ll+Ur.height/2)+"H"+xe+Qc+"V-"+Qc+"Z"),j.minY=Ge-(ll+Ur.height/2),j.maxY=Ge+(ll+Ur.height/2),A.side==="right"?(j.minX=dt+Qc,j.maxX=dt+Qc+(ll*2+Ur.width)):(j.minX=dt-Qc-(ll*2+Ur.width),j.maxX=dt-Qc);var Ce=Ur.height/2,vt=P-Ur.top-Ce,nr="clip"+n._uid+"commonlabel"+A._id,ir;if(dt=0?er=wr:ur+pt=0?er=ur:Qe+pt=0?Ut=$t:sr+Wt=0?Ut=sr:Et+Wt=0,(bt.idealAlign==="top"||!di)&&Jr?(xe-=vt/2,bt.anchor="end"):di?(xe+=vt/2,bt.anchor="start"):bt.anchor="middle",bt.crossPos=xe;else{if(bt.pos=xe,di=Ie+Ce/2+oi<=T,Jr=Ie-Ce/2-oi>=0,(bt.idealAlign==="left"||!di)&&Jr)Ie-=Ce/2,bt.anchor="end";else if(di)Ie+=Ce/2,bt.anchor="start";else{bt.anchor="middle";var fi=oi/2,Hi=Ie+fi-T,Pn=Ie-fi;Hi>0&&(Ie-=Hi),Pn<0&&(Ie+=-Pn)}bt.crossPos=Ie}Ge.attr("text-anchor",bt.anchor),je&&Je.attr("text-anchor",bt.anchor),yt.attr("transform",OB(Ie,xe)+(a?Ilt(Ole):""))}),{hoverLabels:Ft,commonLabelBoundingBox:j}}function Ile(e,t,r,n,i,a){var o="",s="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Ff.templateString(e.name,e.trace._meta)),o=Fle(e.name,e.nameLength));var l=r.charAt(0),u=l==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(s+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(s+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[l+"Label"]===i?s=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(s=e.yLabel):e.yLabel===void 0?s=e.xLabel:s="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(s+=(s?"
":"")+e.text),e.extraText!==void 0&&(s+=(s?"
":"")+e.extraText),a&&s===""&&!e.hovertemplate&&(o===""&&a.remove(),s=o);var c=e.hovertemplate||!1;if(c){var f=e.hovertemplateLabels||e;e[l+"Label"]!==i&&(f[l+"other"]=f[l+"Val"],f[l+"otherLabel"]=f[l+"Label"]),s=Ff.hovertemplateString(c,f,n._d3locale,e.eventData[0]||{},e.trace._meta),s=s.replace(Glt,function(h,d){return o=Fle(d,e.nameLength),""})}return[s,o]}function Hlt(e,t,r,n){var i=t?"xa":"ya",a=t?"ya":"xa",o=0,s=1,l=e.size(),u=new Array(l),c=0,f=n.minX,h=n.maxX,d=n.minY,v=n.maxY,_=function(Z){return Z*r._invScaleX},b=function(Z){return Z*r._invScaleY};e.each(function(Z){var H=Z[i],N=Z[a],j=H._id.charAt(0)==="x",re=H.range;c===0&&re&&re[0]>re[1]!==j&&(s=-1);var oe=0,_e=j?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var Me=Nle(Z,t),ke=Z.anchor,me=ke==="end"?-1:1,ie,Se;if(ke==="middle")ie=Z.crossPos+(j?b(Me.y-Z.by/2):_(Z.bx/2+Z.tx2width/2)),Se=ie+(j?b(Z.by):_(Z.bx));else if(j)ie=Z.crossPos+b(Qc+Me.y)-b(Z.by/2-Qc),Se=ie+b(Z.by);else{var Le=_(me*Qc+Me.x),Ae=Le+_(me*Z.bx);ie=Z.crossPos+Math.min(Le,Ae),Se=Z.crossPos+Math.max(Le,Ae)}j?d!==void 0&&v!==void 0&&Math.min(Se,v)-Math.max(ie,d)>1&&(N.side==="left"?(oe=N._mainLinePosition,_e=r.width):_e=N._mainLinePosition):f!==void 0&&h!==void 0&&Math.min(Se,h)-Math.max(ie,f)>1&&(N.side==="top"?(oe=N._mainLinePosition,_e=r.height):_e=N._mainLinePosition)}u[c++]=[{datum:Z,traceIndex:Z.trace.index,dp:0,pos:Z.pos,posref:Z.posref,size:Z.by*(j?qlt:1)/2,pmin:oe,pmax:_e}]}),u.sort(function(Z,H){return Z[0].posref-H[0].posref||s*(H[0].traceIndex-Z[0].traceIndex)});var p,C,E,A,L,x,k;function M(Z){var H=Z[0],N=Z[Z.length-1];if(C=H.pmin-H.pos-H.dp+H.size,E=N.pos+N.dp+N.size-H.pmax,C>.01){for(L=Z.length-1;L>=0;L--)Z[L].dp+=C;p=!1}if(!(E<.01)){if(C<-.01){for(L=Z.length-1;L>=0;L--)Z[L].dp-=E;p=!1}if(p){var j=0;for(A=0;AH.pmax&&j++;for(A=Z.length-1;A>=0&&!(j<=0);A--)x=Z[A],x.pos>H.pmax-1&&(x.del=!0,j--);for(A=0;A=0;L--)Z[L].dp-=E;for(A=Z.length-1;A>=0&&!(j<=0);A--)x=Z[A],x.pos+x.dp+x.size>H.pmax&&(x.del=!0,j--)}}}for(;!p&&o<=l;){for(o++,p=!0,A=0;A.01){for(L=P.length-1;L>=0;L--)P[L].dp+=C;for(g.push.apply(g,P),u.splice(A+1,1),k=0,L=g.length-1;L>=0;L--)k+=g[L].dp;for(E=k/g.length,L=g.length-1;L>=0;L--)g[L].dp-=E;p=!1}else A++}u.forEach(M)}for(A=u.length-1;A>=0;A--){var O=u[A];for(L=O.length-1;L>=0;L--){var V=O[L],G=V.datum;G.offset=V.dp,G.del=V.del}}}function Nle(e,t){var r=0,n=e.offset;return t&&(n*=-Nlt,r=e.offset*Blt),{x:r,y:n}}function jlt(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(Qc+ll),n=r+t*(e.txwidth+ll),i=e.anchor==="middle";return i&&(r-=e.tx2width/2,n+=e.txwidth/2+ll),{alignShift:t,textShiftX:r,text2ShiftX:n}}function Ule(e,t,r,n){var i=function(o){return o*r},a=function(o){return o*n};e.each(function(o){var s=Db.select(this);if(o.del)return s.remove();var l=s.select("text.nums"),u=o.anchor,c=u==="end"?-1:1,f=jlt(o),h=Nle(o,t),d=h.x,v=h.y,_=u==="middle",b="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,p;_?p="M-"+i(o.bx/2+o.tx2width/2)+","+a(v-o.by/2)+"h"+i(o.bx)+"v"+a(o.by)+"h-"+i(o.bx)+"Z":b?p="M0,0L"+i(c*Qc+d)+","+a(Qc+v)+"v"+a(o.by/2-Qc)+"h"+i(c*o.bx)+"v-"+a(o.by)+"H"+i(c*Qc+d)+"V"+a(v-Qc)+"Z":p="M"+i(c*Qc+d)+","+a(v-o.by/2)+"h"+i(c*o.bx)+"v"+a(o.by)+"h"+i(-c*o.bx)+"Z",s.select("path").attr("d",p);var C=d+f.textShiftX,E=v+o.ty0-o.by/2+ll,A=o.textAlign||"auto";A!=="auto"&&(A==="left"&&u!=="start"?(l.attr("text-anchor","start"),C=_?-o.bx/2-o.tx2width/2+ll:-o.bx-ll):A==="right"&&u!=="end"&&(l.attr("text-anchor","end"),C=_?o.bx/2-o.tx2width/2-ll:o.bx+ll)),l.call(A0.positionText,i(C),a(E)),o.tx2width&&(s.select("text.name").call(A0.positionText,i(f.text2ShiftX+f.alignShift*ll+d),a(v+o.ty0-o.by/2+ll)),s.select("rect").call(bm.setRect,i(f.text2ShiftX+(f.alignShift-1)*o.tx2width/2+d),a(v-o.by/2-1),i(o.tx2width),a(o.by+2)))})}function Wlt(e,t){var r=e.index,n=e.trace||{},i=e.cd[0],a=e.cd[r]||{};function o(h){return h||Sy(h)&&h===0}var s=Array.isArray(r)?function(h,d){var v=Ff.castOption(i,r,h);return o(v)?v:Ff.extractOption({},n,"",d)}:function(h,d){return Ff.extractOption(a,n,h,d)};function l(h,d,v){var _=s(d,v);o(_)&&(e[h]=_)}if(l("hoverinfo","hi","hoverinfo"),l("bgcolor","hbg","hoverlabel.bgcolor"),l("borderColor","hbc","hoverlabel.bordercolor"),l("fontFamily","htf","hoverlabel.font.family"),l("fontSize","hts","hoverlabel.font.size"),l("fontColor","htc","hoverlabel.font.color"),l("fontWeight","htw","hoverlabel.font.weight"),l("fontStyle","hty","hoverlabel.font.style"),l("fontVariant","htv","hoverlabel.font.variant"),l("nameLength","hnl","hoverlabel.namelength"),l("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Ff.constrain(e.x0,0,e.xa._length),e.x1=Ff.constrain(e.x1,0,e.xa._length),e.y0=Ff.constrain(e.y0,0,e.ya._length),e.y1=Ff.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:wm.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:wm.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=wm.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+wm.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var c=wm.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+c+" / -"+wm.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+c,t==="y"&&(e.distance+=1)}var f=e.hoverinfo||e.trace.hoverinfo;return f&&f!=="all"&&(f=Array.isArray(f)?f:f.split("+"),f.indexOf("x")===-1&&(e.xLabel=void 0),f.indexOf("y")===-1&&(e.yLabel=void 0),f.indexOf("z")===-1&&(e.zLabel=void 0),f.indexOf("text")===-1&&(e.text=void 0),f.indexOf("name")===-1&&(e.name=void 0)),e}function Rle(e,t,r){var n=r.container,i=r.fullLayout,a=i._size,o=r.event,s=!!t.hLinePoint,l=!!t.vLinePoint,u,c;if(n.selectAll(".spikeline").remove(),!!(l||s)){var f=vd.combine(i.plot_bgcolor,i.paper_bgcolor);if(s){var h=t.hLinePoint,d,v;u=h&&h.xa,c=h&&h.ya;var _=c.spikesnap;_==="cursor"?(d=o.pointerX,v=o.pointerY):(d=u._offset+h.x,v=c._offset+h.y);var b=kle.readability(h.color,f)<1.5?vd.contrast(f):h.color,p=c.spikemode,C=c.spikethickness,E=c.spikecolor||b,A=wm.getPxPosition(e,c),L,x;if(p.indexOf("toaxis")!==-1||p.indexOf("across")!==-1){if(p.indexOf("toaxis")!==-1&&(L=A,x=d),p.indexOf("across")!==-1){var k=c._counterDomainMin,M=c._counterDomainMax;c.anchor==="free"&&(k=Math.min(k,c.position),M=Math.max(M,c.position)),L=a.l+k*a.w,x=a.l+M*a.w}n.insert("line",":first-child").attr({x1:L,x2:x,y1:v,y2:v,"stroke-width":C,stroke:E,"stroke-dasharray":bm.dashStyle(c.spikedash,C)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:L,x2:x,y1:v,y2:v,"stroke-width":C+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}p.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:A+(c.side!=="right"?C:-C),cy:v,r:C,fill:E}).classed("spikeline",!0)}if(l){var g=t.vLinePoint,P,T;u=g&&g.xa,c=g&&g.ya;var z=u.spikesnap;z==="cursor"?(P=o.pointerX,T=o.pointerY):(P=u._offset+g.x,T=c._offset+g.y);var O=kle.readability(g.color,f)<1.5?vd.contrast(f):g.color,V=u.spikemode,G=u.spikethickness,Z=u.spikecolor||O,H=wm.getPxPosition(e,u),N,j;if(V.indexOf("toaxis")!==-1||V.indexOf("across")!==-1){if(V.indexOf("toaxis")!==-1&&(N=H,j=T),V.indexOf("across")!==-1){var re=u._counterDomainMin,oe=u._counterDomainMax;u.anchor==="free"&&(re=Math.min(re,u.position),oe=Math.max(oe,u.position)),N=a.t+(1-oe)*a.h,j=a.t+(1-re)*a.h}n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:j,"stroke-width":G,stroke:Z,"stroke-dasharray":bm.dashStyle(u.spikedash,G)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:j,"stroke-width":G+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}V.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:P,cy:H-(u.side!=="top"?G:-G),r:G,fill:Z}).classed("spikeline",!0)}}}function Xlt(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var i=r[n],a=e._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers))return!0}return!1}function Dle(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function Fle(e,t){return A0.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Zlt(e,t){for(var r=t.charAt(0),n=[],i=[],a=[],o=0;o{"use strict";var Ylt=Dr(),Klt=Ca(),Jlt=rp().isUnifiedHover;Hle.exports=function(t,r,n,i){i=i||{};var a=r.legend;function o(s){i.font[s]||(i.font[s]=a?r.legend.font[s]:r.font[s])}r&&Jlt(r.hovermode)&&(i.font||(i.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(i.bgcolor||(i.bgcolor=Klt.combine(r.legend.bgcolor,r.paper_bgcolor)),i.bordercolor||(i.bordercolor=r.legend.bordercolor)):i.bgcolor||(i.bgcolor=r.paper_bgcolor)),n("hoverlabel.bgcolor",i.bgcolor),n("hoverlabel.bordercolor",i.bordercolor),n("hoverlabel.namelength",i.namelength),n("hoverlabel.showarrow",i.showarrow),Ylt.coerceFont(n,"hoverlabel.font",i.font),n("hoverlabel.align",i.align)}});var Wle=ye((cnr,jle)=>{"use strict";var $lt=Dr(),Qlt=cM(),eut=N1();jle.exports=function(t,r){function n(i,a){return $lt.coerce(t,r,eut,i,a)}Qlt(t,r,n)}});var Yle=ye((fnr,Zle)=>{"use strict";var Xle=Dr(),tut=i3(),rut=cM();Zle.exports=function(t,r,n,i){function a(s,l){return Xle.coerce(t,r,tut,s,l)}var o=Xle.extendFlat({},i.hoverlabel);r.hovertemplate&&(o.namelength=-1),rut(t,r,a,o)}});var UB=ye((hnr,Kle)=>{"use strict";var iut=Dr(),nut=N1();Kle.exports=function(t,r){function n(i,a){return r[i]!==void 0?r[i]:iut.coerce(t,r,nut,i,a)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var Qle=ye((dnr,$le)=>{"use strict";var Jle=Dr(),aut=N1(),out=UB(),sut=cM();$le.exports=function(t,r){function n(c,f){return Jle.coerce(t,r,aut,c,f)}var i=out(t,r);i&&(n("hoverdistance"),n("spikedistance"));var a=n("dragmode");a==="select"&&n("selectdirection");var o=r._has("mapbox"),s=r._has("map"),l=r._has("geo"),u=r._basePlotModules.length;r.dragmode==="zoom"&&((o||s||l)&&u===1||(o||s)&&l&&u===2)&&(r.dragmode="pan"),sut(t,r,n),Jle.coerceFont(n,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var rue=ye((vnr,tue)=>{"use strict";var VB=Dr(),eue=qa();tue.exports=function(t){var r=t.calcdata,n=t._fullLayout;function i(u){return function(c){return VB.coerceHoverinfo({hoverinfo:c},{_module:u._module},n)}}for(var a=0;a{"use strict";var uut=qa(),cut=NB().hover;iue.exports=function(t,r,n){var i=uut.getComponentMethod("annotations","onClick")(t,t._hoverdata);n!==void 0&&cut(t,r,n,!0);function a(){t.emit("plotly_click",{points:t._hoverdata,event:r})}t._hoverdata&&r&&r.target&&(i&&i.then?i.then(a):a(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var vf=ye((gnr,sue)=>{"use strict";var fut=Oa(),VL=Dr(),hut=gv(),fM=rp(),aue=N1(),oue=NB();sue.exports={moduleType:"component",name:"fx",constants:RS(),schema:{layout:aue},attributes:i3(),layoutAttributes:aue,supplyLayoutGlobalDefaults:Wle(),supplyDefaults:Yle(),supplyLayoutDefaults:Qle(),calc:rue(),getDistanceFunction:fM.getDistanceFunction,getClosest:fM.getClosest,inbox:fM.inbox,quadrature:fM.quadrature,appendArrayPointValue:fM.appendArrayPointValue,castHoverOption:vut,castHoverinfo:put,hover:oue.hover,unhover:hut.unhover,loneHover:oue.loneHover,loneUnhover:dut,click:nue()};function dut(e){var t=VL.isD3Selection(e)?e:fut.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function vut(e,t,r){return VL.castOption(e,t,"hoverlabel."+r)}function put(e,t,r){function n(i){return VL.coerceHoverinfo({hoverinfo:i},{_module:e._module},t)}return VL.castOption(e,r,"hoverinfo",n)}});var Sg=ye(My=>{"use strict";My.selectMode=function(e){return e==="lasso"||e==="select"};My.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};My.openMode=function(e){return e==="drawline"||e==="drawopenpath"};My.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};My.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};My.selectingOrDrawing=function(e){return My.freeMode(e)||My.rectMode(e)}});var hM=ye((ynr,lue)=>{"use strict";lue.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var GL=ye((_nr,uue)=>{"use strict";uue.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var jL=ye((xnr,cue)=>{"use strict";var HL=32;cue.exports={CIRCLE_SIDES:HL,i000:0,i090:HL/4,i180:HL/2,i270:HL/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var WL=ye((bnr,hue)=>{"use strict";var gut=Dr().strTranslate;function fue(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function mut(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function yut(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return fue(e,r[t])}}function _ut(e){return gut(e.xaxis._offset,e.yaxis._offset)}hue.exports={p2r:fue,r2p:mut,axValue:yut,getTransform:_ut}});var c_=ye(Ey=>{"use strict";var xut=$S(),pue=jL(),V3=pue.CIRCLE_SIDES,GB=pue.SQRT2,gue=WL(),due=gue.p2r,vue=gue.r2p,but=[0,3,4,5,6,1,2],wut=[0,3,4,1,2];Ey.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",n=0;n0&&l{"use strict";var mue=hf(),wue=Sg(),Tut=wue.drawMode,Aut=wue.openMode,G3=jL(),yue=G3.i000,_ue=G3.i090,xue=G3.i180,bue=G3.i270,Sut=G3.cos45,Mut=G3.sin45,Tue=WL(),ZL=Tue.p2r,f_=Tue.r2p,Eut=e_(),Cut=Eut.clearOutline,YL=c_(),kut=YL.readPaths,Lut=YL.writePaths,Put=YL.ellipseOver,Iut=YL.fixDatesForPaths;function Rut(e,t){if(e.length){var r=e[0][0];if(r){var n=t.gd,i=t.isActiveShape,a=t.dragmode,o=(n.layout||{}).shapes||[];if(!Tut(a)&&i!==void 0){var s=n._fullLayout._activeShapeIndex;if(s{"use strict";var Dut=Sg(),Fut=Dut.selectMode,zut=e_(),Out=zut.clearOutline,HB=c_(),qut=HB.readPaths,But=HB.writePaths,Nut=HB.fixDatesForPaths;Mue.exports=function(t,r){if(t.length){var n=t[0][0];if(n){var i=n.getAttribute("d"),a=r.gd,o=a._fullLayout.newselection,s=r.plotinfo,l=s.xaxis,u=s.yaxis,c=r.isActiveSelection,f=r.dragmode,h=(a.layout||{}).selections||[];if(!Fut(f)&&c!==void 0){var d=a._fullLayout._activeSelectionIndex;if(d{"use strict";Eue.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var h_=ye(Dd=>{"use strict";var zb=vM(),Cue=Dr(),JL=ho();Dd.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};Dd.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};Dd.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};Dd.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};Dd.extractPathCoords=function(e,t,r){var n=[],i=e.match(zb.segmentRE);return i.forEach(function(a){var o=t[a.charAt(0)].drawn;if(o!==void 0){var s=a.substr(1).match(zb.paramRE);if(!(!s||s.lengthd&&(_="X"),_});return u>d&&(v=v.replace(/[\s,]*X.*/,""),Cue.log("Ignoring extra params in segment "+l)),c+v})}function pM(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var XB=ye((Enr,Iue)=>{"use strict";var Vut=Dr(),H3=ho(),kue=iu(),Lue=So(),Gut=c_().readPaths,WB=h_(),Hut=WB.getPathString,Pue=T6(),jut=Kh().FROM_TL;Iue.exports=function(t,r,n,i){if(i.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var a;if(n.label.texttemplate){var o={};if(n.type!=="path"){var s=H3.getFromId(t,n.xref),l=H3.getFromId(t,n.yref);for(var u in Pue){var c=Pue[u](n,s,l);c!==void 0&&(o[u]=c)}}a=Vut.texttemplateStringForShapes(n.label.texttemplate,{},t._fullLayout._d3locale,o)}else a=n.label.text;var f={"data-index":r},h=n.label.font,d={"data-notex":1},v=i.append("g").attr(f).classed("shape-label",!0),_=v.append("text").attr(d).classed("shape-label-text",!0).text(a),b,p,C,E;if(n.path){var A=Hut(t,n),L=Gut(A,t);b=1/0,C=1/0,p=-1/0,E=-1/0;for(var x=0;x=e?i=t-n:i=n-t,-180/Math.PI*Math.atan2(i,a)}function Xut(e,t,r,n,i,a,o){var s=i.label.textposition,l=i.label.textangle,u=i.label.padding,c=i.type,f=Math.PI/180*a,h=Math.sin(f),d=Math.cos(f),v=i.label.xanchor,_=i.label.yanchor,b,p,C,E;if(c==="line"){s==="start"?(b=e,p=t):s==="end"?(b=r,p=n):(b=(e+r)/2,p=(t+n)/2),v==="auto"&&(s==="start"?l==="auto"?r>e?v="left":re?v="right":re?v="right":re?v="left":r{"use strict";var Zut=Dr(),Yut=Zut.strTranslate,Rue=gv(),zue=Sg(),Kut=zue.drawMode,Oue=zue.selectMode,que=qa(),Due=Ca(),QL=jL(),Jut=QL.i000,$ut=QL.i090,Qut=QL.i180,ect=QL.i270,tct=e_(),Bue=tct.clearOutlineControllers,YB=c_(),$L=YB.pointsOnRectangle,ZB=YB.pointsOnEllipse,rct=YB.writePaths,ict=KL().newShapes,nct=KL().createShapeObj,act=jB(),oct=XB();Nue.exports=function e(t,r,n,i){i||(i=0);var a=n.gd;function o(){e(t,r,n,i++),(ZB(t[0])||n.hasText)&&s({redrawing:!0})}function s(H){var N={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,N=ict(r,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,N=act(r,n),a._fullLayout._reselect=!0),Object.keys(N).length&&que.call((H||{}).redrawing?"relayout":"_guiRelayout",a,N)}var l=a._fullLayout,u=l._zoomlayer,c=n.dragmode,f=Kut(c),h=Oue(c);(f||h)&&(a._fullLayout._outlining=!0),Bue(a),r.attr("d",rct(t));var d,v,_,b,p;if(!i&&(n.isActiveShape||n.isActiveSelection)){p=sct([],t);var C=u.append("g").attr("class","outline-controllers");P(C),Z()}if(f&&n.hasText){var E=u.select(".label-temp"),A=nct(r,n,n.dragmode);oct(a,"label-temp",A,E)}function L(H){_=+H.srcElement.getAttribute("data-i"),b=+H.srcElement.getAttribute("data-j"),d[_][b].moveFn=x}function x(H,N){if(t.length){var j=p[_][b][1],re=p[_][b][2],oe=t[_],_e=oe.length;if($L(oe)){var Me=H,ke=N;if(n.isActiveSelection){var me=Fue(oe,b);me[1]===oe[b][1]?ke=0:Me=0}for(var ie=0;ie<_e;ie++)if(ie!==b){var Se=oe[ie];Se[1]===oe[b][1]&&(Se[1]=j+Me),Se[2]===oe[b][2]&&(Se[2]=re+ke)}if(oe[b][1]=j+Me,oe[b][2]=re+ke,!$L(oe))for(var Le=0;Le<_e;Le++)for(var Ae=0;Ae1&&!(H.length===2&&H[1][0]==="Z")&&(b===0&&(H[0][0]="M"),t[_]=H,o(),s())}}function g(H,N){if(H===2){_=+N.srcElement.getAttribute("data-i"),b=+N.srcElement.getAttribute("data-j");var j=t[_];!$L(j)&&!ZB(j)&&M()}}function P(H){d=[];for(var N=0;N{"use strict";var uct=Oa(),Wue=qa(),Uue=Dr(),j3=ho(),cct=c_().readPaths,fct=eP(),rP=XB(),Xue=e_().clearOutlineControllers,KB=Ca(),$B=So(),hct=pl().arrayEditor,Vue=gv(),Gue=Tg(),Ob=vM(),Sp=h_(),JB=Sp.getPathString;Kue.exports={draw:QB,drawOne:Zue,eraseActiveShape:pct,drawLabel:rP};function QB(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var n=t._plots[r].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var i=0;io&&Nt>s&&!st.shiftKey?Vue.getCursor($t/Gt,1-sr/Nt):"move";Gue(t,wr),Se=wr.split("-")[0]}}function Pe(st){tP(e)||(l&&(p=oe(r.xanchor)),u&&(C=_e(r.yanchor)),r.type==="path"?T=r.path:(d=l?r.x0:oe(r.x0),v=u?r.y0:_e(r.y0),_=l?r.x1:oe(r.x1),b=u?r.y1:_e(r.y1)),d<_?(L=d,g="x0",x=_,P="x1"):(L=_,g="x1",x=d,P="x0"),!u&&vb?(E=v,k="y0",A=b,M="y1"):(E=b,k="y1",A=v,M="y0"),De(st),ct(i,r),Wt(t,r,e),ie.moveFn=Se==="move"?ce:Ye,ie.altKey=st.altKey)}function ge(){tP(e)||(Gue(t),pt(i),Yue(t,e,r),Wue.call("_guiRelayout",e,a.getUpdateObj()))}function Fe(){tP(e)||pt(i)}function ce(st,lt){if(r.type==="path"){var Gt=function(sr){return sr},Nt=Gt,$t=Gt;l?h("xanchor",r.xanchor=Me(p+st)):(Nt=function(wr){return Me(oe(wr)+st)},O&&O.type==="date"&&(Nt=Sp.encodeDate(Nt))),u?h("yanchor",r.yanchor=ke(C+lt)):($t=function(wr){return ke(_e(wr)+lt)},G&&G.type==="date"&&($t=Sp.encodeDate($t))),h("path",r.path=Hue(T,Nt,$t))}else l?h("xanchor",r.xanchor=Me(p+st)):(h("x0",r.x0=Me(d+st)),h("x1",r.x1=Me(_+st))),u?h("yanchor",r.yanchor=ke(C+lt)):(h("y0",r.y0=ke(v+lt)),h("y1",r.y1=ke(b+lt)));t.attr("d",JB(e,r)),ct(i,r),rP(e,n,r,z)}function Ye(st,lt){if(f){var Gt=function(Rr){return Rr},Nt=Gt,$t=Gt;l?h("xanchor",r.xanchor=Me(p+st)):(Nt=function(ei){return Me(oe(ei)+st)},O&&O.type==="date"&&(Nt=Sp.encodeDate(Nt))),u?h("yanchor",r.yanchor=ke(C+lt)):($t=function(ei){return ke(_e(ei)+lt)},G&&G.type==="date"&&($t=Sp.encodeDate($t))),h("path",r.path=Hue(T,Nt,$t))}else if(c){if(Se==="resize-over-start-point"){var sr=d+st,wr=u?v-lt:v+lt;h("x0",r.x0=l?sr:Me(sr)),h("y0",r.y0=u?wr:ke(wr))}else if(Se==="resize-over-end-point"){var ur=_+st,Qe=u?b-lt:b+lt;h("x1",r.x1=l?ur:Me(ur)),h("y1",r.y1=u?Qe:ke(Qe))}}else{var Et=function(Rr){return Se.indexOf(Rr)!==-1},er=Et("n"),Ut=Et("s"),Ft=Et("w"),bt=Et("e"),yt=er?E+lt:E,Yt=Ut?A+lt:A,lr=Ft?L+st:L,Tr=bt?x+st:x;u&&(er&&(yt=E-lt),Ut&&(Yt=A-lt)),(!u&&Yt-yt>s||u&&yt-Yt>s)&&(h(k,r[k]=u?yt:ke(yt)),h(M,r[M]=u?Yt:ke(Yt))),Tr-lr>o&&(h(g,r[g]=l?lr:Me(lr)),h(P,r[P]=l?Tr:Me(Tr)))}t.attr("d",JB(e,r)),ct(i,r),rP(e,n,r,z)}function ct(st,lt){(l||u)&&Gt();function Gt(){var Nt=lt.type!=="path",$t=st.selectAll(".visual-cue").data([0]),sr=1;$t.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":sr}).classed("visual-cue",!0);var wr=oe(l?lt.xanchor:Uue.midRange(Nt?[lt.x0,lt.x1]:Sp.extractPathCoords(lt.path,Ob.paramIsX))),ur=_e(u?lt.yanchor:Uue.midRange(Nt?[lt.y0,lt.y1]:Sp.extractPathCoords(lt.path,Ob.paramIsY)));if(wr=Sp.roundPositionForSharpStrokeRendering(wr,sr),ur=Sp.roundPositionForSharpStrokeRendering(ur,sr),l&&u){var Qe="M"+(wr-1-sr)+","+(ur-1-sr)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";$t.attr("d",Qe)}else if(l){var Et="M"+(wr-1-sr)+","+(ur-9-sr)+"v18 h2 v-18 Z";$t.attr("d",Et)}else{var er="M"+(wr-9-sr)+","+(ur-1-sr)+"h18 v2 h-18 Z";$t.attr("d",er)}}}function pt(st){st.selectAll(".visual-cue").remove()}function Wt(st,lt,Gt){var Nt=lt.xref,$t=lt.yref,sr=j3.getFromId(Gt,Nt),wr=j3.getFromId(Gt,$t),ur="";Nt!=="paper"&&!sr.autorange&&(ur+=Nt),$t!=="paper"&&!wr.autorange&&(ur+=$t),$B.setClipUrl(st,ur?"clip"+Gt._fullLayout._uid+ur:null,Gt)}}function Hue(e,t,r){return e.replace(Ob.segmentRE,function(n){var i=0,a=n.charAt(0),o=Ob.paramIsX[a],s=Ob.paramIsY[a],l=Ob.numParams[a],u=n.substr(1).replace(Ob.paramRE,function(c){return i>=l||(o[i]?c=t(c):s[i]&&(c=r(c)),i++),c});return a+u})}function vct(e,t){if(iP(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){jue(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=jue,QB(e)}}}function jue(e){if(iP(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(Xue(e),delete e._fullLayout._activeShapeIndex,QB(e))}}function pct(e){if(iP(e)){Xue(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var S0=qa(),Jue=Mc(),$ue=hf(),Ll=GL(),gct=nP().eraseActiveShape,aP=Dr(),rl=aP._,Pl=ace.exports={};Pl.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?rl(e,"Download plot as a PNG"):rl(e,"Download plot")},icon:Ll.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};aP.notifier(rl(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in t&&(r[n]=t[n])}),S0.call("downloadImage",e,r).then(function(n){aP.notifier(rl(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){aP.notifier(rl(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Pl.sendDataToCloud={name:"sendDataToCloud",title:function(e){return rl(e,"Edit in Chart Studio")},icon:Ll.disk,click:function(e){Jue.sendDataToCloud(e)}};Pl.editInChartStudio={name:"editInChartStudio",title:function(e){return rl(e,"Edit in Chart Studio")},icon:Ll.pencil,click:function(e){Jue.sendDataToCloud(e)}};Pl.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return rl(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ll.zoombox,click:qv};Pl.pan2d={name:"pan2d",_cat:"pan",title:function(e){return rl(e,"Pan")},attr:"dragmode",val:"pan",icon:Ll.pan,click:qv};Pl.select2d={name:"select2d",_cat:"select",title:function(e){return rl(e,"Box Select")},attr:"dragmode",val:"select",icon:Ll.selectbox,click:qv};Pl.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return rl(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ll.lasso,click:qv};Pl.drawclosedpath={name:"drawclosedpath",title:function(e){return rl(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ll.drawclosedpath,click:qv};Pl.drawopenpath={name:"drawopenpath",title:function(e){return rl(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ll.drawopenpath,click:qv};Pl.drawline={name:"drawline",title:function(e){return rl(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ll.drawline,click:qv};Pl.drawrect={name:"drawrect",title:function(e){return rl(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ll.drawrect,click:qv};Pl.drawcircle={name:"drawcircle",title:function(e){return rl(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ll.drawcircle,click:qv};Pl.eraseshape={name:"eraseshape",title:function(e){return rl(e,"Erase active shape")},icon:Ll.eraseshape,click:gct};Pl.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return rl(e,"Zoom in")},attr:"zoom",val:"in",icon:Ll.zoom_plus,click:qv};Pl.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return rl(e,"Zoom out")},attr:"zoom",val:"out",icon:Ll.zoom_minus,click:qv};Pl.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return rl(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ll.autoscale,click:qv};Pl.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return rl(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ll.home,click:qv};Pl.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return rl(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Ll.tooltip_basic,gravity:"ne",click:qv};Pl.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return rl(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Ll.tooltip_compare,gravity:"ne",click:qv};function qv(e,t){var r=t.currentTarget,n=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,a=e._fullLayout,o={},s=$ue.list(e,null,!0),l=a._cartesianSpikesEnabled,u,c;if(n==="zoom"){var f=i==="in"?.5:2,h=(1+f)/2,d=(1-f)/2,v,_;for(c=0;c{"use strict";var oce=rN(),_ct=Object.keys(oce),sce=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],lce=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(sce),X3=[],xct=function(e){if(lce.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();X3.indexOf(t)===-1&&X3.push(t),X3.indexOf(r)===-1&&X3.push(r)}};_ct.forEach(function(e){xct(oce[e])});X3.sort();uce.exports={DRAW_MODES:sce,backButtons:lce,foreButtons:X3}});var nN=ye((Rnr,cce)=>{"use strict";var Inr=iN();cce.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var hce=ye((Dnr,fce)=>{"use strict";var bct=Dr(),gM=Ca(),wct=pl(),Tct=nN();fce.exports=function(t,r){var n=t.modebar||{},i=wct.newContainer(r,"modebar");function a(s,l){return bct.coerce(n,i,Tct,s,l)}a("orientation"),a("bgcolor",gM.addOpacity(r.paper_bgcolor,.5));var o=gM.contrast(gM.rgb(r.modebar.bgcolor));a("color",gM.addOpacity(o,.3)),a("activecolor",gM.addOpacity(o,.7)),a("uirevision",r.uirevision),a("add"),a("remove")}});var gce=ye((Fnr,pce)=>{"use strict";var aN=Oa(),Act=Eo(),sP=Dr(),dce=GL(),Sct=a6().version,Mct=new DOMParser;function vce(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Tm=vce.prototype;Tm.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i="modebar-"+n._uid;this.element.setAttribute("id",i),this.element.setAttribute("role","toolbar"),this._uid=i,this.element.className="modebar modebar--custom",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var a=n.modebar,o="#"+i+" .modebar-group";document.querySelectorAll(o).forEach(function(f){f.style.backgroundColor=a.bgcolor});var s=!this.hasButtons(t),l=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(s||l||u)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var c=this.getLogo();r.watermark&&(c.className=c.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(c,this.element.childNodes[0]):this.element.appendChild(c),this.hasLogo=!0}this.updateActiveButton(),sP.setStyleOnHover("#"+i+" .modebar-btn",".active",".icon path","fill: "+a.activecolor,"fill: "+a.color,this.element)};Tm.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var n=t.createGroup();r.forEach(function(i){var a=i.name;if(!a)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(a)!==-1)throw new Error("button name '"+a+"' is taken");t.buttonsNames.push(a);var o=t.createButton(i);t.buttonElements.push(o),n.appendChild(o)}),t.element.appendChild(n)})};Tm.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};Tm.createButton=function(e){var t=this,r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("rel","tooltip"),r.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(r.setAttribute("data-title",n),r.setAttribute("aria-label",n)),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var i=e.val;i!==void 0&&(typeof i=="function"&&(i=i(this.graphInfo)),r.setAttribute("data-val",i));var a=e.click;if(typeof a!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(s){e.click(t.graphInfo,s),t.updateActiveButton(s.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&aN.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||dce.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};Tm.createIcon=function(e){var t=Act(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(r,"svg"),n.setAttribute("viewBox",[0,0,e.width,t].join(" ")),n.setAttribute("class","icon");var i=document.createElementNS(r,"path");i.setAttribute("d",e.path),e.transform?i.setAttribute("transform",e.transform):e.ascent!==void 0&&i.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(i)}if(e.svg){var a=Mct.parseFromString(e.svg,"application/xml");n=a.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};Tm.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var i=n.getAttribute("data-val")||!0,a=n.getAttribute("data-attr"),o=n.getAttribute("data-toggle")==="true",s=aN.select(n),l=function(f,h){var d=t.modebar,v=f.querySelector(".icon path");v&&(h||f.matches(":hover")?v.style.fill=d.activecolor:v.style.fill=d.color)};if(o){if(a===r){var u=!s.classed("active");s.classed("active",u),l(n,u)}}else{var c=a===null?a:sP.nestedProperty(t,a).get();s.classed("active",c===i),l(n,c===i)}})};Tm.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var kct=hf(),mce=Ru(),oN=qa(),Lct=rp().isUnifiedHover,Pct=gce(),lP=rN(),Ict=iN().DRAW_MODES,Rct=Dr().extendDeep;yce.exports=function(t){var r=t._fullLayout,n=t._context,i=r._modeBar;if(!n.displayModeBar&&!n.watermark){i&&(i.destroy(),delete r._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var a=n.modeBarButtons,o;Array.isArray(a)&&a.length?o=Bct(a):!n.displayModeBar&&n.watermark?o=[]:o=Dct(t),i?i.update(t,o):r._modeBar=Pct(t,o)};function Dct(e){var t=e._fullLayout,r=e._fullData,n=e._context;function i(N,j){if(typeof j=="string"){if(j.toLowerCase()===N.toLowerCase())return!0}else{var re=j.name,oe=j._cat||j.name;if(re===N||oe===N.toLowerCase())return!0}return!1}var a=t.modebar.add;typeof a=="string"&&(a=[a]);var o=t.modebar.remove;typeof o=="string"&&(o=[o]);var s=n.modeBarButtonsToAdd.concat(a.filter(function(N){for(var j=0;j1?(P=["toggleHover"],T=["resetViews"]):f?(g=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],T=["resetGeo"]):c?(P=["hoverClosest3d"],T=["resetCameraDefault3d","resetCameraLastSave3d"]):_?(g=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],T=["resetViewMapbox"]):b?(g=["zoomInMap","zoomOutMap"],P=["toggleHover"],T=["resetViewMap"]):h?P=["hoverClosestPie"]:E?(P=["hoverClosestCartesian","hoverCompareCartesian"],T=["resetViewSankey"]):P=["toggleHover"],u&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Oct(r)||L)&&(P=[]),u&&!A&&(g=["zoomIn2d","zoomOut2d","autoScale2d"],T[0]!=="resetViews"&&(T=["resetScale2d"])),c?z=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!A||v?z=["zoom2d","pan2d"]:_||b||f?z=["pan2d"]:p&&(z=["zoom2d"]),zct(r)&&z.push("select2d","lasso2d");var O=[],V=function(N){O.indexOf(N)===-1&&P.indexOf(N)!==-1&&O.push(N)};if(Array.isArray(s)){for(var G=[],Z=0;Z{"use strict";xce.exports={moduleType:"component",name:"modebar",layoutAttributes:nN(),supplyLayoutDefaults:hce(),manage:_ce()}});var lN=ye((qnr,bce)=>{"use strict";var Nct=Kh().FROM_BL;bce.exports=function(t,r,n){n===void 0&&(n=Nct[t.constraintoward||"center"]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*n;t.range=t._input.range=[t.l2r(a+(i[0]-a)*r),t.l2r(a+(i[1]-a)*r)],t.setScale()}});var Bb=ye(mM=>{"use strict";var qb=Dr(),uN=wg(),Mg=hf().id2name,Uct=Rd(),wce=lN(),Vct=ym(),Gct=hs().ALMOST_EQUAL,Hct=Kh().FROM_BL;mM.handleDefaults=function(e,t,r){var n=r.axIds,i=r.axHasImage,a=t._axisConstraintGroups=[],o=t._axisMatchGroups=[],s,l,u,c,f,h,d,v;for(s=0;sa?r.substr(a):n.substr(i))+o}function Wct(e,t){for(var r=t._size,n=r.h/r.w,i={},a=Object.keys(e),o=0;oGct*v&&!C)){for(a=0;az&&reP&&(P=re);var _e=(P-g)/(2*T);f/=_e,g=l.l2r(g),P=l.l2r(P),l.range=l._input.range=x{"use strict";var cP=Oa(),Bv=qa(),Jp=Mc(),M0=Dr(),hN=iu(),dN=hM(),yM=Ca(),Z3=So(),Mce=Mb(),Pce=sN(),_M=ho(),Cy=Kh(),Ice=Bb(),Xct=Ice.enforce,Zct=Ice.clean,Ece=wg().doAutoRange,Rce="start",Yct="middle",Dce="end",Kct=hd().zindexSeparator;pd.layoutStyles=function(e){return M0.syncOrAsync([Jp.doAutoMargin,$ct],e)};function Jct(e,t,r){for(var n=0;n=e[1]||i[1]<=e[0])&&a[0]t[0])return!0}return!1}function $ct(e){var t=e._fullLayout,r=t._size,n=r.p,i=_M.list(e,"",!0),a,o,s,l,u,c;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(Z3.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),pd.drawMainTitle(e),Pce.manage(e),!t._has("cartesian"))return Jp.previousPromises(e);function f(Pe,ge,Fe){var ce=Pe._lw/2;if(Pe._id.charAt(0)==="x"){if(ge){if(Fe==="top")return ge._offset-n-ce}else return r.t+r.h*(1-(Pe.position||0))+ce%1;return ge._offset+ge._length+n+ce}if(ge){if(Fe==="right")return ge._offset+ge._length+n+ce}else return r.l+r.w*(Pe.position||0)+ce%1;return ge._offset-n-ce}for(a=0;a0){rft(e,a,u,l),s.attr({x:o,y:a,"text-anchor":n,dy:Lce(t.yanchor)}).call(hN.positionText,o,a);var c=(t.text.match(hN.BR_TAG_ALL)||[]).length;if(c){var f=Cy.LINE_SPACING*c+Cy.MID_SHIFT;t.y===0&&(f=-f),s.selectAll(".line").each(function(){var b=+this.getAttribute("dy").slice(0,-2)-f+"em";this.setAttribute("dy",b)})}var h=cP.selectAll(".gtitle-subtitle");if(h.node()){var d=s.node().getBBox(),v=d.y+d.height,_=v+Mce.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y:_,"text-anchor":n,dy:Lce(t.yanchor)}).call(hN.positionText,o,_)}}}};function Qct(e,t,r,n,i){var a=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=M0.isTopAnchor(t)?n:n-i,s=r==="b"?a-o:o;return M0.isTopAnchor(t)&&r==="t"||M0.isBottomAnchor(t)&&r==="b"?!1:s.5?"t":"b",o=e._fullLayout.margin[a],s=0;return t.yref==="paper"?s=r+t.pad.t+t.pad.b:t.yref==="container"&&(s=eft(a,n,i,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function rft(e,t,r,n){var i="title.automargin",a=e._fullLayout.title,o=a.y>.5?"t":"b",s={x:a.x,y:a.y,t:0,b:0},l={};a.yref==="paper"&&Qct(e,a,o,t,n)?s[o]=r:a.yref==="container"&&(l[o]=r,e._fullLayout._reservedMargin[i]=l),Jp.allowAutoMargin(e,i),Jp.autoMargin(e,i,s)}function ift(e,t){var r=e.title,n=e._size,i=0;switch(t===Rce?i=r.pad.l:t===Dce&&(i=-r.pad.r),r.xref){case"paper":return n.l+n.w*r.x+i;case"container":default:return e.width*r.x+i}}function nft(e,t){var r=e.title,n=e._size,i=0;if(t==="0em"||!t?i=-r.pad.b:t===Cy.CAP_SHIFT+"em"&&(i=r.pad.t),r.y==="auto")return n.t/2;switch(r.yref){case"paper":return n.t+n.h-n.h*r.y+i;case"container":default:return e.height-e.height*r.y+i}}function Lce(e){return e==="top"?Cy.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Cy.MID_SHIFT+"em"}function aft(e){var t=e.title,r=Yct;return M0.isRightAnchor(t)?r=Dce:M0.isLeftAnchor(t)&&(r=Rce),r}function oft(e){var t=e.title,r="0em";return M0.isTopAnchor(t)?r=Cy.CAP_SHIFT+"em":M0.isMiddleAnchor(t)&&(r=Cy.MID_SHIFT+"em"),r}pd.doTraceStyle=function(e){var t=e.calcdata,r=[],n;for(n=0;n{"use strict";var sft=c_().readPaths,lft=eP(),Fce=e_().clearOutlineControllers,vN=Ca(),zce=So(),uft=pl().arrayEditor,Oce=h_(),cft=Oce.getPathString;Bce.exports={draw:fP,drawOne:qce,activateLastSelection:dft};function fP(e){var t=e._fullLayout;Fce(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var n=t._plots[r].selectionLayer;n&&n.selectAll("path").remove()}for(var i=0;i=0;b--){var p=o.append("path").attr(l).style("opacity",b?.1:u).call(vN.stroke,f).call(vN.fill,c).call(zce.dashLine,b?"solid":d,b?4+h:h);if(fft(p,e,n),v){var C=uft(e.layout,"selections",n);p.style({cursor:"move"});var E={element:p.node(),plotinfo:i,gd:e,editHelpers:C,isActiveSelection:!0},A=sft(s,e);lft(A,p,E)}else p.style("pointer-events",b?"all":"none");_[b]=p}var L=_[0],x=_[1];x.node().addEventListener("click",function(){return hft(e,L)})}}function fft(e,t,r){var n=r.xref+r.yref;zce.setClipUrl(e,"clip"+t._fullLayout._uid+n,t)}function hft(e,t){if(hP(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){pN(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=pN,fP(e)}}}function dft(e){if(hP(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=pN,fP(e)}}function pN(e){if(hP(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(Fce(e),delete e._fullLayout._activeSelectionIndex,fP(e))}}});var Uce=ye((Vnr,Nce)=>{function vft(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,o){return n("temp_status",{seg:i,above:a,below:o})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,o){return n("status",{seg:i,above:a,below:o})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}Nce.exports=vft});var Gce=ye((Gnr,Vce)=>{function pft(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],o=n[1],s=i[0],l=i[1],u=r[0],c=r[1];return(s-a)*(c-o)-(l-o)*(u-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],s=r[0]-n[0],l=i[1]-n[1],u=s*o+a*l;if(u-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])e!=s-a>e&&(o-c)*(a-f)/(s-f)+c-i>e&&(l=!l),o=c,s=f}return l}};return t}Vce.exports=pft});var jce=ye((Hnr,Hce)=>{var gft={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,i=e.root.next;i!==null;){if(r(i)){t.prev=i.prev,t.next=i,i.prev.next=t,i.prev=t;return}n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(i){return i.prev=r,i.next=n,r.next=i,n!==null&&(n.prev=i),i}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};Hce.exports=gft});var Xce=ye((jnr,Wce)=>{var bM=jce();function mft(e,t,r){function n(v,_){return{id:r?r.segmentId():-1,start:v,end:_,myFill:{above:null,below:null},otherFill:null}}function i(v,_,b){return{id:r?r.segmentId():-1,start:v,end:_,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=bM.create();function o(v,_,b,p,C,E){var A=t.pointsCompare(_,C);return A!==0?A:t.pointsSame(b,E)?0:v!==p?v?1:-1:t.pointAboveOrOnLine(b,p?C:E,p?E:C)?1:-1}function s(v,_){a.insertBefore(v,function(b){var p=o(v.isStart,v.pt,_,b.isStart,b.pt,b.other.pt);return p<0})}function l(v,_){var b=bM.node({isStart:!0,pt:v.start,seg:v,primary:_,other:null,status:null});return s(b,v.end),b}function u(v,_,b){var p=bM.node({isStart:!1,pt:_.end,seg:_,primary:b,other:v,status:null});v.other=p,s(p,v.pt)}function c(v,_){var b=l(v,_);return u(b,v,_),b}function f(v,_){r&&r.segmentChop(v.seg,_),v.other.remove(),v.seg.end=_,v.other.pt=_,s(v.other,v.pt)}function h(v,_){var b=i(_,v.seg.end,v.seg);return f(v,_),c(b,v.primary)}function d(v,_){var b=bM.create();function p(G,Z){var H=G.seg.start,N=G.seg.end,j=Z.seg.start,re=Z.seg.end;return t.pointsCollinear(H,j,re)?t.pointsCollinear(N,j,re)||t.pointAboveOrOnLine(N,j,re)?1:-1:t.pointAboveOrOnLine(H,j,re)?1:-1}function C(G){return b.findTransition(function(Z){var H=p(G,Z.ev);return H>0})}function E(G,Z){var H=G.seg,N=Z.seg,j=H.start,re=H.end,oe=N.start,_e=N.end;r&&r.checkIntersection(H,N);var Me=t.linesIntersect(j,re,oe,_e);if(Me===!1){if(!t.pointsCollinear(j,re,oe)||t.pointsSame(j,_e)||t.pointsSame(re,oe))return!1;var ke=t.pointsSame(j,oe),me=t.pointsSame(re,_e);if(ke&&me)return Z;var ie=!ke&&t.pointBetween(j,oe,_e),Se=!me&&t.pointBetween(re,oe,_e);if(ke)return Se?h(Z,re):h(G,_e),Z;ie&&(me||(Se?h(Z,re):h(G,_e)),h(Z,j))}else Me.alongA===0&&(Me.alongB===-1?h(G,oe):Me.alongB===0?h(G,Me.pt):Me.alongB===1&&h(G,_e)),Me.alongB===0&&(Me.alongA===-1?h(Z,j):Me.alongA===0?h(Z,Me.pt):Me.alongA===1&&h(Z,re));return!1}for(var A=[];!a.isEmpty();){var L=a.getHead();if(r&&r.vert(L.pt[0]),L.isStart){let G=function(){if(k){var Z=E(L,k);if(Z)return Z}return M?E(L,M):!1};var V=G;r&&r.segmentNew(L.seg,L.primary);var x=C(L),k=x.before?x.before.ev:null,M=x.after?x.after.ev:null;r&&r.tempStatus(L.seg,k?k.seg:!1,M?M.seg:!1);var g=G();if(g){if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,P&&(g.seg.myFill.above=!g.seg.myFill.above)}else g.seg.otherFill=L.seg.myFill;r&&r.segmentUpdate(g.seg),L.other.remove(),L.remove()}if(a.getHead()!==L){r&&r.rewind(L.seg);continue}if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,M?L.seg.myFill.below=M.seg.myFill.above:L.seg.myFill.below=v,P?L.seg.myFill.above=!L.seg.myFill.below:L.seg.myFill.above=L.seg.myFill.below}else if(L.seg.otherFill===null){var T;M?L.primary===M.primary?T=M.seg.otherFill.above:T=M.seg.myFill.above:T=L.primary?_:v,L.seg.otherFill={above:T,below:T}}r&&r.status(L.seg,k?k.seg:!1,M?M.seg:!1),L.other.status=x.insert(bM.node({ev:L}))}else{var z=L.status;if(z===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(z.prev)&&b.exists(z.next)&&E(z.prev.ev,z.next.ev),r&&r.statusRemove(z.ev.seg),z.remove(),!L.primary){var O=L.seg.myFill;L.seg.myFill=L.seg.otherFill,L.seg.otherFill=O}A.push(L.seg)}a.getHead().remove()}return r&&r.done(),A}return e?{addRegion:function(v){for(var _,b=v[v.length-1],p=0;p{function yft(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,s=a.end;if(t.pointsSame(o,s)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var l={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},c=l;function f(V,G,Z){return c.index=V,c.matches_head=G,c.matches_pt1=Z,c===l?(c=u,!1):(c=null,!0)}for(var h=0;h{function wM(e,t,r){var n=[];return e.forEach(function(i){var a=(i.myFill.above?8:0)+(i.myFill.below?4:0)+(i.otherFill&&i.otherFill.above?2:0)+(i.otherFill&&i.otherFill.below?1:0);t[a]!==0&&n.push({id:r?r.segmentId():-1,start:i.start,end:i.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(n),n}var _ft={union:function(e,t){return wM(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return wM(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return wM(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return wM(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return wM(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};Kce.exports=_ft});var Qce=ye((Znr,$ce)=>{var xft={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var c=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[c]})}for(var s=o(a[0]),l=1;l{var bft=Uce(),wft=Gce(),efe=Xce(),Tft=Yce(),TM=Jce(),tfe=Qce(),E0=!1,AM=wft(),Mp;Mp={buildLog:function(e){return e===!0?E0=bft():e===!1&&(E0=!1),E0===!1?!1:E0.list},epsilon:function(e){return AM.epsilon(e)},segments:function(e){var t=efe(!0,AM,E0);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=efe(!1,AM,E0);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:TM.union(e.combined,E0),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:TM.intersect(e.combined,E0),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:TM.difference(e.combined,E0),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:TM.differenceRev(e.combined,E0),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:TM.xor(e.combined,E0),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Tft(e.segments,AM,E0),inverted:e.inverted}},polygonFromGeoJSON:function(e){return tfe.toPolygon(Mp,e)},polygonToGeoJSON:function(e){return tfe.fromPolygon(Mp,AM,e)},union:function(e,t){return SM(e,t,Mp.selectUnion)},intersect:function(e,t){return SM(e,t,Mp.selectIntersect)},difference:function(e,t){return SM(e,t,Mp.selectDifference)},differenceRev:function(e,t){return SM(e,t,Mp.selectDifferenceRev)},xor:function(e,t){return SM(e,t,Mp.selectXor)}};function SM(e,t,r){var n=Mp.segments(e),i=Mp.segments(t),a=Mp.combine(n,i),o=r(a);return Mp.polygon(o)}typeof window=="object"&&(window.PolyBool=Mp);rfe.exports=Mp});var afe=ye((Knr,nfe)=>{nfe.exports=function(t,r,n,i){var a=t[0],o=t[1],s=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var l=i-n,u=0,c=l-1;uo!=v>o&&a<(d-f)*(o-h)/(v-h)+f;_&&(s=!s)}return s}});var MM=ye((Jnr,ofe)=>{"use strict";var mN=x6().dot,dP=hs().BADNUM,vP=ofe.exports={};vP.tester=function(t){var r=t.slice(),n=r[0][0],i=n,a=r[0][1],o=a,s;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),s=1;si||p===dP||po||_&&u(v))}function f(v,_){var b=v[0],p=v[1];if(b===dP||bi||p===dP||po)return!1;var C=r.length,E=r[0][0],A=r[0][1],L=0,x,k,M,g,P;for(x=1;xMath.max(k,E)||p>Math.max(M,A)))if(ps||Math.abs(mN(f,u))>i)return!0;return!1};vP.filter=function(t,r){var n=[t[0]],i=0,a=0;function o(l){t.push(l);var u=n.length,c=i;n.splice(a+1);for(var f=c+1;f1){var s=t.pop();o(s)}return{addPt:o,raw:t,filtered:n}}});var lfe=ye(($nr,sfe)=>{"use strict";sfe.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Lfe=ye((Qnr,kfe)=>{"use strict";var ufe=ife(),Aft=afe(),kM=qa(),Sft=So().dashStyle,EM=Ca(),Mft=vf(),Eft=rp().makeEventData,DM=Sg(),Cft=DM.freeMode,kft=DM.rectMode,LM=DM.drawMode,bN=DM.openMode,wN=DM.selectMode,cfe=h_(),ffe=vM(),gfe=eP(),mfe=e_().clearOutline,yfe=c_(),yN=yfe.handleEllipse,Lft=yfe.readPaths,Pft=KL().newShapes,Ift=jB(),Rft=gN().activateLastSelection,gP=Dr(),Dft=gP.sorterAsc,_fe=MM(),CM=R6(),C0=hf().getFromId,Fft=hM(),zft=xM().redrawReglTraces,mP=lfe(),Am=mP.MINSELECT,Oft=_fe.filter,TN=_fe.tester,AN=WL(),hfe=AN.p2r,qft=AN.axValue,Bft=AN.getTransform;function SN(e){return e.subplot!==void 0}function Nft(e,t,r,n,i){var a=!SN(n),o=Cft(i),s=kft(i),l=bN(i),u=LM(i),c=wN(i),f=i==="drawline",h=i==="drawcircle",d=f||h,v=n.gd,_=v._fullLayout,b=c&&_.newselection.mode==="immediate"&&a,p=_._zoomlayer,C=n.element.getBoundingClientRect(),E=n.plotinfo,A=Bft(E),L=t-C.left,x=r-C.top;_._calcInverseTransform(v);var k=gP.apply3DTransform(_._invTransform)(L,x);L=k[0],x=k[1];var M=_._invScaleX,g=_._invScaleY,P=L,T=x,z="M"+L+","+x,O=n.xaxes[0],V=n.yaxes[0],G=O._length,Z=V._length,H=e.altKey&&!(LM(i)&&l),N,j,re,oe,_e,Me,ke;bfe(e,v,n),o&&(N=Oft([[L,x]],mP.BENDPX));var me=p.selectAll("path.select-outline-"+E.id).data([1]),ie=u?_.newshape:_.newselection;u&&(n.hasText=ie.label.text||ie.label.texttemplate);var Se=u&&!l?ie.fillcolor:"rgba(0,0,0,0)",Le=ie.line.color||(a?EM.contrast(v._fullLayout.plot_bgcolor):"#7f7f7f");me.enter().append("path").attr("class","select-outline select-outline-"+E.id).style({opacity:u?ie.opacity/2:1,"stroke-dasharray":Sft(ie.line.dash,ie.line.width),"stroke-width":ie.line.width+"px","shape-rendering":"crispEdges"}).call(EM.stroke,Le).call(EM.fill,Se).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",A).attr("d",z+"Z");var Ae=p.append("path").attr("class","zoombox-corners").style({fill:EM.background,stroke:EM.defaultLine,"stroke-width":1}).attr("transform",A).attr("d","M0,0Z");if(u&&n.hasText){var De=p.select(".label-temp");De.empty()&&(De=p.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Pe=_._uid+mP.SELECTID,ge=[],Fe=yP(v,n.xaxes,n.yaxes,n.subplot);b&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(a){var Ye=O._id,ct=V._id;Mfe(v,Ye,ct,Fe);for(var pt=(v.layout||{}).selections||[],Wt=[],st=!1,lt=0;lt=0){v._fullLayout._deactivateShape(v);return}if(!u){var pt=_.clickmode;CM.done(Pe).then(function(){if(CM.clear(Pe),Ye===2){for(me.remove(),_e=0;_e-1&&xfe(ct,v,n.xaxes,n.yaxes,n.subplot,n,me),pt==="event"&&RM(v,void 0);Mft.click(v,ct,E.id)}).catch(gP.error)}},n.doneFn=function(){Ae.remove(),CM.done(Pe).then(function(){CM.clear(Pe),!b&&oe&&n.selectionDefs&&(oe.subtract=H,n.selectionDefs.push(oe),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,re)),(b||u)&&PM(n,b),n.doneFnCompleted&&n.doneFnCompleted(ge),c&&RM(v,ke)}).catch(gP.error)}}function xfe(e,t,r,n,i,a,o){var s=t._hoverdata,l=t._fullLayout,u=l.clickmode,c=u.indexOf("event")>-1,f=[],h,d,v,_,b,p,C,E,A,L;if(jft(s)){bfe(e,t,a),h=yP(t,r,n,i);var x=Wft(s,h),k=x.pointNumbers.length>0;if(k?Xft(h,x):Zft(h)&&(C=vfe(x))){for(o&&o.remove(),L=0;L=0}function Hft(e){return e._fullLayout._activeSelectionIndex>=0}function PM(e,t){var r=e.dragmode,n=e.plotinfo,i=e.gd;Gft(i)&&i._fullLayout._deactivateShape(i),Hft(i)&&i._fullLayout._deactivateSelection(i);var a=i._fullLayout,o=a._zoomlayer,s=LM(r),l=wN(r);if(s||l){var u=o.selectAll(".select-outline-"+n.id);if(u&&i._fullLayout._outlining){var c;s&&(c=Pft(u,e)),c&&kM.call("_guiRelayout",i,{shapes:c});var f;l&&!SN(e)&&(f=Ift(u,e)),f&&(i._fullLayout._noEmitSelectedAtStart=!0,kM.call("_guiRelayout",i,{selections:f}).then(function(){t&&Rft(i)})),i._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function dfe(e){return e._id}function yP(e,t,r,n){if(!e.calcdata)return[];var i=[],a=t.map(dfe),o=r.map(dfe),s,l,u;for(u=0;u0,a=i?n[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function Xft(e,t){var r=[],n,i,a,o;for(o=0;o0&&r.push(n);if(r.length===1&&(a=r[0]===t.searchInfo,a&&(i=t.searchInfo.cd[0].trace,i.selectedpoints.length===t.pointNumbers.length))){for(o=0;o1||(t+=n.selectedpoints.length,t>1)))return!1;return t===1}function IM(e,t,r){var n;for(n=0;n-1&&t;if(!o&&t){var Ye=pfe(e,!0);if(Ye.length){var ct=Ye[0].xref,pt=Ye[0].yref;if(ct&&pt){var Wt=Efe(Ye),st=Cfe([C0(e,ct,"x"),C0(e,pt,"y")]);st(ge,Wt)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ce&&RM(e,ge),h._reselect=!1}if(!o&&h._deselect){var lt=h._deselect;s=lt.xref,l=lt.yref,Jft(s,l,c)||Mfe(e,s,l,n),ce&&(ge.points.length?RM(e,ge):CN(e)),h._deselect=!1}return{eventData:ge,selectionTesters:r}}function Kft(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";Pfe.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]});var FM=ye((tar,Ife)=>{"use strict";Ife.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}});var Nb=ye((iar,Ffe)=>{"use strict";var Rfe=kN(),Dfe=ec(),_P=hd(),rht=pl().templatedArray,rar=FM();Ffe.exports=rht("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Dfe({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:Rfe.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Rfe.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",_P.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",_P.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",_P.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",_P.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:Dfe({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Sm=ye((nar,zfe)=>{"use strict";zfe.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Eg=ye((aar,Ofe)=>{"use strict";Ofe.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var pf=ye((oar,Gfe)=>{"use strict";var qfe=df().axisHoverFormat,iht=Qo().texttemplateAttrs,nht=Qo().hovertemplateAttrs,Bfe=Tu(),aht=ec(),oht=Pd().dash,sht=Pd().pattern,lht=So(),uht=Sm(),xP=Ao().extendFlat,cht=Eg();function Nfe(e){return{valType:"any",dflt:0,editType:"calc"}}function Ufe(e){return{valType:"any",editType:"calc"}}function Vfe(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}Gfe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:Nfe("x"),yperiod:Nfe("y"),xperiod0:Ufe("x0"),yperiod0:Ufe("y0"),xperiodalignment:Vfe("x"),yperiodalignment:Vfe("y"),xhoverformat:qfe("x"),yhoverformat:qfe("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:iht({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:nht({},{keys:uht.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:xP({},oht,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:cht(!0),fillgradient:xP({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:sht,marker:xP({symbol:{valType:"enumerated",values:lht.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:xP({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},Bfe("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},Bfe("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:aht({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var LN=ye((lar,Wfe)=>{"use strict";var Hfe=Nb(),jfe=pf().line,fht=Pd().dash,bP=Ao().extendFlat,hht=mc().overrideAll,dht=pl().templatedArray,sar=FM();Wfe.exports=hht(dht("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:bP({},Hfe.xref,{}),yref:bP({},Hfe.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:jfe.color,width:bP({},jfe.width,{min:1,dflt:1}),dash:bP({},fht,{dflt:"dot"})}}),"arraydraw","from-root")});var Kfe=ye((uar,Yfe)=>{"use strict";var Xfe=Dr(),wP=ho(),vht=Yd(),pht=LN(),Zfe=h_();Yfe.exports=function(t,r){vht(t,r,{name:"selections",handleItemDefaults:ght});for(var n=r.selections,i=0;i{"use strict";Jfe.exports=function(t,r,n){n("newselection.mode");var i=n("newselection.line.width");i&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var zM=ye((far,the)=>{"use strict";var mht=qa(),Qfe=Dr(),ehe=hf();the.exports=function(t){return function(n,i){var a=n[t];if(Array.isArray(a))for(var o=mht.subplotsRegistry.cartesian,s=o.idRegex,l=i._subplots,u=l.xaxis,c=l.yaxis,f=l.cartesian,h=i._has("cartesian"),d=0;d{"use strict";var rhe=gN(),OM=Lfe();ihe.exports={moduleType:"component",name:"selections",layoutAttributes:LN(),supplyLayoutDefaults:Kfe(),supplyDrawNewSelectionDefaults:$fe(),includeBasePlot:zM()("selections"),draw:rhe.draw,drawOne:rhe.drawOne,reselect:OM.reselect,prepSelect:OM.prepSelect,clearOutline:OM.clearOutline,clearSelectionsCache:OM.clearSelectionsCache,selectOnClick:OM.selectOnClick}});var ON=ye((dar,The)=>{"use strict";var FN=Oa(),k0=Dr(),nhe=k0.numberFormat,yht=cd(),_ht=LL(),TP=qa(),dhe=k0.strTranslate,xht=iu(),ahe=Ca(),v_=So(),bht=vf(),ohe=ho(),wht=Tg(),Tht=gv(),vhe=Sg(),AP=vhe.selectingOrDrawing,Aht=vhe.freeMode,Sht=Kh().FROM_TL,Mht=hM(),Eht=xM().redrawReglTraces,Cht=Mc(),IN=hf().getFromId,kht=zf().prepSelect,Lht=zf().clearOutline,Pht=zf().selectOnClick,PN=lN(),zN=hd(),she=zN.MINDRAG,ip=zN.MINZOOM,lhe=!0;function Iht(e,t,r,n,i,a,o,s){var l=e._fullLayout._zoomlayer,u=o+s==="nsew",c=(o+s).length===1,f,h,d,v,_,b,p,C,E,A,L,x,k,M,g,P,T,z,O,V,G,Z,H;r+=t.yaxis._shift;function N(){if(f=t.xaxis,h=t.yaxis,E=f._length,A=h._length,p=f._offset,C=h._offset,d={},d[f._id]=f,v={},v[h._id]=h,o&&s)for(var bt=t.overlays,yt=0;yt=0){Yt._fullLayout._deactivateShape(Yt);return}var lr=Yt._fullLayout.clickmode;if(DN(Yt),bt===2&&!c&&ur(),u)lr.indexOf("select")>-1&&Pht(yt,Yt,_,b,t.id,oe),lr.indexOf("event")>-1&&bht.click(Yt,yt,t.id);else if(bt===1&&c){var Tr=o?h:f,Rr=o==="s"||s==="w"?0:1,ei=Tr._name+".range["+Rr+"]",Wr=Rht(Tr,Rr),Ur="left",dt="middle";if(Tr.fixedrange)return;o?(dt=o==="n"?"top":"bottom",Tr.side==="right"&&(Ur="right")):s==="e"&&(Ur="right"),Yt._context.showAxisRangeEntryBoxes&&FN.select(re).call(xht.makeEditable,{gd:Yt,immediate:!0,background:Yt._fullLayout.paper_bgcolor,text:String(Wr),fill:Tr.tickfont?Tr.tickfont.color:"#444",horizontalAlign:Ur,verticalAlign:dt}).on("edit",function(Ge){var Je=Tr.d2r(Ge);Je!==void 0&&TP.call("_guiRelayout",Yt,ei,Je)})}}Tht.init(oe);var ke,me,ie,Se,Le,Ae,De,Pe,ge,Fe;function ce(bt,yt,Yt){var lr=re.getBoundingClientRect();ke=yt-lr.left,me=Yt-lr.top,e._fullLayout._calcInverseTransform(e);var Tr=k0.apply3DTransform(e._fullLayout._invTransform)(ke,me);ke=Tr[0],me=Tr[1],ie={l:ke,r:ke,w:0,t:me,b:me,h:0},Se=e._hmpixcount?e._hmlumcount/e._hmpixcount:yht(e._fullLayout.plot_bgcolor).getLuminance(),Le="M0,0H"+E+"V"+A+"H0V0",Ae=!1,De="xy",Fe=!1,Pe=mhe(l,Se,p,C,Le),ge=yhe(l,p,C)}function Ye(bt,yt){if(e._transitioningWithDuration)return!1;var Yt=Math.max(0,Math.min(E,Z*bt+ke)),lr=Math.max(0,Math.min(A,H*yt+me)),Tr=Math.abs(Yt-ke),Rr=Math.abs(lr-me);ie.l=Math.min(ke,Yt),ie.r=Math.max(ke,Yt),ie.t=Math.min(me,lr),ie.b=Math.max(me,lr);function ei(){De="",ie.r=ie.l,ie.t=ie.b,ge.attr("d","M0,0Z")}if(L.isSubplotConstrained)Tr>ip||Rr>ip?(De="xy",Tr/E>Rr/A?(Rr=Tr*A/E,me>lr?ie.t=me-Rr:ie.b=me+Rr):(Tr=Rr*E/A,ke>Yt?ie.l=ke-Tr:ie.r=ke+Tr),ge.attr("d",SP(ie))):ei();else if(x.isSubplotConstrained)if(Tr>ip||Rr>ip){De="xy";var Wr=Math.min(ie.l/E,(A-ie.b)/A),Ur=Math.max(ie.r/E,(A-ie.t)/A);ie.l=Wr*E,ie.r=Ur*E,ie.b=(1-Wr)*A,ie.t=(1-Ur)*A,ge.attr("d",SP(ie))}else ei();else!M||Rr0){var Ge;if(x.isSubplotConstrained||!k&&M.length===1){for(Ge=0;Ge<_.length;Ge++)_[Ge].range=_[Ge]._r.slice(),PN(_[Ge],1-yt/A);bt=yt*E/A,Ur=bt/2}if(x.isSubplotConstrained||!M&&k.length===1){for(Ge=0;Ge1&&(ei.maxallowed!==void 0&&P===(ei.range[0]1&&(Wr.maxallowed!==void 0&&T===(Wr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Fht(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function mhe(e,t,r,n,i){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",dhe(r,n)).attr("d",i+"Z")}function yhe(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:ahe.background,stroke:ahe.defaultLine,"stroke-width":1,opacity:0}).attr("transform",dhe(t,r)).attr("d","M0,0Z")}function _he(e,t,r,n,i,a){e.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),xhe(e,t,i,a)}function xhe(e,t,r,n){r||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function DN(e){FN.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function bhe(e){lhe&&e.data&&e._context.showTips&&(k0.notifier(k0._(e,"Double-click to zoom back out"),"long"),lhe=!1)}function zht(e,t){return"M"+(e.l-.5)+","+(t-ip-.5)+"h-3v"+(2*ip+1)+"h3ZM"+(e.r+.5)+","+(t-ip-.5)+"h3v"+(2*ip+1)+"h-3Z"}function Oht(e,t){return"M"+(t-ip-.5)+","+(e.t-.5)+"v-3h"+(2*ip+1)+"v3ZM"+(t-ip-.5)+","+(e.b+.5)+"v3h"+(2*ip+1)+"v-3Z"}function SP(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,ip)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function fhe(e,t,r,n,i){for(var a=!1,o={},s={},l,u,c,f,h=(i||{}).xaHash,d=(i||{}).yaHash,v=0;v{"use strict";var qht=Oa(),MP=vf(),Bht=gv(),Nht=Tg(),Cg=ON().makeDragBox,gd=hd().DRAGGERSIZE;EP.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){qht.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var n=Object.keys(r._plots||{}).sort(function(a,o){if((r._plots[a].mainplot&&!0)===(r._plots[o].mainplot&&!0)){var s=a.split("y"),l=o.split("y");return s[0]===l[0]?Number(s[1]||1)-Number(l[1]||1):Number(s[0]||1)-Number(l[0]||1)}return r._plots[a].mainplot?1:-1});n.forEach(function(a){var o=r._plots[a],s=o.xaxis,l=o.yaxis;if(!o.mainplot){var u=Cg(t,o,s._offset,l._offset,s._length,l._length,"ns","ew");u.onmousemove=function(h){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===a&&t._fullLayout._plots[a]&&MP.hover(t,h,a)},MP.hover(t,h,a),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=a},u.onmouseout=function(h){t._dragging||(t._fullLayout._hoversubplot=null,Bht.unhover(t,h))},t._context.showAxisDragHandles&&(Cg(t,o,s._offset-gd,l._offset-gd,gd,gd,"n","w"),Cg(t,o,s._offset+s._length,l._offset-gd,gd,gd,"n","e"),Cg(t,o,s._offset-gd,l._offset+l._length,gd,gd,"s","w"),Cg(t,o,s._offset+s._length,l._offset+l._length,gd,gd,"s","e"))}if(t._context.showAxisDragHandles){if(a===s._mainSubplot){var c=s._mainLinePosition;s.side==="top"&&(c-=gd),Cg(t,o,s._offset+s._length*.1,c,s._length*.8,gd,"","ew"),Cg(t,o,s._offset,c,s._length*.1,gd,"","w"),Cg(t,o,s._offset+s._length*.9,c,s._length*.1,gd,"","e")}if(a===l._mainSubplot){var f=l._mainLinePosition;l.side!=="right"&&(f-=gd),Cg(t,o,f,l._offset+l._length*.1,gd,l._length*.8,"ns",""),Cg(t,o,f,l._offset+l._length*.9,gd,l._length*.1,"s",""),Cg(t,o,f,l._offset,gd,l._length*.1,"n","")}}});var i=r._hoverlayer.node();i.onmousemove=function(a){a.target=t._fullLayout._lasthover,MP.hover(t,a,r._hoversubplot)},i.onclick=function(a){a.target=t._fullLayout._lasthover,MP.click(t,a)},i.onmousedown=function(a){t._fullLayout._lasthover.onmousedown(a)},EP.updateFx(t)}};EP.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";Nht(t._draggers,r)}});var Mhe=ye((gar,She)=>{"use strict";var Ahe=qa();She.exports=function(t){for(var r=Ahe.layoutArrayContainers,n=Ahe.layoutArrayRegexes,i=t.split("[")[0],a,o,s=0;s{"use strict";var Uht=gy(),BN=_6(),qM=H1(),Vht=L6().sorterAsc,NN=qa();BM.containerArrayMatch=Mhe();var Ght=BM.isAddVal=function(t){return t==="add"||Uht(t)},Ehe=BM.isRemoveVal=function(t){return t===null||t==="remove"};BM.applyContainerArrayChanges=function(t,r,n,i,a){var o=r.astr,s=NN.getComponentMethod(o,"supplyLayoutDefaults"),l=NN.getComponentMethod(o,"draw"),u=NN.getComponentMethod(o,"drawOne"),c=i.replot||i.recalc||s===BN||l===BN,f=t.layout,h=t._fullLayout;if(n[""]){Object.keys(n).length>1&&qM.warn("Full array edits are incompatible with other edits",o);var d=n[""][""];if(Ehe(d))r.set(null);else if(Array.isArray(d))r.set(d);else return qM.warn("Unrecognized full array edit value",o,d),!0;return c?!1:(s(f,h),l(t),!0)}var v=Object.keys(n).map(Number).sort(Vht),_=r.get(),b=_||[],p=a(h,o).get(),C=[],E=-1,A=b.length,L,x,k,M,g,P,T,z;for(L=0;Lb.length-(T?0:1)){qM.warn("index out of range",o,k);continue}if(P!==void 0)g.length>1&&qM.warn("Insertion & removal are incompatible with edits to the same index.",o,k),Ehe(P)?C.push(k):T?(P==="add"&&(P={}),b.splice(k,0,P),p&&p.splice(k,0,{})):qM.warn("Unrecognized full object edit value",o,k,P),E===-1&&(E=k);else for(x=0;x=0;L--)b.splice(C[L],1),p&&p.splice(C[L],1);if(b.length?_||r.set(b):r.set(null),c)return!1;if(s(f,h),u!==BN){var O;if(E===-1)O=v;else{for(A=Math.max(b.length,A),O=[],L=0;L=E));L++)O.push(k);for(L=E;L{"use strict";var Ihe=Eo(),yar=RO(),Rhe=qa(),Ep=Dr(),NM=Mc(),Dhe=hf(),Fhe=Ca(),UM=Dhe.cleanId,Hht=Dhe.getFromTrace,UN=Rhe.traceIs;kg.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ep.log("Clearing previous rejected promises from queue."),e._promises=[]};kg.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(NM.subplotsRegistry.cartesian||{}).attrRegex,i=(NM.subplotsRegistry.polar||{}).attrRegex,a=(NM.subplotsRegistry.ternary||{}).attrRegex,o=(NM.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(e);for(t=0;t3?(b.x=1.02,b.xanchor="left"):b.x<-2&&(b.x=-.02,b.xanchor="right"),b.y>3?(b.y=1.02,b.yanchor="bottom"):b.y<-2&&(b.y=-.02,b.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),Fhe.clean(e),e.template&&e.template.layout&&kg.cleanLayout(e.template.layout),e};function Y3(e,t){var r=e[t],n=t.charAt(0);r&&r!=="paper"&&(e[t]=UM(r,n,!0))}kg.cleanData=function(e){for(var t=0;t0)return e.substr(0,t)}kg.hasParent=function(e,t){for(var r=Phe(t);r;){if(r in e)return!0;r=Phe(r)}return!1};var Xht=["x","y","z"];kg.clearAxisTypes=function(e,t,r){for(var n=0;n{"use strict";var PP=Oa(),Zht=Eo(),Yht=tq(),xa=Dr(),Ec=xa.nestedProperty,HN=g3(),np=yne(),L0=qa(),qP=_3(),es=Mc(),Nv=ho(),Kht=gB(),Jht=Rd(),VN=So(),$ht=Ca(),Qht=qN().initInteractions,edt=Wp(),tdt=zf().clearOutline,Uhe=ub().dfltConfig,kP=Che(),Ih=zhe(),Au=xM(),p_=mc(),rdt=hd().AX_NAME_PATTERN,GN=0,Ohe=5;function idt(e,t,r,n){var i;if(e=xa.getGraphDiv(e),HN.init(e),xa.isPlainObject(t)){var a=t;t=a.data,r=a.layout,n=a.config,i=a.frames}var o=HN.triggerHandler(e,"plotly_beforeplot",[t,r,n]);if(o===!1)return Promise.reject();!t&&!r&&!xa.isPlotDiv(e)&&xa.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function s(){if(i)return Gl.addFrames(e,i)}Ghe(e,n),r||(r={}),PP.select(e).classed("js-plotly-plot",!0),VN.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var l=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(Ih.cleanData(t),l?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||l)&&(e.layout=Ih.cleanLayout(r)),es.supplyDefaults(e);var u=e._fullLayout,c=u._has("cartesian");u._replotting=!0,(l||u._shouldCreateBgLayer)&&(Mdt(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),VN.initGradients(e),VN.initPatterns(e),l&&Nv.saveShowSpikeInitial(e);var f=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;f&&es.doCalcdata(e);for(var h=0;h=e.data.length||i<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(i,n+1)>-1||i>=0&&t.indexOf(-e.data.length+i)>-1||i<0&&t.indexOf(e.data.length+i)>-1)throw new Error("each index in "+r+" must be unique.")}}function Hhe(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),RP(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&RP(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function ldt(e,t,r){var n,i;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),n=0;n=0&&c=0&&c0&&typeof M.parts[T]!="string";)T--;var z=M.parts[T],O=M.parts[T-1]+"."+z,V=M.parts.slice(0,T).join("."),G=Ec(e.layout,V).get(),Z=Ec(n,V).get(),H=M.get();if(g!==void 0){p[k]=g,C[k]=z==="reverse"?g:ky(H);var N=qP.getLayoutValObject(n,M.parts);if(N&&N.impliedEdits&&g!==null)for(var j in N.impliedEdits)E(xa.relativeAttr(k,j),N.impliedEdits[j]);if(["width","height"].indexOf(k)!==-1)if(g){E("autosize",null);var re=k==="height"?"width":"height";E(re,n[re])}else n[k]=e._initialAutoSize[k];else if(k==="autosize")E("width",g?null:n.width),E("height",g?null:n.height);else if(O.match(Qhe))x(O),Ec(n,V+"._inputRange").set(null);else if(O.match(ede)){x(O),Ec(n,V+"._inputRange").set(null);var oe=Ec(n,V).get();oe._inputDomain&&(oe._input.domain=oe._inputDomain.slice())}else O.match(hdt)&&Ec(n,V+"._inputDomain").set(null);if(z==="type"){L=G;var _e=Z.type==="linear"&&g==="log",Me=Z.type==="log"&&g==="linear";if(_e||Me){if(!L||!L.range)E(V+".autorange",!0);else if(Z.autorange)_e&&(L.range=L.range[1]>L.range[0]?[1,2]:[2,1]);else{var ke=L.range[0],me=L.range[1];_e?(ke<=0&&me<=0&&E(V+".autorange",!0),ke<=0?ke=me/1e6:me<=0&&(me=ke/1e6),E(V+".range[0]",Math.log(ke)/Math.LN10),E(V+".range[1]",Math.log(me)/Math.LN10)):(E(V+".range[0]",Math.pow(10,ke)),E(V+".range[1]",Math.pow(10,me)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[M.parts[0]]&&M.parts[1]==="radialaxis"&&delete n[M.parts[0]]._subplot.viewInitial["radialaxis.range"],L0.getComponentMethod("annotations","convertCoords")(e,Z,g,E),L0.getComponentMethod("images","convertCoords")(e,Z,g,E)}else E(V+".autorange",!0),E(V+".range",null);Ec(n,V+"._inputRange").set(null)}else if(z.match(rdt)){var ie=Ec(n,k).get(),Se=(g||{}).type;(!Se||Se==="-")&&(Se="linear"),L0.getComponentMethod("annotations","convertCoords")(e,ie,Se,E),L0.getComponentMethod("images","convertCoords")(e,ie,Se,E)}var Le=kP.containerArrayMatch(k);if(Le){c=Le.array,f=Le.index;var Ae=Le.property,De=N||{editType:"calc"};f!==""&&Ae===""&&(kP.isAddVal(g)?C[k]=null:kP.isRemoveVal(g)?C[k]=(Ec(r,c).get()||[])[f]:xa.warn("unrecognized full object value",t)),p_.update(b,De),u[c]||(u[c]={});var Pe=u[c][f];Pe||(Pe=u[c][f]={}),Pe[Ae]=g,delete t[k]}else z==="reverse"?(G.range?G.range.reverse():(E(V+".autorange",!0),G.range=[1,0]),Z.autorange?b.calc=!0:b.plot=!0):(k==="dragmode"&&(g===!1&&H!==!1||g!==!1&&H===!1)||n._has("scatter-like")&&n._has("regl")&&k==="dragmode"&&(g==="lasso"||g==="select")&&!(H==="lasso"||H==="select")?b.plot=!0:N?p_.update(b,N):b.calc=!0,M.set(g))}}for(c in u){var ge=kP.applyContainerArrayChanges(e,a(r,c),u[c],b,a);ge||(b.plot=!0)}for(var Fe in A){L=Nv.getFromId(e,Fe);var ce=L&&L._constraintGroup;if(ce){b.calc=!0;for(var Ye in ce)A[Ye]||(Nv.getFromId(e,Ye)._constraintShrinkable=!0)}}(rde(e)||t.height||t.width)&&(b.plot=!0);var ct=n.shapes;for(f=0;f1;)if(n.pop(),r=Ec(t,n.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function pdt(e,t){for(var r=0;r=i.length?i[0]:i[u]:i}function s(u){return Array.isArray(a)?u>=a.length?a[0]:a[u]:a}function l(u,c){var f=0;return function(){if(u&&++f===c)return u()}}return new Promise(function(u,c){function f(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var z=n._frameQueue.pop();z.onInterrupt&&z.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(z){if(z.length!==0){for(var O=0;On._timeToNext&&v()};z()}var b=0;function p(z){return Array.isArray(i)?b>=i.length?z.transitionOpts=i[b]:z.transitionOpts=i[0]:z.transitionOpts=i,b++,z}var C,E,A=[],L=t==null,x=Array.isArray(t),k=!L&&!x&&xa.isPlainObject(t);if(k)A.push({type:"object",data:p(xa.extendFlat({},t))});else if(L||["string","number"].indexOf(typeof t)!==-1)for(C=0;C0&&PP)&&T.push(E);A=T}}A.length>0?h(A):(e.emit("plotly_animated"),u())})}function wdt(e,t,r){if(e=xa.getGraphDiv(e),t==null)return Promise.resolve();if(!xa.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,i,a,o,s=e._transitionData._frames,l=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var u=s.length+t.length*2,c=[],f={};for(n=t.length-1;n>=0;n--)if(xa.isPlainObject(t[n])){var h=t[n].name,d=(l[h]||f[h]||{}).name,v=t[n].name,_=l[d]||f[d];d&&v&&typeof v=="number"&&_&&GNM.index?-1:k.index=0;n--){if(i=c[n].frame,typeof i.name=="number"&&xa.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!i.name)for(;l[i.name="frame "+e._transitionData._counter++];);if(l[i.name]){for(a=0;a=0;r--)n=t[r],a.push({type:"delete",index:n}),o.unshift({type:"insert",index:n,value:i[n]});var s=es.modifyFrames,l=es.modifyFrames,u=[e,o],c=[e,a];return np&&np.add(e,s,u,l,c),es.modifyFrames(e,a)}function Adt(e){e=xa.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return es.cleanPlot([],{},r,t),es.purge(e),HN.purge(e),t._container&&t._container.remove(),delete e._context,e}function Sdt(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!xa.equalDomRects(r,t._lastBBox)){var n=t._invTransform=xa.inverseTransformMatrix(xa.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),t._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),t._lastBBox=r}}function Mdt(e){var t=PP.select(e),r=e._fullLayout;if(r._calcInverseTransform=Sdt,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var n={};PP.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),r._uid=xa.randstr(n)}r._paperdiv.selectAll(".main-svg").attr(edt.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var i=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=i.append("g").classed("imagelayer",!0),r._shapeLowerLayer=i.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var a=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=a.append("g").classed("imagelayer",!0),r._shapeUpperLayer=a.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Gl.animate=bdt;Gl.addFrames=wdt;Gl.deleteFrames=Tdt;Gl.addTraces=Yhe;Gl.deleteTraces=Khe;Gl.extendTraces=Xhe;Gl.moveTraces=jN;Gl.prependTraces=Zhe;Gl.newPlot=sdt;Gl._doPlot=idt;Gl.purge=Adt;Gl.react=ydt;Gl.redraw=odt;Gl.relayout=VM;Gl.restyle=DP;Gl.setPlotConfig=ndt;Gl.update=zP;Gl._guiRelayout=XN(VM);Gl._guiRestyle=XN(DP);Gl._guiUpdate=XN(zP);Gl._storeDirectGUIEdit=fdt});var Ly=ye(Mm=>{"use strict";var Edt=qa();Mm.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Mm.getRedrawFunc=function(e){return function(){Edt.getComponentMethod("colorbar","draw")(e)}};Mm.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Mm.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var ide=window.URL||window.webkitURL;Mm.createObjectURL=function(e){return ide.createObjectURL(e)};Mm.revokeObjectURL=function(e){return ide.revokeObjectURL(e)};Mm.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=Cdt(window.atob(e));return new window.Blob([r],{type:"image/"+t})};Mm.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function Cdt(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;i{"use strict";var YN=Oa(),war=Dr(),kdt=So(),Ldt=Ca(),Tar=Wp(),ZN=/"/g,HM="TOBESTRIPPED",Pdt=new RegExp('("'+HM+")|("+HM+'")',"g");function Idt(e){var t=YN.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,function(n){return n==="<"?"<":n==="&rt;"?">":n.indexOf("<")!==-1||n.indexOf(">")!==-1?"":t.html(n).text()});return t.remove(),r}function Rdt(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}nde.exports=function(t,r,n){var i=t._fullLayout,a=i._paper,o=i._toppaper,s=i.width,l=i.height,u;a.insert("rect",":first-child").call(kdt.setRect,0,0,s,l).call(Ldt.fill,i.paper_bgcolor);var c=i._basePlotModules||[];for(u=0;u{"use strict";var Ddt=Dr(),Fdt=vb().EventEmitter,jM=Ly();function zdt(e){var t=e.emitter||new Fdt,r=new Promise(function(n,i){var a=window.Image,o=e.svg,s=e.format||"png",l=e.canvas,u=e.scale||1,c=e.width||300,f=e.height||150,h=u*c,d=u*f,v=l.getContext("2d",{willReadFrequently:!0}),_=new a,b,p;s==="svg"||Ddt.isSafari()?p=jM.encodeSVG(o):(b=jM.createBlob(o,"svg"),p=jM.createObjectURL(b)),l.width=h,l.height=d,_.onload=function(){var C;switch(b=null,jM.revokeObjectURL(p),s!=="svg"&&v.drawImage(_,0,0,h,d),s){case"jpeg":C=l.toDataURL("image/jpeg");break;case"png":C=l.toDataURL("image/png");break;case"webp":C=l.toDataURL("image/webp");break;case"svg":C=p;break;default:var E="Image format is not jpeg, png, svg or webp.";if(i(new Error(E)),!e.promise)return t.emit("error",E)}n(C),e.promise||t.emit("success",C)},_.onerror=function(C){if(b=null,jM.revokeObjectURL(p),i(C),!e.promise)return t.emit("error",C)},_.src=p});return e.promise?r:t}ade.exports=zdt});var JN=ye((Mar,lde)=>{"use strict";var ode=Eo(),sde=NP(),Odt=Mc(),Em=Dr(),WM=Ly(),qdt=UP(),Bdt=VP(),Ndt=a6().version,KN={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Udt(e,t){t=t||{};var r,n,i,a;Em.isPlainObject(e)?(r=e.data||[],n=e.layout||{},i=e.config||{},a={}):(e=Em.getGraphDiv(e),r=Em.extendDeep([],e.data),n=Em.extendDeep({},e.layout),i=e._context,a=e._fullLayout||{});function o(x){return!(x in t)||Em.validate(t[x],KN[x])}if(!o("width")&&t.width!==null||!o("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Em.join2(KN.format.values,", "," or ")+".");var s={};function l(x,k){return Em.coerce(t,s,KN,x,k)}var u=l("format"),c=l("width"),f=l("height"),h=l("scale"),d=l("setBackground"),v=l("imageDataOnly"),_=document.createElement("div");_.style.position="absolute",_.style.left="-5000px",document.body.appendChild(_);var b=Em.extendFlat({},n);c?b.width=c:t.width===null&&ode(a.width)&&(b.width=a.width),f?b.height=f:t.height===null&&ode(a.height)&&(b.height=a.height);var p=Em.extendFlat({},i,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),C=WM.getRedrawFunc(_);function E(){return new Promise(function(x){setTimeout(x,WM.getDelay(_._fullLayout))})}function A(){return new Promise(function(x,k){var M=qdt(_,u,h),g=_._fullLayout.width,P=_._fullLayout.height;function T(){sde.purge(_),document.body.removeChild(_)}if(u==="full-json"){var z=Odt.graphJson(_,!1,"keepdata","object",!0,!0);return z.version=Ndt,z=JSON.stringify(z),T(),x(v?z:WM.encodeJSON(z))}if(T(),u==="svg")return x(v?M:WM.encodeSVG(M));var O=document.createElement("canvas");O.id=Em.randstr(),Bdt({format:u,width:g,height:P,scale:h,canvas:O,svg:M,promise:!0}).then(x).catch(k)})}function L(x){return v?x.replace(WM.IMAGE_URL_PREFIX,""):x}return new Promise(function(x,k){sde.newPlot(_,r,b,p).then(C).then(E).then(A).then(function(M){x(L(M))}).catch(function(M){k(M)})})}lde.exports=Udt});var fde=ye((Ear,cde)=>{"use strict";var P0=Dr(),Vdt=Mc(),Gdt=_3(),Hdt=ub().dfltConfig,Lg=P0.isPlainObject,Vb=Array.isArray,$N=P0.isArrayOrTypedArray;cde.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var n=Gdt.get(),i=[],a={_context:P0.extendFlat({},Hdt)},o,s;Vb(t)?(a.data=P0.extendDeep([],t),o=t):(a.data=[],o=[],i.push(md("array","data"))),Lg(r)?(a.layout=P0.extendDeep({},r),s=r):(a.layout={},s={},arguments.length>1&&i.push(md("object","layout"))),Vdt.supplyDefaults(a);for(var l=a._fullData,u=o.length,c=0;cf.length&&n.push(md("unused",i,u.concat(f.length)));var p=f.length,C=Array.isArray(b);C&&(p=Math.min(p,b.length));var E,A,L,x,k;if(h.dimensions===2)for(A=0;Af[A].length&&n.push(md("unused",i,u.concat(A,f[A].length)));var M=f[A].length;for(E=0;E<(C?Math.min(M,b[A].length):M);E++)L=C?b[A][E]:b,x=c[A][E],k=f[A][E],P0.validate(x,L)?k!==x&&k!==+x&&n.push(md("dynamic",i,u.concat(A,E),x,k)):n.push(md("value",i,u.concat(A,E),x))}else n.push(md("array",i,u.concat(A),c[A]));else for(A=0;A{"use strict";var Jdt=Dr(),HP=Ly();function $dt(e,t,r){var n=document.createElement("a"),i="download"in n,a=new Promise(function(o,s){var l,u;if(i)return l=HP.createBlob(e,r),u=HP.createObjectURL(l),n.href=u,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),HP.revokeObjectURL(u),l=null,o(t);if(Jdt.isSafari()){var c=r==="svg"?",":";base64,";return HP.octetStream(c+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}hde.exports=$dt});var QN=ye((Lar,pde)=>{"use strict";var vde=Dr(),Qdt=JN(),evt=dde(),kar=Ly();function tvt(e,t){var r;return vde.isPlainObject(e)||(r=vde.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(n,i){r&&r._snapshotInProgress&&i(new Error("Snapshotting already in progress.")),r&&(r._snapshotInProgress=!0);var a=Qdt(e,t),o=t.filename||e.fn||"newplot";o+="."+t.format.replace("-","."),a.then(function(s){return r&&(r._snapshotInProgress=!1),evt(s,o,t.format)}).then(function(s){n(s)}).catch(function(s){r&&(r._snapshotInProgress=!1),i(s)})})}pde.exports=tvt});var xde=ye(eU=>{"use strict";var Cp=Dr(),kp=Cp.isPlainObject,gde=_3(),mde=Mc(),rvt=Vl(),yde=pl(),_de=ub().dfltConfig;eU.makeTemplate=function(e){e=Cp.isPlainObject(e)?e:Cp.getGraphDiv(e),e=Cp.extendDeep({_context:_de},{data:e.data,layout:e.layout}),mde.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var n={data:{},layout:{}};t.forEach(function(d){var v={};XM(d,v,nvt.bind(null,d));var _=Cp.coerce(d,{},rvt,"type"),b=n.data[_];b||(b=n.data[_]=[]),b.push(v)}),XM(r,n.layout,ivt.bind(null,r)),delete n.layout.template;var i=r.template;if(kp(i)){var a=i.layout,o,s,l,u,c,f;kp(a)&&jP(a,n.layout);var h=i.data;if(kp(h)){for(s in n.data)if(l=h[s],Array.isArray(l)){for(c=n.data[s],f=c.length,u=l.length,o=0;op?o.push({code:"unused",traceType:d,templateCount:b,dataCount:p}):p>b&&o.push({code:"reused",traceType:d,templateCount:b,dataCount:p})}}function C(E,A){for(var L in E)if(L.charAt(0)!=="_"){var x=E[L],k=I0(E,L,A);kp(x)?(Array.isArray(E)&&x._template===!1&&x.templateitemname&&o.push({code:"missing",path:k,templateitemname:x.templateitemname}),C(x,k)):Array.isArray(x)&&avt(x)&&C(x,k)}}if(C({data:l,layout:s},""),o.length)return o.map(ovt)};function avt(e){for(var t=0;t{"use strict";var Qh=NP();ef._doPlot=Qh._doPlot;ef.newPlot=Qh.newPlot;ef.restyle=Qh.restyle;ef.relayout=Qh.relayout;ef.redraw=Qh.redraw;ef.update=Qh.update;ef._guiRestyle=Qh._guiRestyle;ef._guiRelayout=Qh._guiRelayout;ef._guiUpdate=Qh._guiUpdate;ef._storeDirectGUIEdit=Qh._storeDirectGUIEdit;ef.react=Qh.react;ef.extendTraces=Qh.extendTraces;ef.prependTraces=Qh.prependTraces;ef.addTraces=Qh.addTraces;ef.deleteTraces=Qh.deleteTraces;ef.moveTraces=Qh.moveTraces;ef.purge=Qh.purge;ef.addFrames=Qh.addFrames;ef.deleteFrames=Qh.deleteFrames;ef.animate=Qh.animate;ef.setPlotConfig=Qh.setPlotConfig;var svt=OS().getGraphDiv,lvt=nP().eraseActiveShape;ef.deleteActiveShape=function(e){return lvt(svt(e))};ef.toImage=JN();ef.validate=fde();ef.downloadImage=QN();var bde=xde();ef.makeTemplate=bde.makeTemplate;ef.validateTemplate=bde.validateTemplate});var K3=ye((Rar,Tde)=>{"use strict";var tU=Dr(),uvt=qa();Tde.exports=function(t,r,n,i){var a=i("x"),o=i("y"),s,l=uvt.getComponentMethod("calendars","handleTraceDefaults");if(l(t,r,["x","y"],n),a){var u=tU.minRowLength(a);o?s=Math.min(u,tU.minRowLength(o)):(s=u,i("y0"),i("dy"))}else{if(!o)return 0;s=tU.minRowLength(o),i("x0"),i("dx")}return r._length=s,s}});var Pg=ye((Dar,Mde)=>{"use strict";var Ade=Dr().dateTick0,cvt=hs(),fvt=cvt.ONEWEEK;function Sde(e,t){return e%fvt===0?Ade(t,1):Ade(t,0)}Mde.exports=function(t,r,n,i,a){if(a||(a={x:!0,y:!0}),a.x){var o=i("xperiod");o&&(i("xperiod0",Sde(o,r.xcalendar)),i("xperiodalignment"))}if(a.y){var s=i("yperiod");s&&(i("yperiod0",Sde(s,r.ycalendar)),i("yperiodalignment"))}}});var kde=ye((Far,Cde)=>{"use strict";var Ede=["orientation","groupnorm","stackgaps"];Cde.exports=function(t,r,n,i){var a=n._scatterStackOpts,o=i("stackgroup");if(o){var s=r.xaxis+r.yaxis,l=a[s];l||(l=a[s]={});var u=l[o],c=!1;u?u.traces.push(r):(u=l[o]={traceIndices:[],traces:[r]},c=!0);for(var f={orientation:r.x&&!r.y?"h":"v"},h=0;h{"use strict";var Lde=Ca(),Pde=Dv().hasColorscale,Ide=Jh(),hvt=Ru();Rde.exports=function(t,r,n,i,a,o){var s=hvt.isBubble(t),l=(t.line||{}).color,u;if(o=o||{},l&&(n=l),a("marker.symbol"),a("marker.opacity",s?.7:1),a("marker.size"),o.noAngle||(a("marker.angle"),o.noAngleRef||a("marker.angleref"),o.noStandOff||a("marker.standoff")),a("marker.color",n),Pde(t,"marker")&&Ide(t,r,i,a,{prefix:"marker.",cLetter:"c"}),o.noSelect||(a("selected.marker.color"),a("unselected.marker.color"),a("selected.marker.size"),a("unselected.marker.size")),o.noLine||(l&&!Array.isArray(l)&&r.marker.color!==l?u=l:s?u=Lde.background:u=Lde.defaultLine,a("marker.line.color",u),Pde(t,"marker.line")&&Ide(t,r,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width",s?1:0)),s&&(a("marker.sizeref"),a("marker.sizemin"),a("marker.sizemode")),o.gradient){var c=a("marker.gradient.type");c!=="none"&&a("marker.gradient.color")}}});var R0=ye((Oar,Dde)=>{"use strict";var dvt=Dr().isArrayOrTypedArray,vvt=Dv().hasColorscale,pvt=Jh();Dde.exports=function(t,r,n,i,a,o){o||(o={});var s=(t.marker||{}).color;if(s&&s._inputArray&&(s=s._inputArray),a("line.color",n),vvt(t,"line"))pvt(t,r,i,a,{prefix:"line.",cLetter:"c"});else{var l=(dvt(s)?!1:s)||n;a("line.color",l)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var J3=ye((qar,Fde)=>{"use strict";Fde.exports=function(t,r,n){var i=n("line.shape");i==="spline"&&n("line.smoothing")}});var D0=ye((Bar,zde)=>{"use strict";var gvt=Dr();zde.exports=function(e,t,r,n,i){i=i||{},n("textposition"),gvt.coerceFont(n,"textfont",i.font||r.font,i),i.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var Ig=ye((Nar,qde)=>{"use strict";var XP=Ca(),Ode=Dr().isArrayOrTypedArray;function mvt(e){for(var t=XP.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var Bde=Dr(),yvt=qa(),_vt=pf(),xvt=Sm(),$3=Ru(),bvt=K3(),wvt=Pg(),Tvt=kde(),Avt=$p(),Svt=R0(),Nde=J3(),Mvt=D0(),Evt=Ig(),Cvt=Dr().coercePattern;Ude.exports=function(t,r,n,i){function a(d,v){return Bde.coerce(t,r,_vt,d,v)}var o=bvt(t,r,i,a);if(o||(r.visible=!1),!!r.visible){wvt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=Tvt(t,r,i,a);i.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var l=!s&&o{"use strict";var kvt=Bb().getAxisGroup;Gde.exports=function(t,r,n,i,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],l=kvt(n,s)+o,u=n._alignmentOpts||{},c=i("alignmentgroup"),f=u[l];f||(f=u[l]={});var h=f[c];h?h.traces.push(r):h=f[c]={traces:[r],alignmentIndex:Object.keys(f).length,offsetGroups:{}};var d=i("offsetgroup")||"",v=h.offsetGroups,_=v[d];r._offsetIndex=0,(a!=="group"||d)&&(_||(_=v[d]={offsetIndex:Object.keys(v).length}),r._offsetIndex=_.offsetIndex)}});var rU=ye((Gar,Hde)=>{"use strict";var Lvt=Dr(),Pvt=Gb(),Ivt=pf();Hde.exports=function(t,r){var n,i,a,o=r.scattermode;function s(h){return Lvt.coerce(i._input,i,Ivt,h)}if(r.scattermode==="group")for(a=0;a=0;c--){var f=t[c];if(f.type==="scatter"&&f.xaxis===l.xaxis&&f.yaxis===l.yaxis){f.opacity=void 0;break}}}}}});var Wde=ye((Har,jde)=>{"use strict";var Rvt=Dr(),Dvt=H6();jde.exports=function(e,t){function r(i,a){return Rvt.coerce(e,t,Dvt,i,a)}var n=t.barmode==="group";t.scattermode==="group"&&r("scattergap",n?t.bargap:.2)}});var Rg=ye((jar,Zde)=>{"use strict";var Fvt=Eo(),Xde=Dr(),zvt=Xde.dateTime2ms,ZP=Xde.incrementMonth,Ovt=hs(),qvt=Ovt.ONEAVGMONTH;Zde.exports=function(t,r,n,i){if(r.type!=="date")return{vals:i};var a=t[n+"periodalignment"];if(!a)return{vals:i};var o=t[n+"period"],s;if(Fvt(o)){if(o=+o,o<=0)return{vals:i}}else if(typeof o=="string"&&o.charAt(0)==="M"){var l=+o.substring(1);if(l>0&&Math.round(l)===l)s=l;else return{vals:i}}for(var u=r.calendar,c=a==="start",f=a==="end",h=t[n+"period0"],d=zvt(h,u)||0,v=[],_=[],b=[],p=i.length,C=0;CE;)x=ZP(x,-s,u);for(;x<=E;)x=ZP(x,s,u);L=ZP(x,-s,u)}else{for(A=Math.round((E-d)/o),x=d+A*o;x>E;)x-=o;for(;x<=E;)x+=o;L=x-o}v[C]=c?L:f?x:(L+x)/2,_[C]=L,b[C]=x}return{vals:v,starts:_,ends:b}}});var F0=ye((War,Kde)=>{"use strict";var iU=Dv().hasColorscale,nU=Fv(),Yde=Ru();Kde.exports=function(t,r){Yde.hasLines(r)&&iU(r,"line")&&nU(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),Yde.hasMarkers(r)&&(iU(r,"marker")&&nU(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),iU(r,"marker.line")&&nU(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Cm=ye((Xar,Jde)=>{"use strict";var Yf=Dr();Jde.exports=function(t,r){for(var n=0;n{"use strict";var $de=Dr();Qde.exports=function(t,r){$de.isArrayOrTypedArray(r.selectedpoints)&&$de.tagSelected(t,r)}});var O0=ye((Yar,ove)=>{"use strict";var eve=Eo(),oU=Dr(),ZM=ho(),tve=Rg(),aU=hs().BADNUM,sU=Ru(),Bvt=F0(),Nvt=Cm(),Uvt=z0();function Vvt(e,t){var r=e._fullLayout,n=t._xA=ZM.getFromId(e,t.xaxis||"x","x"),i=t._yA=ZM.getFromId(e,t.yaxis||"y","y"),a=n.makeCalcdata(t,"x"),o=i.makeCalcdata(t,"y"),s=tve(t,n,"x",a),l=tve(t,i,"y",o),u=s.vals,c=l.vals,f=t._length,h=new Array(f),d=t.ids,v=lU(t,r,n,i),_=!1,b,p,C,E,A,L;nve(r,t);var x="x",k="y",M;if(v)oU.pushUnique(v.traceIndices,t.index),b=v.orientation==="v",b?(k="s",M="x"):(x="s",M="y"),A=v.stackgaps==="interpolate";else{var g=ive(t,f);rve(e,t,n,i,u,c,g)}var P=!!t.xperiodalignment,T=!!t.yperiodalignment;for(p=0;pp&&h[E].gap;)E--;for(L=h[E].s,C=h.length-1;C>E;C--)h[C].s=L;for(;p{"use strict";sve.exports=YP;var Gvt=Dr().distinctVals;function YP(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,n=t.posAxis._id.charAt(0),i=[],a=0;a{"use strict";var q0=Eo(),g_=Dr().isArrayOrTypedArray,Q3=hs().BADNUM,Hvt=qa(),YM=ho(),jvt=Bb().getAxisGroup,KP=lve();function Wvt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;ul+o||!q0(s))}for(var c=0;c{"use strict";var dve=O0(),vve=Hb().setGroupPositions;function npt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;ug[c]&&c{"use strict";var opt=So(),xve=hs(),KM=xve.BADNUM,bve=xve.LOG_CLIP,mve=bve+.5,yve=bve-.5,JP=Dr(),spt=JP.segmentsIntersect,_ve=JP.constrain,vU=Sm();wve.exports=function(t,r){var n=r.trace||{},i=r.xaxis,a=r.yaxis,o=i.type==="log",s=a.type==="log",l=i._length,u=a._length,c=r.backoff,f=n.marker,h=r.connectGaps,d=r.baseTolerance,v=r.shape,_=v==="linear",b=n.fill&&n.fill!=="none",p=[],C=vU.minTolerance,E=t.length,A=new Array(E),L=0,x,k,M,g,P,T,z,O,V,G,Z,H,N,j,re,oe;function _e(dt){var Ge=t[dt];if(!Ge)return!1;var Je=r.linearized?i.l2p(Ge.x):i.c2p(Ge.x),je=r.linearized?a.l2p(Ge.y):a.c2p(Ge.y);if(Je===KM){if(o&&(Je=i.c2p(Ge.x,!0)),Je===KM)return!1;s&&je===KM&&(Je*=Math.abs(i._m*u*(i._m>0?mve:yve)/(a._m*l*(a._m>0?mve:yve)))),Je*=1e3}if(je===KM){if(s&&(je=a.c2p(Ge.y,!0)),je===KM)return!1;je*=1e3}return[Je,je]}function Me(dt,Ge,Je,je){var $e=Je-dt,wt=je-Ge,Ie=.5-dt,xe=.5-Ge,Ce=$e*$e+wt*wt,vt=$e*Ie+wt*xe;if(vt>0&&vt1||Math.abs(Ie.y-Je[0][1])>1)&&(Ie=[Ie.x,Ie.y],je&&Se(Ie,dt)De||dt[1]ge)return[_ve(dt[0],Ae,De),_ve(dt[1],Pe,ge)]}function Nt(dt,Ge){if(dt[0]===Ge[0]&&(dt[0]===Ae||dt[0]===De)||dt[1]===Ge[1]&&(dt[1]===Pe||dt[1]===ge))return!0}function $t(dt,Ge){var Je=[],je=Gt(dt),$e=Gt(Ge);return je&&$e&&Nt(je,$e)||(je&&Je.push(je),$e&&Je.push($e)),Je}function sr(dt,Ge,Je){return function(je,$e){var wt=Gt(je),Ie=Gt($e),xe=[];if(wt&&Ie&&Nt(wt,Ie))return xe;wt&&xe.push(wt),Ie&&xe.push(Ie);var Ce=2*JP.constrain((je[dt]+$e[dt])/2,Ge,Je)-((wt||je)[dt]+(Ie||$e)[dt]);if(Ce){var vt;wt&&Ie?vt=Ce>0==wt[dt]>Ie[dt]?wt:Ie:vt=wt||Ie,vt[dt]+=Ce}return xe}}var wr;v==="linear"||v==="spline"?wr=lt:v==="hv"||v==="vh"?wr=$t:v==="hvh"?wr=sr(0,Ae,De):v==="vhv"&&(wr=sr(1,Pe,ge));function ur(dt,Ge){var Je=Ge[0]-dt[0],je=(Ge[1]-dt[1])/Je,$e=(dt[1]*Ge[0]-Ge[1]*dt[0])/Je;return $e>0?[je>0?Ae:De,ge]:[je>0?De:Ae,Pe]}function Qe(dt){var Ge=dt[0],Je=dt[1],je=Ge===A[L-1][0],$e=Je===A[L-1][1];if(!(je&&$e))if(L>1){var wt=Ge===A[L-2][0],Ie=Je===A[L-2][1];je&&(Ge===Ae||Ge===De)&&wt?Ie?L--:A[L-1]=dt:$e&&(Je===Pe||Je===ge)&&Ie?wt?L--:A[L-1]=dt:A[L++]=dt}else A[L++]=dt}function Et(dt){A[L-1][0]!==dt[0]&&A[L-1][1]!==dt[1]&&Qe([ct,pt]),Qe(dt),Wt=null,ct=pt=0}var er=JP.isArrayOrTypedArray(f);function Ut(dt){if(dt&&c&&(dt.i=x,dt.d=t,dt.trace=n,dt.marker=er?f[dt.i]:f,dt.backoff=c),ke=dt[0]/l,me=dt[1]/u,ce=dt[0]De?De:0,Ye=dt[1]ge?ge:0,ce||Ye){if(!L)A[L++]=[ce||dt[0],Ye||dt[1]];else if(Wt){var Ge=wr(Wt,dt);Ge.length>1&&(Et(Ge[0]),A[L++]=Ge[1])}else st=wr(A[L-1],dt)[0],A[L++]=st;var Je=A[L-1];ce&&Ye&&(Je[0]!==ce||Je[1]!==Ye)?(Wt&&(ct!==ce&&pt!==Ye?Qe(ct&&pt?ur(Wt,dt):[ct||ce,pt||Ye]):ct&&pt&&Qe([ct,pt])),Qe([ce,Ye])):ct-ce&&pt-Ye&&Qe([ce||ct,Ye||pt]),Wt=dt,ct=ce,pt=Ye}else Wt&&Et(wr(Wt,dt)[0]),A[L++]=dt}for(x=0;xie(T,Ft))break;M=T,N=V[0]*O[0]+V[1]*O[1],N>Z?(Z=N,g=T,z=!1):N=t.length||!T)break;Ut(T),k=T}}Wt&&Qe([ct||Wt[0],pt||Wt[1]]),p.push(A.slice(0,L))}var bt=v.slice(v.length-1);if(c&&bt!=="h"&&bt!=="v"){for(var yt=!1,Yt=-1,lr=[],Tr=0;Tr{"use strict";var Tve={tonextx:1,tonexty:1,tonext:1};Ave.exports=function(t,r,n){var i,a,o,s,l,u={},c=!1,f=-1,h=0,d=-1;for(a=0;a=0?l=d:(l=d=h,h++),l{"use strict";var Dg=Oa(),lpt=qa(),JM=Dr(),tT=JM.ensureSingle,Mve=JM.identity,Kf=So(),rT=Ru(),upt=pU(),cpt=gU(),$P=MM().tester;Eve.exports=function(t,r,n,i,a,o){var s,l,u=!a,c=!!a&&a.duration>0,f=cpt(t,r,n);if(s=i.selectAll("g.trace").data(f,function(d){return d[0].trace.uid}),s.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),s.order(),fpt(t,s,r),c){o&&(l=o());var h=Dg.transition().duration(a.duration).ease(a.easing).each("end",function(){l&&l()}).each("interrupt",function(){l&&l()});h.each(function(){i.selectAll("g.trace").each(function(d,v){Sve(t,v,r,d,f,this,a)})})}else s.each(function(d,v){Sve(t,v,r,d,f,this,a)});u&&s.exit().remove(),i.selectAll("path:not([d])").remove()};function fpt(e,t,r){t.each(function(n){var i=tT(Dg.select(this),"g","fills");Kf.setClipUrl(i,r.layerClipId,e);var a=n[0].trace,o=[];a._ownfill&&o.push("_ownFill"),a._nexttrace&&o.push("_nextFill");var s=i.selectAll("g").data(o,Mve);s.enter().append("g"),s.exit().each(function(l){a[l]=null}).remove(),s.order().each(function(l){a[l]=tT(Dg.select(this),"path","js-fill")})})}function Sve(e,t,r,n,i,a,o){var s=e._context.staticPlot,l;hpt(e,t,r,n,i);var u=!!o&&o.duration>0;function c(sr){return u?sr.transition():sr}var f=r.xaxis,h=r.yaxis,d=n[0].trace,v=d.line,_=Dg.select(a),b=tT(_,"g","errorbars"),p=tT(_,"g","lines"),C=tT(_,"g","points"),E=tT(_,"g","text");if(lpt.getComponentMethod("errorbars","plot")(e,b,r,o),d.visible!==!0)return;c(_).style("opacity",d.opacity);var A,L,x=d.fill.charAt(d.fill.length-1);x!=="x"&&x!=="y"&&(x="");var k,M;x==="y"?(k=1,M=h.c2p(0,!0)):x==="x"&&(k=0,M=f.c2p(0,!0)),n[0][r.isRangePlot?"nodeRangePlot3":"node3"]=_;var g="",P=[],T=d._prevtrace,z=null,O=null;T&&(g=T._prevRevpath||"",L=T._nextFill,P=T._ownPolygons,z=T._fillsegments,O=T._fillElement);var V,G,Z="",H="",N,j,re,oe,_e,Me,ke=[];d._polygons=[];var me=[],ie=[],Se=JM.noop;if(A=d._ownFill,rT.hasLines(d)||d.fill!=="none"){L&&L.datum(n),["hv","vh","hvh","vhv"].indexOf(v.shape)!==-1?(N=Kf.steps(v.shape),j=Kf.steps(v.shape.split("").reverse().join(""))):v.shape==="spline"?N=j=function(sr){var wr=sr[sr.length-1];return sr.length>1&&sr[0][0]===wr[0]&&sr[0][1]===wr[1]?Kf.smoothclosed(sr.slice(1),v.smoothing):Kf.smoothopen(sr,v.smoothing)}:N=j=function(sr){return"M"+sr.join("L")},re=function(sr){return j(sr.reverse())},ie=upt(n,{xaxis:f,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(v.width||1,3)/4,shape:v.shape,backoff:v.backoff,simplify:v.simplify,fill:d.fill}),me=new Array(ie.length);var Le=0;for(l=0;l=s[0]&&_.x<=s[1]&&_.y>=l[0]&&_.y<=l[1]}),h=Math.ceil(f.length/c),d=0;i.forEach(function(_,b){var p=_[0].trace;rT.hasMarkers(p)&&p.marker.maxdisplayed>0&&b{"use strict";Cve.exports={container:"marker",min:"cmin",max:"cmax"}});var eI=ye((ior,kve)=>{"use strict";var QP=ho();kve.exports=function(t,r,n){var i={},a={_fullLayout:n},o=QP.getFromTrace(a,r,"x"),s=QP.getFromTrace(a,r,"y"),l=t.orig_x;l===void 0&&(l=t.x);var u=t.orig_y;return u===void 0&&(u=t.y),i.xLabel=QP.tickText(o,o.c2l(l),!0).text,i.yLabel=QP.tickText(s,s.c2l(u),!0).text,i}});var ap=ye((nor,Lve)=>{"use strict";var mU=Oa(),nT=So(),dpt=qa();function vpt(e){var t=mU.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var n=mU.select(this),i=r.trace||r[0].trace;yU(n,i,e)}),t.selectAll("g.text").each(function(r){var n=mU.select(this),i=r.trace||r[0].trace;_U(n,i,e)}),t.selectAll("g.trace path.js-line").call(nT.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(nT.fillGroupStyle,e,!1),dpt.getComponentMethod("errorbars","style")(t)}function yU(e,t,r){nT.pointStyle(e.selectAll("path.point"),t,r)}function _U(e,t,r){nT.textPointStyle(e.selectAll("text"),t,r)}function ppt(e,t,r){var n=t[0].trace;n.selectedpoints?(nT.selectedPointStyle(r.selectAll("path.point"),n),nT.selectedTextStyle(r.selectAll("text"),n)):(yU(r,n,e),_U(r,n,e))}Lve.exports={style:vpt,stylePoints:yU,styleText:_U,styleOnSelect:ppt}});var oT=ye((aor,Pve)=>{"use strict";var aT=Ca(),gpt=Ru();Pve.exports=function(t,r){var n,i;if(t.mode==="lines")return n=t.line.color,n&&aT.opacity(n)?n:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var a=r.mcc||(t.marker||{}).color,o=r.mlcc||((t.marker||{}).line||{}).color;return i=a&&aT.opacity(a)?a:o&&aT.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",i?aT.opacity(i)<.3?aT.addOpacity(i,.3):i:(n=(t.line||{}).color,n&&aT.opacity(n)&&gpt.hasLines(t)&&t.line.width?n:t.fillcolor)}});var sT=ye((oor,Rve)=>{"use strict";var tI=Dr(),Ive=vf(),mpt=qa(),ypt=oT(),xU=Ca(),_pt=tI.fillText;Rve.exports=function(t,r,n,i){var a=t.cd,o=a[0].trace,s=t.xa,l=t.ya,u=s.c2p(r),c=l.c2p(n),f=[u,c],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,v=!!o.xperiodalignment,_=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var b=function(H){if(v){var N=s.c2p(H.xStart),j=s.c2p(H.xEnd);return u>=Math.min(N,j)&&u<=Math.max(N,j)?0:1/0}var re=Math.max(3,H.mrc||0),oe=1-1/re,_e=Math.abs(s.c2p(H.x)-u);return _e=Math.min(N,j)&&c<=Math.max(N,j)?0:1/0}var re=Math.max(3,H.mrc||0),oe=1-1/re,_e=Math.abs(l.c2p(H.y)-c);return _eke!=ge>=ke&&(Ae=Se[ie-1][0],De=Se[ie][0],ge-Pe&&(Le=Ae+(De-Ae)*(ke-Pe)/(ge-Pe),re=Math.min(re,Le),oe=Math.max(oe,Le)));return re=Math.max(re,0),oe=Math.min(oe,s._length),{x0:re,x1:oe,y0:ke,y1:ke}}if(h.indexOf("fills")!==-1&&o._fillElement){var V=z(o._fillElement)&&!z(o._fillExclusionElement);if(V){var G=O(o._polygons);G===null&&(G={x0:f[0],x1:f[0],y0:f[1],y1:f[1]});var Z=xU.defaultLine;return xU.opacity(o.fillcolor)?Z=o.fillcolor:xU.opacity((o.line||{}).color)&&(Z=o.line.color),tI.extendFlat(t,{distance:t.maxHoverDistance,x0:G.x0,x1:G.x1,y0:G.y0,y1:G.y1,color:Z,hovertemplate:!1}),delete t.index,o.text&&!tI.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var lT=ye((sor,Fve)=>{"use strict";var Dve=Ru();Fve.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l,u,c,f,h=!Dve.hasMarkers(s)&&!Dve.hasText(s);if(h)return[];if(r===!1)for(l=0;l{"use strict";zve.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var wU=ye((uor,Nve)=>{"use strict";var $M=qa().traceIs,bU=L3();Nve.exports=function(t,r,n,i){n("autotypenumbers",i.autotypenumbersDflt);var a=n("type",(i.splomStash||{}).type);a==="-"&&(xpt(r,i.data),r.type==="-"?r.type="linear":t.type=r.type)};function xpt(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i;r.indexOf("scene")!==-1&&(r=n);var a=bpt(t,r,n);if(a){if(a.type==="histogram"&&n==={v:"y",h:"x"}[a.orientation||"v"]){e.type="linear";return}var o=n+"calendar",s=a[o],l={noMultiCategory:!$M(a,"cartesian")||$M(a,"noMultiCategory")};if(a.type==="box"&&a._hasPreCompStats&&n==={h:"x",v:"y"}[a.orientation||"v"]&&(l.noMultiCategory=!0),l.autotypenumbers=e.autotypenumbers,Bve(a,n)){var u=qve(a),c=[];for(i=0;i0&&(i["_"+r+"axes"]||{})[t])return i;if((i[r+"axis"]||r)===t){if(Bve(i,r))return i;if((i[r]||[]).length||i[r+"0"])return i}}}function qve(e){return{v:"x",h:"y"}[e.orientation||"v"]}function Bve(e,t){var r=qve(e),n=$M(e,"box-violin"),i=$M(e._fullInput||{},"candlestick");return n&&!i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var rI=ye((cor,Uve)=>{"use strict";var wpt=vv().isTypedArraySpec;function Tpt(e,t){var r=t.dataAttr||e._id.charAt(0),n={},i,a,o;if(t.axData)i=t.axData;else for(i=[],a=0;a0||wpt(a),s;o&&(s="array");var l=n("categoryorder",s),u;l==="array"&&(u=n("categoryarray")),!o&&l==="array"&&(l=r.categoryorder="trace"),l==="trace"?r._initialCategories=[]:l==="array"?r._initialCategories=u.slice():(u=Tpt(r,i).sort(),l==="category ascending"?r._initialCategories=u:l==="category descending"&&(r._initialCategories=u.reverse()))}}});var QM=ye((hor,Gve)=>{"use strict";var Vve=cd().mix,Apt=Eh(),Spt=Dr();Gve.exports=function(t,r,n,i){i=i||{};var a=i.dfltColor;function o(M,g){return Spt.coerce2(t,r,i.attributes,M,g)}var s=o("linecolor",a),l=o("linewidth"),u=n("showline",i.showLine||!!s||!!l);u||(delete r.linecolor,delete r.linewidth);var c=Vve(a,i.bgColor,i.blend||Apt.lightFraction).toRgbString(),f=o("gridcolor",c),h=o("gridwidth"),d=o("griddash"),v=n("showgrid",i.showGrid||!!f||!!h||!!d);if(v||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),i.hasMinor){var _=Vve(r.gridcolor,i.bgColor,67).toRgbString(),b=o("minor.gridcolor",_),p=o("minor.gridwidth",r.gridwidth||1),C=o("minor.griddash",r.griddash||"solid"),E=n("minor.showgrid",!!b||!!p||!!C);E||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!i.noZeroLine){var A=o("zerolinelayer"),L=o("zerolinecolor",a),x=o("zerolinewidth"),k=n("zeroline",i.showGrid||!!L||!!x);k||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var t4=ye((dor,Yve)=>{"use strict";var Hve=Eo(),Mpt=qa(),e4=Dr(),Ept=pl(),Cpt=Yd(),TU=Rd(),jve=xb(),Wve=T3(),kpt=t_(),Lpt=r_(),Ppt=rI(),Ipt=QM(),Rpt=gB(),Xve=ym(),iI=hd().WEEKDAY_PATTERN,Dpt=hd().HOUR_PATTERN;Yve.exports=function(t,r,n,i,a){var o=i.letter,s=i.font||{},l=i.splomStash||{},u=n("visible",!i.visibleDflt),c=r._template||{},f=r.type||c.type||"-",h;if(f==="date"){var d=Mpt.getComponentMethod("calendars","handleDefaults");d(t,r,"calendar",i.calendar),i.noTicklabelmode||(h=n("ticklabelmode"))}!i.noTicklabelindex&&(f==="date"||f==="linear")&&n("ticklabelindex");var v="";(!i.noTicklabelposition||f==="multicategory")&&(v=e4.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),i.noTicklabeloverflow||n("ticklabeloverflow",v.indexOf("inside")!==-1?"hide past domain":f==="category"||f==="multicategory"?"allow":"hide past div"),Xve(r,a),Rpt(t,r,n,i),Ppt(t,r,n,i),i.noHover||(f!=="category"&&n("hoverformat"),i.noUnifiedhovertitle||n("unifiedhovertitle.text"));var _=n("color"),b=_!==TU.color.dflt?_:s.color,p=l.label||a._dfltTitle[o];if(Lpt(t,r,n,f,i),!u)return r;n("title.text",p),e4.coerceFont(n,"title.font",s,{overrideDflt:{size:e4.bigFont(s.size),color:b}}),jve(t,r,n,f);var C=i.hasMinor;if(C&&(Ept.newContainer(r,"minor"),jve(t,r,n,f,{isMinor:!0})),kpt(t,r,n,f,i),Wve(t,r,n,i),C){var E=i.isMinor;i.isMinor=!0,Wve(t,r,n,i),i.isMinor=E}Ipt(t,r,n,{dfltColor:_,bgColor:i.bgColor,showGrid:i.showGrid,hasMinor:C,attributes:TU}),C&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&n("mirror");var A=f==="multicategory";if(!i.noTickson&&(f==="category"||A)&&(r.ticks||r.showgrid)&&(A?(n("tickson","boundaries"),delete r.ticklabelposition):n("tickson")),A){var L=n("showdividers");L&&(n("dividercolor"),n("dividerwidth"))}if(f==="date")if(Cpt(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Fpt}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var x=0;x=2){var o="",s,l;if(a.length===2){for(s=0;s<2;s++)if(l=Zve(a[s]),l){o=iI;break}}var u=n("pattern",o);if(u===iI)for(s=0;s<2;s++)l=Zve(a[s]),l&&(t.bounds[s]=a[s]=l-1);if(u)for(s=0;s<2;s++)switch(l=a[s],u){case iI:if(!Hve(l)){t.enabled=!1;return}if(l=+l,l!==Math.floor(l)||l<0||l>=7){t.enabled=!1;return}t.bounds[s]=a[s]=l;break;case Dpt:if(!Hve(l)){t.enabled=!1;return}if(l=+l,l<0||l>24){t.enabled=!1;return}t.bounds[s]=a[s]=l;break}if(r.autorange===!1){var c=r.range;if(c[0]c[1]){t.enabled=!1;return}}else if(a[0]>c[0]&&a[1]{"use strict";var Opt=Eo(),nI=Dr();Kve.exports=function(t,r,n,i){var a=i.counterAxes||[],o=i.overlayableAxes||[],s=i.letter,l=i.grid,u=i.overlayingDomain,c,f,h,d,v,_;l&&(f=l._domains[s][l._axisMap[r._id]],c=l._anchors[r._id],f&&(h=l[s+"side"].split(" ")[0],d=l.domain[s][h==="right"||h==="top"?1:0])),f=f||[0,1],c=c||(Opt(t.position)?"free":a[0]||"free"),h=h||(s==="x"?"bottom":"left"),d=d||0,v=0,_=!1;var b=nI.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(a),dflt:c}},"anchor"),p=nI.coerce(t,r,{side:{valType:"enumerated",values:s==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(b==="free"){if(s==="y"){var C=n("autoshift");C&&(d=p==="left"?u[0]:u[1],_=r.automargin?r.automargin:!0,v=p==="left"?-3:3),n("shift",v)}n("position",d)}n("automargin",_);var E=!1;if(o.length&&(E=nI.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!E){var A=n("domain",f);A[0]>A[1]-1/4096&&(r.domain=f),nI.noneOrAll(t.domain,r.domain,f),r.tickmode==="sync"&&(r.tickmode="auto")}return n("layer"),r}});var ape=ye((por,npe)=>{"use strict";var jb=Dr(),Jve=Ca(),qpt=rp().isUnifiedHover,Bpt=UB(),$ve=pl(),Npt=s3(),Qve=Rd(),Upt=wU(),epe=t4(),Vpt=Bb(),tpe=aI(),SU=hf(),km=SU.id2name,rpe=SU.name2id,Gpt=hd().AX_ID_PATTERN,ipe=qa(),oI=ipe.traceIs,AU=ipe.getComponentMethod;function sI(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}npe.exports=function(t,r,n){var i=r.autotypenumbers,a={},o={},s={},l={},u={},c={},f={},h={},d={},v={},_,b;for(_=0;_{"use strict";var Hpt=Oa(),ope=qa(),lI=Dr(),Qp=So(),uI=ho();spe.exports=function(t,r,n,i){var a=t._fullLayout;if(r.length===0){uI.redrawComponents(t);return}function o(b){var p=b.xaxis,C=b.yaxis;a._defs.select("#"+b.clipId+"> rect").call(Qp.setTranslate,0,0).call(Qp.setScale,1,1),b.plot.call(Qp.setTranslate,p._offset,C._offset).call(Qp.setScale,1,1);var E=b.plot.selectAll(".scatterlayer .trace");E.selectAll(".point").call(Qp.setPointGroupScale,1,1),E.selectAll(".textpoint").call(Qp.setTextPointsScale,1,1),E.call(Qp.hideOutsideRangePoints,b)}function s(b,p){var C=b.plotinfo,E=C.xaxis,A=C.yaxis,L=E._length,x=A._length,k=!!b.xr1,M=!!b.yr1,g=[];if(k){var P=lI.simpleMap(b.xr0,E.r2l),T=lI.simpleMap(b.xr1,E.r2l),z=P[1]-P[0],O=T[1]-T[0];g[0]=(P[0]*(1-p)+p*T[0]-P[0])/(P[1]-P[0])*L,g[2]=L*(1-p+p*O/z),E.range[0]=E.l2r(P[0]*(1-p)+p*T[0]),E.range[1]=E.l2r(P[1]*(1-p)+p*T[1])}else g[0]=0,g[2]=L;if(M){var V=lI.simpleMap(b.yr0,A.r2l),G=lI.simpleMap(b.yr1,A.r2l),Z=V[1]-V[0],H=G[1]-G[0];g[1]=(V[1]*(1-p)+p*G[1]-V[1])/(V[0]-V[1])*x,g[3]=x*(1-p+p*H/Z),A.range[0]=E.l2r(V[0]*(1-p)+p*G[0]),A.range[1]=A.l2r(V[1]*(1-p)+p*G[1])}else g[1]=0,g[3]=x;uI.drawOne(t,E,{skipTitle:!0}),uI.drawOne(t,A,{skipTitle:!0}),uI.redrawComponents(t,[E._id,A._id]);var N=k?L/g[2]:1,j=M?x/g[3]:1,re=k?g[0]:0,oe=M?g[1]:0,_e=k?g[0]/g[2]*L:0,Me=M?g[1]/g[3]*x:0,ke=E._offset-_e,me=A._offset-Me;C.clipRect.call(Qp.setTranslate,re,oe).call(Qp.setScale,1/N,1/j),C.plot.call(Qp.setTranslate,ke,me).call(Qp.setScale,N,j),Qp.setPointGroupScale(C.zoomScalePts,1/N,1/j),Qp.setTextPointsScale(C.zoomScaleTxt,1/N,1/j)}var l;i&&(l=i());function u(){for(var b={},p=0;pn.duration?(u(),d=window.cancelAnimationFrame(_)):d=window.requestAnimationFrame(_)}return f=Date.now(),d=window.requestAnimationFrame(_),Promise.resolve()}});var vh=ye(yv=>{"use strict";var fI=Oa(),upe=qa(),Wb=Dr(),jpt=Mc(),Wpt=So(),cpe=Id().getModuleCalcData,m_=hf(),Fg=hd(),Xpt=Wp(),nu=Wb.ensureSingle;function cI(e,t,r){return Wb.ensureSingle(e,t,r,function(n){n.datum(r)})}var Xb=Fg.zindexSeparator;yv.name="cartesian";yv.attr=["xaxis","yaxis"];yv.idRoot=["x","y"];yv.idRegex=Fg.idRegex;yv.attrRegex=Fg.attrRegex;yv.attributes=Ove();yv.layoutAttributes=Rd();yv.supplyLayoutDefaults=ape();yv.transitionAxes=lpe();yv.finalizeSubplots=function(e,t){var r=t._subplots,n=r.xaxis,i=r.yaxis,a=r.cartesian,o=a,s={},l={},u,c,f;for(u=0;u0){var d=h.id;if(d.indexOf(Xb)!==-1)continue;d+=Xb+(u+1),h=Wb.extendFlat({},h,{id:d,plot:i._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var v=[],_,b=0;b1&&(L+=Xb+A),E.push(s+L),o=0;o1,f=t.mainplotinfo;if(!t.mainplot||c)if(u)t.xlines=nu(n,"path","xlines-above"),t.ylines=nu(n,"path","ylines-above"),t.xaxislayer=nu(n,"g","xaxislayer-above"),t.yaxislayer=nu(n,"g","yaxislayer-above");else{if(!o){var h=nu(n,"g","layer-subplot");t.shapelayer=nu(h,"g","shapelayer"),t.imagelayer=nu(h,"g","imagelayer"),f&&c?(t.minorGridlayer=f.minorGridlayer,t.gridlayer=f.gridlayer,t.zerolinelayer=f.zerolinelayer):(t.minorGridlayer=nu(n,"g","minor-gridlayer"),t.gridlayer=nu(n,"g","gridlayer"),t.zerolinelayer=nu(n,"g","zerolinelayer"));var d=nu(n,"g","layer-between");t.shapelayerBetween=nu(d,"g","shapelayer"),t.imagelayerBetween=nu(d,"g","imagelayer"),nu(n,"path","xlines-below"),nu(n,"path","ylines-below"),t.overlinesBelow=nu(n,"g","overlines-below"),nu(n,"g","xaxislayer-below"),nu(n,"g","yaxislayer-below"),t.overaxesBelow=nu(n,"g","overaxes-below")}t.overplot=nu(n,"g","overplot"),t.plot=nu(t.overplot,"g",i),f&&c?t.zerolinelayerAbove=f.zerolinelayerAbove:t.zerolinelayerAbove=nu(n,"g","zerolinelayer-above"),o||(t.xlines=nu(n,"path","xlines-above"),t.ylines=nu(n,"path","ylines-above"),t.overlinesAbove=nu(n,"g","overlines-above"),nu(n,"g","xaxislayer-above"),nu(n,"g","yaxislayer-above"),t.overaxesAbove=nu(n,"g","overaxes-above"),t.xlines=n.select(".xlines-"+s),t.ylines=n.select(".ylines-"+l),t.xaxislayer=n.select(".xaxislayer-"+s),t.yaxislayer=n.select(".yaxislayer-"+l))}else{var v=f.plotgroup,_=i+"-x",b=i+"-y";t.minorGridlayer=f.minorGridlayer,t.gridlayer=f.gridlayer,t.zerolinelayer=f.zerolinelayer,t.zerolinelayerAbove=f.zerolinelayerAbove,nu(f.overlinesBelow,"path",_),nu(f.overlinesBelow,"path",b),nu(f.overaxesBelow,"g",_),nu(f.overaxesBelow,"g",b),t.plot=nu(f.overplot,"g",i),nu(f.overlinesAbove,"path",_),nu(f.overlinesAbove,"path",b),nu(f.overaxesAbove,"g",_),nu(f.overaxesAbove,"g",b),t.xlines=v.select(".overlines-"+s).select("."+_),t.ylines=v.select(".overlines-"+l).select("."+b),t.xaxislayer=v.select(".overaxes-"+s).select("."+_),t.yaxislayer=v.select(".overaxes-"+l).select("."+b)}o||(u||(cI(t.minorGridlayer,"g",t.xaxis._id),cI(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(p){return p[0]}).sort(m_.idSort),cI(t.gridlayer,"g",t.xaxis._id),cI(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(p){return p[0]}).sort(m_.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function dpe(e,t){if(e){var r={};e.each(function(l){var u=l[0],c=fI.select(this);c.remove(),vpe(u,t),r[u]=!0});for(var n in t._plots)for(var i=t._plots[n],a=i.overlays||[],o=0;o{"use strict";var hI=Ru();ppe.exports={hasLines:hI.hasLines,hasMarkers:hI.hasMarkers,hasText:hI.hasText,isBubble:hI.isBubble,attributes:pf(),layoutAttributes:H6(),supplyDefaults:Vde(),crossTraceDefaults:rU(),supplyLayoutDefaults:Wde(),calc:O0().calc,crossTraceCalc:gve(),arraysToCalcdata:Cm(),plot:iT(),colorbar:$d(),formatLabels:eI(),style:ap().style,styleOnSelect:ap().styleOnSelect,hoverPoints:sT(),selectPoints:lT(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:vh(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var _pe=ye((_or,ype)=>{"use strict";var Ypt=Oa(),Kpt=Ca(),mpe=kN(),MU=Dr(),Jpt=MU.strScale,$pt=MU.strRotate,Qpt=MU.strTranslate;ype.exports=function(t,r,n){var i=t.node(),a=mpe[n.arrowhead||0],o=mpe[n.startarrowhead||0],s=(n.arrowwidth||1)*(n.arrowsize||1),l=(n.arrowwidth||1)*(n.startarrowsize||1),u=r.indexOf("start")>=0,c=r.indexOf("end")>=0,f=a.backoff*s+n.standoff,h=o.backoff*l+n.startstandoff,d,v,_,b;if(i.nodeName==="line"){d={x:+t.attr("x1"),y:+t.attr("y1")},v={x:+t.attr("x2"),y:+t.attr("y2")};var p=d.x-v.x,C=d.y-v.y;if(_=Math.atan2(C,p),b=_+Math.PI,f&&h&&f+h>Math.sqrt(p*p+C*C)){V();return}if(f){if(f*f>p*p+C*C){V();return}var E=f*Math.cos(_),A=f*Math.sin(_);v.x+=E,v.y+=A,t.attr({x2:v.x,y2:v.y})}if(h){if(h*h>p*p+C*C){V();return}var L=h*Math.cos(_),x=h*Math.sin(_);d.x-=L,d.y-=x,t.attr({x1:d.x,y1:d.y})}}else if(i.nodeName==="path"){var k=i.getTotalLength(),M="";if(k{"use strict";var xpe=Oa(),EU=qa(),e0t=Mc(),__=Dr(),CU=__.strTranslate,i4=ho(),Zb=Ca(),Py=So(),bpe=vf(),kU=iu(),LU=Tg(),r4=gv(),t0t=pl().arrayEditor,r0t=_pe();Ape.exports={draw:i0t,drawOne:wpe,drawRaw:Tpe};function i0t(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?$e="right":$e="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[$e]}for(var Pe=!1,ge=["x","y"],Fe=0;Fe1)&&(ct===Ye?(Ft=pt.r2fraction(t["a"+ce]),(Ft<0||Ft>1)&&(Pe=!0)):Pe=!0),wr=pt._offset+pt.r2p(t[ce]),Et=.5}else{var bt=Ut==="domain";ce==="x"?(Qe=t[ce],wr=bt?pt._offset+pt._length*Qe:wr=s.l+s.w*Qe):(Qe=1-t[ce],wr=bt?pt._offset+pt._length*Qe:wr=s.t+s.h*Qe),Et=t.showarrow?.5:Qe}if(t.showarrow){sr.head=wr;var yt=t["a"+ce];if(er=st*De(.5,t.xanchor)-lt*De(.5,t.yanchor),ct===Ye){var Yt=i4.getRefType(ct);Yt==="domain"?(ce==="y"&&(yt=1-yt),sr.tail=pt._offset+pt._length*yt):Yt==="paper"?ce==="y"?(yt=1-yt,sr.tail=s.t+s.h*yt):sr.tail=s.l+s.w*yt:sr.tail=pt._offset+pt.r2p(yt),ur=er}else sr.tail=wr+yt,ur=er+yt;sr.text=sr.tail+er;var lr=o[ce==="x"?"width":"height"];if(Ye==="paper"&&(sr.head=__.constrain(sr.head,1,lr-1)),ct==="pixel"){var Tr=-Math.max(sr.tail-3,sr.text),Rr=Math.min(sr.tail+3,sr.text)-lr;Tr>0?(sr.tail+=Tr,sr.text+=Tr):Rr>0&&(sr.tail-=Rr,sr.text-=Rr)}sr.tail+=$t,sr.head+=$t}else er=Gt*De(Et,Nt),ur=er,sr.text=wr+er;sr.text+=$t,er+=$t,ur+=$t,t["_"+ce+"padplus"]=Gt/2+ur,t["_"+ce+"padminus"]=Gt/2-ur,t["_"+ce+"size"]=Gt,t["_"+ce+"shift"]=er}if(Pe){k.remove();return}var ei=0,Wr=0;if(t.align!=="left"&&(ei=(ie-ke)*(t.align==="center"?.5:1)),t.valign!=="top"&&(Wr=(Se-me)*(t.valign==="middle"?.5:1)),_e)oe.select("svg").attr({x:P+ei-1,y:P+Wr}).call(Py.setClipUrl,z?_:null,e);else{var Ur=P+Wr-Me.top,dt=P+ei-Me.left;Z.call(kU.positionText,dt,Ur).call(Py.setClipUrl,z?_:null,e)}O.select("rect").call(Py.setRect,P,P,ie,Se),T.call(Py.setRect,M/2,M/2,Le-M,Ae-M),k.call(Py.setTranslate,Math.round(b.x.text-Le/2),Math.round(b.y.text-Ae/2)),E.attr({transform:"rotate("+p+","+b.x.text+","+b.y.text+")"});var Ge=function(je,$e){C.selectAll(".annotation-arrow-g").remove();var wt=b.x.head,Ie=b.y.head,xe=b.x.tail+je,Ce=b.y.tail+$e,vt=b.x.text+je,nr=b.y.text+$e,ir=__.rotationXYMatrix(p,vt,nr),pr=__.apply2DTransform(ir),oi=__.apply2DTransform2(ir),di=+T.attr("width"),Jr=+T.attr("height"),fi=vt-.5*di,Hi=fi+di,Pn=nr-.5*Jr,wn=Pn+Jr,pn=[[fi,Pn,fi,wn],[fi,wn,Hi,wn],[Hi,wn,Hi,Pn],[Hi,Pn,fi,Pn]].map(oi);if(!pn.reduce(function($r,zi){return $r^!!__.segmentsIntersect(wt,Ie,wt+1e6,Ie+1e6,zi[0],zi[1],zi[2],zi[3])},!1)){pn.forEach(function($r){var zi=__.segmentsIntersect(xe,Ce,wt,Ie,$r[0],$r[1],$r[2],$r[3]);zi&&(xe=zi.x,Ce=zi.y)});var Vn=t.arrowwidth,kn=t.arrowcolor,ea=t.arrowside,ua=C.append("g").style({opacity:Zb.opacity(kn)}).classed("annotation-arrow-g",!0),Vt=ua.append("path").attr("d","M"+xe+","+Ce+"L"+wt+","+Ie).style("stroke-width",Vn+"px").call(Zb.stroke,Zb.rgb(kn));if(r0t(Vt,ea,t),l.annotationPosition&&Vt.node().parentNode&&!n){var _t=wt,tr=Ie;if(t.standoff){var ar=Math.sqrt(Math.pow(wt-xe,2)+Math.pow(Ie-Ce,2));_t+=t.standoff*(xe-wt)/ar,tr+=t.standoff*(Ce-Ie)/ar}var Er=ua.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(xe-_t)+","+(Ce-tr),transform:CU(_t,tr)}).style("stroke-width",Vn+6+"px").call(Zb.stroke,"rgba(0,0,0,0)").call(Zb.fill,"rgba(0,0,0,0)"),Zr,ri;r4.init({element:Er.node(),gd:e,prepFn:function(){var $r=Py.getTranslate(k);Zr=$r.x,ri=$r.y,i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0)},moveFn:function($r,zi){var Ji=pr(Zr,ri),en=Ji[0]+$r,cn=Ji[1]+zi;k.call(Py.setTranslate,en,cn),d("x",y_(i,$r,"x",s,t)),d("y",y_(a,zi,"y",s,t)),t.axref===t.xref&&d("ax",y_(i,$r,"ax",s,t)),t.ayref===t.yref&&d("ay",y_(a,zi,"ay",s,t)),ua.attr("transform",CU($r,zi)),E.attr({transform:"rotate("+p+","+en+","+cn+")"})},doneFn:function(){EU.call("_guiRelayout",e,v());var $r=document.querySelector(".js-notes-box-panel");$r&&$r.redraw($r.selectedObj)}})}}};if(t.showarrow&&Ge(0,0),A){var Je;r4.init({element:k.node(),gd:e,prepFn:function(){Je=E.attr("transform")},moveFn:function(je,$e){var wt="pointer";if(t.showarrow)t.axref===t.xref?d("ax",y_(i,je,"ax",s,t)):d("ax",t.ax+je),t.ayref===t.yref?d("ay",y_(a,$e,"ay",s.w,t)):d("ay",t.ay+$e),Ge(je,$e);else{if(n)return;var Ie,xe;if(i)Ie=y_(i,je,"x",s,t);else{var Ce=t._xsize/s.w,vt=t.x+(t._xshift-t.xshift)/s.w-Ce/2;Ie=r4.align(vt+je/s.w,Ce,0,1,t.xanchor)}if(a)xe=y_(a,$e,"y",s,t);else{var nr=t._ysize/s.h,ir=t.y-(t._yshift+t.yshift)/s.h-nr/2;xe=r4.align(ir-$e/s.h,nr,0,1,t.yanchor)}d("x",Ie),d("y",xe),(!i||!a)&&(wt=r4.getCursor(i?.5:Ie,a?.5:xe,t.xanchor,t.yanchor))}E.attr({transform:CU(je,$e)+Je}),LU(k,wt)},clickFn:function(je,$e){t.captureevents&&e.emit("plotly_clickannotation",x($e))},doneFn:function(){LU(k),EU.call("_guiRelayout",e,v());var je=document.querySelector(".js-notes-box-panel");je&&je.redraw(je.selectedObj)}})}}l.annotationText?Z.call(kU.makeEditable,{delegate:k,gd:e}).call(H).on("edit",function(j){t.text=j,this.call(H),d("text",j),i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0),EU.call("_guiRelayout",e,v())}):Z.call(H)}});var Lpe=ye((bor,kpe)=>{"use strict";var Spe=Dr(),n0t=qa(),Mpe=pl().arrayEditor;kpe.exports={hasClickToShow:a0t,onClick:o0t};function a0t(e,t){var r=Cpe(e,t);return r.on.length>0||r.explicitOff.length>0}function o0t(e,t){var r=Cpe(e,t),n=r.on,i=r.off.concat(r.explicitOff),a={},o=e._fullLayout.annotations,s,l;if(n.length||i.length){for(s=0;s{"use strict";var PU=Dr(),uT=Ca();Ppe.exports=function(t,r,n,i){i("opacity");var a=i("bgcolor"),o=i("bordercolor"),s=uT.opacity(o);i("borderpad");var l=i("borderwidth"),u=i("showarrow");i("text",u?" ":n._dfltTitle.annotation),i("textangle"),PU.coerceFont(i,"font",n.font),i("width"),i("align");var c=i("height");if(c&&i("valign"),u){var f=i("arrowside"),h,d;f.indexOf("end")!==-1&&(h=i("arrowhead"),d=i("arrowsize")),f.indexOf("start")!==-1&&(i("startarrowhead",h),i("startarrowsize",d)),i("arrowcolor",s?r.bordercolor:uT.defaultLine),i("arrowwidth",(s&&l||1)*2),i("standoff"),i("startstandoff")}var v=i("hovertext"),_=n.hoverlabel||{};if(v){var b=i("hoverlabel.bgcolor",_.bgcolor||(uT.opacity(a)?uT.rgb(a):uT.defaultLine)),p=i("hoverlabel.bordercolor",_.bordercolor||uT.contrast(b)),C=PU.extendFlat({},_.font);C.color||(C.color=p),PU.coerceFont(i,"hoverlabel.font",C)}i("captureevents",!!v)}});var Rpe=ye((Tor,Ipe)=>{"use strict";var RU=Dr(),Yb=ho(),s0t=Yd(),l0t=IU(),u0t=Nb();Ipe.exports=function(t,r){s0t(t,r,{name:"annotations",handleItemDefaults:c0t})};function c0t(e,t,r){function n(E,A){return RU.coerce(e,t,u0t,E,A)}var i=n("visible"),a=n("clicktoshow");if(i||a){l0t(e,t,r,n);for(var o=t.showarrow,s=["x","y"],l=[-10,-30],u={_fullLayout:r},c=0;c<2;c++){var f=s[c],h=Yb.coerceRef(e,t,u,f,"","paper");if(h!=="paper"){var d=Yb.getFromId(u,h);d._annIndices.push(t._index)}if(Yb.coercePosition(t,u,n,h,f,.5),o){var v="a"+f,_=Yb.coerceRef(e,t,u,v,"pixel",["pixel","paper"]);_!=="pixel"&&_!==h&&(_=t[v]="pixel");var b=_==="pixel"?l[c]:.4;Yb.coercePosition(t,u,n,_,v,b)}n(f+"anchor"),n(f+"shift")}if(RU.noneOrAll(e,t,["x","y"]),o&&RU.noneOrAll(e,t,["ax","ay"]),a){var p=n("xclick"),C=n("yclick");t._xclick=p===void 0?t.x:Yb.cleanPosition(p,u,t.xref),t._yclick=C===void 0?t.y:Yb.cleanPosition(C,u,t.yref)}}}});var zpe=ye((Aor,Fpe)=>{"use strict";var DU=Dr(),Kb=ho(),f0t=dI().draw;Fpe.exports=function(t){var r=t._fullLayout,n=DU.filterVisible(r.annotations);if(n.length&&t._fullData.length)return DU.syncOrAsync([f0t,h0t],t)};function h0t(e){var t=e._fullLayout;DU.filterVisible(t.annotations).forEach(function(r){var n=Kb.getFromId(e,r.xref),i=Kb.getFromId(e,r.yref),a=Kb.getRefType(r.xref),o=Kb.getRefType(r.yref);r._extremes={},a==="range"&&Dpe(r,n),o==="range"&&Dpe(r,i)})}function Dpe(e,t){var r=t._id,n=r.charAt(0),i=e[n],a=e["a"+n],o=e[n+"ref"],s=e["a"+n+"ref"],l=e["_"+n+"padplus"],u=e["_"+n+"padminus"],c={x:1,y:-1}[n]*e[n+"shift"],f=3*e.arrowsize*e.arrowwidth||0,h=f+c,d=f-c,v=3*e.startarrowsize*e.arrowwidth||0,_=v+c,b=v-c,p;if(s===o){var C=Kb.findExtremes(t,[t.r2c(i)],{ppadplus:h,ppadminus:d}),E=Kb.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(l,_),ppadminus:Math.max(u,b)});p={min:[C.min[0],E.min[0]],max:[C.max[0],E.max[0]]}}else _=a?_+a:_,b=a?b-a:b,p=Kb.findExtremes(t,[t.r2c(i)],{ppadplus:Math.max(l,h,_),ppadminus:Math.max(u,d,b)});e._extremes[r]=p}});var qpe=ye((Sor,Ope)=>{"use strict";var d0t=Eo(),v0t=v6();Ope.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(!(a||o))return;var s=t._fullLayout.annotations,l=r._id.charAt(0),u,c;function f(d){var v=u[d],_=null;a?_=v0t(v,r.range):_=Math.pow(10,v),d0t(_)||(_=null),i(c+d,_)}for(var h=0;h{"use strict";var FU=dI(),Bpe=Lpe();Npe.exports={moduleType:"component",name:"annotations",layoutAttributes:Nb(),supplyLayoutDefaults:Rpe(),includeBasePlot:zM()("annotations"),calcAutorange:zpe(),draw:FU.draw,drawOne:FU.drawOne,drawRaw:FU.drawRaw,hasClickToShow:Bpe.hasClickToShow,onClick:Bpe.onClick,convertCoords:qpe()}});var vI=ye((Eor,Vpe)=>{"use strict";var Cc=Nb(),p0t=mc().overrideAll,g0t=pl().templatedArray;Vpe.exports=p0t(g0t("annotation",{visible:Cc.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Cc.xanchor,xshift:Cc.xshift,yanchor:Cc.yanchor,yshift:Cc.yshift,text:Cc.text,textangle:Cc.textangle,font:Cc.font,width:Cc.width,height:Cc.height,opacity:Cc.opacity,align:Cc.align,valign:Cc.valign,bgcolor:Cc.bgcolor,bordercolor:Cc.bordercolor,borderpad:Cc.borderpad,borderwidth:Cc.borderwidth,showarrow:Cc.showarrow,arrowcolor:Cc.arrowcolor,arrowhead:Cc.arrowhead,startarrowhead:Cc.startarrowhead,arrowside:Cc.arrowside,arrowsize:Cc.arrowsize,startarrowsize:Cc.startarrowsize,arrowwidth:Cc.arrowwidth,standoff:Cc.standoff,startstandoff:Cc.startstandoff,hovertext:Cc.hovertext,hoverlabel:Cc.hoverlabel,captureevents:Cc.captureevents}),"calc","from-root")});var Hpe=ye((Cor,Gpe)=>{"use strict";var zU=Dr(),m0t=ho(),y0t=Yd(),_0t=IU(),x0t=vI();Gpe.exports=function(t,r,n){y0t(t,r,{name:"annotations",handleItemDefaults:b0t,fullLayout:n.fullLayout})};function b0t(e,t,r,n){function i(s,l){return zU.coerce(e,t,x0t,s,l)}function a(s){var l=s+"axis",u={_fullLayout:{}};return u._fullLayout[l]=r[l],m0t.coercePosition(t,u,i,s,s,.5)}var o=i("visible");o&&(_0t(e,t,n.fullLayout,i),a("x"),a("y"),a("z"),zU.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",i("xanchor"),i("yanchor"),i("xshift"),i("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",i("ax",-10),i("ay",-30),zU.noneOrAll(e,t,["ax","ay"])))}});var Zpe=ye((kor,Xpe)=>{"use strict";var jpe=Dr(),Wpe=ho();Xpe.exports=function(t){for(var r=t.fullSceneLayout,n=r.annotations,i=0;i{"use strict";function OU(e,t){var r=[0,0,0,0],n,i;for(n=0;n<4;++n)for(i=0;i<4;++i)r[i]+=e[4*n+i]*t[n];return r}function T0t(e,t){var r=OU(e.projection,OU(e.view,OU(e.model,[t[0],t[1],t[2],1])));return r}Ype.exports=T0t});var Jpe=ye((Por,Kpe)=>{"use strict";var A0t=dI().drawRaw,S0t=qU(),M0t=["x","y","z"];Kpe.exports=function(t){for(var r=t.fullSceneLayout,n=t.dataScale,i=r.annotations,a=0;a1){s=!0;break}}s?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+a+'"]').remove():(o._pdata=S0t(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*n[0],r.yaxis.r2l(o.y)*n[1],r.zaxis.r2l(o.z)*n[2]]),A0t(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var e0e=ye((Ior,Qpe)=>{"use strict";var E0t=qa(),$pe=Dr();Qpe.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:vI()}}},layoutAttributes:vI(),handleDefaults:Hpe(),includeBasePlot:C0t,convert:Zpe(),draw:Jpe()};function C0t(e,t){var r=E0t.subplotsRegistry.gl3d;if(r)for(var n=r.attrRegex,i=Object.keys(e),a=0;a{"use strict";var t0e=Nb(),r0e=ec(),i0e=pf().line,k0t=Pd().dash,zg=Ao().extendFlat,L0t=pl().templatedArray,Ror=FM(),cT=Vl(),P0t=Qo().shapeTexttemplateAttrs,I0t=T6();n0e.exports=L0t("shape",{visible:zg({},cT.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:zg({},cT.legend,{editType:"calc+arraydraw"}),legendgroup:zg({},cT.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:zg({},cT.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:r0e({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:zg({},cT.legendrank,{editType:"calc+arraydraw"}),legendwidth:zg({},cT.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:zg({},t0e.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:zg({},t0e.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:zg({},i0e.color,{editType:"arraydraw"}),width:zg({},i0e.width,{editType:"calc+arraydraw"}),dash:zg({},k0t,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:P0t({},{keys:Object.keys(I0t)}),font:r0e({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var s0e=ye((For,o0e)=>{"use strict";var n4=Dr(),fT=ho(),R0t=Yd(),D0t=BU(),a0e=h_();o0e.exports=function(t,r){R0t(t,r,{name:"shapes",handleItemDefaults:z0t})};function F0t(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function z0t(e,t,r){function n(j,re){return n4.coerce(e,t,D0t,j,re)}t._isShape=!0;var i=n("visible");if(i){var a=n("showlegend");a&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),n4.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var o=n("path"),s=o?"path":"rect",l=n("type",s),u=l!=="path";u&&delete t.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var c=n("line.width");c&&(n("line.color"),n("line.dash"));for(var f=n("xsizemode"),h=n("ysizemode"),d=["x","y"],v=0;v<2;v++){var _=d[v],b=_+"anchor",p=_==="x"?f:h,C={_fullLayout:r},E,A,L,x=fT.coerceRef(e,t,C,_,void 0,"paper"),k=fT.getRefType(x);if(k==="range"?(E=fT.getFromId(C,x),E._shapeIndices.push(t._index),L=a0e.rangeToShapePosition(E),A=a0e.shapePositionToRange(E),(E.type==="category"||E.type==="multicategory")&&(n(_+"0shift"),n(_+"1shift"))):A=L=n4.identity,u){var M=.25,g=.75,P=_+"0",T=_+"1",z=e[P],O=e[T];e[P]=A(e[P],!0),e[T]=A(e[T],!0),p==="pixel"?(n(P,0),n(T,10)):(fT.coercePosition(t,C,n,x,P,M),fT.coercePosition(t,C,n,x,T,g)),t[P]=L(t[P]),t[T]=L(t[T]),e[P]=z,e[T]=O}if(p==="pixel"){var V=e[b];e[b]=A(e[b],!0),fT.coercePosition(t,C,n,x,b,.25),t[b]=L(t[b]),e[b]=V}}u&&n4.noneOrAll(e,t,["x0","x1","y0","y1"]);var G=l==="line",Z,H;if(u&&(Z=n("label.texttemplate")),Z||(H=n("label.text")),H||Z){n("label.textangle");var N=n("label.textposition",G?"middle":"middle center");n("label.xanchor"),n("label.yanchor",F0t(G,N)),n("label.padding"),n4.coerceFont(n,"label.font",r.font)}}}});var c0e=ye((zor,u0e)=>{"use strict";var O0t=Ca(),l0e=Dr();function q0t(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}u0e.exports=function(t,r,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),l0e.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var i=n("newshape.line.width");if(i){var a=(t||{}).plot_bgcolor||"#FFF";n("newshape.line.color",O0t.contrast(a)),n("newshape.line.dash")}var o=t.dragmode==="drawline",s=n("newshape.label.text"),l=n("newshape.label.texttemplate");if(s||l){n("newshape.label.textangle");var u=n("newshape.label.textposition",o?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",q0t(o,u)),n("newshape.label.padding"),l0e.coerceFont(n,"newshape.label.font",r.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var p0e=ye((Oor,v0e)=>{"use strict";var NU=Dr(),hT=ho(),dT=vM(),h0e=h_();v0e.exports=function(t){var r=t._fullLayout,n=NU.filterVisible(r.shapes);if(!(!n.length||!t._fullData.length))for(var i=0;i0?u+o:o;return{ppad:o,ppadplus:s?f:h,ppadminus:s?h:f}}else return{ppad:o}}function f0e(e,t,r){var n=e._id.charAt(0)==="x"?"x":"y",i=e.type==="category"||e.type==="multicategory",a,o,s=0,l=0,u=i?e.r2c:e.d2c,c=t[n+"sizemode"]==="scaled";if(c?(a=t[n+"0"],o=t[n+"1"],i&&(s=t[n+"0shift"],l=t[n+"1shift"])):(a=t[n+"anchor"],o=t[n+"anchor"]),a!==void 0)return[u(a)+s,u(o)+l];if(t.path){var f=1/0,h=-1/0,d=t.path.match(dT.segmentRE),v,_,b,p,C;for(e.type==="date"&&(u=h0e.decodeDate(u)),v=0;vh&&(h=C)));if(h>=f)return[f,h]}}});var y0e=ye((qor,m0e)=>{"use strict";var g0e=nP();m0e.exports={moduleType:"component",name:"shapes",layoutAttributes:BU(),supplyLayoutDefaults:s0e(),supplyDrawNewShapeDefaults:c0e(),includeBasePlot:zM()("shapes"),calcAutorange:p0e(),draw:g0e.draw,drawOne:g0e.drawOne}});var UU=ye((Nor,x0e)=>{"use strict";var _0e=hd(),U0t=pl().templatedArray,Bor=FM();x0e.exports=U0t("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",_0e.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",_0e.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var w0e=ye((Uor,b0e)=>{"use strict";var V0t=Dr(),VU=ho(),G0t=Yd(),H0t=UU(),j0t="images";b0e.exports=function(t,r){var n={name:j0t,handleItemDefaults:W0t};G0t(t,r,n)};function W0t(e,t,r){function n(h,d){return V0t.coerce(e,t,H0t,h,d)}var i=n("source"),a=n("visible",!!i);if(!a)return t;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var o={_fullLayout:r},s=["x","y"],l=0;l<2;l++){var u=s[l],c=VU.coerceRef(e,t,o,u,"paper",void 0);if(c!=="paper"){var f=VU.getFromId(o,c);f._imgIndices.push(t._index)}VU.coercePosition(t,o,n,c,u,0)}return t}});var M0e=ye((Vor,S0e)=>{"use strict";var T0e=Oa(),X0t=So(),vT=ho(),A0e=hf(),Z0t=Wp();S0e.exports=function(t){var r=t._fullLayout,n=[],i={},a=[],o,s;for(s=0;s{"use strict";var E0e=Eo(),Y0t=v6();C0e.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(a||o){for(var s=t._fullLayout.images,l=r._id.charAt(0),u,c,f=0;f{"use strict";L0e.exports={moduleType:"component",name:"images",layoutAttributes:UU(),supplyLayoutDefaults:w0e(),includeBasePlot:zM()("images"),draw:M0e(),convertCoords:k0e()}});var pI=ye((jor,I0e)=>{"use strict";I0e.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var GU=ye((Wor,D0e)=>{"use strict";var K0t=ec(),J0t=Eh(),$0t=Ao().extendFlat,Q0t=mc().overrideAll,egt=A6(),R0e=pl().templatedArray,tgt=R0e("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});D0e.exports=Q0t(R0e("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:tgt,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:$0t(egt({editType:"arraydraw"}),{}),font:K0t({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:J0t.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var q0e=ye((Xor,O0e)=>{"use strict";var gI=Dr(),F0e=Yd(),z0e=GU(),rgt=pI(),igt=rgt.name,ngt=z0e.buttons;O0e.exports=function(t,r){var n={name:igt,handleItemDefaults:agt};F0e(t,r,n)};function agt(e,t,r){function n(o,s){return gI.coerce(e,t,z0e,o,s)}var i=F0e(e,t,{name:"buttons",handleItemDefaults:ogt}),a=n("visible",i.length>0);a&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),gI.noneOrAll(e,t,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),gI.coerceFont(n,"font",r.font),n("bgcolor",r.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function ogt(e,t){function r(i,a){return gI.coerce(e,t,ngt,i,a)}var n=r("visible",e.method==="skip"||Array.isArray(e.args));n&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var U0e=ye((Zor,N0e)=>{"use strict";N0e.exports=Sf;var Og=Oa(),B0e=Ca(),pT=So(),mI=Dr();function Sf(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Sf.barWidth=2;Sf.barLength=20;Sf.barRadius=2;Sf.barPad=1;Sf.barColor="#808BA4";Sf.prototype.enable=function(t,r,n){var i=this.gd._fullLayout,a=i.width,o=i.height;this.position=t;var s=this.position.l,l=this.position.w,u=this.position.t,c=this.position.h,f=this.position.direction,h=f==="down",d=f==="left",v=f==="right",_=f==="up",b=l,p=c,C,E,A,L;!h&&!d&&!v&&!_&&(this.position.direction="down",h=!0);var x=h||_;x?(C=s,E=C+b,h?(A=u,L=Math.min(A+p,o),p=L-A):(L=u+p,A=Math.max(L-p,0),p=L-A)):(A=u,L=A+p,d?(E=s+b,C=Math.max(E-b,0),b=E-C):(C=s,E=Math.min(C+b,a),b=E-C)),this._box={l:C,t:A,w:b,h:p};var k=l>b,M=Sf.barLength+2*Sf.barPad,g=Sf.barWidth+2*Sf.barPad,P=s,T=u+c;T+g>o&&(T=o-g);var z=this.container.selectAll("rect.scrollbar-horizontal").data(k?[0]:[]);z.exit().on(".drag",null).remove(),z.enter().append("rect").classed("scrollbar-horizontal",!0).call(B0e.fill,Sf.barColor),k?(this.hbar=z.attr({rx:Sf.barRadius,ry:Sf.barRadius,x:P,y:T,width:M,height:g}),this._hbarXMin=P+M/2,this._hbarTranslateMax=b-M):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var O=c>p,V=Sf.barWidth+2*Sf.barPad,G=Sf.barLength+2*Sf.barPad,Z=s+l,H=u;Z+V>a&&(Z=a-V);var N=this.container.selectAll("rect.scrollbar-vertical").data(O?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-vertical",!0).call(B0e.fill,Sf.barColor),O?(this.vbar=N.attr({rx:Sf.barRadius,ry:Sf.barRadius,x:Z,y:H,width:V,height:G}),this._vbarYMin=H+G/2,this._vbarTranslateMax=p-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var j=this.id,re=C-.5,oe=O?E+V+.5:E+.5,_e=A-.5,Me=k?L+g+.5:L+.5,ke=i._topdefs.selectAll("#"+j).data(k||O?[0]:[]);if(ke.exit().remove(),ke.enter().append("clipPath").attr("id",j).append("rect"),k||O?(this._clipRect=ke.select("rect").attr({x:Math.floor(re),y:Math.floor(_e),width:Math.ceil(oe)-Math.floor(re),height:Math.ceil(Me)-Math.floor(_e)}),this.container.call(pT.setClipUrl,j,this.gd),this.bg.attr({x:s,y:u,width:l,height:c})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(pT.setClipUrl,null),delete this._clipRect),k||O){var me=Og.behavior.drag().on("dragstart",function(){Og.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(me);var ie=Og.behavior.drag().on("dragstart",function(){Og.event.sourceEvent.preventDefault(),Og.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));k&&this.hbar.on(".drag",null).call(ie),O&&this.vbar.on(".drag",null).call(ie)}this.setTranslate(r,n)};Sf.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(pT.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)};Sf.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Og.event.dx),this.vbar&&(r-=Og.event.dy),this.setTranslate(t,r)};Sf.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Og.event.deltaY),this.vbar&&(r+=Og.event.deltaY),this.setTranslate(t,r)};Sf.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var n=t+this._hbarXMin,i=n+this._hbarTranslateMax,a=mI.constrain(Og.event.x,n,i),o=(a-n)/(i-n),s=this.position.w-this._box.w;t=o*s}if(this.vbar){var l=r+this._vbarYMin,u=l+this._vbarTranslateMax,c=mI.constrain(Og.event.y,l,u),f=(c-l)/(u-l),h=this.position.h-this._box.h;r=f*h}this.setTranslate(t,r)};Sf.prototype.setTranslate=function(t,r){var n=this.position.w-this._box.w,i=this.position.h-this._box.h;if(t=mI.constrain(t||0,0,n),r=mI.constrain(r||0,0,i),this.translateX=t,this.translateY=r,this.container.call(pT.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var a=t/n;this.hbar.call(pT.setTranslate,t+a*this._hbarTranslateMax,r)}if(this.vbar){var o=r/i;this.vbar.call(pT.setTranslate,t,r+o*this._vbarTranslateMax)}}});var J0e=ye((Yor,K0e)=>{"use strict";var gT=Oa(),a4=Mc(),o4=Ca(),mT=So(),e0=Dr(),yI=iu(),sgt=pl().arrayEditor,G0e=Kh().LINE_SPACING,ts=pI(),lgt=U0e();K0e.exports=function(t){var r=t._fullLayout,n=e0.filterVisible(r[ts.name]);function i(h){a4.autoMargin(t,Z0e(h))}var a=r._menulayer.selectAll("g."+ts.containerClassName).data(n.length>0?[0]:[]);if(a.enter().append("g").classed(ts.containerClassName,!0).style("cursor","pointer"),a.exit().each(function(){gT.select(this).selectAll("g."+ts.headerGroupClassName).each(i)}).remove(),n.length!==0){var o=a.selectAll("g."+ts.headerGroupClassName).data(n,ugt);o.enter().append("g").classed(ts.headerGroupClassName,!0);for(var s=e0.ensureSingle(a,"g",ts.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),l=0;l{"use strict";var ggt=pI();$0e.exports={moduleType:"component",name:ggt.name,layoutAttributes:GU(),supplyLayoutDefaults:q0e(),draw:J0e()}});var l4=ye((Jor,ege)=>{"use strict";ege.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var XU=ye(($or,ige)=>{"use strict";var tge=ec(),mgt=A6(),ygt=Ao().extendDeepAll,_gt=mc().overrideAll,xgt=qS(),rge=pl().templatedArray,Jb=l4(),bgt=rge("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});ige.exports=_gt(rge("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:bgt,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:ygt(mgt({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:xgt.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:tge({})},font:tge({}),activebgcolor:{valType:"color",dflt:Jb.gripBgActiveColor},bgcolor:{valType:"color",dflt:Jb.railBgColor},bordercolor:{valType:"color",dflt:Jb.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Jb.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Jb.tickLength},tickcolor:{valType:"color",dflt:Jb.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Jb.minorTickLength}}),"arraydraw","from-root")});var sge=ye((Qor,oge)=>{"use strict";var yT=Dr(),nge=Yd(),age=XU(),wgt=l4(),Tgt=wgt.name,Agt=age.steps;oge.exports=function(t,r){nge(t,r,{name:Tgt,handleItemDefaults:Sgt})};function Sgt(e,t,r){function n(f,h){return yT.coerce(e,t,age,f,h)}for(var i=nge(e,t,{name:"steps",handleItemDefaults:Mgt}),a=0,o=0;o{"use strict";var qg=Oa(),_I=Mc(),x_=Ca(),Bg=So(),t0=Dr(),Egt=t0.strTranslate,u4=iu(),Cgt=pl().arrayEditor,Ds=l4(),KU=Kh(),cge=KU.LINE_SPACING,ZU=KU.FROM_TL,YU=KU.FROM_BR;gge.exports=function(t){var r=t._context.staticPlot,n=t._fullLayout,i=kgt(n,t),a=n._infolayer.selectAll("g."+Ds.containerClassName).data(i.length>0?[0]:[]);a.enter().append("g").classed(Ds.containerClassName,!0).style("cursor",r?null:"ew-resize");function o(c){c._commandObserver&&(c._commandObserver.remove(),delete c._commandObserver),_I.autoMargin(t,fge(c))}if(a.exit().each(function(){qg.select(this).selectAll("g."+Ds.groupClassName).each(o)}).remove(),i.length!==0){var s=a.selectAll("g."+Ds.groupClassName).data(i,Lgt);s.enter().append("g").classed(Ds.groupClassName,!0),s.exit().each(o).remove();for(var l=0;l0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",Egt(o-Ds.gripWidth*.5,t._dims.currentValueTotalHeight))}}function JU(e,t){var r=e._dims;return r.inputAreaStart+Ds.stepInset+(r.inputAreaLength-2*Ds.stepInset)*Math.min(1,Math.max(0,t))}function uge(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-Ds.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*Ds.stepInset-2*r.inputAreaStart)))}function Ogt(e,t,r){var n=r._dims,i=t0.ensureSingle(e,"rect",Ds.railTouchRectClass,function(a){a.call(vge,t,e,r).style("pointer-events","all")});i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Ds.tickOffset+r.ticklen+n.labelHeight)}).call(x_.fill,r.bgcolor).attr("opacity",0),Bg.setTranslate(i,0,n.currentValueTotalHeight)}function qgt(e,t){var r=t._dims,n=r.inputAreaLength-Ds.railInset*2,i=t0.ensureSingle(e,"rect",Ds.railRectClass);i.attr({width:n,height:Ds.railWidth,rx:Ds.railRadius,ry:Ds.railRadius,"shape-rendering":"crispEdges"}).call(x_.stroke,t.bordercolor).call(x_.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),Bg.setTranslate(i,Ds.railInset,(r.inputAreaWidth-Ds.railWidth)*.5+r.currentValueTotalHeight)}});var _ge=ye((tsr,yge)=>{"use strict";var Bgt=l4();yge.exports={moduleType:"component",name:Bgt.name,layoutAttributes:XU(),supplyLayoutDefaults:sge(),draw:mge()}});var bI=ye((rsr,bge)=>{"use strict";var xge=Eh();bge.exports={bgcolor:{valType:"color",dflt:xge.background,editType:"plot"},bordercolor:{valType:"color",dflt:xge.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var $U=ye((isr,wge)=>{"use strict";wge.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var wI=ye((nsr,Tge)=>{"use strict";Tge.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var Mge=ye(AI=>{"use strict";var Ngt=hf(),Ugt=iu(),Age=wI(),Vgt=Kh().LINE_SPACING,TI=Age.name;function Sge(e){var t=e&&e[TI];return t&&t.visible}AI.isVisible=Sge;AI.makeData=function(e){for(var t=Ngt.list({_fullLayout:e},"x",!0),r=e.margin,n=[],i=0;i{"use strict";var SI=Dr(),Ege=pl(),Cge=hf(),Ggt=bI(),Hgt=$U();kge.exports=function(t,r,n){var i=t[n],a=r[n];if(!(i.rangeslider||r._requestRangeslider[a._id]))return;SI.isPlainObject(i.rangeslider)||(i.rangeslider={});var o=i.rangeslider,s=Ege.newContainer(a,"rangeslider");function l(L,x){return SI.coerce(o,s,Ggt,L,x)}var u,c;function f(L,x){return SI.coerce(u,c,Hgt,L,x)}var h=l("visible");if(h){l("bgcolor",r.plot_bgcolor),l("bordercolor"),l("borderwidth"),l("thickness"),l("autorange",!a.isValidRange(o.range)),l("range");var d=r._subplots;if(d)for(var v=d.cartesian.filter(function(L){return L.substr(0,L.indexOf("y"))===Cge.name2id(n)}).map(function(L){return L.substr(L.indexOf("y"),L.length)}),_=SI.simpleMap(v,Cge.id2name),b=0;b<_.length;b++){var p=_[b];u=o[p]||{},c=Ege.newContainer(s,p,"yaxis");var C=r[p],E;u.range&&C.isValidRange(u.range)&&(E="fixed");var A=f("rangemode",E);A!=="match"&&f("range",C.range.slice())}s._input=o}}});var Ige=ye((ssr,Pge)=>{"use strict";var jgt=hf().list,Wgt=wg().getAutoRange,Xgt=wI();Pge.exports=function(t){for(var r=jgt(t,"x",!0),n=0;n{"use strict";var MI=Oa(),Zgt=qa(),Ygt=Mc(),Jf=Dr(),EI=Jf.strTranslate,Dge=So(),b_=Ca(),Kgt=Mb(),Jgt=vh(),QU=hf(),$gt=gv(),Qgt=Tg(),il=wI();Fge.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,n=0;n=N.max)Z=T[H+1];else if(G=N.pmax)Z=T[H+1];else if(G0?e.touches[0].clientX:0}function emt(e,t,r,n){if(t._context.staticPlot)return;var i=e.select("rect."+il.slideBoxClassName).node(),a=e.select("rect."+il.grabAreaMinClassName).node(),o=e.select("rect."+il.grabAreaMaxClassName).node();function s(){var l=MI.event,u=l.target,c=Rge(l),f=c-e.node().getBoundingClientRect().left,h=n.d2p(r._rl[0]),d=n.d2p(r._rl[1]),v=$gt.coverSlip();this.addEventListener("touchmove",_),this.addEventListener("touchend",b),v.addEventListener("mousemove",_),v.addEventListener("mouseup",b);function _(p){var C=Rge(p),E=+C-c,A,L,x;switch(u){case i:if(x="ew-resize",h+E>r._length||d+E<0)return;A=h+E,L=d+E;break;case a:if(x="col-resize",h+E>r._length)return;A=h+E,L=d;break;case o:if(x="col-resize",d+E<0)return;A=h,L=d+E;break;default:x="ew-resize",A=f,L=f+E;break}if(L{"use strict";var cmt=Dr(),fmt=bI(),hmt=$U(),eV=Mge();Oge.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:cmt.extendFlat({},fmt,{yaxis:hmt})}}},layoutAttributes:bI(),handleDefaults:Lge(),calcAutorange:Ige(),draw:zge(),isVisible:eV.isVisible,makeData:eV.makeData,autoMarginOpts:eV.autoMarginOpts}});var CI=ye((csr,Nge)=>{"use strict";var dmt=ec(),Bge=Eh(),vmt=pl().templatedArray,pmt=vmt("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});Nge.exports={visible:{valType:"boolean",editType:"plot"},buttons:pmt,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:dmt({editType:"plot"}),bgcolor:{valType:"color",dflt:Bge.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:Bge.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var tV=ye((fsr,Uge)=>{"use strict";Uge.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var Hge=ye((hsr,Gge)=>{"use strict";var kI=Dr(),gmt=Ca(),mmt=pl(),ymt=Yd(),Vge=CI(),rV=tV();Gge.exports=function(t,r,n,i,a){var o=t.rangeselector||{},s=mmt.newContainer(r,"rangeselector");function l(d,v){return kI.coerce(o,s,Vge,d,v)}var u=ymt(o,s,{name:"buttons",handleItemDefaults:_mt,calendar:a}),c=l("visible",u.length>0);if(c){var f=xmt(r,n,i);l("x",f[0]),l("y",f[1]),kI.noneOrAll(t,r,["x","y"]),l("xanchor"),l("yanchor"),kI.coerceFont(l,"font",n.font);var h=l("bgcolor");l("activecolor",gmt.contrast(h,rV.lightAmount,rV.darkAmount)),l("bordercolor"),l("borderwidth")}};function _mt(e,t,r,n){var i=n.calendar;function a(l,u){return kI.coerce(e,t,Vge.buttons,l,u)}var o=a("visible");if(o){var s=a("step");s!=="all"&&(i&&i!=="gregorian"&&(s==="month"||s==="year")?t.stepmode="backward":a("stepmode"),a("count")),a("label")}}function xmt(e,t,r){for(var n=r.filter(function(s){return t[s].anchor===e._id}),i=0,a=0;a{"use strict";var bmt=gO(),wmt=Dr().titleCase;jge.exports=function(t,r){var n=t._name,i={};if(r.step==="all")i[n+".autorange"]=!0;else{var a=Tmt(t,r);i[n+".range[0]"]=a[0],i[n+".range[1]"]=a[1]}return i};function Tmt(e,t){var r=e.range,n=new Date(e.r2l(r[1])),i=t.step,a=bmt["utc"+wmt(i)],o=t.count,s;switch(t.stepmode){case"backward":s=e.l2r(+a.offset(n,-o));break;case"todate":var l=a.offset(n,-o);s=e.l2r(+a.ceil(l));break}var u=r[1];return[s,u]}});var eme=ye((vsr,Qge)=>{"use strict";var PI=Oa(),Amt=qa(),Smt=Mc(),Xge=Ca(),$ge=So(),Iy=Dr(),Zge=Iy.strTranslate,LI=iu(),Mmt=hf(),aV=Kh(),Yge=aV.LINE_SPACING,Kge=aV.FROM_TL,Jge=aV.FROM_BR,nV=tV(),Emt=Wge();Qge.exports=function(t){var r=t._fullLayout,n=r._infolayer.selectAll(".rangeselector").data(Cmt(t),kmt);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(i){var a=PI.select(this),o=i,s=o.rangeselector,l=a.selectAll("g.button").data(Iy.filterVisible(s.buttons));l.enter().append("g").classed("button",!0),l.exit().remove(),l.each(function(u){var c=PI.select(this),f=Emt(o,u);u._isActive=Lmt(o,u,f),c.call(iV,s,u),c.call(Imt,s,u,t),c.on("click",function(){t._dragged||Amt.call("_guiRelayout",t,f)}),c.on("mouseover",function(){u._isHovered=!0,c.call(iV,s,u)}),c.on("mouseout",function(){u._isHovered=!1,c.call(iV,s,u)})}),Dmt(t,l,s,o._name,a)})};function Cmt(e){for(var t=Mmt.list(e,"x",!0),r=[],n=0;n{"use strict";tme.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:CI()}}},layoutAttributes:CI(),handleDefaults:Hge(),draw:eme()}});var kc=ye(oV=>{"use strict";var ime=Ao().extendFlat;oV.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",i=e.trace?"trace ":"subplot ",a=t.description?" "+t.description:"",o={x:ime({},r,{}),y:ime({},r,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};oV.defaults=function(e,t,r,n){var i=n&&n.x||[0,1],a=n&&n.y||[0,1],o=t.grid;if(o){var s=r("domain.column");s!==void 0&&(s{"use strict";var Fmt=Dr(),zmt=n3().counter,Omt=kc().attributes,nme=hd().idRegex,qmt=pl(),sV={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[zmt("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[nme.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[nme.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Omt({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function II(e,t,r){var n=t[r+"axes"],i=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(n))return n;if(i.length)return i}function Bmt(e,t){var r=e.grid||{},n=II(t,r,"x"),i=II(t,r,"y");if(!e.grid&&!n&&!i)return;var a=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),o=Array.isArray(n),s=Array.isArray(i),l=o&&n!==r.xaxes&&s&&i!==r.yaxes,u,c;a?(u=r.subplots.length,c=r.subplots[0].length):(s&&(u=i.length),o&&(c=n.length));var f=qmt.newContainer(t,"grid");function h(x,k){return Fmt.coerce(r,f,sV,x,k)}var d=h("rows",u),v=h("columns",c);if(!(d*v>1)){delete t.grid;return}if(!a&&!o&&!s){var _=h("pattern")==="independent";_&&(a=!0)}f._hasSubplotGrid=a;var b=h("roworder"),p=b==="top to bottom",C=a?.2:.1,E=a?.3:.1,A,L;l&&t._splomGridDflt&&(A=t._splomGridDflt.xside,L=t._splomGridDflt.yside),f._domains={x:ame("x",h,C,A,v),y:ame("y",h,E,L,d,p)}}function ame(e,t,r,n,i,a){var o=t(e+"gap",r),s=t("domain."+e);t(e+"side",n);for(var l=new Array(i),u=s[0],c=(s[1]-u)/(i-o),f=c*(1-o),h=0;h{"use strict";lme.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var fme=ye((_sr,cme)=>{"use strict";var ume=Eo(),Umt=qa(),Vmt=Dr(),Gmt=pl(),Hmt=uV();cme.exports=function(e,t,r,n){var i="error_"+n.axis,a=Gmt.newContainer(t,i),o=e[i]||{};function s(v,_){return Vmt.coerce(o,a,Hmt,v,_)}var l=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=s("visible",l);if(u!==!1){var c=s("type","array"in o?"data":"percent"),f=!0;c!=="sqrt"&&(f=s("symmetric",!((c==="data"?"arrayminus":"valueminus")in o))),c==="data"?(s("array"),s("traceref"),f||(s("arrayminus"),s("tracerefminus"))):(c==="percent"||c==="constant")&&(s("value"),f||s("valueminus"));var h="copy_"+n.inherit+"style";if(n.inherit){var d=t["error_"+n.inherit];(d||{}).visible&&s(h,!(o.color||ume(o.thickness)||ume(o.width)))}(!n.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",Umt.traceIs(t,"gl3d")?0:4))}}});var cV=ye((xsr,dme)=>{"use strict";dme.exports=function(t){var r=t.type,n=t.symmetric;if(r==="data"){var i=t.array||[];if(n)return function(u,c){var f=+i[c];return[f,f]};var a=t.arrayminus||[];return function(u,c){var f=+i[c],h=+a[c];return!isNaN(f)||!isNaN(h)?[h||0,f||0]:[NaN,NaN]}}else{var o=hme(r,t.value),s=hme(r,t.valueminus);return n||t.valueminus===void 0?function(u){var c=o(u);return[c,c]}:function(u){return[s(u),o(u)]}}};function hme(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var gme=ye((bsr,pme)=>{"use strict";var fV=Eo(),jmt=qa(),hV=ho(),Wmt=Dr(),Xmt=cV();pme.exports=function(t){for(var r=t.calcdata,n=0;n{"use strict";var mme=Oa(),w_=Eo(),Zmt=So(),Ymt=Ru();yme.exports=function(t,r,n,i){var a,o=n.xaxis,s=n.yaxis,l=i&&i.duration>0,u=t._context.staticPlot;r.each(function(c){var f=c[0].trace,h=f.error_x||{},d=f.error_y||{},v;f.ids&&(v=function(C){return C.id});var _=Ymt.hasMarkers(f)&&f.marker.maxdisplayed>0;!d.visible&&!h.visible&&(c=[]);var b=mme.select(this).selectAll("g.errorbar").data(c,v);if(b.exit().remove(),!!c.length){h.visible||b.selectAll("path.xerror").remove(),d.visible||b.selectAll("path.yerror").remove(),b.style("opacity",1);var p=b.enter().append("g").classed("errorbar",!0);l&&p.style("opacity",0).transition().duration(i.duration).style("opacity",1),Zmt.setClipUrl(b,n.layerClipId,t),b.each(function(C){var E=mme.select(this),A=Kmt(C,o,s);if(!(_&&!C.vis)){var L,x=E.select("path.yerror");if(d.visible&&w_(A.x)&&w_(A.yh)&&w_(A.ys)){var k=d.width;L="M"+(A.x-k)+","+A.yh+"h"+2*k+"m-"+k+",0V"+A.ys,A.noYS||(L+="m-"+k+",0h"+2*k),a=!x.size(),a?x=E.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):l&&(x=x.transition().duration(i.duration).ease(i.easing)),x.attr("d",L)}else x.remove();var M=E.select("path.xerror");if(h.visible&&w_(A.y)&&w_(A.xh)&&w_(A.xs)){var g=(h.copy_ystyle?d:h).width;L="M"+A.xh+","+(A.y-g)+"v"+2*g+"m0,-"+g+"H"+A.xs,A.noXS||(L+="m0,-"+g+"v"+2*g),a=!M.size(),a?M=E.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):l&&(M=M.transition().duration(i.duration).ease(i.easing)),M.attr("d",L)}else M.remove()}})}})};function Kmt(e,t,r){var n={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(n.yh=r.c2p(e.yh),n.ys=r.c2p(e.ys),w_(n.ys)||(n.noYS=!0,n.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=t.c2p(e.xh),n.xs=t.c2p(e.xs),w_(n.xs)||(n.noXS=!0,n.xs=t.c2p(e.xs,!0))),n}});var wme=ye((Tsr,bme)=>{"use strict";var Jmt=Oa(),xme=Ca();bme.exports=function(t){t.each(function(r){var n=r[0].trace,i=n.error_y||{},a=n.error_x||{},o=Jmt.select(this);o.selectAll("path.yerror").style("stroke-width",i.thickness+"px").call(xme.stroke,i.color),a.copy_ystyle&&(a=i),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(xme.stroke,a.color)})}});var Sme=ye((Asr,Ame)=>{"use strict";var c4=Dr(),Tme=mc().overrideAll,f4=uV(),$b={error_x:c4.extendFlat({},f4),error_y:c4.extendFlat({},f4)};delete $b.error_x.copy_zstyle;delete $b.error_y.copy_zstyle;delete $b.error_y.copy_ystyle;var h4={error_x:c4.extendFlat({},f4),error_y:c4.extendFlat({},f4),error_z:c4.extendFlat({},f4)};delete h4.error_x.copy_ystyle;delete h4.error_y.copy_ystyle;delete h4.error_z.copy_ystyle;delete h4.error_z.copy_zstyle;Ame.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:$b,bar:$b,histogram:$b,scatter3d:Tme(h4,"calc","nested"),scattergl:Tme($b,"calc","nested")}},supplyDefaults:fme(),calc:gme(),makeComputeError:cV(),plot:_me(),style:wme(),hoverInfo:$mt};function $mt(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var Eme=ye((Ssr,Mme)=>{"use strict";Mme.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var Dme=ye((Msr,Rme)=>{"use strict";var T_=Oa(),dV=cd(),DI=Mc(),Cme=qa(),Ry=ho(),RI=gv(),B0=Dr(),Ug=B0.strTranslate,Ime=Ao().extendFlat,vV=Tg(),Ng=So(),pV=Ca(),Qmt=Mb(),eyt=iu(),tyt=Dv().flipScale,ryt=t4(),iyt=aI(),nyt=Rd(),gV=Kh(),kme=gV.LINE_SPACING,Lme=gV.FROM_TL,Pme=gV.FROM_BR,gf=Eme().cn;function ayt(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+gf.colorbar).data(oyt(e),function(n){return n._id});r.enter().append("g").attr("class",function(n){return n._id}).classed(gf.colorbar,!0),r.each(function(n){var i=T_.select(this);B0.ensureSingle(i,"rect",gf.cbbg),B0.ensureSingle(i,"g",gf.cbfills),B0.ensureSingle(i,"g",gf.cblines),B0.ensureSingle(i,"g",gf.cbaxis,function(o){o.classed(gf.crisp,!0)}),B0.ensureSingle(i,"g",gf.cbtitleunshift,function(o){o.append("g").classed(gf.cbtitle,!0)}),B0.ensureSingle(i,"rect",gf.cboutline);var a=syt(i,n,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&lyt(i,n,e)}),r.exit().each(function(n){DI.autoMargin(e,n._id)}).remove(),r.order()}function oyt(e){var t=e._fullLayout,r=e.calcdata,n=[],i,a,o,s;function l(E){return Ime(E,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof s.calc=="function"?s.calc(e,o,i):(i._fillgradient=a.reversescale?tyt(a.colorscale):a.colorscale,i._zrange=[a[s.min],a[s.max]])}for(var c=0;c1){var Fe=Math.pow(10,Math.floor(Math.log(ge)/Math.LN10));De*=Fe*B0.roundUp(ge/Fe,[2,5,10]),(Math.abs(z.start)/z.size+1e-6)%1<2e-6&&(Le.tick0=0)}Le.dtick=De}Le.domain=n?[ie+v/A.h,ie+j-v/A.h]:[ie+d/A.w,ie+j-d/A.w],Le.setScale(),e.attr("transform",Ug(Math.round(A.l),Math.round(A.t)));var ce=e.select("."+gf.cbtitleunshift).attr("transform",Ug(-Math.round(A.l),-Math.round(A.t))),Ye=Le.ticklabelposition,ct=Le.title.font.size,pt=e.select("."+gf.cbaxis),Wt,st=0,lt=0;function Gt(ur,Qe){var Et={propContainer:Le,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:E._dfltTitle.colorbar,containerGroup:e.select("."+gf.cbtitle)},er=ur.charAt(0)==="h"?ur.substr(1):"h"+ur;e.selectAll("."+er+",."+er+"-math-group").remove(),Qmt.draw(r,ur,Ime(Et,Qe||{}))}function Nt(){if(n&&Ae||!n&&!Ae){var ur,Qe;M==="top"&&(ur=d+A.l+re*_,Qe=v+A.t+oe*(1-ie-j)+3+ct*.75),M==="bottom"&&(ur=d+A.l+re*_,Qe=v+A.t+oe*(1-ie)-3-ct*.25),M==="right"&&(Qe=v+A.t+oe*b+3+ct*.75,ur=d+A.l+re*ie),Gt(Le._id+"title",{attributes:{x:ur,y:Qe,"text-anchor":n?"start":"middle"}})}}function $t(){if(n&&!Ae||!n&&Ae){var ur=Le.position||0,Qe=Le._offset+Le._length/2,Et,er;if(M==="right")er=Qe,Et=A.l+re*ur+10+ct*(Le.showticklabels?1:.5);else if(Et=Qe,M==="bottom"&&(er=A.t+oe*ur+10+(Ye.indexOf("inside")===-1?Le.tickfont.size:0)+(Le.ticks!=="intside"&&t.ticklen||0)),M==="top"){var Ut=k.text.split("
").length;er=A.t+oe*ur+10-Z-kme*ct*Ut}Gt((n?"h":"v")+Le._id+"title",{avoid:{selection:T_.select(r).selectAll("g."+Le._id+"tick"),side:M,offsetTop:n?0:A.t,offsetLeft:n?A.l:0,maxShift:n?E.width:E.height},attributes:{x:Et,y:er,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function sr(){if(!n&&!Ae||n&&Ae){var ur=e.select("."+gf.cbtitle),Qe=ur.select("text"),Et=[-l/2,l/2],er=ur.select(".h"+Le._id+"title-math-group").node(),Ut=15.6;Qe.node()&&(Ut=parseInt(Qe.node().style.fontSize,10)*kme);var Ft;if(er?(Ft=Ng.bBox(er),lt=Ft.width,st=Ft.height,st>Ut&&(Et[1]-=(st-Ut)/2)):Qe.node()&&!Qe.classed(gf.jsPlaceholder)&&(Ft=Ng.bBox(Qe.node()),lt=Ft.width,st=Ft.height),n){if(st){if(st+=5,M==="top")Le.domain[1]-=st/A.h,Et[1]*=-1;else{Le.domain[0]+=st/A.h;var bt=eyt.lineCount(Qe);Et[1]+=(1-bt)*Ut}ur.attr("transform",Ug(Et[0],Et[1])),Le.setScale()}}else lt&&(M==="right"&&(Le.domain[0]+=(lt+ct/2)/A.w),ur.attr("transform",Ug(Et[0],Et[1])),Le.setScale())}e.selectAll("."+gf.cbfills+",."+gf.cblines).attr("transform",n?Ug(0,Math.round(A.h*(1-Le.domain[1]))):Ug(Math.round(A.w*Le.domain[0]),0)),pt.attr("transform",n?Ug(0,Math.round(-A.t)):Ug(Math.round(-A.l),0));var yt=e.select("."+gf.cbfills).selectAll("rect."+gf.cbfill).attr("style","").data(V);yt.enter().append("rect").classed(gf.cbfill,!0).attr("style",""),yt.exit().remove();var Yt=g.map(Le.c2p).map(Math.round).sort(function(Wr,Ur){return Wr-Ur});yt.each(function(Wr,Ur){var dt=[Ur===0?g[0]:(V[Ur]+V[Ur-1])/2,Ur===V.length-1?g[1]:(V[Ur]+V[Ur+1])/2].map(Le.c2p).map(Math.round);n&&(dt[1]=B0.constrain(dt[1]+(dt[1]>dt[0])?1:-1,Yt[0],Yt[1]));var Ge=T_.select(this).attr(n?"x":"y",_e).attr(n?"y":"x",T_.min(dt)).attr(n?"width":"height",Math.max(Z,2)).attr(n?"height":"width",Math.max(T_.max(dt)-T_.min(dt),2));if(t._fillgradient)Ng.gradient(Ge,r,t._id,n?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Je=T(Wr).replace("e-","");Ge.attr("fill",dV(Je).toHexString())}});var lr=e.select("."+gf.cblines).selectAll("path."+gf.cbline).data(x.color&&x.width?G:[]);lr.enter().append("path").classed(gf.cbline,!0),lr.exit().remove(),lr.each(function(Wr){var Ur=_e,dt=Math.round(Le.c2p(Wr))+x.width/2%1;T_.select(this).attr("d","M"+(n?Ur+","+dt:dt+","+Ur)+(n?"h":"v")+Z).call(Ng.lineGroupStyle,x.width,P(Wr),x.dash)}),pt.selectAll("g."+Le._id+"tick,path").remove();var Tr=_e+Z+(l||0)/2-(t.ticks==="outside"?1:0),Rr=Ry.calcTicks(Le),ei=Ry.getTickSigns(Le)[2];return Ry.drawTicks(r,Le,{vals:Le.ticks==="inside"?Ry.clipEnds(Le,Rr):Rr,layer:pt,path:Ry.makeTickPath(Le,Tr,ei),transFn:Ry.makeTransTickFn(Le)}),Ry.drawLabels(r,Le,{vals:Rr,layer:pt,transFn:Ry.makeTransTickLabelFn(Le),labelFns:Ry.makeLabelFns(Le,Tr)})}function wr(){var ur,Qe=Z+l/2;Ye.indexOf("inside")===-1&&(ur=Ng.bBox(pt.node()),Qe+=n?ur.width:ur.height),Wt=ce.select("text");var Et=0,er=n&&M==="top",Ut=!n&&M==="right",Ft=0;if(Wt.node()&&!Wt.classed(gf.jsPlaceholder)){var bt,yt=ce.select(".h"+Le._id+"title-math-group").node();yt&&(n&&Ae||!n&&!Ae)?(ur=Ng.bBox(yt),Et=ur.width,bt=ur.height):(ur=Ng.bBox(ce.node()),Et=ur.right-A.l-(n?_e:Se),bt=ur.bottom-A.t-(n?Se:_e),!n&&M==="top"&&(Qe+=ur.height,Ft=ur.height)),Ut&&(Wt.attr("transform",Ug(Et/2+ct/2,0)),Et*=2),Qe=Math.max(Qe,n?Et:bt)}var Yt=(n?d:v)*2+Qe+u+l/2,lr=0;!n&&k.text&&h==="bottom"&&b<=0&&(lr=Yt/2,Yt+=lr,Ft+=lr),E._hColorbarMoveTitle=lr,E._hColorbarMoveCBTitle=Ft;var Tr=u+l,Rr=(n?_e:Se)-Tr/2-(n?d:0),ei=(n?Se:_e)-(n?N:v+Ft-lr);e.select("."+gf.cbbg).attr("x",Rr).attr("y",ei).attr(n?"width":"height",Math.max(Yt-lr,2)).attr(n?"height":"width",Math.max(N+Tr,2)).call(pV.fill,c).call(pV.stroke,t.bordercolor).style("stroke-width",u);var Wr=Ut?Math.max(Et-10,0):0;e.selectAll("."+gf.cboutline).attr("x",(n?_e:Se+d)+Wr).attr("y",(n?Se+v-N:_e)+(er?st:0)).attr(n?"width":"height",Math.max(Z,2)).attr(n?"height":"width",Math.max(N-(n?2*v+st:2*d+Wr),2)).call(pV.stroke,t.outlinecolor).style({fill:"none","stroke-width":l});var Ur=n?Me*Yt:0,dt=n?0:(1-ke)*Yt-Ft;if(Ur=C?A.l-Ur:-Ur,dt=p?A.t-dt:-dt,e.attr("transform",Ug(Ur,dt)),!n&&(u||dV(c).getAlpha()&&!dV.equals(E.paper_bgcolor,c))){var Ge=pt.selectAll("text"),Je=Ge[0].length,je=e.select("."+gf.cbbg).node(),$e=Ng.bBox(je),wt=Ng.getTranslate(e),Ie=2;Ge.each(function(fi,Hi){var Pn=0,wn=Je-1;if(Hi===Pn||Hi===wn){var pn=Ng.bBox(this),Vn=Ng.getTranslate(this),kn;if(Hi===wn){var ea=pn.right+Vn.x,ua=$e.right+wt.x+Se-u-Ie+_;kn=ua-ea,kn>0&&(kn=0)}else if(Hi===Pn){var Vt=pn.left+Vn.x,_t=$e.left+wt.x+Se+u+Ie;kn=_t-Vt,kn<0&&(kn=0)}kn&&(Je<3?this.setAttribute("transform","translate("+kn+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var xe={},Ce=Lme[f],vt=Pme[f],nr=Lme[h],ir=Pme[h],pr=Yt-Z;n?(a==="pixels"?(xe.y=b,xe.t=N*nr,xe.b=N*ir):(xe.t=xe.b=0,xe.yt=b+i*nr,xe.yb=b-i*ir),s==="pixels"?(xe.x=_,xe.l=Yt*Ce,xe.r=Yt*vt):(xe.l=pr*Ce,xe.r=pr*vt,xe.xl=_-o*Ce,xe.xr=_+o*vt)):(a==="pixels"?(xe.x=_,xe.l=N*Ce,xe.r=N*vt):(xe.l=xe.r=0,xe.xl=_+i*Ce,xe.xr=_-i*vt),s==="pixels"?(xe.y=1-b,xe.t=Yt*nr,xe.b=Yt*ir):(xe.t=pr*nr,xe.b=pr*ir,xe.yt=b-o*nr,xe.yb=b+o*ir));var oi=t.y<.5?"b":"t",di=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Jr={r:E.width-Rr-Ur,l:Rr+xe.r,b:E.height-ei-dt,t:ei+xe.b};C&&p?DI.autoMargin(r,t._id,xe):C?r._fullLayout._reservedMargin[t._id][oi]=Jr[oi]:p||n?r._fullLayout._reservedMargin[t._id][di]=Jr[di]:r._fullLayout._reservedMargin[t._id][oi]=Jr[oi]}return B0.syncOrAsync([DI.previousPromises,Nt,sr,$t,DI.previousPromises,wr],r)}function lyt(e,t,r){var n=t.orientation==="v",i=r._fullLayout,a=i._size,o,s,l;RI.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),vV(e)},moveFn:function(u,c){e.attr("transform",o+Ug(u,c)),s=RI.align((n?t._uFrac:t._vFrac)+u/a.w,n?t._thickFrac:t._lenFrac,0,1,t.xanchor),l=RI.align((n?t._vFrac:1-t._uFrac)-c/a.h,n?t._lenFrac:t._thickFrac,0,1,t.yanchor);var f=RI.getCursor(s,l,t.xanchor,t.yanchor);vV(e,f)},doneFn:function(){if(vV(e),s!==void 0&&l!==void 0){var u={};u[t._propPrefix+"x"]=s,u[t._propPrefix+"y"]=l,t._traceIndex!==void 0?Cme.call("_guiRestyle",r,u,t._traceIndex):Cme.call("_guiRelayout",r,u)}}})}function uyt(e,t,r){var n=t._levels,i=[],a=[],o,s,l=n.end+n.size/100,u=n.size,c=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(s=0;s<1e5&&(o=n.start+s*u,!(u>0?o>=l:o<=l));s++)o>c&&o0?o>=l:o<=l));s++)o>r[0]&&o{"use strict";Fme.exports={moduleType:"component",name:"colorbar",attributes:$6(),supplyDefaults:Cq(),draw:Dme().draw,hasColorbar:bq()}});var qme=ye((Csr,Ome)=>{"use strict";Ome.exports={moduleType:"component",name:"legend",layoutAttributes:bB(),supplyLayoutDefaults:AB(),draw:zB(),style:IB()}});var Nme=ye((ksr,Bme)=>{"use strict";Bme.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}});var Vme=ye((Lsr,Ume)=>{"use strict";Ume.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var yV=ye((Psr,Wme)=>{"use strict";var fyt=qa(),jme=Dr(),mV=jme.extendFlat,Gme=jme.extendDeep;function Hme(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function hyt(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}Wme.exports=function(t,r){var n,i=t.data,a=t.layout,o=Gme([],i),s=Gme({},a,Hme(r.tileClass)),l=t._context||{};if(r.width&&(s.width=r.width),r.height&&(s.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){s.annotations=[];var u=Object.keys(s);for(n=0;n{"use strict";var dyt=vb().EventEmitter,vyt=qa(),pyt=Dr(),Xme=Ly(),gyt=yV(),myt=UP(),yyt=VP();function _yt(e,t){var r=new dyt,n=gyt(e,{format:"png"}),i=n.gd;i.style.position="absolute",i.style.left="-5000px",document.body.appendChild(i);function a(){var s=Xme.getDelay(i._fullLayout);setTimeout(function(){var l=myt(i),u=document.createElement("canvas");u.id=pyt.randstr(),r=yyt({format:t.format,width:i._fullLayout.width,height:i._fullLayout.height,canvas:u,emitter:r,svg:l}),r.clean=function(){i&&document.body.removeChild(i)}},s)}var o=Xme.getRedrawFunc(i);return vyt.call("_doPlot",i,n.data,n.layout,n.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}Zme.exports=_yt});var $me=ye((Rsr,Jme)=>{"use strict";var Kme=Ly(),xyt={getDelay:Kme.getDelay,getRedrawFunc:Kme.getRedrawFunc,clone:yV(),toSVG:UP(),svgToImg:VP(),toImage:Yme(),downloadImage:QN()};Jme.exports=xyt});var eye=ye(Dy=>{"use strict";Dy.version=a6().version;dee();rne();var byt=qa(),d4=Dy.register=byt.register,xV=wde(),Qme=Object.keys(xV);for(FI=0;FI{"use strict";tye.exports=eye()});var Qb=ye((zsr,iye)=>{"use strict";iye.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Lm=ye((Osr,sye)=>{"use strict";var Of=pf(),nye=df().axisHoverFormat,wyt=Qo().hovertemplateAttrs,Tyt=Qo().texttemplateAttrs,oye=Tu(),Ayt=ec(),aye=Qb(),Syt=Pd().pattern,e2=Ao().extendFlat,bV=Ayt({editType:"calc",arrayOk:!0,colorEditType:"style"}),Myt=Of.marker,Eyt=Myt.line,Cyt=e2({},Eyt.width,{dflt:0}),kyt=e2({width:Cyt,editType:"calc"},oye("marker.line")),Lyt=e2({line:kyt,editType:"calc"},oye("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:Syt,cornerradius:{valType:"any",editType:"calc"}});sye.exports={x:Of.x,x0:Of.x0,dx:Of.dx,y:Of.y,y0:Of.y0,dy:Of.dy,xperiod:Of.xperiod,yperiod:Of.yperiod,xperiod0:Of.xperiod0,yperiod0:Of.yperiod0,xperiodalignment:Of.xperiodalignment,yperiodalignment:Of.yperiodalignment,xhoverformat:nye("x"),yhoverformat:nye("y"),text:Of.text,texttemplate:Tyt({editType:"plot"},{keys:aye.eventDataKeys}),hovertext:Of.hovertext,hovertemplate:wyt({},{keys:aye.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:e2({},bV,{}),insidetextfont:e2({},bV,{}),outsidetextfont:e2({},bV,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:e2({},Of.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:Lyt,offsetgroup:Of.offsetgroup,alignmentgroup:Of.alignmentgroup,selected:{marker:{opacity:Of.selected.marker.opacity,color:Of.selected.marker.color,editType:"style"},textfont:Of.selected.textfont,editType:"style"},unselected:{marker:{opacity:Of.unselected.marker.opacity,color:Of.unselected.marker.color,editType:"style"},textfont:Of.unselected.textfont,editType:"style"},zorder:Of.zorder}});var OI=ye((qsr,lye)=>{"use strict";lye.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var qI=ye((Bsr,fye)=>{"use strict";var Pyt=Ca(),uye=Dv().hasColorscale,cye=Jh(),Iyt=Dr().coercePattern;fye.exports=function(t,r,n,i,a){var o=n("marker.color",i),s=uye(t,"marker");s&&cye(t,r,a,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",Pyt.defaultLine),uye(t,"marker.line")&&cye(t,r,a,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width"),n("marker.opacity"),Iyt(n,"marker.pattern",o,s),n("selected.marker.color"),n("unselected.marker.color")}});var r0=ye((Nsr,mye)=>{"use strict";var hye=Eo(),xT=Dr(),dye=Ca(),Ryt=qa(),Dyt=K3(),Fyt=Pg(),zyt=qI(),Oyt=Gb(),vye=Lm(),BI=xT.coerceFont;function qyt(e,t,r,n){function i(u,c){return xT.coerce(e,t,vye,u,c)}var a=Dyt(e,t,n,i);if(!a){t.visible=!1;return}Fyt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate");var o=i("textposition");gye(e,t,n,i,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),zyt(e,t,i,r,n);var s=(t.marker.line||{}).color,l=Ryt.getComponentMethod("errorbars","supplyDefaults");l(e,t,s||dye.defaultLine,{axis:"y"}),l(e,t,s||dye.defaultLine,{axis:"x",inherit:"y"}),xT.coerceSelectionMarkerOpacity(t,i)}function Byt(e,t){var r,n;function i(s,l){return xT.coerce(n._input,n,vye,s,l)}for(var a=0;a=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&hye(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function gye(e,t,r,n,i,a){a=a||{};var o=a.moduleHasSelected!==!1,s=a.moduleHasUnselected!==!1,l=a.moduleHasConstrain!==!1,u=a.moduleHasCliponaxis!==!1,c=a.moduleHasTextangle!==!1,f=a.moduleHasInsideanchor!==!1,h=!!a.hasPathbar,d=Array.isArray(i)||i==="auto",v=d||i==="inside",_=d||i==="outside";if(v||_){var b=BI(n,"textfont",r.font),p=xT.extendFlat({},b),C=e.textfont&&e.textfont.color,E=!C;if(E&&delete p.color,BI(n,"insidetextfont",p),h){var A=xT.extendFlat({},b);E&&delete A.color,BI(n,"pathbar.textfont",A)}_&&BI(n,"outsidetextfont",b),o&&n("selected.textfont.color"),s&&n("unselected.textfont.color"),l&&n("constraintext"),u&&n("cliponaxis"),c&&n("textangle"),n("texttemplate")}v&&f&&n("insidetextanchor")}mye.exports={supplyDefaults:qyt,crossTraceDefaults:Byt,handleText:gye,validateCornerradius:pye}});var wV=ye((Usr,yye)=>{"use strict";var Nyt=qa(),Uyt=ho(),Vyt=Dr(),Gyt=OI(),Hyt=r0().validateCornerradius;yye.exports=function(e,t,r){function n(_,b){return Vyt.coerce(e,t,Gyt,_,b)}for(var i=!1,a=!1,o=!1,s={},l=n("barmode"),u=l==="group",c=0;c0&&!s[h]&&(o=!0),s[h]=!0),f.visible&&f.type==="histogram"){var d=Uyt.getFromId({_fullLayout:t},f[f.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(a=!0)}}if(!i){delete t.barmode;return}l!=="overlay"&&n("barnorm"),n("bargap",a&&!o?0:.2),n("bargroupgap");var v=n("barcornerradius");t.barcornerradius=Hyt(v)}});var v4=ye((Vsr,_ye)=>{"use strict";var bT=Dr();_ye.exports=function(t,r){for(var n=0;n{"use strict";var xye=ho(),bye=Rg(),wye=Dv().hasColorscale,Tye=Fv(),jyt=v4(),Wyt=z0();Aye.exports=function(t,r){var n=xye.getFromId(t,r.xaxis||"x"),i=xye.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c,f={msUTC:!!(r.base||r.base===0)};r.orientation==="h"?(a=n.makeCalcdata(r,"x",f),s=i.makeCalcdata(r,"y"),l=bye(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y",f),s=n.makeCalcdata(r,"x"),l=bye(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;for(var h=Math.min(o.length,a.length),d=new Array(h),v=0;v{"use strict";var Xyt=Oa(),Zyt=Dr();function Yyt(e,t,r){var n=e._fullLayout,i=n["_"+r+"Text_minsize"];if(i){var a=n.uniformtext.mode==="hide",o;switch(r){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}t.selectAll(o).each(function(s){var l=s.transform;if(l){l.scale=a&&l.hide?0:i/l.fontSize;var u=Xyt.select(this).select("text");Zyt.setTransormAndDisplay(u,l)}})}}function Kyt(e,t,r){if(r.uniformtext.mode){var n=Mye(e),i=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a{"use strict";var $yt=Eo(),Qyt=cd(),Cye=Dr().isArrayOrTypedArray;t2.coerceString=function(e,t,r){if(typeof t=="string"){if(t||!e.noBlank)return t}else if((typeof t=="number"||t===!0)&&!e.strict)return String(t);return r!==void 0?r:e.dflt};t2.coerceNumber=function(e,t,r){if($yt(t)){t=+t;var n=e.min,i=e.max,a=n!==void 0&&ti;if(!a)return t}return r!==void 0?r:e.dflt};t2.coerceColor=function(e,t,r){return Qyt(t).isValid()?t:r!==void 0?r:e.dflt};t2.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};t2.getValue=function(e,t){var r;return Cye(e)?t{"use strict";var p4=Oa(),e1t=Ca(),g4=So(),kye=Dr(),Lye=qa(),Pye=_v().resizeText,TV=Lm(),t1t=TV.textfont,r1t=TV.insidetextfont,i1t=TV.outsidetextfont,Qd=NI();function n1t(e){var t=p4.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");Pye(e,t,"bar");var r=t.size(),n=e._fullLayout;t.style("opacity",function(i){return i[0].trace.opacity}).each(function(i){(n.barmode==="stack"&&r>1||n.bargap===0&&n.bargroupgap===0&&!i[0].trace.marker.line.width)&&p4.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(i){var a=p4.select(this),o=i[0].trace;Iye(a,o,e)}),Lye.getComponentMethod("errorbars","style")(t)}function Iye(e,t,r){g4.pointStyle(e.selectAll("path"),t,r),Rye(e,t,r)}function Rye(e,t,r){e.selectAll("text").each(function(n){var i=p4.select(this),a=kye.ensureUniformFontSize(r,Dye(i,n,t,r));g4.font(i,a)})}function a1t(e,t,r){var n=t[0].trace;n.selectedpoints?o1t(r,n,e):(Iye(r,n,e),Lye.getComponentMethod("errorbars","style")(r))}function o1t(e,t,r){g4.selectedPointStyle(e.selectAll("path"),t),s1t(e.selectAll("text"),t,r)}function s1t(e,t,r){e.each(function(n){var i=p4.select(this),a;if(n.selected){a=kye.ensureUniformFontSize(r,Dye(i,n,t,r));var o=t.selected.textfont&&t.selected.textfont.color;o&&(a.color=o),g4.font(i,a)}else g4.selectedTextStyle(i,t)})}function Dye(e,t,r,n){var i=n._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=qye(t,r);a=zye(r,t.i,i,o)}else e.classed("bartext-outside")&&(a=Oye(r,t.i,i));return a}function Fye(e,t,r){return AV(t1t,e.textfont,t,r)}function zye(e,t,r,n){var i=Fye(e,t,r),a=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[t]===void 0;return a&&(i={color:e1t.contrast(n),family:i.family,size:i.size,weight:i.weight,style:i.style,variant:i.variant,textcase:i.textcase,lineposition:i.lineposition,shadow:i.shadow}),AV(r1t,e.insidetextfont,t,i)}function Oye(e,t,r){var n=Fye(e,t,r);return AV(i1t,e.outsidetextfont,t,n)}function AV(e,t,r,n){t=t||{};var i=Qd.getValue(t.family,r),a=Qd.getValue(t.size,r),o=Qd.getValue(t.color,r),s=Qd.getValue(t.weight,r),l=Qd.getValue(t.style,r),u=Qd.getValue(t.variant,r),c=Qd.getValue(t.textcase,r),f=Qd.getValue(t.lineposition,r),h=Qd.getValue(t.shadow,r);return{family:Qd.coerceString(e.family,i,n.family),size:Qd.coerceNumber(e.size,a,n.size),color:Qd.coerceColor(e.color,o,n.color),weight:Qd.coerceString(e.weight,s,n.weight),style:Qd.coerceString(e.style,l,n.style),variant:Qd.coerceString(e.variant,u,n.variant),textcase:Qd.coerceString(e.variant,c,n.textcase),lineposition:Qd.coerceString(e.variant,f,n.lineposition),shadow:Qd.coerceString(e.variant,h,n.shadow)}}function qye(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}Bye.exports={style:n1t,styleTextPoints:Rye,styleOnSelect:a1t,getInsideTextFont:zye,getOutsideTextFont:Oye,getBarColor:qye,resizeText:Pye}});var i2=ye((Xsr,Xye)=>{"use strict";var UI=Oa(),VI=Eo(),Fd=Dr(),l1t=iu(),u1t=Ca(),A_=So(),c1t=qa(),GI=ho().tickText,Nye=_v(),f1t=Nye.recordMinTextSize,h1t=Nye.clearMinTextSize,SV=N0(),wT=NI(),d1t=Qb(),Uye=Lm(),v1t=Uye.text,p1t=Uye.textposition,g1t=rp().appendArrayPointValue,Uv=d1t.TEXTPAD;function m1t(e){return e.id}function y1t(e){if(e.ids)return m1t}function MV(e){return(e>0)-(e<0)}function Pm(e,t){return e0}function x1t(e,t,r,n,i,a){var o=t.xaxis,s=t.yaxis,l=e._fullLayout,u=e._context.staticPlot;i||(i={mode:l.barmode,norm:l.barmode,gap:l.bargap,groupgap:l.bargroupgap},h1t("bar",l));var c=Fd.makeTraceGroups(n,r,"trace bars").each(function(f){var h=UI.select(this),d=f[0].trace,v=f[0].t,_=d.type==="waterfall",b=d.type==="funnel",p=d.type==="histogram",C=d.type==="bar",E=C||b,A=0;_&&d.connector.visible&&d.connector.mode==="between"&&(A=d.connector.line.width/2);var L=d.orientation==="h",x=Gye(i),k=Fd.ensureSingle(h,"g","points"),M=y1t(d),g=k.selectAll("g.point").data(Fd.identity,M);g.enter().append("g").classed("point",!0),g.exit().remove(),g.each(function(T,z){var O=UI.select(this),V=_1t(T,o,s,L),G=V[0][0],Z=V[0][1],H=V[1][0],N=V[1][1],j=(L?Z-G:N-H)===0;j&&E&&wT.getLineWidth(d,T)&&(j=!1),j||(j=!VI(G)||!VI(Z)||!VI(H)||!VI(N)),T.isBlank=j,j&&(L?Z=G:N=H),A&&!j&&(L?(G-=Pm(G,Z)*A,Z+=Pm(G,Z)*A):(H-=Pm(H,N)*A,N+=Pm(H,N)*A));var re,oe;if(d.type==="waterfall"){if(!j){var _e=d[T.dir].marker;re=_e.line.width,oe=_e.color}}else re=wT.getLineWidth(d,T),oe=T.mc||d.marker.color;function Me(Qe){var Et=UI.round(re/2%1,2);return i.gap===0&&i.groupgap===0?UI.round(Math.round(Qe)-Et,2):Qe}function ke(Qe,Et,er){return er&&Qe===Et?Qe:Math.abs(Qe-Et)>=2?Me(Qe):Qe>Et?Math.ceil(Qe):Math.floor(Qe)}var me=u1t.opacity(oe),ie=me<1||re>.01?Me:ke;e._context.staticPlot||(G=ie(G,Z,L),Z=ie(Z,G,L),H=ie(H,N,!L),N=ie(N,H,!L));var Se=L?o.c2p:s.c2p,Le;T.s0>0?Le=T._sMax:T.s0<0?Le=T._sMin:Le=T.s1>0?T._sMax:T._sMin;function Ae(Qe,Et){if(!Qe)return 0;var er=Math.abs(L?N-H:Z-G),Ut=Math.abs(L?Z-G:N-H),Ft=ie(Math.abs(Se(Le,!0)-Se(0,!0))),bt=T.hasB?Math.min(er/2,Ut/2):Math.min(er/2,Ft),yt;if(Et==="%"){var Yt=Math.min(50,Qe);yt=er*(Yt/100)}else yt=Qe;return ie(Math.max(Math.min(yt,bt),0))}var De=C||p?Ae(v.cornerradiusvalue,v.cornerradiusform):0,Pe,ge,Fe="M"+G+","+H+"V"+N+"H"+Z+"V"+H+"Z",ce=0;if(De&&T.s){var Ye=MV(T.s0)===0||MV(T.s)===MV(T.s0)?T.s1:T.s0;if(ce=ie(T.hasB?0:Math.abs(Se(Le,!0)-Se(Ye,!0))),ce0?Math.sqrt(ce*(2*De-ce)):0,Gt=ct>0?Math.max:Math.min;Pe="M"+G+","+H+"V"+(N-st*pt)+"H"+Gt(Z-(De-ce)*ct,G)+"A "+De+","+De+" 0 0 "+Wt+" "+Z+","+(N-De*pt-lt)+"V"+(H+De*pt+lt)+"A "+De+","+De+" 0 0 "+Wt+" "+Gt(Z-(De-ce)*ct,G)+","+(H+st*pt)+"Z"}else if(T.hasB)Pe="M"+(G+De*ct)+","+H+"A "+De+","+De+" 0 0 "+Wt+" "+G+","+(H+De*pt)+"V"+(N-De*pt)+"A "+De+","+De+" 0 0 "+Wt+" "+(G+De*ct)+","+N+"H"+(Z-De*ct)+"A "+De+","+De+" 0 0 "+Wt+" "+Z+","+(N-De*pt)+"V"+(H+De*pt)+"A "+De+","+De+" 0 0 "+Wt+" "+(Z-De*ct)+","+H+"Z";else{ge=Math.abs(N-H)+ce;var Nt=ge0?Math.sqrt(ce*(2*De-ce)):0,sr=pt>0?Math.max:Math.min;Pe="M"+(G+Nt*ct)+","+H+"V"+sr(N-(De-ce)*pt,H)+"A "+De+","+De+" 0 0 "+Wt+" "+(G+De*ct-$t)+","+N+"H"+(Z-De*ct+$t)+"A "+De+","+De+" 0 0 "+Wt+" "+(Z-Nt*ct)+","+sr(N-(De-ce)*pt,H)+"V"+H+"Z"}}else Pe=Fe}else Pe=Fe;var wr=Vye(Fd.ensureSingle(O,"path"),l,i,a);if(wr.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((Z-G)*(N-H))||j&&e._context.staticPlot?"M0,0Z":Pe).call(A_.setClipUrl,t.layerClipId,e),!l.uniformtext.mode&&x){var ur=A_.makePointStyleFns(d);A_.singlePointStyle(T,wr,d,ur,e)}b1t(e,t,O,f,z,G,Z,H,N,De,ce,i,a),t.layerClipId&&A_.hideOutsideRangePoint(T,O.select("text"),o,s,d.xcalendar,d.ycalendar)});var P=d.cliponaxis===!1;A_.setClipUrl(h,P?null:t.layerClipId,e)});c1t.getComponentMethod("errorbars","plot")(e,c,t,i)}function b1t(e,t,r,n,i,a,o,s,l,u,c,f,h){var d=t.xaxis,v=t.yaxis,_=e._fullLayout,b;function p(ge,Fe,ce){var Ye=Fd.ensureSingle(ge,"text").text(Fe).attr({class:"bartext bartext-"+b,"text-anchor":"middle","data-notex":1}).call(A_.font,ce).call(l1t.convertToTspans,e);return Ye}var C=n[0].trace,E=C.orientation==="h",A=A1t(_,n,i,d,v);b=S1t(C,i);var L=f.mode==="stack"||f.mode==="relative",x=n[i],k=!L||x._outmost,M=x.hasB,g=u&&u-c>Uv;if(!A||b==="none"||(x.isBlank||a===o||s===l)&&(b==="auto"||b==="inside")){r.select("text").remove();return}var P=_.font,T=SV.getBarColor(n[i],C),z=SV.getInsideTextFont(C,i,P,T),O=SV.getOutsideTextFont(C,i,P),V=C.insidetextanchor||"end",G=r.datum();E?d.type==="log"&&G.s0<=0&&(d.range[0]0&&Me>0,ie;g?M?ie=r2(N-2*u,j,_e,Me,E)||r2(N,j-2*u,_e,Me,E):E?ie=r2(N-(u-c),j,_e,Me,E)||r2(N,j-2*(u-c),_e,Me,E):ie=r2(N,j-(u-c),_e,Me,E)||r2(N-2*(u-c),j,_e,Me,E):ie=r2(N,j,_e,Me,E),me&&ie?b="inside":(b="outside",re.remove(),re=null)}else b="inside";if(!re){ke=Fd.ensureUniformFontSize(e,b==="outside"?O:z),re=p(r,A,ke);var Se=re.attr("transform");if(re.attr("transform",""),oe=A_.bBox(re.node()),_e=oe.width,Me=oe.height,re.attr("transform",Se),_e<=0||Me<=0){re.remove();return}}var Le=C.textangle,Ae,De;b==="outside"?(De=C.constraintext==="both"||C.constraintext==="outside",Ae=T1t(a,o,s,l,oe,{isHorizontal:E,constrained:De,angle:Le})):(De=C.constraintext==="both"||C.constraintext==="inside",Ae=Wye(a,o,s,l,oe,{isHorizontal:E,constrained:De,angle:Le,anchor:V,hasB:M,r:u,overhead:c})),Ae.fontSize=ke.size,f1t(C.type==="histogram"?"bar":C.type,Ae,_),x.transform=Ae;var Pe=Vye(re,_,f,h);Fd.setTransormAndDisplay(Pe,Ae)}function r2(e,t,r,n,i){if(e<0||t<0)return!1;var a=r<=e&&n<=t,o=r<=t&&n<=e,s=i?e>=r*(t/n):t>=n*(e/r);return a||o||s}function Hye(e){return e==="auto"?0:e}function jye(e,t){var r=Math.PI/180*t,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:e.width*i+e.height*n,y:e.width*n+e.height*i}}function Wye(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=a.anchor,c=u==="end",f=u==="start",h=a.leftToRight||0,d=(h+1)/2,v=1-d,_=a.hasB,b=a.r,p=a.overhead,C=i.width,E=i.height,A=Math.abs(t-e),L=Math.abs(n-r),x=A>2*Uv&&L>2*Uv?Uv:0;A-=2*x,L-=2*x;var k=Hye(l);l==="auto"&&!(C<=A&&E<=L)&&(C>A||E>L)&&(!(C>L||E>A)||CUv){var T=w1t(e,t,r,n,M,b,p,o,_);g=T.scale,P=T.pad}else g=1,s&&(g=Math.min(1,A/M.x,L/M.y)),P=0;var z=i.left*v+i.right*d,O=(i.top+i.bottom)/2,V=(e+Uv)*v+(t-Uv)*d,G=(r+n)/2,Z=0,H=0;if(f||c){var N=(o?M.x:M.y)/2;b&&(c||_)&&(x+=P);var j=o?Pm(e,t):Pm(r,n);o?f?(V=e+j*x,Z=-j*N):(V=t-j*x,Z=j*N):f?(G=r+j*x,H=-j*N):(G=n-j*x,H=j*N)}return{textX:z,textY:O,targetX:V,targetY:G,anchorX:Z,anchorY:H,scale:g,rotate:k}}function w1t(e,t,r,n,i,a,o,s,l){var u=Math.max(0,Math.abs(t-e)-2*Uv),c=Math.max(0,Math.abs(n-r)-2*Uv),f=a-Uv,h=o?f-Math.sqrt(f*f-(f-o)*(f-o)):f,d=l?f*2:s?f-o:2*h,v=l?f*2:s?2*h:f-o,_,b,p,C,E;return i.y/i.x>=c/(u-d)?C=c/i.y:i.y/i.x<=(c-v)/u?C=u/i.x:!l&&s?(_=i.x*i.x+i.y*i.y/4,b=-2*i.x*(u-f)-i.y*(c/2-f),p=(u-f)*(u-f)+(c/2-f)*(c/2-f)-f*f,C=(-b+Math.sqrt(b*b-4*_*p))/(2*_)):l?(_=(i.x*i.x+i.y*i.y)/4,b=-i.x*(u/2-f)-i.y*(c/2-f),p=(u/2-f)*(u/2-f)+(c/2-f)*(c/2-f)-f*f,C=(-b+Math.sqrt(b*b-4*_*p))/(2*_)):(_=i.x*i.x/4+i.y*i.y,b=-i.x*(u/2-f)-2*i.y*(c-f),p=(u/2-f)*(u/2-f)+(c-f)*(c-f)-f*f,C=(-b+Math.sqrt(b*b-4*_*p))/(2*_)),C=Math.min(1,C),s?E=Math.max(0,f-Math.sqrt(Math.max(0,f*f-(f-(c-i.y*C)/2)*(f-(c-i.y*C)/2)))-o):E=Math.max(0,f-Math.sqrt(Math.max(0,f*f-(f-(u-i.x*C)/2)*(f-(u-i.x*C)/2)))-o),{scale:C,pad:E}}function T1t(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=i.width,c=i.height,f=Math.abs(t-e),h=Math.abs(n-r),d;o?d=h>2*Uv?Uv:0:d=f>2*Uv?Uv:0;var v=1;s&&(v=o?Math.min(1,h/c):Math.min(1,f/u));var _=Hye(l),b=jye(i,_),p=(o?b.x:b.y)/2,C=(i.left+i.right)/2,E=(i.top+i.bottom)/2,A=(e+t)/2,L=(r+n)/2,x=0,k=0,M=o?Pm(t,e):Pm(r,n);return o?(A=t-M*d,x=M*p):(L=n+M*d,k=-M*p),{textX:C,textY:E,targetX:A,targetY:L,anchorX:x,anchorY:k,scale:v,rotate:_}}function A1t(e,t,r,n,i){var a=t[0].trace,o=a.texttemplate,s;return o?s=M1t(e,t,r,n,i):a.textinfo?s=E1t(t,r,n,i):s=wT.getValue(a.text,r),wT.coerceString(v1t,s)}function S1t(e,t){var r=wT.getValue(e.textposition,t);return wT.coerceEnumerated(p1t,r)}function M1t(e,t,r,n,i){var a=t[0].trace,o=Fd.castOption(a,r,"texttemplate");if(!o)return"";var s=a.type==="histogram",l=a.type==="waterfall",u=a.type==="funnel",c=a.orientation==="h",f,h,d,v;c?(f="y",h=i,d="x",v=n):(f="x",h=n,d="y",v=i);function _(x){return GI(h,h.c2l(x),!0).text}function b(x){return GI(v,v.c2l(x),!0).text}var p=t[r],C={};C.label=p.p,C.labelLabel=C[f+"Label"]=_(p.p);var E=Fd.castOption(a,p.i,"text");(E===0||E)&&(C.text=E),C.value=p.s,C.valueLabel=C[d+"Label"]=b(p.s);var A={};g1t(A,a,p.i),(s||A.x===void 0)&&(A.x=c?C.value:C.label),(s||A.y===void 0)&&(A.y=c?C.label:C.value),(s||A.xLabel===void 0)&&(A.xLabel=c?C.valueLabel:C.labelLabel),(s||A.yLabel===void 0)&&(A.yLabel=c?C.labelLabel:C.valueLabel),l&&(C.delta=+p.rawS||p.s,C.deltaLabel=b(C.delta),C.final=p.v,C.finalLabel=b(C.final),C.initial=C.final-C.delta,C.initialLabel=b(C.initial)),u&&(C.value=p.s,C.valueLabel=b(C.value),C.percentInitial=p.begR,C.percentInitialLabel=Fd.formatPercent(p.begR),C.percentPrevious=p.difR,C.percentPreviousLabel=Fd.formatPercent(p.difR),C.percentTotal=p.sumR,C.percenTotalLabel=Fd.formatPercent(p.sumR));var L=Fd.castOption(a,p.i,"customdata");return L&&(C.customdata=L),Fd.texttemplateString(o,C,e._d3locale,A,C,a._meta||{})}function E1t(e,t,r,n){var i=e[0].trace,a=i.orientation==="h",o=i.type==="waterfall",s=i.type==="funnel";function l(L){var x=a?n:r;return GI(x,L,!0).text}function u(L){var x=a?r:n;return GI(x,+L,!0).text}var c=i.textinfo,f=e[t],h=c.split("+"),d=[],v,_=function(L){return h.indexOf(L)!==-1};if(_("label")&&d.push(l(e[t].p)),_("text")&&(v=Fd.castOption(i,f.i,"text"),(v===0||v)&&d.push(v)),o){var b=+f.rawS||f.s,p=f.v,C=p-b;_("initial")&&d.push(u(C)),_("delta")&&d.push(u(b)),_("final")&&d.push(u(p))}if(s){_("value")&&d.push(u(f.s));var E=0;_("percent initial")&&E++,_("percent previous")&&E++,_("percent total")&&E++;var A=E>1;_("percent initial")&&(v=Fd.formatPercent(f.begR),A&&(v+=" of initial"),d.push(v)),_("percent previous")&&(v=Fd.formatPercent(f.difR),A&&(v+=" of previous"),d.push(v)),_("percent total")&&(v=Fd.formatPercent(f.sumR),A&&(v+=" of total"),d.push(v))}return d.join("
")}Xye.exports={plot:x1t,toMoveInsideBar:Wye}});var TT=ye((Zsr,Jye)=>{"use strict";var m4=vf(),C1t=qa(),Zye=Ca(),k1t=Dr().fillText,L1t=NI().getLineWidth,EV=ho().hoverLabelText,P1t=hs().BADNUM;function I1t(e,t,r,n,i){var a=Yye(e,t,r,n,i);if(a){var o=a.cd,s=o[0].trace,l=o[a.index];return a.color=Kye(s,l),C1t.getComponentMethod("errorbars","hoverInfo")(l,s,a),[a]}}function Yye(e,t,r,n,i){var a=e.cd,o=a[0].trace,s=a[0].t,l=n==="closest",u=o.type==="waterfall",c=e.maxHoverDistance,f=e.maxSpikeDistance,h,d,v,_,b,p,C;o.orientation==="h"?(h=r,d=t,v="y",_="x",b=G,p=z):(h=t,d=r,v="x",_="y",p=G,b=z);var E=o[v+"period"],A=l||E;function L(ie){return k(ie,-1)}function x(ie){return k(ie,1)}function k(ie,Se){var Le=ie.w;return ie[v]+Se*Le/2}function M(ie){return ie[v+"End"]-ie[v+"Start"]}var g=l?L:E?function(ie){return ie.p-M(ie)/2}:function(ie){return Math.min(L(ie),ie.p-s.bardelta/2)},P=l?x:E?function(ie){return ie.p+M(ie)/2}:function(ie){return Math.max(x(ie),ie.p+s.bardelta/2)};function T(ie,Se,Le){return i.finiteRange&&(Le=0),m4.inbox(ie-h,Se-h,Le+Math.min(1,Math.abs(Se-ie)/C)-1)}function z(ie){return T(g(ie),P(ie),c)}function O(ie){return T(L(ie),x(ie),f)}function V(ie){var Se=ie[_];if(u){var Le=Math.abs(ie.rawS)||0;d>0?Se+=Le:d<0&&(Se-=Le)}return Se}function G(ie){var Se=d,Le=ie.b,Ae=V(ie);return m4.inbox(Le-Se,Ae-Se,c+(Ae-Se)/(Ae-Le)-1)}function Z(ie){var Se=d,Le=ie.b,Ae=V(ie);return m4.inbox(Le-Se,Ae-Se,f+(Ae-Se)/(Ae-Le)-1)}var H=e[v+"a"],N=e[_+"a"];C=Math.abs(H.r2c(H.range[1])-H.r2c(H.range[0]));function j(ie){return(b(ie)+p(ie))/2}var re=m4.getDistanceFunction(n,b,p,j);if(m4.getClosest(a,re,e),e.index!==!1&&a[e.index].p!==P1t){A||(g=function(ie){return Math.min(L(ie),ie.p-s.bargroupwidth/2)},P=function(ie){return Math.max(x(ie),ie.p+s.bargroupwidth/2)});var oe=e.index,_e=a[oe],Me=o.base?_e.b+_e.s:_e.s;e[_+"0"]=e[_+"1"]=N.c2p(_e[_],!0),e[_+"LabelVal"]=Me;var ke=s.extents[s.extents.round(_e.p)];e[v+"0"]=H.c2p(l?g(_e):ke[0],!0),e[v+"1"]=H.c2p(l?P(_e):ke[1],!0);var me=_e.orig_p!==void 0;return e[v+"LabelVal"]=me?_e.orig_p:_e.p,e.labelLabel=EV(H,e[v+"LabelVal"],o[v+"hoverformat"]),e.valueLabel=EV(N,e[_+"LabelVal"],o[_+"hoverformat"]),e.baseLabel=EV(N,_e.b,o[_+"hoverformat"]),e.spikeDistance=(Z(_e)+O(_e))/2,e[v+"Spike"]=H.c2p(_e.p,!0),k1t(_e,o,e),e.hovertemplate=o.hovertemplate,e}}function Kye(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,i=L1t(e,t);if(Zye.opacity(r))return r;if(Zye.opacity(n)&&i)return n}Jye.exports={hoverPoints:I1t,hoverOnBars:Yye,getTraceColor:Kye}});var Qye=ye((Ysr,$ye)=>{"use strict";$ye.exports=function(t,r,n){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),n.orientation==="h"?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}});var AT=ye((Ksr,e1e)=>{"use strict";e1e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=n[0].trace,s=o.type==="funnel",l=o.orientation==="h",u=[],c;if(r===!1)for(c=0;c{"use strict";t1e.exports={attributes:Lm(),layoutAttributes:OI(),supplyDefaults:r0().supplyDefaults,crossTraceDefaults:r0().crossTraceDefaults,supplyLayoutDefaults:wV(),calc:Sye(),crossTraceCalc:Hb().crossTraceCalc,colorbar:$d(),arraysToCalcdata:v4(),plot:i2().plot,style:N0().style,styleOnSelect:N0().styleOnSelect,hoverPoints:TT().hoverPoints,eventData:Qye(),selectPoints:AT(),moduleType:"trace",name:"bar",basePlotModule:vh(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var n1e=ye(($sr,i1e)=>{"use strict";i1e.exports=r1e()});var y4=ye((Qsr,l1e)=>{"use strict";var D1t=Eg(),U0=pf(),a1e=Lm(),F1t=Eh(),o1e=df().axisHoverFormat,z1t=Qo().hovertemplateAttrs,Fy=Ao().extendFlat,ST=U0.marker,s1e=ST.line;l1e.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:U0.xperiod,yperiod:U0.yperiod,xperiod0:U0.xperiod0,yperiod0:U0.yperiod0,xperiodalignment:U0.xperiodalignment,yperiodalignment:U0.yperiodalignment,xhoverformat:o1e("x"),yhoverformat:o1e("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:Fy({},ST.symbol,{arrayOk:!1,editType:"plot"}),opacity:Fy({},ST.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Fy({},ST.angle,{arrayOk:!1,editType:"calc"}),size:Fy({},ST.size,{arrayOk:!1,editType:"calc"}),color:Fy({},ST.color,{arrayOk:!1,editType:"style"}),line:{color:Fy({},s1e.color,{arrayOk:!1,dflt:F1t.defaultLine,editType:"style"}),width:Fy({},s1e.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:D1t(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:a1e.offsetgroup,alignmentgroup:a1e.alignmentgroup,selected:{marker:U0.selected.marker,editType:"style"},unselected:{marker:U0.unselected.marker,editType:"style"},text:Fy({},U0.text,{}),hovertext:Fy({},U0.hovertext,{}),hovertemplate:z1t({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:U0.zorder}});var _4=ye((elr,u1e)=>{"use strict";u1e.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var b4=ye((tlr,d1e)=>{"use strict";var V0=Dr(),O1t=qa(),q1t=Ca(),B1t=Pg(),N1t=Gb(),c1e=L3(),x4=y4();function U1t(e,t,r,n){function i(v,_){return V0.coerce(e,t,x4,v,_)}if(f1e(e,t,i,n),t.visible!==!1){B1t(e,t,n,i),i("xhoverformat"),i("yhoverformat");var a=t._hasPreCompStats;a&&(i("lowerfence"),i("upperfence")),i("line.color",(e.marker||{}).color||r),i("line.width"),i("fillcolor",q1t.addOpacity(t.line.color,.5));var o=!1;if(a){var s=i("mean"),l=i("sd");s&&s.length&&(o=!0,l&&l.length&&(o="sd"))}i("whiskerwidth");var u=i("sizemode"),c;u==="quartiles"&&(c=i("boxmean",o)),i("showwhiskers",u==="quartiles"),(u==="sd"||c==="sd")&&i("sdmultiple"),i("width"),i("quartilemethod");var f=!1;if(a){var h=i("notchspan");h&&h.length&&(f=!0)}else V0.validate(e.notchwidth,x4.notchwidth)&&(f=!0);var d=i("notched",f);d&&i("notchwidth"),h1e(e,t,i,{prefix:"box"}),i("zorder")}}function f1e(e,t,r,n){function i(P){var T=0;return P&&P.length&&(T+=1,V0.isArrayOrTypedArray(P[0])&&P[0].length&&(T+=1)),T}function a(P){return V0.validate(e[P],x4[P])}var o=r("y"),s=r("x"),l;if(t.type==="box"){var u=r("q1"),c=r("median"),f=r("q3");t._hasPreCompStats=u&&u.length&&c&&c.length&&f&&f.length,l=Math.min(V0.minRowLength(u),V0.minRowLength(c),V0.minRowLength(f))}var h=i(o),d=i(s),v=h&&V0.minRowLength(o),_=d&&V0.minRowLength(s),b=n.calendar,p={autotypenumbers:n.autotypenumbers},C,E;if(t._hasPreCompStats)switch(String(d)+String(h)){case"00":var A=a("x0")||a("dx"),L=a("y0")||a("dy");L&&!A?C="h":C="v",E=l;break;case"10":C="v",E=Math.min(l,_);break;case"20":C="h",E=Math.min(l,s.length);break;case"01":C="h",E=Math.min(l,v);break;case"02":C="v",E=Math.min(l,o.length);break;case"12":C="v",E=Math.min(l,_,o.length);break;case"21":C="h",E=Math.min(l,s.length,v);break;case"11":E=0;break;case"22":var x=!1,k;for(k=0;k0?(C="v",d>0?E=Math.min(_,v):E=Math.min(v)):d>0?(C="h",E=Math.min(_)):E=0;if(!E){t.visible=!1;return}t._length=E;var M=r("orientation",C);t._hasPreCompStats?M==="v"&&d===0?(r("x0",0),r("dx",1)):M==="h"&&h===0&&(r("y0",0),r("dy",1)):M==="v"&&d===0?r("x0"):M==="h"&&h===0&&r("y0");var g=O1t.getComponentMethod("calendars","handleTraceDefaults");g(e,t,["x","y"],n)}function h1e(e,t,r,n){var i=n.prefix,a=V0.coerce2(e,t,x4,"marker.outliercolor"),o=r("marker.line.outliercolor"),s="outliers";t._hasPreCompStats?s="all":(a||o)&&(s="suspectedoutliers");var l=r(i+"points",s);l?(r("jitter",l==="all"?.3:0),r("pointpos",l==="all"?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.angle"),r("marker.color",t.line.color),r("marker.line.color"),r("marker.line.width"),l==="suspectedoutliers"&&(r("marker.line.outliercolor",t.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete t.marker;var u=r("hoveron");(u==="all"||u.indexOf("points")!==-1)&&r("hovertemplate"),V0.coerceSelectionMarkerOpacity(t,r)}function V1t(e,t){var r,n;function i(l){return V0.coerce(n._input,n,x4,l)}for(var a=0;a{"use strict";var G1t=qa(),H1t=Dr(),j1t=_4();function v1e(e,t,r,n,i){for(var a=i+"Layout",o=!1,s=0;s{"use strict";var kV=Eo(),jI=ho(),X1t=Rg(),ph=Dr(),i0=hs().BADNUM,zy=ph._;A1e.exports=function(t,r){var n=t._fullLayout,i=jI.getFromId(t,r.xaxis||"x"),a=jI.getFromId(t,r.yaxis||"y"),o=[],s=r.type==="violin"?"_numViolins":"_numBoxes",l,u,c,f,h,d,v;r.orientation==="h"?(c=i,f="x",h=a,d="y",v=!!r.yperiodalignment):(c=a,f="y",h=i,d="x",v=!!r.xperiodalignment);var _=Z1t(r,d,h,n[s]),b=_[0],p=_[1],C=ph.distinctVals(b,h),E=C.vals,A=C.minDiff/2,L,x,k,M,g,P,T=(r.boxpoints||r.points)==="all"?ph.identity:function(Wt){return Wt.vL.uf};if(r._hasPreCompStats){var z=r[f],O=function(Wt){return c.d2c((r[Wt]||[])[l])},V=1/0,G=-1/0;for(l=0;l=L.q1&&L.q3>=L.med){var H=O("lowerfence");L.lf=H!==i0&&H<=L.q1?H:_1e(L,k,M);var N=O("upperfence");L.uf=N!==i0&&N>=L.q3?N:x1e(L,k,M);var j=O("mean");L.mean=j!==i0?j:M?ph.mean(k,M):(L.q1+L.q3)/2;var re=O("sd");L.sd=j!==i0&&re>=0?re:M?ph.stdev(k,M,L.mean):L.q3-L.q1,L.lo=b1e(L),L.uo=w1e(L);var oe=O("notchspan");oe=oe!==i0&&oe>0?oe:T1e(L,M),L.ln=L.med-oe,L.un=L.med+oe;var _e=L.lf,Me=L.uf;r.boxpoints&&k.length&&(_e=Math.min(_e,k[0]),Me=Math.max(Me,k[M-1])),r.notched&&(_e=Math.min(_e,L.ln),Me=Math.max(Me,L.un)),L.min=_e,L.max=Me}else{ph.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+L.q1,"median = "+L.med,"q3 = "+L.q3].join(` +`));var ke;L.med!==i0?ke=L.med:L.q1!==i0?L.q3!==i0?ke=(L.q1+L.q3)/2:ke=L.q1:L.q3!==i0?ke=L.q3:ke=0,L.med=ke,L.q1=L.q3=ke,L.lf=L.uf=ke,L.mean=L.sd=ke,L.ln=L.un=ke,L.min=L.max=ke}V=Math.min(V,L.min),G=Math.max(G,L.max),L.pts2=x.filter(T),o.push(L)}}r._extremes[c._id]=jI.findExtremes(c,[V,G],{padded:!0})}else{var me=c.makeCalcdata(r,f),ie=Y1t(E,A),Se=E.length,Le=K1t(Se);for(l=0;l=0&&Ae0){if(L={},L.pos=L[d]=E[l],x=L.pts=Le[l].sort(m1e),k=L[f]=x.map(y1e),M=k.length,L.min=k[0],L.max=k[M-1],L.mean=ph.mean(k,M),L.sd=ph.stdev(k,M,L.mean)*r.sdmultiple,L.med=ph.interp(k,.5),M%2&&(Fe||ce)){var Ye,ct;Fe?(Ye=k.slice(0,M/2),ct=k.slice(M/2+1)):ce&&(Ye=k.slice(0,M/2+1),ct=k.slice(M/2)),L.q1=ph.interp(Ye,.5),L.q3=ph.interp(ct,.5)}else L.q1=ph.interp(k,.25),L.q3=ph.interp(k,.75);L.lf=_1e(L,k,M),L.uf=x1e(L,k,M),L.lo=b1e(L),L.uo=w1e(L);var pt=T1e(L,M);L.ln=L.med-pt,L.un=L.med+pt,De=Math.min(De,L.ln),Pe=Math.max(Pe,L.un),L.pts2=x.filter(T),o.push(L)}r.notched&&ph.isTypedArray(me)&&(me=Array.from(me)),r._extremes[c._id]=jI.findExtremes(c,r.notched?me.concat([De,Pe]):me,{padded:!0})}return J1t(o,r),o.length>0?(o[0].t={num:n[s],dPos:A,posLetter:d,valLetter:f,labels:{med:zy(t,"median:"),min:zy(t,"min:"),q1:zy(t,"q1:"),q3:zy(t,"q3:"),max:zy(t,"max:"),mean:r.boxmean==="sd"||r.sizemode==="sd"?zy(t,"mean \xB1 \u03C3:").replace("\u03C3",r.sdmultiple===1?"\u03C3":r.sdmultiple+"\u03C3"):zy(t,"mean:"),lf:zy(t,"lower fence:"),uf:zy(t,"upper fence:")}},n[s]++,o):[{t:{empty:!0}}]};function Z1t(e,t,r,n){var i=t in e,a=t+"0"in e,o="d"+t in e;if(i||a&&o){var s=r.makeCalcdata(e,t),l=X1t(e,r,t,s).vals;return[l,s]}var u;a?u=e[t+"0"]:"name"in e&&(r.type==="category"||kV(e.name)&&["linear","log"].indexOf(r.type)!==-1||ph.isDateTime(e.name)&&r.type==="date")?u=e.name:u=n;for(var c=r.type==="multicategory"?r.r2c_just_indices(u):r.d2c(u,0,e[t+"calendar"]),f=e._length,h=new Array(f),d=0;d{"use strict";var S1e=ho(),$1t=Dr(),Q1t=Bb().getAxisGroup,M1e=["v","h"];function e_t(e,t){for(var r=e.calcdata,n=t.xaxis,i=t.yaxis,a=0;a1,C=1-a[e+"gap"],E=1-a[e+"groupgap"];for(l=0;l0;if(k==="positive"?(N=M*(x?1:.5),oe=re,j=oe=P):k==="negative"?(N=oe=P,j=M*(x?1:.5),_e=re):(N=j=M,oe=_e=re),Le){var Ae=A.pointpos,De=A.jitter,Pe=A.marker.size/2,ge=0;Ae+De>=0&&(ge=re*(Ae+De),ge>N?(Se=!0,me=Pe,Me=ge):ge>oe&&(me=Pe,Me=N)),ge<=N&&(Me=N);var Fe=0;Ae-De<=0&&(Fe=-re*(Ae-De),Fe>j?(Se=!0,ie=Pe,ke=Fe):Fe>_e&&(ie=Pe,ke=j)),Fe<=j&&(ke=j)}else Me=N,ke=j;var ce=new Array(c.length);for(u=0;u{"use strict";var MT=Oa(),n2=Dr(),t_t=So(),k1e=5,r_t=.01;function i_t(e,t,r,n){var i=e._context.staticPlot,a=t.xaxis,o=t.yaxis;n2.makeTraceGroups(n,r,"trace boxes").each(function(s){var l=MT.select(this),u=s[0],c=u.t,f=u.trace;if(c.wdPos=c.bdPos*f.whiskerwidth,f.visible!==!0||c.empty){l.remove();return}var h,d;f.orientation==="h"?(h=o,d=a):(h=a,d=o),L1e(l,{pos:h,val:d},f,c,i),P1e(l,{x:a,y:o},f,c),I1e(l,{pos:h,val:d},f,c)})}function L1e(e,t,r,n,i){var a=r.orientation==="h",o=t.val,s=t.pos,l=!!s.rangebreaks,u=n.bPos,c=n.wdPos||0,f=n.bPosPxOffset||0,h=r.whiskerwidth||0,d=r.showwhiskers!==!1,v=r.notched||!1,_=v?1-2*r.notchwidth:1,b,p;Array.isArray(n.bdPos)?(b=n.bdPos[0],p=n.bdPos[1]):(b=n.bdPos,p=n.bdPos);var C=e.selectAll("path.box").data(r.type!=="violin"||r.box.visible?n2.identity:[]);C.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","box"),C.exit().remove(),C.each(function(E){if(E.empty)return MT.select(this).attr("d","M0,0Z");var A=s.c2l(E.pos+u,!0),L=s.l2p(A-b)+f,x=s.l2p(A+p)+f,k=l?(L+x)/2:s.l2p(A)+f,M=r.whiskerwidth,g=l?L*M+(1-M)*k:s.l2p(A-c)+f,P=l?x*M+(1-M)*k:s.l2p(A+c)+f,T=s.l2p(A-b*_)+f,z=s.l2p(A+p*_)+f,O=r.sizemode==="sd",V=o.c2p(O?E.mean-E.sd:E.q1,!0),G=O?o.c2p(E.mean+E.sd,!0):o.c2p(E.q3,!0),Z=n2.constrain(O?o.c2p(E.mean,!0):o.c2p(E.med,!0),Math.min(V,G)+1,Math.max(V,G)-1),H=E.lf===void 0||r.boxpoints===!1||O,N=o.c2p(H?E.min:E.lf,!0),j=o.c2p(H?E.max:E.uf,!0),re=o.c2p(E.ln,!0),oe=o.c2p(E.un,!0);a?MT.select(this).attr("d","M"+Z+","+T+"V"+z+"M"+V+","+L+"V"+x+(v?"H"+re+"L"+Z+","+z+"L"+oe+","+x:"")+"H"+G+"V"+L+(v?"H"+oe+"L"+Z+","+T+"L"+re+","+L:"")+"Z"+(d?"M"+V+","+k+"H"+N+"M"+G+","+k+"H"+j+(h===0?"":"M"+N+","+g+"V"+P+"M"+j+","+g+"V"+P):"")):MT.select(this).attr("d","M"+T+","+Z+"H"+z+"M"+L+","+V+"H"+x+(v?"V"+re+"L"+z+","+Z+"L"+x+","+oe:"")+"V"+G+"H"+L+(v?"V"+oe+"L"+T+","+Z+"L"+L+","+re:"")+"Z"+(d?"M"+k+","+V+"V"+N+"M"+k+","+G+"V"+j+(h===0?"":"M"+g+","+N+"H"+P+"M"+g+","+j+"H"+P):""))})}function P1e(e,t,r,n){var i=t.x,a=t.y,o=n.bdPos,s=n.bPos,l=r.boxpoints||r.points;n2.seedPseudoRandom();var u=function(h){return h.forEach(function(d){d.t=n,d.trace=r}),h},c=e.selectAll("g.points").data(l?u:[]);c.enter().append("g").attr("class","points"),c.exit().remove();var f=c.selectAll("path").data(function(h){var d,v=h.pts2,_=Math.max((h.max-h.min)/10,h.q3-h.q1),b=_*1e-9,p=_*r_t,C=[],E=0,A;if(r.jitter){if(_===0)for(E=1,C=new Array(v.length),d=0;dh.lo&&(P.so=!0)}return v});f.enter().append("path").classed("point",!0),f.exit().remove(),f.call(t_t.translatePoints,i,a)}function I1e(e,t,r,n){var i=t.val,a=t.pos,o=!!a.rangebreaks,s=n.bPos,l=n.bPosPxOffset||0,u=r.boxmean||(r.meanline||{}).visible,c,f;Array.isArray(n.bdPos)?(c=n.bdPos[0],f=n.bdPos[1]):(c=n.bdPos,f=n.bdPos);var h=e.selectAll("path.mean").data(r.type==="box"&&r.boxmean||r.type==="violin"&&r.box.visible&&r.meanline.visible?n2.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each(function(d){var v=a.c2l(d.pos+s,!0),_=a.l2p(v-c)+l,b=a.l2p(v+f)+l,p=o?(_+b)/2:a.l2p(v)+l,C=i.c2p(d.mean,!0),E=i.c2p(d.mean-d.sd,!0),A=i.c2p(d.mean+d.sd,!0);r.orientation==="h"?MT.select(this).attr("d","M"+C+","+_+"V"+b+(u==="sd"?"m0,0L"+E+","+p+"L"+C+","+_+"L"+A+","+p+"Z":"")):MT.select(this).attr("d","M"+_+","+C+"H"+b+(u==="sd"?"m0,0L"+p+","+E+"L"+_+","+C+"L"+p+","+A+"Z":""))})}R1e.exports={plot:i_t,plotBoxAndWhiskers:L1e,plotPoints:P1e,plotBoxMean:I1e}});var ZI=ye((olr,D1e)=>{"use strict";var PV=Oa(),IV=Ca(),RV=So();function n_t(e,t,r){var n=r||PV.select(e).selectAll("g.trace.boxes");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=PV.select(this),o=i[0].trace,s=o.line.width;function l(f,h,d,v){f.style("stroke-width",h+"px").call(IV.stroke,d).call(IV.fill,v)}var u=a.selectAll("path.box");if(o.type==="candlestick")u.each(function(f){if(!f.empty){var h=PV.select(this),d=o[f.dir];l(h,d.line.width,d.line.color,d.fillcolor),h.style("opacity",o.selectedpoints&&!f.selected?.3:1)}});else{l(u,s,o.line.color,o.fillcolor),a.selectAll("path.mean").style({"stroke-width":s,"stroke-dasharray":2*s+"px,"+s+"px"}).call(IV.stroke,o.line.color);var c=a.selectAll("path.point");RV.pointStyle(c,o,e)}})}function a_t(e,t,r){var n=t[0].trace,i=r.selectAll("path.point");n.selectedpoints?RV.selectedPointStyle(i,n):RV.pointStyle(i,n,e)}D1e.exports={style:n_t,styleOnSelect:a_t}});var FV=ye((slr,q1e)=>{"use strict";var o_t=ho(),DV=Dr(),S_=vf(),F1e=Ca(),s_t=DV.fillText;function l_t(e,t,r,n){var i=e.cd,a=i[0].trace,o=a.hoveron,s=[],l;return o.indexOf("boxes")!==-1&&(s=s.concat(z1e(e,t,r,n))),o.indexOf("points")!==-1&&(l=O1e(e,t,r)),n==="closest"?l?[l]:s:(l&&s.push(l),s)}function z1e(e,t,r,n){var i=e.cd,a=e.xa,o=e.ya,s=i[0].trace,l=i[0].t,u=s.type==="violin",c,f,h,d,v,_,b,p,C,E,A,L=l.bdPos,x,k,M=l.wHover,g=function(Pe){return h.c2l(Pe.pos)+l.bPos-h.c2l(_)};u&&s.side!=="both"?(s.side==="positive"&&(C=function(Pe){var ge=g(Pe);return S_.inbox(ge,ge+M,E)},x=L,k=0),s.side==="negative"&&(C=function(Pe){var ge=g(Pe);return S_.inbox(ge-M,ge,E)},x=0,k=L)):(C=function(Pe){var ge=g(Pe);return S_.inbox(ge-M,ge+M,E)},x=k=L);var P;u?P=function(Pe){return S_.inbox(Pe.span[0]-v,Pe.span[1]-v,E)}:P=function(Pe){return S_.inbox(Pe.min-v,Pe.max-v,E)},s.orientation==="h"?(v=t,_=r,b=P,p=C,c="y",h=o,f="x",d=a):(v=r,_=t,b=C,p=P,c="x",h=a,f="y",d=o);var T=Math.min(1,L/Math.abs(h.r2c(h.range[1])-h.r2c(h.range[0])));E=e.maxHoverDistance-T,A=e.maxSpikeDistance-T;function z(Pe){return(b(Pe)+p(Pe))/2}var O=S_.getDistanceFunction(n,b,p,z);if(S_.getClosest(i,O,e),e.index===!1)return[];var V=i[e.index],G=s.line.color,Z=(s.marker||{}).color;F1e.opacity(G)&&s.line.width?e.color=G:F1e.opacity(Z)&&s.boxpoints?e.color=Z:e.color=s.fillcolor,e[c+"0"]=h.c2p(V.pos+l.bPos-k,!0),e[c+"1"]=h.c2p(V.pos+l.bPos+x,!0),e[c+"LabelVal"]=V.orig_p!==void 0?V.orig_p:V.pos;var H=c+"Spike";e.spikeDistance=z(V)*A/E,e[H]=h.c2p(V.pos,!0);var N=s.boxmean||s.sizemode==="sd"||(s.meanline||{}).visible,j=s.boxpoints||s.points,re=j&&N?["max","uf","q3","med","mean","q1","lf","min"]:j&&!N?["max","uf","q3","med","q1","lf","min"]:!j&&N?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],oe=d.range[1]{"use strict";B1e.exports=function(t,r){return r.hoverOnBox&&(t.hoverOnBox=r.hoverOnBox),"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var zV=ye((ulr,U1e)=>{"use strict";U1e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l;if(r===!1)for(s=0;s{"use strict";V1e.exports={attributes:y4(),layoutAttributes:_4(),supplyDefaults:b4().supplyDefaults,crossTraceDefaults:b4().crossTraceDefaults,supplyLayoutDefaults:HI().supplyLayoutDefaults,calc:LV(),crossTraceCalc:WI().crossTraceCalc,plot:XI().plot,style:ZI().style,styleOnSelect:ZI().styleOnSelect,hoverPoints:FV().hoverPoints,eventData:N1e(),selectPoints:zV(),moduleType:"trace",name:"box",basePlotModule:vh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var j1e=ye((flr,H1e)=>{"use strict";H1e.exports=G1e()});var ET=ye((hlr,W1e)=>{"use strict";var n0=pf(),u_t=Vl(),c_t=ec(),OV=df().axisHoverFormat,f_t=Qo().hovertemplateAttrs,h_t=Qo().texttemplateAttrs,d_t=Tu(),Lp=Ao().extendFlat;W1e.exports=Lp({z:{valType:"data_array",editType:"calc"},x:Lp({},n0.x,{impliedEdits:{xtype:"array"}}),x0:Lp({},n0.x0,{impliedEdits:{xtype:"scaled"}}),dx:Lp({},n0.dx,{impliedEdits:{xtype:"scaled"}}),y:Lp({},n0.y,{impliedEdits:{ytype:"array"}}),y0:Lp({},n0.y0,{impliedEdits:{ytype:"scaled"}}),dy:Lp({},n0.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:Lp({},n0.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:Lp({},n0.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:Lp({},n0.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:Lp({},n0.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:Lp({},n0.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:Lp({},n0.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:OV("x"),yhoverformat:OV("y"),zhoverformat:OV("z",1),hovertemplate:f_t(),texttemplate:h_t({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:c_t({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Lp({},u_t.showlegend,{dflt:!1}),zorder:n0.zorder},d_t("",{cLetter:"z",autoColorDflt:!1}))});var KI=ye((dlr,Z1e)=>{"use strict";var v_t=Eo(),YI=Dr(),p_t=qa();Z1e.exports=function(t,r,n,i,a,o){var s=n("z");a=a||"x",o=o||"y";var l,u;if(s===void 0||!s.length)return 0;if(YI.isArray1D(s)){l=n(a),u=n(o);var c=YI.minRowLength(l),f=YI.minRowLength(u);if(c===0||f===0)return 0;r._length=Math.min(c,f,s.length)}else{if(l=X1e(a,n),u=X1e(o,n),!g_t(s))return 0;n("transpose"),r._length=null}var h=p_t.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],i),!0};function X1e(e,t){var r=t(e),n=r?t(e+"type","array"):"scaled";return n==="scaled"&&(t(e+"0"),t("d"+e)),r}function g_t(e){for(var t=!0,r=!1,n=!1,i,a=0;a0&&(r=!0);for(var o=0;o{"use strict";var Y1e=Dr();K1e.exports=function(t,r){t("texttemplate");var n=Y1e.extendFlat({},r.font,{color:"auto",size:"auto"});Y1e.coerceFont(t,"textfont",n)}});var qV=ye((plr,J1e)=>{"use strict";J1e.exports=function(t,r,n){var i=n("zsmooth");i===!1&&(n("xgap"),n("ygap")),n("zhoverformat")}});var e_e=ye((glr,Q1e)=>{"use strict";var $1e=Dr(),m_t=KI(),y_t=w4(),__t=Pg(),x_t=qV(),b_t=Jh(),w_t=ET();Q1e.exports=function(t,r,n,i){function a(s,l){return $1e.coerce(t,r,w_t,s,l)}var o=m_t(t,r,a,i);if(!o){r.visible=!1;return}__t(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hovertemplate"),y_t(a,i),x_t(t,r,a,i),a("hoverongaps"),a("connectgaps",$1e.isArray1D(r.z)&&r.zsmooth!==!1),b_t(t,r,i,a,{prefix:"",cLetter:"z"}),a("zorder")}});var BV=ye((mlr,t_e)=>{"use strict";var CT=Eo();t_e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,n){var i=n[t];return CT(i)?(i=Number(i),r[e]+=i,i):0},avg:function(e,t,r,n,i){var a=n[t];return CT(a)&&(a=Number(a),r[e]+=a,i[e]++),0},min:function(e,t,r,n){var i=n[t];if(CT(i))if(i=Number(i),CT(r[e])){if(r[e]>i){var a=i-r[e];return r[e]=i,a}}else return r[e]=i,i;return 0},max:function(e,t,r,n){var i=n[t];if(CT(i))if(i=Number(i),CT(r[e])){if(r[e]{"use strict";r_e.exports={percent:function(e,t){for(var r=e.length,n=100/t,i=0;i{"use strict";i_e.exports=function(t,r){for(var n=t.length,i=0,a=0;a{"use strict";var kT=hs(),a2=kT.ONEAVGYEAR,n_e=kT.ONEAVGMONTH,$I=kT.ONEDAY,a_e=kT.ONEHOUR,o_e=kT.ONEMIN,s_e=kT.ONESEC,l_e=ho().tickIncrement;f_e.exports=function(t,r,n,i,a){var o=-1.1*r,s=-.1*r,l=t-s,u=n[0],c=n[1],f=Math.min(JI(u+s,u+l,i,a),JI(c+s,c+l,i,a)),h=Math.min(JI(u+o,u+s,i,a),JI(c+o,c+s,i,a)),d,v;if(f>h&&h$I){var _=d===a2?1:6,b=d===a2?"M12":"M1";return function(p,C){var E=i.c2d(p,a2,a),A=E.indexOf("-",_);A>0&&(E=E.substr(0,A));var L=i.d2c(E,0,a);if(Ls_e?e>$I?e>a2*1.1?a2:e>n_e*1.1?n_e:$I:e>a_e?a_e:e>o_e?o_e:s_e:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function T_t(e,t,r,n,i,a){if(n&&e>$I){var o=c_e(t,i,a),s=c_e(r,i,a),l=e===a2?0:1;return o[l]!==s[l]}return Math.floor(r/e)-Math.floor(t/e)>.1}function c_e(e,t,r){var n=t.c2d(e,a2,r).split("-");return n[0]===""&&(n.unshift(),n[0]="-"+n[0]),n}});var jV=ye((blr,v_e)=>{"use strict";var GV=Eo(),Vv=Dr(),h_e=qa(),G0=ho(),A_t=v4(),d_e=BV(),S_t=NV(),M_t=UV(),E_t=VV();function C_t(e,t){var r=[],n=[],i=t.orientation==="h",a=G0.getFromId(e,i?t.yaxis:t.xaxis),o=i?"y":"x",s={x:"y",y:"x"}[o],l=t[o+"calendar"],u=t.cumulative,c,f=HV(e,t,a,o),h=f[0],d=f[1],v=typeof h.size=="string",_=[],b=v?_:h,p=[],C=[],E=[],A=0,L=t.histnorm,x=t.histfunc,k=L.indexOf("density")!==-1,M,g,P;u.enabled&&k&&(L=L.replace(/ ?density$/,""),k=!1);var T=x==="max"||x==="min",z=T?null:0,O=d_e.count,V=S_t[L],G=!1,Z=function(ge){return a.r2c(ge,0,l)},H;for(Vv.isArrayOrTypedArray(t[s])&&x!=="count"&&(H=t[s],G=x==="avg",O=d_e[x]),c=Z(h.start),g=Z(h.end)+(c-G0.tickIncrement(c,h.size,!1,l))/1e6;c=0&&P=Ae;c--)if(n[c]){De=c;break}for(c=Ae;c<=De;c++)if(GV(r[c])&&GV(n[c])){var Pe={p:r[c],s:n[c],b:0};u.enabled||(Pe.pts=E[c],oe?Pe.ph0=Pe.ph1=E[c].length?d[E[c][0]]:r[c]:(t._computePh=!0,Pe.ph0=ie(_[c]),Pe.ph1=ie(_[c+1],!0))),Le.push(Pe)}return Le.length===1&&(Le[0].width1=G0.tickIncrement(Le[0].p,h.size,!1,l)-Le[0].p),A_t(Le,t),Vv.isArrayOrTypedArray(t.selectedpoints)&&Vv.tagSelected(Le,t,ke),Le}function HV(e,t,r,n,i){var a=n+"bins",o=e._fullLayout,s=t["_"+n+"bingroup"],l=o._histogramBinOpts[s],u=o.barmode==="overlay",c,f,h,d,v,_,b,p=function(me){return r.r2c(me,0,d)},C=function(me){return r.c2r(me,0,d)},E=r.type==="date"?function(me){return me||me===0?Vv.cleanDate(me,null,d):null}:function(me){return GV(me)?Number(me):null};function A(me,ie,Se){ie[me+"Found"]?(ie[me]=E(ie[me]),ie[me]===null&&(ie[me]=Se[me])):(_[me]=ie[me]=Se[me],Vv.nestedProperty(f[0],a+"."+me).set(Se[me]))}if(t["_"+n+"autoBinFinished"])delete t["_"+n+"autoBinFinished"];else{f=l.traces;var L=[],x=!0,k=!1,M=!1;for(c=0;cr.r2l(H)&&(j=G0.tickIncrement(j,l.size,!0,d)),O.start=r.l2r(j),Z||Vv.nestedProperty(t,a+".start").set(O.start)}var re=l.end,oe=r.r2l(z.end),_e=oe!==void 0;if((l.endFound||_e)&&oe!==r.r2l(re)){var Me=_e?oe:Vv.aggNums(Math.max,null,v);O.end=r.l2r(Me),_e||Vv.nestedProperty(t,a+".start").set(O.end)}var ke="autobin"+n;return t._input[ke]===!1&&(t._input[a]=Vv.extendFlat({},t[a]||{}),delete t._input[ke],delete t[ke]),[O,v]}function k_t(e,t,r,n,i){var a=e._fullLayout,o=L_t(e,t),s=!1,l=1/0,u=[t],c,f,h;for(c=0;c=0;n--)s(n);else if(t==="increasing"){for(n=1;n=0;n--)e[n]+=e[n+1];r==="exclude"&&(e.push(0),e.shift())}}v_e.exports={calc:C_t,calcAllAutoBins:HV}});var w_e=ye((wlr,b_e)=>{"use strict";var p_e=Dr(),LT=ho(),g_e=BV(),I_t=NV(),R_t=UV(),D_t=VV(),m_e=jV().calcAllAutoBins;b_e.exports=function(t,r){var n=LT.getFromId(t,r.xaxis),i=LT.getFromId(t,r.yaxis),a=r.xcalendar,o=r.ycalendar,s=function(bt){return n.r2c(bt,0,a)},l=function(bt){return i.r2c(bt,0,o)},u=function(bt){return n.c2r(bt,0,a)},c=function(bt){return i.c2r(bt,0,o)},f,h,d,v,_=m_e(t,r,n,"x"),b=_[0],p=_[1],C=m_e(t,r,i,"y"),E=C[0],A=C[1],L=r._length;p.length>L&&p.splice(L,p.length-L),A.length>L&&A.splice(L,A.length-L);var x=[],k=[],M=[],g=typeof b.size=="string",P=typeof E.size=="string",T=[],z=[],O=g?T:b,V=P?z:E,G=0,Z=[],H=[],N=r.histnorm,j=r.histfunc,re=N.indexOf("density")!==-1,oe=j==="max"||j==="min",_e=oe?null:0,Me=g_e.count,ke=I_t[N],me=!1,ie=[],Se=[],Le="z"in r?r.z:"marker"in r&&Array.isArray(r.marker.color)?r.marker.color:"";Le&&j!=="count"&&(me=j==="avg",Me=g_e[j]);var Ae=b.size,De=s(b.start),Pe=s(b.end)+(De-LT.tickIncrement(De,Ae,!1,a))/1e6;for(f=De;f=0&&d=0&&v{"use strict";var Im=Dr(),T_e=hs().BADNUM,A_e=Rg();S_e.exports=function(t,r,n,i,a,o){var s=t._length,l=r.makeCalcdata(t,i),u=n.makeCalcdata(t,a);l=A_e(t,r,i,l).vals,u=A_e(t,n,a,u).vals;var c=t.text,f=c!==void 0&&Im.isArray1D(c),h=t.hovertext,d=h!==void 0&&Im.isArray1D(h),v,_,b=Im.distinctVals(l),p=b.vals,C=Im.distinctVals(u),E=C.vals,A=[],L,x,k=E.length,M=p.length;for(v=0;v{"use strict";var F_t=Eo(),z_t=Dr(),e8=hs().BADNUM;M_e.exports=function(t,r,n,i){var a,o,s,l,u,c;function f(p){if(F_t(p))return+p}if(r&&r.transpose){for(a=0,u=0;u{"use strict";var O_t=Dr(),E_e=.01,q_t=[[-1,0],[1,0],[0,-1],[0,1]];function B_t(e){return .5-.25*Math.min(1,e*.5)}k_e.exports=function(t,r){var n=1,i;for(C_e(t,r),i=0;iE_e;i++)n=C_e(t,r,B_t(n));return n>E_e&&O_t.log("interp2d didn't converge quickly",n),t};function C_e(e,t,r){var n=0,i,a,o,s,l,u,c,f,h,d,v,_,b;for(s=0;s_&&(n=Math.max(n,Math.abs(e[a][o]-v)/(b-_))))}return n}});var i8=ye((Mlr,L_e)=>{"use strict";var N_t=Dr().maxRowLength;L_e.exports=function(t){var r=[],n={},i=[],a=t[0],o=[],s=[0,0,0],l=N_t(t),u,c,f,h,d,v,_,b;for(c=0;c=0;d--)h=i[d],c=h[0],f=h[1],v=((n[[c-1,f]]||s)[2]+(n[[c+1,f]]||s)[2]+(n[[c,f-1]]||s)[2]+(n[[c,f+1]]||s)[2])/20,v&&(_[h]=[c,f,v],i.splice(d,1),b=!0);if(!b)throw"findEmpties iterated with no new neighbors";for(h in _)n[h]=_[h],r.push(_[h])}return r.sort(function(p,C){return C[2]-p[2]})}});var WV=ye((Elr,R_e)=>{"use strict";var P_e=qa(),I_e=Dr().isArrayOrTypedArray;R_e.exports=function(t,r,n,i,a,o){var s=[],l=P_e.traceIs(t,"contour"),u=P_e.traceIs(t,"histogram"),c,f,h,d=I_e(r)&&r.length>1;if(d&&!u&&o.type!=="category"){var v=r.length;if(v<=a){if(l)s=Array.from(r).slice(0,a);else if(a===1)o.type==="log"?s=[.5*r[0],2*r[0]]:s=[r[0]-.5,r[0]+.5];else if(o.type==="log"){for(s=[Math.pow(r[0],1.5)/Math.pow(r[1],.5)],h=1;h{"use strict";var D_e=qa(),XV=Dr(),n8=ho(),F_e=Rg(),U_t=w_e(),V_t=Fv(),G_t=QI(),H_t=t8(),j_t=r8(),W_t=i8(),a8=WV(),ZV=hs().BADNUM;O_e.exports=function(t,r){var n=n8.getFromId(t,r.xaxis||"x"),i=n8.getFromId(t,r.yaxis||"y"),a=D_e.traceIs(r,"contour"),o=D_e.traceIs(r,"histogram"),s=a?"best":r.zsmooth,l,u,c,f,h,d,v,_,b,p,C;if(n._minDtick=0,i._minDtick=0,o)C=U_t(t,r),f=C.orig_x,l=C.x,u=C.x0,c=C.dx,_=C.orig_y,h=C.y,d=C.y0,v=C.dy,b=C.z;else{var E=r.z;XV.isArray1D(E)?(G_t(r,n,i,"x","y",["z"]),l=r._x,h=r._y,E=r._z):(f=r.x?n.makeCalcdata(r,"x"):[],_=r.y?i.makeCalcdata(r,"y"):[],l=F_e(r,n,"x",f).vals,h=F_e(r,i,"y",_).vals,r._x=l,r._y=h),u=r.x0,c=r.dx,d=r.y0,v=r.dy,b=H_t(E,r,n,i)}(n.rangebreaks||i.rangebreaks)&&(b=X_t(l,h,b),o||(l=z_e(l),h=z_e(h),r._x=l,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=W_t(b),j_t(b,r._emptypoints));function A(O){s=r._input.zsmooth=r.zsmooth=!1,XV.warn('cannot use zsmooth: "fast": '+O)}function L(O){if(O.length>1){var V=(O[O.length-1]-O[0])/(O.length-1),G=Math.abs(V/100);for(p=0;pG)return!1}return!0}r._islinear=!1,n.type==="log"||i.type==="log"?s==="fast"&&A("log axis found"):L(l)?L(h)?r._islinear=!0:s==="fast"&&A("y scale is not linear"):s==="fast"&&A("x scale is not linear");var x=XV.maxRowLength(b),k=r.xtype==="scaled"?"":l,M=a8(r,k,u,c,x,n),g=r.ytype==="scaled"?"":h,P=a8(r,g,d,v,b.length,i);r._extremes[n._id]=n8.findExtremes(n,M),r._extremes[i._id]=n8.findExtremes(i,P);var T={x:M,y:P,z:b,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&f&&(T.orig_x=f),r.yperiodalignment&&_&&(T.orig_y=_),k&&k.length===M.length-1&&(T.xCenter=k),g&&g.length===P.length-1&&(T.yCenter=g),o&&(T.xRanges=C.xRanges,T.yRanges=C.yRanges,T.pts=C.pts),a||V_t(t,r,{vals:b,cLetter:"z"}),a&&r.contours&&r.contours.coloring==="heatmap"){var z={type:r.type==="contour"?"heatmap":"histogram2d",xcalendar:r.xcalendar,ycalendar:r.ycalendar};T.xfill=a8(z,k,u,c,x,n),T.yfill=a8(z,g,d,v,b.length,i)}return[T]};function z_e(e){for(var t=[],r=e.length,n=0;n{"use strict";s8.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]];s8.STYLE=s8.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var KV=ye((Llr,B_e)=>{"use strict";var q_e=l8(),Z_t=So(),YV=Dr(),PT=null;function Y_t(){if(PT!==null)return PT;PT=!1;var e=YV.isSafari()||YV.isMacWKWebView()||YV.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(q_e.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")PT=t.some(function(o){return r.apply(null,o)});else{var n=Z_t.tester.append("image").attr("style",q_e.STYLE),i=window.getComputedStyle(n.node()),a=i.imageRendering;PT=t.some(function(o){var s=o[1];return a===s||a===s.toLowerCase()}),n.remove()}}return PT}B_e.exports=Y_t});var u8=ye((Plr,Z_e)=>{"use strict";var N_e=Oa(),K_t=cd(),J_t=qa(),$_t=So(),Q_t=ho(),H0=Dr(),U_e=iu(),ext=eI(),txt=Ca(),rxt=tc().extractOpts,ixt=tc().makeColorScaleFuncFromTrace,nxt=Wp(),axt=Kh(),JV=axt.LINE_SPACING,oxt=KV(),sxt=l8().STYLE,W_e="heatmap-label";function X_e(e){return e.selectAll("g."+W_e)}function V_e(e){X_e(e).remove()}Z_e.exports=function(e,t,r,n){var i=t.xaxis,a=t.yaxis;H0.makeTraceGroups(n,r,"hm").each(function(o){var s=N_e.select(this),l=o[0],u=l.trace,c=u.xgap||0,f=u.ygap||0,h=l.z,d=l.x,v=l.y,_=l.xCenter,b=l.yCenter,p=J_t.traceIs(u,"contour"),C=p?"best":u.zsmooth,E=h.length,A=H0.maxRowLength(h),L=!1,x=!1,k,M,g,P,T,z,O,V;for(z=0;k===void 0&&z0;)M=i.c2p(d[z]),z--;for(M0;)T=a.c2p(v[z]),z--;T=i._length||M<=0||P>=a._length||T<=0;if(j){var re=s.selectAll("image").data([]);re.exit().remove(),V_e(s);return}var oe,_e;G==="fast"?(oe=A,_e=E):(oe=H,_e=N);var Me=document.createElement("canvas");Me.width=oe,Me.height=_e;var ke=Me.getContext("2d",{willReadFrequently:!0}),me=ixt(u,{noNumericCheck:!0,returnArray:!0}),ie,Se;G==="fast"?(ie=L?function(cn){return A-1-cn}:H0.identity,Se=x?function(cn){return E-1-cn}:H0.identity):(ie=function(cn){return H0.constrain(Math.round(i.c2p(d[cn])-k),0,H)},Se=function(cn){return H0.constrain(Math.round(a.c2p(v[cn])-P),0,N)});var Le=Se(0),Ae=[Le,Le],De=L?0:1,Pe=x?0:1,ge=0,Fe=0,ce=0,Ye=0,ct,pt,Wt,st,lt;function Gt(cn,yn){if(cn!==void 0){var Mn=me(cn);return Mn[0]=Math.round(Mn[0]),Mn[1]=Math.round(Mn[1]),Mn[2]=Math.round(Mn[2]),ge+=yn,Fe+=Mn[0]*yn,ce+=Mn[1]*yn,Ye+=Mn[2]*yn,Mn}return[0,0,0,0]}function Nt(cn,yn,Mn,Ba){var la=cn[Mn.bin0];if(la===void 0)return Gt(void 0,1);var ma=cn[Mn.bin1],Wa=yn[Mn.bin0],Fa=yn[Mn.bin1],Wo=ma-la||0,da=Wa-la||0,Wn;return ma===void 0?Fa===void 0?Wn=0:Wa===void 0?Wn=2*(Fa-la):Wn=(2*Fa-Wa-la)*2/3:Fa===void 0?Wa===void 0?Wn=0:Wn=(2*la-ma-Wa)*2/3:Wa===void 0?Wn=(2*Fa-ma-la)*2/3:Wn=Fa+la-ma-Wa,Gt(la+Mn.frac*Wo+Ba.frac*(da+Mn.frac*Wn))}if(G!=="default"){var $t=0,sr;try{sr=new Uint8Array(oe*_e*4)}catch(cn){sr=new Array(oe*_e*4)}if(G==="smooth"){var wr=_||d,ur=b||v,Qe=new Array(wr.length),Et=new Array(ur.length),er=new Array(H),Ut=_?H_e:G_e,Ft=b?H_e:G_e,bt,yt,Yt;for(z=0;zpr||pr>a._length))for(O=Ce;Odi||di>i._length)){var Jr=ext({x:oi,y:ir},u,e._fullLayout);Jr.x=oi,Jr.y=ir;var fi=l.z[z][O];fi===void 0?(Jr.z="",Jr.zLabel=""):(Jr.z=fi,Jr.zLabel=Q_t.tickText(je,fi,"hover").text);var Hi=l.text&&l.text[z]&&l.text[z][O];(Hi===void 0||Hi===!1)&&(Hi=""),Jr.text=Hi;var Pn=H0.texttemplateString(Ge,Jr,e._fullLayout._d3locale,Jr,u._meta||{});if(Pn){var wn=Pn.split("
"),pn=wn.length,Vn=0;for(V=0;V{"use strict";Y_e.exports={min:"zmin",max:"zmax"}});var c8=ye((Rlr,K_e)=>{"use strict";var lxt=Oa();K_e.exports=function(t){lxt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var h8=ye((Dlr,$_e)=>{"use strict";var J_e=vf(),T4=Dr(),f8=T4.isArrayOrTypedArray,uxt=ho(),cxt=tc().extractOpts;$_e.exports=function(t,r,n,i,a){a||(a={});var o=a.isContour,s=t.cd[0],l=s.trace,u=t.xa,c=t.ya,f=s.x,h=s.y,d=s.z,v=s.xCenter,_=s.yCenter,b=s.zmask,p=l.zhoverformat,C=f,E=h,A,L,x,k;if(t.index!==!1){try{x=Math.round(t.index[1]),k=Math.round(t.index[0])}catch(re){T4.error("Error hovering on heatmap, pointNumber must be [row,col], found:",t.index);return}if(x<0||x>=d[0].length||k<0||k>d.length)return}else{if(J_e.inbox(r-f[0],r-f[f.length-1],0)>0||J_e.inbox(n-h[0],n-h[h.length-1],0)>0)return;if(o){var M;for(C=[2*f[0]-f[1]],M=1;M{"use strict";Q_e.exports={attributes:ET(),supplyDefaults:e_e(),calc:o8(),plot:u8(),colorbar:M_(),style:c8(),hoverPoints:h8(),moduleType:"trace",name:"heatmap",basePlotModule:vh(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var rxe=ye((zlr,txe)=>{"use strict";txe.exports=exe()});var $V=ye((Olr,ixe)=>{"use strict";ixe.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var axe=ye((qlr,nxe)=>{"use strict";nxe.exports={eventDataKeys:["binNumber"]}});var d8=ye((Blr,lxe)=>{"use strict";var Pp=Lm(),oxe=df().axisHoverFormat,fxt=Qo().hovertemplateAttrs,hxt=Qo().texttemplateAttrs,QV=ec(),sxe=$V(),dxt=axe(),eG=Ao().extendFlat;lxe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:oxe("x"),yhoverformat:oxe("y"),text:eG({},Pp.text,{}),hovertext:eG({},Pp.hovertext,{}),orientation:Pp.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:sxe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:sxe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:fxt({},{keys:dxt.eventDataKeys}),texttemplate:hxt({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),textposition:eG({},Pp.textposition,{arrayOk:!1}),textfont:QV({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:QV({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:QV({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Pp.insidetextanchor,textangle:Pp.textangle,cliponaxis:Pp.cliponaxis,constraintext:Pp.constraintext,marker:Pp.marker,offsetgroup:Pp.offsetgroup,alignmentgroup:Pp.alignmentgroup,selected:Pp.selected,unselected:Pp.unselected,zorder:Pp.zorder}});var hxe=ye((Nlr,fxe)=>{"use strict";var uxe=qa(),A4=Dr(),cxe=Ca(),vxt=r0().handleText,pxt=qI(),gxt=d8();fxe.exports=function(t,r,n,i){function a(C,E){return A4.coerce(t,r,gxt,C,E)}var o=a("x"),s=a("y"),l=a("cumulative.enabled");l&&(a("cumulative.direction"),a("cumulative.currentbin")),a("text");var u=a("textposition");vxt(t,r,i,a,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat");var c=a("orientation",s&&!o?"h":"v"),f=c==="v"?"x":"y",h=c==="v"?"y":"x",d=o&&s?Math.min(A4.minRowLength(o)&&A4.minRowLength(s)):A4.minRowLength(r[f]||[]);if(!d){r.visible=!1;return}r._length=d;var v=uxe.getComponentMethod("calendars","handleTraceDefaults");v(t,r,["x","y"],i);var _=r[h];_&&a("histfunc"),a("histnorm"),a("autobin"+f),pxt(t,r,a,n,i),A4.coerceSelectionMarkerOpacity(r,a);var b=(r.marker.line||{}).color,p=uxe.getComponentMethod("errorbars","supplyDefaults");p(t,r,b||cxe.defaultLine,{axis:"y"}),p(t,r,b||cxe.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var p8=ye((Ulr,pxe)=>{"use strict";var S4=Dr(),mxt=hf(),v8=qa().traceIs,yxt=Gb(),_xt=r0().validateCornerradius,dxe=S4.nestedProperty,tG=Bb().getAxisGroup,vxe=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],xxt=["x","y"];pxe.exports=function(t,r){var n=r._histogramBinOpts={},i=[],a={},o=[],s,l,u,c,f,h,d;function v(G,Z){return S4.coerce(s._input,s,s._module.attributes,G,Z)}function _(G){return G.orientation==="v"?"x":"y"}function b(G,Z){var H=mxt.getFromTrace({_fullLayout:r},G,Z);return H.type}function p(G,Z,H){var N=G.uid+"__"+H;Z||(Z=N);var j=b(G,H),re=G[H+"calendar"]||"",oe=n[Z],_e=!0;oe&&(j===oe.axType&&re===oe.calendar?(_e=!1,oe.traces.push(G),oe.dirs.push(H)):(Z=N,j!==oe.axType&&S4.warn(["Attempted to group the bins of trace",G.index,"set on a","type:"+j,"axis","with bins on","type:"+oe.axType,"axis."].join(" ")),re!==oe.calendar&&S4.warn(["Attempted to group the bins of trace",G.index,"set with a",re,"calendar","with bins",oe.calendar?"on a "+oe.calendar+" calendar":"w/o a set calendar"].join(" ")))),_e&&(n[Z]={traces:[G],dirs:[H],axType:j,calendar:G[H+"calendar"]||""}),G["_"+H+"bingroup"]=Z}for(f=0;f{"use strict";var bxt=TT().hoverPoints,wxt=ho().hoverLabelText;gxe.exports=function(t,r,n,i,a){var o=bxt(t,r,n,i,a);if(o){t=o[0];var s=t.cd[t.index],l=t.cd[0].trace;if(!l.cumulative.enabled){var u=l.orientation==="h"?"y":"x";t[u+"Label"]=wxt(t[u+"a"],[s.ph0,s.ph1],l[u+"hoverformat"])}return o}}});var rG=ye((Glr,yxe)=>{"use strict";yxe.exports=function(t,r,n,i,a){if(t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"zLabelVal"in r&&(t.z=r.zLabelVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),!(n.cumulative||{}).enabled){var o=Array.isArray(a)?i[0].pts[a[0]][a[1]]:i[a].pts;t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex;var s;if(n._indexToPoints){s=[];for(var l=0;l{"use strict";_xe.exports={attributes:d8(),layoutAttributes:OI(),supplyDefaults:hxe(),crossTraceDefaults:p8(),supplyLayoutDefaults:wV(),calc:jV().calc,crossTraceCalc:Hb().crossTraceCalc,plot:i2().plot,layerName:"barlayer",style:N0().style,styleOnSelect:N0().styleOnSelect,colorbar:$d(),hoverPoints:mxe(),selectPoints:AT(),eventData:rG(),moduleType:"trace",name:"histogram",basePlotModule:vh(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var wxe=ye((jlr,bxe)=>{"use strict";bxe.exports=xxe()});var m8=ye((Wlr,Axe)=>{"use strict";var Vg=d8(),Txe=$V(),g8=ET(),Txt=Vl(),iG=df().axisHoverFormat,Axt=Qo().hovertemplateAttrs,Sxt=Qo().texttemplateAttrs,Mxt=Tu(),M4=Ao().extendFlat;Axe.exports=M4({x:Vg.x,y:Vg.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:Vg.histnorm,histfunc:Vg.histfunc,nbinsx:Vg.nbinsx,xbins:Txe("x"),nbinsy:Vg.nbinsy,ybins:Txe("y"),autobinx:Vg.autobinx,autobiny:Vg.autobiny,bingroup:M4({},Vg.bingroup,{}),xbingroup:M4({},Vg.bingroup,{}),ybingroup:M4({},Vg.bingroup,{}),xgap:g8.xgap,ygap:g8.ygap,zsmooth:g8.zsmooth,xhoverformat:iG("x"),yhoverformat:iG("y"),zhoverformat:iG("z",1),hovertemplate:Axt({},{keys:"z"}),texttemplate:Sxt({arrayOk:!1,editType:"plot"},{keys:"z"}),textfont:g8.textfont,showlegend:M4({},Txt.showlegend,{dflt:!1})},Mxt("",{cLetter:"z",autoColorDflt:!1}))});var nG=ye((Xlr,Mxe)=>{"use strict";var Ext=qa(),Sxe=Dr();Mxe.exports=function(t,r,n,i){var a=n("x"),o=n("y"),s=Sxe.minRowLength(a),l=Sxe.minRowLength(o);if(!s||!l){r.visible=!1;return}r._length=Math.min(s,l);var u=Ext.getComponentMethod("calendars","handleTraceDefaults");u(t,r,["x","y"],i);var c=n("z")||n("marker.color");c&&n("histfunc"),n("histnorm"),n("autobinx"),n("autobiny")}});var Cxe=ye((Zlr,Exe)=>{"use strict";var Cxt=Dr(),kxt=nG(),Lxt=qV(),Pxt=Jh(),Ixt=w4(),Rxt=m8();Exe.exports=function(t,r,n,i){function a(o,s){return Cxt.coerce(t,r,Rxt,o,s)}kxt(t,r,a,i),r.visible!==!1&&(Lxt(t,r,a,i),Pxt(t,r,i,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),Ixt(a,i),a("xhoverformat"),a("yhoverformat"))}});var Pxe=ye((Ylr,Lxe)=>{"use strict";var Dxt=h8(),kxe=ho().hoverLabelText;Lxe.exports=function(t,r,n,i,a){var o=Dxt(t,r,n,i,a);if(o){t=o[0];var s=t.index,l=s[0],u=s[1],c=t.cd[0],f=c.trace,h=c.xRanges[u],d=c.yRanges[l];return t.xLabel=kxe(t.xa,[h[0],h[1]],f.xhoverformat),t.yLabel=kxe(t.ya,[d[0],d[1]],f.yhoverformat),o}}});var Rxe=ye((Klr,Ixe)=>{"use strict";Ixe.exports={attributes:m8(),supplyDefaults:Cxe(),crossTraceDefaults:p8(),calc:o8(),plot:u8(),layerName:"heatmaplayer",colorbar:M_(),style:c8(),hoverPoints:Pxe(),eventData:rG(),moduleType:"trace",name:"histogram2d",basePlotModule:vh(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var Fxe=ye((Jlr,Dxe)=>{"use strict";Dxe.exports=Rxe()});var y8=ye(($lr,zxe)=>{"use strict";zxe.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var E4=ye((Qlr,Nxe)=>{"use strict";var ed=ET(),_8=pf(),qxe=df(),aG=qxe.axisHoverFormat,Fxt=qxe.descriptionOnlyNumbers,zxt=Tu(),Oxt=Pd().dash,qxt=ec(),IT=Ao().extendFlat,Bxe=y8(),Bxt=Bxe.COMPARISON_OPS2,Nxt=Bxe.INTERVAL_OPS,Oxe=_8.line;Nxe.exports=IT({z:ed.z,x:ed.x,x0:ed.x0,dx:ed.dx,y:ed.y,y0:ed.y0,dy:ed.dy,xperiod:ed.xperiod,yperiod:ed.yperiod,xperiod0:_8.xperiod0,yperiod0:_8.yperiod0,xperiodalignment:ed.xperiodalignment,yperiodalignment:ed.yperiodalignment,text:ed.text,hovertext:ed.hovertext,transpose:ed.transpose,xtype:ed.xtype,ytype:ed.ytype,xhoverformat:aG("x"),yhoverformat:aG("y"),zhoverformat:aG("z",1),hovertemplate:ed.hovertemplate,texttemplate:IT({},ed.texttemplate,{}),textfont:IT({},ed.textfont,{}),hoverongaps:ed.hoverongaps,connectgaps:IT({},ed.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:qxt({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:Fxt("contour label")},operation:{valType:"enumerated",values:[].concat(Bxt).concat(Nxt),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:IT({},Oxe.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:Oxt,smoothing:IT({},Oxe.smoothing,{}),editType:"plot"},zorder:_8.zorder},zxt("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var sG=ye((eur,Vxe)=>{"use strict";var Gv=m8(),Oy=E4(),Uxt=Tu(),oG=df().axisHoverFormat,Uxe=Ao().extendFlat;Vxe.exports=Uxe({x:Gv.x,y:Gv.y,z:Gv.z,marker:Gv.marker,histnorm:Gv.histnorm,histfunc:Gv.histfunc,nbinsx:Gv.nbinsx,xbins:Gv.xbins,nbinsy:Gv.nbinsy,ybins:Gv.ybins,autobinx:Gv.autobinx,autobiny:Gv.autobiny,bingroup:Gv.bingroup,xbingroup:Gv.xbingroup,ybingroup:Gv.ybingroup,autocontour:Oy.autocontour,ncontours:Oy.ncontours,contours:Oy.contours,line:{color:Oy.line.color,width:Uxe({},Oy.line.width,{dflt:.5}),dash:Oy.line.dash,smoothing:Oy.line.smoothing,editType:"plot"},xhoverformat:oG("x"),yhoverformat:oG("y"),zhoverformat:oG("z",1),hovertemplate:Gv.hovertemplate,texttemplate:Oy.texttemplate,textfont:Oy.textfont},Uxt("",{cLetter:"z",editTypeOverride:"calc"}))});var x8=ye((tur,Gxe)=>{"use strict";Gxe.exports=function(t,r,n,i){var a=i("contours.start"),o=i("contours.end"),s=a===!1||o===!1,l=n("contours.size"),u;s?u=r.autocontour=!0:u=n("autocontour",!1),(u||!l)&&n("ncontours")}});var lG=ye((rur,Hxe)=>{"use strict";var Vxt=Dr();Hxe.exports=function(t,r,n,i){i||(i={});var a=t("contours.showlabels");if(a){var o=r.font;Vxt.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:n}}),t("contours.labelformat")}i.hasHover!==!1&&t("zhoverformat")}});var b8=ye((iur,jxe)=>{"use strict";var Gxt=Jh(),Hxt=lG();jxe.exports=function(t,r,n,i,a){var o=n("contours.coloring"),s,l="";o==="fill"&&(s=n("contours.showlines")),s!==!1&&(o!=="lines"&&(l=n("line.color","#000")),n("line.width",.5),n("line.dash")),o!=="none"&&(t.showlegend!==!0&&(r.showlegend=!1),r._dfltShowLegend=!1,Gxt(t,r,i,n,{prefix:"",cLetter:"z"})),n("line.smoothing"),Hxt(n,i,l,a)}});var Yxe=ye((nur,Zxe)=>{"use strict";var Wxe=Dr(),jxt=nG(),Wxt=x8(),Xxt=b8(),Zxt=w4(),Xxe=sG();Zxe.exports=function(t,r,n,i){function a(s,l){return Wxe.coerce(t,r,Xxe,s,l)}function o(s){return Wxe.coerce2(t,r,Xxe,s)}jxt(t,r,a,i),r.visible!==!1&&(Wxt(t,r,a,o),Xxt(t,r,a,i),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),r.contours&&r.contours.coloring==="heatmap"&&Zxt(a,i))}});var fG=ye((aur,Jxe)=>{"use strict";var cG=ho(),uG=Dr();Jxe.exports=function(t,r){var n=t.contours;if(t.autocontour){var i=t.zmin,a=t.zmax;(t.zauto||i===void 0)&&(i=uG.aggNums(Math.min,null,r)),(t.zauto||a===void 0)&&(a=uG.aggNums(Math.max,null,r));var o=Kxe(i,a,t.ncontours);n.size=o.dtick,n.start=cG.tickFirst(o),o.range.reverse(),n.end=cG.tickFirst(o),n.start===i&&(n.start+=n.size),n.end===a&&(n.end-=n.size),n.start>n.end&&(n.start=n.end=(n.start+n.end)/2),t._input.contours||(t._input.contours={}),uG.extendFlat(t._input.contours,{start:n.start,end:n.end,size:n.size}),t._input.autocontour=!0}else if(n.type!=="constraint"){var s=n.start,l=n.end,u=t._input.contours;if(s>l&&(n.start=u.start=l,l=n.end=u.end=s,s=n.start),!(n.size>0)){var c;s===l?c=1:c=Kxe(s,l,t.ncontours).dtick,u.size=n.size=c}}};function Kxe(e,t,r){var n={type:"linear",range:[e,t]};return cG.autoTicks(n,(t-e)/(r||15)),n}});var C4=ye((our,$xe)=>{"use strict";$xe.exports=function(t){return t.end+t.size/1e6}});var hG=ye((sur,ebe)=>{"use strict";var Qxe=tc(),Yxt=o8(),Kxt=fG(),Jxt=C4();ebe.exports=function(t,r){var n=Yxt(t,r),i=n[0].z;Kxt(r,i);var a=r.contours,o=Qxe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var l=a.start,u=Jxt(a),c=a.size||1,f=Math.floor((u-l)/c)+1;isFinite(c)||(c=1,f=1);var h=l-c/2,d=h+f*c;s=[h,d]}else s=i;return Qxe.calc(t,r,{vals:s,cLetter:"z"}),n}});var k4=ye((lur,tbe)=>{"use strict";tbe.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}});var dG=ye((uur,rbe)=>{"use strict";var w8=k4();rbe.exports=function(t){var r=t[0].z,n=r.length,i=r[0].length,a=n===2||i===2,o,s,l,u,c,f,h,d,v;for(s=0;se?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);if(r===5||r===10){var n=(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4;return e>n?r===5?713:1114:r===5?104:208}return r===15?0:r}});var vG=ye((cur,abe)=>{"use strict";var T8=Dr(),RT=k4();abe.exports=function(t,r,n){var i,a,o,s,l;for(r=r||.01,n=n||.01,o=0;o20?(o=RT.CHOOSESADDLE[o][(s[0]||s[1])<0?0:1],e.crossings[a]=RT.SADDLEREMAINDER[o]):delete e.crossings[a],s=RT.NEWDELTA[o],!s){T8.log("Found bad marching index:",o,t,e.level);break}l.push(nbe(e,t,s)),t[0]+=s[0],t[1]+=s[1],a=t.join(","),L4(l[l.length-1],l[l.length-2],n,i)&&l.pop();var v=s[0]&&(t[0]<0||t[0]>c-2)||s[1]&&(t[1]<0||t[1]>u-2),_=t[0]===f[0]&&t[1]===f[1]&&s[0]===h[0]&&s[1]===h[1];if(_||r&&v)break;o=e.crossings[a]}d===1e4&&T8.log("Infinite loop in contour?");var b=L4(l[0],l[l.length-1],n,i),p=0,C=.2*e.smoothing,E=[],A=0,L,x,k,M,g,P,T,z,O,V,G;for(d=1;d=A;d--)if(L=E[d],L=A&&L+E[x]z&&O--,e.edgepaths[O]=G.concat(l,V));break}j||(e.edgepaths[z]=l.concat(V))}for(z=0;z20&&t?e===208||e===1114?n=r[0]===0?1:-1:i=r[1]===0?1:-1:RT.BOTTOMSTART.indexOf(e)!==-1?i=1:RT.LEFTSTART.indexOf(e)!==-1?n=1:RT.TOPSTART.indexOf(e)!==-1?i=-1:n=-1,[n,i]}function nbe(e,t,r){var n=t[0]+Math.max(r[0],0),i=t[1]+Math.max(r[1],0),a=e.z[i][n],o=e.xaxis,s=e.yaxis;if(r[1]){var l=(e.level-a)/(e.z[i][n+1]-a),u=(l!==1?(1-l)*o.c2l(e.x[n]):0)+(l!==0?l*o.c2l(e.x[n+1]):0);return[o.c2p(o.l2c(u),!0),s.c2p(e.y[i],!0),n+l,i]}else{var c=(e.level-a)/(e.z[i+1][n]-a),f=(c!==1?(1-c)*s.c2l(e.y[i]):0)+(c!==0?c*s.c2l(e.y[i+1]):0);return[o.c2p(e.x[n],!0),s.c2p(s.l2c(f),!0),n,i+c]}}});var ube=ye((fur,lbe)=>{"use strict";var pG=y8(),tbt=Eo();lbe.exports={"[]":obe("[]"),"][":obe("]["),">":gG(">"),"<":gG("<"),"=":gG("=")};function sbe(e,t){var r=Array.isArray(t),n;function i(a){return tbt(a)?+a:null}return pG.COMPARISON_OPS2.indexOf(e)!==-1?n=i(r?t[0]:t):pG.INTERVAL_OPS.indexOf(e)!==-1?n=r?[i(t[0]),i(t[1])]:[i(t),i(t)]:pG.SET_OPS.indexOf(e)!==-1&&(n=r?t.map(i):[i(t)]),n}function obe(e){return function(t){t=sbe(e,t);var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return{start:r,end:n,size:n-r}}}function gG(e){return function(t){return t=sbe(e,t),{start:t,end:1/0,size:1/0}}}});var mG=ye((hur,fbe)=>{"use strict";var cbe=Dr(),rbt=ube(),ibt=C4();fbe.exports=function(t,r,n){for(var i=t.type==="constraint"?rbt[t._operation](t.value):t,a=i.size,o=[],s=ibt(i),l=n.trace._carpetTrace,u=l?{xaxis:l.aaxis,yaxis:l.baxis,x:n.a,y:n.b}:{xaxis:r.xaxis,yaxis:r.yaxis,x:n.x,y:n.y},c=i.start;c1e3){cbe.warn("Too many contours, clipping at 1000",t);break}return o}});var yG=ye((dur,dbe)=>{"use strict";var DT=Dr();dbe.exports=function(e,t){var r,n,i,a=function(l){return l.reverse()},o=function(l){return l};switch(t){case"=":case"<":return e;case">":for(e.length!==1&&DT.warn("Contour data invalid for the specified inequality operation."),n=e[0],r=0;r{"use strict";vbe.exports=function(e,t){var r=e[0],n=r.z,i;switch(t.type){case"levels":var a=Math.min(n[0][0],n[0][1]);for(i=0;io.level||o.starts.length&&a===o.level)}break;case"constraint":if(r.prefixBoundary=!1,r.edgepaths.length)return;var s=r.x.length,l=r.y.length,u=-1/0,c=1/0;for(i=0;i":f>u&&(r.prefixBoundary=!0);break;case"<":(fu||r.starts.length&&d===c)&&(r.prefixBoundary=!0);break;case"][":h=Math.min(f[0],f[1]),d=Math.max(f[0],f[1]),hu&&(r.prefixBoundary=!0);break}break}}});var A8=ye(Hv=>{"use strict";var I4=Oa(),zd=Dr(),qy=So(),nbt=tc(),mbe=iu(),pbe=ho(),gbe=ym(),abt=u8(),ybe=dG(),_be=vG(),obt=mG(),sbt=yG(),xbe=_G(),P4=k4(),Rm=P4.LABELOPTIMIZER;Hv.plot=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;zd.makeTraceGroups(i,n,"contour").each(function(s){var l=I4.select(this),u=s[0],c=u.trace,f=u.x,h=u.y,d=c.contours,v=obt(d,r,u),_=zd.ensureSingle(l,"g","heatmapcoloring"),b=[];d.coloring==="heatmap"&&(b=[s]),abt(t,r,b,_),ybe(v),_be(v);var p=a.c2p(f[0],!0),C=a.c2p(f[f.length-1],!0),E=o.c2p(h[0],!0),A=o.c2p(h[h.length-1],!0),L=[[p,A],[C,A],[C,E],[p,E]],x=v;d.type==="constraint"&&(x=sbt(v,d._operation)),lbt(l,L,d),ubt(l,x,L,d),cbt(l,v,t,u,d),hbt(l,r,t,u,L)})};function lbt(e,t,r){var n=zd.ensureSingle(e,"g","contourbg"),i=n.selectAll("path").data(r.coloring==="fill"?[0]:[]);i.enter().append("path"),i.exit().remove(),i.attr("d","M"+t.join("L")+"Z").style("stroke","none")}function ubt(e,t,r,n){var i=n.coloring==="fill"||n.type==="constraint"&&n._operation!=="=",a="M"+r.join("L")+"Z";i&&xbe(t,n);var o=zd.ensureSingle(e,"g","contourfill"),s=o.selectAll("path").data(i?t:[]);s.enter().append("path"),s.exit().remove(),s.each(function(l){var u=(l.prefixBoundary?a:"")+bbe(l,r);u?I4.select(this).attr("d",u).style("stroke","none"):I4.select(this).remove()})}function bbe(e,t){var r="",n=0,i=e.edgepaths.map(function(p,C){return C}),a=!0,o,s,l,u,c,f;function h(p){return Math.abs(p[1]-t[0][1])<.01}function d(p){return Math.abs(p[1]-t[2][1])<.01}function v(p){return Math.abs(p[0]-t[0][0])<.01}function _(p){return Math.abs(p[0]-t[2][0])<.01}for(;i.length;){for(f=qy.smoothopen(e.edgepaths[n],e.smoothing),r+=a?f:f.replace(/^M/,"L"),i.splice(i.indexOf(n),1),o=e.edgepaths[n][e.edgepaths[n].length-1],u=-1,l=0;l<4;l++){if(!o){zd.log("Missing end?",n,e);break}for(h(o)&&!_(o)?s=t[1]:v(o)?s=t[0]:d(o)?s=t[3]:_(o)&&(s=t[2]),c=0;c=0&&(s=b,u=c):Math.abs(o[1]-s[1])<.01?Math.abs(o[1]-b[1])<.01&&(b[0]-o[0])*(s[0]-b[0])>=0&&(s=b,u=c):zd.log("endpt to newendpt is not vert. or horz.",o,s,b)}if(o=s,u>=0)break;r+="L"+s}if(u===e.edgepaths.length){zd.log("unclosed perimeter path");break}n=u,a=i.indexOf(n)===-1,a&&(n=i[0],r+="Z")}for(n=0;nRm.MAXCOST*2)break;h&&(s/=2),o=u-s/2,l=o+s*1.5}if(f<=Rm.MAXCOST)return c};function fbt(e,t,r,n){var i=t.width/2,a=t.height/2,o=e.x,s=e.y,l=e.theta,u=Math.cos(l)*i,c=Math.sin(l)*i,f=(o>n.center?n.right-o:o-n.left)/(u+Math.abs(Math.sin(l)*a)),h=(s>n.middle?n.bottom-s:s-n.top)/(Math.abs(c)+Math.cos(l)*a);if(f<1||h<1)return 1/0;var d=Rm.EDGECOST*(1/(f-1)+1/(h-1));d+=Rm.ANGLECOST*l*l;for(var v=o-u,_=s-c,b=o+u,p=s+c,C=0;C{"use strict";var vbt=Oa(),xG=tc(),pbt=C4();wbe.exports=function(t){var r=t.contours,n=r.start,i=pbt(r),a=r.size||1,o=Math.floor((i-n)/a)+1,s=r.coloring==="lines"?0:1,l=xG.extractOpts(t);isFinite(a)||(a=1,o=1);var u=l.reversescale?xG.flipScale(l.colorscale):l.colorscale,c=u.length,f=new Array(c),h=new Array(c),d,v,_=l.min,b=l.max;if(r.coloring==="heatmap"){for(v=0;v=b)&&(n<=_&&(n=_),i>=b&&(i=b),o=Math.floor((i-n)/a)+1,s=0),v=0;v_&&(f.unshift(_),h.unshift(h[0])),f[f.length-1]{"use strict";var S8=Oa(),Tbe=So(),gbt=c8(),mbt=bG();Abe.exports=function(t){var r=S8.select(t).selectAll("g.contour");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=S8.select(this),a=n[0].trace,o=a.contours,s=a.line,l=o.size||1,u=o.start,c=o.type==="constraint",f=!c&&o.coloring==="lines",h=!c&&o.coloring==="fill",d=f||h?mbt(a):null;i.selectAll("g.contourlevel").each(function(b){S8.select(this).selectAll("path").call(Tbe.lineGroupStyle,s.width,f?d(b.level):s.color,s.dash)});var v=o.labelfont;if(i.selectAll("g.contourlabels text").each(function(b){Tbe.font(S8.select(this),{weight:v.weight,style:v.style,variant:v.variant,textcase:v.textcase,lineposition:v.lineposition,shadow:v.shadow,family:v.family,size:v.size,color:v.color||(f?d(b.level):s.color)})}),c)i.selectAll("g.contourfill path").style("fill",a.fillcolor);else if(h){var _;i.selectAll("g.contourfill path").style("fill",function(b){return _===void 0&&(_=b.level),d(b.level+.5*l)}),_===void 0&&(_=u),i.selectAll("g.contourbg path").style("fill",d(_-.5*l))}}),gbt(t)}});var E8=ye((yur,Mbe)=>{"use strict";var Sbe=tc(),ybt=bG(),_bt=C4();function xbt(e,t,r){var n=t.contours,i=t.line,a=n.size||1,o=n.coloring,s=ybt(t,{isColorbar:!0});if(o==="heatmap"){var l=Sbe.extractOpts(t);r._fillgradient=l.reversescale?Sbe.flipScale(l.colorscale):l.colorscale,r._zrange=[l.min,l.max]}else o==="fill"&&(r._fillcolor=s);r._line={color:o==="lines"?s:i.color,width:n.showlines!==!1?i.width:0,dash:i.dash},r._levels={start:n.start,end:_bt(n),size:a}}Mbe.exports={min:"zmin",max:"zmax",calc:xbt}});var wG=ye((_ur,Ebe)=>{"use strict";var C8=Ca(),bbt=h8();Ebe.exports=function(t,r,n,i,a){a||(a={}),a.isContour=!0;var o=bbt(t,r,n,i,a);return o&&o.forEach(function(s){var l=s.trace;l.contours.type==="constraint"&&(l.fillcolor&&C8.opacity(l.fillcolor)?s.color=C8.addOpacity(l.fillcolor,1):l.contours.showlines&&C8.opacity(l.line.color)&&(s.color=C8.addOpacity(l.line.color,1)))}),o}});var kbe=ye((xur,Cbe)=>{"use strict";Cbe.exports={attributes:sG(),supplyDefaults:Yxe(),crossTraceDefaults:p8(),calc:hG(),plot:A8().plot,layerName:"contourlayer",style:M8(),colorbar:E8(),hoverPoints:wG(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:vh(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var Pbe=ye((bur,Lbe)=>{"use strict";Lbe.exports=kbe()});var TG=ye((wur,Obe)=>{"use strict";var Ibe=Eo(),wbt=lG(),Fbe=Ca(),Rbe=Fbe.addOpacity,Tbt=Fbe.opacity,zbe=y8(),Dbe=Dr().isArrayOrTypedArray,Abt=zbe.CONSTRAINT_REDUCTION,Sbt=zbe.COMPARISON_OPS2;Obe.exports=function(t,r,n,i,a,o){var s=r.contours,l,u,c,f=n("contours.operation");if(s._operation=Abt[f],Mbt(n,s),f==="="?l=s.showlines=!0:(l=n("contours.showlines"),c=n("fillcolor",Rbe((t.line||{}).color||a,.5))),l){var h=c&&Tbt(c)?Rbe(r.fillcolor,1):a;u=n("line.color",h),n("line.width",2),n("line.dash")}n("line.smoothing"),wbt(n,i,u,o)};function Mbt(e,t){var r;Sbt.indexOf(t.operation)===-1?(e("contours.value",[0,1]),Dbe(t.value)?t.value.length>2?t.value=t.value.slice(2):t.length===0?t.value=[0,1]:t.length<2?(r=parseFloat(t.value[0]),t.value=[r,r+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:Ibe(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),Ibe(t.value)||(Dbe(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var Nbe=ye((Tur,Bbe)=>{"use strict";var AG=Dr(),Ebt=KI(),Cbt=Pg(),kbt=TG(),Lbt=x8(),Pbt=b8(),Ibt=w4(),qbe=E4();Bbe.exports=function(t,r,n,i){function a(u,c){return AG.coerce(t,r,qbe,u,c)}function o(u){return AG.coerce2(t,r,qbe,u)}var s=Ebt(t,r,a,i);if(!s){r.visible=!1;return}Cbt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hoverongaps"),a("hovertemplate");var l=a("contours.type")==="constraint";a("connectgaps",AG.isArray1D(r.z)),l?kbt(t,r,a,i,n):(Lbt(t,r,a,o),Pbt(t,r,a,i)),r.contours&&r.contours.coloring==="heatmap"&&Ibt(a,i),a("zorder")}});var Vbe=ye((Aur,Ube)=>{"use strict";Ube.exports={attributes:E4(),supplyDefaults:Nbe(),calc:hG(),plot:A8().plot,style:M8(),colorbar:E8(),hoverPoints:wG(),moduleType:"trace",name:"contour",basePlotModule:vh(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var Hbe=ye((Sur,Gbe)=>{"use strict";Gbe.exports=Vbe()});var SG=ye((Mur,Wbe)=>{"use strict";var Rbt=Qo().hovertemplateAttrs,Dbt=Qo().texttemplateAttrs,Fbt=Eg(),a0=pf(),zbt=Vl(),jbe=Tu(),Obt=Pd().dash,E_=Ao().extendFlat,j0=a0.marker,R4=a0.line,qbt=j0.line;Wbe.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:E_({},a0.mode,{dflt:"markers"}),text:E_({},a0.text,{}),texttemplate:Dbt({editType:"plot"},{keys:["a","b","c","text"]}),hovertext:E_({},a0.hovertext,{}),line:{color:R4.color,width:R4.width,dash:Obt,backoff:R4.backoff,shape:E_({},R4.shape,{values:["linear","spline"]}),smoothing:R4.smoothing,editType:"calc"},connectgaps:a0.connectgaps,cliponaxis:a0.cliponaxis,fill:E_({},a0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:Fbt(),marker:E_({symbol:j0.symbol,opacity:j0.opacity,angle:j0.angle,angleref:j0.angleref,standoff:j0.standoff,maxdisplayed:j0.maxdisplayed,size:j0.size,sizeref:j0.sizeref,sizemin:j0.sizemin,sizemode:j0.sizemode,line:E_({width:qbt.width,editType:"calc"},jbe("marker.line")),gradient:j0.gradient,editType:"calc"},jbe("marker")),textfont:a0.textfont,textposition:a0.textposition,selected:a0.selected,unselected:a0.unselected,hoverinfo:E_({},zbt.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:a0.hoveron,hovertemplate:Rbt()}});var Kbe=ye((Eur,Ybe)=>{"use strict";var Xbe=Dr(),Bbt=Sm(),FT=Ru(),Nbt=$p(),Ubt=R0(),Zbe=J3(),Vbt=D0(),Gbt=Ig(),Hbt=SG();Ybe.exports=function(t,r,n,i){function a(h,d){return Xbe.coerce(t,r,Hbt,h,d)}var o=a("a"),s=a("b"),l=a("c"),u;if(o?(u=o.length,s?(u=Math.min(u,s.length),l&&(u=Math.min(u,l.length))):l?u=Math.min(u,l.length):u=0):s&&l&&(u=Math.min(s.length,l.length)),!u){r.visible=!1;return}r._length=u,a("sum"),a("text"),a("hovertext"),r.hoveron!=="fills"&&a("hovertemplate");var c=u{"use strict";var MG=ho();Jbe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.aLabel=MG.tickText(a.aaxis,t.a,!0).text,i.bLabel=MG.tickText(a.baxis,t.b,!0).text,i.cLabel=MG.tickText(a.caxis,t.c,!0).text,i}});var r2e=ye((kur,t2e)=>{"use strict";var EG=Eo(),jbt=F0(),Wbt=Cm(),Xbt=z0(),Zbt=O0().calcMarkerSize,Qbe=["a","b","c"],e2e={a:["b","c"],b:["a","c"],c:["a","b"]};t2e.exports=function(t,r){var n=t._fullLayout[r.subplot],i=n.sum,a=r.sum||i,o={a:r.a,b:r.b,c:r.c},s=r.ids,l,u,c,f,h,d;for(l=0;l{"use strict";var Ybt=iT();i2e.exports=function(t,r,n){var i=r.plotContainer;i.select(".scatterlayer").selectAll("*").remove();for(var a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:i,layerClipId:r._hasClipOnAxisFalse?r.clipIdRelative:null},l=r.layers.frontplot.select("g.scatterlayer"),u=0;u{"use strict";var Kbt=sT();a2e.exports=function(t,r,n,i){var a=Kbt(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,l=t.xa._length,u=l*s/2,c=l-u;return o.x0=Math.max(Math.min(o.x0,c),u),o.x1=Math.max(Math.min(o.x1,c),u),a}var f=o.cd[o.index],h=o.trace,d=o.subplot;o.a=f.a,o.b=f.b,o.c=f.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var v={};v[h.subplot]={_subplot:d};var _=h._module.formatLabels(f,h,v);o.aLabel=_.aLabel,o.bLabel=_.bLabel,o.cLabel=_.cLabel;var b=f.hi||h.hoverinfo,p=[];function C(A,L){p.push(A._hovertitle+": "+L)}if(!h.hovertemplate){var E=b.split("+");E.indexOf("all")!==-1&&(E=["a","b","c"]),E.indexOf("a")!==-1&&C(d.aaxis,o.aLabel),E.indexOf("b")!==-1&&C(d.baxis,o.bLabel),E.indexOf("c")!==-1&&C(d.caxis,o.cLabel)}return o.extraText=p.join("
"),o.hovertemplate=h.hovertemplate,a}});var l2e=ye((Iur,s2e)=>{"use strict";s2e.exports=function(t,r,n,i,a){if(r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),i[a]){var o=i[a];t.a=o.a,t.b=o.b,t.c=o.c}else t.a=r.a,t.b=r.b,t.c=r.c;return t}});var _2e=ye((Rur,y2e)=>{"use strict";var v2e=Oa(),Jbt=cd(),CG=qa(),By=Dr(),Dm=By.strTranslate,k8=By._,OT=Ca(),L8=So(),D4=ym(),kG=Ao().extendFlat,$bt=Mc(),C_=ho(),u2e=gv(),c2e=vf(),p2e=Sg(),f2e=p2e.freeMode,Qbt=p2e.rectMode,LG=Mb(),e2t=zf().prepSelect,t2t=zf().selectOnClick,r2t=zf().clearOutline,i2t=zf().clearSelectionsCache,g2e=hd();function m2e(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.updateFx(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}y2e.exports=m2e;var Fm=m2e.prototype;Fm.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Fm.plot=function(e,t){var r=this,n=t[r.id],i=t._size;r._hasClipOnAxisFalse=!1;for(var a=0;azT*u?(p=u,b=p*zT):(b=l,p=b/zT),C=o*b/l,E=s*p/u,v=t.l+t.w*i-b/2,_=t.t+t.h*(1-a)-p/2,r.x0=v,r.y0=_,r.w=b,r.h=p,r.sum=c,r.xaxis={type:"linear",range:[f+2*d-c,c-f-2*h],domain:[i-C/2,i+C/2],_id:"x"},D4(r.xaxis,r.graphDiv._fullLayout),r.xaxis.setScale(),r.xaxis.isPtWithinRange=function(V){return V.a>=r.aaxis.range[0]&&V.a<=r.aaxis.range[1]&&V.b>=r.baxis.range[1]&&V.b<=r.baxis.range[0]&&V.c>=r.caxis.range[1]&&V.c<=r.caxis.range[0]},r.yaxis={type:"linear",range:[f,c-h-d],domain:[a-E/2,a+E/2],_id:"y"},D4(r.yaxis,r.graphDiv._fullLayout),r.yaxis.setScale(),r.yaxis.isPtWithinRange=function(){return!0};var A=r.yaxis.domain[0],L=r.aaxis=kG({},e.aaxis,{range:[f,c-h-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[A,A+E*zT],anchor:"free",position:0,_id:"y",_length:b});D4(L,r.graphDiv._fullLayout),L.setScale();var x=r.baxis=kG({},e.baxis,{range:[c-f-d,h],side:"bottom",domain:r.xaxis.domain,anchor:"free",position:0,_id:"x",_length:b});D4(x,r.graphDiv._fullLayout),x.setScale();var k=r.caxis=kG({},e.caxis,{range:[c-f-h,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[A,A+E*zT],anchor:"free",position:0,_id:"y",_length:b});D4(k,r.graphDiv._fullLayout),k.setScale();var M="M"+v+","+(_+p)+"h"+b+"l-"+b/2+",-"+p+"Z";r.clipDef.select("path").attr("d",M),r.layers.plotbg.select("path").attr("d",M);var g="M0,"+p+"h"+b+"l-"+b/2+",-"+p+"Z";r.clipDefRelative.select("path").attr("d",g);var P=Dm(v,_);r.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",P),r.clipDefRelative.select("path").attr("transform",null);var T=Dm(v-x._offset,_+p);r.layers.baxis.attr("transform",T),r.layers.bgrid.attr("transform",T);var z=Dm(v+b/2,_)+"rotate(30)"+Dm(0,-L._offset);r.layers.aaxis.attr("transform",z),r.layers.agrid.attr("transform",z);var O=Dm(v+b/2,_)+"rotate(-30)"+Dm(0,-k._offset);r.layers.caxis.attr("transform",O),r.layers.cgrid.attr("transform",O),r.drawAxes(!0),r.layers.aline.select("path").attr("d",L.showline?"M"+v+","+(_+p)+"l"+b/2+",-"+p:"M0,0").call(OT.stroke,L.linecolor||"#000").style("stroke-width",(L.linewidth||0)+"px"),r.layers.bline.select("path").attr("d",x.showline?"M"+v+","+(_+p)+"h"+b:"M0,0").call(OT.stroke,x.linecolor||"#000").style("stroke-width",(x.linewidth||0)+"px"),r.layers.cline.select("path").attr("d",k.showline?"M"+(v+b/2)+","+_+"l"+b/2+","+p:"M0,0").call(OT.stroke,k.linecolor||"#000").style("stroke-width",(k.linewidth||0)+"px"),r.graphDiv._context.staticPlot||r.initInteractions(),L8.setClipUrl(r.layers.frontplot,r._hasClipOnAxisFalse?null:r.clipId,r.graphDiv)};Fm.drawAxes=function(e){var t=this,r=t.graphDiv,n=t.id.substr(7)+"title",i=t.layers,a=t.aaxis,o=t.baxis,s=t.caxis;if(t.drawAx(a),t.drawAx(o),t.drawAx(s),e){var l=Math.max(a.showticklabels?a.tickfont.size/2:0,(s.showticklabels?s.tickfont.size*.75:0)+(s.ticks==="outside"?s.ticklen*.87:0)),u=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;i["a-title"]=LG.draw(r,"a"+n,{propContainer:a,propName:t.id+".aaxis.title",placeholder:k8(r,"Click to enter Component A title"),attributes:{x:t.x0+t.w/2,y:t.y0-a.title.font.size/3-l,"text-anchor":"middle"}}),i["b-title"]=LG.draw(r,"b"+n,{propContainer:o,propName:t.id+".baxis.title",placeholder:k8(r,"Click to enter Component B title"),attributes:{x:t.x0-u,y:t.y0+t.h+o.title.font.size*.83+u,"text-anchor":"middle"}}),i["c-title"]=LG.draw(r,"c"+n,{propContainer:s,propName:t.id+".caxis.title",placeholder:k8(r,"Click to enter Component C title"),attributes:{x:t.x0+t.w+u,y:t.y0+t.h+s.title.font.size*.83+u,"text-anchor":"middle"}})}};Fm.drawAx=function(e){var t=this,r=t.graphDiv,n=e._name,i=n.charAt(0),a=e._id,o=t.layers[n],s=30,l=i+"tickLayout",u=n2t(e);t[l]!==u&&(o.selectAll("."+a+"tick").remove(),t[l]=u),e.setScale();var c=C_.calcTicks(e),f=C_.clipEnds(e,c),h=C_.makeTransTickFn(e),d=C_.getTickSigns(e)[2],v=By.deg2rad(s),_=d*(e.linewidth||1)/2,b=d*e.ticklen,p=t.w,C=t.h,E=i==="b"?"M0,"+_+"l"+Math.sin(v)*b+","+Math.cos(v)*b:"M"+_+",0l"+Math.cos(v)*b+","+-Math.sin(v)*b,A={a:"M0,0l"+C+",-"+p/2,b:"M0,0l-"+p/2+",-"+C,c:"M0,0l-"+C+","+p/2}[i];C_.drawTicks(r,e,{vals:e.ticks==="inside"?f:c,layer:o,path:E,transFn:h,crisp:!1}),C_.drawGrid(r,e,{vals:f,layer:t.layers[i+"grid"],path:A,transFn:h,crisp:!1}),C_.drawLabels(r,e,{vals:c,layer:o,transFn:h,labelFns:C_.makeLabelFns(e,0,s)})};function n2t(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var yd=g2e.MINZOOM/2+.87,a2t="m-0.87,.5h"+yd+"v3h-"+(yd+5.2)+"l"+(yd/2+2.6)+",-"+(yd*.87+4.5)+"l2.6,1.5l-"+yd/2+","+yd*.87+"Z",o2t="m0.87,.5h-"+yd+"v3h"+(yd+5.2)+"l-"+(yd/2+2.6)+",-"+(yd*.87+4.5)+"l-2.6,1.5l"+yd/2+","+yd*.87+"Z",s2t="m0,1l"+yd/2+","+yd*.87+"l2.6,-1.5l-"+(yd/2+2.6)+",-"+(yd*.87+4.5)+"l-"+(yd/2+2.6)+","+(yd*.87+4.5)+"l2.6,1.5l"+yd/2+",-"+yd*.87+"Z",l2t="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",h2e=!0;Fm.clearOutline=function(){i2t(this.dragOptions),r2t(this.dragOptions.gd)};Fm.initInteractions=function(){var e=this,t=e.layers.plotbg.select("path").node(),r=e.graphDiv,n=r._fullLayout._zoomlayer,i,a;this.dragOptions={element:t,gd:r,plotinfo:{id:e.id,domain:r._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(T,z,O){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],i=r._fullLayout._invScaleX,a=r._fullLayout._invScaleY;var V=e.dragOptions.dragmode=r._fullLayout.dragmode;f2e(V)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,V==="zoom"?(e.dragOptions.moveFn=x,e.dragOptions.clickFn=p,e.dragOptions.doneFn=k,C(T,z,O)):V==="pan"?(e.dragOptions.moveFn=g,e.dragOptions.clickFn=p,e.dragOptions.doneFn=P,M(),e.clearOutline(r)):(Qbt(V)||f2e(V))&&e2t(T,z,O,e.dragOptions,V)}};var o,s,l,u,c,f,h,d,v,_;function b(T){var z={};return z[e.id+".aaxis.min"]=T.a,z[e.id+".baxis.min"]=T.b,z[e.id+".caxis.min"]=T.c,z}function p(T,z){var O=r._fullLayout.clickmode;d2e(r),T===2&&(r.emit("plotly_doubleclick",null),CG.call("_guiRelayout",r,b({a:0,b:0,c:0}))),O.indexOf("select")>-1&&T===1&&t2t(z,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),O.indexOf("event")>-1&&c2e.click(r,z,e.id)}function C(T,z,O){var V=t.getBoundingClientRect();o=z-V.left,s=O-V.top,r._fullLayout._calcInverseTransform(r);var G=r._fullLayout._invTransform,Z=By.apply3DTransform(G)(o,s);o=Z[0],s=Z[1],l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},c=l,u=e.aaxis.range[1]-l.a,f=Jbt(e.graphDiv._fullLayout[e.id].bgcolor).getLuminance(),h="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,v=n.append("path").attr("class","zoombox").attr("transform",Dm(e.x0,e.y0)).style({fill:f>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",h),_=n.append("path").attr("class","zoombox-corners").attr("transform",Dm(e.x0,e.y0)).style({fill:OT.background,stroke:OT.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(r)}function E(T,z){return 1-z/e.h}function A(T,z){return 1-(T+(e.h-z)/Math.sqrt(3))/e.w}function L(T,z){return(T-(e.h-z)/Math.sqrt(3))/e.w}function x(T,z){var O=o+T*i,V=s+z*a,G=Math.max(0,Math.min(1,E(o,s),E(O,V))),Z=Math.max(0,Math.min(1,A(o,s),A(O,V))),H=Math.max(0,Math.min(1,L(o,s),L(O,V))),N=(G/2+H)*e.w,j=(1-G/2-Z)*e.w,re=(N+j)/2,oe=j-N,_e=(1-G)*e.h,Me=_e-oe/zT;oe.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),_.transition().style("opacity",1).duration(200),d=!0),r.emit("plotly_relayouting",b(c))}function k(){d2e(r),c!==l&&(CG.call("_guiRelayout",r,b(c)),h2e&&r.data&&r._context.showTips&&(By.notifier(k8(r,"Double-click to zoom back out"),"long"),h2e=!1))}function M(){l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},c=l}function g(T,z){var O=T/e.xaxis._m,V=z/e.yaxis._m;c={a:l.a-V,b:l.b+(O+V)/2,c:l.c-(O-V)/2};var G=[c.a,c.b,c.c].sort(By.sorterAsc),Z={a:G.indexOf(c.a),b:G.indexOf(c.b),c:G.indexOf(c.c)};G[0]<0&&(G[1]+G[0]/2<0?(G[2]+=G[0]+G[1],G[0]=G[1]=0):(G[2]+=G[0]/2,G[1]+=G[0]/2,G[0]=0),c={a:G[Z.a],b:G[Z.b],c:G[Z.c]},z=(l.a-c.a)*e.yaxis._m,T=(l.c-c.c-l.b+c.b)*e.xaxis._m);var H=Dm(e.x0+T,e.y0+z);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",H);var N=Dm(-T,-z);e.clipDefRelative.select("path").attr("transform",N),e.aaxis.range=[c.a,e.sum-c.b-c.c],e.baxis.range=[e.sum-c.a-c.c,c.b],e.caxis.range=[e.sum-c.a-c.b,c.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(L8.hideOutsideRangePoints,e),r.emit("plotly_relayouting",b(c))}function P(){CG.call("_guiRelayout",r,b(c))}t.onmousemove=function(T){c2e.hover(r,T,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(T){r._dragging||u2e.unhover(r,T)},u2e.init(this.dragOptions)};function d2e(e){v2e.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var RG=ye((Dur,x2e)=>{"use strict";var u2t=Eh(),c2t=kc().attributes,lu=Rd(),f2t=mc().overrideAll,PG=Ao().extendFlat,IG={title:{text:lu.title.text,font:lu.title.font},color:lu.color,tickmode:lu.minor.tickmode,nticks:PG({},lu.nticks,{dflt:6,min:1}),tick0:lu.tick0,dtick:lu.dtick,tickvals:lu.tickvals,ticktext:lu.ticktext,ticks:lu.ticks,ticklen:lu.ticklen,tickwidth:lu.tickwidth,tickcolor:lu.tickcolor,ticklabelstep:lu.ticklabelstep,showticklabels:lu.showticklabels,labelalias:lu.labelalias,showtickprefix:lu.showtickprefix,tickprefix:lu.tickprefix,showticksuffix:lu.showticksuffix,ticksuffix:lu.ticksuffix,showexponent:lu.showexponent,exponentformat:lu.exponentformat,minexponent:lu.minexponent,separatethousands:lu.separatethousands,tickfont:lu.tickfont,tickangle:lu.tickangle,tickformat:lu.tickformat,tickformatstops:lu.tickformatstops,hoverformat:lu.hoverformat,showline:PG({},lu.showline,{dflt:!0}),linecolor:lu.linecolor,linewidth:lu.linewidth,showgrid:PG({},lu.showgrid,{dflt:!0}),gridcolor:lu.gridcolor,gridwidth:lu.gridwidth,griddash:lu.griddash,layer:lu.layer,min:{valType:"number",dflt:0,min:0}},P8=x2e.exports=f2t({domain:c2t({name:"ternary"}),bgcolor:{valType:"color",dflt:u2t.background},sum:{valType:"number",dflt:1,min:0},aaxis:IG,baxis:IG,caxis:IG},"plot","from-root");P8.uirevision={valType:"any",editType:"none"};P8.aaxis.uirevision=P8.baxis.uirevision=P8.caxis.uirevision={valType:"any",editType:"none"}});var k_=ye((Fur,b2e)=>{"use strict";var h2t=Dr(),d2t=pl(),v2t=kc().defaults;b2e.exports=function(t,r,n,i){var a=i.type,o=i.attributes,s=i.handleDefaults,l=i.partition||"x",u=r._subplots[a],c=u.length,f=c&&u[0].replace(/\d+$/,""),h,d;function v(C,E){return h2t.coerce(h,d,o,C,E)}for(var _=0;_{"use strict";var p2t=Ca(),g2t=pl(),I8=Dr(),m2t=k_(),y2t=t_(),_2t=r_(),x2t=T3(),b2t=xb(),w2t=QM(),T2e=RG(),w2e=["aaxis","baxis","caxis"];A2e.exports=function(t,r,n){m2t(t,r,n,{type:"ternary",attributes:T2e,handleDefaults:T2t,font:r.font,paper_bgcolor:r.paper_bgcolor})};function T2t(e,t,r,n){var i=r("bgcolor"),a=r("sum");n.bgColor=p2t.combine(i,n.paper_bgcolor);for(var o,s,l,u=0;u=a&&(c.min=0,f.min=0,h.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function A2t(e,t,r,n){var i=T2e[t._name];function a(d,v){return I8.coerce(e,t,i,d,v)}a("uirevision",n.uirevision),t.type="linear";var o=a("color"),s=o!==i.color.dflt?o:r.font.color,l=t._name,u=l.charAt(0).toUpperCase(),c="Component "+u,f=a("title.text",c);t._hovertitle=f===c?f:u,I8.coerceFont(a,"title.font",r.font,{overrideDflt:{size:I8.bigFont(r.font.size),color:s}}),a("min"),b2t(e,t,a,"linear"),_2t(e,t,a,"linear"),y2t(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),x2t(e,t,a,{outerTicks:!0});var h=a("showticklabels");h&&(I8.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:s}}),a("tickangle"),a("tickformat")),w2t(e,t,a,{dfltColor:o,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),a("hoverformat"),a("layer")}});var M2e=ye(W0=>{"use strict";var S2t=_2e(),M2t=Id().getSubplotCalcData,E2t=Dr().counterRegex,qT="ternary";W0.name=qT;var C2t=W0.attr="subplot";W0.idRoot=qT;W0.idRegex=W0.attrRegex=E2t(qT);var k2t=W0.attributes={};k2t[C2t]={valType:"subplotid",dflt:"ternary",editType:"calc"};W0.layoutAttributes=RG();W0.supplyLayoutDefaults=S2e();W0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[qT],a=0;a{"use strict";E2e.exports={attributes:SG(),supplyDefaults:Kbe(),colorbar:$d(),formatLabels:$be(),calc:r2e(),plot:n2e(),style:ap().style,styleOnSelect:ap().styleOnSelect,hoverPoints:o2e(),selectPoints:lT(),eventData:l2e(),moduleType:"trace",name:"scatterternary",basePlotModule:M2e(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var L2e=ye((Bur,k2e)=>{"use strict";k2e.exports=C2e()});var DG=ye((Nur,I2e)=>{"use strict";var td=y4(),BT=Ao().extendFlat,P2e=df().axisHoverFormat;I2e.exports={y:td.y,x:td.x,x0:td.x0,y0:td.y0,xhoverformat:P2e("x"),yhoverformat:P2e("y"),name:BT({},td.name,{}),orientation:BT({},td.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:td.fillcolor,points:BT({},td.boxpoints,{}),jitter:BT({},td.jitter,{}),pointpos:BT({},td.pointpos,{}),width:BT({},td.width,{}),marker:td.marker,text:td.text,hovertext:td.hovertext,hovertemplate:td.hovertemplate,quartilemethod:td.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:td.offsetgroup,alignmentgroup:td.alignmentgroup,selected:td.selected,unselected:td.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:td.zorder}});var OG=ye((Uur,R2e)=>{"use strict";var FG=_4(),zG=Dr().extendFlat;R2e.exports={violinmode:zG({},FG.boxmode,{}),violingap:zG({},FG.boxgap,{}),violingroupgap:zG({},FG.boxgroupgap,{})}});var q2e=ye((Vur,O2e)=>{"use strict";var D2e=Dr(),L2t=Ca(),F2e=b4(),z2e=DG();O2e.exports=function(t,r,n,i){function a(L,x){return D2e.coerce(t,r,z2e,L,x)}function o(L,x){return D2e.coerce2(t,r,z2e,L,x)}if(F2e.handleSampleDefaults(t,r,a,i),r.visible!==!1){a("bandwidth"),a("side");var s=a("width");s||(a("scalegroup",r.name),a("scalemode"));var l=a("span"),u;Array.isArray(l)&&(u="manual"),a("spanmode",u);var c=a("line.color",(t.marker||{}).color||n),f=a("line.width"),h=a("fillcolor",L2t.addOpacity(r.line.color,.5));F2e.handlePointsDefaults(t,r,a,{prefix:""});var d=o("box.width"),v=o("box.fillcolor",h),_=o("box.line.color",c),b=o("box.line.width",f),p=a("box.visible",!!(d||v||_||b));p||(r.box={visible:!1});var C=o("meanline.color",c),E=o("meanline.width",f),A=a("meanline.visible",!!(C||E));A||(r.meanline={visible:!1}),a("quartilemethod"),a("zorder")}}});var N2e=ye((Gur,B2e)=>{"use strict";var P2t=Dr(),I2t=OG(),R2t=HI();B2e.exports=function(t,r,n){function i(a,o){return P2t.coerce(t,r,I2t,a,o)}R2t._supply(t,r,n,i,"violin")}});var R8=ye(o2=>{"use strict";var D2t=Dr(),F2t={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};o2.makeKDE=function(e,t,r){var n=r.length,i=F2t.gaussian,a=e.bandwidth,o=1/(n*a);return function(s){for(var l=0,u=0;u{"use strict";var qG=Dr(),BG=ho(),z2t=LV(),U2e=R8(),O2t=hs().BADNUM;V2e.exports=function(t,r){var n=z2t(t,r);if(n[0].t.empty)return n;for(var i=t._fullLayout,a=BG.getFromId(t,r[r.orientation==="h"?"xaxis":"yaxis"]),o=1/0,s=-1/0,l=0,u=0,c=0;c{"use strict";var U2t=WI().setPositionOffset,H2e=["v","h"];j2e.exports=function(t,r){for(var n=t.calcdata,i=r.xaxis,a=r.yaxis,o=0;o{"use strict";var NG=Oa(),UG=Dr(),V2t=So(),VG=XI(),G2t=pU(),H2t=R8();X2e.exports=function(t,r,n,i){var a=t._context.staticPlot,o=t._fullLayout,s=r.xaxis,l=r.yaxis;function u(c,f){var h=G2t(c,{xaxis:s,yaxis:l,trace:f,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return V2t.smoothopen(h[0],1)}UG.makeTraceGroups(i,n,"trace violins").each(function(c){var f=NG.select(this),h=c[0],d=h.t,v=h.trace;if(v.visible!==!0||d.empty){f.remove();return}var _=d.bPos,b=d.bdPos,p=r[d.valLetter+"axis"],C=r[d.posLetter+"axis"],E=v.side==="both",A=E||v.side==="positive",L=E||v.side==="negative",x=f.selectAll("path.violin").data(UG.identity);x.enter().append("path").style("vector-effect",a?"none":"non-scaling-stroke").attr("class","violin"),x.exit().remove(),x.each(function(V){var G=NG.select(this),Z=V.density,H=Z.length,N=C.c2l(V.pos+_,!0),j=C.l2p(N),re;if(v.width)re=d.maxKDE/b;else{var oe=o._violinScaleGroupStats[v.scalegroup];re=v.scalemode==="count"?oe.maxKDE/b*(oe.maxCount/V.pts.length):oe.maxKDE/b}var _e,Me,ke,me,ie,Se,Le;if(A){for(Se=new Array(H),me=0;me{"use strict";var Y2e=Oa(),NT=Ca(),j2t=ap().stylePoints;K2e.exports=function(t){var r=Y2e.select(t).selectAll("g.trace.violins");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=n[0].trace,a=Y2e.select(this),o=i.box||{},s=o.line||{},l=i.meanline||{},u=l.width;a.selectAll("path.violin").style("stroke-width",i.line.width+"px").call(NT.stroke,i.line.color).call(NT.fill,i.fillcolor),a.selectAll("path.box").style("stroke-width",s.width+"px").call(NT.stroke,s.color).call(NT.fill,o.fillcolor);var c={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};a.selectAll("path.mean").style(c).call(NT.stroke,l.color),a.selectAll("path.meanline").style(c).call(NT.stroke,l.color),j2t(a,i,t)})}});var twe=ye((Yur,ewe)=>{"use strict";var W2t=Ca(),GG=Dr(),X2t=ho(),$2e=FV(),Q2e=R8();ewe.exports=function(t,r,n,i,a){a||(a={});var o=a.hoverLayer,s=t.cd,l=s[0].trace,u=l.hoveron,c=u.indexOf("violins")!==-1,f=u.indexOf("kde")!==-1,h=[],d,v;if(c||f){var _=$2e.hoverOnBoxes(t,r,n,i);if(f&&_.length>0){var b=t.xa,p=t.ya,C,E,A,L,x;l.orientation==="h"?(x=r,C="y",A=p,E="x",L=b):(x=n,C="x",A=b,E="y",L=p);var k=s[t.index];if(x>=k.span[0]&&x<=k.span[1]){var M=GG.extendFlat({},t),g=L.c2p(x,!0),P=Q2e.getKdeValue(k,l,x),T=Q2e.getPositionOnKdePath(k,l,g),z=A._offset,O=A._length;M[C+"0"]=T[0],M[C+"1"]=T[1],M[E+"0"]=M[E+"1"]=g,M[E+"Label"]=E+": "+X2t.hoverLabelText(L,x,l[E+"hoverformat"])+", "+s[0].t.labels.kde+" "+P.toFixed(3);for(var V=0,G=0;G<_.length;G++)if(_[G].attr==="med"){V=G;break}M.spikeDistance=_[V].spikeDistance;var Z=C+"Spike";M[Z]=_[V][Z],_[V].spikeDistance=void 0,_[V][Z]=void 0,M.hovertemplate=!1,h.push(M),v={},v[C+"1"]=GG.constrain(z+T[0],z,z+O),v[C+"2"]=GG.constrain(z+T[1],z,z+O),v[E+"1"]=v[E+"2"]=L._offset+g}}c&&(h=h.concat(_))}u.indexOf("points")!==-1&&(d=$2e.hoverOnPoints(t,r,n));var H=o.selectAll(".violinline-"+l.uid).data(v?[0]:[]);return H.enter().append("line").classed("violinline-"+l.uid,!0).attr("stroke-width",1.5),H.exit().remove(),H.attr(v).call(W2t.stroke,t.color),i==="closest"?d?[d]:h:(d&&h.push(d),h)}});var iwe=ye((Kur,rwe)=>{"use strict";rwe.exports={attributes:DG(),layoutAttributes:OG(),supplyDefaults:q2e(),crossTraceDefaults:b4().crossTraceDefaults,supplyLayoutDefaults:N2e(),calc:G2e(),crossTraceCalc:W2e(),plot:Z2e(),style:J2e(),styleOnSelect:ap().styleOnSelect,hoverPoints:twe(),selectPoints:zV(),moduleType:"trace",name:"violin",basePlotModule:vh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var awe=ye((Jur,nwe)=>{"use strict";nwe.exports=iwe()});var swe=ye(($ur,owe)=>{"use strict";owe.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var jG=ye((Qur,cwe)=>{"use strict";var jc=Lm(),HG=pf().line,Z2t=Vl(),lwe=df().axisHoverFormat,Y2t=Qo().hovertemplateAttrs,K2t=Qo().texttemplateAttrs,uwe=swe(),Ny=Ao().extendFlat,J2t=Ca();cwe.exports={x:jc.x,x0:jc.x0,dx:jc.dx,y:jc.y,y0:jc.y0,dy:jc.dy,xperiod:jc.xperiod,yperiod:jc.yperiod,xperiod0:jc.xperiod0,yperiod0:jc.yperiod0,xperiodalignment:jc.xperiodalignment,yperiodalignment:jc.yperiodalignment,xhoverformat:lwe("x"),yhoverformat:lwe("y"),hovertext:jc.hovertext,hovertemplate:Y2t({},{keys:uwe.eventDataKeys}),hoverinfo:Ny({},Z2t.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:K2t({editType:"plot"},{keys:uwe.eventDataKeys.concat(["label","value"])}),text:jc.text,textposition:jc.textposition,insidetextanchor:Ny({},jc.insidetextanchor,{dflt:"middle"}),textangle:Ny({},jc.textangle,{dflt:0}),textfont:jc.textfont,insidetextfont:jc.insidetextfont,outsidetextfont:jc.outsidetextfont,constraintext:jc.constraintext,cliponaxis:jc.cliponaxis,orientation:Ny({},jc.orientation,{}),offset:Ny({},jc.offset,{arrayOk:!1}),width:Ny({},jc.width,{arrayOk:!1}),marker:$2t(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Ny({},HG.color,{dflt:J2t.defaultLine}),width:Ny({},HG.width,{dflt:0,editType:"plot"}),dash:HG.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:jc.offsetgroup,alignmentgroup:jc.alignmentgroup,zorder:jc.zorder};function $2t(){var e=Ny({},jc.marker);return delete e.pattern,delete e.cornerradius,e}});var WG=ye((ecr,fwe)=>{"use strict";fwe.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var ZG=ye((tcr,dwe)=>{"use strict";var D8=Dr(),Q2t=Gb(),ewt=r0().handleText,twt=K3(),rwt=Pg(),hwe=jG(),XG=Ca();function iwt(e,t,r,n){function i(f,h){return D8.coerce(e,t,hwe,f,h)}var a=twt(e,t,n,i);if(!a){t.visible=!1;return}rwt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("orientation",t.y&&!t.x?"v":"h"),i("offset"),i("width");var o=i("text");i("hovertext"),i("hovertemplate");var s=i("textposition");ewt(e,t,n,i,s,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&!t.texttemplate&&i("textinfo",D8.isArrayOrTypedArray(o)?"text+value":"value");var l=i("marker.color",r);i("marker.line.color",XG.defaultLine),i("marker.line.width");var u=i("connector.visible");if(u){i("connector.fillcolor",nwt(l));var c=i("connector.line.width");c&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function nwt(e){var t=D8.isArrayOrTypedArray(e)?"#000":e;return XG.addOpacity(t,.5*XG.opacity(t))}function awt(e,t){var r,n;function i(o){return D8.coerce(n._input,n,hwe,o)}for(var a=0;a{"use strict";var owt=Dr(),swt=WG();vwe.exports=function(e,t,r){var n=!1;function i(s,l){return owt.coerce(e,t,swt,s,l)}for(var a=0;a{"use strict";var UT=Dr();gwe.exports=function(t,r){for(var n=0;n{"use strict";var ywe=ho(),_we=Rg(),lwt=mwe(),uwt=z0(),F4=hs().BADNUM;xwe.exports=function(t,r){var n=ywe.getFromId(t,r.xaxis||"x"),i=ywe.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c,f,h;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),l=_we(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),l=_we(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;var d=Math.min(o.length,a.length),v=new Array(d);for(r._base=[],f=0;f{"use strict";var wwe=Hb().setGroupPositions;Twe.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],c=[],f,h;for(h=0;h{"use strict";var F8=Oa(),P_=Dr(),Swe=So(),L_=hs().BADNUM,cwt=i2(),fwt=_v().clearMinTextSize;Ewe.exports=function(t,r,n,i){var a=t._fullLayout;fwt("funnel",a),hwt(t,r,n,i),dwt(t,r,n,i),cwt.plot(t,r,n,i,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function hwt(e,t,r,n){var i=t.xaxis,a=t.yaxis;P_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=F8.select(this),l=o[0].trace,u=P_.ensureSingle(s,"g","regions");if(!l.connector||!l.connector.visible){u.remove();return}var c=l.orientation==="h",f=u.selectAll("g.region").data(P_.identity);f.enter().append("g").classed("region",!0),f.exit().remove();var h=f.size();f.each(function(d,v){if(!(v!==h-1&&!d.cNext)){var _=Mwe(d,i,a,c),b=_[0],p=_[1],C="";b[0]!==L_&&p[0]!==L_&&b[1]!==L_&&p[1]!==L_&&b[2]!==L_&&p[2]!==L_&&b[3]!==L_&&p[3]!==L_&&(c?C+="M"+b[0]+","+p[1]+"L"+b[2]+","+p[2]+"H"+b[3]+"L"+b[1]+","+p[1]+"Z":C+="M"+b[1]+","+p[1]+"L"+b[2]+","+p[3]+"V"+p[2]+"L"+b[1]+","+p[0]+"Z"),C===""&&(C="M0,0Z"),P_.ensureSingle(F8.select(this),"path").attr("d",C).call(Swe.setClipUrl,t.layerClipId,e)}})})}function dwt(e,t,r,n){var i=t.xaxis,a=t.yaxis;P_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=F8.select(this),l=o[0].trace,u=P_.ensureSingle(s,"g","lines");if(!l.connector||!l.connector.visible||!l.connector.line.width){u.remove();return}var c=l.orientation==="h",f=u.selectAll("g.line").data(P_.identity);f.enter().append("g").classed("line",!0),f.exit().remove();var h=f.size();f.each(function(d,v){if(!(v!==h-1&&!d.cNext)){var _=Mwe(d,i,a,c),b=_[0],p=_[1],C="";b[3]!==void 0&&p[3]!==void 0&&(c?(C+="M"+b[0]+","+p[1]+"L"+b[2]+","+p[2],C+="M"+b[1]+","+p[1]+"L"+b[3]+","+p[2]):(C+="M"+b[1]+","+p[1]+"L"+b[2]+","+p[3],C+="M"+b[1]+","+p[0]+"L"+b[2]+","+p[2])),C===""&&(C="M0,0Z"),P_.ensureSingle(F8.select(this),"path").attr("d",C).call(Swe.setClipUrl,t.layerClipId,e)}})})}function Mwe(e,t,r,n){var i=[],a=[],o=n?t:r,s=n?r:t;return i[0]=o.c2p(e.s0,!0),a[0]=s.c2p(e.p0,!0),i[1]=o.c2p(e.s1,!0),a[1]=s.c2p(e.p1,!0),i[2]=o.c2p(e.nextS0,!0),a[2]=s.c2p(e.nextP0,!0),i[3]=o.c2p(e.nextS1,!0),a[3]=s.c2p(e.nextP1,!0),n?[i,a]:[a,i]}});var Pwe=ye((scr,Lwe)=>{"use strict";var z4=Oa(),kwe=So(),KG=Ca(),vwt=U1().DESELECTDIM,pwt=N0(),gwt=_v().resizeText,mwt=pwt.styleTextPoints;function ywt(e,t,r){var n=r||z4.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");gwt(e,n,"funnel"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=z4.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o.marker;z4.select(this).call(KG.fill,s.mc||l.color).call(KG.stroke,s.mlc||l.line.color).call(kwe.dashLine,l.line.dash,s.mlw||l.line.width).style("opacity",o.selectedpoints&&!s.selected?vwt:1)}}),mwt(a,o,e),a.selectAll(".regions").each(function(){z4.select(this).selectAll("path").style("stroke-width",0).call(KG.fill,o.connector.fillcolor)}),a.selectAll(".lines").each(function(){var s=o.connector.line;kwe.lineGroupStyle(z4.select(this).selectAll("path"),s.width,s.color,s.dash)})})}Lwe.exports={style:ywt}});var Dwe=ye((lcr,Rwe)=>{"use strict";var Iwe=Ca().opacity,_wt=TT().hoverOnBars,JG=Dr().formatPercent;Rwe.exports=function(t,r,n,i,a){var o=_wt(t,r,n,i,a);if(o){var s=o.cd,l=s[0].trace,u=l.orientation==="h",c=o.index,f=s[c],h=u?"x":"y";o[h+"LabelVal"]=f.s,o.percentInitial=f.begR,o.percentInitialLabel=JG(f.begR,1),o.percentPrevious=f.difR,o.percentPreviousLabel=JG(f.difR,1),o.percentTotal=f.sumR,o.percentTotalLabel=JG(f.sumR,1);var d=f.hi||l.hoverinfo,v=[];if(d&&d!=="none"&&d!=="skip"){var _=d==="all",b=d.split("+"),p=function(C){return _||b.indexOf(C)!==-1};p("percent initial")&&v.push(o.percentInitialLabel+" of initial"),p("percent previous")&&v.push(o.percentPreviousLabel+" of previous"),p("percent total")&&v.push(o.percentTotalLabel+" of total")}return o.extraText=v.join("
"),o.color=xwt(l,f),[o]}};function xwt(e,t){var r=e.marker,n=t.mc||r.color,i=t.mlc||r.line.color,a=t.mlw||r.line.width;if(Iwe(n))return n;if(Iwe(i)&&a)return i}});var zwe=ye((ucr,Fwe)=>{"use strict";Fwe.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"percentInitial"in r&&(t.percentInitial=r.percentInitial),"percentPrevious"in r&&(t.percentPrevious=r.percentPrevious),"percentTotal"in r&&(t.percentTotal=r.percentTotal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var qwe=ye((ccr,Owe)=>{"use strict";Owe.exports={attributes:jG(),layoutAttributes:WG(),supplyDefaults:ZG().supplyDefaults,crossTraceDefaults:ZG().crossTraceDefaults,supplyLayoutDefaults:pwe(),calc:bwe(),crossTraceCalc:Awe(),plot:Cwe(),style:Pwe().style,hoverPoints:Dwe(),eventData:zwe(),selectPoints:AT(),moduleType:"trace",name:"funnel",basePlotModule:vh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var Nwe=ye((fcr,Bwe)=>{"use strict";Bwe.exports=qwe()});var Vwe=ye((hcr,Uwe)=>{"use strict";Uwe.exports={eventDataKeys:["initial","delta","final"]}});var eH=ye((dcr,jwe)=>{"use strict";var _c=Lm(),$G=pf().line,bwt=Vl(),Gwe=df().axisHoverFormat,wwt=Qo().hovertemplateAttrs,Twt=Qo().texttemplateAttrs,Hwe=Vwe(),VT=Ao().extendFlat,Awt=Ca();function QG(e){return{marker:{color:VT({},_c.marker.color,{arrayOk:!1,editType:"style"}),line:{color:VT({},_c.marker.line.color,{arrayOk:!1,editType:"style"}),width:VT({},_c.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}jwe.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:_c.x,x0:_c.x0,dx:_c.dx,y:_c.y,y0:_c.y0,dy:_c.dy,xperiod:_c.xperiod,yperiod:_c.yperiod,xperiod0:_c.xperiod0,yperiod0:_c.yperiod0,xperiodalignment:_c.xperiodalignment,yperiodalignment:_c.yperiodalignment,xhoverformat:Gwe("x"),yhoverformat:Gwe("y"),hovertext:_c.hovertext,hovertemplate:wwt({},{keys:Hwe.eventDataKeys}),hoverinfo:VT({},bwt.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:Twt({editType:"plot"},{keys:Hwe.eventDataKeys.concat(["label"])}),text:_c.text,textposition:_c.textposition,insidetextanchor:_c.insidetextanchor,textangle:_c.textangle,textfont:_c.textfont,insidetextfont:_c.insidetextfont,outsidetextfont:_c.outsidetextfont,constraintext:_c.constraintext,cliponaxis:_c.cliponaxis,orientation:_c.orientation,offset:_c.offset,width:_c.width,increasing:QG("increasing"),decreasing:QG("decreasing"),totals:QG("intermediate sums and total"),connector:{line:{color:VT({},$G.color,{dflt:Awt.defaultLine}),width:VT({},$G.width,{editType:"plot"}),dash:$G.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:_c.offsetgroup,alignmentgroup:_c.alignmentgroup,zorder:_c.zorder}});var tH=ye((vcr,Wwe)=>{"use strict";Wwe.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var GT=ye((pcr,Xwe)=>{"use strict";Xwe.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var iH=ye((gcr,Jwe)=>{"use strict";var Zwe=Dr(),Swt=Gb(),Mwt=r0().handleText,Ewt=K3(),Cwt=Pg(),Ywe=eH(),kwt=Ca(),Kwe=GT(),Lwt=Kwe.INCREASING.COLOR,Pwt=Kwe.DECREASING.COLOR,Iwt="#4499FF";function rH(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",kwt.defaultLine),e(t+".marker.line.width")}function Rwt(e,t,r,n){function i(u,c){return Zwe.coerce(e,t,Ywe,u,c)}var a=Ewt(e,t,n,i);if(!a){t.visible=!1;return}Cwt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("measure"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate");var o=i("textposition");Mwt(e,t,n,i,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&(i("texttemplate"),t.texttemplate||i("textinfo")),rH(i,"increasing",Lwt),rH(i,"decreasing",Pwt),rH(i,"totals",Iwt);var s=i("connector.visible");if(s){i("connector.mode");var l=i("connector.line.width");l&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function Dwt(e,t){var r,n;function i(o){return Zwe.coerce(n._input,n,Ywe,o)}if(t.waterfallmode==="group")for(var a=0;a{"use strict";var Fwt=Dr(),zwt=tH();$we.exports=function(e,t,r){var n=!1;function i(s,l){return Fwt.coerce(e,t,zwt,s,l)}for(var a=0;a{"use strict";var e3e=ho(),t3e=Rg(),r3e=Dr().mergeArray,Owt=z0(),i3e=hs().BADNUM;function nH(e){return e==="a"||e==="absolute"}function aH(e){return e==="t"||e==="total"}n3e.exports=function(t,r){var n=e3e.getFromId(t,r.xaxis||"x"),i=e3e.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),l=t3e(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),l=t3e(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;for(var f=Math.min(o.length,a.length),h=new Array(f),d=0,v,_=!1,b=0;b{"use strict";var o3e=Hb().setGroupPositions;s3e.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],c=[],f,h;for(h=0;h{"use strict";var u3e=Oa(),z8=Dr(),qwt=So(),HT=hs().BADNUM,Bwt=i2(),Nwt=_v().clearMinTextSize;c3e.exports=function(t,r,n,i){var a=t._fullLayout;Nwt("waterfall",a),Bwt.plot(t,r,n,i,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),Uwt(t,r,n,i)};function Uwt(e,t,r,n){var i=t.xaxis,a=t.yaxis;z8.makeTraceGroups(n,r,"trace bars").each(function(o){var s=u3e.select(this),l=o[0].trace,u=z8.ensureSingle(s,"g","lines");if(!l.connector||!l.connector.visible){u.remove();return}var c=l.orientation==="h",f=l.connector.mode,h=u.selectAll("g.line").data(z8.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(v,_){if(!(_!==d-1&&!v.cNext)){var b=Vwt(v,i,a,c),p=b[0],C=b[1],E="";p[0]!==HT&&C[0]!==HT&&p[1]!==HT&&C[1]!==HT&&(f==="spanning"&&!v.isSum&&_>0&&(c?E+="M"+p[0]+","+C[1]+"V"+C[0]:E+="M"+p[1]+","+C[0]+"H"+p[0]),f!=="between"&&(v.isSum||_{"use strict";var O8=Oa(),h3e=So(),d3e=Ca(),Gwt=U1().DESELECTDIM,Hwt=N0(),jwt=_v().resizeText,Wwt=Hwt.styleTextPoints;function Xwt(e,t,r){var n=r||O8.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");jwt(e,n,"waterfall"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=O8.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o[s.dir].marker;O8.select(this).call(d3e.fill,l.color).call(d3e.stroke,l.line.color).call(h3e.dashLine,l.line.dash,l.line.width).style("opacity",o.selectedpoints&&!s.selected?Gwt:1)}}),Wwt(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;h3e.lineGroupStyle(O8.select(this).selectAll("path"),s.width,s.color,s.dash)})})}v3e.exports={style:Xwt}});var x3e=ye((wcr,_3e)=>{"use strict";var Zwt=ho().hoverLabelText,g3e=Ca().opacity,Ywt=TT().hoverOnBars,m3e=GT(),y3e={increasing:m3e.INCREASING.SYMBOL,decreasing:m3e.DECREASING.SYMBOL};_3e.exports=function(t,r,n,i,a){var o=Ywt(t,r,n,i,a);if(!o)return;var s=o.cd,l=s[0].trace,u=l.orientation==="h",c=u?"x":"y",f=u?t.xa:t.ya;function h(x){return Zwt(f,x,l[c+"hoverformat"])}var d=o.index,v=s[d],_=v.isSum?v.b+v.s:v.rawS;o.initial=v.b+v.s-_,o.delta=_,o.final=o.initial+o.delta;var b=h(Math.abs(o.delta));o.deltaLabel=_<0?"("+b+")":b,o.finalLabel=h(o.final),o.initialLabel=h(o.initial);var p=v.hi||l.hoverinfo,C=[];if(p&&p!=="none"&&p!=="skip"){var E=p==="all",A=p.split("+"),L=function(x){return E||A.indexOf(x)!==-1};v.isSum||(L("final")&&(u?!L("x"):!L("y"))&&C.push(o.finalLabel),L("delta")&&(_<0?C.push(o.deltaLabel+" "+y3e.decreasing):C.push(o.deltaLabel+" "+y3e.increasing)),L("initial")&&C.push("Initial: "+o.initialLabel))}return C.length&&(o.extraText=C.join("
")),o.color=Kwt(l,v),[o]};function Kwt(e,t){var r=e[t.dir].marker,n=r.color,i=r.line.color,a=r.line.width;if(g3e(n))return n;if(g3e(i)&&a)return i}});var w3e=ye((Tcr,b3e)=>{"use strict";b3e.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"initial"in r&&(t.initial=r.initial),"delta"in r&&(t.delta=r.delta),"final"in r&&(t.final=r.final),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var A3e=ye((Acr,T3e)=>{"use strict";T3e.exports={attributes:eH(),layoutAttributes:tH(),supplyDefaults:iH().supplyDefaults,crossTraceDefaults:iH().crossTraceDefaults,supplyLayoutDefaults:Qwe(),calc:a3e(),crossTraceCalc:l3e(),plot:f3e(),style:p3e().style,hoverPoints:x3e(),eventData:w3e(),selectPoints:AT(),moduleType:"trace",name:"waterfall",basePlotModule:vh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var M3e=ye((Scr,S3e)=>{"use strict";S3e.exports=A3e()});var jT=ye((Mcr,E3e)=>{"use strict";E3e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var t=e.slice(0,3);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var t=e.slice(0,4);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%",""]}}}});var oH=ye((Ecr,k3e)=>{"use strict";var Jwt=Vl(),$wt=pf().zorder,Qwt=Qo().hovertemplateAttrs,C3e=Ao().extendFlat,e3t=jT().colormodel,q4=["rgb","rgba","rgba256","hsl","hsla"],t3t=[],r3t=[];for(WT=0;WT{"use strict";var i3t=Dr(),n3t=oH(),L3e=jT(),a3t=Ly().IMAGE_URL_PREFIX;P3e.exports=function(t,r){function n(o,s){return i3t.coerce(t,r,n3t,o,s)}n("source"),r.source&&!r.source.match(a3t)&&delete r.source,r._hasSource=!!r.source;var i=n("z");if(r._hasZ=!(i===void 0||!i.length||!i[0]||!i[0].length),!r._hasZ&&!r._hasSource){r.visible=!1;return}n("x0"),n("y0"),n("dx"),n("dy");var a;r._hasZ?(n("colormodel","rgb"),a=L3e.colormodel[r.colormodel],n("zmin",a.zminDflt||a.min),n("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=L3e.colormodel[r.colormodel],r.zmin=a.zminDflt,r.zmax=a.zmaxDflt),n("zsmooth"),n("text"),n("hovertext"),n("hovertemplate"),r._length=null,n("zorder")}});var Uy=ye((kcr,sH)=>{typeof Object.create=="function"?sH.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:sH.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var lH=ye((Lcr,R3e)=>{R3e.exports=vb().EventEmitter});var z3e=ye(q8=>{"use strict";q8.byteLength=s3t;q8.toByteArray=u3t;q8.fromByteArray=h3t;var zm=[],X0=[],o3t=typeof Uint8Array!="undefined"?Uint8Array:Array,uH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(s2=0,D3e=uH.length;s20)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function s3t(e){var t=F3e(e),r=t[0],n=t[1];return(r+n)*3/4-n}function l3t(e,t,r){return(t+r)*3/4-r}function u3t(e){var t,r=F3e(e),n=r[0],i=r[1],a=new o3t(l3t(e,n,i)),o=0,s=i>0?n-4:n,l;for(l=0;l>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=X0[e.charCodeAt(l)]<<2|X0[e.charCodeAt(l+1)]>>4,a[o++]=t&255),i===1&&(t=X0[e.charCodeAt(l)]<<10|X0[e.charCodeAt(l+1)]<<4|X0[e.charCodeAt(l+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function c3t(e){return zm[e>>18&63]+zm[e>>12&63]+zm[e>>6&63]+zm[e&63]}function f3t(e,t,r){for(var n,i=[],a=t;as?s:o+a));return n===1?(t=e[r-1],i.push(zm[t>>2]+zm[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(zm[t>>10]+zm[t>>4&63]+zm[t<<2&63]+"=")),i.join("")}});var O3e=ye(cH=>{cH.read=function(e,t,r,n,i){var a,o,s=i*8-n-1,l=(1<>1,c=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f];for(f+=h,a=d&(1<<-c)-1,d>>=-c,c+=s;c>0;a=a*256+e[t+f],f+=h,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=o*256+e[t+f],f+=h,c-=8);if(a===0)a=1-u;else{if(a===l)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-u}return(d?-1:1)*o*Math.pow(2,a-n)};cH.write=function(e,t,r,n,i,a){var o,s,l,u=a*8-i-1,c=(1<>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,v=n?1:-1,_=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+f>=1?t+=h/l:t+=h*Math.pow(2,1-f),t*l>=2&&(o++,l/=2),o+f>=c?(s=0,o=c):o+f>=1?(s=(t*l-1)*Math.pow(2,i),o=o+f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[r+d]=s&255,d+=v,s/=256,i-=8);for(o=o<0;e[r+d]=o&255,d+=v,o/=256,u-=8);e[r+d-v]|=_*128}});var u2=ye(KT=>{"use strict";var fH=z3e(),ZT=O3e(),q3e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;KT.Buffer=ta;KT.SlowBuffer=y3t;KT.INSPECT_MAX_BYTES=50;var B8=2147483647;KT.kMaxLength=B8;ta.TYPED_ARRAY_SUPPORT=d3t();!ta.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function d3t(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(e){return!1}}Object.defineProperty(ta.prototype,"parent",{enumerable:!0,get:function(){if(ta.isBuffer(this))return this.buffer}});Object.defineProperty(ta.prototype,"offset",{enumerable:!0,get:function(){if(ta.isBuffer(this))return this.byteOffset}});function Vy(e){if(e>B8)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,ta.prototype),t}function ta(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return pH(e)}return V3e(e,t,r)}ta.poolSize=8192;function V3e(e,t,r){if(typeof e=="string")return p3t(e,t);if(ArrayBuffer.isView(e))return g3t(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Om(e,ArrayBuffer)||e&&Om(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Om(e,SharedArrayBuffer)||e&&Om(e.buffer,SharedArrayBuffer)))return dH(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return ta.from(n,t,r);let i=m3t(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return ta.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}ta.from=function(e,t,r){return V3e(e,t,r)};Object.setPrototypeOf(ta.prototype,Uint8Array.prototype);Object.setPrototypeOf(ta,Uint8Array);function G3e(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function v3t(e,t,r){return G3e(e),e<=0?Vy(e):t!==void 0?typeof r=="string"?Vy(e).fill(t,r):Vy(e).fill(t):Vy(e)}ta.alloc=function(e,t,r){return v3t(e,t,r)};function pH(e){return G3e(e),Vy(e<0?0:gH(e)|0)}ta.allocUnsafe=function(e){return pH(e)};ta.allocUnsafeSlow=function(e){return pH(e)};function p3t(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!ta.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=H3e(e,t)|0,n=Vy(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function hH(e){let t=e.length<0?0:gH(e.length)|0,r=Vy(t);for(let n=0;n=B8)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+B8.toString(16)+" bytes");return e|0}function y3t(e){return+e!=e&&(e=0),ta.alloc(+e)}ta.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==ta.prototype};ta.compare=function(t,r){if(Om(t,Uint8Array)&&(t=ta.from(t,t.offset,t.byteLength)),Om(r,Uint8Array)&&(r=ta.from(r,r.offset,r.byteLength)),!ta.isBuffer(t)||!ta.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,i=r.length;for(let a=0,o=Math.min(n,i);ai.length?(ta.isBuffer(o)||(o=ta.from(o)),o.copy(i,a)):Uint8Array.prototype.set.call(i,o,a);else if(ta.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function H3e(e,t){if(ta.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Om(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return vH(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Q3e(e).length;default:if(i)return n?-1:vH(e).length;t=(""+t).toLowerCase(),i=!0}}ta.byteLength=H3e;function _3t(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return k3t(this,t,r);case"utf8":case"utf-8":return W3e(this,t,r);case"ascii":return E3t(this,t,r);case"latin1":case"binary":return C3t(this,t,r);case"base64":return S3t(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L3t(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}ta.prototype._isBuffer=!0;function l2(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}ta.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;rr&&(t+=" ... "),""};q3e&&(ta.prototype[q3e]=ta.prototype.inspect);ta.prototype.compare=function(t,r,n,i,a){if(Om(t,Uint8Array)&&(t=ta.from(t,t.offset,t.byteLength)),!ta.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>t.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===t)return 0;let o=a-i,s=n-r,l=Math.min(o,s),u=this.slice(i,a),c=t.slice(r,n);for(let f=0;f2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,yH(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=ta.from(t,n)),ta.isBuffer(t))return t.length===0?-1:B3e(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):B3e(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function B3e(e,t,r,n,i){let a=1,o=e.length,s=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function l(c,f){return a===1?c[f]:c.readUInt16BE(f*a)}let u;if(i){let c=-1;for(u=r;uo&&(r=o-s),u=r;u>=0;u--){let c=!0;for(let f=0;fi&&(n=i)):n=i;let a=t.length;n>a/2&&(n=a/2);let o;for(o=0;o>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return x3t(this,t,r,n);case"utf8":case"utf-8":return b3t(this,t,r,n);case"ascii":case"latin1":case"binary":return w3t(this,t,r,n);case"base64":return T3t(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A3t(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};ta.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function S3t(e,t,r){return t===0&&r===e.length?fH.fromByteArray(e):fH.fromByteArray(e.slice(t,r))}function W3e(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i239?4:a>223?3:a>191?2:1;if(i+s<=r){let l,u,c,f;switch(s){case 1:a<128&&(o=a);break;case 2:l=e[i+1],(l&192)===128&&(f=(a&31)<<6|l&63,f>127&&(o=f));break;case 3:l=e[i+1],u=e[i+2],(l&192)===128&&(u&192)===128&&(f=(a&15)<<12|(l&63)<<6|u&63,f>2047&&(f<55296||f>57343)&&(o=f));break;case 4:l=e[i+1],u=e[i+2],c=e[i+3],(l&192)===128&&(u&192)===128&&(c&192)===128&&(f=(a&15)<<18|(l&63)<<12|(u&63)<<6|c&63,f>65535&&f<1114112&&(o=f))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return M3t(n)}var N3e=4096;function M3t(e){let t=e.length;if(t<=N3e)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let a=t;an&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),rr)throw new RangeError("Trying to access beyond buffer length")}ta.prototype.readUintLE=ta.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||ev(t,r,this.length);let i=this[t],a=1,o=0;for(;++o>>0,r=r>>>0,n||ev(t,r,this.length);let i=this[t+--r],a=1;for(;r>0&&(a*=256);)i+=this[t+--r]*a;return i};ta.prototype.readUint8=ta.prototype.readUInt8=function(t,r){return t=t>>>0,r||ev(t,1,this.length),this[t]};ta.prototype.readUint16LE=ta.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||ev(t,2,this.length),this[t]|this[t+1]<<8};ta.prototype.readUint16BE=ta.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||ev(t,2,this.length),this[t]<<8|this[t+1]};ta.prototype.readUint32LE=ta.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};ta.prototype.readUint32BE=ta.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};ta.prototype.readBigUInt64LE=I_(function(t){t=t>>>0,YT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&B4(t,this.length-8);let i=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(a)<>>0,YT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&B4(t,this.length-8);let i=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<>>0,r=r>>>0,n||ev(t,r,this.length);let i=this[t],a=1,o=0;for(;++o=a&&(i-=Math.pow(2,8*r)),i};ta.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||ev(t,r,this.length);let i=r,a=1,o=this[t+--i];for(;i>0&&(a*=256);)o+=this[t+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};ta.prototype.readInt8=function(t,r){return t=t>>>0,r||ev(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};ta.prototype.readInt16LE=function(t,r){t=t>>>0,r||ev(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};ta.prototype.readInt16BE=function(t,r){t=t>>>0,r||ev(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};ta.prototype.readInt32LE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};ta.prototype.readInt32BE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};ta.prototype.readBigInt64LE=I_(function(t){t=t>>>0,YT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&B4(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<>>0,YT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&B4(t,this.length-8);let i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<>>0,r||ev(t,4,this.length),ZT.read(this,t,!0,23,4)};ta.prototype.readFloatBE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),ZT.read(this,t,!1,23,4)};ta.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||ev(t,8,this.length),ZT.read(this,t,!0,52,8)};ta.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||ev(t,8,this.length),ZT.read(this,t,!1,52,8)};function Ip(e,t,r,n,i,a){if(!ta.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}ta.prototype.writeUintLE=ta.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Ip(this,t,r,n,s,0)}let a=1,o=0;for(this[r]=t&255;++o>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Ip(this,t,r,n,s,0)}let a=n-1,o=1;for(this[r+a]=t&255;--a>=0&&(o*=256);)this[r+a]=t/o&255;return r+n};ta.prototype.writeUint8=ta.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,1,255,0),this[r]=t&255,r+1};ta.prototype.writeUint16LE=ta.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};ta.prototype.writeUint16BE=ta.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};ta.prototype.writeUint32LE=ta.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};ta.prototype.writeUint32BE=ta.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function X3e(e,t,r,n,i){$3e(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function Z3e(e,t,r,n,i){$3e(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}ta.prototype.writeBigUInt64LE=I_(function(t,r=0){return X3e(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ta.prototype.writeBigUInt64BE=I_(function(t,r=0){return Z3e(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ta.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let l=Math.pow(2,8*n-1);Ip(this,t,r,n,l-1,-l)}let a=0,o=1,s=0;for(this[r]=t&255;++a>0)-s&255;return r+n};ta.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let l=Math.pow(2,8*n-1);Ip(this,t,r,n,l-1,-l)}let a=n-1,o=1,s=0;for(this[r+a]=t&255;--a>=0&&(o*=256);)t<0&&s===0&&this[r+a+1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+n};ta.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};ta.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};ta.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};ta.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};ta.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};ta.prototype.writeBigInt64LE=I_(function(t,r=0){return X3e(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});ta.prototype.writeBigInt64BE=I_(function(t,r=0){return Z3e(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Y3e(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function K3e(e,t,r,n,i){return t=+t,r=r>>>0,i||Y3e(e,t,r,4,34028234663852886e22,-34028234663852886e22),ZT.write(e,t,r,n,23,4),r+4}ta.prototype.writeFloatLE=function(t,r,n){return K3e(this,t,r,!0,n)};ta.prototype.writeFloatBE=function(t,r,n){return K3e(this,t,r,!1,n)};function J3e(e,t,r,n,i){return t=+t,r=r>>>0,i||Y3e(e,t,r,8,17976931348623157e292,-17976931348623157e292),ZT.write(e,t,r,n,52,8),r+8}ta.prototype.writeDoubleLE=function(t,r,n){return J3e(this,t,r,!0,n)};ta.prototype.writeDoubleBE=function(t,r,n){return J3e(this,t,r,!1,n)};ta.prototype.copy=function(t,r,n,i){if(!ta.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a2**32?i=U3e(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=U3e(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function U3e(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function P3t(e,t,r){YT(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&B4(t,e.length-(r+1))}function $3e(e,t,r,n,i,a){if(e>r||e3?t===0||t===BigInt(0)?s=`>= 0${o} and < 2${o} ** ${(a+1)*8}${o}`:s=`>= -(2${o} ** ${(a+1)*8-1}${o}) and < 2 ** ${(a+1)*8-1}${o}`:s=`>= ${t}${o} and <= ${r}${o}`,new XT.ERR_OUT_OF_RANGE("value",s,e)}P3t(n,i,a)}function YT(e,t){if(typeof e!="number")throw new XT.ERR_INVALID_ARG_TYPE(t,"number",e)}function B4(e,t,r){throw Math.floor(e)!==e?(YT(e,r),new XT.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new XT.ERR_BUFFER_OUT_OF_BOUNDS:new XT.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var I3t=/[^+/0-9A-Za-z-_]/g;function R3t(e){if(e=e.split("=")[0],e=e.trim().replace(I3t,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function vH(e,t){t=t||1/0;let r,n=e.length,i=null,a=[];for(let o=0;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function D3t(e){let t=[];for(let r=0;r>8,i=r%256,a.push(i),a.push(n);return a}function Q3e(e){return fH.toByteArray(R3t(e))}function N8(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Om(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function yH(e){return e!==e}var z3t=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function I_(e){return typeof BigInt=="undefined"?O3t:e}function O3t(){throw new Error("BigInt not supported")}});var U8=ye((Fcr,eTe)=>{"use strict";eTe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}});var N4=ye((zcr,tTe)=>{"use strict";var q3t=U8();tTe.exports=function(){return q3t()&&!!Symbol.toStringTag}});var _H=ye((Ocr,rTe)=>{"use strict";rTe.exports=Object});var nTe=ye((qcr,iTe)=>{"use strict";iTe.exports=Error});var oTe=ye((Bcr,aTe)=>{"use strict";aTe.exports=EvalError});var lTe=ye((Ncr,sTe)=>{"use strict";sTe.exports=RangeError});var cTe=ye((Ucr,uTe)=>{"use strict";uTe.exports=ReferenceError});var xH=ye((Vcr,fTe)=>{"use strict";fTe.exports=SyntaxError});var JT=ye((Gcr,hTe)=>{"use strict";hTe.exports=TypeError});var vTe=ye((Hcr,dTe)=>{"use strict";dTe.exports=URIError});var gTe=ye((jcr,pTe)=>{"use strict";pTe.exports=Math.abs});var yTe=ye((Wcr,mTe)=>{"use strict";mTe.exports=Math.floor});var xTe=ye((Xcr,_Te)=>{"use strict";_Te.exports=Math.max});var wTe=ye((Zcr,bTe)=>{"use strict";bTe.exports=Math.min});var ATe=ye((Ycr,TTe)=>{"use strict";TTe.exports=Math.pow});var MTe=ye((Kcr,STe)=>{"use strict";STe.exports=Math.round});var CTe=ye((Jcr,ETe)=>{"use strict";ETe.exports=Number.isNaN||function(t){return t!==t}});var LTe=ye(($cr,kTe)=>{"use strict";var B3t=CTe();kTe.exports=function(t){return B3t(t)||t===0?t:t<0?-1:1}});var ITe=ye((Qcr,PTe)=>{"use strict";PTe.exports=Object.getOwnPropertyDescriptor});var c2=ye((efr,RTe)=>{"use strict";var V8=ITe();if(V8)try{V8([],"length")}catch(e){V8=null}RTe.exports=V8});var U4=ye((tfr,DTe)=>{"use strict";var G8=Object.defineProperty||!1;if(G8)try{G8({},"a",{value:1})}catch(e){G8=!1}DTe.exports=G8});var OTe=ye((rfr,zTe)=>{"use strict";var FTe=typeof Symbol!="undefined"&&Symbol,N3t=U8();zTe.exports=function(){return typeof FTe!="function"||typeof Symbol!="function"||typeof FTe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:N3t()}});var bH=ye((ifr,qTe)=>{"use strict";qTe.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var wH=ye((nfr,BTe)=>{"use strict";var U3t=_H();BTe.exports=U3t.getPrototypeOf||null});var VTe=ye((afr,UTe)=>{"use strict";var V3t="Function.prototype.bind called on incompatible ",G3t=Object.prototype.toString,H3t=Math.max,j3t="[object Function]",NTe=function(t,r){for(var n=[],i=0;i{"use strict";var Z3t=VTe();GTe.exports=Function.prototype.bind||Z3t});var H8=ye((sfr,HTe)=>{"use strict";HTe.exports=Function.prototype.call});var TH=ye((lfr,jTe)=>{"use strict";jTe.exports=Function.prototype.apply});var XTe=ye((ufr,WTe)=>{"use strict";WTe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var YTe=ye((cfr,ZTe)=>{"use strict";var Y3t=$T(),K3t=TH(),J3t=H8(),$3t=XTe();ZTe.exports=$3t||Y3t.call(J3t,K3t)});var JTe=ye((ffr,KTe)=>{"use strict";var Q3t=$T(),eTt=JT(),tTt=H8(),rTt=YTe();KTe.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new eTt("a function is required");return rTt(Q3t,tTt,t)}});var iAe=ye((hfr,rAe)=>{"use strict";var iTt=JTe(),$Te=c2(),eAe;try{eAe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var AH=!!eAe&&$Te&&$Te(Object.prototype,"__proto__"),tAe=Object,QTe=tAe.getPrototypeOf;rAe.exports=AH&&typeof AH.get=="function"?iTt([AH.get]):typeof QTe=="function"?function(t){return QTe(t==null?t:tAe(t))}:!1});var lAe=ye((dfr,sAe)=>{"use strict";var nAe=bH(),aAe=wH(),oAe=iAe();sAe.exports=nAe?function(t){return nAe(t)}:aAe?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return aAe(t)}:oAe?function(t){return oAe(t)}:null});var cAe=ye((vfr,uAe)=>{"use strict";var nTt=Function.prototype.call,aTt=Object.prototype.hasOwnProperty,oTt=$T();uAe.exports=oTt.call(nTt,aTt)});var X8=ye((pfr,gAe)=>{"use strict";var uu,sTt=_H(),lTt=nTe(),uTt=oTe(),cTt=lTe(),fTt=cTe(),rA=xH(),tA=JT(),hTt=vTe(),dTt=gTe(),vTt=yTe(),pTt=xTe(),gTt=wTe(),mTt=ATe(),yTt=MTe(),_Tt=LTe(),vAe=Function,SH=function(e){try{return vAe('"use strict"; return ('+e+").constructor;")()}catch(t){}},V4=c2(),xTt=U4(),MH=function(){throw new tA},bTt=V4?function(){try{return arguments.callee,MH}catch(e){try{return V4(arguments,"callee").get}catch(t){return MH}}}():MH,QT=OTe()(),tv=lAe(),wTt=wH(),TTt=bH(),pAe=TH(),G4=H8(),eA={},ATt=typeof Uint8Array=="undefined"||!tv?uu:tv(Uint8Array),f2={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?uu:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?uu:ArrayBuffer,"%ArrayIteratorPrototype%":QT&&tv?tv([][Symbol.iterator]()):uu,"%AsyncFromSyncIteratorPrototype%":uu,"%AsyncFunction%":eA,"%AsyncGenerator%":eA,"%AsyncGeneratorFunction%":eA,"%AsyncIteratorPrototype%":eA,"%Atomics%":typeof Atomics=="undefined"?uu:Atomics,"%BigInt%":typeof BigInt=="undefined"?uu:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?uu:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?uu:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?uu:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":lTt,"%eval%":eval,"%EvalError%":uTt,"%Float16Array%":typeof Float16Array=="undefined"?uu:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?uu:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?uu:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?uu:FinalizationRegistry,"%Function%":vAe,"%GeneratorFunction%":eA,"%Int8Array%":typeof Int8Array=="undefined"?uu:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?uu:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?uu:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":QT&&tv?tv(tv([][Symbol.iterator]())):uu,"%JSON%":typeof JSON=="object"?JSON:uu,"%Map%":typeof Map=="undefined"?uu:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!QT||!tv?uu:tv(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":sTt,"%Object.getOwnPropertyDescriptor%":V4,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?uu:Promise,"%Proxy%":typeof Proxy=="undefined"?uu:Proxy,"%RangeError%":cTt,"%ReferenceError%":fTt,"%Reflect%":typeof Reflect=="undefined"?uu:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?uu:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!QT||!tv?uu:tv(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?uu:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":QT&&tv?tv(""[Symbol.iterator]()):uu,"%Symbol%":QT?Symbol:uu,"%SyntaxError%":rA,"%ThrowTypeError%":bTt,"%TypedArray%":ATt,"%TypeError%":tA,"%Uint8Array%":typeof Uint8Array=="undefined"?uu:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?uu:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?uu:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?uu:Uint32Array,"%URIError%":hTt,"%WeakMap%":typeof WeakMap=="undefined"?uu:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?uu:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?uu:WeakSet,"%Function.prototype.call%":G4,"%Function.prototype.apply%":pAe,"%Object.defineProperty%":xTt,"%Object.getPrototypeOf%":wTt,"%Math.abs%":dTt,"%Math.floor%":vTt,"%Math.max%":pTt,"%Math.min%":gTt,"%Math.pow%":mTt,"%Math.round%":yTt,"%Math.sign%":_Tt,"%Reflect.getPrototypeOf%":TTt};if(tv)try{null.error}catch(e){fAe=tv(tv(e)),f2["%Error.prototype%"]=fAe}var fAe,STt=function e(t){var r;if(t==="%AsyncFunction%")r=SH("async function () {}");else if(t==="%GeneratorFunction%")r=SH("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=SH("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&tv&&(r=tv(i.prototype))}return f2[t]=r,r},hAe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},H4=$T(),j8=cAe(),MTt=H4.call(G4,Array.prototype.concat),ETt=H4.call(pAe,Array.prototype.splice),dAe=H4.call(G4,String.prototype.replace),W8=H4.call(G4,String.prototype.slice),CTt=H4.call(G4,RegExp.prototype.exec),kTt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,LTt=/\\(\\)?/g,PTt=function(t){var r=W8(t,0,1),n=W8(t,-1);if(r==="%"&&n!=="%")throw new rA("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new rA("invalid intrinsic syntax, expected opening `%`");var i=[];return dAe(t,kTt,function(a,o,s,l){i[i.length]=s?dAe(l,LTt,"$1"):o||a}),i},ITt=function(t,r){var n=t,i;if(j8(hAe,n)&&(i=hAe[n],n="%"+i[0]+"%"),j8(f2,n)){var a=f2[n];if(a===eA&&(a=STt(n)),typeof a=="undefined"&&!r)throw new tA("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new rA("intrinsic "+t+" does not exist!")};gAe.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new tA("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new tA('"allowMissing" argument must be a boolean');if(CTt(/^%?[^%]*%?$/,t)===null)throw new rA("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=PTt(t),i=n.length>0?n[0]:"",a=ITt("%"+i+"%",r),o=a.name,s=a.value,l=!1,u=a.alias;u&&(i=u[0],ETt(n,MTt([0,1],u)));for(var c=1,f=!0;c=n.length){var _=V4(s,h);f=!!_,f&&"get"in _&&!("originalValue"in _.get)?s=_.get:s=s[h]}else f=j8(s,h),s=s[h];f&&!l&&(f2[o]=s)}}return s}});var xAe=ye((gfr,_Ae)=>{"use strict";var mAe=U4(),RTt=xH(),iA=JT(),yAe=c2();_Ae.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new iA("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new iA("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new iA("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new iA("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new iA("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new iA("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!yAe&&yAe(t,r);if(mAe)mAe(t,r,{configurable:o===null&&l?l.configurable:!o,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:a===null&&l?l.writable:!a});else if(s||!i&&!a&&!o)t[r]=n;else throw new RTt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var CH=ye((mfr,wAe)=>{"use strict";var EH=U4(),bAe=function(){return!!EH};bAe.hasArrayLengthDefineBug=function(){if(!EH)return null;try{return EH([],"length",{value:1}).length!==1}catch(t){return!0}};wAe.exports=bAe});var EAe=ye((yfr,MAe)=>{"use strict";var DTt=X8(),TAe=xAe(),FTt=CH()(),AAe=c2(),SAe=JT(),zTt=DTt("%Math.floor%");MAe.exports=function(t,r){if(typeof t!="function")throw new SAe("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||zTt(r)!==r)throw new SAe("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,a=!0;if("length"in t&&AAe){var o=AAe(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(a=!1)}return(i||a||!n)&&(FTt?TAe(t,"length",r,!0,!0):TAe(t,"length",r)),t}});var j4=ye((_fr,Z8)=>{"use strict";var kH=$T(),Y8=X8(),OTt=EAe(),qTt=JT(),LAe=Y8("%Function.prototype.apply%"),PAe=Y8("%Function.prototype.call%"),IAe=Y8("%Reflect.apply%",!0)||kH.call(PAe,LAe),CAe=U4(),BTt=Y8("%Math.max%");Z8.exports=function(t){if(typeof t!="function")throw new qTt("a function is required");var r=IAe(kH,PAe,arguments);return OTt(r,1+BTt(0,t.length-(arguments.length-1)),!0)};var kAe=function(){return IAe(kH,LAe,arguments)};CAe?CAe(Z8.exports,"apply",{value:kAe}):Z8.exports.apply=kAe});var nA=ye((xfr,FAe)=>{"use strict";var RAe=X8(),DAe=j4(),NTt=DAe(RAe("String.prototype.indexOf"));FAe.exports=function(t,r){var n=RAe(t,!!r);return typeof n=="function"&&NTt(t,".prototype.")>-1?DAe(n):n}});var qAe=ye((bfr,OAe)=>{"use strict";var UTt=N4()(),VTt=nA(),LH=VTt("Object.prototype.toString"),K8=function(t){return UTt&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:LH(t)==="[object Arguments]"},zAe=function(t){return K8(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&LH(t)!=="[object Array]"&&LH(t.callee)==="[object Function]"},GTt=function(){return K8(arguments)}();K8.isLegacyArguments=zAe;OAe.exports=GTt?K8:zAe});var UAe=ye((wfr,NAe)=>{"use strict";var HTt=Object.prototype.toString,jTt=Function.prototype.toString,WTt=/^\s*(?:function)?\*/,BAe=N4()(),PH=Object.getPrototypeOf,XTt=function(){if(!BAe)return!1;try{return Function("return function*() {}")()}catch(e){}},IH;NAe.exports=function(t){if(typeof t!="function")return!1;if(WTt.test(jTt.call(t)))return!0;if(!BAe){var r=HTt.call(t);return r==="[object GeneratorFunction]"}if(!PH)return!1;if(typeof IH=="undefined"){var n=XTt();IH=n?PH(n):!1}return PH(t)===IH}});var jAe=ye((Tfr,HAe)=>{"use strict";var GAe=Function.prototype.toString,aA=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,DH,J8;if(typeof aA=="function"&&typeof Object.defineProperty=="function")try{DH=Object.defineProperty({},"length",{get:function(){throw J8}}),J8={},aA(function(){throw 42},null,DH)}catch(e){e!==J8&&(aA=null)}else aA=null;var ZTt=/^\s*class\b/,FH=function(t){try{var r=GAe.call(t);return ZTt.test(r)}catch(n){return!1}},RH=function(t){try{return FH(t)?!1:(GAe.call(t),!0)}catch(r){return!1}},$8=Object.prototype.toString,YTt="[object Object]",KTt="[object Function]",JTt="[object GeneratorFunction]",$Tt="[object HTMLAllCollection]",QTt="[object HTML document.all class]",eAt="[object HTMLCollection]",tAt=typeof Symbol=="function"&&!!Symbol.toStringTag,rAt=!(0 in[,]),zH=function(){return!1};typeof document=="object"&&(VAe=document.all,$8.call(VAe)===$8.call(document.all)&&(zH=function(t){if((rAt||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=$8.call(t);return(r===$Tt||r===QTt||r===eAt||r===YTt)&&t("")==null}catch(n){}return!1}));var VAe;HAe.exports=aA?function(t){if(zH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{aA(t,null,DH)}catch(r){if(r!==J8)return!1}return!FH(t)&&RH(t)}:function(t){if(zH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(tAt)return RH(t);if(FH(t))return!1;var r=$8.call(t);return r!==KTt&&r!==JTt&&!/^\[object HTML/.test(r)?!1:RH(t)}});var OH=ye((Afr,XAe)=>{"use strict";var iAt=jAe(),nAt=Object.prototype.toString,WAe=Object.prototype.hasOwnProperty,aAt=function(t,r,n){for(var i=0,a=t.length;i=3&&(i=n),nAt.call(t)==="[object Array]"?aAt(t,r,i):typeof t=="string"?oAt(t,r,i):sAt(t,r,i)};XAe.exports=lAt});var BH=ye((Sfr,ZAe)=>{"use strict";var qH=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],uAt=typeof globalThis=="undefined"?window:globalThis;ZAe.exports=function(){for(var t=[],r=0;r{"use strict";var eR=OH(),cAt=BH(),YAe=j4(),VH=nA(),Q8=c2(),fAt=VH("Object.prototype.toString"),JAe=N4()(),KAe=typeof globalThis=="undefined"?window:globalThis,UH=cAt(),GH=VH("String.prototype.slice"),NH=Object.getPrototypeOf,hAt=VH("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1?r:r!=="Object"?!1:vAt(t)}return Q8?dAt(t):null}});var a5e=ye((Efr,n5e)=>{"use strict";var e5e=OH(),pAt=BH(),jH=nA(),gAt=jH("Object.prototype.toString"),t5e=N4()(),rR=c2(),mAt=typeof globalThis=="undefined"?window:globalThis,r5e=pAt(),yAt=jH("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1}return rR?xAt(t):!1}});var ZH=ye(cu=>{"use strict";var bAt=qAe(),wAt=UAe(),Gg=QAe(),o5e=a5e();function oA(e){return e.call.bind(e)}var s5e=typeof BigInt!="undefined",l5e=typeof Symbol!="undefined",Z0=oA(Object.prototype.toString),TAt=oA(Number.prototype.valueOf),AAt=oA(String.prototype.valueOf),SAt=oA(Boolean.prototype.valueOf);s5e&&(u5e=oA(BigInt.prototype.valueOf));var u5e;l5e&&(c5e=oA(Symbol.prototype.valueOf));var c5e;function X4(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}cu.isArgumentsObject=bAt;cu.isGeneratorFunction=wAt;cu.isTypedArray=o5e;function MAt(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}cu.isPromise=MAt;function EAt(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):o5e(e)||h5e(e)}cu.isArrayBufferView=EAt;function CAt(e){return Gg(e)==="Uint8Array"}cu.isUint8Array=CAt;function kAt(e){return Gg(e)==="Uint8ClampedArray"}cu.isUint8ClampedArray=kAt;function LAt(e){return Gg(e)==="Uint16Array"}cu.isUint16Array=LAt;function PAt(e){return Gg(e)==="Uint32Array"}cu.isUint32Array=PAt;function IAt(e){return Gg(e)==="Int8Array"}cu.isInt8Array=IAt;function RAt(e){return Gg(e)==="Int16Array"}cu.isInt16Array=RAt;function DAt(e){return Gg(e)==="Int32Array"}cu.isInt32Array=DAt;function FAt(e){return Gg(e)==="Float32Array"}cu.isFloat32Array=FAt;function zAt(e){return Gg(e)==="Float64Array"}cu.isFloat64Array=zAt;function OAt(e){return Gg(e)==="BigInt64Array"}cu.isBigInt64Array=OAt;function qAt(e){return Gg(e)==="BigUint64Array"}cu.isBigUint64Array=qAt;function iR(e){return Z0(e)==="[object Map]"}iR.working=typeof Map!="undefined"&&iR(new Map);function BAt(e){return typeof Map=="undefined"?!1:iR.working?iR(e):e instanceof Map}cu.isMap=BAt;function nR(e){return Z0(e)==="[object Set]"}nR.working=typeof Set!="undefined"&&nR(new Set);function NAt(e){return typeof Set=="undefined"?!1:nR.working?nR(e):e instanceof Set}cu.isSet=NAt;function aR(e){return Z0(e)==="[object WeakMap]"}aR.working=typeof WeakMap!="undefined"&&aR(new WeakMap);function UAt(e){return typeof WeakMap=="undefined"?!1:aR.working?aR(e):e instanceof WeakMap}cu.isWeakMap=UAt;function XH(e){return Z0(e)==="[object WeakSet]"}XH.working=typeof WeakSet!="undefined"&&XH(new WeakSet);function VAt(e){return XH(e)}cu.isWeakSet=VAt;function oR(e){return Z0(e)==="[object ArrayBuffer]"}oR.working=typeof ArrayBuffer!="undefined"&&oR(new ArrayBuffer);function f5e(e){return typeof ArrayBuffer=="undefined"?!1:oR.working?oR(e):e instanceof ArrayBuffer}cu.isArrayBuffer=f5e;function sR(e){return Z0(e)==="[object DataView]"}sR.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&sR(new DataView(new ArrayBuffer(1),0,1));function h5e(e){return typeof DataView=="undefined"?!1:sR.working?sR(e):e instanceof DataView}cu.isDataView=h5e;var WH=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function W4(e){return Z0(e)==="[object SharedArrayBuffer]"}function d5e(e){return typeof WH=="undefined"?!1:(typeof W4.working=="undefined"&&(W4.working=W4(new WH)),W4.working?W4(e):e instanceof WH)}cu.isSharedArrayBuffer=d5e;function GAt(e){return Z0(e)==="[object AsyncFunction]"}cu.isAsyncFunction=GAt;function HAt(e){return Z0(e)==="[object Map Iterator]"}cu.isMapIterator=HAt;function jAt(e){return Z0(e)==="[object Set Iterator]"}cu.isSetIterator=jAt;function WAt(e){return Z0(e)==="[object Generator]"}cu.isGeneratorObject=WAt;function XAt(e){return Z0(e)==="[object WebAssembly.Module]"}cu.isWebAssemblyCompiledModule=XAt;function v5e(e){return X4(e,TAt)}cu.isNumberObject=v5e;function p5e(e){return X4(e,AAt)}cu.isStringObject=p5e;function g5e(e){return X4(e,SAt)}cu.isBooleanObject=g5e;function m5e(e){return s5e&&X4(e,u5e)}cu.isBigIntObject=m5e;function y5e(e){return l5e&&X4(e,c5e)}cu.isSymbolObject=y5e;function ZAt(e){return v5e(e)||p5e(e)||g5e(e)||m5e(e)||y5e(e)}cu.isBoxedPrimitive=ZAt;function YAt(e){return typeof Uint8Array!="undefined"&&(f5e(e)||d5e(e))}cu.isAnyArrayBuffer=YAt;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(cu,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var YH=ye((kfr,_5e)=>{_5e.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var tj=ye(fu=>{var x5e=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(l){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),QH(t)?r.showHidden=t:t&&fu._extend(r,t),d2(r.showHidden)&&(r.showHidden=!1),d2(r.depth)&&(r.depth=2),d2(r.colors)&&(r.colors=!1),d2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=JAt),fR(r,e,r.depth)}fu.inspect=R_;R_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};R_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function JAt(e,t){var r=R_.styles[t];return r?"\x1B["+R_.colors[r][0]+"m"+e+"\x1B["+R_.colors[r][1]+"m":e}function $At(e,t){return e}function QAt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function fR(e,t,r){if(e.customInspect&&t&&cR(t.inspect)&&t.inspect!==fu.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return vR(n)||(n=fR(e,n,r)),n}var i=e5t(e,t);if(i)return i;var a=Object.keys(t),o=QAt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),Y4(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return KH(t);if(a.length===0){if(cR(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Z4(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(hR(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Y4(t))return KH(t)}var l="",u=!1,c=["{","}"];if(w5e(t)&&(u=!0,c=["[","]"]),cR(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(Z4(t)&&(l=" "+RegExp.prototype.toString.call(t)),hR(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Y4(t)&&(l=" "+KH(t)),a.length===0&&(!u||t.length==0))return c[0]+l+c[1];if(r<0)return Z4(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=t5t(e,t,r,o,a):h=a.map(function(d){return $H(e,t,r,o,d,u)}),e.seen.pop(),r5t(h,l,c)}function e5t(e,t){if(d2(t))return e.stylize("undefined","undefined");if(vR(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(T5e(t))return e.stylize(""+t,"number");if(QH(t))return e.stylize(""+t,"boolean");if(dR(t))return e.stylize("null","null")}function KH(e){return"["+Error.prototype.toString.call(e)+"]"}function t5t(e,t,r,n,i){for(var a=[],o=0,s=t.length;o-1&&(a?s=s.split(` `).map(function(u){return" "+u}).join(` `).slice(2):s=` `+s.split(` `).map(function(u){return" "+u}).join(` -`))):s=e.stylize("[Circular]","special")),d2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function JAt(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` +`))):s=e.stylize("[Circular]","special")),d2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function r5t(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` `)>=0&&n++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(t===""?"":t+` `)+" "+e.join(`, - `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}fu.types=XH();function b5e(e){return Array.isArray(e)}fu.isArray=b5e;function $H(e){return typeof e=="boolean"}fu.isBoolean=$H;function dR(e){return e===null}fu.isNull=dR;function $At(e){return e==null}fu.isNullOrUndefined=$At;function w5e(e){return typeof e=="number"}fu.isNumber=w5e;function vR(e){return typeof e=="string"}fu.isString=vR;function QAt(e){return typeof e=="symbol"}fu.isSymbol=QAt;function d2(e){return e===void 0}fu.isUndefined=d2;function j4(e){return sA(e)&&QH(e)==="[object RegExp]"}fu.isRegExp=j4;fu.types.isRegExp=j4;function sA(e){return typeof e=="object"&&e!==null}fu.isObject=sA;function hR(e){return sA(e)&&QH(e)==="[object Date]"}fu.isDate=hR;fu.types.isDate=hR;function W4(e){return sA(e)&&(QH(e)==="[object Error]"||e instanceof Error)}fu.isError=W4;fu.types.isNativeError=W4;function cR(e){return typeof e=="function"}fu.isFunction=cR;function e5t(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}fu.isPrimitive=e5t;fu.isBuffer=ZH();function QH(e){return Object.prototype.toString.call(e)}function KH(e){return e<10?"0"+e.toString(10):e.toString(10)}var t5t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function r5t(){var e=new Date,t=[KH(e.getHours()),KH(e.getMinutes()),KH(e.getSeconds())].join(":");return[e.getDate(),t5t[e.getMonth()],t].join(" ")}fu.log=function(){console.log("%s - %s",r5t(),fu.format.apply(fu,arguments))};fu.inherits=Uy();fu._extend=function(e,t){if(!t||!sA(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function T5e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var h2=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;fu.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(h2&&t[h2]){var r=t[h2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,h2,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,a=new Promise(function(l,u){n=l,i=u}),o=[],s=0;s{"use strict";function A5e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function a5t(e){for(var t=1;t0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return pR.alloc(0);for(var n=pR.allocUnsafe(r>>>0),i=this.head,a=0;i;)h5t(i.data,n,a),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return ro.length?o.length:r;if(s===o.length?a+=o:a+=o.slice(0,r),r-=s,r===0){s===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++i}return this.length-=i,a}},{key:"_getBuffer",value:function(r){var n=pR.allocUnsafe(r),i=this.head,a=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,s=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,s),r-=s,r===0){s===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++a}return this.length-=a,n}},{key:f5t,value:function(r,n){return tj(this,a5t({},n,{depth:0,customInspect:!1}))}}]),e}()});var ij=ye((Cfr,k5e)=>{"use strict";function d5t(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(rj,this,e)):process.nextTick(rj,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?process.nextTick(gR,r):(r._writableState.errorEmitted=!0,process.nextTick(C5e,r,a)):process.nextTick(C5e,r,a):t?(process.nextTick(gR,r),t(a)):process.nextTick(gR,r)}),this)}function C5e(e,t){rj(e,t),gR(e)}function gR(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function v5t(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function rj(e,t){e.emit("error",t)}function p5t(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}k5e.exports={destroy:d5t,undestroy:v5t,errorOrDestroy:p5t}});var v2=ye((kfr,I5e)=>{"use strict";function g5t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var P5e={};function Y0(e,t,r){r||(r=Error);function n(a,o,s){return typeof t=="string"?t:t(a,o,s)}var i=function(a){g5t(o,a);function o(s,l,u){return a.call(this,n(s,l,u))||this}return o}(r);i.prototype.name=r.name,i.prototype.code=e,P5e[e]=i}function L5e(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function m5t(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function y5t(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function _5t(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Y0("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Y0("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&m5t(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(y5t(e," argument"))i="The ".concat(e," ").concat(n," ").concat(L5e(t,"type"));else{var a=_5t(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(L5e(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);Y0("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Y0("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Y0("ERR_STREAM_PREMATURE_CLOSE","Premature close");Y0("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Y0("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Y0("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Y0("ERR_STREAM_WRITE_AFTER_END","write after end");Y0("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Y0("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Y0("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");I5e.exports.codes=P5e});var nj=ye((Lfr,R5e)=>{"use strict";var x5t=v2().codes.ERR_INVALID_OPT_VALUE;function b5t(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function w5t(e,t,r,n){var i=b5t(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new x5t(a,i)}return Math.floor(i)}return e.objectMode?16:16*1024}R5e.exports={getHighWaterMark:w5t}});var F5e=ye((Pfr,D5e)=>{D5e.exports=T5t;function T5t(e,t){if(aj("noDeprecation"))return e;var r=!1;function n(){if(!r){if(aj("throwDeprecation"))throw new Error(t);aj("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function aj(e){try{if(!window.localStorage)return!1}catch(r){return!1}var t=window.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var lj=ye((Ifr,U5e)=>{"use strict";U5e.exports=Rh;function O5e(e){var t=this;this.next=null,this.entry=null,this.finish=function(){K5t(t,e)}}var lA;Rh.WritableState=Z4;var A5t={deprecate:F5e()},q5e=sH(),yR=u2().Buffer,S5t=window.Uint8Array||function(){};function M5t(e){return yR.from(e)}function E5t(e){return yR.isBuffer(e)||e instanceof S5t}var sj=ij(),C5t=nj(),k5t=C5t.getHighWaterMark,D_=v2().codes,L5t=D_.ERR_INVALID_ARG_TYPE,P5t=D_.ERR_METHOD_NOT_IMPLEMENTED,I5t=D_.ERR_MULTIPLE_CALLBACK,R5t=D_.ERR_STREAM_CANNOT_PIPE,D5t=D_.ERR_STREAM_DESTROYED,F5t=D_.ERR_STREAM_NULL_VALUES,z5t=D_.ERR_STREAM_WRITE_AFTER_END,O5t=D_.ERR_UNKNOWN_ENCODING,uA=sj.errorOrDestroy;Uy()(Rh,q5e);function q5t(){}function Z4(e,t,r){lA=lA||p2(),e=e||{},typeof r!="boolean"&&(r=t instanceof lA),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=k5t(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){j5t(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new O5e(this)}Z4.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Z4.prototype,"buffer",{get:A5t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var mR;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(mR=Function.prototype[Symbol.hasInstance],Object.defineProperty(Rh,Symbol.hasInstance,{value:function(t){return mR.call(this,t)?!0:this!==Rh?!1:t&&t._writableState instanceof Z4}})):mR=function(t){return t instanceof this};function Rh(e){lA=lA||p2();var t=this instanceof lA;if(!t&&!mR.call(Rh,this))return new Rh(e);this._writableState=new Z4(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),q5e.call(this)}Rh.prototype.pipe=function(){uA(this,new R5t)};function B5t(e,t){var r=new z5t;uA(e,r),process.nextTick(t,r)}function N5t(e,t,r,n){var i;return r===null?i=new F5t:typeof r!="string"&&!t.objectMode&&(i=new L5t("chunk",["string","Buffer"],r)),i?(uA(e,i),process.nextTick(n,i),!1):!0}Rh.prototype.write=function(e,t,r){var n=this._writableState,i=!1,a=!n.objectMode&&E5t(e);return a&&!yR.isBuffer(e)&&(e=M5t(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=q5t),n.ending?B5t(this,r):(a||N5t(this,n,e,r))&&(n.pendingcb++,i=V5t(this,n,a,e,t,r)),i};Rh.prototype.cork=function(){this._writableState.corked++};Rh.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&B5e(this,e))};Rh.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new O5t(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Rh.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function U5t(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=yR.from(t,r)),t}Object.defineProperty(Rh.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function V5t(e,t,r,n,i,a){if(!r){var o=U5t(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length{"use strict";var J5t=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};G5e.exports=qm;var V5e=fj(),cj=lj();Uy()(qm,V5e);for(uj=J5t(cj.prototype),_R=0;_R{var bR=u2(),Bm=bR.Buffer;function H5e(e,t){for(var r in e)t[r]=e[r]}Bm.from&&Bm.alloc&&Bm.allocUnsafe&&Bm.allocUnsafeSlow?j5e.exports=bR:(H5e(bR,hj),hj.Buffer=g2);function g2(e,t,r){return Bm(e,t,r)}g2.prototype=Object.create(Bm.prototype);H5e(Bm,g2);g2.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Bm(e,t,r)};g2.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Bm(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};g2.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Bm(e)};g2.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return bR.SlowBuffer(e)}});var pj=ye(Z5e=>{"use strict";var vj=W5e().Buffer,X5e=vj.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function eSt(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function tSt(e){var t=eSt(e);if(typeof t!="string"&&(vj.isEncoding===X5e||!X5e(e)))throw new Error("Unknown encoding: "+e);return t||e}Z5e.StringDecoder=Y4;function Y4(e){this.encoding=tSt(e);var t;switch(this.encoding){case"utf16le":this.text=sSt,this.end=lSt,t=4;break;case"utf8":this.fillLast=nSt,t=4;break;case"base64":this.text=uSt,this.end=cSt,t=3;break;default:this.write=fSt,this.end=hSt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=vj.allocUnsafe(t)}Y4.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function rSt(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function iSt(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function nSt(e){var t=this.lastTotal-this.lastNeed,r=iSt(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function aSt(e,t){var r=rSt(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function oSt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function sSt(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function lSt(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function uSt(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function cSt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function fSt(e){return e.toString(this.encoding)}function hSt(e){return e&&e.length?this.write(e):""}});var wR=ye((Ffr,J5e)=>{"use strict";var Y5e=v2().codes.ERR_STREAM_PREMATURE_CLOSE;function dSt(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i{"use strict";var TR;function F_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var gSt=wR(),z_=Symbol("lastResolve"),m2=Symbol("lastReject"),K4=Symbol("error"),AR=Symbol("ended"),y2=Symbol("lastPromise"),gj=Symbol("handlePromise"),_2=Symbol("stream");function O_(e,t){return{value:e,done:t}}function mSt(e){var t=e[z_];if(t!==null){var r=e[_2].read();r!==null&&(e[y2]=null,e[z_]=null,e[m2]=null,t(O_(r,!1)))}}function ySt(e){process.nextTick(mSt,e)}function _St(e,t){return function(r,n){e.then(function(){if(t[AR]){r(O_(void 0,!0));return}t[gj](r,n)},n)}}var xSt=Object.getPrototypeOf(function(){}),bSt=Object.setPrototypeOf((TR={get stream(){return this[_2]},next:function(){var t=this,r=this[K4];if(r!==null)return Promise.reject(r);if(this[AR])return Promise.resolve(O_(void 0,!0));if(this[_2].destroyed)return new Promise(function(o,s){process.nextTick(function(){t[K4]?s(t[K4]):o(O_(void 0,!0))})});var n=this[y2],i;if(n)i=new Promise(_St(n,this));else{var a=this[_2].read();if(a!==null)return Promise.resolve(O_(a,!1));i=new Promise(this[gj])}return this[y2]=i,i}},F_(TR,Symbol.asyncIterator,function(){return this}),F_(TR,"return",function(){var t=this;return new Promise(function(r,n){t[_2].destroy(null,function(i){if(i){n(i);return}r(O_(void 0,!0))})})}),TR),xSt),wSt=function(t){var r,n=Object.create(bSt,(r={},F_(r,_2,{value:t,writable:!0}),F_(r,z_,{value:null,writable:!0}),F_(r,m2,{value:null,writable:!0}),F_(r,K4,{value:null,writable:!0}),F_(r,AR,{value:t._readableState.endEmitted,writable:!0}),F_(r,gj,{value:function(a,o){var s=n[_2].read();s?(n[y2]=null,n[z_]=null,n[m2]=null,a(O_(s,!1))):(n[z_]=a,n[m2]=o)},writable:!0}),r));return n[y2]=null,gSt(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[m2];a!==null&&(n[y2]=null,n[z_]=null,n[m2]=null,a(i)),n[K4]=i;return}var o=n[z_];o!==null&&(n[y2]=null,n[z_]=null,n[m2]=null,o(O_(void 0,!0))),n[AR]=!0}),t.on("readable",ySt.bind(null,n)),n};$5e.exports=wSt});var tSe=ye((Ofr,eSe)=>{eSe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var fj=ye((Bfr,fSe)=>{"use strict";fSe.exports=Bu;var cA;Bu.ReadableState=aSe;var qfr=vb().EventEmitter,nSe=function(t,r){return t.listeners(r).length},$4=sH(),SR=u2().Buffer,TSt=window.Uint8Array||function(){};function ASt(e){return SR.from(e)}function SSt(e){return SR.isBuffer(e)||e instanceof TSt}var mj=ej(),au;mj&&mj.debuglog?au=mj.debuglog("stream"):au=function(){};var MSt=E5e(),Aj=ij(),ESt=nj(),CSt=ESt.getHighWaterMark,MR=v2().codes,kSt=MR.ERR_INVALID_ARG_TYPE,LSt=MR.ERR_STREAM_PUSH_AFTER_EOF,PSt=MR.ERR_METHOD_NOT_IMPLEMENTED,ISt=MR.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,fA,yj,_j;Uy()(Bu,$4);var J4=Aj.errorOrDestroy,xj=["error","close","destroy","pause","resume"];function RSt(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function aSe(e,t,r){cA=cA||p2(),e=e||{},typeof r!="boolean"&&(r=t instanceof cA),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=CSt(this,e,"readableHighWaterMark",r),this.buffer=new MSt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(fA||(fA=pj().StringDecoder),this.decoder=new fA(e.encoding),this.encoding=e.encoding)}function Bu(e){if(cA=cA||p2(),!(this instanceof Bu))return new Bu(e);var t=this instanceof cA;this._readableState=new aSe(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),$4.call(this)}Object.defineProperty(Bu.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Bu.prototype.destroy=Aj.destroy;Bu.prototype._undestroy=Aj.undestroy;Bu.prototype._destroy=function(e,t){t(e)};Bu.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=SR.from(e,t),t=""),n=!0),oSe(this,e,t,!1,n)};Bu.prototype.unshift=function(e){return oSe(this,e,null,!0,!1)};function oSe(e,t,r,n,i){au("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,zSt(e,a);else{var o;if(i||(o=DSt(a,t)),o)J4(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==SR.prototype&&(t=ASt(t)),n)a.endEmitted?J4(e,new ISt):bj(e,a,t,!0);else if(a.ended)J4(e,new LSt);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?bj(e,a,t,!1):Tj(e,a)):bj(e,a,t,!1)}else n||(a.reading=!1,Tj(e,a))}return!a.ended&&(a.length=rSe?e=rSe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function iSe(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=FSt(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}Bu.prototype.read=function(e){au("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return au("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?wj(this):ER(this),null;if(e=iSe(e,t),e===0&&t.ended)return t.length===0&&wj(this),null;var n=t.needReadable;au("need readable",n),(t.length===0||t.length-e0?i=uSe(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&wj(this)),i!==null&&this.emit("data",i),i};function zSt(e,t){if(au("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?ER(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,sSe(e)))}}function ER(e){var t=e._readableState;au("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(au("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(sSe,e))}function sSe(e){var t=e._readableState;au("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Sj(e)}function Tj(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(OSt,e,t))}function OSt(e,t){for(;!t.reading&&!t.ended&&(t.length1&&cSe(n.pipes,e)!==-1)&&!u&&(au("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(b){au("onerror",b),x(),e.removeListener("error",h),nSe(e,"error")===0&&J4(e,b)}RSt(e,"error",h);function d(){e.removeListener("finish",v),x()}e.once("close",d);function v(){au("onfinish"),e.removeListener("close",d),x()}e.once("finish",v);function x(){au("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(au("pipe resume"),r.resume()),e};function qSt(e){return function(){var r=e._readableState;au("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&nSe(e,"data")&&(r.flowing=!0,Sj(e))}}Bu.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,au("on readable",n.length,n.reading),n.length?ER(this):n.reading||process.nextTick(BSt,this)),r};Bu.prototype.addListener=Bu.prototype.on;Bu.prototype.removeListener=function(e,t){var r=$4.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(lSe,this),r};Bu.prototype.removeAllListeners=function(e){var t=$4.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(lSe,this),t};function lSe(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function BSt(e){au("readable nexttick read 0"),e.read(0)}Bu.prototype.resume=function(){var e=this._readableState;return e.flowing||(au("resume"),e.flowing=!e.readableListening,NSt(this,e)),e.paused=!1,this};function NSt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(USt,e,t))}function USt(e,t){au("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Sj(e),t.flowing&&!t.reading&&e.read(0)}Bu.prototype.pause=function(){return au("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(au("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Sj(e){var t=e._readableState;for(au("flow",t.flowing);t.flowing&&e.read()!==null;);}Bu.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(au("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(au("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(s){return function(){return e[s].apply(e,arguments)}}(i));for(var a=0;a=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function wj(e){var t=e._readableState;au("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(VSt,t,e))}function VSt(e,t){if(au("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(Bu.from=function(e,t){return _j===void 0&&(_j=tSe()),_j(Bu,e,t)});function cSe(e,t){for(var r=0,n=e.length;r{"use strict";dSe.exports=Gy;var CR=v2().codes,GSt=CR.ERR_METHOD_NOT_IMPLEMENTED,HSt=CR.ERR_MULTIPLE_CALLBACK,jSt=CR.ERR_TRANSFORM_ALREADY_TRANSFORMING,WSt=CR.ERR_TRANSFORM_WITH_LENGTH_0,kR=p2();Uy()(Gy,kR);function XSt(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new HSt);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";pSe.exports=Q4;var vSe=Mj();Uy()(Q4,vSe);function Q4(e){if(!(this instanceof Q4))return new Q4(e);vSe.call(this,e)}Q4.prototype._transform=function(e,t,r){r(null,e)}});var bSe=ye((Vfr,xSe)=>{"use strict";var Ej;function YSt(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var _Se=v2().codes,KSt=_Se.ERR_MISSING_ARGS,JSt=_Se.ERR_STREAM_DESTROYED;function mSe(e){if(e)throw e}function $St(e){return e.setHeader&&typeof e.abort=="function"}function QSt(e,t,r,n){n=YSt(n);var i=!1;e.on("close",function(){i=!0}),Ej===void 0&&(Ej=wR()),Ej(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var a=!1;return function(o){if(!i&&!a){if(a=!0,$St(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new JSt("pipe"))}}}function ySe(e){e()}function eMt(e,t){return e.pipe(t)}function tMt(e){return!e.length||typeof e[e.length-1]!="function"?mSe:e.pop()}function rMt(){for(var e=arguments.length,t=new Array(e),r=0;r0;return QSt(o,l,u,function(c){i||(i=c),c&&a.forEach(ySe),!l&&(a.forEach(ySe),n(i))})});return t.reduce(eMt)}xSe.exports=rMt});var TSe=ye((Gfr,wSe)=>{wSe.exports=K0;var Cj=vb().EventEmitter,iMt=Uy();iMt(K0,Cj);K0.Readable=fj();K0.Writable=lj();K0.Duplex=p2();K0.Transform=Mj();K0.PassThrough=gSe();K0.finished=wR();K0.pipeline=bSe();K0.Stream=K0;function K0(){Cj.call(this)}K0.prototype.pipe=function(e,t){var r=this;function n(c){e.writable&&e.write(c)===!1&&r.pause&&r.pause()}r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}e.on("drain",i),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function l(c){if(u(),Cj.listenerCount(this,"error")===0)throw c}r.on("error",l),e.on("error",l);function u(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}});var dA=ye(hu=>{var ASe=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(l){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Ij(t)?r.showHidden=t:t&&hu._extend(r,t),b2(r.showHidden)&&(r.showHidden=!1),b2(r.depth)&&(r.depth=2),b2(r.colors)&&(r.colors=!1),b2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=aMt),RR(r,e,r.depth)}hu.inspect=q_;q_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};q_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function aMt(e,t){var r=q_.styles[t];return r?"\x1B["+q_.colors[r][0]+"m"+e+"\x1B["+q_.colors[r][1]+"m":e}function oMt(e,t){return e}function sMt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function RR(e,t,r){if(e.customInspect&&t&&IR(t.inspect)&&t.inspect!==hu.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return zR(n)||(n=RR(e,n,r)),n}var i=lMt(e,t);if(i)return i;var a=Object.keys(t),o=sMt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),tE(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return kj(t);if(a.length===0){if(IR(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(eE(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(DR(t))return e.stylize(Date.prototype.toString.call(t),"date");if(tE(t))return kj(t)}var l="",u=!1,c=["{","}"];if(MSe(t)&&(u=!0,c=["[","]"]),IR(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(eE(t)&&(l=" "+RegExp.prototype.toString.call(t)),DR(t)&&(l=" "+Date.prototype.toUTCString.call(t)),tE(t)&&(l=" "+kj(t)),a.length===0&&(!u||t.length==0))return c[0]+l+c[1];if(r<0)return eE(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=uMt(e,t,r,o,a):h=a.map(function(d){return Pj(e,t,r,o,d,u)}),e.seen.pop(),cMt(h,l,c)}function lMt(e,t){if(b2(t))return e.stylize("undefined","undefined");if(zR(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(ESe(t))return e.stylize(""+t,"number");if(Ij(t))return e.stylize(""+t,"boolean");if(FR(t))return e.stylize("null","null")}function kj(e){return"["+Error.prototype.toString.call(e)+"]"}function uMt(e,t,r,n,i){for(var a=[],o=0,s=t.length;o{"use strict";function S5e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function c5t(e){for(var t=1;t0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return pR.alloc(0);for(var n=pR.allocUnsafe(r>>>0),i=this.head,a=0;i;)m5t(i.data,n,a),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return ro.length?o.length:r;if(s===o.length?a+=o:a+=o.slice(0,r),r-=s,r===0){s===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++i}return this.length-=i,a}},{key:"_getBuffer",value:function(r){var n=pR.allocUnsafe(r),i=this.head,a=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,s=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,s),r-=s,r===0){s===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++a}return this.length-=a,n}},{key:g5t,value:function(r,n){return rj(this,c5t({},n,{depth:0,customInspect:!1}))}}]),e}()});var nj=ye((Ifr,L5e)=>{"use strict";function y5t(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(ij,this,e)):process.nextTick(ij,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?process.nextTick(gR,r):(r._writableState.errorEmitted=!0,process.nextTick(k5e,r,a)):process.nextTick(k5e,r,a):t?(process.nextTick(gR,r),t(a)):process.nextTick(gR,r)}),this)}function k5e(e,t){ij(e,t),gR(e)}function gR(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function _5t(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ij(e,t){e.emit("error",t)}function x5t(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}L5e.exports={destroy:y5t,undestroy:_5t,errorOrDestroy:x5t}});var v2=ye((Rfr,R5e)=>{"use strict";function b5t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var I5e={};function Y0(e,t,r){r||(r=Error);function n(a,o,s){return typeof t=="string"?t:t(a,o,s)}var i=function(a){b5t(o,a);function o(s,l,u){return a.call(this,n(s,l,u))||this}return o}(r);i.prototype.name=r.name,i.prototype.code=e,I5e[e]=i}function P5e(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function w5t(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function T5t(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function A5t(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Y0("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Y0("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&w5t(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(T5t(e," argument"))i="The ".concat(e," ").concat(n," ").concat(P5e(t,"type"));else{var a=A5t(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(P5e(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);Y0("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Y0("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Y0("ERR_STREAM_PREMATURE_CLOSE","Premature close");Y0("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Y0("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Y0("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Y0("ERR_STREAM_WRITE_AFTER_END","write after end");Y0("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Y0("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Y0("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");R5e.exports.codes=I5e});var aj=ye((Dfr,D5e)=>{"use strict";var S5t=v2().codes.ERR_INVALID_OPT_VALUE;function M5t(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function E5t(e,t,r,n){var i=M5t(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new S5t(a,i)}return Math.floor(i)}return e.objectMode?16:16*1024}D5e.exports={getHighWaterMark:E5t}});var z5e=ye((Ffr,F5e)=>{F5e.exports=C5t;function C5t(e,t){if(oj("noDeprecation"))return e;var r=!1;function n(){if(!r){if(oj("throwDeprecation"))throw new Error(t);oj("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function oj(e){try{if(!window.localStorage)return!1}catch(r){return!1}var t=window.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var uj=ye((zfr,V5e)=>{"use strict";V5e.exports=Rh;function q5e(e){var t=this;this.next=null,this.entry=null,this.finish=function(){tSt(t,e)}}var lA;Rh.WritableState=J4;var k5t={deprecate:z5e()},B5e=lH(),yR=u2().Buffer,L5t=window.Uint8Array||function(){};function P5t(e){return yR.from(e)}function I5t(e){return yR.isBuffer(e)||e instanceof L5t}var lj=nj(),R5t=aj(),D5t=R5t.getHighWaterMark,D_=v2().codes,F5t=D_.ERR_INVALID_ARG_TYPE,z5t=D_.ERR_METHOD_NOT_IMPLEMENTED,O5t=D_.ERR_MULTIPLE_CALLBACK,q5t=D_.ERR_STREAM_CANNOT_PIPE,B5t=D_.ERR_STREAM_DESTROYED,N5t=D_.ERR_STREAM_NULL_VALUES,U5t=D_.ERR_STREAM_WRITE_AFTER_END,V5t=D_.ERR_UNKNOWN_ENCODING,uA=lj.errorOrDestroy;Uy()(Rh,B5e);function G5t(){}function J4(e,t,r){lA=lA||p2(),e=e||{},typeof r!="boolean"&&(r=t instanceof lA),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=D5t(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){K5t(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new q5e(this)}J4.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(J4.prototype,"buffer",{get:k5t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var mR;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(mR=Function.prototype[Symbol.hasInstance],Object.defineProperty(Rh,Symbol.hasInstance,{value:function(t){return mR.call(this,t)?!0:this!==Rh?!1:t&&t._writableState instanceof J4}})):mR=function(t){return t instanceof this};function Rh(e){lA=lA||p2();var t=this instanceof lA;if(!t&&!mR.call(Rh,this))return new Rh(e);this._writableState=new J4(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),B5e.call(this)}Rh.prototype.pipe=function(){uA(this,new q5t)};function H5t(e,t){var r=new U5t;uA(e,r),process.nextTick(t,r)}function j5t(e,t,r,n){var i;return r===null?i=new N5t:typeof r!="string"&&!t.objectMode&&(i=new F5t("chunk",["string","Buffer"],r)),i?(uA(e,i),process.nextTick(n,i),!1):!0}Rh.prototype.write=function(e,t,r){var n=this._writableState,i=!1,a=!n.objectMode&&I5t(e);return a&&!yR.isBuffer(e)&&(e=P5t(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=G5t),n.ending?H5t(this,r):(a||j5t(this,n,e,r))&&(n.pendingcb++,i=X5t(this,n,a,e,t,r)),i};Rh.prototype.cork=function(){this._writableState.corked++};Rh.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&N5e(this,e))};Rh.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new V5t(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Rh.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function W5t(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=yR.from(t,r)),t}Object.defineProperty(Rh.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function X5t(e,t,r,n,i,a){if(!r){var o=W5t(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length{"use strict";var rSt=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};H5e.exports=qm;var G5e=hj(),fj=uj();Uy()(qm,G5e);for(cj=rSt(fj.prototype),_R=0;_R{var bR=u2(),Bm=bR.Buffer;function j5e(e,t){for(var r in e)t[r]=e[r]}Bm.from&&Bm.alloc&&Bm.allocUnsafe&&Bm.allocUnsafeSlow?W5e.exports=bR:(j5e(bR,dj),dj.Buffer=g2);function g2(e,t,r){return Bm(e,t,r)}g2.prototype=Object.create(Bm.prototype);j5e(Bm,g2);g2.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Bm(e,t,r)};g2.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Bm(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};g2.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Bm(e)};g2.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return bR.SlowBuffer(e)}});var gj=ye(Y5e=>{"use strict";var pj=X5e().Buffer,Z5e=pj.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function aSt(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function oSt(e){var t=aSt(e);if(typeof t!="string"&&(pj.isEncoding===Z5e||!Z5e(e)))throw new Error("Unknown encoding: "+e);return t||e}Y5e.StringDecoder=$4;function $4(e){this.encoding=oSt(e);var t;switch(this.encoding){case"utf16le":this.text=hSt,this.end=dSt,t=4;break;case"utf8":this.fillLast=uSt,t=4;break;case"base64":this.text=vSt,this.end=pSt,t=3;break;default:this.write=gSt,this.end=mSt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=pj.allocUnsafe(t)}$4.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function sSt(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function lSt(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function uSt(e){var t=this.lastTotal-this.lastNeed,r=lSt(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function cSt(e,t){var r=sSt(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function fSt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function hSt(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function dSt(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function vSt(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function pSt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function gSt(e){return e.toString(this.encoding)}function mSt(e){return e&&e.length?this.write(e):""}});var wR=ye((Bfr,$5e)=>{"use strict";var K5e=v2().codes.ERR_STREAM_PREMATURE_CLOSE;function ySt(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i{"use strict";var TR;function F_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bSt=wR(),z_=Symbol("lastResolve"),m2=Symbol("lastReject"),Q4=Symbol("error"),AR=Symbol("ended"),y2=Symbol("lastPromise"),mj=Symbol("handlePromise"),_2=Symbol("stream");function O_(e,t){return{value:e,done:t}}function wSt(e){var t=e[z_];if(t!==null){var r=e[_2].read();r!==null&&(e[y2]=null,e[z_]=null,e[m2]=null,t(O_(r,!1)))}}function TSt(e){process.nextTick(wSt,e)}function ASt(e,t){return function(r,n){e.then(function(){if(t[AR]){r(O_(void 0,!0));return}t[mj](r,n)},n)}}var SSt=Object.getPrototypeOf(function(){}),MSt=Object.setPrototypeOf((TR={get stream(){return this[_2]},next:function(){var t=this,r=this[Q4];if(r!==null)return Promise.reject(r);if(this[AR])return Promise.resolve(O_(void 0,!0));if(this[_2].destroyed)return new Promise(function(o,s){process.nextTick(function(){t[Q4]?s(t[Q4]):o(O_(void 0,!0))})});var n=this[y2],i;if(n)i=new Promise(ASt(n,this));else{var a=this[_2].read();if(a!==null)return Promise.resolve(O_(a,!1));i=new Promise(this[mj])}return this[y2]=i,i}},F_(TR,Symbol.asyncIterator,function(){return this}),F_(TR,"return",function(){var t=this;return new Promise(function(r,n){t[_2].destroy(null,function(i){if(i){n(i);return}r(O_(void 0,!0))})})}),TR),SSt),ESt=function(t){var r,n=Object.create(MSt,(r={},F_(r,_2,{value:t,writable:!0}),F_(r,z_,{value:null,writable:!0}),F_(r,m2,{value:null,writable:!0}),F_(r,Q4,{value:null,writable:!0}),F_(r,AR,{value:t._readableState.endEmitted,writable:!0}),F_(r,mj,{value:function(a,o){var s=n[_2].read();s?(n[y2]=null,n[z_]=null,n[m2]=null,a(O_(s,!1))):(n[z_]=a,n[m2]=o)},writable:!0}),r));return n[y2]=null,bSt(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[m2];a!==null&&(n[y2]=null,n[z_]=null,n[m2]=null,a(i)),n[Q4]=i;return}var o=n[z_];o!==null&&(n[y2]=null,n[z_]=null,n[m2]=null,o(O_(void 0,!0))),n[AR]=!0}),t.on("readable",TSt.bind(null,n)),n};Q5e.exports=ESt});var rSe=ye((Ufr,tSe)=>{tSe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var hj=ye((Gfr,hSe)=>{"use strict";hSe.exports=Bu;var cA;Bu.ReadableState=oSe;var Vfr=vb().EventEmitter,aSe=function(t,r){return t.listeners(r).length},tE=lH(),SR=u2().Buffer,CSt=window.Uint8Array||function(){};function kSt(e){return SR.from(e)}function LSt(e){return SR.isBuffer(e)||e instanceof CSt}var yj=tj(),au;yj&&yj.debuglog?au=yj.debuglog("stream"):au=function(){};var PSt=C5e(),Sj=nj(),ISt=aj(),RSt=ISt.getHighWaterMark,MR=v2().codes,DSt=MR.ERR_INVALID_ARG_TYPE,FSt=MR.ERR_STREAM_PUSH_AFTER_EOF,zSt=MR.ERR_METHOD_NOT_IMPLEMENTED,OSt=MR.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,fA,_j,xj;Uy()(Bu,tE);var eE=Sj.errorOrDestroy,bj=["error","close","destroy","pause","resume"];function qSt(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function oSe(e,t,r){cA=cA||p2(),e=e||{},typeof r!="boolean"&&(r=t instanceof cA),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=RSt(this,e,"readableHighWaterMark",r),this.buffer=new PSt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(fA||(fA=gj().StringDecoder),this.decoder=new fA(e.encoding),this.encoding=e.encoding)}function Bu(e){if(cA=cA||p2(),!(this instanceof Bu))return new Bu(e);var t=this instanceof cA;this._readableState=new oSe(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),tE.call(this)}Object.defineProperty(Bu.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Bu.prototype.destroy=Sj.destroy;Bu.prototype._undestroy=Sj.undestroy;Bu.prototype._destroy=function(e,t){t(e)};Bu.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=SR.from(e,t),t=""),n=!0),sSe(this,e,t,!1,n)};Bu.prototype.unshift=function(e){return sSe(this,e,null,!0,!1)};function sSe(e,t,r,n,i){au("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,USt(e,a);else{var o;if(i||(o=BSt(a,t)),o)eE(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==SR.prototype&&(t=kSt(t)),n)a.endEmitted?eE(e,new OSt):wj(e,a,t,!0);else if(a.ended)eE(e,new FSt);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?wj(e,a,t,!1):Aj(e,a)):wj(e,a,t,!1)}else n||(a.reading=!1,Aj(e,a))}return!a.ended&&(a.length=iSe?e=iSe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function nSe(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=NSt(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}Bu.prototype.read=function(e){au("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return au("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Tj(this):ER(this),null;if(e=nSe(e,t),e===0&&t.ended)return t.length===0&&Tj(this),null;var n=t.needReadable;au("need readable",n),(t.length===0||t.length-e0?i=cSe(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Tj(this)),i!==null&&this.emit("data",i),i};function USt(e,t){if(au("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?ER(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,lSe(e)))}}function ER(e){var t=e._readableState;au("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(au("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(lSe,e))}function lSe(e){var t=e._readableState;au("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Mj(e)}function Aj(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(VSt,e,t))}function VSt(e,t){for(;!t.reading&&!t.ended&&(t.length1&&fSe(n.pipes,e)!==-1)&&!u&&(au("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(b){au("onerror",b),_(),e.removeListener("error",h),aSe(e,"error")===0&&eE(e,b)}qSt(e,"error",h);function d(){e.removeListener("finish",v),_()}e.once("close",d);function v(){au("onfinish"),e.removeListener("close",d),_()}e.once("finish",v);function _(){au("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(au("pipe resume"),r.resume()),e};function GSt(e){return function(){var r=e._readableState;au("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&aSe(e,"data")&&(r.flowing=!0,Mj(e))}}Bu.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,au("on readable",n.length,n.reading),n.length?ER(this):n.reading||process.nextTick(HSt,this)),r};Bu.prototype.addListener=Bu.prototype.on;Bu.prototype.removeListener=function(e,t){var r=tE.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(uSe,this),r};Bu.prototype.removeAllListeners=function(e){var t=tE.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(uSe,this),t};function uSe(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function HSt(e){au("readable nexttick read 0"),e.read(0)}Bu.prototype.resume=function(){var e=this._readableState;return e.flowing||(au("resume"),e.flowing=!e.readableListening,jSt(this,e)),e.paused=!1,this};function jSt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(WSt,e,t))}function WSt(e,t){au("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Mj(e),t.flowing&&!t.reading&&e.read(0)}Bu.prototype.pause=function(){return au("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(au("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Mj(e){var t=e._readableState;for(au("flow",t.flowing);t.flowing&&e.read()!==null;);}Bu.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(au("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(au("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(s){return function(){return e[s].apply(e,arguments)}}(i));for(var a=0;a=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function Tj(e){var t=e._readableState;au("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(XSt,t,e))}function XSt(e,t){if(au("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(Bu.from=function(e,t){return xj===void 0&&(xj=rSe()),xj(Bu,e,t)});function fSe(e,t){for(var r=0,n=e.length;r{"use strict";vSe.exports=Gy;var CR=v2().codes,ZSt=CR.ERR_METHOD_NOT_IMPLEMENTED,YSt=CR.ERR_MULTIPLE_CALLBACK,KSt=CR.ERR_TRANSFORM_ALREADY_TRANSFORMING,JSt=CR.ERR_TRANSFORM_WITH_LENGTH_0,kR=p2();Uy()(Gy,kR);function $St(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new YSt);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";gSe.exports=rE;var pSe=Ej();Uy()(rE,pSe);function rE(e){if(!(this instanceof rE))return new rE(e);pSe.call(this,e)}rE.prototype._transform=function(e,t,r){r(null,e)}});var wSe=ye((Wfr,bSe)=>{"use strict";var Cj;function eMt(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var xSe=v2().codes,tMt=xSe.ERR_MISSING_ARGS,rMt=xSe.ERR_STREAM_DESTROYED;function ySe(e){if(e)throw e}function iMt(e){return e.setHeader&&typeof e.abort=="function"}function nMt(e,t,r,n){n=eMt(n);var i=!1;e.on("close",function(){i=!0}),Cj===void 0&&(Cj=wR()),Cj(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var a=!1;return function(o){if(!i&&!a){if(a=!0,iMt(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new rMt("pipe"))}}}function _Se(e){e()}function aMt(e,t){return e.pipe(t)}function oMt(e){return!e.length||typeof e[e.length-1]!="function"?ySe:e.pop()}function sMt(){for(var e=arguments.length,t=new Array(e),r=0;r0;return nMt(o,l,u,function(c){i||(i=c),c&&a.forEach(_Se),!l&&(a.forEach(_Se),n(i))})});return t.reduce(aMt)}bSe.exports=sMt});var ASe=ye((Xfr,TSe)=>{TSe.exports=K0;var kj=vb().EventEmitter,lMt=Uy();lMt(K0,kj);K0.Readable=hj();K0.Writable=uj();K0.Duplex=p2();K0.Transform=Ej();K0.PassThrough=mSe();K0.finished=wR();K0.pipeline=wSe();K0.Stream=K0;function K0(){kj.call(this)}K0.prototype.pipe=function(e,t){var r=this;function n(c){e.writable&&e.write(c)===!1&&r.pause&&r.pause()}r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}e.on("drain",i),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function l(c){if(u(),kj.listenerCount(this,"error")===0)throw c}r.on("error",l),e.on("error",l);function u(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}});var dA=ye(hu=>{var SSe=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(l){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Rj(t)?r.showHidden=t:t&&hu._extend(r,t),b2(r.showHidden)&&(r.showHidden=!1),b2(r.depth)&&(r.depth=2),b2(r.colors)&&(r.colors=!1),b2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=cMt),RR(r,e,r.depth)}hu.inspect=q_;q_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};q_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function cMt(e,t){var r=q_.styles[t];return r?"\x1B["+q_.colors[r][0]+"m"+e+"\x1B["+q_.colors[r][1]+"m":e}function fMt(e,t){return e}function hMt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function RR(e,t,r){if(e.customInspect&&t&&IR(t.inspect)&&t.inspect!==hu.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return zR(n)||(n=RR(e,n,r)),n}var i=dMt(e,t);if(i)return i;var a=Object.keys(t),o=hMt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),nE(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Lj(t);if(a.length===0){if(IR(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(iE(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(DR(t))return e.stylize(Date.prototype.toString.call(t),"date");if(nE(t))return Lj(t)}var l="",u=!1,c=["{","}"];if(ESe(t)&&(u=!0,c=["[","]"]),IR(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(iE(t)&&(l=" "+RegExp.prototype.toString.call(t)),DR(t)&&(l=" "+Date.prototype.toUTCString.call(t)),nE(t)&&(l=" "+Lj(t)),a.length===0&&(!u||t.length==0))return c[0]+l+c[1];if(r<0)return iE(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=vMt(e,t,r,o,a):h=a.map(function(d){return Ij(e,t,r,o,d,u)}),e.seen.pop(),pMt(h,l,c)}function dMt(e,t){if(b2(t))return e.stylize("undefined","undefined");if(zR(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(CSe(t))return e.stylize(""+t,"number");if(Rj(t))return e.stylize(""+t,"boolean");if(FR(t))return e.stylize("null","null")}function Lj(e){return"["+Error.prototype.toString.call(e)+"]"}function vMt(e,t,r,n,i){for(var a=[],o=0,s=t.length;o-1&&(a?s=s.split(` `).map(function(u){return" "+u}).join(` `).slice(2):s=` `+s.split(` `).map(function(u){return" "+u}).join(` -`))):s=e.stylize("[Circular]","special")),b2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function cMt(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` +`))):s=e.stylize("[Circular]","special")),b2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function pMt(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` `)>=0&&n++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(t===""?"":t+` `)+" "+e.join(`, - `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}hu.types=XH();function MSe(e){return Array.isArray(e)}hu.isArray=MSe;function Ij(e){return typeof e=="boolean"}hu.isBoolean=Ij;function FR(e){return e===null}hu.isNull=FR;function fMt(e){return e==null}hu.isNullOrUndefined=fMt;function ESe(e){return typeof e=="number"}hu.isNumber=ESe;function zR(e){return typeof e=="string"}hu.isString=zR;function hMt(e){return typeof e=="symbol"}hu.isSymbol=hMt;function b2(e){return e===void 0}hu.isUndefined=b2;function eE(e){return hA(e)&&Rj(e)==="[object RegExp]"}hu.isRegExp=eE;hu.types.isRegExp=eE;function hA(e){return typeof e=="object"&&e!==null}hu.isObject=hA;function DR(e){return hA(e)&&Rj(e)==="[object Date]"}hu.isDate=DR;hu.types.isDate=DR;function tE(e){return hA(e)&&(Rj(e)==="[object Error]"||e instanceof Error)}hu.isError=tE;hu.types.isNativeError=tE;function IR(e){return typeof e=="function"}hu.isFunction=IR;function dMt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}hu.isPrimitive=dMt;hu.isBuffer=ZH();function Rj(e){return Object.prototype.toString.call(e)}function Lj(e){return e<10?"0"+e.toString(10):e.toString(10)}var vMt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function pMt(){var e=new Date,t=[Lj(e.getHours()),Lj(e.getMinutes()),Lj(e.getSeconds())].join(":");return[e.getDate(),vMt[e.getMonth()],t].join(" ")}hu.log=function(){console.log("%s - %s",pMt(),hu.format.apply(hu,arguments))};hu.inherits=Uy();hu._extend=function(e,t){if(!t||!hA(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function CSe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var x2=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;hu.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(x2&&t[x2]){var r=t[x2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,x2,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,a=new Promise(function(l,u){n=l,i=u}),o=[],s=0;s{"use strict";function B_(e){"@babel/helpers - typeof";return B_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B_(e)}function kSe(e,t){for(var r=0;r2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function EMt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function CMt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function kMt(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}rE("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);rE("ERR_INVALID_ARG_TYPE",function(e,t,r){vA===void 0&&(vA=iE()),vA(typeof e=="string","'name' must be a string");var n;typeof t=="string"&&EMt(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(CMt(e," argument"))i="The ".concat(e," ").concat(n," ").concat(LSe(t,"type"));else{var a=kMt(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(LSe(t,"type"))}return i+=". Received type ".concat(B_(r)),i},TypeError);rE("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";Dj===void 0&&(Dj=dA());var n=Dj.inspect(t);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(n)},TypeError,RangeError);rE("ERR_INVALID_RETURN_VALUE",function(e,t,r){var n;return r&&r.constructor&&r.constructor.name?n="instance of ".concat(r.constructor.name):n="type ".concat(B_(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(n,".")},TypeError);rE("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var n="The ",i=t.length;switch(t=t.map(function(a){return'"'.concat(a,'"')}),i){case 1:n+="".concat(t[0]," argument");break;case 2:n+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:n+=t.slice(0,i-1).join(", "),n+=", and ".concat(t[i-1]," arguments");break}return"".concat(n," must be specified")},TypeError);ISe.exports.codes=PSe});var VSe=ye((Wfr,USe)=>{"use strict";function RSe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function DSe(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function NMt(e,t){if(t=Math.floor(t),e.length==0||t==0)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length),e}var Hg="",nE="",aE="",xv="",w2={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},UMt=10;function OSe(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(n){r[n]=e[n]}),Object.defineProperty(r,"message",{value:e.message}),r}function oE(e){return Bj(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function VMt(e,t,r){var n="",i="",a=0,o="",s=!1,l=oE(e),u=l.split(` -`),c=oE(t).split(` -`),f=0,h="";if(r==="strictEqual"&&Rp(e)==="object"&&Rp(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),u.length===1&&c.length===1&&u[0]!==c[0]){var d=u[0].length+c[0].length;if(d<=UMt){if((Rp(e)!=="object"||e===null)&&(Rp(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(w2[r],` + `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}hu.types=ZH();function ESe(e){return Array.isArray(e)}hu.isArray=ESe;function Rj(e){return typeof e=="boolean"}hu.isBoolean=Rj;function FR(e){return e===null}hu.isNull=FR;function gMt(e){return e==null}hu.isNullOrUndefined=gMt;function CSe(e){return typeof e=="number"}hu.isNumber=CSe;function zR(e){return typeof e=="string"}hu.isString=zR;function mMt(e){return typeof e=="symbol"}hu.isSymbol=mMt;function b2(e){return e===void 0}hu.isUndefined=b2;function iE(e){return hA(e)&&Dj(e)==="[object RegExp]"}hu.isRegExp=iE;hu.types.isRegExp=iE;function hA(e){return typeof e=="object"&&e!==null}hu.isObject=hA;function DR(e){return hA(e)&&Dj(e)==="[object Date]"}hu.isDate=DR;hu.types.isDate=DR;function nE(e){return hA(e)&&(Dj(e)==="[object Error]"||e instanceof Error)}hu.isError=nE;hu.types.isNativeError=nE;function IR(e){return typeof e=="function"}hu.isFunction=IR;function yMt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}hu.isPrimitive=yMt;hu.isBuffer=YH();function Dj(e){return Object.prototype.toString.call(e)}function Pj(e){return e<10?"0"+e.toString(10):e.toString(10)}var _Mt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function xMt(){var e=new Date,t=[Pj(e.getHours()),Pj(e.getMinutes()),Pj(e.getSeconds())].join(":");return[e.getDate(),_Mt[e.getMonth()],t].join(" ")}hu.log=function(){console.log("%s - %s",xMt(),hu.format.apply(hu,arguments))};hu.inherits=Uy();hu._extend=function(e,t){if(!t||!hA(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function kSe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var x2=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;hu.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(x2&&t[x2]){var r=t[x2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,x2,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,a=new Promise(function(l,u){n=l,i=u}),o=[],s=0;s{"use strict";function B_(e){"@babel/helpers - typeof";return B_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B_(e)}function LSe(e,t){for(var r=0;r2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function IMt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function RMt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function DMt(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}aE("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);aE("ERR_INVALID_ARG_TYPE",function(e,t,r){vA===void 0&&(vA=oE()),vA(typeof e=="string","'name' must be a string");var n;typeof t=="string"&&IMt(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(RMt(e," argument"))i="The ".concat(e," ").concat(n," ").concat(PSe(t,"type"));else{var a=DMt(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(PSe(t,"type"))}return i+=". Received type ".concat(B_(r)),i},TypeError);aE("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";Fj===void 0&&(Fj=dA());var n=Fj.inspect(t);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(n)},TypeError,RangeError);aE("ERR_INVALID_RETURN_VALUE",function(e,t,r){var n;return r&&r.constructor&&r.constructor.name?n="instance of ".concat(r.constructor.name):n="type ".concat(B_(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(n,".")},TypeError);aE("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var n="The ",i=t.length;switch(t=t.map(function(a){return'"'.concat(a,'"')}),i){case 1:n+="".concat(t[0]," argument");break;case 2:n+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:n+=t.slice(0,i-1).join(", "),n+=", and ".concat(t[i-1]," arguments");break}return"".concat(n," must be specified")},TypeError);RSe.exports.codes=ISe});var GSe=ye((Kfr,VSe)=>{"use strict";function DSe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function FSe(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function jMt(e,t){if(t=Math.floor(t),e.length==0||t==0)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length),e}var Hg="",sE="",lE="",xv="",w2={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},WMt=10;function qSe(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(n){r[n]=e[n]}),Object.defineProperty(r,"message",{value:e.message}),r}function uE(e){return Nj(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function XMt(e,t,r){var n="",i="",a=0,o="",s=!1,l=uE(e),u=l.split(` +`),c=uE(t).split(` +`),f=0,h="";if(r==="strictEqual"&&Rp(e)==="object"&&Rp(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),u.length===1&&c.length===1&&u[0]!==c[0]){var d=u[0].length+c[0].length;if(d<=WMt){if((Rp(e)!=="object"||e===null)&&(Rp(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(w2[r],` `)+"".concat(u[0]," !== ").concat(c[0],` `)}else if(r!=="strictEqualObject"){var v=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(d2&&(h=` - `.concat(NMt(" ",f),"^"),f=0)}}}for(var x=u[u.length-1],b=c[c.length-1];x===b&&(f++<2?o=` - `.concat(x).concat(o):n=x,u.pop(),c.pop(),!(u.length===0||c.length===0));)x=u[u.length-1],b=c[c.length-1];var p=Math.max(u.length,c.length);if(p===0){var C=l.split(` + `.concat(jMt(" ",f),"^"),f=0)}}}for(var _=u[u.length-1],b=c[c.length-1];_===b&&(f++<2?o=` + `.concat(_).concat(o):n=_,u.pop(),c.pop(),!(u.length===0||c.length===0));)_=u[u.length-1],b=c[c.length-1];var p=Math.max(u.length,c.length);if(p===0){var C=l.split(` `);if(C.length>30)for(C[26]="".concat(Hg,"...").concat(xv);C.length>27;)C.pop();return"".concat(w2.notIdentical,` `).concat(C.join(` @@ -52,53 +52,53 @@ `)}f>3&&(o=` `.concat(Hg,"...").concat(xv).concat(o),s=!0),n!==""&&(o=` `.concat(n).concat(o),n="");var E=0,A=w2[r]+` -`.concat(nE,"+ actual").concat(xv," ").concat(aE,"- expected").concat(xv),L=" ".concat(Hg,"...").concat(xv," Lines skipped");for(f=0;f1&&f>2&&(_>4?(i+=` -`.concat(Hg,"...").concat(xv),s=!0):_>3&&(i+=` +`.concat(sE,"+ actual").concat(xv," ").concat(lE,"- expected").concat(xv),L=" ".concat(Hg,"...").concat(xv," Lines skipped");for(f=0;f1&&f>2&&(x>4?(i+=` +`.concat(Hg,"...").concat(xv),s=!0):x>3&&(i+=` `.concat(c[f-2]),E++),i+=` `.concat(c[f-1]),E++),a=f,n+=` -`.concat(aE,"-").concat(xv," ").concat(c[f]),E++;else if(c.length1&&f>2&&(_>4?(i+=` -`.concat(Hg,"...").concat(xv),s=!0):_>3&&(i+=` +`.concat(lE,"-").concat(xv," ").concat(c[f]),E++;else if(c.length1&&f>2&&(x>4?(i+=` +`.concat(Hg,"...").concat(xv),s=!0):x>3&&(i+=` `.concat(u[f-2]),E++),i+=` `.concat(u[f-1]),E++),a=f,i+=` -`.concat(nE,"+").concat(xv," ").concat(u[f]),E++;else{var k=c[f],M=u[f],g=M!==k&&(!zSe(M,",")||M.slice(0,-1)!==k);g&&zSe(k,",")&&k.slice(0,-1)===M&&(g=!1,M+=","),g?(_>1&&f>2&&(_>4?(i+=` -`.concat(Hg,"...").concat(xv),s=!0):_>3&&(i+=` +`.concat(sE,"+").concat(xv," ").concat(u[f]),E++;else{var k=c[f],M=u[f],g=M!==k&&(!OSe(M,",")||M.slice(0,-1)!==k);g&&OSe(k,",")&&k.slice(0,-1)===M&&(g=!1,M+=","),g?(x>1&&f>2&&(x>4?(i+=` +`.concat(Hg,"...").concat(xv),s=!0):x>3&&(i+=` `.concat(u[f-2]),E++),i+=` `.concat(u[f-1]),E++),a=f,i+=` -`.concat(nE,"+").concat(xv," ").concat(M),n+=` -`.concat(aE,"-").concat(xv," ").concat(k),E+=2):(i+=n,n="",(_===1||f===0)&&(i+=` +`.concat(sE,"+").concat(xv," ").concat(M),n+=` +`.concat(lE,"-").concat(xv," ").concat(k),E+=2):(i+=n,n="",(x===1||f===0)&&(i+=` `.concat(M),E++))}if(E>20&&f30)for(d[26]="".concat(Hg,"...").concat(xv);d.length>27;)d.pop();d.length===1?a=r.call(this,"".concat(h," ").concat(d[0])):a=r.call(this,"".concat(h,` `).concat(d.join(` `),` -`))}else{var v=oE(u),x="",b=w2[s];s==="notDeepEqual"||s==="notEqual"?(v="".concat(w2[s],` +`))}else{var v=uE(u),_="",b=w2[s];s==="notDeepEqual"||s==="notEqual"?(v="".concat(w2[s],` -`).concat(v),v.length>1024&&(v="".concat(v.slice(0,1021),"..."))):(x="".concat(oE(c)),v.length>512&&(v="".concat(v.slice(0,509),"...")),x.length>512&&(x="".concat(x.slice(0,509),"...")),s==="deepEqual"||s==="equal"?v="".concat(b,` +`).concat(v),v.length>1024&&(v="".concat(v.slice(0,1021),"..."))):(_="".concat(uE(c)),v.length>512&&(v="".concat(v.slice(0,509),"...")),_.length>512&&(_="".concat(_.slice(0,509),"...")),s==="deepEqual"||s==="equal"?v="".concat(b,` `).concat(v,` should equal -`):x=" ".concat(s," ").concat(x)),a=r.call(this,"".concat(v).concat(x))}return Error.stackTraceLimit=f,a.generatedMessage=!o,Object.defineProperty(Oj(a),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),a.code="ERR_ASSERTION",a.actual=u,a.expected=c,a.operator=s,Error.captureStackTrace&&Error.captureStackTrace(Oj(a),l),a.stack,a.name="AssertionError",BSe(a)}return IMt(n,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(a,o){return Bj(this,DSe(DSe({},o),{},{customInspect:!1,depth:0}))}}]),n}(qj(Error),Bj.custom);USe.exports=GMt});var Nj=ye((Xfr,HSe)=>{"use strict";var GSe=Object.prototype.toString;HSe.exports=function(t){var r=GSe.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&GSe.call(t.callee)==="[object Function]"),n}});var QSe=ye((Zfr,$Se)=>{"use strict";var JSe;Object.keys||(uE=Object.prototype.hasOwnProperty,Uj=Object.prototype.toString,jSe=Nj(),Vj=Object.prototype.propertyIsEnumerable,WSe=!Vj.call({toString:null},"toString"),XSe=Vj.call(function(){},"prototype"),cE=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],BR=function(e){var t=e.constructor;return t&&t.prototype===e},ZSe={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},YSe=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!ZSe["$"+e]&&uE.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{BR(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),KSe=function(e){if(typeof window=="undefined"||!YSe)return BR(e);try{return BR(e)}catch(t){return!1}},JSe=function(t){var r=t!==null&&typeof t=="object",n=Uj.call(t)==="[object Function]",i=jSe(t),a=r&&Uj.call(t)==="[object String]",o=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var s=XSe&&n;if(a&&t.length>0&&!uE.call(t,0))for(var l=0;l0)for(var u=0;u{"use strict";var HMt=Array.prototype.slice,jMt=Nj(),eMe=Object.keys,NR=eMe?function(t){return eMe(t)}:QSe(),tMe=Object.keys;NR.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return jMt(n)?tMe(HMt.call(n)):tMe(n)})}else Object.keys=NR;return Object.keys||NR};rMe.exports=NR});var lMe=ye((Kfr,sMe)=>{"use strict";var WMt=Gj(),aMe=U8()(),oMe=nA(),iMe=Object,XMt=oMe("Array.prototype.push"),nMe=oMe("Object.prototype.propertyIsEnumerable"),ZMt=aMe?Object.getOwnPropertySymbols:null;sMe.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=iMe(t);if(arguments.length===1)return n;for(var i=1;i{"use strict";var Hj=lMe(),YMt=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n{"use strict";var fMe=function(e){return e!==e};hMe.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||fMe(t)&&fMe(r))}});var UR=ye((Qfr,dMe)=>{"use strict";var JMt=jj();dMe.exports=function(){return typeof Object.is=="function"?Object.is:JMt}});var fE=ye((ehr,mMe)=>{"use strict";var $Mt=Gj(),QMt=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",e4t=Object.prototype.toString,t4t=Array.prototype.concat,vMe=Object.defineProperty,r4t=function(e){return typeof e=="function"&&e4t.call(e)==="[object Function]"},i4t=EH()(),pMe=vMe&&i4t,n4t=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!r4t(n)||!n())return}pMe?vMe(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},gMe=function(e,t){var r=arguments.length>2?arguments[2]:{},n=$Mt(t);QMt&&(n=t4t.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";var a4t=UR(),o4t=fE();yMe.exports=function(){var t=a4t();return o4t(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var TMe=ye((rhr,wMe)=>{"use strict";var s4t=fE(),l4t=V4(),u4t=jj(),xMe=UR(),c4t=_Me(),bMe=l4t(xMe(),Object);s4t(bMe,{getPolyfill:xMe,implementation:u4t,shim:c4t});wMe.exports=bMe});var Wj=ye((ihr,AMe)=>{"use strict";AMe.exports=function(t){return t!==t}});var Xj=ye((nhr,SMe)=>{"use strict";var f4t=Wj();SMe.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:f4t}});var EMe=ye((ahr,MMe)=>{"use strict";var h4t=fE(),d4t=Xj();MMe.exports=function(){var t=d4t();return h4t(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var PMe=ye((ohr,LMe)=>{"use strict";var v4t=V4(),p4t=fE(),g4t=Wj(),CMe=Xj(),m4t=EMe(),kMe=v4t(CMe(),Number);p4t(kMe,{getPolyfill:CMe,implementation:g4t,shim:m4t});LMe.exports=kMe});var JMe=ye((shr,KMe)=>{"use strict";function IMe(e,t){return b4t(e)||x4t(e,t)||_4t(e,t)||y4t()}function y4t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _4t(e,t){if(e){if(typeof e=="string")return RMe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return RMe(e,t)}}function RMe(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r10)return!0;for(var t=0;t57)return!0}return e.length===10&&e>=Math.pow(2,32)}function HR(e){return Object.keys(e).filter(L4t).concat(WR(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function WMe(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i{"use strict";function jg(e){"@babel/helpers - typeof";return jg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jg(e)}function $Me(e,t){for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i{"use strict";var HSe=Object.prototype.toString;jSe.exports=function(t){var r=HSe.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&HSe.call(t.callee)==="[object Function]"),n}});var eMe=ye(($fr,QSe)=>{"use strict";var $Se;Object.keys||(hE=Object.prototype.hasOwnProperty,Vj=Object.prototype.toString,WSe=Uj(),Gj=Object.prototype.propertyIsEnumerable,XSe=!Gj.call({toString:null},"toString"),ZSe=Gj.call(function(){},"prototype"),dE=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],BR=function(e){var t=e.constructor;return t&&t.prototype===e},YSe={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},KSe=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!YSe["$"+e]&&hE.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{BR(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),JSe=function(e){if(typeof window=="undefined"||!KSe)return BR(e);try{return BR(e)}catch(t){return!1}},$Se=function(t){var r=t!==null&&typeof t=="object",n=Vj.call(t)==="[object Function]",i=WSe(t),a=r&&Vj.call(t)==="[object String]",o=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var s=ZSe&&n;if(a&&t.length>0&&!hE.call(t,0))for(var l=0;l0)for(var u=0;u{"use strict";var YMt=Array.prototype.slice,KMt=Uj(),tMe=Object.keys,NR=tMe?function(t){return tMe(t)}:eMe(),rMe=Object.keys;NR.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return KMt(n)?rMe(YMt.call(n)):rMe(n)})}else Object.keys=NR;return Object.keys||NR};iMe.exports=NR});var uMe=ye((ehr,lMe)=>{"use strict";var JMt=Hj(),oMe=U8()(),sMe=nA(),nMe=Object,$Mt=sMe("Array.prototype.push"),aMe=sMe("Object.prototype.propertyIsEnumerable"),QMt=oMe?Object.getOwnPropertySymbols:null;lMe.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=nMe(t);if(arguments.length===1)return n;for(var i=1;i{"use strict";var jj=uMe(),e4t=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n{"use strict";var hMe=function(e){return e!==e};dMe.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||hMe(t)&&hMe(r))}});var UR=ye((ihr,vMe)=>{"use strict";var r4t=Wj();vMe.exports=function(){return typeof Object.is=="function"?Object.is:r4t}});var vE=ye((nhr,yMe)=>{"use strict";var i4t=Hj(),n4t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",a4t=Object.prototype.toString,o4t=Array.prototype.concat,pMe=Object.defineProperty,s4t=function(e){return typeof e=="function"&&a4t.call(e)==="[object Function]"},l4t=CH()(),gMe=pMe&&l4t,u4t=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!s4t(n)||!n())return}gMe?pMe(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},mMe=function(e,t){var r=arguments.length>2?arguments[2]:{},n=i4t(t);n4t&&(n=o4t.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";var c4t=UR(),f4t=vE();_Me.exports=function(){var t=c4t();return f4t(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var AMe=ye((ohr,TMe)=>{"use strict";var h4t=vE(),d4t=j4(),v4t=Wj(),bMe=UR(),p4t=xMe(),wMe=d4t(bMe(),Object);h4t(wMe,{getPolyfill:bMe,implementation:v4t,shim:p4t});TMe.exports=wMe});var Xj=ye((shr,SMe)=>{"use strict";SMe.exports=function(t){return t!==t}});var Zj=ye((lhr,MMe)=>{"use strict";var g4t=Xj();MMe.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:g4t}});var CMe=ye((uhr,EMe)=>{"use strict";var m4t=vE(),y4t=Zj();EMe.exports=function(){var t=y4t();return m4t(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var IMe=ye((chr,PMe)=>{"use strict";var _4t=j4(),x4t=vE(),b4t=Xj(),kMe=Zj(),w4t=CMe(),LMe=_4t(kMe(),Number);x4t(LMe,{getPolyfill:kMe,implementation:b4t,shim:w4t});PMe.exports=LMe});var $Me=ye((fhr,JMe)=>{"use strict";function RMe(e,t){return M4t(e)||S4t(e,t)||A4t(e,t)||T4t()}function T4t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A4t(e,t){if(e){if(typeof e=="string")return DMe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return DMe(e,t)}}function DMe(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r10)return!0;for(var t=0;t57)return!0}return e.length===10&&e>=Math.pow(2,32)}function HR(e){return Object.keys(e).filter(F4t).concat(WR(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function XMe(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i{"use strict";function jg(e){"@babel/helpers - typeof";return jg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jg(e)}function QMe(e,t){for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i{var gE=1e3,mE=gE*60,yE=mE*60,_E=yE*24,rEt=_E*365.25;g4e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return iEt(e);if(r==="number"&&isNaN(e)===!1)return t.long?aEt(e):nEt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function iEt(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*rEt;case"days":case"day":case"d":return r*_E;case"hours":case"hour":case"hrs":case"hr":case"h":return r*yE;case"minutes":case"minute":case"mins":case"min":case"m":return r*mE;case"seconds":case"second":case"secs":case"sec":case"s":return r*gE;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function nEt(e){return e>=_E?Math.round(e/_E)+"d":e>=yE?Math.round(e/yE)+"h":e>=mE?Math.round(e/mE)+"m":e>=gE?Math.round(e/gE)+"s":e+"ms"}function aEt(e){return eD(e,_E,"day")||eD(e,yE,"hour")||eD(e,mE,"minute")||eD(e,gE,"second")||e+" ms"}function eD(e,t,r){if(!(e{Lc=y4e.exports=eW.debug=eW.default=eW;Lc.coerce=cEt;Lc.disable=lEt;Lc.enable=sEt;Lc.enabled=uEt;Lc.humanize=m4e();Lc.names=[];Lc.skips=[];Lc.formatters={};var Qj;function oEt(e){var t=0,r;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return Lc.colors[Math.abs(t)%Lc.colors.length]}function eW(e){function t(){if(t.enabled){var r=t,n=+new Date,i=n-(Qj||n);r.diff=i,r.prev=Qj,r.curr=n,Qj=n;for(var a=new Array(arguments.length),o=0;o{sp=b4e.exports=_4e();sp.log=dEt;sp.formatArgs=hEt;sp.save=vEt;sp.load=x4e;sp.useColors=fEt;sp.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:pEt();sp.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function fEt(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}sp.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function hEt(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+sp.humanize(this.diff),!!t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(a){a!=="%%"&&(n++,a==="%c"&&(i=n))}),e.splice(i,0,r)}}function dEt(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function vEt(e){try{e==null?sp.storage.removeItem("debug"):sp.storage.debug=e}catch(t){}}function x4e(){var e;try{e=sp.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}sp.enable(x4e());function pEt(){try{return window.localStorage}catch(e){}}});var L4e=ye((chr,k4e)=>{var gA=iE(),G_=w4e()("stream-parser");k4e.exports=mEt;var A4e=-1,tD=0,gEt=1,S4e=2;function mEt(e){var t=e&&typeof e._transform=="function",r=e&&typeof e._write=="function";if(!t&&!r)throw new Error("must pass a Writable or Transform stream in");G_("extending Parser into stream"),e._bytes=yEt,e._skipBytes=_Et,t&&(e._passthrough=xEt),t?e._transform=wEt:e._write=bEt}function xE(e){G_("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=A4e,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function yEt(e,t){gA(!this._parserCallback,'there is already a "callback" set!'),gA(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||xE(this),G_("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=tD}function _Et(e,t){gA(!this._parserCallback,'there is already a "callback" set!'),gA(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||xE(this),G_("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=gEt}function xEt(e,t){gA(!this._parserCallback,'There is already a "callback" set!'),gA(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||xE(this),G_("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=S4e}function bEt(e,t,r){this._parserInit||xE(this),G_("write(%o bytes)",e.length),typeof t=="function"&&(r=t),E4e(this,e,null,r)}function wEt(e,t,r){this._parserInit||xE(this),G_("transform(%o bytes)",e.length),typeof t!="function"&&(t=this._parserOutput),E4e(this,e,t,r)}function M4e(e,t,r,n){return e._parserBytesLeft<=0?n(new Error("got data but not currently parsing anything")):t.length<=e._parserBytesLeft?function(){return T4e(e,t,r,n)}:function(){var i=t.slice(0,e._parserBytesLeft);return T4e(e,i,r,function(a){if(a)return n(a);if(t.length>i.length)return function(){return M4e(e,t.slice(i.length),r,n)}})}}function T4e(e,t,r,n){if(e._parserBytesLeft-=t.length,G_("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===tD?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===S4e&&r(t),e._parserBytesLeft===0){var i=e._parserCallback;if(i&&e._parserState===tD&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==tD&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=A4e,e._parserBuffers.splice(0),i){var a=[];t&&a.push(t),r&&a.push(r);var o=i.length>a.length;o&&a.push(C4e(n));var s=i.apply(e,a);if(!o||n===s)return n}}else return n}var E4e=C4e(M4e);function C4e(e){return function(){for(var t=e.apply(this,arguments);typeof t=="function";)t=t();return t}}});var rc=ye(Hy=>{"use strict";var P4e=TSe().Transform,TEt=L4e();function bE(){P4e.call(this,{readableObjectMode:!0})}bE.prototype=Object.create(P4e.prototype);bE.prototype.constructor=bE;TEt(bE.prototype);Hy.ParserStream=bE;Hy.sliceEq=function(e,t,r){for(var n=t,i=0;i{"use strict";var mA=rc().readUInt16BE,rW=rc().readUInt32BE;function wE(e,t){if(e.length<4+t)return null;var r=rW(e,t);return e.length>4&15,n=e[4]&15,i=e[5]>>4&15,a=mA(e,6),o=8,s=0;sa.width||i.width===a.width&&i.height>a.height?i:a}),r=e.reduce(function(i,a){return i.height>a.height||i.height===a.height&&i.width>a.width?i:a}),n;return t.width>r.height||t.width===r.height&&t.height>r.width?n=t:n=r,n}iD.exports.readSizeFromMeta=function(e){var t={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(CEt(e,t),!!t.sizes.length){var r=kEt(t.sizes),n=1;t.transforms.forEach(function(a){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},s={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(a.type==="imir"&&(a.value===0?n=s[n]:(n=s[n],n=o[n],n=o[n])),a.type==="irot")for(var l=0;l{"use strict";function nD(e,t){var r=new Error(e);return r.code=t,r}function LEt(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}function jy(e,t,r){this.input=e.subarray(t,r),this.start=t;var n=String.fromCharCode.apply(null,this.input.subarray(0,4));if(n!=="II*\0"&&n!=="MM\0*")throw nD("invalid TIFF signature","EBADDATA");this.big_endian=n[0]==="M"}jy.prototype.each=function(e){this.aborted=!1;var t=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:t}];this.ifds_to_read.length>0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,e)}};jy.prototype.read_uint16=function(e){var t=this.input;if(e+2>t.length)throw nD("unexpected EOF","EBADDATA");return this.big_endian?t[e]*256+t[e+1]:t[e]+t[e+1]*256};jy.prototype.read_uint32=function(e){var t=this.input;if(e+4>t.length)throw nD("unexpected EOF","EBADDATA");return this.big_endian?t[e]*16777216+t[e+1]*65536+t[e+2]*256+t[e+3]:t[e]+t[e+1]*256+t[e+2]*65536+t[e+3]*16777216};jy.prototype.is_subifd_link=function(e,t){return e===0&&t===34665||e===0&&t===34853||e===34665&&t===40965};jy.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}};jy.prototype.exif_format_read=function(e,t){var r;switch(e){case 1:case 2:return r=this.input[t],r;case 6:return r=this.input[t],r|(r&128)*33554430;case 3:return r=this.read_uint16(t),r;case 8:return r=this.read_uint16(t),r|(r&32768)*131070;case 4:return r=this.read_uint32(t),r;case 9:return r=this.read_uint32(t),r|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};jy.prototype.scan_ifd=function(e,t,r){var n=this.read_uint16(t);t+=2;for(var i=0;ithis.input.length)throw nD("unexpected EOF","EBADDATA");for(var h=[],d=c,v=0;v0&&(this.ifds_to_read.push({id:a,offset:h[0]}),f=!0);var b={is_big_endian:this.big_endian,ifd:e,tag:a,format:o,count:s,entry_offset:t+this.start,data_length:u,data_offset:c+this.start,value:h,is_subifd_link:f};if(r(b)===!1){this.aborted=!0;return}t+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(t)})};iW.exports.ExifParser=jy;iW.exports.get_orientation=function(e){var t=0;try{return new jy(e,0,e.length).each(function(r){if(r.ifd===0&&r.tag===274&&Array.isArray(r.value))return t=r.value[0],!1}),t}catch(r){return-1}}});var D4e=ye((vhr,R4e)=>{"use strict";var PEt=rc().str2arr,IEt=rc().sliceEq,REt=rc().readUInt32BE,oD=I4e(),DEt=aD(),FEt=PEt("ftyp");R4e.exports=function(e){if(IEt(e,4,FEt)){var t=oD.unbox(e,0);if(t){var r=oD.getMimeType(t.data);if(r){for(var n,i=t.end;;){var a=oD.unbox(e,i);if(!a)break;if(i=a.end,a.boxtype==="mdat")return;if(a.boxtype==="meta"){n=a.data;break}}if(n){var o=oD.readSizeFromMeta(n);if(o){var s={width:o.width,height:o.height,type:r.type,mime:r.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(s.variants=o.variants),o.orientation&&(s.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var l=REt(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+l+4,o.exif_location.offset+o.exif_location.length),c=DEt.get_orientation(u);c>0&&(s.orientation=c)}return s}}}}}}});var O4e=ye((phr,z4e)=>{"use strict";var zEt=rc().str2arr,OEt=rc().sliceEq,F4e=rc().readUInt16LE,qEt=zEt("BM");z4e.exports=function(e){if(!(e.length<26)&&OEt(e,0,qEt))return{width:F4e(e,18),height:F4e(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var V4e=ye((ghr,U4e)=>{"use strict";var N4e=rc().str2arr,q4e=rc().sliceEq,B4e=rc().readUInt16LE,BEt=N4e("GIF87a"),NEt=N4e("GIF89a");U4e.exports=function(e){if(!(e.length<10)&&!(!q4e(e,0,BEt)&&!q4e(e,0,NEt)))return{width:B4e(e,6),height:B4e(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var j4e=ye((mhr,H4e)=>{"use strict";var nW=rc().readUInt16LE,UEt=0,VEt=1,G4e=16;H4e.exports=function(e){var t=nW(e,0),r=nW(e,2),n=nW(e,4);if(!(t!==UEt||r!==VEt||!n)){for(var i=[],a={width:0,height:0},o=0;oa.width||l>a.height)&&(a=u)}return{width:a.width,height:a.height,variants:i,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var X4e=ye((yhr,W4e)=>{"use strict";var aW=rc().readUInt16BE,GEt=rc().str2arr,HEt=rc().sliceEq,jEt=aD(),WEt=GEt("Exif\0\0");W4e.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var t=2;;){for(;;){if(e.length-t<2)return;if(e[t++]===255)break}for(var r=e[t++],n;r===255;)r=e[t++];if(208<=r&&r<=217||r===1)n=0;else if(192<=r&&r<=254){if(e.length-t<2)return;n=aW(e,t)-2,t+=2}else return;if(r===217||r===218)return;var i;if(r===225&&n>=10&&HEt(e,t,WEt)&&(i=jEt.get_orientation(e.slice(t+6,t+n))),n>=5&&192<=r&&r<=207&&r!==196&&r!==200&&r!==204){if(e.length-t0&&(a.orientation=i),a}t+=n}}});var $4e=ye((_hr,J4e)=>{"use strict";var K4e=rc().str2arr,Z4e=rc().sliceEq,Y4e=rc().readUInt32BE,XEt=K4e(`\x89PNG\r +`));var s=new V_({actual:e,expected:t,message:r,operator:i,stackStartFn:n});throw s.generatedMessage=o,s}}Mf.match=function e(t,r,n){v4e(t,r,n,e,"match")};Mf.doesNotMatch=function e(t,r,n){v4e(t,r,n,e,"doesNotMatch")};function p4e(){for(var e=arguments.length,t=new Array(e),r=0;r{var _E=1e3,xE=_E*60,bE=xE*60,wE=bE*24,sEt=wE*365.25;m4e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return lEt(e);if(r==="number"&&isNaN(e)===!1)return t.long?cEt(e):uEt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function lEt(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*sEt;case"days":case"day":case"d":return r*wE;case"hours":case"hour":case"hrs":case"hr":case"h":return r*bE;case"minutes":case"minute":case"mins":case"min":case"m":return r*xE;case"seconds":case"second":case"secs":case"sec":case"s":return r*_E;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function uEt(e){return e>=wE?Math.round(e/wE)+"d":e>=bE?Math.round(e/bE)+"h":e>=xE?Math.round(e/xE)+"m":e>=_E?Math.round(e/_E)+"s":e+"ms"}function cEt(e){return eD(e,wE,"day")||eD(e,bE,"hour")||eD(e,xE,"minute")||eD(e,_E,"second")||e+" ms"}function eD(e,t,r){if(!(e{Lc=_4e.exports=tW.debug=tW.default=tW;Lc.coerce=pEt;Lc.disable=dEt;Lc.enable=hEt;Lc.enabled=vEt;Lc.humanize=y4e();Lc.names=[];Lc.skips=[];Lc.formatters={};var eW;function fEt(e){var t=0,r;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return Lc.colors[Math.abs(t)%Lc.colors.length]}function tW(e){function t(){if(t.enabled){var r=t,n=+new Date,i=n-(eW||n);r.diff=i,r.prev=eW,r.curr=n,eW=n;for(var a=new Array(arguments.length),o=0;o{sp=w4e.exports=x4e();sp.log=yEt;sp.formatArgs=mEt;sp.save=_Et;sp.load=b4e;sp.useColors=gEt;sp.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:xEt();sp.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function gEt(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}sp.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function mEt(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+sp.humanize(this.diff),!!t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(a){a!=="%%"&&(n++,a==="%c"&&(i=n))}),e.splice(i,0,r)}}function yEt(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function _Et(e){try{e==null?sp.storage.removeItem("debug"):sp.storage.debug=e}catch(t){}}function b4e(){var e;try{e=sp.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}sp.enable(b4e());function xEt(){try{return window.localStorage}catch(e){}}});var P4e=ye((vhr,L4e)=>{var gA=oE(),G_=T4e()("stream-parser");L4e.exports=wEt;var S4e=-1,tD=0,bEt=1,M4e=2;function wEt(e){var t=e&&typeof e._transform=="function",r=e&&typeof e._write=="function";if(!t&&!r)throw new Error("must pass a Writable or Transform stream in");G_("extending Parser into stream"),e._bytes=TEt,e._skipBytes=AEt,t&&(e._passthrough=SEt),t?e._transform=EEt:e._write=MEt}function TE(e){G_("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=S4e,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function TEt(e,t){gA(!this._parserCallback,'there is already a "callback" set!'),gA(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||TE(this),G_("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=tD}function AEt(e,t){gA(!this._parserCallback,'there is already a "callback" set!'),gA(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||TE(this),G_("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=bEt}function SEt(e,t){gA(!this._parserCallback,'There is already a "callback" set!'),gA(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||TE(this),G_("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=M4e}function MEt(e,t,r){this._parserInit||TE(this),G_("write(%o bytes)",e.length),typeof t=="function"&&(r=t),C4e(this,e,null,r)}function EEt(e,t,r){this._parserInit||TE(this),G_("transform(%o bytes)",e.length),typeof t!="function"&&(t=this._parserOutput),C4e(this,e,t,r)}function E4e(e,t,r,n){return e._parserBytesLeft<=0?n(new Error("got data but not currently parsing anything")):t.length<=e._parserBytesLeft?function(){return A4e(e,t,r,n)}:function(){var i=t.slice(0,e._parserBytesLeft);return A4e(e,i,r,function(a){if(a)return n(a);if(t.length>i.length)return function(){return E4e(e,t.slice(i.length),r,n)}})}}function A4e(e,t,r,n){if(e._parserBytesLeft-=t.length,G_("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===tD?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===M4e&&r(t),e._parserBytesLeft===0){var i=e._parserCallback;if(i&&e._parserState===tD&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==tD&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=S4e,e._parserBuffers.splice(0),i){var a=[];t&&a.push(t),r&&a.push(r);var o=i.length>a.length;o&&a.push(k4e(n));var s=i.apply(e,a);if(!o||n===s)return n}}else return n}var C4e=k4e(E4e);function k4e(e){return function(){for(var t=e.apply(this,arguments);typeof t=="function";)t=t();return t}}});var rc=ye(Hy=>{"use strict";var I4e=ASe().Transform,CEt=P4e();function AE(){I4e.call(this,{readableObjectMode:!0})}AE.prototype=Object.create(I4e.prototype);AE.prototype.constructor=AE;CEt(AE.prototype);Hy.ParserStream=AE;Hy.sliceEq=function(e,t,r){for(var n=t,i=0;i{"use strict";var mA=rc().readUInt16BE,iW=rc().readUInt32BE;function SE(e,t){if(e.length<4+t)return null;var r=iW(e,t);return e.length>4&15,n=e[4]&15,i=e[5]>>4&15,a=mA(e,6),o=8,s=0;sa.width||i.width===a.width&&i.height>a.height?i:a}),r=e.reduce(function(i,a){return i.height>a.height||i.height===a.height&&i.width>a.width?i:a}),n;return t.width>r.height||t.width===r.height&&t.height>r.width?n=t:n=r,n}iD.exports.readSizeFromMeta=function(e){var t={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(REt(e,t),!!t.sizes.length){var r=DEt(t.sizes),n=1;t.transforms.forEach(function(a){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},s={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(a.type==="imir"&&(a.value===0?n=s[n]:(n=s[n],n=o[n],n=o[n])),a.type==="irot")for(var l=0;l{"use strict";function nD(e,t){var r=new Error(e);return r.code=t,r}function FEt(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}function jy(e,t,r){this.input=e.subarray(t,r),this.start=t;var n=String.fromCharCode.apply(null,this.input.subarray(0,4));if(n!=="II*\0"&&n!=="MM\0*")throw nD("invalid TIFF signature","EBADDATA");this.big_endian=n[0]==="M"}jy.prototype.each=function(e){this.aborted=!1;var t=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:t}];this.ifds_to_read.length>0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,e)}};jy.prototype.read_uint16=function(e){var t=this.input;if(e+2>t.length)throw nD("unexpected EOF","EBADDATA");return this.big_endian?t[e]*256+t[e+1]:t[e]+t[e+1]*256};jy.prototype.read_uint32=function(e){var t=this.input;if(e+4>t.length)throw nD("unexpected EOF","EBADDATA");return this.big_endian?t[e]*16777216+t[e+1]*65536+t[e+2]*256+t[e+3]:t[e]+t[e+1]*256+t[e+2]*65536+t[e+3]*16777216};jy.prototype.is_subifd_link=function(e,t){return e===0&&t===34665||e===0&&t===34853||e===34665&&t===40965};jy.prototype.exif_format_length=function(e){switch(e){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}};jy.prototype.exif_format_read=function(e,t){var r;switch(e){case 1:case 2:return r=this.input[t],r;case 6:return r=this.input[t],r|(r&128)*33554430;case 3:return r=this.read_uint16(t),r;case 8:return r=this.read_uint16(t),r|(r&32768)*131070;case 4:return r=this.read_uint32(t),r;case 9:return r=this.read_uint32(t),r|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};jy.prototype.scan_ifd=function(e,t,r){var n=this.read_uint16(t);t+=2;for(var i=0;ithis.input.length)throw nD("unexpected EOF","EBADDATA");for(var h=[],d=c,v=0;v0&&(this.ifds_to_read.push({id:a,offset:h[0]}),f=!0);var b={is_big_endian:this.big_endian,ifd:e,tag:a,format:o,count:s,entry_offset:t+this.start,data_length:u,data_offset:c+this.start,value:h,is_subifd_link:f};if(r(b)===!1){this.aborted=!0;return}t+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(t)})};nW.exports.ExifParser=jy;nW.exports.get_orientation=function(e){var t=0;try{return new jy(e,0,e.length).each(function(r){if(r.ifd===0&&r.tag===274&&Array.isArray(r.value))return t=r.value[0],!1}),t}catch(r){return-1}}});var F4e=ye((yhr,D4e)=>{"use strict";var zEt=rc().str2arr,OEt=rc().sliceEq,qEt=rc().readUInt32BE,oD=R4e(),BEt=aD(),NEt=zEt("ftyp");D4e.exports=function(e){if(OEt(e,4,NEt)){var t=oD.unbox(e,0);if(t){var r=oD.getMimeType(t.data);if(r){for(var n,i=t.end;;){var a=oD.unbox(e,i);if(!a)break;if(i=a.end,a.boxtype==="mdat")return;if(a.boxtype==="meta"){n=a.data;break}}if(n){var o=oD.readSizeFromMeta(n);if(o){var s={width:o.width,height:o.height,type:r.type,mime:r.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(s.variants=o.variants),o.orientation&&(s.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var l=qEt(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+l+4,o.exif_location.offset+o.exif_location.length),c=BEt.get_orientation(u);c>0&&(s.orientation=c)}return s}}}}}}});var q4e=ye((_hr,O4e)=>{"use strict";var UEt=rc().str2arr,VEt=rc().sliceEq,z4e=rc().readUInt16LE,GEt=UEt("BM");O4e.exports=function(e){if(!(e.length<26)&&VEt(e,0,GEt))return{width:z4e(e,18),height:z4e(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var G4e=ye((xhr,V4e)=>{"use strict";var U4e=rc().str2arr,B4e=rc().sliceEq,N4e=rc().readUInt16LE,HEt=U4e("GIF87a"),jEt=U4e("GIF89a");V4e.exports=function(e){if(!(e.length<10)&&!(!B4e(e,0,HEt)&&!B4e(e,0,jEt)))return{width:N4e(e,6),height:N4e(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var W4e=ye((bhr,j4e)=>{"use strict";var aW=rc().readUInt16LE,WEt=0,XEt=1,H4e=16;j4e.exports=function(e){var t=aW(e,0),r=aW(e,2),n=aW(e,4);if(!(t!==WEt||r!==XEt||!n)){for(var i=[],a={width:0,height:0},o=0;oa.width||l>a.height)&&(a=u)}return{width:a.width,height:a.height,variants:i,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var Z4e=ye((whr,X4e)=>{"use strict";var oW=rc().readUInt16BE,ZEt=rc().str2arr,YEt=rc().sliceEq,KEt=aD(),JEt=ZEt("Exif\0\0");X4e.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var t=2;;){for(;;){if(e.length-t<2)return;if(e[t++]===255)break}for(var r=e[t++],n;r===255;)r=e[t++];if(208<=r&&r<=217||r===1)n=0;else if(192<=r&&r<=254){if(e.length-t<2)return;n=oW(e,t)-2,t+=2}else return;if(r===217||r===218)return;var i;if(r===225&&n>=10&&YEt(e,t,JEt)&&(i=KEt.get_orientation(e.slice(t+6,t+n))),n>=5&&192<=r&&r<=207&&r!==196&&r!==200&&r!==204){if(e.length-t0&&(a.orientation=i),a}t+=n}}});var Q4e=ye((Thr,$4e)=>{"use strict";var J4e=rc().str2arr,Y4e=rc().sliceEq,K4e=rc().readUInt32BE,$Et=J4e(`\x89PNG\r  -`),ZEt=K4e("IHDR");J4e.exports=function(e){if(!(e.length<24)&&Z4e(e,0,XEt)&&Z4e(e,12,ZEt))return{width:Y4e(e,16),height:Y4e(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var tEe=ye((xhr,eEe)=>{"use strict";var YEt=rc().str2arr,KEt=rc().sliceEq,Q4e=rc().readUInt32BE,JEt=YEt("8BPS\0");eEe.exports=function(e){if(!(e.length<22)&&KEt(e,0,JEt))return{width:Q4e(e,18),height:Q4e(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var nEe=ye((bhr,iEe)=>{"use strict";function $Et(e){return e===32||e===9||e===13||e===10}function yA(e){return typeof e=="number"&&isFinite(e)&&e>0}function QEt(e){var t=0,r=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(t=3);t]*>/,tCt=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,rCt=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,iCt=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,nCt=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,rEe=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function aCt(e){var t=e.match(rCt),r=e.match(iCt),n=e.match(nCt);return{width:t&&(t[1]||t[2]),height:r&&(r[1]||r[2]),viewbox:n&&(n[1]||n[2])}}function Nm(e){return rEe.test(e)?e.match(rEe)[0]:"px"}iEe.exports=function(e){if(QEt(e)){for(var t="",r=0;r{"use strict";var sEe=rc().str2arr,aEe=rc().sliceEq,oCt=rc().readUInt16LE,sCt=rc().readUInt16BE,lCt=rc().readUInt32LE,uCt=rc().readUInt32BE,cCt=sEe("II*\0"),fCt=sEe("MM\0*");function sD(e,t,r){return r?sCt(e,t):oCt(e,t)}function oW(e,t,r){return r?uCt(e,t):lCt(e,t)}function oEe(e,t,r){var n=sD(e,t+2,r),i=oW(e,t+4,r);return i!==1||n!==3&&n!==4?null:n===3?sD(e,t+8,r):oW(e,t+8,r)}lEe.exports=function(e){if(!(e.length<8)&&!(!aEe(e,0,cCt)&&!aEe(e,0,fCt))){var t=e[0]===77,r=oW(e,4,t)-8;if(!(r<0)){var n=r+8;if(!(e.length-n<2)){var i=sD(e,n+0,t)*12;if(!(i<=0)&&(n+=2,!(e.length-n{"use strict";var hEe=rc().str2arr,cEe=rc().sliceEq,fEe=rc().readUInt16LE,sW=rc().readUInt32LE,hCt=aD(),dCt=hEe("RIFF"),vCt=hEe("WEBP");function pCt(e,t){if(!(e[t+3]!==157||e[t+4]!==1||e[t+5]!==42))return{width:fEe(e,t+6)&16383,height:fEe(e,t+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function gCt(e,t){if(e[t]===47){var r=sW(e,t+1);return{width:(r&16383)+1,height:(r>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function mCt(e,t){return{width:(e[t+6]<<16|e[t+5]<<8|e[t+4])+1,height:(e[t+9]<e.length)){for(;t+8=10?r=r||pCt(e,t+8):a==="VP8L"&&o>=9?r=r||gCt(e,t+8):a==="VP8X"&&o>=10?r=r||mCt(e,t+8):a==="EXIF"&&(n=hCt.get_orientation(e.slice(t+8,t+8+o)),t=1/0),t+=8+o}if(r)return n>0&&(r.orientation=n),r}}}});var gEe=ye((Ahr,pEe)=>{"use strict";pEe.exports={avif:D4e(),bmp:O4e(),gif:V4e(),ico:j4e(),jpeg:X4e(),png:$4e(),psd:tEe(),svg:nEe(),tiff:uEe(),webp:vEe()}});var mEe=ye((Shr,uW)=>{"use strict";var lW=gEe();function yCt(e){for(var t=Object.keys(lW),r=0;r{"use strict";var _Ct=mEe(),xCt=Ly().IMAGE_URL_PREFIX,bCt=u2().Buffer;yEe.getImageSize=function(e){var t=e.replace(xCt,""),r=new bCt(t,"base64");return _Ct(r)}});var wEe=ye((Ehr,bEe)=>{"use strict";var xEe=Dr(),wCt=jT(),TCt=Eo(),lD=ho(),ACt=Dr().maxRowLength,SCt=_Ee().getImageSize;bEe.exports=function(t,r){var n,i;if(r._hasZ)n=r.z.length,i=ACt(r.z);else if(r._hasSource){var a=SCt(r.source);n=a.height,i=a.width}var o=lD.getFromId(t,r.xaxis||"x"),s=lD.getFromId(t,r.yaxis||"y"),l=o.d2c(r.x0)-r.dx/2,u=s.d2c(r.y0)-r.dy/2,c,f=[l,l+i*r.dx],h=[u,u+n*r.dy];if(o&&o.type==="log")for(c=0;c{"use strict";var kCt=Oa(),T2=Dr(),TEe=T2.strTranslate,LCt=Wp(),PCt=jT(),ICt=YV(),RCt=l8().STYLE;AEe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis,s=!t._context._exportedPlot&&ICt();T2.makeTraceGroups(i,n,"im").each(function(l){var u=kCt.select(this),c=l[0],f=c.trace,h=(f.zsmooth==="fast"||f.zsmooth===!1&&s)&&!f._hasZ&&f._hasSource&&a.type==="linear"&&o.type==="linear";f._realImage=h;var d=c.z,v=c.x0,x=c.y0,b=c.w,p=c.h,C=f.dx,E=f.dy,A,L,_,k,M,g;for(g=0;A===void 0&&g0;)L=a.c2p(v+g*C),g--;for(g=0;k===void 0&&g0;)M=o.c2p(x+g*E),g--;if(Lj[0];if(re||oe){var _e=A+T/2,Me=k+z/2;H+="transform:"+TEe(_e+"px",Me+"px")+"scale("+(re?-1:1)+","+(oe?-1:1)+")"+TEe(-_e+"px",-Me+"px")+";"}}Z.attr("style",H);var ke=new Promise(function(me){if(f._hasZ)me();else if(f._hasSource)if(f._canvas&&f._canvas.el.width===b&&f._canvas.el.height===p&&f._canvas.source===f.source)me();else{var ie=document.createElement("canvas");ie.width=b,ie.height=p;var Se=ie.getContext("2d",{willReadFrequently:!0});f._image=f._image||new Image;var Le=f._image;Le.onload=function(){Se.drawImage(Le,0,0),f._canvas={el:ie,source:f.source},me()},Le.setAttribute("src",f.source)}}).then(function(){var me,ie;if(f._hasZ)ie=G(function(Ae,Fe){var Pe=d[Fe][Ae];return T2.isTypedArray(Pe)&&(Pe=Array.from(Pe)),Pe}),me=ie.toDataURL("image/png");else if(f._hasSource)if(h)me=f.source;else{var Se=f._canvas.el.getContext("2d",{willReadFrequently:!0}),Le=Se.getImageData(0,0,b,p).data;ie=G(function(Ae,Fe){var Pe=4*(Fe*b+Ae);return[Le[Pe],Le[Pe+1],Le[Pe+2],Le[Pe+3]]}),me=ie.toDataURL("image/png")}Z.attr({"xlink:href":me,height:z,width:T,x:A,y:k})});t._promises.push(ke)})}});var EEe=ye((khr,MEe)=>{"use strict";var DCt=Oa();MEe.exports=function(t){DCt.select(t).selectAll(".im image").style("opacity",function(r){return r[0].trace.opacity})}});var PEe=ye((Lhr,LEe)=>{"use strict";var CEe=df(),kEe=Dr(),uD=kEe.isArrayOrTypedArray,FCt=jT();LEe.exports=function(t,r,n){var i=t.cd[0],a=i.trace,o=t.xa,s=t.ya;if(!(CEe.inbox(r-i.x0,r-(i.x0+i.w*a.dx),0)>0||CEe.inbox(n-i.y0,n-(i.y0+i.h*a.dy),0)>0)){var l=Math.floor((r-i.x0)/a.dx),u=Math.floor(Math.abs(n-i.y0)/a.dy),c;if(a._hasZ?c=i.z[u][l]:a._hasSource&&(c=a._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(l,u,1,1).data),!!c){var f=i.hi||a.hoverinfo,h;if(f){var d=f.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(h=!0)}var v=FCt.colormodel[a.colormodel],x=v.colormodel||a.colormodel,b=x.length,p=a._scaler(c),C=v.suffix,E=[];(a.hovertemplate||h)&&(E.push("["+[p[0]+C[0],p[1]+C[1],p[2]+C[2]].join(", ")),b===4&&E.push(", "+p[3]+C[3]),E.push("]"),E=E.join(""),t.extraText=x.toUpperCase()+": "+E);var A;uD(a.hovertext)&&uD(a.hovertext[u])?A=a.hovertext[u][l]:uD(a.text)&&uD(a.text[u])&&(A=a.text[u][l]);var L=s.c2p(i.y0+(u+.5)*a.dy),_=i.x0+(l+.5)*a.dx,k=i.y0+(u+.5)*a.dy,M="["+c.slice(0,a.colormodel.length).join(", ")+"]";return[kEe.extendFlat(t,{index:[u,l],x0:o.c2p(i.x0+l*a.dx),x1:o.c2p(i.x0+(l+1)*a.dx),y0:L,y1:L,color:p,xVal:_,xLabelVal:_,yVal:k,yLabelVal:k,zLabelVal:M,text:A,hovertemplateLabels:{zLabel:M,colorLabel:E,"color[0]Label":p[0]+C[0],"color[1]Label":p[1]+C[1],"color[2]Label":p[2]+C[2],"color[3]Label":p[3]+C[3]}})]}}}});var REe=ye((Phr,IEe)=>{"use strict";IEe.exports=function(t,r){return"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t.color=r.color,t.colormodel=r.trace.colormodel,t.z||(t.z=r.color),t}});var FEe=ye((Ihr,DEe)=>{"use strict";DEe.exports={attributes:aH(),supplyDefaults:P3e(),calc:wEe(),plot:SEe(),style:EEe(),hoverPoints:PEe(),eventData:REe(),moduleType:"trace",name:"image",basePlotModule:vh(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var OEe=ye((Rhr,zEe)=>{"use strict";zEe.exports=FEe()});var A2=ye((Dhr,qEe)=>{"use strict";var zCt=Vl(),OCt=kc().attributes,qCt=ec(),BCt=Eh(),NCt=rs().hovertemplateAttrs,UCt=rs().texttemplateAttrs,TE=Ao().extendFlat,VCt=Pd().pattern,cD=qCt({editType:"plot",arrayOk:!0,colorEditType:"plot"});qEe.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:BCt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:VCt,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:TE({},zCt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:NCt({},{keys:["label","color","value","percent","text"]}),texttemplate:UCt({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:TE({},cD,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:TE({},cD,{}),outsidetextfont:TE({},cD,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:TE({},cD,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:OCt({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var S2=ye((Fhr,UEe)=>{"use strict";var GCt=Eo(),AE=Dr(),HCt=A2(),jCt=kc().defaults,WCt=r0().handleText,XCt=Dr().coercePattern;function BEe(e,t){var r=AE.isArrayOrTypedArray(e),n=AE.isArrayOrTypedArray(t),i=Math.min(r?e.length:1/0,n?t.length:1/0);if(isFinite(i)||(i=0),i&&n){for(var a,o=0;o0){a=!0;break}}a||(i=0)}return{hasLabels:r,hasValues:n,len:i}}function NEe(e,t,r,n,i){var a=n("marker.line.width");a&&n("marker.line.color",i?void 0:r.paper_bgcolor);var o=n("marker.colors");XCt(n,"marker.pattern",o),e.marker&&!t.marker.pattern.fgcolor&&(t.marker.pattern.fgcolor=e.marker.colors),t.marker.pattern.bgcolor||(t.marker.pattern.bgcolor=r.paper_bgcolor)}function ZCt(e,t,r,n){function i(C,E){return AE.coerce(e,t,HCt,C,E)}var a=i("labels"),o=i("values"),s=BEe(a,o),l=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(i("label0"),i("dlabel")),!l){t.visible=!1;return}t._length=l,NEe(e,t,n,i,!0),i("scalegroup");var u=i("text"),c=i("texttemplate"),f;if(c||(f=i("textinfo",AE.isArrayOrTypedArray(u)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),c||f&&f!=="none"){var h=i("textposition");WCt(e,t,n,i,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",v=d||h==="outside";v&&i("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&i("insidetextorientation")}else f==="none"&&i("textposition","none");jCt(t,n,i);var x=i("hole"),b=i("title.text");if(b){var p=i("title.position",x?"middle center":"top center");!x&&p==="middle center"&&(t.title.position="top center"),AE.coerceFont(i,"title.font",n.font)}i("sort"),i("direction"),i("rotation"),i("pull")}UEe.exports={handleLabelsAndValues:BEe,handleMarkerDefaults:NEe,supplyDefaults:ZCt}});var fD=ye((zhr,VEe)=>{"use strict";VEe.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var HEe=ye((Ohr,GEe)=>{"use strict";var YCt=Dr(),KCt=fD();GEe.exports=function(t,r){function n(i,a){return YCt.coerce(t,r,KCt,i,a)}n("hiddenlabels"),n("piecolorway",r.colorway),n("extendpiecolors")}});var _A=ye((qhr,XEe)=>{"use strict";var JCt=Eo(),cW=cd(),$Ct=Ca(),QCt={};function ekt(e,t){var r=[],n=e._fullLayout,i=n.hiddenlabels||[],a=t.labels,o=t.marker.colors||[],s=t.values,l=t._length,u=t._hasValues&&l,c,f;if(t.dlabel)for(a=new Array(l),c=0;c=0});var A=t.type==="funnelarea"?x:t.sort;return A&&r.sort(function(L,_){return _.v-L.v}),r[0]&&(r[0].vTotal=v),r}function jEe(e){return function(r,n){return!r||(r=cW(r),!r.isValid())?!1:(r=$Ct.addOpacity(r,r.getAlpha()),e[n]||(e[n]=r),r)}}function tkt(e,t){var r=(t||{}).type;r||(r="pie");var n=e._fullLayout,i=e.calcdata,a=n[r+"colorway"],o=n["_"+r+"colormap"];n["extend"+r+"colors"]&&(a=WEe(a,QCt));for(var s=0,l=0;l{"use strict";var rkt=rp().appendArrayMultiPointValues;ZEe.exports=function(t,r){var n={curveNumber:r.index,pointNumbers:t.pts,data:r._input,fullData:r,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,bbox:t.bbox,v:t.v};return t.pts.length===1&&(n.pointNumber=n.i=t.pts[0]),rkt(n,r,t.pts),r.type==="funnelarea"&&(delete n.v,delete n.i),n}});var pD=ye((Nhr,gCe)=>{"use strict";var Dp=Oa(),ikt=Mc(),hD=df(),tCe=Ca(),Wy=So(),rv=Dr(),nkt=rv.strScale,KEe=rv.strTranslate,fW=iu(),rCe=_v(),akt=rCe.recordMinTextSize,okt=rCe.clearMinTextSize,iCe=Qb().TEXTPAD,as=u_(),dD=YEe(),JEe=Dr().isValidTextValue;function skt(e,t){var r=e._context.staticPlot,n=e._fullLayout,i=n._size;okt("pie",n),oCe(t,e),dCe(t,i);var a=rv.makeTraceGroups(n._pielayer,t,"trace").each(function(o){var s=Dp.select(this),l=o[0],u=l.trace;gkt(o),s.attr("stroke-linejoin","round"),s.each(function(){var c=Dp.select(this).selectAll("g.slice").data(o);c.enter().append("g").classed("slice",!0),c.exit().remove();var f=[[[],[]],[[],[]]],h=!1;c.each(function(A,L){if(A.hidden){Dp.select(this).selectAll("path,g").remove();return}A.pointNumber=A.i,A.curveNumber=u.index,f[A.pxmid[1]<0?0:1][A.pxmid[0]<0?0:1].push(A);var _=l.cx,k=l.cy,M=Dp.select(this),g=M.selectAll("path.surface").data([A]);if(g.enter().append("path").classed("surface",!0).style({"pointer-events":r?"none":"all"}),M.call(nCe,e,o),u.pull){var P=+as.castOption(u.pull,A.pts)||0;P>0&&(_+=P*A.pxmid[0],k+=P*A.pxmid[1])}A.cxFinal=_,A.cyFinal=k;function T(N,j,re,oe){var _e=oe*(j[0]-N[0]),Me=oe*(j[1]-N[1]);return"a"+oe*l.r+","+oe*l.r+" 0 "+A.largeArc+(re?" 1 ":" 0 ")+_e+","+Me}var z=u.hole;if(A.v===l.vTotal){var O="M"+(_+A.px0[0])+","+(k+A.px0[1])+T(A.px0,A.pxmid,!0,1)+T(A.pxmid,A.px0,!0,1)+"Z";z?g.attr("d","M"+(_+z*A.px0[0])+","+(k+z*A.px0[1])+T(A.px0,A.pxmid,!1,z)+T(A.pxmid,A.px0,!1,z)+"Z"+O):g.attr("d",O)}else{var V=T(A.px0,A.px1,!0,1);if(z){var G=1-z;g.attr("d","M"+(_+z*A.px1[0])+","+(k+z*A.px1[1])+T(A.px1,A.px0,!1,z)+"l"+G*A.px0[0]+","+G*A.px0[1]+V+"Z")}else g.attr("d","M"+_+","+k+"l"+A.px0[0]+","+A.px0[1]+V+"Z")}vCe(e,A,l);var Z=as.castOption(u.textposition,A.pts),H=M.selectAll("g.slicetext").data(A.text&&Z!=="none"?[0]:[]);H.enter().append("g").classed("slicetext",!0),H.exit().remove(),H.each(function(){var N=rv.ensureSingle(Dp.select(this),"text","",function(ie){ie.attr("data-notex",1)}),j=rv.ensureUniformFontSize(e,Z==="outside"?ukt(u,A,n.font):aCe(u,A,n.font));N.text(A.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(Wy.font,j).call(fW.convertToTspans,e);var re=Wy.bBox(N.node()),oe;if(Z==="outside")oe=eCe(re,A);else if(oe=sCe(re,A,l),Z==="auto"&&oe.scale<1){var _e=rv.ensureUniformFontSize(e,u.outsidetextfont);N.call(Wy.font,_e),re=Wy.bBox(N.node()),oe=eCe(re,A)}var Me=oe.textPosAngle,ke=Me===void 0?A.pxmid:vD(l.r,Me);if(oe.targetX=_+ke[0]*oe.rCenter+(oe.x||0),oe.targetY=k+ke[1]*oe.rCenter+(oe.y||0),pCe(oe,re),oe.outside){var me=oe.targetY;A.yLabelMin=me-re.height/2,A.yLabelMid=me,A.yLabelMax=me+re.height/2,A.labelExtraX=0,A.labelExtraY=0,h=!0}oe.fontSize=j.size,akt(u.type,oe,n),o[L].transform=oe,rv.setTransormAndDisplay(N,oe)})});var d=Dp.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var A=rv.ensureSingle(Dp.select(this),"text","",function(k){k.attr("data-notex",1)}),L=u.title.text;u._meta&&(L=rv.templateString(L,u._meta)),A.text(L).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(Wy.font,u.title.font).call(fW.convertToTspans,e);var _;u.title.position==="middle center"?_=hkt(l):_=fCe(l,i),A.attr("transform",KEe(_.x,_.y)+nkt(Math.min(1,_.scale))+KEe(_.tx,_.ty))}),h&&vkt(f,u),lkt(c,u),h&&u.automargin){var v=Wy.bBox(s.node()),x=u.domain,b=i.w*(x.x[1]-x.x[0]),p=i.h*(x.y[1]-x.y[0]),C=(.5*b-l.r)/i.w,E=(.5*p-l.r)/i.h;ikt.autoMargin(e,"pie."+u.uid+".automargin",{xl:x.x[0]-C,xr:x.x[1]+C,yb:x.y[0]-E,yt:x.y[1]+E,l:Math.max(l.cx-l.r-v.left,0),r:Math.max(v.right-(l.cx+l.r),0),b:Math.max(v.bottom-(l.cy+l.r),0),t:Math.max(l.cy-l.r-v.top,0),pad:5})}})});setTimeout(function(){a.selectAll("tspan").each(function(){var o=Dp.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function lkt(e,t){e.each(function(r){var n=Dp.select(this);if(!r.labelExtraX&&!r.labelExtraY){n.select("path.textline").remove();return}var i=n.select("g.slicetext text");r.transform.targetX+=r.labelExtraX,r.transform.targetY+=r.labelExtraY,rv.setTransormAndDisplay(i,r.transform);var a=r.cxFinal+r.pxmid[0],o=r.cyFinal+r.pxmid[1],s="M"+a+","+o,l=(r.yLabelMax-r.yLabelMin)*(r.pxmid[0]<0?-1:1)/4;if(r.labelExtraX){var u=r.labelExtraX*r.pxmid[1]/r.pxmid[0],c=r.yLabelMid+r.labelExtraY-(r.cyFinal+r.pxmid[1]);Math.abs(u)>Math.abs(c)?s+="l"+c*r.pxmid[0]/r.pxmid[1]+","+c+"H"+(a+r.labelExtraX+l):s+="l"+r.labelExtraX+","+u+"v"+(c-u)+"h"+l}else s+="V"+(r.yLabelMid+r.labelExtraY)+"h"+l;rv.ensureSingle(n,"path","textline").call(tCe.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})})}function nCe(e,t,r){var n=r[0],i=n.cx,a=n.cy,o=n.trace,s=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(l){var u=t._fullLayout,c=t._fullData[o.index];if(!(t._dragging||u.hovermode===!1)){var f=c.hoverinfo;if(Array.isArray(f)&&(f=hD.castHoverinfo({hoverinfo:[as.castOption(f,l.pts)],_module:o._module},u,0)),f==="all"&&(f="label+text+value+percent+name"),c.hovertemplate||f!=="none"&&f!=="skip"&&f){var h=l.rInscribed||0,d=i+l.pxmid[0]*(1-h),v=a+l.pxmid[1]*(1-h),x=u.separators,b=[];if(f&&f.indexOf("label")!==-1&&b.push(l.label),l.text=as.castOption(c.hovertext||c.text,l.pts),f&&f.indexOf("text")!==-1){var p=l.text;rv.isValidTextValue(p)&&b.push(p)}l.value=l.v,l.valueLabel=as.formatPieValue(l.v,x),f&&f.indexOf("value")!==-1&&b.push(l.valueLabel),l.percent=l.v/n.vTotal,l.percentLabel=as.formatPiePercent(l.percent,x),f&&f.indexOf("percent")!==-1&&b.push(l.percentLabel);var C=c.hoverlabel,E=C.font,A=[];hD.loneHover({trace:o,x0:d-h*n.r,x1:d+h*n.r,y:v,_x0:s?i+l.TL[0]:d-h*n.r,_x1:s?i+l.TR[0]:d+h*n.r,_y0:s?a+l.TL[1]:v-h*n.r,_y1:s?a+l.BL[1]:v+h*n.r,text:b.join("
"),name:c.hovertemplate||f.indexOf("name")!==-1?c.name:void 0,idealAlign:l.pxmid[0]<0?"left":"right",color:as.castOption(C.bgcolor,l.pts)||l.color,borderColor:as.castOption(C.bordercolor,l.pts),fontFamily:as.castOption(E.family,l.pts),fontSize:as.castOption(E.size,l.pts),fontColor:as.castOption(E.color,l.pts),nameLength:as.castOption(C.namelength,l.pts),textAlign:as.castOption(C.align,l.pts),hovertemplate:as.castOption(c.hovertemplate,l.pts),hovertemplateLabels:l,eventData:[dD(l,c)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:t,inOut_bbox:A}),l.bbox=A[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[dD(l,c)],event:Dp.event})}}),e.on("mouseout",function(l){var u=t._fullLayout,c=t._fullData[o.index],f=Dp.select(this).datum();o._hasHoverEvent&&(l.originalEvent=Dp.event,t.emit("plotly_unhover",{points:[dD(f,c)],event:Dp.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(hD.loneUnhover(u._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(l){var u=t._fullLayout,c=t._fullData[o.index];t._dragging||u.hovermode===!1||(t._hoverdata=[dD(l,c)],hD.click(t,Dp.event))})}function ukt(e,t,r){var n=as.castOption(e.outsidetextfont.color,t.pts)||as.castOption(e.textfont.color,t.pts)||r.color,i=as.castOption(e.outsidetextfont.family,t.pts)||as.castOption(e.textfont.family,t.pts)||r.family,a=as.castOption(e.outsidetextfont.size,t.pts)||as.castOption(e.textfont.size,t.pts)||r.size,o=as.castOption(e.outsidetextfont.weight,t.pts)||as.castOption(e.textfont.weight,t.pts)||r.weight,s=as.castOption(e.outsidetextfont.style,t.pts)||as.castOption(e.textfont.style,t.pts)||r.style,l=as.castOption(e.outsidetextfont.variant,t.pts)||as.castOption(e.textfont.variant,t.pts)||r.variant,u=as.castOption(e.outsidetextfont.textcase,t.pts)||as.castOption(e.textfont.textcase,t.pts)||r.textcase,c=as.castOption(e.outsidetextfont.lineposition,t.pts)||as.castOption(e.textfont.lineposition,t.pts)||r.lineposition,f=as.castOption(e.outsidetextfont.shadow,t.pts)||as.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n,family:i,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:c,shadow:f}}function aCe(e,t,r){var n=as.castOption(e.insidetextfont.color,t.pts);!n&&e._input.textfont&&(n=as.castOption(e._input.textfont.color,t.pts));var i=as.castOption(e.insidetextfont.family,t.pts)||as.castOption(e.textfont.family,t.pts)||r.family,a=as.castOption(e.insidetextfont.size,t.pts)||as.castOption(e.textfont.size,t.pts)||r.size,o=as.castOption(e.insidetextfont.weight,t.pts)||as.castOption(e.textfont.weight,t.pts)||r.weight,s=as.castOption(e.insidetextfont.style,t.pts)||as.castOption(e.textfont.style,t.pts)||r.style,l=as.castOption(e.insidetextfont.variant,t.pts)||as.castOption(e.textfont.variant,t.pts)||r.variant,u=as.castOption(e.insidetextfont.textcase,t.pts)||as.castOption(e.textfont.textcase,t.pts)||r.textcase,c=as.castOption(e.insidetextfont.lineposition,t.pts)||as.castOption(e.textfont.lineposition,t.pts)||r.lineposition,f=as.castOption(e.insidetextfont.shadow,t.pts)||as.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n||tCe.contrast(t.color),family:i,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:c,shadow:f}}function oCe(e,t){for(var r,n,i=0;i=-4;C-=2)p(Math.PI*C,"tan");for(C=4;C>=-4;C-=2)p(Math.PI*(C+1),"tan")}if(f||d){for(C=4;C>=-4;C-=2)p(Math.PI*(C+1.5),"rad");for(C=4;C>=-4;C-=2)p(Math.PI*(C+.5),"rad")}}if(s||v||f){var E=Math.sqrt(e.width*e.width+e.height*e.height);if(b={scale:i*n*2/E,rCenter:1-i,rotate:0},b.textPosAngle=(t.startangle+t.stopangle)/2,b.scale>=1)return b;x.push(b)}(v||d)&&(b=$Ee(e,n,o,l,u),b.textPosAngle=(t.startangle+t.stopangle)/2,x.push(b)),(v||h)&&(b=QEe(e,n,o,l,u),b.textPosAngle=(t.startangle+t.stopangle)/2,x.push(b));for(var A=0,L=0,_=0;_=1)break}return x[A]}function ckt(e,t){var r=e.startangle,n=e.stopangle;return r>t&&t>n||r0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function hkt(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function fCe(e,t){var r=1,n=1,i,a=e.trace,o={x:e.cx,y:e.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=hCe(a),a.title.position.indexOf("top")!==-1?(o.y-=(1+i)*e.r,s.ty-=e.titleBox.height):a.title.position.indexOf("bottom")!==-1&&(o.y+=(1+i)*e.r);var l=dkt(e.r,e.trace.aspectratio),u=t.w*(a.domain.x[1]-a.domain.x[0])/2;return a.title.position.indexOf("left")!==-1?(u=u+l,o.x-=(1+i)*l,s.tx+=e.titleBox.width/2):a.title.position.indexOf("center")!==-1?u*=2:a.title.position.indexOf("right")!==-1&&(u=u+l,o.x+=(1+i)*l,s.tx-=e.titleBox.width/2),r=u/e.titleBox.width,n=hW(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function dkt(e,t){return e/(t===void 0?1:t)}function hW(e,t){var r=e.trace,n=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,n/2)}function hCe(e){var t=e.pull;if(!t)return 0;var r;if(rv.isArrayOrTypedArray(t))for(t=0,r=0;rt&&(t=e.pull[r]);return t}function vkt(e,t){var r,n,i,a,o,s,l,u,c,f,h,d,v;function x(E,A){return E.pxmid[1]-A.pxmid[1]}function b(E,A){return A.pxmid[1]-E.pxmid[1]}function p(E,A){A||(A={});var L=A.labelExtraY+(n?A.yLabelMax:A.yLabelMin),_=n?E.yLabelMin:E.yLabelMax,k=n?E.yLabelMax:E.yLabelMin,M=E.cyFinal+o(E.px0[1],E.px1[1]),g=L-_,P,T,z,O,V,G;if(g*l>0&&(E.labelExtraY=g),!!rv.isArrayOrTypedArray(t.pull))for(T=0;T=(as.castOption(t.pull,z.pts)||0))&&((E.pxmid[1]-z.pxmid[1])*l>0?(O=z.cyFinal+o(z.px0[1],z.px1[1]),g=O-_-E.labelExtraY,g*l>0&&(E.labelExtraY+=g)):(k+E.labelExtraY-M)*l>0&&(P=3*s*Math.abs(T-f.indexOf(E)),V=z.cxFinal+a(z.px0[0],z.px1[0]),G=V+P-(E.cxFinal+E.pxmid[0])-E.labelExtraX,G*s>0&&(E.labelExtraX+=G)))}for(n=0;n<2;n++)for(i=n?x:b,o=n?Math.max:Math.min,l=n?1:-1,r=0;r<2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,u=e[n][r],u.sort(i),c=e[1-n][r],f=c.concat(u),d=[],h=0;h1?(u=r.r,c=u/i.aspectratio):(c=r.r,u=c*i.aspectratio),u*=(1+i.baseratio)/2,l=u*c}o=Math.min(o,l/r.vTotal)}for(n=0;nt.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/t.vTotal,.5),u.ring=1-n.hole,u.rInscribed=fkt(u,t))}function vD(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function vCe(e,t,r){var n=e._fullLayout,i=r.trace,a=i.texttemplate,o=i.textinfo;if(!a&&o&&o!=="none"){var s=o.split("+"),l=function(A){return s.indexOf(A)!==-1},u=l("label"),c=l("text"),f=l("value"),h=l("percent"),d=n.separators,v;if(v=u?[t.label]:[],c){var x=as.getFirstFilled(i.text,t.pts);JEe(x)&&v.push(x)}f&&v.push(as.formatPieValue(t.v,d)),h&&v.push(as.formatPiePercent(t.v/r.vTotal,d)),t.text=v.join("
")}function b(A){return{label:A.label,value:A.v,valueLabel:as.formatPieValue(A.v,n.separators),percent:A.v/r.vTotal,percentLabel:as.formatPiePercent(A.v/r.vTotal,n.separators),color:A.color,text:A.text,customdata:rv.castOption(i,A.i,"customdata")}}if(a){var p=rv.castOption(i,t.i,"texttemplate");if(!p)t.text="";else{var C=b(t),E=as.getFirstFilled(i.text,t.pts);(JEe(E)||E==="")&&(C.text=E),t.text=rv.texttemplateString(p,C,e._fullLayout._d3locale,C,i._meta||{})}}}function pCe(e,t){var r=e.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=a*n-o*i,e.textY=a*i+o*n,e.noCenter=!0}gCe.exports={plot:skt,formatSliceLabel:vCe,transformInsideText:sCe,determineInsideTextFont:aCe,positionTitleOutside:fCe,prerenderTitles:oCe,layoutAreas:dCe,attachFxHandlers:nCe,computeTransform:pCe}});var _Ce=ye((Uhr,yCe)=>{"use strict";var mCe=Oa(),mkt=F3(),ykt=_v().resizeText;yCe.exports=function(t){var r=t._fullLayout._pielayer.selectAll(".trace");ykt(t,r,"pie"),r.each(function(n){var i=n[0],a=i.trace,o=mCe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){mCe.select(this).call(mkt,s,a,t)})})}});var bCe=ye(xA=>{"use strict";var xCe=Mc();xA.name="pie";xA.plot=function(e,t,r,n){xCe.plotBasePlot(xA.name,e,t,r,n)};xA.clean=function(e,t,r,n){xCe.cleanBasePlot(xA.name,e,t,r,n)}});var TCe=ye((Ghr,wCe)=>{"use strict";wCe.exports={attributes:A2(),supplyDefaults:S2().supplyDefaults,supplyLayoutDefaults:HEe(),layoutAttributes:fD(),calc:_A().calc,crossTraceCalc:_A().crossTraceCalc,plot:pD().plot,style:_Ce(),styleOne:F3(),moduleType:"trace",name:"pie",basePlotModule:bCe(),categories:["pie-like","pie","showLegend"],meta:{}}});var SCe=ye((Hhr,ACe)=>{"use strict";ACe.exports=TCe()});var ECe=ye(bA=>{"use strict";var MCe=Mc();bA.name="sunburst";bA.plot=function(e,t,r,n){MCe.plotBasePlot(bA.name,e,t,r,n)};bA.clean=function(e,t,r,n){MCe.cleanBasePlot(bA.name,e,t,r,n)}});var dW=ye((Whr,CCe)=>{"use strict";CCe.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}});var ME=ye((Xhr,LCe)=>{"use strict";var _kt=Vl(),xkt=rs().hovertemplateAttrs,bkt=rs().texttemplateAttrs,wkt=Tu(),Tkt=kc().attributes,Xy=A2(),kCe=dW(),SE=Ao().extendFlat,Akt=Pd().pattern;LCe.exports={labels:{valType:"data_array",editType:"calc"},parents:{valType:"data_array",editType:"calc"},values:{valType:"data_array",editType:"calc"},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc"},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc"},level:{valType:"any",editType:"plot",anim:!0},maxdepth:{valType:"integer",editType:"plot",dflt:-1},marker:SE({colors:{valType:"data_array",editType:"calc"},line:{color:SE({},Xy.marker.line.color,{dflt:null}),width:SE({},Xy.marker.line.width,{dflt:1}),editType:"calc"},pattern:Akt,editType:"calc"},wkt("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1},editType:"plot"},text:Xy.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot"},texttemplate:bkt({editType:"plot"},{keys:kCe.eventDataKeys.concat(["label","value"])}),hovertext:Xy.hovertext,hoverinfo:SE({},_kt.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:xkt({},{keys:kCe.eventDataKeys}),textfont:Xy.textfont,insidetextorientation:Xy.insidetextorientation,insidetextfont:Xy.insidetextfont,outsidetextfont:SE({},Xy.outsidetextfont,{}),rotation:{valType:"angle",dflt:0,editType:"plot"},sort:Xy.sort,root:{color:{valType:"color",editType:"calc",dflt:"rgba(0,0,0,0)"},editType:"calc"},domain:Tkt({name:"sunburst",trace:!0,editType:"calc"})}});var vW=ye((Zhr,PCe)=>{"use strict";PCe.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var FCe=ye((Yhr,DCe)=>{"use strict";var ICe=Dr(),Skt=ME(),Mkt=kc().defaults,Ekt=r0().handleText,Ckt=S2().handleMarkerDefaults,RCe=tc(),kkt=RCe.hasColorscale,Lkt=RCe.handleDefaults;DCe.exports=function(t,r,n,i){function a(h,d){return ICe.coerce(t,r,Skt,h,d)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),Ckt(t,r,i,a);var u=r._hasColorscale=kkt(t,"marker","colors")||(t.marker||{}).coloraxis;u&&Lkt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",u?1:.7);var c=a("text");a("texttemplate"),r.texttemplate||a("textinfo",ICe.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate");var f="auto";Ekt(t,r,i,a,f,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("insidetextorientation"),a("sort"),a("rotation"),a("root.color"),Mkt(r,i,a),r._length=null}});var OCe=ye((Khr,zCe)=>{"use strict";var Pkt=Dr(),Ikt=vW();zCe.exports=function(t,r){function n(i,a){return Pkt.coerce(t,r,Ikt,i,a)}n("sunburstcolorway",r.colorway),n("extendsunburstcolors")}});var EE=ye((gD,qCe)=>{(function(e,t){typeof gD=="object"&&typeof qCe!="undefined"?t(gD):(e=e||self,t(e.d3=e.d3||{}))})(gD,function(e){"use strict";function t(je,Je){return je.parent===Je.parent?1:2}function r(je){return je.reduce(n,0)/je.length}function n(je,Je){return je+Je.x}function i(je){return 1+je.reduce(a,0)}function a(je,Je){return Math.max(je,Je.y)}function o(je){for(var Je;Je=je.children;)je=Je[0];return je}function s(je){for(var Je;Je=je.children;)je=Je[Je.length-1];return je}function l(){var je=t,Je=1,xt=1,Ie=!1;function xe(Ce){var pt,nr=0;Ce.eachAfter(function(ei){var vi=ei.children;vi?(ei.x=r(vi),ei.y=i(vi)):(ei.x=pt?nr+=je(ei,pt):0,ei.y=0,pt=ei)});var ir=o(Ce),vr=s(Ce),si=ir.x-je(ir,vr)/2,mi=vr.x+je(vr,ir)/2;return Ce.eachAfter(Ie?function(ei){ei.x=(ei.x-Ce.x)*Je,ei.y=(Ce.y-ei.y)*xt}:function(ei){ei.x=(ei.x-si)/(mi-si)*Je,ei.y=(1-(Ce.y?ei.y/Ce.y:1))*xt})}return xe.separation=function(Ce){return arguments.length?(je=Ce,xe):je},xe.size=function(Ce){return arguments.length?(Ie=!1,Je=+Ce[0],xt=+Ce[1],xe):Ie?null:[Je,xt]},xe.nodeSize=function(Ce){return arguments.length?(Ie=!0,Je=+Ce[0],xt=+Ce[1],xe):Ie?[Je,xt]:null},xe}function u(je){var Je=0,xt=je.children,Ie=xt&&xt.length;if(!Ie)Je=1;else for(;--Ie>=0;)Je+=xt[Ie].value;je.value=Je}function c(){return this.eachAfter(u)}function f(je){var Je=this,xt,Ie=[Je],xe,Ce,pt;do for(xt=Ie.reverse(),Ie=[];Je=xt.pop();)if(je(Je),xe=Je.children,xe)for(Ce=0,pt=xe.length;Ce=0;--xe)xt.push(Ie[xe]);return this}function d(je){for(var Je=this,xt=[Je],Ie=[],xe,Ce,pt;Je=xt.pop();)if(Ie.push(Je),xe=Je.children,xe)for(Ce=0,pt=xe.length;Ce=0;)xt+=Ie[xe].value;Je.value=xt})}function x(je){return this.eachBefore(function(Je){Je.children&&Je.children.sort(je)})}function b(je){for(var Je=this,xt=p(Je,je),Ie=[Je];Je!==xt;)Je=Je.parent,Ie.push(Je);for(var xe=Ie.length;je!==xt;)Ie.splice(xe,0,je),je=je.parent;return Ie}function p(je,Je){if(je===Je)return je;var xt=je.ancestors(),Ie=Je.ancestors(),xe=null;for(je=xt.pop(),Je=Ie.pop();je===Je;)xe=je,je=xt.pop(),Je=Ie.pop();return xe}function C(){for(var je=this,Je=[je];je=je.parent;)Je.push(je);return Je}function E(){var je=[];return this.each(function(Je){je.push(Je)}),je}function A(){var je=[];return this.eachBefore(function(Je){Je.children||je.push(Je)}),je}function L(){var je=this,Je=[];return je.each(function(xt){xt!==je&&Je.push({source:xt.parent,target:xt})}),Je}function _(je,Je){var xt=new T(je),Ie=+je.value&&(xt.value=je.value),xe,Ce=[xt],pt,nr,ir,vr;for(Je==null&&(Je=M);xe=Ce.pop();)if(Ie&&(xe.value=+xe.data.value),(nr=Je(xe.data))&&(vr=nr.length))for(xe.children=new Array(vr),ir=vr-1;ir>=0;--ir)Ce.push(pt=xe.children[ir]=new T(nr[ir])),pt.parent=xe,pt.depth=xe.depth+1;return xt.eachBefore(P)}function k(){return _(this).eachBefore(g)}function M(je){return je.children}function g(je){je.data=je.data.data}function P(je){var Je=0;do je.height=Je;while((je=je.parent)&&je.height<++Je)}function T(je){this.data=je,this.depth=this.height=0,this.parent=null}T.prototype=_.prototype={constructor:T,count:c,each:f,eachAfter:d,eachBefore:h,sum:v,sort:x,path:b,ancestors:C,descendants:E,leaves:A,links:L,copy:k};var z=Array.prototype.slice;function O(je){for(var Je=je.length,xt,Ie;Je;)Ie=Math.random()*Je--|0,xt=je[Je],je[Je]=je[Ie],je[Ie]=xt;return je}function V(je){for(var Je=0,xt=(je=O(z.call(je))).length,Ie=[],xe,Ce;Je0&&xt*xt>Ie*Ie+xe*xe}function N(je,Je){for(var xt=0;xtir?(xe=(vr+ir-Ce)/(2*vr),nr=Math.sqrt(Math.max(0,ir/vr-xe*xe)),xt.x=je.x-xe*Ie-nr*pt,xt.y=je.y-xe*pt+nr*Ie):(xe=(vr+Ce-ir)/(2*vr),nr=Math.sqrt(Math.max(0,Ce/vr-xe*xe)),xt.x=Je.x+xe*Ie-nr*pt,xt.y=Je.y+xe*pt+nr*Ie)):(xt.x=Je.x+xt.r,xt.y=Je.y)}function ke(je,Je){var xt=je.r+Je.r-1e-6,Ie=Je.x-je.x,xe=Je.y-je.y;return xt>0&&xt*xt>Ie*Ie+xe*xe}function me(je){var Je=je._,xt=je.next._,Ie=Je.r+xt.r,xe=(Je.x*xt.r+xt.x*Je.r)/Ie,Ce=(Je.y*xt.r+xt.y*Je.r)/Ie;return xe*xe+Ce*Ce}function ie(je){this._=je,this.next=null,this.previous=null}function Se(je){if(!(xe=je.length))return 0;var Je,xt,Ie,xe,Ce,pt,nr,ir,vr,si,mi;if(Je=je[0],Je.x=0,Je.y=0,!(xe>1))return Je.r;if(xt=je[1],Je.x=-xt.r,xt.x=Je.r,xt.y=0,!(xe>2))return Je.r+xt.r;Me(xt,Je,Ie=je[2]),Je=new ie(Je),xt=new ie(xt),Ie=new ie(Ie),Je.next=Ie.previous=xt,xt.next=Je.previous=Ie,Ie.next=xt.previous=Je;e:for(nr=3;nr0)throw new Error("cycle");return nr}return xt.id=function(Ie){return arguments.length?(je=Fe(Ie),xt):je},xt.parentId=function(Ie){return arguments.length?(Je=Fe(Ie),xt):Je},xt}function $e(je,Je){return je.parent===Je.parent?1:2}function Mt(je){var Je=je.children;return Je?Je[0]:je.t}function Ct(je){var Je=je.children;return Je?Je[Je.length-1]:je.t}function Vt(je,Je,xt){var Ie=xt/(Je.i-je.i);Je.c-=Ie,Je.s+=xt,je.c+=Ie,Je.z+=xt,Je.m+=xt}function It(je){for(var Je=0,xt=0,Ie=je.children,xe=Ie.length,Ce;--xe>=0;)Ce=Ie[xe],Ce.z+=Je,Ce.m+=Je,Je+=Ce.s+(xt+=Ce.c)}function Ot(je,Je,xt){return je.a.parent===Je.parent?je.a:xt}function bt(je,Je){this._=je,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=Je}bt.prototype=Object.create(T.prototype);function rr(je){for(var Je=new bt(je,0),xt,Ie=[Je],xe,Ce,pt,nr;xt=Ie.pop();)if(Ce=xt._.children)for(xt.children=new Array(nr=Ce.length),pt=nr-1;pt>=0;--pt)Ie.push(xe=xt.children[pt]=new bt(Ce[pt],pt)),xe.parent=xt;return(Je.parent=new bt(null,0)).children=[Je],Je}function lr(){var je=$e,Je=1,xt=1,Ie=null;function xe(vr){var si=rr(vr);if(si.eachAfter(Ce),si.parent.m=-si.z,si.eachBefore(pt),Ie)vr.eachBefore(ir);else{var mi=vr,ei=vr,vi=vr;vr.eachBefore(function(Vn){Vn.xei.x&&(ei=Vn),Vn.depth>vi.depth&&(vi=Vn)});var ji=mi===ei?1:je(mi,ei)/2,Rn=ji-mi.x,wn=Je/(ei.x+ji+Rn),pn=xt/(vi.depth||1);vr.eachBefore(function(Vn){Vn.x=(Vn.x+Rn)*wn,Vn.y=Vn.depth*pn})}return vr}function Ce(vr){var si=vr.children,mi=vr.parent.children,ei=vr.i?mi[vr.i-1]:null;if(si){It(vr);var vi=(si[0].z+si[si.length-1].z)/2;ei?(vr.z=ei.z+je(vr._,ei._),vr.m=vr.z-vi):vr.z=vi}else ei&&(vr.z=ei.z+je(vr._,ei._));vr.parent.A=nr(vr,ei,vr.parent.A||mi[0])}function pt(vr){vr._.x=vr.z+vr.parent.m,vr.m+=vr.parent.m}function nr(vr,si,mi){if(si){for(var ei=vr,vi=vr,ji=si,Rn=ei.parent.children[0],wn=ei.m,pn=vi.m,Vn=ji.m,kn=Rn.m,ea;ji=Ct(ji),ei=Mt(ei),ji&&ei;)Rn=Mt(Rn),vi=Ct(vi),vi.a=vr,ea=ji.z+Vn-ei.z-wn+je(ji._,ei._),ea>0&&(Vt(Ot(ji,vr,mi),vr,ea),wn+=ea,pn+=ea),Vn+=ji.m,wn+=ei.m,kn+=Rn.m,pn+=vi.m;ji&&!Ct(vi)&&(vi.t=ji,vi.m+=Vn-pn),ei&&!Mt(Rn)&&(Rn.t=ei,Rn.m+=wn-kn,mi=vr)}return mi}function ir(vr){vr.x*=Je,vr.y=vr.depth*xt}return xe.separation=function(vr){return arguments.length?(je=vr,xe):je},xe.size=function(vr){return arguments.length?(Ie=!1,Je=+vr[0],xt=+vr[1],xe):Ie?null:[Je,xt]},xe.nodeSize=function(vr){return arguments.length?(Ie=!0,Je=+vr[0],xt=+vr[1],xe):Ie?[Je,xt]:null},xe}function wr(je,Je,xt,Ie,xe){for(var Ce=je.children,pt,nr=-1,ir=Ce.length,vr=je.value&&(xe-xt)/je.value;++nrVn&&(Vn=vr),Ht=wn*wn*ua,kn=Math.max(Vn/Ht,Ht/pn),kn>ea){wn-=vr;break}ea=kn}pt.push(ir={value:wn,dice:vi1?Ie:1)},xt}(Cr);function Yr(){var je=Gr,Je=!1,xt=1,Ie=1,xe=[0],Ce=Pe,pt=Pe,nr=Pe,ir=Pe,vr=Pe;function si(ei){return ei.x0=ei.y0=0,ei.x1=xt,ei.y1=Ie,ei.eachBefore(mi),xe=[0],Je&&ei.eachBefore(Kt),ei}function mi(ei){var vi=xe[ei.depth],ji=ei.x0+vi,Rn=ei.y0+vi,wn=ei.x1-vi,pn=ei.y1-vi;wn=ei-1){var Vn=Ce[mi];Vn.x0=ji,Vn.y0=Rn,Vn.x1=wn,Vn.y1=pn;return}for(var kn=vr[mi],ea=vi/2+kn,ua=mi+1,Ht=ei-1;ua>>1;vr[yt]pn-Rn){var Er=(ji*ar+wn*er)/vi;si(mi,ua,er,ji,Rn,Er,pn),si(ua,ei,ar,Er,Rn,wn,pn)}else{var Xr=(Rn*ar+pn*er)/vi;si(mi,ua,er,ji,Rn,wn,Xr),si(ua,ei,ar,ji,Xr,wn,pn)}}}function Ge(je,Je,xt,Ie,xe){(je.depth&1?wr:st)(je,Je,xt,Ie,xe)}var Qe=function je(Je){function xt(Ie,xe,Ce,pt,nr){if((ir=Ie._squarify)&&ir.ratio===Je)for(var ir,vr,si,mi,ei=-1,vi,ji=ir.length,Rn=Ie.value;++ei1?Ie:1)},xt}(Cr);e.cluster=l,e.hierarchy=_,e.pack=ce,e.packEnclose=V,e.packSiblings=Le,e.partition=lt,e.stratify=ur,e.tree=lr,e.treemap=Yr,e.treemapBinary=dt,e.treemapDice=st,e.treemapResquarify=Qe,e.treemapSlice=wr,e.treemapSliceDice=Ge,e.treemapSquarify=Gr,Object.defineProperty(e,"__esModule",{value:!0})})});var kE=ye(CE=>{"use strict";var BCe=EE(),Rkt=Eo(),wA=Dr(),Dkt=tc().makeColorScaleFuncFromTrace,Fkt=_A().makePullColorFn,zkt=_A().generateExtendedColors,Okt=tc().calc,qkt=hs().ALMOST_EQUAL,Bkt={},Nkt={},Ukt={};CE.calc=function(e,t){var r=e._fullLayout,n=t.ids,i=wA.isArrayOrTypedArray(n),a=t.labels,o=t.parents,s=t.values,l=wA.isArrayOrTypedArray(s),u=[],c={},f={},h=function(H,N){c[H]?c[H].push(N):c[H]=[N],f[N]=1},d=function(H){return H||typeof H=="number"},v=function(H){return!l||Rkt(s[H])&&s[H]>=0},x,b,p;i?(x=Math.min(n.length,o.length),b=function(H){return d(n[H])&&v(H)},p=function(H){return String(n[H])}):(x=Math.min(a.length,o.length),b=function(H){return d(a[H])&&v(H)},p=function(H){return String(a[H])}),l&&(x=Math.min(x,s.length));for(var C=0;C1){for(var M=wA.randstr(),g=0;g{"use strict";var eCt=rc().str2arr,tCt=rc().sliceEq,eEe=rc().readUInt32BE,rCt=eCt("8BPS\0");tEe.exports=function(e){if(!(e.length<22)&&tCt(e,0,rCt))return{width:eEe(e,18),height:eEe(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var aEe=ye((Shr,nEe)=>{"use strict";function iCt(e){return e===32||e===9||e===13||e===10}function yA(e){return typeof e=="number"&&isFinite(e)&&e>0}function nCt(e){var t=0,r=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(t=3);t]*>/,oCt=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,sCt=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,lCt=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,uCt=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,iEe=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function cCt(e){var t=e.match(sCt),r=e.match(lCt),n=e.match(uCt);return{width:t&&(t[1]||t[2]),height:r&&(r[1]||r[2]),viewbox:n&&(n[1]||n[2])}}function Nm(e){return iEe.test(e)?e.match(iEe)[0]:"px"}nEe.exports=function(e){if(nCt(e)){for(var t="",r=0;r{"use strict";var lEe=rc().str2arr,oEe=rc().sliceEq,fCt=rc().readUInt16LE,hCt=rc().readUInt16BE,dCt=rc().readUInt32LE,vCt=rc().readUInt32BE,pCt=lEe("II*\0"),gCt=lEe("MM\0*");function sD(e,t,r){return r?hCt(e,t):fCt(e,t)}function sW(e,t,r){return r?vCt(e,t):dCt(e,t)}function sEe(e,t,r){var n=sD(e,t+2,r),i=sW(e,t+4,r);return i!==1||n!==3&&n!==4?null:n===3?sD(e,t+8,r):sW(e,t+8,r)}uEe.exports=function(e){if(!(e.length<8)&&!(!oEe(e,0,pCt)&&!oEe(e,0,gCt))){var t=e[0]===77,r=sW(e,4,t)-8;if(!(r<0)){var n=r+8;if(!(e.length-n<2)){var i=sD(e,n+0,t)*12;if(!(i<=0)&&(n+=2,!(e.length-n{"use strict";var dEe=rc().str2arr,fEe=rc().sliceEq,hEe=rc().readUInt16LE,lW=rc().readUInt32LE,mCt=aD(),yCt=dEe("RIFF"),_Ct=dEe("WEBP");function xCt(e,t){if(!(e[t+3]!==157||e[t+4]!==1||e[t+5]!==42))return{width:hEe(e,t+6)&16383,height:hEe(e,t+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function bCt(e,t){if(e[t]===47){var r=lW(e,t+1);return{width:(r&16383)+1,height:(r>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function wCt(e,t){return{width:(e[t+6]<<16|e[t+5]<<8|e[t+4])+1,height:(e[t+9]<e.length)){for(;t+8=10?r=r||xCt(e,t+8):a==="VP8L"&&o>=9?r=r||bCt(e,t+8):a==="VP8X"&&o>=10?r=r||wCt(e,t+8):a==="EXIF"&&(n=mCt.get_orientation(e.slice(t+8,t+8+o)),t=1/0),t+=8+o}if(r)return n>0&&(r.orientation=n),r}}}});var mEe=ye((Chr,gEe)=>{"use strict";gEe.exports={avif:F4e(),bmp:q4e(),gif:G4e(),ico:W4e(),jpeg:Z4e(),png:Q4e(),psd:rEe(),svg:aEe(),tiff:cEe(),webp:pEe()}});var yEe=ye((khr,cW)=>{"use strict";var uW=mEe();function TCt(e){for(var t=Object.keys(uW),r=0;r{"use strict";var ACt=yEe(),SCt=Ly().IMAGE_URL_PREFIX,MCt=u2().Buffer;_Ee.getImageSize=function(e){var t=e.replace(SCt,""),r=new MCt(t,"base64");return ACt(r)}});var TEe=ye((Phr,wEe)=>{"use strict";var bEe=Dr(),ECt=jT(),CCt=Eo(),lD=ho(),kCt=Dr().maxRowLength,LCt=xEe().getImageSize;wEe.exports=function(t,r){var n,i;if(r._hasZ)n=r.z.length,i=kCt(r.z);else if(r._hasSource){var a=LCt(r.source);n=a.height,i=a.width}var o=lD.getFromId(t,r.xaxis||"x"),s=lD.getFromId(t,r.yaxis||"y"),l=o.d2c(r.x0)-r.dx/2,u=s.d2c(r.y0)-r.dy/2,c,f=[l,l+i*r.dx],h=[u,u+n*r.dy];if(o&&o.type==="log")for(c=0;c{"use strict";var DCt=Oa(),T2=Dr(),AEe=T2.strTranslate,FCt=Wp(),zCt=jT(),OCt=KV(),qCt=l8().STYLE;SEe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis,s=!t._context._exportedPlot&&OCt();T2.makeTraceGroups(i,n,"im").each(function(l){var u=DCt.select(this),c=l[0],f=c.trace,h=(f.zsmooth==="fast"||f.zsmooth===!1&&s)&&!f._hasZ&&f._hasSource&&a.type==="linear"&&o.type==="linear";f._realImage=h;var d=c.z,v=c.x0,_=c.y0,b=c.w,p=c.h,C=f.dx,E=f.dy,A,L,x,k,M,g;for(g=0;A===void 0&&g0;)L=a.c2p(v+g*C),g--;for(g=0;k===void 0&&g0;)M=o.c2p(_+g*E),g--;if(Lj[0];if(re||oe){var _e=A+T/2,Me=k+z/2;H+="transform:"+AEe(_e+"px",Me+"px")+"scale("+(re?-1:1)+","+(oe?-1:1)+")"+AEe(-_e+"px",-Me+"px")+";"}}Z.attr("style",H);var ke=new Promise(function(me){if(f._hasZ)me();else if(f._hasSource)if(f._canvas&&f._canvas.el.width===b&&f._canvas.el.height===p&&f._canvas.source===f.source)me();else{var ie=document.createElement("canvas");ie.width=b,ie.height=p;var Se=ie.getContext("2d",{willReadFrequently:!0});f._image=f._image||new Image;var Le=f._image;Le.onload=function(){Se.drawImage(Le,0,0),f._canvas={el:ie,source:f.source},me()},Le.setAttribute("src",f.source)}}).then(function(){var me,ie;if(f._hasZ)ie=G(function(Ae,De){var Pe=d[De][Ae];return T2.isTypedArray(Pe)&&(Pe=Array.from(Pe)),Pe}),me=ie.toDataURL("image/png");else if(f._hasSource)if(h)me=f.source;else{var Se=f._canvas.el.getContext("2d",{willReadFrequently:!0}),Le=Se.getImageData(0,0,b,p).data;ie=G(function(Ae,De){var Pe=4*(De*b+Ae);return[Le[Pe],Le[Pe+1],Le[Pe+2],Le[Pe+3]]}),me=ie.toDataURL("image/png")}Z.attr({"xlink:href":me,height:z,width:T,x:A,y:k})});t._promises.push(ke)})}});var CEe=ye((Rhr,EEe)=>{"use strict";var BCt=Oa();EEe.exports=function(t){BCt.select(t).selectAll(".im image").style("opacity",function(r){return r[0].trace.opacity})}});var IEe=ye((Dhr,PEe)=>{"use strict";var kEe=vf(),LEe=Dr(),uD=LEe.isArrayOrTypedArray,NCt=jT();PEe.exports=function(t,r,n){var i=t.cd[0],a=i.trace,o=t.xa,s=t.ya;if(!(kEe.inbox(r-i.x0,r-(i.x0+i.w*a.dx),0)>0||kEe.inbox(n-i.y0,n-(i.y0+i.h*a.dy),0)>0)){var l=Math.floor((r-i.x0)/a.dx),u=Math.floor(Math.abs(n-i.y0)/a.dy),c;if(a._hasZ?c=i.z[u][l]:a._hasSource&&(c=a._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(l,u,1,1).data),!!c){var f=i.hi||a.hoverinfo,h;if(f){var d=f.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(h=!0)}var v=NCt.colormodel[a.colormodel],_=v.colormodel||a.colormodel,b=_.length,p=a._scaler(c),C=v.suffix,E=[];(a.hovertemplate||h)&&(E.push("["+[p[0]+C[0],p[1]+C[1],p[2]+C[2]].join(", ")),b===4&&E.push(", "+p[3]+C[3]),E.push("]"),E=E.join(""),t.extraText=_.toUpperCase()+": "+E);var A;uD(a.hovertext)&&uD(a.hovertext[u])?A=a.hovertext[u][l]:uD(a.text)&&uD(a.text[u])&&(A=a.text[u][l]);var L=s.c2p(i.y0+(u+.5)*a.dy),x=i.x0+(l+.5)*a.dx,k=i.y0+(u+.5)*a.dy,M="["+c.slice(0,a.colormodel.length).join(", ")+"]";return[LEe.extendFlat(t,{index:[u,l],x0:o.c2p(i.x0+l*a.dx),x1:o.c2p(i.x0+(l+1)*a.dx),y0:L,y1:L,color:p,xVal:x,xLabelVal:x,yVal:k,yLabelVal:k,zLabelVal:M,text:A,hovertemplateLabels:{zLabel:M,colorLabel:E,"color[0]Label":p[0]+C[0],"color[1]Label":p[1]+C[1],"color[2]Label":p[2]+C[2],"color[3]Label":p[3]+C[3]}})]}}}});var DEe=ye((Fhr,REe)=>{"use strict";REe.exports=function(t,r){return"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t.color=r.color,t.colormodel=r.trace.colormodel,t.z||(t.z=r.color),t}});var zEe=ye((zhr,FEe)=>{"use strict";FEe.exports={attributes:oH(),supplyDefaults:I3e(),calc:TEe(),plot:MEe(),style:CEe(),hoverPoints:IEe(),eventData:DEe(),moduleType:"trace",name:"image",basePlotModule:vh(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var qEe=ye((Ohr,OEe)=>{"use strict";OEe.exports=zEe()});var A2=ye((qhr,BEe)=>{"use strict";var UCt=Vl(),VCt=kc().attributes,GCt=ec(),HCt=Eh(),jCt=Qo().hovertemplateAttrs,WCt=Qo().texttemplateAttrs,ME=Ao().extendFlat,XCt=Pd().pattern,cD=GCt({editType:"plot",arrayOk:!0,colorEditType:"plot"});BEe.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:HCt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:XCt,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:ME({},UCt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:jCt({},{keys:["label","color","value","percent","text"]}),texttemplate:WCt({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:ME({},cD,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:ME({},cD,{}),outsidetextfont:ME({},cD,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:ME({},cD,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:VCt({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"}}});var S2=ye((Bhr,VEe)=>{"use strict";var ZCt=Eo(),EE=Dr(),YCt=A2(),KCt=kc().defaults,JCt=r0().handleText,$Ct=Dr().coercePattern;function NEe(e,t){var r=EE.isArrayOrTypedArray(e),n=EE.isArrayOrTypedArray(t),i=Math.min(r?e.length:1/0,n?t.length:1/0);if(isFinite(i)||(i=0),i&&n){for(var a,o=0;o0){a=!0;break}}a||(i=0)}return{hasLabels:r,hasValues:n,len:i}}function UEe(e,t,r,n,i){var a=n("marker.line.width");a&&n("marker.line.color",i?void 0:r.paper_bgcolor);var o=n("marker.colors");$Ct(n,"marker.pattern",o),e.marker&&!t.marker.pattern.fgcolor&&(t.marker.pattern.fgcolor=e.marker.colors),t.marker.pattern.bgcolor||(t.marker.pattern.bgcolor=r.paper_bgcolor)}function QCt(e,t,r,n){function i(C,E){return EE.coerce(e,t,YCt,C,E)}var a=i("labels"),o=i("values"),s=NEe(a,o),l=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(i("label0"),i("dlabel")),!l){t.visible=!1;return}t._length=l,UEe(e,t,n,i,!0),i("scalegroup");var u=i("text"),c=i("texttemplate"),f;if(c||(f=i("textinfo",EE.isArrayOrTypedArray(u)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),c||f&&f!=="none"){var h=i("textposition");JCt(e,t,n,i,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",v=d||h==="outside";v&&i("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&i("insidetextorientation")}else f==="none"&&i("textposition","none");KCt(t,n,i);var _=i("hole"),b=i("title.text");if(b){var p=i("title.position",_?"middle center":"top center");!_&&p==="middle center"&&(t.title.position="top center"),EE.coerceFont(i,"title.font",n.font)}i("sort"),i("direction"),i("rotation"),i("pull")}VEe.exports={handleLabelsAndValues:NEe,handleMarkerDefaults:UEe,supplyDefaults:QCt}});var fD=ye((Nhr,GEe)=>{"use strict";GEe.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var jEe=ye((Uhr,HEe)=>{"use strict";var ekt=Dr(),tkt=fD();HEe.exports=function(t,r){function n(i,a){return ekt.coerce(t,r,tkt,i,a)}n("hiddenlabels"),n("piecolorway",r.colorway),n("extendpiecolors")}});var _A=ye((Vhr,ZEe)=>{"use strict";var rkt=Eo(),fW=cd(),ikt=Ca(),nkt={};function akt(e,t){var r=[],n=e._fullLayout,i=n.hiddenlabels||[],a=t.labels,o=t.marker.colors||[],s=t.values,l=t._length,u=t._hasValues&&l,c,f;if(t.dlabel)for(a=new Array(l),c=0;c=0});var A=t.type==="funnelarea"?_:t.sort;return A&&r.sort(function(L,x){return x.v-L.v}),r[0]&&(r[0].vTotal=v),r}function WEe(e){return function(r,n){return!r||(r=fW(r),!r.isValid())?!1:(r=ikt.addOpacity(r,r.getAlpha()),e[n]||(e[n]=r),r)}}function okt(e,t){var r=(t||{}).type;r||(r="pie");var n=e._fullLayout,i=e.calcdata,a=n[r+"colorway"],o=n["_"+r+"colormap"];n["extend"+r+"colors"]&&(a=XEe(a,nkt));for(var s=0,l=0;l{"use strict";var skt=rp().appendArrayMultiPointValues;YEe.exports=function(t,r){var n={curveNumber:r.index,pointNumbers:t.pts,data:r._input,fullData:r,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,bbox:t.bbox,v:t.v};return t.pts.length===1&&(n.pointNumber=n.i=t.pts[0]),skt(n,r,t.pts),r.type==="funnelarea"&&(delete n.v,delete n.i),n}});var pD=ye((Hhr,mCe)=>{"use strict";var Dp=Oa(),lkt=Mc(),hD=vf(),rCe=Ca(),Wy=So(),rv=Dr(),ukt=rv.strScale,JEe=rv.strTranslate,hW=iu(),iCe=_v(),ckt=iCe.recordMinTextSize,fkt=iCe.clearMinTextSize,nCe=Qb().TEXTPAD,as=u_(),dD=KEe(),$Ee=Dr().isValidTextValue;function hkt(e,t){var r=e._context.staticPlot,n=e._fullLayout,i=n._size;fkt("pie",n),sCe(t,e),vCe(t,i);var a=rv.makeTraceGroups(n._pielayer,t,"trace").each(function(o){var s=Dp.select(this),l=o[0],u=l.trace;bkt(o),s.attr("stroke-linejoin","round"),s.each(function(){var c=Dp.select(this).selectAll("g.slice").data(o);c.enter().append("g").classed("slice",!0),c.exit().remove();var f=[[[],[]],[[],[]]],h=!1;c.each(function(A,L){if(A.hidden){Dp.select(this).selectAll("path,g").remove();return}A.pointNumber=A.i,A.curveNumber=u.index,f[A.pxmid[1]<0?0:1][A.pxmid[0]<0?0:1].push(A);var x=l.cx,k=l.cy,M=Dp.select(this),g=M.selectAll("path.surface").data([A]);if(g.enter().append("path").classed("surface",!0).style({"pointer-events":r?"none":"all"}),M.call(aCe,e,o),u.pull){var P=+as.castOption(u.pull,A.pts)||0;P>0&&(x+=P*A.pxmid[0],k+=P*A.pxmid[1])}A.cxFinal=x,A.cyFinal=k;function T(N,j,re,oe){var _e=oe*(j[0]-N[0]),Me=oe*(j[1]-N[1]);return"a"+oe*l.r+","+oe*l.r+" 0 "+A.largeArc+(re?" 1 ":" 0 ")+_e+","+Me}var z=u.hole;if(A.v===l.vTotal){var O="M"+(x+A.px0[0])+","+(k+A.px0[1])+T(A.px0,A.pxmid,!0,1)+T(A.pxmid,A.px0,!0,1)+"Z";z?g.attr("d","M"+(x+z*A.px0[0])+","+(k+z*A.px0[1])+T(A.px0,A.pxmid,!1,z)+T(A.pxmid,A.px0,!1,z)+"Z"+O):g.attr("d",O)}else{var V=T(A.px0,A.px1,!0,1);if(z){var G=1-z;g.attr("d","M"+(x+z*A.px1[0])+","+(k+z*A.px1[1])+T(A.px1,A.px0,!1,z)+"l"+G*A.px0[0]+","+G*A.px0[1]+V+"Z")}else g.attr("d","M"+x+","+k+"l"+A.px0[0]+","+A.px0[1]+V+"Z")}pCe(e,A,l);var Z=as.castOption(u.textposition,A.pts),H=M.selectAll("g.slicetext").data(A.text&&Z!=="none"?[0]:[]);H.enter().append("g").classed("slicetext",!0),H.exit().remove(),H.each(function(){var N=rv.ensureSingle(Dp.select(this),"text","",function(ie){ie.attr("data-notex",1)}),j=rv.ensureUniformFontSize(e,Z==="outside"?vkt(u,A,n.font):oCe(u,A,n.font));N.text(A.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(Wy.font,j).call(hW.convertToTspans,e);var re=Wy.bBox(N.node()),oe;if(Z==="outside")oe=tCe(re,A);else if(oe=lCe(re,A,l),Z==="auto"&&oe.scale<1){var _e=rv.ensureUniformFontSize(e,u.outsidetextfont);N.call(Wy.font,_e),re=Wy.bBox(N.node()),oe=tCe(re,A)}var Me=oe.textPosAngle,ke=Me===void 0?A.pxmid:vD(l.r,Me);if(oe.targetX=x+ke[0]*oe.rCenter+(oe.x||0),oe.targetY=k+ke[1]*oe.rCenter+(oe.y||0),gCe(oe,re),oe.outside){var me=oe.targetY;A.yLabelMin=me-re.height/2,A.yLabelMid=me,A.yLabelMax=me+re.height/2,A.labelExtraX=0,A.labelExtraY=0,h=!0}oe.fontSize=j.size,ckt(u.type,oe,n),o[L].transform=oe,rv.setTransormAndDisplay(N,oe)})});var d=Dp.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var A=rv.ensureSingle(Dp.select(this),"text","",function(k){k.attr("data-notex",1)}),L=u.title.text;u._meta&&(L=rv.templateString(L,u._meta)),A.text(L).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(Wy.font,u.title.font).call(hW.convertToTspans,e);var x;u.title.position==="middle center"?x=mkt(l):x=hCe(l,i),A.attr("transform",JEe(x.x,x.y)+ukt(Math.min(1,x.scale))+JEe(x.tx,x.ty))}),h&&_kt(f,u),dkt(c,u),h&&u.automargin){var v=Wy.bBox(s.node()),_=u.domain,b=i.w*(_.x[1]-_.x[0]),p=i.h*(_.y[1]-_.y[0]),C=(.5*b-l.r)/i.w,E=(.5*p-l.r)/i.h;lkt.autoMargin(e,"pie."+u.uid+".automargin",{xl:_.x[0]-C,xr:_.x[1]+C,yb:_.y[0]-E,yt:_.y[1]+E,l:Math.max(l.cx-l.r-v.left,0),r:Math.max(v.right-(l.cx+l.r),0),b:Math.max(v.bottom-(l.cy+l.r),0),t:Math.max(l.cy-l.r-v.top,0),pad:5})}})});setTimeout(function(){a.selectAll("tspan").each(function(){var o=Dp.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function dkt(e,t){e.each(function(r){var n=Dp.select(this);if(!r.labelExtraX&&!r.labelExtraY){n.select("path.textline").remove();return}var i=n.select("g.slicetext text");r.transform.targetX+=r.labelExtraX,r.transform.targetY+=r.labelExtraY,rv.setTransormAndDisplay(i,r.transform);var a=r.cxFinal+r.pxmid[0],o=r.cyFinal+r.pxmid[1],s="M"+a+","+o,l=(r.yLabelMax-r.yLabelMin)*(r.pxmid[0]<0?-1:1)/4;if(r.labelExtraX){var u=r.labelExtraX*r.pxmid[1]/r.pxmid[0],c=r.yLabelMid+r.labelExtraY-(r.cyFinal+r.pxmid[1]);Math.abs(u)>Math.abs(c)?s+="l"+c*r.pxmid[0]/r.pxmid[1]+","+c+"H"+(a+r.labelExtraX+l):s+="l"+r.labelExtraX+","+u+"v"+(c-u)+"h"+l}else s+="V"+(r.yLabelMid+r.labelExtraY)+"h"+l;rv.ensureSingle(n,"path","textline").call(rCe.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})})}function aCe(e,t,r){var n=r[0],i=n.cx,a=n.cy,o=n.trace,s=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(l){var u=t._fullLayout,c=t._fullData[o.index];if(!(t._dragging||u.hovermode===!1)){var f=c.hoverinfo;if(Array.isArray(f)&&(f=hD.castHoverinfo({hoverinfo:[as.castOption(f,l.pts)],_module:o._module},u,0)),f==="all"&&(f="label+text+value+percent+name"),c.hovertemplate||f!=="none"&&f!=="skip"&&f){var h=l.rInscribed||0,d=i+l.pxmid[0]*(1-h),v=a+l.pxmid[1]*(1-h),_=u.separators,b=[];if(f&&f.indexOf("label")!==-1&&b.push(l.label),l.text=as.castOption(c.hovertext||c.text,l.pts),f&&f.indexOf("text")!==-1){var p=l.text;rv.isValidTextValue(p)&&b.push(p)}l.value=l.v,l.valueLabel=as.formatPieValue(l.v,_),f&&f.indexOf("value")!==-1&&b.push(l.valueLabel),l.percent=l.v/n.vTotal,l.percentLabel=as.formatPiePercent(l.percent,_),f&&f.indexOf("percent")!==-1&&b.push(l.percentLabel);var C=c.hoverlabel,E=C.font,A=[];hD.loneHover({trace:o,x0:d-h*n.r,x1:d+h*n.r,y:v,_x0:s?i+l.TL[0]:d-h*n.r,_x1:s?i+l.TR[0]:d+h*n.r,_y0:s?a+l.TL[1]:v-h*n.r,_y1:s?a+l.BL[1]:v+h*n.r,text:b.join("
"),name:c.hovertemplate||f.indexOf("name")!==-1?c.name:void 0,idealAlign:l.pxmid[0]<0?"left":"right",color:as.castOption(C.bgcolor,l.pts)||l.color,borderColor:as.castOption(C.bordercolor,l.pts),fontFamily:as.castOption(E.family,l.pts),fontSize:as.castOption(E.size,l.pts),fontColor:as.castOption(E.color,l.pts),nameLength:as.castOption(C.namelength,l.pts),textAlign:as.castOption(C.align,l.pts),hovertemplate:as.castOption(c.hovertemplate,l.pts),hovertemplateLabels:l,eventData:[dD(l,c)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:t,inOut_bbox:A}),l.bbox=A[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[dD(l,c)],event:Dp.event})}}),e.on("mouseout",function(l){var u=t._fullLayout,c=t._fullData[o.index],f=Dp.select(this).datum();o._hasHoverEvent&&(l.originalEvent=Dp.event,t.emit("plotly_unhover",{points:[dD(f,c)],event:Dp.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(hD.loneUnhover(u._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(l){var u=t._fullLayout,c=t._fullData[o.index];t._dragging||u.hovermode===!1||(t._hoverdata=[dD(l,c)],hD.click(t,Dp.event))})}function vkt(e,t,r){var n=as.castOption(e.outsidetextfont.color,t.pts)||as.castOption(e.textfont.color,t.pts)||r.color,i=as.castOption(e.outsidetextfont.family,t.pts)||as.castOption(e.textfont.family,t.pts)||r.family,a=as.castOption(e.outsidetextfont.size,t.pts)||as.castOption(e.textfont.size,t.pts)||r.size,o=as.castOption(e.outsidetextfont.weight,t.pts)||as.castOption(e.textfont.weight,t.pts)||r.weight,s=as.castOption(e.outsidetextfont.style,t.pts)||as.castOption(e.textfont.style,t.pts)||r.style,l=as.castOption(e.outsidetextfont.variant,t.pts)||as.castOption(e.textfont.variant,t.pts)||r.variant,u=as.castOption(e.outsidetextfont.textcase,t.pts)||as.castOption(e.textfont.textcase,t.pts)||r.textcase,c=as.castOption(e.outsidetextfont.lineposition,t.pts)||as.castOption(e.textfont.lineposition,t.pts)||r.lineposition,f=as.castOption(e.outsidetextfont.shadow,t.pts)||as.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n,family:i,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:c,shadow:f}}function oCe(e,t,r){var n=as.castOption(e.insidetextfont.color,t.pts);!n&&e._input.textfont&&(n=as.castOption(e._input.textfont.color,t.pts));var i=as.castOption(e.insidetextfont.family,t.pts)||as.castOption(e.textfont.family,t.pts)||r.family,a=as.castOption(e.insidetextfont.size,t.pts)||as.castOption(e.textfont.size,t.pts)||r.size,o=as.castOption(e.insidetextfont.weight,t.pts)||as.castOption(e.textfont.weight,t.pts)||r.weight,s=as.castOption(e.insidetextfont.style,t.pts)||as.castOption(e.textfont.style,t.pts)||r.style,l=as.castOption(e.insidetextfont.variant,t.pts)||as.castOption(e.textfont.variant,t.pts)||r.variant,u=as.castOption(e.insidetextfont.textcase,t.pts)||as.castOption(e.textfont.textcase,t.pts)||r.textcase,c=as.castOption(e.insidetextfont.lineposition,t.pts)||as.castOption(e.textfont.lineposition,t.pts)||r.lineposition,f=as.castOption(e.insidetextfont.shadow,t.pts)||as.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n||rCe.contrast(t.color),family:i,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:c,shadow:f}}function sCe(e,t){for(var r,n,i=0;i=-4;C-=2)p(Math.PI*C,"tan");for(C=4;C>=-4;C-=2)p(Math.PI*(C+1),"tan")}if(f||d){for(C=4;C>=-4;C-=2)p(Math.PI*(C+1.5),"rad");for(C=4;C>=-4;C-=2)p(Math.PI*(C+.5),"rad")}}if(s||v||f){var E=Math.sqrt(e.width*e.width+e.height*e.height);if(b={scale:i*n*2/E,rCenter:1-i,rotate:0},b.textPosAngle=(t.startangle+t.stopangle)/2,b.scale>=1)return b;_.push(b)}(v||d)&&(b=QEe(e,n,o,l,u),b.textPosAngle=(t.startangle+t.stopangle)/2,_.push(b)),(v||h)&&(b=eCe(e,n,o,l,u),b.textPosAngle=(t.startangle+t.stopangle)/2,_.push(b));for(var A=0,L=0,x=0;x<_.length;x++){var k=_[x].scale;if(L=1)break}return _[A]}function pkt(e,t){var r=e.startangle,n=e.stopangle;return r>t&&t>n||r0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function mkt(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function hCe(e,t){var r=1,n=1,i,a=e.trace,o={x:e.cx,y:e.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=dCe(a),a.title.position.indexOf("top")!==-1?(o.y-=(1+i)*e.r,s.ty-=e.titleBox.height):a.title.position.indexOf("bottom")!==-1&&(o.y+=(1+i)*e.r);var l=ykt(e.r,e.trace.aspectratio),u=t.w*(a.domain.x[1]-a.domain.x[0])/2;return a.title.position.indexOf("left")!==-1?(u=u+l,o.x-=(1+i)*l,s.tx+=e.titleBox.width/2):a.title.position.indexOf("center")!==-1?u*=2:a.title.position.indexOf("right")!==-1&&(u=u+l,o.x+=(1+i)*l,s.tx-=e.titleBox.width/2),r=u/e.titleBox.width,n=dW(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function ykt(e,t){return e/(t===void 0?1:t)}function dW(e,t){var r=e.trace,n=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,n/2)}function dCe(e){var t=e.pull;if(!t)return 0;var r;if(rv.isArrayOrTypedArray(t))for(t=0,r=0;rt&&(t=e.pull[r]);return t}function _kt(e,t){var r,n,i,a,o,s,l,u,c,f,h,d,v;function _(E,A){return E.pxmid[1]-A.pxmid[1]}function b(E,A){return A.pxmid[1]-E.pxmid[1]}function p(E,A){A||(A={});var L=A.labelExtraY+(n?A.yLabelMax:A.yLabelMin),x=n?E.yLabelMin:E.yLabelMax,k=n?E.yLabelMax:E.yLabelMin,M=E.cyFinal+o(E.px0[1],E.px1[1]),g=L-x,P,T,z,O,V,G;if(g*l>0&&(E.labelExtraY=g),!!rv.isArrayOrTypedArray(t.pull))for(T=0;T=(as.castOption(t.pull,z.pts)||0))&&((E.pxmid[1]-z.pxmid[1])*l>0?(O=z.cyFinal+o(z.px0[1],z.px1[1]),g=O-x-E.labelExtraY,g*l>0&&(E.labelExtraY+=g)):(k+E.labelExtraY-M)*l>0&&(P=3*s*Math.abs(T-f.indexOf(E)),V=z.cxFinal+a(z.px0[0],z.px1[0]),G=V+P-(E.cxFinal+E.pxmid[0])-E.labelExtraX,G*s>0&&(E.labelExtraX+=G)))}for(n=0;n<2;n++)for(i=n?_:b,o=n?Math.max:Math.min,l=n?1:-1,r=0;r<2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,u=e[n][r],u.sort(i),c=e[1-n][r],f=c.concat(u),d=[],h=0;h1?(u=r.r,c=u/i.aspectratio):(c=r.r,u=c*i.aspectratio),u*=(1+i.baseratio)/2,l=u*c}o=Math.min(o,l/r.vTotal)}for(n=0;nt.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/t.vTotal,.5),u.ring=1-n.hole,u.rInscribed=gkt(u,t))}function vD(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function pCe(e,t,r){var n=e._fullLayout,i=r.trace,a=i.texttemplate,o=i.textinfo;if(!a&&o&&o!=="none"){var s=o.split("+"),l=function(A){return s.indexOf(A)!==-1},u=l("label"),c=l("text"),f=l("value"),h=l("percent"),d=n.separators,v;if(v=u?[t.label]:[],c){var _=as.getFirstFilled(i.text,t.pts);$Ee(_)&&v.push(_)}f&&v.push(as.formatPieValue(t.v,d)),h&&v.push(as.formatPiePercent(t.v/r.vTotal,d)),t.text=v.join("
")}function b(A){return{label:A.label,value:A.v,valueLabel:as.formatPieValue(A.v,n.separators),percent:A.v/r.vTotal,percentLabel:as.formatPiePercent(A.v/r.vTotal,n.separators),color:A.color,text:A.text,customdata:rv.castOption(i,A.i,"customdata")}}if(a){var p=rv.castOption(i,t.i,"texttemplate");if(!p)t.text="";else{var C=b(t),E=as.getFirstFilled(i.text,t.pts);($Ee(E)||E==="")&&(C.text=E),t.text=rv.texttemplateString(p,C,e._fullLayout._d3locale,C,i._meta||{})}}}function gCe(e,t){var r=e.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=a*n-o*i,e.textY=a*i+o*n,e.noCenter=!0}mCe.exports={plot:hkt,formatSliceLabel:pCe,transformInsideText:lCe,determineInsideTextFont:oCe,positionTitleOutside:hCe,prerenderTitles:sCe,layoutAreas:vCe,attachFxHandlers:aCe,computeTransform:gCe}});var xCe=ye((jhr,_Ce)=>{"use strict";var yCe=Oa(),wkt=F3(),Tkt=_v().resizeText;_Ce.exports=function(t){var r=t._fullLayout._pielayer.selectAll(".trace");Tkt(t,r,"pie"),r.each(function(n){var i=n[0],a=i.trace,o=yCe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){yCe.select(this).call(wkt,s,a,t)})})}});var wCe=ye(xA=>{"use strict";var bCe=Mc();xA.name="pie";xA.plot=function(e,t,r,n){bCe.plotBasePlot(xA.name,e,t,r,n)};xA.clean=function(e,t,r,n){bCe.cleanBasePlot(xA.name,e,t,r,n)}});var ACe=ye((Xhr,TCe)=>{"use strict";TCe.exports={attributes:A2(),supplyDefaults:S2().supplyDefaults,supplyLayoutDefaults:jEe(),layoutAttributes:fD(),calc:_A().calc,crossTraceCalc:_A().crossTraceCalc,plot:pD().plot,style:xCe(),styleOne:F3(),moduleType:"trace",name:"pie",basePlotModule:wCe(),categories:["pie-like","pie","showLegend"],meta:{}}});var MCe=ye((Zhr,SCe)=>{"use strict";SCe.exports=ACe()});var CCe=ye(bA=>{"use strict";var ECe=Mc();bA.name="sunburst";bA.plot=function(e,t,r,n){ECe.plotBasePlot(bA.name,e,t,r,n)};bA.clean=function(e,t,r,n){ECe.cleanBasePlot(bA.name,e,t,r,n)}});var vW=ye((Khr,kCe)=>{"use strict";kCe.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}});var kE=ye((Jhr,PCe)=>{"use strict";var Akt=Vl(),Skt=Qo().hovertemplateAttrs,Mkt=Qo().texttemplateAttrs,Ekt=Tu(),Ckt=kc().attributes,Xy=A2(),LCe=vW(),CE=Ao().extendFlat,kkt=Pd().pattern;PCe.exports={labels:{valType:"data_array",editType:"calc"},parents:{valType:"data_array",editType:"calc"},values:{valType:"data_array",editType:"calc"},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc"},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc"},level:{valType:"any",editType:"plot",anim:!0},maxdepth:{valType:"integer",editType:"plot",dflt:-1},marker:CE({colors:{valType:"data_array",editType:"calc"},line:{color:CE({},Xy.marker.line.color,{dflt:null}),width:CE({},Xy.marker.line.width,{dflt:1}),editType:"calc"},pattern:kkt,editType:"calc"},Ekt("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1},editType:"plot"},text:Xy.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot"},texttemplate:Mkt({editType:"plot"},{keys:LCe.eventDataKeys.concat(["label","value"])}),hovertext:Xy.hovertext,hoverinfo:CE({},Akt.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:Skt({},{keys:LCe.eventDataKeys}),textfont:Xy.textfont,insidetextorientation:Xy.insidetextorientation,insidetextfont:Xy.insidetextfont,outsidetextfont:CE({},Xy.outsidetextfont,{}),rotation:{valType:"angle",dflt:0,editType:"plot"},sort:Xy.sort,root:{color:{valType:"color",editType:"calc",dflt:"rgba(0,0,0,0)"},editType:"calc"},domain:Ckt({name:"sunburst",trace:!0,editType:"calc"})}});var pW=ye(($hr,ICe)=>{"use strict";ICe.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var zCe=ye((Qhr,FCe)=>{"use strict";var RCe=Dr(),Lkt=kE(),Pkt=kc().defaults,Ikt=r0().handleText,Rkt=S2().handleMarkerDefaults,DCe=tc(),Dkt=DCe.hasColorscale,Fkt=DCe.handleDefaults;FCe.exports=function(t,r,n,i){function a(h,d){return RCe.coerce(t,r,Lkt,h,d)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),Rkt(t,r,i,a);var u=r._hasColorscale=Dkt(t,"marker","colors")||(t.marker||{}).coloraxis;u&&Fkt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",u?1:.7);var c=a("text");a("texttemplate"),r.texttemplate||a("textinfo",RCe.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate");var f="auto";Ikt(t,r,i,a,f,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("insidetextorientation"),a("sort"),a("rotation"),a("root.color"),Pkt(r,i,a),r._length=null}});var qCe=ye((edr,OCe)=>{"use strict";var zkt=Dr(),Okt=pW();OCe.exports=function(t,r){function n(i,a){return zkt.coerce(t,r,Okt,i,a)}n("sunburstcolorway",r.colorway),n("extendsunburstcolors")}});var LE=ye((gD,BCe)=>{(function(e,t){typeof gD=="object"&&typeof BCe!="undefined"?t(gD):(e=e||self,t(e.d3=e.d3||{}))})(gD,function(e){"use strict";function t(je,$e){return je.parent===$e.parent?1:2}function r(je){return je.reduce(n,0)/je.length}function n(je,$e){return je+$e.x}function i(je){return 1+je.reduce(a,0)}function a(je,$e){return Math.max(je,$e.y)}function o(je){for(var $e;$e=je.children;)je=$e[0];return je}function s(je){for(var $e;$e=je.children;)je=$e[$e.length-1];return je}function l(){var je=t,$e=1,wt=1,Ie=!1;function xe(Ce){var vt,nr=0;Ce.eachAfter(function(Jr){var fi=Jr.children;fi?(Jr.x=r(fi),Jr.y=i(fi)):(Jr.x=vt?nr+=je(Jr,vt):0,Jr.y=0,vt=Jr)});var ir=o(Ce),pr=s(Ce),oi=ir.x-je(ir,pr)/2,di=pr.x+je(pr,ir)/2;return Ce.eachAfter(Ie?function(Jr){Jr.x=(Jr.x-Ce.x)*$e,Jr.y=(Ce.y-Jr.y)*wt}:function(Jr){Jr.x=(Jr.x-oi)/(di-oi)*$e,Jr.y=(1-(Ce.y?Jr.y/Ce.y:1))*wt})}return xe.separation=function(Ce){return arguments.length?(je=Ce,xe):je},xe.size=function(Ce){return arguments.length?(Ie=!1,$e=+Ce[0],wt=+Ce[1],xe):Ie?null:[$e,wt]},xe.nodeSize=function(Ce){return arguments.length?(Ie=!0,$e=+Ce[0],wt=+Ce[1],xe):Ie?[$e,wt]:null},xe}function u(je){var $e=0,wt=je.children,Ie=wt&&wt.length;if(!Ie)$e=1;else for(;--Ie>=0;)$e+=wt[Ie].value;je.value=$e}function c(){return this.eachAfter(u)}function f(je){var $e=this,wt,Ie=[$e],xe,Ce,vt;do for(wt=Ie.reverse(),Ie=[];$e=wt.pop();)if(je($e),xe=$e.children,xe)for(Ce=0,vt=xe.length;Ce=0;--xe)wt.push(Ie[xe]);return this}function d(je){for(var $e=this,wt=[$e],Ie=[],xe,Ce,vt;$e=wt.pop();)if(Ie.push($e),xe=$e.children,xe)for(Ce=0,vt=xe.length;Ce=0;)wt+=Ie[xe].value;$e.value=wt})}function _(je){return this.eachBefore(function($e){$e.children&&$e.children.sort(je)})}function b(je){for(var $e=this,wt=p($e,je),Ie=[$e];$e!==wt;)$e=$e.parent,Ie.push($e);for(var xe=Ie.length;je!==wt;)Ie.splice(xe,0,je),je=je.parent;return Ie}function p(je,$e){if(je===$e)return je;var wt=je.ancestors(),Ie=$e.ancestors(),xe=null;for(je=wt.pop(),$e=Ie.pop();je===$e;)xe=je,je=wt.pop(),$e=Ie.pop();return xe}function C(){for(var je=this,$e=[je];je=je.parent;)$e.push(je);return $e}function E(){var je=[];return this.each(function($e){je.push($e)}),je}function A(){var je=[];return this.eachBefore(function($e){$e.children||je.push($e)}),je}function L(){var je=this,$e=[];return je.each(function(wt){wt!==je&&$e.push({source:wt.parent,target:wt})}),$e}function x(je,$e){var wt=new T(je),Ie=+je.value&&(wt.value=je.value),xe,Ce=[wt],vt,nr,ir,pr;for($e==null&&($e=M);xe=Ce.pop();)if(Ie&&(xe.value=+xe.data.value),(nr=$e(xe.data))&&(pr=nr.length))for(xe.children=new Array(pr),ir=pr-1;ir>=0;--ir)Ce.push(vt=xe.children[ir]=new T(nr[ir])),vt.parent=xe,vt.depth=xe.depth+1;return wt.eachBefore(P)}function k(){return x(this).eachBefore(g)}function M(je){return je.children}function g(je){je.data=je.data.data}function P(je){var $e=0;do je.height=$e;while((je=je.parent)&&je.height<++$e)}function T(je){this.data=je,this.depth=this.height=0,this.parent=null}T.prototype=x.prototype={constructor:T,count:c,each:f,eachAfter:d,eachBefore:h,sum:v,sort:_,path:b,ancestors:C,descendants:E,leaves:A,links:L,copy:k};var z=Array.prototype.slice;function O(je){for(var $e=je.length,wt,Ie;$e;)Ie=Math.random()*$e--|0,wt=je[$e],je[$e]=je[Ie],je[Ie]=wt;return je}function V(je){for(var $e=0,wt=(je=O(z.call(je))).length,Ie=[],xe,Ce;$e0&&wt*wt>Ie*Ie+xe*xe}function N(je,$e){for(var wt=0;wt<$e.length;++wt)if(!H(je,$e[wt]))return!1;return!0}function j(je){switch(je.length){case 1:return re(je[0]);case 2:return oe(je[0],je[1]);case 3:return _e(je[0],je[1],je[2])}}function re(je){return{x:je.x,y:je.y,r:je.r}}function oe(je,$e){var wt=je.x,Ie=je.y,xe=je.r,Ce=$e.x,vt=$e.y,nr=$e.r,ir=Ce-wt,pr=vt-Ie,oi=nr-xe,di=Math.sqrt(ir*ir+pr*pr);return{x:(wt+Ce+ir/di*oi)/2,y:(Ie+vt+pr/di*oi)/2,r:(di+xe+nr)/2}}function _e(je,$e,wt){var Ie=je.x,xe=je.y,Ce=je.r,vt=$e.x,nr=$e.y,ir=$e.r,pr=wt.x,oi=wt.y,di=wt.r,Jr=Ie-vt,fi=Ie-pr,Hi=xe-nr,Pn=xe-oi,wn=ir-Ce,pn=di-Ce,Vn=Ie*Ie+xe*xe-Ce*Ce,kn=Vn-vt*vt-nr*nr+ir*ir,ea=Vn-pr*pr-oi*oi+di*di,ua=fi*Hi-Jr*Pn,Vt=(Hi*ea-Pn*kn)/(ua*2)-Ie,_t=(Pn*wn-Hi*pn)/ua,tr=(fi*kn-Jr*ea)/(ua*2)-xe,ar=(Jr*pn-fi*wn)/ua,Er=_t*_t+ar*ar-1,Zr=2*(Ce+Vt*_t+tr*ar),ri=Vt*Vt+tr*tr-Ce*Ce,$r=-(Er?(Zr+Math.sqrt(Zr*Zr-4*Er*ri))/(2*Er):ri/Zr);return{x:Ie+Vt+_t*$r,y:xe+tr+ar*$r,r:$r}}function Me(je,$e,wt){var Ie=je.x-$e.x,xe,Ce,vt=je.y-$e.y,nr,ir,pr=Ie*Ie+vt*vt;pr?(Ce=$e.r+wt.r,Ce*=Ce,ir=je.r+wt.r,ir*=ir,Ce>ir?(xe=(pr+ir-Ce)/(2*pr),nr=Math.sqrt(Math.max(0,ir/pr-xe*xe)),wt.x=je.x-xe*Ie-nr*vt,wt.y=je.y-xe*vt+nr*Ie):(xe=(pr+Ce-ir)/(2*pr),nr=Math.sqrt(Math.max(0,Ce/pr-xe*xe)),wt.x=$e.x+xe*Ie-nr*vt,wt.y=$e.y+xe*vt+nr*Ie)):(wt.x=$e.x+wt.r,wt.y=$e.y)}function ke(je,$e){var wt=je.r+$e.r-1e-6,Ie=$e.x-je.x,xe=$e.y-je.y;return wt>0&&wt*wt>Ie*Ie+xe*xe}function me(je){var $e=je._,wt=je.next._,Ie=$e.r+wt.r,xe=($e.x*wt.r+wt.x*$e.r)/Ie,Ce=($e.y*wt.r+wt.y*$e.r)/Ie;return xe*xe+Ce*Ce}function ie(je){this._=je,this.next=null,this.previous=null}function Se(je){if(!(xe=je.length))return 0;var $e,wt,Ie,xe,Ce,vt,nr,ir,pr,oi,di;if($e=je[0],$e.x=0,$e.y=0,!(xe>1))return $e.r;if(wt=je[1],$e.x=-wt.r,wt.x=$e.r,wt.y=0,!(xe>2))return $e.r+wt.r;Me(wt,$e,Ie=je[2]),$e=new ie($e),wt=new ie(wt),Ie=new ie(Ie),$e.next=Ie.previous=wt,wt.next=$e.previous=Ie,Ie.next=wt.previous=$e;e:for(nr=3;nr0)throw new Error("cycle");return nr}return wt.id=function(Ie){return arguments.length?(je=De(Ie),wt):je},wt.parentId=function(Ie){return arguments.length?($e=De(Ie),wt):$e},wt}function Qe(je,$e){return je.parent===$e.parent?1:2}function Et(je){var $e=je.children;return $e?$e[0]:je.t}function er(je){var $e=je.children;return $e?$e[$e.length-1]:je.t}function Ut(je,$e,wt){var Ie=wt/($e.i-je.i);$e.c-=Ie,$e.s+=wt,je.c+=Ie,$e.z+=wt,$e.m+=wt}function Ft(je){for(var $e=0,wt=0,Ie=je.children,xe=Ie.length,Ce;--xe>=0;)Ce=Ie[xe],Ce.z+=$e,Ce.m+=$e,$e+=Ce.s+(wt+=Ce.c)}function bt(je,$e,wt){return je.a.parent===$e.parent?je.a:wt}function yt(je,$e){this._=je,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=$e}yt.prototype=Object.create(T.prototype);function Yt(je){for(var $e=new yt(je,0),wt,Ie=[$e],xe,Ce,vt,nr;wt=Ie.pop();)if(Ce=wt._.children)for(wt.children=new Array(nr=Ce.length),vt=nr-1;vt>=0;--vt)Ie.push(xe=wt.children[vt]=new yt(Ce[vt],vt)),xe.parent=wt;return($e.parent=new yt(null,0)).children=[$e],$e}function lr(){var je=Qe,$e=1,wt=1,Ie=null;function xe(pr){var oi=Yt(pr);if(oi.eachAfter(Ce),oi.parent.m=-oi.z,oi.eachBefore(vt),Ie)pr.eachBefore(ir);else{var di=pr,Jr=pr,fi=pr;pr.eachBefore(function(Vn){Vn.xJr.x&&(Jr=Vn),Vn.depth>fi.depth&&(fi=Vn)});var Hi=di===Jr?1:je(di,Jr)/2,Pn=Hi-di.x,wn=$e/(Jr.x+Hi+Pn),pn=wt/(fi.depth||1);pr.eachBefore(function(Vn){Vn.x=(Vn.x+Pn)*wn,Vn.y=Vn.depth*pn})}return pr}function Ce(pr){var oi=pr.children,di=pr.parent.children,Jr=pr.i?di[pr.i-1]:null;if(oi){Ft(pr);var fi=(oi[0].z+oi[oi.length-1].z)/2;Jr?(pr.z=Jr.z+je(pr._,Jr._),pr.m=pr.z-fi):pr.z=fi}else Jr&&(pr.z=Jr.z+je(pr._,Jr._));pr.parent.A=nr(pr,Jr,pr.parent.A||di[0])}function vt(pr){pr._.x=pr.z+pr.parent.m,pr.m+=pr.parent.m}function nr(pr,oi,di){if(oi){for(var Jr=pr,fi=pr,Hi=oi,Pn=Jr.parent.children[0],wn=Jr.m,pn=fi.m,Vn=Hi.m,kn=Pn.m,ea;Hi=er(Hi),Jr=Et(Jr),Hi&&Jr;)Pn=Et(Pn),fi=er(fi),fi.a=pr,ea=Hi.z+Vn-Jr.z-wn+je(Hi._,Jr._),ea>0&&(Ut(bt(Hi,pr,di),pr,ea),wn+=ea,pn+=ea),Vn+=Hi.m,wn+=Jr.m,kn+=Pn.m,pn+=fi.m;Hi&&!er(fi)&&(fi.t=Hi,fi.m+=Vn-pn),Jr&&!Et(Pn)&&(Pn.t=Jr,Pn.m+=wn-kn,di=pr)}return di}function ir(pr){pr.x*=$e,pr.y=pr.depth*wt}return xe.separation=function(pr){return arguments.length?(je=pr,xe):je},xe.size=function(pr){return arguments.length?(Ie=!1,$e=+pr[0],wt=+pr[1],xe):Ie?null:[$e,wt]},xe.nodeSize=function(pr){return arguments.length?(Ie=!0,$e=+pr[0],wt=+pr[1],xe):Ie?[$e,wt]:null},xe}function Tr(je,$e,wt,Ie,xe){for(var Ce=je.children,vt,nr=-1,ir=Ce.length,pr=je.value&&(xe-wt)/je.value;++nrVn&&(Vn=pr),Vt=wn*wn*ua,kn=Math.max(Vn/Vt,Vt/pn),kn>ea){wn-=pr;break}ea=kn}vt.push(ir={value:wn,dice:fi1?Ie:1)},wt}(Rr);function Ur(){var je=Wr,$e=!1,wt=1,Ie=1,xe=[0],Ce=Pe,vt=Pe,nr=Pe,ir=Pe,pr=Pe;function oi(Jr){return Jr.x0=Jr.y0=0,Jr.x1=wt,Jr.y1=Ie,Jr.eachBefore(di),xe=[0],$e&&Jr.eachBefore(Wt),Jr}function di(Jr){var fi=xe[Jr.depth],Hi=Jr.x0+fi,Pn=Jr.y0+fi,wn=Jr.x1-fi,pn=Jr.y1-fi;wn=Jr-1){var Vn=Ce[di];Vn.x0=Hi,Vn.y0=Pn,Vn.x1=wn,Vn.y1=pn;return}for(var kn=pr[di],ea=fi/2+kn,ua=di+1,Vt=Jr-1;ua>>1;pr[_t]pn-Pn){var Er=(Hi*ar+wn*tr)/fi;oi(di,ua,tr,Hi,Pn,Er,pn),oi(ua,Jr,ar,Er,Pn,wn,pn)}else{var Zr=(Pn*ar+pn*tr)/fi;oi(di,ua,tr,Hi,Pn,wn,Zr),oi(ua,Jr,ar,Hi,Zr,wn,pn)}}}function Ge(je,$e,wt,Ie,xe){(je.depth&1?Tr:st)(je,$e,wt,Ie,xe)}var Je=function je($e){function wt(Ie,xe,Ce,vt,nr){if((ir=Ie._squarify)&&ir.ratio===$e)for(var ir,pr,oi,di,Jr=-1,fi,Hi=ir.length,Pn=Ie.value;++Jr1?Ie:1)},wt}(Rr);e.cluster=l,e.hierarchy=x,e.pack=ce,e.packEnclose=V,e.packSiblings=Le,e.partition=lt,e.stratify=ur,e.tree=lr,e.treemap=Ur,e.treemapBinary=dt,e.treemapDice=st,e.treemapResquarify=Je,e.treemapSlice=Tr,e.treemapSliceDice=Ge,e.treemapSquarify=Wr,Object.defineProperty(e,"__esModule",{value:!0})})});var IE=ye(PE=>{"use strict";var NCe=LE(),qkt=Eo(),wA=Dr(),Bkt=tc().makeColorScaleFuncFromTrace,Nkt=_A().makePullColorFn,Ukt=_A().generateExtendedColors,Vkt=tc().calc,Gkt=hs().ALMOST_EQUAL,Hkt={},jkt={},Wkt={};PE.calc=function(e,t){var r=e._fullLayout,n=t.ids,i=wA.isArrayOrTypedArray(n),a=t.labels,o=t.parents,s=t.values,l=wA.isArrayOrTypedArray(s),u=[],c={},f={},h=function(H,N){c[H]?c[H].push(N):c[H]=[N],f[N]=1},d=function(H){return H||typeof H=="number"},v=function(H){return!l||qkt(s[H])&&s[H]>=0},_,b,p;i?(_=Math.min(n.length,o.length),b=function(H){return d(n[H])&&v(H)},p=function(H){return String(n[H])}):(_=Math.min(a.length,o.length),b=function(H){return d(a[H])&&v(H)},p=function(H){return String(a[H])}),l&&(_=Math.min(_,s.length));for(var C=0;C<_;C++)if(b(C)){var E=p(C),A=d(o[C])?String(o[C]):"",L={i:C,id:E,pid:A,label:d(a[C])?String(a[C]):""};l&&(L.v=+s[C]),u.push(L),h(A,E)}if(c[""]){if(c[""].length>1){for(var M=wA.randstr(),g=0;g{});function Vm(){}function VCe(){return this.rgb().formatHex()}function Ykt(){return this.rgb().formatHex8()}function Kkt(){return YCe(this).formatHsl()}function GCe(){return this.rgb().formatRgb()}function W_(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Vkt.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?HCe(t):r===3?new _d(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?yD(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?yD(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Gkt.exec(e))?new _d(t[1],t[2],t[3],1):(t=Hkt.exec(e))?new _d(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=jkt.exec(e))?yD(t[1],t[2],t[3],t[4]):(t=Wkt.exec(e))?yD(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Xkt.exec(e))?XCe(t[1],t[2]/100,t[3]/100,1):(t=Zkt.exec(e))?XCe(t[1],t[2]/100,t[3]/100,t[4]):UCe.hasOwnProperty(e)?HCe(UCe[e]):e==="transparent"?new _d(NaN,NaN,NaN,0):null}function HCe(e){return new _d(e>>16&255,e>>8&255,e&255,1)}function yD(e,t,r,n){return n<=0&&(e=t=r=NaN),new _d(e,t,r,n)}function PE(e){return e instanceof Vm||(e=W_(e)),e?(e=e.rgb(),new _d(e.r,e.g,e.b,e.opacity)):new _d}function AA(e,t,r,n){return arguments.length===1?PE(e):new _d(e,t,r,n==null?1:n)}function _d(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function jCe(){return`#${M2(this.r)}${M2(this.g)}${M2(this.b)}`}function Jkt(){return`#${M2(this.r)}${M2(this.g)}${M2(this.b)}${M2((isNaN(this.opacity)?1:this.opacity)*255)}`}function WCe(){let e=xD(this.opacity);return`${e===1?"rgb(":"rgba("}${E2(this.r)}, ${E2(this.g)}, ${E2(this.b)}${e===1?")":`, ${e})`}`}function xD(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function E2(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function M2(e){return e=E2(e),(e<16?"0":"")+e.toString(16)}function XCe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Xg(e,t,r,n)}function YCe(e){if(e instanceof Xg)return new Xg(e.h,e.s,e.l,e.opacity);if(e instanceof Vm||(e=W_(e)),!e)return new Xg;if(e instanceof Xg)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r0&&l<1?0:o,new Xg(o,s,l,e.opacity)}function IE(e,t,r,n){return arguments.length===1?YCe(e):new Xg(e,t,r,n==null?1:n)}function Xg(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function ZCe(e){return e=(e||0)%360,e<0?e+360:e}function _D(e){return Math.max(0,Math.min(1,e||0))}function pW(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var j_,C2,TA,LE,Um,Vkt,Gkt,Hkt,jkt,Wkt,Xkt,Zkt,UCe,bD=ru(()=>{mD();j_=.7,C2=1/j_,TA="\\s*([+-]?\\d+)\\s*",LE="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Um="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vkt=/^#([0-9a-f]{3,8})$/,Gkt=new RegExp(`^rgb\\(${TA},${TA},${TA}\\)$`),Hkt=new RegExp(`^rgb\\(${Um},${Um},${Um}\\)$`),jkt=new RegExp(`^rgba\\(${TA},${TA},${TA},${LE}\\)$`),Wkt=new RegExp(`^rgba\\(${Um},${Um},${Um},${LE}\\)$`),Xkt=new RegExp(`^hsl\\(${LE},${Um},${Um}\\)$`),Zkt=new RegExp(`^hsla\\(${LE},${Um},${Um},${LE}\\)$`),UCe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Zy(Vm,W_,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:VCe,formatHex:VCe,formatHex8:Ykt,formatHsl:Kkt,formatRgb:GCe,toString:GCe});Zy(_d,AA,H_(Vm,{brighter(e){return e=e==null?C2:Math.pow(C2,e),new _d(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?j_:Math.pow(j_,e),new _d(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _d(E2(this.r),E2(this.g),E2(this.b),xD(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:jCe,formatHex:jCe,formatHex8:Jkt,formatRgb:WCe,toString:WCe}));Zy(Xg,IE,H_(Vm,{brighter(e){return e=e==null?C2:Math.pow(C2,e),new Xg(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?j_:Math.pow(j_,e),new Xg(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new _d(pW(e>=240?e-240:e+120,i,n),pW(e,i,n),pW(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Xg(ZCe(this.h),_D(this.s),_D(this.l),xD(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=xD(this.opacity);return`${e===1?"hsl(":"hsla("}${ZCe(this.h)}, ${_D(this.s)*100}%, ${_D(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var wD,TD,gW=ru(()=>{wD=Math.PI/180,TD=180/Math.PI});function tke(e){if(e instanceof Gm)return new Gm(e.l,e.a,e.b,e.opacity);if(e instanceof Yy)return rke(e);e instanceof _d||(e=PE(e));var t=xW(e.r),r=xW(e.g),n=xW(e.b),i=mW((.2225045*t+.7168786*r+.0606169*n)/JCe),a,o;return t===r&&r===n?a=o=i:(a=mW((.4360747*t+.3850649*r+.1430804*n)/KCe),o=mW((.0139322*t+.0971045*r+.7141733*n)/$Ce)),new Gm(116*i-16,500*(a-i),200*(i-o),e.opacity)}function MA(e,t,r,n){return arguments.length===1?tke(e):new Gm(e,t,r,n==null?1:n)}function Gm(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function mW(e){return e>$kt?Math.pow(e,1/3):e/eke+QCe}function yW(e){return e>SA?e*e*e:eke*(e-QCe)}function _W(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function xW(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Qkt(e){if(e instanceof Yy)return new Yy(e.h,e.c,e.l,e.opacity);if(e instanceof Gm||(e=tke(e)),e.a===0&&e.b===0)return new Yy(NaN,0{mD();bD();gW();AD=18,KCe=.96422,JCe=1,$Ce=.82521,QCe=4/29,SA=6/29,eke=3*SA*SA,$kt=SA*SA*SA;Zy(Gm,MA,H_(Vm,{brighter(e){return new Gm(this.l+AD*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Gm(this.l-AD*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=KCe*yW(t),e=JCe*yW(e),r=$Ce*yW(r),new _d(_W(3.1338561*t-1.6168667*e-.4906146*r),_W(-.9787684*t+1.9161415*e+.033454*r),_W(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));Zy(Yy,RE,H_(Vm,{brighter(e){return new Yy(this.h,this.c,this.l+AD*(e==null?1:e),this.opacity)},darker(e){return new Yy(this.h,this.c,this.l-AD*(e==null?1:e),this.opacity)},rgb(){return rke(this).rgb()}}))});function e6t(e){if(e instanceof k2)return new k2(e.h,e.s,e.l,e.opacity);e instanceof _d||(e=PE(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(oke*n+nke*t-ake*r)/(oke+nke-ake),a=n-i,o=(DE*(r-i)-wW*a)/SD,s=Math.sqrt(o*o+a*a)/(DE*i*(1-i)),l=s?Math.atan2(o,a)*TD-120:NaN;return new k2(l<0?l+360:l,s,i,e.opacity)}function EA(e,t,r,n){return arguments.length===1?e6t(e):new k2(e,t,r,n==null?1:n)}function k2(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}var ske,bW,wW,SD,DE,nke,ake,oke,lke=ru(()=>{mD();bD();gW();ske=-.14861,bW=1.78277,wW=-.29227,SD=-.90649,DE=1.97294,nke=DE*SD,ake=DE*bW,oke=bW*wW-SD*ske;Zy(k2,EA,H_(Vm,{brighter(e){return e=e==null?C2:Math.pow(C2,e),new k2(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?j_:Math.pow(j_,e),new k2(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*wD,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new _d(255*(t+r*(ske*n+bW*i)),255*(t+r*(wW*n+SD*i)),255*(t+r*(DE*n)),this.opacity)}}))});var L2=ru(()=>{bD();ike();lke()});function TW(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function MD(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,s=n{});function CD(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],s=e[(n+2)%t];return TW((r-n/t)*t,i,a,o,s)}}var AW=ru(()=>{ED()});var CA,SW=ru(()=>{CA=e=>()=>e});function uke(e,t){return function(r){return e+r*t}}function t6t(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function X_(e,t){var r=t-e;return r?uke(e,r>180||r<-180?r-360*Math.round(r/360):r):CA(isNaN(e)?t:e)}function cke(e){return(e=+e)==1?$f:function(t,r){return r-t?t6t(t,r,e):CA(isNaN(t)?r:t)}}function $f(e,t){var r=t-e;return r?uke(e,r):CA(isNaN(e)?t:e)}var P2=ru(()=>{SW()});function fke(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,s;for(o=0;o{L2();ED();AW();P2();FE=function e(t){var r=cke(t);function n(i,a){var o=r((i=AA(i)).r,(a=AA(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=$f(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return n.gamma=e,n}(1);hke=fke(MD),dke=fke(CD)});function kA(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i{});function vke(e,t){return(kD(t)?kA:EW)(e,t)}function EW(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o{zE();LD()});function PD(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}var kW=ru(()=>{});function Fp(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var OE=ru(()=>{});function ID(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Z_(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var LW=ru(()=>{zE()});function r6t(e){return function(){return e}}function i6t(e){return function(t){return e(t)+""}}function RD(e,t){var r=IW.lastIndex=PW.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=IW.exec(e))&&(i=PW.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Fp(n,i)})),r=PW.lastIndex;return r{OE();IW=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,PW=new RegExp(IW.source,"g")});function Z_(e,t){var r=typeof t,n;return t==null||r==="boolean"?CA(t):(r==="number"?Fp:r==="string"?(n=W_(t))?(t=n,FE):RD:t instanceof W_?FE:t instanceof Date?PD:kD(t)?kA:Array.isArray(t)?EW:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?ID:Fp)(e,t)}var zE=ru(()=>{L2();MW();CW();kW();OE();LW();RW();SW();LD()});function pke(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var gke=ru(()=>{});function mke(e,t){var r=X_(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}var yke=ru(()=>{P2()});function _ke(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var xke=ru(()=>{});function DW(e,t,r,n,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*n)&&(r-=e*l,n-=t*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),e*n{bke=180/Math.PI,DD={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function Tke(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?DD:DW(t.a,t.b,t.c,t.d,t.e,t.f)}function Ake(e){return e==null?DD:(FD||(FD=document.createElementNS("http://www.w3.org/2000/svg","g")),FD.setAttribute("transform",e),(e=FD.transform.baseVal.consolidate())?(e=e.matrix,DW(e.a,e.b,e.c,e.d,e.e,e.f)):DD)}var FD,Ske=ru(()=>{wke()});function Mke(e,t,r,n){function i(u){return u.length?u.pop()+" ":""}function a(u,c,f,h,d,v){if(u!==f||c!==h){var x=d.push("translate(",null,t,null,r);v.push({i:x-4,x:Fp(u,f)},{i:x-2,x:Fp(c,h)})}else(f||h)&&d.push("translate("+f+t+h+r)}function o(u,c,f,h){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),h.push({i:f.push(i(f)+"rotate(",null,n)-2,x:Fp(u,c)})):c&&f.push(i(f)+"rotate("+c+n)}function s(u,c,f,h){u!==c?h.push({i:f.push(i(f)+"skewX(",null,n)-2,x:Fp(u,c)}):c&&f.push(i(f)+"skewX("+c+n)}function l(u,c,f,h,d,v){if(u!==f||c!==h){var x=d.push(i(d)+"scale(",null,",",null,")");v.push({i:x-4,x:Fp(u,f)},{i:x-2,x:Fp(c,h)})}else(f!==1||h!==1)&&d.push(i(d)+"scale("+f+","+h+")")}return function(u,c){var f=[],h=[];return u=e(u),c=e(c),a(u.translateX,u.translateY,c.translateX,c.translateY,f,h),o(u.rotate,c.rotate,f,h),s(u.skewX,c.skewX,f,h),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,h),u=c=null,function(d){for(var v=-1,x=h.length,b;++v{OE();Ske();Eke=Mke(Tke,"px, ","px)","deg)"),Cke=Mke(Ake,", ",")",")")});function Lke(e){return((e=Math.exp(e))+1/e)/2}function a6t(e){return((e=Math.exp(e))-1/e)/2}function o6t(e){return((e=Math.exp(2*e))-1)/(e+1)}var n6t,Pke,Ike=ru(()=>{n6t=1e-12;Pke=function e(t,r,n){function i(a,o){var s=a[0],l=a[1],u=a[2],c=o[0],f=o[1],h=o[2],d=c-s,v=f-l,x=d*d+v*v,b,p;if(x{L2();P2();Dke=Rke(X_),Fke=Rke($f)});function FW(e,t){var r=$f((e=MA(e)).l,(t=MA(t)).l),n=$f(e.a,t.a),i=$f(e.b,t.b),a=$f(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}var Oke=ru(()=>{L2();P2()});function qke(e){return function(t,r){var n=e((t=RE(t)).h,(r=RE(r)).h),i=$f(t.c,r.c),a=$f(t.l,r.l),o=$f(t.opacity,r.opacity);return function(s){return t.h=n(s),t.c=i(s),t.l=a(s),t.opacity=o(s),t+""}}}var Bke,Nke,Uke=ru(()=>{L2();P2();Bke=qke(X_),Nke=qke($f)});function Vke(e){return function t(r){r=+r;function n(i,a){var o=e((i=EA(i)).h,(a=EA(a)).h),s=$f(i.s,a.s),l=$f(i.l,a.l),u=$f(i.opacity,a.opacity);return function(c){return i.h=o(c),i.s=s(c),i.l=l(Math.pow(c,r)),i.opacity=u(c),i+""}}return n.gamma=t,n}(1)}var Gke,Hke,jke=ru(()=>{L2();P2();Gke=Vke(X_),Hke=Vke($f)});function zW(e,t){t===void 0&&(t=e,e=Z_);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r{zE()});function Xke(e,t){for(var r=new Array(t),n=0;n{});var I2={};lee(I2,{interpolate:()=>Z_,interpolateArray:()=>vke,interpolateBasis:()=>MD,interpolateBasisClosed:()=>CD,interpolateCubehelix:()=>Gke,interpolateCubehelixLong:()=>Hke,interpolateDate:()=>PD,interpolateDiscrete:()=>pke,interpolateHcl:()=>Bke,interpolateHclLong:()=>Nke,interpolateHsl:()=>Dke,interpolateHslLong:()=>Fke,interpolateHue:()=>mke,interpolateLab:()=>FW,interpolateNumber:()=>Fp,interpolateNumberArray:()=>kA,interpolateObject:()=>ID,interpolateRgb:()=>FE,interpolateRgbBasis:()=>hke,interpolateRgbBasisClosed:()=>dke,interpolateRound:()=>_ke,interpolateString:()=>RD,interpolateTransformCss:()=>Eke,interpolateTransformSvg:()=>Cke,interpolateZoom:()=>Pke,piecewise:()=>zW,quantize:()=>Xke});var R2=ru(()=>{zE();CW();ED();AW();kW();gke();yke();OE();LD();LW();xke();RW();kke();Ike();MW();zke();Oke();Uke();jke();Wke();Zke()});var zD=ye((Nvr,Yke)=>{"use strict";var s6t=So(),l6t=Ca();Yke.exports=function(t,r,n,i,a){var o=r.data.data,s=o.i,l=a||o.color;if(s>=0){r.i=o.i;var u=n.marker;u.pattern?(!u.colors||!u.pattern.shape)&&(u.color=l,r.color=l):(u.color=l,r.color=l),s6t.pointStyle(t,n,i,r)}else l6t.fill(t,l)}});var OW=ye((Uvr,e6e)=>{"use strict";var Kke=Oa(),Jke=Ca(),$ke=Dr(),u6t=_v().resizeText,c6t=zD();function f6t(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");u6t(e,t,"sunburst"),t.each(function(r){var n=Kke.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){Kke.select(this).call(Qke,o,a,e)})})}function Qke(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=$ke.castOption(r,o,"marker.line.color")||Jke.defaultLine,l=$ke.castOption(r,o,"marker.line.width")||0;e.call(c6t,t,r,n).style("stroke-width",l).call(Jke.stroke,s).style("opacity",a?r.leaf.opacity:null)}e6e.exports={style:f6t,styleOne:Qke}});var Ky=ye(Ns=>{"use strict";var D2=Dr(),h6t=Ca(),d6t=Tg(),t6e=u_();Ns.findEntryWithLevel=function(e,t){var r;return t&&e.eachAfter(function(n){if(Ns.getPtId(n)===t)return r=n.copy()}),r||e};Ns.findEntryWithChild=function(e,t){var r;return e.eachAfter(function(n){for(var i=n.children||[],a=0;a0)};Ns.getMaxDepth=function(e){return e.maxdepth>=0?e.maxdepth:1/0};Ns.isHeader=function(e,t){return!(Ns.isLeaf(e)||e.depth===t._maxDepth-1)};function r6e(e){return e.data.data.pid}Ns.getParent=function(e,t){return Ns.findEntryWithLevel(e,r6e(t))};Ns.listPath=function(e,t){var r=e.parent;if(!r)return[];var n=t?[r.data[t]]:[r];return Ns.listPath(r,t).concat(n)};Ns.getPath=function(e){return Ns.listPath(e,"label").join("/")+"/"};Ns.formatValue=t6e.formatPieValue;Ns.formatPercent=function(e,t){var r=D2.formatPercent(e,0);return r==="0%"&&(r=t6e.formatPiePercent(e,t)),r}});var NE=ye((Gvr,a6e)=>{"use strict";var LA=Oa(),i6e=qa(),g6t=rp().appendArrayPointValue,qE=df(),n6e=Dr(),m6t=g3(),rd=Ky(),y6t=u_(),_6t=y6t.formatPieValue;a6e.exports=function(t,r,n,i,a){var o=i[0],s=o.trace,l=o.hierarchy,u=s.type==="sunburst",c=s.type==="treemap"||s.type==="icicle";"_hasHoverLabel"in s||(s._hasHoverLabel=!1),"_hasHoverEvent"in s||(s._hasHoverEvent=!1);var f=function(v){var x=n._fullLayout;if(!(n._dragging||x.hovermode===!1)){var b=n._fullData[s.index],p=v.data.data,C=p.i,E=rd.isHierarchyRoot(v),A=rd.getParent(l,v),L=rd.getValue(v),_=function(Me){return n6e.castOption(b,C,Me)},k=_("hovertemplate"),M=qE.castHoverinfo(b,x,C),g=x.separators,P;if(k||M&&M!=="none"&&M!=="skip"){var T,z;u&&(T=o.cx+v.pxmid[0]*(1-v.rInscribed),z=o.cy+v.pxmid[1]*(1-v.rInscribed)),c&&(T=v._hoverX,z=v._hoverY);var O={},V=[],G=[],Z=function(Me){return V.indexOf(Me)!==-1};M&&(V=M==="all"?b._module.attributes.hoverinfo.flags:M.split("+")),O.label=p.label,Z("label")&&O.label&&G.push(O.label),p.hasOwnProperty("v")&&(O.value=p.v,O.valueLabel=_6t(O.value,g),Z("value")&&G.push(O.valueLabel)),O.currentPath=v.currentPath=rd.getPath(v.data),Z("current path")&&!E&&G.push(O.currentPath);var H,N=[],j=function(){N.indexOf(H)===-1&&(G.push(H),N.push(H))};O.percentParent=v.percentParent=L/rd.getValue(A),O.parent=v.parentString=rd.getPtLabel(A),Z("percent parent")&&(H=rd.formatPercent(O.percentParent,g)+" of "+O.parent,j()),O.percentEntry=v.percentEntry=L/rd.getValue(r),O.entry=v.entry=rd.getPtLabel(r),Z("percent entry")&&!E&&!v.onPathbar&&(H=rd.formatPercent(O.percentEntry,g)+" of "+O.entry,j()),O.percentRoot=v.percentRoot=L/rd.getValue(l),O.root=v.root=rd.getPtLabel(l),Z("percent root")&&!E&&(H=rd.formatPercent(O.percentRoot,g)+" of "+O.root,j()),O.text=_("hovertext")||_("text"),Z("text")&&(H=O.text,n6e.isValidTextValue(H)&&G.push(H)),P=[BE(v,b,a.eventDataKeys)];var re={trace:b,y:z,_x0:v._x0,_x1:v._x1,_y0:v._y0,_y1:v._y1,text:G.join("
"),name:k||Z("name")?b.name:void 0,color:_("hoverlabel.bgcolor")||p.color,borderColor:_("hoverlabel.bordercolor"),fontFamily:_("hoverlabel.font.family"),fontSize:_("hoverlabel.font.size"),fontColor:_("hoverlabel.font.color"),fontWeight:_("hoverlabel.font.weight"),fontStyle:_("hoverlabel.font.style"),fontVariant:_("hoverlabel.font.variant"),nameLength:_("hoverlabel.namelength"),textAlign:_("hoverlabel.align"),hovertemplate:k,hovertemplateLabels:O,eventData:P};u&&(re.x0=T-v.rInscribed*v.rpx1,re.x1=T+v.rInscribed*v.rpx1,re.idealAlign=v.pxmid[0]<0?"left":"right"),c&&(re.x=T,re.idealAlign=T<0?"left":"right");var oe=[];qE.loneHover(re,{container:x._hoverlayer.node(),outerContainer:x._paper.node(),gd:n,inOut_bbox:oe}),P[0].bbox=oe[0],s._hasHoverLabel=!0}if(c){var _e=t.select("path.surface");a.styleOne(_e,v,b,n,{hovered:!0})}s._hasHoverEvent=!0,n.emit("plotly_hover",{points:P||[BE(v,b,a.eventDataKeys)],event:LA.event})}},h=function(v){var x=n._fullLayout,b=n._fullData[s.index],p=LA.select(this).datum();if(s._hasHoverEvent&&(v.originalEvent=LA.event,n.emit("plotly_unhover",{points:[BE(p,b,a.eventDataKeys)],event:LA.event}),s._hasHoverEvent=!1),s._hasHoverLabel&&(qE.loneUnhover(x._hoverlayer.node()),s._hasHoverLabel=!1),c){var C=t.select("path.surface");a.styleOne(C,p,b,n,{hovered:!1})}},d=function(v){var x=n._fullLayout,b=n._fullData[s.index],p=u&&(rd.isHierarchyRoot(v)||rd.isLeaf(v)),C=rd.getPtId(v),E=rd.isEntry(v)?rd.findEntryWithChild(l,C):rd.findEntryWithLevel(l,C),A=rd.getPtId(E),L={points:[BE(v,b,a.eventDataKeys)],event:LA.event};p||(L.nextLevel=A);var _=m6t.triggerHandler(n,"plotly_"+s.type+"click",L);if(_!==!1&&x.hovermode&&(n._hoverdata=[BE(v,b,a.eventDataKeys)],qE.click(n,LA.event)),!p&&_!==!1&&!n._dragging&&!n._transitioning){i6e.call("_storeDirectGUIEdit",b,x._tracePreGUI[b.uid],{level:b.level});var k={data:[{level:A}],traces:[s.index]},M={frame:{redraw:!1,duration:a.transitionTime},transition:{duration:a.transitionTime,easing:a.transitionEasing},mode:"immediate",fromcurrent:!0};qE.loneUnhover(x._hoverlayer.node()),i6e.call("animate",n,k,M)}};t.on("mouseover",f),t.on("mouseout",h),t.on("click",d)};function BE(e,t,r){for(var n=e.data.data,i={curveNumber:t.index,pointNumber:n.i,data:t._input,fullData:t},a=0;a{"use strict";var UE=Oa(),x6t=EE(),Zg=(R2(),B1(I2)).interpolate,o6e=So(),bv=Dr(),b6t=iu(),c6e=_v(),s6e=c6e.recordMinTextSize,w6t=c6e.clearMinTextSize,f6e=pD(),T6t=u_().getRotationAngle,A6t=f6e.computeTransform,S6t=f6e.transformInsideText,M6t=OW().styleOne,E6t=N0().resizeText,C6t=NE(),qW=dW(),Il=Ky();OD.plot=function(e,t,r,n){var i=e._fullLayout,a=i._sunburstlayer,o,s,l=!r,u=!i.uniformtext.mode&&Il.hasTransition(r);if(w6t("sunburst",i),o=a.selectAll("g.trace.sunburst").data(t,function(f){return f[0].trace.uid}),o.enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),o.order(),u){n&&(s=n());var c=UE.transition().duration(r.duration).ease(r.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});c.each(function(){a.selectAll("g.trace").each(function(f){l6e(e,f,this,r)})})}else o.each(function(f){l6e(e,f,this,r)}),i.uniformtext.mode&&E6t(e,i._sunburstlayer.selectAll(".trace"),"sunburst");l&&o.exit().remove()};function l6e(e,t,r,n){var i=e._context.staticPlot,a=e._fullLayout,o=!a.uniformtext.mode&&Il.hasTransition(n),s=UE.select(r),l=s.selectAll("g.slice"),u=t[0],c=u.trace,f=u.hierarchy,h=Il.findEntryWithLevel(f,c.level),d=Il.getMaxDepth(c),v=a._size,x=c.domain,b=v.w*(x.x[1]-x.x[0]),p=v.h*(x.y[1]-x.y[0]),C=.5*Math.min(b,p),E=u.cx=v.l+v.w*(x.x[1]+x.x[0])/2,A=u.cy=v.t+v.h*(1-x.y[0])-p/2;if(!h)return l.remove();var L=null,_={};o&&l.each(function(me){_[Il.getPtId(me)]={rpx0:me.rpx0,rpx1:me.rpx1,x0:me.x0,x1:me.x1,transform:me.transform},!L&&Il.isEntry(me)&&(L=me)});var k=k6t(h).descendants(),M=h.height+1,g=0,P=d;u.hasMultipleRoots&&Il.isHierarchyRoot(h)&&(k=k.slice(1),M-=1,g=1,P+=1),k=k.filter(function(me){return me.y1<=P});var T=T6t(c.rotation);T&&k.forEach(function(me){me.x0+=T,me.x1+=T});var z=Math.min(M,d),O=function(me){return(me-g)/z*C},V=function(me,ie){return[me*Math.cos(ie),-me*Math.sin(ie)]},G=function(me){return bv.pathAnnulus(me.rpx0,me.rpx1,me.x0,me.x1,E,A)},Z=function(me){return E+u6e(me)[0]*(me.transform.rCenter||0)+(me.transform.x||0)},H=function(me){return A+u6e(me)[1]*(me.transform.rCenter||0)+(me.transform.y||0)};l=l.data(k,Il.getPtId),l.enter().append("g").classed("slice",!0),o?l.exit().transition().each(function(){var me=UE.select(this),ie=me.select("path.surface");ie.transition().attrTween("d",function(Le){var Ae=oe(Le);return function(Fe){return G(Ae(Fe))}});var Se=me.select("g.slicetext");Se.attr("opacity",0)}).remove():l.exit().remove(),l.order();var N=null;if(o&&L){var j=Il.getPtId(L);l.each(function(me){N===null&&Il.getPtId(me)===j&&(N=me.x1)})}var re=l;o&&(re=re.transition().each("end",function(){var me=UE.select(this);Il.setSliceCursor(me,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),re.each(function(me){var ie=UE.select(this),Se=bv.ensureSingle(ie,"path","surface",function(De){De.style("pointer-events",i?"none":"all")});me.rpx0=O(me.y0),me.rpx1=O(me.y1),me.xmid=(me.x0+me.x1)/2,me.pxmid=V(me.rpx1,me.xmid),me.midangle=-(me.xmid-Math.PI/2),me.startangle=-(me.x0-Math.PI/2),me.stopangle=-(me.x1-Math.PI/2),me.halfangle=.5*Math.min(bv.angleDelta(me.x0,me.x1)||Math.PI,Math.PI),me.ring=1-me.rpx0/me.rpx1,me.rInscribed=L6t(me,c),o?Se.transition().attrTween("d",function(De){var ce=_e(De);return function(Ze){return G(ce(Ze))}}):Se.attr("d",G),ie.call(C6t,h,e,t,{eventDataKeys:qW.eventDataKeys,transitionTime:qW.CLICK_TRANSITION_TIME,transitionEasing:qW.CLICK_TRANSITION_EASING}).call(Il.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),Se.call(M6t,me,c,e);var Le=bv.ensureSingle(ie,"g","slicetext"),Ae=bv.ensureSingle(Le,"text","",function(De){De.attr("data-notex",1)}),Fe=bv.ensureUniformFontSize(e,Il.determineTextFont(c,me,a.font));Ae.text(OD.formatSliceLabel(me,h,c,t,a)).classed("slicetext",!0).attr("text-anchor","middle").call(o6e.font,Fe).call(b6t.convertToTspans,e);var Pe=o6e.bBox(Ae.node());me.transform=S6t(Pe,me,u),me.transform.targetX=Z(me),me.transform.targetY=H(me);var ge=function(De,ce){var Ze=De.transform;return A6t(Ze,ce),Ze.fontSize=Fe.size,s6e(c.type,Ze,a),bv.getTextTransform(Ze)};o?Ae.transition().attrTween("transform",function(De){var ce=Me(De);return function(Ze){return ge(ce(Ze),Pe)}}):Ae.attr("transform",ge(me,Pe))});function oe(me){var ie=Il.getPtId(me),Se=_[ie],Le=_[Il.getPtId(h)],Ae;if(Le){var Fe=(me.x1>Le.x1?2*Math.PI:0)+T;Ae=me.rpx1N?2*Math.PI:0)+T;Se={x0:Ae,x1:Ae}}else Se={rpx0:C,rpx1:C},bv.extendFlat(Se,ke(me));else Se={rpx0:0,rpx1:0};else Se={x0:T,x1:T};return Zg(Se,Le)}function Me(me){var ie=_[Il.getPtId(me)],Se,Le=me.transform;if(ie)Se=ie;else if(Se={rpx1:me.rpx1,transform:{textPosAngle:Le.textPosAngle,scale:0,rotate:Le.rotate,rCenter:Le.rCenter,x:Le.x,y:Le.y}},L)if(me.parent)if(N){var Ae=me.x1>N?2*Math.PI:0;Se.x0=Se.x1=Ae}else bv.extendFlat(Se,ke(me));else Se.x0=Se.x1=T;else Se.x0=Se.x1=T;var Fe=Zg(Se.transform.textPosAngle,me.transform.textPosAngle),Pe=Zg(Se.rpx1,me.rpx1),ge=Zg(Se.x0,me.x0),De=Zg(Se.x1,me.x1),ce=Zg(Se.transform.scale,Le.scale),Ze=Zg(Se.transform.rotate,Le.rotate),ut=Le.rCenter===0?3:Se.transform.rCenter===0?1/3:1,gt=Zg(Se.transform.rCenter,Le.rCenter),Kt=function(st){return gt(Math.pow(st,ut))};return function(st){var lt=Pe(st),Gt=ge(st),Ut=De(st),$t=Kt(st),sr=V(lt,(Gt+Ut)/2),Tr=Fe(st),ur={pxmid:sr,rpx1:lt,transform:{textPosAngle:Tr,rCenter:$t,x:Le.x,y:Le.y}};return s6e(c.type,Le,a),{transform:{targetX:Z(ur),targetY:H(ur),scale:ce(st),rotate:Ze(st),rCenter:$t}}}}function ke(me){var ie=me.parent,Se=_[Il.getPtId(ie)],Le={};if(Se){var Ae=ie.children,Fe=Ae.indexOf(me),Pe=Ae.length,ge=Zg(Se.x0,Se.x1);Le.x0=ge(Fe/Pe),Le.x1=ge(Fe/Pe)}else Le.x0=Le.x1=0;return Le}}function k6t(e){return x6t.partition().size([2*Math.PI,e.height+1])(e)}OD.formatSliceLabel=function(e,t,r,n,i){var a=r.texttemplate,o=r.textinfo;if(!a&&(!o||o==="none"))return"";var s=i.separators,l=n[0],u=e.data.data,c=l.hierarchy,f=Il.isHierarchyRoot(e),h=Il.getParent(c,e),d=Il.getValue(e);if(!a){var v=o.split("+"),x=function(g){return v.indexOf(g)!==-1},b=[],p;if(x("label")&&u.label&&b.push(u.label),u.hasOwnProperty("v")&&x("value")&&b.push(Il.formatValue(u.v,s)),!f){x("current path")&&b.push(Il.getPath(e.data));var C=0;x("percent parent")&&C++,x("percent entry")&&C++,x("percent root")&&C++;var E=C>1;if(C){var A,L=function(g){p=Il.formatPercent(A,s),E&&(p+=" of "+g),b.push(p)};x("percent parent")&&!f&&(A=d/Il.getValue(h),L("parent")),x("percent entry")&&(A=d/Il.getValue(t),L("entry")),x("percent root")&&(A=d/Il.getValue(c),L("root"))}}return x("text")&&(p=bv.castOption(r,u.i,"text"),bv.isValidTextValue(p)&&b.push(p)),b.join("
")}var _=bv.castOption(r,u.i,"texttemplate");if(!_)return"";var k={};u.label&&(k.label=u.label),u.hasOwnProperty("v")&&(k.value=u.v,k.valueLabel=Il.formatValue(u.v,s)),k.currentPath=Il.getPath(e.data),f||(k.percentParent=d/Il.getValue(h),k.percentParentLabel=Il.formatPercent(k.percentParent,s),k.parent=Il.getPtLabel(h)),k.percentEntry=d/Il.getValue(t),k.percentEntryLabel=Il.formatPercent(k.percentEntry,s),k.entry=Il.getPtLabel(t),k.percentRoot=d/Il.getValue(c),k.percentRootLabel=Il.formatPercent(k.percentRoot,s),k.root=Il.getPtLabel(c),u.hasOwnProperty("color")&&(k.color=u.color);var M=bv.castOption(r,u.i,"text");return(bv.isValidTextValue(M)||M==="")&&(k.text=M),k.customdata=bv.castOption(r,u.i,"customdata"),bv.texttemplateString(_,k,i._d3locale,k,r._meta||{})};function L6t(e){return e.rpx0===0&&bv.isFullCircle([e.x0,e.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2))}function u6e(e){return P6t(e.rpx1,e.transform.textPosAngle)}function P6t(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}});var d6e=ye((jvr,h6e)=>{"use strict";h6e.exports={moduleType:"trace",name:"sunburst",basePlotModule:ECe(),categories:[],animatable:!0,attributes:ME(),layoutAttributes:vW(),supplyDefaults:FCe(),supplyLayoutDefaults:OCe(),calc:kE().calc,crossTraceCalc:kE().crossTraceCalc,plot:qD().plot,style:OW().style,colorbar:$d(),meta:{}}});var p6e=ye((Wvr,v6e)=>{"use strict";v6e.exports=d6e()});var m6e=ye(PA=>{"use strict";var g6e=Mc();PA.name="treemap";PA.plot=function(e,t,r,n){g6e.plotBasePlot(PA.name,e,t,r,n)};PA.clean=function(e,t,r,n){g6e.cleanBasePlot(PA.name,e,t,r,n)}});var F2=ye((Zvr,y6e)=>{"use strict";y6e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}});var BD=ye((Yvr,x6e)=>{"use strict";var I6t=rs().hovertemplateAttrs,R6t=rs().texttemplateAttrs,D6t=Tu(),F6t=kc().attributes,z2=A2(),Q0=ME(),_6e=F2(),BW=Ao().extendFlat,z6t=Pd().pattern;x6e.exports={labels:Q0.labels,parents:Q0.parents,values:Q0.values,branchvalues:Q0.branchvalues,count:Q0.count,level:Q0.level,maxdepth:Q0.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",editType:"plot"},squarifyratio:{valType:"number",min:1,dflt:1,editType:"plot"},flip:{valType:"flaglist",flags:["x","y"],dflt:"",editType:"plot"},pad:{valType:"number",min:0,dflt:3,editType:"plot"},editType:"calc"},marker:BW({pad:{t:{valType:"number",min:0,editType:"plot"},l:{valType:"number",min:0,editType:"plot"},r:{valType:"number",min:0,editType:"plot"},b:{valType:"number",min:0,editType:"plot"},editType:"calc"},colors:Q0.marker.colors,pattern:z6t,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:Q0.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},D6t("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,editType:"plot"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:BW({},z2.textfont,{}),editType:"calc"},text:z2.text,textinfo:Q0.textinfo,texttemplate:R6t({editType:"plot"},{keys:_6e.eventDataKeys.concat(["label","value"])}),hovertext:z2.hovertext,hoverinfo:Q0.hoverinfo,hovertemplate:I6t({},{keys:_6e.eventDataKeys}),textfont:z2.textfont,insidetextfont:z2.insidetextfont,outsidetextfont:BW({},z2.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:z2.sort,root:Q0.root,domain:F6t({name:"treemap",trace:!0,editType:"calc"})}});var NW=ye((Kvr,b6e)=>{"use strict";b6e.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var S6e=ye((Jvr,A6e)=>{"use strict";var w6e=Dr(),O6t=BD(),q6t=Ca(),B6t=kc().defaults,N6t=r0().handleText,U6t=Qb().TEXTPAD,V6t=S2().handleMarkerDefaults,T6e=tc(),G6t=T6e.hasColorscale,H6t=T6e.handleDefaults;A6e.exports=function(t,r,n,i){function a(b,p){return w6e.coerce(t,r,O6t,b,p)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth");var u=a("tiling.packing");u==="squarify"&&a("tiling.squarifyratio"),a("tiling.flip"),a("tiling.pad");var c=a("text");a("texttemplate"),r.texttemplate||a("textinfo",w6e.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate");var f=a("pathbar.visible"),h="auto";N6t(t,r,i,a,h,{hasPathbar:f,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition");var d=r.textposition.indexOf("bottom")!==-1;V6t(t,r,i,a);var v=r._hasColorscale=G6t(t,"marker","colors")||(t.marker||{}).coloraxis;v?H6t(t,r,i,a,{prefix:"marker.",cLetter:"c"}):a("marker.depthfade",!(r.marker.colors||[]).length);var x=r.textfont.size*2;a("marker.pad.t",d?x/4:x),a("marker.pad.l",x/4),a("marker.pad.r",x/4),a("marker.pad.b",d?x:x/4),a("marker.cornerradius"),r._hovered={marker:{line:{width:2,color:q6t.contrast(i.paper_bgcolor)}}},f&&(a("pathbar.thickness",r.pathbar.textfont.size+2*U6t),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),B6t(r,i,a),r._length=null}});var E6e=ye(($vr,M6e)=>{"use strict";var j6t=Dr(),W6t=NW();M6e.exports=function(t,r){function n(i,a){return j6t.coerce(t,r,W6t,i,a)}n("treemapcolorway",r.colorway),n("extendtreemapcolors")}});var VW=ye(UW=>{"use strict";var C6e=kE();UW.calc=function(e,t){return C6e.calc(e,t)};UW.crossTraceCalc=function(e){return C6e._runCrossTraceCalc("treemap",e)}});var GW=ye((epr,k6e)=>{"use strict";k6e.exports=function e(t,r,n){var i;n.swapXY&&(i=t.x0,t.x0=t.y0,t.y0=i,i=t.x1,t.x1=t.y1,t.y1=i),n.flipX&&(i=t.x0,t.x0=r[0]-t.x1,t.x1=r[0]-i),n.flipY&&(i=t.y0,t.y0=r[1]-t.y1,t.y1=r[1]-i);var a=t.children;if(a)for(var o=0;o{"use strict";var IA=EE(),X6t=GW();L6e.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.packing==="dice-slice",s=n.pad[a?"bottom":"top"],l=n.pad[i?"right":"left"],u=n.pad[i?"left":"right"],c=n.pad[a?"top":"bottom"],f;o&&(f=l,l=s,s=f,f=u,u=c,c=f);var h=IA.treemap().tile(Z6t(n.packing,n.squarifyratio)).paddingInner(n.pad.inner).paddingLeft(l).paddingRight(u).paddingTop(s).paddingBottom(c).size(o?[r[1],r[0]]:r)(t);return(o||i||a)&&X6t(h,r,{swapXY:o,flipX:i,flipY:a}),h};function Z6t(e,t){switch(e){case"squarify":return IA.treemapSquarify.ratio(t);case"binary":return IA.treemapBinary;case"dice":return IA.treemapDice;case"slice":return IA.treemapSlice;default:return IA.treemapSliceDice}}});var ND=ye((rpr,D6e)=>{"use strict";var P6e=Oa(),RA=Ca(),I6e=Dr(),jW=Ky(),Y6t=_v().resizeText,K6t=zD();function J6t(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");Y6t(e,t,"treemap"),t.each(function(r){var n=P6e.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){P6e.select(this).call(R6e,o,a,e,{hovered:!1})})})}function R6e(e,t,r,n,i){var a=(i||{}).hovered,o=t.data.data,s=o.i,l,u,c=o.color,f=jW.isHierarchyRoot(t),h=1;if(a)l=r._hovered.marker.line.color,u=r._hovered.marker.line.width;else if(f&&c===r.root.color)h=100,l="rgba(0,0,0,0)",u=0;else if(l=I6e.castOption(r,s,"marker.line.color")||RA.defaultLine,u=I6e.castOption(r,s,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var d=r.marker.depthfade;if(d){var v=RA.combine(RA.addOpacity(r._backgroundColor,.75),c),x;if(d===!0){var b=jW.getMaxDepth(r);isFinite(b)?jW.isLeaf(t)?x=0:x=r._maxVisibleLayers-(t.data.depth-r._entryDepth):x=t.data.height+1}else x=t.data.depth-r._entryDepth,r._atRootLevel||x++;if(x>0)for(var p=0;p{"use strict";var F6e=Oa(),UD=Dr(),z6e=So(),$6t=iu(),Q6t=HW(),O6e=ND().styleOne,WW=F2(),DA=Ky(),eLt=NE(),XW=!0;q6e.exports=function(t,r,n,i,a){var o=a.barDifY,s=a.width,l=a.height,u=a.viewX,c=a.viewY,f=a.pathSlice,h=a.toMoveInsideSlice,d=a.strTransform,v=a.hasTransition,x=a.handleSlicesExit,b=a.makeUpdateSliceInterpolator,p=a.makeUpdateTextInterpolator,C={},E=t._context.staticPlot,A=t._fullLayout,L=r[0],_=L.trace,k=L.hierarchy,M=s/_._entryDepth,g=DA.listPath(n.data,"id"),P=Q6t(k.copy(),[s,l],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();P=P.filter(function(z){var O=g.indexOf(z.data.id);return O===-1?!1:(z.x0=M*O,z.x1=M*(O+1),z.y0=o,z.y1=o+l,z.onPathbar=!0,!0)}),P.reverse(),i=i.data(P,DA.getPtId),i.enter().append("g").classed("pathbar",!0),x(i,XW,C,[s,l],f),i.order();var T=i;v&&(T=T.transition().each("end",function(){var z=F6e.select(this);DA.setSliceCursor(z,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),T.each(function(z){z._x0=u(z.x0),z._x1=u(z.x1),z._y0=c(z.y0),z._y1=c(z.y1),z._hoverX=u(z.x1-Math.min(s,l)/2),z._hoverY=c(z.y1-l/2);var O=F6e.select(this),V=UD.ensureSingle(O,"path","surface",function(N){N.style("pointer-events",E?"none":"all")});v?V.transition().attrTween("d",function(N){var j=b(N,XW,C,[s,l]);return function(re){return f(j(re))}}):V.attr("d",f),O.call(eLt,n,t,r,{styleOne:O6e,eventDataKeys:WW.eventDataKeys,transitionTime:WW.CLICK_TRANSITION_TIME,transitionEasing:WW.CLICK_TRANSITION_EASING}).call(DA.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),V.call(O6e,z,_,t,{hovered:!1}),z._text=(DA.getPtLabel(z)||"").split("
").join(" ")||"";var G=UD.ensureSingle(O,"g","slicetext"),Z=UD.ensureSingle(G,"text","",function(N){N.attr("data-notex",1)}),H=UD.ensureUniformFontSize(t,DA.determineTextFont(_,z,A.font,{onPathbar:!0}));Z.text(z._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(z6e.font,H).call($6t.convertToTspans,t),z.textBB=z6e.bBox(Z.node()),z.transform=h(z,{fontSize:H.size,onPathbar:!0}),z.transform.fontSize=H.size,v?Z.transition().attrTween("transform",function(N){var j=p(N,XW,C,[s,l]);return function(re){return d(j(re))}}):Z.attr("transform",d(z))})}});var G6e=ye((npr,V6e)=>{"use strict";var N6e=Oa(),ZW=(R2(),B1(I2)).interpolate,Y_=Ky(),VE=Dr(),U6e=Qb().TEXTPAD,tLt=i2(),rLt=tLt.toMoveInsideBar,iLt=_v(),YW=iLt.recordMinTextSize,nLt=F2(),aLt=B6e();function O2(e){return Y_.isHierarchyRoot(e)?"":Y_.getPtId(e)}V6e.exports=function(t,r,n,i,a){var o=t._fullLayout,s=r[0],l=s.trace,u=l.type,c=u==="icicle",f=s.hierarchy,h=Y_.findEntryWithLevel(f,l.level),d=N6e.select(n),v=d.selectAll("g.pathbar"),x=d.selectAll("g.slice");if(!h){v.remove(),x.remove();return}var b=Y_.isHierarchyRoot(h),p=!o.uniformtext.mode&&Y_.hasTransition(i),C=Y_.getMaxDepth(l),E=function($e){return $e.data.depth-h.data.depth-1?k+P:-(g+P):0,z={x0:M,x1:M,y0:T,y1:T+g},O=function($e,Mt,Ct){var Vt=l.tiling.pad,It=function(lr){return lr-Vt<=Mt.x0},Ot=function(lr){return lr+Vt>=Mt.x1},bt=function(lr){return lr-Vt<=Mt.y0},rr=function(lr){return lr+Vt>=Mt.y1};return $e.x0===Mt.x0&&$e.x1===Mt.x1&&$e.y0===Mt.y0&&$e.y1===Mt.y1?{x0:$e.x0,x1:$e.x1,y0:$e.y0,y1:$e.y1}:{x0:It($e.x0-Vt)?0:Ot($e.x0-Vt)?Ct[0]:$e.x0,x1:It($e.x1+Vt)?0:Ot($e.x1+Vt)?Ct[0]:$e.x1,y0:bt($e.y0-Vt)?0:rr($e.y0-Vt)?Ct[1]:$e.y0,y1:bt($e.y1+Vt)?0:rr($e.y1+Vt)?Ct[1]:$e.y1}},V=null,G={},Z={},H=null,N=function($e,Mt){return Mt?G[O2($e)]:Z[O2($e)]},j=function($e,Mt,Ct,Vt){if(Mt)return G[O2(f)]||z;var It=Z[l.level]||Ct;return E($e)?O($e,It,Vt):{}};s.hasMultipleRoots&&b&&C++,l._maxDepth=C,l._backgroundColor=o.paper_bgcolor,l._entryDepth=h.data.depth,l._atRootLevel=b;var re=-_/2+A.l+A.w*(L.x[1]+L.x[0])/2,oe=-k/2+A.t+A.h*(1-(L.y[1]+L.y[0])/2),_e=function($e){return re+$e},Me=function($e){return oe+$e},ke=Me(0),me=_e(0),ie=function($e){return me+$e},Se=function($e){return ke+$e};function Le($e,Mt){return $e+","+Mt}var Ae=ie(0),Fe=function($e){$e.x=Math.max(Ae,$e.x)},Pe=l.pathbar.edgeshape,ge=function($e){var Mt=ie(Math.max(Math.min($e.x0,$e.x0),0)),Ct=ie(Math.min(Math.max($e.x1,$e.x1),M)),Vt=Se($e.y0),It=Se($e.y1),Ot=g/2,bt={},rr={};bt.x=Mt,rr.x=Ct,bt.y=rr.y=(Vt+It)/2;var lr={x:Mt,y:Vt},wr={x:Ct,y:Vt},Cr={x:Ct,y:It},Kr={x:Mt,y:It};return Pe===">"?(lr.x-=Ot,wr.x-=Ot,Cr.x-=Ot,Kr.x-=Ot):Pe==="/"?(Cr.x-=Ot,Kr.x-=Ot,bt.x-=Ot/2,rr.x-=Ot/2):Pe==="\\"?(lr.x-=Ot,wr.x-=Ot,bt.x-=Ot/2,rr.x-=Ot/2):Pe==="<"&&(bt.x-=Ot,rr.x-=Ot),Fe(lr),Fe(Kr),Fe(bt),Fe(wr),Fe(Cr),Fe(rr),"M"+Le(lr.x,lr.y)+"L"+Le(wr.x,wr.y)+"L"+Le(rr.x,rr.y)+"L"+Le(Cr.x,Cr.y)+"L"+Le(Kr.x,Kr.y)+"L"+Le(bt.x,bt.y)+"Z"},De=l[c?"tiling":"marker"].pad,ce=function($e){return l.textposition.indexOf($e)!==-1},Ze=ce("top"),ut=ce("left"),gt=ce("right"),Kt=ce("bottom"),st=function($e){var Mt=_e($e.x0),Ct=_e($e.x1),Vt=Me($e.y0),It=Me($e.y1),Ot=Ct-Mt,bt=It-Vt;if(!Ot||!bt)return"";var rr=l.marker.cornerradius||0,lr=Math.min(rr,Ot/2,bt/2);lr&&$e.data&&$e.data.data&&$e.data.data.label&&(Ze&&(lr=Math.min(lr,De.t)),ut&&(lr=Math.min(lr,De.l)),gt&&(lr=Math.min(lr,De.r)),Kt&&(lr=Math.min(lr,De.b)));var wr=function(Cr,Kr){return lr?"a"+Le(lr,lr)+" 0 0 1 "+Le(Cr,Kr):""};return"M"+Le(Mt,Vt+lr)+wr(lr,-lr)+"L"+Le(Ct-lr,Vt)+wr(lr,lr)+"L"+Le(Ct,It-lr)+wr(-lr,lr)+"L"+Le(Mt+lr,It)+wr(-lr,-lr)+"Z"},lt=function($e,Mt){var Ct=$e.x0,Vt=$e.x1,It=$e.y0,Ot=$e.y1,bt=$e.textBB,rr=Ze||Mt.isHeader&&!Kt,lr=rr?"start":Kt?"end":"middle",wr=ce("right"),Cr=ce("left")||Mt.onPathbar,Kr=Cr?-1:wr?1:0;if(Mt.isHeader){if(Ct+=(c?De:De.l)-U6e,Vt-=(c?De:De.r)-U6e,Ct>=Vt){var Gr=(Ct+Vt)/2;Ct=Gr,Vt=Gr}var Yr;Kt?(Yr=Ot-(c?De:De.b),It{"use strict";var oLt=Oa(),sLt=Ky(),lLt=_v(),uLt=lLt.clearMinTextSize,cLt=N0().resizeText,H6e=G6e();j6e.exports=function(t,r,n,i,a){var o=a.type,s=a.drawDescendants,l=t._fullLayout,u=l["_"+o+"layer"],c,f,h=!n;if(uLt(o,l),c=u.selectAll("g.trace."+o).data(r,function(v){return v[0].trace.uid}),c.enter().append("g").classed("trace",!0).classed(o,!0),c.order(),!l.uniformtext.mode&&sLt.hasTransition(n)){i&&(f=i());var d=oLt.transition().duration(n.duration).ease(n.easing).each("end",function(){f&&f()}).each("interrupt",function(){f&&f()});d.each(function(){u.selectAll("g.trace").each(function(v){H6e(t,v,this,n,s)})})}else c.each(function(v){H6e(t,v,this,n,s)}),l.uniformtext.mode&&cLt(t,u.selectAll(".trace"),o);h&&c.exit().remove()}});var K6e=ye((opr,Y6e)=>{"use strict";var W6e=Oa(),VD=Dr(),X6e=So(),fLt=iu(),hLt=HW(),Z6e=ND().styleOne,JW=F2(),K_=Ky(),dLt=NE(),vLt=qD().formatSliceLabel,$W=!1;Y6e.exports=function(t,r,n,i,a){var o=a.width,s=a.height,l=a.viewX,u=a.viewY,c=a.pathSlice,f=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,v=a.handleSlicesExit,x=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,p=a.prevEntry,C={},E=t._context.staticPlot,A=t._fullLayout,L=r[0],_=L.trace,k=_.textposition.indexOf("left")!==-1,M=_.textposition.indexOf("right")!==-1,g=_.textposition.indexOf("bottom")!==-1,P=!g&&!_.marker.pad.t||g&&!_.marker.pad.b,T=hLt(n,[o,s],{packing:_.tiling.packing,squarifyratio:_.tiling.squarifyratio,flipX:_.tiling.flip.indexOf("x")>-1,flipY:_.tiling.flip.indexOf("y")>-1,pad:{inner:_.tiling.pad,top:_.marker.pad.t,left:_.marker.pad.l,right:_.marker.pad.r,bottom:_.marker.pad.b}}),z=T.descendants(),O=1/0,V=-1/0;z.forEach(function(j){var re=j.depth;re>=_._maxDepth?(j.x0=j.x1=(j.x0+j.x1)/2,j.y0=j.y1=(j.y0+j.y1)/2):(O=Math.min(O,re),V=Math.max(V,re))}),i=i.data(z,K_.getPtId),_._maxVisibleLayers=isFinite(V)?V-O+1:0,i.enter().append("g").classed("slice",!0),v(i,$W,C,[o,s],c),i.order();var G=null;if(d&&p){var Z=K_.getPtId(p);i.each(function(j){G===null&&K_.getPtId(j)===Z&&(G={x0:j.x0,x1:j.x1,y0:j.y0,y1:j.y1})})}var H=function(){return G||{x0:0,x1:o,y0:0,y1:s}},N=i;return d&&(N=N.transition().each("end",function(){var j=W6e.select(this);K_.setSliceCursor(j,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),N.each(function(j){var re=K_.isHeader(j,_);j._x0=l(j.x0),j._x1=l(j.x1),j._y0=u(j.y0),j._y1=u(j.y1),j._hoverX=l(j.x1-_.marker.pad.r),j._hoverY=u(g?j.y1-_.marker.pad.b/2:j.y0+_.marker.pad.t/2);var oe=W6e.select(this),_e=VD.ensureSingle(oe,"path","surface",function(Le){Le.style("pointer-events",E?"none":"all")});d?_e.transition().attrTween("d",function(Le){var Ae=x(Le,$W,H(),[o,s]);return function(Fe){return c(Ae(Fe))}}):_e.attr("d",c),oe.call(dLt,n,t,r,{styleOne:Z6e,eventDataKeys:JW.eventDataKeys,transitionTime:JW.CLICK_TRANSITION_TIME,transitionEasing:JW.CLICK_TRANSITION_EASING}).call(K_.setSliceCursor,t,{isTransitioning:t._transitioning}),_e.call(Z6e,j,_,t,{hovered:!1}),j.x0===j.x1||j.y0===j.y1?j._text="":re?j._text=P?"":K_.getPtLabel(j)||"":j._text=vLt(j,n,_,r,A)||"";var Me=VD.ensureSingle(oe,"g","slicetext"),ke=VD.ensureSingle(Me,"text","",function(Le){Le.attr("data-notex",1)}),me=VD.ensureUniformFontSize(t,K_.determineTextFont(_,j,A.font)),ie=j._text||" ",Se=re&&ie.indexOf("
")===-1;ke.text(ie).classed("slicetext",!0).attr("text-anchor",M?"end":k||Se?"start":"middle").call(X6e.font,me).call(fLt.convertToTspans,t),j.textBB=X6e.bBox(ke.node()),j.transform=f(j,{fontSize:me.size,isHeader:re}),j.transform.fontSize=me.size,d?ke.transition().attrTween("transform",function(Le){var Ae=b(Le,$W,H(),[o,s]);return function(Fe){return h(Ae(Fe))}}):ke.attr("transform",h(j))}),G}});var $6e=ye((spr,J6e)=>{"use strict";var pLt=KW(),gLt=K6e();J6e.exports=function(t,r,n,i){return pLt(t,r,n,i,{type:"treemap",drawDescendants:gLt})}});var eLe=ye((lpr,Q6e)=>{"use strict";Q6e.exports={moduleType:"trace",name:"treemap",basePlotModule:m6e(),categories:[],animatable:!0,attributes:BD(),layoutAttributes:NW(),supplyDefaults:S6e(),supplyLayoutDefaults:E6e(),calc:VW().calc,crossTraceCalc:VW().crossTraceCalc,plot:$6e(),style:ND().style,colorbar:$d(),meta:{}}});var rLe=ye((upr,tLe)=>{"use strict";tLe.exports=eLe()});var nLe=ye(FA=>{"use strict";var iLe=Mc();FA.name="icicle";FA.plot=function(e,t,r,n){iLe.plotBasePlot(FA.name,e,t,r,n)};FA.clean=function(e,t,r,n){iLe.cleanBasePlot(FA.name,e,t,r,n)}});var QW=ye((fpr,oLe)=>{"use strict";var mLt=rs().hovertemplateAttrs,yLt=rs().texttemplateAttrs,_Lt=Tu(),xLt=kc().attributes,GE=A2(),o0=ME(),GD=BD(),aLe=F2(),bLt=Ao().extendFlat,wLt=Pd().pattern;oLe.exports={labels:o0.labels,parents:o0.parents,values:o0.values,branchvalues:o0.branchvalues,count:o0.count,level:o0.level,maxdepth:o0.maxdepth,tiling:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"plot"},flip:GD.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:bLt({colors:o0.marker.colors,line:o0.marker.line,pattern:wLt,editType:"calc"},_Lt("marker",{colorAttr:"colors",anim:!1})),leaf:o0.leaf,pathbar:GD.pathbar,text:GE.text,textinfo:o0.textinfo,texttemplate:yLt({editType:"plot"},{keys:aLe.eventDataKeys.concat(["label","value"])}),hovertext:GE.hovertext,hoverinfo:o0.hoverinfo,hovertemplate:mLt({},{keys:aLe.eventDataKeys}),textfont:GE.textfont,insidetextfont:GE.insidetextfont,outsidetextfont:GD.outsidetextfont,textposition:GD.textposition,sort:GE.sort,root:o0.root,domain:xLt({name:"icicle",trace:!0,editType:"calc"})}});var eX=ye((hpr,sLe)=>{"use strict";sLe.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var fLe=ye((dpr,cLe)=>{"use strict";var lLe=Dr(),TLt=QW(),ALt=Ca(),SLt=kc().defaults,MLt=r0().handleText,ELt=Qb().TEXTPAD,CLt=S2().handleMarkerDefaults,uLe=tc(),kLt=uLe.hasColorscale,LLt=uLe.handleDefaults;cLe.exports=function(t,r,n,i){function a(d,v){return lLe.coerce(t,r,TLt,d,v)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),a("tiling.orientation"),a("tiling.flip"),a("tiling.pad");var u=a("text");a("texttemplate"),r.texttemplate||a("textinfo",lLe.isArrayOrTypedArray(u)?"text+label":"label"),a("hovertext"),a("hovertemplate");var c=a("pathbar.visible"),f="auto";MLt(t,r,i,a,f,{hasPathbar:c,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition"),CLt(t,r,i,a);var h=r._hasColorscale=kLt(t,"marker","colors")||(t.marker||{}).coloraxis;h&&LLt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",h?1:.7),r._hovered={marker:{line:{width:2,color:ALt.contrast(i.paper_bgcolor)}}},c&&(a("pathbar.thickness",r.pathbar.textfont.size+2*ELt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),SLt(r,i,a),r._length=null}});var dLe=ye((vpr,hLe)=>{"use strict";var PLt=Dr(),ILt=eX();hLe.exports=function(t,r){function n(i,a){return PLt.coerce(t,r,ILt,i,a)}n("iciclecolorway",r.colorway),n("extendiciclecolors")}});var rX=ye(tX=>{"use strict";var vLe=kE();tX.calc=function(e,t){return vLe.calc(e,t)};tX.crossTraceCalc=function(e){return vLe._runCrossTraceCalc("icicle",e)}});var gLe=ye((gpr,pLe)=>{"use strict";var RLt=EE(),DLt=GW();pLe.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.orientation==="h",s=n.maxDepth,l=r[0],u=r[1];s&&(l=(t.height+1)*r[0]/Math.min(t.height+1,s),u=(t.height+1)*r[1]/Math.min(t.height+1,s));var c=RLt.partition().padding(n.pad.inner).size(o?[r[1],l]:[r[0],u])(t);return(o||i||a)&&DLt(c,r,{swapXY:o,flipX:i,flipY:a}),c}});var iX=ye((mpr,bLe)=>{"use strict";var mLe=Oa(),yLe=Ca(),_Le=Dr(),FLt=_v().resizeText,zLt=zD();function OLt(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");FLt(e,t,"icicle"),t.each(function(r){var n=mLe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){mLe.select(this).call(xLe,o,a,e)})})}function xLe(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=_Le.castOption(r,o,"marker.line.color")||yLe.defaultLine,l=_Le.castOption(r,o,"marker.line.width")||0;e.call(zLt,t,r,n).style("stroke-width",l).call(yLe.stroke,s).style("opacity",a?r.leaf.opacity:null)}bLe.exports={style:OLt,styleOne:xLe}});var MLe=ye((ypr,SLe)=>{"use strict";var wLe=Oa(),HD=Dr(),TLe=So(),qLt=iu(),BLt=gLe(),ALe=iX().styleOne,nX=F2(),zA=Ky(),NLt=NE(),ULt=qD().formatSliceLabel,aX=!1;SLe.exports=function(t,r,n,i,a){var o=a.width,s=a.height,l=a.viewX,u=a.viewY,c=a.pathSlice,f=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,v=a.handleSlicesExit,x=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,p=a.prevEntry,C={},E=t._context.staticPlot,A=t._fullLayout,L=r[0],_=L.trace,k=_.textposition.indexOf("left")!==-1,M=_.textposition.indexOf("right")!==-1,g=_.textposition.indexOf("bottom")!==-1,P=BLt(n,[o,s],{flipX:_.tiling.flip.indexOf("x")>-1,flipY:_.tiling.flip.indexOf("y")>-1,orientation:_.tiling.orientation,pad:{inner:_.tiling.pad},maxDepth:_._maxDepth}),T=P.descendants(),z=1/0,O=-1/0;T.forEach(function(N){var j=N.depth;j>=_._maxDepth?(N.x0=N.x1=(N.x0+N.x1)/2,N.y0=N.y1=(N.y0+N.y1)/2):(z=Math.min(z,j),O=Math.max(O,j))}),i=i.data(T,zA.getPtId),_._maxVisibleLayers=isFinite(O)?O-z+1:0,i.enter().append("g").classed("slice",!0),v(i,aX,C,[o,s],c),i.order();var V=null;if(d&&p){var G=zA.getPtId(p);i.each(function(N){V===null&&zA.getPtId(N)===G&&(V={x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1})})}var Z=function(){return V||{x0:0,x1:o,y0:0,y1:s}},H=i;return d&&(H=H.transition().each("end",function(){var N=wLe.select(this);zA.setSliceCursor(N,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),H.each(function(N){N._x0=l(N.x0),N._x1=l(N.x1),N._y0=u(N.y0),N._y1=u(N.y1),N._hoverX=l(N.x1-_.tiling.pad),N._hoverY=u(g?N.y1-_.tiling.pad/2:N.y0+_.tiling.pad/2);var j=wLe.select(this),re=HD.ensureSingle(j,"path","surface",function(ke){ke.style("pointer-events",E?"none":"all")});d?re.transition().attrTween("d",function(ke){var me=x(ke,aX,Z(),[o,s],{orientation:_.tiling.orientation,flipX:_.tiling.flip.indexOf("x")>-1,flipY:_.tiling.flip.indexOf("y")>-1});return function(ie){return c(me(ie))}}):re.attr("d",c),j.call(NLt,n,t,r,{styleOne:ALe,eventDataKeys:nX.eventDataKeys,transitionTime:nX.CLICK_TRANSITION_TIME,transitionEasing:nX.CLICK_TRANSITION_EASING}).call(zA.setSliceCursor,t,{isTransitioning:t._transitioning}),re.call(ALe,N,_,t,{hovered:!1}),N.x0===N.x1||N.y0===N.y1?N._text="":N._text=ULt(N,n,_,r,A)||"";var oe=HD.ensureSingle(j,"g","slicetext"),_e=HD.ensureSingle(oe,"text","",function(ke){ke.attr("data-notex",1)}),Me=HD.ensureUniformFontSize(t,zA.determineTextFont(_,N,A.font));_e.text(N._text||" ").classed("slicetext",!0).attr("text-anchor",M?"end":k?"start":"middle").call(TLe.font,Me).call(qLt.convertToTspans,t),N.textBB=TLe.bBox(_e.node()),N.transform=f(N,{fontSize:Me.size}),N.transform.fontSize=Me.size,d?_e.transition().attrTween("transform",function(ke){var me=b(ke,aX,Z(),[o,s]);return function(ie){return h(me(ie))}}):_e.attr("transform",h(N))}),V}});var CLe=ye((_pr,ELe)=>{"use strict";var VLt=KW(),GLt=MLe();ELe.exports=function(t,r,n,i){return VLt(t,r,n,i,{type:"icicle",drawDescendants:GLt})}});var LLe=ye((xpr,kLe)=>{"use strict";kLe.exports={moduleType:"trace",name:"icicle",basePlotModule:nLe(),categories:[],animatable:!0,attributes:QW(),layoutAttributes:eX(),supplyDefaults:fLe(),supplyLayoutDefaults:dLe(),calc:rX().calc,crossTraceCalc:rX().crossTraceCalc,plot:CLe(),style:iX().style,colorbar:$d(),meta:{}}});var ILe=ye((bpr,PLe)=>{"use strict";PLe.exports=LLe()});var DLe=ye(OA=>{"use strict";var RLe=Mc();OA.name="funnelarea";OA.plot=function(e,t,r,n){RLe.plotBasePlot(OA.name,e,t,r,n)};OA.clean=function(e,t,r,n){RLe.cleanBasePlot(OA.name,e,t,r,n)}});var oX=ye((Tpr,FLe)=>{"use strict";var iv=A2(),HLt=Vl(),jLt=kc().attributes,WLt=rs().hovertemplateAttrs,XLt=rs().texttemplateAttrs,q2=Ao().extendFlat;FLe.exports={labels:iv.labels,label0:iv.label0,dlabel:iv.dlabel,values:iv.values,marker:{colors:iv.marker.colors,line:{color:q2({},iv.marker.line.color,{dflt:null}),width:q2({},iv.marker.line.width,{dflt:1}),editType:"calc"},pattern:iv.marker.pattern,editType:"calc"},text:iv.text,hovertext:iv.hovertext,scalegroup:q2({},iv.scalegroup,{}),textinfo:q2({},iv.textinfo,{flags:["label","text","value","percent"]}),texttemplate:XLt({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:q2({},HLt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:WLt({},{keys:["label","color","value","text","percent"]}),textposition:q2({},iv.textposition,{values:["inside","none"],dflt:"inside"}),textfont:iv.textfont,insidetextfont:iv.insidetextfont,title:{text:iv.title.text,font:iv.title.font,position:q2({},iv.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:jLt({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}});var sX=ye((Apr,zLe)=>{"use strict";var ZLt=fD().hiddenlabels;zLe.exports={hiddenlabels:ZLt,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var BLe=ye((Spr,qLe)=>{"use strict";var OLe=Dr(),YLt=oX(),KLt=kc().defaults,JLt=r0().handleText,$Lt=S2().handleLabelsAndValues,QLt=S2().handleMarkerDefaults;qLe.exports=function(t,r,n,i){function a(x,b){return OLe.coerce(t,r,YLt,x,b)}var o=a("labels"),s=a("values"),l=$Lt(o,s),u=l.len;if(r._hasLabels=l.hasLabels,r._hasValues=l.hasValues,!r._hasLabels&&r._hasValues&&(a("label0"),a("dlabel")),!u){r.visible=!1;return}r._length=u,QLt(t,r,i,a),a("scalegroup");var c=a("text"),f=a("texttemplate"),h;if(f||(h=a("textinfo",Array.isArray(c)?"text+percent":"percent")),a("hovertext"),a("hovertemplate"),f||h&&h!=="none"){var d=a("textposition");JLt(t,r,i,a,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&a("textposition","none");KLt(r,i,a);var v=a("title.text");v&&(a("title.position"),OLe.coerceFont(a,"title.font",i.font)),a("aspectratio"),a("baseratio")}});var ULe=ye((Mpr,NLe)=>{"use strict";var ePt=Dr(),tPt=sX();NLe.exports=function(t,r){function n(i,a){return ePt.coerce(t,r,tPt,i,a)}n("hiddenlabels"),n("funnelareacolorway",r.colorway),n("extendfunnelareacolors")}});var lX=ye((Epr,GLe)=>{"use strict";var VLe=_A();function rPt(e,t){return VLe.calc(e,t)}function iPt(e){VLe.crossTraceCalc(e,{type:"funnelarea"})}GLe.exports={calc:rPt,crossTraceCalc:iPt}});var ZLe=ye((Cpr,XLe)=>{"use strict";var B2=Oa(),uX=So(),J_=Dr(),nPt=J_.strScale,HLe=J_.strTranslate,jLe=iu(),aPt=i2(),oPt=aPt.toMoveInsideBar,WLe=_v(),sPt=WLe.recordMinTextSize,lPt=WLe.clearMinTextSize,uPt=u_(),qA=pD(),cPt=qA.attachFxHandlers,fPt=qA.determineInsideTextFont,hPt=qA.layoutAreas,dPt=qA.prerenderTitles,vPt=qA.positionTitleOutside,pPt=qA.formatSliceLabel;XLe.exports=function(t,r){var n=t._context.staticPlot,i=t._fullLayout;lPt("funnelarea",i),dPt(r,t),hPt(r,i._size),J_.makeTraceGroups(i._funnelarealayer,r,"trace").each(function(a){var o=B2.select(this),s=a[0],l=s.trace;mPt(a),o.each(function(){var u=B2.select(this).selectAll("g.slice").data(a);u.enter().append("g").classed("slice",!0),u.exit().remove(),u.each(function(f,h){if(f.hidden){B2.select(this).selectAll("path,g").remove();return}f.pointNumber=f.i,f.curveNumber=l.index;var d=s.cx,v=s.cy,x=B2.select(this),b=x.selectAll("path.surface").data([f]);b.enter().append("path").classed("surface",!0).style({"pointer-events":n?"none":"all"}),x.call(cPt,t,a);var p="M"+(d+f.TR[0])+","+(v+f.TR[1])+cX(f.TR,f.BR)+cX(f.BR,f.BL)+cX(f.BL,f.TL)+"Z";b.attr("d",p),pPt(t,f,s);var C=uPt.castOption(l.textposition,f.pts),E=x.selectAll("g.slicetext").data(f.text&&C!=="none"?[0]:[]);E.enter().append("g").classed("slicetext",!0),E.exit().remove(),E.each(function(){var A=J_.ensureSingle(B2.select(this),"text","",function(z){z.attr("data-notex",1)}),L=J_.ensureUniformFontSize(t,fPt(l,f,i.font));A.text(f.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(uX.font,L).call(jLe.convertToTspans,t);var _=uX.bBox(A.node()),k,M,g,P=Math.min(f.BL[1],f.BR[1])+v,T=Math.max(f.TL[1],f.TR[1])+v;M=Math.max(f.TL[0],f.BL[0])+d,g=Math.min(f.TR[0],f.BR[0])+d,k=oPt(M,g,P,T,_,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),k.fontSize=L.size,sPt(l.type,k,i),a[h].transform=k,J_.setTransormAndDisplay(A,k)})});var c=B2.select(this).selectAll("g.titletext").data(l.title.text?[0]:[]);c.enter().append("g").classed("titletext",!0),c.exit().remove(),c.each(function(){var f=J_.ensureSingle(B2.select(this),"text","",function(v){v.attr("data-notex",1)}),h=l.title.text;l._meta&&(h=J_.templateString(h,l._meta)),f.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(uX.font,l.title.font).call(jLe.convertToTspans,t);var d=vPt(s,i._size);f.attr("transform",HLe(d.x,d.y)+nPt(Math.min(1,d.scale))+HLe(d.tx,d.ty))})})})};function cX(e,t){var r=t[0]-e[0],n=t[1]-e[1];return"l"+r+","+n}function gPt(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function mPt(e){if(!e.length)return;var t=e[0],r=t.trace,n=r.aspectratio,i=r.baseratio;i>.999&&(i=.999);var a=Math.pow(i,2),o=t.vTotal,s=o*a/(1-a),l=o,u=s/o;function c(){var O=Math.sqrt(u);return{x:O,y:-O}}function f(){var O=c();return[O.x,O.y]}var h,d=[];d.push(f());var v,x;for(v=e.length-1;v>-1;v--)if(x=e[v],!x.hidden){var b=x.v/l;u+=b,d.push(f())}var p=1/0,C=-1/0;for(v=0;v-1;v--)if(x=e[v],!x.hidden){P+=1;var T=d[P][0],z=d[P][1];x.TL=[-T,z],x.TR=[T,z],x.BL=M,x.BR=g,x.pxmid=gPt(x.TR,x.BR),M=x.TL,g=x.TR}}});var JLe=ye((kpr,KLe)=>{"use strict";var YLe=Oa(),yPt=F3(),_Pt=_v().resizeText;KLe.exports=function(t){var r=t._fullLayout._funnelarealayer.selectAll(".trace");_Pt(t,r,"funnelarea"),r.each(function(n){var i=n[0],a=i.trace,o=YLe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){YLe.select(this).call(yPt,s,a,t)})})}});var QLe=ye((Lpr,$Le)=>{"use strict";$Le.exports={moduleType:"trace",name:"funnelarea",basePlotModule:DLe(),categories:["pie-like","funnelarea","showLegend"],attributes:oX(),layoutAttributes:sX(),supplyDefaults:BLe(),supplyLayoutDefaults:ULe(),calc:lX().calc,crossTraceCalc:lX().crossTraceCalc,plot:ZLe(),style:JLe(),styleOne:F3(),meta:{}}});var tPe=ye((Ppr,ePe)=>{"use strict";ePe.exports=QLe()});var Od=ye((Ipr,rPe)=>{(function(){var e={1964:function(i,a,o){i.exports={alpha_shape:o(3502),convex_hull:o(7352),delaunay_triangulate:o(7642),gl_cone3d:o(6405),gl_error3d:o(9165),gl_line3d:o(5714),gl_mesh3d:o(7201),gl_plot3d:o(4100),gl_scatter3d:o(8418),gl_streamtube3d:o(7815),gl_surface3d:o(9499),ndarray:o(9618),ndarray_linear_interpolate:o(4317)}},4793:function(i,a,o){"use strict";var s;function l(Ie,xe){if(!(Ie instanceof xe))throw new TypeError("Cannot call a class as a function")}function u(Ie,xe){for(var Ce=0;CeM)throw new RangeError('The value "'+Ie+'" is invalid for option "size"');var xe=new Uint8Array(Ie);return Object.setPrototypeOf(xe,T.prototype),xe}function T(Ie,xe,Ce){if(typeof Ie=="number"){if(typeof xe=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return G(Ie)}return z(Ie,xe,Ce)}T.poolSize=8192;function z(Ie,xe,Ce){if(typeof Ie=="string")return Z(Ie,xe);if(ArrayBuffer.isView(Ie))return N(Ie);if(Ie==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+A(Ie));if(Ge(Ie,ArrayBuffer)||Ie&&Ge(Ie.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ge(Ie,SharedArrayBuffer)||Ie&&Ge(Ie.buffer,SharedArrayBuffer)))return j(Ie,xe,Ce);if(typeof Ie=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var pt=Ie.valueOf&&Ie.valueOf();if(pt!=null&&pt!==Ie)return T.from(pt,xe,Ce);var nr=re(Ie);if(nr)return nr;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Ie[Symbol.toPrimitive]=="function")return T.from(Ie[Symbol.toPrimitive]("string"),xe,Ce);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+A(Ie))}T.from=function(Ie,xe,Ce){return z(Ie,xe,Ce)},Object.setPrototypeOf(T.prototype,Uint8Array.prototype),Object.setPrototypeOf(T,Uint8Array);function O(Ie){if(typeof Ie!="number")throw new TypeError('"size" argument must be of type number');if(Ie<0)throw new RangeError('The value "'+Ie+'" is invalid for option "size"')}function V(Ie,xe,Ce){return O(Ie),Ie<=0?P(Ie):xe!==void 0?typeof Ce=="string"?P(Ie).fill(xe,Ce):P(Ie).fill(xe):P(Ie)}T.alloc=function(Ie,xe,Ce){return V(Ie,xe,Ce)};function G(Ie){return O(Ie),P(Ie<0?0:oe(Ie)|0)}T.allocUnsafe=function(Ie){return G(Ie)},T.allocUnsafeSlow=function(Ie){return G(Ie)};function Z(Ie,xe){if((typeof xe!="string"||xe==="")&&(xe="utf8"),!T.isEncoding(xe))throw new TypeError("Unknown encoding: "+xe);var Ce=Me(Ie,xe)|0,pt=P(Ce),nr=pt.write(Ie,xe);return nr!==Ce&&(pt=pt.slice(0,nr)),pt}function H(Ie){for(var xe=Ie.length<0?0:oe(Ie.length)|0,Ce=P(xe),pt=0;pt=M)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+M.toString(16)+" bytes");return Ie|0}function _e(Ie){return+Ie!=Ie&&(Ie=0),T.alloc(+Ie)}T.isBuffer=function(xe){return xe!=null&&xe._isBuffer===!0&&xe!==T.prototype},T.compare=function(xe,Ce){if(Ge(xe,Uint8Array)&&(xe=T.from(xe,xe.offset,xe.byteLength)),Ge(Ce,Uint8Array)&&(Ce=T.from(Ce,Ce.offset,Ce.byteLength)),!T.isBuffer(xe)||!T.isBuffer(Ce))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(xe===Ce)return 0;for(var pt=xe.length,nr=Ce.length,ir=0,vr=Math.min(pt,nr);irnr.length?(T.isBuffer(vr)||(vr=T.from(vr)),vr.copy(nr,ir)):Uint8Array.prototype.set.call(nr,vr,ir);else if(T.isBuffer(vr))vr.copy(nr,ir);else throw new TypeError('"list" argument must be an Array of Buffers');ir+=vr.length}return nr};function Me(Ie,xe){if(T.isBuffer(Ie))return Ie.length;if(ArrayBuffer.isView(Ie)||Ge(Ie,ArrayBuffer))return Ie.byteLength;if(typeof Ie!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+A(Ie));var Ce=Ie.length,pt=arguments.length>2&&arguments[2]===!0;if(!pt&&Ce===0)return 0;for(var nr=!1;;)switch(xe){case"ascii":case"latin1":case"binary":return Ce;case"utf8":case"utf-8":return Cr(Ie).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ce*2;case"hex":return Ce>>>1;case"base64":return Yr(Ie).length;default:if(nr)return pt?-1:Cr(Ie).length;xe=(""+xe).toLowerCase(),nr=!0}}T.byteLength=Me;function ke(Ie,xe,Ce){var pt=!1;if((xe===void 0||xe<0)&&(xe=0),xe>this.length||((Ce===void 0||Ce>this.length)&&(Ce=this.length),Ce<=0)||(Ce>>>=0,xe>>>=0,Ce<=xe))return"";for(Ie||(Ie="utf8");;)switch(Ie){case"hex":return st(this,xe,Ce);case"utf8":case"utf-8":return ce(this,xe,Ce);case"ascii":return gt(this,xe,Ce);case"latin1":case"binary":return Kt(this,xe,Ce);case"base64":return De(this,xe,Ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lt(this,xe,Ce);default:if(pt)throw new TypeError("Unknown encoding: "+Ie);Ie=(Ie+"").toLowerCase(),pt=!0}}T.prototype._isBuffer=!0;function me(Ie,xe,Ce){var pt=Ie[xe];Ie[xe]=Ie[Ce],Ie[Ce]=pt}T.prototype.swap16=function(){var xe=this.length;if(xe%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ce=0;CeCe&&(xe+=" ... "),""},k&&(T.prototype[k]=T.prototype.inspect),T.prototype.compare=function(xe,Ce,pt,nr,ir){if(Ge(xe,Uint8Array)&&(xe=T.from(xe,xe.offset,xe.byteLength)),!T.isBuffer(xe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+A(xe));if(Ce===void 0&&(Ce=0),pt===void 0&&(pt=xe?xe.length:0),nr===void 0&&(nr=0),ir===void 0&&(ir=this.length),Ce<0||pt>xe.length||nr<0||ir>this.length)throw new RangeError("out of range index");if(nr>=ir&&Ce>=pt)return 0;if(nr>=ir)return-1;if(Ce>=pt)return 1;if(Ce>>>=0,pt>>>=0,nr>>>=0,ir>>>=0,this===xe)return 0;for(var vr=ir-nr,si=pt-Ce,mi=Math.min(vr,si),ei=this.slice(nr,ir),vi=xe.slice(Ce,pt),ji=0;ji2147483647?Ce=2147483647:Ce<-2147483648&&(Ce=-2147483648),Ce=+Ce,Qe(Ce)&&(Ce=nr?0:Ie.length-1),Ce<0&&(Ce=Ie.length+Ce),Ce>=Ie.length){if(nr)return-1;Ce=Ie.length-1}else if(Ce<0)if(nr)Ce=0;else return-1;if(typeof xe=="string"&&(xe=T.from(xe,pt)),T.isBuffer(xe))return xe.length===0?-1:Se(Ie,xe,Ce,pt,nr);if(typeof xe=="number")return xe=xe&255,typeof Uint8Array.prototype.indexOf=="function"?nr?Uint8Array.prototype.indexOf.call(Ie,xe,Ce):Uint8Array.prototype.lastIndexOf.call(Ie,xe,Ce):Se(Ie,[xe],Ce,pt,nr);throw new TypeError("val must be string, number or Buffer")}function Se(Ie,xe,Ce,pt,nr){var ir=1,vr=Ie.length,si=xe.length;if(pt!==void 0&&(pt=String(pt).toLowerCase(),pt==="ucs2"||pt==="ucs-2"||pt==="utf16le"||pt==="utf-16le")){if(Ie.length<2||xe.length<2)return-1;ir=2,vr/=2,si/=2,Ce/=2}function mi(wn,pn){return ir===1?wn[pn]:wn.readUInt16BE(pn*ir)}var ei;if(nr){var vi=-1;for(ei=Ce;eivr&&(Ce=vr-si),ei=Ce;ei>=0;ei--){for(var ji=!0,Rn=0;Rnnr&&(pt=nr)):pt=nr;var ir=xe.length;pt>ir/2&&(pt=ir/2);var vr;for(vr=0;vr>>0,isFinite(pt)?(pt=pt>>>0,nr===void 0&&(nr="utf8")):(nr=pt,pt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ir=this.length-Ce;if((pt===void 0||pt>ir)&&(pt=ir),xe.length>0&&(pt<0||Ce<0)||Ce>this.length)throw new RangeError("Attempt to write outside buffer bounds");nr||(nr="utf8");for(var vr=!1;;)switch(nr){case"hex":return Le(this,xe,Ce,pt);case"utf8":case"utf-8":return Ae(this,xe,Ce,pt);case"ascii":case"latin1":case"binary":return Fe(this,xe,Ce,pt);case"base64":return Pe(this,xe,Ce,pt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ge(this,xe,Ce,pt);default:if(vr)throw new TypeError("Unknown encoding: "+nr);nr=(""+nr).toLowerCase(),vr=!0}},T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function De(Ie,xe,Ce){return xe===0&&Ce===Ie.length?L.fromByteArray(Ie):L.fromByteArray(Ie.slice(xe,Ce))}function ce(Ie,xe,Ce){Ce=Math.min(Ie.length,Ce);for(var pt=[],nr=xe;nr239?4:ir>223?3:ir>191?2:1;if(nr+si<=Ce){var mi=void 0,ei=void 0,vi=void 0,ji=void 0;switch(si){case 1:ir<128&&(vr=ir);break;case 2:mi=Ie[nr+1],(mi&192)===128&&(ji=(ir&31)<<6|mi&63,ji>127&&(vr=ji));break;case 3:mi=Ie[nr+1],ei=Ie[nr+2],(mi&192)===128&&(ei&192)===128&&(ji=(ir&15)<<12|(mi&63)<<6|ei&63,ji>2047&&(ji<55296||ji>57343)&&(vr=ji));break;case 4:mi=Ie[nr+1],ei=Ie[nr+2],vi=Ie[nr+3],(mi&192)===128&&(ei&192)===128&&(vi&192)===128&&(ji=(ir&15)<<18|(mi&63)<<12|(ei&63)<<6|vi&63,ji>65535&&ji<1114112&&(vr=ji))}}vr===null?(vr=65533,si=1):vr>65535&&(vr-=65536,pt.push(vr>>>10&1023|55296),vr=56320|vr&1023),pt.push(vr),nr+=si}return ut(pt)}var Ze=4096;function ut(Ie){var xe=Ie.length;if(xe<=Ze)return String.fromCharCode.apply(String,Ie);for(var Ce="",pt=0;ptpt)&&(Ce=pt);for(var nr="",ir=xe;irpt&&(xe=pt),Ce<0?(Ce+=pt,Ce<0&&(Ce=0)):Ce>pt&&(Ce=pt),CeCe)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function(xe,Ce,pt){xe=xe>>>0,Ce=Ce>>>0,pt||Gt(xe,Ce,this.length);for(var nr=this[xe],ir=1,vr=0;++vr>>0,Ce=Ce>>>0,pt||Gt(xe,Ce,this.length);for(var nr=this[xe+--Ce],ir=1;Ce>0&&(ir*=256);)nr+=this[xe+--Ce]*ir;return nr},T.prototype.readUint8=T.prototype.readUInt8=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,1,this.length),this[xe]},T.prototype.readUint16LE=T.prototype.readUInt16LE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,2,this.length),this[xe]|this[xe+1]<<8},T.prototype.readUint16BE=T.prototype.readUInt16BE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,2,this.length),this[xe]<<8|this[xe+1]},T.prototype.readUint32LE=T.prototype.readUInt32LE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),(this[xe]|this[xe+1]<<8|this[xe+2]<<16)+this[xe+3]*16777216},T.prototype.readUint32BE=T.prototype.readUInt32BE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),this[xe]*16777216+(this[xe+1]<<16|this[xe+2]<<8|this[xe+3])},T.prototype.readBigUInt64LE=Je(function(xe){xe=xe>>>0,bt(xe,"offset");var Ce=this[xe],pt=this[xe+7];(Ce===void 0||pt===void 0)&&rr(xe,this.length-8);var nr=Ce+this[++xe]*Math.pow(2,8)+this[++xe]*Math.pow(2,16)+this[++xe]*Math.pow(2,24),ir=this[++xe]+this[++xe]*Math.pow(2,8)+this[++xe]*Math.pow(2,16)+pt*Math.pow(2,24);return BigInt(nr)+(BigInt(ir)<>>0,bt(xe,"offset");var Ce=this[xe],pt=this[xe+7];(Ce===void 0||pt===void 0)&&rr(xe,this.length-8);var nr=Ce*Math.pow(2,24)+this[++xe]*Math.pow(2,16)+this[++xe]*Math.pow(2,8)+this[++xe],ir=this[++xe]*Math.pow(2,24)+this[++xe]*Math.pow(2,16)+this[++xe]*Math.pow(2,8)+pt;return(BigInt(nr)<>>0,Ce=Ce>>>0,pt||Gt(xe,Ce,this.length);for(var nr=this[xe],ir=1,vr=0;++vr=ir&&(nr-=Math.pow(2,8*Ce)),nr},T.prototype.readIntBE=function(xe,Ce,pt){xe=xe>>>0,Ce=Ce>>>0,pt||Gt(xe,Ce,this.length);for(var nr=Ce,ir=1,vr=this[xe+--nr];nr>0&&(ir*=256);)vr+=this[xe+--nr]*ir;return ir*=128,vr>=ir&&(vr-=Math.pow(2,8*Ce)),vr},T.prototype.readInt8=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,1,this.length),this[xe]&128?(255-this[xe]+1)*-1:this[xe]},T.prototype.readInt16LE=function(xe,Ce){xe=xe>>>0,Ce||Gt(xe,2,this.length);var pt=this[xe]|this[xe+1]<<8;return pt&32768?pt|4294901760:pt},T.prototype.readInt16BE=function(xe,Ce){xe=xe>>>0,Ce||Gt(xe,2,this.length);var pt=this[xe+1]|this[xe]<<8;return pt&32768?pt|4294901760:pt},T.prototype.readInt32LE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),this[xe]|this[xe+1]<<8|this[xe+2]<<16|this[xe+3]<<24},T.prototype.readInt32BE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),this[xe]<<24|this[xe+1]<<16|this[xe+2]<<8|this[xe+3]},T.prototype.readBigInt64LE=Je(function(xe){xe=xe>>>0,bt(xe,"offset");var Ce=this[xe],pt=this[xe+7];(Ce===void 0||pt===void 0)&&rr(xe,this.length-8);var nr=this[xe+4]+this[xe+5]*Math.pow(2,8)+this[xe+6]*Math.pow(2,16)+(pt<<24);return(BigInt(nr)<>>0,bt(xe,"offset");var Ce=this[xe],pt=this[xe+7];(Ce===void 0||pt===void 0)&&rr(xe,this.length-8);var nr=(Ce<<24)+this[++xe]*Math.pow(2,16)+this[++xe]*Math.pow(2,8)+this[++xe];return(BigInt(nr)<>>0,Ce||Gt(xe,4,this.length),_.read(this,xe,!0,23,4)},T.prototype.readFloatBE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),_.read(this,xe,!1,23,4)},T.prototype.readDoubleLE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,8,this.length),_.read(this,xe,!0,52,8)},T.prototype.readDoubleBE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,8,this.length),_.read(this,xe,!1,52,8)};function Ut(Ie,xe,Ce,pt,nr,ir){if(!T.isBuffer(Ie))throw new TypeError('"buffer" argument must be a Buffer instance');if(xe>nr||xeIe.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function(xe,Ce,pt,nr){if(xe=+xe,Ce=Ce>>>0,pt=pt>>>0,!nr){var ir=Math.pow(2,8*pt)-1;Ut(this,xe,Ce,pt,ir,0)}var vr=1,si=0;for(this[Ce]=xe&255;++si>>0,pt=pt>>>0,!nr){var ir=Math.pow(2,8*pt)-1;Ut(this,xe,Ce,pt,ir,0)}var vr=pt-1,si=1;for(this[Ce+vr]=xe&255;--vr>=0&&(si*=256);)this[Ce+vr]=xe/si&255;return Ce+pt},T.prototype.writeUint8=T.prototype.writeUInt8=function(xe,Ce,pt){return xe=+xe,Ce=Ce>>>0,pt||Ut(this,xe,Ce,1,255,0),this[Ce]=xe&255,Ce+1},T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(xe,Ce,pt){return xe=+xe,Ce=Ce>>>0,pt||Ut(this,xe,Ce,2,65535,0),this[Ce]=xe&255,this[Ce+1]=xe>>>8,Ce+2},T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(xe,Ce,pt){return xe=+xe,Ce=Ce>>>0,pt||Ut(this,xe,Ce,2,65535,0),this[Ce]=xe>>>8,this[Ce+1]=xe&255,Ce+2},T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(xe,Ce,pt){return xe=+xe,Ce=Ce>>>0,pt||Ut(this,xe,Ce,4,4294967295,0),this[Ce+3]=xe>>>24,this[Ce+2]=xe>>>16,this[Ce+1]=xe>>>8,this[Ce]=xe&255,Ce+4},T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(xe,Ce,pt){return xe=+xe,Ce=Ce>>>0,pt||Ut(this,xe,Ce,4,4294967295,0),this[Ce]=xe>>>24,this[Ce+1]=xe>>>16,this[Ce+2]=xe>>>8,this[Ce+3]=xe&255,Ce+4};function $t(Ie,xe,Ce,pt,nr){Ot(xe,pt,nr,Ie,Ce,7);var ir=Number(xe&BigInt(4294967295));Ie[Ce++]=ir,ir=ir>>8,Ie[Ce++]=ir,ir=ir>>8,Ie[Ce++]=ir,ir=ir>>8,Ie[Ce++]=ir;var vr=Number(xe>>BigInt(32)&BigInt(4294967295));return Ie[Ce++]=vr,vr=vr>>8,Ie[Ce++]=vr,vr=vr>>8,Ie[Ce++]=vr,vr=vr>>8,Ie[Ce++]=vr,Ce}function sr(Ie,xe,Ce,pt,nr){Ot(xe,pt,nr,Ie,Ce,7);var ir=Number(xe&BigInt(4294967295));Ie[Ce+7]=ir,ir=ir>>8,Ie[Ce+6]=ir,ir=ir>>8,Ie[Ce+5]=ir,ir=ir>>8,Ie[Ce+4]=ir;var vr=Number(xe>>BigInt(32)&BigInt(4294967295));return Ie[Ce+3]=vr,vr=vr>>8,Ie[Ce+2]=vr,vr=vr>>8,Ie[Ce+1]=vr,vr=vr>>8,Ie[Ce]=vr,Ce+8}T.prototype.writeBigUInt64LE=Je(function(xe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return $t(this,xe,Ce,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeBigUInt64BE=Je(function(xe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return sr(this,xe,Ce,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeIntLE=function(xe,Ce,pt,nr){if(xe=+xe,Ce=Ce>>>0,!nr){var ir=Math.pow(2,8*pt-1);Ut(this,xe,Ce,pt,ir-1,-ir)}var vr=0,si=1,mi=0;for(this[Ce]=xe&255;++vr>0)-mi&255;return Ce+pt},T.prototype.writeIntBE=function(xe,Ce,pt,nr){if(xe=+xe,Ce=Ce>>>0,!nr){var ir=Math.pow(2,8*pt-1);Ut(this,xe,Ce,pt,ir-1,-ir)}var vr=pt-1,si=1,mi=0;for(this[Ce+vr]=xe&255;--vr>=0&&(si*=256);)xe<0&&mi===0&&this[Ce+vr+1]!==0&&(mi=1),this[Ce+vr]=(xe/si>>0)-mi&255;return Ce+pt},T.prototype.writeInt8=function(xe,Ce,pt){return xe=+xe,Ce=Ce>>>0,pt||Ut(this,xe,Ce,1,127,-128),xe<0&&(xe=255+xe+1),this[Ce]=xe&255,Ce+1},T.prototype.writeInt16LE=function(xe,Ce,pt){return xe=+xe,Ce=Ce>>>0,pt||Ut(this,xe,Ce,2,32767,-32768),this[Ce]=xe&255,this[Ce+1]=xe>>>8,Ce+2},T.prototype.writeInt16BE=function(xe,Ce,pt){return xe=+xe,Ce=Ce>>>0,pt||Ut(this,xe,Ce,2,32767,-32768),this[Ce]=xe>>>8,this[Ce+1]=xe&255,Ce+2},T.prototype.writeInt32LE=function(xe,Ce,pt){return xe=+xe,Ce=Ce>>>0,pt||Ut(this,xe,Ce,4,2147483647,-2147483648),this[Ce]=xe&255,this[Ce+1]=xe>>>8,this[Ce+2]=xe>>>16,this[Ce+3]=xe>>>24,Ce+4},T.prototype.writeInt32BE=function(xe,Ce,pt){return xe=+xe,Ce=Ce>>>0,pt||Ut(this,xe,Ce,4,2147483647,-2147483648),xe<0&&(xe=4294967295+xe+1),this[Ce]=xe>>>24,this[Ce+1]=xe>>>16,this[Ce+2]=xe>>>8,this[Ce+3]=xe&255,Ce+4},T.prototype.writeBigInt64LE=Je(function(xe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return $t(this,xe,Ce,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),T.prototype.writeBigInt64BE=Je(function(xe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return sr(this,xe,Ce,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Tr(Ie,xe,Ce,pt,nr,ir){if(Ce+pt>Ie.length)throw new RangeError("Index out of range");if(Ce<0)throw new RangeError("Index out of range")}function ur(Ie,xe,Ce,pt,nr){return xe=+xe,Ce=Ce>>>0,nr||Tr(Ie,xe,Ce,4,34028234663852886e22,-34028234663852886e22),_.write(Ie,xe,Ce,pt,23,4),Ce+4}T.prototype.writeFloatLE=function(xe,Ce,pt){return ur(this,xe,Ce,!0,pt)},T.prototype.writeFloatBE=function(xe,Ce,pt){return ur(this,xe,Ce,!1,pt)};function $e(Ie,xe,Ce,pt,nr){return xe=+xe,Ce=Ce>>>0,nr||Tr(Ie,xe,Ce,8,17976931348623157e292,-17976931348623157e292),_.write(Ie,xe,Ce,pt,52,8),Ce+8}T.prototype.writeDoubleLE=function(xe,Ce,pt){return $e(this,xe,Ce,!0,pt)},T.prototype.writeDoubleBE=function(xe,Ce,pt){return $e(this,xe,Ce,!1,pt)},T.prototype.copy=function(xe,Ce,pt,nr){if(!T.isBuffer(xe))throw new TypeError("argument should be a Buffer");if(pt||(pt=0),!nr&&nr!==0&&(nr=this.length),Ce>=xe.length&&(Ce=xe.length),Ce||(Ce=0),nr>0&&nr=this.length)throw new RangeError("Index out of range");if(nr<0)throw new RangeError("sourceEnd out of bounds");nr>this.length&&(nr=this.length),xe.length-Ce>>0,pt=pt===void 0?this.length:pt>>>0,xe||(xe=0);var vr;if(typeof xe=="number")for(vr=Ce;vrMath.pow(2,32)?nr=Vt(String(Ce)):typeof Ce=="bigint"&&(nr=String(Ce),(Ce>Math.pow(BigInt(2),BigInt(32))||Ce<-Math.pow(BigInt(2),BigInt(32)))&&(nr=Vt(nr)),nr+="n"),pt+=" It must be ".concat(xe,". Received ").concat(nr),pt},RangeError);function Vt(Ie){for(var xe="",Ce=Ie.length,pt=Ie[0]==="-"?1:0;Ce>=pt+4;Ce-=3)xe="_".concat(Ie.slice(Ce-3,Ce)).concat(xe);return"".concat(Ie.slice(0,Ce)).concat(xe)}function It(Ie,xe,Ce){bt(xe,"offset"),(Ie[xe]===void 0||Ie[xe+Ce]===void 0)&&rr(xe,Ie.length-(Ce+1))}function Ot(Ie,xe,Ce,pt,nr,ir){if(Ie>Ce||Ie3?xe===0||xe===BigInt(0)?si=">= 0".concat(vr," and < 2").concat(vr," ** ").concat((ir+1)*8).concat(vr):si=">= -(2".concat(vr," ** ").concat((ir+1)*8-1).concat(vr,") and < 2 ** ")+"".concat((ir+1)*8-1).concat(vr):si=">= ".concat(xe).concat(vr," and <= ").concat(Ce).concat(vr),new Mt.ERR_OUT_OF_RANGE("value",si,Ie)}It(pt,nr,ir)}function bt(Ie,xe){if(typeof Ie!="number")throw new Mt.ERR_INVALID_ARG_TYPE(xe,"number",Ie)}function rr(Ie,xe,Ce){throw Math.floor(Ie)!==Ie?(bt(Ie,Ce),new Mt.ERR_OUT_OF_RANGE(Ce||"offset","an integer",Ie)):xe<0?new Mt.ERR_BUFFER_OUT_OF_BOUNDS:new Mt.ERR_OUT_OF_RANGE(Ce||"offset",">= ".concat(Ce?1:0," and <= ").concat(xe),Ie)}var lr=/[^+/0-9A-Za-z-_]/g;function wr(Ie){if(Ie=Ie.split("=")[0],Ie=Ie.trim().replace(lr,""),Ie.length<2)return"";for(;Ie.length%4!==0;)Ie=Ie+"=";return Ie}function Cr(Ie,xe){xe=xe||1/0;for(var Ce,pt=Ie.length,nr=null,ir=[],vr=0;vr55295&&Ce<57344){if(!nr){if(Ce>56319){(xe-=3)>-1&&ir.push(239,191,189);continue}else if(vr+1===pt){(xe-=3)>-1&&ir.push(239,191,189);continue}nr=Ce;continue}if(Ce<56320){(xe-=3)>-1&&ir.push(239,191,189),nr=Ce;continue}Ce=(nr-55296<<10|Ce-56320)+65536}else nr&&(xe-=3)>-1&&ir.push(239,191,189);if(nr=null,Ce<128){if((xe-=1)<0)break;ir.push(Ce)}else if(Ce<2048){if((xe-=2)<0)break;ir.push(Ce>>6|192,Ce&63|128)}else if(Ce<65536){if((xe-=3)<0)break;ir.push(Ce>>12|224,Ce>>6&63|128,Ce&63|128)}else if(Ce<1114112){if((xe-=4)<0)break;ir.push(Ce>>18|240,Ce>>12&63|128,Ce>>6&63|128,Ce&63|128)}else throw new Error("Invalid code point")}return ir}function Kr(Ie){for(var xe=[],Ce=0;Ce>8,nr=Ce%256,ir.push(nr),ir.push(pt);return ir}function Yr(Ie){return L.toByteArray(wr(Ie))}function dt(Ie,xe,Ce,pt){var nr;for(nr=0;nr=xe.length||nr>=Ie.length);++nr)xe[nr+Ce]=Ie[nr];return nr}function Ge(Ie,xe){return Ie instanceof xe||Ie!=null&&Ie.constructor!=null&&Ie.constructor.name!=null&&Ie.constructor.name===xe.name}function Qe(Ie){return Ie!==Ie}var je=function(){for(var Ie="0123456789abcdef",xe=new Array(256),Ce=0;Ce<16;++Ce)for(var pt=Ce*16,nr=0;nr<16;++nr)xe[pt+nr]=Ie[Ce]+Ie[nr];return xe}();function Je(Ie){return typeof BigInt=="undefined"?xt:Ie}function xt(){throw new Error("BigInt not supported")}},9216:function(i){"use strict";i.exports=l,i.exports.isMobile=l,i.exports.default=l;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,o=/CrOS/,s=/android|ipad|playbook|silk/i;function l(u){u||(u={});var c=u.ua;if(!c&&typeof navigator!="undefined"&&(c=navigator.userAgent),c&&c.headers&&typeof c.headers["user-agent"]=="string"&&(c=c.headers["user-agent"]),typeof c!="string")return!1;var f=a.test(c)&&!o.test(c)||!!u.tablet&&s.test(c);return!f&&u.tablet&&u.featureDetect&&navigator&&navigator.maxTouchPoints>1&&c.indexOf("Macintosh")!==-1&&c.indexOf("Safari")!==-1&&(f=!0),f}},6296:function(i,a,o){"use strict";i.exports=h;var s=o(7261),l=o(9977),u=o(1811);function c(d,v){this._controllerNames=Object.keys(d),this._controllerList=this._controllerNames.map(function(x){return d[x]}),this._mode=v,this._active=d[v],this._active||(this._mode="turntable",this._active=d.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var f=c.prototype;f.flush=function(d){for(var v=this._controllerList,x=0;x0)throw new Error("Invalid string. Length must be a multiple of 4");var L=E.indexOf("=");L===-1&&(L=A);var _=L===A?0:4-L%4;return[L,_]}function d(E){var A=h(E),L=A[0],_=A[1];return(L+_)*3/4-_}function v(E,A,L){return(A+L)*3/4-L}function x(E){var A,L=h(E),_=L[0],k=L[1],M=new l(v(E,_,k)),g=0,P=k>0?_-4:_,T;for(T=0;T>16&255,M[g++]=A>>8&255,M[g++]=A&255;return k===2&&(A=s[E.charCodeAt(T)]<<2|s[E.charCodeAt(T+1)]>>4,M[g++]=A&255),k===1&&(A=s[E.charCodeAt(T)]<<10|s[E.charCodeAt(T+1)]<<4|s[E.charCodeAt(T+2)]>>2,M[g++]=A>>8&255,M[g++]=A&255),M}function b(E){return o[E>>18&63]+o[E>>12&63]+o[E>>6&63]+o[E&63]}function p(E,A,L){for(var _,k=[],M=A;MP?P:g+M));return _===1?(A=E[L-1],k.push(o[A>>2]+o[A<<4&63]+"==")):_===2&&(A=(E[L-2]<<8)+E[L-1],k.push(o[A>>10]+o[A>>4&63]+o[A<<2&63]+"=")),k.join("")}},3865:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[1]).add(c[0].mul(u[1])),u[1].mul(c[1]))}},1318:function(i){"use strict";i.exports=a;function a(o,s){return o[0].mul(s[1]).cmp(s[0].mul(o[1]))}},8697:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[1]),u[1].mul(c[0]))}},7842:function(i,a,o){"use strict";var s=o(6330),l=o(1533),u=o(2651),c=o(6768),f=o(869),h=o(8697);i.exports=d;function d(v,x){if(s(v))return x?h(v,d(x)):[v[0].clone(),v[1].clone()];var b=0,p,C;if(l(v))p=v.clone();else if(typeof v=="string")p=c(v);else{if(v===0)return[u(0),u(1)];if(v===Math.floor(v))p=u(v);else{for(;v!==Math.floor(v);)v=v*Math.pow(2,256),b-=256;p=u(v)}}if(s(x))p.mul(x[1]),C=x[0].clone();else if(l(x))C=x.clone();else if(typeof x=="string")C=c(x);else if(!x)C=u(1);else if(x===Math.floor(x))C=u(x);else{for(;x!==Math.floor(x);)x=x*Math.pow(2,256),b+=256;C=u(x)}return b>0?p=p.ushln(b):b<0&&(C=C.ushln(-b)),f(p,C)}},6330:function(i,a,o){"use strict";var s=o(1533);i.exports=l;function l(u){return Array.isArray(u)&&u.length===2&&s(u[0])&&s(u[1])}},5716:function(i,a,o){"use strict";var s=o(6859);i.exports=l;function l(u){return u.cmp(new s(0))}},1369:function(i,a,o){"use strict";var s=o(5716);i.exports=l;function l(u){var c=u.length,f=u.words,h=0;if(c===1)h=f[0];else if(c===2)h=f[0]+f[1]*67108864;else for(var d=0;d20?52:h+32}},1533:function(i,a,o){"use strict";var s=o(6859);i.exports=l;function l(u){return u&&typeof u=="object"&&!!u.words}},2651:function(i,a,o){"use strict";var s=o(6859),l=o(2361);i.exports=u;function u(c){var f=l.exponent(c);return f<52?new s(c):new s(c*Math.pow(2,52-f)).ushln(f-52)}},869:function(i,a,o){"use strict";var s=o(2651),l=o(5716);i.exports=u;function u(c,f){var h=l(c),d=l(f);if(h===0)return[s(0),s(1)];if(d===0)return[s(0),s(0)];d<0&&(c=c.neg(),f=f.neg());var v=c.gcd(f);return v.cmpn(1)?[c.div(v),f.div(v)]:[c,f]}},6768:function(i,a,o){"use strict";var s=o(6859);i.exports=l;function l(u){return new s(u)}},6504:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[0]),u[1].mul(c[1]))}},7721:function(i,a,o){"use strict";var s=o(5716);i.exports=l;function l(u){return s(u[0])*s(u[1])}},5572:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[1]).sub(u[1].mul(c[0])),u[1].mul(c[1]))}},946:function(i,a,o){"use strict";var s=o(1369),l=o(4025);i.exports=u;function u(c){var f=c[0],h=c[1];if(f.cmpn(0)===0)return 0;var d=f.abs().divmod(h.abs()),v=d.div,x=s(v),b=d.mod,p=f.negative!==h.negative?-1:1;if(b.cmpn(0)===0)return p*x;if(x){var C=l(x)+4,E=s(b.ushln(C).divRound(h));return p*(x+E*Math.pow(2,-C))}else{var A=h.bitLength()-b.bitLength()+53,E=s(b.ushln(A).divRound(h));return A<1023?p*E*Math.pow(2,-A):(E*=Math.pow(2,-1023),p*E*Math.pow(2,1023-A))}}},2478:function(i){"use strict";function a(f,h,d,v,x){for(var b=x+1;v<=x;){var p=v+x>>>1,C=f[p],E=d!==void 0?d(C,h):C-h;E>=0?(b=p,x=p-1):v=p+1}return b}function o(f,h,d,v,x){for(var b=x+1;v<=x;){var p=v+x>>>1,C=f[p],E=d!==void 0?d(C,h):C-h;E>0?(b=p,x=p-1):v=p+1}return b}function s(f,h,d,v,x){for(var b=v-1;v<=x;){var p=v+x>>>1,C=f[p],E=d!==void 0?d(C,h):C-h;E<0?(b=p,v=p+1):x=p-1}return b}function l(f,h,d,v,x){for(var b=v-1;v<=x;){var p=v+x>>>1,C=f[p],E=d!==void 0?d(C,h):C-h;E<=0?(b=p,v=p+1):x=p-1}return b}function u(f,h,d,v,x){for(;v<=x;){var b=v+x>>>1,p=f[b],C=d!==void 0?d(p,h):p-h;if(C===0)return b;C<=0?v=b+1:x=b-1}return-1}function c(f,h,d,v,x,b){return typeof d=="function"?b(f,h,d,v===void 0?0:v|0,x===void 0?f.length-1:x|0):b(f,h,void 0,d===void 0?0:d|0,v===void 0?f.length-1:v|0)}i.exports={ge:function(f,h,d,v,x){return c(f,h,d,v,x,a)},gt:function(f,h,d,v,x){return c(f,h,d,v,x,o)},lt:function(f,h,d,v,x){return c(f,h,d,v,x,s)},le:function(f,h,d,v,x){return c(f,h,d,v,x,l)},eq:function(f,h,d,v,x){return c(f,h,d,v,x,u)}}},8828:function(i,a){"use strict";"use restrict";var o=32;a.INT_BITS=o,a.INT_MAX=2147483647,a.INT_MIN=-1<0)-(u<0)},a.abs=function(u){var c=u>>o-1;return(u^c)-c},a.min=function(u,c){return c^(u^c)&-(u65535)<<4,u>>>=c,f=(u>255)<<3,u>>>=f,c|=f,f=(u>15)<<2,u>>>=f,c|=f,f=(u>3)<<1,u>>>=f,c|=f,c|u>>1},a.log10=function(u){return u>=1e9?9:u>=1e8?8:u>=1e7?7:u>=1e6?6:u>=1e5?5:u>=1e4?4:u>=1e3?3:u>=100?2:u>=10?1:0},a.popCount=function(u){return u=u-(u>>>1&1431655765),u=(u&858993459)+(u>>>2&858993459),(u+(u>>>4)&252645135)*16843009>>>24};function s(u){var c=32;return u&=-u,u&&c--,u&65535&&(c-=16),u&16711935&&(c-=8),u&252645135&&(c-=4),u&858993459&&(c-=2),u&1431655765&&(c-=1),c}a.countTrailingZeros=s,a.nextPow2=function(u){return u+=u===0,--u,u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u+1},a.prevPow2=function(u){return u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u-(u>>>1)},a.parity=function(u){return u^=u>>>16,u^=u>>>8,u^=u>>>4,u&=15,27030>>>u&1};var l=new Array(256);(function(u){for(var c=0;c<256;++c){var f=c,h=c,d=7;for(f>>>=1;f;f>>>=1)h<<=1,h|=f&1,--d;u[c]=h<>>8&255]<<16|l[u>>>16&255]<<8|l[u>>>24&255]},a.interleave2=function(u,c){return u&=65535,u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,c&=65535,c=(c|c<<8)&16711935,c=(c|c<<4)&252645135,c=(c|c<<2)&858993459,c=(c|c<<1)&1431655765,u|c<<1},a.deinterleave2=function(u,c){return u=u>>>c&1431655765,u=(u|u>>>1)&858993459,u=(u|u>>>2)&252645135,u=(u|u>>>4)&16711935,u=(u|u>>>16)&65535,u<<16>>16},a.interleave3=function(u,c,f){return u&=1023,u=(u|u<<16)&4278190335,u=(u|u<<8)&251719695,u=(u|u<<4)&3272356035,u=(u|u<<2)&1227133513,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,u|=c<<1,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,u|f<<2},a.deinterleave3=function(u,c){return u=u>>>c&1227133513,u=(u|u>>>2)&3272356035,u=(u|u>>>4)&251719695,u=(u|u>>>8)&4278190335,u=(u|u>>>16)&1023,u<<22>>22},a.nextCombination=function(u){var c=u|u-1;return c+1|(~c&-~c)-1>>>s(u)+1}},6859:function(i,a,o){i=o.nmd(i),function(s,l){"use strict";function u(H,N){if(!H)throw new Error(N||"Assertion failed")}function c(H,N){H.super_=N;var j=function(){};j.prototype=N.prototype,H.prototype=new j,H.prototype.constructor=H}function f(H,N,j){if(f.isBN(H))return H;this.negative=0,this.words=null,this.length=0,this.red=null,H!==null&&((N==="le"||N==="be")&&(j=N,N=10),this._init(H||0,N||10,j||"be"))}typeof s=="object"?s.exports=f:l.BN=f,f.BN=f,f.wordSize=26;var h;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?h=window.Buffer:h=o(7790).Buffer}catch(H){}f.isBN=function(N){return N instanceof f?!0:N!==null&&typeof N=="object"&&N.constructor.wordSize===f.wordSize&&Array.isArray(N.words)},f.max=function(N,j){return N.cmp(j)>0?N:j},f.min=function(N,j){return N.cmp(j)<0?N:j},f.prototype._init=function(N,j,re){if(typeof N=="number")return this._initNumber(N,j,re);if(typeof N=="object")return this._initArray(N,j,re);j==="hex"&&(j=16),u(j===(j|0)&&j>=2&&j<=36),N=N.toString().replace(/\s+/g,"");var oe=0;N[0]==="-"&&(oe++,this.negative=1),oe=0;oe-=3)Me=N[oe]|N[oe-1]<<8|N[oe-2]<<16,this.words[_e]|=Me<>>26-ke&67108863,ke+=24,ke>=26&&(ke-=26,_e++);else if(re==="le")for(oe=0,_e=0;oe>>26-ke&67108863,ke+=24,ke>=26&&(ke-=26,_e++);return this.strip()};function d(H,N){var j=H.charCodeAt(N);return j>=65&&j<=70?j-55:j>=97&&j<=102?j-87:j-48&15}function v(H,N,j){var re=d(H,j);return j-1>=N&&(re|=d(H,j-1)<<4),re}f.prototype._parseHex=function(N,j,re){this.length=Math.ceil((N.length-j)/6),this.words=new Array(this.length);for(var oe=0;oe=j;oe-=2)ke=v(N,j,oe)<<_e,this.words[Me]|=ke&67108863,_e>=18?(_e-=18,Me+=1,this.words[Me]|=ke>>>26):_e+=8;else{var me=N.length-j;for(oe=me%2===0?j+1:j;oe=18?(_e-=18,Me+=1,this.words[Me]|=ke>>>26):_e+=8}this.strip()};function x(H,N,j,re){for(var oe=0,_e=Math.min(H.length,j),Me=N;Me<_e;Me++){var ke=H.charCodeAt(Me)-48;oe*=re,ke>=49?oe+=ke-49+10:ke>=17?oe+=ke-17+10:oe+=ke}return oe}f.prototype._parseBase=function(N,j,re){this.words=[0],this.length=1;for(var oe=0,_e=1;_e<=67108863;_e*=j)oe++;oe--,_e=_e/j|0;for(var Me=N.length-re,ke=Me%oe,me=Math.min(Me,Me-ke)+re,ie=0,Se=re;Se1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},f.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},f.prototype.inspect=function(){return(this.red?""};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],C=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];f.prototype.toString=function(N,j){N=N||10,j=j|0||1;var re;if(N===16||N==="hex"){re="";for(var oe=0,_e=0,Me=0;Me>>24-oe&16777215,_e!==0||Me!==this.length-1?re=b[6-me.length]+me+re:re=me+re,oe+=2,oe>=26&&(oe-=26,Me--)}for(_e!==0&&(re=_e.toString(16)+re);re.length%j!==0;)re="0"+re;return this.negative!==0&&(re="-"+re),re}if(N===(N|0)&&N>=2&&N<=36){var ie=p[N],Se=C[N];re="";var Le=this.clone();for(Le.negative=0;!Le.isZero();){var Ae=Le.modn(Se).toString(N);Le=Le.idivn(Se),Le.isZero()?re=Ae+re:re=b[ie-Ae.length]+Ae+re}for(this.isZero()&&(re="0"+re);re.length%j!==0;)re="0"+re;return this.negative!==0&&(re="-"+re),re}u(!1,"Base should be between 2 and 36")},f.prototype.toNumber=function(){var N=this.words[0];return this.length===2?N+=this.words[1]*67108864:this.length===3&&this.words[2]===1?N+=4503599627370496+this.words[1]*67108864:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-N:N},f.prototype.toJSON=function(){return this.toString(16)},f.prototype.toBuffer=function(N,j){return u(typeof h!="undefined"),this.toArrayLike(h,N,j)},f.prototype.toArray=function(N,j){return this.toArrayLike(Array,N,j)},f.prototype.toArrayLike=function(N,j,re){var oe=this.byteLength(),_e=re||Math.max(1,oe);u(oe<=_e,"byte array longer than desired length"),u(_e>0,"Requested array length <= 0"),this.strip();var Me=j==="le",ke=new N(_e),me,ie,Se=this.clone();if(Me){for(ie=0;!Se.isZero();ie++)me=Se.andln(255),Se.iushrn(8),ke[ie]=me;for(;ie<_e;ie++)ke[ie]=0}else{for(ie=0;ie<_e-oe;ie++)ke[ie]=0;for(ie=0;!Se.isZero();ie++)me=Se.andln(255),Se.iushrn(8),ke[_e-ie-1]=me}return ke},Math.clz32?f.prototype._countBits=function(N){return 32-Math.clz32(N)}:f.prototype._countBits=function(N){var j=N,re=0;return j>=4096&&(re+=13,j>>>=13),j>=64&&(re+=7,j>>>=7),j>=8&&(re+=4,j>>>=4),j>=2&&(re+=2,j>>>=2),re+j},f.prototype._zeroBits=function(N){if(N===0)return 26;var j=N,re=0;return(j&8191)===0&&(re+=13,j>>>=13),(j&127)===0&&(re+=7,j>>>=7),(j&15)===0&&(re+=4,j>>>=4),(j&3)===0&&(re+=2,j>>>=2),(j&1)===0&&re++,re},f.prototype.bitLength=function(){var N=this.words[this.length-1],j=this._countBits(N);return(this.length-1)*26+j};function E(H){for(var N=new Array(H.bitLength()),j=0;j>>oe}return N}f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var N=0,j=0;jN.length?this.clone().ior(N):N.clone().ior(this)},f.prototype.uor=function(N){return this.length>N.length?this.clone().iuor(N):N.clone().iuor(this)},f.prototype.iuand=function(N){var j;this.length>N.length?j=N:j=this;for(var re=0;reN.length?this.clone().iand(N):N.clone().iand(this)},f.prototype.uand=function(N){return this.length>N.length?this.clone().iuand(N):N.clone().iuand(this)},f.prototype.iuxor=function(N){var j,re;this.length>N.length?(j=this,re=N):(j=N,re=this);for(var oe=0;oeN.length?this.clone().ixor(N):N.clone().ixor(this)},f.prototype.uxor=function(N){return this.length>N.length?this.clone().iuxor(N):N.clone().iuxor(this)},f.prototype.inotn=function(N){u(typeof N=="number"&&N>=0);var j=Math.ceil(N/26)|0,re=N%26;this._expand(j),re>0&&j--;for(var oe=0;oe0&&(this.words[oe]=~this.words[oe]&67108863>>26-re),this.strip()},f.prototype.notn=function(N){return this.clone().inotn(N)},f.prototype.setn=function(N,j){u(typeof N=="number"&&N>=0);var re=N/26|0,oe=N%26;return this._expand(re+1),j?this.words[re]=this.words[re]|1<N.length?(re=this,oe=N):(re=N,oe=this);for(var _e=0,Me=0;Me>>26;for(;_e!==0&&Me>>26;if(this.length=re.length,_e!==0)this.words[this.length]=_e,this.length++;else if(re!==this)for(;MeN.length?this.clone().iadd(N):N.clone().iadd(this)},f.prototype.isub=function(N){if(N.negative!==0){N.negative=0;var j=this.iadd(N);return N.negative=1,j._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(N),this.negative=1,this._normSign();var re=this.cmp(N);if(re===0)return this.negative=0,this.length=1,this.words[0]=0,this;var oe,_e;re>0?(oe=this,_e=N):(oe=N,_e=this);for(var Me=0,ke=0;ke<_e.length;ke++)j=(oe.words[ke]|0)-(_e.words[ke]|0)+Me,Me=j>>26,this.words[ke]=j&67108863;for(;Me!==0&&ke>26,this.words[ke]=j&67108863;if(Me===0&&ke>>26,Le=me&67108863,Ae=Math.min(ie,N.length-1),Fe=Math.max(0,ie-H.length+1);Fe<=Ae;Fe++){var Pe=ie-Fe|0;oe=H.words[Pe]|0,_e=N.words[Fe]|0,Me=oe*_e+Le,Se+=Me/67108864|0,Le=Me&67108863}j.words[ie]=Le|0,me=Se|0}return me!==0?j.words[ie]=me|0:j.length--,j.strip()}var L=function(N,j,re){var oe=N.words,_e=j.words,Me=re.words,ke=0,me,ie,Se,Le=oe[0]|0,Ae=Le&8191,Fe=Le>>>13,Pe=oe[1]|0,ge=Pe&8191,De=Pe>>>13,ce=oe[2]|0,Ze=ce&8191,ut=ce>>>13,gt=oe[3]|0,Kt=gt&8191,st=gt>>>13,lt=oe[4]|0,Gt=lt&8191,Ut=lt>>>13,$t=oe[5]|0,sr=$t&8191,Tr=$t>>>13,ur=oe[6]|0,$e=ur&8191,Mt=ur>>>13,Ct=oe[7]|0,Vt=Ct&8191,It=Ct>>>13,Ot=oe[8]|0,bt=Ot&8191,rr=Ot>>>13,lr=oe[9]|0,wr=lr&8191,Cr=lr>>>13,Kr=_e[0]|0,Gr=Kr&8191,Yr=Kr>>>13,dt=_e[1]|0,Ge=dt&8191,Qe=dt>>>13,je=_e[2]|0,Je=je&8191,xt=je>>>13,Ie=_e[3]|0,xe=Ie&8191,Ce=Ie>>>13,pt=_e[4]|0,nr=pt&8191,ir=pt>>>13,vr=_e[5]|0,si=vr&8191,mi=vr>>>13,ei=_e[6]|0,vi=ei&8191,ji=ei>>>13,Rn=_e[7]|0,wn=Rn&8191,pn=Rn>>>13,Vn=_e[8]|0,kn=Vn&8191,ea=Vn>>>13,ua=_e[9]|0,Ht=ua&8191,yt=ua>>>13;re.negative=N.negative^j.negative,re.length=19,me=Math.imul(Ae,Gr),ie=Math.imul(Ae,Yr),ie=ie+Math.imul(Fe,Gr)|0,Se=Math.imul(Fe,Yr);var er=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(er>>>26)|0,er&=67108863,me=Math.imul(ge,Gr),ie=Math.imul(ge,Yr),ie=ie+Math.imul(De,Gr)|0,Se=Math.imul(De,Yr),me=me+Math.imul(Ae,Ge)|0,ie=ie+Math.imul(Ae,Qe)|0,ie=ie+Math.imul(Fe,Ge)|0,Se=Se+Math.imul(Fe,Qe)|0;var ar=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(ar>>>26)|0,ar&=67108863,me=Math.imul(Ze,Gr),ie=Math.imul(Ze,Yr),ie=ie+Math.imul(ut,Gr)|0,Se=Math.imul(ut,Yr),me=me+Math.imul(ge,Ge)|0,ie=ie+Math.imul(ge,Qe)|0,ie=ie+Math.imul(De,Ge)|0,Se=Se+Math.imul(De,Qe)|0,me=me+Math.imul(Ae,Je)|0,ie=ie+Math.imul(Ae,xt)|0,ie=ie+Math.imul(Fe,Je)|0,Se=Se+Math.imul(Fe,xt)|0;var Er=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Er>>>26)|0,Er&=67108863,me=Math.imul(Kt,Gr),ie=Math.imul(Kt,Yr),ie=ie+Math.imul(st,Gr)|0,Se=Math.imul(st,Yr),me=me+Math.imul(Ze,Ge)|0,ie=ie+Math.imul(Ze,Qe)|0,ie=ie+Math.imul(ut,Ge)|0,Se=Se+Math.imul(ut,Qe)|0,me=me+Math.imul(ge,Je)|0,ie=ie+Math.imul(ge,xt)|0,ie=ie+Math.imul(De,Je)|0,Se=Se+Math.imul(De,xt)|0,me=me+Math.imul(Ae,xe)|0,ie=ie+Math.imul(Ae,Ce)|0,ie=ie+Math.imul(Fe,xe)|0,Se=Se+Math.imul(Fe,Ce)|0;var Xr=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,me=Math.imul(Gt,Gr),ie=Math.imul(Gt,Yr),ie=ie+Math.imul(Ut,Gr)|0,Se=Math.imul(Ut,Yr),me=me+Math.imul(Kt,Ge)|0,ie=ie+Math.imul(Kt,Qe)|0,ie=ie+Math.imul(st,Ge)|0,Se=Se+Math.imul(st,Qe)|0,me=me+Math.imul(Ze,Je)|0,ie=ie+Math.imul(Ze,xt)|0,ie=ie+Math.imul(ut,Je)|0,Se=Se+Math.imul(ut,xt)|0,me=me+Math.imul(ge,xe)|0,ie=ie+Math.imul(ge,Ce)|0,ie=ie+Math.imul(De,xe)|0,Se=Se+Math.imul(De,Ce)|0,me=me+Math.imul(Ae,nr)|0,ie=ie+Math.imul(Ae,ir)|0,ie=ie+Math.imul(Fe,nr)|0,Se=Se+Math.imul(Fe,ir)|0;var ri=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(ri>>>26)|0,ri&=67108863,me=Math.imul(sr,Gr),ie=Math.imul(sr,Yr),ie=ie+Math.imul(Tr,Gr)|0,Se=Math.imul(Tr,Yr),me=me+Math.imul(Gt,Ge)|0,ie=ie+Math.imul(Gt,Qe)|0,ie=ie+Math.imul(Ut,Ge)|0,Se=Se+Math.imul(Ut,Qe)|0,me=me+Math.imul(Kt,Je)|0,ie=ie+Math.imul(Kt,xt)|0,ie=ie+Math.imul(st,Je)|0,Se=Se+Math.imul(st,xt)|0,me=me+Math.imul(Ze,xe)|0,ie=ie+Math.imul(Ze,Ce)|0,ie=ie+Math.imul(ut,xe)|0,Se=Se+Math.imul(ut,Ce)|0,me=me+Math.imul(ge,nr)|0,ie=ie+Math.imul(ge,ir)|0,ie=ie+Math.imul(De,nr)|0,Se=Se+Math.imul(De,ir)|0,me=me+Math.imul(Ae,si)|0,ie=ie+Math.imul(Ae,mi)|0,ie=ie+Math.imul(Fe,si)|0,Se=Se+Math.imul(Fe,mi)|0;var $r=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+($r>>>26)|0,$r&=67108863,me=Math.imul($e,Gr),ie=Math.imul($e,Yr),ie=ie+Math.imul(Mt,Gr)|0,Se=Math.imul(Mt,Yr),me=me+Math.imul(sr,Ge)|0,ie=ie+Math.imul(sr,Qe)|0,ie=ie+Math.imul(Tr,Ge)|0,Se=Se+Math.imul(Tr,Qe)|0,me=me+Math.imul(Gt,Je)|0,ie=ie+Math.imul(Gt,xt)|0,ie=ie+Math.imul(Ut,Je)|0,Se=Se+Math.imul(Ut,xt)|0,me=me+Math.imul(Kt,xe)|0,ie=ie+Math.imul(Kt,Ce)|0,ie=ie+Math.imul(st,xe)|0,Se=Se+Math.imul(st,Ce)|0,me=me+Math.imul(Ze,nr)|0,ie=ie+Math.imul(Ze,ir)|0,ie=ie+Math.imul(ut,nr)|0,Se=Se+Math.imul(ut,ir)|0,me=me+Math.imul(ge,si)|0,ie=ie+Math.imul(ge,mi)|0,ie=ie+Math.imul(De,si)|0,Se=Se+Math.imul(De,mi)|0,me=me+Math.imul(Ae,vi)|0,ie=ie+Math.imul(Ae,ji)|0,ie=ie+Math.imul(Fe,vi)|0,Se=Se+Math.imul(Fe,ji)|0;var zi=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(zi>>>26)|0,zi&=67108863,me=Math.imul(Vt,Gr),ie=Math.imul(Vt,Yr),ie=ie+Math.imul(It,Gr)|0,Se=Math.imul(It,Yr),me=me+Math.imul($e,Ge)|0,ie=ie+Math.imul($e,Qe)|0,ie=ie+Math.imul(Mt,Ge)|0,Se=Se+Math.imul(Mt,Qe)|0,me=me+Math.imul(sr,Je)|0,ie=ie+Math.imul(sr,xt)|0,ie=ie+Math.imul(Tr,Je)|0,Se=Se+Math.imul(Tr,xt)|0,me=me+Math.imul(Gt,xe)|0,ie=ie+Math.imul(Gt,Ce)|0,ie=ie+Math.imul(Ut,xe)|0,Se=Se+Math.imul(Ut,Ce)|0,me=me+Math.imul(Kt,nr)|0,ie=ie+Math.imul(Kt,ir)|0,ie=ie+Math.imul(st,nr)|0,Se=Se+Math.imul(st,ir)|0,me=me+Math.imul(Ze,si)|0,ie=ie+Math.imul(Ze,mi)|0,ie=ie+Math.imul(ut,si)|0,Se=Se+Math.imul(ut,mi)|0,me=me+Math.imul(ge,vi)|0,ie=ie+Math.imul(ge,ji)|0,ie=ie+Math.imul(De,vi)|0,Se=Se+Math.imul(De,ji)|0,me=me+Math.imul(Ae,wn)|0,ie=ie+Math.imul(Ae,pn)|0,ie=ie+Math.imul(Fe,wn)|0,Se=Se+Math.imul(Fe,pn)|0;var Ji=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,me=Math.imul(bt,Gr),ie=Math.imul(bt,Yr),ie=ie+Math.imul(rr,Gr)|0,Se=Math.imul(rr,Yr),me=me+Math.imul(Vt,Ge)|0,ie=ie+Math.imul(Vt,Qe)|0,ie=ie+Math.imul(It,Ge)|0,Se=Se+Math.imul(It,Qe)|0,me=me+Math.imul($e,Je)|0,ie=ie+Math.imul($e,xt)|0,ie=ie+Math.imul(Mt,Je)|0,Se=Se+Math.imul(Mt,xt)|0,me=me+Math.imul(sr,xe)|0,ie=ie+Math.imul(sr,Ce)|0,ie=ie+Math.imul(Tr,xe)|0,Se=Se+Math.imul(Tr,Ce)|0,me=me+Math.imul(Gt,nr)|0,ie=ie+Math.imul(Gt,ir)|0,ie=ie+Math.imul(Ut,nr)|0,Se=Se+Math.imul(Ut,ir)|0,me=me+Math.imul(Kt,si)|0,ie=ie+Math.imul(Kt,mi)|0,ie=ie+Math.imul(st,si)|0,Se=Se+Math.imul(st,mi)|0,me=me+Math.imul(Ze,vi)|0,ie=ie+Math.imul(Ze,ji)|0,ie=ie+Math.imul(ut,vi)|0,Se=Se+Math.imul(ut,ji)|0,me=me+Math.imul(ge,wn)|0,ie=ie+Math.imul(ge,pn)|0,ie=ie+Math.imul(De,wn)|0,Se=Se+Math.imul(De,pn)|0,me=me+Math.imul(Ae,kn)|0,ie=ie+Math.imul(Ae,ea)|0,ie=ie+Math.imul(Fe,kn)|0,Se=Se+Math.imul(Fe,ea)|0;var en=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(en>>>26)|0,en&=67108863,me=Math.imul(wr,Gr),ie=Math.imul(wr,Yr),ie=ie+Math.imul(Cr,Gr)|0,Se=Math.imul(Cr,Yr),me=me+Math.imul(bt,Ge)|0,ie=ie+Math.imul(bt,Qe)|0,ie=ie+Math.imul(rr,Ge)|0,Se=Se+Math.imul(rr,Qe)|0,me=me+Math.imul(Vt,Je)|0,ie=ie+Math.imul(Vt,xt)|0,ie=ie+Math.imul(It,Je)|0,Se=Se+Math.imul(It,xt)|0,me=me+Math.imul($e,xe)|0,ie=ie+Math.imul($e,Ce)|0,ie=ie+Math.imul(Mt,xe)|0,Se=Se+Math.imul(Mt,Ce)|0,me=me+Math.imul(sr,nr)|0,ie=ie+Math.imul(sr,ir)|0,ie=ie+Math.imul(Tr,nr)|0,Se=Se+Math.imul(Tr,ir)|0,me=me+Math.imul(Gt,si)|0,ie=ie+Math.imul(Gt,mi)|0,ie=ie+Math.imul(Ut,si)|0,Se=Se+Math.imul(Ut,mi)|0,me=me+Math.imul(Kt,vi)|0,ie=ie+Math.imul(Kt,ji)|0,ie=ie+Math.imul(st,vi)|0,Se=Se+Math.imul(st,ji)|0,me=me+Math.imul(Ze,wn)|0,ie=ie+Math.imul(Ze,pn)|0,ie=ie+Math.imul(ut,wn)|0,Se=Se+Math.imul(ut,pn)|0,me=me+Math.imul(ge,kn)|0,ie=ie+Math.imul(ge,ea)|0,ie=ie+Math.imul(De,kn)|0,Se=Se+Math.imul(De,ea)|0,me=me+Math.imul(Ae,Ht)|0,ie=ie+Math.imul(Ae,yt)|0,ie=ie+Math.imul(Fe,Ht)|0,Se=Se+Math.imul(Fe,yt)|0;var cn=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(cn>>>26)|0,cn&=67108863,me=Math.imul(wr,Ge),ie=Math.imul(wr,Qe),ie=ie+Math.imul(Cr,Ge)|0,Se=Math.imul(Cr,Qe),me=me+Math.imul(bt,Je)|0,ie=ie+Math.imul(bt,xt)|0,ie=ie+Math.imul(rr,Je)|0,Se=Se+Math.imul(rr,xt)|0,me=me+Math.imul(Vt,xe)|0,ie=ie+Math.imul(Vt,Ce)|0,ie=ie+Math.imul(It,xe)|0,Se=Se+Math.imul(It,Ce)|0,me=me+Math.imul($e,nr)|0,ie=ie+Math.imul($e,ir)|0,ie=ie+Math.imul(Mt,nr)|0,Se=Se+Math.imul(Mt,ir)|0,me=me+Math.imul(sr,si)|0,ie=ie+Math.imul(sr,mi)|0,ie=ie+Math.imul(Tr,si)|0,Se=Se+Math.imul(Tr,mi)|0,me=me+Math.imul(Gt,vi)|0,ie=ie+Math.imul(Gt,ji)|0,ie=ie+Math.imul(Ut,vi)|0,Se=Se+Math.imul(Ut,ji)|0,me=me+Math.imul(Kt,wn)|0,ie=ie+Math.imul(Kt,pn)|0,ie=ie+Math.imul(st,wn)|0,Se=Se+Math.imul(st,pn)|0,me=me+Math.imul(Ze,kn)|0,ie=ie+Math.imul(Ze,ea)|0,ie=ie+Math.imul(ut,kn)|0,Se=Se+Math.imul(ut,ea)|0,me=me+Math.imul(ge,Ht)|0,ie=ie+Math.imul(ge,yt)|0,ie=ie+Math.imul(De,Ht)|0,Se=Se+Math.imul(De,yt)|0;var yn=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(yn>>>26)|0,yn&=67108863,me=Math.imul(wr,Je),ie=Math.imul(wr,xt),ie=ie+Math.imul(Cr,Je)|0,Se=Math.imul(Cr,xt),me=me+Math.imul(bt,xe)|0,ie=ie+Math.imul(bt,Ce)|0,ie=ie+Math.imul(rr,xe)|0,Se=Se+Math.imul(rr,Ce)|0,me=me+Math.imul(Vt,nr)|0,ie=ie+Math.imul(Vt,ir)|0,ie=ie+Math.imul(It,nr)|0,Se=Se+Math.imul(It,ir)|0,me=me+Math.imul($e,si)|0,ie=ie+Math.imul($e,mi)|0,ie=ie+Math.imul(Mt,si)|0,Se=Se+Math.imul(Mt,mi)|0,me=me+Math.imul(sr,vi)|0,ie=ie+Math.imul(sr,ji)|0,ie=ie+Math.imul(Tr,vi)|0,Se=Se+Math.imul(Tr,ji)|0,me=me+Math.imul(Gt,wn)|0,ie=ie+Math.imul(Gt,pn)|0,ie=ie+Math.imul(Ut,wn)|0,Se=Se+Math.imul(Ut,pn)|0,me=me+Math.imul(Kt,kn)|0,ie=ie+Math.imul(Kt,ea)|0,ie=ie+Math.imul(st,kn)|0,Se=Se+Math.imul(st,ea)|0,me=me+Math.imul(Ze,Ht)|0,ie=ie+Math.imul(Ze,yt)|0,ie=ie+Math.imul(ut,Ht)|0,Se=Se+Math.imul(ut,yt)|0;var Mn=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,me=Math.imul(wr,xe),ie=Math.imul(wr,Ce),ie=ie+Math.imul(Cr,xe)|0,Se=Math.imul(Cr,Ce),me=me+Math.imul(bt,nr)|0,ie=ie+Math.imul(bt,ir)|0,ie=ie+Math.imul(rr,nr)|0,Se=Se+Math.imul(rr,ir)|0,me=me+Math.imul(Vt,si)|0,ie=ie+Math.imul(Vt,mi)|0,ie=ie+Math.imul(It,si)|0,Se=Se+Math.imul(It,mi)|0,me=me+Math.imul($e,vi)|0,ie=ie+Math.imul($e,ji)|0,ie=ie+Math.imul(Mt,vi)|0,Se=Se+Math.imul(Mt,ji)|0,me=me+Math.imul(sr,wn)|0,ie=ie+Math.imul(sr,pn)|0,ie=ie+Math.imul(Tr,wn)|0,Se=Se+Math.imul(Tr,pn)|0,me=me+Math.imul(Gt,kn)|0,ie=ie+Math.imul(Gt,ea)|0,ie=ie+Math.imul(Ut,kn)|0,Se=Se+Math.imul(Ut,ea)|0,me=me+Math.imul(Kt,Ht)|0,ie=ie+Math.imul(Kt,yt)|0,ie=ie+Math.imul(st,Ht)|0,Se=Se+Math.imul(st,yt)|0;var Ba=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Ba>>>26)|0,Ba&=67108863,me=Math.imul(wr,nr),ie=Math.imul(wr,ir),ie=ie+Math.imul(Cr,nr)|0,Se=Math.imul(Cr,ir),me=me+Math.imul(bt,si)|0,ie=ie+Math.imul(bt,mi)|0,ie=ie+Math.imul(rr,si)|0,Se=Se+Math.imul(rr,mi)|0,me=me+Math.imul(Vt,vi)|0,ie=ie+Math.imul(Vt,ji)|0,ie=ie+Math.imul(It,vi)|0,Se=Se+Math.imul(It,ji)|0,me=me+Math.imul($e,wn)|0,ie=ie+Math.imul($e,pn)|0,ie=ie+Math.imul(Mt,wn)|0,Se=Se+Math.imul(Mt,pn)|0,me=me+Math.imul(sr,kn)|0,ie=ie+Math.imul(sr,ea)|0,ie=ie+Math.imul(Tr,kn)|0,Se=Se+Math.imul(Tr,ea)|0,me=me+Math.imul(Gt,Ht)|0,ie=ie+Math.imul(Gt,yt)|0,ie=ie+Math.imul(Ut,Ht)|0,Se=Se+Math.imul(Ut,yt)|0;var la=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(la>>>26)|0,la&=67108863,me=Math.imul(wr,si),ie=Math.imul(wr,mi),ie=ie+Math.imul(Cr,si)|0,Se=Math.imul(Cr,mi),me=me+Math.imul(bt,vi)|0,ie=ie+Math.imul(bt,ji)|0,ie=ie+Math.imul(rr,vi)|0,Se=Se+Math.imul(rr,ji)|0,me=me+Math.imul(Vt,wn)|0,ie=ie+Math.imul(Vt,pn)|0,ie=ie+Math.imul(It,wn)|0,Se=Se+Math.imul(It,pn)|0,me=me+Math.imul($e,kn)|0,ie=ie+Math.imul($e,ea)|0,ie=ie+Math.imul(Mt,kn)|0,Se=Se+Math.imul(Mt,ea)|0,me=me+Math.imul(sr,Ht)|0,ie=ie+Math.imul(sr,yt)|0,ie=ie+Math.imul(Tr,Ht)|0,Se=Se+Math.imul(Tr,yt)|0;var ma=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(ma>>>26)|0,ma&=67108863,me=Math.imul(wr,vi),ie=Math.imul(wr,ji),ie=ie+Math.imul(Cr,vi)|0,Se=Math.imul(Cr,ji),me=me+Math.imul(bt,wn)|0,ie=ie+Math.imul(bt,pn)|0,ie=ie+Math.imul(rr,wn)|0,Se=Se+Math.imul(rr,pn)|0,me=me+Math.imul(Vt,kn)|0,ie=ie+Math.imul(Vt,ea)|0,ie=ie+Math.imul(It,kn)|0,Se=Se+Math.imul(It,ea)|0,me=me+Math.imul($e,Ht)|0,ie=ie+Math.imul($e,yt)|0,ie=ie+Math.imul(Mt,Ht)|0,Se=Se+Math.imul(Mt,yt)|0;var Wa=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Wa>>>26)|0,Wa&=67108863,me=Math.imul(wr,wn),ie=Math.imul(wr,pn),ie=ie+Math.imul(Cr,wn)|0,Se=Math.imul(Cr,pn),me=me+Math.imul(bt,kn)|0,ie=ie+Math.imul(bt,ea)|0,ie=ie+Math.imul(rr,kn)|0,Se=Se+Math.imul(rr,ea)|0,me=me+Math.imul(Vt,Ht)|0,ie=ie+Math.imul(Vt,yt)|0,ie=ie+Math.imul(It,Ht)|0,Se=Se+Math.imul(It,yt)|0;var Fa=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Fa>>>26)|0,Fa&=67108863,me=Math.imul(wr,kn),ie=Math.imul(wr,ea),ie=ie+Math.imul(Cr,kn)|0,Se=Math.imul(Cr,ea),me=me+Math.imul(bt,Ht)|0,ie=ie+Math.imul(bt,yt)|0,ie=ie+Math.imul(rr,Ht)|0,Se=Se+Math.imul(rr,yt)|0;var Wo=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Wo>>>26)|0,Wo&=67108863,me=Math.imul(wr,Ht),ie=Math.imul(wr,yt),ie=ie+Math.imul(Cr,Ht)|0,Se=Math.imul(Cr,yt);var da=(ke+me|0)+((ie&8191)<<13)|0;return ke=(Se+(ie>>>13)|0)+(da>>>26)|0,da&=67108863,Me[0]=er,Me[1]=ar,Me[2]=Er,Me[3]=Xr,Me[4]=ri,Me[5]=$r,Me[6]=zi,Me[7]=Ji,Me[8]=en,Me[9]=cn,Me[10]=yn,Me[11]=Mn,Me[12]=Ba,Me[13]=la,Me[14]=ma,Me[15]=Wa,Me[16]=Fa,Me[17]=Wo,Me[18]=da,ke!==0&&(Me[19]=ke,re.length++),re};Math.imul||(L=A);function _(H,N,j){j.negative=N.negative^H.negative,j.length=H.length+N.length;for(var re=0,oe=0,_e=0;_e>>26)|0,oe+=Me>>>26,Me&=67108863}j.words[_e]=ke,re=Me,Me=oe}return re!==0?j.words[_e]=re:j.length--,j.strip()}function k(H,N,j){var re=new M;return re.mulp(H,N,j)}f.prototype.mulTo=function(N,j){var re,oe=this.length+N.length;return this.length===10&&N.length===10?re=L(this,N,j):oe<63?re=A(this,N,j):oe<1024?re=_(this,N,j):re=k(this,N,j),re};function M(H,N){this.x=H,this.y=N}M.prototype.makeRBT=function(N){for(var j=new Array(N),re=f.prototype._countBits(N)-1,oe=0;oe>=1;return oe},M.prototype.permute=function(N,j,re,oe,_e,Me){for(var ke=0;ke>>1)_e++;return 1<<_e+1+oe},M.prototype.conjugate=function(N,j,re){if(!(re<=1))for(var oe=0;oe>>13,re[2*Me+1]=_e&8191,_e=_e>>>13;for(Me=2*j;Me>=26,j+=oe/67108864|0,j+=_e>>>26,this.words[re]=_e&67108863}return j!==0&&(this.words[re]=j,this.length++),this},f.prototype.muln=function(N){return this.clone().imuln(N)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(N){var j=E(N);if(j.length===0)return new f(1);for(var re=this,oe=0;oe=0);var j=N%26,re=(N-j)/26,oe=67108863>>>26-j<<26-j,_e;if(j!==0){var Me=0;for(_e=0;_e>>26-j}Me&&(this.words[_e]=Me,this.length++)}if(re!==0){for(_e=this.length-1;_e>=0;_e--)this.words[_e+re]=this.words[_e];for(_e=0;_e=0);var oe;j?oe=(j-j%26)/26:oe=0;var _e=N%26,Me=Math.min((N-_e)/26,this.length),ke=67108863^67108863>>>_e<<_e,me=re;if(oe-=Me,oe=Math.max(0,oe),me){for(var ie=0;ieMe)for(this.length-=Me,ie=0;ie=0&&(Se!==0||ie>=oe);ie--){var Le=this.words[ie]|0;this.words[ie]=Se<<26-_e|Le>>>_e,Se=Le&ke}return me&&Se!==0&&(me.words[me.length++]=Se),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},f.prototype.ishrn=function(N,j,re){return u(this.negative===0),this.iushrn(N,j,re)},f.prototype.shln=function(N){return this.clone().ishln(N)},f.prototype.ushln=function(N){return this.clone().iushln(N)},f.prototype.shrn=function(N){return this.clone().ishrn(N)},f.prototype.ushrn=function(N){return this.clone().iushrn(N)},f.prototype.testn=function(N){u(typeof N=="number"&&N>=0);var j=N%26,re=(N-j)/26,oe=1<=0);var j=N%26,re=(N-j)/26;if(u(this.negative===0,"imaskn works only with positive numbers"),this.length<=re)return this;if(j!==0&&re++,this.length=Math.min(re,this.length),j!==0){var oe=67108863^67108863>>>j<=67108864;j++)this.words[j]-=67108864,j===this.length-1?this.words[j+1]=1:this.words[j+1]++;return this.length=Math.max(this.length,j+1),this},f.prototype.isubn=function(N){if(u(typeof N=="number"),u(N<67108864),N<0)return this.iaddn(-N);if(this.negative!==0)return this.negative=0,this.iaddn(N),this.negative=1,this;if(this.words[0]-=N,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var j=0;j>26)-(me/67108864|0),this.words[_e+re]=Me&67108863}for(;_e>26,this.words[_e+re]=Me&67108863;if(ke===0)return this.strip();for(u(ke===-1),ke=0,_e=0;_e>26,this.words[_e]=Me&67108863;return this.negative=1,this.strip()},f.prototype._wordDiv=function(N,j){var re=this.length-N.length,oe=this.clone(),_e=N,Me=_e.words[_e.length-1]|0,ke=this._countBits(Me);re=26-ke,re!==0&&(_e=_e.ushln(re),oe.iushln(re),Me=_e.words[_e.length-1]|0);var me=oe.length-_e.length,ie;if(j!=="mod"){ie=new f(null),ie.length=me+1,ie.words=new Array(ie.length);for(var Se=0;Se=0;Ae--){var Fe=(oe.words[_e.length+Ae]|0)*67108864+(oe.words[_e.length+Ae-1]|0);for(Fe=Math.min(Fe/Me|0,67108863),oe._ishlnsubmul(_e,Fe,Ae);oe.negative!==0;)Fe--,oe.negative=0,oe._ishlnsubmul(_e,1,Ae),oe.isZero()||(oe.negative^=1);ie&&(ie.words[Ae]=Fe)}return ie&&ie.strip(),oe.strip(),j!=="div"&&re!==0&&oe.iushrn(re),{div:ie||null,mod:oe}},f.prototype.divmod=function(N,j,re){if(u(!N.isZero()),this.isZero())return{div:new f(0),mod:new f(0)};var oe,_e,Me;return this.negative!==0&&N.negative===0?(Me=this.neg().divmod(N,j),j!=="mod"&&(oe=Me.div.neg()),j!=="div"&&(_e=Me.mod.neg(),re&&_e.negative!==0&&_e.iadd(N)),{div:oe,mod:_e}):this.negative===0&&N.negative!==0?(Me=this.divmod(N.neg(),j),j!=="mod"&&(oe=Me.div.neg()),{div:oe,mod:Me.mod}):(this.negative&N.negative)!==0?(Me=this.neg().divmod(N.neg(),j),j!=="div"&&(_e=Me.mod.neg(),re&&_e.negative!==0&&_e.isub(N)),{div:Me.div,mod:_e}):N.length>this.length||this.cmp(N)<0?{div:new f(0),mod:this}:N.length===1?j==="div"?{div:this.divn(N.words[0]),mod:null}:j==="mod"?{div:null,mod:new f(this.modn(N.words[0]))}:{div:this.divn(N.words[0]),mod:new f(this.modn(N.words[0]))}:this._wordDiv(N,j)},f.prototype.div=function(N){return this.divmod(N,"div",!1).div},f.prototype.mod=function(N){return this.divmod(N,"mod",!1).mod},f.prototype.umod=function(N){return this.divmod(N,"mod",!0).mod},f.prototype.divRound=function(N){var j=this.divmod(N);if(j.mod.isZero())return j.div;var re=j.div.negative!==0?j.mod.isub(N):j.mod,oe=N.ushrn(1),_e=N.andln(1),Me=re.cmp(oe);return Me<0||_e===1&&Me===0?j.div:j.div.negative!==0?j.div.isubn(1):j.div.iaddn(1)},f.prototype.modn=function(N){u(N<=67108863);for(var j=(1<<26)%N,re=0,oe=this.length-1;oe>=0;oe--)re=(j*re+(this.words[oe]|0))%N;return re},f.prototype.idivn=function(N){u(N<=67108863);for(var j=0,re=this.length-1;re>=0;re--){var oe=(this.words[re]|0)+j*67108864;this.words[re]=oe/N|0,j=oe%N}return this.strip()},f.prototype.divn=function(N){return this.clone().idivn(N)},f.prototype.egcd=function(N){u(N.negative===0),u(!N.isZero());var j=this,re=N.clone();j.negative!==0?j=j.umod(N):j=j.clone();for(var oe=new f(1),_e=new f(0),Me=new f(0),ke=new f(1),me=0;j.isEven()&&re.isEven();)j.iushrn(1),re.iushrn(1),++me;for(var ie=re.clone(),Se=j.clone();!j.isZero();){for(var Le=0,Ae=1;(j.words[0]&Ae)===0&&Le<26;++Le,Ae<<=1);if(Le>0)for(j.iushrn(Le);Le-- >0;)(oe.isOdd()||_e.isOdd())&&(oe.iadd(ie),_e.isub(Se)),oe.iushrn(1),_e.iushrn(1);for(var Fe=0,Pe=1;(re.words[0]&Pe)===0&&Fe<26;++Fe,Pe<<=1);if(Fe>0)for(re.iushrn(Fe);Fe-- >0;)(Me.isOdd()||ke.isOdd())&&(Me.iadd(ie),ke.isub(Se)),Me.iushrn(1),ke.iushrn(1);j.cmp(re)>=0?(j.isub(re),oe.isub(Me),_e.isub(ke)):(re.isub(j),Me.isub(oe),ke.isub(_e))}return{a:Me,b:ke,gcd:re.iushln(me)}},f.prototype._invmp=function(N){u(N.negative===0),u(!N.isZero());var j=this,re=N.clone();j.negative!==0?j=j.umod(N):j=j.clone();for(var oe=new f(1),_e=new f(0),Me=re.clone();j.cmpn(1)>0&&re.cmpn(1)>0;){for(var ke=0,me=1;(j.words[0]&me)===0&&ke<26;++ke,me<<=1);if(ke>0)for(j.iushrn(ke);ke-- >0;)oe.isOdd()&&oe.iadd(Me),oe.iushrn(1);for(var ie=0,Se=1;(re.words[0]&Se)===0&&ie<26;++ie,Se<<=1);if(ie>0)for(re.iushrn(ie);ie-- >0;)_e.isOdd()&&_e.iadd(Me),_e.iushrn(1);j.cmp(re)>=0?(j.isub(re),oe.isub(_e)):(re.isub(j),_e.isub(oe))}var Le;return j.cmpn(1)===0?Le=oe:Le=_e,Le.cmpn(0)<0&&Le.iadd(N),Le},f.prototype.gcd=function(N){if(this.isZero())return N.abs();if(N.isZero())return this.abs();var j=this.clone(),re=N.clone();j.negative=0,re.negative=0;for(var oe=0;j.isEven()&&re.isEven();oe++)j.iushrn(1),re.iushrn(1);do{for(;j.isEven();)j.iushrn(1);for(;re.isEven();)re.iushrn(1);var _e=j.cmp(re);if(_e<0){var Me=j;j=re,re=Me}else if(_e===0||re.cmpn(1)===0)break;j.isub(re)}while(!0);return re.iushln(oe)},f.prototype.invm=function(N){return this.egcd(N).a.umod(N)},f.prototype.isEven=function(){return(this.words[0]&1)===0},f.prototype.isOdd=function(){return(this.words[0]&1)===1},f.prototype.andln=function(N){return this.words[0]&N},f.prototype.bincn=function(N){u(typeof N=="number");var j=N%26,re=(N-j)/26,oe=1<>>26,ke&=67108863,this.words[Me]=ke}return _e!==0&&(this.words[Me]=_e,this.length++),this},f.prototype.isZero=function(){return this.length===1&&this.words[0]===0},f.prototype.cmpn=function(N){var j=N<0;if(this.negative!==0&&!j)return-1;if(this.negative===0&&j)return 1;this.strip();var re;if(this.length>1)re=1;else{j&&(N=-N),u(N<=67108863,"Number is too big");var oe=this.words[0]|0;re=oe===N?0:oeN.length)return 1;if(this.length=0;re--){var oe=this.words[re]|0,_e=N.words[re]|0;if(oe!==_e){oe<_e?j=-1:oe>_e&&(j=1);break}}return j},f.prototype.gtn=function(N){return this.cmpn(N)===1},f.prototype.gt=function(N){return this.cmp(N)===1},f.prototype.gten=function(N){return this.cmpn(N)>=0},f.prototype.gte=function(N){return this.cmp(N)>=0},f.prototype.ltn=function(N){return this.cmpn(N)===-1},f.prototype.lt=function(N){return this.cmp(N)===-1},f.prototype.lten=function(N){return this.cmpn(N)<=0},f.prototype.lte=function(N){return this.cmp(N)<=0},f.prototype.eqn=function(N){return this.cmpn(N)===0},f.prototype.eq=function(N){return this.cmp(N)===0},f.red=function(N){return new G(N)},f.prototype.toRed=function(N){return u(!this.red,"Already a number in reduction context"),u(this.negative===0,"red works only with positives"),N.convertTo(this)._forceRed(N)},f.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(N){return this.red=N,this},f.prototype.forceRed=function(N){return u(!this.red,"Already a number in reduction context"),this._forceRed(N)},f.prototype.redAdd=function(N){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,N)},f.prototype.redIAdd=function(N){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,N)},f.prototype.redSub=function(N){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,N)},f.prototype.redISub=function(N){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,N)},f.prototype.redShl=function(N){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,N)},f.prototype.redMul=function(N){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.mul(this,N)},f.prototype.redIMul=function(N){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.imul(this,N)},f.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(N){return u(this.red&&!N.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,N)};var g={k256:null,p224:null,p192:null,p25519:null};function P(H,N){this.name=H,this.p=new f(N,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}P.prototype._tmp=function(){var N=new f(null);return N.words=new Array(Math.ceil(this.n/13)),N},P.prototype.ireduce=function(N){var j=N,re;do this.split(j,this.tmp),j=this.imulK(j),j=j.iadd(this.tmp),re=j.bitLength();while(re>this.n);var oe=re0?j.isub(this.p):j.strip!==void 0?j.strip():j._strip(),j},P.prototype.split=function(N,j){N.iushrn(this.n,0,j)},P.prototype.imulK=function(N){return N.imul(this.k)};function T(){P.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(T,P),T.prototype.split=function(N,j){for(var re=4194303,oe=Math.min(N.length,9),_e=0;_e>>22,Me=ke}Me>>>=22,N.words[_e-10]=Me,Me===0&&N.length>10?N.length-=10:N.length-=9},T.prototype.imulK=function(N){N.words[N.length]=0,N.words[N.length+1]=0,N.length+=2;for(var j=0,re=0;re>>=26,N.words[re]=_e,j=oe}return j!==0&&(N.words[N.length++]=j),N},f._prime=function(N){if(g[N])return g[N];var j;if(N==="k256")j=new T;else if(N==="p224")j=new z;else if(N==="p192")j=new O;else if(N==="p25519")j=new V;else throw new Error("Unknown prime "+N);return g[N]=j,j};function G(H){if(typeof H=="string"){var N=f._prime(H);this.m=N.p,this.prime=N}else u(H.gtn(1),"modulus must be greater than 1"),this.m=H,this.prime=null}G.prototype._verify1=function(N){u(N.negative===0,"red works only with positives"),u(N.red,"red works only with red numbers")},G.prototype._verify2=function(N,j){u((N.negative|j.negative)===0,"red works only with positives"),u(N.red&&N.red===j.red,"red works only with red numbers")},G.prototype.imod=function(N){return this.prime?this.prime.ireduce(N)._forceRed(this):N.umod(this.m)._forceRed(this)},G.prototype.neg=function(N){return N.isZero()?N.clone():this.m.sub(N)._forceRed(this)},G.prototype.add=function(N,j){this._verify2(N,j);var re=N.add(j);return re.cmp(this.m)>=0&&re.isub(this.m),re._forceRed(this)},G.prototype.iadd=function(N,j){this._verify2(N,j);var re=N.iadd(j);return re.cmp(this.m)>=0&&re.isub(this.m),re},G.prototype.sub=function(N,j){this._verify2(N,j);var re=N.sub(j);return re.cmpn(0)<0&&re.iadd(this.m),re._forceRed(this)},G.prototype.isub=function(N,j){this._verify2(N,j);var re=N.isub(j);return re.cmpn(0)<0&&re.iadd(this.m),re},G.prototype.shl=function(N,j){return this._verify1(N),this.imod(N.ushln(j))},G.prototype.imul=function(N,j){return this._verify2(N,j),this.imod(N.imul(j))},G.prototype.mul=function(N,j){return this._verify2(N,j),this.imod(N.mul(j))},G.prototype.isqr=function(N){return this.imul(N,N.clone())},G.prototype.sqr=function(N){return this.mul(N,N)},G.prototype.sqrt=function(N){if(N.isZero())return N.clone();var j=this.m.andln(3);if(u(j%2===1),j===3){var re=this.m.add(new f(1)).iushrn(2);return this.pow(N,re)}for(var oe=this.m.subn(1),_e=0;!oe.isZero()&&oe.andln(1)===0;)_e++,oe.iushrn(1);u(!oe.isZero());var Me=new f(1).toRed(this),ke=Me.redNeg(),me=this.m.subn(1).iushrn(1),ie=this.m.bitLength();for(ie=new f(2*ie*ie).toRed(this);this.pow(ie,me).cmp(ke)!==0;)ie.redIAdd(ke);for(var Se=this.pow(ie,oe),Le=this.pow(N,oe.addn(1).iushrn(1)),Ae=this.pow(N,oe),Fe=_e;Ae.cmp(Me)!==0;){for(var Pe=Ae,ge=0;Pe.cmp(Me)!==0;ge++)Pe=Pe.redSqr();u(ge=0;_e--){for(var Se=j.words[_e],Le=ie-1;Le>=0;Le--){var Ae=Se>>Le&1;if(Me!==oe[0]&&(Me=this.sqr(Me)),Ae===0&&ke===0){me=0;continue}ke<<=1,ke|=Ae,me++,!(me!==re&&(_e!==0||Le!==0))&&(Me=this.mul(Me,oe[ke]),me=0,ke=0)}ie=26}return Me},G.prototype.convertTo=function(N){var j=N.umod(this.m);return j===N?j.clone():j},G.prototype.convertFrom=function(N){var j=N.clone();return j.red=null,j},f.mont=function(N){return new Z(N)};function Z(H){G.call(this,H),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new f(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}c(Z,G),Z.prototype.convertTo=function(N){return this.imod(N.ushln(this.shift))},Z.prototype.convertFrom=function(N){var j=this.imod(N.mul(this.rinv));return j.red=null,j},Z.prototype.imul=function(N,j){if(N.isZero()||j.isZero())return N.words[0]=0,N.length=1,N;var re=N.imul(j),oe=re.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_e=re.isub(oe).iushrn(this.shift),Me=_e;return _e.cmp(this.m)>=0?Me=_e.isub(this.m):_e.cmpn(0)<0&&(Me=_e.iadd(this.m)),Me._forceRed(this)},Z.prototype.mul=function(N,j){if(N.isZero()||j.isZero())return new f(0)._forceRed(this);var re=N.mul(j),oe=re.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_e=re.isub(oe).iushrn(this.shift),Me=_e;return _e.cmp(this.m)>=0?Me=_e.isub(this.m):_e.cmpn(0)<0&&(Me=_e.iadd(this.m)),Me._forceRed(this)},Z.prototype.invm=function(N){var j=this.imod(N._invmp(this.m).mul(this.r2));return j._forceRed(this)}}(i,this)},6204:function(i){"use strict";i.exports=a;function a(o){var s,l,u,c=o.length,f=0;for(s=0;s>>1;if(!(M<=0)){var g,P=s.mallocDouble(2*M*_),T=s.mallocInt32(_);if(_=f(C,M,P,T),_>0){if(M===1&&L)l.init(_),g=l.sweepComplete(M,A,0,_,P,T,0,_,P,T);else{var z=s.mallocDouble(2*M*k),O=s.mallocInt32(k);k=f(E,M,z,O),k>0&&(l.init(_+k),M===1?g=l.sweepBipartite(M,A,0,_,P,T,0,k,z,O):g=u(M,A,L,_,P,T,k,z,O),s.free(z),s.free(O))}s.free(P),s.free(T)}return g}}}var d;function v(C,E){d.push([C,E])}function x(C){return d=[],h(C,C,v,!0),d}function b(C,E){return d=[],h(C,E,v,!1),d}function p(C,E,A){switch(arguments.length){case 1:return x(C);case 2:return typeof E=="function"?h(C,C,E,!0):b(C,E);case 3:return h(C,E,A,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455:function(i,a){"use strict";function o(){function u(h,d,v,x,b,p,C,E,A,L,_){for(var k=2*h,M=x,g=k*x;MA-E?u(h,d,v,x,b,p,C,E,A,L,_):c(h,d,v,x,b,p,C,E,A,L,_)}return f}function s(){function u(v,x,b,p,C,E,A,L,_,k,M){for(var g=2*v,P=p,T=g*p;Pk-_?p?u(v,x,b,C,E,A,L,_,k,M,g):c(v,x,b,C,E,A,L,_,k,M,g):p?f(v,x,b,C,E,A,L,_,k,M,g):h(v,x,b,C,E,A,L,_,k,M,g)}return d}function l(u){return u?o():s()}a.partial=l(!1),a.full=l(!0)},7150:function(i,a,o){"use strict";i.exports=H;var s=o(1888),l=o(8828),u=o(2455),c=u.partial,f=u.full,h=o(855),d=o(3545),v=o(8105),x=128,b=1<<22,p=1<<22,C=v("!(lo>=p0)&&!(p1>=hi)"),E=v("lo===p0"),A=v("lo0;){Se-=1;var Fe=Se*M,Pe=T[Fe],ge=T[Fe+1],De=T[Fe+2],ce=T[Fe+3],Ze=T[Fe+4],ut=T[Fe+5],gt=Se*g,Kt=z[gt],st=z[gt+1],lt=ut&1,Gt=!!(ut&16),Ut=_e,$t=Me,sr=me,Tr=ie;if(lt&&(Ut=me,$t=ie,sr=_e,Tr=Me),!(ut&2&&(De=A(N,Pe,ge,De,Ut,$t,st),ge>=De))&&!(ut&4&&(ge=L(N,Pe,ge,De,Ut,$t,Kt),ge>=De))){var ur=De-ge,$e=Ze-ce;if(Gt){if(N*ur*(ur+$e)v&&b[k+d]>L;--_,k-=C){for(var M=k,g=k+C,P=0;P>>1,L=2*h,_=A,k=b[L*A+d];C=z?(_=T,k=z):P>=V?(_=g,k=P):(_=O,k=V):z>=V?(_=T,k=z):V>=P?(_=g,k=P):(_=O,k=V);for(var H=L*(E-1),N=L*_,G=0;G=p0)&&!(p1>=hi)":d};function o(v){return a[v]}function s(v,x,b,p,C,E,A){for(var L=2*v,_=L*b,k=_,M=b,g=x,P=v+x,T=b;p>T;++T,_+=L){var z=C[_+g];if(z===A)if(M===T)M+=1,k+=L;else{for(var O=0;L>O;++O){var V=C[_+O];C[_+O]=C[k],C[k++]=V}var G=E[T];E[T]=E[M],E[M++]=G}}return M}function l(v,x,b,p,C,E,A){for(var L=2*v,_=L*b,k=_,M=b,g=x,P=v+x,T=b;p>T;++T,_+=L){var z=C[_+g];if(zO;++O){var V=C[_+O];C[_+O]=C[k],C[k++]=V}var G=E[T];E[T]=E[M],E[M++]=G}}return M}function u(v,x,b,p,C,E,A){for(var L=2*v,_=L*b,k=_,M=b,g=x,P=v+x,T=b;p>T;++T,_+=L){var z=C[_+P];if(z<=A)if(M===T)M+=1,k+=L;else{for(var O=0;L>O;++O){var V=C[_+O];C[_+O]=C[k],C[k++]=V}var G=E[T];E[T]=E[M],E[M++]=G}}return M}function c(v,x,b,p,C,E,A){for(var L=2*v,_=L*b,k=_,M=b,g=x,P=v+x,T=b;p>T;++T,_+=L){var z=C[_+P];if(z<=A)if(M===T)M+=1,k+=L;else{for(var O=0;L>O;++O){var V=C[_+O];C[_+O]=C[k],C[k++]=V}var G=E[T];E[T]=E[M],E[M++]=G}}return M}function f(v,x,b,p,C,E,A){for(var L=2*v,_=L*b,k=_,M=b,g=x,P=v+x,T=b;p>T;++T,_+=L){var z=C[_+g],O=C[_+P];if(z<=A&&A<=O)if(M===T)M+=1,k+=L;else{for(var V=0;L>V;++V){var G=C[_+V];C[_+V]=C[k],C[k++]=G}var Z=E[T];E[T]=E[M],E[M++]=Z}}return M}function h(v,x,b,p,C,E,A){for(var L=2*v,_=L*b,k=_,M=b,g=x,P=v+x,T=b;p>T;++T,_+=L){var z=C[_+g],O=C[_+P];if(zV;++V){var G=C[_+V];C[_+V]=C[k],C[k++]=G}var Z=E[T];E[T]=E[M],E[M++]=Z}}return M}function d(v,x,b,p,C,E,A,L){for(var _=2*v,k=_*b,M=k,g=b,P=x,T=v+x,z=b;p>z;++z,k+=_){var O=C[k+P],V=C[k+T];if(!(O>=A)&&!(L>=V))if(g===z)g+=1,M+=_;else{for(var G=0;_>G;++G){var Z=C[k+G];C[k+G]=C[M],C[M++]=Z}var H=E[z];E[z]=E[g],E[g++]=H}}return g}},4192:function(i){"use strict";i.exports=o;var a=32;function o(x,b){b<=4*a?s(0,b-1,x):v(0,b-1,x)}function s(x,b,p){for(var C=2*(x+1),E=x+1;E<=b;++E){for(var A=p[C++],L=p[C++],_=E,k=C-2;_-- >x;){var M=p[k-2],g=p[k-1];if(Mp[b+1]:!0}function d(x,b,p,C){x*=2;var E=C[x];return E>1,_=L-C,k=L+C,M=E,g=_,P=L,T=k,z=A,O=x+1,V=b-1,G=0;h(M,g,p)&&(G=M,M=g,g=G),h(T,z,p)&&(G=T,T=z,z=G),h(M,P,p)&&(G=M,M=P,P=G),h(g,P,p)&&(G=g,g=P,P=G),h(M,T,p)&&(G=M,M=T,T=G),h(P,T,p)&&(G=P,P=T,T=G),h(g,z,p)&&(G=g,g=z,z=G),h(g,P,p)&&(G=g,g=P,P=G),h(T,z,p)&&(G=T,T=z,z=G);for(var Z=p[2*g],H=p[2*g+1],N=p[2*T],j=p[2*T+1],re=2*M,oe=2*P,_e=2*z,Me=2*E,ke=2*L,me=2*A,ie=0;ie<2;++ie){var Se=p[re+ie],Le=p[oe+ie],Ae=p[_e+ie];p[Me+ie]=Se,p[ke+ie]=Le,p[me+ie]=Ae}u(_,x,p),u(k,b,p);for(var Fe=O;Fe<=V;++Fe)if(d(Fe,Z,H,p))Fe!==O&&l(Fe,O,p),++O;else if(!d(Fe,N,j,p))for(;;)if(d(V,N,j,p)){d(V,Z,H,p)?(c(Fe,O,V,p),++O,--V):(l(Fe,V,p),--V);break}else{if(--V>>1;u(C,Le);for(var Ae=0,Fe=0,ke=0;ke=c)Pe=Pe-c|0,A(v,x,Fe--,Pe);else if(Pe>=0)A(h,d,Ae--,Pe);else if(Pe<=-c){Pe=-Pe-c|0;for(var ge=0;ge>>1;u(C,Le);for(var Ae=0,Fe=0,Pe=0,ke=0;ke>1===C[2*ke+3]>>1&&(De=2,ke+=1),ge<0){for(var ce=-(ge>>1)-1,Ze=0;Ze>1)-1;De===0?A(h,d,Ae--,ce):De===1?A(v,x,Fe--,ce):De===2&&A(b,p,Pe--,ce)}}}function M(P,T,z,O,V,G,Z,H,N,j,re,oe){var _e=0,Me=2*P,ke=T,me=T+P,ie=1,Se=1;O?Se=c:ie=c;for(var Le=V;Le>>1;u(C,ge);for(var De=0,Le=0;Le=c?(Ze=!O,Ae-=c):(Ze=!!O,Ae-=1),Ze)L(h,d,De++,Ae);else{var ut=oe[Ae],gt=Me*Ae,Kt=re[gt+T+1],st=re[gt+T+1+P];e:for(var lt=0;lt>>1;u(C,Ae);for(var Fe=0,me=0;me=c)h[Fe++]=ie-c;else{ie-=1;var ge=re[ie],De=_e*ie,ce=j[De+T+1],Ze=j[De+T+1+P];e:for(var ut=0;ut=0;--ut)if(h[ut]===ie){for(var lt=ut+1;lt0;){for(var E=d.pop(),b=d.pop(),A=-1,L=-1,p=x[b],k=1;k=0||(h.flip(b,E),u(f,h,d,A,b,L),u(f,h,d,b,L,A),u(f,h,d,L,E,A),u(f,h,d,E,A,L))}}},5023:function(i,a,o){"use strict";var s=o(2478);i.exports=d;function l(v,x,b,p,C,E,A){this.cells=v,this.neighbor=x,this.flags=p,this.constraint=b,this.active=C,this.next=E,this.boundary=A}var u=l.prototype;function c(v,x){return v[0]-x[0]||v[1]-x[1]||v[2]-x[2]}u.locate=function(){var v=[0,0,0];return function(x,b,p){var C=x,E=b,A=p;return b0||A.length>0;){for(;E.length>0;){var g=E.pop();if(L[g]!==-C){L[g]=C;for(var P=_[g],T=0;T<3;++T){var z=M[3*g+T];z>=0&&L[z]===0&&(k[3*g+T]?A.push(z):(E.push(z),L[z]=C))}}}var O=A;A=E,E=O,A.length=0,C=-C}var V=h(_,L,x);return b?V.concat(p.boundary):V}},8902:function(i,a,o){"use strict";var s=o(2478),l=o(3250)[3],u=0,c=1,f=2;i.exports=A;function h(L,_,k,M,g){this.a=L,this.b=_,this.idx=k,this.lowerIds=M,this.upperIds=g}function d(L,_,k,M){this.a=L,this.b=_,this.type=k,this.idx=M}function v(L,_){var k=L.a[0]-_.a[0]||L.a[1]-_.a[1]||L.type-_.type;return k||L.type!==u&&(k=l(L.a,L.b,_.b),k)?k:L.idx-_.idx}function x(L,_){return l(L.a,L.b,_)}function b(L,_,k,M,g){for(var P=s.lt(_,M,x),T=s.gt(_,M,x),z=P;z1&&l(k[V[Z-2]],k[V[Z-1]],M)>0;)L.push([V[Z-1],V[Z-2],g]),Z-=1;V.length=Z,V.push(g);for(var G=O.upperIds,Z=G.length;Z>1&&l(k[G[Z-2]],k[G[Z-1]],M)<0;)L.push([G[Z-2],G[Z-1],g]),Z-=1;G.length=Z,G.push(g)}}function p(L,_){var k;return L.a[0]<_.a[0]?k=l(L.a,L.b,_.a):k=l(_.b,_.a,L.a),k||(_.b[0]O[0]&&g.push(new d(O,z,f,P),new d(z,O,c,P))}g.sort(v);for(var V=g[0].a[0]-(1+Math.abs(g[0].a[0]))*Math.pow(2,-52),G=[new h([V,1],[V,0],-1,[],[],[],[])],Z=[],P=0,H=g.length;P=0}}(),u.removeTriangle=function(h,d,v){var x=this.stars;c(x[h],d,v),c(x[d],v,h),c(x[v],h,d)},u.addTriangle=function(h,d,v){var x=this.stars;x[h].push(d,v),x[d].push(v,h),x[v].push(h,d)},u.opposite=function(h,d){for(var v=this.stars[d],x=1,b=v.length;x=0;--N){var Se=Z[N];j=Se[0];var Le=V[j],Ae=Le[0],Fe=Le[1],Pe=O[Ae],ge=O[Fe];if((Pe[0]-ge[0]||Pe[1]-ge[1])<0){var De=Ae;Ae=Fe,Fe=De}Le[0]=Ae;var ce=Le[1]=Se[1],Ze;for(H&&(Ze=Le[2]);N>0&&Z[N-1][0]===j;){var Se=Z[--N],ut=Se[1];H?V.push([ce,ut,Ze]):V.push([ce,ut]),ce=ut}H?V.push([ce,Fe,Ze]):V.push([ce,Fe])}return re}function _(O,V,G){for(var Z=V.length,H=new s(Z),N=[],j=0;jV[2]?1:0)}function g(O,V,G){if(O.length!==0){if(V)for(var Z=0;Z0||j.length>0}function z(O,V,G){var Z;if(G){Z=V;for(var H=new Array(V.length),N=0;NL+1)throw new Error(E+" map requires nshades to be at least size "+C.length);Array.isArray(d.alpha)?d.alpha.length!==2?_=[1,1]:_=d.alpha.slice():typeof d.alpha=="number"?_=[d.alpha,d.alpha]:_=[1,1],v=C.map(function(z){return Math.round(z.index*L)}),_[0]=Math.min(Math.max(_[0],0),1),_[1]=Math.min(Math.max(_[1],0),1);var M=C.map(function(z,O){var V=C[O].index,G=C[O].rgb.slice();return G.length===4&&G[3]>=0&&G[3]<=1||(G[3]=_[0]+(_[1]-_[0])*V),G}),g=[];for(k=0;k=0}function d(v,x,b,p){var C=s(x,b,p);if(C===0){var E=l(s(v,x,b)),A=l(s(v,x,p));if(E===A){if(E===0){var L=h(v,x,b),_=h(v,x,p);return L===_?0:L?1:-1}return 0}else{if(A===0)return E>0||h(v,x,p)?-1:1;if(E===0)return A>0||h(v,x,b)?1:-1}return l(A-E)}var k=s(v,x,b);if(k>0)return C>0&&s(v,x,p)>0?1:-1;if(k<0)return C>0||s(v,x,p)>0?1:-1;var M=s(v,x,p);return M>0||h(v,x,b)?1:-1}},8572:function(i){"use strict";i.exports=function(o){return o<0?-1:o>0?1:0}},8507:function(i){i.exports=s;var a=Math.min;function o(l,u){return l-u}function s(l,u){var c=l.length,f=l.length-u.length;if(f)return f;switch(c){case 0:return 0;case 1:return l[0]-u[0];case 2:return l[0]+l[1]-u[0]-u[1]||a(l[0],l[1])-a(u[0],u[1]);case 3:var h=l[0]+l[1],d=u[0]+u[1];if(f=h+l[2]-(d+u[2]),f)return f;var v=a(l[0],l[1]),x=a(u[0],u[1]);return a(v,l[2])-a(x,u[2])||a(v+l[2],h)-a(x+u[2],d);case 4:var b=l[0],p=l[1],C=l[2],E=l[3],A=u[0],L=u[1],_=u[2],k=u[3];return b+p+C+E-(A+L+_+k)||a(b,p,C,E)-a(A,L,_,k,A)||a(b+p,b+C,b+E,p+C,p+E,C+E)-a(A+L,A+_,A+k,L+_,L+k,_+k)||a(b+p+C,b+p+E,b+C+E,p+C+E)-a(A+L+_,A+L+k,A+_+k,L+_+k);default:for(var M=l.slice().sort(o),g=u.slice().sort(o),P=0;Po[l][0]&&(l=u);return sl?[[l],[s]]:[[s]]}},4750:function(i,a,o){"use strict";i.exports=l;var s=o(3090);function l(u){var c=s(u),f=c.length;if(f<=2)return[];for(var h=new Array(f),d=c[f-1],v=0;v=d[A]&&(E+=1);p[C]=E}}return h}function f(h,d){try{return s(h,!0)}catch(p){var v=l(h);if(v.length<=d)return[];var x=u(h,v),b=s(x,!0);return c(b,v)}}},4769:function(i){"use strict";function a(s,l,u,c,f,h){var d=6*f*f-6*f,v=3*f*f-4*f+1,x=-6*f*f+6*f,b=3*f*f-2*f;if(s.length){h||(h=new Array(s.length));for(var p=s.length-1;p>=0;--p)h[p]=d*s[p]+v*l[p]+x*u[p]+b*c[p];return h}return d*s+v*l+x*u[p]+b*c}function o(s,l,u,c,f,h){var d=f-1,v=f*f,x=d*d,b=(1+2*f)*x,p=f*x,C=v*(3-2*f),E=v*d;if(s.length){h||(h=new Array(s.length));for(var A=s.length-1;A>=0;--A)h[A]=b*s[A]+p*l[A]+C*u[A]+E*c[A];return h}return b*s+p*l+C*u+E*c}i.exports=o,i.exports.derivative=a},7642:function(i,a,o){"use strict";var s=o(8954),l=o(1682);i.exports=h;function u(d,v){this.point=d,this.index=v}function c(d,v){for(var x=d.point,b=v.point,p=x.length,C=0;C=2)return!1;G[H]=N}return!0}):V=V.filter(function(G){for(var Z=0;Z<=b;++Z){var H=P[G[Z]];if(H<0)return!1;G[Z]=H}return!0}),b&1)for(var E=0;E>>31},i.exports.exponent=function(C){var E=i.exports.hi(C);return(E<<1>>>21)-1023},i.exports.fraction=function(C){var E=i.exports.lo(C),A=i.exports.hi(C),L=A&(1<<20)-1;return A&2146435072&&(L+=1048576),[E,L]},i.exports.denormalized=function(C){var E=i.exports.hi(C);return!(E&2146435072)}},1338:function(i){"use strict";function a(l,u,c){var f=l[c]|0;if(f<=0)return[];var h=new Array(f),d;if(c===l.length-1)for(d=0;d0)return o(l|0,u);break;case"object":if(typeof l.length=="number")return a(l,u,0);break}return[]}i.exports=s},3134:function(i,a,o){"use strict";i.exports=l;var s=o(1682);function l(u,c){var f=u.length;if(typeof c!="number"){c=0;for(var h=0;h=b-1)for(var k=E.length-1,g=v-x[b-1],M=0;M=b-1)for(var _=E.length-1,k=v-x[b-1],M=0;M=0;--b)if(v[--x])return!1;return!0},f.jump=function(v){var x=this.lastT(),b=this.dimension;if(!(v0;--M)p.push(u(L[M-1],_[M-1],arguments[M])),C.push(0)}},f.push=function(v){var x=this.lastT(),b=this.dimension;if(!(v1e-6?1/A:0;this._time.push(v);for(var g=b;g>0;--g){var P=u(_[g-1],k[g-1],arguments[g]);p.push(P),C.push((P-p[E++])*M)}}},f.set=function(v){var x=this.dimension;if(!(v0;--L)b.push(u(E[L-1],A[L-1],arguments[L])),p.push(0)}},f.move=function(v){var x=this.lastT(),b=this.dimension;if(!(v<=x||arguments.length!==b+1)){var p=this._state,C=this._velocity,E=p.length-this.dimension,A=this.bounds,L=A[0],_=A[1],k=v-x,M=k>1e-6?1/k:0;this._time.push(v);for(var g=b;g>0;--g){var P=arguments[g];p.push(u(L[g-1],_[g-1],p[E++]+P)),C.push(P*M)}}},f.idle=function(v){var x=this.lastT();if(!(v=0;--M)p.push(u(L[M],_[M],p[E]+k*C[E])),C.push(0),E+=1}};function h(v){for(var x=new Array(v),b=0;b=0;--O){var g=P[O];T[O]<=0?P[O]=new s(g._color,g.key,g.value,P[O+1],g.right,g._count+1):P[O]=new s(g._color,g.key,g.value,g.left,P[O+1],g._count+1)}for(var O=P.length-1;O>1;--O){var V=P[O-1],g=P[O];if(V._color===o||g._color===o)break;var G=P[O-2];if(G.left===V)if(V.left===g){var Z=G.right;if(Z&&Z._color===a)V._color=o,G.right=u(o,Z),G._color=a,O-=1;else{if(G._color=a,G.left=V.right,V._color=o,V.right=G,P[O-2]=V,P[O-1]=g,c(G),c(V),O>=3){var H=P[O-3];H.left===G?H.left=V:H.right=V}break}}else{var Z=G.right;if(Z&&Z._color===a)V._color=o,G.right=u(o,Z),G._color=a,O-=1;else{if(V.right=g.left,G._color=a,G.left=g.right,g._color=o,g.left=V,g.right=G,P[O-2]=g,P[O-1]=V,c(G),c(V),c(g),O>=3){var H=P[O-3];H.left===G?H.left=g:H.right=g}break}}else if(V.right===g){var Z=G.left;if(Z&&Z._color===a)V._color=o,G.left=u(o,Z),G._color=a,O-=1;else{if(G._color=a,G.right=V.left,V._color=o,V.left=G,P[O-2]=V,P[O-1]=g,c(G),c(V),O>=3){var H=P[O-3];H.right===G?H.right=V:H.left=V}break}}else{var Z=G.left;if(Z&&Z._color===a)V._color=o,G.left=u(o,Z),G._color=a,O-=1;else{if(V.left=g.right,G._color=a,G.right=g.left,g._color=o,g.right=V,g.left=G,P[O-2]=g,P[O-1]=V,c(G),c(V),c(g),O>=3){var H=P[O-3];H.right===G?H.right=g:H.left=g}break}}}return P[0]._color=o,new f(M,P[0])};function d(_,k){if(k.left){var M=d(_,k.left);if(M)return M}var M=_(k.key,k.value);if(M)return M;if(k.right)return d(_,k.right)}function v(_,k,M,g){var P=k(_,g.key);if(P<=0){if(g.left){var T=v(_,k,M,g.left);if(T)return T}var T=M(g.key,g.value);if(T)return T}if(g.right)return v(_,k,M,g.right)}function x(_,k,M,g,P){var T=M(_,P.key),z=M(k,P.key),O;if(T<=0&&(P.left&&(O=x(_,k,M,g,P.left),O)||z>0&&(O=g(P.key,P.value),O)))return O;if(z>0&&P.right)return x(_,k,M,g,P.right)}h.forEach=function(k,M,g){if(this.root)switch(arguments.length){case 1:return d(k,this.root);case 2:return v(M,this._compare,k,this.root);case 3:return this._compare(M,g)>=0?void 0:x(M,g,this._compare,k,this.root)}},Object.defineProperty(h,"begin",{get:function(){for(var _=[],k=this.root;k;)_.push(k),k=k.left;return new b(this,_)}}),Object.defineProperty(h,"end",{get:function(){for(var _=[],k=this.root;k;)_.push(k),k=k.right;return new b(this,_)}}),h.at=function(_){if(_<0)return new b(this,[]);for(var k=this.root,M=[];;){if(M.push(k),k.left){if(_=k.right._count)break;k=k.right}else break}return new b(this,[])},h.ge=function(_){for(var k=this._compare,M=this.root,g=[],P=0;M;){var T=k(_,M.key);g.push(M),T<=0&&(P=g.length),T<=0?M=M.left:M=M.right}return g.length=P,new b(this,g)},h.gt=function(_){for(var k=this._compare,M=this.root,g=[],P=0;M;){var T=k(_,M.key);g.push(M),T<0&&(P=g.length),T<0?M=M.left:M=M.right}return g.length=P,new b(this,g)},h.lt=function(_){for(var k=this._compare,M=this.root,g=[],P=0;M;){var T=k(_,M.key);g.push(M),T>0&&(P=g.length),T<=0?M=M.left:M=M.right}return g.length=P,new b(this,g)},h.le=function(_){for(var k=this._compare,M=this.root,g=[],P=0;M;){var T=k(_,M.key);g.push(M),T>=0&&(P=g.length),T<0?M=M.left:M=M.right}return g.length=P,new b(this,g)},h.find=function(_){for(var k=this._compare,M=this.root,g=[];M;){var P=k(_,M.key);if(g.push(M),P===0)return new b(this,g);P<=0?M=M.left:M=M.right}return new b(this,[])},h.remove=function(_){var k=this.find(_);return k?k.remove():this},h.get=function(_){for(var k=this._compare,M=this.root;M;){var g=k(_,M.key);if(g===0)return M.value;g<=0?M=M.left:M=M.right}};function b(_,k){this.tree=_,this._stack=k}var p=b.prototype;Object.defineProperty(p,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(p,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),p.clone=function(){return new b(this.tree,this._stack.slice())};function C(_,k){_.key=k.key,_.value=k.value,_.left=k.left,_.right=k.right,_._color=k._color,_._count=k._count}function E(_){for(var k,M,g,P,T=_.length-1;T>=0;--T){if(k=_[T],T===0){k._color=o;return}if(M=_[T-1],M.left===k){if(g=M.right,g.right&&g.right._color===a){if(g=M.right=l(g),P=g.right=l(g.right),M.right=g.left,g.left=M,g.right=P,g._color=M._color,k._color=o,M._color=o,P._color=o,c(M),c(g),T>1){var z=_[T-2];z.left===M?z.left=g:z.right=g}_[T-1]=g;return}else if(g.left&&g.left._color===a){if(g=M.right=l(g),P=g.left=l(g.left),M.right=P.left,g.left=P.right,P.left=M,P.right=g,P._color=M._color,M._color=o,g._color=o,k._color=o,c(M),c(g),c(P),T>1){var z=_[T-2];z.left===M?z.left=P:z.right=P}_[T-1]=P;return}if(g._color===o)if(M._color===a){M._color=o,M.right=u(a,g);return}else{M.right=u(a,g);continue}else{if(g=l(g),M.right=g.left,g.left=M,g._color=M._color,M._color=a,c(M),c(g),T>1){var z=_[T-2];z.left===M?z.left=g:z.right=g}_[T-1]=g,_[T]=M,T+1<_.length?_[T+1]=k:_.push(k),T=T+2}}else{if(g=M.left,g.left&&g.left._color===a){if(g=M.left=l(g),P=g.left=l(g.left),M.left=g.right,g.right=M,g.left=P,g._color=M._color,k._color=o,M._color=o,P._color=o,c(M),c(g),T>1){var z=_[T-2];z.right===M?z.right=g:z.left=g}_[T-1]=g;return}else if(g.right&&g.right._color===a){if(g=M.left=l(g),P=g.right=l(g.right),M.left=P.right,g.right=P.left,P.right=M,P.left=g,P._color=M._color,M._color=o,g._color=o,k._color=o,c(M),c(g),c(P),T>1){var z=_[T-2];z.right===M?z.right=P:z.left=P}_[T-1]=P;return}if(g._color===o)if(M._color===a){M._color=o,M.left=u(a,g);return}else{M.left=u(a,g);continue}else{if(g=l(g),M.left=g.right,g.right=M,g._color=M._color,M._color=a,c(M),c(g),T>1){var z=_[T-2];z.right===M?z.right=g:z.left=g}_[T-1]=g,_[T]=M,T+1<_.length?_[T+1]=k:_.push(k),T=T+2}}}}p.remove=function(){var _=this._stack;if(_.length===0)return this.tree;var k=new Array(_.length),M=_[_.length-1];k[k.length-1]=new s(M._color,M.key,M.value,M.left,M.right,M._count);for(var g=_.length-2;g>=0;--g){var M=_[g];M.left===_[g+1]?k[g]=new s(M._color,M.key,M.value,k[g+1],M.right,M._count):k[g]=new s(M._color,M.key,M.value,M.left,k[g+1],M._count)}if(M=k[k.length-1],M.left&&M.right){var P=k.length;for(M=M.left;M.right;)k.push(M),M=M.right;var T=k[P-1];k.push(new s(M._color,T.key,T.value,M.left,M.right,M._count)),k[P-1].key=M.key,k[P-1].value=M.value;for(var g=k.length-2;g>=P;--g)M=k[g],k[g]=new s(M._color,M.key,M.value,M.left,k[g+1],M._count);k[P-1].left=k[P]}if(M=k[k.length-1],M._color===a){var z=k[k.length-2];z.left===M?z.left=null:z.right===M&&(z.right=null),k.pop();for(var g=0;g0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(p,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(p,"index",{get:function(){var _=0,k=this._stack;if(k.length===0){var M=this.tree.root;return M?M._count:0}else k[k.length-1].left&&(_=k[k.length-1].left._count);for(var g=k.length-2;g>=0;--g)k[g+1]===k[g].right&&(++_,k[g].left&&(_+=k[g].left._count));return _},enumerable:!0}),p.next=function(){var _=this._stack;if(_.length!==0){var k=_[_.length-1];if(k.right)for(k=k.right;k;)_.push(k),k=k.left;else for(_.pop();_.length>0&&_[_.length-1].right===k;)k=_[_.length-1],_.pop()}},Object.defineProperty(p,"hasNext",{get:function(){var _=this._stack;if(_.length===0)return!1;if(_[_.length-1].right)return!0;for(var k=_.length-1;k>0;--k)if(_[k-1].left===_[k])return!0;return!1}}),p.update=function(_){var k=this._stack;if(k.length===0)throw new Error("Can't update empty node!");var M=new Array(k.length),g=k[k.length-1];M[M.length-1]=new s(g._color,g.key,_,g.left,g.right,g._count);for(var P=k.length-2;P>=0;--P)g=k[P],g.left===k[P+1]?M[P]=new s(g._color,g.key,g.value,M[P+1],g.right,g._count):M[P]=new s(g._color,g.key,g.value,g.left,M[P+1],g._count);return new f(this.tree._compare,M[0])},p.prev=function(){var _=this._stack;if(_.length!==0){var k=_[_.length-1];if(k.left)for(k=k.left;k;)_.push(k),k=k.right;else for(_.pop();_.length>0&&_[_.length-1].left===k;)k=_[_.length-1],_.pop()}},Object.defineProperty(p,"hasPrev",{get:function(){var _=this._stack;if(_.length===0)return!1;if(_[_.length-1].left)return!0;for(var k=_.length-1;k>0;--k)if(_[k-1].right===_[k])return!0;return!1}});function A(_,k){return _k?1:0}function L(_){return new f(_||A,null)}},3837:function(i,a,o){"use strict";i.exports=O;var s=o(4935),l=o(501),u=o(5304),c=o(6429),f=o(6444),h=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),d=ArrayBuffer,v=DataView;function x(V){return d.isView(V)&&!(V instanceof v)}function b(V){return Array.isArray(V)||x(V)}function p(V,G){return V[0]=G[0],V[1]=G[1],V[2]=G[2],V}function C(V){this.gl=V,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=u(V)}var E=C.prototype;E.update=function(V){V=V||{};function G(Ae,Fe,Pe){if(Pe in V){var ge=V[Pe],De=this[Pe],ce;(Ae?b(ge)&&b(ge[0]):b(ge))?this[Pe]=ce=[Fe(ge[0]),Fe(ge[1]),Fe(ge[2])]:this[Pe]=ce=[Fe(ge),Fe(ge),Fe(ge)];for(var Ze=0;Ze<3;++Ze)if(ce[Ze]!==De[Ze])return!0}return!1}var Z=G.bind(this,!1,Number),H=G.bind(this,!1,Boolean),N=G.bind(this,!1,String),j=G.bind(this,!0,function(Ae){if(b(Ae)){if(Ae.length===3)return[+Ae[0],+Ae[1],+Ae[2],1];if(Ae.length===4)return[+Ae[0],+Ae[1],+Ae[2],+Ae[3]]}return[0,0,0,1]}),re,oe=!1,_e=!1;if("bounds"in V)for(var Me=V.bounds,ke=0;ke<2;++ke)for(var me=0;me<3;++me)Me[ke][me]!==this.bounds[ke][me]&&(_e=!0),this.bounds[ke][me]=Me[ke][me];if("ticks"in V){re=V.ticks,oe=!0,this.autoTicks=!1;for(var ke=0;ke<3;++ke)this.tickSpacing[ke]=0}else Z("tickSpacing")&&(this.autoTicks=!0,_e=!0);if(this._firstInit&&("ticks"in V||"tickSpacing"in V||(this.autoTicks=!0),_e=!0,oe=!0,this._firstInit=!1),_e&&this.autoTicks&&(re=f.create(this.bounds,this.tickSpacing),oe=!0),oe){for(var ke=0;ke<3;++ke)re[ke].sort(function(Fe,Pe){return Fe.x-Pe.x});f.equal(re,this.ticks)?oe=!1:this.ticks=re}H("tickEnable"),N("tickFont")&&(oe=!0),N("tickFontStyle")&&(oe=!0),N("tickFontWeight")&&(oe=!0),N("tickFontVariant")&&(oe=!0),Z("tickSize"),Z("tickAngle"),Z("tickPad"),j("tickColor");var ie=N("labels");N("labelFont")&&(ie=!0),N("labelFontStyle")&&(ie=!0),N("labelFontWeight")&&(ie=!0),N("labelFontVariant")&&(ie=!0),H("labelEnable"),Z("labelSize"),Z("labelPad"),j("labelColor"),H("lineEnable"),H("lineMirror"),Z("lineWidth"),j("lineColor"),H("lineTickEnable"),H("lineTickMirror"),Z("lineTickLength"),Z("lineTickWidth"),j("lineTickColor"),H("gridEnable"),Z("gridWidth"),j("gridColor"),H("zeroEnable"),j("zeroLineColor"),Z("zeroLineWidth"),H("backgroundEnable"),j("backgroundColor");var Se=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],Le=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(ie||oe)&&this._text.update(this.bounds,this.labels,Se,this.ticks,Le):this._text=s(this.gl,this.bounds,this.labels,Se,this.ticks,Le),this._lines&&oe&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=l(this.gl,this.bounds,this.ticks))};function A(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var L=[new A,new A,new A];function _(V,G,Z,H,N){for(var j=V.primalOffset,re=V.primalMinor,oe=V.mirrorOffset,_e=V.mirrorMinor,Me=H[G],ke=0;ke<3;++ke)if(G!==ke){var me=j,ie=oe,Se=re,Le=_e;Me&1<0?(Se[ke]=-1,Le[ke]=0):(Se[ke]=0,Le[ke]=1)}}var k=[0,0,0],M={model:h,view:h,projection:h,_ortho:!1};E.isOpaque=function(){return!0},E.isTransparent=function(){return!1},E.drawTransparent=function(V){};var g=0,P=[0,0,0],T=[0,0,0],z=[0,0,0];E.draw=function(V){V=V||M;for(var Pe=this.gl,G=V.model||h,Z=V.view||h,H=V.projection||h,N=this.bounds,j=V._ortho||!1,re=c(G,Z,H,N,j),oe=re.cubeEdges,_e=re.axis,Me=Z[12],ke=Z[13],me=Z[14],ie=Z[15],Se=j?2:1,Le=Se*this.pixelRatio*(H[3]*Me+H[7]*ke+H[11]*me+H[15]*ie)/Pe.drawingBufferHeight,Ae=0;Ae<3;++Ae)this.lastCubeProps.cubeEdges[Ae]=oe[Ae],this.lastCubeProps.axis[Ae]=_e[Ae];for(var Fe=L,Ae=0;Ae<3;++Ae)_(L[Ae],Ae,this.bounds,oe,_e);for(var Pe=this.gl,ge=k,Ae=0;Ae<3;++Ae)this.backgroundEnable[Ae]?ge[Ae]=_e[Ae]:ge[Ae]=0;this._background.draw(G,Z,H,N,ge,this.backgroundColor),this._lines.bind(G,Z,H,this);for(var Ae=0;Ae<3;++Ae){var De=[0,0,0];_e[Ae]>0?De[Ae]=N[1][Ae]:De[Ae]=N[0][Ae];for(var ce=0;ce<2;++ce){var Ze=(Ae+1+ce)%3,ut=(Ae+1+(ce^1))%3;this.gridEnable[Ze]&&this._lines.drawGrid(Ze,ut,this.bounds,De,this.gridColor[Ze],this.gridWidth[Ze]*this.pixelRatio)}for(var ce=0;ce<2;++ce){var Ze=(Ae+1+ce)%3,ut=(Ae+1+(ce^1))%3;this.zeroEnable[ut]&&Math.min(N[0][ut],N[1][ut])<=0&&Math.max(N[0][ut],N[1][ut])>=0&&this._lines.drawZero(Ze,ut,this.bounds,De,this.zeroLineColor[ut],this.zeroLineWidth[ut]*this.pixelRatio)}}for(var Ae=0;Ae<3;++Ae){this.lineEnable[Ae]&&this._lines.drawAxisLine(Ae,this.bounds,Fe[Ae].primalOffset,this.lineColor[Ae],this.lineWidth[Ae]*this.pixelRatio),this.lineMirror[Ae]&&this._lines.drawAxisLine(Ae,this.bounds,Fe[Ae].mirrorOffset,this.lineColor[Ae],this.lineWidth[Ae]*this.pixelRatio);for(var gt=p(P,Fe[Ae].primalMinor),Kt=p(T,Fe[Ae].mirrorMinor),st=this.lineTickLength,ce=0;ce<3;++ce){var lt=Le/G[5*ce];gt[ce]*=st[ce]*lt,Kt[ce]*=st[ce]*lt}this.lineTickEnable[Ae]&&this._lines.drawAxisTicks(Ae,Fe[Ae].primalOffset,gt,this.lineTickColor[Ae],this.lineTickWidth[Ae]*this.pixelRatio),this.lineTickMirror[Ae]&&this._lines.drawAxisTicks(Ae,Fe[Ae].mirrorOffset,Kt,this.lineTickColor[Ae],this.lineTickWidth[Ae]*this.pixelRatio)}this._lines.unbind(),this._text.bind(G,Z,H,this.pixelRatio);var Gt,Ut=.5,$t,sr;function Tr(It){sr=[0,0,0],sr[It]=1}function ur(It,Ot,bt){var rr=(It+1)%3,lr=(It+2)%3,wr=Ot[rr],Cr=Ot[lr],Kr=bt[rr],Gr=bt[lr];if(wr>0&&Gr>0){Tr(rr);return}else if(wr>0&&Gr<0){Tr(rr);return}else if(wr<0&&Gr>0){Tr(rr);return}else if(wr<0&&Gr<0){Tr(rr);return}else if(Cr>0&&Kr>0){Tr(lr);return}else if(Cr>0&&Kr<0){Tr(lr);return}else if(Cr<0&&Kr>0){Tr(lr);return}else if(Cr<0&&Kr<0){Tr(lr);return}}for(var Ae=0;Ae<3;++Ae){for(var $e=Fe[Ae].primalMinor,Mt=Fe[Ae].mirrorMinor,Ct=p(z,Fe[Ae].primalOffset),ce=0;ce<3;++ce)this.lineTickEnable[Ae]&&(Ct[ce]+=Le*$e[ce]*Math.max(this.lineTickLength[ce],0)/G[5*ce]);var Vt=[0,0,0];if(Vt[Ae]=1,this.tickEnable[Ae]){this.tickAngle[Ae]===-3600?(this.tickAngle[Ae]=0,this.tickAlign[Ae]="auto"):this.tickAlign[Ae]=-1,$t=1,Gt=[this.tickAlign[Ae],Ut,$t],Gt[0]==="auto"?Gt[0]=g:Gt[0]=parseInt(""+Gt[0]),sr=[0,0,0],ur(Ae,$e,Mt);for(var ce=0;ce<3;++ce)Ct[ce]+=Le*$e[ce]*this.tickPad[ce]/G[5*ce];this._text.drawTicks(Ae,this.tickSize[Ae],this.tickAngle[Ae],Ct,this.tickColor[Ae],Vt,sr,Gt)}if(this.labelEnable[Ae]){$t=0,sr=[0,0,0],this.labels[Ae].length>4&&(Tr(Ae),$t=1),Gt=[this.labelAlign[Ae],Ut,$t],Gt[0]==="auto"?Gt[0]=g:Gt[0]=parseInt(""+Gt[0]);for(var ce=0;ce<3;++ce)Ct[ce]+=Le*$e[ce]*this.labelPad[ce]/G[5*ce];Ct[Ae]+=.5*(N[0][Ae]+N[1][Ae]),this._text.drawLabel(Ae,this.labelSize[Ae],this.labelAngle[Ae],Ct,this.labelColor[Ae],[0,0,0],sr,Gt)}}this._text.unbind()},E.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function O(V,G){var Z=new C(V);return Z.update(G),Z}},5304:function(i,a,o){"use strict";i.exports=h;var s=o(2762),l=o(8116),u=o(1879).bg;function c(d,v,x,b){this.gl=d,this.buffer=v,this.vao=x,this.shader=b}var f=c.prototype;f.draw=function(d,v,x,b,p,C){for(var E=!1,A=0;A<3;++A)E=E||p[A];if(E){var L=this.gl;L.enable(L.POLYGON_OFFSET_FILL),L.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:d,view:v,projection:x,bounds:b,enable:p,colors:C},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),L.disable(L.POLYGON_OFFSET_FILL)}},f.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function h(d){for(var v=[],x=[],b=0,p=0;p<3;++p)for(var C=(p+1)%3,E=(p+2)%3,A=[0,0,0],L=[0,0,0],_=-1;_<=1;_+=2){x.push(b,b+2,b+1,b+1,b+2,b+3),A[p]=_,L[p]=_;for(var k=-1;k<=1;k+=2){A[C]=k;for(var M=-1;M<=1;M+=2)A[E]=M,v.push(A[0],A[1],A[2],L[0],L[1],L[2]),b+=1}var g=C;C=E,E=g}var P=s(d,new Float32Array(v)),T=s(d,new Uint16Array(x),d.ELEMENT_ARRAY_BUFFER),z=l(d,[{buffer:P,type:d.FLOAT,size:3,offset:0,stride:24},{buffer:P,type:d.FLOAT,size:3,offset:12,stride:24}],T),O=u(d);return O.attributes.position.location=0,O.attributes.normal.location=1,new c(d,P,z,O)}},6429:function(i,a,o){"use strict";i.exports=_;var s=o(8828),l=o(6760),u=o(5202),c=o(3250),f=new Array(16),h=new Array(8),d=new Array(8),v=new Array(3),x=[0,0,0];(function(){for(var k=0;k<8;++k)h[k]=[1,1,1,1],d[k]=[1,1,1]})();function b(k,M,g){for(var P=0;P<4;++P){k[P]=g[12+P];for(var T=0;T<3;++T)k[P]+=M[T]*g[4*T+P]}}var p=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function C(k){for(var M=0;M_e&&(Z|=1<_e){Z|=1<d[O][1])&&(Fe=O);for(var Pe=-1,O=0;O<3;++O){var ge=Fe^1<d[De][0]&&(De=ge)}}var ce=E;ce[0]=ce[1]=ce[2]=0,ce[s.log2(Pe^Fe)]=Fe&Pe,ce[s.log2(Fe^De)]=Fe&De;var Ze=De^7;Ze===Z||Ze===Ae?(Ze=Pe^7,ce[s.log2(De^Ze)]=Ze&De):ce[s.log2(Pe^Ze)]=Ze&Pe;for(var ut=A,gt=Z,j=0;j<3;++j)gt&1<{});function Vm(){}function GCe(){return this.rgb().formatHex()}function e6t(){return this.rgb().formatHex8()}function t6t(){return KCe(this).formatHsl()}function HCe(){return this.rgb().formatRgb()}function W_(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Xkt.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?jCe(t):r===3?new _d(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?yD(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?yD(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Zkt.exec(e))?new _d(t[1],t[2],t[3],1):(t=Ykt.exec(e))?new _d(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Kkt.exec(e))?yD(t[1],t[2],t[3],t[4]):(t=Jkt.exec(e))?yD(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=$kt.exec(e))?ZCe(t[1],t[2]/100,t[3]/100,1):(t=Qkt.exec(e))?ZCe(t[1],t[2]/100,t[3]/100,t[4]):VCe.hasOwnProperty(e)?jCe(VCe[e]):e==="transparent"?new _d(NaN,NaN,NaN,0):null}function jCe(e){return new _d(e>>16&255,e>>8&255,e&255,1)}function yD(e,t,r,n){return n<=0&&(e=t=r=NaN),new _d(e,t,r,n)}function DE(e){return e instanceof Vm||(e=W_(e)),e?(e=e.rgb(),new _d(e.r,e.g,e.b,e.opacity)):new _d}function AA(e,t,r,n){return arguments.length===1?DE(e):new _d(e,t,r,n==null?1:n)}function _d(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function WCe(){return`#${M2(this.r)}${M2(this.g)}${M2(this.b)}`}function r6t(){return`#${M2(this.r)}${M2(this.g)}${M2(this.b)}${M2((isNaN(this.opacity)?1:this.opacity)*255)}`}function XCe(){let e=xD(this.opacity);return`${e===1?"rgb(":"rgba("}${E2(this.r)}, ${E2(this.g)}, ${E2(this.b)}${e===1?")":`, ${e})`}`}function xD(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function E2(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function M2(e){return e=E2(e),(e<16?"0":"")+e.toString(16)}function ZCe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Xg(e,t,r,n)}function KCe(e){if(e instanceof Xg)return new Xg(e.h,e.s,e.l,e.opacity);if(e instanceof Vm||(e=W_(e)),!e)return new Xg;if(e instanceof Xg)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r0&&l<1?0:o,new Xg(o,s,l,e.opacity)}function FE(e,t,r,n){return arguments.length===1?KCe(e):new Xg(e,t,r,n==null?1:n)}function Xg(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function YCe(e){return e=(e||0)%360,e<0?e+360:e}function _D(e){return Math.max(0,Math.min(1,e||0))}function gW(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var j_,C2,TA,RE,Um,Xkt,Zkt,Ykt,Kkt,Jkt,$kt,Qkt,VCe,bD=ru(()=>{mD();j_=.7,C2=1/j_,TA="\\s*([+-]?\\d+)\\s*",RE="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Um="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Xkt=/^#([0-9a-f]{3,8})$/,Zkt=new RegExp(`^rgb\\(${TA},${TA},${TA}\\)$`),Ykt=new RegExp(`^rgb\\(${Um},${Um},${Um}\\)$`),Kkt=new RegExp(`^rgba\\(${TA},${TA},${TA},${RE}\\)$`),Jkt=new RegExp(`^rgba\\(${Um},${Um},${Um},${RE}\\)$`),$kt=new RegExp(`^hsl\\(${RE},${Um},${Um}\\)$`),Qkt=new RegExp(`^hsla\\(${RE},${Um},${Um},${RE}\\)$`),VCe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Zy(Vm,W_,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:GCe,formatHex:GCe,formatHex8:e6t,formatHsl:t6t,formatRgb:HCe,toString:HCe});Zy(_d,AA,H_(Vm,{brighter(e){return e=e==null?C2:Math.pow(C2,e),new _d(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?j_:Math.pow(j_,e),new _d(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _d(E2(this.r),E2(this.g),E2(this.b),xD(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:WCe,formatHex:WCe,formatHex8:r6t,formatRgb:XCe,toString:XCe}));Zy(Xg,FE,H_(Vm,{brighter(e){return e=e==null?C2:Math.pow(C2,e),new Xg(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?j_:Math.pow(j_,e),new Xg(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new _d(gW(e>=240?e-240:e+120,i,n),gW(e,i,n),gW(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Xg(YCe(this.h),_D(this.s),_D(this.l),xD(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=xD(this.opacity);return`${e===1?"hsl(":"hsla("}${YCe(this.h)}, ${_D(this.s)*100}%, ${_D(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var wD,TD,mW=ru(()=>{wD=Math.PI/180,TD=180/Math.PI});function rke(e){if(e instanceof Gm)return new Gm(e.l,e.a,e.b,e.opacity);if(e instanceof Yy)return ike(e);e instanceof _d||(e=DE(e));var t=bW(e.r),r=bW(e.g),n=bW(e.b),i=yW((.2225045*t+.7168786*r+.0606169*n)/$Ce),a,o;return t===r&&r===n?a=o=i:(a=yW((.4360747*t+.3850649*r+.1430804*n)/JCe),o=yW((.0139322*t+.0971045*r+.7141733*n)/QCe)),new Gm(116*i-16,500*(a-i),200*(i-o),e.opacity)}function MA(e,t,r,n){return arguments.length===1?rke(e):new Gm(e,t,r,n==null?1:n)}function Gm(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function yW(e){return e>i6t?Math.pow(e,1/3):e/tke+eke}function _W(e){return e>SA?e*e*e:tke*(e-eke)}function xW(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function bW(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function n6t(e){if(e instanceof Yy)return new Yy(e.h,e.c,e.l,e.opacity);if(e instanceof Gm||(e=rke(e)),e.a===0&&e.b===0)return new Yy(NaN,0{mD();bD();mW();AD=18,JCe=.96422,$Ce=1,QCe=.82521,eke=4/29,SA=6/29,tke=3*SA*SA,i6t=SA*SA*SA;Zy(Gm,MA,H_(Vm,{brighter(e){return new Gm(this.l+AD*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Gm(this.l-AD*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=JCe*_W(t),e=$Ce*_W(e),r=QCe*_W(r),new _d(xW(3.1338561*t-1.6168667*e-.4906146*r),xW(-.9787684*t+1.9161415*e+.033454*r),xW(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));Zy(Yy,zE,H_(Vm,{brighter(e){return new Yy(this.h,this.c,this.l+AD*(e==null?1:e),this.opacity)},darker(e){return new Yy(this.h,this.c,this.l-AD*(e==null?1:e),this.opacity)},rgb(){return ike(this).rgb()}}))});function a6t(e){if(e instanceof k2)return new k2(e.h,e.s,e.l,e.opacity);e instanceof _d||(e=DE(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(ske*n+ake*t-oke*r)/(ske+ake-oke),a=n-i,o=(OE*(r-i)-TW*a)/SD,s=Math.sqrt(o*o+a*a)/(OE*i*(1-i)),l=s?Math.atan2(o,a)*TD-120:NaN;return new k2(l<0?l+360:l,s,i,e.opacity)}function EA(e,t,r,n){return arguments.length===1?a6t(e):new k2(e,t,r,n==null?1:n)}function k2(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}var lke,wW,TW,SD,OE,ake,oke,ske,uke=ru(()=>{mD();bD();mW();lke=-.14861,wW=1.78277,TW=-.29227,SD=-.90649,OE=1.97294,ake=OE*SD,oke=OE*wW,ske=wW*TW-SD*lke;Zy(k2,EA,H_(Vm,{brighter(e){return e=e==null?C2:Math.pow(C2,e),new k2(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?j_:Math.pow(j_,e),new k2(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*wD,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new _d(255*(t+r*(lke*n+wW*i)),255*(t+r*(TW*n+SD*i)),255*(t+r*(OE*n)),this.opacity)}}))});var L2=ru(()=>{bD();nke();uke()});function AW(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function MD(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,s=n{});function CD(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],s=e[(n+2)%t];return AW((r-n/t)*t,i,a,o,s)}}var SW=ru(()=>{ED()});var CA,MW=ru(()=>{CA=e=>()=>e});function cke(e,t){return function(r){return e+r*t}}function o6t(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function X_(e,t){var r=t-e;return r?cke(e,r>180||r<-180?r-360*Math.round(r/360):r):CA(isNaN(e)?t:e)}function fke(e){return(e=+e)==1?$f:function(t,r){return r-t?o6t(t,r,e):CA(isNaN(t)?r:t)}}function $f(e,t){var r=t-e;return r?cke(e,r):CA(isNaN(e)?t:e)}var P2=ru(()=>{MW()});function hke(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,s;for(o=0;o{L2();ED();SW();P2();qE=function e(t){var r=fke(t);function n(i,a){var o=r((i=AA(i)).r,(a=AA(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=$f(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return n.gamma=e,n}(1);dke=hke(MD),vke=hke(CD)});function kA(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i{});function pke(e,t){return(kD(t)?kA:CW)(e,t)}function CW(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o{BE();LD()});function PD(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}var LW=ru(()=>{});function Fp(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var NE=ru(()=>{});function ID(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Z_(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var PW=ru(()=>{BE()});function s6t(e){return function(){return e}}function l6t(e){return function(t){return e(t)+""}}function RD(e,t){var r=RW.lastIndex=IW.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=RW.exec(e))&&(i=IW.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Fp(n,i)})),r=IW.lastIndex;return r{NE();RW=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,IW=new RegExp(RW.source,"g")});function Z_(e,t){var r=typeof t,n;return t==null||r==="boolean"?CA(t):(r==="number"?Fp:r==="string"?(n=W_(t))?(t=n,qE):RD:t instanceof W_?qE:t instanceof Date?PD:kD(t)?kA:Array.isArray(t)?CW:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?ID:Fp)(e,t)}var BE=ru(()=>{L2();EW();kW();LW();NE();PW();DW();MW();LD()});function gke(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var mke=ru(()=>{});function yke(e,t){var r=X_(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}var _ke=ru(()=>{P2()});function xke(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var bke=ru(()=>{});function FW(e,t,r,n,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*n)&&(r-=e*l,n-=t*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),e*n{wke=180/Math.PI,DD={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function Ake(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?DD:FW(t.a,t.b,t.c,t.d,t.e,t.f)}function Ske(e){return e==null?DD:(FD||(FD=document.createElementNS("http://www.w3.org/2000/svg","g")),FD.setAttribute("transform",e),(e=FD.transform.baseVal.consolidate())?(e=e.matrix,FW(e.a,e.b,e.c,e.d,e.e,e.f)):DD)}var FD,Mke=ru(()=>{Tke()});function Eke(e,t,r,n){function i(u){return u.length?u.pop()+" ":""}function a(u,c,f,h,d,v){if(u!==f||c!==h){var _=d.push("translate(",null,t,null,r);v.push({i:_-4,x:Fp(u,f)},{i:_-2,x:Fp(c,h)})}else(f||h)&&d.push("translate("+f+t+h+r)}function o(u,c,f,h){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),h.push({i:f.push(i(f)+"rotate(",null,n)-2,x:Fp(u,c)})):c&&f.push(i(f)+"rotate("+c+n)}function s(u,c,f,h){u!==c?h.push({i:f.push(i(f)+"skewX(",null,n)-2,x:Fp(u,c)}):c&&f.push(i(f)+"skewX("+c+n)}function l(u,c,f,h,d,v){if(u!==f||c!==h){var _=d.push(i(d)+"scale(",null,",",null,")");v.push({i:_-4,x:Fp(u,f)},{i:_-2,x:Fp(c,h)})}else(f!==1||h!==1)&&d.push(i(d)+"scale("+f+","+h+")")}return function(u,c){var f=[],h=[];return u=e(u),c=e(c),a(u.translateX,u.translateY,c.translateX,c.translateY,f,h),o(u.rotate,c.rotate,f,h),s(u.skewX,c.skewX,f,h),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,h),u=c=null,function(d){for(var v=-1,_=h.length,b;++v<_;)f[(b=h[v]).i]=b.x(d);return f.join("")}}}var Cke,kke,Lke=ru(()=>{NE();Mke();Cke=Eke(Ake,"px, ","px)","deg)"),kke=Eke(Ske,", ",")",")")});function Pke(e){return((e=Math.exp(e))+1/e)/2}function c6t(e){return((e=Math.exp(e))-1/e)/2}function f6t(e){return((e=Math.exp(2*e))-1)/(e+1)}var u6t,Ike,Rke=ru(()=>{u6t=1e-12;Ike=function e(t,r,n){function i(a,o){var s=a[0],l=a[1],u=a[2],c=o[0],f=o[1],h=o[2],d=c-s,v=f-l,_=d*d+v*v,b,p;if(_{L2();P2();Fke=Dke(X_),zke=Dke($f)});function zW(e,t){var r=$f((e=MA(e)).l,(t=MA(t)).l),n=$f(e.a,t.a),i=$f(e.b,t.b),a=$f(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}var qke=ru(()=>{L2();P2()});function Bke(e){return function(t,r){var n=e((t=zE(t)).h,(r=zE(r)).h),i=$f(t.c,r.c),a=$f(t.l,r.l),o=$f(t.opacity,r.opacity);return function(s){return t.h=n(s),t.c=i(s),t.l=a(s),t.opacity=o(s),t+""}}}var Nke,Uke,Vke=ru(()=>{L2();P2();Nke=Bke(X_),Uke=Bke($f)});function Gke(e){return function t(r){r=+r;function n(i,a){var o=e((i=EA(i)).h,(a=EA(a)).h),s=$f(i.s,a.s),l=$f(i.l,a.l),u=$f(i.opacity,a.opacity);return function(c){return i.h=o(c),i.s=s(c),i.l=l(Math.pow(c,r)),i.opacity=u(c),i+""}}return n.gamma=t,n}(1)}var Hke,jke,Wke=ru(()=>{L2();P2();Hke=Gke(X_),jke=Gke($f)});function OW(e,t){t===void 0&&(t=e,e=Z_);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r{BE()});function Zke(e,t){for(var r=new Array(t),n=0;n{});var I2={};uee(I2,{interpolate:()=>Z_,interpolateArray:()=>pke,interpolateBasis:()=>MD,interpolateBasisClosed:()=>CD,interpolateCubehelix:()=>Hke,interpolateCubehelixLong:()=>jke,interpolateDate:()=>PD,interpolateDiscrete:()=>gke,interpolateHcl:()=>Nke,interpolateHclLong:()=>Uke,interpolateHsl:()=>Fke,interpolateHslLong:()=>zke,interpolateHue:()=>yke,interpolateLab:()=>zW,interpolateNumber:()=>Fp,interpolateNumberArray:()=>kA,interpolateObject:()=>ID,interpolateRgb:()=>qE,interpolateRgbBasis:()=>dke,interpolateRgbBasisClosed:()=>vke,interpolateRound:()=>xke,interpolateString:()=>RD,interpolateTransformCss:()=>Cke,interpolateTransformSvg:()=>kke,interpolateZoom:()=>Ike,piecewise:()=>OW,quantize:()=>Zke});var R2=ru(()=>{BE();kW();ED();SW();LW();mke();_ke();NE();LD();PW();bke();DW();Lke();Rke();EW();Oke();qke();Vke();Wke();Xke();Yke()});var zD=ye((Hvr,Kke)=>{"use strict";var h6t=So(),d6t=Ca();Kke.exports=function(t,r,n,i,a){var o=r.data.data,s=o.i,l=a||o.color;if(s>=0){r.i=o.i;var u=n.marker;u.pattern?(!u.colors||!u.pattern.shape)&&(u.color=l,r.color=l):(u.color=l,r.color=l),h6t.pointStyle(t,n,i,r)}else d6t.fill(t,l)}});var qW=ye((jvr,t6e)=>{"use strict";var Jke=Oa(),$ke=Ca(),Qke=Dr(),v6t=_v().resizeText,p6t=zD();function g6t(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");v6t(e,t,"sunburst"),t.each(function(r){var n=Jke.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){Jke.select(this).call(e6e,o,a,e)})})}function e6e(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=Qke.castOption(r,o,"marker.line.color")||$ke.defaultLine,l=Qke.castOption(r,o,"marker.line.width")||0;e.call(p6t,t,r,n).style("stroke-width",l).call($ke.stroke,s).style("opacity",a?r.leaf.opacity:null)}t6e.exports={style:g6t,styleOne:e6e}});var Ky=ye(Ns=>{"use strict";var D2=Dr(),m6t=Ca(),y6t=Tg(),r6e=u_();Ns.findEntryWithLevel=function(e,t){var r;return t&&e.eachAfter(function(n){if(Ns.getPtId(n)===t)return r=n.copy()}),r||e};Ns.findEntryWithChild=function(e,t){var r;return e.eachAfter(function(n){for(var i=n.children||[],a=0;a0)};Ns.getMaxDepth=function(e){return e.maxdepth>=0?e.maxdepth:1/0};Ns.isHeader=function(e,t){return!(Ns.isLeaf(e)||e.depth===t._maxDepth-1)};function i6e(e){return e.data.data.pid}Ns.getParent=function(e,t){return Ns.findEntryWithLevel(e,i6e(t))};Ns.listPath=function(e,t){var r=e.parent;if(!r)return[];var n=t?[r.data[t]]:[r];return Ns.listPath(r,t).concat(n)};Ns.getPath=function(e){return Ns.listPath(e,"label").join("/")+"/"};Ns.formatValue=r6e.formatPieValue;Ns.formatPercent=function(e,t){var r=D2.formatPercent(e,0);return r==="0%"&&(r=r6e.formatPiePercent(e,t)),r}});var GE=ye((Xvr,o6e)=>{"use strict";var LA=Oa(),n6e=qa(),b6t=rp().appendArrayPointValue,UE=vf(),a6e=Dr(),w6t=g3(),rd=Ky(),T6t=u_(),A6t=T6t.formatPieValue;o6e.exports=function(t,r,n,i,a){var o=i[0],s=o.trace,l=o.hierarchy,u=s.type==="sunburst",c=s.type==="treemap"||s.type==="icicle";"_hasHoverLabel"in s||(s._hasHoverLabel=!1),"_hasHoverEvent"in s||(s._hasHoverEvent=!1);var f=function(v){var _=n._fullLayout;if(!(n._dragging||_.hovermode===!1)){var b=n._fullData[s.index],p=v.data.data,C=p.i,E=rd.isHierarchyRoot(v),A=rd.getParent(l,v),L=rd.getValue(v),x=function(Me){return a6e.castOption(b,C,Me)},k=x("hovertemplate"),M=UE.castHoverinfo(b,_,C),g=_.separators,P;if(k||M&&M!=="none"&&M!=="skip"){var T,z;u&&(T=o.cx+v.pxmid[0]*(1-v.rInscribed),z=o.cy+v.pxmid[1]*(1-v.rInscribed)),c&&(T=v._hoverX,z=v._hoverY);var O={},V=[],G=[],Z=function(Me){return V.indexOf(Me)!==-1};M&&(V=M==="all"?b._module.attributes.hoverinfo.flags:M.split("+")),O.label=p.label,Z("label")&&O.label&&G.push(O.label),p.hasOwnProperty("v")&&(O.value=p.v,O.valueLabel=A6t(O.value,g),Z("value")&&G.push(O.valueLabel)),O.currentPath=v.currentPath=rd.getPath(v.data),Z("current path")&&!E&&G.push(O.currentPath);var H,N=[],j=function(){N.indexOf(H)===-1&&(G.push(H),N.push(H))};O.percentParent=v.percentParent=L/rd.getValue(A),O.parent=v.parentString=rd.getPtLabel(A),Z("percent parent")&&(H=rd.formatPercent(O.percentParent,g)+" of "+O.parent,j()),O.percentEntry=v.percentEntry=L/rd.getValue(r),O.entry=v.entry=rd.getPtLabel(r),Z("percent entry")&&!E&&!v.onPathbar&&(H=rd.formatPercent(O.percentEntry,g)+" of "+O.entry,j()),O.percentRoot=v.percentRoot=L/rd.getValue(l),O.root=v.root=rd.getPtLabel(l),Z("percent root")&&!E&&(H=rd.formatPercent(O.percentRoot,g)+" of "+O.root,j()),O.text=x("hovertext")||x("text"),Z("text")&&(H=O.text,a6e.isValidTextValue(H)&&G.push(H)),P=[VE(v,b,a.eventDataKeys)];var re={trace:b,y:z,_x0:v._x0,_x1:v._x1,_y0:v._y0,_y1:v._y1,text:G.join("
"),name:k||Z("name")?b.name:void 0,color:x("hoverlabel.bgcolor")||p.color,borderColor:x("hoverlabel.bordercolor"),fontFamily:x("hoverlabel.font.family"),fontSize:x("hoverlabel.font.size"),fontColor:x("hoverlabel.font.color"),fontWeight:x("hoverlabel.font.weight"),fontStyle:x("hoverlabel.font.style"),fontVariant:x("hoverlabel.font.variant"),nameLength:x("hoverlabel.namelength"),textAlign:x("hoverlabel.align"),hovertemplate:k,hovertemplateLabels:O,eventData:P};u&&(re.x0=T-v.rInscribed*v.rpx1,re.x1=T+v.rInscribed*v.rpx1,re.idealAlign=v.pxmid[0]<0?"left":"right"),c&&(re.x=T,re.idealAlign=T<0?"left":"right");var oe=[];UE.loneHover(re,{container:_._hoverlayer.node(),outerContainer:_._paper.node(),gd:n,inOut_bbox:oe}),P[0].bbox=oe[0],s._hasHoverLabel=!0}if(c){var _e=t.select("path.surface");a.styleOne(_e,v,b,n,{hovered:!0})}s._hasHoverEvent=!0,n.emit("plotly_hover",{points:P||[VE(v,b,a.eventDataKeys)],event:LA.event})}},h=function(v){var _=n._fullLayout,b=n._fullData[s.index],p=LA.select(this).datum();if(s._hasHoverEvent&&(v.originalEvent=LA.event,n.emit("plotly_unhover",{points:[VE(p,b,a.eventDataKeys)],event:LA.event}),s._hasHoverEvent=!1),s._hasHoverLabel&&(UE.loneUnhover(_._hoverlayer.node()),s._hasHoverLabel=!1),c){var C=t.select("path.surface");a.styleOne(C,p,b,n,{hovered:!1})}},d=function(v){var _=n._fullLayout,b=n._fullData[s.index],p=u&&(rd.isHierarchyRoot(v)||rd.isLeaf(v)),C=rd.getPtId(v),E=rd.isEntry(v)?rd.findEntryWithChild(l,C):rd.findEntryWithLevel(l,C),A=rd.getPtId(E),L={points:[VE(v,b,a.eventDataKeys)],event:LA.event};p||(L.nextLevel=A);var x=w6t.triggerHandler(n,"plotly_"+s.type+"click",L);if(x!==!1&&_.hovermode&&(n._hoverdata=[VE(v,b,a.eventDataKeys)],UE.click(n,LA.event)),!p&&x!==!1&&!n._dragging&&!n._transitioning){n6e.call("_storeDirectGUIEdit",b,_._tracePreGUI[b.uid],{level:b.level});var k={data:[{level:A}],traces:[s.index]},M={frame:{redraw:!1,duration:a.transitionTime},transition:{duration:a.transitionTime,easing:a.transitionEasing},mode:"immediate",fromcurrent:!0};UE.loneUnhover(_._hoverlayer.node()),n6e.call("animate",n,k,M)}};t.on("mouseover",f),t.on("mouseout",h),t.on("click",d)};function VE(e,t,r){for(var n=e.data.data,i={curveNumber:t.index,pointNumber:n.i,data:t._input,fullData:t},a=0;a{"use strict";var HE=Oa(),S6t=LE(),Zg=(R2(),B1(I2)).interpolate,s6e=So(),bv=Dr(),M6t=iu(),f6e=_v(),l6e=f6e.recordMinTextSize,E6t=f6e.clearMinTextSize,h6e=pD(),C6t=u_().getRotationAngle,k6t=h6e.computeTransform,L6t=h6e.transformInsideText,P6t=qW().styleOne,I6t=N0().resizeText,R6t=GE(),BW=vW(),Il=Ky();OD.plot=function(e,t,r,n){var i=e._fullLayout,a=i._sunburstlayer,o,s,l=!r,u=!i.uniformtext.mode&&Il.hasTransition(r);if(E6t("sunburst",i),o=a.selectAll("g.trace.sunburst").data(t,function(f){return f[0].trace.uid}),o.enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),o.order(),u){n&&(s=n());var c=HE.transition().duration(r.duration).ease(r.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});c.each(function(){a.selectAll("g.trace").each(function(f){u6e(e,f,this,r)})})}else o.each(function(f){u6e(e,f,this,r)}),i.uniformtext.mode&&I6t(e,i._sunburstlayer.selectAll(".trace"),"sunburst");l&&o.exit().remove()};function u6e(e,t,r,n){var i=e._context.staticPlot,a=e._fullLayout,o=!a.uniformtext.mode&&Il.hasTransition(n),s=HE.select(r),l=s.selectAll("g.slice"),u=t[0],c=u.trace,f=u.hierarchy,h=Il.findEntryWithLevel(f,c.level),d=Il.getMaxDepth(c),v=a._size,_=c.domain,b=v.w*(_.x[1]-_.x[0]),p=v.h*(_.y[1]-_.y[0]),C=.5*Math.min(b,p),E=u.cx=v.l+v.w*(_.x[1]+_.x[0])/2,A=u.cy=v.t+v.h*(1-_.y[0])-p/2;if(!h)return l.remove();var L=null,x={};o&&l.each(function(me){x[Il.getPtId(me)]={rpx0:me.rpx0,rpx1:me.rpx1,x0:me.x0,x1:me.x1,transform:me.transform},!L&&Il.isEntry(me)&&(L=me)});var k=D6t(h).descendants(),M=h.height+1,g=0,P=d;u.hasMultipleRoots&&Il.isHierarchyRoot(h)&&(k=k.slice(1),M-=1,g=1,P+=1),k=k.filter(function(me){return me.y1<=P});var T=C6t(c.rotation);T&&k.forEach(function(me){me.x0+=T,me.x1+=T});var z=Math.min(M,d),O=function(me){return(me-g)/z*C},V=function(me,ie){return[me*Math.cos(ie),-me*Math.sin(ie)]},G=function(me){return bv.pathAnnulus(me.rpx0,me.rpx1,me.x0,me.x1,E,A)},Z=function(me){return E+c6e(me)[0]*(me.transform.rCenter||0)+(me.transform.x||0)},H=function(me){return A+c6e(me)[1]*(me.transform.rCenter||0)+(me.transform.y||0)};l=l.data(k,Il.getPtId),l.enter().append("g").classed("slice",!0),o?l.exit().transition().each(function(){var me=HE.select(this),ie=me.select("path.surface");ie.transition().attrTween("d",function(Le){var Ae=oe(Le);return function(De){return G(Ae(De))}});var Se=me.select("g.slicetext");Se.attr("opacity",0)}).remove():l.exit().remove(),l.order();var N=null;if(o&&L){var j=Il.getPtId(L);l.each(function(me){N===null&&Il.getPtId(me)===j&&(N=me.x1)})}var re=l;o&&(re=re.transition().each("end",function(){var me=HE.select(this);Il.setSliceCursor(me,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),re.each(function(me){var ie=HE.select(this),Se=bv.ensureSingle(ie,"path","surface",function(Fe){Fe.style("pointer-events",i?"none":"all")});me.rpx0=O(me.y0),me.rpx1=O(me.y1),me.xmid=(me.x0+me.x1)/2,me.pxmid=V(me.rpx1,me.xmid),me.midangle=-(me.xmid-Math.PI/2),me.startangle=-(me.x0-Math.PI/2),me.stopangle=-(me.x1-Math.PI/2),me.halfangle=.5*Math.min(bv.angleDelta(me.x0,me.x1)||Math.PI,Math.PI),me.ring=1-me.rpx0/me.rpx1,me.rInscribed=F6t(me,c),o?Se.transition().attrTween("d",function(Fe){var ce=_e(Fe);return function(Ye){return G(ce(Ye))}}):Se.attr("d",G),ie.call(R6t,h,e,t,{eventDataKeys:BW.eventDataKeys,transitionTime:BW.CLICK_TRANSITION_TIME,transitionEasing:BW.CLICK_TRANSITION_EASING}).call(Il.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),Se.call(P6t,me,c,e);var Le=bv.ensureSingle(ie,"g","slicetext"),Ae=bv.ensureSingle(Le,"text","",function(Fe){Fe.attr("data-notex",1)}),De=bv.ensureUniformFontSize(e,Il.determineTextFont(c,me,a.font));Ae.text(OD.formatSliceLabel(me,h,c,t,a)).classed("slicetext",!0).attr("text-anchor","middle").call(s6e.font,De).call(M6t.convertToTspans,e);var Pe=s6e.bBox(Ae.node());me.transform=L6t(Pe,me,u),me.transform.targetX=Z(me),me.transform.targetY=H(me);var ge=function(Fe,ce){var Ye=Fe.transform;return k6t(Ye,ce),Ye.fontSize=De.size,l6e(c.type,Ye,a),bv.getTextTransform(Ye)};o?Ae.transition().attrTween("transform",function(Fe){var ce=Me(Fe);return function(Ye){return ge(ce(Ye),Pe)}}):Ae.attr("transform",ge(me,Pe))});function oe(me){var ie=Il.getPtId(me),Se=x[ie],Le=x[Il.getPtId(h)],Ae;if(Le){var De=(me.x1>Le.x1?2*Math.PI:0)+T;Ae=me.rpx1N?2*Math.PI:0)+T;Se={x0:Ae,x1:Ae}}else Se={rpx0:C,rpx1:C},bv.extendFlat(Se,ke(me));else Se={rpx0:0,rpx1:0};else Se={x0:T,x1:T};return Zg(Se,Le)}function Me(me){var ie=x[Il.getPtId(me)],Se,Le=me.transform;if(ie)Se=ie;else if(Se={rpx1:me.rpx1,transform:{textPosAngle:Le.textPosAngle,scale:0,rotate:Le.rotate,rCenter:Le.rCenter,x:Le.x,y:Le.y}},L)if(me.parent)if(N){var Ae=me.x1>N?2*Math.PI:0;Se.x0=Se.x1=Ae}else bv.extendFlat(Se,ke(me));else Se.x0=Se.x1=T;else Se.x0=Se.x1=T;var De=Zg(Se.transform.textPosAngle,me.transform.textPosAngle),Pe=Zg(Se.rpx1,me.rpx1),ge=Zg(Se.x0,me.x0),Fe=Zg(Se.x1,me.x1),ce=Zg(Se.transform.scale,Le.scale),Ye=Zg(Se.transform.rotate,Le.rotate),ct=Le.rCenter===0?3:Se.transform.rCenter===0?1/3:1,pt=Zg(Se.transform.rCenter,Le.rCenter),Wt=function(st){return pt(Math.pow(st,ct))};return function(st){var lt=Pe(st),Gt=ge(st),Nt=Fe(st),$t=Wt(st),sr=V(lt,(Gt+Nt)/2),wr=De(st),ur={pxmid:sr,rpx1:lt,transform:{textPosAngle:wr,rCenter:$t,x:Le.x,y:Le.y}};return l6e(c.type,Le,a),{transform:{targetX:Z(ur),targetY:H(ur),scale:ce(st),rotate:Ye(st),rCenter:$t}}}}function ke(me){var ie=me.parent,Se=x[Il.getPtId(ie)],Le={};if(Se){var Ae=ie.children,De=Ae.indexOf(me),Pe=Ae.length,ge=Zg(Se.x0,Se.x1);Le.x0=ge(De/Pe),Le.x1=ge(De/Pe)}else Le.x0=Le.x1=0;return Le}}function D6t(e){return S6t.partition().size([2*Math.PI,e.height+1])(e)}OD.formatSliceLabel=function(e,t,r,n,i){var a=r.texttemplate,o=r.textinfo;if(!a&&(!o||o==="none"))return"";var s=i.separators,l=n[0],u=e.data.data,c=l.hierarchy,f=Il.isHierarchyRoot(e),h=Il.getParent(c,e),d=Il.getValue(e);if(!a){var v=o.split("+"),_=function(g){return v.indexOf(g)!==-1},b=[],p;if(_("label")&&u.label&&b.push(u.label),u.hasOwnProperty("v")&&_("value")&&b.push(Il.formatValue(u.v,s)),!f){_("current path")&&b.push(Il.getPath(e.data));var C=0;_("percent parent")&&C++,_("percent entry")&&C++,_("percent root")&&C++;var E=C>1;if(C){var A,L=function(g){p=Il.formatPercent(A,s),E&&(p+=" of "+g),b.push(p)};_("percent parent")&&!f&&(A=d/Il.getValue(h),L("parent")),_("percent entry")&&(A=d/Il.getValue(t),L("entry")),_("percent root")&&(A=d/Il.getValue(c),L("root"))}}return _("text")&&(p=bv.castOption(r,u.i,"text"),bv.isValidTextValue(p)&&b.push(p)),b.join("
")}var x=bv.castOption(r,u.i,"texttemplate");if(!x)return"";var k={};u.label&&(k.label=u.label),u.hasOwnProperty("v")&&(k.value=u.v,k.valueLabel=Il.formatValue(u.v,s)),k.currentPath=Il.getPath(e.data),f||(k.percentParent=d/Il.getValue(h),k.percentParentLabel=Il.formatPercent(k.percentParent,s),k.parent=Il.getPtLabel(h)),k.percentEntry=d/Il.getValue(t),k.percentEntryLabel=Il.formatPercent(k.percentEntry,s),k.entry=Il.getPtLabel(t),k.percentRoot=d/Il.getValue(c),k.percentRootLabel=Il.formatPercent(k.percentRoot,s),k.root=Il.getPtLabel(c),u.hasOwnProperty("color")&&(k.color=u.color);var M=bv.castOption(r,u.i,"text");return(bv.isValidTextValue(M)||M==="")&&(k.text=M),k.customdata=bv.castOption(r,u.i,"customdata"),bv.texttemplateString(x,k,i._d3locale,k,r._meta||{})};function F6t(e){return e.rpx0===0&&bv.isFullCircle([e.x0,e.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2))}function c6e(e){return z6t(e.rpx1,e.transform.textPosAngle)}function z6t(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}});var v6e=ye((Yvr,d6e)=>{"use strict";d6e.exports={moduleType:"trace",name:"sunburst",basePlotModule:CCe(),categories:[],animatable:!0,attributes:kE(),layoutAttributes:pW(),supplyDefaults:zCe(),supplyLayoutDefaults:qCe(),calc:IE().calc,crossTraceCalc:IE().crossTraceCalc,plot:qD().plot,style:qW().style,colorbar:$d(),meta:{}}});var g6e=ye((Kvr,p6e)=>{"use strict";p6e.exports=v6e()});var y6e=ye(PA=>{"use strict";var m6e=Mc();PA.name="treemap";PA.plot=function(e,t,r,n){m6e.plotBasePlot(PA.name,e,t,r,n)};PA.clean=function(e,t,r,n){m6e.cleanBasePlot(PA.name,e,t,r,n)}});var F2=ye(($vr,_6e)=>{"use strict";_6e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}});var BD=ye((Qvr,b6e)=>{"use strict";var O6t=Qo().hovertemplateAttrs,q6t=Qo().texttemplateAttrs,B6t=Tu(),N6t=kc().attributes,z2=A2(),Q0=kE(),x6e=F2(),NW=Ao().extendFlat,U6t=Pd().pattern;b6e.exports={labels:Q0.labels,parents:Q0.parents,values:Q0.values,branchvalues:Q0.branchvalues,count:Q0.count,level:Q0.level,maxdepth:Q0.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",editType:"plot"},squarifyratio:{valType:"number",min:1,dflt:1,editType:"plot"},flip:{valType:"flaglist",flags:["x","y"],dflt:"",editType:"plot"},pad:{valType:"number",min:0,dflt:3,editType:"plot"},editType:"calc"},marker:NW({pad:{t:{valType:"number",min:0,editType:"plot"},l:{valType:"number",min:0,editType:"plot"},r:{valType:"number",min:0,editType:"plot"},b:{valType:"number",min:0,editType:"plot"},editType:"calc"},colors:Q0.marker.colors,pattern:U6t,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:Q0.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},B6t("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,editType:"plot"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:NW({},z2.textfont,{}),editType:"calc"},text:z2.text,textinfo:Q0.textinfo,texttemplate:q6t({editType:"plot"},{keys:x6e.eventDataKeys.concat(["label","value"])}),hovertext:z2.hovertext,hoverinfo:Q0.hoverinfo,hovertemplate:O6t({},{keys:x6e.eventDataKeys}),textfont:z2.textfont,insidetextfont:z2.insidetextfont,outsidetextfont:NW({},z2.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:z2.sort,root:Q0.root,domain:N6t({name:"treemap",trace:!0,editType:"calc"})}});var UW=ye((epr,w6e)=>{"use strict";w6e.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var M6e=ye((tpr,S6e)=>{"use strict";var T6e=Dr(),V6t=BD(),G6t=Ca(),H6t=kc().defaults,j6t=r0().handleText,W6t=Qb().TEXTPAD,X6t=S2().handleMarkerDefaults,A6e=tc(),Z6t=A6e.hasColorscale,Y6t=A6e.handleDefaults;S6e.exports=function(t,r,n,i){function a(b,p){return T6e.coerce(t,r,V6t,b,p)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth");var u=a("tiling.packing");u==="squarify"&&a("tiling.squarifyratio"),a("tiling.flip"),a("tiling.pad");var c=a("text");a("texttemplate"),r.texttemplate||a("textinfo",T6e.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate");var f=a("pathbar.visible"),h="auto";j6t(t,r,i,a,h,{hasPathbar:f,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition");var d=r.textposition.indexOf("bottom")!==-1;X6t(t,r,i,a);var v=r._hasColorscale=Z6t(t,"marker","colors")||(t.marker||{}).coloraxis;v?Y6t(t,r,i,a,{prefix:"marker.",cLetter:"c"}):a("marker.depthfade",!(r.marker.colors||[]).length);var _=r.textfont.size*2;a("marker.pad.t",d?_/4:_),a("marker.pad.l",_/4),a("marker.pad.r",_/4),a("marker.pad.b",d?_:_/4),a("marker.cornerradius"),r._hovered={marker:{line:{width:2,color:G6t.contrast(i.paper_bgcolor)}}},f&&(a("pathbar.thickness",r.pathbar.textfont.size+2*W6t),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),H6t(r,i,a),r._length=null}});var C6e=ye((rpr,E6e)=>{"use strict";var K6t=Dr(),J6t=UW();E6e.exports=function(t,r){function n(i,a){return K6t.coerce(t,r,J6t,i,a)}n("treemapcolorway",r.colorway),n("extendtreemapcolors")}});var GW=ye(VW=>{"use strict";var k6e=IE();VW.calc=function(e,t){return k6e.calc(e,t)};VW.crossTraceCalc=function(e){return k6e._runCrossTraceCalc("treemap",e)}});var HW=ye((npr,L6e)=>{"use strict";L6e.exports=function e(t,r,n){var i;n.swapXY&&(i=t.x0,t.x0=t.y0,t.y0=i,i=t.x1,t.x1=t.y1,t.y1=i),n.flipX&&(i=t.x0,t.x0=r[0]-t.x1,t.x1=r[0]-i),n.flipY&&(i=t.y0,t.y0=r[1]-t.y1,t.y1=r[1]-i);var a=t.children;if(a)for(var o=0;o{"use strict";var IA=LE(),$6t=HW();P6e.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.packing==="dice-slice",s=n.pad[a?"bottom":"top"],l=n.pad[i?"right":"left"],u=n.pad[i?"left":"right"],c=n.pad[a?"top":"bottom"],f;o&&(f=l,l=s,s=f,f=u,u=c,c=f);var h=IA.treemap().tile(Q6t(n.packing,n.squarifyratio)).paddingInner(n.pad.inner).paddingLeft(l).paddingRight(u).paddingTop(s).paddingBottom(c).size(o?[r[1],r[0]]:r)(t);return(o||i||a)&&$6t(h,r,{swapXY:o,flipX:i,flipY:a}),h};function Q6t(e,t){switch(e){case"squarify":return IA.treemapSquarify.ratio(t);case"binary":return IA.treemapBinary;case"dice":return IA.treemapDice;case"slice":return IA.treemapSlice;default:return IA.treemapSliceDice}}});var ND=ye((opr,F6e)=>{"use strict";var I6e=Oa(),RA=Ca(),R6e=Dr(),WW=Ky(),eLt=_v().resizeText,tLt=zD();function rLt(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");eLt(e,t,"treemap"),t.each(function(r){var n=I6e.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){I6e.select(this).call(D6e,o,a,e,{hovered:!1})})})}function D6e(e,t,r,n,i){var a=(i||{}).hovered,o=t.data.data,s=o.i,l,u,c=o.color,f=WW.isHierarchyRoot(t),h=1;if(a)l=r._hovered.marker.line.color,u=r._hovered.marker.line.width;else if(f&&c===r.root.color)h=100,l="rgba(0,0,0,0)",u=0;else if(l=R6e.castOption(r,s,"marker.line.color")||RA.defaultLine,u=R6e.castOption(r,s,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var d=r.marker.depthfade;if(d){var v=RA.combine(RA.addOpacity(r._backgroundColor,.75),c),_;if(d===!0){var b=WW.getMaxDepth(r);isFinite(b)?WW.isLeaf(t)?_=0:_=r._maxVisibleLayers-(t.data.depth-r._entryDepth):_=t.data.height+1}else _=t.data.depth-r._entryDepth,r._atRootLevel||_++;if(_>0)for(var p=0;p<_;p++){var C=.5*p/_;c=RA.combine(RA.addOpacity(v,C),c)}}}e.call(tLt,t,r,n,c).style("stroke-width",u).call(RA.stroke,l).style("opacity",h)}F6e.exports={style:rLt,styleOne:D6e}});var N6e=ye((spr,B6e)=>{"use strict";var z6e=Oa(),UD=Dr(),O6e=So(),iLt=iu(),nLt=jW(),q6e=ND().styleOne,XW=F2(),DA=Ky(),aLt=GE(),ZW=!0;B6e.exports=function(t,r,n,i,a){var o=a.barDifY,s=a.width,l=a.height,u=a.viewX,c=a.viewY,f=a.pathSlice,h=a.toMoveInsideSlice,d=a.strTransform,v=a.hasTransition,_=a.handleSlicesExit,b=a.makeUpdateSliceInterpolator,p=a.makeUpdateTextInterpolator,C={},E=t._context.staticPlot,A=t._fullLayout,L=r[0],x=L.trace,k=L.hierarchy,M=s/x._entryDepth,g=DA.listPath(n.data,"id"),P=nLt(k.copy(),[s,l],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();P=P.filter(function(z){var O=g.indexOf(z.data.id);return O===-1?!1:(z.x0=M*O,z.x1=M*(O+1),z.y0=o,z.y1=o+l,z.onPathbar=!0,!0)}),P.reverse(),i=i.data(P,DA.getPtId),i.enter().append("g").classed("pathbar",!0),_(i,ZW,C,[s,l],f),i.order();var T=i;v&&(T=T.transition().each("end",function(){var z=z6e.select(this);DA.setSliceCursor(z,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),T.each(function(z){z._x0=u(z.x0),z._x1=u(z.x1),z._y0=c(z.y0),z._y1=c(z.y1),z._hoverX=u(z.x1-Math.min(s,l)/2),z._hoverY=c(z.y1-l/2);var O=z6e.select(this),V=UD.ensureSingle(O,"path","surface",function(N){N.style("pointer-events",E?"none":"all")});v?V.transition().attrTween("d",function(N){var j=b(N,ZW,C,[s,l]);return function(re){return f(j(re))}}):V.attr("d",f),O.call(aLt,n,t,r,{styleOne:q6e,eventDataKeys:XW.eventDataKeys,transitionTime:XW.CLICK_TRANSITION_TIME,transitionEasing:XW.CLICK_TRANSITION_EASING}).call(DA.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),V.call(q6e,z,x,t,{hovered:!1}),z._text=(DA.getPtLabel(z)||"").split("
").join(" ")||"";var G=UD.ensureSingle(O,"g","slicetext"),Z=UD.ensureSingle(G,"text","",function(N){N.attr("data-notex",1)}),H=UD.ensureUniformFontSize(t,DA.determineTextFont(x,z,A.font,{onPathbar:!0}));Z.text(z._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(O6e.font,H).call(iLt.convertToTspans,t),z.textBB=O6e.bBox(Z.node()),z.transform=h(z,{fontSize:H.size,onPathbar:!0}),z.transform.fontSize=H.size,v?Z.transition().attrTween("transform",function(N){var j=p(N,ZW,C,[s,l]);return function(re){return d(j(re))}}):Z.attr("transform",d(z))})}});var H6e=ye((lpr,G6e)=>{"use strict";var U6e=Oa(),YW=(R2(),B1(I2)).interpolate,Y_=Ky(),jE=Dr(),V6e=Qb().TEXTPAD,oLt=i2(),sLt=oLt.toMoveInsideBar,lLt=_v(),KW=lLt.recordMinTextSize,uLt=F2(),cLt=N6e();function O2(e){return Y_.isHierarchyRoot(e)?"":Y_.getPtId(e)}G6e.exports=function(t,r,n,i,a){var o=t._fullLayout,s=r[0],l=s.trace,u=l.type,c=u==="icicle",f=s.hierarchy,h=Y_.findEntryWithLevel(f,l.level),d=U6e.select(n),v=d.selectAll("g.pathbar"),_=d.selectAll("g.slice");if(!h){v.remove(),_.remove();return}var b=Y_.isHierarchyRoot(h),p=!o.uniformtext.mode&&Y_.hasTransition(i),C=Y_.getMaxDepth(l),E=function(Qe){return Qe.data.depth-h.data.depth-1?k+P:-(g+P):0,z={x0:M,x1:M,y0:T,y1:T+g},O=function(Qe,Et,er){var Ut=l.tiling.pad,Ft=function(lr){return lr-Ut<=Et.x0},bt=function(lr){return lr+Ut>=Et.x1},yt=function(lr){return lr-Ut<=Et.y0},Yt=function(lr){return lr+Ut>=Et.y1};return Qe.x0===Et.x0&&Qe.x1===Et.x1&&Qe.y0===Et.y0&&Qe.y1===Et.y1?{x0:Qe.x0,x1:Qe.x1,y0:Qe.y0,y1:Qe.y1}:{x0:Ft(Qe.x0-Ut)?0:bt(Qe.x0-Ut)?er[0]:Qe.x0,x1:Ft(Qe.x1+Ut)?0:bt(Qe.x1+Ut)?er[0]:Qe.x1,y0:yt(Qe.y0-Ut)?0:Yt(Qe.y0-Ut)?er[1]:Qe.y0,y1:yt(Qe.y1+Ut)?0:Yt(Qe.y1+Ut)?er[1]:Qe.y1}},V=null,G={},Z={},H=null,N=function(Qe,Et){return Et?G[O2(Qe)]:Z[O2(Qe)]},j=function(Qe,Et,er,Ut){if(Et)return G[O2(f)]||z;var Ft=Z[l.level]||er;return E(Qe)?O(Qe,Ft,Ut):{}};s.hasMultipleRoots&&b&&C++,l._maxDepth=C,l._backgroundColor=o.paper_bgcolor,l._entryDepth=h.data.depth,l._atRootLevel=b;var re=-x/2+A.l+A.w*(L.x[1]+L.x[0])/2,oe=-k/2+A.t+A.h*(1-(L.y[1]+L.y[0])/2),_e=function(Qe){return re+Qe},Me=function(Qe){return oe+Qe},ke=Me(0),me=_e(0),ie=function(Qe){return me+Qe},Se=function(Qe){return ke+Qe};function Le(Qe,Et){return Qe+","+Et}var Ae=ie(0),De=function(Qe){Qe.x=Math.max(Ae,Qe.x)},Pe=l.pathbar.edgeshape,ge=function(Qe){var Et=ie(Math.max(Math.min(Qe.x0,Qe.x0),0)),er=ie(Math.min(Math.max(Qe.x1,Qe.x1),M)),Ut=Se(Qe.y0),Ft=Se(Qe.y1),bt=g/2,yt={},Yt={};yt.x=Et,Yt.x=er,yt.y=Yt.y=(Ut+Ft)/2;var lr={x:Et,y:Ut},Tr={x:er,y:Ut},Rr={x:er,y:Ft},ei={x:Et,y:Ft};return Pe===">"?(lr.x-=bt,Tr.x-=bt,Rr.x-=bt,ei.x-=bt):Pe==="/"?(Rr.x-=bt,ei.x-=bt,yt.x-=bt/2,Yt.x-=bt/2):Pe==="\\"?(lr.x-=bt,Tr.x-=bt,yt.x-=bt/2,Yt.x-=bt/2):Pe==="<"&&(yt.x-=bt,Yt.x-=bt),De(lr),De(ei),De(yt),De(Tr),De(Rr),De(Yt),"M"+Le(lr.x,lr.y)+"L"+Le(Tr.x,Tr.y)+"L"+Le(Yt.x,Yt.y)+"L"+Le(Rr.x,Rr.y)+"L"+Le(ei.x,ei.y)+"L"+Le(yt.x,yt.y)+"Z"},Fe=l[c?"tiling":"marker"].pad,ce=function(Qe){return l.textposition.indexOf(Qe)!==-1},Ye=ce("top"),ct=ce("left"),pt=ce("right"),Wt=ce("bottom"),st=function(Qe){var Et=_e(Qe.x0),er=_e(Qe.x1),Ut=Me(Qe.y0),Ft=Me(Qe.y1),bt=er-Et,yt=Ft-Ut;if(!bt||!yt)return"";var Yt=l.marker.cornerradius||0,lr=Math.min(Yt,bt/2,yt/2);lr&&Qe.data&&Qe.data.data&&Qe.data.data.label&&(Ye&&(lr=Math.min(lr,Fe.t)),ct&&(lr=Math.min(lr,Fe.l)),pt&&(lr=Math.min(lr,Fe.r)),Wt&&(lr=Math.min(lr,Fe.b)));var Tr=function(Rr,ei){return lr?"a"+Le(lr,lr)+" 0 0 1 "+Le(Rr,ei):""};return"M"+Le(Et,Ut+lr)+Tr(lr,-lr)+"L"+Le(er-lr,Ut)+Tr(lr,lr)+"L"+Le(er,Ft-lr)+Tr(-lr,lr)+"L"+Le(Et+lr,Ft)+Tr(-lr,-lr)+"Z"},lt=function(Qe,Et){var er=Qe.x0,Ut=Qe.x1,Ft=Qe.y0,bt=Qe.y1,yt=Qe.textBB,Yt=Ye||Et.isHeader&&!Wt,lr=Yt?"start":Wt?"end":"middle",Tr=ce("right"),Rr=ce("left")||Et.onPathbar,ei=Rr?-1:Tr?1:0;if(Et.isHeader){if(er+=(c?Fe:Fe.l)-V6e,Ut-=(c?Fe:Fe.r)-V6e,er>=Ut){var Wr=(er+Ut)/2;er=Wr,Ut=Wr}var Ur;Wt?(Ur=bt-(c?Fe:Fe.b),Ft{"use strict";var fLt=Oa(),hLt=Ky(),dLt=_v(),vLt=dLt.clearMinTextSize,pLt=N0().resizeText,j6e=H6e();W6e.exports=function(t,r,n,i,a){var o=a.type,s=a.drawDescendants,l=t._fullLayout,u=l["_"+o+"layer"],c,f,h=!n;if(vLt(o,l),c=u.selectAll("g.trace."+o).data(r,function(v){return v[0].trace.uid}),c.enter().append("g").classed("trace",!0).classed(o,!0),c.order(),!l.uniformtext.mode&&hLt.hasTransition(n)){i&&(f=i());var d=fLt.transition().duration(n.duration).ease(n.easing).each("end",function(){f&&f()}).each("interrupt",function(){f&&f()});d.each(function(){u.selectAll("g.trace").each(function(v){j6e(t,v,this,n,s)})})}else c.each(function(v){j6e(t,v,this,n,s)}),l.uniformtext.mode&&pLt(t,u.selectAll(".trace"),o);h&&c.exit().remove()}});var J6e=ye((cpr,K6e)=>{"use strict";var X6e=Oa(),VD=Dr(),Z6e=So(),gLt=iu(),mLt=jW(),Y6e=ND().styleOne,$W=F2(),K_=Ky(),yLt=GE(),_Lt=qD().formatSliceLabel,QW=!1;K6e.exports=function(t,r,n,i,a){var o=a.width,s=a.height,l=a.viewX,u=a.viewY,c=a.pathSlice,f=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,v=a.handleSlicesExit,_=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,p=a.prevEntry,C={},E=t._context.staticPlot,A=t._fullLayout,L=r[0],x=L.trace,k=x.textposition.indexOf("left")!==-1,M=x.textposition.indexOf("right")!==-1,g=x.textposition.indexOf("bottom")!==-1,P=!g&&!x.marker.pad.t||g&&!x.marker.pad.b,T=mLt(n,[o,s],{packing:x.tiling.packing,squarifyratio:x.tiling.squarifyratio,flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1,pad:{inner:x.tiling.pad,top:x.marker.pad.t,left:x.marker.pad.l,right:x.marker.pad.r,bottom:x.marker.pad.b}}),z=T.descendants(),O=1/0,V=-1/0;z.forEach(function(j){var re=j.depth;re>=x._maxDepth?(j.x0=j.x1=(j.x0+j.x1)/2,j.y0=j.y1=(j.y0+j.y1)/2):(O=Math.min(O,re),V=Math.max(V,re))}),i=i.data(z,K_.getPtId),x._maxVisibleLayers=isFinite(V)?V-O+1:0,i.enter().append("g").classed("slice",!0),v(i,QW,C,[o,s],c),i.order();var G=null;if(d&&p){var Z=K_.getPtId(p);i.each(function(j){G===null&&K_.getPtId(j)===Z&&(G={x0:j.x0,x1:j.x1,y0:j.y0,y1:j.y1})})}var H=function(){return G||{x0:0,x1:o,y0:0,y1:s}},N=i;return d&&(N=N.transition().each("end",function(){var j=X6e.select(this);K_.setSliceCursor(j,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),N.each(function(j){var re=K_.isHeader(j,x);j._x0=l(j.x0),j._x1=l(j.x1),j._y0=u(j.y0),j._y1=u(j.y1),j._hoverX=l(j.x1-x.marker.pad.r),j._hoverY=u(g?j.y1-x.marker.pad.b/2:j.y0+x.marker.pad.t/2);var oe=X6e.select(this),_e=VD.ensureSingle(oe,"path","surface",function(Le){Le.style("pointer-events",E?"none":"all")});d?_e.transition().attrTween("d",function(Le){var Ae=_(Le,QW,H(),[o,s]);return function(De){return c(Ae(De))}}):_e.attr("d",c),oe.call(yLt,n,t,r,{styleOne:Y6e,eventDataKeys:$W.eventDataKeys,transitionTime:$W.CLICK_TRANSITION_TIME,transitionEasing:$W.CLICK_TRANSITION_EASING}).call(K_.setSliceCursor,t,{isTransitioning:t._transitioning}),_e.call(Y6e,j,x,t,{hovered:!1}),j.x0===j.x1||j.y0===j.y1?j._text="":re?j._text=P?"":K_.getPtLabel(j)||"":j._text=_Lt(j,n,x,r,A)||"";var Me=VD.ensureSingle(oe,"g","slicetext"),ke=VD.ensureSingle(Me,"text","",function(Le){Le.attr("data-notex",1)}),me=VD.ensureUniformFontSize(t,K_.determineTextFont(x,j,A.font)),ie=j._text||" ",Se=re&&ie.indexOf("
")===-1;ke.text(ie).classed("slicetext",!0).attr("text-anchor",M?"end":k||Se?"start":"middle").call(Z6e.font,me).call(gLt.convertToTspans,t),j.textBB=Z6e.bBox(ke.node()),j.transform=f(j,{fontSize:me.size,isHeader:re}),j.transform.fontSize=me.size,d?ke.transition().attrTween("transform",function(Le){var Ae=b(Le,QW,H(),[o,s]);return function(De){return h(Ae(De))}}):ke.attr("transform",h(j))}),G}});var Q6e=ye((fpr,$6e)=>{"use strict";var xLt=JW(),bLt=J6e();$6e.exports=function(t,r,n,i){return xLt(t,r,n,i,{type:"treemap",drawDescendants:bLt})}});var tLe=ye((hpr,eLe)=>{"use strict";eLe.exports={moduleType:"trace",name:"treemap",basePlotModule:y6e(),categories:[],animatable:!0,attributes:BD(),layoutAttributes:UW(),supplyDefaults:M6e(),supplyLayoutDefaults:C6e(),calc:GW().calc,crossTraceCalc:GW().crossTraceCalc,plot:Q6e(),style:ND().style,colorbar:$d(),meta:{}}});var iLe=ye((dpr,rLe)=>{"use strict";rLe.exports=tLe()});var aLe=ye(FA=>{"use strict";var nLe=Mc();FA.name="icicle";FA.plot=function(e,t,r,n){nLe.plotBasePlot(FA.name,e,t,r,n)};FA.clean=function(e,t,r,n){nLe.cleanBasePlot(FA.name,e,t,r,n)}});var eX=ye((ppr,sLe)=>{"use strict";var wLt=Qo().hovertemplateAttrs,TLt=Qo().texttemplateAttrs,ALt=Tu(),SLt=kc().attributes,WE=A2(),o0=kE(),GD=BD(),oLe=F2(),MLt=Ao().extendFlat,ELt=Pd().pattern;sLe.exports={labels:o0.labels,parents:o0.parents,values:o0.values,branchvalues:o0.branchvalues,count:o0.count,level:o0.level,maxdepth:o0.maxdepth,tiling:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"plot"},flip:GD.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:MLt({colors:o0.marker.colors,line:o0.marker.line,pattern:ELt,editType:"calc"},ALt("marker",{colorAttr:"colors",anim:!1})),leaf:o0.leaf,pathbar:GD.pathbar,text:WE.text,textinfo:o0.textinfo,texttemplate:TLt({editType:"plot"},{keys:oLe.eventDataKeys.concat(["label","value"])}),hovertext:WE.hovertext,hoverinfo:o0.hoverinfo,hovertemplate:wLt({},{keys:oLe.eventDataKeys}),textfont:WE.textfont,insidetextfont:WE.insidetextfont,outsidetextfont:GD.outsidetextfont,textposition:GD.textposition,sort:WE.sort,root:o0.root,domain:SLt({name:"icicle",trace:!0,editType:"calc"})}});var tX=ye((gpr,lLe)=>{"use strict";lLe.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var hLe=ye((mpr,fLe)=>{"use strict";var uLe=Dr(),CLt=eX(),kLt=Ca(),LLt=kc().defaults,PLt=r0().handleText,ILt=Qb().TEXTPAD,RLt=S2().handleMarkerDefaults,cLe=tc(),DLt=cLe.hasColorscale,FLt=cLe.handleDefaults;fLe.exports=function(t,r,n,i){function a(d,v){return uLe.coerce(t,r,CLt,d,v)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),a("tiling.orientation"),a("tiling.flip"),a("tiling.pad");var u=a("text");a("texttemplate"),r.texttemplate||a("textinfo",uLe.isArrayOrTypedArray(u)?"text+label":"label"),a("hovertext"),a("hovertemplate");var c=a("pathbar.visible"),f="auto";PLt(t,r,i,a,f,{hasPathbar:c,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition"),RLt(t,r,i,a);var h=r._hasColorscale=DLt(t,"marker","colors")||(t.marker||{}).coloraxis;h&&FLt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",h?1:.7),r._hovered={marker:{line:{width:2,color:kLt.contrast(i.paper_bgcolor)}}},c&&(a("pathbar.thickness",r.pathbar.textfont.size+2*ILt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),LLt(r,i,a),r._length=null}});var vLe=ye((ypr,dLe)=>{"use strict";var zLt=Dr(),OLt=tX();dLe.exports=function(t,r){function n(i,a){return zLt.coerce(t,r,OLt,i,a)}n("iciclecolorway",r.colorway),n("extendiciclecolors")}});var iX=ye(rX=>{"use strict";var pLe=IE();rX.calc=function(e,t){return pLe.calc(e,t)};rX.crossTraceCalc=function(e){return pLe._runCrossTraceCalc("icicle",e)}});var mLe=ye((xpr,gLe)=>{"use strict";var qLt=LE(),BLt=HW();gLe.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.orientation==="h",s=n.maxDepth,l=r[0],u=r[1];s&&(l=(t.height+1)*r[0]/Math.min(t.height+1,s),u=(t.height+1)*r[1]/Math.min(t.height+1,s));var c=qLt.partition().padding(n.pad.inner).size(o?[r[1],l]:[r[0],u])(t);return(o||i||a)&&BLt(c,r,{swapXY:o,flipX:i,flipY:a}),c}});var nX=ye((bpr,wLe)=>{"use strict";var yLe=Oa(),_Le=Ca(),xLe=Dr(),NLt=_v().resizeText,ULt=zD();function VLt(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");NLt(e,t,"icicle"),t.each(function(r){var n=yLe.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){yLe.select(this).call(bLe,o,a,e)})})}function bLe(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=xLe.castOption(r,o,"marker.line.color")||_Le.defaultLine,l=xLe.castOption(r,o,"marker.line.width")||0;e.call(ULt,t,r,n).style("stroke-width",l).call(_Le.stroke,s).style("opacity",a?r.leaf.opacity:null)}wLe.exports={style:VLt,styleOne:bLe}});var ELe=ye((wpr,MLe)=>{"use strict";var TLe=Oa(),HD=Dr(),ALe=So(),GLt=iu(),HLt=mLe(),SLe=nX().styleOne,aX=F2(),zA=Ky(),jLt=GE(),WLt=qD().formatSliceLabel,oX=!1;MLe.exports=function(t,r,n,i,a){var o=a.width,s=a.height,l=a.viewX,u=a.viewY,c=a.pathSlice,f=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,v=a.handleSlicesExit,_=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,p=a.prevEntry,C={},E=t._context.staticPlot,A=t._fullLayout,L=r[0],x=L.trace,k=x.textposition.indexOf("left")!==-1,M=x.textposition.indexOf("right")!==-1,g=x.textposition.indexOf("bottom")!==-1,P=HLt(n,[o,s],{flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1,orientation:x.tiling.orientation,pad:{inner:x.tiling.pad},maxDepth:x._maxDepth}),T=P.descendants(),z=1/0,O=-1/0;T.forEach(function(N){var j=N.depth;j>=x._maxDepth?(N.x0=N.x1=(N.x0+N.x1)/2,N.y0=N.y1=(N.y0+N.y1)/2):(z=Math.min(z,j),O=Math.max(O,j))}),i=i.data(T,zA.getPtId),x._maxVisibleLayers=isFinite(O)?O-z+1:0,i.enter().append("g").classed("slice",!0),v(i,oX,C,[o,s],c),i.order();var V=null;if(d&&p){var G=zA.getPtId(p);i.each(function(N){V===null&&zA.getPtId(N)===G&&(V={x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1})})}var Z=function(){return V||{x0:0,x1:o,y0:0,y1:s}},H=i;return d&&(H=H.transition().each("end",function(){var N=TLe.select(this);zA.setSliceCursor(N,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),H.each(function(N){N._x0=l(N.x0),N._x1=l(N.x1),N._y0=u(N.y0),N._y1=u(N.y1),N._hoverX=l(N.x1-x.tiling.pad),N._hoverY=u(g?N.y1-x.tiling.pad/2:N.y0+x.tiling.pad/2);var j=TLe.select(this),re=HD.ensureSingle(j,"path","surface",function(ke){ke.style("pointer-events",E?"none":"all")});d?re.transition().attrTween("d",function(ke){var me=_(ke,oX,Z(),[o,s],{orientation:x.tiling.orientation,flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1});return function(ie){return c(me(ie))}}):re.attr("d",c),j.call(jLt,n,t,r,{styleOne:SLe,eventDataKeys:aX.eventDataKeys,transitionTime:aX.CLICK_TRANSITION_TIME,transitionEasing:aX.CLICK_TRANSITION_EASING}).call(zA.setSliceCursor,t,{isTransitioning:t._transitioning}),re.call(SLe,N,x,t,{hovered:!1}),N.x0===N.x1||N.y0===N.y1?N._text="":N._text=WLt(N,n,x,r,A)||"";var oe=HD.ensureSingle(j,"g","slicetext"),_e=HD.ensureSingle(oe,"text","",function(ke){ke.attr("data-notex",1)}),Me=HD.ensureUniformFontSize(t,zA.determineTextFont(x,N,A.font));_e.text(N._text||" ").classed("slicetext",!0).attr("text-anchor",M?"end":k?"start":"middle").call(ALe.font,Me).call(GLt.convertToTspans,t),N.textBB=ALe.bBox(_e.node()),N.transform=f(N,{fontSize:Me.size}),N.transform.fontSize=Me.size,d?_e.transition().attrTween("transform",function(ke){var me=b(ke,oX,Z(),[o,s]);return function(ie){return h(me(ie))}}):_e.attr("transform",h(N))}),V}});var kLe=ye((Tpr,CLe)=>{"use strict";var XLt=JW(),ZLt=ELe();CLe.exports=function(t,r,n,i){return XLt(t,r,n,i,{type:"icicle",drawDescendants:ZLt})}});var PLe=ye((Apr,LLe)=>{"use strict";LLe.exports={moduleType:"trace",name:"icicle",basePlotModule:aLe(),categories:[],animatable:!0,attributes:eX(),layoutAttributes:tX(),supplyDefaults:hLe(),supplyLayoutDefaults:vLe(),calc:iX().calc,crossTraceCalc:iX().crossTraceCalc,plot:kLe(),style:nX().style,colorbar:$d(),meta:{}}});var RLe=ye((Spr,ILe)=>{"use strict";ILe.exports=PLe()});var FLe=ye(OA=>{"use strict";var DLe=Mc();OA.name="funnelarea";OA.plot=function(e,t,r,n){DLe.plotBasePlot(OA.name,e,t,r,n)};OA.clean=function(e,t,r,n){DLe.cleanBasePlot(OA.name,e,t,r,n)}});var sX=ye((Epr,zLe)=>{"use strict";var iv=A2(),YLt=Vl(),KLt=kc().attributes,JLt=Qo().hovertemplateAttrs,$Lt=Qo().texttemplateAttrs,q2=Ao().extendFlat;zLe.exports={labels:iv.labels,label0:iv.label0,dlabel:iv.dlabel,values:iv.values,marker:{colors:iv.marker.colors,line:{color:q2({},iv.marker.line.color,{dflt:null}),width:q2({},iv.marker.line.width,{dflt:1}),editType:"calc"},pattern:iv.marker.pattern,editType:"calc"},text:iv.text,hovertext:iv.hovertext,scalegroup:q2({},iv.scalegroup,{}),textinfo:q2({},iv.textinfo,{flags:["label","text","value","percent"]}),texttemplate:$Lt({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:q2({},YLt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:JLt({},{keys:["label","color","value","text","percent"]}),textposition:q2({},iv.textposition,{values:["inside","none"],dflt:"inside"}),textfont:iv.textfont,insidetextfont:iv.insidetextfont,title:{text:iv.title.text,font:iv.title.font,position:q2({},iv.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:KLt({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}});var lX=ye((Cpr,OLe)=>{"use strict";var QLt=fD().hiddenlabels;OLe.exports={hiddenlabels:QLt,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var NLe=ye((kpr,BLe)=>{"use strict";var qLe=Dr(),ePt=sX(),tPt=kc().defaults,rPt=r0().handleText,iPt=S2().handleLabelsAndValues,nPt=S2().handleMarkerDefaults;BLe.exports=function(t,r,n,i){function a(_,b){return qLe.coerce(t,r,ePt,_,b)}var o=a("labels"),s=a("values"),l=iPt(o,s),u=l.len;if(r._hasLabels=l.hasLabels,r._hasValues=l.hasValues,!r._hasLabels&&r._hasValues&&(a("label0"),a("dlabel")),!u){r.visible=!1;return}r._length=u,nPt(t,r,i,a),a("scalegroup");var c=a("text"),f=a("texttemplate"),h;if(f||(h=a("textinfo",Array.isArray(c)?"text+percent":"percent")),a("hovertext"),a("hovertemplate"),f||h&&h!=="none"){var d=a("textposition");rPt(t,r,i,a,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&a("textposition","none");tPt(r,i,a);var v=a("title.text");v&&(a("title.position"),qLe.coerceFont(a,"title.font",i.font)),a("aspectratio"),a("baseratio")}});var VLe=ye((Lpr,ULe)=>{"use strict";var aPt=Dr(),oPt=lX();ULe.exports=function(t,r){function n(i,a){return aPt.coerce(t,r,oPt,i,a)}n("hiddenlabels"),n("funnelareacolorway",r.colorway),n("extendfunnelareacolors")}});var uX=ye((Ppr,HLe)=>{"use strict";var GLe=_A();function sPt(e,t){return GLe.calc(e,t)}function lPt(e){GLe.crossTraceCalc(e,{type:"funnelarea"})}HLe.exports={calc:sPt,crossTraceCalc:lPt}});var YLe=ye((Ipr,ZLe)=>{"use strict";var B2=Oa(),cX=So(),J_=Dr(),uPt=J_.strScale,jLe=J_.strTranslate,WLe=iu(),cPt=i2(),fPt=cPt.toMoveInsideBar,XLe=_v(),hPt=XLe.recordMinTextSize,dPt=XLe.clearMinTextSize,vPt=u_(),qA=pD(),pPt=qA.attachFxHandlers,gPt=qA.determineInsideTextFont,mPt=qA.layoutAreas,yPt=qA.prerenderTitles,_Pt=qA.positionTitleOutside,xPt=qA.formatSliceLabel;ZLe.exports=function(t,r){var n=t._context.staticPlot,i=t._fullLayout;dPt("funnelarea",i),yPt(r,t),mPt(r,i._size),J_.makeTraceGroups(i._funnelarealayer,r,"trace").each(function(a){var o=B2.select(this),s=a[0],l=s.trace;wPt(a),o.each(function(){var u=B2.select(this).selectAll("g.slice").data(a);u.enter().append("g").classed("slice",!0),u.exit().remove(),u.each(function(f,h){if(f.hidden){B2.select(this).selectAll("path,g").remove();return}f.pointNumber=f.i,f.curveNumber=l.index;var d=s.cx,v=s.cy,_=B2.select(this),b=_.selectAll("path.surface").data([f]);b.enter().append("path").classed("surface",!0).style({"pointer-events":n?"none":"all"}),_.call(pPt,t,a);var p="M"+(d+f.TR[0])+","+(v+f.TR[1])+fX(f.TR,f.BR)+fX(f.BR,f.BL)+fX(f.BL,f.TL)+"Z";b.attr("d",p),xPt(t,f,s);var C=vPt.castOption(l.textposition,f.pts),E=_.selectAll("g.slicetext").data(f.text&&C!=="none"?[0]:[]);E.enter().append("g").classed("slicetext",!0),E.exit().remove(),E.each(function(){var A=J_.ensureSingle(B2.select(this),"text","",function(z){z.attr("data-notex",1)}),L=J_.ensureUniformFontSize(t,gPt(l,f,i.font));A.text(f.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(cX.font,L).call(WLe.convertToTspans,t);var x=cX.bBox(A.node()),k,M,g,P=Math.min(f.BL[1],f.BR[1])+v,T=Math.max(f.TL[1],f.TR[1])+v;M=Math.max(f.TL[0],f.BL[0])+d,g=Math.min(f.TR[0],f.BR[0])+d,k=fPt(M,g,P,T,x,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),k.fontSize=L.size,hPt(l.type,k,i),a[h].transform=k,J_.setTransormAndDisplay(A,k)})});var c=B2.select(this).selectAll("g.titletext").data(l.title.text?[0]:[]);c.enter().append("g").classed("titletext",!0),c.exit().remove(),c.each(function(){var f=J_.ensureSingle(B2.select(this),"text","",function(v){v.attr("data-notex",1)}),h=l.title.text;l._meta&&(h=J_.templateString(h,l._meta)),f.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(cX.font,l.title.font).call(WLe.convertToTspans,t);var d=_Pt(s,i._size);f.attr("transform",jLe(d.x,d.y)+uPt(Math.min(1,d.scale))+jLe(d.tx,d.ty))})})})};function fX(e,t){var r=t[0]-e[0],n=t[1]-e[1];return"l"+r+","+n}function bPt(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function wPt(e){if(!e.length)return;var t=e[0],r=t.trace,n=r.aspectratio,i=r.baseratio;i>.999&&(i=.999);var a=Math.pow(i,2),o=t.vTotal,s=o*a/(1-a),l=o,u=s/o;function c(){var O=Math.sqrt(u);return{x:O,y:-O}}function f(){var O=c();return[O.x,O.y]}var h,d=[];d.push(f());var v,_;for(v=e.length-1;v>-1;v--)if(_=e[v],!_.hidden){var b=_.v/l;u+=b,d.push(f())}var p=1/0,C=-1/0;for(v=0;v-1;v--)if(_=e[v],!_.hidden){P+=1;var T=d[P][0],z=d[P][1];_.TL=[-T,z],_.TR=[T,z],_.BL=M,_.BR=g,_.pxmid=bPt(_.TR,_.BR),M=_.TL,g=_.TR}}});var $Le=ye((Rpr,JLe)=>{"use strict";var KLe=Oa(),TPt=F3(),APt=_v().resizeText;JLe.exports=function(t){var r=t._fullLayout._funnelarealayer.selectAll(".trace");APt(t,r,"funnelarea"),r.each(function(n){var i=n[0],a=i.trace,o=KLe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){KLe.select(this).call(TPt,s,a,t)})})}});var ePe=ye((Dpr,QLe)=>{"use strict";QLe.exports={moduleType:"trace",name:"funnelarea",basePlotModule:FLe(),categories:["pie-like","funnelarea","showLegend"],attributes:sX(),layoutAttributes:lX(),supplyDefaults:NLe(),supplyLayoutDefaults:VLe(),calc:uX().calc,crossTraceCalc:uX().crossTraceCalc,plot:YLe(),style:$Le(),styleOne:F3(),meta:{}}});var rPe=ye((Fpr,tPe)=>{"use strict";tPe.exports=ePe()});var Od=ye((zpr,iPe)=>{(function(){var e={1964:function(i,a,o){i.exports={alpha_shape:o(3502),convex_hull:o(7352),delaunay_triangulate:o(7642),gl_cone3d:o(6405),gl_error3d:o(9165),gl_line3d:o(5714),gl_mesh3d:o(7201),gl_plot3d:o(4100),gl_scatter3d:o(8418),gl_streamtube3d:o(7815),gl_surface3d:o(9499),ndarray:o(9618),ndarray_linear_interpolate:o(4317)}},4793:function(i,a,o){"use strict";var s;function l(Ie,xe){if(!(Ie instanceof xe))throw new TypeError("Cannot call a class as a function")}function u(Ie,xe){for(var Ce=0;CeM)throw new RangeError('The value "'+Ie+'" is invalid for option "size"');var xe=new Uint8Array(Ie);return Object.setPrototypeOf(xe,T.prototype),xe}function T(Ie,xe,Ce){if(typeof Ie=="number"){if(typeof xe=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return G(Ie)}return z(Ie,xe,Ce)}T.poolSize=8192;function z(Ie,xe,Ce){if(typeof Ie=="string")return Z(Ie,xe);if(ArrayBuffer.isView(Ie))return N(Ie);if(Ie==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+A(Ie));if(Ge(Ie,ArrayBuffer)||Ie&&Ge(Ie.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ge(Ie,SharedArrayBuffer)||Ie&&Ge(Ie.buffer,SharedArrayBuffer)))return j(Ie,xe,Ce);if(typeof Ie=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var vt=Ie.valueOf&&Ie.valueOf();if(vt!=null&&vt!==Ie)return T.from(vt,xe,Ce);var nr=re(Ie);if(nr)return nr;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Ie[Symbol.toPrimitive]=="function")return T.from(Ie[Symbol.toPrimitive]("string"),xe,Ce);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+A(Ie))}T.from=function(Ie,xe,Ce){return z(Ie,xe,Ce)},Object.setPrototypeOf(T.prototype,Uint8Array.prototype),Object.setPrototypeOf(T,Uint8Array);function O(Ie){if(typeof Ie!="number")throw new TypeError('"size" argument must be of type number');if(Ie<0)throw new RangeError('The value "'+Ie+'" is invalid for option "size"')}function V(Ie,xe,Ce){return O(Ie),Ie<=0?P(Ie):xe!==void 0?typeof Ce=="string"?P(Ie).fill(xe,Ce):P(Ie).fill(xe):P(Ie)}T.alloc=function(Ie,xe,Ce){return V(Ie,xe,Ce)};function G(Ie){return O(Ie),P(Ie<0?0:oe(Ie)|0)}T.allocUnsafe=function(Ie){return G(Ie)},T.allocUnsafeSlow=function(Ie){return G(Ie)};function Z(Ie,xe){if((typeof xe!="string"||xe==="")&&(xe="utf8"),!T.isEncoding(xe))throw new TypeError("Unknown encoding: "+xe);var Ce=Me(Ie,xe)|0,vt=P(Ce),nr=vt.write(Ie,xe);return nr!==Ce&&(vt=vt.slice(0,nr)),vt}function H(Ie){for(var xe=Ie.length<0?0:oe(Ie.length)|0,Ce=P(xe),vt=0;vt=M)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+M.toString(16)+" bytes");return Ie|0}function _e(Ie){return+Ie!=Ie&&(Ie=0),T.alloc(+Ie)}T.isBuffer=function(xe){return xe!=null&&xe._isBuffer===!0&&xe!==T.prototype},T.compare=function(xe,Ce){if(Ge(xe,Uint8Array)&&(xe=T.from(xe,xe.offset,xe.byteLength)),Ge(Ce,Uint8Array)&&(Ce=T.from(Ce,Ce.offset,Ce.byteLength)),!T.isBuffer(xe)||!T.isBuffer(Ce))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(xe===Ce)return 0;for(var vt=xe.length,nr=Ce.length,ir=0,pr=Math.min(vt,nr);irnr.length?(T.isBuffer(pr)||(pr=T.from(pr)),pr.copy(nr,ir)):Uint8Array.prototype.set.call(nr,pr,ir);else if(T.isBuffer(pr))pr.copy(nr,ir);else throw new TypeError('"list" argument must be an Array of Buffers');ir+=pr.length}return nr};function Me(Ie,xe){if(T.isBuffer(Ie))return Ie.length;if(ArrayBuffer.isView(Ie)||Ge(Ie,ArrayBuffer))return Ie.byteLength;if(typeof Ie!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+A(Ie));var Ce=Ie.length,vt=arguments.length>2&&arguments[2]===!0;if(!vt&&Ce===0)return 0;for(var nr=!1;;)switch(xe){case"ascii":case"latin1":case"binary":return Ce;case"utf8":case"utf-8":return Rr(Ie).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ce*2;case"hex":return Ce>>>1;case"base64":return Ur(Ie).length;default:if(nr)return vt?-1:Rr(Ie).length;xe=(""+xe).toLowerCase(),nr=!0}}T.byteLength=Me;function ke(Ie,xe,Ce){var vt=!1;if((xe===void 0||xe<0)&&(xe=0),xe>this.length||((Ce===void 0||Ce>this.length)&&(Ce=this.length),Ce<=0)||(Ce>>>=0,xe>>>=0,Ce<=xe))return"";for(Ie||(Ie="utf8");;)switch(Ie){case"hex":return st(this,xe,Ce);case"utf8":case"utf-8":return ce(this,xe,Ce);case"ascii":return pt(this,xe,Ce);case"latin1":case"binary":return Wt(this,xe,Ce);case"base64":return Fe(this,xe,Ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lt(this,xe,Ce);default:if(vt)throw new TypeError("Unknown encoding: "+Ie);Ie=(Ie+"").toLowerCase(),vt=!0}}T.prototype._isBuffer=!0;function me(Ie,xe,Ce){var vt=Ie[xe];Ie[xe]=Ie[Ce],Ie[Ce]=vt}T.prototype.swap16=function(){var xe=this.length;if(xe%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ce=0;CeCe&&(xe+=" ... "),""},k&&(T.prototype[k]=T.prototype.inspect),T.prototype.compare=function(xe,Ce,vt,nr,ir){if(Ge(xe,Uint8Array)&&(xe=T.from(xe,xe.offset,xe.byteLength)),!T.isBuffer(xe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+A(xe));if(Ce===void 0&&(Ce=0),vt===void 0&&(vt=xe?xe.length:0),nr===void 0&&(nr=0),ir===void 0&&(ir=this.length),Ce<0||vt>xe.length||nr<0||ir>this.length)throw new RangeError("out of range index");if(nr>=ir&&Ce>=vt)return 0;if(nr>=ir)return-1;if(Ce>=vt)return 1;if(Ce>>>=0,vt>>>=0,nr>>>=0,ir>>>=0,this===xe)return 0;for(var pr=ir-nr,oi=vt-Ce,di=Math.min(pr,oi),Jr=this.slice(nr,ir),fi=xe.slice(Ce,vt),Hi=0;Hi2147483647?Ce=2147483647:Ce<-2147483648&&(Ce=-2147483648),Ce=+Ce,Je(Ce)&&(Ce=nr?0:Ie.length-1),Ce<0&&(Ce=Ie.length+Ce),Ce>=Ie.length){if(nr)return-1;Ce=Ie.length-1}else if(Ce<0)if(nr)Ce=0;else return-1;if(typeof xe=="string"&&(xe=T.from(xe,vt)),T.isBuffer(xe))return xe.length===0?-1:Se(Ie,xe,Ce,vt,nr);if(typeof xe=="number")return xe=xe&255,typeof Uint8Array.prototype.indexOf=="function"?nr?Uint8Array.prototype.indexOf.call(Ie,xe,Ce):Uint8Array.prototype.lastIndexOf.call(Ie,xe,Ce):Se(Ie,[xe],Ce,vt,nr);throw new TypeError("val must be string, number or Buffer")}function Se(Ie,xe,Ce,vt,nr){var ir=1,pr=Ie.length,oi=xe.length;if(vt!==void 0&&(vt=String(vt).toLowerCase(),vt==="ucs2"||vt==="ucs-2"||vt==="utf16le"||vt==="utf-16le")){if(Ie.length<2||xe.length<2)return-1;ir=2,pr/=2,oi/=2,Ce/=2}function di(wn,pn){return ir===1?wn[pn]:wn.readUInt16BE(pn*ir)}var Jr;if(nr){var fi=-1;for(Jr=Ce;Jrpr&&(Ce=pr-oi),Jr=Ce;Jr>=0;Jr--){for(var Hi=!0,Pn=0;Pnnr&&(vt=nr)):vt=nr;var ir=xe.length;vt>ir/2&&(vt=ir/2);var pr;for(pr=0;pr>>0,isFinite(vt)?(vt=vt>>>0,nr===void 0&&(nr="utf8")):(nr=vt,vt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ir=this.length-Ce;if((vt===void 0||vt>ir)&&(vt=ir),xe.length>0&&(vt<0||Ce<0)||Ce>this.length)throw new RangeError("Attempt to write outside buffer bounds");nr||(nr="utf8");for(var pr=!1;;)switch(nr){case"hex":return Le(this,xe,Ce,vt);case"utf8":case"utf-8":return Ae(this,xe,Ce,vt);case"ascii":case"latin1":case"binary":return De(this,xe,Ce,vt);case"base64":return Pe(this,xe,Ce,vt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ge(this,xe,Ce,vt);default:if(pr)throw new TypeError("Unknown encoding: "+nr);nr=(""+nr).toLowerCase(),pr=!0}},T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Fe(Ie,xe,Ce){return xe===0&&Ce===Ie.length?L.fromByteArray(Ie):L.fromByteArray(Ie.slice(xe,Ce))}function ce(Ie,xe,Ce){Ce=Math.min(Ie.length,Ce);for(var vt=[],nr=xe;nr239?4:ir>223?3:ir>191?2:1;if(nr+oi<=Ce){var di=void 0,Jr=void 0,fi=void 0,Hi=void 0;switch(oi){case 1:ir<128&&(pr=ir);break;case 2:di=Ie[nr+1],(di&192)===128&&(Hi=(ir&31)<<6|di&63,Hi>127&&(pr=Hi));break;case 3:di=Ie[nr+1],Jr=Ie[nr+2],(di&192)===128&&(Jr&192)===128&&(Hi=(ir&15)<<12|(di&63)<<6|Jr&63,Hi>2047&&(Hi<55296||Hi>57343)&&(pr=Hi));break;case 4:di=Ie[nr+1],Jr=Ie[nr+2],fi=Ie[nr+3],(di&192)===128&&(Jr&192)===128&&(fi&192)===128&&(Hi=(ir&15)<<18|(di&63)<<12|(Jr&63)<<6|fi&63,Hi>65535&&Hi<1114112&&(pr=Hi))}}pr===null?(pr=65533,oi=1):pr>65535&&(pr-=65536,vt.push(pr>>>10&1023|55296),pr=56320|pr&1023),vt.push(pr),nr+=oi}return ct(vt)}var Ye=4096;function ct(Ie){var xe=Ie.length;if(xe<=Ye)return String.fromCharCode.apply(String,Ie);for(var Ce="",vt=0;vtvt)&&(Ce=vt);for(var nr="",ir=xe;irvt&&(xe=vt),Ce<0?(Ce+=vt,Ce<0&&(Ce=0)):Ce>vt&&(Ce=vt),CeCe)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function(xe,Ce,vt){xe=xe>>>0,Ce=Ce>>>0,vt||Gt(xe,Ce,this.length);for(var nr=this[xe],ir=1,pr=0;++pr>>0,Ce=Ce>>>0,vt||Gt(xe,Ce,this.length);for(var nr=this[xe+--Ce],ir=1;Ce>0&&(ir*=256);)nr+=this[xe+--Ce]*ir;return nr},T.prototype.readUint8=T.prototype.readUInt8=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,1,this.length),this[xe]},T.prototype.readUint16LE=T.prototype.readUInt16LE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,2,this.length),this[xe]|this[xe+1]<<8},T.prototype.readUint16BE=T.prototype.readUInt16BE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,2,this.length),this[xe]<<8|this[xe+1]},T.prototype.readUint32LE=T.prototype.readUInt32LE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),(this[xe]|this[xe+1]<<8|this[xe+2]<<16)+this[xe+3]*16777216},T.prototype.readUint32BE=T.prototype.readUInt32BE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),this[xe]*16777216+(this[xe+1]<<16|this[xe+2]<<8|this[xe+3])},T.prototype.readBigUInt64LE=$e(function(xe){xe=xe>>>0,yt(xe,"offset");var Ce=this[xe],vt=this[xe+7];(Ce===void 0||vt===void 0)&&Yt(xe,this.length-8);var nr=Ce+this[++xe]*Math.pow(2,8)+this[++xe]*Math.pow(2,16)+this[++xe]*Math.pow(2,24),ir=this[++xe]+this[++xe]*Math.pow(2,8)+this[++xe]*Math.pow(2,16)+vt*Math.pow(2,24);return BigInt(nr)+(BigInt(ir)<>>0,yt(xe,"offset");var Ce=this[xe],vt=this[xe+7];(Ce===void 0||vt===void 0)&&Yt(xe,this.length-8);var nr=Ce*Math.pow(2,24)+this[++xe]*Math.pow(2,16)+this[++xe]*Math.pow(2,8)+this[++xe],ir=this[++xe]*Math.pow(2,24)+this[++xe]*Math.pow(2,16)+this[++xe]*Math.pow(2,8)+vt;return(BigInt(nr)<>>0,Ce=Ce>>>0,vt||Gt(xe,Ce,this.length);for(var nr=this[xe],ir=1,pr=0;++pr=ir&&(nr-=Math.pow(2,8*Ce)),nr},T.prototype.readIntBE=function(xe,Ce,vt){xe=xe>>>0,Ce=Ce>>>0,vt||Gt(xe,Ce,this.length);for(var nr=Ce,ir=1,pr=this[xe+--nr];nr>0&&(ir*=256);)pr+=this[xe+--nr]*ir;return ir*=128,pr>=ir&&(pr-=Math.pow(2,8*Ce)),pr},T.prototype.readInt8=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,1,this.length),this[xe]&128?(255-this[xe]+1)*-1:this[xe]},T.prototype.readInt16LE=function(xe,Ce){xe=xe>>>0,Ce||Gt(xe,2,this.length);var vt=this[xe]|this[xe+1]<<8;return vt&32768?vt|4294901760:vt},T.prototype.readInt16BE=function(xe,Ce){xe=xe>>>0,Ce||Gt(xe,2,this.length);var vt=this[xe+1]|this[xe]<<8;return vt&32768?vt|4294901760:vt},T.prototype.readInt32LE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),this[xe]|this[xe+1]<<8|this[xe+2]<<16|this[xe+3]<<24},T.prototype.readInt32BE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),this[xe]<<24|this[xe+1]<<16|this[xe+2]<<8|this[xe+3]},T.prototype.readBigInt64LE=$e(function(xe){xe=xe>>>0,yt(xe,"offset");var Ce=this[xe],vt=this[xe+7];(Ce===void 0||vt===void 0)&&Yt(xe,this.length-8);var nr=this[xe+4]+this[xe+5]*Math.pow(2,8)+this[xe+6]*Math.pow(2,16)+(vt<<24);return(BigInt(nr)<>>0,yt(xe,"offset");var Ce=this[xe],vt=this[xe+7];(Ce===void 0||vt===void 0)&&Yt(xe,this.length-8);var nr=(Ce<<24)+this[++xe]*Math.pow(2,16)+this[++xe]*Math.pow(2,8)+this[++xe];return(BigInt(nr)<>>0,Ce||Gt(xe,4,this.length),x.read(this,xe,!0,23,4)},T.prototype.readFloatBE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),x.read(this,xe,!1,23,4)},T.prototype.readDoubleLE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,8,this.length),x.read(this,xe,!0,52,8)},T.prototype.readDoubleBE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,8,this.length),x.read(this,xe,!1,52,8)};function Nt(Ie,xe,Ce,vt,nr,ir){if(!T.isBuffer(Ie))throw new TypeError('"buffer" argument must be a Buffer instance');if(xe>nr||xeIe.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function(xe,Ce,vt,nr){if(xe=+xe,Ce=Ce>>>0,vt=vt>>>0,!nr){var ir=Math.pow(2,8*vt)-1;Nt(this,xe,Ce,vt,ir,0)}var pr=1,oi=0;for(this[Ce]=xe&255;++oi>>0,vt=vt>>>0,!nr){var ir=Math.pow(2,8*vt)-1;Nt(this,xe,Ce,vt,ir,0)}var pr=vt-1,oi=1;for(this[Ce+pr]=xe&255;--pr>=0&&(oi*=256);)this[Ce+pr]=xe/oi&255;return Ce+vt},T.prototype.writeUint8=T.prototype.writeUInt8=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,1,255,0),this[Ce]=xe&255,Ce+1},T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,2,65535,0),this[Ce]=xe&255,this[Ce+1]=xe>>>8,Ce+2},T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,2,65535,0),this[Ce]=xe>>>8,this[Ce+1]=xe&255,Ce+2},T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,4,4294967295,0),this[Ce+3]=xe>>>24,this[Ce+2]=xe>>>16,this[Ce+1]=xe>>>8,this[Ce]=xe&255,Ce+4},T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,4,4294967295,0),this[Ce]=xe>>>24,this[Ce+1]=xe>>>16,this[Ce+2]=xe>>>8,this[Ce+3]=xe&255,Ce+4};function $t(Ie,xe,Ce,vt,nr){bt(xe,vt,nr,Ie,Ce,7);var ir=Number(xe&BigInt(4294967295));Ie[Ce++]=ir,ir=ir>>8,Ie[Ce++]=ir,ir=ir>>8,Ie[Ce++]=ir,ir=ir>>8,Ie[Ce++]=ir;var pr=Number(xe>>BigInt(32)&BigInt(4294967295));return Ie[Ce++]=pr,pr=pr>>8,Ie[Ce++]=pr,pr=pr>>8,Ie[Ce++]=pr,pr=pr>>8,Ie[Ce++]=pr,Ce}function sr(Ie,xe,Ce,vt,nr){bt(xe,vt,nr,Ie,Ce,7);var ir=Number(xe&BigInt(4294967295));Ie[Ce+7]=ir,ir=ir>>8,Ie[Ce+6]=ir,ir=ir>>8,Ie[Ce+5]=ir,ir=ir>>8,Ie[Ce+4]=ir;var pr=Number(xe>>BigInt(32)&BigInt(4294967295));return Ie[Ce+3]=pr,pr=pr>>8,Ie[Ce+2]=pr,pr=pr>>8,Ie[Ce+1]=pr,pr=pr>>8,Ie[Ce]=pr,Ce+8}T.prototype.writeBigUInt64LE=$e(function(xe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return $t(this,xe,Ce,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeBigUInt64BE=$e(function(xe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return sr(this,xe,Ce,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeIntLE=function(xe,Ce,vt,nr){if(xe=+xe,Ce=Ce>>>0,!nr){var ir=Math.pow(2,8*vt-1);Nt(this,xe,Ce,vt,ir-1,-ir)}var pr=0,oi=1,di=0;for(this[Ce]=xe&255;++pr>0)-di&255;return Ce+vt},T.prototype.writeIntBE=function(xe,Ce,vt,nr){if(xe=+xe,Ce=Ce>>>0,!nr){var ir=Math.pow(2,8*vt-1);Nt(this,xe,Ce,vt,ir-1,-ir)}var pr=vt-1,oi=1,di=0;for(this[Ce+pr]=xe&255;--pr>=0&&(oi*=256);)xe<0&&di===0&&this[Ce+pr+1]!==0&&(di=1),this[Ce+pr]=(xe/oi>>0)-di&255;return Ce+vt},T.prototype.writeInt8=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,1,127,-128),xe<0&&(xe=255+xe+1),this[Ce]=xe&255,Ce+1},T.prototype.writeInt16LE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,2,32767,-32768),this[Ce]=xe&255,this[Ce+1]=xe>>>8,Ce+2},T.prototype.writeInt16BE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,2,32767,-32768),this[Ce]=xe>>>8,this[Ce+1]=xe&255,Ce+2},T.prototype.writeInt32LE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,4,2147483647,-2147483648),this[Ce]=xe&255,this[Ce+1]=xe>>>8,this[Ce+2]=xe>>>16,this[Ce+3]=xe>>>24,Ce+4},T.prototype.writeInt32BE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,4,2147483647,-2147483648),xe<0&&(xe=4294967295+xe+1),this[Ce]=xe>>>24,this[Ce+1]=xe>>>16,this[Ce+2]=xe>>>8,this[Ce+3]=xe&255,Ce+4},T.prototype.writeBigInt64LE=$e(function(xe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return $t(this,xe,Ce,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),T.prototype.writeBigInt64BE=$e(function(xe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return sr(this,xe,Ce,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function wr(Ie,xe,Ce,vt,nr,ir){if(Ce+vt>Ie.length)throw new RangeError("Index out of range");if(Ce<0)throw new RangeError("Index out of range")}function ur(Ie,xe,Ce,vt,nr){return xe=+xe,Ce=Ce>>>0,nr||wr(Ie,xe,Ce,4,34028234663852886e22,-34028234663852886e22),x.write(Ie,xe,Ce,vt,23,4),Ce+4}T.prototype.writeFloatLE=function(xe,Ce,vt){return ur(this,xe,Ce,!0,vt)},T.prototype.writeFloatBE=function(xe,Ce,vt){return ur(this,xe,Ce,!1,vt)};function Qe(Ie,xe,Ce,vt,nr){return xe=+xe,Ce=Ce>>>0,nr||wr(Ie,xe,Ce,8,17976931348623157e292,-17976931348623157e292),x.write(Ie,xe,Ce,vt,52,8),Ce+8}T.prototype.writeDoubleLE=function(xe,Ce,vt){return Qe(this,xe,Ce,!0,vt)},T.prototype.writeDoubleBE=function(xe,Ce,vt){return Qe(this,xe,Ce,!1,vt)},T.prototype.copy=function(xe,Ce,vt,nr){if(!T.isBuffer(xe))throw new TypeError("argument should be a Buffer");if(vt||(vt=0),!nr&&nr!==0&&(nr=this.length),Ce>=xe.length&&(Ce=xe.length),Ce||(Ce=0),nr>0&&nr=this.length)throw new RangeError("Index out of range");if(nr<0)throw new RangeError("sourceEnd out of bounds");nr>this.length&&(nr=this.length),xe.length-Ce>>0,vt=vt===void 0?this.length:vt>>>0,xe||(xe=0);var pr;if(typeof xe=="number")for(pr=Ce;prMath.pow(2,32)?nr=Ut(String(Ce)):typeof Ce=="bigint"&&(nr=String(Ce),(Ce>Math.pow(BigInt(2),BigInt(32))||Ce<-Math.pow(BigInt(2),BigInt(32)))&&(nr=Ut(nr)),nr+="n"),vt+=" It must be ".concat(xe,". Received ").concat(nr),vt},RangeError);function Ut(Ie){for(var xe="",Ce=Ie.length,vt=Ie[0]==="-"?1:0;Ce>=vt+4;Ce-=3)xe="_".concat(Ie.slice(Ce-3,Ce)).concat(xe);return"".concat(Ie.slice(0,Ce)).concat(xe)}function Ft(Ie,xe,Ce){yt(xe,"offset"),(Ie[xe]===void 0||Ie[xe+Ce]===void 0)&&Yt(xe,Ie.length-(Ce+1))}function bt(Ie,xe,Ce,vt,nr,ir){if(Ie>Ce||Ie3?xe===0||xe===BigInt(0)?oi=">= 0".concat(pr," and < 2").concat(pr," ** ").concat((ir+1)*8).concat(pr):oi=">= -(2".concat(pr," ** ").concat((ir+1)*8-1).concat(pr,") and < 2 ** ")+"".concat((ir+1)*8-1).concat(pr):oi=">= ".concat(xe).concat(pr," and <= ").concat(Ce).concat(pr),new Et.ERR_OUT_OF_RANGE("value",oi,Ie)}Ft(vt,nr,ir)}function yt(Ie,xe){if(typeof Ie!="number")throw new Et.ERR_INVALID_ARG_TYPE(xe,"number",Ie)}function Yt(Ie,xe,Ce){throw Math.floor(Ie)!==Ie?(yt(Ie,Ce),new Et.ERR_OUT_OF_RANGE(Ce||"offset","an integer",Ie)):xe<0?new Et.ERR_BUFFER_OUT_OF_BOUNDS:new Et.ERR_OUT_OF_RANGE(Ce||"offset",">= ".concat(Ce?1:0," and <= ").concat(xe),Ie)}var lr=/[^+/0-9A-Za-z-_]/g;function Tr(Ie){if(Ie=Ie.split("=")[0],Ie=Ie.trim().replace(lr,""),Ie.length<2)return"";for(;Ie.length%4!==0;)Ie=Ie+"=";return Ie}function Rr(Ie,xe){xe=xe||1/0;for(var Ce,vt=Ie.length,nr=null,ir=[],pr=0;pr55295&&Ce<57344){if(!nr){if(Ce>56319){(xe-=3)>-1&&ir.push(239,191,189);continue}else if(pr+1===vt){(xe-=3)>-1&&ir.push(239,191,189);continue}nr=Ce;continue}if(Ce<56320){(xe-=3)>-1&&ir.push(239,191,189),nr=Ce;continue}Ce=(nr-55296<<10|Ce-56320)+65536}else nr&&(xe-=3)>-1&&ir.push(239,191,189);if(nr=null,Ce<128){if((xe-=1)<0)break;ir.push(Ce)}else if(Ce<2048){if((xe-=2)<0)break;ir.push(Ce>>6|192,Ce&63|128)}else if(Ce<65536){if((xe-=3)<0)break;ir.push(Ce>>12|224,Ce>>6&63|128,Ce&63|128)}else if(Ce<1114112){if((xe-=4)<0)break;ir.push(Ce>>18|240,Ce>>12&63|128,Ce>>6&63|128,Ce&63|128)}else throw new Error("Invalid code point")}return ir}function ei(Ie){for(var xe=[],Ce=0;Ce>8,nr=Ce%256,ir.push(nr),ir.push(vt);return ir}function Ur(Ie){return L.toByteArray(Tr(Ie))}function dt(Ie,xe,Ce,vt){var nr;for(nr=0;nr=xe.length||nr>=Ie.length);++nr)xe[nr+Ce]=Ie[nr];return nr}function Ge(Ie,xe){return Ie instanceof xe||Ie!=null&&Ie.constructor!=null&&Ie.constructor.name!=null&&Ie.constructor.name===xe.name}function Je(Ie){return Ie!==Ie}var je=function(){for(var Ie="0123456789abcdef",xe=new Array(256),Ce=0;Ce<16;++Ce)for(var vt=Ce*16,nr=0;nr<16;++nr)xe[vt+nr]=Ie[Ce]+Ie[nr];return xe}();function $e(Ie){return typeof BigInt=="undefined"?wt:Ie}function wt(){throw new Error("BigInt not supported")}},9216:function(i){"use strict";i.exports=l,i.exports.isMobile=l,i.exports.default=l;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,o=/CrOS/,s=/android|ipad|playbook|silk/i;function l(u){u||(u={});var c=u.ua;if(!c&&typeof navigator!="undefined"&&(c=navigator.userAgent),c&&c.headers&&typeof c.headers["user-agent"]=="string"&&(c=c.headers["user-agent"]),typeof c!="string")return!1;var f=a.test(c)&&!o.test(c)||!!u.tablet&&s.test(c);return!f&&u.tablet&&u.featureDetect&&navigator&&navigator.maxTouchPoints>1&&c.indexOf("Macintosh")!==-1&&c.indexOf("Safari")!==-1&&(f=!0),f}},6296:function(i,a,o){"use strict";i.exports=h;var s=o(7261),l=o(9977),u=o(1811);function c(d,v){this._controllerNames=Object.keys(d),this._controllerList=this._controllerNames.map(function(_){return d[_]}),this._mode=v,this._active=d[v],this._active||(this._mode="turntable",this._active=d.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var f=c.prototype;f.flush=function(d){for(var v=this._controllerList,_=0;_0)throw new Error("Invalid string. Length must be a multiple of 4");var L=E.indexOf("=");L===-1&&(L=A);var x=L===A?0:4-L%4;return[L,x]}function d(E){var A=h(E),L=A[0],x=A[1];return(L+x)*3/4-x}function v(E,A,L){return(A+L)*3/4-L}function _(E){var A,L=h(E),x=L[0],k=L[1],M=new l(v(E,x,k)),g=0,P=k>0?x-4:x,T;for(T=0;T>16&255,M[g++]=A>>8&255,M[g++]=A&255;return k===2&&(A=s[E.charCodeAt(T)]<<2|s[E.charCodeAt(T+1)]>>4,M[g++]=A&255),k===1&&(A=s[E.charCodeAt(T)]<<10|s[E.charCodeAt(T+1)]<<4|s[E.charCodeAt(T+2)]>>2,M[g++]=A>>8&255,M[g++]=A&255),M}function b(E){return o[E>>18&63]+o[E>>12&63]+o[E>>6&63]+o[E&63]}function p(E,A,L){for(var x,k=[],M=A;MP?P:g+M));return x===1?(A=E[L-1],k.push(o[A>>2]+o[A<<4&63]+"==")):x===2&&(A=(E[L-2]<<8)+E[L-1],k.push(o[A>>10]+o[A>>4&63]+o[A<<2&63]+"=")),k.join("")}},3865:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[1]).add(c[0].mul(u[1])),u[1].mul(c[1]))}},1318:function(i){"use strict";i.exports=a;function a(o,s){return o[0].mul(s[1]).cmp(s[0].mul(o[1]))}},8697:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[1]),u[1].mul(c[0]))}},7842:function(i,a,o){"use strict";var s=o(6330),l=o(1533),u=o(2651),c=o(6768),f=o(869),h=o(8697);i.exports=d;function d(v,_){if(s(v))return _?h(v,d(_)):[v[0].clone(),v[1].clone()];var b=0,p,C;if(l(v))p=v.clone();else if(typeof v=="string")p=c(v);else{if(v===0)return[u(0),u(1)];if(v===Math.floor(v))p=u(v);else{for(;v!==Math.floor(v);)v=v*Math.pow(2,256),b-=256;p=u(v)}}if(s(_))p.mul(_[1]),C=_[0].clone();else if(l(_))C=_.clone();else if(typeof _=="string")C=c(_);else if(!_)C=u(1);else if(_===Math.floor(_))C=u(_);else{for(;_!==Math.floor(_);)_=_*Math.pow(2,256),b+=256;C=u(_)}return b>0?p=p.ushln(b):b<0&&(C=C.ushln(-b)),f(p,C)}},6330:function(i,a,o){"use strict";var s=o(1533);i.exports=l;function l(u){return Array.isArray(u)&&u.length===2&&s(u[0])&&s(u[1])}},5716:function(i,a,o){"use strict";var s=o(6859);i.exports=l;function l(u){return u.cmp(new s(0))}},1369:function(i,a,o){"use strict";var s=o(5716);i.exports=l;function l(u){var c=u.length,f=u.words,h=0;if(c===1)h=f[0];else if(c===2)h=f[0]+f[1]*67108864;else for(var d=0;d20?52:h+32}},1533:function(i,a,o){"use strict";var s=o(6859);i.exports=l;function l(u){return u&&typeof u=="object"&&!!u.words}},2651:function(i,a,o){"use strict";var s=o(6859),l=o(2361);i.exports=u;function u(c){var f=l.exponent(c);return f<52?new s(c):new s(c*Math.pow(2,52-f)).ushln(f-52)}},869:function(i,a,o){"use strict";var s=o(2651),l=o(5716);i.exports=u;function u(c,f){var h=l(c),d=l(f);if(h===0)return[s(0),s(1)];if(d===0)return[s(0),s(0)];d<0&&(c=c.neg(),f=f.neg());var v=c.gcd(f);return v.cmpn(1)?[c.div(v),f.div(v)]:[c,f]}},6768:function(i,a,o){"use strict";var s=o(6859);i.exports=l;function l(u){return new s(u)}},6504:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[0]),u[1].mul(c[1]))}},7721:function(i,a,o){"use strict";var s=o(5716);i.exports=l;function l(u){return s(u[0])*s(u[1])}},5572:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[1]).sub(u[1].mul(c[0])),u[1].mul(c[1]))}},946:function(i,a,o){"use strict";var s=o(1369),l=o(4025);i.exports=u;function u(c){var f=c[0],h=c[1];if(f.cmpn(0)===0)return 0;var d=f.abs().divmod(h.abs()),v=d.div,_=s(v),b=d.mod,p=f.negative!==h.negative?-1:1;if(b.cmpn(0)===0)return p*_;if(_){var C=l(_)+4,E=s(b.ushln(C).divRound(h));return p*(_+E*Math.pow(2,-C))}else{var A=h.bitLength()-b.bitLength()+53,E=s(b.ushln(A).divRound(h));return A<1023?p*E*Math.pow(2,-A):(E*=Math.pow(2,-1023),p*E*Math.pow(2,1023-A))}}},2478:function(i){"use strict";function a(f,h,d,v,_){for(var b=_+1;v<=_;){var p=v+_>>>1,C=f[p],E=d!==void 0?d(C,h):C-h;E>=0?(b=p,_=p-1):v=p+1}return b}function o(f,h,d,v,_){for(var b=_+1;v<=_;){var p=v+_>>>1,C=f[p],E=d!==void 0?d(C,h):C-h;E>0?(b=p,_=p-1):v=p+1}return b}function s(f,h,d,v,_){for(var b=v-1;v<=_;){var p=v+_>>>1,C=f[p],E=d!==void 0?d(C,h):C-h;E<0?(b=p,v=p+1):_=p-1}return b}function l(f,h,d,v,_){for(var b=v-1;v<=_;){var p=v+_>>>1,C=f[p],E=d!==void 0?d(C,h):C-h;E<=0?(b=p,v=p+1):_=p-1}return b}function u(f,h,d,v,_){for(;v<=_;){var b=v+_>>>1,p=f[b],C=d!==void 0?d(p,h):p-h;if(C===0)return b;C<=0?v=b+1:_=b-1}return-1}function c(f,h,d,v,_,b){return typeof d=="function"?b(f,h,d,v===void 0?0:v|0,_===void 0?f.length-1:_|0):b(f,h,void 0,d===void 0?0:d|0,v===void 0?f.length-1:v|0)}i.exports={ge:function(f,h,d,v,_){return c(f,h,d,v,_,a)},gt:function(f,h,d,v,_){return c(f,h,d,v,_,o)},lt:function(f,h,d,v,_){return c(f,h,d,v,_,s)},le:function(f,h,d,v,_){return c(f,h,d,v,_,l)},eq:function(f,h,d,v,_){return c(f,h,d,v,_,u)}}},8828:function(i,a){"use strict";"use restrict";var o=32;a.INT_BITS=o,a.INT_MAX=2147483647,a.INT_MIN=-1<0)-(u<0)},a.abs=function(u){var c=u>>o-1;return(u^c)-c},a.min=function(u,c){return c^(u^c)&-(u65535)<<4,u>>>=c,f=(u>255)<<3,u>>>=f,c|=f,f=(u>15)<<2,u>>>=f,c|=f,f=(u>3)<<1,u>>>=f,c|=f,c|u>>1},a.log10=function(u){return u>=1e9?9:u>=1e8?8:u>=1e7?7:u>=1e6?6:u>=1e5?5:u>=1e4?4:u>=1e3?3:u>=100?2:u>=10?1:0},a.popCount=function(u){return u=u-(u>>>1&1431655765),u=(u&858993459)+(u>>>2&858993459),(u+(u>>>4)&252645135)*16843009>>>24};function s(u){var c=32;return u&=-u,u&&c--,u&65535&&(c-=16),u&16711935&&(c-=8),u&252645135&&(c-=4),u&858993459&&(c-=2),u&1431655765&&(c-=1),c}a.countTrailingZeros=s,a.nextPow2=function(u){return u+=u===0,--u,u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u+1},a.prevPow2=function(u){return u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u-(u>>>1)},a.parity=function(u){return u^=u>>>16,u^=u>>>8,u^=u>>>4,u&=15,27030>>>u&1};var l=new Array(256);(function(u){for(var c=0;c<256;++c){var f=c,h=c,d=7;for(f>>>=1;f;f>>>=1)h<<=1,h|=f&1,--d;u[c]=h<>>8&255]<<16|l[u>>>16&255]<<8|l[u>>>24&255]},a.interleave2=function(u,c){return u&=65535,u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,c&=65535,c=(c|c<<8)&16711935,c=(c|c<<4)&252645135,c=(c|c<<2)&858993459,c=(c|c<<1)&1431655765,u|c<<1},a.deinterleave2=function(u,c){return u=u>>>c&1431655765,u=(u|u>>>1)&858993459,u=(u|u>>>2)&252645135,u=(u|u>>>4)&16711935,u=(u|u>>>16)&65535,u<<16>>16},a.interleave3=function(u,c,f){return u&=1023,u=(u|u<<16)&4278190335,u=(u|u<<8)&251719695,u=(u|u<<4)&3272356035,u=(u|u<<2)&1227133513,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,u|=c<<1,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,u|f<<2},a.deinterleave3=function(u,c){return u=u>>>c&1227133513,u=(u|u>>>2)&3272356035,u=(u|u>>>4)&251719695,u=(u|u>>>8)&4278190335,u=(u|u>>>16)&1023,u<<22>>22},a.nextCombination=function(u){var c=u|u-1;return c+1|(~c&-~c)-1>>>s(u)+1}},6859:function(i,a,o){i=o.nmd(i),function(s,l){"use strict";function u(H,N){if(!H)throw new Error(N||"Assertion failed")}function c(H,N){H.super_=N;var j=function(){};j.prototype=N.prototype,H.prototype=new j,H.prototype.constructor=H}function f(H,N,j){if(f.isBN(H))return H;this.negative=0,this.words=null,this.length=0,this.red=null,H!==null&&((N==="le"||N==="be")&&(j=N,N=10),this._init(H||0,N||10,j||"be"))}typeof s=="object"?s.exports=f:l.BN=f,f.BN=f,f.wordSize=26;var h;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?h=window.Buffer:h=o(7790).Buffer}catch(H){}f.isBN=function(N){return N instanceof f?!0:N!==null&&typeof N=="object"&&N.constructor.wordSize===f.wordSize&&Array.isArray(N.words)},f.max=function(N,j){return N.cmp(j)>0?N:j},f.min=function(N,j){return N.cmp(j)<0?N:j},f.prototype._init=function(N,j,re){if(typeof N=="number")return this._initNumber(N,j,re);if(typeof N=="object")return this._initArray(N,j,re);j==="hex"&&(j=16),u(j===(j|0)&&j>=2&&j<=36),N=N.toString().replace(/\s+/g,"");var oe=0;N[0]==="-"&&(oe++,this.negative=1),oe=0;oe-=3)Me=N[oe]|N[oe-1]<<8|N[oe-2]<<16,this.words[_e]|=Me<>>26-ke&67108863,ke+=24,ke>=26&&(ke-=26,_e++);else if(re==="le")for(oe=0,_e=0;oe>>26-ke&67108863,ke+=24,ke>=26&&(ke-=26,_e++);return this.strip()};function d(H,N){var j=H.charCodeAt(N);return j>=65&&j<=70?j-55:j>=97&&j<=102?j-87:j-48&15}function v(H,N,j){var re=d(H,j);return j-1>=N&&(re|=d(H,j-1)<<4),re}f.prototype._parseHex=function(N,j,re){this.length=Math.ceil((N.length-j)/6),this.words=new Array(this.length);for(var oe=0;oe=j;oe-=2)ke=v(N,j,oe)<<_e,this.words[Me]|=ke&67108863,_e>=18?(_e-=18,Me+=1,this.words[Me]|=ke>>>26):_e+=8;else{var me=N.length-j;for(oe=me%2===0?j+1:j;oe=18?(_e-=18,Me+=1,this.words[Me]|=ke>>>26):_e+=8}this.strip()};function _(H,N,j,re){for(var oe=0,_e=Math.min(H.length,j),Me=N;Me<_e;Me++){var ke=H.charCodeAt(Me)-48;oe*=re,ke>=49?oe+=ke-49+10:ke>=17?oe+=ke-17+10:oe+=ke}return oe}f.prototype._parseBase=function(N,j,re){this.words=[0],this.length=1;for(var oe=0,_e=1;_e<=67108863;_e*=j)oe++;oe--,_e=_e/j|0;for(var Me=N.length-re,ke=Me%oe,me=Math.min(Me,Me-ke)+re,ie=0,Se=re;Se1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},f.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},f.prototype.inspect=function(){return(this.red?""};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],C=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];f.prototype.toString=function(N,j){N=N||10,j=j|0||1;var re;if(N===16||N==="hex"){re="";for(var oe=0,_e=0,Me=0;Me>>24-oe&16777215,_e!==0||Me!==this.length-1?re=b[6-me.length]+me+re:re=me+re,oe+=2,oe>=26&&(oe-=26,Me--)}for(_e!==0&&(re=_e.toString(16)+re);re.length%j!==0;)re="0"+re;return this.negative!==0&&(re="-"+re),re}if(N===(N|0)&&N>=2&&N<=36){var ie=p[N],Se=C[N];re="";var Le=this.clone();for(Le.negative=0;!Le.isZero();){var Ae=Le.modn(Se).toString(N);Le=Le.idivn(Se),Le.isZero()?re=Ae+re:re=b[ie-Ae.length]+Ae+re}for(this.isZero()&&(re="0"+re);re.length%j!==0;)re="0"+re;return this.negative!==0&&(re="-"+re),re}u(!1,"Base should be between 2 and 36")},f.prototype.toNumber=function(){var N=this.words[0];return this.length===2?N+=this.words[1]*67108864:this.length===3&&this.words[2]===1?N+=4503599627370496+this.words[1]*67108864:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-N:N},f.prototype.toJSON=function(){return this.toString(16)},f.prototype.toBuffer=function(N,j){return u(typeof h!="undefined"),this.toArrayLike(h,N,j)},f.prototype.toArray=function(N,j){return this.toArrayLike(Array,N,j)},f.prototype.toArrayLike=function(N,j,re){var oe=this.byteLength(),_e=re||Math.max(1,oe);u(oe<=_e,"byte array longer than desired length"),u(_e>0,"Requested array length <= 0"),this.strip();var Me=j==="le",ke=new N(_e),me,ie,Se=this.clone();if(Me){for(ie=0;!Se.isZero();ie++)me=Se.andln(255),Se.iushrn(8),ke[ie]=me;for(;ie<_e;ie++)ke[ie]=0}else{for(ie=0;ie<_e-oe;ie++)ke[ie]=0;for(ie=0;!Se.isZero();ie++)me=Se.andln(255),Se.iushrn(8),ke[_e-ie-1]=me}return ke},Math.clz32?f.prototype._countBits=function(N){return 32-Math.clz32(N)}:f.prototype._countBits=function(N){var j=N,re=0;return j>=4096&&(re+=13,j>>>=13),j>=64&&(re+=7,j>>>=7),j>=8&&(re+=4,j>>>=4),j>=2&&(re+=2,j>>>=2),re+j},f.prototype._zeroBits=function(N){if(N===0)return 26;var j=N,re=0;return(j&8191)===0&&(re+=13,j>>>=13),(j&127)===0&&(re+=7,j>>>=7),(j&15)===0&&(re+=4,j>>>=4),(j&3)===0&&(re+=2,j>>>=2),(j&1)===0&&re++,re},f.prototype.bitLength=function(){var N=this.words[this.length-1],j=this._countBits(N);return(this.length-1)*26+j};function E(H){for(var N=new Array(H.bitLength()),j=0;j>>oe}return N}f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var N=0,j=0;jN.length?this.clone().ior(N):N.clone().ior(this)},f.prototype.uor=function(N){return this.length>N.length?this.clone().iuor(N):N.clone().iuor(this)},f.prototype.iuand=function(N){var j;this.length>N.length?j=N:j=this;for(var re=0;reN.length?this.clone().iand(N):N.clone().iand(this)},f.prototype.uand=function(N){return this.length>N.length?this.clone().iuand(N):N.clone().iuand(this)},f.prototype.iuxor=function(N){var j,re;this.length>N.length?(j=this,re=N):(j=N,re=this);for(var oe=0;oeN.length?this.clone().ixor(N):N.clone().ixor(this)},f.prototype.uxor=function(N){return this.length>N.length?this.clone().iuxor(N):N.clone().iuxor(this)},f.prototype.inotn=function(N){u(typeof N=="number"&&N>=0);var j=Math.ceil(N/26)|0,re=N%26;this._expand(j),re>0&&j--;for(var oe=0;oe0&&(this.words[oe]=~this.words[oe]&67108863>>26-re),this.strip()},f.prototype.notn=function(N){return this.clone().inotn(N)},f.prototype.setn=function(N,j){u(typeof N=="number"&&N>=0);var re=N/26|0,oe=N%26;return this._expand(re+1),j?this.words[re]=this.words[re]|1<N.length?(re=this,oe=N):(re=N,oe=this);for(var _e=0,Me=0;Me>>26;for(;_e!==0&&Me>>26;if(this.length=re.length,_e!==0)this.words[this.length]=_e,this.length++;else if(re!==this)for(;MeN.length?this.clone().iadd(N):N.clone().iadd(this)},f.prototype.isub=function(N){if(N.negative!==0){N.negative=0;var j=this.iadd(N);return N.negative=1,j._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(N),this.negative=1,this._normSign();var re=this.cmp(N);if(re===0)return this.negative=0,this.length=1,this.words[0]=0,this;var oe,_e;re>0?(oe=this,_e=N):(oe=N,_e=this);for(var Me=0,ke=0;ke<_e.length;ke++)j=(oe.words[ke]|0)-(_e.words[ke]|0)+Me,Me=j>>26,this.words[ke]=j&67108863;for(;Me!==0&&ke>26,this.words[ke]=j&67108863;if(Me===0&&ke>>26,Le=me&67108863,Ae=Math.min(ie,N.length-1),De=Math.max(0,ie-H.length+1);De<=Ae;De++){var Pe=ie-De|0;oe=H.words[Pe]|0,_e=N.words[De]|0,Me=oe*_e+Le,Se+=Me/67108864|0,Le=Me&67108863}j.words[ie]=Le|0,me=Se|0}return me!==0?j.words[ie]=me|0:j.length--,j.strip()}var L=function(N,j,re){var oe=N.words,_e=j.words,Me=re.words,ke=0,me,ie,Se,Le=oe[0]|0,Ae=Le&8191,De=Le>>>13,Pe=oe[1]|0,ge=Pe&8191,Fe=Pe>>>13,ce=oe[2]|0,Ye=ce&8191,ct=ce>>>13,pt=oe[3]|0,Wt=pt&8191,st=pt>>>13,lt=oe[4]|0,Gt=lt&8191,Nt=lt>>>13,$t=oe[5]|0,sr=$t&8191,wr=$t>>>13,ur=oe[6]|0,Qe=ur&8191,Et=ur>>>13,er=oe[7]|0,Ut=er&8191,Ft=er>>>13,bt=oe[8]|0,yt=bt&8191,Yt=bt>>>13,lr=oe[9]|0,Tr=lr&8191,Rr=lr>>>13,ei=_e[0]|0,Wr=ei&8191,Ur=ei>>>13,dt=_e[1]|0,Ge=dt&8191,Je=dt>>>13,je=_e[2]|0,$e=je&8191,wt=je>>>13,Ie=_e[3]|0,xe=Ie&8191,Ce=Ie>>>13,vt=_e[4]|0,nr=vt&8191,ir=vt>>>13,pr=_e[5]|0,oi=pr&8191,di=pr>>>13,Jr=_e[6]|0,fi=Jr&8191,Hi=Jr>>>13,Pn=_e[7]|0,wn=Pn&8191,pn=Pn>>>13,Vn=_e[8]|0,kn=Vn&8191,ea=Vn>>>13,ua=_e[9]|0,Vt=ua&8191,_t=ua>>>13;re.negative=N.negative^j.negative,re.length=19,me=Math.imul(Ae,Wr),ie=Math.imul(Ae,Ur),ie=ie+Math.imul(De,Wr)|0,Se=Math.imul(De,Ur);var tr=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(tr>>>26)|0,tr&=67108863,me=Math.imul(ge,Wr),ie=Math.imul(ge,Ur),ie=ie+Math.imul(Fe,Wr)|0,Se=Math.imul(Fe,Ur),me=me+Math.imul(Ae,Ge)|0,ie=ie+Math.imul(Ae,Je)|0,ie=ie+Math.imul(De,Ge)|0,Se=Se+Math.imul(De,Je)|0;var ar=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(ar>>>26)|0,ar&=67108863,me=Math.imul(Ye,Wr),ie=Math.imul(Ye,Ur),ie=ie+Math.imul(ct,Wr)|0,Se=Math.imul(ct,Ur),me=me+Math.imul(ge,Ge)|0,ie=ie+Math.imul(ge,Je)|0,ie=ie+Math.imul(Fe,Ge)|0,Se=Se+Math.imul(Fe,Je)|0,me=me+Math.imul(Ae,$e)|0,ie=ie+Math.imul(Ae,wt)|0,ie=ie+Math.imul(De,$e)|0,Se=Se+Math.imul(De,wt)|0;var Er=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Er>>>26)|0,Er&=67108863,me=Math.imul(Wt,Wr),ie=Math.imul(Wt,Ur),ie=ie+Math.imul(st,Wr)|0,Se=Math.imul(st,Ur),me=me+Math.imul(Ye,Ge)|0,ie=ie+Math.imul(Ye,Je)|0,ie=ie+Math.imul(ct,Ge)|0,Se=Se+Math.imul(ct,Je)|0,me=me+Math.imul(ge,$e)|0,ie=ie+Math.imul(ge,wt)|0,ie=ie+Math.imul(Fe,$e)|0,Se=Se+Math.imul(Fe,wt)|0,me=me+Math.imul(Ae,xe)|0,ie=ie+Math.imul(Ae,Ce)|0,ie=ie+Math.imul(De,xe)|0,Se=Se+Math.imul(De,Ce)|0;var Zr=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,me=Math.imul(Gt,Wr),ie=Math.imul(Gt,Ur),ie=ie+Math.imul(Nt,Wr)|0,Se=Math.imul(Nt,Ur),me=me+Math.imul(Wt,Ge)|0,ie=ie+Math.imul(Wt,Je)|0,ie=ie+Math.imul(st,Ge)|0,Se=Se+Math.imul(st,Je)|0,me=me+Math.imul(Ye,$e)|0,ie=ie+Math.imul(Ye,wt)|0,ie=ie+Math.imul(ct,$e)|0,Se=Se+Math.imul(ct,wt)|0,me=me+Math.imul(ge,xe)|0,ie=ie+Math.imul(ge,Ce)|0,ie=ie+Math.imul(Fe,xe)|0,Se=Se+Math.imul(Fe,Ce)|0,me=me+Math.imul(Ae,nr)|0,ie=ie+Math.imul(Ae,ir)|0,ie=ie+Math.imul(De,nr)|0,Se=Se+Math.imul(De,ir)|0;var ri=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(ri>>>26)|0,ri&=67108863,me=Math.imul(sr,Wr),ie=Math.imul(sr,Ur),ie=ie+Math.imul(wr,Wr)|0,Se=Math.imul(wr,Ur),me=me+Math.imul(Gt,Ge)|0,ie=ie+Math.imul(Gt,Je)|0,ie=ie+Math.imul(Nt,Ge)|0,Se=Se+Math.imul(Nt,Je)|0,me=me+Math.imul(Wt,$e)|0,ie=ie+Math.imul(Wt,wt)|0,ie=ie+Math.imul(st,$e)|0,Se=Se+Math.imul(st,wt)|0,me=me+Math.imul(Ye,xe)|0,ie=ie+Math.imul(Ye,Ce)|0,ie=ie+Math.imul(ct,xe)|0,Se=Se+Math.imul(ct,Ce)|0,me=me+Math.imul(ge,nr)|0,ie=ie+Math.imul(ge,ir)|0,ie=ie+Math.imul(Fe,nr)|0,Se=Se+Math.imul(Fe,ir)|0,me=me+Math.imul(Ae,oi)|0,ie=ie+Math.imul(Ae,di)|0,ie=ie+Math.imul(De,oi)|0,Se=Se+Math.imul(De,di)|0;var $r=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+($r>>>26)|0,$r&=67108863,me=Math.imul(Qe,Wr),ie=Math.imul(Qe,Ur),ie=ie+Math.imul(Et,Wr)|0,Se=Math.imul(Et,Ur),me=me+Math.imul(sr,Ge)|0,ie=ie+Math.imul(sr,Je)|0,ie=ie+Math.imul(wr,Ge)|0,Se=Se+Math.imul(wr,Je)|0,me=me+Math.imul(Gt,$e)|0,ie=ie+Math.imul(Gt,wt)|0,ie=ie+Math.imul(Nt,$e)|0,Se=Se+Math.imul(Nt,wt)|0,me=me+Math.imul(Wt,xe)|0,ie=ie+Math.imul(Wt,Ce)|0,ie=ie+Math.imul(st,xe)|0,Se=Se+Math.imul(st,Ce)|0,me=me+Math.imul(Ye,nr)|0,ie=ie+Math.imul(Ye,ir)|0,ie=ie+Math.imul(ct,nr)|0,Se=Se+Math.imul(ct,ir)|0,me=me+Math.imul(ge,oi)|0,ie=ie+Math.imul(ge,di)|0,ie=ie+Math.imul(Fe,oi)|0,Se=Se+Math.imul(Fe,di)|0,me=me+Math.imul(Ae,fi)|0,ie=ie+Math.imul(Ae,Hi)|0,ie=ie+Math.imul(De,fi)|0,Se=Se+Math.imul(De,Hi)|0;var zi=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(zi>>>26)|0,zi&=67108863,me=Math.imul(Ut,Wr),ie=Math.imul(Ut,Ur),ie=ie+Math.imul(Ft,Wr)|0,Se=Math.imul(Ft,Ur),me=me+Math.imul(Qe,Ge)|0,ie=ie+Math.imul(Qe,Je)|0,ie=ie+Math.imul(Et,Ge)|0,Se=Se+Math.imul(Et,Je)|0,me=me+Math.imul(sr,$e)|0,ie=ie+Math.imul(sr,wt)|0,ie=ie+Math.imul(wr,$e)|0,Se=Se+Math.imul(wr,wt)|0,me=me+Math.imul(Gt,xe)|0,ie=ie+Math.imul(Gt,Ce)|0,ie=ie+Math.imul(Nt,xe)|0,Se=Se+Math.imul(Nt,Ce)|0,me=me+Math.imul(Wt,nr)|0,ie=ie+Math.imul(Wt,ir)|0,ie=ie+Math.imul(st,nr)|0,Se=Se+Math.imul(st,ir)|0,me=me+Math.imul(Ye,oi)|0,ie=ie+Math.imul(Ye,di)|0,ie=ie+Math.imul(ct,oi)|0,Se=Se+Math.imul(ct,di)|0,me=me+Math.imul(ge,fi)|0,ie=ie+Math.imul(ge,Hi)|0,ie=ie+Math.imul(Fe,fi)|0,Se=Se+Math.imul(Fe,Hi)|0,me=me+Math.imul(Ae,wn)|0,ie=ie+Math.imul(Ae,pn)|0,ie=ie+Math.imul(De,wn)|0,Se=Se+Math.imul(De,pn)|0;var Ji=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,me=Math.imul(yt,Wr),ie=Math.imul(yt,Ur),ie=ie+Math.imul(Yt,Wr)|0,Se=Math.imul(Yt,Ur),me=me+Math.imul(Ut,Ge)|0,ie=ie+Math.imul(Ut,Je)|0,ie=ie+Math.imul(Ft,Ge)|0,Se=Se+Math.imul(Ft,Je)|0,me=me+Math.imul(Qe,$e)|0,ie=ie+Math.imul(Qe,wt)|0,ie=ie+Math.imul(Et,$e)|0,Se=Se+Math.imul(Et,wt)|0,me=me+Math.imul(sr,xe)|0,ie=ie+Math.imul(sr,Ce)|0,ie=ie+Math.imul(wr,xe)|0,Se=Se+Math.imul(wr,Ce)|0,me=me+Math.imul(Gt,nr)|0,ie=ie+Math.imul(Gt,ir)|0,ie=ie+Math.imul(Nt,nr)|0,Se=Se+Math.imul(Nt,ir)|0,me=me+Math.imul(Wt,oi)|0,ie=ie+Math.imul(Wt,di)|0,ie=ie+Math.imul(st,oi)|0,Se=Se+Math.imul(st,di)|0,me=me+Math.imul(Ye,fi)|0,ie=ie+Math.imul(Ye,Hi)|0,ie=ie+Math.imul(ct,fi)|0,Se=Se+Math.imul(ct,Hi)|0,me=me+Math.imul(ge,wn)|0,ie=ie+Math.imul(ge,pn)|0,ie=ie+Math.imul(Fe,wn)|0,Se=Se+Math.imul(Fe,pn)|0,me=me+Math.imul(Ae,kn)|0,ie=ie+Math.imul(Ae,ea)|0,ie=ie+Math.imul(De,kn)|0,Se=Se+Math.imul(De,ea)|0;var en=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(en>>>26)|0,en&=67108863,me=Math.imul(Tr,Wr),ie=Math.imul(Tr,Ur),ie=ie+Math.imul(Rr,Wr)|0,Se=Math.imul(Rr,Ur),me=me+Math.imul(yt,Ge)|0,ie=ie+Math.imul(yt,Je)|0,ie=ie+Math.imul(Yt,Ge)|0,Se=Se+Math.imul(Yt,Je)|0,me=me+Math.imul(Ut,$e)|0,ie=ie+Math.imul(Ut,wt)|0,ie=ie+Math.imul(Ft,$e)|0,Se=Se+Math.imul(Ft,wt)|0,me=me+Math.imul(Qe,xe)|0,ie=ie+Math.imul(Qe,Ce)|0,ie=ie+Math.imul(Et,xe)|0,Se=Se+Math.imul(Et,Ce)|0,me=me+Math.imul(sr,nr)|0,ie=ie+Math.imul(sr,ir)|0,ie=ie+Math.imul(wr,nr)|0,Se=Se+Math.imul(wr,ir)|0,me=me+Math.imul(Gt,oi)|0,ie=ie+Math.imul(Gt,di)|0,ie=ie+Math.imul(Nt,oi)|0,Se=Se+Math.imul(Nt,di)|0,me=me+Math.imul(Wt,fi)|0,ie=ie+Math.imul(Wt,Hi)|0,ie=ie+Math.imul(st,fi)|0,Se=Se+Math.imul(st,Hi)|0,me=me+Math.imul(Ye,wn)|0,ie=ie+Math.imul(Ye,pn)|0,ie=ie+Math.imul(ct,wn)|0,Se=Se+Math.imul(ct,pn)|0,me=me+Math.imul(ge,kn)|0,ie=ie+Math.imul(ge,ea)|0,ie=ie+Math.imul(Fe,kn)|0,Se=Se+Math.imul(Fe,ea)|0,me=me+Math.imul(Ae,Vt)|0,ie=ie+Math.imul(Ae,_t)|0,ie=ie+Math.imul(De,Vt)|0,Se=Se+Math.imul(De,_t)|0;var cn=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(cn>>>26)|0,cn&=67108863,me=Math.imul(Tr,Ge),ie=Math.imul(Tr,Je),ie=ie+Math.imul(Rr,Ge)|0,Se=Math.imul(Rr,Je),me=me+Math.imul(yt,$e)|0,ie=ie+Math.imul(yt,wt)|0,ie=ie+Math.imul(Yt,$e)|0,Se=Se+Math.imul(Yt,wt)|0,me=me+Math.imul(Ut,xe)|0,ie=ie+Math.imul(Ut,Ce)|0,ie=ie+Math.imul(Ft,xe)|0,Se=Se+Math.imul(Ft,Ce)|0,me=me+Math.imul(Qe,nr)|0,ie=ie+Math.imul(Qe,ir)|0,ie=ie+Math.imul(Et,nr)|0,Se=Se+Math.imul(Et,ir)|0,me=me+Math.imul(sr,oi)|0,ie=ie+Math.imul(sr,di)|0,ie=ie+Math.imul(wr,oi)|0,Se=Se+Math.imul(wr,di)|0,me=me+Math.imul(Gt,fi)|0,ie=ie+Math.imul(Gt,Hi)|0,ie=ie+Math.imul(Nt,fi)|0,Se=Se+Math.imul(Nt,Hi)|0,me=me+Math.imul(Wt,wn)|0,ie=ie+Math.imul(Wt,pn)|0,ie=ie+Math.imul(st,wn)|0,Se=Se+Math.imul(st,pn)|0,me=me+Math.imul(Ye,kn)|0,ie=ie+Math.imul(Ye,ea)|0,ie=ie+Math.imul(ct,kn)|0,Se=Se+Math.imul(ct,ea)|0,me=me+Math.imul(ge,Vt)|0,ie=ie+Math.imul(ge,_t)|0,ie=ie+Math.imul(Fe,Vt)|0,Se=Se+Math.imul(Fe,_t)|0;var yn=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(yn>>>26)|0,yn&=67108863,me=Math.imul(Tr,$e),ie=Math.imul(Tr,wt),ie=ie+Math.imul(Rr,$e)|0,Se=Math.imul(Rr,wt),me=me+Math.imul(yt,xe)|0,ie=ie+Math.imul(yt,Ce)|0,ie=ie+Math.imul(Yt,xe)|0,Se=Se+Math.imul(Yt,Ce)|0,me=me+Math.imul(Ut,nr)|0,ie=ie+Math.imul(Ut,ir)|0,ie=ie+Math.imul(Ft,nr)|0,Se=Se+Math.imul(Ft,ir)|0,me=me+Math.imul(Qe,oi)|0,ie=ie+Math.imul(Qe,di)|0,ie=ie+Math.imul(Et,oi)|0,Se=Se+Math.imul(Et,di)|0,me=me+Math.imul(sr,fi)|0,ie=ie+Math.imul(sr,Hi)|0,ie=ie+Math.imul(wr,fi)|0,Se=Se+Math.imul(wr,Hi)|0,me=me+Math.imul(Gt,wn)|0,ie=ie+Math.imul(Gt,pn)|0,ie=ie+Math.imul(Nt,wn)|0,Se=Se+Math.imul(Nt,pn)|0,me=me+Math.imul(Wt,kn)|0,ie=ie+Math.imul(Wt,ea)|0,ie=ie+Math.imul(st,kn)|0,Se=Se+Math.imul(st,ea)|0,me=me+Math.imul(Ye,Vt)|0,ie=ie+Math.imul(Ye,_t)|0,ie=ie+Math.imul(ct,Vt)|0,Se=Se+Math.imul(ct,_t)|0;var Mn=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,me=Math.imul(Tr,xe),ie=Math.imul(Tr,Ce),ie=ie+Math.imul(Rr,xe)|0,Se=Math.imul(Rr,Ce),me=me+Math.imul(yt,nr)|0,ie=ie+Math.imul(yt,ir)|0,ie=ie+Math.imul(Yt,nr)|0,Se=Se+Math.imul(Yt,ir)|0,me=me+Math.imul(Ut,oi)|0,ie=ie+Math.imul(Ut,di)|0,ie=ie+Math.imul(Ft,oi)|0,Se=Se+Math.imul(Ft,di)|0,me=me+Math.imul(Qe,fi)|0,ie=ie+Math.imul(Qe,Hi)|0,ie=ie+Math.imul(Et,fi)|0,Se=Se+Math.imul(Et,Hi)|0,me=me+Math.imul(sr,wn)|0,ie=ie+Math.imul(sr,pn)|0,ie=ie+Math.imul(wr,wn)|0,Se=Se+Math.imul(wr,pn)|0,me=me+Math.imul(Gt,kn)|0,ie=ie+Math.imul(Gt,ea)|0,ie=ie+Math.imul(Nt,kn)|0,Se=Se+Math.imul(Nt,ea)|0,me=me+Math.imul(Wt,Vt)|0,ie=ie+Math.imul(Wt,_t)|0,ie=ie+Math.imul(st,Vt)|0,Se=Se+Math.imul(st,_t)|0;var Ba=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Ba>>>26)|0,Ba&=67108863,me=Math.imul(Tr,nr),ie=Math.imul(Tr,ir),ie=ie+Math.imul(Rr,nr)|0,Se=Math.imul(Rr,ir),me=me+Math.imul(yt,oi)|0,ie=ie+Math.imul(yt,di)|0,ie=ie+Math.imul(Yt,oi)|0,Se=Se+Math.imul(Yt,di)|0,me=me+Math.imul(Ut,fi)|0,ie=ie+Math.imul(Ut,Hi)|0,ie=ie+Math.imul(Ft,fi)|0,Se=Se+Math.imul(Ft,Hi)|0,me=me+Math.imul(Qe,wn)|0,ie=ie+Math.imul(Qe,pn)|0,ie=ie+Math.imul(Et,wn)|0,Se=Se+Math.imul(Et,pn)|0,me=me+Math.imul(sr,kn)|0,ie=ie+Math.imul(sr,ea)|0,ie=ie+Math.imul(wr,kn)|0,Se=Se+Math.imul(wr,ea)|0,me=me+Math.imul(Gt,Vt)|0,ie=ie+Math.imul(Gt,_t)|0,ie=ie+Math.imul(Nt,Vt)|0,Se=Se+Math.imul(Nt,_t)|0;var la=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(la>>>26)|0,la&=67108863,me=Math.imul(Tr,oi),ie=Math.imul(Tr,di),ie=ie+Math.imul(Rr,oi)|0,Se=Math.imul(Rr,di),me=me+Math.imul(yt,fi)|0,ie=ie+Math.imul(yt,Hi)|0,ie=ie+Math.imul(Yt,fi)|0,Se=Se+Math.imul(Yt,Hi)|0,me=me+Math.imul(Ut,wn)|0,ie=ie+Math.imul(Ut,pn)|0,ie=ie+Math.imul(Ft,wn)|0,Se=Se+Math.imul(Ft,pn)|0,me=me+Math.imul(Qe,kn)|0,ie=ie+Math.imul(Qe,ea)|0,ie=ie+Math.imul(Et,kn)|0,Se=Se+Math.imul(Et,ea)|0,me=me+Math.imul(sr,Vt)|0,ie=ie+Math.imul(sr,_t)|0,ie=ie+Math.imul(wr,Vt)|0,Se=Se+Math.imul(wr,_t)|0;var ma=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(ma>>>26)|0,ma&=67108863,me=Math.imul(Tr,fi),ie=Math.imul(Tr,Hi),ie=ie+Math.imul(Rr,fi)|0,Se=Math.imul(Rr,Hi),me=me+Math.imul(yt,wn)|0,ie=ie+Math.imul(yt,pn)|0,ie=ie+Math.imul(Yt,wn)|0,Se=Se+Math.imul(Yt,pn)|0,me=me+Math.imul(Ut,kn)|0,ie=ie+Math.imul(Ut,ea)|0,ie=ie+Math.imul(Ft,kn)|0,Se=Se+Math.imul(Ft,ea)|0,me=me+Math.imul(Qe,Vt)|0,ie=ie+Math.imul(Qe,_t)|0,ie=ie+Math.imul(Et,Vt)|0,Se=Se+Math.imul(Et,_t)|0;var Wa=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Wa>>>26)|0,Wa&=67108863,me=Math.imul(Tr,wn),ie=Math.imul(Tr,pn),ie=ie+Math.imul(Rr,wn)|0,Se=Math.imul(Rr,pn),me=me+Math.imul(yt,kn)|0,ie=ie+Math.imul(yt,ea)|0,ie=ie+Math.imul(Yt,kn)|0,Se=Se+Math.imul(Yt,ea)|0,me=me+Math.imul(Ut,Vt)|0,ie=ie+Math.imul(Ut,_t)|0,ie=ie+Math.imul(Ft,Vt)|0,Se=Se+Math.imul(Ft,_t)|0;var Fa=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Fa>>>26)|0,Fa&=67108863,me=Math.imul(Tr,kn),ie=Math.imul(Tr,ea),ie=ie+Math.imul(Rr,kn)|0,Se=Math.imul(Rr,ea),me=me+Math.imul(yt,Vt)|0,ie=ie+Math.imul(yt,_t)|0,ie=ie+Math.imul(Yt,Vt)|0,Se=Se+Math.imul(Yt,_t)|0;var Wo=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Wo>>>26)|0,Wo&=67108863,me=Math.imul(Tr,Vt),ie=Math.imul(Tr,_t),ie=ie+Math.imul(Rr,Vt)|0,Se=Math.imul(Rr,_t);var da=(ke+me|0)+((ie&8191)<<13)|0;return ke=(Se+(ie>>>13)|0)+(da>>>26)|0,da&=67108863,Me[0]=tr,Me[1]=ar,Me[2]=Er,Me[3]=Zr,Me[4]=ri,Me[5]=$r,Me[6]=zi,Me[7]=Ji,Me[8]=en,Me[9]=cn,Me[10]=yn,Me[11]=Mn,Me[12]=Ba,Me[13]=la,Me[14]=ma,Me[15]=Wa,Me[16]=Fa,Me[17]=Wo,Me[18]=da,ke!==0&&(Me[19]=ke,re.length++),re};Math.imul||(L=A);function x(H,N,j){j.negative=N.negative^H.negative,j.length=H.length+N.length;for(var re=0,oe=0,_e=0;_e>>26)|0,oe+=Me>>>26,Me&=67108863}j.words[_e]=ke,re=Me,Me=oe}return re!==0?j.words[_e]=re:j.length--,j.strip()}function k(H,N,j){var re=new M;return re.mulp(H,N,j)}f.prototype.mulTo=function(N,j){var re,oe=this.length+N.length;return this.length===10&&N.length===10?re=L(this,N,j):oe<63?re=A(this,N,j):oe<1024?re=x(this,N,j):re=k(this,N,j),re};function M(H,N){this.x=H,this.y=N}M.prototype.makeRBT=function(N){for(var j=new Array(N),re=f.prototype._countBits(N)-1,oe=0;oe>=1;return oe},M.prototype.permute=function(N,j,re,oe,_e,Me){for(var ke=0;ke>>1)_e++;return 1<<_e+1+oe},M.prototype.conjugate=function(N,j,re){if(!(re<=1))for(var oe=0;oe>>13,re[2*Me+1]=_e&8191,_e=_e>>>13;for(Me=2*j;Me>=26,j+=oe/67108864|0,j+=_e>>>26,this.words[re]=_e&67108863}return j!==0&&(this.words[re]=j,this.length++),this},f.prototype.muln=function(N){return this.clone().imuln(N)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(N){var j=E(N);if(j.length===0)return new f(1);for(var re=this,oe=0;oe=0);var j=N%26,re=(N-j)/26,oe=67108863>>>26-j<<26-j,_e;if(j!==0){var Me=0;for(_e=0;_e>>26-j}Me&&(this.words[_e]=Me,this.length++)}if(re!==0){for(_e=this.length-1;_e>=0;_e--)this.words[_e+re]=this.words[_e];for(_e=0;_e=0);var oe;j?oe=(j-j%26)/26:oe=0;var _e=N%26,Me=Math.min((N-_e)/26,this.length),ke=67108863^67108863>>>_e<<_e,me=re;if(oe-=Me,oe=Math.max(0,oe),me){for(var ie=0;ieMe)for(this.length-=Me,ie=0;ie=0&&(Se!==0||ie>=oe);ie--){var Le=this.words[ie]|0;this.words[ie]=Se<<26-_e|Le>>>_e,Se=Le&ke}return me&&Se!==0&&(me.words[me.length++]=Se),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},f.prototype.ishrn=function(N,j,re){return u(this.negative===0),this.iushrn(N,j,re)},f.prototype.shln=function(N){return this.clone().ishln(N)},f.prototype.ushln=function(N){return this.clone().iushln(N)},f.prototype.shrn=function(N){return this.clone().ishrn(N)},f.prototype.ushrn=function(N){return this.clone().iushrn(N)},f.prototype.testn=function(N){u(typeof N=="number"&&N>=0);var j=N%26,re=(N-j)/26,oe=1<=0);var j=N%26,re=(N-j)/26;if(u(this.negative===0,"imaskn works only with positive numbers"),this.length<=re)return this;if(j!==0&&re++,this.length=Math.min(re,this.length),j!==0){var oe=67108863^67108863>>>j<=67108864;j++)this.words[j]-=67108864,j===this.length-1?this.words[j+1]=1:this.words[j+1]++;return this.length=Math.max(this.length,j+1),this},f.prototype.isubn=function(N){if(u(typeof N=="number"),u(N<67108864),N<0)return this.iaddn(-N);if(this.negative!==0)return this.negative=0,this.iaddn(N),this.negative=1,this;if(this.words[0]-=N,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var j=0;j>26)-(me/67108864|0),this.words[_e+re]=Me&67108863}for(;_e>26,this.words[_e+re]=Me&67108863;if(ke===0)return this.strip();for(u(ke===-1),ke=0,_e=0;_e>26,this.words[_e]=Me&67108863;return this.negative=1,this.strip()},f.prototype._wordDiv=function(N,j){var re=this.length-N.length,oe=this.clone(),_e=N,Me=_e.words[_e.length-1]|0,ke=this._countBits(Me);re=26-ke,re!==0&&(_e=_e.ushln(re),oe.iushln(re),Me=_e.words[_e.length-1]|0);var me=oe.length-_e.length,ie;if(j!=="mod"){ie=new f(null),ie.length=me+1,ie.words=new Array(ie.length);for(var Se=0;Se=0;Ae--){var De=(oe.words[_e.length+Ae]|0)*67108864+(oe.words[_e.length+Ae-1]|0);for(De=Math.min(De/Me|0,67108863),oe._ishlnsubmul(_e,De,Ae);oe.negative!==0;)De--,oe.negative=0,oe._ishlnsubmul(_e,1,Ae),oe.isZero()||(oe.negative^=1);ie&&(ie.words[Ae]=De)}return ie&&ie.strip(),oe.strip(),j!=="div"&&re!==0&&oe.iushrn(re),{div:ie||null,mod:oe}},f.prototype.divmod=function(N,j,re){if(u(!N.isZero()),this.isZero())return{div:new f(0),mod:new f(0)};var oe,_e,Me;return this.negative!==0&&N.negative===0?(Me=this.neg().divmod(N,j),j!=="mod"&&(oe=Me.div.neg()),j!=="div"&&(_e=Me.mod.neg(),re&&_e.negative!==0&&_e.iadd(N)),{div:oe,mod:_e}):this.negative===0&&N.negative!==0?(Me=this.divmod(N.neg(),j),j!=="mod"&&(oe=Me.div.neg()),{div:oe,mod:Me.mod}):(this.negative&N.negative)!==0?(Me=this.neg().divmod(N.neg(),j),j!=="div"&&(_e=Me.mod.neg(),re&&_e.negative!==0&&_e.isub(N)),{div:Me.div,mod:_e}):N.length>this.length||this.cmp(N)<0?{div:new f(0),mod:this}:N.length===1?j==="div"?{div:this.divn(N.words[0]),mod:null}:j==="mod"?{div:null,mod:new f(this.modn(N.words[0]))}:{div:this.divn(N.words[0]),mod:new f(this.modn(N.words[0]))}:this._wordDiv(N,j)},f.prototype.div=function(N){return this.divmod(N,"div",!1).div},f.prototype.mod=function(N){return this.divmod(N,"mod",!1).mod},f.prototype.umod=function(N){return this.divmod(N,"mod",!0).mod},f.prototype.divRound=function(N){var j=this.divmod(N);if(j.mod.isZero())return j.div;var re=j.div.negative!==0?j.mod.isub(N):j.mod,oe=N.ushrn(1),_e=N.andln(1),Me=re.cmp(oe);return Me<0||_e===1&&Me===0?j.div:j.div.negative!==0?j.div.isubn(1):j.div.iaddn(1)},f.prototype.modn=function(N){u(N<=67108863);for(var j=(1<<26)%N,re=0,oe=this.length-1;oe>=0;oe--)re=(j*re+(this.words[oe]|0))%N;return re},f.prototype.idivn=function(N){u(N<=67108863);for(var j=0,re=this.length-1;re>=0;re--){var oe=(this.words[re]|0)+j*67108864;this.words[re]=oe/N|0,j=oe%N}return this.strip()},f.prototype.divn=function(N){return this.clone().idivn(N)},f.prototype.egcd=function(N){u(N.negative===0),u(!N.isZero());var j=this,re=N.clone();j.negative!==0?j=j.umod(N):j=j.clone();for(var oe=new f(1),_e=new f(0),Me=new f(0),ke=new f(1),me=0;j.isEven()&&re.isEven();)j.iushrn(1),re.iushrn(1),++me;for(var ie=re.clone(),Se=j.clone();!j.isZero();){for(var Le=0,Ae=1;(j.words[0]&Ae)===0&&Le<26;++Le,Ae<<=1);if(Le>0)for(j.iushrn(Le);Le-- >0;)(oe.isOdd()||_e.isOdd())&&(oe.iadd(ie),_e.isub(Se)),oe.iushrn(1),_e.iushrn(1);for(var De=0,Pe=1;(re.words[0]&Pe)===0&&De<26;++De,Pe<<=1);if(De>0)for(re.iushrn(De);De-- >0;)(Me.isOdd()||ke.isOdd())&&(Me.iadd(ie),ke.isub(Se)),Me.iushrn(1),ke.iushrn(1);j.cmp(re)>=0?(j.isub(re),oe.isub(Me),_e.isub(ke)):(re.isub(j),Me.isub(oe),ke.isub(_e))}return{a:Me,b:ke,gcd:re.iushln(me)}},f.prototype._invmp=function(N){u(N.negative===0),u(!N.isZero());var j=this,re=N.clone();j.negative!==0?j=j.umod(N):j=j.clone();for(var oe=new f(1),_e=new f(0),Me=re.clone();j.cmpn(1)>0&&re.cmpn(1)>0;){for(var ke=0,me=1;(j.words[0]&me)===0&&ke<26;++ke,me<<=1);if(ke>0)for(j.iushrn(ke);ke-- >0;)oe.isOdd()&&oe.iadd(Me),oe.iushrn(1);for(var ie=0,Se=1;(re.words[0]&Se)===0&&ie<26;++ie,Se<<=1);if(ie>0)for(re.iushrn(ie);ie-- >0;)_e.isOdd()&&_e.iadd(Me),_e.iushrn(1);j.cmp(re)>=0?(j.isub(re),oe.isub(_e)):(re.isub(j),_e.isub(oe))}var Le;return j.cmpn(1)===0?Le=oe:Le=_e,Le.cmpn(0)<0&&Le.iadd(N),Le},f.prototype.gcd=function(N){if(this.isZero())return N.abs();if(N.isZero())return this.abs();var j=this.clone(),re=N.clone();j.negative=0,re.negative=0;for(var oe=0;j.isEven()&&re.isEven();oe++)j.iushrn(1),re.iushrn(1);do{for(;j.isEven();)j.iushrn(1);for(;re.isEven();)re.iushrn(1);var _e=j.cmp(re);if(_e<0){var Me=j;j=re,re=Me}else if(_e===0||re.cmpn(1)===0)break;j.isub(re)}while(!0);return re.iushln(oe)},f.prototype.invm=function(N){return this.egcd(N).a.umod(N)},f.prototype.isEven=function(){return(this.words[0]&1)===0},f.prototype.isOdd=function(){return(this.words[0]&1)===1},f.prototype.andln=function(N){return this.words[0]&N},f.prototype.bincn=function(N){u(typeof N=="number");var j=N%26,re=(N-j)/26,oe=1<>>26,ke&=67108863,this.words[Me]=ke}return _e!==0&&(this.words[Me]=_e,this.length++),this},f.prototype.isZero=function(){return this.length===1&&this.words[0]===0},f.prototype.cmpn=function(N){var j=N<0;if(this.negative!==0&&!j)return-1;if(this.negative===0&&j)return 1;this.strip();var re;if(this.length>1)re=1;else{j&&(N=-N),u(N<=67108863,"Number is too big");var oe=this.words[0]|0;re=oe===N?0:oeN.length)return 1;if(this.length=0;re--){var oe=this.words[re]|0,_e=N.words[re]|0;if(oe!==_e){oe<_e?j=-1:oe>_e&&(j=1);break}}return j},f.prototype.gtn=function(N){return this.cmpn(N)===1},f.prototype.gt=function(N){return this.cmp(N)===1},f.prototype.gten=function(N){return this.cmpn(N)>=0},f.prototype.gte=function(N){return this.cmp(N)>=0},f.prototype.ltn=function(N){return this.cmpn(N)===-1},f.prototype.lt=function(N){return this.cmp(N)===-1},f.prototype.lten=function(N){return this.cmpn(N)<=0},f.prototype.lte=function(N){return this.cmp(N)<=0},f.prototype.eqn=function(N){return this.cmpn(N)===0},f.prototype.eq=function(N){return this.cmp(N)===0},f.red=function(N){return new G(N)},f.prototype.toRed=function(N){return u(!this.red,"Already a number in reduction context"),u(this.negative===0,"red works only with positives"),N.convertTo(this)._forceRed(N)},f.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(N){return this.red=N,this},f.prototype.forceRed=function(N){return u(!this.red,"Already a number in reduction context"),this._forceRed(N)},f.prototype.redAdd=function(N){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,N)},f.prototype.redIAdd=function(N){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,N)},f.prototype.redSub=function(N){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,N)},f.prototype.redISub=function(N){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,N)},f.prototype.redShl=function(N){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,N)},f.prototype.redMul=function(N){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.mul(this,N)},f.prototype.redIMul=function(N){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.imul(this,N)},f.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(N){return u(this.red&&!N.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,N)};var g={k256:null,p224:null,p192:null,p25519:null};function P(H,N){this.name=H,this.p=new f(N,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}P.prototype._tmp=function(){var N=new f(null);return N.words=new Array(Math.ceil(this.n/13)),N},P.prototype.ireduce=function(N){var j=N,re;do this.split(j,this.tmp),j=this.imulK(j),j=j.iadd(this.tmp),re=j.bitLength();while(re>this.n);var oe=re0?j.isub(this.p):j.strip!==void 0?j.strip():j._strip(),j},P.prototype.split=function(N,j){N.iushrn(this.n,0,j)},P.prototype.imulK=function(N){return N.imul(this.k)};function T(){P.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(T,P),T.prototype.split=function(N,j){for(var re=4194303,oe=Math.min(N.length,9),_e=0;_e>>22,Me=ke}Me>>>=22,N.words[_e-10]=Me,Me===0&&N.length>10?N.length-=10:N.length-=9},T.prototype.imulK=function(N){N.words[N.length]=0,N.words[N.length+1]=0,N.length+=2;for(var j=0,re=0;re>>=26,N.words[re]=_e,j=oe}return j!==0&&(N.words[N.length++]=j),N},f._prime=function(N){if(g[N])return g[N];var j;if(N==="k256")j=new T;else if(N==="p224")j=new z;else if(N==="p192")j=new O;else if(N==="p25519")j=new V;else throw new Error("Unknown prime "+N);return g[N]=j,j};function G(H){if(typeof H=="string"){var N=f._prime(H);this.m=N.p,this.prime=N}else u(H.gtn(1),"modulus must be greater than 1"),this.m=H,this.prime=null}G.prototype._verify1=function(N){u(N.negative===0,"red works only with positives"),u(N.red,"red works only with red numbers")},G.prototype._verify2=function(N,j){u((N.negative|j.negative)===0,"red works only with positives"),u(N.red&&N.red===j.red,"red works only with red numbers")},G.prototype.imod=function(N){return this.prime?this.prime.ireduce(N)._forceRed(this):N.umod(this.m)._forceRed(this)},G.prototype.neg=function(N){return N.isZero()?N.clone():this.m.sub(N)._forceRed(this)},G.prototype.add=function(N,j){this._verify2(N,j);var re=N.add(j);return re.cmp(this.m)>=0&&re.isub(this.m),re._forceRed(this)},G.prototype.iadd=function(N,j){this._verify2(N,j);var re=N.iadd(j);return re.cmp(this.m)>=0&&re.isub(this.m),re},G.prototype.sub=function(N,j){this._verify2(N,j);var re=N.sub(j);return re.cmpn(0)<0&&re.iadd(this.m),re._forceRed(this)},G.prototype.isub=function(N,j){this._verify2(N,j);var re=N.isub(j);return re.cmpn(0)<0&&re.iadd(this.m),re},G.prototype.shl=function(N,j){return this._verify1(N),this.imod(N.ushln(j))},G.prototype.imul=function(N,j){return this._verify2(N,j),this.imod(N.imul(j))},G.prototype.mul=function(N,j){return this._verify2(N,j),this.imod(N.mul(j))},G.prototype.isqr=function(N){return this.imul(N,N.clone())},G.prototype.sqr=function(N){return this.mul(N,N)},G.prototype.sqrt=function(N){if(N.isZero())return N.clone();var j=this.m.andln(3);if(u(j%2===1),j===3){var re=this.m.add(new f(1)).iushrn(2);return this.pow(N,re)}for(var oe=this.m.subn(1),_e=0;!oe.isZero()&&oe.andln(1)===0;)_e++,oe.iushrn(1);u(!oe.isZero());var Me=new f(1).toRed(this),ke=Me.redNeg(),me=this.m.subn(1).iushrn(1),ie=this.m.bitLength();for(ie=new f(2*ie*ie).toRed(this);this.pow(ie,me).cmp(ke)!==0;)ie.redIAdd(ke);for(var Se=this.pow(ie,oe),Le=this.pow(N,oe.addn(1).iushrn(1)),Ae=this.pow(N,oe),De=_e;Ae.cmp(Me)!==0;){for(var Pe=Ae,ge=0;Pe.cmp(Me)!==0;ge++)Pe=Pe.redSqr();u(ge=0;_e--){for(var Se=j.words[_e],Le=ie-1;Le>=0;Le--){var Ae=Se>>Le&1;if(Me!==oe[0]&&(Me=this.sqr(Me)),Ae===0&&ke===0){me=0;continue}ke<<=1,ke|=Ae,me++,!(me!==re&&(_e!==0||Le!==0))&&(Me=this.mul(Me,oe[ke]),me=0,ke=0)}ie=26}return Me},G.prototype.convertTo=function(N){var j=N.umod(this.m);return j===N?j.clone():j},G.prototype.convertFrom=function(N){var j=N.clone();return j.red=null,j},f.mont=function(N){return new Z(N)};function Z(H){G.call(this,H),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new f(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}c(Z,G),Z.prototype.convertTo=function(N){return this.imod(N.ushln(this.shift))},Z.prototype.convertFrom=function(N){var j=this.imod(N.mul(this.rinv));return j.red=null,j},Z.prototype.imul=function(N,j){if(N.isZero()||j.isZero())return N.words[0]=0,N.length=1,N;var re=N.imul(j),oe=re.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_e=re.isub(oe).iushrn(this.shift),Me=_e;return _e.cmp(this.m)>=0?Me=_e.isub(this.m):_e.cmpn(0)<0&&(Me=_e.iadd(this.m)),Me._forceRed(this)},Z.prototype.mul=function(N,j){if(N.isZero()||j.isZero())return new f(0)._forceRed(this);var re=N.mul(j),oe=re.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_e=re.isub(oe).iushrn(this.shift),Me=_e;return _e.cmp(this.m)>=0?Me=_e.isub(this.m):_e.cmpn(0)<0&&(Me=_e.iadd(this.m)),Me._forceRed(this)},Z.prototype.invm=function(N){var j=this.imod(N._invmp(this.m).mul(this.r2));return j._forceRed(this)}}(i,this)},6204:function(i){"use strict";i.exports=a;function a(o){var s,l,u,c=o.length,f=0;for(s=0;s>>1;if(!(M<=0)){var g,P=s.mallocDouble(2*M*x),T=s.mallocInt32(x);if(x=f(C,M,P,T),x>0){if(M===1&&L)l.init(x),g=l.sweepComplete(M,A,0,x,P,T,0,x,P,T);else{var z=s.mallocDouble(2*M*k),O=s.mallocInt32(k);k=f(E,M,z,O),k>0&&(l.init(x+k),M===1?g=l.sweepBipartite(M,A,0,x,P,T,0,k,z,O):g=u(M,A,L,x,P,T,k,z,O),s.free(z),s.free(O))}s.free(P),s.free(T)}return g}}}var d;function v(C,E){d.push([C,E])}function _(C){return d=[],h(C,C,v,!0),d}function b(C,E){return d=[],h(C,E,v,!1),d}function p(C,E,A){switch(arguments.length){case 1:return _(C);case 2:return typeof E=="function"?h(C,C,E,!0):b(C,E);case 3:return h(C,E,A,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455:function(i,a){"use strict";function o(){function u(h,d,v,_,b,p,C,E,A,L,x){for(var k=2*h,M=_,g=k*_;MA-E?u(h,d,v,_,b,p,C,E,A,L,x):c(h,d,v,_,b,p,C,E,A,L,x)}return f}function s(){function u(v,_,b,p,C,E,A,L,x,k,M){for(var g=2*v,P=p,T=g*p;Pk-x?p?u(v,_,b,C,E,A,L,x,k,M,g):c(v,_,b,C,E,A,L,x,k,M,g):p?f(v,_,b,C,E,A,L,x,k,M,g):h(v,_,b,C,E,A,L,x,k,M,g)}return d}function l(u){return u?o():s()}a.partial=l(!1),a.full=l(!0)},7150:function(i,a,o){"use strict";i.exports=H;var s=o(1888),l=o(8828),u=o(2455),c=u.partial,f=u.full,h=o(855),d=o(3545),v=o(8105),_=128,b=1<<22,p=1<<22,C=v("!(lo>=p0)&&!(p1>=hi)"),E=v("lo===p0"),A=v("lo0;){Se-=1;var De=Se*M,Pe=T[De],ge=T[De+1],Fe=T[De+2],ce=T[De+3],Ye=T[De+4],ct=T[De+5],pt=Se*g,Wt=z[pt],st=z[pt+1],lt=ct&1,Gt=!!(ct&16),Nt=_e,$t=Me,sr=me,wr=ie;if(lt&&(Nt=me,$t=ie,sr=_e,wr=Me),!(ct&2&&(Fe=A(N,Pe,ge,Fe,Nt,$t,st),ge>=Fe))&&!(ct&4&&(ge=L(N,Pe,ge,Fe,Nt,$t,Wt),ge>=Fe))){var ur=Fe-ge,Qe=Ye-ce;if(Gt){if(N*ur*(ur+Qe)v&&b[k+d]>L;--x,k-=C){for(var M=k,g=k+C,P=0;P>>1,L=2*h,x=A,k=b[L*A+d];C=z?(x=T,k=z):P>=V?(x=g,k=P):(x=O,k=V):z>=V?(x=T,k=z):V>=P?(x=g,k=P):(x=O,k=V);for(var H=L*(E-1),N=L*x,G=0;G=p0)&&!(p1>=hi)":d};function o(v){return a[v]}function s(v,_,b,p,C,E,A){for(var L=2*v,x=L*b,k=x,M=b,g=_,P=v+_,T=b;p>T;++T,x+=L){var z=C[x+g];if(z===A)if(M===T)M+=1,k+=L;else{for(var O=0;L>O;++O){var V=C[x+O];C[x+O]=C[k],C[k++]=V}var G=E[T];E[T]=E[M],E[M++]=G}}return M}function l(v,_,b,p,C,E,A){for(var L=2*v,x=L*b,k=x,M=b,g=_,P=v+_,T=b;p>T;++T,x+=L){var z=C[x+g];if(zO;++O){var V=C[x+O];C[x+O]=C[k],C[k++]=V}var G=E[T];E[T]=E[M],E[M++]=G}}return M}function u(v,_,b,p,C,E,A){for(var L=2*v,x=L*b,k=x,M=b,g=_,P=v+_,T=b;p>T;++T,x+=L){var z=C[x+P];if(z<=A)if(M===T)M+=1,k+=L;else{for(var O=0;L>O;++O){var V=C[x+O];C[x+O]=C[k],C[k++]=V}var G=E[T];E[T]=E[M],E[M++]=G}}return M}function c(v,_,b,p,C,E,A){for(var L=2*v,x=L*b,k=x,M=b,g=_,P=v+_,T=b;p>T;++T,x+=L){var z=C[x+P];if(z<=A)if(M===T)M+=1,k+=L;else{for(var O=0;L>O;++O){var V=C[x+O];C[x+O]=C[k],C[k++]=V}var G=E[T];E[T]=E[M],E[M++]=G}}return M}function f(v,_,b,p,C,E,A){for(var L=2*v,x=L*b,k=x,M=b,g=_,P=v+_,T=b;p>T;++T,x+=L){var z=C[x+g],O=C[x+P];if(z<=A&&A<=O)if(M===T)M+=1,k+=L;else{for(var V=0;L>V;++V){var G=C[x+V];C[x+V]=C[k],C[k++]=G}var Z=E[T];E[T]=E[M],E[M++]=Z}}return M}function h(v,_,b,p,C,E,A){for(var L=2*v,x=L*b,k=x,M=b,g=_,P=v+_,T=b;p>T;++T,x+=L){var z=C[x+g],O=C[x+P];if(zV;++V){var G=C[x+V];C[x+V]=C[k],C[k++]=G}var Z=E[T];E[T]=E[M],E[M++]=Z}}return M}function d(v,_,b,p,C,E,A,L){for(var x=2*v,k=x*b,M=k,g=b,P=_,T=v+_,z=b;p>z;++z,k+=x){var O=C[k+P],V=C[k+T];if(!(O>=A)&&!(L>=V))if(g===z)g+=1,M+=x;else{for(var G=0;x>G;++G){var Z=C[k+G];C[k+G]=C[M],C[M++]=Z}var H=E[z];E[z]=E[g],E[g++]=H}}return g}},4192:function(i){"use strict";i.exports=o;var a=32;function o(_,b){b<=4*a?s(0,b-1,_):v(0,b-1,_)}function s(_,b,p){for(var C=2*(_+1),E=_+1;E<=b;++E){for(var A=p[C++],L=p[C++],x=E,k=C-2;x-- >_;){var M=p[k-2],g=p[k-1];if(Mp[b+1]:!0}function d(_,b,p,C){_*=2;var E=C[_];return E>1,x=L-C,k=L+C,M=E,g=x,P=L,T=k,z=A,O=_+1,V=b-1,G=0;h(M,g,p)&&(G=M,M=g,g=G),h(T,z,p)&&(G=T,T=z,z=G),h(M,P,p)&&(G=M,M=P,P=G),h(g,P,p)&&(G=g,g=P,P=G),h(M,T,p)&&(G=M,M=T,T=G),h(P,T,p)&&(G=P,P=T,T=G),h(g,z,p)&&(G=g,g=z,z=G),h(g,P,p)&&(G=g,g=P,P=G),h(T,z,p)&&(G=T,T=z,z=G);for(var Z=p[2*g],H=p[2*g+1],N=p[2*T],j=p[2*T+1],re=2*M,oe=2*P,_e=2*z,Me=2*E,ke=2*L,me=2*A,ie=0;ie<2;++ie){var Se=p[re+ie],Le=p[oe+ie],Ae=p[_e+ie];p[Me+ie]=Se,p[ke+ie]=Le,p[me+ie]=Ae}u(x,_,p),u(k,b,p);for(var De=O;De<=V;++De)if(d(De,Z,H,p))De!==O&&l(De,O,p),++O;else if(!d(De,N,j,p))for(;;)if(d(V,N,j,p)){d(V,Z,H,p)?(c(De,O,V,p),++O,--V):(l(De,V,p),--V);break}else{if(--V>>1;u(C,Le);for(var Ae=0,De=0,ke=0;ke=c)Pe=Pe-c|0,A(v,_,De--,Pe);else if(Pe>=0)A(h,d,Ae--,Pe);else if(Pe<=-c){Pe=-Pe-c|0;for(var ge=0;ge>>1;u(C,Le);for(var Ae=0,De=0,Pe=0,ke=0;ke>1===C[2*ke+3]>>1&&(Fe=2,ke+=1),ge<0){for(var ce=-(ge>>1)-1,Ye=0;Ye>1)-1;Fe===0?A(h,d,Ae--,ce):Fe===1?A(v,_,De--,ce):Fe===2&&A(b,p,Pe--,ce)}}}function M(P,T,z,O,V,G,Z,H,N,j,re,oe){var _e=0,Me=2*P,ke=T,me=T+P,ie=1,Se=1;O?Se=c:ie=c;for(var Le=V;Le>>1;u(C,ge);for(var Fe=0,Le=0;Le=c?(Ye=!O,Ae-=c):(Ye=!!O,Ae-=1),Ye)L(h,d,Fe++,Ae);else{var ct=oe[Ae],pt=Me*Ae,Wt=re[pt+T+1],st=re[pt+T+1+P];e:for(var lt=0;lt>>1;u(C,Ae);for(var De=0,me=0;me=c)h[De++]=ie-c;else{ie-=1;var ge=re[ie],Fe=_e*ie,ce=j[Fe+T+1],Ye=j[Fe+T+1+P];e:for(var ct=0;ct=0;--ct)if(h[ct]===ie){for(var lt=ct+1;lt0;){for(var E=d.pop(),b=d.pop(),A=-1,L=-1,p=_[b],k=1;k=0||(h.flip(b,E),u(f,h,d,A,b,L),u(f,h,d,b,L,A),u(f,h,d,L,E,A),u(f,h,d,E,A,L))}}},5023:function(i,a,o){"use strict";var s=o(2478);i.exports=d;function l(v,_,b,p,C,E,A){this.cells=v,this.neighbor=_,this.flags=p,this.constraint=b,this.active=C,this.next=E,this.boundary=A}var u=l.prototype;function c(v,_){return v[0]-_[0]||v[1]-_[1]||v[2]-_[2]}u.locate=function(){var v=[0,0,0];return function(_,b,p){var C=_,E=b,A=p;return b0||A.length>0;){for(;E.length>0;){var g=E.pop();if(L[g]!==-C){L[g]=C;for(var P=x[g],T=0;T<3;++T){var z=M[3*g+T];z>=0&&L[z]===0&&(k[3*g+T]?A.push(z):(E.push(z),L[z]=C))}}}var O=A;A=E,E=O,A.length=0,C=-C}var V=h(x,L,_);return b?V.concat(p.boundary):V}},8902:function(i,a,o){"use strict";var s=o(2478),l=o(3250)[3],u=0,c=1,f=2;i.exports=A;function h(L,x,k,M,g){this.a=L,this.b=x,this.idx=k,this.lowerIds=M,this.upperIds=g}function d(L,x,k,M){this.a=L,this.b=x,this.type=k,this.idx=M}function v(L,x){var k=L.a[0]-x.a[0]||L.a[1]-x.a[1]||L.type-x.type;return k||L.type!==u&&(k=l(L.a,L.b,x.b),k)?k:L.idx-x.idx}function _(L,x){return l(L.a,L.b,x)}function b(L,x,k,M,g){for(var P=s.lt(x,M,_),T=s.gt(x,M,_),z=P;z1&&l(k[V[Z-2]],k[V[Z-1]],M)>0;)L.push([V[Z-1],V[Z-2],g]),Z-=1;V.length=Z,V.push(g);for(var G=O.upperIds,Z=G.length;Z>1&&l(k[G[Z-2]],k[G[Z-1]],M)<0;)L.push([G[Z-2],G[Z-1],g]),Z-=1;G.length=Z,G.push(g)}}function p(L,x){var k;return L.a[0]O[0]&&g.push(new d(O,z,f,P),new d(z,O,c,P))}g.sort(v);for(var V=g[0].a[0]-(1+Math.abs(g[0].a[0]))*Math.pow(2,-52),G=[new h([V,1],[V,0],-1,[],[],[],[])],Z=[],P=0,H=g.length;P=0}}(),u.removeTriangle=function(h,d,v){var _=this.stars;c(_[h],d,v),c(_[d],v,h),c(_[v],h,d)},u.addTriangle=function(h,d,v){var _=this.stars;_[h].push(d,v),_[d].push(v,h),_[v].push(h,d)},u.opposite=function(h,d){for(var v=this.stars[d],_=1,b=v.length;_=0;--N){var Se=Z[N];j=Se[0];var Le=V[j],Ae=Le[0],De=Le[1],Pe=O[Ae],ge=O[De];if((Pe[0]-ge[0]||Pe[1]-ge[1])<0){var Fe=Ae;Ae=De,De=Fe}Le[0]=Ae;var ce=Le[1]=Se[1],Ye;for(H&&(Ye=Le[2]);N>0&&Z[N-1][0]===j;){var Se=Z[--N],ct=Se[1];H?V.push([ce,ct,Ye]):V.push([ce,ct]),ce=ct}H?V.push([ce,De,Ye]):V.push([ce,De])}return re}function x(O,V,G){for(var Z=V.length,H=new s(Z),N=[],j=0;jV[2]?1:0)}function g(O,V,G){if(O.length!==0){if(V)for(var Z=0;Z0||j.length>0}function z(O,V,G){var Z;if(G){Z=V;for(var H=new Array(V.length),N=0;NL+1)throw new Error(E+" map requires nshades to be at least size "+C.length);Array.isArray(d.alpha)?d.alpha.length!==2?x=[1,1]:x=d.alpha.slice():typeof d.alpha=="number"?x=[d.alpha,d.alpha]:x=[1,1],v=C.map(function(z){return Math.round(z.index*L)}),x[0]=Math.min(Math.max(x[0],0),1),x[1]=Math.min(Math.max(x[1],0),1);var M=C.map(function(z,O){var V=C[O].index,G=C[O].rgb.slice();return G.length===4&&G[3]>=0&&G[3]<=1||(G[3]=x[0]+(x[1]-x[0])*V),G}),g=[];for(k=0;k=0}function d(v,_,b,p){var C=s(_,b,p);if(C===0){var E=l(s(v,_,b)),A=l(s(v,_,p));if(E===A){if(E===0){var L=h(v,_,b),x=h(v,_,p);return L===x?0:L?1:-1}return 0}else{if(A===0)return E>0||h(v,_,p)?-1:1;if(E===0)return A>0||h(v,_,b)?1:-1}return l(A-E)}var k=s(v,_,b);if(k>0)return C>0&&s(v,_,p)>0?1:-1;if(k<0)return C>0||s(v,_,p)>0?1:-1;var M=s(v,_,p);return M>0||h(v,_,b)?1:-1}},8572:function(i){"use strict";i.exports=function(o){return o<0?-1:o>0?1:0}},8507:function(i){i.exports=s;var a=Math.min;function o(l,u){return l-u}function s(l,u){var c=l.length,f=l.length-u.length;if(f)return f;switch(c){case 0:return 0;case 1:return l[0]-u[0];case 2:return l[0]+l[1]-u[0]-u[1]||a(l[0],l[1])-a(u[0],u[1]);case 3:var h=l[0]+l[1],d=u[0]+u[1];if(f=h+l[2]-(d+u[2]),f)return f;var v=a(l[0],l[1]),_=a(u[0],u[1]);return a(v,l[2])-a(_,u[2])||a(v+l[2],h)-a(_+u[2],d);case 4:var b=l[0],p=l[1],C=l[2],E=l[3],A=u[0],L=u[1],x=u[2],k=u[3];return b+p+C+E-(A+L+x+k)||a(b,p,C,E)-a(A,L,x,k,A)||a(b+p,b+C,b+E,p+C,p+E,C+E)-a(A+L,A+x,A+k,L+x,L+k,x+k)||a(b+p+C,b+p+E,b+C+E,p+C+E)-a(A+L+x,A+L+k,A+x+k,L+x+k);default:for(var M=l.slice().sort(o),g=u.slice().sort(o),P=0;Po[l][0]&&(l=u);return sl?[[l],[s]]:[[s]]}},4750:function(i,a,o){"use strict";i.exports=l;var s=o(3090);function l(u){var c=s(u),f=c.length;if(f<=2)return[];for(var h=new Array(f),d=c[f-1],v=0;v=d[A]&&(E+=1);p[C]=E}}return h}function f(h,d){try{return s(h,!0)}catch(p){var v=l(h);if(v.length<=d)return[];var _=u(h,v),b=s(_,!0);return c(b,v)}}},4769:function(i){"use strict";function a(s,l,u,c,f,h){var d=6*f*f-6*f,v=3*f*f-4*f+1,_=-6*f*f+6*f,b=3*f*f-2*f;if(s.length){h||(h=new Array(s.length));for(var p=s.length-1;p>=0;--p)h[p]=d*s[p]+v*l[p]+_*u[p]+b*c[p];return h}return d*s+v*l+_*u[p]+b*c}function o(s,l,u,c,f,h){var d=f-1,v=f*f,_=d*d,b=(1+2*f)*_,p=f*_,C=v*(3-2*f),E=v*d;if(s.length){h||(h=new Array(s.length));for(var A=s.length-1;A>=0;--A)h[A]=b*s[A]+p*l[A]+C*u[A]+E*c[A];return h}return b*s+p*l+C*u+E*c}i.exports=o,i.exports.derivative=a},7642:function(i,a,o){"use strict";var s=o(8954),l=o(1682);i.exports=h;function u(d,v){this.point=d,this.index=v}function c(d,v){for(var _=d.point,b=v.point,p=_.length,C=0;C=2)return!1;G[H]=N}return!0}):V=V.filter(function(G){for(var Z=0;Z<=b;++Z){var H=P[G[Z]];if(H<0)return!1;G[Z]=H}return!0}),b&1)for(var E=0;E>>31},i.exports.exponent=function(C){var E=i.exports.hi(C);return(E<<1>>>21)-1023},i.exports.fraction=function(C){var E=i.exports.lo(C),A=i.exports.hi(C),L=A&(1<<20)-1;return A&2146435072&&(L+=1048576),[E,L]},i.exports.denormalized=function(C){var E=i.exports.hi(C);return!(E&2146435072)}},1338:function(i){"use strict";function a(l,u,c){var f=l[c]|0;if(f<=0)return[];var h=new Array(f),d;if(c===l.length-1)for(d=0;d0)return o(l|0,u);break;case"object":if(typeof l.length=="number")return a(l,u,0);break}return[]}i.exports=s},3134:function(i,a,o){"use strict";i.exports=l;var s=o(1682);function l(u,c){var f=u.length;if(typeof c!="number"){c=0;for(var h=0;h=b-1)for(var k=E.length-1,g=v-_[b-1],M=0;M=b-1)for(var x=E.length-1,k=v-_[b-1],M=0;M=0;--b)if(v[--_])return!1;return!0},f.jump=function(v){var _=this.lastT(),b=this.dimension;if(!(v<_||arguments.length!==b+1)){var p=this._state,C=this._velocity,E=p.length-this.dimension,A=this.bounds,L=A[0],x=A[1];this._time.push(_,v);for(var k=0;k<2;++k)for(var M=0;M0;--M)p.push(u(L[M-1],x[M-1],arguments[M])),C.push(0)}},f.push=function(v){var _=this.lastT(),b=this.dimension;if(!(v<_||arguments.length!==b+1)){var p=this._state,C=this._velocity,E=p.length-this.dimension,A=v-_,L=this.bounds,x=L[0],k=L[1],M=A>1e-6?1/A:0;this._time.push(v);for(var g=b;g>0;--g){var P=u(x[g-1],k[g-1],arguments[g]);p.push(P),C.push((P-p[E++])*M)}}},f.set=function(v){var _=this.dimension;if(!(v0;--L)b.push(u(E[L-1],A[L-1],arguments[L])),p.push(0)}},f.move=function(v){var _=this.lastT(),b=this.dimension;if(!(v<=_||arguments.length!==b+1)){var p=this._state,C=this._velocity,E=p.length-this.dimension,A=this.bounds,L=A[0],x=A[1],k=v-_,M=k>1e-6?1/k:0;this._time.push(v);for(var g=b;g>0;--g){var P=arguments[g];p.push(u(L[g-1],x[g-1],p[E++]+P)),C.push(P*M)}}},f.idle=function(v){var _=this.lastT();if(!(v<_)){var b=this.dimension,p=this._state,C=this._velocity,E=p.length-b,A=this.bounds,L=A[0],x=A[1],k=v-_;this._time.push(v);for(var M=b-1;M>=0;--M)p.push(u(L[M],x[M],p[E]+k*C[E])),C.push(0),E+=1}};function h(v){for(var _=new Array(v),b=0;b=0;--O){var g=P[O];T[O]<=0?P[O]=new s(g._color,g.key,g.value,P[O+1],g.right,g._count+1):P[O]=new s(g._color,g.key,g.value,g.left,P[O+1],g._count+1)}for(var O=P.length-1;O>1;--O){var V=P[O-1],g=P[O];if(V._color===o||g._color===o)break;var G=P[O-2];if(G.left===V)if(V.left===g){var Z=G.right;if(Z&&Z._color===a)V._color=o,G.right=u(o,Z),G._color=a,O-=1;else{if(G._color=a,G.left=V.right,V._color=o,V.right=G,P[O-2]=V,P[O-1]=g,c(G),c(V),O>=3){var H=P[O-3];H.left===G?H.left=V:H.right=V}break}}else{var Z=G.right;if(Z&&Z._color===a)V._color=o,G.right=u(o,Z),G._color=a,O-=1;else{if(V.right=g.left,G._color=a,G.left=g.right,g._color=o,g.left=V,g.right=G,P[O-2]=g,P[O-1]=V,c(G),c(V),c(g),O>=3){var H=P[O-3];H.left===G?H.left=g:H.right=g}break}}else if(V.right===g){var Z=G.left;if(Z&&Z._color===a)V._color=o,G.left=u(o,Z),G._color=a,O-=1;else{if(G._color=a,G.right=V.left,V._color=o,V.left=G,P[O-2]=V,P[O-1]=g,c(G),c(V),O>=3){var H=P[O-3];H.right===G?H.right=V:H.left=V}break}}else{var Z=G.left;if(Z&&Z._color===a)V._color=o,G.left=u(o,Z),G._color=a,O-=1;else{if(V.left=g.right,G._color=a,G.right=g.left,g._color=o,g.right=V,g.left=G,P[O-2]=g,P[O-1]=V,c(G),c(V),c(g),O>=3){var H=P[O-3];H.right===G?H.right=g:H.left=g}break}}}return P[0]._color=o,new f(M,P[0])};function d(x,k){if(k.left){var M=d(x,k.left);if(M)return M}var M=x(k.key,k.value);if(M)return M;if(k.right)return d(x,k.right)}function v(x,k,M,g){var P=k(x,g.key);if(P<=0){if(g.left){var T=v(x,k,M,g.left);if(T)return T}var T=M(g.key,g.value);if(T)return T}if(g.right)return v(x,k,M,g.right)}function _(x,k,M,g,P){var T=M(x,P.key),z=M(k,P.key),O;if(T<=0&&(P.left&&(O=_(x,k,M,g,P.left),O)||z>0&&(O=g(P.key,P.value),O)))return O;if(z>0&&P.right)return _(x,k,M,g,P.right)}h.forEach=function(k,M,g){if(this.root)switch(arguments.length){case 1:return d(k,this.root);case 2:return v(M,this._compare,k,this.root);case 3:return this._compare(M,g)>=0?void 0:_(M,g,this._compare,k,this.root)}},Object.defineProperty(h,"begin",{get:function(){for(var x=[],k=this.root;k;)x.push(k),k=k.left;return new b(this,x)}}),Object.defineProperty(h,"end",{get:function(){for(var x=[],k=this.root;k;)x.push(k),k=k.right;return new b(this,x)}}),h.at=function(x){if(x<0)return new b(this,[]);for(var k=this.root,M=[];;){if(M.push(k),k.left){if(x=k.right._count)break;k=k.right}else break}return new b(this,[])},h.ge=function(x){for(var k=this._compare,M=this.root,g=[],P=0;M;){var T=k(x,M.key);g.push(M),T<=0&&(P=g.length),T<=0?M=M.left:M=M.right}return g.length=P,new b(this,g)},h.gt=function(x){for(var k=this._compare,M=this.root,g=[],P=0;M;){var T=k(x,M.key);g.push(M),T<0&&(P=g.length),T<0?M=M.left:M=M.right}return g.length=P,new b(this,g)},h.lt=function(x){for(var k=this._compare,M=this.root,g=[],P=0;M;){var T=k(x,M.key);g.push(M),T>0&&(P=g.length),T<=0?M=M.left:M=M.right}return g.length=P,new b(this,g)},h.le=function(x){for(var k=this._compare,M=this.root,g=[],P=0;M;){var T=k(x,M.key);g.push(M),T>=0&&(P=g.length),T<0?M=M.left:M=M.right}return g.length=P,new b(this,g)},h.find=function(x){for(var k=this._compare,M=this.root,g=[];M;){var P=k(x,M.key);if(g.push(M),P===0)return new b(this,g);P<=0?M=M.left:M=M.right}return new b(this,[])},h.remove=function(x){var k=this.find(x);return k?k.remove():this},h.get=function(x){for(var k=this._compare,M=this.root;M;){var g=k(x,M.key);if(g===0)return M.value;g<=0?M=M.left:M=M.right}};function b(x,k){this.tree=x,this._stack=k}var p=b.prototype;Object.defineProperty(p,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(p,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),p.clone=function(){return new b(this.tree,this._stack.slice())};function C(x,k){x.key=k.key,x.value=k.value,x.left=k.left,x.right=k.right,x._color=k._color,x._count=k._count}function E(x){for(var k,M,g,P,T=x.length-1;T>=0;--T){if(k=x[T],T===0){k._color=o;return}if(M=x[T-1],M.left===k){if(g=M.right,g.right&&g.right._color===a){if(g=M.right=l(g),P=g.right=l(g.right),M.right=g.left,g.left=M,g.right=P,g._color=M._color,k._color=o,M._color=o,P._color=o,c(M),c(g),T>1){var z=x[T-2];z.left===M?z.left=g:z.right=g}x[T-1]=g;return}else if(g.left&&g.left._color===a){if(g=M.right=l(g),P=g.left=l(g.left),M.right=P.left,g.left=P.right,P.left=M,P.right=g,P._color=M._color,M._color=o,g._color=o,k._color=o,c(M),c(g),c(P),T>1){var z=x[T-2];z.left===M?z.left=P:z.right=P}x[T-1]=P;return}if(g._color===o)if(M._color===a){M._color=o,M.right=u(a,g);return}else{M.right=u(a,g);continue}else{if(g=l(g),M.right=g.left,g.left=M,g._color=M._color,M._color=a,c(M),c(g),T>1){var z=x[T-2];z.left===M?z.left=g:z.right=g}x[T-1]=g,x[T]=M,T+11){var z=x[T-2];z.right===M?z.right=g:z.left=g}x[T-1]=g;return}else if(g.right&&g.right._color===a){if(g=M.left=l(g),P=g.right=l(g.right),M.left=P.right,g.right=P.left,P.right=M,P.left=g,P._color=M._color,M._color=o,g._color=o,k._color=o,c(M),c(g),c(P),T>1){var z=x[T-2];z.right===M?z.right=P:z.left=P}x[T-1]=P;return}if(g._color===o)if(M._color===a){M._color=o,M.left=u(a,g);return}else{M.left=u(a,g);continue}else{if(g=l(g),M.left=g.right,g.right=M,g._color=M._color,M._color=a,c(M),c(g),T>1){var z=x[T-2];z.right===M?z.right=g:z.left=g}x[T-1]=g,x[T]=M,T+1=0;--g){var M=x[g];M.left===x[g+1]?k[g]=new s(M._color,M.key,M.value,k[g+1],M.right,M._count):k[g]=new s(M._color,M.key,M.value,M.left,k[g+1],M._count)}if(M=k[k.length-1],M.left&&M.right){var P=k.length;for(M=M.left;M.right;)k.push(M),M=M.right;var T=k[P-1];k.push(new s(M._color,T.key,T.value,M.left,M.right,M._count)),k[P-1].key=M.key,k[P-1].value=M.value;for(var g=k.length-2;g>=P;--g)M=k[g],k[g]=new s(M._color,M.key,M.value,M.left,k[g+1],M._count);k[P-1].left=k[P]}if(M=k[k.length-1],M._color===a){var z=k[k.length-2];z.left===M?z.left=null:z.right===M&&(z.right=null),k.pop();for(var g=0;g0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(p,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(p,"index",{get:function(){var x=0,k=this._stack;if(k.length===0){var M=this.tree.root;return M?M._count:0}else k[k.length-1].left&&(x=k[k.length-1].left._count);for(var g=k.length-2;g>=0;--g)k[g+1]===k[g].right&&(++x,k[g].left&&(x+=k[g].left._count));return x},enumerable:!0}),p.next=function(){var x=this._stack;if(x.length!==0){var k=x[x.length-1];if(k.right)for(k=k.right;k;)x.push(k),k=k.left;else for(x.pop();x.length>0&&x[x.length-1].right===k;)k=x[x.length-1],x.pop()}},Object.defineProperty(p,"hasNext",{get:function(){var x=this._stack;if(x.length===0)return!1;if(x[x.length-1].right)return!0;for(var k=x.length-1;k>0;--k)if(x[k-1].left===x[k])return!0;return!1}}),p.update=function(x){var k=this._stack;if(k.length===0)throw new Error("Can't update empty node!");var M=new Array(k.length),g=k[k.length-1];M[M.length-1]=new s(g._color,g.key,x,g.left,g.right,g._count);for(var P=k.length-2;P>=0;--P)g=k[P],g.left===k[P+1]?M[P]=new s(g._color,g.key,g.value,M[P+1],g.right,g._count):M[P]=new s(g._color,g.key,g.value,g.left,M[P+1],g._count);return new f(this.tree._compare,M[0])},p.prev=function(){var x=this._stack;if(x.length!==0){var k=x[x.length-1];if(k.left)for(k=k.left;k;)x.push(k),k=k.right;else for(x.pop();x.length>0&&x[x.length-1].left===k;)k=x[x.length-1],x.pop()}},Object.defineProperty(p,"hasPrev",{get:function(){var x=this._stack;if(x.length===0)return!1;if(x[x.length-1].left)return!0;for(var k=x.length-1;k>0;--k)if(x[k-1].right===x[k])return!0;return!1}});function A(x,k){return xk?1:0}function L(x){return new f(x||A,null)}},3837:function(i,a,o){"use strict";i.exports=O;var s=o(4935),l=o(501),u=o(5304),c=o(6429),f=o(6444),h=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),d=ArrayBuffer,v=DataView;function _(V){return d.isView(V)&&!(V instanceof v)}function b(V){return Array.isArray(V)||_(V)}function p(V,G){return V[0]=G[0],V[1]=G[1],V[2]=G[2],V}function C(V){this.gl=V,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["sans-serif","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=u(V)}var E=C.prototype;E.update=function(V){V=V||{};function G(Ae,De,Pe){if(Pe in V){var ge=V[Pe],Fe=this[Pe],ce;(Ae?b(ge)&&b(ge[0]):b(ge))?this[Pe]=ce=[De(ge[0]),De(ge[1]),De(ge[2])]:this[Pe]=ce=[De(ge),De(ge),De(ge)];for(var Ye=0;Ye<3;++Ye)if(ce[Ye]!==Fe[Ye])return!0}return!1}var Z=G.bind(this,!1,Number),H=G.bind(this,!1,Boolean),N=G.bind(this,!1,String),j=G.bind(this,!0,function(Ae){if(b(Ae)){if(Ae.length===3)return[+Ae[0],+Ae[1],+Ae[2],1];if(Ae.length===4)return[+Ae[0],+Ae[1],+Ae[2],+Ae[3]]}return[0,0,0,1]}),re,oe=!1,_e=!1;if("bounds"in V)for(var Me=V.bounds,ke=0;ke<2;++ke)for(var me=0;me<3;++me)Me[ke][me]!==this.bounds[ke][me]&&(_e=!0),this.bounds[ke][me]=Me[ke][me];if("ticks"in V){re=V.ticks,oe=!0,this.autoTicks=!1;for(var ke=0;ke<3;++ke)this.tickSpacing[ke]=0}else Z("tickSpacing")&&(this.autoTicks=!0,_e=!0);if(this._firstInit&&("ticks"in V||"tickSpacing"in V||(this.autoTicks=!0),_e=!0,oe=!0,this._firstInit=!1),_e&&this.autoTicks&&(re=f.create(this.bounds,this.tickSpacing),oe=!0),oe){for(var ke=0;ke<3;++ke)re[ke].sort(function(De,Pe){return De.x-Pe.x});f.equal(re,this.ticks)?oe=!1:this.ticks=re}H("tickEnable"),N("tickFont")&&(oe=!0),N("tickFontStyle")&&(oe=!0),N("tickFontWeight")&&(oe=!0),N("tickFontVariant")&&(oe=!0),Z("tickSize"),Z("tickAngle"),Z("tickPad"),j("tickColor");var ie=N("labels");N("labelFont")&&(ie=!0),N("labelFontStyle")&&(ie=!0),N("labelFontWeight")&&(ie=!0),N("labelFontVariant")&&(ie=!0),H("labelEnable"),Z("labelSize"),Z("labelPad"),j("labelColor"),H("lineEnable"),H("lineMirror"),Z("lineWidth"),j("lineColor"),H("lineTickEnable"),H("lineTickMirror"),Z("lineTickLength"),Z("lineTickWidth"),j("lineTickColor"),H("gridEnable"),Z("gridWidth"),j("gridColor"),H("zeroEnable"),j("zeroLineColor"),Z("zeroLineWidth"),H("backgroundEnable"),j("backgroundColor");var Se=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],Le=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(ie||oe)&&this._text.update(this.bounds,this.labels,Se,this.ticks,Le):this._text=s(this.gl,this.bounds,this.labels,Se,this.ticks,Le),this._lines&&oe&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=l(this.gl,this.bounds,this.ticks))};function A(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var L=[new A,new A,new A];function x(V,G,Z,H,N){for(var j=V.primalOffset,re=V.primalMinor,oe=V.mirrorOffset,_e=V.mirrorMinor,Me=H[G],ke=0;ke<3;++ke)if(G!==ke){var me=j,ie=oe,Se=re,Le=_e;Me&1<0?(Se[ke]=-1,Le[ke]=0):(Se[ke]=0,Le[ke]=1)}}var k=[0,0,0],M={model:h,view:h,projection:h,_ortho:!1};E.isOpaque=function(){return!0},E.isTransparent=function(){return!1},E.drawTransparent=function(V){};var g=0,P=[0,0,0],T=[0,0,0],z=[0,0,0];E.draw=function(V){V=V||M;for(var Pe=this.gl,G=V.model||h,Z=V.view||h,H=V.projection||h,N=this.bounds,j=V._ortho||!1,re=c(G,Z,H,N,j),oe=re.cubeEdges,_e=re.axis,Me=Z[12],ke=Z[13],me=Z[14],ie=Z[15],Se=j?2:1,Le=Se*this.pixelRatio*(H[3]*Me+H[7]*ke+H[11]*me+H[15]*ie)/Pe.drawingBufferHeight,Ae=0;Ae<3;++Ae)this.lastCubeProps.cubeEdges[Ae]=oe[Ae],this.lastCubeProps.axis[Ae]=_e[Ae];for(var De=L,Ae=0;Ae<3;++Ae)x(L[Ae],Ae,this.bounds,oe,_e);for(var Pe=this.gl,ge=k,Ae=0;Ae<3;++Ae)this.backgroundEnable[Ae]?ge[Ae]=_e[Ae]:ge[Ae]=0;this._background.draw(G,Z,H,N,ge,this.backgroundColor),this._lines.bind(G,Z,H,this);for(var Ae=0;Ae<3;++Ae){var Fe=[0,0,0];_e[Ae]>0?Fe[Ae]=N[1][Ae]:Fe[Ae]=N[0][Ae];for(var ce=0;ce<2;++ce){var Ye=(Ae+1+ce)%3,ct=(Ae+1+(ce^1))%3;this.gridEnable[Ye]&&this._lines.drawGrid(Ye,ct,this.bounds,Fe,this.gridColor[Ye],this.gridWidth[Ye]*this.pixelRatio)}for(var ce=0;ce<2;++ce){var Ye=(Ae+1+ce)%3,ct=(Ae+1+(ce^1))%3;this.zeroEnable[ct]&&Math.min(N[0][ct],N[1][ct])<=0&&Math.max(N[0][ct],N[1][ct])>=0&&this._lines.drawZero(Ye,ct,this.bounds,Fe,this.zeroLineColor[ct],this.zeroLineWidth[ct]*this.pixelRatio)}}for(var Ae=0;Ae<3;++Ae){this.lineEnable[Ae]&&this._lines.drawAxisLine(Ae,this.bounds,De[Ae].primalOffset,this.lineColor[Ae],this.lineWidth[Ae]*this.pixelRatio),this.lineMirror[Ae]&&this._lines.drawAxisLine(Ae,this.bounds,De[Ae].mirrorOffset,this.lineColor[Ae],this.lineWidth[Ae]*this.pixelRatio);for(var pt=p(P,De[Ae].primalMinor),Wt=p(T,De[Ae].mirrorMinor),st=this.lineTickLength,ce=0;ce<3;++ce){var lt=Le/G[5*ce];pt[ce]*=st[ce]*lt,Wt[ce]*=st[ce]*lt}this.lineTickEnable[Ae]&&this._lines.drawAxisTicks(Ae,De[Ae].primalOffset,pt,this.lineTickColor[Ae],this.lineTickWidth[Ae]*this.pixelRatio),this.lineTickMirror[Ae]&&this._lines.drawAxisTicks(Ae,De[Ae].mirrorOffset,Wt,this.lineTickColor[Ae],this.lineTickWidth[Ae]*this.pixelRatio)}this._lines.unbind(),this._text.bind(G,Z,H,this.pixelRatio);var Gt,Nt=.5,$t,sr;function wr(Ft){sr=[0,0,0],sr[Ft]=1}function ur(Ft,bt,yt){var Yt=(Ft+1)%3,lr=(Ft+2)%3,Tr=bt[Yt],Rr=bt[lr],ei=yt[Yt],Wr=yt[lr];if(Tr>0&&Wr>0){wr(Yt);return}else if(Tr>0&&Wr<0){wr(Yt);return}else if(Tr<0&&Wr>0){wr(Yt);return}else if(Tr<0&&Wr<0){wr(Yt);return}else if(Rr>0&&ei>0){wr(lr);return}else if(Rr>0&&ei<0){wr(lr);return}else if(Rr<0&&ei>0){wr(lr);return}else if(Rr<0&&ei<0){wr(lr);return}}for(var Ae=0;Ae<3;++Ae){for(var Qe=De[Ae].primalMinor,Et=De[Ae].mirrorMinor,er=p(z,De[Ae].primalOffset),ce=0;ce<3;++ce)this.lineTickEnable[Ae]&&(er[ce]+=Le*Qe[ce]*Math.max(this.lineTickLength[ce],0)/G[5*ce]);var Ut=[0,0,0];if(Ut[Ae]=1,this.tickEnable[Ae]){this.tickAngle[Ae]===-3600?(this.tickAngle[Ae]=0,this.tickAlign[Ae]="auto"):this.tickAlign[Ae]=-1,$t=1,Gt=[this.tickAlign[Ae],Nt,$t],Gt[0]==="auto"?Gt[0]=g:Gt[0]=parseInt(""+Gt[0]),sr=[0,0,0],ur(Ae,Qe,Et);for(var ce=0;ce<3;++ce)er[ce]+=Le*Qe[ce]*this.tickPad[ce]/G[5*ce];this._text.drawTicks(Ae,this.tickSize[Ae],this.tickAngle[Ae],er,this.tickColor[Ae],Ut,sr,Gt)}if(this.labelEnable[Ae]){$t=0,sr=[0,0,0],this.labels[Ae].length>4&&(wr(Ae),$t=1),Gt=[this.labelAlign[Ae],Nt,$t],Gt[0]==="auto"?Gt[0]=g:Gt[0]=parseInt(""+Gt[0]);for(var ce=0;ce<3;++ce)er[ce]+=Le*Qe[ce]*this.labelPad[ce]/G[5*ce];er[Ae]+=.5*(N[0][Ae]+N[1][Ae]),this._text.drawLabel(Ae,this.labelSize[Ae],this.labelAngle[Ae],er,this.labelColor[Ae],[0,0,0],sr,Gt)}}this._text.unbind()},E.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function O(V,G){var Z=new C(V);return Z.update(G),Z}},5304:function(i,a,o){"use strict";i.exports=h;var s=o(2762),l=o(8116),u=o(1879).bg;function c(d,v,_,b){this.gl=d,this.buffer=v,this.vao=_,this.shader=b}var f=c.prototype;f.draw=function(d,v,_,b,p,C){for(var E=!1,A=0;A<3;++A)E=E||p[A];if(E){var L=this.gl;L.enable(L.POLYGON_OFFSET_FILL),L.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:d,view:v,projection:_,bounds:b,enable:p,colors:C},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),L.disable(L.POLYGON_OFFSET_FILL)}},f.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function h(d){for(var v=[],_=[],b=0,p=0;p<3;++p)for(var C=(p+1)%3,E=(p+2)%3,A=[0,0,0],L=[0,0,0],x=-1;x<=1;x+=2){_.push(b,b+2,b+1,b+1,b+2,b+3),A[p]=x,L[p]=x;for(var k=-1;k<=1;k+=2){A[C]=k;for(var M=-1;M<=1;M+=2)A[E]=M,v.push(A[0],A[1],A[2],L[0],L[1],L[2]),b+=1}var g=C;C=E,E=g}var P=s(d,new Float32Array(v)),T=s(d,new Uint16Array(_),d.ELEMENT_ARRAY_BUFFER),z=l(d,[{buffer:P,type:d.FLOAT,size:3,offset:0,stride:24},{buffer:P,type:d.FLOAT,size:3,offset:12,stride:24}],T),O=u(d);return O.attributes.position.location=0,O.attributes.normal.location=1,new c(d,P,z,O)}},6429:function(i,a,o){"use strict";i.exports=x;var s=o(8828),l=o(6760),u=o(5202),c=o(3250),f=new Array(16),h=new Array(8),d=new Array(8),v=new Array(3),_=[0,0,0];(function(){for(var k=0;k<8;++k)h[k]=[1,1,1,1],d[k]=[1,1,1]})();function b(k,M,g){for(var P=0;P<4;++P){k[P]=g[12+P];for(var T=0;T<3;++T)k[P]+=M[T]*g[4*T+P]}}var p=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function C(k){for(var M=0;M_e&&(Z|=1<_e){Z|=1<d[O][1])&&(De=O);for(var Pe=-1,O=0;O<3;++O){var ge=De^1<d[Fe][0]&&(Fe=ge)}}var ce=E;ce[0]=ce[1]=ce[2]=0,ce[s.log2(Pe^De)]=De&Pe,ce[s.log2(De^Fe)]=De&Fe;var Ye=Fe^7;Ye===Z||Ye===Ae?(Ye=Pe^7,ce[s.log2(Fe^Ye)]=Ye&Fe):ce[s.log2(Pe^Ye)]=Ye&Pe;for(var ct=A,pt=Z,j=0;j<3;++j)pt&1<=0;--ce){var Ze=Ae[De[ce]];M.push(Le*Ze[0],-Le*Ze[1],j)}}for(var P=[0,0,0],T=[0,0,0],z=[0,0,0],O=[0,0,0],V=1.25,G={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},Z=0;Z<3;++Z){z[Z]=M.length/d|0,g(.5*(E[0][Z]+E[1][Z]),A[Z],L[Z],12,V,G),O[Z]=(M.length/d|0)-z[Z],P[Z]=M.length/d|0;for(var H=0;H<_[Z].length;++H)if(_[Z][H].text){var N={family:_[Z][H].font||k[Z].family,style:k[Z].fontStyle||k[Z].style,weight:k[Z].fontWeight||k[Z].weight,variant:k[Z].fontVariant||k[Z].variant};g(_[Z][H].x,_[Z][H].text,N,_[Z][H].fontSize||12,V,G)}T[Z]=(M.length/d|0)-P[Z]}this.buffer.update(M),this.tickOffset=P,this.tickCount=T,this.labelOffset=z,this.labelCount=O},x.drawTicks=function(E,A,L,_,k,M,g,P){this.tickCount[E]&&(this.shader.uniforms.axis=M,this.shader.uniforms.color=k,this.shader.uniforms.angle=L,this.shader.uniforms.scale=A,this.shader.uniforms.offset=_,this.shader.uniforms.alignDir=g,this.shader.uniforms.alignOpt=P,this.vao.draw(this.gl.TRIANGLES,this.tickCount[E],this.tickOffset[E]))},x.drawLabel=function(E,A,L,_,k,M,g,P){this.labelCount[E]&&(this.shader.uniforms.axis=M,this.shader.uniforms.color=k,this.shader.uniforms.angle=L,this.shader.uniforms.scale=A,this.shader.uniforms.offset=_,this.shader.uniforms.alignDir=g,this.shader.uniforms.alignOpt=P,this.vao.draw(this.gl.TRIANGLES,this.labelCount[E],this.labelOffset[E]))},x.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()};function p(E,A){try{return u(E,A)}catch(L){return console.warn('error vectorizing text:"'+E+'" error:',L),{cells:[],positions:[]}}}function C(E,A,L,_,k,M){var g=s(E),P=l(E,[{buffer:g,size:3}]),T=c(E);T.attributes.position.location=0;var z=new v(E,T,g,P);return z.update(A,L,_,k,M),z}},6444:function(i,a){"use strict";a.create=s,a.equal=l;function o(u,c){var f=u+"",h=f.indexOf("."),d=0;h>=0&&(d=f.length-h-1);var v=Math.pow(10,d),x=Math.round(u*c*v),b=x+"";if(b.indexOf("e")>=0)return b;var p=x/v,C=x%v;x<0?(p=-Math.ceil(p)|0,C=-C|0):(p=Math.floor(p)|0,C=C|0);var E=""+p;if(x<0&&(E="-"+E),d){for(var A=""+C;A.length=u[0][h];--x)d.push({x:x*c[h],text:o(c[h],x)});f.push(d)}return f}function l(u,c){for(var f=0;f<3;++f){if(u[f].length!==c[f].length)return!1;for(var h=0;hE)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return p.bufferSubData(C,_,L),E}function v(p,C){for(var E=s.malloc(p.length,C),A=p.length,L=0;L=0;--A){if(C[A]!==E)return!1;E*=p[A]}return!0}h.update=function(p,C){if(typeof C!="number"&&(C=-1),this.bind(),typeof p=="object"&&typeof p.shape!="undefined"){var E=p.dtype;if(c.indexOf(E)<0&&(E="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var A=gl.getExtension("OES_element_index_uint");A&&E!=="uint16"?E="uint32":E="uint16"}if(E===p.dtype&&x(p.shape,p.stride))p.offset===0&&p.data.length===p.shape[0]?this.length=d(this.gl,this.type,this.length,this.usage,p.data,C):this.length=d(this.gl,this.type,this.length,this.usage,p.data.subarray(p.offset,p.shape[0]),C);else{var L=s.malloc(p.size,E),_=u(L,p.shape);l.assign(_,p),C<0?this.length=d(this.gl,this.type,this.length,this.usage,L,C):this.length=d(this.gl,this.type,this.length,this.usage,L.subarray(0,p.size),C),s.free(L)}}else if(Array.isArray(p)){var k;this.type===this.gl.ELEMENT_ARRAY_BUFFER?k=v(p,"uint16"):k=v(p,"float32"),C<0?this.length=d(this.gl,this.type,this.length,this.usage,k,C):this.length=d(this.gl,this.type,this.length,this.usage,k.subarray(0,p.length),C),s.free(k)}else if(typeof p=="object"&&typeof p.length=="number")this.length=d(this.gl,this.type,this.length,this.usage,p,C);else if(typeof p=="number"||p===void 0){if(C>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");p=p|0,p<=0&&(p=1),this.gl.bufferData(this.type,p|0,this.usage),this.length=p}else throw new Error("gl-buffer: Invalid data type")};function b(p,C,E,A){if(E=E||p.ARRAY_BUFFER,A=A||p.DYNAMIC_DRAW,E!==p.ARRAY_BUFFER&&E!==p.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(A!==p.DYNAMIC_DRAW&&A!==p.STATIC_DRAW&&A!==p.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var L=p.createBuffer(),_=new f(p,E,L,0,A);return _.update(C),_}i.exports=b},6405:function(i,a,o){"use strict";var s=o(2931);i.exports=function(u,c){var f=u.positions,h=u.vectors,d={positions:[],vertexIntensity:[],vertexIntensityBounds:u.vertexIntensityBounds,vectors:[],cells:[],coneOffset:u.coneOffset,colormap:u.colormap};if(u.positions.length===0)return c&&(c[0]=[0,0,0],c[1]=[0,0,0]),d;for(var v=0,x=1/0,b=-1/0,p=1/0,C=-1/0,E=1/0,A=-1/0,L=null,_=null,k=[],M=1/0,g=!1,P=u.coneSizemode==="raw",T=0;Tv&&(v=s.length(O)),T&&!P){var V=2*s.distance(L,z)/(s.length(_)+s.length(O));V?(M=Math.min(M,V),g=!1):g=!0}g||(L=z,_=O),k.push(O)}var G=[x,p,E],Z=[b,C,A];c&&(c[0]=G,c[1]=Z),v===0&&(v=1);var H=1/v;isFinite(M)||(M=1),d.vectorScale=M;var N=u.coneSize||(P?1:.5);u.absoluteConeSize&&(N=u.absoluteConeSize*H),d.coneScale=N;for(var T=0,j=0;T=1},p.isTransparent=function(){return this.opacity<1},p.pickSlots=1,p.setPickBase=function(k){this.pickId=k};function C(k){for(var M=v({colormap:k,nshades:256,format:"rgba"}),g=new Uint8Array(256*4),P=0;P<256;++P){for(var T=M[P],z=0;z<3;++z)g[4*P+z]=T[z];g[4*P+3]=T[3]*255}return d(g,[256,256,4],[4,0,1])}function E(k){for(var M=k.length,g=new Array(M),P=0;P0){var j=this.triShader;j.bind(),j.uniforms=V,this.triangleVAO.bind(),M.drawArrays(M.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},p.drawPick=function(k){k=k||{};for(var M=this.gl,g=k.model||x,P=k.view||x,T=k.projection||x,z=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],O=0;O<3;++O)z[0][O]=Math.max(z[0][O],this.clipBounds[0][O]),z[1][O]=Math.min(z[1][O],this.clipBounds[1][O]);this._model=[].slice.call(g),this._view=[].slice.call(P),this._projection=[].slice.call(T),this._resolution=[M.drawingBufferWidth,M.drawingBufferHeight];var V={model:g,view:P,projection:T,clipBounds:z,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},G=this.pickShader;G.bind(),G.uniforms=V,this.triangleCount>0&&(this.triangleVAO.bind(),M.drawArrays(M.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},p.pick=function(k){if(!k||k.id!==this.pickId)return null;var M=k.value[0]+256*k.value[1]+65536*k.value[2],g=this.cells[M],P=this.positions[g[1]].slice(0,3),T={position:P,dataCoordinate:P,index:Math.floor(g[1]/48)};return this.traceType==="cone"?T.index=Math.floor(g[1]/48):this.traceType==="streamtube"&&(T.intensity=this.intensity[g[1]],T.velocity=this.vectors[g[1]].slice(0,3),T.divergence=this.vectors[g[1]][3],T.index=M),T},p.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function A(k,M){var g=s(k,M.meshShader.vertex,M.meshShader.fragment,null,M.meshShader.attributes);return g.attributes.position.location=0,g.attributes.color.location=2,g.attributes.uv.location=3,g.attributes.vector.location=4,g}function L(k,M){var g=s(k,M.pickShader.vertex,M.pickShader.fragment,null,M.pickShader.attributes);return g.attributes.position.location=0,g.attributes.id.location=1,g.attributes.vector.location=4,g}function _(k,M,g){var P=g.shaders;arguments.length===1&&(M=k,k=M.gl);var T=A(k,P),z=L(k,P),O=c(k,d(new Uint8Array([255,255,255,255]),[1,1,4]));O.generateMipmap(),O.minFilter=k.LINEAR_MIPMAP_LINEAR,O.magFilter=k.LINEAR;var V=l(k),G=l(k),Z=l(k),H=l(k),N=l(k),j=u(k,[{buffer:V,type:k.FLOAT,size:4},{buffer:N,type:k.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:Z,type:k.FLOAT,size:4},{buffer:H,type:k.FLOAT,size:2},{buffer:G,type:k.FLOAT,size:4}]),re=new b(k,O,T,z,V,G,N,Z,H,j,g.traceType||"cone");return re.update(M),re}i.exports=_},614:function(i,a,o){var s=o(3236),l=s([`precision highp float; +}`]);a.bg=function(_){return l(_,d,v,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},4935:function(i,a,o){"use strict";i.exports=C;var s=o(2762),l=o(8116),u=o(4359),c=o(1879).Q,f=window||process.global||{},h=f.__TEXT_CACHE||{};f.__TEXT_CACHE={};var d=3;function v(E,A,L,x){this.gl=E,this.shader=A,this.buffer=L,this.vao=x,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var _=v.prototype,b=[0,0];_.bind=function(E,A,L,x){this.vao.bind(),this.shader.bind();var k=this.shader.uniforms;k.model=E,k.view=A,k.projection=L,k.pixelScale=x,b[0]=this.gl.drawingBufferWidth,b[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=b},_.unbind=function(){this.vao.unbind()},_.update=function(E,A,L,x,k){var M=[];function g(j,re,oe,_e,Me,ke){var me=[oe.style,oe.weight,oe.variant,oe.family].join("_"),ie=h[me];ie||(ie=h[me]={});var Se=ie[re];Se||(Se=ie[re]=p(re,{triangles:!0,font:oe.family,fontStyle:oe.style,fontWeight:oe.weight,fontVariant:oe.variant,textAlign:"center",textBaseline:"middle",lineSpacing:Me,styletags:ke}));for(var Le=(_e||12)/12,Ae=Se.positions,De=Se.cells,Pe=0,ge=De.length;Pe=0;--ce){var Ye=Ae[Fe[ce]];M.push(Le*Ye[0],-Le*Ye[1],j)}}for(var P=[0,0,0],T=[0,0,0],z=[0,0,0],O=[0,0,0],V=1.25,G={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},Z=0;Z<3;++Z){z[Z]=M.length/d|0,g(.5*(E[0][Z]+E[1][Z]),A[Z],L[Z],12,V,G),O[Z]=(M.length/d|0)-z[Z],P[Z]=M.length/d|0;for(var H=0;H=0&&(d=f.length-h-1);var v=Math.pow(10,d),_=Math.round(u*c*v),b=_+"";if(b.indexOf("e")>=0)return b;var p=_/v,C=_%v;_<0?(p=-Math.ceil(p)|0,C=-C|0):(p=Math.floor(p)|0,C=C|0);var E=""+p;if(_<0&&(E="-"+E),d){for(var A=""+C;A.length=u[0][h];--_)d.push({x:_*c[h],text:o(c[h],_)});f.push(d)}return f}function l(u,c){for(var f=0;f<3;++f){if(u[f].length!==c[f].length)return!1;for(var h=0;hE)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return p.bufferSubData(C,x,L),E}function v(p,C){for(var E=s.malloc(p.length,C),A=p.length,L=0;L=0;--A){if(C[A]!==E)return!1;E*=p[A]}return!0}h.update=function(p,C){if(typeof C!="number"&&(C=-1),this.bind(),typeof p=="object"&&typeof p.shape!="undefined"){var E=p.dtype;if(c.indexOf(E)<0&&(E="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var A=gl.getExtension("OES_element_index_uint");A&&E!=="uint16"?E="uint32":E="uint16"}if(E===p.dtype&&_(p.shape,p.stride))p.offset===0&&p.data.length===p.shape[0]?this.length=d(this.gl,this.type,this.length,this.usage,p.data,C):this.length=d(this.gl,this.type,this.length,this.usage,p.data.subarray(p.offset,p.shape[0]),C);else{var L=s.malloc(p.size,E),x=u(L,p.shape);l.assign(x,p),C<0?this.length=d(this.gl,this.type,this.length,this.usage,L,C):this.length=d(this.gl,this.type,this.length,this.usage,L.subarray(0,p.size),C),s.free(L)}}else if(Array.isArray(p)){var k;this.type===this.gl.ELEMENT_ARRAY_BUFFER?k=v(p,"uint16"):k=v(p,"float32"),C<0?this.length=d(this.gl,this.type,this.length,this.usage,k,C):this.length=d(this.gl,this.type,this.length,this.usage,k.subarray(0,p.length),C),s.free(k)}else if(typeof p=="object"&&typeof p.length=="number")this.length=d(this.gl,this.type,this.length,this.usage,p,C);else if(typeof p=="number"||p===void 0){if(C>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");p=p|0,p<=0&&(p=1),this.gl.bufferData(this.type,p|0,this.usage),this.length=p}else throw new Error("gl-buffer: Invalid data type")};function b(p,C,E,A){if(E=E||p.ARRAY_BUFFER,A=A||p.DYNAMIC_DRAW,E!==p.ARRAY_BUFFER&&E!==p.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(A!==p.DYNAMIC_DRAW&&A!==p.STATIC_DRAW&&A!==p.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var L=p.createBuffer(),x=new f(p,E,L,0,A);return x.update(C),x}i.exports=b},6405:function(i,a,o){"use strict";var s=o(2931);i.exports=function(u,c){var f=u.positions,h=u.vectors,d={positions:[],vertexIntensity:[],vertexIntensityBounds:u.vertexIntensityBounds,vectors:[],cells:[],coneOffset:u.coneOffset,colormap:u.colormap};if(u.positions.length===0)return c&&(c[0]=[0,0,0],c[1]=[0,0,0]),d;for(var v=0,_=1/0,b=-1/0,p=1/0,C=-1/0,E=1/0,A=-1/0,L=null,x=null,k=[],M=1/0,g=!1,P=u.coneSizemode==="raw",T=0;Tv&&(v=s.length(O)),T&&!P){var V=2*s.distance(L,z)/(s.length(x)+s.length(O));V?(M=Math.min(M,V),g=!1):g=!0}g||(L=z,x=O),k.push(O)}var G=[_,p,E],Z=[b,C,A];c&&(c[0]=G,c[1]=Z),v===0&&(v=1);var H=1/v;isFinite(M)||(M=1),d.vectorScale=M;var N=u.coneSize||(P?1:.5);u.absoluteConeSize&&(N=u.absoluteConeSize*H),d.coneScale=N;for(var T=0,j=0;T=1},p.isTransparent=function(){return this.opacity<1},p.pickSlots=1,p.setPickBase=function(k){this.pickId=k};function C(k){for(var M=v({colormap:k,nshades:256,format:"rgba"}),g=new Uint8Array(256*4),P=0;P<256;++P){for(var T=M[P],z=0;z<3;++z)g[4*P+z]=T[z];g[4*P+3]=T[3]*255}return d(g,[256,256,4],[4,0,1])}function E(k){for(var M=k.length,g=new Array(M),P=0;P0){var j=this.triShader;j.bind(),j.uniforms=V,this.triangleVAO.bind(),M.drawArrays(M.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},p.drawPick=function(k){k=k||{};for(var M=this.gl,g=k.model||_,P=k.view||_,T=k.projection||_,z=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],O=0;O<3;++O)z[0][O]=Math.max(z[0][O],this.clipBounds[0][O]),z[1][O]=Math.min(z[1][O],this.clipBounds[1][O]);this._model=[].slice.call(g),this._view=[].slice.call(P),this._projection=[].slice.call(T),this._resolution=[M.drawingBufferWidth,M.drawingBufferHeight];var V={model:g,view:P,projection:T,clipBounds:z,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},G=this.pickShader;G.bind(),G.uniforms=V,this.triangleCount>0&&(this.triangleVAO.bind(),M.drawArrays(M.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},p.pick=function(k){if(!k||k.id!==this.pickId)return null;var M=k.value[0]+256*k.value[1]+65536*k.value[2],g=this.cells[M],P=this.positions[g[1]].slice(0,3),T={position:P,dataCoordinate:P,index:Math.floor(g[1]/48)};return this.traceType==="cone"?T.index=Math.floor(g[1]/48):this.traceType==="streamtube"&&(T.intensity=this.intensity[g[1]],T.velocity=this.vectors[g[1]].slice(0,3),T.divergence=this.vectors[g[1]][3],T.index=M),T},p.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function A(k,M){var g=s(k,M.meshShader.vertex,M.meshShader.fragment,null,M.meshShader.attributes);return g.attributes.position.location=0,g.attributes.color.location=2,g.attributes.uv.location=3,g.attributes.vector.location=4,g}function L(k,M){var g=s(k,M.pickShader.vertex,M.pickShader.fragment,null,M.pickShader.attributes);return g.attributes.position.location=0,g.attributes.id.location=1,g.attributes.vector.location=4,g}function x(k,M,g){var P=g.shaders;arguments.length===1&&(M=k,k=M.gl);var T=A(k,P),z=L(k,P),O=c(k,d(new Uint8Array([255,255,255,255]),[1,1,4]));O.generateMipmap(),O.minFilter=k.LINEAR_MIPMAP_LINEAR,O.magFilter=k.LINEAR;var V=l(k),G=l(k),Z=l(k),H=l(k),N=l(k),j=u(k,[{buffer:V,type:k.FLOAT,size:4},{buffer:N,type:k.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:Z,type:k.FLOAT,size:4},{buffer:H,type:k.FLOAT,size:2},{buffer:G,type:k.FLOAT,size:4}]),re=new b(k,O,T,z,V,G,N,Z,H,j,g.traceType||"cone");return re.update(M),re}i.exports=x},614:function(i,a,o){var s=o(3236),l=s([`precision highp float; precision highp float; #define GLSLIFY 1 @@ -653,7 +653,7 @@ void main() { if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; gl_FragColor = vec4(pickId, f_id.xyz); -}`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},a.pickShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737:function(i){i.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},5171:function(i,a,o){var s=o(737);i.exports=function(u){return s[u]}},9165:function(i,a,o){"use strict";i.exports=b;var s=o(2762),l=o(8116),u=o(3436),c=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function f(p,C,E,A){this.gl=p,this.shader=A,this.buffer=C,this.vao=E,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var h=f.prototype;h.isOpaque=function(){return!this.hasAlpha},h.isTransparent=function(){return this.hasAlpha},h.drawTransparent=h.draw=function(p){var C=this.gl,E=this.shader.uniforms;this.shader.bind();var A=E.view=p.view||c,L=E.projection=p.projection||c;E.model=p.model||c,E.clipBounds=this.clipBounds,E.opacity=this.opacity;var _=A[12],k=A[13],M=A[14],g=A[15],P=p._ortho||!1,T=P?2:1,z=T*this.pixelRatio*(L[3]*_+L[7]*k+L[11]*M+L[15]*g)/C.drawingBufferHeight;this.vao.bind();for(var O=0;O<3;++O)C.lineWidth(this.lineWidth[O]*this.pixelRatio),E.capSize=this.capSize[O]*z,this.lineCount[O]&&C.drawArrays(C.LINES,this.lineOffset[O],this.lineCount[O]);this.vao.unbind()};function d(p,C){for(var E=0;E<3;++E)p[0][E]=Math.min(p[0][E],C[E]),p[1][E]=Math.max(p[1][E],C[E])}var v=function(){for(var p=new Array(3),C=0;C<3;++C){for(var E=[],A=1;A<=2;++A)for(var L=-1;L<=1;L+=2){var _=(A+C)%3,k=[0,0,0];k[_]=L,E.push(k)}p[C]=E}return p}();function x(p,C,E,A){for(var L=v[A],_=0;_0){var V=P.slice();V[M]+=z[1][M],L.push(P[0],P[1],P[2],O[0],O[1],O[2],O[3],0,0,0,V[0],V[1],V[2],O[0],O[1],O[2],O[3],0,0,0),d(this.bounds,V),k+=2+x(L,V,O,M)}}}this.lineCount[M]=k-this.lineOffset[M]}this.buffer.update(L)}},h.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function b(p){var C=p.gl,E=s(C),A=l(C,[{buffer:E,type:C.FLOAT,size:3,offset:0,stride:40},{buffer:E,type:C.FLOAT,size:4,offset:12,stride:40},{buffer:E,type:C.FLOAT,size:3,offset:28,stride:40}]),L=u(C);L.attributes.position.location=0,L.attributes.color.location=1,L.attributes.offset.location=2;var _=new f(C,E,A,L);return _.update(p),_}},3436:function(i,a,o){"use strict";var s=o(3236),l=o(9405),u=s([`precision highp float; +}`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},a.pickShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737:function(i){i.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},5171:function(i,a,o){var s=o(737);i.exports=function(u){return s[u]}},9165:function(i,a,o){"use strict";i.exports=b;var s=o(2762),l=o(8116),u=o(3436),c=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function f(p,C,E,A){this.gl=p,this.shader=A,this.buffer=C,this.vao=E,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var h=f.prototype;h.isOpaque=function(){return!this.hasAlpha},h.isTransparent=function(){return this.hasAlpha},h.drawTransparent=h.draw=function(p){var C=this.gl,E=this.shader.uniforms;this.shader.bind();var A=E.view=p.view||c,L=E.projection=p.projection||c;E.model=p.model||c,E.clipBounds=this.clipBounds,E.opacity=this.opacity;var x=A[12],k=A[13],M=A[14],g=A[15],P=p._ortho||!1,T=P?2:1,z=T*this.pixelRatio*(L[3]*x+L[7]*k+L[11]*M+L[15]*g)/C.drawingBufferHeight;this.vao.bind();for(var O=0;O<3;++O)C.lineWidth(this.lineWidth[O]*this.pixelRatio),E.capSize=this.capSize[O]*z,this.lineCount[O]&&C.drawArrays(C.LINES,this.lineOffset[O],this.lineCount[O]);this.vao.unbind()};function d(p,C){for(var E=0;E<3;++E)p[0][E]=Math.min(p[0][E],C[E]),p[1][E]=Math.max(p[1][E],C[E])}var v=function(){for(var p=new Array(3),C=0;C<3;++C){for(var E=[],A=1;A<=2;++A)for(var L=-1;L<=1;L+=2){var x=(A+C)%3,k=[0,0,0];k[x]=L,E.push(k)}p[C]=E}return p}();function _(p,C,E,A){for(var L=v[A],x=0;x0){var V=P.slice();V[M]+=z[1][M],L.push(P[0],P[1],P[2],O[0],O[1],O[2],O[3],0,0,0,V[0],V[1],V[2],O[0],O[1],O[2],O[3],0,0,0),d(this.bounds,V),k+=2+_(L,V,O,M)}}}this.lineCount[M]=k-this.lineOffset[M]}this.buffer.update(L)}},h.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function b(p){var C=p.gl,E=s(C),A=l(C,[{buffer:E,type:C.FLOAT,size:3,offset:0,stride:40},{buffer:E,type:C.FLOAT,size:4,offset:12,stride:40},{buffer:E,type:C.FLOAT,size:3,offset:28,stride:40}]),L=u(C);L.attributes.position.location=0,L.attributes.color.location=1,L.attributes.offset.location=2;var x=new f(C,E,A,L);return x.update(p),x}},3436:function(i,a,o){"use strict";var s=o(3236),l=o(9405),u=s([`precision highp float; #define GLSLIFY 1 attribute vec3 position, offset; @@ -704,9 +704,9 @@ void main() { ) discard; gl_FragColor = opacity * fragColor; -}`]);i.exports=function(f){return l(f,u,c,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},2260:function(i,a,o){"use strict";var s=o(7766);i.exports=k;var l=null,u,c,f,h;function d(M){var g=M.getParameter(M.FRAMEBUFFER_BINDING),P=M.getParameter(M.RENDERBUFFER_BINDING),T=M.getParameter(M.TEXTURE_BINDING_2D);return[g,P,T]}function v(M,g){M.bindFramebuffer(M.FRAMEBUFFER,g[0]),M.bindRenderbuffer(M.RENDERBUFFER,g[1]),M.bindTexture(M.TEXTURE_2D,g[2])}function x(M,g){var P=M.getParameter(g.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(P+1);for(var T=0;T<=P;++T){for(var z=new Array(P),O=0;O1&&G.drawBuffersWEBGL(l[V]);var re=P.getExtension("WEBGL_depth_texture");re?Z?M.depth=p(P,z,O,re.UNSIGNED_INT_24_8_WEBGL,P.DEPTH_STENCIL,P.DEPTH_STENCIL_ATTACHMENT):H&&(M.depth=p(P,z,O,P.UNSIGNED_SHORT,P.DEPTH_COMPONENT,P.DEPTH_ATTACHMENT)):H&&Z?M._depth_rb=C(P,z,O,P.DEPTH_STENCIL,P.DEPTH_STENCIL_ATTACHMENT):H?M._depth_rb=C(P,z,O,P.DEPTH_COMPONENT16,P.DEPTH_ATTACHMENT):Z&&(M._depth_rb=C(P,z,O,P.STENCIL_INDEX,P.STENCIL_ATTACHMENT));var oe=P.checkFramebufferStatus(P.FRAMEBUFFER);if(oe!==P.FRAMEBUFFER_COMPLETE){M._destroyed=!0,P.bindFramebuffer(P.FRAMEBUFFER,null),P.deleteFramebuffer(M.handle),M.handle=null,M.depth&&(M.depth.dispose(),M.depth=null),M._depth_rb&&(P.deleteRenderbuffer(M._depth_rb),M._depth_rb=null);for(var j=0;jz||P<0||P>z)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");M._shape[0]=g,M._shape[1]=P;for(var O=d(T),V=0;VO||P<0||P>O)throw new Error("gl-fbo: Parameters are too large for FBO");T=T||{};var V=1;if("color"in T){if(V=Math.max(T.color|0,0),V<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(V>1)if(z){if(V>M.getParameter(z.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+V+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var G=M.UNSIGNED_BYTE,Z=M.getExtension("OES_texture_float");if(T.float&&V>0){if(!Z)throw new Error("gl-fbo: Context does not support floating point textures");G=M.FLOAT}else T.preferFloat&&V>0&&Z&&(G=M.FLOAT);var H=!0;"depth"in T&&(H=!!T.depth);var N=!1;return"stencil"in T&&(N=!!T.stencil),new A(M,g,P,G,V,H,N,z)}},2992:function(i,a,o){var s=o(3387).sprintf,l=o(5171),u=o(1848),c=o(1085);i.exports=f;function f(h,d,v){"use strict";var x=u(d)||"of unknown name (see npm glsl-shader-name)",b="unknown type";v!==void 0&&(b=v===l.FRAGMENT_SHADER?"fragment":"vertex");for(var p=s(`Error compiling %s shader %s: -`,b,x),C=s("%s%s",p,h),E=h.split(` -`),A={},L=0;L1&&G.drawBuffersWEBGL(l[V]);var re=P.getExtension("WEBGL_depth_texture");re?Z?M.depth=p(P,z,O,re.UNSIGNED_INT_24_8_WEBGL,P.DEPTH_STENCIL,P.DEPTH_STENCIL_ATTACHMENT):H&&(M.depth=p(P,z,O,P.UNSIGNED_SHORT,P.DEPTH_COMPONENT,P.DEPTH_ATTACHMENT)):H&&Z?M._depth_rb=C(P,z,O,P.DEPTH_STENCIL,P.DEPTH_STENCIL_ATTACHMENT):H?M._depth_rb=C(P,z,O,P.DEPTH_COMPONENT16,P.DEPTH_ATTACHMENT):Z&&(M._depth_rb=C(P,z,O,P.STENCIL_INDEX,P.STENCIL_ATTACHMENT));var oe=P.checkFramebufferStatus(P.FRAMEBUFFER);if(oe!==P.FRAMEBUFFER_COMPLETE){M._destroyed=!0,P.bindFramebuffer(P.FRAMEBUFFER,null),P.deleteFramebuffer(M.handle),M.handle=null,M.depth&&(M.depth.dispose(),M.depth=null),M._depth_rb&&(P.deleteRenderbuffer(M._depth_rb),M._depth_rb=null);for(var j=0;jz||P<0||P>z)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");M._shape[0]=g,M._shape[1]=P;for(var O=d(T),V=0;VO||P<0||P>O)throw new Error("gl-fbo: Parameters are too large for FBO");T=T||{};var V=1;if("color"in T){if(V=Math.max(T.color|0,0),V<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(V>1)if(z){if(V>M.getParameter(z.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+V+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var G=M.UNSIGNED_BYTE,Z=M.getExtension("OES_texture_float");if(T.float&&V>0){if(!Z)throw new Error("gl-fbo: Context does not support floating point textures");G=M.FLOAT}else T.preferFloat&&V>0&&Z&&(G=M.FLOAT);var H=!0;"depth"in T&&(H=!!T.depth);var N=!1;return"stencil"in T&&(N=!!T.stencil),new A(M,g,P,G,V,H,N,z)}},2992:function(i,a,o){var s=o(3387).sprintf,l=o(5171),u=o(1848),c=o(1085);i.exports=f;function f(h,d,v){"use strict";var _=u(d)||"of unknown name (see npm glsl-shader-name)",b="unknown type";v!==void 0&&(b=v===l.FRAGMENT_SHADER?"fragment":"vertex");for(var p=s(`Error compiling %s shader %s: +`,b,_),C=s("%s%s",p,h),E=h.split(` +`),A={},L=0;L0){for(var me=0;me<24;++me)O.push(O[O.length-12]);H+=2,_e=!0}continue e}N[0][T]=Math.min(N[0][T],Me[T],ke[T]),N[1][T]=Math.max(N[1][T],Me[T],ke[T])}var ie,Se;Array.isArray(re[0])?(ie=re.length>P-1?re[P-1]:re.length>0?re[re.length-1]:[0,0,0,1],Se=re.length>P?re[P]:re.length>0?re[re.length-1]:[0,0,0,1]):ie=Se=re,ie.length===3&&(ie=[ie[0],ie[1],ie[2],1]),Se.length===3&&(Se=[Se[0],Se[1],Se[2],1]),!this.hasAlpha&&ie[3]<1&&(this.hasAlpha=!0);var Le;Array.isArray(oe)?Le=oe.length>P-1?oe[P-1]:oe.length>0?oe[oe.length-1]:[0,0,0,1]:Le=oe;var Ae=Z;if(Z+=E(Me,ke),_e){for(T=0;T<2;++T)O.push(Me[0],Me[1],Me[2],ke[0],ke[1],ke[2],Ae,Le,ie[0],ie[1],ie[2],ie[3]);H+=2,_e=!1}O.push(Me[0],Me[1],Me[2],ke[0],ke[1],ke[2],Ae,Le,ie[0],ie[1],ie[2],ie[3],Me[0],Me[1],Me[2],ke[0],ke[1],ke[2],Ae,-Le,ie[0],ie[1],ie[2],ie[3],ke[0],ke[1],ke[2],Me[0],Me[1],Me[2],Z,-Le,Se[0],Se[1],Se[2],Se[3],ke[0],ke[1],ke[2],Me[0],Me[1],Me[2],Z,Le,Se[0],Se[1],Se[2],Se[3]),H+=4}}if(this.buffer.update(O),V.push(Z),G.push(j[j.length-1].slice()),this.bounds=N,this.vertexCount=H,this.points=G,this.arcLength=V,"dashes"in g){var Fe=g.dashes,Pe=Fe.slice();for(Pe.unshift(0),P=1;P1.0001)return null;T+=P[L]}return Math.abs(T-1)>.001?null:[_,h(v,P),P]}},840:function(i,a,o){var s=o(3236),l=s([`precision highp float; +}`]),h=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];a.createShader=function(d){return l(d,u,c,null,h)},a.createPickShader=function(d){return l(d,u,f,null,h)}},5714:function(i,a,o){"use strict";i.exports=M;var s=o(2762),l=o(8116),u=o(7766),c=new Uint8Array(4),f=new Float32Array(c.buffer);function h(g,P,T,z){return c[0]=z,c[1]=T,c[2]=P,c[3]=g,f[0]}var d=o(2478),v=o(9618),_=o(7319),b=_.createShader,p=_.createPickShader,C=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function E(g,P){for(var T=0,z=0;z<3;++z){var O=g[z]-P[z];T+=O*O}return Math.sqrt(T)}function A(g){for(var P=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],T=0;T<3;++T)P[0][T]=Math.max(g[0][T],P[0][T]),P[1][T]=Math.min(g[1][T],P[1][T]);return P}function L(g,P,T,z){this.arcLength=g,this.position=P,this.index=T,this.dataCoordinate=z}function x(g,P,T,z,O,V){this.gl=g,this.shader=P,this.pickShader=T,this.buffer=z,this.vao=O,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=V,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var k=x.prototype;k.isTransparent=function(){return this.hasAlpha},k.isOpaque=function(){return!this.hasAlpha},k.pickSlots=1,k.setPickBase=function(g){this.pickId=g},k.drawTransparent=k.draw=function(g){if(this.vertexCount){var P=this.gl,T=this.shader,z=this.vao;T.bind(),T.uniforms={model:g.model||C,view:g.view||C,projection:g.projection||C,clipBounds:A(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[P.drawingBufferWidth,P.drawingBufferHeight],pixelRatio:this.pixelRatio},z.bind(),z.draw(P.TRIANGLE_STRIP,this.vertexCount),z.unbind()}},k.drawPick=function(g){if(this.vertexCount){var P=this.gl,T=this.pickShader,z=this.vao;T.bind(),T.uniforms={model:g.model||C,view:g.view||C,projection:g.projection||C,pickId:this.pickId,clipBounds:A(this.clipBounds),screenShape:[P.drawingBufferWidth,P.drawingBufferHeight],pixelRatio:this.pixelRatio},z.bind(),z.draw(P.TRIANGLE_STRIP,this.vertexCount),z.unbind()}},k.update=function(g){var P,T;this.dirty=!0;var z=!!g.connectGaps;"dashScale"in g&&(this.dashScale=g.dashScale),this.hasAlpha=!1,"opacity"in g&&(this.opacity=+g.opacity,this.opacity<1&&(this.hasAlpha=!0));var O=[],V=[],G=[],Z=0,H=0,N=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],j=g.position||g.positions;if(j){var re=g.color||g.colors||[0,0,0,1],oe=g.lineWidth||1,_e=!1;e:for(P=1;P0){for(var me=0;me<24;++me)O.push(O[O.length-12]);H+=2,_e=!0}continue e}N[0][T]=Math.min(N[0][T],Me[T],ke[T]),N[1][T]=Math.max(N[1][T],Me[T],ke[T])}var ie,Se;Array.isArray(re[0])?(ie=re.length>P-1?re[P-1]:re.length>0?re[re.length-1]:[0,0,0,1],Se=re.length>P?re[P]:re.length>0?re[re.length-1]:[0,0,0,1]):ie=Se=re,ie.length===3&&(ie=[ie[0],ie[1],ie[2],1]),Se.length===3&&(Se=[Se[0],Se[1],Se[2],1]),!this.hasAlpha&&ie[3]<1&&(this.hasAlpha=!0);var Le;Array.isArray(oe)?Le=oe.length>P-1?oe[P-1]:oe.length>0?oe[oe.length-1]:[0,0,0,1]:Le=oe;var Ae=Z;if(Z+=E(Me,ke),_e){for(T=0;T<2;++T)O.push(Me[0],Me[1],Me[2],ke[0],ke[1],ke[2],Ae,Le,ie[0],ie[1],ie[2],ie[3]);H+=2,_e=!1}O.push(Me[0],Me[1],Me[2],ke[0],ke[1],ke[2],Ae,Le,ie[0],ie[1],ie[2],ie[3],Me[0],Me[1],Me[2],ke[0],ke[1],ke[2],Ae,-Le,ie[0],ie[1],ie[2],ie[3],ke[0],ke[1],ke[2],Me[0],Me[1],Me[2],Z,-Le,Se[0],Se[1],Se[2],Se[3],ke[0],ke[1],ke[2],Me[0],Me[1],Me[2],Z,Le,Se[0],Se[1],Se[2],Se[3]),H+=4}}if(this.buffer.update(O),V.push(Z),G.push(j[j.length-1].slice()),this.bounds=N,this.vertexCount=H,this.points=G,this.arcLength=V,"dashes"in g){var De=g.dashes,Pe=De.slice();for(Pe.unshift(0),P=1;P1.0001)return null;T+=P[L]}return Math.abs(T-1)>.001?null:[x,h(v,P),P]}},840:function(i,a,o){var s=o(3236),l=s([`precision highp float; #define GLSLIFY 1 attribute vec3 position, normal; @@ -1143,7 +1143,7 @@ void main() { gl_Position = projection * (view * (model * vec4(position, 1.0))); f_id = id; f_position = position; -}`]),x=s([`precision highp float; +}`]),_=s([`precision highp float; #define GLSLIFY 1 bool outOfRange(float a, float b, float p) { @@ -1236,7 +1236,7 @@ uniform vec3 contourColor; void main() { gl_FragColor = vec4(contourColor, 1.0); } -`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.wireShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.pointShader={vertex:h,fragment:d,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},a.pickShader={vertex:v,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},a.pointPickShader={vertex:b,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},a.contourShader={vertex:p,fragment:C,attributes:[{name:"position",type:"vec3"}]}},7201:function(i,a,o){"use strict";var s=1e-6,l=1e-6,u=o(9405),c=o(2762),f=o(8116),h=o(7766),d=o(8406),v=o(6760),x=o(7608),b=o(9618),p=o(6729),C=o(7765),E=o(1888),A=o(840),L=o(7626),_=A.meshShader,k=A.wireShader,M=A.pointShader,g=A.pickShader,P=A.pointPickShader,T=A.contourShader,z=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function O(me,ie,Se,Le,Ae,Fe,Pe,ge,De,ce,Ze,ut,gt,Kt,st,lt,Gt,Ut,$t,sr,Tr,ur,$e,Mt,Ct,Vt,It){this.gl=me,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=ie,this.dirty=!0,this.triShader=Se,this.lineShader=Le,this.pointShader=Ae,this.pickShader=Fe,this.pointPickShader=Pe,this.contourShader=ge,this.trianglePositions=De,this.triangleColors=Ze,this.triangleNormals=gt,this.triangleUVs=ut,this.triangleIds=ce,this.triangleVAO=Kt,this.triangleCount=0,this.lineWidth=1,this.edgePositions=st,this.edgeColors=Gt,this.edgeUVs=Ut,this.edgeIds=lt,this.edgeVAO=$t,this.edgeCount=0,this.pointPositions=sr,this.pointColors=ur,this.pointUVs=$e,this.pointSizes=Mt,this.pointIds=Tr,this.pointVAO=Ct,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=Vt,this.contourVAO=It,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=z,this._view=z,this._projection=z,this._resolution=[1,1]}var V=O.prototype;V.isOpaque=function(){return!this.hasAlpha},V.isTransparent=function(){return this.hasAlpha},V.pickSlots=1,V.setPickBase=function(me){this.pickId=me};function G(me,ie){if(!ie||!ie.length)return 1;for(var Se=0;Seme&&Se>0){var Le=(ie[Se][0]-me)/(ie[Se][0]-ie[Se-1][0]);return ie[Se][1]*(1-Le)+Le*ie[Se-1][1]}}return 1}function Z(me,ie){for(var Se=p({colormap:me,nshades:256,format:"rgba"}),Le=new Uint8Array(256*4),Ae=0;Ae<256;++Ae){for(var Fe=Se[Ae],Pe=0;Pe<3;++Pe)Le[4*Ae+Pe]=Fe[Pe];ie?Le[4*Ae+3]=255*G(Ae/255,ie):Le[4*Ae+3]=255*Fe[3]}return b(Le,[256,256,4],[4,0,1])}function H(me){for(var ie=me.length,Se=new Array(ie),Le=0;Le0){var gt=this.triShader;gt.bind(),gt.uniforms=ge,this.triangleVAO.bind(),ie.drawArrays(ie.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var gt=this.lineShader;gt.bind(),gt.uniforms=ge,this.edgeVAO.bind(),ie.lineWidth(this.lineWidth*this.pixelRatio),ie.drawArrays(ie.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var gt=this.pointShader;gt.bind(),gt.uniforms=ge,this.pointVAO.bind(),ie.drawArrays(ie.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var gt=this.contourShader;gt.bind(),gt.uniforms=ge,this.contourVAO.bind(),ie.drawArrays(ie.LINES,0,this.contourCount),this.contourVAO.unbind()}},V.drawPick=function(me){me=me||{};for(var ie=this.gl,Se=me.model||z,Le=me.view||z,Ae=me.projection||z,Fe=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Pe=0;Pe<3;++Pe)Fe[0][Pe]=Math.max(Fe[0][Pe],this.clipBounds[0][Pe]),Fe[1][Pe]=Math.min(Fe[1][Pe],this.clipBounds[1][Pe]);this._model=[].slice.call(Se),this._view=[].slice.call(Le),this._projection=[].slice.call(Ae),this._resolution=[ie.drawingBufferWidth,ie.drawingBufferHeight];var ge={model:Se,view:Le,projection:Ae,clipBounds:Fe,pickId:this.pickId/255},De=this.pickShader;if(De.bind(),De.uniforms=ge,this.triangleCount>0&&(this.triangleVAO.bind(),ie.drawArrays(ie.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),ie.lineWidth(this.lineWidth*this.pixelRatio),ie.drawArrays(ie.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var De=this.pointPickShader;De.bind(),De.uniforms=ge,this.pointVAO.bind(),ie.drawArrays(ie.POINTS,0,this.pointCount),this.pointVAO.unbind()}},V.pick=function(me){if(!me||me.id!==this.pickId)return null;for(var ie=me.value[0]+256*me.value[1]+65536*me.value[2],Se=this.cells[ie],Le=this.positions,Ae=new Array(Se.length),Fe=0;FeMath.abs(g))p.rotate(z,0,0,-M*P*Math.PI*_.rotateSpeed/window.innerWidth);else if(!_._ortho){var O=-_.zoomSpeed*T*g/window.innerHeight*(z-p.lastT())/20;p.pan(z,0,0,E*(Math.exp(O)-1))}}},!0)},_.enableMouseListeners(),_}},799:function(i,a,o){var s=o(3236),l=o(9405),u=s([`precision mediump float; +`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.wireShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.pointShader={vertex:h,fragment:d,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},a.pickShader={vertex:v,fragment:_,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},a.pointPickShader={vertex:b,fragment:_,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},a.contourShader={vertex:p,fragment:C,attributes:[{name:"position",type:"vec3"}]}},7201:function(i,a,o){"use strict";var s=1e-6,l=1e-6,u=o(9405),c=o(2762),f=o(8116),h=o(7766),d=o(8406),v=o(6760),_=o(7608),b=o(9618),p=o(6729),C=o(7765),E=o(1888),A=o(840),L=o(7626),x=A.meshShader,k=A.wireShader,M=A.pointShader,g=A.pickShader,P=A.pointPickShader,T=A.contourShader,z=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function O(me,ie,Se,Le,Ae,De,Pe,ge,Fe,ce,Ye,ct,pt,Wt,st,lt,Gt,Nt,$t,sr,wr,ur,Qe,Et,er,Ut,Ft){this.gl=me,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=ie,this.dirty=!0,this.triShader=Se,this.lineShader=Le,this.pointShader=Ae,this.pickShader=De,this.pointPickShader=Pe,this.contourShader=ge,this.trianglePositions=Fe,this.triangleColors=Ye,this.triangleNormals=pt,this.triangleUVs=ct,this.triangleIds=ce,this.triangleVAO=Wt,this.triangleCount=0,this.lineWidth=1,this.edgePositions=st,this.edgeColors=Gt,this.edgeUVs=Nt,this.edgeIds=lt,this.edgeVAO=$t,this.edgeCount=0,this.pointPositions=sr,this.pointColors=ur,this.pointUVs=Qe,this.pointSizes=Et,this.pointIds=wr,this.pointVAO=er,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=Ut,this.contourVAO=Ft,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=z,this._view=z,this._projection=z,this._resolution=[1,1]}var V=O.prototype;V.isOpaque=function(){return!this.hasAlpha},V.isTransparent=function(){return this.hasAlpha},V.pickSlots=1,V.setPickBase=function(me){this.pickId=me};function G(me,ie){if(!ie||!ie.length)return 1;for(var Se=0;Seme&&Se>0){var Le=(ie[Se][0]-me)/(ie[Se][0]-ie[Se-1][0]);return ie[Se][1]*(1-Le)+Le*ie[Se-1][1]}}return 1}function Z(me,ie){for(var Se=p({colormap:me,nshades:256,format:"rgba"}),Le=new Uint8Array(256*4),Ae=0;Ae<256;++Ae){for(var De=Se[Ae],Pe=0;Pe<3;++Pe)Le[4*Ae+Pe]=De[Pe];ie?Le[4*Ae+3]=255*G(Ae/255,ie):Le[4*Ae+3]=255*De[3]}return b(Le,[256,256,4],[4,0,1])}function H(me){for(var ie=me.length,Se=new Array(ie),Le=0;Le0){var pt=this.triShader;pt.bind(),pt.uniforms=ge,this.triangleVAO.bind(),ie.drawArrays(ie.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var pt=this.lineShader;pt.bind(),pt.uniforms=ge,this.edgeVAO.bind(),ie.lineWidth(this.lineWidth*this.pixelRatio),ie.drawArrays(ie.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var pt=this.pointShader;pt.bind(),pt.uniforms=ge,this.pointVAO.bind(),ie.drawArrays(ie.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var pt=this.contourShader;pt.bind(),pt.uniforms=ge,this.contourVAO.bind(),ie.drawArrays(ie.LINES,0,this.contourCount),this.contourVAO.unbind()}},V.drawPick=function(me){me=me||{};for(var ie=this.gl,Se=me.model||z,Le=me.view||z,Ae=me.projection||z,De=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Pe=0;Pe<3;++Pe)De[0][Pe]=Math.max(De[0][Pe],this.clipBounds[0][Pe]),De[1][Pe]=Math.min(De[1][Pe],this.clipBounds[1][Pe]);this._model=[].slice.call(Se),this._view=[].slice.call(Le),this._projection=[].slice.call(Ae),this._resolution=[ie.drawingBufferWidth,ie.drawingBufferHeight];var ge={model:Se,view:Le,projection:Ae,clipBounds:De,pickId:this.pickId/255},Fe=this.pickShader;if(Fe.bind(),Fe.uniforms=ge,this.triangleCount>0&&(this.triangleVAO.bind(),ie.drawArrays(ie.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),ie.lineWidth(this.lineWidth*this.pixelRatio),ie.drawArrays(ie.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var Fe=this.pointPickShader;Fe.bind(),Fe.uniforms=ge,this.pointVAO.bind(),ie.drawArrays(ie.POINTS,0,this.pointCount),this.pointVAO.unbind()}},V.pick=function(me){if(!me||me.id!==this.pickId)return null;for(var ie=me.value[0]+256*me.value[1]+65536*me.value[2],Se=this.cells[ie],Le=this.positions,Ae=new Array(Se.length),De=0;DeMath.abs(g))p.rotate(z,0,0,-M*P*Math.PI*x.rotateSpeed/window.innerWidth);else if(!x._ortho){var O=-x.zoomSpeed*T*g/window.innerHeight*(z-p.lastT())/20;p.pan(z,0,0,E*(Math.exp(O)-1))}}},!0)},x.enableMouseListeners(),x}},799:function(i,a,o){var s=o(3236),l=o(9405),u=s([`precision mediump float; #define GLSLIFY 1 attribute vec2 position; varying vec2 uv; @@ -1252,7 +1252,7 @@ varying vec2 uv; void main() { vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0)); gl_FragColor = min(vec4(1,1,1,1), accum); -}`]);i.exports=function(f){return l(f,u,c,null,[{name:"position",type:"vec2"}])}},4100:function(i,a,o){"use strict";var s=o(4437),l=o(3837),u=o(5445),c=o(4449),f=o(3589),h=o(2260),d=o(7169),v=o(351),x=o(4772),b=o(4040),p=o(799),C=o(9216)({tablet:!0,featureDetect:!0});i.exports={createScene:k,createCamera:s};function E(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function A(g,P){var T=null;try{T=g.getContext("webgl",P),T||(T=g.getContext("experimental-webgl",P))}catch(z){return null}return T}function L(g){var P=Math.round(Math.log(Math.abs(g))/Math.log(10));if(P<0){var T=Math.round(Math.pow(10,-P));return Math.ceil(g*T)/T}else if(P>0){var T=Math.round(Math.pow(10,P));return Math.ceil(g/T)*T}return Math.ceil(g)}function _(g){return typeof g=="boolean"?g:!0}function k(g){g=g||{},g.camera=g.camera||{};var P=g.canvas;if(!P)if(P=document.createElement("canvas"),g.container){var T=g.container;T.appendChild(P)}else document.body.appendChild(P);var z=g.gl;if(z||(g.glOptions&&(C=!!g.glOptions.preserveDrawingBuffer),z=A(P,g.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:C})),!z)throw new Error("webgl not supported");var O=g.bounds||[[-10,-10,-10],[10,10,10]],V=new E,G=h(z,z.drawingBufferWidth,z.drawingBufferHeight,{preferFloat:!C}),Z=p(z),H=g.cameraObject&&g.cameraObject._ortho===!0||g.camera.projection&&g.camera.projection.type==="orthographic"||!1,N={eye:g.camera.eye||[2,0,0],center:g.camera.center||[0,0,0],up:g.camera.up||[0,1,0],zoomMin:g.camera.zoomMax||.1,zoomMax:g.camera.zoomMin||100,mode:g.camera.mode||"turntable",_ortho:H},j=g.axes||{},re=l(z,j);re.enable=!j.disable;var oe=g.spikes||{},_e=c(z,oe),Me=[],ke=[],me=[],ie=[],Se=!0,Pe=!0,Le=new Array(16),Ae=new Array(16),Fe={view:null,projection:Le,model:Ae,_ortho:!1},Pe=!0,ge=[z.drawingBufferWidth,z.drawingBufferHeight],De=g.cameraObject||s(P,N),ce={gl:z,contextLost:!1,pixelRatio:g.pixelRatio||1,canvas:P,selection:V,camera:De,axes:re,axesPixels:null,spikes:_e,bounds:O,objects:Me,shape:ge,aspect:g.aspectRatio||[1,1,1],pickRadius:g.pickRadius||10,zNear:g.zNear||.01,zFar:g.zFar||1e3,fovy:g.fovy||Math.PI/4,clearColor:g.clearColor||[0,0,0,0],autoResize:_(g.autoResize),autoBounds:_(g.autoBounds),autoScale:!!g.autoScale,autoCenter:_(g.autoCenter),clipToBounds:_(g.clipToBounds),snapToData:!!g.snapToData,onselect:g.onselect||null,onrender:g.onrender||null,onclick:g.onclick||null,cameraParams:Fe,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(sr){this.aspect[0]=sr.x,this.aspect[1]=sr.y,this.aspect[2]=sr.z,Pe=!0},setBounds:function(sr,Tr){this.bounds[0][sr]=Tr.min,this.bounds[1][sr]=Tr.max},setClearColor:function(sr){this.clearColor=sr},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},Ze=[z.drawingBufferWidth/ce.pixelRatio|0,z.drawingBufferHeight/ce.pixelRatio|0];function ut(){if(!ce._stopped&&ce.autoResize){var sr=P.parentNode,Tr=1,ur=1;sr&&sr!==document.body?(Tr=sr.clientWidth,ur=sr.clientHeight):(Tr=window.innerWidth,ur=window.innerHeight);var $e=Math.ceil(Tr*ce.pixelRatio)|0,Mt=Math.ceil(ur*ce.pixelRatio)|0;if($e!==P.width||Mt!==P.height){P.width=$e,P.height=Mt;var Ct=P.style;Ct.position=Ct.position||"absolute",Ct.left="0px",Ct.top="0px",Ct.width=Tr+"px",Ct.height=ur+"px",Se=!0}}}ce.autoResize&&ut(),window.addEventListener("resize",ut);function gt(){for(var sr=Me.length,Tr=ie.length,ur=0;ur0&&me[Tr-1]===0;)me.pop(),ie.pop().dispose()}ce.update=function(sr){ce._stopped||(sr=sr||{},Se=!0,Pe=!0)},ce.add=function(sr){ce._stopped||(sr.axes=re,Me.push(sr),ke.push(-1),Se=!0,Pe=!0,gt())},ce.remove=function(sr){if(!ce._stopped){var Tr=Me.indexOf(sr);Tr<0||(Me.splice(Tr,1),ke.pop(),Se=!0,Pe=!0,gt())}},ce.dispose=function(){if(!ce._stopped&&(ce._stopped=!0,window.removeEventListener("resize",ut),P.removeEventListener("webglcontextlost",Kt),ce.mouseListener.enabled=!1,!ce.contextLost)){re.dispose(),_e.dispose();for(var sr=0;srV.distance)continue;for(var bt=0;bt1e-6?(C=Math.acos(E),A=Math.sin(C),L=Math.sin((1-u)*C)/A,_=Math.sin(u*C)/A):(L=1-u,_=u),o[0]=L*c+_*v,o[1]=L*f+_*x,o[2]=L*h+_*b,o[3]=L*d+_*p,o}},5964:function(i){"use strict";i.exports=function(a){return!a&&a!==0?"":a.toString()}},9366:function(i,a,o){"use strict";var s=o(4359);i.exports=u;var l={};function u(c,f,h){var d=[f.style,f.weight,f.variant,f.family].join("_"),v=l[d];if(v||(v=l[d]={}),c in v)return v[c];var x={textAlign:"center",textBaseline:"middle",lineHeight:1,font:f.family,fontStyle:f.style,fontWeight:f.weight,fontVariant:f.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};x.triangles=!0;var b=s(c,x);x.triangles=!1;var p=s(c,x),C,E;if(h&&h!==1){for(C=0;C0){var T=Math.round(Math.pow(10,P));return Math.ceil(g/T)*T}return Math.ceil(g)}function x(g){return typeof g=="boolean"?g:!0}function k(g){g=g||{},g.camera=g.camera||{};var P=g.canvas;if(!P)if(P=document.createElement("canvas"),g.container){var T=g.container;T.appendChild(P)}else document.body.appendChild(P);var z=g.gl;if(z||(g.glOptions&&(C=!!g.glOptions.preserveDrawingBuffer),z=A(P,g.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:C})),!z)throw new Error("webgl not supported");var O=g.bounds||[[-10,-10,-10],[10,10,10]],V=new E,G=h(z,z.drawingBufferWidth,z.drawingBufferHeight,{preferFloat:!C}),Z=p(z),H=g.cameraObject&&g.cameraObject._ortho===!0||g.camera.projection&&g.camera.projection.type==="orthographic"||!1,N={eye:g.camera.eye||[2,0,0],center:g.camera.center||[0,0,0],up:g.camera.up||[0,1,0],zoomMin:g.camera.zoomMax||.1,zoomMax:g.camera.zoomMin||100,mode:g.camera.mode||"turntable",_ortho:H},j=g.axes||{},re=l(z,j);re.enable=!j.disable;var oe=g.spikes||{},_e=c(z,oe),Me=[],ke=[],me=[],ie=[],Se=!0,Pe=!0,Le=new Array(16),Ae=new Array(16),De={view:null,projection:Le,model:Ae,_ortho:!1},Pe=!0,ge=[z.drawingBufferWidth,z.drawingBufferHeight],Fe=g.cameraObject||s(P,N),ce={gl:z,contextLost:!1,pixelRatio:g.pixelRatio||1,canvas:P,selection:V,camera:Fe,axes:re,axesPixels:null,spikes:_e,bounds:O,objects:Me,shape:ge,aspect:g.aspectRatio||[1,1,1],pickRadius:g.pickRadius||10,zNear:g.zNear||.01,zFar:g.zFar||1e3,fovy:g.fovy||Math.PI/4,clearColor:g.clearColor||[0,0,0,0],autoResize:x(g.autoResize),autoBounds:x(g.autoBounds),autoScale:!!g.autoScale,autoCenter:x(g.autoCenter),clipToBounds:x(g.clipToBounds),snapToData:!!g.snapToData,onselect:g.onselect||null,onrender:g.onrender||null,onclick:g.onclick||null,cameraParams:De,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(sr){this.aspect[0]=sr.x,this.aspect[1]=sr.y,this.aspect[2]=sr.z,Pe=!0},setBounds:function(sr,wr){this.bounds[0][sr]=wr.min,this.bounds[1][sr]=wr.max},setClearColor:function(sr){this.clearColor=sr},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},Ye=[z.drawingBufferWidth/ce.pixelRatio|0,z.drawingBufferHeight/ce.pixelRatio|0];function ct(){if(!ce._stopped&&ce.autoResize){var sr=P.parentNode,wr=1,ur=1;sr&&sr!==document.body?(wr=sr.clientWidth,ur=sr.clientHeight):(wr=window.innerWidth,ur=window.innerHeight);var Qe=Math.ceil(wr*ce.pixelRatio)|0,Et=Math.ceil(ur*ce.pixelRatio)|0;if(Qe!==P.width||Et!==P.height){P.width=Qe,P.height=Et;var er=P.style;er.position=er.position||"absolute",er.left="0px",er.top="0px",er.width=wr+"px",er.height=ur+"px",Se=!0}}}ce.autoResize&&ct(),window.addEventListener("resize",ct);function pt(){for(var sr=Me.length,wr=ie.length,ur=0;ur0&&me[wr-1]===0;)me.pop(),ie.pop().dispose()}ce.update=function(sr){ce._stopped||(sr=sr||{},Se=!0,Pe=!0)},ce.add=function(sr){ce._stopped||(sr.axes=re,Me.push(sr),ke.push(-1),Se=!0,Pe=!0,pt())},ce.remove=function(sr){if(!ce._stopped){var wr=Me.indexOf(sr);wr<0||(Me.splice(wr,1),ke.pop(),Se=!0,Pe=!0,pt())}},ce.dispose=function(){if(!ce._stopped&&(ce._stopped=!0,window.removeEventListener("resize",ct),P.removeEventListener("webglcontextlost",Wt),ce.mouseListener.enabled=!1,!ce.contextLost)){re.dispose(),_e.dispose();for(var sr=0;srV.distance)continue;for(var yt=0;yt1e-6?(C=Math.acos(E),A=Math.sin(C),L=Math.sin((1-u)*C)/A,x=Math.sin(u*C)/A):(L=1-u,x=u),o[0]=L*c+x*v,o[1]=L*f+x*_,o[2]=L*h+x*b,o[3]=L*d+x*p,o}},5964:function(i){"use strict";i.exports=function(a){return!a&&a!==0?"":a.toString()}},9366:function(i,a,o){"use strict";var s=o(4359);i.exports=u;var l={};function u(c,f,h){var d=[f.style,f.weight,f.variant,f.family].join("_"),v=l[d];if(v||(v=l[d]={}),c in v)return v[c];var _={textAlign:"center",textBaseline:"middle",lineHeight:1,font:f.family,fontStyle:f.style,fontWeight:f.weight,fontVariant:f.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};_.triangles=!0;var b=s(c,_);_.triangles=!1;var p=s(c,_),C,E;if(h&&h!==1){for(C=0;C1?1:Ae}function M(Ae,Fe,Pe,ge,De,ce,Ze,ut,gt,Kt,st,lt){this.gl=Ae,this.pixelRatio=1,this.shader=Fe,this.orthoShader=Pe,this.projectShader=ge,this.pointBuffer=De,this.colorBuffer=ce,this.glyphBuffer=Ze,this.idBuffer=ut,this.vao=gt,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=Kt,this.pickOrthoShader=st,this.pickProjectShader=lt,this.points=[],this._selectResult=new _(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var g=M.prototype;g.pickSlots=1,g.setPickBase=function(Ae){this.pickId=Ae},g.isTransparent=function(){if(this.hasAlpha)return!0;for(var Ae=0;Ae<3;++Ae)if(this.axesProject[Ae]&&this.projectHasAlpha)return!0;return!1},g.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Ae=0;Ae<3;++Ae)if(this.axesProject[Ae]&&!this.projectHasAlpha)return!0;return!1};var P=[0,0],T=[0,0,0],z=[0,0,0],O=[0,0,0,1],V=[0,0,0,1],G=x.slice(),Z=[0,0,0],H=[[0,0,0],[0,0,0]];function N(Ae){return Ae[0]=Ae[1]=Ae[2]=0,Ae}function j(Ae,Fe){return Ae[0]=Fe[0],Ae[1]=Fe[1],Ae[2]=Fe[2],Ae[3]=1,Ae}function re(Ae,Fe,Pe,ge){return Ae[0]=Fe[0],Ae[1]=Fe[1],Ae[2]=Fe[2],Ae[Pe]=ge,Ae}function oe(Ae){for(var Fe=H,Pe=0;Pe<2;++Pe)for(var ge=0;ge<3;++ge)Fe[Pe][ge]=Math.max(Math.min(Ae[Pe][ge],1e8),-1e8);return Fe}function _e(Ae,Fe,Pe,ge){var De=Fe.axesProject,ce=Fe.gl,Ze=Ae.uniforms,ut=Pe.model||x,gt=Pe.view||x,Kt=Pe.projection||x,st=Fe.axesBounds,lt=oe(Fe.clipBounds),Gt;Fe.axes&&Fe.axes.lastCubeProps?Gt=Fe.axes.lastCubeProps.axis:Gt=[1,1,1],P[0]=2/ce.drawingBufferWidth,P[1]=2/ce.drawingBufferHeight,Ae.bind(),Ze.view=gt,Ze.projection=Kt,Ze.screenSize=P,Ze.highlightId=Fe.highlightId,Ze.highlightScale=Fe.highlightScale,Ze.clipBounds=lt,Ze.pickGroup=Fe.pickId/255,Ze.pixelRatio=ge;for(var Ut=0;Ut<3;++Ut)if(De[Ut]){Ze.scale=Fe.projectScale[Ut],Ze.opacity=Fe.projectOpacity[Ut];for(var $t=G,sr=0;sr<16;++sr)$t[sr]=0;for(var sr=0;sr<4;++sr)$t[5*sr]=1;$t[5*Ut]=0,Gt[Ut]<0?$t[12+Ut]=st[0][Ut]:$t[12+Ut]=st[1][Ut],f($t,ut,$t),Ze.model=$t;var Tr=(Ut+1)%3,ur=(Ut+2)%3,$e=N(T),Mt=N(z);$e[Tr]=1,Mt[ur]=1;var Ct=L(Kt,gt,ut,j(O,$e)),Vt=L(Kt,gt,ut,j(V,Mt));if(Math.abs(Ct[1])>Math.abs(Vt[1])){var It=Ct;Ct=Vt,Vt=It,It=$e,$e=Mt,Mt=It;var Ot=Tr;Tr=ur,ur=Ot}Ct[0]<0&&($e[Tr]=-1),Vt[1]>0&&(Mt[ur]=-1);for(var bt=0,rr=0,sr=0;sr<4;++sr)bt+=Math.pow(ut[4*Tr+sr],2),rr+=Math.pow(ut[4*ur+sr],2);$e[Tr]/=Math.sqrt(bt),Mt[ur]/=Math.sqrt(rr),Ze.axes[0]=$e,Ze.axes[1]=Mt,Ze.fragClipBounds[0]=re(Z,lt[0],Ut,-1e8),Ze.fragClipBounds[1]=re(Z,lt[1],Ut,1e8),Fe.vao.bind(),Fe.vao.draw(ce.TRIANGLES,Fe.vertexCount),Fe.lineWidth>0&&(ce.lineWidth(Fe.lineWidth*ge),Fe.vao.draw(ce.LINES,Fe.lineVertexCount,Fe.vertexCount)),Fe.vao.unbind()}}var Me=[-1e8,-1e8,-1e8],ke=[1e8,1e8,1e8],me=[Me,ke];function ie(Ae,Fe,Pe,ge,De,ce,Ze){var ut=Pe.gl;if((ce===Pe.projectHasAlpha||Ze)&&_e(Fe,Pe,ge,De),ce===Pe.hasAlpha||Ze){Ae.bind();var gt=Ae.uniforms;gt.model=ge.model||x,gt.view=ge.view||x,gt.projection=ge.projection||x,P[0]=2/ut.drawingBufferWidth,P[1]=2/ut.drawingBufferHeight,gt.screenSize=P,gt.highlightId=Pe.highlightId,gt.highlightScale=Pe.highlightScale,gt.fragClipBounds=me,gt.clipBounds=Pe.axes.bounds,gt.opacity=Pe.opacity,gt.pickGroup=Pe.pickId/255,gt.pixelRatio=De,Pe.vao.bind(),Pe.vao.draw(ut.TRIANGLES,Pe.vertexCount),Pe.lineWidth>0&&(ut.lineWidth(Pe.lineWidth*De),Pe.vao.draw(ut.LINES,Pe.lineVertexCount,Pe.vertexCount)),Pe.vao.unbind()}}g.draw=function(Ae){var Fe=this.useOrtho?this.orthoShader:this.shader;ie(Fe,this.projectShader,this,Ae,this.pixelRatio,!1,!1)},g.drawTransparent=function(Ae){var Fe=this.useOrtho?this.orthoShader:this.shader;ie(Fe,this.projectShader,this,Ae,this.pixelRatio,!0,!1)},g.drawPick=function(Ae){var Fe=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;ie(Fe,this.pickProjectShader,this,Ae,1,!0,!0)},g.pick=function(Ae){if(!Ae||Ae.id!==this.pickId)return null;var Fe=Ae.value[2]+(Ae.value[1]<<8)+(Ae.value[0]<<16);if(Fe>=this.pointCount||Fe<0)return null;var Pe=this.points[Fe],ge=this._selectResult;ge.index=Fe;for(var De=0;De<3;++De)ge.position[De]=ge.dataCoordinate[De]=Pe[De];return ge},g.highlight=function(Ae){if(!Ae)this.highlightId=[1,1,1,1];else{var Fe=Ae.index,Pe=Fe&255,ge=Fe>>8&255,De=Fe>>16&255;this.highlightId=[Pe/255,ge/255,De/255,0]}};function Se(Ae,Fe,Pe,ge){var De;E(Ae)?Fe0){var Yr=0,dt=ur,Ge=[0,0,0,1],Qe=[0,0,0,1],je=E(Gt)&&E(Gt[0]),Je=E(sr)&&E(sr[0]);e:for(var ge=0;ge0?1-rr[0][0]:ir<0?1+rr[1][0]:1,vr*=vr>0?1-rr[0][1]:vr<0?1+rr[1][1]:1;for(var si=[ir,vr],Rn=Ot.cells||[],wn=Ot.positions||[],Vt=0;Vtthis.buffer.length){l.free(this.buffer);for(var E=this.buffer=l.mallocUint8(c(C*p*4)),A=0;AE)for(p=E;pC)for(p=C;p=0){for(var H=Z.type.charAt(Z.type.length-1)|0,N=new Array(H),j=0;j=0;)re+=1;V[G]=re}var oe=new Array(E.length);function _e(){_.program=c.program(k,_._vref,_._fref,O,V);for(var Me=0;Me=0){var g=k.charCodeAt(k.length-1)-48;if(g<2||g>4)throw new s("","Invalid data type for attribute "+_+": "+k);f(v,x,M[0],p,g,C,_)}else if(k.indexOf("mat")>=0){var g=k.charCodeAt(k.length-1)-48;if(g<2||g>4)throw new s("","Invalid data type for attribute "+_+": "+k);h(v,x,M,p,g,C,_)}else throw new s("","Unknown data type for attribute "+_+": "+k);break}}return C}},3327:function(i,a,o){"use strict";var s=o(216),l=o(8866);i.exports=f;function u(h){return function(){return h}}function c(h,d){for(var v=new Array(h),x=0;x4)throw new l("","Invalid data type");switch(re.charAt(0)){case"b":case"i":h["uniform"+oe+"iv"](x[V],G);break;case"v":h["uniform"+oe+"fv"](x[V],G);break;default:throw new l("","Unrecognized data type for vector "+name+": "+re)}}else if(re.indexOf("mat")===0&&re.length===4){if(oe=re.charCodeAt(re.length-1)-48,oe<2||oe>4)throw new l("","Invalid uniform dimension type for matrix "+name+": "+re);h["uniformMatrix"+oe+"fv"](x[V],!1,G);break}else throw new l("","Unknown uniform data type for "+name+": "+re)}}}}}function C(k,M){if(typeof M!="object")return[[k,M]];var g=[];for(var P in M){var T=M[P],z=k;parseInt(P)+""===P?z+="["+P+"]":z+="."+P,typeof T=="object"?g.push.apply(g,C(z,T)):g.push([z,T])}return g}function E(k){switch(k){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var M=k.indexOf("vec");if(0<=M&&M<=1&&k.length===4+M){var g=k.charCodeAt(k.length-1)-48;if(g<2||g>4)throw new l("","Invalid data type");return k.charAt(0)==="b"?c(g,!1):c(g,0)}else if(k.indexOf("mat")===0&&k.length===4){var g=k.charCodeAt(k.length-1)-48;if(g<2||g>4)throw new l("","Invalid uniform dimension type for matrix "+name+": "+k);return c(g*g,0)}else throw new l("","Unknown uniform data type for "+name+": "+k)}}function A(k,M,g){if(typeof g=="object"){var P=L(g);Object.defineProperty(k,M,{get:u(P),set:p(g),enumerable:!0,configurable:!1})}else x[g]?Object.defineProperty(k,M,{get:b(g),set:p(g),enumerable:!0,configurable:!1}):k[M]=E(v[g].type)}function L(k){var M;if(Array.isArray(k)){M=new Array(k.length);for(var g=0;g1){v[0]in h||(h[v[0]]=[]),h=h[v[0]];for(var x=1;x1)for(var C=0;C1?1:Ae}function M(Ae,De,Pe,ge,Fe,ce,Ye,ct,pt,Wt,st,lt){this.gl=Ae,this.pixelRatio=1,this.shader=De,this.orthoShader=Pe,this.projectShader=ge,this.pointBuffer=Fe,this.colorBuffer=ce,this.glyphBuffer=Ye,this.idBuffer=ct,this.vao=pt,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[.6666666666666666,.6666666666666666,.6666666666666666],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=Wt,this.pickOrthoShader=st,this.pickProjectShader=lt,this.points=[],this._selectResult=new x(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var g=M.prototype;g.pickSlots=1,g.setPickBase=function(Ae){this.pickId=Ae},g.isTransparent=function(){if(this.hasAlpha)return!0;for(var Ae=0;Ae<3;++Ae)if(this.axesProject[Ae]&&this.projectHasAlpha)return!0;return!1},g.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Ae=0;Ae<3;++Ae)if(this.axesProject[Ae]&&!this.projectHasAlpha)return!0;return!1};var P=[0,0],T=[0,0,0],z=[0,0,0],O=[0,0,0,1],V=[0,0,0,1],G=_.slice(),Z=[0,0,0],H=[[0,0,0],[0,0,0]];function N(Ae){return Ae[0]=Ae[1]=Ae[2]=0,Ae}function j(Ae,De){return Ae[0]=De[0],Ae[1]=De[1],Ae[2]=De[2],Ae[3]=1,Ae}function re(Ae,De,Pe,ge){return Ae[0]=De[0],Ae[1]=De[1],Ae[2]=De[2],Ae[Pe]=ge,Ae}function oe(Ae){for(var De=H,Pe=0;Pe<2;++Pe)for(var ge=0;ge<3;++ge)De[Pe][ge]=Math.max(Math.min(Ae[Pe][ge],1e8),-1e8);return De}function _e(Ae,De,Pe,ge){var Fe=De.axesProject,ce=De.gl,Ye=Ae.uniforms,ct=Pe.model||_,pt=Pe.view||_,Wt=Pe.projection||_,st=De.axesBounds,lt=oe(De.clipBounds),Gt;De.axes&&De.axes.lastCubeProps?Gt=De.axes.lastCubeProps.axis:Gt=[1,1,1],P[0]=2/ce.drawingBufferWidth,P[1]=2/ce.drawingBufferHeight,Ae.bind(),Ye.view=pt,Ye.projection=Wt,Ye.screenSize=P,Ye.highlightId=De.highlightId,Ye.highlightScale=De.highlightScale,Ye.clipBounds=lt,Ye.pickGroup=De.pickId/255,Ye.pixelRatio=ge;for(var Nt=0;Nt<3;++Nt)if(Fe[Nt]){Ye.scale=De.projectScale[Nt],Ye.opacity=De.projectOpacity[Nt];for(var $t=G,sr=0;sr<16;++sr)$t[sr]=0;for(var sr=0;sr<4;++sr)$t[5*sr]=1;$t[5*Nt]=0,Gt[Nt]<0?$t[12+Nt]=st[0][Nt]:$t[12+Nt]=st[1][Nt],f($t,ct,$t),Ye.model=$t;var wr=(Nt+1)%3,ur=(Nt+2)%3,Qe=N(T),Et=N(z);Qe[wr]=1,Et[ur]=1;var er=L(Wt,pt,ct,j(O,Qe)),Ut=L(Wt,pt,ct,j(V,Et));if(Math.abs(er[1])>Math.abs(Ut[1])){var Ft=er;er=Ut,Ut=Ft,Ft=Qe,Qe=Et,Et=Ft;var bt=wr;wr=ur,ur=bt}er[0]<0&&(Qe[wr]=-1),Ut[1]>0&&(Et[ur]=-1);for(var yt=0,Yt=0,sr=0;sr<4;++sr)yt+=Math.pow(ct[4*wr+sr],2),Yt+=Math.pow(ct[4*ur+sr],2);Qe[wr]/=Math.sqrt(yt),Et[ur]/=Math.sqrt(Yt),Ye.axes[0]=Qe,Ye.axes[1]=Et,Ye.fragClipBounds[0]=re(Z,lt[0],Nt,-1e8),Ye.fragClipBounds[1]=re(Z,lt[1],Nt,1e8),De.vao.bind(),De.vao.draw(ce.TRIANGLES,De.vertexCount),De.lineWidth>0&&(ce.lineWidth(De.lineWidth*ge),De.vao.draw(ce.LINES,De.lineVertexCount,De.vertexCount)),De.vao.unbind()}}var Me=[-1e8,-1e8,-1e8],ke=[1e8,1e8,1e8],me=[Me,ke];function ie(Ae,De,Pe,ge,Fe,ce,Ye){var ct=Pe.gl;if((ce===Pe.projectHasAlpha||Ye)&&_e(De,Pe,ge,Fe),ce===Pe.hasAlpha||Ye){Ae.bind();var pt=Ae.uniforms;pt.model=ge.model||_,pt.view=ge.view||_,pt.projection=ge.projection||_,P[0]=2/ct.drawingBufferWidth,P[1]=2/ct.drawingBufferHeight,pt.screenSize=P,pt.highlightId=Pe.highlightId,pt.highlightScale=Pe.highlightScale,pt.fragClipBounds=me,pt.clipBounds=Pe.axes.bounds,pt.opacity=Pe.opacity,pt.pickGroup=Pe.pickId/255,pt.pixelRatio=Fe,Pe.vao.bind(),Pe.vao.draw(ct.TRIANGLES,Pe.vertexCount),Pe.lineWidth>0&&(ct.lineWidth(Pe.lineWidth*Fe),Pe.vao.draw(ct.LINES,Pe.lineVertexCount,Pe.vertexCount)),Pe.vao.unbind()}}g.draw=function(Ae){var De=this.useOrtho?this.orthoShader:this.shader;ie(De,this.projectShader,this,Ae,this.pixelRatio,!1,!1)},g.drawTransparent=function(Ae){var De=this.useOrtho?this.orthoShader:this.shader;ie(De,this.projectShader,this,Ae,this.pixelRatio,!0,!1)},g.drawPick=function(Ae){var De=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;ie(De,this.pickProjectShader,this,Ae,1,!0,!0)},g.pick=function(Ae){if(!Ae||Ae.id!==this.pickId)return null;var De=Ae.value[2]+(Ae.value[1]<<8)+(Ae.value[0]<<16);if(De>=this.pointCount||De<0)return null;var Pe=this.points[De],ge=this._selectResult;ge.index=De;for(var Fe=0;Fe<3;++Fe)ge.position[Fe]=ge.dataCoordinate[Fe]=Pe[Fe];return ge},g.highlight=function(Ae){if(!Ae)this.highlightId=[1,1,1,1];else{var De=Ae.index,Pe=De&255,ge=De>>8&255,Fe=De>>16&255;this.highlightId=[Pe/255,ge/255,Fe/255,0]}};function Se(Ae,De,Pe,ge){var Fe;E(Ae)?De0){var Ur=0,dt=ur,Ge=[0,0,0,1],Je=[0,0,0,1],je=E(Gt)&&E(Gt[0]),$e=E(sr)&&E(sr[0]);e:for(var ge=0;ge0?1-Yt[0][0]:ir<0?1+Yt[1][0]:1,pr*=pr>0?1-Yt[0][1]:pr<0?1+Yt[1][1]:1;for(var oi=[ir,pr],Pn=bt.cells||[],wn=bt.positions||[],Ut=0;Utthis.buffer.length){l.free(this.buffer);for(var E=this.buffer=l.mallocUint8(c(C*p*4)),A=0;AE)for(p=E;pC)for(p=C;p=0){for(var H=Z.type.charAt(Z.type.length-1)|0,N=new Array(H),j=0;j=0;)re+=1;V[G]=re}var oe=new Array(E.length);function _e(){x.program=c.program(k,x._vref,x._fref,O,V);for(var Me=0;Me=0){var g=k.charCodeAt(k.length-1)-48;if(g<2||g>4)throw new s("","Invalid data type for attribute "+x+": "+k);f(v,_,M[0],p,g,C,x)}else if(k.indexOf("mat")>=0){var g=k.charCodeAt(k.length-1)-48;if(g<2||g>4)throw new s("","Invalid data type for attribute "+x+": "+k);h(v,_,M,p,g,C,x)}else throw new s("","Unknown data type for attribute "+x+": "+k);break}}return C}},3327:function(i,a,o){"use strict";var s=o(216),l=o(8866);i.exports=f;function u(h){return function(){return h}}function c(h,d){for(var v=new Array(h),_=0;_4)throw new l("","Invalid data type");switch(re.charAt(0)){case"b":case"i":h["uniform"+oe+"iv"](_[V],G);break;case"v":h["uniform"+oe+"fv"](_[V],G);break;default:throw new l("","Unrecognized data type for vector "+name+": "+re)}}else if(re.indexOf("mat")===0&&re.length===4){if(oe=re.charCodeAt(re.length-1)-48,oe<2||oe>4)throw new l("","Invalid uniform dimension type for matrix "+name+": "+re);h["uniformMatrix"+oe+"fv"](_[V],!1,G);break}else throw new l("","Unknown uniform data type for "+name+": "+re)}}}}}function C(k,M){if(typeof M!="object")return[[k,M]];var g=[];for(var P in M){var T=M[P],z=k;parseInt(P)+""===P?z+="["+P+"]":z+="."+P,typeof T=="object"?g.push.apply(g,C(z,T)):g.push([z,T])}return g}function E(k){switch(k){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var M=k.indexOf("vec");if(0<=M&&M<=1&&k.length===4+M){var g=k.charCodeAt(k.length-1)-48;if(g<2||g>4)throw new l("","Invalid data type");return k.charAt(0)==="b"?c(g,!1):c(g,0)}else if(k.indexOf("mat")===0&&k.length===4){var g=k.charCodeAt(k.length-1)-48;if(g<2||g>4)throw new l("","Invalid uniform dimension type for matrix "+name+": "+k);return c(g*g,0)}else throw new l("","Unknown uniform data type for "+name+": "+k)}}function A(k,M,g){if(typeof g=="object"){var P=L(g);Object.defineProperty(k,M,{get:u(P),set:p(g),enumerable:!0,configurable:!1})}else _[g]?Object.defineProperty(k,M,{get:b(g),set:p(g),enumerable:!0,configurable:!1}):k[M]=E(v[g].type)}function L(k){var M;if(Array.isArray(k)){M=new Array(k.length);for(var g=0;g1){v[0]in h||(h[v[0]]=[]),h=h[v[0]];for(var _=1;_1)for(var C=0;C0)for(var ie=0;ieL)return k-1}return k},d=function(A,L,_){return A_?_:A},v=function(A,L,_){var k=L.vectors,M=L.meshgrid,g=A[0],P=A[1],T=A[2],z=M[0].length,O=M[1].length,V=M[2].length,G=h(M[0],g),Z=h(M[1],P),H=h(M[2],T),N=G+1,j=Z+1,re=H+1;if(G=d(G,0,z-1),N=d(N,0,z-1),Z=d(Z,0,O-1),j=d(j,0,O-1),H=d(H,0,V-1),re=d(re,0,V-1),G<0||Z<0||H<0||N>z-1||j>O-1||re>V-1)return s.create();var oe=M[0][G],_e=M[0][N],Me=M[1][Z],ke=M[1][j],me=M[2][H],ie=M[2][re],Se=(g-oe)/(_e-oe),Le=(P-Me)/(ke-Me),Ae=(T-me)/(ie-me);isFinite(Se)||(Se=.5),isFinite(Le)||(Le=.5),isFinite(Ae)||(Ae=.5);var Fe,Pe,ge,De,ce,Ze;switch(_.reversedX&&(G=z-1-G,N=z-1-N),_.reversedY&&(Z=O-1-Z,j=O-1-j),_.reversedZ&&(H=V-1-H,re=V-1-re),_.filled){case 5:ce=H,Ze=re,ge=Z*V,De=j*V,Fe=G*V*O,Pe=N*V*O;break;case 4:ce=H,Ze=re,Fe=G*V,Pe=N*V,ge=Z*V*z,De=j*V*z;break;case 3:ge=Z,De=j,ce=H*O,Ze=re*O,Fe=G*O*V,Pe=N*O*V;break;case 2:ge=Z,De=j,Fe=G*O,Pe=N*O,ce=H*O*z,Ze=re*O*z;break;case 1:Fe=G,Pe=N,ce=H*z,Ze=re*z,ge=Z*z*V,De=j*z*V;break;default:Fe=G,Pe=N,ge=Z*z,De=j*z,ce=H*z*O,Ze=re*z*O;break}var ut=k[Fe+ge+ce],gt=k[Fe+ge+Ze],Kt=k[Fe+De+ce],st=k[Fe+De+Ze],lt=k[Pe+ge+ce],Gt=k[Pe+ge+Ze],Ut=k[Pe+De+ce],$t=k[Pe+De+Ze],sr=s.create(),Tr=s.create(),ur=s.create(),$e=s.create();s.lerp(sr,ut,lt,Se),s.lerp(Tr,gt,Gt,Se),s.lerp(ur,Kt,Ut,Se),s.lerp($e,st,$t,Se);var Mt=s.create(),Ct=s.create();s.lerp(Mt,sr,ur,Le),s.lerp(Ct,Tr,$e,Le);var Vt=s.create();return s.lerp(Vt,Mt,Ct,Ae),Vt},x=function(A,L){var _=L[0],k=L[1],M=L[2];return A[0]=_<0?-_:_,A[1]=k<0?-k:k,A[2]=M<0?-M:M,A},b=function(A){var L=1/0;A.sort(function(g,P){return g-P});for(var _=A.length,k=1;k<_;k++){var M=Math.abs(A[k]-A[k-1]);MN||$tj||srre)},_e=s.distance(L[0],L[1]),Me=10*_e/k,ke=Me*Me,me=1,ie=0,Se=_.length;Se>1&&(me=p(_));for(var Le=0;Leie&&(ie=ut),ce.push(ut),V.push({points:Fe,velocities:Pe,divergences:ce});for(var gt=0;gtke&&s.scale(Kt,Kt,Me/Math.sqrt(st)),s.add(Kt,Kt,Ae),ge=z(Kt),s.squaredDistance(De,Kt)-ke>-1e-4*ke){Fe.push(Kt),De=Kt,Pe.push(ge);var Ze=O(Kt,ge),ut=s.length(Ze);isFinite(ut)&&ut>ie&&(ie=ut),ce.push(ut)}Ae=Kt}}var lt=f(V,A.colormap,ie,me);return g?lt.tubeScale=g:(ie===0&&(ie=1),lt.tubeScale=M*.5*me/ie),lt};var C=o(6740),E=o(6405).createMesh;i.exports.createTubeMesh=function(A,L){return E(A,L,{shaders:C,traceType:"streamtube"})}},990:function(i,a,o){var s=o(9405),l=o(3236),u=l([`precision highp float; +}`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},a.pickShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},7815:function(i,a,o){"use strict";var s=o(2931),l=o(9970),u=["xyz","xzy","yxz","yzx","zxy","zyx"],c=function(A,L,x,k){for(var M=A.points,g=A.velocities,P=A.divergences,T=[],z=[],O=[],V=[],G=[],Z=[],H=0,N=0,j=l.create(),re=l.create(),oe=8,_e=0;_e0)for(var ie=0;ieL)return k-1}return k},d=function(A,L,x){return Ax?x:A},v=function(A,L,x){var k=L.vectors,M=L.meshgrid,g=A[0],P=A[1],T=A[2],z=M[0].length,O=M[1].length,V=M[2].length,G=h(M[0],g),Z=h(M[1],P),H=h(M[2],T),N=G+1,j=Z+1,re=H+1;if(G=d(G,0,z-1),N=d(N,0,z-1),Z=d(Z,0,O-1),j=d(j,0,O-1),H=d(H,0,V-1),re=d(re,0,V-1),G<0||Z<0||H<0||N>z-1||j>O-1||re>V-1)return s.create();var oe=M[0][G],_e=M[0][N],Me=M[1][Z],ke=M[1][j],me=M[2][H],ie=M[2][re],Se=(g-oe)/(_e-oe),Le=(P-Me)/(ke-Me),Ae=(T-me)/(ie-me);isFinite(Se)||(Se=.5),isFinite(Le)||(Le=.5),isFinite(Ae)||(Ae=.5);var De,Pe,ge,Fe,ce,Ye;switch(x.reversedX&&(G=z-1-G,N=z-1-N),x.reversedY&&(Z=O-1-Z,j=O-1-j),x.reversedZ&&(H=V-1-H,re=V-1-re),x.filled){case 5:ce=H,Ye=re,ge=Z*V,Fe=j*V,De=G*V*O,Pe=N*V*O;break;case 4:ce=H,Ye=re,De=G*V,Pe=N*V,ge=Z*V*z,Fe=j*V*z;break;case 3:ge=Z,Fe=j,ce=H*O,Ye=re*O,De=G*O*V,Pe=N*O*V;break;case 2:ge=Z,Fe=j,De=G*O,Pe=N*O,ce=H*O*z,Ye=re*O*z;break;case 1:De=G,Pe=N,ce=H*z,Ye=re*z,ge=Z*z*V,Fe=j*z*V;break;default:De=G,Pe=N,ge=Z*z,Fe=j*z,ce=H*z*O,Ye=re*z*O;break}var ct=k[De+ge+ce],pt=k[De+ge+Ye],Wt=k[De+Fe+ce],st=k[De+Fe+Ye],lt=k[Pe+ge+ce],Gt=k[Pe+ge+Ye],Nt=k[Pe+Fe+ce],$t=k[Pe+Fe+Ye],sr=s.create(),wr=s.create(),ur=s.create(),Qe=s.create();s.lerp(sr,ct,lt,Se),s.lerp(wr,pt,Gt,Se),s.lerp(ur,Wt,Nt,Se),s.lerp(Qe,st,$t,Se);var Et=s.create(),er=s.create();s.lerp(Et,sr,ur,Le),s.lerp(er,wr,Qe,Le);var Ut=s.create();return s.lerp(Ut,Et,er,Ae),Ut},_=function(A,L){var x=L[0],k=L[1],M=L[2];return A[0]=x<0?-x:x,A[1]=k<0?-k:k,A[2]=M<0?-M:M,A},b=function(A){var L=1/0;A.sort(function(g,P){return g-P});for(var x=A.length,k=1;kN||$tj||srre)},_e=s.distance(L[0],L[1]),Me=10*_e/k,ke=Me*Me,me=1,ie=0,Se=x.length;Se>1&&(me=p(x));for(var Le=0;Leie&&(ie=ct),ce.push(ct),V.push({points:De,velocities:Pe,divergences:ce});for(var pt=0;ptke&&s.scale(Wt,Wt,Me/Math.sqrt(st)),s.add(Wt,Wt,Ae),ge=z(Wt),s.squaredDistance(Fe,Wt)-ke>-1e-4*ke){De.push(Wt),Fe=Wt,Pe.push(ge);var Ye=O(Wt,ge),ct=s.length(Ye);isFinite(ct)&&ct>ie&&(ie=ct),ce.push(ct)}Ae=Wt}}var lt=f(V,A.colormap,ie,me);return g?lt.tubeScale=g:(ie===0&&(ie=1),lt.tubeScale=M*.5*me/ie),lt};var C=o(6740),E=o(6405).createMesh;i.exports.createTubeMesh=function(A,L){return E(A,L,{shaders:C,traceType:"streamtube"})}},990:function(i,a,o){var s=o(9405),l=o(3236),u=l([`precision highp float; #define GLSLIFY 1 attribute vec4 uv; @@ -1999,15 +1999,15 @@ void main() { vec2 uy = splitFloat(planeCoordinate.y / shape.y); gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0)); } -`]);a.createShader=function(d){var v=s(d,u,c,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return v.attributes.uv.location=0,v.attributes.f.location=1,v.attributes.normal.location=2,v},a.createPickShader=function(d){var v=s(d,u,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return v.attributes.uv.location=0,v.attributes.f.location=1,v.attributes.normal.location=2,v},a.createContourShader=function(d){var v=s(d,f,c,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return v.attributes.uv.location=0,v.attributes.f.location=1,v},a.createPickContourShader=function(d){var v=s(d,f,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return v.attributes.uv.location=0,v.attributes.f.location=1,v}},9499:function(i,a,o){"use strict";i.exports=Fe;var s=o(8828),l=o(2762),u=o(8116),c=o(7766),f=o(1888),h=o(6729),d=o(5298),v=o(9994),x=o(9618),b=o(3711),p=o(6760),C=o(7608),E=o(2478),A=o(6199),L=o(990),_=L.createShader,k=L.createContourShader,M=L.createPickShader,g=L.createPickContourShader,P=4*10,T=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],z=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],O=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];(function(){for(var Pe=0;Pe<3;++Pe){var ge=O[Pe],De=(Pe+1)%3,ce=(Pe+2)%3;ge[De+0]=1,ge[ce+3]=1,ge[Pe+6]=1}})();function V(Pe,ge,De,ce,Ze){this.position=Pe,this.index=ge,this.uv=De,this.level=ce,this.dataCoordinate=Ze}var G=256;function Z(Pe,ge,De,ce,Ze,ut,gt,Kt,st,lt,Gt,Ut,$t,sr,Tr){this.gl=Pe,this.shape=ge,this.bounds=De,this.objectOffset=Tr,this.intensityBounds=[],this._shader=ce,this._pickShader=Ze,this._coordinateBuffer=ut,this._vao=gt,this._colorMap=Kt,this._contourShader=st,this._contourPickShader=lt,this._contourBuffer=Gt,this._contourVAO=Ut,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new V([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=$t,this._dynamicVAO=sr,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[x(f.mallocFloat(1024),[0,0]),x(f.mallocFloat(1024),[0,0]),x(f.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var H=Z.prototype;H.genColormap=function(Pe,ge){var De=!1,ce=v([h({colormap:Pe,nshades:G,format:"rgba"}).map(function(Ze,ut){var gt=ge?N(ut/255,ge):Ze[3];return gt<1&&(De=!0),[Ze[0],Ze[1],Ze[2],255*gt]})]);return d.divseq(ce,255),this.hasAlphaScale=De,ce},H.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},H.isOpaque=function(){return!this.isTransparent()},H.pickSlots=1,H.setPickBase=function(Pe){this.pickId=Pe};function N(Pe,ge){if(!ge||!ge.length)return 1;for(var De=0;DePe&&De>0){var ce=(ge[De][0]-Pe)/(ge[De][0]-ge[De-1][0]);return ge[De][1]*(1-ce)+ce*ge[De-1][1]}}return 1}var j=[0,0,0],re={showSurface:!1,showContour:!1,projections:[T.slice(),T.slice(),T.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function oe(Pe,ge){var De,ce,Ze,ut=ge.axes&&ge.axes.lastCubeProps.axis||j,gt=ge.showSurface,Kt=ge.showContour;for(De=0;De<3;++De)for(gt=gt||ge.surfaceProject[De],ce=0;ce<3;++ce)Kt=Kt||ge.contourProject[De][ce];for(De=0;De<3;++De){var st=re.projections[De];for(ce=0;ce<16;++ce)st[ce]=0;for(ce=0;ce<4;++ce)st[5*ce]=1;st[5*De]=0,st[12+De]=ge.axesBounds[+(ut[De]>0)][De],p(st,Pe.model,st);var lt=re.clipBounds[De];for(Ze=0;Ze<2;++Ze)for(ce=0;ce<3;++ce)lt[Ze][ce]=Pe.clipBounds[Ze][ce];lt[0][De]=-1e8,lt[1][De]=1e8}return re.showSurface=gt,re.showContour=Kt,re}var _e={model:T,view:T,projection:T,inverseModel:T.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},Me=T.slice(),ke=[1,0,0,0,1,0,0,0,1];function me(Pe,ge){Pe=Pe||{};var De=this.gl;De.disable(De.CULL_FACE),this._colorMap.bind(0);var ce=_e;ce.model=Pe.model||T,ce.view=Pe.view||T,ce.projection=Pe.projection||T,ce.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],ce.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],ce.objectOffset=this.objectOffset,ce.contourColor=this.contourColor[0],ce.inverseModel=C(ce.inverseModel,ce.model);for(var Ze=0;Ze<2;++Ze)for(var ut=ce.clipBounds[Ze],gt=0;gt<3;++gt)ut[gt]=Math.min(Math.max(this.clipBounds[Ze][gt],-1e8),1e8);ce.kambient=this.ambientLight,ce.kdiffuse=this.diffuseLight,ce.kspecular=this.specularLight,ce.roughness=this.roughness,ce.fresnel=this.fresnel,ce.opacity=this.opacity,ce.height=0,ce.permutation=ke,ce.vertexColor=this.vertexColor;var Kt=Me;for(p(Kt,ce.view,ce.model),p(Kt,ce.projection,Kt),C(Kt,Kt),Ze=0;Ze<3;++Ze)ce.eyePosition[Ze]=Kt[12+Ze]/Kt[15];var st=Kt[15];for(Ze=0;Ze<3;++Ze)st+=this.lightPosition[Ze]*Kt[4*Ze+3];for(Ze=0;Ze<3;++Ze){var lt=Kt[12+Ze];for(gt=0;gt<3;++gt)lt+=Kt[4*gt+Ze]*this.lightPosition[gt];ce.lightPosition[Ze]=lt/st}var Gt=oe(ce,this);if(Gt.showSurface){for(this._shader.bind(),this._shader.uniforms=ce,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(De.TRIANGLES,this._vertexCount),Ze=0;Ze<3;++Ze)!this.surfaceProject[Ze]||!this.vertexCount||(this._shader.uniforms.model=Gt.projections[Ze],this._shader.uniforms.clipBounds=Gt.clipBounds[Ze],this._vao.draw(De.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Gt.showContour){var Ut=this._contourShader;ce.kambient=1,ce.kdiffuse=0,ce.kspecular=0,ce.opacity=1,Ut.bind(),Ut.uniforms=ce;var $t=this._contourVAO;for($t.bind(),Ze=0;Ze<3;++Ze)for(Ut.uniforms.permutation=O[Ze],De.lineWidth(this.contourWidth[Ze]*this.pixelRatio),gt=0;gt>4)/16)/255,Ze=Math.floor(ce),ut=ce-Ze,gt=ge[1]*(Pe.value[1]+(Pe.value[2]&15)/16)/255,Kt=Math.floor(gt),st=gt-Kt;Ze+=1,Kt+=1;var lt=De.position;lt[0]=lt[1]=lt[2]=0;for(var Gt=0;Gt<2;++Gt)for(var Ut=Gt?ut:1-ut,$t=0;$t<2;++$t)for(var sr=$t?st:1-st,Tr=Ze+Gt,ur=Kt+$t,$e=Ut*sr,Mt=0;Mt<3;++Mt)lt[Mt]+=this._field[Mt].get(Tr,ur)*$e;for(var Ct=this._pickResult.level,Vt=0;Vt<3;++Vt)if(Ct[Vt]=E.le(this.contourLevels[Vt],lt[Vt]),Ct[Vt]<0)this.contourLevels[Vt].length>0&&(Ct[Vt]=0);else if(Ct[Vt]Math.abs(Ot-lt[Vt])&&(Ct[Vt]+=1)}for(De.index[0]=ut<.5?Ze:Ze+1,De.index[1]=st<.5?Kt:Kt+1,De.uv[0]=ce/ge[0],De.uv[1]=gt/ge[1],Mt=0;Mt<3;++Mt)De.dataCoordinate[Mt]=this._field[Mt].get(De.index[0],De.index[1]);return De},H.padField=function(Pe,ge){var De=ge.shape.slice(),ce=Pe.shape.slice();d.assign(Pe.lo(1,1).hi(De[0],De[1]),ge),d.assign(Pe.lo(1).hi(De[0],1),ge.hi(De[0],1)),d.assign(Pe.lo(1,ce[1]-1).hi(De[0],1),ge.lo(0,De[1]-1).hi(De[0],1)),d.assign(Pe.lo(0,1).hi(1,De[1]),ge.hi(1)),d.assign(Pe.lo(ce[0]-1,1).hi(1,De[1]),ge.lo(De[0]-1)),Pe.set(0,0,ge.get(0,0)),Pe.set(0,ce[1]-1,ge.get(0,De[1]-1)),Pe.set(ce[0]-1,0,ge.get(De[0]-1,0)),Pe.set(ce[0]-1,ce[1]-1,ge.get(De[0]-1,De[1]-1))};function Se(Pe,ge){return Array.isArray(Pe)?[ge(Pe[0]),ge(Pe[1]),ge(Pe[2])]:[ge(Pe),ge(Pe),ge(Pe)]}function Le(Pe){return Array.isArray(Pe)?Pe.length===3?[Pe[0],Pe[1],Pe[2],1]:[Pe[0],Pe[1],Pe[2],Pe[3]]:[0,0,0,1]}function Ae(Pe){if(Array.isArray(Pe)){if(Array.isArray(Pe))return[Le(Pe[0]),Le(Pe[1]),Le(Pe[2])];var ge=Le(Pe);return[ge.slice(),ge.slice(),ge.slice()]}}H.update=function(Pe){Pe=Pe||{},this.objectOffset=Pe.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in Pe&&(this.contourWidth=Se(Pe.contourWidth,Number)),"showContour"in Pe&&(this.showContour=Se(Pe.showContour,Boolean)),"showSurface"in Pe&&(this.showSurface=!!Pe.showSurface),"contourTint"in Pe&&(this.contourTint=Se(Pe.contourTint,Boolean)),"contourColor"in Pe&&(this.contourColor=Ae(Pe.contourColor)),"contourProject"in Pe&&(this.contourProject=Se(Pe.contourProject,function(yn){return Se(yn,Boolean)})),"surfaceProject"in Pe&&(this.surfaceProject=Pe.surfaceProject),"dynamicColor"in Pe&&(this.dynamicColor=Ae(Pe.dynamicColor)),"dynamicTint"in Pe&&(this.dynamicTint=Se(Pe.dynamicTint,Number)),"dynamicWidth"in Pe&&(this.dynamicWidth=Se(Pe.dynamicWidth,Number)),"opacity"in Pe&&(this.opacity=Pe.opacity),"opacityscale"in Pe&&(this.opacityscale=Pe.opacityscale),"colorBounds"in Pe&&(this.colorBounds=Pe.colorBounds),"vertexColor"in Pe&&(this.vertexColor=Pe.vertexColor?1:0),"colormap"in Pe&&this._colorMap.setPixels(this.genColormap(Pe.colormap,this.opacityscale));var ge=Pe.field||Pe.coords&&Pe.coords[2]||null,De=!1;if(ge||(this._field[2].shape[0]||this._field[2].shape[2]?ge=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):ge=this._field[2].hi(0,0)),"field"in Pe||"coords"in Pe){var ce=(ge.shape[0]+2)*(ge.shape[1]+2);ce>this._field[2].data.length&&(f.freeFloat(this._field[2].data),this._field[2].data=f.mallocFloat(s.nextPow2(ce))),this._field[2]=x(this._field[2].data,[ge.shape[0]+2,ge.shape[1]+2]),this.padField(this._field[2],ge),this.shape=ge.shape.slice();for(var Ze=this.shape,ut=0;ut<2;++ut)this._field[2].size>this._field[ut].data.length&&(f.freeFloat(this._field[ut].data),this._field[ut].data=f.mallocFloat(this._field[2].size)),this._field[ut]=x(this._field[ut].data,[Ze[0]+2,Ze[1]+2]);if(Pe.coords){var gt=Pe.coords;if(!Array.isArray(gt)||gt.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(ut=0;ut<2;++ut){var Kt=gt[ut];for($t=0;$t<2;++$t)if(Kt.shape[$t]!==Ze[$t])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[ut],Kt)}}else if(Pe.ticks){var st=Pe.ticks;if(!Array.isArray(st)||st.length!==2)throw new Error("gl-surface: invalid ticks");for(ut=0;ut<2;++ut){var lt=st[ut];if((Array.isArray(lt)||lt.length)&&(lt=x(lt)),lt.shape[0]!==Ze[ut])throw new Error("gl-surface: invalid tick length");var Gt=x(lt.data,Ze);Gt.stride[ut]=lt.stride[0],Gt.stride[ut^1]=0,this.padField(this._field[ut],Gt)}}else{for(ut=0;ut<2;++ut){var Ut=[0,0];Ut[ut]=1,this._field[ut]=x(this._field[ut].data,[Ze[0]+2,Ze[1]+2],Ut,0)}this._field[0].set(0,0,0);for(var $t=0;$t0){for(var en=0;en<5;++en)mi.pop();je-=1}continue e}}}Rn.push(je)}this._contourOffsets[ei]=ji,this._contourCounts[ei]=Rn}var cn=f.mallocFloat(mi.length);for(ut=0;utV||z<0||z>V)throw new Error("gl-texture2d: Invalid texture size");return P._shape=[T,z],P.bind(),O.texImage2D(O.TEXTURE_2D,0,P.format,T,z,0,P.format,P.type,null),P._mipLevels=[0],P}function p(P,T,z,O,V,G){this.gl=P,this.handle=T,this.format=V,this.type=G,this._shape=[z,O],this._mipLevels=[0],this._magFilter=P.NEAREST,this._minFilter=P.NEAREST,this._wrapS=P.CLAMP_TO_EDGE,this._wrapT=P.CLAMP_TO_EDGE,this._anisoSamples=1;var Z=this,H=[this._wrapS,this._wrapT];Object.defineProperties(H,[{get:function(){return Z._wrapS},set:function(j){return Z.wrapS=j}},{get:function(){return Z._wrapT},set:function(j){return Z.wrapT=j}}]),this._wrapVector=H;var N=[this._shape[0],this._shape[1]];Object.defineProperties(N,[{get:function(){return Z._shape[0]},set:function(j){return Z.width=j}},{get:function(){return Z._shape[1]},set:function(j){return Z.height=j}}]),this._shapeVector=N}var C=p.prototype;Object.defineProperties(C,{minFilter:{get:function(){return this._minFilter},set:function(P){this.bind();var T=this.gl;if(this.type===T.FLOAT&&c.indexOf(P)>=0&&(T.getExtension("OES_texture_float_linear")||(P=T.NEAREST)),f.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return T.texParameteri(T.TEXTURE_2D,T.TEXTURE_MIN_FILTER,P),this._minFilter=P}},magFilter:{get:function(){return this._magFilter},set:function(P){this.bind();var T=this.gl;if(this.type===T.FLOAT&&c.indexOf(P)>=0&&(T.getExtension("OES_texture_float_linear")||(P=T.NEAREST)),f.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return T.texParameteri(T.TEXTURE_2D,T.TEXTURE_MAG_FILTER,P),this._magFilter=P}},mipSamples:{get:function(){return this._anisoSamples},set:function(P){var T=this._anisoSamples;if(this._anisoSamples=Math.max(P,1)|0,T!==this._anisoSamples){var z=this.gl.getExtension("EXT_texture_filter_anisotropic");z&&this.gl.texParameterf(this.gl.TEXTURE_2D,z.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,P),this._wrapS=P}},wrapT:{get:function(){return this._wrapT},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,P),this._wrapT=P}},wrap:{get:function(){return this._wrapVector},set:function(P){if(Array.isArray(P)||(P=[P,P]),P.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var T=0;T<2;++T)if(h.indexOf(P[T])<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);this._wrapS=P[0],this._wrapT=P[1];var z=this.gl;return this.bind(),z.texParameteri(z.TEXTURE_2D,z.TEXTURE_WRAP_S,this._wrapS),z.texParameteri(z.TEXTURE_2D,z.TEXTURE_WRAP_T,this._wrapT),P}},shape:{get:function(){return this._shapeVector},set:function(P){if(!Array.isArray(P))P=[P|0,P|0];else if(P.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return b(this,P[0]|0,P[1]|0),[P[0]|0,P[1]|0]}},width:{get:function(){return this._shape[0]},set:function(P){return P=P|0,b(this,P,this._shape[1]),P}},height:{get:function(){return this._shape[1]},set:function(P){return P=P|0,b(this,this._shape[0],P),P}}}),C.bind=function(P){var T=this.gl;return P!==void 0&&T.activeTexture(T.TEXTURE0+(P|0)),T.bindTexture(T.TEXTURE_2D,this.handle),P!==void 0?P|0:T.getParameter(T.ACTIVE_TEXTURE)-T.TEXTURE0},C.dispose=function(){this.gl.deleteTexture(this.handle)},C.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var P=Math.min(this._shape[0],this._shape[1]),T=0;P>0;++T,P>>>=1)this._mipLevels.indexOf(T)<0&&this._mipLevels.push(T)},C.setPixels=function(P,T,z,O){var V=this.gl;this.bind(),Array.isArray(T)?(O=z,z=T[1]|0,T=T[0]|0):(T=T||0,z=z||0),O=O||0;var G=v(P)?P:P.raw;if(G){var Z=this._mipLevels.indexOf(O)<0;Z?(V.texImage2D(V.TEXTURE_2D,0,this.format,this.format,this.type,G),this._mipLevels.push(O)):V.texSubImage2D(V.TEXTURE_2D,O,T,z,this.format,this.type,G)}else if(P.shape&&P.stride&&P.data){if(P.shape.length<2||T+P.shape[1]>this._shape[1]>>>O||z+P.shape[0]>this._shape[0]>>>O||T<0||z<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");A(V,T,z,O,this.format,this.type,this._mipLevels,P)}else throw new Error("gl-texture2d: Unsupported data type")};function E(P,T){return P.length===3?T[2]===1&&T[1]===P[0]*P[2]&&T[0]===P[2]:T[0]===1&&T[1]===P[0]}function A(P,T,z,O,V,G,Z,H){var N=H.dtype,j=H.shape.slice();if(j.length<2||j.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var re=0,oe=0,_e=E(j,H.stride.slice());N==="float32"?re=P.FLOAT:N==="float64"?(re=P.FLOAT,_e=!1,N="float32"):N==="uint8"?re=P.UNSIGNED_BYTE:(re=P.UNSIGNED_BYTE,_e=!1,N="uint8");var Me=1;if(j.length===2)oe=P.LUMINANCE,j=[j[0],j[1],1],H=s(H.data,j,[H.stride[0],H.stride[1],1],H.offset);else if(j.length===3){if(j[2]===1)oe=P.ALPHA;else if(j[2]===2)oe=P.LUMINANCE_ALPHA;else if(j[2]===3)oe=P.RGB;else if(j[2]===4)oe=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");Me=j[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((oe===P.LUMINANCE||oe===P.ALPHA)&&(V===P.LUMINANCE||V===P.ALPHA)&&(oe=V),oe!==V)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var ke=H.size,me=Z.indexOf(O)<0;if(me&&Z.push(O),re===G&&_e)H.offset===0&&H.data.length===ke?me?P.texImage2D(P.TEXTURE_2D,O,V,j[0],j[1],0,V,G,H.data):P.texSubImage2D(P.TEXTURE_2D,O,T,z,j[0],j[1],V,G,H.data):me?P.texImage2D(P.TEXTURE_2D,O,V,j[0],j[1],0,V,G,H.data.subarray(H.offset,H.offset+ke)):P.texSubImage2D(P.TEXTURE_2D,O,T,z,j[0],j[1],V,G,H.data.subarray(H.offset,H.offset+ke));else{var ie;G===P.FLOAT?ie=u.mallocFloat32(ke):ie=u.mallocUint8(ke);var Se=s(ie,j,[j[2],j[2]*j[0],1]);re===P.FLOAT&&G===P.UNSIGNED_BYTE?x(Se,H):l.assign(Se,H),me?P.texImage2D(P.TEXTURE_2D,O,V,j[0],j[1],0,V,G,ie.subarray(0,ke)):P.texSubImage2D(P.TEXTURE_2D,O,T,z,j[0],j[1],V,G,ie.subarray(0,ke)),G===P.FLOAT?u.freeFloat32(ie):u.freeUint8(ie)}}function L(P){var T=P.createTexture();return P.bindTexture(P.TEXTURE_2D,T),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MIN_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MAG_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_S,P.CLAMP_TO_EDGE),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_T,P.CLAMP_TO_EDGE),T}function _(P,T,z,O,V){var G=P.getParameter(P.MAX_TEXTURE_SIZE);if(T<0||T>G||z<0||z>G)throw new Error("gl-texture2d: Invalid texture shape");if(V===P.FLOAT&&!P.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var Z=L(P);return P.texImage2D(P.TEXTURE_2D,0,O,T,z,0,O,V,null),new p(P,Z,T,z,O,V)}function k(P,T,z,O,V,G){var Z=L(P);return P.texImage2D(P.TEXTURE_2D,0,V,V,G,T),new p(P,Z,z,O,V,G)}function M(P,T){var z=T.dtype,O=T.shape.slice(),V=P.getParameter(P.MAX_TEXTURE_SIZE);if(O[0]<0||O[0]>V||O[1]<0||O[1]>V)throw new Error("gl-texture2d: Invalid texture size");var G=E(O,T.stride.slice()),Z=0;z==="float32"?Z=P.FLOAT:z==="float64"?(Z=P.FLOAT,G=!1,z="float32"):z==="uint8"?Z=P.UNSIGNED_BYTE:(Z=P.UNSIGNED_BYTE,G=!1,z="uint8");var H=0;if(O.length===2)H=P.LUMINANCE,O=[O[0],O[1],1],T=s(T.data,O,[T.stride[0],T.stride[1],1],T.offset);else if(O.length===3)if(O[2]===1)H=P.ALPHA;else if(O[2]===2)H=P.LUMINANCE_ALPHA;else if(O[2]===3)H=P.RGB;else if(O[2]===4)H=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");Z===P.FLOAT&&!P.getExtension("OES_texture_float")&&(Z=P.UNSIGNED_BYTE,G=!1);var N,j,re=T.size;if(G)T.offset===0&&T.data.length===re?N=T.data:N=T.data.subarray(T.offset,T.offset+re);else{var oe=[O[2],O[2]*O[0],1];j=u.malloc(re,z);var _e=s(j,O,oe,0);(z==="float32"||z==="float64")&&Z===P.UNSIGNED_BYTE?x(_e,T):l.assign(_e,T),N=j.subarray(0,re)}var Me=L(P);return P.texImage2D(P.TEXTURE_2D,0,H,O[0],O[1],0,H,Z,N),G||u.free(j),new p(P,Me,O[0],O[1],H,Z)}function g(P){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(c||d(P),typeof arguments[1]=="number")return _(P,arguments[1],arguments[2],arguments[3]||P.RGBA,arguments[4]||P.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return _(P,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var T=arguments[1],z=v(T)?T:T.raw;if(z)return k(P,z,T.width|0,T.height|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(T.shape&&T.data&&T.stride)return M(P,T)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433:function(i){"use strict";function a(o,s,l){s?s.bind():o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,null);var u=o.getParameter(o.MAX_VERTEX_ATTRIBS)|0;if(l){if(l.length>u)throw new Error("gl-vao: Too many vertex attributes");for(var c=0;c1?0:Math.acos(x)}},9226:function(i){i.exports=a;function a(o,s){return o[0]=Math.ceil(s[0]),o[1]=Math.ceil(s[1]),o[2]=Math.ceil(s[2]),o}},3126:function(i){i.exports=a;function a(o){var s=new Float32Array(3);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s}},3990:function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o}},1091:function(i){i.exports=a;function a(){var o=new Float32Array(3);return o[0]=0,o[1]=0,o[2]=0,o}},5911:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],d=l[1],v=l[2];return o[0]=c*v-f*d,o[1]=f*h-u*v,o[2]=u*d-c*h,o}},5455:function(i,a,o){i.exports=o(7056)},7056:function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2];return Math.sqrt(l*l+u*u+c*c)}},4008:function(i,a,o){i.exports=o(6690)},6690:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]/l[0],o[1]=s[1]/l[1],o[2]=s[2]/l[2],o}},244:function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]}},2613:function(i){i.exports=1e-6},9922:function(i,a,o){i.exports=l;var s=o(2613);function l(u,c){var f=u[0],h=u[1],d=u[2],v=c[0],x=c[1],b=c[2];return Math.abs(f-v)<=s*Math.max(1,Math.abs(f),Math.abs(v))&&Math.abs(h-x)<=s*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(d-b)<=s*Math.max(1,Math.abs(d),Math.abs(b))}},9265:function(i){i.exports=a;function a(o,s){return o[0]===s[0]&&o[1]===s[1]&&o[2]===s[2]}},2681:function(i){i.exports=a;function a(o,s){return o[0]=Math.floor(s[0]),o[1]=Math.floor(s[1]),o[2]=Math.floor(s[2]),o}},5137:function(i,a,o){i.exports=l;var s=o(1091)();function l(u,c,f,h,d,v){var x,b;for(c||(c=3),f||(f=0),h?b=Math.min(h*c+f,u.length):b=u.length,x=f;x0&&(f=1/Math.sqrt(f),o[0]=s[0]*f,o[1]=s[1]*f,o[2]=s[2]*f),o}},7636:function(i){i.exports=a;function a(o,s){s=s||1;var l=Math.random()*2*Math.PI,u=Math.random()*2-1,c=Math.sqrt(1-u*u)*s;return o[0]=Math.cos(l)*c,o[1]=Math.sin(l)*c,o[2]=u*s,o}},6894:function(i){i.exports=a;function a(o,s,l,u){var c=l[1],f=l[2],h=s[1]-c,d=s[2]-f,v=Math.sin(u),x=Math.cos(u);return o[0]=s[0],o[1]=c+h*x-d*v,o[2]=f+h*v+d*x,o}},109:function(i){i.exports=a;function a(o,s,l,u){var c=l[0],f=l[2],h=s[0]-c,d=s[2]-f,v=Math.sin(u),x=Math.cos(u);return o[0]=c+d*v+h*x,o[1]=s[1],o[2]=f+d*x-h*v,o}},8692:function(i){i.exports=a;function a(o,s,l,u){var c=l[0],f=l[1],h=s[0]-c,d=s[1]-f,v=Math.sin(u),x=Math.cos(u);return o[0]=c+h*x-d*v,o[1]=f+h*v+d*x,o[2]=s[2],o}},2447:function(i){i.exports=a;function a(o,s){return o[0]=Math.round(s[0]),o[1]=Math.round(s[1]),o[2]=Math.round(s[2]),o}},6621:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]*l,o[1]=s[1]*l,o[2]=s[2]*l,o}},8489:function(i){i.exports=a;function a(o,s,l,u){return o[0]=s[0]+l[0]*u,o[1]=s[1]+l[1]*u,o[2]=s[2]+l[2]*u,o}},1463:function(i){i.exports=a;function a(o,s,l,u){return o[0]=s,o[1]=l,o[2]=u,o}},6141:function(i,a,o){i.exports=o(2953)},5486:function(i,a,o){i.exports=o(3066)},2953:function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2];return l*l+u*u+c*c}},3066:function(i){i.exports=a;function a(o){var s=o[0],l=o[1],u=o[2];return s*s+l*l+u*u}},2229:function(i,a,o){i.exports=o(6843)},6843:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]-l[0],o[1]=s[1]-l[1],o[2]=s[2]-l[2],o}},492:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2];return o[0]=u*l[0]+c*l[3]+f*l[6],o[1]=u*l[1]+c*l[4]+f*l[7],o[2]=u*l[2]+c*l[5]+f*l[8],o}},5673:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[3]*u+l[7]*c+l[11]*f+l[15];return h=h||1,o[0]=(l[0]*u+l[4]*c+l[8]*f+l[12])/h,o[1]=(l[1]*u+l[5]*c+l[9]*f+l[13])/h,o[2]=(l[2]*u+l[6]*c+l[10]*f+l[14])/h,o}},264:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],d=l[1],v=l[2],x=l[3],b=x*u+d*f-v*c,p=x*c+v*u-h*f,C=x*f+h*c-d*u,E=-h*u-d*c-v*f;return o[0]=b*x+E*-h+p*-v-C*-d,o[1]=p*x+E*-d+C*-h-b*-v,o[2]=C*x+E*-v+b*-d-p*-h,o}},4361:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]+l[0],o[1]=s[1]+l[1],o[2]=s[2]+l[2],o[3]=s[3]+l[3],o}},2335:function(i){i.exports=a;function a(o){var s=new Float32Array(4);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s[3]=o[3],s}},2933:function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o[3]=s[3],o}},7536:function(i){i.exports=a;function a(){var o=new Float32Array(4);return o[0]=0,o[1]=0,o[2]=0,o[3]=0,o}},4691:function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2],f=s[3]-o[3];return Math.sqrt(l*l+u*u+c*c+f*f)}},1373:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]/l[0],o[1]=s[1]/l[1],o[2]=s[2]/l[2],o[3]=s[3]/l[3],o}},3750:function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]+o[3]*s[3]}},3390:function(i){i.exports=a;function a(o,s,l,u){var c=new Float32Array(4);return c[0]=o,c[1]=s,c[2]=l,c[3]=u,c}},9970:function(i,a,o){i.exports={create:o(7536),clone:o(2335),fromValues:o(3390),copy:o(2933),set:o(4578),add:o(4361),subtract:o(6860),multiply:o(3576),divide:o(1373),min:o(2334),max:o(160),scale:o(9288),scaleAndAdd:o(4844),distance:o(4691),squaredDistance:o(7960),length:o(6808),squaredLength:o(483),negate:o(1498),inverse:o(4494),normalize:o(5177),dot:o(3750),lerp:o(2573),random:o(9131),transformMat4:o(5352),transformQuat:o(4041)}},4494:function(i){i.exports=a;function a(o,s){return o[0]=1/s[0],o[1]=1/s[1],o[2]=1/s[2],o[3]=1/s[3],o}},6808:function(i){i.exports=a;function a(o){var s=o[0],l=o[1],u=o[2],c=o[3];return Math.sqrt(s*s+l*l+u*u+c*c)}},2573:function(i){i.exports=a;function a(o,s,l,u){var c=s[0],f=s[1],h=s[2],d=s[3];return o[0]=c+u*(l[0]-c),o[1]=f+u*(l[1]-f),o[2]=h+u*(l[2]-h),o[3]=d+u*(l[3]-d),o}},160:function(i){i.exports=a;function a(o,s,l){return o[0]=Math.max(s[0],l[0]),o[1]=Math.max(s[1],l[1]),o[2]=Math.max(s[2],l[2]),o[3]=Math.max(s[3],l[3]),o}},2334:function(i){i.exports=a;function a(o,s,l){return o[0]=Math.min(s[0],l[0]),o[1]=Math.min(s[1],l[1]),o[2]=Math.min(s[2],l[2]),o[3]=Math.min(s[3],l[3]),o}},3576:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]*l[0],o[1]=s[1]*l[1],o[2]=s[2]*l[2],o[3]=s[3]*l[3],o}},1498:function(i){i.exports=a;function a(o,s){return o[0]=-s[0],o[1]=-s[1],o[2]=-s[2],o[3]=-s[3],o}},5177:function(i){i.exports=a;function a(o,s){var l=s[0],u=s[1],c=s[2],f=s[3],h=l*l+u*u+c*c+f*f;return h>0&&(h=1/Math.sqrt(h),o[0]=l*h,o[1]=u*h,o[2]=c*h,o[3]=f*h),o}},9131:function(i,a,o){var s=o(5177),l=o(9288);i.exports=u;function u(c,f){return f=f||1,c[0]=Math.random(),c[1]=Math.random(),c[2]=Math.random(),c[3]=Math.random(),s(c,c),l(c,c,f),c}},9288:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]*l,o[1]=s[1]*l,o[2]=s[2]*l,o[3]=s[3]*l,o}},4844:function(i){i.exports=a;function a(o,s,l,u){return o[0]=s[0]+l[0]*u,o[1]=s[1]+l[1]*u,o[2]=s[2]+l[2]*u,o[3]=s[3]+l[3]*u,o}},4578:function(i){i.exports=a;function a(o,s,l,u,c){return o[0]=s,o[1]=l,o[2]=u,o[3]=c,o}},7960:function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2],f=s[3]-o[3];return l*l+u*u+c*c+f*f}},483:function(i){i.exports=a;function a(o){var s=o[0],l=o[1],u=o[2],c=o[3];return s*s+l*l+u*u+c*c}},6860:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]-l[0],o[1]=s[1]-l[1],o[2]=s[2]-l[2],o[3]=s[3]-l[3],o}},5352:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=s[3];return o[0]=l[0]*u+l[4]*c+l[8]*f+l[12]*h,o[1]=l[1]*u+l[5]*c+l[9]*f+l[13]*h,o[2]=l[2]*u+l[6]*c+l[10]*f+l[14]*h,o[3]=l[3]*u+l[7]*c+l[11]*f+l[15]*h,o}},4041:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],d=l[1],v=l[2],x=l[3],b=x*u+d*f-v*c,p=x*c+v*u-h*f,C=x*f+h*c-d*u,E=-h*u-d*c-v*f;return o[0]=b*x+E*-h+p*-v-C*-d,o[1]=p*x+E*-d+C*-h-b*-v,o[2]=C*x+E*-v+b*-d-p*-h,o[3]=s[3],o}},1848:function(i,a,o){var s=o(4905),l=o(6468);i.exports=u;function u(c){for(var f=Array.isArray(c)?c:s(c),h=0;h0)continue;Vt=$e.slice(0,1).join("")}return De(Vt),ke+=Vt.length,N=N.slice(Vt.length),N.length}while(!0)}function $t(){return/[^a-fA-F0-9]/.test(Z)?(De(N.join("")),G=h,O):(N.push(Z),H=Z,O+1)}function sr(){return Z==="."||/[eE]/.test(Z)?(N.push(Z),G=E,H=Z,O+1):Z==="x"&&N.length===1&&N[0]==="0"?(G=g,N.push(Z),H=Z,O+1):/[^\d]/.test(Z)?(De(N.join("")),G=h,O):(N.push(Z),H=Z,O+1)}function Tr(){return Z==="f"&&(N.push(Z),H=Z,O+=1),/[eE]/.test(Z)||(Z==="-"||Z==="+")&&/[eE]/.test(H)?(N.push(Z),H=Z,O+1):/[^\d]/.test(Z)?(De(N.join("")),G=h,O):(N.push(Z),H=Z,O+1)}function ur(){if(/[^\d\w_]/.test(Z)){var $e=N.join("");return ge[$e]?G=_:Pe[$e]?G=L:G=A,De(N.join("")),G=h,O}return N.push(Z),H=Z,O+1}}},3508:function(i,a,o){var s=o(6852);s=s.slice().filter(function(l){return!/^(gl\_|texture)/.test(l)}),i.exports=s.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},6852:function(i){i.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},7932:function(i,a,o){var s=o(620);i.exports=s.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},620:function(i){i.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},7827:function(i){i.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905:function(i,a,o){var s=o(5874);i.exports=l;function l(u,c){var f=s(c),h=[];return h=h.concat(f(u)),h=h.concat(f(null)),h}},3236:function(i){i.exports=function(a){typeof a=="string"&&(a=[a]);for(var o=[].slice.call(arguments,1),s=[],l=0;l>1,b=-7,p=l?c-1:0,C=l?-1:1,E=o[s+p];for(p+=C,f=E&(1<<-b)-1,E>>=-b,b+=d;b>0;f=f*256+o[s+p],p+=C,b-=8);for(h=f&(1<<-b)-1,f>>=-b,b+=u;b>0;h=h*256+o[s+p],p+=C,b-=8);if(f===0)f=1-x;else{if(f===v)return h?NaN:(E?-1:1)*(1/0);h=h+Math.pow(2,u),f=f-x}return(E?-1:1)*h*Math.pow(2,f-u)},a.write=function(o,s,l,u,c,f){var h,d,v,x=f*8-c-1,b=(1<>1,C=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=u?0:f-1,A=u?1:-1,L=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(d=isNaN(s)?1:0,h=b):(h=Math.floor(Math.log(s)/Math.LN2),s*(v=Math.pow(2,-h))<1&&(h--,v*=2),h+p>=1?s+=C/v:s+=C*Math.pow(2,1-p),s*v>=2&&(h++,v/=2),h+p>=b?(d=0,h=b):h+p>=1?(d=(s*v-1)*Math.pow(2,c),h=h+p):(d=s*Math.pow(2,p-1)*Math.pow(2,c),h=0));c>=8;o[l+E]=d&255,E+=A,d/=256,c-=8);for(h=h<0;o[l+E]=h&255,E+=A,h/=256,x-=8);o[l+E-A]|=L*128}},8954:function(i,a,o){"use strict";i.exports=p;var s=o(3250),l=o(6803).Fw;function u(C,E,A){this.vertices=C,this.adjacent=E,this.boundary=A,this.lastVisited=-1}u.prototype.flip=function(){var C=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=C;var E=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=E};function c(C,E,A){this.vertices=C,this.cell=E,this.index=A}function f(C,E){return l(C.vertices,E.vertices)}function h(C){return function(){var E=this.tuple;return C.apply(this,E)}}function d(C){var E=s[C+1];return E||(E=s),h(E)}var v=[];function x(C,E,A){this.dimension=C,this.vertices=E,this.simplices=A,this.interior=A.filter(function(k){return!k.boundary}),this.tuple=new Array(C+1);for(var L=0;L<=C;++L)this.tuple[L]=this.vertices[L];var _=v[C];_||(_=v[C]=d(C)),this.orient=_}var b=x.prototype;b.handleBoundaryDegeneracy=function(C,E){var A=this.dimension,L=this.vertices.length-1,_=this.tuple,k=this.vertices,M=[C];for(C.lastVisited=-L;M.length>0;){C=M.pop();for(var g=C.adjacent,P=0;P<=A;++P){var T=g[P];if(!(!T.boundary||T.lastVisited<=-L)){for(var z=T.vertices,O=0;O<=A;++O){var V=z[O];V<0?_[O]=E:_[O]=k[V]}var G=this.orient();if(G>0)return T;T.lastVisited=-L,G===0&&M.push(T)}}}return null},b.walk=function(C,E){var A=this.vertices.length-1,L=this.dimension,_=this.vertices,k=this.tuple,M=E?this.interior.length*Math.random()|0:this.interior.length-1,g=this.interior[M];e:for(;!g.boundary;){for(var P=g.vertices,T=g.adjacent,z=0;z<=L;++z)k[z]=_[P[z]];g.lastVisited=A;for(var z=0;z<=L;++z){var O=T[z];if(!(O.lastVisited>=A)){var V=k[z];k[z]=C;var G=this.orient();if(k[z]=V,G<0){g=O;continue e}else O.boundary?O.lastVisited=-A:O.lastVisited=A}}return}return g},b.addPeaks=function(C,E){var A=this.vertices.length-1,L=this.dimension,_=this.vertices,k=this.tuple,M=this.interior,g=this.simplices,P=[E];E.lastVisited=A,E.vertices[E.vertices.indexOf(-1)]=A,E.boundary=!1,M.push(E);for(var T=[];P.length>0;){var E=P.pop(),z=E.vertices,O=E.adjacent,V=z.indexOf(A);if(!(V<0)){for(var G=0;G<=L;++G)if(G!==V){var Z=O[G];if(!(!Z.boundary||Z.lastVisited>=A)){var H=Z.vertices;if(Z.lastVisited!==-A){for(var N=0,j=0;j<=L;++j)H[j]<0?(N=j,k[j]=C):k[j]=_[H[j]];var re=this.orient();if(re>0){H[N]=A,Z.boundary=!1,M.push(Z),P.push(Z),Z.lastVisited=A;continue}else Z.lastVisited=-A}var oe=Z.adjacent,_e=z.slice(),Me=O.slice(),ke=new u(_e,Me,!0);g.push(ke);var me=oe.indexOf(E);if(!(me<0)){oe[me]=ke,Me[V]=Z,_e[G]=-1,Me[G]=E,O[G]=ke,ke.flip();for(var j=0;j<=L;++j){var ie=_e[j];if(!(ie<0||ie===A)){for(var Se=new Array(L-1),Le=0,Ae=0;Ae<=L;++Ae){var Fe=_e[Ae];Fe<0||Ae===j||(Se[Le++]=Fe)}T.push(new c(Se,ke,j))}}}}}}}T.sort(f);for(var G=0;G+1=0?M[P++]=g[z]:T=z&1;if(T===(C&1)){var O=M[0];M[0]=M[1],M[1]=O}E.push(M)}}return E};function p(C,E){var A=C.length;if(A===0)throw new Error("Must have at least d+1 points");var L=C[0].length;if(A<=L)throw new Error("Must input at least d+1 points");var _=C.slice(0,L+1),k=s.apply(void 0,_);if(k===0)throw new Error("Input not in general position");for(var M=new Array(L+1),g=0;g<=L;++g)M[g]=g;k<0&&(M[0]=1,M[1]=0);for(var P=new u(M,new Array(L+1),!1),T=P.adjacent,z=new Array(L+2),g=0;g<=L;++g){for(var O=M.slice(),V=0;V<=L;++V)V===g&&(O[V]=-1);var G=O[0];O[0]=O[1],O[1]=G;var Z=new u(O,new Array(L+1),!0);T[g]=Z,z[g]=Z}z[L+1]=P;for(var g=0;g<=L;++g)for(var O=T[g].vertices,H=T[g].adjacent,V=0;V<=L;++V){var N=O[V];if(N<0){H[V]=P;continue}for(var j=0;j<=L;++j)T[j].vertices.indexOf(N)<0&&(H[V]=T[j])}for(var re=new x(L,_,z),oe=!!E,g=L+1;g3*(z+1)?x(this,T):this.left.insert(T):this.left=k([T]);else if(T[0]>this.mid)this.right?4*(this.right.count+1)>3*(z+1)?x(this,T):this.right.insert(T):this.right=k([T]);else{var O=s.ge(this.leftPoints,T,L),V=s.ge(this.rightPoints,T,_);this.leftPoints.splice(O,0,T),this.rightPoints.splice(V,0,T)}},h.remove=function(T){var z=this.count-this.leftPoints;if(T[1]3*(z-1))return b(this,T);var V=this.left.remove(T);return V===c?(this.left=null,this.count-=1,u):(V===u&&(this.count-=1),V)}else if(T[0]>this.mid){if(!this.right)return l;var G=this.left?this.left.count:0;if(4*G>3*(z-1))return b(this,T);var V=this.right.remove(T);return V===c?(this.right=null,this.count-=1,u):(V===u&&(this.count-=1),V)}else{if(this.count===1)return this.leftPoints[0]===T?c:l;if(this.leftPoints.length===1&&this.leftPoints[0]===T){if(this.left&&this.right){for(var Z=this,H=this.left;H.right;)Z=H,H=H.right;if(Z===this)H.right=this.right;else{var N=this.left,V=this.right;Z.count-=H.count,Z.right=H.left,H.left=N,H.right=V}d(this,H),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?d(this,this.left):d(this,this.right);return u}for(var N=s.ge(this.leftPoints,T,L);N=0&&T[V][1]>=z;--V){var G=O(T[V]);if(G)return G}}function E(T,z){for(var O=0;Othis.mid){if(this.right){var O=this.right.queryPoint(T,z);if(O)return O}return C(this.rightPoints,T,z)}else return E(this.leftPoints,z)},h.queryInterval=function(T,z,O){if(Tthis.mid&&this.right){var V=this.right.queryInterval(T,z,O);if(V)return V}return zthis.mid?C(this.rightPoints,T,O):E(this.leftPoints,O)};function A(T,z){return T-z}function L(T,z){var O=T[0]-z[0];return O||T[1]-z[1]}function _(T,z){var O=T[1]-z[1];return O||T[0]-z[0]}function k(T){if(T.length===0)return null;for(var z=[],O=0;O>1],G=[],Z=[],H=[],O=0;O13)&&s!==32&&s!==133&&s!==160&&s!==5760&&s!==6158&&(s<8192||s>8205)&&s!==8232&&s!==8233&&s!==8239&&s!==8287&&s!==8288&&s!==12288&&s!==65279)return!1;return!0}},395:function(i){function a(o,s,l){return o*(1-l)+s*l}i.exports=a},2652:function(i,a,o){var s=o(4335),l=o(6864),u=o(1903),c=o(9921),f=o(7608),h=o(5665),d={length:o(1387),normalize:o(3536),dot:o(244),cross:o(5911)},v=l(),x=l(),b=[0,0,0,0],p=[[0,0,0],[0,0,0],[0,0,0]],C=[0,0,0];i.exports=function(k,M,g,P,T,z){if(M||(M=[0,0,0]),g||(g=[0,0,0]),P||(P=[0,0,0]),T||(T=[0,0,0,1]),z||(z=[0,0,0,1]),!s(v,k)||(u(x,v),x[3]=0,x[7]=0,x[11]=0,x[15]=1,Math.abs(c(x)<1e-8)))return!1;var O=v[3],V=v[7],G=v[11],Z=v[12],H=v[13],N=v[14],j=v[15];if(O!==0||V!==0||G!==0){b[0]=O,b[1]=V,b[2]=G,b[3]=j;var re=f(x,x);if(!re)return!1;h(x,x),E(T,b,x)}else T[0]=T[1]=T[2]=0,T[3]=1;if(M[0]=Z,M[1]=H,M[2]=N,A(p,v),g[0]=d.length(p[0]),d.normalize(p[0],p[0]),P[0]=d.dot(p[0],p[1]),L(p[1],p[1],p[0],1,-P[0]),g[1]=d.length(p[1]),d.normalize(p[1],p[1]),P[0]/=g[1],P[1]=d.dot(p[0],p[2]),L(p[2],p[2],p[0],1,-P[1]),P[2]=d.dot(p[1],p[2]),L(p[2],p[2],p[1],1,-P[2]),g[2]=d.length(p[2]),d.normalize(p[2],p[2]),P[1]/=g[2],P[2]/=g[2],d.cross(C,p[1],p[2]),d.dot(p[0],C)<0)for(var oe=0;oe<3;oe++)g[oe]*=-1,p[oe][0]*=-1,p[oe][1]*=-1,p[oe][2]*=-1;return z[0]=.5*Math.sqrt(Math.max(1+p[0][0]-p[1][1]-p[2][2],0)),z[1]=.5*Math.sqrt(Math.max(1-p[0][0]+p[1][1]-p[2][2],0)),z[2]=.5*Math.sqrt(Math.max(1-p[0][0]-p[1][1]+p[2][2],0)),z[3]=.5*Math.sqrt(Math.max(1+p[0][0]+p[1][1]+p[2][2],0)),p[2][1]>p[1][2]&&(z[0]=-z[0]),p[0][2]>p[2][0]&&(z[1]=-z[1]),p[1][0]>p[0][1]&&(z[2]=-z[2]),!0};function E(_,k,M){var g=k[0],P=k[1],T=k[2],z=k[3];return _[0]=M[0]*g+M[4]*P+M[8]*T+M[12]*z,_[1]=M[1]*g+M[5]*P+M[9]*T+M[13]*z,_[2]=M[2]*g+M[6]*P+M[10]*T+M[14]*z,_[3]=M[3]*g+M[7]*P+M[11]*T+M[15]*z,_}function A(_,k){_[0][0]=k[0],_[0][1]=k[1],_[0][2]=k[2],_[1][0]=k[4],_[1][1]=k[5],_[1][2]=k[6],_[2][0]=k[8],_[2][1]=k[9],_[2][2]=k[10]}function L(_,k,M,g,P){_[0]=k[0]*g+M[0]*P,_[1]=k[1]*g+M[1]*P,_[2]=k[2]*g+M[2]*P}},4335:function(i){i.exports=function(o,s){var l=s[15];if(l===0)return!1;for(var u=1/l,c=0;c<16;c++)o[c]=s[c]*u;return!0}},7442:function(i,a,o){var s=o(6658),l=o(7182),u=o(2652),c=o(9921),f=o(8648),h=b(),d=b(),v=b();i.exports=x;function x(E,A,L,_){if(c(A)===0||c(L)===0)return!1;var k=u(A,h.translate,h.scale,h.skew,h.perspective,h.quaternion),M=u(L,d.translate,d.scale,d.skew,d.perspective,d.quaternion);return!k||!M?!1:(s(v.translate,h.translate,d.translate,_),s(v.skew,h.skew,d.skew,_),s(v.scale,h.scale,d.scale,_),s(v.perspective,h.perspective,d.perspective,_),f(v.quaternion,h.quaternion,d.quaternion,_),l(E,v.translate,v.scale,v.skew,v.perspective,v.quaternion),!0)}function b(){return{translate:p(),scale:p(1),skew:p(),perspective:C(),quaternion:C()}}function p(E){return[E||0,E||0,E||0]}function C(){return[0,0,0,1]}},7182:function(i,a,o){var s={identity:o(7894),translate:o(7656),multiply:o(6760),create:o(6864),scale:o(2504),fromRotationTranslation:o(6743)},l=s.create(),u=s.create();i.exports=function(f,h,d,v,x,b){return s.identity(f),s.fromRotationTranslation(f,b,h),f[3]=x[0],f[7]=x[1],f[11]=x[2],f[15]=x[3],s.identity(u),v[2]!==0&&(u[9]=v[2],s.multiply(f,f,u)),v[1]!==0&&(u[9]=0,u[8]=v[1],s.multiply(f,f,u)),v[0]!==0&&(u[8]=0,u[4]=v[0],s.multiply(f,f,u)),s.scale(f,f,d),f}},1811:function(i,a,o){"use strict";var s=o(2478),l=o(7442),u=o(7608),c=o(5567),f=o(2408),h=o(7089),d=o(6582),v=o(7656),x=o(2504),b=o(3536),p=[0,0,0];i.exports=L;function C(_){this._components=_.slice(),this._time=[0],this.prevMatrix=_.slice(),this.nextMatrix=_.slice(),this.computedMatrix=_.slice(),this.computedInverse=_.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var E=C.prototype;E.recalcMatrix=function(_){var k=this._time,M=s.le(k,_),g=this.computedMatrix;if(!(M<0)){var P=this._components;if(M===k.length-1)for(var T=16*M,z=0;z<16;++z)g[z]=P[T++];else{for(var O=k[M+1]-k[M],T=16*M,V=this.prevMatrix,G=!0,z=0;z<16;++z)V[z]=P[T++];for(var Z=this.nextMatrix,z=0;z<16;++z)Z[z]=P[T++],G=G&&V[z]===Z[z];if(O<1e-6||G)for(var z=0;z<16;++z)g[z]=V[z];else l(g,V,Z,(_-k[M])/O)}var H=this.computedUp;H[0]=g[1],H[1]=g[5],H[2]=g[9],b(H,H);var N=this.computedInverse;u(N,g);var j=this.computedEye,re=N[15];j[0]=N[12]/re,j[1]=N[13]/re,j[2]=N[14]/re;for(var oe=this.computedCenter,_e=Math.exp(this.computedRadius[0]),z=0;z<3;++z)oe[z]=j[z]-g[2+4*z]*_e}},E.idle=function(_){if(!(_1&&s(u[d[p-2]],u[d[p-1]],b)<=0;)p-=1,d.pop();for(d.push(x),p=v.length;p>1&&s(u[v[p-2]],u[v[p-1]],b)>=0;)p-=1,v.pop();v.push(x)}for(var C=new Array(v.length+d.length-2),E=0,f=0,A=d.length;f0;--L)C[E++]=v[L];return C}},351:function(i,a,o){"use strict";i.exports=l;var s=o(4687);function l(u,c){c||(c=u,u=window);var f=0,h=0,d=0,v={shift:!1,alt:!1,control:!1,meta:!1},x=!1;function b(T){var z=!1;return"altKey"in T&&(z=z||T.altKey!==v.alt,v.alt=!!T.altKey),"shiftKey"in T&&(z=z||T.shiftKey!==v.shift,v.shift=!!T.shiftKey),"ctrlKey"in T&&(z=z||T.ctrlKey!==v.control,v.control=!!T.ctrlKey),"metaKey"in T&&(z=z||T.metaKey!==v.meta,v.meta=!!T.metaKey),z}function p(T,z){var O=s.x(z),V=s.y(z);"buttons"in z&&(T=z.buttons|0),(T!==f||O!==h||V!==d||b(z))&&(f=T|0,h=O||0,d=V||0,c&&c(f,h,d,v))}function C(T){p(0,T)}function E(){(f||h||d||v.shift||v.alt||v.meta||v.control)&&(h=d=0,f=0,v.shift=v.alt=v.control=v.meta=!1,c&&c(0,0,0,v))}function A(T){b(T)&&c&&c(f,h,d,v)}function L(T){s.buttons(T)===0?p(0,T):p(f,T)}function _(T){p(f|s.buttons(T),T)}function k(T){p(f&~s.buttons(T),T)}function M(){x||(x=!0,u.addEventListener("mousemove",L),u.addEventListener("mousedown",_),u.addEventListener("mouseup",k),u.addEventListener("mouseleave",C),u.addEventListener("mouseenter",C),u.addEventListener("mouseout",C),u.addEventListener("mouseover",C),u.addEventListener("blur",E),u.addEventListener("keyup",A),u.addEventListener("keydown",A),u.addEventListener("keypress",A),u!==window&&(window.addEventListener("blur",E),window.addEventListener("keyup",A),window.addEventListener("keydown",A),window.addEventListener("keypress",A)))}function g(){x&&(x=!1,u.removeEventListener("mousemove",L),u.removeEventListener("mousedown",_),u.removeEventListener("mouseup",k),u.removeEventListener("mouseleave",C),u.removeEventListener("mouseenter",C),u.removeEventListener("mouseout",C),u.removeEventListener("mouseover",C),u.removeEventListener("blur",E),u.removeEventListener("keyup",A),u.removeEventListener("keydown",A),u.removeEventListener("keypress",A),u!==window&&(window.removeEventListener("blur",E),window.removeEventListener("keyup",A),window.removeEventListener("keydown",A),window.removeEventListener("keypress",A)))}M();var P={element:u};return Object.defineProperties(P,{enabled:{get:function(){return x},set:function(T){T?M():g()},enumerable:!0},buttons:{get:function(){return f},enumerable:!0},x:{get:function(){return h},enumerable:!0},y:{get:function(){return d},enumerable:!0},mods:{get:function(){return v},enumerable:!0}}),P}},24:function(i){var a={left:0,top:0};i.exports=o;function o(l,u,c){u=u||l.currentTarget||l.srcElement,Array.isArray(c)||(c=[0,0]);var f=l.clientX||0,h=l.clientY||0,d=s(u);return c[0]=f-d.left,c[1]=h-d.top,c}function s(l){return l===window||l===document||l===document.body?a:l.getBoundingClientRect()}},4687:function(i,a){"use strict";function o(c){if(typeof c=="object"){if("buttons"in c)return c.buttons;if("which"in c){var f=c.which;if(f===2)return 4;if(f===3)return 2;if(f>0)return 1<=0)return 1<0){if(Me=1,ie[Le++]=v(M[z],E,A,L),z+=re,_>0)for(_e=1,O=M[z],Ae=ie[Le]=v(O,E,A,L),ge=ie[Le+Fe],Ze=ie[Le+De],Kt=ie[Le+ut],(Ae!==ge||Ae!==Ze||Ae!==Kt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,ge,Ze,Kt,E,A,L),st=Se[Le]=ke++),Le+=1,z+=re,_e=2;_e<_;++_e)O=M[z],Ae=ie[Le]=v(O,E,A,L),ge=ie[Le+Fe],Ze=ie[Le+De],Kt=ie[Le+ut],(Ae!==ge||Ae!==Ze||Ae!==Kt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,ge,Ze,Kt,E,A,L),st=Se[Le]=ke++,Kt!==ge&&d(Se[Le+Fe],st,j,G,Kt,ge,E,A,L)),Le+=1,z+=re;for(z+=oe,Le=0,lt=Fe,Fe=Pe,Pe=lt,lt=De,De=ce,ce=lt,lt=ut,ut=gt,gt=lt,Me=2;Me0)for(_e=1,O=M[z],Ae=ie[Le]=v(O,E,A,L),ge=ie[Le+Fe],Ze=ie[Le+De],Kt=ie[Le+ut],(Ae!==ge||Ae!==Ze||Ae!==Kt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,ge,Ze,Kt,E,A,L),st=Se[Le]=ke++,Kt!==Ze&&d(Se[Le+De],st,H,j,Ze,Kt,E,A,L)),Le+=1,z+=re,_e=2;_e<_;++_e)O=M[z],Ae=ie[Le]=v(O,E,A,L),ge=ie[Le+Fe],Ze=ie[Le+De],Kt=ie[Le+ut],(Ae!==ge||Ae!==Ze||Ae!==Kt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,ge,Ze,Kt,E,A,L),st=Se[Le]=ke++,Kt!==Ze&&d(Se[Le+De],st,H,j,Ze,Kt,E,A,L),Kt!==ge&&d(Se[Le+Fe],st,j,G,Kt,ge,E,A,L)),Le+=1,z+=re;Me&1&&(Le=0),lt=Fe,Fe=Pe,Pe=lt,lt=De,De=ce,ce=lt,lt=ut,ut=gt,gt=lt,z+=oe}}b(Se),b(ie)}},"false,1,0":function(h,d,v,x,b){return function(C,E,A,L){var _=C.shape[0]|0,k=C.shape[1]|0,M=C.data,g=C.offset|0,P=C.stride[0]|0,T=C.stride[1]|0,z=g,O,V=-P|0,G=0,Z=-T|0,H=0,N=-P-T|0,j=0,re=T|0,oe=P-T*k|0,_e=0,Me=0,ke=0,me=2*k|0,ie=x(me),Se=x(me),Le=0,Ae=0,Fe=-1,Pe=-1,ge=0,De=-k|0,ce=k|0,Ze=0,ut=-k-1|0,gt=k-1|0,Kt=0,st=0,lt=0;for(Me=0;Me0){if(_e=1,ie[Le++]=v(M[z],E,A,L),z+=re,k>0)for(Me=1,O=M[z],Ae=ie[Le]=v(O,E,A,L),Ze=ie[Le+De],ge=ie[Le+Fe],Kt=ie[Le+ut],(Ae!==Ze||Ae!==ge||Ae!==Kt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,Ze,ge,Kt,E,A,L),st=Se[Le]=ke++),Le+=1,z+=re,Me=2;Me0)for(Me=1,O=M[z],Ae=ie[Le]=v(O,E,A,L),Ze=ie[Le+De],ge=ie[Le+Fe],Kt=ie[Le+ut],(Ae!==Ze||Ae!==ge||Ae!==Kt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,Ze,ge,Kt,E,A,L),st=Se[Le]=ke++,Kt!==Ze&&d(Se[Le+De],st,j,G,Kt,Ze,E,A,L)),Le+=1,z+=re,Me=2;Me 0"),typeof f.vertex!="function"&&h("Must specify vertex creation function"),typeof f.cell!="function"&&h("Must specify cell creation function"),typeof f.phase!="function"&&h("Must specify phase function");for(var b=f.getters||[],p=new Array(v),C=0;C=0?p[C]=!0:p[C]=!1;return u(f.vertex,f.cell,f.phase,x,d,p)}},6199:function(i,a,o){"use strict";var s=o(1338),l={zero:function(L,_,k,M){var g=L[0],P=k[0];M|=0;var T=0,z=P;for(T=0;T2&&T[1]>2&&M(P.pick(-1,-1).lo(1,1).hi(T[0]-2,T[1]-2),g.pick(-1,-1,0).lo(1,1).hi(T[0]-2,T[1]-2),g.pick(-1,-1,1).lo(1,1).hi(T[0]-2,T[1]-2)),T[1]>2&&(k(P.pick(0,-1).lo(1).hi(T[1]-2),g.pick(0,-1,1).lo(1).hi(T[1]-2)),_(g.pick(0,-1,0).lo(1).hi(T[1]-2))),T[1]>2&&(k(P.pick(T[0]-1,-1).lo(1).hi(T[1]-2),g.pick(T[0]-1,-1,1).lo(1).hi(T[1]-2)),_(g.pick(T[0]-1,-1,0).lo(1).hi(T[1]-2))),T[0]>2&&(k(P.pick(-1,0).lo(1).hi(T[0]-2),g.pick(-1,0,0).lo(1).hi(T[0]-2)),_(g.pick(-1,0,1).lo(1).hi(T[0]-2))),T[0]>2&&(k(P.pick(-1,T[1]-1).lo(1).hi(T[0]-2),g.pick(-1,T[1]-1,0).lo(1).hi(T[0]-2)),_(g.pick(-1,T[1]-1,1).lo(1).hi(T[0]-2))),g.set(0,0,0,0),g.set(0,0,1,0),g.set(T[0]-1,0,0,0),g.set(T[0]-1,0,1,0),g.set(0,T[1]-1,0,0),g.set(0,T[1]-1,1,0),g.set(T[0]-1,T[1]-1,0,0),g.set(T[0]-1,T[1]-1,1,0),g}}function A(L){var _=L.join(),T=v[_];if(T)return T;for(var k=L.length,M=[b,p],g=1;g<=k;++g)M.push(C(g));var P=E,T=P.apply(void 0,M);return v[_]=T,T}i.exports=function(_,k,M){if(Array.isArray(M)||(typeof M=="string"?M=s(k.dimension,M):M=s(k.dimension,"clamp")),k.size===0)return _;if(k.dimension===0)return _.set(0),_;var g=A(M);return g(_,k)}},4317:function(i){"use strict";function a(c,f){var h=Math.floor(f),d=f-h,v=0<=h&&h0;){H<64?(_=H,H=0):(_=64,H-=64);for(var N=v[1]|0;N>0;){N<64?(k=N,N=0):(k=64,N-=64),p=G+H*g+N*P,A=Z+H*z+N*O;var j=0,re=0,oe=0,_e=T,Me=g-M*T,ke=P-_*g,me=V,ie=z-M*V,Se=O-_*z;for(oe=0;oe0;){O<64?(_=O,O=0):(_=64,O-=64);for(var V=v[0]|0;V>0;){V<64?(L=V,V=0):(L=64,V-=64),p=T+O*M+V*k,A=z+O*P+V*g;var G=0,Z=0,H=M,N=k-_*M,j=P,re=g-_*P;for(Z=0;Z0;){Z<64?(k=Z,Z=0):(k=64,Z-=64);for(var H=v[0]|0;H>0;){H<64?(L=H,H=0):(L=64,H-=64);for(var N=v[1]|0;N>0;){N<64?(_=N,N=0):(_=64,N-=64),p=V+Z*P+H*M+N*g,A=G+Z*O+H*T+N*z;var j=0,re=0,oe=0,_e=P,Me=M-k*P,ke=g-L*M,me=O,ie=T-k*O,Se=z-L*T;for(oe=0;oe<_;++oe){for(re=0;reC;){j=0,re=G-_;t:for(H=0;H_e)break t;re+=T,j+=z}for(j=G,re=G-_,H=0;H>1,N=H-V,j=H+V,re=G,oe=N,_e=H,Me=j,ke=Z,me=E+1,ie=A-1,Se=!0,Le,Ae,Fe,Pe,ge,De,ce,Ze,ut,gt=0,Kt=0,st=0,lt,Gt,Ut,$t,sr,Tr,ur,$e,Mt,Ct,Vt,It,Ot,bt,rr,lr,wr=P,Cr=b(wr),Kr=b(wr);Gt=k*re,Ut=k*oe,lr=_;e:for(lt=0;lt0){Ae=re,re=oe,oe=Ae;break e}if(st<0)break e;lr+=z}Gt=k*Me,Ut=k*ke,lr=_;e:for(lt=0;lt0){Ae=Me,Me=ke,ke=Ae;break e}if(st<0)break e;lr+=z}Gt=k*re,Ut=k*_e,lr=_;e:for(lt=0;lt0){Ae=re,re=_e,_e=Ae;break e}if(st<0)break e;lr+=z}Gt=k*oe,Ut=k*_e,lr=_;e:for(lt=0;lt0){Ae=oe,oe=_e,_e=Ae;break e}if(st<0)break e;lr+=z}Gt=k*re,Ut=k*Me,lr=_;e:for(lt=0;lt0){Ae=re,re=Me,Me=Ae;break e}if(st<0)break e;lr+=z}Gt=k*_e,Ut=k*Me,lr=_;e:for(lt=0;lt0){Ae=_e,_e=Me,Me=Ae;break e}if(st<0)break e;lr+=z}Gt=k*oe,Ut=k*ke,lr=_;e:for(lt=0;lt0){Ae=oe,oe=ke,ke=Ae;break e}if(st<0)break e;lr+=z}Gt=k*oe,Ut=k*_e,lr=_;e:for(lt=0;lt0){Ae=oe,oe=_e,_e=Ae;break e}if(st<0)break e;lr+=z}Gt=k*Me,Ut=k*ke,lr=_;e:for(lt=0;lt0){Ae=Me,Me=ke,ke=Ae;break e}if(st<0)break e;lr+=z}for(Gt=k*re,Ut=k*oe,$t=k*_e,sr=k*Me,Tr=k*ke,ur=k*G,$e=k*H,Mt=k*Z,rr=0,lr=_,lt=0;lt0)ie--;else if(st<0){for(Gt=k*De,Ut=k*me,$t=k*ie,lr=_,lt=0;lt0)for(;;){ce=_+ie*k,rr=0;e:for(lt=0;lt0){if(--ieZ){e:for(;;){for(ce=_+me*k,rr=0,lr=_,lt=0;lt1&&C?A(p,C[0],C[1]):A(p)}var d={"uint32,1,0":function(x,b){return function(p){var C=p.data,E=p.offset|0,A=p.shape,L=p.stride,_=L[0]|0,k=A[0]|0,M=L[1]|0,g=A[1]|0,P=M,T=M,z=1;k<=32?x(0,k-1,C,E,_,M,k,g,P,T,z):b(0,k-1,C,E,_,M,k,g,P,T,z)}}};function v(x,b){var p=[b,x].join(","),C=d[p],E=c(x,b),A=h(x,b,E);return C(E,A)}i.exports=v},446:function(i,a,o){"use strict";var s=o(7640),l={};function u(c){var f=c.order,h=c.dtype,d=[f,h],v=d.join(":"),x=l[v];return x||(l[v]=x=s(f,h)),x(c),c}i.exports=u},9618:function(i,a,o){var s=o(7163),l=typeof Float64Array!="undefined";function u(b,p){return b[0]-p[0]}function c(){var b=this.stride,p=new Array(b.length),C;for(C=0;C=0&&(M=_|0,k+=P*M,g-=M),new E(this.data,g,P,k)},A.step=function(_){var k=this.shape[0],M=this.stride[0],g=this.offset,P=0,T=Math.ceil;return typeof _=="number"&&(P=_|0,P<0?(g+=M*(k-1),k=T(-k/P)):k=T(k/P),M*=P),new E(this.data,k,M,g)},A.transpose=function(_){_=_===void 0?0:_|0;var k=this.shape,M=this.stride;return new E(this.data,k[_],M[_],this.offset)},A.pick=function(_){var k=[],M=[],g=this.offset;typeof _=="number"&&_>=0?g=g+this.stride[0]*_|0:(k.push(this.shape[0]),M.push(this.stride[0]));var P=p[k.length+1];return P(this.data,k,M,g)},function(_,k,M,g){return new E(_,k[0],M[0],g)}},2:function(b,p,C){function E(L,_,k,M,g,P){this.data=L,this.shape=[_,k],this.stride=[M,g],this.offset=P|0}var A=E.prototype;return A.dtype=b,A.dimension=2,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(A,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),A.set=function(_,k,M){return b==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*k,M):this.data[this.offset+this.stride[0]*_+this.stride[1]*k]=M},A.get=function(_,k){return b==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*k):this.data[this.offset+this.stride[0]*_+this.stride[1]*k]},A.index=function(_,k){return this.offset+this.stride[0]*_+this.stride[1]*k},A.hi=function(_,k){return new E(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof k!="number"||k<0?this.shape[1]:k|0,this.stride[0],this.stride[1],this.offset)},A.lo=function(_,k){var M=this.offset,g=0,P=this.shape[0],T=this.shape[1],z=this.stride[0],O=this.stride[1];return typeof _=="number"&&_>=0&&(g=_|0,M+=z*g,P-=g),typeof k=="number"&&k>=0&&(g=k|0,M+=O*g,T-=g),new E(this.data,P,T,z,O,M)},A.step=function(_,k){var M=this.shape[0],g=this.shape[1],P=this.stride[0],T=this.stride[1],z=this.offset,O=0,V=Math.ceil;return typeof _=="number"&&(O=_|0,O<0?(z+=P*(M-1),M=V(-M/O)):M=V(M/O),P*=O),typeof k=="number"&&(O=k|0,O<0?(z+=T*(g-1),g=V(-g/O)):g=V(g/O),T*=O),new E(this.data,M,g,P,T,z)},A.transpose=function(_,k){_=_===void 0?0:_|0,k=k===void 0?1:k|0;var M=this.shape,g=this.stride;return new E(this.data,M[_],M[k],g[_],g[k],this.offset)},A.pick=function(_,k){var M=[],g=[],P=this.offset;typeof _=="number"&&_>=0?P=P+this.stride[0]*_|0:(M.push(this.shape[0]),g.push(this.stride[0])),typeof k=="number"&&k>=0?P=P+this.stride[1]*k|0:(M.push(this.shape[1]),g.push(this.stride[1]));var T=p[M.length+1];return T(this.data,M,g,P)},function(_,k,M,g){return new E(_,k[0],k[1],M[0],M[1],g)}},3:function(b,p,C){function E(L,_,k,M,g,P,T,z){this.data=L,this.shape=[_,k,M],this.stride=[g,P,T],this.offset=z|0}var A=E.prototype;return A.dtype=b,A.dimension=3,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(A,"order",{get:function(){var _=Math.abs(this.stride[0]),k=Math.abs(this.stride[1]),M=Math.abs(this.stride[2]);return _>k?k>M?[2,1,0]:_>M?[1,2,0]:[1,0,2]:_>M?[2,0,1]:M>k?[0,1,2]:[0,2,1]}}),A.set=function(_,k,M,g){return b==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M,g):this.data[this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M]=g},A.get=function(_,k,M){return b==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M):this.data[this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M]},A.index=function(_,k,M){return this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M},A.hi=function(_,k,M){return new E(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof k!="number"||k<0?this.shape[1]:k|0,typeof M!="number"||M<0?this.shape[2]:M|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},A.lo=function(_,k,M){var g=this.offset,P=0,T=this.shape[0],z=this.shape[1],O=this.shape[2],V=this.stride[0],G=this.stride[1],Z=this.stride[2];return typeof _=="number"&&_>=0&&(P=_|0,g+=V*P,T-=P),typeof k=="number"&&k>=0&&(P=k|0,g+=G*P,z-=P),typeof M=="number"&&M>=0&&(P=M|0,g+=Z*P,O-=P),new E(this.data,T,z,O,V,G,Z,g)},A.step=function(_,k,M){var g=this.shape[0],P=this.shape[1],T=this.shape[2],z=this.stride[0],O=this.stride[1],V=this.stride[2],G=this.offset,Z=0,H=Math.ceil;return typeof _=="number"&&(Z=_|0,Z<0?(G+=z*(g-1),g=H(-g/Z)):g=H(g/Z),z*=Z),typeof k=="number"&&(Z=k|0,Z<0?(G+=O*(P-1),P=H(-P/Z)):P=H(P/Z),O*=Z),typeof M=="number"&&(Z=M|0,Z<0?(G+=V*(T-1),T=H(-T/Z)):T=H(T/Z),V*=Z),new E(this.data,g,P,T,z,O,V,G)},A.transpose=function(_,k,M){_=_===void 0?0:_|0,k=k===void 0?1:k|0,M=M===void 0?2:M|0;var g=this.shape,P=this.stride;return new E(this.data,g[_],g[k],g[M],P[_],P[k],P[M],this.offset)},A.pick=function(_,k,M){var g=[],P=[],T=this.offset;typeof _=="number"&&_>=0?T=T+this.stride[0]*_|0:(g.push(this.shape[0]),P.push(this.stride[0])),typeof k=="number"&&k>=0?T=T+this.stride[1]*k|0:(g.push(this.shape[1]),P.push(this.stride[1])),typeof M=="number"&&M>=0?T=T+this.stride[2]*M|0:(g.push(this.shape[2]),P.push(this.stride[2]));var z=p[g.length+1];return z(this.data,g,P,T)},function(_,k,M,g){return new E(_,k[0],k[1],k[2],M[0],M[1],M[2],g)}},4:function(b,p,C){function E(L,_,k,M,g,P,T,z,O,V){this.data=L,this.shape=[_,k,M,g],this.stride=[P,T,z,O],this.offset=V|0}var A=E.prototype;return A.dtype=b,A.dimension=4,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(A,"order",{get:C}),A.set=function(_,k,M,g,P){return b==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g,P):this.data[this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g]=P},A.get=function(_,k,M,g){return b==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g):this.data[this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g]},A.index=function(_,k,M,g){return this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g},A.hi=function(_,k,M,g){return new E(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof k!="number"||k<0?this.shape[1]:k|0,typeof M!="number"||M<0?this.shape[2]:M|0,typeof g!="number"||g<0?this.shape[3]:g|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},A.lo=function(_,k,M,g){var P=this.offset,T=0,z=this.shape[0],O=this.shape[1],V=this.shape[2],G=this.shape[3],Z=this.stride[0],H=this.stride[1],N=this.stride[2],j=this.stride[3];return typeof _=="number"&&_>=0&&(T=_|0,P+=Z*T,z-=T),typeof k=="number"&&k>=0&&(T=k|0,P+=H*T,O-=T),typeof M=="number"&&M>=0&&(T=M|0,P+=N*T,V-=T),typeof g=="number"&&g>=0&&(T=g|0,P+=j*T,G-=T),new E(this.data,z,O,V,G,Z,H,N,j,P)},A.step=function(_,k,M,g){var P=this.shape[0],T=this.shape[1],z=this.shape[2],O=this.shape[3],V=this.stride[0],G=this.stride[1],Z=this.stride[2],H=this.stride[3],N=this.offset,j=0,re=Math.ceil;return typeof _=="number"&&(j=_|0,j<0?(N+=V*(P-1),P=re(-P/j)):P=re(P/j),V*=j),typeof k=="number"&&(j=k|0,j<0?(N+=G*(T-1),T=re(-T/j)):T=re(T/j),G*=j),typeof M=="number"&&(j=M|0,j<0?(N+=Z*(z-1),z=re(-z/j)):z=re(z/j),Z*=j),typeof g=="number"&&(j=g|0,j<0?(N+=H*(O-1),O=re(-O/j)):O=re(O/j),H*=j),new E(this.data,P,T,z,O,V,G,Z,H,N)},A.transpose=function(_,k,M,g){_=_===void 0?0:_|0,k=k===void 0?1:k|0,M=M===void 0?2:M|0,g=g===void 0?3:g|0;var P=this.shape,T=this.stride;return new E(this.data,P[_],P[k],P[M],P[g],T[_],T[k],T[M],T[g],this.offset)},A.pick=function(_,k,M,g){var P=[],T=[],z=this.offset;typeof _=="number"&&_>=0?z=z+this.stride[0]*_|0:(P.push(this.shape[0]),T.push(this.stride[0])),typeof k=="number"&&k>=0?z=z+this.stride[1]*k|0:(P.push(this.shape[1]),T.push(this.stride[1])),typeof M=="number"&&M>=0?z=z+this.stride[2]*M|0:(P.push(this.shape[2]),T.push(this.stride[2])),typeof g=="number"&&g>=0?z=z+this.stride[3]*g|0:(P.push(this.shape[3]),T.push(this.stride[3]));var O=p[P.length+1];return O(this.data,P,T,z)},function(_,k,M,g){return new E(_,k[0],k[1],k[2],k[3],M[0],M[1],M[2],M[3],g)}},5:function(p,C,E){function A(_,k,M,g,P,T,z,O,V,G,Z,H){this.data=_,this.shape=[k,M,g,P,T],this.stride=[z,O,V,G,Z],this.offset=H|0}var L=A.prototype;return L.dtype=p,L.dimension=5,Object.defineProperty(L,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(L,"order",{get:E}),L.set=function(k,M,g,P,T,z){return p==="generic"?this.data.set(this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T,z):this.data[this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T]=z},L.get=function(k,M,g,P,T){return p==="generic"?this.data.get(this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T):this.data[this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T]},L.index=function(k,M,g,P,T){return this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T},L.hi=function(k,M,g,P,T){return new A(this.data,typeof k!="number"||k<0?this.shape[0]:k|0,typeof M!="number"||M<0?this.shape[1]:M|0,typeof g!="number"||g<0?this.shape[2]:g|0,typeof P!="number"||P<0?this.shape[3]:P|0,typeof T!="number"||T<0?this.shape[4]:T|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},L.lo=function(k,M,g,P,T){var z=this.offset,O=0,V=this.shape[0],G=this.shape[1],Z=this.shape[2],H=this.shape[3],N=this.shape[4],j=this.stride[0],re=this.stride[1],oe=this.stride[2],_e=this.stride[3],Me=this.stride[4];return typeof k=="number"&&k>=0&&(O=k|0,z+=j*O,V-=O),typeof M=="number"&&M>=0&&(O=M|0,z+=re*O,G-=O),typeof g=="number"&&g>=0&&(O=g|0,z+=oe*O,Z-=O),typeof P=="number"&&P>=0&&(O=P|0,z+=_e*O,H-=O),typeof T=="number"&&T>=0&&(O=T|0,z+=Me*O,N-=O),new A(this.data,V,G,Z,H,N,j,re,oe,_e,Me,z)},L.step=function(k,M,g,P,T){var z=this.shape[0],O=this.shape[1],V=this.shape[2],G=this.shape[3],Z=this.shape[4],H=this.stride[0],N=this.stride[1],j=this.stride[2],re=this.stride[3],oe=this.stride[4],_e=this.offset,Me=0,ke=Math.ceil;return typeof k=="number"&&(Me=k|0,Me<0?(_e+=H*(z-1),z=ke(-z/Me)):z=ke(z/Me),H*=Me),typeof M=="number"&&(Me=M|0,Me<0?(_e+=N*(O-1),O=ke(-O/Me)):O=ke(O/Me),N*=Me),typeof g=="number"&&(Me=g|0,Me<0?(_e+=j*(V-1),V=ke(-V/Me)):V=ke(V/Me),j*=Me),typeof P=="number"&&(Me=P|0,Me<0?(_e+=re*(G-1),G=ke(-G/Me)):G=ke(G/Me),re*=Me),typeof T=="number"&&(Me=T|0,Me<0?(_e+=oe*(Z-1),Z=ke(-Z/Me)):Z=ke(Z/Me),oe*=Me),new A(this.data,z,O,V,G,Z,H,N,j,re,oe,_e)},L.transpose=function(k,M,g,P,T){k=k===void 0?0:k|0,M=M===void 0?1:M|0,g=g===void 0?2:g|0,P=P===void 0?3:P|0,T=T===void 0?4:T|0;var z=this.shape,O=this.stride;return new A(this.data,z[k],z[M],z[g],z[P],z[T],O[k],O[M],O[g],O[P],O[T],this.offset)},L.pick=function(k,M,g,P,T){var z=[],O=[],V=this.offset;typeof k=="number"&&k>=0?V=V+this.stride[0]*k|0:(z.push(this.shape[0]),O.push(this.stride[0])),typeof M=="number"&&M>=0?V=V+this.stride[1]*M|0:(z.push(this.shape[1]),O.push(this.stride[1])),typeof g=="number"&&g>=0?V=V+this.stride[2]*g|0:(z.push(this.shape[2]),O.push(this.stride[2])),typeof P=="number"&&P>=0?V=V+this.stride[3]*P|0:(z.push(this.shape[3]),O.push(this.stride[3])),typeof T=="number"&&T>=0?V=V+this.stride[4]*T|0:(z.push(this.shape[4]),O.push(this.stride[4]));var G=C[z.length+1];return G(this.data,z,O,V)},function(k,M,g,P){return new A(k,M[0],M[1],M[2],M[3],M[4],g[0],g[1],g[2],g[3],g[4],P)}}};function h(b,p){var C=p===-1?"T":String(p),E=f[C];return p===-1?E(b):p===0?E(b,v[b][0]):E(b,v[b],c)}function d(b){if(s(b))return"buffer";if(l)switch(Object.prototype.toString.call(b)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(b)?"array":"generic"}var v={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function x(b,p,C,E){if(b===void 0){var g=v.array[0];return g([])}else typeof b=="number"&&(b=[b]);p===void 0&&(p=[b.length]);var A=p.length;if(C===void 0){C=new Array(A);for(var L=A-1,_=1;L>=0;--L)C[L]=_,_*=p[L]}if(E===void 0){E=0;for(var L=0;L>>0;i.exports=c;function c(f,h){if(isNaN(f)||isNaN(h))return NaN;if(f===h)return f;if(f===0)return h<0?-l:l;var d=s.hi(f),v=s.lo(f);return h>f==f>0?v===u?(d+=1,v=0):v+=1:v===0?(v=u,d-=1):v-=1,s.pack(v,d)}},8406:function(i,a){var o=1e-6,s=1e-6;a.vertexNormals=function(l,u,c){for(var f=u.length,h=new Array(f),d=c===void 0?o:c,v=0;vd)for(var z=h[p],O=1/Math.sqrt(M*P),T=0;T<3;++T){var V=(T+1)%3,G=(T+2)%3;z[T]+=O*(g[V]*k[G]-g[G]*k[V])}}for(var v=0;vd)for(var O=1/Math.sqrt(Z),T=0;T<3;++T)z[T]*=O;else for(var T=0;T<3;++T)z[T]=0}return h},a.faceNormals=function(l,u,c){for(var f=l.length,h=new Array(f),d=c===void 0?s:c,v=0;vd?L=1/Math.sqrt(L):L=0;for(var p=0;p<3;++p)A[p]*=L;h[v]=A}return h}},4081:function(i){"use strict";i.exports=a;function a(o,s,l,u,c,f,h,d,v,x){var b=s+f+x;if(p>0){var p=Math.sqrt(b+1);o[0]=.5*(h-v)/p,o[1]=.5*(d-u)/p,o[2]=.5*(l-f)/p,o[3]=.5*p}else{var C=Math.max(s,f,x),p=Math.sqrt(2*C-b+1);s>=C?(o[0]=.5*p,o[1]=.5*(c+l)/p,o[2]=.5*(d+u)/p,o[3]=.5*(h-v)/p):f>=C?(o[0]=.5*(l+c)/p,o[1]=.5*p,o[2]=.5*(v+h)/p,o[3]=.5*(d-u)/p):(o[0]=.5*(u+d)/p,o[1]=.5*(h+v)/p,o[2]=.5*p,o[3]=.5*(l-c)/p)}return o}},9977:function(i,a,o){"use strict";i.exports=p;var s=o(9215),l=o(6582),u=o(7399),c=o(7608),f=o(4081);function h(C,E,A){return Math.sqrt(Math.pow(C,2)+Math.pow(E,2)+Math.pow(A,2))}function d(C,E,A,L){return Math.sqrt(Math.pow(C,2)+Math.pow(E,2)+Math.pow(A,2)+Math.pow(L,2))}function v(C,E){var A=E[0],L=E[1],_=E[2],k=E[3],M=d(A,L,_,k);M>1e-6?(C[0]=A/M,C[1]=L/M,C[2]=_/M,C[3]=k/M):(C[0]=C[1]=C[2]=0,C[3]=1)}function x(C,E,A){this.radius=s([A]),this.center=s(E),this.rotation=s(C),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var b=x.prototype;b.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},b.recalcMatrix=function(C){this.radius.curve(C),this.center.curve(C),this.rotation.curve(C);var E=this.computedRotation;v(E,E);var A=this.computedMatrix;u(A,E);var L=this.computedCenter,_=this.computedEye,k=this.computedUp,M=Math.exp(this.computedRadius[0]);_[0]=L[0]+M*A[2],_[1]=L[1]+M*A[6],_[2]=L[2]+M*A[10],k[0]=A[1],k[1]=A[5],k[2]=A[9];for(var g=0;g<3;++g){for(var P=0,T=0;T<3;++T)P+=A[g+4*T]*_[T];A[12+g]=-P}},b.getMatrix=function(C,E){this.recalcMatrix(C);var A=this.computedMatrix;if(E){for(var L=0;L<16;++L)E[L]=A[L];return E}return A},b.idle=function(C){this.center.idle(C),this.radius.idle(C),this.rotation.idle(C)},b.flush=function(C){this.center.flush(C),this.radius.flush(C),this.rotation.flush(C)},b.pan=function(C,E,A,L){E=E||0,A=A||0,L=L||0,this.recalcMatrix(C);var _=this.computedMatrix,k=_[1],M=_[5],g=_[9],P=h(k,M,g);k/=P,M/=P,g/=P;var T=_[0],z=_[4],O=_[8],V=T*k+z*M+O*g;T-=k*V,z-=M*V,O-=g*V;var G=h(T,z,O);T/=G,z/=G,O/=G;var Z=_[2],H=_[6],N=_[10],j=Z*k+H*M+N*g,re=Z*T+H*z+N*O;Z-=j*k+re*T,H-=j*M+re*z,N-=j*g+re*O;var oe=h(Z,H,N);Z/=oe,H/=oe,N/=oe;var _e=T*E+k*A,Me=z*E+M*A,ke=O*E+g*A;this.center.move(C,_e,Me,ke);var me=Math.exp(this.computedRadius[0]);me=Math.max(1e-4,me+L),this.radius.set(C,Math.log(me))},b.rotate=function(C,E,A,L){this.recalcMatrix(C),E=E||0,A=A||0;var _=this.computedMatrix,k=_[0],M=_[4],g=_[8],P=_[1],T=_[5],z=_[9],O=_[2],V=_[6],G=_[10],Z=E*k+A*P,H=E*M+A*T,N=E*g+A*z,j=-(V*N-G*H),re=-(G*Z-O*N),oe=-(O*H-V*Z),_e=Math.sqrt(Math.max(0,1-Math.pow(j,2)-Math.pow(re,2)-Math.pow(oe,2))),Me=d(j,re,oe,_e);Me>1e-6?(j/=Me,re/=Me,oe/=Me,_e/=Me):(j=re=oe=0,_e=1);var ke=this.computedRotation,me=ke[0],ie=ke[1],Se=ke[2],Le=ke[3],Ae=me*_e+Le*j+ie*oe-Se*re,Fe=ie*_e+Le*re+Se*j-me*oe,Pe=Se*_e+Le*oe+me*re-ie*j,ge=Le*_e-me*j-ie*re-Se*oe;if(L){j=O,re=V,oe=G;var De=Math.sin(L)/h(j,re,oe);j*=De,re*=De,oe*=De,_e=Math.cos(E),Ae=Ae*_e+ge*j+Fe*oe-Pe*re,Fe=Fe*_e+ge*re+Pe*j-Ae*oe,Pe=Pe*_e+ge*oe+Ae*re-Fe*j,ge=ge*_e-Ae*j-Fe*re-Pe*oe}var ce=d(Ae,Fe,Pe,ge);ce>1e-6?(Ae/=ce,Fe/=ce,Pe/=ce,ge/=ce):(Ae=Fe=Pe=0,ge=1),this.rotation.set(C,Ae,Fe,Pe,ge)},b.lookAt=function(C,E,A,L){this.recalcMatrix(C),A=A||this.computedCenter,E=E||this.computedEye,L=L||this.computedUp;var _=this.computedMatrix;l(_,E,A,L);var k=this.computedRotation;f(k,_[0],_[1],_[2],_[4],_[5],_[6],_[8],_[9],_[10]),v(k,k),this.rotation.set(C,k[0],k[1],k[2],k[3]);for(var M=0,g=0;g<3;++g)M+=Math.pow(A[g]-E[g],2);this.radius.set(C,.5*Math.log(Math.max(M,1e-6))),this.center.set(C,A[0],A[1],A[2])},b.translate=function(C,E,A,L){this.center.move(C,E||0,A||0,L||0)},b.setMatrix=function(C,E){var A=this.computedRotation;f(A,E[0],E[1],E[2],E[4],E[5],E[6],E[8],E[9],E[10]),v(A,A),this.rotation.set(C,A[0],A[1],A[2],A[3]);var L=this.computedMatrix;c(L,E);var _=L[15];if(Math.abs(_)>1e-6){var k=L[12]/_,M=L[13]/_,g=L[14]/_;this.recalcMatrix(C);var P=Math.exp(this.computedRadius[0]);this.center.set(C,k-L[2]*P,M-L[6]*P,g-L[10]*P),this.radius.idle(C)}else this.center.idle(C),this.radius.idle(C)},b.setDistance=function(C,E){E>0&&this.radius.set(C,Math.log(E))},b.setDistanceLimits=function(C,E){C>0?C=Math.log(C):C=-1/0,E>0?E=Math.log(E):E=1/0,E=Math.max(E,C),this.radius.bounds[0][0]=C,this.radius.bounds[1][0]=E},b.getDistanceLimits=function(C){var E=this.radius.bounds;return C?(C[0]=Math.exp(E[0][0]),C[1]=Math.exp(E[1][0]),C):[Math.exp(E[0][0]),Math.exp(E[1][0])]},b.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},b.fromJSON=function(C){var E=this.lastT(),A=C.center;A&&this.center.set(E,A[0],A[1],A[2]);var L=C.rotation;L&&this.rotation.set(E,L[0],L[1],L[2],L[3]);var _=C.distance;_&&_>0&&this.radius.set(E,Math.log(_)),this.setDistanceLimits(C.zoomMin,C.zoomMax)};function p(C){C=C||{};var E=C.center||[0,0,0],A=C.rotation||[0,0,0,1],L=C.radius||1;E=[].slice.call(E,0,3),A=[].slice.call(A,0,4),v(A,A);var _=new x(A,E,Math.log(L));return _.setDistanceLimits(C.zoomMin,C.zoomMax),("eye"in C||"up"in C)&&_.lookAt(0,C.eye,C.center,C.up),_}},1371:function(i,a,o){"use strict";var s=o(3233);i.exports=function(u,c,f){return f=typeof f!="undefined"?f+"":" ",s(f,c)+u}},3202:function(i){i.exports=function(o,s){s||(s=[0,""]),o=String(o);var l=parseFloat(o,10);return s[0]=l,s[1]=o.match(/[\d.\-\+]*\s*(.*)/)[1]||"",s}},3088:function(i,a,o){"use strict";i.exports=l;var s=o(3140);function l(u,c){for(var f=c.length|0,h=u.length,d=[new Array(f),new Array(f)],v=0;v0){z=d[G][P][0],V=G;break}O=z[V^1];for(var Z=0;Z<2;++Z)for(var H=d[Z][P],N=0;N0&&(z=j,O=re,V=Z)}return T||z&&p(z,V),O}function E(g,P){var T=d[P][g][0],z=[g];p(T,P);for(var O=T[P^1],V=P;;){for(;O!==g;)z.push(O),O=C(z[z.length-2],O,!1);if(d[0][g].length+d[1][g].length===0)break;var G=z[z.length-1],Z=g,H=z[1],N=C(G,Z,!0);if(s(c[G],c[Z],c[H],c[N])<0)break;z.push(g),O=C(G,Z)}return z}function A(g,P){return P[1]===P[P.length-1]}for(var v=0;v0;){var k=d[0][v].length,M=E(v,L);A(_,M)?_.push.apply(_,M):(_.length>0&&b.push(_),_=M)}_.length>0&&b.push(_)}return b}},5609:function(i,a,o){"use strict";i.exports=l;var s=o(3134);function l(u,c){for(var f=s(u,c.length),h=new Array(c.length),d=new Array(c.length),v=[],x=0;x0;){var p=v.pop();h[p]=!1;for(var C=f[p],x=0;x0}k=k.filter(M);for(var g=k.length,P=new Array(g),T=new Array(g),_=0;_0;){var ce=Pe.pop(),Ze=Me[ce];h(Ze,function(lt,Gt){return lt-Gt});var ut=Ze.length,gt=ge[ce],Kt;if(gt===0){var H=k[ce];Kt=[H]}for(var _=0;_=0)&&(ge[st]=gt^1,Pe.push(st),gt===0)){var H=k[st];Fe(H)||(H.reverse(),Kt.push(H))}}gt===0&&De.push(Kt)}return De}},5085:function(i,a,o){i.exports=C;var s=o(3250)[3],l=o(4209),u=o(3352),c=o(2478);function f(){return!0}function h(E){return function(A,L){var _=E[A];return _?!!_.queryPoint(L,f):!1}}function d(E){for(var A={},L=0;L0&&A[_]===L[0])k=E[_-1];else return 1;for(var M=1;k;){var g=k.key,P=s(L,g[0],g[1]);if(g[0][0]0)M=-1,k=k.right;else return 0;else if(P>0)k=k.left;else if(P<0)M=1,k=k.right;else return 0}return M}}function x(E){return 1}function b(E){return function(L){return E(L[0],L[1])?0:1}}function p(E,A){return function(_){return E(_[0],_[1])?0:A(_)}}function C(E){for(var A=E.length,L=[],_=[],k=0,M=0;M=x?(g=1,T=x+2*C+A):(g=-C/x,T=C*g+A)):(g=0,E>=0?(P=0,T=A):-E>=p?(P=1,T=p+2*E+A):(P=-E/p,T=E*P+A));else if(P<0)P=0,C>=0?(g=0,T=A):-C>=x?(g=1,T=x+2*C+A):(g=-C/x,T=C*g+A);else{var z=1/M;g*=z,P*=z,T=g*(x*g+b*P+2*C)+P*(b*g+p*P+2*E)+A}else{var O,V,G,Z;g<0?(O=b+C,V=p+E,V>O?(G=V-O,Z=x-2*b+p,G>=Z?(g=1,P=0,T=x+2*C+A):(g=G/Z,P=1-g,T=g*(x*g+b*P+2*C)+P*(b*g+p*P+2*E)+A)):(g=0,V<=0?(P=1,T=p+2*E+A):E>=0?(P=0,T=A):(P=-E/p,T=E*P+A))):P<0?(O=b+E,V=x+C,V>O?(G=V-O,Z=x-2*b+p,G>=Z?(P=1,g=0,T=p+2*E+A):(P=G/Z,g=1-P,T=g*(x*g+b*P+2*C)+P*(b*g+p*P+2*E)+A)):(P=0,V<=0?(g=1,T=x+2*C+A):C>=0?(g=0,T=A):(g=-C/x,T=C*g+A))):(G=p+E-b-C,G<=0?(g=0,P=1,T=p+2*E+A):(Z=x-2*b+p,G>=Z?(g=1,P=0,T=x+2*C+A):(g=G/Z,P=1-g,T=g*(x*g+b*P+2*C)+P*(b*g+p*P+2*E)+A)))}for(var H=1-g-P,v=0;v0){var p=f[d-1];if(s(x,p)===0&&u(p)!==b){d-=1;continue}}f[d++]=x}}return f.length=d,f}},3233:function(i){"use strict";var a="",o;i.exports=s;function s(l,u){if(typeof l!="string")throw new TypeError("expected a string");if(u===1)return l;if(u===2)return l+l;var c=l.length*u;if(o!==l||typeof o=="undefined")o=l,a="";else if(a.length>=c)return a.substr(0,c);for(;c>a.length&&u>1;)u&1&&(a+=l),u>>=1,l+=l;return a+=l,a=a.substr(0,c),a}},3025:function(i,a,o){i.exports=o.g.performance&&o.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004:function(i){"use strict";i.exports=a;function a(o){for(var s=o.length,l=o[o.length-1],u=s,c=s-2;c>=0;--c){var f=l,h=o[c];l=f+h;var d=l-f,v=h-d;v&&(o[--u]=l,l=v)}for(var x=0,c=u;c0){if(V<=0)return G;Z=O+V}else if(O<0){if(V>=0)return G;Z=-(O+V)}else return G;var H=d*Z;return G>=H||G<=-H?G:E(P,T,z)},function(P,T,z,O){var V=P[0]-O[0],G=T[0]-O[0],Z=z[0]-O[0],H=P[1]-O[1],N=T[1]-O[1],j=z[1]-O[1],re=P[2]-O[2],oe=T[2]-O[2],_e=z[2]-O[2],Me=G*j,ke=Z*N,me=Z*H,ie=V*j,Se=V*N,Le=G*H,Ae=re*(Me-ke)+oe*(me-ie)+_e*(Se-Le),Fe=(Math.abs(Me)+Math.abs(ke))*Math.abs(re)+(Math.abs(me)+Math.abs(ie))*Math.abs(oe)+(Math.abs(Se)+Math.abs(Le))*Math.abs(_e),Pe=v*Fe;return Ae>Pe||-Ae>Pe?Ae:A(P,T,z,O)}];function _(g){var P=L[g.length];return P||(P=L[g.length]=C(g.length)),P.apply(void 0,g)}function k(g,P,T,z,O,V,G){return function(H,N,j,re,oe){switch(arguments.length){case 0:case 1:return 0;case 2:return z(H,N);case 3:return O(H,N,j);case 4:return V(H,N,j,re);case 5:return G(H,N,j,re,oe)}for(var _e=new Array(arguments.length),Me=0;Me0&&x>0||v<0&&x<0)return!1;var b=s(h,c,f),p=s(d,c,f);return b>0&&p>0||b<0&&p<0?!1:v===0&&x===0&&b===0&&p===0?l(c,f,h,d):!0}},8545:function(i){"use strict";i.exports=o;function a(s,l){var u=s+l,c=u-s,f=u-c,h=l-c,d=s-f,v=d+h;return v?[v,u]:[u]}function o(s,l){var u=s.length|0,c=l.length|0;if(u===1&&c===1)return a(s[0],-l[0]);var f=u+c,h=new Array(f),d=0,v=0,x=0,b=Math.abs,p=s[v],C=b(p),E=-l[x],A=b(E),L,_;C=c?(L=p,v+=1,v=c?(L=p,v+=1,v>1,E=f[2*C+1];if(E===x)return C;x>1,E=f[2*C+1];if(E===x)return C;x>1,E=f[2*C+1];if(E===x)return C;x>1,E=f[2*C+1];if(E===x)return C;x>1,Z=d(P[G],T);Z<=0?(Z===0&&(V=G),z=G+1):Z>0&&(O=G-1)}return V}s=p;function C(P,T){for(var z=new Array(P.length),O=0,V=z.length;O=P.length||d(P[Me],G)!==0););}return z}s=C;function E(P,T){if(!T)return C(b(L(P,0)),P,0);for(var z=new Array(T),O=0;O>>j&1&&N.push(V[j]);T.push(N)}return x(T)}s=A;function L(P,T){if(T<0)return[];for(var z=[],O=(1<0)-(u<0)},a.abs=function(u){var c=u>>o-1;return(u^c)-c},a.min=function(u,c){return c^(u^c)&-(u65535)<<4,u>>>=c,f=(u>255)<<3,u>>>=f,c|=f,f=(u>15)<<2,u>>>=f,c|=f,f=(u>3)<<1,u>>>=f,c|=f,c|u>>1},a.log10=function(u){return u>=1e9?9:u>=1e8?8:u>=1e7?7:u>=1e6?6:u>=1e5?5:u>=1e4?4:u>=1e3?3:u>=100?2:u>=10?1:0},a.popCount=function(u){return u=u-(u>>>1&1431655765),u=(u&858993459)+(u>>>2&858993459),(u+(u>>>4)&252645135)*16843009>>>24};function s(u){var c=32;return u&=-u,u&&c--,u&65535&&(c-=16),u&16711935&&(c-=8),u&252645135&&(c-=4),u&858993459&&(c-=2),u&1431655765&&(c-=1),c}a.countTrailingZeros=s,a.nextPow2=function(u){return u+=u===0,--u,u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u+1},a.prevPow2=function(u){return u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u-(u>>>1)},a.parity=function(u){return u^=u>>>16,u^=u>>>8,u^=u>>>4,u&=15,27030>>>u&1};var l=new Array(256);(function(u){for(var c=0;c<256;++c){var f=c,h=c,d=7;for(f>>>=1;f;f>>>=1)h<<=1,h|=f&1,--d;u[c]=h<>>8&255]<<16|l[u>>>16&255]<<8|l[u>>>24&255]},a.interleave2=function(u,c){return u&=65535,u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,c&=65535,c=(c|c<<8)&16711935,c=(c|c<<4)&252645135,c=(c|c<<2)&858993459,c=(c|c<<1)&1431655765,u|c<<1},a.deinterleave2=function(u,c){return u=u>>>c&1431655765,u=(u|u>>>1)&858993459,u=(u|u>>>2)&252645135,u=(u|u>>>4)&16711935,u=(u|u>>>16)&65535,u<<16>>16},a.interleave3=function(u,c,f){return u&=1023,u=(u|u<<16)&4278190335,u=(u|u<<8)&251719695,u=(u|u<<4)&3272356035,u=(u|u<<2)&1227133513,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,u|=c<<1,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,u|f<<2},a.deinterleave3=function(u,c){return u=u>>>c&1227133513,u=(u|u>>>2)&3272356035,u=(u|u>>>4)&251719695,u=(u|u>>>8)&4278190335,u=(u|u>>>16)&1023,u<<22>>22},a.nextCombination=function(u){var c=u|u-1;return c+1|(~c&-~c)-1>>>s(u)+1}},2014:function(i,a,o){"use strict";"use restrict";var s=o(3105),l=o(4623);function u(g){for(var P=0,T=Math.max,z=0,O=g.length;z>1,G=h(g[V],P);G<=0?(G===0&&(O=V),T=V+1):G>0&&(z=V-1)}return O}a.findCell=b;function p(g,P){for(var T=new Array(g.length),z=0,O=T.length;z=g.length||h(g[_e],V)!==0););}return T}a.incidence=p;function C(g,P){if(!P)return p(x(A(g,0)),g,0);for(var T=new Array(P),z=0;z>>N&1&&H.push(O[N]);P.push(H)}return v(P)}a.explode=E;function A(g,P){if(P<0)return[];for(var T=[],z=(1<>1:(ie>>1)-1}function z(ie){for(var Se=P(ie);;){var Le=Se,Ae=2*ie+1,Fe=2*(ie+1),Pe=ie;if(Ae0;){var Le=T(ie);if(Le>=0){var Ae=P(Le);if(Se0){var ie=H[0];return g(0,re-1),re-=1,z(0),ie}return-1}function G(ie,Se){var Le=H[ie];return C[Le]===Se?ie:(C[Le]=-1/0,O(ie),V(),C[Le]=Se,re+=1,O(re-1))}function Z(ie){if(!E[ie]){E[ie]=!0;var Se=b[ie],Le=p[ie];b[Le]>=0&&(b[Le]=Se),p[Se]>=0&&(p[Se]=Le),N[Se]>=0&&G(N[Se],M(Se)),N[Le]>=0&&G(N[Le],M(Le))}}for(var H=[],N=new Array(v),A=0;A>1;A>=0;--A)z(A);for(;;){var oe=V();if(oe<0||C[oe]>d)break;Z(oe)}for(var _e=[],A=0;A=0&&Le>=0&&Se!==Le){var Ae=N[Se],Fe=N[Le];Ae!==Fe&&me.push([Ae,Fe])}}),l.unique(l.normalize(me)),{positions:_e,edges:me}}},1303:function(i,a,o){"use strict";i.exports=u;var s=o(3250);function l(c,f){var h,d;if(f[0][0]f[1][0])h=f[1],d=f[0];else{var v=Math.min(c[0][1],c[1][1]),x=Math.max(c[0][1],c[1][1]),b=Math.min(f[0][1],f[1][1]),p=Math.max(f[0][1],f[1][1]);return xp?v-p:x-p}var C,E;c[0][1]f[1][0])h=f[1],d=f[0];else return l(f,c);var v,x;if(c[0][0]c[1][0])v=c[1],x=c[0];else return-l(c,f);var b=s(h,d,x),p=s(h,d,v);if(b<0){if(p<=0)return b}else if(b>0){if(p>=0)return b}else if(p)return p;if(b=s(x,v,d),p=s(x,v,h),b<0){if(p<=0)return b}else if(b>0){if(p>=0)return b}else if(p)return p;return d[0]-x[0]}},4209:function(i,a,o){"use strict";i.exports=p;var s=o(2478),l=o(3840),u=o(3250),c=o(1303);function f(C,E,A){this.slabs=C,this.coordinates=E,this.horizontal=A}var h=f.prototype;function d(C,E){return C.y-E}function v(C,E){for(var A=null;C;){var L=C.key,_,k;L[0][0]0)if(E[0]!==L[1][0])A=C,C=C.right;else{var g=v(C.right,E);if(g)return g;C=C.left}else{if(E[0]!==L[1][0])return C;var g=v(C.right,E);if(g)return g;C=C.left}}return A}h.castUp=function(C){var E=s.le(this.coordinates,C[0]);if(E<0)return-1;var A=this.slabs[E],L=v(this.slabs[E],C),_=-1;if(L&&(_=L.value),this.coordinates[E]===C[0]){var k=null;if(L&&(k=L.key),E>0){var M=v(this.slabs[E-1],C);M&&(k?c(M.key,k)>0&&(k=M.key,_=M.value):(_=M.value,k=M.key))}var g=this.horizontal[E];if(g.length>0){var P=s.ge(g,C[1],d);if(P=g.length)return _;T=g[P]}}if(T.start)if(k){var z=u(k[0],k[1],[C[0],T.y]);k[0][0]>k[1][0]&&(z=-z),z>0&&(_=T.index)}else _=T.index;else T.y!==C[1]&&(_=T.index)}}}return _};function x(C,E,A,L){this.y=C,this.index=E,this.start=A,this.closed=L}function b(C,E,A,L){this.x=C,this.segment=E,this.create=A,this.index=L}function p(C){for(var E=C.length,A=2*E,L=new Array(A),_=0;_1&&(E=1);for(var A=1-E,L=v.length,_=new Array(L),k=0;k0||C>0&&_<0){var k=c(E,_,A,C);b.push(k),p.push(k.slice())}_<0?p.push(A.slice()):_>0?b.push(A.slice()):(b.push(A.slice()),p.push(A.slice())),C=_}return{positive:b,negative:p}}function h(v,x){for(var b=[],p=u(v[v.length-1],x),C=v[v.length-1],E=v[0],A=0;A0||p>0&&L<0)&&b.push(c(C,L,E,p)),L>=0&&b.push(E.slice()),p=L}return b}function d(v,x){for(var b=[],p=u(v[v.length-1],x),C=v[v.length-1],E=v[0],A=0;A0||p>0&&L<0)&&b.push(c(C,L,E,p)),L<=0&&b.push(E.slice()),p=L}return b}},3387:function(i,a,o){var s;(function(){"use strict";var l={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function u(v){return f(d(v),arguments)}function c(v,x){return u.apply(null,[v].concat(x||[]))}function f(v,x){var b=1,p=v.length,C,E="",A,L,_,k,M,g,P,T;for(A=0;A=0),_.type){case"b":C=parseInt(C,10).toString(2);break;case"c":C=String.fromCharCode(parseInt(C,10));break;case"d":case"i":C=parseInt(C,10);break;case"j":C=JSON.stringify(C,null,_.width?parseInt(_.width):0);break;case"e":C=_.precision?parseFloat(C).toExponential(_.precision):parseFloat(C).toExponential();break;case"f":C=_.precision?parseFloat(C).toFixed(_.precision):parseFloat(C);break;case"g":C=_.precision?String(Number(C.toPrecision(_.precision))):parseFloat(C);break;case"o":C=(parseInt(C,10)>>>0).toString(8);break;case"s":C=String(C),C=_.precision?C.substring(0,_.precision):C;break;case"t":C=String(!!C),C=_.precision?C.substring(0,_.precision):C;break;case"T":C=Object.prototype.toString.call(C).slice(8,-1).toLowerCase(),C=_.precision?C.substring(0,_.precision):C;break;case"u":C=parseInt(C,10)>>>0;break;case"v":C=C.valueOf(),C=_.precision?C.substring(0,_.precision):C;break;case"x":C=(parseInt(C,10)>>>0).toString(16);break;case"X":C=(parseInt(C,10)>>>0).toString(16).toUpperCase();break}l.json.test(_.type)?E+=C:(l.number.test(_.type)&&(!P||_.sign)?(T=P?"+":"-",C=C.toString().replace(l.sign,"")):T="",M=_.pad_char?_.pad_char==="0"?"0":_.pad_char.charAt(1):" ",g=_.width-(T+C).length,k=_.width&&g>0?M.repeat(g):"",E+=_.align?T+C+k:M==="0"?T+k+C:k+T+C)}return E}var h=Object.create(null);function d(v){if(h[v])return h[v];for(var x=v,b,p=[],C=0;x;){if((b=l.text.exec(x))!==null)p.push(b[0]);else if((b=l.modulo.exec(x))!==null)p.push("%");else if((b=l.placeholder.exec(x))!==null){if(b[2]){C|=1;var E=[],A=b[2],L=[];if((L=l.key.exec(A))!==null)for(E.push(L[1]);(A=A.substring(L[0].length))!=="";)if((L=l.key_access.exec(A))!==null)E.push(L[1]);else if((L=l.index_access.exec(A))!==null)E.push(L[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");b[2]=E}else C|=2;if(C===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");p.push({placeholder:b[0],param_no:b[1],keys:b[2],sign:b[3],pad_char:b[4],align:b[5],width:b[6],precision:b[7],type:b[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");x=x.substring(b[0].length)}return h[v]=p}a.sprintf=u,a.vsprintf=c,typeof window!="undefined"&&(window.sprintf=u,window.vsprintf=c,s=function(){return{sprintf:u,vsprintf:c}}.call(a,o,a,i),s!==void 0&&(i.exports=s))})()},3711:function(i,a,o){"use strict";i.exports=d;var s=o(2640),l=o(781),u={"2d":function(v,x,b){var p=v({order:x,scalarArguments:3,getters:b==="generic"?[0]:void 0,phase:function(E,A,L,_){return E>_|0},vertex:function(E,A,L,_,k,M,g,P,T,z,O,V,G){var Z=(g<<0)+(P<<1)+(T<<2)+(z<<3)|0;if(!(Z===0||Z===15))switch(Z){case 0:O.push([E-.5,A-.5]);break;case 1:O.push([E-.25-.25*(_+L-2*G)/(L-_),A-.25-.25*(k+L-2*G)/(L-k)]);break;case 2:O.push([E-.75-.25*(-_-L+2*G)/(_-L),A-.25-.25*(M+_-2*G)/(_-M)]);break;case 3:O.push([E-.5,A-.5-.5*(k+L+M+_-4*G)/(L-k+_-M)]);break;case 4:O.push([E-.25-.25*(M+k-2*G)/(k-M),A-.75-.25*(-k-L+2*G)/(k-L)]);break;case 5:O.push([E-.5-.5*(_+L+M+k-4*G)/(L-_+k-M),A-.5]);break;case 6:O.push([E-.5-.25*(-_-L+M+k)/(_-L+k-M),A-.5-.25*(-k-L+M+_)/(k-L+_-M)]);break;case 7:O.push([E-.75-.25*(M+k-2*G)/(k-M),A-.75-.25*(M+_-2*G)/(_-M)]);break;case 8:O.push([E-.75-.25*(-M-k+2*G)/(M-k),A-.75-.25*(-M-_+2*G)/(M-_)]);break;case 9:O.push([E-.5-.25*(_+L+-M-k)/(L-_+M-k),A-.5-.25*(k+L+-M-_)/(L-k+M-_)]);break;case 10:O.push([E-.5-.5*(-_-L+-M-k+4*G)/(_-L+M-k),A-.5]);break;case 11:O.push([E-.25-.25*(-M-k+2*G)/(M-k),A-.75-.25*(k+L-2*G)/(L-k)]);break;case 12:O.push([E-.5,A-.5-.5*(-k-L+-M-_+4*G)/(k-L+M-_)]);break;case 13:O.push([E-.75-.25*(_+L-2*G)/(L-_),A-.25-.25*(-M-_+2*G)/(M-_)]);break;case 14:O.push([E-.25-.25*(-_-L+2*G)/(_-L),A-.25-.25*(-k-L+2*G)/(k-L)]);break;case 15:O.push([E-.5,A-.5]);break}},cell:function(E,A,L,_,k,M,g,P,T){k?P.push([E,A]):P.push([A,E])}});return function(C,E){var A=[],L=[];return p(C,A,L,E),{positions:A,cells:L}}}};function c(v,x){var b=v.length+"d",p=u[b];if(p)return p(s,v,x)}function f(v,x){for(var b=l(v,x),p=b.length,C=new Array(p),E=new Array(p),A=0;AMath.max(_,k)?M[2]=1:_>Math.max(L,k)?M[0]=1:M[1]=1;for(var g=0,P=0,T=0;T<3;++T)g+=A[T]*A[T],P+=M[T]*A[T];for(var T=0;T<3;++T)M[T]-=P/g*A[T];return f(M,M),M}function b(A,L,_,k,M,g,P,T){this.center=s(_),this.up=s(k),this.right=s(M),this.radius=s([g]),this.angle=s([P,T]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(A,L),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var z=0;z<16;++z)this.computedMatrix[z]=.5;this.recalcMatrix(0)}var p=b.prototype;p.setDistanceLimits=function(A,L){A>0?A=Math.log(A):A=-1/0,L>0?L=Math.log(L):L=1/0,L=Math.max(L,A),this.radius.bounds[0][0]=A,this.radius.bounds[1][0]=L},p.getDistanceLimits=function(A){var L=this.radius.bounds[0];return A?(A[0]=Math.exp(L[0][0]),A[1]=Math.exp(L[1][0]),A):[Math.exp(L[0][0]),Math.exp(L[1][0])]},p.recalcMatrix=function(A){this.center.curve(A),this.up.curve(A),this.right.curve(A),this.radius.curve(A),this.angle.curve(A);for(var L=this.computedUp,_=this.computedRight,k=0,M=0,g=0;g<3;++g)M+=L[g]*_[g],k+=L[g]*L[g];for(var P=Math.sqrt(k),T=0,g=0;g<3;++g)_[g]-=L[g]*M/k,T+=_[g]*_[g],L[g]/=P;for(var z=Math.sqrt(T),g=0;g<3;++g)_[g]/=z;var O=this.computedToward;c(O,L,_),f(O,O);for(var V=Math.exp(this.computedRadius[0]),G=this.computedAngle[0],Z=this.computedAngle[1],H=Math.cos(G),N=Math.sin(G),j=Math.cos(Z),re=Math.sin(Z),oe=this.computedCenter,_e=H*j,Me=N*j,ke=re,me=-H*re,ie=-N*re,Se=j,Le=this.computedEye,Ae=this.computedMatrix,g=0;g<3;++g){var Fe=_e*_[g]+Me*O[g]+ke*L[g];Ae[4*g+1]=me*_[g]+ie*O[g]+Se*L[g],Ae[4*g+2]=Fe,Ae[4*g+3]=0}var Pe=Ae[1],ge=Ae[5],De=Ae[9],ce=Ae[2],Ze=Ae[6],ut=Ae[10],gt=ge*ut-De*Ze,Kt=De*ce-Pe*ut,st=Pe*Ze-ge*ce,lt=d(gt,Kt,st);gt/=lt,Kt/=lt,st/=lt,Ae[0]=gt,Ae[4]=Kt,Ae[8]=st;for(var g=0;g<3;++g)Le[g]=oe[g]+Ae[2+4*g]*V;for(var g=0;g<3;++g){for(var T=0,Gt=0;Gt<3;++Gt)T+=Ae[g+4*Gt]*Le[Gt];Ae[12+g]=-T}Ae[15]=1},p.getMatrix=function(A,L){this.recalcMatrix(A);var _=this.computedMatrix;if(L){for(var k=0;k<16;++k)L[k]=_[k];return L}return _};var C=[0,0,0];p.rotate=function(A,L,_,k){if(this.angle.move(A,L,_),k){this.recalcMatrix(A);var M=this.computedMatrix;C[0]=M[2],C[1]=M[6],C[2]=M[10];for(var g=this.computedUp,P=this.computedRight,T=this.computedToward,z=0;z<3;++z)M[4*z]=g[z],M[4*z+1]=P[z],M[4*z+2]=T[z];u(M,M,k,C);for(var z=0;z<3;++z)g[z]=M[4*z],P[z]=M[4*z+1];this.up.set(A,g[0],g[1],g[2]),this.right.set(A,P[0],P[1],P[2])}},p.pan=function(A,L,_,k){L=L||0,_=_||0,k=k||0,this.recalcMatrix(A);var M=this.computedMatrix,g=Math.exp(this.computedRadius[0]),P=M[1],T=M[5],z=M[9],O=d(P,T,z);P/=O,T/=O,z/=O;var V=M[0],G=M[4],Z=M[8],H=V*P+G*T+Z*z;V-=P*H,G-=T*H,Z-=z*H;var N=d(V,G,Z);V/=N,G/=N,Z/=N;var j=V*L+P*_,re=G*L+T*_,oe=Z*L+z*_;this.center.move(A,j,re,oe);var _e=Math.exp(this.computedRadius[0]);_e=Math.max(1e-4,_e+k),this.radius.set(A,Math.log(_e))},p.translate=function(A,L,_,k){this.center.move(A,L||0,_||0,k||0)},p.setMatrix=function(A,L,_,k){var M=1;typeof _=="number"&&(M=_|0),(M<0||M>3)&&(M=1);var g=(M+2)%3,P=(M+1)%3;L||(this.recalcMatrix(A),L=this.computedMatrix);var T=L[M],z=L[M+4],O=L[M+8];if(k){var G=Math.abs(T),Z=Math.abs(z),H=Math.abs(O),N=Math.max(G,Z,H);G===N?(T=T<0?-1:1,z=O=0):H===N?(O=O<0?-1:1,T=z=0):(z=z<0?-1:1,T=O=0)}else{var V=d(T,z,O);T/=V,z/=V,O/=V}var j=L[g],re=L[g+4],oe=L[g+8],_e=j*T+re*z+oe*O;j-=T*_e,re-=z*_e,oe-=O*_e;var Me=d(j,re,oe);j/=Me,re/=Me,oe/=Me;var ke=z*oe-O*re,me=O*j-T*oe,ie=T*re-z*j,Se=d(ke,me,ie);ke/=Se,me/=Se,ie/=Se,this.center.jump(A,ur,$e,Mt),this.radius.idle(A),this.up.jump(A,T,z,O),this.right.jump(A,j,re,oe);var Le,Ae;if(M===2){var Fe=L[1],Pe=L[5],ge=L[9],De=Fe*j+Pe*re+ge*oe,ce=Fe*ke+Pe*me+ge*ie;Kt<0?Le=-Math.PI/2:Le=Math.PI/2,Ae=Math.atan2(ce,De)}else{var Ze=L[2],ut=L[6],gt=L[10],Kt=Ze*T+ut*z+gt*O,st=Ze*j+ut*re+gt*oe,lt=Ze*ke+ut*me+gt*ie;Le=Math.asin(v(Kt)),Ae=Math.atan2(lt,st)}this.angle.jump(A,Ae,Le),this.recalcMatrix(A);var Gt=L[2],Ut=L[6],$t=L[10],sr=this.computedMatrix;l(sr,L);var Tr=sr[15],ur=sr[12]/Tr,$e=sr[13]/Tr,Mt=sr[14]/Tr,Ct=Math.exp(this.computedRadius[0]);this.center.jump(A,ur-Gt*Ct,$e-Ut*Ct,Mt-$t*Ct)},p.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},p.idle=function(A){this.center.idle(A),this.up.idle(A),this.right.idle(A),this.radius.idle(A),this.angle.idle(A)},p.flush=function(A){this.center.flush(A),this.up.flush(A),this.right.flush(A),this.radius.flush(A),this.angle.flush(A)},p.setDistance=function(A,L){L>0&&this.radius.set(A,Math.log(L))},p.lookAt=function(A,L,_,k){this.recalcMatrix(A),L=L||this.computedEye,_=_||this.computedCenter,k=k||this.computedUp;var M=k[0],g=k[1],P=k[2],T=d(M,g,P);if(!(T<1e-6)){M/=T,g/=T,P/=T;var z=L[0]-_[0],O=L[1]-_[1],V=L[2]-_[2],G=d(z,O,V);if(!(G<1e-6)){z/=G,O/=G,V/=G;var Z=this.computedRight,H=Z[0],N=Z[1],j=Z[2],re=M*H+g*N+P*j;H-=re*M,N-=re*g,j-=re*P;var oe=d(H,N,j);if(!(oe<.01&&(H=g*V-P*O,N=P*z-M*V,j=M*O-g*z,oe=d(H,N,j),oe<1e-6))){H/=oe,N/=oe,j/=oe,this.up.set(A,M,g,P),this.right.set(A,H,N,j),this.center.set(A,_[0],_[1],_[2]),this.radius.set(A,Math.log(G));var _e=g*j-P*N,Me=P*H-M*j,ke=M*N-g*H,me=d(_e,Me,ke);_e/=me,Me/=me,ke/=me;var ie=M*z+g*O+P*V,Se=H*z+N*O+j*V,Le=_e*z+Me*O+ke*V,Ae=Math.asin(v(ie)),Fe=Math.atan2(Le,Se),Pe=this.angle._state,ge=Pe[Pe.length-1],De=Pe[Pe.length-2];ge=ge%(2*Math.PI);var ce=Math.abs(ge+2*Math.PI-Fe),Ze=Math.abs(ge-Fe),ut=Math.abs(ge-2*Math.PI-Fe);ce0?j.pop():new ArrayBuffer(H)}a.mallocArrayBuffer=C;function E(Z){return new Uint8Array(C(Z),0,Z)}a.mallocUint8=E;function A(Z){return new Uint16Array(C(2*Z),0,Z)}a.mallocUint16=A;function L(Z){return new Uint32Array(C(4*Z),0,Z)}a.mallocUint32=L;function _(Z){return new Int8Array(C(Z),0,Z)}a.mallocInt8=_;function k(Z){return new Int16Array(C(2*Z),0,Z)}a.mallocInt16=k;function M(Z){return new Int32Array(C(4*Z),0,Z)}a.mallocInt32=M;function g(Z){return new Float32Array(C(4*Z),0,Z)}a.mallocFloat32=a.mallocFloat=g;function P(Z){return new Float64Array(C(8*Z),0,Z)}a.mallocFloat64=a.mallocDouble=P;function T(Z){return c?new Uint8ClampedArray(C(Z),0,Z):E(Z)}a.mallocUint8Clamped=T;function z(Z){return f?new BigUint64Array(C(8*Z),0,Z):null}a.mallocBigUint64=z;function O(Z){return h?new BigInt64Array(C(8*Z),0,Z):null}a.mallocBigInt64=O;function V(Z){return new DataView(C(Z),0,Z)}a.mallocDataView=V;function G(Z){Z=s.nextPow2(Z);var H=s.log2(Z),N=x[H];return N.length>0?N.pop():new u(Z)}a.mallocBuffer=G,a.clearCache=function(){for(var H=0;H<32;++H)d.UINT8[H].length=0,d.UINT16[H].length=0,d.UINT32[H].length=0,d.INT8[H].length=0,d.INT16[H].length=0,d.INT32[H].length=0,d.FLOAT[H].length=0,d.DOUBLE[H].length=0,d.BIGUINT64[H].length=0,d.BIGINT64[H].length=0,d.UINT8C[H].length=0,v[H].length=0,x[H].length=0}},1755:function(i){"use strict";"use restrict";i.exports=a;function a(s){this.roots=new Array(s),this.ranks=new Array(s);for(var l=0;l",j="",re=N.length,oe=j.length,_e=G[0]===C||G[0]===L,Me=0,ke=-oe;Me>-1&&(Me=Z.indexOf(N,Me),!(Me===-1||(ke=Z.indexOf(j,Me+re),ke===-1)||ke<=Me));){for(var me=Me;me=ke)H[me]=null,Z=Z.substr(0,me)+" "+Z.substr(me+1);else if(H[me]!==null){var ie=H[me].indexOf(G[0]);ie===-1?H[me]+=G:_e&&(H[me]=H[me].substr(0,ie+1)+(1+parseInt(H[me][ie+1]))+H[me].substr(ie+2))}var Se=Me+re,Le=Z.substr(Se,ke-Se),Ae=Le.indexOf(N);Ae!==-1?Me=Ae:Me=ke+oe}return H}function M(V,G,Z){for(var H=G.textAlign||"start",N=G.textBaseline||"alphabetic",j=[1<<30,1<<30],re=[0,0],oe=V.length,_e=0;_e/g,` -`):Z=Z.replace(/\/g," ");var re="",oe=[];for(ge=0;ge-1?parseInt($e[1+Vt]):0,bt=It>-1?parseInt(Mt[1+It]):0;Ot!==bt&&(Ct=Ct.replace(st(),"?px "),Ze*=Math.pow(.75,bt-Ot),Ct=Ct.replace("?px ",st())),ce+=.25*ie*(bt-Ot)}if(j.superscripts===!0){var rr=$e.indexOf(C),lr=Mt.indexOf(C),wr=rr>-1?parseInt($e[1+rr]):0,Cr=lr>-1?parseInt(Mt[1+lr]):0;wr!==Cr&&(Ct=Ct.replace(st(),"?px "),Ze*=Math.pow(.75,Cr-wr),Ct=Ct.replace("?px ",st())),ce-=.25*ie*(Cr-wr)}if(j.bolds===!0){var Kr=$e.indexOf(v)>-1,Gr=Mt.indexOf(v)>-1;!Kr&&Gr&&(Yr?Ct=Ct.replace("italic ","italic bold "):Ct="bold "+Ct),Kr&&!Gr&&(Ct=Ct.replace("bold ",""))}if(j.italics===!0){var Yr=$e.indexOf(b)>-1,dt=Mt.indexOf(b)>-1;!Yr&&dt&&(Ct="italic "+Ct),Yr&&!dt&&(Ct=Ct.replace("italic ",""))}G.font=Ct}for(Pe=0;Pe0&&(N=H.size),H.lineSpacing&&H.lineSpacing>0&&(j=H.lineSpacing),H.styletags&&H.styletags.breaklines&&(re.breaklines=!!H.styletags.breaklines),H.styletags&&H.styletags.bolds&&(re.bolds=!!H.styletags.bolds),H.styletags&&H.styletags.italics&&(re.italics=!!H.styletags.italics),H.styletags&&H.styletags.subscripts&&(re.subscripts=!!H.styletags.subscripts),H.styletags&&H.styletags.superscripts&&(re.superscripts=!!H.styletags.superscripts)),Z.font=[H.fontStyle,H.fontVariant,H.fontWeight,N+"px",H.font].filter(function(_e){return _e}).join(" "),Z.textAlign="start",Z.textBaseline="alphabetic",Z.direction="ltr";var oe=g(G,Z,V,N,j,re);return z(oe,H,N)}},1538:function(i){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function o(T){T.permitHostObjects___&&T.permitHostObjects___(o)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=o);var s=!1;if(typeof WeakMap=="function"){var l=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var u=new l,c=Object.freeze({});if(u.set(c,1),u.get(c)!==1)s=!0;else{i.exports=WeakMap;return}}}var f=Object.prototype.hasOwnProperty,h=Object.getOwnPropertyNames,d=Object.defineProperty,v=Object.isExtensible,x="weakmap:",b=x+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var p=new ArrayBuffer(25),C=new Uint8Array(p);crypto.getRandomValues(C),b=x+"rand:"+Array.prototype.map.call(C,function(T){return(T%36).toString(36)}).join("")+"___"}function E(T){return!(T.substr(0,x.length)==x&&T.substr(T.length-3)==="___")}if(d(Object,"getOwnPropertyNames",{value:function(z){return h(z).filter(E)}}),"getPropertyNames"in Object){var A=Object.getPropertyNames;d(Object,"getPropertyNames",{value:function(z){return A(z).filter(E)}})}function L(T){if(T!==Object(T))throw new TypeError("Not an object: "+T);var z=T[b];if(z&&z.key===T)return z;if(v(T)){z={key:T};try{return d(T,b,{value:z,writable:!1,enumerable:!1,configurable:!1}),z}catch(O){return}}}(function(){var T=Object.freeze;d(Object,"freeze",{value:function(G){return L(G),T(G)}});var z=Object.seal;d(Object,"seal",{value:function(G){return L(G),z(G)}});var O=Object.preventExtensions;d(Object,"preventExtensions",{value:function(G){return L(G),O(G)}})})();function _(T){return T.prototype=null,Object.freeze(T)}var k=!1;function M(){!k&&typeof console!="undefined"&&(k=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var g=0,P=function(){this instanceof P||M();var T=[],z=[],O=g++;function V(N,j){var re,oe=L(N);return oe?O in oe?oe[O]:j:(re=T.indexOf(N),re>=0?z[re]:j)}function G(N){var j=L(N);return j?O in j:T.indexOf(N)>=0}function Z(N,j){var re,oe=L(N);return oe?oe[O]=j:(re=T.indexOf(N),re>=0?z[re]=j:(re=T.length,z[re]=j,T[re]=N)),this}function H(N){var j=L(N),re,oe;return j?O in j&&delete j[O]:(re=T.indexOf(N),re<0?!1:(oe=T.length-1,T[re]=void 0,z[re]=z[oe],T[re]=T[oe],T.length=oe,z.length=oe,!0))}return Object.create(P.prototype,{get___:{value:_(V)},has___:{value:_(G)},set___:{value:_(Z)},delete___:{value:_(H)}})};P.prototype=Object.create(Object.prototype,{get:{value:function(z,O){return this.get___(z,O)},writable:!0,configurable:!0},has:{value:function(z){return this.has___(z)},writable:!0,configurable:!0},set:{value:function(z,O){return this.set___(z,O)},writable:!0,configurable:!0},delete:{value:function(z){return this.delete___(z)},writable:!0,configurable:!0}}),typeof l=="function"?function(){s&&typeof Proxy!="undefined"&&(Proxy=void 0);function T(){this instanceof P||M();var z=new l,O=void 0,V=!1;function G(j,re){return O?z.has(j)?z.get(j):O.get___(j,re):z.get(j,re)}function Z(j){return z.has(j)||(O?O.has___(j):!1)}var H;s?H=function(j,re){return z.set(j,re),z.has(j)||(O||(O=new P),O.set(j,re)),this}:H=function(j,re){if(V)try{z.set(j,re)}catch(oe){O||(O=new P),O.set___(j,re)}else z.set(j,re);return this};function N(j){var re=!!z.delete(j);return O&&O.delete___(j)||re}return Object.create(P.prototype,{get___:{value:_(G)},has___:{value:_(Z)},set___:{value:_(H)},delete___:{value:_(N)},permitHostObjects___:{value:_(function(j){if(j===o)V=!0;else throw new Error("bogus call to permitHostObjects___")})}})}T.prototype=P.prototype,i.exports=T,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy!="undefined"&&(Proxy=void 0),i.exports=P)})()},236:function(i,a,o){var s=o(8284);i.exports=l;function l(){var u={};return function(c){if((typeof c!="object"||c===null)&&typeof c!="function")throw new Error("Weakmap-shim: Key must be object");var f=c.valueOf(u);return f&&f.identity===u?f:s(c,u)}}},8284:function(i){i.exports=a;function a(o,s){var l={identity:s},u=o.valueOf;return Object.defineProperty(o,"valueOf",{value:function(c){return c!==s?u.apply(this,arguments):l},writable:!0}),l}},606:function(i,a,o){var s=o(236);i.exports=l;function l(){var u=s();return{get:function(c,f){var h=u(c);return h.hasOwnProperty("value")?h.value:f},set:function(c,f){return u(c).value=f,this},has:function(c){return"value"in u(c)},delete:function(c){return delete u(c).value}}}},3349:function(i){"use strict";function a(){return function(f,h,d,v,x,b){var p=f[0],C=d[0],E=[0],A=C;v|=0;var L=0,_=C;for(L=0;L=0!=M>=0&&x.push(E[0]+.5+.5*(k+M)/(k-M))}v+=_,++E[0]}}}function o(){return a()}var s=o;function l(f){var h={};return function(v,x,b){var p=v.dtype,C=v.order,E=[p,C.join()].join(),A=h[E];return A||(h[E]=A=f([p,C])),A(v.shape.slice(0),v.data,v.stride,v.offset|0,x,b)}}function u(f){return l(s.bind(void 0,f))}function c(f){return u({funcName:f.funcName})}i.exports=c({funcName:"zeroCrossings"})},781:function(i,a,o){"use strict";i.exports=l;var s=o(3349);function l(u,c){var f=[];return c=+c||0,s(u.hi(u.shape[0]-1),f,c),f}},7790:function(){}},t={};function r(i){var a=t[i];if(a!==void 0)return a.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}(function(){r.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(i){if(typeof window=="object")return window}}()})(),function(){r.nmd=function(i){return i.paths=[],i.children||(i.children=[]),i}}();var n=r(1964);rPe.exports=n})()});var fX=ye((Rpr,iPe)=>{"use strict";iPe.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var sPe=ye((Dpr,oPe)=>{"use strict";var nPe=fX();oPe.exports=xPt;var aPe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function xPt(e){var t,r=[],n=1,i;if(typeof e=="string")if(e=e.toLowerCase(),nPe[e])r=nPe[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var l=t[1],u=l==="rgb",a=l.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(h,d){if(/%$/.test(h))return d===o?parseFloat(h)/100:a==="rgb"?parseFloat(h)*255/100:parseFloat(h);if(a[d]==="h"){if(/deg$/.test(h))return parseFloat(h);if(aPe[h]!==void 0)return aPe[h]}return parseFloat(h)}),l===a&&r.push(1),n=u||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(c){return parseFloat(c)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(i="rgb",r=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(i="hsl",r=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(i="rgb",r=[e>>>16,(e&65280)>>>8,e&255]);return{space:i,values:r,alpha:n}}});var uPe=ye((Fpr,lPe)=>{"use strict";var bPt=sPe();lPe.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,n,i,a=bPt(t);if(!a.space)return[];var o=[0,0,0],s=a.space[0]==="h"?[360,100,100]:[255,255,255];return r=Array(3),r[0]=Math.min(Math.max(a.values[0],o[0]),s[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),s[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),s[2]),a.space[0]==="h"&&(r=wPt(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function wPt(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,l,u=0;if(r===0)return l=n*255,[l,l,l];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];u<3;)o=t+1/3*-(u-1),o<0?o++:o>1&&o--,l=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[u++]=l*255;return s}});var HE=ye((zpr,cPe)=>{cPe.exports=TPt;function TPt(e,t,r){return tr?r:e:et?t:e}});var jD=ye((Opr,fPe)=>{fPe.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var $_=ye((qpr,hPe)=>{"use strict";var APt=uPe(),WD=HE(),SPt=jD();hPe.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=SPt(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=APt(t),t[0]/=255,t[1]/=255,t[2]/=255),MPt(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,a&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(a?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=WD(Math.floor(t[0]*255),0,255),i[1]=WD(Math.floor(t[1]*255),0,255),i[2]=WD(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:WD(Math.floor(t[3]*255),0,255)),i)};function MPt(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var Jy=ye((Bpr,dPe)=>{"use strict";var EPt=$_();function CPt(e){return e?EPt(e):[0,0,0,1]}dPe.exports=CPt});var $y=ye((Npr,xPe)=>{"use strict";var yPe=Eo(),kPt=cd(),XD=$_(),ZD=tc(),LPt=Eh().defaultLine,vPe=vv().isArrayOrTypedArray,hX=XD(LPt),_Pe=1;function pPe(e,t){var r=e;return r[3]*=t,r}function gPe(e){if(yPe(e))return hX;var t=XD(e);return t.length?t:hX}function mPe(e){return yPe(e)?e:_Pe}function PPt(e,t,r){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var i=vPe(n),a=vPe(t),o=ZD.extractOpts(e),s=[],l,u,c,f,h;if(o.colorscale!==void 0?l=ZD.makeColorScaleFuncFromTrace(e):l=gPe,i?u=function(v,x){return v[x]===void 0?hX:XD(l(v[x]))}:u=gPe,a?c=function(v,x){return v[x]===void 0?_Pe:mPe(v[x])}:c=mPe,i||a)for(var d=0;d{"use strict";bPe.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}});var YD=ye((Vpr,wPe)=>{"use strict";wPe.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var APe=ye((Gpr,TPe)=>{"use strict";var RPt=qa();function vX(e,t,r,n){if(!t||!t.visible)return null;for(var i=RPt.getComponentMethod("errorbars","makeComputeError")(t),a=new Array(e.length),o=0;o0){var f=n.c2l(u);n._lowerLogErrorBound||(n._lowerLogErrorBound=f),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,f)}}else a[o]=[-s[0]*r,s[1]*r]}return a}function DPt(e){for(var t=0;t{"use strict";var zPt=Od().gl_line3d,SPe=Od().gl_scatter3d,OPt=Od().gl_error3d,qPt=Od().gl_mesh3d,BPt=Od().delaunay_triangulate,Qy=Dr(),LPe=Jy(),KD=$y().formatColor,NPt=S3(),pX=dX(),UPt=YD(),VPt=ho(),GPt=rp().appendArrayPointValue,HPt=APe();function PPe(e,t){this.scene=e,this.uid=t,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var mX=PPe.prototype;mX.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var t=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(Qy.isArrayOrTypedArray(this.textLabels)?(this.textLabels[t]||this.textLabels[t]===0)&&(e.textLabel=this.textLabels[t]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]],!0}};function jPt(e,t,r){var n=(r+1)%3,i=(r+2)%3,a=[],o=[],s;for(s=0;s-1?-1:e.indexOf("right")>-1?1:0}function EPe(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function XPt(e){var t=0,r=0,n=[t,r];if(Array.isArray(e))for(var i=0;i=0){var u=jPt(s.position,s.delaunayColor,s.delaunayAxis);u.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(u):(u.gl=t,this.delaunayMesh=qPt(u),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)};mX.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function JPt(e,t){var r=new PPe(e,t.uid);return r.update(t),r}IPe.exports=JPt});var wX=ye((jpr,zPe)=>{"use strict";var e1=vf(),$Pt=ec(),bX=Tu(),yX=ff().axisHoverFormat,QPt=rs().hovertemplateAttrs,eIt=rs().texttemplateAttrs,DPe=Vl(),tIt=dX(),rIt=YD(),Yg=Ao().extendFlat,iIt=mc().overrideAll,FPe=Y1(),nIt=e1.line,N2=e1.marker,aIt=N2.line,oIt=Yg({width:nIt.width,dash:{valType:"enumerated",values:FPe(tIt),dflt:"solid"}},bX("line"));function _X(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var xX=zPe.exports=iIt({x:e1.x,y:e1.y,z:{valType:"data_array"},text:Yg({},e1.text,{}),texttemplate:eIt({},{}),hovertext:Yg({},e1.hovertext,{}),hovertemplate:QPt(),xhoverformat:yX("x"),yhoverformat:yX("y"),zhoverformat:yX("z"),mode:Yg({},e1.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:_X("x"),y:_X("y"),z:_X("z")},connectgaps:e1.connectgaps,line:oIt,marker:Yg({symbol:{valType:"enumerated",values:FPe(rIt),dflt:"circle",arrayOk:!0},size:Yg({},N2.size,{dflt:8}),sizeref:N2.sizeref,sizemin:N2.sizemin,sizemode:N2.sizemode,opacity:Yg({},N2.opacity,{arrayOk:!1}),colorbar:N2.colorbar,line:Yg({width:Yg({},aIt.width,{arrayOk:!1})},bX("marker.line"))},bX("marker")),textposition:Yg({},e1.textposition,{dflt:"top center"}),textfont:$Pt({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:DPe.opacity,hoverinfo:Yg({},DPe.hoverinfo)},"calc","nested");xX.x.editType=xX.y.editType=xX.z.editType="calc+clearAxisTypes"});var BPe=ye((Wpr,qPe)=>{"use strict";var OPe=qa(),sIt=Dr(),TX=Ru(),lIt=$p(),uIt=R0(),cIt=D0(),fIt=wX();qPe.exports=function(t,r,n,i){function a(d,v){return sIt.coerce(t,r,fIt,d,v)}var o=hIt(t,r,a,i);if(!o){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),a("mode"),TX.hasMarkers(r)&&lIt(t,r,n,i,a,{noSelect:!0,noAngle:!0}),TX.hasLines(r)&&(a("connectgaps"),uIt(t,r,n,i,a)),TX.hasText(r)&&(a("texttemplate"),cIt(t,r,i,a,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var s=(r.line||{}).color,l=(r.marker||{}).color;a("surfaceaxis")>=0&&a("surfacecolor",s||l);for(var u=["x","y","z"],c=0;c<3;++c){var f="projection."+u[c];a(f+".show")&&(a(f+".opacity"),a(f+".scale"))}var h=OPe.getComponentMethod("errorbars","supplyDefaults");h(t,r,s||l||n,{axis:"z"}),h(t,r,s||l||n,{axis:"y",inherit:"z"}),h(t,r,s||l||n,{axis:"x",inherit:"z"})};function hIt(e,t,r,n){var i=0,a=r("x"),o=r("y"),s=r("z"),l=OPe.getComponentMethod("calendars","handleTraceDefaults");return l(e,t,["x","y","z"],n),a&&o&&s&&(i=Math.min(a.length,o.length,s.length),t._length=t._xlength=t._ylength=t._zlength=i),i}});var UPe=ye((Xpr,NPe)=>{"use strict";var dIt=Cm(),vIt=F0();NPe.exports=function(t,r){var n=[{x:!1,y:!1,trace:r,t:{}}];return dIt(n,r),vIt(t,r),n}});var GPe=ye((Zpr,VPe)=>{VPe.exports=pIt;function pIt(e,t){if(typeof e!="string")throw new TypeError("must specify type string");if(t=t||{},typeof document=="undefined"&&!t.canvas)return null;var r=t.canvas||document.createElement("canvas");typeof t.width=="number"&&(r.width=t.width),typeof t.height=="number"&&(r.height=t.height);var n=t,i;try{var a=[e];e.indexOf("webgl")===0&&a.push("experimental-"+e);for(var o=0;o{var gIt=GPe();HPe.exports=function(t){return gIt("webgl",t)}});var AX=ye((Kpr,XPe)=>{"use strict";var WPe=Ca(),mIt=function(){};XPe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=mIt);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=WPe.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=WPe.lightLine,n.style["z-index"]=30;var i=document.createElement("p");return i.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",i.style.position="relative",i.style.top="50%",i.style.left="50%",i.style.height="30%",i.style.width="50%",i.style.margin="-15% 0 0 -25%",n.appendChild(i),t.container.appendChild(n),t.container.style.background="#FFFFFF",t.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var KPe=ye((Jpr,YPe)=>{"use strict";var U2=Jy(),yIt=Dr(),_It=["xaxis","yaxis","zaxis"];function ZPe(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var xIt=ZPe.prototype;xIt.merge=function(e,t){for(var r=this,n=0;n<3;++n){var i=t[_It[n]];if(!i.visible){r.tickEnable[n]=!1,r.labelEnable[n]=!1,r.lineEnable[n]=!1,r.lineTickEnable[n]=!1,r.gridEnable[n]=!1,r.zeroEnable[n]=!1,r.backgroundEnable[n]=!1;continue}r.labels[n]=e._meta?yIt.templateString(i.title.text,e._meta):i.title.text,"font"in i.title&&(i.title.font.color&&(r.labelColor[n]=U2(i.title.font.color)),i.title.font.family&&(r.labelFont[n]=i.title.font.family),i.title.font.size&&(r.labelSize[n]=i.title.font.size),i.title.font.weight&&(r.labelFontWeight[n]=i.title.font.weight),i.title.font.style&&(r.labelFontStyle[n]=i.title.font.style),i.title.font.variant&&(r.labelFontVariant[n]=i.title.font.variant)),"showline"in i&&(r.lineEnable[n]=i.showline),"linecolor"in i&&(r.lineColor[n]=U2(i.linecolor)),"linewidth"in i&&(r.lineWidth[n]=i.linewidth),"showgrid"in i&&(r.gridEnable[n]=i.showgrid),"gridcolor"in i&&(r.gridColor[n]=U2(i.gridcolor)),"gridwidth"in i&&(r.gridWidth[n]=i.gridwidth),i.type==="log"?r.zeroEnable[n]=!1:"zeroline"in i&&(r.zeroEnable[n]=i.zeroline),"zerolinecolor"in i&&(r.zeroLineColor[n]=U2(i.zerolinecolor)),"zerolinewidth"in i&&(r.zeroLineWidth[n]=i.zerolinewidth),"ticks"in i&&i.ticks?r.lineTickEnable[n]=!0:r.lineTickEnable[n]=!1,"ticklen"in i&&(r.lineTickLength[n]=r._defaultLineTickLength[n]=i.ticklen),"tickcolor"in i&&(r.lineTickColor[n]=U2(i.tickcolor)),"tickwidth"in i&&(r.lineTickWidth[n]=i.tickwidth),"tickangle"in i&&(r.tickAngle[n]=i.tickangle==="auto"?-3600:Math.PI*-i.tickangle/180),"showticklabels"in i&&(r.tickEnable[n]=i.showticklabels),"tickfont"in i&&(i.tickfont.color&&(r.tickColor[n]=U2(i.tickfont.color)),i.tickfont.family&&(r.tickFont[n]=i.tickfont.family),i.tickfont.size&&(r.tickSize[n]=i.tickfont.size),i.tickfont.weight&&(r.tickFontWeight[n]=i.tickfont.weight),i.tickfont.style&&(r.tickFontStyle[n]=i.tickfont.style),i.tickfont.variant&&(r.tickFontVariant[n]=i.tickfont.variant)),"mirror"in i?["ticks","all","allticks"].indexOf(i.mirror)!==-1?(r.lineTickMirror[n]=!0,r.lineMirror[n]=!0):i.mirror===!0?(r.lineTickMirror[n]=!1,r.lineMirror[n]=!0):(r.lineTickMirror[n]=!1,r.lineMirror[n]=!1):r.lineMirror[n]=!1,"showbackground"in i&&i.showbackground!==!1?(r.backgroundEnable[n]=!0,r.backgroundColor[n]=U2(i.backgroundcolor)):r.backgroundEnable[n]=!1}};function bIt(e,t){var r=new ZPe;return r.merge(e,t),r}YPe.exports=bIt});var QPe=ye(($pr,$Pe)=>{"use strict";var wIt=Jy(),TIt=["xaxis","yaxis","zaxis"];function JPe(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var AIt=JPe.prototype;AIt.merge=function(e){for(var t=0;t<3;++t){var r=e[TIt[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=wIt(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function SIt(e){var t=new JPe;return t.merge(e),t}$Pe.exports=SIt});var rIe=ye((Qpr,tIe)=>{"use strict";tIe.exports=LIt;var eIe=ho(),MIt=Dr(),EIt=["xaxis","yaxis","zaxis"],CIt=[0,0,0];function kIt(e){for(var t=new Array(3),r=0;r<3;++r){for(var n=e[r],i=new Array(n.length),a=0;a/g," "));i[a]=u,o.tickmode=s}}t.ticks=i;for(var a=0;a<3;++a){CIt[a]=.5*(e.glplot.bounds[0][a]+e.glplot.bounds[1][a]);for(var c=0;c<2;++c)t.bounds[c][a]=e.glplot.bounds[c][a]}e.contourLevels=kIt(i)}});var uIe=ye((e0r,lIe)=>{"use strict";var aIe=Od().gl_plot3d,PIt=aIe.createCamera,iIe=aIe.createScene,IIt=jPe(),RIt=LL(),QD=qa(),lp=Dr(),$D=lp.preserveDrawingBuffer(),eF=ho(),Kg=df(),DIt=Jy(),FIt=AX(),zIt=qU(),OIt=KPe(),qIt=QPe(),BIt=rIe(),NIt=wg().applyAutorangeOptions,jE,JD,oIe=!1;function sIe(e,t){var r=document.createElement("div"),n=e.container;this.graphDiv=e.graphDiv;var i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.style.position="absolute",i.style.top=i.style.left="0px",i.style.width=i.style.height="100%",i.style["z-index"]=20,i.style["pointer-events"]="none",r.appendChild(i),this.svgContainer=i,r.id=e.id,r.style.position="absolute",r.style.top=r.style.left="0px",r.style.width=r.style.height="100%",n.appendChild(r),this.fullLayout=t,this.id=e.id||"scene",this.fullSceneLayout=t[this.id],this.plotArgs=[[],{},{}],this.axesOptions=OIt(t,t[this.id]),this.spikeOptions=qIt(t[this.id]),this.container=r,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=QD.getComponentMethod("annotations3d","convert"),this.drawAnnotations=QD.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var wv=sIe.prototype;wv.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:$D,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!JD&&(jE=document.createElement("canvas"),JD=IIt({canvas:jE,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!JD))throw new Error("error creating static canvas/context for image server");t.gl=JD,t.canvas=jE}return t};var nIe=!0;wv.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=iIe(t)}catch(n){if(e.staticMode||!nIe||$D)r=!1;else{lp.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{$D=t.glOptions.preserveDrawingBuffer=!0,e.glplot=iIe(t)}catch(i){$D=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return nIe=!1,r};wv.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=PIt(e.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:r,zoomMin:.01,zoomMax:100,mode:"orbit"})};wv.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var t=e.tryCreatePlot();if(!t)return FIt(e);e.traces={},e.make4thDimension();var r=e.graphDiv,n=r.layout,i=function(){var o={};return e.isCameraChanged(n)&&(o[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(o[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=o[e.id+".aspectmode"]="manual")),o},a=function(o){if(o.fullSceneLayout.dragmode!==!1){var s=i();o.saveLayout(n),o.graphDiv.emit("plotly_relayout",s)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){a(e)}),e.glplot.canvas.addEventListener("touchstart",function(){oIe=!0}),e.glplot.canvas.addEventListener("wheel",function(o){if(r._context._scrollZoom.gl3d){if(e.camera._ortho){var s=o.deltaX>o.deltaY?1.1:.9090909090909091,l=e.glplot.getAspectratio();e.glplot.setAspectratio({x:s*l.x,y:s*l.y,z:s*l.z})}a(e)}},RIt?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var o=i();e.graphDiv.emit("plotly_relayouting",o)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(o){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:o,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};wv.render=function(){var e=this,t=e.graphDiv,r,n=e.svgContainer,i=e.container.getBoundingClientRect();t._fullLayout._calcInverseTransform(t);var a=t._fullLayout._invScaleX,o=t._fullLayout._invScaleY,s=i.width*a,l=i.height*o;n.setAttributeNS(null,"viewBox","0 0 "+s+" "+l),n.setAttributeNS(null,"width",s),n.setAttributeNS(null,"height",l),BIt(e),e.glplot.axes.update(e.axesOptions);for(var u=Object.keys(e.traces),c=null,f=e.glplot.selection,h=0;h")):r.type==="isosurface"||r.type==="volume"?(p.valueLabel=eF.hoverLabelText(e._mockAxis,e._mockAxis.d2l(f.traceCoordinate[3]),r.valuehoverformat),_.push("value: "+p.valueLabel),f.textLabel&&_.push(f.textLabel),L=_.join("
")):L=f.textLabel;var k={x:f.traceCoordinate[0],y:f.traceCoordinate[1],z:f.traceCoordinate[2],data:x._input,fullData:x,curveNumber:x.index,pointNumber:b};Kg.appendArrayPointValue(k,x,b),r._module.eventData&&(k=x._module.eventData(k,f,x,{},b));var M={points:[k]};if(e.fullSceneLayout.hovermode){var g=[];Kg.loneHover({trace:x,x:(.5+.5*v[0]/v[3])*s,y:(.5-.5*v[1]/v[3])*l,xLabel:p.xLabel,yLabel:p.yLabel,zLabel:p.zLabel,text:L,name:c.name,color:Kg.castHoverOption(x,b,"bgcolor")||c.color,borderColor:Kg.castHoverOption(x,b,"bordercolor"),fontFamily:Kg.castHoverOption(x,b,"font.family"),fontSize:Kg.castHoverOption(x,b,"font.size"),fontColor:Kg.castHoverOption(x,b,"font.color"),nameLength:Kg.castHoverOption(x,b,"namelength"),textAlign:Kg.castHoverOption(x,b,"align"),hovertemplate:lp.castOption(x,b,"hovertemplate"),hovertemplateLabels:lp.extendFlat({},k,p),eventData:[k]},{container:n,gd:t,inOut_bbox:g}),k.bbox=g[0]}f.distance<5&&(f.buttons||oIe)?t.emit("plotly_click",M):t.emit("plotly_hover",M),this.oldEventData=M}else Kg.loneUnhover(n),this.oldEventData&&t.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};wv.recoverContext=function(){var e=this;e.glplot.dispose();var t=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(t);return}if(!e.initializeGLPlot()){lp.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(t)};var WE=["xaxis","yaxis","zaxis"];function UIt(e,t,r){for(var n=e.fullSceneLayout,i=0;i<3;i++){var a=WE[i],o=a.charAt(0),s=n[a],l=t[o],u=t[o+"calendar"],c=t["_"+o+"length"];if(!lp.isArrayOrTypedArray(l))r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],c-1);else for(var f,h=0;h<(c||l.length);h++)if(lp.isArrayOrTypedArray(l[h]))for(var d=0;dx[1][o])x[0][o]=-1,x[1][o]=1;else{var T=x[1][o]-x[0][o];x[0][o]-=T/32,x[1][o]+=T/32}if(C=[x[0][o],x[1][o]],C=NIt(C,l),x[0][o]=C[0],x[1][o]=C[1],l.isReversed()){var z=x[0][o];x[0][o]=x[1][o],x[1][o]=z}}else C=l.range,x[0][o]=l.r2l(C[0]),x[1][o]=l.r2l(C[1]);x[0][o]===x[1][o]&&(x[0][o]-=1,x[1][o]+=1),b[o]=x[1][o]-x[0][o],l.range=[x[0][o],x[1][o]],l.limitRange(),n.glplot.setBounds(o,{min:l.range[0]*d[o],max:l.range[1]*d[o]})}var O,V=c.aspectmode;if(V==="cube")O=[1,1,1];else if(V==="manual"){var G=c.aspectratio;O=[G.x,G.y,G.z]}else if(V==="auto"||V==="data"){var Z=[1,1,1];for(o=0;o<3;++o){l=c[WE[o]],u=l.type;var H=p[u];Z[o]=Math.pow(H.acc,1/H.count)/d[o]}V==="data"||Math.max.apply(null,Z)/Math.min.apply(null,Z)<=4?O=Z:O=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");c.aspectratio.x=f.aspectratio.x=O[0],c.aspectratio.y=f.aspectratio.y=O[1],c.aspectratio.z=f.aspectratio.z=O[2],n.glplot.setAspectratio(c.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:c.aspectratio.x,y:c.aspectratio.y,z:c.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=c.aspectmode);var N=c.domain||null,j=t._size||null;if(N&&j){var re=n.container.style;re.position="absolute",re.left=j.l+N.x[0]*j.w+"px",re.top=j.t+(1-N.y[1])*j.h+"px",re.width=j.w*(N.x[1]-N.x[0])+"px",re.height=j.h*(N.y[1]-N.y[0])+"px"}n.glplot.redraw()}};wv.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function GIt(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function HIt(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}wv.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),HIt(e.camera)};wv.setViewport=function(e){var t=this,r=e.camera;t.camera.lookAt.apply(this,GIt(r)),t.glplot.setAspectratio(e.aspectratio);var n=r.projection.type==="orthographic",i=t.camera._ortho;n!==i&&(t.glplot.redraw(),t.glplot.clearRGBA(),t.glplot.dispose(),t.initializeGLPlot())};wv.isCameraChanged=function(e){var t=this,r=t.getCamera(),n=lp.nestedProperty(e,t.id+".camera"),i=n.get();function a(u,c,f,h){var d=["up","center","eye"],v=["x","y","z"];return c[d[f]]&&u[d[f]][v[h]]===c[d[f]][v[h]]}var o=!1;if(i===void 0)o=!0;else{for(var s=0;s<3;s++)for(var l=0;l<3;l++)if(!a(r,i,s,l)){o=!0;break}(!i.projection||r.projection&&r.projection.type!==i.projection.type)&&(o=!0)}return o};wv.isAspectChanged=function(e){var t=this,r=t.glplot.getAspectratio(),n=lp.nestedProperty(e,t.id+".aspectratio"),i=n.get();return i===void 0||i.x!==r.x||i.y!==r.y||i.z!==r.z};wv.saveLayout=function(e){var t=this,r=t.fullLayout,n,i,a,o,s,l,u=t.isCameraChanged(e),c=t.isAspectChanged(e),f=u||c;if(f){var h={};if(u&&(n=t.getCamera(),i=lp.nestedProperty(e,t.id+".camera"),a=i.get(),h[t.id+".camera"]=a),c&&(o=t.glplot.getAspectratio(),s=lp.nestedProperty(e,t.id+".aspectratio"),l=s.get(),h[t.id+".aspectratio"]=l),QD.call("_storeDirectGUIEdit",e,r._preGUI,h),u){i.set(n);var d=lp.nestedProperty(r,t.id+".camera");d.set(n)}if(c){s.set(o);var v=lp.nestedProperty(r,t.id+".aspectratio");v.set(o),t.glplot.redraw()}}return f};wv.updateFx=function(e,t){var r=this,n=r.camera;if(n)if(e==="orbit")n.mode="orbit",n.keyBindingMode="rotate";else if(e==="turntable"){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var i=r.graphDiv,a=i._fullLayout,o=r.fullSceneLayout.camera,s=o.up.x,l=o.up.y,u=o.up.z;if(u/Math.sqrt(s*s+l*l+u*u)<.999){var c=r.id+".camera.up",f={x:0,y:0,z:1},h={};h[c]=f;var d=i.layout;QD.call("_storeDirectGUIEdit",d,a._preGUI,h),o.up=f,lp.nestedProperty(d,c).set(f)}}else n.keyBindingMode=e;r.fullSceneLayout.hovermode=t};function jIt(e,t,r){for(var n=0,i=r-1;n0)for(var s=255/o,l=0;l<3;++l)e[a+l]=Math.min(s*e[a+l],255)}}wv.toImage=function(e){var t=this;e||(e="png"),t.staticMode&&t.container.appendChild(jE),t.glplot.redraw();var r=t.glplot.gl,n=r.drawingBufferWidth,i=r.drawingBufferHeight;r.bindFramebuffer(r.FRAMEBUFFER,null);var a=new Uint8Array(n*i*4);r.readPixels(0,0,n,i,r.RGBA,r.UNSIGNED_BYTE,a),jIt(a,n,i),WIt(a,n,i);var o=document.createElement("canvas");o.width=n,o.height=i;var s=o.getContext("2d",{willReadFrequently:!0}),l=s.createImageData(n,i);l.data.set(a),s.putImageData(l,0,0);var u;switch(e){case"jpeg":u=o.toDataURL("image/jpeg");break;case"webp":u=o.toDataURL("image/webp");break;default:u=o.toDataURL("image/png")}return t.staticMode&&t.container.removeChild(jE),u};wv.setConvert=function(){for(var e=this,t=0;t<3;t++){var r=e.fullSceneLayout[WE[t]];eF.setConvert(r,e.fullLayout),r.setScale=lp.noop}};wv.make4thDimension=function(){var e=this,t=e.graphDiv,r=t._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},eF.setConvert(e._mockAxis,r)};lIe.exports=sIe});var fIe=ye((t0r,cIe)=>{"use strict";cIe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var MX=ye((r0r,hIe)=>{"use strict";var XIt=Ca(),bs=Rd(),SX=Ao().extendFlat,ZIt=mc().overrideAll;hIe.exports=ZIt({visible:bs.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:XIt.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:bs.color,categoryorder:bs.categoryorder,categoryarray:bs.categoryarray,title:{text:bs.title.text,font:bs.title.font},type:SX({},bs.type,{values:["-","linear","log","date","category"]}),autotypenumbers:bs.autotypenumbers,autorange:bs.autorange,autorangeoptions:{minallowed:bs.autorangeoptions.minallowed,maxallowed:bs.autorangeoptions.maxallowed,clipmin:bs.autorangeoptions.clipmin,clipmax:bs.autorangeoptions.clipmax,include:bs.autorangeoptions.include,editType:"plot"},rangemode:bs.rangemode,minallowed:bs.minallowed,maxallowed:bs.maxallowed,range:SX({},bs.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:bs.minor.tickmode,nticks:bs.nticks,tick0:bs.tick0,dtick:bs.dtick,tickvals:bs.tickvals,ticktext:bs.ticktext,ticks:bs.ticks,mirror:bs.mirror,ticklen:bs.ticklen,tickwidth:bs.tickwidth,tickcolor:bs.tickcolor,showticklabels:bs.showticklabels,labelalias:bs.labelalias,tickfont:bs.tickfont,tickangle:bs.tickangle,tickprefix:bs.tickprefix,showtickprefix:bs.showtickprefix,ticksuffix:bs.ticksuffix,showticksuffix:bs.showticksuffix,showexponent:bs.showexponent,exponentformat:bs.exponentformat,minexponent:bs.minexponent,separatethousands:bs.separatethousands,tickformat:bs.tickformat,tickformatstops:bs.tickformatstops,hoverformat:bs.hoverformat,showline:bs.showline,linecolor:bs.linecolor,linewidth:bs.linewidth,showgrid:bs.showgrid,gridcolor:SX({},bs.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:bs.gridwidth,zeroline:bs.zeroline,zerolinecolor:bs.zerolinecolor,zerolinewidth:bs.zerolinewidth},"plot","from-root")});var LX=ye((i0r,dIe)=>{"use strict";var EX=MX(),YIt=kc().attributes,CX=Ao().extendFlat,KIt=Dr().counterRegex;function kX(e,t,r){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:t,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}dIe.exports={_arrayAttrRegexps:[KIt("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:CX(kX(0,0,1),{}),center:CX(kX(0,0,0),{}),eye:CX(kX(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:YIt({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:EX,yaxis:EX,zaxis:EX,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot"}});var mIe=ye((n0r,gIe)=>{"use strict";var JIt=cd().mix,vIe=Dr(),$It=pl(),QIt=MX(),e8t=wU(),t8t=$M(),pIe=["xaxis","yaxis","zaxis"],r8t=100*136/187;gIe.exports=function(t,r,n){var i,a;function o(u,c){return vIe.coerce(i,a,QIt,u,c)}for(var s=0;s{"use strict";var i8t=Dr(),n8t=Ca(),a8t=qa(),o8t=k_(),s8t=mIe(),yIe=LX(),l8t=Id().getSubplotData,_Ie="gl3d";xIe.exports=function(t,r,n){var i=r._basePlotModules.length>1;function a(o){if(!i){var s=i8t.validate(t[o],yIe[o]);if(s)return t[o]}}o8t(t,r,n,{type:_Ie,attributes:yIe,handleDefaults:u8t,fullLayout:r,font:r.font,fullData:n,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function u8t(e,t,r,n){for(var i=r("bgcolor"),a=n8t.combine(i,n.paper_bgcolor),o=["up","center","eye"],s=0;s.999)&&(h="turntable")}else h="turntable";r("dragmode",h),r("hovermode",n.getDfltFromLayout("hovermode"))}});var Q_=ye(up=>{"use strict";var c8t=mc().overrideAll,f8t=N1(),h8t=uIe(),d8t=Id().getSubplotData,v8t=Dr(),p8t=Wp(),BA="gl3d",PX="scene";up.name=BA;up.attr=PX;up.idRoot=PX;up.idRegex=up.attrRegex=v8t.counterRegex("scene");up.attributes=fIe();up.layoutAttributes=LX();up.baseLayoutAttrOverrides=c8t({hoverlabel:f8t.hoverlabel},"plot","nested");up.supplyLayoutDefaults=bIe();up.plot=function(t){for(var r=t._fullLayout,n=t._fullData,i=r._subplots[BA],a=0;a{"use strict";wIe.exports={plot:RPe(),attributes:wX(),markerSymbols:YD(),supplyDefaults:BPe(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:UPe(),moduleType:"trace",name:"scatter3d",basePlotModule:Q_(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var SIe=ye((l0r,AIe)=>{"use strict";AIe.exports=TIe()});var XE=ye((u0r,CIe)=>{"use strict";var MIe=Ca(),g8t=Tu(),IX=ff().axisHoverFormat,m8t=rs().hovertemplateAttrs,EIe=Vl(),RX=Ao().extendFlat,y8t=mc().overrideAll;function DX(e){return{valType:"boolean",dflt:!1}}function FX(e){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:DX("x"),y:DX("y"),z:DX("z")},color:{valType:"color",dflt:MIe.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:MIe.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var zX=CIe.exports=y8t(RX({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:m8t(),xhoverformat:IX("x"),yhoverformat:IX("y"),zhoverformat:IX("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},g8t("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:FX("x"),y:FX("y"),z:FX("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:RX({},EIe.hoverinfo),showlegend:RX({},EIe.showlegend,{dflt:!1})}),"calc","nested");zX.x.editType=zX.y.editType=zX.z.editType="calc+clearAxisTypes"});var qX=ye((c0r,PIe)=>{"use strict";var _8t=qa(),kIe=Dr(),x8t=Jh(),b8t=XE(),OX=.1;function w8t(e,t){for(var r=[],n=32,i=0;i{"use strict";var IIe=Fv();RIe.exports=function(t,r){r.surfacecolor?IIe(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):IIe(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var NIe=ye((h0r,BIe)=>{"use strict";var S8t=Od().gl_surface3d,NA=Od().ndarray,M8t=Od().ndarray_linear_interpolate.d2,E8t=r8(),C8t=i8(),ZE=Dr().isArrayOrTypedArray,k8t=$y().parseColorScale,FIe=Jy(),L8t=tc().extractOpts;function OIe(e,t,r){this.scene=e,this.uid=r,this.surface=t,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var Jg=OIe.prototype;Jg.getXat=function(e,t,r,n){var i=ZE(this.data.x)?ZE(this.data.x[0])?this.data.x[t][e]:this.data.x[e]:e;return r===void 0?i:n.d2l(i,0,r)};Jg.getYat=function(e,t,r,n){var i=ZE(this.data.y)?ZE(this.data.y[0])?this.data.y[t][e]:this.data.y[t]:t;return r===void 0?i:n.d2l(i,0,r)};Jg.getZat=function(e,t,r,n){var i=this.data.z[t][e];return i===null&&this.data.connectgaps&&this.data._interpolatedZ&&(i=this.data._interpolatedZ[t][e]),r===void 0?i:n.d2l(i,0,r)};Jg.handlePick=function(e){if(e.object===this.surface){var t=(e.data.index[0]-1)/this.dataScaleX-1,r=(e.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(t),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);e.index=[n,i],e.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],e.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a<3;a++){var o=e.dataCoordinate[a];o!=null&&(e.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return ZE(s)&&s[i]&&s[i][n]!==void 0?e.textLabel=s[i][n]:s?e.textLabel=s:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function P8t(e){var t=e[0].rgb,r=e[e.length-1].rgb;return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]&&t[3]===r[3]}var UA=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function I8t(e,t){if(e0){r=UA[n];break}return r}function D8t(e,t){if(!(e<1||t<1)){for(var r=BX(e),n=BX(t),i=1,a=0;atF;)n--,n/=R8t(n),n++,n1?i:1};function z8t(e,t,r){var n=r[8]+r[2]*t[0]+r[5]*t[1];return e[0]=(r[6]+r[0]*t[0]+r[3]*t[1])/n,e[1]=(r[7]+r[1]*t[0]+r[4]*t[1])/n,e}function O8t(e,t,r){return q8t(e,t,z8t,r),e}function q8t(e,t,r,n){for(var i=[0,0],a=e.shape[0],o=e.shape[1],s=0;s0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(t[n]=!0,i=this.contourStart[n];ih&&(this.minValues[u]=h),this.maxValues[u]{"use strict";UIe.exports={attributes:XE(),supplyDefaults:qX().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:DIe(),plot:NIe(),moduleType:"trace",name:"surface",basePlotModule:Q_(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var HIe=ye((v0r,GIe)=>{"use strict";GIe.exports=VIe()});var VA=ye((p0r,WIe)=>{"use strict";var U8t=Tu(),NX=ff().axisHoverFormat,V8t=rs().hovertemplateAttrs,ex=XE(),jIe=Vl(),tx=Ao().extendFlat;WIe.exports=tx({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:V8t({editType:"calc"}),xhoverformat:NX("x"),yhoverformat:NX("y"),zhoverformat:NX("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"}},U8t("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:ex.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:tx({},ex.contours.x.show,{}),color:ex.contours.x.color,width:ex.contours.x.width,editType:"calc"},lightposition:{x:tx({},ex.lightposition.x,{dflt:1e5}),y:tx({},ex.lightposition.y,{dflt:1e5}),z:tx({},ex.lightposition.z,{dflt:0}),editType:"calc"},lighting:tx({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},ex.lighting),hoverinfo:tx({},jIe.hoverinfo,{editType:"calc"}),showlegend:tx({},jIe.showlegend,{dflt:!1})})});var iF=ye((g0r,ZIe)=>{"use strict";var G8t=Tu(),rF=ff().axisHoverFormat,H8t=rs().hovertemplateAttrs,YE=VA(),XIe=Vl(),UX=Ao().extendFlat,j8t=mc().overrideAll;function VX(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function GX(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var GA=ZIe.exports=j8t(UX({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:VX("x"),y:VX("y"),z:VX("z")},caps:{x:GX("x"),y:GX("y"),z:GX("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:H8t(),xhoverformat:rF("x"),yhoverformat:rF("y"),zhoverformat:rF("z"),valuehoverformat:rF("value",1),showlegend:UX({},XIe.showlegend,{dflt:!1})},G8t("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:YE.opacity,lightposition:YE.lightposition,lighting:YE.lighting,flatshading:YE.flatshading,contour:YE.contour,hoverinfo:UX({},XIe.hoverinfo)}),"calc","nested");GA.flatshading.dflt=!0;GA.lighting.facenormalsepsilon.dflt=0;GA.x.editType=GA.y.editType=GA.z.editType=GA.value.editType="calc+clearAxisTypes"});var HX=ye((m0r,KIe)=>{"use strict";var W8t=Dr(),X8t=qa(),Z8t=iF(),Y8t=Jh();function K8t(e,t,r,n){function i(a,o){return W8t.coerce(e,t,Z8t,a,o)}YIe(e,t,r,n,i)}function YIe(e,t,r,n,i){var a=i("isomin"),o=i("isomax");o!=null&&a!==void 0&&a!==null&&a>o&&(t.isomin=null,t.isomax=null);var s=i("x"),l=i("y"),u=i("z"),c=i("value");if(!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length){t.visible=!1;return}var f=X8t.getComponentMethod("calendars","handleTraceDefaults");f(e,t,["x","y","z"],n),i("valuehoverformat"),["x","y","z"].forEach(function(x){i(x+"hoverformat");var b="caps."+x,p=i(b+".show");p&&i(b+".fill");var C="slices."+x,E=i(C+".show");E&&(i(C+".fill"),i(C+".locations"))});var h=i("spaceframe.show");h&&i("spaceframe.fill");var d=i("surface.show");d&&(i("surface.count"),i("surface.fill"),i("surface.pattern"));var v=i("contour.show");v&&(i("contour.color"),i("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(x){i(x)}),Y8t(e,t,n,i,{prefix:"",cLetter:"c"}),t._length=null}KIe.exports={supplyDefaults:K8t,supplyIsoDefaults:YIe}});var nF=ye((y0r,$Ie)=>{"use strict";var WX=Dr(),J8t=Fv();function $8t(e,t){t._len=Math.min(t.u.length,t.v.length,t.w.length,t.x.length,t.y.length,t.z.length),t._u=Hm(t.u,t._len),t._v=Hm(t.v,t._len),t._w=Hm(t.w,t._len),t._x=Hm(t.x,t._len),t._y=Hm(t.y,t._len),t._z=Hm(t.z,t._len);var r=JIe(t);t._gridFill=r.fill,t._Xs=r.Xs,t._Ys=r.Ys,t._Zs=r.Zs,t._len=r.len;var n=0,i,a,o;t.starts&&(i=Hm(t.starts.x||[]),a=Hm(t.starts.y||[]),o=Hm(t.starts.z||[]),n=Math.min(i.length,a.length,o.length)),t._startsX=i||[],t._startsY=a||[],t._startsZ=o||[];var s=0,l=1/0,u;for(u=0;u1&&(E=t[i-1],L=r[i-1],k=n[i-1]),a=0;aE?"-":"+")+"x"),v=v.replace("y",(A>L?"-":"+")+"y"),v=v.replace("z",(_>k?"-":"+")+"z");var T=function(){i=0,M=[],g=[],P=[]};(!i||i{"use strict";var Q8t=Fv(),eRt=nF().processGrid,aF=nF().filter;QIe.exports=function(t,r){r._len=Math.min(r.x.length,r.y.length,r.z.length,r.value.length),r._x=aF(r.x,r._len),r._y=aF(r.y,r._len),r._z=aF(r.z,r._len),r._value=aF(r.value,r._len);var n=eRt(r);r._gridFill=n.fill,r._Xs=n.Xs,r._Ys=n.Ys,r._Zs=n.Zs,r._len=n.len;for(var i=1/0,a=-1/0,o=0;o{"use strict";e8e.exports=function(t,r,n,i){i=i||t.length;for(var a=new Array(i),o=0;o{"use strict";var tRt=Od().gl_mesh3d,rRt=$y().parseColorScale,iRt=Dr().isArrayOrTypedArray,nRt=Jy(),aRt=tc().extractOpts,t8e=HA(),KE=function(e,t){for(var r=t.length-1;r>0;r--){var n=Math.min(t[r],t[r-1]),i=Math.max(t[r],t[r-1]);if(i>n&&n-1}function oe(Ct,Vt){return Ct===null?Vt:Ct}function _e(Ct,Vt,It){T();var Ot=[Vt],bt=[It];if(H>=1)Ot=[Vt],bt=[It];else if(H>0){var rr=j(Vt,It);Ot=rr.xyzv,bt=rr.abc}for(var lr=0;lr-1?It[Cr]:P(Kr,Gr,Yr);Ge>-1?wr[Cr]=Ge:wr[Cr]=O(Kr,Gr,Yr,oe(Ct,dt))}V(wr[0],wr[1],wr[2])}}function Me(Ct,Vt,It){var Ot=function(bt,rr,lr){_e(Ct,[Vt[bt],Vt[rr],Vt[lr]],[It[bt],It[rr],It[lr]])};Ot(0,1,2),Ot(2,3,0)}function ke(Ct,Vt,It){var Ot=function(bt,rr,lr){_e(Ct,[Vt[bt],Vt[rr],Vt[lr]],[It[bt],It[rr],It[lr]])};Ot(0,1,2),Ot(3,0,1),Ot(2,3,0),Ot(1,2,3)}function me(Ct,Vt,It,Ot){var bt=Ct[3];btOt&&(bt=Ot);for(var rr=(Ct[3]-bt)/(Ct[3]-Vt[3]+1e-9),lr=[],wr=0;wr<4;wr++)lr[wr]=(1-rr)*Ct[wr]+rr*Vt[wr];return lr}function ie(Ct,Vt,It){return Ct>=Vt&&Ct<=It}function Se(Ct){var Vt=.001*(L-A);return Ct>=A-Vt&&Ct<=L+Vt}function Le(Ct){for(var Vt=[],It=0;It<4;It++){var Ot=Ct[It];Vt.push([e._x[Ot],e._y[Ot],e._z[Ot],e._value[Ot]])}return Vt}var Ae=3;function Fe(Ct,Vt,It,Ot,bt,rr){rr||(rr=1),It=[-1,-1,-1];var lr=!1,wr=[ie(Vt[0][3],Ot,bt),ie(Vt[1][3],Ot,bt),ie(Vt[2][3],Ot,bt)];if(!wr[0]&&!wr[1]&&!wr[2])return!1;var Cr=function(Gr,Yr,dt){return Se(Yr[0][3])&&Se(Yr[1][3])&&Se(Yr[2][3])?(_e(Gr,Yr,dt),!0):rrwr?[C,rr]:[rr,E];Ut(Vt,Cr[0],Cr[1])}}var Kr=[[Math.min(A,E),Math.max(A,E)],[Math.min(C,L),Math.max(C,L)]];["x","y","z"].forEach(function(Gr){for(var Yr=[],dt=0;dt0&&(Ie.push(pt.id),Gr==="x"?xe.push([pt.distRatio,0,0]):Gr==="y"?xe.push([0,pt.distRatio,0]):xe.push([0,0,pt.distRatio]))}else Gr==="x"?xt=ur(1,d-1):Gr==="y"?xt=ur(1,v-1):xt=ur(1,x-1);Ie.length>0&&(Gr==="x"?Yr[Ge]=$t(Ct,Ie,Qe,je,xe,Yr[Ge]):Gr==="y"?Yr[Ge]=sr(Ct,Ie,Qe,je,xe,Yr[Ge]):Yr[Ge]=Tr(Ct,Ie,Qe,je,xe,Yr[Ge]),Ge++),xt.length>0&&(Gr==="x"?Yr[Ge]=gt(Ct,xt,Qe,je,Yr[Ge]):Gr==="y"?Yr[Ge]=Kt(Ct,xt,Qe,je,Yr[Ge]):Yr[Ge]=st(Ct,xt,Qe,je,Yr[Ge]),Ge++)}var nr=e.caps[Gr];nr.show&&nr.fill&&(N(nr.fill),Gr==="x"?Yr[Ge]=gt(Ct,[0,d-1],Qe,je,Yr[Ge]):Gr==="y"?Yr[Ge]=Kt(Ct,[0,v-1],Qe,je,Yr[Ge]):Yr[Ge]=st(Ct,[0,x-1],Qe,je,Yr[Ge]),Ge++)}}),s===0&&z(),e._meshX=_,e._meshY=k,e._meshZ=M,e._meshIntensity=g,e._Xs=c,e._Ys=f,e._Zs=h}return Mt(),e}function sRt(e,t){var r=e.glplot.gl,n=tRt({gl:r}),i=new r8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}n8e.exports={findNearestOnAxis:KE,generateIsoMeshes:i8e,createIsosurfaceTrace:sRt}});var o8e=ye((w0r,a8e)=>{"use strict";a8e.exports={attributes:iF(),supplyDefaults:HX().supplyDefaults,calc:XX(),colorbar:{min:"cmin",max:"cmax"},plot:oF().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:Q_(),categories:["gl3d","showLegend"],meta:{}}});var l8e=ye((T0r,s8e)=>{"use strict";s8e.exports=o8e()});var KX=ye((A0r,c8e)=>{"use strict";var lRt=Tu(),Dh=iF(),uRt=XE(),u8e=Vl(),YX=Ao().extendFlat,cRt=mc().overrideAll,sF=c8e.exports=cRt(YX({x:Dh.x,y:Dh.y,z:Dh.z,value:Dh.value,isomin:Dh.isomin,isomax:Dh.isomax,surface:Dh.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:Dh.slices,caps:Dh.caps,text:Dh.text,hovertext:Dh.hovertext,xhoverformat:Dh.xhoverformat,yhoverformat:Dh.yhoverformat,zhoverformat:Dh.zhoverformat,valuehoverformat:Dh.valuehoverformat,hovertemplate:Dh.hovertemplate},lRt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Dh.colorbar,opacity:Dh.opacity,opacityscale:uRt.opacityscale,lightposition:Dh.lightposition,lighting:Dh.lighting,flatshading:Dh.flatshading,contour:Dh.contour,hoverinfo:YX({},u8e.hoverinfo),showlegend:YX({},u8e.showlegend,{dflt:!1})}),"calc","nested");sF.x.editType=sF.y.editType=sF.z.editType=sF.value.editType="calc+clearAxisTypes"});var h8e=ye((S0r,f8e)=>{"use strict";var fRt=Dr(),hRt=KX(),dRt=HX().supplyIsoDefaults,vRt=qX().opacityscaleDefaults;f8e.exports=function(t,r,n,i){function a(o,s){return fRt.coerce(t,r,hRt,o,s)}dRt(t,r,n,i,a),vRt(t,r,i,a)}});var g8e=ye((M0r,p8e)=>{"use strict";var pRt=Od().gl_mesh3d,gRt=$y().parseColorScale,mRt=Dr().isArrayOrTypedArray,yRt=Jy(),_Rt=tc().extractOpts,d8e=HA(),JX=oF().findNearestOnAxis,xRt=oF().generateIsoMeshes;function v8e(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var $X=v8e.prototype;$X.handlePick=function(e){if(e.object===this.mesh){var t=e.data.index,r=this.data._meshX[t],n=this.data._meshY[t],i=this.data._meshZ[t],a=this.data._Ys.length,o=this.data._Zs.length,s=JX(r,this.data._Xs).id,l=JX(n,this.data._Ys).id,u=JX(i,this.data._Zs).id,c=e.index=u+o*l+o*a*s;e.traceCoordinate=[this.data._meshX[c],this.data._meshY[c],this.data._meshZ[c],this.data._value[c]];var f=this.data.hovertext||this.data.text;return mRt(f)&&f[c]!==void 0?e.textLabel=f[c]:f&&(e.textLabel=f),!0}};$X.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=xRt(e);function n(l,u,c,f){return u.map(function(h){return l.d2l(h,0,f)*c})}var i=d8e(n(r.xaxis,e._meshX,t.dataScale[0],e.xcalendar),n(r.yaxis,e._meshY,t.dataScale[1],e.ycalendar),n(r.zaxis,e._meshZ,t.dataScale[2],e.zcalendar)),a=d8e(e._meshI,e._meshJ,e._meshK),o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:yRt(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=_Rt(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=gRt(e),this.mesh.update(o)};$X.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function bRt(e,t){var r=e.glplot.gl,n=pRt({gl:r}),i=new v8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}p8e.exports=bRt});var y8e=ye((E0r,m8e)=>{"use strict";m8e.exports={attributes:KX(),supplyDefaults:h8e(),calc:XX(),colorbar:{min:"cmin",max:"cmax"},plot:g8e(),moduleType:"trace",name:"volume",basePlotModule:Q_(),categories:["gl3d","showLegend"],meta:{}}});var x8e=ye((C0r,_8e)=>{"use strict";_8e.exports=y8e()});var T8e=ye((k0r,w8e)=>{"use strict";var wRt=qa(),b8e=Dr(),TRt=Jh(),ARt=VA();w8e.exports=function(t,r,n,i){function a(c,f){return b8e.coerce(t,r,ARt,c,f)}function o(c){var f=c.map(function(h){var d=a(h);return d&&b8e.isArrayOrTypedArray(d)?d:null});return f.every(function(h){return h&&h.length===f[0].length})&&f}var s=o(["x","y","z"]);if(!s){r.visible=!1;return}if(o(["i","j","k"]),r.i&&(!r.j||!r.k)||r.j&&(!r.k||!r.i)||r.k&&(!r.i||!r.j)){r.visible=!1;return}var l=wRt.getComponentMethod("calendars","handleTraceDefaults");l(t,r,["x","y","z"],i),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(c){a(c)});var u=a("contour.show");u&&(a("contour.color"),a("contour.width")),"intensity"in t?(a("intensity"),a("intensitymode"),TRt(t,r,i,a,{prefix:"",cLetter:"c"})):(r.showscale=!1,"facecolor"in t?a("facecolor"):"vertexcolor"in t?a("vertexcolor"):a("color",n)),a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var S8e=ye((L0r,A8e)=>{"use strict";var SRt=Fv();A8e.exports=function(t,r){r.intensity&&SRt(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var L8e=ye((P0r,k8e)=>{"use strict";var MRt=Od().gl_mesh3d,ERt=Od().delaunay_triangulate,CRt=Od().alpha_shape,kRt=Od().convex_hull,LRt=$y().parseColorScale,PRt=Dr().isArrayOrTypedArray,rZ=Jy(),IRt=tc().extractOpts,M8e=HA();function C8e(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var iZ=C8e.prototype;iZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]];var r=this.data.hovertext||this.data.text;return PRt(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function E8e(e){for(var t=[],r=e.length,n=0;n=t-.5)return!1;return!0}iZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=e;var n=e.x.length,i=M8e(QX(r.xaxis,e.x,t.dataScale[0],e.xcalendar),QX(r.yaxis,e.y,t.dataScale[1],e.ycalendar),QX(r.zaxis,e.z,t.dataScale[2],e.zcalendar)),a;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!tZ(e.i,n)||!tZ(e.j,n)||!tZ(e.k,n))return;a=M8e(eZ(e.i),eZ(e.j),eZ(e.k))}else e.alphahull===0?a=kRt(i):e.alphahull>0?a=CRt(e.alphahull,i):a=RRt(e.delaunayaxis,i);var o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:rZ(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var s=IRt(e);this.color="#fff";var l=e.intensitymode;o[l+"Intensity"]=e.intensity,o[l+"IntensityBounds"]=[s.min,s.max],o.colormap=LRt(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=E8e(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=E8e(e.facecolor)):(this.color=e.color,o.meshColor=rZ(e.color));this.mesh.update(o)};iZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function DRt(e,t){var r=e.glplot.gl,n=MRt({gl:r}),i=new C8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}k8e.exports=DRt});var I8e=ye((I0r,P8e)=>{"use strict";P8e.exports={attributes:VA(),supplyDefaults:T8e(),calc:S8e(),colorbar:{min:"cmin",max:"cmax"},plot:L8e(),moduleType:"trace",name:"mesh3d",basePlotModule:Q_(),categories:["gl3d","showLegend"],meta:{}}});var D8e=ye((R0r,R8e)=>{"use strict";R8e.exports=I8e()});var aZ=ye((D0r,z8e)=>{"use strict";var FRt=Tu(),jA=ff().axisHoverFormat,zRt=rs().hovertemplateAttrs,ORt=VA(),F8e=Vl(),nZ=Ao().extendFlat,lF={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:zRt({editType:"calc"},{keys:["norm"]}),uhoverformat:jA("u",1),vhoverformat:jA("v",1),whoverformat:jA("w",1),xhoverformat:jA("x"),yhoverformat:jA("y"),zhoverformat:jA("z"),showlegend:nZ({},F8e.showlegend,{dflt:!1})};nZ(lF,FRt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var qRt=["opacity","lightposition","lighting"];qRt.forEach(function(e){lF[e]=ORt[e]});lF.hoverinfo=nZ({},F8e.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});z8e.exports=lF});var q8e=ye((F0r,O8e)=>{"use strict";var BRt=Dr(),NRt=Jh(),URt=aZ();O8e.exports=function(t,r,n,i){function a(d,v){return BRt.coerce(t,r,URt,d,v)}var o=a("u"),s=a("v"),l=a("w"),u=a("x"),c=a("y"),f=a("z");if(!o||!o.length||!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length||!f||!f.length){r.visible=!1;return}var h=a("sizemode");a("sizeref",h==="raw"?1:.5),a("anchor"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),NRt(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var N8e=ye((z0r,B8e)=>{"use strict";var VRt=Fv();B8e.exports=function(t,r){for(var n=r.u,i=r.v,a=r.w,o=Math.min(r.x.length,r.y.length,r.z.length,n.length,i.length,a.length),s=-1/0,l=1/0,u=0;u{"use strict";var GRt=Od().gl_cone3d,HRt=Od().gl_cone3d.createConeMesh,jRt=Dr().simpleMap,WRt=$y().parseColorScale,XRt=tc().extractOpts,ZRt=Dr().isArrayOrTypedArray,U8e=HA();function V8e(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var oZ=V8e.prototype;oZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index,r=this.data.x[t],n=this.data.y[t],i=this.data.z[t],a=this.data.u[t],o=this.data.v[t],s=this.data.w[t];e.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.hovertext||this.data.text;return ZRt(l)&&l[t]!==void 0?e.textLabel=l[t]:l&&(e.textLabel=l),!0}};var YRt={xaxis:0,yaxis:1,zaxis:2},KRt={tip:1,tail:0,cm:.25,center:.5},JRt={tip:1,tail:1,cm:.75,center:.5};function G8e(e,t){var r=e.fullSceneLayout,n=e.dataScale,i={};function a(c,f){var h=r[f],d=n[YRt[f]];return jRt(c,function(v){return h.d2l(v)*d})}i.vectors=U8e(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),i.positions=U8e(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=XRt(t);i.colormap=WRt(t),i.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],i.coneOffset=KRt[t.anchor];var s=t.sizemode;s==="scaled"?i.coneSize=t.sizeref||.5:s==="absolute"?i.coneSize=t.sizeref&&t._normMax?t.sizeref/t._normMax:.5:s==="raw"&&(i.coneSize=t.sizeref),i.coneSizemode=s;var l=GRt(i),u=t.lightposition;return l.lightPosition=[u.x,u.y,u.z],l.ambient=t.lighting.ambient,l.diffuse=t.lighting.diffuse,l.specular=t.lighting.specular,l.roughness=t.lighting.roughness,l.fresnel=t.lighting.fresnel,l.opacity=t.opacity,t._pad=JRt[t.anchor]*l.vectorScale*l.coneScale*t._normMax,l}oZ.update=function(e){this.data=e;var t=G8e(this.scene,e);this.mesh.update(t)};oZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function $Rt(e,t){var r=e.glplot.gl,n=G8e(e,t),i=HRt(r,n),a=new V8e(e,t.uid);return a.mesh=i,a.data=t,i._trace=a,e.glplot.add(i),a}H8e.exports=$Rt});var X8e=ye((q0r,W8e)=>{"use strict";W8e.exports={moduleType:"trace",name:"cone",basePlotModule:Q_(),categories:["gl3d","showLegend"],attributes:aZ(),supplyDefaults:q8e(),colorbar:{min:"cmin",max:"cmax"},calc:N8e(),plot:j8e(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var Y8e=ye((B0r,Z8e)=>{"use strict";Z8e.exports=X8e()});var lZ=ye((N0r,J8e)=>{"use strict";var QRt=Tu(),WA=ff().axisHoverFormat,eDt=rs().hovertemplateAttrs,tDt=VA(),K8e=Vl(),sZ=Ao().extendFlat,uF={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:eDt({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),uhoverformat:WA("u",1),vhoverformat:WA("v",1),whoverformat:WA("w",1),xhoverformat:WA("x"),yhoverformat:WA("y"),zhoverformat:WA("z"),showlegend:sZ({},K8e.showlegend,{dflt:!1})};sZ(uF,QRt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var rDt=["opacity","lightposition","lighting"];rDt.forEach(function(e){uF[e]=tDt[e]});uF.hoverinfo=sZ({},K8e.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});J8e.exports=uF});var Q8e=ye((U0r,$8e)=>{"use strict";var iDt=Dr(),nDt=Jh(),aDt=lZ();$8e.exports=function(t,r,n,i){function a(h,d){return iDt.coerce(t,r,aDt,h,d)}var o=a("u"),s=a("v"),l=a("w"),u=a("x"),c=a("y"),f=a("z");if(!o||!o.length||!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length||!f||!f.length){r.visible=!1;return}a("starts.x"),a("starts.y"),a("starts.z"),a("maxdisplayed"),a("sizeref"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),nDt(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var sRe=ye((V0r,oRe)=>{"use strict";var rRe=Od().gl_streamtube3d,oDt=rRe.createTubeMesh,sDt=Dr(),lDt=$y().parseColorScale,uDt=tc().extractOpts,eRe=HA(),iRe={xaxis:0,yaxis:1,zaxis:2};function nRe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var cZ=nRe.prototype;cZ.handlePick=function(e){var t=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(o,s){var l=t[s],u=r[iRe[s]];return l.l2c(o)/u}if(e.object===this.mesh){var i=e.data.position,a=e.data.velocity;return e.traceCoordinate=[n(i[0],"xaxis"),n(i[1],"yaxis"),n(i[2],"zaxis"),n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function tRe(e){var t=e.length,r;return t>2?r=e.slice(1,t-1):t===2?r=[(e[0]+e[1])/2]:r=e,r}function uZ(e){var t=e.length;return t===1?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function aRe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i=t._len,a={};function o(z,O){var V=r[O],G=n[iRe[O]];return sDt.simpleMap(z,function(Z){return V.d2l(Z)*G})}if(a.vectors=eRe(o(t._u,"xaxis"),o(t._v,"yaxis"),o(t._w,"zaxis"),i),!i)return{positions:[],cells:[]};var s=o(t._Xs,"xaxis"),l=o(t._Ys,"yaxis"),u=o(t._Zs,"zaxis");a.meshgrid=[s,l,u],a.gridFill=t._gridFill;var c=t._slen;if(c)a.startingPositions=eRe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var f=l[0],h=tRe(s),d=tRe(u),v=new Array(h.length*d.length),x=0,b=0;b{"use strict";lRe.exports={moduleType:"trace",name:"streamtube",basePlotModule:Q_(),categories:["gl3d","showLegend"],attributes:lZ(),supplyDefaults:Q8e(),colorbar:{min:"cmin",max:"cmax"},calc:nF().calc,plot:sRe(),eventData:function(e,t){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=t.traceCoordinate[3],e.tubev=t.traceCoordinate[4],e.tubew=t.traceCoordinate[5],e.norm=t.traceCoordinate[6],e.divergence=t.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var fRe=ye((H0r,cRe)=>{"use strict";cRe.exports=uRe()});var G2=ye((j0r,vRe)=>{"use strict";var fDt=rs().hovertemplateAttrs,hDt=rs().texttemplateAttrs,dDt=Eg(),jm=vf(),vDt=Vl(),hRe=Tu(),pDt=Pd().dash,V2=Ao().extendFlat,gDt=mc().overrideAll,eg=jm.marker,dRe=jm.line,mDt=eg.line;vRe.exports=gDt({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:V2({},jm.mode,{dflt:"markers"}),text:V2({},jm.text,{}),texttemplate:hDt({editType:"plot"},{keys:["lat","lon","location","text"]}),hovertext:V2({},jm.hovertext,{}),textfont:jm.textfont,textposition:jm.textposition,line:{color:dRe.color,width:dRe.width,dash:pDt},connectgaps:jm.connectgaps,marker:V2({symbol:eg.symbol,opacity:eg.opacity,angle:eg.angle,angleref:V2({},eg.angleref,{values:["previous","up","north"]}),standoff:eg.standoff,size:eg.size,sizeref:eg.sizeref,sizemin:eg.sizemin,sizemode:eg.sizemode,colorbar:eg.colorbar,line:V2({width:mDt.width},hRe("marker.line")),gradient:eg.gradient},hRe("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:dDt(),selected:jm.selected,unselected:jm.unselected,hoverinfo:V2({},vDt.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:fDt()},"calc","nested")});var gRe=ye((W0r,pRe)=>{"use strict";var fZ=Dr(),hZ=Ru(),yDt=$p(),_Dt=R0(),xDt=D0(),bDt=Ig(),wDt=G2();pRe.exports=function(t,r,n,i){function a(d,v){return fZ.coerce(t,r,wDt,d,v)}var o=a("locations"),s;if(o&&o.length){var l=a("geojson"),u;(typeof l=="string"&&l!==""||fZ.isPlainObject(l))&&(u="geojson-id");var c=a("locationmode",u);c==="geojson-id"&&a("featureidkey"),s=o.length}else{var f=a("lon")||[],h=a("lat")||[];s=Math.min(f.length,h.length)}if(!s){r.visible=!1;return}r._length=s,a("text"),a("hovertext"),a("hovertemplate"),a("mode"),hZ.hasMarkers(r)&&yDt(t,r,n,i,a,{gradient:!0}),hZ.hasLines(r)&&(_Dt(t,r,n,i,a),a("connectgaps")),hZ.hasText(r)&&(a("texttemplate"),xDt(t,r,i,a)),a("fill"),r.fill!=="none"&&bDt(t,r,n,a),fZ.coerceSelectionMarkerOpacity(r,a)}});var _Re=ye((X0r,yRe)=>{"use strict";var mRe=ho();yRe.exports=function(t,r,n){var i={},a=n[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=mRe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=mRe.tickText(o,o.c2l(s[1]),!0).text,i}});var cF=ye((Z0r,TRe)=>{"use strict";var dZ=Eo(),xRe=hs().BADNUM,TDt=F0(),ADt=Cm(),SDt=z0(),MDt=Dr().isArrayOrTypedArray,bRe=Dr()._;function wRe(e){return e&&typeof e=="string"}TRe.exports=function(t,r){var n=MDt(r.locations),i=n?r.locations.length:r._length,a=new Array(i),o;r.geojson?o=function(h){return wRe(h)||dZ(h)}:o=wRe;for(var s=0;s{"use strict";Tv.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"};Tv.axesNames=["lonaxis","lataxis"];Tv.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};Tv.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};Tv.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}};Tv.clipPad=.001;Tv.precision=.1;Tv.landColor="#F0DC82";Tv.waterColor="#3399FF";Tv.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};Tv.sphereSVG={type:"Sphere"};Tv.fillLayers={ocean:1,land:1,lakes:1};Tv.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};Tv.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];Tv.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];Tv.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var vZ=ye((fF,ARe)=>{(function(e,t){typeof fF=="object"&&typeof ARe!="undefined"?t(fF):(e=e||self,t(e.topojson=e.topojson||{}))})(fF,function(e){"use strict";function t(E){return E}function r(E){if(E==null)return t;var A,L,_=E.scale[0],k=E.scale[1],M=E.translate[0],g=E.translate[1];return function(P,T){T||(A=L=0);var z=2,O=P.length,V=new Array(O);for(V[0]=(A+=P[0])*_+M,V[1]=(L+=P[1])*k+g;zM&&(M=z[0]),z[1]g&&(g=z[1])}function T(z){switch(z.type){case"GeometryCollection":z.geometries.forEach(T);break;case"Point":P(z.coordinates);break;case"MultiPoint":z.coordinates.forEach(P);break}}E.arcs.forEach(function(z){for(var O=-1,V=z.length,G;++OM&&(M=G[0]),G[1]g&&(g=G[1])});for(L in E.objects)T(E.objects[L]);return[_,k,M,g]}function i(E,A){for(var L,_=E.length,k=_-A;k<--_;)L=E[k],E[k++]=E[_],E[_]=L}function a(E,A){return typeof A=="string"&&(A=E.objects[A]),A.type==="GeometryCollection"?{type:"FeatureCollection",features:A.geometries.map(function(L){return o(E,L)})}:o(E,A)}function o(E,A){var L=A.id,_=A.bbox,k=A.properties==null?{}:A.properties,M=s(E,A);return L==null&&_==null?{type:"Feature",properties:k,geometry:M}:_==null?{type:"Feature",id:L,properties:k,geometry:M}:{type:"Feature",id:L,bbox:_,properties:k,geometry:M}}function s(E,A){var L=r(E.transform),_=E.arcs;function k(O,V){V.length&&V.pop();for(var G=_[O<0?~O:O],Z=0,H=G.length;Z1)_=f(E,A,L);else for(k=0,_=new Array(M=E.arcs.length);k1)for(var V=1,G=P(z[0]),Z,H;VG&&(H=z[0],z[0]=z[V],z[V]=H,G=Z);return z}).filter(function(T){return T.length>0})}}function x(E,A){for(var L=0,_=E.length;L<_;){var k=L+_>>>1;E[k]=2))throw new Error("n must be \u22652");T=E.bbox||n(E);var L=T[0],_=T[1],k=T[2],M=T[3],g;A={scale:[k-L?(k-L)/(g-1):1,M-_?(M-_)/(g-1):1],translate:[L,_]}}else T=E.bbox;var P=p(A),T,z,O=E.objects,V={};function G(N){return P(N)}function Z(N){var j;switch(N.type){case"GeometryCollection":j={type:"GeometryCollection",geometries:N.geometries.map(Z)};break;case"Point":j={type:"Point",coordinates:G(N.coordinates)};break;case"MultiPoint":j={type:"MultiPoint",coordinates:N.coordinates.map(G)};break;default:return N}return N.id!=null&&(j.id=N.id),N.bbox!=null&&(j.bbox=N.bbox),N.properties!=null&&(j.properties=N.properties),j}function H(N){var j=0,re=1,oe=N.length,_e,Me=new Array(oe);for(Me[0]=P(N[0],0);++j{"use strict";var pZ=SRe.exports={},EDt=JE().locationmodeToLayer,CDt=vZ().feature;pZ.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};pZ.getTopojsonPath=function(e,t){return e+=e.endsWith("/")?"":"/",`${e}${t}.json`};pZ.getTopojsonFeatures=function(e,t){var r=EDt[e.locationmode],n=t.objects[r];return CDt(t,n).features}});var rx=ye($E=>{"use strict";var kDt=hs().BADNUM;$E.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,n=[],i=[],a=0;a0&&(n.push(i),i=[])}return i.length>0&&n.push(i),n};$E.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};$E.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{MRe.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var pF=ye(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var zp=63710088e-1,mZ={centimeters:zp*100,centimetres:zp*100,degrees:360/(2*Math.PI),feet:zp*3.28084,inches:zp*39.37,kilometers:zp/1e3,kilometres:zp/1e3,meters:zp,metres:zp,miles:zp/1609.344,millimeters:zp*1e3,millimetres:zp*1e3,nauticalmiles:zp/1852,radians:1,yards:zp*1.0936},gZ={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function ix(e,t,r={}){let n={type:"Feature"};return(r.id===0||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=t||{},n.geometry=e,n}function LDt(e,t,r={}){switch(e){case"Point":return yZ(t).geometry;case"LineString":return xZ(t).geometry;case"Polygon":return _Z(t).geometry;case"MultiPoint":return kRe(t).geometry;case"MultiLineString":return CRe(t).geometry;case"MultiPolygon":return LRe(t).geometry;default:throw new Error(e+" is invalid")}}function yZ(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!dF(e[0])||!dF(e[1]))throw new Error("coordinates must contain numbers");return ix({type:"Point",coordinates:e},t,r)}function PDt(e,t,r={}){return vF(e.map(n=>yZ(n,t)),r)}function _Z(e,t,r={}){for(let i of e){if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(i[i.length-1].length!==i[0].length)throw new Error("First and last Position are not equivalent.");for(let a=0;a_Z(n,t)),r)}function xZ(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return ix({type:"LineString",coordinates:e},t,r)}function RDt(e,t,r={}){return vF(e.map(n=>xZ(n,t)),r)}function vF(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function CRe(e,t,r={}){return ix({type:"MultiLineString",coordinates:e},t,r)}function kRe(e,t,r={}){return ix({type:"MultiPoint",coordinates:e},t,r)}function LRe(e,t,r={}){return ix({type:"MultiPolygon",coordinates:e},t,r)}function DDt(e,t,r={}){return ix({type:"GeometryCollection",geometries:e},t,r)}function FDt(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function PRe(e,t="kilometers"){let r=mZ[t];if(!r)throw new Error(t+" units is invalid");return e*r}function bZ(e,t="kilometers"){let r=mZ[t];if(!r)throw new Error(t+" units is invalid");return e/r}function zDt(e,t){return IRe(bZ(e,t))}function ODt(e){let t=e%360;return t<0&&(t+=360),t}function qDt(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function IRe(e){return e%(2*Math.PI)*180/Math.PI}function BDt(e){return e%360*Math.PI/180}function NDt(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return PRe(bZ(e,t),r)}function UDt(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=gZ[t];if(!n)throw new Error("invalid original units");let i=gZ[r];if(!i)throw new Error("invalid final units");return e/n*i}function dF(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function VDt(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function GDt(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!dF(t))throw new Error("bbox must only contain numbers")})}function HDt(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}ic.areaFactors=gZ;ic.azimuthToBearing=qDt;ic.bearingToAzimuth=ODt;ic.convertArea=UDt;ic.convertLength=NDt;ic.degreesToRadians=BDt;ic.earthRadius=zp;ic.factors=mZ;ic.feature=ix;ic.featureCollection=vF;ic.geometry=LDt;ic.geometryCollection=DDt;ic.isNumber=dF;ic.isObject=VDt;ic.lengthToDegrees=zDt;ic.lengthToRadians=bZ;ic.lineString=xZ;ic.lineStrings=RDt;ic.multiLineString=CRe;ic.multiPoint=kRe;ic.multiPolygon=LRe;ic.point=yZ;ic.points=PDt;ic.polygon=_Z;ic.polygons=IDt;ic.radiansToDegrees=IRe;ic.radiansToLength=PRe;ic.round=FDt;ic.validateBBox=GDt;ic.validateId=HDt});var mF=ye(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});var jv=pF();function QE(e,t,r){if(e!==null)for(var n,i,a,o,s,l,u,c=0,f=0,h,d=e.type,v=d==="FeatureCollection",x=d==="Feature",b=v?e.features.length:1,p=0;pl||v>u||x>c){s=f,l=n,u=v,c=x,a=0;return}var b=jv.lineString.call(void 0,[s,f],r.properties);if(t(b,n,i,x,a)===!1)return!1;a++,s=f})===!1)return!1}}})}function JDt(e,t,r){var n=r,i=!1;return FRe(e,function(a,o,s,l,u){i===!1&&r===void 0?n=a:n=t(n,a,o,s,l,u),i=!0}),n}function zRe(e,t){if(!e)throw new Error("geojson is required");gF(e,function(r,n,i){if(r.geometry!==null){var a=r.geometry.type,o=r.geometry.coordinates;switch(a){case"LineString":if(t(r,n,i,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s{"use strict";Object.defineProperty(yF,"__esModule",{value:!0});var ORe=pF(),tFt=mF();function NRe(e){return tFt.geomReduce.call(void 0,e,(t,r)=>t+rFt(r),0)}function rFt(e){let t=0,r;switch(e.type){case"Polygon":return qRe(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(BRe(e[0]));for(let r=1;r=t?(n+2)%t:n+2],s=i[0]*TZ,l=a[1]*TZ,u=o[0]*TZ;r+=(u-s)*Math.sin(l),n++}return r*iFt}var nFt=NRe;yF.area=NRe;yF.default=nFt});var GRe=ye(_F=>{"use strict";Object.defineProperty(_F,"__esModule",{value:!0});var aFt=pF(),oFt=mF();function VRe(e,t={}){let r=0,n=0,i=0;return oFt.coordEach.call(void 0,e,function(a){r+=a[0],n+=a[1],i++},!0),aFt.point.call(void 0,[r/i,n/i],t.properties)}var sFt=VRe;_F.centroid=VRe;_F.default=sFt});var jRe=ye(xF=>{"use strict";Object.defineProperty(xF,"__esModule",{value:!0});var lFt=mF();function HRe(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return lFt.coordEach.call(void 0,e,n=>{r[0]>n[0]&&(r[0]=n[0]),r[1]>n[1]&&(r[1]=n[1]),r[2]{"use strict";var cFt=Oa(),ZRe=ERe(),{area:fFt}=URe(),{centroid:hFt}=GRe(),{bbox:dFt}=jRe(),WRe=BS(),XA=H1(),vFt=gy(),pFt=CS(),bF=TM(),XRe=Object.keys(ZRe),gFt={"ISO-3":WRe,"USA-states":WRe,"country names":mFt};function mFt(e){for(var t=0;t0&&c[f+1][0]<0)return f;return null}switch(n==="RUS"||n==="FJI"?a=function(c){var f;if(u(c)===null)f=c;else for(f=new Array(c.length),l=0;lf?h[d++]=[c[l][0]+360,c[l][1]]:l===f?(h[d++]=c[l],h[d++]=[c[l][0],-90]):h[d++]=c[l];var v=bF.tester(h);v.pts.pop(),i.push(v)}:a=function(c){i.push(bF.tester(c))},t.type){case"MultiPolygon":for(o=0;o0?v.properties.ct=bFt(v):v.properties.ct=[NaN,NaN],h.fIn=c,h.fOut=v,i.push(v)}else XA.log(["Location",h.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete n[f]}switch(r.type){case"FeatureCollection":var l=r.features;for(a=0;ai&&(i=s,r=o)}else r=t;return hFt(r).geometry.coordinates}function wFt(e){var t=window.PlotlyGeoAssets||{},r=[];function n(l){return new Promise(function(u,c){cFt.json(l,function(f,h){if(f){delete t[l];var d=f.status===404?'GeoJSON at URL "'+l+'" does not exist.':"Unexpected error while fetching from "+l;return c(new Error(d))}return t[l]=h,u(h)})})}function i(l){return new Promise(function(u,c){var f=0,h=setInterval(function(){if(t[l]&&t[l]!=="pending")return clearInterval(h),u(t[l]);if(f>100)return clearInterval(h),c("Unexpected error while fetching from "+l);f++},50)})}for(var a=0;a{"use strict";var AFt=Oa(),SFt=So(),JRe=Ca(),$Re=ap(),MFt=$Re.stylePoints,EFt=$Re.styleText;QRe.exports=function(t,r){r&&CFt(t,r)};function CFt(e,t){var r=t[0].trace,n=t[0].node3;n.style("opacity",t[0].trace.opacity),MFt(n,r,e),EFt(n,r,e),n.selectAll("path.js-line").style("fill","none").each(function(i){var a=AFt.select(this),o=i.trace,s=o.line||{};a.call(JRe.stroke,s.color).call(SFt.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call(JRe.fill,o.fillcolor)})}});var CZ=ye((ogr,rDe)=>{"use strict";var eDe=Oa(),TF=Dr(),kFt=hF().getTopojsonFeatures,SZ=rx(),wF=nx(),tDe=wg().findExtremes,EZ=hs().BADNUM,LFt=O0().calcMarkerSize,MZ=Ru(),PFt=AZ();function IFt(e,t,r){var n=t.layers.frontplot.select(".scatterlayer"),i=TF.makeTraceGroups(n,r,"trace scattergeo");function a(o,s){o.lonlat[0]===EZ&&eDe.select(s).remove()}i.selectAll("*").remove(),i.each(function(o){var s=eDe.select(this),l=o[0].trace;if(MZ.hasLines(l)||l.fill!=="none"){var u=SZ.calcTraceToLineCoords(o),c=l.fill!=="none"?SZ.makePolygon(u):SZ.makeLine(u);s.selectAll("path.js-line").data([{geojson:c,trace:l}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}MZ.hasMarkers(l)&&s.selectAll("path.point").data(TF.identity).enter().append("path").classed("point",!0).each(function(f){a(f,this)}),MZ.hasText(l)&&s.selectAll("g").data(TF.identity).enter().append("g").append("text").each(function(f){a(f,this)}),PFt(e,o)})}function RFt(e,t){var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r._length,o,s;if(TF.isArrayOrTypedArray(r.locations)){var l=r.locationmode,u=l==="geojson-id"?wF.extractTraceFeature(e):kFt(r,i.topojson);for(o=0;o{"use strict";var DFt=df(),FFt=hs().BADNUM,zFt=oT(),OFt=Dr().fillText,qFt=G2();iDe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.xa,s=t.ya,l=t.subplot,u=l.projection.isLonLatOverEdges,c=l.project;function f(C){var E=C.lonlat;if(E[0]===FFt||u(E))return 1/0;var A=c(E),L=c([r,n]),_=Math.abs(A[0]-L[0]),k=Math.abs(A[1]-L[1]),M=Math.max(3,C.mrc||0);return Math.max(Math.sqrt(_*_+k*k)-M,1-3/M)}if(DFt.getClosest(i,f,t),t.index!==!1){var h=i[t.index],d=h.lonlat,v=[o.c2p(d),s.c2p(d)],x=h.mrc||1;t.x0=v[0]-x,t.x1=v[0]+x,t.y0=v[1]-x,t.y1=v[1]+x,t.loc=h.loc,t.lon=d[0],t.lat=d[1];var b={};b[a.geo]={_subplot:l};var p=a._module.formatLabels(h,a,b);return t.lonLabel=p.lonLabel,t.latLabel=p.latLabel,t.color=zFt(a,h),t.extraText=BFt(a,h,t,i[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function BFt(e,t,r,n){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i==="all"?qFt.hoverinfo.flags:i.split("+"),o=a.indexOf("location")!==-1&&Array.isArray(e.locations),s=a.indexOf("lon")!==-1,l=a.indexOf("lat")!==-1,u=a.indexOf("text")!==-1,c=[];function f(h){return h+"\xB0"}return o?c.push(t.loc):s&&l?c.push("("+f(r.latLabel)+", "+f(r.lonLabel)+")"):s?c.push(n.lon+f(r.lonLabel)):l&&c.push(n.lat+f(r.latLabel)),u&&OFt(t,e,c),c.join("
")}});var oDe=ye((lgr,aDe)=>{"use strict";aDe.exports=function(t,r,n,i,a){t.lon=r.lon,t.lat=r.lat,t.location=r.loc?r.loc:null;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t}});var uDe=ye((ugr,lDe)=>{"use strict";var sDe=Ru(),NFt=hs().BADNUM;lDe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l,u,c,f,h,d=!sDe.hasMarkers(s)&&!sDe.hasText(s);if(d)return[];if(r===!1)for(h=0;h{(function(e,t){t(typeof AF=="object"&&typeof cDe!="undefined"?AF:e.d3=e.d3||{})})(AF,function(e){"use strict";function t(Le,Ae){return LeAe?1:Le>=Ae?0:NaN}function r(Le){return Le.length===1&&(Le=n(Le)),{left:function(Ae,Fe,Pe,ge){for(Pe==null&&(Pe=0),ge==null&&(ge=Ae.length);Pe>>1;Le(Ae[De],Fe)<0?Pe=De+1:ge=De}return Pe},right:function(Ae,Fe,Pe,ge){for(Pe==null&&(Pe=0),ge==null&&(ge=Ae.length);Pe>>1;Le(Ae[De],Fe)>0?ge=De:Pe=De+1}return Pe}}}function n(Le){return function(Ae,Fe){return t(Le(Ae),Fe)}}var i=r(t),a=i.right,o=i.left;function s(Le,Ae){Ae==null&&(Ae=l);for(var Fe=0,Pe=Le.length-1,ge=Le[0],De=new Array(Pe<0?0:Pe);FeLe?1:Ae>=Le?0:NaN}function f(Le){return Le===null?NaN:+Le}function h(Le,Ae){var Fe=Le.length,Pe=0,ge=-1,De=0,ce,Ze,ut=0;if(Ae==null)for(;++ge1)return ut/(Pe-1)}function d(Le,Ae){var Fe=h(Le,Ae);return Fe&&Math.sqrt(Fe)}function v(Le,Ae){var Fe=Le.length,Pe=-1,ge,De,ce;if(Ae==null){for(;++Pe=ge)for(De=ce=ge;++Pege&&(De=ge),ce=ge)for(De=ce=ge;++Pege&&(De=ge),ce0)return[Le];if((Pe=Ae0)for(Le=Math.ceil(Le/Ze),Ae=Math.floor(Ae/Ze),ce=new Array(De=Math.ceil(Ae-Le+1));++ge=0?(De>=L?10:De>=_?5:De>=k?2:1)*Math.pow(10,ge):-Math.pow(10,-ge)/(De>=L?10:De>=_?5:De>=k?2:1)}function P(Le,Ae,Fe){var Pe=Math.abs(Ae-Le)/Math.max(0,Fe),ge=Math.pow(10,Math.floor(Math.log(Pe)/Math.LN10)),De=Pe/ge;return De>=L?ge*=10:De>=_?ge*=5:De>=k&&(ge*=2),Aest;)lt.pop(),--Gt;var Ut=new Array(Gt+1),$t;for(De=0;De<=Gt;++De)$t=Ut[De]=[],$t.x0=De>0?lt[De-1]:Kt,$t.x1=De=1)return+Fe(Le[Pe-1],Pe-1,Le);var Pe,ge=(Pe-1)*Ae,De=Math.floor(ge),ce=+Fe(Le[De],De,Le),Ze=+Fe(Le[De+1],De+1,Le);return ce+(Ze-ce)*(ge-De)}}function V(Le,Ae,Fe){return Le=p.call(Le,f).sort(t),Math.ceil((Fe-Ae)/(2*(O(Le,.75)-O(Le,.25))*Math.pow(Le.length,-1/3)))}function G(Le,Ae,Fe){return Math.ceil((Fe-Ae)/(3.5*d(Le)*Math.pow(Le.length,-1/3)))}function Z(Le,Ae){var Fe=Le.length,Pe=-1,ge,De;if(Ae==null){for(;++Pe=ge)for(De=ge;++PeDe&&(De=ge)}else for(;++Pe=ge)for(De=ge;++PeDe&&(De=ge);return De}function H(Le,Ae){var Fe=Le.length,Pe=Fe,ge=-1,De,ce=0;if(Ae==null)for(;++ge=0;)for(ce=Le[Ae],Fe=ce.length;--Fe>=0;)De[--ge]=ce[Fe];return De}function re(Le,Ae){var Fe=Le.length,Pe=-1,ge,De;if(Ae==null){for(;++Pe=ge)for(De=ge;++Pege&&(De=ge)}else for(;++Pe=ge)for(De=ge;++Pege&&(De=ge);return De}function oe(Le,Ae){for(var Fe=Ae.length,Pe=new Array(Fe);Fe--;)Pe[Fe]=Le[Ae[Fe]];return Pe}function _e(Le,Ae){if(Fe=Le.length){var Fe,Pe=0,ge=0,De,ce=Le[ge];for(Ae==null&&(Ae=t);++Pe{(function(e,t){typeof SF=="object"&&typeof fDe!="undefined"?t(SF,eC()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(SF,function(e,t){"use strict";function r(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(Tt){a(i,Tt,this.t),a(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new n;function a(Tt,Xt,Lr){var Ar=Tt.s=Xt+Lr,Jr=Ar-Xt,Ei=Ar-Jr;Tt.t=Xt-Ei+(Lr-Jr)}var o=1e-6,s=1e-12,l=Math.PI,u=l/2,c=l/4,f=l*2,h=180/l,d=l/180,v=Math.abs,x=Math.atan,b=Math.atan2,p=Math.cos,C=Math.ceil,E=Math.exp,A=Math.log,L=Math.pow,_=Math.sin,k=Math.sign||function(Tt){return Tt>0?1:Tt<0?-1:0},M=Math.sqrt,g=Math.tan;function P(Tt){return Tt>1?0:Tt<-1?l:Math.acos(Tt)}function T(Tt){return Tt>1?u:Tt<-1?-u:Math.asin(Tt)}function z(Tt){return(Tt=_(Tt/2))*Tt}function O(){}function V(Tt,Xt){Tt&&Z.hasOwnProperty(Tt.type)&&Z[Tt.type](Tt,Xt)}var G={Feature:function(Tt,Xt){V(Tt.geometry,Xt)},FeatureCollection:function(Tt,Xt){for(var Lr=Tt.features,Ar=-1,Jr=Lr.length;++Ar=0?1:-1,Jr=Ar*Lr,Ei=p(Xt),Wi=_(Xt),hn=ie*Wi,Tn=me*Ei+hn*p(Jr),Bn=hn*Ar*_(Jr);re.add(b(Bn,Tn)),ke=Tt,me=Ei,ie=Wi}function ge(Tt){return oe.reset(),j(Tt,Se),oe*2}function De(Tt){return[b(Tt[1],Tt[0]),T(Tt[2])]}function ce(Tt){var Xt=Tt[0],Lr=Tt[1],Ar=p(Lr);return[Ar*p(Xt),Ar*_(Xt),_(Lr)]}function Ze(Tt,Xt){return Tt[0]*Xt[0]+Tt[1]*Xt[1]+Tt[2]*Xt[2]}function ut(Tt,Xt){return[Tt[1]*Xt[2]-Tt[2]*Xt[1],Tt[2]*Xt[0]-Tt[0]*Xt[2],Tt[0]*Xt[1]-Tt[1]*Xt[0]]}function gt(Tt,Xt){Tt[0]+=Xt[0],Tt[1]+=Xt[1],Tt[2]+=Xt[2]}function Kt(Tt,Xt){return[Tt[0]*Xt,Tt[1]*Xt,Tt[2]*Xt]}function st(Tt){var Xt=M(Tt[0]*Tt[0]+Tt[1]*Tt[1]+Tt[2]*Tt[2]);Tt[0]/=Xt,Tt[1]/=Xt,Tt[2]/=Xt}var lt,Gt,Ut,$t,sr,Tr,ur,$e,Mt=r(),Ct,Vt,It={point:Ot,lineStart:rr,lineEnd:lr,polygonStart:function(){It.point=wr,It.lineStart=Cr,It.lineEnd=Kr,Mt.reset(),Se.polygonStart()},polygonEnd:function(){Se.polygonEnd(),It.point=Ot,It.lineStart=rr,It.lineEnd=lr,re<0?(lt=-(Ut=180),Gt=-($t=90)):Mt>o?$t=90:Mt<-o&&(Gt=-90),Vt[0]=lt,Vt[1]=Ut},sphere:function(){lt=-(Ut=180),Gt=-($t=90)}};function Ot(Tt,Xt){Ct.push(Vt=[lt=Tt,Ut=Tt]),Xt$t&&($t=Xt)}function bt(Tt,Xt){var Lr=ce([Tt*d,Xt*d]);if($e){var Ar=ut($e,Lr),Jr=[Ar[1],-Ar[0],0],Ei=ut(Jr,Ar);st(Ei),Ei=De(Ei);var Wi=Tt-sr,hn=Wi>0?1:-1,Tn=Ei[0]*h*hn,Bn,Zi=v(Wi)>180;Zi^(hn*sr$t&&($t=Bn)):(Tn=(Tn+360)%360-180,Zi^(hn*sr$t&&($t=Xt))),Zi?TtGr(lt,Ut)&&(Ut=Tt):Gr(Tt,Ut)>Gr(lt,Ut)&&(lt=Tt):Ut>=lt?(TtUt&&(Ut=Tt)):Tt>sr?Gr(lt,Tt)>Gr(lt,Ut)&&(Ut=Tt):Gr(Tt,Ut)>Gr(lt,Ut)&&(lt=Tt)}else Ct.push(Vt=[lt=Tt,Ut=Tt]);Xt$t&&($t=Xt),$e=Lr,sr=Tt}function rr(){It.point=bt}function lr(){Vt[0]=lt,Vt[1]=Ut,It.point=Ot,$e=null}function wr(Tt,Xt){if($e){var Lr=Tt-sr;Mt.add(v(Lr)>180?Lr+(Lr>0?360:-360):Lr)}else Tr=Tt,ur=Xt;Se.point(Tt,Xt),bt(Tt,Xt)}function Cr(){Se.lineStart()}function Kr(){wr(Tr,ur),Se.lineEnd(),v(Mt)>o&&(lt=-(Ut=180)),Vt[0]=lt,Vt[1]=Ut,$e=null}function Gr(Tt,Xt){return(Xt-=Tt)<0?Xt+360:Xt}function Yr(Tt,Xt){return Tt[0]-Xt[0]}function dt(Tt,Xt){return Tt[0]<=Tt[1]?Tt[0]<=Xt&&Xt<=Tt[1]:XtGr(Ar[0],Ar[1])&&(Ar[1]=Jr[1]),Gr(Jr[0],Ar[1])>Gr(Ar[0],Ar[1])&&(Ar[0]=Jr[0])):Ei.push(Ar=Jr);for(Wi=-1/0,Lr=Ei.length-1,Xt=0,Ar=Ei[Lr];Xt<=Lr;Ar=Jr,++Xt)Jr=Ei[Xt],(hn=Gr(Ar[1],Jr[0]))>Wi&&(Wi=hn,lt=Jr[0],Ut=Ar[1])}return Ct=Vt=null,lt===1/0||Gt===1/0?[[NaN,NaN],[NaN,NaN]]:[[lt,Gt],[Ut,$t]]}var Qe,je,Je,xt,Ie,xe,Ce,pt,nr,ir,vr,si,mi,ei,vi,ji,Rn={sphere:O,point:wn,lineStart:Vn,lineEnd:ua,polygonStart:function(){Rn.lineStart=Ht,Rn.lineEnd=yt},polygonEnd:function(){Rn.lineStart=Vn,Rn.lineEnd=ua}};function wn(Tt,Xt){Tt*=d,Xt*=d;var Lr=p(Xt);pn(Lr*p(Tt),Lr*_(Tt),_(Xt))}function pn(Tt,Xt,Lr){++Qe,Je+=(Tt-Je)/Qe,xt+=(Xt-xt)/Qe,Ie+=(Lr-Ie)/Qe}function Vn(){Rn.point=kn}function kn(Tt,Xt){Tt*=d,Xt*=d;var Lr=p(Xt);ei=Lr*p(Tt),vi=Lr*_(Tt),ji=_(Xt),Rn.point=ea,pn(ei,vi,ji)}function ea(Tt,Xt){Tt*=d,Xt*=d;var Lr=p(Xt),Ar=Lr*p(Tt),Jr=Lr*_(Tt),Ei=_(Xt),Wi=b(M((Wi=vi*Ei-ji*Jr)*Wi+(Wi=ji*Ar-ei*Ei)*Wi+(Wi=ei*Jr-vi*Ar)*Wi),ei*Ar+vi*Jr+ji*Ei);je+=Wi,xe+=Wi*(ei+(ei=Ar)),Ce+=Wi*(vi+(vi=Jr)),pt+=Wi*(ji+(ji=Ei)),pn(ei,vi,ji)}function ua(){Rn.point=wn}function Ht(){Rn.point=er}function yt(){ar(si,mi),Rn.point=wn}function er(Tt,Xt){si=Tt,mi=Xt,Tt*=d,Xt*=d,Rn.point=ar;var Lr=p(Xt);ei=Lr*p(Tt),vi=Lr*_(Tt),ji=_(Xt),pn(ei,vi,ji)}function ar(Tt,Xt){Tt*=d,Xt*=d;var Lr=p(Xt),Ar=Lr*p(Tt),Jr=Lr*_(Tt),Ei=_(Xt),Wi=vi*Ei-ji*Jr,hn=ji*Ar-ei*Ei,Tn=ei*Jr-vi*Ar,Bn=M(Wi*Wi+hn*hn+Tn*Tn),Zi=T(Bn),$i=Bn&&-Zi/Bn;nr+=$i*Wi,ir+=$i*hn,vr+=$i*Tn,je+=Zi,xe+=Zi*(ei+(ei=Ar)),Ce+=Zi*(vi+(vi=Jr)),pt+=Zi*(ji+(ji=Ei)),pn(ei,vi,ji)}function Er(Tt){Qe=je=Je=xt=Ie=xe=Ce=pt=nr=ir=vr=0,j(Tt,Rn);var Xt=nr,Lr=ir,Ar=vr,Jr=Xt*Xt+Lr*Lr+Ar*Ar;return Jrl?Tt+Math.round(-Tt/f)*f:Tt,Xt]}$r.invert=$r;function zi(Tt,Xt,Lr){return(Tt%=f)?Xt||Lr?ri(en(Tt),cn(Xt,Lr)):en(Tt):Xt||Lr?cn(Xt,Lr):$r}function Ji(Tt){return function(Xt,Lr){return Xt+=Tt,[Xt>l?Xt-f:Xt<-l?Xt+f:Xt,Lr]}}function en(Tt){var Xt=Ji(Tt);return Xt.invert=Ji(-Tt),Xt}function cn(Tt,Xt){var Lr=p(Tt),Ar=_(Tt),Jr=p(Xt),Ei=_(Xt);function Wi(hn,Tn){var Bn=p(Tn),Zi=p(hn)*Bn,$i=_(hn)*Bn,an=_(Tn),Di=an*Lr+Zi*Ar;return[b($i*Jr-Di*Ei,Zi*Lr-an*Ar),T(Di*Jr+$i*Ei)]}return Wi.invert=function(hn,Tn){var Bn=p(Tn),Zi=p(hn)*Bn,$i=_(hn)*Bn,an=_(Tn),Di=an*Jr-$i*Ei;return[b($i*Jr+an*Ei,Zi*Lr+Di*Ar),T(Di*Lr-Zi*Ar)]},Wi}function yn(Tt){Tt=zi(Tt[0]*d,Tt[1]*d,Tt.length>2?Tt[2]*d:0);function Xt(Lr){return Lr=Tt(Lr[0]*d,Lr[1]*d),Lr[0]*=h,Lr[1]*=h,Lr}return Xt.invert=function(Lr){return Lr=Tt.invert(Lr[0]*d,Lr[1]*d),Lr[0]*=h,Lr[1]*=h,Lr},Xt}function Mn(Tt,Xt,Lr,Ar,Jr,Ei){if(Lr){var Wi=p(Xt),hn=_(Xt),Tn=Ar*Lr;Jr==null?(Jr=Xt+Ar*f,Ei=Xt-Tn/2):(Jr=Ba(Wi,Jr),Ei=Ba(Wi,Ei),(Ar>0?JrEi)&&(Jr+=Ar*f));for(var Bn,Zi=Jr;Ar>0?Zi>Ei:Zi1&&Tt.push(Tt.pop().concat(Tt.shift()))},result:function(){var Lr=Tt;return Tt=[],Xt=null,Lr}}}function Wa(Tt,Xt){return v(Tt[0]-Xt[0])=0;--hn)Jr.point(($i=Zi[hn])[0],$i[1]);else Ar(an.x,an.p.x,-1,Jr);an=an.p}an=an.o,Zi=an.z,Di=!Di}while(!an.v);Jr.lineEnd()}}}function da(Tt){if(Xt=Tt.length){for(var Xt,Lr=0,Ar=Tt[0],Jr;++Lr=0?1:-1,os=Ms*Xo,Ts=os>l,Ho=ka*Ka;if(Wn.add(b(Ho*Ms*_(os),Ra*bo+Ho*p(os))),Wi+=Ts?Xo+Ms*f:Xo,Ts^Di>=Lr^Yn>=Lr){var yl=ut(ce(an),ce(Na));st(yl);var Xs=ut(Ei,yl);st(Xs);var Ps=(Ts^Xo>=0?-1:1)*T(Xs[2]);(Ar>Ps||Ar===Ps&&(yl[0]||yl[1]))&&(hn+=Ts^Xo>=0?1:-1)}}return(Wi<-o||Wi0){for(Tn||(Jr.polygonStart(),Tn=!0),Jr.lineStart(),bo=0;bo1&&zn&2&&Ka.push(Ka.pop().concat(Ka.shift())),Zi.push(Ka.filter(At))}}return an}}function At(Tt){return Tt.length>1}function kr(Tt,Xt){return((Tt=Tt.x)[0]<0?Tt[1]-u-o:u-Tt[1])-((Xt=Xt.x)[0]<0?Xt[1]-u-o:u-Xt[1])}var Qr=jn(function(){return!0},di,Sn,[-l,-u]);function di(Tt){var Xt=NaN,Lr=NaN,Ar=NaN,Jr;return{lineStart:function(){Tt.lineStart(),Jr=1},point:function(Ei,Wi){var hn=Ei>0?l:-l,Tn=v(Ei-Xt);v(Tn-l)0?u:-u),Tt.point(Ar,Lr),Tt.lineEnd(),Tt.lineStart(),Tt.point(hn,Lr),Tt.point(Ei,Lr),Jr=0):Ar!==hn&&Tn>=l&&(v(Xt-Ar)o?x((_(Xt)*(Ei=p(Ar))*_(Lr)-_(Ar)*(Jr=p(Xt))*_(Tt))/(Jr*Ei*Wi)):(Xt+Ar)/2}function Sn(Tt,Xt,Lr,Ar){var Jr;if(Tt==null)Jr=Lr*u,Ar.point(-l,Jr),Ar.point(0,Jr),Ar.point(l,Jr),Ar.point(l,0),Ar.point(l,-Jr),Ar.point(0,-Jr),Ar.point(-l,-Jr),Ar.point(-l,0),Ar.point(-l,Jr);else if(v(Tt[0]-Xt[0])>o){var Ei=Tt[0]0,Jr=v(Xt)>o;function Ei(Zi,$i,an,Di){Mn(Di,Tt,Lr,an,Zi,$i)}function Wi(Zi,$i){return p(Zi)*p($i)>Xt}function hn(Zi){var $i,an,Di,$n,ka;return{lineStart:function(){$n=Di=!1,ka=1},point:function(Ra,La){var Na=[Ra,La],Yn,zn=Wi(Ra,La),Ka=Ar?zn?0:Bn(Ra,La):zn?Bn(Ra+(Ra<0?l:-l),La):0;if(!$i&&($n=Di=zn)&&Zi.lineStart(),zn!==Di&&(Yn=Tn($i,Na),(!Yn||Wa($i,Yn)||Wa(Na,Yn))&&(Na[2]=1)),zn!==Di)ka=0,zn?(Zi.lineStart(),Yn=Tn(Na,$i),Zi.point(Yn[0],Yn[1])):(Yn=Tn($i,Na),Zi.point(Yn[0],Yn[1],2),Zi.lineEnd()),$i=Yn;else if(Jr&&$i&&Ar^zn){var bo;!(Ka&an)&&(bo=Tn(Na,$i,!0))&&(ka=0,Ar?(Zi.lineStart(),Zi.point(bo[0][0],bo[0][1]),Zi.point(bo[1][0],bo[1][1]),Zi.lineEnd()):(Zi.point(bo[1][0],bo[1][1]),Zi.lineEnd(),Zi.lineStart(),Zi.point(bo[0][0],bo[0][1],3)))}zn&&(!$i||!Wa($i,Na))&&Zi.point(Na[0],Na[1]),$i=Na,Di=zn,an=Ka},lineEnd:function(){Di&&Zi.lineEnd(),$i=null},clean:function(){return ka|($n&&Di)<<1}}}function Tn(Zi,$i,an){var Di=ce(Zi),$n=ce($i),ka=[1,0,0],Ra=ut(Di,$n),La=Ze(Ra,Ra),Na=Ra[0],Yn=La-Na*Na;if(!Yn)return!an&&Zi;var zn=Xt*La/Yn,Ka=-Xt*Na/Yn,bo=ut(ka,Ra),Xo=Kt(ka,zn),Ms=Kt(Ra,Ka);gt(Xo,Ms);var os=bo,Ts=Ze(Xo,os),Ho=Ze(os,os),yl=Ts*Ts-Ho*(Ze(Xo,Xo)-1);if(!(yl<0)){var Xs=M(yl),Ps=Kt(os,(-Ts-Xs)/Ho);if(gt(Ps,Xo),Ps=De(Ps),!an)return Ps;var va=Zi[0],no=$i[0],_s=Zi[1],is=$i[1],$l;no0^Ps[1]<(v(Ps[0]-va)l^(va<=Ps[0]&&Ps[0]<=no)){var gu=Kt(os,(-Ts+Xs)/Ho);return gt(gu,Xo),[Ps,De(gu)]}}}function Bn(Zi,$i){var an=Ar?Tt:l-Tt,Di=0;return Zi<-an?Di|=1:Zi>an&&(Di|=2),$i<-an?Di|=4:$i>an&&(Di|=8),Di}return jn(Wi,hn,Ei,Ar?[0,-Tt]:[-l,Tt-l])}function ki(Tt,Xt,Lr,Ar,Jr,Ei){var Wi=Tt[0],hn=Tt[1],Tn=Xt[0],Bn=Xt[1],Zi=0,$i=1,an=Tn-Wi,Di=Bn-hn,$n;if($n=Lr-Wi,!(!an&&$n>0)){if($n/=an,an<0){if($n0){if($n>$i)return;$n>Zi&&(Zi=$n)}if($n=Jr-Wi,!(!an&&$n<0)){if($n/=an,an<0){if($n>$i)return;$n>Zi&&(Zi=$n)}else if(an>0){if($n0)){if($n/=Di,Di<0){if($n0){if($n>$i)return;$n>Zi&&(Zi=$n)}if($n=Ei-hn,!(!Di&&$n<0)){if($n/=Di,Di<0){if($n>$i)return;$n>Zi&&(Zi=$n)}else if(Di>0){if($n0&&(Tt[0]=Wi+Zi*an,Tt[1]=hn+Zi*Di),$i<1&&(Xt[0]=Wi+$i*an,Xt[1]=hn+$i*Di),!0}}}}}var _n=1e9,ya=-_n;function Jn(Tt,Xt,Lr,Ar){function Jr(Bn,Zi){return Tt<=Bn&&Bn<=Lr&&Xt<=Zi&&Zi<=Ar}function Ei(Bn,Zi,$i,an){var Di=0,$n=0;if(Bn==null||(Di=Wi(Bn,$i))!==($n=Wi(Zi,$i))||Tn(Bn,Zi)<0^$i>0)do an.point(Di===0||Di===3?Tt:Lr,Di>1?Ar:Xt);while((Di=(Di+$i+4)%4)!==$n);else an.point(Zi[0],Zi[1])}function Wi(Bn,Zi){return v(Bn[0]-Tt)0?0:3:v(Bn[0]-Lr)0?2:1:v(Bn[1]-Xt)0?1:0:Zi>0?3:2}function hn(Bn,Zi){return Tn(Bn.x,Zi.x)}function Tn(Bn,Zi){var $i=Wi(Bn,1),an=Wi(Zi,1);return $i!==an?$i-an:$i===0?Zi[1]-Bn[1]:$i===1?Bn[0]-Zi[0]:$i===2?Bn[1]-Zi[1]:Zi[0]-Bn[0]}return function(Bn){var Zi=Bn,$i=ma(),an,Di,$n,ka,Ra,La,Na,Yn,zn,Ka,bo,Xo={point:Ms,lineStart:yl,lineEnd:Xs,polygonStart:Ts,polygonEnd:Ho};function Ms(va,no){Jr(va,no)&&Zi.point(va,no)}function os(){for(var va=0,no=0,_s=Di.length;no<_s;++no)for(var is=Di[no],$l=1,ku=is.length,Yu=is[0],Nc,gu,Uc=Yu[0],xu=Yu[1];$lAr&&(Uc-Nc)*(Ar-gu)>(xu-gu)*(Tt-Nc)&&++va:xu<=Ar&&(Uc-Nc)*(Ar-gu)<(xu-gu)*(Tt-Nc)&&--va;return va}function Ts(){Zi=$i,an=[],Di=[],bo=!0}function Ho(){var va=os(),no=bo&&va,_s=(an=t.merge(an)).length;(no||_s)&&(Bn.polygonStart(),no&&(Bn.lineStart(),Ei(null,null,1,Bn),Bn.lineEnd()),_s&&Wo(an,hn,va,Ei,Bn),Bn.polygonEnd()),Zi=Bn,an=Di=$n=null}function yl(){Xo.point=Ps,Di&&Di.push($n=[]),Ka=!0,zn=!1,Na=Yn=NaN}function Xs(){an&&(Ps(ka,Ra),La&&zn&&$i.rejoin(),an.push($i.result())),Xo.point=Ms,zn&&Zi.lineEnd()}function Ps(va,no){var _s=Jr(va,no);if(Di&&$n.push([va,no]),Ka)ka=va,Ra=no,La=_s,Ka=!1,_s&&(Zi.lineStart(),Zi.point(va,no));else if(_s&&zn)Zi.point(va,no);else{var is=[Na=Math.max(ya,Math.min(_n,Na)),Yn=Math.max(ya,Math.min(_n,Yn))],$l=[va=Math.max(ya,Math.min(_n,va)),no=Math.max(ya,Math.min(_n,no))];ki(is,$l,Tt,Xt,Lr,Ar)?(zn||(Zi.lineStart(),Zi.point(is[0],is[1])),Zi.point($l[0],$l[1]),_s||Zi.lineEnd(),bo=!1):_s&&(Zi.lineStart(),Zi.point(va,no),bo=!1)}Na=va,Yn=no,zn=_s}return Xo}}function Ma(){var Tt=0,Xt=0,Lr=960,Ar=500,Jr,Ei,Wi;return Wi={stream:function(hn){return Jr&&Ei===hn?Jr:Jr=Jn(Tt,Xt,Lr,Ar)(Ei=hn)},extent:function(hn){return arguments.length?(Tt=+hn[0][0],Xt=+hn[0][1],Lr=+hn[1][0],Ar=+hn[1][1],Jr=Ei=null,Wi):[[Tt,Xt],[Lr,Ar]]}}}var _o=r(),No,po,Lo,Co={sphere:O,point:O,lineStart:Fs,lineEnd:O,polygonStart:O,polygonEnd:O};function Fs(){Co.point=ul,Co.lineEnd=zs}function zs(){Co.point=Co.lineEnd=O}function ul(Tt,Xt){Tt*=d,Xt*=d,No=Tt,po=_(Xt),Lo=p(Xt),Co.point=cl}function cl(Tt,Xt){Tt*=d,Xt*=d;var Lr=_(Xt),Ar=p(Xt),Jr=v(Tt-No),Ei=p(Jr),Wi=_(Jr),hn=Ar*Wi,Tn=Lo*Lr-po*Ar*Ei,Bn=po*Lr+Lo*Ar*Ei;_o.add(b(M(hn*hn+Tn*Tn),Bn)),No=Tt,po=Lr,Lo=Ar}function Fl(Tt){return _o.reset(),j(Tt,Co),+_o}var cs=[null,null],nl={type:"LineString",coordinates:cs};function Ss(Tt,Xt){return cs[0]=Tt,cs[1]=Xt,Fl(nl)}var fl={Feature:function(Tt,Xt){return Os(Tt.geometry,Xt)},FeatureCollection:function(Tt,Xt){for(var Lr=Tt.features,Ar=-1,Jr=Lr.length;++Ar0&&(Jr=Ss(Tt[Ei],Tt[Ei-1]),Jr>0&&Lr<=Jr&&Ar<=Jr&&(Lr+Ar-Jr)*(1-Math.pow((Lr-Ar)/Jr,2))o}).map(an)).concat(t.range(C(Ei/Bn)*Bn,Jr,Bn).filter(function(Yn){return v(Yn%$i)>o}).map(Di))}return La.lines=function(){return Na().map(function(Yn){return{type:"LineString",coordinates:Yn}})},La.outline=function(){return{type:"Polygon",coordinates:[$n(Ar).concat(ka(Wi).slice(1),$n(Lr).reverse().slice(1),ka(hn).reverse().slice(1))]}},La.extent=function(Yn){return arguments.length?La.extentMajor(Yn).extentMinor(Yn):La.extentMinor()},La.extentMajor=function(Yn){return arguments.length?(Ar=+Yn[0][0],Lr=+Yn[1][0],hn=+Yn[0][1],Wi=+Yn[1][1],Ar>Lr&&(Yn=Ar,Ar=Lr,Lr=Yn),hn>Wi&&(Yn=hn,hn=Wi,Wi=Yn),La.precision(Ra)):[[Ar,hn],[Lr,Wi]]},La.extentMinor=function(Yn){return arguments.length?(Xt=+Yn[0][0],Tt=+Yn[1][0],Ei=+Yn[0][1],Jr=+Yn[1][1],Xt>Tt&&(Yn=Xt,Xt=Tt,Tt=Yn),Ei>Jr&&(Yn=Ei,Ei=Jr,Jr=Yn),La.precision(Ra)):[[Xt,Ei],[Tt,Jr]]},La.step=function(Yn){return arguments.length?La.stepMajor(Yn).stepMinor(Yn):La.stepMinor()},La.stepMajor=function(Yn){return arguments.length?(Zi=+Yn[0],$i=+Yn[1],La):[Zi,$i]},La.stepMinor=function(Yn){return arguments.length?(Tn=+Yn[0],Bn=+Yn[1],La):[Tn,Bn]},La.precision=function(Yn){return arguments.length?(Ra=+Yn,an=Fn(Ei,Jr,90),Di=_a(Xt,Tt,Ra),$n=Fn(hn,Wi,90),ka=_a(Ar,Lr,Ra),La):Ra},La.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function zl(){return Vu()()}function xo(Tt,Xt){var Lr=Tt[0]*d,Ar=Tt[1]*d,Jr=Xt[0]*d,Ei=Xt[1]*d,Wi=p(Ar),hn=_(Ar),Tn=p(Ei),Bn=_(Ei),Zi=Wi*p(Lr),$i=Wi*_(Lr),an=Tn*p(Jr),Di=Tn*_(Jr),$n=2*T(M(z(Ei-Ar)+Wi*Tn*z(Jr-Lr))),ka=_($n),Ra=$n?function(La){var Na=_(La*=$n)/ka,Yn=_($n-La)/ka,zn=Yn*Zi+Na*an,Ka=Yn*$i+Na*Di,bo=Yn*hn+Na*Bn;return[b(Ka,zn)*h,b(bo,M(zn*zn+Ka*Ka))*h]}:function(){return[Lr*h,Ar*h]};return Ra.distance=$n,Ra}function Yl(Tt){return Tt}var Us=r(),Hl=r(),ac,aa,Oo,qo,Ol={point:O,lineStart:O,lineEnd:O,polygonStart:function(){Ol.lineStart=Pc,Ol.lineEnd=Nf},polygonEnd:function(){Ol.lineStart=Ol.lineEnd=Ol.point=O,Us.add(v(Hl)),Hl.reset()},result:function(){var Tt=Us/2;return Us.reset(),Tt}};function Pc(){Ol.point=Do}function Do(Tt,Xt){Ol.point=tf,ac=Oo=Tt,aa=qo=Xt}function tf(Tt,Xt){Hl.add(qo*Tt-Oo*Xt),Oo=Tt,qo=Xt}function Nf(){tf(ac,aa)}var ml=1/0,Zc=ml,Kl=-ml,qs=Kl,yu={point:oc,lineStart:O,lineEnd:O,polygonStart:O,polygonEnd:O,result:function(){var Tt=[[ml,Zc],[Kl,qs]];return Kl=qs=-(Zc=ml=1/0),Tt}};function oc(Tt,Xt){TtKl&&(Kl=Tt),Xtqs&&(qs=Xt)}var Cf=0,sc=0,Nh=0,kf=0,fs=0,rf=0,Uf=0,Jl=0,hl=0,lc,Fu,Cs,js,Go={point:gs,lineStart:uc,lineEnd:Bs,polygonStart:function(){Go.lineStart=ad,Go.lineEnd=Po},polygonEnd:function(){Go.point=gs,Go.lineStart=uc,Go.lineEnd=Bs},result:function(){var Tt=hl?[Uf/hl,Jl/hl]:rf?[kf/rf,fs/rf]:Nh?[Cf/Nh,sc/Nh]:[NaN,NaN];return Cf=sc=Nh=kf=fs=rf=Uf=Jl=hl=0,Tt}};function gs(Tt,Xt){Cf+=Tt,sc+=Xt,++Nh}function uc(){Go.point=xl}function xl(Tt,Xt){Go.point=Gu,gs(Cs=Tt,js=Xt)}function Gu(Tt,Xt){var Lr=Tt-Cs,Ar=Xt-js,Jr=M(Lr*Lr+Ar*Ar);kf+=Jr*(Cs+Tt)/2,fs+=Jr*(js+Xt)/2,rf+=Jr,gs(Cs=Tt,js=Xt)}function Bs(){Go.point=gs}function ad(){Go.point=od}function Po(){Yo(lc,Fu)}function od(Tt,Xt){Go.point=Yo,gs(lc=Cs=Tt,Fu=js=Xt)}function Yo(Tt,Xt){var Lr=Tt-Cs,Ar=Xt-js,Jr=M(Lr*Lr+Ar*Ar);kf+=Jr*(Cs+Tt)/2,fs+=Jr*(js+Xt)/2,rf+=Jr,Jr=js*Tt-Cs*Xt,Uf+=Jr*(Cs+Tt),Jl+=Jr*(js+Xt),hl+=Jr*3,gs(Cs=Tt,js=Xt)}function Pa(Tt){this._context=Tt}Pa.prototype={_radius:4.5,pointRadius:function(Tt){return this._radius=Tt,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(Tt,Xt){switch(this._point){case 0:{this._context.moveTo(Tt,Xt),this._point=1;break}case 1:{this._context.lineTo(Tt,Xt);break}default:{this._context.moveTo(Tt+this._radius,Xt),this._context.arc(Tt,Xt,this._radius,0,f);break}}},result:O};var nf=r(),Hu,bl,Vf,Ic,gf,ql={point:O,lineStart:function(){ql.point=_h},lineEnd:function(){Hu&&Qf(bl,Vf),ql.point=O},polygonStart:function(){Hu=!0},polygonEnd:function(){Hu=null},result:function(){var Tt=+nf;return nf.reset(),Tt}};function _h(Tt,Xt){ql.point=Qf,bl=Ic=Tt,Vf=gf=Xt}function Qf(Tt,Xt){Ic-=Tt,gf-=Xt,nf.add(M(Ic*Ic+gf*gf)),Ic=Tt,gf=Xt}function mf(){this._string=[]}mf.prototype={_radius:4.5,_circle:Yc(4.5),pointRadius:function(Tt){return(Tt=+Tt)!==this._radius&&(this._radius=Tt,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(Tt,Xt){switch(this._point){case 0:{this._string.push("M",Tt,",",Xt),this._point=1;break}case 1:{this._string.push("L",Tt,",",Xt);break}default:{this._circle==null&&(this._circle=Yc(this._radius)),this._string.push("M",Tt,",",Xt,this._circle);break}}},result:function(){if(this._string.length){var Tt=this._string.join("");return this._string=[],Tt}else return null}};function Yc(Tt){return"m0,"+Tt+"a"+Tt+","+Tt+" 0 1,1 0,"+-2*Tt+"a"+Tt+","+Tt+" 0 1,1 0,"+2*Tt+"z"}function eh(Tt,Xt){var Lr=4.5,Ar,Jr;function Ei(Wi){return Wi&&(typeof Lr=="function"&&Jr.pointRadius(+Lr.apply(this,arguments)),j(Wi,Ar(Jr))),Jr.result()}return Ei.area=function(Wi){return j(Wi,Ar(Ol)),Ol.result()},Ei.measure=function(Wi){return j(Wi,Ar(ql)),ql.result()},Ei.bounds=function(Wi){return j(Wi,Ar(yu)),yu.result()},Ei.centroid=function(Wi){return j(Wi,Ar(Go)),Go.result()},Ei.projection=function(Wi){return arguments.length?(Ar=Wi==null?(Tt=null,Yl):(Tt=Wi).stream,Ei):Tt},Ei.context=function(Wi){return arguments.length?(Jr=Wi==null?(Xt=null,new mf):new Pa(Xt=Wi),typeof Lr!="function"&&Jr.pointRadius(Lr),Ei):Xt},Ei.pointRadius=function(Wi){return arguments.length?(Lr=typeof Wi=="function"?Wi:(Jr.pointRadius(+Wi),+Wi),Ei):Lr},Ei.projection(Tt).context(Xt)}function th(Tt){return{stream:ju(Tt)}}function ju(Tt){return function(Xt){var Lr=new Gf;for(var Ar in Tt)Lr[Ar]=Tt[Ar];return Lr.stream=Xt,Lr}}function Gf(){}Gf.prototype={constructor:Gf,point:function(Tt,Xt){this.stream.point(Tt,Xt)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function cc(Tt,Xt,Lr){var Ar=Tt.clipExtent&&Tt.clipExtent();return Tt.scale(150).translate([0,0]),Ar!=null&&Tt.clipExtent(null),j(Lr,Tt.stream(yu)),Xt(yu.result()),Ar!=null&&Tt.clipExtent(Ar),Tt}function af(Tt,Xt,Lr){return cc(Tt,function(Ar){var Jr=Xt[1][0]-Xt[0][0],Ei=Xt[1][1]-Xt[0][1],Wi=Math.min(Jr/(Ar[1][0]-Ar[0][0]),Ei/(Ar[1][1]-Ar[0][1])),hn=+Xt[0][0]+(Jr-Wi*(Ar[1][0]+Ar[0][0]))/2,Tn=+Xt[0][1]+(Ei-Wi*(Ar[1][1]+Ar[0][1]))/2;Tt.scale(150*Wi).translate([hn,Tn])},Lr)}function Bl(Tt,Xt,Lr){return af(Tt,[[0,0],Xt],Lr)}function Kc(Tt,Xt,Lr){return cc(Tt,function(Ar){var Jr=+Xt,Ei=Jr/(Ar[1][0]-Ar[0][0]),Wi=(Jr-Ei*(Ar[1][0]+Ar[0][0]))/2,hn=-Ei*Ar[0][1];Tt.scale(150*Ei).translate([Wi,hn])},Lr)}function Rc(Tt,Xt,Lr){return cc(Tt,function(Ar){var Jr=+Xt,Ei=Jr/(Ar[1][1]-Ar[0][1]),Wi=-Ei*Ar[0][0],hn=(Jr-Ei*(Ar[1][1]+Ar[0][1]))/2;Tt.scale(150*Ei).translate([Wi,hn])},Lr)}var ms=16,Hf=p(30*d);function Uh(Tt,Xt){return+Xt?of(Tt,Xt):rh(Tt)}function rh(Tt){return ju({point:function(Xt,Lr){Xt=Tt(Xt,Lr),this.stream.point(Xt[0],Xt[1])}})}function of(Tt,Xt){function Lr(Ar,Jr,Ei,Wi,hn,Tn,Bn,Zi,$i,an,Di,$n,ka,Ra){var La=Bn-Ar,Na=Zi-Jr,Yn=La*La+Na*Na;if(Yn>4*Xt&&ka--){var zn=Wi+an,Ka=hn+Di,bo=Tn+$n,Xo=M(zn*zn+Ka*Ka+bo*bo),Ms=T(bo/=Xo),os=v(v(bo)-1)Xt||v((La*Xs+Na*Ps)/Yn-.5)>.3||Wi*an+hn*Di+Tn*$n2?va[2]%360*d:0,Xs()):[hn*h,Tn*h,Bn*h]},Ho.angle=function(va){return arguments.length?($i=va%360*d,Xs()):$i*h},Ho.reflectX=function(va){return arguments.length?(an=va?-1:1,Xs()):an<0},Ho.reflectY=function(va){return arguments.length?(Di=va?-1:1,Xs()):Di<0},Ho.precision=function(va){return arguments.length?(bo=Uh(Xo,Ka=va*va),Ps()):M(Ka)},Ho.fitExtent=function(va,no){return af(Ho,va,no)},Ho.fitSize=function(va,no){return Bl(Ho,va,no)},Ho.fitWidth=function(va,no){return Kc(Ho,va,no)},Ho.fitHeight=function(va,no){return Rc(Ho,va,no)};function Xs(){var va=Ws(Lr,0,0,an,Di,$i).apply(null,Xt(Ei,Wi)),no=($i?Ws:ih)(Lr,Ar-va[0],Jr-va[1],an,Di,$i);return Zi=zi(hn,Tn,Bn),Xo=ri(Xt,no),Ms=ri(Zi,Xo),bo=Uh(Xo,Ka),Ps()}function Ps(){return os=Ts=null,Ho}return function(){return Xt=Tt.apply(this,arguments),Ho.invert=Xt.invert&&yl,Xs()}}function ks(Tt){var Xt=0,Lr=l/3,Ar=Dc(Tt),Jr=Ar(Xt,Lr);return Jr.parallels=function(Ei){return arguments.length?Ar(Xt=Ei[0]*d,Lr=Ei[1]*d):[Xt*h,Lr*h]},Jr}function bc(Tt){var Xt=p(Tt);function Lr(Ar,Jr){return[Ar*Xt,_(Jr)/Xt]}return Lr.invert=function(Ar,Jr){return[Ar/Xt,T(Jr*Xt)]},Lr}function du(Tt,Xt){var Lr=_(Tt),Ar=(Lr+_(Xt))/2;if(v(Ar)=.12&&Ra<.234&&ka>=-.425&&ka<-.214?Jr:Ra>=.166&&Ra<.234&&ka>=-.214&&ka<-.115?Wi:Lr).invert(an)},Zi.stream=function(an){return Tt&&Xt===an?Tt:Tt=nh([Lr.stream(Xt=an),Jr.stream(an),Wi.stream(an)])},Zi.precision=function(an){return arguments.length?(Lr.precision(an),Jr.precision(an),Wi.precision(an),$i()):Lr.precision()},Zi.scale=function(an){return arguments.length?(Lr.scale(an),Jr.scale(an*.35),Wi.scale(an),Zi.translate(Lr.translate())):Lr.scale()},Zi.translate=function(an){if(!arguments.length)return Lr.translate();var Di=Lr.scale(),$n=+an[0],ka=+an[1];return Ar=Lr.translate(an).clipExtent([[$n-.455*Di,ka-.238*Di],[$n+.455*Di,ka+.238*Di]]).stream(Bn),Ei=Jr.translate([$n-.307*Di,ka+.201*Di]).clipExtent([[$n-.425*Di+o,ka+.12*Di+o],[$n-.214*Di-o,ka+.234*Di-o]]).stream(Bn),hn=Wi.translate([$n-.205*Di,ka+.212*Di]).clipExtent([[$n-.214*Di+o,ka+.166*Di+o],[$n-.115*Di-o,ka+.234*Di-o]]).stream(Bn),$i()},Zi.fitExtent=function(an,Di){return af(Zi,an,Di)},Zi.fitSize=function(an,Di){return Bl(Zi,an,Di)},Zi.fitWidth=function(an,Di){return Kc(Zi,an,Di)},Zi.fitHeight=function(an,Di){return Rc(Zi,an,Di)};function $i(){return Tt=Xt=null,Zi}return Zi.scale(1070)}function zu(Tt){return function(Xt,Lr){var Ar=p(Xt),Jr=p(Lr),Ei=Tt(Ar*Jr);return[Ei*Jr*_(Xt),Ei*_(Lr)]}}function Fc(Tt){return function(Xt,Lr){var Ar=M(Xt*Xt+Lr*Lr),Jr=Tt(Ar),Ei=_(Jr),Wi=p(Jr);return[b(Xt*Ei,Ar*Wi),T(Ar&&Lr*Ei/Ar)]}}var wc=zu(function(Tt){return M(2/(1+Tt))});wc.invert=Fc(function(Tt){return 2*T(Tt/2)});function bd(){return Eu(wc).scale(124.75).clipAngle(180-.001)}var yf=zu(function(Tt){return(Tt=P(Tt))&&Tt/_(Tt)});yf.invert=Fc(function(Tt){return Tt});function Lf(){return Eu(yf).scale(79.4188).clipAngle(180-.001)}function Ou(Tt,Xt){return[Tt,A(g((u+Xt)/2))]}Ou.invert=function(Tt,Xt){return[Tt,2*x(E(Xt))-u]};function _f(){return jl(Ou).scale(961/f)}function jl(Tt){var Xt=Eu(Tt),Lr=Xt.center,Ar=Xt.scale,Jr=Xt.translate,Ei=Xt.clipExtent,Wi=null,hn,Tn,Bn;Xt.scale=function($i){return arguments.length?(Ar($i),Zi()):Ar()},Xt.translate=function($i){return arguments.length?(Jr($i),Zi()):Jr()},Xt.center=function($i){return arguments.length?(Lr($i),Zi()):Lr()},Xt.clipExtent=function($i){return arguments.length?($i==null?Wi=hn=Tn=Bn=null:(Wi=+$i[0][0],hn=+$i[0][1],Tn=+$i[1][0],Bn=+$i[1][1]),Zi()):Wi==null?null:[[Wi,hn],[Tn,Bn]]};function Zi(){var $i=l*Ar(),an=Xt(yn(Xt.rotate()).invert([0,0]));return Ei(Wi==null?[[an[0]-$i,an[1]-$i],[an[0]+$i,an[1]+$i]]:Tt===Ou?[[Math.max(an[0]-$i,Wi),hn],[Math.min(an[0]+$i,Tn),Bn]]:[[Wi,Math.max(an[1]-$i,hn)],[Tn,Math.min(an[1]+$i,Bn)]])}return Zi()}function sf(Tt){return g((u+Tt)/2)}function Vh(Tt,Xt){var Lr=p(Tt),Ar=Tt===Xt?_(Tt):A(Lr/p(Xt))/A(sf(Xt)/sf(Tt)),Jr=Lr*L(sf(Tt),Ar)/Ar;if(!Ar)return Ou;function Ei(Wi,hn){Jr>0?hn<-u+o&&(hn=-u+o):hn>u-o&&(hn=u-o);var Tn=Jr/L(sf(hn),Ar);return[Tn*_(Ar*Wi),Jr-Tn*p(Ar*Wi)]}return Ei.invert=function(Wi,hn){var Tn=Jr-hn,Bn=k(Ar)*M(Wi*Wi+Tn*Tn),Zi=b(Wi,v(Tn))*k(Tn);return Tn*Ar<0&&(Zi-=l*k(Wi)*k(Tn)),[Zi/Ar,2*x(L(Jr/Bn,1/Ar))-u]},Ei}function Pf(){return ks(Vh).scale(109.5).parallels([30,30])}function Ls(Tt,Xt){return[Tt,Xt]}Ls.invert=Ls;function vu(){return Eu(Ls).scale(152.63)}function Cu(Tt,Xt){var Lr=p(Tt),Ar=Tt===Xt?_(Tt):(Lr-p(Xt))/(Xt-Tt),Jr=Lr/Ar+Tt;if(v(Ar)o&&--Ar>0);return[Tt/(.8707+(Ei=Lr*Lr)*(-.131979+Ei*(-.013791+Ei*Ei*Ei*(.003971-.001529*Ei)))),Lr]};function Tc(){return Eu(Oc).scale(175.295)}function wl(Tt,Xt){return[p(Xt)*_(Tt),_(Xt)]}wl.invert=Fc(T);function pu(){return Eu(wl).scale(249.5).clipAngle(90+o)}function qc(Tt,Xt){var Lr=p(Xt),Ar=1+p(Tt)*Lr;return[Lr*_(Tt)/Ar,_(Xt)/Ar]}qc.invert=Fc(function(Tt){return 2*x(Tt)});function uf(){return Eu(qc).scale(250).clipAngle(142)}function fc(Tt,Xt){return[A(g((u+Xt)/2)),-Tt]}fc.invert=function(Tt,Xt){return[-Xt,2*x(E(Tt))-u]};function Bc(){var Tt=jl(fc),Xt=Tt.center,Lr=Tt.rotate;return Tt.center=function(Ar){return arguments.length?Xt([-Ar[1],Ar[0]]):(Ar=Xt(),[Ar[1],-Ar[0]])},Tt.rotate=function(Ar){return arguments.length?Lr([Ar[0],Ar[1],Ar.length>2?Ar[2]+90:90]):(Ar=Lr(),[Ar[0],Ar[1],Ar[2]-90])},Lr([0,0,90]).scale(159.155)}e.geoAlbers=al,e.geoAlbersUsa=bh,e.geoArea=ge,e.geoAzimuthalEqualArea=bd,e.geoAzimuthalEqualAreaRaw=wc,e.geoAzimuthalEquidistant=Lf,e.geoAzimuthalEquidistantRaw=yf,e.geoBounds=Ge,e.geoCentroid=Er,e.geoCircle=la,e.geoClipAntimeridian=Qr,e.geoClipCircle=En,e.geoClipExtent=Ma,e.geoClipRectangle=Jn,e.geoConicConformal=Pf,e.geoConicConformalRaw=Vh,e.geoConicEqualArea=_u,e.geoConicEqualAreaRaw=du,e.geoConicEquidistant=jf,e.geoConicEquidistantRaw=Cu,e.geoContains=ws,e.geoDistance=Ss,e.geoEqualEarth=Wf,e.geoEqualEarthRaw=lf,e.geoEquirectangular=vu,e.geoEquirectangularRaw=Ls,e.geoGnomonic=ah,e.geoGnomonicRaw=Wl,e.geoGraticule=Vu,e.geoGraticule10=zl,e.geoIdentity=Zu,e.geoInterpolate=xo,e.geoLength=Fl,e.geoMercator=_f,e.geoMercatorRaw=Ou,e.geoNaturalEarth1=Tc,e.geoNaturalEarth1Raw=Oc,e.geoOrthographic=pu,e.geoOrthographicRaw=wl,e.geoPath=eh,e.geoProjection=Eu,e.geoProjectionMutator=Dc,e.geoRotation=yn,e.geoStereographic=uf,e.geoStereographicRaw=qc,e.geoStream=j,e.geoTransform=th,e.geoTransverseMercator=Bc,e.geoTransverseMercatorRaw=fc,Object.defineProperty(e,"__esModule",{value:!0})})});var dDe=ye((MF,hDe)=>{(function(e,t){typeof MF=="object"&&typeof hDe!="undefined"?t(MF,kZ(),eC()):t(e.d3=e.d3||{},e.d3,e.d3)})(MF,function(e,t,r){"use strict";var n=Math.abs,i=Math.atan,a=Math.atan2,o=Math.cos,s=Math.exp,l=Math.floor,u=Math.log,c=Math.max,f=Math.min,h=Math.pow,d=Math.round,v=Math.sign||function(ve){return ve>0?1:ve<0?-1:0},x=Math.sin,b=Math.tan,p=1e-6,C=1e-12,E=Math.PI,A=E/2,L=E/4,_=Math.SQRT1_2,k=G(2),M=G(E),g=E*2,P=180/E,T=E/180;function z(ve){return ve?ve/Math.sin(ve):1}function O(ve){return ve>1?A:ve<-1?-A:Math.asin(ve)}function V(ve){return ve>1?0:ve<-1?E:Math.acos(ve)}function G(ve){return ve>0?Math.sqrt(ve):0}function Z(ve){return ve=s(2*ve),(ve-1)/(ve+1)}function H(ve){return(s(ve)-s(-ve))/2}function N(ve){return(s(ve)+s(-ve))/2}function j(ve){return u(ve+G(ve*ve+1))}function re(ve){return u(ve+G(ve*ve-1))}function oe(ve){var be=b(ve/2),Re=2*u(o(ve/2))/(be*be);function Be(tt,We){var it=o(tt),Ft=o(We),jt=x(We),tr=Ft*it,dr=-((1-tr?u((1+tr)/2)/(1-tr):-.5)+Re/(1+tr));return[dr*Ft*x(tt),dr*jt]}return Be.invert=function(tt,We){var it=G(tt*tt+We*We),Ft=-ve/2,jt=50,tr;if(!it)return[0,0];do{var dr=Ft/2,Sr=o(dr),Or=x(dr),jr=Or/Sr,ii=-u(n(Sr));Ft-=tr=(2/jr*ii-Re*jr-it)/(-ii/(Or*Or)+1-Re/(2*Sr*Sr))*(Sr<0?.7:1)}while(n(tr)>p&&--jt>0);var Li=x(Ft);return[a(tt*Li,it*o(Ft)),O(We*Li/it)]},Be}function _e(){var ve=A,be=t.geoProjectionMutator(oe),Re=be(ve);return Re.radius=function(Be){return arguments.length?be(ve=Be*T):ve*P},Re.scale(179.976).clipAngle(147)}function Me(ve,be){var Re=o(be),Be=z(V(Re*o(ve/=2)));return[2*Re*x(ve)*Be,x(be)*Be]}Me.invert=function(ve,be){if(!(ve*ve+4*be*be>E*E+p)){var Re=ve,Be=be,tt=25;do{var We=x(Re),it=x(Re/2),Ft=o(Re/2),jt=x(Be),tr=o(Be),dr=x(2*Be),Sr=jt*jt,Or=tr*tr,jr=it*it,ii=1-Or*Ft*Ft,Li=ii?V(tr*Ft)*G(un=1/ii):un=0,un,sn=2*Li*tr*it-ve,Pn=Li*jt-be,Kn=un*(Or*jr+Li*tr*Ft*Sr),Aa=un*(.5*We*dr-Li*2*jt*it),fa=un*.25*(dr*it-Li*jt*Or*We),$a=un*(Sr*Ft+Li*jr*tr),ko=Aa*fa-$a*Kn;if(!ko)break;var Qa=(Pn*Aa-sn*$a)/ko,mo=(sn*fa-Pn*Kn)/ko;Re-=Qa,Be-=mo}while((n(Qa)>p||n(mo)>p)&&--tt>0);return[Re,Be]}};function ke(){return t.geoProjection(Me).scale(152.63)}function me(ve){var be=x(ve),Re=o(ve),Be=ve>=0?1:-1,tt=b(Be*ve),We=(1+be-Re)/2;function it(Ft,jt){var tr=o(jt),dr=o(Ft/=2);return[(1+tr)*x(Ft),(Be*jt>-a(dr,tt)-.001?0:-Be*10)+We+x(jt)*Re-(1+tr)*be*dr]}return it.invert=function(Ft,jt){var tr=0,dr=0,Sr=50;do{var Or=o(tr),jr=x(tr),ii=o(dr),Li=x(dr),un=1+ii,sn=un*jr-Ft,Pn=We+Li*Re-un*be*Or-jt,Kn=un*Or/2,Aa=-jr*Li,fa=be*un*jr/2,$a=Re*ii+be*Or*Li,ko=Aa*fa-$a*Kn,Qa=(Pn*Aa-sn*$a)/ko/2,mo=(sn*fa-Pn*Kn)/ko;n(mo)>2&&(mo/=2),tr-=Qa,dr-=mo}while((n(Qa)>p||n(mo)>p)&&--Sr>0);return Be*dr>-a(o(tr),tt)-.001?[tr*2,dr]:null},it}function ie(){var ve=20*T,be=ve>=0?1:-1,Re=b(be*ve),Be=t.geoProjectionMutator(me),tt=Be(ve),We=tt.stream;return tt.parallel=function(it){return arguments.length?(Re=b((be=(ve=it*T)>=0?1:-1)*ve),Be(ve)):ve*P},tt.stream=function(it){var Ft=tt.rotate(),jt=We(it),tr=(tt.rotate([0,0]),We(it)),dr=tt.precision();return tt.rotate(Ft),jt.sphere=function(){tr.polygonStart(),tr.lineStart();for(var Sr=be*-180;be*Sr<180;Sr+=be*90)tr.point(Sr,be*90);if(ve)for(;be*(Sr-=3*be*dr)>=-180;)tr.point(Sr,be*-a(o(Sr*T/2),Re)*P);tr.lineEnd(),tr.polygonEnd()},jt},tt.scale(218.695).center([0,28.0974])}function Se(ve,be){var Re=b(be/2),Be=G(1-Re*Re),tt=1+Be*o(ve/=2),We=x(ve)*Be/tt,it=Re/tt,Ft=We*We,jt=it*it;return[4/3*We*(3+Ft-3*jt),4/3*it*(3+3*Ft-jt)]}Se.invert=function(ve,be){if(ve*=3/8,be*=3/8,!ve&&n(be)>1)return null;var Re=ve*ve,Be=be*be,tt=1+Re+Be,We=G((tt-G(tt*tt-4*be*be))/2),it=O(We)/3,Ft=We?re(n(be/We))/3:j(n(ve))/3,jt=o(it),tr=N(Ft),dr=tr*tr-jt*jt;return[v(ve)*2*a(H(Ft)*jt,.25-dr),v(be)*2*a(tr*x(it),.25+dr)]};function Le(){return t.geoProjection(Se).scale(66.1603)}var Ae=G(8),Fe=u(1+k);function Pe(ve,be){var Re=n(be);return ReC&&--Be>0);return[ve/(o(Re)*(Ae-1/x(Re))),v(be)*Re]};function ge(){return t.geoProjection(Pe).scale(112.314)}function De(ve){var be=2*E/ve;function Re(Be,tt){var We=t.geoAzimuthalEquidistantRaw(Be,tt);if(n(Be)>A){var it=a(We[1],We[0]),Ft=G(We[0]*We[0]+We[1]*We[1]),jt=be*d((it-A)/be)+A,tr=a(x(it-=jt),2-o(it));it=jt+O(E/Ft*x(tr))-tr,We[0]=Ft*o(it),We[1]=Ft*x(it)}return We}return Re.invert=function(Be,tt){var We=G(Be*Be+tt*tt);if(We>A){var it=a(tt,Be),Ft=be*d((it-A)/be)+A,jt=it>Ft?-1:1,tr=We*o(Ft-it),dr=1/b(jt*V((tr-E)/G(E*(E-2*tr)+We*We)));it=Ft+2*i((dr+jt*G(dr*dr-3))/3),Be=We*o(it),tt=We*x(it)}return t.geoAzimuthalEquidistantRaw.invert(Be,tt)},Re}function ce(){var ve=5,be=t.geoProjectionMutator(De),Re=be(ve),Be=Re.stream,tt=.01,We=-o(tt*T),it=x(tt*T);return Re.lobes=function(Ft){return arguments.length?be(ve=+Ft):ve},Re.stream=function(Ft){var jt=Re.rotate(),tr=Be(Ft),dr=(Re.rotate([0,0]),Be(Ft));return Re.rotate(jt),tr.sphere=function(){dr.polygonStart(),dr.lineStart();for(var Sr=0,Or=360/ve,jr=2*E/ve,ii=90-180/ve,Li=A;Sr0&&n(tt)>p);return Be<0?NaN:Re}function st(ve,be,Re){return be===void 0&&(be=40),Re===void 0&&(Re=C),function(Be,tt,We,it){var Ft,jt,tr;We=We===void 0?0:+We,it=it===void 0?0:+it;for(var dr=0;drFt){We-=jt/=2,it-=tr/=2;continue}Ft=ii;var Li=(We>0?-1:1)*Re,un=(it>0?-1:1)*Re,sn=ve(We+Li,it),Pn=ve(We,it+un),Kn=(sn[0]-Sr[0])/Li,Aa=(sn[1]-Sr[1])/Li,fa=(Pn[0]-Sr[0])/un,$a=(Pn[1]-Sr[1])/un,ko=$a*Kn-Aa*fa,Qa=(n(ko)<.5?.5:1)/ko;if(jt=(jr*fa-Or*$a)*Qa,tr=(Or*Aa-jr*Kn)*Qa,We+=jt,it+=tr,n(jt)0&&(Ft[1]*=1+jt/1.5*Ft[0]*Ft[0]),Ft}return Be.invert=st(Be),Be}function Gt(){return t.geoProjection(lt()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Ut(ve,be){var Re=ve*x(be),Be=30,tt;do be-=tt=(be+x(be)-Re)/(1+o(be));while(n(tt)>p&&--Be>0);return be/2}function $t(ve,be,Re){function Be(tt,We){return[ve*tt*o(We=Ut(Re,We)),be*x(We)]}return Be.invert=function(tt,We){return We=O(We/be),[tt/(ve*o(We)),O((2*We+x(2*We))/Re)]},Be}var sr=$t(k/A,k,E);function Tr(){return t.geoProjection(sr).scale(169.529)}var ur=2.00276,$e=1.11072;function Mt(ve,be){var Re=Ut(E,be);return[ur*ve/(1/o(be)+$e/o(Re)),(be+k*x(Re))/ur]}Mt.invert=function(ve,be){var Re=ur*be,Be=be<0?-L:L,tt=25,We,it;do it=Re-k*x(Be),Be-=We=(x(2*Be)+2*Be-E*x(it))/(2*o(2*Be)+2+E*o(it)*k*o(Be));while(n(We)>p&&--tt>0);return it=Re-k*x(Be),[ve*(1/o(it)+$e/o(Be))/ur,it]};function Ct(){return t.geoProjection(Mt).scale(160.857)}function Vt(ve){var be=0,Re=t.geoProjectionMutator(ve),Be=Re(be);return Be.parallel=function(tt){return arguments.length?Re(be=tt*T):be*P},Be}function It(ve,be){return[ve*o(be),be]}It.invert=function(ve,be){return[ve/o(be),be]};function Ot(){return t.geoProjection(It).scale(152.63)}function bt(ve){if(!ve)return It;var be=1/b(ve);function Re(Be,tt){var We=be+ve-tt,it=We&&Be*o(tt)/We;return[We*x(it),be-We*o(it)]}return Re.invert=function(Be,tt){var We=G(Be*Be+(tt=be-tt)*tt),it=be+ve-We;return[We/o(it)*a(Be,tt),it]},Re}function rr(){return Vt(bt).scale(123.082).center([0,26.1441]).parallel(45)}function lr(ve){function be(Re,Be){var tt=A-Be,We=tt&&Re*ve*x(tt)/tt;return[tt*x(We)/ve,A-tt*o(We)]}return be.invert=function(Re,Be){var tt=Re*ve,We=A-Be,it=G(tt*tt+We*We),Ft=a(tt,We);return[(it?it/x(it):1)*Ft/ve,A-it]},be}function wr(){var ve=.5,be=t.geoProjectionMutator(lr),Re=be(ve);return Re.fraction=function(Be){return arguments.length?be(ve=+Be):ve},Re.scale(158.837)}var Cr=$t(1,4/E,E);function Kr(){return t.geoProjection(Cr).scale(152.63)}function Gr(ve,be,Re,Be,tt,We){var it=o(We),Ft;if(n(ve)>1||n(We)>1)Ft=V(Re*tt+be*Be*it);else{var jt=x(ve/2),tr=x(We/2);Ft=2*O(G(jt*jt+be*Be*tr*tr))}return n(Ft)>p?[Ft,a(Be*x(We),be*tt-Re*Be*it)]:[0,0]}function Yr(ve,be,Re){return V((ve*ve+be*be-Re*Re)/(2*ve*be))}function dt(ve){return ve-2*E*l((ve+E)/(2*E))}function Ge(ve,be,Re){for(var Be=[[ve[0],ve[1],x(ve[1]),o(ve[1])],[be[0],be[1],x(be[1]),o(be[1])],[Re[0],Re[1],x(Re[1]),o(Re[1])]],tt=Be[2],We,it=0;it<3;++it,tt=We)We=Be[it],tt.v=Gr(We[1]-tt[1],tt[3],tt[2],We[3],We[2],We[0]-tt[0]),tt.point=[0,0];var Ft=Yr(Be[0].v[0],Be[2].v[0],Be[1].v[0]),jt=Yr(Be[0].v[0],Be[1].v[0],Be[2].v[0]),tr=E-Ft;Be[2].point[1]=0,Be[0].point[0]=-(Be[1].point[0]=Be[0].v[0]/2);var dr=[Be[2].point[0]=Be[0].point[0]+Be[2].v[0]*o(Ft),2*(Be[0].point[1]=Be[1].point[1]=Be[2].v[0]*x(Ft))];function Sr(Or,jr){var ii=x(jr),Li=o(jr),un=new Array(3),sn;for(sn=0;sn<3;++sn){var Pn=Be[sn];if(un[sn]=Gr(jr-Pn[1],Pn[3],Pn[2],Li,ii,Or-Pn[0]),!un[sn][0])return Pn.point;un[sn][1]=dt(un[sn][1]-Pn.v[1])}var Kn=dr.slice();for(sn=0;sn<3;++sn){var Aa=sn==2?0:sn+1,fa=Yr(Be[sn].v[0],un[sn][0],un[Aa][0]);un[sn][1]<0&&(fa=-fa),sn?sn==1?(fa=jt-fa,Kn[0]-=un[sn][0]*o(fa),Kn[1]-=un[sn][0]*x(fa)):(fa=tr-fa,Kn[0]+=un[sn][0]*o(fa),Kn[1]+=un[sn][0]*x(fa)):(Kn[0]+=un[sn][0]*o(fa),Kn[1]-=un[sn][0]*x(fa))}return Kn[0]/=3,Kn[1]/=3,Kn}return Sr}function Qe(ve){return ve[0]*=T,ve[1]*=T,ve}function je(){return Je([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Je(ve,be,Re){var Be=t.geoCentroid({type:"MultiPoint",coordinates:[ve,be,Re]}),tt=[-Be[0],-Be[1]],We=t.geoRotation(tt),it=Ge(Qe(We(ve)),Qe(We(be)),Qe(We(Re)));it.invert=st(it);var Ft=t.geoProjection(it).rotate(tt),jt=Ft.center;return delete Ft.rotate,Ft.center=function(tr){return arguments.length?jt(We(tr)):We.invert(jt())},Ft.clipAngle(90)}function xt(ve,be){var Re=G(1-x(be));return[2/M*ve*Re,M*(1-Re)]}xt.invert=function(ve,be){var Re=(Re=be/M-1)*Re;return[Re>0?ve*G(E/Re)/2:0,O(1-Re)]};function Ie(){return t.geoProjection(xt).scale(95.6464).center([0,30])}function xe(ve){var be=b(ve);function Re(Be,tt){return[Be,(Be?Be/x(Be):1)*(x(tt)*o(Be)-be*o(tt))]}return Re.invert=be?function(Be,tt){Be&&(tt*=x(Be)/Be);var We=o(Be);return[Be,2*a(G(We*We+be*be-tt*tt)-We,be-tt)]}:function(Be,tt){return[Be,O(Be?tt*b(Be)/Be:tt)]},Re}function Ce(){return Vt(xe).scale(249.828).clipAngle(90)}var pt=G(3);function nr(ve,be){return[pt*ve*(2*o(2*be/3)-1)/M,pt*M*x(be/3)]}nr.invert=function(ve,be){var Re=3*O(be/(pt*M));return[M*ve/(pt*(2*o(2*Re/3)-1)),Re]};function ir(){return t.geoProjection(nr).scale(156.19)}function vr(ve){var be=o(ve);function Re(Be,tt){return[Be*be,x(tt)/be]}return Re.invert=function(Be,tt){return[Be/be,O(tt*be)]},Re}function si(){return Vt(vr).parallel(38.58).scale(195.044)}function mi(ve){var be=o(ve);function Re(Be,tt){return[Be*be,(1+be)*b(tt/2)]}return Re.invert=function(Be,tt){return[Be/be,i(tt/(1+be))*2]},Re}function ei(){return Vt(mi).scale(124.75)}function vi(ve,be){var Re=G(8/(3*E));return[Re*ve*(1-n(be)/E),Re*be]}vi.invert=function(ve,be){var Re=G(8/(3*E)),Be=be/Re;return[ve/(Re*(1-n(Be)/E)),Be]};function ji(){return t.geoProjection(vi).scale(165.664)}function Rn(ve,be){var Re=G(4-3*x(n(be)));return[2/G(6*E)*ve*Re,v(be)*G(2*E/3)*(2-Re)]}Rn.invert=function(ve,be){var Re=2-n(be)/G(2*E/3);return[ve*G(6*E)/(2*Re),v(be)*O((4-Re*Re)/3)]};function wn(){return t.geoProjection(Rn).scale(165.664)}function pn(ve,be){var Re=G(E*(4+E));return[2/Re*ve*(1+G(1-4*be*be/(E*E))),4/Re*be]}pn.invert=function(ve,be){var Re=G(E*(4+E))/2;return[ve*Re/(1+G(1-be*be*(4+E)/(4*E))),be*Re/2]};function Vn(){return t.geoProjection(pn).scale(180.739)}function kn(ve,be){var Re=(2+A)*x(be);be/=2;for(var Be=0,tt=1/0;Be<10&&n(tt)>p;Be++){var We=o(be);be-=tt=(be+x(be)*(We+2)-Re)/(2*We*(1+We))}return[2/G(E*(4+E))*ve*(1+o(be)),2*G(E/(4+E))*x(be)]}kn.invert=function(ve,be){var Re=be*G((4+E)/E)/2,Be=O(Re),tt=o(Be);return[ve/(2/G(E*(4+E))*(1+tt)),O((Be+Re*(tt+2))/(2+A))]};function ea(){return t.geoProjection(kn).scale(180.739)}function ua(ve,be){return[ve*(1+o(be))/G(2+E),2*be/G(2+E)]}ua.invert=function(ve,be){var Re=G(2+E),Be=be*Re/2;return[Re*ve/(1+o(Be)),Be]};function Ht(){return t.geoProjection(ua).scale(173.044)}function yt(ve,be){for(var Re=(1+A)*x(be),Be=0,tt=1/0;Be<10&&n(tt)>p;Be++)be-=tt=(be+x(be)-Re)/(1+o(be));return Re=G(2+E),[ve*(1+o(be))/Re,2*be/Re]}yt.invert=function(ve,be){var Re=1+A,Be=G(Re/2);return[ve*2*Be/(1+o(be*=Be)),O((be+x(be))/Re)]};function er(){return t.geoProjection(yt).scale(173.044)}var ar=3+2*k;function Er(ve,be){var Re=x(ve/=2),Be=o(ve),tt=G(o(be)),We=o(be/=2),it=x(be)/(We+k*Be*tt),Ft=G(2/(1+it*it)),jt=G((k*We+(Be+Re)*tt)/(k*We+(Be-Re)*tt));return[ar*(Ft*(jt-1/jt)-2*u(jt)),ar*(Ft*it*(jt+1/jt)-2*i(it))]}Er.invert=function(ve,be){if(!(We=Se.invert(ve/1.2,be*1.065)))return null;var Re=We[0],Be=We[1],tt=20,We;ve/=ar,be/=ar;do{var it=Re/2,Ft=Be/2,jt=x(it),tr=o(it),dr=x(Ft),Sr=o(Ft),Or=o(Be),jr=G(Or),ii=dr/(Sr+k*tr*jr),Li=ii*ii,un=G(2/(1+Li)),sn=k*Sr+(tr+jt)*jr,Pn=k*Sr+(tr-jt)*jr,Kn=sn/Pn,Aa=G(Kn),fa=Aa-1/Aa,$a=Aa+1/Aa,ko=un*fa-2*u(Aa)-ve,Qa=un*ii*$a-2*i(ii)-be,mo=dr&&_*jr*jt*Li/dr,Bo=(k*tr*Sr+jr)/(2*(Sr+k*tr*jr)*(Sr+k*tr*jr)*jr),Is=-.5*ii*un*un*un,As=Is*mo,wo=Is*Bo,To=(To=2*Sr+k*jr*(tr-jt))*To*Aa,dl=(k*tr*Sr*jr+Or)/To,Nl=-(k*jt*dr)/(jr*To),Lu=fa*As-2*dl/Aa+un*(dl+dl/Kn),ou=fa*wo-2*Nl/Aa+un*(Nl+Nl/Kn),$s=ii*$a*As-2*mo/(1+Li)+un*$a*mo+un*ii*(dl-dl/Kn),Ql=ii*$a*wo-2*Bo/(1+Li)+un*$a*Bo+un*ii*(Nl-Nl/Kn),dc=ou*$s-Ql*Lu;if(!dc)break;var Tl=(Qa*ou-ko*Ql)/dc,Al=(ko*$s-Qa*Lu)/dc;Re-=Tl,Be=c(-A,f(A,Be-Al))}while((n(Tl)>p||n(Al)>p)&&--tt>0);return n(n(Be)-A)Be){var Sr=G(dr),Or=a(tr,jt),jr=Re*d(Or/Re),ii=Or-jr,Li=ve*o(ii),un=(ve*x(ii)-ii*x(Li))/(A-Li),sn=Wa(ii,un),Pn=(E-ve)/Fa(sn,Li,E);jt=Sr;var Kn=50,Aa;do jt-=Aa=(ve+Fa(sn,Li,jt)*Pn-Sr)/(sn(jt)*Pn);while(n(Aa)>p&&--Kn>0);tr=ii*x(jt),jtBe){var jt=G(Ft),tr=a(it,We),dr=Re*d(tr/Re),Sr=tr-dr;We=jt*o(Sr),it=jt*x(Sr);for(var Or=We-A,jr=x(We),ii=it/jr,Li=Wep||n(ii)>p)&&--Li>0);return[Sr,Or]},jt}var Wn=da(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function Ga(){return t.geoProjection(Wn).scale(149.995)}var vo=da(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function jn(){return t.geoProjection(vo).scale(153.93)}var At=da(5/6*E,-.62636,-.0344,0,1.3493,-.05524,0,.045);function kr(){return t.geoProjection(At).scale(130.945)}function Qr(ve,be){var Re=ve*ve,Be=be*be;return[ve*(1-.162388*Be)*(.87-952426e-9*Re*Re),be*(1+Be/12)]}Qr.invert=function(ve,be){var Re=ve,Be=be,tt=50,We;do{var it=Be*Be;Be-=We=(Be*(1+it/12)-be)/(1+it/4)}while(n(We)>p&&--tt>0);tt=50,ve/=1-.162388*it;do{var Ft=(Ft=Re*Re)*Ft;Re-=We=(Re*(.87-952426e-9*Ft)-ve)/(.87-.00476213*Ft)}while(n(We)>p&&--tt>0);return[Re,Be]};function di(){return t.geoProjection(Qr).scale(131.747)}var fn=da(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Sn(){return t.geoProjection(fn).scale(131.087)}function En(ve){var be=ve(A,0)[0]-ve(-A,0)[0];function Re(Be,tt){var We=Be>0?-.5:.5,it=ve(Be+We*E,tt);return it[0]-=We*be,it}return ve.invert&&(Re.invert=function(Be,tt){var We=Be>0?-.5:.5,it=ve.invert(Be+We*be,tt),Ft=it[0]-We*E;return Ft<-E?Ft+=2*E:Ft>E&&(Ft-=2*E),it[0]=Ft,it}),Re}function ki(ve,be){var Re=v(ve),Be=v(be),tt=o(be),We=o(ve)*tt,it=x(ve)*tt,Ft=x(Be*be);ve=n(a(it,Ft)),be=O(We),n(ve-A)>p&&(ve%=A);var jt=_n(ve>E/4?A-ve:ve,be);return ve>E/4&&(Ft=jt[0],jt[0]=-jt[1],jt[1]=-Ft),jt[0]*=Re,jt[1]*=-Be,jt}ki.invert=function(ve,be){n(ve)>1&&(ve=v(ve)*2-ve),n(be)>1&&(be=v(be)*2-be);var Re=v(ve),Be=v(be),tt=-Re*ve,We=-Be*be,it=We/tt<1,Ft=ya(it?We:tt,it?tt:We),jt=Ft[0],tr=Ft[1],dr=o(tr);return it&&(jt=-A-jt),[Re*(a(x(jt)*dr,-x(tr))+E),Be*O(o(jt)*dr)]};function _n(ve,be){if(be===A)return[0,0];var Re=x(be),Be=Re*Re,tt=Be*Be,We=1+tt,it=1+3*tt,Ft=1-tt,jt=O(1/G(We)),tr=Ft+Be*We*jt,dr=(1-Re)/tr,Sr=G(dr),Or=dr*We,jr=G(Or),ii=Sr*Ft,Li,un;if(ve===0)return[0,-(ii+Be*jr)];var sn=o(be),Pn=1/sn,Kn=2*Re*sn,Aa=(-3*Be+jt*it)*Kn,fa=(-tr*sn-(1-Re)*Aa)/(tr*tr),$a=.5*fa/Sr,ko=Ft*$a-2*Be*Sr*Kn,Qa=Be*We*fa+dr*it*Kn,mo=-Pn*Kn,Bo=-Pn*Qa,Is=-2*Pn*ko,As=4*ve/E,wo;if(ve>.222*E||be.175*E){if(Li=(ii+Be*G(Or*(1+tt)-ii*ii))/(1+tt),ve>E/4)return[Li,Li];var To=Li,dl=.5*Li;Li=.5*(dl+To),un=50;do{var Nl=G(Or-Li*Li),Lu=Li*(Is+mo*Nl)+Bo*O(Li/jr)-As;if(!Lu)break;Lu<0?dl=Li:To=Li,Li=.5*(dl+To)}while(n(To-dl)>p&&--un>0)}else{Li=p,un=25;do{var ou=Li*Li,$s=G(Or-ou),Ql=Is+mo*$s,dc=Li*Ql+Bo*O(Li/jr)-As,Tl=Ql+(Bo-mo*ou)/$s;Li-=wo=$s?dc/Tl:0}while(n(wo)>p&&--un>0)}return[Li,-ii-Be*G(Or-Li*Li)]}function ya(ve,be){for(var Re=0,Be=1,tt=.5,We=50;;){var it=tt*tt,Ft=G(tt),jt=O(1/G(1+it)),tr=1-it+tt*(1+it)*jt,dr=(1-Ft)/tr,Sr=G(dr),Or=dr*(1+it),jr=Sr*(1-it),ii=Or-ve*ve,Li=G(ii),un=be+jr+tt*Li;if(n(Be-Re)0?Re=tt:Be=tt,tt=.5*(Re+Be)}if(!We)return null;var sn=O(Ft),Pn=o(sn),Kn=1/Pn,Aa=2*Ft*Pn,fa=(-3*tt+jt*(1+3*it))*Aa,$a=(-tr*Pn-(1-Ft)*fa)/(tr*tr),ko=.5*$a/Sr,Qa=(1-it)*ko-2*tt*Sr*Aa,mo=-2*Kn*Qa,Bo=-Kn*Aa,Is=-Kn*(tt*(1+it)*$a+dr*(1+3*it)*Aa);return[E/4*(ve*(mo+Bo*Li)+Is*O(ve/G(Or))),sn]}function Jn(){return t.geoProjection(En(ki)).scale(239.75)}function Ma(ve,be,Re){var Be,tt,We;return ve?(Be=_o(ve,Re),be?(tt=_o(be,1-Re),We=tt[1]*tt[1]+Re*Be[0]*Be[0]*tt[0]*tt[0],[[Be[0]*tt[2]/We,Be[1]*Be[2]*tt[0]*tt[1]/We],[Be[1]*tt[1]/We,-Be[0]*Be[2]*tt[0]*tt[2]/We],[Be[2]*tt[1]*tt[2]/We,-Re*Be[0]*Be[1]*tt[0]/We]]):[[Be[0],0],[Be[1],0],[Be[2],0]]):(tt=_o(be,1-Re),[[0,tt[0]/tt[1]],[1/tt[1],0],[tt[2]/tt[1],0]])}function _o(ve,be){var Re,Be,tt,We,it;if(be=1-p)return Re=(1-be)/4,Be=N(ve),We=Z(ve),tt=1/Be,it=Be*H(ve),[We+Re*(it-ve)/(Be*Be),tt-Re*We*tt*(it-ve),tt+Re*We*tt*(it+ve),2*i(s(ve))-A+Re*(it-ve)/Be];var Ft=[1,0,0,0,0,0,0,0,0],jt=[G(be),0,0,0,0,0,0,0,0],tr=0;for(Be=G(1-be),it=1;n(jt[tr]/Ft[tr])>p&&tr<8;)Re=Ft[tr++],jt[tr]=(Re-Be)/2,Ft[tr]=(Re+Be)/2,Be=G(Re*Be),it*=2;tt=it*Ft[tr]*ve;do We=jt[tr]*x(Be=tt)/Ft[tr],tt=(O(We)+tt)/2;while(--tr);return[x(tt),We=o(tt),We/o(tt-Be),tt]}function No(ve,be,Re){var Be=n(ve),tt=n(be),We=H(tt);if(Be){var it=1/x(Be),Ft=1/(b(Be)*b(Be)),jt=-(Ft+Re*(We*We*it*it)-1+Re),tr=(Re-1)*Ft,dr=(-jt+G(jt*jt-4*tr))/2;return[po(i(1/G(dr)),Re)*v(ve),po(i(G((dr/Ft-1)/Re)),1-Re)*v(be)]}return[0,po(i(We),1-Re)*v(be)]}function po(ve,be){if(!be)return ve;if(be===1)return u(b(ve/2+L));for(var Re=1,Be=G(1-be),tt=G(be),We=0;n(tt)>p;We++){if(ve%E){var it=i(Be*b(ve)/Re);it<0&&(it+=E),ve+=it+~~(ve/E)*E}else ve+=ve;tt=(Re+Be)/2,Be=G(Re*Be),tt=((Re=tt)-Be)/2}return ve/(h(2,We)*Re)}function Lo(ve,be){var Re=(k-1)/(k+1),Be=G(1-Re*Re),tt=po(A,Be*Be),We=-1,it=u(b(E/4+n(be)/2)),Ft=s(We*it)/G(Re),jt=Co(Ft*o(We*ve),Ft*x(We*ve)),tr=No(jt[0],jt[1],Be*Be);return[-tr[1],(be>=0?1:-1)*(.5*tt-tr[0])]}function Co(ve,be){var Re=ve*ve,Be=be+1,tt=1-Re-be*be;return[.5*((ve>=0?A:-A)-a(tt,2*ve)),-.25*u(tt*tt+4*Re)+.5*u(Be*Be+Re)]}function Fs(ve,be){var Re=be[0]*be[0]+be[1]*be[1];return[(ve[0]*be[0]+ve[1]*be[1])/Re,(ve[1]*be[0]-ve[0]*be[1])/Re]}Lo.invert=function(ve,be){var Re=(k-1)/(k+1),Be=G(1-Re*Re),tt=po(A,Be*Be),We=-1,it=Ma(.5*tt-be,-ve,Be*Be),Ft=Fs(it[0],it[1]),jt=a(Ft[1],Ft[0])/We;return[jt,2*i(s(.5/We*u(Re*Ft[0]*Ft[0]+Re*Ft[1]*Ft[1])))-A]};function zs(){return t.geoProjection(En(Lo)).scale(151.496)}function ul(ve){var be=x(ve),Re=o(ve),Be=cl(ve);Be.invert=cl(-ve);function tt(We,it){var Ft=Be(We,it);We=Ft[0],it=Ft[1];var jt=x(it),tr=o(it),dr=o(We),Sr=V(be*jt+Re*tr*dr),Or=x(Sr),jr=n(Or)>p?Sr/Or:1;return[jr*Re*x(We),(n(We)>A?jr:-jr)*(be*tr-Re*jt*dr)]}return tt.invert=function(We,it){var Ft=G(We*We+it*it),jt=-x(Ft),tr=o(Ft),dr=Ft*tr,Sr=-it*jt,Or=Ft*be,jr=G(dr*dr+Sr*Sr-Or*Or),ii=a(dr*Or+Sr*jr,Sr*Or-dr*jr),Li=(Ft>A?-1:1)*a(We*jt,Ft*o(ii)*tr+it*x(ii)*jt);return Be.invert(Li,ii)},tt}function cl(ve){var be=x(ve),Re=o(ve);return function(Be,tt){var We=o(tt),it=o(Be)*We,Ft=x(Be)*We,jt=x(tt);return[a(Ft,it*Re-jt*be),O(jt*Re+it*be)]}}function Fl(){var ve=0,be=t.geoProjectionMutator(ul),Re=be(ve),Be=Re.rotate,tt=Re.stream,We=t.geoCircle();return Re.parallel=function(it){if(!arguments.length)return ve*P;var Ft=Re.rotate();return be(ve=it*T).rotate(Ft)},Re.rotate=function(it){return arguments.length?(Be.call(Re,[it[0],it[1]-ve*P]),We.center([-it[0],-it[1]]),Re):(it=Be.call(Re),it[1]+=ve*P,it)},Re.stream=function(it){return it=tt(it),it.sphere=function(){it.polygonStart();var Ft=.01,jt=We.radius(90-Ft)().coordinates[0],tr=jt.length-1,dr=-1,Sr;for(it.lineStart();++dr=0;)it.point((Sr=jt[dr])[0],Sr[1]);it.lineEnd(),it.polygonEnd()},it},Re.scale(79.4187).parallel(45).clipAngle(180-.001)}var cs=3,nl=O(1-1/cs)*P,Ss=vr(0);function fl(ve){var be=nl*T,Re=xt(E,be)[0]-xt(-E,be)[0],Be=Ss(0,be)[1],tt=xt(0,be)[1],We=M-tt,it=g/ve,Ft=4/g,jt=Be+We*We*4/g;function tr(dr,Sr){var Or,jr=n(Sr);if(jr>be){var ii=f(ve-1,c(0,l((dr+E)/it)));dr+=E*(ve-1)/ve-ii*it,Or=xt(dr,jr),Or[0]=Or[0]*g/Re-g*(ve-1)/(2*ve)+ii*g/ve,Or[1]=Be+(Or[1]-tt)*4*We/g,Sr<0&&(Or[1]=-Or[1])}else Or=Ss(dr,Sr);return Or[0]*=Ft,Or[1]/=jt,Or}return tr.invert=function(dr,Sr){dr/=Ft,Sr*=jt;var Or=n(Sr);if(Or>Be){var jr=f(ve-1,c(0,l((dr+E)/it)));dr=(dr+E*(ve-1)/ve-jr*it)*Re/g;var ii=xt.invert(dr,.25*(Or-Be)*g/We+tt);return ii[0]-=E*(ve-1)/ve-jr*it,Sr<0&&(ii[1]=-ii[1]),ii}return Ss.invert(dr,Sr)},tr}function Js(ve,be){return[ve,be&1?90-p:nl]}function Os(ve,be){return[ve,be&1?-90+p:-nl]}function Io(ve){return[ve[0]*(1-p),ve[1]]}function us(ve){var be=[].concat(r.range(-180,180+ve/2,ve).map(Js),r.range(180,-180-ve/2,-ve).map(Os));return{type:"Polygon",coordinates:[ve===180?be.map(Io):be]}}function Zl(){var ve=4,be=t.geoProjectionMutator(fl),Re=be(ve),Be=Re.stream;return Re.lobes=function(tt){return arguments.length?be(ve=+tt):ve},Re.stream=function(tt){var We=Re.rotate(),it=Be(tt),Ft=(Re.rotate([0,0]),Be(tt));return Re.rotate(We),it.sphere=function(){t.geoStream(us(180/ve),Ft)},it},Re.scale(239.75)}function Su(ve){var be=1+ve,Re=x(1/be),Be=O(Re),tt=2*G(E/(We=E+4*Be*be)),We,it=.5*tt*(be+G(ve*(2+ve))),Ft=ve*ve,jt=be*be;function tr(dr,Sr){var Or=1-x(Sr),jr,ii;if(Or&&Or<2){var Li=A-Sr,un=25,sn;do{var Pn=x(Li),Kn=o(Li),Aa=Be+a(Pn,be-Kn),fa=1+jt-2*be*Kn;Li-=sn=(Li-Ft*Be-be*Pn+fa*Aa-.5*Or*We)/(2*be*Pn*Aa)}while(n(sn)>C&&--un>0);jr=tt*G(fa),ii=dr*Aa/E}else jr=tt*(ve+Or),ii=dr*Be/E;return[jr*x(ii),it-jr*o(ii)]}return tr.invert=function(dr,Sr){var Or=dr*dr+(Sr-=it)*Sr,jr=(1+jt-Or/(tt*tt))/(2*be),ii=V(jr),Li=x(ii),un=Be+a(Li,be-jr);return[O(dr/G(Or))*E/un,O(1-2*(ii-Ft*Be-be*Li+(1+jt-2*be*jr)*un)/We)]},tr}function nc(){var ve=1,be=t.geoProjectionMutator(Su),Re=be(ve);return Re.ratio=function(Be){return arguments.length?be(ve=+Be):ve},Re.scale(167.774).center([0,18.67])}var ws=.7109889596207567,Fn=.0528035274542;function _a(ve,be){return be>-ws?(ve=sr(ve,be),ve[1]+=Fn,ve):It(ve,be)}_a.invert=function(ve,be){return be>-ws?sr.invert(ve,be-Fn):It.invert(ve,be)};function Vu(){return t.geoProjection(_a).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function zl(ve,be){return n(be)>ws?(ve=sr(ve,be),ve[1]-=be>0?Fn:-Fn,ve):It(ve,be)}zl.invert=function(ve,be){return n(be)>ws?sr.invert(ve,be+(be>0?Fn:-Fn)):It.invert(ve,be)};function xo(){return t.geoProjection(zl).scale(152.63)}function Yl(ve,be,Re,Be){var tt=G(4*E/(2*Re+(1+ve-be/2)*x(2*Re)+(ve+be)/2*x(4*Re)+be/2*x(6*Re))),We=G(Be*x(Re)*G((1+ve*o(2*Re)+be*o(4*Re))/(1+ve+be))),it=Re*jt(1);function Ft(Sr){return G(1+ve*o(2*Sr)+be*o(4*Sr))}function jt(Sr){var Or=Sr*Re;return(2*Or+(1+ve-be/2)*x(2*Or)+(ve+be)/2*x(4*Or)+be/2*x(6*Or))/Re}function tr(Sr){return Ft(Sr)*x(Sr)}var dr=function(Sr,Or){var jr=Re*Kt(jt,it*x(Or)/Re,Or/E);isNaN(jr)&&(jr=Re*v(Or));var ii=tt*Ft(jr);return[ii*We*Sr/E*o(jr),ii/We*x(jr)]};return dr.invert=function(Sr,Or){var jr=Kt(tr,Or*We/tt);return[Sr*E/(o(jr)*tt*We*Ft(jr)),O(Re*jt(jr/Re)/it)]},Re===0&&(tt=G(Be/E),dr=function(Sr,Or){return[Sr*tt,x(Or)/tt]},dr.invert=function(Sr,Or){return[Sr/tt,O(Or*tt)]}),dr}function Us(){var ve=1,be=0,Re=45*T,Be=2,tt=t.geoProjectionMutator(Yl),We=tt(ve,be,Re,Be);return We.a=function(it){return arguments.length?tt(ve=+it,be,Re,Be):ve},We.b=function(it){return arguments.length?tt(ve,be=+it,Re,Be):be},We.psiMax=function(it){return arguments.length?tt(ve,be,Re=+it*T,Be):Re*P},We.ratio=function(it){return arguments.length?tt(ve,be,Re,Be=+it):Be},We.scale(180.739)}function Hl(ve,be,Re,Be,tt,We,it,Ft,jt,tr,dr){if(dr.nanEncountered)return NaN;var Sr,Or,jr,ii,Li,un,sn,Pn,Kn,Aa;if(Sr=Re-be,Or=ve(be+Sr*.25),jr=ve(Re-Sr*.25),isNaN(Or)){dr.nanEncountered=!0;return}if(isNaN(jr)){dr.nanEncountered=!0;return}return ii=Sr*(Be+4*Or+tt)/12,Li=Sr*(tt+4*jr+We)/12,un=ii+Li,Aa=(un-it)/15,tr>jt?(dr.maxDepthCount++,un+Aa):Math.abs(Aa)>1;do jt[un]>jr?Li=un:ii=un,un=ii+Li>>1;while(un>ii);var sn=jt[un+1]-jt[un];return sn&&(sn=(jr-jt[un+1])/sn),(un+1+sn)/it}var Sr=2*dr(1)/E*We/Re,Or=function(jr,ii){var Li=dr(n(x(ii))),un=Be(Li)*jr;return Li/=Sr,[un,ii>=0?Li:-Li]};return Or.invert=function(jr,ii){var Li;return ii*=Sr,n(ii)<1&&(Li=v(ii)*O(tt(n(ii))*We)),[jr/Be(n(ii)),Li]},Or}function Oo(){var ve=0,be=2.5,Re=1.183136,Be=t.geoProjectionMutator(aa),tt=Be(ve,be,Re);return tt.alpha=function(We){return arguments.length?Be(ve=+We,be,Re):ve},tt.k=function(We){return arguments.length?Be(ve,be=+We,Re):be},tt.gamma=function(We){return arguments.length?Be(ve,be,Re=+We):Re},tt.scale(152.63)}function qo(ve,be){return n(ve[0]-be[0])=0;--jt)Re=ve[1][jt],Be=Re[0][0],tt=Re[0][1],We=Re[1][1],it=Re[2][0],Ft=Re[2][1],be.push(Ol([[it-p,Ft-p],[it-p,We+p],[Be+p,We+p],[Be+p,tt-p]],30));return{type:"Polygon",coordinates:[r.merge(be)]}}function Do(ve,be,Re){var Be,tt;function We(jt,tr){for(var dr=tr<0?-1:1,Sr=be[+(tr<0)],Or=0,jr=Sr.length-1;OrSr[Or][2][0];++Or);var ii=ve(jt-Sr[Or][1][0],tr);return ii[0]+=ve(Sr[Or][1][0],dr*tr>dr*Sr[Or][0][1]?Sr[Or][0][1]:tr)[0],ii}Re?We.invert=Re(We):ve.invert&&(We.invert=function(jt,tr){for(var dr=tt[+(tr<0)],Sr=be[+(tr<0)],Or=0,jr=dr.length;Orii&&(Li=jr,jr=ii,ii=Li),[[Sr,jr],[Or,ii]]})}),it):be.map(function(tr){return tr.map(function(dr){return[[dr[0][0]*P,dr[0][1]*P],[dr[1][0]*P,dr[1][1]*P],[dr[2][0]*P,dr[2][1]*P]]})})},be!=null&&it.lobes(be),it}var tf=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Nf(){return Do(Mt,tf).scale(160.857)}var ml=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Zc(){return Do(zl,ml).scale(152.63)}var Kl=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function qs(){return Do(sr,Kl).scale(169.529)}var yu=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function oc(){return Do(sr,yu).scale(169.529).rotate([20,0])}var Cf=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function sc(){return Do(_a,Cf,st).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Nh=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function kf(){return Do(It,Nh).scale(152.63).rotate([-20,0])}function fs(ve,be){return[3/g*ve*G(E*E/3-be*be),be]}fs.invert=function(ve,be){return[g/3*ve/G(E*E/3-be*be),be]};function rf(){return t.geoProjection(fs).scale(158.837)}function Uf(ve){function be(Re,Be){if(n(n(Be)-A)2)return null;Re/=2,Be/=2;var We=Re*Re,it=Be*Be,Ft=2*Be/(1+We+it);return Ft=h((1+Ft)/(1-Ft),1/ve),[a(2*Re,1-We-it)/ve,O((Ft-1)/(Ft+1))]},be}function Jl(){var ve=.5,be=t.geoProjectionMutator(Uf),Re=be(ve);return Re.spacing=function(Be){return arguments.length?be(ve=+Be):ve},Re.scale(124.75)}var hl=E/k;function lc(ve,be){return[ve*(1+G(o(be)))/2,be/(o(be/2)*o(ve/6))]}lc.invert=function(ve,be){var Re=n(ve),Be=n(be),tt=p,We=A;Bep||n(un)>p)&&--tt>0);return tt&&[Re,Be]};function js(){return t.geoProjection(Cs).scale(139.98)}function Go(ve,be){return[x(ve)/o(be),b(be)*o(ve)]}Go.invert=function(ve,be){var Re=ve*ve,Be=be*be,tt=Be+1,We=Re+tt,it=ve?_*G((We-G(We*We-4*Re))/Re):1/G(tt);return[O(ve*it),v(be)*V(it)]};function gs(){return t.geoProjection(Go).scale(144.049).clipAngle(90-.001)}function uc(ve){var be=o(ve),Re=b(L+ve/2);function Be(tt,We){var it=We-ve,Ft=n(it)=0;)dr=ve[tr],Sr=dr[0]+Ft*(jr=Sr)-jt*Or,Or=dr[1]+Ft*Or+jt*jr;return Sr=Ft*(jr=Sr)-jt*Or,Or=Ft*Or+jt*jr,[Sr,Or]}return Re.invert=function(Be,tt){var We=20,it=Be,Ft=tt;do{for(var jt=be,tr=ve[jt],dr=tr[0],Sr=tr[1],Or=0,jr=0,ii;--jt>=0;)tr=ve[jt],Or=dr+it*(ii=Or)-Ft*jr,jr=Sr+it*jr+Ft*ii,dr=tr[0]+it*(ii=dr)-Ft*Sr,Sr=tr[1]+it*Sr+Ft*ii;Or=dr+it*(ii=Or)-Ft*jr,jr=Sr+it*jr+Ft*ii,dr=it*(ii=dr)-Ft*Sr-Be,Sr=it*Sr+Ft*ii-tt;var Li=Or*Or+jr*jr,un,sn;it-=un=(dr*Or+Sr*jr)/Li,Ft-=sn=(Sr*Or-dr*jr)/Li}while(n(un)+n(sn)>p*p&&--We>0);if(We){var Pn=G(it*it+Ft*Ft),Kn=2*i(Pn*.5),Aa=x(Kn);return[a(it*Aa,Pn*o(Kn)),Pn?O(Ft*Aa/Pn):0]}},Re}var Po=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],od=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Yo=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Pa=[[.9245,0],[0,0],[.01943,0]],nf=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Hu(){return ql(Po,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function bl(){return ql(od,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Vf(){return ql(Yo,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Ic(){return ql(Pa,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function gf(){return ql(nf,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function ql(ve,be){var Re=t.geoProjection(ad(ve)).rotate(be).clipAngle(90),Be=t.geoRotation(be),tt=Re.center;return delete Re.rotate,Re.center=function(We){return arguments.length?tt(Be(We)):Be.invert(tt())},Re}var _h=G(6),Qf=G(7);function mf(ve,be){var Re=O(7*x(be)/(3*_h));return[_h*ve*(2*o(2*Re/3)-1)/Qf,9*x(Re/3)/Qf]}mf.invert=function(ve,be){var Re=3*O(be*Qf/9);return[ve*Qf/(_h*(2*o(2*Re/3)-1)),O(x(Re)*3*_h/7)]};function Yc(){return t.geoProjection(mf).scale(164.859)}function eh(ve,be){for(var Re=(1+_)*x(be),Be=be,tt=0,We;tt<25&&(Be-=We=(x(Be/2)+x(Be)-Re)/(.5*o(Be/2)+o(Be)),!(n(We)C&&--Be>0);return We=Re*Re,it=We*We,Ft=We*it,[ve/(.84719-.13063*We+Ft*Ft*(-.04515+.05494*We-.02326*it+.00331*Ft)),Re]};function af(){return t.geoProjection(cc).scale(175.295)}function Bl(ve,be){return[ve*(1+o(be))/2,2*(be-b(be/2))]}Bl.invert=function(ve,be){for(var Re=be/2,Be=0,tt=1/0;Be<10&&n(tt)>p;++Be){var We=o(be/2);be-=tt=(be-b(be/2)-Re)/(1-.5/(We*We))}return[2*ve/(1+o(be)),be]};function Kc(){return t.geoProjection(Bl).scale(152.63)}var Rc=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function ms(){return Do(Ze(1/0),Rc).rotate([20,0]).scale(152.63)}function Hf(ve,be){var Re=x(be),Be=o(be),tt=v(ve);if(ve===0||n(be)===A)return[0,be];if(be===0)return[ve,0];if(n(ve)===A)return[ve*Be,A*Re];var We=E/(2*ve)-2*ve/E,it=2*be/E,Ft=(1-it*it)/(Re-it),jt=We*We,tr=Ft*Ft,dr=1+jt/tr,Sr=1+tr/jt,Or=(We*Re/Ft-We/2)/dr,jr=(tr*Re/jt+Ft/2)/Sr,ii=Or*Or+Be*Be/dr,Li=jr*jr-(tr*Re*Re/jt+Ft*Re-1)/Sr;return[A*(Or+G(ii)*tt),A*(jr+G(Li<0?0:Li)*v(-be*We)*tt)]}Hf.invert=function(ve,be){ve/=A,be/=A;var Re=ve*ve,Be=be*be,tt=Re+Be,We=E*E;return[ve?(tt-1+G((1-tt)*(1-tt)+4*Re))/(2*ve)*A:0,Kt(function(it){return tt*(E*x(it)-2*it)*E+4*it*it*(be-x(it))+2*E*it-We*be},0)]};function Uh(){return t.geoProjection(Hf).scale(127.267)}var rh=1.0148,of=.23185,xh=-.14499,Mu=.02406,ih=rh,Ws=5*of,Eu=7*xh,Dc=9*Mu,ks=1.790857183;function bc(ve,be){var Re=be*be;return[ve,be*(rh+Re*Re*(of+Re*(xh+Mu*Re)))]}bc.invert=function(ve,be){be>ks?be=ks:be<-ks&&(be=-ks);var Re=be,Be;do{var tt=Re*Re;Re-=Be=(Re*(rh+tt*tt*(of+tt*(xh+Mu*tt)))-be)/(ih+tt*tt*(Ws+tt*(Eu+Dc*tt)))}while(n(Be)>p);return[ve,Re]};function du(){return t.geoProjection(bc).scale(139.319)}function _u(ve,be){if(n(be)p&&--tt>0);return it=b(Be),[(n(be)=0;)if(Be=be[Ft],Re[0]===Be[0]&&Re[1]===Be[1]){if(We)return[We,Re];We=Re}}}function jl(ve){for(var be=ve.length,Re=[],Be=ve[be-1],tt=0;tt0?[-Be[0],0]:[180-Be[0],180])};var be=Pf.map(function(Re){return{face:Re,project:ve(Re)}});return[-1,0,0,1,0,1,4,5].forEach(function(Re,Be){var tt=be[Re];tt&&(tt.children||(tt.children=[])).push(be[Be])}),yf(be[0],function(Re,Be){return be[Re<-E/2?Be<0?6:4:Re<0?Be<0?2:0:ReBe^jr>Be&&Re<(Or-tr)*(Be-dr)/(jr-dr)+tr&&(tt=!tt)}return tt}function Wl(ve,be){var Re=be.stream,Be;if(!Re)throw new Error("invalid projection");switch(ve&&ve.type){case"Feature":Be=Zu;break;case"FeatureCollection":Be=ah;break;default:Be=Tc;break}return Be(ve,Re)}function ah(ve,be){return{type:"FeatureCollection",features:ve.features.map(function(Re){return Zu(Re,be)})}}function Zu(ve,be){return{type:"Feature",id:ve.id,properties:ve.properties,geometry:Tc(ve.geometry,be)}}function Oc(ve,be){return{type:"GeometryCollection",geometries:ve.geometries.map(function(Re){return Tc(Re,be)})}}function Tc(ve,be){if(!ve)return null;if(ve.type==="GeometryCollection")return Oc(ve,be);var Re;switch(ve.type){case"Point":Re=qc;break;case"MultiPoint":Re=qc;break;case"LineString":Re=uf;break;case"MultiLineString":Re=uf;break;case"Polygon":Re=fc;break;case"MultiPolygon":Re=fc;break;case"Sphere":Re=fc;break;default:return null}return t.geoStream(ve,be(Re)),Re.result()}var wl=[],pu=[],qc={point:function(ve,be){wl.push([ve,be])},result:function(){var ve=wl.length?wl.length<2?{type:"Point",coordinates:wl[0]}:{type:"MultiPoint",coordinates:wl}:null;return wl=[],ve}},uf={lineStart:Xu,point:function(ve,be){wl.push([ve,be])},lineEnd:function(){wl.length&&(pu.push(wl),wl=[])},result:function(){var ve=pu.length?pu.length<2?{type:"LineString",coordinates:pu[0]}:{type:"MultiLineString",coordinates:pu}:null;return pu=[],ve}},fc={polygonStart:Xu,lineStart:Xu,point:function(ve,be){wl.push([ve,be])},lineEnd:function(){var ve=wl.length;if(ve){do wl.push(wl[0].slice());while(++ve<4);pu.push(wl),wl=[]}},polygonEnd:Xu,result:function(){if(!pu.length)return null;var ve=[],be=[];return pu.forEach(function(Re){lf(Re)?ve.push([Re]):be.push(Re)}),be.forEach(function(Re){var Be=Re[0];ve.some(function(tt){if(Wf(tt[0],Be))return tt.push(Re),!0})||ve.push([Re])}),pu=[],ve.length?ve.length>1?{type:"MultiPolygon",coordinates:ve}:{type:"Polygon",coordinates:ve[0]}:null}};function Bc(ve){var be=ve(A,0)[0]-ve(-A,0)[0];function Re(Be,tt){var We=n(Be)0?Be-E:Be+E,tt),Ft=(it[0]-it[1])*_,jt=(it[0]+it[1])*_;if(We)return[Ft,jt];var tr=be*_,dr=Ft>0^jt>0?-1:1;return[dr*Ft-v(jt)*tr,dr*jt-v(Ft)*tr]}return ve.invert&&(Re.invert=function(Be,tt){var We=(Be+tt)*_,it=(tt-Be)*_,Ft=n(We)<.5*be&&n(it)<.5*be;if(!Ft){var jt=be*_,tr=We>0^it>0?-1:1,dr=-tr*Be+(it>0?1:-1)*jt,Sr=-tr*tt+(We>0?1:-1)*jt;We=(-dr-Sr)*_,it=(dr-Sr)*_}var Or=ve.invert(We,it);return Ft||(Or[0]+=We>0?E:-E),Or}),t.geoProjection(Re).rotate([-90,-90,45]).clipAngle(180-.001)}function Tt(){return Bc(ki).scale(176.423)}function Xt(){return Bc(Lo).scale(111.48)}function Lr(ve,be){if(!(0<=(be=+be)&&be<=20))throw new Error("invalid digits");function Re(tr){var dr=tr.length,Sr=2,Or=new Array(dr);for(Or[0]=+tr[0].toFixed(be),Or[1]=+tr[1].toFixed(be);Sr2||jr[0]!=dr[0]||jr[1]!=dr[1])&&(Sr.push(jr),dr=jr)}return Sr.length===1&&tr.length>1&&Sr.push(Re(tr[tr.length-1])),Sr}function We(tr){return tr.map(tt)}function it(tr){if(tr==null)return tr;var dr;switch(tr.type){case"GeometryCollection":dr={type:"GeometryCollection",geometries:tr.geometries.map(it)};break;case"Point":dr={type:"Point",coordinates:Re(tr.coordinates)};break;case"MultiPoint":dr={type:tr.type,coordinates:Be(tr.coordinates)};break;case"LineString":dr={type:tr.type,coordinates:tt(tr.coordinates)};break;case"MultiLineString":case"Polygon":dr={type:tr.type,coordinates:We(tr.coordinates)};break;case"MultiPolygon":dr={type:"MultiPolygon",coordinates:tr.coordinates.map(We)};break;default:return tr}return tr.bbox!=null&&(dr.bbox=tr.bbox),dr}function Ft(tr){var dr={type:"Feature",properties:tr.properties,geometry:it(tr.geometry)};return tr.id!=null&&(dr.id=tr.id),tr.bbox!=null&&(dr.bbox=tr.bbox),dr}if(ve!=null)switch(ve.type){case"Feature":return Ft(ve);case"FeatureCollection":{var jt={type:"FeatureCollection",features:ve.features.map(Ft)};return ve.bbox!=null&&(jt.bbox=ve.bbox),jt}default:return it(ve)}return ve}function Ar(ve){var be=x(ve);function Re(Be,tt){var We=be?b(Be*be/2)/be:Be/2;if(!tt)return[2*We,-ve];var it=2*i(We*x(tt)),Ft=1/b(tt);return[x(it)*Ft,tt+(1-o(it))*Ft-ve]}return Re.invert=function(Be,tt){if(n(tt+=ve)p&&--Ft>0);var Or=Be*(tr=b(it)),jr=b(n(tt)0?A:-A)*(jt+tt*(dr-it)/2+tt*tt*(dr-2*jt+it)/2)]}Wi.invert=function(ve,be){var Re=be/A,Be=Re*90,tt=f(18,n(Be/5)),We=c(0,l(tt));do{var it=Ei[We][1],Ft=Ei[We+1][1],jt=Ei[f(19,We+2)][1],tr=jt-it,dr=jt-2*Ft+it,Sr=2*(n(Re)-Ft)/tr,Or=dr/tr,jr=Sr*(1-Or*Sr*(1-2*Or*Sr));if(jr>=0||We===1){Be=(be>=0?5:-5)*(jr+tt);var ii=50,Li;do tt=f(18,n(Be)/5),We=l(tt),jr=tt-We,it=Ei[We][1],Ft=Ei[We+1][1],jt=Ei[f(19,We+2)][1],Be-=(Li=(be>=0?A:-A)*(Ft+jr*(jt-it)/2+jr*jr*(jt-2*Ft+it)/2)-be)*P;while(n(Li)>C&&--ii>0);break}}while(--We>=0);var un=Ei[We][0],sn=Ei[We+1][0],Pn=Ei[f(19,We+2)][0];return[ve/(sn+jr*(Pn-un)/2+jr*jr*(Pn-2*sn+un)/2),Be*T]};function hn(){return t.geoProjection(Wi).scale(152.63)}function Tn(ve){function be(Re,Be){var tt=o(Be),We=(ve-1)/(ve-tt*o(Re));return[We*tt*x(Re),We*x(Be)]}return be.invert=function(Re,Be){var tt=Re*Re+Be*Be,We=G(tt),it=(ve-G(1-tt*(ve+1)/(ve-1)))/((ve-1)/We+We/(ve-1));return[a(Re*it,We*G(1-it*it)),We?O(Be*it/We):0]},be}function Bn(ve,be){var Re=Tn(ve);if(!be)return Re;var Be=o(be),tt=x(be);function We(it,Ft){var jt=Re(it,Ft),tr=jt[1],dr=tr*tt/(ve-1)+Be;return[jt[0]*Be/dr,tr/dr]}return We.invert=function(it,Ft){var jt=(ve-1)/(ve-1-Ft*tt);return Re.invert(jt*it,jt*Ft*Be)},We}function Zi(){var ve=2,be=0,Re=t.geoProjectionMutator(Bn),Be=Re(ve,be);return Be.distance=function(tt){return arguments.length?Re(ve=+tt,be):ve},Be.tilt=function(tt){return arguments.length?Re(ve,be=tt*T):be*P},Be.scale(432.147).clipAngle(V(1/ve)*P-1e-6)}var $i=1e-4,an=1e4,Di=-180,$n=Di+$i,ka=180,Ra=ka-$i,La=-90,Na=La+$i,Yn=90,zn=Yn-$i;function Ka(ve){return ve.length>0}function bo(ve){return Math.floor(ve*an)/an}function Xo(ve){return ve===La||ve===Yn?[0,ve]:[Di,bo(ve)]}function Ms(ve){var be=ve[0],Re=ve[1],Be=!1;return be<=$n?(be=Di,Be=!0):be>=Ra&&(be=ka,Be=!0),Re<=Na?(Re=La,Be=!0):Re>=zn&&(Re=Yn,Be=!0),Be?[be,Re]:ve}function os(ve){return ve.map(Ms)}function Ts(ve,be,Re){for(var Be=0,tt=ve.length;Be=Ra||dr<=Na||dr>=zn){We[it]=Ms(jt);for(var Sr=it+1;Sr$n&&jrNa&&ii=Ft)break;Re.push({index:-1,polygon:be,ring:We=We.slice(Sr-1)}),We[0]=Xo(We[0][1]),it=-1,Ft=We.length}}}}function Ho(ve){var be,Re=ve.length,Be={},tt={},We,it,Ft,jt,tr;for(be=0;be0?E-Ft:Ft)*P],tr=t.geoProjection(ve(it)).rotate(jt),dr=t.geoRotation(jt),Sr=tr.center;return delete tr.rotate,tr.center=function(Or){return arguments.length?Sr(dr(Or)):dr.invert(Sr())},tr.clipAngle(90)}function is(ve){var be=o(ve);function Re(Be,tt){var We=t.geoGnomonicRaw(Be,tt);return We[0]*=be,We}return Re.invert=function(Be,tt){return t.geoGnomonicRaw.invert(Be/be,tt)},Re}function $l(){return ku([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function ku(ve,be){return _s(is,ve,be)}function Yu(ve){if(!(ve*=2))return t.geoAzimuthalEquidistantRaw;var be=-ve/2,Re=-be,Be=ve*ve,tt=b(Re),We=.5/x(Re);function it(Ft,jt){var tr=V(o(jt)*o(Ft-be)),dr=V(o(jt)*o(Ft-Re)),Sr=jt<0?-1:1;return tr*=tr,dr*=dr,[(tr-dr)/(2*ve),Sr*G(4*Be*dr-(Be-tr+dr)*(Be-tr+dr))/(2*ve)]}return it.invert=function(Ft,jt){var tr=jt*jt,dr=o(G(tr+(Or=Ft+be)*Or)),Sr=o(G(tr+(Or=Ft+Re)*Or)),Or,jr;return[a(jr=dr-Sr,Or=(dr+Sr)*tt),(jt<0?-1:1)*V(G(Or*Or+jr*jr)*We)]},it}function Nc(){return gu([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function gu(ve,be){return _s(Yu,ve,be)}function Uc(ve,be){if(n(be)p&&--Ft>0);return[v(ve)*(G(tt*tt+4)+tt)*E/4,A*it]};function Ku(){return t.geoProjection(hc).scale(127.16)}function ue(ve,be,Re,Be,tt){function We(it,Ft){var jt=Re*x(Be*Ft),tr=G(1-jt*jt),dr=G(2/(1+tr*o(it*=tt)));return[ve*tr*dr*x(it),be*jt*dr]}return We.invert=function(it,Ft){var jt=it/ve,tr=Ft/be,dr=G(jt*jt+tr*tr),Sr=2*O(dr/2);return[a(it*b(Sr),ve*dr)/tt,dr&&O(Ft*x(Sr)/(be*Re*dr))/Be]},We}function w(ve,be,Re,Be){var tt=E/3;ve=c(ve,p),be=c(be,p),ve=f(ve,A),be=f(be,E-p),Re=c(Re,0),Re=f(Re,100-p),Be=c(Be,p);var We=Re/100+1,it=Be/100,Ft=V(We*o(tt))/tt,jt=x(ve)/x(Ft*A),tr=be/E,dr=G(it*x(ve/2)/x(be/2)),Sr=dr/G(tr*jt*Ft),Or=1/(dr*G(tr*jt*Ft));return ue(Sr,Or,jt,Ft,tr)}function B(){var ve=65*T,be=60*T,Re=20,Be=200,tt=t.geoProjectionMutator(w),We=tt(ve,be,Re,Be);return We.poleline=function(it){return arguments.length?tt(ve=+it*T,be,Re,Be):ve*P},We.parallels=function(it){return arguments.length?tt(ve,be=+it*T,Re,Be):be*P},We.inflation=function(it){return arguments.length?tt(ve,be,Re=+it,Be):Re},We.ratio=function(it){return arguments.length?tt(ve,be,Re,Be=+it):Be},We.scale(163.775)}function Q(){return B().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var ee=4*E+3*G(3),le=2*G(2*E*G(3)/ee),qe=$t(le*G(3)/E,le,ee/6);function Xe(){return t.geoProjection(qe).scale(176.84)}function ot(ve,be){return[ve*G(1-3*be*be/(E*E)),be]}ot.invert=function(ve,be){return[ve/G(1-3*be*be/(E*E)),be]};function wt(){return t.geoProjection(ot).scale(152.63)}function Yt(ve,be){var Re=o(be),Be=o(ve)*Re,tt=1-Be,We=o(ve=a(x(ve)*Re,-x(be))),it=x(ve);return Re=G(1-Be*Be),[it*Re-We*tt,-We*Re-it*tt]}Yt.invert=function(ve,be){var Re=(ve*ve+be*be)/-2,Be=G(-Re*(2+Re)),tt=be*Re+ve*Be,We=ve*Re-be*Be,it=G(We*We+tt*tt);return[a(Be*tt,it*(1+Re)),it?-O(Be*We/it):0]};function Jt(){return t.geoProjection(Yt).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function xr(ve,be){var Re=Me(ve,be);return[(Re[0]+ve/A)/2,(Re[1]+be)/2]}xr.invert=function(ve,be){var Re=ve,Be=be,tt=25;do{var We=o(Be),it=x(Be),Ft=x(2*Be),jt=it*it,tr=We*We,dr=x(Re),Sr=o(Re/2),Or=x(Re/2),jr=Or*Or,ii=1-tr*Sr*Sr,Li=ii?V(We*Sr)*G(un=1/ii):un=0,un,sn=.5*(2*Li*We*Or+Re/A)-ve,Pn=.5*(Li*it+Be)-be,Kn=.5*un*(tr*jr+Li*We*Sr*jt)+.5/A,Aa=un*(dr*Ft/4-Li*it*Or),fa=.125*un*(Ft*Or-Li*it*tr*dr),$a=.5*un*(jt*Sr+Li*jr*We)+.5,ko=Aa*fa-$a*Kn,Qa=(Pn*Aa-sn*$a)/ko,mo=(sn*fa-Pn*Kn)/ko;Re-=Qa,Be-=mo}while((n(Qa)>p||n(mo)>p)&&--tt>0);return[Re,Be]};function Ir(){return t.geoProjection(xr).scale(158.837)}e.geoNaturalEarth=t.geoNaturalEarth1,e.geoNaturalEarthRaw=t.geoNaturalEarth1Raw,e.geoAiry=_e,e.geoAiryRaw=oe,e.geoAitoff=ke,e.geoAitoffRaw=Me,e.geoArmadillo=ie,e.geoArmadilloRaw=me,e.geoAugust=Le,e.geoAugustRaw=Se,e.geoBaker=ge,e.geoBakerRaw=Pe,e.geoBerghaus=ce,e.geoBerghausRaw=De,e.geoBertin1953=Gt,e.geoBertin1953Raw=lt,e.geoBoggs=Ct,e.geoBoggsRaw=Mt,e.geoBonne=rr,e.geoBonneRaw=bt,e.geoBottomley=wr,e.geoBottomleyRaw=lr,e.geoBromley=Kr,e.geoBromleyRaw=Cr,e.geoChamberlin=Je,e.geoChamberlinRaw=Ge,e.geoChamberlinAfrica=je,e.geoCollignon=Ie,e.geoCollignonRaw=xt,e.geoCraig=Ce,e.geoCraigRaw=xe,e.geoCraster=ir,e.geoCrasterRaw=nr,e.geoCylindricalEqualArea=si,e.geoCylindricalEqualAreaRaw=vr,e.geoCylindricalStereographic=ei,e.geoCylindricalStereographicRaw=mi,e.geoEckert1=ji,e.geoEckert1Raw=vi,e.geoEckert2=wn,e.geoEckert2Raw=Rn,e.geoEckert3=Vn,e.geoEckert3Raw=pn,e.geoEckert4=ea,e.geoEckert4Raw=kn,e.geoEckert5=Ht,e.geoEckert5Raw=ua,e.geoEckert6=er,e.geoEckert6Raw=yt,e.geoEisenlohr=Xr,e.geoEisenlohrRaw=Er,e.geoFahey=zi,e.geoFaheyRaw=$r,e.geoFoucaut=en,e.geoFoucautRaw=Ji,e.geoFoucautSinusoidal=yn,e.geoFoucautSinusoidalRaw=cn,e.geoGilbert=la,e.geoGingery=Wo,e.geoGingeryRaw=ma,e.geoGinzburg4=Ga,e.geoGinzburg4Raw=Wn,e.geoGinzburg5=jn,e.geoGinzburg5Raw=vo,e.geoGinzburg6=kr,e.geoGinzburg6Raw=At,e.geoGinzburg8=di,e.geoGinzburg8Raw=Qr,e.geoGinzburg9=Sn,e.geoGinzburg9Raw=fn,e.geoGringorten=Jn,e.geoGringortenRaw=ki,e.geoGuyou=zs,e.geoGuyouRaw=Lo,e.geoHammer=gt,e.geoHammerRaw=Ze,e.geoHammerRetroazimuthal=Fl,e.geoHammerRetroazimuthalRaw=ul,e.geoHealpix=Zl,e.geoHealpixRaw=fl,e.geoHill=nc,e.geoHillRaw=Su,e.geoHomolosine=xo,e.geoHomolosineRaw=zl,e.geoHufnagel=Us,e.geoHufnagelRaw=Yl,e.geoHyperelliptical=Oo,e.geoHyperellipticalRaw=aa,e.geoInterrupt=Do,e.geoInterruptedBoggs=Nf,e.geoInterruptedHomolosine=Zc,e.geoInterruptedMollweide=qs,e.geoInterruptedMollweideHemispheres=oc,e.geoInterruptedSinuMollweide=sc,e.geoInterruptedSinusoidal=kf,e.geoKavrayskiy7=rf,e.geoKavrayskiy7Raw=fs,e.geoLagrange=Jl,e.geoLagrangeRaw=Uf,e.geoLarrivee=Fu,e.geoLarriveeRaw=lc,e.geoLaskowski=js,e.geoLaskowskiRaw=Cs,e.geoLittrow=gs,e.geoLittrowRaw=Go,e.geoLoximuthal=xl,e.geoLoximuthalRaw=uc,e.geoMiller=Bs,e.geoMillerRaw=Gu,e.geoModifiedStereographic=ql,e.geoModifiedStereographicRaw=ad,e.geoModifiedStereographicAlaska=Hu,e.geoModifiedStereographicGs48=bl,e.geoModifiedStereographicGs50=Vf,e.geoModifiedStereographicMiller=Ic,e.geoModifiedStereographicLee=gf,e.geoMollweide=Tr,e.geoMollweideRaw=sr,e.geoMtFlatPolarParabolic=Yc,e.geoMtFlatPolarParabolicRaw=mf,e.geoMtFlatPolarQuartic=th,e.geoMtFlatPolarQuarticRaw=eh,e.geoMtFlatPolarSinusoidal=Gf,e.geoMtFlatPolarSinusoidalRaw=ju,e.geoNaturalEarth2=af,e.geoNaturalEarth2Raw=cc,e.geoNellHammer=Kc,e.geoNellHammerRaw=Bl,e.geoInterruptedQuarticAuthalic=ms,e.geoNicolosi=Uh,e.geoNicolosiRaw=Hf,e.geoPatterson=du,e.geoPattersonRaw=bc,e.geoPolyconic=al,e.geoPolyconicRaw=_u,e.geoPolyhedral=yf,e.geoPolyhedralButterfly=Ls,e.geoPolyhedralCollignon=jf,e.geoPolyhedralWaterman=Vs,e.geoProject=Wl,e.geoGringortenQuincuncial=Tt,e.geoPeirceQuincuncial=Xt,e.geoPierceQuincuncial=Xt,e.geoQuantize=Lr,e.geoQuincuncial=Bc,e.geoRectangularPolyconic=Jr,e.geoRectangularPolyconicRaw=Ar,e.geoRobinson=hn,e.geoRobinsonRaw=Wi,e.geoSatellite=Zi,e.geoSatelliteRaw=Bn,e.geoSinuMollweide=Vu,e.geoSinuMollweideRaw=_a,e.geoSinusoidal=Ot,e.geoSinusoidalRaw=It,e.geoStitch=Ps,e.geoTimes=no,e.geoTimesRaw=va,e.geoTwoPointAzimuthal=ku,e.geoTwoPointAzimuthalRaw=is,e.geoTwoPointAzimuthalUsa=$l,e.geoTwoPointEquidistant=gu,e.geoTwoPointEquidistantRaw=Yu,e.geoTwoPointEquidistantUsa=Nc,e.geoVanDerGrinten=xu,e.geoVanDerGrintenRaw=Uc,e.geoVanDerGrinten2=Ua,e.geoVanDerGrinten2Raw=Ac,e.geoVanDerGrinten3=Vc,e.geoVanDerGrinten3Raw=oo,e.geoVanDerGrinten4=Ku,e.geoVanDerGrinten4Raw=hc,e.geoWagner=B,e.geoWagner7=Q,e.geoWagnerRaw=w,e.geoWagner4=Xe,e.geoWagner4Raw=qe,e.geoWagner6=wt,e.geoWagner6Raw=ot,e.geoWiechel=Jt,e.geoWiechelRaw=Yt,e.geoWinkel3=Ir,e.geoWinkel3Raw=xr,Object.defineProperty(e,"__esModule",{value:!0})})});var yDe=ye((cgr,mDe)=>{"use strict";var id=Oa(),LZ=Dr(),UFt=qa(),ZA=Math.PI/180,H2=180/Math.PI,IZ={cursor:"pointer"},RZ={cursor:"auto"};function VFt(e,t){var r=e.projection,n;return t._isScoped?n=GFt:t._isClipped?n=jFt:n=HFt,n(e,r)}mDe.exports=VFt;function DZ(e,t){return id.behavior.zoom().translate(t.translate()).scale(t.scale())}function FZ(e,t,r){var n=e.id,i=e.graphDiv,a=i.layout,o=a[n],s=i._fullLayout,l=s[n],u={},c={};function f(h,d){u[n+"."+h]=LZ.nestedProperty(o,h).get(),UFt.call("_storeDirectGUIEdit",a,s._preGUI,u);var v=LZ.nestedProperty(l,h);v.get()!==d&&(v.set(d),LZ.nestedProperty(o,h).set(d),c[n+"."+h]=d)}r(f),f("projection.scale",t.scale()/e.fitScale),f("fitbounds",!1),i.emit("plotly_relayout",c)}function GFt(e,t){var r=DZ(e,t);function n(){id.select(this).style(IZ)}function i(){t.scale(id.event.scale).translate(id.event.translate),e.render(!0);var s=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":s[0],"geo.center.lat":s[1]})}function a(s){var l=t.invert(e.midPt);s("center.lon",l[0]),s("center.lat",l[1])}function o(){id.select(this).style(RZ),FZ(e,t,a)}return r.on("zoomstart",n).on("zoom",i).on("zoomend",o),r}function HFt(e,t){var r=DZ(e,t),n=2,i,a,o,s,l,u,c,f,h;function d(E){return t.invert(E)}function v(E){var A=d(E);if(!A)return!0;var L=t(A);return Math.abs(L[0]-E[0])>n||Math.abs(L[1]-E[1])>n}function x(){id.select(this).style(IZ),i=id.mouse(this),a=t.rotate(),o=t.translate(),s=a,l=d(i)}function b(){if(u=id.mouse(this),v(i)){r.scale(t.scale()),r.translate(t.translate());return}t.scale(id.event.scale),t.translate([o[0],id.event.translate[1]]),l?d(u)&&(f=d(u),c=[s[0]+(f[0]-l[0]),a[1],a[2]],t.rotate(c),s=c):(i=u,l=d(i)),h=!0,e.render(!0);var E=t.rotate(),A=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":A[0],"geo.center.lat":A[1],"geo.projection.rotation.lon":-E[0]})}function p(){id.select(this).style(RZ),h&&FZ(e,t,C)}function C(E){var A=t.rotate(),L=t.invert(e.midPt);E("projection.rotation.lon",-A[0]),E("center.lon",L[0]),E("center.lat",L[1])}return r.on("zoomstart",x).on("zoom",b).on("zoomend",p),r}function jFt(e,t){var r={r:t.rotate(),k:t.scale()},n=DZ(e,t),i=QFt(n,"zoomstart","zoom","zoomend"),a=0,o=n.on,s;n.on("zoomstart",function(){id.select(this).style(IZ);var h=id.mouse(this),d=t.rotate(),v=d,x=t.translate(),b=WFt(d);s=EF(t,h),o.call(n,"zoom",function(){var p=id.mouse(this);if(t.scale(r.k=id.event.scale),!s)h=p,s=EF(t,h);else if(EF(t,p)){t.rotate(d).translate(x);var C=EF(t,p),E=ZFt(s,C),A=KFt(XFt(b,E)),L=r.r=YFt(A,s,v);(!isFinite(L[0])||!isFinite(L[1])||!isFinite(L[2]))&&(L=v),t.rotate(L),v=L}u(i.of(this,arguments))}),l(i.of(this,arguments))}).on("zoomend",function(){id.select(this).style(RZ),o.call(n,"zoom",null),c(i.of(this,arguments)),FZ(e,t,f)}).on("zoom.redraw",function(){e.render(!0);var h=t.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function l(h){a++||h({type:"zoomstart"})}function u(h){h({type:"zoom"})}function c(h){--a||h({type:"zoomend"})}function f(h){var d=t.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return id.rebind(n,i,"on")}function EF(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&JFt(r)}function WFt(e){var t=.5*e[0]*ZA,r=.5*e[1]*ZA,n=.5*e[2]*ZA,i=Math.sin(t),a=Math.cos(t),o=Math.sin(r),s=Math.cos(r),l=Math.sin(n),u=Math.cos(n);return[a*s*u+i*o*l,i*s*u-a*o*l,a*o*u+i*s*l,a*s*l-i*o*u]}function XFt(e,t){var r=e[0],n=e[1],i=e[2],a=e[3],o=t[0],s=t[1],l=t[2],u=t[3];return[r*o-n*s-i*l-a*u,r*s+n*o+i*u-a*l,r*l-n*u+i*o+a*s,r*u+n*l-i*s+a*o]}function ZFt(e,t){if(!(!e||!t)){var r=$Ft(e,t),n=Math.sqrt(gDe(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,gDe(e,t)))),a=Math.sin(i)/n;return n&&[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function YFt(e,t,r){var n=PZ(t,2,e[0]);n=PZ(n,1,e[1]),n=PZ(n,0,e[2]-r[2]);var i=t[0],a=t[1],o=t[2],s=n[0],l=n[1],u=n[2],c=Math.atan2(a,i)*H2,f=Math.sqrt(i*i+a*a),h,d;Math.abs(l)>f?(d=(l>0?90:-90)-c,h=0):(d=Math.asin(l/f)*H2-c,h=Math.sqrt(f*f-l*l));var v=180-d-2*c,x=(Math.atan2(u,s)-Math.atan2(o,h))*H2,b=(Math.atan2(u,s)-Math.atan2(o,-h))*H2,p=vDe(r[0],r[1],d,x),C=vDe(r[0],r[1],v,b);return p<=C?[d,x,r[2]]:[v,b,r[2]]}function vDe(e,t,r,n){var i=pDe(r-e),a=pDe(n-t);return Math.sqrt(i*i+a*a)}function pDe(e){return(e%360+540)%360-180}function PZ(e,t,r){var n=r*ZA,i=e.slice(),a=t===0?1:0,o=t===2?1:2,s=Math.cos(n),l=Math.sin(n);return i[a]=e[a]*s-e[o]*l,i[o]=e[o]*s+e[a]*l,i}function KFt(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*H2,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*H2,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*H2]}function JFt(e){var t=e[0]*ZA,r=e[1]*ZA,n=Math.cos(r);return[n*Math.cos(t),n*Math.sin(t),Math.sin(r)]}function gDe(e,t){for(var r=0,n=0,i=e.length;n{"use strict";var t1=Oa(),qZ=kZ(),ezt=qZ.geoPath,tzt=qZ.geoDistance,rzt=dDe(),izt=qa(),rC=Dr(),nzt=rC.strTranslate,CF=Ca(),tC=So(),_De=df(),azt=Mc(),OZ=ho(),xDe=wg().getAutoRange,zZ=gv(),ozt=Ff().prepSelect,szt=Ff().clearOutline,lzt=Ff().selectOnClick,uzt=yDe(),cp=JE(),czt=nx(),wDe=hF(),fzt=vZ().feature;function TDe(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var $g=TDe.prototype;ADe.exports=function(t){return new TDe(t)};$g.plot=function(e,t,r,n){var i=this;if(n)return i.update(e,t,!0);i._geoCalcData=e,i._fullLayout=t;var a=t[this.id],o=[],s=!1;for(var l in cp.layerNameToAdjective)if(l!=="frame"&&a["show"+l]){s=!0;break}for(var u=!1,c=0;c0&&o._module.calcGeoJSON(a,t)}if(!r){var s=this.updateProjection(e,t);if(s)return;(!this.viewInitial||this.scope!==n.scope)&&this.saveViewInitial(n)}this.scope=n.scope,this.updateBaseLayers(t,n),this.updateDims(t,n),this.updateFx(t,n),azt.generalUpdatePerTraceModule(this.graphDiv,this,e,n);var l=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=l.selectAll(".point"),this.dataPoints.text=l.selectAll("text"),this.dataPaths.line=l.selectAll(".js-line");var u=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=u.selectAll("path"),this._render()};$g.updateProjection=function(e,t){var r=this.graphDiv,n=t[this.id],i=t._size,a=n.domain,o=n.projection,s=n.lonaxis,l=n.lataxis,u=s._ax,c=l._ax,f=this.projection=hzt(n),h=[[i.l+i.w*a.x[0],i.t+i.h*(1-a.y[1])],[i.l+i.w*a.x[1],i.t+i.h*(1-a.y[0])]],d=n.center||{},v=o.rotation||{},x=s.range||[],b=l.range||[];if(n.fitbounds){u._length=h[1][0]-h[0][0],c._length=h[1][1]-h[0][1],u.range=xDe(r,u),c.range=xDe(r,c);var p=(u.range[0]+u.range[1])/2,C=(c.range[0]+c.range[1])/2;if(n._isScoped)d={lon:p,lat:C};else if(n._isClipped){d={lon:p,lat:C},v={lon:p,lat:C,roll:v.roll};var E=o.type,A=cp.lonaxisSpan[E]/2||180,L=cp.lataxisSpan[E]/2||90;x=[p-A,p+A],b=[C-L,C+L]}else d={lon:p,lat:C},v={lon:p,lat:v.lat,roll:v.roll}}f.center([d.lon-v.lon,d.lat-v.lat]).rotate([-v.lon,-v.lat,v.roll]).parallels(o.parallels);var _=bDe(x,b);f.fitExtent(h,_);var k=this.bounds=f.getBounds(_),M=this.fitScale=f.scale(),g=f.translate();if(n.fitbounds){var P=f.getBounds(bDe(u.range,c.range)),T=Math.min((k[1][0]-k[0][0])/(P[1][0]-P[0][0]),(k[1][1]-k[0][1])/(P[1][1]-P[0][1]));isFinite(T)?f.scale(T*M):rC.warn("Something went wrong during"+this.id+"fitbounds computations.")}else f.scale(o.scale*M);var z=this.midPt=[(k[0][0]+k[1][0])/2,(k[0][1]+k[1][1])/2];if(f.translate([g[0]+(z[0]-g[0]),g[1]+(z[1]-g[1])]).clipExtent(k),n._isAlbersUsa){var O=f([d.lon,d.lat]),V=f.translate();f.translate([V[0]-(O[0]-V[0]),V[1]-(O[1]-V[1])])}};$g.updateBaseLayers=function(e,t){var r=this,n=r.topojson,i=r.layers,a=r.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function s(h){return!!cp.lineLayers[h]}function l(h){return!!cp.fillLayers[h]}var u=this.hasChoropleth?cp.layersForChoropleth:cp.layers,c=u.filter(function(h){return s(h)||l(h)?t["show"+h]:o(h)?t[h].showgrid:!0}),f=r.framework.selectAll(".layer").data(c,String);f.exit().each(function(h){delete i[h],delete a[h],t1.select(this).remove()}),f.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=i[h]=t1.select(this);h==="bg"?r.bgRect=d.append("rect").style("pointer-events","all"):o(h)?a[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):s(h)?a[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):l(h)&&(a[h]=d.append("path").style("stroke","none"))}),f.order(),f.each(function(h){var d=a[h],v=cp.layerNameToAdjective[h];h==="frame"?d.datum(cp.sphereSVG):s(h)||l(h)?d.datum(fzt(n,n.objects[h])):o(h)&&d.datum(dzt(h,t,e)).call(CF.stroke,t[h].gridcolor).call(tC.dashLine,t[h].griddash,t[h].gridwidth),s(h)?d.call(CF.stroke,t[v+"color"]).call(tC.dashLine,"",t[v+"width"]):l(h)&&d.call(CF.fill,t[v+"color"])})};$g.updateDims=function(e,t){var r=this.bounds,n=(t.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,s=r[1][1]-a+n;tC.setRect(this.clipRect,i,a,o,s),this.bgRect.call(tC.setRect,i,a,o,s).call(CF.fill,t.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s};$g.updateFx=function(e,t){var r=this,n=r.graphDiv,i=r.bgRect,a=e.dragmode,o=e.clickmode;if(r.isStatic)return;function s(){var f=r.viewInitial,h={};for(var d in f)h[r.id+"."+d]=f[d];izt.call("_guiRelayout",n,h),n.emit("plotly_doubleclick",null)}function l(f){return r.projection.invert([f[0]+r.xaxis._offset,f[1]+r.yaxis._offset])}var u=function(f,h){if(h.isRect){var d=f.range={};d[r.id]=[l([h.xmin,h.ymin]),l([h.xmax,h.ymax])]}else{var v=f.lassoPoints={};v[r.id]=h.map(l)}},c={element:r.bgRect.node(),gd:n,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:u},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(f){f===2&&szt(n)}};a==="pan"?(i.node().onmousedown=null,i.call(uzt(r,t)),i.on("dblclick.zoom",s),n._context._scrollZoom.geo||i.on("wheel.zoom",null)):(a==="select"||a==="lasso")&&(i.on(".zoom",null),c.prepFn=function(f,h,d){ozt(f,h,d,c,a)},zZ.init(c)),i.on("mousemove",function(){var f=r.projection.invert(rC.getPositionFromD3Event());if(!f)return zZ.unhover(n,t1.event);r.xaxis.p2c=function(){return f[0]},r.yaxis.p2c=function(){return f[1]},_De.hover(n,t1.event,r.id)}),i.on("mouseout",function(){n._dragging||zZ.unhover(n,t1.event)}),i.on("click",function(){a!=="select"&&a!=="lasso"&&(o.indexOf("select")>-1&&lzt(t1.event,n,[r.xaxis],[r.yaxis],r.id,c),o.indexOf("event")>-1&&_De.click(n,t1.event))})};$g.makeFramework=function(){var e=this,t=e.graphDiv,r=t._fullLayout,n="clip"+r._uid+e.id;e.clipDef=r._clips.append("clipPath").attr("id",n),e.clipRect=e.clipDef.append("rect"),e.framework=t1.select(e.container).append("g").attr("class","geo "+e.id).call(tC.setClipUrl,n,t),e.project=function(i){var a=e.projection(i);return a?[a[0]-e.xaxis._offset,a[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(i){return e.project(i)[0]}},e.yaxis={_id:"y",c2p:function(i){return e.project(i)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},OZ.setConvert(e.mockAxis,r)};$g.saveViewInitial=function(e){var t=e.center||{},r=e.projection,n=r.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":r.scale};var i;e._isScoped?i={"center.lon":t.lon,"center.lat":t.lat}:e._isClipped?i={"projection.rotation.lon":n.lon,"projection.rotation.lat":n.lat}:i={"center.lon":t.lon,"center.lat":t.lat,"projection.rotation.lon":n.lon},rC.extendFlat(this.viewInitial,i)};$g.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};$g._render=function(){var e=this.projection,t=e.getPath(),r;function n(a){var o=e(a.lonlat);return o?nzt(o[0],o[1]):null}function i(a){return e.isLonLatOverEdges(a.lonlat)?"none":null}for(r in this.basePaths)this.basePaths[r].attr("d",t);for(r in this.dataPaths)this.dataPaths[r].attr("d",function(a){return t(a.geojson)});for(r in this.dataPoints)this.dataPoints[r].attr("display",i).attr("transform",n)};function hzt(e){var t=e.projection,r=t.type,n=cp.projNames[r];n="geo"+rC.titleCase(n);for(var i=qZ[n]||rzt[n],a=i(),o=e._isSatellite?Math.acos(1/t.distance)*180/Math.PI:e._isClipped?cp.lonaxisSpan[r]/2:null,s=["center","rotate","parallels","clipExtent"],l=function(f){return f?a:[]},u=0;uv}else return!1},a.getPath=function(){return ezt().projection(a)},a.getBounds=function(f){return a.getPath().bounds(f)},a.precision(cp.precision),e._isSatellite&&a.tilt(t.tilt).distance(t.distance),o&&a.clipAngle(o-cp.clipPad),a}function dzt(e,t,r){var n=1e-6,i=2.5,a=t[e],o=cp.scopeDefaults[t.scope],s,l,u;e==="lonaxis"?(s=o.lonaxisRange,l=o.lataxisRange,u=function(C,E){return[C,E]}):e==="lataxis"&&(s=o.lataxisRange,l=o.lonaxisRange,u=function(C,E){return[E,C]});var c={type:"linear",range:[s[0],s[1]-n],tick0:a.tick0,dtick:a.dtick};OZ.setConvert(c,r);var f=OZ.calcTicks(c);!t.isScoped&&e==="lonaxis"&&f.pop();for(var h=f.length,d=new Array(h),v=0;v0&&i<0&&(i+=360);var s=(i-n)/4;return{type:"Polygon",coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}});var BZ=ye((hgr,CDe)=>{"use strict";var KA=Eh(),vzt=kc().attributes,pzt=Pd().dash,YA=JE(),gzt=mc().overrideAll,MDe=Y1(),EDe={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:KA.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:pzt},mzt=CDe.exports=gzt({domain:vzt({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:MDe(YA.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:MDe(YA.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:KA.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:YA.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:YA.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:YA.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:YA.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:KA.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:KA.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:KA.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:KA.background},lonaxis:EDe,lataxis:EDe},"plot","from-root");mzt.uirevision={valType:"any",editType:"none"}});var PDe=ye((dgr,LDe)=>{"use strict";var kF=Dr(),yzt=k_(),_zt=Id().getSubplotData,LF=JE(),xzt=BZ(),kDe=LF.axesNames;LDe.exports=function(t,r,n){yzt(t,r,n,{type:"geo",attributes:xzt,handleDefaults:bzt,fullData:n,partition:"y"})};function bzt(e,t,r,n){var i=_zt(n.fullData,"geo",n.id),a=i.map(function(oe){return oe.index}),o=r("resolution"),s=r("scope"),l=LF.scopeDefaults[s],u=r("projection.type",l.projType),c=t._isAlbersUsa=u==="albers usa";c&&(s=t.scope="usa");var f=t._isScoped=s!=="world",h=t._isSatellite=u==="satellite",d=t._isConic=u.indexOf("conic")!==-1||u==="albers",v=t._isClipped=!!LF.lonaxisSpan[u];if(e.visible===!1){var x=kF.extendDeep({},t._template);x.showcoastlines=!1,x.showcountries=!1,x.showframe=!1,x.showlakes=!1,x.showland=!1,x.showocean=!1,x.showrivers=!1,x.showsubunits=!1,x.lonaxis&&(x.lonaxis.showgrid=!1),x.lataxis&&(x.lataxis.showgrid=!1),t._template=x}for(var b=r("visible"),p,C=0;C0&&O<0&&(O+=360);var V=(z+O)/2,G;if(!c){var Z=f?l.projRotate:[V,0,0];G=r("projection.rotation.lon",Z[0]),r("projection.rotation.lat",Z[1]),r("projection.rotation.roll",Z[2]),p=r("showcoastlines",!f&&b),p&&(r("coastlinecolor"),r("coastlinewidth")),p=r("showocean",b?void 0:!1),p&&r("oceancolor")}var H,N;if(c?(H=-96.6,N=38.7):(H=f?V:G,N=(T[0]+T[1])/2),r("center.lon",H),r("center.lat",N),h&&(r("projection.tilt"),r("projection.distance")),d){var j=l.projParallels||[0,60];r("projection.parallels",j)}r("projection.scale"),p=r("showland",b?void 0:!1),p&&r("landcolor"),p=r("showlakes",b?void 0:!1),p&&r("lakecolor"),p=r("showrivers",b?void 0:!1),p&&(r("rivercolor"),r("riverwidth")),p=r("showcountries",f&&s!=="usa"&&b),p&&(r("countrycolor"),r("countrywidth")),(s==="usa"||s==="north america"&&o===50)&&(r("showsubunits",b),r("subunitcolor"),r("subunitwidth")),f||(p=r("showframe",b),p&&(r("framecolor"),r("framewidth"))),r("bgcolor");var re=r("fitbounds");re&&(delete t.projection.scale,f?(delete t.center.lon,delete t.center.lat):v?(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon,delete t.projection.rotation.lat,delete t.lonaxis.range,delete t.lataxis.range):(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon))}});var NZ=ye((vgr,DDe)=>{"use strict";var wzt=Id().getSubplotCalcData,Tzt=Dr().counterRegex,Azt=SDe(),Wm="geo",IDe=Tzt(Wm),RDe={};RDe[Wm]={valType:"subplotid",dflt:Wm,editType:"calc"};function Szt(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[Wm],i=0;i{"use strict";FDe.exports={attributes:G2(),supplyDefaults:gRe(),colorbar:$d(),formatLabels:_Re(),calc:cF(),calcGeoJSON:CZ().calcGeoJSON,plot:CZ().plot,style:AZ(),styleOnSelect:ap().styleOnSelect,hoverPoints:nDe(),eventData:oDe(),selectPoints:uDe(),moduleType:"trace",name:"scattergeo",basePlotModule:NZ(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var qDe=ye((ggr,ODe)=>{"use strict";ODe.exports=zDe()});var JA=ye((mgr,UDe)=>{"use strict";var Czt=rs().hovertemplateAttrs,ox=G2(),kzt=Tu(),BDe=Vl(),Lzt=Eh().defaultLine,ax=Ao().extendFlat,NDe=ox.marker.line;UDe.exports=ax({locations:{valType:"data_array",editType:"calc"},locationmode:ox.locationmode,z:{valType:"data_array",editType:"calc"},geojson:ax({},ox.geojson,{}),featureidkey:ox.featureidkey,text:ax({},ox.text,{}),hovertext:ax({},ox.hovertext,{}),marker:{line:{color:ax({},NDe.color,{dflt:Lzt}),width:ax({},NDe.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:ox.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:ox.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:ax({},BDe.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:Czt(),showlegend:ax({},BDe.showlegend,{dflt:!1})},kzt("",{cLetter:"z",editTypeOverride:"calc"}))});var GDe=ye((ygr,VDe)=>{"use strict";var PF=Dr(),Pzt=Jh(),Izt=JA();VDe.exports=function(t,r,n,i){function a(h,d){return PF.coerce(t,r,Izt,h,d)}var o=a("locations"),s=a("z");if(!(o&&o.length&&PF.isArrayOrTypedArray(s)&&s.length)){r.visible=!1;return}r._length=Math.min(o.length,s.length);var l=a("geojson"),u;(typeof l=="string"&&l!==""||PF.isPlainObject(l))&&(u="geojson-id");var c=a("locationmode",u);c==="geojson-id"&&a("featureidkey"),a("text"),a("hovertext"),a("hovertemplate");var f=a("marker.line.width");f&&a("marker.line.color"),a("marker.opacity"),Pzt(t,r,i,a,{prefix:"",cLetter:"z"}),PF.coerceSelectionMarkerOpacity(r,a)}});var IF=ye((_gr,WDe)=>{"use strict";var HDe=Eo(),Rzt=hs().BADNUM,Dzt=Fv(),Fzt=Cm(),zzt=z0();function jDe(e){return e&&typeof e=="string"}WDe.exports=function(t,r){var n=r._length,i=new Array(n),a;r.geojson?a=function(c){return jDe(c)||HDe(c)}:a=jDe;for(var o=0;o{"use strict";var Ozt=Oa(),qzt=Ca(),UZ=So(),Bzt=tc();function Nzt(e,t){t&&XDe(e,t)}function XDe(e,t){var r=t[0].trace,n=t[0].node3,i=n.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=Bzt.makeColorScaleFuncFromTrace(r);i.each(function(l){Ozt.select(this).attr("fill",s(l.z)).call(qzt.stroke,l.mlc||o.color).call(UZ.dashLine,"",l.mlw||o.width||0).style("opacity",a.opacity)}),UZ.selectedPointStyle(i,r)}function Uzt(e,t){var r=t[0].node3,n=t[0].trace;n.selectedpoints?UZ.selectedPointStyle(r.selectAll(".choroplethlocation"),n):XDe(e,t)}ZDe.exports={style:Nzt,styleOnSelect:Uzt}});var VZ=ye((bgr,JDe)=>{"use strict";var Vzt=Oa(),YDe=Dr(),$A=nx(),Gzt=hF().getTopojsonFeatures,KDe=wg().findExtremes,Hzt=RF().style;function jzt(e,t,r){var n=t.layers.backplot.select(".choroplethlayer");YDe.makeTraceGroups(n,r,"trace choropleth").each(function(i){var a=Vzt.select(this),o=a.selectAll("path.choroplethlocation").data(YDe.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),Hzt(e,i)})}function Wzt(e,t){for(var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r.locationmode,o=r._length,s=a==="geojson-id"?$A.extractTraceFeature(e):Gzt(r,i.topojson),l=[],u=[],c=0;c{"use strict";var Xzt=ho(),Zzt=JA(),Yzt=Dr().fillText;$De.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s,l,u,c,f=[r,n],h=[r+360,n];for(l=0;l")}}});var FF=ye((Tgr,QDe)=>{"use strict";QDe.exports=function(t,r,n,i,a){t.location=r.location,t.z=r.z;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t.ct=o.ct,t}});var zF=ye((Agr,eFe)=>{"use strict";eFe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l,u,c,f;if(r===!1)for(s=0;s{"use strict";tFe.exports={attributes:JA(),supplyDefaults:GDe(),colorbar:M_(),calc:IF(),calcGeoJSON:VZ().calcGeoJSON,plot:VZ().plot,style:RF().style,styleOnSelect:RF().styleOnSelect,hoverPoints:DF(),eventData:FF(),selectPoints:zF(),moduleType:"trace",name:"choropleth",basePlotModule:NZ(),categories:["geo","noOpacity","showLegend"],meta:{}}});var nFe=ye((Mgr,iFe)=>{"use strict";iFe.exports=rFe()});var OF=ye((Egr,oFe)=>{"use strict";var Jzt=qa(),s0=Dr(),$zt=oT();function Qzt(e,t,r,n){var i=e.cd,a=i[0].t,o=i[0].trace,s=e.xa,l=e.ya,u=a.x,c=a.y,f=s.c2p(t),h=l.c2p(r),d=e.distance,v;if(a.tree){var x=s.p2c(f-d),b=s.p2c(f+d),p=l.p2c(h-d),C=l.p2c(h+d);n==="x"?v=a.tree.range(Math.min(x,b),Math.min(l._rl[0],l._rl[1]),Math.max(x,b),Math.max(l._rl[0],l._rl[1])):v=a.tree.range(Math.min(x,b),Math.min(p,C),Math.max(x,b),Math.max(p,C))}else v=a.ids;var E,A,L,_,k,M,g,P,T,z=d;if(n==="x"){var O=!!o.xperiodalignment,V=!!o.yperiodalignment;for(k=0;k=Math.min(G,Z)&&f<=Math.max(G,Z)?0:1/0}if(M=Math.min(H,N)&&h<=Math.max(H,N)?0:1/0}T=Math.sqrt(M*M+g*g),A=v[k]}}}else for(k=v.length-1;k>-1;k--)E=v[k],L=u[E],_=c[E],M=s.c2p(L)-f,g=l.c2p(_)-h,P=Math.sqrt(M*M+g*g),P{"use strict";var sFe=20;lFe.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:sFe,SYMBOL_STROKE:sFe/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}});var iC=ye((kgr,hFe)=>{"use strict";var e7t=Vl(),t7t=ec(),r7t=Eg(),Of=vf(),uFe=ff().axisHoverFormat,cFe=Tu(),i7t=Y1(),GZ=Ao().extendFlat,n7t=mc().overrideAll,a7t=sx().DASHES,fFe=Of.line,r1=Of.marker,o7t=r1.line,QA=hFe.exports=n7t({x:Of.x,x0:Of.x0,dx:Of.dx,y:Of.y,y0:Of.y0,dy:Of.dy,xperiod:Of.xperiod,yperiod:Of.yperiod,xperiod0:Of.xperiod0,yperiod0:Of.yperiod0,xperiodalignment:Of.xperiodalignment,yperiodalignment:Of.yperiodalignment,xhoverformat:uFe("x"),yhoverformat:uFe("y"),text:Of.text,hovertext:Of.hovertext,textposition:Of.textposition,textfont:t7t({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:fFe.color,width:fFe.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:i7t(a7t),dflt:"solid"}},marker:GZ({},cFe("marker"),{symbol:r1.symbol,angle:r1.angle,size:r1.size,sizeref:r1.sizeref,sizemin:r1.sizemin,sizemode:r1.sizemode,opacity:r1.opacity,colorbar:r1.colorbar,line:GZ({},cFe("marker.line"),{width:o7t.width})}),connectgaps:Of.connectgaps,fill:GZ({},Of.fill,{dflt:"none"}),fillcolor:r7t(),selected:{marker:Of.selected.marker,textfont:Of.selected.textfont},unselected:{marker:Of.unselected.marker,textfont:Of.unselected.textfont},opacity:e7t.opacity},"calc","nested");QA.x.editType=QA.y.editType=QA.x0.editType=QA.y0.editType="calc+clearAxisTypes";QA.hovertemplate=Of.hovertemplate;QA.texttemplate=Of.texttemplate});var qF=ye(HZ=>{"use strict";var dFe=sx();HZ.isOpenSymbol=function(e){return typeof e=="string"?dFe.OPEN_RE.test(e):e%200>100};HZ.isDotSymbol=function(e){return typeof e=="string"?dFe.DOT_RE.test(e):e>200}});var gFe=ye((Pgr,pFe)=>{"use strict";var vFe=Dr(),s7t=qa(),l7t=qF(),u7t=iC(),c7t=Sm(),BF=Ru(),f7t=K3(),h7t=Pg(),d7t=$p(),v7t=R0(),p7t=Ig(),g7t=D0();pFe.exports=function(t,r,n,i){function a(d,v){return vFe.coerce(t,r,u7t,d,v)}var o=t.marker?l7t.isOpenSymbol(t.marker.symbol):!1,s=BF.isBubble(t),l=f7t(t,r,i,a);if(!l){r.visible=!1;return}h7t(t,r,i,a),a("xhoverformat"),a("yhoverformat");var u=l{"use strict";var m7t=eI();mFe.exports=function(t,r,n){var i=t.i;return"x"in t||(t.x=r._x[i]),"y"in t||(t.y=r._y[i]),m7t(t,r,n)}});var xFe=ye((Rgr,_Fe)=>{"use strict";function y7t(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l>=0?(a=o,i=o-1):n=o+1}return a}function _7t(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l>0?(a=o,i=o-1):n=o+1}return a}function x7t(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l<0?(a=o,n=o+1):i=o-1}return a}function b7t(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l<=0?(a=o,n=o+1):i=o-1}return a}function w7t(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],s=r!==void 0?r(o,t):o-t;if(s===0)return a;s<=0?n=a+1:i=a-1}return-1}function nC(e,t,r,n,i,a){return typeof r=="function"?a(e,t,r,n===void 0?0:n|0,i===void 0?e.length-1:i|0):a(e,t,void 0,r===void 0?0:r|0,n===void 0?e.length-1:n|0)}_Fe.exports={ge:function(e,t,r,n,i){return nC(e,t,r,n,i,y7t)},gt:function(e,t,r,n,i){return nC(e,t,r,n,i,_7t)},lt:function(e,t,r,n,i){return nC(e,t,r,n,i,x7t)},le:function(e,t,r,n,i){return nC(e,t,r,n,i,b7t)},eq:function(e,t,r,n,i){return nC(e,t,r,n,i,w7t)}}});var Xm=ye((Dgr,wFe)=>{"use strict";wFe.exports=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=bFe(r)),Array.isArray(r)){var s={};for(o=0;o{"use strict";var T7t=Xm();TFe.exports=A7t;function A7t(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=T7t(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}});var j2=ye((zgr,AFe)=>{"use strict";AFe.exports=S7t;function S7t(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;ni&&(i=e[o]),e[o]{SFe.exports=function(){for(var e=0;e{var EFe=jD();CFe.exports=M7t;function M7t(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,o,s,l;(!t||typeof t=="string")&&(t=new(EFe(t||"float32"))(i+r));var u=t.length-r;if(i!==u)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+u);for(a=0,s=r;a{"use strict";kFe.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var IFe=ye((Ngr,PFe)=>{"use strict";PFe.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var BFe=ye((Ugr,qFe)=>{"use strict";var RFe=xFe(),DFe=HE(),E7t=e5(),C7t=j2(),FFe=Xm(),WZ=MFe(),k7t=W2(),L7t=LFe(),P7t=jD(),zFe=IFe(),I7t=1073741824;qFe.exports=function(t,r){r||(r={}),t=k7t(t,"float64"),r=FFe(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=WZ(r.maxDepth,255),i=WZ(r.bounds,C7t(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=OFe(t,i),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(P7t(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let p=0;pn||_>I7t){for(let N=0;N_e||g>Me||P=z||re===oe)return;let ke=l[j];oe===void 0&&(oe=ke.length);for(let De=re;De=A&&Ze<=_&&ut>=L&&ut<=k&&O.push(ce)}let me=u[j],ie=me[re*4+0],Se=me[re*4+1],Le=me[re*4+2],Ae=me[re*4+3],Fe=G(me,re+1),Pe=N*.5,ge=j+1;V(Z,H,Pe,ge,ie,Se||Le||Ae||Fe),V(Z,H+Pe,Pe,ge,Se,Le||Ae||Fe),V(Z+Pe,H,Pe,ge,Le,Ae||Fe),V(Z+Pe,H+Pe,Pe,ge,Ae,Fe)}function G(Z,H){let N=null,j=0;for(;N===null;)if(N=Z[H*4+j],j++,j>Z.length)return null;return N}return O}function x(p,C,E,A,L){let _=[];for(let k=0;k{"use strict";NFe.exports=BFe()});var XZ=ye((Ggr,UFe)=>{UFe.exports=R7t;function R7t(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],s=o.toUpperCase();if(o!=s)switch(a[0]=s,o){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var l=1;l{"use strict";Object.defineProperty(UF,"__esModule",{value:!0});var D7t=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var s=t[Symbol.iterator](),l;!(i=(l=s.next()).done)&&(n.push(l.value),!(r&&n.length===r));i=!0);}catch(u){a=!0,o=u}finally{try{!i&&s.return&&s.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),aC=Math.PI*2,ZZ=function(t,r,n,i,a,o,s){var l=t.x,u=t.y;l*=r,u*=n;var c=i*l-a*u,f=a*l+i*u;return{x:c+o,y:f+s}},F7t=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),s=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+s*n,y:s-o*n},{x:o,y:s}]},VFe=function(t,r,n,i){var a=t*i-r*n<0?-1:1,o=t*n+r*i;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},z7t=function(t,r,n,i,a,o,s,l,u,c,f,h){var d=Math.pow(a,2),v=Math.pow(o,2),x=Math.pow(f,2),b=Math.pow(h,2),p=d*v-d*b-v*x;p<0&&(p=0),p/=d*b+v*x,p=Math.sqrt(p)*(s===l?-1:1);var C=p*a/o*h,E=p*-o/a*f,A=c*C-u*E+(t+n)/2,L=u*C+c*E+(r+i)/2,_=(f-C)/a,k=(h-E)/o,M=(-f-C)/a,g=(-h-E)/o,P=VFe(1,0,_,k),T=VFe(_,k,M,g);return l===0&&T>0&&(T-=aC),l===1&&T<0&&(T+=aC),[A,L,P,T]},O7t=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,s=t.ry,l=t.xAxisRotation,u=l===void 0?0:l,c=t.largeArcFlag,f=c===void 0?0:c,h=t.sweepFlag,d=h===void 0?0:h,v=[];if(o===0||s===0)return[];var x=Math.sin(u*aC/360),b=Math.cos(u*aC/360),p=b*(r-i)/2+x*(n-a)/2,C=-x*(r-i)/2+b*(n-a)/2;if(p===0&&C===0)return[];o=Math.abs(o),s=Math.abs(s);var E=Math.pow(p,2)/Math.pow(o,2)+Math.pow(C,2)/Math.pow(s,2);E>1&&(o*=Math.sqrt(E),s*=Math.sqrt(E));var A=z7t(r,n,i,a,o,s,f,d,x,b,p,C),L=D7t(A,4),_=L[0],k=L[1],M=L[2],g=L[3],P=Math.abs(g)/(aC/4);Math.abs(1-P)<1e-7&&(P=1);var T=Math.max(Math.ceil(P),1);g/=T;for(var z=0;z{"use strict";WFe.exports=B7t;var q7t=HFe();function B7t(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,l=null,u=0,c=0,f=0,h=e.length;f4?(n=d[d.length-4],i=d[d.length-3]):(n=u,i=c),r.push(d)}return r}function VF(e,t,r,n){return["C",e,t,r,n,r,n]}function jFe(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}});var YZ=ye((jgr,ZFe)=>{"use strict";ZFe.exports=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}});var JFe=ye((Wgr,KFe)=>{"use strict";var N7t=YS(),U7t=XZ(),V7t=XFe(),G7t=YZ(),YFe=iE();KFe.exports=H7t;function H7t(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(YFe(G7t(e),"String is not an SVG path."),e=N7t(e)),YFe(Array.isArray(e),"Argument should be a string or an array of path segments."),e=U7t(e),e=V7t(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,n=e.length;rt[2]&&(t[2]=i[a+0]),i[a+1]>t[3]&&(t[3]=i[a+1]);return t}});var ize=ye((Xgr,rze)=>{var X2=Math.PI,$Fe=tze(120);rze.exports=j7t;function j7t(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,l=null,u=0,c=0,f=0,h=e.length;f7&&(r.push(d.splice(0,7)),d.unshift("C"));break;case"S":var x=u,b=c;(t=="C"||t=="S")&&(x+=x-n,b+=b-i),d=["C",x,b,d[1],d[2],d[3],d[4]];break;case"T":t=="Q"||t=="T"?(s=u*2-s,l=c*2-l):(s=u,l=c),d=QFe(u,c,s,l,d[1],d[2]);break;case"Q":s=d[1],l=d[2],d=QFe(u,c,d[1],d[2],d[3],d[4]);break;case"L":d=GF(u,c,d[1],d[2]);break;case"H":d=GF(u,c,d[1],c);break;case"V":d=GF(u,c,u,d[1]);break;case"Z":d=GF(u,c,a,o);break}t=v,u=d[d.length-2],c=d[d.length-1],d.length>4?(n=d[d.length-4],i=d[d.length-3]):(n=u,i=c),r.push(d)}return r}function GF(e,t,r,n){return["C",e,t,r,n,r,n]}function QFe(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function eze(e,t,r,n,i,a,o,s,l,u){if(u)E=u[0],A=u[1],p=u[2],C=u[3];else{var c=KZ(e,t,-i);e=c.x,t=c.y,c=KZ(s,l,-i),s=c.x,l=c.y;var f=(e-s)/2,h=(t-l)/2,d=f*f/(r*r)+h*h/(n*n);d>1&&(d=Math.sqrt(d),r=d*r,n=d*n);var v=r*r,x=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((v*x-v*h*h-x*f*f)/(v*h*h+x*f*f)));b==1/0&&(b=1);var p=b*r*h/n+(e+s)/2,C=b*-n*f/r+(t+l)/2,E=Math.asin(((t-C)/n).toFixed(9)),A=Math.asin(((l-C)/n).toFixed(9));E=eA&&(E=E-X2*2),!o&&A>E&&(A=A-X2*2)}if(Math.abs(A-E)>$Fe){var L=A,_=s,k=l;A=E+$Fe*(o&&A>E?1:-1),s=p+r*Math.cos(A),l=C+n*Math.sin(A);var M=eze(s,l,r,n,i,0,o,_,k,[A,L,p,C])}var g=Math.tan((A-E)/4),P=4/3*r*g,T=4/3*n*g,z=[2*e-(e+P*Math.sin(E)),2*t-(t-T*Math.cos(E)),s+P*Math.sin(A),l-T*Math.cos(A),s,l];if(u)return z;M&&(z=z.concat(M));for(var O=0;O{var W7t=XZ(),X7t=ize(),Z7t={M:"moveTo",C:"bezierCurveTo"};nze.exports=function(e,t){e.beginPath(),X7t(W7t(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[Z7t[n]].apply(e,i)}),e.closePath()}});var uze=ye((Ygr,lze)=>{"use strict";var Y7t=HE();lze.exports=K7t;var oC=1e20;function K7t(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,o,s,l,u,c,f,h,d,v,x;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,l=e,t.stride?c=t.stride:c=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(h=e,f=h.getContext("2d"),a=h.width,o=h.height,d=f.getImageData(0,0,a,o),l=d.data,c=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(h=e.canvas,f=e,a=h.width,o=h.height,d=f.getImageData(0,0,a,o),l=d.data,c=4):window.ImageData&&e instanceof window.ImageData&&(d=e,a=e.width,o=e.height,l=d.data,c=4);if(s=Math.max(a,o),window.Uint8ClampedArray&&l instanceof window.Uint8ClampedArray||window.Uint8Array&&l instanceof window.Uint8Array)for(u=l,l=Array(a*o),v=0,x=u.length;v{"use strict";var J7t=JFe(),$7t=YS(),Q7t=aze(),e9t=YZ(),t9t=uze(),JZ=document.createElement("canvas"),fp=JZ.getContext("2d");cze.exports=r9t;function r9t(e,t){if(!e9t(e))throw Error("Argument should be valid svg path string");t||(t={});var r,n;t.shape?(r=t.shape[0],n=t.shape[1]):(r=JZ.width=t.w||t.width||200,n=JZ.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||J7t(e),s=[r/(o[2]-o[0]),n/(o[3]-o[1])],l=Math.min(s[0]||0,s[1]||0)/2;if(fp.fillStyle="black",fp.fillRect(0,0,r,n),fp.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?fp.strokeStyle="white":fp.strokeStyle="black",fp.lineWidth=Math.abs(a)),fp.translate(r*.5,n*.5),fp.scale(l,l),i9t()){var u=new Path2D(e);fp.fill(u),a&&fp.stroke(u)}else{var c=$7t(e);Q7t(fp,c),fp.fill(),a&&fp.stroke()}fp.setTransform(1,0,0,1,0,0);var f=t9t(fp,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return f}var HF;function i9t(){if(HF!=null)return HF;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return HF=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return HF=r&&r.data&&r.data[3]===255}});var Y2=ye((Jgr,wze)=>{"use strict";var WF=Eo(),n9t=fze(),jF=$_(),a9t=qa(),i5=Dr(),gh=i5.isArrayOrTypedArray,t5=So(),hze=Af(),dze=$y().formatColor,r5=Ru(),o9t=S3(),QZ=qF(),sC=sx(),s9t=U1().DESELECTDIM,vze={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},l9t=rp().appendArrayPointValue;function u9t(e,t){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},i=e._context.plotGlPixelRatio;if(t.visible!==!0)return n;if(r5.hasText(t)&&(n.text=bze(e,t),n.textSel=gze(e,t,t.selected),n.textUnsel=gze(e,t,t.unselected)),r5.hasMarkers(t)&&(n.marker=tY(e,t),n.markerSel=eY(e,t,t.selected),n.markerUnsel=eY(e,t,t.unselected),!t.unselected&&gh(t.marker.opacity))){var a=t.marker.opacity;for(n.markerUnsel.opacity=new Array(a.length),r=0;r500?"bold":"normal":e}function tY(e,t){var r=t._length,n=t.marker,i={},a,o=gh(n.symbol),s=gh(n.angle),l=gh(n.color),u=gh(n.line.color),c=gh(n.opacity),f=gh(n.size),h=gh(n.line.width),d;if(o||(d=QZ.isOpenSymbol(n.symbol)),o||l||u||c||s){i.symbols=new Array(r),i.angles=new Array(r),i.colors=new Array(r),i.borderColors=new Array(r);var v=n.symbol,x=n.angle,b=dze(n,n.opacity,r),p=dze(n.line,n.opacity,r);if(!gh(p[0])){var C=p;for(p=Array(r),a=0;asC.TOO_MANY_POINTS||r5.hasMarkers(t)?"rect":"round";if(u&&t.connectgaps){var f=a[0],h=a[1];for(o=0;o1?l[o]:l[0]:l,d=gh(u)?u.length>1?u[o]:u[0]:u,v=vze[h],x=vze[d],b=c?c/.8+1:0,p=-x*b-x*.5;a.offset[o]=[v*b/f,p/f]}}return a}wze.exports={style:u9t,markerStyle:tY,markerSelection:eY,linePositions:f9t,errorBarPositions:h9t,textPosition:d9t}});var rY=ye(($gr,Tze)=>{"use strict";var XF=Dr();Tze.exports=function(t,r){var n=r._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return r._scene||(n=r._scene={},n.init=function(){XF.extendFlat(n,a,i)},n.init(),n.update=function(s){var l=XF.repeat(s,n.count);if(n.fill2d&&n.fill2d.update(l),n.scatter2d&&n.scatter2d.update(l),n.line2d&&n.line2d.update(l),n.error2d&&n.error2d.update(l.concat(l)),n.select2d&&n.select2d.update(l),n.glText)for(var u=0;u{"use strict";var v9t=NF(),n5=Dr(),Aze=Af(),p9t=wg().findExtremes,Sze=Rg(),iY=O0(),g9t=iY.calcMarkerSize,m9t=iY.calcAxisExpansion,y9t=iY.setFirstScatter,_9t=F0(),a5=Y2(),x9t=rY(),Mze=hs().BADNUM,b9t=sx().TOO_MANY_POINTS;Cze.exports=function(t,r){var n=t._fullLayout,i=r._xA=Aze.getFromId(t,r.xaxis,"x"),a=r._yA=Aze.getFromId(t,r.yaxis,"y"),o=n._plots[r.xaxis+r.yaxis],s=r._length,l=s>=b9t,u=s*2,c={},f,h=i.makeCalcdata(r,"x"),d=a.makeCalcdata(r,"y"),v=Sze(r,i,"x",h),x=Sze(r,a,"y",d),b=v.vals,p=x.vals;r._x=b,r._y=p,r.xperiodalignment&&(r._origX=h,r._xStarts=v.starts,r._xEnds=v.ends),r.yperiodalignment&&(r._origY=d,r._yStarts=x.starts,r._yEnds=x.ends);var C=new Array(u),E=new Array(s);for(f=0;f1&&n5.extendFlat(o.line,a5.linePositions(e,r,n)),o.errorX||o.errorY){var s=a5.errorBarPositions(e,r,n,i,a);o.errorX&&n5.extendFlat(o.errorX,s.x),o.errorY&&n5.extendFlat(o.errorY,s.y)}return o.text&&(n5.extendFlat(o.text,{positions:n},a5.textPosition(e,r,o.text,o.marker)),n5.extendFlat(o.textSel,{positions:n},a5.textPosition(e,r,o.text,o.markerSel)),n5.extendFlat(o.textUnsel,{positions:n},a5.textPosition(e,r,o.text,o.markerUnsel))),o}});var nY=ye((emr,Pze)=>{"use strict";var Lze=Dr(),T9t=Ca(),A9t=U1().DESELECTDIM;function S9t(e){var t=e[0],r=t.trace,n=t.t,i=n._scene,a=n.index,o=i.selectBatch[a],s=i.unselectBatch[a],l=i.textOptions[a],u=i.textSelectedOptions[a]||{},c=i.textUnselectedOptions[a]||{},f=Lze.extendFlat({},l),h,d;if(o.length||s.length){var v=u.color,x=c.color,b=l.color,p=Lze.isArrayOrTypedArray(b);for(f.color=new Array(r._length),h=0;h{"use strict";var Ize=Ru(),M9t=nY().styleTextSelection;Rze.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l=n[0].t,u=s._length,c=l.x,f=l.y,h=l._scene,d=l.index;if(!h)return o;var v=Ize.hasText(s),x=Ize.hasMarkers(s),b=!x&&!v;if(s.visible!==!0||b)return o;var p=[],C=[];if(r!==!1&&!r.degenerate)for(var E=0;E{"use strict";var E9t=OF();Dze.exports={moduleType:"trace",name:"scattergl",basePlotModule:vh(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:iC(),supplyDefaults:gFe(),crossTraceDefaults:rU(),colorbar:$d(),formatLabels:yFe(),calc:kze(),hoverPoints:E9t.hoverPoints,selectPoints:aY(),meta:{}}});var Oze=ye((imr,YF)=>{"use strict";var ZF=HE();YF.exports=zze;YF.exports.to=zze;YF.exports.from=C9t;function zze(e,t){t==null&&(t=!0);var r=e[0],n=e[1],i=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,n*=255,i*=255,a*=255),r=ZF(r,0,255)&255,n=ZF(n,0,255)&255,i=ZF(i,0,255)&255,a=ZF(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function C9t(e,t){e=+e;var r=e>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=e&255;return t===!1?[r,n,i,a]:[r/255,n/255,i/255,a/255]}});var Fh=ye((nmr,Bze)=>{"use strict";var qze=Object.getOwnPropertySymbols,k9t=Object.prototype.hasOwnProperty,L9t=Object.prototype.propertyIsEnumerable;function P9t(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function I9t(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}Bze.exports=I9t()?Object.assign:function(e,t){for(var r,n=P9t(e),i,a=1;a{Nze.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n{"use strict";Vze.exports=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i{"use strict";Gze.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var KF=ye((lmr,o5)=>{"use strict";o5.exports=lC;o5.exports.float32=o5.exports.float=lC;o5.exports.fract32=o5.exports.fract=R9t;var jze=new Float32Array(1);function R9t(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=lC(e));for(var r=0,n=t.length;r{"use strict";function D9t(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function F9t(e,t){return q9t(e)||D9t(e,t)||Xze(e,t)||U9t()}function z9t(e){return O9t(e)||B9t(e)||Xze(e)||N9t()}function O9t(e){if(Array.isArray(e))return sY(e)}function q9t(e){if(Array.isArray(e))return e}function B9t(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Xze(e,t){if(e){if(typeof e=="string")return sY(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sY(e,t)}}function sY(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rPe&&Fe>0){var ce=(ge[Fe][0]-Pe)/(ge[Fe][0]-ge[Fe-1][0]);return ge[Fe][1]*(1-ce)+ce*ge[Fe-1][1]}}return 1}var j=[0,0,0],re={showSurface:!1,showContour:!1,projections:[T.slice(),T.slice(),T.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function oe(Pe,ge){var Fe,ce,Ye,ct=ge.axes&&ge.axes.lastCubeProps.axis||j,pt=ge.showSurface,Wt=ge.showContour;for(Fe=0;Fe<3;++Fe)for(pt=pt||ge.surfaceProject[Fe],ce=0;ce<3;++ce)Wt=Wt||ge.contourProject[Fe][ce];for(Fe=0;Fe<3;++Fe){var st=re.projections[Fe];for(ce=0;ce<16;++ce)st[ce]=0;for(ce=0;ce<4;++ce)st[5*ce]=1;st[5*Fe]=0,st[12+Fe]=ge.axesBounds[+(ct[Fe]>0)][Fe],p(st,Pe.model,st);var lt=re.clipBounds[Fe];for(Ye=0;Ye<2;++Ye)for(ce=0;ce<3;++ce)lt[Ye][ce]=Pe.clipBounds[Ye][ce];lt[0][Fe]=-1e8,lt[1][Fe]=1e8}return re.showSurface=pt,re.showContour=Wt,re}var _e={model:T,view:T,projection:T,inverseModel:T.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},Me=T.slice(),ke=[1,0,0,0,1,0,0,0,1];function me(Pe,ge){Pe=Pe||{};var Fe=this.gl;Fe.disable(Fe.CULL_FACE),this._colorMap.bind(0);var ce=_e;ce.model=Pe.model||T,ce.view=Pe.view||T,ce.projection=Pe.projection||T,ce.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],ce.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],ce.objectOffset=this.objectOffset,ce.contourColor=this.contourColor[0],ce.inverseModel=C(ce.inverseModel,ce.model);for(var Ye=0;Ye<2;++Ye)for(var ct=ce.clipBounds[Ye],pt=0;pt<3;++pt)ct[pt]=Math.min(Math.max(this.clipBounds[Ye][pt],-1e8),1e8);ce.kambient=this.ambientLight,ce.kdiffuse=this.diffuseLight,ce.kspecular=this.specularLight,ce.roughness=this.roughness,ce.fresnel=this.fresnel,ce.opacity=this.opacity,ce.height=0,ce.permutation=ke,ce.vertexColor=this.vertexColor;var Wt=Me;for(p(Wt,ce.view,ce.model),p(Wt,ce.projection,Wt),C(Wt,Wt),Ye=0;Ye<3;++Ye)ce.eyePosition[Ye]=Wt[12+Ye]/Wt[15];var st=Wt[15];for(Ye=0;Ye<3;++Ye)st+=this.lightPosition[Ye]*Wt[4*Ye+3];for(Ye=0;Ye<3;++Ye){var lt=Wt[12+Ye];for(pt=0;pt<3;++pt)lt+=Wt[4*pt+Ye]*this.lightPosition[pt];ce.lightPosition[Ye]=lt/st}var Gt=oe(ce,this);if(Gt.showSurface){for(this._shader.bind(),this._shader.uniforms=ce,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(Fe.TRIANGLES,this._vertexCount),Ye=0;Ye<3;++Ye)!this.surfaceProject[Ye]||!this.vertexCount||(this._shader.uniforms.model=Gt.projections[Ye],this._shader.uniforms.clipBounds=Gt.clipBounds[Ye],this._vao.draw(Fe.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Gt.showContour){var Nt=this._contourShader;ce.kambient=1,ce.kdiffuse=0,ce.kspecular=0,ce.opacity=1,Nt.bind(),Nt.uniforms=ce;var $t=this._contourVAO;for($t.bind(),Ye=0;Ye<3;++Ye)for(Nt.uniforms.permutation=O[Ye],Fe.lineWidth(this.contourWidth[Ye]*this.pixelRatio),pt=0;pt>4)/16)/255,Ye=Math.floor(ce),ct=ce-Ye,pt=ge[1]*(Pe.value[1]+(Pe.value[2]&15)/16)/255,Wt=Math.floor(pt),st=pt-Wt;Ye+=1,Wt+=1;var lt=Fe.position;lt[0]=lt[1]=lt[2]=0;for(var Gt=0;Gt<2;++Gt)for(var Nt=Gt?ct:1-ct,$t=0;$t<2;++$t)for(var sr=$t?st:1-st,wr=Ye+Gt,ur=Wt+$t,Qe=Nt*sr,Et=0;Et<3;++Et)lt[Et]+=this._field[Et].get(wr,ur)*Qe;for(var er=this._pickResult.level,Ut=0;Ut<3;++Ut)if(er[Ut]=E.le(this.contourLevels[Ut],lt[Ut]),er[Ut]<0)this.contourLevels[Ut].length>0&&(er[Ut]=0);else if(er[Ut]Math.abs(bt-lt[Ut])&&(er[Ut]+=1)}for(Fe.index[0]=ct<.5?Ye:Ye+1,Fe.index[1]=st<.5?Wt:Wt+1,Fe.uv[0]=ce/ge[0],Fe.uv[1]=pt/ge[1],Et=0;Et<3;++Et)Fe.dataCoordinate[Et]=this._field[Et].get(Fe.index[0],Fe.index[1]);return Fe},H.padField=function(Pe,ge){var Fe=ge.shape.slice(),ce=Pe.shape.slice();d.assign(Pe.lo(1,1).hi(Fe[0],Fe[1]),ge),d.assign(Pe.lo(1).hi(Fe[0],1),ge.hi(Fe[0],1)),d.assign(Pe.lo(1,ce[1]-1).hi(Fe[0],1),ge.lo(0,Fe[1]-1).hi(Fe[0],1)),d.assign(Pe.lo(0,1).hi(1,Fe[1]),ge.hi(1)),d.assign(Pe.lo(ce[0]-1,1).hi(1,Fe[1]),ge.lo(Fe[0]-1)),Pe.set(0,0,ge.get(0,0)),Pe.set(0,ce[1]-1,ge.get(0,Fe[1]-1)),Pe.set(ce[0]-1,0,ge.get(Fe[0]-1,0)),Pe.set(ce[0]-1,ce[1]-1,ge.get(Fe[0]-1,Fe[1]-1))};function Se(Pe,ge){return Array.isArray(Pe)?[ge(Pe[0]),ge(Pe[1]),ge(Pe[2])]:[ge(Pe),ge(Pe),ge(Pe)]}function Le(Pe){return Array.isArray(Pe)?Pe.length===3?[Pe[0],Pe[1],Pe[2],1]:[Pe[0],Pe[1],Pe[2],Pe[3]]:[0,0,0,1]}function Ae(Pe){if(Array.isArray(Pe)){if(Array.isArray(Pe))return[Le(Pe[0]),Le(Pe[1]),Le(Pe[2])];var ge=Le(Pe);return[ge.slice(),ge.slice(),ge.slice()]}}H.update=function(Pe){Pe=Pe||{},this.objectOffset=Pe.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in Pe&&(this.contourWidth=Se(Pe.contourWidth,Number)),"showContour"in Pe&&(this.showContour=Se(Pe.showContour,Boolean)),"showSurface"in Pe&&(this.showSurface=!!Pe.showSurface),"contourTint"in Pe&&(this.contourTint=Se(Pe.contourTint,Boolean)),"contourColor"in Pe&&(this.contourColor=Ae(Pe.contourColor)),"contourProject"in Pe&&(this.contourProject=Se(Pe.contourProject,function(yn){return Se(yn,Boolean)})),"surfaceProject"in Pe&&(this.surfaceProject=Pe.surfaceProject),"dynamicColor"in Pe&&(this.dynamicColor=Ae(Pe.dynamicColor)),"dynamicTint"in Pe&&(this.dynamicTint=Se(Pe.dynamicTint,Number)),"dynamicWidth"in Pe&&(this.dynamicWidth=Se(Pe.dynamicWidth,Number)),"opacity"in Pe&&(this.opacity=Pe.opacity),"opacityscale"in Pe&&(this.opacityscale=Pe.opacityscale),"colorBounds"in Pe&&(this.colorBounds=Pe.colorBounds),"vertexColor"in Pe&&(this.vertexColor=Pe.vertexColor?1:0),"colormap"in Pe&&this._colorMap.setPixels(this.genColormap(Pe.colormap,this.opacityscale));var ge=Pe.field||Pe.coords&&Pe.coords[2]||null,Fe=!1;if(ge||(this._field[2].shape[0]||this._field[2].shape[2]?ge=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):ge=this._field[2].hi(0,0)),"field"in Pe||"coords"in Pe){var ce=(ge.shape[0]+2)*(ge.shape[1]+2);ce>this._field[2].data.length&&(f.freeFloat(this._field[2].data),this._field[2].data=f.mallocFloat(s.nextPow2(ce))),this._field[2]=_(this._field[2].data,[ge.shape[0]+2,ge.shape[1]+2]),this.padField(this._field[2],ge),this.shape=ge.shape.slice();for(var Ye=this.shape,ct=0;ct<2;++ct)this._field[2].size>this._field[ct].data.length&&(f.freeFloat(this._field[ct].data),this._field[ct].data=f.mallocFloat(this._field[2].size)),this._field[ct]=_(this._field[ct].data,[Ye[0]+2,Ye[1]+2]);if(Pe.coords){var pt=Pe.coords;if(!Array.isArray(pt)||pt.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(ct=0;ct<2;++ct){var Wt=pt[ct];for($t=0;$t<2;++$t)if(Wt.shape[$t]!==Ye[$t])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[ct],Wt)}}else if(Pe.ticks){var st=Pe.ticks;if(!Array.isArray(st)||st.length!==2)throw new Error("gl-surface: invalid ticks");for(ct=0;ct<2;++ct){var lt=st[ct];if((Array.isArray(lt)||lt.length)&&(lt=_(lt)),lt.shape[0]!==Ye[ct])throw new Error("gl-surface: invalid tick length");var Gt=_(lt.data,Ye);Gt.stride[ct]=lt.stride[0],Gt.stride[ct^1]=0,this.padField(this._field[ct],Gt)}}else{for(ct=0;ct<2;++ct){var Nt=[0,0];Nt[ct]=1,this._field[ct]=_(this._field[ct].data,[Ye[0]+2,Ye[1]+2],Nt,0)}this._field[0].set(0,0,0);for(var $t=0;$t0){for(var en=0;en<5;++en)di.pop();je-=1}continue e}}}Pn.push(je)}this._contourOffsets[Jr]=Hi,this._contourCounts[Jr]=Pn}var cn=f.mallocFloat(di.length);for(ct=0;ctV||z<0||z>V)throw new Error("gl-texture2d: Invalid texture size");return P._shape=[T,z],P.bind(),O.texImage2D(O.TEXTURE_2D,0,P.format,T,z,0,P.format,P.type,null),P._mipLevels=[0],P}function p(P,T,z,O,V,G){this.gl=P,this.handle=T,this.format=V,this.type=G,this._shape=[z,O],this._mipLevels=[0],this._magFilter=P.NEAREST,this._minFilter=P.NEAREST,this._wrapS=P.CLAMP_TO_EDGE,this._wrapT=P.CLAMP_TO_EDGE,this._anisoSamples=1;var Z=this,H=[this._wrapS,this._wrapT];Object.defineProperties(H,[{get:function(){return Z._wrapS},set:function(j){return Z.wrapS=j}},{get:function(){return Z._wrapT},set:function(j){return Z.wrapT=j}}]),this._wrapVector=H;var N=[this._shape[0],this._shape[1]];Object.defineProperties(N,[{get:function(){return Z._shape[0]},set:function(j){return Z.width=j}},{get:function(){return Z._shape[1]},set:function(j){return Z.height=j}}]),this._shapeVector=N}var C=p.prototype;Object.defineProperties(C,{minFilter:{get:function(){return this._minFilter},set:function(P){this.bind();var T=this.gl;if(this.type===T.FLOAT&&c.indexOf(P)>=0&&(T.getExtension("OES_texture_float_linear")||(P=T.NEAREST)),f.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return T.texParameteri(T.TEXTURE_2D,T.TEXTURE_MIN_FILTER,P),this._minFilter=P}},magFilter:{get:function(){return this._magFilter},set:function(P){this.bind();var T=this.gl;if(this.type===T.FLOAT&&c.indexOf(P)>=0&&(T.getExtension("OES_texture_float_linear")||(P=T.NEAREST)),f.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return T.texParameteri(T.TEXTURE_2D,T.TEXTURE_MAG_FILTER,P),this._magFilter=P}},mipSamples:{get:function(){return this._anisoSamples},set:function(P){var T=this._anisoSamples;if(this._anisoSamples=Math.max(P,1)|0,T!==this._anisoSamples){var z=this.gl.getExtension("EXT_texture_filter_anisotropic");z&&this.gl.texParameterf(this.gl.TEXTURE_2D,z.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,P),this._wrapS=P}},wrapT:{get:function(){return this._wrapT},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,P),this._wrapT=P}},wrap:{get:function(){return this._wrapVector},set:function(P){if(Array.isArray(P)||(P=[P,P]),P.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var T=0;T<2;++T)if(h.indexOf(P[T])<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);this._wrapS=P[0],this._wrapT=P[1];var z=this.gl;return this.bind(),z.texParameteri(z.TEXTURE_2D,z.TEXTURE_WRAP_S,this._wrapS),z.texParameteri(z.TEXTURE_2D,z.TEXTURE_WRAP_T,this._wrapT),P}},shape:{get:function(){return this._shapeVector},set:function(P){if(!Array.isArray(P))P=[P|0,P|0];else if(P.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return b(this,P[0]|0,P[1]|0),[P[0]|0,P[1]|0]}},width:{get:function(){return this._shape[0]},set:function(P){return P=P|0,b(this,P,this._shape[1]),P}},height:{get:function(){return this._shape[1]},set:function(P){return P=P|0,b(this,this._shape[0],P),P}}}),C.bind=function(P){var T=this.gl;return P!==void 0&&T.activeTexture(T.TEXTURE0+(P|0)),T.bindTexture(T.TEXTURE_2D,this.handle),P!==void 0?P|0:T.getParameter(T.ACTIVE_TEXTURE)-T.TEXTURE0},C.dispose=function(){this.gl.deleteTexture(this.handle)},C.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var P=Math.min(this._shape[0],this._shape[1]),T=0;P>0;++T,P>>>=1)this._mipLevels.indexOf(T)<0&&this._mipLevels.push(T)},C.setPixels=function(P,T,z,O){var V=this.gl;this.bind(),Array.isArray(T)?(O=z,z=T[1]|0,T=T[0]|0):(T=T||0,z=z||0),O=O||0;var G=v(P)?P:P.raw;if(G){var Z=this._mipLevels.indexOf(O)<0;Z?(V.texImage2D(V.TEXTURE_2D,0,this.format,this.format,this.type,G),this._mipLevels.push(O)):V.texSubImage2D(V.TEXTURE_2D,O,T,z,this.format,this.type,G)}else if(P.shape&&P.stride&&P.data){if(P.shape.length<2||T+P.shape[1]>this._shape[1]>>>O||z+P.shape[0]>this._shape[0]>>>O||T<0||z<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");A(V,T,z,O,this.format,this.type,this._mipLevels,P)}else throw new Error("gl-texture2d: Unsupported data type")};function E(P,T){return P.length===3?T[2]===1&&T[1]===P[0]*P[2]&&T[0]===P[2]:T[0]===1&&T[1]===P[0]}function A(P,T,z,O,V,G,Z,H){var N=H.dtype,j=H.shape.slice();if(j.length<2||j.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var re=0,oe=0,_e=E(j,H.stride.slice());N==="float32"?re=P.FLOAT:N==="float64"?(re=P.FLOAT,_e=!1,N="float32"):N==="uint8"?re=P.UNSIGNED_BYTE:(re=P.UNSIGNED_BYTE,_e=!1,N="uint8");var Me=1;if(j.length===2)oe=P.LUMINANCE,j=[j[0],j[1],1],H=s(H.data,j,[H.stride[0],H.stride[1],1],H.offset);else if(j.length===3){if(j[2]===1)oe=P.ALPHA;else if(j[2]===2)oe=P.LUMINANCE_ALPHA;else if(j[2]===3)oe=P.RGB;else if(j[2]===4)oe=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");Me=j[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((oe===P.LUMINANCE||oe===P.ALPHA)&&(V===P.LUMINANCE||V===P.ALPHA)&&(oe=V),oe!==V)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var ke=H.size,me=Z.indexOf(O)<0;if(me&&Z.push(O),re===G&&_e)H.offset===0&&H.data.length===ke?me?P.texImage2D(P.TEXTURE_2D,O,V,j[0],j[1],0,V,G,H.data):P.texSubImage2D(P.TEXTURE_2D,O,T,z,j[0],j[1],V,G,H.data):me?P.texImage2D(P.TEXTURE_2D,O,V,j[0],j[1],0,V,G,H.data.subarray(H.offset,H.offset+ke)):P.texSubImage2D(P.TEXTURE_2D,O,T,z,j[0],j[1],V,G,H.data.subarray(H.offset,H.offset+ke));else{var ie;G===P.FLOAT?ie=u.mallocFloat32(ke):ie=u.mallocUint8(ke);var Se=s(ie,j,[j[2],j[2]*j[0],1]);re===P.FLOAT&&G===P.UNSIGNED_BYTE?_(Se,H):l.assign(Se,H),me?P.texImage2D(P.TEXTURE_2D,O,V,j[0],j[1],0,V,G,ie.subarray(0,ke)):P.texSubImage2D(P.TEXTURE_2D,O,T,z,j[0],j[1],V,G,ie.subarray(0,ke)),G===P.FLOAT?u.freeFloat32(ie):u.freeUint8(ie)}}function L(P){var T=P.createTexture();return P.bindTexture(P.TEXTURE_2D,T),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MIN_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MAG_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_S,P.CLAMP_TO_EDGE),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_T,P.CLAMP_TO_EDGE),T}function x(P,T,z,O,V){var G=P.getParameter(P.MAX_TEXTURE_SIZE);if(T<0||T>G||z<0||z>G)throw new Error("gl-texture2d: Invalid texture shape");if(V===P.FLOAT&&!P.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var Z=L(P);return P.texImage2D(P.TEXTURE_2D,0,O,T,z,0,O,V,null),new p(P,Z,T,z,O,V)}function k(P,T,z,O,V,G){var Z=L(P);return P.texImage2D(P.TEXTURE_2D,0,V,V,G,T),new p(P,Z,z,O,V,G)}function M(P,T){var z=T.dtype,O=T.shape.slice(),V=P.getParameter(P.MAX_TEXTURE_SIZE);if(O[0]<0||O[0]>V||O[1]<0||O[1]>V)throw new Error("gl-texture2d: Invalid texture size");var G=E(O,T.stride.slice()),Z=0;z==="float32"?Z=P.FLOAT:z==="float64"?(Z=P.FLOAT,G=!1,z="float32"):z==="uint8"?Z=P.UNSIGNED_BYTE:(Z=P.UNSIGNED_BYTE,G=!1,z="uint8");var H=0;if(O.length===2)H=P.LUMINANCE,O=[O[0],O[1],1],T=s(T.data,O,[T.stride[0],T.stride[1],1],T.offset);else if(O.length===3)if(O[2]===1)H=P.ALPHA;else if(O[2]===2)H=P.LUMINANCE_ALPHA;else if(O[2]===3)H=P.RGB;else if(O[2]===4)H=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");Z===P.FLOAT&&!P.getExtension("OES_texture_float")&&(Z=P.UNSIGNED_BYTE,G=!1);var N,j,re=T.size;if(G)T.offset===0&&T.data.length===re?N=T.data:N=T.data.subarray(T.offset,T.offset+re);else{var oe=[O[2],O[2]*O[0],1];j=u.malloc(re,z);var _e=s(j,O,oe,0);(z==="float32"||z==="float64")&&Z===P.UNSIGNED_BYTE?_(_e,T):l.assign(_e,T),N=j.subarray(0,re)}var Me=L(P);return P.texImage2D(P.TEXTURE_2D,0,H,O[0],O[1],0,H,Z,N),G||u.free(j),new p(P,Me,O[0],O[1],H,Z)}function g(P){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(c||d(P),typeof arguments[1]=="number")return x(P,arguments[1],arguments[2],arguments[3]||P.RGBA,arguments[4]||P.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return x(P,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var T=arguments[1],z=v(T)?T:T.raw;if(z)return k(P,z,T.width|0,T.height|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(T.shape&&T.data&&T.stride)return M(P,T)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433:function(i){"use strict";function a(o,s,l){s?s.bind():o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,null);var u=o.getParameter(o.MAX_VERTEX_ATTRIBS)|0;if(l){if(l.length>u)throw new Error("gl-vao: Too many vertex attributes");for(var c=0;c1?0:Math.acos(_)}},9226:function(i){i.exports=a;function a(o,s){return o[0]=Math.ceil(s[0]),o[1]=Math.ceil(s[1]),o[2]=Math.ceil(s[2]),o}},3126:function(i){i.exports=a;function a(o){var s=new Float32Array(3);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s}},3990:function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o}},1091:function(i){i.exports=a;function a(){var o=new Float32Array(3);return o[0]=0,o[1]=0,o[2]=0,o}},5911:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],d=l[1],v=l[2];return o[0]=c*v-f*d,o[1]=f*h-u*v,o[2]=u*d-c*h,o}},5455:function(i,a,o){i.exports=o(7056)},7056:function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2];return Math.sqrt(l*l+u*u+c*c)}},4008:function(i,a,o){i.exports=o(6690)},6690:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]/l[0],o[1]=s[1]/l[1],o[2]=s[2]/l[2],o}},244:function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]}},2613:function(i){i.exports=1e-6},9922:function(i,a,o){i.exports=l;var s=o(2613);function l(u,c){var f=u[0],h=u[1],d=u[2],v=c[0],_=c[1],b=c[2];return Math.abs(f-v)<=s*Math.max(1,Math.abs(f),Math.abs(v))&&Math.abs(h-_)<=s*Math.max(1,Math.abs(h),Math.abs(_))&&Math.abs(d-b)<=s*Math.max(1,Math.abs(d),Math.abs(b))}},9265:function(i){i.exports=a;function a(o,s){return o[0]===s[0]&&o[1]===s[1]&&o[2]===s[2]}},2681:function(i){i.exports=a;function a(o,s){return o[0]=Math.floor(s[0]),o[1]=Math.floor(s[1]),o[2]=Math.floor(s[2]),o}},5137:function(i,a,o){i.exports=l;var s=o(1091)();function l(u,c,f,h,d,v){var _,b;for(c||(c=3),f||(f=0),h?b=Math.min(h*c+f,u.length):b=u.length,_=f;_0&&(f=1/Math.sqrt(f),o[0]=s[0]*f,o[1]=s[1]*f,o[2]=s[2]*f),o}},7636:function(i){i.exports=a;function a(o,s){s=s||1;var l=Math.random()*2*Math.PI,u=Math.random()*2-1,c=Math.sqrt(1-u*u)*s;return o[0]=Math.cos(l)*c,o[1]=Math.sin(l)*c,o[2]=u*s,o}},6894:function(i){i.exports=a;function a(o,s,l,u){var c=l[1],f=l[2],h=s[1]-c,d=s[2]-f,v=Math.sin(u),_=Math.cos(u);return o[0]=s[0],o[1]=c+h*_-d*v,o[2]=f+h*v+d*_,o}},109:function(i){i.exports=a;function a(o,s,l,u){var c=l[0],f=l[2],h=s[0]-c,d=s[2]-f,v=Math.sin(u),_=Math.cos(u);return o[0]=c+d*v+h*_,o[1]=s[1],o[2]=f+d*_-h*v,o}},8692:function(i){i.exports=a;function a(o,s,l,u){var c=l[0],f=l[1],h=s[0]-c,d=s[1]-f,v=Math.sin(u),_=Math.cos(u);return o[0]=c+h*_-d*v,o[1]=f+h*v+d*_,o[2]=s[2],o}},2447:function(i){i.exports=a;function a(o,s){return o[0]=Math.round(s[0]),o[1]=Math.round(s[1]),o[2]=Math.round(s[2]),o}},6621:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]*l,o[1]=s[1]*l,o[2]=s[2]*l,o}},8489:function(i){i.exports=a;function a(o,s,l,u){return o[0]=s[0]+l[0]*u,o[1]=s[1]+l[1]*u,o[2]=s[2]+l[2]*u,o}},1463:function(i){i.exports=a;function a(o,s,l,u){return o[0]=s,o[1]=l,o[2]=u,o}},6141:function(i,a,o){i.exports=o(2953)},5486:function(i,a,o){i.exports=o(3066)},2953:function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2];return l*l+u*u+c*c}},3066:function(i){i.exports=a;function a(o){var s=o[0],l=o[1],u=o[2];return s*s+l*l+u*u}},2229:function(i,a,o){i.exports=o(6843)},6843:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]-l[0],o[1]=s[1]-l[1],o[2]=s[2]-l[2],o}},492:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2];return o[0]=u*l[0]+c*l[3]+f*l[6],o[1]=u*l[1]+c*l[4]+f*l[7],o[2]=u*l[2]+c*l[5]+f*l[8],o}},5673:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[3]*u+l[7]*c+l[11]*f+l[15];return h=h||1,o[0]=(l[0]*u+l[4]*c+l[8]*f+l[12])/h,o[1]=(l[1]*u+l[5]*c+l[9]*f+l[13])/h,o[2]=(l[2]*u+l[6]*c+l[10]*f+l[14])/h,o}},264:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],d=l[1],v=l[2],_=l[3],b=_*u+d*f-v*c,p=_*c+v*u-h*f,C=_*f+h*c-d*u,E=-h*u-d*c-v*f;return o[0]=b*_+E*-h+p*-v-C*-d,o[1]=p*_+E*-d+C*-h-b*-v,o[2]=C*_+E*-v+b*-d-p*-h,o}},4361:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]+l[0],o[1]=s[1]+l[1],o[2]=s[2]+l[2],o[3]=s[3]+l[3],o}},2335:function(i){i.exports=a;function a(o){var s=new Float32Array(4);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s[3]=o[3],s}},2933:function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o[3]=s[3],o}},7536:function(i){i.exports=a;function a(){var o=new Float32Array(4);return o[0]=0,o[1]=0,o[2]=0,o[3]=0,o}},4691:function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2],f=s[3]-o[3];return Math.sqrt(l*l+u*u+c*c+f*f)}},1373:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]/l[0],o[1]=s[1]/l[1],o[2]=s[2]/l[2],o[3]=s[3]/l[3],o}},3750:function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]+o[3]*s[3]}},3390:function(i){i.exports=a;function a(o,s,l,u){var c=new Float32Array(4);return c[0]=o,c[1]=s,c[2]=l,c[3]=u,c}},9970:function(i,a,o){i.exports={create:o(7536),clone:o(2335),fromValues:o(3390),copy:o(2933),set:o(4578),add:o(4361),subtract:o(6860),multiply:o(3576),divide:o(1373),min:o(2334),max:o(160),scale:o(9288),scaleAndAdd:o(4844),distance:o(4691),squaredDistance:o(7960),length:o(6808),squaredLength:o(483),negate:o(1498),inverse:o(4494),normalize:o(5177),dot:o(3750),lerp:o(2573),random:o(9131),transformMat4:o(5352),transformQuat:o(4041)}},4494:function(i){i.exports=a;function a(o,s){return o[0]=1/s[0],o[1]=1/s[1],o[2]=1/s[2],o[3]=1/s[3],o}},6808:function(i){i.exports=a;function a(o){var s=o[0],l=o[1],u=o[2],c=o[3];return Math.sqrt(s*s+l*l+u*u+c*c)}},2573:function(i){i.exports=a;function a(o,s,l,u){var c=s[0],f=s[1],h=s[2],d=s[3];return o[0]=c+u*(l[0]-c),o[1]=f+u*(l[1]-f),o[2]=h+u*(l[2]-h),o[3]=d+u*(l[3]-d),o}},160:function(i){i.exports=a;function a(o,s,l){return o[0]=Math.max(s[0],l[0]),o[1]=Math.max(s[1],l[1]),o[2]=Math.max(s[2],l[2]),o[3]=Math.max(s[3],l[3]),o}},2334:function(i){i.exports=a;function a(o,s,l){return o[0]=Math.min(s[0],l[0]),o[1]=Math.min(s[1],l[1]),o[2]=Math.min(s[2],l[2]),o[3]=Math.min(s[3],l[3]),o}},3576:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]*l[0],o[1]=s[1]*l[1],o[2]=s[2]*l[2],o[3]=s[3]*l[3],o}},1498:function(i){i.exports=a;function a(o,s){return o[0]=-s[0],o[1]=-s[1],o[2]=-s[2],o[3]=-s[3],o}},5177:function(i){i.exports=a;function a(o,s){var l=s[0],u=s[1],c=s[2],f=s[3],h=l*l+u*u+c*c+f*f;return h>0&&(h=1/Math.sqrt(h),o[0]=l*h,o[1]=u*h,o[2]=c*h,o[3]=f*h),o}},9131:function(i,a,o){var s=o(5177),l=o(9288);i.exports=u;function u(c,f){return f=f||1,c[0]=Math.random(),c[1]=Math.random(),c[2]=Math.random(),c[3]=Math.random(),s(c,c),l(c,c,f),c}},9288:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]*l,o[1]=s[1]*l,o[2]=s[2]*l,o[3]=s[3]*l,o}},4844:function(i){i.exports=a;function a(o,s,l,u){return o[0]=s[0]+l[0]*u,o[1]=s[1]+l[1]*u,o[2]=s[2]+l[2]*u,o[3]=s[3]+l[3]*u,o}},4578:function(i){i.exports=a;function a(o,s,l,u,c){return o[0]=s,o[1]=l,o[2]=u,o[3]=c,o}},7960:function(i){i.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2],f=s[3]-o[3];return l*l+u*u+c*c+f*f}},483:function(i){i.exports=a;function a(o){var s=o[0],l=o[1],u=o[2],c=o[3];return s*s+l*l+u*u+c*c}},6860:function(i){i.exports=a;function a(o,s,l){return o[0]=s[0]-l[0],o[1]=s[1]-l[1],o[2]=s[2]-l[2],o[3]=s[3]-l[3],o}},5352:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=s[3];return o[0]=l[0]*u+l[4]*c+l[8]*f+l[12]*h,o[1]=l[1]*u+l[5]*c+l[9]*f+l[13]*h,o[2]=l[2]*u+l[6]*c+l[10]*f+l[14]*h,o[3]=l[3]*u+l[7]*c+l[11]*f+l[15]*h,o}},4041:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],d=l[1],v=l[2],_=l[3],b=_*u+d*f-v*c,p=_*c+v*u-h*f,C=_*f+h*c-d*u,E=-h*u-d*c-v*f;return o[0]=b*_+E*-h+p*-v-C*-d,o[1]=p*_+E*-d+C*-h-b*-v,o[2]=C*_+E*-v+b*-d-p*-h,o[3]=s[3],o}},1848:function(i,a,o){var s=o(4905),l=o(6468);i.exports=u;function u(c){for(var f=Array.isArray(c)?c:s(c),h=0;h0)continue;Ut=Qe.slice(0,1).join("")}return Fe(Ut),ke+=Ut.length,N=N.slice(Ut.length),N.length}while(!0)}function $t(){return/[^a-fA-F0-9]/.test(Z)?(Fe(N.join("")),G=h,O):(N.push(Z),H=Z,O+1)}function sr(){return Z==="."||/[eE]/.test(Z)?(N.push(Z),G=E,H=Z,O+1):Z==="x"&&N.length===1&&N[0]==="0"?(G=g,N.push(Z),H=Z,O+1):/[^\d]/.test(Z)?(Fe(N.join("")),G=h,O):(N.push(Z),H=Z,O+1)}function wr(){return Z==="f"&&(N.push(Z),H=Z,O+=1),/[eE]/.test(Z)||(Z==="-"||Z==="+")&&/[eE]/.test(H)?(N.push(Z),H=Z,O+1):/[^\d]/.test(Z)?(Fe(N.join("")),G=h,O):(N.push(Z),H=Z,O+1)}function ur(){if(/[^\d\w_]/.test(Z)){var Qe=N.join("");return ge[Qe]?G=x:Pe[Qe]?G=L:G=A,Fe(N.join("")),G=h,O}return N.push(Z),H=Z,O+1}}},3508:function(i,a,o){var s=o(6852);s=s.slice().filter(function(l){return!/^(gl\_|texture)/.test(l)}),i.exports=s.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},6852:function(i){i.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},7932:function(i,a,o){var s=o(620);i.exports=s.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},620:function(i){i.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},7827:function(i){i.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905:function(i,a,o){var s=o(5874);i.exports=l;function l(u,c){var f=s(c),h=[];return h=h.concat(f(u)),h=h.concat(f(null)),h}},3236:function(i){i.exports=function(a){typeof a=="string"&&(a=[a]);for(var o=[].slice.call(arguments,1),s=[],l=0;l>1,b=-7,p=l?c-1:0,C=l?-1:1,E=o[s+p];for(p+=C,f=E&(1<<-b)-1,E>>=-b,b+=d;b>0;f=f*256+o[s+p],p+=C,b-=8);for(h=f&(1<<-b)-1,f>>=-b,b+=u;b>0;h=h*256+o[s+p],p+=C,b-=8);if(f===0)f=1-_;else{if(f===v)return h?NaN:(E?-1:1)*(1/0);h=h+Math.pow(2,u),f=f-_}return(E?-1:1)*h*Math.pow(2,f-u)},a.write=function(o,s,l,u,c,f){var h,d,v,_=f*8-c-1,b=(1<<_)-1,p=b>>1,C=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=u?0:f-1,A=u?1:-1,L=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(d=isNaN(s)?1:0,h=b):(h=Math.floor(Math.log(s)/Math.LN2),s*(v=Math.pow(2,-h))<1&&(h--,v*=2),h+p>=1?s+=C/v:s+=C*Math.pow(2,1-p),s*v>=2&&(h++,v/=2),h+p>=b?(d=0,h=b):h+p>=1?(d=(s*v-1)*Math.pow(2,c),h=h+p):(d=s*Math.pow(2,p-1)*Math.pow(2,c),h=0));c>=8;o[l+E]=d&255,E+=A,d/=256,c-=8);for(h=h<0;o[l+E]=h&255,E+=A,h/=256,_-=8);o[l+E-A]|=L*128}},8954:function(i,a,o){"use strict";i.exports=p;var s=o(3250),l=o(6803).Fw;function u(C,E,A){this.vertices=C,this.adjacent=E,this.boundary=A,this.lastVisited=-1}u.prototype.flip=function(){var C=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=C;var E=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=E};function c(C,E,A){this.vertices=C,this.cell=E,this.index=A}function f(C,E){return l(C.vertices,E.vertices)}function h(C){return function(){var E=this.tuple;return C.apply(this,E)}}function d(C){var E=s[C+1];return E||(E=s),h(E)}var v=[];function _(C,E,A){this.dimension=C,this.vertices=E,this.simplices=A,this.interior=A.filter(function(k){return!k.boundary}),this.tuple=new Array(C+1);for(var L=0;L<=C;++L)this.tuple[L]=this.vertices[L];var x=v[C];x||(x=v[C]=d(C)),this.orient=x}var b=_.prototype;b.handleBoundaryDegeneracy=function(C,E){var A=this.dimension,L=this.vertices.length-1,x=this.tuple,k=this.vertices,M=[C];for(C.lastVisited=-L;M.length>0;){C=M.pop();for(var g=C.adjacent,P=0;P<=A;++P){var T=g[P];if(!(!T.boundary||T.lastVisited<=-L)){for(var z=T.vertices,O=0;O<=A;++O){var V=z[O];V<0?x[O]=E:x[O]=k[V]}var G=this.orient();if(G>0)return T;T.lastVisited=-L,G===0&&M.push(T)}}}return null},b.walk=function(C,E){var A=this.vertices.length-1,L=this.dimension,x=this.vertices,k=this.tuple,M=E?this.interior.length*Math.random()|0:this.interior.length-1,g=this.interior[M];e:for(;!g.boundary;){for(var P=g.vertices,T=g.adjacent,z=0;z<=L;++z)k[z]=x[P[z]];g.lastVisited=A;for(var z=0;z<=L;++z){var O=T[z];if(!(O.lastVisited>=A)){var V=k[z];k[z]=C;var G=this.orient();if(k[z]=V,G<0){g=O;continue e}else O.boundary?O.lastVisited=-A:O.lastVisited=A}}return}return g},b.addPeaks=function(C,E){var A=this.vertices.length-1,L=this.dimension,x=this.vertices,k=this.tuple,M=this.interior,g=this.simplices,P=[E];E.lastVisited=A,E.vertices[E.vertices.indexOf(-1)]=A,E.boundary=!1,M.push(E);for(var T=[];P.length>0;){var E=P.pop(),z=E.vertices,O=E.adjacent,V=z.indexOf(A);if(!(V<0)){for(var G=0;G<=L;++G)if(G!==V){var Z=O[G];if(!(!Z.boundary||Z.lastVisited>=A)){var H=Z.vertices;if(Z.lastVisited!==-A){for(var N=0,j=0;j<=L;++j)H[j]<0?(N=j,k[j]=C):k[j]=x[H[j]];var re=this.orient();if(re>0){H[N]=A,Z.boundary=!1,M.push(Z),P.push(Z),Z.lastVisited=A;continue}else Z.lastVisited=-A}var oe=Z.adjacent,_e=z.slice(),Me=O.slice(),ke=new u(_e,Me,!0);g.push(ke);var me=oe.indexOf(E);if(!(me<0)){oe[me]=ke,Me[V]=Z,_e[G]=-1,Me[G]=E,O[G]=ke,ke.flip();for(var j=0;j<=L;++j){var ie=_e[j];if(!(ie<0||ie===A)){for(var Se=new Array(L-1),Le=0,Ae=0;Ae<=L;++Ae){var De=_e[Ae];De<0||Ae===j||(Se[Le++]=De)}T.push(new c(Se,ke,j))}}}}}}}T.sort(f);for(var G=0;G+1=0?M[P++]=g[z]:T=z&1;if(T===(C&1)){var O=M[0];M[0]=M[1],M[1]=O}E.push(M)}}return E};function p(C,E){var A=C.length;if(A===0)throw new Error("Must have at least d+1 points");var L=C[0].length;if(A<=L)throw new Error("Must input at least d+1 points");var x=C.slice(0,L+1),k=s.apply(void 0,x);if(k===0)throw new Error("Input not in general position");for(var M=new Array(L+1),g=0;g<=L;++g)M[g]=g;k<0&&(M[0]=1,M[1]=0);for(var P=new u(M,new Array(L+1),!1),T=P.adjacent,z=new Array(L+2),g=0;g<=L;++g){for(var O=M.slice(),V=0;V<=L;++V)V===g&&(O[V]=-1);var G=O[0];O[0]=O[1],O[1]=G;var Z=new u(O,new Array(L+1),!0);T[g]=Z,z[g]=Z}z[L+1]=P;for(var g=0;g<=L;++g)for(var O=T[g].vertices,H=T[g].adjacent,V=0;V<=L;++V){var N=O[V];if(N<0){H[V]=P;continue}for(var j=0;j<=L;++j)T[j].vertices.indexOf(N)<0&&(H[V]=T[j])}for(var re=new _(L,x,z),oe=!!E,g=L+1;g3*(z+1)?_(this,T):this.left.insert(T):this.left=k([T]);else if(T[0]>this.mid)this.right?4*(this.right.count+1)>3*(z+1)?_(this,T):this.right.insert(T):this.right=k([T]);else{var O=s.ge(this.leftPoints,T,L),V=s.ge(this.rightPoints,T,x);this.leftPoints.splice(O,0,T),this.rightPoints.splice(V,0,T)}},h.remove=function(T){var z=this.count-this.leftPoints;if(T[1]3*(z-1))return b(this,T);var V=this.left.remove(T);return V===c?(this.left=null,this.count-=1,u):(V===u&&(this.count-=1),V)}else if(T[0]>this.mid){if(!this.right)return l;var G=this.left?this.left.count:0;if(4*G>3*(z-1))return b(this,T);var V=this.right.remove(T);return V===c?(this.right=null,this.count-=1,u):(V===u&&(this.count-=1),V)}else{if(this.count===1)return this.leftPoints[0]===T?c:l;if(this.leftPoints.length===1&&this.leftPoints[0]===T){if(this.left&&this.right){for(var Z=this,H=this.left;H.right;)Z=H,H=H.right;if(Z===this)H.right=this.right;else{var N=this.left,V=this.right;Z.count-=H.count,Z.right=H.left,H.left=N,H.right=V}d(this,H),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?d(this,this.left):d(this,this.right);return u}for(var N=s.ge(this.leftPoints,T,L);N=0&&T[V][1]>=z;--V){var G=O(T[V]);if(G)return G}}function E(T,z){for(var O=0;Othis.mid){if(this.right){var O=this.right.queryPoint(T,z);if(O)return O}return C(this.rightPoints,T,z)}else return E(this.leftPoints,z)},h.queryInterval=function(T,z,O){if(Tthis.mid&&this.right){var V=this.right.queryInterval(T,z,O);if(V)return V}return zthis.mid?C(this.rightPoints,T,O):E(this.leftPoints,O)};function A(T,z){return T-z}function L(T,z){var O=T[0]-z[0];return O||T[1]-z[1]}function x(T,z){var O=T[1]-z[1];return O||T[0]-z[0]}function k(T){if(T.length===0)return null;for(var z=[],O=0;O>1],G=[],Z=[],H=[],O=0;O13)&&s!==32&&s!==133&&s!==160&&s!==5760&&s!==6158&&(s<8192||s>8205)&&s!==8232&&s!==8233&&s!==8239&&s!==8287&&s!==8288&&s!==12288&&s!==65279)return!1;return!0}},395:function(i){function a(o,s,l){return o*(1-l)+s*l}i.exports=a},2652:function(i,a,o){var s=o(4335),l=o(6864),u=o(1903),c=o(9921),f=o(7608),h=o(5665),d={length:o(1387),normalize:o(3536),dot:o(244),cross:o(5911)},v=l(),_=l(),b=[0,0,0,0],p=[[0,0,0],[0,0,0],[0,0,0]],C=[0,0,0];i.exports=function(k,M,g,P,T,z){if(M||(M=[0,0,0]),g||(g=[0,0,0]),P||(P=[0,0,0]),T||(T=[0,0,0,1]),z||(z=[0,0,0,1]),!s(v,k)||(u(_,v),_[3]=0,_[7]=0,_[11]=0,_[15]=1,Math.abs(c(_)<1e-8)))return!1;var O=v[3],V=v[7],G=v[11],Z=v[12],H=v[13],N=v[14],j=v[15];if(O!==0||V!==0||G!==0){b[0]=O,b[1]=V,b[2]=G,b[3]=j;var re=f(_,_);if(!re)return!1;h(_,_),E(T,b,_)}else T[0]=T[1]=T[2]=0,T[3]=1;if(M[0]=Z,M[1]=H,M[2]=N,A(p,v),g[0]=d.length(p[0]),d.normalize(p[0],p[0]),P[0]=d.dot(p[0],p[1]),L(p[1],p[1],p[0],1,-P[0]),g[1]=d.length(p[1]),d.normalize(p[1],p[1]),P[0]/=g[1],P[1]=d.dot(p[0],p[2]),L(p[2],p[2],p[0],1,-P[1]),P[2]=d.dot(p[1],p[2]),L(p[2],p[2],p[1],1,-P[2]),g[2]=d.length(p[2]),d.normalize(p[2],p[2]),P[1]/=g[2],P[2]/=g[2],d.cross(C,p[1],p[2]),d.dot(p[0],C)<0)for(var oe=0;oe<3;oe++)g[oe]*=-1,p[oe][0]*=-1,p[oe][1]*=-1,p[oe][2]*=-1;return z[0]=.5*Math.sqrt(Math.max(1+p[0][0]-p[1][1]-p[2][2],0)),z[1]=.5*Math.sqrt(Math.max(1-p[0][0]+p[1][1]-p[2][2],0)),z[2]=.5*Math.sqrt(Math.max(1-p[0][0]-p[1][1]+p[2][2],0)),z[3]=.5*Math.sqrt(Math.max(1+p[0][0]+p[1][1]+p[2][2],0)),p[2][1]>p[1][2]&&(z[0]=-z[0]),p[0][2]>p[2][0]&&(z[1]=-z[1]),p[1][0]>p[0][1]&&(z[2]=-z[2]),!0};function E(x,k,M){var g=k[0],P=k[1],T=k[2],z=k[3];return x[0]=M[0]*g+M[4]*P+M[8]*T+M[12]*z,x[1]=M[1]*g+M[5]*P+M[9]*T+M[13]*z,x[2]=M[2]*g+M[6]*P+M[10]*T+M[14]*z,x[3]=M[3]*g+M[7]*P+M[11]*T+M[15]*z,x}function A(x,k){x[0][0]=k[0],x[0][1]=k[1],x[0][2]=k[2],x[1][0]=k[4],x[1][1]=k[5],x[1][2]=k[6],x[2][0]=k[8],x[2][1]=k[9],x[2][2]=k[10]}function L(x,k,M,g,P){x[0]=k[0]*g+M[0]*P,x[1]=k[1]*g+M[1]*P,x[2]=k[2]*g+M[2]*P}},4335:function(i){i.exports=function(o,s){var l=s[15];if(l===0)return!1;for(var u=1/l,c=0;c<16;c++)o[c]=s[c]*u;return!0}},7442:function(i,a,o){var s=o(6658),l=o(7182),u=o(2652),c=o(9921),f=o(8648),h=b(),d=b(),v=b();i.exports=_;function _(E,A,L,x){if(c(A)===0||c(L)===0)return!1;var k=u(A,h.translate,h.scale,h.skew,h.perspective,h.quaternion),M=u(L,d.translate,d.scale,d.skew,d.perspective,d.quaternion);return!k||!M?!1:(s(v.translate,h.translate,d.translate,x),s(v.skew,h.skew,d.skew,x),s(v.scale,h.scale,d.scale,x),s(v.perspective,h.perspective,d.perspective,x),f(v.quaternion,h.quaternion,d.quaternion,x),l(E,v.translate,v.scale,v.skew,v.perspective,v.quaternion),!0)}function b(){return{translate:p(),scale:p(1),skew:p(),perspective:C(),quaternion:C()}}function p(E){return[E||0,E||0,E||0]}function C(){return[0,0,0,1]}},7182:function(i,a,o){var s={identity:o(7894),translate:o(7656),multiply:o(6760),create:o(6864),scale:o(2504),fromRotationTranslation:o(6743)},l=s.create(),u=s.create();i.exports=function(f,h,d,v,_,b){return s.identity(f),s.fromRotationTranslation(f,b,h),f[3]=_[0],f[7]=_[1],f[11]=_[2],f[15]=_[3],s.identity(u),v[2]!==0&&(u[9]=v[2],s.multiply(f,f,u)),v[1]!==0&&(u[9]=0,u[8]=v[1],s.multiply(f,f,u)),v[0]!==0&&(u[8]=0,u[4]=v[0],s.multiply(f,f,u)),s.scale(f,f,d),f}},1811:function(i,a,o){"use strict";var s=o(2478),l=o(7442),u=o(7608),c=o(5567),f=o(2408),h=o(7089),d=o(6582),v=o(7656),_=o(2504),b=o(3536),p=[0,0,0];i.exports=L;function C(x){this._components=x.slice(),this._time=[0],this.prevMatrix=x.slice(),this.nextMatrix=x.slice(),this.computedMatrix=x.slice(),this.computedInverse=x.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var E=C.prototype;E.recalcMatrix=function(x){var k=this._time,M=s.le(k,x),g=this.computedMatrix;if(!(M<0)){var P=this._components;if(M===k.length-1)for(var T=16*M,z=0;z<16;++z)g[z]=P[T++];else{for(var O=k[M+1]-k[M],T=16*M,V=this.prevMatrix,G=!0,z=0;z<16;++z)V[z]=P[T++];for(var Z=this.nextMatrix,z=0;z<16;++z)Z[z]=P[T++],G=G&&V[z]===Z[z];if(O<1e-6||G)for(var z=0;z<16;++z)g[z]=V[z];else l(g,V,Z,(x-k[M])/O)}var H=this.computedUp;H[0]=g[1],H[1]=g[5],H[2]=g[9],b(H,H);var N=this.computedInverse;u(N,g);var j=this.computedEye,re=N[15];j[0]=N[12]/re,j[1]=N[13]/re,j[2]=N[14]/re;for(var oe=this.computedCenter,_e=Math.exp(this.computedRadius[0]),z=0;z<3;++z)oe[z]=j[z]-g[2+4*z]*_e}},E.idle=function(x){if(!(x1&&s(u[d[p-2]],u[d[p-1]],b)<=0;)p-=1,d.pop();for(d.push(_),p=v.length;p>1&&s(u[v[p-2]],u[v[p-1]],b)>=0;)p-=1,v.pop();v.push(_)}for(var C=new Array(v.length+d.length-2),E=0,f=0,A=d.length;f0;--L)C[E++]=v[L];return C}},351:function(i,a,o){"use strict";i.exports=l;var s=o(4687);function l(u,c){c||(c=u,u=window);var f=0,h=0,d=0,v={shift:!1,alt:!1,control:!1,meta:!1},_=!1;function b(T){var z=!1;return"altKey"in T&&(z=z||T.altKey!==v.alt,v.alt=!!T.altKey),"shiftKey"in T&&(z=z||T.shiftKey!==v.shift,v.shift=!!T.shiftKey),"ctrlKey"in T&&(z=z||T.ctrlKey!==v.control,v.control=!!T.ctrlKey),"metaKey"in T&&(z=z||T.metaKey!==v.meta,v.meta=!!T.metaKey),z}function p(T,z){var O=s.x(z),V=s.y(z);"buttons"in z&&(T=z.buttons|0),(T!==f||O!==h||V!==d||b(z))&&(f=T|0,h=O||0,d=V||0,c&&c(f,h,d,v))}function C(T){p(0,T)}function E(){(f||h||d||v.shift||v.alt||v.meta||v.control)&&(h=d=0,f=0,v.shift=v.alt=v.control=v.meta=!1,c&&c(0,0,0,v))}function A(T){b(T)&&c&&c(f,h,d,v)}function L(T){s.buttons(T)===0?p(0,T):p(f,T)}function x(T){p(f|s.buttons(T),T)}function k(T){p(f&~s.buttons(T),T)}function M(){_||(_=!0,u.addEventListener("mousemove",L),u.addEventListener("mousedown",x),u.addEventListener("mouseup",k),u.addEventListener("mouseleave",C),u.addEventListener("mouseenter",C),u.addEventListener("mouseout",C),u.addEventListener("mouseover",C),u.addEventListener("blur",E),u.addEventListener("keyup",A),u.addEventListener("keydown",A),u.addEventListener("keypress",A),u!==window&&(window.addEventListener("blur",E),window.addEventListener("keyup",A),window.addEventListener("keydown",A),window.addEventListener("keypress",A)))}function g(){_&&(_=!1,u.removeEventListener("mousemove",L),u.removeEventListener("mousedown",x),u.removeEventListener("mouseup",k),u.removeEventListener("mouseleave",C),u.removeEventListener("mouseenter",C),u.removeEventListener("mouseout",C),u.removeEventListener("mouseover",C),u.removeEventListener("blur",E),u.removeEventListener("keyup",A),u.removeEventListener("keydown",A),u.removeEventListener("keypress",A),u!==window&&(window.removeEventListener("blur",E),window.removeEventListener("keyup",A),window.removeEventListener("keydown",A),window.removeEventListener("keypress",A)))}M();var P={element:u};return Object.defineProperties(P,{enabled:{get:function(){return _},set:function(T){T?M():g()},enumerable:!0},buttons:{get:function(){return f},enumerable:!0},x:{get:function(){return h},enumerable:!0},y:{get:function(){return d},enumerable:!0},mods:{get:function(){return v},enumerable:!0}}),P}},24:function(i){var a={left:0,top:0};i.exports=o;function o(l,u,c){u=u||l.currentTarget||l.srcElement,Array.isArray(c)||(c=[0,0]);var f=l.clientX||0,h=l.clientY||0,d=s(u);return c[0]=f-d.left,c[1]=h-d.top,c}function s(l){return l===window||l===document||l===document.body?a:l.getBoundingClientRect()}},4687:function(i,a){"use strict";function o(c){if(typeof c=="object"){if("buttons"in c)return c.buttons;if("which"in c){var f=c.which;if(f===2)return 4;if(f===3)return 2;if(f>0)return 1<=0)return 1<0){if(Me=1,ie[Le++]=v(M[z],E,A,L),z+=re,x>0)for(_e=1,O=M[z],Ae=ie[Le]=v(O,E,A,L),ge=ie[Le+De],Ye=ie[Le+Fe],Wt=ie[Le+ct],(Ae!==ge||Ae!==Ye||Ae!==Wt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,ge,Ye,Wt,E,A,L),st=Se[Le]=ke++),Le+=1,z+=re,_e=2;_e0)for(_e=1,O=M[z],Ae=ie[Le]=v(O,E,A,L),ge=ie[Le+De],Ye=ie[Le+Fe],Wt=ie[Le+ct],(Ae!==ge||Ae!==Ye||Ae!==Wt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,ge,Ye,Wt,E,A,L),st=Se[Le]=ke++,Wt!==Ye&&d(Se[Le+Fe],st,H,j,Ye,Wt,E,A,L)),Le+=1,z+=re,_e=2;_e0){if(_e=1,ie[Le++]=v(M[z],E,A,L),z+=re,k>0)for(Me=1,O=M[z],Ae=ie[Le]=v(O,E,A,L),Ye=ie[Le+Fe],ge=ie[Le+De],Wt=ie[Le+ct],(Ae!==Ye||Ae!==ge||Ae!==Wt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,Ye,ge,Wt,E,A,L),st=Se[Le]=ke++),Le+=1,z+=re,Me=2;Me0)for(Me=1,O=M[z],Ae=ie[Le]=v(O,E,A,L),Ye=ie[Le+Fe],ge=ie[Le+De],Wt=ie[Le+ct],(Ae!==Ye||Ae!==ge||Ae!==Wt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,Ye,ge,Wt,E,A,L),st=Se[Le]=ke++,Wt!==Ye&&d(Se[Le+Fe],st,j,G,Wt,Ye,E,A,L)),Le+=1,z+=re,Me=2;Me 0"),typeof f.vertex!="function"&&h("Must specify vertex creation function"),typeof f.cell!="function"&&h("Must specify cell creation function"),typeof f.phase!="function"&&h("Must specify phase function");for(var b=f.getters||[],p=new Array(v),C=0;C=0?p[C]=!0:p[C]=!1;return u(f.vertex,f.cell,f.phase,_,d,p)}},6199:function(i,a,o){"use strict";var s=o(1338),l={zero:function(L,x,k,M){var g=L[0],P=k[0];M|=0;var T=0,z=P;for(T=0;T2&&T[1]>2&&M(P.pick(-1,-1).lo(1,1).hi(T[0]-2,T[1]-2),g.pick(-1,-1,0).lo(1,1).hi(T[0]-2,T[1]-2),g.pick(-1,-1,1).lo(1,1).hi(T[0]-2,T[1]-2)),T[1]>2&&(k(P.pick(0,-1).lo(1).hi(T[1]-2),g.pick(0,-1,1).lo(1).hi(T[1]-2)),x(g.pick(0,-1,0).lo(1).hi(T[1]-2))),T[1]>2&&(k(P.pick(T[0]-1,-1).lo(1).hi(T[1]-2),g.pick(T[0]-1,-1,1).lo(1).hi(T[1]-2)),x(g.pick(T[0]-1,-1,0).lo(1).hi(T[1]-2))),T[0]>2&&(k(P.pick(-1,0).lo(1).hi(T[0]-2),g.pick(-1,0,0).lo(1).hi(T[0]-2)),x(g.pick(-1,0,1).lo(1).hi(T[0]-2))),T[0]>2&&(k(P.pick(-1,T[1]-1).lo(1).hi(T[0]-2),g.pick(-1,T[1]-1,0).lo(1).hi(T[0]-2)),x(g.pick(-1,T[1]-1,1).lo(1).hi(T[0]-2))),g.set(0,0,0,0),g.set(0,0,1,0),g.set(T[0]-1,0,0,0),g.set(T[0]-1,0,1,0),g.set(0,T[1]-1,0,0),g.set(0,T[1]-1,1,0),g.set(T[0]-1,T[1]-1,0,0),g.set(T[0]-1,T[1]-1,1,0),g}}function A(L){var x=L.join(),T=v[x];if(T)return T;for(var k=L.length,M=[b,p],g=1;g<=k;++g)M.push(C(g));var P=E,T=P.apply(void 0,M);return v[x]=T,T}i.exports=function(x,k,M){if(Array.isArray(M)||(typeof M=="string"?M=s(k.dimension,M):M=s(k.dimension,"clamp")),k.size===0)return x;if(k.dimension===0)return x.set(0),x;var g=A(M);return g(x,k)}},4317:function(i){"use strict";function a(c,f){var h=Math.floor(f),d=f-h,v=0<=h&&h0;){H<64?(x=H,H=0):(x=64,H-=64);for(var N=v[1]|0;N>0;){N<64?(k=N,N=0):(k=64,N-=64),p=G+H*g+N*P,A=Z+H*z+N*O;var j=0,re=0,oe=0,_e=T,Me=g-M*T,ke=P-x*g,me=V,ie=z-M*V,Se=O-x*z;for(oe=0;oe0;){O<64?(x=O,O=0):(x=64,O-=64);for(var V=v[0]|0;V>0;){V<64?(L=V,V=0):(L=64,V-=64),p=T+O*M+V*k,A=z+O*P+V*g;var G=0,Z=0,H=M,N=k-x*M,j=P,re=g-x*P;for(Z=0;Z0;){Z<64?(k=Z,Z=0):(k=64,Z-=64);for(var H=v[0]|0;H>0;){H<64?(L=H,H=0):(L=64,H-=64);for(var N=v[1]|0;N>0;){N<64?(x=N,N=0):(x=64,N-=64),p=V+Z*P+H*M+N*g,A=G+Z*O+H*T+N*z;var j=0,re=0,oe=0,_e=P,Me=M-k*P,ke=g-L*M,me=O,ie=T-k*O,Se=z-L*T;for(oe=0;oeC;){j=0,re=G-x;t:for(H=0;H_e)break t;re+=T,j+=z}for(j=G,re=G-x,H=0;H>1,N=H-V,j=H+V,re=G,oe=N,_e=H,Me=j,ke=Z,me=E+1,ie=A-1,Se=!0,Le,Ae,De,Pe,ge,Fe,ce,Ye,ct,pt=0,Wt=0,st=0,lt,Gt,Nt,$t,sr,wr,ur,Qe,Et,er,Ut,Ft,bt,yt,Yt,lr,Tr=P,Rr=b(Tr),ei=b(Tr);Gt=k*re,Nt=k*oe,lr=x;e:for(lt=0;lt0){Ae=re,re=oe,oe=Ae;break e}if(st<0)break e;lr+=z}Gt=k*Me,Nt=k*ke,lr=x;e:for(lt=0;lt0){Ae=Me,Me=ke,ke=Ae;break e}if(st<0)break e;lr+=z}Gt=k*re,Nt=k*_e,lr=x;e:for(lt=0;lt0){Ae=re,re=_e,_e=Ae;break e}if(st<0)break e;lr+=z}Gt=k*oe,Nt=k*_e,lr=x;e:for(lt=0;lt0){Ae=oe,oe=_e,_e=Ae;break e}if(st<0)break e;lr+=z}Gt=k*re,Nt=k*Me,lr=x;e:for(lt=0;lt0){Ae=re,re=Me,Me=Ae;break e}if(st<0)break e;lr+=z}Gt=k*_e,Nt=k*Me,lr=x;e:for(lt=0;lt0){Ae=_e,_e=Me,Me=Ae;break e}if(st<0)break e;lr+=z}Gt=k*oe,Nt=k*ke,lr=x;e:for(lt=0;lt0){Ae=oe,oe=ke,ke=Ae;break e}if(st<0)break e;lr+=z}Gt=k*oe,Nt=k*_e,lr=x;e:for(lt=0;lt0){Ae=oe,oe=_e,_e=Ae;break e}if(st<0)break e;lr+=z}Gt=k*Me,Nt=k*ke,lr=x;e:for(lt=0;lt0){Ae=Me,Me=ke,ke=Ae;break e}if(st<0)break e;lr+=z}for(Gt=k*re,Nt=k*oe,$t=k*_e,sr=k*Me,wr=k*ke,ur=k*G,Qe=k*H,Et=k*Z,Yt=0,lr=x,lt=0;lt0)ie--;else if(st<0){for(Gt=k*Fe,Nt=k*me,$t=k*ie,lr=x,lt=0;lt0)for(;;){ce=x+ie*k,Yt=0;e:for(lt=0;lt0){if(--ieZ){e:for(;;){for(ce=x+me*k,Yt=0,lr=x,lt=0;lt1&&C?A(p,C[0],C[1]):A(p)}var d={"uint32,1,0":function(_,b){return function(p){var C=p.data,E=p.offset|0,A=p.shape,L=p.stride,x=L[0]|0,k=A[0]|0,M=L[1]|0,g=A[1]|0,P=M,T=M,z=1;k<=32?_(0,k-1,C,E,x,M,k,g,P,T,z):b(0,k-1,C,E,x,M,k,g,P,T,z)}}};function v(_,b){var p=[b,_].join(","),C=d[p],E=c(_,b),A=h(_,b,E);return C(E,A)}i.exports=v},446:function(i,a,o){"use strict";var s=o(7640),l={};function u(c){var f=c.order,h=c.dtype,d=[f,h],v=d.join(":"),_=l[v];return _||(l[v]=_=s(f,h)),_(c),c}i.exports=u},9618:function(i,a,o){var s=o(7163),l=typeof Float64Array!="undefined";function u(b,p){return b[0]-p[0]}function c(){var b=this.stride,p=new Array(b.length),C;for(C=0;C=0&&(M=x|0,k+=P*M,g-=M),new E(this.data,g,P,k)},A.step=function(x){var k=this.shape[0],M=this.stride[0],g=this.offset,P=0,T=Math.ceil;return typeof x=="number"&&(P=x|0,P<0?(g+=M*(k-1),k=T(-k/P)):k=T(k/P),M*=P),new E(this.data,k,M,g)},A.transpose=function(x){x=x===void 0?0:x|0;var k=this.shape,M=this.stride;return new E(this.data,k[x],M[x],this.offset)},A.pick=function(x){var k=[],M=[],g=this.offset;typeof x=="number"&&x>=0?g=g+this.stride[0]*x|0:(k.push(this.shape[0]),M.push(this.stride[0]));var P=p[k.length+1];return P(this.data,k,M,g)},function(x,k,M,g){return new E(x,k[0],M[0],g)}},2:function(b,p,C){function E(L,x,k,M,g,P){this.data=L,this.shape=[x,k],this.stride=[M,g],this.offset=P|0}var A=E.prototype;return A.dtype=b,A.dimension=2,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(A,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),A.set=function(x,k,M){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*k,M):this.data[this.offset+this.stride[0]*x+this.stride[1]*k]=M},A.get=function(x,k){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*k):this.data[this.offset+this.stride[0]*x+this.stride[1]*k]},A.index=function(x,k){return this.offset+this.stride[0]*x+this.stride[1]*k},A.hi=function(x,k){return new E(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof k!="number"||k<0?this.shape[1]:k|0,this.stride[0],this.stride[1],this.offset)},A.lo=function(x,k){var M=this.offset,g=0,P=this.shape[0],T=this.shape[1],z=this.stride[0],O=this.stride[1];return typeof x=="number"&&x>=0&&(g=x|0,M+=z*g,P-=g),typeof k=="number"&&k>=0&&(g=k|0,M+=O*g,T-=g),new E(this.data,P,T,z,O,M)},A.step=function(x,k){var M=this.shape[0],g=this.shape[1],P=this.stride[0],T=this.stride[1],z=this.offset,O=0,V=Math.ceil;return typeof x=="number"&&(O=x|0,O<0?(z+=P*(M-1),M=V(-M/O)):M=V(M/O),P*=O),typeof k=="number"&&(O=k|0,O<0?(z+=T*(g-1),g=V(-g/O)):g=V(g/O),T*=O),new E(this.data,M,g,P,T,z)},A.transpose=function(x,k){x=x===void 0?0:x|0,k=k===void 0?1:k|0;var M=this.shape,g=this.stride;return new E(this.data,M[x],M[k],g[x],g[k],this.offset)},A.pick=function(x,k){var M=[],g=[],P=this.offset;typeof x=="number"&&x>=0?P=P+this.stride[0]*x|0:(M.push(this.shape[0]),g.push(this.stride[0])),typeof k=="number"&&k>=0?P=P+this.stride[1]*k|0:(M.push(this.shape[1]),g.push(this.stride[1]));var T=p[M.length+1];return T(this.data,M,g,P)},function(x,k,M,g){return new E(x,k[0],k[1],M[0],M[1],g)}},3:function(b,p,C){function E(L,x,k,M,g,P,T,z){this.data=L,this.shape=[x,k,M],this.stride=[g,P,T],this.offset=z|0}var A=E.prototype;return A.dtype=b,A.dimension=3,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(A,"order",{get:function(){var x=Math.abs(this.stride[0]),k=Math.abs(this.stride[1]),M=Math.abs(this.stride[2]);return x>k?k>M?[2,1,0]:x>M?[1,2,0]:[1,0,2]:x>M?[2,0,1]:M>k?[0,1,2]:[0,2,1]}}),A.set=function(x,k,M,g){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M,g):this.data[this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M]=g},A.get=function(x,k,M){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M):this.data[this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M]},A.index=function(x,k,M){return this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M},A.hi=function(x,k,M){return new E(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof k!="number"||k<0?this.shape[1]:k|0,typeof M!="number"||M<0?this.shape[2]:M|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},A.lo=function(x,k,M){var g=this.offset,P=0,T=this.shape[0],z=this.shape[1],O=this.shape[2],V=this.stride[0],G=this.stride[1],Z=this.stride[2];return typeof x=="number"&&x>=0&&(P=x|0,g+=V*P,T-=P),typeof k=="number"&&k>=0&&(P=k|0,g+=G*P,z-=P),typeof M=="number"&&M>=0&&(P=M|0,g+=Z*P,O-=P),new E(this.data,T,z,O,V,G,Z,g)},A.step=function(x,k,M){var g=this.shape[0],P=this.shape[1],T=this.shape[2],z=this.stride[0],O=this.stride[1],V=this.stride[2],G=this.offset,Z=0,H=Math.ceil;return typeof x=="number"&&(Z=x|0,Z<0?(G+=z*(g-1),g=H(-g/Z)):g=H(g/Z),z*=Z),typeof k=="number"&&(Z=k|0,Z<0?(G+=O*(P-1),P=H(-P/Z)):P=H(P/Z),O*=Z),typeof M=="number"&&(Z=M|0,Z<0?(G+=V*(T-1),T=H(-T/Z)):T=H(T/Z),V*=Z),new E(this.data,g,P,T,z,O,V,G)},A.transpose=function(x,k,M){x=x===void 0?0:x|0,k=k===void 0?1:k|0,M=M===void 0?2:M|0;var g=this.shape,P=this.stride;return new E(this.data,g[x],g[k],g[M],P[x],P[k],P[M],this.offset)},A.pick=function(x,k,M){var g=[],P=[],T=this.offset;typeof x=="number"&&x>=0?T=T+this.stride[0]*x|0:(g.push(this.shape[0]),P.push(this.stride[0])),typeof k=="number"&&k>=0?T=T+this.stride[1]*k|0:(g.push(this.shape[1]),P.push(this.stride[1])),typeof M=="number"&&M>=0?T=T+this.stride[2]*M|0:(g.push(this.shape[2]),P.push(this.stride[2]));var z=p[g.length+1];return z(this.data,g,P,T)},function(x,k,M,g){return new E(x,k[0],k[1],k[2],M[0],M[1],M[2],g)}},4:function(b,p,C){function E(L,x,k,M,g,P,T,z,O,V){this.data=L,this.shape=[x,k,M,g],this.stride=[P,T,z,O],this.offset=V|0}var A=E.prototype;return A.dtype=b,A.dimension=4,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(A,"order",{get:C}),A.set=function(x,k,M,g,P){return b==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g,P):this.data[this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g]=P},A.get=function(x,k,M,g){return b==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g):this.data[this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g]},A.index=function(x,k,M,g){return this.offset+this.stride[0]*x+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g},A.hi=function(x,k,M,g){return new E(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof k!="number"||k<0?this.shape[1]:k|0,typeof M!="number"||M<0?this.shape[2]:M|0,typeof g!="number"||g<0?this.shape[3]:g|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},A.lo=function(x,k,M,g){var P=this.offset,T=0,z=this.shape[0],O=this.shape[1],V=this.shape[2],G=this.shape[3],Z=this.stride[0],H=this.stride[1],N=this.stride[2],j=this.stride[3];return typeof x=="number"&&x>=0&&(T=x|0,P+=Z*T,z-=T),typeof k=="number"&&k>=0&&(T=k|0,P+=H*T,O-=T),typeof M=="number"&&M>=0&&(T=M|0,P+=N*T,V-=T),typeof g=="number"&&g>=0&&(T=g|0,P+=j*T,G-=T),new E(this.data,z,O,V,G,Z,H,N,j,P)},A.step=function(x,k,M,g){var P=this.shape[0],T=this.shape[1],z=this.shape[2],O=this.shape[3],V=this.stride[0],G=this.stride[1],Z=this.stride[2],H=this.stride[3],N=this.offset,j=0,re=Math.ceil;return typeof x=="number"&&(j=x|0,j<0?(N+=V*(P-1),P=re(-P/j)):P=re(P/j),V*=j),typeof k=="number"&&(j=k|0,j<0?(N+=G*(T-1),T=re(-T/j)):T=re(T/j),G*=j),typeof M=="number"&&(j=M|0,j<0?(N+=Z*(z-1),z=re(-z/j)):z=re(z/j),Z*=j),typeof g=="number"&&(j=g|0,j<0?(N+=H*(O-1),O=re(-O/j)):O=re(O/j),H*=j),new E(this.data,P,T,z,O,V,G,Z,H,N)},A.transpose=function(x,k,M,g){x=x===void 0?0:x|0,k=k===void 0?1:k|0,M=M===void 0?2:M|0,g=g===void 0?3:g|0;var P=this.shape,T=this.stride;return new E(this.data,P[x],P[k],P[M],P[g],T[x],T[k],T[M],T[g],this.offset)},A.pick=function(x,k,M,g){var P=[],T=[],z=this.offset;typeof x=="number"&&x>=0?z=z+this.stride[0]*x|0:(P.push(this.shape[0]),T.push(this.stride[0])),typeof k=="number"&&k>=0?z=z+this.stride[1]*k|0:(P.push(this.shape[1]),T.push(this.stride[1])),typeof M=="number"&&M>=0?z=z+this.stride[2]*M|0:(P.push(this.shape[2]),T.push(this.stride[2])),typeof g=="number"&&g>=0?z=z+this.stride[3]*g|0:(P.push(this.shape[3]),T.push(this.stride[3]));var O=p[P.length+1];return O(this.data,P,T,z)},function(x,k,M,g){return new E(x,k[0],k[1],k[2],k[3],M[0],M[1],M[2],M[3],g)}},5:function(p,C,E){function A(x,k,M,g,P,T,z,O,V,G,Z,H){this.data=x,this.shape=[k,M,g,P,T],this.stride=[z,O,V,G,Z],this.offset=H|0}var L=A.prototype;return L.dtype=p,L.dimension=5,Object.defineProperty(L,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(L,"order",{get:E}),L.set=function(k,M,g,P,T,z){return p==="generic"?this.data.set(this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T,z):this.data[this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T]=z},L.get=function(k,M,g,P,T){return p==="generic"?this.data.get(this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T):this.data[this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T]},L.index=function(k,M,g,P,T){return this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T},L.hi=function(k,M,g,P,T){return new A(this.data,typeof k!="number"||k<0?this.shape[0]:k|0,typeof M!="number"||M<0?this.shape[1]:M|0,typeof g!="number"||g<0?this.shape[2]:g|0,typeof P!="number"||P<0?this.shape[3]:P|0,typeof T!="number"||T<0?this.shape[4]:T|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},L.lo=function(k,M,g,P,T){var z=this.offset,O=0,V=this.shape[0],G=this.shape[1],Z=this.shape[2],H=this.shape[3],N=this.shape[4],j=this.stride[0],re=this.stride[1],oe=this.stride[2],_e=this.stride[3],Me=this.stride[4];return typeof k=="number"&&k>=0&&(O=k|0,z+=j*O,V-=O),typeof M=="number"&&M>=0&&(O=M|0,z+=re*O,G-=O),typeof g=="number"&&g>=0&&(O=g|0,z+=oe*O,Z-=O),typeof P=="number"&&P>=0&&(O=P|0,z+=_e*O,H-=O),typeof T=="number"&&T>=0&&(O=T|0,z+=Me*O,N-=O),new A(this.data,V,G,Z,H,N,j,re,oe,_e,Me,z)},L.step=function(k,M,g,P,T){var z=this.shape[0],O=this.shape[1],V=this.shape[2],G=this.shape[3],Z=this.shape[4],H=this.stride[0],N=this.stride[1],j=this.stride[2],re=this.stride[3],oe=this.stride[4],_e=this.offset,Me=0,ke=Math.ceil;return typeof k=="number"&&(Me=k|0,Me<0?(_e+=H*(z-1),z=ke(-z/Me)):z=ke(z/Me),H*=Me),typeof M=="number"&&(Me=M|0,Me<0?(_e+=N*(O-1),O=ke(-O/Me)):O=ke(O/Me),N*=Me),typeof g=="number"&&(Me=g|0,Me<0?(_e+=j*(V-1),V=ke(-V/Me)):V=ke(V/Me),j*=Me),typeof P=="number"&&(Me=P|0,Me<0?(_e+=re*(G-1),G=ke(-G/Me)):G=ke(G/Me),re*=Me),typeof T=="number"&&(Me=T|0,Me<0?(_e+=oe*(Z-1),Z=ke(-Z/Me)):Z=ke(Z/Me),oe*=Me),new A(this.data,z,O,V,G,Z,H,N,j,re,oe,_e)},L.transpose=function(k,M,g,P,T){k=k===void 0?0:k|0,M=M===void 0?1:M|0,g=g===void 0?2:g|0,P=P===void 0?3:P|0,T=T===void 0?4:T|0;var z=this.shape,O=this.stride;return new A(this.data,z[k],z[M],z[g],z[P],z[T],O[k],O[M],O[g],O[P],O[T],this.offset)},L.pick=function(k,M,g,P,T){var z=[],O=[],V=this.offset;typeof k=="number"&&k>=0?V=V+this.stride[0]*k|0:(z.push(this.shape[0]),O.push(this.stride[0])),typeof M=="number"&&M>=0?V=V+this.stride[1]*M|0:(z.push(this.shape[1]),O.push(this.stride[1])),typeof g=="number"&&g>=0?V=V+this.stride[2]*g|0:(z.push(this.shape[2]),O.push(this.stride[2])),typeof P=="number"&&P>=0?V=V+this.stride[3]*P|0:(z.push(this.shape[3]),O.push(this.stride[3])),typeof T=="number"&&T>=0?V=V+this.stride[4]*T|0:(z.push(this.shape[4]),O.push(this.stride[4]));var G=C[z.length+1];return G(this.data,z,O,V)},function(k,M,g,P){return new A(k,M[0],M[1],M[2],M[3],M[4],g[0],g[1],g[2],g[3],g[4],P)}}};function h(b,p){var C=p===-1?"T":String(p),E=f[C];return p===-1?E(b):p===0?E(b,v[b][0]):E(b,v[b],c)}function d(b){if(s(b))return"buffer";if(l)switch(Object.prototype.toString.call(b)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(b)?"array":"generic"}var v={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function _(b,p,C,E){if(b===void 0){var g=v.array[0];return g([])}else typeof b=="number"&&(b=[b]);p===void 0&&(p=[b.length]);var A=p.length;if(C===void 0){C=new Array(A);for(var L=A-1,x=1;L>=0;--L)C[L]=x,x*=p[L]}if(E===void 0){E=0;for(var L=0;L>>0;i.exports=c;function c(f,h){if(isNaN(f)||isNaN(h))return NaN;if(f===h)return f;if(f===0)return h<0?-l:l;var d=s.hi(f),v=s.lo(f);return h>f==f>0?v===u?(d+=1,v=0):v+=1:v===0?(v=u,d-=1):v-=1,s.pack(v,d)}},8406:function(i,a){var o=1e-6,s=1e-6;a.vertexNormals=function(l,u,c){for(var f=u.length,h=new Array(f),d=c===void 0?o:c,v=0;vd)for(var z=h[p],O=1/Math.sqrt(M*P),T=0;T<3;++T){var V=(T+1)%3,G=(T+2)%3;z[T]+=O*(g[V]*k[G]-g[G]*k[V])}}for(var v=0;vd)for(var O=1/Math.sqrt(Z),T=0;T<3;++T)z[T]*=O;else for(var T=0;T<3;++T)z[T]=0}return h},a.faceNormals=function(l,u,c){for(var f=l.length,h=new Array(f),d=c===void 0?s:c,v=0;vd?L=1/Math.sqrt(L):L=0;for(var p=0;p<3;++p)A[p]*=L;h[v]=A}return h}},4081:function(i){"use strict";i.exports=a;function a(o,s,l,u,c,f,h,d,v,_){var b=s+f+_;if(p>0){var p=Math.sqrt(b+1);o[0]=.5*(h-v)/p,o[1]=.5*(d-u)/p,o[2]=.5*(l-f)/p,o[3]=.5*p}else{var C=Math.max(s,f,_),p=Math.sqrt(2*C-b+1);s>=C?(o[0]=.5*p,o[1]=.5*(c+l)/p,o[2]=.5*(d+u)/p,o[3]=.5*(h-v)/p):f>=C?(o[0]=.5*(l+c)/p,o[1]=.5*p,o[2]=.5*(v+h)/p,o[3]=.5*(d-u)/p):(o[0]=.5*(u+d)/p,o[1]=.5*(h+v)/p,o[2]=.5*p,o[3]=.5*(l-c)/p)}return o}},9977:function(i,a,o){"use strict";i.exports=p;var s=o(9215),l=o(6582),u=o(7399),c=o(7608),f=o(4081);function h(C,E,A){return Math.sqrt(Math.pow(C,2)+Math.pow(E,2)+Math.pow(A,2))}function d(C,E,A,L){return Math.sqrt(Math.pow(C,2)+Math.pow(E,2)+Math.pow(A,2)+Math.pow(L,2))}function v(C,E){var A=E[0],L=E[1],x=E[2],k=E[3],M=d(A,L,x,k);M>1e-6?(C[0]=A/M,C[1]=L/M,C[2]=x/M,C[3]=k/M):(C[0]=C[1]=C[2]=0,C[3]=1)}function _(C,E,A){this.radius=s([A]),this.center=s(E),this.rotation=s(C),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var b=_.prototype;b.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},b.recalcMatrix=function(C){this.radius.curve(C),this.center.curve(C),this.rotation.curve(C);var E=this.computedRotation;v(E,E);var A=this.computedMatrix;u(A,E);var L=this.computedCenter,x=this.computedEye,k=this.computedUp,M=Math.exp(this.computedRadius[0]);x[0]=L[0]+M*A[2],x[1]=L[1]+M*A[6],x[2]=L[2]+M*A[10],k[0]=A[1],k[1]=A[5],k[2]=A[9];for(var g=0;g<3;++g){for(var P=0,T=0;T<3;++T)P+=A[g+4*T]*x[T];A[12+g]=-P}},b.getMatrix=function(C,E){this.recalcMatrix(C);var A=this.computedMatrix;if(E){for(var L=0;L<16;++L)E[L]=A[L];return E}return A},b.idle=function(C){this.center.idle(C),this.radius.idle(C),this.rotation.idle(C)},b.flush=function(C){this.center.flush(C),this.radius.flush(C),this.rotation.flush(C)},b.pan=function(C,E,A,L){E=E||0,A=A||0,L=L||0,this.recalcMatrix(C);var x=this.computedMatrix,k=x[1],M=x[5],g=x[9],P=h(k,M,g);k/=P,M/=P,g/=P;var T=x[0],z=x[4],O=x[8],V=T*k+z*M+O*g;T-=k*V,z-=M*V,O-=g*V;var G=h(T,z,O);T/=G,z/=G,O/=G;var Z=x[2],H=x[6],N=x[10],j=Z*k+H*M+N*g,re=Z*T+H*z+N*O;Z-=j*k+re*T,H-=j*M+re*z,N-=j*g+re*O;var oe=h(Z,H,N);Z/=oe,H/=oe,N/=oe;var _e=T*E+k*A,Me=z*E+M*A,ke=O*E+g*A;this.center.move(C,_e,Me,ke);var me=Math.exp(this.computedRadius[0]);me=Math.max(1e-4,me+L),this.radius.set(C,Math.log(me))},b.rotate=function(C,E,A,L){this.recalcMatrix(C),E=E||0,A=A||0;var x=this.computedMatrix,k=x[0],M=x[4],g=x[8],P=x[1],T=x[5],z=x[9],O=x[2],V=x[6],G=x[10],Z=E*k+A*P,H=E*M+A*T,N=E*g+A*z,j=-(V*N-G*H),re=-(G*Z-O*N),oe=-(O*H-V*Z),_e=Math.sqrt(Math.max(0,1-Math.pow(j,2)-Math.pow(re,2)-Math.pow(oe,2))),Me=d(j,re,oe,_e);Me>1e-6?(j/=Me,re/=Me,oe/=Me,_e/=Me):(j=re=oe=0,_e=1);var ke=this.computedRotation,me=ke[0],ie=ke[1],Se=ke[2],Le=ke[3],Ae=me*_e+Le*j+ie*oe-Se*re,De=ie*_e+Le*re+Se*j-me*oe,Pe=Se*_e+Le*oe+me*re-ie*j,ge=Le*_e-me*j-ie*re-Se*oe;if(L){j=O,re=V,oe=G;var Fe=Math.sin(L)/h(j,re,oe);j*=Fe,re*=Fe,oe*=Fe,_e=Math.cos(E),Ae=Ae*_e+ge*j+De*oe-Pe*re,De=De*_e+ge*re+Pe*j-Ae*oe,Pe=Pe*_e+ge*oe+Ae*re-De*j,ge=ge*_e-Ae*j-De*re-Pe*oe}var ce=d(Ae,De,Pe,ge);ce>1e-6?(Ae/=ce,De/=ce,Pe/=ce,ge/=ce):(Ae=De=Pe=0,ge=1),this.rotation.set(C,Ae,De,Pe,ge)},b.lookAt=function(C,E,A,L){this.recalcMatrix(C),A=A||this.computedCenter,E=E||this.computedEye,L=L||this.computedUp;var x=this.computedMatrix;l(x,E,A,L);var k=this.computedRotation;f(k,x[0],x[1],x[2],x[4],x[5],x[6],x[8],x[9],x[10]),v(k,k),this.rotation.set(C,k[0],k[1],k[2],k[3]);for(var M=0,g=0;g<3;++g)M+=Math.pow(A[g]-E[g],2);this.radius.set(C,.5*Math.log(Math.max(M,1e-6))),this.center.set(C,A[0],A[1],A[2])},b.translate=function(C,E,A,L){this.center.move(C,E||0,A||0,L||0)},b.setMatrix=function(C,E){var A=this.computedRotation;f(A,E[0],E[1],E[2],E[4],E[5],E[6],E[8],E[9],E[10]),v(A,A),this.rotation.set(C,A[0],A[1],A[2],A[3]);var L=this.computedMatrix;c(L,E);var x=L[15];if(Math.abs(x)>1e-6){var k=L[12]/x,M=L[13]/x,g=L[14]/x;this.recalcMatrix(C);var P=Math.exp(this.computedRadius[0]);this.center.set(C,k-L[2]*P,M-L[6]*P,g-L[10]*P),this.radius.idle(C)}else this.center.idle(C),this.radius.idle(C)},b.setDistance=function(C,E){E>0&&this.radius.set(C,Math.log(E))},b.setDistanceLimits=function(C,E){C>0?C=Math.log(C):C=-1/0,E>0?E=Math.log(E):E=1/0,E=Math.max(E,C),this.radius.bounds[0][0]=C,this.radius.bounds[1][0]=E},b.getDistanceLimits=function(C){var E=this.radius.bounds;return C?(C[0]=Math.exp(E[0][0]),C[1]=Math.exp(E[1][0]),C):[Math.exp(E[0][0]),Math.exp(E[1][0])]},b.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},b.fromJSON=function(C){var E=this.lastT(),A=C.center;A&&this.center.set(E,A[0],A[1],A[2]);var L=C.rotation;L&&this.rotation.set(E,L[0],L[1],L[2],L[3]);var x=C.distance;x&&x>0&&this.radius.set(E,Math.log(x)),this.setDistanceLimits(C.zoomMin,C.zoomMax)};function p(C){C=C||{};var E=C.center||[0,0,0],A=C.rotation||[0,0,0,1],L=C.radius||1;E=[].slice.call(E,0,3),A=[].slice.call(A,0,4),v(A,A);var x=new _(A,E,Math.log(L));return x.setDistanceLimits(C.zoomMin,C.zoomMax),("eye"in C||"up"in C)&&x.lookAt(0,C.eye,C.center,C.up),x}},1371:function(i,a,o){"use strict";var s=o(3233);i.exports=function(u,c,f){return f=typeof f!="undefined"?f+"":" ",s(f,c)+u}},3202:function(i){i.exports=function(o,s){s||(s=[0,""]),o=String(o);var l=parseFloat(o,10);return s[0]=l,s[1]=o.match(/[\d.\-\+]*\s*(.*)/)[1]||"",s}},3088:function(i,a,o){"use strict";i.exports=l;var s=o(3140);function l(u,c){for(var f=c.length|0,h=u.length,d=[new Array(f),new Array(f)],v=0;v0){z=d[G][P][0],V=G;break}O=z[V^1];for(var Z=0;Z<2;++Z)for(var H=d[Z][P],N=0;N0&&(z=j,O=re,V=Z)}return T||z&&p(z,V),O}function E(g,P){var T=d[P][g][0],z=[g];p(T,P);for(var O=T[P^1],V=P;;){for(;O!==g;)z.push(O),O=C(z[z.length-2],O,!1);if(d[0][g].length+d[1][g].length===0)break;var G=z[z.length-1],Z=g,H=z[1],N=C(G,Z,!0);if(s(c[G],c[Z],c[H],c[N])<0)break;z.push(g),O=C(G,Z)}return z}function A(g,P){return P[1]===P[P.length-1]}for(var v=0;v0;){var k=d[0][v].length,M=E(v,L);A(x,M)?x.push.apply(x,M):(x.length>0&&b.push(x),x=M)}x.length>0&&b.push(x)}return b}},5609:function(i,a,o){"use strict";i.exports=l;var s=o(3134);function l(u,c){for(var f=s(u,c.length),h=new Array(c.length),d=new Array(c.length),v=[],_=0;_0;){var p=v.pop();h[p]=!1;for(var C=f[p],_=0;_0}k=k.filter(M);for(var g=k.length,P=new Array(g),T=new Array(g),x=0;x0;){var ce=Pe.pop(),Ye=Me[ce];h(Ye,function(lt,Gt){return lt-Gt});var ct=Ye.length,pt=ge[ce],Wt;if(pt===0){var H=k[ce];Wt=[H]}for(var x=0;x=0)&&(ge[st]=pt^1,Pe.push(st),pt===0)){var H=k[st];De(H)||(H.reverse(),Wt.push(H))}}pt===0&&Fe.push(Wt)}return Fe}},5085:function(i,a,o){i.exports=C;var s=o(3250)[3],l=o(4209),u=o(3352),c=o(2478);function f(){return!0}function h(E){return function(A,L){var x=E[A];return x?!!x.queryPoint(L,f):!1}}function d(E){for(var A={},L=0;L0&&A[x]===L[0])k=E[x-1];else return 1;for(var M=1;k;){var g=k.key,P=s(L,g[0],g[1]);if(g[0][0]0)M=-1,k=k.right;else return 0;else if(P>0)k=k.left;else if(P<0)M=1,k=k.right;else return 0}return M}}function _(E){return 1}function b(E){return function(L){return E(L[0],L[1])?0:1}}function p(E,A){return function(x){return E(x[0],x[1])?0:A(x)}}function C(E){for(var A=E.length,L=[],x=[],k=0,M=0;M=_?(g=1,T=_+2*C+A):(g=-C/_,T=C*g+A)):(g=0,E>=0?(P=0,T=A):-E>=p?(P=1,T=p+2*E+A):(P=-E/p,T=E*P+A));else if(P<0)P=0,C>=0?(g=0,T=A):-C>=_?(g=1,T=_+2*C+A):(g=-C/_,T=C*g+A);else{var z=1/M;g*=z,P*=z,T=g*(_*g+b*P+2*C)+P*(b*g+p*P+2*E)+A}else{var O,V,G,Z;g<0?(O=b+C,V=p+E,V>O?(G=V-O,Z=_-2*b+p,G>=Z?(g=1,P=0,T=_+2*C+A):(g=G/Z,P=1-g,T=g*(_*g+b*P+2*C)+P*(b*g+p*P+2*E)+A)):(g=0,V<=0?(P=1,T=p+2*E+A):E>=0?(P=0,T=A):(P=-E/p,T=E*P+A))):P<0?(O=b+E,V=_+C,V>O?(G=V-O,Z=_-2*b+p,G>=Z?(P=1,g=0,T=p+2*E+A):(P=G/Z,g=1-P,T=g*(_*g+b*P+2*C)+P*(b*g+p*P+2*E)+A)):(P=0,V<=0?(g=1,T=_+2*C+A):C>=0?(g=0,T=A):(g=-C/_,T=C*g+A))):(G=p+E-b-C,G<=0?(g=0,P=1,T=p+2*E+A):(Z=_-2*b+p,G>=Z?(g=1,P=0,T=_+2*C+A):(g=G/Z,P=1-g,T=g*(_*g+b*P+2*C)+P*(b*g+p*P+2*E)+A)))}for(var H=1-g-P,v=0;v0){var p=f[d-1];if(s(_,p)===0&&u(p)!==b){d-=1;continue}}f[d++]=_}}return f.length=d,f}},3233:function(i){"use strict";var a="",o;i.exports=s;function s(l,u){if(typeof l!="string")throw new TypeError("expected a string");if(u===1)return l;if(u===2)return l+l;var c=l.length*u;if(o!==l||typeof o=="undefined")o=l,a="";else if(a.length>=c)return a.substr(0,c);for(;c>a.length&&u>1;)u&1&&(a+=l),u>>=1,l+=l;return a+=l,a=a.substr(0,c),a}},3025:function(i,a,o){i.exports=o.g.performance&&o.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004:function(i){"use strict";i.exports=a;function a(o){for(var s=o.length,l=o[o.length-1],u=s,c=s-2;c>=0;--c){var f=l,h=o[c];l=f+h;var d=l-f,v=h-d;v&&(o[--u]=l,l=v)}for(var _=0,c=u;c0){if(V<=0)return G;Z=O+V}else if(O<0){if(V>=0)return G;Z=-(O+V)}else return G;var H=d*Z;return G>=H||G<=-H?G:E(P,T,z)},function(P,T,z,O){var V=P[0]-O[0],G=T[0]-O[0],Z=z[0]-O[0],H=P[1]-O[1],N=T[1]-O[1],j=z[1]-O[1],re=P[2]-O[2],oe=T[2]-O[2],_e=z[2]-O[2],Me=G*j,ke=Z*N,me=Z*H,ie=V*j,Se=V*N,Le=G*H,Ae=re*(Me-ke)+oe*(me-ie)+_e*(Se-Le),De=(Math.abs(Me)+Math.abs(ke))*Math.abs(re)+(Math.abs(me)+Math.abs(ie))*Math.abs(oe)+(Math.abs(Se)+Math.abs(Le))*Math.abs(_e),Pe=v*De;return Ae>Pe||-Ae>Pe?Ae:A(P,T,z,O)}];function x(g){var P=L[g.length];return P||(P=L[g.length]=C(g.length)),P.apply(void 0,g)}function k(g,P,T,z,O,V,G){return function(H,N,j,re,oe){switch(arguments.length){case 0:case 1:return 0;case 2:return z(H,N);case 3:return O(H,N,j);case 4:return V(H,N,j,re);case 5:return G(H,N,j,re,oe)}for(var _e=new Array(arguments.length),Me=0;Me0&&_>0||v<0&&_<0)return!1;var b=s(h,c,f),p=s(d,c,f);return b>0&&p>0||b<0&&p<0?!1:v===0&&_===0&&b===0&&p===0?l(c,f,h,d):!0}},8545:function(i){"use strict";i.exports=o;function a(s,l){var u=s+l,c=u-s,f=u-c,h=l-c,d=s-f,v=d+h;return v?[v,u]:[u]}function o(s,l){var u=s.length|0,c=l.length|0;if(u===1&&c===1)return a(s[0],-l[0]);var f=u+c,h=new Array(f),d=0,v=0,_=0,b=Math.abs,p=s[v],C=b(p),E=-l[_],A=b(E),L,x;C=c?(L=p,v+=1,v=c?(L=p,v+=1,v>1,E=f[2*C+1];if(E===_)return C;_>1,E=f[2*C+1];if(E===_)return C;_>1,E=f[2*C+1];if(E===_)return C;_>1,E=f[2*C+1];if(E===_)return C;_>1,Z=d(P[G],T);Z<=0?(Z===0&&(V=G),z=G+1):Z>0&&(O=G-1)}return V}s=p;function C(P,T){for(var z=new Array(P.length),O=0,V=z.length;O=P.length||d(P[Me],G)!==0););}return z}s=C;function E(P,T){if(!T)return C(b(L(P,0)),P,0);for(var z=new Array(T),O=0;O>>j&1&&N.push(V[j]);T.push(N)}return _(T)}s=A;function L(P,T){if(T<0)return[];for(var z=[],O=(1<0)-(u<0)},a.abs=function(u){var c=u>>o-1;return(u^c)-c},a.min=function(u,c){return c^(u^c)&-(u65535)<<4,u>>>=c,f=(u>255)<<3,u>>>=f,c|=f,f=(u>15)<<2,u>>>=f,c|=f,f=(u>3)<<1,u>>>=f,c|=f,c|u>>1},a.log10=function(u){return u>=1e9?9:u>=1e8?8:u>=1e7?7:u>=1e6?6:u>=1e5?5:u>=1e4?4:u>=1e3?3:u>=100?2:u>=10?1:0},a.popCount=function(u){return u=u-(u>>>1&1431655765),u=(u&858993459)+(u>>>2&858993459),(u+(u>>>4)&252645135)*16843009>>>24};function s(u){var c=32;return u&=-u,u&&c--,u&65535&&(c-=16),u&16711935&&(c-=8),u&252645135&&(c-=4),u&858993459&&(c-=2),u&1431655765&&(c-=1),c}a.countTrailingZeros=s,a.nextPow2=function(u){return u+=u===0,--u,u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u+1},a.prevPow2=function(u){return u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u-(u>>>1)},a.parity=function(u){return u^=u>>>16,u^=u>>>8,u^=u>>>4,u&=15,27030>>>u&1};var l=new Array(256);(function(u){for(var c=0;c<256;++c){var f=c,h=c,d=7;for(f>>>=1;f;f>>>=1)h<<=1,h|=f&1,--d;u[c]=h<>>8&255]<<16|l[u>>>16&255]<<8|l[u>>>24&255]},a.interleave2=function(u,c){return u&=65535,u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,c&=65535,c=(c|c<<8)&16711935,c=(c|c<<4)&252645135,c=(c|c<<2)&858993459,c=(c|c<<1)&1431655765,u|c<<1},a.deinterleave2=function(u,c){return u=u>>>c&1431655765,u=(u|u>>>1)&858993459,u=(u|u>>>2)&252645135,u=(u|u>>>4)&16711935,u=(u|u>>>16)&65535,u<<16>>16},a.interleave3=function(u,c,f){return u&=1023,u=(u|u<<16)&4278190335,u=(u|u<<8)&251719695,u=(u|u<<4)&3272356035,u=(u|u<<2)&1227133513,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,u|=c<<1,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,u|f<<2},a.deinterleave3=function(u,c){return u=u>>>c&1227133513,u=(u|u>>>2)&3272356035,u=(u|u>>>4)&251719695,u=(u|u>>>8)&4278190335,u=(u|u>>>16)&1023,u<<22>>22},a.nextCombination=function(u){var c=u|u-1;return c+1|(~c&-~c)-1>>>s(u)+1}},2014:function(i,a,o){"use strict";"use restrict";var s=o(3105),l=o(4623);function u(g){for(var P=0,T=Math.max,z=0,O=g.length;z>1,G=h(g[V],P);G<=0?(G===0&&(O=V),T=V+1):G>0&&(z=V-1)}return O}a.findCell=b;function p(g,P){for(var T=new Array(g.length),z=0,O=T.length;z=g.length||h(g[_e],V)!==0););}return T}a.incidence=p;function C(g,P){if(!P)return p(_(A(g,0)),g,0);for(var T=new Array(P),z=0;z>>N&1&&H.push(O[N]);P.push(H)}return v(P)}a.explode=E;function A(g,P){if(P<0)return[];for(var T=[],z=(1<>1:(ie>>1)-1}function z(ie){for(var Se=P(ie);;){var Le=Se,Ae=2*ie+1,De=2*(ie+1),Pe=ie;if(Ae0;){var Le=T(ie);if(Le>=0){var Ae=P(Le);if(Se0){var ie=H[0];return g(0,re-1),re-=1,z(0),ie}return-1}function G(ie,Se){var Le=H[ie];return C[Le]===Se?ie:(C[Le]=-1/0,O(ie),V(),C[Le]=Se,re+=1,O(re-1))}function Z(ie){if(!E[ie]){E[ie]=!0;var Se=b[ie],Le=p[ie];b[Le]>=0&&(b[Le]=Se),p[Se]>=0&&(p[Se]=Le),N[Se]>=0&&G(N[Se],M(Se)),N[Le]>=0&&G(N[Le],M(Le))}}for(var H=[],N=new Array(v),A=0;A>1;A>=0;--A)z(A);for(;;){var oe=V();if(oe<0||C[oe]>d)break;Z(oe)}for(var _e=[],A=0;A=0&&Le>=0&&Se!==Le){var Ae=N[Se],De=N[Le];Ae!==De&&me.push([Ae,De])}}),l.unique(l.normalize(me)),{positions:_e,edges:me}}},1303:function(i,a,o){"use strict";i.exports=u;var s=o(3250);function l(c,f){var h,d;if(f[0][0]f[1][0])h=f[1],d=f[0];else{var v=Math.min(c[0][1],c[1][1]),_=Math.max(c[0][1],c[1][1]),b=Math.min(f[0][1],f[1][1]),p=Math.max(f[0][1],f[1][1]);return _p?v-p:_-p}var C,E;c[0][1]f[1][0])h=f[1],d=f[0];else return l(f,c);var v,_;if(c[0][0]c[1][0])v=c[1],_=c[0];else return-l(c,f);var b=s(h,d,_),p=s(h,d,v);if(b<0){if(p<=0)return b}else if(b>0){if(p>=0)return b}else if(p)return p;if(b=s(_,v,d),p=s(_,v,h),b<0){if(p<=0)return b}else if(b>0){if(p>=0)return b}else if(p)return p;return d[0]-_[0]}},4209:function(i,a,o){"use strict";i.exports=p;var s=o(2478),l=o(3840),u=o(3250),c=o(1303);function f(C,E,A){this.slabs=C,this.coordinates=E,this.horizontal=A}var h=f.prototype;function d(C,E){return C.y-E}function v(C,E){for(var A=null;C;){var L=C.key,x,k;L[0][0]0)if(E[0]!==L[1][0])A=C,C=C.right;else{var g=v(C.right,E);if(g)return g;C=C.left}else{if(E[0]!==L[1][0])return C;var g=v(C.right,E);if(g)return g;C=C.left}}return A}h.castUp=function(C){var E=s.le(this.coordinates,C[0]);if(E<0)return-1;var A=this.slabs[E],L=v(this.slabs[E],C),x=-1;if(L&&(x=L.value),this.coordinates[E]===C[0]){var k=null;if(L&&(k=L.key),E>0){var M=v(this.slabs[E-1],C);M&&(k?c(M.key,k)>0&&(k=M.key,x=M.value):(x=M.value,k=M.key))}var g=this.horizontal[E];if(g.length>0){var P=s.ge(g,C[1],d);if(P=g.length)return x;T=g[P]}}if(T.start)if(k){var z=u(k[0],k[1],[C[0],T.y]);k[0][0]>k[1][0]&&(z=-z),z>0&&(x=T.index)}else x=T.index;else T.y!==C[1]&&(x=T.index)}}}return x};function _(C,E,A,L){this.y=C,this.index=E,this.start=A,this.closed=L}function b(C,E,A,L){this.x=C,this.segment=E,this.create=A,this.index=L}function p(C){for(var E=C.length,A=2*E,L=new Array(A),x=0;x1&&(E=1);for(var A=1-E,L=v.length,x=new Array(L),k=0;k0||C>0&&x<0){var k=c(E,x,A,C);b.push(k),p.push(k.slice())}x<0?p.push(A.slice()):x>0?b.push(A.slice()):(b.push(A.slice()),p.push(A.slice())),C=x}return{positive:b,negative:p}}function h(v,_){for(var b=[],p=u(v[v.length-1],_),C=v[v.length-1],E=v[0],A=0;A0||p>0&&L<0)&&b.push(c(C,L,E,p)),L>=0&&b.push(E.slice()),p=L}return b}function d(v,_){for(var b=[],p=u(v[v.length-1],_),C=v[v.length-1],E=v[0],A=0;A0||p>0&&L<0)&&b.push(c(C,L,E,p)),L<=0&&b.push(E.slice()),p=L}return b}},3387:function(i,a,o){var s;(function(){"use strict";var l={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function u(v){return f(d(v),arguments)}function c(v,_){return u.apply(null,[v].concat(_||[]))}function f(v,_){var b=1,p=v.length,C,E="",A,L,x,k,M,g,P,T;for(A=0;A=0),x.type){case"b":C=parseInt(C,10).toString(2);break;case"c":C=String.fromCharCode(parseInt(C,10));break;case"d":case"i":C=parseInt(C,10);break;case"j":C=JSON.stringify(C,null,x.width?parseInt(x.width):0);break;case"e":C=x.precision?parseFloat(C).toExponential(x.precision):parseFloat(C).toExponential();break;case"f":C=x.precision?parseFloat(C).toFixed(x.precision):parseFloat(C);break;case"g":C=x.precision?String(Number(C.toPrecision(x.precision))):parseFloat(C);break;case"o":C=(parseInt(C,10)>>>0).toString(8);break;case"s":C=String(C),C=x.precision?C.substring(0,x.precision):C;break;case"t":C=String(!!C),C=x.precision?C.substring(0,x.precision):C;break;case"T":C=Object.prototype.toString.call(C).slice(8,-1).toLowerCase(),C=x.precision?C.substring(0,x.precision):C;break;case"u":C=parseInt(C,10)>>>0;break;case"v":C=C.valueOf(),C=x.precision?C.substring(0,x.precision):C;break;case"x":C=(parseInt(C,10)>>>0).toString(16);break;case"X":C=(parseInt(C,10)>>>0).toString(16).toUpperCase();break}l.json.test(x.type)?E+=C:(l.number.test(x.type)&&(!P||x.sign)?(T=P?"+":"-",C=C.toString().replace(l.sign,"")):T="",M=x.pad_char?x.pad_char==="0"?"0":x.pad_char.charAt(1):" ",g=x.width-(T+C).length,k=x.width&&g>0?M.repeat(g):"",E+=x.align?T+C+k:M==="0"?T+k+C:k+T+C)}return E}var h=Object.create(null);function d(v){if(h[v])return h[v];for(var _=v,b,p=[],C=0;_;){if((b=l.text.exec(_))!==null)p.push(b[0]);else if((b=l.modulo.exec(_))!==null)p.push("%");else if((b=l.placeholder.exec(_))!==null){if(b[2]){C|=1;var E=[],A=b[2],L=[];if((L=l.key.exec(A))!==null)for(E.push(L[1]);(A=A.substring(L[0].length))!=="";)if((L=l.key_access.exec(A))!==null)E.push(L[1]);else if((L=l.index_access.exec(A))!==null)E.push(L[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");b[2]=E}else C|=2;if(C===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");p.push({placeholder:b[0],param_no:b[1],keys:b[2],sign:b[3],pad_char:b[4],align:b[5],width:b[6],precision:b[7],type:b[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");_=_.substring(b[0].length)}return h[v]=p}a.sprintf=u,a.vsprintf=c,typeof window!="undefined"&&(window.sprintf=u,window.vsprintf=c,s=function(){return{sprintf:u,vsprintf:c}}.call(a,o,a,i),s!==void 0&&(i.exports=s))})()},3711:function(i,a,o){"use strict";i.exports=d;var s=o(2640),l=o(781),u={"2d":function(v,_,b){var p=v({order:_,scalarArguments:3,getters:b==="generic"?[0]:void 0,phase:function(E,A,L,x){return E>x|0},vertex:function(E,A,L,x,k,M,g,P,T,z,O,V,G){var Z=(g<<0)+(P<<1)+(T<<2)+(z<<3)|0;if(!(Z===0||Z===15))switch(Z){case 0:O.push([E-.5,A-.5]);break;case 1:O.push([E-.25-.25*(x+L-2*G)/(L-x),A-.25-.25*(k+L-2*G)/(L-k)]);break;case 2:O.push([E-.75-.25*(-x-L+2*G)/(x-L),A-.25-.25*(M+x-2*G)/(x-M)]);break;case 3:O.push([E-.5,A-.5-.5*(k+L+M+x-4*G)/(L-k+x-M)]);break;case 4:O.push([E-.25-.25*(M+k-2*G)/(k-M),A-.75-.25*(-k-L+2*G)/(k-L)]);break;case 5:O.push([E-.5-.5*(x+L+M+k-4*G)/(L-x+k-M),A-.5]);break;case 6:O.push([E-.5-.25*(-x-L+M+k)/(x-L+k-M),A-.5-.25*(-k-L+M+x)/(k-L+x-M)]);break;case 7:O.push([E-.75-.25*(M+k-2*G)/(k-M),A-.75-.25*(M+x-2*G)/(x-M)]);break;case 8:O.push([E-.75-.25*(-M-k+2*G)/(M-k),A-.75-.25*(-M-x+2*G)/(M-x)]);break;case 9:O.push([E-.5-.25*(x+L+-M-k)/(L-x+M-k),A-.5-.25*(k+L+-M-x)/(L-k+M-x)]);break;case 10:O.push([E-.5-.5*(-x-L+-M-k+4*G)/(x-L+M-k),A-.5]);break;case 11:O.push([E-.25-.25*(-M-k+2*G)/(M-k),A-.75-.25*(k+L-2*G)/(L-k)]);break;case 12:O.push([E-.5,A-.5-.5*(-k-L+-M-x+4*G)/(k-L+M-x)]);break;case 13:O.push([E-.75-.25*(x+L-2*G)/(L-x),A-.25-.25*(-M-x+2*G)/(M-x)]);break;case 14:O.push([E-.25-.25*(-x-L+2*G)/(x-L),A-.25-.25*(-k-L+2*G)/(k-L)]);break;case 15:O.push([E-.5,A-.5]);break}},cell:function(E,A,L,x,k,M,g,P,T){k?P.push([E,A]):P.push([A,E])}});return function(C,E){var A=[],L=[];return p(C,A,L,E),{positions:A,cells:L}}}};function c(v,_){var b=v.length+"d",p=u[b];if(p)return p(s,v,_)}function f(v,_){for(var b=l(v,_),p=b.length,C=new Array(p),E=new Array(p),A=0;AMath.max(x,k)?M[2]=1:x>Math.max(L,k)?M[0]=1:M[1]=1;for(var g=0,P=0,T=0;T<3;++T)g+=A[T]*A[T],P+=M[T]*A[T];for(var T=0;T<3;++T)M[T]-=P/g*A[T];return f(M,M),M}function b(A,L,x,k,M,g,P,T){this.center=s(x),this.up=s(k),this.right=s(M),this.radius=s([g]),this.angle=s([P,T]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(A,L),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var z=0;z<16;++z)this.computedMatrix[z]=.5;this.recalcMatrix(0)}var p=b.prototype;p.setDistanceLimits=function(A,L){A>0?A=Math.log(A):A=-1/0,L>0?L=Math.log(L):L=1/0,L=Math.max(L,A),this.radius.bounds[0][0]=A,this.radius.bounds[1][0]=L},p.getDistanceLimits=function(A){var L=this.radius.bounds[0];return A?(A[0]=Math.exp(L[0][0]),A[1]=Math.exp(L[1][0]),A):[Math.exp(L[0][0]),Math.exp(L[1][0])]},p.recalcMatrix=function(A){this.center.curve(A),this.up.curve(A),this.right.curve(A),this.radius.curve(A),this.angle.curve(A);for(var L=this.computedUp,x=this.computedRight,k=0,M=0,g=0;g<3;++g)M+=L[g]*x[g],k+=L[g]*L[g];for(var P=Math.sqrt(k),T=0,g=0;g<3;++g)x[g]-=L[g]*M/k,T+=x[g]*x[g],L[g]/=P;for(var z=Math.sqrt(T),g=0;g<3;++g)x[g]/=z;var O=this.computedToward;c(O,L,x),f(O,O);for(var V=Math.exp(this.computedRadius[0]),G=this.computedAngle[0],Z=this.computedAngle[1],H=Math.cos(G),N=Math.sin(G),j=Math.cos(Z),re=Math.sin(Z),oe=this.computedCenter,_e=H*j,Me=N*j,ke=re,me=-H*re,ie=-N*re,Se=j,Le=this.computedEye,Ae=this.computedMatrix,g=0;g<3;++g){var De=_e*x[g]+Me*O[g]+ke*L[g];Ae[4*g+1]=me*x[g]+ie*O[g]+Se*L[g],Ae[4*g+2]=De,Ae[4*g+3]=0}var Pe=Ae[1],ge=Ae[5],Fe=Ae[9],ce=Ae[2],Ye=Ae[6],ct=Ae[10],pt=ge*ct-Fe*Ye,Wt=Fe*ce-Pe*ct,st=Pe*Ye-ge*ce,lt=d(pt,Wt,st);pt/=lt,Wt/=lt,st/=lt,Ae[0]=pt,Ae[4]=Wt,Ae[8]=st;for(var g=0;g<3;++g)Le[g]=oe[g]+Ae[2+4*g]*V;for(var g=0;g<3;++g){for(var T=0,Gt=0;Gt<3;++Gt)T+=Ae[g+4*Gt]*Le[Gt];Ae[12+g]=-T}Ae[15]=1},p.getMatrix=function(A,L){this.recalcMatrix(A);var x=this.computedMatrix;if(L){for(var k=0;k<16;++k)L[k]=x[k];return L}return x};var C=[0,0,0];p.rotate=function(A,L,x,k){if(this.angle.move(A,L,x),k){this.recalcMatrix(A);var M=this.computedMatrix;C[0]=M[2],C[1]=M[6],C[2]=M[10];for(var g=this.computedUp,P=this.computedRight,T=this.computedToward,z=0;z<3;++z)M[4*z]=g[z],M[4*z+1]=P[z],M[4*z+2]=T[z];u(M,M,k,C);for(var z=0;z<3;++z)g[z]=M[4*z],P[z]=M[4*z+1];this.up.set(A,g[0],g[1],g[2]),this.right.set(A,P[0],P[1],P[2])}},p.pan=function(A,L,x,k){L=L||0,x=x||0,k=k||0,this.recalcMatrix(A);var M=this.computedMatrix,g=Math.exp(this.computedRadius[0]),P=M[1],T=M[5],z=M[9],O=d(P,T,z);P/=O,T/=O,z/=O;var V=M[0],G=M[4],Z=M[8],H=V*P+G*T+Z*z;V-=P*H,G-=T*H,Z-=z*H;var N=d(V,G,Z);V/=N,G/=N,Z/=N;var j=V*L+P*x,re=G*L+T*x,oe=Z*L+z*x;this.center.move(A,j,re,oe);var _e=Math.exp(this.computedRadius[0]);_e=Math.max(1e-4,_e+k),this.radius.set(A,Math.log(_e))},p.translate=function(A,L,x,k){this.center.move(A,L||0,x||0,k||0)},p.setMatrix=function(A,L,x,k){var M=1;typeof x=="number"&&(M=x|0),(M<0||M>3)&&(M=1);var g=(M+2)%3,P=(M+1)%3;L||(this.recalcMatrix(A),L=this.computedMatrix);var T=L[M],z=L[M+4],O=L[M+8];if(k){var G=Math.abs(T),Z=Math.abs(z),H=Math.abs(O),N=Math.max(G,Z,H);G===N?(T=T<0?-1:1,z=O=0):H===N?(O=O<0?-1:1,T=z=0):(z=z<0?-1:1,T=O=0)}else{var V=d(T,z,O);T/=V,z/=V,O/=V}var j=L[g],re=L[g+4],oe=L[g+8],_e=j*T+re*z+oe*O;j-=T*_e,re-=z*_e,oe-=O*_e;var Me=d(j,re,oe);j/=Me,re/=Me,oe/=Me;var ke=z*oe-O*re,me=O*j-T*oe,ie=T*re-z*j,Se=d(ke,me,ie);ke/=Se,me/=Se,ie/=Se,this.center.jump(A,ur,Qe,Et),this.radius.idle(A),this.up.jump(A,T,z,O),this.right.jump(A,j,re,oe);var Le,Ae;if(M===2){var De=L[1],Pe=L[5],ge=L[9],Fe=De*j+Pe*re+ge*oe,ce=De*ke+Pe*me+ge*ie;Wt<0?Le=-Math.PI/2:Le=Math.PI/2,Ae=Math.atan2(ce,Fe)}else{var Ye=L[2],ct=L[6],pt=L[10],Wt=Ye*T+ct*z+pt*O,st=Ye*j+ct*re+pt*oe,lt=Ye*ke+ct*me+pt*ie;Le=Math.asin(v(Wt)),Ae=Math.atan2(lt,st)}this.angle.jump(A,Ae,Le),this.recalcMatrix(A);var Gt=L[2],Nt=L[6],$t=L[10],sr=this.computedMatrix;l(sr,L);var wr=sr[15],ur=sr[12]/wr,Qe=sr[13]/wr,Et=sr[14]/wr,er=Math.exp(this.computedRadius[0]);this.center.jump(A,ur-Gt*er,Qe-Nt*er,Et-$t*er)},p.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},p.idle=function(A){this.center.idle(A),this.up.idle(A),this.right.idle(A),this.radius.idle(A),this.angle.idle(A)},p.flush=function(A){this.center.flush(A),this.up.flush(A),this.right.flush(A),this.radius.flush(A),this.angle.flush(A)},p.setDistance=function(A,L){L>0&&this.radius.set(A,Math.log(L))},p.lookAt=function(A,L,x,k){this.recalcMatrix(A),L=L||this.computedEye,x=x||this.computedCenter,k=k||this.computedUp;var M=k[0],g=k[1],P=k[2],T=d(M,g,P);if(!(T<1e-6)){M/=T,g/=T,P/=T;var z=L[0]-x[0],O=L[1]-x[1],V=L[2]-x[2],G=d(z,O,V);if(!(G<1e-6)){z/=G,O/=G,V/=G;var Z=this.computedRight,H=Z[0],N=Z[1],j=Z[2],re=M*H+g*N+P*j;H-=re*M,N-=re*g,j-=re*P;var oe=d(H,N,j);if(!(oe<.01&&(H=g*V-P*O,N=P*z-M*V,j=M*O-g*z,oe=d(H,N,j),oe<1e-6))){H/=oe,N/=oe,j/=oe,this.up.set(A,M,g,P),this.right.set(A,H,N,j),this.center.set(A,x[0],x[1],x[2]),this.radius.set(A,Math.log(G));var _e=g*j-P*N,Me=P*H-M*j,ke=M*N-g*H,me=d(_e,Me,ke);_e/=me,Me/=me,ke/=me;var ie=M*z+g*O+P*V,Se=H*z+N*O+j*V,Le=_e*z+Me*O+ke*V,Ae=Math.asin(v(ie)),De=Math.atan2(Le,Se),Pe=this.angle._state,ge=Pe[Pe.length-1],Fe=Pe[Pe.length-2];ge=ge%(2*Math.PI);var ce=Math.abs(ge+2*Math.PI-De),Ye=Math.abs(ge-De),ct=Math.abs(ge-2*Math.PI-De);ce0?j.pop():new ArrayBuffer(H)}a.mallocArrayBuffer=C;function E(Z){return new Uint8Array(C(Z),0,Z)}a.mallocUint8=E;function A(Z){return new Uint16Array(C(2*Z),0,Z)}a.mallocUint16=A;function L(Z){return new Uint32Array(C(4*Z),0,Z)}a.mallocUint32=L;function x(Z){return new Int8Array(C(Z),0,Z)}a.mallocInt8=x;function k(Z){return new Int16Array(C(2*Z),0,Z)}a.mallocInt16=k;function M(Z){return new Int32Array(C(4*Z),0,Z)}a.mallocInt32=M;function g(Z){return new Float32Array(C(4*Z),0,Z)}a.mallocFloat32=a.mallocFloat=g;function P(Z){return new Float64Array(C(8*Z),0,Z)}a.mallocFloat64=a.mallocDouble=P;function T(Z){return c?new Uint8ClampedArray(C(Z),0,Z):E(Z)}a.mallocUint8Clamped=T;function z(Z){return f?new BigUint64Array(C(8*Z),0,Z):null}a.mallocBigUint64=z;function O(Z){return h?new BigInt64Array(C(8*Z),0,Z):null}a.mallocBigInt64=O;function V(Z){return new DataView(C(Z),0,Z)}a.mallocDataView=V;function G(Z){Z=s.nextPow2(Z);var H=s.log2(Z),N=_[H];return N.length>0?N.pop():new u(Z)}a.mallocBuffer=G,a.clearCache=function(){for(var H=0;H<32;++H)d.UINT8[H].length=0,d.UINT16[H].length=0,d.UINT32[H].length=0,d.INT8[H].length=0,d.INT16[H].length=0,d.INT32[H].length=0,d.FLOAT[H].length=0,d.DOUBLE[H].length=0,d.BIGUINT64[H].length=0,d.BIGINT64[H].length=0,d.UINT8C[H].length=0,v[H].length=0,_[H].length=0}},1755:function(i){"use strict";"use restrict";i.exports=a;function a(s){this.roots=new Array(s),this.ranks=new Array(s);for(var l=0;l",j="",re=N.length,oe=j.length,_e=G[0]===C||G[0]===L,Me=0,ke=-oe;Me>-1&&(Me=Z.indexOf(N,Me),!(Me===-1||(ke=Z.indexOf(j,Me+re),ke===-1)||ke<=Me));){for(var me=Me;me=ke)H[me]=null,Z=Z.substr(0,me)+" "+Z.substr(me+1);else if(H[me]!==null){var ie=H[me].indexOf(G[0]);ie===-1?H[me]+=G:_e&&(H[me]=H[me].substr(0,ie+1)+(1+parseInt(H[me][ie+1]))+H[me].substr(ie+2))}var Se=Me+re,Le=Z.substr(Se,ke-Se),Ae=Le.indexOf(N);Ae!==-1?Me=Ae:Me=ke+oe}return H}function M(V,G,Z){for(var H=G.textAlign||"start",N=G.textBaseline||"alphabetic",j=[1<<30,1<<30],re=[0,0],oe=V.length,_e=0;_e/g,` +`):Z=Z.replace(/\/g," ");var re="",oe=[];for(ge=0;ge-1?parseInt(Qe[1+Ut]):0,yt=Ft>-1?parseInt(Et[1+Ft]):0;bt!==yt&&(er=er.replace(st(),"?px "),Ye*=Math.pow(.75,yt-bt),er=er.replace("?px ",st())),ce+=.25*ie*(yt-bt)}if(j.superscripts===!0){var Yt=Qe.indexOf(C),lr=Et.indexOf(C),Tr=Yt>-1?parseInt(Qe[1+Yt]):0,Rr=lr>-1?parseInt(Et[1+lr]):0;Tr!==Rr&&(er=er.replace(st(),"?px "),Ye*=Math.pow(.75,Rr-Tr),er=er.replace("?px ",st())),ce-=.25*ie*(Rr-Tr)}if(j.bolds===!0){var ei=Qe.indexOf(v)>-1,Wr=Et.indexOf(v)>-1;!ei&&Wr&&(Ur?er=er.replace("italic ","italic bold "):er="bold "+er),ei&&!Wr&&(er=er.replace("bold ",""))}if(j.italics===!0){var Ur=Qe.indexOf(b)>-1,dt=Et.indexOf(b)>-1;!Ur&&dt&&(er="italic "+er),Ur&&!dt&&(er=er.replace("italic ",""))}G.font=er}for(Pe=0;Pe0&&(N=H.size),H.lineSpacing&&H.lineSpacing>0&&(j=H.lineSpacing),H.styletags&&H.styletags.breaklines&&(re.breaklines=!!H.styletags.breaklines),H.styletags&&H.styletags.bolds&&(re.bolds=!!H.styletags.bolds),H.styletags&&H.styletags.italics&&(re.italics=!!H.styletags.italics),H.styletags&&H.styletags.subscripts&&(re.subscripts=!!H.styletags.subscripts),H.styletags&&H.styletags.superscripts&&(re.superscripts=!!H.styletags.superscripts)),Z.font=[H.fontStyle,H.fontVariant,H.fontWeight,N+"px",H.font].filter(function(_e){return _e}).join(" "),Z.textAlign="start",Z.textBaseline="alphabetic",Z.direction="ltr";var oe=g(G,Z,V,N,j,re);return z(oe,H,N)}},1538:function(i){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function o(T){T.permitHostObjects___&&T.permitHostObjects___(o)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=o);var s=!1;if(typeof WeakMap=="function"){var l=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var u=new l,c=Object.freeze({});if(u.set(c,1),u.get(c)!==1)s=!0;else{i.exports=WeakMap;return}}}var f=Object.prototype.hasOwnProperty,h=Object.getOwnPropertyNames,d=Object.defineProperty,v=Object.isExtensible,_="weakmap:",b=_+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var p=new ArrayBuffer(25),C=new Uint8Array(p);crypto.getRandomValues(C),b=_+"rand:"+Array.prototype.map.call(C,function(T){return(T%36).toString(36)}).join("")+"___"}function E(T){return!(T.substr(0,_.length)==_&&T.substr(T.length-3)==="___")}if(d(Object,"getOwnPropertyNames",{value:function(z){return h(z).filter(E)}}),"getPropertyNames"in Object){var A=Object.getPropertyNames;d(Object,"getPropertyNames",{value:function(z){return A(z).filter(E)}})}function L(T){if(T!==Object(T))throw new TypeError("Not an object: "+T);var z=T[b];if(z&&z.key===T)return z;if(v(T)){z={key:T};try{return d(T,b,{value:z,writable:!1,enumerable:!1,configurable:!1}),z}catch(O){return}}}(function(){var T=Object.freeze;d(Object,"freeze",{value:function(G){return L(G),T(G)}});var z=Object.seal;d(Object,"seal",{value:function(G){return L(G),z(G)}});var O=Object.preventExtensions;d(Object,"preventExtensions",{value:function(G){return L(G),O(G)}})})();function x(T){return T.prototype=null,Object.freeze(T)}var k=!1;function M(){!k&&typeof console!="undefined"&&(k=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var g=0,P=function(){this instanceof P||M();var T=[],z=[],O=g++;function V(N,j){var re,oe=L(N);return oe?O in oe?oe[O]:j:(re=T.indexOf(N),re>=0?z[re]:j)}function G(N){var j=L(N);return j?O in j:T.indexOf(N)>=0}function Z(N,j){var re,oe=L(N);return oe?oe[O]=j:(re=T.indexOf(N),re>=0?z[re]=j:(re=T.length,z[re]=j,T[re]=N)),this}function H(N){var j=L(N),re,oe;return j?O in j&&delete j[O]:(re=T.indexOf(N),re<0?!1:(oe=T.length-1,T[re]=void 0,z[re]=z[oe],T[re]=T[oe],T.length=oe,z.length=oe,!0))}return Object.create(P.prototype,{get___:{value:x(V)},has___:{value:x(G)},set___:{value:x(Z)},delete___:{value:x(H)}})};P.prototype=Object.create(Object.prototype,{get:{value:function(z,O){return this.get___(z,O)},writable:!0,configurable:!0},has:{value:function(z){return this.has___(z)},writable:!0,configurable:!0},set:{value:function(z,O){return this.set___(z,O)},writable:!0,configurable:!0},delete:{value:function(z){return this.delete___(z)},writable:!0,configurable:!0}}),typeof l=="function"?function(){s&&typeof Proxy!="undefined"&&(Proxy=void 0);function T(){this instanceof P||M();var z=new l,O=void 0,V=!1;function G(j,re){return O?z.has(j)?z.get(j):O.get___(j,re):z.get(j,re)}function Z(j){return z.has(j)||(O?O.has___(j):!1)}var H;s?H=function(j,re){return z.set(j,re),z.has(j)||(O||(O=new P),O.set(j,re)),this}:H=function(j,re){if(V)try{z.set(j,re)}catch(oe){O||(O=new P),O.set___(j,re)}else z.set(j,re);return this};function N(j){var re=!!z.delete(j);return O&&O.delete___(j)||re}return Object.create(P.prototype,{get___:{value:x(G)},has___:{value:x(Z)},set___:{value:x(H)},delete___:{value:x(N)},permitHostObjects___:{value:x(function(j){if(j===o)V=!0;else throw new Error("bogus call to permitHostObjects___")})}})}T.prototype=P.prototype,i.exports=T,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy!="undefined"&&(Proxy=void 0),i.exports=P)})()},236:function(i,a,o){var s=o(8284);i.exports=l;function l(){var u={};return function(c){if((typeof c!="object"||c===null)&&typeof c!="function")throw new Error("Weakmap-shim: Key must be object");var f=c.valueOf(u);return f&&f.identity===u?f:s(c,u)}}},8284:function(i){i.exports=a;function a(o,s){var l={identity:s},u=o.valueOf;return Object.defineProperty(o,"valueOf",{value:function(c){return c!==s?u.apply(this,arguments):l},writable:!0}),l}},606:function(i,a,o){var s=o(236);i.exports=l;function l(){var u=s();return{get:function(c,f){var h=u(c);return h.hasOwnProperty("value")?h.value:f},set:function(c,f){return u(c).value=f,this},has:function(c){return"value"in u(c)},delete:function(c){return delete u(c).value}}}},3349:function(i){"use strict";function a(){return function(f,h,d,v,_,b){var p=f[0],C=d[0],E=[0],A=C;v|=0;var L=0,x=C;for(L=0;L=0!=M>=0&&_.push(E[0]+.5+.5*(k+M)/(k-M))}v+=x,++E[0]}}}function o(){return a()}var s=o;function l(f){var h={};return function(v,_,b){var p=v.dtype,C=v.order,E=[p,C.join()].join(),A=h[E];return A||(h[E]=A=f([p,C])),A(v.shape.slice(0),v.data,v.stride,v.offset|0,_,b)}}function u(f){return l(s.bind(void 0,f))}function c(f){return u({funcName:f.funcName})}i.exports=c({funcName:"zeroCrossings"})},781:function(i,a,o){"use strict";i.exports=l;var s=o(3349);function l(u,c){var f=[];return c=+c||0,s(u.hi(u.shape[0]-1),f,c),f}},7790:function(){}},t={};function r(i){var a=t[i];if(a!==void 0)return a.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}(function(){r.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(i){if(typeof window=="object")return window}}()})(),function(){r.nmd=function(i){return i.paths=[],i.children||(i.children=[]),i}}();var n=r(1964);iPe.exports=n})()});var hX=ye((Opr,nPe)=>{"use strict";nPe.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var lPe=ye((qpr,sPe)=>{"use strict";var aPe=hX();sPe.exports=SPt;var oPe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function SPt(e){var t,r=[],n=1,i;if(typeof e=="string")if(e=e.toLowerCase(),aPe[e])r=aPe[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var l=t[1],u=l==="rgb",a=l.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(h,d){if(/%$/.test(h))return d===o?parseFloat(h)/100:a==="rgb"?parseFloat(h)*255/100:parseFloat(h);if(a[d]==="h"){if(/deg$/.test(h))return parseFloat(h);if(oPe[h]!==void 0)return oPe[h]}return parseFloat(h)}),l===a&&r.push(1),n=u||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(c){return parseFloat(c)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(i="rgb",r=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(i="hsl",r=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(i="rgb",r=[e>>>16,(e&65280)>>>8,e&255]);return{space:i,values:r,alpha:n}}});var cPe=ye((Bpr,uPe)=>{"use strict";var MPt=lPe();uPe.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,n,i,a=MPt(t);if(!a.space)return[];var o=[0,0,0],s=a.space[0]==="h"?[360,100,100]:[255,255,255];return r=Array(3),r[0]=Math.min(Math.max(a.values[0],o[0]),s[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),s[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),s[2]),a.space[0]==="h"&&(r=EPt(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function EPt(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,l,u=0;if(r===0)return l=n*255,[l,l,l];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];u<3;)o=t+1/3*-(u-1),o<0?o++:o>1&&o--,l=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[u++]=l*255;return s}});var XE=ye((Npr,fPe)=>{fPe.exports=CPt;function CPt(e,t,r){return tr?r:e:et?t:e}});var jD=ye((Upr,hPe)=>{hPe.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var $_=ye((Vpr,dPe)=>{"use strict";var kPt=cPe(),WD=XE(),LPt=jD();dPe.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=LPt(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=kPt(t),t[0]/=255,t[1]/=255,t[2]/=255),PPt(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,a&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(a?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=WD(Math.floor(t[0]*255),0,255),i[1]=WD(Math.floor(t[1]*255),0,255),i[2]=WD(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:WD(Math.floor(t[3]*255),0,255)),i)};function PPt(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var Jy=ye((Gpr,vPe)=>{"use strict";var IPt=$_();function RPt(e){return e?IPt(e):[0,0,0,1]}vPe.exports=RPt});var $y=ye((Hpr,bPe)=>{"use strict";var _Pe=Eo(),DPt=cd(),XD=$_(),ZD=tc(),FPt=Eh().defaultLine,pPe=vv().isArrayOrTypedArray,dX=XD(FPt),xPe=1;function gPe(e,t){var r=e;return r[3]*=t,r}function mPe(e){if(_Pe(e))return dX;var t=XD(e);return t.length?t:dX}function yPe(e){return _Pe(e)?e:xPe}function zPt(e,t,r){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var i=pPe(n),a=pPe(t),o=ZD.extractOpts(e),s=[],l,u,c,f,h;if(o.colorscale!==void 0?l=ZD.makeColorScaleFuncFromTrace(e):l=mPe,i?u=function(v,_){return v[_]===void 0?dX:XD(l(v[_]))}:u=mPe,a?c=function(v,_){return v[_]===void 0?xPe:yPe(v[_])}:c=yPe,i||a)for(var d=0;d{"use strict";wPe.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}});var YD=ye((Wpr,TPe)=>{"use strict";TPe.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var SPe=ye((Xpr,APe)=>{"use strict";var qPt=qa();function pX(e,t,r,n){if(!t||!t.visible)return null;for(var i=qPt.getComponentMethod("errorbars","makeComputeError")(t),a=new Array(e.length),o=0;o0){var f=n.c2l(u);n._lowerLogErrorBound||(n._lowerLogErrorBound=f),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,f)}}else a[o]=[-s[0]*r,s[1]*r]}return a}function BPt(e){for(var t=0;t{"use strict";var UPt=Od().gl_line3d,MPe=Od().gl_scatter3d,VPt=Od().gl_error3d,GPt=Od().gl_mesh3d,HPt=Od().delaunay_triangulate,Qy=Dr(),PPe=Jy(),KD=$y().formatColor,jPt=S3(),gX=vX(),WPt=YD(),XPt=ho(),ZPt=rp().appendArrayPointValue,YPt=SPe();function IPe(e,t){this.scene=e,this.uid=t,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var yX=IPe.prototype;yX.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var t=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(Qy.isArrayOrTypedArray(this.textLabels)?(this.textLabels[t]||this.textLabels[t]===0)&&(e.textLabel=this.textLabels[t]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]],!0}};function KPt(e,t,r){var n=(r+1)%3,i=(r+2)%3,a=[],o=[],s;for(s=0;s-1?-1:e.indexOf("right")>-1?1:0}function CPe(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function $Pt(e){var t=0,r=0,n=[t,r];if(Array.isArray(e))for(var i=0;i=0){var u=KPt(s.position,s.delaunayColor,s.delaunayAxis);u.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(u):(u.gl=t,this.delaunayMesh=GPt(u),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)};yX.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())};function rIt(e,t){var r=new IPe(e,t.uid);return r.update(t),r}RPe.exports=rIt});var TX=ye((Ypr,OPe)=>{"use strict";var e1=pf(),iIt=ec(),wX=Tu(),_X=df().axisHoverFormat,nIt=Qo().hovertemplateAttrs,aIt=Qo().texttemplateAttrs,FPe=Vl(),oIt=vX(),sIt=YD(),Yg=Ao().extendFlat,lIt=mc().overrideAll,zPe=Y1(),uIt=e1.line,N2=e1.marker,cIt=N2.line,fIt=Yg({width:uIt.width,dash:{valType:"enumerated",values:zPe(oIt),dflt:"solid"}},wX("line"));function xX(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var bX=OPe.exports=lIt({x:e1.x,y:e1.y,z:{valType:"data_array"},text:Yg({},e1.text,{}),texttemplate:aIt({},{}),hovertext:Yg({},e1.hovertext,{}),hovertemplate:nIt(),xhoverformat:_X("x"),yhoverformat:_X("y"),zhoverformat:_X("z"),mode:Yg({},e1.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:xX("x"),y:xX("y"),z:xX("z")},connectgaps:e1.connectgaps,line:fIt,marker:Yg({symbol:{valType:"enumerated",values:zPe(sIt),dflt:"circle",arrayOk:!0},size:Yg({},N2.size,{dflt:8}),sizeref:N2.sizeref,sizemin:N2.sizemin,sizemode:N2.sizemode,opacity:Yg({},N2.opacity,{arrayOk:!1}),colorbar:N2.colorbar,line:Yg({width:Yg({},cIt.width,{arrayOk:!1})},wX("marker.line"))},wX("marker")),textposition:Yg({},e1.textposition,{dflt:"top center"}),textfont:iIt({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:FPe.opacity,hoverinfo:Yg({},FPe.hoverinfo)},"calc","nested");bX.x.editType=bX.y.editType=bX.z.editType="calc+clearAxisTypes"});var NPe=ye((Kpr,BPe)=>{"use strict";var qPe=qa(),hIt=Dr(),AX=Ru(),dIt=$p(),vIt=R0(),pIt=D0(),gIt=TX();BPe.exports=function(t,r,n,i){function a(d,v){return hIt.coerce(t,r,gIt,d,v)}var o=mIt(t,r,a,i);if(!o){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),a("mode"),AX.hasMarkers(r)&&dIt(t,r,n,i,a,{noSelect:!0,noAngle:!0}),AX.hasLines(r)&&(a("connectgaps"),vIt(t,r,n,i,a)),AX.hasText(r)&&(a("texttemplate"),pIt(t,r,i,a,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var s=(r.line||{}).color,l=(r.marker||{}).color;a("surfaceaxis")>=0&&a("surfacecolor",s||l);for(var u=["x","y","z"],c=0;c<3;++c){var f="projection."+u[c];a(f+".show")&&(a(f+".opacity"),a(f+".scale"))}var h=qPe.getComponentMethod("errorbars","supplyDefaults");h(t,r,s||l||n,{axis:"z"}),h(t,r,s||l||n,{axis:"y",inherit:"z"}),h(t,r,s||l||n,{axis:"x",inherit:"z"})};function mIt(e,t,r,n){var i=0,a=r("x"),o=r("y"),s=r("z"),l=qPe.getComponentMethod("calendars","handleTraceDefaults");return l(e,t,["x","y","z"],n),a&&o&&s&&(i=Math.min(a.length,o.length,s.length),t._length=t._xlength=t._ylength=t._zlength=i),i}});var VPe=ye((Jpr,UPe)=>{"use strict";var yIt=Cm(),_It=F0();UPe.exports=function(t,r){var n=[{x:!1,y:!1,trace:r,t:{}}];return yIt(n,r),_It(t,r),n}});var HPe=ye(($pr,GPe)=>{GPe.exports=xIt;function xIt(e,t){if(typeof e!="string")throw new TypeError("must specify type string");if(t=t||{},typeof document=="undefined"&&!t.canvas)return null;var r=t.canvas||document.createElement("canvas");typeof t.width=="number"&&(r.width=t.width),typeof t.height=="number"&&(r.height=t.height);var n=t,i;try{var a=[e];e.indexOf("webgl")===0&&a.push("experimental-"+e);for(var o=0;o{var bIt=HPe();jPe.exports=function(t){return bIt("webgl",t)}});var SX=ye((e0r,ZPe)=>{"use strict";var XPe=Ca(),wIt=function(){};ZPe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=wIt);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=XPe.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=XPe.lightLine,n.style["z-index"]=30;var i=document.createElement("p");return i.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",i.style.position="relative",i.style.top="50%",i.style.left="50%",i.style.height="30%",i.style.width="50%",i.style.margin="-15% 0 0 -25%",n.appendChild(i),t.container.appendChild(n),t.container.style.background="#FFFFFF",t.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var JPe=ye((t0r,KPe)=>{"use strict";var U2=Jy(),TIt=Dr(),AIt=["xaxis","yaxis","zaxis"];function YPe(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var SIt=YPe.prototype;SIt.merge=function(e,t){for(var r=this,n=0;n<3;++n){var i=t[AIt[n]];if(!i.visible){r.tickEnable[n]=!1,r.labelEnable[n]=!1,r.lineEnable[n]=!1,r.lineTickEnable[n]=!1,r.gridEnable[n]=!1,r.zeroEnable[n]=!1,r.backgroundEnable[n]=!1;continue}r.labels[n]=e._meta?TIt.templateString(i.title.text,e._meta):i.title.text,"font"in i.title&&(i.title.font.color&&(r.labelColor[n]=U2(i.title.font.color)),i.title.font.family&&(r.labelFont[n]=i.title.font.family),i.title.font.size&&(r.labelSize[n]=i.title.font.size),i.title.font.weight&&(r.labelFontWeight[n]=i.title.font.weight),i.title.font.style&&(r.labelFontStyle[n]=i.title.font.style),i.title.font.variant&&(r.labelFontVariant[n]=i.title.font.variant)),"showline"in i&&(r.lineEnable[n]=i.showline),"linecolor"in i&&(r.lineColor[n]=U2(i.linecolor)),"linewidth"in i&&(r.lineWidth[n]=i.linewidth),"showgrid"in i&&(r.gridEnable[n]=i.showgrid),"gridcolor"in i&&(r.gridColor[n]=U2(i.gridcolor)),"gridwidth"in i&&(r.gridWidth[n]=i.gridwidth),i.type==="log"?r.zeroEnable[n]=!1:"zeroline"in i&&(r.zeroEnable[n]=i.zeroline),"zerolinecolor"in i&&(r.zeroLineColor[n]=U2(i.zerolinecolor)),"zerolinewidth"in i&&(r.zeroLineWidth[n]=i.zerolinewidth),"ticks"in i&&i.ticks?r.lineTickEnable[n]=!0:r.lineTickEnable[n]=!1,"ticklen"in i&&(r.lineTickLength[n]=r._defaultLineTickLength[n]=i.ticklen),"tickcolor"in i&&(r.lineTickColor[n]=U2(i.tickcolor)),"tickwidth"in i&&(r.lineTickWidth[n]=i.tickwidth),"tickangle"in i&&(r.tickAngle[n]=i.tickangle==="auto"?-3600:Math.PI*-i.tickangle/180),"showticklabels"in i&&(r.tickEnable[n]=i.showticklabels),"tickfont"in i&&(i.tickfont.color&&(r.tickColor[n]=U2(i.tickfont.color)),i.tickfont.family&&(r.tickFont[n]=i.tickfont.family),i.tickfont.size&&(r.tickSize[n]=i.tickfont.size),i.tickfont.weight&&(r.tickFontWeight[n]=i.tickfont.weight),i.tickfont.style&&(r.tickFontStyle[n]=i.tickfont.style),i.tickfont.variant&&(r.tickFontVariant[n]=i.tickfont.variant)),"mirror"in i?["ticks","all","allticks"].indexOf(i.mirror)!==-1?(r.lineTickMirror[n]=!0,r.lineMirror[n]=!0):i.mirror===!0?(r.lineTickMirror[n]=!1,r.lineMirror[n]=!0):(r.lineTickMirror[n]=!1,r.lineMirror[n]=!1):r.lineMirror[n]=!1,"showbackground"in i&&i.showbackground!==!1?(r.backgroundEnable[n]=!0,r.backgroundColor[n]=U2(i.backgroundcolor)):r.backgroundEnable[n]=!1}};function MIt(e,t){var r=new YPe;return r.merge(e,t),r}KPe.exports=MIt});var eIe=ye((r0r,QPe)=>{"use strict";var EIt=Jy(),CIt=["xaxis","yaxis","zaxis"];function $Pe(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var kIt=$Pe.prototype;kIt.merge=function(e){for(var t=0;t<3;++t){var r=e[CIt[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=EIt(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function LIt(e){var t=new $Pe;return t.merge(e),t}QPe.exports=LIt});var iIe=ye((i0r,rIe)=>{"use strict";rIe.exports=FIt;var tIe=ho(),PIt=Dr(),IIt=["xaxis","yaxis","zaxis"],RIt=[0,0,0];function DIt(e){for(var t=new Array(3),r=0;r<3;++r){for(var n=e[r],i=new Array(n.length),a=0;a/g," "));i[a]=u,o.tickmode=s}}t.ticks=i;for(var a=0;a<3;++a){RIt[a]=.5*(e.glplot.bounds[0][a]+e.glplot.bounds[1][a]);for(var c=0;c<2;++c)t.bounds[c][a]=e.glplot.bounds[c][a]}e.contourLevels=DIt(i)}});var cIe=ye((n0r,uIe)=>{"use strict";var oIe=Od().gl_plot3d,zIt=oIe.createCamera,nIe=oIe.createScene,OIt=WPe(),qIt=LL(),QD=qa(),lp=Dr(),$D=lp.preserveDrawingBuffer(),eF=ho(),Kg=vf(),BIt=Jy(),NIt=SX(),UIt=qU(),VIt=JPe(),GIt=eIe(),HIt=iIe(),jIt=wg().applyAutorangeOptions,ZE,JD,sIe=!1;function lIe(e,t){var r=document.createElement("div"),n=e.container;this.graphDiv=e.graphDiv;var i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.style.position="absolute",i.style.top=i.style.left="0px",i.style.width=i.style.height="100%",i.style["z-index"]=20,i.style["pointer-events"]="none",r.appendChild(i),this.svgContainer=i,r.id=e.id,r.style.position="absolute",r.style.top=r.style.left="0px",r.style.width=r.style.height="100%",n.appendChild(r),this.fullLayout=t,this.id=e.id||"scene",this.fullSceneLayout=t[this.id],this.plotArgs=[[],{},{}],this.axesOptions=VIt(t,t[this.id]),this.spikeOptions=GIt(t[this.id]),this.container=r,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=QD.getComponentMethod("annotations3d","convert"),this.drawAnnotations=QD.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var wv=lIe.prototype;wv.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:$D,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!JD&&(ZE=document.createElement("canvas"),JD=OIt({canvas:ZE,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!JD))throw new Error("error creating static canvas/context for image server");t.gl=JD,t.canvas=ZE}return t};var aIe=!0;wv.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=nIe(t)}catch(n){if(e.staticMode||!aIe||$D)r=!1;else{lp.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{$D=t.glOptions.preserveDrawingBuffer=!0,e.glplot=nIe(t)}catch(i){$D=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return aIe=!1,r};wv.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=zIt(e.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:r,zoomMin:.01,zoomMax:100,mode:"orbit"})};wv.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var t=e.tryCreatePlot();if(!t)return NIt(e);e.traces={},e.make4thDimension();var r=e.graphDiv,n=r.layout,i=function(){var o={};return e.isCameraChanged(n)&&(o[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(o[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=o[e.id+".aspectmode"]="manual")),o},a=function(o){if(o.fullSceneLayout.dragmode!==!1){var s=i();o.saveLayout(n),o.graphDiv.emit("plotly_relayout",s)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){a(e)}),e.glplot.canvas.addEventListener("touchstart",function(){sIe=!0}),e.glplot.canvas.addEventListener("wheel",function(o){if(r._context._scrollZoom.gl3d){if(e.camera._ortho){var s=o.deltaX>o.deltaY?1.1:.9090909090909091,l=e.glplot.getAspectratio();e.glplot.setAspectratio({x:s*l.x,y:s*l.y,z:s*l.z})}a(e)}},qIt?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var o=i();e.graphDiv.emit("plotly_relayouting",o)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(o){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:o,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};wv.render=function(){var e=this,t=e.graphDiv,r,n=e.svgContainer,i=e.container.getBoundingClientRect();t._fullLayout._calcInverseTransform(t);var a=t._fullLayout._invScaleX,o=t._fullLayout._invScaleY,s=i.width*a,l=i.height*o;n.setAttributeNS(null,"viewBox","0 0 "+s+" "+l),n.setAttributeNS(null,"width",s),n.setAttributeNS(null,"height",l),HIt(e),e.glplot.axes.update(e.axesOptions);for(var u=Object.keys(e.traces),c=null,f=e.glplot.selection,h=0;h")):r.type==="isosurface"||r.type==="volume"?(p.valueLabel=eF.hoverLabelText(e._mockAxis,e._mockAxis.d2l(f.traceCoordinate[3]),r.valuehoverformat),x.push("value: "+p.valueLabel),f.textLabel&&x.push(f.textLabel),L=x.join("
")):L=f.textLabel;var k={x:f.traceCoordinate[0],y:f.traceCoordinate[1],z:f.traceCoordinate[2],data:_._input,fullData:_,curveNumber:_.index,pointNumber:b};Kg.appendArrayPointValue(k,_,b),r._module.eventData&&(k=_._module.eventData(k,f,_,{},b));var M={points:[k]};if(e.fullSceneLayout.hovermode){var g=[];Kg.loneHover({trace:_,x:(.5+.5*v[0]/v[3])*s,y:(.5-.5*v[1]/v[3])*l,xLabel:p.xLabel,yLabel:p.yLabel,zLabel:p.zLabel,text:L,name:c.name,color:Kg.castHoverOption(_,b,"bgcolor")||c.color,borderColor:Kg.castHoverOption(_,b,"bordercolor"),fontFamily:Kg.castHoverOption(_,b,"font.family"),fontSize:Kg.castHoverOption(_,b,"font.size"),fontColor:Kg.castHoverOption(_,b,"font.color"),nameLength:Kg.castHoverOption(_,b,"namelength"),textAlign:Kg.castHoverOption(_,b,"align"),hovertemplate:lp.castOption(_,b,"hovertemplate"),hovertemplateLabels:lp.extendFlat({},k,p),eventData:[k]},{container:n,gd:t,inOut_bbox:g}),k.bbox=g[0]}f.distance<5&&(f.buttons||sIe)?t.emit("plotly_click",M):t.emit("plotly_hover",M),this.oldEventData=M}else Kg.loneUnhover(n),this.oldEventData&&t.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};wv.recoverContext=function(){var e=this;e.glplot.dispose();var t=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(t);return}if(!e.initializeGLPlot()){lp.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(t)};var YE=["xaxis","yaxis","zaxis"];function WIt(e,t,r){for(var n=e.fullSceneLayout,i=0;i<3;i++){var a=YE[i],o=a.charAt(0),s=n[a],l=t[o],u=t[o+"calendar"],c=t["_"+o+"length"];if(!lp.isArrayOrTypedArray(l))r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],c-1);else for(var f,h=0;h<(c||l.length);h++)if(lp.isArrayOrTypedArray(l[h]))for(var d=0;d_[1][o])_[0][o]=-1,_[1][o]=1;else{var T=_[1][o]-_[0][o];_[0][o]-=T/32,_[1][o]+=T/32}if(C=[_[0][o],_[1][o]],C=jIt(C,l),_[0][o]=C[0],_[1][o]=C[1],l.isReversed()){var z=_[0][o];_[0][o]=_[1][o],_[1][o]=z}}else C=l.range,_[0][o]=l.r2l(C[0]),_[1][o]=l.r2l(C[1]);_[0][o]===_[1][o]&&(_[0][o]-=1,_[1][o]+=1),b[o]=_[1][o]-_[0][o],l.range=[_[0][o],_[1][o]],l.limitRange(),n.glplot.setBounds(o,{min:l.range[0]*d[o],max:l.range[1]*d[o]})}var O,V=c.aspectmode;if(V==="cube")O=[1,1,1];else if(V==="manual"){var G=c.aspectratio;O=[G.x,G.y,G.z]}else if(V==="auto"||V==="data"){var Z=[1,1,1];for(o=0;o<3;++o){l=c[YE[o]],u=l.type;var H=p[u];Z[o]=Math.pow(H.acc,1/H.count)/d[o]}V==="data"||Math.max.apply(null,Z)/Math.min.apply(null,Z)<=4?O=Z:O=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");c.aspectratio.x=f.aspectratio.x=O[0],c.aspectratio.y=f.aspectratio.y=O[1],c.aspectratio.z=f.aspectratio.z=O[2],n.glplot.setAspectratio(c.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:c.aspectratio.x,y:c.aspectratio.y,z:c.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=c.aspectmode);var N=c.domain||null,j=t._size||null;if(N&&j){var re=n.container.style;re.position="absolute",re.left=j.l+N.x[0]*j.w+"px",re.top=j.t+(1-N.y[1])*j.h+"px",re.width=j.w*(N.x[1]-N.x[0])+"px",re.height=j.h*(N.y[1]-N.y[0])+"px"}n.glplot.redraw()}};wv.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function ZIt(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function YIt(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}wv.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),YIt(e.camera)};wv.setViewport=function(e){var t=this,r=e.camera;t.camera.lookAt.apply(this,ZIt(r)),t.glplot.setAspectratio(e.aspectratio);var n=r.projection.type==="orthographic",i=t.camera._ortho;n!==i&&(t.glplot.redraw(),t.glplot.clearRGBA(),t.glplot.dispose(),t.initializeGLPlot())};wv.isCameraChanged=function(e){var t=this,r=t.getCamera(),n=lp.nestedProperty(e,t.id+".camera"),i=n.get();function a(u,c,f,h){var d=["up","center","eye"],v=["x","y","z"];return c[d[f]]&&u[d[f]][v[h]]===c[d[f]][v[h]]}var o=!1;if(i===void 0)o=!0;else{for(var s=0;s<3;s++)for(var l=0;l<3;l++)if(!a(r,i,s,l)){o=!0;break}(!i.projection||r.projection&&r.projection.type!==i.projection.type)&&(o=!0)}return o};wv.isAspectChanged=function(e){var t=this,r=t.glplot.getAspectratio(),n=lp.nestedProperty(e,t.id+".aspectratio"),i=n.get();return i===void 0||i.x!==r.x||i.y!==r.y||i.z!==r.z};wv.saveLayout=function(e){var t=this,r=t.fullLayout,n,i,a,o,s,l,u=t.isCameraChanged(e),c=t.isAspectChanged(e),f=u||c;if(f){var h={};if(u&&(n=t.getCamera(),i=lp.nestedProperty(e,t.id+".camera"),a=i.get(),h[t.id+".camera"]=a),c&&(o=t.glplot.getAspectratio(),s=lp.nestedProperty(e,t.id+".aspectratio"),l=s.get(),h[t.id+".aspectratio"]=l),QD.call("_storeDirectGUIEdit",e,r._preGUI,h),u){i.set(n);var d=lp.nestedProperty(r,t.id+".camera");d.set(n)}if(c){s.set(o);var v=lp.nestedProperty(r,t.id+".aspectratio");v.set(o),t.glplot.redraw()}}return f};wv.updateFx=function(e,t){var r=this,n=r.camera;if(n)if(e==="orbit")n.mode="orbit",n.keyBindingMode="rotate";else if(e==="turntable"){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var i=r.graphDiv,a=i._fullLayout,o=r.fullSceneLayout.camera,s=o.up.x,l=o.up.y,u=o.up.z;if(u/Math.sqrt(s*s+l*l+u*u)<.999){var c=r.id+".camera.up",f={x:0,y:0,z:1},h={};h[c]=f;var d=i.layout;QD.call("_storeDirectGUIEdit",d,a._preGUI,h),o.up=f,lp.nestedProperty(d,c).set(f)}}else n.keyBindingMode=e;r.fullSceneLayout.hovermode=t};function KIt(e,t,r){for(var n=0,i=r-1;n0)for(var s=255/o,l=0;l<3;++l)e[a+l]=Math.min(s*e[a+l],255)}}wv.toImage=function(e){var t=this;e||(e="png"),t.staticMode&&t.container.appendChild(ZE),t.glplot.redraw();var r=t.glplot.gl,n=r.drawingBufferWidth,i=r.drawingBufferHeight;r.bindFramebuffer(r.FRAMEBUFFER,null);var a=new Uint8Array(n*i*4);r.readPixels(0,0,n,i,r.RGBA,r.UNSIGNED_BYTE,a),KIt(a,n,i),JIt(a,n,i);var o=document.createElement("canvas");o.width=n,o.height=i;var s=o.getContext("2d",{willReadFrequently:!0}),l=s.createImageData(n,i);l.data.set(a),s.putImageData(l,0,0);var u;switch(e){case"jpeg":u=o.toDataURL("image/jpeg");break;case"webp":u=o.toDataURL("image/webp");break;default:u=o.toDataURL("image/png")}return t.staticMode&&t.container.removeChild(ZE),u};wv.setConvert=function(){for(var e=this,t=0;t<3;t++){var r=e.fullSceneLayout[YE[t]];eF.setConvert(r,e.fullLayout),r.setScale=lp.noop}};wv.make4thDimension=function(){var e=this,t=e.graphDiv,r=t._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},eF.setConvert(e._mockAxis,r)};uIe.exports=lIe});var hIe=ye((a0r,fIe)=>{"use strict";fIe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var EX=ye((o0r,dIe)=>{"use strict";var $It=Ca(),bs=Rd(),MX=Ao().extendFlat,QIt=mc().overrideAll;dIe.exports=QIt({visible:bs.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:$It.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:bs.color,categoryorder:bs.categoryorder,categoryarray:bs.categoryarray,title:{text:bs.title.text,font:bs.title.font},type:MX({},bs.type,{values:["-","linear","log","date","category"]}),autotypenumbers:bs.autotypenumbers,autorange:bs.autorange,autorangeoptions:{minallowed:bs.autorangeoptions.minallowed,maxallowed:bs.autorangeoptions.maxallowed,clipmin:bs.autorangeoptions.clipmin,clipmax:bs.autorangeoptions.clipmax,include:bs.autorangeoptions.include,editType:"plot"},rangemode:bs.rangemode,minallowed:bs.minallowed,maxallowed:bs.maxallowed,range:MX({},bs.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:bs.minor.tickmode,nticks:bs.nticks,tick0:bs.tick0,dtick:bs.dtick,tickvals:bs.tickvals,ticktext:bs.ticktext,ticks:bs.ticks,mirror:bs.mirror,ticklen:bs.ticklen,tickwidth:bs.tickwidth,tickcolor:bs.tickcolor,showticklabels:bs.showticklabels,labelalias:bs.labelalias,tickfont:bs.tickfont,tickangle:bs.tickangle,tickprefix:bs.tickprefix,showtickprefix:bs.showtickprefix,ticksuffix:bs.ticksuffix,showticksuffix:bs.showticksuffix,showexponent:bs.showexponent,exponentformat:bs.exponentformat,minexponent:bs.minexponent,separatethousands:bs.separatethousands,tickformat:bs.tickformat,tickformatstops:bs.tickformatstops,hoverformat:bs.hoverformat,showline:bs.showline,linecolor:bs.linecolor,linewidth:bs.linewidth,showgrid:bs.showgrid,gridcolor:MX({},bs.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:bs.gridwidth,zeroline:bs.zeroline,zerolinecolor:bs.zerolinecolor,zerolinewidth:bs.zerolinewidth},"plot","from-root")});var PX=ye((s0r,vIe)=>{"use strict";var CX=EX(),e8t=kc().attributes,kX=Ao().extendFlat,t8t=Dr().counterRegex;function LX(e,t,r){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:t,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}vIe.exports={_arrayAttrRegexps:[t8t("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:kX(LX(0,0,1),{}),center:kX(LX(0,0,0),{}),eye:kX(LX(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:e8t({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:CX,yaxis:CX,zaxis:CX,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot"}});var yIe=ye((l0r,mIe)=>{"use strict";var r8t=cd().mix,pIe=Dr(),i8t=pl(),n8t=EX(),a8t=wU(),o8t=t4(),gIe=["xaxis","yaxis","zaxis"],s8t=100*136/187;mIe.exports=function(t,r,n){var i,a;function o(u,c){return pIe.coerce(i,a,n8t,u,c)}for(var s=0;s{"use strict";var l8t=Dr(),u8t=Ca(),c8t=qa(),f8t=k_(),h8t=yIe(),_Ie=PX(),d8t=Id().getSubplotData,xIe="gl3d";bIe.exports=function(t,r,n){var i=r._basePlotModules.length>1;function a(o){if(!i){var s=l8t.validate(t[o],_Ie[o]);if(s)return t[o]}}f8t(t,r,n,{type:xIe,attributes:_Ie,handleDefaults:v8t,fullLayout:r,font:r.font,fullData:n,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function v8t(e,t,r,n){for(var i=r("bgcolor"),a=u8t.combine(i,n.paper_bgcolor),o=["up","center","eye"],s=0;s.999)&&(h="turntable")}else h="turntable";r("dragmode",h),r("hovermode",n.getDfltFromLayout("hovermode"))}});var Q_=ye(up=>{"use strict";var p8t=mc().overrideAll,g8t=N1(),m8t=cIe(),y8t=Id().getSubplotData,_8t=Dr(),x8t=Wp(),BA="gl3d",IX="scene";up.name=BA;up.attr=IX;up.idRoot=IX;up.idRegex=up.attrRegex=_8t.counterRegex("scene");up.attributes=hIe();up.layoutAttributes=PX();up.baseLayoutAttrOverrides=p8t({hoverlabel:g8t.hoverlabel},"plot","nested");up.supplyLayoutDefaults=wIe();up.plot=function(t){for(var r=t._fullLayout,n=t._fullData,i=r._subplots[BA],a=0;a{"use strict";TIe.exports={plot:DPe(),attributes:TX(),markerSymbols:YD(),supplyDefaults:NPe(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:VPe(),moduleType:"trace",name:"scatter3d",basePlotModule:Q_(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var MIe=ye((h0r,SIe)=>{"use strict";SIe.exports=AIe()});var KE=ye((d0r,kIe)=>{"use strict";var EIe=Ca(),b8t=Tu(),RX=df().axisHoverFormat,w8t=Qo().hovertemplateAttrs,CIe=Vl(),DX=Ao().extendFlat,T8t=mc().overrideAll;function FX(e){return{valType:"boolean",dflt:!1}}function zX(e){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:FX("x"),y:FX("y"),z:FX("z")},color:{valType:"color",dflt:EIe.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:EIe.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var OX=kIe.exports=T8t(DX({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:w8t(),xhoverformat:RX("x"),yhoverformat:RX("y"),zhoverformat:RX("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},b8t("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:zX("x"),y:zX("y"),z:zX("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:DX({},CIe.hoverinfo),showlegend:DX({},CIe.showlegend,{dflt:!1})}),"calc","nested");OX.x.editType=OX.y.editType=OX.z.editType="calc+clearAxisTypes"});var BX=ye((v0r,IIe)=>{"use strict";var A8t=qa(),LIe=Dr(),S8t=Jh(),M8t=KE(),qX=.1;function E8t(e,t){for(var r=[],n=32,i=0;i{"use strict";var RIe=Fv();DIe.exports=function(t,r){r.surfacecolor?RIe(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):RIe(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var UIe=ye((g0r,NIe)=>{"use strict";var L8t=Od().gl_surface3d,NA=Od().ndarray,P8t=Od().ndarray_linear_interpolate.d2,I8t=r8(),R8t=i8(),JE=Dr().isArrayOrTypedArray,D8t=$y().parseColorScale,zIe=Jy(),F8t=tc().extractOpts;function qIe(e,t,r){this.scene=e,this.uid=r,this.surface=t,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var Jg=qIe.prototype;Jg.getXat=function(e,t,r,n){var i=JE(this.data.x)?JE(this.data.x[0])?this.data.x[t][e]:this.data.x[e]:e;return r===void 0?i:n.d2l(i,0,r)};Jg.getYat=function(e,t,r,n){var i=JE(this.data.y)?JE(this.data.y[0])?this.data.y[t][e]:this.data.y[t]:t;return r===void 0?i:n.d2l(i,0,r)};Jg.getZat=function(e,t,r,n){var i=this.data.z[t][e];return i===null&&this.data.connectgaps&&this.data._interpolatedZ&&(i=this.data._interpolatedZ[t][e]),r===void 0?i:n.d2l(i,0,r)};Jg.handlePick=function(e){if(e.object===this.surface){var t=(e.data.index[0]-1)/this.dataScaleX-1,r=(e.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(t),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);e.index=[n,i],e.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],e.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a<3;a++){var o=e.dataCoordinate[a];o!=null&&(e.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return JE(s)&&s[i]&&s[i][n]!==void 0?e.textLabel=s[i][n]:s?e.textLabel=s:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function z8t(e){var t=e[0].rgb,r=e[e.length-1].rgb;return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]&&t[3]===r[3]}var UA=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function O8t(e,t){if(e0){r=UA[n];break}return r}function B8t(e,t){if(!(e<1||t<1)){for(var r=NX(e),n=NX(t),i=1,a=0;atF;)n--,n/=q8t(n),n++,n1?i:1};function U8t(e,t,r){var n=r[8]+r[2]*t[0]+r[5]*t[1];return e[0]=(r[6]+r[0]*t[0]+r[3]*t[1])/n,e[1]=(r[7]+r[1]*t[0]+r[4]*t[1])/n,e}function V8t(e,t,r){return G8t(e,t,U8t,r),e}function G8t(e,t,r,n){for(var i=[0,0],a=e.shape[0],o=e.shape[1],s=0;s0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(t[n]=!0,i=this.contourStart[n];ih&&(this.minValues[u]=h),this.maxValues[u]{"use strict";VIe.exports={attributes:KE(),supplyDefaults:BX().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:FIe(),plot:UIe(),moduleType:"trace",name:"surface",basePlotModule:Q_(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var jIe=ye((y0r,HIe)=>{"use strict";HIe.exports=GIe()});var VA=ye((_0r,XIe)=>{"use strict";var W8t=Tu(),UX=df().axisHoverFormat,X8t=Qo().hovertemplateAttrs,ex=KE(),WIe=Vl(),tx=Ao().extendFlat;XIe.exports=tx({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:X8t({editType:"calc"}),xhoverformat:UX("x"),yhoverformat:UX("y"),zhoverformat:UX("z"),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"}},W8t("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:ex.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:tx({},ex.contours.x.show,{}),color:ex.contours.x.color,width:ex.contours.x.width,editType:"calc"},lightposition:{x:tx({},ex.lightposition.x,{dflt:1e5}),y:tx({},ex.lightposition.y,{dflt:1e5}),z:tx({},ex.lightposition.z,{dflt:0}),editType:"calc"},lighting:tx({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},ex.lighting),hoverinfo:tx({},WIe.hoverinfo,{editType:"calc"}),showlegend:tx({},WIe.showlegend,{dflt:!1})})});var iF=ye((x0r,YIe)=>{"use strict";var Z8t=Tu(),rF=df().axisHoverFormat,Y8t=Qo().hovertemplateAttrs,$E=VA(),ZIe=Vl(),VX=Ao().extendFlat,K8t=mc().overrideAll;function GX(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function HX(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var GA=YIe.exports=K8t(VX({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:GX("x"),y:GX("y"),z:GX("z")},caps:{x:HX("x"),y:HX("y"),z:HX("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:Y8t(),xhoverformat:rF("x"),yhoverformat:rF("y"),zhoverformat:rF("z"),valuehoverformat:rF("value",1),showlegend:VX({},ZIe.showlegend,{dflt:!1})},Z8t("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:$E.opacity,lightposition:$E.lightposition,lighting:$E.lighting,flatshading:$E.flatshading,contour:$E.contour,hoverinfo:VX({},ZIe.hoverinfo)}),"calc","nested");GA.flatshading.dflt=!0;GA.lighting.facenormalsepsilon.dflt=0;GA.x.editType=GA.y.editType=GA.z.editType=GA.value.editType="calc+clearAxisTypes"});var jX=ye((b0r,JIe)=>{"use strict";var J8t=Dr(),$8t=qa(),Q8t=iF(),eRt=Jh();function tRt(e,t,r,n){function i(a,o){return J8t.coerce(e,t,Q8t,a,o)}KIe(e,t,r,n,i)}function KIe(e,t,r,n,i){var a=i("isomin"),o=i("isomax");o!=null&&a!==void 0&&a!==null&&a>o&&(t.isomin=null,t.isomax=null);var s=i("x"),l=i("y"),u=i("z"),c=i("value");if(!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length){t.visible=!1;return}var f=$8t.getComponentMethod("calendars","handleTraceDefaults");f(e,t,["x","y","z"],n),i("valuehoverformat"),["x","y","z"].forEach(function(_){i(_+"hoverformat");var b="caps."+_,p=i(b+".show");p&&i(b+".fill");var C="slices."+_,E=i(C+".show");E&&(i(C+".fill"),i(C+".locations"))});var h=i("spaceframe.show");h&&i("spaceframe.fill");var d=i("surface.show");d&&(i("surface.count"),i("surface.fill"),i("surface.pattern"));var v=i("contour.show");v&&(i("contour.color"),i("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach(function(_){i(_)}),eRt(e,t,n,i,{prefix:"",cLetter:"c"}),t._length=null}JIe.exports={supplyDefaults:tRt,supplyIsoDefaults:KIe}});var nF=ye((w0r,QIe)=>{"use strict";var XX=Dr(),rRt=Fv();function iRt(e,t){t._len=Math.min(t.u.length,t.v.length,t.w.length,t.x.length,t.y.length,t.z.length),t._u=Hm(t.u,t._len),t._v=Hm(t.v,t._len),t._w=Hm(t.w,t._len),t._x=Hm(t.x,t._len),t._y=Hm(t.y,t._len),t._z=Hm(t.z,t._len);var r=$Ie(t);t._gridFill=r.fill,t._Xs=r.Xs,t._Ys=r.Ys,t._Zs=r.Zs,t._len=r.len;var n=0,i,a,o;t.starts&&(i=Hm(t.starts.x||[]),a=Hm(t.starts.y||[]),o=Hm(t.starts.z||[]),n=Math.min(i.length,a.length,o.length)),t._startsX=i||[],t._startsY=a||[],t._startsZ=o||[];var s=0,l=1/0,u;for(u=0;u1&&(E=t[i-1],L=r[i-1],k=n[i-1]),a=0;aE?"-":"+")+"x"),v=v.replace("y",(A>L?"-":"+")+"y"),v=v.replace("z",(x>k?"-":"+")+"z");var T=function(){i=0,M=[],g=[],P=[]};(!i||i{"use strict";var nRt=Fv(),aRt=nF().processGrid,aF=nF().filter;e8e.exports=function(t,r){r._len=Math.min(r.x.length,r.y.length,r.z.length,r.value.length),r._x=aF(r.x,r._len),r._y=aF(r.y,r._len),r._z=aF(r.z,r._len),r._value=aF(r.value,r._len);var n=aRt(r);r._gridFill=n.fill,r._Xs=n.Xs,r._Ys=n.Ys,r._Zs=n.Zs,r._len=n.len;for(var i=1/0,a=-1/0,o=0;o{"use strict";t8e.exports=function(t,r,n,i){i=i||t.length;for(var a=new Array(i),o=0;o{"use strict";var oRt=Od().gl_mesh3d,sRt=$y().parseColorScale,lRt=Dr().isArrayOrTypedArray,uRt=Jy(),cRt=tc().extractOpts,r8e=HA(),QE=function(e,t){for(var r=t.length-1;r>0;r--){var n=Math.min(t[r],t[r-1]),i=Math.max(t[r],t[r-1]);if(i>n&&n-1}function oe(er,Ut){return er===null?Ut:er}function _e(er,Ut,Ft){T();var bt=[Ut],yt=[Ft];if(H>=1)bt=[Ut],yt=[Ft];else if(H>0){var Yt=j(Ut,Ft);bt=Yt.xyzv,yt=Yt.abc}for(var lr=0;lr-1?Ft[Rr]:P(ei,Wr,Ur);Ge>-1?Tr[Rr]=Ge:Tr[Rr]=O(ei,Wr,Ur,oe(er,dt))}V(Tr[0],Tr[1],Tr[2])}}function Me(er,Ut,Ft){var bt=function(yt,Yt,lr){_e(er,[Ut[yt],Ut[Yt],Ut[lr]],[Ft[yt],Ft[Yt],Ft[lr]])};bt(0,1,2),bt(2,3,0)}function ke(er,Ut,Ft){var bt=function(yt,Yt,lr){_e(er,[Ut[yt],Ut[Yt],Ut[lr]],[Ft[yt],Ft[Yt],Ft[lr]])};bt(0,1,2),bt(3,0,1),bt(2,3,0),bt(1,2,3)}function me(er,Ut,Ft,bt){var yt=er[3];ytbt&&(yt=bt);for(var Yt=(er[3]-yt)/(er[3]-Ut[3]+1e-9),lr=[],Tr=0;Tr<4;Tr++)lr[Tr]=(1-Yt)*er[Tr]+Yt*Ut[Tr];return lr}function ie(er,Ut,Ft){return er>=Ut&&er<=Ft}function Se(er){var Ut=.001*(L-A);return er>=A-Ut&&er<=L+Ut}function Le(er){for(var Ut=[],Ft=0;Ft<4;Ft++){var bt=er[Ft];Ut.push([e._x[bt],e._y[bt],e._z[bt],e._value[bt]])}return Ut}var Ae=3;function De(er,Ut,Ft,bt,yt,Yt){Yt||(Yt=1),Ft=[-1,-1,-1];var lr=!1,Tr=[ie(Ut[0][3],bt,yt),ie(Ut[1][3],bt,yt),ie(Ut[2][3],bt,yt)];if(!Tr[0]&&!Tr[1]&&!Tr[2])return!1;var Rr=function(Wr,Ur,dt){return Se(Ur[0][3])&&Se(Ur[1][3])&&Se(Ur[2][3])?(_e(Wr,Ur,dt),!0):YtTr?[C,Yt]:[Yt,E];Nt(Ut,Rr[0],Rr[1])}}var ei=[[Math.min(A,E),Math.max(A,E)],[Math.min(C,L),Math.max(C,L)]];["x","y","z"].forEach(function(Wr){for(var Ur=[],dt=0;dt0&&(Ie.push(vt.id),Wr==="x"?xe.push([vt.distRatio,0,0]):Wr==="y"?xe.push([0,vt.distRatio,0]):xe.push([0,0,vt.distRatio]))}else Wr==="x"?wt=ur(1,d-1):Wr==="y"?wt=ur(1,v-1):wt=ur(1,_-1);Ie.length>0&&(Wr==="x"?Ur[Ge]=$t(er,Ie,Je,je,xe,Ur[Ge]):Wr==="y"?Ur[Ge]=sr(er,Ie,Je,je,xe,Ur[Ge]):Ur[Ge]=wr(er,Ie,Je,je,xe,Ur[Ge]),Ge++),wt.length>0&&(Wr==="x"?Ur[Ge]=pt(er,wt,Je,je,Ur[Ge]):Wr==="y"?Ur[Ge]=Wt(er,wt,Je,je,Ur[Ge]):Ur[Ge]=st(er,wt,Je,je,Ur[Ge]),Ge++)}var nr=e.caps[Wr];nr.show&&nr.fill&&(N(nr.fill),Wr==="x"?Ur[Ge]=pt(er,[0,d-1],Je,je,Ur[Ge]):Wr==="y"?Ur[Ge]=Wt(er,[0,v-1],Je,je,Ur[Ge]):Ur[Ge]=st(er,[0,_-1],Je,je,Ur[Ge]),Ge++)}}),s===0&&z(),e._meshX=x,e._meshY=k,e._meshZ=M,e._meshIntensity=g,e._Xs=c,e._Ys=f,e._Zs=h}return Et(),e}function hRt(e,t){var r=e.glplot.gl,n=oRt({gl:r}),i=new i8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}a8e.exports={findNearestOnAxis:QE,generateIsoMeshes:n8e,createIsosurfaceTrace:hRt}});var s8e=ye((M0r,o8e)=>{"use strict";o8e.exports={attributes:iF(),supplyDefaults:jX().supplyDefaults,calc:ZX(),colorbar:{min:"cmin",max:"cmax"},plot:oF().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:Q_(),categories:["gl3d","showLegend"],meta:{}}});var u8e=ye((E0r,l8e)=>{"use strict";l8e.exports=s8e()});var JX=ye((C0r,f8e)=>{"use strict";var dRt=Tu(),Dh=iF(),vRt=KE(),c8e=Vl(),KX=Ao().extendFlat,pRt=mc().overrideAll,sF=f8e.exports=pRt(KX({x:Dh.x,y:Dh.y,z:Dh.z,value:Dh.value,isomin:Dh.isomin,isomax:Dh.isomax,surface:Dh.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:Dh.slices,caps:Dh.caps,text:Dh.text,hovertext:Dh.hovertext,xhoverformat:Dh.xhoverformat,yhoverformat:Dh.yhoverformat,zhoverformat:Dh.zhoverformat,valuehoverformat:Dh.valuehoverformat,hovertemplate:Dh.hovertemplate},dRt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Dh.colorbar,opacity:Dh.opacity,opacityscale:vRt.opacityscale,lightposition:Dh.lightposition,lighting:Dh.lighting,flatshading:Dh.flatshading,contour:Dh.contour,hoverinfo:KX({},c8e.hoverinfo),showlegend:KX({},c8e.showlegend,{dflt:!1})}),"calc","nested");sF.x.editType=sF.y.editType=sF.z.editType=sF.value.editType="calc+clearAxisTypes"});var d8e=ye((k0r,h8e)=>{"use strict";var gRt=Dr(),mRt=JX(),yRt=jX().supplyIsoDefaults,_Rt=BX().opacityscaleDefaults;h8e.exports=function(t,r,n,i){function a(o,s){return gRt.coerce(t,r,mRt,o,s)}yRt(t,r,n,i,a),_Rt(t,r,i,a)}});var m8e=ye((L0r,g8e)=>{"use strict";var xRt=Od().gl_mesh3d,bRt=$y().parseColorScale,wRt=Dr().isArrayOrTypedArray,TRt=Jy(),ARt=tc().extractOpts,v8e=HA(),$X=oF().findNearestOnAxis,SRt=oF().generateIsoMeshes;function p8e(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var QX=p8e.prototype;QX.handlePick=function(e){if(e.object===this.mesh){var t=e.data.index,r=this.data._meshX[t],n=this.data._meshY[t],i=this.data._meshZ[t],a=this.data._Ys.length,o=this.data._Zs.length,s=$X(r,this.data._Xs).id,l=$X(n,this.data._Ys).id,u=$X(i,this.data._Zs).id,c=e.index=u+o*l+o*a*s;e.traceCoordinate=[this.data._meshX[c],this.data._meshY[c],this.data._meshZ[c],this.data._value[c]];var f=this.data.hovertext||this.data.text;return wRt(f)&&f[c]!==void 0?e.textLabel=f[c]:f&&(e.textLabel=f),!0}};QX.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=SRt(e);function n(l,u,c,f){return u.map(function(h){return l.d2l(h,0,f)*c})}var i=v8e(n(r.xaxis,e._meshX,t.dataScale[0],e.xcalendar),n(r.yaxis,e._meshY,t.dataScale[1],e.ycalendar),n(r.zaxis,e._meshZ,t.dataScale[2],e.zcalendar)),a=v8e(e._meshI,e._meshJ,e._meshK),o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:TRt(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=ARt(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=bRt(e),this.mesh.update(o)};QX.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function MRt(e,t){var r=e.glplot.gl,n=xRt({gl:r}),i=new p8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}g8e.exports=MRt});var _8e=ye((P0r,y8e)=>{"use strict";y8e.exports={attributes:JX(),supplyDefaults:d8e(),calc:ZX(),colorbar:{min:"cmin",max:"cmax"},plot:m8e(),moduleType:"trace",name:"volume",basePlotModule:Q_(),categories:["gl3d","showLegend"],meta:{}}});var b8e=ye((I0r,x8e)=>{"use strict";x8e.exports=_8e()});var A8e=ye((R0r,T8e)=>{"use strict";var ERt=qa(),w8e=Dr(),CRt=Jh(),kRt=VA();T8e.exports=function(t,r,n,i){function a(c,f){return w8e.coerce(t,r,kRt,c,f)}function o(c){var f=c.map(function(h){var d=a(h);return d&&w8e.isArrayOrTypedArray(d)?d:null});return f.every(function(h){return h&&h.length===f[0].length})&&f}var s=o(["x","y","z"]);if(!s){r.visible=!1;return}if(o(["i","j","k"]),r.i&&(!r.j||!r.k)||r.j&&(!r.k||!r.i)||r.k&&(!r.i||!r.j)){r.visible=!1;return}var l=ERt.getComponentMethod("calendars","handleTraceDefaults");l(t,r,["x","y","z"],i),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach(function(c){a(c)});var u=a("contour.show");u&&(a("contour.color"),a("contour.width")),"intensity"in t?(a("intensity"),a("intensitymode"),CRt(t,r,i,a,{prefix:"",cLetter:"c"})):(r.showscale=!1,"facecolor"in t?a("facecolor"):"vertexcolor"in t?a("vertexcolor"):a("color",n)),a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var M8e=ye((D0r,S8e)=>{"use strict";var LRt=Fv();S8e.exports=function(t,r){r.intensity&&LRt(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var P8e=ye((F0r,L8e)=>{"use strict";var PRt=Od().gl_mesh3d,IRt=Od().delaunay_triangulate,RRt=Od().alpha_shape,DRt=Od().convex_hull,FRt=$y().parseColorScale,zRt=Dr().isArrayOrTypedArray,iZ=Jy(),ORt=tc().extractOpts,E8e=HA();function k8e(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var nZ=k8e.prototype;nZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]];var r=this.data.hovertext||this.data.text;return zRt(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function C8e(e){for(var t=[],r=e.length,n=0;n=t-.5)return!1;return!0}nZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=e;var n=e.x.length,i=E8e(eZ(r.xaxis,e.x,t.dataScale[0],e.xcalendar),eZ(r.yaxis,e.y,t.dataScale[1],e.ycalendar),eZ(r.zaxis,e.z,t.dataScale[2],e.zcalendar)),a;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!rZ(e.i,n)||!rZ(e.j,n)||!rZ(e.k,n))return;a=E8e(tZ(e.i),tZ(e.j),tZ(e.k))}else e.alphahull===0?a=DRt(i):e.alphahull>0?a=RRt(e.alphahull,i):a=qRt(e.delaunayaxis,i);var o={positions:i,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:iZ(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var s=ORt(e);this.color="#fff";var l=e.intensitymode;o[l+"Intensity"]=e.intensity,o[l+"IntensityBounds"]=[s.min,s.max],o.colormap=FRt(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=C8e(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=C8e(e.facecolor)):(this.color=e.color,o.meshColor=iZ(e.color));this.mesh.update(o)};nZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function BRt(e,t){var r=e.glplot.gl,n=PRt({gl:r}),i=new k8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}L8e.exports=BRt});var R8e=ye((z0r,I8e)=>{"use strict";I8e.exports={attributes:VA(),supplyDefaults:A8e(),calc:M8e(),colorbar:{min:"cmin",max:"cmax"},plot:P8e(),moduleType:"trace",name:"mesh3d",basePlotModule:Q_(),categories:["gl3d","showLegend"],meta:{}}});var F8e=ye((O0r,D8e)=>{"use strict";D8e.exports=R8e()});var oZ=ye((q0r,O8e)=>{"use strict";var NRt=Tu(),jA=df().axisHoverFormat,URt=Qo().hovertemplateAttrs,VRt=VA(),z8e=Vl(),aZ=Ao().extendFlat,lF={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute","raw"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:URt({editType:"calc"},{keys:["norm"]}),uhoverformat:jA("u",1),vhoverformat:jA("v",1),whoverformat:jA("w",1),xhoverformat:jA("x"),yhoverformat:jA("y"),zhoverformat:jA("z"),showlegend:aZ({},z8e.showlegend,{dflt:!1})};aZ(lF,NRt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var GRt=["opacity","lightposition","lighting"];GRt.forEach(function(e){lF[e]=VRt[e]});lF.hoverinfo=aZ({},z8e.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});O8e.exports=lF});var B8e=ye((B0r,q8e)=>{"use strict";var HRt=Dr(),jRt=Jh(),WRt=oZ();q8e.exports=function(t,r,n,i){function a(d,v){return HRt.coerce(t,r,WRt,d,v)}var o=a("u"),s=a("v"),l=a("w"),u=a("x"),c=a("y"),f=a("z");if(!o||!o.length||!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length||!f||!f.length){r.visible=!1;return}var h=a("sizemode");a("sizeref",h==="raw"?1:.5),a("anchor"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),jRt(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var U8e=ye((N0r,N8e)=>{"use strict";var XRt=Fv();N8e.exports=function(t,r){for(var n=r.u,i=r.v,a=r.w,o=Math.min(r.x.length,r.y.length,r.z.length,n.length,i.length,a.length),s=-1/0,l=1/0,u=0;u{"use strict";var ZRt=Od().gl_cone3d,YRt=Od().gl_cone3d.createConeMesh,KRt=Dr().simpleMap,JRt=$y().parseColorScale,$Rt=tc().extractOpts,QRt=Dr().isArrayOrTypedArray,V8e=HA();function G8e(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var sZ=G8e.prototype;sZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index,r=this.data.x[t],n=this.data.y[t],i=this.data.z[t],a=this.data.u[t],o=this.data.v[t],s=this.data.w[t];e.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.hovertext||this.data.text;return QRt(l)&&l[t]!==void 0?e.textLabel=l[t]:l&&(e.textLabel=l),!0}};var eDt={xaxis:0,yaxis:1,zaxis:2},tDt={tip:1,tail:0,cm:.25,center:.5},rDt={tip:1,tail:1,cm:.75,center:.5};function H8e(e,t){var r=e.fullSceneLayout,n=e.dataScale,i={};function a(c,f){var h=r[f],d=n[eDt[f]];return KRt(c,function(v){return h.d2l(v)*d})}i.vectors=V8e(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),i.positions=V8e(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=$Rt(t);i.colormap=JRt(t),i.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],i.coneOffset=tDt[t.anchor];var s=t.sizemode;s==="scaled"?i.coneSize=t.sizeref||.5:s==="absolute"?i.coneSize=t.sizeref&&t._normMax?t.sizeref/t._normMax:.5:s==="raw"&&(i.coneSize=t.sizeref),i.coneSizemode=s;var l=ZRt(i),u=t.lightposition;return l.lightPosition=[u.x,u.y,u.z],l.ambient=t.lighting.ambient,l.diffuse=t.lighting.diffuse,l.specular=t.lighting.specular,l.roughness=t.lighting.roughness,l.fresnel=t.lighting.fresnel,l.opacity=t.opacity,t._pad=rDt[t.anchor]*l.vectorScale*l.coneScale*t._normMax,l}sZ.update=function(e){this.data=e;var t=H8e(this.scene,e);this.mesh.update(t)};sZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function iDt(e,t){var r=e.glplot.gl,n=H8e(e,t),i=YRt(r,n),a=new G8e(e,t.uid);return a.mesh=i,a.data=t,i._trace=a,e.glplot.add(i),a}j8e.exports=iDt});var Z8e=ye((V0r,X8e)=>{"use strict";X8e.exports={moduleType:"trace",name:"cone",basePlotModule:Q_(),categories:["gl3d","showLegend"],attributes:oZ(),supplyDefaults:B8e(),colorbar:{min:"cmin",max:"cmax"},calc:U8e(),plot:W8e(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var K8e=ye((G0r,Y8e)=>{"use strict";Y8e.exports=Z8e()});var uZ=ye((H0r,$8e)=>{"use strict";var nDt=Tu(),WA=df().axisHoverFormat,aDt=Qo().hovertemplateAttrs,oDt=VA(),J8e=Vl(),lZ=Ao().extendFlat,uF={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:aDt({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),uhoverformat:WA("u",1),vhoverformat:WA("v",1),whoverformat:WA("w",1),xhoverformat:WA("x"),yhoverformat:WA("y"),zhoverformat:WA("z"),showlegend:lZ({},J8e.showlegend,{dflt:!1})};lZ(uF,nDt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var sDt=["opacity","lightposition","lighting"];sDt.forEach(function(e){uF[e]=oDt[e]});uF.hoverinfo=lZ({},J8e.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});$8e.exports=uF});var eRe=ye((j0r,Q8e)=>{"use strict";var lDt=Dr(),uDt=Jh(),cDt=uZ();Q8e.exports=function(t,r,n,i){function a(h,d){return lDt.coerce(t,r,cDt,h,d)}var o=a("u"),s=a("v"),l=a("w"),u=a("x"),c=a("y"),f=a("z");if(!o||!o.length||!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length||!f||!f.length){r.visible=!1;return}a("starts.x"),a("starts.y"),a("starts.z"),a("maxdisplayed"),a("sizeref"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),uDt(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var lRe=ye((W0r,sRe)=>{"use strict";var iRe=Od().gl_streamtube3d,fDt=iRe.createTubeMesh,hDt=Dr(),dDt=$y().parseColorScale,vDt=tc().extractOpts,tRe=HA(),nRe={xaxis:0,yaxis:1,zaxis:2};function aRe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var fZ=aRe.prototype;fZ.handlePick=function(e){var t=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(o,s){var l=t[s],u=r[nRe[s]];return l.l2c(o)/u}if(e.object===this.mesh){var i=e.data.position,a=e.data.velocity;return e.traceCoordinate=[n(i[0],"xaxis"),n(i[1],"yaxis"),n(i[2],"zaxis"),n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function rRe(e){var t=e.length,r;return t>2?r=e.slice(1,t-1):t===2?r=[(e[0]+e[1])/2]:r=e,r}function cZ(e){var t=e.length;return t===1?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function oRe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i=t._len,a={};function o(z,O){var V=r[O],G=n[nRe[O]];return hDt.simpleMap(z,function(Z){return V.d2l(Z)*G})}if(a.vectors=tRe(o(t._u,"xaxis"),o(t._v,"yaxis"),o(t._w,"zaxis"),i),!i)return{positions:[],cells:[]};var s=o(t._Xs,"xaxis"),l=o(t._Ys,"yaxis"),u=o(t._Zs,"zaxis");a.meshgrid=[s,l,u],a.gridFill=t._gridFill;var c=t._slen;if(c)a.startingPositions=tRe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var f=l[0],h=rRe(s),d=rRe(u),v=new Array(h.length*d.length),_=0,b=0;b{"use strict";uRe.exports={moduleType:"trace",name:"streamtube",basePlotModule:Q_(),categories:["gl3d","showLegend"],attributes:uZ(),supplyDefaults:eRe(),colorbar:{min:"cmin",max:"cmax"},calc:nF().calc,plot:lRe(),eventData:function(e,t){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=t.traceCoordinate[3],e.tubev=t.traceCoordinate[4],e.tubew=t.traceCoordinate[5],e.norm=t.traceCoordinate[6],e.divergence=t.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var hRe=ye((Z0r,fRe)=>{"use strict";fRe.exports=cRe()});var G2=ye((Y0r,pRe)=>{"use strict";var gDt=Qo().hovertemplateAttrs,mDt=Qo().texttemplateAttrs,yDt=Eg(),jm=pf(),_Dt=Vl(),dRe=Tu(),xDt=Pd().dash,V2=Ao().extendFlat,bDt=mc().overrideAll,eg=jm.marker,vRe=jm.line,wDt=eg.line;pRe.exports=bDt({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:V2({},jm.mode,{dflt:"markers"}),text:V2({},jm.text,{}),texttemplate:mDt({editType:"plot"},{keys:["lat","lon","location","text"]}),hovertext:V2({},jm.hovertext,{}),textfont:jm.textfont,textposition:jm.textposition,line:{color:vRe.color,width:vRe.width,dash:xDt},connectgaps:jm.connectgaps,marker:V2({symbol:eg.symbol,opacity:eg.opacity,angle:eg.angle,angleref:V2({},eg.angleref,{values:["previous","up","north"]}),standoff:eg.standoff,size:eg.size,sizeref:eg.sizeref,sizemin:eg.sizemin,sizemode:eg.sizemode,colorbar:eg.colorbar,line:V2({width:wDt.width},dRe("marker.line")),gradient:eg.gradient},dRe("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:yDt(),selected:jm.selected,unselected:jm.unselected,hoverinfo:V2({},_Dt.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:gDt()},"calc","nested")});var mRe=ye((K0r,gRe)=>{"use strict";var hZ=Dr(),dZ=Ru(),TDt=$p(),ADt=R0(),SDt=D0(),MDt=Ig(),EDt=G2();gRe.exports=function(t,r,n,i){function a(d,v){return hZ.coerce(t,r,EDt,d,v)}var o=a("locations"),s;if(o&&o.length){var l=a("geojson"),u;(typeof l=="string"&&l!==""||hZ.isPlainObject(l))&&(u="geojson-id");var c=a("locationmode",u);c==="geojson-id"&&a("featureidkey"),s=o.length}else{var f=a("lon")||[],h=a("lat")||[];s=Math.min(f.length,h.length)}if(!s){r.visible=!1;return}r._length=s,a("text"),a("hovertext"),a("hovertemplate"),a("mode"),dZ.hasMarkers(r)&&TDt(t,r,n,i,a,{gradient:!0}),dZ.hasLines(r)&&(ADt(t,r,n,i,a),a("connectgaps")),dZ.hasText(r)&&(a("texttemplate"),SDt(t,r,i,a)),a("fill"),r.fill!=="none"&&MDt(t,r,n,a),hZ.coerceSelectionMarkerOpacity(r,a)}});var xRe=ye((J0r,_Re)=>{"use strict";var yRe=ho();_Re.exports=function(t,r,n){var i={},a=n[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=yRe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=yRe.tickText(o,o.c2l(s[1]),!0).text,i}});var cF=ye(($0r,ARe)=>{"use strict";var vZ=Eo(),bRe=hs().BADNUM,CDt=F0(),kDt=Cm(),LDt=z0(),PDt=Dr().isArrayOrTypedArray,wRe=Dr()._;function TRe(e){return e&&typeof e=="string"}ARe.exports=function(t,r){var n=PDt(r.locations),i=n?r.locations.length:r._length,a=new Array(i),o;r.geojson?o=function(h){return TRe(h)||vZ(h)}:o=TRe;for(var s=0;s{"use strict";Tv.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"};Tv.axesNames=["lonaxis","lataxis"];Tv.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};Tv.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};Tv.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}};Tv.clipPad=.001;Tv.precision=.1;Tv.landColor="#F0DC82";Tv.waterColor="#3399FF";Tv.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};Tv.sphereSVG={type:"Sphere"};Tv.fillLayers={ocean:1,land:1,lakes:1};Tv.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};Tv.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];Tv.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];Tv.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var pZ=ye((fF,SRe)=>{(function(e,t){typeof fF=="object"&&typeof SRe!="undefined"?t(fF):(e=e||self,t(e.topojson=e.topojson||{}))})(fF,function(e){"use strict";function t(E){return E}function r(E){if(E==null)return t;var A,L,x=E.scale[0],k=E.scale[1],M=E.translate[0],g=E.translate[1];return function(P,T){T||(A=L=0);var z=2,O=P.length,V=new Array(O);for(V[0]=(A+=P[0])*x+M,V[1]=(L+=P[1])*k+g;zM&&(M=z[0]),z[1]g&&(g=z[1])}function T(z){switch(z.type){case"GeometryCollection":z.geometries.forEach(T);break;case"Point":P(z.coordinates);break;case"MultiPoint":z.coordinates.forEach(P);break}}E.arcs.forEach(function(z){for(var O=-1,V=z.length,G;++OM&&(M=G[0]),G[1]g&&(g=G[1])});for(L in E.objects)T(E.objects[L]);return[x,k,M,g]}function i(E,A){for(var L,x=E.length,k=x-A;k<--x;)L=E[k],E[k++]=E[x],E[x]=L}function a(E,A){return typeof A=="string"&&(A=E.objects[A]),A.type==="GeometryCollection"?{type:"FeatureCollection",features:A.geometries.map(function(L){return o(E,L)})}:o(E,A)}function o(E,A){var L=A.id,x=A.bbox,k=A.properties==null?{}:A.properties,M=s(E,A);return L==null&&x==null?{type:"Feature",properties:k,geometry:M}:x==null?{type:"Feature",id:L,properties:k,geometry:M}:{type:"Feature",id:L,bbox:x,properties:k,geometry:M}}function s(E,A){var L=r(E.transform),x=E.arcs;function k(O,V){V.length&&V.pop();for(var G=x[O<0?~O:O],Z=0,H=G.length;Z1)x=f(E,A,L);else for(k=0,x=new Array(M=E.arcs.length);k1)for(var V=1,G=P(z[0]),Z,H;VG&&(H=z[0],z[0]=z[V],z[V]=H,G=Z);return z}).filter(function(T){return T.length>0})}}function _(E,A){for(var L=0,x=E.length;L>>1;E[k]=2))throw new Error("n must be \u22652");T=E.bbox||n(E);var L=T[0],x=T[1],k=T[2],M=T[3],g;A={scale:[k-L?(k-L)/(g-1):1,M-x?(M-x)/(g-1):1],translate:[L,x]}}else T=E.bbox;var P=p(A),T,z,O=E.objects,V={};function G(N){return P(N)}function Z(N){var j;switch(N.type){case"GeometryCollection":j={type:"GeometryCollection",geometries:N.geometries.map(Z)};break;case"Point":j={type:"Point",coordinates:G(N.coordinates)};break;case"MultiPoint":j={type:"MultiPoint",coordinates:N.coordinates.map(G)};break;default:return N}return N.id!=null&&(j.id=N.id),N.bbox!=null&&(j.bbox=N.bbox),N.properties!=null&&(j.properties=N.properties),j}function H(N){var j=0,re=1,oe=N.length,_e,Me=new Array(oe);for(Me[0]=P(N[0],0);++j{"use strict";var gZ=MRe.exports={},IDt=eC().locationmodeToLayer,RDt=pZ().feature;gZ.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};gZ.getTopojsonPath=function(e,t){return e+=e.endsWith("/")?"":"/",`${e}${t}.json`};gZ.getTopojsonFeatures=function(e,t){var r=IDt[e.locationmode],n=t.objects[r];return RDt(t,n).features}});var rx=ye(tC=>{"use strict";var DDt=hs().BADNUM;tC.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,n=[],i=[],a=0;a0&&(n.push(i),i=[])}return i.length>0&&n.push(i),n};tC.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};tC.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{ERe.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var pF=ye(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var zp=63710088e-1,yZ={centimeters:zp*100,centimetres:zp*100,degrees:360/(2*Math.PI),feet:zp*3.28084,inches:zp*39.37,kilometers:zp/1e3,kilometres:zp/1e3,meters:zp,metres:zp,miles:zp/1609.344,millimeters:zp*1e3,millimetres:zp*1e3,nauticalmiles:zp/1852,radians:1,yards:zp*1.0936},mZ={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function ix(e,t,r={}){let n={type:"Feature"};return(r.id===0||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=t||{},n.geometry=e,n}function FDt(e,t,r={}){switch(e){case"Point":return _Z(t).geometry;case"LineString":return bZ(t).geometry;case"Polygon":return xZ(t).geometry;case"MultiPoint":return LRe(t).geometry;case"MultiLineString":return kRe(t).geometry;case"MultiPolygon":return PRe(t).geometry;default:throw new Error(e+" is invalid")}}function _Z(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!dF(e[0])||!dF(e[1]))throw new Error("coordinates must contain numbers");return ix({type:"Point",coordinates:e},t,r)}function zDt(e,t,r={}){return vF(e.map(n=>_Z(n,t)),r)}function xZ(e,t,r={}){for(let i of e){if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(i[i.length-1].length!==i[0].length)throw new Error("First and last Position are not equivalent.");for(let a=0;axZ(n,t)),r)}function bZ(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return ix({type:"LineString",coordinates:e},t,r)}function qDt(e,t,r={}){return vF(e.map(n=>bZ(n,t)),r)}function vF(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function kRe(e,t,r={}){return ix({type:"MultiLineString",coordinates:e},t,r)}function LRe(e,t,r={}){return ix({type:"MultiPoint",coordinates:e},t,r)}function PRe(e,t,r={}){return ix({type:"MultiPolygon",coordinates:e},t,r)}function BDt(e,t,r={}){return ix({type:"GeometryCollection",geometries:e},t,r)}function NDt(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function IRe(e,t="kilometers"){let r=yZ[t];if(!r)throw new Error(t+" units is invalid");return e*r}function wZ(e,t="kilometers"){let r=yZ[t];if(!r)throw new Error(t+" units is invalid");return e/r}function UDt(e,t){return RRe(wZ(e,t))}function VDt(e){let t=e%360;return t<0&&(t+=360),t}function GDt(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function RRe(e){return e%(2*Math.PI)*180/Math.PI}function HDt(e){return e%360*Math.PI/180}function jDt(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return IRe(wZ(e,t),r)}function WDt(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=mZ[t];if(!n)throw new Error("invalid original units");let i=mZ[r];if(!i)throw new Error("invalid final units");return e/n*i}function dF(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function XDt(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function ZDt(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!dF(t))throw new Error("bbox must only contain numbers")})}function YDt(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}ic.areaFactors=mZ;ic.azimuthToBearing=GDt;ic.bearingToAzimuth=VDt;ic.convertArea=WDt;ic.convertLength=jDt;ic.degreesToRadians=HDt;ic.earthRadius=zp;ic.factors=yZ;ic.feature=ix;ic.featureCollection=vF;ic.geometry=FDt;ic.geometryCollection=BDt;ic.isNumber=dF;ic.isObject=XDt;ic.lengthToDegrees=UDt;ic.lengthToRadians=wZ;ic.lineString=bZ;ic.lineStrings=qDt;ic.multiLineString=kRe;ic.multiPoint=LRe;ic.multiPolygon=PRe;ic.point=_Z;ic.points=zDt;ic.polygon=xZ;ic.polygons=ODt;ic.radiansToDegrees=RRe;ic.radiansToLength=IRe;ic.round=NDt;ic.validateBBox=ZDt;ic.validateId=YDt});var mF=ye(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});var jv=pF();function rC(e,t,r){if(e!==null)for(var n,i,a,o,s,l,u,c=0,f=0,h,d=e.type,v=d==="FeatureCollection",_=d==="Feature",b=v?e.features.length:1,p=0;pl||v>u||_>c){s=f,l=n,u=v,c=_,a=0;return}var b=jv.lineString.call(void 0,[s,f],r.properties);if(t(b,n,i,_,a)===!1)return!1;a++,s=f})===!1)return!1}}})}function rFt(e,t,r){var n=r,i=!1;return zRe(e,function(a,o,s,l,u){i===!1&&r===void 0?n=a:n=t(n,a,o,s,l,u),i=!0}),n}function ORe(e,t){if(!e)throw new Error("geojson is required");gF(e,function(r,n,i){if(r.geometry!==null){var a=r.geometry.type,o=r.geometry.coordinates;switch(a){case"LineString":if(t(r,n,i,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s{"use strict";Object.defineProperty(yF,"__esModule",{value:!0});var qRe=pF(),oFt=mF();function URe(e){return oFt.geomReduce.call(void 0,e,(t,r)=>t+sFt(r),0)}function sFt(e){let t=0,r;switch(e.type){case"Polygon":return BRe(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(NRe(e[0]));for(let r=1;r=t?(n+2)%t:n+2],s=i[0]*AZ,l=a[1]*AZ,u=o[0]*AZ;r+=(u-s)*Math.sin(l),n++}return r*lFt}var uFt=URe;yF.area=URe;yF.default=uFt});var HRe=ye(_F=>{"use strict";Object.defineProperty(_F,"__esModule",{value:!0});var cFt=pF(),fFt=mF();function GRe(e,t={}){let r=0,n=0,i=0;return fFt.coordEach.call(void 0,e,function(a){r+=a[0],n+=a[1],i++},!0),cFt.point.call(void 0,[r/i,n/i],t.properties)}var hFt=GRe;_F.centroid=GRe;_F.default=hFt});var WRe=ye(xF=>{"use strict";Object.defineProperty(xF,"__esModule",{value:!0});var dFt=mF();function jRe(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return dFt.coordEach.call(void 0,e,n=>{r[0]>n[0]&&(r[0]=n[0]),r[1]>n[1]&&(r[1]=n[1]),r[2]{"use strict";var pFt=Oa(),YRe=CRe(),{area:gFt}=VRe(),{centroid:mFt}=HRe(),{bbox:yFt}=WRe(),XRe=VS(),XA=H1(),_Ft=gy(),xFt=CS(),bF=MM(),ZRe=Object.keys(YRe),bFt={"ISO-3":XRe,"USA-states":XRe,"country names":wFt};function wFt(e){for(var t=0;t0&&c[f+1][0]<0)return f;return null}switch(n==="RUS"||n==="FJI"?a=function(c){var f;if(u(c)===null)f=c;else for(f=new Array(c.length),l=0;lf?h[d++]=[c[l][0]+360,c[l][1]]:l===f?(h[d++]=c[l],h[d++]=[c[l][0],-90]):h[d++]=c[l];var v=bF.tester(h);v.pts.pop(),i.push(v)}:a=function(c){i.push(bF.tester(c))},t.type){case"MultiPolygon":for(o=0;o0?v.properties.ct=MFt(v):v.properties.ct=[NaN,NaN],h.fIn=c,h.fOut=v,i.push(v)}else XA.log(["Location",h.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete n[f]}switch(r.type){case"FeatureCollection":var l=r.features;for(a=0;ai&&(i=s,r=o)}else r=t;return mFt(r).geometry.coordinates}function EFt(e){var t=window.PlotlyGeoAssets||{},r=[];function n(l){return new Promise(function(u,c){pFt.json(l,function(f,h){if(f){delete t[l];var d=f.status===404?'GeoJSON at URL "'+l+'" does not exist.':"Unexpected error while fetching from "+l;return c(new Error(d))}return t[l]=h,u(h)})})}function i(l){return new Promise(function(u,c){var f=0,h=setInterval(function(){if(t[l]&&t[l]!=="pending")return clearInterval(h),u(t[l]);if(f>100)return clearInterval(h),c("Unexpected error while fetching from "+l);f++},50)})}for(var a=0;a{"use strict";var kFt=Oa(),LFt=So(),$Re=Ca(),QRe=ap(),PFt=QRe.stylePoints,IFt=QRe.styleText;eDe.exports=function(t,r){r&&RFt(t,r)};function RFt(e,t){var r=t[0].trace,n=t[0].node3;n.style("opacity",t[0].trace.opacity),PFt(n,r,e),IFt(n,r,e),n.selectAll("path.js-line").style("fill","none").each(function(i){var a=kFt.select(this),o=i.trace,s=o.line||{};a.call($Re.stroke,s.color).call(LFt.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call($Re.fill,o.fillcolor)})}});var kZ=ye((cgr,iDe)=>{"use strict";var tDe=Oa(),TF=Dr(),DFt=hF().getTopojsonFeatures,MZ=rx(),wF=nx(),rDe=wg().findExtremes,CZ=hs().BADNUM,FFt=O0().calcMarkerSize,EZ=Ru(),zFt=SZ();function OFt(e,t,r){var n=t.layers.frontplot.select(".scatterlayer"),i=TF.makeTraceGroups(n,r,"trace scattergeo");function a(o,s){o.lonlat[0]===CZ&&tDe.select(s).remove()}i.selectAll("*").remove(),i.each(function(o){var s=tDe.select(this),l=o[0].trace;if(EZ.hasLines(l)||l.fill!=="none"){var u=MZ.calcTraceToLineCoords(o),c=l.fill!=="none"?MZ.makePolygon(u):MZ.makeLine(u);s.selectAll("path.js-line").data([{geojson:c,trace:l}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}EZ.hasMarkers(l)&&s.selectAll("path.point").data(TF.identity).enter().append("path").classed("point",!0).each(function(f){a(f,this)}),EZ.hasText(l)&&s.selectAll("g").data(TF.identity).enter().append("g").append("text").each(function(f){a(f,this)}),zFt(e,o)})}function qFt(e,t){var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r._length,o,s;if(TF.isArrayOrTypedArray(r.locations)){var l=r.locationmode,u=l==="geojson-id"?wF.extractTraceFeature(e):DFt(r,i.topojson);for(o=0;o{"use strict";var BFt=vf(),NFt=hs().BADNUM,UFt=oT(),VFt=Dr().fillText,GFt=G2();nDe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.xa,s=t.ya,l=t.subplot,u=l.projection.isLonLatOverEdges,c=l.project;function f(C){var E=C.lonlat;if(E[0]===NFt||u(E))return 1/0;var A=c(E),L=c([r,n]),x=Math.abs(A[0]-L[0]),k=Math.abs(A[1]-L[1]),M=Math.max(3,C.mrc||0);return Math.max(Math.sqrt(x*x+k*k)-M,1-3/M)}if(BFt.getClosest(i,f,t),t.index!==!1){var h=i[t.index],d=h.lonlat,v=[o.c2p(d),s.c2p(d)],_=h.mrc||1;t.x0=v[0]-_,t.x1=v[0]+_,t.y0=v[1]-_,t.y1=v[1]+_,t.loc=h.loc,t.lon=d[0],t.lat=d[1];var b={};b[a.geo]={_subplot:l};var p=a._module.formatLabels(h,a,b);return t.lonLabel=p.lonLabel,t.latLabel=p.latLabel,t.color=UFt(a,h),t.extraText=HFt(a,h,t,i[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function HFt(e,t,r,n){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i==="all"?GFt.hoverinfo.flags:i.split("+"),o=a.indexOf("location")!==-1&&Array.isArray(e.locations),s=a.indexOf("lon")!==-1,l=a.indexOf("lat")!==-1,u=a.indexOf("text")!==-1,c=[];function f(h){return h+"\xB0"}return o?c.push(t.loc):s&&l?c.push("("+f(r.latLabel)+", "+f(r.lonLabel)+")"):s?c.push(n.lon+f(r.lonLabel)):l&&c.push(n.lat+f(r.latLabel)),u&&VFt(t,e,c),c.join("
")}});var sDe=ye((hgr,oDe)=>{"use strict";oDe.exports=function(t,r,n,i,a){t.lon=r.lon,t.lat=r.lat,t.location=r.loc?r.loc:null;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t}});var cDe=ye((dgr,uDe)=>{"use strict";var lDe=Ru(),jFt=hs().BADNUM;uDe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l,u,c,f,h,d=!lDe.hasMarkers(s)&&!lDe.hasText(s);if(d)return[];if(r===!1)for(h=0;h{(function(e,t){t(typeof AF=="object"&&typeof fDe!="undefined"?AF:e.d3=e.d3||{})})(AF,function(e){"use strict";function t(Le,Ae){return LeAe?1:Le>=Ae?0:NaN}function r(Le){return Le.length===1&&(Le=n(Le)),{left:function(Ae,De,Pe,ge){for(Pe==null&&(Pe=0),ge==null&&(ge=Ae.length);Pe>>1;Le(Ae[Fe],De)<0?Pe=Fe+1:ge=Fe}return Pe},right:function(Ae,De,Pe,ge){for(Pe==null&&(Pe=0),ge==null&&(ge=Ae.length);Pe>>1;Le(Ae[Fe],De)>0?ge=Fe:Pe=Fe+1}return Pe}}}function n(Le){return function(Ae,De){return t(Le(Ae),De)}}var i=r(t),a=i.right,o=i.left;function s(Le,Ae){Ae==null&&(Ae=l);for(var De=0,Pe=Le.length-1,ge=Le[0],Fe=new Array(Pe<0?0:Pe);DeLe?1:Ae>=Le?0:NaN}function f(Le){return Le===null?NaN:+Le}function h(Le,Ae){var De=Le.length,Pe=0,ge=-1,Fe=0,ce,Ye,ct=0;if(Ae==null)for(;++ge1)return ct/(Pe-1)}function d(Le,Ae){var De=h(Le,Ae);return De&&Math.sqrt(De)}function v(Le,Ae){var De=Le.length,Pe=-1,ge,Fe,ce;if(Ae==null){for(;++Pe=ge)for(Fe=ce=ge;++Pege&&(Fe=ge),ce=ge)for(Fe=ce=ge;++Pege&&(Fe=ge),ce0)return[Le];if((Pe=Ae0)for(Le=Math.ceil(Le/Ye),Ae=Math.floor(Ae/Ye),ce=new Array(Fe=Math.ceil(Ae-Le+1));++ge=0?(Fe>=L?10:Fe>=x?5:Fe>=k?2:1)*Math.pow(10,ge):-Math.pow(10,-ge)/(Fe>=L?10:Fe>=x?5:Fe>=k?2:1)}function P(Le,Ae,De){var Pe=Math.abs(Ae-Le)/Math.max(0,De),ge=Math.pow(10,Math.floor(Math.log(Pe)/Math.LN10)),Fe=Pe/ge;return Fe>=L?ge*=10:Fe>=x?ge*=5:Fe>=k&&(ge*=2),Aest;)lt.pop(),--Gt;var Nt=new Array(Gt+1),$t;for(Fe=0;Fe<=Gt;++Fe)$t=Nt[Fe]=[],$t.x0=Fe>0?lt[Fe-1]:Wt,$t.x1=Fe=1)return+De(Le[Pe-1],Pe-1,Le);var Pe,ge=(Pe-1)*Ae,Fe=Math.floor(ge),ce=+De(Le[Fe],Fe,Le),Ye=+De(Le[Fe+1],Fe+1,Le);return ce+(Ye-ce)*(ge-Fe)}}function V(Le,Ae,De){return Le=p.call(Le,f).sort(t),Math.ceil((De-Ae)/(2*(O(Le,.75)-O(Le,.25))*Math.pow(Le.length,-1/3)))}function G(Le,Ae,De){return Math.ceil((De-Ae)/(3.5*d(Le)*Math.pow(Le.length,-1/3)))}function Z(Le,Ae){var De=Le.length,Pe=-1,ge,Fe;if(Ae==null){for(;++Pe=ge)for(Fe=ge;++PeFe&&(Fe=ge)}else for(;++Pe=ge)for(Fe=ge;++PeFe&&(Fe=ge);return Fe}function H(Le,Ae){var De=Le.length,Pe=De,ge=-1,Fe,ce=0;if(Ae==null)for(;++ge=0;)for(ce=Le[Ae],De=ce.length;--De>=0;)Fe[--ge]=ce[De];return Fe}function re(Le,Ae){var De=Le.length,Pe=-1,ge,Fe;if(Ae==null){for(;++Pe=ge)for(Fe=ge;++Pege&&(Fe=ge)}else for(;++Pe=ge)for(Fe=ge;++Pege&&(Fe=ge);return Fe}function oe(Le,Ae){for(var De=Ae.length,Pe=new Array(De);De--;)Pe[De]=Le[Ae[De]];return Pe}function _e(Le,Ae){if(De=Le.length){var De,Pe=0,ge=0,Fe,ce=Le[ge];for(Ae==null&&(Ae=t);++Pe{(function(e,t){typeof SF=="object"&&typeof hDe!="undefined"?t(SF,iC()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(SF,function(e,t){"use strict";function r(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(At){a(i,At,this.t),a(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new n;function a(At,Xt,kr){var Ar=At.s=Xt+kr,Kr=Ar-Xt,Ei=Ar-Kr;At.t=Xt-Ei+(kr-Kr)}var o=1e-6,s=1e-12,l=Math.PI,u=l/2,c=l/4,f=l*2,h=180/l,d=l/180,v=Math.abs,_=Math.atan,b=Math.atan2,p=Math.cos,C=Math.ceil,E=Math.exp,A=Math.log,L=Math.pow,x=Math.sin,k=Math.sign||function(At){return At>0?1:At<0?-1:0},M=Math.sqrt,g=Math.tan;function P(At){return At>1?0:At<-1?l:Math.acos(At)}function T(At){return At>1?u:At<-1?-u:Math.asin(At)}function z(At){return(At=x(At/2))*At}function O(){}function V(At,Xt){At&&Z.hasOwnProperty(At.type)&&Z[At.type](At,Xt)}var G={Feature:function(At,Xt){V(At.geometry,Xt)},FeatureCollection:function(At,Xt){for(var kr=At.features,Ar=-1,Kr=kr.length;++Ar=0?1:-1,Kr=Ar*kr,Ei=p(Xt),Wi=x(Xt),hn=ie*Wi,Tn=me*Ei+hn*p(Kr),Bn=hn*Ar*x(Kr);re.add(b(Bn,Tn)),ke=At,me=Ei,ie=Wi}function ge(At){return oe.reset(),j(At,Se),oe*2}function Fe(At){return[b(At[1],At[0]),T(At[2])]}function ce(At){var Xt=At[0],kr=At[1],Ar=p(kr);return[Ar*p(Xt),Ar*x(Xt),x(kr)]}function Ye(At,Xt){return At[0]*Xt[0]+At[1]*Xt[1]+At[2]*Xt[2]}function ct(At,Xt){return[At[1]*Xt[2]-At[2]*Xt[1],At[2]*Xt[0]-At[0]*Xt[2],At[0]*Xt[1]-At[1]*Xt[0]]}function pt(At,Xt){At[0]+=Xt[0],At[1]+=Xt[1],At[2]+=Xt[2]}function Wt(At,Xt){return[At[0]*Xt,At[1]*Xt,At[2]*Xt]}function st(At){var Xt=M(At[0]*At[0]+At[1]*At[1]+At[2]*At[2]);At[0]/=Xt,At[1]/=Xt,At[2]/=Xt}var lt,Gt,Nt,$t,sr,wr,ur,Qe,Et=r(),er,Ut,Ft={point:bt,lineStart:Yt,lineEnd:lr,polygonStart:function(){Ft.point=Tr,Ft.lineStart=Rr,Ft.lineEnd=ei,Et.reset(),Se.polygonStart()},polygonEnd:function(){Se.polygonEnd(),Ft.point=bt,Ft.lineStart=Yt,Ft.lineEnd=lr,re<0?(lt=-(Nt=180),Gt=-($t=90)):Et>o?$t=90:Et<-o&&(Gt=-90),Ut[0]=lt,Ut[1]=Nt},sphere:function(){lt=-(Nt=180),Gt=-($t=90)}};function bt(At,Xt){er.push(Ut=[lt=At,Nt=At]),Xt$t&&($t=Xt)}function yt(At,Xt){var kr=ce([At*d,Xt*d]);if(Qe){var Ar=ct(Qe,kr),Kr=[Ar[1],-Ar[0],0],Ei=ct(Kr,Ar);st(Ei),Ei=Fe(Ei);var Wi=At-sr,hn=Wi>0?1:-1,Tn=Ei[0]*h*hn,Bn,Zi=v(Wi)>180;Zi^(hn*sr$t&&($t=Bn)):(Tn=(Tn+360)%360-180,Zi^(hn*sr$t&&($t=Xt))),Zi?AtWr(lt,Nt)&&(Nt=At):Wr(At,Nt)>Wr(lt,Nt)&&(lt=At):Nt>=lt?(AtNt&&(Nt=At)):At>sr?Wr(lt,At)>Wr(lt,Nt)&&(Nt=At):Wr(At,Nt)>Wr(lt,Nt)&&(lt=At)}else er.push(Ut=[lt=At,Nt=At]);Xt$t&&($t=Xt),Qe=kr,sr=At}function Yt(){Ft.point=yt}function lr(){Ut[0]=lt,Ut[1]=Nt,Ft.point=bt,Qe=null}function Tr(At,Xt){if(Qe){var kr=At-sr;Et.add(v(kr)>180?kr+(kr>0?360:-360):kr)}else wr=At,ur=Xt;Se.point(At,Xt),yt(At,Xt)}function Rr(){Se.lineStart()}function ei(){Tr(wr,ur),Se.lineEnd(),v(Et)>o&&(lt=-(Nt=180)),Ut[0]=lt,Ut[1]=Nt,Qe=null}function Wr(At,Xt){return(Xt-=At)<0?Xt+360:Xt}function Ur(At,Xt){return At[0]-Xt[0]}function dt(At,Xt){return At[0]<=At[1]?At[0]<=Xt&&Xt<=At[1]:XtWr(Ar[0],Ar[1])&&(Ar[1]=Kr[1]),Wr(Kr[0],Ar[1])>Wr(Ar[0],Ar[1])&&(Ar[0]=Kr[0])):Ei.push(Ar=Kr);for(Wi=-1/0,kr=Ei.length-1,Xt=0,Ar=Ei[kr];Xt<=kr;Ar=Kr,++Xt)Kr=Ei[Xt],(hn=Wr(Ar[1],Kr[0]))>Wi&&(Wi=hn,lt=Kr[0],Nt=Ar[1])}return er=Ut=null,lt===1/0||Gt===1/0?[[NaN,NaN],[NaN,NaN]]:[[lt,Gt],[Nt,$t]]}var Je,je,$e,wt,Ie,xe,Ce,vt,nr,ir,pr,oi,di,Jr,fi,Hi,Pn={sphere:O,point:wn,lineStart:Vn,lineEnd:ua,polygonStart:function(){Pn.lineStart=Vt,Pn.lineEnd=_t},polygonEnd:function(){Pn.lineStart=Vn,Pn.lineEnd=ua}};function wn(At,Xt){At*=d,Xt*=d;var kr=p(Xt);pn(kr*p(At),kr*x(At),x(Xt))}function pn(At,Xt,kr){++Je,$e+=(At-$e)/Je,wt+=(Xt-wt)/Je,Ie+=(kr-Ie)/Je}function Vn(){Pn.point=kn}function kn(At,Xt){At*=d,Xt*=d;var kr=p(Xt);Jr=kr*p(At),fi=kr*x(At),Hi=x(Xt),Pn.point=ea,pn(Jr,fi,Hi)}function ea(At,Xt){At*=d,Xt*=d;var kr=p(Xt),Ar=kr*p(At),Kr=kr*x(At),Ei=x(Xt),Wi=b(M((Wi=fi*Ei-Hi*Kr)*Wi+(Wi=Hi*Ar-Jr*Ei)*Wi+(Wi=Jr*Kr-fi*Ar)*Wi),Jr*Ar+fi*Kr+Hi*Ei);je+=Wi,xe+=Wi*(Jr+(Jr=Ar)),Ce+=Wi*(fi+(fi=Kr)),vt+=Wi*(Hi+(Hi=Ei)),pn(Jr,fi,Hi)}function ua(){Pn.point=wn}function Vt(){Pn.point=tr}function _t(){ar(oi,di),Pn.point=wn}function tr(At,Xt){oi=At,di=Xt,At*=d,Xt*=d,Pn.point=ar;var kr=p(Xt);Jr=kr*p(At),fi=kr*x(At),Hi=x(Xt),pn(Jr,fi,Hi)}function ar(At,Xt){At*=d,Xt*=d;var kr=p(Xt),Ar=kr*p(At),Kr=kr*x(At),Ei=x(Xt),Wi=fi*Ei-Hi*Kr,hn=Hi*Ar-Jr*Ei,Tn=Jr*Kr-fi*Ar,Bn=M(Wi*Wi+hn*hn+Tn*Tn),Zi=T(Bn),$i=Bn&&-Zi/Bn;nr+=$i*Wi,ir+=$i*hn,pr+=$i*Tn,je+=Zi,xe+=Zi*(Jr+(Jr=Ar)),Ce+=Zi*(fi+(fi=Kr)),vt+=Zi*(Hi+(Hi=Ei)),pn(Jr,fi,Hi)}function Er(At){Je=je=$e=wt=Ie=xe=Ce=vt=nr=ir=pr=0,j(At,Pn);var Xt=nr,kr=ir,Ar=pr,Kr=Xt*Xt+kr*kr+Ar*Ar;return Krl?At+Math.round(-At/f)*f:At,Xt]}$r.invert=$r;function zi(At,Xt,kr){return(At%=f)?Xt||kr?ri(en(At),cn(Xt,kr)):en(At):Xt||kr?cn(Xt,kr):$r}function Ji(At){return function(Xt,kr){return Xt+=At,[Xt>l?Xt-f:Xt<-l?Xt+f:Xt,kr]}}function en(At){var Xt=Ji(At);return Xt.invert=Ji(-At),Xt}function cn(At,Xt){var kr=p(At),Ar=x(At),Kr=p(Xt),Ei=x(Xt);function Wi(hn,Tn){var Bn=p(Tn),Zi=p(hn)*Bn,$i=x(hn)*Bn,an=x(Tn),Di=an*kr+Zi*Ar;return[b($i*Kr-Di*Ei,Zi*kr-an*Ar),T(Di*Kr+$i*Ei)]}return Wi.invert=function(hn,Tn){var Bn=p(Tn),Zi=p(hn)*Bn,$i=x(hn)*Bn,an=x(Tn),Di=an*Kr-$i*Ei;return[b($i*Kr+an*Ei,Zi*kr+Di*Ar),T(Di*kr-Zi*Ar)]},Wi}function yn(At){At=zi(At[0]*d,At[1]*d,At.length>2?At[2]*d:0);function Xt(kr){return kr=At(kr[0]*d,kr[1]*d),kr[0]*=h,kr[1]*=h,kr}return Xt.invert=function(kr){return kr=At.invert(kr[0]*d,kr[1]*d),kr[0]*=h,kr[1]*=h,kr},Xt}function Mn(At,Xt,kr,Ar,Kr,Ei){if(kr){var Wi=p(Xt),hn=x(Xt),Tn=Ar*kr;Kr==null?(Kr=Xt+Ar*f,Ei=Xt-Tn/2):(Kr=Ba(Wi,Kr),Ei=Ba(Wi,Ei),(Ar>0?KrEi)&&(Kr+=Ar*f));for(var Bn,Zi=Kr;Ar>0?Zi>Ei:Zi1&&At.push(At.pop().concat(At.shift()))},result:function(){var kr=At;return At=[],Xt=null,kr}}}function Wa(At,Xt){return v(At[0]-Xt[0])=0;--hn)Kr.point(($i=Zi[hn])[0],$i[1]);else Ar(an.x,an.p.x,-1,Kr);an=an.p}an=an.o,Zi=an.z,Di=!Di}while(!an.v);Kr.lineEnd()}}}function da(At){if(Xt=At.length){for(var Xt,kr=0,Ar=At[0],Kr;++kr=0?1:-1,os=Ms*Xo,Ts=os>l,Ho=ka*Ka;if(Wn.add(b(Ho*Ms*x(os),Ra*bo+Ho*p(os))),Wi+=Ts?Xo+Ms*f:Xo,Ts^Di>=kr^Yn>=kr){var yl=ct(ce(an),ce(Na));st(yl);var Xs=ct(Ei,yl);st(Xs);var Ps=(Ts^Xo>=0?-1:1)*T(Xs[2]);(Ar>Ps||Ar===Ps&&(yl[0]||yl[1]))&&(hn+=Ts^Xo>=0?1:-1)}}return(Wi<-o||Wi0){for(Tn||(Kr.polygonStart(),Tn=!0),Kr.lineStart(),bo=0;bo1&&zn&2&&Ka.push(Ka.pop().concat(Ka.shift())),Zi.push(Ka.filter(St))}}return an}}function St(At){return At.length>1}function Cr(At,Xt){return((At=At.x)[0]<0?At[1]-u-o:u-At[1])-((Xt=Xt.x)[0]<0?Xt[1]-u-o:u-Xt[1])}var Qr=jn(function(){return!0},pi,Sn,[-l,-u]);function pi(At){var Xt=NaN,kr=NaN,Ar=NaN,Kr;return{lineStart:function(){At.lineStart(),Kr=1},point:function(Ei,Wi){var hn=Ei>0?l:-l,Tn=v(Ei-Xt);v(Tn-l)0?u:-u),At.point(Ar,kr),At.lineEnd(),At.lineStart(),At.point(hn,kr),At.point(Ei,kr),Kr=0):Ar!==hn&&Tn>=l&&(v(Xt-Ar)o?_((x(Xt)*(Ei=p(Ar))*x(kr)-x(Ar)*(Kr=p(Xt))*x(At))/(Kr*Ei*Wi)):(Xt+Ar)/2}function Sn(At,Xt,kr,Ar){var Kr;if(At==null)Kr=kr*u,Ar.point(-l,Kr),Ar.point(0,Kr),Ar.point(l,Kr),Ar.point(l,0),Ar.point(l,-Kr),Ar.point(0,-Kr),Ar.point(-l,-Kr),Ar.point(-l,0),Ar.point(-l,Kr);else if(v(At[0]-Xt[0])>o){var Ei=At[0]0,Kr=v(Xt)>o;function Ei(Zi,$i,an,Di){Mn(Di,At,kr,an,Zi,$i)}function Wi(Zi,$i){return p(Zi)*p($i)>Xt}function hn(Zi){var $i,an,Di,$n,ka;return{lineStart:function(){$n=Di=!1,ka=1},point:function(Ra,La){var Na=[Ra,La],Yn,zn=Wi(Ra,La),Ka=Ar?zn?0:Bn(Ra,La):zn?Bn(Ra+(Ra<0?l:-l),La):0;if(!$i&&($n=Di=zn)&&Zi.lineStart(),zn!==Di&&(Yn=Tn($i,Na),(!Yn||Wa($i,Yn)||Wa(Na,Yn))&&(Na[2]=1)),zn!==Di)ka=0,zn?(Zi.lineStart(),Yn=Tn(Na,$i),Zi.point(Yn[0],Yn[1])):(Yn=Tn($i,Na),Zi.point(Yn[0],Yn[1],2),Zi.lineEnd()),$i=Yn;else if(Kr&&$i&&Ar^zn){var bo;!(Ka&an)&&(bo=Tn(Na,$i,!0))&&(ka=0,Ar?(Zi.lineStart(),Zi.point(bo[0][0],bo[0][1]),Zi.point(bo[1][0],bo[1][1]),Zi.lineEnd()):(Zi.point(bo[1][0],bo[1][1]),Zi.lineEnd(),Zi.lineStart(),Zi.point(bo[0][0],bo[0][1],3)))}zn&&(!$i||!Wa($i,Na))&&Zi.point(Na[0],Na[1]),$i=Na,Di=zn,an=Ka},lineEnd:function(){Di&&Zi.lineEnd(),$i=null},clean:function(){return ka|($n&&Di)<<1}}}function Tn(Zi,$i,an){var Di=ce(Zi),$n=ce($i),ka=[1,0,0],Ra=ct(Di,$n),La=Ye(Ra,Ra),Na=Ra[0],Yn=La-Na*Na;if(!Yn)return!an&&Zi;var zn=Xt*La/Yn,Ka=-Xt*Na/Yn,bo=ct(ka,Ra),Xo=Wt(ka,zn),Ms=Wt(Ra,Ka);pt(Xo,Ms);var os=bo,Ts=Ye(Xo,os),Ho=Ye(os,os),yl=Ts*Ts-Ho*(Ye(Xo,Xo)-1);if(!(yl<0)){var Xs=M(yl),Ps=Wt(os,(-Ts-Xs)/Ho);if(pt(Ps,Xo),Ps=Fe(Ps),!an)return Ps;var va=Zi[0],no=$i[0],_s=Zi[1],is=$i[1],$l;no0^Ps[1]<(v(Ps[0]-va)l^(va<=Ps[0]&&Ps[0]<=no)){var gu=Wt(os,(-Ts+Xs)/Ho);return pt(gu,Xo),[Ps,Fe(gu)]}}}function Bn(Zi,$i){var an=Ar?At:l-At,Di=0;return Zi<-an?Di|=1:Zi>an&&(Di|=2),$i<-an?Di|=4:$i>an&&(Di|=8),Di}return jn(Wi,hn,Ei,Ar?[0,-At]:[-l,At-l])}function ki(At,Xt,kr,Ar,Kr,Ei){var Wi=At[0],hn=At[1],Tn=Xt[0],Bn=Xt[1],Zi=0,$i=1,an=Tn-Wi,Di=Bn-hn,$n;if($n=kr-Wi,!(!an&&$n>0)){if($n/=an,an<0){if($n0){if($n>$i)return;$n>Zi&&(Zi=$n)}if($n=Kr-Wi,!(!an&&$n<0)){if($n/=an,an<0){if($n>$i)return;$n>Zi&&(Zi=$n)}else if(an>0){if($n0)){if($n/=Di,Di<0){if($n0){if($n>$i)return;$n>Zi&&(Zi=$n)}if($n=Ei-hn,!(!Di&&$n<0)){if($n/=Di,Di<0){if($n>$i)return;$n>Zi&&(Zi=$n)}else if(Di>0){if($n0&&(At[0]=Wi+Zi*an,At[1]=hn+Zi*Di),$i<1&&(Xt[0]=Wi+$i*an,Xt[1]=hn+$i*Di),!0}}}}}var _n=1e9,ya=-_n;function Jn(At,Xt,kr,Ar){function Kr(Bn,Zi){return At<=Bn&&Bn<=kr&&Xt<=Zi&&Zi<=Ar}function Ei(Bn,Zi,$i,an){var Di=0,$n=0;if(Bn==null||(Di=Wi(Bn,$i))!==($n=Wi(Zi,$i))||Tn(Bn,Zi)<0^$i>0)do an.point(Di===0||Di===3?At:kr,Di>1?Ar:Xt);while((Di=(Di+$i+4)%4)!==$n);else an.point(Zi[0],Zi[1])}function Wi(Bn,Zi){return v(Bn[0]-At)0?0:3:v(Bn[0]-kr)0?2:1:v(Bn[1]-Xt)0?1:0:Zi>0?3:2}function hn(Bn,Zi){return Tn(Bn.x,Zi.x)}function Tn(Bn,Zi){var $i=Wi(Bn,1),an=Wi(Zi,1);return $i!==an?$i-an:$i===0?Zi[1]-Bn[1]:$i===1?Bn[0]-Zi[0]:$i===2?Bn[1]-Zi[1]:Zi[0]-Bn[0]}return function(Bn){var Zi=Bn,$i=ma(),an,Di,$n,ka,Ra,La,Na,Yn,zn,Ka,bo,Xo={point:Ms,lineStart:yl,lineEnd:Xs,polygonStart:Ts,polygonEnd:Ho};function Ms(va,no){Kr(va,no)&&Zi.point(va,no)}function os(){for(var va=0,no=0,_s=Di.length;no<_s;++no)for(var is=Di[no],$l=1,ku=is.length,Yu=is[0],Nc,gu,Uc=Yu[0],xu=Yu[1];$lAr&&(Uc-Nc)*(Ar-gu)>(xu-gu)*(At-Nc)&&++va:xu<=Ar&&(Uc-Nc)*(Ar-gu)<(xu-gu)*(At-Nc)&&--va;return va}function Ts(){Zi=$i,an=[],Di=[],bo=!0}function Ho(){var va=os(),no=bo&&va,_s=(an=t.merge(an)).length;(no||_s)&&(Bn.polygonStart(),no&&(Bn.lineStart(),Ei(null,null,1,Bn),Bn.lineEnd()),_s&&Wo(an,hn,va,Ei,Bn),Bn.polygonEnd()),Zi=Bn,an=Di=$n=null}function yl(){Xo.point=Ps,Di&&Di.push($n=[]),Ka=!0,zn=!1,Na=Yn=NaN}function Xs(){an&&(Ps(ka,Ra),La&&zn&&$i.rejoin(),an.push($i.result())),Xo.point=Ms,zn&&Zi.lineEnd()}function Ps(va,no){var _s=Kr(va,no);if(Di&&$n.push([va,no]),Ka)ka=va,Ra=no,La=_s,Ka=!1,_s&&(Zi.lineStart(),Zi.point(va,no));else if(_s&&zn)Zi.point(va,no);else{var is=[Na=Math.max(ya,Math.min(_n,Na)),Yn=Math.max(ya,Math.min(_n,Yn))],$l=[va=Math.max(ya,Math.min(_n,va)),no=Math.max(ya,Math.min(_n,no))];ki(is,$l,At,Xt,kr,Ar)?(zn||(Zi.lineStart(),Zi.point(is[0],is[1])),Zi.point($l[0],$l[1]),_s||Zi.lineEnd(),bo=!1):_s&&(Zi.lineStart(),Zi.point(va,no),bo=!1)}Na=va,Yn=no,zn=_s}return Xo}}function Ma(){var At=0,Xt=0,kr=960,Ar=500,Kr,Ei,Wi;return Wi={stream:function(hn){return Kr&&Ei===hn?Kr:Kr=Jn(At,Xt,kr,Ar)(Ei=hn)},extent:function(hn){return arguments.length?(At=+hn[0][0],Xt=+hn[0][1],kr=+hn[1][0],Ar=+hn[1][1],Kr=Ei=null,Wi):[[At,Xt],[kr,Ar]]}}}var _o=r(),No,po,Lo,Co={sphere:O,point:O,lineStart:Fs,lineEnd:O,polygonStart:O,polygonEnd:O};function Fs(){Co.point=ul,Co.lineEnd=zs}function zs(){Co.point=Co.lineEnd=O}function ul(At,Xt){At*=d,Xt*=d,No=At,po=x(Xt),Lo=p(Xt),Co.point=cl}function cl(At,Xt){At*=d,Xt*=d;var kr=x(Xt),Ar=p(Xt),Kr=v(At-No),Ei=p(Kr),Wi=x(Kr),hn=Ar*Wi,Tn=Lo*kr-po*Ar*Ei,Bn=po*kr+Lo*Ar*Ei;_o.add(b(M(hn*hn+Tn*Tn),Bn)),No=At,po=kr,Lo=Ar}function Fl(At){return _o.reset(),j(At,Co),+_o}var cs=[null,null],nl={type:"LineString",coordinates:cs};function Ss(At,Xt){return cs[0]=At,cs[1]=Xt,Fl(nl)}var fl={Feature:function(At,Xt){return Os(At.geometry,Xt)},FeatureCollection:function(At,Xt){for(var kr=At.features,Ar=-1,Kr=kr.length;++Ar0&&(Kr=Ss(At[Ei],At[Ei-1]),Kr>0&&kr<=Kr&&Ar<=Kr&&(kr+Ar-Kr)*(1-Math.pow((kr-Ar)/Kr,2))o}).map(an)).concat(t.range(C(Ei/Bn)*Bn,Kr,Bn).filter(function(Yn){return v(Yn%$i)>o}).map(Di))}return La.lines=function(){return Na().map(function(Yn){return{type:"LineString",coordinates:Yn}})},La.outline=function(){return{type:"Polygon",coordinates:[$n(Ar).concat(ka(Wi).slice(1),$n(kr).reverse().slice(1),ka(hn).reverse().slice(1))]}},La.extent=function(Yn){return arguments.length?La.extentMajor(Yn).extentMinor(Yn):La.extentMinor()},La.extentMajor=function(Yn){return arguments.length?(Ar=+Yn[0][0],kr=+Yn[1][0],hn=+Yn[0][1],Wi=+Yn[1][1],Ar>kr&&(Yn=Ar,Ar=kr,kr=Yn),hn>Wi&&(Yn=hn,hn=Wi,Wi=Yn),La.precision(Ra)):[[Ar,hn],[kr,Wi]]},La.extentMinor=function(Yn){return arguments.length?(Xt=+Yn[0][0],At=+Yn[1][0],Ei=+Yn[0][1],Kr=+Yn[1][1],Xt>At&&(Yn=Xt,Xt=At,At=Yn),Ei>Kr&&(Yn=Ei,Ei=Kr,Kr=Yn),La.precision(Ra)):[[Xt,Ei],[At,Kr]]},La.step=function(Yn){return arguments.length?La.stepMajor(Yn).stepMinor(Yn):La.stepMinor()},La.stepMajor=function(Yn){return arguments.length?(Zi=+Yn[0],$i=+Yn[1],La):[Zi,$i]},La.stepMinor=function(Yn){return arguments.length?(Tn=+Yn[0],Bn=+Yn[1],La):[Tn,Bn]},La.precision=function(Yn){return arguments.length?(Ra=+Yn,an=Fn(Ei,Kr,90),Di=_a(Xt,At,Ra),$n=Fn(hn,Wi,90),ka=_a(Ar,kr,Ra),La):Ra},La.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function zl(){return Vu()()}function xo(At,Xt){var kr=At[0]*d,Ar=At[1]*d,Kr=Xt[0]*d,Ei=Xt[1]*d,Wi=p(Ar),hn=x(Ar),Tn=p(Ei),Bn=x(Ei),Zi=Wi*p(kr),$i=Wi*x(kr),an=Tn*p(Kr),Di=Tn*x(Kr),$n=2*T(M(z(Ei-Ar)+Wi*Tn*z(Kr-kr))),ka=x($n),Ra=$n?function(La){var Na=x(La*=$n)/ka,Yn=x($n-La)/ka,zn=Yn*Zi+Na*an,Ka=Yn*$i+Na*Di,bo=Yn*hn+Na*Bn;return[b(Ka,zn)*h,b(bo,M(zn*zn+Ka*Ka))*h]}:function(){return[kr*h,Ar*h]};return Ra.distance=$n,Ra}function Yl(At){return At}var Us=r(),Hl=r(),ac,aa,Oo,qo,Ol={point:O,lineStart:O,lineEnd:O,polygonStart:function(){Ol.lineStart=Pc,Ol.lineEnd=Uf},polygonEnd:function(){Ol.lineStart=Ol.lineEnd=Ol.point=O,Us.add(v(Hl)),Hl.reset()},result:function(){var At=Us/2;return Us.reset(),At}};function Pc(){Ol.point=Do}function Do(At,Xt){Ol.point=rf,ac=Oo=At,aa=qo=Xt}function rf(At,Xt){Hl.add(qo*At-Oo*Xt),Oo=At,qo=Xt}function Uf(){rf(ac,aa)}var ml=1/0,Zc=ml,Kl=-ml,qs=Kl,yu={point:oc,lineStart:O,lineEnd:O,polygonStart:O,polygonEnd:O,result:function(){var At=[[ml,Zc],[Kl,qs]];return Kl=qs=-(Zc=ml=1/0),At}};function oc(At,Xt){AtKl&&(Kl=At),Xtqs&&(qs=Xt)}var Cf=0,sc=0,Nh=0,kf=0,fs=0,nf=0,Vf=0,Jl=0,hl=0,lc,Fu,Cs,js,Go={point:gs,lineStart:uc,lineEnd:Bs,polygonStart:function(){Go.lineStart=ad,Go.lineEnd=Po},polygonEnd:function(){Go.point=gs,Go.lineStart=uc,Go.lineEnd=Bs},result:function(){var At=hl?[Vf/hl,Jl/hl]:nf?[kf/nf,fs/nf]:Nh?[Cf/Nh,sc/Nh]:[NaN,NaN];return Cf=sc=Nh=kf=fs=nf=Vf=Jl=hl=0,At}};function gs(At,Xt){Cf+=At,sc+=Xt,++Nh}function uc(){Go.point=xl}function xl(At,Xt){Go.point=Gu,gs(Cs=At,js=Xt)}function Gu(At,Xt){var kr=At-Cs,Ar=Xt-js,Kr=M(kr*kr+Ar*Ar);kf+=Kr*(Cs+At)/2,fs+=Kr*(js+Xt)/2,nf+=Kr,gs(Cs=At,js=Xt)}function Bs(){Go.point=gs}function ad(){Go.point=od}function Po(){Yo(lc,Fu)}function od(At,Xt){Go.point=Yo,gs(lc=Cs=At,Fu=js=Xt)}function Yo(At,Xt){var kr=At-Cs,Ar=Xt-js,Kr=M(kr*kr+Ar*Ar);kf+=Kr*(Cs+At)/2,fs+=Kr*(js+Xt)/2,nf+=Kr,Kr=js*At-Cs*Xt,Vf+=Kr*(Cs+At),Jl+=Kr*(js+Xt),hl+=Kr*3,gs(Cs=At,js=Xt)}function Pa(At){this._context=At}Pa.prototype={_radius:4.5,pointRadius:function(At){return this._radius=At,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(At,Xt){switch(this._point){case 0:{this._context.moveTo(At,Xt),this._point=1;break}case 1:{this._context.lineTo(At,Xt);break}default:{this._context.moveTo(At+this._radius,Xt),this._context.arc(At,Xt,this._radius,0,f);break}}},result:O};var af=r(),Hu,bl,Gf,Ic,mf,ql={point:O,lineStart:function(){ql.point=_h},lineEnd:function(){Hu&&Qf(bl,Gf),ql.point=O},polygonStart:function(){Hu=!0},polygonEnd:function(){Hu=null},result:function(){var At=+af;return af.reset(),At}};function _h(At,Xt){ql.point=Qf,bl=Ic=At,Gf=mf=Xt}function Qf(At,Xt){Ic-=At,mf-=Xt,af.add(M(Ic*Ic+mf*mf)),Ic=At,mf=Xt}function yf(){this._string=[]}yf.prototype={_radius:4.5,_circle:Yc(4.5),pointRadius:function(At){return(At=+At)!==this._radius&&(this._radius=At,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(At,Xt){switch(this._point){case 0:{this._string.push("M",At,",",Xt),this._point=1;break}case 1:{this._string.push("L",At,",",Xt);break}default:{this._circle==null&&(this._circle=Yc(this._radius)),this._string.push("M",At,",",Xt,this._circle);break}}},result:function(){if(this._string.length){var At=this._string.join("");return this._string=[],At}else return null}};function Yc(At){return"m0,"+At+"a"+At+","+At+" 0 1,1 0,"+-2*At+"a"+At+","+At+" 0 1,1 0,"+2*At+"z"}function eh(At,Xt){var kr=4.5,Ar,Kr;function Ei(Wi){return Wi&&(typeof kr=="function"&&Kr.pointRadius(+kr.apply(this,arguments)),j(Wi,Ar(Kr))),Kr.result()}return Ei.area=function(Wi){return j(Wi,Ar(Ol)),Ol.result()},Ei.measure=function(Wi){return j(Wi,Ar(ql)),ql.result()},Ei.bounds=function(Wi){return j(Wi,Ar(yu)),yu.result()},Ei.centroid=function(Wi){return j(Wi,Ar(Go)),Go.result()},Ei.projection=function(Wi){return arguments.length?(Ar=Wi==null?(At=null,Yl):(At=Wi).stream,Ei):At},Ei.context=function(Wi){return arguments.length?(Kr=Wi==null?(Xt=null,new yf):new Pa(Xt=Wi),typeof kr!="function"&&Kr.pointRadius(kr),Ei):Xt},Ei.pointRadius=function(Wi){return arguments.length?(kr=typeof Wi=="function"?Wi:(Kr.pointRadius(+Wi),+Wi),Ei):kr},Ei.projection(At).context(Xt)}function th(At){return{stream:ju(At)}}function ju(At){return function(Xt){var kr=new Hf;for(var Ar in At)kr[Ar]=At[Ar];return kr.stream=Xt,kr}}function Hf(){}Hf.prototype={constructor:Hf,point:function(At,Xt){this.stream.point(At,Xt)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function cc(At,Xt,kr){var Ar=At.clipExtent&&At.clipExtent();return At.scale(150).translate([0,0]),Ar!=null&&At.clipExtent(null),j(kr,At.stream(yu)),Xt(yu.result()),Ar!=null&&At.clipExtent(Ar),At}function of(At,Xt,kr){return cc(At,function(Ar){var Kr=Xt[1][0]-Xt[0][0],Ei=Xt[1][1]-Xt[0][1],Wi=Math.min(Kr/(Ar[1][0]-Ar[0][0]),Ei/(Ar[1][1]-Ar[0][1])),hn=+Xt[0][0]+(Kr-Wi*(Ar[1][0]+Ar[0][0]))/2,Tn=+Xt[0][1]+(Ei-Wi*(Ar[1][1]+Ar[0][1]))/2;At.scale(150*Wi).translate([hn,Tn])},kr)}function Bl(At,Xt,kr){return of(At,[[0,0],Xt],kr)}function Kc(At,Xt,kr){return cc(At,function(Ar){var Kr=+Xt,Ei=Kr/(Ar[1][0]-Ar[0][0]),Wi=(Kr-Ei*(Ar[1][0]+Ar[0][0]))/2,hn=-Ei*Ar[0][1];At.scale(150*Ei).translate([Wi,hn])},kr)}function Rc(At,Xt,kr){return cc(At,function(Ar){var Kr=+Xt,Ei=Kr/(Ar[1][1]-Ar[0][1]),Wi=-Ei*Ar[0][0],hn=(Kr-Ei*(Ar[1][1]+Ar[0][1]))/2;At.scale(150*Ei).translate([Wi,hn])},kr)}var ms=16,jf=p(30*d);function Uh(At,Xt){return+Xt?sf(At,Xt):rh(At)}function rh(At){return ju({point:function(Xt,kr){Xt=At(Xt,kr),this.stream.point(Xt[0],Xt[1])}})}function sf(At,Xt){function kr(Ar,Kr,Ei,Wi,hn,Tn,Bn,Zi,$i,an,Di,$n,ka,Ra){var La=Bn-Ar,Na=Zi-Kr,Yn=La*La+Na*Na;if(Yn>4*Xt&&ka--){var zn=Wi+an,Ka=hn+Di,bo=Tn+$n,Xo=M(zn*zn+Ka*Ka+bo*bo),Ms=T(bo/=Xo),os=v(v(bo)-1)Xt||v((La*Xs+Na*Ps)/Yn-.5)>.3||Wi*an+hn*Di+Tn*$n2?va[2]%360*d:0,Xs()):[hn*h,Tn*h,Bn*h]},Ho.angle=function(va){return arguments.length?($i=va%360*d,Xs()):$i*h},Ho.reflectX=function(va){return arguments.length?(an=va?-1:1,Xs()):an<0},Ho.reflectY=function(va){return arguments.length?(Di=va?-1:1,Xs()):Di<0},Ho.precision=function(va){return arguments.length?(bo=Uh(Xo,Ka=va*va),Ps()):M(Ka)},Ho.fitExtent=function(va,no){return of(Ho,va,no)},Ho.fitSize=function(va,no){return Bl(Ho,va,no)},Ho.fitWidth=function(va,no){return Kc(Ho,va,no)},Ho.fitHeight=function(va,no){return Rc(Ho,va,no)};function Xs(){var va=Ws(kr,0,0,an,Di,$i).apply(null,Xt(Ei,Wi)),no=($i?Ws:ih)(kr,Ar-va[0],Kr-va[1],an,Di,$i);return Zi=zi(hn,Tn,Bn),Xo=ri(Xt,no),Ms=ri(Zi,Xo),bo=Uh(Xo,Ka),Ps()}function Ps(){return os=Ts=null,Ho}return function(){return Xt=At.apply(this,arguments),Ho.invert=Xt.invert&&yl,Xs()}}function ks(At){var Xt=0,kr=l/3,Ar=Dc(At),Kr=Ar(Xt,kr);return Kr.parallels=function(Ei){return arguments.length?Ar(Xt=Ei[0]*d,kr=Ei[1]*d):[Xt*h,kr*h]},Kr}function bc(At){var Xt=p(At);function kr(Ar,Kr){return[Ar*Xt,x(Kr)/Xt]}return kr.invert=function(Ar,Kr){return[Ar/Xt,T(Kr*Xt)]},kr}function du(At,Xt){var kr=x(At),Ar=(kr+x(Xt))/2;if(v(Ar)=.12&&Ra<.234&&ka>=-.425&&ka<-.214?Kr:Ra>=.166&&Ra<.234&&ka>=-.214&&ka<-.115?Wi:kr).invert(an)},Zi.stream=function(an){return At&&Xt===an?At:At=nh([kr.stream(Xt=an),Kr.stream(an),Wi.stream(an)])},Zi.precision=function(an){return arguments.length?(kr.precision(an),Kr.precision(an),Wi.precision(an),$i()):kr.precision()},Zi.scale=function(an){return arguments.length?(kr.scale(an),Kr.scale(an*.35),Wi.scale(an),Zi.translate(kr.translate())):kr.scale()},Zi.translate=function(an){if(!arguments.length)return kr.translate();var Di=kr.scale(),$n=+an[0],ka=+an[1];return Ar=kr.translate(an).clipExtent([[$n-.455*Di,ka-.238*Di],[$n+.455*Di,ka+.238*Di]]).stream(Bn),Ei=Kr.translate([$n-.307*Di,ka+.201*Di]).clipExtent([[$n-.425*Di+o,ka+.12*Di+o],[$n-.214*Di-o,ka+.234*Di-o]]).stream(Bn),hn=Wi.translate([$n-.205*Di,ka+.212*Di]).clipExtent([[$n-.214*Di+o,ka+.166*Di+o],[$n-.115*Di-o,ka+.234*Di-o]]).stream(Bn),$i()},Zi.fitExtent=function(an,Di){return of(Zi,an,Di)},Zi.fitSize=function(an,Di){return Bl(Zi,an,Di)},Zi.fitWidth=function(an,Di){return Kc(Zi,an,Di)},Zi.fitHeight=function(an,Di){return Rc(Zi,an,Di)};function $i(){return At=Xt=null,Zi}return Zi.scale(1070)}function zu(At){return function(Xt,kr){var Ar=p(Xt),Kr=p(kr),Ei=At(Ar*Kr);return[Ei*Kr*x(Xt),Ei*x(kr)]}}function Fc(At){return function(Xt,kr){var Ar=M(Xt*Xt+kr*kr),Kr=At(Ar),Ei=x(Kr),Wi=p(Kr);return[b(Xt*Ei,Ar*Wi),T(Ar&&kr*Ei/Ar)]}}var wc=zu(function(At){return M(2/(1+At))});wc.invert=Fc(function(At){return 2*T(At/2)});function bd(){return Eu(wc).scale(124.75).clipAngle(180-.001)}var _f=zu(function(At){return(At=P(At))&&At/x(At)});_f.invert=Fc(function(At){return At});function Lf(){return Eu(_f).scale(79.4188).clipAngle(180-.001)}function Ou(At,Xt){return[At,A(g((u+Xt)/2))]}Ou.invert=function(At,Xt){return[At,2*_(E(Xt))-u]};function xf(){return jl(Ou).scale(961/f)}function jl(At){var Xt=Eu(At),kr=Xt.center,Ar=Xt.scale,Kr=Xt.translate,Ei=Xt.clipExtent,Wi=null,hn,Tn,Bn;Xt.scale=function($i){return arguments.length?(Ar($i),Zi()):Ar()},Xt.translate=function($i){return arguments.length?(Kr($i),Zi()):Kr()},Xt.center=function($i){return arguments.length?(kr($i),Zi()):kr()},Xt.clipExtent=function($i){return arguments.length?($i==null?Wi=hn=Tn=Bn=null:(Wi=+$i[0][0],hn=+$i[0][1],Tn=+$i[1][0],Bn=+$i[1][1]),Zi()):Wi==null?null:[[Wi,hn],[Tn,Bn]]};function Zi(){var $i=l*Ar(),an=Xt(yn(Xt.rotate()).invert([0,0]));return Ei(Wi==null?[[an[0]-$i,an[1]-$i],[an[0]+$i,an[1]+$i]]:At===Ou?[[Math.max(an[0]-$i,Wi),hn],[Math.min(an[0]+$i,Tn),Bn]]:[[Wi,Math.max(an[1]-$i,hn)],[Tn,Math.min(an[1]+$i,Bn)]])}return Zi()}function lf(At){return g((u+At)/2)}function Vh(At,Xt){var kr=p(At),Ar=At===Xt?x(At):A(kr/p(Xt))/A(lf(Xt)/lf(At)),Kr=kr*L(lf(At),Ar)/Ar;if(!Ar)return Ou;function Ei(Wi,hn){Kr>0?hn<-u+o&&(hn=-u+o):hn>u-o&&(hn=u-o);var Tn=Kr/L(lf(hn),Ar);return[Tn*x(Ar*Wi),Kr-Tn*p(Ar*Wi)]}return Ei.invert=function(Wi,hn){var Tn=Kr-hn,Bn=k(Ar)*M(Wi*Wi+Tn*Tn),Zi=b(Wi,v(Tn))*k(Tn);return Tn*Ar<0&&(Zi-=l*k(Wi)*k(Tn)),[Zi/Ar,2*_(L(Kr/Bn,1/Ar))-u]},Ei}function Pf(){return ks(Vh).scale(109.5).parallels([30,30])}function Ls(At,Xt){return[At,Xt]}Ls.invert=Ls;function vu(){return Eu(Ls).scale(152.63)}function Cu(At,Xt){var kr=p(At),Ar=At===Xt?x(At):(kr-p(Xt))/(Xt-At),Kr=kr/Ar+At;if(v(Ar)o&&--Ar>0);return[At/(.8707+(Ei=kr*kr)*(-.131979+Ei*(-.013791+Ei*Ei*Ei*(.003971-.001529*Ei)))),kr]};function Tc(){return Eu(Oc).scale(175.295)}function wl(At,Xt){return[p(Xt)*x(At),x(Xt)]}wl.invert=Fc(T);function pu(){return Eu(wl).scale(249.5).clipAngle(90+o)}function qc(At,Xt){var kr=p(Xt),Ar=1+p(At)*kr;return[kr*x(At)/Ar,x(Xt)/Ar]}qc.invert=Fc(function(At){return 2*_(At)});function cf(){return Eu(qc).scale(250).clipAngle(142)}function fc(At,Xt){return[A(g((u+Xt)/2)),-At]}fc.invert=function(At,Xt){return[-Xt,2*_(E(At))-u]};function Bc(){var At=jl(fc),Xt=At.center,kr=At.rotate;return At.center=function(Ar){return arguments.length?Xt([-Ar[1],Ar[0]]):(Ar=Xt(),[Ar[1],-Ar[0]])},At.rotate=function(Ar){return arguments.length?kr([Ar[0],Ar[1],Ar.length>2?Ar[2]+90:90]):(Ar=kr(),[Ar[0],Ar[1],Ar[2]-90])},kr([0,0,90]).scale(159.155)}e.geoAlbers=al,e.geoAlbersUsa=bh,e.geoArea=ge,e.geoAzimuthalEqualArea=bd,e.geoAzimuthalEqualAreaRaw=wc,e.geoAzimuthalEquidistant=Lf,e.geoAzimuthalEquidistantRaw=_f,e.geoBounds=Ge,e.geoCentroid=Er,e.geoCircle=la,e.geoClipAntimeridian=Qr,e.geoClipCircle=En,e.geoClipExtent=Ma,e.geoClipRectangle=Jn,e.geoConicConformal=Pf,e.geoConicConformalRaw=Vh,e.geoConicEqualArea=_u,e.geoConicEqualAreaRaw=du,e.geoConicEquidistant=Wf,e.geoConicEquidistantRaw=Cu,e.geoContains=ws,e.geoDistance=Ss,e.geoEqualEarth=Xf,e.geoEqualEarthRaw=uf,e.geoEquirectangular=vu,e.geoEquirectangularRaw=Ls,e.geoGnomonic=ah,e.geoGnomonicRaw=Wl,e.geoGraticule=Vu,e.geoGraticule10=zl,e.geoIdentity=Zu,e.geoInterpolate=xo,e.geoLength=Fl,e.geoMercator=xf,e.geoMercatorRaw=Ou,e.geoNaturalEarth1=Tc,e.geoNaturalEarth1Raw=Oc,e.geoOrthographic=pu,e.geoOrthographicRaw=wl,e.geoPath=eh,e.geoProjection=Eu,e.geoProjectionMutator=Dc,e.geoRotation=yn,e.geoStereographic=cf,e.geoStereographicRaw=qc,e.geoStream=j,e.geoTransform=th,e.geoTransverseMercator=Bc,e.geoTransverseMercatorRaw=fc,Object.defineProperty(e,"__esModule",{value:!0})})});var vDe=ye((MF,dDe)=>{(function(e,t){typeof MF=="object"&&typeof dDe!="undefined"?t(MF,LZ(),iC()):t(e.d3=e.d3||{},e.d3,e.d3)})(MF,function(e,t,r){"use strict";var n=Math.abs,i=Math.atan,a=Math.atan2,o=Math.cos,s=Math.exp,l=Math.floor,u=Math.log,c=Math.max,f=Math.min,h=Math.pow,d=Math.round,v=Math.sign||function(ve){return ve>0?1:ve<0?-1:0},_=Math.sin,b=Math.tan,p=1e-6,C=1e-12,E=Math.PI,A=E/2,L=E/4,x=Math.SQRT1_2,k=G(2),M=G(E),g=E*2,P=180/E,T=E/180;function z(ve){return ve?ve/Math.sin(ve):1}function O(ve){return ve>1?A:ve<-1?-A:Math.asin(ve)}function V(ve){return ve>1?0:ve<-1?E:Math.acos(ve)}function G(ve){return ve>0?Math.sqrt(ve):0}function Z(ve){return ve=s(2*ve),(ve-1)/(ve+1)}function H(ve){return(s(ve)-s(-ve))/2}function N(ve){return(s(ve)+s(-ve))/2}function j(ve){return u(ve+G(ve*ve+1))}function re(ve){return u(ve+G(ve*ve-1))}function oe(ve){var be=b(ve/2),Re=2*u(o(ve/2))/(be*be);function Be(tt,We){var it=o(tt),Dt=o(We),Ht=_(We),rr=Dt*it,dr=-((1-rr?u((1+rr)/2)/(1-rr):-.5)+Re/(1+rr));return[dr*Dt*_(tt),dr*Ht]}return Be.invert=function(tt,We){var it=G(tt*tt+We*We),Dt=-ve/2,Ht=50,rr;if(!it)return[0,0];do{var dr=Dt/2,Sr=o(dr),Or=_(dr),jr=Or/Sr,ii=-u(n(Sr));Dt-=rr=(2/jr*ii-Re*jr-it)/(-ii/(Or*Or)+1-Re/(2*Sr*Sr))*(Sr<0?.7:1)}while(n(rr)>p&&--Ht>0);var Li=_(Dt);return[a(tt*Li,it*o(Dt)),O(We*Li/it)]},Be}function _e(){var ve=A,be=t.geoProjectionMutator(oe),Re=be(ve);return Re.radius=function(Be){return arguments.length?be(ve=Be*T):ve*P},Re.scale(179.976).clipAngle(147)}function Me(ve,be){var Re=o(be),Be=z(V(Re*o(ve/=2)));return[2*Re*_(ve)*Be,_(be)*Be]}Me.invert=function(ve,be){if(!(ve*ve+4*be*be>E*E+p)){var Re=ve,Be=be,tt=25;do{var We=_(Re),it=_(Re/2),Dt=o(Re/2),Ht=_(Be),rr=o(Be),dr=_(2*Be),Sr=Ht*Ht,Or=rr*rr,jr=it*it,ii=1-Or*Dt*Dt,Li=ii?V(rr*Dt)*G(un=1/ii):un=0,un,sn=2*Li*rr*it-ve,In=Li*Ht-be,Kn=un*(Or*jr+Li*rr*Dt*Sr),Aa=un*(.5*We*dr-Li*2*Ht*it),fa=un*.25*(dr*it-Li*Ht*Or*We),$a=un*(Sr*Dt+Li*jr*rr),ko=Aa*fa-$a*Kn;if(!ko)break;var Qa=(In*Aa-sn*$a)/ko,mo=(sn*fa-In*Kn)/ko;Re-=Qa,Be-=mo}while((n(Qa)>p||n(mo)>p)&&--tt>0);return[Re,Be]}};function ke(){return t.geoProjection(Me).scale(152.63)}function me(ve){var be=_(ve),Re=o(ve),Be=ve>=0?1:-1,tt=b(Be*ve),We=(1+be-Re)/2;function it(Dt,Ht){var rr=o(Ht),dr=o(Dt/=2);return[(1+rr)*_(Dt),(Be*Ht>-a(dr,tt)-.001?0:-Be*10)+We+_(Ht)*Re-(1+rr)*be*dr]}return it.invert=function(Dt,Ht){var rr=0,dr=0,Sr=50;do{var Or=o(rr),jr=_(rr),ii=o(dr),Li=_(dr),un=1+ii,sn=un*jr-Dt,In=We+Li*Re-un*be*Or-Ht,Kn=un*Or/2,Aa=-jr*Li,fa=be*un*jr/2,$a=Re*ii+be*Or*Li,ko=Aa*fa-$a*Kn,Qa=(In*Aa-sn*$a)/ko/2,mo=(sn*fa-In*Kn)/ko;n(mo)>2&&(mo/=2),rr-=Qa,dr-=mo}while((n(Qa)>p||n(mo)>p)&&--Sr>0);return Be*dr>-a(o(rr),tt)-.001?[rr*2,dr]:null},it}function ie(){var ve=20*T,be=ve>=0?1:-1,Re=b(be*ve),Be=t.geoProjectionMutator(me),tt=Be(ve),We=tt.stream;return tt.parallel=function(it){return arguments.length?(Re=b((be=(ve=it*T)>=0?1:-1)*ve),Be(ve)):ve*P},tt.stream=function(it){var Dt=tt.rotate(),Ht=We(it),rr=(tt.rotate([0,0]),We(it)),dr=tt.precision();return tt.rotate(Dt),Ht.sphere=function(){rr.polygonStart(),rr.lineStart();for(var Sr=be*-180;be*Sr<180;Sr+=be*90)rr.point(Sr,be*90);if(ve)for(;be*(Sr-=3*be*dr)>=-180;)rr.point(Sr,be*-a(o(Sr*T/2),Re)*P);rr.lineEnd(),rr.polygonEnd()},Ht},tt.scale(218.695).center([0,28.0974])}function Se(ve,be){var Re=b(be/2),Be=G(1-Re*Re),tt=1+Be*o(ve/=2),We=_(ve)*Be/tt,it=Re/tt,Dt=We*We,Ht=it*it;return[4/3*We*(3+Dt-3*Ht),4/3*it*(3+3*Dt-Ht)]}Se.invert=function(ve,be){if(ve*=3/8,be*=3/8,!ve&&n(be)>1)return null;var Re=ve*ve,Be=be*be,tt=1+Re+Be,We=G((tt-G(tt*tt-4*be*be))/2),it=O(We)/3,Dt=We?re(n(be/We))/3:j(n(ve))/3,Ht=o(it),rr=N(Dt),dr=rr*rr-Ht*Ht;return[v(ve)*2*a(H(Dt)*Ht,.25-dr),v(be)*2*a(rr*_(it),.25+dr)]};function Le(){return t.geoProjection(Se).scale(66.1603)}var Ae=G(8),De=u(1+k);function Pe(ve,be){var Re=n(be);return ReC&&--Be>0);return[ve/(o(Re)*(Ae-1/_(Re))),v(be)*Re]};function ge(){return t.geoProjection(Pe).scale(112.314)}function Fe(ve){var be=2*E/ve;function Re(Be,tt){var We=t.geoAzimuthalEquidistantRaw(Be,tt);if(n(Be)>A){var it=a(We[1],We[0]),Dt=G(We[0]*We[0]+We[1]*We[1]),Ht=be*d((it-A)/be)+A,rr=a(_(it-=Ht),2-o(it));it=Ht+O(E/Dt*_(rr))-rr,We[0]=Dt*o(it),We[1]=Dt*_(it)}return We}return Re.invert=function(Be,tt){var We=G(Be*Be+tt*tt);if(We>A){var it=a(tt,Be),Dt=be*d((it-A)/be)+A,Ht=it>Dt?-1:1,rr=We*o(Dt-it),dr=1/b(Ht*V((rr-E)/G(E*(E-2*rr)+We*We)));it=Dt+2*i((dr+Ht*G(dr*dr-3))/3),Be=We*o(it),tt=We*_(it)}return t.geoAzimuthalEquidistantRaw.invert(Be,tt)},Re}function ce(){var ve=5,be=t.geoProjectionMutator(Fe),Re=be(ve),Be=Re.stream,tt=.01,We=-o(tt*T),it=_(tt*T);return Re.lobes=function(Dt){return arguments.length?be(ve=+Dt):ve},Re.stream=function(Dt){var Ht=Re.rotate(),rr=Be(Dt),dr=(Re.rotate([0,0]),Be(Dt));return Re.rotate(Ht),rr.sphere=function(){dr.polygonStart(),dr.lineStart();for(var Sr=0,Or=360/ve,jr=2*E/ve,ii=90-180/ve,Li=A;Sr0&&n(tt)>p);return Be<0?NaN:Re}function st(ve,be,Re){return be===void 0&&(be=40),Re===void 0&&(Re=C),function(Be,tt,We,it){var Dt,Ht,rr;We=We===void 0?0:+We,it=it===void 0?0:+it;for(var dr=0;drDt){We-=Ht/=2,it-=rr/=2;continue}Dt=ii;var Li=(We>0?-1:1)*Re,un=(it>0?-1:1)*Re,sn=ve(We+Li,it),In=ve(We,it+un),Kn=(sn[0]-Sr[0])/Li,Aa=(sn[1]-Sr[1])/Li,fa=(In[0]-Sr[0])/un,$a=(In[1]-Sr[1])/un,ko=$a*Kn-Aa*fa,Qa=(n(ko)<.5?.5:1)/ko;if(Ht=(jr*fa-Or*$a)*Qa,rr=(Or*Aa-jr*Kn)*Qa,We+=Ht,it+=rr,n(Ht)0&&(Dt[1]*=1+Ht/1.5*Dt[0]*Dt[0]),Dt}return Be.invert=st(Be),Be}function Gt(){return t.geoProjection(lt()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Nt(ve,be){var Re=ve*_(be),Be=30,tt;do be-=tt=(be+_(be)-Re)/(1+o(be));while(n(tt)>p&&--Be>0);return be/2}function $t(ve,be,Re){function Be(tt,We){return[ve*tt*o(We=Nt(Re,We)),be*_(We)]}return Be.invert=function(tt,We){return We=O(We/be),[tt/(ve*o(We)),O((2*We+_(2*We))/Re)]},Be}var sr=$t(k/A,k,E);function wr(){return t.geoProjection(sr).scale(169.529)}var ur=2.00276,Qe=1.11072;function Et(ve,be){var Re=Nt(E,be);return[ur*ve/(1/o(be)+Qe/o(Re)),(be+k*_(Re))/ur]}Et.invert=function(ve,be){var Re=ur*be,Be=be<0?-L:L,tt=25,We,it;do it=Re-k*_(Be),Be-=We=(_(2*Be)+2*Be-E*_(it))/(2*o(2*Be)+2+E*o(it)*k*o(Be));while(n(We)>p&&--tt>0);return it=Re-k*_(Be),[ve*(1/o(it)+Qe/o(Be))/ur,it]};function er(){return t.geoProjection(Et).scale(160.857)}function Ut(ve){var be=0,Re=t.geoProjectionMutator(ve),Be=Re(be);return Be.parallel=function(tt){return arguments.length?Re(be=tt*T):be*P},Be}function Ft(ve,be){return[ve*o(be),be]}Ft.invert=function(ve,be){return[ve/o(be),be]};function bt(){return t.geoProjection(Ft).scale(152.63)}function yt(ve){if(!ve)return Ft;var be=1/b(ve);function Re(Be,tt){var We=be+ve-tt,it=We&&Be*o(tt)/We;return[We*_(it),be-We*o(it)]}return Re.invert=function(Be,tt){var We=G(Be*Be+(tt=be-tt)*tt),it=be+ve-We;return[We/o(it)*a(Be,tt),it]},Re}function Yt(){return Ut(yt).scale(123.082).center([0,26.1441]).parallel(45)}function lr(ve){function be(Re,Be){var tt=A-Be,We=tt&&Re*ve*_(tt)/tt;return[tt*_(We)/ve,A-tt*o(We)]}return be.invert=function(Re,Be){var tt=Re*ve,We=A-Be,it=G(tt*tt+We*We),Dt=a(tt,We);return[(it?it/_(it):1)*Dt/ve,A-it]},be}function Tr(){var ve=.5,be=t.geoProjectionMutator(lr),Re=be(ve);return Re.fraction=function(Be){return arguments.length?be(ve=+Be):ve},Re.scale(158.837)}var Rr=$t(1,4/E,E);function ei(){return t.geoProjection(Rr).scale(152.63)}function Wr(ve,be,Re,Be,tt,We){var it=o(We),Dt;if(n(ve)>1||n(We)>1)Dt=V(Re*tt+be*Be*it);else{var Ht=_(ve/2),rr=_(We/2);Dt=2*O(G(Ht*Ht+be*Be*rr*rr))}return n(Dt)>p?[Dt,a(Be*_(We),be*tt-Re*Be*it)]:[0,0]}function Ur(ve,be,Re){return V((ve*ve+be*be-Re*Re)/(2*ve*be))}function dt(ve){return ve-2*E*l((ve+E)/(2*E))}function Ge(ve,be,Re){for(var Be=[[ve[0],ve[1],_(ve[1]),o(ve[1])],[be[0],be[1],_(be[1]),o(be[1])],[Re[0],Re[1],_(Re[1]),o(Re[1])]],tt=Be[2],We,it=0;it<3;++it,tt=We)We=Be[it],tt.v=Wr(We[1]-tt[1],tt[3],tt[2],We[3],We[2],We[0]-tt[0]),tt.point=[0,0];var Dt=Ur(Be[0].v[0],Be[2].v[0],Be[1].v[0]),Ht=Ur(Be[0].v[0],Be[1].v[0],Be[2].v[0]),rr=E-Dt;Be[2].point[1]=0,Be[0].point[0]=-(Be[1].point[0]=Be[0].v[0]/2);var dr=[Be[2].point[0]=Be[0].point[0]+Be[2].v[0]*o(Dt),2*(Be[0].point[1]=Be[1].point[1]=Be[2].v[0]*_(Dt))];function Sr(Or,jr){var ii=_(jr),Li=o(jr),un=new Array(3),sn;for(sn=0;sn<3;++sn){var In=Be[sn];if(un[sn]=Wr(jr-In[1],In[3],In[2],Li,ii,Or-In[0]),!un[sn][0])return In.point;un[sn][1]=dt(un[sn][1]-In.v[1])}var Kn=dr.slice();for(sn=0;sn<3;++sn){var Aa=sn==2?0:sn+1,fa=Ur(Be[sn].v[0],un[sn][0],un[Aa][0]);un[sn][1]<0&&(fa=-fa),sn?sn==1?(fa=Ht-fa,Kn[0]-=un[sn][0]*o(fa),Kn[1]-=un[sn][0]*_(fa)):(fa=rr-fa,Kn[0]+=un[sn][0]*o(fa),Kn[1]+=un[sn][0]*_(fa)):(Kn[0]+=un[sn][0]*o(fa),Kn[1]-=un[sn][0]*_(fa))}return Kn[0]/=3,Kn[1]/=3,Kn}return Sr}function Je(ve){return ve[0]*=T,ve[1]*=T,ve}function je(){return $e([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function $e(ve,be,Re){var Be=t.geoCentroid({type:"MultiPoint",coordinates:[ve,be,Re]}),tt=[-Be[0],-Be[1]],We=t.geoRotation(tt),it=Ge(Je(We(ve)),Je(We(be)),Je(We(Re)));it.invert=st(it);var Dt=t.geoProjection(it).rotate(tt),Ht=Dt.center;return delete Dt.rotate,Dt.center=function(rr){return arguments.length?Ht(We(rr)):We.invert(Ht())},Dt.clipAngle(90)}function wt(ve,be){var Re=G(1-_(be));return[2/M*ve*Re,M*(1-Re)]}wt.invert=function(ve,be){var Re=(Re=be/M-1)*Re;return[Re>0?ve*G(E/Re)/2:0,O(1-Re)]};function Ie(){return t.geoProjection(wt).scale(95.6464).center([0,30])}function xe(ve){var be=b(ve);function Re(Be,tt){return[Be,(Be?Be/_(Be):1)*(_(tt)*o(Be)-be*o(tt))]}return Re.invert=be?function(Be,tt){Be&&(tt*=_(Be)/Be);var We=o(Be);return[Be,2*a(G(We*We+be*be-tt*tt)-We,be-tt)]}:function(Be,tt){return[Be,O(Be?tt*b(Be)/Be:tt)]},Re}function Ce(){return Ut(xe).scale(249.828).clipAngle(90)}var vt=G(3);function nr(ve,be){return[vt*ve*(2*o(2*be/3)-1)/M,vt*M*_(be/3)]}nr.invert=function(ve,be){var Re=3*O(be/(vt*M));return[M*ve/(vt*(2*o(2*Re/3)-1)),Re]};function ir(){return t.geoProjection(nr).scale(156.19)}function pr(ve){var be=o(ve);function Re(Be,tt){return[Be*be,_(tt)/be]}return Re.invert=function(Be,tt){return[Be/be,O(tt*be)]},Re}function oi(){return Ut(pr).parallel(38.58).scale(195.044)}function di(ve){var be=o(ve);function Re(Be,tt){return[Be*be,(1+be)*b(tt/2)]}return Re.invert=function(Be,tt){return[Be/be,i(tt/(1+be))*2]},Re}function Jr(){return Ut(di).scale(124.75)}function fi(ve,be){var Re=G(8/(3*E));return[Re*ve*(1-n(be)/E),Re*be]}fi.invert=function(ve,be){var Re=G(8/(3*E)),Be=be/Re;return[ve/(Re*(1-n(Be)/E)),Be]};function Hi(){return t.geoProjection(fi).scale(165.664)}function Pn(ve,be){var Re=G(4-3*_(n(be)));return[2/G(6*E)*ve*Re,v(be)*G(2*E/3)*(2-Re)]}Pn.invert=function(ve,be){var Re=2-n(be)/G(2*E/3);return[ve*G(6*E)/(2*Re),v(be)*O((4-Re*Re)/3)]};function wn(){return t.geoProjection(Pn).scale(165.664)}function pn(ve,be){var Re=G(E*(4+E));return[2/Re*ve*(1+G(1-4*be*be/(E*E))),4/Re*be]}pn.invert=function(ve,be){var Re=G(E*(4+E))/2;return[ve*Re/(1+G(1-be*be*(4+E)/(4*E))),be*Re/2]};function Vn(){return t.geoProjection(pn).scale(180.739)}function kn(ve,be){var Re=(2+A)*_(be);be/=2;for(var Be=0,tt=1/0;Be<10&&n(tt)>p;Be++){var We=o(be);be-=tt=(be+_(be)*(We+2)-Re)/(2*We*(1+We))}return[2/G(E*(4+E))*ve*(1+o(be)),2*G(E/(4+E))*_(be)]}kn.invert=function(ve,be){var Re=be*G((4+E)/E)/2,Be=O(Re),tt=o(Be);return[ve/(2/G(E*(4+E))*(1+tt)),O((Be+Re*(tt+2))/(2+A))]};function ea(){return t.geoProjection(kn).scale(180.739)}function ua(ve,be){return[ve*(1+o(be))/G(2+E),2*be/G(2+E)]}ua.invert=function(ve,be){var Re=G(2+E),Be=be*Re/2;return[Re*ve/(1+o(Be)),Be]};function Vt(){return t.geoProjection(ua).scale(173.044)}function _t(ve,be){for(var Re=(1+A)*_(be),Be=0,tt=1/0;Be<10&&n(tt)>p;Be++)be-=tt=(be+_(be)-Re)/(1+o(be));return Re=G(2+E),[ve*(1+o(be))/Re,2*be/Re]}_t.invert=function(ve,be){var Re=1+A,Be=G(Re/2);return[ve*2*Be/(1+o(be*=Be)),O((be+_(be))/Re)]};function tr(){return t.geoProjection(_t).scale(173.044)}var ar=3+2*k;function Er(ve,be){var Re=_(ve/=2),Be=o(ve),tt=G(o(be)),We=o(be/=2),it=_(be)/(We+k*Be*tt),Dt=G(2/(1+it*it)),Ht=G((k*We+(Be+Re)*tt)/(k*We+(Be-Re)*tt));return[ar*(Dt*(Ht-1/Ht)-2*u(Ht)),ar*(Dt*it*(Ht+1/Ht)-2*i(it))]}Er.invert=function(ve,be){if(!(We=Se.invert(ve/1.2,be*1.065)))return null;var Re=We[0],Be=We[1],tt=20,We;ve/=ar,be/=ar;do{var it=Re/2,Dt=Be/2,Ht=_(it),rr=o(it),dr=_(Dt),Sr=o(Dt),Or=o(Be),jr=G(Or),ii=dr/(Sr+k*rr*jr),Li=ii*ii,un=G(2/(1+Li)),sn=k*Sr+(rr+Ht)*jr,In=k*Sr+(rr-Ht)*jr,Kn=sn/In,Aa=G(Kn),fa=Aa-1/Aa,$a=Aa+1/Aa,ko=un*fa-2*u(Aa)-ve,Qa=un*ii*$a-2*i(ii)-be,mo=dr&&x*jr*Ht*Li/dr,Bo=(k*rr*Sr+jr)/(2*(Sr+k*rr*jr)*(Sr+k*rr*jr)*jr),Is=-.5*ii*un*un*un,As=Is*mo,wo=Is*Bo,To=(To=2*Sr+k*jr*(rr-Ht))*To*Aa,dl=(k*rr*Sr*jr+Or)/To,Nl=-(k*Ht*dr)/(jr*To),Lu=fa*As-2*dl/Aa+un*(dl+dl/Kn),ou=fa*wo-2*Nl/Aa+un*(Nl+Nl/Kn),$s=ii*$a*As-2*mo/(1+Li)+un*$a*mo+un*ii*(dl-dl/Kn),Ql=ii*$a*wo-2*Bo/(1+Li)+un*$a*Bo+un*ii*(Nl-Nl/Kn),dc=ou*$s-Ql*Lu;if(!dc)break;var Tl=(Qa*ou-ko*Ql)/dc,Al=(ko*$s-Qa*Lu)/dc;Re-=Tl,Be=c(-A,f(A,Be-Al))}while((n(Tl)>p||n(Al)>p)&&--tt>0);return n(n(Be)-A)Be){var Sr=G(dr),Or=a(rr,Ht),jr=Re*d(Or/Re),ii=Or-jr,Li=ve*o(ii),un=(ve*_(ii)-ii*_(Li))/(A-Li),sn=Wa(ii,un),In=(E-ve)/Fa(sn,Li,E);Ht=Sr;var Kn=50,Aa;do Ht-=Aa=(ve+Fa(sn,Li,Ht)*In-Sr)/(sn(Ht)*In);while(n(Aa)>p&&--Kn>0);rr=ii*_(Ht),HtBe){var Ht=G(Dt),rr=a(it,We),dr=Re*d(rr/Re),Sr=rr-dr;We=Ht*o(Sr),it=Ht*_(Sr);for(var Or=We-A,jr=_(We),ii=it/jr,Li=Wep||n(ii)>p)&&--Li>0);return[Sr,Or]},Ht}var Wn=da(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function Ga(){return t.geoProjection(Wn).scale(149.995)}var vo=da(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function jn(){return t.geoProjection(vo).scale(153.93)}var St=da(5/6*E,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Cr(){return t.geoProjection(St).scale(130.945)}function Qr(ve,be){var Re=ve*ve,Be=be*be;return[ve*(1-.162388*Be)*(.87-952426e-9*Re*Re),be*(1+Be/12)]}Qr.invert=function(ve,be){var Re=ve,Be=be,tt=50,We;do{var it=Be*Be;Be-=We=(Be*(1+it/12)-be)/(1+it/4)}while(n(We)>p&&--tt>0);tt=50,ve/=1-.162388*it;do{var Dt=(Dt=Re*Re)*Dt;Re-=We=(Re*(.87-952426e-9*Dt)-ve)/(.87-.00476213*Dt)}while(n(We)>p&&--tt>0);return[Re,Be]};function pi(){return t.geoProjection(Qr).scale(131.747)}var fn=da(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Sn(){return t.geoProjection(fn).scale(131.087)}function En(ve){var be=ve(A,0)[0]-ve(-A,0)[0];function Re(Be,tt){var We=Be>0?-.5:.5,it=ve(Be+We*E,tt);return it[0]-=We*be,it}return ve.invert&&(Re.invert=function(Be,tt){var We=Be>0?-.5:.5,it=ve.invert(Be+We*be,tt),Dt=it[0]-We*E;return Dt<-E?Dt+=2*E:Dt>E&&(Dt-=2*E),it[0]=Dt,it}),Re}function ki(ve,be){var Re=v(ve),Be=v(be),tt=o(be),We=o(ve)*tt,it=_(ve)*tt,Dt=_(Be*be);ve=n(a(it,Dt)),be=O(We),n(ve-A)>p&&(ve%=A);var Ht=_n(ve>E/4?A-ve:ve,be);return ve>E/4&&(Dt=Ht[0],Ht[0]=-Ht[1],Ht[1]=-Dt),Ht[0]*=Re,Ht[1]*=-Be,Ht}ki.invert=function(ve,be){n(ve)>1&&(ve=v(ve)*2-ve),n(be)>1&&(be=v(be)*2-be);var Re=v(ve),Be=v(be),tt=-Re*ve,We=-Be*be,it=We/tt<1,Dt=ya(it?We:tt,it?tt:We),Ht=Dt[0],rr=Dt[1],dr=o(rr);return it&&(Ht=-A-Ht),[Re*(a(_(Ht)*dr,-_(rr))+E),Be*O(o(Ht)*dr)]};function _n(ve,be){if(be===A)return[0,0];var Re=_(be),Be=Re*Re,tt=Be*Be,We=1+tt,it=1+3*tt,Dt=1-tt,Ht=O(1/G(We)),rr=Dt+Be*We*Ht,dr=(1-Re)/rr,Sr=G(dr),Or=dr*We,jr=G(Or),ii=Sr*Dt,Li,un;if(ve===0)return[0,-(ii+Be*jr)];var sn=o(be),In=1/sn,Kn=2*Re*sn,Aa=(-3*Be+Ht*it)*Kn,fa=(-rr*sn-(1-Re)*Aa)/(rr*rr),$a=.5*fa/Sr,ko=Dt*$a-2*Be*Sr*Kn,Qa=Be*We*fa+dr*it*Kn,mo=-In*Kn,Bo=-In*Qa,Is=-2*In*ko,As=4*ve/E,wo;if(ve>.222*E||be.175*E){if(Li=(ii+Be*G(Or*(1+tt)-ii*ii))/(1+tt),ve>E/4)return[Li,Li];var To=Li,dl=.5*Li;Li=.5*(dl+To),un=50;do{var Nl=G(Or-Li*Li),Lu=Li*(Is+mo*Nl)+Bo*O(Li/jr)-As;if(!Lu)break;Lu<0?dl=Li:To=Li,Li=.5*(dl+To)}while(n(To-dl)>p&&--un>0)}else{Li=p,un=25;do{var ou=Li*Li,$s=G(Or-ou),Ql=Is+mo*$s,dc=Li*Ql+Bo*O(Li/jr)-As,Tl=Ql+(Bo-mo*ou)/$s;Li-=wo=$s?dc/Tl:0}while(n(wo)>p&&--un>0)}return[Li,-ii-Be*G(Or-Li*Li)]}function ya(ve,be){for(var Re=0,Be=1,tt=.5,We=50;;){var it=tt*tt,Dt=G(tt),Ht=O(1/G(1+it)),rr=1-it+tt*(1+it)*Ht,dr=(1-Dt)/rr,Sr=G(dr),Or=dr*(1+it),jr=Sr*(1-it),ii=Or-ve*ve,Li=G(ii),un=be+jr+tt*Li;if(n(Be-Re)0?Re=tt:Be=tt,tt=.5*(Re+Be)}if(!We)return null;var sn=O(Dt),In=o(sn),Kn=1/In,Aa=2*Dt*In,fa=(-3*tt+Ht*(1+3*it))*Aa,$a=(-rr*In-(1-Dt)*fa)/(rr*rr),ko=.5*$a/Sr,Qa=(1-it)*ko-2*tt*Sr*Aa,mo=-2*Kn*Qa,Bo=-Kn*Aa,Is=-Kn*(tt*(1+it)*$a+dr*(1+3*it)*Aa);return[E/4*(ve*(mo+Bo*Li)+Is*O(ve/G(Or))),sn]}function Jn(){return t.geoProjection(En(ki)).scale(239.75)}function Ma(ve,be,Re){var Be,tt,We;return ve?(Be=_o(ve,Re),be?(tt=_o(be,1-Re),We=tt[1]*tt[1]+Re*Be[0]*Be[0]*tt[0]*tt[0],[[Be[0]*tt[2]/We,Be[1]*Be[2]*tt[0]*tt[1]/We],[Be[1]*tt[1]/We,-Be[0]*Be[2]*tt[0]*tt[2]/We],[Be[2]*tt[1]*tt[2]/We,-Re*Be[0]*Be[1]*tt[0]/We]]):[[Be[0],0],[Be[1],0],[Be[2],0]]):(tt=_o(be,1-Re),[[0,tt[0]/tt[1]],[1/tt[1],0],[tt[2]/tt[1],0]])}function _o(ve,be){var Re,Be,tt,We,it;if(be=1-p)return Re=(1-be)/4,Be=N(ve),We=Z(ve),tt=1/Be,it=Be*H(ve),[We+Re*(it-ve)/(Be*Be),tt-Re*We*tt*(it-ve),tt+Re*We*tt*(it+ve),2*i(s(ve))-A+Re*(it-ve)/Be];var Dt=[1,0,0,0,0,0,0,0,0],Ht=[G(be),0,0,0,0,0,0,0,0],rr=0;for(Be=G(1-be),it=1;n(Ht[rr]/Dt[rr])>p&&rr<8;)Re=Dt[rr++],Ht[rr]=(Re-Be)/2,Dt[rr]=(Re+Be)/2,Be=G(Re*Be),it*=2;tt=it*Dt[rr]*ve;do We=Ht[rr]*_(Be=tt)/Dt[rr],tt=(O(We)+tt)/2;while(--rr);return[_(tt),We=o(tt),We/o(tt-Be),tt]}function No(ve,be,Re){var Be=n(ve),tt=n(be),We=H(tt);if(Be){var it=1/_(Be),Dt=1/(b(Be)*b(Be)),Ht=-(Dt+Re*(We*We*it*it)-1+Re),rr=(Re-1)*Dt,dr=(-Ht+G(Ht*Ht-4*rr))/2;return[po(i(1/G(dr)),Re)*v(ve),po(i(G((dr/Dt-1)/Re)),1-Re)*v(be)]}return[0,po(i(We),1-Re)*v(be)]}function po(ve,be){if(!be)return ve;if(be===1)return u(b(ve/2+L));for(var Re=1,Be=G(1-be),tt=G(be),We=0;n(tt)>p;We++){if(ve%E){var it=i(Be*b(ve)/Re);it<0&&(it+=E),ve+=it+~~(ve/E)*E}else ve+=ve;tt=(Re+Be)/2,Be=G(Re*Be),tt=((Re=tt)-Be)/2}return ve/(h(2,We)*Re)}function Lo(ve,be){var Re=(k-1)/(k+1),Be=G(1-Re*Re),tt=po(A,Be*Be),We=-1,it=u(b(E/4+n(be)/2)),Dt=s(We*it)/G(Re),Ht=Co(Dt*o(We*ve),Dt*_(We*ve)),rr=No(Ht[0],Ht[1],Be*Be);return[-rr[1],(be>=0?1:-1)*(.5*tt-rr[0])]}function Co(ve,be){var Re=ve*ve,Be=be+1,tt=1-Re-be*be;return[.5*((ve>=0?A:-A)-a(tt,2*ve)),-.25*u(tt*tt+4*Re)+.5*u(Be*Be+Re)]}function Fs(ve,be){var Re=be[0]*be[0]+be[1]*be[1];return[(ve[0]*be[0]+ve[1]*be[1])/Re,(ve[1]*be[0]-ve[0]*be[1])/Re]}Lo.invert=function(ve,be){var Re=(k-1)/(k+1),Be=G(1-Re*Re),tt=po(A,Be*Be),We=-1,it=Ma(.5*tt-be,-ve,Be*Be),Dt=Fs(it[0],it[1]),Ht=a(Dt[1],Dt[0])/We;return[Ht,2*i(s(.5/We*u(Re*Dt[0]*Dt[0]+Re*Dt[1]*Dt[1])))-A]};function zs(){return t.geoProjection(En(Lo)).scale(151.496)}function ul(ve){var be=_(ve),Re=o(ve),Be=cl(ve);Be.invert=cl(-ve);function tt(We,it){var Dt=Be(We,it);We=Dt[0],it=Dt[1];var Ht=_(it),rr=o(it),dr=o(We),Sr=V(be*Ht+Re*rr*dr),Or=_(Sr),jr=n(Or)>p?Sr/Or:1;return[jr*Re*_(We),(n(We)>A?jr:-jr)*(be*rr-Re*Ht*dr)]}return tt.invert=function(We,it){var Dt=G(We*We+it*it),Ht=-_(Dt),rr=o(Dt),dr=Dt*rr,Sr=-it*Ht,Or=Dt*be,jr=G(dr*dr+Sr*Sr-Or*Or),ii=a(dr*Or+Sr*jr,Sr*Or-dr*jr),Li=(Dt>A?-1:1)*a(We*Ht,Dt*o(ii)*rr+it*_(ii)*Ht);return Be.invert(Li,ii)},tt}function cl(ve){var be=_(ve),Re=o(ve);return function(Be,tt){var We=o(tt),it=o(Be)*We,Dt=_(Be)*We,Ht=_(tt);return[a(Dt,it*Re-Ht*be),O(Ht*Re+it*be)]}}function Fl(){var ve=0,be=t.geoProjectionMutator(ul),Re=be(ve),Be=Re.rotate,tt=Re.stream,We=t.geoCircle();return Re.parallel=function(it){if(!arguments.length)return ve*P;var Dt=Re.rotate();return be(ve=it*T).rotate(Dt)},Re.rotate=function(it){return arguments.length?(Be.call(Re,[it[0],it[1]-ve*P]),We.center([-it[0],-it[1]]),Re):(it=Be.call(Re),it[1]+=ve*P,it)},Re.stream=function(it){return it=tt(it),it.sphere=function(){it.polygonStart();var Dt=.01,Ht=We.radius(90-Dt)().coordinates[0],rr=Ht.length-1,dr=-1,Sr;for(it.lineStart();++dr=0;)it.point((Sr=Ht[dr])[0],Sr[1]);it.lineEnd(),it.polygonEnd()},it},Re.scale(79.4187).parallel(45).clipAngle(180-.001)}var cs=3,nl=O(1-1/cs)*P,Ss=pr(0);function fl(ve){var be=nl*T,Re=wt(E,be)[0]-wt(-E,be)[0],Be=Ss(0,be)[1],tt=wt(0,be)[1],We=M-tt,it=g/ve,Dt=4/g,Ht=Be+We*We*4/g;function rr(dr,Sr){var Or,jr=n(Sr);if(jr>be){var ii=f(ve-1,c(0,l((dr+E)/it)));dr+=E*(ve-1)/ve-ii*it,Or=wt(dr,jr),Or[0]=Or[0]*g/Re-g*(ve-1)/(2*ve)+ii*g/ve,Or[1]=Be+(Or[1]-tt)*4*We/g,Sr<0&&(Or[1]=-Or[1])}else Or=Ss(dr,Sr);return Or[0]*=Dt,Or[1]/=Ht,Or}return rr.invert=function(dr,Sr){dr/=Dt,Sr*=Ht;var Or=n(Sr);if(Or>Be){var jr=f(ve-1,c(0,l((dr+E)/it)));dr=(dr+E*(ve-1)/ve-jr*it)*Re/g;var ii=wt.invert(dr,.25*(Or-Be)*g/We+tt);return ii[0]-=E*(ve-1)/ve-jr*it,Sr<0&&(ii[1]=-ii[1]),ii}return Ss.invert(dr,Sr)},rr}function Js(ve,be){return[ve,be&1?90-p:nl]}function Os(ve,be){return[ve,be&1?-90+p:-nl]}function Io(ve){return[ve[0]*(1-p),ve[1]]}function us(ve){var be=[].concat(r.range(-180,180+ve/2,ve).map(Js),r.range(180,-180-ve/2,-ve).map(Os));return{type:"Polygon",coordinates:[ve===180?be.map(Io):be]}}function Zl(){var ve=4,be=t.geoProjectionMutator(fl),Re=be(ve),Be=Re.stream;return Re.lobes=function(tt){return arguments.length?be(ve=+tt):ve},Re.stream=function(tt){var We=Re.rotate(),it=Be(tt),Dt=(Re.rotate([0,0]),Be(tt));return Re.rotate(We),it.sphere=function(){t.geoStream(us(180/ve),Dt)},it},Re.scale(239.75)}function Su(ve){var be=1+ve,Re=_(1/be),Be=O(Re),tt=2*G(E/(We=E+4*Be*be)),We,it=.5*tt*(be+G(ve*(2+ve))),Dt=ve*ve,Ht=be*be;function rr(dr,Sr){var Or=1-_(Sr),jr,ii;if(Or&&Or<2){var Li=A-Sr,un=25,sn;do{var In=_(Li),Kn=o(Li),Aa=Be+a(In,be-Kn),fa=1+Ht-2*be*Kn;Li-=sn=(Li-Dt*Be-be*In+fa*Aa-.5*Or*We)/(2*be*In*Aa)}while(n(sn)>C&&--un>0);jr=tt*G(fa),ii=dr*Aa/E}else jr=tt*(ve+Or),ii=dr*Be/E;return[jr*_(ii),it-jr*o(ii)]}return rr.invert=function(dr,Sr){var Or=dr*dr+(Sr-=it)*Sr,jr=(1+Ht-Or/(tt*tt))/(2*be),ii=V(jr),Li=_(ii),un=Be+a(Li,be-jr);return[O(dr/G(Or))*E/un,O(1-2*(ii-Dt*Be-be*Li+(1+Ht-2*be*jr)*un)/We)]},rr}function nc(){var ve=1,be=t.geoProjectionMutator(Su),Re=be(ve);return Re.ratio=function(Be){return arguments.length?be(ve=+Be):ve},Re.scale(167.774).center([0,18.67])}var ws=.7109889596207567,Fn=.0528035274542;function _a(ve,be){return be>-ws?(ve=sr(ve,be),ve[1]+=Fn,ve):Ft(ve,be)}_a.invert=function(ve,be){return be>-ws?sr.invert(ve,be-Fn):Ft.invert(ve,be)};function Vu(){return t.geoProjection(_a).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function zl(ve,be){return n(be)>ws?(ve=sr(ve,be),ve[1]-=be>0?Fn:-Fn,ve):Ft(ve,be)}zl.invert=function(ve,be){return n(be)>ws?sr.invert(ve,be+(be>0?Fn:-Fn)):Ft.invert(ve,be)};function xo(){return t.geoProjection(zl).scale(152.63)}function Yl(ve,be,Re,Be){var tt=G(4*E/(2*Re+(1+ve-be/2)*_(2*Re)+(ve+be)/2*_(4*Re)+be/2*_(6*Re))),We=G(Be*_(Re)*G((1+ve*o(2*Re)+be*o(4*Re))/(1+ve+be))),it=Re*Ht(1);function Dt(Sr){return G(1+ve*o(2*Sr)+be*o(4*Sr))}function Ht(Sr){var Or=Sr*Re;return(2*Or+(1+ve-be/2)*_(2*Or)+(ve+be)/2*_(4*Or)+be/2*_(6*Or))/Re}function rr(Sr){return Dt(Sr)*_(Sr)}var dr=function(Sr,Or){var jr=Re*Wt(Ht,it*_(Or)/Re,Or/E);isNaN(jr)&&(jr=Re*v(Or));var ii=tt*Dt(jr);return[ii*We*Sr/E*o(jr),ii/We*_(jr)]};return dr.invert=function(Sr,Or){var jr=Wt(rr,Or*We/tt);return[Sr*E/(o(jr)*tt*We*Dt(jr)),O(Re*Ht(jr/Re)/it)]},Re===0&&(tt=G(Be/E),dr=function(Sr,Or){return[Sr*tt,_(Or)/tt]},dr.invert=function(Sr,Or){return[Sr/tt,O(Or*tt)]}),dr}function Us(){var ve=1,be=0,Re=45*T,Be=2,tt=t.geoProjectionMutator(Yl),We=tt(ve,be,Re,Be);return We.a=function(it){return arguments.length?tt(ve=+it,be,Re,Be):ve},We.b=function(it){return arguments.length?tt(ve,be=+it,Re,Be):be},We.psiMax=function(it){return arguments.length?tt(ve,be,Re=+it*T,Be):Re*P},We.ratio=function(it){return arguments.length?tt(ve,be,Re,Be=+it):Be},We.scale(180.739)}function Hl(ve,be,Re,Be,tt,We,it,Dt,Ht,rr,dr){if(dr.nanEncountered)return NaN;var Sr,Or,jr,ii,Li,un,sn,In,Kn,Aa;if(Sr=Re-be,Or=ve(be+Sr*.25),jr=ve(Re-Sr*.25),isNaN(Or)){dr.nanEncountered=!0;return}if(isNaN(jr)){dr.nanEncountered=!0;return}return ii=Sr*(Be+4*Or+tt)/12,Li=Sr*(tt+4*jr+We)/12,un=ii+Li,Aa=(un-it)/15,rr>Ht?(dr.maxDepthCount++,un+Aa):Math.abs(Aa)>1;do Ht[un]>jr?Li=un:ii=un,un=ii+Li>>1;while(un>ii);var sn=Ht[un+1]-Ht[un];return sn&&(sn=(jr-Ht[un+1])/sn),(un+1+sn)/it}var Sr=2*dr(1)/E*We/Re,Or=function(jr,ii){var Li=dr(n(_(ii))),un=Be(Li)*jr;return Li/=Sr,[un,ii>=0?Li:-Li]};return Or.invert=function(jr,ii){var Li;return ii*=Sr,n(ii)<1&&(Li=v(ii)*O(tt(n(ii))*We)),[jr/Be(n(ii)),Li]},Or}function Oo(){var ve=0,be=2.5,Re=1.183136,Be=t.geoProjectionMutator(aa),tt=Be(ve,be,Re);return tt.alpha=function(We){return arguments.length?Be(ve=+We,be,Re):ve},tt.k=function(We){return arguments.length?Be(ve,be=+We,Re):be},tt.gamma=function(We){return arguments.length?Be(ve,be,Re=+We):Re},tt.scale(152.63)}function qo(ve,be){return n(ve[0]-be[0])=0;--Ht)Re=ve[1][Ht],Be=Re[0][0],tt=Re[0][1],We=Re[1][1],it=Re[2][0],Dt=Re[2][1],be.push(Ol([[it-p,Dt-p],[it-p,We+p],[Be+p,We+p],[Be+p,tt-p]],30));return{type:"Polygon",coordinates:[r.merge(be)]}}function Do(ve,be,Re){var Be,tt;function We(Ht,rr){for(var dr=rr<0?-1:1,Sr=be[+(rr<0)],Or=0,jr=Sr.length-1;OrSr[Or][2][0];++Or);var ii=ve(Ht-Sr[Or][1][0],rr);return ii[0]+=ve(Sr[Or][1][0],dr*rr>dr*Sr[Or][0][1]?Sr[Or][0][1]:rr)[0],ii}Re?We.invert=Re(We):ve.invert&&(We.invert=function(Ht,rr){for(var dr=tt[+(rr<0)],Sr=be[+(rr<0)],Or=0,jr=dr.length;Orii&&(Li=jr,jr=ii,ii=Li),[[Sr,jr],[Or,ii]]})}),it):be.map(function(rr){return rr.map(function(dr){return[[dr[0][0]*P,dr[0][1]*P],[dr[1][0]*P,dr[1][1]*P],[dr[2][0]*P,dr[2][1]*P]]})})},be!=null&&it.lobes(be),it}var rf=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Uf(){return Do(Et,rf).scale(160.857)}var ml=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function Zc(){return Do(zl,ml).scale(152.63)}var Kl=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function qs(){return Do(sr,Kl).scale(169.529)}var yu=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function oc(){return Do(sr,yu).scale(169.529).rotate([20,0])}var Cf=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function sc(){return Do(_a,Cf,st).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Nh=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function kf(){return Do(Ft,Nh).scale(152.63).rotate([-20,0])}function fs(ve,be){return[3/g*ve*G(E*E/3-be*be),be]}fs.invert=function(ve,be){return[g/3*ve/G(E*E/3-be*be),be]};function nf(){return t.geoProjection(fs).scale(158.837)}function Vf(ve){function be(Re,Be){if(n(n(Be)-A)2)return null;Re/=2,Be/=2;var We=Re*Re,it=Be*Be,Dt=2*Be/(1+We+it);return Dt=h((1+Dt)/(1-Dt),1/ve),[a(2*Re,1-We-it)/ve,O((Dt-1)/(Dt+1))]},be}function Jl(){var ve=.5,be=t.geoProjectionMutator(Vf),Re=be(ve);return Re.spacing=function(Be){return arguments.length?be(ve=+Be):ve},Re.scale(124.75)}var hl=E/k;function lc(ve,be){return[ve*(1+G(o(be)))/2,be/(o(be/2)*o(ve/6))]}lc.invert=function(ve,be){var Re=n(ve),Be=n(be),tt=p,We=A;Bep||n(un)>p)&&--tt>0);return tt&&[Re,Be]};function js(){return t.geoProjection(Cs).scale(139.98)}function Go(ve,be){return[_(ve)/o(be),b(be)*o(ve)]}Go.invert=function(ve,be){var Re=ve*ve,Be=be*be,tt=Be+1,We=Re+tt,it=ve?x*G((We-G(We*We-4*Re))/Re):1/G(tt);return[O(ve*it),v(be)*V(it)]};function gs(){return t.geoProjection(Go).scale(144.049).clipAngle(90-.001)}function uc(ve){var be=o(ve),Re=b(L+ve/2);function Be(tt,We){var it=We-ve,Dt=n(it)=0;)dr=ve[rr],Sr=dr[0]+Dt*(jr=Sr)-Ht*Or,Or=dr[1]+Dt*Or+Ht*jr;return Sr=Dt*(jr=Sr)-Ht*Or,Or=Dt*Or+Ht*jr,[Sr,Or]}return Re.invert=function(Be,tt){var We=20,it=Be,Dt=tt;do{for(var Ht=be,rr=ve[Ht],dr=rr[0],Sr=rr[1],Or=0,jr=0,ii;--Ht>=0;)rr=ve[Ht],Or=dr+it*(ii=Or)-Dt*jr,jr=Sr+it*jr+Dt*ii,dr=rr[0]+it*(ii=dr)-Dt*Sr,Sr=rr[1]+it*Sr+Dt*ii;Or=dr+it*(ii=Or)-Dt*jr,jr=Sr+it*jr+Dt*ii,dr=it*(ii=dr)-Dt*Sr-Be,Sr=it*Sr+Dt*ii-tt;var Li=Or*Or+jr*jr,un,sn;it-=un=(dr*Or+Sr*jr)/Li,Dt-=sn=(Sr*Or-dr*jr)/Li}while(n(un)+n(sn)>p*p&&--We>0);if(We){var In=G(it*it+Dt*Dt),Kn=2*i(In*.5),Aa=_(Kn);return[a(it*Aa,In*o(Kn)),In?O(Dt*Aa/In):0]}},Re}var Po=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],od=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Yo=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Pa=[[.9245,0],[0,0],[.01943,0]],af=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Hu(){return ql(Po,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function bl(){return ql(od,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Gf(){return ql(Yo,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Ic(){return ql(Pa,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function mf(){return ql(af,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function ql(ve,be){var Re=t.geoProjection(ad(ve)).rotate(be).clipAngle(90),Be=t.geoRotation(be),tt=Re.center;return delete Re.rotate,Re.center=function(We){return arguments.length?tt(Be(We)):Be.invert(tt())},Re}var _h=G(6),Qf=G(7);function yf(ve,be){var Re=O(7*_(be)/(3*_h));return[_h*ve*(2*o(2*Re/3)-1)/Qf,9*_(Re/3)/Qf]}yf.invert=function(ve,be){var Re=3*O(be*Qf/9);return[ve*Qf/(_h*(2*o(2*Re/3)-1)),O(_(Re)*3*_h/7)]};function Yc(){return t.geoProjection(yf).scale(164.859)}function eh(ve,be){for(var Re=(1+x)*_(be),Be=be,tt=0,We;tt<25&&(Be-=We=(_(Be/2)+_(Be)-Re)/(.5*o(Be/2)+o(Be)),!(n(We)C&&--Be>0);return We=Re*Re,it=We*We,Dt=We*it,[ve/(.84719-.13063*We+Dt*Dt*(-.04515+.05494*We-.02326*it+.00331*Dt)),Re]};function of(){return t.geoProjection(cc).scale(175.295)}function Bl(ve,be){return[ve*(1+o(be))/2,2*(be-b(be/2))]}Bl.invert=function(ve,be){for(var Re=be/2,Be=0,tt=1/0;Be<10&&n(tt)>p;++Be){var We=o(be/2);be-=tt=(be-b(be/2)-Re)/(1-.5/(We*We))}return[2*ve/(1+o(be)),be]};function Kc(){return t.geoProjection(Bl).scale(152.63)}var Rc=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function ms(){return Do(Ye(1/0),Rc).rotate([20,0]).scale(152.63)}function jf(ve,be){var Re=_(be),Be=o(be),tt=v(ve);if(ve===0||n(be)===A)return[0,be];if(be===0)return[ve,0];if(n(ve)===A)return[ve*Be,A*Re];var We=E/(2*ve)-2*ve/E,it=2*be/E,Dt=(1-it*it)/(Re-it),Ht=We*We,rr=Dt*Dt,dr=1+Ht/rr,Sr=1+rr/Ht,Or=(We*Re/Dt-We/2)/dr,jr=(rr*Re/Ht+Dt/2)/Sr,ii=Or*Or+Be*Be/dr,Li=jr*jr-(rr*Re*Re/Ht+Dt*Re-1)/Sr;return[A*(Or+G(ii)*tt),A*(jr+G(Li<0?0:Li)*v(-be*We)*tt)]}jf.invert=function(ve,be){ve/=A,be/=A;var Re=ve*ve,Be=be*be,tt=Re+Be,We=E*E;return[ve?(tt-1+G((1-tt)*(1-tt)+4*Re))/(2*ve)*A:0,Wt(function(it){return tt*(E*_(it)-2*it)*E+4*it*it*(be-_(it))+2*E*it-We*be},0)]};function Uh(){return t.geoProjection(jf).scale(127.267)}var rh=1.0148,sf=.23185,xh=-.14499,Mu=.02406,ih=rh,Ws=5*sf,Eu=7*xh,Dc=9*Mu,ks=1.790857183;function bc(ve,be){var Re=be*be;return[ve,be*(rh+Re*Re*(sf+Re*(xh+Mu*Re)))]}bc.invert=function(ve,be){be>ks?be=ks:be<-ks&&(be=-ks);var Re=be,Be;do{var tt=Re*Re;Re-=Be=(Re*(rh+tt*tt*(sf+tt*(xh+Mu*tt)))-be)/(ih+tt*tt*(Ws+tt*(Eu+Dc*tt)))}while(n(Be)>p);return[ve,Re]};function du(){return t.geoProjection(bc).scale(139.319)}function _u(ve,be){if(n(be)p&&--tt>0);return it=b(Be),[(n(be)=0;)if(Be=be[Dt],Re[0]===Be[0]&&Re[1]===Be[1]){if(We)return[We,Re];We=Re}}}function jl(ve){for(var be=ve.length,Re=[],Be=ve[be-1],tt=0;tt0?[-Be[0],0]:[180-Be[0],180])};var be=Pf.map(function(Re){return{face:Re,project:ve(Re)}});return[-1,0,0,1,0,1,4,5].forEach(function(Re,Be){var tt=be[Re];tt&&(tt.children||(tt.children=[])).push(be[Be])}),_f(be[0],function(Re,Be){return be[Re<-E/2?Be<0?6:4:Re<0?Be<0?2:0:ReBe^jr>Be&&Re<(Or-rr)*(Be-dr)/(jr-dr)+rr&&(tt=!tt)}return tt}function Wl(ve,be){var Re=be.stream,Be;if(!Re)throw new Error("invalid projection");switch(ve&&ve.type){case"Feature":Be=Zu;break;case"FeatureCollection":Be=ah;break;default:Be=Tc;break}return Be(ve,Re)}function ah(ve,be){return{type:"FeatureCollection",features:ve.features.map(function(Re){return Zu(Re,be)})}}function Zu(ve,be){return{type:"Feature",id:ve.id,properties:ve.properties,geometry:Tc(ve.geometry,be)}}function Oc(ve,be){return{type:"GeometryCollection",geometries:ve.geometries.map(function(Re){return Tc(Re,be)})}}function Tc(ve,be){if(!ve)return null;if(ve.type==="GeometryCollection")return Oc(ve,be);var Re;switch(ve.type){case"Point":Re=qc;break;case"MultiPoint":Re=qc;break;case"LineString":Re=cf;break;case"MultiLineString":Re=cf;break;case"Polygon":Re=fc;break;case"MultiPolygon":Re=fc;break;case"Sphere":Re=fc;break;default:return null}return t.geoStream(ve,be(Re)),Re.result()}var wl=[],pu=[],qc={point:function(ve,be){wl.push([ve,be])},result:function(){var ve=wl.length?wl.length<2?{type:"Point",coordinates:wl[0]}:{type:"MultiPoint",coordinates:wl}:null;return wl=[],ve}},cf={lineStart:Xu,point:function(ve,be){wl.push([ve,be])},lineEnd:function(){wl.length&&(pu.push(wl),wl=[])},result:function(){var ve=pu.length?pu.length<2?{type:"LineString",coordinates:pu[0]}:{type:"MultiLineString",coordinates:pu}:null;return pu=[],ve}},fc={polygonStart:Xu,lineStart:Xu,point:function(ve,be){wl.push([ve,be])},lineEnd:function(){var ve=wl.length;if(ve){do wl.push(wl[0].slice());while(++ve<4);pu.push(wl),wl=[]}},polygonEnd:Xu,result:function(){if(!pu.length)return null;var ve=[],be=[];return pu.forEach(function(Re){uf(Re)?ve.push([Re]):be.push(Re)}),be.forEach(function(Re){var Be=Re[0];ve.some(function(tt){if(Xf(tt[0],Be))return tt.push(Re),!0})||ve.push([Re])}),pu=[],ve.length?ve.length>1?{type:"MultiPolygon",coordinates:ve}:{type:"Polygon",coordinates:ve[0]}:null}};function Bc(ve){var be=ve(A,0)[0]-ve(-A,0)[0];function Re(Be,tt){var We=n(Be)0?Be-E:Be+E,tt),Dt=(it[0]-it[1])*x,Ht=(it[0]+it[1])*x;if(We)return[Dt,Ht];var rr=be*x,dr=Dt>0^Ht>0?-1:1;return[dr*Dt-v(Ht)*rr,dr*Ht-v(Dt)*rr]}return ve.invert&&(Re.invert=function(Be,tt){var We=(Be+tt)*x,it=(tt-Be)*x,Dt=n(We)<.5*be&&n(it)<.5*be;if(!Dt){var Ht=be*x,rr=We>0^it>0?-1:1,dr=-rr*Be+(it>0?1:-1)*Ht,Sr=-rr*tt+(We>0?1:-1)*Ht;We=(-dr-Sr)*x,it=(dr-Sr)*x}var Or=ve.invert(We,it);return Dt||(Or[0]+=We>0?E:-E),Or}),t.geoProjection(Re).rotate([-90,-90,45]).clipAngle(180-.001)}function At(){return Bc(ki).scale(176.423)}function Xt(){return Bc(Lo).scale(111.48)}function kr(ve,be){if(!(0<=(be=+be)&&be<=20))throw new Error("invalid digits");function Re(rr){var dr=rr.length,Sr=2,Or=new Array(dr);for(Or[0]=+rr[0].toFixed(be),Or[1]=+rr[1].toFixed(be);Sr2||jr[0]!=dr[0]||jr[1]!=dr[1])&&(Sr.push(jr),dr=jr)}return Sr.length===1&&rr.length>1&&Sr.push(Re(rr[rr.length-1])),Sr}function We(rr){return rr.map(tt)}function it(rr){if(rr==null)return rr;var dr;switch(rr.type){case"GeometryCollection":dr={type:"GeometryCollection",geometries:rr.geometries.map(it)};break;case"Point":dr={type:"Point",coordinates:Re(rr.coordinates)};break;case"MultiPoint":dr={type:rr.type,coordinates:Be(rr.coordinates)};break;case"LineString":dr={type:rr.type,coordinates:tt(rr.coordinates)};break;case"MultiLineString":case"Polygon":dr={type:rr.type,coordinates:We(rr.coordinates)};break;case"MultiPolygon":dr={type:"MultiPolygon",coordinates:rr.coordinates.map(We)};break;default:return rr}return rr.bbox!=null&&(dr.bbox=rr.bbox),dr}function Dt(rr){var dr={type:"Feature",properties:rr.properties,geometry:it(rr.geometry)};return rr.id!=null&&(dr.id=rr.id),rr.bbox!=null&&(dr.bbox=rr.bbox),dr}if(ve!=null)switch(ve.type){case"Feature":return Dt(ve);case"FeatureCollection":{var Ht={type:"FeatureCollection",features:ve.features.map(Dt)};return ve.bbox!=null&&(Ht.bbox=ve.bbox),Ht}default:return it(ve)}return ve}function Ar(ve){var be=_(ve);function Re(Be,tt){var We=be?b(Be*be/2)/be:Be/2;if(!tt)return[2*We,-ve];var it=2*i(We*_(tt)),Dt=1/b(tt);return[_(it)*Dt,tt+(1-o(it))*Dt-ve]}return Re.invert=function(Be,tt){if(n(tt+=ve)p&&--Dt>0);var Or=Be*(rr=b(it)),jr=b(n(tt)0?A:-A)*(Ht+tt*(dr-it)/2+tt*tt*(dr-2*Ht+it)/2)]}Wi.invert=function(ve,be){var Re=be/A,Be=Re*90,tt=f(18,n(Be/5)),We=c(0,l(tt));do{var it=Ei[We][1],Dt=Ei[We+1][1],Ht=Ei[f(19,We+2)][1],rr=Ht-it,dr=Ht-2*Dt+it,Sr=2*(n(Re)-Dt)/rr,Or=dr/rr,jr=Sr*(1-Or*Sr*(1-2*Or*Sr));if(jr>=0||We===1){Be=(be>=0?5:-5)*(jr+tt);var ii=50,Li;do tt=f(18,n(Be)/5),We=l(tt),jr=tt-We,it=Ei[We][1],Dt=Ei[We+1][1],Ht=Ei[f(19,We+2)][1],Be-=(Li=(be>=0?A:-A)*(Dt+jr*(Ht-it)/2+jr*jr*(Ht-2*Dt+it)/2)-be)*P;while(n(Li)>C&&--ii>0);break}}while(--We>=0);var un=Ei[We][0],sn=Ei[We+1][0],In=Ei[f(19,We+2)][0];return[ve/(sn+jr*(In-un)/2+jr*jr*(In-2*sn+un)/2),Be*T]};function hn(){return t.geoProjection(Wi).scale(152.63)}function Tn(ve){function be(Re,Be){var tt=o(Be),We=(ve-1)/(ve-tt*o(Re));return[We*tt*_(Re),We*_(Be)]}return be.invert=function(Re,Be){var tt=Re*Re+Be*Be,We=G(tt),it=(ve-G(1-tt*(ve+1)/(ve-1)))/((ve-1)/We+We/(ve-1));return[a(Re*it,We*G(1-it*it)),We?O(Be*it/We):0]},be}function Bn(ve,be){var Re=Tn(ve);if(!be)return Re;var Be=o(be),tt=_(be);function We(it,Dt){var Ht=Re(it,Dt),rr=Ht[1],dr=rr*tt/(ve-1)+Be;return[Ht[0]*Be/dr,rr/dr]}return We.invert=function(it,Dt){var Ht=(ve-1)/(ve-1-Dt*tt);return Re.invert(Ht*it,Ht*Dt*Be)},We}function Zi(){var ve=2,be=0,Re=t.geoProjectionMutator(Bn),Be=Re(ve,be);return Be.distance=function(tt){return arguments.length?Re(ve=+tt,be):ve},Be.tilt=function(tt){return arguments.length?Re(ve,be=tt*T):be*P},Be.scale(432.147).clipAngle(V(1/ve)*P-1e-6)}var $i=1e-4,an=1e4,Di=-180,$n=Di+$i,ka=180,Ra=ka-$i,La=-90,Na=La+$i,Yn=90,zn=Yn-$i;function Ka(ve){return ve.length>0}function bo(ve){return Math.floor(ve*an)/an}function Xo(ve){return ve===La||ve===Yn?[0,ve]:[Di,bo(ve)]}function Ms(ve){var be=ve[0],Re=ve[1],Be=!1;return be<=$n?(be=Di,Be=!0):be>=Ra&&(be=ka,Be=!0),Re<=Na?(Re=La,Be=!0):Re>=zn&&(Re=Yn,Be=!0),Be?[be,Re]:ve}function os(ve){return ve.map(Ms)}function Ts(ve,be,Re){for(var Be=0,tt=ve.length;Be=Ra||dr<=Na||dr>=zn){We[it]=Ms(Ht);for(var Sr=it+1;Sr$n&&jrNa&&ii=Dt)break;Re.push({index:-1,polygon:be,ring:We=We.slice(Sr-1)}),We[0]=Xo(We[0][1]),it=-1,Dt=We.length}}}}function Ho(ve){var be,Re=ve.length,Be={},tt={},We,it,Dt,Ht,rr;for(be=0;be0?E-Dt:Dt)*P],rr=t.geoProjection(ve(it)).rotate(Ht),dr=t.geoRotation(Ht),Sr=rr.center;return delete rr.rotate,rr.center=function(Or){return arguments.length?Sr(dr(Or)):dr.invert(Sr())},rr.clipAngle(90)}function is(ve){var be=o(ve);function Re(Be,tt){var We=t.geoGnomonicRaw(Be,tt);return We[0]*=be,We}return Re.invert=function(Be,tt){return t.geoGnomonicRaw.invert(Be/be,tt)},Re}function $l(){return ku([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function ku(ve,be){return _s(is,ve,be)}function Yu(ve){if(!(ve*=2))return t.geoAzimuthalEquidistantRaw;var be=-ve/2,Re=-be,Be=ve*ve,tt=b(Re),We=.5/_(Re);function it(Dt,Ht){var rr=V(o(Ht)*o(Dt-be)),dr=V(o(Ht)*o(Dt-Re)),Sr=Ht<0?-1:1;return rr*=rr,dr*=dr,[(rr-dr)/(2*ve),Sr*G(4*Be*dr-(Be-rr+dr)*(Be-rr+dr))/(2*ve)]}return it.invert=function(Dt,Ht){var rr=Ht*Ht,dr=o(G(rr+(Or=Dt+be)*Or)),Sr=o(G(rr+(Or=Dt+Re)*Or)),Or,jr;return[a(jr=dr-Sr,Or=(dr+Sr)*tt),(Ht<0?-1:1)*V(G(Or*Or+jr*jr)*We)]},it}function Nc(){return gu([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function gu(ve,be){return _s(Yu,ve,be)}function Uc(ve,be){if(n(be)p&&--Dt>0);return[v(ve)*(G(tt*tt+4)+tt)*E/4,A*it]};function Ku(){return t.geoProjection(hc).scale(127.16)}function ue(ve,be,Re,Be,tt){function We(it,Dt){var Ht=Re*_(Be*Dt),rr=G(1-Ht*Ht),dr=G(2/(1+rr*o(it*=tt)));return[ve*rr*dr*_(it),be*Ht*dr]}return We.invert=function(it,Dt){var Ht=it/ve,rr=Dt/be,dr=G(Ht*Ht+rr*rr),Sr=2*O(dr/2);return[a(it*b(Sr),ve*dr)/tt,dr&&O(Dt*_(Sr)/(be*Re*dr))/Be]},We}function w(ve,be,Re,Be){var tt=E/3;ve=c(ve,p),be=c(be,p),ve=f(ve,A),be=f(be,E-p),Re=c(Re,0),Re=f(Re,100-p),Be=c(Be,p);var We=Re/100+1,it=Be/100,Dt=V(We*o(tt))/tt,Ht=_(ve)/_(Dt*A),rr=be/E,dr=G(it*_(ve/2)/_(be/2)),Sr=dr/G(rr*Ht*Dt),Or=1/(dr*G(rr*Ht*Dt));return ue(Sr,Or,Ht,Dt,rr)}function B(){var ve=65*T,be=60*T,Re=20,Be=200,tt=t.geoProjectionMutator(w),We=tt(ve,be,Re,Be);return We.poleline=function(it){return arguments.length?tt(ve=+it*T,be,Re,Be):ve*P},We.parallels=function(it){return arguments.length?tt(ve,be=+it*T,Re,Be):be*P},We.inflation=function(it){return arguments.length?tt(ve,be,Re=+it,Be):Re},We.ratio=function(it){return arguments.length?tt(ve,be,Re,Be=+it):Be},We.scale(163.775)}function Q(){return B().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var ee=4*E+3*G(3),le=2*G(2*E*G(3)/ee),qe=$t(le*G(3)/E,le,ee/6);function Xe(){return t.geoProjection(qe).scale(176.84)}function ot(ve,be){return[ve*G(1-3*be*be/(E*E)),be]}ot.invert=function(ve,be){return[ve/G(1-3*be*be/(E*E)),be]};function Tt(){return t.geoProjection(ot).scale(152.63)}function Kt(ve,be){var Re=o(be),Be=o(ve)*Re,tt=1-Be,We=o(ve=a(_(ve)*Re,-_(be))),it=_(ve);return Re=G(1-Be*Be),[it*Re-We*tt,-We*Re-it*tt]}Kt.invert=function(ve,be){var Re=(ve*ve+be*be)/-2,Be=G(-Re*(2+Re)),tt=be*Re+ve*Be,We=ve*Re-be*Be,it=G(We*We+tt*tt);return[a(Be*tt,it*(1+Re)),it?-O(Be*We/it):0]};function Jt(){return t.geoProjection(Kt).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function xr(ve,be){var Re=Me(ve,be);return[(Re[0]+ve/A)/2,(Re[1]+be)/2]}xr.invert=function(ve,be){var Re=ve,Be=be,tt=25;do{var We=o(Be),it=_(Be),Dt=_(2*Be),Ht=it*it,rr=We*We,dr=_(Re),Sr=o(Re/2),Or=_(Re/2),jr=Or*Or,ii=1-rr*Sr*Sr,Li=ii?V(We*Sr)*G(un=1/ii):un=0,un,sn=.5*(2*Li*We*Or+Re/A)-ve,In=.5*(Li*it+Be)-be,Kn=.5*un*(rr*jr+Li*We*Sr*Ht)+.5/A,Aa=un*(dr*Dt/4-Li*it*Or),fa=.125*un*(Dt*Or-Li*it*rr*dr),$a=.5*un*(Ht*Sr+Li*jr*We)+.5,ko=Aa*fa-$a*Kn,Qa=(In*Aa-sn*$a)/ko,mo=(sn*fa-In*Kn)/ko;Re-=Qa,Be-=mo}while((n(Qa)>p||n(mo)>p)&&--tt>0);return[Re,Be]};function Pr(){return t.geoProjection(xr).scale(158.837)}e.geoNaturalEarth=t.geoNaturalEarth1,e.geoNaturalEarthRaw=t.geoNaturalEarth1Raw,e.geoAiry=_e,e.geoAiryRaw=oe,e.geoAitoff=ke,e.geoAitoffRaw=Me,e.geoArmadillo=ie,e.geoArmadilloRaw=me,e.geoAugust=Le,e.geoAugustRaw=Se,e.geoBaker=ge,e.geoBakerRaw=Pe,e.geoBerghaus=ce,e.geoBerghausRaw=Fe,e.geoBertin1953=Gt,e.geoBertin1953Raw=lt,e.geoBoggs=er,e.geoBoggsRaw=Et,e.geoBonne=Yt,e.geoBonneRaw=yt,e.geoBottomley=Tr,e.geoBottomleyRaw=lr,e.geoBromley=ei,e.geoBromleyRaw=Rr,e.geoChamberlin=$e,e.geoChamberlinRaw=Ge,e.geoChamberlinAfrica=je,e.geoCollignon=Ie,e.geoCollignonRaw=wt,e.geoCraig=Ce,e.geoCraigRaw=xe,e.geoCraster=ir,e.geoCrasterRaw=nr,e.geoCylindricalEqualArea=oi,e.geoCylindricalEqualAreaRaw=pr,e.geoCylindricalStereographic=Jr,e.geoCylindricalStereographicRaw=di,e.geoEckert1=Hi,e.geoEckert1Raw=fi,e.geoEckert2=wn,e.geoEckert2Raw=Pn,e.geoEckert3=Vn,e.geoEckert3Raw=pn,e.geoEckert4=ea,e.geoEckert4Raw=kn,e.geoEckert5=Vt,e.geoEckert5Raw=ua,e.geoEckert6=tr,e.geoEckert6Raw=_t,e.geoEisenlohr=Zr,e.geoEisenlohrRaw=Er,e.geoFahey=zi,e.geoFaheyRaw=$r,e.geoFoucaut=en,e.geoFoucautRaw=Ji,e.geoFoucautSinusoidal=yn,e.geoFoucautSinusoidalRaw=cn,e.geoGilbert=la,e.geoGingery=Wo,e.geoGingeryRaw=ma,e.geoGinzburg4=Ga,e.geoGinzburg4Raw=Wn,e.geoGinzburg5=jn,e.geoGinzburg5Raw=vo,e.geoGinzburg6=Cr,e.geoGinzburg6Raw=St,e.geoGinzburg8=pi,e.geoGinzburg8Raw=Qr,e.geoGinzburg9=Sn,e.geoGinzburg9Raw=fn,e.geoGringorten=Jn,e.geoGringortenRaw=ki,e.geoGuyou=zs,e.geoGuyouRaw=Lo,e.geoHammer=pt,e.geoHammerRaw=Ye,e.geoHammerRetroazimuthal=Fl,e.geoHammerRetroazimuthalRaw=ul,e.geoHealpix=Zl,e.geoHealpixRaw=fl,e.geoHill=nc,e.geoHillRaw=Su,e.geoHomolosine=xo,e.geoHomolosineRaw=zl,e.geoHufnagel=Us,e.geoHufnagelRaw=Yl,e.geoHyperelliptical=Oo,e.geoHyperellipticalRaw=aa,e.geoInterrupt=Do,e.geoInterruptedBoggs=Uf,e.geoInterruptedHomolosine=Zc,e.geoInterruptedMollweide=qs,e.geoInterruptedMollweideHemispheres=oc,e.geoInterruptedSinuMollweide=sc,e.geoInterruptedSinusoidal=kf,e.geoKavrayskiy7=nf,e.geoKavrayskiy7Raw=fs,e.geoLagrange=Jl,e.geoLagrangeRaw=Vf,e.geoLarrivee=Fu,e.geoLarriveeRaw=lc,e.geoLaskowski=js,e.geoLaskowskiRaw=Cs,e.geoLittrow=gs,e.geoLittrowRaw=Go,e.geoLoximuthal=xl,e.geoLoximuthalRaw=uc,e.geoMiller=Bs,e.geoMillerRaw=Gu,e.geoModifiedStereographic=ql,e.geoModifiedStereographicRaw=ad,e.geoModifiedStereographicAlaska=Hu,e.geoModifiedStereographicGs48=bl,e.geoModifiedStereographicGs50=Gf,e.geoModifiedStereographicMiller=Ic,e.geoModifiedStereographicLee=mf,e.geoMollweide=wr,e.geoMollweideRaw=sr,e.geoMtFlatPolarParabolic=Yc,e.geoMtFlatPolarParabolicRaw=yf,e.geoMtFlatPolarQuartic=th,e.geoMtFlatPolarQuarticRaw=eh,e.geoMtFlatPolarSinusoidal=Hf,e.geoMtFlatPolarSinusoidalRaw=ju,e.geoNaturalEarth2=of,e.geoNaturalEarth2Raw=cc,e.geoNellHammer=Kc,e.geoNellHammerRaw=Bl,e.geoInterruptedQuarticAuthalic=ms,e.geoNicolosi=Uh,e.geoNicolosiRaw=jf,e.geoPatterson=du,e.geoPattersonRaw=bc,e.geoPolyconic=al,e.geoPolyconicRaw=_u,e.geoPolyhedral=_f,e.geoPolyhedralButterfly=Ls,e.geoPolyhedralCollignon=Wf,e.geoPolyhedralWaterman=Vs,e.geoProject=Wl,e.geoGringortenQuincuncial=At,e.geoPeirceQuincuncial=Xt,e.geoPierceQuincuncial=Xt,e.geoQuantize=kr,e.geoQuincuncial=Bc,e.geoRectangularPolyconic=Kr,e.geoRectangularPolyconicRaw=Ar,e.geoRobinson=hn,e.geoRobinsonRaw=Wi,e.geoSatellite=Zi,e.geoSatelliteRaw=Bn,e.geoSinuMollweide=Vu,e.geoSinuMollweideRaw=_a,e.geoSinusoidal=bt,e.geoSinusoidalRaw=Ft,e.geoStitch=Ps,e.geoTimes=no,e.geoTimesRaw=va,e.geoTwoPointAzimuthal=ku,e.geoTwoPointAzimuthalRaw=is,e.geoTwoPointAzimuthalUsa=$l,e.geoTwoPointEquidistant=gu,e.geoTwoPointEquidistantRaw=Yu,e.geoTwoPointEquidistantUsa=Nc,e.geoVanDerGrinten=xu,e.geoVanDerGrintenRaw=Uc,e.geoVanDerGrinten2=Ua,e.geoVanDerGrinten2Raw=Ac,e.geoVanDerGrinten3=Vc,e.geoVanDerGrinten3Raw=oo,e.geoVanDerGrinten4=Ku,e.geoVanDerGrinten4Raw=hc,e.geoWagner=B,e.geoWagner7=Q,e.geoWagnerRaw=w,e.geoWagner4=Xe,e.geoWagner4Raw=qe,e.geoWagner6=Tt,e.geoWagner6Raw=ot,e.geoWiechel=Jt,e.geoWiechelRaw=Kt,e.geoWinkel3=Pr,e.geoWinkel3Raw=xr,Object.defineProperty(e,"__esModule",{value:!0})})});var _De=ye((vgr,yDe)=>{"use strict";var id=Oa(),PZ=Dr(),WFt=qa(),ZA=Math.PI/180,H2=180/Math.PI,RZ={cursor:"pointer"},DZ={cursor:"auto"};function XFt(e,t){var r=e.projection,n;return t._isScoped?n=ZFt:t._isClipped?n=KFt:n=YFt,n(e,r)}yDe.exports=XFt;function FZ(e,t){return id.behavior.zoom().translate(t.translate()).scale(t.scale())}function zZ(e,t,r){var n=e.id,i=e.graphDiv,a=i.layout,o=a[n],s=i._fullLayout,l=s[n],u={},c={};function f(h,d){u[n+"."+h]=PZ.nestedProperty(o,h).get(),WFt.call("_storeDirectGUIEdit",a,s._preGUI,u);var v=PZ.nestedProperty(l,h);v.get()!==d&&(v.set(d),PZ.nestedProperty(o,h).set(d),c[n+"."+h]=d)}r(f),f("projection.scale",t.scale()/e.fitScale),f("fitbounds",!1),i.emit("plotly_relayout",c)}function ZFt(e,t){var r=FZ(e,t);function n(){id.select(this).style(RZ)}function i(){t.scale(id.event.scale).translate(id.event.translate),e.render(!0);var s=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":s[0],"geo.center.lat":s[1]})}function a(s){var l=t.invert(e.midPt);s("center.lon",l[0]),s("center.lat",l[1])}function o(){id.select(this).style(DZ),zZ(e,t,a)}return r.on("zoomstart",n).on("zoom",i).on("zoomend",o),r}function YFt(e,t){var r=FZ(e,t),n=2,i,a,o,s,l,u,c,f,h;function d(E){return t.invert(E)}function v(E){var A=d(E);if(!A)return!0;var L=t(A);return Math.abs(L[0]-E[0])>n||Math.abs(L[1]-E[1])>n}function _(){id.select(this).style(RZ),i=id.mouse(this),a=t.rotate(),o=t.translate(),s=a,l=d(i)}function b(){if(u=id.mouse(this),v(i)){r.scale(t.scale()),r.translate(t.translate());return}t.scale(id.event.scale),t.translate([o[0],id.event.translate[1]]),l?d(u)&&(f=d(u),c=[s[0]+(f[0]-l[0]),a[1],a[2]],t.rotate(c),s=c):(i=u,l=d(i)),h=!0,e.render(!0);var E=t.rotate(),A=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":A[0],"geo.center.lat":A[1],"geo.projection.rotation.lon":-E[0]})}function p(){id.select(this).style(DZ),h&&zZ(e,t,C)}function C(E){var A=t.rotate(),L=t.invert(e.midPt);E("projection.rotation.lon",-A[0]),E("center.lon",L[0]),E("center.lat",L[1])}return r.on("zoomstart",_).on("zoom",b).on("zoomend",p),r}function KFt(e,t){var r={r:t.rotate(),k:t.scale()},n=FZ(e,t),i=nzt(n,"zoomstart","zoom","zoomend"),a=0,o=n.on,s;n.on("zoomstart",function(){id.select(this).style(RZ);var h=id.mouse(this),d=t.rotate(),v=d,_=t.translate(),b=JFt(d);s=EF(t,h),o.call(n,"zoom",function(){var p=id.mouse(this);if(t.scale(r.k=id.event.scale),!s)h=p,s=EF(t,h);else if(EF(t,p)){t.rotate(d).translate(_);var C=EF(t,p),E=QFt(s,C),A=tzt($Ft(b,E)),L=r.r=ezt(A,s,v);(!isFinite(L[0])||!isFinite(L[1])||!isFinite(L[2]))&&(L=v),t.rotate(L),v=L}u(i.of(this,arguments))}),l(i.of(this,arguments))}).on("zoomend",function(){id.select(this).style(DZ),o.call(n,"zoom",null),c(i.of(this,arguments)),zZ(e,t,f)}).on("zoom.redraw",function(){e.render(!0);var h=t.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function l(h){a++||h({type:"zoomstart"})}function u(h){h({type:"zoom"})}function c(h){--a||h({type:"zoomend"})}function f(h){var d=t.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return id.rebind(n,i,"on")}function EF(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&rzt(r)}function JFt(e){var t=.5*e[0]*ZA,r=.5*e[1]*ZA,n=.5*e[2]*ZA,i=Math.sin(t),a=Math.cos(t),o=Math.sin(r),s=Math.cos(r),l=Math.sin(n),u=Math.cos(n);return[a*s*u+i*o*l,i*s*u-a*o*l,a*o*u+i*s*l,a*s*l-i*o*u]}function $Ft(e,t){var r=e[0],n=e[1],i=e[2],a=e[3],o=t[0],s=t[1],l=t[2],u=t[3];return[r*o-n*s-i*l-a*u,r*s+n*o+i*u-a*l,r*l-n*u+i*o+a*s,r*u+n*l-i*s+a*o]}function QFt(e,t){if(!(!e||!t)){var r=izt(e,t),n=Math.sqrt(mDe(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,mDe(e,t)))),a=Math.sin(i)/n;return n&&[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function ezt(e,t,r){var n=IZ(t,2,e[0]);n=IZ(n,1,e[1]),n=IZ(n,0,e[2]-r[2]);var i=t[0],a=t[1],o=t[2],s=n[0],l=n[1],u=n[2],c=Math.atan2(a,i)*H2,f=Math.sqrt(i*i+a*a),h,d;Math.abs(l)>f?(d=(l>0?90:-90)-c,h=0):(d=Math.asin(l/f)*H2-c,h=Math.sqrt(f*f-l*l));var v=180-d-2*c,_=(Math.atan2(u,s)-Math.atan2(o,h))*H2,b=(Math.atan2(u,s)-Math.atan2(o,-h))*H2,p=pDe(r[0],r[1],d,_),C=pDe(r[0],r[1],v,b);return p<=C?[d,_,r[2]]:[v,b,r[2]]}function pDe(e,t,r,n){var i=gDe(r-e),a=gDe(n-t);return Math.sqrt(i*i+a*a)}function gDe(e){return(e%360+540)%360-180}function IZ(e,t,r){var n=r*ZA,i=e.slice(),a=t===0?1:0,o=t===2?1:2,s=Math.cos(n),l=Math.sin(n);return i[a]=e[a]*s-e[o]*l,i[o]=e[o]*s+e[a]*l,i}function tzt(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*H2,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*H2,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*H2]}function rzt(e){var t=e[0]*ZA,r=e[1]*ZA,n=Math.cos(r);return[n*Math.cos(t),n*Math.sin(t),Math.sin(r)]}function mDe(e,t){for(var r=0,n=0,i=e.length;n{"use strict";var t1=Oa(),BZ=LZ(),azt=BZ.geoPath,ozt=BZ.geoDistance,szt=vDe(),lzt=qa(),aC=Dr(),uzt=aC.strTranslate,CF=Ca(),nC=So(),xDe=vf(),czt=Mc(),qZ=ho(),bDe=wg().getAutoRange,OZ=gv(),fzt=zf().prepSelect,hzt=zf().clearOutline,dzt=zf().selectOnClick,vzt=_De(),cp=eC(),pzt=nx(),TDe=hF(),gzt=pZ().feature;function ADe(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var $g=ADe.prototype;SDe.exports=function(t){return new ADe(t)};$g.plot=function(e,t,r,n){var i=this;if(n)return i.update(e,t,!0);i._geoCalcData=e,i._fullLayout=t;var a=t[this.id],o=[],s=!1;for(var l in cp.layerNameToAdjective)if(l!=="frame"&&a["show"+l]){s=!0;break}for(var u=!1,c=0;c0&&o._module.calcGeoJSON(a,t)}if(!r){var s=this.updateProjection(e,t);if(s)return;(!this.viewInitial||this.scope!==n.scope)&&this.saveViewInitial(n)}this.scope=n.scope,this.updateBaseLayers(t,n),this.updateDims(t,n),this.updateFx(t,n),czt.generalUpdatePerTraceModule(this.graphDiv,this,e,n);var l=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=l.selectAll(".point"),this.dataPoints.text=l.selectAll("text"),this.dataPaths.line=l.selectAll(".js-line");var u=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=u.selectAll("path"),this._render()};$g.updateProjection=function(e,t){var r=this.graphDiv,n=t[this.id],i=t._size,a=n.domain,o=n.projection,s=n.lonaxis,l=n.lataxis,u=s._ax,c=l._ax,f=this.projection=mzt(n),h=[[i.l+i.w*a.x[0],i.t+i.h*(1-a.y[1])],[i.l+i.w*a.x[1],i.t+i.h*(1-a.y[0])]],d=n.center||{},v=o.rotation||{},_=s.range||[],b=l.range||[];if(n.fitbounds){u._length=h[1][0]-h[0][0],c._length=h[1][1]-h[0][1],u.range=bDe(r,u),c.range=bDe(r,c);var p=(u.range[0]+u.range[1])/2,C=(c.range[0]+c.range[1])/2;if(n._isScoped)d={lon:p,lat:C};else if(n._isClipped){d={lon:p,lat:C},v={lon:p,lat:C,roll:v.roll};var E=o.type,A=cp.lonaxisSpan[E]/2||180,L=cp.lataxisSpan[E]/2||90;_=[p-A,p+A],b=[C-L,C+L]}else d={lon:p,lat:C},v={lon:p,lat:v.lat,roll:v.roll}}f.center([d.lon-v.lon,d.lat-v.lat]).rotate([-v.lon,-v.lat,v.roll]).parallels(o.parallels);var x=wDe(_,b);f.fitExtent(h,x);var k=this.bounds=f.getBounds(x),M=this.fitScale=f.scale(),g=f.translate();if(n.fitbounds){var P=f.getBounds(wDe(u.range,c.range)),T=Math.min((k[1][0]-k[0][0])/(P[1][0]-P[0][0]),(k[1][1]-k[0][1])/(P[1][1]-P[0][1]));isFinite(T)?f.scale(T*M):aC.warn("Something went wrong during"+this.id+"fitbounds computations.")}else f.scale(o.scale*M);var z=this.midPt=[(k[0][0]+k[1][0])/2,(k[0][1]+k[1][1])/2];if(f.translate([g[0]+(z[0]-g[0]),g[1]+(z[1]-g[1])]).clipExtent(k),n._isAlbersUsa){var O=f([d.lon,d.lat]),V=f.translate();f.translate([V[0]-(O[0]-V[0]),V[1]-(O[1]-V[1])])}};$g.updateBaseLayers=function(e,t){var r=this,n=r.topojson,i=r.layers,a=r.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function s(h){return!!cp.lineLayers[h]}function l(h){return!!cp.fillLayers[h]}var u=this.hasChoropleth?cp.layersForChoropleth:cp.layers,c=u.filter(function(h){return s(h)||l(h)?t["show"+h]:o(h)?t[h].showgrid:!0}),f=r.framework.selectAll(".layer").data(c,String);f.exit().each(function(h){delete i[h],delete a[h],t1.select(this).remove()}),f.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=i[h]=t1.select(this);h==="bg"?r.bgRect=d.append("rect").style("pointer-events","all"):o(h)?a[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):s(h)?a[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):l(h)&&(a[h]=d.append("path").style("stroke","none"))}),f.order(),f.each(function(h){var d=a[h],v=cp.layerNameToAdjective[h];h==="frame"?d.datum(cp.sphereSVG):s(h)||l(h)?d.datum(gzt(n,n.objects[h])):o(h)&&d.datum(yzt(h,t,e)).call(CF.stroke,t[h].gridcolor).call(nC.dashLine,t[h].griddash,t[h].gridwidth),s(h)?d.call(CF.stroke,t[v+"color"]).call(nC.dashLine,"",t[v+"width"]):l(h)&&d.call(CF.fill,t[v+"color"])})};$g.updateDims=function(e,t){var r=this.bounds,n=(t.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,s=r[1][1]-a+n;nC.setRect(this.clipRect,i,a,o,s),this.bgRect.call(nC.setRect,i,a,o,s).call(CF.fill,t.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s};$g.updateFx=function(e,t){var r=this,n=r.graphDiv,i=r.bgRect,a=e.dragmode,o=e.clickmode;if(r.isStatic)return;function s(){var f=r.viewInitial,h={};for(var d in f)h[r.id+"."+d]=f[d];lzt.call("_guiRelayout",n,h),n.emit("plotly_doubleclick",null)}function l(f){return r.projection.invert([f[0]+r.xaxis._offset,f[1]+r.yaxis._offset])}var u=function(f,h){if(h.isRect){var d=f.range={};d[r.id]=[l([h.xmin,h.ymin]),l([h.xmax,h.ymax])]}else{var v=f.lassoPoints={};v[r.id]=h.map(l)}},c={element:r.bgRect.node(),gd:n,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:u},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(f){f===2&&hzt(n)}};a==="pan"?(i.node().onmousedown=null,i.call(vzt(r,t)),i.on("dblclick.zoom",s),n._context._scrollZoom.geo||i.on("wheel.zoom",null)):(a==="select"||a==="lasso")&&(i.on(".zoom",null),c.prepFn=function(f,h,d){fzt(f,h,d,c,a)},OZ.init(c)),i.on("mousemove",function(){var f=r.projection.invert(aC.getPositionFromD3Event());if(!f)return OZ.unhover(n,t1.event);r.xaxis.p2c=function(){return f[0]},r.yaxis.p2c=function(){return f[1]},xDe.hover(n,t1.event,r.id)}),i.on("mouseout",function(){n._dragging||OZ.unhover(n,t1.event)}),i.on("click",function(){a!=="select"&&a!=="lasso"&&(o.indexOf("select")>-1&&dzt(t1.event,n,[r.xaxis],[r.yaxis],r.id,c),o.indexOf("event")>-1&&xDe.click(n,t1.event))})};$g.makeFramework=function(){var e=this,t=e.graphDiv,r=t._fullLayout,n="clip"+r._uid+e.id;e.clipDef=r._clips.append("clipPath").attr("id",n),e.clipRect=e.clipDef.append("rect"),e.framework=t1.select(e.container).append("g").attr("class","geo "+e.id).call(nC.setClipUrl,n,t),e.project=function(i){var a=e.projection(i);return a?[a[0]-e.xaxis._offset,a[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(i){return e.project(i)[0]}},e.yaxis={_id:"y",c2p:function(i){return e.project(i)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},qZ.setConvert(e.mockAxis,r)};$g.saveViewInitial=function(e){var t=e.center||{},r=e.projection,n=r.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":r.scale};var i;e._isScoped?i={"center.lon":t.lon,"center.lat":t.lat}:e._isClipped?i={"projection.rotation.lon":n.lon,"projection.rotation.lat":n.lat}:i={"center.lon":t.lon,"center.lat":t.lat,"projection.rotation.lon":n.lon},aC.extendFlat(this.viewInitial,i)};$g.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};$g._render=function(){var e=this.projection,t=e.getPath(),r;function n(a){var o=e(a.lonlat);return o?uzt(o[0],o[1]):null}function i(a){return e.isLonLatOverEdges(a.lonlat)?"none":null}for(r in this.basePaths)this.basePaths[r].attr("d",t);for(r in this.dataPaths)this.dataPaths[r].attr("d",function(a){return t(a.geojson)});for(r in this.dataPoints)this.dataPoints[r].attr("display",i).attr("transform",n)};function mzt(e){var t=e.projection,r=t.type,n=cp.projNames[r];n="geo"+aC.titleCase(n);for(var i=BZ[n]||szt[n],a=i(),o=e._isSatellite?Math.acos(1/t.distance)*180/Math.PI:e._isClipped?cp.lonaxisSpan[r]/2:null,s=["center","rotate","parallels","clipExtent"],l=function(f){return f?a:[]},u=0;uv}else return!1},a.getPath=function(){return azt().projection(a)},a.getBounds=function(f){return a.getPath().bounds(f)},a.precision(cp.precision),e._isSatellite&&a.tilt(t.tilt).distance(t.distance),o&&a.clipAngle(o-cp.clipPad),a}function yzt(e,t,r){var n=1e-6,i=2.5,a=t[e],o=cp.scopeDefaults[t.scope],s,l,u;e==="lonaxis"?(s=o.lonaxisRange,l=o.lataxisRange,u=function(C,E){return[C,E]}):e==="lataxis"&&(s=o.lataxisRange,l=o.lonaxisRange,u=function(C,E){return[E,C]});var c={type:"linear",range:[s[0],s[1]-n],tick0:a.tick0,dtick:a.dtick};qZ.setConvert(c,r);var f=qZ.calcTicks(c);!t.isScoped&&e==="lonaxis"&&f.pop();for(var h=f.length,d=new Array(h),v=0;v0&&i<0&&(i+=360);var s=(i-n)/4;return{type:"Polygon",coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}});var NZ=ye((ggr,kDe)=>{"use strict";var KA=Eh(),_zt=kc().attributes,xzt=Pd().dash,YA=eC(),bzt=mc().overrideAll,EDe=Y1(),CDe={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:KA.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:xzt},wzt=kDe.exports=bzt({domain:_zt({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:EDe(YA.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:EDe(YA.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:KA.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:YA.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:YA.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:YA.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:YA.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:KA.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:KA.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:KA.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:KA.background},lonaxis:CDe,lataxis:CDe},"plot","from-root");wzt.uirevision={valType:"any",editType:"none"}});var IDe=ye((mgr,PDe)=>{"use strict";var kF=Dr(),Tzt=k_(),Azt=Id().getSubplotData,LF=eC(),Szt=NZ(),LDe=LF.axesNames;PDe.exports=function(t,r,n){Tzt(t,r,n,{type:"geo",attributes:Szt,handleDefaults:Mzt,fullData:n,partition:"y"})};function Mzt(e,t,r,n){var i=Azt(n.fullData,"geo",n.id),a=i.map(function(oe){return oe.index}),o=r("resolution"),s=r("scope"),l=LF.scopeDefaults[s],u=r("projection.type",l.projType),c=t._isAlbersUsa=u==="albers usa";c&&(s=t.scope="usa");var f=t._isScoped=s!=="world",h=t._isSatellite=u==="satellite",d=t._isConic=u.indexOf("conic")!==-1||u==="albers",v=t._isClipped=!!LF.lonaxisSpan[u];if(e.visible===!1){var _=kF.extendDeep({},t._template);_.showcoastlines=!1,_.showcountries=!1,_.showframe=!1,_.showlakes=!1,_.showland=!1,_.showocean=!1,_.showrivers=!1,_.showsubunits=!1,_.lonaxis&&(_.lonaxis.showgrid=!1),_.lataxis&&(_.lataxis.showgrid=!1),t._template=_}for(var b=r("visible"),p,C=0;C0&&O<0&&(O+=360);var V=(z+O)/2,G;if(!c){var Z=f?l.projRotate:[V,0,0];G=r("projection.rotation.lon",Z[0]),r("projection.rotation.lat",Z[1]),r("projection.rotation.roll",Z[2]),p=r("showcoastlines",!f&&b),p&&(r("coastlinecolor"),r("coastlinewidth")),p=r("showocean",b?void 0:!1),p&&r("oceancolor")}var H,N;if(c?(H=-96.6,N=38.7):(H=f?V:G,N=(T[0]+T[1])/2),r("center.lon",H),r("center.lat",N),h&&(r("projection.tilt"),r("projection.distance")),d){var j=l.projParallels||[0,60];r("projection.parallels",j)}r("projection.scale"),p=r("showland",b?void 0:!1),p&&r("landcolor"),p=r("showlakes",b?void 0:!1),p&&r("lakecolor"),p=r("showrivers",b?void 0:!1),p&&(r("rivercolor"),r("riverwidth")),p=r("showcountries",f&&s!=="usa"&&b),p&&(r("countrycolor"),r("countrywidth")),(s==="usa"||s==="north america"&&o===50)&&(r("showsubunits",b),r("subunitcolor"),r("subunitwidth")),f||(p=r("showframe",b),p&&(r("framecolor"),r("framewidth"))),r("bgcolor");var re=r("fitbounds");re&&(delete t.projection.scale,f?(delete t.center.lon,delete t.center.lat):v?(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon,delete t.projection.rotation.lat,delete t.lonaxis.range,delete t.lataxis.range):(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon))}});var UZ=ye((ygr,FDe)=>{"use strict";var Ezt=Id().getSubplotCalcData,Czt=Dr().counterRegex,kzt=MDe(),Wm="geo",RDe=Czt(Wm),DDe={};DDe[Wm]={valType:"subplotid",dflt:Wm,editType:"calc"};function Lzt(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[Wm],i=0;i{"use strict";zDe.exports={attributes:G2(),supplyDefaults:mRe(),colorbar:$d(),formatLabels:xRe(),calc:cF(),calcGeoJSON:kZ().calcGeoJSON,plot:kZ().plot,style:SZ(),styleOnSelect:ap().styleOnSelect,hoverPoints:aDe(),eventData:sDe(),selectPoints:cDe(),moduleType:"trace",name:"scattergeo",basePlotModule:UZ(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var BDe=ye((xgr,qDe)=>{"use strict";qDe.exports=ODe()});var JA=ye((bgr,VDe)=>{"use strict";var Rzt=Qo().hovertemplateAttrs,ox=G2(),Dzt=Tu(),NDe=Vl(),Fzt=Eh().defaultLine,ax=Ao().extendFlat,UDe=ox.marker.line;VDe.exports=ax({locations:{valType:"data_array",editType:"calc"},locationmode:ox.locationmode,z:{valType:"data_array",editType:"calc"},geojson:ax({},ox.geojson,{}),featureidkey:ox.featureidkey,text:ax({},ox.text,{}),hovertext:ax({},ox.hovertext,{}),marker:{line:{color:ax({},UDe.color,{dflt:Fzt}),width:ax({},UDe.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:ox.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:ox.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:ax({},NDe.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:Rzt(),showlegend:ax({},NDe.showlegend,{dflt:!1})},Dzt("",{cLetter:"z",editTypeOverride:"calc"}))});var HDe=ye((wgr,GDe)=>{"use strict";var PF=Dr(),zzt=Jh(),Ozt=JA();GDe.exports=function(t,r,n,i){function a(h,d){return PF.coerce(t,r,Ozt,h,d)}var o=a("locations"),s=a("z");if(!(o&&o.length&&PF.isArrayOrTypedArray(s)&&s.length)){r.visible=!1;return}r._length=Math.min(o.length,s.length);var l=a("geojson"),u;(typeof l=="string"&&l!==""||PF.isPlainObject(l))&&(u="geojson-id");var c=a("locationmode",u);c==="geojson-id"&&a("featureidkey"),a("text"),a("hovertext"),a("hovertemplate");var f=a("marker.line.width");f&&a("marker.line.color"),a("marker.opacity"),zzt(t,r,i,a,{prefix:"",cLetter:"z"}),PF.coerceSelectionMarkerOpacity(r,a)}});var IF=ye((Tgr,XDe)=>{"use strict";var jDe=Eo(),qzt=hs().BADNUM,Bzt=Fv(),Nzt=Cm(),Uzt=z0();function WDe(e){return e&&typeof e=="string"}XDe.exports=function(t,r){var n=r._length,i=new Array(n),a;r.geojson?a=function(c){return WDe(c)||jDe(c)}:a=WDe;for(var o=0;o{"use strict";var Vzt=Oa(),Gzt=Ca(),VZ=So(),Hzt=tc();function jzt(e,t){t&&ZDe(e,t)}function ZDe(e,t){var r=t[0].trace,n=t[0].node3,i=n.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=Hzt.makeColorScaleFuncFromTrace(r);i.each(function(l){Vzt.select(this).attr("fill",s(l.z)).call(Gzt.stroke,l.mlc||o.color).call(VZ.dashLine,"",l.mlw||o.width||0).style("opacity",a.opacity)}),VZ.selectedPointStyle(i,r)}function Wzt(e,t){var r=t[0].node3,n=t[0].trace;n.selectedpoints?VZ.selectedPointStyle(r.selectAll(".choroplethlocation"),n):ZDe(e,t)}YDe.exports={style:jzt,styleOnSelect:Wzt}});var GZ=ye((Sgr,$De)=>{"use strict";var Xzt=Oa(),KDe=Dr(),$A=nx(),Zzt=hF().getTopojsonFeatures,JDe=wg().findExtremes,Yzt=RF().style;function Kzt(e,t,r){var n=t.layers.backplot.select(".choroplethlayer");KDe.makeTraceGroups(n,r,"trace choropleth").each(function(i){var a=Xzt.select(this),o=a.selectAll("path.choroplethlocation").data(KDe.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),Yzt(e,i)})}function Jzt(e,t){for(var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r.locationmode,o=r._length,s=a==="geojson-id"?$A.extractTraceFeature(e):Zzt(r,i.topojson),l=[],u=[],c=0;c{"use strict";var $zt=ho(),Qzt=JA(),e7t=Dr().fillText;QDe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s,l,u,c,f=[r,n],h=[r+360,n];for(l=0;l")}}});var FF=ye((Egr,eFe)=>{"use strict";eFe.exports=function(t,r,n,i,a){t.location=r.location,t.z=r.z;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t.ct=o.ct,t}});var zF=ye((Cgr,tFe)=>{"use strict";tFe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l,u,c,f;if(r===!1)for(s=0;s{"use strict";rFe.exports={attributes:JA(),supplyDefaults:HDe(),colorbar:M_(),calc:IF(),calcGeoJSON:GZ().calcGeoJSON,plot:GZ().plot,style:RF().style,styleOnSelect:RF().styleOnSelect,hoverPoints:DF(),eventData:FF(),selectPoints:zF(),moduleType:"trace",name:"choropleth",basePlotModule:UZ(),categories:["geo","noOpacity","showLegend"],meta:{}}});var aFe=ye((Lgr,nFe)=>{"use strict";nFe.exports=iFe()});var OF=ye((Pgr,sFe)=>{"use strict";var r7t=qa(),s0=Dr(),i7t=oT();function n7t(e,t,r,n){var i=e.cd,a=i[0].t,o=i[0].trace,s=e.xa,l=e.ya,u=a.x,c=a.y,f=s.c2p(t),h=l.c2p(r),d=e.distance,v;if(a.tree){var _=s.p2c(f-d),b=s.p2c(f+d),p=l.p2c(h-d),C=l.p2c(h+d);n==="x"?v=a.tree.range(Math.min(_,b),Math.min(l._rl[0],l._rl[1]),Math.max(_,b),Math.max(l._rl[0],l._rl[1])):v=a.tree.range(Math.min(_,b),Math.min(p,C),Math.max(_,b),Math.max(p,C))}else v=a.ids;var E,A,L,x,k,M,g,P,T,z=d;if(n==="x"){var O=!!o.xperiodalignment,V=!!o.yperiodalignment;for(k=0;k=Math.min(G,Z)&&f<=Math.max(G,Z)?0:1/0}if(M=Math.min(H,N)&&h<=Math.max(H,N)?0:1/0}T=Math.sqrt(M*M+g*g),A=v[k]}}}else for(k=v.length-1;k>-1;k--)E=v[k],L=u[E],x=c[E],M=s.c2p(L)-f,g=l.c2p(x)-h,P=Math.sqrt(M*M+g*g),P{"use strict";var lFe=20;uFe.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:lFe,SYMBOL_STROKE:lFe/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}});var oC=ye((Rgr,dFe)=>{"use strict";var a7t=Vl(),o7t=ec(),s7t=Eg(),qf=pf(),cFe=df().axisHoverFormat,fFe=Tu(),l7t=Y1(),HZ=Ao().extendFlat,u7t=mc().overrideAll,c7t=sx().DASHES,hFe=qf.line,r1=qf.marker,f7t=r1.line,QA=dFe.exports=u7t({x:qf.x,x0:qf.x0,dx:qf.dx,y:qf.y,y0:qf.y0,dy:qf.dy,xperiod:qf.xperiod,yperiod:qf.yperiod,xperiod0:qf.xperiod0,yperiod0:qf.yperiod0,xperiodalignment:qf.xperiodalignment,yperiodalignment:qf.yperiodalignment,xhoverformat:cFe("x"),yhoverformat:cFe("y"),text:qf.text,hovertext:qf.hovertext,textposition:qf.textposition,textfont:o7t({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:hFe.color,width:hFe.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:l7t(c7t),dflt:"solid"}},marker:HZ({},fFe("marker"),{symbol:r1.symbol,angle:r1.angle,size:r1.size,sizeref:r1.sizeref,sizemin:r1.sizemin,sizemode:r1.sizemode,opacity:r1.opacity,colorbar:r1.colorbar,line:HZ({},fFe("marker.line"),{width:f7t.width})}),connectgaps:qf.connectgaps,fill:HZ({},qf.fill,{dflt:"none"}),fillcolor:s7t(),selected:{marker:qf.selected.marker,textfont:qf.selected.textfont},unselected:{marker:qf.unselected.marker,textfont:qf.unselected.textfont},opacity:a7t.opacity},"calc","nested");QA.x.editType=QA.y.editType=QA.x0.editType=QA.y0.editType="calc+clearAxisTypes";QA.hovertemplate=qf.hovertemplate;QA.texttemplate=qf.texttemplate});var qF=ye(jZ=>{"use strict";var vFe=sx();jZ.isOpenSymbol=function(e){return typeof e=="string"?vFe.OPEN_RE.test(e):e%200>100};jZ.isDotSymbol=function(e){return typeof e=="string"?vFe.DOT_RE.test(e):e>200}});var mFe=ye((Fgr,gFe)=>{"use strict";var pFe=Dr(),h7t=qa(),d7t=qF(),v7t=oC(),p7t=Sm(),BF=Ru(),g7t=K3(),m7t=Pg(),y7t=$p(),_7t=R0(),x7t=Ig(),b7t=D0();gFe.exports=function(t,r,n,i){function a(d,v){return pFe.coerce(t,r,v7t,d,v)}var o=t.marker?d7t.isOpenSymbol(t.marker.symbol):!1,s=BF.isBubble(t),l=g7t(t,r,i,a);if(!l){r.visible=!1;return}m7t(t,r,i,a),a("xhoverformat"),a("yhoverformat");var u=l{"use strict";var w7t=eI();yFe.exports=function(t,r,n){var i=t.i;return"x"in t||(t.x=r._x[i]),"y"in t||(t.y=r._y[i]),w7t(t,r,n)}});var bFe=ye((Ogr,xFe)=>{"use strict";function T7t(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l>=0?(a=o,i=o-1):n=o+1}return a}function A7t(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l>0?(a=o,i=o-1):n=o+1}return a}function S7t(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l<0?(a=o,n=o+1):i=o-1}return a}function M7t(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l<=0?(a=o,n=o+1):i=o-1}return a}function E7t(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],s=r!==void 0?r(o,t):o-t;if(s===0)return a;s<=0?n=a+1:i=a-1}return-1}function sC(e,t,r,n,i,a){return typeof r=="function"?a(e,t,r,n===void 0?0:n|0,i===void 0?e.length-1:i|0):a(e,t,void 0,r===void 0?0:r|0,n===void 0?e.length-1:n|0)}xFe.exports={ge:function(e,t,r,n,i){return sC(e,t,r,n,i,T7t)},gt:function(e,t,r,n,i){return sC(e,t,r,n,i,A7t)},lt:function(e,t,r,n,i){return sC(e,t,r,n,i,S7t)},le:function(e,t,r,n,i){return sC(e,t,r,n,i,M7t)},eq:function(e,t,r,n,i){return sC(e,t,r,n,i,E7t)}}});var Xm=ye((qgr,TFe)=>{"use strict";TFe.exports=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=wFe(r)),Array.isArray(r)){var s={};for(o=0;o{"use strict";var C7t=Xm();AFe.exports=k7t;function k7t(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=C7t(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}});var j2=ye((Ngr,SFe)=>{"use strict";SFe.exports=L7t;function L7t(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;ni&&(i=e[o]),e[o]{MFe.exports=function(){for(var e=0;e{var CFe=jD();kFe.exports=P7t;function P7t(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,o,s,l;(!t||typeof t=="string")&&(t=new(CFe(t||"float32"))(i+r));var u=t.length-r;if(i!==u)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+u);for(a=0,s=r;a{"use strict";LFe.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var RFe=ye((Hgr,IFe)=>{"use strict";IFe.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var NFe=ye((jgr,BFe)=>{"use strict";var DFe=bFe(),FFe=XE(),I7t=e5(),R7t=j2(),zFe=Xm(),XZ=EFe(),D7t=W2(),F7t=PFe(),z7t=jD(),OFe=RFe(),O7t=1073741824;BFe.exports=function(t,r){r||(r={}),t=D7t(t,"float64"),r=zFe(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=XZ(r.maxDepth,255),i=XZ(r.bounds,R7t(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=qFe(t,i),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(z7t(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let p=0;pn||x>O7t){for(let N=0;N_e||g>Me||P=z||re===oe)return;let ke=l[j];oe===void 0&&(oe=ke.length);for(let Fe=re;Fe=A&&Ye<=x&&ct>=L&&ct<=k&&O.push(ce)}let me=u[j],ie=me[re*4+0],Se=me[re*4+1],Le=me[re*4+2],Ae=me[re*4+3],De=G(me,re+1),Pe=N*.5,ge=j+1;V(Z,H,Pe,ge,ie,Se||Le||Ae||De),V(Z,H+Pe,Pe,ge,Se,Le||Ae||De),V(Z+Pe,H,Pe,ge,Le,Ae||De),V(Z+Pe,H+Pe,Pe,ge,Ae,De)}function G(Z,H){let N=null,j=0;for(;N===null;)if(N=Z[H*4+j],j++,j>Z.length)return null;return N}return O}function _(p,C,E,A,L){let x=[];for(let k=0;k{"use strict";UFe.exports=NFe()});var ZZ=ye((Xgr,VFe)=>{VFe.exports=q7t;function q7t(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],s=o.toUpperCase();if(o!=s)switch(a[0]=s,o){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var l=1;l{"use strict";Object.defineProperty(UF,"__esModule",{value:!0});var B7t=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var s=t[Symbol.iterator](),l;!(i=(l=s.next()).done)&&(n.push(l.value),!(r&&n.length===r));i=!0);}catch(u){a=!0,o=u}finally{try{!i&&s.return&&s.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),lC=Math.PI*2,YZ=function(t,r,n,i,a,o,s){var l=t.x,u=t.y;l*=r,u*=n;var c=i*l-a*u,f=a*l+i*u;return{x:c+o,y:f+s}},N7t=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),s=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+s*n,y:s-o*n},{x:o,y:s}]},GFe=function(t,r,n,i){var a=t*i-r*n<0?-1:1,o=t*n+r*i;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},U7t=function(t,r,n,i,a,o,s,l,u,c,f,h){var d=Math.pow(a,2),v=Math.pow(o,2),_=Math.pow(f,2),b=Math.pow(h,2),p=d*v-d*b-v*_;p<0&&(p=0),p/=d*b+v*_,p=Math.sqrt(p)*(s===l?-1:1);var C=p*a/o*h,E=p*-o/a*f,A=c*C-u*E+(t+n)/2,L=u*C+c*E+(r+i)/2,x=(f-C)/a,k=(h-E)/o,M=(-f-C)/a,g=(-h-E)/o,P=GFe(1,0,x,k),T=GFe(x,k,M,g);return l===0&&T>0&&(T-=lC),l===1&&T<0&&(T+=lC),[A,L,P,T]},V7t=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,s=t.ry,l=t.xAxisRotation,u=l===void 0?0:l,c=t.largeArcFlag,f=c===void 0?0:c,h=t.sweepFlag,d=h===void 0?0:h,v=[];if(o===0||s===0)return[];var _=Math.sin(u*lC/360),b=Math.cos(u*lC/360),p=b*(r-i)/2+_*(n-a)/2,C=-_*(r-i)/2+b*(n-a)/2;if(p===0&&C===0)return[];o=Math.abs(o),s=Math.abs(s);var E=Math.pow(p,2)/Math.pow(o,2)+Math.pow(C,2)/Math.pow(s,2);E>1&&(o*=Math.sqrt(E),s*=Math.sqrt(E));var A=U7t(r,n,i,a,o,s,f,d,_,b,p,C),L=B7t(A,4),x=L[0],k=L[1],M=L[2],g=L[3],P=Math.abs(g)/(lC/4);Math.abs(1-P)<1e-7&&(P=1);var T=Math.max(Math.ceil(P),1);g/=T;for(var z=0;z{"use strict";XFe.exports=H7t;var G7t=jFe();function H7t(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,l=null,u=0,c=0,f=0,h=e.length;f4?(n=d[d.length-4],i=d[d.length-3]):(n=u,i=c),r.push(d)}return r}function VF(e,t,r,n){return["C",e,t,r,n,r,n]}function WFe(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}});var KZ=ye((Ygr,YFe)=>{"use strict";YFe.exports=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}});var $Fe=ye((Kgr,JFe)=>{"use strict";var j7t=$S(),W7t=ZZ(),X7t=ZFe(),Z7t=KZ(),KFe=oE();JFe.exports=Y7t;function Y7t(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&(KFe(Z7t(e),"String is not an SVG path."),e=j7t(e)),KFe(Array.isArray(e),"Argument should be a string or an array of path segments."),e=W7t(e),e=X7t(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,n=e.length;rt[2]&&(t[2]=i[a+0]),i[a+1]>t[3]&&(t[3]=i[a+1]);return t}});var nze=ye((Jgr,ize)=>{var X2=Math.PI,QFe=rze(120);ize.exports=K7t;function K7t(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,l=null,u=0,c=0,f=0,h=e.length;f7&&(r.push(d.splice(0,7)),d.unshift("C"));break;case"S":var _=u,b=c;(t=="C"||t=="S")&&(_+=_-n,b+=b-i),d=["C",_,b,d[1],d[2],d[3],d[4]];break;case"T":t=="Q"||t=="T"?(s=u*2-s,l=c*2-l):(s=u,l=c),d=eze(u,c,s,l,d[1],d[2]);break;case"Q":s=d[1],l=d[2],d=eze(u,c,d[1],d[2],d[3],d[4]);break;case"L":d=GF(u,c,d[1],d[2]);break;case"H":d=GF(u,c,d[1],c);break;case"V":d=GF(u,c,u,d[1]);break;case"Z":d=GF(u,c,a,o);break}t=v,u=d[d.length-2],c=d[d.length-1],d.length>4?(n=d[d.length-4],i=d[d.length-3]):(n=u,i=c),r.push(d)}return r}function GF(e,t,r,n){return["C",e,t,r,n,r,n]}function eze(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function tze(e,t,r,n,i,a,o,s,l,u){if(u)E=u[0],A=u[1],p=u[2],C=u[3];else{var c=JZ(e,t,-i);e=c.x,t=c.y,c=JZ(s,l,-i),s=c.x,l=c.y;var f=(e-s)/2,h=(t-l)/2,d=f*f/(r*r)+h*h/(n*n);d>1&&(d=Math.sqrt(d),r=d*r,n=d*n);var v=r*r,_=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((v*_-v*h*h-_*f*f)/(v*h*h+_*f*f)));b==1/0&&(b=1);var p=b*r*h/n+(e+s)/2,C=b*-n*f/r+(t+l)/2,E=Math.asin(((t-C)/n).toFixed(9)),A=Math.asin(((l-C)/n).toFixed(9));E=eA&&(E=E-X2*2),!o&&A>E&&(A=A-X2*2)}if(Math.abs(A-E)>QFe){var L=A,x=s,k=l;A=E+QFe*(o&&A>E?1:-1),s=p+r*Math.cos(A),l=C+n*Math.sin(A);var M=tze(s,l,r,n,i,0,o,x,k,[A,L,p,C])}var g=Math.tan((A-E)/4),P=4/3*r*g,T=4/3*n*g,z=[2*e-(e+P*Math.sin(E)),2*t-(t-T*Math.cos(E)),s+P*Math.sin(A),l-T*Math.cos(A),s,l];if(u)return z;M&&(z=z.concat(M));for(var O=0;O{var J7t=ZZ(),$7t=nze(),Q7t={M:"moveTo",C:"bezierCurveTo"};aze.exports=function(e,t){e.beginPath(),$7t(J7t(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[Q7t[n]].apply(e,i)}),e.closePath()}});var cze=ye((Qgr,uze)=>{"use strict";var e9t=XE();uze.exports=t9t;var uC=1e20;function t9t(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,o,s,l,u,c,f,h,d,v,_;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,l=e,t.stride?c=t.stride:c=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(h=e,f=h.getContext("2d"),a=h.width,o=h.height,d=f.getImageData(0,0,a,o),l=d.data,c=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(h=e.canvas,f=e,a=h.width,o=h.height,d=f.getImageData(0,0,a,o),l=d.data,c=4):window.ImageData&&e instanceof window.ImageData&&(d=e,a=e.width,o=e.height,l=d.data,c=4);if(s=Math.max(a,o),window.Uint8ClampedArray&&l instanceof window.Uint8ClampedArray||window.Uint8Array&&l instanceof window.Uint8Array)for(u=l,l=Array(a*o),v=0,_=u.length;v<_;v++)l[v]=u[v*c+i]/255;else if(c!==1)throw Error("Raw data can have only 1 value per pixel");var b=Array(a*o),p=Array(a*o),C=Array(s),E=Array(s),A=Array(s+1),L=Array(s);for(v=0,_=a*o;v<_;v++){var x=l[v];b[v]=x===1?0:x===0?uC:Math.pow(Math.max(0,.5-x),2),p[v]=x===1?uC:x===0?0:Math.pow(Math.max(0,x-.5),2)}sze(b,a,o,C,E,L,A),sze(p,a,o,C,E,L,A);var k=window.Float32Array?new Float32Array(a*o):new Array(a*o);for(v=0,_=a*o;v<_;v++)k[v]=e9t(1-((b[v]-p[v])/n+r),0,1);return k}function sze(e,t,r,n,i,a,o){for(var s=0;s{"use strict";var r9t=$Fe(),i9t=$S(),n9t=oze(),a9t=KZ(),o9t=cze(),$Z=document.createElement("canvas"),fp=$Z.getContext("2d");fze.exports=s9t;function s9t(e,t){if(!a9t(e))throw Error("Argument should be valid svg path string");t||(t={});var r,n;t.shape?(r=t.shape[0],n=t.shape[1]):(r=$Z.width=t.w||t.width||200,n=$Z.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||r9t(e),s=[r/(o[2]-o[0]),n/(o[3]-o[1])],l=Math.min(s[0]||0,s[1]||0)/2;if(fp.fillStyle="black",fp.fillRect(0,0,r,n),fp.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?fp.strokeStyle="white":fp.strokeStyle="black",fp.lineWidth=Math.abs(a)),fp.translate(r*.5,n*.5),fp.scale(l,l),l9t()){var u=new Path2D(e);fp.fill(u),a&&fp.stroke(u)}else{var c=i9t(e);n9t(fp,c),fp.fill(),a&&fp.stroke()}fp.setTransform(1,0,0,1,0,0);var f=o9t(fp,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return f}var HF;function l9t(){if(HF!=null)return HF;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return HF=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return HF=r&&r.data&&r.data[3]===255}});var Y2=ye((tmr,Tze)=>{"use strict";var WF=Eo(),u9t=hze(),jF=$_(),c9t=qa(),i5=Dr(),gh=i5.isArrayOrTypedArray,t5=So(),dze=hf(),vze=$y().formatColor,r5=Ru(),f9t=S3(),eY=qF(),cC=sx(),h9t=U1().DESELECTDIM,pze={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},d9t=rp().appendArrayPointValue;function v9t(e,t){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},i=e._context.plotGlPixelRatio;if(t.visible!==!0)return n;if(r5.hasText(t)&&(n.text=wze(e,t),n.textSel=mze(e,t,t.selected),n.textUnsel=mze(e,t,t.unselected)),r5.hasMarkers(t)&&(n.marker=rY(e,t),n.markerSel=tY(e,t,t.selected),n.markerUnsel=tY(e,t,t.unselected),!t.unselected&&gh(t.marker.opacity))){var a=t.marker.opacity;for(n.markerUnsel.opacity=new Array(a.length),r=0;r500?"bold":"normal":e}function rY(e,t){var r=t._length,n=t.marker,i={},a,o=gh(n.symbol),s=gh(n.angle),l=gh(n.color),u=gh(n.line.color),c=gh(n.opacity),f=gh(n.size),h=gh(n.line.width),d;if(o||(d=eY.isOpenSymbol(n.symbol)),o||l||u||c||s){i.symbols=new Array(r),i.angles=new Array(r),i.colors=new Array(r),i.borderColors=new Array(r);var v=n.symbol,_=n.angle,b=vze(n,n.opacity,r),p=vze(n.line,n.opacity,r);if(!gh(p[0])){var C=p;for(p=Array(r),a=0;acC.TOO_MANY_POINTS||r5.hasMarkers(t)?"rect":"round";if(u&&t.connectgaps){var f=a[0],h=a[1];for(o=0;o1?l[o]:l[0]:l,d=gh(u)?u.length>1?u[o]:u[0]:u,v=pze[h],_=pze[d],b=c?c/.8+1:0,p=-_*b-_*.5;a.offset[o]=[v*b/f,p/f]}}return a}Tze.exports={style:v9t,markerStyle:rY,markerSelection:tY,linePositions:g9t,errorBarPositions:m9t,textPosition:y9t}});var iY=ye((rmr,Aze)=>{"use strict";var XF=Dr();Aze.exports=function(t,r){var n=r._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return r._scene||(n=r._scene={},n.init=function(){XF.extendFlat(n,a,i)},n.init(),n.update=function(s){var l=XF.repeat(s,n.count);if(n.fill2d&&n.fill2d.update(l),n.scatter2d&&n.scatter2d.update(l),n.line2d&&n.line2d.update(l),n.error2d&&n.error2d.update(l.concat(l)),n.select2d&&n.select2d.update(l),n.glText)for(var u=0;u{"use strict";var _9t=NF(),n5=Dr(),Sze=hf(),x9t=wg().findExtremes,Mze=Rg(),nY=O0(),b9t=nY.calcMarkerSize,w9t=nY.calcAxisExpansion,T9t=nY.setFirstScatter,A9t=F0(),a5=Y2(),S9t=iY(),Eze=hs().BADNUM,M9t=sx().TOO_MANY_POINTS;kze.exports=function(t,r){var n=t._fullLayout,i=r._xA=Sze.getFromId(t,r.xaxis,"x"),a=r._yA=Sze.getFromId(t,r.yaxis,"y"),o=n._plots[r.xaxis+r.yaxis],s=r._length,l=s>=M9t,u=s*2,c={},f,h=i.makeCalcdata(r,"x"),d=a.makeCalcdata(r,"y"),v=Mze(r,i,"x",h),_=Mze(r,a,"y",d),b=v.vals,p=_.vals;r._x=b,r._y=p,r.xperiodalignment&&(r._origX=h,r._xStarts=v.starts,r._xEnds=v.ends),r.yperiodalignment&&(r._origY=d,r._yStarts=_.starts,r._yEnds=_.ends);var C=new Array(u),E=new Array(s);for(f=0;f1&&n5.extendFlat(o.line,a5.linePositions(e,r,n)),o.errorX||o.errorY){var s=a5.errorBarPositions(e,r,n,i,a);o.errorX&&n5.extendFlat(o.errorX,s.x),o.errorY&&n5.extendFlat(o.errorY,s.y)}return o.text&&(n5.extendFlat(o.text,{positions:n},a5.textPosition(e,r,o.text,o.marker)),n5.extendFlat(o.textSel,{positions:n},a5.textPosition(e,r,o.text,o.markerSel)),n5.extendFlat(o.textUnsel,{positions:n},a5.textPosition(e,r,o.text,o.markerUnsel))),o}});var aY=ye((nmr,Ize)=>{"use strict";var Pze=Dr(),C9t=Ca(),k9t=U1().DESELECTDIM;function L9t(e){var t=e[0],r=t.trace,n=t.t,i=n._scene,a=n.index,o=i.selectBatch[a],s=i.unselectBatch[a],l=i.textOptions[a],u=i.textSelectedOptions[a]||{},c=i.textUnselectedOptions[a]||{},f=Pze.extendFlat({},l),h,d;if(o.length||s.length){var v=u.color,_=c.color,b=l.color,p=Pze.isArrayOrTypedArray(b);for(f.color=new Array(r._length),h=0;h{"use strict";var Rze=Ru(),P9t=aY().styleTextSelection;Dze.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l=n[0].t,u=s._length,c=l.x,f=l.y,h=l._scene,d=l.index;if(!h)return o;var v=Rze.hasText(s),_=Rze.hasMarkers(s),b=!_&&!v;if(s.visible!==!0||b)return o;var p=[],C=[];if(r!==!1&&!r.degenerate)for(var E=0;E{"use strict";var I9t=OF();Fze.exports={moduleType:"trace",name:"scattergl",basePlotModule:vh(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:oC(),supplyDefaults:mFe(),crossTraceDefaults:rU(),colorbar:$d(),formatLabels:_Fe(),calc:Lze(),hoverPoints:I9t.hoverPoints,selectPoints:oY(),meta:{}}});var qze=ye((smr,YF)=>{"use strict";var ZF=XE();YF.exports=Oze;YF.exports.to=Oze;YF.exports.from=R9t;function Oze(e,t){t==null&&(t=!0);var r=e[0],n=e[1],i=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,n*=255,i*=255,a*=255),r=ZF(r,0,255)&255,n=ZF(n,0,255)&255,i=ZF(i,0,255)&255,a=ZF(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function R9t(e,t){e=+e;var r=e>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=e&255;return t===!1?[r,n,i,a]:[r/255,n/255,i/255,a/255]}});var Fh=ye((lmr,Nze)=>{"use strict";var Bze=Object.getOwnPropertySymbols,D9t=Object.prototype.hasOwnProperty,F9t=Object.prototype.propertyIsEnumerable;function z9t(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function O9t(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}Nze.exports=O9t()?Object.assign:function(e,t){for(var r,n=z9t(e),i,a=1;a{Uze.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n{"use strict";Gze.exports=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i{"use strict";Hze.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var KF=ye((hmr,o5)=>{"use strict";o5.exports=fC;o5.exports.float32=o5.exports.float=fC;o5.exports.fract32=o5.exports.fract=q9t;var Wze=new Float32Array(1);function q9t(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=fC(e));for(var r=0,n=t.length;r{"use strict";function B9t(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function N9t(e,t){return G9t(e)||B9t(e,t)||Zze(e,t)||W9t()}function U9t(e){return V9t(e)||H9t(e)||Zze(e)||j9t()}function V9t(e){if(Array.isArray(e))return lY(e)}function G9t(e){if(Array.isArray(e))return e}function H9t(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zze(e,t){if(e){if(typeof e=="string")return lY(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lY(e,t)}}function lY(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rre)?N.tree=j9t(H,{bounds:me}):re&&re.length&&(N.tree=re),N.tree){var ie={primitive:"points",usage:"static",data:N.tree,type:"uint32"};N.elements?N.elements(ie):N.elements=o.elements(ie)}var Se=$F.float32(H);oe({data:Se,usage:"dynamic"});var Le=$F.fract32(H,Se);return _e({data:Le,usage:"dynamic"}),Me({data:new Uint8Array(ke),type:"uint8",usage:"stream"}),H}},{marker:function(H,N,j){var re=N.activation;if(re.forEach(function(Le){return Le&&Le.destroy&&Le.destroy()}),re.length=0,!H||typeof H[0]=="number"){var oe=e.addMarker(H);re[oe]=!0}else{for(var _e=[],Me=0,ke=Math.min(H.length,N.count);Me=0)return i;var a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(var o=0,s=e.length;on*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};nv.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,r=this.paletteTexture,n=Math.ceil(e.length*.25/t);if(n>1){e=e.slice();for(var i=e.length*.25%t;i{"use strict";hY.exports=tz;hY.exports.default=tz;function tz(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=Kze(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var s,l,u,c,f,h,d;if(n&&(a=iOt(e,t,a,r)),e.length>80*r){s=u=e[0],l=c=e[1];for(var v=r;vu&&(u=f),h>c&&(c=h);d=Math.max(u-s,c-l),d=d!==0?32767/d:0}return uC(a,o,r,s,l,d,0),o}function Kze(e,t,r,n,i){var a,o;if(i===fY(e,t,r,n)>0)for(a=t;a=t;a-=n)o=Yze(a,e[a],e[a+1],o);return o&&rz(o,o.next)&&(fC(o),o=o.next),o}function J2(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(rz(r,r.next)||mh(r.prev,r,r.next)===0)){if(fC(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function uC(e,t,r,n,i,a,o){if(e){!o&&a&&lOt(e,n,i,a);for(var s=e,l,u;e.prev!==e.next;){if(l=e.prev,u=e.next,a?eOt(e,n,i,a):Q9t(e)){t.push(l.i/r|0),t.push(e.i/r|0),t.push(u.i/r|0),fC(e),e=u.next,s=u.next;continue}if(e=u,e===s){o?o===1?(e=tOt(J2(e),t,r),uC(e,t,r,n,i,a,2)):o===2&&rOt(e,t,r,n,i,a):uC(J2(e),t,r,n,i,a,1);break}}}}function Q9t(e){var t=e.prev,r=e,n=e.next;if(mh(t,r,n)>=0)return!1;for(var i=t.x,a=r.x,o=n.x,s=t.y,l=r.y,u=n.y,c=ia?i>o?i:o:a>o?a:o,d=s>l?s>u?s:u:l>u?l:u,v=n.next;v!==t;){if(v.x>=c&&v.x<=h&&v.y>=f&&v.y<=d&&s5(i,s,a,l,o,u,v.x,v.y)&&mh(v.prev,v,v.next)>=0)return!1;v=v.next}return!0}function eOt(e,t,r,n){var i=e.prev,a=e,o=e.next;if(mh(i,a,o)>=0)return!1;for(var s=i.x,l=a.x,u=o.x,c=i.y,f=a.y,h=o.y,d=sl?s>u?s:u:l>u?l:u,b=c>f?c>h?c:h:f>h?f:h,p=uY(d,v,t,r,n),C=uY(x,b,t,r,n),E=e.prevZ,A=e.nextZ;E&&E.z>=p&&A&&A.z<=C;){if(E.x>=d&&E.x<=x&&E.y>=v&&E.y<=b&&E!==i&&E!==o&&s5(s,c,l,f,u,h,E.x,E.y)&&mh(E.prev,E,E.next)>=0||(E=E.prevZ,A.x>=d&&A.x<=x&&A.y>=v&&A.y<=b&&A!==i&&A!==o&&s5(s,c,l,f,u,h,A.x,A.y)&&mh(A.prev,A,A.next)>=0))return!1;A=A.nextZ}for(;E&&E.z>=p;){if(E.x>=d&&E.x<=x&&E.y>=v&&E.y<=b&&E!==i&&E!==o&&s5(s,c,l,f,u,h,E.x,E.y)&&mh(E.prev,E,E.next)>=0)return!1;E=E.prevZ}for(;A&&A.z<=C;){if(A.x>=d&&A.x<=x&&A.y>=v&&A.y<=b&&A!==i&&A!==o&&s5(s,c,l,f,u,h,A.x,A.y)&&mh(A.prev,A,A.next)>=0)return!1;A=A.nextZ}return!0}function tOt(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!rz(i,a)&&Jze(i,n,n.next,a)&&cC(i,a)&&cC(a,i)&&(t.push(i.i/r|0),t.push(n.i/r|0),t.push(a.i/r|0),fC(n),fC(n.next),n=e=a),n=n.next}while(n!==e);return J2(n)}function rOt(e,t,r,n,i,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&fOt(o,s)){var l=$ze(o,s);o=J2(o,o.next),l=J2(l,l.next),uC(o,t,r,n,i,a,0),uC(l,t,r,n,i,a,0);return}s=s.next}o=o.next}while(o!==e)}function iOt(e,t,r,n){var i=[],a,o,s,l,u;for(a=0,o=t.length;a=r.next.y&&r.next.y!==r.y){var s=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=n&&s>a&&(a=s,o=r.x=r.x&&r.x>=u&&n!==r.x&&s5(io.x||r.x===o.x&&sOt(o,r)))&&(o=r,f=h)),r=r.next;while(r!==l);return o}function sOt(e,t){return mh(e.prev,e,t.prev)<0&&mh(t.next,e,e.next)<0}function lOt(e,t,r,n){var i=e;do i.z===0&&(i.z=uY(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,uOt(i)}function uOt(e){var t,r,n,i,a,o,s,l,u=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,s=0,t=0;t0||l>0&&n;)s!==0&&(l===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,u*=2}while(o>1);return e}function uY(e,t,r,n,i){return e=(e-r)*i|0,t=(t-n)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function cOt(e){var t=e,r=e;do(t.x=(e-o)*(a-s)&&(e-o)*(n-s)>=(r-o)*(t-s)&&(r-o)*(a-s)>=(i-o)*(n-s)}function fOt(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!hOt(e,t)&&(cC(e,t)&&cC(t,e)&&dOt(e,t)&&(mh(e.prev,e,t.prev)||mh(e,t.prev,t))||rz(e,t)&&mh(e.prev,e,e.next)>0&&mh(t.prev,t,t.next)>0)}function mh(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function rz(e,t){return e.x===t.x&&e.y===t.y}function Jze(e,t,r,n){var i=ez(mh(e,t,r)),a=ez(mh(e,t,n)),o=ez(mh(r,n,e)),s=ez(mh(r,n,t));return!!(i!==a&&o!==s||i===0&&QF(e,r,t)||a===0&&QF(e,n,t)||o===0&&QF(r,e,n)||s===0&&QF(r,t,n))}function QF(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function ez(e){return e>0?1:e<0?-1:0}function hOt(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&Jze(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function cC(e,t){return mh(e.prev,e,e.next)<0?mh(e,t,e.next)>=0&&mh(e,e.prev,t)>=0:mh(e,t,e.prev)<0||mh(e,e.next,t)<0}function dOt(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function $ze(e,t){var r=new cY(e.i,e.x,e.y),n=new cY(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function Yze(e,t,r,n){var i=new cY(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function fC(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function cY(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}tz.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(fY(e,0,a,r));if(i)for(var s=0,l=t.length;s0&&(n+=e[i-1].length,r.holes.push(n))}return r}});var t7e=ye((fmr,e7e)=>{"use strict";var vOt=j2();e7e.exports=pOt;function pOt(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=vOt(e,t));for(var n=0;n{"use strict";r7e.exports=function(){var e,t;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch(r){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(t)!=="one")}});var a7e=ye((dmr,n7e)=>{"use strict";n7e.exports=function(){}});var lx=ye((vmr,o7e)=>{"use strict";var gOt=a7e()();o7e.exports=function(e){return e!==gOt&&e!==null}});var dY=ye((pmr,l7e)=>{"use strict";var mOt=Object.create,yOt=Object.getPrototypeOf,s7e={};l7e.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||mOt;return typeof e!="function"?!1:yOt(e(t(null),s7e))===s7e}});var vY=ye((gmr,u7e)=>{"use strict";var _Ot=lx(),xOt={function:!0,object:!0};u7e.exports=function(e){return _Ot(e)&&xOt[typeof e]||!1}});var i1=ye((mmr,c7e)=>{"use strict";var bOt=lx();c7e.exports=function(e){if(!bOt(e))throw new TypeError("Cannot use null or undefined");return e}});var h7e=ye((ymr,f7e)=>{"use strict";var pY=Object.create,iz;dY()()||(iz=gY());f7e.exports=function(){var e,t,r;return!iz||iz.level!==1?pY:(e={},t={},r={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(n){if(n==="__proto__"){t[n]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}t[n]=r}),Object.defineProperties(e,t),Object.defineProperty(iz,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(n,i){return pY(n===null?e:n,i)})}()});var gY=ye((_mr,d7e)=>{"use strict";var wOt=vY(),TOt=i1(),AOt=Object.prototype.isPrototypeOf,SOt=Object.defineProperty,MOt={configurable:!0,enumerable:!1,writable:!0,value:void 0},nz;nz=function(e,t){if(TOt(e),t===null||wOt(t))return e;throw new TypeError("Prototype must be null or an object")};d7e.exports=function(e){var t,r;return e?(e.level===2?e.set?(r=e.set,t=function(n,i){return r.call(nz(n,i),i),n}):t=function(n,i){return nz(n,i).__proto__=i,n}:t=function n(i,a){var o;return nz(i,a),o=AOt.call(n.nullPolyfill,i),o&&delete n.nullPolyfill.__proto__,a===null&&(a=n.nullPolyfill),i.__proto__=a,o&&SOt(n.nullPolyfill,"__proto__",MOt),i},Object.defineProperty(t,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null}(function(){var e=Object.create(null),t={},r,n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(n){try{r=n.set,r.call(e,t)}catch(i){}if(Object.getPrototypeOf(e)===t)return{set:r,level:2}}return e.__proto__=t,Object.getPrototypeOf(e)===t?{level:2}:(e={},e.__proto__=t,Object.getPrototypeOf(e)===t?{level:1}:!1)}());h7e()});var az=ye((xmr,v7e)=>{"use strict";v7e.exports=dY()()?Object.setPrototypeOf:gY()});var g7e=ye((bmr,p7e)=>{"use strict";var EOt=vY();p7e.exports=function(e){if(!EOt(e))throw new TypeError(e+" is not an Object");return e}});var y7e=ye((wmr,m7e)=>{"use strict";var COt=Object.create(null),kOt=Math.random;m7e.exports=function(){var e;do e=kOt().toString(36).slice(2);while(COt[e]);return e}});var $2=ye((Tmr,_7e)=>{"use strict";var LOt=void 0;_7e.exports=function(e){return e!==LOt&&e!==null}});var oz=ye((Amr,x7e)=>{"use strict";var POt=$2(),IOt={object:!0,function:!0,undefined:!0};x7e.exports=function(e){return POt(e)?hasOwnProperty.call(IOt,typeof e):!1}});var w7e=ye((Smr,b7e)=>{"use strict";var ROt=oz();b7e.exports=function(e){if(!ROt(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(t){return!1}}});var A7e=ye((Mmr,T7e)=>{"use strict";var DOt=w7e();T7e.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(t){return!1}return!DOt(e)}});var mY=ye((Emr,S7e)=>{"use strict";var FOt=A7e(),zOt=/^\s*class[\s{/}]/,OOt=Function.prototype.toString;S7e.exports=function(e){return!(!FOt(e)||zOt.test(OOt.call(e)))}});var E7e=ye((Cmr,M7e)=>{"use strict";M7e.exports=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}});var k7e=ye((kmr,C7e)=>{"use strict";C7e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var P7e=ye((Lmr,L7e)=>{"use strict";var qOt=lx(),BOt=Object.keys;L7e.exports=function(e){return BOt(qOt(e)?Object(e):e)}});var R7e=ye((Pmr,I7e)=>{"use strict";I7e.exports=k7e()()?Object.keys:P7e()});var F7e=ye((Imr,D7e)=>{"use strict";var NOt=R7e(),UOt=i1(),VOt=Math.max;D7e.exports=function(e,t){var r,n,i=VOt(arguments.length,2),a;for(e=Object(UOt(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},n=1;n{"use strict";z7e.exports=E7e()()?Object.assign:F7e()});var yY=ye((Dmr,O7e)=>{"use strict";var GOt=lx(),HOt=Array.prototype.forEach,jOt=Object.create,WOt=function(e,t){var r;for(r in e)t[r]=e[r]};O7e.exports=function(e){var t=jOt(null);return HOt.call(arguments,function(r){GOt(r)&&WOt(Object(r),t)}),t}});var B7e=ye((Fmr,q7e)=>{"use strict";var _Y="razdwatrzy";q7e.exports=function(){return typeof _Y.contains!="function"?!1:_Y.contains("dwa")===!0&&_Y.contains("foo")===!1}});var U7e=ye((zmr,N7e)=>{"use strict";var XOt=String.prototype.indexOf;N7e.exports=function(e){return XOt.call(this,e,arguments[1])>-1}});var xY=ye((Omr,V7e)=>{"use strict";V7e.exports=B7e()()?String.prototype.contains:U7e()});var n1=ye((qmr,W7e)=>{"use strict";var lz=$2(),G7e=mY(),H7e=sz(),j7e=yY(),hC=xY(),ZOt=W7e.exports=function(e,t){var r,n,i,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],lz(e)?(r=hC.call(e,"c"),n=hC.call(e,"e"),i=hC.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?H7e(j7e(a),o):o};ZOt.gs=function(e,t,r){var n,i,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],lz(t)?G7e(t)?lz(r)?G7e(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,lz(e)?(n=hC.call(e,"c"),i=hC.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?H7e(j7e(a),o):o}});var dC=ye((Bmr,Z7e)=>{"use strict";var X7e=Object.prototype.toString,YOt=X7e.call(function(){return arguments}());Z7e.exports=function(e){return X7e.call(e)===YOt}});var vC=ye((Nmr,K7e)=>{"use strict";var Y7e=Object.prototype.toString,KOt=Y7e.call("");K7e.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||Y7e.call(e)===KOt)||!1}});var $7e=ye((Umr,J7e)=>{"use strict";J7e.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var t9e=ye((Vmr,e9e)=>{var Q7e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};e9e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return Q7e()}try{return __global__||Q7e()}finally{delete Object.prototype.__global__}}()});var pC=ye((Gmr,r9e)=>{"use strict";r9e.exports=$7e()()?globalThis:t9e()});var n9e=ye((Hmr,i9e)=>{"use strict";var JOt=pC(),bY={object:!0,symbol:!0};i9e.exports=function(){var e=JOt.Symbol,t;if(typeof e!="function")return!1;t=e("test symbol");try{String(t)}catch(r){return!1}return!(!bY[typeof e.iterator]||!bY[typeof e.toPrimitive]||!bY[typeof e.toStringTag])}});var o9e=ye((jmr,a9e)=>{"use strict";a9e.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var wY=ye((Wmr,s9e)=>{"use strict";var $Ot=o9e();s9e.exports=function(e){if(!$Ot(e))throw new TypeError(e+" is not a symbol");return e}});var h9e=ye((Xmr,f9e)=>{"use strict";var l9e=n1(),QOt=Object.create,u9e=Object.defineProperty,eqt=Object.prototype,c9e=QOt(null);f9e.exports=function(e){for(var t=0,r,n;c9e[e+(t||"")];)++t;return e+=t||"",c9e[e]=!0,r="@@"+e,u9e(eqt,r,l9e.gs(null,function(i){n||(n=!0,u9e(this,r,l9e(i)),n=!1)})),r}});var v9e=ye((Zmr,d9e)=>{"use strict";var Qg=n1(),zh=pC().Symbol;d9e.exports=function(e){return Object.defineProperties(e,{hasInstance:Qg("",zh&&zh.hasInstance||e("hasInstance")),isConcatSpreadable:Qg("",zh&&zh.isConcatSpreadable||e("isConcatSpreadable")),iterator:Qg("",zh&&zh.iterator||e("iterator")),match:Qg("",zh&&zh.match||e("match")),replace:Qg("",zh&&zh.replace||e("replace")),search:Qg("",zh&&zh.search||e("search")),species:Qg("",zh&&zh.species||e("species")),split:Qg("",zh&&zh.split||e("split")),toPrimitive:Qg("",zh&&zh.toPrimitive||e("toPrimitive")),toStringTag:Qg("",zh&&zh.toStringTag||e("toStringTag")),unscopables:Qg("",zh&&zh.unscopables||e("unscopables"))})}});var m9e=ye((Ymr,g9e)=>{"use strict";var p9e=n1(),tqt=wY(),gC=Object.create(null);g9e.exports=function(e){return Object.defineProperties(e,{for:p9e(function(t){return gC[t]?gC[t]:gC[t]=e(String(t))}),keyFor:p9e(function(t){var r;tqt(t);for(r in gC)if(gC[r]===t)return r})})}});var x9e=ye((Kmr,_9e)=>{"use strict";var Zm=n1(),TY=wY(),uz=pC().Symbol,rqt=h9e(),iqt=v9e(),nqt=m9e(),aqt=Object.create,AY=Object.defineProperties,cz=Object.defineProperty,Wv,l5,y9e;if(typeof uz=="function")try{String(uz()),y9e=!0}catch(e){}else uz=null;l5=function(t){if(this instanceof l5)throw new TypeError("Symbol is not a constructor");return Wv(t)};_9e.exports=Wv=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return y9e?uz(t):(r=aqt(l5.prototype),t=t===void 0?"":String(t),AY(r,{__description__:Zm("",t),__name__:Zm("",rqt(t))}))};iqt(Wv);nqt(Wv);AY(l5.prototype,{constructor:Zm(Wv),toString:Zm("",function(){return this.__name__})});AY(Wv.prototype,{toString:Zm(function(){return"Symbol ("+TY(this).__description__+")"}),valueOf:Zm(function(){return TY(this)})});cz(Wv.prototype,Wv.toPrimitive,Zm("",function(){var e=TY(this);return typeof e=="symbol"?e:e.toString()}));cz(Wv.prototype,Wv.toStringTag,Zm("c","Symbol"));cz(l5.prototype,Wv.toStringTag,Zm("c",Wv.prototype[Wv.toStringTag]));cz(l5.prototype,Wv.toPrimitive,Zm("c",Wv.prototype[Wv.toPrimitive]))});var ux=ye((Jmr,b9e)=>{"use strict";b9e.exports=n9e()()?pC().Symbol:x9e()});var T9e=ye(($mr,w9e)=>{"use strict";var oqt=i1();w9e.exports=function(){return oqt(this).length=0,this}});var u5=ye((Qmr,A9e)=>{"use strict";A9e.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var M9e=ye((eyr,S9e)=>{"use strict";var sqt=$2(),lqt=oz(),uqt=Object.prototype.toString;S9e.exports=function(e){if(!sqt(e))return null;if(lqt(e)){var t=e.toString;if(typeof t!="function"||t===uqt)return null}try{return""+e}catch(r){return null}}});var C9e=ye((tyr,E9e)=>{"use strict";E9e.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}});var L9e=ye((ryr,k9e)=>{"use strict";var cqt=C9e(),fqt=/[\n\r\u2028\u2029]/g;k9e.exports=function(e){var t=cqt(e);return t===null?"":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(fqt,function(r){switch(r){case` -`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),t)}});var SY=ye((iyr,R9e)=>{"use strict";var P9e=$2(),hqt=oz(),dqt=M9e(),vqt=L9e(),I9e=function(e,t){return e.replace("%v",vqt(t))};R9e.exports=function(e,t,r){if(!hqt(r))throw new TypeError(I9e(t,e));if(!P9e(e)){if("default"in r)return r.default;if(r.isOptional)return null}var n=dqt(r.errorMessage);throw P9e(n)||(n=t),new TypeError(I9e(n,e))}});var F9e=ye((nyr,D9e)=>{"use strict";var pqt=SY(),gqt=$2();D9e.exports=function(e){return gqt(e)?e:pqt(e,"Cannot use %v",arguments[1])}});var O9e=ye((ayr,z9e)=>{"use strict";var mqt=SY(),yqt=mY();z9e.exports=function(e){return yqt(e)?e:mqt(e,"%v is not a plain function",arguments[1])}});var B9e=ye((oyr,q9e)=>{"use strict";q9e.exports=function(){var e=Array.from,t,r;return typeof e!="function"?!1:(t=["raz","dwa"],r=e(t),!!(r&&r!==t&&r[1]==="dwa"))}});var U9e=ye((syr,N9e)=>{"use strict";var _qt=Object.prototype.toString,xqt=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);N9e.exports=function(e){return typeof e=="function"&&xqt(_qt.call(e))}});var G9e=ye((lyr,V9e)=>{"use strict";V9e.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var j9e=ye((uyr,H9e)=>{"use strict";H9e.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var X9e=ye((cyr,W9e)=>{"use strict";W9e.exports=G9e()()?Math.sign:j9e()});var Y9e=ye((fyr,Z9e)=>{"use strict";var bqt=X9e(),wqt=Math.abs,Tqt=Math.floor;Z9e.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:bqt(e)*Tqt(wqt(e)))}});var J9e=ye((hyr,K9e)=>{"use strict";var Aqt=Y9e(),Sqt=Math.max;K9e.exports=function(e){return Sqt(0,Aqt(e))}});var tOe=ye((dyr,eOe)=>{"use strict";var Mqt=ux().iterator,Eqt=dC(),Cqt=U9e(),kqt=J9e(),$9e=u5(),Lqt=i1(),Pqt=lx(),Iqt=vC(),Q9e=Array.isArray,MY=Function.prototype.call,Q2={configurable:!0,enumerable:!0,writable:!0,value:null},EY=Object.defineProperty;eOe.exports=function(e){var t=arguments[1],r=arguments[2],n,i,a,o,s,l,u,c,f,h;if(e=Object(Lqt(e)),Pqt(t)&&$9e(t),!this||this===Array||!Cqt(this)){if(!t){if(Eqt(e))return s=e.length,s!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(Q9e(e)){for(o=new Array(s=e.length),i=0;i=55296&&l<=56319&&(h+=e[++i])),h=t?MY.call(t,r,h,a):h,n?(Q2.value=h,EY(o,a,Q2)):o[a]=h,++a;s=a}}if(s===void 0)for(s=kqt(e.length),n&&(o=new n(s)),i=0;i{"use strict";rOe.exports=B9e()()?Array.from:tOe()});var aOe=ye((pyr,nOe)=>{"use strict";var Rqt=iOe(),Dqt=sz(),Fqt=i1();nOe.exports=function(e){var t=Object(Fqt(e)),r=arguments[1],n=Object(arguments[2]);if(t!==e&&!r)return t;var i={};return r?Rqt(r,function(a){(n.ensure||a in e)&&(i[a]=e[a])}):Dqt(i,e),i}});var lOe=ye((gyr,sOe)=>{"use strict";var zqt=u5(),Oqt=i1(),qqt=Function.prototype.bind,oOe=Function.prototype.call,Bqt=Object.keys,Nqt=Object.prototype.propertyIsEnumerable;sOe.exports=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(Oqt(r)),zqt(n),i=Bqt(r),o&&i.sort(typeof o=="function"?qqt.call(o,r):void 0),typeof e!="function"&&(e=i[e]),oOe.call(e,i,function(s,l){return Nqt.call(r,s)?oOe.call(n,a,r[s],s,r,l):t})}}});var cOe=ye((myr,uOe)=>{"use strict";uOe.exports=lOe()("forEach")});var hOe=ye((yyr,fOe)=>{"use strict";var Uqt=u5(),Vqt=cOe(),Gqt=Function.prototype.call;fOe.exports=function(e,t){var r={},n=arguments[2];return Uqt(t),Vqt(e,function(i,a,o,s){r[a]=Gqt.call(t,n,i,a,o,s)}),r}});var gOe=ye((_yr,pOe)=>{"use strict";var Hqt=$2(),jqt=F9e(),dOe=O9e(),Wqt=aOe(),Xqt=yY(),Zqt=hOe(),Yqt=Function.prototype.bind,Kqt=Object.defineProperty,Jqt=Object.prototype.hasOwnProperty,vOe;vOe=function(e,t,r){var n=jqt(t)&&dOe(t.value),i;return i=Wqt(t),delete i.writable,delete i.value,i.get=function(){return!r.overwriteDefinition&&Jqt.call(this,e)?n:(t.value=Yqt.call(n,r.resolveContext?r.resolveContext(this):this),Kqt(this,e,t),this[e])},i};pOe.exports=function(e){var t=Xqt(arguments[1]);return Hqt(t.resolveContext)&&dOe(t.resolveContext),Zqt(e,function(r,n){return vOe(n,r,t)})}});var CY=ye((xyr,xOe)=>{"use strict";var $qt=T9e(),Qqt=sz(),eBt=u5(),tBt=i1(),Op=n1(),rBt=gOe(),mOe=ux(),yOe=Object.defineProperty,_Oe=Object.defineProperties,mC;xOe.exports=mC=function(e,t){if(!(this instanceof mC))throw new TypeError("Constructor requires 'new'");_Oe(this,{__list__:Op("w",tBt(e)),__context__:Op("w",t),__nextIndex__:Op("w",0)}),t&&(eBt(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))};delete mC.prototype.constructor;_Oe(mC.prototype,Qqt({_next:Op(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){yOe(this,"__redo__",Op("c",[e]));return}this.__redo__.forEach(function(t,r){t>=e&&(this.__redo__[r]=++t)},this),this.__redo__.push(e)}}),_onDelete:Op(function(e){var t;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(t=this.__redo__.indexOf(e),t!==-1&&this.__redo__.splice(t,1),this.__redo__.forEach(function(r,n){r>e&&(this.__redo__[n]=--r)},this)))}),_onClear:Op(function(){this.__redo__&&$qt.call(this.__redo__),this.__nextIndex__=0})})));yOe(mC.prototype,mOe.iterator,Op(function(){return this}))});var SOe=ye((byr,AOe)=>{"use strict";var bOe=az(),wOe=xY(),kY=n1(),iBt=ux(),LY=CY(),TOe=Object.defineProperty,c5;c5=AOe.exports=function(e,t){if(!(this instanceof c5))throw new TypeError("Constructor requires 'new'");LY.call(this,e),t?wOe.call(t,"key+value")?t="key+value":wOe.call(t,"key")?t="key":t="value":t="value",TOe(this,"__kind__",kY("",t))};bOe&&bOe(c5,LY);delete c5.prototype.constructor;c5.prototype=Object.create(LY.prototype,{_resolve:kY(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});TOe(c5.prototype,iBt.toStringTag,kY("c","Array Iterator"))});var kOe=ye((wyr,COe)=>{"use strict";var MOe=az(),fz=n1(),nBt=ux(),PY=CY(),EOe=Object.defineProperty,f5;f5=COe.exports=function(e){if(!(this instanceof f5))throw new TypeError("Constructor requires 'new'");e=String(e),PY.call(this,e),EOe(this,"__length__",fz("",e.length))};MOe&&MOe(f5,PY);delete f5.prototype.constructor;f5.prototype=Object.create(PY.prototype,{_next:fz(function(){if(this.__list__){if(this.__nextIndex__=55296&&r<=56319?t+this.__list__[this.__nextIndex__++]:t)})});EOe(f5.prototype,nBt.toStringTag,fz("c","String Iterator"))});var POe=ye((Tyr,LOe)=>{"use strict";var aBt=dC(),oBt=lx(),sBt=vC(),lBt=ux().iterator,uBt=Array.isArray;LOe.exports=function(e){return oBt(e)?uBt(e)||sBt(e)||aBt(e)?!0:typeof e[lBt]=="function":!1}});var ROe=ye((Ayr,IOe)=>{"use strict";var cBt=POe();IOe.exports=function(e){if(!cBt(e))throw new TypeError(e+" is not iterable");return e}});var IY=ye((Syr,zOe)=>{"use strict";var fBt=dC(),hBt=vC(),DOe=SOe(),dBt=kOe(),vBt=ROe(),FOe=ux().iterator;zOe.exports=function(e){return typeof vBt(e)[FOe]=="function"?e[FOe]():fBt(e)?new DOe(e):hBt(e)?new dBt(e):new DOe(e)}});var qOe=ye((Myr,OOe)=>{"use strict";var pBt=dC(),gBt=u5(),mBt=vC(),yBt=IY(),_Bt=Array.isArray,RY=Function.prototype.call,xBt=Array.prototype.some;OOe.exports=function(e,t){var r,n=arguments[2],i,a,o,s,l,u,c;if(_Bt(e)||pBt(e)?r="array":mBt(e)?r="string":e=yBt(e),gBt(t),a=function(){o=!0},r==="array"){xBt.call(e,function(f){return RY.call(t,n,f,a),o});return}if(r==="string"){for(l=e.length,s=0;s=55296&&c<=56319&&(u+=e[++s])),RY.call(t,n,u,a),!o);++s);return}for(i=e.next();!i.done;){if(RY.call(t,n,i.value,a),o)return;i=e.next()}}});var NOe=ye((Eyr,BOe)=>{"use strict";BOe.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()});var GOe=ye((Cyr,VOe)=>{"use strict";var bBt=lx(),dz=az(),hz=g7e(),wBt=i1(),TBt=y7e(),a1=n1(),ABt=IY(),SBt=qOe(),MBt=ux().toStringTag,UOe=NOe(),EBt=Array.isArray,FY=Object.defineProperty,DY=Object.prototype.hasOwnProperty,CBt=Object.getPrototypeOf,cx;VOe.exports=cx=function(){var e=arguments[0],t;if(!(this instanceof cx))throw new TypeError("Constructor requires 'new'");return t=UOe&&dz&&WeakMap!==cx?dz(new WeakMap,CBt(this)):this,bBt(e)&&(EBt(e)||(e=ABt(e))),FY(t,"__weakMapData__",a1("c","$weakMap$"+TBt())),e&&SBt(e,function(r){wBt(r),t.set(r[0],r[1])}),t};UOe&&(dz&&dz(cx,WeakMap),cx.prototype=Object.create(WeakMap.prototype,{constructor:a1(cx)}));Object.defineProperties(cx.prototype,{delete:a1(function(e){return DY.call(hz(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:a1(function(e){if(DY.call(hz(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:a1(function(e){return DY.call(hz(e),this.__weakMapData__)}),set:a1(function(e,t){return FY(hz(e),this.__weakMapData__,a1("c",t)),this}),toString:a1(function(){return"[object WeakMap]"})});FY(cx.prototype,MBt,a1("c","WeakMap"))});var zY=ye((kyr,HOe)=>{"use strict";HOe.exports=i7e()()?WeakMap:GOe()});var WOe=ye((Lyr,jOe)=>{"use strict";jOe.exports=function(e,t,r){if(typeof Array.prototype.findIndex=="function")return e.findIndex(t,r);if(typeof t!="function")throw new TypeError("predicate must be a function");var n=Object(e),i=n.length;if(i===0)return-1;for(var a=0;a{"use strict";var vz=$_(),kBt=j2(),qY=Fh(),LBt=Xm(),PBt=W2(),XOe=Qze(),IBt=t7e(),{float32:RBt,fract32:OY}=KF(),DBt=zY(),ZOe=e5(),FBt=WOe(),zBt=` +`]),Xze&&(v.frag=v.frag.replace("smoothstep","smoothStep"),d.frag=d.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(v)}nv.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4};nv.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};nv.prototype.draw=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;nre)?N.tree=K9t(H,{bounds:me}):re&&re.length&&(N.tree=re),N.tree){var ie={primitive:"points",usage:"static",data:N.tree,type:"uint32"};N.elements?N.elements(ie):N.elements=o.elements(ie)}var Se=$F.float32(H);oe({data:Se,usage:"dynamic"});var Le=$F.fract32(H,Se);return _e({data:Le,usage:"dynamic"}),Me({data:new Uint8Array(ke),type:"uint8",usage:"stream"}),H}},{marker:function(H,N,j){var re=N.activation;if(re.forEach(function(Le){return Le&&Le.destroy&&Le.destroy()}),re.length=0,!H||typeof H[0]=="number"){var oe=e.addMarker(H);re[oe]=!0}else{for(var _e=[],Me=0,ke=Math.min(H.length,N.count);Me=0)return i;var a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(var o=0,s=e.length;on*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};nv.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,r=this.paletteTexture,n=Math.ceil(e.length*.25/t);if(n>1){e=e.slice();for(var i=e.length*.25%t;i{"use strict";dY.exports=tz;dY.exports.default=tz;function tz(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=Jze(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var s,l,u,c,f,h,d;if(n&&(a=lOt(e,t,a,r)),e.length>80*r){s=u=e[0],l=c=e[1];for(var v=r;vu&&(u=f),h>c&&(c=h);d=Math.max(u-s,c-l),d=d!==0?32767/d:0}return hC(a,o,r,s,l,d,0),o}function Jze(e,t,r,n,i){var a,o;if(i===hY(e,t,r,n)>0)for(a=t;a=t;a-=n)o=Kze(a,e[a],e[a+1],o);return o&&rz(o,o.next)&&(vC(o),o=o.next),o}function J2(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(rz(r,r.next)||mh(r.prev,r,r.next)===0)){if(vC(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function hC(e,t,r,n,i,a,o){if(e){!o&&a&&dOt(e,n,i,a);for(var s=e,l,u;e.prev!==e.next;){if(l=e.prev,u=e.next,a?aOt(e,n,i,a):nOt(e)){t.push(l.i/r|0),t.push(e.i/r|0),t.push(u.i/r|0),vC(e),e=u.next,s=u.next;continue}if(e=u,e===s){o?o===1?(e=oOt(J2(e),t,r),hC(e,t,r,n,i,a,2)):o===2&&sOt(e,t,r,n,i,a):hC(J2(e),t,r,n,i,a,1);break}}}}function nOt(e){var t=e.prev,r=e,n=e.next;if(mh(t,r,n)>=0)return!1;for(var i=t.x,a=r.x,o=n.x,s=t.y,l=r.y,u=n.y,c=ia?i>o?i:o:a>o?a:o,d=s>l?s>u?s:u:l>u?l:u,v=n.next;v!==t;){if(v.x>=c&&v.x<=h&&v.y>=f&&v.y<=d&&s5(i,s,a,l,o,u,v.x,v.y)&&mh(v.prev,v,v.next)>=0)return!1;v=v.next}return!0}function aOt(e,t,r,n){var i=e.prev,a=e,o=e.next;if(mh(i,a,o)>=0)return!1;for(var s=i.x,l=a.x,u=o.x,c=i.y,f=a.y,h=o.y,d=sl?s>u?s:u:l>u?l:u,b=c>f?c>h?c:h:f>h?f:h,p=cY(d,v,t,r,n),C=cY(_,b,t,r,n),E=e.prevZ,A=e.nextZ;E&&E.z>=p&&A&&A.z<=C;){if(E.x>=d&&E.x<=_&&E.y>=v&&E.y<=b&&E!==i&&E!==o&&s5(s,c,l,f,u,h,E.x,E.y)&&mh(E.prev,E,E.next)>=0||(E=E.prevZ,A.x>=d&&A.x<=_&&A.y>=v&&A.y<=b&&A!==i&&A!==o&&s5(s,c,l,f,u,h,A.x,A.y)&&mh(A.prev,A,A.next)>=0))return!1;A=A.nextZ}for(;E&&E.z>=p;){if(E.x>=d&&E.x<=_&&E.y>=v&&E.y<=b&&E!==i&&E!==o&&s5(s,c,l,f,u,h,E.x,E.y)&&mh(E.prev,E,E.next)>=0)return!1;E=E.prevZ}for(;A&&A.z<=C;){if(A.x>=d&&A.x<=_&&A.y>=v&&A.y<=b&&A!==i&&A!==o&&s5(s,c,l,f,u,h,A.x,A.y)&&mh(A.prev,A,A.next)>=0)return!1;A=A.nextZ}return!0}function oOt(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!rz(i,a)&&$ze(i,n,n.next,a)&&dC(i,a)&&dC(a,i)&&(t.push(i.i/r|0),t.push(n.i/r|0),t.push(a.i/r|0),vC(n),vC(n.next),n=e=a),n=n.next}while(n!==e);return J2(n)}function sOt(e,t,r,n,i,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&gOt(o,s)){var l=Qze(o,s);o=J2(o,o.next),l=J2(l,l.next),hC(o,t,r,n,i,a,0),hC(l,t,r,n,i,a,0);return}s=s.next}o=o.next}while(o!==e)}function lOt(e,t,r,n){var i=[],a,o,s,l,u;for(a=0,o=t.length;a=r.next.y&&r.next.y!==r.y){var s=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=n&&s>a&&(a=s,o=r.x=r.x&&r.x>=u&&n!==r.x&&s5(io.x||r.x===o.x&&hOt(o,r)))&&(o=r,f=h)),r=r.next;while(r!==l);return o}function hOt(e,t){return mh(e.prev,e,t.prev)<0&&mh(t.next,e,e.next)<0}function dOt(e,t,r,n){var i=e;do i.z===0&&(i.z=cY(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,vOt(i)}function vOt(e){var t,r,n,i,a,o,s,l,u=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,s=0,t=0;t0||l>0&&n;)s!==0&&(l===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,u*=2}while(o>1);return e}function cY(e,t,r,n,i){return e=(e-r)*i|0,t=(t-n)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function pOt(e){var t=e,r=e;do(t.x=(e-o)*(a-s)&&(e-o)*(n-s)>=(r-o)*(t-s)&&(r-o)*(a-s)>=(i-o)*(n-s)}function gOt(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!mOt(e,t)&&(dC(e,t)&&dC(t,e)&&yOt(e,t)&&(mh(e.prev,e,t.prev)||mh(e,t.prev,t))||rz(e,t)&&mh(e.prev,e,e.next)>0&&mh(t.prev,t,t.next)>0)}function mh(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function rz(e,t){return e.x===t.x&&e.y===t.y}function $ze(e,t,r,n){var i=ez(mh(e,t,r)),a=ez(mh(e,t,n)),o=ez(mh(r,n,e)),s=ez(mh(r,n,t));return!!(i!==a&&o!==s||i===0&&QF(e,r,t)||a===0&&QF(e,n,t)||o===0&&QF(r,e,n)||s===0&&QF(r,t,n))}function QF(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function ez(e){return e>0?1:e<0?-1:0}function mOt(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&$ze(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function dC(e,t){return mh(e.prev,e,e.next)<0?mh(e,t,e.next)>=0&&mh(e,e.prev,t)>=0:mh(e,t,e.prev)<0||mh(e,e.next,t)<0}function yOt(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function Qze(e,t){var r=new fY(e.i,e.x,e.y),n=new fY(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function Kze(e,t,r,n){var i=new fY(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function vC(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function fY(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}tz.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(hY(e,0,a,r));if(i)for(var s=0,l=t.length;s0&&(n+=e[i-1].length,r.holes.push(n))}return r}});var r7e=ye((pmr,t7e)=>{"use strict";var _Ot=j2();t7e.exports=xOt;function xOt(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=_Ot(e,t));for(var n=0;n{"use strict";i7e.exports=function(){var e,t;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch(r){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(t)!=="one")}});var o7e=ye((mmr,a7e)=>{"use strict";a7e.exports=function(){}});var lx=ye((ymr,s7e)=>{"use strict";var bOt=o7e()();s7e.exports=function(e){return e!==bOt&&e!==null}});var vY=ye((_mr,u7e)=>{"use strict";var wOt=Object.create,TOt=Object.getPrototypeOf,l7e={};u7e.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||wOt;return typeof e!="function"?!1:TOt(e(t(null),l7e))===l7e}});var pY=ye((xmr,c7e)=>{"use strict";var AOt=lx(),SOt={function:!0,object:!0};c7e.exports=function(e){return AOt(e)&&SOt[typeof e]||!1}});var i1=ye((bmr,f7e)=>{"use strict";var MOt=lx();f7e.exports=function(e){if(!MOt(e))throw new TypeError("Cannot use null or undefined");return e}});var d7e=ye((wmr,h7e)=>{"use strict";var gY=Object.create,iz;vY()()||(iz=mY());h7e.exports=function(){var e,t,r;return!iz||iz.level!==1?gY:(e={},t={},r={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(n){if(n==="__proto__"){t[n]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}t[n]=r}),Object.defineProperties(e,t),Object.defineProperty(iz,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(n,i){return gY(n===null?e:n,i)})}()});var mY=ye((Tmr,v7e)=>{"use strict";var EOt=pY(),COt=i1(),kOt=Object.prototype.isPrototypeOf,LOt=Object.defineProperty,POt={configurable:!0,enumerable:!1,writable:!0,value:void 0},nz;nz=function(e,t){if(COt(e),t===null||EOt(t))return e;throw new TypeError("Prototype must be null or an object")};v7e.exports=function(e){var t,r;return e?(e.level===2?e.set?(r=e.set,t=function(n,i){return r.call(nz(n,i),i),n}):t=function(n,i){return nz(n,i).__proto__=i,n}:t=function n(i,a){var o;return nz(i,a),o=kOt.call(n.nullPolyfill,i),o&&delete n.nullPolyfill.__proto__,a===null&&(a=n.nullPolyfill),i.__proto__=a,o&&LOt(n.nullPolyfill,"__proto__",POt),i},Object.defineProperty(t,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null}(function(){var e=Object.create(null),t={},r,n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(n){try{r=n.set,r.call(e,t)}catch(i){}if(Object.getPrototypeOf(e)===t)return{set:r,level:2}}return e.__proto__=t,Object.getPrototypeOf(e)===t?{level:2}:(e={},e.__proto__=t,Object.getPrototypeOf(e)===t?{level:1}:!1)}());d7e()});var az=ye((Amr,p7e)=>{"use strict";p7e.exports=vY()()?Object.setPrototypeOf:mY()});var m7e=ye((Smr,g7e)=>{"use strict";var IOt=pY();g7e.exports=function(e){if(!IOt(e))throw new TypeError(e+" is not an Object");return e}});var _7e=ye((Mmr,y7e)=>{"use strict";var ROt=Object.create(null),DOt=Math.random;y7e.exports=function(){var e;do e=DOt().toString(36).slice(2);while(ROt[e]);return e}});var $2=ye((Emr,x7e)=>{"use strict";var FOt=void 0;x7e.exports=function(e){return e!==FOt&&e!==null}});var oz=ye((Cmr,b7e)=>{"use strict";var zOt=$2(),OOt={object:!0,function:!0,undefined:!0};b7e.exports=function(e){return zOt(e)?hasOwnProperty.call(OOt,typeof e):!1}});var T7e=ye((kmr,w7e)=>{"use strict";var qOt=oz();w7e.exports=function(e){if(!qOt(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(t){return!1}}});var S7e=ye((Lmr,A7e)=>{"use strict";var BOt=T7e();A7e.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(t){return!1}return!BOt(e)}});var yY=ye((Pmr,M7e)=>{"use strict";var NOt=S7e(),UOt=/^\s*class[\s{/}]/,VOt=Function.prototype.toString;M7e.exports=function(e){return!(!NOt(e)||UOt.test(VOt.call(e)))}});var C7e=ye((Imr,E7e)=>{"use strict";E7e.exports=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}});var L7e=ye((Rmr,k7e)=>{"use strict";k7e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var I7e=ye((Dmr,P7e)=>{"use strict";var GOt=lx(),HOt=Object.keys;P7e.exports=function(e){return HOt(GOt(e)?Object(e):e)}});var D7e=ye((Fmr,R7e)=>{"use strict";R7e.exports=L7e()()?Object.keys:I7e()});var z7e=ye((zmr,F7e)=>{"use strict";var jOt=D7e(),WOt=i1(),XOt=Math.max;F7e.exports=function(e,t){var r,n,i=XOt(arguments.length,2),a;for(e=Object(WOt(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},n=1;n{"use strict";O7e.exports=C7e()()?Object.assign:z7e()});var _Y=ye((qmr,q7e)=>{"use strict";var ZOt=lx(),YOt=Array.prototype.forEach,KOt=Object.create,JOt=function(e,t){var r;for(r in e)t[r]=e[r]};q7e.exports=function(e){var t=KOt(null);return YOt.call(arguments,function(r){ZOt(r)&&JOt(Object(r),t)}),t}});var N7e=ye((Bmr,B7e)=>{"use strict";var xY="razdwatrzy";B7e.exports=function(){return typeof xY.contains!="function"?!1:xY.contains("dwa")===!0&&xY.contains("foo")===!1}});var V7e=ye((Nmr,U7e)=>{"use strict";var $Ot=String.prototype.indexOf;U7e.exports=function(e){return $Ot.call(this,e,arguments[1])>-1}});var bY=ye((Umr,G7e)=>{"use strict";G7e.exports=N7e()()?String.prototype.contains:V7e()});var n1=ye((Vmr,X7e)=>{"use strict";var lz=$2(),H7e=yY(),j7e=sz(),W7e=_Y(),pC=bY(),QOt=X7e.exports=function(e,t){var r,n,i,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],lz(e)?(r=pC.call(e,"c"),n=pC.call(e,"e"),i=pC.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?j7e(W7e(a),o):o};QOt.gs=function(e,t,r){var n,i,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],lz(t)?H7e(t)?lz(r)?H7e(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,lz(e)?(n=pC.call(e,"c"),i=pC.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?j7e(W7e(a),o):o}});var gC=ye((Gmr,Y7e)=>{"use strict";var Z7e=Object.prototype.toString,eqt=Z7e.call(function(){return arguments}());Y7e.exports=function(e){return Z7e.call(e)===eqt}});var mC=ye((Hmr,J7e)=>{"use strict";var K7e=Object.prototype.toString,tqt=K7e.call("");J7e.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||K7e.call(e)===tqt)||!1}});var Q7e=ye((jmr,$7e)=>{"use strict";$7e.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var r9e=ye((Wmr,t9e)=>{var e9e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};t9e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return e9e()}try{return __global__||e9e()}finally{delete Object.prototype.__global__}}()});var yC=ye((Xmr,i9e)=>{"use strict";i9e.exports=Q7e()()?globalThis:r9e()});var a9e=ye((Zmr,n9e)=>{"use strict";var rqt=yC(),wY={object:!0,symbol:!0};n9e.exports=function(){var e=rqt.Symbol,t;if(typeof e!="function")return!1;t=e("test symbol");try{String(t)}catch(r){return!1}return!(!wY[typeof e.iterator]||!wY[typeof e.toPrimitive]||!wY[typeof e.toStringTag])}});var s9e=ye((Ymr,o9e)=>{"use strict";o9e.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var TY=ye((Kmr,l9e)=>{"use strict";var iqt=s9e();l9e.exports=function(e){if(!iqt(e))throw new TypeError(e+" is not a symbol");return e}});var d9e=ye((Jmr,h9e)=>{"use strict";var u9e=n1(),nqt=Object.create,c9e=Object.defineProperty,aqt=Object.prototype,f9e=nqt(null);h9e.exports=function(e){for(var t=0,r,n;f9e[e+(t||"")];)++t;return e+=t||"",f9e[e]=!0,r="@@"+e,c9e(aqt,r,u9e.gs(null,function(i){n||(n=!0,c9e(this,r,u9e(i)),n=!1)})),r}});var p9e=ye(($mr,v9e)=>{"use strict";var Qg=n1(),zh=yC().Symbol;v9e.exports=function(e){return Object.defineProperties(e,{hasInstance:Qg("",zh&&zh.hasInstance||e("hasInstance")),isConcatSpreadable:Qg("",zh&&zh.isConcatSpreadable||e("isConcatSpreadable")),iterator:Qg("",zh&&zh.iterator||e("iterator")),match:Qg("",zh&&zh.match||e("match")),replace:Qg("",zh&&zh.replace||e("replace")),search:Qg("",zh&&zh.search||e("search")),species:Qg("",zh&&zh.species||e("species")),split:Qg("",zh&&zh.split||e("split")),toPrimitive:Qg("",zh&&zh.toPrimitive||e("toPrimitive")),toStringTag:Qg("",zh&&zh.toStringTag||e("toStringTag")),unscopables:Qg("",zh&&zh.unscopables||e("unscopables"))})}});var y9e=ye((Qmr,m9e)=>{"use strict";var g9e=n1(),oqt=TY(),_C=Object.create(null);m9e.exports=function(e){return Object.defineProperties(e,{for:g9e(function(t){return _C[t]?_C[t]:_C[t]=e(String(t))}),keyFor:g9e(function(t){var r;oqt(t);for(r in _C)if(_C[r]===t)return r})})}});var b9e=ye((eyr,x9e)=>{"use strict";var Zm=n1(),AY=TY(),uz=yC().Symbol,sqt=d9e(),lqt=p9e(),uqt=y9e(),cqt=Object.create,SY=Object.defineProperties,cz=Object.defineProperty,Wv,l5,_9e;if(typeof uz=="function")try{String(uz()),_9e=!0}catch(e){}else uz=null;l5=function(t){if(this instanceof l5)throw new TypeError("Symbol is not a constructor");return Wv(t)};x9e.exports=Wv=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return _9e?uz(t):(r=cqt(l5.prototype),t=t===void 0?"":String(t),SY(r,{__description__:Zm("",t),__name__:Zm("",sqt(t))}))};lqt(Wv);uqt(Wv);SY(l5.prototype,{constructor:Zm(Wv),toString:Zm("",function(){return this.__name__})});SY(Wv.prototype,{toString:Zm(function(){return"Symbol ("+AY(this).__description__+")"}),valueOf:Zm(function(){return AY(this)})});cz(Wv.prototype,Wv.toPrimitive,Zm("",function(){var e=AY(this);return typeof e=="symbol"?e:e.toString()}));cz(Wv.prototype,Wv.toStringTag,Zm("c","Symbol"));cz(l5.prototype,Wv.toStringTag,Zm("c",Wv.prototype[Wv.toStringTag]));cz(l5.prototype,Wv.toPrimitive,Zm("c",Wv.prototype[Wv.toPrimitive]))});var ux=ye((tyr,w9e)=>{"use strict";w9e.exports=a9e()()?yC().Symbol:b9e()});var A9e=ye((ryr,T9e)=>{"use strict";var fqt=i1();T9e.exports=function(){return fqt(this).length=0,this}});var u5=ye((iyr,S9e)=>{"use strict";S9e.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var E9e=ye((nyr,M9e)=>{"use strict";var hqt=$2(),dqt=oz(),vqt=Object.prototype.toString;M9e.exports=function(e){if(!hqt(e))return null;if(dqt(e)){var t=e.toString;if(typeof t!="function"||t===vqt)return null}try{return""+e}catch(r){return null}}});var k9e=ye((ayr,C9e)=>{"use strict";C9e.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}});var P9e=ye((oyr,L9e)=>{"use strict";var pqt=k9e(),gqt=/[\n\r\u2028\u2029]/g;L9e.exports=function(e){var t=pqt(e);return t===null?"":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(gqt,function(r){switch(r){case` +`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),t)}});var MY=ye((syr,D9e)=>{"use strict";var I9e=$2(),mqt=oz(),yqt=E9e(),_qt=P9e(),R9e=function(e,t){return e.replace("%v",_qt(t))};D9e.exports=function(e,t,r){if(!mqt(r))throw new TypeError(R9e(t,e));if(!I9e(e)){if("default"in r)return r.default;if(r.isOptional)return null}var n=yqt(r.errorMessage);throw I9e(n)||(n=t),new TypeError(R9e(n,e))}});var z9e=ye((lyr,F9e)=>{"use strict";var xqt=MY(),bqt=$2();F9e.exports=function(e){return bqt(e)?e:xqt(e,"Cannot use %v",arguments[1])}});var q9e=ye((uyr,O9e)=>{"use strict";var wqt=MY(),Tqt=yY();O9e.exports=function(e){return Tqt(e)?e:wqt(e,"%v is not a plain function",arguments[1])}});var N9e=ye((cyr,B9e)=>{"use strict";B9e.exports=function(){var e=Array.from,t,r;return typeof e!="function"?!1:(t=["raz","dwa"],r=e(t),!!(r&&r!==t&&r[1]==="dwa"))}});var V9e=ye((fyr,U9e)=>{"use strict";var Aqt=Object.prototype.toString,Sqt=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);U9e.exports=function(e){return typeof e=="function"&&Sqt(Aqt.call(e))}});var H9e=ye((hyr,G9e)=>{"use strict";G9e.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var W9e=ye((dyr,j9e)=>{"use strict";j9e.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var Z9e=ye((vyr,X9e)=>{"use strict";X9e.exports=H9e()()?Math.sign:W9e()});var K9e=ye((pyr,Y9e)=>{"use strict";var Mqt=Z9e(),Eqt=Math.abs,Cqt=Math.floor;Y9e.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:Mqt(e)*Cqt(Eqt(e)))}});var $9e=ye((gyr,J9e)=>{"use strict";var kqt=K9e(),Lqt=Math.max;J9e.exports=function(e){return Lqt(0,kqt(e))}});var rOe=ye((myr,tOe)=>{"use strict";var Pqt=ux().iterator,Iqt=gC(),Rqt=V9e(),Dqt=$9e(),Q9e=u5(),Fqt=i1(),zqt=lx(),Oqt=mC(),eOe=Array.isArray,EY=Function.prototype.call,Q2={configurable:!0,enumerable:!0,writable:!0,value:null},CY=Object.defineProperty;tOe.exports=function(e){var t=arguments[1],r=arguments[2],n,i,a,o,s,l,u,c,f,h;if(e=Object(Fqt(e)),zqt(t)&&Q9e(t),!this||this===Array||!Rqt(this)){if(!t){if(Iqt(e))return s=e.length,s!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(eOe(e)){for(o=new Array(s=e.length),i=0;i=55296&&l<=56319&&(h+=e[++i])),h=t?EY.call(t,r,h,a):h,n?(Q2.value=h,CY(o,a,Q2)):o[a]=h,++a;s=a}}if(s===void 0)for(s=Dqt(e.length),n&&(o=new n(s)),i=0;i{"use strict";iOe.exports=N9e()()?Array.from:rOe()});var oOe=ye((_yr,aOe)=>{"use strict";var qqt=nOe(),Bqt=sz(),Nqt=i1();aOe.exports=function(e){var t=Object(Nqt(e)),r=arguments[1],n=Object(arguments[2]);if(t!==e&&!r)return t;var i={};return r?qqt(r,function(a){(n.ensure||a in e)&&(i[a]=e[a])}):Bqt(i,e),i}});var uOe=ye((xyr,lOe)=>{"use strict";var Uqt=u5(),Vqt=i1(),Gqt=Function.prototype.bind,sOe=Function.prototype.call,Hqt=Object.keys,jqt=Object.prototype.propertyIsEnumerable;lOe.exports=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(Vqt(r)),Uqt(n),i=Hqt(r),o&&i.sort(typeof o=="function"?Gqt.call(o,r):void 0),typeof e!="function"&&(e=i[e]),sOe.call(e,i,function(s,l){return jqt.call(r,s)?sOe.call(n,a,r[s],s,r,l):t})}}});var fOe=ye((byr,cOe)=>{"use strict";cOe.exports=uOe()("forEach")});var dOe=ye((wyr,hOe)=>{"use strict";var Wqt=u5(),Xqt=fOe(),Zqt=Function.prototype.call;hOe.exports=function(e,t){var r={},n=arguments[2];return Wqt(t),Xqt(e,function(i,a,o,s){r[a]=Zqt.call(t,n,i,a,o,s)}),r}});var mOe=ye((Tyr,gOe)=>{"use strict";var Yqt=$2(),Kqt=z9e(),vOe=q9e(),Jqt=oOe(),$qt=_Y(),Qqt=dOe(),eBt=Function.prototype.bind,tBt=Object.defineProperty,rBt=Object.prototype.hasOwnProperty,pOe;pOe=function(e,t,r){var n=Kqt(t)&&vOe(t.value),i;return i=Jqt(t),delete i.writable,delete i.value,i.get=function(){return!r.overwriteDefinition&&rBt.call(this,e)?n:(t.value=eBt.call(n,r.resolveContext?r.resolveContext(this):this),tBt(this,e,t),this[e])},i};gOe.exports=function(e){var t=$qt(arguments[1]);return Yqt(t.resolveContext)&&vOe(t.resolveContext),Qqt(e,function(r,n){return pOe(n,r,t)})}});var kY=ye((Ayr,bOe)=>{"use strict";var iBt=A9e(),nBt=sz(),aBt=u5(),oBt=i1(),Op=n1(),sBt=mOe(),yOe=ux(),_Oe=Object.defineProperty,xOe=Object.defineProperties,xC;bOe.exports=xC=function(e,t){if(!(this instanceof xC))throw new TypeError("Constructor requires 'new'");xOe(this,{__list__:Op("w",oBt(e)),__context__:Op("w",t),__nextIndex__:Op("w",0)}),t&&(aBt(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))};delete xC.prototype.constructor;xOe(xC.prototype,nBt({_next:Op(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){_Oe(this,"__redo__",Op("c",[e]));return}this.__redo__.forEach(function(t,r){t>=e&&(this.__redo__[r]=++t)},this),this.__redo__.push(e)}}),_onDelete:Op(function(e){var t;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(t=this.__redo__.indexOf(e),t!==-1&&this.__redo__.splice(t,1),this.__redo__.forEach(function(r,n){r>e&&(this.__redo__[n]=--r)},this)))}),_onClear:Op(function(){this.__redo__&&iBt.call(this.__redo__),this.__nextIndex__=0})})));_Oe(xC.prototype,yOe.iterator,Op(function(){return this}))});var MOe=ye((Syr,SOe)=>{"use strict";var wOe=az(),TOe=bY(),LY=n1(),lBt=ux(),PY=kY(),AOe=Object.defineProperty,c5;c5=SOe.exports=function(e,t){if(!(this instanceof c5))throw new TypeError("Constructor requires 'new'");PY.call(this,e),t?TOe.call(t,"key+value")?t="key+value":TOe.call(t,"key")?t="key":t="value":t="value",AOe(this,"__kind__",LY("",t))};wOe&&wOe(c5,PY);delete c5.prototype.constructor;c5.prototype=Object.create(PY.prototype,{_resolve:LY(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});AOe(c5.prototype,lBt.toStringTag,LY("c","Array Iterator"))});var LOe=ye((Myr,kOe)=>{"use strict";var EOe=az(),fz=n1(),uBt=ux(),IY=kY(),COe=Object.defineProperty,f5;f5=kOe.exports=function(e){if(!(this instanceof f5))throw new TypeError("Constructor requires 'new'");e=String(e),IY.call(this,e),COe(this,"__length__",fz("",e.length))};EOe&&EOe(f5,IY);delete f5.prototype.constructor;f5.prototype=Object.create(IY.prototype,{_next:fz(function(){if(this.__list__){if(this.__nextIndex__=55296&&r<=56319?t+this.__list__[this.__nextIndex__++]:t)})});COe(f5.prototype,uBt.toStringTag,fz("c","String Iterator"))});var IOe=ye((Eyr,POe)=>{"use strict";var cBt=gC(),fBt=lx(),hBt=mC(),dBt=ux().iterator,vBt=Array.isArray;POe.exports=function(e){return fBt(e)?vBt(e)||hBt(e)||cBt(e)?!0:typeof e[dBt]=="function":!1}});var DOe=ye((Cyr,ROe)=>{"use strict";var pBt=IOe();ROe.exports=function(e){if(!pBt(e))throw new TypeError(e+" is not iterable");return e}});var RY=ye((kyr,OOe)=>{"use strict";var gBt=gC(),mBt=mC(),FOe=MOe(),yBt=LOe(),_Bt=DOe(),zOe=ux().iterator;OOe.exports=function(e){return typeof _Bt(e)[zOe]=="function"?e[zOe]():gBt(e)?new FOe(e):mBt(e)?new yBt(e):new FOe(e)}});var BOe=ye((Lyr,qOe)=>{"use strict";var xBt=gC(),bBt=u5(),wBt=mC(),TBt=RY(),ABt=Array.isArray,DY=Function.prototype.call,SBt=Array.prototype.some;qOe.exports=function(e,t){var r,n=arguments[2],i,a,o,s,l,u,c;if(ABt(e)||xBt(e)?r="array":wBt(e)?r="string":e=TBt(e),bBt(t),a=function(){o=!0},r==="array"){SBt.call(e,function(f){return DY.call(t,n,f,a),o});return}if(r==="string"){for(l=e.length,s=0;s=55296&&c<=56319&&(u+=e[++s])),DY.call(t,n,u,a),!o);++s);return}for(i=e.next();!i.done;){if(DY.call(t,n,i.value,a),o)return;i=e.next()}}});var UOe=ye((Pyr,NOe)=>{"use strict";NOe.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()});var HOe=ye((Iyr,GOe)=>{"use strict";var MBt=lx(),dz=az(),hz=m7e(),EBt=i1(),CBt=_7e(),a1=n1(),kBt=RY(),LBt=BOe(),PBt=ux().toStringTag,VOe=UOe(),IBt=Array.isArray,zY=Object.defineProperty,FY=Object.prototype.hasOwnProperty,RBt=Object.getPrototypeOf,cx;GOe.exports=cx=function(){var e=arguments[0],t;if(!(this instanceof cx))throw new TypeError("Constructor requires 'new'");return t=VOe&&dz&&WeakMap!==cx?dz(new WeakMap,RBt(this)):this,MBt(e)&&(IBt(e)||(e=kBt(e))),zY(t,"__weakMapData__",a1("c","$weakMap$"+CBt())),e&&LBt(e,function(r){EBt(r),t.set(r[0],r[1])}),t};VOe&&(dz&&dz(cx,WeakMap),cx.prototype=Object.create(WeakMap.prototype,{constructor:a1(cx)}));Object.defineProperties(cx.prototype,{delete:a1(function(e){return FY.call(hz(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:a1(function(e){if(FY.call(hz(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:a1(function(e){return FY.call(hz(e),this.__weakMapData__)}),set:a1(function(e,t){return zY(hz(e),this.__weakMapData__,a1("c",t)),this}),toString:a1(function(){return"[object WeakMap]"})});zY(cx.prototype,PBt,a1("c","WeakMap"))});var OY=ye((Ryr,jOe)=>{"use strict";jOe.exports=n7e()()?WeakMap:HOe()});var XOe=ye((Dyr,WOe)=>{"use strict";WOe.exports=function(e,t,r){if(typeof Array.prototype.findIndex=="function")return e.findIndex(t,r);if(typeof t!="function")throw new TypeError("predicate must be a function");var n=Object(e),i=n.length;if(i===0)return-1;for(var a=0;a{"use strict";var vz=$_(),DBt=j2(),BY=Fh(),FBt=Xm(),zBt=W2(),ZOe=e7e(),OBt=r7e(),{float32:qBt,fract32:qY}=KF(),BBt=OY(),YOe=e5(),NBt=XOe(),UBt=` precision highp float; attribute vec2 aCoord, bCoord, aCoordFract, bCoordFract; @@ -2247,7 +2247,7 @@ void main() { fragColor = color / 255.; } -`,OBt=` +`,VBt=` precision highp float; uniform float dashLength, pixelRatio, thickness, opacity, id; @@ -2265,7 +2265,7 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= alpha * opacity * dash; } -`,qBt=` +`,GBt=` precision highp float; attribute vec2 position, positionFract; @@ -2293,14 +2293,14 @@ void main() { fragColor = color / 255.; fragColor.a *= opacity; } -`,BBt=` +`,HBt=` precision highp float; varying vec4 fragColor; void main() { gl_FragColor = fragColor; } -`,NBt=` +`,jBt=` precision highp float; attribute vec2 aCoord, bCoord, nextCoord, prevCoord; @@ -2504,7 +2504,7 @@ void main() { } } } -`,UBt=` +`,WBt=` precision highp float; uniform float dashLength, pixelRatio, thickness, opacity, id, miterMode; @@ -2584,7 +2584,7 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= alpha * opacity * dash; } -`;YOe.exports=Wc;function Wc(e,t){if(!(this instanceof Wc))return new Wc(e,t);if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=Wc.shaders.has(e)?Wc.shaders.get(e):Wc.shaders.set(e,Wc.createShaders(e)).get(e),this.update(t)}Wc.dashMult=2;Wc.maxPatternLength=256;Wc.precisionThreshold=3e6;Wc.maxPoints=1e4;Wc.maxLines=2048;Wc.shaders=new DBt;Wc.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,s)=>s.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,s)=>!s.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(qY({vert:zBt,frag:OBt,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r)),i;try{i=e(qY({cull:{enable:!0,face:"back"},vert:NBt,frag:UBt,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch(o){i=n}return{fill:e({primitive:"triangle",elements:(o,s)=>s.triangles,offset:0,vert:qBt,frag:BBt,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:n,miter:i}};Wc.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};Wc.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Wc.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((t,r)=>{if(t&&Array.isArray(t))return this.draw(...t);typeof t=="number"&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>Wc.precisionThreshold||t.scale[1]*t.viewport.height>Wc.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=Wc.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};Wc.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((i,a)=>{let o=this.passes[a];if(i!==void 0){if(i===null){this.passes[a]=null;return}if(typeof i[0]=="number"&&(i={positions:i}),i=LBt(i,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},i=qY({},Wc.defaults,i)),i.thickness!=null&&(o.thickness=parseFloat(i.thickness)),i.opacity!=null&&(o.opacity=parseFloat(i.opacity)),i.miterLimit!=null&&(o.miterLimit=parseFloat(i.miterLimit)),i.overlay!=null&&(o.overlay=!!i.overlay,aL-_),C=[],E=0,A=o.hole!=null?o.hole[0]:null;if(A!=null){let L=FBt(p,_=>_>=A);p=p.slice(0,L),p.push(A)}for(let L=0;Lg-A+(p[L]-E)),M=XOe(_,k);M=M.map(g=>g+E+(g+E{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var eqe=ye((Iyr,QOe)=>{"use strict";var VBt=j2(),GBt=$_(),HBt=oY(),jBt=Xm(),KOe=Fh(),JOe=W2(),{float32:WBt,fract32:NY}=KF();QOe.exports=XBt;var $Oe=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function XBt(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,n,i,a,o,s,l,u={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},c=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"static",type:"float",data:$Oe}),v(t),n=e({vert:` +`;KOe.exports=Wc;function Wc(e,t){if(!(this instanceof Wc))return new Wc(e,t);if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=Wc.shaders.has(e)?Wc.shaders.get(e):Wc.shaders.set(e,Wc.createShaders(e)).get(e),this.update(t)}Wc.dashMult=2;Wc.maxPatternLength=256;Wc.precisionThreshold=3e6;Wc.maxPoints=1e4;Wc.maxLines=2048;Wc.shaders=new BBt;Wc.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,s)=>s.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,s)=>!s.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(BY({vert:UBt,frag:VBt,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r)),i;try{i=e(BY({cull:{enable:!0,face:"back"},vert:jBt,frag:WBt,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch(o){i=n}return{fill:e({primitive:"triangle",elements:(o,s)=>s.triangles,offset:0,vert:GBt,frag:HBt,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:n,miter:i}};Wc.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};Wc.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Wc.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((t,r)=>{if(t&&Array.isArray(t))return this.draw(...t);typeof t=="number"&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>Wc.precisionThreshold||t.scale[1]*t.viewport.height>Wc.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=Wc.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};Wc.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((i,a)=>{let o=this.passes[a];if(i!==void 0){if(i===null){this.passes[a]=null;return}if(typeof i[0]=="number"&&(i={positions:i}),i=FBt(i,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},i=BY({},Wc.defaults,i)),i.thickness!=null&&(o.thickness=parseFloat(i.thickness)),i.opacity!=null&&(o.opacity=parseFloat(i.opacity)),i.miterLimit!=null&&(o.miterLimit=parseFloat(i.miterLimit)),i.overlay!=null&&(o.overlay=!!i.overlay,aL-x),C=[],E=0,A=o.hole!=null?o.hole[0]:null;if(A!=null){let L=NBt(p,x=>x>=A);p=p.slice(0,L),p.push(A)}for(let L=0;Lg-A+(p[L]-E)),M=ZOe(x,k);M=M.map(g=>g+E+(g+E{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var tqe=ye((zyr,eqe)=>{"use strict";var XBt=j2(),ZBt=$_(),YBt=sY(),KBt=Xm(),JOe=Fh(),$Oe=W2(),{float32:JBt,fract32:UY}=KF();eqe.exports=$Bt;var QOe=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function $Bt(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,n,i,a,o,s,l,u={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},c=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"static",type:"float",data:QOe}),v(t),n=e({vert:` precision highp float; attribute vec2 position, positionFract; @@ -2628,10 +2628,10 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= opacity; } - `,uniforms:{range:e.prop("range"),lineWidth:e.prop("lineWidth"),capSize:e.prop("capSize"),opacity:e.prop("opacity"),scale:e.prop("scale"),translate:e.prop("translate"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),viewport:(b,p)=>[p.viewport.x,p.viewport.y,b.viewportWidth,b.viewportHeight]},attributes:{color:{buffer:o,offset:(b,p)=>p.offset*4,divisor:1},position:{buffer:i,offset:(b,p)=>p.offset*8,divisor:1},positionFract:{buffer:a,offset:(b,p)=>p.offset*8,divisor:1},error:{buffer:s,offset:(b,p)=>p.offset*16,divisor:1},direction:{buffer:l,stride:24,offset:0},lineOffset:{buffer:l,stride:24,offset:8},capOffset:{buffer:l,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:$Oe.length}),KOe(f,{update:v,draw:h,destroy:x,regl:e,gl:r,canvas:r.canvas,groups:c}),f;function f(b){b?v(b):b===null&&x(),h()}function h(b){if(typeof b=="number")return d(b);b&&!Array.isArray(b)&&(b=[b]),e._refresh(),c.forEach((p,C)=>{if(p){if(b&&(b[C]?p.draw=!0:p.draw=!1),!p.draw){p.draw=!0;return}d(C)}})}function d(b){typeof b=="number"&&(b=c[b]),b!=null&&b&&b.count&&b.color&&b.opacity&&b.positions&&b.positions.length>1&&(b.scaleRatio=[b.scale[0]*b.viewport.width,b.scale[1]*b.viewport.height],n(b),b.after&&b.after(b))}function v(b){if(!b)return;b.length!=null?typeof b[0]=="number"&&(b=[{positions:b}]):Array.isArray(b)||(b=[b]);let p=0,C=0;if(f.groups=c=b.map((L,_)=>{let k=c[_];if(L)typeof L=="function"?L={after:L}:typeof L[0]=="number"&&(L={positions:L});else return k;return L=jBt(L,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),k||(c[_]=k={id:_,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},L=KOe({},u,L)),HBt(k,L,[{lineWidth:M=>+M*.5,capSize:M=>+M*.5,opacity:parseFloat,errors:M=>(M=JOe(M),C+=M.length,M),positions:(M,g)=>(M=JOe(M,"float64"),g.count=Math.floor(M.length/2),g.bounds=VBt(M,2),g.offset=p,p+=g.count,M)},{color:(M,g)=>{let P=g.count;if(M||(M="transparent"),!Array.isArray(M)||typeof M[0]=="number"){let z=M;M=Array(P);for(let O=0;O{let T=g.bounds;return M||(M=T),g.scale=[1/(M[2]-M[0]),1/(M[3]-M[1])],g.translate=[-M[0],-M[1]],g.scaleFract=NY(g.scale),g.translateFract=NY(g.translate),M},viewport:M=>{let g;return Array.isArray(M)?g={x:M[0],y:M[1],width:M[2]-M[0],height:M[3]-M[1]}:M?(g={x:M.x||M.left||0,y:M.y||M.top||0},M.right?g.width=M.right-g.x:g.width=M.w||M.width||0,M.bottom?g.height=M.bottom-g.y:g.height=M.h||M.height||0):g={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},g}}]),k}),p||C){let L=c.reduce((g,P,T)=>g+(P?P.count:0),0),_=new Float64Array(L*2),k=new Uint8Array(L*4),M=new Float32Array(L*4);c.forEach((g,P)=>{if(!g)return;let{positions:T,count:z,offset:O,color:V,errors:G}=g;z&&(k.set(V,O*4),M.set(G,O*4),_.set(T,O*2))});var E=WBt(_);i(E);var A=NY(_,E);a(A),o(k),s(M)}}function x(){i.destroy(),a.destroy(),o.destroy(),s.destroy(),l.destroy()}}});var iqe=ye((Ryr,rqe)=>{var tqe=/[\'\"]/;rqe.exports=function(t){return t?(tqe.test(t.charAt(0))&&(t=t.substr(1)),tqe.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}});var UY=ye(()=>{});var VY=ye(()=>{});var GY=ye(()=>{});var HY=ye(()=>{});var jY=ye(()=>{});var sqe=ye((Hyr,oqe)=>{"use strict";function nqe(e,t){if(typeof e!="string")return[e];var r=[e];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var n=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],i=t.escape||"___",a=!!t.flat;n.forEach(function(l){var u=new RegExp(["\\",l[0],"[^\\",l[0],"\\",l[1],"]*\\",l[1]].join("")),c=[];function f(h,d,v){var x=r.push(h.slice(l[0].length,-l[1].length))-1;return c.push(x),i+x+i}r.forEach(function(h,d){for(var v,x=0;h!=v;)if(v=h,h=h.replace(u,f),x++>1e4)throw Error("References have circular dependency. Please, check them.");r[d]=h}),c=c.reverse(),r=r.map(function(h){return c.forEach(function(d){h=h.replace(new RegExp("(\\"+i+d+"\\"+i+")","g"),l[0]+"$1"+l[1])}),h})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function s(l,u,c){for(var f=[],h,d=0;h=o.exec(l);){if(d++>1e4)throw Error("Circular references in parenthesis");f.push(l.slice(0,h.index)),f.push(s(u[h[1]],u)),l=l.slice(h.index+h[0].length)}return f.push(l),f}return a?r:s(r[0],r)}function aqe(e,t){if(t&&t.flat){var r=t&&t.escape||"___",n=e[0],i;if(!n)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;n!=i;){if(o++>1e4)throw Error("Circular references in "+e);i=n,n=n.replace(a,s)}return n}return e.reduce(function l(u,c){return Array.isArray(c)&&(c=c.reduce(l,"")),u+c},"");function s(l,u){if(e[u]==null)throw Error("Reference "+u+"is undefined");return e[u]}}function WY(e,t){return Array.isArray(e)?aqe(e,t):nqe(e,t)}WY.parse=nqe;WY.stringify=aqe;oqe.exports=WY});var cqe=ye((jyr,uqe)=>{"use strict";var lqe=sqe();uqe.exports=function(t,r,n){if(t==null)throw Error("First argument should be a string");if(r==null)throw Error("Separator should be a string or a RegExp");n?(typeof n=="string"||Array.isArray(n))&&(n={ignore:n}):n={},n.escape==null&&(n.escape=!0),n.ignore==null?n.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof n.ignore=="string"&&(n.ignore=[n.ignore]),n.ignore=n.ignore.map(function(f){return f.length===1&&(f=f+f),f}));var i=lqe.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var s=[],l=0;l{});var XY=ye((Zyr,hqe)=>{"use strict";var ZBt=fqe();hqe.exports={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||ZBt.indexOf(t)!==-1}}});var gqe=ye((Yyr,pqe)=>{"use strict";var YBt=iqe(),KBt=UY(),JBt=VY(),$Bt=GY(),QBt=HY(),eNt=jY(),ZY=cqe(),tNt=XY().isSize;pqe.exports=vqe;var yC=vqe.cache={};function vqe(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(yC[e])return yC[e];if(e==="")throw new Error("Cannot parse an empty string.");if(JBt.indexOf(e)!==-1)return yC[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=ZY(e,/\s+/),n;n=r.shift();){if(KBt.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),yC[e]=t;if(QBt.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(eNt.indexOf(n)!==-1){t.stretch=n;continue}if($Bt.indexOf(n)!==-1){t.weight=n;continue}if(tNt(n)){var i=ZY(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=dqe(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=dqe(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=ZY(r.join(" "),/\s*,\s*/).map(YBt),yC[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function dqe(e){var t=parseFloat(e);return t.toString()===e?t:e}});var KY=ye((Kyr,mqe)=>{"use strict";var rNt=Xm(),iNt=XY().isSize,nNt=xC(UY()),aNt=xC(VY()),oNt=xC(GY()),sNt=xC(HY()),lNt=xC(jY()),uNt={normal:1,"small-caps":1},cNt={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},YY={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};mqe.exports=function(t){if(t=rNt(t,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),t.system)return t.system&&_C(t.system,aNt),t.system;if(_C(t.style,sNt),_C(t.variant,uNt),_C(t.weight,oNt),_C(t.stretch,lNt),t.size==null&&(t.size=YY.size),typeof t.size=="number"&&(t.size+="px"),!iNt)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=YY.family),Array.isArray(t.family)&&(t.family.length||(t.family=[YY.family]),t.family=t.family.map(function(n){return cNt[n]?n:'"'+n+'"'}).join(", "));var r=[];return r.push(t.style),t.variant!==t.style&&r.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&r.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&r.push(t.stretch),r.push(t.size+(t.lineHeight==null||t.lineHeight==="normal"||t.lineHeight+""=="1"?"":"/"+t.lineHeight)),r.push(t.family),r.filter(Boolean).join(" ")};function _C(e,t){if(e&&!t[e]&&!nNt[e])throw Error("Unknown keyword `"+e+"`");return e}function xC(e){for(var t={},r=0;r{"use strict";yqe.exports={parse:gqe(),stringify:KY()}});var xqe=ye((JY,$Y)=>{(function(e,t){typeof JY=="object"&&typeof $Y!="undefined"?$Y.exports=t():e.createREGL=t()})(JY,function(){"use strict";var e=function(Ee,_t){for(var zt=Object.keys(_t),Rr=0;Rr1&&_t===zt&&(_t==='"'||_t==="'"))return['"'+o(Ee.substr(1,Ee.length-2))+'"'];var Rr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Ee);if(Rr)return s(Ee.substr(0,Rr.index)).concat(s(Rr[1])).concat(s(Ee.substr(Rr.index+Rr[0].length)));var Hr=Ee.split(".");if(Hr.length===1)return['"'+o(Ee)+'"'];for(var Br=[],Ur=0;Ur65535)<<4,Ee>>>=_t,zt=(Ee>255)<<3,Ee>>>=zt,_t|=zt,zt=(Ee>15)<<2,Ee>>>=zt,_t|=zt,zt=(Ee>3)<<1,Ee>>>=zt,_t|=zt,_t|Ee>>1}function N(){var Ee=M(8,function(){return[]});function _t(Br){var Ur=Z(Br),gi=Ee[H(Ur)>>2];return gi.length>0?gi.pop():new ArrayBuffer(Ur)}function zt(Br){Ee[H(Br.byteLength)>>2].push(Br)}function Rr(Br,Ur){var gi=null;switch(Br){case g:gi=new Int8Array(_t(Ur),0,Ur);break;case P:gi=new Uint8Array(_t(Ur),0,Ur);break;case T:gi=new Int16Array(_t(2*Ur),0,Ur);break;case z:gi=new Uint16Array(_t(2*Ur),0,Ur);break;case O:gi=new Int32Array(_t(4*Ur),0,Ur);break;case V:gi=new Uint32Array(_t(4*Ur),0,Ur);break;case G:gi=new Float32Array(_t(4*Ur),0,Ur);break;default:return null}return gi.length!==Ur?gi.subarray(0,Ur):gi}function Hr(Br){zt(Br.buffer)}return{alloc:_t,free:zt,allocType:Rr,freeType:Hr}}var j=N();j.zero=N();var re=3408,oe=3410,_e=3411,Me=3412,ke=3413,me=3414,ie=3415,Se=33901,Le=33902,Ae=3379,Fe=3386,Pe=34921,ge=36347,De=36348,ce=35661,Ze=35660,ut=34930,gt=36349,Kt=34076,st=34024,lt=7936,Gt=7937,Ut=7938,$t=35724,sr=34047,Tr=36063,ur=34852,$e=3553,Mt=34067,Ct=34069,Vt=33984,It=6408,Ot=5126,bt=5121,rr=36160,lr=36053,wr=36064,Cr=16384,Kr=function(Ee,_t){var zt=1;_t.ext_texture_filter_anisotropic&&(zt=Ee.getParameter(sr));var Rr=1,Hr=1;_t.webgl_draw_buffers&&(Rr=Ee.getParameter(ur),Hr=Ee.getParameter(Tr));var Br=!!_t.oes_texture_float;if(Br){var Ur=Ee.createTexture();Ee.bindTexture($e,Ur),Ee.texImage2D($e,0,It,1,1,0,It,Ot,null);var gi=Ee.createFramebuffer();if(Ee.bindFramebuffer(rr,gi),Ee.framebufferTexture2D(rr,wr,$e,Ur,0),Ee.bindTexture($e,null),Ee.checkFramebufferStatus(rr)!==lr)Br=!1;else{Ee.viewport(0,0,1,1),Ee.clearColor(1,0,0,1),Ee.clear(Cr);var Ni=j.allocType(Ot,4);Ee.readPixels(0,0,1,1,It,Ot,Ni),Ee.getError()?Br=!1:(Ee.deleteFramebuffer(gi),Ee.deleteTexture(Ur),Br=Ni[0]===1),j.freeType(Ni)}}var Oi=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Mi=!0;if(!Oi){var Hn=Ee.createTexture(),Qi=j.allocType(bt,36);Ee.activeTexture(Vt),Ee.bindTexture(Mt,Hn),Ee.texImage2D(Ct,0,It,3,3,0,It,bt,Qi),j.freeType(Qi),Ee.bindTexture(Mt,null),Ee.deleteTexture(Hn),Mi=!Ee.getError()}return{colorBits:[Ee.getParameter(oe),Ee.getParameter(_e),Ee.getParameter(Me),Ee.getParameter(ke)],depthBits:Ee.getParameter(me),stencilBits:Ee.getParameter(ie),subpixelBits:Ee.getParameter(re),extensions:Object.keys(_t).filter(function(Hi){return!!_t[Hi]}),maxAnisotropic:zt,maxDrawbuffers:Rr,maxColorAttachments:Hr,pointSizeDims:Ee.getParameter(Se),lineWidthDims:Ee.getParameter(Le),maxViewportDims:Ee.getParameter(Fe),maxCombinedTextureUnits:Ee.getParameter(ce),maxCubeMapSize:Ee.getParameter(Kt),maxRenderbufferSize:Ee.getParameter(st),maxTextureUnits:Ee.getParameter(ut),maxTextureSize:Ee.getParameter(Ae),maxAttributes:Ee.getParameter(Pe),maxVertexUniforms:Ee.getParameter(ge),maxVertexTextureUnits:Ee.getParameter(Ze),maxVaryingVectors:Ee.getParameter(De),maxFragmentUniforms:Ee.getParameter(gt),glsl:Ee.getParameter($t),renderer:Ee.getParameter(Gt),vendor:Ee.getParameter(lt),version:Ee.getParameter(Ut),readFloat:Br,npotTextureCube:Mi}},Gr=function(Ee){return Ee instanceof Uint8Array||Ee instanceof Uint16Array||Ee instanceof Uint32Array||Ee instanceof Int8Array||Ee instanceof Int16Array||Ee instanceof Int32Array||Ee instanceof Float32Array||Ee instanceof Float64Array||Ee instanceof Uint8ClampedArray};function Yr(Ee){return!!Ee&&typeof Ee=="object"&&Array.isArray(Ee.shape)&&Array.isArray(Ee.stride)&&typeof Ee.offset=="number"&&Ee.shape.length===Ee.stride.length&&(Array.isArray(Ee.data)||Gr(Ee.data))}var dt=function(Ee){return Object.keys(Ee).map(function(_t){return Ee[_t]})},Ge={shape:xe,flatten:Ie};function Qe(Ee,_t,zt){for(var Rr=0;Rr<_t;++Rr)zt[Rr]=Ee[Rr]}function je(Ee,_t,zt,Rr){for(var Hr=0,Br=0;Br<_t;++Br)for(var Ur=Ee[Br],gi=0;gi0){var qn;if(Array.isArray(Zr[0])){Xi=kn(Zr);for(var hi=1,li=1;li0){if(typeof hi[0]=="number"){var Ui=j.allocType(ci.dtype,hi.length);Er(Ui,hi),Xi(Ui,mn),j.freeType(Ui)}else if(Array.isArray(hi[0])||Gr(hi[0])){Ki=kn(hi);var Bi=Vn(hi,Ki,ci.dtype);Xi(Bi,mn),j.freeType(Bi)}}}else if(Yr(hi)){Ki=hi.shape;var vn=hi.stride,Un=0,na=0,Yi=0,Ln=0;Ki.length===1?(Un=Ki[0],na=1,Yi=vn[0],Ln=0):Ki.length===2&&(Un=Ki[0],na=Ki[1],Yi=vn[0],Ln=vn[1]);var ra=Array.isArray(hi.data)?ci.dtype:ar(hi.data),oa=j.allocType(ra,Un*na);Xr(oa,hi.data,Un,na,Yi,Ln,hi.offset),Xi(oa,mn),j.freeType(oa)}return nn}return xi||nn(Mr),nn._reglType="buffer",nn._buffer=ci,nn.subdata=qn,zt.profile&&(nn.stats=ci.stats),nn.destroy=function(){Qi(ci)},nn}function oi(){dt(Br).forEach(function(Mr){Mr.buffer=Ee.createBuffer(),Ee.bindBuffer(Mr.type,Mr.buffer),Ee.bufferData(Mr.type,Mr.persistentData||Mr.byteLength,Mr.usage)})}return zt.profile&&(_t.getTotalBufferSize=function(){var Mr=0;return Object.keys(Br).forEach(function(Zr){Mr+=Br[Zr].stats.size}),Mr}),{create:Hi,createStream:Ni,destroyStream:Oi,clear:function(){dt(Br).forEach(Qi),gi.forEach(Qi)},getBuffer:function(Mr){return Mr&&Mr._buffer instanceof Ur?Mr._buffer:null},restore:oi,_initBuffer:Hn}}var $r=0,zi=0,Ji=1,en=1,cn=4,yn=4,Mn={points:$r,point:zi,lines:Ji,line:en,triangles:cn,triangle:yn,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ba=0,la=1,ma=4,Wa=5120,Fa=5121,Wo=5122,da=5123,Wn=5124,Ga=5125,vo=34963,jn=35040,At=35044;function kr(Ee,_t,zt,Rr){var Hr={},Br=0,Ur={uint8:Fa,uint16:da};_t.oes_element_index_uint&&(Ur.uint32=Ga);function gi(oi){this.id=Br++,Hr[this.id]=this,this.buffer=oi,this.primType=ma,this.vertCount=0,this.type=0}gi.prototype.bind=function(){this.buffer.bind()};var Ni=[];function Oi(oi){var Mr=Ni.pop();return Mr||(Mr=new gi(zt.create(null,vo,!0,!1)._buffer)),Hn(Mr,oi,jn,-1,-1,0,0),Mr}function Mi(oi){Ni.push(oi)}function Hn(oi,Mr,Zr,xi,Ii,ci,nn){oi.buffer.bind();var Xi;if(Mr){var qn=nn;!nn&&(!Gr(Mr)||Yr(Mr)&&!Gr(Mr.data))&&(qn=_t.oes_element_index_uint?Ga:da),zt._initBuffer(oi.buffer,Mr,Zr,qn,3)}else Ee.bufferData(vo,ci,Zr),oi.buffer.dtype=Xi||Fa,oi.buffer.usage=Zr,oi.buffer.dimension=3,oi.buffer.byteLength=ci;if(Xi=nn,!nn){switch(oi.buffer.dtype){case Fa:case Wa:Xi=Fa;break;case da:case Wo:Xi=da;break;case Ga:case Wn:Xi=Ga;break;default:}oi.buffer.dtype=Xi}oi.type=Xi;var hi=Ii;hi<0&&(hi=oi.buffer.byteLength,Xi===da?hi>>=1:Xi===Ga&&(hi>>=2)),oi.vertCount=hi;var li=xi;if(xi<0){li=ma;var mn=oi.buffer.dimension;mn===1&&(li=Ba),mn===2&&(li=la),mn===3&&(li=ma)}oi.primType=li}function Qi(oi){Rr.elementsCount--,delete Hr[oi.id],oi.buffer.destroy(),oi.buffer=null}function Hi(oi,Mr){var Zr=zt.create(null,vo,!0),xi=new gi(Zr._buffer);Rr.elementsCount++;function Ii(ci){if(!ci)Zr(),xi.primType=ma,xi.vertCount=0,xi.type=Fa;else if(typeof ci=="number")Zr(ci),xi.primType=ma,xi.vertCount=ci|0,xi.type=Fa;else{var nn=null,Xi=At,qn=-1,hi=-1,li=0,mn=0;Array.isArray(ci)||Gr(ci)||Yr(ci)?nn=ci:("data"in ci&&(nn=ci.data),"usage"in ci&&(Xi=pn[ci.usage]),"primitive"in ci&&(qn=Mn[ci.primitive]),"count"in ci&&(hi=ci.count|0),"type"in ci&&(mn=Ur[ci.type]),"length"in ci?li=ci.length|0:(li=hi,mn===da||mn===Wo?li*=2:(mn===Ga||mn===Wn)&&(li*=4))),Hn(xi,nn,Xi,qn,hi,li,mn)}return Ii}return Ii(oi),Ii._reglType="elements",Ii._elements=xi,Ii.subdata=function(ci,nn){return Zr.subdata(ci,nn),Ii},Ii.destroy=function(){Qi(xi)},Ii}return{create:Hi,createStream:Oi,destroyStream:Mi,getElements:function(oi){return typeof oi=="function"&&oi._elements instanceof gi?oi._elements:null},clear:function(){dt(Hr).forEach(Qi)}}}var Qr=new Float32Array(1),di=new Uint32Array(Qr.buffer),fn=5123;function Sn(Ee){for(var _t=j.allocType(fn,Ee.length),zt=0;zt>>31<<15,Br=(Rr<<1>>>24)-127,Ur=Rr>>13&1023;if(Br<-24)_t[zt]=Hr;else if(Br<-14){var gi=-14-Br;_t[zt]=Hr+(Ur+1024>>gi)}else Br>15?_t[zt]=Hr+31744:_t[zt]=Hr+(Br+15<<10)+Ur}return _t}function En(Ee){return Array.isArray(Ee)||Gr(Ee)}var ki=34467,_n=3553,ya=34067,Jn=34069,Ma=6408,_o=6406,No=6407,po=6409,Lo=6410,Co=32854,Fs=32855,zs=36194,ul=32819,cl=32820,Fl=33635,cs=34042,nl=6402,Ss=34041,fl=35904,Js=35906,Os=36193,Io=33776,us=33777,Zl=33778,Su=33779,nc=35986,ws=35987,Fn=34798,_a=35840,Vu=35841,zl=35842,xo=35843,Yl=36196,Us=5121,Hl=5123,ac=5125,aa=5126,Oo=10242,qo=10243,Ol=10497,Pc=33071,Do=33648,tf=10240,Nf=10241,ml=9728,Zc=9729,Kl=9984,qs=9985,yu=9986,oc=9987,Cf=33170,sc=4352,Nh=4353,kf=4354,fs=34046,rf=3317,Uf=37440,Jl=37441,hl=37443,lc=37444,Fu=33984,Cs=[Kl,yu,qs,oc],js=[0,po,Lo,No,Ma],Go={};Go[po]=Go[_o]=Go[nl]=1,Go[Ss]=Go[Lo]=2,Go[No]=Go[fl]=3,Go[Ma]=Go[Js]=4;function gs(Ee){return"[object "+Ee+"]"}var uc=gs("HTMLCanvasElement"),xl=gs("OffscreenCanvas"),Gu=gs("CanvasRenderingContext2D"),Bs=gs("ImageBitmap"),ad=gs("HTMLImageElement"),Po=gs("HTMLVideoElement"),od=Object.keys(Ce).concat([uc,xl,Gu,Bs,ad,Po]),Yo=[];Yo[Us]=1,Yo[aa]=4,Yo[Os]=2,Yo[Hl]=2,Yo[ac]=4;var Pa=[];Pa[Co]=2,Pa[Fs]=2,Pa[zs]=2,Pa[Ss]=4,Pa[Io]=.5,Pa[us]=.5,Pa[Zl]=1,Pa[Su]=1,Pa[nc]=.5,Pa[ws]=1,Pa[Fn]=1,Pa[_a]=.5,Pa[Vu]=.25,Pa[zl]=.5,Pa[xo]=.25,Pa[Yl]=.5;function nf(Ee){return Array.isArray(Ee)&&(Ee.length===0||typeof Ee[0]=="number")}function Hu(Ee){if(!Array.isArray(Ee))return!1;var _t=Ee.length;return!(_t===0||!En(Ee[0]))}function bl(Ee){return Object.prototype.toString.call(Ee)}function Vf(Ee){return bl(Ee)===uc}function Ic(Ee){return bl(Ee)===xl}function gf(Ee){return bl(Ee)===Gu}function ql(Ee){return bl(Ee)===Bs}function _h(Ee){return bl(Ee)===ad}function Qf(Ee){return bl(Ee)===Po}function mf(Ee){if(!Ee)return!1;var _t=bl(Ee);return od.indexOf(_t)>=0?!0:nf(Ee)||Hu(Ee)||Yr(Ee)}function Yc(Ee){return Ce[Object.prototype.toString.call(Ee)]|0}function eh(Ee,_t){var zt=_t.length;switch(Ee.type){case Us:case Hl:case ac:case aa:var Rr=j.allocType(Ee.type,zt);Rr.set(_t),Ee.data=Rr;break;case Os:Ee.data=Sn(_t);break;default:}}function th(Ee,_t){return j.allocType(Ee.type===Os?aa:Ee.type,_t)}function ju(Ee,_t){Ee.type===Os?(Ee.data=Sn(_t),j.freeType(_t)):Ee.data=_t}function Gf(Ee,_t,zt,Rr,Hr,Br){for(var Ur=Ee.width,gi=Ee.height,Ni=Ee.channels,Oi=Ur*gi*Ni,Mi=th(Ee,Oi),Hn=0,Qi=0;Qi=1;)gi+=Ur*Ni*Ni,Ni/=2;return gi}else return Ur*zt*Rr}function af(Ee,_t,zt,Rr,Hr,Br,Ur){var gi={"don't care":sc,"dont care":sc,nice:kf,fast:Nh},Ni={repeat:Ol,clamp:Pc,mirror:Do},Oi={nearest:ml,linear:Zc},Mi=e({mipmap:oc,"nearest mipmap nearest":Kl,"linear mipmap nearest":qs,"nearest mipmap linear":yu,"linear mipmap linear":oc},Oi),Hn={none:0,browser:lc},Qi={uint8:Us,rgba4:ul,rgb565:Fl,"rgb5 a1":cl},Hi={alpha:_o,luminance:po,"luminance alpha":Lo,rgb:No,rgba:Ma,rgba4:Co,"rgb5 a1":Fs,rgb565:zs},oi={};_t.ext_srgb&&(Hi.srgb=fl,Hi.srgba=Js),_t.oes_texture_float&&(Qi.float32=Qi.float=aa),_t.oes_texture_half_float&&(Qi.float16=Qi["half float"]=Os),_t.webgl_depth_texture&&(e(Hi,{depth:nl,"depth stencil":Ss}),e(Qi,{uint16:Hl,uint32:ac,"depth stencil":cs})),_t.webgl_compressed_texture_s3tc&&e(oi,{"rgb s3tc dxt1":Io,"rgba s3tc dxt1":us,"rgba s3tc dxt3":Zl,"rgba s3tc dxt5":Su}),_t.webgl_compressed_texture_atc&&e(oi,{"rgb atc":nc,"rgba atc explicit alpha":ws,"rgba atc interpolated alpha":Fn}),_t.webgl_compressed_texture_pvrtc&&e(oi,{"rgb pvrtc 4bppv1":_a,"rgb pvrtc 2bppv1":Vu,"rgba pvrtc 4bppv1":zl,"rgba pvrtc 2bppv1":xo}),_t.webgl_compressed_texture_etc1&&(oi["rgb etc1"]=Yl);var Mr=Array.prototype.slice.call(Ee.getParameter(ki));Object.keys(oi).forEach(function(ne){var we=oi[ne];Mr.indexOf(we)>=0&&(Hi[ne]=we)});var Zr=Object.keys(Hi);zt.textureFormats=Zr;var xi=[];Object.keys(Hi).forEach(function(ne){var we=Hi[ne];xi[we]=ne});var Ii=[];Object.keys(Qi).forEach(function(ne){var we=Qi[ne];Ii[we]=ne});var ci=[];Object.keys(Oi).forEach(function(ne){var we=Oi[ne];ci[we]=ne});var nn=[];Object.keys(Mi).forEach(function(ne){var we=Mi[ne];nn[we]=ne});var Xi=[];Object.keys(Ni).forEach(function(ne){var we=Ni[ne];Xi[we]=ne});var qn=Zr.reduce(function(ne,we){var Ue=Hi[we];return Ue===po||Ue===_o||Ue===po||Ue===Lo||Ue===nl||Ue===Ss||_t.ext_srgb&&(Ue===fl||Ue===Js)?ne[Ue]=Ue:Ue===Fs||we.indexOf("rgba")>=0?ne[Ue]=Ma:ne[Ue]=No,ne},{});function hi(){this.internalformat=Ma,this.format=Ma,this.type=Us,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=lc,this.width=0,this.height=0,this.channels=0}function li(ne,we){ne.internalformat=we.internalformat,ne.format=we.format,ne.type=we.type,ne.compressed=we.compressed,ne.premultiplyAlpha=we.premultiplyAlpha,ne.flipY=we.flipY,ne.unpackAlignment=we.unpackAlignment,ne.colorSpace=we.colorSpace,ne.width=we.width,ne.height=we.height,ne.channels=we.channels}function mn(ne,we){if(!(typeof we!="object"||!we)){if("premultiplyAlpha"in we&&(ne.premultiplyAlpha=we.premultiplyAlpha),"flipY"in we&&(ne.flipY=we.flipY),"alignment"in we&&(ne.unpackAlignment=we.alignment),"colorSpace"in we&&(ne.colorSpace=Hn[we.colorSpace]),"type"in we){var Ue=we.type;ne.type=Qi[Ue]}var ft=ne.width,Zt=ne.height,hr=ne.channels,Bt=!1;"shape"in we?(ft=we.shape[0],Zt=we.shape[1],we.shape.length===3&&(hr=we.shape[2],Bt=!0)):("radius"in we&&(ft=Zt=we.radius),"width"in we&&(ft=we.width),"height"in we&&(Zt=we.height),"channels"in we&&(hr=we.channels,Bt=!0)),ne.width=ft|0,ne.height=Zt|0,ne.channels=hr|0;var Ve=!1;if("format"in we){var et=we.format,at=ne.internalformat=Hi[et];ne.format=qn[at],et in Qi&&("type"in we||(ne.type=Qi[et])),et in oi&&(ne.compressed=!0),Ve=!0}!Bt&&Ve?ne.channels=Go[ne.format]:Bt&&!Ve&&ne.channels!==js[ne.format]&&(ne.format=ne.internalformat=js[ne.channels])}}function Ki(ne){Ee.pixelStorei(Uf,ne.flipY),Ee.pixelStorei(Jl,ne.premultiplyAlpha),Ee.pixelStorei(hl,ne.colorSpace),Ee.pixelStorei(rf,ne.unpackAlignment)}function Ui(){hi.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Bi(ne,we){var Ue=null;if(mf(we)?Ue=we:we&&(mn(ne,we),"x"in we&&(ne.xOffset=we.x|0),"y"in we&&(ne.yOffset=we.y|0),mf(we.data)&&(Ue=we.data)),we.copy){var ft=Hr.viewportWidth,Zt=Hr.viewportHeight;ne.width=ne.width||ft-ne.xOffset,ne.height=ne.height||Zt-ne.yOffset,ne.needsCopy=!0}else if(!Ue)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(Gr(Ue))ne.channels=ne.channels||4,ne.data=Ue,!("type"in we)&&ne.type===Us&&(ne.type=Yc(Ue));else if(nf(Ue))ne.channels=ne.channels||4,eh(ne,Ue),ne.alignment=1,ne.needsFree=!0;else if(Yr(Ue)){var hr=Ue.data;!Array.isArray(hr)&&ne.type===Us&&(ne.type=Yc(hr));var Bt=Ue.shape,Ve=Ue.stride,et,at,kt,qt,Rt,Nt;Bt.length===3?(kt=Bt[2],Nt=Ve[2]):(kt=1,Nt=1),et=Bt[0],at=Bt[1],qt=Ve[0],Rt=Ve[1],ne.alignment=1,ne.width=et,ne.height=at,ne.channels=kt,ne.format=ne.internalformat=js[kt],ne.needsFree=!0,Gf(ne,hr,qt,Rt,Nt,Ue.offset)}else if(Vf(Ue)||Ic(Ue)||gf(Ue))Vf(Ue)||Ic(Ue)?ne.element=Ue:ne.element=Ue.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(ql(Ue))ne.element=Ue,ne.width=Ue.width,ne.height=Ue.height,ne.channels=4;else if(_h(Ue))ne.element=Ue,ne.width=Ue.naturalWidth,ne.height=Ue.naturalHeight,ne.channels=4;else if(Qf(Ue))ne.element=Ue,ne.width=Ue.videoWidth,ne.height=Ue.videoHeight,ne.channels=4;else if(Hu(Ue)){var Dt=ne.width||Ue[0].length,mt=ne.height||Ue.length,Pt=ne.channels;En(Ue[0][0])?Pt=Pt||Ue[0][0].length:Pt=Pt||1;for(var ht=Ge.shape(Ue),cr=1,br=0;br>=Zt,Ue.height>>=Zt,Bi(Ue,ft[Zt]),ne.mipmask|=1<=0&&!("faces"in we)&&(ne.genMipmaps=!0)}if("mag"in we){var ft=we.mag;ne.magFilter=Oi[ft]}var Zt=ne.wrapS,hr=ne.wrapT;if("wrap"in we){var Bt=we.wrap;typeof Bt=="string"?Zt=hr=Ni[Bt]:Array.isArray(Bt)&&(Zt=Ni[Bt[0]],hr=Ni[Bt[1]])}else{if("wrapS"in we){var Ve=we.wrapS;Zt=Ni[Ve]}if("wrapT"in we){var et=we.wrapT;hr=Ni[et]}}if(ne.wrapS=Zt,ne.wrapT=hr,"anisotropic"in we){var at=we.anisotropic;ne.anisotropic=we.anisotropic}if("mipmap"in we){var kt=!1;switch(typeof we.mipmap){case"string":ne.mipmapHint=gi[we.mipmap],ne.genMipmaps=!0,kt=!0;break;case"boolean":kt=ne.genMipmaps=we.mipmap;break;case"object":ne.genMipmaps=!1,kt=!0;break;default:}kt&&!("min"in we)&&(ne.minFilter=Kl)}}function ol(ne,we){Ee.texParameteri(we,Nf,ne.minFilter),Ee.texParameteri(we,tf,ne.magFilter),Ee.texParameteri(we,Oo,ne.wrapS),Ee.texParameteri(we,qo,ne.wrapT),_t.ext_texture_filter_anisotropic&&Ee.texParameteri(we,fs,ne.anisotropic),ne.genMipmaps&&(Ee.hint(Cf,ne.mipmapHint),Ee.generateMipmap(we))}var Ul=0,ss={},Gs=zt.maxTextureUnits,Ks=Array(Gs).map(function(){return null});function Ta(ne){hi.call(this),this.mipmask=0,this.internalformat=Ma,this.id=Ul++,this.refCount=1,this.target=ne,this.texture=Ee.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new zo,Ur.profile&&(this.stats={size:0})}function sl(ne){Ee.activeTexture(Fu),Ee.bindTexture(ne.target,ne.texture)}function io(){var ne=Ks[0];ne?Ee.bindTexture(ne.target,ne.texture):Ee.bindTexture(_n,null)}function Y(ne){var we=ne.texture,Ue=ne.unit,ft=ne.target;Ue>=0&&(Ee.activeTexture(Fu+Ue),Ee.bindTexture(ft,null),Ks[Ue]=null),Ee.deleteTexture(we),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete ss[ne.id],Br.textureCount--}e(Ta.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var we=ne.unit;if(we<0){for(var Ue=0;Ue0)continue;ft.unit=-1}Ks[Ue]=ne,we=Ue;break}we>=Gs,Ur.profile&&Br.maxTextureUnits>Rt)-kt,Nt.height=Nt.height||(Ue.height>>Rt)-qt,sl(Ue),Un(Nt,_n,kt,qt,Rt),io(),Ln(Nt),ft}function hr(Bt,Ve){var et=Bt|0,at=Ve|0||et;if(et===Ue.width&&at===Ue.height)return ft;ft.width=Ue.width=et,ft.height=Ue.height=at,sl(Ue);for(var kt=0;Ue.mipmask>>kt;++kt){var qt=et>>kt,Rt=at>>kt;if(!qt||!Rt)break;Ee.texImage2D(_n,kt,Ue.format,qt,Rt,0,Ue.format,Ue.type,null)}return io(),Ur.profile&&(Ue.stats.size=cc(Ue.internalformat,Ue.type,et,at,!1,!1)),ft}return ft(ne,we),ft.subimage=Zt,ft.resize=hr,ft._reglType="texture2d",ft._texture=Ue,Ur.profile&&(ft.stats=Ue.stats),ft.destroy=function(){Ue.decRef()},ft}function J(ne,we,Ue,ft,Zt,hr){var Bt=new Ta(ya);ss[Bt.id]=Bt,Br.cubeCount++;var Ve=new Array(6);function et(qt,Rt,Nt,Dt,mt,Pt){var ht,cr=Bt.texInfo;for(zo.call(cr),ht=0;ht<6;++ht)Ve[ht]=Va();if(typeof qt=="number"||!qt){var br=qt|0||1;for(ht=0;ht<6;++ht)oa(Ve[ht],br,br)}else if(typeof qt=="object")if(Rt)wa(Ve[0],qt),wa(Ve[1],Rt),wa(Ve[2],Nt),wa(Ve[3],Dt),wa(Ve[4],mt),wa(Ve[5],Pt);else if(el(cr,qt),mn(Bt,qt),"faces"in qt){var Nr=qt.faces;for(ht=0;ht<6;++ht)li(Ve[ht],Bt),wa(Ve[ht],Nr[ht])}else for(ht=0;ht<6;++ht)wa(Ve[ht],qt);for(li(Bt,Ve[0]),cr.genMipmaps?Bt.mipmask=(Ve[0].width<<1)-1:Bt.mipmask=Ve[0].mipmask,Bt.internalformat=Ve[0].internalformat,et.width=Ve[0].width,et.height=Ve[0].height,sl(Bt),ht=0;ht<6;++ht)ns(Ve[ht],Jn+ht);for(ol(cr,ya),io(),Ur.profile&&(Bt.stats.size=cc(Bt.internalformat,Bt.type,et.width,et.height,cr.genMipmaps,!0)),et.format=xi[Bt.internalformat],et.type=Ii[Bt.type],et.mag=ci[cr.magFilter],et.min=nn[cr.minFilter],et.wrapS=Xi[cr.wrapS],et.wrapT=Xi[cr.wrapT],ht=0;ht<6;++ht)Ml(Ve[ht]);return et}function at(qt,Rt,Nt,Dt,mt){var Pt=Nt|0,ht=Dt|0,cr=mt|0,br=Yi();return li(br,Bt),br.width=0,br.height=0,Bi(br,Rt),br.width=br.width||(Bt.width>>cr)-Pt,br.height=br.height||(Bt.height>>cr)-ht,sl(Bt),Un(br,Jn+qt,Pt,ht,cr),io(),Ln(br),et}function kt(qt){var Rt=qt|0;if(Rt!==Bt.width){et.width=Bt.width=Rt,et.height=Bt.height=Rt,sl(Bt);for(var Nt=0;Nt<6;++Nt)for(var Dt=0;Bt.mipmask>>Dt;++Dt)Ee.texImage2D(Jn+Nt,Dt,Bt.format,Rt>>Dt,Rt>>Dt,0,Bt.format,Bt.type,null);return io(),Ur.profile&&(Bt.stats.size=cc(Bt.internalformat,Bt.type,et.width,et.height,!1,!0)),et}}return et(ne,we,Ue,ft,Zt,hr),et.subimage=at,et.resize=kt,et._reglType="textureCube",et._texture=Bt,Ur.profile&&(et.stats=Bt.stats),et.destroy=function(){Bt.decRef()},et}function q(){for(var ne=0;ne>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);else for(var Zt=0;Zt<6;++Zt)Ee.texImage2D(Jn+Zt,ft,Ue.internalformat,Ue.width>>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);ol(Ue.texInfo,Ue.target)})}function de(){for(var ne=0;ne=0?Ml=!0:Ni.indexOf(zo)>=0&&(Ml=!1))),("depthTexture"in Ta||"depthStencilTexture"in Ta)&&(Ks=!!(Ta.depthTexture||Ta.depthStencilTexture)),"depth"in Ta&&(typeof Ta.depth=="boolean"?ns=Ta.depth:(Ul=Ta.depth,Ys=!1)),"stencil"in Ta&&(typeof Ta.stencil=="boolean"?Ys=Ta.stencil:(ss=Ta.stencil,ns=!1)),"depthStencil"in Ta&&(typeof Ta.depthStencil=="boolean"?ns=Ys=Ta.depthStencil:(Gs=Ta.depthStencil,ns=!1,Ys=!1))}var io=null,Y=null,D=null,J=null;if(Array.isArray(Va))io=Va.map(oi);else if(Va)io=[oi(Va)];else for(io=new Array(ol),ra=0;ra0&&(Ln.depth=Bi[0].depth,Ln.stencil=Bi[0].stencil,Ln.depthStencil=Bi[0].depthStencil),Bi[Yi]?Bi[Yi](Ln):Bi[Yi]=li(Ln)}return e(vn,{width:ra,height:ra,color:zo})}function Un(na){var Yi,Ln=na|0;if(Ln===vn.width)return vn;var ra=vn.color;for(Yi=0;Yi=ra.byteLength?oa.subdata(ra):(oa.destroy(),li.buffers[na]=null)),li.buffers[na]||(oa=li.buffers[na]=Hr.create(Yi,Pf,!1,!0)),Ln.buffer=Hr.getBuffer(oa),Ln.size=Ln.buffer.dimension|0,Ln.normalized=!1,Ln.type=Ln.buffer.dtype,Ln.offset=0,Ln.stride=0,Ln.divisor=0,Ln.state=1,vn[na]=1}else Hr.getBuffer(Yi)?(Ln.buffer=Hr.getBuffer(Yi),Ln.size=Ln.buffer.dimension|0,Ln.normalized=!1,Ln.type=Ln.buffer.dtype,Ln.offset=0,Ln.stride=0,Ln.divisor=0,Ln.state=1):Hr.getBuffer(Yi.buffer)?(Ln.buffer=Hr.getBuffer(Yi.buffer),Ln.size=(+Yi.size||Ln.buffer.dimension)|0,Ln.normalized=!!Yi.normalized||!1,"type"in Yi?Ln.type=ji[Yi.type]:Ln.type=Ln.buffer.dtype,Ln.offset=(Yi.offset||0)|0,Ln.stride=(Yi.stride||0)|0,Ln.divisor=(Yi.divisor||0)|0,Ln.state=1):"x"in Yi&&(Ln.x=+Yi.x||0,Ln.y=+Yi.y||0,Ln.z=+Yi.z||0,Ln.w=+Yi.w||0,Ln.state=2)}for(var wa=0;wa1)for(var Ki=0;KiMr&&(Mr=Zr.stats.uniformsCount)}),Mr},zt.getMaxAttributesCount=function(){var Mr=0;return Mi.forEach(function(Zr){Zr.stats.attributesCount>Mr&&(Mr=Zr.stats.attributesCount)}),Mr});function oi(){Hr={},Br={};for(var Mr=0;Mr16&&(zt=Zi(zt,Ee.length*8));for(var Rr=Array(16),Hr=Array(16),Br=0;Br<16;Br++)Rr[Br]=zt[Br]^909522486,Hr[Br]=zt[Br]^1549556828;var Ur=Zi(Rr.concat(Bc(_t)),512+_t.length*8);return Tt(Zi(Hr.concat(Ur),768))}function pu(Ee){for(var _t=ah?"0123456789ABCDEF":"0123456789abcdef",zt="",Rr,Hr=0;Hr>>4&15)+_t.charAt(Rr&15);return zt}function qc(Ee){for(var _t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zt="",Rr=Ee.length,Hr=0;HrEe.length*8?zt+=Zu:zt+=_t.charAt(Br>>>6*(3-Ur)&63);return zt}function uf(Ee,_t){var zt=_t.length,Rr=Array(),Hr,Br,Ur,gi,Ni=Array(Math.ceil(Ee.length/2));for(Hr=0;Hr0;){for(gi=Array(),Ur=0,Hr=0;Hr0||Br>0)&&(gi[gi.length]=Br);Rr[Rr.length]=Ur,Ni=gi}var Oi="";for(Hr=Rr.length-1;Hr>=0;Hr--)Oi+=_t.charAt(Rr[Hr]);var Mi=Math.ceil(Ee.length*8/(Math.log(_t.length)/Math.log(2)));for(Hr=Oi.length;Hr>>6&31,128|Rr&63):Rr<=65535?_t+=String.fromCharCode(224|Rr>>>12&15,128|Rr>>>6&63,128|Rr&63):Rr<=2097151&&(_t+=String.fromCharCode(240|Rr>>>18&7,128|Rr>>>12&63,128|Rr>>>6&63,128|Rr&63));return _t}function Bc(Ee){for(var _t=Array(Ee.length>>2),zt=0;zt<_t.length;zt++)_t[zt]=0;for(var zt=0;zt>5]|=(Ee.charCodeAt(zt/8)&255)<<24-zt%32;return _t}function Tt(Ee){for(var _t="",zt=0;zt>5]>>>24-zt%32&255);return _t}function Xt(Ee,_t){return Ee>>>_t|Ee<<32-_t}function Lr(Ee,_t){return Ee>>>_t}function Ar(Ee,_t,zt){return Ee&_t^~Ee&zt}function Jr(Ee,_t,zt){return Ee&_t^Ee&zt^_t&zt}function Ei(Ee){return Xt(Ee,2)^Xt(Ee,13)^Xt(Ee,22)}function Wi(Ee){return Xt(Ee,6)^Xt(Ee,11)^Xt(Ee,25)}function hn(Ee){return Xt(Ee,7)^Xt(Ee,18)^Lr(Ee,3)}function Tn(Ee){return Xt(Ee,17)^Xt(Ee,19)^Lr(Ee,10)}var Bn=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Zi(Ee,_t){var zt=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Rr=new Array(64),Hr,Br,Ur,gi,Ni,Oi,Mi,Hn,Qi,Hi,oi,Mr;for(Ee[_t>>5]|=128<<24-_t%32,Ee[(_t+64>>9<<4)+15]=_t,Qi=0;Qi>16)+(_t>>16)+(zt>>16);return Rr<<16|zt&65535}function an(Ee){return Array.prototype.slice.call(Ee)}function Di(Ee){return an(Ee).join("")}function $n(Ee){var _t=Ee&&Ee.cache,zt=0,Rr=[],Hr=[],Br=[];function Ur(oi,Mr){var Zr=Mr&&Mr.stable;if(!Zr){for(var xi=0;xi0&&(oi.push(Ii,"="),oi.push.apply(oi,an(arguments)),oi.push(";")),Ii}return e(Mr,{def:xi,toString:function(){return Di([Zr.length>0?"var "+Zr.join(",")+";":"",Di(oi)])}})}function Ni(){var oi=gi(),Mr=gi(),Zr=oi.toString,xi=Mr.toString;function Ii(ci,nn){Mr(ci,nn,"=",oi.def(ci,nn),";")}return e(function(){oi.apply(oi,an(arguments))},{def:oi.def,entry:oi,exit:Mr,save:Ii,set:function(ci,nn,Xi){Ii(ci,nn),oi(ci,nn,"=",Xi,";")},toString:function(){return Zr()+xi()}})}function Oi(){var oi=Di(arguments),Mr=Ni(),Zr=Ni(),xi=Mr.toString,Ii=Zr.toString;return e(Mr,{then:function(){return Mr.apply(Mr,an(arguments)),this},else:function(){return Zr.apply(Zr,an(arguments)),this},toString:function(){var ci=Ii();return ci&&(ci="else{"+ci+"}"),Di(["if(",oi,"){",xi(),"}",ci])}})}var Mi=gi(),Hn={};function Qi(oi,Mr){var Zr=[];function xi(){var qn="a"+Zr.length;return Zr.push(qn),qn}Mr=Mr||0;for(var Ii=0;Ii[p.viewport.x,p.viewport.y,b.viewportWidth,b.viewportHeight]},attributes:{color:{buffer:o,offset:(b,p)=>p.offset*4,divisor:1},position:{buffer:i,offset:(b,p)=>p.offset*8,divisor:1},positionFract:{buffer:a,offset:(b,p)=>p.offset*8,divisor:1},error:{buffer:s,offset:(b,p)=>p.offset*16,divisor:1},direction:{buffer:l,stride:24,offset:0},lineOffset:{buffer:l,stride:24,offset:8},capOffset:{buffer:l,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:QOe.length}),JOe(f,{update:v,draw:h,destroy:_,regl:e,gl:r,canvas:r.canvas,groups:c}),f;function f(b){b?v(b):b===null&&_(),h()}function h(b){if(typeof b=="number")return d(b);b&&!Array.isArray(b)&&(b=[b]),e._refresh(),c.forEach((p,C)=>{if(p){if(b&&(b[C]?p.draw=!0:p.draw=!1),!p.draw){p.draw=!0;return}d(C)}})}function d(b){typeof b=="number"&&(b=c[b]),b!=null&&b&&b.count&&b.color&&b.opacity&&b.positions&&b.positions.length>1&&(b.scaleRatio=[b.scale[0]*b.viewport.width,b.scale[1]*b.viewport.height],n(b),b.after&&b.after(b))}function v(b){if(!b)return;b.length!=null?typeof b[0]=="number"&&(b=[{positions:b}]):Array.isArray(b)||(b=[b]);let p=0,C=0;if(f.groups=c=b.map((L,x)=>{let k=c[x];if(L)typeof L=="function"?L={after:L}:typeof L[0]=="number"&&(L={positions:L});else return k;return L=KBt(L,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),k||(c[x]=k={id:x,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},L=JOe({},u,L)),YBt(k,L,[{lineWidth:M=>+M*.5,capSize:M=>+M*.5,opacity:parseFloat,errors:M=>(M=$Oe(M),C+=M.length,M),positions:(M,g)=>(M=$Oe(M,"float64"),g.count=Math.floor(M.length/2),g.bounds=XBt(M,2),g.offset=p,p+=g.count,M)},{color:(M,g)=>{let P=g.count;if(M||(M="transparent"),!Array.isArray(M)||typeof M[0]=="number"){let z=M;M=Array(P);for(let O=0;O{let T=g.bounds;return M||(M=T),g.scale=[1/(M[2]-M[0]),1/(M[3]-M[1])],g.translate=[-M[0],-M[1]],g.scaleFract=UY(g.scale),g.translateFract=UY(g.translate),M},viewport:M=>{let g;return Array.isArray(M)?g={x:M[0],y:M[1],width:M[2]-M[0],height:M[3]-M[1]}:M?(g={x:M.x||M.left||0,y:M.y||M.top||0},M.right?g.width=M.right-g.x:g.width=M.w||M.width||0,M.bottom?g.height=M.bottom-g.y:g.height=M.h||M.height||0):g={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},g}}]),k}),p||C){let L=c.reduce((g,P,T)=>g+(P?P.count:0),0),x=new Float64Array(L*2),k=new Uint8Array(L*4),M=new Float32Array(L*4);c.forEach((g,P)=>{if(!g)return;let{positions:T,count:z,offset:O,color:V,errors:G}=g;z&&(k.set(V,O*4),M.set(G,O*4),x.set(T,O*2))});var E=JBt(x);i(E);var A=UY(x,E);a(A),o(k),s(M)}}function _(){i.destroy(),a.destroy(),o.destroy(),s.destroy(),l.destroy()}}});var nqe=ye((Oyr,iqe)=>{var rqe=/[\'\"]/;iqe.exports=function(t){return t?(rqe.test(t.charAt(0))&&(t=t.substr(1)),rqe.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}});var VY=ye(()=>{});var GY=ye(()=>{});var HY=ye(()=>{});var jY=ye(()=>{});var WY=ye(()=>{});var lqe=ye((Zyr,sqe)=>{"use strict";function aqe(e,t){if(typeof e!="string")return[e];var r=[e];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var n=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],i=t.escape||"___",a=!!t.flat;n.forEach(function(l){var u=new RegExp(["\\",l[0],"[^\\",l[0],"\\",l[1],"]*\\",l[1]].join("")),c=[];function f(h,d,v){var _=r.push(h.slice(l[0].length,-l[1].length))-1;return c.push(_),i+_+i}r.forEach(function(h,d){for(var v,_=0;h!=v;)if(v=h,h=h.replace(u,f),_++>1e4)throw Error("References have circular dependency. Please, check them.");r[d]=h}),c=c.reverse(),r=r.map(function(h){return c.forEach(function(d){h=h.replace(new RegExp("(\\"+i+d+"\\"+i+")","g"),l[0]+"$1"+l[1])}),h})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function s(l,u,c){for(var f=[],h,d=0;h=o.exec(l);){if(d++>1e4)throw Error("Circular references in parenthesis");f.push(l.slice(0,h.index)),f.push(s(u[h[1]],u)),l=l.slice(h.index+h[0].length)}return f.push(l),f}return a?r:s(r[0],r)}function oqe(e,t){if(t&&t.flat){var r=t&&t.escape||"___",n=e[0],i;if(!n)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;n!=i;){if(o++>1e4)throw Error("Circular references in "+e);i=n,n=n.replace(a,s)}return n}return e.reduce(function l(u,c){return Array.isArray(c)&&(c=c.reduce(l,"")),u+c},"");function s(l,u){if(e[u]==null)throw Error("Reference "+u+"is undefined");return e[u]}}function XY(e,t){return Array.isArray(e)?oqe(e,t):aqe(e,t)}XY.parse=aqe;XY.stringify=oqe;sqe.exports=XY});var fqe=ye((Yyr,cqe)=>{"use strict";var uqe=lqe();cqe.exports=function(t,r,n){if(t==null)throw Error("First argument should be a string");if(r==null)throw Error("Separator should be a string or a RegExp");n?(typeof n=="string"||Array.isArray(n))&&(n={ignore:n}):n={},n.escape==null&&(n.escape=!0),n.ignore==null?n.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof n.ignore=="string"&&(n.ignore=[n.ignore]),n.ignore=n.ignore.map(function(f){return f.length===1&&(f=f+f),f}));var i=uqe.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var s=[],l=0;l{});var ZY=ye(($yr,dqe)=>{"use strict";var QBt=hqe();dqe.exports={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||QBt.indexOf(t)!==-1}}});var mqe=ye((Qyr,gqe)=>{"use strict";var eNt=nqe(),tNt=VY(),rNt=GY(),iNt=HY(),nNt=jY(),aNt=WY(),YY=fqe(),oNt=ZY().isSize;gqe.exports=pqe;var bC=pqe.cache={};function pqe(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(bC[e])return bC[e];if(e==="")throw new Error("Cannot parse an empty string.");if(rNt.indexOf(e)!==-1)return bC[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=YY(e,/\s+/),n;n=r.shift();){if(tNt.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),bC[e]=t;if(nNt.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(aNt.indexOf(n)!==-1){t.stretch=n;continue}if(iNt.indexOf(n)!==-1){t.weight=n;continue}if(oNt(n)){var i=YY(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=vqe(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=vqe(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=YY(r.join(" "),/\s*,\s*/).map(eNt),bC[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function vqe(e){var t=parseFloat(e);return t.toString()===e?t:e}});var JY=ye((e1r,yqe)=>{"use strict";var sNt=Xm(),lNt=ZY().isSize,uNt=TC(VY()),cNt=TC(GY()),fNt=TC(HY()),hNt=TC(jY()),dNt=TC(WY()),vNt={normal:1,"small-caps":1},pNt={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},KY={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};yqe.exports=function(t){if(t=sNt(t,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),t.system)return t.system&&wC(t.system,cNt),t.system;if(wC(t.style,hNt),wC(t.variant,vNt),wC(t.weight,fNt),wC(t.stretch,dNt),t.size==null&&(t.size=KY.size),typeof t.size=="number"&&(t.size+="px"),!lNt)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=KY.family),Array.isArray(t.family)&&(t.family.length||(t.family=[KY.family]),t.family=t.family.map(function(n){return pNt[n]?n:'"'+n+'"'}).join(", "));var r=[];return r.push(t.style),t.variant!==t.style&&r.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&r.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&r.push(t.stretch),r.push(t.size+(t.lineHeight==null||t.lineHeight==="normal"||t.lineHeight+""=="1"?"":"/"+t.lineHeight)),r.push(t.family),r.filter(Boolean).join(" ")};function wC(e,t){if(e&&!t[e]&&!uNt[e])throw Error("Unknown keyword `"+e+"`");return e}function TC(e){for(var t={},r=0;r{"use strict";_qe.exports={parse:mqe(),stringify:JY()}});var bqe=ye(($Y,QY)=>{(function(e,t){typeof $Y=="object"&&typeof QY!="undefined"?QY.exports=t():e.createREGL=t()})($Y,function(){"use strict";var e=function(Ee,xt){for(var zt=Object.keys(xt),Ir=0;Ir1&&xt===zt&&(xt==='"'||xt==="'"))return['"'+o(Ee.substr(1,Ee.length-2))+'"'];var Ir=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Ee);if(Ir)return s(Ee.substr(0,Ir.index)).concat(s(Ir[1])).concat(s(Ee.substr(Ir.index+Ir[0].length)));var Hr=Ee.split(".");if(Hr.length===1)return['"'+o(Ee)+'"'];for(var Br=[],Vr=0;Vr65535)<<4,Ee>>>=xt,zt=(Ee>255)<<3,Ee>>>=zt,xt|=zt,zt=(Ee>15)<<2,Ee>>>=zt,xt|=zt,zt=(Ee>3)<<1,Ee>>>=zt,xt|=zt,xt|Ee>>1}function N(){var Ee=M(8,function(){return[]});function xt(Br){var Vr=Z(Br),mi=Ee[H(Vr)>>2];return mi.length>0?mi.pop():new ArrayBuffer(Vr)}function zt(Br){Ee[H(Br.byteLength)>>2].push(Br)}function Ir(Br,Vr){var mi=null;switch(Br){case g:mi=new Int8Array(xt(Vr),0,Vr);break;case P:mi=new Uint8Array(xt(Vr),0,Vr);break;case T:mi=new Int16Array(xt(2*Vr),0,Vr);break;case z:mi=new Uint16Array(xt(2*Vr),0,Vr);break;case O:mi=new Int32Array(xt(4*Vr),0,Vr);break;case V:mi=new Uint32Array(xt(4*Vr),0,Vr);break;case G:mi=new Float32Array(xt(4*Vr),0,Vr);break;default:return null}return mi.length!==Vr?mi.subarray(0,Vr):mi}function Hr(Br){zt(Br.buffer)}return{alloc:xt,free:zt,allocType:Ir,freeType:Hr}}var j=N();j.zero=N();var re=3408,oe=3410,_e=3411,Me=3412,ke=3413,me=3414,ie=3415,Se=33901,Le=33902,Ae=3379,De=3386,Pe=34921,ge=36347,Fe=36348,ce=35661,Ye=35660,ct=34930,pt=36349,Wt=34076,st=34024,lt=7936,Gt=7937,Nt=7938,$t=35724,sr=34047,wr=36063,ur=34852,Qe=3553,Et=34067,er=34069,Ut=33984,Ft=6408,bt=5126,yt=5121,Yt=36160,lr=36053,Tr=36064,Rr=16384,ei=function(Ee,xt){var zt=1;xt.ext_texture_filter_anisotropic&&(zt=Ee.getParameter(sr));var Ir=1,Hr=1;xt.webgl_draw_buffers&&(Ir=Ee.getParameter(ur),Hr=Ee.getParameter(wr));var Br=!!xt.oes_texture_float;if(Br){var Vr=Ee.createTexture();Ee.bindTexture(Qe,Vr),Ee.texImage2D(Qe,0,Ft,1,1,0,Ft,bt,null);var mi=Ee.createFramebuffer();if(Ee.bindFramebuffer(Yt,mi),Ee.framebufferTexture2D(Yt,Tr,Qe,Vr,0),Ee.bindTexture(Qe,null),Ee.checkFramebufferStatus(Yt)!==lr)Br=!1;else{Ee.viewport(0,0,1,1),Ee.clearColor(1,0,0,1),Ee.clear(Rr);var Ni=j.allocType(bt,4);Ee.readPixels(0,0,1,1,Ft,bt,Ni),Ee.getError()?Br=!1:(Ee.deleteFramebuffer(mi),Ee.deleteTexture(Vr),Br=Ni[0]===1),j.freeType(Ni)}}var Oi=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Mi=!0;if(!Oi){var Hn=Ee.createTexture(),Qi=j.allocType(yt,36);Ee.activeTexture(Ut),Ee.bindTexture(Et,Hn),Ee.texImage2D(er,0,Ft,3,3,0,Ft,yt,Qi),j.freeType(Qi),Ee.bindTexture(Et,null),Ee.deleteTexture(Hn),Mi=!Ee.getError()}return{colorBits:[Ee.getParameter(oe),Ee.getParameter(_e),Ee.getParameter(Me),Ee.getParameter(ke)],depthBits:Ee.getParameter(me),stencilBits:Ee.getParameter(ie),subpixelBits:Ee.getParameter(re),extensions:Object.keys(xt).filter(function(ji){return!!xt[ji]}),maxAnisotropic:zt,maxDrawbuffers:Ir,maxColorAttachments:Hr,pointSizeDims:Ee.getParameter(Se),lineWidthDims:Ee.getParameter(Le),maxViewportDims:Ee.getParameter(De),maxCombinedTextureUnits:Ee.getParameter(ce),maxCubeMapSize:Ee.getParameter(Wt),maxRenderbufferSize:Ee.getParameter(st),maxTextureUnits:Ee.getParameter(ct),maxTextureSize:Ee.getParameter(Ae),maxAttributes:Ee.getParameter(Pe),maxVertexUniforms:Ee.getParameter(ge),maxVertexTextureUnits:Ee.getParameter(Ye),maxVaryingVectors:Ee.getParameter(Fe),maxFragmentUniforms:Ee.getParameter(pt),glsl:Ee.getParameter($t),renderer:Ee.getParameter(Gt),vendor:Ee.getParameter(lt),version:Ee.getParameter(Nt),readFloat:Br,npotTextureCube:Mi}},Wr=function(Ee){return Ee instanceof Uint8Array||Ee instanceof Uint16Array||Ee instanceof Uint32Array||Ee instanceof Int8Array||Ee instanceof Int16Array||Ee instanceof Int32Array||Ee instanceof Float32Array||Ee instanceof Float64Array||Ee instanceof Uint8ClampedArray};function Ur(Ee){return!!Ee&&typeof Ee=="object"&&Array.isArray(Ee.shape)&&Array.isArray(Ee.stride)&&typeof Ee.offset=="number"&&Ee.shape.length===Ee.stride.length&&(Array.isArray(Ee.data)||Wr(Ee.data))}var dt=function(Ee){return Object.keys(Ee).map(function(xt){return Ee[xt]})},Ge={shape:xe,flatten:Ie};function Je(Ee,xt,zt){for(var Ir=0;Ir0){var qn;if(Array.isArray(Yr[0])){Xi=kn(Yr);for(var vi=1,li=1;li0){if(typeof vi[0]=="number"){var Ui=j.allocType(ci.dtype,vi.length);Er(Ui,vi),Xi(Ui,mn),j.freeType(Ui)}else if(Array.isArray(vi[0])||Wr(vi[0])){Ki=kn(vi);var Bi=Vn(vi,Ki,ci.dtype);Xi(Bi,mn),j.freeType(Bi)}}}else if(Ur(vi)){Ki=vi.shape;var vn=vi.stride,Un=0,na=0,Yi=0,Ln=0;Ki.length===1?(Un=Ki[0],na=1,Yi=vn[0],Ln=0):Ki.length===2&&(Un=Ki[0],na=Ki[1],Yi=vn[0],Ln=vn[1]);var ra=Array.isArray(vi.data)?ci.dtype:ar(vi.data),oa=j.allocType(ra,Un*na);Zr(oa,vi.data,Un,na,Yi,Ln,vi.offset),Xi(oa,mn),j.freeType(oa)}return nn}return xi||nn(Mr),nn._reglType="buffer",nn._buffer=ci,nn.subdata=qn,zt.profile&&(nn.stats=ci.stats),nn.destroy=function(){Qi(ci)},nn}function si(){dt(Br).forEach(function(Mr){Mr.buffer=Ee.createBuffer(),Ee.bindBuffer(Mr.type,Mr.buffer),Ee.bufferData(Mr.type,Mr.persistentData||Mr.byteLength,Mr.usage)})}return zt.profile&&(xt.getTotalBufferSize=function(){var Mr=0;return Object.keys(Br).forEach(function(Yr){Mr+=Br[Yr].stats.size}),Mr}),{create:ji,createStream:Ni,destroyStream:Oi,clear:function(){dt(Br).forEach(Qi),mi.forEach(Qi)},getBuffer:function(Mr){return Mr&&Mr._buffer instanceof Vr?Mr._buffer:null},restore:si,_initBuffer:Hn}}var $r=0,zi=0,Ji=1,en=1,cn=4,yn=4,Mn={points:$r,point:zi,lines:Ji,line:en,triangles:cn,triangle:yn,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ba=0,la=1,ma=4,Wa=5120,Fa=5121,Wo=5122,da=5123,Wn=5124,Ga=5125,vo=34963,jn=35040,St=35044;function Cr(Ee,xt,zt,Ir){var Hr={},Br=0,Vr={uint8:Fa,uint16:da};xt.oes_element_index_uint&&(Vr.uint32=Ga);function mi(si){this.id=Br++,Hr[this.id]=this,this.buffer=si,this.primType=ma,this.vertCount=0,this.type=0}mi.prototype.bind=function(){this.buffer.bind()};var Ni=[];function Oi(si){var Mr=Ni.pop();return Mr||(Mr=new mi(zt.create(null,vo,!0,!1)._buffer)),Hn(Mr,si,jn,-1,-1,0,0),Mr}function Mi(si){Ni.push(si)}function Hn(si,Mr,Yr,xi,Ii,ci,nn){si.buffer.bind();var Xi;if(Mr){var qn=nn;!nn&&(!Wr(Mr)||Ur(Mr)&&!Wr(Mr.data))&&(qn=xt.oes_element_index_uint?Ga:da),zt._initBuffer(si.buffer,Mr,Yr,qn,3)}else Ee.bufferData(vo,ci,Yr),si.buffer.dtype=Xi||Fa,si.buffer.usage=Yr,si.buffer.dimension=3,si.buffer.byteLength=ci;if(Xi=nn,!nn){switch(si.buffer.dtype){case Fa:case Wa:Xi=Fa;break;case da:case Wo:Xi=da;break;case Ga:case Wn:Xi=Ga;break;default:}si.buffer.dtype=Xi}si.type=Xi;var vi=Ii;vi<0&&(vi=si.buffer.byteLength,Xi===da?vi>>=1:Xi===Ga&&(vi>>=2)),si.vertCount=vi;var li=xi;if(xi<0){li=ma;var mn=si.buffer.dimension;mn===1&&(li=Ba),mn===2&&(li=la),mn===3&&(li=ma)}si.primType=li}function Qi(si){Ir.elementsCount--,delete Hr[si.id],si.buffer.destroy(),si.buffer=null}function ji(si,Mr){var Yr=zt.create(null,vo,!0),xi=new mi(Yr._buffer);Ir.elementsCount++;function Ii(ci){if(!ci)Yr(),xi.primType=ma,xi.vertCount=0,xi.type=Fa;else if(typeof ci=="number")Yr(ci),xi.primType=ma,xi.vertCount=ci|0,xi.type=Fa;else{var nn=null,Xi=St,qn=-1,vi=-1,li=0,mn=0;Array.isArray(ci)||Wr(ci)||Ur(ci)?nn=ci:("data"in ci&&(nn=ci.data),"usage"in ci&&(Xi=pn[ci.usage]),"primitive"in ci&&(qn=Mn[ci.primitive]),"count"in ci&&(vi=ci.count|0),"type"in ci&&(mn=Vr[ci.type]),"length"in ci?li=ci.length|0:(li=vi,mn===da||mn===Wo?li*=2:(mn===Ga||mn===Wn)&&(li*=4))),Hn(xi,nn,Xi,qn,vi,li,mn)}return Ii}return Ii(si),Ii._reglType="elements",Ii._elements=xi,Ii.subdata=function(ci,nn){return Yr.subdata(ci,nn),Ii},Ii.destroy=function(){Qi(xi)},Ii}return{create:ji,createStream:Oi,destroyStream:Mi,getElements:function(si){return typeof si=="function"&&si._elements instanceof mi?si._elements:null},clear:function(){dt(Hr).forEach(Qi)}}}var Qr=new Float32Array(1),pi=new Uint32Array(Qr.buffer),fn=5123;function Sn(Ee){for(var xt=j.allocType(fn,Ee.length),zt=0;zt>>31<<15,Br=(Ir<<1>>>24)-127,Vr=Ir>>13&1023;if(Br<-24)xt[zt]=Hr;else if(Br<-14){var mi=-14-Br;xt[zt]=Hr+(Vr+1024>>mi)}else Br>15?xt[zt]=Hr+31744:xt[zt]=Hr+(Br+15<<10)+Vr}return xt}function En(Ee){return Array.isArray(Ee)||Wr(Ee)}var ki=34467,_n=3553,ya=34067,Jn=34069,Ma=6408,_o=6406,No=6407,po=6409,Lo=6410,Co=32854,Fs=32855,zs=36194,ul=32819,cl=32820,Fl=33635,cs=34042,nl=6402,Ss=34041,fl=35904,Js=35906,Os=36193,Io=33776,us=33777,Zl=33778,Su=33779,nc=35986,ws=35987,Fn=34798,_a=35840,Vu=35841,zl=35842,xo=35843,Yl=36196,Us=5121,Hl=5123,ac=5125,aa=5126,Oo=10242,qo=10243,Ol=10497,Pc=33071,Do=33648,rf=10240,Uf=10241,ml=9728,Zc=9729,Kl=9984,qs=9985,yu=9986,oc=9987,Cf=33170,sc=4352,Nh=4353,kf=4354,fs=34046,nf=3317,Vf=37440,Jl=37441,hl=37443,lc=37444,Fu=33984,Cs=[Kl,yu,qs,oc],js=[0,po,Lo,No,Ma],Go={};Go[po]=Go[_o]=Go[nl]=1,Go[Ss]=Go[Lo]=2,Go[No]=Go[fl]=3,Go[Ma]=Go[Js]=4;function gs(Ee){return"[object "+Ee+"]"}var uc=gs("HTMLCanvasElement"),xl=gs("OffscreenCanvas"),Gu=gs("CanvasRenderingContext2D"),Bs=gs("ImageBitmap"),ad=gs("HTMLImageElement"),Po=gs("HTMLVideoElement"),od=Object.keys(Ce).concat([uc,xl,Gu,Bs,ad,Po]),Yo=[];Yo[Us]=1,Yo[aa]=4,Yo[Os]=2,Yo[Hl]=2,Yo[ac]=4;var Pa=[];Pa[Co]=2,Pa[Fs]=2,Pa[zs]=2,Pa[Ss]=4,Pa[Io]=.5,Pa[us]=.5,Pa[Zl]=1,Pa[Su]=1,Pa[nc]=.5,Pa[ws]=1,Pa[Fn]=1,Pa[_a]=.5,Pa[Vu]=.25,Pa[zl]=.5,Pa[xo]=.25,Pa[Yl]=.5;function af(Ee){return Array.isArray(Ee)&&(Ee.length===0||typeof Ee[0]=="number")}function Hu(Ee){if(!Array.isArray(Ee))return!1;var xt=Ee.length;return!(xt===0||!En(Ee[0]))}function bl(Ee){return Object.prototype.toString.call(Ee)}function Gf(Ee){return bl(Ee)===uc}function Ic(Ee){return bl(Ee)===xl}function mf(Ee){return bl(Ee)===Gu}function ql(Ee){return bl(Ee)===Bs}function _h(Ee){return bl(Ee)===ad}function Qf(Ee){return bl(Ee)===Po}function yf(Ee){if(!Ee)return!1;var xt=bl(Ee);return od.indexOf(xt)>=0?!0:af(Ee)||Hu(Ee)||Ur(Ee)}function Yc(Ee){return Ce[Object.prototype.toString.call(Ee)]|0}function eh(Ee,xt){var zt=xt.length;switch(Ee.type){case Us:case Hl:case ac:case aa:var Ir=j.allocType(Ee.type,zt);Ir.set(xt),Ee.data=Ir;break;case Os:Ee.data=Sn(xt);break;default:}}function th(Ee,xt){return j.allocType(Ee.type===Os?aa:Ee.type,xt)}function ju(Ee,xt){Ee.type===Os?(Ee.data=Sn(xt),j.freeType(xt)):Ee.data=xt}function Hf(Ee,xt,zt,Ir,Hr,Br){for(var Vr=Ee.width,mi=Ee.height,Ni=Ee.channels,Oi=Vr*mi*Ni,Mi=th(Ee,Oi),Hn=0,Qi=0;Qi=1;)mi+=Vr*Ni*Ni,Ni/=2;return mi}else return Vr*zt*Ir}function of(Ee,xt,zt,Ir,Hr,Br,Vr){var mi={"don't care":sc,"dont care":sc,nice:kf,fast:Nh},Ni={repeat:Ol,clamp:Pc,mirror:Do},Oi={nearest:ml,linear:Zc},Mi=e({mipmap:oc,"nearest mipmap nearest":Kl,"linear mipmap nearest":qs,"nearest mipmap linear":yu,"linear mipmap linear":oc},Oi),Hn={none:0,browser:lc},Qi={uint8:Us,rgba4:ul,rgb565:Fl,"rgb5 a1":cl},ji={alpha:_o,luminance:po,"luminance alpha":Lo,rgb:No,rgba:Ma,rgba4:Co,"rgb5 a1":Fs,rgb565:zs},si={};xt.ext_srgb&&(ji.srgb=fl,ji.srgba=Js),xt.oes_texture_float&&(Qi.float32=Qi.float=aa),xt.oes_texture_half_float&&(Qi.float16=Qi["half float"]=Os),xt.webgl_depth_texture&&(e(ji,{depth:nl,"depth stencil":Ss}),e(Qi,{uint16:Hl,uint32:ac,"depth stencil":cs})),xt.webgl_compressed_texture_s3tc&&e(si,{"rgb s3tc dxt1":Io,"rgba s3tc dxt1":us,"rgba s3tc dxt3":Zl,"rgba s3tc dxt5":Su}),xt.webgl_compressed_texture_atc&&e(si,{"rgb atc":nc,"rgba atc explicit alpha":ws,"rgba atc interpolated alpha":Fn}),xt.webgl_compressed_texture_pvrtc&&e(si,{"rgb pvrtc 4bppv1":_a,"rgb pvrtc 2bppv1":Vu,"rgba pvrtc 4bppv1":zl,"rgba pvrtc 2bppv1":xo}),xt.webgl_compressed_texture_etc1&&(si["rgb etc1"]=Yl);var Mr=Array.prototype.slice.call(Ee.getParameter(ki));Object.keys(si).forEach(function(ne){var we=si[ne];Mr.indexOf(we)>=0&&(ji[ne]=we)});var Yr=Object.keys(ji);zt.textureFormats=Yr;var xi=[];Object.keys(ji).forEach(function(ne){var we=ji[ne];xi[we]=ne});var Ii=[];Object.keys(Qi).forEach(function(ne){var we=Qi[ne];Ii[we]=ne});var ci=[];Object.keys(Oi).forEach(function(ne){var we=Oi[ne];ci[we]=ne});var nn=[];Object.keys(Mi).forEach(function(ne){var we=Mi[ne];nn[we]=ne});var Xi=[];Object.keys(Ni).forEach(function(ne){var we=Ni[ne];Xi[we]=ne});var qn=Yr.reduce(function(ne,we){var Ue=ji[we];return Ue===po||Ue===_o||Ue===po||Ue===Lo||Ue===nl||Ue===Ss||xt.ext_srgb&&(Ue===fl||Ue===Js)?ne[Ue]=Ue:Ue===Fs||we.indexOf("rgba")>=0?ne[Ue]=Ma:ne[Ue]=No,ne},{});function vi(){this.internalformat=Ma,this.format=Ma,this.type=Us,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=lc,this.width=0,this.height=0,this.channels=0}function li(ne,we){ne.internalformat=we.internalformat,ne.format=we.format,ne.type=we.type,ne.compressed=we.compressed,ne.premultiplyAlpha=we.premultiplyAlpha,ne.flipY=we.flipY,ne.unpackAlignment=we.unpackAlignment,ne.colorSpace=we.colorSpace,ne.width=we.width,ne.height=we.height,ne.channels=we.channels}function mn(ne,we){if(!(typeof we!="object"||!we)){if("premultiplyAlpha"in we&&(ne.premultiplyAlpha=we.premultiplyAlpha),"flipY"in we&&(ne.flipY=we.flipY),"alignment"in we&&(ne.unpackAlignment=we.alignment),"colorSpace"in we&&(ne.colorSpace=Hn[we.colorSpace]),"type"in we){var Ue=we.type;ne.type=Qi[Ue]}var ft=ne.width,Zt=ne.height,hr=ne.channels,qt=!1;"shape"in we?(ft=we.shape[0],Zt=we.shape[1],we.shape.length===3&&(hr=we.shape[2],qt=!0)):("radius"in we&&(ft=Zt=we.radius),"width"in we&&(ft=we.width),"height"in we&&(Zt=we.height),"channels"in we&&(hr=we.channels,qt=!0)),ne.width=ft|0,ne.height=Zt|0,ne.channels=hr|0;var Ve=!1;if("format"in we){var et=we.format,at=ne.internalformat=ji[et];ne.format=qn[at],et in Qi&&("type"in we||(ne.type=Qi[et])),et in si&&(ne.compressed=!0),Ve=!0}!qt&&Ve?ne.channels=Go[ne.format]:qt&&!Ve&&ne.channels!==js[ne.format]&&(ne.format=ne.internalformat=js[ne.channels])}}function Ki(ne){Ee.pixelStorei(Vf,ne.flipY),Ee.pixelStorei(Jl,ne.premultiplyAlpha),Ee.pixelStorei(hl,ne.colorSpace),Ee.pixelStorei(nf,ne.unpackAlignment)}function Ui(){vi.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Bi(ne,we){var Ue=null;if(yf(we)?Ue=we:we&&(mn(ne,we),"x"in we&&(ne.xOffset=we.x|0),"y"in we&&(ne.yOffset=we.y|0),yf(we.data)&&(Ue=we.data)),we.copy){var ft=Hr.viewportWidth,Zt=Hr.viewportHeight;ne.width=ne.width||ft-ne.xOffset,ne.height=ne.height||Zt-ne.yOffset,ne.needsCopy=!0}else if(!Ue)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(Wr(Ue))ne.channels=ne.channels||4,ne.data=Ue,!("type"in we)&&ne.type===Us&&(ne.type=Yc(Ue));else if(af(Ue))ne.channels=ne.channels||4,eh(ne,Ue),ne.alignment=1,ne.needsFree=!0;else if(Ur(Ue)){var hr=Ue.data;!Array.isArray(hr)&&ne.type===Us&&(ne.type=Yc(hr));var qt=Ue.shape,Ve=Ue.stride,et,at,kt,Ot,It,Bt;qt.length===3?(kt=qt[2],Bt=Ve[2]):(kt=1,Bt=1),et=qt[0],at=qt[1],Ot=Ve[0],It=Ve[1],ne.alignment=1,ne.width=et,ne.height=at,ne.channels=kt,ne.format=ne.internalformat=js[kt],ne.needsFree=!0,Hf(ne,hr,Ot,It,Bt,Ue.offset)}else if(Gf(Ue)||Ic(Ue)||mf(Ue))Gf(Ue)||Ic(Ue)?ne.element=Ue:ne.element=Ue.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(ql(Ue))ne.element=Ue,ne.width=Ue.width,ne.height=Ue.height,ne.channels=4;else if(_h(Ue))ne.element=Ue,ne.width=Ue.naturalWidth,ne.height=Ue.naturalHeight,ne.channels=4;else if(Qf(Ue))ne.element=Ue,ne.width=Ue.videoWidth,ne.height=Ue.videoHeight,ne.channels=4;else if(Hu(Ue)){var Rt=ne.width||Ue[0].length,mt=ne.height||Ue.length,Pt=ne.channels;En(Ue[0][0])?Pt=Pt||Ue[0][0].length:Pt=Pt||1;for(var ht=Ge.shape(Ue),cr=1,br=0;br>=Zt,Ue.height>>=Zt,Bi(Ue,ft[Zt]),ne.mipmask|=1<=0&&!("faces"in we)&&(ne.genMipmaps=!0)}if("mag"in we){var ft=we.mag;ne.magFilter=Oi[ft]}var Zt=ne.wrapS,hr=ne.wrapT;if("wrap"in we){var qt=we.wrap;typeof qt=="string"?Zt=hr=Ni[qt]:Array.isArray(qt)&&(Zt=Ni[qt[0]],hr=Ni[qt[1]])}else{if("wrapS"in we){var Ve=we.wrapS;Zt=Ni[Ve]}if("wrapT"in we){var et=we.wrapT;hr=Ni[et]}}if(ne.wrapS=Zt,ne.wrapT=hr,"anisotropic"in we){var at=we.anisotropic;ne.anisotropic=we.anisotropic}if("mipmap"in we){var kt=!1;switch(typeof we.mipmap){case"string":ne.mipmapHint=mi[we.mipmap],ne.genMipmaps=!0,kt=!0;break;case"boolean":kt=ne.genMipmaps=we.mipmap;break;case"object":ne.genMipmaps=!1,kt=!0;break;default:}kt&&!("min"in we)&&(ne.minFilter=Kl)}}function ol(ne,we){Ee.texParameteri(we,Uf,ne.minFilter),Ee.texParameteri(we,rf,ne.magFilter),Ee.texParameteri(we,Oo,ne.wrapS),Ee.texParameteri(we,qo,ne.wrapT),xt.ext_texture_filter_anisotropic&&Ee.texParameteri(we,fs,ne.anisotropic),ne.genMipmaps&&(Ee.hint(Cf,ne.mipmapHint),Ee.generateMipmap(we))}var Ul=0,ls={},Gs=zt.maxTextureUnits,Ks=Array(Gs).map(function(){return null});function Ta(ne){vi.call(this),this.mipmask=0,this.internalformat=Ma,this.id=Ul++,this.refCount=1,this.target=ne,this.texture=Ee.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new zo,Vr.profile&&(this.stats={size:0})}function sl(ne){Ee.activeTexture(Fu),Ee.bindTexture(ne.target,ne.texture)}function io(){var ne=Ks[0];ne?Ee.bindTexture(ne.target,ne.texture):Ee.bindTexture(_n,null)}function Y(ne){var we=ne.texture,Ue=ne.unit,ft=ne.target;Ue>=0&&(Ee.activeTexture(Fu+Ue),Ee.bindTexture(ft,null),Ks[Ue]=null),Ee.deleteTexture(we),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete ls[ne.id],Br.textureCount--}e(Ta.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var we=ne.unit;if(we<0){for(var Ue=0;Ue0)continue;ft.unit=-1}Ks[Ue]=ne,we=Ue;break}we>=Gs,Vr.profile&&Br.maxTextureUnits>It)-kt,Bt.height=Bt.height||(Ue.height>>It)-Ot,sl(Ue),Un(Bt,_n,kt,Ot,It),io(),Ln(Bt),ft}function hr(qt,Ve){var et=qt|0,at=Ve|0||et;if(et===Ue.width&&at===Ue.height)return ft;ft.width=Ue.width=et,ft.height=Ue.height=at,sl(Ue);for(var kt=0;Ue.mipmask>>kt;++kt){var Ot=et>>kt,It=at>>kt;if(!Ot||!It)break;Ee.texImage2D(_n,kt,Ue.format,Ot,It,0,Ue.format,Ue.type,null)}return io(),Vr.profile&&(Ue.stats.size=cc(Ue.internalformat,Ue.type,et,at,!1,!1)),ft}return ft(ne,we),ft.subimage=Zt,ft.resize=hr,ft._reglType="texture2d",ft._texture=Ue,Vr.profile&&(ft.stats=Ue.stats),ft.destroy=function(){Ue.decRef()},ft}function J(ne,we,Ue,ft,Zt,hr){var qt=new Ta(ya);ls[qt.id]=qt,Br.cubeCount++;var Ve=new Array(6);function et(Ot,It,Bt,Rt,mt,Pt){var ht,cr=qt.texInfo;for(zo.call(cr),ht=0;ht<6;++ht)Ve[ht]=Va();if(typeof Ot=="number"||!Ot){var br=Ot|0||1;for(ht=0;ht<6;++ht)oa(Ve[ht],br,br)}else if(typeof Ot=="object")if(It)wa(Ve[0],Ot),wa(Ve[1],It),wa(Ve[2],Bt),wa(Ve[3],Rt),wa(Ve[4],mt),wa(Ve[5],Pt);else if(el(cr,Ot),mn(qt,Ot),"faces"in Ot){var Nr=Ot.faces;for(ht=0;ht<6;++ht)li(Ve[ht],qt),wa(Ve[ht],Nr[ht])}else for(ht=0;ht<6;++ht)wa(Ve[ht],Ot);for(li(qt,Ve[0]),cr.genMipmaps?qt.mipmask=(Ve[0].width<<1)-1:qt.mipmask=Ve[0].mipmask,qt.internalformat=Ve[0].internalformat,et.width=Ve[0].width,et.height=Ve[0].height,sl(qt),ht=0;ht<6;++ht)ns(Ve[ht],Jn+ht);for(ol(cr,ya),io(),Vr.profile&&(qt.stats.size=cc(qt.internalformat,qt.type,et.width,et.height,cr.genMipmaps,!0)),et.format=xi[qt.internalformat],et.type=Ii[qt.type],et.mag=ci[cr.magFilter],et.min=nn[cr.minFilter],et.wrapS=Xi[cr.wrapS],et.wrapT=Xi[cr.wrapT],ht=0;ht<6;++ht)Ml(Ve[ht]);return et}function at(Ot,It,Bt,Rt,mt){var Pt=Bt|0,ht=Rt|0,cr=mt|0,br=Yi();return li(br,qt),br.width=0,br.height=0,Bi(br,It),br.width=br.width||(qt.width>>cr)-Pt,br.height=br.height||(qt.height>>cr)-ht,sl(qt),Un(br,Jn+Ot,Pt,ht,cr),io(),Ln(br),et}function kt(Ot){var It=Ot|0;if(It!==qt.width){et.width=qt.width=It,et.height=qt.height=It,sl(qt);for(var Bt=0;Bt<6;++Bt)for(var Rt=0;qt.mipmask>>Rt;++Rt)Ee.texImage2D(Jn+Bt,Rt,qt.format,It>>Rt,It>>Rt,0,qt.format,qt.type,null);return io(),Vr.profile&&(qt.stats.size=cc(qt.internalformat,qt.type,et.width,et.height,!1,!0)),et}}return et(ne,we,Ue,ft,Zt,hr),et.subimage=at,et.resize=kt,et._reglType="textureCube",et._texture=qt,Vr.profile&&(et.stats=qt.stats),et.destroy=function(){qt.decRef()},et}function q(){for(var ne=0;ne>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);else for(var Zt=0;Zt<6;++Zt)Ee.texImage2D(Jn+Zt,ft,Ue.internalformat,Ue.width>>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);ol(Ue.texInfo,Ue.target)})}function de(){for(var ne=0;ne=0?Ml=!0:Ni.indexOf(zo)>=0&&(Ml=!1))),("depthTexture"in Ta||"depthStencilTexture"in Ta)&&(Ks=!!(Ta.depthTexture||Ta.depthStencilTexture)),"depth"in Ta&&(typeof Ta.depth=="boolean"?ns=Ta.depth:(Ul=Ta.depth,Ys=!1)),"stencil"in Ta&&(typeof Ta.stencil=="boolean"?Ys=Ta.stencil:(ls=Ta.stencil,ns=!1)),"depthStencil"in Ta&&(typeof Ta.depthStencil=="boolean"?ns=Ys=Ta.depthStencil:(Gs=Ta.depthStencil,ns=!1,Ys=!1))}var io=null,Y=null,D=null,J=null;if(Array.isArray(Va))io=Va.map(si);else if(Va)io=[si(Va)];else for(io=new Array(ol),ra=0;ra0&&(Ln.depth=Bi[0].depth,Ln.stencil=Bi[0].stencil,Ln.depthStencil=Bi[0].depthStencil),Bi[Yi]?Bi[Yi](Ln):Bi[Yi]=li(Ln)}return e(vn,{width:ra,height:ra,color:zo})}function Un(na){var Yi,Ln=na|0;if(Ln===vn.width)return vn;var ra=vn.color;for(Yi=0;Yi=ra.byteLength?oa.subdata(ra):(oa.destroy(),li.buffers[na]=null)),li.buffers[na]||(oa=li.buffers[na]=Hr.create(Yi,Pf,!1,!0)),Ln.buffer=Hr.getBuffer(oa),Ln.size=Ln.buffer.dimension|0,Ln.normalized=!1,Ln.type=Ln.buffer.dtype,Ln.offset=0,Ln.stride=0,Ln.divisor=0,Ln.state=1,vn[na]=1}else Hr.getBuffer(Yi)?(Ln.buffer=Hr.getBuffer(Yi),Ln.size=Ln.buffer.dimension|0,Ln.normalized=!1,Ln.type=Ln.buffer.dtype,Ln.offset=0,Ln.stride=0,Ln.divisor=0,Ln.state=1):Hr.getBuffer(Yi.buffer)?(Ln.buffer=Hr.getBuffer(Yi.buffer),Ln.size=(+Yi.size||Ln.buffer.dimension)|0,Ln.normalized=!!Yi.normalized||!1,"type"in Yi?Ln.type=Hi[Yi.type]:Ln.type=Ln.buffer.dtype,Ln.offset=(Yi.offset||0)|0,Ln.stride=(Yi.stride||0)|0,Ln.divisor=(Yi.divisor||0)|0,Ln.state=1):"x"in Yi&&(Ln.x=+Yi.x||0,Ln.y=+Yi.y||0,Ln.z=+Yi.z||0,Ln.w=+Yi.w||0,Ln.state=2)}for(var wa=0;wa1)for(var Ki=0;KiMr&&(Mr=Yr.stats.uniformsCount)}),Mr},zt.getMaxAttributesCount=function(){var Mr=0;return Mi.forEach(function(Yr){Yr.stats.attributesCount>Mr&&(Mr=Yr.stats.attributesCount)}),Mr});function si(){Hr={},Br={};for(var Mr=0;Mr16&&(zt=Zi(zt,Ee.length*8));for(var Ir=Array(16),Hr=Array(16),Br=0;Br<16;Br++)Ir[Br]=zt[Br]^909522486,Hr[Br]=zt[Br]^1549556828;var Vr=Zi(Ir.concat(Bc(xt)),512+xt.length*8);return At(Zi(Hr.concat(Vr),768))}function pu(Ee){for(var xt=ah?"0123456789ABCDEF":"0123456789abcdef",zt="",Ir,Hr=0;Hr>>4&15)+xt.charAt(Ir&15);return zt}function qc(Ee){for(var xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zt="",Ir=Ee.length,Hr=0;HrEe.length*8?zt+=Zu:zt+=xt.charAt(Br>>>6*(3-Vr)&63);return zt}function cf(Ee,xt){var zt=xt.length,Ir=Array(),Hr,Br,Vr,mi,Ni=Array(Math.ceil(Ee.length/2));for(Hr=0;Hr0;){for(mi=Array(),Vr=0,Hr=0;Hr0||Br>0)&&(mi[mi.length]=Br);Ir[Ir.length]=Vr,Ni=mi}var Oi="";for(Hr=Ir.length-1;Hr>=0;Hr--)Oi+=xt.charAt(Ir[Hr]);var Mi=Math.ceil(Ee.length*8/(Math.log(xt.length)/Math.log(2)));for(Hr=Oi.length;Hr>>6&31,128|Ir&63):Ir<=65535?xt+=String.fromCharCode(224|Ir>>>12&15,128|Ir>>>6&63,128|Ir&63):Ir<=2097151&&(xt+=String.fromCharCode(240|Ir>>>18&7,128|Ir>>>12&63,128|Ir>>>6&63,128|Ir&63));return xt}function Bc(Ee){for(var xt=Array(Ee.length>>2),zt=0;zt>5]|=(Ee.charCodeAt(zt/8)&255)<<24-zt%32;return xt}function At(Ee){for(var xt="",zt=0;zt>5]>>>24-zt%32&255);return xt}function Xt(Ee,xt){return Ee>>>xt|Ee<<32-xt}function kr(Ee,xt){return Ee>>>xt}function Ar(Ee,xt,zt){return Ee&xt^~Ee&zt}function Kr(Ee,xt,zt){return Ee&xt^Ee&zt^xt&zt}function Ei(Ee){return Xt(Ee,2)^Xt(Ee,13)^Xt(Ee,22)}function Wi(Ee){return Xt(Ee,6)^Xt(Ee,11)^Xt(Ee,25)}function hn(Ee){return Xt(Ee,7)^Xt(Ee,18)^kr(Ee,3)}function Tn(Ee){return Xt(Ee,17)^Xt(Ee,19)^kr(Ee,10)}var Bn=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Zi(Ee,xt){var zt=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Ir=new Array(64),Hr,Br,Vr,mi,Ni,Oi,Mi,Hn,Qi,ji,si,Mr;for(Ee[xt>>5]|=128<<24-xt%32,Ee[(xt+64>>9<<4)+15]=xt,Qi=0;Qi>16)+(xt>>16)+(zt>>16);return Ir<<16|zt&65535}function an(Ee){return Array.prototype.slice.call(Ee)}function Di(Ee){return an(Ee).join("")}function $n(Ee){var xt=Ee&&Ee.cache,zt=0,Ir=[],Hr=[],Br=[];function Vr(si,Mr){var Yr=Mr&&Mr.stable;if(!Yr){for(var xi=0;xi0&&(si.push(Ii,"="),si.push.apply(si,an(arguments)),si.push(";")),Ii}return e(Mr,{def:xi,toString:function(){return Di([Yr.length>0?"var "+Yr.join(",")+";":"",Di(si)])}})}function Ni(){var si=mi(),Mr=mi(),Yr=si.toString,xi=Mr.toString;function Ii(ci,nn){Mr(ci,nn,"=",si.def(ci,nn),";")}return e(function(){si.apply(si,an(arguments))},{def:si.def,entry:si,exit:Mr,save:Ii,set:function(ci,nn,Xi){Ii(ci,nn),si(ci,nn,"=",Xi,";")},toString:function(){return Yr()+xi()}})}function Oi(){var si=Di(arguments),Mr=Ni(),Yr=Ni(),xi=Mr.toString,Ii=Yr.toString;return e(Mr,{then:function(){return Mr.apply(Mr,an(arguments)),this},else:function(){return Yr.apply(Yr,an(arguments)),this},toString:function(){var ci=Ii();return ci&&(ci="else{"+ci+"}"),Di(["if(",si,"){",xi(),"}",ci])}})}var Mi=mi(),Hn={};function Qi(si,Mr){var Yr=[];function xi(){var qn="a"+Yr.length;return Yr.push(qn),qn}Mr=Mr||0;for(var Ii=0;Ii":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ni={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},pi={cw:Te,ccw:Ne};function Pi(Ee){return Array.isArray(Ee)||Gr(Ee)||Yr(Ee)}function Ai(Ee){return Ee.sort(function(_t,zt){return _t===ee?-1:zt===ee?1:_t=1,Rr>=2,_t)}else if(zt===Xo){var Hr=Ee.data;return new ti(Hr.thisDep,Hr.contextDep,Hr.propDep,_t)}else{if(zt===Ms)return new ti(!1,!1,!1,_t);if(zt===os){for(var Br=!1,Ur=!1,gi=!1,Ni=0;Ni=1&&(Ur=!0),Mi>=2&&(gi=!0)}else Oi.type===Xo&&(Br=Br||Oi.data.thisDep,Ur=Ur||Oi.data.contextDep,gi=gi||Oi.data.propDep)}return new ti(Br,Ur,gi,_t)}else return new ti(zt===bo,zt===Ka,zt===zn,_t)}}var ia=new ti(!1,!1,!1,function(){});function Ea(Ee,_t,zt,Rr,Hr,Br,Ur,gi,Ni,Oi,Mi,Hn,Qi,Hi,oi,Mr){var Zr=Oi.Record,xi={add:32774,subtract:32778,"reverse subtract":32779};zt.ext_blend_minmax&&(xi.min=He,xi.max=Ye);var Ii=zt.angle_instanced_arrays,ci=zt.webgl_draw_buffers,nn=zt.oes_vertex_array_object,Xi={dirty:!0,profile:Mr.profile},qn={},hi=[],li={},mn={};function Ki(Ve){return Ve.replace(".","_")}function Ui(Ve,et,at){var kt=Ki(Ve);hi.push(Ve),qn[kt]=Xi[kt]=!!at,li[kt]=et}function Bi(Ve,et,at){var kt=Ki(Ve);hi.push(Ve),Array.isArray(at)?(Xi[kt]=at.slice(),qn[kt]=at.slice()):Xi[kt]=qn[kt]=at,mn[kt]=et}function vn(Ve){return!!isNaN(Ve)}Ui(Ts,Li),Ui(Ho,ii),Bi(yl,"blendColor",[0,0,0,0]),Bi(Xs,"blendEquationSeparate",[yr,yr]),Bi(Ps,"blendFuncSeparate",[gr,Wt,gr,Wt]),Ui(va,sn,!0),Bi(no,"depthFunc",Vr),Bi(_s,"depthRange",[0,1]),Bi(is,"depthMask",!0),Bi($l,$l,[!0,!0,!0,!0]),Ui(ku,jr),Bi(Yu,"cullFace",se),Bi(Nc,Nc,Ne),Bi(gu,gu,1),Ui(Uc,Kn),Bi(xu,"polygonOffset",[0,0]),Ui(Ac,Aa),Ui(Ua,fa),Bi(oo,"sampleCoverage",[1,!1]),Ui(Vc,un),Bi(hc,"stencilMask",-1),Bi(Ku,"stencilFunc",[Et,0,-1]),Bi(ue,"stencilOpSeparate",[X,nt,nt,nt]),Bi(w,"stencilOpSeparate",[se,nt,nt,nt]),Ui(B,Pn),Bi(Q,"scissor",[0,0,Ee.drawingBufferWidth,Ee.drawingBufferHeight]),Bi(ee,ee,[0,0,Ee.drawingBufferWidth,Ee.drawingBufferHeight]);var Un={gl:Ee,context:Qi,strings:_t,next:qn,current:Xi,draw:Hn,elements:Br,buffer:Hr,shader:Mi,attributes:Oi.state,vao:Oi,uniforms:Ni,framebuffer:gi,extensions:zt,timer:Hi,isBufferArgs:Pi},na={primTypes:Mn,compareFuncs:Wr,blendFuncs:bi,blendEquations:xi,stencilOps:ni,glTypes:ji,orientationType:pi};ci&&(na.backBuffer=[se],na.drawBuffer=M(Rr.maxDrawbuffers,function(Ve){return Ve===0?[0]:M(Ve,function(et){return _i+et})}));var Yi=0;function Ln(){var Ve=$n({cache:oi}),et=Ve.link,at=Ve.global;Ve.id=Yi++,Ve.batchId="0";var kt=et(Un),qt=Ve.shared={props:"a0"};Object.keys(Un).forEach(function(Pt){qt[Pt]=at.def(kt,".",Pt)});var Rt=Ve.next={},Nt=Ve.current={};Object.keys(mn).forEach(function(Pt){Array.isArray(Xi[Pt])&&(Rt[Pt]=at.def(qt.next,".",Pt),Nt[Pt]=at.def(qt.current,".",Pt))});var Dt=Ve.constants={};Object.keys(na).forEach(function(Pt){Dt[Pt]=at.def(JSON.stringify(na[Pt]))}),Ve.invoke=function(Pt,ht){switch(ht.type){case Yn:var cr=["this",qt.context,qt.props,Ve.batchId];return Pt.def(et(ht.data),".call(",cr.slice(0,Math.max(ht.data.length+1,4)),")");case zn:return Pt.def(qt.props,ht.data);case Ka:return Pt.def(qt.context,ht.data);case bo:return Pt.def("this",ht.data);case Xo:return ht.data.append(Ve,Pt),ht.data.ref;case Ms:return ht.data.toString();case os:return ht.data.map(function(br){return Ve.invoke(Pt,br)})}},Ve.attribCache={};var mt={};return Ve.scopeAttrib=function(Pt){var ht=_t.id(Pt);if(ht in mt)return mt[ht];var cr=Oi.scope[ht];cr||(cr=Oi.scope[ht]=new Zr);var br=mt[ht]=et(cr);return br},Ve}function ra(Ve){var et=Ve.static,at=Ve.dynamic,kt;if(le in et){var qt=!!et[le];kt=Cn(function(Nt,Dt){return qt}),kt.enable=qt}else if(le in at){var Rt=at[le];kt=Nn(Rt,function(Nt,Dt){return Nt.invoke(Dt,Rt)})}return kt}function oa(Ve,et){var at=Ve.static,kt=Ve.dynamic;if(qe in at){var qt=at[qe];return qt?(qt=gi.getFramebuffer(qt),Cn(function(Nt,Dt){var mt=Nt.link(qt),Pt=Nt.shared;Dt.set(Pt.framebuffer,".next",mt);var ht=Pt.context;return Dt.set(ht,"."+Be,mt+".width"),Dt.set(ht,"."+tt,mt+".height"),mt})):Cn(function(Nt,Dt){var mt=Nt.shared;Dt.set(mt.framebuffer,".next","null");var Pt=mt.context;return Dt.set(Pt,"."+Be,Pt+"."+jt),Dt.set(Pt,"."+tt,Pt+"."+tr),"null"})}else if(qe in kt){var Rt=kt[qe];return Nn(Rt,function(Nt,Dt){var mt=Nt.invoke(Dt,Rt),Pt=Nt.shared,ht=Pt.framebuffer,cr=Dt.def(ht,".getFramebuffer(",mt,")");Dt.set(ht,".next",cr);var br=Pt.context;return Dt.set(br,"."+Be,cr+"?"+cr+".width:"+br+"."+jt),Dt.set(br,"."+tt,cr+"?"+cr+".height:"+br+"."+tr),cr})}else return null}function wa(Ve,et,at){var kt=Ve.static,qt=Ve.dynamic;function Rt(mt){if(mt in kt){var Pt=kt[mt],ht=!0,cr=Pt.x|0,br=Pt.y|0,Nr,Ri;return"width"in Pt?Nr=Pt.width|0:ht=!1,"height"in Pt?Ri=Pt.height|0:ht=!1,new ti(!ht&&et&&et.thisDep,!ht&&et&&et.contextDep,!ht&&et&&et.propDep,function(gn,tn){var Ci=gn.shared.context,qi=Nr;"width"in Pt||(qi=tn.def(Ci,".",Be,"-",cr));var Vi=Ri;return"height"in Pt||(Vi=tn.def(Ci,".",tt,"-",br)),[cr,br,qi,Vi]})}else if(mt in qt){var fi=qt[mt],wi=Nn(fi,function(gn,tn){var Ci=gn.invoke(tn,fi),qi=gn.shared.context,Vi=tn.def(Ci,".x|0"),on=tn.def(Ci,".y|0"),On=tn.def('"width" in ',Ci,"?",Ci,".width|0:","(",qi,".",Be,"-",Vi,")"),Ja=tn.def('"height" in ',Ci,"?",Ci,".height|0:","(",qi,".",tt,"-",on,")");return[Vi,on,On,Ja]});return et&&(wi.thisDep=wi.thisDep||et.thisDep,wi.contextDep=wi.contextDep||et.contextDep,wi.propDep=wi.propDep||et.propDep),wi}else return et?new ti(et.thisDep,et.contextDep,et.propDep,function(gn,tn){var Ci=gn.shared.context;return[0,0,tn.def(Ci,".",Be),tn.def(Ci,".",tt)]}):null}var Nt=Rt(ee);if(Nt){var Dt=Nt;Nt=new ti(Nt.thisDep,Nt.contextDep,Nt.propDep,function(mt,Pt){var ht=Dt.append(mt,Pt),cr=mt.shared.context;return Pt.set(cr,"."+We,ht[2]),Pt.set(cr,"."+it,ht[3]),ht})}return{viewport:Nt,scissor_box:Rt(Q)}}function ns(Ve,et){var at=Ve.static,kt=typeof at[ot]=="string"&&typeof at[Xe]=="string";if(kt){if(Object.keys(et.dynamic).length>0)return null;var qt=et.static,Rt=Object.keys(qt);if(Rt.length>0&&typeof qt[Rt[0]]=="number"){for(var Nt=[],Dt=0;Dt"+Vi+"?"+ht+".constant["+Vi+"]:0;"}).join(""),"}}else{","if(",Nr,"(",ht,".buffer)){",gn,"=",Ri,".createStream(",Sr,",",ht,".buffer);","}else{",gn,"=",Ri,".getBuffer(",ht,".buffer);","}",tn,'="type" in ',ht,"?",br.glTypes,"[",ht,".type]:",gn,".dtype;",fi.normalized,"=!!",ht,".normalized;");function Ci(qi){Pt(fi[qi],"=",ht,".",qi,"|0;")}return Ci("size"),Ci("offset"),Ci("stride"),Ci("divisor"),Pt("}}"),Pt.exit("if(",fi.isStream,"){",Ri,".destroyStream(",gn,");","}"),fi}qt[Rt]=Nn(Nt,Dt)}),qt}function ol(Ve){var et=Ve.static,at=Ve.dynamic,kt={};return Object.keys(et).forEach(function(qt){var Rt=et[qt];kt[qt]=Cn(function(Nt,Dt){return typeof Rt=="number"||typeof Rt=="boolean"?""+Rt:Nt.link(Rt)})}),Object.keys(at).forEach(function(qt){var Rt=at[qt];kt[qt]=Nn(Rt,function(Nt,Dt){return Nt.invoke(Dt,Rt)})}),kt}function Ul(Ve,et,at,kt,qt){var Rt=Ve.static,Nt=Ve.dynamic,Dt=ns(Ve,et),mt=oa(Ve,qt),Pt=wa(Ve,mt,qt),ht=Va(Ve,qt),cr=Ml(Ve,qt),br=Ys(Ve,qt,Dt);function Nr(Ci){var qi=Pt[Ci];qi&&(cr[Ci]=qi)}Nr(ee),Nr(Ki(Q));var Ri=Object.keys(cr).length>0,fi={framebuffer:mt,draw:ht,shader:br,state:cr,dirty:Ri,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(fi.profile=ra(Ve,qt),fi.uniforms=zo(at,qt),fi.drawVAO=fi.scopeVAO=ht.vao,!fi.drawVAO&&br.program&&!Dt&&zt.angle_instanced_arrays&&ht.static.elements){var wi=!0,gn=br.program.attributes.map(function(Ci){var qi=et.static[Ci];return wi=wi&&!!qi,qi});if(wi&&gn.length>0){var tn=Oi.getVAO(Oi.createVAO({attributes:gn,elements:ht.static.elements}));fi.drawVAO=new ti(null,null,null,function(Ci,qi){return Ci.link(tn)}),fi.useVAO=!0}}return Dt?fi.useVAO=!0:fi.attributes=el(et,qt),fi.context=ol(kt,qt),fi}function ss(Ve,et,at){var kt=Ve.shared,qt=kt.context,Rt=Ve.scope();Object.keys(at).forEach(function(Nt){et.save(qt,"."+Nt);var Dt=at[Nt],mt=Dt.append(Ve,et);Array.isArray(mt)?Rt(qt,".",Nt,"=[",mt.join(),"];"):Rt(qt,".",Nt,"=",mt,";")}),et(Rt)}function Gs(Ve,et,at,kt){var qt=Ve.shared,Rt=qt.gl,Nt=qt.framebuffer,Dt;ci&&(Dt=et.def(qt.extensions,".webgl_draw_buffers"));var mt=Ve.constants,Pt=mt.drawBuffer,ht=mt.backBuffer,cr;at?cr=at.append(Ve,et):cr=et.def(Nt,".next"),kt||et("if(",cr,"!==",Nt,".cur){"),et("if(",cr,"){",Rt,".bindFramebuffer(",qr,",",cr,".framebuffer);"),ci&&et(Dt,".drawBuffersWEBGL(",Pt,"[",cr,".colorAttachments.length]);"),et("}else{",Rt,".bindFramebuffer(",qr,",null);"),ci&&et(Dt,".drawBuffersWEBGL(",ht,");"),et("}",Nt,".cur=",cr,";"),kt||et("}")}function Ks(Ve,et,at){var kt=Ve.shared,qt=kt.gl,Rt=Ve.current,Nt=Ve.next,Dt=kt.current,mt=kt.next,Pt=Ve.cond(Dt,".dirty");hi.forEach(function(ht){var cr=Ki(ht);if(!(cr in at.state)){var br,Nr;if(cr in Nt){br=Nt[cr],Nr=Rt[cr];var Ri=M(Xi[cr].length,function(wi){return Pt.def(br,"[",wi,"]")});Pt(Ve.cond(Ri.map(function(wi,gn){return wi+"!=="+Nr+"["+gn+"]"}).join("||")).then(qt,".",mn[cr],"(",Ri,");",Ri.map(function(wi,gn){return Nr+"["+gn+"]="+wi}).join(";"),";"))}else{br=Pt.def(mt,".",cr);var fi=Ve.cond(br,"!==",Dt,".",cr);Pt(fi),cr in li?fi(Ve.cond(br).then(qt,".enable(",li[cr],");").else(qt,".disable(",li[cr],");"),Dt,".",cr,"=",br,";"):fi(qt,".",mn[cr],"(",br,");",Dt,".",cr,"=",br,";")}}}),Object.keys(at.state).length===0&&Pt(Dt,".dirty=false;"),et(Pt)}function Ta(Ve,et,at,kt){var qt=Ve.shared,Rt=Ve.current,Nt=qt.current,Dt=qt.gl,mt;Ai(Object.keys(at)).forEach(function(Pt){var ht=at[Pt];if(!(kt&&!kt(ht))){var cr=ht.append(Ve,et);if(li[Pt]){var br=li[Pt];In(ht)?(mt=Ve.link(cr,{stable:!0}),et(Ve.cond(mt).then(Dt,".enable(",br,");").else(Dt,".disable(",br,");")),et(Nt,".",Pt,"=",mt,";")):(et(Ve.cond(cr).then(Dt,".enable(",br,");").else(Dt,".disable(",br,");")),et(Nt,".",Pt,"=",cr,";"))}else if(En(cr)){var Nr=Rt[Pt];et(Dt,".",mn[Pt],"(",cr,");",cr.map(function(Ri,fi){return Nr+"["+fi+"]="+Ri}).join(";"),";")}else In(ht)?(mt=Ve.link(cr,{stable:!0}),et(Dt,".",mn[Pt],"(",mt,");",Nt,".",Pt,"=",mt,";")):et(Dt,".",mn[Pt],"(",cr,");",Nt,".",Pt,"=",cr,";")}})}function sl(Ve,et){Ii&&(Ve.instancing=et.def(Ve.shared.extensions,".angle_instanced_arrays"))}function io(Ve,et,at,kt,qt){var Rt=Ve.shared,Nt=Ve.stats,Dt=Rt.current,mt=Rt.timer,Pt=at.profile;function ht(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var cr,br;function Nr(Ci){cr=et.def(),Ci(cr,"=",ht(),";"),typeof qt=="string"?Ci(Nt,".count+=",qt,";"):Ci(Nt,".count++;"),Hi&&(kt?(br=et.def(),Ci(br,"=",mt,".getNumPendingQueries();")):Ci(mt,".beginQuery(",Nt,");"))}function Ri(Ci){Ci(Nt,".cpuTime+=",ht(),"-",cr,";"),Hi&&(kt?Ci(mt,".pushScopeStats(",br,",",mt,".getNumPendingQueries(),",Nt,");"):Ci(mt,".endQuery();"))}function fi(Ci){var qi=et.def(Dt,".profile");et(Dt,".profile=",Ci,";"),et.exit(Dt,".profile=",qi,";")}var wi;if(Pt){if(In(Pt)){Pt.enable?(Nr(et),Ri(et.exit),fi("true")):fi("false");return}wi=Pt.append(Ve,et),fi(wi)}else wi=et.def(Dt,".profile");var gn=Ve.block();Nr(gn),et("if(",wi,"){",gn,"}");var tn=Ve.block();Ri(tn),et.exit("if(",wi,"){",tn,"}")}function Y(Ve,et,at,kt,qt){var Rt=Ve.shared;function Nt(mt){switch(mt){case ko:case Is:case dl:return 2;case Qa:case As:case Nl:return 3;case mo:case wo:case Lu:return 4;default:return 1}}function Dt(mt,Pt,ht){var cr=Rt.gl,br=et.def(mt,".location"),Nr=et.def(Rt.attributes,"[",br,"]"),Ri=ht.state,fi=ht.buffer,wi=[ht.x,ht.y,ht.z,ht.w],gn=["buffer","normalized","offset","stride"];function tn(){et("if(!",Nr,".buffer){",cr,".enableVertexAttribArray(",br,");}");var qi=ht.type,Vi;if(ht.size?Vi=et.def(ht.size,"||",Pt):Vi=Pt,et("if(",Nr,".type!==",qi,"||",Nr,".size!==",Vi,"||",gn.map(function(On){return Nr+"."+On+"!=="+ht[On]}).join("||"),"){",cr,".bindBuffer(",Sr,",",fi,".buffer);",cr,".vertexAttribPointer(",[br,Vi,qi,ht.normalized,ht.stride,ht.offset],");",Nr,".type=",qi,";",Nr,".size=",Vi,";",gn.map(function(On){return Nr+"."+On+"="+ht[On]+";"}).join(""),"}"),Ii){var on=ht.divisor;et("if(",Nr,".divisor!==",on,"){",Ve.instancing,".vertexAttribDivisorANGLE(",[br,on],");",Nr,".divisor=",on,";}")}}function Ci(){et("if(",Nr,".buffer){",cr,".disableVertexAttribArray(",br,");",Nr,".buffer=null;","}if(",ka.map(function(qi,Vi){return Nr+"."+qi+"!=="+wi[Vi]}).join("||"),"){",cr,".vertexAttrib4f(",br,",",wi,");",ka.map(function(qi,Vi){return Nr+"."+qi+"="+wi[Vi]+";"}).join(""),"}")}Ri===La?tn():Ri===Na?Ci():(et("if(",Ri,"===",La,"){"),tn(),et("}else{"),Ci(),et("}"))}kt.forEach(function(mt){var Pt=mt.name,ht=at.attributes[Pt],cr;if(ht){if(!qt(ht))return;cr=ht.append(Ve,et)}else{if(!qt(ia))return;var br=Ve.scopeAttrib(Pt);cr={},Object.keys(new Zr).forEach(function(Nr){cr[Nr]=et.def(br,".",Nr)})}Dt(Ve.link(mt),Nt(mt.info.type),cr)})}function D(Ve,et,at,kt,qt,Rt){for(var Nt=Ve.shared,Dt=Nt.gl,mt,Pt=0;Pt1){for(var co=[],ts=[],so=0;so>1)",fi],");")}function on(){at(wi,".drawArraysInstancedANGLE(",[br,Nr,Ri,fi],");")}ht&&ht!=="null"?tn?Vi():(at("if(",ht,"){"),Vi(),at("}else{"),on(),at("}")):on()}function qi(){function Vi(){at(Rt+".drawElements("+[br,Ri,gn,Nr+"<<(("+gn+"-"+Ra+")>>1)"]+");")}function on(){at(Rt+".drawArrays("+[br,Nr,Ri]+");")}ht&&ht!=="null"?tn?Vi():(at("if(",ht,"){"),Vi(),at("}else{"),on(),at("}")):on()}Ii&&(typeof fi!="number"||fi>=0)?typeof fi=="string"?(at("if(",fi,">0){"),Ci(),at("}else if(",fi,"<0){"),qi(),at("}")):Ci():qi()}function q(Ve,et,at,kt,qt){var Rt=Ln(),Nt=Rt.proc("body",qt);return Ii&&(Rt.instancing=Nt.def(Rt.shared.extensions,".angle_instanced_arrays")),Ve(Rt,Nt,at,kt),Rt.compile().body}function K(Ve,et,at,kt){sl(Ve,et),at.useVAO?at.drawVAO?et(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,et),");"):et(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(et(Ve.shared.vao,".setVAO(null);"),Y(Ve,et,at,kt.attributes,function(){return!0})),D(Ve,et,at,kt.uniforms,function(){return!0},!1),J(Ve,et,et,at)}function de(Ve,et){var at=Ve.proc("draw",1);sl(Ve,at),ss(Ve,at,et.context),Gs(Ve,at,et.framebuffer),Ks(Ve,at,et),Ta(Ve,at,et.state),io(Ve,at,et,!1,!0);var kt=et.shader.progVar.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",kt,".program);"),et.shader.program)K(Ve,at,et,et.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var qt=Ve.global.def("{}"),Rt=at.def(kt,".id"),Nt=at.def(qt,"[",Rt,"]");at(Ve.cond(Nt).then(Nt,".call(this,a0);").else(Nt,"=",qt,"[",Rt,"]=",Ve.link(function(Dt){return q(K,Ve,et,Dt,1)}),"(",kt,");",Nt,".call(this,a0);"))}Object.keys(et.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ne(Ve,et,at,kt){Ve.batchId="a1",sl(Ve,et);function qt(){return!0}Y(Ve,et,at,kt.attributes,qt),D(Ve,et,at,kt.uniforms,qt,!1),J(Ve,et,et,at)}function we(Ve,et,at,kt){sl(Ve,et);var qt=at.contextDep,Rt=et.def(),Nt="a0",Dt="a1",mt=et.def();Ve.shared.props=mt,Ve.batchId=Rt;var Pt=Ve.scope(),ht=Ve.scope();et(Pt.entry,"for(",Rt,"=0;",Rt,"<",Dt,";++",Rt,"){",mt,"=",Nt,"[",Rt,"];",ht,"}",Pt.exit);function cr(gn){return gn.contextDep&&qt||gn.propDep}function br(gn){return!cr(gn)}if(at.needsContext&&ss(Ve,ht,at.context),at.needsFramebuffer&&Gs(Ve,ht,at.framebuffer),Ta(Ve,ht,at.state,cr),at.profile&&cr(at.profile)&&io(Ve,ht,at,!1,!0),kt)at.useVAO?at.drawVAO?cr(at.drawVAO)?ht(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,ht),");"):Pt(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,Pt),");"):Pt(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(Pt(Ve.shared.vao,".setVAO(null);"),Y(Ve,Pt,at,kt.attributes,br),Y(Ve,ht,at,kt.attributes,cr)),D(Ve,Pt,at,kt.uniforms,br,!1),D(Ve,ht,at,kt.uniforms,cr,!0),J(Ve,Pt,ht,at);else{var Nr=Ve.global.def("{}"),Ri=at.shader.progVar.append(Ve,ht),fi=ht.def(Ri,".id"),wi=ht.def(Nr,"[",fi,"]");ht(Ve.shared.gl,".useProgram(",Ri,".program);","if(!",wi,"){",wi,"=",Nr,"[",fi,"]=",Ve.link(function(gn){return q(ne,Ve,at,gn,2)}),"(",Ri,");}",wi,".call(this,a0[",Rt,"],",Rt,");")}}function Ue(Ve,et){var at=Ve.proc("batch",2);Ve.batchId="0",sl(Ve,at);var kt=!1,qt=!0;Object.keys(et.context).forEach(function(Nr){kt=kt||et.context[Nr].propDep}),kt||(ss(Ve,at,et.context),qt=!1);var Rt=et.framebuffer,Nt=!1;Rt?(Rt.propDep?kt=Nt=!0:Rt.contextDep&&kt&&(Nt=!0),Nt||Gs(Ve,at,Rt)):Gs(Ve,at,null),et.state.viewport&&et.state.viewport.propDep&&(kt=!0);function Dt(Nr){return Nr.contextDep&&kt||Nr.propDep}Ks(Ve,at,et),Ta(Ve,at,et.state,function(Nr){return!Dt(Nr)}),(!et.profile||!Dt(et.profile))&&io(Ve,at,et,!1,"a1"),et.contextDep=kt,et.needsContext=qt,et.needsFramebuffer=Nt;var mt=et.shader.progVar;if(mt.contextDep&&kt||mt.propDep)we(Ve,at,et,null);else{var Pt=mt.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",Pt,".program);"),et.shader.program)we(Ve,at,et,et.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var ht=Ve.global.def("{}"),cr=at.def(Pt,".id"),br=at.def(ht,"[",cr,"]");at(Ve.cond(br).then(br,".call(this,a0,a1);").else(br,"=",ht,"[",cr,"]=",Ve.link(function(Nr){return q(we,Ve,et,Nr,2)}),"(",Pt,");",br,".call(this,a0,a1);"))}}Object.keys(et.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ft(Ve,et){var at=Ve.proc("scope",3);Ve.batchId="a2";var kt=Ve.shared,qt=kt.current;if(ss(Ve,at,et.context),et.framebuffer&&et.framebuffer.append(Ve,at),Ai(Object.keys(et.state)).forEach(function(Dt){var mt=et.state[Dt],Pt=mt.append(Ve,at);En(Pt)?Pt.forEach(function(ht,cr){vn(ht)?at.set(Ve.next[Dt],"["+cr+"]",ht):at.set(Ve.next[Dt],"["+cr+"]",Ve.link(ht,{stable:!0}))}):In(mt)?at.set(kt.next,"."+Dt,Ve.link(Pt,{stable:!0})):at.set(kt.next,"."+Dt,Pt)}),io(Ve,at,et,!0,!0),[wt,xr,Jt,Ir,Yt].forEach(function(Dt){var mt=et.draw[Dt];if(mt){var Pt=mt.append(Ve,at);vn(Pt)?at.set(kt.draw,"."+Dt,Pt):at.set(kt.draw,"."+Dt,Ve.link(Pt),{stable:!0})}}),Object.keys(et.uniforms).forEach(function(Dt){var mt=et.uniforms[Dt].append(Ve,at);Array.isArray(mt)&&(mt="["+mt.map(function(Pt){return vn(Pt)?Pt:Ve.link(Pt,{stable:!0})})+"]"),at.set(kt.uniforms,"["+Ve.link(_t.id(Dt),{stable:!0})+"]",mt)}),Object.keys(et.attributes).forEach(function(Dt){var mt=et.attributes[Dt].append(Ve,at),Pt=Ve.scopeAttrib(Dt);Object.keys(new Zr).forEach(function(ht){at.set(Pt,"."+ht,mt[ht])})}),et.scopeVAO){var Rt=et.scopeVAO.append(Ve,at);vn(Rt)?at.set(kt.vao,".targetVAO",Rt):at.set(kt.vao,".targetVAO",Ve.link(Rt,{stable:!0}))}function Nt(Dt){var mt=et.shader[Dt];if(mt){var Pt=mt.append(Ve,at);vn(Pt)?at.set(kt.shader,"."+Dt,Pt):at.set(kt.shader,"."+Dt,Ve.link(Pt,{stable:!0}))}}Nt(Xe),Nt(ot),Object.keys(et.state).length>0&&(at(qt,".dirty=true;"),at.exit(qt,".dirty=true;")),at("a1(",Ve.shared.context,",a0,",Ve.batchId,");")}function Zt(Ve){if(!(typeof Ve!="object"||En(Ve))){for(var et=Object.keys(Ve),at=0;at=0;--q){var K=Un[q];K&&K(oi,null,0)}zt.flush(),Mi&&Mi.update()}function wa(){!ra&&Un.length>0&&(ra=d.next(oa))}function ns(){ra&&(d.cancel(oa),ra=null)}function Ys(q){q.preventDefault(),Hr=!0,ns(),na.forEach(function(K){K()})}function Va(q){zt.getError(),Hr=!1,Br.restore(),qn.restore(),Ii.restore(),hi.restore(),li.restore(),mn.restore(),nn.restore(),Mi&&Mi.restore(),Ki.procs.refresh(),wa(),Yi.forEach(function(K){K()})}vn&&(vn.addEventListener(Fo,Ys,!1),vn.addEventListener(Uo,Va,!1));function Ml(){Un.length=0,ns(),vn&&(vn.removeEventListener(Fo,Ys),vn.removeEventListener(Uo,Va)),qn.clear(),mn.clear(),li.clear(),nn.clear(),hi.clear(),ci.clear(),Ii.clear(),Mi&&Mi.clear(),Ln.forEach(function(q){q()})}function zo(q){function K(Rt){var Nt=e({},Rt);delete Nt.uniforms,delete Nt.attributes,delete Nt.context,delete Nt.vao,"stencil"in Nt&&Nt.stencil.op&&(Nt.stencil.opBack=Nt.stencil.opFront=Nt.stencil.op,delete Nt.stencil.op);function Dt(mt){if(mt in Nt){var Pt=Nt[mt];delete Nt[mt],Object.keys(Pt).forEach(function(ht){Nt[mt+"."+ht]=Pt[ht]})}}return Dt("blend"),Dt("depth"),Dt("cull"),Dt("stencil"),Dt("polygonOffset"),Dt("scissor"),Dt("sample"),"vao"in Rt&&(Nt.vao=Rt.vao),Nt}function de(Rt,Nt){var Dt={},mt={};return Object.keys(Rt).forEach(function(Pt){var ht=Rt[Pt];if(h.isDynamic(ht)){mt[Pt]=h.unbox(ht,Pt);return}else if(Nt&&Array.isArray(ht)){for(var cr=0;cr0)return Ve.call(this,kt(Rt|0),Rt|0)}else if(Array.isArray(Rt)){if(Rt.length)return Ve.call(this,Rt,Rt.length)}else return Bt.call(this,Rt)}return e(qt,{stats:Zt,destroy:function(){hr.destroy()}})}var el=mn.setFBO=zo({framebuffer:h.define.call(null,Qs,"framebuffer")});function ol(q,K){var de=0;Ki.procs.poll();var ne=K.color;ne&&(zt.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),de|=Es),"depth"in K&&(zt.clearDepth(+K.depth),de|=Zs),"stencil"in K&&(zt.clearStencil(K.stencil|0),de|=Gn),zt.clear(de)}function Ul(q){if("framebuffer"in q)if(q.framebuffer&&q.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)el(e({framebuffer:q.framebuffer.faces[K]},q),ol);else el(q,ol);else ol(null,q)}function ss(q){Un.push(q);function K(){var de=vl(Un,q);function ne(){var we=vl(Un,ne);Un[we]=Un[Un.length-1],Un.length-=1,Un.length<=0&&ns()}Un[de]=ne}return wa(),{cancel:K}}function Gs(){var q=Bi.viewport,K=Bi.scissor_box;q[0]=q[1]=K[0]=K[1]=0,oi.viewportWidth=oi.framebufferWidth=oi.drawingBufferWidth=q[2]=K[2]=zt.drawingBufferWidth,oi.viewportHeight=oi.framebufferHeight=oi.drawingBufferHeight=q[3]=K[3]=zt.drawingBufferHeight}function Ks(){oi.tick+=1,oi.time=sl(),Gs(),Ki.procs.poll()}function Ta(){hi.refresh(),Gs(),Ki.procs.refresh(),Mi&&Mi.update()}function sl(){return(v()-Hn)/1e3}Ta();function io(q,K){var de;switch(q){case"frame":return ss(K);case"lost":de=na;break;case"restore":de=Yi;break;case"destroy":de=Ln;break;default:}return de.push(K),{cancel:function(){for(var ne=0;ne=0},read:Ui,destroy:Ml,_gl:zt,_refresh:Ta,poll:function(){Ks(),Mi&&Mi.update()},now:sl,stats:gi,getCachedCode:Y,preloadCachedCode:D});return _t.onDone(null,J),J}return Sc})});var Sqe=ye(($yr,Aqe)=>{"use strict";var fNt=Xm();Aqe.exports=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},wqe(t)?t={container:t}:hNt(t)?t={container:t}:dNt(t)?t={gl:t}:t=fNt(t,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),t.pixelRatio||(t.pixelRatio=window.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(typeof t.container=="string"){var r=document.querySelector(t.container);if(!r)throw Error("Element "+t.container+" is not found");t.container=r}wqe(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=Tqe(),t.container.appendChild(t.canvas),bqe(t))}else if(!t.canvas)if(typeof document!="undefined")t.container=document.body||document.documentElement,t.canvas=Tqe(),t.container.appendChild(t.canvas),bqe(t);else throw Error("Not DOM environment. Use headless-gl.");return t.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(n){try{t.gl=t.canvas.getContext(n,t.attrs)}catch(i){}return t.gl}),t.gl};function bqe(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function wqe(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function hNt(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function dNt(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function Tqe(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var Eqe=ye((Qyr,Mqe)=>{"use strict";var vNt=KY(),pNt=[32,126];Mqe.exports=gNt;function gNt(e){e=e||{};var t=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],r=e.canvas||document.createElement("canvas"),n=e.font,i=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],a=e.chars||pNt;if(n&&typeof n!="string"&&(n=vNt(n)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],s=a[0],l=0;s<=a[1];s++)o[l++]=String.fromCharCode(s);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var u=r.getContext("2d");u.fillStyle="#000",u.fillRect(0,0,r.width,r.height),u.font=n,u.textAlign="center",u.textBaseline="middle",u.fillStyle="#fff";for(var c=i[0]/2,f=i[1]/2,s=0;st[0]-i[0]/2&&(c=i[0]/2,f+=i[1]);return r}});var eK=ye(Oh=>{"use strict";"use restrict";var QY=32;Oh.INT_BITS=QY;Oh.INT_MAX=2147483647;Oh.INT_MIN=-1<0)-(e<0)};Oh.abs=function(e){var t=e>>QY-1;return(e^t)-t};Oh.min=function(e,t){return t^(e^t)&-(e65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,t|=r,t|e>>1};Oh.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};Oh.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function Cqe(e){var t=32;return e&=-e,e&&t--,e&65535&&(t-=16),e&16711935&&(t-=8),e&252645135&&(t-=4),e&858993459&&(t-=2),e&1431655765&&(t-=1),t}Oh.countTrailingZeros=Cqe;Oh.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};Oh.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};Oh.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var bC=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,n=t,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=r&1,--i;e[t]=n<>>8&255]<<16|bC[e>>>16&255]<<8|bC[e>>>24&255]};Oh.interleave2=function(e,t){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1};Oh.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};Oh.interleave3=function(e,t,r){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|=t<<1,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|r<<2};Oh.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};Oh.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>Cqe(e)+1}});var Pqe=ye((t1r,Lqe)=>{"use strict";function kqe(e,t,r){var n=e[r]|0;if(n<=0)return[];var i=new Array(n),a;if(r===e.length-1)for(a=0;a0)return mNt(e|0,t);break;case"object":if(typeof e.length=="number")return kqe(e,t,0);break}return[]}Lqe.exports=yNt});var Wqe=ye(mu=>{"use strict";var fx=eK(),Av=Pqe(),Iqe=u2().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:Av([32,0]),UINT16:Av([32,0]),UINT32:Av([32,0]),BIGUINT64:Av([32,0]),INT8:Av([32,0]),INT16:Av([32,0]),INT32:Av([32,0]),BIGINT64:Av([32,0]),FLOAT:Av([32,0]),DOUBLE:Av([32,0]),DATA:Av([32,0]),UINT8C:Av([32,0]),BUFFER:Av([32,0])});var _Nt=typeof Uint8ClampedArray!="undefined",xNt=typeof BigUint64Array!="undefined",bNt=typeof BigInt64Array!="undefined",nd=window.__TYPEDARRAY_POOL;nd.UINT8C||(nd.UINT8C=Av([32,0]));nd.BIGUINT64||(nd.BIGUINT64=Av([32,0]));nd.BIGINT64||(nd.BIGINT64=Av([32,0]));nd.BUFFER||(nd.BUFFER=Av([32,0]));var pz=nd.DATA,gz=nd.BUFFER;mu.free=function(t){if(Iqe.isBuffer(t))gz[fx.log2(t.length)].push(t);else{if(Object.prototype.toString.call(t)!=="[object ArrayBuffer]"&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,n=fx.log2(r)|0;pz[n].push(t)}};function Rqe(e){if(e){var t=e.length||e.byteLength,r=fx.log2(t);pz[r].push(e)}}function wNt(e){Rqe(e.buffer)}mu.freeUint8=mu.freeUint16=mu.freeUint32=mu.freeBigUint64=mu.freeInt8=mu.freeInt16=mu.freeInt32=mu.freeBigInt64=mu.freeFloat32=mu.freeFloat=mu.freeFloat64=mu.freeDouble=mu.freeUint8Clamped=mu.freeDataView=wNt;mu.freeArrayBuffer=Rqe;mu.freeBuffer=function(t){gz[fx.log2(t.length)].push(t)};mu.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return qp(t);switch(r){case"uint8":return tK(t);case"uint16":return Dqe(t);case"uint32":return Fqe(t);case"int8":return zqe(t);case"int16":return Oqe(t);case"int32":return qqe(t);case"float":case"float32":return Bqe(t);case"double":case"float64":return Nqe(t);case"uint8_clamped":return Uqe(t);case"bigint64":return Gqe(t);case"biguint64":return Vqe(t);case"buffer":return jqe(t);case"data":case"dataview":return Hqe(t);default:return null}return null};function qp(t){var t=fx.nextPow2(t),r=fx.log2(t),n=pz[r];return n.length>0?n.pop():new ArrayBuffer(t)}mu.mallocArrayBuffer=qp;function tK(e){return new Uint8Array(qp(e),0,e)}mu.mallocUint8=tK;function Dqe(e){return new Uint16Array(qp(2*e),0,e)}mu.mallocUint16=Dqe;function Fqe(e){return new Uint32Array(qp(4*e),0,e)}mu.mallocUint32=Fqe;function zqe(e){return new Int8Array(qp(e),0,e)}mu.mallocInt8=zqe;function Oqe(e){return new Int16Array(qp(2*e),0,e)}mu.mallocInt16=Oqe;function qqe(e){return new Int32Array(qp(4*e),0,e)}mu.mallocInt32=qqe;function Bqe(e){return new Float32Array(qp(4*e),0,e)}mu.mallocFloat32=mu.mallocFloat=Bqe;function Nqe(e){return new Float64Array(qp(8*e),0,e)}mu.mallocFloat64=mu.mallocDouble=Nqe;function Uqe(e){return _Nt?new Uint8ClampedArray(qp(e),0,e):tK(e)}mu.mallocUint8Clamped=Uqe;function Vqe(e){return xNt?new BigUint64Array(qp(8*e),0,e):null}mu.mallocBigUint64=Vqe;function Gqe(e){return bNt?new BigInt64Array(qp(8*e),0,e):null}mu.mallocBigInt64=Gqe;function Hqe(e){return new DataView(qp(e),0,e)}mu.mallocDataView=Hqe;function jqe(e){e=fx.nextPow2(e);var t=fx.log2(e),r=gz[t];return r.length>0?r.pop():new Iqe(e)}mu.mallocBuffer=jqe;mu.clearCache=function(){for(var t=0;t<32;++t)nd.UINT8[t].length=0,nd.UINT16[t].length=0,nd.UINT32[t].length=0,nd.INT8[t].length=0,nd.INT16[t].length=0,nd.INT32[t].length=0,nd.FLOAT[t].length=0,nd.DOUBLE[t].length=0,nd.BIGUINT64[t].length=0,nd.BIGINT64[t].length=0,nd.UINT8C[t].length=0,pz[t].length=0,gz[t].length=0}});var Zqe=ye((i1r,Xqe)=>{"use strict";var TNt=Object.prototype.toString;Xqe.exports=function(e){var t;return TNt.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var rK=ye((n1r,Yqe)=>{Yqe.exports=function(t,r){r||(r=[0,""]),t=String(t);var n=parseFloat(t,10);return r[0]=n,r[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",r}});var $qe=ye((a1r,Jqe)=>{"use strict";var ANt=rK();Jqe.exports=Kqe;var wC=96;function iK(e,t){var r=ANt(getComputedStyle(e).getPropertyValue(t));return r[0]*Kqe(r[1],e)}function SNt(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=iK(r,"font-size")/128;return t.removeChild(r),n}function Kqe(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),(t===window||t===document)&&(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return SNt(e,t);case"em":return iK(t,"font-size");case"rem":return iK(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return wC;case"cm":return wC/2.54;case"mm":return wC/25.4;case"pt":return wC/72;case"pc":return wC/6}return 1}});var tBe=ye((o1r,eBe)=>{"use strict";eBe.exports=_z;var MNt=_z.canvas=document.createElement("canvas"),mz=MNt.getContext("2d"),Qqe=yz([32,126]);_z.createPairs=yz;_z.ascii=Qqe;function _z(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=yz(t):Array.isArray(t)?n=t:(t.o?n=yz(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=Qqe),mz.font=i+"px "+e;for(var o=0;oi*a){var c=(u-l)/i;r[s]=c*1e3}}return r}function yz(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i{"use strict";nBe.exports=hx;hx.canvas=document.createElement("canvas");hx.cache={};function hx(o,t){t||(t={}),(typeof o=="string"||Array.isArray(o))&&(t.family=o);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var n=t.size||t.fontSize||t.em||48,i=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,i,n].join(" ")+"px "+r,s=t.origin||"top";if(hx.cache[r]&&n<=hx.cache[r].em)return rBe(hx.cache[r],s);var l=t.canvas||hx.canvas,u=l.getContext("2d"),c={upper:t.upper!==void 0?t.upper:"H",lower:t.lower!==void 0?t.lower:"x",descent:t.descent!==void 0?t.descent:"p",ascent:t.ascent!==void 0?t.ascent:"h",tittle:t.tittle!==void 0?t.tittle:"i",overshoot:t.overshoot!==void 0?t.overshoot:"O"},f=Math.ceil(n*1.5);l.height=f,l.width=f*.5,u.font=o;var h="H",d={top:0};u.clearRect(0,0,f,f),u.textBaseline="top",u.fillStyle="black",u.fillText(h,0,0);var v=Ym(u.getImageData(0,0,f,f));u.clearRect(0,0,f,f),u.textBaseline="bottom",u.fillText(h,0,f);var x=Ym(u.getImageData(0,0,f,f));d.lineHeight=d.bottom=f-x+v,u.clearRect(0,0,f,f),u.textBaseline="alphabetic",u.fillText(h,0,f);var b=Ym(u.getImageData(0,0,f,f)),p=f-b-1+v;d.baseline=d.alphabetic=p,u.clearRect(0,0,f,f),u.textBaseline="middle",u.fillText(h,0,f*.5);var C=Ym(u.getImageData(0,0,f,f));d.median=d.middle=f-C-1+v-f*.5,u.clearRect(0,0,f,f),u.textBaseline="hanging",u.fillText(h,0,f*.5);var E=Ym(u.getImageData(0,0,f,f));d.hanging=f-E-1+v-f*.5,u.clearRect(0,0,f,f),u.textBaseline="ideographic",u.fillText(h,0,f);var A=Ym(u.getImageData(0,0,f,f));if(d.ideographic=f-A-1+v,c.upper&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.upper,0,0),d.upper=Ym(u.getImageData(0,0,f,f)),d.capHeight=d.baseline-d.upper),c.lower&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.lower,0,0),d.lower=Ym(u.getImageData(0,0,f,f)),d.xHeight=d.baseline-d.lower),c.tittle&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.tittle,0,0),d.tittle=Ym(u.getImageData(0,0,f,f))),c.ascent&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.ascent,0,0),d.ascent=Ym(u.getImageData(0,0,f,f))),c.descent&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.descent,0,0),d.descent=iBe(u.getImageData(0,0,f,f))),c.overshoot){u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.overshoot,0,0);var L=iBe(u.getImageData(0,0,f,f));d.overshoot=L-p}for(var _ in d)d[_]/=n;return d.em=n,hx.cache[r]=d,rBe(d,s)}function rBe(e,t){var r={};typeof t=="string"&&(t=e[t]);for(var n in e)n!=="em"&&(r[n]=e[n]-t);return r}function Ym(e){for(var t=e.height,r=e.data,n=3;n0;n-=4)if(r[n]!==0)return Math.floor((n-3)*.25/t)}});var uBe=ye((l1r,lBe)=>{"use strict";var h5=_qe(),ENt=Xm(),CNt=xqe(),kNt=Sqe(),LNt=zY(),nK=$_(),PNt=Eqe(),dx=Wqe(),INt=e5(),RNt=Zqe(),DNt=rK(),FNt=$qe(),zNt=tBe(),ONt=Fh(),qNt=aBe(),BNt=W2(),NNt=eK(),oBe=NNt.nextPow2,sBe=new LNt,bz=!1;document.body&&(xz=document.body.appendChild(document.createElement("div")),xz.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(xz).fontStretch&&(bz=!0),document.body.removeChild(xz));var xz,xc=function(t){UNt(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=kNt(t),this.shader=sBe.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||CNt({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),sBe.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(RNt(t)?t:{})};xc.prototype.createShader=function(){var t=this.regl,r=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:t.prop("count"),offset:t.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this("sizeBuffer")},width:{offset:0,stride:8,buffer:t.this("sizeBuffer")},char:t.this("charBuffer"),position:t.this("position")},uniforms:{atlasSize:function(i,a){return[a.atlas.width,a.atlas.height]},atlasDim:function(i,a){return[a.atlas.cols,a.atlas.rows]},atlas:function(i,a){return a.atlas.texture},charStep:function(i,a){return a.atlas.step},em:function(i,a){return a.atlas.em},color:t.prop("color"),opacity:t.prop("opacity"),viewport:t.this("viewportArray"),scale:t.this("scale"),align:t.prop("align"),baseline:t.prop("baseline"),translate:t.this("translate"),positionOffset:t.prop("positionOffset")},primitive:"points",viewport:t.this("viewport"),vert:` +`),Yr;if(xt&&(Yr=Oc(Mr),xt[Yr]))return xt[Yr].apply(null,Hr);var xi=Function.apply(null,Ir.concat(Mr));return xt&&(xt[Yr]=xi),xi.apply(null,Hr)}return{global:Mi,link:Vr,block:mi,proc:Qi,scope:Ni,cond:Oi,compile:ji}}var ka="xyzw".split(""),Ra=5121,La=1,Na=2,Yn=0,zn=1,Ka=2,bo=3,Xo=4,Ms=5,os=6,Ts="dither",Ho="blend.enable",yl="blend.color",Xs="blend.equation",Ps="blend.func",va="depth.enable",no="depth.func",_s="depth.range",is="depth.mask",$l="colorMask",ku="cull.enable",Yu="cull.face",Nc="frontFace",gu="lineWidth",Uc="polygonOffset.enable",xu="polygonOffset.offset",Ac="sample.alpha",Ua="sample.enable",oo="sample.coverage",Vc="stencil.enable",hc="stencil.mask",Ku="stencil.func",ue="stencil.opFront",w="stencil.opBack",B="scissor.enable",Q="scissor.box",ee="viewport",le="profile",qe="framebuffer",Xe="vert",ot="frag",Tt="elements",Kt="primitive",Jt="count",xr="offset",Pr="instances",ve="vao",be="Width",Re="Height",Be=qe+be,tt=qe+Re,We=ee+be,it=ee+Re,Dt="drawingBuffer",Ht=Dt+be,rr=Dt+Re,dr=[Ps,Xs,Ku,ue,w,oo,ee,Q,xu],Sr=34962,Or=34963,jr=2884,ii=3042,Li=3024,un=2960,sn=2929,In=3089,Kn=32823,Aa=32926,fa=32928,$a=5126,ko=35664,Qa=35665,mo=35666,Bo=5124,Is=35667,As=35668,wo=35669,To=35670,dl=35671,Nl=35672,Lu=35673,ou=35674,$s=35675,Ql=35676,dc=35678,Tl=35680,Al=4,X=1028,se=1029,Te=2304,Ne=2305,He=32775,Ze=32776,Ct=519,nt=7680,jt=0,gr=1,yr=32774,Gr=513,qr=36160,_i=36064,bi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Xr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ni={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},gi={cw:Te,ccw:Ne};function Pi(Ee){return Array.isArray(Ee)||Wr(Ee)||Ur(Ee)}function Ai(Ee){return Ee.sort(function(xt,zt){return xt===ee?-1:zt===ee?1:xt=1,Ir>=2,xt)}else if(zt===Xo){var Hr=Ee.data;return new ti(Hr.thisDep,Hr.contextDep,Hr.propDep,xt)}else{if(zt===Ms)return new ti(!1,!1,!1,xt);if(zt===os){for(var Br=!1,Vr=!1,mi=!1,Ni=0;Ni=1&&(Vr=!0),Mi>=2&&(mi=!0)}else Oi.type===Xo&&(Br=Br||Oi.data.thisDep,Vr=Vr||Oi.data.contextDep,mi=mi||Oi.data.propDep)}return new ti(Br,Vr,mi,xt)}else return new ti(zt===bo,zt===Ka,zt===zn,xt)}}var ia=new ti(!1,!1,!1,function(){});function Ea(Ee,xt,zt,Ir,Hr,Br,Vr,mi,Ni,Oi,Mi,Hn,Qi,ji,si,Mr){var Yr=Oi.Record,xi={add:32774,subtract:32778,"reverse subtract":32779};zt.ext_blend_minmax&&(xi.min=He,xi.max=Ze);var Ii=zt.angle_instanced_arrays,ci=zt.webgl_draw_buffers,nn=zt.oes_vertex_array_object,Xi={dirty:!0,profile:Mr.profile},qn={},vi=[],li={},mn={};function Ki(Ve){return Ve.replace(".","_")}function Ui(Ve,et,at){var kt=Ki(Ve);vi.push(Ve),qn[kt]=Xi[kt]=!!at,li[kt]=et}function Bi(Ve,et,at){var kt=Ki(Ve);vi.push(Ve),Array.isArray(at)?(Xi[kt]=at.slice(),qn[kt]=at.slice()):Xi[kt]=qn[kt]=at,mn[kt]=et}function vn(Ve){return!!isNaN(Ve)}Ui(Ts,Li),Ui(Ho,ii),Bi(yl,"blendColor",[0,0,0,0]),Bi(Xs,"blendEquationSeparate",[yr,yr]),Bi(Ps,"blendFuncSeparate",[gr,jt,gr,jt]),Ui(va,sn,!0),Bi(no,"depthFunc",Gr),Bi(_s,"depthRange",[0,1]),Bi(is,"depthMask",!0),Bi($l,$l,[!0,!0,!0,!0]),Ui(ku,jr),Bi(Yu,"cullFace",se),Bi(Nc,Nc,Ne),Bi(gu,gu,1),Ui(Uc,Kn),Bi(xu,"polygonOffset",[0,0]),Ui(Ac,Aa),Ui(Ua,fa),Bi(oo,"sampleCoverage",[1,!1]),Ui(Vc,un),Bi(hc,"stencilMask",-1),Bi(Ku,"stencilFunc",[Ct,0,-1]),Bi(ue,"stencilOpSeparate",[X,nt,nt,nt]),Bi(w,"stencilOpSeparate",[se,nt,nt,nt]),Ui(B,In),Bi(Q,"scissor",[0,0,Ee.drawingBufferWidth,Ee.drawingBufferHeight]),Bi(ee,ee,[0,0,Ee.drawingBufferWidth,Ee.drawingBufferHeight]);var Un={gl:Ee,context:Qi,strings:xt,next:qn,current:Xi,draw:Hn,elements:Br,buffer:Hr,shader:Mi,attributes:Oi.state,vao:Oi,uniforms:Ni,framebuffer:mi,extensions:zt,timer:ji,isBufferArgs:Pi},na={primTypes:Mn,compareFuncs:Xr,blendFuncs:bi,blendEquations:xi,stencilOps:ni,glTypes:Hi,orientationType:gi};ci&&(na.backBuffer=[se],na.drawBuffer=M(Ir.maxDrawbuffers,function(Ve){return Ve===0?[0]:M(Ve,function(et){return _i+et})}));var Yi=0;function Ln(){var Ve=$n({cache:si}),et=Ve.link,at=Ve.global;Ve.id=Yi++,Ve.batchId="0";var kt=et(Un),Ot=Ve.shared={props:"a0"};Object.keys(Un).forEach(function(Pt){Ot[Pt]=at.def(kt,".",Pt)});var It=Ve.next={},Bt=Ve.current={};Object.keys(mn).forEach(function(Pt){Array.isArray(Xi[Pt])&&(It[Pt]=at.def(Ot.next,".",Pt),Bt[Pt]=at.def(Ot.current,".",Pt))});var Rt=Ve.constants={};Object.keys(na).forEach(function(Pt){Rt[Pt]=at.def(JSON.stringify(na[Pt]))}),Ve.invoke=function(Pt,ht){switch(ht.type){case Yn:var cr=["this",Ot.context,Ot.props,Ve.batchId];return Pt.def(et(ht.data),".call(",cr.slice(0,Math.max(ht.data.length+1,4)),")");case zn:return Pt.def(Ot.props,ht.data);case Ka:return Pt.def(Ot.context,ht.data);case bo:return Pt.def("this",ht.data);case Xo:return ht.data.append(Ve,Pt),ht.data.ref;case Ms:return ht.data.toString();case os:return ht.data.map(function(br){return Ve.invoke(Pt,br)})}},Ve.attribCache={};var mt={};return Ve.scopeAttrib=function(Pt){var ht=xt.id(Pt);if(ht in mt)return mt[ht];var cr=Oi.scope[ht];cr||(cr=Oi.scope[ht]=new Yr);var br=mt[ht]=et(cr);return br},Ve}function ra(Ve){var et=Ve.static,at=Ve.dynamic,kt;if(le in et){var Ot=!!et[le];kt=Cn(function(Bt,Rt){return Ot}),kt.enable=Ot}else if(le in at){var It=at[le];kt=Nn(It,function(Bt,Rt){return Bt.invoke(Rt,It)})}return kt}function oa(Ve,et){var at=Ve.static,kt=Ve.dynamic;if(qe in at){var Ot=at[qe];return Ot?(Ot=mi.getFramebuffer(Ot),Cn(function(Bt,Rt){var mt=Bt.link(Ot),Pt=Bt.shared;Rt.set(Pt.framebuffer,".next",mt);var ht=Pt.context;return Rt.set(ht,"."+Be,mt+".width"),Rt.set(ht,"."+tt,mt+".height"),mt})):Cn(function(Bt,Rt){var mt=Bt.shared;Rt.set(mt.framebuffer,".next","null");var Pt=mt.context;return Rt.set(Pt,"."+Be,Pt+"."+Ht),Rt.set(Pt,"."+tt,Pt+"."+rr),"null"})}else if(qe in kt){var It=kt[qe];return Nn(It,function(Bt,Rt){var mt=Bt.invoke(Rt,It),Pt=Bt.shared,ht=Pt.framebuffer,cr=Rt.def(ht,".getFramebuffer(",mt,")");Rt.set(ht,".next",cr);var br=Pt.context;return Rt.set(br,"."+Be,cr+"?"+cr+".width:"+br+"."+Ht),Rt.set(br,"."+tt,cr+"?"+cr+".height:"+br+"."+rr),cr})}else return null}function wa(Ve,et,at){var kt=Ve.static,Ot=Ve.dynamic;function It(mt){if(mt in kt){var Pt=kt[mt],ht=!0,cr=Pt.x|0,br=Pt.y|0,Nr,Ri;return"width"in Pt?Nr=Pt.width|0:ht=!1,"height"in Pt?Ri=Pt.height|0:ht=!1,new ti(!ht&&et&&et.thisDep,!ht&&et&&et.contextDep,!ht&&et&&et.propDep,function(gn,tn){var Ci=gn.shared.context,qi=Nr;"width"in Pt||(qi=tn.def(Ci,".",Be,"-",cr));var Vi=Ri;return"height"in Pt||(Vi=tn.def(Ci,".",tt,"-",br)),[cr,br,qi,Vi]})}else if(mt in Ot){var hi=Ot[mt],wi=Nn(hi,function(gn,tn){var Ci=gn.invoke(tn,hi),qi=gn.shared.context,Vi=tn.def(Ci,".x|0"),on=tn.def(Ci,".y|0"),On=tn.def('"width" in ',Ci,"?",Ci,".width|0:","(",qi,".",Be,"-",Vi,")"),Ja=tn.def('"height" in ',Ci,"?",Ci,".height|0:","(",qi,".",tt,"-",on,")");return[Vi,on,On,Ja]});return et&&(wi.thisDep=wi.thisDep||et.thisDep,wi.contextDep=wi.contextDep||et.contextDep,wi.propDep=wi.propDep||et.propDep),wi}else return et?new ti(et.thisDep,et.contextDep,et.propDep,function(gn,tn){var Ci=gn.shared.context;return[0,0,tn.def(Ci,".",Be),tn.def(Ci,".",tt)]}):null}var Bt=It(ee);if(Bt){var Rt=Bt;Bt=new ti(Bt.thisDep,Bt.contextDep,Bt.propDep,function(mt,Pt){var ht=Rt.append(mt,Pt),cr=mt.shared.context;return Pt.set(cr,"."+We,ht[2]),Pt.set(cr,"."+it,ht[3]),ht})}return{viewport:Bt,scissor_box:It(Q)}}function ns(Ve,et){var at=Ve.static,kt=typeof at[ot]=="string"&&typeof at[Xe]=="string";if(kt){if(Object.keys(et.dynamic).length>0)return null;var Ot=et.static,It=Object.keys(Ot);if(It.length>0&&typeof Ot[It[0]]=="number"){for(var Bt=[],Rt=0;Rt"+Vi+"?"+ht+".constant["+Vi+"]:0;"}).join(""),"}}else{","if(",Nr,"(",ht,".buffer)){",gn,"=",Ri,".createStream(",Sr,",",ht,".buffer);","}else{",gn,"=",Ri,".getBuffer(",ht,".buffer);","}",tn,'="type" in ',ht,"?",br.glTypes,"[",ht,".type]:",gn,".dtype;",hi.normalized,"=!!",ht,".normalized;");function Ci(qi){Pt(hi[qi],"=",ht,".",qi,"|0;")}return Ci("size"),Ci("offset"),Ci("stride"),Ci("divisor"),Pt("}}"),Pt.exit("if(",hi.isStream,"){",Ri,".destroyStream(",gn,");","}"),hi}Ot[It]=Nn(Bt,Rt)}),Ot}function ol(Ve){var et=Ve.static,at=Ve.dynamic,kt={};return Object.keys(et).forEach(function(Ot){var It=et[Ot];kt[Ot]=Cn(function(Bt,Rt){return typeof It=="number"||typeof It=="boolean"?""+It:Bt.link(It)})}),Object.keys(at).forEach(function(Ot){var It=at[Ot];kt[Ot]=Nn(It,function(Bt,Rt){return Bt.invoke(Rt,It)})}),kt}function Ul(Ve,et,at,kt,Ot){var It=Ve.static,Bt=Ve.dynamic,Rt=ns(Ve,et),mt=oa(Ve,Ot),Pt=wa(Ve,mt,Ot),ht=Va(Ve,Ot),cr=Ml(Ve,Ot),br=Ys(Ve,Ot,Rt);function Nr(Ci){var qi=Pt[Ci];qi&&(cr[Ci]=qi)}Nr(ee),Nr(Ki(Q));var Ri=Object.keys(cr).length>0,hi={framebuffer:mt,draw:ht,shader:br,state:cr,dirty:Ri,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(hi.profile=ra(Ve,Ot),hi.uniforms=zo(at,Ot),hi.drawVAO=hi.scopeVAO=ht.vao,!hi.drawVAO&&br.program&&!Rt&&zt.angle_instanced_arrays&&ht.static.elements){var wi=!0,gn=br.program.attributes.map(function(Ci){var qi=et.static[Ci];return wi=wi&&!!qi,qi});if(wi&&gn.length>0){var tn=Oi.getVAO(Oi.createVAO({attributes:gn,elements:ht.static.elements}));hi.drawVAO=new ti(null,null,null,function(Ci,qi){return Ci.link(tn)}),hi.useVAO=!0}}return Rt?hi.useVAO=!0:hi.attributes=el(et,Ot),hi.context=ol(kt,Ot),hi}function ls(Ve,et,at){var kt=Ve.shared,Ot=kt.context,It=Ve.scope();Object.keys(at).forEach(function(Bt){et.save(Ot,"."+Bt);var Rt=at[Bt],mt=Rt.append(Ve,et);Array.isArray(mt)?It(Ot,".",Bt,"=[",mt.join(),"];"):It(Ot,".",Bt,"=",mt,";")}),et(It)}function Gs(Ve,et,at,kt){var Ot=Ve.shared,It=Ot.gl,Bt=Ot.framebuffer,Rt;ci&&(Rt=et.def(Ot.extensions,".webgl_draw_buffers"));var mt=Ve.constants,Pt=mt.drawBuffer,ht=mt.backBuffer,cr;at?cr=at.append(Ve,et):cr=et.def(Bt,".next"),kt||et("if(",cr,"!==",Bt,".cur){"),et("if(",cr,"){",It,".bindFramebuffer(",qr,",",cr,".framebuffer);"),ci&&et(Rt,".drawBuffersWEBGL(",Pt,"[",cr,".colorAttachments.length]);"),et("}else{",It,".bindFramebuffer(",qr,",null);"),ci&&et(Rt,".drawBuffersWEBGL(",ht,");"),et("}",Bt,".cur=",cr,";"),kt||et("}")}function Ks(Ve,et,at){var kt=Ve.shared,Ot=kt.gl,It=Ve.current,Bt=Ve.next,Rt=kt.current,mt=kt.next,Pt=Ve.cond(Rt,".dirty");vi.forEach(function(ht){var cr=Ki(ht);if(!(cr in at.state)){var br,Nr;if(cr in Bt){br=Bt[cr],Nr=It[cr];var Ri=M(Xi[cr].length,function(wi){return Pt.def(br,"[",wi,"]")});Pt(Ve.cond(Ri.map(function(wi,gn){return wi+"!=="+Nr+"["+gn+"]"}).join("||")).then(Ot,".",mn[cr],"(",Ri,");",Ri.map(function(wi,gn){return Nr+"["+gn+"]="+wi}).join(";"),";"))}else{br=Pt.def(mt,".",cr);var hi=Ve.cond(br,"!==",Rt,".",cr);Pt(hi),cr in li?hi(Ve.cond(br).then(Ot,".enable(",li[cr],");").else(Ot,".disable(",li[cr],");"),Rt,".",cr,"=",br,";"):hi(Ot,".",mn[cr],"(",br,");",Rt,".",cr,"=",br,";")}}}),Object.keys(at.state).length===0&&Pt(Rt,".dirty=false;"),et(Pt)}function Ta(Ve,et,at,kt){var Ot=Ve.shared,It=Ve.current,Bt=Ot.current,Rt=Ot.gl,mt;Ai(Object.keys(at)).forEach(function(Pt){var ht=at[Pt];if(!(kt&&!kt(ht))){var cr=ht.append(Ve,et);if(li[Pt]){var br=li[Pt];Rn(ht)?(mt=Ve.link(cr,{stable:!0}),et(Ve.cond(mt).then(Rt,".enable(",br,");").else(Rt,".disable(",br,");")),et(Bt,".",Pt,"=",mt,";")):(et(Ve.cond(cr).then(Rt,".enable(",br,");").else(Rt,".disable(",br,");")),et(Bt,".",Pt,"=",cr,";"))}else if(En(cr)){var Nr=It[Pt];et(Rt,".",mn[Pt],"(",cr,");",cr.map(function(Ri,hi){return Nr+"["+hi+"]="+Ri}).join(";"),";")}else Rn(ht)?(mt=Ve.link(cr,{stable:!0}),et(Rt,".",mn[Pt],"(",mt,");",Bt,".",Pt,"=",mt,";")):et(Rt,".",mn[Pt],"(",cr,");",Bt,".",Pt,"=",cr,";")}})}function sl(Ve,et){Ii&&(Ve.instancing=et.def(Ve.shared.extensions,".angle_instanced_arrays"))}function io(Ve,et,at,kt,Ot){var It=Ve.shared,Bt=Ve.stats,Rt=It.current,mt=It.timer,Pt=at.profile;function ht(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var cr,br;function Nr(Ci){cr=et.def(),Ci(cr,"=",ht(),";"),typeof Ot=="string"?Ci(Bt,".count+=",Ot,";"):Ci(Bt,".count++;"),ji&&(kt?(br=et.def(),Ci(br,"=",mt,".getNumPendingQueries();")):Ci(mt,".beginQuery(",Bt,");"))}function Ri(Ci){Ci(Bt,".cpuTime+=",ht(),"-",cr,";"),ji&&(kt?Ci(mt,".pushScopeStats(",br,",",mt,".getNumPendingQueries(),",Bt,");"):Ci(mt,".endQuery();"))}function hi(Ci){var qi=et.def(Rt,".profile");et(Rt,".profile=",Ci,";"),et.exit(Rt,".profile=",qi,";")}var wi;if(Pt){if(Rn(Pt)){Pt.enable?(Nr(et),Ri(et.exit),hi("true")):hi("false");return}wi=Pt.append(Ve,et),hi(wi)}else wi=et.def(Rt,".profile");var gn=Ve.block();Nr(gn),et("if(",wi,"){",gn,"}");var tn=Ve.block();Ri(tn),et.exit("if(",wi,"){",tn,"}")}function Y(Ve,et,at,kt,Ot){var It=Ve.shared;function Bt(mt){switch(mt){case ko:case Is:case dl:return 2;case Qa:case As:case Nl:return 3;case mo:case wo:case Lu:return 4;default:return 1}}function Rt(mt,Pt,ht){var cr=It.gl,br=et.def(mt,".location"),Nr=et.def(It.attributes,"[",br,"]"),Ri=ht.state,hi=ht.buffer,wi=[ht.x,ht.y,ht.z,ht.w],gn=["buffer","normalized","offset","stride"];function tn(){et("if(!",Nr,".buffer){",cr,".enableVertexAttribArray(",br,");}");var qi=ht.type,Vi;if(ht.size?Vi=et.def(ht.size,"||",Pt):Vi=Pt,et("if(",Nr,".type!==",qi,"||",Nr,".size!==",Vi,"||",gn.map(function(On){return Nr+"."+On+"!=="+ht[On]}).join("||"),"){",cr,".bindBuffer(",Sr,",",hi,".buffer);",cr,".vertexAttribPointer(",[br,Vi,qi,ht.normalized,ht.stride,ht.offset],");",Nr,".type=",qi,";",Nr,".size=",Vi,";",gn.map(function(On){return Nr+"."+On+"="+ht[On]+";"}).join(""),"}"),Ii){var on=ht.divisor;et("if(",Nr,".divisor!==",on,"){",Ve.instancing,".vertexAttribDivisorANGLE(",[br,on],");",Nr,".divisor=",on,";}")}}function Ci(){et("if(",Nr,".buffer){",cr,".disableVertexAttribArray(",br,");",Nr,".buffer=null;","}if(",ka.map(function(qi,Vi){return Nr+"."+qi+"!=="+wi[Vi]}).join("||"),"){",cr,".vertexAttrib4f(",br,",",wi,");",ka.map(function(qi,Vi){return Nr+"."+qi+"="+wi[Vi]+";"}).join(""),"}")}Ri===La?tn():Ri===Na?Ci():(et("if(",Ri,"===",La,"){"),tn(),et("}else{"),Ci(),et("}"))}kt.forEach(function(mt){var Pt=mt.name,ht=at.attributes[Pt],cr;if(ht){if(!Ot(ht))return;cr=ht.append(Ve,et)}else{if(!Ot(ia))return;var br=Ve.scopeAttrib(Pt);cr={},Object.keys(new Yr).forEach(function(Nr){cr[Nr]=et.def(br,".",Nr)})}Rt(Ve.link(mt),Bt(mt.info.type),cr)})}function D(Ve,et,at,kt,Ot,It){for(var Bt=Ve.shared,Rt=Bt.gl,mt,Pt=0;Pt1){for(var co=[],rs=[],so=0;so>1)",hi],");")}function on(){at(wi,".drawArraysInstancedANGLE(",[br,Nr,Ri,hi],");")}ht&&ht!=="null"?tn?Vi():(at("if(",ht,"){"),Vi(),at("}else{"),on(),at("}")):on()}function qi(){function Vi(){at(It+".drawElements("+[br,Ri,gn,Nr+"<<(("+gn+"-"+Ra+")>>1)"]+");")}function on(){at(It+".drawArrays("+[br,Nr,Ri]+");")}ht&&ht!=="null"?tn?Vi():(at("if(",ht,"){"),Vi(),at("}else{"),on(),at("}")):on()}Ii&&(typeof hi!="number"||hi>=0)?typeof hi=="string"?(at("if(",hi,">0){"),Ci(),at("}else if(",hi,"<0){"),qi(),at("}")):Ci():qi()}function q(Ve,et,at,kt,Ot){var It=Ln(),Bt=It.proc("body",Ot);return Ii&&(It.instancing=Bt.def(It.shared.extensions,".angle_instanced_arrays")),Ve(It,Bt,at,kt),It.compile().body}function K(Ve,et,at,kt){sl(Ve,et),at.useVAO?at.drawVAO?et(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,et),");"):et(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(et(Ve.shared.vao,".setVAO(null);"),Y(Ve,et,at,kt.attributes,function(){return!0})),D(Ve,et,at,kt.uniforms,function(){return!0},!1),J(Ve,et,et,at)}function de(Ve,et){var at=Ve.proc("draw",1);sl(Ve,at),ls(Ve,at,et.context),Gs(Ve,at,et.framebuffer),Ks(Ve,at,et),Ta(Ve,at,et.state),io(Ve,at,et,!1,!0);var kt=et.shader.progVar.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",kt,".program);"),et.shader.program)K(Ve,at,et,et.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var Ot=Ve.global.def("{}"),It=at.def(kt,".id"),Bt=at.def(Ot,"[",It,"]");at(Ve.cond(Bt).then(Bt,".call(this,a0);").else(Bt,"=",Ot,"[",It,"]=",Ve.link(function(Rt){return q(K,Ve,et,Rt,1)}),"(",kt,");",Bt,".call(this,a0);"))}Object.keys(et.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ne(Ve,et,at,kt){Ve.batchId="a1",sl(Ve,et);function Ot(){return!0}Y(Ve,et,at,kt.attributes,Ot),D(Ve,et,at,kt.uniforms,Ot,!1),J(Ve,et,et,at)}function we(Ve,et,at,kt){sl(Ve,et);var Ot=at.contextDep,It=et.def(),Bt="a0",Rt="a1",mt=et.def();Ve.shared.props=mt,Ve.batchId=It;var Pt=Ve.scope(),ht=Ve.scope();et(Pt.entry,"for(",It,"=0;",It,"<",Rt,";++",It,"){",mt,"=",Bt,"[",It,"];",ht,"}",Pt.exit);function cr(gn){return gn.contextDep&&Ot||gn.propDep}function br(gn){return!cr(gn)}if(at.needsContext&&ls(Ve,ht,at.context),at.needsFramebuffer&&Gs(Ve,ht,at.framebuffer),Ta(Ve,ht,at.state,cr),at.profile&&cr(at.profile)&&io(Ve,ht,at,!1,!0),kt)at.useVAO?at.drawVAO?cr(at.drawVAO)?ht(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,ht),");"):Pt(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,Pt),");"):Pt(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(Pt(Ve.shared.vao,".setVAO(null);"),Y(Ve,Pt,at,kt.attributes,br),Y(Ve,ht,at,kt.attributes,cr)),D(Ve,Pt,at,kt.uniforms,br,!1),D(Ve,ht,at,kt.uniforms,cr,!0),J(Ve,Pt,ht,at);else{var Nr=Ve.global.def("{}"),Ri=at.shader.progVar.append(Ve,ht),hi=ht.def(Ri,".id"),wi=ht.def(Nr,"[",hi,"]");ht(Ve.shared.gl,".useProgram(",Ri,".program);","if(!",wi,"){",wi,"=",Nr,"[",hi,"]=",Ve.link(function(gn){return q(ne,Ve,at,gn,2)}),"(",Ri,");}",wi,".call(this,a0[",It,"],",It,");")}}function Ue(Ve,et){var at=Ve.proc("batch",2);Ve.batchId="0",sl(Ve,at);var kt=!1,Ot=!0;Object.keys(et.context).forEach(function(Nr){kt=kt||et.context[Nr].propDep}),kt||(ls(Ve,at,et.context),Ot=!1);var It=et.framebuffer,Bt=!1;It?(It.propDep?kt=Bt=!0:It.contextDep&&kt&&(Bt=!0),Bt||Gs(Ve,at,It)):Gs(Ve,at,null),et.state.viewport&&et.state.viewport.propDep&&(kt=!0);function Rt(Nr){return Nr.contextDep&&kt||Nr.propDep}Ks(Ve,at,et),Ta(Ve,at,et.state,function(Nr){return!Rt(Nr)}),(!et.profile||!Rt(et.profile))&&io(Ve,at,et,!1,"a1"),et.contextDep=kt,et.needsContext=Ot,et.needsFramebuffer=Bt;var mt=et.shader.progVar;if(mt.contextDep&&kt||mt.propDep)we(Ve,at,et,null);else{var Pt=mt.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",Pt,".program);"),et.shader.program)we(Ve,at,et,et.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var ht=Ve.global.def("{}"),cr=at.def(Pt,".id"),br=at.def(ht,"[",cr,"]");at(Ve.cond(br).then(br,".call(this,a0,a1);").else(br,"=",ht,"[",cr,"]=",Ve.link(function(Nr){return q(we,Ve,et,Nr,2)}),"(",Pt,");",br,".call(this,a0,a1);"))}}Object.keys(et.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ft(Ve,et){var at=Ve.proc("scope",3);Ve.batchId="a2";var kt=Ve.shared,Ot=kt.current;if(ls(Ve,at,et.context),et.framebuffer&&et.framebuffer.append(Ve,at),Ai(Object.keys(et.state)).forEach(function(Rt){var mt=et.state[Rt],Pt=mt.append(Ve,at);En(Pt)?Pt.forEach(function(ht,cr){vn(ht)?at.set(Ve.next[Rt],"["+cr+"]",ht):at.set(Ve.next[Rt],"["+cr+"]",Ve.link(ht,{stable:!0}))}):Rn(mt)?at.set(kt.next,"."+Rt,Ve.link(Pt,{stable:!0})):at.set(kt.next,"."+Rt,Pt)}),io(Ve,at,et,!0,!0),[Tt,xr,Jt,Pr,Kt].forEach(function(Rt){var mt=et.draw[Rt];if(mt){var Pt=mt.append(Ve,at);vn(Pt)?at.set(kt.draw,"."+Rt,Pt):at.set(kt.draw,"."+Rt,Ve.link(Pt),{stable:!0})}}),Object.keys(et.uniforms).forEach(function(Rt){var mt=et.uniforms[Rt].append(Ve,at);Array.isArray(mt)&&(mt="["+mt.map(function(Pt){return vn(Pt)?Pt:Ve.link(Pt,{stable:!0})})+"]"),at.set(kt.uniforms,"["+Ve.link(xt.id(Rt),{stable:!0})+"]",mt)}),Object.keys(et.attributes).forEach(function(Rt){var mt=et.attributes[Rt].append(Ve,at),Pt=Ve.scopeAttrib(Rt);Object.keys(new Yr).forEach(function(ht){at.set(Pt,"."+ht,mt[ht])})}),et.scopeVAO){var It=et.scopeVAO.append(Ve,at);vn(It)?at.set(kt.vao,".targetVAO",It):at.set(kt.vao,".targetVAO",Ve.link(It,{stable:!0}))}function Bt(Rt){var mt=et.shader[Rt];if(mt){var Pt=mt.append(Ve,at);vn(Pt)?at.set(kt.shader,"."+Rt,Pt):at.set(kt.shader,"."+Rt,Ve.link(Pt,{stable:!0}))}}Bt(Xe),Bt(ot),Object.keys(et.state).length>0&&(at(Ot,".dirty=true;"),at.exit(Ot,".dirty=true;")),at("a1(",Ve.shared.context,",a0,",Ve.batchId,");")}function Zt(Ve){if(!(typeof Ve!="object"||En(Ve))){for(var et=Object.keys(Ve),at=0;at=0;--q){var K=Un[q];K&&K(si,null,0)}zt.flush(),Mi&&Mi.update()}function wa(){!ra&&Un.length>0&&(ra=d.next(oa))}function ns(){ra&&(d.cancel(oa),ra=null)}function Ys(q){q.preventDefault(),Hr=!0,ns(),na.forEach(function(K){K()})}function Va(q){zt.getError(),Hr=!1,Br.restore(),qn.restore(),Ii.restore(),vi.restore(),li.restore(),mn.restore(),nn.restore(),Mi&&Mi.restore(),Ki.procs.refresh(),wa(),Yi.forEach(function(K){K()})}vn&&(vn.addEventListener(Fo,Ys,!1),vn.addEventListener(Uo,Va,!1));function Ml(){Un.length=0,ns(),vn&&(vn.removeEventListener(Fo,Ys),vn.removeEventListener(Uo,Va)),qn.clear(),mn.clear(),li.clear(),nn.clear(),vi.clear(),ci.clear(),Ii.clear(),Mi&&Mi.clear(),Ln.forEach(function(q){q()})}function zo(q){function K(It){var Bt=e({},It);delete Bt.uniforms,delete Bt.attributes,delete Bt.context,delete Bt.vao,"stencil"in Bt&&Bt.stencil.op&&(Bt.stencil.opBack=Bt.stencil.opFront=Bt.stencil.op,delete Bt.stencil.op);function Rt(mt){if(mt in Bt){var Pt=Bt[mt];delete Bt[mt],Object.keys(Pt).forEach(function(ht){Bt[mt+"."+ht]=Pt[ht]})}}return Rt("blend"),Rt("depth"),Rt("cull"),Rt("stencil"),Rt("polygonOffset"),Rt("scissor"),Rt("sample"),"vao"in It&&(Bt.vao=It.vao),Bt}function de(It,Bt){var Rt={},mt={};return Object.keys(It).forEach(function(Pt){var ht=It[Pt];if(h.isDynamic(ht)){mt[Pt]=h.unbox(ht,Pt);return}else if(Bt&&Array.isArray(ht)){for(var cr=0;cr0)return Ve.call(this,kt(It|0),It|0)}else if(Array.isArray(It)){if(It.length)return Ve.call(this,It,It.length)}else return qt.call(this,It)}return e(Ot,{stats:Zt,destroy:function(){hr.destroy()}})}var el=mn.setFBO=zo({framebuffer:h.define.call(null,Qs,"framebuffer")});function ol(q,K){var de=0;Ki.procs.poll();var ne=K.color;ne&&(zt.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),de|=Es),"depth"in K&&(zt.clearDepth(+K.depth),de|=Zs),"stencil"in K&&(zt.clearStencil(K.stencil|0),de|=Gn),zt.clear(de)}function Ul(q){if("framebuffer"in q)if(q.framebuffer&&q.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)el(e({framebuffer:q.framebuffer.faces[K]},q),ol);else el(q,ol);else ol(null,q)}function ls(q){Un.push(q);function K(){var de=vl(Un,q);function ne(){var we=vl(Un,ne);Un[we]=Un[Un.length-1],Un.length-=1,Un.length<=0&&ns()}Un[de]=ne}return wa(),{cancel:K}}function Gs(){var q=Bi.viewport,K=Bi.scissor_box;q[0]=q[1]=K[0]=K[1]=0,si.viewportWidth=si.framebufferWidth=si.drawingBufferWidth=q[2]=K[2]=zt.drawingBufferWidth,si.viewportHeight=si.framebufferHeight=si.drawingBufferHeight=q[3]=K[3]=zt.drawingBufferHeight}function Ks(){si.tick+=1,si.time=sl(),Gs(),Ki.procs.poll()}function Ta(){vi.refresh(),Gs(),Ki.procs.refresh(),Mi&&Mi.update()}function sl(){return(v()-Hn)/1e3}Ta();function io(q,K){var de;switch(q){case"frame":return ls(K);case"lost":de=na;break;case"restore":de=Yi;break;case"destroy":de=Ln;break;default:}return de.push(K),{cancel:function(){for(var ne=0;ne=0},read:Ui,destroy:Ml,_gl:zt,_refresh:Ta,poll:function(){Ks(),Mi&&Mi.update()},now:sl,stats:mi,getCachedCode:Y,preloadCachedCode:D});return xt.onDone(null,J),J}return Sc})});var Mqe=ye((r1r,Sqe)=>{"use strict";var gNt=Xm();Sqe.exports=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},Tqe(t)?t={container:t}:mNt(t)?t={container:t}:yNt(t)?t={gl:t}:t=gNt(t,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),t.pixelRatio||(t.pixelRatio=window.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(typeof t.container=="string"){var r=document.querySelector(t.container);if(!r)throw Error("Element "+t.container+" is not found");t.container=r}Tqe(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=Aqe(),t.container.appendChild(t.canvas),wqe(t))}else if(!t.canvas)if(typeof document!="undefined")t.container=document.body||document.documentElement,t.canvas=Aqe(),t.container.appendChild(t.canvas),wqe(t);else throw Error("Not DOM environment. Use headless-gl.");return t.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(n){try{t.gl=t.canvas.getContext(n,t.attrs)}catch(i){}return t.gl}),t.gl};function wqe(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function Tqe(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function mNt(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function yNt(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function Aqe(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var Cqe=ye((i1r,Eqe)=>{"use strict";var _Nt=JY(),xNt=[32,126];Eqe.exports=bNt;function bNt(e){e=e||{};var t=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],r=e.canvas||document.createElement("canvas"),n=e.font,i=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],a=e.chars||xNt;if(n&&typeof n!="string"&&(n=_Nt(n)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],s=a[0],l=0;s<=a[1];s++)o[l++]=String.fromCharCode(s);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var u=r.getContext("2d");u.fillStyle="#000",u.fillRect(0,0,r.width,r.height),u.font=n,u.textAlign="center",u.textBaseline="middle",u.fillStyle="#fff";for(var c=i[0]/2,f=i[1]/2,s=0;st[0]-i[0]/2&&(c=i[0]/2,f+=i[1]);return r}});var tK=ye(Oh=>{"use strict";"use restrict";var eK=32;Oh.INT_BITS=eK;Oh.INT_MAX=2147483647;Oh.INT_MIN=-1<0)-(e<0)};Oh.abs=function(e){var t=e>>eK-1;return(e^t)-t};Oh.min=function(e,t){return t^(e^t)&-(e65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,t|=r,t|e>>1};Oh.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};Oh.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function kqe(e){var t=32;return e&=-e,e&&t--,e&65535&&(t-=16),e&16711935&&(t-=8),e&252645135&&(t-=4),e&858993459&&(t-=2),e&1431655765&&(t-=1),t}Oh.countTrailingZeros=kqe;Oh.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};Oh.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};Oh.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var AC=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,n=t,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=r&1,--i;e[t]=n<>>8&255]<<16|AC[e>>>16&255]<<8|AC[e>>>24&255]};Oh.interleave2=function(e,t){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1};Oh.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};Oh.interleave3=function(e,t,r){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|=t<<1,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|r<<2};Oh.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};Oh.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>kqe(e)+1}});var Iqe=ye((a1r,Pqe)=>{"use strict";function Lqe(e,t,r){var n=e[r]|0;if(n<=0)return[];var i=new Array(n),a;if(r===e.length-1)for(a=0;a0)return wNt(e|0,t);break;case"object":if(typeof e.length=="number")return Lqe(e,t,0);break}return[]}Pqe.exports=TNt});var Xqe=ye(mu=>{"use strict";var fx=tK(),Av=Iqe(),Rqe=u2().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:Av([32,0]),UINT16:Av([32,0]),UINT32:Av([32,0]),BIGUINT64:Av([32,0]),INT8:Av([32,0]),INT16:Av([32,0]),INT32:Av([32,0]),BIGINT64:Av([32,0]),FLOAT:Av([32,0]),DOUBLE:Av([32,0]),DATA:Av([32,0]),UINT8C:Av([32,0]),BUFFER:Av([32,0])});var ANt=typeof Uint8ClampedArray!="undefined",SNt=typeof BigUint64Array!="undefined",MNt=typeof BigInt64Array!="undefined",nd=window.__TYPEDARRAY_POOL;nd.UINT8C||(nd.UINT8C=Av([32,0]));nd.BIGUINT64||(nd.BIGUINT64=Av([32,0]));nd.BIGINT64||(nd.BIGINT64=Av([32,0]));nd.BUFFER||(nd.BUFFER=Av([32,0]));var pz=nd.DATA,gz=nd.BUFFER;mu.free=function(t){if(Rqe.isBuffer(t))gz[fx.log2(t.length)].push(t);else{if(Object.prototype.toString.call(t)!=="[object ArrayBuffer]"&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,n=fx.log2(r)|0;pz[n].push(t)}};function Dqe(e){if(e){var t=e.length||e.byteLength,r=fx.log2(t);pz[r].push(e)}}function ENt(e){Dqe(e.buffer)}mu.freeUint8=mu.freeUint16=mu.freeUint32=mu.freeBigUint64=mu.freeInt8=mu.freeInt16=mu.freeInt32=mu.freeBigInt64=mu.freeFloat32=mu.freeFloat=mu.freeFloat64=mu.freeDouble=mu.freeUint8Clamped=mu.freeDataView=ENt;mu.freeArrayBuffer=Dqe;mu.freeBuffer=function(t){gz[fx.log2(t.length)].push(t)};mu.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return qp(t);switch(r){case"uint8":return rK(t);case"uint16":return Fqe(t);case"uint32":return zqe(t);case"int8":return Oqe(t);case"int16":return qqe(t);case"int32":return Bqe(t);case"float":case"float32":return Nqe(t);case"double":case"float64":return Uqe(t);case"uint8_clamped":return Vqe(t);case"bigint64":return Hqe(t);case"biguint64":return Gqe(t);case"buffer":return Wqe(t);case"data":case"dataview":return jqe(t);default:return null}return null};function qp(t){var t=fx.nextPow2(t),r=fx.log2(t),n=pz[r];return n.length>0?n.pop():new ArrayBuffer(t)}mu.mallocArrayBuffer=qp;function rK(e){return new Uint8Array(qp(e),0,e)}mu.mallocUint8=rK;function Fqe(e){return new Uint16Array(qp(2*e),0,e)}mu.mallocUint16=Fqe;function zqe(e){return new Uint32Array(qp(4*e),0,e)}mu.mallocUint32=zqe;function Oqe(e){return new Int8Array(qp(e),0,e)}mu.mallocInt8=Oqe;function qqe(e){return new Int16Array(qp(2*e),0,e)}mu.mallocInt16=qqe;function Bqe(e){return new Int32Array(qp(4*e),0,e)}mu.mallocInt32=Bqe;function Nqe(e){return new Float32Array(qp(4*e),0,e)}mu.mallocFloat32=mu.mallocFloat=Nqe;function Uqe(e){return new Float64Array(qp(8*e),0,e)}mu.mallocFloat64=mu.mallocDouble=Uqe;function Vqe(e){return ANt?new Uint8ClampedArray(qp(e),0,e):rK(e)}mu.mallocUint8Clamped=Vqe;function Gqe(e){return SNt?new BigUint64Array(qp(8*e),0,e):null}mu.mallocBigUint64=Gqe;function Hqe(e){return MNt?new BigInt64Array(qp(8*e),0,e):null}mu.mallocBigInt64=Hqe;function jqe(e){return new DataView(qp(e),0,e)}mu.mallocDataView=jqe;function Wqe(e){e=fx.nextPow2(e);var t=fx.log2(e),r=gz[t];return r.length>0?r.pop():new Rqe(e)}mu.mallocBuffer=Wqe;mu.clearCache=function(){for(var t=0;t<32;++t)nd.UINT8[t].length=0,nd.UINT16[t].length=0,nd.UINT32[t].length=0,nd.INT8[t].length=0,nd.INT16[t].length=0,nd.INT32[t].length=0,nd.FLOAT[t].length=0,nd.DOUBLE[t].length=0,nd.BIGUINT64[t].length=0,nd.BIGINT64[t].length=0,nd.UINT8C[t].length=0,pz[t].length=0,gz[t].length=0}});var Yqe=ye((s1r,Zqe)=>{"use strict";var CNt=Object.prototype.toString;Zqe.exports=function(e){var t;return CNt.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var iK=ye((l1r,Kqe)=>{Kqe.exports=function(t,r){r||(r=[0,""]),t=String(t);var n=parseFloat(t,10);return r[0]=n,r[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",r}});var Qqe=ye((u1r,$qe)=>{"use strict";var kNt=iK();$qe.exports=Jqe;var SC=96;function nK(e,t){var r=kNt(getComputedStyle(e).getPropertyValue(t));return r[0]*Jqe(r[1],e)}function LNt(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=nK(r,"font-size")/128;return t.removeChild(r),n}function Jqe(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),(t===window||t===document)&&(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return LNt(e,t);case"em":return nK(t,"font-size");case"rem":return nK(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return SC;case"cm":return SC/2.54;case"mm":return SC/25.4;case"pt":return SC/72;case"pc":return SC/6}return 1}});var rBe=ye((c1r,tBe)=>{"use strict";tBe.exports=_z;var PNt=_z.canvas=document.createElement("canvas"),mz=PNt.getContext("2d"),eBe=yz([32,126]);_z.createPairs=yz;_z.ascii=eBe;function _z(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=yz(t):Array.isArray(t)?n=t:(t.o?n=yz(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=eBe),mz.font=i+"px "+e;for(var o=0;oi*a){var c=(u-l)/i;r[s]=c*1e3}}return r}function yz(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i{"use strict";aBe.exports=hx;hx.canvas=document.createElement("canvas");hx.cache={};function hx(o,t){t||(t={}),(typeof o=="string"||Array.isArray(o))&&(t.family=o);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var n=t.size||t.fontSize||t.em||48,i=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,i,n].join(" ")+"px "+r,s=t.origin||"top";if(hx.cache[r]&&n<=hx.cache[r].em)return iBe(hx.cache[r],s);var l=t.canvas||hx.canvas,u=l.getContext("2d"),c={upper:t.upper!==void 0?t.upper:"H",lower:t.lower!==void 0?t.lower:"x",descent:t.descent!==void 0?t.descent:"p",ascent:t.ascent!==void 0?t.ascent:"h",tittle:t.tittle!==void 0?t.tittle:"i",overshoot:t.overshoot!==void 0?t.overshoot:"O"},f=Math.ceil(n*1.5);l.height=f,l.width=f*.5,u.font=o;var h="H",d={top:0};u.clearRect(0,0,f,f),u.textBaseline="top",u.fillStyle="black",u.fillText(h,0,0);var v=Ym(u.getImageData(0,0,f,f));u.clearRect(0,0,f,f),u.textBaseline="bottom",u.fillText(h,0,f);var _=Ym(u.getImageData(0,0,f,f));d.lineHeight=d.bottom=f-_+v,u.clearRect(0,0,f,f),u.textBaseline="alphabetic",u.fillText(h,0,f);var b=Ym(u.getImageData(0,0,f,f)),p=f-b-1+v;d.baseline=d.alphabetic=p,u.clearRect(0,0,f,f),u.textBaseline="middle",u.fillText(h,0,f*.5);var C=Ym(u.getImageData(0,0,f,f));d.median=d.middle=f-C-1+v-f*.5,u.clearRect(0,0,f,f),u.textBaseline="hanging",u.fillText(h,0,f*.5);var E=Ym(u.getImageData(0,0,f,f));d.hanging=f-E-1+v-f*.5,u.clearRect(0,0,f,f),u.textBaseline="ideographic",u.fillText(h,0,f);var A=Ym(u.getImageData(0,0,f,f));if(d.ideographic=f-A-1+v,c.upper&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.upper,0,0),d.upper=Ym(u.getImageData(0,0,f,f)),d.capHeight=d.baseline-d.upper),c.lower&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.lower,0,0),d.lower=Ym(u.getImageData(0,0,f,f)),d.xHeight=d.baseline-d.lower),c.tittle&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.tittle,0,0),d.tittle=Ym(u.getImageData(0,0,f,f))),c.ascent&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.ascent,0,0),d.ascent=Ym(u.getImageData(0,0,f,f))),c.descent&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.descent,0,0),d.descent=nBe(u.getImageData(0,0,f,f))),c.overshoot){u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.overshoot,0,0);var L=nBe(u.getImageData(0,0,f,f));d.overshoot=L-p}for(var x in d)d[x]/=n;return d.em=n,hx.cache[r]=d,iBe(d,s)}function iBe(e,t){var r={};typeof t=="string"&&(t=e[t]);for(var n in e)n!=="em"&&(r[n]=e[n]-t);return r}function Ym(e){for(var t=e.height,r=e.data,n=3;n0;n-=4)if(r[n]!==0)return Math.floor((n-3)*.25/t)}});var cBe=ye((h1r,uBe)=>{"use strict";var h5=xqe(),INt=Xm(),RNt=bqe(),DNt=Mqe(),FNt=OY(),aK=$_(),zNt=Cqe(),dx=Xqe(),ONt=e5(),qNt=Yqe(),BNt=iK(),NNt=Qqe(),UNt=rBe(),VNt=Fh(),GNt=oBe(),HNt=W2(),jNt=tK(),sBe=jNt.nextPow2,lBe=new FNt,bz=!1;document.body&&(xz=document.body.appendChild(document.createElement("div")),xz.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(xz).fontStretch&&(bz=!0),document.body.removeChild(xz));var xz,xc=function(t){WNt(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=DNt(t),this.shader=lBe.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||RNt({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),lBe.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(qNt(t)?t:{})};xc.prototype.createShader=function(){var t=this.regl,r=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:t.prop("count"),offset:t.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this("sizeBuffer")},width:{offset:0,stride:8,buffer:t.this("sizeBuffer")},char:t.this("charBuffer"),position:t.this("position")},uniforms:{atlasSize:function(i,a){return[a.atlas.width,a.atlas.height]},atlasDim:function(i,a){return[a.atlas.cols,a.atlas.rows]},atlas:function(i,a){return a.atlas.texture},charStep:function(i,a){return a.atlas.step},em:function(i,a){return a.atlas.em},color:t.prop("color"),opacity:t.prop("opacity"),viewport:t.this("viewportArray"),scale:t.this("scale"),align:t.prop("align"),baseline:t.prop("baseline"),translate:t.this("translate"),positionOffset:t.prop("positionOffset")},primitive:"points",viewport:t.this("viewport"),vert:` precision highp float; attribute float width, charOffset, char; attribute vec2 position; @@ -2705,17 +2705,17 @@ void main() { // color.rgb += (1. - color.rgb) * (1. - mask.rgb); gl_FragColor = color; - }`}),n={};return{regl:t,draw:r,atlas:n}};xc.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=ENt(t,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),t.opacity!=null&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map(function(ke){return parseFloat(ke)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=INt(t.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),t.kerning!=null&&(this.kerning=t.kerning),t.offset!=null&&(typeof t.offset=="number"&&(t.offset=[t.offset,0]),this.positionOffset=BNt(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!t.font&&(t.font=xc.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(ke,me){if(typeof ke=="string")try{ke=h5.parse(ke)}catch(Ze){ke=h5.parse(xc.baseFontSize+"px "+ke)}else{var ie=ke.style,Se=ke.weight,Le=ke.stretch,Ae=ke.variant;ke=h5.parse(h5.stringify(ke)),ie&&(ke.style=ie),Se&&(ke.weight=Se),Le&&(ke.stretch=Le),Ae&&(ke.variant=Ae)}var Fe=h5.stringify({size:xc.baseFontSize,family:ke.family,stretch:bz?ke.stretch:void 0,variant:ke.variant,weight:ke.weight,style:ke.style}),Pe=DNt(ke.size),ge=Math.round(Pe[0]*FNt(Pe[1]));if(ge!==r.fontSize[me]&&(i=!0,r.fontSize[me]=ge),(!r.font[me]||Fe!=r.font[me].baseString)&&(n=!0,r.font[me]=xc.fonts[Fe],!r.font[me])){var De=ke.family.join(", "),ce=[ke.style];ke.style!=ke.variant&&ce.push(ke.variant),ke.variant!=ke.weight&&ce.push(ke.weight),bz&&ke.weight!=ke.stretch&&ce.push(ke.stretch),r.font[me]={baseString:Fe,family:De,weight:ke.weight,stretch:ke.stretch,style:ke.style,variant:ke.variant,width:{},kerning:{},metrics:qNt(De,{origin:"top",fontSize:xc.baseFontSize,fontStyle:ce.join(" ")})},xc.fonts[Fe]=r.font[me]}}),(n||i)&&this.font.forEach(function(ke,me){var ie=h5.stringify({size:r.fontSize[me],family:ke.family,stretch:bz?ke.stretch:void 0,variant:ke.variant,weight:ke.weight,style:ke.style});if(r.fontAtlas[me]=r.shader.atlas[ie],!r.fontAtlas[me]){var Se=ke.metrics;r.shader.atlas[ie]=r.fontAtlas[me]={fontString:ie,step:Math.ceil(r.fontSize[me]*Se.bottom*.5)*2,em:r.fontSize[me],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:r.regl.texture()}}t.text==null&&(t.text=r.text)}),typeof t.text=="string"&&t.position&&t.position.length>2){for(var a=Array(t.position.length*.5),o=0;o2){for(var u=!t.position[0].length,c=dx.mallocFloat(this.count*2),f=0,h=0;f1?r.align[me]:r.align[0]:r.align;if(typeof ie=="number")return ie;switch(ie){case"right":case"end":return-ke;case"center":case"centre":case"middle":return-ke*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(ke,me){var ie=(r.font[me]||r.font[0]).metrics,Se=0;return Se+=ie.bottom*.5,typeof ke=="number"?Se+=ke-ie.baseline:Se+=-ie[ke],Se*=-1,Se})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=nK(t.color,"uint8");else{var G;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var Z=t.color.length;G=dx.mallocUint8(Z);for(var H=(t.color.subarray||t.color.slice).bind(t.color),N=0;N4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(oe){var _e=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(_e);for(var Me=0;Me1?this.counts[Me]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Me]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Me*4,Me*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Me]:this.opacity,baseline:this.baselineOffset[Me]!=null?this.baselineOffset[Me]:this.baselineOffset[0],align:this.align?this.alignOffset[Me]!=null?this.alignOffset[Me]:this.alignOffset[0]:0,atlas:this.fontAtlas[Me]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Me*2,Me*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};xc.prototype.destroy=function(){};xc.prototype.kerning=!0;xc.prototype.position={constant:new Float32Array(2)};xc.prototype.translate=null;xc.prototype.scale=null;xc.prototype.font=null;xc.prototype.text="";xc.prototype.positionOffset=[0,0];xc.prototype.opacity=1;xc.prototype.color=new Uint8Array([0,0,0,255]);xc.prototype.alignOffset=[0,0];xc.maxAtlasSize=1024;xc.atlasCanvas=document.createElement("canvas");xc.atlasContext=xc.atlasCanvas.getContext("2d",{alpha:!1});xc.baseFontSize=64;xc.fonts={};function UNt(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}lBe.exports=xc});var cBe=ye((aK,oK)=>{(function(e,t){typeof aK=="object"&&typeof oK!="undefined"?oK.exports=t():e.createREGL=t()})(aK,function(){"use strict";var e=function(Ee,_t){for(var zt=Object.keys(_t),Rr=0;Rr1&&_t===zt&&(_t==='"'||_t==="'"))return['"'+o(Ee.substr(1,Ee.length-2))+'"'];var Rr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Ee);if(Rr)return s(Ee.substr(0,Rr.index)).concat(s(Rr[1])).concat(s(Ee.substr(Rr.index+Rr[0].length)));var Hr=Ee.split(".");if(Hr.length===1)return['"'+o(Ee)+'"'];for(var Br=[],Ur=0;Ur65535)<<4,Ee>>>=_t,zt=(Ee>255)<<3,Ee>>>=zt,_t|=zt,zt=(Ee>15)<<2,Ee>>>=zt,_t|=zt,zt=(Ee>3)<<1,Ee>>>=zt,_t|=zt,_t|Ee>>1}function N(){var Ee=M(8,function(){return[]});function _t(Br){var Ur=Z(Br),gi=Ee[H(Ur)>>2];return gi.length>0?gi.pop():new ArrayBuffer(Ur)}function zt(Br){Ee[H(Br.byteLength)>>2].push(Br)}function Rr(Br,Ur){var gi=null;switch(Br){case g:gi=new Int8Array(_t(Ur),0,Ur);break;case P:gi=new Uint8Array(_t(Ur),0,Ur);break;case T:gi=new Int16Array(_t(2*Ur),0,Ur);break;case z:gi=new Uint16Array(_t(2*Ur),0,Ur);break;case O:gi=new Int32Array(_t(4*Ur),0,Ur);break;case V:gi=new Uint32Array(_t(4*Ur),0,Ur);break;case G:gi=new Float32Array(_t(4*Ur),0,Ur);break;default:return null}return gi.length!==Ur?gi.subarray(0,Ur):gi}function Hr(Br){zt(Br.buffer)}return{alloc:_t,free:zt,allocType:Rr,freeType:Hr}}var j=N();j.zero=N();var re=3408,oe=3410,_e=3411,Me=3412,ke=3413,me=3414,ie=3415,Se=33901,Le=33902,Ae=3379,Fe=3386,Pe=34921,ge=36347,De=36348,ce=35661,Ze=35660,ut=34930,gt=36349,Kt=34076,st=34024,lt=7936,Gt=7937,Ut=7938,$t=35724,sr=34047,Tr=36063,ur=34852,$e=3553,Mt=34067,Ct=34069,Vt=33984,It=6408,Ot=5126,bt=5121,rr=36160,lr=36053,wr=36064,Cr=16384,Kr=function(Ee,_t){var zt=1;_t.ext_texture_filter_anisotropic&&(zt=Ee.getParameter(sr));var Rr=1,Hr=1;_t.webgl_draw_buffers&&(Rr=Ee.getParameter(ur),Hr=Ee.getParameter(Tr));var Br=!!_t.oes_texture_float;if(Br){var Ur=Ee.createTexture();Ee.bindTexture($e,Ur),Ee.texImage2D($e,0,It,1,1,0,It,Ot,null);var gi=Ee.createFramebuffer();if(Ee.bindFramebuffer(rr,gi),Ee.framebufferTexture2D(rr,wr,$e,Ur,0),Ee.bindTexture($e,null),Ee.checkFramebufferStatus(rr)!==lr)Br=!1;else{Ee.viewport(0,0,1,1),Ee.clearColor(1,0,0,1),Ee.clear(Cr);var Ni=j.allocType(Ot,4);Ee.readPixels(0,0,1,1,It,Ot,Ni),Ee.getError()?Br=!1:(Ee.deleteFramebuffer(gi),Ee.deleteTexture(Ur),Br=Ni[0]===1),j.freeType(Ni)}}var Oi=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Mi=!0;if(!Oi){var Hn=Ee.createTexture(),Qi=j.allocType(bt,36);Ee.activeTexture(Vt),Ee.bindTexture(Mt,Hn),Ee.texImage2D(Ct,0,It,3,3,0,It,bt,Qi),j.freeType(Qi),Ee.bindTexture(Mt,null),Ee.deleteTexture(Hn),Mi=!Ee.getError()}return{colorBits:[Ee.getParameter(oe),Ee.getParameter(_e),Ee.getParameter(Me),Ee.getParameter(ke)],depthBits:Ee.getParameter(me),stencilBits:Ee.getParameter(ie),subpixelBits:Ee.getParameter(re),extensions:Object.keys(_t).filter(function(Hi){return!!_t[Hi]}),maxAnisotropic:zt,maxDrawbuffers:Rr,maxColorAttachments:Hr,pointSizeDims:Ee.getParameter(Se),lineWidthDims:Ee.getParameter(Le),maxViewportDims:Ee.getParameter(Fe),maxCombinedTextureUnits:Ee.getParameter(ce),maxCubeMapSize:Ee.getParameter(Kt),maxRenderbufferSize:Ee.getParameter(st),maxTextureUnits:Ee.getParameter(ut),maxTextureSize:Ee.getParameter(Ae),maxAttributes:Ee.getParameter(Pe),maxVertexUniforms:Ee.getParameter(ge),maxVertexTextureUnits:Ee.getParameter(Ze),maxVaryingVectors:Ee.getParameter(De),maxFragmentUniforms:Ee.getParameter(gt),glsl:Ee.getParameter($t),renderer:Ee.getParameter(Gt),vendor:Ee.getParameter(lt),version:Ee.getParameter(Ut),readFloat:Br,npotTextureCube:Mi}},Gr=function(Ee){return Ee instanceof Uint8Array||Ee instanceof Uint16Array||Ee instanceof Uint32Array||Ee instanceof Int8Array||Ee instanceof Int16Array||Ee instanceof Int32Array||Ee instanceof Float32Array||Ee instanceof Float64Array||Ee instanceof Uint8ClampedArray};function Yr(Ee){return!!Ee&&typeof Ee=="object"&&Array.isArray(Ee.shape)&&Array.isArray(Ee.stride)&&typeof Ee.offset=="number"&&Ee.shape.length===Ee.stride.length&&(Array.isArray(Ee.data)||Gr(Ee.data))}var dt=function(Ee){return Object.keys(Ee).map(function(_t){return Ee[_t]})},Ge={shape:xe,flatten:Ie};function Qe(Ee,_t,zt){for(var Rr=0;Rr<_t;++Rr)zt[Rr]=Ee[Rr]}function je(Ee,_t,zt,Rr){for(var Hr=0,Br=0;Br<_t;++Br)for(var Ur=Ee[Br],gi=0;gi0){var qn;if(Array.isArray(Zr[0])){Xi=kn(Zr);for(var hi=1,li=1;li0){if(typeof hi[0]=="number"){var Ui=j.allocType(ci.dtype,hi.length);Er(Ui,hi),Xi(Ui,mn),j.freeType(Ui)}else if(Array.isArray(hi[0])||Gr(hi[0])){Ki=kn(hi);var Bi=Vn(hi,Ki,ci.dtype);Xi(Bi,mn),j.freeType(Bi)}}}else if(Yr(hi)){Ki=hi.shape;var vn=hi.stride,Un=0,na=0,Yi=0,Ln=0;Ki.length===1?(Un=Ki[0],na=1,Yi=vn[0],Ln=0):Ki.length===2&&(Un=Ki[0],na=Ki[1],Yi=vn[0],Ln=vn[1]);var ra=Array.isArray(hi.data)?ci.dtype:ar(hi.data),oa=j.allocType(ra,Un*na);Xr(oa,hi.data,Un,na,Yi,Ln,hi.offset),Xi(oa,mn),j.freeType(oa)}return nn}return xi||nn(Mr),nn._reglType="buffer",nn._buffer=ci,nn.subdata=qn,zt.profile&&(nn.stats=ci.stats),nn.destroy=function(){Qi(ci)},nn}function oi(){dt(Br).forEach(function(Mr){Mr.buffer=Ee.createBuffer(),Ee.bindBuffer(Mr.type,Mr.buffer),Ee.bufferData(Mr.type,Mr.persistentData||Mr.byteLength,Mr.usage)})}return zt.profile&&(_t.getTotalBufferSize=function(){var Mr=0;return Object.keys(Br).forEach(function(Zr){Mr+=Br[Zr].stats.size}),Mr}),{create:Hi,createStream:Ni,destroyStream:Oi,clear:function(){dt(Br).forEach(Qi),gi.forEach(Qi)},getBuffer:function(Mr){return Mr&&Mr._buffer instanceof Ur?Mr._buffer:null},restore:oi,_initBuffer:Hn}}var $r=0,zi=0,Ji=1,en=1,cn=4,yn=4,Mn={points:$r,point:zi,lines:Ji,line:en,triangles:cn,triangle:yn,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ba=0,la=1,ma=4,Wa=5120,Fa=5121,Wo=5122,da=5123,Wn=5124,Ga=5125,vo=34963,jn=35040,At=35044;function kr(Ee,_t,zt,Rr){var Hr={},Br=0,Ur={uint8:Fa,uint16:da};_t.oes_element_index_uint&&(Ur.uint32=Ga);function gi(oi){this.id=Br++,Hr[this.id]=this,this.buffer=oi,this.primType=ma,this.vertCount=0,this.type=0}gi.prototype.bind=function(){this.buffer.bind()};var Ni=[];function Oi(oi){var Mr=Ni.pop();return Mr||(Mr=new gi(zt.create(null,vo,!0,!1)._buffer)),Hn(Mr,oi,jn,-1,-1,0,0),Mr}function Mi(oi){Ni.push(oi)}function Hn(oi,Mr,Zr,xi,Ii,ci,nn){oi.buffer.bind();var Xi;if(Mr){var qn=nn;!nn&&(!Gr(Mr)||Yr(Mr)&&!Gr(Mr.data))&&(qn=_t.oes_element_index_uint?Ga:da),zt._initBuffer(oi.buffer,Mr,Zr,qn,3)}else Ee.bufferData(vo,ci,Zr),oi.buffer.dtype=Xi||Fa,oi.buffer.usage=Zr,oi.buffer.dimension=3,oi.buffer.byteLength=ci;if(Xi=nn,!nn){switch(oi.buffer.dtype){case Fa:case Wa:Xi=Fa;break;case da:case Wo:Xi=da;break;case Ga:case Wn:Xi=Ga;break;default:}oi.buffer.dtype=Xi}oi.type=Xi;var hi=Ii;hi<0&&(hi=oi.buffer.byteLength,Xi===da?hi>>=1:Xi===Ga&&(hi>>=2)),oi.vertCount=hi;var li=xi;if(xi<0){li=ma;var mn=oi.buffer.dimension;mn===1&&(li=Ba),mn===2&&(li=la),mn===3&&(li=ma)}oi.primType=li}function Qi(oi){Rr.elementsCount--,delete Hr[oi.id],oi.buffer.destroy(),oi.buffer=null}function Hi(oi,Mr){var Zr=zt.create(null,vo,!0),xi=new gi(Zr._buffer);Rr.elementsCount++;function Ii(ci){if(!ci)Zr(),xi.primType=ma,xi.vertCount=0,xi.type=Fa;else if(typeof ci=="number")Zr(ci),xi.primType=ma,xi.vertCount=ci|0,xi.type=Fa;else{var nn=null,Xi=At,qn=-1,hi=-1,li=0,mn=0;Array.isArray(ci)||Gr(ci)||Yr(ci)?nn=ci:("data"in ci&&(nn=ci.data),"usage"in ci&&(Xi=pn[ci.usage]),"primitive"in ci&&(qn=Mn[ci.primitive]),"count"in ci&&(hi=ci.count|0),"type"in ci&&(mn=Ur[ci.type]),"length"in ci?li=ci.length|0:(li=hi,mn===da||mn===Wo?li*=2:(mn===Ga||mn===Wn)&&(li*=4))),Hn(xi,nn,Xi,qn,hi,li,mn)}return Ii}return Ii(oi),Ii._reglType="elements",Ii._elements=xi,Ii.subdata=function(ci,nn){return Zr.subdata(ci,nn),Ii},Ii.destroy=function(){Qi(xi)},Ii}return{create:Hi,createStream:Oi,destroyStream:Mi,getElements:function(oi){return typeof oi=="function"&&oi._elements instanceof gi?oi._elements:null},clear:function(){dt(Hr).forEach(Qi)}}}var Qr=new Float32Array(1),di=new Uint32Array(Qr.buffer),fn=5123;function Sn(Ee){for(var _t=j.allocType(fn,Ee.length),zt=0;zt>>31<<15,Br=(Rr<<1>>>24)-127,Ur=Rr>>13&1023;if(Br<-24)_t[zt]=Hr;else if(Br<-14){var gi=-14-Br;_t[zt]=Hr+(Ur+1024>>gi)}else Br>15?_t[zt]=Hr+31744:_t[zt]=Hr+(Br+15<<10)+Ur}return _t}function En(Ee){return Array.isArray(Ee)||Gr(Ee)}var ki=34467,_n=3553,ya=34067,Jn=34069,Ma=6408,_o=6406,No=6407,po=6409,Lo=6410,Co=32854,Fs=32855,zs=36194,ul=32819,cl=32820,Fl=33635,cs=34042,nl=6402,Ss=34041,fl=35904,Js=35906,Os=36193,Io=33776,us=33777,Zl=33778,Su=33779,nc=35986,ws=35987,Fn=34798,_a=35840,Vu=35841,zl=35842,xo=35843,Yl=36196,Us=5121,Hl=5123,ac=5125,aa=5126,Oo=10242,qo=10243,Ol=10497,Pc=33071,Do=33648,tf=10240,Nf=10241,ml=9728,Zc=9729,Kl=9984,qs=9985,yu=9986,oc=9987,Cf=33170,sc=4352,Nh=4353,kf=4354,fs=34046,rf=3317,Uf=37440,Jl=37441,hl=37443,lc=37444,Fu=33984,Cs=[Kl,yu,qs,oc],js=[0,po,Lo,No,Ma],Go={};Go[po]=Go[_o]=Go[nl]=1,Go[Ss]=Go[Lo]=2,Go[No]=Go[fl]=3,Go[Ma]=Go[Js]=4;function gs(Ee){return"[object "+Ee+"]"}var uc=gs("HTMLCanvasElement"),xl=gs("OffscreenCanvas"),Gu=gs("CanvasRenderingContext2D"),Bs=gs("ImageBitmap"),ad=gs("HTMLImageElement"),Po=gs("HTMLVideoElement"),od=Object.keys(Ce).concat([uc,xl,Gu,Bs,ad,Po]),Yo=[];Yo[Us]=1,Yo[aa]=4,Yo[Os]=2,Yo[Hl]=2,Yo[ac]=4;var Pa=[];Pa[Co]=2,Pa[Fs]=2,Pa[zs]=2,Pa[Ss]=4,Pa[Io]=.5,Pa[us]=.5,Pa[Zl]=1,Pa[Su]=1,Pa[nc]=.5,Pa[ws]=1,Pa[Fn]=1,Pa[_a]=.5,Pa[Vu]=.25,Pa[zl]=.5,Pa[xo]=.25,Pa[Yl]=.5;function nf(Ee){return Array.isArray(Ee)&&(Ee.length===0||typeof Ee[0]=="number")}function Hu(Ee){if(!Array.isArray(Ee))return!1;var _t=Ee.length;return!(_t===0||!En(Ee[0]))}function bl(Ee){return Object.prototype.toString.call(Ee)}function Vf(Ee){return bl(Ee)===uc}function Ic(Ee){return bl(Ee)===xl}function gf(Ee){return bl(Ee)===Gu}function ql(Ee){return bl(Ee)===Bs}function _h(Ee){return bl(Ee)===ad}function Qf(Ee){return bl(Ee)===Po}function mf(Ee){if(!Ee)return!1;var _t=bl(Ee);return od.indexOf(_t)>=0?!0:nf(Ee)||Hu(Ee)||Yr(Ee)}function Yc(Ee){return Ce[Object.prototype.toString.call(Ee)]|0}function eh(Ee,_t){var zt=_t.length;switch(Ee.type){case Us:case Hl:case ac:case aa:var Rr=j.allocType(Ee.type,zt);Rr.set(_t),Ee.data=Rr;break;case Os:Ee.data=Sn(_t);break;default:}}function th(Ee,_t){return j.allocType(Ee.type===Os?aa:Ee.type,_t)}function ju(Ee,_t){Ee.type===Os?(Ee.data=Sn(_t),j.freeType(_t)):Ee.data=_t}function Gf(Ee,_t,zt,Rr,Hr,Br){for(var Ur=Ee.width,gi=Ee.height,Ni=Ee.channels,Oi=Ur*gi*Ni,Mi=th(Ee,Oi),Hn=0,Qi=0;Qi=1;)gi+=Ur*Ni*Ni,Ni/=2;return gi}else return Ur*zt*Rr}function af(Ee,_t,zt,Rr,Hr,Br,Ur){var gi={"don't care":sc,"dont care":sc,nice:kf,fast:Nh},Ni={repeat:Ol,clamp:Pc,mirror:Do},Oi={nearest:ml,linear:Zc},Mi=e({mipmap:oc,"nearest mipmap nearest":Kl,"linear mipmap nearest":qs,"nearest mipmap linear":yu,"linear mipmap linear":oc},Oi),Hn={none:0,browser:lc},Qi={uint8:Us,rgba4:ul,rgb565:Fl,"rgb5 a1":cl},Hi={alpha:_o,luminance:po,"luminance alpha":Lo,rgb:No,rgba:Ma,rgba4:Co,"rgb5 a1":Fs,rgb565:zs},oi={};_t.ext_srgb&&(Hi.srgb=fl,Hi.srgba=Js),_t.oes_texture_float&&(Qi.float32=Qi.float=aa),_t.oes_texture_half_float&&(Qi.float16=Qi["half float"]=Os),_t.webgl_depth_texture&&(e(Hi,{depth:nl,"depth stencil":Ss}),e(Qi,{uint16:Hl,uint32:ac,"depth stencil":cs})),_t.webgl_compressed_texture_s3tc&&e(oi,{"rgb s3tc dxt1":Io,"rgba s3tc dxt1":us,"rgba s3tc dxt3":Zl,"rgba s3tc dxt5":Su}),_t.webgl_compressed_texture_atc&&e(oi,{"rgb atc":nc,"rgba atc explicit alpha":ws,"rgba atc interpolated alpha":Fn}),_t.webgl_compressed_texture_pvrtc&&e(oi,{"rgb pvrtc 4bppv1":_a,"rgb pvrtc 2bppv1":Vu,"rgba pvrtc 4bppv1":zl,"rgba pvrtc 2bppv1":xo}),_t.webgl_compressed_texture_etc1&&(oi["rgb etc1"]=Yl);var Mr=Array.prototype.slice.call(Ee.getParameter(ki));Object.keys(oi).forEach(function(ne){var we=oi[ne];Mr.indexOf(we)>=0&&(Hi[ne]=we)});var Zr=Object.keys(Hi);zt.textureFormats=Zr;var xi=[];Object.keys(Hi).forEach(function(ne){var we=Hi[ne];xi[we]=ne});var Ii=[];Object.keys(Qi).forEach(function(ne){var we=Qi[ne];Ii[we]=ne});var ci=[];Object.keys(Oi).forEach(function(ne){var we=Oi[ne];ci[we]=ne});var nn=[];Object.keys(Mi).forEach(function(ne){var we=Mi[ne];nn[we]=ne});var Xi=[];Object.keys(Ni).forEach(function(ne){var we=Ni[ne];Xi[we]=ne});var qn=Zr.reduce(function(ne,we){var Ue=Hi[we];return Ue===po||Ue===_o||Ue===po||Ue===Lo||Ue===nl||Ue===Ss||_t.ext_srgb&&(Ue===fl||Ue===Js)?ne[Ue]=Ue:Ue===Fs||we.indexOf("rgba")>=0?ne[Ue]=Ma:ne[Ue]=No,ne},{});function hi(){this.internalformat=Ma,this.format=Ma,this.type=Us,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=lc,this.width=0,this.height=0,this.channels=0}function li(ne,we){ne.internalformat=we.internalformat,ne.format=we.format,ne.type=we.type,ne.compressed=we.compressed,ne.premultiplyAlpha=we.premultiplyAlpha,ne.flipY=we.flipY,ne.unpackAlignment=we.unpackAlignment,ne.colorSpace=we.colorSpace,ne.width=we.width,ne.height=we.height,ne.channels=we.channels}function mn(ne,we){if(!(typeof we!="object"||!we)){if("premultiplyAlpha"in we&&(ne.premultiplyAlpha=we.premultiplyAlpha),"flipY"in we&&(ne.flipY=we.flipY),"alignment"in we&&(ne.unpackAlignment=we.alignment),"colorSpace"in we&&(ne.colorSpace=Hn[we.colorSpace]),"type"in we){var Ue=we.type;ne.type=Qi[Ue]}var ft=ne.width,Zt=ne.height,hr=ne.channels,Bt=!1;"shape"in we?(ft=we.shape[0],Zt=we.shape[1],we.shape.length===3&&(hr=we.shape[2],Bt=!0)):("radius"in we&&(ft=Zt=we.radius),"width"in we&&(ft=we.width),"height"in we&&(Zt=we.height),"channels"in we&&(hr=we.channels,Bt=!0)),ne.width=ft|0,ne.height=Zt|0,ne.channels=hr|0;var Ve=!1;if("format"in we){var et=we.format,at=ne.internalformat=Hi[et];ne.format=qn[at],et in Qi&&("type"in we||(ne.type=Qi[et])),et in oi&&(ne.compressed=!0),Ve=!0}!Bt&&Ve?ne.channels=Go[ne.format]:Bt&&!Ve&&ne.channels!==js[ne.format]&&(ne.format=ne.internalformat=js[ne.channels])}}function Ki(ne){Ee.pixelStorei(Uf,ne.flipY),Ee.pixelStorei(Jl,ne.premultiplyAlpha),Ee.pixelStorei(hl,ne.colorSpace),Ee.pixelStorei(rf,ne.unpackAlignment)}function Ui(){hi.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Bi(ne,we){var Ue=null;if(mf(we)?Ue=we:we&&(mn(ne,we),"x"in we&&(ne.xOffset=we.x|0),"y"in we&&(ne.yOffset=we.y|0),mf(we.data)&&(Ue=we.data)),we.copy){var ft=Hr.viewportWidth,Zt=Hr.viewportHeight;ne.width=ne.width||ft-ne.xOffset,ne.height=ne.height||Zt-ne.yOffset,ne.needsCopy=!0}else if(!Ue)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(Gr(Ue))ne.channels=ne.channels||4,ne.data=Ue,!("type"in we)&&ne.type===Us&&(ne.type=Yc(Ue));else if(nf(Ue))ne.channels=ne.channels||4,eh(ne,Ue),ne.alignment=1,ne.needsFree=!0;else if(Yr(Ue)){var hr=Ue.data;!Array.isArray(hr)&&ne.type===Us&&(ne.type=Yc(hr));var Bt=Ue.shape,Ve=Ue.stride,et,at,kt,qt,Rt,Nt;Bt.length===3?(kt=Bt[2],Nt=Ve[2]):(kt=1,Nt=1),et=Bt[0],at=Bt[1],qt=Ve[0],Rt=Ve[1],ne.alignment=1,ne.width=et,ne.height=at,ne.channels=kt,ne.format=ne.internalformat=js[kt],ne.needsFree=!0,Gf(ne,hr,qt,Rt,Nt,Ue.offset)}else if(Vf(Ue)||Ic(Ue)||gf(Ue))Vf(Ue)||Ic(Ue)?ne.element=Ue:ne.element=Ue.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(ql(Ue))ne.element=Ue,ne.width=Ue.width,ne.height=Ue.height,ne.channels=4;else if(_h(Ue))ne.element=Ue,ne.width=Ue.naturalWidth,ne.height=Ue.naturalHeight,ne.channels=4;else if(Qf(Ue))ne.element=Ue,ne.width=Ue.videoWidth,ne.height=Ue.videoHeight,ne.channels=4;else if(Hu(Ue)){var Dt=ne.width||Ue[0].length,mt=ne.height||Ue.length,Pt=ne.channels;En(Ue[0][0])?Pt=Pt||Ue[0][0].length:Pt=Pt||1;for(var ht=Ge.shape(Ue),cr=1,br=0;br>=Zt,Ue.height>>=Zt,Bi(Ue,ft[Zt]),ne.mipmask|=1<=0&&!("faces"in we)&&(ne.genMipmaps=!0)}if("mag"in we){var ft=we.mag;ne.magFilter=Oi[ft]}var Zt=ne.wrapS,hr=ne.wrapT;if("wrap"in we){var Bt=we.wrap;typeof Bt=="string"?Zt=hr=Ni[Bt]:Array.isArray(Bt)&&(Zt=Ni[Bt[0]],hr=Ni[Bt[1]])}else{if("wrapS"in we){var Ve=we.wrapS;Zt=Ni[Ve]}if("wrapT"in we){var et=we.wrapT;hr=Ni[et]}}if(ne.wrapS=Zt,ne.wrapT=hr,"anisotropic"in we){var at=we.anisotropic;ne.anisotropic=we.anisotropic}if("mipmap"in we){var kt=!1;switch(typeof we.mipmap){case"string":ne.mipmapHint=gi[we.mipmap],ne.genMipmaps=!0,kt=!0;break;case"boolean":kt=ne.genMipmaps=we.mipmap;break;case"object":ne.genMipmaps=!1,kt=!0;break;default:}kt&&!("min"in we)&&(ne.minFilter=Kl)}}function ol(ne,we){Ee.texParameteri(we,Nf,ne.minFilter),Ee.texParameteri(we,tf,ne.magFilter),Ee.texParameteri(we,Oo,ne.wrapS),Ee.texParameteri(we,qo,ne.wrapT),_t.ext_texture_filter_anisotropic&&Ee.texParameteri(we,fs,ne.anisotropic),ne.genMipmaps&&(Ee.hint(Cf,ne.mipmapHint),Ee.generateMipmap(we))}var Ul=0,ss={},Gs=zt.maxTextureUnits,Ks=Array(Gs).map(function(){return null});function Ta(ne){hi.call(this),this.mipmask=0,this.internalformat=Ma,this.id=Ul++,this.refCount=1,this.target=ne,this.texture=Ee.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new zo,Ur.profile&&(this.stats={size:0})}function sl(ne){Ee.activeTexture(Fu),Ee.bindTexture(ne.target,ne.texture)}function io(){var ne=Ks[0];ne?Ee.bindTexture(ne.target,ne.texture):Ee.bindTexture(_n,null)}function Y(ne){var we=ne.texture,Ue=ne.unit,ft=ne.target;Ue>=0&&(Ee.activeTexture(Fu+Ue),Ee.bindTexture(ft,null),Ks[Ue]=null),Ee.deleteTexture(we),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete ss[ne.id],Br.textureCount--}e(Ta.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var we=ne.unit;if(we<0){for(var Ue=0;Ue0)continue;ft.unit=-1}Ks[Ue]=ne,we=Ue;break}we>=Gs,Ur.profile&&Br.maxTextureUnits>Rt)-kt,Nt.height=Nt.height||(Ue.height>>Rt)-qt,sl(Ue),Un(Nt,_n,kt,qt,Rt),io(),Ln(Nt),ft}function hr(Bt,Ve){var et=Bt|0,at=Ve|0||et;if(et===Ue.width&&at===Ue.height)return ft;ft.width=Ue.width=et,ft.height=Ue.height=at,sl(Ue);for(var kt=0;Ue.mipmask>>kt;++kt){var qt=et>>kt,Rt=at>>kt;if(!qt||!Rt)break;Ee.texImage2D(_n,kt,Ue.format,qt,Rt,0,Ue.format,Ue.type,null)}return io(),Ur.profile&&(Ue.stats.size=cc(Ue.internalformat,Ue.type,et,at,!1,!1)),ft}return ft(ne,we),ft.subimage=Zt,ft.resize=hr,ft._reglType="texture2d",ft._texture=Ue,Ur.profile&&(ft.stats=Ue.stats),ft.destroy=function(){Ue.decRef()},ft}function J(ne,we,Ue,ft,Zt,hr){var Bt=new Ta(ya);ss[Bt.id]=Bt,Br.cubeCount++;var Ve=new Array(6);function et(qt,Rt,Nt,Dt,mt,Pt){var ht,cr=Bt.texInfo;for(zo.call(cr),ht=0;ht<6;++ht)Ve[ht]=Va();if(typeof qt=="number"||!qt){var br=qt|0||1;for(ht=0;ht<6;++ht)oa(Ve[ht],br,br)}else if(typeof qt=="object")if(Rt)wa(Ve[0],qt),wa(Ve[1],Rt),wa(Ve[2],Nt),wa(Ve[3],Dt),wa(Ve[4],mt),wa(Ve[5],Pt);else if(el(cr,qt),mn(Bt,qt),"faces"in qt){var Nr=qt.faces;for(ht=0;ht<6;++ht)li(Ve[ht],Bt),wa(Ve[ht],Nr[ht])}else for(ht=0;ht<6;++ht)wa(Ve[ht],qt);for(li(Bt,Ve[0]),cr.genMipmaps?Bt.mipmask=(Ve[0].width<<1)-1:Bt.mipmask=Ve[0].mipmask,Bt.internalformat=Ve[0].internalformat,et.width=Ve[0].width,et.height=Ve[0].height,sl(Bt),ht=0;ht<6;++ht)ns(Ve[ht],Jn+ht);for(ol(cr,ya),io(),Ur.profile&&(Bt.stats.size=cc(Bt.internalformat,Bt.type,et.width,et.height,cr.genMipmaps,!0)),et.format=xi[Bt.internalformat],et.type=Ii[Bt.type],et.mag=ci[cr.magFilter],et.min=nn[cr.minFilter],et.wrapS=Xi[cr.wrapS],et.wrapT=Xi[cr.wrapT],ht=0;ht<6;++ht)Ml(Ve[ht]);return et}function at(qt,Rt,Nt,Dt,mt){var Pt=Nt|0,ht=Dt|0,cr=mt|0,br=Yi();return li(br,Bt),br.width=0,br.height=0,Bi(br,Rt),br.width=br.width||(Bt.width>>cr)-Pt,br.height=br.height||(Bt.height>>cr)-ht,sl(Bt),Un(br,Jn+qt,Pt,ht,cr),io(),Ln(br),et}function kt(qt){var Rt=qt|0;if(Rt!==Bt.width){et.width=Bt.width=Rt,et.height=Bt.height=Rt,sl(Bt);for(var Nt=0;Nt<6;++Nt)for(var Dt=0;Bt.mipmask>>Dt;++Dt)Ee.texImage2D(Jn+Nt,Dt,Bt.format,Rt>>Dt,Rt>>Dt,0,Bt.format,Bt.type,null);return io(),Ur.profile&&(Bt.stats.size=cc(Bt.internalformat,Bt.type,et.width,et.height,!1,!0)),et}}return et(ne,we,Ue,ft,Zt,hr),et.subimage=at,et.resize=kt,et._reglType="textureCube",et._texture=Bt,Ur.profile&&(et.stats=Bt.stats),et.destroy=function(){Bt.decRef()},et}function q(){for(var ne=0;ne>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);else for(var Zt=0;Zt<6;++Zt)Ee.texImage2D(Jn+Zt,ft,Ue.internalformat,Ue.width>>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);ol(Ue.texInfo,Ue.target)})}function de(){for(var ne=0;ne=0?Ml=!0:Ni.indexOf(zo)>=0&&(Ml=!1))),("depthTexture"in Ta||"depthStencilTexture"in Ta)&&(Ks=!!(Ta.depthTexture||Ta.depthStencilTexture)),"depth"in Ta&&(typeof Ta.depth=="boolean"?ns=Ta.depth:(Ul=Ta.depth,Ys=!1)),"stencil"in Ta&&(typeof Ta.stencil=="boolean"?Ys=Ta.stencil:(ss=Ta.stencil,ns=!1)),"depthStencil"in Ta&&(typeof Ta.depthStencil=="boolean"?ns=Ys=Ta.depthStencil:(Gs=Ta.depthStencil,ns=!1,Ys=!1))}var io=null,Y=null,D=null,J=null;if(Array.isArray(Va))io=Va.map(oi);else if(Va)io=[oi(Va)];else for(io=new Array(ol),ra=0;ra0&&(Ln.depth=Bi[0].depth,Ln.stencil=Bi[0].stencil,Ln.depthStencil=Bi[0].depthStencil),Bi[Yi]?Bi[Yi](Ln):Bi[Yi]=li(Ln)}return e(vn,{width:ra,height:ra,color:zo})}function Un(na){var Yi,Ln=na|0;if(Ln===vn.width)return vn;var ra=vn.color;for(Yi=0;Yi=ra.byteLength?oa.subdata(ra):(oa.destroy(),li.buffers[na]=null)),li.buffers[na]||(oa=li.buffers[na]=Hr.create(Yi,Pf,!1,!0)),Ln.buffer=Hr.getBuffer(oa),Ln.size=Ln.buffer.dimension|0,Ln.normalized=!1,Ln.type=Ln.buffer.dtype,Ln.offset=0,Ln.stride=0,Ln.divisor=0,Ln.state=1,vn[na]=1}else Hr.getBuffer(Yi)?(Ln.buffer=Hr.getBuffer(Yi),Ln.size=Ln.buffer.dimension|0,Ln.normalized=!1,Ln.type=Ln.buffer.dtype,Ln.offset=0,Ln.stride=0,Ln.divisor=0,Ln.state=1):Hr.getBuffer(Yi.buffer)?(Ln.buffer=Hr.getBuffer(Yi.buffer),Ln.size=(+Yi.size||Ln.buffer.dimension)|0,Ln.normalized=!!Yi.normalized||!1,"type"in Yi?Ln.type=ji[Yi.type]:Ln.type=Ln.buffer.dtype,Ln.offset=(Yi.offset||0)|0,Ln.stride=(Yi.stride||0)|0,Ln.divisor=(Yi.divisor||0)|0,Ln.state=1):"x"in Yi&&(Ln.x=+Yi.x||0,Ln.y=+Yi.y||0,Ln.z=+Yi.z||0,Ln.w=+Yi.w||0,Ln.state=2)}for(var wa=0;wa1)for(var Ki=0;KiMr&&(Mr=Zr.stats.uniformsCount)}),Mr},zt.getMaxAttributesCount=function(){var Mr=0;return Mi.forEach(function(Zr){Zr.stats.attributesCount>Mr&&(Mr=Zr.stats.attributesCount)}),Mr});function oi(){Hr={},Br={};for(var Mr=0;Mr16&&(zt=Zi(zt,Ee.length*8));for(var Rr=Array(16),Hr=Array(16),Br=0;Br<16;Br++)Rr[Br]=zt[Br]^909522486,Hr[Br]=zt[Br]^1549556828;var Ur=Zi(Rr.concat(Bc(_t)),512+_t.length*8);return Tt(Zi(Hr.concat(Ur),768))}function pu(Ee){for(var _t=ah?"0123456789ABCDEF":"0123456789abcdef",zt="",Rr,Hr=0;Hr>>4&15)+_t.charAt(Rr&15);return zt}function qc(Ee){for(var _t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zt="",Rr=Ee.length,Hr=0;HrEe.length*8?zt+=Zu:zt+=_t.charAt(Br>>>6*(3-Ur)&63);return zt}function uf(Ee,_t){var zt=_t.length,Rr=Array(),Hr,Br,Ur,gi,Ni=Array(Math.ceil(Ee.length/2));for(Hr=0;Hr0;){for(gi=Array(),Ur=0,Hr=0;Hr0||Br>0)&&(gi[gi.length]=Br);Rr[Rr.length]=Ur,Ni=gi}var Oi="";for(Hr=Rr.length-1;Hr>=0;Hr--)Oi+=_t.charAt(Rr[Hr]);var Mi=Math.ceil(Ee.length*8/(Math.log(_t.length)/Math.log(2)));for(Hr=Oi.length;Hr>>6&31,128|Rr&63):Rr<=65535?_t+=String.fromCharCode(224|Rr>>>12&15,128|Rr>>>6&63,128|Rr&63):Rr<=2097151&&(_t+=String.fromCharCode(240|Rr>>>18&7,128|Rr>>>12&63,128|Rr>>>6&63,128|Rr&63));return _t}function Bc(Ee){for(var _t=Array(Ee.length>>2),zt=0;zt<_t.length;zt++)_t[zt]=0;for(var zt=0;zt>5]|=(Ee.charCodeAt(zt/8)&255)<<24-zt%32;return _t}function Tt(Ee){for(var _t="",zt=0;zt>5]>>>24-zt%32&255);return _t}function Xt(Ee,_t){return Ee>>>_t|Ee<<32-_t}function Lr(Ee,_t){return Ee>>>_t}function Ar(Ee,_t,zt){return Ee&_t^~Ee&zt}function Jr(Ee,_t,zt){return Ee&_t^Ee&zt^_t&zt}function Ei(Ee){return Xt(Ee,2)^Xt(Ee,13)^Xt(Ee,22)}function Wi(Ee){return Xt(Ee,6)^Xt(Ee,11)^Xt(Ee,25)}function hn(Ee){return Xt(Ee,7)^Xt(Ee,18)^Lr(Ee,3)}function Tn(Ee){return Xt(Ee,17)^Xt(Ee,19)^Lr(Ee,10)}var Bn=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Zi(Ee,_t){var zt=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Rr=new Array(64),Hr,Br,Ur,gi,Ni,Oi,Mi,Hn,Qi,Hi,oi,Mr;for(Ee[_t>>5]|=128<<24-_t%32,Ee[(_t+64>>9<<4)+15]=_t,Qi=0;Qi>16)+(_t>>16)+(zt>>16);return Rr<<16|zt&65535}function an(Ee){return Array.prototype.slice.call(Ee)}function Di(Ee){return an(Ee).join("")}function $n(Ee){var _t=Ee&&Ee.cache,zt=0,Rr=[],Hr=[],Br=[];function Ur(oi,Mr){var Zr=Mr&&Mr.stable;if(!Zr){for(var xi=0;xi0&&(oi.push(Ii,"="),oi.push.apply(oi,an(arguments)),oi.push(";")),Ii}return e(Mr,{def:xi,toString:function(){return Di([Zr.length>0?"var "+Zr.join(",")+";":"",Di(oi)])}})}function Ni(){var oi=gi(),Mr=gi(),Zr=oi.toString,xi=Mr.toString;function Ii(ci,nn){Mr(ci,nn,"=",oi.def(ci,nn),";")}return e(function(){oi.apply(oi,an(arguments))},{def:oi.def,entry:oi,exit:Mr,save:Ii,set:function(ci,nn,Xi){Ii(ci,nn),oi(ci,nn,"=",Xi,";")},toString:function(){return Zr()+xi()}})}function Oi(){var oi=Di(arguments),Mr=Ni(),Zr=Ni(),xi=Mr.toString,Ii=Zr.toString;return e(Mr,{then:function(){return Mr.apply(Mr,an(arguments)),this},else:function(){return Zr.apply(Zr,an(arguments)),this},toString:function(){var ci=Ii();return ci&&(ci="else{"+ci+"}"),Di(["if(",oi,"){",xi(),"}",ci])}})}var Mi=gi(),Hn={};function Qi(oi,Mr){var Zr=[];function xi(){var qn="a"+Zr.length;return Zr.push(qn),qn}Mr=Mr||0;for(var Ii=0;Ii2){for(var a=Array(t.position.length*.5),o=0;o2){for(var u=!t.position[0].length,c=dx.mallocFloat(this.count*2),f=0,h=0;f1?r.align[me]:r.align[0]:r.align;if(typeof ie=="number")return ie;switch(ie){case"right":case"end":return-ke;case"center":case"centre":case"middle":return-ke*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(ke,me){var ie=(r.font[me]||r.font[0]).metrics,Se=0;return Se+=ie.bottom*.5,typeof ke=="number"?Se+=ke-ie.baseline:Se+=-ie[ke],Se*=-1,Se})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=aK(t.color,"uint8");else{var G;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var Z=t.color.length;G=dx.mallocUint8(Z);for(var H=(t.color.subarray||t.color.slice).bind(t.color),N=0;N4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(oe){var _e=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(_e);for(var Me=0;Me1?this.counts[Me]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Me]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Me*4,Me*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Me]:this.opacity,baseline:this.baselineOffset[Me]!=null?this.baselineOffset[Me]:this.baselineOffset[0],align:this.align?this.alignOffset[Me]!=null?this.alignOffset[Me]:this.alignOffset[0]:0,atlas:this.fontAtlas[Me]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Me*2,Me*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};xc.prototype.destroy=function(){};xc.prototype.kerning=!0;xc.prototype.position={constant:new Float32Array(2)};xc.prototype.translate=null;xc.prototype.scale=null;xc.prototype.font=null;xc.prototype.text="";xc.prototype.positionOffset=[0,0];xc.prototype.opacity=1;xc.prototype.color=new Uint8Array([0,0,0,255]);xc.prototype.alignOffset=[0,0];xc.maxAtlasSize=1024;xc.atlasCanvas=document.createElement("canvas");xc.atlasContext=xc.atlasCanvas.getContext("2d",{alpha:!1});xc.baseFontSize=64;xc.fonts={};function WNt(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}uBe.exports=xc});var fBe=ye((oK,sK)=>{(function(e,t){typeof oK=="object"&&typeof sK!="undefined"?sK.exports=t():e.createREGL=t()})(oK,function(){"use strict";var e=function(Ee,xt){for(var zt=Object.keys(xt),Ir=0;Ir1&&xt===zt&&(xt==='"'||xt==="'"))return['"'+o(Ee.substr(1,Ee.length-2))+'"'];var Ir=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Ee);if(Ir)return s(Ee.substr(0,Ir.index)).concat(s(Ir[1])).concat(s(Ee.substr(Ir.index+Ir[0].length)));var Hr=Ee.split(".");if(Hr.length===1)return['"'+o(Ee)+'"'];for(var Br=[],Vr=0;Vr65535)<<4,Ee>>>=xt,zt=(Ee>255)<<3,Ee>>>=zt,xt|=zt,zt=(Ee>15)<<2,Ee>>>=zt,xt|=zt,zt=(Ee>3)<<1,Ee>>>=zt,xt|=zt,xt|Ee>>1}function N(){var Ee=M(8,function(){return[]});function xt(Br){var Vr=Z(Br),mi=Ee[H(Vr)>>2];return mi.length>0?mi.pop():new ArrayBuffer(Vr)}function zt(Br){Ee[H(Br.byteLength)>>2].push(Br)}function Ir(Br,Vr){var mi=null;switch(Br){case g:mi=new Int8Array(xt(Vr),0,Vr);break;case P:mi=new Uint8Array(xt(Vr),0,Vr);break;case T:mi=new Int16Array(xt(2*Vr),0,Vr);break;case z:mi=new Uint16Array(xt(2*Vr),0,Vr);break;case O:mi=new Int32Array(xt(4*Vr),0,Vr);break;case V:mi=new Uint32Array(xt(4*Vr),0,Vr);break;case G:mi=new Float32Array(xt(4*Vr),0,Vr);break;default:return null}return mi.length!==Vr?mi.subarray(0,Vr):mi}function Hr(Br){zt(Br.buffer)}return{alloc:xt,free:zt,allocType:Ir,freeType:Hr}}var j=N();j.zero=N();var re=3408,oe=3410,_e=3411,Me=3412,ke=3413,me=3414,ie=3415,Se=33901,Le=33902,Ae=3379,De=3386,Pe=34921,ge=36347,Fe=36348,ce=35661,Ye=35660,ct=34930,pt=36349,Wt=34076,st=34024,lt=7936,Gt=7937,Nt=7938,$t=35724,sr=34047,wr=36063,ur=34852,Qe=3553,Et=34067,er=34069,Ut=33984,Ft=6408,bt=5126,yt=5121,Yt=36160,lr=36053,Tr=36064,Rr=16384,ei=function(Ee,xt){var zt=1;xt.ext_texture_filter_anisotropic&&(zt=Ee.getParameter(sr));var Ir=1,Hr=1;xt.webgl_draw_buffers&&(Ir=Ee.getParameter(ur),Hr=Ee.getParameter(wr));var Br=!!xt.oes_texture_float;if(Br){var Vr=Ee.createTexture();Ee.bindTexture(Qe,Vr),Ee.texImage2D(Qe,0,Ft,1,1,0,Ft,bt,null);var mi=Ee.createFramebuffer();if(Ee.bindFramebuffer(Yt,mi),Ee.framebufferTexture2D(Yt,Tr,Qe,Vr,0),Ee.bindTexture(Qe,null),Ee.checkFramebufferStatus(Yt)!==lr)Br=!1;else{Ee.viewport(0,0,1,1),Ee.clearColor(1,0,0,1),Ee.clear(Rr);var Ni=j.allocType(bt,4);Ee.readPixels(0,0,1,1,Ft,bt,Ni),Ee.getError()?Br=!1:(Ee.deleteFramebuffer(mi),Ee.deleteTexture(Vr),Br=Ni[0]===1),j.freeType(Ni)}}var Oi=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Mi=!0;if(!Oi){var Hn=Ee.createTexture(),Qi=j.allocType(yt,36);Ee.activeTexture(Ut),Ee.bindTexture(Et,Hn),Ee.texImage2D(er,0,Ft,3,3,0,Ft,yt,Qi),j.freeType(Qi),Ee.bindTexture(Et,null),Ee.deleteTexture(Hn),Mi=!Ee.getError()}return{colorBits:[Ee.getParameter(oe),Ee.getParameter(_e),Ee.getParameter(Me),Ee.getParameter(ke)],depthBits:Ee.getParameter(me),stencilBits:Ee.getParameter(ie),subpixelBits:Ee.getParameter(re),extensions:Object.keys(xt).filter(function(ji){return!!xt[ji]}),maxAnisotropic:zt,maxDrawbuffers:Ir,maxColorAttachments:Hr,pointSizeDims:Ee.getParameter(Se),lineWidthDims:Ee.getParameter(Le),maxViewportDims:Ee.getParameter(De),maxCombinedTextureUnits:Ee.getParameter(ce),maxCubeMapSize:Ee.getParameter(Wt),maxRenderbufferSize:Ee.getParameter(st),maxTextureUnits:Ee.getParameter(ct),maxTextureSize:Ee.getParameter(Ae),maxAttributes:Ee.getParameter(Pe),maxVertexUniforms:Ee.getParameter(ge),maxVertexTextureUnits:Ee.getParameter(Ye),maxVaryingVectors:Ee.getParameter(Fe),maxFragmentUniforms:Ee.getParameter(pt),glsl:Ee.getParameter($t),renderer:Ee.getParameter(Gt),vendor:Ee.getParameter(lt),version:Ee.getParameter(Nt),readFloat:Br,npotTextureCube:Mi}},Wr=function(Ee){return Ee instanceof Uint8Array||Ee instanceof Uint16Array||Ee instanceof Uint32Array||Ee instanceof Int8Array||Ee instanceof Int16Array||Ee instanceof Int32Array||Ee instanceof Float32Array||Ee instanceof Float64Array||Ee instanceof Uint8ClampedArray};function Ur(Ee){return!!Ee&&typeof Ee=="object"&&Array.isArray(Ee.shape)&&Array.isArray(Ee.stride)&&typeof Ee.offset=="number"&&Ee.shape.length===Ee.stride.length&&(Array.isArray(Ee.data)||Wr(Ee.data))}var dt=function(Ee){return Object.keys(Ee).map(function(xt){return Ee[xt]})},Ge={shape:xe,flatten:Ie};function Je(Ee,xt,zt){for(var Ir=0;Ir0){var qn;if(Array.isArray(Yr[0])){Xi=kn(Yr);for(var vi=1,li=1;li0){if(typeof vi[0]=="number"){var Ui=j.allocType(ci.dtype,vi.length);Er(Ui,vi),Xi(Ui,mn),j.freeType(Ui)}else if(Array.isArray(vi[0])||Wr(vi[0])){Ki=kn(vi);var Bi=Vn(vi,Ki,ci.dtype);Xi(Bi,mn),j.freeType(Bi)}}}else if(Ur(vi)){Ki=vi.shape;var vn=vi.stride,Un=0,na=0,Yi=0,Ln=0;Ki.length===1?(Un=Ki[0],na=1,Yi=vn[0],Ln=0):Ki.length===2&&(Un=Ki[0],na=Ki[1],Yi=vn[0],Ln=vn[1]);var ra=Array.isArray(vi.data)?ci.dtype:ar(vi.data),oa=j.allocType(ra,Un*na);Zr(oa,vi.data,Un,na,Yi,Ln,vi.offset),Xi(oa,mn),j.freeType(oa)}return nn}return xi||nn(Mr),nn._reglType="buffer",nn._buffer=ci,nn.subdata=qn,zt.profile&&(nn.stats=ci.stats),nn.destroy=function(){Qi(ci)},nn}function si(){dt(Br).forEach(function(Mr){Mr.buffer=Ee.createBuffer(),Ee.bindBuffer(Mr.type,Mr.buffer),Ee.bufferData(Mr.type,Mr.persistentData||Mr.byteLength,Mr.usage)})}return zt.profile&&(xt.getTotalBufferSize=function(){var Mr=0;return Object.keys(Br).forEach(function(Yr){Mr+=Br[Yr].stats.size}),Mr}),{create:ji,createStream:Ni,destroyStream:Oi,clear:function(){dt(Br).forEach(Qi),mi.forEach(Qi)},getBuffer:function(Mr){return Mr&&Mr._buffer instanceof Vr?Mr._buffer:null},restore:si,_initBuffer:Hn}}var $r=0,zi=0,Ji=1,en=1,cn=4,yn=4,Mn={points:$r,point:zi,lines:Ji,line:en,triangles:cn,triangle:yn,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ba=0,la=1,ma=4,Wa=5120,Fa=5121,Wo=5122,da=5123,Wn=5124,Ga=5125,vo=34963,jn=35040,St=35044;function Cr(Ee,xt,zt,Ir){var Hr={},Br=0,Vr={uint8:Fa,uint16:da};xt.oes_element_index_uint&&(Vr.uint32=Ga);function mi(si){this.id=Br++,Hr[this.id]=this,this.buffer=si,this.primType=ma,this.vertCount=0,this.type=0}mi.prototype.bind=function(){this.buffer.bind()};var Ni=[];function Oi(si){var Mr=Ni.pop();return Mr||(Mr=new mi(zt.create(null,vo,!0,!1)._buffer)),Hn(Mr,si,jn,-1,-1,0,0),Mr}function Mi(si){Ni.push(si)}function Hn(si,Mr,Yr,xi,Ii,ci,nn){si.buffer.bind();var Xi;if(Mr){var qn=nn;!nn&&(!Wr(Mr)||Ur(Mr)&&!Wr(Mr.data))&&(qn=xt.oes_element_index_uint?Ga:da),zt._initBuffer(si.buffer,Mr,Yr,qn,3)}else Ee.bufferData(vo,ci,Yr),si.buffer.dtype=Xi||Fa,si.buffer.usage=Yr,si.buffer.dimension=3,si.buffer.byteLength=ci;if(Xi=nn,!nn){switch(si.buffer.dtype){case Fa:case Wa:Xi=Fa;break;case da:case Wo:Xi=da;break;case Ga:case Wn:Xi=Ga;break;default:}si.buffer.dtype=Xi}si.type=Xi;var vi=Ii;vi<0&&(vi=si.buffer.byteLength,Xi===da?vi>>=1:Xi===Ga&&(vi>>=2)),si.vertCount=vi;var li=xi;if(xi<0){li=ma;var mn=si.buffer.dimension;mn===1&&(li=Ba),mn===2&&(li=la),mn===3&&(li=ma)}si.primType=li}function Qi(si){Ir.elementsCount--,delete Hr[si.id],si.buffer.destroy(),si.buffer=null}function ji(si,Mr){var Yr=zt.create(null,vo,!0),xi=new mi(Yr._buffer);Ir.elementsCount++;function Ii(ci){if(!ci)Yr(),xi.primType=ma,xi.vertCount=0,xi.type=Fa;else if(typeof ci=="number")Yr(ci),xi.primType=ma,xi.vertCount=ci|0,xi.type=Fa;else{var nn=null,Xi=St,qn=-1,vi=-1,li=0,mn=0;Array.isArray(ci)||Wr(ci)||Ur(ci)?nn=ci:("data"in ci&&(nn=ci.data),"usage"in ci&&(Xi=pn[ci.usage]),"primitive"in ci&&(qn=Mn[ci.primitive]),"count"in ci&&(vi=ci.count|0),"type"in ci&&(mn=Vr[ci.type]),"length"in ci?li=ci.length|0:(li=vi,mn===da||mn===Wo?li*=2:(mn===Ga||mn===Wn)&&(li*=4))),Hn(xi,nn,Xi,qn,vi,li,mn)}return Ii}return Ii(si),Ii._reglType="elements",Ii._elements=xi,Ii.subdata=function(ci,nn){return Yr.subdata(ci,nn),Ii},Ii.destroy=function(){Qi(xi)},Ii}return{create:ji,createStream:Oi,destroyStream:Mi,getElements:function(si){return typeof si=="function"&&si._elements instanceof mi?si._elements:null},clear:function(){dt(Hr).forEach(Qi)}}}var Qr=new Float32Array(1),pi=new Uint32Array(Qr.buffer),fn=5123;function Sn(Ee){for(var xt=j.allocType(fn,Ee.length),zt=0;zt>>31<<15,Br=(Ir<<1>>>24)-127,Vr=Ir>>13&1023;if(Br<-24)xt[zt]=Hr;else if(Br<-14){var mi=-14-Br;xt[zt]=Hr+(Vr+1024>>mi)}else Br>15?xt[zt]=Hr+31744:xt[zt]=Hr+(Br+15<<10)+Vr}return xt}function En(Ee){return Array.isArray(Ee)||Wr(Ee)}var ki=34467,_n=3553,ya=34067,Jn=34069,Ma=6408,_o=6406,No=6407,po=6409,Lo=6410,Co=32854,Fs=32855,zs=36194,ul=32819,cl=32820,Fl=33635,cs=34042,nl=6402,Ss=34041,fl=35904,Js=35906,Os=36193,Io=33776,us=33777,Zl=33778,Su=33779,nc=35986,ws=35987,Fn=34798,_a=35840,Vu=35841,zl=35842,xo=35843,Yl=36196,Us=5121,Hl=5123,ac=5125,aa=5126,Oo=10242,qo=10243,Ol=10497,Pc=33071,Do=33648,rf=10240,Uf=10241,ml=9728,Zc=9729,Kl=9984,qs=9985,yu=9986,oc=9987,Cf=33170,sc=4352,Nh=4353,kf=4354,fs=34046,nf=3317,Vf=37440,Jl=37441,hl=37443,lc=37444,Fu=33984,Cs=[Kl,yu,qs,oc],js=[0,po,Lo,No,Ma],Go={};Go[po]=Go[_o]=Go[nl]=1,Go[Ss]=Go[Lo]=2,Go[No]=Go[fl]=3,Go[Ma]=Go[Js]=4;function gs(Ee){return"[object "+Ee+"]"}var uc=gs("HTMLCanvasElement"),xl=gs("OffscreenCanvas"),Gu=gs("CanvasRenderingContext2D"),Bs=gs("ImageBitmap"),ad=gs("HTMLImageElement"),Po=gs("HTMLVideoElement"),od=Object.keys(Ce).concat([uc,xl,Gu,Bs,ad,Po]),Yo=[];Yo[Us]=1,Yo[aa]=4,Yo[Os]=2,Yo[Hl]=2,Yo[ac]=4;var Pa=[];Pa[Co]=2,Pa[Fs]=2,Pa[zs]=2,Pa[Ss]=4,Pa[Io]=.5,Pa[us]=.5,Pa[Zl]=1,Pa[Su]=1,Pa[nc]=.5,Pa[ws]=1,Pa[Fn]=1,Pa[_a]=.5,Pa[Vu]=.25,Pa[zl]=.5,Pa[xo]=.25,Pa[Yl]=.5;function af(Ee){return Array.isArray(Ee)&&(Ee.length===0||typeof Ee[0]=="number")}function Hu(Ee){if(!Array.isArray(Ee))return!1;var xt=Ee.length;return!(xt===0||!En(Ee[0]))}function bl(Ee){return Object.prototype.toString.call(Ee)}function Gf(Ee){return bl(Ee)===uc}function Ic(Ee){return bl(Ee)===xl}function mf(Ee){return bl(Ee)===Gu}function ql(Ee){return bl(Ee)===Bs}function _h(Ee){return bl(Ee)===ad}function Qf(Ee){return bl(Ee)===Po}function yf(Ee){if(!Ee)return!1;var xt=bl(Ee);return od.indexOf(xt)>=0?!0:af(Ee)||Hu(Ee)||Ur(Ee)}function Yc(Ee){return Ce[Object.prototype.toString.call(Ee)]|0}function eh(Ee,xt){var zt=xt.length;switch(Ee.type){case Us:case Hl:case ac:case aa:var Ir=j.allocType(Ee.type,zt);Ir.set(xt),Ee.data=Ir;break;case Os:Ee.data=Sn(xt);break;default:}}function th(Ee,xt){return j.allocType(Ee.type===Os?aa:Ee.type,xt)}function ju(Ee,xt){Ee.type===Os?(Ee.data=Sn(xt),j.freeType(xt)):Ee.data=xt}function Hf(Ee,xt,zt,Ir,Hr,Br){for(var Vr=Ee.width,mi=Ee.height,Ni=Ee.channels,Oi=Vr*mi*Ni,Mi=th(Ee,Oi),Hn=0,Qi=0;Qi=1;)mi+=Vr*Ni*Ni,Ni/=2;return mi}else return Vr*zt*Ir}function of(Ee,xt,zt,Ir,Hr,Br,Vr){var mi={"don't care":sc,"dont care":sc,nice:kf,fast:Nh},Ni={repeat:Ol,clamp:Pc,mirror:Do},Oi={nearest:ml,linear:Zc},Mi=e({mipmap:oc,"nearest mipmap nearest":Kl,"linear mipmap nearest":qs,"nearest mipmap linear":yu,"linear mipmap linear":oc},Oi),Hn={none:0,browser:lc},Qi={uint8:Us,rgba4:ul,rgb565:Fl,"rgb5 a1":cl},ji={alpha:_o,luminance:po,"luminance alpha":Lo,rgb:No,rgba:Ma,rgba4:Co,"rgb5 a1":Fs,rgb565:zs},si={};xt.ext_srgb&&(ji.srgb=fl,ji.srgba=Js),xt.oes_texture_float&&(Qi.float32=Qi.float=aa),xt.oes_texture_half_float&&(Qi.float16=Qi["half float"]=Os),xt.webgl_depth_texture&&(e(ji,{depth:nl,"depth stencil":Ss}),e(Qi,{uint16:Hl,uint32:ac,"depth stencil":cs})),xt.webgl_compressed_texture_s3tc&&e(si,{"rgb s3tc dxt1":Io,"rgba s3tc dxt1":us,"rgba s3tc dxt3":Zl,"rgba s3tc dxt5":Su}),xt.webgl_compressed_texture_atc&&e(si,{"rgb atc":nc,"rgba atc explicit alpha":ws,"rgba atc interpolated alpha":Fn}),xt.webgl_compressed_texture_pvrtc&&e(si,{"rgb pvrtc 4bppv1":_a,"rgb pvrtc 2bppv1":Vu,"rgba pvrtc 4bppv1":zl,"rgba pvrtc 2bppv1":xo}),xt.webgl_compressed_texture_etc1&&(si["rgb etc1"]=Yl);var Mr=Array.prototype.slice.call(Ee.getParameter(ki));Object.keys(si).forEach(function(ne){var we=si[ne];Mr.indexOf(we)>=0&&(ji[ne]=we)});var Yr=Object.keys(ji);zt.textureFormats=Yr;var xi=[];Object.keys(ji).forEach(function(ne){var we=ji[ne];xi[we]=ne});var Ii=[];Object.keys(Qi).forEach(function(ne){var we=Qi[ne];Ii[we]=ne});var ci=[];Object.keys(Oi).forEach(function(ne){var we=Oi[ne];ci[we]=ne});var nn=[];Object.keys(Mi).forEach(function(ne){var we=Mi[ne];nn[we]=ne});var Xi=[];Object.keys(Ni).forEach(function(ne){var we=Ni[ne];Xi[we]=ne});var qn=Yr.reduce(function(ne,we){var Ue=ji[we];return Ue===po||Ue===_o||Ue===po||Ue===Lo||Ue===nl||Ue===Ss||xt.ext_srgb&&(Ue===fl||Ue===Js)?ne[Ue]=Ue:Ue===Fs||we.indexOf("rgba")>=0?ne[Ue]=Ma:ne[Ue]=No,ne},{});function vi(){this.internalformat=Ma,this.format=Ma,this.type=Us,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=lc,this.width=0,this.height=0,this.channels=0}function li(ne,we){ne.internalformat=we.internalformat,ne.format=we.format,ne.type=we.type,ne.compressed=we.compressed,ne.premultiplyAlpha=we.premultiplyAlpha,ne.flipY=we.flipY,ne.unpackAlignment=we.unpackAlignment,ne.colorSpace=we.colorSpace,ne.width=we.width,ne.height=we.height,ne.channels=we.channels}function mn(ne,we){if(!(typeof we!="object"||!we)){if("premultiplyAlpha"in we&&(ne.premultiplyAlpha=we.premultiplyAlpha),"flipY"in we&&(ne.flipY=we.flipY),"alignment"in we&&(ne.unpackAlignment=we.alignment),"colorSpace"in we&&(ne.colorSpace=Hn[we.colorSpace]),"type"in we){var Ue=we.type;ne.type=Qi[Ue]}var ft=ne.width,Zt=ne.height,hr=ne.channels,qt=!1;"shape"in we?(ft=we.shape[0],Zt=we.shape[1],we.shape.length===3&&(hr=we.shape[2],qt=!0)):("radius"in we&&(ft=Zt=we.radius),"width"in we&&(ft=we.width),"height"in we&&(Zt=we.height),"channels"in we&&(hr=we.channels,qt=!0)),ne.width=ft|0,ne.height=Zt|0,ne.channels=hr|0;var Ve=!1;if("format"in we){var et=we.format,at=ne.internalformat=ji[et];ne.format=qn[at],et in Qi&&("type"in we||(ne.type=Qi[et])),et in si&&(ne.compressed=!0),Ve=!0}!qt&&Ve?ne.channels=Go[ne.format]:qt&&!Ve&&ne.channels!==js[ne.format]&&(ne.format=ne.internalformat=js[ne.channels])}}function Ki(ne){Ee.pixelStorei(Vf,ne.flipY),Ee.pixelStorei(Jl,ne.premultiplyAlpha),Ee.pixelStorei(hl,ne.colorSpace),Ee.pixelStorei(nf,ne.unpackAlignment)}function Ui(){vi.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Bi(ne,we){var Ue=null;if(yf(we)?Ue=we:we&&(mn(ne,we),"x"in we&&(ne.xOffset=we.x|0),"y"in we&&(ne.yOffset=we.y|0),yf(we.data)&&(Ue=we.data)),we.copy){var ft=Hr.viewportWidth,Zt=Hr.viewportHeight;ne.width=ne.width||ft-ne.xOffset,ne.height=ne.height||Zt-ne.yOffset,ne.needsCopy=!0}else if(!Ue)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(Wr(Ue))ne.channels=ne.channels||4,ne.data=Ue,!("type"in we)&&ne.type===Us&&(ne.type=Yc(Ue));else if(af(Ue))ne.channels=ne.channels||4,eh(ne,Ue),ne.alignment=1,ne.needsFree=!0;else if(Ur(Ue)){var hr=Ue.data;!Array.isArray(hr)&&ne.type===Us&&(ne.type=Yc(hr));var qt=Ue.shape,Ve=Ue.stride,et,at,kt,Ot,It,Bt;qt.length===3?(kt=qt[2],Bt=Ve[2]):(kt=1,Bt=1),et=qt[0],at=qt[1],Ot=Ve[0],It=Ve[1],ne.alignment=1,ne.width=et,ne.height=at,ne.channels=kt,ne.format=ne.internalformat=js[kt],ne.needsFree=!0,Hf(ne,hr,Ot,It,Bt,Ue.offset)}else if(Gf(Ue)||Ic(Ue)||mf(Ue))Gf(Ue)||Ic(Ue)?ne.element=Ue:ne.element=Ue.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(ql(Ue))ne.element=Ue,ne.width=Ue.width,ne.height=Ue.height,ne.channels=4;else if(_h(Ue))ne.element=Ue,ne.width=Ue.naturalWidth,ne.height=Ue.naturalHeight,ne.channels=4;else if(Qf(Ue))ne.element=Ue,ne.width=Ue.videoWidth,ne.height=Ue.videoHeight,ne.channels=4;else if(Hu(Ue)){var Rt=ne.width||Ue[0].length,mt=ne.height||Ue.length,Pt=ne.channels;En(Ue[0][0])?Pt=Pt||Ue[0][0].length:Pt=Pt||1;for(var ht=Ge.shape(Ue),cr=1,br=0;br>=Zt,Ue.height>>=Zt,Bi(Ue,ft[Zt]),ne.mipmask|=1<=0&&!("faces"in we)&&(ne.genMipmaps=!0)}if("mag"in we){var ft=we.mag;ne.magFilter=Oi[ft]}var Zt=ne.wrapS,hr=ne.wrapT;if("wrap"in we){var qt=we.wrap;typeof qt=="string"?Zt=hr=Ni[qt]:Array.isArray(qt)&&(Zt=Ni[qt[0]],hr=Ni[qt[1]])}else{if("wrapS"in we){var Ve=we.wrapS;Zt=Ni[Ve]}if("wrapT"in we){var et=we.wrapT;hr=Ni[et]}}if(ne.wrapS=Zt,ne.wrapT=hr,"anisotropic"in we){var at=we.anisotropic;ne.anisotropic=we.anisotropic}if("mipmap"in we){var kt=!1;switch(typeof we.mipmap){case"string":ne.mipmapHint=mi[we.mipmap],ne.genMipmaps=!0,kt=!0;break;case"boolean":kt=ne.genMipmaps=we.mipmap;break;case"object":ne.genMipmaps=!1,kt=!0;break;default:}kt&&!("min"in we)&&(ne.minFilter=Kl)}}function ol(ne,we){Ee.texParameteri(we,Uf,ne.minFilter),Ee.texParameteri(we,rf,ne.magFilter),Ee.texParameteri(we,Oo,ne.wrapS),Ee.texParameteri(we,qo,ne.wrapT),xt.ext_texture_filter_anisotropic&&Ee.texParameteri(we,fs,ne.anisotropic),ne.genMipmaps&&(Ee.hint(Cf,ne.mipmapHint),Ee.generateMipmap(we))}var Ul=0,ls={},Gs=zt.maxTextureUnits,Ks=Array(Gs).map(function(){return null});function Ta(ne){vi.call(this),this.mipmask=0,this.internalformat=Ma,this.id=Ul++,this.refCount=1,this.target=ne,this.texture=Ee.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new zo,Vr.profile&&(this.stats={size:0})}function sl(ne){Ee.activeTexture(Fu),Ee.bindTexture(ne.target,ne.texture)}function io(){var ne=Ks[0];ne?Ee.bindTexture(ne.target,ne.texture):Ee.bindTexture(_n,null)}function Y(ne){var we=ne.texture,Ue=ne.unit,ft=ne.target;Ue>=0&&(Ee.activeTexture(Fu+Ue),Ee.bindTexture(ft,null),Ks[Ue]=null),Ee.deleteTexture(we),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete ls[ne.id],Br.textureCount--}e(Ta.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var we=ne.unit;if(we<0){for(var Ue=0;Ue0)continue;ft.unit=-1}Ks[Ue]=ne,we=Ue;break}we>=Gs,Vr.profile&&Br.maxTextureUnits>It)-kt,Bt.height=Bt.height||(Ue.height>>It)-Ot,sl(Ue),Un(Bt,_n,kt,Ot,It),io(),Ln(Bt),ft}function hr(qt,Ve){var et=qt|0,at=Ve|0||et;if(et===Ue.width&&at===Ue.height)return ft;ft.width=Ue.width=et,ft.height=Ue.height=at,sl(Ue);for(var kt=0;Ue.mipmask>>kt;++kt){var Ot=et>>kt,It=at>>kt;if(!Ot||!It)break;Ee.texImage2D(_n,kt,Ue.format,Ot,It,0,Ue.format,Ue.type,null)}return io(),Vr.profile&&(Ue.stats.size=cc(Ue.internalformat,Ue.type,et,at,!1,!1)),ft}return ft(ne,we),ft.subimage=Zt,ft.resize=hr,ft._reglType="texture2d",ft._texture=Ue,Vr.profile&&(ft.stats=Ue.stats),ft.destroy=function(){Ue.decRef()},ft}function J(ne,we,Ue,ft,Zt,hr){var qt=new Ta(ya);ls[qt.id]=qt,Br.cubeCount++;var Ve=new Array(6);function et(Ot,It,Bt,Rt,mt,Pt){var ht,cr=qt.texInfo;for(zo.call(cr),ht=0;ht<6;++ht)Ve[ht]=Va();if(typeof Ot=="number"||!Ot){var br=Ot|0||1;for(ht=0;ht<6;++ht)oa(Ve[ht],br,br)}else if(typeof Ot=="object")if(It)wa(Ve[0],Ot),wa(Ve[1],It),wa(Ve[2],Bt),wa(Ve[3],Rt),wa(Ve[4],mt),wa(Ve[5],Pt);else if(el(cr,Ot),mn(qt,Ot),"faces"in Ot){var Nr=Ot.faces;for(ht=0;ht<6;++ht)li(Ve[ht],qt),wa(Ve[ht],Nr[ht])}else for(ht=0;ht<6;++ht)wa(Ve[ht],Ot);for(li(qt,Ve[0]),cr.genMipmaps?qt.mipmask=(Ve[0].width<<1)-1:qt.mipmask=Ve[0].mipmask,qt.internalformat=Ve[0].internalformat,et.width=Ve[0].width,et.height=Ve[0].height,sl(qt),ht=0;ht<6;++ht)ns(Ve[ht],Jn+ht);for(ol(cr,ya),io(),Vr.profile&&(qt.stats.size=cc(qt.internalformat,qt.type,et.width,et.height,cr.genMipmaps,!0)),et.format=xi[qt.internalformat],et.type=Ii[qt.type],et.mag=ci[cr.magFilter],et.min=nn[cr.minFilter],et.wrapS=Xi[cr.wrapS],et.wrapT=Xi[cr.wrapT],ht=0;ht<6;++ht)Ml(Ve[ht]);return et}function at(Ot,It,Bt,Rt,mt){var Pt=Bt|0,ht=Rt|0,cr=mt|0,br=Yi();return li(br,qt),br.width=0,br.height=0,Bi(br,It),br.width=br.width||(qt.width>>cr)-Pt,br.height=br.height||(qt.height>>cr)-ht,sl(qt),Un(br,Jn+Ot,Pt,ht,cr),io(),Ln(br),et}function kt(Ot){var It=Ot|0;if(It!==qt.width){et.width=qt.width=It,et.height=qt.height=It,sl(qt);for(var Bt=0;Bt<6;++Bt)for(var Rt=0;qt.mipmask>>Rt;++Rt)Ee.texImage2D(Jn+Bt,Rt,qt.format,It>>Rt,It>>Rt,0,qt.format,qt.type,null);return io(),Vr.profile&&(qt.stats.size=cc(qt.internalformat,qt.type,et.width,et.height,!1,!0)),et}}return et(ne,we,Ue,ft,Zt,hr),et.subimage=at,et.resize=kt,et._reglType="textureCube",et._texture=qt,Vr.profile&&(et.stats=qt.stats),et.destroy=function(){qt.decRef()},et}function q(){for(var ne=0;ne>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);else for(var Zt=0;Zt<6;++Zt)Ee.texImage2D(Jn+Zt,ft,Ue.internalformat,Ue.width>>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);ol(Ue.texInfo,Ue.target)})}function de(){for(var ne=0;ne=0?Ml=!0:Ni.indexOf(zo)>=0&&(Ml=!1))),("depthTexture"in Ta||"depthStencilTexture"in Ta)&&(Ks=!!(Ta.depthTexture||Ta.depthStencilTexture)),"depth"in Ta&&(typeof Ta.depth=="boolean"?ns=Ta.depth:(Ul=Ta.depth,Ys=!1)),"stencil"in Ta&&(typeof Ta.stencil=="boolean"?Ys=Ta.stencil:(ls=Ta.stencil,ns=!1)),"depthStencil"in Ta&&(typeof Ta.depthStencil=="boolean"?ns=Ys=Ta.depthStencil:(Gs=Ta.depthStencil,ns=!1,Ys=!1))}var io=null,Y=null,D=null,J=null;if(Array.isArray(Va))io=Va.map(si);else if(Va)io=[si(Va)];else for(io=new Array(ol),ra=0;ra0&&(Ln.depth=Bi[0].depth,Ln.stencil=Bi[0].stencil,Ln.depthStencil=Bi[0].depthStencil),Bi[Yi]?Bi[Yi](Ln):Bi[Yi]=li(Ln)}return e(vn,{width:ra,height:ra,color:zo})}function Un(na){var Yi,Ln=na|0;if(Ln===vn.width)return vn;var ra=vn.color;for(Yi=0;Yi=ra.byteLength?oa.subdata(ra):(oa.destroy(),li.buffers[na]=null)),li.buffers[na]||(oa=li.buffers[na]=Hr.create(Yi,Pf,!1,!0)),Ln.buffer=Hr.getBuffer(oa),Ln.size=Ln.buffer.dimension|0,Ln.normalized=!1,Ln.type=Ln.buffer.dtype,Ln.offset=0,Ln.stride=0,Ln.divisor=0,Ln.state=1,vn[na]=1}else Hr.getBuffer(Yi)?(Ln.buffer=Hr.getBuffer(Yi),Ln.size=Ln.buffer.dimension|0,Ln.normalized=!1,Ln.type=Ln.buffer.dtype,Ln.offset=0,Ln.stride=0,Ln.divisor=0,Ln.state=1):Hr.getBuffer(Yi.buffer)?(Ln.buffer=Hr.getBuffer(Yi.buffer),Ln.size=(+Yi.size||Ln.buffer.dimension)|0,Ln.normalized=!!Yi.normalized||!1,"type"in Yi?Ln.type=Hi[Yi.type]:Ln.type=Ln.buffer.dtype,Ln.offset=(Yi.offset||0)|0,Ln.stride=(Yi.stride||0)|0,Ln.divisor=(Yi.divisor||0)|0,Ln.state=1):"x"in Yi&&(Ln.x=+Yi.x||0,Ln.y=+Yi.y||0,Ln.z=+Yi.z||0,Ln.w=+Yi.w||0,Ln.state=2)}for(var wa=0;wa1)for(var Ki=0;KiMr&&(Mr=Yr.stats.uniformsCount)}),Mr},zt.getMaxAttributesCount=function(){var Mr=0;return Mi.forEach(function(Yr){Yr.stats.attributesCount>Mr&&(Mr=Yr.stats.attributesCount)}),Mr});function si(){Hr={},Br={};for(var Mr=0;Mr16&&(zt=Zi(zt,Ee.length*8));for(var Ir=Array(16),Hr=Array(16),Br=0;Br<16;Br++)Ir[Br]=zt[Br]^909522486,Hr[Br]=zt[Br]^1549556828;var Vr=Zi(Ir.concat(Bc(xt)),512+xt.length*8);return At(Zi(Hr.concat(Vr),768))}function pu(Ee){for(var xt=ah?"0123456789ABCDEF":"0123456789abcdef",zt="",Ir,Hr=0;Hr>>4&15)+xt.charAt(Ir&15);return zt}function qc(Ee){for(var xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zt="",Ir=Ee.length,Hr=0;HrEe.length*8?zt+=Zu:zt+=xt.charAt(Br>>>6*(3-Vr)&63);return zt}function cf(Ee,xt){var zt=xt.length,Ir=Array(),Hr,Br,Vr,mi,Ni=Array(Math.ceil(Ee.length/2));for(Hr=0;Hr0;){for(mi=Array(),Vr=0,Hr=0;Hr0||Br>0)&&(mi[mi.length]=Br);Ir[Ir.length]=Vr,Ni=mi}var Oi="";for(Hr=Ir.length-1;Hr>=0;Hr--)Oi+=xt.charAt(Ir[Hr]);var Mi=Math.ceil(Ee.length*8/(Math.log(xt.length)/Math.log(2)));for(Hr=Oi.length;Hr>>6&31,128|Ir&63):Ir<=65535?xt+=String.fromCharCode(224|Ir>>>12&15,128|Ir>>>6&63,128|Ir&63):Ir<=2097151&&(xt+=String.fromCharCode(240|Ir>>>18&7,128|Ir>>>12&63,128|Ir>>>6&63,128|Ir&63));return xt}function Bc(Ee){for(var xt=Array(Ee.length>>2),zt=0;zt>5]|=(Ee.charCodeAt(zt/8)&255)<<24-zt%32;return xt}function At(Ee){for(var xt="",zt=0;zt>5]>>>24-zt%32&255);return xt}function Xt(Ee,xt){return Ee>>>xt|Ee<<32-xt}function kr(Ee,xt){return Ee>>>xt}function Ar(Ee,xt,zt){return Ee&xt^~Ee&zt}function Kr(Ee,xt,zt){return Ee&xt^Ee&zt^xt&zt}function Ei(Ee){return Xt(Ee,2)^Xt(Ee,13)^Xt(Ee,22)}function Wi(Ee){return Xt(Ee,6)^Xt(Ee,11)^Xt(Ee,25)}function hn(Ee){return Xt(Ee,7)^Xt(Ee,18)^kr(Ee,3)}function Tn(Ee){return Xt(Ee,17)^Xt(Ee,19)^kr(Ee,10)}var Bn=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Zi(Ee,xt){var zt=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Ir=new Array(64),Hr,Br,Vr,mi,Ni,Oi,Mi,Hn,Qi,ji,si,Mr;for(Ee[xt>>5]|=128<<24-xt%32,Ee[(xt+64>>9<<4)+15]=xt,Qi=0;Qi>16)+(xt>>16)+(zt>>16);return Ir<<16|zt&65535}function an(Ee){return Array.prototype.slice.call(Ee)}function Di(Ee){return an(Ee).join("")}function $n(Ee){var xt=Ee&&Ee.cache,zt=0,Ir=[],Hr=[],Br=[];function Vr(si,Mr){var Yr=Mr&&Mr.stable;if(!Yr){for(var xi=0;xi0&&(si.push(Ii,"="),si.push.apply(si,an(arguments)),si.push(";")),Ii}return e(Mr,{def:xi,toString:function(){return Di([Yr.length>0?"var "+Yr.join(",")+";":"",Di(si)])}})}function Ni(){var si=mi(),Mr=mi(),Yr=si.toString,xi=Mr.toString;function Ii(ci,nn){Mr(ci,nn,"=",si.def(ci,nn),";")}return e(function(){si.apply(si,an(arguments))},{def:si.def,entry:si,exit:Mr,save:Ii,set:function(ci,nn,Xi){Ii(ci,nn),si(ci,nn,"=",Xi,";")},toString:function(){return Yr()+xi()}})}function Oi(){var si=Di(arguments),Mr=Ni(),Yr=Ni(),xi=Mr.toString,Ii=Yr.toString;return e(Mr,{then:function(){return Mr.apply(Mr,an(arguments)),this},else:function(){return Yr.apply(Yr,an(arguments)),this},toString:function(){var ci=Ii();return ci&&(ci="else{"+ci+"}"),Di(["if(",si,"){",xi(),"}",ci])}})}var Mi=mi(),Hn={};function Qi(si,Mr){var Yr=[];function xi(){var qn="a"+Yr.length;return Yr.push(qn),qn}Mr=Mr||0;for(var Ii=0;Ii":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ni={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},pi={cw:Te,ccw:Ne};function Pi(Ee){return Array.isArray(Ee)||Gr(Ee)||Yr(Ee)}function Ai(Ee){return Ee.sort(function(_t,zt){return _t===ee?-1:zt===ee?1:_t=1,Rr>=2,_t)}else if(zt===Xo){var Hr=Ee.data;return new ti(Hr.thisDep,Hr.contextDep,Hr.propDep,_t)}else{if(zt===Ms)return new ti(!1,!1,!1,_t);if(zt===os){for(var Br=!1,Ur=!1,gi=!1,Ni=0;Ni=1&&(Ur=!0),Mi>=2&&(gi=!0)}else Oi.type===Xo&&(Br=Br||Oi.data.thisDep,Ur=Ur||Oi.data.contextDep,gi=gi||Oi.data.propDep)}return new ti(Br,Ur,gi,_t)}else return new ti(zt===bo,zt===Ka,zt===zn,_t)}}var ia=new ti(!1,!1,!1,function(){});function Ea(Ee,_t,zt,Rr,Hr,Br,Ur,gi,Ni,Oi,Mi,Hn,Qi,Hi,oi,Mr){var Zr=Oi.Record,xi={add:32774,subtract:32778,"reverse subtract":32779};zt.ext_blend_minmax&&(xi.min=He,xi.max=Ye);var Ii=zt.angle_instanced_arrays,ci=zt.webgl_draw_buffers,nn=zt.oes_vertex_array_object,Xi={dirty:!0,profile:Mr.profile},qn={},hi=[],li={},mn={};function Ki(Ve){return Ve.replace(".","_")}function Ui(Ve,et,at){var kt=Ki(Ve);hi.push(Ve),qn[kt]=Xi[kt]=!!at,li[kt]=et}function Bi(Ve,et,at){var kt=Ki(Ve);hi.push(Ve),Array.isArray(at)?(Xi[kt]=at.slice(),qn[kt]=at.slice()):Xi[kt]=qn[kt]=at,mn[kt]=et}function vn(Ve){return!!isNaN(Ve)}Ui(Ts,Li),Ui(Ho,ii),Bi(yl,"blendColor",[0,0,0,0]),Bi(Xs,"blendEquationSeparate",[yr,yr]),Bi(Ps,"blendFuncSeparate",[gr,Wt,gr,Wt]),Ui(va,sn,!0),Bi(no,"depthFunc",Vr),Bi(_s,"depthRange",[0,1]),Bi(is,"depthMask",!0),Bi($l,$l,[!0,!0,!0,!0]),Ui(ku,jr),Bi(Yu,"cullFace",se),Bi(Nc,Nc,Ne),Bi(gu,gu,1),Ui(Uc,Kn),Bi(xu,"polygonOffset",[0,0]),Ui(Ac,Aa),Ui(Ua,fa),Bi(oo,"sampleCoverage",[1,!1]),Ui(Vc,un),Bi(hc,"stencilMask",-1),Bi(Ku,"stencilFunc",[Et,0,-1]),Bi(ue,"stencilOpSeparate",[X,nt,nt,nt]),Bi(w,"stencilOpSeparate",[se,nt,nt,nt]),Ui(B,Pn),Bi(Q,"scissor",[0,0,Ee.drawingBufferWidth,Ee.drawingBufferHeight]),Bi(ee,ee,[0,0,Ee.drawingBufferWidth,Ee.drawingBufferHeight]);var Un={gl:Ee,context:Qi,strings:_t,next:qn,current:Xi,draw:Hn,elements:Br,buffer:Hr,shader:Mi,attributes:Oi.state,vao:Oi,uniforms:Ni,framebuffer:gi,extensions:zt,timer:Hi,isBufferArgs:Pi},na={primTypes:Mn,compareFuncs:Wr,blendFuncs:bi,blendEquations:xi,stencilOps:ni,glTypes:ji,orientationType:pi};ci&&(na.backBuffer=[se],na.drawBuffer=M(Rr.maxDrawbuffers,function(Ve){return Ve===0?[0]:M(Ve,function(et){return _i+et})}));var Yi=0;function Ln(){var Ve=$n({cache:oi}),et=Ve.link,at=Ve.global;Ve.id=Yi++,Ve.batchId="0";var kt=et(Un),qt=Ve.shared={props:"a0"};Object.keys(Un).forEach(function(Pt){qt[Pt]=at.def(kt,".",Pt)});var Rt=Ve.next={},Nt=Ve.current={};Object.keys(mn).forEach(function(Pt){Array.isArray(Xi[Pt])&&(Rt[Pt]=at.def(qt.next,".",Pt),Nt[Pt]=at.def(qt.current,".",Pt))});var Dt=Ve.constants={};Object.keys(na).forEach(function(Pt){Dt[Pt]=at.def(JSON.stringify(na[Pt]))}),Ve.invoke=function(Pt,ht){switch(ht.type){case Yn:var cr=["this",qt.context,qt.props,Ve.batchId];return Pt.def(et(ht.data),".call(",cr.slice(0,Math.max(ht.data.length+1,4)),")");case zn:return Pt.def(qt.props,ht.data);case Ka:return Pt.def(qt.context,ht.data);case bo:return Pt.def("this",ht.data);case Xo:return ht.data.append(Ve,Pt),ht.data.ref;case Ms:return ht.data.toString();case os:return ht.data.map(function(br){return Ve.invoke(Pt,br)})}},Ve.attribCache={};var mt={};return Ve.scopeAttrib=function(Pt){var ht=_t.id(Pt);if(ht in mt)return mt[ht];var cr=Oi.scope[ht];cr||(cr=Oi.scope[ht]=new Zr);var br=mt[ht]=et(cr);return br},Ve}function ra(Ve){var et=Ve.static,at=Ve.dynamic,kt;if(le in et){var qt=!!et[le];kt=Cn(function(Nt,Dt){return qt}),kt.enable=qt}else if(le in at){var Rt=at[le];kt=Nn(Rt,function(Nt,Dt){return Nt.invoke(Dt,Rt)})}return kt}function oa(Ve,et){var at=Ve.static,kt=Ve.dynamic;if(qe in at){var qt=at[qe];return qt?(qt=gi.getFramebuffer(qt),Cn(function(Nt,Dt){var mt=Nt.link(qt),Pt=Nt.shared;Dt.set(Pt.framebuffer,".next",mt);var ht=Pt.context;return Dt.set(ht,"."+Be,mt+".width"),Dt.set(ht,"."+tt,mt+".height"),mt})):Cn(function(Nt,Dt){var mt=Nt.shared;Dt.set(mt.framebuffer,".next","null");var Pt=mt.context;return Dt.set(Pt,"."+Be,Pt+"."+jt),Dt.set(Pt,"."+tt,Pt+"."+tr),"null"})}else if(qe in kt){var Rt=kt[qe];return Nn(Rt,function(Nt,Dt){var mt=Nt.invoke(Dt,Rt),Pt=Nt.shared,ht=Pt.framebuffer,cr=Dt.def(ht,".getFramebuffer(",mt,")");Dt.set(ht,".next",cr);var br=Pt.context;return Dt.set(br,"."+Be,cr+"?"+cr+".width:"+br+"."+jt),Dt.set(br,"."+tt,cr+"?"+cr+".height:"+br+"."+tr),cr})}else return null}function wa(Ve,et,at){var kt=Ve.static,qt=Ve.dynamic;function Rt(mt){if(mt in kt){var Pt=kt[mt],ht=!0,cr=Pt.x|0,br=Pt.y|0,Nr,Ri;return"width"in Pt?Nr=Pt.width|0:ht=!1,"height"in Pt?Ri=Pt.height|0:ht=!1,new ti(!ht&&et&&et.thisDep,!ht&&et&&et.contextDep,!ht&&et&&et.propDep,function(gn,tn){var Ci=gn.shared.context,qi=Nr;"width"in Pt||(qi=tn.def(Ci,".",Be,"-",cr));var Vi=Ri;return"height"in Pt||(Vi=tn.def(Ci,".",tt,"-",br)),[cr,br,qi,Vi]})}else if(mt in qt){var fi=qt[mt],wi=Nn(fi,function(gn,tn){var Ci=gn.invoke(tn,fi),qi=gn.shared.context,Vi=tn.def(Ci,".x|0"),on=tn.def(Ci,".y|0"),On=tn.def('"width" in ',Ci,"?",Ci,".width|0:","(",qi,".",Be,"-",Vi,")"),Ja=tn.def('"height" in ',Ci,"?",Ci,".height|0:","(",qi,".",tt,"-",on,")");return[Vi,on,On,Ja]});return et&&(wi.thisDep=wi.thisDep||et.thisDep,wi.contextDep=wi.contextDep||et.contextDep,wi.propDep=wi.propDep||et.propDep),wi}else return et?new ti(et.thisDep,et.contextDep,et.propDep,function(gn,tn){var Ci=gn.shared.context;return[0,0,tn.def(Ci,".",Be),tn.def(Ci,".",tt)]}):null}var Nt=Rt(ee);if(Nt){var Dt=Nt;Nt=new ti(Nt.thisDep,Nt.contextDep,Nt.propDep,function(mt,Pt){var ht=Dt.append(mt,Pt),cr=mt.shared.context;return Pt.set(cr,"."+We,ht[2]),Pt.set(cr,"."+it,ht[3]),ht})}return{viewport:Nt,scissor_box:Rt(Q)}}function ns(Ve,et){var at=Ve.static,kt=typeof at[ot]=="string"&&typeof at[Xe]=="string";if(kt){if(Object.keys(et.dynamic).length>0)return null;var qt=et.static,Rt=Object.keys(qt);if(Rt.length>0&&typeof qt[Rt[0]]=="number"){for(var Nt=[],Dt=0;Dt"+Vi+"?"+ht+".constant["+Vi+"]:0;"}).join(""),"}}else{","if(",Nr,"(",ht,".buffer)){",gn,"=",Ri,".createStream(",Sr,",",ht,".buffer);","}else{",gn,"=",Ri,".getBuffer(",ht,".buffer);","}",tn,'="type" in ',ht,"?",br.glTypes,"[",ht,".type]:",gn,".dtype;",fi.normalized,"=!!",ht,".normalized;");function Ci(qi){Pt(fi[qi],"=",ht,".",qi,"|0;")}return Ci("size"),Ci("offset"),Ci("stride"),Ci("divisor"),Pt("}}"),Pt.exit("if(",fi.isStream,"){",Ri,".destroyStream(",gn,");","}"),fi}qt[Rt]=Nn(Nt,Dt)}),qt}function ol(Ve){var et=Ve.static,at=Ve.dynamic,kt={};return Object.keys(et).forEach(function(qt){var Rt=et[qt];kt[qt]=Cn(function(Nt,Dt){return typeof Rt=="number"||typeof Rt=="boolean"?""+Rt:Nt.link(Rt)})}),Object.keys(at).forEach(function(qt){var Rt=at[qt];kt[qt]=Nn(Rt,function(Nt,Dt){return Nt.invoke(Dt,Rt)})}),kt}function Ul(Ve,et,at,kt,qt){var Rt=Ve.static,Nt=Ve.dynamic,Dt=ns(Ve,et),mt=oa(Ve,qt),Pt=wa(Ve,mt,qt),ht=Va(Ve,qt),cr=Ml(Ve,qt),br=Ys(Ve,qt,Dt);function Nr(Ci){var qi=Pt[Ci];qi&&(cr[Ci]=qi)}Nr(ee),Nr(Ki(Q));var Ri=Object.keys(cr).length>0,fi={framebuffer:mt,draw:ht,shader:br,state:cr,dirty:Ri,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(fi.profile=ra(Ve,qt),fi.uniforms=zo(at,qt),fi.drawVAO=fi.scopeVAO=ht.vao,!fi.drawVAO&&br.program&&!Dt&&zt.angle_instanced_arrays&&ht.static.elements){var wi=!0,gn=br.program.attributes.map(function(Ci){var qi=et.static[Ci];return wi=wi&&!!qi,qi});if(wi&&gn.length>0){var tn=Oi.getVAO(Oi.createVAO({attributes:gn,elements:ht.static.elements}));fi.drawVAO=new ti(null,null,null,function(Ci,qi){return Ci.link(tn)}),fi.useVAO=!0}}return Dt?fi.useVAO=!0:fi.attributes=el(et,qt),fi.context=ol(kt,qt),fi}function ss(Ve,et,at){var kt=Ve.shared,qt=kt.context,Rt=Ve.scope();Object.keys(at).forEach(function(Nt){et.save(qt,"."+Nt);var Dt=at[Nt],mt=Dt.append(Ve,et);Array.isArray(mt)?Rt(qt,".",Nt,"=[",mt.join(),"];"):Rt(qt,".",Nt,"=",mt,";")}),et(Rt)}function Gs(Ve,et,at,kt){var qt=Ve.shared,Rt=qt.gl,Nt=qt.framebuffer,Dt;ci&&(Dt=et.def(qt.extensions,".webgl_draw_buffers"));var mt=Ve.constants,Pt=mt.drawBuffer,ht=mt.backBuffer,cr;at?cr=at.append(Ve,et):cr=et.def(Nt,".next"),kt||et("if(",cr,"!==",Nt,".cur){"),et("if(",cr,"){",Rt,".bindFramebuffer(",qr,",",cr,".framebuffer);"),ci&&et(Dt,".drawBuffersWEBGL(",Pt,"[",cr,".colorAttachments.length]);"),et("}else{",Rt,".bindFramebuffer(",qr,",null);"),ci&&et(Dt,".drawBuffersWEBGL(",ht,");"),et("}",Nt,".cur=",cr,";"),kt||et("}")}function Ks(Ve,et,at){var kt=Ve.shared,qt=kt.gl,Rt=Ve.current,Nt=Ve.next,Dt=kt.current,mt=kt.next,Pt=Ve.cond(Dt,".dirty");hi.forEach(function(ht){var cr=Ki(ht);if(!(cr in at.state)){var br,Nr;if(cr in Nt){br=Nt[cr],Nr=Rt[cr];var Ri=M(Xi[cr].length,function(wi){return Pt.def(br,"[",wi,"]")});Pt(Ve.cond(Ri.map(function(wi,gn){return wi+"!=="+Nr+"["+gn+"]"}).join("||")).then(qt,".",mn[cr],"(",Ri,");",Ri.map(function(wi,gn){return Nr+"["+gn+"]="+wi}).join(";"),";"))}else{br=Pt.def(mt,".",cr);var fi=Ve.cond(br,"!==",Dt,".",cr);Pt(fi),cr in li?fi(Ve.cond(br).then(qt,".enable(",li[cr],");").else(qt,".disable(",li[cr],");"),Dt,".",cr,"=",br,";"):fi(qt,".",mn[cr],"(",br,");",Dt,".",cr,"=",br,";")}}}),Object.keys(at.state).length===0&&Pt(Dt,".dirty=false;"),et(Pt)}function Ta(Ve,et,at,kt){var qt=Ve.shared,Rt=Ve.current,Nt=qt.current,Dt=qt.gl,mt;Ai(Object.keys(at)).forEach(function(Pt){var ht=at[Pt];if(!(kt&&!kt(ht))){var cr=ht.append(Ve,et);if(li[Pt]){var br=li[Pt];In(ht)?(mt=Ve.link(cr,{stable:!0}),et(Ve.cond(mt).then(Dt,".enable(",br,");").else(Dt,".disable(",br,");")),et(Nt,".",Pt,"=",mt,";")):(et(Ve.cond(cr).then(Dt,".enable(",br,");").else(Dt,".disable(",br,");")),et(Nt,".",Pt,"=",cr,";"))}else if(En(cr)){var Nr=Rt[Pt];et(Dt,".",mn[Pt],"(",cr,");",cr.map(function(Ri,fi){return Nr+"["+fi+"]="+Ri}).join(";"),";")}else In(ht)?(mt=Ve.link(cr,{stable:!0}),et(Dt,".",mn[Pt],"(",mt,");",Nt,".",Pt,"=",mt,";")):et(Dt,".",mn[Pt],"(",cr,");",Nt,".",Pt,"=",cr,";")}})}function sl(Ve,et){Ii&&(Ve.instancing=et.def(Ve.shared.extensions,".angle_instanced_arrays"))}function io(Ve,et,at,kt,qt){var Rt=Ve.shared,Nt=Ve.stats,Dt=Rt.current,mt=Rt.timer,Pt=at.profile;function ht(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var cr,br;function Nr(Ci){cr=et.def(),Ci(cr,"=",ht(),";"),typeof qt=="string"?Ci(Nt,".count+=",qt,";"):Ci(Nt,".count++;"),Hi&&(kt?(br=et.def(),Ci(br,"=",mt,".getNumPendingQueries();")):Ci(mt,".beginQuery(",Nt,");"))}function Ri(Ci){Ci(Nt,".cpuTime+=",ht(),"-",cr,";"),Hi&&(kt?Ci(mt,".pushScopeStats(",br,",",mt,".getNumPendingQueries(),",Nt,");"):Ci(mt,".endQuery();"))}function fi(Ci){var qi=et.def(Dt,".profile");et(Dt,".profile=",Ci,";"),et.exit(Dt,".profile=",qi,";")}var wi;if(Pt){if(In(Pt)){Pt.enable?(Nr(et),Ri(et.exit),fi("true")):fi("false");return}wi=Pt.append(Ve,et),fi(wi)}else wi=et.def(Dt,".profile");var gn=Ve.block();Nr(gn),et("if(",wi,"){",gn,"}");var tn=Ve.block();Ri(tn),et.exit("if(",wi,"){",tn,"}")}function Y(Ve,et,at,kt,qt){var Rt=Ve.shared;function Nt(mt){switch(mt){case ko:case Is:case dl:return 2;case Qa:case As:case Nl:return 3;case mo:case wo:case Lu:return 4;default:return 1}}function Dt(mt,Pt,ht){var cr=Rt.gl,br=et.def(mt,".location"),Nr=et.def(Rt.attributes,"[",br,"]"),Ri=ht.state,fi=ht.buffer,wi=[ht.x,ht.y,ht.z,ht.w],gn=["buffer","normalized","offset","stride"];function tn(){et("if(!",Nr,".buffer){",cr,".enableVertexAttribArray(",br,");}");var qi=ht.type,Vi;if(ht.size?Vi=et.def(ht.size,"||",Pt):Vi=Pt,et("if(",Nr,".type!==",qi,"||",Nr,".size!==",Vi,"||",gn.map(function(On){return Nr+"."+On+"!=="+ht[On]}).join("||"),"){",cr,".bindBuffer(",Sr,",",fi,".buffer);",cr,".vertexAttribPointer(",[br,Vi,qi,ht.normalized,ht.stride,ht.offset],");",Nr,".type=",qi,";",Nr,".size=",Vi,";",gn.map(function(On){return Nr+"."+On+"="+ht[On]+";"}).join(""),"}"),Ii){var on=ht.divisor;et("if(",Nr,".divisor!==",on,"){",Ve.instancing,".vertexAttribDivisorANGLE(",[br,on],");",Nr,".divisor=",on,";}")}}function Ci(){et("if(",Nr,".buffer){",cr,".disableVertexAttribArray(",br,");",Nr,".buffer=null;","}if(",ka.map(function(qi,Vi){return Nr+"."+qi+"!=="+wi[Vi]}).join("||"),"){",cr,".vertexAttrib4f(",br,",",wi,");",ka.map(function(qi,Vi){return Nr+"."+qi+"="+wi[Vi]+";"}).join(""),"}")}Ri===La?tn():Ri===Na?Ci():(et("if(",Ri,"===",La,"){"),tn(),et("}else{"),Ci(),et("}"))}kt.forEach(function(mt){var Pt=mt.name,ht=at.attributes[Pt],cr;if(ht){if(!qt(ht))return;cr=ht.append(Ve,et)}else{if(!qt(ia))return;var br=Ve.scopeAttrib(Pt);cr={},Object.keys(new Zr).forEach(function(Nr){cr[Nr]=et.def(br,".",Nr)})}Dt(Ve.link(mt),Nt(mt.info.type),cr)})}function D(Ve,et,at,kt,qt,Rt){for(var Nt=Ve.shared,Dt=Nt.gl,mt,Pt=0;Pt1){for(var co=[],ts=[],so=0;so>1)",fi],");")}function on(){at(wi,".drawArraysInstancedANGLE(",[br,Nr,Ri,fi],");")}ht&&ht!=="null"?tn?Vi():(at("if(",ht,"){"),Vi(),at("}else{"),on(),at("}")):on()}function qi(){function Vi(){at(Rt+".drawElements("+[br,Ri,gn,Nr+"<<(("+gn+"-"+Ra+")>>1)"]+");")}function on(){at(Rt+".drawArrays("+[br,Nr,Ri]+");")}ht&&ht!=="null"?tn?Vi():(at("if(",ht,"){"),Vi(),at("}else{"),on(),at("}")):on()}Ii&&(typeof fi!="number"||fi>=0)?typeof fi=="string"?(at("if(",fi,">0){"),Ci(),at("}else if(",fi,"<0){"),qi(),at("}")):Ci():qi()}function q(Ve,et,at,kt,qt){var Rt=Ln(),Nt=Rt.proc("body",qt);return Ii&&(Rt.instancing=Nt.def(Rt.shared.extensions,".angle_instanced_arrays")),Ve(Rt,Nt,at,kt),Rt.compile().body}function K(Ve,et,at,kt){sl(Ve,et),at.useVAO?at.drawVAO?et(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,et),");"):et(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(et(Ve.shared.vao,".setVAO(null);"),Y(Ve,et,at,kt.attributes,function(){return!0})),D(Ve,et,at,kt.uniforms,function(){return!0},!1),J(Ve,et,et,at)}function de(Ve,et){var at=Ve.proc("draw",1);sl(Ve,at),ss(Ve,at,et.context),Gs(Ve,at,et.framebuffer),Ks(Ve,at,et),Ta(Ve,at,et.state),io(Ve,at,et,!1,!0);var kt=et.shader.progVar.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",kt,".program);"),et.shader.program)K(Ve,at,et,et.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var qt=Ve.global.def("{}"),Rt=at.def(kt,".id"),Nt=at.def(qt,"[",Rt,"]");at(Ve.cond(Nt).then(Nt,".call(this,a0);").else(Nt,"=",qt,"[",Rt,"]=",Ve.link(function(Dt){return q(K,Ve,et,Dt,1)}),"(",kt,");",Nt,".call(this,a0);"))}Object.keys(et.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ne(Ve,et,at,kt){Ve.batchId="a1",sl(Ve,et);function qt(){return!0}Y(Ve,et,at,kt.attributes,qt),D(Ve,et,at,kt.uniforms,qt,!1),J(Ve,et,et,at)}function we(Ve,et,at,kt){sl(Ve,et);var qt=at.contextDep,Rt=et.def(),Nt="a0",Dt="a1",mt=et.def();Ve.shared.props=mt,Ve.batchId=Rt;var Pt=Ve.scope(),ht=Ve.scope();et(Pt.entry,"for(",Rt,"=0;",Rt,"<",Dt,";++",Rt,"){",mt,"=",Nt,"[",Rt,"];",ht,"}",Pt.exit);function cr(gn){return gn.contextDep&&qt||gn.propDep}function br(gn){return!cr(gn)}if(at.needsContext&&ss(Ve,ht,at.context),at.needsFramebuffer&&Gs(Ve,ht,at.framebuffer),Ta(Ve,ht,at.state,cr),at.profile&&cr(at.profile)&&io(Ve,ht,at,!1,!0),kt)at.useVAO?at.drawVAO?cr(at.drawVAO)?ht(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,ht),");"):Pt(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,Pt),");"):Pt(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(Pt(Ve.shared.vao,".setVAO(null);"),Y(Ve,Pt,at,kt.attributes,br),Y(Ve,ht,at,kt.attributes,cr)),D(Ve,Pt,at,kt.uniforms,br,!1),D(Ve,ht,at,kt.uniforms,cr,!0),J(Ve,Pt,ht,at);else{var Nr=Ve.global.def("{}"),Ri=at.shader.progVar.append(Ve,ht),fi=ht.def(Ri,".id"),wi=ht.def(Nr,"[",fi,"]");ht(Ve.shared.gl,".useProgram(",Ri,".program);","if(!",wi,"){",wi,"=",Nr,"[",fi,"]=",Ve.link(function(gn){return q(ne,Ve,at,gn,2)}),"(",Ri,");}",wi,".call(this,a0[",Rt,"],",Rt,");")}}function Ue(Ve,et){var at=Ve.proc("batch",2);Ve.batchId="0",sl(Ve,at);var kt=!1,qt=!0;Object.keys(et.context).forEach(function(Nr){kt=kt||et.context[Nr].propDep}),kt||(ss(Ve,at,et.context),qt=!1);var Rt=et.framebuffer,Nt=!1;Rt?(Rt.propDep?kt=Nt=!0:Rt.contextDep&&kt&&(Nt=!0),Nt||Gs(Ve,at,Rt)):Gs(Ve,at,null),et.state.viewport&&et.state.viewport.propDep&&(kt=!0);function Dt(Nr){return Nr.contextDep&&kt||Nr.propDep}Ks(Ve,at,et),Ta(Ve,at,et.state,function(Nr){return!Dt(Nr)}),(!et.profile||!Dt(et.profile))&&io(Ve,at,et,!1,"a1"),et.contextDep=kt,et.needsContext=qt,et.needsFramebuffer=Nt;var mt=et.shader.progVar;if(mt.contextDep&&kt||mt.propDep)we(Ve,at,et,null);else{var Pt=mt.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",Pt,".program);"),et.shader.program)we(Ve,at,et,et.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var ht=Ve.global.def("{}"),cr=at.def(Pt,".id"),br=at.def(ht,"[",cr,"]");at(Ve.cond(br).then(br,".call(this,a0,a1);").else(br,"=",ht,"[",cr,"]=",Ve.link(function(Nr){return q(we,Ve,et,Nr,2)}),"(",Pt,");",br,".call(this,a0,a1);"))}}Object.keys(et.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ft(Ve,et){var at=Ve.proc("scope",3);Ve.batchId="a2";var kt=Ve.shared,qt=kt.current;if(ss(Ve,at,et.context),et.framebuffer&&et.framebuffer.append(Ve,at),Ai(Object.keys(et.state)).forEach(function(Dt){var mt=et.state[Dt],Pt=mt.append(Ve,at);En(Pt)?Pt.forEach(function(ht,cr){vn(ht)?at.set(Ve.next[Dt],"["+cr+"]",ht):at.set(Ve.next[Dt],"["+cr+"]",Ve.link(ht,{stable:!0}))}):In(mt)?at.set(kt.next,"."+Dt,Ve.link(Pt,{stable:!0})):at.set(kt.next,"."+Dt,Pt)}),io(Ve,at,et,!0,!0),[wt,xr,Jt,Ir,Yt].forEach(function(Dt){var mt=et.draw[Dt];if(mt){var Pt=mt.append(Ve,at);vn(Pt)?at.set(kt.draw,"."+Dt,Pt):at.set(kt.draw,"."+Dt,Ve.link(Pt),{stable:!0})}}),Object.keys(et.uniforms).forEach(function(Dt){var mt=et.uniforms[Dt].append(Ve,at);Array.isArray(mt)&&(mt="["+mt.map(function(Pt){return vn(Pt)?Pt:Ve.link(Pt,{stable:!0})})+"]"),at.set(kt.uniforms,"["+Ve.link(_t.id(Dt),{stable:!0})+"]",mt)}),Object.keys(et.attributes).forEach(function(Dt){var mt=et.attributes[Dt].append(Ve,at),Pt=Ve.scopeAttrib(Dt);Object.keys(new Zr).forEach(function(ht){at.set(Pt,"."+ht,mt[ht])})}),et.scopeVAO){var Rt=et.scopeVAO.append(Ve,at);vn(Rt)?at.set(kt.vao,".targetVAO",Rt):at.set(kt.vao,".targetVAO",Ve.link(Rt,{stable:!0}))}function Nt(Dt){var mt=et.shader[Dt];if(mt){var Pt=mt.append(Ve,at);vn(Pt)?at.set(kt.shader,"."+Dt,Pt):at.set(kt.shader,"."+Dt,Ve.link(Pt,{stable:!0}))}}Nt(Xe),Nt(ot),Object.keys(et.state).length>0&&(at(qt,".dirty=true;"),at.exit(qt,".dirty=true;")),at("a1(",Ve.shared.context,",a0,",Ve.batchId,");")}function Zt(Ve){if(!(typeof Ve!="object"||En(Ve))){for(var et=Object.keys(Ve),at=0;at=0;--q){var K=Un[q];K&&K(oi,null,0)}zt.flush(),Mi&&Mi.update()}function wa(){!ra&&Un.length>0&&(ra=d.next(oa))}function ns(){ra&&(d.cancel(oa),ra=null)}function Ys(q){q.preventDefault(),Hr=!0,ns(),na.forEach(function(K){K()})}function Va(q){zt.getError(),Hr=!1,Br.restore(),qn.restore(),Ii.restore(),hi.restore(),li.restore(),mn.restore(),nn.restore(),Mi&&Mi.restore(),Ki.procs.refresh(),wa(),Yi.forEach(function(K){K()})}vn&&(vn.addEventListener(Fo,Ys,!1),vn.addEventListener(Uo,Va,!1));function Ml(){Un.length=0,ns(),vn&&(vn.removeEventListener(Fo,Ys),vn.removeEventListener(Uo,Va)),qn.clear(),mn.clear(),li.clear(),nn.clear(),hi.clear(),ci.clear(),Ii.clear(),Mi&&Mi.clear(),Ln.forEach(function(q){q()})}function zo(q){function K(Rt){var Nt=e({},Rt);delete Nt.uniforms,delete Nt.attributes,delete Nt.context,delete Nt.vao,"stencil"in Nt&&Nt.stencil.op&&(Nt.stencil.opBack=Nt.stencil.opFront=Nt.stencil.op,delete Nt.stencil.op);function Dt(mt){if(mt in Nt){var Pt=Nt[mt];delete Nt[mt],Object.keys(Pt).forEach(function(ht){Nt[mt+"."+ht]=Pt[ht]})}}return Dt("blend"),Dt("depth"),Dt("cull"),Dt("stencil"),Dt("polygonOffset"),Dt("scissor"),Dt("sample"),"vao"in Rt&&(Nt.vao=Rt.vao),Nt}function de(Rt,Nt){var Dt={},mt={};return Object.keys(Rt).forEach(function(Pt){var ht=Rt[Pt];if(h.isDynamic(ht)){mt[Pt]=h.unbox(ht,Pt);return}else if(Nt&&Array.isArray(ht)){for(var cr=0;cr0)return Ve.call(this,kt(Rt|0),Rt|0)}else if(Array.isArray(Rt)){if(Rt.length)return Ve.call(this,Rt,Rt.length)}else return Bt.call(this,Rt)}return e(qt,{stats:Zt,destroy:function(){hr.destroy()}})}var el=mn.setFBO=zo({framebuffer:h.define.call(null,Qs,"framebuffer")});function ol(q,K){var de=0;Ki.procs.poll();var ne=K.color;ne&&(zt.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),de|=Es),"depth"in K&&(zt.clearDepth(+K.depth),de|=Zs),"stencil"in K&&(zt.clearStencil(K.stencil|0),de|=Gn),zt.clear(de)}function Ul(q){if("framebuffer"in q)if(q.framebuffer&&q.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)el(e({framebuffer:q.framebuffer.faces[K]},q),ol);else el(q,ol);else ol(null,q)}function ss(q){Un.push(q);function K(){var de=vl(Un,q);function ne(){var we=vl(Un,ne);Un[we]=Un[Un.length-1],Un.length-=1,Un.length<=0&&ns()}Un[de]=ne}return wa(),{cancel:K}}function Gs(){var q=Bi.viewport,K=Bi.scissor_box;q[0]=q[1]=K[0]=K[1]=0,oi.viewportWidth=oi.framebufferWidth=oi.drawingBufferWidth=q[2]=K[2]=zt.drawingBufferWidth,oi.viewportHeight=oi.framebufferHeight=oi.drawingBufferHeight=q[3]=K[3]=zt.drawingBufferHeight}function Ks(){oi.tick+=1,oi.time=sl(),Gs(),Ki.procs.poll()}function Ta(){hi.refresh(),Gs(),Ki.procs.refresh(),Mi&&Mi.update()}function sl(){return(v()-Hn)/1e3}Ta();function io(q,K){var de;switch(q){case"frame":return ss(K);case"lost":de=na;break;case"restore":de=Yi;break;case"destroy":de=Ln;break;default:}return de.push(K),{cancel:function(){for(var ne=0;ne=0},read:Ui,destroy:Ml,_gl:zt,_refresh:Ta,poll:function(){Ks(),Mi&&Mi.update()},now:sl,stats:gi,getCachedCode:Y,preloadCachedCode:D});return _t.onDone(null,J),J}return Sc})});var wz=ye((u1r,fBe)=>{"use strict";var VNt=AX(),GNt=cBe();fBe.exports=function(t,r,n){var i=t._fullLayout,a=!0;return i._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(n);return}if(!(o.pick&&!i._has("parcoords"))){try{o.regl=GNt({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||window.devicePixelRatio,extensions:r||[],cachedCode:n||{}})}catch(s){a=!1}o.regl||(a=!1),a&&this.addEventListener("webglcontextlost",function(s){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:s,layer:o.key})},!1)}}),a||VNt({container:i._glcontainer.node()}),a}});var uK=ye((lK,gBe)=>{"use strict";var hBe=lY(),dBe=BY(),HNt=eqe(),vBe=uBe(),sK=Dr(),jNt=Sg().selectMode,WNt=wz(),XNt=Ru(),ZNt=gU(),YNt=nY().styleTextSelection,pBe={};function KNt(e,t,r,n){var i=e._size,a=e.width*n,o=e.height*n,s=i.l*n,l=i.b*n,u=i.r*n,c=i.t*n,f=i.w*n,h=i.h*n;return[s+t.domain[0]*f,l+r.domain[0]*h,a-u-(1-t.domain[1])*f,o-c-(1-r.domain[1])*h]}var lK=gBe.exports=function(t,r,n){if(n.length){var i=t._fullLayout,a=r._scene,o=r.xaxis,s=r.yaxis,l,u;if(a){var c=WNt(t,["ANGLE_instanced_arrays","OES_element_index_uint"],pBe);if(!c){a.init();return}var f=a.count,h=i._glcanvas.data()[0].regl;if(ZNt(t,r,n),a.dirty){if((a.line2d||a.error2d)&&!(a.scatter2d||a.fill2d||a.glText)&&h.clear({color:!0,depth:!0}),a.error2d===!0&&(a.error2d=HNt(h)),a.line2d===!0&&(a.line2d=dBe(h)),a.scatter2d===!0&&(a.scatter2d=hBe(h)),a.fill2d===!0&&(a.fill2d=dBe(h)),a.glText===!0)for(a.glText=new Array(f),l=0;la.glText.length){var d=f-a.glText.length;for(l=0;loe&&(isNaN(re[_e])||isNaN(re[_e+1]));)_e-=2;j.positions=re.slice(oe,_e+2)}return j}),a.line2d.update(a.lineOptions)),a.error2d){var b=(a.errorXOptions||[]).concat(a.errorYOptions||[]);a.error2d.update(b)}a.scatter2d&&a.scatter2d.update(a.markerOptions),a.fillOrder=sK.repeat(null,f),a.fill2d&&(a.fillOptions=a.fillOptions.map(function(j,re){var oe=n[re];if(!(!j||!oe||!oe[0]||!oe[0].trace)){var _e=oe[0],Me=_e.trace,ke=_e.t,me=a.lineOptions[re],ie,Se,Le=[];Me._ownfill&&Le.push(re),Me._nexttrace&&Le.push(re+1),Le.length&&(a.fillOrder[re]=Le);var Ae=[],Fe=me&&me.positions||ke.positions,Pe,ge;if(Me.fill==="tozeroy"){for(Pe=0;PePe&&isNaN(Fe[ge+1]);)ge-=2;Fe[Pe+1]!==0&&(Ae=[Fe[Pe],0]),Ae=Ae.concat(Fe.slice(Pe,ge+2)),Fe[ge+1]!==0&&(Ae=Ae.concat([Fe[ge],0]))}else if(Me.fill==="tozerox"){for(Pe=0;PePe&&isNaN(Fe[ge]);)ge-=2;Fe[Pe]!==0&&(Ae=[0,Fe[Pe+1]]),Ae=Ae.concat(Fe.slice(Pe,ge+2)),Fe[ge]!==0&&(Ae=Ae.concat([0,Fe[ge+1]]))}else if(Me.fill==="toself"||Me.fill==="tonext"){for(Ae=[],ie=0,j.splitNull=!0,Se=0;Se-1;for(l=0;l{"use strict";var mBe=Fze();mBe.plot=uK();yBe.exports=mBe});var bBe=ye((f1r,xBe)=>{"use strict";xBe.exports=_Be()});var cK=ye((h1r,SBe)=>{"use strict";var JNt=vf(),ABe=Tu(),wBe=ff().axisHoverFormat,$Nt=rs().hovertemplateAttrs,TC=iC(),QNt=hd().idRegex,eUt=pl().templatedArray,d5=Ao().extendFlat,o1=JNt.marker,tUt=o1.line,rUt=d5(ABe("marker.line",{editTypeOverride:"calc"}),{width:d5({},tUt.width,{editType:"calc"}),editType:"calc"}),Tz=d5(ABe("marker"),{symbol:o1.symbol,angle:o1.angle,size:d5({},o1.size,{editType:"markerSize"}),sizeref:o1.sizeref,sizemin:o1.sizemin,sizemode:o1.sizemode,opacity:o1.opacity,colorbar:o1.colorbar,line:rUt,editType:"calc"});Tz.color.editType=Tz.cmin.editType=Tz.cmax.editType="style";function TBe(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:QNt[e],editType:"plot"}}}SBe.exports={dimensions:eUt("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:d5({},TC.text,{}),hovertext:d5({},TC.hovertext,{}),hovertemplate:$Nt(),xhoverformat:wBe("x"),yhoverformat:wBe("y"),marker:Tz,xaxes:TBe("x"),yaxes:TBe("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:TC.selected.marker,editType:"calc"},unselected:{marker:TC.unselected.marker,editType:"calc"},opacity:TC.opacity}});var Az=ye((d1r,MBe)=>{"use strict";MBe.exports=function(e,t,r,n){n||(n=1/0);var i,a;for(i=0;i{"use strict";var fK=Dr(),iUt=Yd(),EBe=cK(),nUt=Ru(),aUt=$p(),oUt=Az(),sUt=qF().isOpenSymbol;CBe.exports=function(t,r,n,i){function a(d,v){return fK.coerce(t,r,EBe,d,v)}var o=iUt(t,r,{name:"dimensions",handleItemDefaults:lUt}),s=a("diagonal.visible"),l=a("showupperhalf"),u=a("showlowerhalf"),c=oUt(r,o,"values");if(!c||!s&&!l&&!u){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),aUt(t,r,n,i,a,{noAngleRef:!0,noStandOff:!0});var f=sUt(r.marker.symbol),h=nUt.isBubble(r);a("marker.line.width",f||h?1:0),uUt(t,r,i,a),fK.coerceSelectionMarkerOpacity(r,a)};function lUt(e,t){function r(i,a){return fK.coerce(e,t,EBe.dimensions,i,a)}r("label");var n=r("values");n&&n.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}function uUt(e,t,r,n){var i=t.dimensions,a=i.length,o=t.showupperhalf,s=t.showlowerhalf,l=t.diagonal.visible,u,c,f=new Array(a),h=new Array(a);for(u=0;uc&&o||u{"use strict";var LBe=Dr();PBe.exports=function(t,r){var n=t._fullLayout,i=r.uid,a=n._splomScenes;a||(a=n._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s={matrix:!1,selectBatch:[],unselectBatch:[]},l=a[r.uid];return l||(l=a[i]=LBe.extendFlat({},o,s),l.draw=function(){l.matrix&&l.matrix.draw&&(l.selectBatch.length||l.unselectBatch.length?l.matrix.draw(l.unselectBatch,l.selectBatch):l.matrix.draw()),l.dirty=!1},l.destroy=function(){l.matrix&&l.matrix.destroy&&l.matrix.destroy(),l.matrixOptions=null,l.selectBatch=null,l.unselectBatch=null,l=null}),l.dirty||LBe.extendFlat(l,o),l}});var FBe=ye((g1r,DBe)=>{"use strict";var hK=Dr(),Sz=Af(),cUt=O0().calcMarkerSize,fUt=O0().calcAxisExpansion,hUt=F0(),RBe=Y2().markerSelection,dUt=Y2().markerStyle,vUt=IBe(),pUt=hs().BADNUM,gUt=sx().TOO_MANY_POINTS;DBe.exports=function(t,r){var n=r.dimensions,i=r._length,a={},o=a.cdata=[],s=a.data=[],l=r._visibleDims=[],u,c,f,h,d;function v(E,A){for(var L=E.makeCalcdata({v:A.values,vcalendar:r.calendar},"v"),_=0;_gUt,p;for(b?p=a.sizeAvg||Math.max(a.size,3):p=cUt(r,i),c=0;c{(function(){var e,t,r,n,i,a;typeof performance!="undefined"&&performance!==null&&performance.now?AC.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(AC.exports=function(){return(e()-i)/1e6},t=process.hrtime,e=function(){var o;return o=t(),o[0]*1e9+o[1]},n=e(),a=process.uptime()*1e9,i=n-a):Date.now?(AC.exports=function(){return Date.now()-r},r=Date.now()):(AC.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(zBe)});var BBe=ye((m1r,Cz)=>{var mUt=OBe(),s1=window,Mz=["moz","webkit"],p5="AnimationFrame",g5=s1["request"+p5],SC=s1["cancel"+p5]||s1["cancelRequest"+p5];for(v5=0;!g5&&v5{NBe.exports=function(t,r){var n=typeof t=="number",i=typeof r=="number";n&&!i?(r=t,t=0):!n&&!i&&(t=0,r=0),t=t|0,r=r|0;var a=r-t;if(a<0)throw new Error("array length must be positive");for(var o=new Array(a),s=0,l=t;s{"use strict";var yUt=lY(),_Ut=Xm(),xUt=j2(),VBe=BBe(),bUt=UBe(),vK=e5(),wUt=W2();HBe.exports=px;function px(e,t){if(!(this instanceof px))return new px(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=yUt(e),this.canvas=this.scatter.canvas}px.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=VBe(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,VBe(()=>{this.dirty=!1})),this)};px.prototype.update=function(...e){if(!e.length)return;for(let n=0;nb||!i.lower&&x{t[a+s]=n})}this.scatter.draw(...t)}return this};px.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function TUt(e,t,r){let n=e.id!=null?e.id:e,i=t,a=r;return n<<16|(i&255)<<8|a&255}function kz(e,t,r){let n,i,a,o,s,l,u,c,f=e[t],h=e[r];return f.length>2?(n=f[0],a=f[2],i=f[1],o=f[3]):f.length?(n=i=f[0],a=o=f[1]):(n=f.x,i=f.y,a=f.x+f.width,o=f.y+f.height),h.length>2?(s=h[0],u=h[2],l=h[1],c=h[3]):h.length?(s=l=h[0],u=c=h[1]):(s=h.x,l=h.y,u=h.x+h.width,c=h.y+h.height),[s,i,u,o]}function GBe(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let t=vK(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}}});var XBe=ye((x1r,WBe)=>{"use strict";var AUt=jBe(),pK=Dr(),Lz=Af(),SUt=Sg().selectMode;WBe.exports=function(t,r,n){if(n.length)for(var i=0;i-1,T=SUt(c)||!!i.selectedpoints||P,z=!0;if(T){var O=i._length;if(i.selectedpoints){o.selectBatch=i.selectedpoints;var V=i.selectedpoints,G={};for(d=0;d{"use strict";ZBe.getDimIndex=function(t,r){for(var n=r._id,i=n.charAt(0),a={x:0,y:1}[i],o=t._visibleDims,s=0;s{"use strict";var YBe=gK(),EUt=OF().calcHover,KBe=ho().getFromId,CUt=Ao().extendFlat;function kUt(e,t,r,n,i){i||(i={});var a=(n||"").charAt(0)==="x",o=(n||"").charAt(0)==="y",s=JBe(e,t,r);if((a||o)&&i.hoversubplots==="axis"&&s[0])for(var l=(a?e.xa:e.ya)._subplotsWith,u=i.gd,c=CUt({},e),f=0;f{"use strict";var iNe=Dr(),eNe=iNe.pushUnique,tNe=Ru(),rNe=gK();nNe.exports=function(t,r){var n=t.cd,i=n[0].trace,a=n[0].t,o=t.scene,s=o.matrixOptions.cdata,l=t.xaxis,u=t.yaxis,c=[];if(!o)return c;var f=!tNe.hasMarkers(i)&&!tNe.hasText(i);if(i.visible!==!0||f)return c;var h=rNe.getDimIndex(i,l),d=rNe.getDimIndex(i,u);if(h===!1||d===!1)return c;var v=a.xpx[h],x=a.ypx[d],b=s[h],p=s[d],C=(t.scene.selectBatch||[]).slice(),E=[];if(r!==!1&&!r.degenerate)for(var A=0;A{"use strict";var oNe=Dr(),LUt=F0(),PUt=Y2().markerStyle;sNe.exports=function(t,r){var n=r.trace,i=t._fullLayout._splomScenes[n.uid];if(i){LUt(t,n),oNe.extendFlat(i.matrixOptions,PUt(t,n));var a=oNe.extendFlat({},i.matrixOptions,i.viewOpts);i.matrix.update(a,null)}}});var cNe=ye((S1r,uNe)=>{"use strict";var IUt=qa(),RUt=lV();uNe.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:cK(),supplyDefaults:kBe(),colorbar:$d(),calc:FBe(),plot:XBe(),hoverPoints:QBe().hoverPoints,selectPoints:aNe(),editStyle:lNe(),meta:{}};IUt.register(RUt)});var gNe=ye((M1r,pNe)=>{"use strict";var DUt=BY(),FUt=qa(),zUt=wz(),OUt=Id().getModuleCalcData,gx=vh(),fNe=Af().getFromId,hNe=ho().shouldShowZeroLine,dNe="splom",vNe={};function qUt(e){var t=e._fullLayout,r=FUt.getModule(dNe),n=OUt(e.calcdata,r)[0],i=zUt(e,["ANGLE_instanced_arrays","OES_element_index_uint"],vNe);i&&(t._hasOnlyLargeSploms&&mK(e),r.plot(e,{},n))}function BUt(e){var t=e.calcdata,r=e._fullLayout;r._hasOnlyLargeSploms&&mK(e);for(var n=0;n{"use strict";var mNe=cNe();mNe.basePlotModule=gNe(),yNe.exports=mNe});var bNe=ye((C1r,xNe)=>{"use strict";xNe.exports=_Ne()});var xK=ye((k1r,wNe)=>{"use strict";var GUt=Tu(),yK=Rd(),_K=ec(),HUt=kc().attributes,Pz=Ao().extendFlat,jUt=pl().templatedArray;wNe.exports={domain:HUt({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:_K({editType:"plot"}),tickfont:_K({autoShadowDflt:!0,editType:"plot"}),rangefont:_K({editType:"plot"}),dimensions:jUt("dimension",{label:{valType:"string",editType:"plot"},tickvals:Pz({},yK.tickvals,{editType:"plot"}),ticktext:Pz({},yK.ticktext,{editType:"plot"}),tickformat:Pz({},yK.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:Pz({editType:"calc"},GUt("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}});var MC=ye((L1r,TNe)=>{"use strict";TNe.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:["contextLineLayer","focusLineLayer","pickLineLayer"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},id:{filterBarPattern:"filter-bar-pattern"}}});var Km=ye((P1r,SNe)=>{"use strict";var WUt=BS();function ANe(e){return[e]}SNe.exports={keyFun:function(e){return e.key},repeat:ANe,descend:WUt,wrap:ANe,unwrap:function(e){return e[0]}}});var TK=ye((I1r,zNe)=>{"use strict";var yh=MC(),em=Oa(),XUt=Km().keyFun,Iz=Km().repeat,m5=Dr().sorterAsc,ZUt=Dr().strTranslate,MNe=yh.bar.snapRatio;function ENe(e,t){return e*(1-MNe)+t*MNe}var CNe=yh.bar.snapClose;function YUt(e,t){return e*(1-CNe)+t*CNe}function Dz(e,t,r,n){if(KUt(r,n))return r;var i=e?-1:1,a=0,o=t.length-1;if(i<0){var s=a;a=o,o=s}for(var l=t[a],u=l,c=a;i*c=t[r][0]&&e<=t[r][1])return!0;return!1}function JUt(e){e.attr("x",-yh.bar.captureWidth/2).attr("width",yh.bar.captureWidth)}function $Ut(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function QUt(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t=kNe(e.brush.filter.getConsolidated(),e.height),r=[0],n,i,a,o=t.length?t[0][0]:null,s=0;se[1]+r||t=.9*e[1]+.1*e[0]?"n":t<=.9*e[0]+.1*e[1]?"s":"ns"}function LNe(){em.select(document.body).style("cursor",null)}function wK(e){e.attr("stroke-dasharray",QUt)}function Rz(e,t){var r=em.select(e).selectAll(".highlight, .highlight-shadow"),n=t?r.transition().duration(yh.bar.snapDuration).each("end",t):r;wK(n)}function PNe(e,t){var r=e.brush,n=r.filterSpecified,i=NaN,a={},o;if(n){var s=e.height,l=r.filter.getConsolidated(),u=kNe(l,s),c=NaN,f=NaN,h=NaN;for(o=0;o<=u.length;o++){var d=u[o];if(d&&d[0]<=t&&t<=d[1]){c=o;break}else if(f=o?o-1:NaN,d&&d[0]>t){h=o;break}}if(i=c,isNaN(i)&&(isNaN(f)||isNaN(h)?i=isNaN(f)?h:f:i=t-u[f][1]=C[0]&&p<=C[1]){a.clickableOrdinalRange=C;break}}}return a}function tVt(e,t){em.event.sourceEvent.stopPropagation();var r=t.height-em.mouse(e)[1]-2*yh.verticalPadding,n=t.unitToPaddedPx.invert(r),i=t.brush,a=PNe(t,r),o=a.interval,s=i.svgBrush;if(s.wasDragged=!1,s.grabbingBar=a.region==="ns",s.grabbingBar){var l=o.map(t.unitToPaddedPx);s.grabPoint=r-l[0]-yh.verticalPadding,s.barLength=l[1]-l[0]}s.clickableOrdinalRange=a.clickableOrdinalRange,s.stayingIntervals=t.multiselect&&i.filterSpecified?i.filter.getConsolidated():[],o&&(s.stayingIntervals=s.stayingIntervals.filter(function(u){return u[0]!==o[0]&&u[1]!==o[1]})),s.startExtent=a.region?o[a.region==="s"?1:0]:n,t.parent.inBrushDrag=!0,s.brushStartCallback()}function INe(e,t){em.event.sourceEvent.stopPropagation();var r=t.height-em.mouse(e)[1]-2*yh.verticalPadding,n=t.brush.svgBrush;n.wasDragged=!0,n._dragging=!0,n.grabbingBar?n.newExtent=[r-n.grabPoint,r+n.barLength-n.grabPoint].map(t.unitToPaddedPx.invert):n.newExtent=[n.startExtent,t.unitToPaddedPx.invert(r)].sort(m5),t.brush.filterSpecified=!0,n.extent=n.stayingIntervals.concat([n.newExtent]),n.brushCallback(t),Rz(e.parentNode)}function rVt(e,t){var r=t.brush,n=r.filter,i=r.svgBrush;i._dragging||(RNe(e,t),INe(e,t),t.brush.svgBrush.wasDragged=!1),i._dragging=!1;var a=em.event;a.sourceEvent.stopPropagation();var o=i.grabbingBar;if(i.grabbingBar=!1,i.grabLocation=void 0,t.parent.inBrushDrag=!1,LNe(),!i.wasDragged){i.wasDragged=void 0,i.clickableOrdinalRange?r.filterSpecified&&t.multiselect?i.extent.push(i.clickableOrdinalRange):(i.extent=[i.clickableOrdinalRange],r.filterSpecified=!0):o?(i.extent=i.stayingIntervals,i.extent.length===0&&bK(r)):bK(r),i.brushCallback(t),Rz(e.parentNode),i.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);return}var s=function(){n.set(n.getConsolidated())};if(t.ordinal){var l=t.unitTickvals;l[l.length-1]i.newExtent[0];i.extent=i.stayingIntervals.concat(u?[i.newExtent]:[]),i.extent.length||bK(r),i.brushCallback(t),u?Rz(e.parentNode,s):(s(),Rz(e.parentNode))}else s();i.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}function RNe(e,t){var r=t.height-em.mouse(e)[1]-2*yh.verticalPadding,n=PNe(t,r),i="crosshair";n.clickableOrdinalRange?i="pointer":n.region&&(i=n.region+"-resize"),em.select(document.body).style("cursor",i)}function iVt(e){e.on("mousemove",function(t){em.event.preventDefault(),t.parent.inBrushDrag||RNe(this,t)}).on("mouseleave",function(t){t.parent.inBrushDrag||LNe()}).call(em.behavior.drag().on("dragstart",function(t){tVt(this,t)}).on("drag",function(t){INe(this,t)}).on("dragend",function(t){rVt(this,t)}))}function DNe(e,t){return e[0]-t[0]}function nVt(e,t,r){var n=r._context.staticPlot,i=e.selectAll(".background").data(Iz);i.enter().append("rect").classed("background",!0).call(JUt).call($Ut).style("pointer-events",n?"none":"auto").attr("transform",ZUt(0,yh.verticalPadding)),i.call(iVt).attr("height",function(s){return s.height-yh.verticalPadding});var a=e.selectAll(".highlight-shadow").data(Iz);a.enter().append("line").classed("highlight-shadow",!0).attr("x",-yh.bar.width/2).attr("stroke-width",yh.bar.width+yh.bar.strokeWidth).attr("stroke",t).attr("opacity",yh.bar.strokeOpacity).attr("stroke-linecap","butt"),a.attr("y1",function(s){return s.height}).call(wK);var o=e.selectAll(".highlight").data(Iz);o.enter().append("line").classed("highlight",!0).attr("x",-yh.bar.width/2).attr("stroke-width",yh.bar.width-yh.bar.strokeWidth).attr("stroke",yh.bar.fillColor).attr("opacity",yh.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(s){return s.height}).call(wK)}function aVt(e,t,r){var n=e.selectAll("."+yh.cn.axisBrush).data(Iz,XUt);n.enter().append("g").classed(yh.cn.axisBrush,!0),nVt(n,t,r)}function oVt(e){return e.svgBrush.extent.map(function(t){return t.slice()})}function bK(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function sVt(e){return function(r){var n=r.brush,i=oVt(n),a=i.slice();n.filter.set(a),e()}}function FNe(e){for(var t=e.slice(),r=[],n,i=t.shift();i;){for(n=i.slice();(i=t.shift())&&i[0]<=n[1];)n[1]=Math.max(n[1],i[1]);r.push(n)}return r.length===1&&r[0][0]>r[0][1]&&(r=[]),r}function lVt(){var e=[],t,r;return{set:function(n){e=n.map(function(i){return i.slice().sort(m5)}).sort(DNe),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),t=FNe(e),r=e.reduce(function(i,a){return[Math.min(i[0],a[0]),Math.max(i[1],a[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return t},getBounds:function(){return r}}}function uVt(e,t,r,n,i,a){var o=lVt();return o.set(r),{filter:o,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:n,brushCallback:sVt(i),brushEndCallback:a}}}function cVt(e,t){if(Array.isArray(e[0])?(e=e.map(function(n){return n.sort(m5)}),t.multiselect?e=FNe(e.sort(DNe)):e=[e[0]]):e=[e.sort(m5)],t.tickvals){var r=t.tickvals.slice().sort(m5);if(e=e.map(function(n){var i=[Dz(0,r,n[0],[]),Dz(1,r,n[1],[])];if(i[1]>i[0])return i}).filter(function(n){return n}),!e.length)return}return e.length>1?e:e[0]}zNe.exports={makeBrush:uVt,ensureAxisBrush:aVt,cleanRanges:cVt}});var BNe=ye((R1r,qNe)=>{"use strict";var mx=Dr(),fVt=Dv().hasColorscale,hVt=Jh(),dVt=kc().defaults,vVt=Yd(),pVt=ho(),ONe=xK(),gVt=TK(),AK=MC().maxDimensionCount,mVt=Az();function yVt(e,t,r,n,i){var a=i("line.color",r);if(fVt(e,"line")&&mx.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),hVt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function _Vt(e,t,r,n){function i(u,c){return mx.coerce(e,t,ONe.dimensions,u,c)}var a=i("values"),o=i("visible");if(a&&a.length||(o=t.visible=!1),o){i("label"),i("tickvals"),i("ticktext"),i("tickformat");var s=i("range");t._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:s},pVt.setConvert(t._ax,n.layout),i("multiselect");var l=i("constraintrange");l&&(t.constraintrange=gVt.cleanRanges(l,t))}}qNe.exports=function(t,r,n,i){function a(c,f){return mx.coerce(t,r,ONe,c,f)}var o=t.dimensions;Array.isArray(o)&&o.length>AK&&(mx.log("parcoords traces support up to "+AK+" dimensions at the moment"),o.splice(AK));var s=vVt(t,r,{name:"dimensions",layout:i,handleItemDefaults:_Vt}),l=yVt(t,r,n,i,a);dVt(r,i,a),(!Array.isArray(s)||!s.length)&&(r.visible=!1),mVt(r,s,"values",l);var u=mx.extendFlat({},i.font,{size:Math.round(i.font.size/1.2)});mx.coerceFont(a,"labelfont",u),mx.coerceFont(a,"tickfont",u,{autoShadowDflt:!0}),mx.coerceFont(a,"rangefont",u),a("labelangle"),a("labelside"),a("unselected.line.color"),a("unselected.line.opacity")}});var UNe=ye((D1r,NNe)=>{"use strict";var xVt=Dr().isArrayOrTypedArray,SK=tc(),bVt=Km().wrap;NNe.exports=function(t,r){var n,i;return SK.hasColorscale(r,"line")&&xVt(r.line.color)?(n=r.line.color,i=SK.extractOpts(r.line).colorscale,SK.calc(t,r,{vals:n,containerStr:"line",cLetter:"c"})):(n=wVt(r._length),i=[[0,r.line.color],[1,r.line.color]]),bVt({lineColor:n,cscale:i})};function wVt(e){for(var t=new Array(e),r=0;r>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),MK.default[e])r=MK.default[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(e[0]==="#"){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var l=t[1];i=l.replace(/a$/,"");var u=i==="cmyk"?4:i==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/),i==="color"&&(i=r.shift()),r=r.map(function(h,d){if(h[h.length-1]==="%")return h=parseFloat(h)/100,d===3?h:i==="rgb"?h*255:i[0]==="h"||i[0]==="l"&&!d?h*100:i==="lab"?h*125:i==="lch"?d<2?h*150:h*360:i[0]==="o"&&!d?h:i==="oklab"?h*.4:i==="oklch"?d<2?h*.4:h*360:h;if(i[d]==="h"||d===2&&i[i.length-1]==="h"){if(VNe[h]!==void 0)return VNe[h];if(h.endsWith("deg"))return parseFloat(h);if(h.endsWith("turn"))return parseFloat(h)*360;if(h.endsWith("grad"))return parseFloat(h)*360/400;if(h.endsWith("rad"))return parseFloat(h)*180/Math.PI}return h==="none"?0:parseFloat(h)}),n=r.length>u?r.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(h){return parseFloat(h)}),i=((f=(c=e.match(/([a-z])/ig))==null?void 0:c.join(""))==null?void 0:f.toLowerCase())||"rgb");return{space:i,values:r,alpha:n}}var MK,GNe,VNe,HNe=ru(()=>{MK=jet(fX(),1),GNe=TVt,VNe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var EC,EK=ru(()=>{EC={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var Fz,jNe=ru(()=>{EK();Fz={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,l,u=0;if(r===0)return l=n*255,[l,l,l];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];u<3;)o=t+1/3*-(u-1),o<0?o++:o>1&&o--,l=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[u++]=l*255;return s}};EC.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s,l,u;return a===i?s=0:t===a?s=(r-n)/o:r===a?s=2+(n-t)/o:n===a&&(s=4+(t-r)/o),s=Math.min(s*60,360),s<0&&(s+=360),u=(i+a)/2,a===i?l=0:u<=.5?l=o/(a+i):l=o/(2-a-i),[s,l*100,u*100]}});var XNe={};lee(XNe,{default:()=>WNe});function WNe(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var t,r,n,i=GNe(e);if(!i.space)return[];let a=i.space[0]==="h"?Fz.min:EC.min,o=i.space[0]==="h"?Fz.max:EC.max;return t=Array(3),t[0]=Math.min(Math.max(i.values[0],a[0]),o[0]),t[1]=Math.min(Math.max(i.values[1],a[1]),o[1]),t[2]=Math.min(Math.max(i.values[2],a[2]),o[2]),i.space[0]==="h"&&(t=Fz.rgb(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t}var ZNe=ru(()=>{HNe();EK();jNe()});var CK=ye(zz=>{"use strict";var AVt=Dr().isTypedArray;zz.convertTypedArray=function(e){return AVt(e)?Array.prototype.slice.call(e):e};zz.isOrdinal=function(e){return!!e.tickvals};zz.isVisible=function(e){return e.visible||!("visible"in e)}});var nUe=ye((G1r,iUe)=>{"use strict";var SVt=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` -`),MVt=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` -`),CC=MC().maxDimensionCount,eUe=Dr(),YNe=1e-6,Oz=2048,EVt=new Uint8Array(4),KNe=new Uint8Array(4),JNe={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function CVt(e){e.read({x:0,y:0,width:1,height:1,data:EVt})}function tUe(e,t,r,n,i){var a=e._gl;a.enable(a.SCISSOR_TEST),a.scissor(t,r,n,i),e.clear({color:[0,0,0,0],depth:1})}function kVt(e,t,r,n,i,a){var o=a.key;function s(l){var u=Math.min(n,i-l*n);l===0&&(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],tUe(e,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),!r.clearOnly&&(a.count=2*u,a.offset=2*l*n,t(a),l*n+u>>8*t)%256/255}function IVt(e,t,r){for(var n=new Array(e*(CC+4)),i=0,a=0;aZ&&(Z=M[z].dim1.canvasX,V=z);T===0&&tUe(i,0,0,u.canvasWidth,u.canvasHeight);var H=E(r);for(z=0;z{"use strict";var Bd=Oa(),l1=Dr(),LK=l1.isArrayOrTypedArray,cUe=l1.numberFormat,fUe=(ZNe(),B1(XNe)).default,hUe=ho(),OVt=l1.strRotate,Jm=l1.strTranslate,qVt=iu(),qz=So(),aUe=tc(),RK=Km(),tg=RK.keyFun,$m=RK.repeat,dUe=RK.unwrap,y5=CK(),Rl=MC(),vUe=TK(),BVt=nUe();function oUe(e,t,r){return l1.aggNums(e,null,t,r)}function pUe(e,t){return DK(oUe(Math.min,e,t),oUe(Math.max,e,t))}function Bz(e){var t=e.range;return t?DK(t[0],t[1]):pUe(e.values,e._length)}function DK(e,t){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(t)||!isFinite(t))&&(t=0),e===t&&(e===0?(e-=1,t+=1):(e*=.9,t*=1.1)),[e,t]}function NVt(e,t){return t?function(r,n){var i=t[n];return i==null?e(r):i}:e}function UVt(e,t,r,n,i){var a=Bz(r);return n?Bd.scale.ordinal().domain(n.map(NVt(cUe(r.tickformat),i))).range(n.map(function(o){var s=(o-a[0])/(a[1]-a[0]);return e-t+s*(2*t-e)})):Bd.scale.linear().domain(a).range([e-t,t])}function VVt(e,t){return Bd.scale.linear().range([t,e-t])}function GVt(e,t){return Bd.scale.linear().domain(Bz(e)).range([t,1-t])}function HVt(e){if(e.tickvals){var t=Bz(e);return Bd.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(r){return(r-t[0])/(t[1]-t[0])}))}}function jVt(e){var t=e.map(function(a){return a[0]}),r=e.map(function(a){var o=fUe(a[1]);return Bd.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),n=function(a){return function(o){return o[a]}},i="rgb".split("").map(function(a){return Bd.scale.linear().clamp(!0).domain(t).range(r.map(n(a)))});return function(a){return i.map(function(o){return o(a)})}}function IK(e){return e.dimensions.some(function(t){return t.brush.filterSpecified})}function WVt(e,t,r){var n=dUe(t),i=n.trace,a=y5.convertTypedArray(n.lineColor),o=i.line,s={color:fUe(i.unselected.line.color),opacity:i.unselected.line.opacity},l=aUe.extractOpts(o),u=l.reversescale?aUe.flipScale(n.cscale):n.cscale,c=i.domain,f=i.dimensions,h=e.width,d=i.labelangle,v=i.labelside,x=i.labelfont,b=i.tickfont,p=i.rangefont,C=l1.extendDeepNoArrays({},o,{color:a.map(Bd.scale.linear().domain(Bz({values:a,range:[l.min,l.max],_length:i._length}))),blockLineCount:Rl.blockLineCount,canvasOverdrag:Rl.overdrag*Rl.canvasPixelRatio}),E=Math.floor(h*(c.x[1]-c.x[0])),A=Math.floor(e.height*(c.y[1]-c.y[0])),L=e.margin||{l:80,r:80,t:100,b:80},_=E,k=A;return{key:r,colCount:f.filter(y5.isVisible).length,dimensions:f,tickDistance:Rl.tickDistance,unitToColor:jVt(u),lines:C,deselectedLines:s,labelAngle:d,labelSide:v,labelFont:x,tickFont:b,rangeFont:p,layoutWidth:h,layoutHeight:e.height,domain:c,translateX:c.x[0]*h,translateY:e.height-c.y[1]*e.height,pad:L,canvasWidth:_*Rl.canvasPixelRatio+2*C.canvasOverdrag,canvasHeight:k*Rl.canvasPixelRatio,width:_,height:k,canvasPixelRatio:Rl.canvasPixelRatio}}function XVt(e,t,r){var n=r.width,i=r.height,a=r.dimensions,o=r.canvasPixelRatio,s=function(h){return n*h/Math.max(1,r.colCount-1)},l=Rl.verticalPadding/i,u=VVt(i,Rl.verticalPadding),c={key:r.key,xScale:s,model:r,inBrushDrag:!1},f={};return c.dimensions=a.filter(y5.isVisible).map(function(h,d){var v=GVt(h,l),x=f[h.label];f[h.label]=(x||0)+1;var b=h.label+(x?"__"+x:""),p=h.constraintrange,C=p&&p.length;C&&!LK(p[0])&&(p=[p]);var E=C?p.map(function(O){return O.map(v)}):[[-1/0,1/0]],A=function(){var O=c;O.focusLayer&&O.focusLayer.render(O.panels,!0);var V=IK(O);!e.contextShown()&&V?(O.contextLayer&&O.contextLayer.render(O.panels,!0),e.contextShown(!0)):e.contextShown()&&!V&&(O.contextLayer&&O.contextLayer.render(O.panels,!0,!0),e.contextShown(!1))},L=h.values;L.length>h._length&&(L=L.slice(0,h._length));var _=h.tickvals,k;function M(O,V){return{val:O,text:k[V]}}function g(O,V){return O.val-V.val}if(LK(_)&&_.length){l1.isTypedArray(_)&&(_=Array.from(_)),k=h.ticktext,!LK(k)||!k.length?k=_.map(cUe(h.tickformat)):k.length>_.length?k=k.slice(0,_.length):_.length>k.length&&(_=_.slice(0,k.length));for(var P=1;P<_.length;P++)if(_[P]<_[P-1]){for(var T=_.map(M).sort(g),z=0;z<_.length;z++)_[z]=T[z].val,k[z]=T[z].text;break}}else _=void 0;return L=y5.convertTypedArray(L),{key:b,label:h.label,tickFormat:h.tickformat,tickvals:_,ticktext:k,ordinal:y5.isOrdinal(h),multiselect:h.multiselect,xIndex:d,crossfilterDimensionIndex:d,visibleIndex:h._index,height:i,values:L,paddedUnitValues:L.map(v),unitTickvals:_&&_.map(v),xScale:s,x:s(d),canvasX:s(d)*o,unitToPaddedPx:u,domainScale:UVt(i,Rl.verticalPadding,h,_,k),ordinalScale:HVt(h),parent:c,model:r,brush:vUe.makeBrush(e,C,E,function(){e.linePickActive(!1)},A,function(O){if(c.focusLayer.render(c.panels,!0),c.pickLayer&&c.pickLayer.render(c.panels,!0),e.linePickActive(!0),t&&t.filterChanged){var V=v.invert,G=O.map(function(Z){return Z.map(V).sort(l1.sorterAsc)}).sort(function(Z,H){return Z[0]-H[0]});t.filterChanged(c.key,h._index,G)}})}}),c}function sUe(e){e.classed(Rl.cn.axisExtentText,!0).attr("text-anchor","middle").style("cursor","default")}function ZVt(){var e=!0,t=!1;return{linePickActive:function(r){return arguments.length?e=!!r:e},contextShown:function(r){return arguments.length?t=!!r:t}}}function lUe(e,t){var r=t==="top"?1:-1,n=e*Math.PI/180,i=Math.sin(n),a=Math.cos(n);return{dir:r,dx:i,dy:a,degrees:e}}function PK(e,t,r){for(var n=t.panels||(t.panels=[]),i=e.data(),a=0;a=V||N>=G)return;var j=z.lineLayer.readPixel(H,G-1-N),re=j[3]!==0,oe=re?j[2]+256*(j[1]+256*j[0]):null,_e={x:H,y:N,clientX:O.clientX,clientY:O.clientY,dataIndex:z.model.key,curveNumber:oe};oe!==v&&(re?i.hover(_e):i.unhover&&i.unhover(_e),v=oe)}}),d.style("opacity",function(z){return z.pick?0:1}),s.style("background","rgba(255, 255, 255, 0)");var b=s.selectAll("."+Rl.cn.parcoords).data(h,tg);b.exit().remove(),b.enter().append("g").classed(Rl.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),b.attr("transform",function(z){return Jm(z.model.translateX,z.model.translateY)});var p=b.selectAll("."+Rl.cn.parcoordsControlView).data($m,tg);p.enter().append("g").classed(Rl.cn.parcoordsControlView,!0),p.attr("transform",function(z){return Jm(z.model.pad.l,z.model.pad.t)});var C=p.selectAll("."+Rl.cn.yAxis).data(function(z){return z.dimensions},tg);C.enter().append("g").classed(Rl.cn.yAxis,!0),p.each(function(z){PK(C,z,u)}),d.each(function(z){if(z.viewModel){!z.lineLayer||i?z.lineLayer=BVt(this,z):z.lineLayer.update(z),(z.key||z.key===0)&&(z.viewModel[z.key]=z.lineLayer);var O=!z.context||i;z.lineLayer.render(z.viewModel.panels,O)}}),C.attr("transform",function(z){return Jm(z.xScale(z.xIndex),0)}),C.call(Bd.behavior.drag().origin(function(z){return z}).on("drag",function(z){var O=z.parent;f.linePickActive(!1),z.x=Math.max(-Rl.overdrag,Math.min(z.model.width+Rl.overdrag,Bd.event.x)),z.canvasX=z.x*z.model.canvasPixelRatio,C.sort(function(V,G){return V.x-G.x}).each(function(V,G){V.xIndex=G,V.x=z===V?V.x:V.xScale(V.xIndex),V.canvasX=V.x*V.model.canvasPixelRatio}),PK(C,O,u),C.filter(function(V){return Math.abs(z.xIndex-V.xIndex)!==0}).attr("transform",function(V){return Jm(V.xScale(V.xIndex),0)}),Bd.select(this).attr("transform",Jm(z.x,0)),C.each(function(V,G,Z){Z===z.parent.key&&(O.dimensions[G]=V)}),O.contextLayer&&O.contextLayer.render(O.panels,!1,!IK(O)),O.focusLayer.render&&O.focusLayer.render(O.panels)}).on("dragend",function(z){var O=z.parent;z.x=z.xScale(z.xIndex),z.canvasX=z.x*z.model.canvasPixelRatio,PK(C,O,u),Bd.select(this).attr("transform",function(V){return Jm(V.x,0)}),O.contextLayer&&O.contextLayer.render(O.panels,!1,!IK(O)),O.focusLayer&&O.focusLayer.render(O.panels),O.pickLayer&&O.pickLayer.render(O.panels,!0),f.linePickActive(!0),i&&i.axesMoved&&i.axesMoved(O.key,O.dimensions.map(function(V){return V.crossfilterDimensionIndex}))})),C.exit().remove();var E=C.selectAll("."+Rl.cn.axisOverlays).data($m,tg);E.enter().append("g").classed(Rl.cn.axisOverlays,!0),E.selectAll("."+Rl.cn.axis).remove();var A=E.selectAll("."+Rl.cn.axis).data($m,tg);A.enter().append("g").classed(Rl.cn.axis,!0),A.each(function(z){var O=z.model.height/z.model.tickDistance,V=z.domainScale,G=V.domain();Bd.select(this).call(Bd.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(O,z.tickFormat).tickValues(z.ordinal?G:null).tickFormat(function(Z){return y5.isOrdinal(z)?Z:gUe(z.model.dimensions[z.visibleIndex],Z)}).scale(V)),qz.font(A.selectAll("text"),z.model.tickFont)}),A.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),A.selectAll("text").style("cursor","default");var L=E.selectAll("."+Rl.cn.axisHeading).data($m,tg);L.enter().append("g").classed(Rl.cn.axisHeading,!0);var _=L.selectAll("."+Rl.cn.axisTitle).data($m,tg);_.enter().append("text").classed(Rl.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",a?"none":"auto"),_.text(function(z){return z.label}).each(function(z){var O=Bd.select(this);qz.font(O,z.model.labelFont),qVt.convertToTspans(O,t)}).attr("transform",function(z){var O=lUe(z.model.labelAngle,z.model.labelSide),V=Rl.axisTitleOffset;return(O.dir>0?"":Jm(0,2*V+z.model.height))+OVt(O.degrees)+Jm(-V*O.dx,-V*O.dy)}).attr("text-anchor",function(z){var O=lUe(z.model.labelAngle,z.model.labelSide),V=Math.abs(O.dx),G=Math.abs(O.dy);return 2*V>G?O.dir*O.dx<0?"start":"end":"middle"});var k=E.selectAll("."+Rl.cn.axisExtent).data($m,tg);k.enter().append("g").classed(Rl.cn.axisExtent,!0);var M=k.selectAll("."+Rl.cn.axisExtentTop).data($m,tg);M.enter().append("g").classed(Rl.cn.axisExtentTop,!0),M.attr("transform",Jm(0,-Rl.axisExtentOffset));var g=M.selectAll("."+Rl.cn.axisExtentTopText).data($m,tg);g.enter().append("text").classed(Rl.cn.axisExtentTopText,!0).call(sUe),g.text(function(z){return uUe(z,!0)}).each(function(z){qz.font(Bd.select(this),z.model.rangeFont)});var P=k.selectAll("."+Rl.cn.axisExtentBottom).data($m,tg);P.enter().append("g").classed(Rl.cn.axisExtentBottom,!0),P.attr("transform",function(z){return Jm(0,z.model.height+Rl.axisExtentOffset)});var T=P.selectAll("."+Rl.cn.axisExtentBottomText).data($m,tg);T.enter().append("text").classed(Rl.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(sUe),T.text(function(z){return uUe(z,!1)}).each(function(z){qz.font(Bd.select(this),z.model.rangeFont)}),vUe.ensureAxisBrush(E,c,t)}});var zK=ye((FK,wUe)=>{"use strict";var KVt=yUe(),JVt=wz(),_Ue=CK().isVisible,bUe={};function xUe(e,t,r){var n=t.indexOf(r),i=e.indexOf(n);return i===-1&&(i+=t.length),i}function $Vt(e,t){return function(n,i){return xUe(e,t,n)-xUe(e,t,i)}}var FK=wUe.exports=function(t,r){var n=t._fullLayout,i=JVt(t,[],bUe);if(i){var a={},o={},s={},l={},u=n._size;r.forEach(function(v,x){var b=v[0].trace;s[x]=b.index;var p=l[x]=b.index;a[x]=t.data[p].dimensions,o[x]=t.data[p].dimensions.slice()});var c=function(v,x,b){var p=o[v][x],C=b.map(function(M){return M.slice()}),E="dimensions["+x+"].constraintrange",A=n._tracePreGUI[t._fullData[s[v]]._fullInput.uid];if(A[E]===void 0){var L=p.constraintrange;A[E]=L||null}var _=t._fullData[s[v]].dimensions[x];C.length?(C.length===1&&(C=C[0]),p.constraintrange=C,_.constraintrange=C.slice(),C=[C]):(delete p.constraintrange,delete _.constraintrange,C=null);var k={};k[E]=C,t.emit("plotly_restyle",[k,[l[v]]])},f=function(v){t.emit("plotly_hover",v)},h=function(v){t.emit("plotly_unhover",v)},d=function(v,x){var b=$Vt(x,o[v].filter(_Ue));a[v].sort(b),o[v].filter(function(p){return!_Ue(p)}).sort(function(p){return o[v].indexOf(p)}).forEach(function(p){a[v].splice(a[v].indexOf(p),1),a[v].splice(o[v].indexOf(p),0,p)}),t.emit("plotly_restyle",[{dimensions:[a[v]]},[l[v]]])};KVt(t,r,{width:u.w,height:u.h,margin:{t:u.t,r:u.r,b:u.b,l:u.l}},{filterChanged:c,hover:f,unhover:h,axesMoved:d})}};FK.reglPrecompiled=bUe});var AUe=ye(kC=>{"use strict";var TUe=Oa(),QVt=Id().getModuleCalcData,eGt=zK(),tGt=Wp();kC.name="parcoords";kC.plot=function(e){var t=QVt(e.calcdata,"parcoords")[0];t.length&&eGt(e,t)};kC.clean=function(e,t,r,n){var i=n._has&&n._has("parcoords"),a=t._has&&t._has("parcoords");i&&!a&&(n._paperdiv.selectAll(".parcoords").remove(),n._glimages.selectAll("*").remove())};kC.toSVG=function(e){var t=e._fullLayout._glimages,r=TUe.select(e).selectAll(".svg-container"),n=r.filter(function(a,o){return o===r.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function i(){var a=this,o=a.toDataURL("image/png"),s=t.append("svg:image");s.attr({xmlns:tGt.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}n.each(i),window.setTimeout(function(){TUe.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var MUe=ye((W1r,SUe)=>{"use strict";SUe.exports={attributes:xK(),supplyDefaults:BNe(),calc:UNe(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:AUe(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var kUe=ye((X1r,CUe)=>{"use strict";var EUe=MUe();EUe.plot=zK();CUe.exports=EUe});var PUe=ye((Z1r,LUe)=>{"use strict";LUe.exports=kUe()});var OK=ye((Y1r,FUe)=>{"use strict";var RUe=Ao().extendFlat,rGt=Vl(),IUe=ec(),iGt=Tu(),DUe=rs().hovertemplateAttrs,nGt=kc().attributes,aGt=RUe({editType:"calc"},iGt("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:DUe({editType:"plot",arrayOk:!1},{keys:["count","probability"]})});FUe.exports={domain:nGt({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:RUe({},rGt.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:DUe({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),arrangement:{valType:"enumerated",values:["perpendicular","freeform","fixed"],dflt:"perpendicular",editType:"plot"},bundlecolors:{valType:"boolean",dflt:!0,editType:"plot"},sortpaths:{valType:"enumerated",values:["forward","backward"],dflt:"forward",editType:"plot"},labelfont:IUe({editType:"calc"}),tickfont:IUe({autoShadowDflt:!0,editType:"calc"}),dimensions:{_isLinkedToArray:"dimension",label:{valType:"string",editType:"calc"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},values:{valType:"data_array",dflt:[],editType:"calc"},displayindex:{valType:"integer",editType:"calc"},editType:"calc",visible:{valType:"boolean",dflt:!0,editType:"calc"}},line:aGt,counts:{valType:"number",min:0,dflt:1,arrayOk:!0,editType:"calc"},customdata:void 0,hoverlabel:void 0,ids:void 0,legend:void 0,legendgroup:void 0,legendrank:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}});var qUe=ye((K1r,OUe)=>{"use strict";var _5=Dr(),oGt=Dv().hasColorscale,sGt=Jh(),lGt=kc().defaults,uGt=Yd(),zUe=OK(),cGt=Az(),fGt=vv().isTypedArraySpec;function hGt(e,t,r,n,i){i("line.shape"),i("line.hovertemplate");var a=i("line.color",n.colorway[0]);if(oGt(e,"line")&&_5.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),sGt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function dGt(e,t){function r(u,c){return _5.coerce(e,t,zUe.dimensions,u,c)}var n=r("values"),i=r("visible");if(n&&n.length||(i=t.visible=!1),i){r("label"),r("displayindex",t._index);var a=e.categoryarray,o=_5.isArrayOrTypedArray(a)&&a.length>0||fGt(a),s;o&&(s="array");var l=r("categoryorder",s);l==="array"?(r("categoryarray"),r("ticktext")):(delete e.categoryarray,delete e.ticktext),!o&&l==="array"&&(t.categoryorder="trace")}}OUe.exports=function(t,r,n,i){function a(u,c){return _5.coerce(t,r,zUe,u,c)}var o=uGt(t,r,{name:"dimensions",handleItemDefaults:dGt}),s=hGt(t,r,n,i,a);lGt(r,i,a),(!Array.isArray(o)||!o.length)&&(r.visible=!1),cGt(r,o,"values",s),a("hoveron"),a("hovertemplate"),a("arrangement"),a("bundlecolors"),a("sortpaths"),a("counts");var l=i.font;_5.coerceFont(a,"labelfont",l,{overrideDflt:{size:Math.round(l.size)}}),_5.coerceFont(a,"tickfont",l,{autoShadowDflt:!0,overrideDflt:{size:Math.round(l.size/1.2)}})}});var NUe=ye((J1r,BUe)=>{"use strict";var vGt=Km().wrap,pGt=Dv().hasColorscale,gGt=Fv(),mGt=ZO(),yGt=So(),LC=Dr(),_Gt=Eo();BUe.exports=function(t,r){var n=LC.filterVisible(r.dimensions);if(n.length===0)return[];var i=n.map(function(g){var P;if(g.categoryorder==="trace")P=null;else if(g.categoryorder==="array")P=g.categoryarray;else{P=mGt(g.values);for(var T=!0,z=0;z=e.length||t[e[r]]!==void 0)return!1;t[e[r]]=!0}return!0}});var YUe=ye(($1r,ZUe)=>{"use strict";var Dl=Oa(),LGt=(R2(),B1(I2)).interpolateNumber,PGt=NP(),RC=df(),yx=Dr(),PC=yx.strTranslate,UUe=So(),qK=cd(),IGt=iu();function RGt(e,t,r,n){var i=t._context.staticPlot,a=e.map(ZGt.bind(0,t,r)),o=n.selectAll("g.parcatslayer").data([null]);o.enter().append("g").attr("class","parcatslayer").style("pointer-events",i?"none":"all");var s=o.selectAll("g.trace.parcats").data(a,u1),l=s.enter().append("g").attr("class","trace parcats");s.attr("transform",function(C){return PC(C.x,C.y)}),l.append("g").attr("class","paths");var u=s.select("g.paths"),c=u.selectAll("path.path").data(function(C){return C.paths},u1);c.attr("fill",function(C){return C.model.color});var f=c.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(C){return C.model.color}).attr("fill-opacity",0);UK(f),c.attr("d",function(C){return C.svgD}),f.empty()||c.sort(BK),c.exit().remove(),c.on("mouseover",DGt).on("mouseout",FGt).on("click",zGt),l.append("g").attr("class","dimensions");var h=s.select("g.dimensions"),d=h.selectAll("g.dimension").data(function(C){return C.dimensions},u1);d.enter().append("g").attr("class","dimension"),d.attr("transform",function(C){return PC(C.x,0)}),d.exit().remove();var v=d.selectAll("g.category").data(function(C){return C.categories},u1),x=v.enter().append("g").attr("class","category");v.attr("transform",function(C){return PC(0,C.y)}),x.append("rect").attr("class","catrect").attr("pointer-events","none"),v.select("rect.catrect").attr("fill","none").attr("width",function(C){return C.width}).attr("height",function(C){return C.height}),GUe(x);var b=v.selectAll("rect.bandrect").data(function(C){return C.bands},u1);b.each(function(){yx.raiseToTop(this)}),b.attr("fill",function(C){return C.color});var p=b.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(C){return C.color}).attr("fill-opacity",0);b.attr("fill",function(C){return C.color}).attr("width",function(C){return C.width}).attr("height",function(C){return C.height}).attr("y",function(C){return C.y}).attr("cursor",function(C){return C.parcatsViewModel.arrangement==="fixed"?"default":C.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),GK(p),b.exit().remove(),x.append("text").attr("class","catlabel").attr("pointer-events","none"),v.select("text.catlabel").attr("text-anchor",function(C){return IC(C)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(C){return IC(C)?C.width+5:-5}).attr("y",function(C){return C.height/2}).text(function(C){return C.model.categoryLabel}).each(function(C){UUe.font(Dl.select(this),C.parcatsViewModel.categorylabelfont),IGt.convertToTspans(Dl.select(this),t)}),x.append("text").attr("class","dimlabel"),v.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(C){return C.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(C){return C.width/2}).attr("y",-5).text(function(C,E){return E===0?C.parcatsViewModel.model.dimensions[C.model.dimensionInd].dimensionLabel:null}).each(function(C){UUe.font(Dl.select(this),C.parcatsViewModel.labelfont)}),v.selectAll("rect.bandrect").on("mouseover",GGt).on("mouseout",HGt),v.exit().remove(),d.call(Dl.behavior.drag().origin(function(C){return{x:C.x,y:0}}).on("dragstart",jGt).on("drag",WGt).on("dragend",XGt)),s.each(function(C){C.traceSelection=Dl.select(this),C.pathSelection=Dl.select(this).selectAll("g.paths").selectAll("path.path"),C.dimensionSelection=Dl.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),s.exit().remove()}ZUe.exports=function(e,t,r,n){RGt(r,e,n,t)};function u1(e){return e.key}function IC(e){var t=e.parcatsViewModel.dimensions.length,r=e.parcatsViewModel.dimensions[t-1].model.dimensionInd;return e.model.dimensionInd===r}function BK(e,t){return e.model.rawColor>t.model.rawColor?1:e.model.rawColor"),_=Dl.mouse(i)[0];RC.loneHover({trace:a,x:v-s.left+l.left,y:x-s.top+l.top,text:L,color:e.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:b,idealAlign:_1&&u.displayInd===l.dimensions.length-1?(h=o.left,d="left"):(h=o.left+o.width,d="right");var v=s.model.count,x=s.model.categoryLabel,b=v/s.parcatsViewModel.model.count,p={countLabel:v,categoryLabel:x,probabilityLabel:b.toFixed(3)},C=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&C.push(["Count:",p.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&C.push(["P("+p.categoryLabel+"):",p.probabilityLabel].join(" "));var E=C.join("
");return{trace:c,x:n*(h-t.left),y:i*(f-t.top),text:E,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:d,hovertemplate:c.hovertemplate,hovertemplateLabels:p,eventData:[{data:c._input,fullData:c,count:v,category:x,probability:b}]}}function UGt(e,t,r){var n=[];return Dl.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var i=this;n.push(HUe(e,t,i))}),n}function VGt(e,t,r){e._fullLayout._calcInverseTransform(e);var n=e._fullLayout._invScaleX,i=e._fullLayout._invScaleY,a=r.getBoundingClientRect(),o=Dl.select(r).datum(),s=o.categoryViewModel,l=s.parcatsViewModel,u=l.model.dimensions[s.model.dimensionInd],c=l.trace,f=a.y+a.height/2,h,d;l.dimensions.length>1&&u.displayInd===l.dimensions.length-1?(h=a.left,d="left"):(h=a.left+a.width,d="right");var v=s.model.categoryLabel,x=o.parcatsViewModel.model.count,b=0;o.categoryViewModel.bands.forEach(function(P){P.color===o.color&&(b+=P.count)});var p=s.model.count,C=0;l.pathSelection.each(function(P){P.model.color===o.color&&(C+=P.model.count)});var E=b/x,A=b/C,L=b/p,_={countLabel:b,categoryLabel:v,probabilityLabel:E.toFixed(3)},k=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&k.push(["Count:",_.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(k.push("P(color \u2229 "+v+"): "+_.probabilityLabel),k.push("P("+v+" | color): "+A.toFixed(3)),k.push("P(color | "+v+"): "+L.toFixed(3)));var M=k.join("
"),g=qK.mostReadable(o.color,["black","white"]);return{trace:c,x:n*(h-t.left),y:i*(f-t.top),text:M,color:o.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:g,fontSize:10,idealAlign:d,hovertemplate:c.hovertemplate,hovertemplateLabels:_,eventData:[{data:c._input,fullData:c,category:v,count:x,probability:E,categorycount:p,colorcount:C,bandcolorcount:b}]}}function GGt(e){if(!e.parcatsViewModel.dragDimension&&e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var t=Dl.mouse(this)[1];if(t<-1)return;var r=e.parcatsViewModel.graphDiv,n=r._fullLayout,i=n._paperdiv.node().getBoundingClientRect(),a=e.parcatsViewModel.hoveron,o=this;if(a==="color"?(NGt(o),jK(o,"plotly_hover",Dl.event)):(BGt(o),HK(o,"plotly_hover",Dl.event)),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var s;a==="category"?s=HUe(r,i,o):a==="color"?s=VGt(r,i,o):a==="dimension"&&(s=UGt(r,i,o)),s&&RC.loneHover(s,{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:r})}}}function HGt(e){var t=e.parcatsViewModel;if(!t.dragDimension&&(UK(t.pathSelection),GUe(t.dimensionSelection.selectAll("g.category")),GK(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),RC.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(BK),t.hoverinfoItems.indexOf("skip")===-1)){var r=e.parcatsViewModel.hoveron,n=this;r==="color"?jK(n,"plotly_unhover",Dl.event):HK(n,"plotly_unhover",Dl.event)}}function jGt(e){e.parcatsViewModel.arrangement!=="fixed"&&(e.dragDimensionDisplayInd=e.model.displayInd,e.initialDragDimensionDisplayInds=e.parcatsViewModel.model.dimensions.map(function(t){return t.displayInd}),e.dragHasMoved=!1,e.dragCategoryDisplayInd=null,Dl.select(this).selectAll("g.category").select("rect.catrect").each(function(t){var r=Dl.mouse(this)[0],n=Dl.mouse(this)[1];-2<=r&&r<=t.width+2&&-2<=n&&n<=t.height+2&&(e.dragCategoryDisplayInd=t.model.displayInd,e.initialDragCategoryDisplayInds=e.model.categories.map(function(i){return i.displayInd}),t.model.dragY=t.y,yx.raiseToTop(this.parentNode),Dl.select(this.parentNode).selectAll("rect.bandrect").each(function(i){i.yc.y+c.height/2&&(a.model.displayInd=c.model.displayInd,c.model.displayInd=s),e.dragCategoryDisplayInd=a.model.displayInd}if(e.dragCategoryDisplayInd===null||e.parcatsViewModel.arrangement==="freeform"){i.model.dragX=Dl.event.x;var f=e.parcatsViewModel.dimensions[r],h=e.parcatsViewModel.dimensions[n];f!==void 0&&i.model.dragXh.x&&(i.model.displayInd=h.model.displayInd,h.model.displayInd=e.dragDimensionDisplayInd),e.dragDimensionDisplayInd=i.model.displayInd}XK(e.parcatsViewModel),WK(e.parcatsViewModel),XUe(e.parcatsViewModel),WUe(e.parcatsViewModel)}}function XGt(e){if(e.parcatsViewModel.arrangement!=="fixed"&&e.dragDimensionDisplayInd!==null){Dl.select(this).selectAll("text").attr("font-weight","normal");var t={},r=jUe(e.parcatsViewModel),n=e.parcatsViewModel.model.dimensions.map(function(h){return h.displayInd}),i=e.initialDragDimensionDisplayInds.some(function(h,d){return h!==n[d]});i&&n.forEach(function(h,d){var v=e.parcatsViewModel.model.dimensions[d].containerInd;t["dimensions["+v+"].displayindex"]=h});var a=!1;if(e.dragCategoryDisplayInd!==null){var o=e.model.categories.map(function(h){return h.displayInd});if(a=e.initialDragCategoryDisplayInds.some(function(h,d){return h!==o[d]}),a){var s=e.model.categories.slice().sort(function(h,d){return h.displayInd-d.displayInd}),l=s.map(function(h){return h.categoryValue}),u=s.map(function(h){return h.categoryLabel});t["dimensions["+e.model.containerInd+"].categoryarray"]=[l],t["dimensions["+e.model.containerInd+"].ticktext"]=[u],t["dimensions["+e.model.containerInd+"].categoryorder"]="array"}}if(e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!e.dragHasMoved&&e.potentialClickBand&&(e.parcatsViewModel.hoveron==="color"?jK(e.potentialClickBand,"plotly_click",Dl.event.sourceEvent):HK(e.potentialClickBand,"plotly_click",Dl.event.sourceEvent)),e.model.dragX=null,e.dragCategoryDisplayInd!==null){var c=e.parcatsViewModel.dimensions[e.dragDimensionDisplayInd].categories[e.dragCategoryDisplayInd];c.model.dragY=null,e.dragCategoryDisplayInd=null}e.dragDimensionDisplayInd=null,e.parcatsViewModel.dragDimension=null,e.dragHasMoved=null,e.potentialClickBand=null,XK(e.parcatsViewModel),WK(e.parcatsViewModel);var f=Dl.transition().duration(300).ease("cubic-in-out");f.each(function(){XUe(e.parcatsViewModel,!0),WUe(e.parcatsViewModel,!0)}).each("end",function(){(i||a)&&PGt.restyle(e.parcatsViewModel.graphDiv,t,[r])})}}function jUe(e){for(var t,r=e.graphDiv._fullData,n=0;n=0;l--)u+="C"+o[l]+","+(t[l+1]+n)+" "+a[l]+","+(t[l]+n)+" "+(e[l]+r[l])+","+(t[l]+n),u+="l-"+r[l]+",0 ";return u+="Z",u}function WK(e){var t=e.dimensions,r=e.model,n=t.map(function(O){return O.categories.map(function(V){return V.y})}),i=e.model.dimensions.map(function(O){return O.categories.map(function(V){return V.displayInd})}),a=e.model.dimensions.map(function(O){return O.displayInd}),o=e.dimensions.map(function(O){return O.model.dimensionInd}),s=t.map(function(O){return O.x}),l=t.map(function(O){return O.width}),u=[];for(var c in r.paths)r.paths.hasOwnProperty(c)&&u.push(r.paths[c]);function f(O){var V=O.categoryInds.map(function(Z,H){return i[H][Z]}),G=o.map(function(Z){return V[Z]});return G}u.sort(function(O,V){var G=f(O),Z=f(V);return e.sortpaths==="backward"&&(G.reverse(),Z.reverse()),G.push(O.valueInds[0]),Z.push(V.valueInds[0]),e.bundlecolors&&(G.unshift(O.rawColor),Z.unshift(V.rawColor)),GZ?1:0});for(var h=new Array(u.length),d=t[0].model.count,v=t[0].categories.map(function(O){return O.height}).reduce(function(O,V){return O+V}),x=0;x0?p=v*(b.count/d):p=0;for(var C=new Array(n.length),E=0;E1?o=(e.width-2*r-n)/(i-1):o=0,s=r,l=s+o*a;var u=[],c=e.model.maxCats,f=t.categories.length,h=8,d=t.count,v=e.height-h*(c-1),x,b,p,C,E,A=(c-f)*h/2,L=t.categories.map(function(_){return{displayInd:_.displayInd,categoryInd:_.categoryInd}});for(L.sort(function(_,k){return _.displayInd-k.displayInd}),E=0;E0?x=b.count/d*v:x=0,p={key:b.valueInds[0],model:b,width:n,height:x,y:b.dragY!==null?b.dragY:A,bands:[],parcatsViewModel:e},A=A+x+h,u.push(p);return{key:t.dimensionInd,x:t.dragX!==null?t.dragX:l,y:0,width:n,model:t,categories:u,parcatsViewModel:e,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}});var ZK=ye((Q1r,KUe)=>{"use strict";var KGt=YUe();KUe.exports=function(t,r,n,i){var a=t._fullLayout,o=a._paper,s=a._size;KGt(t,o,r,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},n,i)}});var $Ue=ye(Uz=>{"use strict";var JGt=Id().getModuleCalcData,$Gt=ZK(),JUe="parcats";Uz.name=JUe;Uz.plot=function(e,t,r,n){var i=JGt(e.calcdata,JUe);if(i.length){var a=i[0];$Gt(e,a,r,n)}};Uz.clean=function(e,t,r,n){var i=n._has&&n._has("parcats"),a=t._has&&t._has("parcats");i&&!a&&n._paperdiv.selectAll(".parcats").remove()}});var eVe=ye((t_r,QUe)=>{"use strict";QUe.exports={attributes:OK(),supplyDefaults:qUe(),calc:NUe(),plot:ZK(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:$Ue(),categories:["noOpacity"],meta:{}}});var rVe=ye((r_r,tVe)=>{"use strict";tVe.exports=eVe()});var c1=ye((i_r,uVe)=>{"use strict";var QGt=Y1(),iVe="1.13.4",sVe='\xA9
OpenStreetMap contributors',nVe=['\xA9 Carto',sVe].join(" "),aVe=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),eHt=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),lVe={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:sVe,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:nVe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:nVe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:aVe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:aVe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:eHt,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},oVe=QGt(lVe);uVe.exports={requiredVersion:iVe,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:lVe,styleValuesNonMapbox:oVe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+iVe+"."].join(` +`),Yr;if(xt&&(Yr=Oc(Mr),xt[Yr]))return xt[Yr].apply(null,Hr);var xi=Function.apply(null,Ir.concat(Mr));return xt&&(xt[Yr]=xi),xi.apply(null,Hr)}return{global:Mi,link:Vr,block:mi,proc:Qi,scope:Ni,cond:Oi,compile:ji}}var ka="xyzw".split(""),Ra=5121,La=1,Na=2,Yn=0,zn=1,Ka=2,bo=3,Xo=4,Ms=5,os=6,Ts="dither",Ho="blend.enable",yl="blend.color",Xs="blend.equation",Ps="blend.func",va="depth.enable",no="depth.func",_s="depth.range",is="depth.mask",$l="colorMask",ku="cull.enable",Yu="cull.face",Nc="frontFace",gu="lineWidth",Uc="polygonOffset.enable",xu="polygonOffset.offset",Ac="sample.alpha",Ua="sample.enable",oo="sample.coverage",Vc="stencil.enable",hc="stencil.mask",Ku="stencil.func",ue="stencil.opFront",w="stencil.opBack",B="scissor.enable",Q="scissor.box",ee="viewport",le="profile",qe="framebuffer",Xe="vert",ot="frag",Tt="elements",Kt="primitive",Jt="count",xr="offset",Pr="instances",ve="vao",be="Width",Re="Height",Be=qe+be,tt=qe+Re,We=ee+be,it=ee+Re,Dt="drawingBuffer",Ht=Dt+be,rr=Dt+Re,dr=[Ps,Xs,Ku,ue,w,oo,ee,Q,xu],Sr=34962,Or=34963,jr=2884,ii=3042,Li=3024,un=2960,sn=2929,In=3089,Kn=32823,Aa=32926,fa=32928,$a=5126,ko=35664,Qa=35665,mo=35666,Bo=5124,Is=35667,As=35668,wo=35669,To=35670,dl=35671,Nl=35672,Lu=35673,ou=35674,$s=35675,Ql=35676,dc=35678,Tl=35680,Al=4,X=1028,se=1029,Te=2304,Ne=2305,He=32775,Ze=32776,Ct=519,nt=7680,jt=0,gr=1,yr=32774,Gr=513,qr=36160,_i=36064,bi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Xr={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ni={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},gi={cw:Te,ccw:Ne};function Pi(Ee){return Array.isArray(Ee)||Wr(Ee)||Ur(Ee)}function Ai(Ee){return Ee.sort(function(xt,zt){return xt===ee?-1:zt===ee?1:xt=1,Ir>=2,xt)}else if(zt===Xo){var Hr=Ee.data;return new ti(Hr.thisDep,Hr.contextDep,Hr.propDep,xt)}else{if(zt===Ms)return new ti(!1,!1,!1,xt);if(zt===os){for(var Br=!1,Vr=!1,mi=!1,Ni=0;Ni=1&&(Vr=!0),Mi>=2&&(mi=!0)}else Oi.type===Xo&&(Br=Br||Oi.data.thisDep,Vr=Vr||Oi.data.contextDep,mi=mi||Oi.data.propDep)}return new ti(Br,Vr,mi,xt)}else return new ti(zt===bo,zt===Ka,zt===zn,xt)}}var ia=new ti(!1,!1,!1,function(){});function Ea(Ee,xt,zt,Ir,Hr,Br,Vr,mi,Ni,Oi,Mi,Hn,Qi,ji,si,Mr){var Yr=Oi.Record,xi={add:32774,subtract:32778,"reverse subtract":32779};zt.ext_blend_minmax&&(xi.min=He,xi.max=Ze);var Ii=zt.angle_instanced_arrays,ci=zt.webgl_draw_buffers,nn=zt.oes_vertex_array_object,Xi={dirty:!0,profile:Mr.profile},qn={},vi=[],li={},mn={};function Ki(Ve){return Ve.replace(".","_")}function Ui(Ve,et,at){var kt=Ki(Ve);vi.push(Ve),qn[kt]=Xi[kt]=!!at,li[kt]=et}function Bi(Ve,et,at){var kt=Ki(Ve);vi.push(Ve),Array.isArray(at)?(Xi[kt]=at.slice(),qn[kt]=at.slice()):Xi[kt]=qn[kt]=at,mn[kt]=et}function vn(Ve){return!!isNaN(Ve)}Ui(Ts,Li),Ui(Ho,ii),Bi(yl,"blendColor",[0,0,0,0]),Bi(Xs,"blendEquationSeparate",[yr,yr]),Bi(Ps,"blendFuncSeparate",[gr,jt,gr,jt]),Ui(va,sn,!0),Bi(no,"depthFunc",Gr),Bi(_s,"depthRange",[0,1]),Bi(is,"depthMask",!0),Bi($l,$l,[!0,!0,!0,!0]),Ui(ku,jr),Bi(Yu,"cullFace",se),Bi(Nc,Nc,Ne),Bi(gu,gu,1),Ui(Uc,Kn),Bi(xu,"polygonOffset",[0,0]),Ui(Ac,Aa),Ui(Ua,fa),Bi(oo,"sampleCoverage",[1,!1]),Ui(Vc,un),Bi(hc,"stencilMask",-1),Bi(Ku,"stencilFunc",[Ct,0,-1]),Bi(ue,"stencilOpSeparate",[X,nt,nt,nt]),Bi(w,"stencilOpSeparate",[se,nt,nt,nt]),Ui(B,In),Bi(Q,"scissor",[0,0,Ee.drawingBufferWidth,Ee.drawingBufferHeight]),Bi(ee,ee,[0,0,Ee.drawingBufferWidth,Ee.drawingBufferHeight]);var Un={gl:Ee,context:Qi,strings:xt,next:qn,current:Xi,draw:Hn,elements:Br,buffer:Hr,shader:Mi,attributes:Oi.state,vao:Oi,uniforms:Ni,framebuffer:mi,extensions:zt,timer:ji,isBufferArgs:Pi},na={primTypes:Mn,compareFuncs:Xr,blendFuncs:bi,blendEquations:xi,stencilOps:ni,glTypes:Hi,orientationType:gi};ci&&(na.backBuffer=[se],na.drawBuffer=M(Ir.maxDrawbuffers,function(Ve){return Ve===0?[0]:M(Ve,function(et){return _i+et})}));var Yi=0;function Ln(){var Ve=$n({cache:si}),et=Ve.link,at=Ve.global;Ve.id=Yi++,Ve.batchId="0";var kt=et(Un),Ot=Ve.shared={props:"a0"};Object.keys(Un).forEach(function(Pt){Ot[Pt]=at.def(kt,".",Pt)});var It=Ve.next={},Bt=Ve.current={};Object.keys(mn).forEach(function(Pt){Array.isArray(Xi[Pt])&&(It[Pt]=at.def(Ot.next,".",Pt),Bt[Pt]=at.def(Ot.current,".",Pt))});var Rt=Ve.constants={};Object.keys(na).forEach(function(Pt){Rt[Pt]=at.def(JSON.stringify(na[Pt]))}),Ve.invoke=function(Pt,ht){switch(ht.type){case Yn:var cr=["this",Ot.context,Ot.props,Ve.batchId];return Pt.def(et(ht.data),".call(",cr.slice(0,Math.max(ht.data.length+1,4)),")");case zn:return Pt.def(Ot.props,ht.data);case Ka:return Pt.def(Ot.context,ht.data);case bo:return Pt.def("this",ht.data);case Xo:return ht.data.append(Ve,Pt),ht.data.ref;case Ms:return ht.data.toString();case os:return ht.data.map(function(br){return Ve.invoke(Pt,br)})}},Ve.attribCache={};var mt={};return Ve.scopeAttrib=function(Pt){var ht=xt.id(Pt);if(ht in mt)return mt[ht];var cr=Oi.scope[ht];cr||(cr=Oi.scope[ht]=new Yr);var br=mt[ht]=et(cr);return br},Ve}function ra(Ve){var et=Ve.static,at=Ve.dynamic,kt;if(le in et){var Ot=!!et[le];kt=Cn(function(Bt,Rt){return Ot}),kt.enable=Ot}else if(le in at){var It=at[le];kt=Nn(It,function(Bt,Rt){return Bt.invoke(Rt,It)})}return kt}function oa(Ve,et){var at=Ve.static,kt=Ve.dynamic;if(qe in at){var Ot=at[qe];return Ot?(Ot=mi.getFramebuffer(Ot),Cn(function(Bt,Rt){var mt=Bt.link(Ot),Pt=Bt.shared;Rt.set(Pt.framebuffer,".next",mt);var ht=Pt.context;return Rt.set(ht,"."+Be,mt+".width"),Rt.set(ht,"."+tt,mt+".height"),mt})):Cn(function(Bt,Rt){var mt=Bt.shared;Rt.set(mt.framebuffer,".next","null");var Pt=mt.context;return Rt.set(Pt,"."+Be,Pt+"."+Ht),Rt.set(Pt,"."+tt,Pt+"."+rr),"null"})}else if(qe in kt){var It=kt[qe];return Nn(It,function(Bt,Rt){var mt=Bt.invoke(Rt,It),Pt=Bt.shared,ht=Pt.framebuffer,cr=Rt.def(ht,".getFramebuffer(",mt,")");Rt.set(ht,".next",cr);var br=Pt.context;return Rt.set(br,"."+Be,cr+"?"+cr+".width:"+br+"."+Ht),Rt.set(br,"."+tt,cr+"?"+cr+".height:"+br+"."+rr),cr})}else return null}function wa(Ve,et,at){var kt=Ve.static,Ot=Ve.dynamic;function It(mt){if(mt in kt){var Pt=kt[mt],ht=!0,cr=Pt.x|0,br=Pt.y|0,Nr,Ri;return"width"in Pt?Nr=Pt.width|0:ht=!1,"height"in Pt?Ri=Pt.height|0:ht=!1,new ti(!ht&&et&&et.thisDep,!ht&&et&&et.contextDep,!ht&&et&&et.propDep,function(gn,tn){var Ci=gn.shared.context,qi=Nr;"width"in Pt||(qi=tn.def(Ci,".",Be,"-",cr));var Vi=Ri;return"height"in Pt||(Vi=tn.def(Ci,".",tt,"-",br)),[cr,br,qi,Vi]})}else if(mt in Ot){var hi=Ot[mt],wi=Nn(hi,function(gn,tn){var Ci=gn.invoke(tn,hi),qi=gn.shared.context,Vi=tn.def(Ci,".x|0"),on=tn.def(Ci,".y|0"),On=tn.def('"width" in ',Ci,"?",Ci,".width|0:","(",qi,".",Be,"-",Vi,")"),Ja=tn.def('"height" in ',Ci,"?",Ci,".height|0:","(",qi,".",tt,"-",on,")");return[Vi,on,On,Ja]});return et&&(wi.thisDep=wi.thisDep||et.thisDep,wi.contextDep=wi.contextDep||et.contextDep,wi.propDep=wi.propDep||et.propDep),wi}else return et?new ti(et.thisDep,et.contextDep,et.propDep,function(gn,tn){var Ci=gn.shared.context;return[0,0,tn.def(Ci,".",Be),tn.def(Ci,".",tt)]}):null}var Bt=It(ee);if(Bt){var Rt=Bt;Bt=new ti(Bt.thisDep,Bt.contextDep,Bt.propDep,function(mt,Pt){var ht=Rt.append(mt,Pt),cr=mt.shared.context;return Pt.set(cr,"."+We,ht[2]),Pt.set(cr,"."+it,ht[3]),ht})}return{viewport:Bt,scissor_box:It(Q)}}function ns(Ve,et){var at=Ve.static,kt=typeof at[ot]=="string"&&typeof at[Xe]=="string";if(kt){if(Object.keys(et.dynamic).length>0)return null;var Ot=et.static,It=Object.keys(Ot);if(It.length>0&&typeof Ot[It[0]]=="number"){for(var Bt=[],Rt=0;Rt"+Vi+"?"+ht+".constant["+Vi+"]:0;"}).join(""),"}}else{","if(",Nr,"(",ht,".buffer)){",gn,"=",Ri,".createStream(",Sr,",",ht,".buffer);","}else{",gn,"=",Ri,".getBuffer(",ht,".buffer);","}",tn,'="type" in ',ht,"?",br.glTypes,"[",ht,".type]:",gn,".dtype;",hi.normalized,"=!!",ht,".normalized;");function Ci(qi){Pt(hi[qi],"=",ht,".",qi,"|0;")}return Ci("size"),Ci("offset"),Ci("stride"),Ci("divisor"),Pt("}}"),Pt.exit("if(",hi.isStream,"){",Ri,".destroyStream(",gn,");","}"),hi}Ot[It]=Nn(Bt,Rt)}),Ot}function ol(Ve){var et=Ve.static,at=Ve.dynamic,kt={};return Object.keys(et).forEach(function(Ot){var It=et[Ot];kt[Ot]=Cn(function(Bt,Rt){return typeof It=="number"||typeof It=="boolean"?""+It:Bt.link(It)})}),Object.keys(at).forEach(function(Ot){var It=at[Ot];kt[Ot]=Nn(It,function(Bt,Rt){return Bt.invoke(Rt,It)})}),kt}function Ul(Ve,et,at,kt,Ot){var It=Ve.static,Bt=Ve.dynamic,Rt=ns(Ve,et),mt=oa(Ve,Ot),Pt=wa(Ve,mt,Ot),ht=Va(Ve,Ot),cr=Ml(Ve,Ot),br=Ys(Ve,Ot,Rt);function Nr(Ci){var qi=Pt[Ci];qi&&(cr[Ci]=qi)}Nr(ee),Nr(Ki(Q));var Ri=Object.keys(cr).length>0,hi={framebuffer:mt,draw:ht,shader:br,state:cr,dirty:Ri,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(hi.profile=ra(Ve,Ot),hi.uniforms=zo(at,Ot),hi.drawVAO=hi.scopeVAO=ht.vao,!hi.drawVAO&&br.program&&!Rt&&zt.angle_instanced_arrays&&ht.static.elements){var wi=!0,gn=br.program.attributes.map(function(Ci){var qi=et.static[Ci];return wi=wi&&!!qi,qi});if(wi&&gn.length>0){var tn=Oi.getVAO(Oi.createVAO({attributes:gn,elements:ht.static.elements}));hi.drawVAO=new ti(null,null,null,function(Ci,qi){return Ci.link(tn)}),hi.useVAO=!0}}return Rt?hi.useVAO=!0:hi.attributes=el(et,Ot),hi.context=ol(kt,Ot),hi}function ls(Ve,et,at){var kt=Ve.shared,Ot=kt.context,It=Ve.scope();Object.keys(at).forEach(function(Bt){et.save(Ot,"."+Bt);var Rt=at[Bt],mt=Rt.append(Ve,et);Array.isArray(mt)?It(Ot,".",Bt,"=[",mt.join(),"];"):It(Ot,".",Bt,"=",mt,";")}),et(It)}function Gs(Ve,et,at,kt){var Ot=Ve.shared,It=Ot.gl,Bt=Ot.framebuffer,Rt;ci&&(Rt=et.def(Ot.extensions,".webgl_draw_buffers"));var mt=Ve.constants,Pt=mt.drawBuffer,ht=mt.backBuffer,cr;at?cr=at.append(Ve,et):cr=et.def(Bt,".next"),kt||et("if(",cr,"!==",Bt,".cur){"),et("if(",cr,"){",It,".bindFramebuffer(",qr,",",cr,".framebuffer);"),ci&&et(Rt,".drawBuffersWEBGL(",Pt,"[",cr,".colorAttachments.length]);"),et("}else{",It,".bindFramebuffer(",qr,",null);"),ci&&et(Rt,".drawBuffersWEBGL(",ht,");"),et("}",Bt,".cur=",cr,";"),kt||et("}")}function Ks(Ve,et,at){var kt=Ve.shared,Ot=kt.gl,It=Ve.current,Bt=Ve.next,Rt=kt.current,mt=kt.next,Pt=Ve.cond(Rt,".dirty");vi.forEach(function(ht){var cr=Ki(ht);if(!(cr in at.state)){var br,Nr;if(cr in Bt){br=Bt[cr],Nr=It[cr];var Ri=M(Xi[cr].length,function(wi){return Pt.def(br,"[",wi,"]")});Pt(Ve.cond(Ri.map(function(wi,gn){return wi+"!=="+Nr+"["+gn+"]"}).join("||")).then(Ot,".",mn[cr],"(",Ri,");",Ri.map(function(wi,gn){return Nr+"["+gn+"]="+wi}).join(";"),";"))}else{br=Pt.def(mt,".",cr);var hi=Ve.cond(br,"!==",Rt,".",cr);Pt(hi),cr in li?hi(Ve.cond(br).then(Ot,".enable(",li[cr],");").else(Ot,".disable(",li[cr],");"),Rt,".",cr,"=",br,";"):hi(Ot,".",mn[cr],"(",br,");",Rt,".",cr,"=",br,";")}}}),Object.keys(at.state).length===0&&Pt(Rt,".dirty=false;"),et(Pt)}function Ta(Ve,et,at,kt){var Ot=Ve.shared,It=Ve.current,Bt=Ot.current,Rt=Ot.gl,mt;Ai(Object.keys(at)).forEach(function(Pt){var ht=at[Pt];if(!(kt&&!kt(ht))){var cr=ht.append(Ve,et);if(li[Pt]){var br=li[Pt];Rn(ht)?(mt=Ve.link(cr,{stable:!0}),et(Ve.cond(mt).then(Rt,".enable(",br,");").else(Rt,".disable(",br,");")),et(Bt,".",Pt,"=",mt,";")):(et(Ve.cond(cr).then(Rt,".enable(",br,");").else(Rt,".disable(",br,");")),et(Bt,".",Pt,"=",cr,";"))}else if(En(cr)){var Nr=It[Pt];et(Rt,".",mn[Pt],"(",cr,");",cr.map(function(Ri,hi){return Nr+"["+hi+"]="+Ri}).join(";"),";")}else Rn(ht)?(mt=Ve.link(cr,{stable:!0}),et(Rt,".",mn[Pt],"(",mt,");",Bt,".",Pt,"=",mt,";")):et(Rt,".",mn[Pt],"(",cr,");",Bt,".",Pt,"=",cr,";")}})}function sl(Ve,et){Ii&&(Ve.instancing=et.def(Ve.shared.extensions,".angle_instanced_arrays"))}function io(Ve,et,at,kt,Ot){var It=Ve.shared,Bt=Ve.stats,Rt=It.current,mt=It.timer,Pt=at.profile;function ht(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var cr,br;function Nr(Ci){cr=et.def(),Ci(cr,"=",ht(),";"),typeof Ot=="string"?Ci(Bt,".count+=",Ot,";"):Ci(Bt,".count++;"),ji&&(kt?(br=et.def(),Ci(br,"=",mt,".getNumPendingQueries();")):Ci(mt,".beginQuery(",Bt,");"))}function Ri(Ci){Ci(Bt,".cpuTime+=",ht(),"-",cr,";"),ji&&(kt?Ci(mt,".pushScopeStats(",br,",",mt,".getNumPendingQueries(),",Bt,");"):Ci(mt,".endQuery();"))}function hi(Ci){var qi=et.def(Rt,".profile");et(Rt,".profile=",Ci,";"),et.exit(Rt,".profile=",qi,";")}var wi;if(Pt){if(Rn(Pt)){Pt.enable?(Nr(et),Ri(et.exit),hi("true")):hi("false");return}wi=Pt.append(Ve,et),hi(wi)}else wi=et.def(Rt,".profile");var gn=Ve.block();Nr(gn),et("if(",wi,"){",gn,"}");var tn=Ve.block();Ri(tn),et.exit("if(",wi,"){",tn,"}")}function Y(Ve,et,at,kt,Ot){var It=Ve.shared;function Bt(mt){switch(mt){case ko:case Is:case dl:return 2;case Qa:case As:case Nl:return 3;case mo:case wo:case Lu:return 4;default:return 1}}function Rt(mt,Pt,ht){var cr=It.gl,br=et.def(mt,".location"),Nr=et.def(It.attributes,"[",br,"]"),Ri=ht.state,hi=ht.buffer,wi=[ht.x,ht.y,ht.z,ht.w],gn=["buffer","normalized","offset","stride"];function tn(){et("if(!",Nr,".buffer){",cr,".enableVertexAttribArray(",br,");}");var qi=ht.type,Vi;if(ht.size?Vi=et.def(ht.size,"||",Pt):Vi=Pt,et("if(",Nr,".type!==",qi,"||",Nr,".size!==",Vi,"||",gn.map(function(On){return Nr+"."+On+"!=="+ht[On]}).join("||"),"){",cr,".bindBuffer(",Sr,",",hi,".buffer);",cr,".vertexAttribPointer(",[br,Vi,qi,ht.normalized,ht.stride,ht.offset],");",Nr,".type=",qi,";",Nr,".size=",Vi,";",gn.map(function(On){return Nr+"."+On+"="+ht[On]+";"}).join(""),"}"),Ii){var on=ht.divisor;et("if(",Nr,".divisor!==",on,"){",Ve.instancing,".vertexAttribDivisorANGLE(",[br,on],");",Nr,".divisor=",on,";}")}}function Ci(){et("if(",Nr,".buffer){",cr,".disableVertexAttribArray(",br,");",Nr,".buffer=null;","}if(",ka.map(function(qi,Vi){return Nr+"."+qi+"!=="+wi[Vi]}).join("||"),"){",cr,".vertexAttrib4f(",br,",",wi,");",ka.map(function(qi,Vi){return Nr+"."+qi+"="+wi[Vi]+";"}).join(""),"}")}Ri===La?tn():Ri===Na?Ci():(et("if(",Ri,"===",La,"){"),tn(),et("}else{"),Ci(),et("}"))}kt.forEach(function(mt){var Pt=mt.name,ht=at.attributes[Pt],cr;if(ht){if(!Ot(ht))return;cr=ht.append(Ve,et)}else{if(!Ot(ia))return;var br=Ve.scopeAttrib(Pt);cr={},Object.keys(new Yr).forEach(function(Nr){cr[Nr]=et.def(br,".",Nr)})}Rt(Ve.link(mt),Bt(mt.info.type),cr)})}function D(Ve,et,at,kt,Ot,It){for(var Bt=Ve.shared,Rt=Bt.gl,mt,Pt=0;Pt1){for(var co=[],rs=[],so=0;so>1)",hi],");")}function on(){at(wi,".drawArraysInstancedANGLE(",[br,Nr,Ri,hi],");")}ht&&ht!=="null"?tn?Vi():(at("if(",ht,"){"),Vi(),at("}else{"),on(),at("}")):on()}function qi(){function Vi(){at(It+".drawElements("+[br,Ri,gn,Nr+"<<(("+gn+"-"+Ra+")>>1)"]+");")}function on(){at(It+".drawArrays("+[br,Nr,Ri]+");")}ht&&ht!=="null"?tn?Vi():(at("if(",ht,"){"),Vi(),at("}else{"),on(),at("}")):on()}Ii&&(typeof hi!="number"||hi>=0)?typeof hi=="string"?(at("if(",hi,">0){"),Ci(),at("}else if(",hi,"<0){"),qi(),at("}")):Ci():qi()}function q(Ve,et,at,kt,Ot){var It=Ln(),Bt=It.proc("body",Ot);return Ii&&(It.instancing=Bt.def(It.shared.extensions,".angle_instanced_arrays")),Ve(It,Bt,at,kt),It.compile().body}function K(Ve,et,at,kt){sl(Ve,et),at.useVAO?at.drawVAO?et(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,et),");"):et(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(et(Ve.shared.vao,".setVAO(null);"),Y(Ve,et,at,kt.attributes,function(){return!0})),D(Ve,et,at,kt.uniforms,function(){return!0},!1),J(Ve,et,et,at)}function de(Ve,et){var at=Ve.proc("draw",1);sl(Ve,at),ls(Ve,at,et.context),Gs(Ve,at,et.framebuffer),Ks(Ve,at,et),Ta(Ve,at,et.state),io(Ve,at,et,!1,!0);var kt=et.shader.progVar.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",kt,".program);"),et.shader.program)K(Ve,at,et,et.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var Ot=Ve.global.def("{}"),It=at.def(kt,".id"),Bt=at.def(Ot,"[",It,"]");at(Ve.cond(Bt).then(Bt,".call(this,a0);").else(Bt,"=",Ot,"[",It,"]=",Ve.link(function(Rt){return q(K,Ve,et,Rt,1)}),"(",kt,");",Bt,".call(this,a0);"))}Object.keys(et.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ne(Ve,et,at,kt){Ve.batchId="a1",sl(Ve,et);function Ot(){return!0}Y(Ve,et,at,kt.attributes,Ot),D(Ve,et,at,kt.uniforms,Ot,!1),J(Ve,et,et,at)}function we(Ve,et,at,kt){sl(Ve,et);var Ot=at.contextDep,It=et.def(),Bt="a0",Rt="a1",mt=et.def();Ve.shared.props=mt,Ve.batchId=It;var Pt=Ve.scope(),ht=Ve.scope();et(Pt.entry,"for(",It,"=0;",It,"<",Rt,";++",It,"){",mt,"=",Bt,"[",It,"];",ht,"}",Pt.exit);function cr(gn){return gn.contextDep&&Ot||gn.propDep}function br(gn){return!cr(gn)}if(at.needsContext&&ls(Ve,ht,at.context),at.needsFramebuffer&&Gs(Ve,ht,at.framebuffer),Ta(Ve,ht,at.state,cr),at.profile&&cr(at.profile)&&io(Ve,ht,at,!1,!0),kt)at.useVAO?at.drawVAO?cr(at.drawVAO)?ht(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,ht),");"):Pt(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,Pt),");"):Pt(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(Pt(Ve.shared.vao,".setVAO(null);"),Y(Ve,Pt,at,kt.attributes,br),Y(Ve,ht,at,kt.attributes,cr)),D(Ve,Pt,at,kt.uniforms,br,!1),D(Ve,ht,at,kt.uniforms,cr,!0),J(Ve,Pt,ht,at);else{var Nr=Ve.global.def("{}"),Ri=at.shader.progVar.append(Ve,ht),hi=ht.def(Ri,".id"),wi=ht.def(Nr,"[",hi,"]");ht(Ve.shared.gl,".useProgram(",Ri,".program);","if(!",wi,"){",wi,"=",Nr,"[",hi,"]=",Ve.link(function(gn){return q(ne,Ve,at,gn,2)}),"(",Ri,");}",wi,".call(this,a0[",It,"],",It,");")}}function Ue(Ve,et){var at=Ve.proc("batch",2);Ve.batchId="0",sl(Ve,at);var kt=!1,Ot=!0;Object.keys(et.context).forEach(function(Nr){kt=kt||et.context[Nr].propDep}),kt||(ls(Ve,at,et.context),Ot=!1);var It=et.framebuffer,Bt=!1;It?(It.propDep?kt=Bt=!0:It.contextDep&&kt&&(Bt=!0),Bt||Gs(Ve,at,It)):Gs(Ve,at,null),et.state.viewport&&et.state.viewport.propDep&&(kt=!0);function Rt(Nr){return Nr.contextDep&&kt||Nr.propDep}Ks(Ve,at,et),Ta(Ve,at,et.state,function(Nr){return!Rt(Nr)}),(!et.profile||!Rt(et.profile))&&io(Ve,at,et,!1,"a1"),et.contextDep=kt,et.needsContext=Ot,et.needsFramebuffer=Bt;var mt=et.shader.progVar;if(mt.contextDep&&kt||mt.propDep)we(Ve,at,et,null);else{var Pt=mt.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",Pt,".program);"),et.shader.program)we(Ve,at,et,et.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var ht=Ve.global.def("{}"),cr=at.def(Pt,".id"),br=at.def(ht,"[",cr,"]");at(Ve.cond(br).then(br,".call(this,a0,a1);").else(br,"=",ht,"[",cr,"]=",Ve.link(function(Nr){return q(we,Ve,et,Nr,2)}),"(",Pt,");",br,".call(this,a0,a1);"))}}Object.keys(et.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ft(Ve,et){var at=Ve.proc("scope",3);Ve.batchId="a2";var kt=Ve.shared,Ot=kt.current;if(ls(Ve,at,et.context),et.framebuffer&&et.framebuffer.append(Ve,at),Ai(Object.keys(et.state)).forEach(function(Rt){var mt=et.state[Rt],Pt=mt.append(Ve,at);En(Pt)?Pt.forEach(function(ht,cr){vn(ht)?at.set(Ve.next[Rt],"["+cr+"]",ht):at.set(Ve.next[Rt],"["+cr+"]",Ve.link(ht,{stable:!0}))}):Rn(mt)?at.set(kt.next,"."+Rt,Ve.link(Pt,{stable:!0})):at.set(kt.next,"."+Rt,Pt)}),io(Ve,at,et,!0,!0),[Tt,xr,Jt,Pr,Kt].forEach(function(Rt){var mt=et.draw[Rt];if(mt){var Pt=mt.append(Ve,at);vn(Pt)?at.set(kt.draw,"."+Rt,Pt):at.set(kt.draw,"."+Rt,Ve.link(Pt),{stable:!0})}}),Object.keys(et.uniforms).forEach(function(Rt){var mt=et.uniforms[Rt].append(Ve,at);Array.isArray(mt)&&(mt="["+mt.map(function(Pt){return vn(Pt)?Pt:Ve.link(Pt,{stable:!0})})+"]"),at.set(kt.uniforms,"["+Ve.link(xt.id(Rt),{stable:!0})+"]",mt)}),Object.keys(et.attributes).forEach(function(Rt){var mt=et.attributes[Rt].append(Ve,at),Pt=Ve.scopeAttrib(Rt);Object.keys(new Yr).forEach(function(ht){at.set(Pt,"."+ht,mt[ht])})}),et.scopeVAO){var It=et.scopeVAO.append(Ve,at);vn(It)?at.set(kt.vao,".targetVAO",It):at.set(kt.vao,".targetVAO",Ve.link(It,{stable:!0}))}function Bt(Rt){var mt=et.shader[Rt];if(mt){var Pt=mt.append(Ve,at);vn(Pt)?at.set(kt.shader,"."+Rt,Pt):at.set(kt.shader,"."+Rt,Ve.link(Pt,{stable:!0}))}}Bt(Xe),Bt(ot),Object.keys(et.state).length>0&&(at(Ot,".dirty=true;"),at.exit(Ot,".dirty=true;")),at("a1(",Ve.shared.context,",a0,",Ve.batchId,");")}function Zt(Ve){if(!(typeof Ve!="object"||En(Ve))){for(var et=Object.keys(Ve),at=0;at=0;--q){var K=Un[q];K&&K(si,null,0)}zt.flush(),Mi&&Mi.update()}function wa(){!ra&&Un.length>0&&(ra=d.next(oa))}function ns(){ra&&(d.cancel(oa),ra=null)}function Ys(q){q.preventDefault(),Hr=!0,ns(),na.forEach(function(K){K()})}function Va(q){zt.getError(),Hr=!1,Br.restore(),qn.restore(),Ii.restore(),vi.restore(),li.restore(),mn.restore(),nn.restore(),Mi&&Mi.restore(),Ki.procs.refresh(),wa(),Yi.forEach(function(K){K()})}vn&&(vn.addEventListener(Fo,Ys,!1),vn.addEventListener(Uo,Va,!1));function Ml(){Un.length=0,ns(),vn&&(vn.removeEventListener(Fo,Ys),vn.removeEventListener(Uo,Va)),qn.clear(),mn.clear(),li.clear(),nn.clear(),vi.clear(),ci.clear(),Ii.clear(),Mi&&Mi.clear(),Ln.forEach(function(q){q()})}function zo(q){function K(It){var Bt=e({},It);delete Bt.uniforms,delete Bt.attributes,delete Bt.context,delete Bt.vao,"stencil"in Bt&&Bt.stencil.op&&(Bt.stencil.opBack=Bt.stencil.opFront=Bt.stencil.op,delete Bt.stencil.op);function Rt(mt){if(mt in Bt){var Pt=Bt[mt];delete Bt[mt],Object.keys(Pt).forEach(function(ht){Bt[mt+"."+ht]=Pt[ht]})}}return Rt("blend"),Rt("depth"),Rt("cull"),Rt("stencil"),Rt("polygonOffset"),Rt("scissor"),Rt("sample"),"vao"in It&&(Bt.vao=It.vao),Bt}function de(It,Bt){var Rt={},mt={};return Object.keys(It).forEach(function(Pt){var ht=It[Pt];if(h.isDynamic(ht)){mt[Pt]=h.unbox(ht,Pt);return}else if(Bt&&Array.isArray(ht)){for(var cr=0;cr0)return Ve.call(this,kt(It|0),It|0)}else if(Array.isArray(It)){if(It.length)return Ve.call(this,It,It.length)}else return qt.call(this,It)}return e(Ot,{stats:Zt,destroy:function(){hr.destroy()}})}var el=mn.setFBO=zo({framebuffer:h.define.call(null,Qs,"framebuffer")});function ol(q,K){var de=0;Ki.procs.poll();var ne=K.color;ne&&(zt.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),de|=Es),"depth"in K&&(zt.clearDepth(+K.depth),de|=Zs),"stencil"in K&&(zt.clearStencil(K.stencil|0),de|=Gn),zt.clear(de)}function Ul(q){if("framebuffer"in q)if(q.framebuffer&&q.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)el(e({framebuffer:q.framebuffer.faces[K]},q),ol);else el(q,ol);else ol(null,q)}function ls(q){Un.push(q);function K(){var de=vl(Un,q);function ne(){var we=vl(Un,ne);Un[we]=Un[Un.length-1],Un.length-=1,Un.length<=0&&ns()}Un[de]=ne}return wa(),{cancel:K}}function Gs(){var q=Bi.viewport,K=Bi.scissor_box;q[0]=q[1]=K[0]=K[1]=0,si.viewportWidth=si.framebufferWidth=si.drawingBufferWidth=q[2]=K[2]=zt.drawingBufferWidth,si.viewportHeight=si.framebufferHeight=si.drawingBufferHeight=q[3]=K[3]=zt.drawingBufferHeight}function Ks(){si.tick+=1,si.time=sl(),Gs(),Ki.procs.poll()}function Ta(){vi.refresh(),Gs(),Ki.procs.refresh(),Mi&&Mi.update()}function sl(){return(v()-Hn)/1e3}Ta();function io(q,K){var de;switch(q){case"frame":return ls(K);case"lost":de=na;break;case"restore":de=Yi;break;case"destroy":de=Ln;break;default:}return de.push(K),{cancel:function(){for(var ne=0;ne=0},read:Ui,destroy:Ml,_gl:zt,_refresh:Ta,poll:function(){Ks(),Mi&&Mi.update()},now:sl,stats:mi,getCachedCode:Y,preloadCachedCode:D});return xt.onDone(null,J),J}return Sc})});var wz=ye((d1r,hBe)=>{"use strict";var XNt=SX(),ZNt=fBe();hBe.exports=function(t,r,n){var i=t._fullLayout,a=!0;return i._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(n);return}if(!(o.pick&&!i._has("parcoords"))){try{o.regl=ZNt({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||window.devicePixelRatio,extensions:r||[],cachedCode:n||{}})}catch(s){a=!1}o.regl||(a=!1),a&&this.addEventListener("webglcontextlost",function(s){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:s,layer:o.key})},!1)}}),a||XNt({container:i._glcontainer.node()}),a}});var cK=ye((uK,mBe)=>{"use strict";var dBe=uY(),vBe=NY(),YNt=tqe(),pBe=cBe(),lK=Dr(),KNt=Sg().selectMode,JNt=wz(),$Nt=Ru(),QNt=gU(),eUt=aY().styleTextSelection,gBe={};function tUt(e,t,r,n){var i=e._size,a=e.width*n,o=e.height*n,s=i.l*n,l=i.b*n,u=i.r*n,c=i.t*n,f=i.w*n,h=i.h*n;return[s+t.domain[0]*f,l+r.domain[0]*h,a-u-(1-t.domain[1])*f,o-c-(1-r.domain[1])*h]}var uK=mBe.exports=function(t,r,n){if(n.length){var i=t._fullLayout,a=r._scene,o=r.xaxis,s=r.yaxis,l,u;if(a){var c=JNt(t,["ANGLE_instanced_arrays","OES_element_index_uint"],gBe);if(!c){a.init();return}var f=a.count,h=i._glcanvas.data()[0].regl;if(QNt(t,r,n),a.dirty){if((a.line2d||a.error2d)&&!(a.scatter2d||a.fill2d||a.glText)&&h.clear({color:!0,depth:!0}),a.error2d===!0&&(a.error2d=YNt(h)),a.line2d===!0&&(a.line2d=vBe(h)),a.scatter2d===!0&&(a.scatter2d=dBe(h)),a.fill2d===!0&&(a.fill2d=vBe(h)),a.glText===!0)for(a.glText=new Array(f),l=0;la.glText.length){var d=f-a.glText.length;for(l=0;loe&&(isNaN(re[_e])||isNaN(re[_e+1]));)_e-=2;j.positions=re.slice(oe,_e+2)}return j}),a.line2d.update(a.lineOptions)),a.error2d){var b=(a.errorXOptions||[]).concat(a.errorYOptions||[]);a.error2d.update(b)}a.scatter2d&&a.scatter2d.update(a.markerOptions),a.fillOrder=lK.repeat(null,f),a.fill2d&&(a.fillOptions=a.fillOptions.map(function(j,re){var oe=n[re];if(!(!j||!oe||!oe[0]||!oe[0].trace)){var _e=oe[0],Me=_e.trace,ke=_e.t,me=a.lineOptions[re],ie,Se,Le=[];Me._ownfill&&Le.push(re),Me._nexttrace&&Le.push(re+1),Le.length&&(a.fillOrder[re]=Le);var Ae=[],De=me&&me.positions||ke.positions,Pe,ge;if(Me.fill==="tozeroy"){for(Pe=0;PePe&&isNaN(De[ge+1]);)ge-=2;De[Pe+1]!==0&&(Ae=[De[Pe],0]),Ae=Ae.concat(De.slice(Pe,ge+2)),De[ge+1]!==0&&(Ae=Ae.concat([De[ge],0]))}else if(Me.fill==="tozerox"){for(Pe=0;PePe&&isNaN(De[ge]);)ge-=2;De[Pe]!==0&&(Ae=[0,De[Pe+1]]),Ae=Ae.concat(De.slice(Pe,ge+2)),De[ge]!==0&&(Ae=Ae.concat([0,De[ge+1]]))}else if(Me.fill==="toself"||Me.fill==="tonext"){for(Ae=[],ie=0,j.splitNull=!0,Se=0;Se-1;for(l=0;l{"use strict";var yBe=zze();yBe.plot=cK();_Be.exports=yBe});var wBe=ye((p1r,bBe)=>{"use strict";bBe.exports=xBe()});var fK=ye((g1r,MBe)=>{"use strict";var rUt=pf(),SBe=Tu(),TBe=df().axisHoverFormat,iUt=Qo().hovertemplateAttrs,MC=oC(),nUt=hd().idRegex,aUt=pl().templatedArray,d5=Ao().extendFlat,o1=rUt.marker,oUt=o1.line,sUt=d5(SBe("marker.line",{editTypeOverride:"calc"}),{width:d5({},oUt.width,{editType:"calc"}),editType:"calc"}),Tz=d5(SBe("marker"),{symbol:o1.symbol,angle:o1.angle,size:d5({},o1.size,{editType:"markerSize"}),sizeref:o1.sizeref,sizemin:o1.sizemin,sizemode:o1.sizemode,opacity:o1.opacity,colorbar:o1.colorbar,line:sUt,editType:"calc"});Tz.color.editType=Tz.cmin.editType=Tz.cmax.editType="style";function ABe(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:nUt[e],editType:"plot"}}}MBe.exports={dimensions:aUt("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:d5({},MC.text,{}),hovertext:d5({},MC.hovertext,{}),hovertemplate:iUt(),xhoverformat:TBe("x"),yhoverformat:TBe("y"),marker:Tz,xaxes:ABe("x"),yaxes:ABe("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:MC.selected.marker,editType:"calc"},unselected:{marker:MC.unselected.marker,editType:"calc"},opacity:MC.opacity}});var Az=ye((m1r,EBe)=>{"use strict";EBe.exports=function(e,t,r,n){n||(n=1/0);var i,a;for(i=0;i{"use strict";var hK=Dr(),lUt=Yd(),CBe=fK(),uUt=Ru(),cUt=$p(),fUt=Az(),hUt=qF().isOpenSymbol;kBe.exports=function(t,r,n,i){function a(d,v){return hK.coerce(t,r,CBe,d,v)}var o=lUt(t,r,{name:"dimensions",handleItemDefaults:dUt}),s=a("diagonal.visible"),l=a("showupperhalf"),u=a("showlowerhalf"),c=fUt(r,o,"values");if(!c||!s&&!l&&!u){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),cUt(t,r,n,i,a,{noAngleRef:!0,noStandOff:!0});var f=hUt(r.marker.symbol),h=uUt.isBubble(r);a("marker.line.width",f||h?1:0),vUt(t,r,i,a),hK.coerceSelectionMarkerOpacity(r,a)};function dUt(e,t){function r(i,a){return hK.coerce(e,t,CBe.dimensions,i,a)}r("label");var n=r("values");n&&n.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}function vUt(e,t,r,n){var i=t.dimensions,a=i.length,o=t.showupperhalf,s=t.showlowerhalf,l=t.diagonal.visible,u,c,f=new Array(a),h=new Array(a);for(u=0;uc&&o||u{"use strict";var PBe=Dr();IBe.exports=function(t,r){var n=t._fullLayout,i=r.uid,a=n._splomScenes;a||(a=n._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s={matrix:!1,selectBatch:[],unselectBatch:[]},l=a[r.uid];return l||(l=a[i]=PBe.extendFlat({},o,s),l.draw=function(){l.matrix&&l.matrix.draw&&(l.selectBatch.length||l.unselectBatch.length?l.matrix.draw(l.unselectBatch,l.selectBatch):l.matrix.draw()),l.dirty=!1},l.destroy=function(){l.matrix&&l.matrix.destroy&&l.matrix.destroy(),l.matrixOptions=null,l.selectBatch=null,l.unselectBatch=null,l=null}),l.dirty||PBe.extendFlat(l,o),l}});var zBe=ye((x1r,FBe)=>{"use strict";var dK=Dr(),Sz=hf(),pUt=O0().calcMarkerSize,gUt=O0().calcAxisExpansion,mUt=F0(),DBe=Y2().markerSelection,yUt=Y2().markerStyle,_Ut=RBe(),xUt=hs().BADNUM,bUt=sx().TOO_MANY_POINTS;FBe.exports=function(t,r){var n=r.dimensions,i=r._length,a={},o=a.cdata=[],s=a.data=[],l=r._visibleDims=[],u,c,f,h,d;function v(E,A){for(var L=E.makeCalcdata({v:A.values,vcalendar:r.calendar},"v"),x=0;xbUt,p;for(b?p=a.sizeAvg||Math.max(a.size,3):p=pUt(r,i),c=0;c{(function(){var e,t,r,n,i,a;typeof performance!="undefined"&&performance!==null&&performance.now?EC.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(EC.exports=function(){return(e()-i)/1e6},t=process.hrtime,e=function(){var o;return o=t(),o[0]*1e9+o[1]},n=e(),a=process.uptime()*1e9,i=n-a):Date.now?(EC.exports=function(){return Date.now()-r},r=Date.now()):(EC.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(OBe)});var NBe=ye((b1r,Cz)=>{var wUt=qBe(),s1=window,Mz=["moz","webkit"],p5="AnimationFrame",g5=s1["request"+p5],CC=s1["cancel"+p5]||s1["cancelRequest"+p5];for(v5=0;!g5&&v5{UBe.exports=function(t,r){var n=typeof t=="number",i=typeof r=="number";n&&!i?(r=t,t=0):!n&&!i&&(t=0,r=0),t=t|0,r=r|0;var a=r-t;if(a<0)throw new Error("array length must be positive");for(var o=new Array(a),s=0,l=t;s{"use strict";var TUt=uY(),AUt=Xm(),SUt=j2(),GBe=NBe(),MUt=VBe(),pK=e5(),EUt=W2();jBe.exports=px;function px(e,t){if(!(this instanceof px))return new px(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=TUt(e),this.canvas=this.scatter.canvas}px.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=GBe(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,GBe(()=>{this.dirty=!1})),this)};px.prototype.update=function(...e){if(!e.length)return;for(let n=0;nb||!i.lower&&_{t[a+s]=n})}this.scatter.draw(...t)}return this};px.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function CUt(e,t,r){let n=e.id!=null?e.id:e,i=t,a=r;return n<<16|(i&255)<<8|a&255}function kz(e,t,r){let n,i,a,o,s,l,u,c,f=e[t],h=e[r];return f.length>2?(n=f[0],a=f[2],i=f[1],o=f[3]):f.length?(n=i=f[0],a=o=f[1]):(n=f.x,i=f.y,a=f.x+f.width,o=f.y+f.height),h.length>2?(s=h[0],u=h[2],l=h[1],c=h[3]):h.length?(s=l=h[0],u=c=h[1]):(s=h.x,l=h.y,u=h.x+h.width,c=h.y+h.height),[s,i,u,o]}function HBe(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let t=pK(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}}});var ZBe=ye((A1r,XBe)=>{"use strict";var kUt=WBe(),gK=Dr(),Lz=hf(),LUt=Sg().selectMode;XBe.exports=function(t,r,n){if(n.length)for(var i=0;i-1,T=LUt(c)||!!i.selectedpoints||P,z=!0;if(T){var O=i._length;if(i.selectedpoints){o.selectBatch=i.selectedpoints;var V=i.selectedpoints,G={};for(d=0;d{"use strict";YBe.getDimIndex=function(t,r){for(var n=r._id,i=n.charAt(0),a={x:0,y:1}[i],o=t._visibleDims,s=0;s{"use strict";var KBe=mK(),IUt=OF().calcHover,JBe=ho().getFromId,RUt=Ao().extendFlat;function DUt(e,t,r,n,i){i||(i={});var a=(n||"").charAt(0)==="x",o=(n||"").charAt(0)==="y",s=$Be(e,t,r);if((a||o)&&i.hoversubplots==="axis"&&s[0])for(var l=(a?e.xa:e.ya)._subplotsWith,u=i.gd,c=RUt({},e),f=0;f{"use strict";var nNe=Dr(),tNe=nNe.pushUnique,rNe=Ru(),iNe=mK();aNe.exports=function(t,r){var n=t.cd,i=n[0].trace,a=n[0].t,o=t.scene,s=o.matrixOptions.cdata,l=t.xaxis,u=t.yaxis,c=[];if(!o)return c;var f=!rNe.hasMarkers(i)&&!rNe.hasText(i);if(i.visible!==!0||f)return c;var h=iNe.getDimIndex(i,l),d=iNe.getDimIndex(i,u);if(h===!1||d===!1)return c;var v=a.xpx[h],_=a.ypx[d],b=s[h],p=s[d],C=(t.scene.selectBatch||[]).slice(),E=[];if(r!==!1&&!r.degenerate)for(var A=0;A{"use strict";var sNe=Dr(),FUt=F0(),zUt=Y2().markerStyle;lNe.exports=function(t,r){var n=r.trace,i=t._fullLayout._splomScenes[n.uid];if(i){FUt(t,n),sNe.extendFlat(i.matrixOptions,zUt(t,n));var a=sNe.extendFlat({},i.matrixOptions,i.viewOpts);i.matrix.update(a,null)}}});var fNe=ye((k1r,cNe)=>{"use strict";var OUt=qa(),qUt=lV();cNe.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:fK(),supplyDefaults:LBe(),colorbar:$d(),calc:zBe(),plot:ZBe(),hoverPoints:eNe().hoverPoints,selectPoints:oNe(),editStyle:uNe(),meta:{}};OUt.register(qUt)});var mNe=ye((L1r,gNe)=>{"use strict";var BUt=NY(),NUt=qa(),UUt=wz(),VUt=Id().getModuleCalcData,gx=vh(),hNe=hf().getFromId,dNe=ho().shouldShowZeroLine,vNe="splom",pNe={};function GUt(e){var t=e._fullLayout,r=NUt.getModule(vNe),n=VUt(e.calcdata,r)[0],i=UUt(e,["ANGLE_instanced_arrays","OES_element_index_uint"],pNe);i&&(t._hasOnlyLargeSploms&&yK(e),r.plot(e,{},n))}function HUt(e){var t=e.calcdata,r=e._fullLayout;r._hasOnlyLargeSploms&&yK(e);for(var n=0;n{"use strict";var yNe=fNe();yNe.basePlotModule=mNe(),_Ne.exports=yNe});var wNe=ye((I1r,bNe)=>{"use strict";bNe.exports=xNe()});var bK=ye((R1r,TNe)=>{"use strict";var ZUt=Tu(),_K=Rd(),xK=ec(),YUt=kc().attributes,Pz=Ao().extendFlat,KUt=pl().templatedArray;TNe.exports={domain:YUt({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:xK({editType:"plot"}),tickfont:xK({autoShadowDflt:!0,editType:"plot"}),rangefont:xK({editType:"plot"}),dimensions:KUt("dimension",{label:{valType:"string",editType:"plot"},tickvals:Pz({},_K.tickvals,{editType:"plot"}),ticktext:Pz({},_K.ticktext,{editType:"plot"}),tickformat:Pz({},_K.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:Pz({editType:"calc"},ZUt("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"})),unselected:{line:{color:{valType:"color",dflt:"#7f7f7f",editType:"plot"},opacity:{valType:"number",min:0,max:1,dflt:"auto",editType:"plot"},editType:"plot"},editType:"plot"}}});var kC=ye((D1r,ANe)=>{"use strict";ANe.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:["contextLineLayer","focusLineLayer","pickLineLayer"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},id:{filterBarPattern:"filter-bar-pattern"}}});var Km=ye((F1r,MNe)=>{"use strict";var JUt=VS();function SNe(e){return[e]}MNe.exports={keyFun:function(e){return e.key},repeat:SNe,descend:JUt,wrap:SNe,unwrap:function(e){return e[0]}}});var AK=ye((z1r,ONe)=>{"use strict";var yh=kC(),em=Oa(),$Ut=Km().keyFun,Iz=Km().repeat,m5=Dr().sorterAsc,QUt=Dr().strTranslate,ENe=yh.bar.snapRatio;function CNe(e,t){return e*(1-ENe)+t*ENe}var kNe=yh.bar.snapClose;function eVt(e,t){return e*(1-kNe)+t*kNe}function Dz(e,t,r,n){if(tVt(r,n))return r;var i=e?-1:1,a=0,o=t.length-1;if(i<0){var s=a;a=o,o=s}for(var l=t[a],u=l,c=a;i*c=t[r][0]&&e<=t[r][1])return!0;return!1}function rVt(e){e.attr("x",-yh.bar.captureWidth/2).attr("width",yh.bar.captureWidth)}function iVt(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function nVt(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t=LNe(e.brush.filter.getConsolidated(),e.height),r=[0],n,i,a,o=t.length?t[0][0]:null,s=0;se[1]+r||t=.9*e[1]+.1*e[0]?"n":t<=.9*e[0]+.1*e[1]?"s":"ns"}function PNe(){em.select(document.body).style("cursor",null)}function TK(e){e.attr("stroke-dasharray",nVt)}function Rz(e,t){var r=em.select(e).selectAll(".highlight, .highlight-shadow"),n=t?r.transition().duration(yh.bar.snapDuration).each("end",t):r;TK(n)}function INe(e,t){var r=e.brush,n=r.filterSpecified,i=NaN,a={},o;if(n){var s=e.height,l=r.filter.getConsolidated(),u=LNe(l,s),c=NaN,f=NaN,h=NaN;for(o=0;o<=u.length;o++){var d=u[o];if(d&&d[0]<=t&&t<=d[1]){c=o;break}else if(f=o?o-1:NaN,d&&d[0]>t){h=o;break}}if(i=c,isNaN(i)&&(isNaN(f)||isNaN(h)?i=isNaN(f)?h:f:i=t-u[f][1]=C[0]&&p<=C[1]){a.clickableOrdinalRange=C;break}}}return a}function oVt(e,t){em.event.sourceEvent.stopPropagation();var r=t.height-em.mouse(e)[1]-2*yh.verticalPadding,n=t.unitToPaddedPx.invert(r),i=t.brush,a=INe(t,r),o=a.interval,s=i.svgBrush;if(s.wasDragged=!1,s.grabbingBar=a.region==="ns",s.grabbingBar){var l=o.map(t.unitToPaddedPx);s.grabPoint=r-l[0]-yh.verticalPadding,s.barLength=l[1]-l[0]}s.clickableOrdinalRange=a.clickableOrdinalRange,s.stayingIntervals=t.multiselect&&i.filterSpecified?i.filter.getConsolidated():[],o&&(s.stayingIntervals=s.stayingIntervals.filter(function(u){return u[0]!==o[0]&&u[1]!==o[1]})),s.startExtent=a.region?o[a.region==="s"?1:0]:n,t.parent.inBrushDrag=!0,s.brushStartCallback()}function RNe(e,t){em.event.sourceEvent.stopPropagation();var r=t.height-em.mouse(e)[1]-2*yh.verticalPadding,n=t.brush.svgBrush;n.wasDragged=!0,n._dragging=!0,n.grabbingBar?n.newExtent=[r-n.grabPoint,r+n.barLength-n.grabPoint].map(t.unitToPaddedPx.invert):n.newExtent=[n.startExtent,t.unitToPaddedPx.invert(r)].sort(m5),t.brush.filterSpecified=!0,n.extent=n.stayingIntervals.concat([n.newExtent]),n.brushCallback(t),Rz(e.parentNode)}function sVt(e,t){var r=t.brush,n=r.filter,i=r.svgBrush;i._dragging||(DNe(e,t),RNe(e,t),t.brush.svgBrush.wasDragged=!1),i._dragging=!1;var a=em.event;a.sourceEvent.stopPropagation();var o=i.grabbingBar;if(i.grabbingBar=!1,i.grabLocation=void 0,t.parent.inBrushDrag=!1,PNe(),!i.wasDragged){i.wasDragged=void 0,i.clickableOrdinalRange?r.filterSpecified&&t.multiselect?i.extent.push(i.clickableOrdinalRange):(i.extent=[i.clickableOrdinalRange],r.filterSpecified=!0):o?(i.extent=i.stayingIntervals,i.extent.length===0&&wK(r)):wK(r),i.brushCallback(t),Rz(e.parentNode),i.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);return}var s=function(){n.set(n.getConsolidated())};if(t.ordinal){var l=t.unitTickvals;l[l.length-1]i.newExtent[0];i.extent=i.stayingIntervals.concat(u?[i.newExtent]:[]),i.extent.length||wK(r),i.brushCallback(t),u?Rz(e.parentNode,s):(s(),Rz(e.parentNode))}else s();i.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}function DNe(e,t){var r=t.height-em.mouse(e)[1]-2*yh.verticalPadding,n=INe(t,r),i="crosshair";n.clickableOrdinalRange?i="pointer":n.region&&(i=n.region+"-resize"),em.select(document.body).style("cursor",i)}function lVt(e){e.on("mousemove",function(t){em.event.preventDefault(),t.parent.inBrushDrag||DNe(this,t)}).on("mouseleave",function(t){t.parent.inBrushDrag||PNe()}).call(em.behavior.drag().on("dragstart",function(t){oVt(this,t)}).on("drag",function(t){RNe(this,t)}).on("dragend",function(t){sVt(this,t)}))}function FNe(e,t){return e[0]-t[0]}function uVt(e,t,r){var n=r._context.staticPlot,i=e.selectAll(".background").data(Iz);i.enter().append("rect").classed("background",!0).call(rVt).call(iVt).style("pointer-events",n?"none":"auto").attr("transform",QUt(0,yh.verticalPadding)),i.call(lVt).attr("height",function(s){return s.height-yh.verticalPadding});var a=e.selectAll(".highlight-shadow").data(Iz);a.enter().append("line").classed("highlight-shadow",!0).attr("x",-yh.bar.width/2).attr("stroke-width",yh.bar.width+yh.bar.strokeWidth).attr("stroke",t).attr("opacity",yh.bar.strokeOpacity).attr("stroke-linecap","butt"),a.attr("y1",function(s){return s.height}).call(TK);var o=e.selectAll(".highlight").data(Iz);o.enter().append("line").classed("highlight",!0).attr("x",-yh.bar.width/2).attr("stroke-width",yh.bar.width-yh.bar.strokeWidth).attr("stroke",yh.bar.fillColor).attr("opacity",yh.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(s){return s.height}).call(TK)}function cVt(e,t,r){var n=e.selectAll("."+yh.cn.axisBrush).data(Iz,$Ut);n.enter().append("g").classed(yh.cn.axisBrush,!0),uVt(n,t,r)}function fVt(e){return e.svgBrush.extent.map(function(t){return t.slice()})}function wK(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function hVt(e){return function(r){var n=r.brush,i=fVt(n),a=i.slice();n.filter.set(a),e()}}function zNe(e){for(var t=e.slice(),r=[],n,i=t.shift();i;){for(n=i.slice();(i=t.shift())&&i[0]<=n[1];)n[1]=Math.max(n[1],i[1]);r.push(n)}return r.length===1&&r[0][0]>r[0][1]&&(r=[]),r}function dVt(){var e=[],t,r;return{set:function(n){e=n.map(function(i){return i.slice().sort(m5)}).sort(FNe),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),t=zNe(e),r=e.reduce(function(i,a){return[Math.min(i[0],a[0]),Math.max(i[1],a[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return t},getBounds:function(){return r}}}function vVt(e,t,r,n,i,a){var o=dVt();return o.set(r),{filter:o,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:n,brushCallback:hVt(i),brushEndCallback:a}}}function pVt(e,t){if(Array.isArray(e[0])?(e=e.map(function(n){return n.sort(m5)}),t.multiselect?e=zNe(e.sort(FNe)):e=[e[0]]):e=[e.sort(m5)],t.tickvals){var r=t.tickvals.slice().sort(m5);if(e=e.map(function(n){var i=[Dz(0,r,n[0],[]),Dz(1,r,n[1],[])];if(i[1]>i[0])return i}).filter(function(n){return n}),!e.length)return}return e.length>1?e:e[0]}ONe.exports={makeBrush:vVt,ensureAxisBrush:cVt,cleanRanges:pVt}});var NNe=ye((O1r,BNe)=>{"use strict";var mx=Dr(),gVt=Dv().hasColorscale,mVt=Jh(),yVt=kc().defaults,_Vt=Yd(),xVt=ho(),qNe=bK(),bVt=AK(),SK=kC().maxDimensionCount,wVt=Az();function TVt(e,t,r,n,i){var a=i("line.color",r);if(gVt(e,"line")&&mx.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),mVt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function AVt(e,t,r,n){function i(u,c){return mx.coerce(e,t,qNe.dimensions,u,c)}var a=i("values"),o=i("visible");if(a&&a.length||(o=t.visible=!1),o){i("label"),i("tickvals"),i("ticktext"),i("tickformat");var s=i("range");t._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:s},xVt.setConvert(t._ax,n.layout),i("multiselect");var l=i("constraintrange");l&&(t.constraintrange=bVt.cleanRanges(l,t))}}BNe.exports=function(t,r,n,i){function a(c,f){return mx.coerce(t,r,qNe,c,f)}var o=t.dimensions;Array.isArray(o)&&o.length>SK&&(mx.log("parcoords traces support up to "+SK+" dimensions at the moment"),o.splice(SK));var s=_Vt(t,r,{name:"dimensions",layout:i,handleItemDefaults:AVt}),l=TVt(t,r,n,i,a);yVt(r,i,a),(!Array.isArray(s)||!s.length)&&(r.visible=!1),wVt(r,s,"values",l);var u=mx.extendFlat({},i.font,{size:Math.round(i.font.size/1.2)});mx.coerceFont(a,"labelfont",u),mx.coerceFont(a,"tickfont",u,{autoShadowDflt:!0}),mx.coerceFont(a,"rangefont",u),a("labelangle"),a("labelside"),a("unselected.line.color"),a("unselected.line.opacity")}});var VNe=ye((q1r,UNe)=>{"use strict";var SVt=Dr().isArrayOrTypedArray,MK=tc(),MVt=Km().wrap;UNe.exports=function(t,r){var n,i;return MK.hasColorscale(r,"line")&&SVt(r.line.color)?(n=r.line.color,i=MK.extractOpts(r.line).colorscale,MK.calc(t,r,{vals:n,containerStr:"line",cLetter:"c"})):(n=EVt(r._length),i=[[0,r.line.color],[1,r.line.color]]),MVt({lineColor:n,cscale:i})};function EVt(e){for(var t=new Array(e),r=0;r>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),EK.default[e])r=EK.default[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(e[0]==="#"){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var l=t[1];i=l.replace(/a$/,"");var u=i==="cmyk"?4:i==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/),i==="color"&&(i=r.shift()),r=r.map(function(h,d){if(h[h.length-1]==="%")return h=parseFloat(h)/100,d===3?h:i==="rgb"?h*255:i[0]==="h"||i[0]==="l"&&!d?h*100:i==="lab"?h*125:i==="lch"?d<2?h*150:h*360:i[0]==="o"&&!d?h:i==="oklab"?h*.4:i==="oklch"?d<2?h*.4:h*360:h;if(i[d]==="h"||d===2&&i[i.length-1]==="h"){if(GNe[h]!==void 0)return GNe[h];if(h.endsWith("deg"))return parseFloat(h);if(h.endsWith("turn"))return parseFloat(h)*360;if(h.endsWith("grad"))return parseFloat(h)*360/400;if(h.endsWith("rad"))return parseFloat(h)*180/Math.PI}return h==="none"?0:parseFloat(h)}),n=r.length>u?r.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(h){return parseFloat(h)}),i=((f=(c=e.match(/([a-z])/ig))==null?void 0:c.join(""))==null?void 0:f.toLowerCase())||"rgb");return{space:i,values:r,alpha:n}}var EK,HNe,GNe,jNe=ru(()=>{EK=Wet(hX(),1),HNe=CVt,GNe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var LC,CK=ru(()=>{LC={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var Fz,WNe=ru(()=>{CK();Fz={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,l,u=0;if(r===0)return l=n*255,[l,l,l];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];u<3;)o=t+1/3*-(u-1),o<0?o++:o>1&&o--,l=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[u++]=l*255;return s}};LC.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s,l,u;return a===i?s=0:t===a?s=(r-n)/o:r===a?s=2+(n-t)/o:n===a&&(s=4+(t-r)/o),s=Math.min(s*60,360),s<0&&(s+=360),u=(i+a)/2,a===i?l=0:u<=.5?l=o/(a+i):l=o/(2-a-i),[s,l*100,u*100]}});var ZNe={};uee(ZNe,{default:()=>XNe});function XNe(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var t,r,n,i=HNe(e);if(!i.space)return[];let a=i.space[0]==="h"?Fz.min:LC.min,o=i.space[0]==="h"?Fz.max:LC.max;return t=Array(3),t[0]=Math.min(Math.max(i.values[0],a[0]),o[0]),t[1]=Math.min(Math.max(i.values[1],a[1]),o[1]),t[2]=Math.min(Math.max(i.values[2],a[2]),o[2]),i.space[0]==="h"&&(t=Fz.rgb(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t}var YNe=ru(()=>{jNe();CK();WNe()});var kK=ye(zz=>{"use strict";var kVt=Dr().isTypedArray;zz.convertTypedArray=function(e){return kVt(e)?Array.prototype.slice.call(e):e};zz.isOrdinal=function(e){return!!e.tickvals};zz.isVisible=function(e){return e.visible||!("visible"in e)}});var aUe=ye((X1r,nUe)=>{"use strict";var LVt=["precision highp float;","","varying vec4 fragColor;","","attribute vec4 p01_04, p05_08, p09_12, p13_16,"," p17_20, p21_24, p25_28, p29_32,"," p33_36, p37_40, p41_44, p45_48,"," p49_52, p53_56, p57_60, colors;","","uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,"," loA, hiA, loB, hiB, loC, hiC, loD, hiD;","","uniform vec2 resolution, viewBoxPos, viewBoxSize;","uniform float maskHeight;","uniform float drwLayer; // 0: context, 1: focus, 2: pick","uniform vec4 contextColor;","uniform sampler2D maskTexture, palette;","","bool isPick = (drwLayer > 1.5);","bool isContext = (drwLayer < 0.5);","","const vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);","const vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);","","float val(mat4 p, mat4 v) {"," return dot(matrixCompMult(p, v) * UNITS, UNITS);","}","","float axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {"," float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);"," float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);"," return y1 * (1.0 - ratio) + y2 * ratio;","}","","int iMod(int a, int b) {"," return a - b * (a / b);","}","","bool fOutside(float p, float lo, float hi) {"," return (lo < hi) && (lo > p || p > hi);","}","","bool vOutside(vec4 p, vec4 lo, vec4 hi) {"," return ("," fOutside(p[0], lo[0], hi[0]) ||"," fOutside(p[1], lo[1], hi[1]) ||"," fOutside(p[2], lo[2], hi[2]) ||"," fOutside(p[3], lo[3], hi[3])"," );","}","","bool mOutside(mat4 p, mat4 lo, mat4 hi) {"," return ("," vOutside(p[0], lo[0], hi[0]) ||"," vOutside(p[1], lo[1], hi[1]) ||"," vOutside(p[2], lo[2], hi[2]) ||"," vOutside(p[3], lo[3], hi[3])"," );","}","","bool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {"," return mOutside(A, loA, hiA) ||"," mOutside(B, loB, hiB) ||"," mOutside(C, loC, hiC) ||"," mOutside(D, loD, hiD);","}","","bool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {"," mat4 pnts[4];"," pnts[0] = A;"," pnts[1] = B;"," pnts[2] = C;"," pnts[3] = D;",""," for(int i = 0; i < 4; ++i) {"," for(int j = 0; j < 4; ++j) {"," for(int k = 0; k < 4; ++k) {"," if(0 == iMod("," int(255.0 * texture2D(maskTexture,"," vec2("," (float(i * 2 + j / 2) + 0.5) / 8.0,"," (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight"," ))[3]"," ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),"," 2"," )) return true;"," }"," }"," }"," return false;","}","","vec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {"," float x = 0.5 * sign(v) + 0.5;"," float y = axisY(x, A, B, C, D);"," float z = 1.0 - abs(v);",""," z += isContext ? 0.0 : 2.0 * float("," outsideBoundingBox(A, B, C, D) ||"," outsideRasterMask(A, B, C, D)"," );",""," return vec4("," 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,"," z,"," 1.0"," );","}","","void main() {"," mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);"," mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);"," mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);"," mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);",""," float v = colors[3];",""," gl_Position = position(isContext, v, A, B, C, D);",""," fragColor ="," isContext ? vec4(contextColor) :"," isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));","}"].join(` +`),PVt=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` +`),PC=kC().maxDimensionCount,tUe=Dr(),KNe=1e-6,Oz=2048,IVt=new Uint8Array(4),JNe=new Uint8Array(4),$Ne={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function RVt(e){e.read({x:0,y:0,width:1,height:1,data:IVt})}function rUe(e,t,r,n,i){var a=e._gl;a.enable(a.SCISSOR_TEST),a.scissor(t,r,n,i),e.clear({color:[0,0,0,0],depth:1})}function DVt(e,t,r,n,i,a){var o=a.key;function s(l){var u=Math.min(n,i-l*n);l===0&&(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],rUe(e,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),!r.clearOnly&&(a.count=2*u,a.offset=2*l*n,t(a),l*n+u>>8*t)%256/255}function OVt(e,t,r){for(var n=new Array(e*(PC+4)),i=0,a=0;aZ&&(Z=M[z].dim1.canvasX,V=z);T===0&&rUe(i,0,0,u.canvasWidth,u.canvasHeight);var H=E(r);for(z=0;z{"use strict";var Bd=Oa(),l1=Dr(),PK=l1.isArrayOrTypedArray,fUe=l1.numberFormat,hUe=(YNe(),B1(ZNe)).default,dUe=ho(),VVt=l1.strRotate,Jm=l1.strTranslate,GVt=iu(),qz=So(),oUe=tc(),DK=Km(),tg=DK.keyFun,$m=DK.repeat,vUe=DK.unwrap,y5=kK(),Rl=kC(),pUe=AK(),HVt=aUe();function sUe(e,t,r){return l1.aggNums(e,null,t,r)}function gUe(e,t){return FK(sUe(Math.min,e,t),sUe(Math.max,e,t))}function Bz(e){var t=e.range;return t?FK(t[0],t[1]):gUe(e.values,e._length)}function FK(e,t){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(t)||!isFinite(t))&&(t=0),e===t&&(e===0?(e-=1,t+=1):(e*=.9,t*=1.1)),[e,t]}function jVt(e,t){return t?function(r,n){var i=t[n];return i==null?e(r):i}:e}function WVt(e,t,r,n,i){var a=Bz(r);return n?Bd.scale.ordinal().domain(n.map(jVt(fUe(r.tickformat),i))).range(n.map(function(o){var s=(o-a[0])/(a[1]-a[0]);return e-t+s*(2*t-e)})):Bd.scale.linear().domain(a).range([e-t,t])}function XVt(e,t){return Bd.scale.linear().range([t,e-t])}function ZVt(e,t){return Bd.scale.linear().domain(Bz(e)).range([t,1-t])}function YVt(e){if(e.tickvals){var t=Bz(e);return Bd.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(r){return(r-t[0])/(t[1]-t[0])}))}}function KVt(e){var t=e.map(function(a){return a[0]}),r=e.map(function(a){var o=hUe(a[1]);return Bd.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),n=function(a){return function(o){return o[a]}},i="rgb".split("").map(function(a){return Bd.scale.linear().clamp(!0).domain(t).range(r.map(n(a)))});return function(a){return i.map(function(o){return o(a)})}}function RK(e){return e.dimensions.some(function(t){return t.brush.filterSpecified})}function JVt(e,t,r){var n=vUe(t),i=n.trace,a=y5.convertTypedArray(n.lineColor),o=i.line,s={color:hUe(i.unselected.line.color),opacity:i.unselected.line.opacity},l=oUe.extractOpts(o),u=l.reversescale?oUe.flipScale(n.cscale):n.cscale,c=i.domain,f=i.dimensions,h=e.width,d=i.labelangle,v=i.labelside,_=i.labelfont,b=i.tickfont,p=i.rangefont,C=l1.extendDeepNoArrays({},o,{color:a.map(Bd.scale.linear().domain(Bz({values:a,range:[l.min,l.max],_length:i._length}))),blockLineCount:Rl.blockLineCount,canvasOverdrag:Rl.overdrag*Rl.canvasPixelRatio}),E=Math.floor(h*(c.x[1]-c.x[0])),A=Math.floor(e.height*(c.y[1]-c.y[0])),L=e.margin||{l:80,r:80,t:100,b:80},x=E,k=A;return{key:r,colCount:f.filter(y5.isVisible).length,dimensions:f,tickDistance:Rl.tickDistance,unitToColor:KVt(u),lines:C,deselectedLines:s,labelAngle:d,labelSide:v,labelFont:_,tickFont:b,rangeFont:p,layoutWidth:h,layoutHeight:e.height,domain:c,translateX:c.x[0]*h,translateY:e.height-c.y[1]*e.height,pad:L,canvasWidth:x*Rl.canvasPixelRatio+2*C.canvasOverdrag,canvasHeight:k*Rl.canvasPixelRatio,width:x,height:k,canvasPixelRatio:Rl.canvasPixelRatio}}function $Vt(e,t,r){var n=r.width,i=r.height,a=r.dimensions,o=r.canvasPixelRatio,s=function(h){return n*h/Math.max(1,r.colCount-1)},l=Rl.verticalPadding/i,u=XVt(i,Rl.verticalPadding),c={key:r.key,xScale:s,model:r,inBrushDrag:!1},f={};return c.dimensions=a.filter(y5.isVisible).map(function(h,d){var v=ZVt(h,l),_=f[h.label];f[h.label]=(_||0)+1;var b=h.label+(_?"__"+_:""),p=h.constraintrange,C=p&&p.length;C&&!PK(p[0])&&(p=[p]);var E=C?p.map(function(O){return O.map(v)}):[[-1/0,1/0]],A=function(){var O=c;O.focusLayer&&O.focusLayer.render(O.panels,!0);var V=RK(O);!e.contextShown()&&V?(O.contextLayer&&O.contextLayer.render(O.panels,!0),e.contextShown(!0)):e.contextShown()&&!V&&(O.contextLayer&&O.contextLayer.render(O.panels,!0,!0),e.contextShown(!1))},L=h.values;L.length>h._length&&(L=L.slice(0,h._length));var x=h.tickvals,k;function M(O,V){return{val:O,text:k[V]}}function g(O,V){return O.val-V.val}if(PK(x)&&x.length){l1.isTypedArray(x)&&(x=Array.from(x)),k=h.ticktext,!PK(k)||!k.length?k=x.map(fUe(h.tickformat)):k.length>x.length?k=k.slice(0,x.length):x.length>k.length&&(x=x.slice(0,k.length));for(var P=1;P=V||N>=G)return;var j=z.lineLayer.readPixel(H,G-1-N),re=j[3]!==0,oe=re?j[2]+256*(j[1]+256*j[0]):null,_e={x:H,y:N,clientX:O.clientX,clientY:O.clientY,dataIndex:z.model.key,curveNumber:oe};oe!==v&&(re?i.hover(_e):i.unhover&&i.unhover(_e),v=oe)}}),d.style("opacity",function(z){return z.pick?0:1}),s.style("background","rgba(255, 255, 255, 0)");var b=s.selectAll("."+Rl.cn.parcoords).data(h,tg);b.exit().remove(),b.enter().append("g").classed(Rl.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),b.attr("transform",function(z){return Jm(z.model.translateX,z.model.translateY)});var p=b.selectAll("."+Rl.cn.parcoordsControlView).data($m,tg);p.enter().append("g").classed(Rl.cn.parcoordsControlView,!0),p.attr("transform",function(z){return Jm(z.model.pad.l,z.model.pad.t)});var C=p.selectAll("."+Rl.cn.yAxis).data(function(z){return z.dimensions},tg);C.enter().append("g").classed(Rl.cn.yAxis,!0),p.each(function(z){IK(C,z,u)}),d.each(function(z){if(z.viewModel){!z.lineLayer||i?z.lineLayer=HVt(this,z):z.lineLayer.update(z),(z.key||z.key===0)&&(z.viewModel[z.key]=z.lineLayer);var O=!z.context||i;z.lineLayer.render(z.viewModel.panels,O)}}),C.attr("transform",function(z){return Jm(z.xScale(z.xIndex),0)}),C.call(Bd.behavior.drag().origin(function(z){return z}).on("drag",function(z){var O=z.parent;f.linePickActive(!1),z.x=Math.max(-Rl.overdrag,Math.min(z.model.width+Rl.overdrag,Bd.event.x)),z.canvasX=z.x*z.model.canvasPixelRatio,C.sort(function(V,G){return V.x-G.x}).each(function(V,G){V.xIndex=G,V.x=z===V?V.x:V.xScale(V.xIndex),V.canvasX=V.x*V.model.canvasPixelRatio}),IK(C,O,u),C.filter(function(V){return Math.abs(z.xIndex-V.xIndex)!==0}).attr("transform",function(V){return Jm(V.xScale(V.xIndex),0)}),Bd.select(this).attr("transform",Jm(z.x,0)),C.each(function(V,G,Z){Z===z.parent.key&&(O.dimensions[G]=V)}),O.contextLayer&&O.contextLayer.render(O.panels,!1,!RK(O)),O.focusLayer.render&&O.focusLayer.render(O.panels)}).on("dragend",function(z){var O=z.parent;z.x=z.xScale(z.xIndex),z.canvasX=z.x*z.model.canvasPixelRatio,IK(C,O,u),Bd.select(this).attr("transform",function(V){return Jm(V.x,0)}),O.contextLayer&&O.contextLayer.render(O.panels,!1,!RK(O)),O.focusLayer&&O.focusLayer.render(O.panels),O.pickLayer&&O.pickLayer.render(O.panels,!0),f.linePickActive(!0),i&&i.axesMoved&&i.axesMoved(O.key,O.dimensions.map(function(V){return V.crossfilterDimensionIndex}))})),C.exit().remove();var E=C.selectAll("."+Rl.cn.axisOverlays).data($m,tg);E.enter().append("g").classed(Rl.cn.axisOverlays,!0),E.selectAll("."+Rl.cn.axis).remove();var A=E.selectAll("."+Rl.cn.axis).data($m,tg);A.enter().append("g").classed(Rl.cn.axis,!0),A.each(function(z){var O=z.model.height/z.model.tickDistance,V=z.domainScale,G=V.domain();Bd.select(this).call(Bd.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(O,z.tickFormat).tickValues(z.ordinal?G:null).tickFormat(function(Z){return y5.isOrdinal(z)?Z:mUe(z.model.dimensions[z.visibleIndex],Z)}).scale(V)),qz.font(A.selectAll("text"),z.model.tickFont)}),A.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),A.selectAll("text").style("cursor","default");var L=E.selectAll("."+Rl.cn.axisHeading).data($m,tg);L.enter().append("g").classed(Rl.cn.axisHeading,!0);var x=L.selectAll("."+Rl.cn.axisTitle).data($m,tg);x.enter().append("text").classed(Rl.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",a?"none":"auto"),x.text(function(z){return z.label}).each(function(z){var O=Bd.select(this);qz.font(O,z.model.labelFont),GVt.convertToTspans(O,t)}).attr("transform",function(z){var O=uUe(z.model.labelAngle,z.model.labelSide),V=Rl.axisTitleOffset;return(O.dir>0?"":Jm(0,2*V+z.model.height))+VVt(O.degrees)+Jm(-V*O.dx,-V*O.dy)}).attr("text-anchor",function(z){var O=uUe(z.model.labelAngle,z.model.labelSide),V=Math.abs(O.dx),G=Math.abs(O.dy);return 2*V>G?O.dir*O.dx<0?"start":"end":"middle"});var k=E.selectAll("."+Rl.cn.axisExtent).data($m,tg);k.enter().append("g").classed(Rl.cn.axisExtent,!0);var M=k.selectAll("."+Rl.cn.axisExtentTop).data($m,tg);M.enter().append("g").classed(Rl.cn.axisExtentTop,!0),M.attr("transform",Jm(0,-Rl.axisExtentOffset));var g=M.selectAll("."+Rl.cn.axisExtentTopText).data($m,tg);g.enter().append("text").classed(Rl.cn.axisExtentTopText,!0).call(lUe),g.text(function(z){return cUe(z,!0)}).each(function(z){qz.font(Bd.select(this),z.model.rangeFont)});var P=k.selectAll("."+Rl.cn.axisExtentBottom).data($m,tg);P.enter().append("g").classed(Rl.cn.axisExtentBottom,!0),P.attr("transform",function(z){return Jm(0,z.model.height+Rl.axisExtentOffset)});var T=P.selectAll("."+Rl.cn.axisExtentBottomText).data($m,tg);T.enter().append("text").classed(Rl.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(lUe),T.text(function(z){return cUe(z,!1)}).each(function(z){qz.font(Bd.select(this),z.model.rangeFont)}),pUe.ensureAxisBrush(E,c,t)}});var OK=ye((zK,TUe)=>{"use strict";var tGt=_Ue(),rGt=wz(),xUe=kK().isVisible,wUe={};function bUe(e,t,r){var n=t.indexOf(r),i=e.indexOf(n);return i===-1&&(i+=t.length),i}function iGt(e,t){return function(n,i){return bUe(e,t,n)-bUe(e,t,i)}}var zK=TUe.exports=function(t,r){var n=t._fullLayout,i=rGt(t,[],wUe);if(i){var a={},o={},s={},l={},u=n._size;r.forEach(function(v,_){var b=v[0].trace;s[_]=b.index;var p=l[_]=b.index;a[_]=t.data[p].dimensions,o[_]=t.data[p].dimensions.slice()});var c=function(v,_,b){var p=o[v][_],C=b.map(function(M){return M.slice()}),E="dimensions["+_+"].constraintrange",A=n._tracePreGUI[t._fullData[s[v]]._fullInput.uid];if(A[E]===void 0){var L=p.constraintrange;A[E]=L||null}var x=t._fullData[s[v]].dimensions[_];C.length?(C.length===1&&(C=C[0]),p.constraintrange=C,x.constraintrange=C.slice(),C=[C]):(delete p.constraintrange,delete x.constraintrange,C=null);var k={};k[E]=C,t.emit("plotly_restyle",[k,[l[v]]])},f=function(v){t.emit("plotly_hover",v)},h=function(v){t.emit("plotly_unhover",v)},d=function(v,_){var b=iGt(_,o[v].filter(xUe));a[v].sort(b),o[v].filter(function(p){return!xUe(p)}).sort(function(p){return o[v].indexOf(p)}).forEach(function(p){a[v].splice(a[v].indexOf(p),1),a[v].splice(o[v].indexOf(p),0,p)}),t.emit("plotly_restyle",[{dimensions:[a[v]]},[l[v]]])};tGt(t,r,{width:u.w,height:u.h,margin:{t:u.t,r:u.r,b:u.b,l:u.l}},{filterChanged:c,hover:f,unhover:h,axesMoved:d})}};zK.reglPrecompiled=wUe});var SUe=ye(IC=>{"use strict";var AUe=Oa(),nGt=Id().getModuleCalcData,aGt=OK(),oGt=Wp();IC.name="parcoords";IC.plot=function(e){var t=nGt(e.calcdata,"parcoords")[0];t.length&&aGt(e,t)};IC.clean=function(e,t,r,n){var i=n._has&&n._has("parcoords"),a=t._has&&t._has("parcoords");i&&!a&&(n._paperdiv.selectAll(".parcoords").remove(),n._glimages.selectAll("*").remove())};IC.toSVG=function(e){var t=e._fullLayout._glimages,r=AUe.select(e).selectAll(".svg-container"),n=r.filter(function(a,o){return o===r.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function i(){var a=this,o=a.toDataURL("image/png"),s=t.append("svg:image");s.attr({xmlns:oGt.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}n.each(i),window.setTimeout(function(){AUe.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var EUe=ye((K1r,MUe)=>{"use strict";MUe.exports={attributes:bK(),supplyDefaults:NNe(),calc:VNe(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:SUe(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var LUe=ye((J1r,kUe)=>{"use strict";var CUe=EUe();CUe.plot=OK();kUe.exports=CUe});var IUe=ye(($1r,PUe)=>{"use strict";PUe.exports=LUe()});var qK=ye((Q1r,zUe)=>{"use strict";var DUe=Ao().extendFlat,sGt=Vl(),RUe=ec(),lGt=Tu(),FUe=Qo().hovertemplateAttrs,uGt=kc().attributes,cGt=DUe({editType:"calc"},lGt("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:FUe({editType:"plot",arrayOk:!1},{keys:["count","probability"]})});zUe.exports={domain:uGt({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:DUe({},sGt.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:FUe({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),arrangement:{valType:"enumerated",values:["perpendicular","freeform","fixed"],dflt:"perpendicular",editType:"plot"},bundlecolors:{valType:"boolean",dflt:!0,editType:"plot"},sortpaths:{valType:"enumerated",values:["forward","backward"],dflt:"forward",editType:"plot"},labelfont:RUe({editType:"calc"}),tickfont:RUe({autoShadowDflt:!0,editType:"calc"}),dimensions:{_isLinkedToArray:"dimension",label:{valType:"string",editType:"calc"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},values:{valType:"data_array",dflt:[],editType:"calc"},displayindex:{valType:"integer",editType:"calc"},editType:"calc",visible:{valType:"boolean",dflt:!0,editType:"calc"}},line:cGt,counts:{valType:"number",min:0,dflt:1,arrayOk:!0,editType:"calc"},customdata:void 0,hoverlabel:void 0,ids:void 0,legend:void 0,legendgroup:void 0,legendrank:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}});var BUe=ye((e_r,qUe)=>{"use strict";var _5=Dr(),fGt=Dv().hasColorscale,hGt=Jh(),dGt=kc().defaults,vGt=Yd(),OUe=qK(),pGt=Az(),gGt=vv().isTypedArraySpec;function mGt(e,t,r,n,i){i("line.shape"),i("line.hovertemplate");var a=i("line.color",n.colorway[0]);if(fGt(e,"line")&&_5.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),hGt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function yGt(e,t){function r(u,c){return _5.coerce(e,t,OUe.dimensions,u,c)}var n=r("values"),i=r("visible");if(n&&n.length||(i=t.visible=!1),i){r("label"),r("displayindex",t._index);var a=e.categoryarray,o=_5.isArrayOrTypedArray(a)&&a.length>0||gGt(a),s;o&&(s="array");var l=r("categoryorder",s);l==="array"?(r("categoryarray"),r("ticktext")):(delete e.categoryarray,delete e.ticktext),!o&&l==="array"&&(t.categoryorder="trace")}}qUe.exports=function(t,r,n,i){function a(u,c){return _5.coerce(t,r,OUe,u,c)}var o=vGt(t,r,{name:"dimensions",handleItemDefaults:yGt}),s=mGt(t,r,n,i,a);dGt(r,i,a),(!Array.isArray(o)||!o.length)&&(r.visible=!1),pGt(r,o,"values",s),a("hoveron"),a("hovertemplate"),a("arrangement"),a("bundlecolors"),a("sortpaths"),a("counts");var l=i.font;_5.coerceFont(a,"labelfont",l,{overrideDflt:{size:Math.round(l.size)}}),_5.coerceFont(a,"tickfont",l,{autoShadowDflt:!0,overrideDflt:{size:Math.round(l.size/1.2)}})}});var UUe=ye((t_r,NUe)=>{"use strict";var _Gt=Km().wrap,xGt=Dv().hasColorscale,bGt=Fv(),wGt=ZO(),TGt=So(),RC=Dr(),AGt=Eo();NUe.exports=function(t,r){var n=RC.filterVisible(r.dimensions);if(n.length===0)return[];var i=n.map(function(g){var P;if(g.categoryorder==="trace")P=null;else if(g.categoryorder==="array")P=g.categoryarray;else{P=wGt(g.values);for(var T=!0,z=0;z=e.length||t[e[r]]!==void 0)return!1;t[e[r]]=!0}return!0}});var KUe=ye((r_r,YUe)=>{"use strict";var Dl=Oa(),FGt=(R2(),B1(I2)).interpolateNumber,zGt=NP(),zC=vf(),yx=Dr(),DC=yx.strTranslate,VUe=So(),BK=cd(),OGt=iu();function qGt(e,t,r,n){var i=t._context.staticPlot,a=e.map(QGt.bind(0,t,r)),o=n.selectAll("g.parcatslayer").data([null]);o.enter().append("g").attr("class","parcatslayer").style("pointer-events",i?"none":"all");var s=o.selectAll("g.trace.parcats").data(a,u1),l=s.enter().append("g").attr("class","trace parcats");s.attr("transform",function(C){return DC(C.x,C.y)}),l.append("g").attr("class","paths");var u=s.select("g.paths"),c=u.selectAll("path.path").data(function(C){return C.paths},u1);c.attr("fill",function(C){return C.model.color});var f=c.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(C){return C.model.color}).attr("fill-opacity",0);VK(f),c.attr("d",function(C){return C.svgD}),f.empty()||c.sort(NK),c.exit().remove(),c.on("mouseover",BGt).on("mouseout",NGt).on("click",UGt),l.append("g").attr("class","dimensions");var h=s.select("g.dimensions"),d=h.selectAll("g.dimension").data(function(C){return C.dimensions},u1);d.enter().append("g").attr("class","dimension"),d.attr("transform",function(C){return DC(C.x,0)}),d.exit().remove();var v=d.selectAll("g.category").data(function(C){return C.categories},u1),_=v.enter().append("g").attr("class","category");v.attr("transform",function(C){return DC(0,C.y)}),_.append("rect").attr("class","catrect").attr("pointer-events","none"),v.select("rect.catrect").attr("fill","none").attr("width",function(C){return C.width}).attr("height",function(C){return C.height}),HUe(_);var b=v.selectAll("rect.bandrect").data(function(C){return C.bands},u1);b.each(function(){yx.raiseToTop(this)}),b.attr("fill",function(C){return C.color});var p=b.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(C){return C.color}).attr("fill-opacity",0);b.attr("fill",function(C){return C.color}).attr("width",function(C){return C.width}).attr("height",function(C){return C.height}).attr("y",function(C){return C.y}).attr("cursor",function(C){return C.parcatsViewModel.arrangement==="fixed"?"default":C.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),HK(p),b.exit().remove(),_.append("text").attr("class","catlabel").attr("pointer-events","none"),v.select("text.catlabel").attr("text-anchor",function(C){return FC(C)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(C){return FC(C)?C.width+5:-5}).attr("y",function(C){return C.height/2}).text(function(C){return C.model.categoryLabel}).each(function(C){VUe.font(Dl.select(this),C.parcatsViewModel.categorylabelfont),OGt.convertToTspans(Dl.select(this),t)}),_.append("text").attr("class","dimlabel"),v.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(C){return C.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(C){return C.width/2}).attr("y",-5).text(function(C,E){return E===0?C.parcatsViewModel.model.dimensions[C.model.dimensionInd].dimensionLabel:null}).each(function(C){VUe.font(Dl.select(this),C.parcatsViewModel.labelfont)}),v.selectAll("rect.bandrect").on("mouseover",ZGt).on("mouseout",YGt),v.exit().remove(),d.call(Dl.behavior.drag().origin(function(C){return{x:C.x,y:0}}).on("dragstart",KGt).on("drag",JGt).on("dragend",$Gt)),s.each(function(C){C.traceSelection=Dl.select(this),C.pathSelection=Dl.select(this).selectAll("g.paths").selectAll("path.path"),C.dimensionSelection=Dl.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),s.exit().remove()}YUe.exports=function(e,t,r,n){qGt(r,e,n,t)};function u1(e){return e.key}function FC(e){var t=e.parcatsViewModel.dimensions.length,r=e.parcatsViewModel.dimensions[t-1].model.dimensionInd;return e.model.dimensionInd===r}function NK(e,t){return e.model.rawColor>t.model.rawColor?1:e.model.rawColor"),x=Dl.mouse(i)[0];zC.loneHover({trace:a,x:v-s.left+l.left,y:_-s.top+l.top,text:L,color:e.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:b,idealAlign:x1&&u.displayInd===l.dimensions.length-1?(h=o.left,d="left"):(h=o.left+o.width,d="right");var v=s.model.count,_=s.model.categoryLabel,b=v/s.parcatsViewModel.model.count,p={countLabel:v,categoryLabel:_,probabilityLabel:b.toFixed(3)},C=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&C.push(["Count:",p.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&C.push(["P("+p.categoryLabel+"):",p.probabilityLabel].join(" "));var E=C.join("
");return{trace:c,x:n*(h-t.left),y:i*(f-t.top),text:E,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:d,hovertemplate:c.hovertemplate,hovertemplateLabels:p,eventData:[{data:c._input,fullData:c,count:v,category:_,probability:b}]}}function WGt(e,t,r){var n=[];return Dl.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var i=this;n.push(jUe(e,t,i))}),n}function XGt(e,t,r){e._fullLayout._calcInverseTransform(e);var n=e._fullLayout._invScaleX,i=e._fullLayout._invScaleY,a=r.getBoundingClientRect(),o=Dl.select(r).datum(),s=o.categoryViewModel,l=s.parcatsViewModel,u=l.model.dimensions[s.model.dimensionInd],c=l.trace,f=a.y+a.height/2,h,d;l.dimensions.length>1&&u.displayInd===l.dimensions.length-1?(h=a.left,d="left"):(h=a.left+a.width,d="right");var v=s.model.categoryLabel,_=o.parcatsViewModel.model.count,b=0;o.categoryViewModel.bands.forEach(function(P){P.color===o.color&&(b+=P.count)});var p=s.model.count,C=0;l.pathSelection.each(function(P){P.model.color===o.color&&(C+=P.model.count)});var E=b/_,A=b/C,L=b/p,x={countLabel:b,categoryLabel:v,probabilityLabel:E.toFixed(3)},k=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&k.push(["Count:",x.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(k.push("P(color \u2229 "+v+"): "+x.probabilityLabel),k.push("P("+v+" | color): "+A.toFixed(3)),k.push("P(color | "+v+"): "+L.toFixed(3)));var M=k.join("
"),g=BK.mostReadable(o.color,["black","white"]);return{trace:c,x:n*(h-t.left),y:i*(f-t.top),text:M,color:o.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:g,fontSize:10,idealAlign:d,hovertemplate:c.hovertemplate,hovertemplateLabels:x,eventData:[{data:c._input,fullData:c,category:v,count:_,probability:E,categorycount:p,colorcount:C,bandcolorcount:b}]}}function ZGt(e){if(!e.parcatsViewModel.dragDimension&&e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var t=Dl.mouse(this)[1];if(t<-1)return;var r=e.parcatsViewModel.graphDiv,n=r._fullLayout,i=n._paperdiv.node().getBoundingClientRect(),a=e.parcatsViewModel.hoveron,o=this;if(a==="color"?(jGt(o),WK(o,"plotly_hover",Dl.event)):(HGt(o),jK(o,"plotly_hover",Dl.event)),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var s;a==="category"?s=jUe(r,i,o):a==="color"?s=XGt(r,i,o):a==="dimension"&&(s=WGt(r,i,o)),s&&zC.loneHover(s,{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:r})}}}function YGt(e){var t=e.parcatsViewModel;if(!t.dragDimension&&(VK(t.pathSelection),HUe(t.dimensionSelection.selectAll("g.category")),HK(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),zC.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(NK),t.hoverinfoItems.indexOf("skip")===-1)){var r=e.parcatsViewModel.hoveron,n=this;r==="color"?WK(n,"plotly_unhover",Dl.event):jK(n,"plotly_unhover",Dl.event)}}function KGt(e){e.parcatsViewModel.arrangement!=="fixed"&&(e.dragDimensionDisplayInd=e.model.displayInd,e.initialDragDimensionDisplayInds=e.parcatsViewModel.model.dimensions.map(function(t){return t.displayInd}),e.dragHasMoved=!1,e.dragCategoryDisplayInd=null,Dl.select(this).selectAll("g.category").select("rect.catrect").each(function(t){var r=Dl.mouse(this)[0],n=Dl.mouse(this)[1];-2<=r&&r<=t.width+2&&-2<=n&&n<=t.height+2&&(e.dragCategoryDisplayInd=t.model.displayInd,e.initialDragCategoryDisplayInds=e.model.categories.map(function(i){return i.displayInd}),t.model.dragY=t.y,yx.raiseToTop(this.parentNode),Dl.select(this.parentNode).selectAll("rect.bandrect").each(function(i){i.yc.y+c.height/2&&(a.model.displayInd=c.model.displayInd,c.model.displayInd=s),e.dragCategoryDisplayInd=a.model.displayInd}if(e.dragCategoryDisplayInd===null||e.parcatsViewModel.arrangement==="freeform"){i.model.dragX=Dl.event.x;var f=e.parcatsViewModel.dimensions[r],h=e.parcatsViewModel.dimensions[n];f!==void 0&&i.model.dragXh.x&&(i.model.displayInd=h.model.displayInd,h.model.displayInd=e.dragDimensionDisplayInd),e.dragDimensionDisplayInd=i.model.displayInd}ZK(e.parcatsViewModel),XK(e.parcatsViewModel),ZUe(e.parcatsViewModel),XUe(e.parcatsViewModel)}}function $Gt(e){if(e.parcatsViewModel.arrangement!=="fixed"&&e.dragDimensionDisplayInd!==null){Dl.select(this).selectAll("text").attr("font-weight","normal");var t={},r=WUe(e.parcatsViewModel),n=e.parcatsViewModel.model.dimensions.map(function(h){return h.displayInd}),i=e.initialDragDimensionDisplayInds.some(function(h,d){return h!==n[d]});i&&n.forEach(function(h,d){var v=e.parcatsViewModel.model.dimensions[d].containerInd;t["dimensions["+v+"].displayindex"]=h});var a=!1;if(e.dragCategoryDisplayInd!==null){var o=e.model.categories.map(function(h){return h.displayInd});if(a=e.initialDragCategoryDisplayInds.some(function(h,d){return h!==o[d]}),a){var s=e.model.categories.slice().sort(function(h,d){return h.displayInd-d.displayInd}),l=s.map(function(h){return h.categoryValue}),u=s.map(function(h){return h.categoryLabel});t["dimensions["+e.model.containerInd+"].categoryarray"]=[l],t["dimensions["+e.model.containerInd+"].ticktext"]=[u],t["dimensions["+e.model.containerInd+"].categoryorder"]="array"}}if(e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!e.dragHasMoved&&e.potentialClickBand&&(e.parcatsViewModel.hoveron==="color"?WK(e.potentialClickBand,"plotly_click",Dl.event.sourceEvent):jK(e.potentialClickBand,"plotly_click",Dl.event.sourceEvent)),e.model.dragX=null,e.dragCategoryDisplayInd!==null){var c=e.parcatsViewModel.dimensions[e.dragDimensionDisplayInd].categories[e.dragCategoryDisplayInd];c.model.dragY=null,e.dragCategoryDisplayInd=null}e.dragDimensionDisplayInd=null,e.parcatsViewModel.dragDimension=null,e.dragHasMoved=null,e.potentialClickBand=null,ZK(e.parcatsViewModel),XK(e.parcatsViewModel);var f=Dl.transition().duration(300).ease("cubic-in-out");f.each(function(){ZUe(e.parcatsViewModel,!0),XUe(e.parcatsViewModel,!0)}).each("end",function(){(i||a)&&zGt.restyle(e.parcatsViewModel.graphDiv,t,[r])})}}function WUe(e){for(var t,r=e.graphDiv._fullData,n=0;n=0;l--)u+="C"+o[l]+","+(t[l+1]+n)+" "+a[l]+","+(t[l]+n)+" "+(e[l]+r[l])+","+(t[l]+n),u+="l-"+r[l]+",0 ";return u+="Z",u}function XK(e){var t=e.dimensions,r=e.model,n=t.map(function(O){return O.categories.map(function(V){return V.y})}),i=e.model.dimensions.map(function(O){return O.categories.map(function(V){return V.displayInd})}),a=e.model.dimensions.map(function(O){return O.displayInd}),o=e.dimensions.map(function(O){return O.model.dimensionInd}),s=t.map(function(O){return O.x}),l=t.map(function(O){return O.width}),u=[];for(var c in r.paths)r.paths.hasOwnProperty(c)&&u.push(r.paths[c]);function f(O){var V=O.categoryInds.map(function(Z,H){return i[H][Z]}),G=o.map(function(Z){return V[Z]});return G}u.sort(function(O,V){var G=f(O),Z=f(V);return e.sortpaths==="backward"&&(G.reverse(),Z.reverse()),G.push(O.valueInds[0]),Z.push(V.valueInds[0]),e.bundlecolors&&(G.unshift(O.rawColor),Z.unshift(V.rawColor)),GZ?1:0});for(var h=new Array(u.length),d=t[0].model.count,v=t[0].categories.map(function(O){return O.height}).reduce(function(O,V){return O+V}),_=0;_0?p=v*(b.count/d):p=0;for(var C=new Array(n.length),E=0;E1?o=(e.width-2*r-n)/(i-1):o=0,s=r,l=s+o*a;var u=[],c=e.model.maxCats,f=t.categories.length,h=8,d=t.count,v=e.height-h*(c-1),_,b,p,C,E,A=(c-f)*h/2,L=t.categories.map(function(x){return{displayInd:x.displayInd,categoryInd:x.categoryInd}});for(L.sort(function(x,k){return x.displayInd-k.displayInd}),E=0;E0?_=b.count/d*v:_=0,p={key:b.valueInds[0],model:b,width:n,height:_,y:b.dragY!==null?b.dragY:A,bands:[],parcatsViewModel:e},A=A+_+h,u.push(p);return{key:t.dimensionInd,x:t.dragX!==null?t.dragX:l,y:0,width:n,model:t,categories:u,parcatsViewModel:e,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}});var YK=ye((i_r,JUe)=>{"use strict";var tHt=KUe();JUe.exports=function(t,r,n,i){var a=t._fullLayout,o=a._paper,s=a._size;tHt(t,o,r,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},n,i)}});var QUe=ye(Uz=>{"use strict";var rHt=Id().getModuleCalcData,iHt=YK(),$Ue="parcats";Uz.name=$Ue;Uz.plot=function(e,t,r,n){var i=rHt(e.calcdata,$Ue);if(i.length){var a=i[0];iHt(e,a,r,n)}};Uz.clean=function(e,t,r,n){var i=n._has&&n._has("parcats"),a=t._has&&t._has("parcats");i&&!a&&n._paperdiv.selectAll(".parcats").remove()}});var tVe=ye((a_r,eVe)=>{"use strict";eVe.exports={attributes:qK(),supplyDefaults:BUe(),calc:UUe(),plot:YK(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:QUe(),categories:["noOpacity"],meta:{}}});var iVe=ye((o_r,rVe)=>{"use strict";rVe.exports=tVe()});var c1=ye((s_r,cVe)=>{"use strict";var nHt=Y1(),nVe="1.13.4",lVe='\xA9 OpenStreetMap contributors',aVe=['\xA9 Carto',lVe].join(" "),oVe=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),aHt=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),uVe={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:lVe,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:aVe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:aVe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:oVe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:oVe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:aHt,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},sVe=nHt(uVe);cVe.exports={requiredVersion:nVe,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:uVe,styleValuesNonMapbox:sVe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+nVe+"."].join(` `),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join(` -`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",oVe.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` +`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",sVe.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` `),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join(` -`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}});var FC=ye((n_r,dVe)=>{"use strict";var cVe=Dr(),fVe=Ca().defaultLine,tHt=kc().attributes,rHt=ec(),iHt=vf().textposition,nHt=mc().overrideAll,aHt=pl().templatedArray,YK=c1(),hVe=rHt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});hVe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var oHt=dVe.exports=nHt({_arrayAttrRegexps:[cVe.counterRegex("mapbox",".layers",!0)],domain:tHt({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:YK.styleValuesMapbox.concat(YK.styleValuesNonMapbox),dflt:YK.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:aHt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:fVe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:fVe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:hVe,textposition:cVe.extendFlat({},iHt,{arrayOk:!1})}})},"plot","from-root");oHt.uirevision={valType:"any",editType:"none"}});var Vz=ye((a_r,gVe)=>{"use strict";var sHt=rs().hovertemplateAttrs,lHt=rs().texttemplateAttrs,uHt=Eg(),zC=G2(),x5=vf(),vVe=FC(),cHt=Vl(),fHt=Tu(),ew=Ao().extendFlat,hHt=mc().overrideAll,dHt=FC(),pVe=zC.line,b5=zC.marker;gVe.exports=hHt({lon:zC.lon,lat:zC.lat,cluster:{enabled:{valType:"boolean"},maxzoom:ew({},dHt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:ew({},b5.opacity,{dflt:1})},mode:ew({},x5.mode,{dflt:"markers"}),text:ew({},x5.text,{}),texttemplate:lHt({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:ew({},x5.hovertext,{}),line:{color:pVe.color,width:pVe.width},connectgaps:x5.connectgaps,marker:ew({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:b5.opacity,size:b5.size,sizeref:b5.sizeref,sizemin:b5.sizemin,sizemode:b5.sizemode},fHt("marker")),fill:zC.fill,fillcolor:uHt(),textfont:vVe.layers.symbol.textfont,textposition:vVe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:x5.selected.marker},unselected:{marker:x5.unselected.marker},hoverinfo:ew({},cHt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:sHt()},"calc","nested")});var KK=ye((o_r,mVe)=>{"use strict";var vHt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];mVe.exports={isSupportedFont:function(e){return vHt.indexOf(e)!==-1}}});var xVe=ye((s_r,_Ve)=>{"use strict";var OC=Dr(),JK=Ru(),pHt=$p(),gHt=R0(),mHt=D0(),yHt=Ig(),yVe=Vz(),_Ht=KK().isSupportedFont;_Ve.exports=function(t,r,n,i){function a(p,C){return OC.coerce(t,r,yVe,p,C)}function o(p,C){return OC.coerce2(t,r,yVe,p,C)}var s=xHt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("hovertext"),a("hovertemplate"),a("mode"),a("below"),JK.hasMarkers(r)){pHt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var l=r.marker;l.symbol!=="circle"&&(OC.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),OC.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}JK.hasLines(r)&&(gHt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var u=o("cluster.maxzoom"),c=o("cluster.step"),f=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),v=u!==!1||c!==!1||f!==!1||h!==!1||d!==!1,x=a("cluster.enabled",v);if(x||JK.hasText(r)){var b=i.font.family;mHt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:_Ht(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&yHt(t,r,n,a),OC.coerceSelectionMarkerOpacity(r,a)};function xHt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var $K=ye((l_r,wVe)=>{"use strict";var bVe=ho();wVe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=bVe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=bVe.tickText(o,o.c2l(s[1]),!0).text,i}});var QK=ye((u_r,AVe)=>{"use strict";var TVe=Dr();AVe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=TVe.isArrayOrTypedArray(r)?TVe.mean(r):r,s=.5+o/100,l=1.5+o/100,u=["",""],c=[0,0];switch(i){case"top":u[0]="top",c[1]=-l;break;case"bottom":u[0]="bottom",c[1]=l;break}switch(a){case"left":u[1]="right",c[0]=-s;break;case"right":u[1]="left",c[0]=s;break}var f;return u[0]&&u[1]?f=u.join("-"):u[0]?f=u[0]:u[1]?f=u[1]:f="center",{anchor:f,offset:c}}});var LVe=ye((c_r,kVe)=>{"use strict";var EVe=Eo(),av=Dr(),bHt=hs().BADNUM,Hz=rx(),SVe=tc(),wHt=So(),THt=S3(),jz=Ru(),AHt=KK().isSupportedFont,SHt=QK(),MHt=rp().appendArrayPointValue,EHt=iu().NEWLINES,CHt=iu().BR_TAG_ALL;kVe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=jz.hasLines(n),s=jz.hasMarkers(n),l=jz.hasText(n),u=s&&n.marker.symbol==="circle",c=s&&n.marker.symbol!=="circle",f=n.cluster&&n.cluster.enabled,h=Gz("fill"),d=Gz("line"),v=Gz("circle"),x=Gz("symbol"),b={fill:h,line:d,circle:v,symbol:x};if(!i)return b;var p;if((a||o)&&(p=Hz.calcTraceToLineCoords(r)),a&&(h.geojson=Hz.makePolygon(p),h.layout.visibility="visible",av.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=Hz.makeLine(p),d.layout.visibility="visible",av.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),u){var C=kHt(r);v.geojson=C.geojson,v.layout.visibility="visible",f&&(v.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":tJ(n.cluster.color,n.cluster.step),"circle-radius":tJ(n.cluster.size,n.cluster.step),"circle-opacity":tJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":MVe(n),"text-size":12}}),av.extendFlat(v.paint,{"circle-color":C.mcc,"circle-radius":C.mrc,"circle-opacity":C.mo})}if(u&&f&&(v.filter=["!",["has","point_count"]]),(c||l)&&(x.geojson=LHt(r,t),av.extendFlat(x.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),c&&(av.extendFlat(x.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&av.extendFlat(x.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),x.layout["icon-allow-overlap"]=n.marker.allowoverlap,av.extendFlat(x.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),l)){var E=(n.marker||{}).size,A=SHt(n.textposition,E);av.extendFlat(x.layout,{"text-size":n.textfont.size,"text-anchor":A.anchor,"text-offset":A.offset,"text-font":MVe(n)}),av.extendFlat(x.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function Gz(e){return{type:e,geojson:Hz.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function kHt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=av.isArrayOrTypedArray(r.color),a=av.isArrayOrTypedArray(r.size),o=av.isArrayOrTypedArray(r.opacity),s;function l(E){return t.opacity*E}function u(E){return E/2}var c;i&&(SVe.hasColorscale(t,"marker")?c=SVe.makeColorScaleFuncFromTrace(r):c=av.identity);var f;a&&(f=THt(t));var h;o&&(h=function(E){var A=EVe(E)?+av.constrain(E,0,1):0;return l(A)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),AHt(s)||(s=r);var l=s.split(", ");return l}});var DVe=ye((f_r,RVe)=>{"use strict";var PHt=Dr(),PVe=LVe(),w5=c1().traceLayerPrefix,rg={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function IVe(e,t,r,n){this.type="scattermapbox",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:w5+t+"-fill",line:w5+t+"-line",circle:w5+t+"-circle",symbol:w5+t+"-symbol",cluster:w5+t+"-cluster",clusterCount:w5+t+"-cluster-count"},this.below=null}var qC=IVe.prototype;qC.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&PHt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};qC.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};qC.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var _=A[L];i.removeLayer(u.layerIds[_])}E||i.removeSource(u.sourceIds.circle)}function h(E){for(var A=rg.nonCluster,L=0;L=0;L--){var _=A[L];i.removeLayer(u.layerIds[_]),E||i.removeSource(u.sourceIds[_])}}function v(E){l?f(E):d(E)}function x(E){s?c(E):h(E)}function b(){for(var E=s?rg.cluster:rg.nonCluster,A=0;A=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};RVe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new IVe(t,n.uid,i,a),s=PVe(t.gd,r),l=o.below=t.belowLookup["trace-"+n.uid],u,c,f;if(i)for(o.addSource("circle",s.circle,n.cluster),u=0;u{"use strict";var IHt=df(),rJ=Dr(),RHt=oT(),DHt=rJ.fillText,FHt=hs().BADNUM,zHt=c1().traceLayerPrefix;function OHt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=zHt+i.uid+"-circle",c=i.cluster&&i.cluster.enabled;if(c){var f=s.map.queryRenderedFeatures(null,{layers:[u]});l=f.map(function(M){return M.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,v=t-d;function x(M){var g=M.lonlat;if(g[0]===FHt||c&&l.indexOf(M.i+1)===-1)return 1/0;var P=rJ.modHalf(g[0],360),T=g[1],z=s.project([P,T]),O=z.x-a.c2p([v,T]),V=z.y-o.c2p([P,r]),G=Math.max(3,M.mrc||0);return Math.max(Math.sqrt(O*O+V*V)-G,1-3/G)}if(IHt.getClosest(n,x,e),e.index!==!1){var b=n[e.index],p=b.lonlat,C=[rJ.modHalf(p[0],360)+d,p[1]],E=a.c2p(C),A=o.c2p(C),L=b.mrc||1;e.x0=E-L,e.x1=E+L,e.y0=A-L,e.y1=A+L;var _={};_[i.subplot]={_subplot:s};var k=i._module.formatLabels(b,i,_);return e.lonLabel=k.lonLabel,e.latLabel=k.latLabel,e.color=RHt(i,b),e.extraText=FVe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function FVe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,l=t.lonlat,u=[];function c(f){return f+"\xB0"}return a||o&&s?u.push("("+c(l[1])+", "+c(l[0])+")"):o?u.push(r.lon+c(l[0])):s&&u.push(r.lat+c(l[1])),(a||i.indexOf("text")!==-1)&&DHt(t,e,u),u.join("
")}zVe.exports={hoverPoints:OHt,getExtraText:FVe}});var qVe=ye((d_r,OVe)=>{"use strict";OVe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var NVe=ye((v_r,BVe)=>{"use strict";var qHt=Dr(),BHt=Ru(),NHt=hs().BADNUM;BVe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l;if(!BHt.hasMarkers(s))return[];if(r===!1)for(l=0;l{(function(e,t){typeof iJ=="object"&&typeof nJ!="undefined"?nJ.exports=t():(e=e||self,e.mapboxgl=t())})(iJ,function(){"use strict";var e,t,r;function n(i,a){if(!e)e=a;else if(!t)t=a;else{var o="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",s={};e(s),r=a(s),typeof window!="undefined"&&(r.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}}return n(["exports"],function(i){"use strict";function a(m,y){return y={exports:{}},m(y,y.exports),y.exports}var o="1.13.4",s=l;function l(m,y,I,U){this.cx=3*m,this.bx=3*(I-m)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*y,this.by=3*(U-y)-this.cy,this.ay=1-this.cy-this.by,this.p1x=m,this.p1y=U,this.p2x=I,this.p2y=U}l.prototype.sampleCurveX=function(m){return((this.ax*m+this.bx)*m+this.cx)*m},l.prototype.sampleCurveY=function(m){return((this.ay*m+this.by)*m+this.cy)*m},l.prototype.sampleCurveDerivativeX=function(m){return(3*this.ax*m+2*this.bx)*m+this.cx},l.prototype.solveCurveX=function(m,y){typeof y=="undefined"&&(y=1e-6);var I,U,$,ae,he;for($=m,he=0;he<8;he++){if(ae=this.sampleCurveX($)-m,Math.abs(ae)U)return U;for(;Iae?I=$:U=$,$=(U-I)*.5+I}return $},l.prototype.solve=function(m,y){return this.sampleCurveY(this.solveCurveX(m,y))};var u=c;function c(m,y){this.x=m,this.y=y}c.prototype={clone:function(){return new c(this.x,this.y)},add:function(m){return this.clone()._add(m)},sub:function(m){return this.clone()._sub(m)},multByPoint:function(m){return this.clone()._multByPoint(m)},divByPoint:function(m){return this.clone()._divByPoint(m)},mult:function(m){return this.clone()._mult(m)},div:function(m){return this.clone()._div(m)},rotate:function(m){return this.clone()._rotate(m)},rotateAround:function(m,y){return this.clone()._rotateAround(m,y)},matMult:function(m){return this.clone()._matMult(m)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(m){return this.x===m.x&&this.y===m.y},dist:function(m){return Math.sqrt(this.distSqr(m))},distSqr:function(m){var y=m.x-this.x,I=m.y-this.y;return y*y+I*I},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(m){return Math.atan2(this.y-m.y,this.x-m.x)},angleWith:function(m){return this.angleWithSep(m.x,m.y)},angleWithSep:function(m,y){return Math.atan2(this.x*y-this.y*m,this.x*m+this.y*y)},_matMult:function(m){var y=m[0]*this.x+m[1]*this.y,I=m[2]*this.x+m[3]*this.y;return this.x=y,this.y=I,this},_add:function(m){return this.x+=m.x,this.y+=m.y,this},_sub:function(m){return this.x-=m.x,this.y-=m.y,this},_mult:function(m){return this.x*=m,this.y*=m,this},_div:function(m){return this.x/=m,this.y/=m,this},_multByPoint:function(m){return this.x*=m.x,this.y*=m.y,this},_divByPoint:function(m){return this.x/=m.x,this.y/=m.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var m=this.y;return this.y=this.x,this.x=-m,this},_rotate:function(m){var y=Math.cos(m),I=Math.sin(m),U=y*this.x-I*this.y,$=I*this.x+y*this.y;return this.x=U,this.y=$,this},_rotateAround:function(m,y){var I=Math.cos(m),U=Math.sin(m),$=y.x+I*(this.x-y.x)-U*(this.y-y.y),ae=y.y+U*(this.x-y.x)+I*(this.y-y.y);return this.x=$,this.y=ae,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},c.convert=function(m){return m instanceof c?m:Array.isArray(m)?new c(m[0],m[1]):m};var f=typeof self!="undefined"?self:{};function h(m,y){if(Array.isArray(m)){if(!Array.isArray(y)||m.length!==y.length)return!1;for(var I=0;I=1)return 1;var y=m*m,I=y*m;return 4*(m<.5?I:3*(m-y)+I-.75)}function x(m,y,I,U){var $=new s(m,y,I,U);return function(ae){return $.solve(ae)}}var b=x(.25,.1,.25,1);function p(m,y,I){return Math.min(I,Math.max(y,m))}function C(m,y,I){var U=I-y,$=((m-y)%U+U)%U+y;return $===y?I:$}function E(m,y,I){if(!m.length)return I(null,[]);var U=m.length,$=new Array(m.length),ae=null;m.forEach(function(he,Oe){y(he,function(rt,vt){rt&&(ae=rt),$[Oe]=vt,--U===0&&I(ae,$)})})}function A(m){var y=[];for(var I in m)y.push(m[I]);return y}function L(m,y){var I=[];for(var U in m)U in y||I.push(U);return I}function _(m){for(var y=[],I=arguments.length-1;I-- >0;)y[I]=arguments[I+1];for(var U=0,$=y;U<$.length;U+=1){var ae=$[U];for(var he in ae)m[he]=ae[he]}return m}function k(m,y){for(var I={},U=0;U>y/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,m)}return m()}function T(m){return m<=1?1:Math.pow(2,Math.ceil(Math.log(m)/Math.LN2))}function z(m){return m?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(m):!1}function O(m,y){m.forEach(function(I){y[I]&&(y[I]=y[I].bind(y))})}function V(m,y){return m.indexOf(y,m.length-y.length)!==-1}function G(m,y,I){var U={};for(var $ in m)U[$]=y.call(I||this,m[$],$,m);return U}function Z(m,y,I){var U={};for(var $ in m)y.call(I||this,m[$],$,m)&&(U[$]=m[$]);return U}function H(m){return Array.isArray(m)?m.map(H):typeof m=="object"&&m?G(m,H):m}function N(m,y){for(var I=0;I=0)return!0;return!1}var j={};function re(m){j[m]||(typeof console!="undefined"&&console.warn(m),j[m]=!0)}function oe(m,y,I){return(I.y-m.y)*(y.x-m.x)>(y.y-m.y)*(I.x-m.x)}function _e(m){for(var y=0,I=0,U=m.length,$=U-1,ae=void 0,he=void 0;I@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,I={};if(m.replace(y,function($,ae,he,Oe){var rt=he||Oe;return I[ae]=rt?rt.toLowerCase():!0,""}),I["max-age"]){var U=parseInt(I["max-age"],10);isNaN(U)?delete I["max-age"]:I["max-age"]=U}return I}var ie=null;function Se(m){if(ie==null){var y=m.navigator?m.navigator.userAgent:null;ie=!!m.safari||!!(y&&(/\b(iPad|iPhone|iPod)\b/.test(y)||y.match("Safari")&&!y.match("Chrome")))}return ie}function Le(m){try{var y=f[m];return y.setItem("_mapbox_test_",1),y.removeItem("_mapbox_test_"),!0}catch(I){return!1}}function Ae(m){return f.btoa(encodeURIComponent(m).replace(/%([0-9A-F]{2})/g,function(y,I){return String.fromCharCode(+("0x"+I))}))}function Fe(m){return decodeURIComponent(f.atob(m).split("").map(function(y){return"%"+("00"+y.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var Pe=f.performance&&f.performance.now?f.performance.now.bind(f.performance):Date.now.bind(Date),ge=f.requestAnimationFrame||f.mozRequestAnimationFrame||f.webkitRequestAnimationFrame||f.msRequestAnimationFrame,De=f.cancelAnimationFrame||f.mozCancelAnimationFrame||f.webkitCancelAnimationFrame||f.msCancelAnimationFrame,ce,Ze,ut={now:Pe,frame:function(y){var I=ge(y);return{cancel:function(){return De(I)}}},getImageData:function(y,I){I===void 0&&(I=0);var U=f.document.createElement("canvas"),$=U.getContext("2d");if(!$)throw new Error("failed to create canvas 2d context");return U.width=y.width,U.height=y.height,$.drawImage(y,0,0,y.width,y.height),$.getImageData(-I,-I,y.width+2*I,y.height+2*I)},resolveURL:function(y){return ce||(ce=f.document.createElement("a")),ce.href=y,ce.href},hardwareConcurrency:f.navigator&&f.navigator.hardwareConcurrency||4,get devicePixelRatio(){return f.devicePixelRatio},get prefersReducedMotion(){return f.matchMedia?(Ze==null&&(Ze=f.matchMedia("(prefers-reduced-motion: reduce)")),Ze.matches):!1}},gt={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Kt={supported:!1,testSupport:$t},st,lt=!1,Gt,Ut=!1;f.document&&(Gt=f.document.createElement("img"),Gt.onload=function(){st&&sr(st),st=null,Ut=!0},Gt.onerror=function(){lt=!0,st=null},Gt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function $t(m){lt||!Gt||(Ut?sr(m):st=m)}function sr(m){var y=m.createTexture();m.bindTexture(m.TEXTURE_2D,y);try{if(m.texImage2D(m.TEXTURE_2D,0,m.RGBA,m.RGBA,m.UNSIGNED_BYTE,Gt),m.isContextLost())return;Kt.supported=!0}catch(I){}m.deleteTexture(y),lt=!0}var Tr="01";function ur(){for(var m="1",y="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",I="",U=0;U<10;U++)I+=y[Math.floor(Math.random()*62)];var $=12*60*60*1e3,ae=[m,Tr,I].join(""),he=Date.now()+$;return{token:ae,tokenExpiresAt:he}}var $e=function(y,I){this._transformRequestFn=y,this._customAccessToken=I,this._createSkuToken()};$e.prototype._createSkuToken=function(){var y=ur();this._skuToken=y.token,this._skuTokenExpiresAt=y.tokenExpiresAt},$e.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},$e.prototype.transformRequest=function(y,I){return this._transformRequestFn?this._transformRequestFn(y,I)||{url:y}:{url:y}},$e.prototype.normalizeStyleURL=function(y,I){if(!Mt(y))return y;var U=rr(y);return U.path="/styles/v1"+U.path,this._makeAPIURL(U,this._customAccessToken||I)},$e.prototype.normalizeGlyphsURL=function(y,I){if(!Mt(y))return y;var U=rr(y);return U.path="/fonts/v1"+U.path,this._makeAPIURL(U,this._customAccessToken||I)},$e.prototype.normalizeSourceURL=function(y,I){if(!Mt(y))return y;var U=rr(y);return U.path="/v4/"+U.authority+".json",U.params.push("secure"),this._makeAPIURL(U,this._customAccessToken||I)},$e.prototype.normalizeSpriteURL=function(y,I,U,$){var ae=rr(y);return Mt(y)?(ae.path="/styles/v1"+ae.path+"/sprite"+I+U,this._makeAPIURL(ae,this._customAccessToken||$)):(ae.path+=""+I+U,lr(ae))},$e.prototype.normalizeTileURL=function(y,I){if(this._isSkuTokenExpired()&&this._createSkuToken(),y&&!Mt(y))return y;var U=rr(y),$=/(\.(png|jpg)\d*)(?=$)/,ae=/^.+\/v4\//,he=ut.devicePixelRatio>=2||I===512?"@2x":"",Oe=Kt.supported?".webp":"$1";U.path=U.path.replace($,""+he+Oe),U.path=U.path.replace(ae,"/"),U.path="/v4"+U.path;var rt=this._customAccessToken||Ot(U.params)||gt.ACCESS_TOKEN;return gt.REQUIRE_ACCESS_TOKEN&&rt&&this._skuToken&&U.params.push("sku="+this._skuToken),this._makeAPIURL(U,rt)},$e.prototype.canonicalizeTileURL=function(y,I){var U="/v4/",$=/\.[\w]+$/,ae=rr(y);if(!ae.path.match(/(^\/v4\/)/)||!ae.path.match($))return y;var he="mapbox://tiles/";he+=ae.path.replace(U,"");var Oe=ae.params;return I&&(Oe=Oe.filter(function(rt){return!rt.match(/^access_token=/)})),Oe.length&&(he+="?"+Oe.join("&")),he},$e.prototype.canonicalizeTileset=function(y,I){for(var U=I?Mt(I):!1,$=[],ae=0,he=y.tiles||[];ae=0&&y.params.splice(ae,1)}if($.path!=="/"&&(y.path=""+$.path+y.path),!gt.REQUIRE_ACCESS_TOKEN)return lr(y);if(I=I||gt.ACCESS_TOKEN,!I)throw new Error("An API access token is required to use Mapbox GL. "+U);if(I[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+U);return y.params=y.params.filter(function(he){return he.indexOf("access_token")===-1}),y.params.push("access_token="+I),lr(y)};function Mt(m){return m.indexOf("mapbox:")===0}var Ct=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Vt(m){return Ct.test(m)}function It(m){return m.indexOf("sku=")>0&&Vt(m)}function Ot(m){for(var y=0,I=m;y=1&&f.localStorage.setItem(I,JSON.stringify(this.eventData))}catch($){re("Unable to write to LocalStorage")}},Kr.prototype.processRequests=function(y){},Kr.prototype.postEvent=function(y,I,U,$){var ae=this;if(gt.EVENTS_URL){var he=rr(gt.EVENTS_URL);he.params.push("access_token="+($||gt.ACCESS_TOKEN||""));var Oe={event:this.type,created:new Date(y).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:o,skuId:Tr,userId:this.anonId},rt=I?_(Oe,I):Oe,vt={url:lr(he),headers:{"Content-Type":"text/plain"},body:JSON.stringify([rt])};this.pendingRequest=$r(vt,function(St){ae.pendingRequest=null,U(St),ae.saveEventData(),ae.processRequests($)})}},Kr.prototype.queueRequest=function(y,I){this.queue.push(y),this.processRequests(I)};var Gr=function(m){function y(){m.call(this,"map.load"),this.success={},this.skuToken=""}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.postMapLoadEvent=function(U,$,ae,he){this.skuToken=ae,(gt.EVENTS_URL&&he||gt.ACCESS_TOKEN&&Array.isArray(U)&&U.some(function(Oe){return Mt(Oe)||Vt(Oe)}))&&this.queueRequest({id:$,timestamp:Date.now()},he)},y.prototype.processRequests=function(U){var $=this;if(!(this.pendingRequest||this.queue.length===0)){var ae=this.queue.shift(),he=ae.id,Oe=ae.timestamp;he&&this.success[he]||(this.anonId||this.fetchEventData(),z(this.anonId)||(this.anonId=P()),this.postEvent(Oe,{skuToken:this.skuToken},function(rt){rt||he&&($.success[he]=!0)},U))}},y}(Kr),Yr=function(m){function y(I){m.call(this,"appUserTurnstile"),this._customAccessToken=I}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.postTurnstileEvent=function(U,$){gt.EVENTS_URL&>.ACCESS_TOKEN&&Array.isArray(U)&&U.some(function(ae){return Mt(ae)||Vt(ae)})&&this.queueRequest(Date.now(),$)},y.prototype.processRequests=function(U){var $=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var ae=Cr(gt.ACCESS_TOKEN),he=ae?ae.u:gt.ACCESS_TOKEN,Oe=he!==this.eventData.tokenU;z(this.anonId)||(this.anonId=P(),Oe=!0);var rt=this.queue.shift();if(this.eventData.lastSuccess){var vt=new Date(this.eventData.lastSuccess),St=new Date(rt),or=(rt-this.eventData.lastSuccess)/(24*60*60*1e3);Oe=Oe||or>=1||or<-1||vt.getDate()!==St.getDate()}else Oe=!0;if(!Oe)return this.processRequests();this.postEvent(rt,{"enabled.telemetry":!1},function(_r){_r||($.eventData.lastSuccess=rt,$.eventData.tokenU=he)},U)}},y}(Kr),dt=new Yr,Ge=dt.postTurnstileEvent.bind(dt),Qe=new Gr,je=Qe.postMapLoadEvent.bind(Qe),Je="mapbox-tiles",xt=500,Ie=50,xe=1e3*60*7,Ce;function pt(){f.caches&&!Ce&&(Ce=f.caches.open(Je))}var nr;function ir(m,y){if(nr===void 0)try{new Response(new ReadableStream),nr=!0}catch(I){nr=!1}nr?y(m.body):m.blob().then(y)}function vr(m,y,I){if(pt(),!!Ce){var U={status:y.status,statusText:y.statusText,headers:new f.Headers};y.headers.forEach(function(he,Oe){return U.headers.set(Oe,he)});var $=me(y.headers.get("Cache-Control")||"");if(!$["no-store"]){$["max-age"]&&U.headers.set("Expires",new Date(I+$["max-age"]*1e3).toUTCString());var ae=new Date(U.headers.get("Expires")).getTime()-I;aeDate.now()&&!I["no-cache"]}var vi=1/0;function ji(m){vi++,vi>Ie&&(m.getActor().send("enforceCacheSizeLimit",xt),vi=0)}function Rn(m){pt(),Ce&&Ce.then(function(y){y.keys().then(function(I){for(var U=0;U=200&&I.status<300||I.status===0)&&I.response!==null){var $=I.response;if(m.type==="json")try{$=JSON.parse(I.response)}catch(ae){return y(ae)}y(null,$,I.getResponseHeader("Cache-Control"),I.getResponseHeader("Expires"))}else y(new ua(I.statusText,I.status,m.url))},I.send(m.body),{cancel:function(){return I.abort()}}}var Er=function(m,y){if(!yt(m.url)){if(f.fetch&&f.Request&&f.AbortController&&f.Request.prototype.hasOwnProperty("signal"))return er(m,y);if(ke()&&self.worker&&self.worker.actor){var I=!0;return self.worker.actor.send("getResource",m,y,void 0,I)}}return ar(m,y)},Xr=function(m,y){return Er(_(m,{type:"json"}),y)},ri=function(m,y){return Er(_(m,{type:"arrayBuffer"}),y)},$r=function(m,y){return Er(_(m,{method:"POST"}),y)};function zi(m){var y=f.document.createElement("a");return y.href=m,y.protocol===f.document.location.protocol&&y.host===f.document.location.host}var Ji="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function en(m,y,I,U){var $=new f.Image,ae=f.URL;$.onload=function(){y(null,$),ae.revokeObjectURL($.src),$.onload=null,f.requestAnimationFrame(function(){$.src=Ji})},$.onerror=function(){return y(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var he=new f.Blob([new Uint8Array(m)],{type:"image/png"});$.cacheControl=I,$.expires=U,$.src=m.byteLength?ae.createObjectURL(he):Ji}function cn(m,y){var I=new f.Blob([new Uint8Array(m)],{type:"image/png"});f.createImageBitmap(I).then(function(U){y(null,U)}).catch(function(U){y(new Error("Could not load image because of "+U.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var yn,Mn,Ba=function(){yn=[],Mn=0};Ba();var la=function(m,y){if(Kt.supported&&(m.headers||(m.headers={}),m.headers.accept="image/webp,*/*"),Mn>=gt.MAX_PARALLEL_IMAGE_REQUESTS){var I={requestParameters:m,callback:y,cancelled:!1,cancel:function(){this.cancelled=!0}};return yn.push(I),I}Mn++;var U=!1,$=function(){if(!U)for(U=!0,Mn--;yn.length&&Mn0||this._oneTimeListeners&&this._oneTimeListeners[y]&&this._oneTimeListeners[y].length>0||this._eventedParent&&this._eventedParent.listens(y)},Wn.prototype.setEventedParent=function(y,I){return this._eventedParent=y,this._eventedParentData=I,this};var Ga=8,vo={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},jn={"*":{type:"source"}},At=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],kr={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Qr={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},di={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},fn={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},Sn={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},En={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},ki={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},_n=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],ya={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Jn={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Ma={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},_o={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},No={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},po={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Lo={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Co={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Fs={type:"array",value:"*"},zs={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},ul={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},cl={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},Fl={type:"array",value:"*",minimum:1},cs={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},nl=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],Ss={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},fl={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},Js={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},Os={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Io={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},us={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Zl={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Su={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},nc={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},ws={"*":{type:"string"}},Fn={$version:Ga,$root:vo,sources:jn,source:At,source_vector:kr,source_raster:Qr,source_raster_dem:di,source_geojson:fn,source_video:Sn,source_image:En,layer:ki,layout:_n,layout_background:ya,layout_fill:Jn,layout_circle:Ma,layout_heatmap:_o,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:No,layout_symbol:po,layout_raster:Lo,layout_hillshade:Co,filter:Fs,filter_operator:zs,geometry_type:ul,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:cl,expression:Fl,light:cs,paint:nl,paint_fill:Ss,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:fl,paint_circle:Js,paint_heatmap:Os,paint_symbol:Io,paint_raster:us,paint_hillshade:Zl,paint_background:Su,transition:nc,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:ws},_a=function(y,I,U,$){this.message=(y?y+": ":"")+U,$&&(this.identifier=$),I!=null&&I.__line__&&(this.line=I.__line__)};function Vu(m){var y=m.key,I=m.value;return I?[new _a(y,I,"constants have been deprecated as of v8")]:[]}function zl(m){for(var y=[],I=arguments.length-1;I-- >0;)y[I]=arguments[I+1];for(var U=0,$=y;U<$.length;U+=1){var ae=$[U];for(var he in ae)m[he]=ae[he]}return m}function xo(m){return m instanceof Number||m instanceof String||m instanceof Boolean?m.valueOf():m}function Yl(m){if(Array.isArray(m))return m.map(Yl);if(m instanceof Object&&!(m instanceof Number||m instanceof String||m instanceof Boolean)){var y={};for(var I in m)y[I]=Yl(m[I]);return y}return xo(m)}var Us=function(m){function y(I,U){m.call(this,U),this.message=U,this.key=I}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y}(Error),Hl=function(y,I){I===void 0&&(I=[]),this.parent=y,this.bindings={};for(var U=0,$=I;U<$.length;U+=1){var ae=$[U],he=ae[0],Oe=ae[1];this.bindings[he]=Oe}};Hl.prototype.concat=function(y){return new Hl(this,y)},Hl.prototype.get=function(y){if(this.bindings[y])return this.bindings[y];if(this.parent)return this.parent.get(y);throw new Error(y+" not found in scope.")},Hl.prototype.has=function(y){return this.bindings[y]?!0:this.parent?this.parent.has(y):!1};var ac={kind:"null"},aa={kind:"number"},Oo={kind:"string"},qo={kind:"boolean"},Ol={kind:"color"},Pc={kind:"object"},Do={kind:"value"},tf={kind:"error"},Nf={kind:"collator"},ml={kind:"formatted"},Zc={kind:"resolvedImage"};function Kl(m,y){return{kind:"array",itemType:m,N:y}}function qs(m){if(m.kind==="array"){var y=qs(m.itemType);return typeof m.N=="number"?"array<"+y+", "+m.N+">":m.itemType.kind==="value"?"array":"array<"+y+">"}else return m.kind}var yu=[ac,aa,Oo,qo,Ol,ml,Pc,Kl(Do),Zc];function oc(m,y){if(y.kind==="error")return null;if(m.kind==="array"){if(y.kind==="array"&&(y.N===0&&y.itemType.kind==="value"||!oc(m.itemType,y.itemType))&&(typeof m.N!="number"||m.N===y.N))return null}else{if(m.kind===y.kind)return null;if(m.kind==="value")for(var I=0,U=yu;I255?255:vt}function $(vt){return vt<0?0:vt>1?1:vt}function ae(vt){return vt[vt.length-1]==="%"?U(parseFloat(vt)/100*255):U(parseInt(vt))}function he(vt){return vt[vt.length-1]==="%"?$(parseFloat(vt)/100):$(parseFloat(vt))}function Oe(vt,St,or){return or<0?or+=1:or>1&&(or-=1),or*6<1?vt+(St-vt)*or*6:or*2<1?St:or*3<2?vt+(St-vt)*(2/3-or)*6:vt}function rt(vt){var St=vt.replace(/ /g,"").toLowerCase();if(St in I)return I[St].slice();if(St[0]==="#"){if(St.length===4){var or=parseInt(St.substr(1),16);return or>=0&&or<=4095?[(or&3840)>>4|(or&3840)>>8,or&240|(or&240)>>4,or&15|(or&15)<<4,1]:null}else if(St.length===7){var or=parseInt(St.substr(1),16);return or>=0&&or<=16777215?[(or&16711680)>>16,(or&65280)>>8,or&255,1]:null}return null}var _r=St.indexOf("("),pr=St.indexOf(")");if(_r!==-1&&pr+1===St.length){var Fr=St.substr(0,_r),ai=St.substr(_r+1,pr-(_r+1)).split(","),Gi=1;switch(Fr){case"rgba":if(ai.length!==4)return null;Gi=he(ai.pop());case"rgb":return ai.length!==3?null:[ae(ai[0]),ae(ai[1]),ae(ai[2]),Gi];case"hsla":if(ai.length!==4)return null;Gi=he(ai.pop());case"hsl":if(ai.length!==3)return null;var Ti=(parseFloat(ai[0])%360+360)%360/360,bn=he(ai[1]),rn=he(ai[2]),xn=rn<=.5?rn*(bn+1):rn+bn-rn*bn,Dn=rn*2-xn;return[U(Oe(Dn,xn,Ti+1/3)*255),U(Oe(Dn,xn,Ti)*255),U(Oe(Dn,xn,Ti-1/3)*255),Gi];default:return null}}return null}try{y.parseCSSColor=rt}catch(vt){}}),kf=Nh.parseCSSColor,fs=function(y,I,U,$){$===void 0&&($=1),this.r=y,this.g=I,this.b=U,this.a=$};fs.parse=function(y){if(y){if(y instanceof fs)return y;if(typeof y=="string"){var I=kf(y);if(I)return new fs(I[0]/255*I[3],I[1]/255*I[3],I[2]/255*I[3],I[3])}}},fs.prototype.toString=function(){var y=this.toArray(),I=y[0],U=y[1],$=y[2],ae=y[3];return"rgba("+Math.round(I)+","+Math.round(U)+","+Math.round($)+","+ae+")"},fs.prototype.toArray=function(){var y=this,I=y.r,U=y.g,$=y.b,ae=y.a;return ae===0?[0,0,0,0]:[I*255/ae,U*255/ae,$*255/ae,ae]},fs.black=new fs(0,0,0,1),fs.white=new fs(1,1,1,1),fs.transparent=new fs(0,0,0,0),fs.red=new fs(1,0,0,1);var rf=function(y,I,U){y?this.sensitivity=I?"variant":"case":this.sensitivity=I?"accent":"base",this.locale=U,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};rf.prototype.compare=function(y,I){return this.collator.compare(y,I)},rf.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Uf=function(y,I,U,$,ae){this.text=y,this.image=I,this.scale=U,this.fontStack=$,this.textColor=ae},Jl=function(y){this.sections=y};Jl.fromString=function(y){return new Jl([new Uf(y,null,null,null,null)])},Jl.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(y){return y.text.length!==0||y.image&&y.image.name.length!==0})},Jl.factory=function(y){return y instanceof Jl?y:Jl.fromString(y)},Jl.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(y){return y.text}).join("")},Jl.prototype.serialize=function(){for(var y=["format"],I=0,U=this.sections;I=0&&m<=255&&typeof y=="number"&&y>=0&&y<=255&&typeof I=="number"&&I>=0&&I<=255)){var $=typeof U=="number"?[m,y,I,U]:[m,y,I];return"Invalid rgba value ["+$.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof U=="undefined"||typeof U=="number"&&U>=0&&U<=1?null:"Invalid rgba value ["+[m,y,I,U].join(", ")+"]: 'a' must be between 0 and 1."}function Fu(m){if(m===null)return!0;if(typeof m=="string")return!0;if(typeof m=="boolean")return!0;if(typeof m=="number")return!0;if(m instanceof fs)return!0;if(m instanceof rf)return!0;if(m instanceof Jl)return!0;if(m instanceof hl)return!0;if(Array.isArray(m)){for(var y=0,I=m;y2){var Oe=y[1];if(typeof Oe!="string"||!(Oe in uc)||Oe==="object")return I.error('The item type argument of "array" must be one of string, number, boolean',1);he=uc[Oe],U++}else he=Do;var rt;if(y.length>3){if(y[2]!==null&&(typeof y[2]!="number"||y[2]<0||y[2]!==Math.floor(y[2])))return I.error('The length argument to "array" must be a positive integer literal',2);rt=y[2],U++}$=Kl(he,rt)}else $=uc[ae];for(var vt=[];U1)&&I.push($)}}return I.concat(this.args.map(function(ae){return ae.serialize()}))};var Gu=function(y){this.type=ml,this.sections=y};Gu.parse=function(y,I){if(y.length<2)return I.error("Expected at least one argument.");var U=y[1];if(!Array.isArray(U)&&typeof U=="object")return I.error("First argument must be an image or text section.");for(var $=[],ae=!1,he=1;he<=y.length-1;++he){var Oe=y[he];if(ae&&typeof Oe=="object"&&!Array.isArray(Oe)){ae=!1;var rt=null;if(Oe["font-scale"]&&(rt=I.parse(Oe["font-scale"],1,aa),!rt))return null;var vt=null;if(Oe["text-font"]&&(vt=I.parse(Oe["text-font"],1,Kl(Oo)),!vt))return null;var St=null;if(Oe["text-color"]&&(St=I.parse(Oe["text-color"],1,Ol),!St))return null;var or=$[$.length-1];or.scale=rt,or.font=vt,or.textColor=St}else{var _r=I.parse(y[he],1,Do);if(!_r)return null;var pr=_r.type.kind;if(pr!=="string"&&pr!=="value"&&pr!=="null"&&pr!=="resolvedImage")return I.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");ae=!0,$.push({content:_r,scale:null,font:null,textColor:null})}}return new Gu($)},Gu.prototype.evaluate=function(y){var I=function(U){var $=U.content.evaluate(y);return Cs($)===Zc?new Uf("",$,null,null,null):new Uf(js($),null,U.scale?U.scale.evaluate(y):null,U.font?U.font.evaluate(y).join(","):null,U.textColor?U.textColor.evaluate(y):null)};return new Jl(this.sections.map(I))},Gu.prototype.eachChild=function(y){for(var I=0,U=this.sections;I-1),U},Bs.prototype.eachChild=function(y){y(this.input)},Bs.prototype.outputDefined=function(){return!1},Bs.prototype.serialize=function(){return["image",this.input.serialize()]};var ad={"to-boolean":qo,"to-color":Ol,"to-number":aa,"to-string":Oo},Po=function(y,I){this.type=y,this.args=I};Po.parse=function(y,I){if(y.length<2)return I.error("Expected at least one argument.");var U=y[0];if((U==="to-boolean"||U==="to-string")&&y.length!==2)return I.error("Expected one argument.");for(var $=ad[U],ae=[],he=1;he4?U="Invalid rbga value "+JSON.stringify(I)+": expected an array containing either three or four numeric values.":U=lc(I[0],I[1],I[2],I[3]),!U))return new fs(I[0]/255,I[1]/255,I[2]/255,I[3])}throw new gs(U||"Could not parse color from value '"+(typeof I=="string"?I:String(JSON.stringify(I)))+"'")}else if(this.type.kind==="number"){for(var rt=null,vt=0,St=this.args;vt=y[2]||m[1]<=y[1]||m[3]>=y[3])}function _h(m,y){var I=Ic(m[0]),U=gf(m[1]),$=Math.pow(2,y.z);return[Math.round(I*$*bl),Math.round(U*$*bl)]}function Qf(m,y,I){var U=m[0]-y[0],$=m[1]-y[1],ae=m[0]-I[0],he=m[1]-I[1];return U*he-ae*$===0&&U*ae<=0&&$*he<=0}function mf(m,y,I){return y[1]>m[1]!=I[1]>m[1]&&m[0]<(I[0]-y[0])*(m[1]-y[1])/(I[1]-y[1])+y[0]}function Yc(m,y){for(var I=!1,U=0,$=y.length;U<$;U++)for(var ae=y[U],he=0,Oe=ae.length;he0&&or<0||St<0&&or>0}function Gf(m,y,I,U){var $=[y[0]-m[0],y[1]-m[1]],ae=[U[0]-I[0],U[1]-I[1]];return th(ae,$)===0?!1:!!(ju(m,y,I,U)&&ju(I,U,m,y))}function cc(m,y,I){for(var U=0,$=I;U<$.length;U+=1)for(var ae=$[U],he=0;heI[2]){var $=U*.5,ae=m[0]-I[0]>$?-U:I[0]-m[0]>$?U:0;ae===0&&(ae=m[0]-I[2]>$?-U:I[2]-m[0]>$?U:0),m[0]+=ae}Vf(y,m)}function Hf(m){m[0]=m[1]=1/0,m[2]=m[3]=-1/0}function Uh(m,y,I,U){for(var $=Math.pow(2,U.z)*bl,ae=[U.x*bl,U.y*bl],he=[],Oe=0,rt=m;Oe=0)return!1;var I=!0;return m.eachChild(function(U){I&&!Eu(U,y)&&(I=!1)}),I}var Dc=function(y,I){this.type=I.type,this.name=y,this.boundExpression=I};Dc.parse=function(y,I){if(y.length!==2||typeof y[1]!="string")return I.error("'var' expression requires exactly one string literal argument.");var U=y[1];return I.scope.has(U)?new Dc(U,I.scope.get(U)):I.error('Unknown variable "'+U+'". Make sure "'+U+'" has been bound in an enclosing "let" expression before using it.',1)},Dc.prototype.evaluate=function(y){return this.boundExpression.evaluate(y)},Dc.prototype.eachChild=function(){},Dc.prototype.outputDefined=function(){return!1},Dc.prototype.serialize=function(){return["var",this.name]};var ks=function(y,I,U,$,ae){I===void 0&&(I=[]),$===void 0&&($=new Hl),ae===void 0&&(ae=[]),this.registry=y,this.path=I,this.key=I.map(function(he){return"["+he+"]"}).join(""),this.scope=$,this.errors=ae,this.expectedType=U};ks.prototype.parse=function(y,I,U,$,ae){return ae===void 0&&(ae={}),I?this.concat(I,U,$)._parse(y,ae):this._parse(y,ae)},ks.prototype._parse=function(y,I){(y===null||typeof y=="string"||typeof y=="boolean"||typeof y=="number")&&(y=["literal",y]);function U(St,or,_r){return _r==="assert"?new xl(or,[St]):_r==="coerce"?new Po(or,[St]):St}if(Array.isArray(y)){if(y.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var $=y[0];if(typeof $!="string")return this.error("Expression name must be a string, but found "+typeof $+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var ae=this.registry[$];if(ae){var he=ae.parse(y,this);if(!he)return null;if(this.expectedType){var Oe=this.expectedType,rt=he.type;if((Oe.kind==="string"||Oe.kind==="number"||Oe.kind==="boolean"||Oe.kind==="object"||Oe.kind==="array")&&rt.kind==="value")he=U(he,Oe,I.typeAnnotation||"assert");else if((Oe.kind==="color"||Oe.kind==="formatted"||Oe.kind==="resolvedImage")&&(rt.kind==="value"||rt.kind==="string"))he=U(he,Oe,I.typeAnnotation||"coerce");else if(this.checkSubtype(Oe,rt))return null}if(!(he instanceof Go)&&he.type.kind!=="resolvedImage"&&bc(he)){var vt=new Yo;try{he=new Go(he.type,he.evaluate(vt))}catch(St){return this.error(St.message),null}}return he}return this.error('Unknown expression "'+$+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof y=="undefined"?this.error("'undefined' value invalid. Use null instead."):typeof y=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof y+" instead.")},ks.prototype.concat=function(y,I,U){var $=typeof y=="number"?this.path.concat(y):this.path,ae=U?this.scope.concat(U):this.scope;return new ks(this.registry,$,I||null,ae,this.errors)},ks.prototype.error=function(y){for(var I=[],U=arguments.length-1;U-- >0;)I[U]=arguments[U+1];var $=""+this.key+I.map(function(ae){return"["+ae+"]"}).join("");this.errors.push(new Us($,y))},ks.prototype.checkSubtype=function(y,I){var U=oc(y,I);return U&&this.error(U),U};function bc(m){if(m instanceof Dc)return bc(m.boundExpression);if(m instanceof Pa&&m.name==="error")return!1;if(m instanceof Hu)return!1;if(m instanceof Mu)return!1;var y=m instanceof Po||m instanceof xl,I=!0;return m.eachChild(function(U){y?I=I&&bc(U):I=I&&U instanceof Go}),I?ih(m)&&Eu(m,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function du(m,y){for(var I=m.length-1,U=0,$=I,ae=0,he,Oe;U<=$;)if(ae=Math.floor((U+$)/2),he=m[ae],Oe=m[ae+1],he<=y){if(ae===I||yy)$=ae-1;else throw new gs("Input is not a number.");return 0}var _u=function(y,I,U){this.type=y,this.input=I,this.labels=[],this.outputs=[];for(var $=0,ae=U;$=Oe)return I.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',vt);var or=I.parse(rt,St,ae);if(!or)return null;ae=ae||or.type,$.push([Oe,or])}return new _u(ae,U,$)},_u.prototype.evaluate=function(y){var I=this.labels,U=this.outputs;if(I.length===1)return U[0].evaluate(y);var $=this.input.evaluate(y);if($<=I[0])return U[0].evaluate(y);var ae=I.length;if($>=I[ae-1])return U[ae-1].evaluate(y);var he=du(I,$);return U[he].evaluate(y)},_u.prototype.eachChild=function(y){y(this.input);for(var I=0,U=this.outputs;I0&&y.push(this.labels[I]),y.push(this.outputs[I].serialize());return y};function al(m,y,I){return m*(1-I)+y*I}function nh(m,y,I){return new fs(al(m.r,y.r,I),al(m.g,y.g,I),al(m.b,y.b,I),al(m.a,y.a,I))}function bh(m,y,I){return m.map(function(U,$){return al(U,y[$],I)})}var zu=Object.freeze({__proto__:null,number:al,color:nh,array:bh}),Fc=.95047,wc=1,bd=1.08883,yf=4/29,Lf=6/29,Ou=3*Lf*Lf,_f=Lf*Lf*Lf,jl=Math.PI/180,sf=180/Math.PI;function Vh(m){return m>_f?Math.pow(m,1/3):m/Ou+yf}function Pf(m){return m>Lf?m*m*m:Ou*(m-yf)}function Ls(m){return 255*(m<=.0031308?12.92*m:1.055*Math.pow(m,1/2.4)-.055)}function vu(m){return m/=255,m<=.04045?m/12.92:Math.pow((m+.055)/1.055,2.4)}function Cu(m){var y=vu(m.r),I=vu(m.g),U=vu(m.b),$=Vh((.4124564*y+.3575761*I+.1804375*U)/Fc),ae=Vh((.2126729*y+.7151522*I+.072175*U)/wc),he=Vh((.0193339*y+.119192*I+.9503041*U)/bd);return{l:116*ae-16,a:500*($-ae),b:200*(ae-he),alpha:m.a}}function jf(m){var y=(m.l+16)/116,I=isNaN(m.a)?y:y+m.a/500,U=isNaN(m.b)?y:y-m.b/200;return y=wc*Pf(y),I=Fc*Pf(I),U=bd*Pf(U),new fs(Ls(3.2404542*I-1.5371385*y-.4985314*U),Ls(-.969266*I+1.8760108*y+.041556*U),Ls(.0556434*I-.2040259*y+1.0572252*U),m.alpha)}function Vs(m,y,I){return{l:al(m.l,y.l,I),a:al(m.a,y.a,I),b:al(m.b,y.b,I),alpha:al(m.alpha,y.alpha,I)}}function xf(m){var y=Cu(m),I=y.l,U=y.a,$=y.b,ae=Math.atan2($,U)*sf;return{h:ae<0?ae+360:ae,c:Math.sqrt(U*U+$*$),l:I,alpha:m.a}}function zc(m){var y=m.h*jl,I=m.c,U=m.l;return jf({l:U,a:Math.cos(y)*I,b:Math.sin(y)*I,alpha:m.alpha})}function Wu(m,y,I){var U=y-m;return m+I*(U>180||U<-180?U-360*Math.round(U/360):U)}function If(m,y,I){return{h:Wu(m.h,y.h,I),c:al(m.c,y.c,I),l:al(m.l,y.l,I),alpha:al(m.alpha,y.alpha,I)}}var Xu={forward:Cu,reverse:jf,interpolate:Vs},lf={forward:xf,reverse:zc,interpolate:If},Wf=Object.freeze({__proto__:null,lab:Xu,hcl:lf}),Wl=function(y,I,U,$,ae){this.type=y,this.operator=I,this.interpolation=U,this.input=$,this.labels=[],this.outputs=[];for(var he=0,Oe=ae;he1}))return I.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);$={name:"cubic-bezier",controlPoints:rt}}else return I.error("Unknown interpolation type "+String($[0]),1,0);if(y.length-1<4)return I.error("Expected at least 4 arguments, but found only "+(y.length-1)+".");if((y.length-1)%2!==0)return I.error("Expected an even number of arguments.");if(ae=I.parse(ae,2,aa),!ae)return null;var vt=[],St=null;U==="interpolate-hcl"||U==="interpolate-lab"?St=Ol:I.expectedType&&I.expectedType.kind!=="value"&&(St=I.expectedType);for(var or=0;or=_r)return I.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Fr);var Gi=I.parse(pr,ai,St);if(!Gi)return null;St=St||Gi.type,vt.push([_r,Gi])}return St.kind!=="number"&&St.kind!=="color"&&!(St.kind==="array"&&St.itemType.kind==="number"&&typeof St.N=="number")?I.error("Type "+qs(St)+" is not interpolatable."):new Wl(St,U,$,ae,vt)},Wl.prototype.evaluate=function(y){var I=this.labels,U=this.outputs;if(I.length===1)return U[0].evaluate(y);var $=this.input.evaluate(y);if($<=I[0])return U[0].evaluate(y);var ae=I.length;if($>=I[ae-1])return U[ae-1].evaluate(y);var he=du(I,$),Oe=I[he],rt=I[he+1],vt=Wl.interpolationFactor(this.interpolation,$,Oe,rt),St=U[he].evaluate(y),or=U[he+1].evaluate(y);return this.operator==="interpolate"?zu[this.type.kind.toLowerCase()](St,or,vt):this.operator==="interpolate-hcl"?lf.reverse(lf.interpolate(lf.forward(St),lf.forward(or),vt)):Xu.reverse(Xu.interpolate(Xu.forward(St),Xu.forward(or),vt))},Wl.prototype.eachChild=function(y){y(this.input);for(var I=0,U=this.outputs;I=U.length)throw new gs("Array index out of bounds: "+I+" > "+(U.length-1)+".");if(I!==Math.floor(I))throw new gs("Array index must be an integer, but found "+I+" instead.");return U[I]},Tc.prototype.eachChild=function(y){y(this.index),y(this.input)},Tc.prototype.outputDefined=function(){return!1},Tc.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var wl=function(y,I){this.type=qo,this.needle=y,this.haystack=I};wl.parse=function(y,I){if(y.length!==3)return I.error("Expected 2 arguments, but found "+(y.length-1)+" instead.");var U=I.parse(y[1],1,Do),$=I.parse(y[2],2,Do);return!U||!$?null:Cf(U.type,[qo,Oo,aa,ac,Do])?new wl(U,$):I.error("Expected first argument to be of type boolean, string, number or null, but found "+qs(U.type)+" instead")},wl.prototype.evaluate=function(y){var I=this.needle.evaluate(y),U=this.haystack.evaluate(y);if(!U)return!1;if(!sc(I,["boolean","string","number","null"]))throw new gs("Expected first argument to be of type boolean, string, number or null, but found "+qs(Cs(I))+" instead.");if(!sc(U,["string","array"]))throw new gs("Expected second argument to be of type array or string, but found "+qs(Cs(U))+" instead.");return U.indexOf(I)>=0},wl.prototype.eachChild=function(y){y(this.needle),y(this.haystack)},wl.prototype.outputDefined=function(){return!0},wl.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var pu=function(y,I,U){this.type=aa,this.needle=y,this.haystack=I,this.fromIndex=U};pu.parse=function(y,I){if(y.length<=2||y.length>=5)return I.error("Expected 3 or 4 arguments, but found "+(y.length-1)+" instead.");var U=I.parse(y[1],1,Do),$=I.parse(y[2],2,Do);if(!U||!$)return null;if(!Cf(U.type,[qo,Oo,aa,ac,Do]))return I.error("Expected first argument to be of type boolean, string, number or null, but found "+qs(U.type)+" instead");if(y.length===4){var ae=I.parse(y[3],3,aa);return ae?new pu(U,$,ae):null}else return new pu(U,$)},pu.prototype.evaluate=function(y){var I=this.needle.evaluate(y),U=this.haystack.evaluate(y);if(!sc(I,["boolean","string","number","null"]))throw new gs("Expected first argument to be of type boolean, string, number or null, but found "+qs(Cs(I))+" instead.");if(!sc(U,["string","array"]))throw new gs("Expected second argument to be of type array or string, but found "+qs(Cs(U))+" instead.");if(this.fromIndex){var $=this.fromIndex.evaluate(y);return U.indexOf(I,$)}return U.indexOf(I)},pu.prototype.eachChild=function(y){y(this.needle),y(this.haystack),this.fromIndex&&y(this.fromIndex)},pu.prototype.outputDefined=function(){return!1},pu.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var y=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),y]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var qc=function(y,I,U,$,ae,he){this.inputType=y,this.type=I,this.input=U,this.cases=$,this.outputs=ae,this.otherwise=he};qc.parse=function(y,I){if(y.length<5)return I.error("Expected at least 4 arguments, but found only "+(y.length-1)+".");if(y.length%2!==1)return I.error("Expected an even number of arguments.");var U,$;I.expectedType&&I.expectedType.kind!=="value"&&($=I.expectedType);for(var ae={},he=[],Oe=2;OeNumber.MAX_SAFE_INTEGER)return St.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof pr=="number"&&Math.floor(pr)!==pr)return St.error("Numeric branch labels must be integer values.");if(!U)U=Cs(pr);else if(St.checkSubtype(U,Cs(pr)))return null;if(typeof ae[String(pr)]!="undefined")return St.error("Branch labels must be unique.");ae[String(pr)]=he.length}var Fr=I.parse(vt,Oe,$);if(!Fr)return null;$=$||Fr.type,he.push(Fr)}var ai=I.parse(y[1],1,Do);if(!ai)return null;var Gi=I.parse(y[y.length-1],y.length-1,$);return!Gi||ai.type.kind!=="value"&&I.concat(1).checkSubtype(U,ai.type)?null:new qc(U,$,ai,ae,he,Gi)},qc.prototype.evaluate=function(y){var I=this.input.evaluate(y),U=Cs(I)===this.inputType&&this.outputs[this.cases[I]]||this.otherwise;return U.evaluate(y)},qc.prototype.eachChild=function(y){y(this.input),this.outputs.forEach(y),y(this.otherwise)},qc.prototype.outputDefined=function(){return this.outputs.every(function(y){return y.outputDefined()})&&this.otherwise.outputDefined()},qc.prototype.serialize=function(){for(var y=this,I=["match",this.input.serialize()],U=Object.keys(this.cases).sort(),$=[],ae={},he=0,Oe=U;he=5)return I.error("Expected 3 or 4 arguments, but found "+(y.length-1)+" instead.");var U=I.parse(y[1],1,Do),$=I.parse(y[2],2,aa);if(!U||!$)return null;if(!Cf(U.type,[Kl(Do),Oo,Do]))return I.error("Expected first argument to be of type array or string, but found "+qs(U.type)+" instead");if(y.length===4){var ae=I.parse(y[3],3,aa);return ae?new fc(U.type,U,$,ae):null}else return new fc(U.type,U,$)},fc.prototype.evaluate=function(y){var I=this.input.evaluate(y),U=this.beginIndex.evaluate(y);if(!sc(I,["string","array"]))throw new gs("Expected first argument to be of type array or string, but found "+qs(Cs(I))+" instead.");if(this.endIndex){var $=this.endIndex.evaluate(y);return I.slice(U,$)}return I.slice(U)},fc.prototype.eachChild=function(y){y(this.input),y(this.beginIndex),this.endIndex&&y(this.endIndex)},fc.prototype.outputDefined=function(){return!1},fc.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var y=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),y]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function Bc(m,y){return m==="=="||m==="!="?y.kind==="boolean"||y.kind==="string"||y.kind==="number"||y.kind==="null"||y.kind==="value":y.kind==="string"||y.kind==="number"||y.kind==="value"}function Tt(m,y,I){return y===I}function Xt(m,y,I){return y!==I}function Lr(m,y,I){return yI}function Jr(m,y,I){return y<=I}function Ei(m,y,I){return y>=I}function Wi(m,y,I,U){return U.compare(y,I)===0}function hn(m,y,I,U){return!Wi(m,y,I,U)}function Tn(m,y,I,U){return U.compare(y,I)<0}function Bn(m,y,I,U){return U.compare(y,I)>0}function Zi(m,y,I,U){return U.compare(y,I)<=0}function $i(m,y,I,U){return U.compare(y,I)>=0}function an(m,y,I){var U=m!=="=="&&m!=="!=";return function(){function $(ae,he,Oe){this.type=qo,this.lhs=ae,this.rhs=he,this.collator=Oe,this.hasUntypedArgument=ae.type.kind==="value"||he.type.kind==="value"}return $.parse=function(he,Oe){if(he.length!==3&&he.length!==4)return Oe.error("Expected two or three arguments.");var rt=he[0],vt=Oe.parse(he[1],1,Do);if(!vt)return null;if(!Bc(rt,vt.type))return Oe.concat(1).error('"'+rt+`" comparisons are not supported for type '`+qs(vt.type)+"'.");var St=Oe.parse(he[2],2,Do);if(!St)return null;if(!Bc(rt,St.type))return Oe.concat(2).error('"'+rt+`" comparisons are not supported for type '`+qs(St.type)+"'.");if(vt.type.kind!==St.type.kind&&vt.type.kind!=="value"&&St.type.kind!=="value")return Oe.error("Cannot compare types '"+qs(vt.type)+"' and '"+qs(St.type)+"'.");U&&(vt.type.kind==="value"&&St.type.kind!=="value"?vt=new xl(St.type,[vt]):vt.type.kind!=="value"&&St.type.kind==="value"&&(St=new xl(vt.type,[St])));var or=null;if(he.length===4){if(vt.type.kind!=="string"&&St.type.kind!=="string"&&vt.type.kind!=="value"&&St.type.kind!=="value")return Oe.error("Cannot use collator to compare non-string types.");if(or=Oe.parse(he[3],3,Nf),!or)return null}return new $(vt,St,or)},$.prototype.evaluate=function(he){var Oe=this.lhs.evaluate(he),rt=this.rhs.evaluate(he);if(U&&this.hasUntypedArgument){var vt=Cs(Oe),St=Cs(rt);if(vt.kind!==St.kind||!(vt.kind==="string"||vt.kind==="number"))throw new gs('Expected arguments for "'+m+'" to be (string, string) or (number, number), but found ('+vt.kind+", "+St.kind+") instead.")}if(this.collator&&!U&&this.hasUntypedArgument){var or=Cs(Oe),_r=Cs(rt);if(or.kind!=="string"||_r.kind!=="string")return y(he,Oe,rt)}return this.collator?I(he,Oe,rt,this.collator.evaluate(he)):y(he,Oe,rt)},$.prototype.eachChild=function(he){he(this.lhs),he(this.rhs),this.collator&&he(this.collator)},$.prototype.outputDefined=function(){return!0},$.prototype.serialize=function(){var he=[m];return this.eachChild(function(Oe){he.push(Oe.serialize())}),he},$}()}var Di=an("==",Tt,Wi),$n=an("!=",Xt,hn),ka=an("<",Lr,Tn),Ra=an(">",Ar,Bn),La=an("<=",Jr,Zi),Na=an(">=",Ei,$i),Yn=function(y,I,U,$,ae){this.type=Oo,this.number=y,this.locale=I,this.currency=U,this.minFractionDigits=$,this.maxFractionDigits=ae};Yn.parse=function(y,I){if(y.length!==3)return I.error("Expected two arguments.");var U=I.parse(y[1],1,aa);if(!U)return null;var $=y[2];if(typeof $!="object"||Array.isArray($))return I.error("NumberFormat options argument must be an object.");var ae=null;if($.locale&&(ae=I.parse($.locale,1,Oo),!ae))return null;var he=null;if($.currency&&(he=I.parse($.currency,1,Oo),!he))return null;var Oe=null;if($["min-fraction-digits"]&&(Oe=I.parse($["min-fraction-digits"],1,aa),!Oe))return null;var rt=null;return $["max-fraction-digits"]&&(rt=I.parse($["max-fraction-digits"],1,aa),!rt)?null:new Yn(U,ae,he,Oe,rt)},Yn.prototype.evaluate=function(y){return new Intl.NumberFormat(this.locale?this.locale.evaluate(y):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(y):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(y):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(y):void 0}).format(this.number.evaluate(y))},Yn.prototype.eachChild=function(y){y(this.number),this.locale&&y(this.locale),this.currency&&y(this.currency),this.minFractionDigits&&y(this.minFractionDigits),this.maxFractionDigits&&y(this.maxFractionDigits)},Yn.prototype.outputDefined=function(){return!1},Yn.prototype.serialize=function(){var y={};return this.locale&&(y.locale=this.locale.serialize()),this.currency&&(y.currency=this.currency.serialize()),this.minFractionDigits&&(y["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(y["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),y]};var zn=function(y){this.type=aa,this.input=y};zn.parse=function(y,I){if(y.length!==2)return I.error("Expected 1 argument, but found "+(y.length-1)+" instead.");var U=I.parse(y[1],1);return U?U.type.kind!=="array"&&U.type.kind!=="string"&&U.type.kind!=="value"?I.error("Expected argument of type string or array, but found "+qs(U.type)+" instead."):new zn(U):null},zn.prototype.evaluate=function(y){var I=this.input.evaluate(y);if(typeof I=="string")return I.length;if(Array.isArray(I))return I.length;throw new gs("Expected value to be of type string or array, but found "+qs(Cs(I))+" instead.")},zn.prototype.eachChild=function(y){y(this.input)},zn.prototype.outputDefined=function(){return!1},zn.prototype.serialize=function(){var y=["length"];return this.eachChild(function(I){y.push(I.serialize())}),y};var Ka={"==":Di,"!=":$n,">":Ra,"<":ka,">=":Na,"<=":La,array:xl,at:Tc,boolean:xl,case:uf,coalesce:Zu,collator:Hu,format:Gu,image:Bs,in:wl,"index-of":pu,interpolate:Wl,"interpolate-hcl":Wl,"interpolate-lab":Wl,length:zn,let:Oc,literal:Go,match:qc,number:xl,"number-format":Yn,object:xl,slice:fc,step:_u,string:xl,"to-boolean":Po,"to-color":Po,"to-number":Po,"to-string":Po,var:Dc,within:Mu};function bo(m,y){var I=y[0],U=y[1],$=y[2],ae=y[3];I=I.evaluate(m),U=U.evaluate(m),$=$.evaluate(m);var he=ae?ae.evaluate(m):1,Oe=lc(I,U,$,he);if(Oe)throw new gs(Oe);return new fs(I/255*he,U/255*he,$/255*he,he)}function Xo(m,y){return m in y}function Ms(m,y){var I=y[m];return typeof I=="undefined"?null:I}function os(m,y,I,U){for(;I<=U;){var $=I+U>>1;if(y[$]===m)return!0;y[$]>m?U=$-1:I=$+1}return!1}function Ts(m){return{type:m}}Pa.register(Ka,{error:[tf,[Oo],function(m,y){var I=y[0];throw new gs(I.evaluate(m))}],typeof:[Oo,[Do],function(m,y){var I=y[0];return qs(Cs(I.evaluate(m)))}],"to-rgba":[Kl(aa,4),[Ol],function(m,y){var I=y[0];return I.evaluate(m).toArray()}],rgb:[Ol,[aa,aa,aa],bo],rgba:[Ol,[aa,aa,aa,aa],bo],has:{type:qo,overloads:[[[Oo],function(m,y){var I=y[0];return Xo(I.evaluate(m),m.properties())}],[[Oo,Pc],function(m,y){var I=y[0],U=y[1];return Xo(I.evaluate(m),U.evaluate(m))}]]},get:{type:Do,overloads:[[[Oo],function(m,y){var I=y[0];return Ms(I.evaluate(m),m.properties())}],[[Oo,Pc],function(m,y){var I=y[0],U=y[1];return Ms(I.evaluate(m),U.evaluate(m))}]]},"feature-state":[Do,[Oo],function(m,y){var I=y[0];return Ms(I.evaluate(m),m.featureState||{})}],properties:[Pc,[],function(m){return m.properties()}],"geometry-type":[Oo,[],function(m){return m.geometryType()}],id:[Do,[],function(m){return m.id()}],zoom:[aa,[],function(m){return m.globals.zoom}],"heatmap-density":[aa,[],function(m){return m.globals.heatmapDensity||0}],"line-progress":[aa,[],function(m){return m.globals.lineProgress||0}],accumulated:[Do,[],function(m){return m.globals.accumulated===void 0?null:m.globals.accumulated}],"+":[aa,Ts(aa),function(m,y){for(var I=0,U=0,$=y;U<$.length;U+=1){var ae=$[U];I+=ae.evaluate(m)}return I}],"*":[aa,Ts(aa),function(m,y){for(var I=1,U=0,$=y;U<$.length;U+=1){var ae=$[U];I*=ae.evaluate(m)}return I}],"-":{type:aa,overloads:[[[aa,aa],function(m,y){var I=y[0],U=y[1];return I.evaluate(m)-U.evaluate(m)}],[[aa],function(m,y){var I=y[0];return-I.evaluate(m)}]]},"/":[aa,[aa,aa],function(m,y){var I=y[0],U=y[1];return I.evaluate(m)/U.evaluate(m)}],"%":[aa,[aa,aa],function(m,y){var I=y[0],U=y[1];return I.evaluate(m)%U.evaluate(m)}],ln2:[aa,[],function(){return Math.LN2}],pi:[aa,[],function(){return Math.PI}],e:[aa,[],function(){return Math.E}],"^":[aa,[aa,aa],function(m,y){var I=y[0],U=y[1];return Math.pow(I.evaluate(m),U.evaluate(m))}],sqrt:[aa,[aa],function(m,y){var I=y[0];return Math.sqrt(I.evaluate(m))}],log10:[aa,[aa],function(m,y){var I=y[0];return Math.log(I.evaluate(m))/Math.LN10}],ln:[aa,[aa],function(m,y){var I=y[0];return Math.log(I.evaluate(m))}],log2:[aa,[aa],function(m,y){var I=y[0];return Math.log(I.evaluate(m))/Math.LN2}],sin:[aa,[aa],function(m,y){var I=y[0];return Math.sin(I.evaluate(m))}],cos:[aa,[aa],function(m,y){var I=y[0];return Math.cos(I.evaluate(m))}],tan:[aa,[aa],function(m,y){var I=y[0];return Math.tan(I.evaluate(m))}],asin:[aa,[aa],function(m,y){var I=y[0];return Math.asin(I.evaluate(m))}],acos:[aa,[aa],function(m,y){var I=y[0];return Math.acos(I.evaluate(m))}],atan:[aa,[aa],function(m,y){var I=y[0];return Math.atan(I.evaluate(m))}],min:[aa,Ts(aa),function(m,y){return Math.min.apply(Math,y.map(function(I){return I.evaluate(m)}))}],max:[aa,Ts(aa),function(m,y){return Math.max.apply(Math,y.map(function(I){return I.evaluate(m)}))}],abs:[aa,[aa],function(m,y){var I=y[0];return Math.abs(I.evaluate(m))}],round:[aa,[aa],function(m,y){var I=y[0],U=I.evaluate(m);return U<0?-Math.round(-U):Math.round(U)}],floor:[aa,[aa],function(m,y){var I=y[0];return Math.floor(I.evaluate(m))}],ceil:[aa,[aa],function(m,y){var I=y[0];return Math.ceil(I.evaluate(m))}],"filter-==":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1];return m.properties()[I.value]===U.value}],"filter-id-==":[qo,[Do],function(m,y){var I=y[0];return m.id()===I.value}],"filter-type-==":[qo,[Oo],function(m,y){var I=y[0];return m.geometryType()===I.value}],"filter-<":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1],$=m.properties()[I.value],ae=U.value;return typeof $==typeof ae&&$":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1],$=m.properties()[I.value],ae=U.value;return typeof $==typeof ae&&$>ae}],"filter-id->":[qo,[Do],function(m,y){var I=y[0],U=m.id(),$=I.value;return typeof U==typeof $&&U>$}],"filter-<=":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1],$=m.properties()[I.value],ae=U.value;return typeof $==typeof ae&&$<=ae}],"filter-id-<=":[qo,[Do],function(m,y){var I=y[0],U=m.id(),$=I.value;return typeof U==typeof $&&U<=$}],"filter->=":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1],$=m.properties()[I.value],ae=U.value;return typeof $==typeof ae&&$>=ae}],"filter-id->=":[qo,[Do],function(m,y){var I=y[0],U=m.id(),$=I.value;return typeof U==typeof $&&U>=$}],"filter-has":[qo,[Do],function(m,y){var I=y[0];return I.value in m.properties()}],"filter-has-id":[qo,[],function(m){return m.id()!==null&&m.id()!==void 0}],"filter-type-in":[qo,[Kl(Oo)],function(m,y){var I=y[0];return I.value.indexOf(m.geometryType())>=0}],"filter-id-in":[qo,[Kl(Do)],function(m,y){var I=y[0];return I.value.indexOf(m.id())>=0}],"filter-in-small":[qo,[Oo,Kl(Do)],function(m,y){var I=y[0],U=y[1];return U.value.indexOf(m.properties()[I.value])>=0}],"filter-in-large":[qo,[Oo,Kl(Do)],function(m,y){var I=y[0],U=y[1];return os(m.properties()[I.value],U.value,0,U.value.length-1)}],all:{type:qo,overloads:[[[qo,qo],function(m,y){var I=y[0],U=y[1];return I.evaluate(m)&&U.evaluate(m)}],[Ts(qo),function(m,y){for(var I=0,U=y;I-1}function va(m){return!!m.expression&&m.expression.interpolated}function no(m){return m instanceof Number?"number":m instanceof String?"string":m instanceof Boolean?"boolean":Array.isArray(m)?"array":m===null?"null":typeof m}function _s(m){return typeof m=="object"&&m!==null&&!Array.isArray(m)}function is(m){return m}function $l(m,y){var I=y.type==="color",U=m.stops&&typeof m.stops[0][0]=="object",$=U||m.property!==void 0,ae=U||!$,he=m.type||(va(y)?"exponential":"interval");if(I&&(m=zl({},m),m.stops&&(m.stops=m.stops.map(function(ha){return[ha[0],fs.parse(ha[1])]})),m.default?m.default=fs.parse(m.default):m.default=fs.parse(y.default)),m.colorSpace&&m.colorSpace!=="rgb"&&!Wf[m.colorSpace])throw new Error("Unknown color space: "+m.colorSpace);var Oe,rt,vt;if(he==="exponential")Oe=gu;else if(he==="interval")Oe=Nc;else if(he==="categorical"){Oe=Yu,rt=Object.create(null);for(var St=0,or=m.stops;St=m.stops[U-1][0])return m.stops[U-1][1];var $=du(m.stops.map(function(ae){return ae[0]}),I);return m.stops[$][1]}function gu(m,y,I){var U=m.base!==void 0?m.base:1;if(no(I)!=="number")return ku(m.default,y.default);var $=m.stops.length;if($===1||I<=m.stops[0][0])return m.stops[0][1];if(I>=m.stops[$-1][0])return m.stops[$-1][1];var ae=du(m.stops.map(function(or){return or[0]}),I),he=xu(I,U,m.stops[ae][0],m.stops[ae+1][0]),Oe=m.stops[ae][1],rt=m.stops[ae+1][1],vt=zu[y.type]||is;if(m.colorSpace&&m.colorSpace!=="rgb"){var St=Wf[m.colorSpace];vt=function(or,_r){return St.reverse(St.interpolate(St.forward(or),St.forward(_r),he))}}return typeof Oe.evaluate=="function"?{evaluate:function(){for(var _r=[],pr=arguments.length;pr--;)_r[pr]=arguments[pr];var Fr=Oe.evaluate.apply(void 0,_r),ai=rt.evaluate.apply(void 0,_r);if(!(Fr===void 0||ai===void 0))return vt(Fr,ai,he)}}:vt(Oe,rt,he)}function Uc(m,y,I){return y.type==="color"?I=fs.parse(I):y.type==="formatted"?I=Jl.fromString(I.toString()):y.type==="resolvedImage"?I=hl.fromString(I.toString()):no(I)!==y.type&&(y.type!=="enum"||!y.values[I])&&(I=void 0),ku(I,m.default,y.default)}function xu(m,y,I,U){var $=U-I,ae=m-I;return $===0?0:y===1?ae/$:(Math.pow(y,ae)-1)/(Math.pow(y,$)-1)}var Ac=function(y,I){this.expression=y,this._warningHistory={},this._evaluator=new Yo,this._defaultValue=I?ee(I):null,this._enumValues=I&&I.type==="enum"?I.values:null};Ac.prototype.evaluateWithoutErrorHandling=function(y,I,U,$,ae,he){return this._evaluator.globals=y,this._evaluator.feature=I,this._evaluator.featureState=U,this._evaluator.canonical=$,this._evaluator.availableImages=ae||null,this._evaluator.formattedSection=he,this.expression.evaluate(this._evaluator)},Ac.prototype.evaluate=function(y,I,U,$,ae,he){this._evaluator.globals=y,this._evaluator.feature=I||null,this._evaluator.featureState=U||null,this._evaluator.canonical=$,this._evaluator.availableImages=ae||null,this._evaluator.formattedSection=he||null;try{var Oe=this.expression.evaluate(this._evaluator);if(Oe==null||typeof Oe=="number"&&Oe!==Oe)return this._defaultValue;if(this._enumValues&&!(Oe in this._enumValues))throw new gs("Expected value to be one of "+Object.keys(this._enumValues).map(function(rt){return JSON.stringify(rt)}).join(", ")+", but found "+JSON.stringify(Oe)+" instead.");return Oe}catch(rt){return this._warningHistory[rt.message]||(this._warningHistory[rt.message]=!0,typeof console!="undefined"&&console.warn(rt.message)),this._defaultValue}};function Ua(m){return Array.isArray(m)&&m.length>0&&typeof m[0]=="string"&&m[0]in Ka}function oo(m,y){var I=new ks(Ka,[],y?Q(y):void 0),U=I.parse(m,void 0,void 0,void 0,y&&y.type==="string"?{typeAnnotation:"coerce"}:void 0);return U?Ho(new Ac(U,y)):yl(I.errors)}var Vc=function(y,I){this.kind=y,this._styleExpression=I,this.isStateDependent=y!=="constant"&&!Ws(I.expression)};Vc.prototype.evaluateWithoutErrorHandling=function(y,I,U,$,ae,he){return this._styleExpression.evaluateWithoutErrorHandling(y,I,U,$,ae,he)},Vc.prototype.evaluate=function(y,I,U,$,ae,he){return this._styleExpression.evaluate(y,I,U,$,ae,he)};var hc=function(y,I,U,$){this.kind=y,this.zoomStops=U,this._styleExpression=I,this.isStateDependent=y!=="camera"&&!Ws(I.expression),this.interpolationType=$};hc.prototype.evaluateWithoutErrorHandling=function(y,I,U,$,ae,he){return this._styleExpression.evaluateWithoutErrorHandling(y,I,U,$,ae,he)},hc.prototype.evaluate=function(y,I,U,$,ae,he){return this._styleExpression.evaluate(y,I,U,$,ae,he)},hc.prototype.interpolationFactor=function(y,I,U){return this.interpolationType?Wl.interpolationFactor(this.interpolationType,y,I,U):0};function Ku(m,y){if(m=oo(m,y),m.result==="error")return m;var I=m.value.expression,U=ih(I);if(!U&&!Xs(y))return yl([new Us("","data expressions not supported")]);var $=Eu(I,["zoom"]);if(!$&&!Ps(y))return yl([new Us("","zoom expressions not supported")]);var ae=B(I);if(!ae&&!$)return yl([new Us("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(ae instanceof Us)return yl([ae]);if(ae instanceof Wl&&!va(y))return yl([new Us("",'"interpolate" expressions cannot be used with this property')]);if(!ae)return Ho(U?new Vc("constant",m.value):new Vc("source",m.value));var he=ae instanceof Wl?ae.interpolation:void 0;return Ho(U?new hc("camera",m.value,ae.labels,he):new hc("composite",m.value,ae.labels,he))}var ue=function(y,I){this._parameters=y,this._specification=I,zl(this,$l(this._parameters,this._specification))};ue.deserialize=function(y){return new ue(y._parameters,y._specification)},ue.serialize=function(y){return{_parameters:y._parameters,_specification:y._specification}};function w(m,y){if(_s(m))return new ue(m,y);if(Ua(m)){var I=Ku(m,y);if(I.result==="error")throw new Error(I.value.map(function($){return $.key+": "+$.message}).join(", "));return I.value}else{var U=m;return typeof m=="string"&&y.type==="color"&&(U=fs.parse(m)),{kind:"constant",evaluate:function(){return U}}}}function B(m){var y=null;if(m instanceof Oc)y=B(m.result);else if(m instanceof Zu)for(var I=0,U=m.args;IU.maximum?[new _a(y,I,I+" is greater than the maximum value "+U.maximum)]:[]}function ot(m){var y=m.valueSpec,I=xo(m.value.type),U,$={},ae,he,Oe=I!=="categorical"&&m.value.property===void 0,rt=!Oe,vt=no(m.value.stops)==="array"&&no(m.value.stops[0])==="array"&&no(m.value.stops[0][0])==="object",St=le({key:m.key,value:m.value,valueSpec:m.styleSpec.function,style:m.style,styleSpec:m.styleSpec,objectElementValidators:{stops:or,default:Fr}});return I==="identity"&&Oe&&St.push(new _a(m.key,m.value,'missing required property "property"')),I!=="identity"&&!m.value.stops&&St.push(new _a(m.key,m.value,'missing required property "stops"')),I==="exponential"&&m.valueSpec.expression&&!va(m.valueSpec)&&St.push(new _a(m.key,m.value,"exponential functions not supported")),m.styleSpec.$version>=8&&(rt&&!Xs(m.valueSpec)?St.push(new _a(m.key,m.value,"property functions not supported")):Oe&&!Ps(m.valueSpec)&&St.push(new _a(m.key,m.value,"zoom functions not supported"))),(I==="categorical"||vt)&&m.value.property===void 0&&St.push(new _a(m.key,m.value,'"property" property is required')),St;function or(ai){if(I==="identity")return[new _a(ai.key,ai.value,'identity function may not have a "stops" property')];var Gi=[],Ti=ai.value;return Gi=Gi.concat(qe({key:ai.key,value:Ti,valueSpec:ai.valueSpec,style:ai.style,styleSpec:ai.styleSpec,arrayElementValidator:_r})),no(Ti)==="array"&&Ti.length===0&&Gi.push(new _a(ai.key,Ti,"array must have at least one stop")),Gi}function _r(ai){var Gi=[],Ti=ai.value,bn=ai.key;if(no(Ti)!=="array")return[new _a(bn,Ti,"array expected, "+no(Ti)+" found")];if(Ti.length!==2)return[new _a(bn,Ti,"array length 2 expected, length "+Ti.length+" found")];if(vt){if(no(Ti[0])!=="object")return[new _a(bn,Ti,"object expected, "+no(Ti[0])+" found")];if(Ti[0].zoom===void 0)return[new _a(bn,Ti,"object stop key must have zoom")];if(Ti[0].value===void 0)return[new _a(bn,Ti,"object stop key must have value")];if(he&&he>xo(Ti[0].zoom))return[new _a(bn,Ti[0].zoom,"stop zoom values must appear in ascending order")];xo(Ti[0].zoom)!==he&&(he=xo(Ti[0].zoom),ae=void 0,$={}),Gi=Gi.concat(le({key:bn+"[0]",value:Ti[0],valueSpec:{zoom:{}},style:ai.style,styleSpec:ai.styleSpec,objectElementValidators:{zoom:Xe,value:pr}}))}else Gi=Gi.concat(pr({key:bn+"[0]",value:Ti[0],valueSpec:{},style:ai.style,styleSpec:ai.styleSpec},Ti));return Ua(Yl(Ti[1]))?Gi.concat([new _a(bn+"[1]",Ti[1],"expressions are not allowed in function stops.")]):Gi.concat(Qa({key:bn+"[1]",value:Ti[1],valueSpec:y,style:ai.style,styleSpec:ai.styleSpec}))}function pr(ai,Gi){var Ti=no(ai.value),bn=xo(ai.value),rn=ai.value!==null?ai.value:Gi;if(!U)U=Ti;else if(Ti!==U)return[new _a(ai.key,rn,Ti+" stop domain type must match previous stop domain type "+U)];if(Ti!=="number"&&Ti!=="string"&&Ti!=="boolean")return[new _a(ai.key,rn,"stop domain value must be a number, string, or boolean")];if(Ti!=="number"&&I!=="categorical"){var xn="number expected, "+Ti+" found";return Xs(y)&&I===void 0&&(xn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new _a(ai.key,rn,xn)]}return I==="categorical"&&Ti==="number"&&(!isFinite(bn)||Math.floor(bn)!==bn)?[new _a(ai.key,rn,"integer expected, found "+bn)]:I!=="categorical"&&Ti==="number"&&ae!==void 0&&bn=2&&m[1]!=="$id"&&m[1]!=="$type";case"in":return m.length>=3&&(typeof m[1]!="string"||Array.isArray(m[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return m.length!==3||Array.isArray(m[1])||Array.isArray(m[2]);case"any":case"all":for(var y=0,I=m.slice(1);yy?1:0}function Be(m){if(!Array.isArray(m))return!1;if(m[0]==="within")return!0;for(var y=1;y"||y==="<="||y===">="?We(m[1],m[2],y):y==="any"?it(m.slice(1)):y==="all"?["all"].concat(m.slice(1).map(tt)):y==="none"?["all"].concat(m.slice(1).map(tt).map(tr)):y==="in"?Ft(m[1],m.slice(2)):y==="!in"?tr(Ft(m[1],m.slice(2))):y==="has"?jt(m[1]):y==="!has"?tr(jt(m[1])):y==="within"?m:!0;return I}function We(m,y,I){switch(m){case"$type":return["filter-type-"+I,y];case"$id":return["filter-id-"+I,y];default:return["filter-"+I,m,y]}}function it(m){return["any"].concat(m.map(tt))}function Ft(m,y){if(y.length===0)return!1;switch(m){case"$type":return["filter-type-in",["literal",y]];case"$id":return["filter-id-in",["literal",y]];default:return y.length>200&&!y.some(function(I){return typeof I!=typeof y[0]})?["filter-in-large",m,["literal",y.sort(Re)]]:["filter-in-small",m,["literal",y]]}}function jt(m){switch(m){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",m]}}function tr(m){return["!",m]}function dr(m){return Ir(Yl(m.value))?wt(zl({},m,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Sr(m)}function Sr(m){var y=m.value,I=m.key;if(no(y)!=="array")return[new _a(I,y,"array expected, "+no(y)+" found")];var U=m.styleSpec,$,ae=[];if(y.length<1)return[new _a(I,y,"filter array must have at least 1 element")];switch(ae=ae.concat(xr({key:I+"[0]",value:y[0],valueSpec:U.filter_operator,style:m.style,styleSpec:m.styleSpec})),xo(y[0])){case"<":case"<=":case">":case">=":y.length>=2&&xo(y[1])==="$type"&&ae.push(new _a(I,y,'"$type" cannot be use with operator "'+y[0]+'"'));case"==":case"!=":y.length!==3&&ae.push(new _a(I,y,'filter array for operator "'+y[0]+'" must have 3 elements'));case"in":case"!in":y.length>=2&&($=no(y[1]),$!=="string"&&ae.push(new _a(I+"[1]",y[1],"string expected, "+$+" found")));for(var he=2;he=St[pr+0]&&U>=St[pr+1])?(he[_r]=!0,ae.push(vt[_r])):he[_r]=!1}}},Ql.prototype._forEachCell=function(m,y,I,U,$,ae,he,Oe){for(var rt=this._convertToCellCoord(m),vt=this._convertToCellCoord(y),St=this._convertToCellCoord(I),or=this._convertToCellCoord(U),_r=rt;_r<=St;_r++)for(var pr=vt;pr<=or;pr++){var Fr=this.d*pr+_r;if(!(Oe&&!Oe(this._convertFromCellCoord(_r),this._convertFromCellCoord(pr),this._convertFromCellCoord(_r+1),this._convertFromCellCoord(pr+1)))&&$.call(this,m,y,I,U,Fr,ae,he,Oe))return}},Ql.prototype._convertFromCellCoord=function(m){return(m-this.padding)/this.scale},Ql.prototype._convertToCellCoord=function(m){return Math.max(0,Math.min(this.d-1,Math.floor(m*this.scale)+this.padding))},Ql.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var m=this.cells,y=$s+this.cells.length+1+1,I=0,U=0;U=0)){var or=m[St];vt[St]=Al[rt].shallow.indexOf(St)>=0?or:He(or,y)}m instanceof Error&&(vt.message=m.message)}if(vt.$name)throw new Error("$name property is reserved for worker serialization logic.");return rt!=="Object"&&(vt.$name=rt),vt}throw new Error("can't serialize object of type "+typeof m)}function Ye(m){if(m==null||typeof m=="boolean"||typeof m=="number"||typeof m=="string"||m instanceof Boolean||m instanceof Number||m instanceof String||m instanceof Date||m instanceof RegExp||Te(m)||Ne(m)||ArrayBuffer.isView(m)||m instanceof dc)return m;if(Array.isArray(m))return m.map(Ye);if(typeof m=="object"){var y=m.$name||"Object",I=Al[y],U=I.klass;if(!U)throw new Error("can't deserialize unregistered class "+y);if(U.deserialize)return U.deserialize(m);for(var $=Object.create(U.prototype),ae=0,he=Object.keys(m);ae=0?rt:Ye(rt)}}return $}throw new Error("can't deserialize object of type "+typeof m)}var Et=function(){this.first=!0};Et.prototype.update=function(y,I){var U=Math.floor(y);return this.first?(this.first=!1,this.lastIntegerZoom=U,this.lastIntegerZoomTime=0,this.lastZoom=y,this.lastFloorZoom=U,!0):(this.lastFloorZoom>U?(this.lastIntegerZoom=U+1,this.lastIntegerZoomTime=I):this.lastFloorZoom=128&&m<=255},Arabic:function(m){return m>=1536&&m<=1791},"Arabic Supplement":function(m){return m>=1872&&m<=1919},"Arabic Extended-A":function(m){return m>=2208&&m<=2303},"Hangul Jamo":function(m){return m>=4352&&m<=4607},"Unified Canadian Aboriginal Syllabics":function(m){return m>=5120&&m<=5759},Khmer:function(m){return m>=6016&&m<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(m){return m>=6320&&m<=6399},"General Punctuation":function(m){return m>=8192&&m<=8303},"Letterlike Symbols":function(m){return m>=8448&&m<=8527},"Number Forms":function(m){return m>=8528&&m<=8591},"Miscellaneous Technical":function(m){return m>=8960&&m<=9215},"Control Pictures":function(m){return m>=9216&&m<=9279},"Optical Character Recognition":function(m){return m>=9280&&m<=9311},"Enclosed Alphanumerics":function(m){return m>=9312&&m<=9471},"Geometric Shapes":function(m){return m>=9632&&m<=9727},"Miscellaneous Symbols":function(m){return m>=9728&&m<=9983},"Miscellaneous Symbols and Arrows":function(m){return m>=11008&&m<=11263},"CJK Radicals Supplement":function(m){return m>=11904&&m<=12031},"Kangxi Radicals":function(m){return m>=12032&&m<=12255},"Ideographic Description Characters":function(m){return m>=12272&&m<=12287},"CJK Symbols and Punctuation":function(m){return m>=12288&&m<=12351},Hiragana:function(m){return m>=12352&&m<=12447},Katakana:function(m){return m>=12448&&m<=12543},Bopomofo:function(m){return m>=12544&&m<=12591},"Hangul Compatibility Jamo":function(m){return m>=12592&&m<=12687},Kanbun:function(m){return m>=12688&&m<=12703},"Bopomofo Extended":function(m){return m>=12704&&m<=12735},"CJK Strokes":function(m){return m>=12736&&m<=12783},"Katakana Phonetic Extensions":function(m){return m>=12784&&m<=12799},"Enclosed CJK Letters and Months":function(m){return m>=12800&&m<=13055},"CJK Compatibility":function(m){return m>=13056&&m<=13311},"CJK Unified Ideographs Extension A":function(m){return m>=13312&&m<=19903},"Yijing Hexagram Symbols":function(m){return m>=19904&&m<=19967},"CJK Unified Ideographs":function(m){return m>=19968&&m<=40959},"Yi Syllables":function(m){return m>=40960&&m<=42127},"Yi Radicals":function(m){return m>=42128&&m<=42191},"Hangul Jamo Extended-A":function(m){return m>=43360&&m<=43391},"Hangul Syllables":function(m){return m>=44032&&m<=55215},"Hangul Jamo Extended-B":function(m){return m>=55216&&m<=55295},"Private Use Area":function(m){return m>=57344&&m<=63743},"CJK Compatibility Ideographs":function(m){return m>=63744&&m<=64255},"Arabic Presentation Forms-A":function(m){return m>=64336&&m<=65023},"Vertical Forms":function(m){return m>=65040&&m<=65055},"CJK Compatibility Forms":function(m){return m>=65072&&m<=65103},"Small Form Variants":function(m){return m>=65104&&m<=65135},"Arabic Presentation Forms-B":function(m){return m>=65136&&m<=65279},"Halfwidth and Fullwidth Forms":function(m){return m>=65280&&m<=65519}};function Wt(m){for(var y=0,I=m;y=65097&&m<=65103)||nt["CJK Compatibility Ideographs"](m)||nt["CJK Compatibility"](m)||nt["CJK Radicals Supplement"](m)||nt["CJK Strokes"](m)||nt["CJK Symbols and Punctuation"](m)&&!(m>=12296&&m<=12305)&&!(m>=12308&&m<=12319)&&m!==12336||nt["CJK Unified Ideographs Extension A"](m)||nt["CJK Unified Ideographs"](m)||nt["Enclosed CJK Letters and Months"](m)||nt["Hangul Compatibility Jamo"](m)||nt["Hangul Jamo Extended-A"](m)||nt["Hangul Jamo Extended-B"](m)||nt["Hangul Jamo"](m)||nt["Hangul Syllables"](m)||nt.Hiragana(m)||nt["Ideographic Description Characters"](m)||nt.Kanbun(m)||nt["Kangxi Radicals"](m)||nt["Katakana Phonetic Extensions"](m)||nt.Katakana(m)&&m!==12540||nt["Halfwidth and Fullwidth Forms"](m)&&m!==65288&&m!==65289&&m!==65293&&!(m>=65306&&m<=65310)&&m!==65339&&m!==65341&&m!==65343&&!(m>=65371&&m<=65503)&&m!==65507&&!(m>=65512&&m<=65519)||nt["Small Form Variants"](m)&&!(m>=65112&&m<=65118)&&!(m>=65123&&m<=65126)||nt["Unified Canadian Aboriginal Syllabics"](m)||nt["Unified Canadian Aboriginal Syllabics Extended"](m)||nt["Vertical Forms"](m)||nt["Yijing Hexagram Symbols"](m)||nt["Yi Syllables"](m)||nt["Yi Radicals"](m))}function _i(m){return!!(nt["Latin-1 Supplement"](m)&&(m===167||m===169||m===174||m===177||m===188||m===189||m===190||m===215||m===247)||nt["General Punctuation"](m)&&(m===8214||m===8224||m===8225||m===8240||m===8241||m===8251||m===8252||m===8258||m===8263||m===8264||m===8265||m===8273)||nt["Letterlike Symbols"](m)||nt["Number Forms"](m)||nt["Miscellaneous Technical"](m)&&(m>=8960&&m<=8967||m>=8972&&m<=8991||m>=8996&&m<=9e3||m===9003||m>=9085&&m<=9114||m>=9150&&m<=9165||m===9167||m>=9169&&m<=9179||m>=9186&&m<=9215)||nt["Control Pictures"](m)&&m!==9251||nt["Optical Character Recognition"](m)||nt["Enclosed Alphanumerics"](m)||nt["Geometric Shapes"](m)||nt["Miscellaneous Symbols"](m)&&!(m>=9754&&m<=9759)||nt["Miscellaneous Symbols and Arrows"](m)&&(m>=11026&&m<=11055||m>=11088&&m<=11097||m>=11192&&m<=11243)||nt["CJK Symbols and Punctuation"](m)||nt.Katakana(m)||nt["Private Use Area"](m)||nt["CJK Compatibility Forms"](m)||nt["Small Form Variants"](m)||nt["Halfwidth and Fullwidth Forms"](m)||m===8734||m===8756||m===8757||m>=9984&&m<=10087||m>=10102&&m<=10131||m===65532||m===65533)}function bi(m){return!(qr(m)||_i(m))}function Wr(m){return nt.Arabic(m)||nt["Arabic Supplement"](m)||nt["Arabic Extended-A"](m)||nt["Arabic Presentation Forms-A"](m)||nt["Arabic Presentation Forms-B"](m)}function ni(m){return m>=1424&&m<=2303||nt["Arabic Presentation Forms-A"](m)||nt["Arabic Presentation Forms-B"](m)}function pi(m,y){return!(!y&&ni(m)||m>=2304&&m<=3583||m>=3840&&m<=4255||nt.Khmer(m))}function Pi(m){for(var y=0,I=m;y-1&&(Cn=ti.error),In&&In(m)};function Ea(){Ia.fire(new Wo("pluginStateChange",{pluginStatus:Cn,pluginURL:Nn}))}var Ia=new Wn,yo=function(){return Cn},Da=function(m){return m({pluginStatus:Cn,pluginURL:Nn}),Ia.on("pluginStateChange",m),m},go=function(m,y,I){if(I===void 0&&(I=!1),Cn===ti.deferred||Cn===ti.loading||Cn===ti.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");Nn=ut.resolveURL(m),Cn=ti.deferred,In=y,Ea(),I||Rs()},Rs=function(){if(Cn!==ti.deferred||!Nn)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Cn=ti.loading,Ea(),Nn&&ri({url:Nn},function(m){m?ia(m):(Cn=ti.loaded,Ea())})},Es={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Cn===ti.loaded||Es.applyArabicShaping!=null},isLoading:function(){return Cn===ti.loading},setState:function(y){Cn=y.pluginStatus,Nn=y.pluginURL},isParsed:function(){return Es.applyArabicShaping!=null&&Es.processBidirectionalText!=null&&Es.processStyledBidirectionalText!=null},getPluginURL:function(){return Nn}},Zs=function(){!Es.isLoading()&&!Es.isLoaded()&&yo()==="deferred"&&Rs()},Gn=function(y,I){this.zoom=y,I?(this.now=I.now,this.fadeDuration=I.fadeDuration,this.zoomHistory=I.zoomHistory,this.transition=I.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Et,this.transition={})};Gn.prototype.isSupportedScript=function(y){return Ai(y,Es.isLoaded())},Gn.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Gn.prototype.getCrossfadeParameters=function(){var y=this.zoom,I=y-Math.floor(y),U=this.crossFadingFactor();return y>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:I+(1-I)*U}:{fromScale:.5,toScale:1,t:1-(1-U)*I}};var Ha=function(y,I){this.property=y,this.value=I,this.expression=w(I===void 0?y.specification.default:I,y.specification)};Ha.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Ha.prototype.possiblyEvaluate=function(y,I,U){return this.property.possiblyEvaluate(this,y,I,U)};var Fo=function(y){this.property=y,this.value=new Ha(y,void 0)};Fo.prototype.transitioned=function(y,I){return new Qs(this.property,this.value,I,_({},y.transition,this.transition),y.now)},Fo.prototype.untransitioned=function(){return new Qs(this.property,this.value,null,{},0)};var Uo=function(y){this._properties=y,this._values=Object.create(y.defaultTransitionablePropertyValues)};Uo.prototype.getValue=function(y){return H(this._values[y].value.value)},Uo.prototype.setValue=function(y,I){this._values.hasOwnProperty(y)||(this._values[y]=new Fo(this._values[y].property)),this._values[y].value=new Ha(this._values[y].property,I===null?void 0:H(I))},Uo.prototype.getTransition=function(y){return H(this._values[y].transition)},Uo.prototype.setTransition=function(y,I){this._values.hasOwnProperty(y)||(this._values[y]=new Fo(this._values[y].property)),this._values[y].transition=H(I)||void 0},Uo.prototype.serialize=function(){for(var y={},I=0,U=Object.keys(this._values);Ithis.end)return this.prior=null,ae;if(this.value.isDataDriven())return this.prior=null,ae;if($he.zoomHistory.lastIntegerZoom?{from:U,to:$}:{from:ae,to:$}},y.prototype.interpolate=function(U){return U},y}(_t),Rr=function(y){this.specification=y};Rr.prototype.possiblyEvaluate=function(y,I,U,$){if(y.value!==void 0)if(y.expression.kind==="constant"){var ae=y.expression.evaluate(I,null,{},U,$);return this._calculate(ae,ae,ae,I)}else return this._calculate(y.expression.evaluate(new Gn(Math.floor(I.zoom-1),I)),y.expression.evaluate(new Gn(Math.floor(I.zoom),I)),y.expression.evaluate(new Gn(Math.floor(I.zoom+1),I)),I)},Rr.prototype._calculate=function(y,I,U,$){var ae=$.zoom;return ae>$.zoomHistory.lastIntegerZoom?{from:y,to:I}:{from:U,to:I}},Rr.prototype.interpolate=function(y){return y};var Hr=function(y){this.specification=y};Hr.prototype.possiblyEvaluate=function(y,I,U,$){return!!y.expression.evaluate(I,null,{},U,$)},Hr.prototype.interpolate=function(){return!1};var Br=function(y){this.properties=y,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var I in y){var U=y[I];U.specification.overridable&&this.overridableProperties.push(I);var $=this.defaultPropertyValues[I]=new Ha(U,void 0),ae=this.defaultTransitionablePropertyValues[I]=new Fo(U);this.defaultTransitioningPropertyValues[I]=ae.untransitioned(),this.defaultPossiblyEvaluatedValues[I]=$.possiblyEvaluate({})}};X("DataDrivenProperty",_t),X("DataConstantProperty",Ee),X("CrossFadedDataDrivenProperty",zt),X("CrossFadedProperty",Rr),X("ColorRampProperty",Hr);var Ur="-transition",gi=function(m){function y(I,U){if(m.call(this),this.id=I.id,this.type=I.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},I.type!=="custom"&&(I=I,this.metadata=I.metadata,this.minzoom=I.minzoom,this.maxzoom=I.maxzoom,I.type!=="background"&&(this.source=I.source,this.sourceLayer=I["source-layer"],this.filter=I.filter),U.layout&&(this._unevaluatedLayout=new bu(U.layout)),U.paint)){this._transitionablePaint=new Uo(U.paint);for(var $ in I.paint)this.setPaintProperty($,I.paint[$],{validate:!1});for(var ae in I.layout)this.setLayoutProperty(ae,I.layout[ae],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Sc(U.paint)}}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},y.prototype.getLayoutProperty=function(U){return U==="visibility"?this.visibility:this._unevaluatedLayout.getValue(U)},y.prototype.setLayoutProperty=function(U,$,ae){if(ae===void 0&&(ae={}),$!=null){var he="layers."+this.id+".layout."+U;if(this._validate(Nl,he,U,$,ae))return}if(U==="visibility"){this.visibility=$;return}this._unevaluatedLayout.setValue(U,$)},y.prototype.getPaintProperty=function(U){return V(U,Ur)?this._transitionablePaint.getTransition(U.slice(0,-Ur.length)):this._transitionablePaint.getValue(U)},y.prototype.setPaintProperty=function(U,$,ae){if(ae===void 0&&(ae={}),$!=null){var he="layers."+this.id+".paint."+U;if(this._validate(dl,he,U,$,ae))return!1}if(V(U,Ur))return this._transitionablePaint.setTransition(U.slice(0,-Ur.length),$||void 0),!1;var Oe=this._transitionablePaint._values[U],rt=Oe.property.specification["property-type"]==="cross-faded-data-driven",vt=Oe.value.isDataDriven(),St=Oe.value;this._transitionablePaint.setValue(U,$),this._handleSpecialPaintPropertyUpdate(U);var or=this._transitionablePaint._values[U].value,_r=or.isDataDriven();return _r||vt||rt||this._handleOverridablePaintPropertyUpdate(U,St,or)},y.prototype._handleSpecialPaintPropertyUpdate=function(U){},y.prototype._handleOverridablePaintPropertyUpdate=function(U,$,ae){return!1},y.prototype.isHidden=function(U){return this.minzoom&&U=this.maxzoom?!0:this.visibility==="none"},y.prototype.updateTransitions=function(U){this._transitioningPaint=this._transitionablePaint.transitioned(U,this._transitioningPaint)},y.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},y.prototype.recalculate=function(U,$){U.getCrossfadeParameters&&(this._crossfadeParameters=U.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(U,void 0,$)),this.paint=this._transitioningPaint.possiblyEvaluate(U,void 0,$)},y.prototype.serialize=function(){var U={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(U.layout=U.layout||{},U.layout.visibility=this.visibility),Z(U,function($,ae){return $!==void 0&&!(ae==="layout"&&!Object.keys($).length)&&!(ae==="paint"&&!Object.keys($).length)})},y.prototype._validate=function(U,$,ae,he,Oe){return Oe===void 0&&(Oe={}),Oe&&Oe.validate===!1?!1:Lu(this,U.call(wo,{key:$,layerType:this.type,objectKey:ae,value:he,styleSpec:Fn,style:{glyphs:!0,sprite:!0}}))},y.prototype.is3D=function(){return!1},y.prototype.isTileClipped=function(){return!1},y.prototype.hasOffscreenPass=function(){return!1},y.prototype.resize=function(){},y.prototype.isStateDependent=function(){for(var U in this.paint._values){var $=this.paint.get(U);if(!(!($ instanceof vl)||!Xs($.property.specification))&&($.value.kind==="source"||$.value.kind==="composite")&&$.value.isStateDependent)return!0}return!1},y}(Wn),Ni={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Oi=function(y,I){this._structArray=y,this._pos1=I*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Mi=128,Hn=5,Qi=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};Qi.serialize=function(y,I){return y._trim(),I&&(y.isTransferred=!0,I.push(y.arrayBuffer)),{length:y.length,arrayBuffer:y.arrayBuffer}},Qi.deserialize=function(y){var I=Object.create(this.prototype);return I.arrayBuffer=y.arrayBuffer,I.length=y.length,I.capacity=y.arrayBuffer.byteLength/I.bytesPerElement,I._refreshViews(),I},Qi.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Qi.prototype.clear=function(){this.length=0},Qi.prototype.resize=function(y){this.reserve(y),this.length=y},Qi.prototype.reserve=function(y){if(y>this.capacity){this.capacity=Math.max(y,Math.floor(this.capacity*Hn),Mi),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var I=this.uint8;this._refreshViews(),I&&this.uint8.set(I)}},Qi.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function Hi(m,y){y===void 0&&(y=1);var I=0,U=0,$=m.map(function(he){var Oe=oi(he.type),rt=I=Mr(I,Math.max(y,Oe)),vt=he.components||1;return U=Math.max(U,Oe),I+=Oe*vt,{name:he.name,type:he.type,components:vt,offset:rt}}),ae=Mr(I,Math.max(U,y));return{members:$,size:ae,alignment:y}}function oi(m){return Ni[m].BYTES_PER_ELEMENT}function Mr(m,y){return Math.ceil(m/y)*y}var Zr=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$){var ae=this.length;return this.resize(ae+1),this.emplace(ae,U,$)},y.prototype.emplace=function(U,$,ae){var he=U*2;return this.int16[he+0]=$,this.int16[he+1]=ae,U},y}(Qi);Zr.prototype.bytesPerElement=4,X("StructArrayLayout2i4",Zr);var xi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he){var Oe=this.length;return this.resize(Oe+1),this.emplace(Oe,U,$,ae,he)},y.prototype.emplace=function(U,$,ae,he,Oe){var rt=U*4;return this.int16[rt+0]=$,this.int16[rt+1]=ae,this.int16[rt+2]=he,this.int16[rt+3]=Oe,U},y}(Qi);xi.prototype.bytesPerElement=8,X("StructArrayLayout4i8",xi);var Ii=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt){var vt=this.length;return this.resize(vt+1),this.emplace(vt,U,$,ae,he,Oe,rt)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,vt){var St=U*6;return this.int16[St+0]=$,this.int16[St+1]=ae,this.int16[St+2]=he,this.int16[St+3]=Oe,this.int16[St+4]=rt,this.int16[St+5]=vt,U},y}(Qi);Ii.prototype.bytesPerElement=12,X("StructArrayLayout2i4i12",Ii);var ci=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt){var vt=this.length;return this.resize(vt+1),this.emplace(vt,U,$,ae,he,Oe,rt)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,vt){var St=U*4,or=U*8;return this.int16[St+0]=$,this.int16[St+1]=ae,this.uint8[or+4]=he,this.uint8[or+5]=Oe,this.uint8[or+6]=rt,this.uint8[or+7]=vt,U},y}(Qi);ci.prototype.bytesPerElement=8,X("StructArrayLayout2i4ub8",ci);var nn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$){var ae=this.length;return this.resize(ae+1),this.emplace(ae,U,$)},y.prototype.emplace=function(U,$,ae){var he=U*2;return this.float32[he+0]=$,this.float32[he+1]=ae,U},y}(Qi);nn.prototype.bytesPerElement=8,X("StructArrayLayout2f8",nn);var Xi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,vt,St,or,_r){var pr=this.length;return this.resize(pr+1),this.emplace(pr,U,$,ae,he,Oe,rt,vt,St,or,_r)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,vt,St,or,_r,pr){var Fr=U*10;return this.uint16[Fr+0]=$,this.uint16[Fr+1]=ae,this.uint16[Fr+2]=he,this.uint16[Fr+3]=Oe,this.uint16[Fr+4]=rt,this.uint16[Fr+5]=vt,this.uint16[Fr+6]=St,this.uint16[Fr+7]=or,this.uint16[Fr+8]=_r,this.uint16[Fr+9]=pr,U},y}(Qi);Xi.prototype.bytesPerElement=20,X("StructArrayLayout10ui20",Xi);var qn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,vt,St,or,_r,pr,Fr){var ai=this.length;return this.resize(ai+1),this.emplace(ai,U,$,ae,he,Oe,rt,vt,St,or,_r,pr,Fr)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,vt,St,or,_r,pr,Fr,ai){var Gi=U*12;return this.int16[Gi+0]=$,this.int16[Gi+1]=ae,this.int16[Gi+2]=he,this.int16[Gi+3]=Oe,this.uint16[Gi+4]=rt,this.uint16[Gi+5]=vt,this.uint16[Gi+6]=St,this.uint16[Gi+7]=or,this.int16[Gi+8]=_r,this.int16[Gi+9]=pr,this.int16[Gi+10]=Fr,this.int16[Gi+11]=ai,U},y}(Qi);qn.prototype.bytesPerElement=24,X("StructArrayLayout4i4ui4i24",qn);var hi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,ae)},y.prototype.emplace=function(U,$,ae,he){var Oe=U*3;return this.float32[Oe+0]=$,this.float32[Oe+1]=ae,this.float32[Oe+2]=he,U},y}(Qi);hi.prototype.bytesPerElement=12,X("StructArrayLayout3f12",hi);var li=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U){var $=this.length;return this.resize($+1),this.emplace($,U)},y.prototype.emplace=function(U,$){var ae=U*1;return this.uint32[ae+0]=$,U},y}(Qi);li.prototype.bytesPerElement=4,X("StructArrayLayout1ul4",li);var mn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,vt,St,or){var _r=this.length;return this.resize(_r+1),this.emplace(_r,U,$,ae,he,Oe,rt,vt,St,or)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,vt,St,or,_r){var pr=U*10,Fr=U*5;return this.int16[pr+0]=$,this.int16[pr+1]=ae,this.int16[pr+2]=he,this.int16[pr+3]=Oe,this.int16[pr+4]=rt,this.int16[pr+5]=vt,this.uint32[Fr+3]=St,this.uint16[pr+8]=or,this.uint16[pr+9]=_r,U},y}(Qi);mn.prototype.bytesPerElement=20,X("StructArrayLayout6i1ul2ui20",mn);var Ki=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt){var vt=this.length;return this.resize(vt+1),this.emplace(vt,U,$,ae,he,Oe,rt)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,vt){var St=U*6;return this.int16[St+0]=$,this.int16[St+1]=ae,this.int16[St+2]=he,this.int16[St+3]=Oe,this.int16[St+4]=rt,this.int16[St+5]=vt,U},y}(Qi);Ki.prototype.bytesPerElement=12,X("StructArrayLayout2i2i2i12",Ki);var Ui=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe){var rt=this.length;return this.resize(rt+1),this.emplace(rt,U,$,ae,he,Oe)},y.prototype.emplace=function(U,$,ae,he,Oe,rt){var vt=U*4,St=U*8;return this.float32[vt+0]=$,this.float32[vt+1]=ae,this.float32[vt+2]=he,this.int16[St+6]=Oe,this.int16[St+7]=rt,U},y}(Qi);Ui.prototype.bytesPerElement=16,X("StructArrayLayout2f1f2i16",Ui);var Bi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he){var Oe=this.length;return this.resize(Oe+1),this.emplace(Oe,U,$,ae,he)},y.prototype.emplace=function(U,$,ae,he,Oe){var rt=U*12,vt=U*3;return this.uint8[rt+0]=$,this.uint8[rt+1]=ae,this.float32[vt+1]=he,this.float32[vt+2]=Oe,U},y}(Qi);Bi.prototype.bytesPerElement=12,X("StructArrayLayout2ub2f12",Bi);var vn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,ae)},y.prototype.emplace=function(U,$,ae,he){var Oe=U*3;return this.uint16[Oe+0]=$,this.uint16[Oe+1]=ae,this.uint16[Oe+2]=he,U},y}(Qi);vn.prototype.bytesPerElement=6,X("StructArrayLayout3ui6",vn);var Un=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,vt,St,or,_r,pr,Fr,ai,Gi,Ti,bn,rn){var xn=this.length;return this.resize(xn+1),this.emplace(xn,U,$,ae,he,Oe,rt,vt,St,or,_r,pr,Fr,ai,Gi,Ti,bn,rn)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,vt,St,or,_r,pr,Fr,ai,Gi,Ti,bn,rn,xn){var Dn=U*24,Zn=U*12,ga=U*48;return this.int16[Dn+0]=$,this.int16[Dn+1]=ae,this.uint16[Dn+2]=he,this.uint16[Dn+3]=Oe,this.uint32[Zn+2]=rt,this.uint32[Zn+3]=vt,this.uint32[Zn+4]=St,this.uint16[Dn+10]=or,this.uint16[Dn+11]=_r,this.uint16[Dn+12]=pr,this.float32[Zn+7]=Fr,this.float32[Zn+8]=ai,this.uint8[ga+36]=Gi,this.uint8[ga+37]=Ti,this.uint8[ga+38]=bn,this.uint32[Zn+10]=rn,this.int16[Dn+22]=xn,U},y}(Qi);Un.prototype.bytesPerElement=48,X("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Un);var na=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,vt,St,or,_r,pr,Fr,ai,Gi,Ti,bn,rn,xn,Dn,Zn,ga,ha,eo,za,Za,Ko,to,ao){var xs=this.length;return this.resize(xs+1),this.emplace(xs,U,$,ae,he,Oe,rt,vt,St,or,_r,pr,Fr,ai,Gi,Ti,bn,rn,xn,Dn,Zn,ga,ha,eo,za,Za,Ko,to,ao)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,vt,St,or,_r,pr,Fr,ai,Gi,Ti,bn,rn,xn,Dn,Zn,ga,ha,eo,za,Za,Ko,to,ao,xs){var jo=U*34,El=U*17;return this.int16[jo+0]=$,this.int16[jo+1]=ae,this.int16[jo+2]=he,this.int16[jo+3]=Oe,this.int16[jo+4]=rt,this.int16[jo+5]=vt,this.int16[jo+6]=St,this.int16[jo+7]=or,this.uint16[jo+8]=_r,this.uint16[jo+9]=pr,this.uint16[jo+10]=Fr,this.uint16[jo+11]=ai,this.uint16[jo+12]=Gi,this.uint16[jo+13]=Ti,this.uint16[jo+14]=bn,this.uint16[jo+15]=rn,this.uint16[jo+16]=xn,this.uint16[jo+17]=Dn,this.uint16[jo+18]=Zn,this.uint16[jo+19]=ga,this.uint16[jo+20]=ha,this.uint16[jo+21]=eo,this.uint16[jo+22]=za,this.uint32[El+12]=Za,this.float32[El+13]=Ko,this.float32[El+14]=to,this.float32[El+15]=ao,this.float32[El+16]=xs,U},y}(Qi);na.prototype.bytesPerElement=68,X("StructArrayLayout8i15ui1ul4f68",na);var Yi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U){var $=this.length;return this.resize($+1),this.emplace($,U)},y.prototype.emplace=function(U,$){var ae=U*1;return this.float32[ae+0]=$,U},y}(Qi);Yi.prototype.bytesPerElement=4,X("StructArrayLayout1f4",Yi);var Ln=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,ae)},y.prototype.emplace=function(U,$,ae,he){var Oe=U*3;return this.int16[Oe+0]=$,this.int16[Oe+1]=ae,this.int16[Oe+2]=he,U},y}(Qi);Ln.prototype.bytesPerElement=6,X("StructArrayLayout3i6",Ln);var ra=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,ae)},y.prototype.emplace=function(U,$,ae,he){var Oe=U*2,rt=U*4;return this.uint32[Oe+0]=$,this.uint16[rt+2]=ae,this.uint16[rt+3]=he,U},y}(Qi);ra.prototype.bytesPerElement=8,X("StructArrayLayout1ul2ui8",ra);var oa=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$){var ae=this.length;return this.resize(ae+1),this.emplace(ae,U,$)},y.prototype.emplace=function(U,$,ae){var he=U*2;return this.uint16[he+0]=$,this.uint16[he+1]=ae,U},y}(Qi);oa.prototype.bytesPerElement=4,X("StructArrayLayout2ui4",oa);var wa=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U){var $=this.length;return this.resize($+1),this.emplace($,U)},y.prototype.emplace=function(U,$){var ae=U*1;return this.uint16[ae+0]=$,U},y}(Qi);wa.prototype.bytesPerElement=2,X("StructArrayLayout1ui2",wa);var ns=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he){var Oe=this.length;return this.resize(Oe+1),this.emplace(Oe,U,$,ae,he)},y.prototype.emplace=function(U,$,ae,he,Oe){var rt=U*4;return this.float32[rt+0]=$,this.float32[rt+1]=ae,this.float32[rt+2]=he,this.float32[rt+3]=Oe,U},y}(Qi);ns.prototype.bytesPerElement=16,X("StructArrayLayout4f16",ns);var Ys=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;var I={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return I.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},I.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},I.x1.get=function(){return this._structArray.int16[this._pos2+2]},I.y1.get=function(){return this._structArray.int16[this._pos2+3]},I.x2.get=function(){return this._structArray.int16[this._pos2+4]},I.y2.get=function(){return this._structArray.int16[this._pos2+5]},I.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},I.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},I.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},I.anchorPoint.get=function(){return new u(this.anchorPointX,this.anchorPointY)},Object.defineProperties(y.prototype,I),y}(Oi);Ys.prototype.size=20;var Va=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(U){return new Ys(this,U)},y}(mn);X("CollisionBoxArray",Va);var Ml=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;var I={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return I.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},I.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},I.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},I.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},I.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},I.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},I.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},I.segment.get=function(){return this._structArray.uint16[this._pos2+10]},I.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},I.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},I.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},I.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},I.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},I.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},I.placedOrientation.set=function(U){this._structArray.uint8[this._pos1+37]=U},I.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},I.hidden.set=function(U){this._structArray.uint8[this._pos1+38]=U},I.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},I.crossTileID.set=function(U){this._structArray.uint32[this._pos4+10]=U},I.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(y.prototype,I),y}(Oi);Ml.prototype.size=48;var zo=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(U){return new Ml(this,U)},y}(Un);X("PlacedSymbolArray",zo);var el=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;var I={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return I.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},I.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},I.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},I.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},I.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},I.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},I.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},I.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},I.key.get=function(){return this._structArray.uint16[this._pos2+8]},I.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},I.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},I.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},I.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},I.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},I.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},I.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},I.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},I.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},I.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},I.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},I.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},I.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},I.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},I.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},I.crossTileID.set=function(U){this._structArray.uint32[this._pos4+12]=U},I.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},I.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},I.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},I.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(y.prototype,I),y}(Oi);el.prototype.size=68;var ol=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(U){return new el(this,U)},y}(na);X("SymbolInstanceArray",ol);var Ul=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.getoffsetX=function(U){return this.float32[U*1+0]},y}(Yi);X("GlyphOffsetArray",Ul);var ss=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.getx=function(U){return this.int16[U*3+0]},y.prototype.gety=function(U){return this.int16[U*3+1]},y.prototype.gettileUnitDistanceFromAnchor=function(U){return this.int16[U*3+2]},y}(Ln);X("SymbolLineVertexArray",ss);var Gs=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;var I={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return I.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},I.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},I.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(y.prototype,I),y}(Oi);Gs.prototype.size=8;var Ks=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(U){return new Gs(this,U)},y}(ra);X("FeatureIndexArray",Ks);var Ta=Hi([{name:"a_pos",components:2,type:"Int16"}],4),sl=Ta.members,io=function(y){y===void 0&&(y=[]),this.segments=y};io.prototype.prepareSegment=function(y,I,U,$){var ae=this.segments[this.segments.length-1];return y>io.MAX_VERTEX_ARRAY_LENGTH&&re("Max vertices per segment is "+io.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+y),(!ae||ae.vertexLength+y>io.MAX_VERTEX_ARRAY_LENGTH||ae.sortKey!==$)&&(ae={vertexOffset:I.length,primitiveOffset:U.length,vertexLength:0,primitiveLength:0},$!==void 0&&(ae.sortKey=$),this.segments.push(ae)),ae},io.prototype.get=function(){return this.segments},io.prototype.destroy=function(){for(var y=0,I=this.segments;y>>16)*rt&65535)<<16)&4294967295,St=St<<15|St>>>17,St=(St&65535)*vt+(((St>>>16)*vt&65535)<<16)&4294967295,he^=St,he=he<<13|he>>>19,Oe=(he&65535)*5+(((he>>>16)*5&65535)<<16)&4294967295,he=(Oe&65535)+27492+(((Oe>>>16)+58964&65535)<<16);switch(St=0,$){case 3:St^=(I.charCodeAt(or+2)&255)<<16;case 2:St^=(I.charCodeAt(or+1)&255)<<8;case 1:St^=I.charCodeAt(or)&255,St=(St&65535)*rt+(((St>>>16)*rt&65535)<<16)&4294967295,St=St<<15|St>>>17,St=(St&65535)*vt+(((St>>>16)*vt&65535)<<16)&4294967295,he^=St}return he^=I.length,he^=he>>>16,he=(he&65535)*2246822507+(((he>>>16)*2246822507&65535)<<16)&4294967295,he^=he>>>13,he=(he&65535)*3266489909+(((he>>>16)*3266489909&65535)<<16)&4294967295,he^=he>>>16,he>>>0}m.exports=y}),q=a(function(m){function y(I,U){for(var $=I.length,ae=U^$,he=0,Oe;$>=4;)Oe=I.charCodeAt(he)&255|(I.charCodeAt(++he)&255)<<8|(I.charCodeAt(++he)&255)<<16|(I.charCodeAt(++he)&255)<<24,Oe=(Oe&65535)*1540483477+(((Oe>>>16)*1540483477&65535)<<16),Oe^=Oe>>>24,Oe=(Oe&65535)*1540483477+(((Oe>>>16)*1540483477&65535)<<16),ae=(ae&65535)*1540483477+(((ae>>>16)*1540483477&65535)<<16)^Oe,$-=4,++he;switch($){case 3:ae^=(I.charCodeAt(he+2)&255)<<16;case 2:ae^=(I.charCodeAt(he+1)&255)<<8;case 1:ae^=I.charCodeAt(he)&255,ae=(ae&65535)*1540483477+(((ae>>>16)*1540483477&65535)<<16)}return ae^=ae>>>13,ae=(ae&65535)*1540483477+(((ae>>>16)*1540483477&65535)<<16),ae^=ae>>>15,ae>>>0}m.exports=y}),K=J,de=J,ne=q;K.murmur3=de,K.murmur2=ne;var we=function(){this.ids=[],this.positions=[],this.indexed=!1};we.prototype.add=function(y,I,U,$){this.ids.push(ft(y)),this.positions.push(I,U,$)},we.prototype.getPositions=function(y){for(var I=ft(y),U=0,$=this.ids.length-1;U<$;){var ae=U+$>>1;this.ids[ae]>=I?$=ae:U=ae+1}for(var he=[];this.ids[U]===I;){var Oe=this.positions[3*U],rt=this.positions[3*U+1],vt=this.positions[3*U+2];he.push({index:Oe,start:rt,end:vt}),U++}return he},we.serialize=function(y,I){var U=new Float64Array(y.ids),$=new Uint32Array(y.positions);return Zt(U,$,0,U.length-1),I&&I.push(U.buffer,$.buffer),{ids:U,positions:$}},we.deserialize=function(y){var I=new we;return I.ids=y.ids,I.positions=y.positions,I.indexed=!0,I};var Ue=Math.pow(2,53)-1;function ft(m){var y=+m;return!isNaN(y)&&y<=Ue?y:K(String(m))}function Zt(m,y,I,U){for(;I>1],ae=I-1,he=U+1;;){do ae++;while(m[ae]<$);do he--;while(m[he]>$);if(ae>=he)break;hr(m,ae,he),hr(y,3*ae,3*he),hr(y,3*ae+1,3*he+1),hr(y,3*ae+2,3*he+2)}he-Ihe.x+1||rthe.y+1)&&re("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return I}function Ja(m,y){return{type:m.type,id:m.id,properties:m.properties,geometry:y?On(m):[]}}function co(m,y,I,U,$){m.emplaceBack(y*2+(U+1)/2,I*2+($+1)/2)}var ts=function(y){this.zoom=y.zoom,this.overscaling=y.overscaling,this.layers=y.layers,this.layerIds=this.layers.map(function(I){return I.id}),this.index=y.index,this.hasPattern=!1,this.layoutVertexArray=new Zr,this.indexArray=new vn,this.segments=new io,this.programConfigurations=new fi(y.layers,y.zoom),this.stateDependentLayerIds=this.layers.filter(function(I){return I.isStateDependent()}).map(function(I){return I.id})};ts.prototype.populate=function(y,I,U){var $=this.layers[0],ae=[],he=null;$.type==="circle"&&(he=$.layout.get("circle-sort-key"));for(var Oe=0,rt=y;Oe=Ci||_r<0||_r>=Ci)){var pr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,y.sortKey),Fr=pr.vertexLength;co(this.layoutVertexArray,or,_r,-1,-1),co(this.layoutVertexArray,or,_r,1,-1),co(this.layoutVertexArray,or,_r,1,1),co(this.layoutVertexArray,or,_r,-1,1),this.indexArray.emplaceBack(Fr,Fr+1,Fr+2),this.indexArray.emplaceBack(Fr,Fr+3,Fr+2),pr.vertexLength+=4,pr.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,y,U,{},$)},X("CircleBucket",ts,{omit:["layers"]});function so(m,y){for(var I=0;I=3){for(var ae=0;ae<$.length;ae++)if(Td(m,$[ae]))return!0}if(Mv(m,$,I))return!0}return!1}function Mv(m,y,I){if(m.length>1){if(Ev(m,y))return!0;for(var U=0;U1?m.distSqr(I):m.distSqr(I.sub(y)._mult($)._add(y))}function dp(m,y){for(var I=!1,U,$,ae,he=0;hey.y!=ae.y>y.y&&y.x<(ae.x-$.x)*(y.y-$.y)/(ae.y-$.y)+$.x&&(I=!I)}return I}function Td(m,y){for(var I=!1,U=0,$=m.length-1;Uy.y!=he.y>y.y&&y.x<(he.x-ae.x)*(y.y-ae.y)/(he.y-ae.y)+ae.x&&(I=!I)}return I}function vp(m,y,I,U,$){for(var ae=0,he=m;ae=Oe.x&&$>=Oe.y)return!0}var rt=[new u(y,I),new u(y,$),new u(U,$),new u(U,I)];if(m.length>2)for(var vt=0,St=rt;vt$.x&&y.x>$.x||m.y$.y&&y.y>$.y)return!1;var ae=oe(m,y,I[0]);return ae!==oe(m,y,I[1])||ae!==oe(m,y,I[2])||ae!==oe(m,y,I[3])}function Ad(m,y,I){var U=y.paint.get(m).value;return U.kind==="constant"?U.value:I.programConfigurations.get(y.id).getMaxValue(m)}function Cv(m){return Math.sqrt(m[0]*m[0]+m[1]*m[1])}function Kv(m,y,I,U,$){if(!y[0]&&!y[1])return m;var ae=u.convert(y)._mult($);I==="viewport"&&ae._rotate(-U);for(var he=[],Oe=0;Oe0&&(ae=1/Math.sqrt(ae)),m[0]=y[0]*ae,m[1]=y[1]*ae,m[2]=y[2]*ae,m}function D9(m,y){return m[0]*y[0]+m[1]*y[1]+m[2]*y[2]}function F9(m,y,I){var U=y[0],$=y[1],ae=y[2],he=I[0],Oe=I[1],rt=I[2];return m[0]=$*rt-ae*Oe,m[1]=ae*he-U*rt,m[2]=U*Oe-$*he,m}function z9(m,y,I){var U=y[0],$=y[1],ae=y[2];return m[0]=U*I[0]+$*I[3]+ae*I[6],m[1]=U*I[1]+$*I[4]+ae*I[7],m[2]=U*I[2]+$*I[5]+ae*I[8],m}var O9=om,MQ=function(){var m=am();return function(y,I,U,$,ae,he){var Oe,rt;for(I||(I=3),U||(U=0),$?rt=Math.min($*I+U,y.length):rt=y.length,Oe=U;Oem.width||$.height>m.height||I.x>m.width-$.width||I.y>m.height-$.height)throw new RangeError("out of range source coordinates for image copy");if($.width>y.width||$.height>y.height||U.x>y.width-$.width||U.y>y.height-$.height)throw new RangeError("out of range destination coordinates for image copy");for(var he=m.data,Oe=y.data,rt=0;rt<$.height;rt++)for(var vt=((I.y+rt)*m.width+I.x)*ae,St=((U.y+rt)*y.width+U.x)*ae,or=0;or<$.width*ae;or++)Oe[St+or]=he[vt+or];return y}var Pv=function(y,I){Md(this,y,1,I)};Pv.prototype.resize=function(y){Cw(this,y,1)},Pv.prototype.clone=function(){return new Pv({width:this.width,height:this.height},new Uint8Array(this.data))},Pv.copy=function(y,I,U,$,ae){kw(y,I,U,$,ae,1)};var wh=function(y,I){Md(this,y,4,I)};wh.prototype.resize=function(y){Cw(this,y,4)},wh.prototype.replace=function(y,I){I?this.data.set(y):y instanceof Uint8ClampedArray?this.data=new Uint8Array(y.buffer):this.data=y},wh.prototype.clone=function(){return new wh({width:this.width,height:this.height},new Uint8Array(this.data))},wh.copy=function(y,I,U,$,ae){kw(y,I,U,$,ae,4)},X("AlphaImage",Pv),X("RGBAImage",wh);var Gx=new Br({"heatmap-radius":new _t(Fn.paint_heatmap["heatmap-radius"]),"heatmap-weight":new _t(Fn.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Ee(Fn.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Hr(Fn.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Ee(Fn.paint_heatmap["heatmap-opacity"])}),S1={paint:Gx};function Hx(m){var y={},I=m.resolution||256,U=m.clips?m.clips.length:1,$=m.image||new wh({width:I,height:U}),ae=function(bn,rn,xn){y[m.evaluationKey]=xn;var Dn=m.expression.evaluate(y);$.data[bn+rn+0]=Math.floor(Dn.r*255/Dn.a),$.data[bn+rn+1]=Math.floor(Dn.g*255/Dn.a),$.data[bn+rn+2]=Math.floor(Dn.b*255/Dn.a),$.data[bn+rn+3]=Math.floor(Dn.a*255)};if(m.clips)for(var vt=0,St=0;vt80*I){Oe=vt=m[0],rt=St=m[1];for(var Fr=I;Fr<$;Fr+=I)or=m[Fr],_r=m[Fr+1],orvt&&(vt=or),_r>St&&(St=_r);pr=Math.max(vt-Oe,St-rt),pr=pr!==0?1/pr:0}return jx(ae,he,I,Oe,rt,pr),he}function Iw(m,y,I,U,$){var ae,he;if($===cS(m,y,I,U)>0)for(ae=y;ae=y;ae-=U)he=wk(ae,m[ae],m[ae+1],he);return he&&Xx(he,he.next)&&(Kx(he),he=he.next),he}function sm(m,y){if(!m)return m;y||(y=m);var I=m,U;do if(U=!1,!I.steiner&&(Xx(I,I.next)||bf(I.prev,I,I.next)===0)){if(Kx(I),I=y=I.prev,I===I.next)break;U=!0}else I=I.next;while(U||I!==y);return y}function jx(m,y,I,U,$,ae,he){if(m){!he&&ae&&Rw(m,U,$,ae);for(var Oe=m,rt,vt;m.prev!==m.next;){if(rt=m.prev,vt=m.next,ae?_k(m,U,$,ae):yk(m)){y.push(rt.i/I),y.push(m.i/I),y.push(vt.i/I),Kx(m),m=vt.next,Oe=vt.next;continue}if(m=vt,m===Oe){he?he===1?(m=Wx(sm(m),y,I),jx(m,y,I,U,$,ae,2)):he===2&&v0(m,y,I,U,$,ae):jx(sm(m),y,I,U,$,ae,1);break}}}}function yk(m){var y=m.prev,I=m,U=m.next;if(bf(y,I,U)>=0)return!1;for(var $=m.next.next;$!==m.prev;){if(um(y.x,y.y,I.x,I.y,U.x,U.y,$.x,$.y)&&bf($.prev,$,$.next)>=0)return!1;$=$.next}return!0}function _k(m,y,I,U){var $=m.prev,ae=m,he=m.next;if(bf($,ae,he)>=0)return!1;for(var Oe=$.xae.x?$.x>he.x?$.x:he.x:ae.x>he.x?ae.x:he.x,St=$.y>ae.y?$.y>he.y?$.y:he.y:ae.y>he.y?ae.y:he.y,or=oS(Oe,rt,y,I,U),_r=oS(vt,St,y,I,U),pr=m.prevZ,Fr=m.nextZ;pr&&pr.z>=or&&Fr&&Fr.z<=_r;){if(pr!==m.prev&&pr!==m.next&&um($.x,$.y,ae.x,ae.y,he.x,he.y,pr.x,pr.y)&&bf(pr.prev,pr,pr.next)>=0||(pr=pr.prevZ,Fr!==m.prev&&Fr!==m.next&&um($.x,$.y,ae.x,ae.y,he.x,he.y,Fr.x,Fr.y)&&bf(Fr.prev,Fr,Fr.next)>=0))return!1;Fr=Fr.nextZ}for(;pr&&pr.z>=or;){if(pr!==m.prev&&pr!==m.next&&um($.x,$.y,ae.x,ae.y,he.x,he.y,pr.x,pr.y)&&bf(pr.prev,pr,pr.next)>=0)return!1;pr=pr.prevZ}for(;Fr&&Fr.z<=_r;){if(Fr!==m.prev&&Fr!==m.next&&um($.x,$.y,ae.x,ae.y,he.x,he.y,Fr.x,Fr.y)&&bf(Fr.prev,Fr,Fr.next)>=0)return!1;Fr=Fr.nextZ}return!0}function Wx(m,y,I){var U=m;do{var $=U.prev,ae=U.next.next;!Xx($,ae)&&Dw($,U,U.next,ae)&&Yx($,ae)&&Yx(ae,$)&&(y.push($.i/I),y.push(U.i/I),y.push(ae.i/I),Kx(U),Kx(U.next),U=m=ae),U=U.next}while(U!==m);return sm(U)}function v0(m,y,I,U,$,ae){var he=m;do{for(var Oe=he.next.next;Oe!==he.prev;){if(he.i!==Oe.i&&E1(he,Oe)){var rt=lS(he,Oe);he=sm(he,he.next),rt=sm(rt,rt.next),jx(he,y,I,U,$,ae),jx(rt,y,I,U,$,ae);return}Oe=Oe.next}he=he.next}while(he!==m)}function lm(m,y,I,U){var $=[],ae,he,Oe,rt,vt;for(ae=0,he=y.length;ae=I.next.y&&I.next.y!==I.y){var Oe=I.x+($-I.y)*(I.next.x-I.x)/(I.next.y-I.y);if(Oe<=U&&Oe>ae){if(ae=Oe,Oe===U){if($===I.y)return I;if($===I.next.y)return I.next}he=I.x=I.x&&I.x>=vt&&U!==I.x&&um($he.x||I.x===he.x&&W9(he,I)))&&(he=I,or=_r)),I=I.next;while(I!==rt);return he}function W9(m,y){return bf(m.prev,m,y.prev)<0&&bf(y.next,m,m.next)<0}function Rw(m,y,I,U){var $=m;do $.z===null&&($.z=oS($.x,$.y,y,I,U)),$.prevZ=$.prev,$.nextZ=$.next,$=$.next;while($!==m);$.prevZ.nextZ=null,$.prevZ=null,aS($)}function aS(m){var y,I,U,$,ae,he,Oe,rt,vt=1;do{for(I=m,m=null,ae=null,he=0;I;){for(he++,U=I,Oe=0,y=0;y0||rt>0&&U;)Oe!==0&&(rt===0||!U||I.z<=U.z)?($=I,I=I.nextZ,Oe--):($=U,U=U.nextZ,rt--),ae?ae.nextZ=$:m=$,$.prevZ=ae,ae=$;I=U}ae.nextZ=null,vt*=2}while(he>1);return m}function oS(m,y,I,U,$){return m=32767*(m-I)*$,y=32767*(y-U)*$,m=(m|m<<8)&16711935,m=(m|m<<4)&252645135,m=(m|m<<2)&858993459,m=(m|m<<1)&1431655765,y=(y|y<<8)&16711935,y=(y|y<<4)&252645135,y=(y|y<<2)&858993459,y=(y|y<<1)&1431655765,m|y<<1}function sS(m){var y=m,I=m;do(y.x=0&&(m-he)*(U-Oe)-(I-he)*(y-Oe)>=0&&(I-he)*(ae-Oe)-($-he)*(U-Oe)>=0}function E1(m,y){return m.next.i!==y.i&&m.prev.i!==y.i&&!bk(m,y)&&(Yx(m,y)&&Yx(y,m)&&X9(m,y)&&(bf(m.prev,m,y.prev)||bf(m,y.prev,y))||Xx(m,y)&&bf(m.prev,m,m.next)>0&&bf(y.prev,y,y.next)>0)}function bf(m,y,I){return(y.y-m.y)*(I.x-y.x)-(y.x-m.x)*(I.y-y.y)}function Xx(m,y){return m.x===y.x&&m.y===y.y}function Dw(m,y,I,U){var $=uy(bf(m,y,I)),ae=uy(bf(m,y,U)),he=uy(bf(I,U,m)),Oe=uy(bf(I,U,y));return!!($!==ae&&he!==Oe||$===0&&Zx(m,I,y)||ae===0&&Zx(m,U,y)||he===0&&Zx(I,m,U)||Oe===0&&Zx(I,y,U))}function Zx(m,y,I){return y.x<=Math.max(m.x,I.x)&&y.x>=Math.min(m.x,I.x)&&y.y<=Math.max(m.y,I.y)&&y.y>=Math.min(m.y,I.y)}function uy(m){return m>0?1:m<0?-1:0}function bk(m,y){var I=m;do{if(I.i!==m.i&&I.next.i!==m.i&&I.i!==y.i&&I.next.i!==y.i&&Dw(I,I.next,m,y))return!0;I=I.next}while(I!==m);return!1}function Yx(m,y){return bf(m.prev,m,m.next)<0?bf(m,y,m.next)>=0&&bf(m,m.prev,y)>=0:bf(m,y,m.prev)<0||bf(m,m.next,y)<0}function X9(m,y){var I=m,U=!1,$=(m.x+y.x)/2,ae=(m.y+y.y)/2;do I.y>ae!=I.next.y>ae&&I.next.y!==I.y&&$<(I.next.x-I.x)*(ae-I.y)/(I.next.y-I.y)+I.x&&(U=!U),I=I.next;while(I!==m);return U}function lS(m,y){var I=new uS(m.i,m.x,m.y),U=new uS(y.i,y.x,y.y),$=m.next,ae=y.prev;return m.next=y,y.prev=m,I.next=$,$.prev=I,U.next=I,I.prev=U,ae.next=U,U.prev=ae,U}function wk(m,y,I,U){var $=new uS(m,y,I);return U?($.next=U.next,$.prev=U,U.next.prev=$,U.next=$):($.prev=$,$.next=$),$}function Kx(m){m.next.prev=m.prev,m.prev.next=m.next,m.prevZ&&(m.prevZ.nextZ=m.nextZ),m.nextZ&&(m.nextZ.prevZ=m.prevZ)}function uS(m,y,I){this.i=m,this.x=y,this.y=I,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}M1.deviation=function(m,y,I,U){var $=y&&y.length,ae=$?y[0]*I:m.length,he=Math.abs(cS(m,0,ae,I));if($)for(var Oe=0,rt=y.length;Oe0&&(U+=m[$-1].length,I.holes.push(U))}return I},Pw.default=mk;function fS(m,y,I,U,$){dg(m,y,I||0,U||m.length-1,$||Tk)}function dg(m,y,I,U,$){for(;U>I;){if(U-I>600){var ae=U-I+1,he=y-I+1,Oe=Math.log(ae),rt=.5*Math.exp(2*Oe/3),vt=.5*Math.sqrt(Oe*rt*(ae-rt)/ae)*(he-ae/2<0?-1:1),St=Math.max(I,Math.floor(y-he*rt/ae+vt)),or=Math.min(U,Math.floor(y+(ae-he)*rt/ae+vt));dg(m,y,St,or,$)}var _r=m[y],pr=I,Fr=U;for(C1(m,I,y),$(m[U],_r)>0&&C1(m,I,U);pr0;)Fr--}$(m[I],_r)===0?C1(m,I,Fr):(Fr++,C1(m,Fr,U)),Fr<=y&&(I=Fr+1),y<=Fr&&(U=Fr-1)}}function C1(m,y,I){var U=m[y];m[y]=m[I],m[I]=U}function Tk(m,y){return my?1:0}function Fw(m,y){var I=m.length;if(I<=1)return[m];for(var U=[],$,ae,he=0;he1)for(var rt=0;rt>3}if(U--,I===1||I===2)$+=m.readSVarint(),ae+=m.readSVarint(),I===1&&(Oe&&he.push(Oe),Oe=[]),Oe.push(new u($,ae));else if(I===7)Oe&&Oe.push(Oe[0].clone());else throw new Error("unknown command "+I)}return Oe&&he.push(Oe),he},cy.prototype.bbox=function(){var m=this._pbf;m.pos=this._geometry;for(var y=m.readVarint()+m.pos,I=1,U=0,$=0,ae=0,he=1/0,Oe=-1/0,rt=1/0,vt=-1/0;m.pos>3}if(U--,I===1||I===2)$+=m.readSVarint(),ae+=m.readSVarint(),$Oe&&(Oe=$),aevt&&(vt=ae);else if(I!==7)throw new Error("unknown command "+I)}return[he,rt,Oe,vt]},cy.prototype.toGeoJSON=function(m,y,I){var U=this.extent*Math.pow(2,I),$=this.extent*m,ae=this.extent*y,he=this.loadGeometry(),Oe=cy.types[this.type],rt,vt;function St(pr){for(var Fr=0;Fr>3;y=U===1?m.readString():U===2?m.readFloat():U===3?m.readDouble():U===4?m.readVarint64():U===5?m.readVarint():U===6?m.readSVarint():U===7?m.readBoolean():null}return y}vS.prototype.feature=function(m){if(m<0||m>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[m];var y=this._pbf.readVarint()+this._pbf.pos;return new dS(this._pbf,y,this.extent,this._keys,this._values)};var Rk=Y9;function Y9(m,y){this.layers=m.readFields(K9,{},y)}function K9(m,y,I){if(m===3){var U=new vg(I,I.readVarint()+I.pos);U.length&&(y[U.name]=U)}}var Dk=Rk,k1=dS,Fk=vg,pg={VectorTile:Dk,VectorTileFeature:k1,VectorTileLayer:Fk},zk=pg.VectorTileFeature.types,Ow=500,L1=Math.pow(2,13);function cm(m,y,I,U,$,ae,he,Oe){m.emplaceBack(y,I,Math.floor(U*L1)*2+he,$*L1*2,ae*L1*2,Math.round(Oe))}var Vp=function(y){this.zoom=y.zoom,this.overscaling=y.overscaling,this.layers=y.layers,this.layerIds=this.layers.map(function(I){return I.id}),this.index=y.index,this.hasPattern=!1,this.layoutVertexArray=new Ii,this.indexArray=new vn,this.programConfigurations=new fi(y.layers,y.zoom),this.segments=new io,this.stateDependentLayerIds=this.layers.filter(function(I){return I.isStateDependent()}).map(function(I){return I.id})};Vp.prototype.populate=function(y,I,U){this.features=[],this.hasPattern=zw("fill-extrusion",this.layers,I);for(var $=0,ae=y;$=1){var xn=Gi[bn-1];if(!J9(rn,xn)){pr.vertexLength+4>io.MAX_VERTEX_ARRAY_LENGTH&&(pr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Dn=rn.sub(xn)._perp()._unit(),Zn=xn.dist(rn);Ti+Zn>32768&&(Ti=0),cm(this.layoutVertexArray,rn.x,rn.y,Dn.x,Dn.y,0,0,Ti),cm(this.layoutVertexArray,rn.x,rn.y,Dn.x,Dn.y,0,1,Ti),Ti+=Zn,cm(this.layoutVertexArray,xn.x,xn.y,Dn.x,Dn.y,0,0,Ti),cm(this.layoutVertexArray,xn.x,xn.y,Dn.x,Dn.y,0,1,Ti);var ga=pr.vertexLength;this.indexArray.emplaceBack(ga,ga+2,ga+1),this.indexArray.emplaceBack(ga+1,ga+2,ga+3),pr.vertexLength+=4,pr.primitiveLength+=2}}}}if(pr.vertexLength+vt>io.MAX_VERTEX_ARRAY_LENGTH&&(pr=this.segments.prepareSegment(vt,this.layoutVertexArray,this.indexArray)),zk[y.type]==="Polygon"){for(var ha=[],eo=[],za=pr.vertexLength,Za=0,Ko=rt;ZaCi)||m.y===y.y&&(m.y<0||m.y>Ci)}function $9(m){return m.every(function(y){return y.x<0})||m.every(function(y){return y.x>Ci})||m.every(function(y){return y.y<0})||m.every(function(y){return y.y>Ci})}var P1=new Br({"fill-extrusion-opacity":new Ee(Fn["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new _t(Fn["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Ee(Fn["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Ee(Fn["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new zt(Fn["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new _t(Fn["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new _t(Fn["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Ee(Fn["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),sd={paint:P1},fm=function(m){function y(I){m.call(this,I,sd)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.createBucket=function(U){return new Vp(U)},y.prototype.queryRadius=function(){return Cv(this.paint.get("fill-extrusion-translate"))},y.prototype.is3D=function(){return!0},y.prototype.queryIntersectsFeature=function(U,$,ae,he,Oe,rt,vt,St){var or=Kv(U,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),rt.angle,vt),_r=this.paint.get("fill-extrusion-height").evaluate($,ae),pr=this.paint.get("fill-extrusion-base").evaluate($,ae),Fr=Q9(or,St,rt,0),ai=gS(he,pr,_r,St),Gi=ai[0],Ti=ai[1];return Ok(Gi,Ti,Fr)},y}(gi);function fy(m,y){return m.x*y.x+m.y*y.y}function pS(m,y){if(m.length===1){for(var I=0,U=y[I++],$;!$||U.equals($);)if($=y[I++],!$)return 1/0;for(;I=2&&y[vt-1].equals(y[vt-2]);)vt--;for(var St=0;St0;if(ha&&bn>St){var za=pr.dist(Fr);if(za>2*or){var Za=pr.sub(pr.sub(Fr)._mult(or/za)._round());this.updateDistance(Fr,Za),this.addCurrentVertex(Za,Gi,0,0,_r),Fr=Za}}var Ko=Fr&&ai,to=Ko?U:rt?"butt":$;if(Ko&&to==="round"&&(Znae&&(to="bevel"),to==="bevel"&&(Zn>2&&(to="flipbevel"),Zn100)rn=Ti.mult(-1);else{var ao=Zn*Gi.add(Ti).mag()/Gi.sub(Ti).mag();rn._perp()._mult(ao*(eo?-1:1))}this.addCurrentVertex(pr,rn,0,0,_r),this.addCurrentVertex(pr,rn.mult(-1),0,0,_r)}else if(to==="bevel"||to==="fakeround"){var xs=-Math.sqrt(Zn*Zn-1),jo=eo?xs:0,El=eo?0:xs;if(Fr&&this.addCurrentVertex(pr,Gi,jo,El,_r),to==="fakeround")for(var Iu=Math.round(ga*180/Math.PI/yS),Cl=1;Cl2*or){var ch=pr.add(ai.sub(pr)._mult(or/Xh)._round());this.updateDistance(pr,ch),this.addCurrentVertex(ch,Ti,0,0,_r),pr=ch}}}}},sh.prototype.addCurrentVertex=function(y,I,U,$,ae,he){he===void 0&&(he=!1);var Oe=I.x+I.y*U,rt=I.y-I.x*U,vt=-I.x+I.y*$,St=-I.y-I.x*$;this.addHalfVertex(y,Oe,rt,he,!1,U,ae),this.addHalfVertex(y,vt,St,he,!0,-$,ae),this.distance>tb/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(y,I,U,$,ae,he))},sh.prototype.addHalfVertex=function(y,I,U,$,ae,he,Oe){var rt=y.x,vt=y.y,St=this.lineClips?this.scaledDistance*(tb-1):this.scaledDistance,or=St*Bw;if(this.layoutVertexArray.emplaceBack((rt<<1)+($?1:0),(vt<<1)+(ae?1:0),Math.round(qw*I)+128,Math.round(qw*U)+128,(he===0?0:he<0?-1:1)+1|(or&63)<<2,or>>6),this.lineClips){var _r=this.scaledDistance-this.lineClips.start,pr=this.lineClips.end-this.lineClips.start,Fr=_r/pr;this.layoutVertexArray2.emplaceBack(Fr,this.lineClipsArray.length)}var ai=Oe.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,ai),Oe.primitiveLength++),ae?this.e2=ai:this.e1=ai},sh.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},sh.prototype.updateDistance=function(y,I){this.distance+=y.dist(I),this.updateScaledDistance()},X("LineBucket",sh,{omit:["layers","patternFeatures"]});var _S=new Br({"line-cap":new Ee(Fn.layout_line["line-cap"]),"line-join":new _t(Fn.layout_line["line-join"]),"line-miter-limit":new Ee(Fn.layout_line["line-miter-limit"]),"line-round-limit":new Ee(Fn.layout_line["line-round-limit"]),"line-sort-key":new _t(Fn.layout_line["line-sort-key"])}),xS=new Br({"line-opacity":new _t(Fn.paint_line["line-opacity"]),"line-color":new _t(Fn.paint_line["line-color"]),"line-translate":new Ee(Fn.paint_line["line-translate"]),"line-translate-anchor":new Ee(Fn.paint_line["line-translate-anchor"]),"line-width":new _t(Fn.paint_line["line-width"]),"line-gap-width":new _t(Fn.paint_line["line-gap-width"]),"line-offset":new _t(Fn.paint_line["line-offset"]),"line-blur":new _t(Fn.paint_line["line-blur"]),"line-dasharray":new Rr(Fn.paint_line["line-dasharray"]),"line-pattern":new zt(Fn.paint_line["line-pattern"]),"line-gradient":new Hr(Fn.paint_line["line-gradient"])}),Nw={paint:xS,layout:_S},tO=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.possiblyEvaluate=function(U,$){return $=new Gn(Math.floor($.zoom),{now:$.now,fadeDuration:$.fadeDuration,zoomHistory:$.zoomHistory,transition:$.transition}),m.prototype.possiblyEvaluate.call(this,U,$)},y.prototype.evaluate=function(U,$,ae,he){return $=_({},$,{zoom:Math.floor($.zoom)}),m.prototype.evaluate.call(this,U,$,ae,he)},y}(_t),R=new tO(Nw.paint.properties["line-width"].specification);R.useIntegerZoom=!0;var S=function(m){function y(I){m.call(this,I,Nw),this.gradientVersion=0}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._handleSpecialPaintPropertyUpdate=function(U){if(U==="line-gradient"){var $=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=$._styleExpression.expression instanceof _u,this.gradientVersion=(this.gradientVersion+1)%d}},y.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},y.prototype.recalculate=function(U,$){m.prototype.recalculate.call(this,U,$),this.paint._values["line-floorwidth"]=R.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,U)},y.prototype.createBucket=function(U){return new sh(U)},y.prototype.queryRadius=function(U){var $=U,ae=F(Ad("line-width",this,$),Ad("line-gap-width",this,$)),he=Ad("line-offset",this,$);return ae/2+Math.abs(he)+Cv(this.paint.get("line-translate"))},y.prototype.queryIntersectsFeature=function(U,$,ae,he,Oe,rt,vt){var St=Kv(U,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),rt.angle,vt),or=vt/2*F(this.paint.get("line-width").evaluate($,ae),this.paint.get("line-gap-width").evaluate($,ae)),_r=this.paint.get("line-offset").evaluate($,ae);return _r&&(he=W(he,_r*vt)),su(St,he,or)},y.prototype.isTileClipped=function(){return!0},y}(gi);function F(m,y){return y>0?y+2*m:m}function W(m,y){for(var I=[],U=new u(0,0),$=0;$":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};function ln(m){for(var y="",I=0;I>1,St=-7,or=I?$-1:0,_r=I?-1:1,pr=m[y+or];for(or+=_r,ae=pr&(1<<-St)-1,pr>>=-St,St+=Oe;St>0;ae=ae*256+m[y+or],or+=_r,St-=8);for(he=ae&(1<<-St)-1,ae>>=-St,St+=U;St>0;he=he*256+m[y+or],or+=_r,St-=8);if(ae===0)ae=1-vt;else{if(ae===rt)return he?NaN:(pr?-1:1)*(1/0);he=he+Math.pow(2,U),ae=ae-vt}return(pr?-1:1)*he*Math.pow(2,ae-U)},ro=function(m,y,I,U,$,ae){var he,Oe,rt,vt=ae*8-$-1,St=(1<>1,_r=$===23?Math.pow(2,-24)-Math.pow(2,-77):0,pr=U?0:ae-1,Fr=U?1:-1,ai=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===1/0?(Oe=isNaN(y)?1:0,he=St):(he=Math.floor(Math.log(y)/Math.LN2),y*(rt=Math.pow(2,-he))<1&&(he--,rt*=2),he+or>=1?y+=_r/rt:y+=_r*Math.pow(2,1-or),y*rt>=2&&(he++,rt/=2),he+or>=St?(Oe=0,he=St):he+or>=1?(Oe=(y*rt-1)*Math.pow(2,$),he=he+or):(Oe=y*Math.pow(2,or-1)*Math.pow(2,$),he=0));$>=8;m[I+pr]=Oe&255,pr+=Fr,Oe/=256,$-=8);for(he=he<<$|Oe,vt+=$;vt>0;m[I+pr]=he&255,pr+=Fr,he/=256,vt-=8);m[I+pr-Fr]|=ai*128},Vo={read:pa,write:ro},Xa=sa;function sa(m){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(m)?m:new Uint8Array(m||0),this.pos=0,this.type=0,this.length=this.buf.length}sa.Varint=0,sa.Fixed64=1,sa.Bytes=2,sa.Fixed32=5;var Mo=65536*65536,fo=1/Mo,lo=12,Xn=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");sa.prototype={destroy:function(){this.buf=null},readFields:function(m,y,I){for(I=I||this.length;this.pos>3,ae=this.pos;this.type=U&7,m($,y,this),this.pos===ae&&this.skip(U)}return y},readMessage:function(m,y){return this.readFields(m,y,this.readVarint()+this.pos)},readFixed32:function(){var m=Hh(this.buf,this.pos);return this.pos+=4,m},readSFixed32:function(){var m=Iv(this.buf,this.pos);return this.pos+=4,m},readFixed64:function(){var m=Hh(this.buf,this.pos)+Hh(this.buf,this.pos+4)*Mo;return this.pos+=8,m},readSFixed64:function(){var m=Hh(this.buf,this.pos)+Iv(this.buf,this.pos+4)*Mo;return this.pos+=8,m},readFloat:function(){var m=Vo.read(this.buf,this.pos,!0,23,4);return this.pos+=4,m},readDouble:function(){var m=Vo.read(this.buf,this.pos,!0,52,8);return this.pos+=8,m},readVarint:function(m){var y=this.buf,I,U;return U=y[this.pos++],I=U&127,U<128||(U=y[this.pos++],I|=(U&127)<<7,U<128)||(U=y[this.pos++],I|=(U&127)<<14,U<128)||(U=y[this.pos++],I|=(U&127)<<21,U<128)?I:(U=y[this.pos],I|=(U&15)<<28,Ro(I,m,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var m=this.readVarint();return m%2===1?(m+1)/-2:m/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var m=this.readVarint()+this.pos,y=this.pos;return this.pos=m,m-y>=lo&&Xn?tu(this.buf,y,m):lv(this.buf,y,m)},readBytes:function(){var m=this.readVarint()+this.pos,y=this.buf.subarray(this.pos,m);return this.pos=m,y},readPackedVarint:function(m,y){if(this.type!==sa.Bytes)return m.push(this.readVarint(y));var I=uo(this);for(m=m||[];this.pos127;);else if(y===sa.Bytes)this.pos=this.readVarint()+this.pos;else if(y===sa.Fixed32)this.pos+=4;else if(y===sa.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+y)},writeTag:function(m,y){this.writeVarint(m<<3|y)},realloc:function(m){for(var y=this.length||16;y268435455||m<0){Ju(m,this);return}this.realloc(4),this.buf[this.pos++]=m&127|(m>127?128:0),!(m<=127)&&(this.buf[this.pos++]=(m>>>=7)&127|(m>127?128:0),!(m<=127)&&(this.buf[this.pos++]=(m>>>=7)&127|(m>127?128:0),!(m<=127)&&(this.buf[this.pos++]=m>>>7&127)))},writeSVarint:function(m){this.writeVarint(m<0?-m*2-1:m*2)},writeBoolean:function(m){this.writeVarint(!!m)},writeString:function(m){m=String(m),this.realloc(m.length*4),this.pos++;var y=this.pos;this.pos=pc(this.buf,m,this.pos);var I=this.pos-y;I>=128&&$v(y,I,this),this.pos=y-1,this.writeVarint(I),this.pos+=I},writeFloat:function(m){this.realloc(4),Vo.write(this.buf,m,this.pos,!0,23,4),this.pos+=4},writeDouble:function(m){this.realloc(8),Vo.write(this.buf,m,this.pos,!0,52,8),this.pos+=8},writeBytes:function(m){var y=m.length;this.writeVarint(y),this.realloc(y);for(var I=0;I=128&&$v(I,U,this),this.pos=I-1,this.writeVarint(U),this.pos+=U},writeMessage:function(m,y,I){this.writeTag(m,sa.Bytes),this.writeRawMessage(y,I)},writePackedVarint:function(m,y){y.length&&this.writeMessage(m,ld,y)},writePackedSVarint:function(m,y){y.length&&this.writeMessage(m,Ah,y)},writePackedBoolean:function(m,y){y.length&&this.writeMessage(m,jd,y)},writePackedFloat:function(m,y){y.length&&this.writeMessage(m,Gd,y)},writePackedDouble:function(m,y){y.length&&this.writeMessage(m,Hd,y)},writePackedFixed32:function(m,y){y.length&&this.writeMessage(m,wf,y)},writePackedSFixed32:function(m,y){y.length&&this.writeMessage(m,Sh,y)},writePackedFixed64:function(m,y){y.length&&this.writeMessage(m,Ed,y)},writePackedSFixed64:function(m,y){y.length&&this.writeMessage(m,ud,y)},writeBytesField:function(m,y){this.writeTag(m,sa.Bytes),this.writeBytes(y)},writeFixed32Field:function(m,y){this.writeTag(m,sa.Fixed32),this.writeFixed32(y)},writeSFixed32Field:function(m,y){this.writeTag(m,sa.Fixed32),this.writeSFixed32(y)},writeFixed64Field:function(m,y){this.writeTag(m,sa.Fixed64),this.writeFixed64(y)},writeSFixed64Field:function(m,y){this.writeTag(m,sa.Fixed64),this.writeSFixed64(y)},writeVarintField:function(m,y){this.writeTag(m,sa.Varint),this.writeVarint(y)},writeSVarintField:function(m,y){this.writeTag(m,sa.Varint),this.writeSVarint(y)},writeStringField:function(m,y){this.writeTag(m,sa.Bytes),this.writeString(y)},writeFloatField:function(m,y){this.writeTag(m,sa.Fixed32),this.writeFloat(y)},writeDoubleField:function(m,y){this.writeTag(m,sa.Fixed64),this.writeDouble(y)},writeBooleanField:function(m,y){this.writeVarintField(m,!!y)}};function Ro(m,y,I){var U=I.buf,$,ae;if(ae=U[I.pos++],$=(ae&112)>>4,ae<128||(ae=U[I.pos++],$|=(ae&127)<<3,ae<128)||(ae=U[I.pos++],$|=(ae&127)<<10,ae<128)||(ae=U[I.pos++],$|=(ae&127)<<17,ae<128)||(ae=U[I.pos++],$|=(ae&127)<<24,ae<128)||(ae=U[I.pos++],$|=(ae&1)<<31,ae<128))return Jo(m,$,y);throw new Error("Expected varint not more than 10 bytes")}function uo(m){return m.type===sa.Bytes?m.readVarint()+m.pos:m.pos+1}function Jo(m,y,I){return I?y*4294967296+(m>>>0):(y>>>0)*4294967296+(m>>>0)}function Ju(m,y){var I,U;if(m>=0?(I=m%4294967296|0,U=m/4294967296|0):(I=~(-m%4294967296),U=~(-m/4294967296),I^4294967295?I=I+1|0:(I=0,U=U+1|0)),m>=18446744073709552e3||m<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");y.realloc(10),qu(I,U,y),Th(U,y)}function qu(m,y,I){I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos]=m&127}function Th(m,y){var I=(m&7)<<4;y.buf[y.pos++]|=I|((m>>>=3)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127)))))}function $v(m,y,I){var U=y<=16383?1:y<=2097151?2:y<=268435455?3:Math.floor(Math.log(y)/(Math.LN2*7));I.realloc(U);for(var $=I.pos-1;$>=m;$--)I.buf[$+U]=I.buf[$]}function ld(m,y){for(var I=0;I>>8,m[I+2]=y>>>16,m[I+3]=y>>>24}function Iv(m,y){return(m[y]|m[y+1]<<8|m[y+2]<<16)+(m[y+3]<<24)}function lv(m,y,I){for(var U="",$=y;$239?4:ae>223?3:ae>191?2:1;if($+Oe>I)break;var rt,vt,St;Oe===1?ae<128&&(he=ae):Oe===2?(rt=m[$+1],(rt&192)===128&&(he=(ae&31)<<6|rt&63,he<=127&&(he=null))):Oe===3?(rt=m[$+1],vt=m[$+2],(rt&192)===128&&(vt&192)===128&&(he=(ae&15)<<12|(rt&63)<<6|vt&63,(he<=2047||he>=55296&&he<=57343)&&(he=null))):Oe===4&&(rt=m[$+1],vt=m[$+2],St=m[$+3],(rt&192)===128&&(vt&192)===128&&(St&192)===128&&(he=(ae&15)<<18|(rt&63)<<12|(vt&63)<<6|St&63,(he<=65535||he>=1114112)&&(he=null))),he===null?(he=65533,Oe=1):he>65535&&(he-=65536,U+=String.fromCharCode(he>>>10&1023|55296),he=56320|he&1023),U+=String.fromCharCode(he),$+=Oe}return U}function tu(m,y,I){return Xn.decode(m.subarray(y,I))}function pc(m,y,I){for(var U=0,$,ae;U55295&&$<57344)if(ae)if($<56320){m[I++]=239,m[I++]=191,m[I++]=189,ae=$;continue}else $=ae-55296<<10|$-56320|65536,ae=null;else{$>56319||U+1===y.length?(m[I++]=239,m[I++]=191,m[I++]=189):ae=$;continue}else ae&&(m[I++]=239,m[I++]=191,m[I++]=189,ae=null);$<128?m[I++]=$:($<2048?m[I++]=$>>6|192:($<65536?m[I++]=$>>12|224:(m[I++]=$>>18|240,m[I++]=$>>12&63|128),m[I++]=$>>6&63|128),m[I++]=$&63|128)}return I}var $u=3;function Rv(m,y,I){m===1&&I.readMessage(cf,y)}function cf(m,y,I){if(m===3){var U=I.readMessage(I1,{}),$=U.id,ae=U.bitmap,he=U.width,Oe=U.height,rt=U.left,vt=U.top,St=U.advance;y.push({id:$,bitmap:new Pv({width:he+2*$u,height:Oe+2*$u},ae),metrics:{width:he,height:Oe,left:rt,top:vt,advance:St}})}}function I1(m,y,I){m===1?y.id=I.readVarint():m===2?y.bitmap=I.readBytes():m===3?y.width=I.readVarint():m===4?y.height=I.readVarint():m===5?y.left=I.readSVarint():m===6?y.top=I.readSVarint():m===7&&(y.advance=I.readVarint())}function p0(m){return new Xa(m).readFields(Rv,[])}var Gp=$u;function Qv(m){for(var y=0,I=0,U=0,$=m;U<$.length;U+=1){var ae=$[U];y+=ae.w*ae.h,I=Math.max(I,ae.w)}m.sort(function(Gi,Ti){return Ti.h-Gi.h});for(var he=Math.max(Math.ceil(Math.sqrt(y/.95)),I),Oe=[{x:0,y:0,w:he,h:1/0}],rt=0,vt=0,St=0,or=m;St=0;pr--){var Fr=Oe[pr];if(!(_r.w>Fr.w||_r.h>Fr.h)){if(_r.x=Fr.x,_r.y=Fr.y,vt=Math.max(vt,_r.y+_r.h),rt=Math.max(rt,_r.x+_r.w),_r.w===Fr.w&&_r.h===Fr.h){var ai=Oe.pop();pr=0&&$>=y&&m0[this.text.charCodeAt($)];$--)U--;this.text=this.text.substring(y,U),this.sectionIndex=this.sectionIndex.slice(y,U)},jh.prototype.substring=function(y,I){var U=new jh;return U.text=this.text.substring(y,I),U.sectionIndex=this.sectionIndex.slice(y,I),U.sections=this.sections,U},jh.prototype.toString=function(){return this.text},jh.prototype.getMaxScale=function(){var y=this;return this.sectionIndex.reduce(function(I,U){return Math.max(I,y.sections[U].scale)},0)},jh.prototype.addTextSection=function(y,I){this.text+=y.text,this.sections.push(hy.forText(y.scale,y.fontStack||I));for(var U=this.sections.length-1,$=0;$=g0?null:++this.imageSectionID:(this.imageSectionID=Uw,this.imageSectionID)};function rO(m,y){for(var I=[],U=m.text,$=0,ae=0,he=y;ae=0,St=0,or=0;or0&&ch>eo&&(eo=ch)}else{var kl=I[Za.fontStack],_l=kl&&kl[to];if(_l&&_l.rect)jo=_l.rect,xs=_l.metrics;else{var Qu=y[Za.fontStack],gc=Qu&&Qu[to];if(!gc)continue;xs=gc.metrics}ao=(Dn-Za.scale)*An}Cl?(m.verticalizable=!0,ha.push({glyph:to,imageName:El,x:_r,y:pr+ao,vertical:Cl,scale:Za.scale,fontStack:Za.fontStack,sectionIndex:Ko,metrics:xs,rect:jo}),_r+=Iu*Za.scale+vt):(ha.push({glyph:to,imageName:El,x:_r,y:pr+ao,vertical:Cl,scale:Za.scale,fontStack:Za.fontStack,sectionIndex:Ko,metrics:xs,rect:jo}),_r+=xs.advance*Za.scale+vt)}if(ha.length!==0){var Xd=_r-vt;Fr=Math.max(Xd,Fr),oO(ha,0,ha.length-1,Gi,eo)}_r=0;var Zd=ae*Dn+eo;ga.lineOffset=Math.max(eo,Zn),pr+=Zd,ai=Math.max(Zd,ai),++Ti}var Zh=pr-R1,fv=wS(he),hv=fv.horizontalAlign,Mh=fv.verticalAlign;Cd(m.positionedLines,Gi,hv,Mh,Fr,ai,ae,Zh,$.length),m.top+=-Mh*Zh,m.bottom=m.top+Zh,m.left+=-hv*Fr,m.right=m.left+Fr}function oO(m,y,I,U,$){if(!(!U&&!$))for(var ae=m[I],he=ae.metrics.advance*ae.scale,Oe=(m[I].x+he)*U,rt=y;rt<=I;rt++)m[rt].x-=Oe,m[rt].y+=$}function Cd(m,y,I,U,$,ae,he,Oe,rt){var vt=(y-I)*$,St=0;ae!==he?St=-Oe*U-R1:St=(-U*rt+.5)*he;for(var or=0,_r=m;or<_r.length;or+=1)for(var pr=_r[or],Fr=0,ai=pr.positionedGlyphs;Fr-I/2;){if(he--,he<0)return!1;Oe-=m[he].dist(ae),ae=m[he]}Oe+=m[he].dist(m[he+1]),he++;for(var rt=[],vt=0;OeU;)vt-=rt.shift().angleDelta;if(vt>$)return!1;he++,Oe+=or.dist(_r)}return!0}function PQ(m){for(var y=0,I=0;Ivt){var Fr=(vt-rt)/pr,ai=al(or.x,_r.x,Fr),Gi=al(or.y,_r.y,Fr),Ti=new Wd(ai,Gi,_r.angleTo(or),St);return Ti._round(),!he||LQ(m,Ti,Oe,he,y)?Ti:void 0}rt+=pr}}function QQe(m,y,I,U,$,ae,he,Oe,rt){var vt=IQ(U,ae,he),St=RQ(U,$),or=St*he,_r=m[0].x===0||m[0].x===rt||m[0].y===0||m[0].y===rt;y-or=0&&xn=0&&Dn=0&&_r+vt<=St){var Zn=new Wd(xn,Dn,bn,Fr);Zn._round(),(!U||LQ(m,Zn,ae,U,$))&&pr.push(Zn)}}or+=Ti}return!Oe&&!pr.length&&!he&&(pr=DQ(m,or/2,I,U,$,ae,he,!0,rt)),pr}function FQ(m,y,I,U,$){for(var ae=[],he=0;he=U&&or.x>=U)&&(St.x>=U?St=new u(U,St.y+(or.y-St.y)*((U-St.x)/(or.x-St.x)))._round():or.x>=U&&(or=new u(U,St.y+(or.y-St.y)*((U-St.x)/(or.x-St.x)))._round()),!(St.y>=$&&or.y>=$)&&(St.y>=$?St=new u(St.x+(or.x-St.x)*(($-St.y)/(or.y-St.y)),$)._round():or.y>=$&&(or=new u(St.x+(or.x-St.x)*(($-St.y)/(or.y-St.y)),$)._round()),(!rt||!St.equals(rt[rt.length-1]))&&(rt=[St],ae.push(rt)),rt.push(or)))))}return ae}var Hw=Gc;function zQ(m,y,I,U){var $=[],ae=m.image,he=ae.pixelRatio,Oe=ae.paddedRect.w-2*Hw,rt=ae.paddedRect.h-2*Hw,vt=m.right-m.left,St=m.bottom-m.top,or=ae.stretchX||[[0,Oe]],_r=ae.stretchY||[[0,rt]],pr=function(kl,_l){return kl+_l[1]-_l[0]},Fr=or.reduce(pr,0),ai=_r.reduce(pr,0),Gi=Oe-Fr,Ti=rt-ai,bn=0,rn=Fr,xn=0,Dn=ai,Zn=0,ga=Gi,ha=0,eo=Ti;if(ae.content&&U){var za=ae.content;bn=jk(or,0,za[0]),xn=jk(_r,0,za[1]),rn=jk(or,za[0],za[2]),Dn=jk(_r,za[1],za[3]),Zn=za[0]-bn,ha=za[1]-xn,ga=za[2]-za[0]-rn,eo=za[3]-za[1]-Dn}var Za=function(kl,_l,Qu,gc){var Tf=Wk(kl.stretch-bn,rn,vt,m.left),Df=Xk(kl.fixed-Zn,ga,kl.stretch,Fr),Xh=Wk(_l.stretch-xn,Dn,St,m.top),ch=Xk(_l.fixed-ha,eo,_l.stretch,ai),Xd=Wk(Qu.stretch-bn,rn,vt,m.left),Zd=Xk(Qu.fixed-Zn,ga,Qu.stretch,Fr),Zh=Wk(gc.stretch-xn,Dn,St,m.top),fv=Xk(gc.fixed-ha,eo,gc.stretch,ai),hv=new u(Tf,Xh),Mh=new u(Xd,Xh),dv=new u(Xd,Zh),yp=new u(Tf,Zh),py=new u(Df/he,ch/he),z1=new u(Zd/he,fv/he),O1=y*Math.PI/180;if(O1){var q1=Math.sin(O1),$w=Math.cos(O1),y0=[$w,-q1,q1,$w];hv._matMult(y0),Mh._matMult(y0),yp._matMult(y0),dv._matMult(y0)}var Qk=kl.stretch+kl.fixed,vO=Qu.stretch+Qu.fixed,e6=_l.stretch+_l.fixed,pO=gc.stretch+gc.fixed,Hp={x:ae.paddedRect.x+Hw+Qk,y:ae.paddedRect.y+Hw+e6,w:vO-Qk,h:pO-e6},Qw=ga/he/vt,t6=eo/he/St;return{tl:hv,tr:Mh,bl:yp,br:dv,tex:Hp,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:py,pixelOffsetBR:z1,minFontScaleX:Qw,minFontScaleY:t6,isSDF:I}};if(!U||!ae.stretchX&&!ae.stretchY)$.push(Za({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:Oe+1},{fixed:0,stretch:rt+1}));else for(var Ko=OQ(or,Gi,Fr),to=OQ(_r,Ti,ai),ao=0;ao0&&(Fr=Math.max(10,Fr),this.circleDiameter=Fr)}else{var ai=he.top*Oe-rt,Gi=he.bottom*Oe+rt,Ti=he.left*Oe-rt,bn=he.right*Oe+rt,rn=he.collisionPadding;if(rn&&(Ti-=rn[0]*Oe,ai-=rn[1]*Oe,bn+=rn[2]*Oe,Gi+=rn[3]*Oe),St){var xn=new u(Ti,ai),Dn=new u(bn,ai),Zn=new u(Ti,Gi),ga=new u(bn,Gi),ha=St*Math.PI/180;xn._rotate(ha),Dn._rotate(ha),Zn._rotate(ha),ga._rotate(ha),Ti=Math.min(xn.x,Dn.x,Zn.x,ga.x),bn=Math.max(xn.x,Dn.x,Zn.x,ga.x),ai=Math.min(xn.y,Dn.y,Zn.y,ga.y),Gi=Math.max(xn.y,Dn.y,Zn.y,ga.y)}y.emplaceBack(I.x,I.y,Ti,ai,bn,Gi,U,$,ae)}this.boxEndIndex=y.length},jw=function(y,I){if(y===void 0&&(y=[]),I===void 0&&(I=tet),this.data=y,this.length=this.data.length,this.compare=I,this.length>0)for(var U=(this.length>>1)-1;U>=0;U--)this._down(U)};jw.prototype.push=function(y){this.data.push(y),this.length++,this._up(this.length-1)},jw.prototype.pop=function(){if(this.length!==0){var y=this.data[0],I=this.data.pop();return this.length--,this.length>0&&(this.data[0]=I,this._down(0)),y}},jw.prototype.peek=function(){return this.data[0]},jw.prototype._up=function(y){for(var I=this,U=I.data,$=I.compare,ae=U[y];y>0;){var he=y-1>>1,Oe=U[he];if($(ae,Oe)>=0)break;U[y]=Oe,y=he}U[y]=ae},jw.prototype._down=function(y){for(var I=this,U=I.data,$=I.compare,ae=this.length>>1,he=U[y];y=0)break;U[y]=rt,y=Oe}U[y]=he};function tet(m,y){return my?1:0}function ret(m,y,I){y===void 0&&(y=1),I===void 0&&(I=!1);for(var U=1/0,$=1/0,ae=-1/0,he=-1/0,Oe=m[0],rt=0;rtae)&&(ae=vt.x),(!rt||vt.y>he)&&(he=vt.y)}var St=ae-U,or=he-$,_r=Math.min(St,or),pr=_r/2,Fr=new jw([],iet);if(_r===0)return new u(U,$);for(var ai=U;aiTi.d||!Ti.d)&&(Ti=rn,I&&console.log("found best %d after %d probes",Math.round(1e4*rn.d)/1e4,bn)),!(rn.max-Ti.d<=y)&&(pr=rn.h/2,Fr.push(new Ww(rn.p.x-pr,rn.p.y-pr,pr,m)),Fr.push(new Ww(rn.p.x+pr,rn.p.y-pr,pr,m)),Fr.push(new Ww(rn.p.x-pr,rn.p.y+pr,pr,m)),Fr.push(new Ww(rn.p.x+pr,rn.p.y+pr,pr,m)),bn+=4)}return I&&(console.log("num probes: "+bn),console.log("best distance: "+Ti.d)),Ti.p}function iet(m,y){return y.max-m.max}function Ww(m,y,I,U){this.p=new u(m,y),this.h=I,this.d=net(this.p,U),this.max=this.d+this.h*Math.SQRT2}function net(m,y){for(var I=!1,U=1/0,$=0;$m.y!=St.y>m.y&&m.x<(St.x-vt.x)*(m.y-vt.y)/(St.y-vt.y)+vt.x&&(I=!I),U=Math.min(U,cg(m,vt,St))}return(I?1:-1)*Math.sqrt(U)}function aet(m){for(var y=0,I=0,U=0,$=m[0],ae=0,he=$.length,Oe=he-1;ae=Ci||y0.y<0||y0.y>=Ci||uet(m,y0,$w,I,U,$,to,m.layers[0],m.collisionBoxArray,y.index,y.sourceLayerIndex,m.index,Ti,Dn,ha,rt,rn,Zn,eo,pr,y,ae,vt,St,he)};if(za==="line")for(var xs=0,jo=FQ(y.geometry,0,0,Ci,Ci);xs1){var Xh=$Qe(Df,ga,I.vertical||Fr,U,ai,bn);Xh&&ao(Df,Xh)}}else if(y.type==="Polygon")for(var ch=0,Xd=Fw(y.geometry,0);chD1&&re(m.layerIds[0]+': Value for "text-size" is >= '+TS+'. Reduce your "text-size".')):Gi.kind==="composite"&&(Ti=[kd*pr.compositeTextSizes[0].evaluate(he,{},Fr),kd*pr.compositeTextSizes[1].evaluate(he,{},Fr)],(Ti[0]>D1||Ti[1]>D1)&&re(m.layerIds[0]+': Value for "text-size" is >= '+TS+'. Reduce your "text-size".')),m.addSymbols(m.text,ai,Ti,Oe,ae,he,vt,y,rt.lineStartIndex,rt.lineLength,_r,Fr);for(var bn=0,rn=St;bnD1&&re(m.layerIds[0]+': Value for "icon-size" is >= '+TS+'. Reduce your "icon-size".')):hv.kind==="composite"&&(Mh=[kd*Dn.compositeIconSizes[0].evaluate(xn,{},ga),kd*Dn.compositeIconSizes[1].evaluate(xn,{},ga)],(Mh[0]>D1||Mh[1]>D1)&&re(m.layerIds[0]+': Value for "icon-size" is >= '+TS+'. Reduce your "icon-size".')),m.addSymbols(m.icon,Zh,Mh,rn,bn,xn,!1,y,za.lineStartIndex,za.lineLength,-1,ga),Cl=m.icon.placedSymbolArray.length-1,fv&&(jo=fv.length*4,m.addSymbols(m.icon,fv,Mh,rn,bn,xn,uv.vertical,y,za.lineStartIndex,za.lineLength,-1,ga),kl=m.icon.placedSymbolArray.length-1)}for(var dv in U.horizontal){var yp=U.horizontal[dv];if(!Za){Qu=K(yp.text);var py=Oe.layout.get("text-rotate").evaluate(xn,{},ga);Za=new Zk(rt,y,vt,St,or,yp,_r,pr,Fr,py)}var z1=yp.positionedLines.length===1;if(El+=BQ(m,y,yp,ae,Oe,Fr,xn,ai,za,U.vertical?uv.horizontal:uv.horizontalOnly,z1?Object.keys(U.horizontal):[dv],_l,Cl,Dn,ga),z1)break}U.vertical&&(Iu+=BQ(m,y,U.vertical,ae,Oe,Fr,xn,ai,za,uv.vertical,["vertical"],_l,kl,Dn,ga));var O1=Za?Za.boxStartIndex:m.collisionBoxArray.length,q1=Za?Za.boxEndIndex:m.collisionBoxArray.length,$w=to?to.boxStartIndex:m.collisionBoxArray.length,y0=to?to.boxEndIndex:m.collisionBoxArray.length,Qk=Ko?Ko.boxStartIndex:m.collisionBoxArray.length,vO=Ko?Ko.boxEndIndex:m.collisionBoxArray.length,e6=ao?ao.boxStartIndex:m.collisionBoxArray.length,pO=ao?ao.boxEndIndex:m.collisionBoxArray.length,Hp=-1,Qw=function(MS,ree){return MS&&MS.circleDiameter?Math.max(MS.circleDiameter,ree):ree};Hp=Qw(Za,Hp),Hp=Qw(to,Hp),Hp=Qw(Ko,Hp),Hp=Qw(ao,Hp);var t6=Hp>-1?1:0;t6&&(Hp*=ha/An),m.glyphOffsetArray.length>=Pu.MAX_GLYPHS&&re("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),xn.sortKey!==void 0&&m.addToSortKeyRanges(m.symbolInstances.length,xn.sortKey),m.symbolInstances.emplaceBack(y.x,y.y,_l.right>=0?_l.right:-1,_l.center>=0?_l.center:-1,_l.left>=0?_l.left:-1,_l.vertical||-1,Cl,kl,Qu,O1,q1,$w,y0,Qk,vO,e6,pO,vt,El,Iu,xs,jo,t6,0,_r,gc,Tf,Hp)}function cet(m,y,I,U){var $=m.compareText;if(!(y in $))$[y]=[];else for(var ae=$[y],he=ae.length-1;he>=0;he--)if(U.dist(ae[he])0)&&(he.value.kind!=="constant"||he.value.value.length>0),St=rt.value.kind!=="constant"||!!rt.value.value||Object.keys(rt.parameters).length>0,or=ae.get("symbol-sort-key");if(this.features=[],!(!vt&&!St)){for(var _r=I.iconDependencies,pr=I.glyphDependencies,Fr=I.availableImages,ai=new Gn(this.zoom),Gi=0,Ti=y;Gi=0;for(var Iu=0,Cl=eo.sections;Iu=0;rt--)he[rt]={x:I[rt].x,y:I[rt].y,tileUnitDistanceFromAnchor:ae},rt>0&&(ae+=I[rt-1].dist(I[rt]));for(var vt=0;vt0},Pu.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Pu.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},Pu.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},Pu.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},Pu.prototype.addIndicesForPlacedSymbol=function(y,I){for(var U=y.placedSymbolArray.get(I),$=U.vertexStartIndex+U.numGlyphs*4,ae=U.vertexStartIndex;ae<$;ae+=4)y.indexArray.emplaceBack(ae,ae+1,ae+2),y.indexArray.emplaceBack(ae+1,ae+2,ae+3)},Pu.prototype.getSortedSymbolIndexes=function(y){if(this.sortedAngle===y&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;for(var I=Math.sin(y),U=Math.cos(y),$=[],ae=[],he=[],Oe=0;Oe1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(y),this.sortedAngle=y,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var U=0,$=this.symbolInstanceIndexes;U<$.length;U+=1){var ae=$[U],he=this.symbolInstances.get(ae);this.featureSortOrder.push(he.featureIndex),[he.rightJustifiedTextSymbolIndex,he.centerJustifiedTextSymbolIndex,he.leftJustifiedTextSymbolIndex].forEach(function(Oe,rt,vt){Oe>=0&&vt.indexOf(Oe)===rt&&I.addIndicesForPlacedSymbol(I.text,Oe)}),he.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,he.verticalPlacedTextSymbolIndex),he.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,he.placedIconSymbolIndex),he.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,he.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},X("SymbolBucket",Pu,{omit:["layers","collisionBoxArray","features","compareText"]}),Pu.MAX_GLYPHS=65535,Pu.addDynamicAttributes=uO;function vet(m,y){return y.replace(/{([^{}]+)}/g,function(I,U){return U in m?String(m[U]):""})}var pet=new Br({"symbol-placement":new Ee(Fn.layout_symbol["symbol-placement"]),"symbol-spacing":new Ee(Fn.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ee(Fn.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new _t(Fn.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Ee(Fn.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Ee(Fn.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Ee(Fn.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ee(Fn.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ee(Fn.layout_symbol["icon-rotation-alignment"]),"icon-size":new _t(Fn.layout_symbol["icon-size"]),"icon-text-fit":new Ee(Fn.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Ee(Fn.layout_symbol["icon-text-fit-padding"]),"icon-image":new _t(Fn.layout_symbol["icon-image"]),"icon-rotate":new _t(Fn.layout_symbol["icon-rotate"]),"icon-padding":new Ee(Fn.layout_symbol["icon-padding"]),"icon-keep-upright":new Ee(Fn.layout_symbol["icon-keep-upright"]),"icon-offset":new _t(Fn.layout_symbol["icon-offset"]),"icon-anchor":new _t(Fn.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Ee(Fn.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ee(Fn.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ee(Fn.layout_symbol["text-rotation-alignment"]),"text-field":new _t(Fn.layout_symbol["text-field"]),"text-font":new _t(Fn.layout_symbol["text-font"]),"text-size":new _t(Fn.layout_symbol["text-size"]),"text-max-width":new _t(Fn.layout_symbol["text-max-width"]),"text-line-height":new Ee(Fn.layout_symbol["text-line-height"]),"text-letter-spacing":new _t(Fn.layout_symbol["text-letter-spacing"]),"text-justify":new _t(Fn.layout_symbol["text-justify"]),"text-radial-offset":new _t(Fn.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Ee(Fn.layout_symbol["text-variable-anchor"]),"text-anchor":new _t(Fn.layout_symbol["text-anchor"]),"text-max-angle":new Ee(Fn.layout_symbol["text-max-angle"]),"text-writing-mode":new Ee(Fn.layout_symbol["text-writing-mode"]),"text-rotate":new _t(Fn.layout_symbol["text-rotate"]),"text-padding":new Ee(Fn.layout_symbol["text-padding"]),"text-keep-upright":new Ee(Fn.layout_symbol["text-keep-upright"]),"text-transform":new _t(Fn.layout_symbol["text-transform"]),"text-offset":new _t(Fn.layout_symbol["text-offset"]),"text-allow-overlap":new Ee(Fn.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Ee(Fn.layout_symbol["text-ignore-placement"]),"text-optional":new Ee(Fn.layout_symbol["text-optional"])}),get=new Br({"icon-opacity":new _t(Fn.paint_symbol["icon-opacity"]),"icon-color":new _t(Fn.paint_symbol["icon-color"]),"icon-halo-color":new _t(Fn.paint_symbol["icon-halo-color"]),"icon-halo-width":new _t(Fn.paint_symbol["icon-halo-width"]),"icon-halo-blur":new _t(Fn.paint_symbol["icon-halo-blur"]),"icon-translate":new Ee(Fn.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ee(Fn.paint_symbol["icon-translate-anchor"]),"text-opacity":new _t(Fn.paint_symbol["text-opacity"]),"text-color":new _t(Fn.paint_symbol["text-color"],{runtimeType:Ol,getOverride:function(m){return m.textColor},hasOverride:function(m){return!!m.textColor}}),"text-halo-color":new _t(Fn.paint_symbol["text-halo-color"]),"text-halo-width":new _t(Fn.paint_symbol["text-halo-width"]),"text-halo-blur":new _t(Fn.paint_symbol["text-halo-blur"]),"text-translate":new Ee(Fn.paint_symbol["text-translate"]),"text-translate-anchor":new Ee(Fn.paint_symbol["text-translate-anchor"])}),cO={paint:get,layout:pet},Yw=function(y){this.type=y.property.overrides?y.property.overrides.runtimeType:ac,this.defaultValue=y};Yw.prototype.evaluate=function(y){if(y.formattedSection){var I=this.defaultValue.property.overrides;if(I&&I.hasOverride(y.formattedSection))return I.getOverride(y.formattedSection)}return y.feature&&y.featureState?this.defaultValue.evaluate(y.feature,y.featureState):this.defaultValue.property.specification.default},Yw.prototype.eachChild=function(y){if(!this.defaultValue.isConstant()){var I=this.defaultValue.value;y(I._styleExpression.expression)}},Yw.prototype.outputDefined=function(){return!1},Yw.prototype.serialize=function(){return null},X("FormatSectionOverride",Yw,{omit:["defaultValue"]});var met=function(m){function y(I){m.call(this,I,cO)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.recalculate=function(U,$){if(m.prototype.recalculate.call(this,U,$),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var ae=this.layout.get("text-writing-mode");if(ae){for(var he=[],Oe=0,rt=ae;Oe",targetMapId:$,sourceMapId:he.mapId})}}},Kw.prototype.receive=function(y){var I=y.data,U=I.id;if(U&&!(I.targetMapId&&this.mapId!==I.targetMapId))if(I.type===""){delete this.tasks[U];var $=this.cancelCallbacks[U];delete this.cancelCallbacks[U],$&&$()}else ke()||I.mustQueue?(this.tasks[U]=I,this.taskQueue.push(U),this.invoker.trigger()):this.processTask(U,I)},Kw.prototype.process=function(){if(this.taskQueue.length){var y=this.taskQueue.shift(),I=this.tasks[y];delete this.tasks[y],this.taskQueue.length&&this.invoker.trigger(),I&&this.processTask(y,I)}},Kw.prototype.processTask=function(y,I){var U=this;if(I.type===""){var $=this.callbacks[y];delete this.callbacks[y],$&&(I.error?$(Ye(I.error)):$(null,Ye(I.data)))}else{var ae=!1,he=Se(this.globalScope)?void 0:[],Oe=I.hasCallback?function(_r,pr){ae=!0,delete U.cancelCallbacks[y],U.target.postMessage({id:y,type:"",sourceMapId:U.mapId,error:_r?He(_r):null,data:He(pr,he)},he)}:function(_r){ae=!0},rt=null,vt=Ye(I.data);if(this.parent[I.type])rt=this.parent[I.type](I.sourceMapId,vt,Oe);else if(this.parent.getWorkerSource){var St=I.type.split("."),or=this.parent.getWorkerSource(I.sourceMapId,St[0],vt.source);rt=or[St[1]](vt,Oe)}else Oe(new Error("Could not find function "+I.type));!ae&&rt&&rt.cancel&&(this.cancelCallbacks[y]=rt.cancel)}},Kw.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function ket(m,y,I){y=Math.pow(2,I)-y-1;var U=jQ(m*256,y*256,I),$=jQ((m+1)*256,(y+1)*256,I);return U[0]+","+U[1]+","+$[0]+","+$[1]}function jQ(m,y,I){var U=2*Math.PI*6378137/256/Math.pow(2,I),$=m*U-2*Math.PI*6378137/2,ae=y*U-2*Math.PI*6378137/2;return[$,ae]}var lh=function(y,I){y&&(I?this.setSouthWest(y).setNorthEast(I):y.length===4?this.setSouthWest([y[0],y[1]]).setNorthEast([y[2],y[3]]):this.setSouthWest(y[0]).setNorthEast(y[1]))};lh.prototype.setNorthEast=function(y){return this._ne=y instanceof Hc?new Hc(y.lng,y.lat):Hc.convert(y),this},lh.prototype.setSouthWest=function(y){return this._sw=y instanceof Hc?new Hc(y.lng,y.lat):Hc.convert(y),this},lh.prototype.extend=function(y){var I=this._sw,U=this._ne,$,ae;if(y instanceof Hc)$=y,ae=y;else if(y instanceof lh){if($=y._sw,ae=y._ne,!$||!ae)return this}else{if(Array.isArray(y))if(y.length===4||y.every(Array.isArray)){var he=y;return this.extend(lh.convert(he))}else{var Oe=y;return this.extend(Hc.convert(Oe))}return this}return!I&&!U?(this._sw=new Hc($.lng,$.lat),this._ne=new Hc(ae.lng,ae.lat)):(I.lng=Math.min($.lng,I.lng),I.lat=Math.min($.lat,I.lat),U.lng=Math.max(ae.lng,U.lng),U.lat=Math.max(ae.lat,U.lat)),this},lh.prototype.getCenter=function(){return new Hc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},lh.prototype.getSouthWest=function(){return this._sw},lh.prototype.getNorthEast=function(){return this._ne},lh.prototype.getNorthWest=function(){return new Hc(this.getWest(),this.getNorth())},lh.prototype.getSouthEast=function(){return new Hc(this.getEast(),this.getSouth())},lh.prototype.getWest=function(){return this._sw.lng},lh.prototype.getSouth=function(){return this._sw.lat},lh.prototype.getEast=function(){return this._ne.lng},lh.prototype.getNorth=function(){return this._ne.lat},lh.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},lh.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},lh.prototype.isEmpty=function(){return!(this._sw&&this._ne)},lh.prototype.contains=function(y){var I=Hc.convert(y),U=I.lng,$=I.lat,ae=this._sw.lat<=$&&$<=this._ne.lat,he=this._sw.lng<=U&&U<=this._ne.lng;return this._sw.lng>this._ne.lng&&(he=this._sw.lng>=U&&U>=this._ne.lng),ae&&he},lh.convert=function(y){return!y||y instanceof lh?y:new lh(y)};var WQ=63710088e-1,Hc=function(y,I){if(isNaN(y)||isNaN(I))throw new Error("Invalid LngLat object: ("+y+", "+I+")");if(this.lng=+y,this.lat=+I,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Hc.prototype.wrap=function(){return new Hc(C(this.lng,-180,180),this.lat)},Hc.prototype.toArray=function(){return[this.lng,this.lat]},Hc.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Hc.prototype.distanceTo=function(y){var I=Math.PI/180,U=this.lat*I,$=y.lat*I,ae=Math.sin(U)*Math.sin($)+Math.cos(U)*Math.cos($)*Math.cos((y.lng-this.lng)*I),he=WQ*Math.acos(Math.min(ae,1));return he},Hc.prototype.toBounds=function(y){y===void 0&&(y=0);var I=40075017,U=360*y/I,$=U/Math.cos(Math.PI/180*this.lat);return new lh(new Hc(this.lng-$,this.lat-U),new Hc(this.lng+$,this.lat+U))},Hc.convert=function(y){if(y instanceof Hc)return y;if(Array.isArray(y)&&(y.length===2||y.length===3))return new Hc(Number(y[0]),Number(y[1]));if(!Array.isArray(y)&&typeof y=="object"&&y!==null)return new Hc(Number("lng"in y?y.lng:y.lon),Number(y.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var XQ=2*Math.PI*WQ;function ZQ(m){return XQ*Math.cos(m*Math.PI/180)}function YQ(m){return(180+m)/360}function KQ(m){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+m*Math.PI/360)))/360}function JQ(m,y){return m/ZQ(y)}function Let(m){return m*360-180}function hO(m){var y=180-m*360;return 360/Math.PI*Math.atan(Math.exp(y*Math.PI/180))-90}function Pet(m,y){return m*ZQ(hO(y))}function Iet(m){return 1/Math.cos(m*Math.PI/180)}var nb=function(y,I,U){U===void 0&&(U=0),this.x=+y,this.y=+I,this.z=+U};nb.fromLngLat=function(y,I){I===void 0&&(I=0);var U=Hc.convert(y);return new nb(YQ(U.lng),KQ(U.lat),JQ(I,U.lat))},nb.prototype.toLngLat=function(){return new Hc(Let(this.x),hO(this.y))},nb.prototype.toAltitude=function(){return Pet(this.z,this.y)},nb.prototype.meterInMercatorCoordinateUnits=function(){return 1/XQ*Iet(hO(this.y))};var ab=function(y,I,U){this.z=y,this.x=I,this.y=U,this.key=SS(0,y,y,I,U)};ab.prototype.equals=function(y){return this.z===y.z&&this.x===y.x&&this.y===y.y},ab.prototype.url=function(y,I){var U=ket(this.x,this.y,this.z),$=Ret(this.z,this.x,this.y);return y[(this.x+this.y)%y.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(I==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",$).replace("{bbox-epsg-3857}",U)},ab.prototype.getTilePoint=function(y){var I=Math.pow(2,this.z);return new u((y.x*I-this.x)*Ci,(y.y*I-this.y)*Ci)},ab.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var $Q=function(y,I){this.wrap=y,this.canonical=I,this.key=SS(y,I.z,I.z,I.x,I.y)},uh=function(y,I,U,$,ae){this.overscaledZ=y,this.wrap=I,this.canonical=new ab(U,+$,+ae),this.key=SS(I,y,U,$,ae)};uh.prototype.equals=function(y){return this.overscaledZ===y.overscaledZ&&this.wrap===y.wrap&&this.canonical.equals(y.canonical)},uh.prototype.scaledTo=function(y){var I=this.canonical.z-y;return y>this.canonical.z?new uh(y,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new uh(y,this.wrap,y,this.canonical.x>>I,this.canonical.y>>I)},uh.prototype.calculateScaledKey=function(y,I){var U=this.canonical.z-y;return y>this.canonical.z?SS(this.wrap*+I,y,this.canonical.z,this.canonical.x,this.canonical.y):SS(this.wrap*+I,y,y,this.canonical.x>>U,this.canonical.y>>U)},uh.prototype.isChildOf=function(y){if(y.wrap!==this.wrap)return!1;var I=this.canonical.z-y.canonical.z;return y.overscaledZ===0||y.overscaledZ>I&&y.canonical.y===this.canonical.y>>I},uh.prototype.children=function(y){if(this.overscaledZ>=y)return[new uh(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var I=this.canonical.z+1,U=this.canonical.x*2,$=this.canonical.y*2;return[new uh(I,this.wrap,I,U,$),new uh(I,this.wrap,I,U+1,$),new uh(I,this.wrap,I,U,$+1),new uh(I,this.wrap,I,U+1,$+1)]},uh.prototype.isLessThan=function(y){return this.wrapy.wrap?!1:this.overscaledZy.overscaledZ?!1:this.canonical.xy.canonical.x?!1:this.canonical.y0;ae--)$=1<=this.dim+1||I<-1||I>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(I+1)*this.stride+(y+1)},dy.prototype._unpackMapbox=function(y,I,U){return(y*256*256+I*256+U)/10-1e4},dy.prototype._unpackTerrarium=function(y,I,U){return y*256+I+U/256-32768},dy.prototype.getPixels=function(){return new wh({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},dy.prototype.backfillBorder=function(y,I,U){if(this.dim!==y.dim)throw new Error("dem dimension mismatch");var $=I*this.dim,ae=I*this.dim+this.dim,he=U*this.dim,Oe=U*this.dim+this.dim;switch(I){case-1:$=ae-1;break;case 1:ae=$+1;break}switch(U){case-1:he=Oe-1;break;case 1:Oe=he+1;break}for(var rt=-I*this.dim,vt=-U*this.dim,St=he;St=0&&or[3]>=0&&rt.insert(Oe,or[0],or[1],or[2],or[3])}},vy.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new pg.VectorTile(new Xa(this.rawTileData)).layers,this.sourceLayerCoder=new Jk(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},vy.prototype.query=function(y,I,U,$){var ae=this;this.loadVTLayers();for(var he=y.params||{},Oe=Ci/y.tileSize/y.scale,rt=be(he.filter),vt=y.queryGeometry,St=y.queryPadding*Oe,or=eee(vt),_r=this.grid.query(or.minX-St,or.minY-St,or.maxX+St,or.maxY+St),pr=eee(y.cameraQueryGeometry),Fr=this.grid3D.query(pr.minX-St,pr.minY-St,pr.maxX+St,pr.maxY+St,function(Zn,ga,ha,eo){return vp(y.cameraQueryGeometry,Zn-St,ga-St,ha+St,eo+St)}),ai=0,Gi=Fr;ai$)ae=!1;else if(!I)ae=!0;else if(this.expirationTime=Ga.maxzoom)&&Ga.visibility!=="none"){h(Wn,this.zoom,ar);var vo=Ji[Ga.id]=Ga.createBucket({index:zi.bucketLayerIDs.length,layers:Wn,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Ba,sourceID:this.source});vo.populate(la,en,this.tileID.canonical),zi.bucketLayerIDs.push(Wn.map(function(ki){return ki.id}))}}}}var jn,At,kr,Qr,di=i.mapObject(en.glyphDependencies,function(ki){return Object.keys(ki).map(Number)});Object.keys(di).length?Er.send("getGlyphs",{uid:this.uid,stacks:di},function(ki,_n){jn||(jn=ki,At=_n,En.call(ri))}):At={};var fn=Object.keys(en.iconDependencies);fn.length?Er.send("getImages",{icons:fn,source:this.source,tileID:this.tileID,type:"icons"},function(ki,_n){jn||(jn=ki,kr=_n,En.call(ri))}):kr={};var Sn=Object.keys(en.patternDependencies);Sn.length?Er.send("getImages",{icons:Sn,source:this.source,tileID:this.tileID,type:"patterns"},function(ki,_n){jn||(jn=ki,Qr=_n,En.call(ri))}):Qr={},En.call(this);function En(){if(jn)return Xr(jn);if(At&&kr&&Qr){var ki=new c(At),_n=new i.ImageAtlas(kr,Qr);for(var ya in Ji){var Jn=Ji[ya];Jn instanceof i.SymbolBucket?(h(Jn.layers,this.zoom,ar),i.performSymbolLayout(Jn,At,ki.positions,kr,_n.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Jn.hasPattern&&(Jn instanceof i.LineBucket||Jn instanceof i.FillBucket||Jn instanceof i.FillExtrusionBucket)&&(h(Jn.layers,this.zoom,ar),Jn.addFeatures(en,this.tileID.canonical,_n.patternPositions))}this.status="done",Xr(null,{buckets:i.values(Ji).filter(function(Ma){return!Ma.isEmpty()}),featureIndex:zi,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ki.image,imageAtlas:_n,glyphMap:this.returnDependencies?At:null,iconMap:this.returnDependencies?kr:null,glyphPositions:this.returnDependencies?ki.positions:null})}}};function h(Ht,yt,er){for(var ar=new i.EvaluationParameters(yt),Er=0,Xr=Ht;Er=0!=!!yt&&Ht.reverse()}var L=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,_=function(yt){this._feature=yt,this.extent=i.EXTENT,this.type=yt.type,this.properties=yt.tags,"id"in yt&&!isNaN(yt.id)&&(this.id=parseInt(yt.id,10))};_.prototype.loadGeometry=function(){if(this._feature.type===1){for(var yt=[],er=0,ar=this._feature.geometry;er>31}function ke(Ht,yt){for(var er=Ht.loadGeometry(),ar=Ht.type,Er=0,Xr=0,ri=er.length,$r=0;$r>1;Se(Ht,yt,ri,ar,Er,Xr%2),ie(Ht,yt,er,ar,ri-1,Xr+1),ie(Ht,yt,er,ri+1,Er,Xr+1)}}function Se(Ht,yt,er,ar,Er,Xr){for(;Er>ar;){if(Er-ar>600){var ri=Er-ar+1,$r=er-ar+1,zi=Math.log(ri),Ji=.5*Math.exp(2*zi/3),en=.5*Math.sqrt(zi*Ji*(ri-Ji)/ri)*($r-ri/2<0?-1:1),cn=Math.max(ar,Math.floor(er-$r*Ji/ri+en)),yn=Math.min(Er,Math.floor(er+(ri-$r)*Ji/ri+en));Se(Ht,yt,er,cn,yn,Xr)}var Mn=yt[2*er+Xr],Ba=ar,la=Er;for(Le(Ht,yt,ar,er),yt[2*Er+Xr]>Mn&&Le(Ht,yt,ar,Er);BaMn;)la--}yt[2*ar+Xr]===Mn?Le(Ht,yt,ar,la):(la++,Le(Ht,yt,la,Er)),la<=er&&(ar=la+1),er<=la&&(Er=la-1)}}function Le(Ht,yt,er,ar){Ae(Ht,er,ar),Ae(yt,2*er,2*ar),Ae(yt,2*er+1,2*ar+1)}function Ae(Ht,yt,er){var ar=Ht[yt];Ht[yt]=Ht[er],Ht[er]=ar}function Fe(Ht,yt,er,ar,Er,Xr,ri){for(var $r=[0,Ht.length-1,0],zi=[],Ji,en;$r.length;){var cn=$r.pop(),yn=$r.pop(),Mn=$r.pop();if(yn-Mn<=ri){for(var Ba=Mn;Ba<=yn;Ba++)Ji=yt[2*Ba],en=yt[2*Ba+1],Ji>=er&&Ji<=Er&&en>=ar&&en<=Xr&&zi.push(Ht[Ba]);continue}var la=Math.floor((Mn+yn)/2);Ji=yt[2*la],en=yt[2*la+1],Ji>=er&&Ji<=Er&&en>=ar&&en<=Xr&&zi.push(Ht[la]);var ma=(cn+1)%2;(cn===0?er<=Ji:ar<=en)&&($r.push(Mn),$r.push(la-1),$r.push(ma)),(cn===0?Er>=Ji:Xr>=en)&&($r.push(la+1),$r.push(yn),$r.push(ma))}return zi}function Pe(Ht,yt,er,ar,Er,Xr){for(var ri=[0,Ht.length-1,0],$r=[],zi=Er*Er;ri.length;){var Ji=ri.pop(),en=ri.pop(),cn=ri.pop();if(en-cn<=Xr){for(var yn=cn;yn<=en;yn++)ge(yt[2*yn],yt[2*yn+1],er,ar)<=zi&&$r.push(Ht[yn]);continue}var Mn=Math.floor((cn+en)/2),Ba=yt[2*Mn],la=yt[2*Mn+1];ge(Ba,la,er,ar)<=zi&&$r.push(Ht[Mn]);var ma=(Ji+1)%2;(Ji===0?er-Er<=Ba:ar-Er<=la)&&(ri.push(cn),ri.push(Mn-1),ri.push(ma)),(Ji===0?er+Er>=Ba:ar+Er>=la)&&(ri.push(Mn+1),ri.push(en),ri.push(ma))}return $r}function ge(Ht,yt,er,ar){var Er=Ht-er,Xr=yt-ar;return Er*Er+Xr*Xr}var De=function(Ht){return Ht[0]},ce=function(Ht){return Ht[1]},Ze=function(yt,er,ar,Er,Xr){er===void 0&&(er=De),ar===void 0&&(ar=ce),Er===void 0&&(Er=64),Xr===void 0&&(Xr=Float64Array),this.nodeSize=Er,this.points=yt;for(var ri=yt.length<65536?Uint16Array:Uint32Array,$r=this.ids=new ri(yt.length),zi=this.coords=new Xr(yt.length*2),Ji=0;Ji=Er;en--){var cn=+Date.now();zi=this._cluster(zi,en),this.trees[en]=new Ze(zi,$e,Mt,ri,Float32Array),ar&&console.log("z%d: %d clusters in %dms",en,zi.length,+Date.now()-cn)}return ar&&console.timeEnd("total time"),this},gt.prototype.getClusters=function(yt,er){var ar=((yt[0]+180)%360+360)%360-180,Er=Math.max(-90,Math.min(90,yt[1])),Xr=yt[2]===180?180:((yt[2]+180)%360+360)%360-180,ri=Math.max(-90,Math.min(90,yt[3]));if(yt[2]-yt[0]>=360)ar=-180,Xr=180;else if(ar>Xr){var $r=this.getClusters([ar,Er,180,ri],er),zi=this.getClusters([-180,Er,Xr,ri],er);return $r.concat(zi)}for(var Ji=this.trees[this._limitZoom(er)],en=Ji.range(Ut(ar),$t(ri),Ut(Xr),$t(Er)),cn=[],yn=0,Mn=en;yner&&(la+=Wo.numPoints||1)}if(la>=zi){for(var da=cn.x*Ba,Wn=cn.y*Ba,Ga=$r&&Ba>1?this._map(cn,!0):null,vo=(en<<5)+(er+1)+this.points.length,jn=0,At=Mn;jn1)for(var fn=0,Sn=Mn;fn>5},gt.prototype._getOriginZoom=function(yt){return(yt-this.points.length)%32},gt.prototype._map=function(yt,er){if(yt.numPoints)return er?ur({},yt.properties):yt.properties;var ar=this.points[yt.index].properties,Er=this.options.map(ar);return er&&Er===ar?ur({},Er):Er};function Kt(Ht,yt,er,ar,Er){return{x:Ht,y:yt,zoom:1/0,id:er,parentId:-1,numPoints:ar,properties:Er}}function st(Ht,yt){var er=Ht.geometry.coordinates,ar=er[0],Er=er[1];return{x:Ut(ar),y:$t(Er),zoom:1/0,index:yt,parentId:-1}}function lt(Ht){return{type:"Feature",id:Ht.id,properties:Gt(Ht),geometry:{type:"Point",coordinates:[sr(Ht.x),Tr(Ht.y)]}}}function Gt(Ht){var yt=Ht.numPoints,er=yt>=1e4?Math.round(yt/1e3)+"k":yt>=1e3?Math.round(yt/100)/10+"k":yt;return ur(ur({},Ht.properties),{cluster:!0,cluster_id:Ht.id,point_count:yt,point_count_abbreviated:er})}function Ut(Ht){return Ht/360+.5}function $t(Ht){var yt=Math.sin(Ht*Math.PI/180),er=.5-.25*Math.log((1+yt)/(1-yt))/Math.PI;return er<0?0:er>1?1:er}function sr(Ht){return(Ht-.5)*360}function Tr(Ht){var yt=(180-Ht*360)*Math.PI/180;return 360*Math.atan(Math.exp(yt))/Math.PI-90}function ur(Ht,yt){for(var er in yt)Ht[er]=yt[er];return Ht}function $e(Ht){return Ht.x}function Mt(Ht){return Ht.y}function Ct(Ht,yt,er,ar){for(var Er=ar,Xr=er-yt>>1,ri=er-yt,$r,zi=Ht[yt],Ji=Ht[yt+1],en=Ht[er],cn=Ht[er+1],yn=yt+3;ynEr)$r=yn,Er=Mn;else if(Mn===Er){var Ba=Math.abs(yn-Xr);Baar&&($r-yt>3&&Ct(Ht,yt,$r,ar),Ht[$r+2]=Er,er-$r>3&&Ct(Ht,$r,er,ar))}function Vt(Ht,yt,er,ar,Er,Xr){var ri=Er-er,$r=Xr-ar;if(ri!==0||$r!==0){var zi=((Ht-er)*ri+(yt-ar)*$r)/(ri*ri+$r*$r);zi>1?(er=Er,ar=Xr):zi>0&&(er+=ri*zi,ar+=$r*zi)}return ri=Ht-er,$r=yt-ar,ri*ri+$r*$r}function It(Ht,yt,er,ar){var Er={id:typeof Ht=="undefined"?null:Ht,type:yt,geometry:er,tags:ar,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return Ot(Er),Er}function Ot(Ht){var yt=Ht.geometry,er=Ht.type;if(er==="Point"||er==="MultiPoint"||er==="LineString")bt(Ht,yt);else if(er==="Polygon"||er==="MultiLineString")for(var ar=0;ar0&&(ar?ri+=(Er*Ji-zi*Xr)/2:ri+=Math.sqrt(Math.pow(zi-Er,2)+Math.pow(Ji-Xr,2))),Er=zi,Xr=Ji}var en=yt.length-3;yt[2]=1,Ct(yt,0,en,er),yt[en+2]=1,yt.size=Math.abs(ri),yt.start=0,yt.end=yt.size}function Kr(Ht,yt,er,ar){for(var Er=0;Er1?1:er}function dt(Ht,yt,er,ar,Er,Xr,ri,$r){if(er/=yt,ar/=yt,Xr>=er&&ri=ar)return null;for(var zi=[],Ji=0;Ji=er&&Ba=ar)continue;var la=[];if(yn==="Point"||yn==="MultiPoint")Ge(cn,la,er,ar,Er);else if(yn==="LineString")Qe(cn,la,er,ar,Er,!1,$r.lineMetrics);else if(yn==="MultiLineString")Je(cn,la,er,ar,Er,!1);else if(yn==="Polygon")Je(cn,la,er,ar,Er,!0);else if(yn==="MultiPolygon")for(var ma=0;ma=er&&ri<=ar&&(yt.push(Ht[Xr]),yt.push(Ht[Xr+1]),yt.push(Ht[Xr+2]))}}function Qe(Ht,yt,er,ar,Er,Xr,ri){for(var $r=je(Ht),zi=Er===0?Ie:xe,Ji=Ht.start,en,cn,yn=0;yner&&(cn=zi($r,Mn,Ba,ma,Wa,er),ri&&($r.start=Ji+en*cn)):Fa>ar?Wo=er&&(cn=zi($r,Mn,Ba,ma,Wa,er),da=!0),Wo>ar&&Fa<=ar&&(cn=zi($r,Mn,Ba,ma,Wa,ar),da=!0),!Xr&&da&&(ri&&($r.end=Ji+en*cn),yt.push($r),$r=je(Ht)),ri&&(Ji+=en)}var Wn=Ht.length-3;Mn=Ht[Wn],Ba=Ht[Wn+1],la=Ht[Wn+2],Fa=Er===0?Mn:Ba,Fa>=er&&Fa<=ar&&xt($r,Mn,Ba,la),Wn=$r.length-3,Xr&&Wn>=3&&($r[Wn]!==$r[0]||$r[Wn+1]!==$r[1])&&xt($r,$r[0],$r[1],$r[2]),$r.length&&yt.push($r)}function je(Ht){var yt=[];return yt.size=Ht.size,yt.start=Ht.start,yt.end=Ht.end,yt}function Je(Ht,yt,er,ar,Er,Xr){for(var ri=0;riri.maxX&&(ri.maxX=en),cn>ri.maxY&&(ri.maxY=cn)}return ri}function mi(Ht,yt,er,ar){var Er=yt.geometry,Xr=yt.type,ri=[];if(Xr==="Point"||Xr==="MultiPoint")for(var $r=0;$r0&&yt.size<(Er?ri:ar)){er.numPoints+=yt.length/3;return}for(var $r=[],zi=0;ziri)&&(er.numSimplified++,$r.push(yt[zi]),$r.push(yt[zi+1])),er.numPoints++;Er&&vi($r,Xr),Ht.push($r)}function vi(Ht,yt){for(var er=0,ar=0,Er=Ht.length,Xr=Er-2;ar0===yt)for(ar=0,Er=Ht.length;ar24)throw new Error("maxZoom should be in the 0-24 range");if(yt.promoteId&&yt.generateId)throw new Error("promoteId and generateId cannot be used together.");var ar=rr(Ht,yt);this.tiles={},this.tileCoords=[],er&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",yt.indexMaxZoom,yt.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),ar=Ce(ar,yt),ar.length&&this.splitTile(ar,0,0,0),er&&(ar.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Rn.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Rn.prototype.splitTile=function(Ht,yt,er,ar,Er,Xr,ri){for(var $r=[Ht,yt,er,ar],zi=this.options,Ji=zi.debug;$r.length;){ar=$r.pop(),er=$r.pop(),yt=$r.pop(),Ht=$r.pop();var en=1<1&&console.time("creation"),yn=this.tiles[cn]=si(Ht,yt,er,ar,zi),this.tileCoords.push({z:yt,x:er,y:ar}),Ji)){Ji>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",yt,er,ar,yn.numFeatures,yn.numPoints,yn.numSimplified),console.timeEnd("creation"));var Mn="z"+yt;this.stats[Mn]=(this.stats[Mn]||0)+1,this.total++}if(yn.source=Ht,Er){if(yt===zi.maxZoom||yt===Er)continue;var Ba=1<1&&console.time("clipping");var la=.5*zi.buffer/zi.extent,ma=.5-la,Wa=.5+la,Fa=1+la,Wo,da,Wn,Ga,vo,jn;Wo=da=Wn=Ga=null,vo=dt(Ht,en,er-la,er+Wa,0,yn.minX,yn.maxX,zi),jn=dt(Ht,en,er+ma,er+Fa,0,yn.minX,yn.maxX,zi),Ht=null,vo&&(Wo=dt(vo,en,ar-la,ar+Wa,1,yn.minY,yn.maxY,zi),da=dt(vo,en,ar+ma,ar+Fa,1,yn.minY,yn.maxY,zi),vo=null),jn&&(Wn=dt(jn,en,ar-la,ar+Wa,1,yn.minY,yn.maxY,zi),Ga=dt(jn,en,ar+ma,ar+Fa,1,yn.minY,yn.maxY,zi),jn=null),Ji>1&&console.timeEnd("clipping"),$r.push(Wo||[],yt+1,er*2,ar*2),$r.push(da||[],yt+1,er*2,ar*2+1),$r.push(Wn||[],yt+1,er*2+1,ar*2),$r.push(Ga||[],yt+1,er*2+1,ar*2+1)}}},Rn.prototype.getTile=function(Ht,yt,er){var ar=this.options,Er=ar.extent,Xr=ar.debug;if(Ht<0||Ht>24)return null;var ri=1<1&&console.log("drilling down to z%d-%d-%d",Ht,yt,er);for(var zi=Ht,Ji=yt,en=er,cn;!cn&&zi>0;)zi--,Ji=Math.floor(Ji/2),en=Math.floor(en/2),cn=this.tiles[wn(zi,Ji,en)];return!cn||!cn.source?null:(Xr>1&&console.log("found parent tile z%d-%d-%d",zi,Ji,en),Xr>1&&console.time("drilling down"),this.splitTile(cn.source,zi,Ji,en,Ht,yt,er),Xr>1&&console.timeEnd("drilling down"),this.tiles[$r]?ir(this.tiles[$r],Er):null)};function wn(Ht,yt,er){return((1<=0?0:Y.button},o.remove=function(Y){Y.parentNode&&Y.parentNode.removeChild(Y)};function x(Y,D,J){var q,K,de,ne=i.browser.devicePixelRatio>1?"@2x":"",we=i.getJSON(D.transformRequest(D.normalizeSpriteURL(Y,ne,".json"),i.ResourceType.SpriteJSON),function(Zt,hr){we=null,de||(de=Zt,q=hr,ft())}),Ue=i.getImage(D.transformRequest(D.normalizeSpriteURL(Y,ne,".png"),i.ResourceType.SpriteImage),function(Zt,hr){Ue=null,de||(de=Zt,K=hr,ft())});function ft(){if(de)J(de);else if(q&&K){var Zt=i.browser.getImageData(K),hr={};for(var Bt in q){var Ve=q[Bt],et=Ve.width,at=Ve.height,kt=Ve.x,qt=Ve.y,Rt=Ve.sdf,Nt=Ve.pixelRatio,Dt=Ve.stretchX,mt=Ve.stretchY,Pt=Ve.content,ht=new i.RGBAImage({width:et,height:at});i.RGBAImage.copy(Zt,ht,{x:kt,y:qt},{x:0,y:0},{width:et,height:at}),hr[Bt]={data:ht,pixelRatio:Nt,sdf:Rt,stretchX:Dt,stretchY:mt,content:Pt}}J(null,hr)}}return{cancel:function(){we&&(we.cancel(),we=null),Ue&&(Ue.cancel(),Ue=null)}}}function b(Y){var D=Y.userImage;if(D&&D.render){var J=D.render();if(J)return Y.data.replace(new Uint8Array(D.data.buffer)),!0}return!1}var p=1,C=function(Y){function D(){Y.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.isLoaded=function(){return this.loaded},D.prototype.setLoaded=function(q){if(this.loaded!==q&&(this.loaded=q,q)){for(var K=0,de=this.requestors;K=0?1.2:1))}k.prototype.draw=function(Y){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(Y,this.buffer,this.middle);for(var D=this.ctx.getImageData(0,0,this.size,this.size),J=new Uint8ClampedArray(this.size*this.size),q=0;q65535){Zt(new Error("glyphs > 65535 not supported"));return}if(Ve.ranges[at]){Zt(null,{stack:hr,id:Bt,glyph:et});return}var kt=Ve.requests[at];kt||(kt=Ve.requests[at]=[],P.loadGlyphRange(hr,at,q.url,q.requestManager,function(qt,Rt){if(Rt){for(var Nt in Rt)q._doesCharSupportLocalGlyph(+Nt)||(Ve.glyphs[+Nt]=Rt[+Nt]);Ve.ranges[at]=!0}for(var Dt=0,mt=kt;Dt1&&(ft=D[++Ue]);var hr=Math.abs(Zt-ft.left),Bt=Math.abs(Zt-ft.right),Ve=Math.min(hr,Bt),et=void 0,at=de/q*(K+1);if(ft.isDash){var kt=K-Math.abs(at);et=Math.sqrt(Ve*Ve+kt*kt)}else et=K-Math.sqrt(Ve*Ve+at*at);this.data[we+Zt]=Math.max(0,Math.min(255,et+128))}},G.prototype.addRegularDash=function(D){for(var J=D.length-1;J>=0;--J){var q=D[J],K=D[J+1];q.zeroLength?D.splice(J,1):K&&K.isDash===q.isDash&&(K.left=q.left,D.splice(J,1))}var de=D[0],ne=D[D.length-1];de.isDash===ne.isDash&&(de.left=ne.left-this.width,ne.right=de.right+this.width);for(var we=this.width*this.nextRow,Ue=0,ft=D[Ue],Zt=0;Zt1&&(ft=D[++Ue]);var hr=Math.abs(Zt-ft.left),Bt=Math.abs(Zt-ft.right),Ve=Math.min(hr,Bt),et=ft.isDash?Ve:-Ve;this.data[we+Zt]=Math.max(0,Math.min(255,et+128))}},G.prototype.addDash=function(D,J){var q=J?7:0,K=2*q+1;if(this.nextRow+K>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var de=0,ne=0;ne=q.minX&&D.x=q.minY&&D.y0&&(Zt[new i.OverscaledTileID(q.overscaledZ,we,K.z,ne,K.y-1).key]={backfilled:!1},Zt[new i.OverscaledTileID(q.overscaledZ,q.wrap,K.z,K.x,K.y-1).key]={backfilled:!1},Zt[new i.OverscaledTileID(q.overscaledZ,ft,K.z,Ue,K.y-1).key]={backfilled:!1}),K.y+10&&(de.resourceTiming=q._resourceTiming,q._resourceTiming=[]),q.fire(new i.Event("data",de))})},D.prototype.onAdd=function(q){this.map=q,this.load()},D.prototype.setData=function(q){var K=this;return this._data=q,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(de){if(de){K.fire(new i.ErrorEvent(de));return}var ne={dataType:"source",sourceDataType:"content"};K._collectResourceTiming&&K._resourceTiming&&K._resourceTiming.length>0&&(ne.resourceTiming=K._resourceTiming,K._resourceTiming=[]),K.fire(new i.Event("data",ne))}),this},D.prototype.getClusterExpansionZoom=function(q,K){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:q,source:this.id},K),this},D.prototype.getClusterChildren=function(q,K){return this.actor.send("geojson.getClusterChildren",{clusterId:q,source:this.id},K),this},D.prototype.getClusterLeaves=function(q,K,de,ne){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:q,limit:K,offset:de},ne),this},D.prototype._updateWorkerData=function(q){var K=this;this._loaded=!1;var de=i.extend({},this.workerOptions),ne=this._data;typeof ne=="string"?(de.request=this.map._requestManager.transformRequest(i.browser.resolveURL(ne),i.ResourceType.Source),de.request.collectResourceTiming=this._collectResourceTiming):de.data=JSON.stringify(ne),this.actor.send(this.type+".loadData",de,function(we,Ue){K._removed||Ue&&Ue.abandoned||(K._loaded=!0,Ue&&Ue.resourceTiming&&Ue.resourceTiming[K.id]&&(K._resourceTiming=Ue.resourceTiming[K.id].slice(0)),K.actor.send(K.type+".coalesce",{source:de.source},null),q(we))})},D.prototype.loaded=function(){return this._loaded},D.prototype.loadTile=function(q,K){var de=this,ne=q.actor?"reloadTile":"loadTile";q.actor=this.actor;var we={type:this.type,uid:q.uid,tileID:q.tileID,zoom:q.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};q.request=this.actor.send(ne,we,function(Ue,ft){return delete q.request,q.unloadVectorData(),q.aborted?K(null):Ue?K(Ue):(q.loadVectorData(ft,de.map.painter,ne==="reloadTile"),K(null))})},D.prototype.abortTile=function(q){q.request&&(q.request.cancel(),delete q.request),q.aborted=!0},D.prototype.unloadTile=function(q){q.unloadVectorData(),this.actor.send("removeTile",{uid:q.uid,type:this.type,source:this.id})},D.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},D.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},D.prototype.hasTransition=function(){return!1},D}(i.Evented),Me=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),ke=function(Y){function D(J,q,K,de){Y.call(this),this.id=J,this.dispatcher=K,this.coordinates=q.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(de),this.options=q}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.load=function(q,K){var de=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(ne,we){de._loaded=!0,ne?de.fire(new i.ErrorEvent(ne)):we&&(de.image=we,q&&(de.coordinates=q),K&&K(),de._finishLoading())})},D.prototype.loaded=function(){return this._loaded},D.prototype.updateImage=function(q){var K=this;return!this.image||!q.url?this:(this.options.url=q.url,this.load(q.coordinates,function(){K.texture=null}),this)},D.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},D.prototype.onAdd=function(q){this.map=q,this.load()},D.prototype.setCoordinates=function(q){var K=this;this.coordinates=q;var de=q.map(i.MercatorCoordinate.fromLngLat);this.tileID=me(de),this.minzoom=this.maxzoom=this.tileID.z;var ne=de.map(function(we){return K.tileID.getTilePoint(we)._round()});return this._boundsArray=new i.StructArrayLayout4i8,this._boundsArray.emplaceBack(ne[0].x,ne[0].y,0,0),this._boundsArray.emplaceBack(ne[1].x,ne[1].y,i.EXTENT,0),this._boundsArray.emplaceBack(ne[3].x,ne[3].y,0,i.EXTENT),this._boundsArray.emplaceBack(ne[2].x,ne[2].y,i.EXTENT,i.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"content"})),this},D.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var q=this.map.painter.context,K=q.gl;this.boundsBuffer||(this.boundsBuffer=q.createVertexBuffer(this._boundsArray,Me.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new i.Texture(q,this.image,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var de in this.tiles){var ne=this.tiles[de];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},D.prototype.loadTile=function(q,K){this.tileID&&this.tileID.equals(q.tileID.canonical)?(this.tiles[String(q.tileID.wrap)]=q,q.buckets={},K(null)):(q.state="errored",K(null))},D.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},D.prototype.hasTransition=function(){return!1},D}(i.Evented);function me(Y){for(var D=1/0,J=1/0,q=-1/0,K=-1/0,de=0,ne=Y;deK.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+K.start(0)+" and "+K.end(0)+"-second mark."))):this.video.currentTime=q}},D.prototype.getVideo=function(){return this.video},D.prototype.onAdd=function(q){this.map||(this.map=q,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},D.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var q=this.map.painter.context,K=q.gl;this.boundsBuffer||(this.boundsBuffer=q.createVertexBuffer(this._boundsArray,Me.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE),K.texSubImage2D(K.TEXTURE_2D,0,0,0,K.RGBA,K.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(q,this.video,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var de in this.tiles){var ne=this.tiles[de];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},D.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},D.prototype.hasTransition=function(){return this.video&&!this.video.paused},D}(ke),Se=function(Y){function D(J,q,K,de){Y.call(this,J,q,K,de),q.coordinates?(!Array.isArray(q.coordinates)||q.coordinates.length!==4||q.coordinates.some(function(ne){return!Array.isArray(ne)||ne.length!==2||ne.some(function(we){return typeof we!="number"})}))&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "coordinates"'))),q.animate&&typeof q.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'optional "animate" property must be a boolean value'))),q.canvas?typeof q.canvas!="string"&&!(q.canvas instanceof i.window.HTMLCanvasElement)&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "canvas"'))),this.options=q,this.animate=q.animate!==void 0?q.animate:!0}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},D.prototype.getCanvas=function(){return this.canvas},D.prototype.onAdd=function(q){this.map=q,this.load(),this.canvas&&this.animate&&this.play()},D.prototype.onRemove=function(){this.pause()},D.prototype.prepare=function(){var q=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,q=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,q=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var K=this.map.painter.context,de=K.gl;this.boundsBuffer||(this.boundsBuffer=K.createVertexBuffer(this._boundsArray,Me.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(q||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(K,this.canvas,de.RGBA,{premultiply:!0});for(var ne in this.tiles){var we=this.tiles[ne];we.state!=="loaded"&&(we.state="loaded",we.texture=this.texture)}}},D.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},D.prototype.hasTransition=function(){return this._playing},D.prototype._hasInvalidDimensions=function(){for(var q=0,K=[this.canvas.width,this.canvas.height];qthis.max){var we=this._getAndRemoveByKey(this.order[0]);we&&this.onRemove(we)}return this},st.prototype.has=function(D){return D.wrapped().key in this.data},st.prototype.getAndRemove=function(D){return this.has(D)?this._getAndRemoveByKey(D.wrapped().key):null},st.prototype._getAndRemoveByKey=function(D){var J=this.data[D].shift();return J.timeout&&clearTimeout(J.timeout),this.data[D].length===0&&delete this.data[D],this.order.splice(this.order.indexOf(D),1),J.value},st.prototype.getByKey=function(D){var J=this.data[D];return J?J[0].value:null},st.prototype.get=function(D){if(!this.has(D))return null;var J=this.data[D.wrapped().key][0];return J.value},st.prototype.remove=function(D,J){if(!this.has(D))return this;var q=D.wrapped().key,K=J===void 0?0:this.data[q].indexOf(J),de=this.data[q][K];return this.data[q].splice(K,1),de.timeout&&clearTimeout(de.timeout),this.data[q].length===0&&delete this.data[q],this.onRemove(de.value),this.order.splice(this.order.indexOf(q),1),this},st.prototype.setMaxSize=function(D){for(this.max=D;this.order.length>this.max;){var J=this._getAndRemoveByKey(this.order[0]);J&&this.onRemove(J)}return this},st.prototype.filter=function(D){var J=[];for(var q in this.data)for(var K=0,de=this.data[q];K1||(Math.abs(hr)>1&&(Math.abs(hr+Ve)===1?hr+=Ve:Math.abs(hr-Ve)===1&&(hr-=Ve)),!(!Zt.dem||!ft.dem)&&(ft.dem.backfillBorder(Zt.dem,hr,Bt),ft.neighboringTiles&&ft.neighboringTiles[et]&&(ft.neighboringTiles[et].backfilled=!0)))}},D.prototype.getTile=function(q){return this.getTileByID(q.key)},D.prototype.getTileByID=function(q){return this._tiles[q]},D.prototype._retainLoadedChildren=function(q,K,de,ne){for(var we in this._tiles){var Ue=this._tiles[we];if(!(ne[we]||!Ue.hasData()||Ue.tileID.overscaledZ<=K||Ue.tileID.overscaledZ>de)){for(var ft=Ue.tileID;Ue&&Ue.tileID.overscaledZ>K+1;){var Zt=Ue.tileID.scaledTo(Ue.tileID.overscaledZ-1);Ue=this._tiles[Zt.key],Ue&&Ue.hasData()&&(ft=Zt)}for(var hr=ft;hr.overscaledZ>K;)if(hr=hr.scaledTo(hr.overscaledZ-1),q[hr.key]){ne[ft.key]=ft;break}}}},D.prototype.findLoadedParent=function(q,K){if(q.key in this._loadedParentTiles){var de=this._loadedParentTiles[q.key];return de&&de.tileID.overscaledZ>=K?de:null}for(var ne=q.overscaledZ-1;ne>=K;ne--){var we=q.scaledTo(ne),Ue=this._getLoadedTile(we);if(Ue)return Ue}},D.prototype._getLoadedTile=function(q){var K=this._tiles[q.key];if(K&&K.hasData())return K;var de=this._cache.getByKey(q.wrapped().key);return de},D.prototype.updateCacheSize=function(q){var K=Math.ceil(q.width/this._source.tileSize)+1,de=Math.ceil(q.height/this._source.tileSize)+1,ne=K*de,we=5,Ue=Math.floor(ne*we),ft=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Ue):Ue;this._cache.setMaxSize(ft)},D.prototype.handleWrapJump=function(q){var K=this._prevLng===void 0?q:this._prevLng,de=q-K,ne=de/360,we=Math.round(ne);if(this._prevLng=q,we){var Ue={};for(var ft in this._tiles){var Zt=this._tiles[ft];Zt.tileID=Zt.tileID.unwrapTo(Zt.tileID.wrap+we),Ue[Zt.tileID.key]=Zt}this._tiles=Ue;for(var hr in this._timers)clearTimeout(this._timers[hr]),delete this._timers[hr];for(var Bt in this._tiles){var Ve=this._tiles[Bt];this._setTileReloadTimer(Bt,Ve)}}},D.prototype.update=function(q){var K=this;if(this.transform=q,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(q),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var de;this.used?this._source.tileID?de=q.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(Nr){return new i.OverscaledTileID(Nr.canonical.z,Nr.wrap,Nr.canonical.z,Nr.canonical.x,Nr.canonical.y)}):(de=q.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(de=de.filter(function(Nr){return K._source.hasTile(Nr)}))):de=[];var ne=q.coveringZoomLevel(this._source),we=Math.max(ne-D.maxOverzooming,this._source.minzoom),Ue=Math.max(ne+D.maxUnderzooming,this._source.minzoom),ft=this._updateRetainedTiles(de,ne);if(zi(this._source.type)){for(var Zt={},hr={},Bt=Object.keys(ft),Ve=0,et=Bt;Vethis._source.maxzoom){var Rt=kt.children(this._source.maxzoom)[0],Nt=this.getTile(Rt);if(Nt&&Nt.hasData()){de[Rt.key]=Rt;continue}}else{var Dt=kt.children(this._source.maxzoom);if(de[Dt[0].key]&&de[Dt[1].key]&&de[Dt[2].key]&&de[Dt[3].key])continue}for(var mt=qt.wasRequested(),Pt=kt.overscaledZ-1;Pt>=we;--Pt){var ht=kt.scaledTo(Pt);if(ne[ht.key]||(ne[ht.key]=!0,qt=this.getTile(ht),!qt&&mt&&(qt=this._addTile(ht)),qt&&(de[ht.key]=ht,mt=qt.wasRequested(),qt.hasData())))break}}}return de},D.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var q in this._tiles){for(var K=[],de=void 0,ne=this._tiles[q].tileID;ne.overscaledZ>0;){if(ne.key in this._loadedParentTiles){de=this._loadedParentTiles[ne.key];break}K.push(ne.key);var we=ne.scaledTo(ne.overscaledZ-1);if(de=this._getLoadedTile(we),de)break;ne=we}for(var Ue=0,ft=K;Ue0)&&(K.hasData()&&K.state!=="reloading"?this._cache.add(K.tileID,K,K.getExpiryTimeout()):(K.aborted=!0,this._abortTile(K),this._unloadTile(K))))},D.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var q in this._tiles)this._removeTile(q);this._cache.reset()},D.prototype.tilesIn=function(q,K,de){var ne=this,we=[],Ue=this.transform;if(!Ue)return we;for(var ft=de?Ue.getCameraQueryGeometry(q):q,Zt=q.map(function(Pt){return Ue.pointCoordinate(Pt)}),hr=ft.map(function(Pt){return Ue.pointCoordinate(Pt)}),Bt=this.getIds(),Ve=1/0,et=1/0,at=-1/0,kt=-1/0,qt=0,Rt=hr;qt=0&&Ri[1].y+Nr>=0){var fi=Zt.map(function(gn){return cr.getTilePoint(gn)}),wi=hr.map(function(gn){return cr.getTilePoint(gn)});we.push({tile:ht,tileID:cr,queryGeometry:fi,cameraQueryGeometry:wi,scale:br})}}},mt=0;mt=i.browser.now())return!0}return!1},D.prototype.setFeatureState=function(q,K,de){q=q||"_geojsonTileLayer",this._state.updateState(q,K,de)},D.prototype.removeFeatureState=function(q,K,de){q=q||"_geojsonTileLayer",this._state.removeFeatureState(q,K,de)},D.prototype.getFeatureState=function(q,K){return q=q||"_geojsonTileLayer",this._state.getState(q,K)},D.prototype.setDependencies=function(q,K,de){var ne=this._tiles[q];ne&&ne.setDependencies(K,de)},D.prototype.reloadTilesForDependencies=function(q,K){for(var de in this._tiles){var ne=this._tiles[de];ne.hasDependency(q,K)&&this._reloadTile(de,"reloading")}this._cache.filter(function(we){return!we.hasDependency(q,K)})},D}(i.Evented);ri.maxOverzooming=10,ri.maxUnderzooming=3;function $r(Y,D){var J=Math.abs(Y.wrap*2)-+(Y.wrap<0),q=Math.abs(D.wrap*2)-+(D.wrap<0);return Y.overscaledZ-D.overscaledZ||q-J||D.canonical.y-Y.canonical.y||D.canonical.x-Y.canonical.x}function zi(Y){return Y==="raster"||Y==="image"||Y==="video"}function Ji(){return new i.window.Worker(io.workerUrl)}var en="mapboxgl_preloaded_worker_pool",cn=function(){this.active={}};cn.prototype.acquire=function(D){if(!this.workers)for(this.workers=[];this.workers.length0?(K-ne)/we:0;return this.points[de].mult(1-Ue).add(this.points[J].mult(Ue))};var ki=function(D,J,q){var K=this.boxCells=[],de=this.circleCells=[];this.xCellCount=Math.ceil(D/q),this.yCellCount=Math.ceil(J/q);for(var ne=0;nethis.width||K<0||J>this.height)return de?!1:[];var we=[];if(D<=0&&J<=0&&this.width<=q&&this.height<=K){if(de)return!0;for(var Ue=0;Ue0:we}},ki.prototype._queryCircle=function(D,J,q,K,de){var ne=D-q,we=D+q,Ue=J-q,ft=J+q;if(we<0||ne>this.width||ft<0||Ue>this.height)return K?!1:[];var Zt=[],hr={hitTest:K,circle:{x:D,y:J,radius:q},seenUids:{box:{},circle:{}}};return this._forEachCell(ne,Ue,we,ft,this._queryCellCircle,Zt,hr,de),K?Zt.length>0:Zt},ki.prototype.query=function(D,J,q,K,de){return this._query(D,J,q,K,!1,de)},ki.prototype.hitTest=function(D,J,q,K,de){return this._query(D,J,q,K,!0,de)},ki.prototype.hitTestCircle=function(D,J,q,K){return this._queryCircle(D,J,q,!0,K)},ki.prototype._queryCell=function(D,J,q,K,de,ne,we,Ue){var ft=we.seenUids,Zt=this.boxCells[de];if(Zt!==null)for(var hr=this.bboxes,Bt=0,Ve=Zt;Bt=hr[at+0]&&K>=hr[at+1]&&(!Ue||Ue(this.boxKeys[et]))){if(we.hitTest)return ne.push(!0),!0;ne.push({key:this.boxKeys[et],x1:hr[at],y1:hr[at+1],x2:hr[at+2],y2:hr[at+3]})}}}var kt=this.circleCells[de];if(kt!==null)for(var qt=this.circles,Rt=0,Nt=kt;Rtwe*we+Ue*Ue},ki.prototype._circleAndRectCollide=function(D,J,q,K,de,ne,we){var Ue=(ne-K)/2,ft=Math.abs(D-(K+Ue));if(ft>Ue+q)return!1;var Zt=(we-de)/2,hr=Math.abs(J-(de+Zt));if(hr>Zt+q)return!1;if(ft<=Ue||hr<=Zt)return!0;var Bt=ft-Ue,Ve=hr-Zt;return Bt*Bt+Ve*Ve<=q*q};function _n(Y,D,J,q,K){var de=i.create();return D?(i.scale(de,de,[1/K,1/K,1]),J||i.rotateZ(de,de,q.angle)):i.multiply(de,q.labelPlaneMatrix,Y),de}function ya(Y,D,J,q,K){if(D){var de=i.clone(Y);return i.scale(de,de,[K,K,1]),J||i.rotateZ(de,de,-q.angle),de}else return q.glCoordMatrix}function Jn(Y,D){var J=[Y.x,Y.y,0,1];Fl(J,J,D);var q=J[3];return{point:new i.Point(J[0]/q,J[1]/q),signedDistanceFromCamera:q}}function Ma(Y,D){return .5+.5*(Y/D)}function _o(Y,D){var J=Y[0]/Y[3],q=Y[1]/Y[3],K=J>=-D[0]&&J<=D[0]&&q>=-D[1]&&q<=D[1];return K}function No(Y,D,J,q,K,de,ne,we){var Ue=q?Y.textSizeData:Y.iconSizeData,ft=i.evaluateSizeForZoom(Ue,J.transform.zoom),Zt=[256/J.width*2+1,256/J.height*2+1],hr=q?Y.text.dynamicLayoutVertexArray:Y.icon.dynamicLayoutVertexArray;hr.clear();for(var Bt=Y.lineVertexArray,Ve=q?Y.text.placedSymbolArray:Y.icon.placedSymbolArray,et=J.transform.width/J.transform.height,at=!1,kt=0;ktde)return{useVertical:!0}}return(Y===i.WritingMode.vertical?D.yJ.x)?{needsFlipping:!0}:null}function Co(Y,D,J,q,K,de,ne,we,Ue,ft,Zt,hr,Bt,Ve){var et=D/24,at=Y.lineOffsetX*et,kt=Y.lineOffsetY*et,qt;if(Y.numGlyphs>1){var Rt=Y.glyphStartIndex+Y.numGlyphs,Nt=Y.lineStartIndex,Dt=Y.lineStartIndex+Y.lineLength,mt=po(et,we,at,kt,J,Zt,hr,Y,Ue,de,Bt);if(!mt)return{notEnoughRoom:!0};var Pt=Jn(mt.first.point,ne).point,ht=Jn(mt.last.point,ne).point;if(q&&!J){var cr=Lo(Y.writingMode,Pt,ht,Ve);if(cr)return cr}qt=[mt.first];for(var br=Y.glyphStartIndex+1;br0?wi.point:Fs(hr,fi,Nr,1,K),tn=Lo(Y.writingMode,Nr,gn,Ve);if(tn)return tn}var Ci=zs(et*we.getoffsetX(Y.glyphStartIndex),at,kt,J,Zt,hr,Y.segment,Y.lineStartIndex,Y.lineStartIndex+Y.lineLength,Ue,de,Bt);if(!Ci)return{notEnoughRoom:!0};qt=[Ci]}for(var qi=0,Vi=qt;qi0?1:-1,et=0;q&&(Ve*=-1,et=Math.PI),Ve<0&&(et+=Math.PI);for(var at=Ve>0?we+ne:we+ne+1,kt=K,qt=K,Rt=0,Nt=0,Dt=Math.abs(Bt),mt=[];Rt+Nt<=Dt;){if(at+=Ve,at=Ue)return null;if(qt=kt,mt.push(kt),kt=hr[at],kt===void 0){var Pt=new i.Point(ft.getx(at),ft.gety(at)),ht=Jn(Pt,Zt);if(ht.signedDistanceFromCamera>0)kt=hr[at]=ht.point;else{var cr=at-Ve,br=Rt===0?de:new i.Point(ft.getx(cr),ft.gety(cr));kt=Fs(br,Pt,qt,Dt-Rt+1,Zt)}}Rt+=Nt,Nt=qt.dist(kt)}var Nr=(Dt-Rt)/Nt,Ri=kt.sub(qt),fi=Ri.mult(Nr)._add(qt);fi._add(Ri._unit()._perp()._mult(J*Ve));var wi=et+Math.atan2(kt.y-qt.y,kt.x-qt.x);return mt.push(fi),{point:fi,angle:wi,path:mt}}var ul=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function cl(Y,D){for(var J=0;J=1;on--)Vi.push(Ci.path[on]);for(var On=1;On0){for(var so=Vi[0].clone(),Zo=Vi[0].clone(),ys=1;ys=wi.x&&Zo.x<=gn.x&&so.y>=wi.y&&Zo.y<=gn.y?ts=[Vi]:Zo.xgn.x||Zo.ygn.y?ts=[]:ts=i.clipLine([Vi],wi.x,wi.y,gn.x,gn.y)}for(var su=0,Mv=ts;su=this.screenRightBoundary||Kthis.screenBottomBoundary},nl.prototype.isInsideGrid=function(D,J,q,K){return q>=0&&D=0&&J0){var Dt;return this.prevPlacement&&this.prevPlacement.variableOffsets[Bt.crossTileID]&&this.prevPlacement.placements[Bt.crossTileID]&&this.prevPlacement.placements[Bt.crossTileID].text&&(Dt=this.prevPlacement.variableOffsets[Bt.crossTileID].anchor),this.variableOffsets[Bt.crossTileID]={textOffset:kt,width:q,height:K,anchor:D,textBoxScale:de,prevAnchor:Dt},this.markUsedJustification(Ve,D,Bt,et),Ve.allowVerticalPlacement&&(this.markUsedOrientation(Ve,et,Bt),this.placedOrientations[Bt.crossTileID]=et),{shift:qt,placedGlyphBoxes:Rt}}},ws.prototype.placeLayerBucketPart=function(D,J,q){var K=this,de=D.parameters,ne=de.bucket,we=de.layout,Ue=de.posMatrix,ft=de.textLabelPlaneMatrix,Zt=de.labelToScreenMatrix,hr=de.textPixelRatio,Bt=de.holdingForFade,Ve=de.collisionBoxArray,et=de.partiallyEvaluatedTextSize,at=de.collisionGroup,kt=we.get("text-optional"),qt=we.get("icon-optional"),Rt=we.get("text-allow-overlap"),Nt=we.get("icon-allow-overlap"),Dt=we.get("text-rotation-alignment")==="map",mt=we.get("text-pitch-alignment")==="map",Pt=we.get("icon-text-fit")!=="none",ht=we.get("symbol-z-order")==="viewport-y",cr=Rt&&(Nt||!ne.hasIconData()||qt),br=Nt&&(Rt||!ne.hasTextData()||kt);!ne.collisionArrays&&Ve&&ne.deserializeCollisionBoxes(Ve);var Nr=function(Ci,qi){if(!J[Ci.crossTileID]){if(Bt){K.placements[Ci.crossTileID]=new Os(!1,!1,!1);return}var Vi=!1,on=!1,On=!0,Ja=null,co={box:null,offscreen:null},ts={box:null,offscreen:null},so=null,Zo=null,ys=null,su=0,Mv=0,Ev=0;qi.textFeatureIndex?su=qi.textFeatureIndex:Ci.useRuntimeCollisionCircles&&(su=Ci.featureIndex),qi.verticalTextFeatureIndex&&(Mv=qi.verticalTextFeatureIndex);var wd=qi.textBox;if(wd){var Yv=function(vc){var eu=i.WritingMode.horizontal;if(ne.allowVerticalPlacement&&!vc&&K.prevPlacement){var Sd=K.prevPlacement.placedOrientations[Ci.crossTileID];Sd&&(K.placedOrientations[Ci.crossTileID]=Sd,eu=Sd,K.markUsedOrientation(ne,eu,Ci))}return eu},cg=function(vc,eu){if(ne.allowVerticalPlacement&&Ci.numVerticalGlyphVertices>0&&qi.verticalTextBox)for(var Sd=0,sy=ne.writingModes;Sd0&&(Vd=Vd.filter(function(vc){return vc!==Ad.anchor}),Vd.unshift(Ad.anchor))}var Cv=function(vc,eu,Sd){for(var sy=vc.x2-vc.x1,A1=vc.y2-vc.y1,wu=Ci.textBoxScale,Nx=Pt&&!Nt?eu:null,am={box:[],offscreen:!1},Mw=Rt?Vd.length*2:Vd.length,Lv=0;Lv=Vd.length,Ux=K.attemptAnchorPlacement(om,vc,sy,A1,wu,Dt,mt,hr,Ue,at,Ew,Ci,ne,Sd,Nx);if(Ux&&(am=Ux.placedGlyphBoxes,am&&am.box&&am.box.length)){Vi=!0,Ja=Ux.shift;break}}return am},Kv=function(){return Cv(wd,qi.iconBox,i.WritingMode.horizontal)},kv=function(){var vc=qi.verticalTextBox,eu=co&&co.box&&co.box.length;return ne.allowVerticalPlacement&&!eu&&Ci.numVerticalGlyphVertices>0&&vc?Cv(vc,qi.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}};cg(Kv,kv),co&&(Vi=co.box,On=co.offscreen);var ny=Yv(co&&co.box);if(!Vi&&K.prevPlacement){var fg=K.prevPlacement.variableOffsets[Ci.crossTileID];fg&&(K.variableOffsets[Ci.crossTileID]=fg,K.markUsedJustification(ne,fg.anchor,Ci,ny))}}else{var dp=function(vc,eu){var Sd=K.collisionIndex.placeCollisionBox(vc,Rt,hr,Ue,at.predicate);return Sd&&Sd.box&&Sd.box.length&&(K.markUsedOrientation(ne,eu,Ci),K.placedOrientations[Ci.crossTileID]=eu),Sd},Td=function(){return dp(wd,i.WritingMode.horizontal)},vp=function(){var vc=qi.verticalTextBox;return ne.allowVerticalPlacement&&Ci.numVerticalGlyphVertices>0&&vc?dp(vc,i.WritingMode.vertical):{box:null,offscreen:null}};cg(Td,vp),Yv(co&&co.box&&co.box.length)}}if(so=co,Vi=so&&so.box&&so.box.length>0,On=so&&so.offscreen,Ci.useRuntimeCollisionCircles){var oh=ne.text.placedSymbolArray.get(Ci.centerJustifiedTextSymbolIndex),hg=i.evaluateSizeForFeature(ne.textSizeData,et,oh),ay=we.get("text-padding"),Gh=Ci.collisionCircleDiameter;Zo=K.collisionIndex.placeCollisionCircles(Rt,oh,ne.lineVertexArray,ne.glyphOffsetArray,hg,Ue,ft,Zt,q,mt,at.predicate,Gh,ay),Vi=Rt||Zo.circles.length>0&&!Zo.collisionDetected,On=On&&Zo.offscreen}if(qi.iconFeatureIndex&&(Ev=qi.iconFeatureIndex),qi.iconBox){var rm=function(vc){var eu=Pt&&Ja?nc(vc,Ja.x,Ja.y,Dt,mt,K.transform.angle):vc;return K.collisionIndex.placeCollisionBox(eu,Nt,hr,Ue,at.predicate)};ts&&ts.box&&ts.box.length&&qi.verticalIconBox?(ys=rm(qi.verticalIconBox),on=ys.box.length>0):(ys=rm(qi.iconBox),on=ys.box.length>0),On=On&&ys.offscreen}var w1=kt||Ci.numHorizontalGlyphVertices===0&&Ci.numVerticalGlyphVertices===0,T1=qt||Ci.numIconVertices===0;if(!w1&&!T1?on=Vi=on&&Vi:T1?w1||(on=on&&Vi):Vi=on&&Vi,Vi&&so&&so.box&&(ts&&ts.box&&Mv?K.collisionIndex.insertCollisionBox(so.box,we.get("text-ignore-placement"),ne.bucketInstanceId,Mv,at.ID):K.collisionIndex.insertCollisionBox(so.box,we.get("text-ignore-placement"),ne.bucketInstanceId,su,at.ID)),on&&ys&&K.collisionIndex.insertCollisionBox(ys.box,we.get("icon-ignore-placement"),ne.bucketInstanceId,Ev,at.ID),Zo&&(Vi&&K.collisionIndex.insertCollisionCircles(Zo.circles,we.get("text-ignore-placement"),ne.bucketInstanceId,su,at.ID),q)){var oy=ne.bucketInstanceId,im=K.collisionCircleArrays[oy];im===void 0&&(im=K.collisionCircleArrays[oy]=new Io);for(var nm=0;nm=0;--fi){var wi=Ri[fi];Nr(ne.symbolInstances.get(wi),ne.collisionArrays[wi])}else for(var gn=D.symbolInstanceStart;gn=0&&(ne>=0&&Zt!==ne?D.text.placedSymbolArray.get(Zt).crossTileID=0:D.text.placedSymbolArray.get(Zt).crossTileID=q.crossTileID)}},ws.prototype.markUsedOrientation=function(D,J,q){for(var K=J===i.WritingMode.horizontal||J===i.WritingMode.horizontalOnly?J:0,de=J===i.WritingMode.vertical?J:0,ne=[q.leftJustifiedTextSymbolIndex,q.centerJustifiedTextSymbolIndex,q.rightJustifiedTextSymbolIndex],we=0,Ue=ne;we0||mt>0,Nr=Nt.numIconVertices>0,Ri=K.placedOrientations[Nt.crossTileID],fi=Ri===i.WritingMode.vertical,wi=Ri===i.WritingMode.horizontal||Ri===i.WritingMode.horizontalOnly;if(br){var gn=ac(cr.text),tn=fi?aa:gn;et(D.text,Dt,tn);var Ci=wi?aa:gn;et(D.text,mt,Ci);var qi=cr.text.isHidden();[Nt.rightJustifiedTextSymbolIndex,Nt.centerJustifiedTextSymbolIndex,Nt.leftJustifiedTextSymbolIndex].forEach(function(Ev){Ev>=0&&(D.text.placedSymbolArray.get(Ev).hidden=qi||fi?1:0)}),Nt.verticalPlacedTextSymbolIndex>=0&&(D.text.placedSymbolArray.get(Nt.verticalPlacedTextSymbolIndex).hidden=qi||wi?1:0);var Vi=K.variableOffsets[Nt.crossTileID];Vi&&K.markUsedJustification(D,Vi.anchor,Nt,Ri);var on=K.placedOrientations[Nt.crossTileID];on&&(K.markUsedJustification(D,"left",Nt,on),K.markUsedOrientation(D,on,Nt))}if(Nr){var On=ac(cr.icon),Ja=!(Bt&&Nt.verticalPlacedIconSymbolIndex&&fi);if(Nt.placedIconSymbolIndex>=0){var co=Ja?On:aa;et(D.icon,Nt.numIconVertices,co),D.icon.placedSymbolArray.get(Nt.placedIconSymbolIndex).hidden=cr.icon.isHidden()}if(Nt.verticalPlacedIconSymbolIndex>=0){var ts=Ja?aa:On;et(D.icon,Nt.numVerticalIconVertices,ts),D.icon.placedSymbolArray.get(Nt.verticalPlacedIconSymbolIndex).hidden=cr.icon.isHidden()}}if(D.hasIconCollisionBoxData()||D.hasTextCollisionBoxData()){var so=D.collisionArrays[Rt];if(so){var Zo=new i.Point(0,0);if(so.textBox||so.verticalTextBox){var ys=!0;if(ft){var su=K.variableOffsets[Pt];su?(Zo=Su(su.anchor,su.width,su.height,su.textOffset,su.textBoxScale),Zt&&Zo._rotate(hr?K.transform.angle:-K.transform.angle)):ys=!1}so.textBox&&Fn(D.textCollisionBox.collisionVertexArray,cr.text.placed,!ys||fi,Zo.x,Zo.y),so.verticalTextBox&&Fn(D.textCollisionBox.collisionVertexArray,cr.text.placed,!ys||wi,Zo.x,Zo.y)}var Mv=!!(!wi&&so.verticalIconBox);so.iconBox&&Fn(D.iconCollisionBox.collisionVertexArray,cr.icon.placed,Mv,Bt?Zo.x:0,Bt?Zo.y:0),so.verticalIconBox&&Fn(D.iconCollisionBox.collisionVertexArray,cr.icon.placed,!Mv,Bt?Zo.x:0,Bt?Zo.y:0)}}},kt=0;ktD},ws.prototype.setStale=function(){this.stale=!0};function Fn(Y,D,J,q,K){Y.emplaceBack(D?1:0,J?1:0,q||0,K||0),Y.emplaceBack(D?1:0,J?1:0,q||0,K||0),Y.emplaceBack(D?1:0,J?1:0,q||0,K||0),Y.emplaceBack(D?1:0,J?1:0,q||0,K||0)}var _a=Math.pow(2,25),Vu=Math.pow(2,24),zl=Math.pow(2,17),xo=Math.pow(2,16),Yl=Math.pow(2,9),Us=Math.pow(2,8),Hl=Math.pow(2,1);function ac(Y){if(Y.opacity===0&&!Y.placed)return 0;if(Y.opacity===1&&Y.placed)return 4294967295;var D=Y.placed?1:0,J=Math.floor(Y.opacity*127);return J*_a+D*Vu+J*zl+D*xo+J*Yl+D*Us+J*Hl+D}var aa=0,Oo=function(D){this._sortAcrossTiles=D.layout.get("symbol-z-order")!=="viewport-y"&&D.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Oo.prototype.continuePlacement=function(D,J,q,K,de){for(var ne=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var we=D[this._currentPlacementIndex],Ue=J[we],ft=this.placement.collisionIndex.transform.zoom;if(Ue.type==="symbol"&&(!Ue.minzoom||Ue.minzoom<=ft)&&(!Ue.maxzoom||Ue.maxzoom>ft)){this._inProgressLayer||(this._inProgressLayer=new Oo(Ue));var Zt=this._inProgressLayer.continuePlacement(q[Ue.source],this.placement,this._showCollisionBoxes,Ue,ne);if(Zt)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},qo.prototype.commit=function(D){return this.placement.commit(D),this.placement};var Ol=512/i.EXTENT/2,Pc=function(D,J,q){this.tileID=D,this.indexedSymbolInstances={},this.bucketInstanceId=q;for(var K=0;KD.overscaledZ)for(var ft in Ue){var Zt=Ue[ft];Zt.tileID.isChildOf(D)&&Zt.findMatches(J.symbolInstances,D,ne)}else{var hr=D.scaledTo(Number(we)),Bt=Ue[hr.key];Bt&&Bt.findMatches(J.symbolInstances,D,ne)}}for(var Ve=0;Ve0)throw new Error("Unimplemented: "+ne.map(function(we){return we.command}).join(", ")+".");return de.forEach(function(we){we.command!=="setTransition"&&K[we.command].apply(K,we.args)}),this.stylesheet=q,!0},D.prototype.addImage=function(q,K){if(this.getImage(q))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(q,K),this._afterImageUpdated(q)},D.prototype.updateImage=function(q,K){this.imageManager.updateImage(q,K)},D.prototype.getImage=function(q){return this.imageManager.getImage(q)},D.prototype.removeImage=function(q){if(!this.getImage(q))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(q),this._afterImageUpdated(q)},D.prototype._afterImageUpdated=function(q){this._availableImages=this.imageManager.listImages(),this._changedImages[q]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},D.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},D.prototype.addSource=function(q,K,de){var ne=this;if(de===void 0&&(de={}),this._checkLoaded(),this.sourceCaches[q]!==void 0)throw new Error("There is already a source with this ID");if(!K.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(K).join(", ")+".");var we=["vector","raster","geojson","video","image"],Ue=we.indexOf(K.type)>=0;if(!(Ue&&this._validate(i.validateStyle.source,"sources."+q,K,null,de))){this.map&&this.map._collectResourceTiming&&(K.collectResourceTiming=!0);var ft=this.sourceCaches[q]=new ri(q,K,this.dispatcher);ft.style=this,ft.setEventedParent(this,function(){return{isSourceLoaded:ne.loaded(),source:ft.serialize(),sourceId:q}}),ft.onAdd(this.map),this._changed=!0}},D.prototype.removeSource=function(q){if(this._checkLoaded(),this.sourceCaches[q]===void 0)throw new Error("There is no source with this ID");for(var K in this._layers)if(this._layers[K].source===q)return this.fire(new i.ErrorEvent(new Error('Source "'+q+'" cannot be removed while layer "'+K+'" is using it.')));var de=this.sourceCaches[q];delete this.sourceCaches[q],delete this._updatedSources[q],de.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:q})),de.setEventedParent(null),de.clearTiles(),de.onRemove&&de.onRemove(this.map),this._changed=!0},D.prototype.setGeoJSONSourceData=function(q,K){this._checkLoaded();var de=this.sourceCaches[q].getSource();de.setData(K),this._changed=!0},D.prototype.getSource=function(q){return this.sourceCaches[q]&&this.sourceCaches[q].getSource()},D.prototype.addLayer=function(q,K,de){de===void 0&&(de={}),this._checkLoaded();var ne=q.id;if(this.getLayer(ne)){this.fire(new i.ErrorEvent(new Error('Layer with id "'+ne+'" already exists on this map')));return}var we;if(q.type==="custom"){if(ml(this,i.validateCustomStyleLayer(q)))return;we=i.createStyleLayer(q)}else{if(typeof q.source=="object"&&(this.addSource(ne,q.source),q=i.clone$1(q),q=i.extend(q,{source:ne})),this._validate(i.validateStyle.layer,"layers."+ne,q,{arrayIndex:-1},de))return;we=i.createStyleLayer(q),this._validateLayer(we),we.setEventedParent(this,{layer:{id:ne}}),this._serializedLayers[we.id]=we.serialize()}var Ue=K?this._order.indexOf(K):this._order.length;if(K&&Ue===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}if(this._order.splice(Ue,0,ne),this._layerOrderChanged=!0,this._layers[ne]=we,this._removedLayers[ne]&&we.source&&we.type!=="custom"){var ft=this._removedLayers[ne];delete this._removedLayers[ne],ft.type!==we.type?this._updatedSources[we.source]="clear":(this._updatedSources[we.source]="reload",this.sourceCaches[we.source].pause())}this._updateLayer(we),we.onAdd&&we.onAdd(this.map)},D.prototype.moveLayer=function(q,K){this._checkLoaded(),this._changed=!0;var de=this._layers[q];if(!de){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be moved.")));return}if(q!==K){var ne=this._order.indexOf(q);this._order.splice(ne,1);var we=K?this._order.indexOf(K):this._order.length;if(K&&we===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}this._order.splice(we,0,q),this._layerOrderChanged=!0}},D.prototype.removeLayer=function(q){this._checkLoaded();var K=this._layers[q];if(!K){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be removed.")));return}K.setEventedParent(null);var de=this._order.indexOf(q);this._order.splice(de,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[q]=K,delete this._layers[q],delete this._serializedLayers[q],delete this._updatedLayers[q],delete this._updatedPaintProps[q],K.onRemove&&K.onRemove(this.map)},D.prototype.getLayer=function(q){return this._layers[q]},D.prototype.hasLayer=function(q){return q in this._layers},D.prototype.setLayerZoomRange=function(q,K,de){this._checkLoaded();var ne=this.getLayer(q);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot have zoom extent.")));return}ne.minzoom===K&&ne.maxzoom===de||(K!=null&&(ne.minzoom=K),de!=null&&(ne.maxzoom=de),this._updateLayer(ne))},D.prototype.setFilter=function(q,K,de){de===void 0&&(de={}),this._checkLoaded();var ne=this.getLayer(q);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be filtered.")));return}if(!i.deepEqual(ne.filter,K)){if(K==null){ne.filter=void 0,this._updateLayer(ne);return}this._validate(i.validateStyle.filter,"layers."+ne.id+".filter",K,null,de)||(ne.filter=i.clone$1(K),this._updateLayer(ne))}},D.prototype.getFilter=function(q){return i.clone$1(this.getLayer(q).filter)},D.prototype.setLayoutProperty=function(q,K,de,ne){ne===void 0&&(ne={}),this._checkLoaded();var we=this.getLayer(q);if(!we){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be styled.")));return}i.deepEqual(we.getLayoutProperty(K),de)||(we.setLayoutProperty(K,de,ne),this._updateLayer(we))},D.prototype.getLayoutProperty=function(q,K){var de=this.getLayer(q);if(!de){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style.")));return}return de.getLayoutProperty(K)},D.prototype.setPaintProperty=function(q,K,de,ne){ne===void 0&&(ne={}),this._checkLoaded();var we=this.getLayer(q);if(!we){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be styled.")));return}if(!i.deepEqual(we.getPaintProperty(K),de)){var Ue=we.setPaintProperty(K,de,ne);Ue&&this._updateLayer(we),this._changed=!0,this._updatedPaintProps[q]=!0}},D.prototype.getPaintProperty=function(q,K){return this.getLayer(q).getPaintProperty(K)},D.prototype.setFeatureState=function(q,K){this._checkLoaded();var de=q.source,ne=q.sourceLayer,we=this.sourceCaches[de];if(we===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+de+"' does not exist in the map's style.")));return}var Ue=we.getSource().type;if(Ue==="geojson"&&ne){this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(Ue==="vector"&&!ne){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}q.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),we.setFeatureState(ne,q.id,K)},D.prototype.removeFeatureState=function(q,K){this._checkLoaded();var de=q.source,ne=this.sourceCaches[de];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+de+"' does not exist in the map's style.")));return}var we=ne.getSource().type,Ue=we==="vector"?q.sourceLayer:void 0;if(we==="vector"&&!Ue){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(K&&typeof q.id!="string"&&typeof q.id!="number"){this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}ne.removeFeatureState(Ue,q.id,K)},D.prototype.getFeatureState=function(q){this._checkLoaded();var K=q.source,de=q.sourceLayer,ne=this.sourceCaches[K];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+K+"' does not exist in the map's style.")));return}var we=ne.getSource().type;if(we==="vector"&&!de){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return q.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ne.getFeatureState(de,q.id)},D.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},D.prototype.serialize=function(){return i.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:i.mapObject(this.sourceCaches,function(q){return q.serialize()}),layers:this._serializeLayers(this._order)},function(q){return q!==void 0})},D.prototype._updateLayer=function(q){this._updatedLayers[q.id]=!0,q.source&&!this._updatedSources[q.source]&&this.sourceCaches[q.source].getSource().type!=="raster"&&(this._updatedSources[q.source]="reload",this.sourceCaches[q.source].pause()),this._changed=!0},D.prototype._flattenAndSortRenderedFeatures=function(q){for(var K=this,de=function(wi){return K._layers[wi].type==="fill-extrusion"},ne={},we=[],Ue=this._order.length-1;Ue>=0;Ue--){var ft=this._order[Ue];if(de(ft)){ne[ft]=Ue;for(var Zt=0,hr=q;Zt=0;Rt--){var Nt=this._order[Rt];if(de(Nt))for(var Dt=we.length-1;Dt>=0;Dt--){var mt=we[Dt].feature;if(ne[mt.layer.id] .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}});var qC=ye((l_r,vVe)=>{"use strict";var fVe=Dr(),hVe=Ca().defaultLine,oHt=kc().attributes,sHt=ec(),lHt=pf().textposition,uHt=mc().overrideAll,cHt=pl().templatedArray,KK=c1(),dVe=sHt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});dVe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var fHt=vVe.exports=uHt({_arrayAttrRegexps:[fVe.counterRegex("mapbox",".layers",!0)],domain:oHt({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:KK.styleValuesMapbox.concat(KK.styleValuesNonMapbox),dflt:KK.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:cHt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:hVe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:hVe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:dVe,textposition:fVe.extendFlat({},lHt,{arrayOk:!1})}})},"plot","from-root");fHt.uirevision={valType:"any",editType:"none"}});var Vz=ye((u_r,mVe)=>{"use strict";var hHt=Qo().hovertemplateAttrs,dHt=Qo().texttemplateAttrs,vHt=Eg(),BC=G2(),x5=pf(),pVe=qC(),pHt=Vl(),gHt=Tu(),ew=Ao().extendFlat,mHt=mc().overrideAll,yHt=qC(),gVe=BC.line,b5=BC.marker;mVe.exports=mHt({lon:BC.lon,lat:BC.lat,cluster:{enabled:{valType:"boolean"},maxzoom:ew({},yHt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:ew({},b5.opacity,{dflt:1})},mode:ew({},x5.mode,{dflt:"markers"}),text:ew({},x5.text,{}),texttemplate:dHt({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:ew({},x5.hovertext,{}),line:{color:gVe.color,width:gVe.width},connectgaps:x5.connectgaps,marker:ew({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:b5.opacity,size:b5.size,sizeref:b5.sizeref,sizemin:b5.sizemin,sizemode:b5.sizemode},gHt("marker")),fill:BC.fill,fillcolor:vHt(),textfont:pVe.layers.symbol.textfont,textposition:pVe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:x5.selected.marker},unselected:{marker:x5.unselected.marker},hoverinfo:ew({},pHt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:hHt()},"calc","nested")});var JK=ye((c_r,yVe)=>{"use strict";var _Ht=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];yVe.exports={isSupportedFont:function(e){return _Ht.indexOf(e)!==-1}}});var bVe=ye((f_r,xVe)=>{"use strict";var NC=Dr(),$K=Ru(),xHt=$p(),bHt=R0(),wHt=D0(),THt=Ig(),_Ve=Vz(),AHt=JK().isSupportedFont;xVe.exports=function(t,r,n,i){function a(p,C){return NC.coerce(t,r,_Ve,p,C)}function o(p,C){return NC.coerce2(t,r,_Ve,p,C)}var s=SHt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("hovertext"),a("hovertemplate"),a("mode"),a("below"),$K.hasMarkers(r)){xHt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var l=r.marker;l.symbol!=="circle"&&(NC.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),NC.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}$K.hasLines(r)&&(bHt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var u=o("cluster.maxzoom"),c=o("cluster.step"),f=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),v=u!==!1||c!==!1||f!==!1||h!==!1||d!==!1,_=a("cluster.enabled",v);if(_||$K.hasText(r)){var b=i.font.family;wHt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:AHt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&THt(t,r,n,a),NC.coerceSelectionMarkerOpacity(r,a)};function SHt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var QK=ye((h_r,TVe)=>{"use strict";var wVe=ho();TVe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=wVe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=wVe.tickText(o,o.c2l(s[1]),!0).text,i}});var eJ=ye((d_r,SVe)=>{"use strict";var AVe=Dr();SVe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=AVe.isArrayOrTypedArray(r)?AVe.mean(r):r,s=.5+o/100,l=1.5+o/100,u=["",""],c=[0,0];switch(i){case"top":u[0]="top",c[1]=-l;break;case"bottom":u[0]="bottom",c[1]=l;break}switch(a){case"left":u[1]="right",c[0]=-s;break;case"right":u[1]="left",c[0]=s;break}var f;return u[0]&&u[1]?f=u.join("-"):u[0]?f=u[0]:u[1]?f=u[1]:f="center",{anchor:f,offset:c}}});var PVe=ye((v_r,LVe)=>{"use strict";var CVe=Eo(),av=Dr(),MHt=hs().BADNUM,Hz=rx(),MVe=tc(),EHt=So(),CHt=S3(),jz=Ru(),kHt=JK().isSupportedFont,LHt=eJ(),PHt=rp().appendArrayPointValue,IHt=iu().NEWLINES,RHt=iu().BR_TAG_ALL;LVe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=jz.hasLines(n),s=jz.hasMarkers(n),l=jz.hasText(n),u=s&&n.marker.symbol==="circle",c=s&&n.marker.symbol!=="circle",f=n.cluster&&n.cluster.enabled,h=Gz("fill"),d=Gz("line"),v=Gz("circle"),_=Gz("symbol"),b={fill:h,line:d,circle:v,symbol:_};if(!i)return b;var p;if((a||o)&&(p=Hz.calcTraceToLineCoords(r)),a&&(h.geojson=Hz.makePolygon(p),h.layout.visibility="visible",av.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=Hz.makeLine(p),d.layout.visibility="visible",av.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),u){var C=DHt(r);v.geojson=C.geojson,v.layout.visibility="visible",f&&(v.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":rJ(n.cluster.color,n.cluster.step),"circle-radius":rJ(n.cluster.size,n.cluster.step),"circle-opacity":rJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":EVe(n),"text-size":12}}),av.extendFlat(v.paint,{"circle-color":C.mcc,"circle-radius":C.mrc,"circle-opacity":C.mo})}if(u&&f&&(v.filter=["!",["has","point_count"]]),(c||l)&&(_.geojson=FHt(r,t),av.extendFlat(_.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),c&&(av.extendFlat(_.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&av.extendFlat(_.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),_.layout["icon-allow-overlap"]=n.marker.allowoverlap,av.extendFlat(_.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),l)){var E=(n.marker||{}).size,A=LHt(n.textposition,E);av.extendFlat(_.layout,{"text-size":n.textfont.size,"text-anchor":A.anchor,"text-offset":A.offset,"text-font":EVe(n)}),av.extendFlat(_.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function Gz(e){return{type:e,geojson:Hz.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function DHt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=av.isArrayOrTypedArray(r.color),a=av.isArrayOrTypedArray(r.size),o=av.isArrayOrTypedArray(r.opacity),s;function l(E){return t.opacity*E}function u(E){return E/2}var c;i&&(MVe.hasColorscale(t,"marker")?c=MVe.makeColorScaleFuncFromTrace(r):c=av.identity);var f;a&&(f=CHt(t));var h;o&&(h=function(E){var A=CVe(E)?+av.constrain(E,0,1):0;return l(A)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),kHt(s)||(s=r);var l=s.split(", ");return l}});var FVe=ye((p_r,DVe)=>{"use strict";var zHt=Dr(),IVe=PVe(),w5=c1().traceLayerPrefix,rg={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function RVe(e,t,r,n){this.type="scattermapbox",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:w5+t+"-fill",line:w5+t+"-line",circle:w5+t+"-circle",symbol:w5+t+"-symbol",cluster:w5+t+"-cluster",clusterCount:w5+t+"-cluster-count"},this.below=null}var UC=RVe.prototype;UC.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&zHt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};UC.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};UC.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var x=A[L];i.removeLayer(u.layerIds[x])}E||i.removeSource(u.sourceIds.circle)}function h(E){for(var A=rg.nonCluster,L=0;L=0;L--){var x=A[L];i.removeLayer(u.layerIds[x]),E||i.removeSource(u.sourceIds[x])}}function v(E){l?f(E):d(E)}function _(E){s?c(E):h(E)}function b(){for(var E=s?rg.cluster:rg.nonCluster,A=0;A=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};DVe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new RVe(t,n.uid,i,a),s=IVe(t.gd,r),l=o.below=t.belowLookup["trace-"+n.uid],u,c,f;if(i)for(o.addSource("circle",s.circle,n.cluster),u=0;u{"use strict";var OHt=vf(),iJ=Dr(),qHt=oT(),BHt=iJ.fillText,NHt=hs().BADNUM,UHt=c1().traceLayerPrefix;function VHt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=UHt+i.uid+"-circle",c=i.cluster&&i.cluster.enabled;if(c){var f=s.map.queryRenderedFeatures(null,{layers:[u]});l=f.map(function(M){return M.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,v=t-d;function _(M){var g=M.lonlat;if(g[0]===NHt||c&&l.indexOf(M.i+1)===-1)return 1/0;var P=iJ.modHalf(g[0],360),T=g[1],z=s.project([P,T]),O=z.x-a.c2p([v,T]),V=z.y-o.c2p([P,r]),G=Math.max(3,M.mrc||0);return Math.max(Math.sqrt(O*O+V*V)-G,1-3/G)}if(OHt.getClosest(n,_,e),e.index!==!1){var b=n[e.index],p=b.lonlat,C=[iJ.modHalf(p[0],360)+d,p[1]],E=a.c2p(C),A=o.c2p(C),L=b.mrc||1;e.x0=E-L,e.x1=E+L,e.y0=A-L,e.y1=A+L;var x={};x[i.subplot]={_subplot:s};var k=i._module.formatLabels(b,i,x);return e.lonLabel=k.lonLabel,e.latLabel=k.latLabel,e.color=qHt(i,b),e.extraText=zVe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function zVe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,l=t.lonlat,u=[];function c(f){return f+"\xB0"}return a||o&&s?u.push("("+c(l[1])+", "+c(l[0])+")"):o?u.push(r.lon+c(l[0])):s&&u.push(r.lat+c(l[1])),(a||i.indexOf("text")!==-1)&&BHt(t,e,u),u.join("
")}OVe.exports={hoverPoints:VHt,getExtraText:zVe}});var BVe=ye((m_r,qVe)=>{"use strict";qVe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var UVe=ye((y_r,NVe)=>{"use strict";var GHt=Dr(),HHt=Ru(),jHt=hs().BADNUM;NVe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l;if(!HHt.hasMarkers(s))return[];if(r===!1)for(l=0;l{(function(e,t){typeof nJ=="object"&&typeof aJ!="undefined"?aJ.exports=t():(e=e||self,e.mapboxgl=t())})(nJ,function(){"use strict";var e,t,r;function n(i,a){if(!e)e=a;else if(!t)t=a;else{var o="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",s={};e(s),r=a(s),typeof window!="undefined"&&(r.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}}return n(["exports"],function(i){"use strict";function a(m,y){return y={exports:{}},m(y,y.exports),y.exports}var o="1.13.4",s=l;function l(m,y,I,U){this.cx=3*m,this.bx=3*(I-m)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*y,this.by=3*(U-y)-this.cy,this.ay=1-this.cy-this.by,this.p1x=m,this.p1y=U,this.p2x=I,this.p2y=U}l.prototype.sampleCurveX=function(m){return((this.ax*m+this.bx)*m+this.cx)*m},l.prototype.sampleCurveY=function(m){return((this.ay*m+this.by)*m+this.cy)*m},l.prototype.sampleCurveDerivativeX=function(m){return(3*this.ax*m+2*this.bx)*m+this.cx},l.prototype.solveCurveX=function(m,y){typeof y=="undefined"&&(y=1e-6);var I,U,$,ae,he;for($=m,he=0;he<8;he++){if(ae=this.sampleCurveX($)-m,Math.abs(ae)U)return U;for(;Iae?I=$:U=$,$=(U-I)*.5+I}return $},l.prototype.solve=function(m,y){return this.sampleCurveY(this.solveCurveX(m,y))};var u=c;function c(m,y){this.x=m,this.y=y}c.prototype={clone:function(){return new c(this.x,this.y)},add:function(m){return this.clone()._add(m)},sub:function(m){return this.clone()._sub(m)},multByPoint:function(m){return this.clone()._multByPoint(m)},divByPoint:function(m){return this.clone()._divByPoint(m)},mult:function(m){return this.clone()._mult(m)},div:function(m){return this.clone()._div(m)},rotate:function(m){return this.clone()._rotate(m)},rotateAround:function(m,y){return this.clone()._rotateAround(m,y)},matMult:function(m){return this.clone()._matMult(m)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(m){return this.x===m.x&&this.y===m.y},dist:function(m){return Math.sqrt(this.distSqr(m))},distSqr:function(m){var y=m.x-this.x,I=m.y-this.y;return y*y+I*I},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(m){return Math.atan2(this.y-m.y,this.x-m.x)},angleWith:function(m){return this.angleWithSep(m.x,m.y)},angleWithSep:function(m,y){return Math.atan2(this.x*y-this.y*m,this.x*m+this.y*y)},_matMult:function(m){var y=m[0]*this.x+m[1]*this.y,I=m[2]*this.x+m[3]*this.y;return this.x=y,this.y=I,this},_add:function(m){return this.x+=m.x,this.y+=m.y,this},_sub:function(m){return this.x-=m.x,this.y-=m.y,this},_mult:function(m){return this.x*=m,this.y*=m,this},_div:function(m){return this.x/=m,this.y/=m,this},_multByPoint:function(m){return this.x*=m.x,this.y*=m.y,this},_divByPoint:function(m){return this.x/=m.x,this.y/=m.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var m=this.y;return this.y=this.x,this.x=-m,this},_rotate:function(m){var y=Math.cos(m),I=Math.sin(m),U=y*this.x-I*this.y,$=I*this.x+y*this.y;return this.x=U,this.y=$,this},_rotateAround:function(m,y){var I=Math.cos(m),U=Math.sin(m),$=y.x+I*(this.x-y.x)-U*(this.y-y.y),ae=y.y+U*(this.x-y.x)+I*(this.y-y.y);return this.x=$,this.y=ae,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},c.convert=function(m){return m instanceof c?m:Array.isArray(m)?new c(m[0],m[1]):m};var f=typeof self!="undefined"?self:{};function h(m,y){if(Array.isArray(m)){if(!Array.isArray(y)||m.length!==y.length)return!1;for(var I=0;I=1)return 1;var y=m*m,I=y*m;return 4*(m<.5?I:3*(m-y)+I-.75)}function _(m,y,I,U){var $=new s(m,y,I,U);return function(ae){return $.solve(ae)}}var b=_(.25,.1,.25,1);function p(m,y,I){return Math.min(I,Math.max(y,m))}function C(m,y,I){var U=I-y,$=((m-y)%U+U)%U+y;return $===y?I:$}function E(m,y,I){if(!m.length)return I(null,[]);var U=m.length,$=new Array(m.length),ae=null;m.forEach(function(he,Oe){y(he,function(rt,gt){rt&&(ae=rt),$[Oe]=gt,--U===0&&I(ae,$)})})}function A(m){var y=[];for(var I in m)y.push(m[I]);return y}function L(m,y){var I=[];for(var U in m)U in y||I.push(U);return I}function x(m){for(var y=[],I=arguments.length-1;I-- >0;)y[I]=arguments[I+1];for(var U=0,$=y;U<$.length;U+=1){var ae=$[U];for(var he in ae)m[he]=ae[he]}return m}function k(m,y){for(var I={},U=0;U>y/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,m)}return m()}function T(m){return m<=1?1:Math.pow(2,Math.ceil(Math.log(m)/Math.LN2))}function z(m){return m?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(m):!1}function O(m,y){m.forEach(function(I){y[I]&&(y[I]=y[I].bind(y))})}function V(m,y){return m.indexOf(y,m.length-y.length)!==-1}function G(m,y,I){var U={};for(var $ in m)U[$]=y.call(I||this,m[$],$,m);return U}function Z(m,y,I){var U={};for(var $ in m)y.call(I||this,m[$],$,m)&&(U[$]=m[$]);return U}function H(m){return Array.isArray(m)?m.map(H):typeof m=="object"&&m?G(m,H):m}function N(m,y){for(var I=0;I=0)return!0;return!1}var j={};function re(m){j[m]||(typeof console!="undefined"&&console.warn(m),j[m]=!0)}function oe(m,y,I){return(I.y-m.y)*(y.x-m.x)>(y.y-m.y)*(I.x-m.x)}function _e(m){for(var y=0,I=0,U=m.length,$=U-1,ae=void 0,he=void 0;I@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,I={};if(m.replace(y,function($,ae,he,Oe){var rt=he||Oe;return I[ae]=rt?rt.toLowerCase():!0,""}),I["max-age"]){var U=parseInt(I["max-age"],10);isNaN(U)?delete I["max-age"]:I["max-age"]=U}return I}var ie=null;function Se(m){if(ie==null){var y=m.navigator?m.navigator.userAgent:null;ie=!!m.safari||!!(y&&(/\b(iPad|iPhone|iPod)\b/.test(y)||y.match("Safari")&&!y.match("Chrome")))}return ie}function Le(m){try{var y=f[m];return y.setItem("_mapbox_test_",1),y.removeItem("_mapbox_test_"),!0}catch(I){return!1}}function Ae(m){return f.btoa(encodeURIComponent(m).replace(/%([0-9A-F]{2})/g,function(y,I){return String.fromCharCode(+("0x"+I))}))}function De(m){return decodeURIComponent(f.atob(m).split("").map(function(y){return"%"+("00"+y.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var Pe=f.performance&&f.performance.now?f.performance.now.bind(f.performance):Date.now.bind(Date),ge=f.requestAnimationFrame||f.mozRequestAnimationFrame||f.webkitRequestAnimationFrame||f.msRequestAnimationFrame,Fe=f.cancelAnimationFrame||f.mozCancelAnimationFrame||f.webkitCancelAnimationFrame||f.msCancelAnimationFrame,ce,Ye,ct={now:Pe,frame:function(y){var I=ge(y);return{cancel:function(){return Fe(I)}}},getImageData:function(y,I){I===void 0&&(I=0);var U=f.document.createElement("canvas"),$=U.getContext("2d");if(!$)throw new Error("failed to create canvas 2d context");return U.width=y.width,U.height=y.height,$.drawImage(y,0,0,y.width,y.height),$.getImageData(-I,-I,y.width+2*I,y.height+2*I)},resolveURL:function(y){return ce||(ce=f.document.createElement("a")),ce.href=y,ce.href},hardwareConcurrency:f.navigator&&f.navigator.hardwareConcurrency||4,get devicePixelRatio(){return f.devicePixelRatio},get prefersReducedMotion(){return f.matchMedia?(Ye==null&&(Ye=f.matchMedia("(prefers-reduced-motion: reduce)")),Ye.matches):!1}},pt={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Wt={supported:!1,testSupport:$t},st,lt=!1,Gt,Nt=!1;f.document&&(Gt=f.document.createElement("img"),Gt.onload=function(){st&&sr(st),st=null,Nt=!0},Gt.onerror=function(){lt=!0,st=null},Gt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function $t(m){lt||!Gt||(Nt?sr(m):st=m)}function sr(m){var y=m.createTexture();m.bindTexture(m.TEXTURE_2D,y);try{if(m.texImage2D(m.TEXTURE_2D,0,m.RGBA,m.RGBA,m.UNSIGNED_BYTE,Gt),m.isContextLost())return;Wt.supported=!0}catch(I){}m.deleteTexture(y),lt=!0}var wr="01";function ur(){for(var m="1",y="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",I="",U=0;U<10;U++)I+=y[Math.floor(Math.random()*62)];var $=12*60*60*1e3,ae=[m,wr,I].join(""),he=Date.now()+$;return{token:ae,tokenExpiresAt:he}}var Qe=function(y,I){this._transformRequestFn=y,this._customAccessToken=I,this._createSkuToken()};Qe.prototype._createSkuToken=function(){var y=ur();this._skuToken=y.token,this._skuTokenExpiresAt=y.tokenExpiresAt},Qe.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Qe.prototype.transformRequest=function(y,I){return this._transformRequestFn?this._transformRequestFn(y,I)||{url:y}:{url:y}},Qe.prototype.normalizeStyleURL=function(y,I){if(!Et(y))return y;var U=Yt(y);return U.path="/styles/v1"+U.path,this._makeAPIURL(U,this._customAccessToken||I)},Qe.prototype.normalizeGlyphsURL=function(y,I){if(!Et(y))return y;var U=Yt(y);return U.path="/fonts/v1"+U.path,this._makeAPIURL(U,this._customAccessToken||I)},Qe.prototype.normalizeSourceURL=function(y,I){if(!Et(y))return y;var U=Yt(y);return U.path="/v4/"+U.authority+".json",U.params.push("secure"),this._makeAPIURL(U,this._customAccessToken||I)},Qe.prototype.normalizeSpriteURL=function(y,I,U,$){var ae=Yt(y);return Et(y)?(ae.path="/styles/v1"+ae.path+"/sprite"+I+U,this._makeAPIURL(ae,this._customAccessToken||$)):(ae.path+=""+I+U,lr(ae))},Qe.prototype.normalizeTileURL=function(y,I){if(this._isSkuTokenExpired()&&this._createSkuToken(),y&&!Et(y))return y;var U=Yt(y),$=/(\.(png|jpg)\d*)(?=$)/,ae=/^.+\/v4\//,he=ct.devicePixelRatio>=2||I===512?"@2x":"",Oe=Wt.supported?".webp":"$1";U.path=U.path.replace($,""+he+Oe),U.path=U.path.replace(ae,"/"),U.path="/v4"+U.path;var rt=this._customAccessToken||bt(U.params)||pt.ACCESS_TOKEN;return pt.REQUIRE_ACCESS_TOKEN&&rt&&this._skuToken&&U.params.push("sku="+this._skuToken),this._makeAPIURL(U,rt)},Qe.prototype.canonicalizeTileURL=function(y,I){var U="/v4/",$=/\.[\w]+$/,ae=Yt(y);if(!ae.path.match(/(^\/v4\/)/)||!ae.path.match($))return y;var he="mapbox://tiles/";he+=ae.path.replace(U,"");var Oe=ae.params;return I&&(Oe=Oe.filter(function(rt){return!rt.match(/^access_token=/)})),Oe.length&&(he+="?"+Oe.join("&")),he},Qe.prototype.canonicalizeTileset=function(y,I){for(var U=I?Et(I):!1,$=[],ae=0,he=y.tiles||[];ae=0&&y.params.splice(ae,1)}if($.path!=="/"&&(y.path=""+$.path+y.path),!pt.REQUIRE_ACCESS_TOKEN)return lr(y);if(I=I||pt.ACCESS_TOKEN,!I)throw new Error("An API access token is required to use Mapbox GL. "+U);if(I[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+U);return y.params=y.params.filter(function(he){return he.indexOf("access_token")===-1}),y.params.push("access_token="+I),lr(y)};function Et(m){return m.indexOf("mapbox:")===0}var er=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Ut(m){return er.test(m)}function Ft(m){return m.indexOf("sku=")>0&&Ut(m)}function bt(m){for(var y=0,I=m;y=1&&f.localStorage.setItem(I,JSON.stringify(this.eventData))}catch($){re("Unable to write to LocalStorage")}},ei.prototype.processRequests=function(y){},ei.prototype.postEvent=function(y,I,U,$){var ae=this;if(pt.EVENTS_URL){var he=Yt(pt.EVENTS_URL);he.params.push("access_token="+($||pt.ACCESS_TOKEN||""));var Oe={event:this.type,created:new Date(y).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:o,skuId:wr,userId:this.anonId},rt=I?x(Oe,I):Oe,gt={url:lr(he),headers:{"Content-Type":"text/plain"},body:JSON.stringify([rt])};this.pendingRequest=$r(gt,function(Mt){ae.pendingRequest=null,U(Mt),ae.saveEventData(),ae.processRequests($)})}},ei.prototype.queueRequest=function(y,I){this.queue.push(y),this.processRequests(I)};var Wr=function(m){function y(){m.call(this,"map.load"),this.success={},this.skuToken=""}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.postMapLoadEvent=function(U,$,ae,he){this.skuToken=ae,(pt.EVENTS_URL&&he||pt.ACCESS_TOKEN&&Array.isArray(U)&&U.some(function(Oe){return Et(Oe)||Ut(Oe)}))&&this.queueRequest({id:$,timestamp:Date.now()},he)},y.prototype.processRequests=function(U){var $=this;if(!(this.pendingRequest||this.queue.length===0)){var ae=this.queue.shift(),he=ae.id,Oe=ae.timestamp;he&&this.success[he]||(this.anonId||this.fetchEventData(),z(this.anonId)||(this.anonId=P()),this.postEvent(Oe,{skuToken:this.skuToken},function(rt){rt||he&&($.success[he]=!0)},U))}},y}(ei),Ur=function(m){function y(I){m.call(this,"appUserTurnstile"),this._customAccessToken=I}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.postTurnstileEvent=function(U,$){pt.EVENTS_URL&&pt.ACCESS_TOKEN&&Array.isArray(U)&&U.some(function(ae){return Et(ae)||Ut(ae)})&&this.queueRequest(Date.now(),$)},y.prototype.processRequests=function(U){var $=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var ae=Rr(pt.ACCESS_TOKEN),he=ae?ae.u:pt.ACCESS_TOKEN,Oe=he!==this.eventData.tokenU;z(this.anonId)||(this.anonId=P(),Oe=!0);var rt=this.queue.shift();if(this.eventData.lastSuccess){var gt=new Date(this.eventData.lastSuccess),Mt=new Date(rt),or=(rt-this.eventData.lastSuccess)/(24*60*60*1e3);Oe=Oe||or>=1||or<-1||gt.getDate()!==Mt.getDate()}else Oe=!0;if(!Oe)return this.processRequests();this.postEvent(rt,{"enabled.telemetry":!1},function(_r){_r||($.eventData.lastSuccess=rt,$.eventData.tokenU=he)},U)}},y}(ei),dt=new Ur,Ge=dt.postTurnstileEvent.bind(dt),Je=new Wr,je=Je.postMapLoadEvent.bind(Je),$e="mapbox-tiles",wt=500,Ie=50,xe=1e3*60*7,Ce;function vt(){f.caches&&!Ce&&(Ce=f.caches.open($e))}var nr;function ir(m,y){if(nr===void 0)try{new Response(new ReadableStream),nr=!0}catch(I){nr=!1}nr?y(m.body):m.blob().then(y)}function pr(m,y,I){if(vt(),!!Ce){var U={status:y.status,statusText:y.statusText,headers:new f.Headers};y.headers.forEach(function(he,Oe){return U.headers.set(Oe,he)});var $=me(y.headers.get("Cache-Control")||"");if(!$["no-store"]){$["max-age"]&&U.headers.set("Expires",new Date(I+$["max-age"]*1e3).toUTCString());var ae=new Date(U.headers.get("Expires")).getTime()-I;aeDate.now()&&!I["no-cache"]}var fi=1/0;function Hi(m){fi++,fi>Ie&&(m.getActor().send("enforceCacheSizeLimit",wt),fi=0)}function Pn(m){vt(),Ce&&Ce.then(function(y){y.keys().then(function(I){for(var U=0;U=200&&I.status<300||I.status===0)&&I.response!==null){var $=I.response;if(m.type==="json")try{$=JSON.parse(I.response)}catch(ae){return y(ae)}y(null,$,I.getResponseHeader("Cache-Control"),I.getResponseHeader("Expires"))}else y(new ua(I.statusText,I.status,m.url))},I.send(m.body),{cancel:function(){return I.abort()}}}var Er=function(m,y){if(!_t(m.url)){if(f.fetch&&f.Request&&f.AbortController&&f.Request.prototype.hasOwnProperty("signal"))return tr(m,y);if(ke()&&self.worker&&self.worker.actor){var I=!0;return self.worker.actor.send("getResource",m,y,void 0,I)}}return ar(m,y)},Zr=function(m,y){return Er(x(m,{type:"json"}),y)},ri=function(m,y){return Er(x(m,{type:"arrayBuffer"}),y)},$r=function(m,y){return Er(x(m,{method:"POST"}),y)};function zi(m){var y=f.document.createElement("a");return y.href=m,y.protocol===f.document.location.protocol&&y.host===f.document.location.host}var Ji="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function en(m,y,I,U){var $=new f.Image,ae=f.URL;$.onload=function(){y(null,$),ae.revokeObjectURL($.src),$.onload=null,f.requestAnimationFrame(function(){$.src=Ji})},$.onerror=function(){return y(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var he=new f.Blob([new Uint8Array(m)],{type:"image/png"});$.cacheControl=I,$.expires=U,$.src=m.byteLength?ae.createObjectURL(he):Ji}function cn(m,y){var I=new f.Blob([new Uint8Array(m)],{type:"image/png"});f.createImageBitmap(I).then(function(U){y(null,U)}).catch(function(U){y(new Error("Could not load image because of "+U.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var yn,Mn,Ba=function(){yn=[],Mn=0};Ba();var la=function(m,y){if(Wt.supported&&(m.headers||(m.headers={}),m.headers.accept="image/webp,*/*"),Mn>=pt.MAX_PARALLEL_IMAGE_REQUESTS){var I={requestParameters:m,callback:y,cancelled:!1,cancel:function(){this.cancelled=!0}};return yn.push(I),I}Mn++;var U=!1,$=function(){if(!U)for(U=!0,Mn--;yn.length&&Mn0||this._oneTimeListeners&&this._oneTimeListeners[y]&&this._oneTimeListeners[y].length>0||this._eventedParent&&this._eventedParent.listens(y)},Wn.prototype.setEventedParent=function(y,I){return this._eventedParent=y,this._eventedParentData=I,this};var Ga=8,vo={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},jn={"*":{type:"source"}},St=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],Cr={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Qr={type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},pi={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},fn={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},Sn={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},En={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},ki={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},_n=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],ya={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Jn={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Ma={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},_o={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},No={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},po={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Lo={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Co={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Fs={type:"array",value:"*"},zs={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},ul={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},cl={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},Fl={type:"array",value:"*",minimum:1},cs={anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},nl=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],Ss={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},fl={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},Js={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},Os={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Io={"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},us={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Zl={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Su={"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},nc={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},ws={"*":{type:"string"}},Fn={$version:Ga,$root:vo,sources:jn,source:St,source_vector:Cr,source_raster:Qr,source_raster_dem:pi,source_geojson:fn,source_video:Sn,source_image:En,layer:ki,layout:_n,layout_background:ya,layout_fill:Jn,layout_circle:Ma,layout_heatmap:_o,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:No,layout_symbol:po,layout_raster:Lo,layout_hillshade:Co,filter:Fs,filter_operator:zs,geometry_type:ul,function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:cl,expression:Fl,light:cs,paint:nl,paint_fill:Ss,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:fl,paint_circle:Js,paint_heatmap:Os,paint_symbol:Io,paint_raster:us,paint_hillshade:Zl,paint_background:Su,transition:nc,"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:ws},_a=function(y,I,U,$){this.message=(y?y+": ":"")+U,$&&(this.identifier=$),I!=null&&I.__line__&&(this.line=I.__line__)};function Vu(m){var y=m.key,I=m.value;return I?[new _a(y,I,"constants have been deprecated as of v8")]:[]}function zl(m){for(var y=[],I=arguments.length-1;I-- >0;)y[I]=arguments[I+1];for(var U=0,$=y;U<$.length;U+=1){var ae=$[U];for(var he in ae)m[he]=ae[he]}return m}function xo(m){return m instanceof Number||m instanceof String||m instanceof Boolean?m.valueOf():m}function Yl(m){if(Array.isArray(m))return m.map(Yl);if(m instanceof Object&&!(m instanceof Number||m instanceof String||m instanceof Boolean)){var y={};for(var I in m)y[I]=Yl(m[I]);return y}return xo(m)}var Us=function(m){function y(I,U){m.call(this,U),this.message=U,this.key=I}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y}(Error),Hl=function(y,I){I===void 0&&(I=[]),this.parent=y,this.bindings={};for(var U=0,$=I;U<$.length;U+=1){var ae=$[U],he=ae[0],Oe=ae[1];this.bindings[he]=Oe}};Hl.prototype.concat=function(y){return new Hl(this,y)},Hl.prototype.get=function(y){if(this.bindings[y])return this.bindings[y];if(this.parent)return this.parent.get(y);throw new Error(y+" not found in scope.")},Hl.prototype.has=function(y){return this.bindings[y]?!0:this.parent?this.parent.has(y):!1};var ac={kind:"null"},aa={kind:"number"},Oo={kind:"string"},qo={kind:"boolean"},Ol={kind:"color"},Pc={kind:"object"},Do={kind:"value"},rf={kind:"error"},Uf={kind:"collator"},ml={kind:"formatted"},Zc={kind:"resolvedImage"};function Kl(m,y){return{kind:"array",itemType:m,N:y}}function qs(m){if(m.kind==="array"){var y=qs(m.itemType);return typeof m.N=="number"?"array<"+y+", "+m.N+">":m.itemType.kind==="value"?"array":"array<"+y+">"}else return m.kind}var yu=[ac,aa,Oo,qo,Ol,ml,Pc,Kl(Do),Zc];function oc(m,y){if(y.kind==="error")return null;if(m.kind==="array"){if(y.kind==="array"&&(y.N===0&&y.itemType.kind==="value"||!oc(m.itemType,y.itemType))&&(typeof m.N!="number"||m.N===y.N))return null}else{if(m.kind===y.kind)return null;if(m.kind==="value")for(var I=0,U=yu;I255?255:gt}function $(gt){return gt<0?0:gt>1?1:gt}function ae(gt){return gt[gt.length-1]==="%"?U(parseFloat(gt)/100*255):U(parseInt(gt))}function he(gt){return gt[gt.length-1]==="%"?$(parseFloat(gt)/100):$(parseFloat(gt))}function Oe(gt,Mt,or){return or<0?or+=1:or>1&&(or-=1),or*6<1?gt+(Mt-gt)*or*6:or*2<1?Mt:or*3<2?gt+(Mt-gt)*(2/3-or)*6:gt}function rt(gt){var Mt=gt.replace(/ /g,"").toLowerCase();if(Mt in I)return I[Mt].slice();if(Mt[0]==="#"){if(Mt.length===4){var or=parseInt(Mt.substr(1),16);return or>=0&&or<=4095?[(or&3840)>>4|(or&3840)>>8,or&240|(or&240)>>4,or&15|(or&15)<<4,1]:null}else if(Mt.length===7){var or=parseInt(Mt.substr(1),16);return or>=0&&or<=16777215?[(or&16711680)>>16,(or&65280)>>8,or&255,1]:null}return null}var _r=Mt.indexOf("("),vr=Mt.indexOf(")");if(_r!==-1&&vr+1===Mt.length){var Fr=Mt.substr(0,_r),ai=Mt.substr(_r+1,vr-(_r+1)).split(","),Gi=1;switch(Fr){case"rgba":if(ai.length!==4)return null;Gi=he(ai.pop());case"rgb":return ai.length!==3?null:[ae(ai[0]),ae(ai[1]),ae(ai[2]),Gi];case"hsla":if(ai.length!==4)return null;Gi=he(ai.pop());case"hsl":if(ai.length!==3)return null;var Ti=(parseFloat(ai[0])%360+360)%360/360,bn=he(ai[1]),rn=he(ai[2]),xn=rn<=.5?rn*(bn+1):rn+bn-rn*bn,Dn=rn*2-xn;return[U(Oe(Dn,xn,Ti+1/3)*255),U(Oe(Dn,xn,Ti)*255),U(Oe(Dn,xn,Ti-1/3)*255),Gi];default:return null}}return null}try{y.parseCSSColor=rt}catch(gt){}}),kf=Nh.parseCSSColor,fs=function(y,I,U,$){$===void 0&&($=1),this.r=y,this.g=I,this.b=U,this.a=$};fs.parse=function(y){if(y){if(y instanceof fs)return y;if(typeof y=="string"){var I=kf(y);if(I)return new fs(I[0]/255*I[3],I[1]/255*I[3],I[2]/255*I[3],I[3])}}},fs.prototype.toString=function(){var y=this.toArray(),I=y[0],U=y[1],$=y[2],ae=y[3];return"rgba("+Math.round(I)+","+Math.round(U)+","+Math.round($)+","+ae+")"},fs.prototype.toArray=function(){var y=this,I=y.r,U=y.g,$=y.b,ae=y.a;return ae===0?[0,0,0,0]:[I*255/ae,U*255/ae,$*255/ae,ae]},fs.black=new fs(0,0,0,1),fs.white=new fs(1,1,1,1),fs.transparent=new fs(0,0,0,0),fs.red=new fs(1,0,0,1);var nf=function(y,I,U){y?this.sensitivity=I?"variant":"case":this.sensitivity=I?"accent":"base",this.locale=U,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};nf.prototype.compare=function(y,I){return this.collator.compare(y,I)},nf.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Vf=function(y,I,U,$,ae){this.text=y,this.image=I,this.scale=U,this.fontStack=$,this.textColor=ae},Jl=function(y){this.sections=y};Jl.fromString=function(y){return new Jl([new Vf(y,null,null,null,null)])},Jl.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(y){return y.text.length!==0||y.image&&y.image.name.length!==0})},Jl.factory=function(y){return y instanceof Jl?y:Jl.fromString(y)},Jl.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(y){return y.text}).join("")},Jl.prototype.serialize=function(){for(var y=["format"],I=0,U=this.sections;I=0&&m<=255&&typeof y=="number"&&y>=0&&y<=255&&typeof I=="number"&&I>=0&&I<=255)){var $=typeof U=="number"?[m,y,I,U]:[m,y,I];return"Invalid rgba value ["+$.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof U=="undefined"||typeof U=="number"&&U>=0&&U<=1?null:"Invalid rgba value ["+[m,y,I,U].join(", ")+"]: 'a' must be between 0 and 1."}function Fu(m){if(m===null)return!0;if(typeof m=="string")return!0;if(typeof m=="boolean")return!0;if(typeof m=="number")return!0;if(m instanceof fs)return!0;if(m instanceof nf)return!0;if(m instanceof Jl)return!0;if(m instanceof hl)return!0;if(Array.isArray(m)){for(var y=0,I=m;y2){var Oe=y[1];if(typeof Oe!="string"||!(Oe in uc)||Oe==="object")return I.error('The item type argument of "array" must be one of string, number, boolean',1);he=uc[Oe],U++}else he=Do;var rt;if(y.length>3){if(y[2]!==null&&(typeof y[2]!="number"||y[2]<0||y[2]!==Math.floor(y[2])))return I.error('The length argument to "array" must be a positive integer literal',2);rt=y[2],U++}$=Kl(he,rt)}else $=uc[ae];for(var gt=[];U1)&&I.push($)}}return I.concat(this.args.map(function(ae){return ae.serialize()}))};var Gu=function(y){this.type=ml,this.sections=y};Gu.parse=function(y,I){if(y.length<2)return I.error("Expected at least one argument.");var U=y[1];if(!Array.isArray(U)&&typeof U=="object")return I.error("First argument must be an image or text section.");for(var $=[],ae=!1,he=1;he<=y.length-1;++he){var Oe=y[he];if(ae&&typeof Oe=="object"&&!Array.isArray(Oe)){ae=!1;var rt=null;if(Oe["font-scale"]&&(rt=I.parse(Oe["font-scale"],1,aa),!rt))return null;var gt=null;if(Oe["text-font"]&&(gt=I.parse(Oe["text-font"],1,Kl(Oo)),!gt))return null;var Mt=null;if(Oe["text-color"]&&(Mt=I.parse(Oe["text-color"],1,Ol),!Mt))return null;var or=$[$.length-1];or.scale=rt,or.font=gt,or.textColor=Mt}else{var _r=I.parse(y[he],1,Do);if(!_r)return null;var vr=_r.type.kind;if(vr!=="string"&&vr!=="value"&&vr!=="null"&&vr!=="resolvedImage")return I.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");ae=!0,$.push({content:_r,scale:null,font:null,textColor:null})}}return new Gu($)},Gu.prototype.evaluate=function(y){var I=function(U){var $=U.content.evaluate(y);return Cs($)===Zc?new Vf("",$,null,null,null):new Vf(js($),null,U.scale?U.scale.evaluate(y):null,U.font?U.font.evaluate(y).join(","):null,U.textColor?U.textColor.evaluate(y):null)};return new Jl(this.sections.map(I))},Gu.prototype.eachChild=function(y){for(var I=0,U=this.sections;I-1),U},Bs.prototype.eachChild=function(y){y(this.input)},Bs.prototype.outputDefined=function(){return!1},Bs.prototype.serialize=function(){return["image",this.input.serialize()]};var ad={"to-boolean":qo,"to-color":Ol,"to-number":aa,"to-string":Oo},Po=function(y,I){this.type=y,this.args=I};Po.parse=function(y,I){if(y.length<2)return I.error("Expected at least one argument.");var U=y[0];if((U==="to-boolean"||U==="to-string")&&y.length!==2)return I.error("Expected one argument.");for(var $=ad[U],ae=[],he=1;he4?U="Invalid rbga value "+JSON.stringify(I)+": expected an array containing either three or four numeric values.":U=lc(I[0],I[1],I[2],I[3]),!U))return new fs(I[0]/255,I[1]/255,I[2]/255,I[3])}throw new gs(U||"Could not parse color from value '"+(typeof I=="string"?I:String(JSON.stringify(I)))+"'")}else if(this.type.kind==="number"){for(var rt=null,gt=0,Mt=this.args;gt=y[2]||m[1]<=y[1]||m[3]>=y[3])}function _h(m,y){var I=Ic(m[0]),U=mf(m[1]),$=Math.pow(2,y.z);return[Math.round(I*$*bl),Math.round(U*$*bl)]}function Qf(m,y,I){var U=m[0]-y[0],$=m[1]-y[1],ae=m[0]-I[0],he=m[1]-I[1];return U*he-ae*$===0&&U*ae<=0&&$*he<=0}function yf(m,y,I){return y[1]>m[1]!=I[1]>m[1]&&m[0]<(I[0]-y[0])*(m[1]-y[1])/(I[1]-y[1])+y[0]}function Yc(m,y){for(var I=!1,U=0,$=y.length;U<$;U++)for(var ae=y[U],he=0,Oe=ae.length;he0&&or<0||Mt<0&&or>0}function Hf(m,y,I,U){var $=[y[0]-m[0],y[1]-m[1]],ae=[U[0]-I[0],U[1]-I[1]];return th(ae,$)===0?!1:!!(ju(m,y,I,U)&&ju(I,U,m,y))}function cc(m,y,I){for(var U=0,$=I;U<$.length;U+=1)for(var ae=$[U],he=0;heI[2]){var $=U*.5,ae=m[0]-I[0]>$?-U:I[0]-m[0]>$?U:0;ae===0&&(ae=m[0]-I[2]>$?-U:I[2]-m[0]>$?U:0),m[0]+=ae}Gf(y,m)}function jf(m){m[0]=m[1]=1/0,m[2]=m[3]=-1/0}function Uh(m,y,I,U){for(var $=Math.pow(2,U.z)*bl,ae=[U.x*bl,U.y*bl],he=[],Oe=0,rt=m;Oe=0)return!1;var I=!0;return m.eachChild(function(U){I&&!Eu(U,y)&&(I=!1)}),I}var Dc=function(y,I){this.type=I.type,this.name=y,this.boundExpression=I};Dc.parse=function(y,I){if(y.length!==2||typeof y[1]!="string")return I.error("'var' expression requires exactly one string literal argument.");var U=y[1];return I.scope.has(U)?new Dc(U,I.scope.get(U)):I.error('Unknown variable "'+U+'". Make sure "'+U+'" has been bound in an enclosing "let" expression before using it.',1)},Dc.prototype.evaluate=function(y){return this.boundExpression.evaluate(y)},Dc.prototype.eachChild=function(){},Dc.prototype.outputDefined=function(){return!1},Dc.prototype.serialize=function(){return["var",this.name]};var ks=function(y,I,U,$,ae){I===void 0&&(I=[]),$===void 0&&($=new Hl),ae===void 0&&(ae=[]),this.registry=y,this.path=I,this.key=I.map(function(he){return"["+he+"]"}).join(""),this.scope=$,this.errors=ae,this.expectedType=U};ks.prototype.parse=function(y,I,U,$,ae){return ae===void 0&&(ae={}),I?this.concat(I,U,$)._parse(y,ae):this._parse(y,ae)},ks.prototype._parse=function(y,I){(y===null||typeof y=="string"||typeof y=="boolean"||typeof y=="number")&&(y=["literal",y]);function U(Mt,or,_r){return _r==="assert"?new xl(or,[Mt]):_r==="coerce"?new Po(or,[Mt]):Mt}if(Array.isArray(y)){if(y.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var $=y[0];if(typeof $!="string")return this.error("Expression name must be a string, but found "+typeof $+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var ae=this.registry[$];if(ae){var he=ae.parse(y,this);if(!he)return null;if(this.expectedType){var Oe=this.expectedType,rt=he.type;if((Oe.kind==="string"||Oe.kind==="number"||Oe.kind==="boolean"||Oe.kind==="object"||Oe.kind==="array")&&rt.kind==="value")he=U(he,Oe,I.typeAnnotation||"assert");else if((Oe.kind==="color"||Oe.kind==="formatted"||Oe.kind==="resolvedImage")&&(rt.kind==="value"||rt.kind==="string"))he=U(he,Oe,I.typeAnnotation||"coerce");else if(this.checkSubtype(Oe,rt))return null}if(!(he instanceof Go)&&he.type.kind!=="resolvedImage"&&bc(he)){var gt=new Yo;try{he=new Go(he.type,he.evaluate(gt))}catch(Mt){return this.error(Mt.message),null}}return he}return this.error('Unknown expression "'+$+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof y=="undefined"?this.error("'undefined' value invalid. Use null instead."):typeof y=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof y+" instead.")},ks.prototype.concat=function(y,I,U){var $=typeof y=="number"?this.path.concat(y):this.path,ae=U?this.scope.concat(U):this.scope;return new ks(this.registry,$,I||null,ae,this.errors)},ks.prototype.error=function(y){for(var I=[],U=arguments.length-1;U-- >0;)I[U]=arguments[U+1];var $=""+this.key+I.map(function(ae){return"["+ae+"]"}).join("");this.errors.push(new Us($,y))},ks.prototype.checkSubtype=function(y,I){var U=oc(y,I);return U&&this.error(U),U};function bc(m){if(m instanceof Dc)return bc(m.boundExpression);if(m instanceof Pa&&m.name==="error")return!1;if(m instanceof Hu)return!1;if(m instanceof Mu)return!1;var y=m instanceof Po||m instanceof xl,I=!0;return m.eachChild(function(U){y?I=I&&bc(U):I=I&&U instanceof Go}),I?ih(m)&&Eu(m,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function du(m,y){for(var I=m.length-1,U=0,$=I,ae=0,he,Oe;U<=$;)if(ae=Math.floor((U+$)/2),he=m[ae],Oe=m[ae+1],he<=y){if(ae===I||yy)$=ae-1;else throw new gs("Input is not a number.");return 0}var _u=function(y,I,U){this.type=y,this.input=I,this.labels=[],this.outputs=[];for(var $=0,ae=U;$=Oe)return I.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',gt);var or=I.parse(rt,Mt,ae);if(!or)return null;ae=ae||or.type,$.push([Oe,or])}return new _u(ae,U,$)},_u.prototype.evaluate=function(y){var I=this.labels,U=this.outputs;if(I.length===1)return U[0].evaluate(y);var $=this.input.evaluate(y);if($<=I[0])return U[0].evaluate(y);var ae=I.length;if($>=I[ae-1])return U[ae-1].evaluate(y);var he=du(I,$);return U[he].evaluate(y)},_u.prototype.eachChild=function(y){y(this.input);for(var I=0,U=this.outputs;I0&&y.push(this.labels[I]),y.push(this.outputs[I].serialize());return y};function al(m,y,I){return m*(1-I)+y*I}function nh(m,y,I){return new fs(al(m.r,y.r,I),al(m.g,y.g,I),al(m.b,y.b,I),al(m.a,y.a,I))}function bh(m,y,I){return m.map(function(U,$){return al(U,y[$],I)})}var zu=Object.freeze({__proto__:null,number:al,color:nh,array:bh}),Fc=.95047,wc=1,bd=1.08883,_f=4/29,Lf=6/29,Ou=3*Lf*Lf,xf=Lf*Lf*Lf,jl=Math.PI/180,lf=180/Math.PI;function Vh(m){return m>xf?Math.pow(m,1/3):m/Ou+_f}function Pf(m){return m>Lf?m*m*m:Ou*(m-_f)}function Ls(m){return 255*(m<=.0031308?12.92*m:1.055*Math.pow(m,1/2.4)-.055)}function vu(m){return m/=255,m<=.04045?m/12.92:Math.pow((m+.055)/1.055,2.4)}function Cu(m){var y=vu(m.r),I=vu(m.g),U=vu(m.b),$=Vh((.4124564*y+.3575761*I+.1804375*U)/Fc),ae=Vh((.2126729*y+.7151522*I+.072175*U)/wc),he=Vh((.0193339*y+.119192*I+.9503041*U)/bd);return{l:116*ae-16,a:500*($-ae),b:200*(ae-he),alpha:m.a}}function Wf(m){var y=(m.l+16)/116,I=isNaN(m.a)?y:y+m.a/500,U=isNaN(m.b)?y:y-m.b/200;return y=wc*Pf(y),I=Fc*Pf(I),U=bd*Pf(U),new fs(Ls(3.2404542*I-1.5371385*y-.4985314*U),Ls(-.969266*I+1.8760108*y+.041556*U),Ls(.0556434*I-.2040259*y+1.0572252*U),m.alpha)}function Vs(m,y,I){return{l:al(m.l,y.l,I),a:al(m.a,y.a,I),b:al(m.b,y.b,I),alpha:al(m.alpha,y.alpha,I)}}function bf(m){var y=Cu(m),I=y.l,U=y.a,$=y.b,ae=Math.atan2($,U)*lf;return{h:ae<0?ae+360:ae,c:Math.sqrt(U*U+$*$),l:I,alpha:m.a}}function zc(m){var y=m.h*jl,I=m.c,U=m.l;return Wf({l:U,a:Math.cos(y)*I,b:Math.sin(y)*I,alpha:m.alpha})}function Wu(m,y,I){var U=y-m;return m+I*(U>180||U<-180?U-360*Math.round(U/360):U)}function If(m,y,I){return{h:Wu(m.h,y.h,I),c:al(m.c,y.c,I),l:al(m.l,y.l,I),alpha:al(m.alpha,y.alpha,I)}}var Xu={forward:Cu,reverse:Wf,interpolate:Vs},uf={forward:bf,reverse:zc,interpolate:If},Xf=Object.freeze({__proto__:null,lab:Xu,hcl:uf}),Wl=function(y,I,U,$,ae){this.type=y,this.operator=I,this.interpolation=U,this.input=$,this.labels=[],this.outputs=[];for(var he=0,Oe=ae;he1}))return I.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);$={name:"cubic-bezier",controlPoints:rt}}else return I.error("Unknown interpolation type "+String($[0]),1,0);if(y.length-1<4)return I.error("Expected at least 4 arguments, but found only "+(y.length-1)+".");if((y.length-1)%2!==0)return I.error("Expected an even number of arguments.");if(ae=I.parse(ae,2,aa),!ae)return null;var gt=[],Mt=null;U==="interpolate-hcl"||U==="interpolate-lab"?Mt=Ol:I.expectedType&&I.expectedType.kind!=="value"&&(Mt=I.expectedType);for(var or=0;or=_r)return I.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Fr);var Gi=I.parse(vr,ai,Mt);if(!Gi)return null;Mt=Mt||Gi.type,gt.push([_r,Gi])}return Mt.kind!=="number"&&Mt.kind!=="color"&&!(Mt.kind==="array"&&Mt.itemType.kind==="number"&&typeof Mt.N=="number")?I.error("Type "+qs(Mt)+" is not interpolatable."):new Wl(Mt,U,$,ae,gt)},Wl.prototype.evaluate=function(y){var I=this.labels,U=this.outputs;if(I.length===1)return U[0].evaluate(y);var $=this.input.evaluate(y);if($<=I[0])return U[0].evaluate(y);var ae=I.length;if($>=I[ae-1])return U[ae-1].evaluate(y);var he=du(I,$),Oe=I[he],rt=I[he+1],gt=Wl.interpolationFactor(this.interpolation,$,Oe,rt),Mt=U[he].evaluate(y),or=U[he+1].evaluate(y);return this.operator==="interpolate"?zu[this.type.kind.toLowerCase()](Mt,or,gt):this.operator==="interpolate-hcl"?uf.reverse(uf.interpolate(uf.forward(Mt),uf.forward(or),gt)):Xu.reverse(Xu.interpolate(Xu.forward(Mt),Xu.forward(or),gt))},Wl.prototype.eachChild=function(y){y(this.input);for(var I=0,U=this.outputs;I=U.length)throw new gs("Array index out of bounds: "+I+" > "+(U.length-1)+".");if(I!==Math.floor(I))throw new gs("Array index must be an integer, but found "+I+" instead.");return U[I]},Tc.prototype.eachChild=function(y){y(this.index),y(this.input)},Tc.prototype.outputDefined=function(){return!1},Tc.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var wl=function(y,I){this.type=qo,this.needle=y,this.haystack=I};wl.parse=function(y,I){if(y.length!==3)return I.error("Expected 2 arguments, but found "+(y.length-1)+" instead.");var U=I.parse(y[1],1,Do),$=I.parse(y[2],2,Do);return!U||!$?null:Cf(U.type,[qo,Oo,aa,ac,Do])?new wl(U,$):I.error("Expected first argument to be of type boolean, string, number or null, but found "+qs(U.type)+" instead")},wl.prototype.evaluate=function(y){var I=this.needle.evaluate(y),U=this.haystack.evaluate(y);if(!U)return!1;if(!sc(I,["boolean","string","number","null"]))throw new gs("Expected first argument to be of type boolean, string, number or null, but found "+qs(Cs(I))+" instead.");if(!sc(U,["string","array"]))throw new gs("Expected second argument to be of type array or string, but found "+qs(Cs(U))+" instead.");return U.indexOf(I)>=0},wl.prototype.eachChild=function(y){y(this.needle),y(this.haystack)},wl.prototype.outputDefined=function(){return!0},wl.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var pu=function(y,I,U){this.type=aa,this.needle=y,this.haystack=I,this.fromIndex=U};pu.parse=function(y,I){if(y.length<=2||y.length>=5)return I.error("Expected 3 or 4 arguments, but found "+(y.length-1)+" instead.");var U=I.parse(y[1],1,Do),$=I.parse(y[2],2,Do);if(!U||!$)return null;if(!Cf(U.type,[qo,Oo,aa,ac,Do]))return I.error("Expected first argument to be of type boolean, string, number or null, but found "+qs(U.type)+" instead");if(y.length===4){var ae=I.parse(y[3],3,aa);return ae?new pu(U,$,ae):null}else return new pu(U,$)},pu.prototype.evaluate=function(y){var I=this.needle.evaluate(y),U=this.haystack.evaluate(y);if(!sc(I,["boolean","string","number","null"]))throw new gs("Expected first argument to be of type boolean, string, number or null, but found "+qs(Cs(I))+" instead.");if(!sc(U,["string","array"]))throw new gs("Expected second argument to be of type array or string, but found "+qs(Cs(U))+" instead.");if(this.fromIndex){var $=this.fromIndex.evaluate(y);return U.indexOf(I,$)}return U.indexOf(I)},pu.prototype.eachChild=function(y){y(this.needle),y(this.haystack),this.fromIndex&&y(this.fromIndex)},pu.prototype.outputDefined=function(){return!1},pu.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var y=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),y]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var qc=function(y,I,U,$,ae,he){this.inputType=y,this.type=I,this.input=U,this.cases=$,this.outputs=ae,this.otherwise=he};qc.parse=function(y,I){if(y.length<5)return I.error("Expected at least 4 arguments, but found only "+(y.length-1)+".");if(y.length%2!==1)return I.error("Expected an even number of arguments.");var U,$;I.expectedType&&I.expectedType.kind!=="value"&&($=I.expectedType);for(var ae={},he=[],Oe=2;OeNumber.MAX_SAFE_INTEGER)return Mt.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof vr=="number"&&Math.floor(vr)!==vr)return Mt.error("Numeric branch labels must be integer values.");if(!U)U=Cs(vr);else if(Mt.checkSubtype(U,Cs(vr)))return null;if(typeof ae[String(vr)]!="undefined")return Mt.error("Branch labels must be unique.");ae[String(vr)]=he.length}var Fr=I.parse(gt,Oe,$);if(!Fr)return null;$=$||Fr.type,he.push(Fr)}var ai=I.parse(y[1],1,Do);if(!ai)return null;var Gi=I.parse(y[y.length-1],y.length-1,$);return!Gi||ai.type.kind!=="value"&&I.concat(1).checkSubtype(U,ai.type)?null:new qc(U,$,ai,ae,he,Gi)},qc.prototype.evaluate=function(y){var I=this.input.evaluate(y),U=Cs(I)===this.inputType&&this.outputs[this.cases[I]]||this.otherwise;return U.evaluate(y)},qc.prototype.eachChild=function(y){y(this.input),this.outputs.forEach(y),y(this.otherwise)},qc.prototype.outputDefined=function(){return this.outputs.every(function(y){return y.outputDefined()})&&this.otherwise.outputDefined()},qc.prototype.serialize=function(){for(var y=this,I=["match",this.input.serialize()],U=Object.keys(this.cases).sort(),$=[],ae={},he=0,Oe=U;he=5)return I.error("Expected 3 or 4 arguments, but found "+(y.length-1)+" instead.");var U=I.parse(y[1],1,Do),$=I.parse(y[2],2,aa);if(!U||!$)return null;if(!Cf(U.type,[Kl(Do),Oo,Do]))return I.error("Expected first argument to be of type array or string, but found "+qs(U.type)+" instead");if(y.length===4){var ae=I.parse(y[3],3,aa);return ae?new fc(U.type,U,$,ae):null}else return new fc(U.type,U,$)},fc.prototype.evaluate=function(y){var I=this.input.evaluate(y),U=this.beginIndex.evaluate(y);if(!sc(I,["string","array"]))throw new gs("Expected first argument to be of type array or string, but found "+qs(Cs(I))+" instead.");if(this.endIndex){var $=this.endIndex.evaluate(y);return I.slice(U,$)}return I.slice(U)},fc.prototype.eachChild=function(y){y(this.input),y(this.beginIndex),this.endIndex&&y(this.endIndex)},fc.prototype.outputDefined=function(){return!1},fc.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var y=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),y]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function Bc(m,y){return m==="=="||m==="!="?y.kind==="boolean"||y.kind==="string"||y.kind==="number"||y.kind==="null"||y.kind==="value":y.kind==="string"||y.kind==="number"||y.kind==="value"}function At(m,y,I){return y===I}function Xt(m,y,I){return y!==I}function kr(m,y,I){return yI}function Kr(m,y,I){return y<=I}function Ei(m,y,I){return y>=I}function Wi(m,y,I,U){return U.compare(y,I)===0}function hn(m,y,I,U){return!Wi(m,y,I,U)}function Tn(m,y,I,U){return U.compare(y,I)<0}function Bn(m,y,I,U){return U.compare(y,I)>0}function Zi(m,y,I,U){return U.compare(y,I)<=0}function $i(m,y,I,U){return U.compare(y,I)>=0}function an(m,y,I){var U=m!=="=="&&m!=="!=";return function(){function $(ae,he,Oe){this.type=qo,this.lhs=ae,this.rhs=he,this.collator=Oe,this.hasUntypedArgument=ae.type.kind==="value"||he.type.kind==="value"}return $.parse=function(he,Oe){if(he.length!==3&&he.length!==4)return Oe.error("Expected two or three arguments.");var rt=he[0],gt=Oe.parse(he[1],1,Do);if(!gt)return null;if(!Bc(rt,gt.type))return Oe.concat(1).error('"'+rt+`" comparisons are not supported for type '`+qs(gt.type)+"'.");var Mt=Oe.parse(he[2],2,Do);if(!Mt)return null;if(!Bc(rt,Mt.type))return Oe.concat(2).error('"'+rt+`" comparisons are not supported for type '`+qs(Mt.type)+"'.");if(gt.type.kind!==Mt.type.kind&>.type.kind!=="value"&&Mt.type.kind!=="value")return Oe.error("Cannot compare types '"+qs(gt.type)+"' and '"+qs(Mt.type)+"'.");U&&(gt.type.kind==="value"&&Mt.type.kind!=="value"?gt=new xl(Mt.type,[gt]):gt.type.kind!=="value"&&Mt.type.kind==="value"&&(Mt=new xl(gt.type,[Mt])));var or=null;if(he.length===4){if(gt.type.kind!=="string"&&Mt.type.kind!=="string"&>.type.kind!=="value"&&Mt.type.kind!=="value")return Oe.error("Cannot use collator to compare non-string types.");if(or=Oe.parse(he[3],3,Uf),!or)return null}return new $(gt,Mt,or)},$.prototype.evaluate=function(he){var Oe=this.lhs.evaluate(he),rt=this.rhs.evaluate(he);if(U&&this.hasUntypedArgument){var gt=Cs(Oe),Mt=Cs(rt);if(gt.kind!==Mt.kind||!(gt.kind==="string"||gt.kind==="number"))throw new gs('Expected arguments for "'+m+'" to be (string, string) or (number, number), but found ('+gt.kind+", "+Mt.kind+") instead.")}if(this.collator&&!U&&this.hasUntypedArgument){var or=Cs(Oe),_r=Cs(rt);if(or.kind!=="string"||_r.kind!=="string")return y(he,Oe,rt)}return this.collator?I(he,Oe,rt,this.collator.evaluate(he)):y(he,Oe,rt)},$.prototype.eachChild=function(he){he(this.lhs),he(this.rhs),this.collator&&he(this.collator)},$.prototype.outputDefined=function(){return!0},$.prototype.serialize=function(){var he=[m];return this.eachChild(function(Oe){he.push(Oe.serialize())}),he},$}()}var Di=an("==",At,Wi),$n=an("!=",Xt,hn),ka=an("<",kr,Tn),Ra=an(">",Ar,Bn),La=an("<=",Kr,Zi),Na=an(">=",Ei,$i),Yn=function(y,I,U,$,ae){this.type=Oo,this.number=y,this.locale=I,this.currency=U,this.minFractionDigits=$,this.maxFractionDigits=ae};Yn.parse=function(y,I){if(y.length!==3)return I.error("Expected two arguments.");var U=I.parse(y[1],1,aa);if(!U)return null;var $=y[2];if(typeof $!="object"||Array.isArray($))return I.error("NumberFormat options argument must be an object.");var ae=null;if($.locale&&(ae=I.parse($.locale,1,Oo),!ae))return null;var he=null;if($.currency&&(he=I.parse($.currency,1,Oo),!he))return null;var Oe=null;if($["min-fraction-digits"]&&(Oe=I.parse($["min-fraction-digits"],1,aa),!Oe))return null;var rt=null;return $["max-fraction-digits"]&&(rt=I.parse($["max-fraction-digits"],1,aa),!rt)?null:new Yn(U,ae,he,Oe,rt)},Yn.prototype.evaluate=function(y){return new Intl.NumberFormat(this.locale?this.locale.evaluate(y):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(y):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(y):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(y):void 0}).format(this.number.evaluate(y))},Yn.prototype.eachChild=function(y){y(this.number),this.locale&&y(this.locale),this.currency&&y(this.currency),this.minFractionDigits&&y(this.minFractionDigits),this.maxFractionDigits&&y(this.maxFractionDigits)},Yn.prototype.outputDefined=function(){return!1},Yn.prototype.serialize=function(){var y={};return this.locale&&(y.locale=this.locale.serialize()),this.currency&&(y.currency=this.currency.serialize()),this.minFractionDigits&&(y["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(y["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),y]};var zn=function(y){this.type=aa,this.input=y};zn.parse=function(y,I){if(y.length!==2)return I.error("Expected 1 argument, but found "+(y.length-1)+" instead.");var U=I.parse(y[1],1);return U?U.type.kind!=="array"&&U.type.kind!=="string"&&U.type.kind!=="value"?I.error("Expected argument of type string or array, but found "+qs(U.type)+" instead."):new zn(U):null},zn.prototype.evaluate=function(y){var I=this.input.evaluate(y);if(typeof I=="string")return I.length;if(Array.isArray(I))return I.length;throw new gs("Expected value to be of type string or array, but found "+qs(Cs(I))+" instead.")},zn.prototype.eachChild=function(y){y(this.input)},zn.prototype.outputDefined=function(){return!1},zn.prototype.serialize=function(){var y=["length"];return this.eachChild(function(I){y.push(I.serialize())}),y};var Ka={"==":Di,"!=":$n,">":Ra,"<":ka,">=":Na,"<=":La,array:xl,at:Tc,boolean:xl,case:cf,coalesce:Zu,collator:Hu,format:Gu,image:Bs,in:wl,"index-of":pu,interpolate:Wl,"interpolate-hcl":Wl,"interpolate-lab":Wl,length:zn,let:Oc,literal:Go,match:qc,number:xl,"number-format":Yn,object:xl,slice:fc,step:_u,string:xl,"to-boolean":Po,"to-color":Po,"to-number":Po,"to-string":Po,var:Dc,within:Mu};function bo(m,y){var I=y[0],U=y[1],$=y[2],ae=y[3];I=I.evaluate(m),U=U.evaluate(m),$=$.evaluate(m);var he=ae?ae.evaluate(m):1,Oe=lc(I,U,$,he);if(Oe)throw new gs(Oe);return new fs(I/255*he,U/255*he,$/255*he,he)}function Xo(m,y){return m in y}function Ms(m,y){var I=y[m];return typeof I=="undefined"?null:I}function os(m,y,I,U){for(;I<=U;){var $=I+U>>1;if(y[$]===m)return!0;y[$]>m?U=$-1:I=$+1}return!1}function Ts(m){return{type:m}}Pa.register(Ka,{error:[rf,[Oo],function(m,y){var I=y[0];throw new gs(I.evaluate(m))}],typeof:[Oo,[Do],function(m,y){var I=y[0];return qs(Cs(I.evaluate(m)))}],"to-rgba":[Kl(aa,4),[Ol],function(m,y){var I=y[0];return I.evaluate(m).toArray()}],rgb:[Ol,[aa,aa,aa],bo],rgba:[Ol,[aa,aa,aa,aa],bo],has:{type:qo,overloads:[[[Oo],function(m,y){var I=y[0];return Xo(I.evaluate(m),m.properties())}],[[Oo,Pc],function(m,y){var I=y[0],U=y[1];return Xo(I.evaluate(m),U.evaluate(m))}]]},get:{type:Do,overloads:[[[Oo],function(m,y){var I=y[0];return Ms(I.evaluate(m),m.properties())}],[[Oo,Pc],function(m,y){var I=y[0],U=y[1];return Ms(I.evaluate(m),U.evaluate(m))}]]},"feature-state":[Do,[Oo],function(m,y){var I=y[0];return Ms(I.evaluate(m),m.featureState||{})}],properties:[Pc,[],function(m){return m.properties()}],"geometry-type":[Oo,[],function(m){return m.geometryType()}],id:[Do,[],function(m){return m.id()}],zoom:[aa,[],function(m){return m.globals.zoom}],"heatmap-density":[aa,[],function(m){return m.globals.heatmapDensity||0}],"line-progress":[aa,[],function(m){return m.globals.lineProgress||0}],accumulated:[Do,[],function(m){return m.globals.accumulated===void 0?null:m.globals.accumulated}],"+":[aa,Ts(aa),function(m,y){for(var I=0,U=0,$=y;U<$.length;U+=1){var ae=$[U];I+=ae.evaluate(m)}return I}],"*":[aa,Ts(aa),function(m,y){for(var I=1,U=0,$=y;U<$.length;U+=1){var ae=$[U];I*=ae.evaluate(m)}return I}],"-":{type:aa,overloads:[[[aa,aa],function(m,y){var I=y[0],U=y[1];return I.evaluate(m)-U.evaluate(m)}],[[aa],function(m,y){var I=y[0];return-I.evaluate(m)}]]},"/":[aa,[aa,aa],function(m,y){var I=y[0],U=y[1];return I.evaluate(m)/U.evaluate(m)}],"%":[aa,[aa,aa],function(m,y){var I=y[0],U=y[1];return I.evaluate(m)%U.evaluate(m)}],ln2:[aa,[],function(){return Math.LN2}],pi:[aa,[],function(){return Math.PI}],e:[aa,[],function(){return Math.E}],"^":[aa,[aa,aa],function(m,y){var I=y[0],U=y[1];return Math.pow(I.evaluate(m),U.evaluate(m))}],sqrt:[aa,[aa],function(m,y){var I=y[0];return Math.sqrt(I.evaluate(m))}],log10:[aa,[aa],function(m,y){var I=y[0];return Math.log(I.evaluate(m))/Math.LN10}],ln:[aa,[aa],function(m,y){var I=y[0];return Math.log(I.evaluate(m))}],log2:[aa,[aa],function(m,y){var I=y[0];return Math.log(I.evaluate(m))/Math.LN2}],sin:[aa,[aa],function(m,y){var I=y[0];return Math.sin(I.evaluate(m))}],cos:[aa,[aa],function(m,y){var I=y[0];return Math.cos(I.evaluate(m))}],tan:[aa,[aa],function(m,y){var I=y[0];return Math.tan(I.evaluate(m))}],asin:[aa,[aa],function(m,y){var I=y[0];return Math.asin(I.evaluate(m))}],acos:[aa,[aa],function(m,y){var I=y[0];return Math.acos(I.evaluate(m))}],atan:[aa,[aa],function(m,y){var I=y[0];return Math.atan(I.evaluate(m))}],min:[aa,Ts(aa),function(m,y){return Math.min.apply(Math,y.map(function(I){return I.evaluate(m)}))}],max:[aa,Ts(aa),function(m,y){return Math.max.apply(Math,y.map(function(I){return I.evaluate(m)}))}],abs:[aa,[aa],function(m,y){var I=y[0];return Math.abs(I.evaluate(m))}],round:[aa,[aa],function(m,y){var I=y[0],U=I.evaluate(m);return U<0?-Math.round(-U):Math.round(U)}],floor:[aa,[aa],function(m,y){var I=y[0];return Math.floor(I.evaluate(m))}],ceil:[aa,[aa],function(m,y){var I=y[0];return Math.ceil(I.evaluate(m))}],"filter-==":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1];return m.properties()[I.value]===U.value}],"filter-id-==":[qo,[Do],function(m,y){var I=y[0];return m.id()===I.value}],"filter-type-==":[qo,[Oo],function(m,y){var I=y[0];return m.geometryType()===I.value}],"filter-<":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1],$=m.properties()[I.value],ae=U.value;return typeof $==typeof ae&&$":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1],$=m.properties()[I.value],ae=U.value;return typeof $==typeof ae&&$>ae}],"filter-id->":[qo,[Do],function(m,y){var I=y[0],U=m.id(),$=I.value;return typeof U==typeof $&&U>$}],"filter-<=":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1],$=m.properties()[I.value],ae=U.value;return typeof $==typeof ae&&$<=ae}],"filter-id-<=":[qo,[Do],function(m,y){var I=y[0],U=m.id(),$=I.value;return typeof U==typeof $&&U<=$}],"filter->=":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1],$=m.properties()[I.value],ae=U.value;return typeof $==typeof ae&&$>=ae}],"filter-id->=":[qo,[Do],function(m,y){var I=y[0],U=m.id(),$=I.value;return typeof U==typeof $&&U>=$}],"filter-has":[qo,[Do],function(m,y){var I=y[0];return I.value in m.properties()}],"filter-has-id":[qo,[],function(m){return m.id()!==null&&m.id()!==void 0}],"filter-type-in":[qo,[Kl(Oo)],function(m,y){var I=y[0];return I.value.indexOf(m.geometryType())>=0}],"filter-id-in":[qo,[Kl(Do)],function(m,y){var I=y[0];return I.value.indexOf(m.id())>=0}],"filter-in-small":[qo,[Oo,Kl(Do)],function(m,y){var I=y[0],U=y[1];return U.value.indexOf(m.properties()[I.value])>=0}],"filter-in-large":[qo,[Oo,Kl(Do)],function(m,y){var I=y[0],U=y[1];return os(m.properties()[I.value],U.value,0,U.value.length-1)}],all:{type:qo,overloads:[[[qo,qo],function(m,y){var I=y[0],U=y[1];return I.evaluate(m)&&U.evaluate(m)}],[Ts(qo),function(m,y){for(var I=0,U=y;I-1}function va(m){return!!m.expression&&m.expression.interpolated}function no(m){return m instanceof Number?"number":m instanceof String?"string":m instanceof Boolean?"boolean":Array.isArray(m)?"array":m===null?"null":typeof m}function _s(m){return typeof m=="object"&&m!==null&&!Array.isArray(m)}function is(m){return m}function $l(m,y){var I=y.type==="color",U=m.stops&&typeof m.stops[0][0]=="object",$=U||m.property!==void 0,ae=U||!$,he=m.type||(va(y)?"exponential":"interval");if(I&&(m=zl({},m),m.stops&&(m.stops=m.stops.map(function(ha){return[ha[0],fs.parse(ha[1])]})),m.default?m.default=fs.parse(m.default):m.default=fs.parse(y.default)),m.colorSpace&&m.colorSpace!=="rgb"&&!Xf[m.colorSpace])throw new Error("Unknown color space: "+m.colorSpace);var Oe,rt,gt;if(he==="exponential")Oe=gu;else if(he==="interval")Oe=Nc;else if(he==="categorical"){Oe=Yu,rt=Object.create(null);for(var Mt=0,or=m.stops;Mt=m.stops[U-1][0])return m.stops[U-1][1];var $=du(m.stops.map(function(ae){return ae[0]}),I);return m.stops[$][1]}function gu(m,y,I){var U=m.base!==void 0?m.base:1;if(no(I)!=="number")return ku(m.default,y.default);var $=m.stops.length;if($===1||I<=m.stops[0][0])return m.stops[0][1];if(I>=m.stops[$-1][0])return m.stops[$-1][1];var ae=du(m.stops.map(function(or){return or[0]}),I),he=xu(I,U,m.stops[ae][0],m.stops[ae+1][0]),Oe=m.stops[ae][1],rt=m.stops[ae+1][1],gt=zu[y.type]||is;if(m.colorSpace&&m.colorSpace!=="rgb"){var Mt=Xf[m.colorSpace];gt=function(or,_r){return Mt.reverse(Mt.interpolate(Mt.forward(or),Mt.forward(_r),he))}}return typeof Oe.evaluate=="function"?{evaluate:function(){for(var _r=[],vr=arguments.length;vr--;)_r[vr]=arguments[vr];var Fr=Oe.evaluate.apply(void 0,_r),ai=rt.evaluate.apply(void 0,_r);if(!(Fr===void 0||ai===void 0))return gt(Fr,ai,he)}}:gt(Oe,rt,he)}function Uc(m,y,I){return y.type==="color"?I=fs.parse(I):y.type==="formatted"?I=Jl.fromString(I.toString()):y.type==="resolvedImage"?I=hl.fromString(I.toString()):no(I)!==y.type&&(y.type!=="enum"||!y.values[I])&&(I=void 0),ku(I,m.default,y.default)}function xu(m,y,I,U){var $=U-I,ae=m-I;return $===0?0:y===1?ae/$:(Math.pow(y,ae)-1)/(Math.pow(y,$)-1)}var Ac=function(y,I){this.expression=y,this._warningHistory={},this._evaluator=new Yo,this._defaultValue=I?ee(I):null,this._enumValues=I&&I.type==="enum"?I.values:null};Ac.prototype.evaluateWithoutErrorHandling=function(y,I,U,$,ae,he){return this._evaluator.globals=y,this._evaluator.feature=I,this._evaluator.featureState=U,this._evaluator.canonical=$,this._evaluator.availableImages=ae||null,this._evaluator.formattedSection=he,this.expression.evaluate(this._evaluator)},Ac.prototype.evaluate=function(y,I,U,$,ae,he){this._evaluator.globals=y,this._evaluator.feature=I||null,this._evaluator.featureState=U||null,this._evaluator.canonical=$,this._evaluator.availableImages=ae||null,this._evaluator.formattedSection=he||null;try{var Oe=this.expression.evaluate(this._evaluator);if(Oe==null||typeof Oe=="number"&&Oe!==Oe)return this._defaultValue;if(this._enumValues&&!(Oe in this._enumValues))throw new gs("Expected value to be one of "+Object.keys(this._enumValues).map(function(rt){return JSON.stringify(rt)}).join(", ")+", but found "+JSON.stringify(Oe)+" instead.");return Oe}catch(rt){return this._warningHistory[rt.message]||(this._warningHistory[rt.message]=!0,typeof console!="undefined"&&console.warn(rt.message)),this._defaultValue}};function Ua(m){return Array.isArray(m)&&m.length>0&&typeof m[0]=="string"&&m[0]in Ka}function oo(m,y){var I=new ks(Ka,[],y?Q(y):void 0),U=I.parse(m,void 0,void 0,void 0,y&&y.type==="string"?{typeAnnotation:"coerce"}:void 0);return U?Ho(new Ac(U,y)):yl(I.errors)}var Vc=function(y,I){this.kind=y,this._styleExpression=I,this.isStateDependent=y!=="constant"&&!Ws(I.expression)};Vc.prototype.evaluateWithoutErrorHandling=function(y,I,U,$,ae,he){return this._styleExpression.evaluateWithoutErrorHandling(y,I,U,$,ae,he)},Vc.prototype.evaluate=function(y,I,U,$,ae,he){return this._styleExpression.evaluate(y,I,U,$,ae,he)};var hc=function(y,I,U,$){this.kind=y,this.zoomStops=U,this._styleExpression=I,this.isStateDependent=y!=="camera"&&!Ws(I.expression),this.interpolationType=$};hc.prototype.evaluateWithoutErrorHandling=function(y,I,U,$,ae,he){return this._styleExpression.evaluateWithoutErrorHandling(y,I,U,$,ae,he)},hc.prototype.evaluate=function(y,I,U,$,ae,he){return this._styleExpression.evaluate(y,I,U,$,ae,he)},hc.prototype.interpolationFactor=function(y,I,U){return this.interpolationType?Wl.interpolationFactor(this.interpolationType,y,I,U):0};function Ku(m,y){if(m=oo(m,y),m.result==="error")return m;var I=m.value.expression,U=ih(I);if(!U&&!Xs(y))return yl([new Us("","data expressions not supported")]);var $=Eu(I,["zoom"]);if(!$&&!Ps(y))return yl([new Us("","zoom expressions not supported")]);var ae=B(I);if(!ae&&!$)return yl([new Us("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(ae instanceof Us)return yl([ae]);if(ae instanceof Wl&&!va(y))return yl([new Us("",'"interpolate" expressions cannot be used with this property')]);if(!ae)return Ho(U?new Vc("constant",m.value):new Vc("source",m.value));var he=ae instanceof Wl?ae.interpolation:void 0;return Ho(U?new hc("camera",m.value,ae.labels,he):new hc("composite",m.value,ae.labels,he))}var ue=function(y,I){this._parameters=y,this._specification=I,zl(this,$l(this._parameters,this._specification))};ue.deserialize=function(y){return new ue(y._parameters,y._specification)},ue.serialize=function(y){return{_parameters:y._parameters,_specification:y._specification}};function w(m,y){if(_s(m))return new ue(m,y);if(Ua(m)){var I=Ku(m,y);if(I.result==="error")throw new Error(I.value.map(function($){return $.key+": "+$.message}).join(", "));return I.value}else{var U=m;return typeof m=="string"&&y.type==="color"&&(U=fs.parse(m)),{kind:"constant",evaluate:function(){return U}}}}function B(m){var y=null;if(m instanceof Oc)y=B(m.result);else if(m instanceof Zu)for(var I=0,U=m.args;IU.maximum?[new _a(y,I,I+" is greater than the maximum value "+U.maximum)]:[]}function ot(m){var y=m.valueSpec,I=xo(m.value.type),U,$={},ae,he,Oe=I!=="categorical"&&m.value.property===void 0,rt=!Oe,gt=no(m.value.stops)==="array"&&no(m.value.stops[0])==="array"&&no(m.value.stops[0][0])==="object",Mt=le({key:m.key,value:m.value,valueSpec:m.styleSpec.function,style:m.style,styleSpec:m.styleSpec,objectElementValidators:{stops:or,default:Fr}});return I==="identity"&&Oe&&Mt.push(new _a(m.key,m.value,'missing required property "property"')),I!=="identity"&&!m.value.stops&&Mt.push(new _a(m.key,m.value,'missing required property "stops"')),I==="exponential"&&m.valueSpec.expression&&!va(m.valueSpec)&&Mt.push(new _a(m.key,m.value,"exponential functions not supported")),m.styleSpec.$version>=8&&(rt&&!Xs(m.valueSpec)?Mt.push(new _a(m.key,m.value,"property functions not supported")):Oe&&!Ps(m.valueSpec)&&Mt.push(new _a(m.key,m.value,"zoom functions not supported"))),(I==="categorical"||gt)&&m.value.property===void 0&&Mt.push(new _a(m.key,m.value,'"property" property is required')),Mt;function or(ai){if(I==="identity")return[new _a(ai.key,ai.value,'identity function may not have a "stops" property')];var Gi=[],Ti=ai.value;return Gi=Gi.concat(qe({key:ai.key,value:Ti,valueSpec:ai.valueSpec,style:ai.style,styleSpec:ai.styleSpec,arrayElementValidator:_r})),no(Ti)==="array"&&Ti.length===0&&Gi.push(new _a(ai.key,Ti,"array must have at least one stop")),Gi}function _r(ai){var Gi=[],Ti=ai.value,bn=ai.key;if(no(Ti)!=="array")return[new _a(bn,Ti,"array expected, "+no(Ti)+" found")];if(Ti.length!==2)return[new _a(bn,Ti,"array length 2 expected, length "+Ti.length+" found")];if(gt){if(no(Ti[0])!=="object")return[new _a(bn,Ti,"object expected, "+no(Ti[0])+" found")];if(Ti[0].zoom===void 0)return[new _a(bn,Ti,"object stop key must have zoom")];if(Ti[0].value===void 0)return[new _a(bn,Ti,"object stop key must have value")];if(he&&he>xo(Ti[0].zoom))return[new _a(bn,Ti[0].zoom,"stop zoom values must appear in ascending order")];xo(Ti[0].zoom)!==he&&(he=xo(Ti[0].zoom),ae=void 0,$={}),Gi=Gi.concat(le({key:bn+"[0]",value:Ti[0],valueSpec:{zoom:{}},style:ai.style,styleSpec:ai.styleSpec,objectElementValidators:{zoom:Xe,value:vr}}))}else Gi=Gi.concat(vr({key:bn+"[0]",value:Ti[0],valueSpec:{},style:ai.style,styleSpec:ai.styleSpec},Ti));return Ua(Yl(Ti[1]))?Gi.concat([new _a(bn+"[1]",Ti[1],"expressions are not allowed in function stops.")]):Gi.concat(Qa({key:bn+"[1]",value:Ti[1],valueSpec:y,style:ai.style,styleSpec:ai.styleSpec}))}function vr(ai,Gi){var Ti=no(ai.value),bn=xo(ai.value),rn=ai.value!==null?ai.value:Gi;if(!U)U=Ti;else if(Ti!==U)return[new _a(ai.key,rn,Ti+" stop domain type must match previous stop domain type "+U)];if(Ti!=="number"&&Ti!=="string"&&Ti!=="boolean")return[new _a(ai.key,rn,"stop domain value must be a number, string, or boolean")];if(Ti!=="number"&&I!=="categorical"){var xn="number expected, "+Ti+" found";return Xs(y)&&I===void 0&&(xn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new _a(ai.key,rn,xn)]}return I==="categorical"&&Ti==="number"&&(!isFinite(bn)||Math.floor(bn)!==bn)?[new _a(ai.key,rn,"integer expected, found "+bn)]:I!=="categorical"&&Ti==="number"&&ae!==void 0&&bn=2&&m[1]!=="$id"&&m[1]!=="$type";case"in":return m.length>=3&&(typeof m[1]!="string"||Array.isArray(m[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return m.length!==3||Array.isArray(m[1])||Array.isArray(m[2]);case"any":case"all":for(var y=0,I=m.slice(1);yy?1:0}function Be(m){if(!Array.isArray(m))return!1;if(m[0]==="within")return!0;for(var y=1;y"||y==="<="||y===">="?We(m[1],m[2],y):y==="any"?it(m.slice(1)):y==="all"?["all"].concat(m.slice(1).map(tt)):y==="none"?["all"].concat(m.slice(1).map(tt).map(rr)):y==="in"?Dt(m[1],m.slice(2)):y==="!in"?rr(Dt(m[1],m.slice(2))):y==="has"?Ht(m[1]):y==="!has"?rr(Ht(m[1])):y==="within"?m:!0;return I}function We(m,y,I){switch(m){case"$type":return["filter-type-"+I,y];case"$id":return["filter-id-"+I,y];default:return["filter-"+I,m,y]}}function it(m){return["any"].concat(m.map(tt))}function Dt(m,y){if(y.length===0)return!1;switch(m){case"$type":return["filter-type-in",["literal",y]];case"$id":return["filter-id-in",["literal",y]];default:return y.length>200&&!y.some(function(I){return typeof I!=typeof y[0]})?["filter-in-large",m,["literal",y.sort(Re)]]:["filter-in-small",m,["literal",y]]}}function Ht(m){switch(m){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",m]}}function rr(m){return["!",m]}function dr(m){return Pr(Yl(m.value))?Tt(zl({},m,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Sr(m)}function Sr(m){var y=m.value,I=m.key;if(no(y)!=="array")return[new _a(I,y,"array expected, "+no(y)+" found")];var U=m.styleSpec,$,ae=[];if(y.length<1)return[new _a(I,y,"filter array must have at least 1 element")];switch(ae=ae.concat(xr({key:I+"[0]",value:y[0],valueSpec:U.filter_operator,style:m.style,styleSpec:m.styleSpec})),xo(y[0])){case"<":case"<=":case">":case">=":y.length>=2&&xo(y[1])==="$type"&&ae.push(new _a(I,y,'"$type" cannot be use with operator "'+y[0]+'"'));case"==":case"!=":y.length!==3&&ae.push(new _a(I,y,'filter array for operator "'+y[0]+'" must have 3 elements'));case"in":case"!in":y.length>=2&&($=no(y[1]),$!=="string"&&ae.push(new _a(I+"[1]",y[1],"string expected, "+$+" found")));for(var he=2;he=Mt[vr+0]&&U>=Mt[vr+1])?(he[_r]=!0,ae.push(gt[_r])):he[_r]=!1}}},Ql.prototype._forEachCell=function(m,y,I,U,$,ae,he,Oe){for(var rt=this._convertToCellCoord(m),gt=this._convertToCellCoord(y),Mt=this._convertToCellCoord(I),or=this._convertToCellCoord(U),_r=rt;_r<=Mt;_r++)for(var vr=gt;vr<=or;vr++){var Fr=this.d*vr+_r;if(!(Oe&&!Oe(this._convertFromCellCoord(_r),this._convertFromCellCoord(vr),this._convertFromCellCoord(_r+1),this._convertFromCellCoord(vr+1)))&&$.call(this,m,y,I,U,Fr,ae,he,Oe))return}},Ql.prototype._convertFromCellCoord=function(m){return(m-this.padding)/this.scale},Ql.prototype._convertToCellCoord=function(m){return Math.max(0,Math.min(this.d-1,Math.floor(m*this.scale)+this.padding))},Ql.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var m=this.cells,y=$s+this.cells.length+1+1,I=0,U=0;U=0)){var or=m[Mt];gt[Mt]=Al[rt].shallow.indexOf(Mt)>=0?or:He(or,y)}m instanceof Error&&(gt.message=m.message)}if(gt.$name)throw new Error("$name property is reserved for worker serialization logic.");return rt!=="Object"&&(gt.$name=rt),gt}throw new Error("can't serialize object of type "+typeof m)}function Ze(m){if(m==null||typeof m=="boolean"||typeof m=="number"||typeof m=="string"||m instanceof Boolean||m instanceof Number||m instanceof String||m instanceof Date||m instanceof RegExp||Te(m)||Ne(m)||ArrayBuffer.isView(m)||m instanceof dc)return m;if(Array.isArray(m))return m.map(Ze);if(typeof m=="object"){var y=m.$name||"Object",I=Al[y],U=I.klass;if(!U)throw new Error("can't deserialize unregistered class "+y);if(U.deserialize)return U.deserialize(m);for(var $=Object.create(U.prototype),ae=0,he=Object.keys(m);ae=0?rt:Ze(rt)}}return $}throw new Error("can't deserialize object of type "+typeof m)}var Ct=function(){this.first=!0};Ct.prototype.update=function(y,I){var U=Math.floor(y);return this.first?(this.first=!1,this.lastIntegerZoom=U,this.lastIntegerZoomTime=0,this.lastZoom=y,this.lastFloorZoom=U,!0):(this.lastFloorZoom>U?(this.lastIntegerZoom=U+1,this.lastIntegerZoomTime=I):this.lastFloorZoom=128&&m<=255},Arabic:function(m){return m>=1536&&m<=1791},"Arabic Supplement":function(m){return m>=1872&&m<=1919},"Arabic Extended-A":function(m){return m>=2208&&m<=2303},"Hangul Jamo":function(m){return m>=4352&&m<=4607},"Unified Canadian Aboriginal Syllabics":function(m){return m>=5120&&m<=5759},Khmer:function(m){return m>=6016&&m<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(m){return m>=6320&&m<=6399},"General Punctuation":function(m){return m>=8192&&m<=8303},"Letterlike Symbols":function(m){return m>=8448&&m<=8527},"Number Forms":function(m){return m>=8528&&m<=8591},"Miscellaneous Technical":function(m){return m>=8960&&m<=9215},"Control Pictures":function(m){return m>=9216&&m<=9279},"Optical Character Recognition":function(m){return m>=9280&&m<=9311},"Enclosed Alphanumerics":function(m){return m>=9312&&m<=9471},"Geometric Shapes":function(m){return m>=9632&&m<=9727},"Miscellaneous Symbols":function(m){return m>=9728&&m<=9983},"Miscellaneous Symbols and Arrows":function(m){return m>=11008&&m<=11263},"CJK Radicals Supplement":function(m){return m>=11904&&m<=12031},"Kangxi Radicals":function(m){return m>=12032&&m<=12255},"Ideographic Description Characters":function(m){return m>=12272&&m<=12287},"CJK Symbols and Punctuation":function(m){return m>=12288&&m<=12351},Hiragana:function(m){return m>=12352&&m<=12447},Katakana:function(m){return m>=12448&&m<=12543},Bopomofo:function(m){return m>=12544&&m<=12591},"Hangul Compatibility Jamo":function(m){return m>=12592&&m<=12687},Kanbun:function(m){return m>=12688&&m<=12703},"Bopomofo Extended":function(m){return m>=12704&&m<=12735},"CJK Strokes":function(m){return m>=12736&&m<=12783},"Katakana Phonetic Extensions":function(m){return m>=12784&&m<=12799},"Enclosed CJK Letters and Months":function(m){return m>=12800&&m<=13055},"CJK Compatibility":function(m){return m>=13056&&m<=13311},"CJK Unified Ideographs Extension A":function(m){return m>=13312&&m<=19903},"Yijing Hexagram Symbols":function(m){return m>=19904&&m<=19967},"CJK Unified Ideographs":function(m){return m>=19968&&m<=40959},"Yi Syllables":function(m){return m>=40960&&m<=42127},"Yi Radicals":function(m){return m>=42128&&m<=42191},"Hangul Jamo Extended-A":function(m){return m>=43360&&m<=43391},"Hangul Syllables":function(m){return m>=44032&&m<=55215},"Hangul Jamo Extended-B":function(m){return m>=55216&&m<=55295},"Private Use Area":function(m){return m>=57344&&m<=63743},"CJK Compatibility Ideographs":function(m){return m>=63744&&m<=64255},"Arabic Presentation Forms-A":function(m){return m>=64336&&m<=65023},"Vertical Forms":function(m){return m>=65040&&m<=65055},"CJK Compatibility Forms":function(m){return m>=65072&&m<=65103},"Small Form Variants":function(m){return m>=65104&&m<=65135},"Arabic Presentation Forms-B":function(m){return m>=65136&&m<=65279},"Halfwidth and Fullwidth Forms":function(m){return m>=65280&&m<=65519}};function jt(m){for(var y=0,I=m;y=65097&&m<=65103)||nt["CJK Compatibility Ideographs"](m)||nt["CJK Compatibility"](m)||nt["CJK Radicals Supplement"](m)||nt["CJK Strokes"](m)||nt["CJK Symbols and Punctuation"](m)&&!(m>=12296&&m<=12305)&&!(m>=12308&&m<=12319)&&m!==12336||nt["CJK Unified Ideographs Extension A"](m)||nt["CJK Unified Ideographs"](m)||nt["Enclosed CJK Letters and Months"](m)||nt["Hangul Compatibility Jamo"](m)||nt["Hangul Jamo Extended-A"](m)||nt["Hangul Jamo Extended-B"](m)||nt["Hangul Jamo"](m)||nt["Hangul Syllables"](m)||nt.Hiragana(m)||nt["Ideographic Description Characters"](m)||nt.Kanbun(m)||nt["Kangxi Radicals"](m)||nt["Katakana Phonetic Extensions"](m)||nt.Katakana(m)&&m!==12540||nt["Halfwidth and Fullwidth Forms"](m)&&m!==65288&&m!==65289&&m!==65293&&!(m>=65306&&m<=65310)&&m!==65339&&m!==65341&&m!==65343&&!(m>=65371&&m<=65503)&&m!==65507&&!(m>=65512&&m<=65519)||nt["Small Form Variants"](m)&&!(m>=65112&&m<=65118)&&!(m>=65123&&m<=65126)||nt["Unified Canadian Aboriginal Syllabics"](m)||nt["Unified Canadian Aboriginal Syllabics Extended"](m)||nt["Vertical Forms"](m)||nt["Yijing Hexagram Symbols"](m)||nt["Yi Syllables"](m)||nt["Yi Radicals"](m))}function _i(m){return!!(nt["Latin-1 Supplement"](m)&&(m===167||m===169||m===174||m===177||m===188||m===189||m===190||m===215||m===247)||nt["General Punctuation"](m)&&(m===8214||m===8224||m===8225||m===8240||m===8241||m===8251||m===8252||m===8258||m===8263||m===8264||m===8265||m===8273)||nt["Letterlike Symbols"](m)||nt["Number Forms"](m)||nt["Miscellaneous Technical"](m)&&(m>=8960&&m<=8967||m>=8972&&m<=8991||m>=8996&&m<=9e3||m===9003||m>=9085&&m<=9114||m>=9150&&m<=9165||m===9167||m>=9169&&m<=9179||m>=9186&&m<=9215)||nt["Control Pictures"](m)&&m!==9251||nt["Optical Character Recognition"](m)||nt["Enclosed Alphanumerics"](m)||nt["Geometric Shapes"](m)||nt["Miscellaneous Symbols"](m)&&!(m>=9754&&m<=9759)||nt["Miscellaneous Symbols and Arrows"](m)&&(m>=11026&&m<=11055||m>=11088&&m<=11097||m>=11192&&m<=11243)||nt["CJK Symbols and Punctuation"](m)||nt.Katakana(m)||nt["Private Use Area"](m)||nt["CJK Compatibility Forms"](m)||nt["Small Form Variants"](m)||nt["Halfwidth and Fullwidth Forms"](m)||m===8734||m===8756||m===8757||m>=9984&&m<=10087||m>=10102&&m<=10131||m===65532||m===65533)}function bi(m){return!(qr(m)||_i(m))}function Xr(m){return nt.Arabic(m)||nt["Arabic Supplement"](m)||nt["Arabic Extended-A"](m)||nt["Arabic Presentation Forms-A"](m)||nt["Arabic Presentation Forms-B"](m)}function ni(m){return m>=1424&&m<=2303||nt["Arabic Presentation Forms-A"](m)||nt["Arabic Presentation Forms-B"](m)}function gi(m,y){return!(!y&&ni(m)||m>=2304&&m<=3583||m>=3840&&m<=4255||nt.Khmer(m))}function Pi(m){for(var y=0,I=m;y-1&&(Cn=ti.error),Rn&&Rn(m)};function Ea(){Ia.fire(new Wo("pluginStateChange",{pluginStatus:Cn,pluginURL:Nn}))}var Ia=new Wn,yo=function(){return Cn},Da=function(m){return m({pluginStatus:Cn,pluginURL:Nn}),Ia.on("pluginStateChange",m),m},go=function(m,y,I){if(I===void 0&&(I=!1),Cn===ti.deferred||Cn===ti.loading||Cn===ti.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");Nn=ct.resolveURL(m),Cn=ti.deferred,Rn=y,Ea(),I||Rs()},Rs=function(){if(Cn!==ti.deferred||!Nn)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Cn=ti.loading,Ea(),Nn&&ri({url:Nn},function(m){m?ia(m):(Cn=ti.loaded,Ea())})},Es={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Cn===ti.loaded||Es.applyArabicShaping!=null},isLoading:function(){return Cn===ti.loading},setState:function(y){Cn=y.pluginStatus,Nn=y.pluginURL},isParsed:function(){return Es.applyArabicShaping!=null&&Es.processBidirectionalText!=null&&Es.processStyledBidirectionalText!=null},getPluginURL:function(){return Nn}},Zs=function(){!Es.isLoading()&&!Es.isLoaded()&&yo()==="deferred"&&Rs()},Gn=function(y,I){this.zoom=y,I?(this.now=I.now,this.fadeDuration=I.fadeDuration,this.zoomHistory=I.zoomHistory,this.transition=I.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Ct,this.transition={})};Gn.prototype.isSupportedScript=function(y){return Ai(y,Es.isLoaded())},Gn.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Gn.prototype.getCrossfadeParameters=function(){var y=this.zoom,I=y-Math.floor(y),U=this.crossFadingFactor();return y>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:I+(1-I)*U}:{fromScale:.5,toScale:1,t:1-(1-U)*I}};var Ha=function(y,I){this.property=y,this.value=I,this.expression=w(I===void 0?y.specification.default:I,y.specification)};Ha.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Ha.prototype.possiblyEvaluate=function(y,I,U){return this.property.possiblyEvaluate(this,y,I,U)};var Fo=function(y){this.property=y,this.value=new Ha(y,void 0)};Fo.prototype.transitioned=function(y,I){return new Qs(this.property,this.value,I,x({},y.transition,this.transition),y.now)},Fo.prototype.untransitioned=function(){return new Qs(this.property,this.value,null,{},0)};var Uo=function(y){this._properties=y,this._values=Object.create(y.defaultTransitionablePropertyValues)};Uo.prototype.getValue=function(y){return H(this._values[y].value.value)},Uo.prototype.setValue=function(y,I){this._values.hasOwnProperty(y)||(this._values[y]=new Fo(this._values[y].property)),this._values[y].value=new Ha(this._values[y].property,I===null?void 0:H(I))},Uo.prototype.getTransition=function(y){return H(this._values[y].transition)},Uo.prototype.setTransition=function(y,I){this._values.hasOwnProperty(y)||(this._values[y]=new Fo(this._values[y].property)),this._values[y].transition=H(I)||void 0},Uo.prototype.serialize=function(){for(var y={},I=0,U=Object.keys(this._values);Ithis.end)return this.prior=null,ae;if(this.value.isDataDriven())return this.prior=null,ae;if($he.zoomHistory.lastIntegerZoom?{from:U,to:$}:{from:ae,to:$}},y.prototype.interpolate=function(U){return U},y}(xt),Ir=function(y){this.specification=y};Ir.prototype.possiblyEvaluate=function(y,I,U,$){if(y.value!==void 0)if(y.expression.kind==="constant"){var ae=y.expression.evaluate(I,null,{},U,$);return this._calculate(ae,ae,ae,I)}else return this._calculate(y.expression.evaluate(new Gn(Math.floor(I.zoom-1),I)),y.expression.evaluate(new Gn(Math.floor(I.zoom),I)),y.expression.evaluate(new Gn(Math.floor(I.zoom+1),I)),I)},Ir.prototype._calculate=function(y,I,U,$){var ae=$.zoom;return ae>$.zoomHistory.lastIntegerZoom?{from:y,to:I}:{from:U,to:I}},Ir.prototype.interpolate=function(y){return y};var Hr=function(y){this.specification=y};Hr.prototype.possiblyEvaluate=function(y,I,U,$){return!!y.expression.evaluate(I,null,{},U,$)},Hr.prototype.interpolate=function(){return!1};var Br=function(y){this.properties=y,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var I in y){var U=y[I];U.specification.overridable&&this.overridableProperties.push(I);var $=this.defaultPropertyValues[I]=new Ha(U,void 0),ae=this.defaultTransitionablePropertyValues[I]=new Fo(U);this.defaultTransitioningPropertyValues[I]=ae.untransitioned(),this.defaultPossiblyEvaluatedValues[I]=$.possiblyEvaluate({})}};X("DataDrivenProperty",xt),X("DataConstantProperty",Ee),X("CrossFadedDataDrivenProperty",zt),X("CrossFadedProperty",Ir),X("ColorRampProperty",Hr);var Vr="-transition",mi=function(m){function y(I,U){if(m.call(this),this.id=I.id,this.type=I.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},I.type!=="custom"&&(I=I,this.metadata=I.metadata,this.minzoom=I.minzoom,this.maxzoom=I.maxzoom,I.type!=="background"&&(this.source=I.source,this.sourceLayer=I["source-layer"],this.filter=I.filter),U.layout&&(this._unevaluatedLayout=new bu(U.layout)),U.paint)){this._transitionablePaint=new Uo(U.paint);for(var $ in I.paint)this.setPaintProperty($,I.paint[$],{validate:!1});for(var ae in I.layout)this.setLayoutProperty(ae,I.layout[ae],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Sc(U.paint)}}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},y.prototype.getLayoutProperty=function(U){return U==="visibility"?this.visibility:this._unevaluatedLayout.getValue(U)},y.prototype.setLayoutProperty=function(U,$,ae){if(ae===void 0&&(ae={}),$!=null){var he="layers."+this.id+".layout."+U;if(this._validate(Nl,he,U,$,ae))return}if(U==="visibility"){this.visibility=$;return}this._unevaluatedLayout.setValue(U,$)},y.prototype.getPaintProperty=function(U){return V(U,Vr)?this._transitionablePaint.getTransition(U.slice(0,-Vr.length)):this._transitionablePaint.getValue(U)},y.prototype.setPaintProperty=function(U,$,ae){if(ae===void 0&&(ae={}),$!=null){var he="layers."+this.id+".paint."+U;if(this._validate(dl,he,U,$,ae))return!1}if(V(U,Vr))return this._transitionablePaint.setTransition(U.slice(0,-Vr.length),$||void 0),!1;var Oe=this._transitionablePaint._values[U],rt=Oe.property.specification["property-type"]==="cross-faded-data-driven",gt=Oe.value.isDataDriven(),Mt=Oe.value;this._transitionablePaint.setValue(U,$),this._handleSpecialPaintPropertyUpdate(U);var or=this._transitionablePaint._values[U].value,_r=or.isDataDriven();return _r||gt||rt||this._handleOverridablePaintPropertyUpdate(U,Mt,or)},y.prototype._handleSpecialPaintPropertyUpdate=function(U){},y.prototype._handleOverridablePaintPropertyUpdate=function(U,$,ae){return!1},y.prototype.isHidden=function(U){return this.minzoom&&U=this.maxzoom?!0:this.visibility==="none"},y.prototype.updateTransitions=function(U){this._transitioningPaint=this._transitionablePaint.transitioned(U,this._transitioningPaint)},y.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},y.prototype.recalculate=function(U,$){U.getCrossfadeParameters&&(this._crossfadeParameters=U.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(U,void 0,$)),this.paint=this._transitioningPaint.possiblyEvaluate(U,void 0,$)},y.prototype.serialize=function(){var U={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(U.layout=U.layout||{},U.layout.visibility=this.visibility),Z(U,function($,ae){return $!==void 0&&!(ae==="layout"&&!Object.keys($).length)&&!(ae==="paint"&&!Object.keys($).length)})},y.prototype._validate=function(U,$,ae,he,Oe){return Oe===void 0&&(Oe={}),Oe&&Oe.validate===!1?!1:Lu(this,U.call(wo,{key:$,layerType:this.type,objectKey:ae,value:he,styleSpec:Fn,style:{glyphs:!0,sprite:!0}}))},y.prototype.is3D=function(){return!1},y.prototype.isTileClipped=function(){return!1},y.prototype.hasOffscreenPass=function(){return!1},y.prototype.resize=function(){},y.prototype.isStateDependent=function(){for(var U in this.paint._values){var $=this.paint.get(U);if(!(!($ instanceof vl)||!Xs($.property.specification))&&($.value.kind==="source"||$.value.kind==="composite")&&$.value.isStateDependent)return!0}return!1},y}(Wn),Ni={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Oi=function(y,I){this._structArray=y,this._pos1=I*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Mi=128,Hn=5,Qi=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};Qi.serialize=function(y,I){return y._trim(),I&&(y.isTransferred=!0,I.push(y.arrayBuffer)),{length:y.length,arrayBuffer:y.arrayBuffer}},Qi.deserialize=function(y){var I=Object.create(this.prototype);return I.arrayBuffer=y.arrayBuffer,I.length=y.length,I.capacity=y.arrayBuffer.byteLength/I.bytesPerElement,I._refreshViews(),I},Qi.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Qi.prototype.clear=function(){this.length=0},Qi.prototype.resize=function(y){this.reserve(y),this.length=y},Qi.prototype.reserve=function(y){if(y>this.capacity){this.capacity=Math.max(y,Math.floor(this.capacity*Hn),Mi),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var I=this.uint8;this._refreshViews(),I&&this.uint8.set(I)}},Qi.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function ji(m,y){y===void 0&&(y=1);var I=0,U=0,$=m.map(function(he){var Oe=si(he.type),rt=I=Mr(I,Math.max(y,Oe)),gt=he.components||1;return U=Math.max(U,Oe),I+=Oe*gt,{name:he.name,type:he.type,components:gt,offset:rt}}),ae=Mr(I,Math.max(U,y));return{members:$,size:ae,alignment:y}}function si(m){return Ni[m].BYTES_PER_ELEMENT}function Mr(m,y){return Math.ceil(m/y)*y}var Yr=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$){var ae=this.length;return this.resize(ae+1),this.emplace(ae,U,$)},y.prototype.emplace=function(U,$,ae){var he=U*2;return this.int16[he+0]=$,this.int16[he+1]=ae,U},y}(Qi);Yr.prototype.bytesPerElement=4,X("StructArrayLayout2i4",Yr);var xi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he){var Oe=this.length;return this.resize(Oe+1),this.emplace(Oe,U,$,ae,he)},y.prototype.emplace=function(U,$,ae,he,Oe){var rt=U*4;return this.int16[rt+0]=$,this.int16[rt+1]=ae,this.int16[rt+2]=he,this.int16[rt+3]=Oe,U},y}(Qi);xi.prototype.bytesPerElement=8,X("StructArrayLayout4i8",xi);var Ii=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt){var gt=this.length;return this.resize(gt+1),this.emplace(gt,U,$,ae,he,Oe,rt)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt){var Mt=U*6;return this.int16[Mt+0]=$,this.int16[Mt+1]=ae,this.int16[Mt+2]=he,this.int16[Mt+3]=Oe,this.int16[Mt+4]=rt,this.int16[Mt+5]=gt,U},y}(Qi);Ii.prototype.bytesPerElement=12,X("StructArrayLayout2i4i12",Ii);var ci=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt){var gt=this.length;return this.resize(gt+1),this.emplace(gt,U,$,ae,he,Oe,rt)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt){var Mt=U*4,or=U*8;return this.int16[Mt+0]=$,this.int16[Mt+1]=ae,this.uint8[or+4]=he,this.uint8[or+5]=Oe,this.uint8[or+6]=rt,this.uint8[or+7]=gt,U},y}(Qi);ci.prototype.bytesPerElement=8,X("StructArrayLayout2i4ub8",ci);var nn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$){var ae=this.length;return this.resize(ae+1),this.emplace(ae,U,$)},y.prototype.emplace=function(U,$,ae){var he=U*2;return this.float32[he+0]=$,this.float32[he+1]=ae,U},y}(Qi);nn.prototype.bytesPerElement=8,X("StructArrayLayout2f8",nn);var Xi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r){var vr=this.length;return this.resize(vr+1),this.emplace(vr,U,$,ae,he,Oe,rt,gt,Mt,or,_r)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr){var Fr=U*10;return this.uint16[Fr+0]=$,this.uint16[Fr+1]=ae,this.uint16[Fr+2]=he,this.uint16[Fr+3]=Oe,this.uint16[Fr+4]=rt,this.uint16[Fr+5]=gt,this.uint16[Fr+6]=Mt,this.uint16[Fr+7]=or,this.uint16[Fr+8]=_r,this.uint16[Fr+9]=vr,U},y}(Qi);Xi.prototype.bytesPerElement=20,X("StructArrayLayout10ui20",Xi);var qn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr){var ai=this.length;return this.resize(ai+1),this.emplace(ai,U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai){var Gi=U*12;return this.int16[Gi+0]=$,this.int16[Gi+1]=ae,this.int16[Gi+2]=he,this.int16[Gi+3]=Oe,this.uint16[Gi+4]=rt,this.uint16[Gi+5]=gt,this.uint16[Gi+6]=Mt,this.uint16[Gi+7]=or,this.int16[Gi+8]=_r,this.int16[Gi+9]=vr,this.int16[Gi+10]=Fr,this.int16[Gi+11]=ai,U},y}(Qi);qn.prototype.bytesPerElement=24,X("StructArrayLayout4i4ui4i24",qn);var vi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,ae)},y.prototype.emplace=function(U,$,ae,he){var Oe=U*3;return this.float32[Oe+0]=$,this.float32[Oe+1]=ae,this.float32[Oe+2]=he,U},y}(Qi);vi.prototype.bytesPerElement=12,X("StructArrayLayout3f12",vi);var li=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U){var $=this.length;return this.resize($+1),this.emplace($,U)},y.prototype.emplace=function(U,$){var ae=U*1;return this.uint32[ae+0]=$,U},y}(Qi);li.prototype.bytesPerElement=4,X("StructArrayLayout1ul4",li);var mn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,gt,Mt,or){var _r=this.length;return this.resize(_r+1),this.emplace(_r,U,$,ae,he,Oe,rt,gt,Mt,or)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r){var vr=U*10,Fr=U*5;return this.int16[vr+0]=$,this.int16[vr+1]=ae,this.int16[vr+2]=he,this.int16[vr+3]=Oe,this.int16[vr+4]=rt,this.int16[vr+5]=gt,this.uint32[Fr+3]=Mt,this.uint16[vr+8]=or,this.uint16[vr+9]=_r,U},y}(Qi);mn.prototype.bytesPerElement=20,X("StructArrayLayout6i1ul2ui20",mn);var Ki=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt){var gt=this.length;return this.resize(gt+1),this.emplace(gt,U,$,ae,he,Oe,rt)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt){var Mt=U*6;return this.int16[Mt+0]=$,this.int16[Mt+1]=ae,this.int16[Mt+2]=he,this.int16[Mt+3]=Oe,this.int16[Mt+4]=rt,this.int16[Mt+5]=gt,U},y}(Qi);Ki.prototype.bytesPerElement=12,X("StructArrayLayout2i2i2i12",Ki);var Ui=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe){var rt=this.length;return this.resize(rt+1),this.emplace(rt,U,$,ae,he,Oe)},y.prototype.emplace=function(U,$,ae,he,Oe,rt){var gt=U*4,Mt=U*8;return this.float32[gt+0]=$,this.float32[gt+1]=ae,this.float32[gt+2]=he,this.int16[Mt+6]=Oe,this.int16[Mt+7]=rt,U},y}(Qi);Ui.prototype.bytesPerElement=16,X("StructArrayLayout2f1f2i16",Ui);var Bi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he){var Oe=this.length;return this.resize(Oe+1),this.emplace(Oe,U,$,ae,he)},y.prototype.emplace=function(U,$,ae,he,Oe){var rt=U*12,gt=U*3;return this.uint8[rt+0]=$,this.uint8[rt+1]=ae,this.float32[gt+1]=he,this.float32[gt+2]=Oe,U},y}(Qi);Bi.prototype.bytesPerElement=12,X("StructArrayLayout2ub2f12",Bi);var vn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,ae)},y.prototype.emplace=function(U,$,ae,he){var Oe=U*3;return this.uint16[Oe+0]=$,this.uint16[Oe+1]=ae,this.uint16[Oe+2]=he,U},y}(Qi);vn.prototype.bytesPerElement=6,X("StructArrayLayout3ui6",vn);var Un=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai,Gi,Ti,bn,rn){var xn=this.length;return this.resize(xn+1),this.emplace(xn,U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai,Gi,Ti,bn,rn)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai,Gi,Ti,bn,rn,xn){var Dn=U*24,Zn=U*12,ga=U*48;return this.int16[Dn+0]=$,this.int16[Dn+1]=ae,this.uint16[Dn+2]=he,this.uint16[Dn+3]=Oe,this.uint32[Zn+2]=rt,this.uint32[Zn+3]=gt,this.uint32[Zn+4]=Mt,this.uint16[Dn+10]=or,this.uint16[Dn+11]=_r,this.uint16[Dn+12]=vr,this.float32[Zn+7]=Fr,this.float32[Zn+8]=ai,this.uint8[ga+36]=Gi,this.uint8[ga+37]=Ti,this.uint8[ga+38]=bn,this.uint32[Zn+10]=rn,this.int16[Dn+22]=xn,U},y}(Qi);Un.prototype.bytesPerElement=48,X("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Un);var na=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai,Gi,Ti,bn,rn,xn,Dn,Zn,ga,ha,eo,za,Za,Ko,to,ao){var xs=this.length;return this.resize(xs+1),this.emplace(xs,U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai,Gi,Ti,bn,rn,xn,Dn,Zn,ga,ha,eo,za,Za,Ko,to,ao)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai,Gi,Ti,bn,rn,xn,Dn,Zn,ga,ha,eo,za,Za,Ko,to,ao,xs){var jo=U*34,El=U*17;return this.int16[jo+0]=$,this.int16[jo+1]=ae,this.int16[jo+2]=he,this.int16[jo+3]=Oe,this.int16[jo+4]=rt,this.int16[jo+5]=gt,this.int16[jo+6]=Mt,this.int16[jo+7]=or,this.uint16[jo+8]=_r,this.uint16[jo+9]=vr,this.uint16[jo+10]=Fr,this.uint16[jo+11]=ai,this.uint16[jo+12]=Gi,this.uint16[jo+13]=Ti,this.uint16[jo+14]=bn,this.uint16[jo+15]=rn,this.uint16[jo+16]=xn,this.uint16[jo+17]=Dn,this.uint16[jo+18]=Zn,this.uint16[jo+19]=ga,this.uint16[jo+20]=ha,this.uint16[jo+21]=eo,this.uint16[jo+22]=za,this.uint32[El+12]=Za,this.float32[El+13]=Ko,this.float32[El+14]=to,this.float32[El+15]=ao,this.float32[El+16]=xs,U},y}(Qi);na.prototype.bytesPerElement=68,X("StructArrayLayout8i15ui1ul4f68",na);var Yi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U){var $=this.length;return this.resize($+1),this.emplace($,U)},y.prototype.emplace=function(U,$){var ae=U*1;return this.float32[ae+0]=$,U},y}(Qi);Yi.prototype.bytesPerElement=4,X("StructArrayLayout1f4",Yi);var Ln=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,ae)},y.prototype.emplace=function(U,$,ae,he){var Oe=U*3;return this.int16[Oe+0]=$,this.int16[Oe+1]=ae,this.int16[Oe+2]=he,U},y}(Qi);Ln.prototype.bytesPerElement=6,X("StructArrayLayout3i6",Ln);var ra=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,ae)},y.prototype.emplace=function(U,$,ae,he){var Oe=U*2,rt=U*4;return this.uint32[Oe+0]=$,this.uint16[rt+2]=ae,this.uint16[rt+3]=he,U},y}(Qi);ra.prototype.bytesPerElement=8,X("StructArrayLayout1ul2ui8",ra);var oa=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$){var ae=this.length;return this.resize(ae+1),this.emplace(ae,U,$)},y.prototype.emplace=function(U,$,ae){var he=U*2;return this.uint16[he+0]=$,this.uint16[he+1]=ae,U},y}(Qi);oa.prototype.bytesPerElement=4,X("StructArrayLayout2ui4",oa);var wa=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U){var $=this.length;return this.resize($+1),this.emplace($,U)},y.prototype.emplace=function(U,$){var ae=U*1;return this.uint16[ae+0]=$,U},y}(Qi);wa.prototype.bytesPerElement=2,X("StructArrayLayout1ui2",wa);var ns=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he){var Oe=this.length;return this.resize(Oe+1),this.emplace(Oe,U,$,ae,he)},y.prototype.emplace=function(U,$,ae,he,Oe){var rt=U*4;return this.float32[rt+0]=$,this.float32[rt+1]=ae,this.float32[rt+2]=he,this.float32[rt+3]=Oe,U},y}(Qi);ns.prototype.bytesPerElement=16,X("StructArrayLayout4f16",ns);var Ys=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;var I={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return I.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},I.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},I.x1.get=function(){return this._structArray.int16[this._pos2+2]},I.y1.get=function(){return this._structArray.int16[this._pos2+3]},I.x2.get=function(){return this._structArray.int16[this._pos2+4]},I.y2.get=function(){return this._structArray.int16[this._pos2+5]},I.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},I.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},I.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},I.anchorPoint.get=function(){return new u(this.anchorPointX,this.anchorPointY)},Object.defineProperties(y.prototype,I),y}(Oi);Ys.prototype.size=20;var Va=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(U){return new Ys(this,U)},y}(mn);X("CollisionBoxArray",Va);var Ml=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;var I={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return I.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},I.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},I.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},I.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},I.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},I.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},I.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},I.segment.get=function(){return this._structArray.uint16[this._pos2+10]},I.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},I.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},I.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},I.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},I.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},I.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},I.placedOrientation.set=function(U){this._structArray.uint8[this._pos1+37]=U},I.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},I.hidden.set=function(U){this._structArray.uint8[this._pos1+38]=U},I.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},I.crossTileID.set=function(U){this._structArray.uint32[this._pos4+10]=U},I.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(y.prototype,I),y}(Oi);Ml.prototype.size=48;var zo=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(U){return new Ml(this,U)},y}(Un);X("PlacedSymbolArray",zo);var el=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;var I={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return I.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},I.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},I.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},I.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},I.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},I.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},I.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},I.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},I.key.get=function(){return this._structArray.uint16[this._pos2+8]},I.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},I.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},I.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},I.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},I.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},I.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},I.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},I.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},I.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},I.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},I.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},I.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},I.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},I.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},I.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},I.crossTileID.set=function(U){this._structArray.uint32[this._pos4+12]=U},I.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},I.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},I.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},I.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(y.prototype,I),y}(Oi);el.prototype.size=68;var ol=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(U){return new el(this,U)},y}(na);X("SymbolInstanceArray",ol);var Ul=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.getoffsetX=function(U){return this.float32[U*1+0]},y}(Yi);X("GlyphOffsetArray",Ul);var ls=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.getx=function(U){return this.int16[U*3+0]},y.prototype.gety=function(U){return this.int16[U*3+1]},y.prototype.gettileUnitDistanceFromAnchor=function(U){return this.int16[U*3+2]},y}(Ln);X("SymbolLineVertexArray",ls);var Gs=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;var I={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return I.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},I.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},I.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(y.prototype,I),y}(Oi);Gs.prototype.size=8;var Ks=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(U){return new Gs(this,U)},y}(ra);X("FeatureIndexArray",Ks);var Ta=ji([{name:"a_pos",components:2,type:"Int16"}],4),sl=Ta.members,io=function(y){y===void 0&&(y=[]),this.segments=y};io.prototype.prepareSegment=function(y,I,U,$){var ae=this.segments[this.segments.length-1];return y>io.MAX_VERTEX_ARRAY_LENGTH&&re("Max vertices per segment is "+io.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+y),(!ae||ae.vertexLength+y>io.MAX_VERTEX_ARRAY_LENGTH||ae.sortKey!==$)&&(ae={vertexOffset:I.length,primitiveOffset:U.length,vertexLength:0,primitiveLength:0},$!==void 0&&(ae.sortKey=$),this.segments.push(ae)),ae},io.prototype.get=function(){return this.segments},io.prototype.destroy=function(){for(var y=0,I=this.segments;y>>16)*rt&65535)<<16)&4294967295,Mt=Mt<<15|Mt>>>17,Mt=(Mt&65535)*gt+(((Mt>>>16)*gt&65535)<<16)&4294967295,he^=Mt,he=he<<13|he>>>19,Oe=(he&65535)*5+(((he>>>16)*5&65535)<<16)&4294967295,he=(Oe&65535)+27492+(((Oe>>>16)+58964&65535)<<16);switch(Mt=0,$){case 3:Mt^=(I.charCodeAt(or+2)&255)<<16;case 2:Mt^=(I.charCodeAt(or+1)&255)<<8;case 1:Mt^=I.charCodeAt(or)&255,Mt=(Mt&65535)*rt+(((Mt>>>16)*rt&65535)<<16)&4294967295,Mt=Mt<<15|Mt>>>17,Mt=(Mt&65535)*gt+(((Mt>>>16)*gt&65535)<<16)&4294967295,he^=Mt}return he^=I.length,he^=he>>>16,he=(he&65535)*2246822507+(((he>>>16)*2246822507&65535)<<16)&4294967295,he^=he>>>13,he=(he&65535)*3266489909+(((he>>>16)*3266489909&65535)<<16)&4294967295,he^=he>>>16,he>>>0}m.exports=y}),q=a(function(m){function y(I,U){for(var $=I.length,ae=U^$,he=0,Oe;$>=4;)Oe=I.charCodeAt(he)&255|(I.charCodeAt(++he)&255)<<8|(I.charCodeAt(++he)&255)<<16|(I.charCodeAt(++he)&255)<<24,Oe=(Oe&65535)*1540483477+(((Oe>>>16)*1540483477&65535)<<16),Oe^=Oe>>>24,Oe=(Oe&65535)*1540483477+(((Oe>>>16)*1540483477&65535)<<16),ae=(ae&65535)*1540483477+(((ae>>>16)*1540483477&65535)<<16)^Oe,$-=4,++he;switch($){case 3:ae^=(I.charCodeAt(he+2)&255)<<16;case 2:ae^=(I.charCodeAt(he+1)&255)<<8;case 1:ae^=I.charCodeAt(he)&255,ae=(ae&65535)*1540483477+(((ae>>>16)*1540483477&65535)<<16)}return ae^=ae>>>13,ae=(ae&65535)*1540483477+(((ae>>>16)*1540483477&65535)<<16),ae^=ae>>>15,ae>>>0}m.exports=y}),K=J,de=J,ne=q;K.murmur3=de,K.murmur2=ne;var we=function(){this.ids=[],this.positions=[],this.indexed=!1};we.prototype.add=function(y,I,U,$){this.ids.push(ft(y)),this.positions.push(I,U,$)},we.prototype.getPositions=function(y){for(var I=ft(y),U=0,$=this.ids.length-1;U<$;){var ae=U+$>>1;this.ids[ae]>=I?$=ae:U=ae+1}for(var he=[];this.ids[U]===I;){var Oe=this.positions[3*U],rt=this.positions[3*U+1],gt=this.positions[3*U+2];he.push({index:Oe,start:rt,end:gt}),U++}return he},we.serialize=function(y,I){var U=new Float64Array(y.ids),$=new Uint32Array(y.positions);return Zt(U,$,0,U.length-1),I&&I.push(U.buffer,$.buffer),{ids:U,positions:$}},we.deserialize=function(y){var I=new we;return I.ids=y.ids,I.positions=y.positions,I.indexed=!0,I};var Ue=Math.pow(2,53)-1;function ft(m){var y=+m;return!isNaN(y)&&y<=Ue?y:K(String(m))}function Zt(m,y,I,U){for(;I>1],ae=I-1,he=U+1;;){do ae++;while(m[ae]<$);do he--;while(m[he]>$);if(ae>=he)break;hr(m,ae,he),hr(y,3*ae,3*he),hr(y,3*ae+1,3*he+1),hr(y,3*ae+2,3*he+2)}he-Ihe.x+1||rthe.y+1)&&re("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return I}function Ja(m,y){return{type:m.type,id:m.id,properties:m.properties,geometry:y?On(m):[]}}function co(m,y,I,U,$){m.emplaceBack(y*2+(U+1)/2,I*2+($+1)/2)}var rs=function(y){this.zoom=y.zoom,this.overscaling=y.overscaling,this.layers=y.layers,this.layerIds=this.layers.map(function(I){return I.id}),this.index=y.index,this.hasPattern=!1,this.layoutVertexArray=new Yr,this.indexArray=new vn,this.segments=new io,this.programConfigurations=new hi(y.layers,y.zoom),this.stateDependentLayerIds=this.layers.filter(function(I){return I.isStateDependent()}).map(function(I){return I.id})};rs.prototype.populate=function(y,I,U){var $=this.layers[0],ae=[],he=null;$.type==="circle"&&(he=$.layout.get("circle-sort-key"));for(var Oe=0,rt=y;Oe=Ci||_r<0||_r>=Ci)){var vr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,y.sortKey),Fr=vr.vertexLength;co(this.layoutVertexArray,or,_r,-1,-1),co(this.layoutVertexArray,or,_r,1,-1),co(this.layoutVertexArray,or,_r,1,1),co(this.layoutVertexArray,or,_r,-1,1),this.indexArray.emplaceBack(Fr,Fr+1,Fr+2),this.indexArray.emplaceBack(Fr,Fr+3,Fr+2),vr.vertexLength+=4,vr.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,y,U,{},$)},X("CircleBucket",rs,{omit:["layers"]});function so(m,y){for(var I=0;I=3){for(var ae=0;ae<$.length;ae++)if(Td(m,$[ae]))return!0}if(Mv(m,$,I))return!0}return!1}function Mv(m,y,I){if(m.length>1){if(Ev(m,y))return!0;for(var U=0;U1?m.distSqr(I):m.distSqr(I.sub(y)._mult($)._add(y))}function dp(m,y){for(var I=!1,U,$,ae,he=0;hey.y!=ae.y>y.y&&y.x<(ae.x-$.x)*(y.y-$.y)/(ae.y-$.y)+$.x&&(I=!I)}return I}function Td(m,y){for(var I=!1,U=0,$=m.length-1;Uy.y!=he.y>y.y&&y.x<(he.x-ae.x)*(y.y-ae.y)/(he.y-ae.y)+ae.x&&(I=!I)}return I}function vp(m,y,I,U,$){for(var ae=0,he=m;ae=Oe.x&&$>=Oe.y)return!0}var rt=[new u(y,I),new u(y,$),new u(U,$),new u(U,I)];if(m.length>2)for(var gt=0,Mt=rt;gt$.x&&y.x>$.x||m.y$.y&&y.y>$.y)return!1;var ae=oe(m,y,I[0]);return ae!==oe(m,y,I[1])||ae!==oe(m,y,I[2])||ae!==oe(m,y,I[3])}function Ad(m,y,I){var U=y.paint.get(m).value;return U.kind==="constant"?U.value:I.programConfigurations.get(y.id).getMaxValue(m)}function Cv(m){return Math.sqrt(m[0]*m[0]+m[1]*m[1])}function Kv(m,y,I,U,$){if(!y[0]&&!y[1])return m;var ae=u.convert(y)._mult($);I==="viewport"&&ae._rotate(-U);for(var he=[],Oe=0;Oe0&&(ae=1/Math.sqrt(ae)),m[0]=y[0]*ae,m[1]=y[1]*ae,m[2]=y[2]*ae,m}function D9(m,y){return m[0]*y[0]+m[1]*y[1]+m[2]*y[2]}function F9(m,y,I){var U=y[0],$=y[1],ae=y[2],he=I[0],Oe=I[1],rt=I[2];return m[0]=$*rt-ae*Oe,m[1]=ae*he-U*rt,m[2]=U*Oe-$*he,m}function z9(m,y,I){var U=y[0],$=y[1],ae=y[2];return m[0]=U*I[0]+$*I[3]+ae*I[6],m[1]=U*I[1]+$*I[4]+ae*I[7],m[2]=U*I[2]+$*I[5]+ae*I[8],m}var O9=om,EQ=function(){var m=am();return function(y,I,U,$,ae,he){var Oe,rt;for(I||(I=3),U||(U=0),$?rt=Math.min($*I+U,y.length):rt=y.length,Oe=U;Oem.width||$.height>m.height||I.x>m.width-$.width||I.y>m.height-$.height)throw new RangeError("out of range source coordinates for image copy");if($.width>y.width||$.height>y.height||U.x>y.width-$.width||U.y>y.height-$.height)throw new RangeError("out of range destination coordinates for image copy");for(var he=m.data,Oe=y.data,rt=0;rt<$.height;rt++)for(var gt=((I.y+rt)*m.width+I.x)*ae,Mt=((U.y+rt)*y.width+U.x)*ae,or=0;or<$.width*ae;or++)Oe[Mt+or]=he[gt+or];return y}var Pv=function(y,I){Md(this,y,1,I)};Pv.prototype.resize=function(y){Cw(this,y,1)},Pv.prototype.clone=function(){return new Pv({width:this.width,height:this.height},new Uint8Array(this.data))},Pv.copy=function(y,I,U,$,ae){kw(y,I,U,$,ae,1)};var wh=function(y,I){Md(this,y,4,I)};wh.prototype.resize=function(y){Cw(this,y,4)},wh.prototype.replace=function(y,I){I?this.data.set(y):y instanceof Uint8ClampedArray?this.data=new Uint8Array(y.buffer):this.data=y},wh.prototype.clone=function(){return new wh({width:this.width,height:this.height},new Uint8Array(this.data))},wh.copy=function(y,I,U,$,ae){kw(y,I,U,$,ae,4)},X("AlphaImage",Pv),X("RGBAImage",wh);var Gx=new Br({"heatmap-radius":new xt(Fn.paint_heatmap["heatmap-radius"]),"heatmap-weight":new xt(Fn.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Ee(Fn.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Hr(Fn.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Ee(Fn.paint_heatmap["heatmap-opacity"])}),S1={paint:Gx};function Hx(m){var y={},I=m.resolution||256,U=m.clips?m.clips.length:1,$=m.image||new wh({width:I,height:U}),ae=function(bn,rn,xn){y[m.evaluationKey]=xn;var Dn=m.expression.evaluate(y);$.data[bn+rn+0]=Math.floor(Dn.r*255/Dn.a),$.data[bn+rn+1]=Math.floor(Dn.g*255/Dn.a),$.data[bn+rn+2]=Math.floor(Dn.b*255/Dn.a),$.data[bn+rn+3]=Math.floor(Dn.a*255)};if(m.clips)for(var gt=0,Mt=0;gt80*I){Oe=gt=m[0],rt=Mt=m[1];for(var Fr=I;Fr<$;Fr+=I)or=m[Fr],_r=m[Fr+1],orgt&&(gt=or),_r>Mt&&(Mt=_r);vr=Math.max(gt-Oe,Mt-rt),vr=vr!==0?1/vr:0}return jx(ae,he,I,Oe,rt,vr),he}function Iw(m,y,I,U,$){var ae,he;if($===cS(m,y,I,U)>0)for(ae=y;ae=y;ae-=U)he=Sk(ae,m[ae],m[ae+1],he);return he&&Xx(he,he.next)&&(Kx(he),he=he.next),he}function sm(m,y){if(!m)return m;y||(y=m);var I=m,U;do if(U=!1,!I.steiner&&(Xx(I,I.next)||wf(I.prev,I,I.next)===0)){if(Kx(I),I=y=I.prev,I===I.next)break;U=!0}else I=I.next;while(U||I!==y);return y}function jx(m,y,I,U,$,ae,he){if(m){!he&&ae&&Rw(m,U,$,ae);for(var Oe=m,rt,gt;m.prev!==m.next;){if(rt=m.prev,gt=m.next,ae?wk(m,U,$,ae):bk(m)){y.push(rt.i/I),y.push(m.i/I),y.push(gt.i/I),Kx(m),m=gt.next,Oe=gt.next;continue}if(m=gt,m===Oe){he?he===1?(m=Wx(sm(m),y,I),jx(m,y,I,U,$,ae,2)):he===2&&v0(m,y,I,U,$,ae):jx(sm(m),y,I,U,$,ae,1);break}}}}function bk(m){var y=m.prev,I=m,U=m.next;if(wf(y,I,U)>=0)return!1;for(var $=m.next.next;$!==m.prev;){if(um(y.x,y.y,I.x,I.y,U.x,U.y,$.x,$.y)&&wf($.prev,$,$.next)>=0)return!1;$=$.next}return!0}function wk(m,y,I,U){var $=m.prev,ae=m,he=m.next;if(wf($,ae,he)>=0)return!1;for(var Oe=$.xae.x?$.x>he.x?$.x:he.x:ae.x>he.x?ae.x:he.x,Mt=$.y>ae.y?$.y>he.y?$.y:he.y:ae.y>he.y?ae.y:he.y,or=oS(Oe,rt,y,I,U),_r=oS(gt,Mt,y,I,U),vr=m.prevZ,Fr=m.nextZ;vr&&vr.z>=or&&Fr&&Fr.z<=_r;){if(vr!==m.prev&&vr!==m.next&&um($.x,$.y,ae.x,ae.y,he.x,he.y,vr.x,vr.y)&&wf(vr.prev,vr,vr.next)>=0||(vr=vr.prevZ,Fr!==m.prev&&Fr!==m.next&&um($.x,$.y,ae.x,ae.y,he.x,he.y,Fr.x,Fr.y)&&wf(Fr.prev,Fr,Fr.next)>=0))return!1;Fr=Fr.nextZ}for(;vr&&vr.z>=or;){if(vr!==m.prev&&vr!==m.next&&um($.x,$.y,ae.x,ae.y,he.x,he.y,vr.x,vr.y)&&wf(vr.prev,vr,vr.next)>=0)return!1;vr=vr.prevZ}for(;Fr&&Fr.z<=_r;){if(Fr!==m.prev&&Fr!==m.next&&um($.x,$.y,ae.x,ae.y,he.x,he.y,Fr.x,Fr.y)&&wf(Fr.prev,Fr,Fr.next)>=0)return!1;Fr=Fr.nextZ}return!0}function Wx(m,y,I){var U=m;do{var $=U.prev,ae=U.next.next;!Xx($,ae)&&Dw($,U,U.next,ae)&&Yx($,ae)&&Yx(ae,$)&&(y.push($.i/I),y.push(U.i/I),y.push(ae.i/I),Kx(U),Kx(U.next),U=m=ae),U=U.next}while(U!==m);return sm(U)}function v0(m,y,I,U,$,ae){var he=m;do{for(var Oe=he.next.next;Oe!==he.prev;){if(he.i!==Oe.i&&E1(he,Oe)){var rt=lS(he,Oe);he=sm(he,he.next),rt=sm(rt,rt.next),jx(he,y,I,U,$,ae),jx(rt,y,I,U,$,ae);return}Oe=Oe.next}he=he.next}while(he!==m)}function lm(m,y,I,U){var $=[],ae,he,Oe,rt,gt;for(ae=0,he=y.length;ae=I.next.y&&I.next.y!==I.y){var Oe=I.x+($-I.y)*(I.next.x-I.x)/(I.next.y-I.y);if(Oe<=U&&Oe>ae){if(ae=Oe,Oe===U){if($===I.y)return I;if($===I.next.y)return I.next}he=I.x=I.x&&I.x>=gt&&U!==I.x&&um($he.x||I.x===he.x&&W9(he,I)))&&(he=I,or=_r)),I=I.next;while(I!==rt);return he}function W9(m,y){return wf(m.prev,m,y.prev)<0&&wf(y.next,m,m.next)<0}function Rw(m,y,I,U){var $=m;do $.z===null&&($.z=oS($.x,$.y,y,I,U)),$.prevZ=$.prev,$.nextZ=$.next,$=$.next;while($!==m);$.prevZ.nextZ=null,$.prevZ=null,aS($)}function aS(m){var y,I,U,$,ae,he,Oe,rt,gt=1;do{for(I=m,m=null,ae=null,he=0;I;){for(he++,U=I,Oe=0,y=0;y0||rt>0&&U;)Oe!==0&&(rt===0||!U||I.z<=U.z)?($=I,I=I.nextZ,Oe--):($=U,U=U.nextZ,rt--),ae?ae.nextZ=$:m=$,$.prevZ=ae,ae=$;I=U}ae.nextZ=null,gt*=2}while(he>1);return m}function oS(m,y,I,U,$){return m=32767*(m-I)*$,y=32767*(y-U)*$,m=(m|m<<8)&16711935,m=(m|m<<4)&252645135,m=(m|m<<2)&858993459,m=(m|m<<1)&1431655765,y=(y|y<<8)&16711935,y=(y|y<<4)&252645135,y=(y|y<<2)&858993459,y=(y|y<<1)&1431655765,m|y<<1}function sS(m){var y=m,I=m;do(y.x=0&&(m-he)*(U-Oe)-(I-he)*(y-Oe)>=0&&(I-he)*(ae-Oe)-($-he)*(U-Oe)>=0}function E1(m,y){return m.next.i!==y.i&&m.prev.i!==y.i&&!Ak(m,y)&&(Yx(m,y)&&Yx(y,m)&&X9(m,y)&&(wf(m.prev,m,y.prev)||wf(m,y.prev,y))||Xx(m,y)&&wf(m.prev,m,m.next)>0&&wf(y.prev,y,y.next)>0)}function wf(m,y,I){return(y.y-m.y)*(I.x-y.x)-(y.x-m.x)*(I.y-y.y)}function Xx(m,y){return m.x===y.x&&m.y===y.y}function Dw(m,y,I,U){var $=uy(wf(m,y,I)),ae=uy(wf(m,y,U)),he=uy(wf(I,U,m)),Oe=uy(wf(I,U,y));return!!($!==ae&&he!==Oe||$===0&&Zx(m,I,y)||ae===0&&Zx(m,U,y)||he===0&&Zx(I,m,U)||Oe===0&&Zx(I,y,U))}function Zx(m,y,I){return y.x<=Math.max(m.x,I.x)&&y.x>=Math.min(m.x,I.x)&&y.y<=Math.max(m.y,I.y)&&y.y>=Math.min(m.y,I.y)}function uy(m){return m>0?1:m<0?-1:0}function Ak(m,y){var I=m;do{if(I.i!==m.i&&I.next.i!==m.i&&I.i!==y.i&&I.next.i!==y.i&&Dw(I,I.next,m,y))return!0;I=I.next}while(I!==m);return!1}function Yx(m,y){return wf(m.prev,m,m.next)<0?wf(m,y,m.next)>=0&&wf(m,m.prev,y)>=0:wf(m,y,m.prev)<0||wf(m,m.next,y)<0}function X9(m,y){var I=m,U=!1,$=(m.x+y.x)/2,ae=(m.y+y.y)/2;do I.y>ae!=I.next.y>ae&&I.next.y!==I.y&&$<(I.next.x-I.x)*(ae-I.y)/(I.next.y-I.y)+I.x&&(U=!U),I=I.next;while(I!==m);return U}function lS(m,y){var I=new uS(m.i,m.x,m.y),U=new uS(y.i,y.x,y.y),$=m.next,ae=y.prev;return m.next=y,y.prev=m,I.next=$,$.prev=I,U.next=I,I.prev=U,ae.next=U,U.prev=ae,U}function Sk(m,y,I,U){var $=new uS(m,y,I);return U?($.next=U.next,$.prev=U,U.next.prev=$,U.next=$):($.prev=$,$.next=$),$}function Kx(m){m.next.prev=m.prev,m.prev.next=m.next,m.prevZ&&(m.prevZ.nextZ=m.nextZ),m.nextZ&&(m.nextZ.prevZ=m.prevZ)}function uS(m,y,I){this.i=m,this.x=y,this.y=I,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}M1.deviation=function(m,y,I,U){var $=y&&y.length,ae=$?y[0]*I:m.length,he=Math.abs(cS(m,0,ae,I));if($)for(var Oe=0,rt=y.length;Oe0&&(U+=m[$-1].length,I.holes.push(U))}return I},Pw.default=xk;function fS(m,y,I,U,$){dg(m,y,I||0,U||m.length-1,$||Mk)}function dg(m,y,I,U,$){for(;U>I;){if(U-I>600){var ae=U-I+1,he=y-I+1,Oe=Math.log(ae),rt=.5*Math.exp(2*Oe/3),gt=.5*Math.sqrt(Oe*rt*(ae-rt)/ae)*(he-ae/2<0?-1:1),Mt=Math.max(I,Math.floor(y-he*rt/ae+gt)),or=Math.min(U,Math.floor(y+(ae-he)*rt/ae+gt));dg(m,y,Mt,or,$)}var _r=m[y],vr=I,Fr=U;for(C1(m,I,y),$(m[U],_r)>0&&C1(m,I,U);vr0;)Fr--}$(m[I],_r)===0?C1(m,I,Fr):(Fr++,C1(m,Fr,U)),Fr<=y&&(I=Fr+1),y<=Fr&&(U=Fr-1)}}function C1(m,y,I){var U=m[y];m[y]=m[I],m[I]=U}function Mk(m,y){return my?1:0}function Fw(m,y){var I=m.length;if(I<=1)return[m];for(var U=[],$,ae,he=0;he1)for(var rt=0;rt>3}if(U--,I===1||I===2)$+=m.readSVarint(),ae+=m.readSVarint(),I===1&&(Oe&&he.push(Oe),Oe=[]),Oe.push(new u($,ae));else if(I===7)Oe&&Oe.push(Oe[0].clone());else throw new Error("unknown command "+I)}return Oe&&he.push(Oe),he},cy.prototype.bbox=function(){var m=this._pbf;m.pos=this._geometry;for(var y=m.readVarint()+m.pos,I=1,U=0,$=0,ae=0,he=1/0,Oe=-1/0,rt=1/0,gt=-1/0;m.pos>3}if(U--,I===1||I===2)$+=m.readSVarint(),ae+=m.readSVarint(),$Oe&&(Oe=$),aegt&&(gt=ae);else if(I!==7)throw new Error("unknown command "+I)}return[he,rt,Oe,gt]},cy.prototype.toGeoJSON=function(m,y,I){var U=this.extent*Math.pow(2,I),$=this.extent*m,ae=this.extent*y,he=this.loadGeometry(),Oe=cy.types[this.type],rt,gt;function Mt(vr){for(var Fr=0;Fr>3;y=U===1?m.readString():U===2?m.readFloat():U===3?m.readDouble():U===4?m.readVarint64():U===5?m.readVarint():U===6?m.readSVarint():U===7?m.readBoolean():null}return y}vS.prototype.feature=function(m){if(m<0||m>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[m];var y=this._pbf.readVarint()+this._pbf.pos;return new dS(this._pbf,y,this.extent,this._keys,this._values)};var zk=Y9;function Y9(m,y){this.layers=m.readFields(K9,{},y)}function K9(m,y,I){if(m===3){var U=new vg(I,I.readVarint()+I.pos);U.length&&(y[U.name]=U)}}var Ok=zk,k1=dS,qk=vg,pg={VectorTile:Ok,VectorTileFeature:k1,VectorTileLayer:qk},Bk=pg.VectorTileFeature.types,Ow=500,L1=Math.pow(2,13);function cm(m,y,I,U,$,ae,he,Oe){m.emplaceBack(y,I,Math.floor(U*L1)*2+he,$*L1*2,ae*L1*2,Math.round(Oe))}var Vp=function(y){this.zoom=y.zoom,this.overscaling=y.overscaling,this.layers=y.layers,this.layerIds=this.layers.map(function(I){return I.id}),this.index=y.index,this.hasPattern=!1,this.layoutVertexArray=new Ii,this.indexArray=new vn,this.programConfigurations=new hi(y.layers,y.zoom),this.segments=new io,this.stateDependentLayerIds=this.layers.filter(function(I){return I.isStateDependent()}).map(function(I){return I.id})};Vp.prototype.populate=function(y,I,U){this.features=[],this.hasPattern=zw("fill-extrusion",this.layers,I);for(var $=0,ae=y;$=1){var xn=Gi[bn-1];if(!J9(rn,xn)){vr.vertexLength+4>io.MAX_VERTEX_ARRAY_LENGTH&&(vr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Dn=rn.sub(xn)._perp()._unit(),Zn=xn.dist(rn);Ti+Zn>32768&&(Ti=0),cm(this.layoutVertexArray,rn.x,rn.y,Dn.x,Dn.y,0,0,Ti),cm(this.layoutVertexArray,rn.x,rn.y,Dn.x,Dn.y,0,1,Ti),Ti+=Zn,cm(this.layoutVertexArray,xn.x,xn.y,Dn.x,Dn.y,0,0,Ti),cm(this.layoutVertexArray,xn.x,xn.y,Dn.x,Dn.y,0,1,Ti);var ga=vr.vertexLength;this.indexArray.emplaceBack(ga,ga+2,ga+1),this.indexArray.emplaceBack(ga+1,ga+2,ga+3),vr.vertexLength+=4,vr.primitiveLength+=2}}}}if(vr.vertexLength+gt>io.MAX_VERTEX_ARRAY_LENGTH&&(vr=this.segments.prepareSegment(gt,this.layoutVertexArray,this.indexArray)),Bk[y.type]==="Polygon"){for(var ha=[],eo=[],za=vr.vertexLength,Za=0,Ko=rt;ZaCi)||m.y===y.y&&(m.y<0||m.y>Ci)}function $9(m){return m.every(function(y){return y.x<0})||m.every(function(y){return y.x>Ci})||m.every(function(y){return y.y<0})||m.every(function(y){return y.y>Ci})}var P1=new Br({"fill-extrusion-opacity":new Ee(Fn["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new xt(Fn["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Ee(Fn["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Ee(Fn["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new zt(Fn["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new xt(Fn["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new xt(Fn["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Ee(Fn["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),sd={paint:P1},fm=function(m){function y(I){m.call(this,I,sd)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.createBucket=function(U){return new Vp(U)},y.prototype.queryRadius=function(){return Cv(this.paint.get("fill-extrusion-translate"))},y.prototype.is3D=function(){return!0},y.prototype.queryIntersectsFeature=function(U,$,ae,he,Oe,rt,gt,Mt){var or=Kv(U,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),rt.angle,gt),_r=this.paint.get("fill-extrusion-height").evaluate($,ae),vr=this.paint.get("fill-extrusion-base").evaluate($,ae),Fr=Q9(or,Mt,rt,0),ai=gS(he,vr,_r,Mt),Gi=ai[0],Ti=ai[1];return Nk(Gi,Ti,Fr)},y}(mi);function fy(m,y){return m.x*y.x+m.y*y.y}function pS(m,y){if(m.length===1){for(var I=0,U=y[I++],$;!$||U.equals($);)if($=y[I++],!$)return 1/0;for(;I=2&&y[gt-1].equals(y[gt-2]);)gt--;for(var Mt=0;Mt0;if(ha&&bn>Mt){var za=vr.dist(Fr);if(za>2*or){var Za=vr.sub(vr.sub(Fr)._mult(or/za)._round());this.updateDistance(Fr,Za),this.addCurrentVertex(Za,Gi,0,0,_r),Fr=Za}}var Ko=Fr&&ai,to=Ko?U:rt?"butt":$;if(Ko&&to==="round"&&(Znae&&(to="bevel"),to==="bevel"&&(Zn>2&&(to="flipbevel"),Zn100)rn=Ti.mult(-1);else{var ao=Zn*Gi.add(Ti).mag()/Gi.sub(Ti).mag();rn._perp()._mult(ao*(eo?-1:1))}this.addCurrentVertex(vr,rn,0,0,_r),this.addCurrentVertex(vr,rn.mult(-1),0,0,_r)}else if(to==="bevel"||to==="fakeround"){var xs=-Math.sqrt(Zn*Zn-1),jo=eo?xs:0,El=eo?0:xs;if(Fr&&this.addCurrentVertex(vr,Gi,jo,El,_r),to==="fakeround")for(var Iu=Math.round(ga*180/Math.PI/yS),Cl=1;Cl2*or){var ch=vr.add(ai.sub(vr)._mult(or/Xh)._round());this.updateDistance(vr,ch),this.addCurrentVertex(ch,Ti,0,0,_r),vr=ch}}}}},sh.prototype.addCurrentVertex=function(y,I,U,$,ae,he){he===void 0&&(he=!1);var Oe=I.x+I.y*U,rt=I.y-I.x*U,gt=-I.x+I.y*$,Mt=-I.y-I.x*$;this.addHalfVertex(y,Oe,rt,he,!1,U,ae),this.addHalfVertex(y,gt,Mt,he,!0,-$,ae),this.distance>tb/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(y,I,U,$,ae,he))},sh.prototype.addHalfVertex=function(y,I,U,$,ae,he,Oe){var rt=y.x,gt=y.y,Mt=this.lineClips?this.scaledDistance*(tb-1):this.scaledDistance,or=Mt*Bw;if(this.layoutVertexArray.emplaceBack((rt<<1)+($?1:0),(gt<<1)+(ae?1:0),Math.round(qw*I)+128,Math.round(qw*U)+128,(he===0?0:he<0?-1:1)+1|(or&63)<<2,or>>6),this.lineClips){var _r=this.scaledDistance-this.lineClips.start,vr=this.lineClips.end-this.lineClips.start,Fr=_r/vr;this.layoutVertexArray2.emplaceBack(Fr,this.lineClipsArray.length)}var ai=Oe.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,ai),Oe.primitiveLength++),ae?this.e2=ai:this.e1=ai},sh.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},sh.prototype.updateDistance=function(y,I){this.distance+=y.dist(I),this.updateScaledDistance()},X("LineBucket",sh,{omit:["layers","patternFeatures"]});var _S=new Br({"line-cap":new Ee(Fn.layout_line["line-cap"]),"line-join":new xt(Fn.layout_line["line-join"]),"line-miter-limit":new Ee(Fn.layout_line["line-miter-limit"]),"line-round-limit":new Ee(Fn.layout_line["line-round-limit"]),"line-sort-key":new xt(Fn.layout_line["line-sort-key"])}),xS=new Br({"line-opacity":new xt(Fn.paint_line["line-opacity"]),"line-color":new xt(Fn.paint_line["line-color"]),"line-translate":new Ee(Fn.paint_line["line-translate"]),"line-translate-anchor":new Ee(Fn.paint_line["line-translate-anchor"]),"line-width":new xt(Fn.paint_line["line-width"]),"line-gap-width":new xt(Fn.paint_line["line-gap-width"]),"line-offset":new xt(Fn.paint_line["line-offset"]),"line-blur":new xt(Fn.paint_line["line-blur"]),"line-dasharray":new Ir(Fn.paint_line["line-dasharray"]),"line-pattern":new zt(Fn.paint_line["line-pattern"]),"line-gradient":new Hr(Fn.paint_line["line-gradient"])}),Nw={paint:xS,layout:_S},tO=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.possiblyEvaluate=function(U,$){return $=new Gn(Math.floor($.zoom),{now:$.now,fadeDuration:$.fadeDuration,zoomHistory:$.zoomHistory,transition:$.transition}),m.prototype.possiblyEvaluate.call(this,U,$)},y.prototype.evaluate=function(U,$,ae,he){return $=x({},$,{zoom:Math.floor($.zoom)}),m.prototype.evaluate.call(this,U,$,ae,he)},y}(xt),R=new tO(Nw.paint.properties["line-width"].specification);R.useIntegerZoom=!0;var S=function(m){function y(I){m.call(this,I,Nw),this.gradientVersion=0}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._handleSpecialPaintPropertyUpdate=function(U){if(U==="line-gradient"){var $=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=$._styleExpression.expression instanceof _u,this.gradientVersion=(this.gradientVersion+1)%d}},y.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},y.prototype.recalculate=function(U,$){m.prototype.recalculate.call(this,U,$),this.paint._values["line-floorwidth"]=R.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,U)},y.prototype.createBucket=function(U){return new sh(U)},y.prototype.queryRadius=function(U){var $=U,ae=F(Ad("line-width",this,$),Ad("line-gap-width",this,$)),he=Ad("line-offset",this,$);return ae/2+Math.abs(he)+Cv(this.paint.get("line-translate"))},y.prototype.queryIntersectsFeature=function(U,$,ae,he,Oe,rt,gt){var Mt=Kv(U,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),rt.angle,gt),or=gt/2*F(this.paint.get("line-width").evaluate($,ae),this.paint.get("line-gap-width").evaluate($,ae)),_r=this.paint.get("line-offset").evaluate($,ae);return _r&&(he=W(he,_r*gt)),su(Mt,he,or)},y.prototype.isTileClipped=function(){return!0},y}(mi);function F(m,y){return y>0?y+2*m:m}function W(m,y){for(var I=[],U=new u(0,0),$=0;$":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};function ln(m){for(var y="",I=0;I>1,Mt=-7,or=I?$-1:0,_r=I?-1:1,vr=m[y+or];for(or+=_r,ae=vr&(1<<-Mt)-1,vr>>=-Mt,Mt+=Oe;Mt>0;ae=ae*256+m[y+or],or+=_r,Mt-=8);for(he=ae&(1<<-Mt)-1,ae>>=-Mt,Mt+=U;Mt>0;he=he*256+m[y+or],or+=_r,Mt-=8);if(ae===0)ae=1-gt;else{if(ae===rt)return he?NaN:(vr?-1:1)*(1/0);he=he+Math.pow(2,U),ae=ae-gt}return(vr?-1:1)*he*Math.pow(2,ae-U)},ro=function(m,y,I,U,$,ae){var he,Oe,rt,gt=ae*8-$-1,Mt=(1<>1,_r=$===23?Math.pow(2,-24)-Math.pow(2,-77):0,vr=U?0:ae-1,Fr=U?1:-1,ai=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===1/0?(Oe=isNaN(y)?1:0,he=Mt):(he=Math.floor(Math.log(y)/Math.LN2),y*(rt=Math.pow(2,-he))<1&&(he--,rt*=2),he+or>=1?y+=_r/rt:y+=_r*Math.pow(2,1-or),y*rt>=2&&(he++,rt/=2),he+or>=Mt?(Oe=0,he=Mt):he+or>=1?(Oe=(y*rt-1)*Math.pow(2,$),he=he+or):(Oe=y*Math.pow(2,or-1)*Math.pow(2,$),he=0));$>=8;m[I+vr]=Oe&255,vr+=Fr,Oe/=256,$-=8);for(he=he<<$|Oe,gt+=$;gt>0;m[I+vr]=he&255,vr+=Fr,he/=256,gt-=8);m[I+vr-Fr]|=ai*128},Vo={read:pa,write:ro},Xa=sa;function sa(m){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(m)?m:new Uint8Array(m||0),this.pos=0,this.type=0,this.length=this.buf.length}sa.Varint=0,sa.Fixed64=1,sa.Bytes=2,sa.Fixed32=5;var Mo=65536*65536,fo=1/Mo,lo=12,Xn=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");sa.prototype={destroy:function(){this.buf=null},readFields:function(m,y,I){for(I=I||this.length;this.pos>3,ae=this.pos;this.type=U&7,m($,y,this),this.pos===ae&&this.skip(U)}return y},readMessage:function(m,y){return this.readFields(m,y,this.readVarint()+this.pos)},readFixed32:function(){var m=Hh(this.buf,this.pos);return this.pos+=4,m},readSFixed32:function(){var m=Iv(this.buf,this.pos);return this.pos+=4,m},readFixed64:function(){var m=Hh(this.buf,this.pos)+Hh(this.buf,this.pos+4)*Mo;return this.pos+=8,m},readSFixed64:function(){var m=Hh(this.buf,this.pos)+Iv(this.buf,this.pos+4)*Mo;return this.pos+=8,m},readFloat:function(){var m=Vo.read(this.buf,this.pos,!0,23,4);return this.pos+=4,m},readDouble:function(){var m=Vo.read(this.buf,this.pos,!0,52,8);return this.pos+=8,m},readVarint:function(m){var y=this.buf,I,U;return U=y[this.pos++],I=U&127,U<128||(U=y[this.pos++],I|=(U&127)<<7,U<128)||(U=y[this.pos++],I|=(U&127)<<14,U<128)||(U=y[this.pos++],I|=(U&127)<<21,U<128)?I:(U=y[this.pos],I|=(U&15)<<28,Ro(I,m,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var m=this.readVarint();return m%2===1?(m+1)/-2:m/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var m=this.readVarint()+this.pos,y=this.pos;return this.pos=m,m-y>=lo&&Xn?tu(this.buf,y,m):lv(this.buf,y,m)},readBytes:function(){var m=this.readVarint()+this.pos,y=this.buf.subarray(this.pos,m);return this.pos=m,y},readPackedVarint:function(m,y){if(this.type!==sa.Bytes)return m.push(this.readVarint(y));var I=uo(this);for(m=m||[];this.pos127;);else if(y===sa.Bytes)this.pos=this.readVarint()+this.pos;else if(y===sa.Fixed32)this.pos+=4;else if(y===sa.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+y)},writeTag:function(m,y){this.writeVarint(m<<3|y)},realloc:function(m){for(var y=this.length||16;y268435455||m<0){Ju(m,this);return}this.realloc(4),this.buf[this.pos++]=m&127|(m>127?128:0),!(m<=127)&&(this.buf[this.pos++]=(m>>>=7)&127|(m>127?128:0),!(m<=127)&&(this.buf[this.pos++]=(m>>>=7)&127|(m>127?128:0),!(m<=127)&&(this.buf[this.pos++]=m>>>7&127)))},writeSVarint:function(m){this.writeVarint(m<0?-m*2-1:m*2)},writeBoolean:function(m){this.writeVarint(!!m)},writeString:function(m){m=String(m),this.realloc(m.length*4),this.pos++;var y=this.pos;this.pos=pc(this.buf,m,this.pos);var I=this.pos-y;I>=128&&$v(y,I,this),this.pos=y-1,this.writeVarint(I),this.pos+=I},writeFloat:function(m){this.realloc(4),Vo.write(this.buf,m,this.pos,!0,23,4),this.pos+=4},writeDouble:function(m){this.realloc(8),Vo.write(this.buf,m,this.pos,!0,52,8),this.pos+=8},writeBytes:function(m){var y=m.length;this.writeVarint(y),this.realloc(y);for(var I=0;I=128&&$v(I,U,this),this.pos=I-1,this.writeVarint(U),this.pos+=U},writeMessage:function(m,y,I){this.writeTag(m,sa.Bytes),this.writeRawMessage(y,I)},writePackedVarint:function(m,y){y.length&&this.writeMessage(m,ld,y)},writePackedSVarint:function(m,y){y.length&&this.writeMessage(m,Ah,y)},writePackedBoolean:function(m,y){y.length&&this.writeMessage(m,jd,y)},writePackedFloat:function(m,y){y.length&&this.writeMessage(m,Gd,y)},writePackedDouble:function(m,y){y.length&&this.writeMessage(m,Hd,y)},writePackedFixed32:function(m,y){y.length&&this.writeMessage(m,Tf,y)},writePackedSFixed32:function(m,y){y.length&&this.writeMessage(m,Sh,y)},writePackedFixed64:function(m,y){y.length&&this.writeMessage(m,Ed,y)},writePackedSFixed64:function(m,y){y.length&&this.writeMessage(m,ud,y)},writeBytesField:function(m,y){this.writeTag(m,sa.Bytes),this.writeBytes(y)},writeFixed32Field:function(m,y){this.writeTag(m,sa.Fixed32),this.writeFixed32(y)},writeSFixed32Field:function(m,y){this.writeTag(m,sa.Fixed32),this.writeSFixed32(y)},writeFixed64Field:function(m,y){this.writeTag(m,sa.Fixed64),this.writeFixed64(y)},writeSFixed64Field:function(m,y){this.writeTag(m,sa.Fixed64),this.writeSFixed64(y)},writeVarintField:function(m,y){this.writeTag(m,sa.Varint),this.writeVarint(y)},writeSVarintField:function(m,y){this.writeTag(m,sa.Varint),this.writeSVarint(y)},writeStringField:function(m,y){this.writeTag(m,sa.Bytes),this.writeString(y)},writeFloatField:function(m,y){this.writeTag(m,sa.Fixed32),this.writeFloat(y)},writeDoubleField:function(m,y){this.writeTag(m,sa.Fixed64),this.writeDouble(y)},writeBooleanField:function(m,y){this.writeVarintField(m,!!y)}};function Ro(m,y,I){var U=I.buf,$,ae;if(ae=U[I.pos++],$=(ae&112)>>4,ae<128||(ae=U[I.pos++],$|=(ae&127)<<3,ae<128)||(ae=U[I.pos++],$|=(ae&127)<<10,ae<128)||(ae=U[I.pos++],$|=(ae&127)<<17,ae<128)||(ae=U[I.pos++],$|=(ae&127)<<24,ae<128)||(ae=U[I.pos++],$|=(ae&1)<<31,ae<128))return $o(m,$,y);throw new Error("Expected varint not more than 10 bytes")}function uo(m){return m.type===sa.Bytes?m.readVarint()+m.pos:m.pos+1}function $o(m,y,I){return I?y*4294967296+(m>>>0):(y>>>0)*4294967296+(m>>>0)}function Ju(m,y){var I,U;if(m>=0?(I=m%4294967296|0,U=m/4294967296|0):(I=~(-m%4294967296),U=~(-m/4294967296),I^4294967295?I=I+1|0:(I=0,U=U+1|0)),m>=18446744073709552e3||m<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");y.realloc(10),qu(I,U,y),Th(U,y)}function qu(m,y,I){I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos]=m&127}function Th(m,y){var I=(m&7)<<4;y.buf[y.pos++]|=I|((m>>>=3)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127)))))}function $v(m,y,I){var U=y<=16383?1:y<=2097151?2:y<=268435455?3:Math.floor(Math.log(y)/(Math.LN2*7));I.realloc(U);for(var $=I.pos-1;$>=m;$--)I.buf[$+U]=I.buf[$]}function ld(m,y){for(var I=0;I>>8,m[I+2]=y>>>16,m[I+3]=y>>>24}function Iv(m,y){return(m[y]|m[y+1]<<8|m[y+2]<<16)+(m[y+3]<<24)}function lv(m,y,I){for(var U="",$=y;$239?4:ae>223?3:ae>191?2:1;if($+Oe>I)break;var rt,gt,Mt;Oe===1?ae<128&&(he=ae):Oe===2?(rt=m[$+1],(rt&192)===128&&(he=(ae&31)<<6|rt&63,he<=127&&(he=null))):Oe===3?(rt=m[$+1],gt=m[$+2],(rt&192)===128&&(gt&192)===128&&(he=(ae&15)<<12|(rt&63)<<6|gt&63,(he<=2047||he>=55296&&he<=57343)&&(he=null))):Oe===4&&(rt=m[$+1],gt=m[$+2],Mt=m[$+3],(rt&192)===128&&(gt&192)===128&&(Mt&192)===128&&(he=(ae&15)<<18|(rt&63)<<12|(gt&63)<<6|Mt&63,(he<=65535||he>=1114112)&&(he=null))),he===null?(he=65533,Oe=1):he>65535&&(he-=65536,U+=String.fromCharCode(he>>>10&1023|55296),he=56320|he&1023),U+=String.fromCharCode(he),$+=Oe}return U}function tu(m,y,I){return Xn.decode(m.subarray(y,I))}function pc(m,y,I){for(var U=0,$,ae;U55295&&$<57344)if(ae)if($<56320){m[I++]=239,m[I++]=191,m[I++]=189,ae=$;continue}else $=ae-55296<<10|$-56320|65536,ae=null;else{$>56319||U+1===y.length?(m[I++]=239,m[I++]=191,m[I++]=189):ae=$;continue}else ae&&(m[I++]=239,m[I++]=191,m[I++]=189,ae=null);$<128?m[I++]=$:($<2048?m[I++]=$>>6|192:($<65536?m[I++]=$>>12|224:(m[I++]=$>>18|240,m[I++]=$>>12&63|128),m[I++]=$>>6&63|128),m[I++]=$&63|128)}return I}var $u=3;function Rv(m,y,I){m===1&&I.readMessage(ff,y)}function ff(m,y,I){if(m===3){var U=I.readMessage(I1,{}),$=U.id,ae=U.bitmap,he=U.width,Oe=U.height,rt=U.left,gt=U.top,Mt=U.advance;y.push({id:$,bitmap:new Pv({width:he+2*$u,height:Oe+2*$u},ae),metrics:{width:he,height:Oe,left:rt,top:gt,advance:Mt}})}}function I1(m,y,I){m===1?y.id=I.readVarint():m===2?y.bitmap=I.readBytes():m===3?y.width=I.readVarint():m===4?y.height=I.readVarint():m===5?y.left=I.readSVarint():m===6?y.top=I.readSVarint():m===7&&(y.advance=I.readVarint())}function p0(m){return new Xa(m).readFields(Rv,[])}var Gp=$u;function Qv(m){for(var y=0,I=0,U=0,$=m;U<$.length;U+=1){var ae=$[U];y+=ae.w*ae.h,I=Math.max(I,ae.w)}m.sort(function(Gi,Ti){return Ti.h-Gi.h});for(var he=Math.max(Math.ceil(Math.sqrt(y/.95)),I),Oe=[{x:0,y:0,w:he,h:1/0}],rt=0,gt=0,Mt=0,or=m;Mt=0;vr--){var Fr=Oe[vr];if(!(_r.w>Fr.w||_r.h>Fr.h)){if(_r.x=Fr.x,_r.y=Fr.y,gt=Math.max(gt,_r.y+_r.h),rt=Math.max(rt,_r.x+_r.w),_r.w===Fr.w&&_r.h===Fr.h){var ai=Oe.pop();vr=0&&$>=y&&m0[this.text.charCodeAt($)];$--)U--;this.text=this.text.substring(y,U),this.sectionIndex=this.sectionIndex.slice(y,U)},jh.prototype.substring=function(y,I){var U=new jh;return U.text=this.text.substring(y,I),U.sectionIndex=this.sectionIndex.slice(y,I),U.sections=this.sections,U},jh.prototype.toString=function(){return this.text},jh.prototype.getMaxScale=function(){var y=this;return this.sectionIndex.reduce(function(I,U){return Math.max(I,y.sections[U].scale)},0)},jh.prototype.addTextSection=function(y,I){this.text+=y.text,this.sections.push(hy.forText(y.scale,y.fontStack||I));for(var U=this.sections.length-1,$=0;$=g0?null:++this.imageSectionID:(this.imageSectionID=Uw,this.imageSectionID)};function rO(m,y){for(var I=[],U=m.text,$=0,ae=0,he=y;ae=0,Mt=0,or=0;or0&&ch>eo&&(eo=ch)}else{var kl=I[Za.fontStack],_l=kl&&kl[to];if(_l&&_l.rect)jo=_l.rect,xs=_l.metrics;else{var Qu=y[Za.fontStack],gc=Qu&&Qu[to];if(!gc)continue;xs=gc.metrics}ao=(Dn-Za.scale)*An}Cl?(m.verticalizable=!0,ha.push({glyph:to,imageName:El,x:_r,y:vr+ao,vertical:Cl,scale:Za.scale,fontStack:Za.fontStack,sectionIndex:Ko,metrics:xs,rect:jo}),_r+=Iu*Za.scale+gt):(ha.push({glyph:to,imageName:El,x:_r,y:vr+ao,vertical:Cl,scale:Za.scale,fontStack:Za.fontStack,sectionIndex:Ko,metrics:xs,rect:jo}),_r+=xs.advance*Za.scale+gt)}if(ha.length!==0){var Xd=_r-gt;Fr=Math.max(Xd,Fr),oO(ha,0,ha.length-1,Gi,eo)}_r=0;var Zd=ae*Dn+eo;ga.lineOffset=Math.max(eo,Zn),vr+=Zd,ai=Math.max(Zd,ai),++Ti}var Zh=vr-R1,fv=wS(he),hv=fv.horizontalAlign,Mh=fv.verticalAlign;Cd(m.positionedLines,Gi,hv,Mh,Fr,ai,ae,Zh,$.length),m.top+=-Mh*Zh,m.bottom=m.top+Zh,m.left+=-hv*Fr,m.right=m.left+Fr}function oO(m,y,I,U,$){if(!(!U&&!$))for(var ae=m[I],he=ae.metrics.advance*ae.scale,Oe=(m[I].x+he)*U,rt=y;rt<=I;rt++)m[rt].x-=Oe,m[rt].y+=$}function Cd(m,y,I,U,$,ae,he,Oe,rt){var gt=(y-I)*$,Mt=0;ae!==he?Mt=-Oe*U-R1:Mt=(-U*rt+.5)*he;for(var or=0,_r=m;or<_r.length;or+=1)for(var vr=_r[or],Fr=0,ai=vr.positionedGlyphs;Fr-I/2;){if(he--,he<0)return!1;Oe-=m[he].dist(ae),ae=m[he]}Oe+=m[he].dist(m[he+1]),he++;for(var rt=[],gt=0;OeU;)gt-=rt.shift().angleDelta;if(gt>$)return!1;he++,Oe+=or.dist(_r)}return!0}function IQ(m){for(var y=0,I=0;Igt){var Fr=(gt-rt)/vr,ai=al(or.x,_r.x,Fr),Gi=al(or.y,_r.y,Fr),Ti=new Wd(ai,Gi,_r.angleTo(or),Mt);return Ti._round(),!he||PQ(m,Ti,Oe,he,y)?Ti:void 0}rt+=vr}}function eet(m,y,I,U,$,ae,he,Oe,rt){var gt=RQ(U,ae,he),Mt=DQ(U,$),or=Mt*he,_r=m[0].x===0||m[0].x===rt||m[0].y===0||m[0].y===rt;y-or=0&&xn=0&&Dn=0&&_r+gt<=Mt){var Zn=new Wd(xn,Dn,bn,Fr);Zn._round(),(!U||PQ(m,Zn,ae,U,$))&&vr.push(Zn)}}or+=Ti}return!Oe&&!vr.length&&!he&&(vr=FQ(m,or/2,I,U,$,ae,he,!0,rt)),vr}function zQ(m,y,I,U,$){for(var ae=[],he=0;he=U&&or.x>=U)&&(Mt.x>=U?Mt=new u(U,Mt.y+(or.y-Mt.y)*((U-Mt.x)/(or.x-Mt.x)))._round():or.x>=U&&(or=new u(U,Mt.y+(or.y-Mt.y)*((U-Mt.x)/(or.x-Mt.x)))._round()),!(Mt.y>=$&&or.y>=$)&&(Mt.y>=$?Mt=new u(Mt.x+(or.x-Mt.x)*(($-Mt.y)/(or.y-Mt.y)),$)._round():or.y>=$&&(or=new u(Mt.x+(or.x-Mt.x)*(($-Mt.y)/(or.y-Mt.y)),$)._round()),(!rt||!Mt.equals(rt[rt.length-1]))&&(rt=[Mt],ae.push(rt)),rt.push(or)))))}return ae}var Hw=Gc;function OQ(m,y,I,U){var $=[],ae=m.image,he=ae.pixelRatio,Oe=ae.paddedRect.w-2*Hw,rt=ae.paddedRect.h-2*Hw,gt=m.right-m.left,Mt=m.bottom-m.top,or=ae.stretchX||[[0,Oe]],_r=ae.stretchY||[[0,rt]],vr=function(kl,_l){return kl+_l[1]-_l[0]},Fr=or.reduce(vr,0),ai=_r.reduce(vr,0),Gi=Oe-Fr,Ti=rt-ai,bn=0,rn=Fr,xn=0,Dn=ai,Zn=0,ga=Gi,ha=0,eo=Ti;if(ae.content&&U){var za=ae.content;bn=Zk(or,0,za[0]),xn=Zk(_r,0,za[1]),rn=Zk(or,za[0],za[2]),Dn=Zk(_r,za[1],za[3]),Zn=za[0]-bn,ha=za[1]-xn,ga=za[2]-za[0]-rn,eo=za[3]-za[1]-Dn}var Za=function(kl,_l,Qu,gc){var Af=Yk(kl.stretch-bn,rn,gt,m.left),Df=Kk(kl.fixed-Zn,ga,kl.stretch,Fr),Xh=Yk(_l.stretch-xn,Dn,Mt,m.top),ch=Kk(_l.fixed-ha,eo,_l.stretch,ai),Xd=Yk(Qu.stretch-bn,rn,gt,m.left),Zd=Kk(Qu.fixed-Zn,ga,Qu.stretch,Fr),Zh=Yk(gc.stretch-xn,Dn,Mt,m.top),fv=Kk(gc.fixed-ha,eo,gc.stretch,ai),hv=new u(Af,Xh),Mh=new u(Xd,Xh),dv=new u(Xd,Zh),yp=new u(Af,Zh),py=new u(Df/he,ch/he),z1=new u(Zd/he,fv/he),O1=y*Math.PI/180;if(O1){var q1=Math.sin(O1),$w=Math.cos(O1),y0=[$w,-q1,q1,$w];hv._matMult(y0),Mh._matMult(y0),yp._matMult(y0),dv._matMult(y0)}var r6=kl.stretch+kl.fixed,vO=Qu.stretch+Qu.fixed,i6=_l.stretch+_l.fixed,pO=gc.stretch+gc.fixed,Hp={x:ae.paddedRect.x+Hw+r6,y:ae.paddedRect.y+Hw+i6,w:vO-r6,h:pO-i6},Qw=ga/he/gt,n6=eo/he/Mt;return{tl:hv,tr:Mh,bl:yp,br:dv,tex:Hp,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:py,pixelOffsetBR:z1,minFontScaleX:Qw,minFontScaleY:n6,isSDF:I}};if(!U||!ae.stretchX&&!ae.stretchY)$.push(Za({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:Oe+1},{fixed:0,stretch:rt+1}));else for(var Ko=qQ(or,Gi,Fr),to=qQ(_r,Ti,ai),ao=0;ao0&&(Fr=Math.max(10,Fr),this.circleDiameter=Fr)}else{var ai=he.top*Oe-rt,Gi=he.bottom*Oe+rt,Ti=he.left*Oe-rt,bn=he.right*Oe+rt,rn=he.collisionPadding;if(rn&&(Ti-=rn[0]*Oe,ai-=rn[1]*Oe,bn+=rn[2]*Oe,Gi+=rn[3]*Oe),Mt){var xn=new u(Ti,ai),Dn=new u(bn,ai),Zn=new u(Ti,Gi),ga=new u(bn,Gi),ha=Mt*Math.PI/180;xn._rotate(ha),Dn._rotate(ha),Zn._rotate(ha),ga._rotate(ha),Ti=Math.min(xn.x,Dn.x,Zn.x,ga.x),bn=Math.max(xn.x,Dn.x,Zn.x,ga.x),ai=Math.min(xn.y,Dn.y,Zn.y,ga.y),Gi=Math.max(xn.y,Dn.y,Zn.y,ga.y)}y.emplaceBack(I.x,I.y,Ti,ai,bn,Gi,U,$,ae)}this.boxEndIndex=y.length},jw=function(y,I){if(y===void 0&&(y=[]),I===void 0&&(I=ret),this.data=y,this.length=this.data.length,this.compare=I,this.length>0)for(var U=(this.length>>1)-1;U>=0;U--)this._down(U)};jw.prototype.push=function(y){this.data.push(y),this.length++,this._up(this.length-1)},jw.prototype.pop=function(){if(this.length!==0){var y=this.data[0],I=this.data.pop();return this.length--,this.length>0&&(this.data[0]=I,this._down(0)),y}},jw.prototype.peek=function(){return this.data[0]},jw.prototype._up=function(y){for(var I=this,U=I.data,$=I.compare,ae=U[y];y>0;){var he=y-1>>1,Oe=U[he];if($(ae,Oe)>=0)break;U[y]=Oe,y=he}U[y]=ae},jw.prototype._down=function(y){for(var I=this,U=I.data,$=I.compare,ae=this.length>>1,he=U[y];y=0)break;U[y]=rt,y=Oe}U[y]=he};function ret(m,y){return my?1:0}function iet(m,y,I){y===void 0&&(y=1),I===void 0&&(I=!1);for(var U=1/0,$=1/0,ae=-1/0,he=-1/0,Oe=m[0],rt=0;rtae)&&(ae=gt.x),(!rt||gt.y>he)&&(he=gt.y)}var Mt=ae-U,or=he-$,_r=Math.min(Mt,or),vr=_r/2,Fr=new jw([],net);if(_r===0)return new u(U,$);for(var ai=U;aiTi.d||!Ti.d)&&(Ti=rn,I&&console.log("found best %d after %d probes",Math.round(1e4*rn.d)/1e4,bn)),!(rn.max-Ti.d<=y)&&(vr=rn.h/2,Fr.push(new Ww(rn.p.x-vr,rn.p.y-vr,vr,m)),Fr.push(new Ww(rn.p.x+vr,rn.p.y-vr,vr,m)),Fr.push(new Ww(rn.p.x-vr,rn.p.y+vr,vr,m)),Fr.push(new Ww(rn.p.x+vr,rn.p.y+vr,vr,m)),bn+=4)}return I&&(console.log("num probes: "+bn),console.log("best distance: "+Ti.d)),Ti.p}function net(m,y){return y.max-m.max}function Ww(m,y,I,U){this.p=new u(m,y),this.h=I,this.d=aet(this.p,U),this.max=this.d+this.h*Math.SQRT2}function aet(m,y){for(var I=!1,U=1/0,$=0;$m.y!=Mt.y>m.y&&m.x<(Mt.x-gt.x)*(m.y-gt.y)/(Mt.y-gt.y)+gt.x&&(I=!I),U=Math.min(U,cg(m,gt,Mt))}return(I?1:-1)*Math.sqrt(U)}function oet(m){for(var y=0,I=0,U=0,$=m[0],ae=0,he=$.length,Oe=he-1;ae=Ci||y0.y<0||y0.y>=Ci||cet(m,y0,$w,I,U,$,to,m.layers[0],m.collisionBoxArray,y.index,y.sourceLayerIndex,m.index,Ti,Dn,ha,rt,rn,Zn,eo,vr,y,ae,gt,Mt,he)};if(za==="line")for(var xs=0,jo=zQ(y.geometry,0,0,Ci,Ci);xs1){var Xh=QQe(Df,ga,I.vertical||Fr,U,ai,bn);Xh&&ao(Df,Xh)}}else if(y.type==="Polygon")for(var ch=0,Xd=Fw(y.geometry,0);chD1&&re(m.layerIds[0]+': Value for "text-size" is >= '+TS+'. Reduce your "text-size".')):Gi.kind==="composite"&&(Ti=[kd*vr.compositeTextSizes[0].evaluate(he,{},Fr),kd*vr.compositeTextSizes[1].evaluate(he,{},Fr)],(Ti[0]>D1||Ti[1]>D1)&&re(m.layerIds[0]+': Value for "text-size" is >= '+TS+'. Reduce your "text-size".')),m.addSymbols(m.text,ai,Ti,Oe,ae,he,gt,y,rt.lineStartIndex,rt.lineLength,_r,Fr);for(var bn=0,rn=Mt;bnD1&&re(m.layerIds[0]+': Value for "icon-size" is >= '+TS+'. Reduce your "icon-size".')):hv.kind==="composite"&&(Mh=[kd*Dn.compositeIconSizes[0].evaluate(xn,{},ga),kd*Dn.compositeIconSizes[1].evaluate(xn,{},ga)],(Mh[0]>D1||Mh[1]>D1)&&re(m.layerIds[0]+': Value for "icon-size" is >= '+TS+'. Reduce your "icon-size".')),m.addSymbols(m.icon,Zh,Mh,rn,bn,xn,!1,y,za.lineStartIndex,za.lineLength,-1,ga),Cl=m.icon.placedSymbolArray.length-1,fv&&(jo=fv.length*4,m.addSymbols(m.icon,fv,Mh,rn,bn,xn,uv.vertical,y,za.lineStartIndex,za.lineLength,-1,ga),kl=m.icon.placedSymbolArray.length-1)}for(var dv in U.horizontal){var yp=U.horizontal[dv];if(!Za){Qu=K(yp.text);var py=Oe.layout.get("text-rotate").evaluate(xn,{},ga);Za=new Jk(rt,y,gt,Mt,or,yp,_r,vr,Fr,py)}var z1=yp.positionedLines.length===1;if(El+=NQ(m,y,yp,ae,Oe,Fr,xn,ai,za,U.vertical?uv.horizontal:uv.horizontalOnly,z1?Object.keys(U.horizontal):[dv],_l,Cl,Dn,ga),z1)break}U.vertical&&(Iu+=NQ(m,y,U.vertical,ae,Oe,Fr,xn,ai,za,uv.vertical,["vertical"],_l,kl,Dn,ga));var O1=Za?Za.boxStartIndex:m.collisionBoxArray.length,q1=Za?Za.boxEndIndex:m.collisionBoxArray.length,$w=to?to.boxStartIndex:m.collisionBoxArray.length,y0=to?to.boxEndIndex:m.collisionBoxArray.length,r6=Ko?Ko.boxStartIndex:m.collisionBoxArray.length,vO=Ko?Ko.boxEndIndex:m.collisionBoxArray.length,i6=ao?ao.boxStartIndex:m.collisionBoxArray.length,pO=ao?ao.boxEndIndex:m.collisionBoxArray.length,Hp=-1,Qw=function(MS,iee){return MS&&MS.circleDiameter?Math.max(MS.circleDiameter,iee):iee};Hp=Qw(Za,Hp),Hp=Qw(to,Hp),Hp=Qw(Ko,Hp),Hp=Qw(ao,Hp);var n6=Hp>-1?1:0;n6&&(Hp*=ha/An),m.glyphOffsetArray.length>=Pu.MAX_GLYPHS&&re("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),xn.sortKey!==void 0&&m.addToSortKeyRanges(m.symbolInstances.length,xn.sortKey),m.symbolInstances.emplaceBack(y.x,y.y,_l.right>=0?_l.right:-1,_l.center>=0?_l.center:-1,_l.left>=0?_l.left:-1,_l.vertical||-1,Cl,kl,Qu,O1,q1,$w,y0,r6,vO,i6,pO,gt,El,Iu,xs,jo,n6,0,_r,gc,Af,Hp)}function fet(m,y,I,U){var $=m.compareText;if(!(y in $))$[y]=[];else for(var ae=$[y],he=ae.length-1;he>=0;he--)if(U.dist(ae[he])0)&&(he.value.kind!=="constant"||he.value.value.length>0),Mt=rt.value.kind!=="constant"||!!rt.value.value||Object.keys(rt.parameters).length>0,or=ae.get("symbol-sort-key");if(this.features=[],!(!gt&&!Mt)){for(var _r=I.iconDependencies,vr=I.glyphDependencies,Fr=I.availableImages,ai=new Gn(this.zoom),Gi=0,Ti=y;Gi=0;for(var Iu=0,Cl=eo.sections;Iu=0;rt--)he[rt]={x:I[rt].x,y:I[rt].y,tileUnitDistanceFromAnchor:ae},rt>0&&(ae+=I[rt-1].dist(I[rt]));for(var gt=0;gt0},Pu.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Pu.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},Pu.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},Pu.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},Pu.prototype.addIndicesForPlacedSymbol=function(y,I){for(var U=y.placedSymbolArray.get(I),$=U.vertexStartIndex+U.numGlyphs*4,ae=U.vertexStartIndex;ae<$;ae+=4)y.indexArray.emplaceBack(ae,ae+1,ae+2),y.indexArray.emplaceBack(ae+1,ae+2,ae+3)},Pu.prototype.getSortedSymbolIndexes=function(y){if(this.sortedAngle===y&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;for(var I=Math.sin(y),U=Math.cos(y),$=[],ae=[],he=[],Oe=0;Oe1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(y),this.sortedAngle=y,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var U=0,$=this.symbolInstanceIndexes;U<$.length;U+=1){var ae=$[U],he=this.symbolInstances.get(ae);this.featureSortOrder.push(he.featureIndex),[he.rightJustifiedTextSymbolIndex,he.centerJustifiedTextSymbolIndex,he.leftJustifiedTextSymbolIndex].forEach(function(Oe,rt,gt){Oe>=0&>.indexOf(Oe)===rt&&I.addIndicesForPlacedSymbol(I.text,Oe)}),he.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,he.verticalPlacedTextSymbolIndex),he.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,he.placedIconSymbolIndex),he.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,he.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},X("SymbolBucket",Pu,{omit:["layers","collisionBoxArray","features","compareText"]}),Pu.MAX_GLYPHS=65535,Pu.addDynamicAttributes=uO;function pet(m,y){return y.replace(/{([^{}]+)}/g,function(I,U){return U in m?String(m[U]):""})}var get=new Br({"symbol-placement":new Ee(Fn.layout_symbol["symbol-placement"]),"symbol-spacing":new Ee(Fn.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ee(Fn.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new xt(Fn.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Ee(Fn.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Ee(Fn.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Ee(Fn.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ee(Fn.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ee(Fn.layout_symbol["icon-rotation-alignment"]),"icon-size":new xt(Fn.layout_symbol["icon-size"]),"icon-text-fit":new Ee(Fn.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Ee(Fn.layout_symbol["icon-text-fit-padding"]),"icon-image":new xt(Fn.layout_symbol["icon-image"]),"icon-rotate":new xt(Fn.layout_symbol["icon-rotate"]),"icon-padding":new Ee(Fn.layout_symbol["icon-padding"]),"icon-keep-upright":new Ee(Fn.layout_symbol["icon-keep-upright"]),"icon-offset":new xt(Fn.layout_symbol["icon-offset"]),"icon-anchor":new xt(Fn.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Ee(Fn.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ee(Fn.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ee(Fn.layout_symbol["text-rotation-alignment"]),"text-field":new xt(Fn.layout_symbol["text-field"]),"text-font":new xt(Fn.layout_symbol["text-font"]),"text-size":new xt(Fn.layout_symbol["text-size"]),"text-max-width":new xt(Fn.layout_symbol["text-max-width"]),"text-line-height":new Ee(Fn.layout_symbol["text-line-height"]),"text-letter-spacing":new xt(Fn.layout_symbol["text-letter-spacing"]),"text-justify":new xt(Fn.layout_symbol["text-justify"]),"text-radial-offset":new xt(Fn.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Ee(Fn.layout_symbol["text-variable-anchor"]),"text-anchor":new xt(Fn.layout_symbol["text-anchor"]),"text-max-angle":new Ee(Fn.layout_symbol["text-max-angle"]),"text-writing-mode":new Ee(Fn.layout_symbol["text-writing-mode"]),"text-rotate":new xt(Fn.layout_symbol["text-rotate"]),"text-padding":new Ee(Fn.layout_symbol["text-padding"]),"text-keep-upright":new Ee(Fn.layout_symbol["text-keep-upright"]),"text-transform":new xt(Fn.layout_symbol["text-transform"]),"text-offset":new xt(Fn.layout_symbol["text-offset"]),"text-allow-overlap":new Ee(Fn.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Ee(Fn.layout_symbol["text-ignore-placement"]),"text-optional":new Ee(Fn.layout_symbol["text-optional"])}),met=new Br({"icon-opacity":new xt(Fn.paint_symbol["icon-opacity"]),"icon-color":new xt(Fn.paint_symbol["icon-color"]),"icon-halo-color":new xt(Fn.paint_symbol["icon-halo-color"]),"icon-halo-width":new xt(Fn.paint_symbol["icon-halo-width"]),"icon-halo-blur":new xt(Fn.paint_symbol["icon-halo-blur"]),"icon-translate":new Ee(Fn.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ee(Fn.paint_symbol["icon-translate-anchor"]),"text-opacity":new xt(Fn.paint_symbol["text-opacity"]),"text-color":new xt(Fn.paint_symbol["text-color"],{runtimeType:Ol,getOverride:function(m){return m.textColor},hasOverride:function(m){return!!m.textColor}}),"text-halo-color":new xt(Fn.paint_symbol["text-halo-color"]),"text-halo-width":new xt(Fn.paint_symbol["text-halo-width"]),"text-halo-blur":new xt(Fn.paint_symbol["text-halo-blur"]),"text-translate":new Ee(Fn.paint_symbol["text-translate"]),"text-translate-anchor":new Ee(Fn.paint_symbol["text-translate-anchor"])}),cO={paint:met,layout:get},Yw=function(y){this.type=y.property.overrides?y.property.overrides.runtimeType:ac,this.defaultValue=y};Yw.prototype.evaluate=function(y){if(y.formattedSection){var I=this.defaultValue.property.overrides;if(I&&I.hasOverride(y.formattedSection))return I.getOverride(y.formattedSection)}return y.feature&&y.featureState?this.defaultValue.evaluate(y.feature,y.featureState):this.defaultValue.property.specification.default},Yw.prototype.eachChild=function(y){if(!this.defaultValue.isConstant()){var I=this.defaultValue.value;y(I._styleExpression.expression)}},Yw.prototype.outputDefined=function(){return!1},Yw.prototype.serialize=function(){return null},X("FormatSectionOverride",Yw,{omit:["defaultValue"]});var yet=function(m){function y(I){m.call(this,I,cO)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.recalculate=function(U,$){if(m.prototype.recalculate.call(this,U,$),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var ae=this.layout.get("text-writing-mode");if(ae){for(var he=[],Oe=0,rt=ae;Oe",targetMapId:$,sourceMapId:he.mapId})}}},Kw.prototype.receive=function(y){var I=y.data,U=I.id;if(U&&!(I.targetMapId&&this.mapId!==I.targetMapId))if(I.type===""){delete this.tasks[U];var $=this.cancelCallbacks[U];delete this.cancelCallbacks[U],$&&$()}else ke()||I.mustQueue?(this.tasks[U]=I,this.taskQueue.push(U),this.invoker.trigger()):this.processTask(U,I)},Kw.prototype.process=function(){if(this.taskQueue.length){var y=this.taskQueue.shift(),I=this.tasks[y];delete this.tasks[y],this.taskQueue.length&&this.invoker.trigger(),I&&this.processTask(y,I)}},Kw.prototype.processTask=function(y,I){var U=this;if(I.type===""){var $=this.callbacks[y];delete this.callbacks[y],$&&(I.error?$(Ze(I.error)):$(null,Ze(I.data)))}else{var ae=!1,he=Se(this.globalScope)?void 0:[],Oe=I.hasCallback?function(_r,vr){ae=!0,delete U.cancelCallbacks[y],U.target.postMessage({id:y,type:"",sourceMapId:U.mapId,error:_r?He(_r):null,data:He(vr,he)},he)}:function(_r){ae=!0},rt=null,gt=Ze(I.data);if(this.parent[I.type])rt=this.parent[I.type](I.sourceMapId,gt,Oe);else if(this.parent.getWorkerSource){var Mt=I.type.split("."),or=this.parent.getWorkerSource(I.sourceMapId,Mt[0],gt.source);rt=or[Mt[1]](gt,Oe)}else Oe(new Error("Could not find function "+I.type));!ae&&rt&&rt.cancel&&(this.cancelCallbacks[y]=rt.cancel)}},Kw.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function Let(m,y,I){y=Math.pow(2,I)-y-1;var U=WQ(m*256,y*256,I),$=WQ((m+1)*256,(y+1)*256,I);return U[0]+","+U[1]+","+$[0]+","+$[1]}function WQ(m,y,I){var U=2*Math.PI*6378137/256/Math.pow(2,I),$=m*U-2*Math.PI*6378137/2,ae=y*U-2*Math.PI*6378137/2;return[$,ae]}var lh=function(y,I){y&&(I?this.setSouthWest(y).setNorthEast(I):y.length===4?this.setSouthWest([y[0],y[1]]).setNorthEast([y[2],y[3]]):this.setSouthWest(y[0]).setNorthEast(y[1]))};lh.prototype.setNorthEast=function(y){return this._ne=y instanceof Hc?new Hc(y.lng,y.lat):Hc.convert(y),this},lh.prototype.setSouthWest=function(y){return this._sw=y instanceof Hc?new Hc(y.lng,y.lat):Hc.convert(y),this},lh.prototype.extend=function(y){var I=this._sw,U=this._ne,$,ae;if(y instanceof Hc)$=y,ae=y;else if(y instanceof lh){if($=y._sw,ae=y._ne,!$||!ae)return this}else{if(Array.isArray(y))if(y.length===4||y.every(Array.isArray)){var he=y;return this.extend(lh.convert(he))}else{var Oe=y;return this.extend(Hc.convert(Oe))}return this}return!I&&!U?(this._sw=new Hc($.lng,$.lat),this._ne=new Hc(ae.lng,ae.lat)):(I.lng=Math.min($.lng,I.lng),I.lat=Math.min($.lat,I.lat),U.lng=Math.max(ae.lng,U.lng),U.lat=Math.max(ae.lat,U.lat)),this},lh.prototype.getCenter=function(){return new Hc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},lh.prototype.getSouthWest=function(){return this._sw},lh.prototype.getNorthEast=function(){return this._ne},lh.prototype.getNorthWest=function(){return new Hc(this.getWest(),this.getNorth())},lh.prototype.getSouthEast=function(){return new Hc(this.getEast(),this.getSouth())},lh.prototype.getWest=function(){return this._sw.lng},lh.prototype.getSouth=function(){return this._sw.lat},lh.prototype.getEast=function(){return this._ne.lng},lh.prototype.getNorth=function(){return this._ne.lat},lh.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},lh.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},lh.prototype.isEmpty=function(){return!(this._sw&&this._ne)},lh.prototype.contains=function(y){var I=Hc.convert(y),U=I.lng,$=I.lat,ae=this._sw.lat<=$&&$<=this._ne.lat,he=this._sw.lng<=U&&U<=this._ne.lng;return this._sw.lng>this._ne.lng&&(he=this._sw.lng>=U&&U>=this._ne.lng),ae&&he},lh.convert=function(y){return!y||y instanceof lh?y:new lh(y)};var XQ=63710088e-1,Hc=function(y,I){if(isNaN(y)||isNaN(I))throw new Error("Invalid LngLat object: ("+y+", "+I+")");if(this.lng=+y,this.lat=+I,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Hc.prototype.wrap=function(){return new Hc(C(this.lng,-180,180),this.lat)},Hc.prototype.toArray=function(){return[this.lng,this.lat]},Hc.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Hc.prototype.distanceTo=function(y){var I=Math.PI/180,U=this.lat*I,$=y.lat*I,ae=Math.sin(U)*Math.sin($)+Math.cos(U)*Math.cos($)*Math.cos((y.lng-this.lng)*I),he=XQ*Math.acos(Math.min(ae,1));return he},Hc.prototype.toBounds=function(y){y===void 0&&(y=0);var I=40075017,U=360*y/I,$=U/Math.cos(Math.PI/180*this.lat);return new lh(new Hc(this.lng-$,this.lat-U),new Hc(this.lng+$,this.lat+U))},Hc.convert=function(y){if(y instanceof Hc)return y;if(Array.isArray(y)&&(y.length===2||y.length===3))return new Hc(Number(y[0]),Number(y[1]));if(!Array.isArray(y)&&typeof y=="object"&&y!==null)return new Hc(Number("lng"in y?y.lng:y.lon),Number(y.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var ZQ=2*Math.PI*XQ;function YQ(m){return ZQ*Math.cos(m*Math.PI/180)}function KQ(m){return(180+m)/360}function JQ(m){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+m*Math.PI/360)))/360}function $Q(m,y){return m/YQ(y)}function Pet(m){return m*360-180}function hO(m){var y=180-m*360;return 360/Math.PI*Math.atan(Math.exp(y*Math.PI/180))-90}function Iet(m,y){return m*YQ(hO(y))}function Ret(m){return 1/Math.cos(m*Math.PI/180)}var nb=function(y,I,U){U===void 0&&(U=0),this.x=+y,this.y=+I,this.z=+U};nb.fromLngLat=function(y,I){I===void 0&&(I=0);var U=Hc.convert(y);return new nb(KQ(U.lng),JQ(U.lat),$Q(I,U.lat))},nb.prototype.toLngLat=function(){return new Hc(Pet(this.x),hO(this.y))},nb.prototype.toAltitude=function(){return Iet(this.z,this.y)},nb.prototype.meterInMercatorCoordinateUnits=function(){return 1/ZQ*Ret(hO(this.y))};var ab=function(y,I,U){this.z=y,this.x=I,this.y=U,this.key=SS(0,y,y,I,U)};ab.prototype.equals=function(y){return this.z===y.z&&this.x===y.x&&this.y===y.y},ab.prototype.url=function(y,I){var U=Let(this.x,this.y,this.z),$=Det(this.z,this.x,this.y);return y[(this.x+this.y)%y.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(I==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",$).replace("{bbox-epsg-3857}",U)},ab.prototype.getTilePoint=function(y){var I=Math.pow(2,this.z);return new u((y.x*I-this.x)*Ci,(y.y*I-this.y)*Ci)},ab.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var QQ=function(y,I){this.wrap=y,this.canonical=I,this.key=SS(y,I.z,I.z,I.x,I.y)},uh=function(y,I,U,$,ae){this.overscaledZ=y,this.wrap=I,this.canonical=new ab(U,+$,+ae),this.key=SS(I,y,U,$,ae)};uh.prototype.equals=function(y){return this.overscaledZ===y.overscaledZ&&this.wrap===y.wrap&&this.canonical.equals(y.canonical)},uh.prototype.scaledTo=function(y){var I=this.canonical.z-y;return y>this.canonical.z?new uh(y,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new uh(y,this.wrap,y,this.canonical.x>>I,this.canonical.y>>I)},uh.prototype.calculateScaledKey=function(y,I){var U=this.canonical.z-y;return y>this.canonical.z?SS(this.wrap*+I,y,this.canonical.z,this.canonical.x,this.canonical.y):SS(this.wrap*+I,y,y,this.canonical.x>>U,this.canonical.y>>U)},uh.prototype.isChildOf=function(y){if(y.wrap!==this.wrap)return!1;var I=this.canonical.z-y.canonical.z;return y.overscaledZ===0||y.overscaledZ>I&&y.canonical.y===this.canonical.y>>I},uh.prototype.children=function(y){if(this.overscaledZ>=y)return[new uh(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var I=this.canonical.z+1,U=this.canonical.x*2,$=this.canonical.y*2;return[new uh(I,this.wrap,I,U,$),new uh(I,this.wrap,I,U+1,$),new uh(I,this.wrap,I,U,$+1),new uh(I,this.wrap,I,U+1,$+1)]},uh.prototype.isLessThan=function(y){return this.wrapy.wrap?!1:this.overscaledZy.overscaledZ?!1:this.canonical.xy.canonical.x?!1:this.canonical.y0;ae--)$=1<=this.dim+1||I<-1||I>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(I+1)*this.stride+(y+1)},dy.prototype._unpackMapbox=function(y,I,U){return(y*256*256+I*256+U)/10-1e4},dy.prototype._unpackTerrarium=function(y,I,U){return y*256+I+U/256-32768},dy.prototype.getPixels=function(){return new wh({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},dy.prototype.backfillBorder=function(y,I,U){if(this.dim!==y.dim)throw new Error("dem dimension mismatch");var $=I*this.dim,ae=I*this.dim+this.dim,he=U*this.dim,Oe=U*this.dim+this.dim;switch(I){case-1:$=ae-1;break;case 1:ae=$+1;break}switch(U){case-1:he=Oe-1;break;case 1:Oe=he+1;break}for(var rt=-I*this.dim,gt=-U*this.dim,Mt=he;Mt=0&&or[3]>=0&&rt.insert(Oe,or[0],or[1],or[2],or[3])}},vy.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new pg.VectorTile(new Xa(this.rawTileData)).layers,this.sourceLayerCoder=new e6(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},vy.prototype.query=function(y,I,U,$){var ae=this;this.loadVTLayers();for(var he=y.params||{},Oe=Ci/y.tileSize/y.scale,rt=be(he.filter),gt=y.queryGeometry,Mt=y.queryPadding*Oe,or=tee(gt),_r=this.grid.query(or.minX-Mt,or.minY-Mt,or.maxX+Mt,or.maxY+Mt),vr=tee(y.cameraQueryGeometry),Fr=this.grid3D.query(vr.minX-Mt,vr.minY-Mt,vr.maxX+Mt,vr.maxY+Mt,function(Zn,ga,ha,eo){return vp(y.cameraQueryGeometry,Zn-Mt,ga-Mt,ha+Mt,eo+Mt)}),ai=0,Gi=Fr;ai$)ae=!1;else if(!I)ae=!0;else if(this.expirationTime=Ga.maxzoom)&&Ga.visibility!=="none"){h(Wn,this.zoom,ar);var vo=Ji[Ga.id]=Ga.createBucket({index:zi.bucketLayerIDs.length,layers:Wn,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Ba,sourceID:this.source});vo.populate(la,en,this.tileID.canonical),zi.bucketLayerIDs.push(Wn.map(function(ki){return ki.id}))}}}}var jn,St,Cr,Qr,pi=i.mapObject(en.glyphDependencies,function(ki){return Object.keys(ki).map(Number)});Object.keys(pi).length?Er.send("getGlyphs",{uid:this.uid,stacks:pi},function(ki,_n){jn||(jn=ki,St=_n,En.call(ri))}):St={};var fn=Object.keys(en.iconDependencies);fn.length?Er.send("getImages",{icons:fn,source:this.source,tileID:this.tileID,type:"icons"},function(ki,_n){jn||(jn=ki,Cr=_n,En.call(ri))}):Cr={};var Sn=Object.keys(en.patternDependencies);Sn.length?Er.send("getImages",{icons:Sn,source:this.source,tileID:this.tileID,type:"patterns"},function(ki,_n){jn||(jn=ki,Qr=_n,En.call(ri))}):Qr={},En.call(this);function En(){if(jn)return Zr(jn);if(St&&Cr&&Qr){var ki=new c(St),_n=new i.ImageAtlas(Cr,Qr);for(var ya in Ji){var Jn=Ji[ya];Jn instanceof i.SymbolBucket?(h(Jn.layers,this.zoom,ar),i.performSymbolLayout(Jn,St,ki.positions,Cr,_n.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Jn.hasPattern&&(Jn instanceof i.LineBucket||Jn instanceof i.FillBucket||Jn instanceof i.FillExtrusionBucket)&&(h(Jn.layers,this.zoom,ar),Jn.addFeatures(en,this.tileID.canonical,_n.patternPositions))}this.status="done",Zr(null,{buckets:i.values(Ji).filter(function(Ma){return!Ma.isEmpty()}),featureIndex:zi,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ki.image,imageAtlas:_n,glyphMap:this.returnDependencies?St:null,iconMap:this.returnDependencies?Cr:null,glyphPositions:this.returnDependencies?ki.positions:null})}}};function h(Vt,_t,tr){for(var ar=new i.EvaluationParameters(_t),Er=0,Zr=Vt;Er=0!=!!_t&&Vt.reverse()}var L=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,x=function(_t){this._feature=_t,this.extent=i.EXTENT,this.type=_t.type,this.properties=_t.tags,"id"in _t&&!isNaN(_t.id)&&(this.id=parseInt(_t.id,10))};x.prototype.loadGeometry=function(){if(this._feature.type===1){for(var _t=[],tr=0,ar=this._feature.geometry;tr>31}function ke(Vt,_t){for(var tr=Vt.loadGeometry(),ar=Vt.type,Er=0,Zr=0,ri=tr.length,$r=0;$r>1;Se(Vt,_t,ri,ar,Er,Zr%2),ie(Vt,_t,tr,ar,ri-1,Zr+1),ie(Vt,_t,tr,ri+1,Er,Zr+1)}}function Se(Vt,_t,tr,ar,Er,Zr){for(;Er>ar;){if(Er-ar>600){var ri=Er-ar+1,$r=tr-ar+1,zi=Math.log(ri),Ji=.5*Math.exp(2*zi/3),en=.5*Math.sqrt(zi*Ji*(ri-Ji)/ri)*($r-ri/2<0?-1:1),cn=Math.max(ar,Math.floor(tr-$r*Ji/ri+en)),yn=Math.min(Er,Math.floor(tr+(ri-$r)*Ji/ri+en));Se(Vt,_t,tr,cn,yn,Zr)}var Mn=_t[2*tr+Zr],Ba=ar,la=Er;for(Le(Vt,_t,ar,tr),_t[2*Er+Zr]>Mn&&Le(Vt,_t,ar,Er);BaMn;)la--}_t[2*ar+Zr]===Mn?Le(Vt,_t,ar,la):(la++,Le(Vt,_t,la,Er)),la<=tr&&(ar=la+1),tr<=la&&(Er=la-1)}}function Le(Vt,_t,tr,ar){Ae(Vt,tr,ar),Ae(_t,2*tr,2*ar),Ae(_t,2*tr+1,2*ar+1)}function Ae(Vt,_t,tr){var ar=Vt[_t];Vt[_t]=Vt[tr],Vt[tr]=ar}function De(Vt,_t,tr,ar,Er,Zr,ri){for(var $r=[0,Vt.length-1,0],zi=[],Ji,en;$r.length;){var cn=$r.pop(),yn=$r.pop(),Mn=$r.pop();if(yn-Mn<=ri){for(var Ba=Mn;Ba<=yn;Ba++)Ji=_t[2*Ba],en=_t[2*Ba+1],Ji>=tr&&Ji<=Er&&en>=ar&&en<=Zr&&zi.push(Vt[Ba]);continue}var la=Math.floor((Mn+yn)/2);Ji=_t[2*la],en=_t[2*la+1],Ji>=tr&&Ji<=Er&&en>=ar&&en<=Zr&&zi.push(Vt[la]);var ma=(cn+1)%2;(cn===0?tr<=Ji:ar<=en)&&($r.push(Mn),$r.push(la-1),$r.push(ma)),(cn===0?Er>=Ji:Zr>=en)&&($r.push(la+1),$r.push(yn),$r.push(ma))}return zi}function Pe(Vt,_t,tr,ar,Er,Zr){for(var ri=[0,Vt.length-1,0],$r=[],zi=Er*Er;ri.length;){var Ji=ri.pop(),en=ri.pop(),cn=ri.pop();if(en-cn<=Zr){for(var yn=cn;yn<=en;yn++)ge(_t[2*yn],_t[2*yn+1],tr,ar)<=zi&&$r.push(Vt[yn]);continue}var Mn=Math.floor((cn+en)/2),Ba=_t[2*Mn],la=_t[2*Mn+1];ge(Ba,la,tr,ar)<=zi&&$r.push(Vt[Mn]);var ma=(Ji+1)%2;(Ji===0?tr-Er<=Ba:ar-Er<=la)&&(ri.push(cn),ri.push(Mn-1),ri.push(ma)),(Ji===0?tr+Er>=Ba:ar+Er>=la)&&(ri.push(Mn+1),ri.push(en),ri.push(ma))}return $r}function ge(Vt,_t,tr,ar){var Er=Vt-tr,Zr=_t-ar;return Er*Er+Zr*Zr}var Fe=function(Vt){return Vt[0]},ce=function(Vt){return Vt[1]},Ye=function(_t,tr,ar,Er,Zr){tr===void 0&&(tr=Fe),ar===void 0&&(ar=ce),Er===void 0&&(Er=64),Zr===void 0&&(Zr=Float64Array),this.nodeSize=Er,this.points=_t;for(var ri=_t.length<65536?Uint16Array:Uint32Array,$r=this.ids=new ri(_t.length),zi=this.coords=new Zr(_t.length*2),Ji=0;Ji<_t.length;Ji++)$r[Ji]=Ji,zi[2*Ji]=tr(_t[Ji]),zi[2*Ji+1]=ar(_t[Ji]);ie($r,zi,Er,0,$r.length-1,0)};Ye.prototype.range=function(_t,tr,ar,Er){return De(this.ids,this.coords,_t,tr,ar,Er,this.nodeSize)},Ye.prototype.within=function(_t,tr,ar){return Pe(this.ids,this.coords,_t,tr,ar,this.nodeSize)};var ct={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(Vt){return Vt}},pt=function(_t){this.options=ur(Object.create(ct),_t),this.trees=new Array(this.options.maxZoom+1)};pt.prototype.load=function(_t){var tr=this.options,ar=tr.log,Er=tr.minZoom,Zr=tr.maxZoom,ri=tr.nodeSize;ar&&console.time("total time");var $r="prepare "+_t.length+" points";ar&&console.time($r),this.points=_t;for(var zi=[],Ji=0;Ji<_t.length;Ji++)_t[Ji].geometry&&zi.push(st(_t[Ji],Ji));this.trees[Zr+1]=new Ye(zi,Qe,Et,ri,Float32Array),ar&&console.timeEnd($r);for(var en=Zr;en>=Er;en--){var cn=+Date.now();zi=this._cluster(zi,en),this.trees[en]=new Ye(zi,Qe,Et,ri,Float32Array),ar&&console.log("z%d: %d clusters in %dms",en,zi.length,+Date.now()-cn)}return ar&&console.timeEnd("total time"),this},pt.prototype.getClusters=function(_t,tr){var ar=((_t[0]+180)%360+360)%360-180,Er=Math.max(-90,Math.min(90,_t[1])),Zr=_t[2]===180?180:((_t[2]+180)%360+360)%360-180,ri=Math.max(-90,Math.min(90,_t[3]));if(_t[2]-_t[0]>=360)ar=-180,Zr=180;else if(ar>Zr){var $r=this.getClusters([ar,Er,180,ri],tr),zi=this.getClusters([-180,Er,Zr,ri],tr);return $r.concat(zi)}for(var Ji=this.trees[this._limitZoom(tr)],en=Ji.range(Nt(ar),$t(ri),Nt(Zr),$t(Er)),cn=[],yn=0,Mn=en;yntr&&(la+=Wo.numPoints||1)}if(la>=zi){for(var da=cn.x*Ba,Wn=cn.y*Ba,Ga=$r&&Ba>1?this._map(cn,!0):null,vo=(en<<5)+(tr+1)+this.points.length,jn=0,St=Mn;jn1)for(var fn=0,Sn=Mn;fn>5},pt.prototype._getOriginZoom=function(_t){return(_t-this.points.length)%32},pt.prototype._map=function(_t,tr){if(_t.numPoints)return tr?ur({},_t.properties):_t.properties;var ar=this.points[_t.index].properties,Er=this.options.map(ar);return tr&&Er===ar?ur({},Er):Er};function Wt(Vt,_t,tr,ar,Er){return{x:Vt,y:_t,zoom:1/0,id:tr,parentId:-1,numPoints:ar,properties:Er}}function st(Vt,_t){var tr=Vt.geometry.coordinates,ar=tr[0],Er=tr[1];return{x:Nt(ar),y:$t(Er),zoom:1/0,index:_t,parentId:-1}}function lt(Vt){return{type:"Feature",id:Vt.id,properties:Gt(Vt),geometry:{type:"Point",coordinates:[sr(Vt.x),wr(Vt.y)]}}}function Gt(Vt){var _t=Vt.numPoints,tr=_t>=1e4?Math.round(_t/1e3)+"k":_t>=1e3?Math.round(_t/100)/10+"k":_t;return ur(ur({},Vt.properties),{cluster:!0,cluster_id:Vt.id,point_count:_t,point_count_abbreviated:tr})}function Nt(Vt){return Vt/360+.5}function $t(Vt){var _t=Math.sin(Vt*Math.PI/180),tr=.5-.25*Math.log((1+_t)/(1-_t))/Math.PI;return tr<0?0:tr>1?1:tr}function sr(Vt){return(Vt-.5)*360}function wr(Vt){var _t=(180-Vt*360)*Math.PI/180;return 360*Math.atan(Math.exp(_t))/Math.PI-90}function ur(Vt,_t){for(var tr in _t)Vt[tr]=_t[tr];return Vt}function Qe(Vt){return Vt.x}function Et(Vt){return Vt.y}function er(Vt,_t,tr,ar){for(var Er=ar,Zr=tr-_t>>1,ri=tr-_t,$r,zi=Vt[_t],Ji=Vt[_t+1],en=Vt[tr],cn=Vt[tr+1],yn=_t+3;ynEr)$r=yn,Er=Mn;else if(Mn===Er){var Ba=Math.abs(yn-Zr);Baar&&($r-_t>3&&er(Vt,_t,$r,ar),Vt[$r+2]=Er,tr-$r>3&&er(Vt,$r,tr,ar))}function Ut(Vt,_t,tr,ar,Er,Zr){var ri=Er-tr,$r=Zr-ar;if(ri!==0||$r!==0){var zi=((Vt-tr)*ri+(_t-ar)*$r)/(ri*ri+$r*$r);zi>1?(tr=Er,ar=Zr):zi>0&&(tr+=ri*zi,ar+=$r*zi)}return ri=Vt-tr,$r=_t-ar,ri*ri+$r*$r}function Ft(Vt,_t,tr,ar){var Er={id:typeof Vt=="undefined"?null:Vt,type:_t,geometry:tr,tags:ar,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return bt(Er),Er}function bt(Vt){var _t=Vt.geometry,tr=Vt.type;if(tr==="Point"||tr==="MultiPoint"||tr==="LineString")yt(Vt,_t);else if(tr==="Polygon"||tr==="MultiLineString")for(var ar=0;ar<_t.length;ar++)yt(Vt,_t[ar]);else if(tr==="MultiPolygon")for(ar=0;ar<_t.length;ar++)for(var Er=0;Er<_t[ar].length;Er++)yt(Vt,_t[ar][Er])}function yt(Vt,_t){for(var tr=0;tr<_t.length;tr+=3)Vt.minX=Math.min(Vt.minX,_t[tr]),Vt.minY=Math.min(Vt.minY,_t[tr+1]),Vt.maxX=Math.max(Vt.maxX,_t[tr]),Vt.maxY=Math.max(Vt.maxY,_t[tr+1])}function Yt(Vt,_t){var tr=[];if(Vt.type==="FeatureCollection")for(var ar=0;ar0&&(ar?ri+=(Er*Ji-zi*Zr)/2:ri+=Math.sqrt(Math.pow(zi-Er,2)+Math.pow(Ji-Zr,2))),Er=zi,Zr=Ji}var en=_t.length-3;_t[2]=1,er(_t,0,en,tr),_t[en+2]=1,_t.size=Math.abs(ri),_t.start=0,_t.end=_t.size}function ei(Vt,_t,tr,ar){for(var Er=0;Er1?1:tr}function dt(Vt,_t,tr,ar,Er,Zr,ri,$r){if(tr/=_t,ar/=_t,Zr>=tr&&ri=ar)return null;for(var zi=[],Ji=0;Ji=tr&&Ba=ar)continue;var la=[];if(yn==="Point"||yn==="MultiPoint")Ge(cn,la,tr,ar,Er);else if(yn==="LineString")Je(cn,la,tr,ar,Er,!1,$r.lineMetrics);else if(yn==="MultiLineString")$e(cn,la,tr,ar,Er,!1);else if(yn==="Polygon")$e(cn,la,tr,ar,Er,!0);else if(yn==="MultiPolygon")for(var ma=0;ma=tr&&ri<=ar&&(_t.push(Vt[Zr]),_t.push(Vt[Zr+1]),_t.push(Vt[Zr+2]))}}function Je(Vt,_t,tr,ar,Er,Zr,ri){for(var $r=je(Vt),zi=Er===0?Ie:xe,Ji=Vt.start,en,cn,yn=0;yntr&&(cn=zi($r,Mn,Ba,ma,Wa,tr),ri&&($r.start=Ji+en*cn)):Fa>ar?Wo=tr&&(cn=zi($r,Mn,Ba,ma,Wa,tr),da=!0),Wo>ar&&Fa<=ar&&(cn=zi($r,Mn,Ba,ma,Wa,ar),da=!0),!Zr&&da&&(ri&&($r.end=Ji+en*cn),_t.push($r),$r=je(Vt)),ri&&(Ji+=en)}var Wn=Vt.length-3;Mn=Vt[Wn],Ba=Vt[Wn+1],la=Vt[Wn+2],Fa=Er===0?Mn:Ba,Fa>=tr&&Fa<=ar&&wt($r,Mn,Ba,la),Wn=$r.length-3,Zr&&Wn>=3&&($r[Wn]!==$r[0]||$r[Wn+1]!==$r[1])&&wt($r,$r[0],$r[1],$r[2]),$r.length&&_t.push($r)}function je(Vt){var _t=[];return _t.size=Vt.size,_t.start=Vt.start,_t.end=Vt.end,_t}function $e(Vt,_t,tr,ar,Er,Zr){for(var ri=0;riri.maxX&&(ri.maxX=en),cn>ri.maxY&&(ri.maxY=cn)}return ri}function di(Vt,_t,tr,ar){var Er=_t.geometry,Zr=_t.type,ri=[];if(Zr==="Point"||Zr==="MultiPoint")for(var $r=0;$r0&&_t.size<(Er?ri:ar)){tr.numPoints+=_t.length/3;return}for(var $r=[],zi=0;zi<_t.length;zi+=3)(ar===0||_t[zi+2]>ri)&&(tr.numSimplified++,$r.push(_t[zi]),$r.push(_t[zi+1])),tr.numPoints++;Er&&fi($r,Zr),Vt.push($r)}function fi(Vt,_t){for(var tr=0,ar=0,Er=Vt.length,Zr=Er-2;ar0===_t)for(ar=0,Er=Vt.length;ar24)throw new Error("maxZoom should be in the 0-24 range");if(_t.promoteId&&_t.generateId)throw new Error("promoteId and generateId cannot be used together.");var ar=Yt(Vt,_t);this.tiles={},this.tileCoords=[],tr&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",_t.indexMaxZoom,_t.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),ar=Ce(ar,_t),ar.length&&this.splitTile(ar,0,0,0),tr&&(ar.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Pn.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Pn.prototype.splitTile=function(Vt,_t,tr,ar,Er,Zr,ri){for(var $r=[Vt,_t,tr,ar],zi=this.options,Ji=zi.debug;$r.length;){ar=$r.pop(),tr=$r.pop(),_t=$r.pop(),Vt=$r.pop();var en=1<<_t,cn=wn(_t,tr,ar),yn=this.tiles[cn];if(!yn&&(Ji>1&&console.time("creation"),yn=this.tiles[cn]=oi(Vt,_t,tr,ar,zi),this.tileCoords.push({z:_t,x:tr,y:ar}),Ji)){Ji>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",_t,tr,ar,yn.numFeatures,yn.numPoints,yn.numSimplified),console.timeEnd("creation"));var Mn="z"+_t;this.stats[Mn]=(this.stats[Mn]||0)+1,this.total++}if(yn.source=Vt,Er){if(_t===zi.maxZoom||_t===Er)continue;var Ba=1<1&&console.time("clipping");var la=.5*zi.buffer/zi.extent,ma=.5-la,Wa=.5+la,Fa=1+la,Wo,da,Wn,Ga,vo,jn;Wo=da=Wn=Ga=null,vo=dt(Vt,en,tr-la,tr+Wa,0,yn.minX,yn.maxX,zi),jn=dt(Vt,en,tr+ma,tr+Fa,0,yn.minX,yn.maxX,zi),Vt=null,vo&&(Wo=dt(vo,en,ar-la,ar+Wa,1,yn.minY,yn.maxY,zi),da=dt(vo,en,ar+ma,ar+Fa,1,yn.minY,yn.maxY,zi),vo=null),jn&&(Wn=dt(jn,en,ar-la,ar+Wa,1,yn.minY,yn.maxY,zi),Ga=dt(jn,en,ar+ma,ar+Fa,1,yn.minY,yn.maxY,zi),jn=null),Ji>1&&console.timeEnd("clipping"),$r.push(Wo||[],_t+1,tr*2,ar*2),$r.push(da||[],_t+1,tr*2,ar*2+1),$r.push(Wn||[],_t+1,tr*2+1,ar*2),$r.push(Ga||[],_t+1,tr*2+1,ar*2+1)}}},Pn.prototype.getTile=function(Vt,_t,tr){var ar=this.options,Er=ar.extent,Zr=ar.debug;if(Vt<0||Vt>24)return null;var ri=1<1&&console.log("drilling down to z%d-%d-%d",Vt,_t,tr);for(var zi=Vt,Ji=_t,en=tr,cn;!cn&&zi>0;)zi--,Ji=Math.floor(Ji/2),en=Math.floor(en/2),cn=this.tiles[wn(zi,Ji,en)];return!cn||!cn.source?null:(Zr>1&&console.log("found parent tile z%d-%d-%d",zi,Ji,en),Zr>1&&console.time("drilling down"),this.splitTile(cn.source,zi,Ji,en,Vt,_t,tr),Zr>1&&console.timeEnd("drilling down"),this.tiles[$r]?ir(this.tiles[$r],Er):null)};function wn(Vt,_t,tr){return((1<=0?0:Y.button},o.remove=function(Y){Y.parentNode&&Y.parentNode.removeChild(Y)};function _(Y,D,J){var q,K,de,ne=i.browser.devicePixelRatio>1?"@2x":"",we=i.getJSON(D.transformRequest(D.normalizeSpriteURL(Y,ne,".json"),i.ResourceType.SpriteJSON),function(Zt,hr){we=null,de||(de=Zt,q=hr,ft())}),Ue=i.getImage(D.transformRequest(D.normalizeSpriteURL(Y,ne,".png"),i.ResourceType.SpriteImage),function(Zt,hr){Ue=null,de||(de=Zt,K=hr,ft())});function ft(){if(de)J(de);else if(q&&K){var Zt=i.browser.getImageData(K),hr={};for(var qt in q){var Ve=q[qt],et=Ve.width,at=Ve.height,kt=Ve.x,Ot=Ve.y,It=Ve.sdf,Bt=Ve.pixelRatio,Rt=Ve.stretchX,mt=Ve.stretchY,Pt=Ve.content,ht=new i.RGBAImage({width:et,height:at});i.RGBAImage.copy(Zt,ht,{x:kt,y:Ot},{x:0,y:0},{width:et,height:at}),hr[qt]={data:ht,pixelRatio:Bt,sdf:It,stretchX:Rt,stretchY:mt,content:Pt}}J(null,hr)}}return{cancel:function(){we&&(we.cancel(),we=null),Ue&&(Ue.cancel(),Ue=null)}}}function b(Y){var D=Y.userImage;if(D&&D.render){var J=D.render();if(J)return Y.data.replace(new Uint8Array(D.data.buffer)),!0}return!1}var p=1,C=function(Y){function D(){Y.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.isLoaded=function(){return this.loaded},D.prototype.setLoaded=function(q){if(this.loaded!==q&&(this.loaded=q,q)){for(var K=0,de=this.requestors;K=0?1.2:1))}k.prototype.draw=function(Y){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(Y,this.buffer,this.middle);for(var D=this.ctx.getImageData(0,0,this.size,this.size),J=new Uint8ClampedArray(this.size*this.size),q=0;q65535){Zt(new Error("glyphs > 65535 not supported"));return}if(Ve.ranges[at]){Zt(null,{stack:hr,id:qt,glyph:et});return}var kt=Ve.requests[at];kt||(kt=Ve.requests[at]=[],P.loadGlyphRange(hr,at,q.url,q.requestManager,function(Ot,It){if(It){for(var Bt in It)q._doesCharSupportLocalGlyph(+Bt)||(Ve.glyphs[+Bt]=It[+Bt]);Ve.ranges[at]=!0}for(var Rt=0,mt=kt;Rt1&&(ft=D[++Ue]);var hr=Math.abs(Zt-ft.left),qt=Math.abs(Zt-ft.right),Ve=Math.min(hr,qt),et=void 0,at=de/q*(K+1);if(ft.isDash){var kt=K-Math.abs(at);et=Math.sqrt(Ve*Ve+kt*kt)}else et=K-Math.sqrt(Ve*Ve+at*at);this.data[we+Zt]=Math.max(0,Math.min(255,et+128))}},G.prototype.addRegularDash=function(D){for(var J=D.length-1;J>=0;--J){var q=D[J],K=D[J+1];q.zeroLength?D.splice(J,1):K&&K.isDash===q.isDash&&(K.left=q.left,D.splice(J,1))}var de=D[0],ne=D[D.length-1];de.isDash===ne.isDash&&(de.left=ne.left-this.width,ne.right=de.right+this.width);for(var we=this.width*this.nextRow,Ue=0,ft=D[Ue],Zt=0;Zt1&&(ft=D[++Ue]);var hr=Math.abs(Zt-ft.left),qt=Math.abs(Zt-ft.right),Ve=Math.min(hr,qt),et=ft.isDash?Ve:-Ve;this.data[we+Zt]=Math.max(0,Math.min(255,et+128))}},G.prototype.addDash=function(D,J){var q=J?7:0,K=2*q+1;if(this.nextRow+K>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var de=0,ne=0;ne=q.minX&&D.x=q.minY&&D.y0&&(Zt[new i.OverscaledTileID(q.overscaledZ,we,K.z,ne,K.y-1).key]={backfilled:!1},Zt[new i.OverscaledTileID(q.overscaledZ,q.wrap,K.z,K.x,K.y-1).key]={backfilled:!1},Zt[new i.OverscaledTileID(q.overscaledZ,ft,K.z,Ue,K.y-1).key]={backfilled:!1}),K.y+10&&(de.resourceTiming=q._resourceTiming,q._resourceTiming=[]),q.fire(new i.Event("data",de))})},D.prototype.onAdd=function(q){this.map=q,this.load()},D.prototype.setData=function(q){var K=this;return this._data=q,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(de){if(de){K.fire(new i.ErrorEvent(de));return}var ne={dataType:"source",sourceDataType:"content"};K._collectResourceTiming&&K._resourceTiming&&K._resourceTiming.length>0&&(ne.resourceTiming=K._resourceTiming,K._resourceTiming=[]),K.fire(new i.Event("data",ne))}),this},D.prototype.getClusterExpansionZoom=function(q,K){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:q,source:this.id},K),this},D.prototype.getClusterChildren=function(q,K){return this.actor.send("geojson.getClusterChildren",{clusterId:q,source:this.id},K),this},D.prototype.getClusterLeaves=function(q,K,de,ne){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:q,limit:K,offset:de},ne),this},D.prototype._updateWorkerData=function(q){var K=this;this._loaded=!1;var de=i.extend({},this.workerOptions),ne=this._data;typeof ne=="string"?(de.request=this.map._requestManager.transformRequest(i.browser.resolveURL(ne),i.ResourceType.Source),de.request.collectResourceTiming=this._collectResourceTiming):de.data=JSON.stringify(ne),this.actor.send(this.type+".loadData",de,function(we,Ue){K._removed||Ue&&Ue.abandoned||(K._loaded=!0,Ue&&Ue.resourceTiming&&Ue.resourceTiming[K.id]&&(K._resourceTiming=Ue.resourceTiming[K.id].slice(0)),K.actor.send(K.type+".coalesce",{source:de.source},null),q(we))})},D.prototype.loaded=function(){return this._loaded},D.prototype.loadTile=function(q,K){var de=this,ne=q.actor?"reloadTile":"loadTile";q.actor=this.actor;var we={type:this.type,uid:q.uid,tileID:q.tileID,zoom:q.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};q.request=this.actor.send(ne,we,function(Ue,ft){return delete q.request,q.unloadVectorData(),q.aborted?K(null):Ue?K(Ue):(q.loadVectorData(ft,de.map.painter,ne==="reloadTile"),K(null))})},D.prototype.abortTile=function(q){q.request&&(q.request.cancel(),delete q.request),q.aborted=!0},D.prototype.unloadTile=function(q){q.unloadVectorData(),this.actor.send("removeTile",{uid:q.uid,type:this.type,source:this.id})},D.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},D.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},D.prototype.hasTransition=function(){return!1},D}(i.Evented),Me=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),ke=function(Y){function D(J,q,K,de){Y.call(this),this.id=J,this.dispatcher=K,this.coordinates=q.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(de),this.options=q}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.load=function(q,K){var de=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(ne,we){de._loaded=!0,ne?de.fire(new i.ErrorEvent(ne)):we&&(de.image=we,q&&(de.coordinates=q),K&&K(),de._finishLoading())})},D.prototype.loaded=function(){return this._loaded},D.prototype.updateImage=function(q){var K=this;return!this.image||!q.url?this:(this.options.url=q.url,this.load(q.coordinates,function(){K.texture=null}),this)},D.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},D.prototype.onAdd=function(q){this.map=q,this.load()},D.prototype.setCoordinates=function(q){var K=this;this.coordinates=q;var de=q.map(i.MercatorCoordinate.fromLngLat);this.tileID=me(de),this.minzoom=this.maxzoom=this.tileID.z;var ne=de.map(function(we){return K.tileID.getTilePoint(we)._round()});return this._boundsArray=new i.StructArrayLayout4i8,this._boundsArray.emplaceBack(ne[0].x,ne[0].y,0,0),this._boundsArray.emplaceBack(ne[1].x,ne[1].y,i.EXTENT,0),this._boundsArray.emplaceBack(ne[3].x,ne[3].y,0,i.EXTENT),this._boundsArray.emplaceBack(ne[2].x,ne[2].y,i.EXTENT,i.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"content"})),this},D.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var q=this.map.painter.context,K=q.gl;this.boundsBuffer||(this.boundsBuffer=q.createVertexBuffer(this._boundsArray,Me.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new i.Texture(q,this.image,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var de in this.tiles){var ne=this.tiles[de];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},D.prototype.loadTile=function(q,K){this.tileID&&this.tileID.equals(q.tileID.canonical)?(this.tiles[String(q.tileID.wrap)]=q,q.buckets={},K(null)):(q.state="errored",K(null))},D.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},D.prototype.hasTransition=function(){return!1},D}(i.Evented);function me(Y){for(var D=1/0,J=1/0,q=-1/0,K=-1/0,de=0,ne=Y;deK.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+K.start(0)+" and "+K.end(0)+"-second mark."))):this.video.currentTime=q}},D.prototype.getVideo=function(){return this.video},D.prototype.onAdd=function(q){this.map||(this.map=q,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},D.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var q=this.map.painter.context,K=q.gl;this.boundsBuffer||(this.boundsBuffer=q.createVertexBuffer(this._boundsArray,Me.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE),K.texSubImage2D(K.TEXTURE_2D,0,0,0,K.RGBA,K.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(q,this.video,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var de in this.tiles){var ne=this.tiles[de];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},D.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},D.prototype.hasTransition=function(){return this.video&&!this.video.paused},D}(ke),Se=function(Y){function D(J,q,K,de){Y.call(this,J,q,K,de),q.coordinates?(!Array.isArray(q.coordinates)||q.coordinates.length!==4||q.coordinates.some(function(ne){return!Array.isArray(ne)||ne.length!==2||ne.some(function(we){return typeof we!="number"})}))&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "coordinates"'))),q.animate&&typeof q.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'optional "animate" property must be a boolean value'))),q.canvas?typeof q.canvas!="string"&&!(q.canvas instanceof i.window.HTMLCanvasElement)&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "canvas"'))),this.options=q,this.animate=q.animate!==void 0?q.animate:!0}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},D.prototype.getCanvas=function(){return this.canvas},D.prototype.onAdd=function(q){this.map=q,this.load(),this.canvas&&this.animate&&this.play()},D.prototype.onRemove=function(){this.pause()},D.prototype.prepare=function(){var q=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,q=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,q=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var K=this.map.painter.context,de=K.gl;this.boundsBuffer||(this.boundsBuffer=K.createVertexBuffer(this._boundsArray,Me.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(q||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(K,this.canvas,de.RGBA,{premultiply:!0});for(var ne in this.tiles){var we=this.tiles[ne];we.state!=="loaded"&&(we.state="loaded",we.texture=this.texture)}}},D.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},D.prototype.hasTransition=function(){return this._playing},D.prototype._hasInvalidDimensions=function(){for(var q=0,K=[this.canvas.width,this.canvas.height];qthis.max){var we=this._getAndRemoveByKey(this.order[0]);we&&this.onRemove(we)}return this},st.prototype.has=function(D){return D.wrapped().key in this.data},st.prototype.getAndRemove=function(D){return this.has(D)?this._getAndRemoveByKey(D.wrapped().key):null},st.prototype._getAndRemoveByKey=function(D){var J=this.data[D].shift();return J.timeout&&clearTimeout(J.timeout),this.data[D].length===0&&delete this.data[D],this.order.splice(this.order.indexOf(D),1),J.value},st.prototype.getByKey=function(D){var J=this.data[D];return J?J[0].value:null},st.prototype.get=function(D){if(!this.has(D))return null;var J=this.data[D.wrapped().key][0];return J.value},st.prototype.remove=function(D,J){if(!this.has(D))return this;var q=D.wrapped().key,K=J===void 0?0:this.data[q].indexOf(J),de=this.data[q][K];return this.data[q].splice(K,1),de.timeout&&clearTimeout(de.timeout),this.data[q].length===0&&delete this.data[q],this.onRemove(de.value),this.order.splice(this.order.indexOf(q),1),this},st.prototype.setMaxSize=function(D){for(this.max=D;this.order.length>this.max;){var J=this._getAndRemoveByKey(this.order[0]);J&&this.onRemove(J)}return this},st.prototype.filter=function(D){var J=[];for(var q in this.data)for(var K=0,de=this.data[q];K1||(Math.abs(hr)>1&&(Math.abs(hr+Ve)===1?hr+=Ve:Math.abs(hr-Ve)===1&&(hr-=Ve)),!(!Zt.dem||!ft.dem)&&(ft.dem.backfillBorder(Zt.dem,hr,qt),ft.neighboringTiles&&ft.neighboringTiles[et]&&(ft.neighboringTiles[et].backfilled=!0)))}},D.prototype.getTile=function(q){return this.getTileByID(q.key)},D.prototype.getTileByID=function(q){return this._tiles[q]},D.prototype._retainLoadedChildren=function(q,K,de,ne){for(var we in this._tiles){var Ue=this._tiles[we];if(!(ne[we]||!Ue.hasData()||Ue.tileID.overscaledZ<=K||Ue.tileID.overscaledZ>de)){for(var ft=Ue.tileID;Ue&&Ue.tileID.overscaledZ>K+1;){var Zt=Ue.tileID.scaledTo(Ue.tileID.overscaledZ-1);Ue=this._tiles[Zt.key],Ue&&Ue.hasData()&&(ft=Zt)}for(var hr=ft;hr.overscaledZ>K;)if(hr=hr.scaledTo(hr.overscaledZ-1),q[hr.key]){ne[ft.key]=ft;break}}}},D.prototype.findLoadedParent=function(q,K){if(q.key in this._loadedParentTiles){var de=this._loadedParentTiles[q.key];return de&&de.tileID.overscaledZ>=K?de:null}for(var ne=q.overscaledZ-1;ne>=K;ne--){var we=q.scaledTo(ne),Ue=this._getLoadedTile(we);if(Ue)return Ue}},D.prototype._getLoadedTile=function(q){var K=this._tiles[q.key];if(K&&K.hasData())return K;var de=this._cache.getByKey(q.wrapped().key);return de},D.prototype.updateCacheSize=function(q){var K=Math.ceil(q.width/this._source.tileSize)+1,de=Math.ceil(q.height/this._source.tileSize)+1,ne=K*de,we=5,Ue=Math.floor(ne*we),ft=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Ue):Ue;this._cache.setMaxSize(ft)},D.prototype.handleWrapJump=function(q){var K=this._prevLng===void 0?q:this._prevLng,de=q-K,ne=de/360,we=Math.round(ne);if(this._prevLng=q,we){var Ue={};for(var ft in this._tiles){var Zt=this._tiles[ft];Zt.tileID=Zt.tileID.unwrapTo(Zt.tileID.wrap+we),Ue[Zt.tileID.key]=Zt}this._tiles=Ue;for(var hr in this._timers)clearTimeout(this._timers[hr]),delete this._timers[hr];for(var qt in this._tiles){var Ve=this._tiles[qt];this._setTileReloadTimer(qt,Ve)}}},D.prototype.update=function(q){var K=this;if(this.transform=q,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(q),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var de;this.used?this._source.tileID?de=q.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(Nr){return new i.OverscaledTileID(Nr.canonical.z,Nr.wrap,Nr.canonical.z,Nr.canonical.x,Nr.canonical.y)}):(de=q.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(de=de.filter(function(Nr){return K._source.hasTile(Nr)}))):de=[];var ne=q.coveringZoomLevel(this._source),we=Math.max(ne-D.maxOverzooming,this._source.minzoom),Ue=Math.max(ne+D.maxUnderzooming,this._source.minzoom),ft=this._updateRetainedTiles(de,ne);if(zi(this._source.type)){for(var Zt={},hr={},qt=Object.keys(ft),Ve=0,et=qt;Vethis._source.maxzoom){var It=kt.children(this._source.maxzoom)[0],Bt=this.getTile(It);if(Bt&&Bt.hasData()){de[It.key]=It;continue}}else{var Rt=kt.children(this._source.maxzoom);if(de[Rt[0].key]&&de[Rt[1].key]&&de[Rt[2].key]&&de[Rt[3].key])continue}for(var mt=Ot.wasRequested(),Pt=kt.overscaledZ-1;Pt>=we;--Pt){var ht=kt.scaledTo(Pt);if(ne[ht.key]||(ne[ht.key]=!0,Ot=this.getTile(ht),!Ot&&mt&&(Ot=this._addTile(ht)),Ot&&(de[ht.key]=ht,mt=Ot.wasRequested(),Ot.hasData())))break}}}return de},D.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var q in this._tiles){for(var K=[],de=void 0,ne=this._tiles[q].tileID;ne.overscaledZ>0;){if(ne.key in this._loadedParentTiles){de=this._loadedParentTiles[ne.key];break}K.push(ne.key);var we=ne.scaledTo(ne.overscaledZ-1);if(de=this._getLoadedTile(we),de)break;ne=we}for(var Ue=0,ft=K;Ue0)&&(K.hasData()&&K.state!=="reloading"?this._cache.add(K.tileID,K,K.getExpiryTimeout()):(K.aborted=!0,this._abortTile(K),this._unloadTile(K))))},D.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var q in this._tiles)this._removeTile(q);this._cache.reset()},D.prototype.tilesIn=function(q,K,de){var ne=this,we=[],Ue=this.transform;if(!Ue)return we;for(var ft=de?Ue.getCameraQueryGeometry(q):q,Zt=q.map(function(Pt){return Ue.pointCoordinate(Pt)}),hr=ft.map(function(Pt){return Ue.pointCoordinate(Pt)}),qt=this.getIds(),Ve=1/0,et=1/0,at=-1/0,kt=-1/0,Ot=0,It=hr;Ot=0&&Ri[1].y+Nr>=0){var hi=Zt.map(function(gn){return cr.getTilePoint(gn)}),wi=hr.map(function(gn){return cr.getTilePoint(gn)});we.push({tile:ht,tileID:cr,queryGeometry:hi,cameraQueryGeometry:wi,scale:br})}}},mt=0;mt=i.browser.now())return!0}return!1},D.prototype.setFeatureState=function(q,K,de){q=q||"_geojsonTileLayer",this._state.updateState(q,K,de)},D.prototype.removeFeatureState=function(q,K,de){q=q||"_geojsonTileLayer",this._state.removeFeatureState(q,K,de)},D.prototype.getFeatureState=function(q,K){return q=q||"_geojsonTileLayer",this._state.getState(q,K)},D.prototype.setDependencies=function(q,K,de){var ne=this._tiles[q];ne&&ne.setDependencies(K,de)},D.prototype.reloadTilesForDependencies=function(q,K){for(var de in this._tiles){var ne=this._tiles[de];ne.hasDependency(q,K)&&this._reloadTile(de,"reloading")}this._cache.filter(function(we){return!we.hasDependency(q,K)})},D}(i.Evented);ri.maxOverzooming=10,ri.maxUnderzooming=3;function $r(Y,D){var J=Math.abs(Y.wrap*2)-+(Y.wrap<0),q=Math.abs(D.wrap*2)-+(D.wrap<0);return Y.overscaledZ-D.overscaledZ||q-J||D.canonical.y-Y.canonical.y||D.canonical.x-Y.canonical.x}function zi(Y){return Y==="raster"||Y==="image"||Y==="video"}function Ji(){return new i.window.Worker(io.workerUrl)}var en="mapboxgl_preloaded_worker_pool",cn=function(){this.active={}};cn.prototype.acquire=function(D){if(!this.workers)for(this.workers=[];this.workers.length0?(K-ne)/we:0;return this.points[de].mult(1-Ue).add(this.points[J].mult(Ue))};var ki=function(D,J,q){var K=this.boxCells=[],de=this.circleCells=[];this.xCellCount=Math.ceil(D/q),this.yCellCount=Math.ceil(J/q);for(var ne=0;nethis.width||K<0||J>this.height)return de?!1:[];var we=[];if(D<=0&&J<=0&&this.width<=q&&this.height<=K){if(de)return!0;for(var Ue=0;Ue0:we}},ki.prototype._queryCircle=function(D,J,q,K,de){var ne=D-q,we=D+q,Ue=J-q,ft=J+q;if(we<0||ne>this.width||ft<0||Ue>this.height)return K?!1:[];var Zt=[],hr={hitTest:K,circle:{x:D,y:J,radius:q},seenUids:{box:{},circle:{}}};return this._forEachCell(ne,Ue,we,ft,this._queryCellCircle,Zt,hr,de),K?Zt.length>0:Zt},ki.prototype.query=function(D,J,q,K,de){return this._query(D,J,q,K,!1,de)},ki.prototype.hitTest=function(D,J,q,K,de){return this._query(D,J,q,K,!0,de)},ki.prototype.hitTestCircle=function(D,J,q,K){return this._queryCircle(D,J,q,!0,K)},ki.prototype._queryCell=function(D,J,q,K,de,ne,we,Ue){var ft=we.seenUids,Zt=this.boxCells[de];if(Zt!==null)for(var hr=this.bboxes,qt=0,Ve=Zt;qt=hr[at+0]&&K>=hr[at+1]&&(!Ue||Ue(this.boxKeys[et]))){if(we.hitTest)return ne.push(!0),!0;ne.push({key:this.boxKeys[et],x1:hr[at],y1:hr[at+1],x2:hr[at+2],y2:hr[at+3]})}}}var kt=this.circleCells[de];if(kt!==null)for(var Ot=this.circles,It=0,Bt=kt;Itwe*we+Ue*Ue},ki.prototype._circleAndRectCollide=function(D,J,q,K,de,ne,we){var Ue=(ne-K)/2,ft=Math.abs(D-(K+Ue));if(ft>Ue+q)return!1;var Zt=(we-de)/2,hr=Math.abs(J-(de+Zt));if(hr>Zt+q)return!1;if(ft<=Ue||hr<=Zt)return!0;var qt=ft-Ue,Ve=hr-Zt;return qt*qt+Ve*Ve<=q*q};function _n(Y,D,J,q,K){var de=i.create();return D?(i.scale(de,de,[1/K,1/K,1]),J||i.rotateZ(de,de,q.angle)):i.multiply(de,q.labelPlaneMatrix,Y),de}function ya(Y,D,J,q,K){if(D){var de=i.clone(Y);return i.scale(de,de,[K,K,1]),J||i.rotateZ(de,de,-q.angle),de}else return q.glCoordMatrix}function Jn(Y,D){var J=[Y.x,Y.y,0,1];Fl(J,J,D);var q=J[3];return{point:new i.Point(J[0]/q,J[1]/q),signedDistanceFromCamera:q}}function Ma(Y,D){return .5+.5*(Y/D)}function _o(Y,D){var J=Y[0]/Y[3],q=Y[1]/Y[3],K=J>=-D[0]&&J<=D[0]&&q>=-D[1]&&q<=D[1];return K}function No(Y,D,J,q,K,de,ne,we){var Ue=q?Y.textSizeData:Y.iconSizeData,ft=i.evaluateSizeForZoom(Ue,J.transform.zoom),Zt=[256/J.width*2+1,256/J.height*2+1],hr=q?Y.text.dynamicLayoutVertexArray:Y.icon.dynamicLayoutVertexArray;hr.clear();for(var qt=Y.lineVertexArray,Ve=q?Y.text.placedSymbolArray:Y.icon.placedSymbolArray,et=J.transform.width/J.transform.height,at=!1,kt=0;ktde)return{useVertical:!0}}return(Y===i.WritingMode.vertical?D.yJ.x)?{needsFlipping:!0}:null}function Co(Y,D,J,q,K,de,ne,we,Ue,ft,Zt,hr,qt,Ve){var et=D/24,at=Y.lineOffsetX*et,kt=Y.lineOffsetY*et,Ot;if(Y.numGlyphs>1){var It=Y.glyphStartIndex+Y.numGlyphs,Bt=Y.lineStartIndex,Rt=Y.lineStartIndex+Y.lineLength,mt=po(et,we,at,kt,J,Zt,hr,Y,Ue,de,qt);if(!mt)return{notEnoughRoom:!0};var Pt=Jn(mt.first.point,ne).point,ht=Jn(mt.last.point,ne).point;if(q&&!J){var cr=Lo(Y.writingMode,Pt,ht,Ve);if(cr)return cr}Ot=[mt.first];for(var br=Y.glyphStartIndex+1;br0?wi.point:Fs(hr,hi,Nr,1,K),tn=Lo(Y.writingMode,Nr,gn,Ve);if(tn)return tn}var Ci=zs(et*we.getoffsetX(Y.glyphStartIndex),at,kt,J,Zt,hr,Y.segment,Y.lineStartIndex,Y.lineStartIndex+Y.lineLength,Ue,de,qt);if(!Ci)return{notEnoughRoom:!0};Ot=[Ci]}for(var qi=0,Vi=Ot;qi0?1:-1,et=0;q&&(Ve*=-1,et=Math.PI),Ve<0&&(et+=Math.PI);for(var at=Ve>0?we+ne:we+ne+1,kt=K,Ot=K,It=0,Bt=0,Rt=Math.abs(qt),mt=[];It+Bt<=Rt;){if(at+=Ve,at=Ue)return null;if(Ot=kt,mt.push(kt),kt=hr[at],kt===void 0){var Pt=new i.Point(ft.getx(at),ft.gety(at)),ht=Jn(Pt,Zt);if(ht.signedDistanceFromCamera>0)kt=hr[at]=ht.point;else{var cr=at-Ve,br=It===0?de:new i.Point(ft.getx(cr),ft.gety(cr));kt=Fs(br,Pt,Ot,Rt-It+1,Zt)}}It+=Bt,Bt=Ot.dist(kt)}var Nr=(Rt-It)/Bt,Ri=kt.sub(Ot),hi=Ri.mult(Nr)._add(Ot);hi._add(Ri._unit()._perp()._mult(J*Ve));var wi=et+Math.atan2(kt.y-Ot.y,kt.x-Ot.x);return mt.push(hi),{point:hi,angle:wi,path:mt}}var ul=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function cl(Y,D){for(var J=0;J=1;on--)Vi.push(Ci.path[on]);for(var On=1;On0){for(var so=Vi[0].clone(),Zo=Vi[0].clone(),ys=1;ys=wi.x&&Zo.x<=gn.x&&so.y>=wi.y&&Zo.y<=gn.y?rs=[Vi]:Zo.xgn.x||Zo.ygn.y?rs=[]:rs=i.clipLine([Vi],wi.x,wi.y,gn.x,gn.y)}for(var su=0,Mv=rs;su=this.screenRightBoundary||Kthis.screenBottomBoundary},nl.prototype.isInsideGrid=function(D,J,q,K){return q>=0&&D=0&&J0){var Rt;return this.prevPlacement&&this.prevPlacement.variableOffsets[qt.crossTileID]&&this.prevPlacement.placements[qt.crossTileID]&&this.prevPlacement.placements[qt.crossTileID].text&&(Rt=this.prevPlacement.variableOffsets[qt.crossTileID].anchor),this.variableOffsets[qt.crossTileID]={textOffset:kt,width:q,height:K,anchor:D,textBoxScale:de,prevAnchor:Rt},this.markUsedJustification(Ve,D,qt,et),Ve.allowVerticalPlacement&&(this.markUsedOrientation(Ve,et,qt),this.placedOrientations[qt.crossTileID]=et),{shift:Ot,placedGlyphBoxes:It}}},ws.prototype.placeLayerBucketPart=function(D,J,q){var K=this,de=D.parameters,ne=de.bucket,we=de.layout,Ue=de.posMatrix,ft=de.textLabelPlaneMatrix,Zt=de.labelToScreenMatrix,hr=de.textPixelRatio,qt=de.holdingForFade,Ve=de.collisionBoxArray,et=de.partiallyEvaluatedTextSize,at=de.collisionGroup,kt=we.get("text-optional"),Ot=we.get("icon-optional"),It=we.get("text-allow-overlap"),Bt=we.get("icon-allow-overlap"),Rt=we.get("text-rotation-alignment")==="map",mt=we.get("text-pitch-alignment")==="map",Pt=we.get("icon-text-fit")!=="none",ht=we.get("symbol-z-order")==="viewport-y",cr=It&&(Bt||!ne.hasIconData()||Ot),br=Bt&&(It||!ne.hasTextData()||kt);!ne.collisionArrays&&Ve&&ne.deserializeCollisionBoxes(Ve);var Nr=function(Ci,qi){if(!J[Ci.crossTileID]){if(qt){K.placements[Ci.crossTileID]=new Os(!1,!1,!1);return}var Vi=!1,on=!1,On=!0,Ja=null,co={box:null,offscreen:null},rs={box:null,offscreen:null},so=null,Zo=null,ys=null,su=0,Mv=0,Ev=0;qi.textFeatureIndex?su=qi.textFeatureIndex:Ci.useRuntimeCollisionCircles&&(su=Ci.featureIndex),qi.verticalTextFeatureIndex&&(Mv=qi.verticalTextFeatureIndex);var wd=qi.textBox;if(wd){var Yv=function(vc){var eu=i.WritingMode.horizontal;if(ne.allowVerticalPlacement&&!vc&&K.prevPlacement){var Sd=K.prevPlacement.placedOrientations[Ci.crossTileID];Sd&&(K.placedOrientations[Ci.crossTileID]=Sd,eu=Sd,K.markUsedOrientation(ne,eu,Ci))}return eu},cg=function(vc,eu){if(ne.allowVerticalPlacement&&Ci.numVerticalGlyphVertices>0&&qi.verticalTextBox)for(var Sd=0,sy=ne.writingModes;Sd0&&(Vd=Vd.filter(function(vc){return vc!==Ad.anchor}),Vd.unshift(Ad.anchor))}var Cv=function(vc,eu,Sd){for(var sy=vc.x2-vc.x1,A1=vc.y2-vc.y1,wu=Ci.textBoxScale,Nx=Pt&&!Bt?eu:null,am={box:[],offscreen:!1},Mw=It?Vd.length*2:Vd.length,Lv=0;Lv=Vd.length,Ux=K.attemptAnchorPlacement(om,vc,sy,A1,wu,Rt,mt,hr,Ue,at,Ew,Ci,ne,Sd,Nx);if(Ux&&(am=Ux.placedGlyphBoxes,am&&am.box&&am.box.length)){Vi=!0,Ja=Ux.shift;break}}return am},Kv=function(){return Cv(wd,qi.iconBox,i.WritingMode.horizontal)},kv=function(){var vc=qi.verticalTextBox,eu=co&&co.box&&co.box.length;return ne.allowVerticalPlacement&&!eu&&Ci.numVerticalGlyphVertices>0&&vc?Cv(vc,qi.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}};cg(Kv,kv),co&&(Vi=co.box,On=co.offscreen);var ny=Yv(co&&co.box);if(!Vi&&K.prevPlacement){var fg=K.prevPlacement.variableOffsets[Ci.crossTileID];fg&&(K.variableOffsets[Ci.crossTileID]=fg,K.markUsedJustification(ne,fg.anchor,Ci,ny))}}else{var dp=function(vc,eu){var Sd=K.collisionIndex.placeCollisionBox(vc,It,hr,Ue,at.predicate);return Sd&&Sd.box&&Sd.box.length&&(K.markUsedOrientation(ne,eu,Ci),K.placedOrientations[Ci.crossTileID]=eu),Sd},Td=function(){return dp(wd,i.WritingMode.horizontal)},vp=function(){var vc=qi.verticalTextBox;return ne.allowVerticalPlacement&&Ci.numVerticalGlyphVertices>0&&vc?dp(vc,i.WritingMode.vertical):{box:null,offscreen:null}};cg(Td,vp),Yv(co&&co.box&&co.box.length)}}if(so=co,Vi=so&&so.box&&so.box.length>0,On=so&&so.offscreen,Ci.useRuntimeCollisionCircles){var oh=ne.text.placedSymbolArray.get(Ci.centerJustifiedTextSymbolIndex),hg=i.evaluateSizeForFeature(ne.textSizeData,et,oh),ay=we.get("text-padding"),Gh=Ci.collisionCircleDiameter;Zo=K.collisionIndex.placeCollisionCircles(It,oh,ne.lineVertexArray,ne.glyphOffsetArray,hg,Ue,ft,Zt,q,mt,at.predicate,Gh,ay),Vi=It||Zo.circles.length>0&&!Zo.collisionDetected,On=On&&Zo.offscreen}if(qi.iconFeatureIndex&&(Ev=qi.iconFeatureIndex),qi.iconBox){var rm=function(vc){var eu=Pt&&Ja?nc(vc,Ja.x,Ja.y,Rt,mt,K.transform.angle):vc;return K.collisionIndex.placeCollisionBox(eu,Bt,hr,Ue,at.predicate)};rs&&rs.box&&rs.box.length&&qi.verticalIconBox?(ys=rm(qi.verticalIconBox),on=ys.box.length>0):(ys=rm(qi.iconBox),on=ys.box.length>0),On=On&&ys.offscreen}var w1=kt||Ci.numHorizontalGlyphVertices===0&&Ci.numVerticalGlyphVertices===0,T1=Ot||Ci.numIconVertices===0;if(!w1&&!T1?on=Vi=on&&Vi:T1?w1||(on=on&&Vi):Vi=on&&Vi,Vi&&so&&so.box&&(rs&&rs.box&&Mv?K.collisionIndex.insertCollisionBox(so.box,we.get("text-ignore-placement"),ne.bucketInstanceId,Mv,at.ID):K.collisionIndex.insertCollisionBox(so.box,we.get("text-ignore-placement"),ne.bucketInstanceId,su,at.ID)),on&&ys&&K.collisionIndex.insertCollisionBox(ys.box,we.get("icon-ignore-placement"),ne.bucketInstanceId,Ev,at.ID),Zo&&(Vi&&K.collisionIndex.insertCollisionCircles(Zo.circles,we.get("text-ignore-placement"),ne.bucketInstanceId,su,at.ID),q)){var oy=ne.bucketInstanceId,im=K.collisionCircleArrays[oy];im===void 0&&(im=K.collisionCircleArrays[oy]=new Io);for(var nm=0;nm=0;--hi){var wi=Ri[hi];Nr(ne.symbolInstances.get(wi),ne.collisionArrays[wi])}else for(var gn=D.symbolInstanceStart;gn=0&&(ne>=0&&Zt!==ne?D.text.placedSymbolArray.get(Zt).crossTileID=0:D.text.placedSymbolArray.get(Zt).crossTileID=q.crossTileID)}},ws.prototype.markUsedOrientation=function(D,J,q){for(var K=J===i.WritingMode.horizontal||J===i.WritingMode.horizontalOnly?J:0,de=J===i.WritingMode.vertical?J:0,ne=[q.leftJustifiedTextSymbolIndex,q.centerJustifiedTextSymbolIndex,q.rightJustifiedTextSymbolIndex],we=0,Ue=ne;we0||mt>0,Nr=Bt.numIconVertices>0,Ri=K.placedOrientations[Bt.crossTileID],hi=Ri===i.WritingMode.vertical,wi=Ri===i.WritingMode.horizontal||Ri===i.WritingMode.horizontalOnly;if(br){var gn=ac(cr.text),tn=hi?aa:gn;et(D.text,Rt,tn);var Ci=wi?aa:gn;et(D.text,mt,Ci);var qi=cr.text.isHidden();[Bt.rightJustifiedTextSymbolIndex,Bt.centerJustifiedTextSymbolIndex,Bt.leftJustifiedTextSymbolIndex].forEach(function(Ev){Ev>=0&&(D.text.placedSymbolArray.get(Ev).hidden=qi||hi?1:0)}),Bt.verticalPlacedTextSymbolIndex>=0&&(D.text.placedSymbolArray.get(Bt.verticalPlacedTextSymbolIndex).hidden=qi||wi?1:0);var Vi=K.variableOffsets[Bt.crossTileID];Vi&&K.markUsedJustification(D,Vi.anchor,Bt,Ri);var on=K.placedOrientations[Bt.crossTileID];on&&(K.markUsedJustification(D,"left",Bt,on),K.markUsedOrientation(D,on,Bt))}if(Nr){var On=ac(cr.icon),Ja=!(qt&&Bt.verticalPlacedIconSymbolIndex&&hi);if(Bt.placedIconSymbolIndex>=0){var co=Ja?On:aa;et(D.icon,Bt.numIconVertices,co),D.icon.placedSymbolArray.get(Bt.placedIconSymbolIndex).hidden=cr.icon.isHidden()}if(Bt.verticalPlacedIconSymbolIndex>=0){var rs=Ja?aa:On;et(D.icon,Bt.numVerticalIconVertices,rs),D.icon.placedSymbolArray.get(Bt.verticalPlacedIconSymbolIndex).hidden=cr.icon.isHidden()}}if(D.hasIconCollisionBoxData()||D.hasTextCollisionBoxData()){var so=D.collisionArrays[It];if(so){var Zo=new i.Point(0,0);if(so.textBox||so.verticalTextBox){var ys=!0;if(ft){var su=K.variableOffsets[Pt];su?(Zo=Su(su.anchor,su.width,su.height,su.textOffset,su.textBoxScale),Zt&&Zo._rotate(hr?K.transform.angle:-K.transform.angle)):ys=!1}so.textBox&&Fn(D.textCollisionBox.collisionVertexArray,cr.text.placed,!ys||hi,Zo.x,Zo.y),so.verticalTextBox&&Fn(D.textCollisionBox.collisionVertexArray,cr.text.placed,!ys||wi,Zo.x,Zo.y)}var Mv=!!(!wi&&so.verticalIconBox);so.iconBox&&Fn(D.iconCollisionBox.collisionVertexArray,cr.icon.placed,Mv,qt?Zo.x:0,qt?Zo.y:0),so.verticalIconBox&&Fn(D.iconCollisionBox.collisionVertexArray,cr.icon.placed,!Mv,qt?Zo.x:0,qt?Zo.y:0)}}},kt=0;ktD},ws.prototype.setStale=function(){this.stale=!0};function Fn(Y,D,J,q,K){Y.emplaceBack(D?1:0,J?1:0,q||0,K||0),Y.emplaceBack(D?1:0,J?1:0,q||0,K||0),Y.emplaceBack(D?1:0,J?1:0,q||0,K||0),Y.emplaceBack(D?1:0,J?1:0,q||0,K||0)}var _a=Math.pow(2,25),Vu=Math.pow(2,24),zl=Math.pow(2,17),xo=Math.pow(2,16),Yl=Math.pow(2,9),Us=Math.pow(2,8),Hl=Math.pow(2,1);function ac(Y){if(Y.opacity===0&&!Y.placed)return 0;if(Y.opacity===1&&Y.placed)return 4294967295;var D=Y.placed?1:0,J=Math.floor(Y.opacity*127);return J*_a+D*Vu+J*zl+D*xo+J*Yl+D*Us+J*Hl+D}var aa=0,Oo=function(D){this._sortAcrossTiles=D.layout.get("symbol-z-order")!=="viewport-y"&&D.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Oo.prototype.continuePlacement=function(D,J,q,K,de){for(var ne=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var we=D[this._currentPlacementIndex],Ue=J[we],ft=this.placement.collisionIndex.transform.zoom;if(Ue.type==="symbol"&&(!Ue.minzoom||Ue.minzoom<=ft)&&(!Ue.maxzoom||Ue.maxzoom>ft)){this._inProgressLayer||(this._inProgressLayer=new Oo(Ue));var Zt=this._inProgressLayer.continuePlacement(q[Ue.source],this.placement,this._showCollisionBoxes,Ue,ne);if(Zt)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},qo.prototype.commit=function(D){return this.placement.commit(D),this.placement};var Ol=512/i.EXTENT/2,Pc=function(D,J,q){this.tileID=D,this.indexedSymbolInstances={},this.bucketInstanceId=q;for(var K=0;KD.overscaledZ)for(var ft in Ue){var Zt=Ue[ft];Zt.tileID.isChildOf(D)&&Zt.findMatches(J.symbolInstances,D,ne)}else{var hr=D.scaledTo(Number(we)),qt=Ue[hr.key];qt&&qt.findMatches(J.symbolInstances,D,ne)}}for(var Ve=0;Ve0)throw new Error("Unimplemented: "+ne.map(function(we){return we.command}).join(", ")+".");return de.forEach(function(we){we.command!=="setTransition"&&K[we.command].apply(K,we.args)}),this.stylesheet=q,!0},D.prototype.addImage=function(q,K){if(this.getImage(q))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(q,K),this._afterImageUpdated(q)},D.prototype.updateImage=function(q,K){this.imageManager.updateImage(q,K)},D.prototype.getImage=function(q){return this.imageManager.getImage(q)},D.prototype.removeImage=function(q){if(!this.getImage(q))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(q),this._afterImageUpdated(q)},D.prototype._afterImageUpdated=function(q){this._availableImages=this.imageManager.listImages(),this._changedImages[q]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},D.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},D.prototype.addSource=function(q,K,de){var ne=this;if(de===void 0&&(de={}),this._checkLoaded(),this.sourceCaches[q]!==void 0)throw new Error("There is already a source with this ID");if(!K.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(K).join(", ")+".");var we=["vector","raster","geojson","video","image"],Ue=we.indexOf(K.type)>=0;if(!(Ue&&this._validate(i.validateStyle.source,"sources."+q,K,null,de))){this.map&&this.map._collectResourceTiming&&(K.collectResourceTiming=!0);var ft=this.sourceCaches[q]=new ri(q,K,this.dispatcher);ft.style=this,ft.setEventedParent(this,function(){return{isSourceLoaded:ne.loaded(),source:ft.serialize(),sourceId:q}}),ft.onAdd(this.map),this._changed=!0}},D.prototype.removeSource=function(q){if(this._checkLoaded(),this.sourceCaches[q]===void 0)throw new Error("There is no source with this ID");for(var K in this._layers)if(this._layers[K].source===q)return this.fire(new i.ErrorEvent(new Error('Source "'+q+'" cannot be removed while layer "'+K+'" is using it.')));var de=this.sourceCaches[q];delete this.sourceCaches[q],delete this._updatedSources[q],de.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:q})),de.setEventedParent(null),de.clearTiles(),de.onRemove&&de.onRemove(this.map),this._changed=!0},D.prototype.setGeoJSONSourceData=function(q,K){this._checkLoaded();var de=this.sourceCaches[q].getSource();de.setData(K),this._changed=!0},D.prototype.getSource=function(q){return this.sourceCaches[q]&&this.sourceCaches[q].getSource()},D.prototype.addLayer=function(q,K,de){de===void 0&&(de={}),this._checkLoaded();var ne=q.id;if(this.getLayer(ne)){this.fire(new i.ErrorEvent(new Error('Layer with id "'+ne+'" already exists on this map')));return}var we;if(q.type==="custom"){if(ml(this,i.validateCustomStyleLayer(q)))return;we=i.createStyleLayer(q)}else{if(typeof q.source=="object"&&(this.addSource(ne,q.source),q=i.clone$1(q),q=i.extend(q,{source:ne})),this._validate(i.validateStyle.layer,"layers."+ne,q,{arrayIndex:-1},de))return;we=i.createStyleLayer(q),this._validateLayer(we),we.setEventedParent(this,{layer:{id:ne}}),this._serializedLayers[we.id]=we.serialize()}var Ue=K?this._order.indexOf(K):this._order.length;if(K&&Ue===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}if(this._order.splice(Ue,0,ne),this._layerOrderChanged=!0,this._layers[ne]=we,this._removedLayers[ne]&&we.source&&we.type!=="custom"){var ft=this._removedLayers[ne];delete this._removedLayers[ne],ft.type!==we.type?this._updatedSources[we.source]="clear":(this._updatedSources[we.source]="reload",this.sourceCaches[we.source].pause())}this._updateLayer(we),we.onAdd&&we.onAdd(this.map)},D.prototype.moveLayer=function(q,K){this._checkLoaded(),this._changed=!0;var de=this._layers[q];if(!de){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be moved.")));return}if(q!==K){var ne=this._order.indexOf(q);this._order.splice(ne,1);var we=K?this._order.indexOf(K):this._order.length;if(K&&we===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}this._order.splice(we,0,q),this._layerOrderChanged=!0}},D.prototype.removeLayer=function(q){this._checkLoaded();var K=this._layers[q];if(!K){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be removed.")));return}K.setEventedParent(null);var de=this._order.indexOf(q);this._order.splice(de,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[q]=K,delete this._layers[q],delete this._serializedLayers[q],delete this._updatedLayers[q],delete this._updatedPaintProps[q],K.onRemove&&K.onRemove(this.map)},D.prototype.getLayer=function(q){return this._layers[q]},D.prototype.hasLayer=function(q){return q in this._layers},D.prototype.setLayerZoomRange=function(q,K,de){this._checkLoaded();var ne=this.getLayer(q);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot have zoom extent.")));return}ne.minzoom===K&&ne.maxzoom===de||(K!=null&&(ne.minzoom=K),de!=null&&(ne.maxzoom=de),this._updateLayer(ne))},D.prototype.setFilter=function(q,K,de){de===void 0&&(de={}),this._checkLoaded();var ne=this.getLayer(q);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be filtered.")));return}if(!i.deepEqual(ne.filter,K)){if(K==null){ne.filter=void 0,this._updateLayer(ne);return}this._validate(i.validateStyle.filter,"layers."+ne.id+".filter",K,null,de)||(ne.filter=i.clone$1(K),this._updateLayer(ne))}},D.prototype.getFilter=function(q){return i.clone$1(this.getLayer(q).filter)},D.prototype.setLayoutProperty=function(q,K,de,ne){ne===void 0&&(ne={}),this._checkLoaded();var we=this.getLayer(q);if(!we){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be styled.")));return}i.deepEqual(we.getLayoutProperty(K),de)||(we.setLayoutProperty(K,de,ne),this._updateLayer(we))},D.prototype.getLayoutProperty=function(q,K){var de=this.getLayer(q);if(!de){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style.")));return}return de.getLayoutProperty(K)},D.prototype.setPaintProperty=function(q,K,de,ne){ne===void 0&&(ne={}),this._checkLoaded();var we=this.getLayer(q);if(!we){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be styled.")));return}if(!i.deepEqual(we.getPaintProperty(K),de)){var Ue=we.setPaintProperty(K,de,ne);Ue&&this._updateLayer(we),this._changed=!0,this._updatedPaintProps[q]=!0}},D.prototype.getPaintProperty=function(q,K){return this.getLayer(q).getPaintProperty(K)},D.prototype.setFeatureState=function(q,K){this._checkLoaded();var de=q.source,ne=q.sourceLayer,we=this.sourceCaches[de];if(we===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+de+"' does not exist in the map's style.")));return}var Ue=we.getSource().type;if(Ue==="geojson"&&ne){this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(Ue==="vector"&&!ne){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}q.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),we.setFeatureState(ne,q.id,K)},D.prototype.removeFeatureState=function(q,K){this._checkLoaded();var de=q.source,ne=this.sourceCaches[de];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+de+"' does not exist in the map's style.")));return}var we=ne.getSource().type,Ue=we==="vector"?q.sourceLayer:void 0;if(we==="vector"&&!Ue){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(K&&typeof q.id!="string"&&typeof q.id!="number"){this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}ne.removeFeatureState(Ue,q.id,K)},D.prototype.getFeatureState=function(q){this._checkLoaded();var K=q.source,de=q.sourceLayer,ne=this.sourceCaches[K];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+K+"' does not exist in the map's style.")));return}var we=ne.getSource().type;if(we==="vector"&&!de){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return q.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ne.getFeatureState(de,q.id)},D.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},D.prototype.serialize=function(){return i.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:i.mapObject(this.sourceCaches,function(q){return q.serialize()}),layers:this._serializeLayers(this._order)},function(q){return q!==void 0})},D.prototype._updateLayer=function(q){this._updatedLayers[q.id]=!0,q.source&&!this._updatedSources[q.source]&&this.sourceCaches[q.source].getSource().type!=="raster"&&(this._updatedSources[q.source]="reload",this.sourceCaches[q.source].pause()),this._changed=!0},D.prototype._flattenAndSortRenderedFeatures=function(q){for(var K=this,de=function(wi){return K._layers[wi].type==="fill-extrusion"},ne={},we=[],Ue=this._order.length-1;Ue>=0;Ue--){var ft=this._order[Ue];if(de(ft)){ne[ft]=Ue;for(var Zt=0,hr=q;Zt=0;It--){var Bt=this._order[It];if(de(Bt))for(var Rt=we.length-1;Rt>=0;Rt--){var mt=we[Rt].feature;if(ne[mt.layer.id] 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color; #ifdef OVERDRAW_INSPECTOR @@ -2972,7 +2972,7 @@ void main() { #pragma mapbox: initialize mediump float gapwidth #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`,Gf=`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`,Hf=`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity void main() { @@ -2996,7 +2996,7 @@ void main() { #pragma mapbox: initialize mediump float gapwidth #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`,af=`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`,of=`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to #pragma mapbox: define lowp float pixel_ratio_from @@ -3078,7 +3078,7 @@ float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;f #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,Hf="uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}",Uh=`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; +}`,jf="uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}",Uh=`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize lowp float opacity @@ -3092,7 +3092,7 @@ void main() { #pragma mapbox: initialize lowp float opacity vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`,of=`#define SDF_PX 8.0 +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`,sf=`#define SDF_PX 8.0 uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1; #pragma mapbox: define highp vec4 fill_color #pragma mapbox: define highp vec4 halo_color @@ -3160,58 +3160,58 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,Ws=Vs(Cf,sc),Eu=Vs(Nh,kf),Dc=Vs(fs,rf),ks=Vs(Uf,Jl),bc=Vs(hl,lc),du=Vs(Fu,Cs),_u=Vs(js,Go),al=Vs(gs,uc),nh=Vs(xl,Gu),bh=Vs(Bs,ad),zu=Vs(Po,od),Fc=Vs(Yo,Pa),wc=Vs(nf,Hu),bd=Vs(bl,Vf),yf=Vs(Ic,gf),Lf=Vs(ql,_h),Ou=Vs(Qf,mf),_f=Vs(Yc,eh),jl=Vs(th,ju),sf=Vs(Gf,cc),Vh=Vs(af,Bl),Pf=Vs(Kc,Rc),Ls=Vs(ms,Hf),vu=Vs(Uh,rh),Cu=Vs(of,xh),jf=Vs(Mu,ih);function Vs(Y,D){var J=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,q=D.match(/attribute ([\w]+) ([\w]+)/g),K=Y.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),de=D.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ne=de?de.concat(K):K,we={};return Y=Y.replace(J,function(Ue,ft,Zt,hr,Bt){return we[Bt]=!0,ft==="define"?` -#ifndef HAS_UNIFORM_u_`+Bt+` -varying `+Zt+" "+hr+" "+Bt+`; +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,Ws=Vs(Cf,sc),Eu=Vs(Nh,kf),Dc=Vs(fs,nf),ks=Vs(Vf,Jl),bc=Vs(hl,lc),du=Vs(Fu,Cs),_u=Vs(js,Go),al=Vs(gs,uc),nh=Vs(xl,Gu),bh=Vs(Bs,ad),zu=Vs(Po,od),Fc=Vs(Yo,Pa),wc=Vs(af,Hu),bd=Vs(bl,Gf),_f=Vs(Ic,mf),Lf=Vs(ql,_h),Ou=Vs(Qf,yf),xf=Vs(Yc,eh),jl=Vs(th,ju),lf=Vs(Hf,cc),Vh=Vs(of,Bl),Pf=Vs(Kc,Rc),Ls=Vs(ms,jf),vu=Vs(Uh,rh),Cu=Vs(sf,xh),Wf=Vs(Mu,ih);function Vs(Y,D){var J=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,q=D.match(/attribute ([\w]+) ([\w]+)/g),K=Y.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),de=D.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ne=de?de.concat(K):K,we={};return Y=Y.replace(J,function(Ue,ft,Zt,hr,qt){return we[qt]=!0,ft==="define"?` +#ifndef HAS_UNIFORM_u_`+qt+` +varying `+Zt+" "+hr+" "+qt+`; #else -uniform `+Zt+" "+hr+" u_"+Bt+`; +uniform `+Zt+" "+hr+" u_"+qt+`; #endif `:` -#ifdef HAS_UNIFORM_u_`+Bt+` - `+Zt+" "+hr+" "+Bt+" = u_"+Bt+`; -#endif -`}),D=D.replace(J,function(Ue,ft,Zt,hr,Bt){var Ve=hr==="float"?"vec2":"vec4",et=Bt.match(/color/)?"color":Ve;return we[Bt]?ft==="define"?` -#ifndef HAS_UNIFORM_u_`+Bt+` -uniform lowp float u_`+Bt+`_t; -attribute `+Zt+" "+Ve+" a_"+Bt+`; -varying `+Zt+" "+hr+" "+Bt+`; +#ifdef HAS_UNIFORM_u_`+qt+` + `+Zt+" "+hr+" "+qt+" = u_"+qt+`; +#endif +`}),D=D.replace(J,function(Ue,ft,Zt,hr,qt){var Ve=hr==="float"?"vec2":"vec4",et=qt.match(/color/)?"color":Ve;return we[qt]?ft==="define"?` +#ifndef HAS_UNIFORM_u_`+qt+` +uniform lowp float u_`+qt+`_t; +attribute `+Zt+" "+Ve+" a_"+qt+`; +varying `+Zt+" "+hr+" "+qt+`; #else -uniform `+Zt+" "+hr+" u_"+Bt+`; +uniform `+Zt+" "+hr+" u_"+qt+`; #endif `:et==="vec4"?` -#ifndef HAS_UNIFORM_u_`+Bt+` - `+Bt+" = a_"+Bt+`; +#ifndef HAS_UNIFORM_u_`+qt+` + `+qt+" = a_"+qt+`; #else - `+Zt+" "+hr+" "+Bt+" = u_"+Bt+`; + `+Zt+" "+hr+" "+qt+" = u_"+qt+`; #endif `:` -#ifndef HAS_UNIFORM_u_`+Bt+` - `+Bt+" = unpack_mix_"+et+"(a_"+Bt+", u_"+Bt+`_t); +#ifndef HAS_UNIFORM_u_`+qt+` + `+qt+" = unpack_mix_"+et+"(a_"+qt+", u_"+qt+`_t); #else - `+Zt+" "+hr+" "+Bt+" = u_"+Bt+`; + `+Zt+" "+hr+" "+qt+" = u_"+qt+`; #endif `:ft==="define"?` -#ifndef HAS_UNIFORM_u_`+Bt+` -uniform lowp float u_`+Bt+`_t; -attribute `+Zt+" "+Ve+" a_"+Bt+`; +#ifndef HAS_UNIFORM_u_`+qt+` +uniform lowp float u_`+qt+`_t; +attribute `+Zt+" "+Ve+" a_"+qt+`; #else -uniform `+Zt+" "+hr+" u_"+Bt+`; +uniform `+Zt+" "+hr+" u_"+qt+`; #endif `:et==="vec4"?` -#ifndef HAS_UNIFORM_u_`+Bt+` - `+Zt+" "+hr+" "+Bt+" = a_"+Bt+`; +#ifndef HAS_UNIFORM_u_`+qt+` + `+Zt+" "+hr+" "+qt+" = a_"+qt+`; #else - `+Zt+" "+hr+" "+Bt+" = u_"+Bt+`; + `+Zt+" "+hr+" "+qt+" = u_"+qt+`; #endif `:` -#ifndef HAS_UNIFORM_u_`+Bt+` - `+Zt+" "+hr+" "+Bt+" = unpack_mix_"+et+"(a_"+Bt+", u_"+Bt+`_t); +#ifndef HAS_UNIFORM_u_`+qt+` + `+Zt+" "+hr+" "+qt+" = unpack_mix_"+et+"(a_"+qt+", u_"+qt+`_t); #else - `+Zt+" "+hr+" "+Bt+" = u_"+Bt+`; + `+Zt+" "+hr+" "+qt+" = u_"+qt+`; #endif -`}),{fragmentSource:Y,vertexSource:D,staticAttributes:q,staticUniforms:ne}}var xf=Object.freeze({__proto__:null,prelude:Ws,background:Eu,backgroundPattern:Dc,circle:ks,clippingMask:bc,heatmap:du,heatmapTexture:_u,collisionBox:al,collisionCircle:nh,debug:bh,fill:zu,fillOutline:Fc,fillOutlinePattern:wc,fillPattern:bd,fillExtrusion:yf,fillExtrusionPattern:Lf,hillshadePrepare:Ou,hillshade:_f,line:jl,lineGradient:sf,linePattern:Vh,lineSDF:Pf,raster:Ls,symbolIcon:vu,symbolSDF:Cu,symbolTextAndIcon:jf}),zc=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};zc.prototype.bind=function(D,J,q,K,de,ne,we,Ue){this.context=D;for(var ft=this.boundPaintVertexBuffers.length!==K.length,Zt=0;!ft&&Zt>16,we>>16],u_pixel_coord_lower:[ne&65535,we&65535]}}function lf(Y,D,J,q){var K=J.imageManager.getPattern(Y.from.toString()),de=J.imageManager.getPattern(Y.to.toString()),ne=J.imageManager.getPixelSize(),we=ne.width,Ue=ne.height,ft=Math.pow(2,q.tileID.overscaledZ),Zt=q.tileSize*Math.pow(2,J.transform.tileZoom)/ft,hr=Zt*(q.tileID.canonical.x+q.tileID.wrap*ft),Bt=Zt*q.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:K.tl,u_pattern_br_a:K.br,u_pattern_tl_b:de.tl,u_pattern_br_b:de.br,u_texsize:[we,Ue],u_mix:D.t,u_pattern_size_a:K.displaySize,u_pattern_size_b:de.displaySize,u_scale_a:D.fromScale,u_scale_b:D.toScale,u_tile_units_to_pixels:1/Ss(q,1,J.transform.tileZoom),u_pixel_coord_upper:[hr>>16,Bt>>16],u_pixel_coord_lower:[hr&65535,Bt&65535]}}var Wf=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_lightpos:new i.Uniform3f(Y,D.u_lightpos),u_lightintensity:new i.Uniform1f(Y,D.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,D.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,D.u_vertical_gradient),u_opacity:new i.Uniform1f(Y,D.u_opacity)}},Wl=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_lightpos:new i.Uniform3f(Y,D.u_lightpos),u_lightintensity:new i.Uniform1f(Y,D.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,D.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,D.u_vertical_gradient),u_height_factor:new i.Uniform1f(Y,D.u_height_factor),u_image:new i.Uniform1i(Y,D.u_image),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade),u_opacity:new i.Uniform1f(Y,D.u_opacity)}},ah=function(Y,D,J,q){var K=D.style.light,de=K.properties.get("position"),ne=[de.x,de.y,de.z],we=i.create$1();K.properties.get("anchor")==="viewport"&&i.fromRotation(we,-D.transform.angle),i.transformMat3(ne,ne,we);var Ue=K.properties.get("color");return{u_matrix:Y,u_lightpos:ne,u_lightintensity:K.properties.get("intensity"),u_lightcolor:[Ue.r,Ue.g,Ue.b],u_vertical_gradient:+J,u_opacity:q}},Zu=function(Y,D,J,q,K,de,ne){return i.extend(ah(Y,D,J,q),Xu(de,D,ne),{u_height_factor:-Math.pow(2,K.overscaledZ)/ne.tileSize/8})},Oc=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},Tc=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_image:new i.Uniform1i(Y,D.u_image),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade)}},wl=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_world:new i.Uniform2f(Y,D.u_world)}},pu=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_world:new i.Uniform2f(Y,D.u_world),u_image:new i.Uniform1i(Y,D.u_image),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade)}},qc=function(Y){return{u_matrix:Y}},uf=function(Y,D,J,q){return i.extend(qc(Y),Xu(J,D,q))},fc=function(Y,D){return{u_matrix:Y,u_world:D}},Bc=function(Y,D,J,q,K){return i.extend(uf(Y,D,J,q),{u_world:K})},Tt=function(Y,D){return{u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(Y,D.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(Y,D.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},Xt=function(Y,D,J,q){var K=Y.transform,de,ne;if(q.paint.get("circle-pitch-alignment")==="map"){var we=Ss(J,1,K.zoom);de=!0,ne=[we,we]}else de=!1,ne=K.pixelsToGLUnits;return{u_camera_to_center_distance:K.cameraToCenterDistance,u_scale_with_map:+(q.paint.get("circle-pitch-scale")==="map"),u_matrix:Y.translatePosMatrix(D.posMatrix,J,q.paint.get("circle-translate"),q.paint.get("circle-translate-anchor")),u_pitch_with_map:+de,u_device_pixel_ratio:i.browser.devicePixelRatio,u_extrude_scale:ne}},Lr=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(Y,D.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(Y,D.u_extrude_scale),u_overscale_factor:new i.Uniform1f(Y,D.u_overscale_factor)}},Ar=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_inv_matrix:new i.UniformMatrix4f(Y,D.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(Y,D.u_viewport_size)}},Jr=function(Y,D,J){var q=Ss(J,1,D.zoom),K=Math.pow(2,D.zoom-J.tileID.overscaledZ),de=J.tileID.overscaleFactor();return{u_matrix:Y,u_camera_to_center_distance:D.cameraToCenterDistance,u_pixels_to_tile_units:q,u_extrude_scale:[D.pixelsToGLUnits[0]/(q*K),D.pixelsToGLUnits[1]/(q*K)],u_overscale_factor:de}},Ei=function(Y,D,J){return{u_matrix:Y,u_inv_matrix:D,u_camera_to_center_distance:J.cameraToCenterDistance,u_viewport_size:[J.width,J.height]}},Wi=function(Y,D){return{u_color:new i.UniformColor(Y,D.u_color),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_overlay:new i.Uniform1i(Y,D.u_overlay),u_overlay_scale:new i.Uniform1f(Y,D.u_overlay_scale)}},hn=function(Y,D,J){return J===void 0&&(J=1),{u_matrix:Y,u_color:D,u_overlay:0,u_overlay_scale:J}},Tn=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},Bn=function(Y){return{u_matrix:Y}},Zi=function(Y,D){return{u_extrude_scale:new i.Uniform1f(Y,D.u_extrude_scale),u_intensity:new i.Uniform1f(Y,D.u_intensity),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},$i=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_world:new i.Uniform2f(Y,D.u_world),u_image:new i.Uniform1i(Y,D.u_image),u_color_ramp:new i.Uniform1i(Y,D.u_color_ramp),u_opacity:new i.Uniform1f(Y,D.u_opacity)}},an=function(Y,D,J,q){return{u_matrix:Y,u_extrude_scale:Ss(D,1,J),u_intensity:q}},Di=function(Y,D,J,q){var K=i.create();i.ortho(K,0,Y.width,Y.height,0,0,1);var de=Y.context.gl;return{u_matrix:K,u_world:[de.drawingBufferWidth,de.drawingBufferHeight],u_image:J,u_color_ramp:q,u_opacity:D.paint.get("heatmap-opacity")}},$n=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_image:new i.Uniform1i(Y,D.u_image),u_latrange:new i.Uniform2f(Y,D.u_latrange),u_light:new i.Uniform2f(Y,D.u_light),u_shadow:new i.UniformColor(Y,D.u_shadow),u_highlight:new i.UniformColor(Y,D.u_highlight),u_accent:new i.UniformColor(Y,D.u_accent)}},ka=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_image:new i.Uniform1i(Y,D.u_image),u_dimension:new i.Uniform2f(Y,D.u_dimension),u_zoom:new i.Uniform1f(Y,D.u_zoom),u_unpack:new i.Uniform4f(Y,D.u_unpack)}},Ra=function(Y,D,J){var q=J.paint.get("hillshade-shadow-color"),K=J.paint.get("hillshade-highlight-color"),de=J.paint.get("hillshade-accent-color"),ne=J.paint.get("hillshade-illumination-direction")*(Math.PI/180);J.paint.get("hillshade-illumination-anchor")==="viewport"&&(ne-=Y.transform.angle);var we=!Y.options.moving;return{u_matrix:Y.transform.calculatePosMatrix(D.tileID.toUnwrapped(),we),u_image:0,u_latrange:Na(Y,D.tileID),u_light:[J.paint.get("hillshade-exaggeration"),ne],u_shadow:q,u_highlight:K,u_accent:de}},La=function(Y,D){var J=D.stride,q=i.create();return i.ortho(q,0,i.EXTENT,-i.EXTENT,0,0,1),i.translate(q,q,[0,-i.EXTENT,0]),{u_matrix:q,u_image:1,u_dimension:[J,J],u_zoom:Y.overscaledZ,u_unpack:D.getUnpackVector()}};function Na(Y,D){var J=Math.pow(2,D.canonical.z),q=D.canonical.y;return[new i.MercatorCoordinate(0,q/J).toLngLat().lat,new i.MercatorCoordinate(0,(q+1)/J).toLngLat().lat]}var Yn=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels)}},zn=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels),u_image:new i.Uniform1i(Y,D.u_image),u_image_height:new i.Uniform1f(Y,D.u_image_height)}},Ka=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_image:new i.Uniform1i(Y,D.u_image),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade)}},bo=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(Y,D.u_patternscale_a),u_patternscale_b:new i.Uniform2f(Y,D.u_patternscale_b),u_sdfgamma:new i.Uniform1f(Y,D.u_sdfgamma),u_image:new i.Uniform1i(Y,D.u_image),u_tex_y_a:new i.Uniform1f(Y,D.u_tex_y_a),u_tex_y_b:new i.Uniform1f(Y,D.u_tex_y_b),u_mix:new i.Uniform1f(Y,D.u_mix)}},Xo=function(Y,D,J){var q=Y.transform;return{u_matrix:yl(Y,D,J),u_ratio:1/Ss(D,1,q.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_units_to_pixels:[1/q.pixelsToGLUnits[0],1/q.pixelsToGLUnits[1]]}},Ms=function(Y,D,J,q){return i.extend(Xo(Y,D,J),{u_image:0,u_image_height:q})},os=function(Y,D,J,q){var K=Y.transform,de=Ho(D,K);return{u_matrix:yl(Y,D,J),u_texsize:D.imageAtlasTexture.size,u_ratio:1/Ss(D,1,K.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_image:0,u_scale:[de,q.fromScale,q.toScale],u_fade:q.t,u_units_to_pixels:[1/K.pixelsToGLUnits[0],1/K.pixelsToGLUnits[1]]}},Ts=function(Y,D,J,q,K){var de=Y.transform,ne=Y.lineAtlas,we=Ho(D,de),Ue=J.layout.get("line-cap")==="round",ft=ne.getDash(q.from,Ue),Zt=ne.getDash(q.to,Ue),hr=ft.width*K.fromScale,Bt=Zt.width*K.toScale;return i.extend(Xo(Y,D,J),{u_patternscale_a:[we/hr,-ft.height/2],u_patternscale_b:[we/Bt,-Zt.height/2],u_sdfgamma:ne.width/(Math.min(hr,Bt)*256*i.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:ft.y,u_tex_y_b:Zt.y,u_mix:K.t})};function Ho(Y,D){return 1/Ss(Y,1,D.tileZoom)}function yl(Y,D,J){return Y.translatePosMatrix(D.tileID.posMatrix,D,J.paint.get("line-translate"),J.paint.get("line-translate-anchor"))}var Xs=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_tl_parent:new i.Uniform2f(Y,D.u_tl_parent),u_scale_parent:new i.Uniform1f(Y,D.u_scale_parent),u_buffer_scale:new i.Uniform1f(Y,D.u_buffer_scale),u_fade_t:new i.Uniform1f(Y,D.u_fade_t),u_opacity:new i.Uniform1f(Y,D.u_opacity),u_image0:new i.Uniform1i(Y,D.u_image0),u_image1:new i.Uniform1i(Y,D.u_image1),u_brightness_low:new i.Uniform1f(Y,D.u_brightness_low),u_brightness_high:new i.Uniform1f(Y,D.u_brightness_high),u_saturation_factor:new i.Uniform1f(Y,D.u_saturation_factor),u_contrast_factor:new i.Uniform1f(Y,D.u_contrast_factor),u_spin_weights:new i.Uniform3f(Y,D.u_spin_weights)}},Ps=function(Y,D,J,q,K){return{u_matrix:Y,u_tl_parent:D,u_scale_parent:J,u_buffer_scale:1,u_fade_t:q.mix,u_opacity:q.opacity*K.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:K.paint.get("raster-brightness-min"),u_brightness_high:K.paint.get("raster-brightness-max"),u_saturation_factor:_s(K.paint.get("raster-saturation")),u_contrast_factor:no(K.paint.get("raster-contrast")),u_spin_weights:va(K.paint.get("raster-hue-rotate"))}};function va(Y){Y*=Math.PI/180;var D=Math.sin(Y),J=Math.cos(Y);return[(2*J+1)/3,(-Math.sqrt(3)*D-J+1)/3,(Math.sqrt(3)*D-J+1)/3]}function no(Y){return Y>0?1/(1-Y):1+Y}function _s(Y){return Y>0?1-1/(1.001-Y):-Y}var is=function(Y,D){return{u_is_size_zoom_constant:new i.Uniform1i(Y,D.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,D.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,D.u_size_t),u_size:new i.Uniform1f(Y,D.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,D.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,D.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,D.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,D.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,D.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,D.u_coord_matrix),u_is_text:new i.Uniform1i(Y,D.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_texture:new i.Uniform1i(Y,D.u_texture)}},$l=function(Y,D){return{u_is_size_zoom_constant:new i.Uniform1i(Y,D.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,D.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,D.u_size_t),u_size:new i.Uniform1f(Y,D.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,D.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,D.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,D.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,D.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,D.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,D.u_coord_matrix),u_is_text:new i.Uniform1i(Y,D.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_texture:new i.Uniform1i(Y,D.u_texture),u_gamma_scale:new i.Uniform1f(Y,D.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,D.u_is_halo)}},ku=function(Y,D){return{u_is_size_zoom_constant:new i.Uniform1i(Y,D.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,D.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,D.u_size_t),u_size:new i.Uniform1f(Y,D.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,D.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,D.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,D.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,D.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,D.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,D.u_coord_matrix),u_is_text:new i.Uniform1i(Y,D.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_texsize_icon:new i.Uniform2f(Y,D.u_texsize_icon),u_texture:new i.Uniform1i(Y,D.u_texture),u_texture_icon:new i.Uniform1i(Y,D.u_texture_icon),u_gamma_scale:new i.Uniform1f(Y,D.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,D.u_is_halo)}},Yu=function(Y,D,J,q,K,de,ne,we,Ue,ft){var Zt=K.transform;return{u_is_size_zoom_constant:+(Y==="constant"||Y==="source"),u_is_size_feature_constant:+(Y==="constant"||Y==="camera"),u_size_t:D?D.uSizeT:0,u_size:D?D.uSize:0,u_camera_to_center_distance:Zt.cameraToCenterDistance,u_pitch:Zt.pitch/360*2*Math.PI,u_rotate_symbol:+J,u_aspect_ratio:Zt.width/Zt.height,u_fade_change:K.options.fadeDuration?K.symbolFadeChange:1,u_matrix:de,u_label_plane_matrix:ne,u_coord_matrix:we,u_is_text:+Ue,u_pitch_with_map:+q,u_texsize:ft,u_texture:0}},Nc=function(Y,D,J,q,K,de,ne,we,Ue,ft,Zt){var hr=K.transform;return i.extend(Yu(Y,D,J,q,K,de,ne,we,Ue,ft),{u_gamma_scale:q?Math.cos(hr._pitch)*hr.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+Zt})},gu=function(Y,D,J,q,K,de,ne,we,Ue,ft){return i.extend(Nc(Y,D,J,q,K,de,ne,we,!0,Ue,!0),{u_texsize_icon:ft,u_texture_icon:1})},Uc=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_opacity:new i.Uniform1f(Y,D.u_opacity),u_color:new i.UniformColor(Y,D.u_color)}},xu=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_opacity:new i.Uniform1f(Y,D.u_opacity),u_image:new i.Uniform1i(Y,D.u_image),u_pattern_tl_a:new i.Uniform2f(Y,D.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(Y,D.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(Y,D.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(Y,D.u_pattern_br_b),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_mix:new i.Uniform1f(Y,D.u_mix),u_pattern_size_a:new i.Uniform2f(Y,D.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(Y,D.u_pattern_size_b),u_scale_a:new i.Uniform1f(Y,D.u_scale_a),u_scale_b:new i.Uniform1f(Y,D.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(Y,D.u_tile_units_to_pixels)}},Ac=function(Y,D,J){return{u_matrix:Y,u_opacity:D,u_color:J}},Ua=function(Y,D,J,q,K,de){return i.extend(lf(q,de,J,K),{u_matrix:Y,u_opacity:D})},oo={fillExtrusion:Wf,fillExtrusionPattern:Wl,fill:Oc,fillPattern:Tc,fillOutline:wl,fillOutlinePattern:pu,circle:Tt,collisionBox:Lr,collisionCircle:Ar,debug:Wi,clippingMask:Tn,heatmap:Zi,heatmapTexture:$i,hillshade:$n,hillshadePrepare:ka,line:Yn,lineGradient:zn,linePattern:Ka,lineSDF:bo,raster:Xs,symbolIcon:is,symbolSDF:$l,symbolTextAndIcon:ku,background:Uc,backgroundPattern:xu},Vc;function hc(Y,D,J,q,K,de,ne){for(var we=Y.context,Ue=we.gl,ft=Y.useProgram("collisionBox"),Zt=[],hr=0,Bt=0,Ve=0;Ve0){var Dt=i.create(),mt=qt;i.mul(Dt,kt.placementInvProjMatrix,Y.transform.glCoordMatrix),i.mul(Dt,Dt,kt.placementViewportMatrix),Zt.push({circleArray:Nt,circleOffset:Bt,transform:mt,invTransform:Dt}),hr+=Nt.length/4,Bt=hr}Rt&&ft.draw(we,Ue.LINES,wn.disabled,kn.disabled,Y.colorModeForRenderPass(),Er.disabled,Jr(qt,Y.transform,at),J.id,Rt.layoutVertexBuffer,Rt.indexBuffer,Rt.segments,null,Y.transform.zoom,null,null,Rt.collisionVertexBuffer)}}if(!(!ne||!Zt.length)){var Pt=Y.useProgram("collisionCircle"),ht=new i.StructArrayLayout2f1f2i16;ht.resize(hr*4),ht._trim();for(var cr=0,br=0,Nr=Zt;br=0&&(et[kt.associatedIconIndex]={shiftedAnchor:wi,angle:gn})}}if(Zt){Ve.clear();for(var Ci=Y.icon.placedSymbolArray,qi=0;qi0){var ne=i.browser.now(),we=(ne-Y.timeAdded)/de,Ue=D?(ne-D.timeAdded)/de:-1,ft=J.getSource(),Zt=K.coveringZoomLevel({tileSize:ft.tileSize,roundZoom:ft.roundZoom}),hr=!D||Math.abs(D.tileID.overscaledZ-Zt)>Math.abs(Y.tileID.overscaledZ-Zt),Bt=hr&&Y.refreshedUponExpiration?1:i.clamp(hr?we:1-Ue,0,1);return Y.refreshedUponExpiration&&we>=1&&(Y.refreshedUponExpiration=!1),D?{opacity:1,mix:1-Bt}:{opacity:Bt,mix:0}}else return{opacity:1,mix:0}}function tr(Y,D,J){var q=J.paint.get("background-color"),K=J.paint.get("background-opacity");if(K!==0){var de=Y.context,ne=de.gl,we=Y.transform,Ue=we.tileSize,ft=J.paint.get("background-pattern");if(!Y.isPatternMissing(ft)){var Zt=!ft&&q.a===1&&K===1&&Y.opaquePassEnabledForLayer()?"opaque":"translucent";if(Y.renderPass===Zt){var hr=kn.disabled,Bt=Y.depthModeForSublayer(0,Zt==="opaque"?wn.ReadWrite:wn.ReadOnly),Ve=Y.colorModeForRenderPass(),et=Y.useProgram(ft?"backgroundPattern":"background"),at=we.coveringTiles({tileSize:Ue});ft&&(de.activeTexture.set(ne.TEXTURE0),Y.imageManager.bind(Y.context));for(var kt=J.getCrossfadeParameters(),qt=0,Rt=at;qt "+J.overscaledZ);var qt=kt+" "+Ve+"kb";$a(Y,qt),ne.draw(q,K.TRIANGLES,we,Ue,yt.alphaBlended,Er.disabled,hn(de,i.Color.transparent,at),Zt,Y.debugBuffer,Y.quadTriangleIndexBuffer,Y.debugSegments)}function $a(Y,D){Y.initDebugOverlayCanvas();var J=Y.debugOverlayCanvas,q=Y.context.gl,K=Y.debugOverlayCanvas.getContext("2d");K.clearRect(0,0,J.width,J.height),K.shadowColor="white",K.shadowBlur=2,K.lineWidth=1.5,K.strokeStyle="white",K.textBaseline="top",K.font="bold 36px Open Sans, sans-serif",K.fillText(D,5,5),K.strokeText(D,5,5),Y.debugOverlayTexture.update(J),Y.debugOverlayTexture.bind(q.LINEAR,q.CLAMP_TO_EDGE)}function ko(Y,D,J){var q=Y.context,K=J.implementation;if(Y.renderPass==="offscreen"){var de=K.prerender;de&&(Y.setCustomLayerDefaults(),q.setColorMode(Y.colorModeForRenderPass()),de.call(K,q.gl,Y.transform.customLayerMatrix()),q.setDirty(),Y.setBaseState())}else if(Y.renderPass==="translucent"){Y.setCustomLayerDefaults(),q.setColorMode(Y.colorModeForRenderPass()),q.setStencilMode(kn.disabled);var ne=K.renderingMode==="3d"?new wn(Y.context.gl.LEQUAL,wn.ReadWrite,Y.depthRangeFor3D):Y.depthModeForSublayer(0,wn.ReadOnly);q.setDepthMode(ne),K.render(q.gl,Y.transform.customLayerMatrix()),q.setDirty(),Y.setBaseState(),q.bindFramebuffer.set(null)}}var Qa={symbol:w,circle:ot,heatmap:wt,line:Ir,fill:ve,"fill-extrusion":Re,hillshade:tt,raster:Ft,background:tr,debug:Aa,custom:ko},mo=function(D,J){this.context=new Xr(D),this.transform=J,this._tileTextures={},this.setup(),this.numSublayers=ri.maxUnderzooming+ri.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Nf,this.gpuTimers={}};mo.prototype.resize=function(D,J){if(this.width=D*i.browser.devicePixelRatio,this.height=J*i.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var q=0,K=this.style._order;q256&&this.clearStencil(),q.setColorMode(yt.disabled),q.setDepthMode(wn.disabled);var de=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ne=0,we=J;ne256&&this.clearStencil();var D=this.nextStencilID++,J=this.context.gl;return new kn({func:J.NOTEQUAL,mask:255},D,255,J.KEEP,J.KEEP,J.REPLACE)},mo.prototype.stencilModeForClipping=function(D){var J=this.context.gl;return new kn({func:J.EQUAL,mask:255},this._tileClippingMaskIDs[D.key],0,J.KEEP,J.KEEP,J.REPLACE)},mo.prototype.stencilConfigForOverlap=function(D){var J,q=this.context.gl,K=D.sort(function(ft,Zt){return Zt.overscaledZ-ft.overscaledZ}),de=K[K.length-1].overscaledZ,ne=K[0].overscaledZ-de+1;if(ne>1){this.currentStencilSource=void 0,this.nextStencilID+ne>256&&this.clearStencil();for(var we={},Ue=0;Ue=0;this.currentLayer--){var Dt=this.style._layers[K[this.currentLayer]],mt=de[Dt.source],Pt=Ue[Dt.source];this._renderTileClippingMasks(Dt,Pt),this.renderLayer(this,mt,Dt,Pt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?J.pop():null},mo.prototype.isPatternMissing=function(D){if(!D)return!1;if(!D.from||!D.to)return!0;var J=this.imageManager.getPattern(D.from.toString()),q=this.imageManager.getPattern(D.to.toString());return!J||!q},mo.prototype.useProgram=function(D,J){this.cache=this.cache||{};var q=""+D+(J?J.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[q]||(this.cache[q]=new If(this.context,D,xf[D],J,oo[D],this._showOverdrawInspector)),this.cache[q]},mo.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},mo.prototype.setBaseState=function(){var D=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(D.FUNC_ADD)},mo.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var D=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,D.RGBA)}},mo.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var Bo=function(D,J){this.points=D,this.planes=J};Bo.fromInvProjectionMatrix=function(D,J,q){var K=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],de=Math.pow(2,q),ne=K.map(function(ft){return i.transformMat4([],ft,D)}).map(function(ft){return i.scale$1([],ft,1/ft[3]/J*de)}),we=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],Ue=we.map(function(ft){var Zt=i.sub([],ne[ft[0]],ne[ft[1]]),hr=i.sub([],ne[ft[2]],ne[ft[1]]),Bt=i.normalize([],i.cross([],Zt,hr)),Ve=-i.dot(Bt,ne[ft[1]]);return Bt.concat(Ve)});return new Bo(ne,Ue)};var Is=function(D,J){this.min=D,this.max=J,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};Is.prototype.quadrant=function(D){for(var J=[D%2===0,D<2],q=i.clone$2(this.min),K=i.clone$2(this.max),de=0;de=0;if(ne===0)return 0;ne!==J.length&&(q=!1)}if(q)return 2;for(var Ue=0;Ue<3;Ue++){for(var ft=Number.MAX_VALUE,Zt=-Number.MAX_VALUE,hr=0;hrthis.max[Ue]-this.min[Ue])return 0}return 1};var As=function(D,J,q,K){if(D===void 0&&(D=0),J===void 0&&(J=0),q===void 0&&(q=0),K===void 0&&(K=0),isNaN(D)||D<0||isNaN(J)||J<0||isNaN(q)||q<0||isNaN(K)||K<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=D,this.bottom=J,this.left=q,this.right=K};As.prototype.interpolate=function(D,J,q){return J.top!=null&&D.top!=null&&(this.top=i.number(D.top,J.top,q)),J.bottom!=null&&D.bottom!=null&&(this.bottom=i.number(D.bottom,J.bottom,q)),J.left!=null&&D.left!=null&&(this.left=i.number(D.left,J.left,q)),J.right!=null&&D.right!=null&&(this.right=i.number(D.right,J.right,q)),this},As.prototype.getCenter=function(D,J){var q=i.clamp((this.left+D-this.right)/2,0,D),K=i.clamp((this.top+J-this.bottom)/2,0,J);return new i.Point(q,K)},As.prototype.equals=function(D){return this.top===D.top&&this.bottom===D.bottom&&this.left===D.left&&this.right===D.right},As.prototype.clone=function(){return new As(this.top,this.bottom,this.left,this.right)},As.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var wo=function(D,J,q,K,de){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=de===void 0?!0:de,this._minZoom=D||0,this._maxZoom=J||22,this._minPitch=q==null?0:q,this._maxPitch=K==null?60:K,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new As,this._posMatrixCache={},this._alignedPosMatrixCache={}},To={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};wo.prototype.clone=function(){var D=new wo(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return D.tileSize=this.tileSize,D.latRange=this.latRange,D.width=this.width,D.height=this.height,D._center=this._center,D.zoom=this.zoom,D.angle=this.angle,D._fov=this._fov,D._pitch=this._pitch,D._unmodified=this._unmodified,D._edgeInsets=this._edgeInsets.clone(),D._calcMatrices(),D},To.minZoom.get=function(){return this._minZoom},To.minZoom.set=function(Y){this._minZoom!==Y&&(this._minZoom=Y,this.zoom=Math.max(this.zoom,Y))},To.maxZoom.get=function(){return this._maxZoom},To.maxZoom.set=function(Y){this._maxZoom!==Y&&(this._maxZoom=Y,this.zoom=Math.min(this.zoom,Y))},To.minPitch.get=function(){return this._minPitch},To.minPitch.set=function(Y){this._minPitch!==Y&&(this._minPitch=Y,this.pitch=Math.max(this.pitch,Y))},To.maxPitch.get=function(){return this._maxPitch},To.maxPitch.set=function(Y){this._maxPitch!==Y&&(this._maxPitch=Y,this.pitch=Math.min(this.pitch,Y))},To.renderWorldCopies.get=function(){return this._renderWorldCopies},To.renderWorldCopies.set=function(Y){Y===void 0?Y=!0:Y===null&&(Y=!1),this._renderWorldCopies=Y},To.worldSize.get=function(){return this.tileSize*this.scale},To.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},To.size.get=function(){return new i.Point(this.width,this.height)},To.bearing.get=function(){return-this.angle/Math.PI*180},To.bearing.set=function(Y){var D=-i.wrap(Y,-180,180)*Math.PI/180;this.angle!==D&&(this._unmodified=!1,this.angle=D,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},To.pitch.get=function(){return this._pitch/Math.PI*180},To.pitch.set=function(Y){var D=i.clamp(Y,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==D&&(this._unmodified=!1,this._pitch=D,this._calcMatrices())},To.fov.get=function(){return this._fov/Math.PI*180},To.fov.set=function(Y){Y=Math.max(.01,Math.min(60,Y)),this._fov!==Y&&(this._unmodified=!1,this._fov=Y/180*Math.PI,this._calcMatrices())},To.zoom.get=function(){return this._zoom},To.zoom.set=function(Y){var D=Math.min(Math.max(Y,this.minZoom),this.maxZoom);this._zoom!==D&&(this._unmodified=!1,this._zoom=D,this.scale=this.zoomScale(D),this.tileZoom=Math.floor(D),this.zoomFraction=D-this.tileZoom,this._constrain(),this._calcMatrices())},To.center.get=function(){return this._center},To.center.set=function(Y){Y.lat===this._center.lat&&Y.lng===this._center.lng||(this._unmodified=!1,this._center=Y,this._constrain(),this._calcMatrices())},To.padding.get=function(){return this._edgeInsets.toJSON()},To.padding.set=function(Y){this._edgeInsets.equals(Y)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,Y,1),this._calcMatrices())},To.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},wo.prototype.isPaddingEqual=function(D){return this._edgeInsets.equals(D)},wo.prototype.interpolatePadding=function(D,J,q){this._unmodified=!1,this._edgeInsets.interpolate(D,J,q),this._constrain(),this._calcMatrices()},wo.prototype.coveringZoomLevel=function(D){var J=(D.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/D.tileSize));return Math.max(0,J)},wo.prototype.getVisibleUnwrappedCoordinates=function(D){var J=[new i.UnwrappedTileID(0,D)];if(this._renderWorldCopies)for(var q=this.pointCoordinate(new i.Point(0,0)),K=this.pointCoordinate(new i.Point(this.width,0)),de=this.pointCoordinate(new i.Point(this.width,this.height)),ne=this.pointCoordinate(new i.Point(0,this.height)),we=Math.floor(Math.min(q.x,K.x,de.x,ne.x)),Ue=Math.floor(Math.max(q.x,K.x,de.x,ne.x)),ft=1,Zt=we-ft;Zt<=Ue+ft;Zt++)Zt!==0&&J.push(new i.UnwrappedTileID(Zt,D));return J},wo.prototype.coveringTiles=function(D){var J=this.coveringZoomLevel(D),q=J;if(D.minzoom!==void 0&&JD.maxzoom&&(J=D.maxzoom);var K=i.MercatorCoordinate.fromLngLat(this.center),de=Math.pow(2,J),ne=[de*K.x,de*K.y,0],we=Bo.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,J),Ue=D.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Ue=J);var ft=3,Zt=function(fi){return{aabb:new Is([fi*de,0,0],[(fi+1)*de,de,0]),zoom:0,x:0,y:0,wrap:fi,fullyVisible:!1}},hr=[],Bt=[],Ve=J,et=D.reparseOverscaled?q:J;if(this._renderWorldCopies)for(var at=1;at<=3;at++)hr.push(Zt(-at)),hr.push(Zt(at));for(hr.push(Zt(0));hr.length>0;){var kt=hr.pop(),qt=kt.x,Rt=kt.y,Nt=kt.fullyVisible;if(!Nt){var Dt=kt.aabb.intersects(we);if(Dt===0)continue;Nt=Dt===2}var mt=kt.aabb.distanceX(ne),Pt=kt.aabb.distanceY(ne),ht=Math.max(Math.abs(mt),Math.abs(Pt)),cr=ft+(1<cr&&kt.zoom>=Ue){Bt.push({tileID:new i.OverscaledTileID(kt.zoom===Ve?et:kt.zoom,kt.wrap,kt.zoom,qt,Rt),distanceSq:i.sqrLen([ne[0]-.5-qt,ne[1]-.5-Rt])});continue}for(var br=0;br<4;br++){var Nr=(qt<<1)+br%2,Ri=(Rt<<1)+(br>>1);hr.push({aabb:kt.aabb.quadrant(br),zoom:kt.zoom+1,x:Nr,y:Ri,wrap:kt.wrap,fullyVisible:Nt})}}return Bt.sort(function(fi,wi){return fi.distanceSq-wi.distanceSq}).map(function(fi){return fi.tileID})},wo.prototype.resize=function(D,J){this.width=D,this.height=J,this.pixelsToGLUnits=[2/D,-2/J],this._constrain(),this._calcMatrices()},To.unmodified.get=function(){return this._unmodified},wo.prototype.zoomScale=function(D){return Math.pow(2,D)},wo.prototype.scaleZoom=function(D){return Math.log(D)/Math.LN2},wo.prototype.project=function(D){var J=i.clamp(D.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(D.lng)*this.worldSize,i.mercatorYfromLat(J)*this.worldSize)},wo.prototype.unproject=function(D){return new i.MercatorCoordinate(D.x/this.worldSize,D.y/this.worldSize).toLngLat()},To.point.get=function(){return this.project(this.center)},wo.prototype.setLocationAtPoint=function(D,J){var q=this.pointCoordinate(J),K=this.pointCoordinate(this.centerPoint),de=this.locationCoordinate(D),ne=new i.MercatorCoordinate(de.x-(q.x-K.x),de.y-(q.y-K.y));this.center=this.coordinateLocation(ne),this._renderWorldCopies&&(this.center=this.center.wrap())},wo.prototype.locationPoint=function(D){return this.coordinatePoint(this.locationCoordinate(D))},wo.prototype.pointLocation=function(D){return this.coordinateLocation(this.pointCoordinate(D))},wo.prototype.locationCoordinate=function(D){return i.MercatorCoordinate.fromLngLat(D)},wo.prototype.coordinateLocation=function(D){return D.toLngLat()},wo.prototype.pointCoordinate=function(D){var J=0,q=[D.x,D.y,0,1],K=[D.x,D.y,1,1];i.transformMat4(q,q,this.pixelMatrixInverse),i.transformMat4(K,K,this.pixelMatrixInverse);var de=q[3],ne=K[3],we=q[0]/de,Ue=K[0]/ne,ft=q[1]/de,Zt=K[1]/ne,hr=q[2]/de,Bt=K[2]/ne,Ve=hr===Bt?0:(J-hr)/(Bt-hr);return new i.MercatorCoordinate(i.number(we,Ue,Ve)/this.worldSize,i.number(ft,Zt,Ve)/this.worldSize)},wo.prototype.coordinatePoint=function(D){var J=[D.x*this.worldSize,D.y*this.worldSize,0,1];return i.transformMat4(J,J,this.pixelMatrix),new i.Point(J[0]/J[3],J[1]/J[3])},wo.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},wo.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},wo.prototype.setMaxBounds=function(D){D?(this.lngRange=[D.getWest(),D.getEast()],this.latRange=[D.getSouth(),D.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},wo.prototype.calculatePosMatrix=function(D,J){J===void 0&&(J=!1);var q=D.key,K=J?this._alignedPosMatrixCache:this._posMatrixCache;if(K[q])return K[q];var de=D.canonical,ne=this.worldSize/this.zoomScale(de.z),we=de.x+Math.pow(2,de.z)*D.wrap,Ue=i.identity(new Float64Array(16));return i.translate(Ue,Ue,[we*ne,de.y*ne,0]),i.scale(Ue,Ue,[ne/i.EXTENT,ne/i.EXTENT,1]),i.multiply(Ue,J?this.alignedProjMatrix:this.projMatrix,Ue),K[q]=new Float32Array(Ue),K[q]},wo.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},wo.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var D=-90,J=90,q=-180,K=180,de,ne,we,Ue,ft=this.size,Zt=this._unmodified;if(this.latRange){var hr=this.latRange;D=i.mercatorYfromLat(hr[1])*this.worldSize,J=i.mercatorYfromLat(hr[0])*this.worldSize,de=J-DJ&&(Ue=J-kt)}if(this.lngRange){var qt=Ve.x,Rt=ft.x/2;qt-RtK&&(we=K-Rt)}(we!==void 0||Ue!==void 0)&&(this.center=this.unproject(new i.Point(we!==void 0?we:Ve.x,Ue!==void 0?Ue:Ve.y))),this._unmodified=Zt,this._constraining=!1}},wo.prototype._calcMatrices=function(){if(this.height){var D=this._fov/2,J=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(D)*this.height;var q=Math.PI/2+this._pitch,K=this._fov*(.5+J.y/this.height),de=Math.sin(K)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-q-K,.01,Math.PI-.01)),ne=this.point,we=ne.x,Ue=ne.y,ft=Math.cos(Math.PI/2-this._pitch)*de+this.cameraToCenterDistance,Zt=ft*1.01,hr=this.height/50,Bt=new Float64Array(16);i.perspective(Bt,this._fov,this.width/this.height,hr,Zt),Bt[8]=-J.x*2/this.width,Bt[9]=J.y*2/this.height,i.scale(Bt,Bt,[1,-1,1]),i.translate(Bt,Bt,[0,0,-this.cameraToCenterDistance]),i.rotateX(Bt,Bt,this._pitch),i.rotateZ(Bt,Bt,this.angle),i.translate(Bt,Bt,[-we,-Ue,0]),this.mercatorMatrix=i.scale([],Bt,[this.worldSize,this.worldSize,this.worldSize]),i.scale(Bt,Bt,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=Bt,this.invProjMatrix=i.invert([],this.projMatrix);var Ve=this.width%2/2,et=this.height%2/2,at=Math.cos(this.angle),kt=Math.sin(this.angle),qt=we-Math.round(we)+at*Ve+kt*et,Rt=Ue-Math.round(Ue)+at*et+kt*Ve,Nt=new Float64Array(Bt);if(i.translate(Nt,Nt,[qt>.5?qt-1:qt,Rt>.5?Rt-1:Rt,0]),this.alignedProjMatrix=Nt,Bt=i.create(),i.scale(Bt,Bt,[this.width/2,-this.height/2,1]),i.translate(Bt,Bt,[1,-1,0]),this.labelPlaneMatrix=Bt,Bt=i.create(),i.scale(Bt,Bt,[1,-1,1]),i.translate(Bt,Bt,[-1,-1,0]),i.scale(Bt,Bt,[2/this.width,2/this.height,1]),this.glCoordMatrix=Bt,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),Bt=i.invert(new Float64Array(16),this.pixelMatrix),!Bt)throw new Error("failed to invert matrix");this.pixelMatrixInverse=Bt,this._posMatrixCache={},this._alignedPosMatrixCache={}}},wo.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var D=this.pointCoordinate(new i.Point(0,0)),J=[D.x*this.worldSize,D.y*this.worldSize,0,1],q=i.transformMat4(J,J,this.pixelMatrix);return q[3]/this.cameraToCenterDistance},wo.prototype.getCameraPoint=function(){var D=this._pitch,J=Math.tan(D)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,J))},wo.prototype.getCameraQueryGeometry=function(D){var J=this.getCameraPoint();if(D.length===1)return[D[0],J];for(var q=J.x,K=J.y,de=J.x,ne=J.y,we=0,Ue=D;we=3&&!D.some(function(q){return isNaN(q)})){var J=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(D[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+D[2],+D[1]],zoom:+D[0],bearing:J,pitch:+(D[4]||0)}),!0}return!1},Nl.prototype._updateHashUnthrottled=function(){var D=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,D)}catch(J){}};var Lu={linearity:.3,easing:i.bezier(0,0,.3,1)},ou=i.extend({deceleration:2500,maxSpeed:1400},Lu),$s=i.extend({deceleration:20,maxSpeed:1400},Lu),Ql=i.extend({deceleration:1e3,maxSpeed:360},Lu),dc=i.extend({deceleration:1e3,maxSpeed:90},Lu),Tl=function(D){this._map=D,this.clear()};Tl.prototype.clear=function(){this._inertiaBuffer=[]},Tl.prototype.record=function(D){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:i.browser.now(),settings:D})},Tl.prototype._drainInertiaBuffer=function(){for(var D=this._inertiaBuffer,J=i.browser.now(),q=160;D.length>0&&J-D[0].time>q;)D.shift()},Tl.prototype._onMoveEnd=function(D){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var J={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},q=0,K=this._inertiaBuffer;q=this._clickTolerance||this._map.fire(new se(D.type,this._map,D))},He.prototype.dblclick=function(D){return this._firePreventable(new se(D.type,this._map,D))},He.prototype.mouseover=function(D){this._map.fire(new se(D.type,this._map,D))},He.prototype.mouseout=function(D){this._map.fire(new se(D.type,this._map,D))},He.prototype.touchstart=function(D){return this._firePreventable(new Te(D.type,this._map,D))},He.prototype.touchmove=function(D){this._map.fire(new Te(D.type,this._map,D))},He.prototype.touchend=function(D){this._map.fire(new Te(D.type,this._map,D))},He.prototype.touchcancel=function(D){this._map.fire(new Te(D.type,this._map,D))},He.prototype._firePreventable=function(D){if(this._map.fire(D),D.defaultPrevented)return{}},He.prototype.isEnabled=function(){return!0},He.prototype.isActive=function(){return!1},He.prototype.enable=function(){},He.prototype.disable=function(){};var Ye=function(D){this._map=D};Ye.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Ye.prototype.mousemove=function(D){this._map.fire(new se(D.type,this._map,D))},Ye.prototype.mousedown=function(){this._delayContextMenu=!0},Ye.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new se("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Ye.prototype.contextmenu=function(D){this._delayContextMenu?this._contextMenuEvent=D:this._map.fire(new se(D.type,this._map,D)),this._map.listens("contextmenu")&&D.preventDefault()},Ye.prototype.isEnabled=function(){return!0},Ye.prototype.isActive=function(){return!1},Ye.prototype.enable=function(){},Ye.prototype.disable=function(){};var Et=function(D,J){this._map=D,this._el=D.getCanvasContainer(),this._container=D.getContainer(),this._clickTolerance=J.clickTolerance||1};Et.prototype.isEnabled=function(){return!!this._enabled},Et.prototype.isActive=function(){return!!this._active},Et.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Et.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Et.prototype.mousedown=function(D,J){this.isEnabled()&&D.shiftKey&&D.button===0&&(o.disableDrag(),this._startPos=this._lastPos=J,this._active=!0)},Et.prototype.mousemoveWindow=function(D,J){if(this._active){var q=J;if(!(this._lastPos.equals(q)||!this._box&&q.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=D.timeStamp),q.length===this.numTouches&&(this.centroid=Wt(J),this.touches=nt(q,J)))},qr.prototype.touchmove=function(D,J,q){if(!(this.aborted||!this.centroid)){var K=nt(q,J);for(var de in this.touches){var ne=this.touches[de],we=K[de];(!we||we.dist(ne)>Vr)&&(this.aborted=!0)}}},qr.prototype.touchend=function(D,J,q){if((!this.centroid||D.timeStamp-this.startTime>yr)&&(this.aborted=!0),q.length===0){var K=!this.aborted&&this.centroid;if(this.reset(),K)return K}};var _i=function(D){this.singleTap=new qr(D),this.numTaps=D.numTaps,this.reset()};_i.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},_i.prototype.touchstart=function(D,J,q){this.singleTap.touchstart(D,J,q)},_i.prototype.touchmove=function(D,J,q){this.singleTap.touchmove(D,J,q)},_i.prototype.touchend=function(D,J,q){var K=this.singleTap.touchend(D,J,q);if(K){var de=D.timeStamp-this.lastTime0&&(this._active=!0);var K=nt(q,J),de=new i.Point(0,0),ne=new i.Point(0,0),we=0;for(var Ue in K){var ft=K[Ue],Zt=this._touches[Ue];Zt&&(de._add(ft),ne._add(ft.sub(Zt)),we++,K[Ue]=ft)}if(this._touches=K,!(weMath.abs(Y.x)}var Gn=100,Ha=function(Y){function D(){Y.apply(this,arguments)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.reset=function(){Y.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},D.prototype._start=function(q){this._lastPoints=q,Zs(q[0].sub(q[1]))&&(this._valid=!1)},D.prototype._move=function(q,K,de){var ne=q[0].sub(this._lastPoints[0]),we=q[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ne,we,de.timeStamp),!!this._valid){this._lastPoints=q,this._active=!0;var Ue=(ne.y+we.y)/2,ft=-.5;return{pitchDelta:Ue*ft}}},D.prototype.gestureBeginsVertically=function(q,K,de){if(this._valid!==void 0)return this._valid;var ne=2,we=q.mag()>=ne,Ue=K.mag()>=ne;if(!(!we&&!Ue)){if(!we||!Ue)return this._firstMove===void 0&&(this._firstMove=de),de-this._firstMove0==K.y>0;return Zs(q)&&Zs(K)&&ft}},D}(ia),Fo={panStep:100,bearingStep:15,pitchStep:10},Uo=function(){var D=Fo;this._panStep=D.panStep,this._bearingStep=D.bearingStep,this._pitchStep=D.pitchStep,this._rotationDisabled=!1};Uo.prototype.reset=function(){this._active=!1},Uo.prototype.keydown=function(D){var J=this;if(!(D.altKey||D.ctrlKey||D.metaKey)){var q=0,K=0,de=0,ne=0,we=0;switch(D.keyCode){case 61:case 107:case 171:case 187:q=1;break;case 189:case 109:case 173:q=-1;break;case 37:D.shiftKey?K=-1:(D.preventDefault(),ne=-1);break;case 39:D.shiftKey?K=1:(D.preventDefault(),ne=1);break;case 38:D.shiftKey?de=1:(D.preventDefault(),we=-1);break;case 40:D.shiftKey?de=-1:(D.preventDefault(),we=1);break;default:return}return this._rotationDisabled&&(K=0,de=0),{cameraAnimation:function(Ue){var ft=Ue.getZoom();Ue.easeTo({duration:300,easeId:"keyboardHandler",easing:Qs,zoom:q?Math.round(ft)+q*(D.shiftKey?2:1):ft,bearing:Ue.getBearing()+K*J._bearingStep,pitch:Ue.getPitch()+de*J._pitchStep,offset:[-ne*J._panStep,-we*J._panStep],center:Ue.getCenter()},{originalEvent:D})}}}},Uo.prototype.enable=function(){this._enabled=!0},Uo.prototype.disable=function(){this._enabled=!1,this.reset()},Uo.prototype.isEnabled=function(){return this._enabled},Uo.prototype.isActive=function(){return this._active},Uo.prototype.disableRotation=function(){this._rotationDisabled=!0},Uo.prototype.enableRotation=function(){this._rotationDisabled=!1};function Qs(Y){return Y*(2-Y)}var Sl=4.000244140625,bu=1/100,vl=1/450,Sc=2,Ee=function(D,J){this._map=D,this._el=D.getCanvasContainer(),this._handler=J,this._delta=0,this._defaultZoomRate=bu,this._wheelZoomRate=vl,i.bindAll(["_onTimeout"],this)};Ee.prototype.setZoomRate=function(D){this._defaultZoomRate=D},Ee.prototype.setWheelZoomRate=function(D){this._wheelZoomRate=D},Ee.prototype.isEnabled=function(){return!!this._enabled},Ee.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Ee.prototype.isZooming=function(){return!!this._zooming},Ee.prototype.enable=function(D){this.isEnabled()||(this._enabled=!0,this._aroundCenter=D&&D.around==="center")},Ee.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Ee.prototype.wheel=function(D){if(this.isEnabled()){var J=D.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?D.deltaY*40:D.deltaY,q=i.browser.now(),K=q-(this._lastWheelEventTime||0);this._lastWheelEventTime=q,J!==0&&J%Sl===0?this._type="wheel":J!==0&&Math.abs(J)<4?this._type="trackpad":K>400?(this._type=null,this._lastValue=J,this._timeout=setTimeout(this._onTimeout,40,D)):this._type||(this._type=Math.abs(K*J)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,J+=this._lastValue)),D.shiftKey&&J&&(J=J/4),this._type&&(this._lastWheelEvent=D,this._delta-=J,this._active||this._start(D)),D.preventDefault()}},Ee.prototype._onTimeout=function(D){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(D)},Ee.prototype._start=function(D){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var J=o.mousePos(this._el,D);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(J)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Ee.prototype.renderFrame=function(){var D=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var J=this._map.transform;if(this._delta!==0){var q=this._type==="wheel"&&Math.abs(this._delta)>Sl?this._wheelZoomRate:this._defaultZoomRate,K=Sc/(1+Math.exp(-Math.abs(this._delta*q)));this._delta<0&&K!==0&&(K=1/K);var de=typeof this._targetZoom=="number"?J.zoomScale(this._targetZoom):J.scale;this._targetZoom=Math.min(J.maxZoom,Math.max(J.minZoom,J.scaleZoom(de*K))),this._type==="wheel"&&(this._startZoom=J.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var ne=typeof this._targetZoom=="number"?this._targetZoom:J.zoom,we=this._startZoom,Ue=this._easing,ft=!1,Zt;if(this._type==="wheel"&&we&&Ue){var hr=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),Bt=Ue(hr);Zt=i.number(we,ne,Bt),hr<1?this._frameId||(this._frameId=!0):ft=!0}else Zt=ne,ft=!0;return this._active=!0,ft&&(this._active=!1,this._finishTimeout=setTimeout(function(){D._zooming=!1,D._handler._triggerRenderFrame(),delete D._targetZoom,delete D._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!ft,zoomDelta:Zt-J.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Ee.prototype._smoothOutEasing=function(D){var J=i.ease;if(this._prevEase){var q=this._prevEase,K=(i.browser.now()-q.start)/q.duration,de=q.easing(K+.01)-q.easing(K),ne=.27/Math.sqrt(de*de+1e-4)*.01,we=Math.sqrt(.27*.27-ne*ne);J=i.bezier(ne,we,.25,1)}return this._prevEase={start:i.browser.now(),duration:D,easing:J},J},Ee.prototype.reset=function(){this._active=!1};var _t=function(D,J){this._clickZoom=D,this._tapZoom=J};_t.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},_t.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},_t.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},_t.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var zt=function(){this.reset()};zt.prototype.reset=function(){this._active=!1},zt.prototype.dblclick=function(D,J){return D.preventDefault(),{cameraAnimation:function(q){q.easeTo({duration:300,zoom:q.getZoom()+(D.shiftKey?-1:1),around:q.unproject(J)},{originalEvent:D})}}},zt.prototype.enable=function(){this._enabled=!0},zt.prototype.disable=function(){this._enabled=!1,this.reset()},zt.prototype.isEnabled=function(){return this._enabled},zt.prototype.isActive=function(){return this._active};var Rr=function(){this._tap=new _i({numTouches:1,numTaps:1}),this.reset()};Rr.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Rr.prototype.touchstart=function(D,J,q){this._swipePoint||(this._tapTime&&D.timeStamp-this._tapTime>gr&&this.reset(),this._tapTime?q.length>0&&(this._swipePoint=J[0],this._swipeTouch=q[0].identifier):this._tap.touchstart(D,J,q))},Rr.prototype.touchmove=function(D,J,q){if(!this._tapTime)this._tap.touchmove(D,J,q);else if(this._swipePoint){if(q[0].identifier!==this._swipeTouch)return;var K=J[0],de=K.y-this._swipePoint.y;return this._swipePoint=K,D.preventDefault(),this._active=!0,{zoomDelta:de/128}}},Rr.prototype.touchend=function(D,J,q){if(this._tapTime)this._swipePoint&&q.length===0&&this.reset();else{var K=this._tap.touchend(D,J,q);K&&(this._tapTime=D.timeStamp)}},Rr.prototype.touchcancel=function(){this.reset()},Rr.prototype.enable=function(){this._enabled=!0},Rr.prototype.disable=function(){this._enabled=!1,this.reset()},Rr.prototype.isEnabled=function(){return this._enabled},Rr.prototype.isActive=function(){return this._active};var Hr=function(D,J,q){this._el=D,this._mousePan=J,this._touchPan=q};Hr.prototype.enable=function(D){this._inertiaOptions=D||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},Hr.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},Hr.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},Hr.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var Br=function(D,J,q){this._pitchWithRotate=D.pitchWithRotate,this._mouseRotate=J,this._mousePitch=q};Br.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},Br.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},Br.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},Br.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Ur=function(D,J,q,K){this._el=D,this._touchZoom=J,this._touchRotate=q,this._tapDragZoom=K,this._rotationDisabled=!1,this._enabled=!0};Ur.prototype.enable=function(D){this._touchZoom.enable(D),this._rotationDisabled||this._touchRotate.enable(D),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Ur.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Ur.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Ur.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Ur.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Ur.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var gi=function(Y){return Y.zoom||Y.drag||Y.pitch||Y.rotate},Ni=function(Y){function D(){Y.apply(this,arguments)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D}(i.Event);function Oi(Y){return Y.panDelta&&Y.panDelta.mag()||Y.zoomDelta||Y.bearingDelta||Y.pitchDelta}var Mi=function(D,J){this._map=D,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Tl(D),this._bearingSnap=J.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(J),i.bindAll(["handleEvent","handleWindowEvent"],this);var q=this._el;this._listeners=[[q,"touchstart",{passive:!0}],[q,"touchmove",{passive:!1}],[q,"touchend",void 0],[q,"touchcancel",void 0],[q,"mousedown",void 0],[q,"mousemove",void 0],[q,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[q,"mouseover",void 0],[q,"mouseout",void 0],[q,"dblclick",void 0],[q,"click",void 0],[q,"keydown",{capture:!1}],[q,"keyup",void 0],[q,"wheel",{passive:!1}],[q,"contextmenu",void 0],[i.window,"blur",void 0]];for(var K=0,de=this._listeners;Kwe?Math.min(2,mt):Math.max(.5,mt),fi=Math.pow(Ri,1-br),wi=ne.unproject(Nt.add(Dt.mult(br*fi)).mult(Nr));ne.setLocationAtPoint(ne.renderWorldCopies?wi.wrap():wi,kt)}de._fireMoveEvents(K)},function(br){de._afterEase(K,br)},q),this},D.prototype._prepareEase=function(q,K,de){de===void 0&&(de={}),this._moving=!0,!K&&!de.moving&&this.fire(new i.Event("movestart",q)),this._zooming&&!de.zooming&&this.fire(new i.Event("zoomstart",q)),this._rotating&&!de.rotating&&this.fire(new i.Event("rotatestart",q)),this._pitching&&!de.pitching&&this.fire(new i.Event("pitchstart",q))},D.prototype._fireMoveEvents=function(q){this.fire(new i.Event("move",q)),this._zooming&&this.fire(new i.Event("zoom",q)),this._rotating&&this.fire(new i.Event("rotate",q)),this._pitching&&this.fire(new i.Event("pitch",q))},D.prototype._afterEase=function(q,K){if(!(this._easeId&&K&&this._easeId===K)){delete this._easeId;var de=this._zooming,ne=this._rotating,we=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,de&&this.fire(new i.Event("zoomend",q)),ne&&this.fire(new i.Event("rotateend",q)),we&&this.fire(new i.Event("pitchend",q)),this.fire(new i.Event("moveend",q))}},D.prototype.flyTo=function(q,K){var de=this;if(!q.essential&&i.browser.prefersReducedMotion){var ne=i.pick(q,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ne,K)}this.stop(),q=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},q);var we=this.transform,Ue=this.getZoom(),ft=this.getBearing(),Zt=this.getPitch(),hr=this.getPadding(),Bt="zoom"in q?i.clamp(+q.zoom,we.minZoom,we.maxZoom):Ue,Ve="bearing"in q?this._normalizeBearing(q.bearing,ft):ft,et="pitch"in q?+q.pitch:Zt,at="padding"in q?q.padding:we.padding,kt=we.zoomScale(Bt-Ue),qt=i.Point.convert(q.offset),Rt=we.centerPoint.add(qt),Nt=we.pointLocation(Rt),Dt=i.LngLat.convert(q.center||Nt);this._normalizeCenter(Dt);var mt=we.project(Nt),Pt=we.project(Dt).sub(mt),ht=q.curve,cr=Math.max(we.width,we.height),br=cr/kt,Nr=Pt.mag();if("minZoom"in q){var Ri=i.clamp(Math.min(q.minZoom,Ue,Bt),we.minZoom,we.maxZoom),fi=cr/we.zoomScale(Ri-Ue);ht=Math.sqrt(fi/Nr*2)}var wi=ht*ht;function gn(so){var Zo=(br*br-cr*cr+(so?-1:1)*wi*wi*Nr*Nr)/(2*(so?br:cr)*wi*Nr);return Math.log(Math.sqrt(Zo*Zo+1)-Zo)}function tn(so){return(Math.exp(so)-Math.exp(-so))/2}function Ci(so){return(Math.exp(so)+Math.exp(-so))/2}function qi(so){return tn(so)/Ci(so)}var Vi=gn(0),on=function(so){return Ci(Vi)/Ci(Vi+ht*so)},On=function(so){return cr*((Ci(Vi)*qi(Vi+ht*so)-tn(Vi))/wi)/Nr},Ja=(gn(1)-Vi)/ht;if(Math.abs(Nr)<1e-6||!isFinite(Ja)){if(Math.abs(cr-br)<1e-6)return this.easeTo(q,K);var co=brq.maxDuration&&(q.duration=0),this._zooming=!0,this._rotating=ft!==Ve,this._pitching=et!==Zt,this._padding=!we.isPaddingEqual(at),this._prepareEase(K,!1),this._ease(function(so){var Zo=so*Ja,ys=1/on(Zo);we.zoom=so===1?Bt:Ue+we.scaleZoom(ys),de._rotating&&(we.bearing=i.number(ft,Ve,so)),de._pitching&&(we.pitch=i.number(Zt,et,so)),de._padding&&(we.interpolatePadding(hr,at,so),Rt=we.centerPoint.add(qt));var su=so===1?Dt:we.unproject(mt.add(Pt.mult(On(Zo))).mult(ys));we.setLocationAtPoint(we.renderWorldCopies?su.wrap():su,Rt),de._fireMoveEvents(K)},function(){return de._afterEase(K)},q),this},D.prototype.isEasing=function(){return!!this._easeFrameId},D.prototype.stop=function(){return this._stop()},D.prototype._stop=function(q,K){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var de=this._onEaseEnd;delete this._onEaseEnd,de.call(this,K)}if(!q){var ne=this.handlers;ne&&ne.stop(!1)}return this},D.prototype._ease=function(q,K,de){de.animate===!1||de.duration===0?(q(1),K()):(this._easeStart=i.browser.now(),this._easeOptions=de,this._onEaseFrame=q,this._onEaseEnd=K,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},D.prototype._renderFrameCallback=function(){var q=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(q)),q<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},D.prototype._normalizeBearing=function(q,K){q=i.wrap(q,-180,180);var de=Math.abs(q-K);return Math.abs(q-360-K)180?-360:de<-180?360:0}},D}(i.Evented),Qi=function(D){D===void 0&&(D={}),this.options=D,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Qi.prototype.getDefaultPosition=function(){return"bottom-right"},Qi.prototype.onAdd=function(D){var J=this.options&&this.options.compact;return this._map=D,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=o.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=o.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),J&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),J===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Qi.prototype.onRemove=function(){o.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Qi.prototype._setElementTitle=function(D,J){var q=this._map._getUIString("AttributionControl."+J);D.title=q,D.setAttribute("aria-label",q)},Qi.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Qi.prototype._updateEditLink=function(){var D=this._editLink;D||(D=this._editLink=this._container.querySelector(".mapbox-improve-map"));var J=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(D){var q=J.reduce(function(K,de,ne){return de.value&&(K+=de.key+"="+de.value+(ne=0)return!1;return!0});var we=D.join(" | ");we!==this._attribHTML&&(this._attribHTML=we,D.length?(this._innerContainer.innerHTML=we,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Qi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var Hi=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};Hi.prototype.onAdd=function(D){this._map=D,this._container=o.create("div","mapboxgl-ctrl");var J=o.create("a","mapboxgl-ctrl-logo");return J.target="_blank",J.rel="noopener nofollow",J.href="https://www.mapbox.com/",J.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),J.setAttribute("rel","noopener nofollow"),this._container.appendChild(J),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},Hi.prototype.onRemove=function(){o.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},Hi.prototype.getDefaultPosition=function(){return"bottom-left"},Hi.prototype._updateLogo=function(D){(!D||D.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},Hi.prototype._logoRequired=function(){if(this._map.style){var D=this._map.style.sourceCaches;for(var J in D){var q=D[J].getSource();if(q.mapbox_logo)return!0}return!1}},Hi.prototype._updateCompact=function(){var D=this._container.children;if(D.length){var J=D[0];this._map.getCanvasContainer().offsetWidth<250?J.classList.add("mapboxgl-compact"):J.classList.remove("mapboxgl-compact")}};var oi=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};oi.prototype.add=function(D){var J=++this._id,q=this._queue;return q.push({callback:D,id:J,cancelled:!1}),J},oi.prototype.remove=function(D){for(var J=this._currentlyRunning,q=J?this._queue.concat(J):this._queue,K=0,de=q;Kq.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(q.minPitch!=null&&q.maxPitch!=null&&q.minPitch>q.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(q.minPitch!=null&&q.minPitchqn)throw new Error("maxPitch must be less than or equal to "+qn);var de=new wo(q.minZoom,q.maxZoom,q.minPitch,q.maxPitch,q.renderWorldCopies);if(Y.call(this,de,q),this._interactive=q.interactive,this._maxTileCacheSize=q.maxTileCacheSize,this._failIfMajorPerformanceCaveat=q.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=q.preserveDrawingBuffer,this._antialias=q.antialias,this._trackResize=q.trackResize,this._bearingSnap=q.bearingSnap,this._refreshExpiredTiles=q.refreshExpiredTiles,this._fadeDuration=q.fadeDuration,this._crossSourceCollisions=q.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=q.collectResourceTiming,this._renderTaskQueue=new oi,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},Mr,q.locale),this._clickTolerance=q.clickTolerance,this._requestManager=new i.RequestManager(q.transformRequest,q.accessToken),typeof q.container=="string"){if(this._container=i.window.document.getElementById(q.container),!this._container)throw new Error("Container '"+q.container+"' not found.")}else if(q.container instanceof xi)this._container=q.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(q.maxBounds&&this.setMaxBounds(q.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return K._update(!1)}),this.on("moveend",function(){return K._update(!1)}),this.on("zoom",function(){return K._update(!0)}),typeof i.window!="undefined"&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Mi(this,q);var ne=typeof q.hash=="string"&&q.hash||void 0;this._hash=q.hash&&new Nl(ne).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:q.center,zoom:q.zoom,bearing:q.bearing,pitch:q.pitch}),q.bounds&&(this.resize(),this.fitBounds(q.bounds,i.extend({},q.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=q.localIdeographFontFamily,q.style&&this.setStyle(q.style,{localIdeographFontFamily:q.localIdeographFontFamily}),q.attributionControl&&this.addControl(new Qi({customAttribution:q.customAttribution})),this.addControl(new Hi,q.logoPosition),this.on("style.load",function(){K.transform.unmodified&&K.jumpTo(K.style.stylesheet)}),this.on("data",function(we){K._update(we.dataType==="style"),K.fire(new i.Event(we.dataType+"data",we))}),this.on("dataloading",function(we){K.fire(new i.Event(we.dataType+"dataloading",we))})}Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D;var J={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return D.prototype._getMapId=function(){return this._mapId},D.prototype.addControl=function(K,de){if(de===void 0&&(K.getDefaultPosition?de=K.getDefaultPosition():de="top-right"),!K||!K.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var ne=K.onAdd(this);this._controls.push(K);var we=this._controlPositions[de];return de.indexOf("bottom")!==-1?we.insertBefore(ne,we.firstChild):we.appendChild(ne),this},D.prototype.removeControl=function(K){if(!K||!K.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var de=this._controls.indexOf(K);return de>-1&&this._controls.splice(de,1),K.onRemove(this),this},D.prototype.hasControl=function(K){return this._controls.indexOf(K)>-1},D.prototype.resize=function(K){var de=this._containerDimensions(),ne=de[0],we=de[1];this._resizeCanvas(ne,we),this.transform.resize(ne,we),this.painter.resize(ne,we);var Ue=!this._moving;return Ue&&(this.stop(),this.fire(new i.Event("movestart",K)).fire(new i.Event("move",K))),this.fire(new i.Event("resize",K)),Ue&&this.fire(new i.Event("moveend",K)),this},D.prototype.getBounds=function(){return this.transform.getBounds()},D.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},D.prototype.setMaxBounds=function(K){return this.transform.setMaxBounds(i.LngLatBounds.convert(K)),this._update()},D.prototype.setMinZoom=function(K){if(K=K==null?ci:K,K>=ci&&K<=this.transform.maxZoom)return this.transform.minZoom=K,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=K,this._update(),this.getZoom()>K&&this.setZoom(K),this;throw new Error("maxZoom must be greater than the current minZoom")},D.prototype.getMaxZoom=function(){return this.transform.maxZoom},D.prototype.setMinPitch=function(K){if(K=K==null?Xi:K,K=Xi&&K<=this.transform.maxPitch)return this.transform.minPitch=K,this._update(),this.getPitch()qn)throw new Error("maxPitch must be less than or equal to "+qn);if(K>=this.transform.minPitch)return this.transform.maxPitch=K,this._update(),this.getPitch()>K&&this.setPitch(K),this;throw new Error("maxPitch must be greater than the current minPitch")},D.prototype.getMaxPitch=function(){return this.transform.maxPitch},D.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},D.prototype.setRenderWorldCopies=function(K){return this.transform.renderWorldCopies=K,this._update()},D.prototype.project=function(K){return this.transform.locationPoint(i.LngLat.convert(K))},D.prototype.unproject=function(K){return this.transform.pointLocation(i.Point.convert(K))},D.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},D.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},D.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},D.prototype._createDelegatedListener=function(K,de,ne){var we=this,Ue;if(K==="mouseenter"||K==="mouseover"){var ft=!1,Zt=function(kt){var qt=we.getLayer(de)?we.queryRenderedFeatures(kt.point,{layers:[de]}):[];qt.length?ft||(ft=!0,ne.call(we,new se(K,we,kt.originalEvent,{features:qt}))):ft=!1},hr=function(){ft=!1};return{layer:de,listener:ne,delegates:{mousemove:Zt,mouseout:hr}}}else if(K==="mouseleave"||K==="mouseout"){var Bt=!1,Ve=function(kt){var qt=we.getLayer(de)?we.queryRenderedFeatures(kt.point,{layers:[de]}):[];qt.length?Bt=!0:Bt&&(Bt=!1,ne.call(we,new se(K,we,kt.originalEvent)))},et=function(kt){Bt&&(Bt=!1,ne.call(we,new se(K,we,kt.originalEvent)))};return{layer:de,listener:ne,delegates:{mousemove:Ve,mouseout:et}}}else{var at=function(kt){var qt=we.getLayer(de)?we.queryRenderedFeatures(kt.point,{layers:[de]}):[];qt.length&&(kt.features=qt,ne.call(we,kt),delete kt.features)};return{layer:de,listener:ne,delegates:(Ue={},Ue[K]=at,Ue)}}},D.prototype.on=function(K,de,ne){if(ne===void 0)return Y.prototype.on.call(this,K,de);var we=this._createDelegatedListener(K,de,ne);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[K]=this._delegatedListeners[K]||[],this._delegatedListeners[K].push(we);for(var Ue in we.delegates)this.on(Ue,we.delegates[Ue]);return this},D.prototype.once=function(K,de,ne){if(ne===void 0)return Y.prototype.once.call(this,K,de);var we=this._createDelegatedListener(K,de,ne);for(var Ue in we.delegates)this.once(Ue,we.delegates[Ue]);return this},D.prototype.off=function(K,de,ne){var we=this;if(ne===void 0)return Y.prototype.off.call(this,K,de);var Ue=function(ft){for(var Zt=ft[K],hr=0;hr180;){var ne=J.locationPoint(Y);if(ne.x>=0&&ne.y>=0&&ne.x<=J.width&&ne.y<=J.height)break;Y.lng>J.center.lng?Y.lng-=360:Y.lng+=360}return Y}var Un={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function na(Y,D,J){var q=Y.classList;for(var K in Un)q.remove("mapboxgl-"+J+"-anchor-"+K);q.add("mapboxgl-"+J+"-anchor-"+D)}var Yi=function(Y){function D(J,q){if(Y.call(this),(J instanceof i.window.HTMLElement||q)&&(J=i.extend({element:J},q)),i.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=J&&J.anchor||"center",this._color=J&&J.color||"#3FB1CE",this._scale=J&&J.scale||1,this._draggable=J&&J.draggable||!1,this._clickTolerance=J&&J.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=J&&J.rotation||0,this._rotationAlignment=J&&J.rotationAlignment||"auto",this._pitchAlignment=J&&J.pitchAlignment&&J.pitchAlignment!=="auto"?J.pitchAlignment:this._rotationAlignment,!J||!J.element){this._defaultMarker=!0,this._element=o.create("div"),this._element.setAttribute("aria-label","Map marker");var K=o.createNS("http://www.w3.org/2000/svg","svg"),de=41,ne=27;K.setAttributeNS(null,"display","block"),K.setAttributeNS(null,"height",de+"px"),K.setAttributeNS(null,"width",ne+"px"),K.setAttributeNS(null,"viewBox","0 0 "+ne+" "+de);var we=o.createNS("http://www.w3.org/2000/svg","g");we.setAttributeNS(null,"stroke","none"),we.setAttributeNS(null,"stroke-width","1"),we.setAttributeNS(null,"fill","none"),we.setAttributeNS(null,"fill-rule","evenodd");var Ue=o.createNS("http://www.w3.org/2000/svg","g");Ue.setAttributeNS(null,"fill-rule","nonzero");var ft=o.createNS("http://www.w3.org/2000/svg","g");ft.setAttributeNS(null,"transform","translate(3.0, 29.0)"),ft.setAttributeNS(null,"fill","#000000");for(var Zt=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],hr=0,Bt=Zt;hr=K}this._isDragging&&(this._pos=q.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},D.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},D.prototype._addDragHandler=function(q){this._element.contains(q.originalEvent.target)&&(q.preventDefault(),this._positionDelta=q.point.sub(this._pos).add(this._offset),this._pointerdownPos=q.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},D.prototype.setDraggable=function(q){return this._draggable=!!q,this._map&&(q?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},D.prototype.isDraggable=function(){return this._draggable},D.prototype.setRotation=function(q){return this._rotation=q||0,this._update(),this},D.prototype.getRotation=function(){return this._rotation},D.prototype.setRotationAlignment=function(q){return this._rotationAlignment=q||"auto",this._update(),this},D.prototype.getRotationAlignment=function(){return this._rotationAlignment},D.prototype.setPitchAlignment=function(q){return this._pitchAlignment=q&&q!=="auto"?q:this._rotationAlignment,this._update(),this},D.prototype.getPitchAlignment=function(){return this._pitchAlignment},D}(i.Evented),Ln={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},ra;function oa(Y){ra!==void 0?Y(ra):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(D){ra=D.state!=="denied",Y(ra)}):(ra=!!i.window.navigator.geolocation,Y(ra))}var wa=0,ns=!1,Ys=function(Y){function D(J){Y.call(this),this.options=i.extend({},Ln,J),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.onAdd=function(q){return this._map=q,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),oa(this._setupUI),this._container},D.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),o.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,wa=0,ns=!1},D.prototype._isOutOfMapMaxBounds=function(q){var K=this._map.getMaxBounds(),de=q.coords;return K&&(de.longitudeK.getEast()||de.latitudeK.getNorth())},D.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},D.prototype._onSuccess=function(q){if(this._map){if(this._isOutOfMapMaxBounds(q)){this._setErrorState(),this.fire(new i.Event("outofmaxbounds",q)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=q,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(q),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(q),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",q)),this._finish()}},D.prototype._updateCamera=function(q){var K=new i.LngLat(q.coords.longitude,q.coords.latitude),de=q.coords.accuracy,ne=this._map.getBearing(),we=i.extend({bearing:ne},this.options.fitBoundsOptions);this._map.fitBounds(K.toBounds(de),we,{geolocateSource:!0})},D.prototype._updateMarker=function(q){if(q){var K=new i.LngLat(q.coords.longitude,q.coords.latitude);this._accuracyCircleMarker.setLngLat(K).addTo(this._map),this._userLocationDotMarker.setLngLat(K).addTo(this._map),this._accuracy=q.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},D.prototype._updateCircleRadius=function(){var q=this._map._container.clientHeight/2,K=this._map.unproject([0,q]),de=this._map.unproject([1,q]),ne=K.distanceTo(de),we=Math.ceil(2*this._accuracy/ne);this._circleElement.style.width=we+"px",this._circleElement.style.height=we+"px"},D.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},D.prototype._onError=function(q){if(this._map){if(this.options.trackUserLocation)if(q.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var K=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=K,this._geolocateButton.setAttribute("aria-label",K),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(q.code===3&&ns)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",q)),this._finish()}},D.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},D.prototype._setupUI=function(q){var K=this;if(this._container.addEventListener("contextmenu",function(we){return we.preventDefault()}),this._geolocateButton=o.create("button","mapboxgl-ctrl-geolocate",this._container),o.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",q===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var de=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=de,this._geolocateButton.setAttribute("aria-label",de)}else{var ne=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=ne,this._geolocateButton.setAttribute("aria-label",ne)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=o.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Yi(this._dotElement),this._circleElement=o.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Yi({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(we){var Ue=we.originalEvent&&we.originalEvent.type==="resize";!we.geolocateSource&&K._watchState==="ACTIVE_LOCK"&&!Ue&&(K._watchState="BACKGROUND",K._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),K._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),K.fire(new i.Event("trackuserlocationend")))})},D.prototype.trigger=function(){if(!this._setup)return i.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":wa--,ns=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),wa++;var q;wa>1?(q={maximumAge:6e5,timeout:0},ns=!0):(q=this.options.positionOptions,ns=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,q)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},D.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},D}(i.Evented),Va={maxWidth:100,unit:"metric"},Ml=function(D){this.options=i.extend({},Va,D),i.bindAll(["_onMove","setUnit"],this)};Ml.prototype.getDefaultPosition=function(){return"bottom-left"},Ml.prototype._onMove=function(){zo(this._map,this._container,this.options)},Ml.prototype.onAdd=function(D){return this._map=D,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",D.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Ml.prototype.onRemove=function(){o.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Ml.prototype.setUnit=function(D){this.options.unit=D,zo(this._map,this._container,this.options)};function zo(Y,D,J){var q=J&&J.maxWidth||100,K=Y._container.clientHeight/2,de=Y.unproject([0,K]),ne=Y.unproject([q,K]),we=de.distanceTo(ne);if(J&&J.unit==="imperial"){var Ue=3.2808*we;if(Ue>5280){var ft=Ue/5280;el(D,q,ft,Y._getUIString("ScaleControl.Miles"))}else el(D,q,Ue,Y._getUIString("ScaleControl.Feet"))}else if(J&&J.unit==="nautical"){var Zt=we/1852;el(D,q,Zt,Y._getUIString("ScaleControl.NauticalMiles"))}else we>=1e3?el(D,q,we/1e3,Y._getUIString("ScaleControl.Kilometers")):el(D,q,we,Y._getUIString("ScaleControl.Meters"))}function el(Y,D,J,q){var K=Ul(J),de=K/J;Y.style.width=D*de+"px",Y.innerHTML=K+" "+q}function ol(Y){var D=Math.pow(10,Math.ceil(-Math.log(Y)/Math.LN10));return Math.round(Y*D)/D}function Ul(Y){var D=Math.pow(10,(""+Math.floor(Y)).length-1),J=Y/D;return J=J>=10?10:J>=5?5:J>=3?3:J>=2?2:J>=1?1:ol(J),D*J}var ss=function(D){this._fullscreen=!1,D&&D.container&&(D.container instanceof i.window.HTMLElement?this._container=D.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};ss.prototype.onAdd=function(D){return this._map=D,this._container||(this._container=this._map.getContainer()),this._controlContainer=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},ss.prototype.onRemove=function(){o.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},ss.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},ss.prototype._setupUI=function(){var D=this._fullscreenButton=o.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);o.create("span","mapboxgl-ctrl-icon",D).setAttribute("aria-hidden",!0),D.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},ss.prototype._updateTitle=function(){var D=this._getTitle();this._fullscreenButton.setAttribute("aria-label",D),this._fullscreenButton.title=D},ss.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},ss.prototype._isFullscreen=function(){return this._fullscreen},ss.prototype._changeIcon=function(){var D=i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement;D===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},ss.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Gs={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Ks=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Ta=function(Y){function D(J){Y.call(this),this.options=i.extend(Object.create(Gs),J),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.addTo=function(q){return this._map&&this.remove(),this._map=q,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},D.prototype.isOpen=function(){return!!this._map},D.prototype.remove=function(){return this._content&&o.remove(this._content),this._container&&(o.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new i.Event("close")),this},D.prototype.getLngLat=function(){return this._lngLat},D.prototype.setLngLat=function(q){return this._lngLat=i.LngLat.convert(q),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},D.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},D.prototype.getElement=function(){return this._container},D.prototype.setText=function(q){return this.setDOMContent(i.window.document.createTextNode(q))},D.prototype.setHTML=function(q){var K=i.window.document.createDocumentFragment(),de=i.window.document.createElement("body"),ne;for(de.innerHTML=q;ne=de.firstChild,!!ne;)K.appendChild(ne);return this.setDOMContent(K)},D.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},D.prototype.setMaxWidth=function(q){return this.options.maxWidth=q,this._update(),this},D.prototype.setDOMContent=function(q){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=o.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(q),this._createCloseButton(),this._update(),this._focusFirstElement(),this},D.prototype.addClassName=function(q){this._container&&this._container.classList.add(q)},D.prototype.removeClassName=function(q){this._container&&this._container.classList.remove(q)},D.prototype.setOffset=function(q){return this.options.offset=q,this._update(),this},D.prototype.toggleClassName=function(q){if(this._container)return this._container.classList.toggle(q)},D.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=o.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},D.prototype._onMouseUp=function(q){this._update(q.point)},D.prototype._onMouseMove=function(q){this._update(q.point)},D.prototype._onDrag=function(q){this._update(q.point)},D.prototype._update=function(q){var K=this,de=this._lngLat||this._trackPointer;if(!(!this._map||!de||!this._content)&&(this._container||(this._container=o.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=o.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Ve){return K._container.classList.add(Ve)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=vn(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!q))){var ne=this._pos=this._trackPointer&&q?q:this._map.project(this._lngLat),we=this.options.anchor,Ue=sl(this.options.offset);if(!we){var ft=this._container.offsetWidth,Zt=this._container.offsetHeight,hr;ne.y+Ue.bottom.ythis._map.transform.height-Zt?hr=["bottom"]:hr=[],ne.xthis._map.transform.width-ft/2&&hr.push("right"),hr.length===0?we="bottom":we=hr.join("-")}var Bt=ne.add(Ue[we]).round();o.setTransform(this._container,Un[we]+" translate("+Bt.x+"px,"+Bt.y+"px)"),na(this._container,we,"popup")}},D.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var q=this._container.querySelector(Ks);q&&q.focus()}},D.prototype._onClose=function(){this.remove()},D}(i.Evented);function sl(Y){if(Y)if(typeof Y=="number"){var D=Math.round(Math.sqrt(.5*Math.pow(Y,2)));return{center:new i.Point(0,0),top:new i.Point(0,Y),"top-left":new i.Point(D,D),"top-right":new i.Point(-D,D),bottom:new i.Point(0,-Y),"bottom-left":new i.Point(D,-D),"bottom-right":new i.Point(-D,-D),left:new i.Point(Y,0),right:new i.Point(-Y,0)}}else if(Y instanceof i.Point||Array.isArray(Y)){var J=i.Point.convert(Y);return{center:J,top:J,"top-left":J,"top-right":J,bottom:J,"bottom-left":J,"bottom-right":J,left:J,right:J}}else return{center:i.Point.convert(Y.center||[0,0]),top:i.Point.convert(Y.top||[0,0]),"top-left":i.Point.convert(Y["top-left"]||[0,0]),"top-right":i.Point.convert(Y["top-right"]||[0,0]),bottom:i.Point.convert(Y.bottom||[0,0]),"bottom-left":i.Point.convert(Y["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(Y["bottom-right"]||[0,0]),left:i.Point.convert(Y.left||[0,0]),right:i.Point.convert(Y.right||[0,0])};else return sl(new i.Point(0,0))}var io={version:i.version,supported:a,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:li,NavigationControl:Ui,GeolocateControl:Ys,AttributionControl:Qi,ScaleControl:Ml,FullscreenControl:ss,Popup:Ta,Marker:Yi,Style:yu,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:la,clearPrewarmedResources:ma,get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(Y){i.config.ACCESS_TOKEN=Y},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(Y){i.config.API_URL=Y},get workerCount(){return cn.workerCount},set workerCount(Y){cn.workerCount=Y},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(Y){i.config.MAX_PARALLEL_IMAGE_REQUESTS=Y},clearStorage:function(D){i.clearTileCache(D)},workerUrl:""};return io}),r})});var jVe=ye((p_r,HVe)=>{"use strict";var tw=Dr(),UHt=iu().sanitizeHTML,VHt=QK(),UVe=c1();function VVe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=UVe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var ig=VVe.prototype;ig.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=Zz(t)};ig.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};ig.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};ig.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};ig.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};ig.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapboxLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};ig.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!Zz(e)){var r=GHt(e);t.addSource(this.idSource,r)}};ig.findFollowingMapboxLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function GVe(e){var t={},r={};switch(e.type){case"circle":tw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":tw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":tw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=VHt(n.textposition,n.iconsize);tw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),tw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":tw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function GHt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=UHt(e.sourceattribution)),n}HVe.exports=function(t,r,n){var i=new VVe(t,r);return i.update(n),i}});var eGe=ye((g_r,QVe)=>{"use strict";var oJ=aJ(),sJ=Dr(),YVe=nx(),WVe=qa(),HHt=ho(),jHt=gv(),Yz=df(),KVe=Sg(),WHt=KVe.drawMode,XHt=KVe.selectMode,ZHt=Ff().prepSelect,YHt=Ff().clearOutline,KHt=Ff().clearSelectionsCache,JHt=Ff().selectOnClick,_x=c1(),$Ht=jVe();function JVe(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var qh=JVe.prototype;qh.plot=function(e,t,r){var n=this,i=t[n.id];n.map&&i.accesstoken!==n.accessToken&&(n.map.remove(),n.map=null,n.styleObj=null,n.traceHash={},n.layerList=[]);var a;n.map?a=new Promise(function(o,s){n.updateMap(e,t,o,s)}):a=new Promise(function(o,s){n.createMap(e,t,o,s)}),r.push(a)};qh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=$Ve(a.style,t);i.accessToken=a.accesstoken;var s=a.bounds,l=s?[[s.west,s.south],[s.east,s.north]]:null,u=i.map=new oJ.Map({container:i.div,style:o.style,center:lJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:l,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new oJ.AttributionControl({compact:!0}));u._canvas.style.left="0px",u._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var c=[];c.push(new Promise(function(f){u.once("load",f)})),c=c.concat(YVe.fetchTraceGeoData(e)),Promise.all(c).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};qh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],l=$Ve(o.style,t);JSON.stringify(i.styleObj)!==JSON.stringify(l)&&(i.styleObj=l,a.setStyle(l.style),i.traceHash={},s.push(new Promise(function(u){a.once("styledata",u)}))),s=s.concat(YVe.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};qh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&JHt(l.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&Yz.click(n,l.originalEvent)}}};qh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(l){var u=t.map.unproject(l);return[u.lng,u.lat]}var a=e.dragmode,o;o=function(l,u){if(u.isRect){var c=l.range={};c[t.id]=[i([u.xmin,u.ymin]),i([u.xmax,u.ymax])]}else{var f=l.lassoPoints={};f[t.id]=u.map(i)}};var s=t.dragOptions;t.dragOptions=sJ.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),XHt(a)||WHt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){ZHt(l,u,c,t.dragOptions,a)},jHt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};qh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};qh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var uJ=Dr(),QHt=k_(),ejt=Yd(),tGe=FC();rGe.exports=function(t,r,n){QHt(t,r,n,{type:"mapbox",attributes:tGe,handleDefaults:tjt,partition:"y",accessToken:r._mapboxAccessToken})};function tjt(e,t,r,n){r("accesstoken",n.accessToken),r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var i=r("bounds.west"),a=r("bounds.east"),o=r("bounds.south"),s=r("bounds.north");(i===void 0||a===void 0||o===void 0||s===void 0)&&delete t.bounds,ejt(e,t,{name:"layers",handleItemDefaults:rjt}),t._input=e}function rjt(e,t){function r(l,u){return uJ.coerce(e,t,tGe.layers,l,u)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",uJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),uJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var Kz=ye(Bp=>{"use strict";var nGe=aJ(),tm=Dr(),cJ=tm.strTranslate,ijt=tm.strScale,njt=Id().getSubplotCalcData,ajt=Wp(),ojt=Oa(),aGe=So(),sjt=iu(),ljt=eGe(),xx="mapbox",Qm=Bp.constants=c1();Bp.name=xx;Bp.attr="subplot";Bp.idRoot=xx;Bp.idRegex=Bp.attrRegex=tm.counterRegex(xx);var ujt=["mapbox subplots and traces are deprecated!","Please consider switching to `map` subplots and traces.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");Bp.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}};Bp.layoutAttributes=FC();Bp.supplyLayoutDefaults=iGe();var oGe=!0;Bp.plot=function(t){oGe&&(oGe=!1,tm.warn(ujt));var r=t._fullLayout,n=t.calcdata,i=r._subplots[xx];if(nGe.version!==Qm.requiredVersion)throw new Error(Qm.wrongVersionErrorMsg);var a=cjt(t,i);nGe.accessToken=a;for(var o=0;op/2){var C=d.split("|").join("
");x.text(C).attr("data-unformatted",C).call(sjt.convertToTspans,e),b=aGe.bBox(x.node())}x.attr("transform",cJ(-3,-b.height+8)),v.insert("rect",".static-attribution").attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:"rgba(255, 255, 255, 0.75)"});var E=1;b.width+6>p&&(E=p/(b.width+6));var A=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];v.attr("transform",cJ(A[0],A[1])+ijt(E))}};function cjt(e,t){var r=e._fullLayout,n=e._context;if(n.mapboxAccessToken==="")return"";for(var i=[],a=[],o=!1,s=!1,l=0;l1&&tm.warn(Qm.multipleTokensErrorMsg),i[0]):(a.length&&tm.log(["Listed mapbox access token(s)",a.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function sGe(e){return typeof e=="string"&&(Qm.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}Bp.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[xx],n=0;n{"use strict";var __r=["*scattermapbox* trace is deprecated!","Please consider switching to the *scattermap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");lGe.exports={attributes:Vz(),supplyDefaults:xVe(),colorbar:$d(),formatLabels:$K(),calc:cF(),plot:DVe(),hoverPoints:Xz().hoverPoints,eventData:qVe(),selectPoints:NVe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:Kz(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var fGe=ye((b_r,cGe)=>{"use strict";cGe.exports=uGe()});var fJ=ye((w_r,hGe)=>{"use strict";var f1=JA(),fjt=Tu(),hjt=rs().hovertemplateAttrs,djt=Vl(),bx=Ao().extendFlat;hGe.exports=bx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:bx({},f1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:f1.text,hovertext:f1.hovertext,marker:{line:{color:bx({},f1.marker.line.color,{editType:"plot"}),width:bx({},f1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:bx({},f1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:bx({},f1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:bx({},f1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:f1.hoverinfo,hovertemplate:hjt({},{keys:["properties"]}),showlegend:bx({},djt.showlegend,{dflt:!1})},fjt("",{cLetter:"z",editTypeOverride:"calc"}))});var vGe=ye((T_r,dGe)=>{"use strict";var BC=Dr(),vjt=Jh(),pjt=fJ();dGe.exports=function(t,r,n,i){function a(c,f){return BC.coerce(t,r,pjt,c,f)}var o=a("locations"),s=a("z"),l=a("geojson");if(!BC.isArrayOrTypedArray(o)||!o.length||!BC.isArrayOrTypedArray(s)||!s.length||!(typeof l=="string"&&l!==""||BC.isPlainObject(l))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate");var u=a("marker.line.width");u&&a("marker.line.color"),a("marker.opacity"),vjt(t,r,i,a,{prefix:"",cLetter:"z"}),BC.coerceSelectionMarkerOpacity(r,a)}});var hJ=ye((A_r,mGe)=>{"use strict";var gjt=Eo(),h1=Dr(),mjt=tc(),yjt=So(),_jt=rx().makeBlank,pGe=nx();function xjt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:_jt()};if(!r)return a;var o=pGe.extractTraceFeature(e);if(!o)return a;var s=mjt.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;h1.isArrayOrTypedArray(l.opacity)&&(c=function(C){var E=C.mo;return gjt(E)?+h1.constrain(E,0,1):0});var f;h1.isArrayOrTypedArray(u.color)&&(f=function(C){return C.mlc});var h;h1.isArrayOrTypedArray(u.width)&&(h=function(C){return C.mlw});for(var d=0;d{"use strict";var _Ge=hJ().convert,bjt=hJ().convertOnSelect,yGe=c1().traceLayerPrefix;function xGe(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",yGe+t+"-fill"],["line",yGe+t+"-line"]],this.below=null}var T5=xGe.prototype;T5.update=function(e){this._update(_Ge(e)),e[0].trace._glTrace=this};T5.updateOnSelect=function(e){this._update(bjt(e))};T5._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};T5.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};bGe.exports=function(t,r){var n=r[0].trace,i=new xGe(t,n.uid),a=i.sourceId,o=_Ge(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var AGe=ye((E_r,TGe)=>{"use strict";var M_r=["*choroplethmapbox* trace is deprecated!","Please consider switching to the *choroplethmap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");TGe.exports={attributes:fJ(),supplyDefaults:vGe(),colorbar:M_(),calc:IF(),plot:wGe(),hoverPoints:DF(),eventData:FF(),selectPoints:zF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";SGe.exports=AGe()});var vJ=ye((k_r,CGe)=>{"use strict";var wjt=Tu(),Tjt=rs().hovertemplateAttrs,EGe=Vl(),Jz=Vz(),dJ=Ao().extendFlat;CGe.exports=dJ({lon:Jz.lon,lat:Jz.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:Jz.text,hovertext:Jz.hovertext,hoverinfo:dJ({},EGe.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:Tjt(),showlegend:dJ({},EGe.showlegend,{dflt:!1})},wjt("",{cLetter:"z",editTypeOverride:"calc"}))});var LGe=ye((L_r,kGe)=>{"use strict";var Ajt=Dr(),Sjt=Jh(),Mjt=vJ();kGe.exports=function(t,r,n,i){function a(u,c){return Ajt.coerce(t,r,Mjt,u,c)}var o=a("lon")||[],s=a("lat")||[],l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),Sjt(t,r,i,a,{prefix:"",cLetter:"z"})}});var RGe=ye((P_r,IGe)=>{"use strict";var pJ=Eo(),Ejt=Dr().isArrayOrTypedArray,gJ=hs().BADNUM,Cjt=Fv(),PGe=Dr()._;IGe.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=Ejt(a)&&a.length,s=0;s{"use strict";var kjt=Eo(),mJ=Dr(),DGe=Ca(),FGe=tc(),zGe=hs().BADNUM,Ljt=rx().makeBlank;OGe.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:Ljt()};if(!n)return a;var o=[],s,l=r.z,u=r.radius,c=mJ.isArrayOrTypedArray(l)&&l.length,f=mJ.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:v})}}var b=FGe.extractOpts(r),p=b.reversescale?FGe.flipScale(b.colorscale):b.colorscale,C=p[0][1],E=DGe.opacity(C)<1?C:DGe.addOpacity(C,0),A=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var BGe=qGe(),Pjt=c1().traceLayerPrefix;function NGe(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",Pjt+t+"-heatmap"]],this.below=null}var $z=NGe.prototype;$z.update=function(e){var t=this.subplot,r=this.layerList,n=BGe(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};$z.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};UGe.exports=function(t,r){var n=r[0].trace,i=new NGe(t,n.uid),a=i.sourceId,o=BGe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var HGe=ye((D_r,GGe)=>{"use strict";var Ijt=ho(),Rjt=Xz().hoverPoints,Djt=Xz().getExtraText;GGe.exports=function(t,r,n){var i=Rjt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,l=o[a.index];if(delete a.color,"z"in l){var u=a.subplot.mockAxis;a.z=l.z,a.zLabel=Ijt.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=Djt(s,l,o[0].t.labels),[a]}}});var WGe=ye((F_r,jGe)=>{"use strict";jGe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var ZGe=ye((O_r,XGe)=>{"use strict";var z_r=["*densitymapbox* trace is deprecated!","Please consider switching to the *densitymap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");XGe.exports={attributes:vJ(),supplyDefaults:LGe(),colorbar:M_(),formatLabels:$K(),calc:RGe(),plot:VGe(),hoverPoints:HGe(),eventData:WGe(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";YGe.exports=ZGe()});var $Ge=ye((B_r,JGe)=>{JGe.exports={version:8,name:"orto",metadata:{"maputnik:renderer":"mlgljs"},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}},{id:"waterway_tunnel",type:"line",source:"openmaptiles","source-layer":"waterway",minzoom:14,filter:["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]},"line-dasharray":[2,4]}},{id:"waterway-other",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["!in","class","canal","river","stream"],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,2]]}}},{id:"waterway-stream-canal",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["in","class","canal","stream"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]}}},{id:"waterway-river",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["==","class","river"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.2,stops:[[10,.8],[20,4]]},"line-opacity":.5}},{id:"water-offset",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",maxzoom:8,filter:["==","$type","Polygon"],layout:{visibility:"visible"},paint:{"fill-opacity":0,"fill-color":"#a0c8f0","fill-translate":{base:1,stops:[[6,[2,0]],[8,[0,0]]]}}},{id:"water",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0}},{id:"water-pattern",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-translate":[0,2.5],"fill-pattern":"wave","fill-opacity":1}},{id:"landcover-ice-shelf",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"landcover",filter:["==","subclass","ice_shelf"],layout:{visibility:"visible"},paint:{"fill-color":"#fff","fill-opacity":{base:1,stops:[[0,.9],[10,.3]]}}},{id:"tunnel-service-track-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[15,1],[16,4],[20,11]]}}},{id:"tunnel-minor-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,1]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"tunnel-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"tunnel-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.7}},{id:"tunnel-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"tunnel-path",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"tunnel-service-track",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-width":{base:1.2,stops:[[15.5,0],[16,2],[20,7.5]]}}},{id:"tunnel-minor",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor_road"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-opacity":1,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"tunnel-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,10]]}}},{id:"tunnel-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-motorway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#ffdaa6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-railway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]},"line-dasharray":[2,2]}},{id:"ferry",type:"line",source:"openmaptiles","source-layer":"transportation",filter:["all",["in","class","ferry"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(108, 159, 182, 1)","line-width":1.1,"line-dasharray":[2,2]}},{id:"aeroway-taxiway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","taxiway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,2],[17,12]]},"line-opacity":1}},{id:"aeroway-runway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","runway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,5],[17,55]]},"line-opacity":1}},{id:"aeroway-taxiway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","taxiway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,1],[17,10]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"aeroway-runway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","runway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,4],[17,50]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"highway-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-minor-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,0]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"highway-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":.5,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"highway-primary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[7,0],[8,.6]]},"line-width":{base:1.2,stops:[[7,0],[8,.6],[9,1.5],[20,22]]}}},{id:"highway-trunk-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[5,0],[6,.5]]},"line-width":{base:1.2,stops:[[5,0],[6,.6],[7,1.5],[20,22]]}}},{id:"highway-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:4,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[4,0],[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":{stops:[[4,0],[5,.5]]}}},{id:"highway-path",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"highway-motorway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-minor",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fff","line-opacity":.5,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"highway-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[8,.5],[20,13]]},"line-opacity":.5}},{id:"highway-primary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[8.5,0],[9,.5],[20,18]]},"line-opacity":0}},{id:"highway-trunk",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"highway-motorway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"railway-transit",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-transit-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway-service",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-service-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"railway-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"bridge-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,28]]}}},{id:"bridge-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"hsl(28, 76%, 67%)","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,26]]}}},{id:"bridge-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"bridge-path-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#f8f4f0","line-width":{base:1.2,stops:[[15,1.2],[20,18]]}}},{id:"bridge-path",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#cba","line-width":{base:1.2,stops:[[15,1.2],[20,4]]},"line-dasharray":[1.5,.75]}},{id:"bridge-motorway-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,20]]}}},{id:"bridge-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]}}},{id:"bridge-motorway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"bridge-railway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"bridge-railway-hatching",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"cablecar",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,1],[19,2.5]]}}},{id:"cablecar-dash",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,3],[19,5.5]]},"line-dasharray":[2,3]}},{id:"boundary-land-level-4",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],layout:{"line-join":"round"},paint:{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{base:1.4,stops:[[4,.4],[5,1],[12,3]]},"line-opacity":.6}},{id:"boundary-land-level-2",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 66%)","line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,2]]}}},{id:"boundary-land-disputed",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["!=","maritime",1],["==","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,8]]}}},{id:"boundary-water",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["in","admin_level",2,4],["==","maritime",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"rgba(154, 189, 214, 1)","line-width":{base:1,stops:[[0,.6],[4,1],[5,1],[12,1]]},"line-opacity":{stops:[[6,0],[10,0]]}}},{id:"waterway-name",type:"symbol",source:"openmaptiles","source-layer":"waterway",minzoom:13,filter:["all",["==","$type","LineString"],["has","name"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin} {name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","text-letter-spacing":.2,"symbol-spacing":350},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-lakeline",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["==","$type","LineString"],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":`{name:latin} +`}),{fragmentSource:Y,vertexSource:D,staticAttributes:q,staticUniforms:ne}}var bf=Object.freeze({__proto__:null,prelude:Ws,background:Eu,backgroundPattern:Dc,circle:ks,clippingMask:bc,heatmap:du,heatmapTexture:_u,collisionBox:al,collisionCircle:nh,debug:bh,fill:zu,fillOutline:Fc,fillOutlinePattern:wc,fillPattern:bd,fillExtrusion:_f,fillExtrusionPattern:Lf,hillshadePrepare:Ou,hillshade:xf,line:jl,lineGradient:lf,linePattern:Vh,lineSDF:Pf,raster:Ls,symbolIcon:vu,symbolSDF:Cu,symbolTextAndIcon:Wf}),zc=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};zc.prototype.bind=function(D,J,q,K,de,ne,we,Ue){this.context=D;for(var ft=this.boundPaintVertexBuffers.length!==K.length,Zt=0;!ft&&Zt>16,we>>16],u_pixel_coord_lower:[ne&65535,we&65535]}}function uf(Y,D,J,q){var K=J.imageManager.getPattern(Y.from.toString()),de=J.imageManager.getPattern(Y.to.toString()),ne=J.imageManager.getPixelSize(),we=ne.width,Ue=ne.height,ft=Math.pow(2,q.tileID.overscaledZ),Zt=q.tileSize*Math.pow(2,J.transform.tileZoom)/ft,hr=Zt*(q.tileID.canonical.x+q.tileID.wrap*ft),qt=Zt*q.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:K.tl,u_pattern_br_a:K.br,u_pattern_tl_b:de.tl,u_pattern_br_b:de.br,u_texsize:[we,Ue],u_mix:D.t,u_pattern_size_a:K.displaySize,u_pattern_size_b:de.displaySize,u_scale_a:D.fromScale,u_scale_b:D.toScale,u_tile_units_to_pixels:1/Ss(q,1,J.transform.tileZoom),u_pixel_coord_upper:[hr>>16,qt>>16],u_pixel_coord_lower:[hr&65535,qt&65535]}}var Xf=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_lightpos:new i.Uniform3f(Y,D.u_lightpos),u_lightintensity:new i.Uniform1f(Y,D.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,D.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,D.u_vertical_gradient),u_opacity:new i.Uniform1f(Y,D.u_opacity)}},Wl=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_lightpos:new i.Uniform3f(Y,D.u_lightpos),u_lightintensity:new i.Uniform1f(Y,D.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,D.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,D.u_vertical_gradient),u_height_factor:new i.Uniform1f(Y,D.u_height_factor),u_image:new i.Uniform1i(Y,D.u_image),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade),u_opacity:new i.Uniform1f(Y,D.u_opacity)}},ah=function(Y,D,J,q){var K=D.style.light,de=K.properties.get("position"),ne=[de.x,de.y,de.z],we=i.create$1();K.properties.get("anchor")==="viewport"&&i.fromRotation(we,-D.transform.angle),i.transformMat3(ne,ne,we);var Ue=K.properties.get("color");return{u_matrix:Y,u_lightpos:ne,u_lightintensity:K.properties.get("intensity"),u_lightcolor:[Ue.r,Ue.g,Ue.b],u_vertical_gradient:+J,u_opacity:q}},Zu=function(Y,D,J,q,K,de,ne){return i.extend(ah(Y,D,J,q),Xu(de,D,ne),{u_height_factor:-Math.pow(2,K.overscaledZ)/ne.tileSize/8})},Oc=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},Tc=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_image:new i.Uniform1i(Y,D.u_image),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade)}},wl=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_world:new i.Uniform2f(Y,D.u_world)}},pu=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_world:new i.Uniform2f(Y,D.u_world),u_image:new i.Uniform1i(Y,D.u_image),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade)}},qc=function(Y){return{u_matrix:Y}},cf=function(Y,D,J,q){return i.extend(qc(Y),Xu(J,D,q))},fc=function(Y,D){return{u_matrix:Y,u_world:D}},Bc=function(Y,D,J,q,K){return i.extend(cf(Y,D,J,q),{u_world:K})},At=function(Y,D){return{u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(Y,D.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(Y,D.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},Xt=function(Y,D,J,q){var K=Y.transform,de,ne;if(q.paint.get("circle-pitch-alignment")==="map"){var we=Ss(J,1,K.zoom);de=!0,ne=[we,we]}else de=!1,ne=K.pixelsToGLUnits;return{u_camera_to_center_distance:K.cameraToCenterDistance,u_scale_with_map:+(q.paint.get("circle-pitch-scale")==="map"),u_matrix:Y.translatePosMatrix(D.posMatrix,J,q.paint.get("circle-translate"),q.paint.get("circle-translate-anchor")),u_pitch_with_map:+de,u_device_pixel_ratio:i.browser.devicePixelRatio,u_extrude_scale:ne}},kr=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(Y,D.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(Y,D.u_extrude_scale),u_overscale_factor:new i.Uniform1f(Y,D.u_overscale_factor)}},Ar=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_inv_matrix:new i.UniformMatrix4f(Y,D.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(Y,D.u_viewport_size)}},Kr=function(Y,D,J){var q=Ss(J,1,D.zoom),K=Math.pow(2,D.zoom-J.tileID.overscaledZ),de=J.tileID.overscaleFactor();return{u_matrix:Y,u_camera_to_center_distance:D.cameraToCenterDistance,u_pixels_to_tile_units:q,u_extrude_scale:[D.pixelsToGLUnits[0]/(q*K),D.pixelsToGLUnits[1]/(q*K)],u_overscale_factor:de}},Ei=function(Y,D,J){return{u_matrix:Y,u_inv_matrix:D,u_camera_to_center_distance:J.cameraToCenterDistance,u_viewport_size:[J.width,J.height]}},Wi=function(Y,D){return{u_color:new i.UniformColor(Y,D.u_color),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_overlay:new i.Uniform1i(Y,D.u_overlay),u_overlay_scale:new i.Uniform1f(Y,D.u_overlay_scale)}},hn=function(Y,D,J){return J===void 0&&(J=1),{u_matrix:Y,u_color:D,u_overlay:0,u_overlay_scale:J}},Tn=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},Bn=function(Y){return{u_matrix:Y}},Zi=function(Y,D){return{u_extrude_scale:new i.Uniform1f(Y,D.u_extrude_scale),u_intensity:new i.Uniform1f(Y,D.u_intensity),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},$i=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_world:new i.Uniform2f(Y,D.u_world),u_image:new i.Uniform1i(Y,D.u_image),u_color_ramp:new i.Uniform1i(Y,D.u_color_ramp),u_opacity:new i.Uniform1f(Y,D.u_opacity)}},an=function(Y,D,J,q){return{u_matrix:Y,u_extrude_scale:Ss(D,1,J),u_intensity:q}},Di=function(Y,D,J,q){var K=i.create();i.ortho(K,0,Y.width,Y.height,0,0,1);var de=Y.context.gl;return{u_matrix:K,u_world:[de.drawingBufferWidth,de.drawingBufferHeight],u_image:J,u_color_ramp:q,u_opacity:D.paint.get("heatmap-opacity")}},$n=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_image:new i.Uniform1i(Y,D.u_image),u_latrange:new i.Uniform2f(Y,D.u_latrange),u_light:new i.Uniform2f(Y,D.u_light),u_shadow:new i.UniformColor(Y,D.u_shadow),u_highlight:new i.UniformColor(Y,D.u_highlight),u_accent:new i.UniformColor(Y,D.u_accent)}},ka=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_image:new i.Uniform1i(Y,D.u_image),u_dimension:new i.Uniform2f(Y,D.u_dimension),u_zoom:new i.Uniform1f(Y,D.u_zoom),u_unpack:new i.Uniform4f(Y,D.u_unpack)}},Ra=function(Y,D,J){var q=J.paint.get("hillshade-shadow-color"),K=J.paint.get("hillshade-highlight-color"),de=J.paint.get("hillshade-accent-color"),ne=J.paint.get("hillshade-illumination-direction")*(Math.PI/180);J.paint.get("hillshade-illumination-anchor")==="viewport"&&(ne-=Y.transform.angle);var we=!Y.options.moving;return{u_matrix:Y.transform.calculatePosMatrix(D.tileID.toUnwrapped(),we),u_image:0,u_latrange:Na(Y,D.tileID),u_light:[J.paint.get("hillshade-exaggeration"),ne],u_shadow:q,u_highlight:K,u_accent:de}},La=function(Y,D){var J=D.stride,q=i.create();return i.ortho(q,0,i.EXTENT,-i.EXTENT,0,0,1),i.translate(q,q,[0,-i.EXTENT,0]),{u_matrix:q,u_image:1,u_dimension:[J,J],u_zoom:Y.overscaledZ,u_unpack:D.getUnpackVector()}};function Na(Y,D){var J=Math.pow(2,D.canonical.z),q=D.canonical.y;return[new i.MercatorCoordinate(0,q/J).toLngLat().lat,new i.MercatorCoordinate(0,(q+1)/J).toLngLat().lat]}var Yn=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels)}},zn=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels),u_image:new i.Uniform1i(Y,D.u_image),u_image_height:new i.Uniform1f(Y,D.u_image_height)}},Ka=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_image:new i.Uniform1i(Y,D.u_image),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade)}},bo=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(Y,D.u_patternscale_a),u_patternscale_b:new i.Uniform2f(Y,D.u_patternscale_b),u_sdfgamma:new i.Uniform1f(Y,D.u_sdfgamma),u_image:new i.Uniform1i(Y,D.u_image),u_tex_y_a:new i.Uniform1f(Y,D.u_tex_y_a),u_tex_y_b:new i.Uniform1f(Y,D.u_tex_y_b),u_mix:new i.Uniform1f(Y,D.u_mix)}},Xo=function(Y,D,J){var q=Y.transform;return{u_matrix:yl(Y,D,J),u_ratio:1/Ss(D,1,q.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_units_to_pixels:[1/q.pixelsToGLUnits[0],1/q.pixelsToGLUnits[1]]}},Ms=function(Y,D,J,q){return i.extend(Xo(Y,D,J),{u_image:0,u_image_height:q})},os=function(Y,D,J,q){var K=Y.transform,de=Ho(D,K);return{u_matrix:yl(Y,D,J),u_texsize:D.imageAtlasTexture.size,u_ratio:1/Ss(D,1,K.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_image:0,u_scale:[de,q.fromScale,q.toScale],u_fade:q.t,u_units_to_pixels:[1/K.pixelsToGLUnits[0],1/K.pixelsToGLUnits[1]]}},Ts=function(Y,D,J,q,K){var de=Y.transform,ne=Y.lineAtlas,we=Ho(D,de),Ue=J.layout.get("line-cap")==="round",ft=ne.getDash(q.from,Ue),Zt=ne.getDash(q.to,Ue),hr=ft.width*K.fromScale,qt=Zt.width*K.toScale;return i.extend(Xo(Y,D,J),{u_patternscale_a:[we/hr,-ft.height/2],u_patternscale_b:[we/qt,-Zt.height/2],u_sdfgamma:ne.width/(Math.min(hr,qt)*256*i.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:ft.y,u_tex_y_b:Zt.y,u_mix:K.t})};function Ho(Y,D){return 1/Ss(Y,1,D.tileZoom)}function yl(Y,D,J){return Y.translatePosMatrix(D.tileID.posMatrix,D,J.paint.get("line-translate"),J.paint.get("line-translate-anchor"))}var Xs=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_tl_parent:new i.Uniform2f(Y,D.u_tl_parent),u_scale_parent:new i.Uniform1f(Y,D.u_scale_parent),u_buffer_scale:new i.Uniform1f(Y,D.u_buffer_scale),u_fade_t:new i.Uniform1f(Y,D.u_fade_t),u_opacity:new i.Uniform1f(Y,D.u_opacity),u_image0:new i.Uniform1i(Y,D.u_image0),u_image1:new i.Uniform1i(Y,D.u_image1),u_brightness_low:new i.Uniform1f(Y,D.u_brightness_low),u_brightness_high:new i.Uniform1f(Y,D.u_brightness_high),u_saturation_factor:new i.Uniform1f(Y,D.u_saturation_factor),u_contrast_factor:new i.Uniform1f(Y,D.u_contrast_factor),u_spin_weights:new i.Uniform3f(Y,D.u_spin_weights)}},Ps=function(Y,D,J,q,K){return{u_matrix:Y,u_tl_parent:D,u_scale_parent:J,u_buffer_scale:1,u_fade_t:q.mix,u_opacity:q.opacity*K.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:K.paint.get("raster-brightness-min"),u_brightness_high:K.paint.get("raster-brightness-max"),u_saturation_factor:_s(K.paint.get("raster-saturation")),u_contrast_factor:no(K.paint.get("raster-contrast")),u_spin_weights:va(K.paint.get("raster-hue-rotate"))}};function va(Y){Y*=Math.PI/180;var D=Math.sin(Y),J=Math.cos(Y);return[(2*J+1)/3,(-Math.sqrt(3)*D-J+1)/3,(Math.sqrt(3)*D-J+1)/3]}function no(Y){return Y>0?1/(1-Y):1+Y}function _s(Y){return Y>0?1-1/(1.001-Y):-Y}var is=function(Y,D){return{u_is_size_zoom_constant:new i.Uniform1i(Y,D.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,D.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,D.u_size_t),u_size:new i.Uniform1f(Y,D.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,D.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,D.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,D.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,D.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,D.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,D.u_coord_matrix),u_is_text:new i.Uniform1i(Y,D.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_texture:new i.Uniform1i(Y,D.u_texture)}},$l=function(Y,D){return{u_is_size_zoom_constant:new i.Uniform1i(Y,D.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,D.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,D.u_size_t),u_size:new i.Uniform1f(Y,D.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,D.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,D.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,D.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,D.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,D.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,D.u_coord_matrix),u_is_text:new i.Uniform1i(Y,D.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_texture:new i.Uniform1i(Y,D.u_texture),u_gamma_scale:new i.Uniform1f(Y,D.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,D.u_is_halo)}},ku=function(Y,D){return{u_is_size_zoom_constant:new i.Uniform1i(Y,D.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,D.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,D.u_size_t),u_size:new i.Uniform1f(Y,D.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,D.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,D.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,D.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,D.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,D.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,D.u_coord_matrix),u_is_text:new i.Uniform1i(Y,D.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_texsize_icon:new i.Uniform2f(Y,D.u_texsize_icon),u_texture:new i.Uniform1i(Y,D.u_texture),u_texture_icon:new i.Uniform1i(Y,D.u_texture_icon),u_gamma_scale:new i.Uniform1f(Y,D.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,D.u_is_halo)}},Yu=function(Y,D,J,q,K,de,ne,we,Ue,ft){var Zt=K.transform;return{u_is_size_zoom_constant:+(Y==="constant"||Y==="source"),u_is_size_feature_constant:+(Y==="constant"||Y==="camera"),u_size_t:D?D.uSizeT:0,u_size:D?D.uSize:0,u_camera_to_center_distance:Zt.cameraToCenterDistance,u_pitch:Zt.pitch/360*2*Math.PI,u_rotate_symbol:+J,u_aspect_ratio:Zt.width/Zt.height,u_fade_change:K.options.fadeDuration?K.symbolFadeChange:1,u_matrix:de,u_label_plane_matrix:ne,u_coord_matrix:we,u_is_text:+Ue,u_pitch_with_map:+q,u_texsize:ft,u_texture:0}},Nc=function(Y,D,J,q,K,de,ne,we,Ue,ft,Zt){var hr=K.transform;return i.extend(Yu(Y,D,J,q,K,de,ne,we,Ue,ft),{u_gamma_scale:q?Math.cos(hr._pitch)*hr.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+Zt})},gu=function(Y,D,J,q,K,de,ne,we,Ue,ft){return i.extend(Nc(Y,D,J,q,K,de,ne,we,!0,Ue,!0),{u_texsize_icon:ft,u_texture_icon:1})},Uc=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_opacity:new i.Uniform1f(Y,D.u_opacity),u_color:new i.UniformColor(Y,D.u_color)}},xu=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_opacity:new i.Uniform1f(Y,D.u_opacity),u_image:new i.Uniform1i(Y,D.u_image),u_pattern_tl_a:new i.Uniform2f(Y,D.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(Y,D.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(Y,D.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(Y,D.u_pattern_br_b),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_mix:new i.Uniform1f(Y,D.u_mix),u_pattern_size_a:new i.Uniform2f(Y,D.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(Y,D.u_pattern_size_b),u_scale_a:new i.Uniform1f(Y,D.u_scale_a),u_scale_b:new i.Uniform1f(Y,D.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(Y,D.u_tile_units_to_pixels)}},Ac=function(Y,D,J){return{u_matrix:Y,u_opacity:D,u_color:J}},Ua=function(Y,D,J,q,K,de){return i.extend(uf(q,de,J,K),{u_matrix:Y,u_opacity:D})},oo={fillExtrusion:Xf,fillExtrusionPattern:Wl,fill:Oc,fillPattern:Tc,fillOutline:wl,fillOutlinePattern:pu,circle:At,collisionBox:kr,collisionCircle:Ar,debug:Wi,clippingMask:Tn,heatmap:Zi,heatmapTexture:$i,hillshade:$n,hillshadePrepare:ka,line:Yn,lineGradient:zn,linePattern:Ka,lineSDF:bo,raster:Xs,symbolIcon:is,symbolSDF:$l,symbolTextAndIcon:ku,background:Uc,backgroundPattern:xu},Vc;function hc(Y,D,J,q,K,de,ne){for(var we=Y.context,Ue=we.gl,ft=Y.useProgram("collisionBox"),Zt=[],hr=0,qt=0,Ve=0;Ve0){var Rt=i.create(),mt=Ot;i.mul(Rt,kt.placementInvProjMatrix,Y.transform.glCoordMatrix),i.mul(Rt,Rt,kt.placementViewportMatrix),Zt.push({circleArray:Bt,circleOffset:qt,transform:mt,invTransform:Rt}),hr+=Bt.length/4,qt=hr}It&&ft.draw(we,Ue.LINES,wn.disabled,kn.disabled,Y.colorModeForRenderPass(),Er.disabled,Kr(Ot,Y.transform,at),J.id,It.layoutVertexBuffer,It.indexBuffer,It.segments,null,Y.transform.zoom,null,null,It.collisionVertexBuffer)}}if(!(!ne||!Zt.length)){var Pt=Y.useProgram("collisionCircle"),ht=new i.StructArrayLayout2f1f2i16;ht.resize(hr*4),ht._trim();for(var cr=0,br=0,Nr=Zt;br=0&&(et[kt.associatedIconIndex]={shiftedAnchor:wi,angle:gn})}}if(Zt){Ve.clear();for(var Ci=Y.icon.placedSymbolArray,qi=0;qi0){var ne=i.browser.now(),we=(ne-Y.timeAdded)/de,Ue=D?(ne-D.timeAdded)/de:-1,ft=J.getSource(),Zt=K.coveringZoomLevel({tileSize:ft.tileSize,roundZoom:ft.roundZoom}),hr=!D||Math.abs(D.tileID.overscaledZ-Zt)>Math.abs(Y.tileID.overscaledZ-Zt),qt=hr&&Y.refreshedUponExpiration?1:i.clamp(hr?we:1-Ue,0,1);return Y.refreshedUponExpiration&&we>=1&&(Y.refreshedUponExpiration=!1),D?{opacity:1,mix:1-qt}:{opacity:qt,mix:0}}else return{opacity:1,mix:0}}function rr(Y,D,J){var q=J.paint.get("background-color"),K=J.paint.get("background-opacity");if(K!==0){var de=Y.context,ne=de.gl,we=Y.transform,Ue=we.tileSize,ft=J.paint.get("background-pattern");if(!Y.isPatternMissing(ft)){var Zt=!ft&&q.a===1&&K===1&&Y.opaquePassEnabledForLayer()?"opaque":"translucent";if(Y.renderPass===Zt){var hr=kn.disabled,qt=Y.depthModeForSublayer(0,Zt==="opaque"?wn.ReadWrite:wn.ReadOnly),Ve=Y.colorModeForRenderPass(),et=Y.useProgram(ft?"backgroundPattern":"background"),at=we.coveringTiles({tileSize:Ue});ft&&(de.activeTexture.set(ne.TEXTURE0),Y.imageManager.bind(Y.context));for(var kt=J.getCrossfadeParameters(),Ot=0,It=at;Ot "+J.overscaledZ);var Ot=kt+" "+Ve+"kb";$a(Y,Ot),ne.draw(q,K.TRIANGLES,we,Ue,_t.alphaBlended,Er.disabled,hn(de,i.Color.transparent,at),Zt,Y.debugBuffer,Y.quadTriangleIndexBuffer,Y.debugSegments)}function $a(Y,D){Y.initDebugOverlayCanvas();var J=Y.debugOverlayCanvas,q=Y.context.gl,K=Y.debugOverlayCanvas.getContext("2d");K.clearRect(0,0,J.width,J.height),K.shadowColor="white",K.shadowBlur=2,K.lineWidth=1.5,K.strokeStyle="white",K.textBaseline="top",K.font="bold 36px Open Sans, sans-serif",K.fillText(D,5,5),K.strokeText(D,5,5),Y.debugOverlayTexture.update(J),Y.debugOverlayTexture.bind(q.LINEAR,q.CLAMP_TO_EDGE)}function ko(Y,D,J){var q=Y.context,K=J.implementation;if(Y.renderPass==="offscreen"){var de=K.prerender;de&&(Y.setCustomLayerDefaults(),q.setColorMode(Y.colorModeForRenderPass()),de.call(K,q.gl,Y.transform.customLayerMatrix()),q.setDirty(),Y.setBaseState())}else if(Y.renderPass==="translucent"){Y.setCustomLayerDefaults(),q.setColorMode(Y.colorModeForRenderPass()),q.setStencilMode(kn.disabled);var ne=K.renderingMode==="3d"?new wn(Y.context.gl.LEQUAL,wn.ReadWrite,Y.depthRangeFor3D):Y.depthModeForSublayer(0,wn.ReadOnly);q.setDepthMode(ne),K.render(q.gl,Y.transform.customLayerMatrix()),q.setDirty(),Y.setBaseState(),q.bindFramebuffer.set(null)}}var Qa={symbol:w,circle:ot,heatmap:Tt,line:Pr,fill:ve,"fill-extrusion":Re,hillshade:tt,raster:Dt,background:rr,debug:Aa,custom:ko},mo=function(D,J){this.context=new Zr(D),this.transform=J,this._tileTextures={},this.setup(),this.numSublayers=ri.maxUnderzooming+ri.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Uf,this.gpuTimers={}};mo.prototype.resize=function(D,J){if(this.width=D*i.browser.devicePixelRatio,this.height=J*i.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var q=0,K=this.style._order;q256&&this.clearStencil(),q.setColorMode(_t.disabled),q.setDepthMode(wn.disabled);var de=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ne=0,we=J;ne256&&this.clearStencil();var D=this.nextStencilID++,J=this.context.gl;return new kn({func:J.NOTEQUAL,mask:255},D,255,J.KEEP,J.KEEP,J.REPLACE)},mo.prototype.stencilModeForClipping=function(D){var J=this.context.gl;return new kn({func:J.EQUAL,mask:255},this._tileClippingMaskIDs[D.key],0,J.KEEP,J.KEEP,J.REPLACE)},mo.prototype.stencilConfigForOverlap=function(D){var J,q=this.context.gl,K=D.sort(function(ft,Zt){return Zt.overscaledZ-ft.overscaledZ}),de=K[K.length-1].overscaledZ,ne=K[0].overscaledZ-de+1;if(ne>1){this.currentStencilSource=void 0,this.nextStencilID+ne>256&&this.clearStencil();for(var we={},Ue=0;Ue=0;this.currentLayer--){var Rt=this.style._layers[K[this.currentLayer]],mt=de[Rt.source],Pt=Ue[Rt.source];this._renderTileClippingMasks(Rt,Pt),this.renderLayer(this,mt,Rt,Pt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?J.pop():null},mo.prototype.isPatternMissing=function(D){if(!D)return!1;if(!D.from||!D.to)return!0;var J=this.imageManager.getPattern(D.from.toString()),q=this.imageManager.getPattern(D.to.toString());return!J||!q},mo.prototype.useProgram=function(D,J){this.cache=this.cache||{};var q=""+D+(J?J.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[q]||(this.cache[q]=new If(this.context,D,bf[D],J,oo[D],this._showOverdrawInspector)),this.cache[q]},mo.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},mo.prototype.setBaseState=function(){var D=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(D.FUNC_ADD)},mo.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var D=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,D.RGBA)}},mo.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var Bo=function(D,J){this.points=D,this.planes=J};Bo.fromInvProjectionMatrix=function(D,J,q){var K=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]],de=Math.pow(2,q),ne=K.map(function(ft){return i.transformMat4([],ft,D)}).map(function(ft){return i.scale$1([],ft,1/ft[3]/J*de)}),we=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],Ue=we.map(function(ft){var Zt=i.sub([],ne[ft[0]],ne[ft[1]]),hr=i.sub([],ne[ft[2]],ne[ft[1]]),qt=i.normalize([],i.cross([],Zt,hr)),Ve=-i.dot(qt,ne[ft[1]]);return qt.concat(Ve)});return new Bo(ne,Ue)};var Is=function(D,J){this.min=D,this.max=J,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};Is.prototype.quadrant=function(D){for(var J=[D%2===0,D<2],q=i.clone$2(this.min),K=i.clone$2(this.max),de=0;de=0;if(ne===0)return 0;ne!==J.length&&(q=!1)}if(q)return 2;for(var Ue=0;Ue<3;Ue++){for(var ft=Number.MAX_VALUE,Zt=-Number.MAX_VALUE,hr=0;hrthis.max[Ue]-this.min[Ue])return 0}return 1};var As=function(D,J,q,K){if(D===void 0&&(D=0),J===void 0&&(J=0),q===void 0&&(q=0),K===void 0&&(K=0),isNaN(D)||D<0||isNaN(J)||J<0||isNaN(q)||q<0||isNaN(K)||K<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=D,this.bottom=J,this.left=q,this.right=K};As.prototype.interpolate=function(D,J,q){return J.top!=null&&D.top!=null&&(this.top=i.number(D.top,J.top,q)),J.bottom!=null&&D.bottom!=null&&(this.bottom=i.number(D.bottom,J.bottom,q)),J.left!=null&&D.left!=null&&(this.left=i.number(D.left,J.left,q)),J.right!=null&&D.right!=null&&(this.right=i.number(D.right,J.right,q)),this},As.prototype.getCenter=function(D,J){var q=i.clamp((this.left+D-this.right)/2,0,D),K=i.clamp((this.top+J-this.bottom)/2,0,J);return new i.Point(q,K)},As.prototype.equals=function(D){return this.top===D.top&&this.bottom===D.bottom&&this.left===D.left&&this.right===D.right},As.prototype.clone=function(){return new As(this.top,this.bottom,this.left,this.right)},As.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var wo=function(D,J,q,K,de){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=de===void 0?!0:de,this._minZoom=D||0,this._maxZoom=J||22,this._minPitch=q==null?0:q,this._maxPitch=K==null?60:K,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new As,this._posMatrixCache={},this._alignedPosMatrixCache={}},To={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};wo.prototype.clone=function(){var D=new wo(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return D.tileSize=this.tileSize,D.latRange=this.latRange,D.width=this.width,D.height=this.height,D._center=this._center,D.zoom=this.zoom,D.angle=this.angle,D._fov=this._fov,D._pitch=this._pitch,D._unmodified=this._unmodified,D._edgeInsets=this._edgeInsets.clone(),D._calcMatrices(),D},To.minZoom.get=function(){return this._minZoom},To.minZoom.set=function(Y){this._minZoom!==Y&&(this._minZoom=Y,this.zoom=Math.max(this.zoom,Y))},To.maxZoom.get=function(){return this._maxZoom},To.maxZoom.set=function(Y){this._maxZoom!==Y&&(this._maxZoom=Y,this.zoom=Math.min(this.zoom,Y))},To.minPitch.get=function(){return this._minPitch},To.minPitch.set=function(Y){this._minPitch!==Y&&(this._minPitch=Y,this.pitch=Math.max(this.pitch,Y))},To.maxPitch.get=function(){return this._maxPitch},To.maxPitch.set=function(Y){this._maxPitch!==Y&&(this._maxPitch=Y,this.pitch=Math.min(this.pitch,Y))},To.renderWorldCopies.get=function(){return this._renderWorldCopies},To.renderWorldCopies.set=function(Y){Y===void 0?Y=!0:Y===null&&(Y=!1),this._renderWorldCopies=Y},To.worldSize.get=function(){return this.tileSize*this.scale},To.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},To.size.get=function(){return new i.Point(this.width,this.height)},To.bearing.get=function(){return-this.angle/Math.PI*180},To.bearing.set=function(Y){var D=-i.wrap(Y,-180,180)*Math.PI/180;this.angle!==D&&(this._unmodified=!1,this.angle=D,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},To.pitch.get=function(){return this._pitch/Math.PI*180},To.pitch.set=function(Y){var D=i.clamp(Y,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==D&&(this._unmodified=!1,this._pitch=D,this._calcMatrices())},To.fov.get=function(){return this._fov/Math.PI*180},To.fov.set=function(Y){Y=Math.max(.01,Math.min(60,Y)),this._fov!==Y&&(this._unmodified=!1,this._fov=Y/180*Math.PI,this._calcMatrices())},To.zoom.get=function(){return this._zoom},To.zoom.set=function(Y){var D=Math.min(Math.max(Y,this.minZoom),this.maxZoom);this._zoom!==D&&(this._unmodified=!1,this._zoom=D,this.scale=this.zoomScale(D),this.tileZoom=Math.floor(D),this.zoomFraction=D-this.tileZoom,this._constrain(),this._calcMatrices())},To.center.get=function(){return this._center},To.center.set=function(Y){Y.lat===this._center.lat&&Y.lng===this._center.lng||(this._unmodified=!1,this._center=Y,this._constrain(),this._calcMatrices())},To.padding.get=function(){return this._edgeInsets.toJSON()},To.padding.set=function(Y){this._edgeInsets.equals(Y)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,Y,1),this._calcMatrices())},To.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},wo.prototype.isPaddingEqual=function(D){return this._edgeInsets.equals(D)},wo.prototype.interpolatePadding=function(D,J,q){this._unmodified=!1,this._edgeInsets.interpolate(D,J,q),this._constrain(),this._calcMatrices()},wo.prototype.coveringZoomLevel=function(D){var J=(D.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/D.tileSize));return Math.max(0,J)},wo.prototype.getVisibleUnwrappedCoordinates=function(D){var J=[new i.UnwrappedTileID(0,D)];if(this._renderWorldCopies)for(var q=this.pointCoordinate(new i.Point(0,0)),K=this.pointCoordinate(new i.Point(this.width,0)),de=this.pointCoordinate(new i.Point(this.width,this.height)),ne=this.pointCoordinate(new i.Point(0,this.height)),we=Math.floor(Math.min(q.x,K.x,de.x,ne.x)),Ue=Math.floor(Math.max(q.x,K.x,de.x,ne.x)),ft=1,Zt=we-ft;Zt<=Ue+ft;Zt++)Zt!==0&&J.push(new i.UnwrappedTileID(Zt,D));return J},wo.prototype.coveringTiles=function(D){var J=this.coveringZoomLevel(D),q=J;if(D.minzoom!==void 0&&JD.maxzoom&&(J=D.maxzoom);var K=i.MercatorCoordinate.fromLngLat(this.center),de=Math.pow(2,J),ne=[de*K.x,de*K.y,0],we=Bo.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,J),Ue=D.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Ue=J);var ft=3,Zt=function(hi){return{aabb:new Is([hi*de,0,0],[(hi+1)*de,de,0]),zoom:0,x:0,y:0,wrap:hi,fullyVisible:!1}},hr=[],qt=[],Ve=J,et=D.reparseOverscaled?q:J;if(this._renderWorldCopies)for(var at=1;at<=3;at++)hr.push(Zt(-at)),hr.push(Zt(at));for(hr.push(Zt(0));hr.length>0;){var kt=hr.pop(),Ot=kt.x,It=kt.y,Bt=kt.fullyVisible;if(!Bt){var Rt=kt.aabb.intersects(we);if(Rt===0)continue;Bt=Rt===2}var mt=kt.aabb.distanceX(ne),Pt=kt.aabb.distanceY(ne),ht=Math.max(Math.abs(mt),Math.abs(Pt)),cr=ft+(1<cr&&kt.zoom>=Ue){qt.push({tileID:new i.OverscaledTileID(kt.zoom===Ve?et:kt.zoom,kt.wrap,kt.zoom,Ot,It),distanceSq:i.sqrLen([ne[0]-.5-Ot,ne[1]-.5-It])});continue}for(var br=0;br<4;br++){var Nr=(Ot<<1)+br%2,Ri=(It<<1)+(br>>1);hr.push({aabb:kt.aabb.quadrant(br),zoom:kt.zoom+1,x:Nr,y:Ri,wrap:kt.wrap,fullyVisible:Bt})}}return qt.sort(function(hi,wi){return hi.distanceSq-wi.distanceSq}).map(function(hi){return hi.tileID})},wo.prototype.resize=function(D,J){this.width=D,this.height=J,this.pixelsToGLUnits=[2/D,-2/J],this._constrain(),this._calcMatrices()},To.unmodified.get=function(){return this._unmodified},wo.prototype.zoomScale=function(D){return Math.pow(2,D)},wo.prototype.scaleZoom=function(D){return Math.log(D)/Math.LN2},wo.prototype.project=function(D){var J=i.clamp(D.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(D.lng)*this.worldSize,i.mercatorYfromLat(J)*this.worldSize)},wo.prototype.unproject=function(D){return new i.MercatorCoordinate(D.x/this.worldSize,D.y/this.worldSize).toLngLat()},To.point.get=function(){return this.project(this.center)},wo.prototype.setLocationAtPoint=function(D,J){var q=this.pointCoordinate(J),K=this.pointCoordinate(this.centerPoint),de=this.locationCoordinate(D),ne=new i.MercatorCoordinate(de.x-(q.x-K.x),de.y-(q.y-K.y));this.center=this.coordinateLocation(ne),this._renderWorldCopies&&(this.center=this.center.wrap())},wo.prototype.locationPoint=function(D){return this.coordinatePoint(this.locationCoordinate(D))},wo.prototype.pointLocation=function(D){return this.coordinateLocation(this.pointCoordinate(D))},wo.prototype.locationCoordinate=function(D){return i.MercatorCoordinate.fromLngLat(D)},wo.prototype.coordinateLocation=function(D){return D.toLngLat()},wo.prototype.pointCoordinate=function(D){var J=0,q=[D.x,D.y,0,1],K=[D.x,D.y,1,1];i.transformMat4(q,q,this.pixelMatrixInverse),i.transformMat4(K,K,this.pixelMatrixInverse);var de=q[3],ne=K[3],we=q[0]/de,Ue=K[0]/ne,ft=q[1]/de,Zt=K[1]/ne,hr=q[2]/de,qt=K[2]/ne,Ve=hr===qt?0:(J-hr)/(qt-hr);return new i.MercatorCoordinate(i.number(we,Ue,Ve)/this.worldSize,i.number(ft,Zt,Ve)/this.worldSize)},wo.prototype.coordinatePoint=function(D){var J=[D.x*this.worldSize,D.y*this.worldSize,0,1];return i.transformMat4(J,J,this.pixelMatrix),new i.Point(J[0]/J[3],J[1]/J[3])},wo.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},wo.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},wo.prototype.setMaxBounds=function(D){D?(this.lngRange=[D.getWest(),D.getEast()],this.latRange=[D.getSouth(),D.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},wo.prototype.calculatePosMatrix=function(D,J){J===void 0&&(J=!1);var q=D.key,K=J?this._alignedPosMatrixCache:this._posMatrixCache;if(K[q])return K[q];var de=D.canonical,ne=this.worldSize/this.zoomScale(de.z),we=de.x+Math.pow(2,de.z)*D.wrap,Ue=i.identity(new Float64Array(16));return i.translate(Ue,Ue,[we*ne,de.y*ne,0]),i.scale(Ue,Ue,[ne/i.EXTENT,ne/i.EXTENT,1]),i.multiply(Ue,J?this.alignedProjMatrix:this.projMatrix,Ue),K[q]=new Float32Array(Ue),K[q]},wo.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},wo.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var D=-90,J=90,q=-180,K=180,de,ne,we,Ue,ft=this.size,Zt=this._unmodified;if(this.latRange){var hr=this.latRange;D=i.mercatorYfromLat(hr[1])*this.worldSize,J=i.mercatorYfromLat(hr[0])*this.worldSize,de=J-DJ&&(Ue=J-kt)}if(this.lngRange){var Ot=Ve.x,It=ft.x/2;Ot-ItK&&(we=K-It)}(we!==void 0||Ue!==void 0)&&(this.center=this.unproject(new i.Point(we!==void 0?we:Ve.x,Ue!==void 0?Ue:Ve.y))),this._unmodified=Zt,this._constraining=!1}},wo.prototype._calcMatrices=function(){if(this.height){var D=this._fov/2,J=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(D)*this.height;var q=Math.PI/2+this._pitch,K=this._fov*(.5+J.y/this.height),de=Math.sin(K)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-q-K,.01,Math.PI-.01)),ne=this.point,we=ne.x,Ue=ne.y,ft=Math.cos(Math.PI/2-this._pitch)*de+this.cameraToCenterDistance,Zt=ft*1.01,hr=this.height/50,qt=new Float64Array(16);i.perspective(qt,this._fov,this.width/this.height,hr,Zt),qt[8]=-J.x*2/this.width,qt[9]=J.y*2/this.height,i.scale(qt,qt,[1,-1,1]),i.translate(qt,qt,[0,0,-this.cameraToCenterDistance]),i.rotateX(qt,qt,this._pitch),i.rotateZ(qt,qt,this.angle),i.translate(qt,qt,[-we,-Ue,0]),this.mercatorMatrix=i.scale([],qt,[this.worldSize,this.worldSize,this.worldSize]),i.scale(qt,qt,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=qt,this.invProjMatrix=i.invert([],this.projMatrix);var Ve=this.width%2/2,et=this.height%2/2,at=Math.cos(this.angle),kt=Math.sin(this.angle),Ot=we-Math.round(we)+at*Ve+kt*et,It=Ue-Math.round(Ue)+at*et+kt*Ve,Bt=new Float64Array(qt);if(i.translate(Bt,Bt,[Ot>.5?Ot-1:Ot,It>.5?It-1:It,0]),this.alignedProjMatrix=Bt,qt=i.create(),i.scale(qt,qt,[this.width/2,-this.height/2,1]),i.translate(qt,qt,[1,-1,0]),this.labelPlaneMatrix=qt,qt=i.create(),i.scale(qt,qt,[1,-1,1]),i.translate(qt,qt,[-1,-1,0]),i.scale(qt,qt,[2/this.width,2/this.height,1]),this.glCoordMatrix=qt,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),qt=i.invert(new Float64Array(16),this.pixelMatrix),!qt)throw new Error("failed to invert matrix");this.pixelMatrixInverse=qt,this._posMatrixCache={},this._alignedPosMatrixCache={}}},wo.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var D=this.pointCoordinate(new i.Point(0,0)),J=[D.x*this.worldSize,D.y*this.worldSize,0,1],q=i.transformMat4(J,J,this.pixelMatrix);return q[3]/this.cameraToCenterDistance},wo.prototype.getCameraPoint=function(){var D=this._pitch,J=Math.tan(D)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,J))},wo.prototype.getCameraQueryGeometry=function(D){var J=this.getCameraPoint();if(D.length===1)return[D[0],J];for(var q=J.x,K=J.y,de=J.x,ne=J.y,we=0,Ue=D;we=3&&!D.some(function(q){return isNaN(q)})){var J=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(D[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+D[2],+D[1]],zoom:+D[0],bearing:J,pitch:+(D[4]||0)}),!0}return!1},Nl.prototype._updateHashUnthrottled=function(){var D=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,D)}catch(J){}};var Lu={linearity:.3,easing:i.bezier(0,0,.3,1)},ou=i.extend({deceleration:2500,maxSpeed:1400},Lu),$s=i.extend({deceleration:20,maxSpeed:1400},Lu),Ql=i.extend({deceleration:1e3,maxSpeed:360},Lu),dc=i.extend({deceleration:1e3,maxSpeed:90},Lu),Tl=function(D){this._map=D,this.clear()};Tl.prototype.clear=function(){this._inertiaBuffer=[]},Tl.prototype.record=function(D){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:i.browser.now(),settings:D})},Tl.prototype._drainInertiaBuffer=function(){for(var D=this._inertiaBuffer,J=i.browser.now(),q=160;D.length>0&&J-D[0].time>q;)D.shift()},Tl.prototype._onMoveEnd=function(D){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var J={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},q=0,K=this._inertiaBuffer;q=this._clickTolerance||this._map.fire(new se(D.type,this._map,D))},He.prototype.dblclick=function(D){return this._firePreventable(new se(D.type,this._map,D))},He.prototype.mouseover=function(D){this._map.fire(new se(D.type,this._map,D))},He.prototype.mouseout=function(D){this._map.fire(new se(D.type,this._map,D))},He.prototype.touchstart=function(D){return this._firePreventable(new Te(D.type,this._map,D))},He.prototype.touchmove=function(D){this._map.fire(new Te(D.type,this._map,D))},He.prototype.touchend=function(D){this._map.fire(new Te(D.type,this._map,D))},He.prototype.touchcancel=function(D){this._map.fire(new Te(D.type,this._map,D))},He.prototype._firePreventable=function(D){if(this._map.fire(D),D.defaultPrevented)return{}},He.prototype.isEnabled=function(){return!0},He.prototype.isActive=function(){return!1},He.prototype.enable=function(){},He.prototype.disable=function(){};var Ze=function(D){this._map=D};Ze.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Ze.prototype.mousemove=function(D){this._map.fire(new se(D.type,this._map,D))},Ze.prototype.mousedown=function(){this._delayContextMenu=!0},Ze.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new se("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Ze.prototype.contextmenu=function(D){this._delayContextMenu?this._contextMenuEvent=D:this._map.fire(new se(D.type,this._map,D)),this._map.listens("contextmenu")&&D.preventDefault()},Ze.prototype.isEnabled=function(){return!0},Ze.prototype.isActive=function(){return!1},Ze.prototype.enable=function(){},Ze.prototype.disable=function(){};var Ct=function(D,J){this._map=D,this._el=D.getCanvasContainer(),this._container=D.getContainer(),this._clickTolerance=J.clickTolerance||1};Ct.prototype.isEnabled=function(){return!!this._enabled},Ct.prototype.isActive=function(){return!!this._active},Ct.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Ct.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Ct.prototype.mousedown=function(D,J){this.isEnabled()&&D.shiftKey&&D.button===0&&(o.disableDrag(),this._startPos=this._lastPos=J,this._active=!0)},Ct.prototype.mousemoveWindow=function(D,J){if(this._active){var q=J;if(!(this._lastPos.equals(q)||!this._box&&q.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=D.timeStamp),q.length===this.numTouches&&(this.centroid=jt(J),this.touches=nt(q,J)))},qr.prototype.touchmove=function(D,J,q){if(!(this.aborted||!this.centroid)){var K=nt(q,J);for(var de in this.touches){var ne=this.touches[de],we=K[de];(!we||we.dist(ne)>Gr)&&(this.aborted=!0)}}},qr.prototype.touchend=function(D,J,q){if((!this.centroid||D.timeStamp-this.startTime>yr)&&(this.aborted=!0),q.length===0){var K=!this.aborted&&this.centroid;if(this.reset(),K)return K}};var _i=function(D){this.singleTap=new qr(D),this.numTaps=D.numTaps,this.reset()};_i.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},_i.prototype.touchstart=function(D,J,q){this.singleTap.touchstart(D,J,q)},_i.prototype.touchmove=function(D,J,q){this.singleTap.touchmove(D,J,q)},_i.prototype.touchend=function(D,J,q){var K=this.singleTap.touchend(D,J,q);if(K){var de=D.timeStamp-this.lastTime0&&(this._active=!0);var K=nt(q,J),de=new i.Point(0,0),ne=new i.Point(0,0),we=0;for(var Ue in K){var ft=K[Ue],Zt=this._touches[Ue];Zt&&(de._add(ft),ne._add(ft.sub(Zt)),we++,K[Ue]=ft)}if(this._touches=K,!(weMath.abs(Y.x)}var Gn=100,Ha=function(Y){function D(){Y.apply(this,arguments)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.reset=function(){Y.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},D.prototype._start=function(q){this._lastPoints=q,Zs(q[0].sub(q[1]))&&(this._valid=!1)},D.prototype._move=function(q,K,de){var ne=q[0].sub(this._lastPoints[0]),we=q[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ne,we,de.timeStamp),!!this._valid){this._lastPoints=q,this._active=!0;var Ue=(ne.y+we.y)/2,ft=-.5;return{pitchDelta:Ue*ft}}},D.prototype.gestureBeginsVertically=function(q,K,de){if(this._valid!==void 0)return this._valid;var ne=2,we=q.mag()>=ne,Ue=K.mag()>=ne;if(!(!we&&!Ue)){if(!we||!Ue)return this._firstMove===void 0&&(this._firstMove=de),de-this._firstMove0==K.y>0;return Zs(q)&&Zs(K)&&ft}},D}(ia),Fo={panStep:100,bearingStep:15,pitchStep:10},Uo=function(){var D=Fo;this._panStep=D.panStep,this._bearingStep=D.bearingStep,this._pitchStep=D.pitchStep,this._rotationDisabled=!1};Uo.prototype.reset=function(){this._active=!1},Uo.prototype.keydown=function(D){var J=this;if(!(D.altKey||D.ctrlKey||D.metaKey)){var q=0,K=0,de=0,ne=0,we=0;switch(D.keyCode){case 61:case 107:case 171:case 187:q=1;break;case 189:case 109:case 173:q=-1;break;case 37:D.shiftKey?K=-1:(D.preventDefault(),ne=-1);break;case 39:D.shiftKey?K=1:(D.preventDefault(),ne=1);break;case 38:D.shiftKey?de=1:(D.preventDefault(),we=-1);break;case 40:D.shiftKey?de=-1:(D.preventDefault(),we=1);break;default:return}return this._rotationDisabled&&(K=0,de=0),{cameraAnimation:function(Ue){var ft=Ue.getZoom();Ue.easeTo({duration:300,easeId:"keyboardHandler",easing:Qs,zoom:q?Math.round(ft)+q*(D.shiftKey?2:1):ft,bearing:Ue.getBearing()+K*J._bearingStep,pitch:Ue.getPitch()+de*J._pitchStep,offset:[-ne*J._panStep,-we*J._panStep],center:Ue.getCenter()},{originalEvent:D})}}}},Uo.prototype.enable=function(){this._enabled=!0},Uo.prototype.disable=function(){this._enabled=!1,this.reset()},Uo.prototype.isEnabled=function(){return this._enabled},Uo.prototype.isActive=function(){return this._active},Uo.prototype.disableRotation=function(){this._rotationDisabled=!0},Uo.prototype.enableRotation=function(){this._rotationDisabled=!1};function Qs(Y){return Y*(2-Y)}var Sl=4.000244140625,bu=1/100,vl=1/450,Sc=2,Ee=function(D,J){this._map=D,this._el=D.getCanvasContainer(),this._handler=J,this._delta=0,this._defaultZoomRate=bu,this._wheelZoomRate=vl,i.bindAll(["_onTimeout"],this)};Ee.prototype.setZoomRate=function(D){this._defaultZoomRate=D},Ee.prototype.setWheelZoomRate=function(D){this._wheelZoomRate=D},Ee.prototype.isEnabled=function(){return!!this._enabled},Ee.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Ee.prototype.isZooming=function(){return!!this._zooming},Ee.prototype.enable=function(D){this.isEnabled()||(this._enabled=!0,this._aroundCenter=D&&D.around==="center")},Ee.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Ee.prototype.wheel=function(D){if(this.isEnabled()){var J=D.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?D.deltaY*40:D.deltaY,q=i.browser.now(),K=q-(this._lastWheelEventTime||0);this._lastWheelEventTime=q,J!==0&&J%Sl===0?this._type="wheel":J!==0&&Math.abs(J)<4?this._type="trackpad":K>400?(this._type=null,this._lastValue=J,this._timeout=setTimeout(this._onTimeout,40,D)):this._type||(this._type=Math.abs(K*J)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,J+=this._lastValue)),D.shiftKey&&J&&(J=J/4),this._type&&(this._lastWheelEvent=D,this._delta-=J,this._active||this._start(D)),D.preventDefault()}},Ee.prototype._onTimeout=function(D){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(D)},Ee.prototype._start=function(D){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var J=o.mousePos(this._el,D);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(J)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Ee.prototype.renderFrame=function(){var D=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var J=this._map.transform;if(this._delta!==0){var q=this._type==="wheel"&&Math.abs(this._delta)>Sl?this._wheelZoomRate:this._defaultZoomRate,K=Sc/(1+Math.exp(-Math.abs(this._delta*q)));this._delta<0&&K!==0&&(K=1/K);var de=typeof this._targetZoom=="number"?J.zoomScale(this._targetZoom):J.scale;this._targetZoom=Math.min(J.maxZoom,Math.max(J.minZoom,J.scaleZoom(de*K))),this._type==="wheel"&&(this._startZoom=J.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var ne=typeof this._targetZoom=="number"?this._targetZoom:J.zoom,we=this._startZoom,Ue=this._easing,ft=!1,Zt;if(this._type==="wheel"&&we&&Ue){var hr=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),qt=Ue(hr);Zt=i.number(we,ne,qt),hr<1?this._frameId||(this._frameId=!0):ft=!0}else Zt=ne,ft=!0;return this._active=!0,ft&&(this._active=!1,this._finishTimeout=setTimeout(function(){D._zooming=!1,D._handler._triggerRenderFrame(),delete D._targetZoom,delete D._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!ft,zoomDelta:Zt-J.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Ee.prototype._smoothOutEasing=function(D){var J=i.ease;if(this._prevEase){var q=this._prevEase,K=(i.browser.now()-q.start)/q.duration,de=q.easing(K+.01)-q.easing(K),ne=.27/Math.sqrt(de*de+1e-4)*.01,we=Math.sqrt(.27*.27-ne*ne);J=i.bezier(ne,we,.25,1)}return this._prevEase={start:i.browser.now(),duration:D,easing:J},J},Ee.prototype.reset=function(){this._active=!1};var xt=function(D,J){this._clickZoom=D,this._tapZoom=J};xt.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},xt.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},xt.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},xt.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var zt=function(){this.reset()};zt.prototype.reset=function(){this._active=!1},zt.prototype.dblclick=function(D,J){return D.preventDefault(),{cameraAnimation:function(q){q.easeTo({duration:300,zoom:q.getZoom()+(D.shiftKey?-1:1),around:q.unproject(J)},{originalEvent:D})}}},zt.prototype.enable=function(){this._enabled=!0},zt.prototype.disable=function(){this._enabled=!1,this.reset()},zt.prototype.isEnabled=function(){return this._enabled},zt.prototype.isActive=function(){return this._active};var Ir=function(){this._tap=new _i({numTouches:1,numTaps:1}),this.reset()};Ir.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Ir.prototype.touchstart=function(D,J,q){this._swipePoint||(this._tapTime&&D.timeStamp-this._tapTime>gr&&this.reset(),this._tapTime?q.length>0&&(this._swipePoint=J[0],this._swipeTouch=q[0].identifier):this._tap.touchstart(D,J,q))},Ir.prototype.touchmove=function(D,J,q){if(!this._tapTime)this._tap.touchmove(D,J,q);else if(this._swipePoint){if(q[0].identifier!==this._swipeTouch)return;var K=J[0],de=K.y-this._swipePoint.y;return this._swipePoint=K,D.preventDefault(),this._active=!0,{zoomDelta:de/128}}},Ir.prototype.touchend=function(D,J,q){if(this._tapTime)this._swipePoint&&q.length===0&&this.reset();else{var K=this._tap.touchend(D,J,q);K&&(this._tapTime=D.timeStamp)}},Ir.prototype.touchcancel=function(){this.reset()},Ir.prototype.enable=function(){this._enabled=!0},Ir.prototype.disable=function(){this._enabled=!1,this.reset()},Ir.prototype.isEnabled=function(){return this._enabled},Ir.prototype.isActive=function(){return this._active};var Hr=function(D,J,q){this._el=D,this._mousePan=J,this._touchPan=q};Hr.prototype.enable=function(D){this._inertiaOptions=D||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},Hr.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},Hr.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},Hr.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var Br=function(D,J,q){this._pitchWithRotate=D.pitchWithRotate,this._mouseRotate=J,this._mousePitch=q};Br.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},Br.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},Br.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},Br.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Vr=function(D,J,q,K){this._el=D,this._touchZoom=J,this._touchRotate=q,this._tapDragZoom=K,this._rotationDisabled=!1,this._enabled=!0};Vr.prototype.enable=function(D){this._touchZoom.enable(D),this._rotationDisabled||this._touchRotate.enable(D),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Vr.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Vr.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Vr.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Vr.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Vr.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var mi=function(Y){return Y.zoom||Y.drag||Y.pitch||Y.rotate},Ni=function(Y){function D(){Y.apply(this,arguments)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D}(i.Event);function Oi(Y){return Y.panDelta&&Y.panDelta.mag()||Y.zoomDelta||Y.bearingDelta||Y.pitchDelta}var Mi=function(D,J){this._map=D,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Tl(D),this._bearingSnap=J.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(J),i.bindAll(["handleEvent","handleWindowEvent"],this);var q=this._el;this._listeners=[[q,"touchstart",{passive:!0}],[q,"touchmove",{passive:!1}],[q,"touchend",void 0],[q,"touchcancel",void 0],[q,"mousedown",void 0],[q,"mousemove",void 0],[q,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[q,"mouseover",void 0],[q,"mouseout",void 0],[q,"dblclick",void 0],[q,"click",void 0],[q,"keydown",{capture:!1}],[q,"keyup",void 0],[q,"wheel",{passive:!1}],[q,"contextmenu",void 0],[i.window,"blur",void 0]];for(var K=0,de=this._listeners;Kwe?Math.min(2,mt):Math.max(.5,mt),hi=Math.pow(Ri,1-br),wi=ne.unproject(Bt.add(Rt.mult(br*hi)).mult(Nr));ne.setLocationAtPoint(ne.renderWorldCopies?wi.wrap():wi,kt)}de._fireMoveEvents(K)},function(br){de._afterEase(K,br)},q),this},D.prototype._prepareEase=function(q,K,de){de===void 0&&(de={}),this._moving=!0,!K&&!de.moving&&this.fire(new i.Event("movestart",q)),this._zooming&&!de.zooming&&this.fire(new i.Event("zoomstart",q)),this._rotating&&!de.rotating&&this.fire(new i.Event("rotatestart",q)),this._pitching&&!de.pitching&&this.fire(new i.Event("pitchstart",q))},D.prototype._fireMoveEvents=function(q){this.fire(new i.Event("move",q)),this._zooming&&this.fire(new i.Event("zoom",q)),this._rotating&&this.fire(new i.Event("rotate",q)),this._pitching&&this.fire(new i.Event("pitch",q))},D.prototype._afterEase=function(q,K){if(!(this._easeId&&K&&this._easeId===K)){delete this._easeId;var de=this._zooming,ne=this._rotating,we=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,de&&this.fire(new i.Event("zoomend",q)),ne&&this.fire(new i.Event("rotateend",q)),we&&this.fire(new i.Event("pitchend",q)),this.fire(new i.Event("moveend",q))}},D.prototype.flyTo=function(q,K){var de=this;if(!q.essential&&i.browser.prefersReducedMotion){var ne=i.pick(q,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ne,K)}this.stop(),q=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},q);var we=this.transform,Ue=this.getZoom(),ft=this.getBearing(),Zt=this.getPitch(),hr=this.getPadding(),qt="zoom"in q?i.clamp(+q.zoom,we.minZoom,we.maxZoom):Ue,Ve="bearing"in q?this._normalizeBearing(q.bearing,ft):ft,et="pitch"in q?+q.pitch:Zt,at="padding"in q?q.padding:we.padding,kt=we.zoomScale(qt-Ue),Ot=i.Point.convert(q.offset),It=we.centerPoint.add(Ot),Bt=we.pointLocation(It),Rt=i.LngLat.convert(q.center||Bt);this._normalizeCenter(Rt);var mt=we.project(Bt),Pt=we.project(Rt).sub(mt),ht=q.curve,cr=Math.max(we.width,we.height),br=cr/kt,Nr=Pt.mag();if("minZoom"in q){var Ri=i.clamp(Math.min(q.minZoom,Ue,qt),we.minZoom,we.maxZoom),hi=cr/we.zoomScale(Ri-Ue);ht=Math.sqrt(hi/Nr*2)}var wi=ht*ht;function gn(so){var Zo=(br*br-cr*cr+(so?-1:1)*wi*wi*Nr*Nr)/(2*(so?br:cr)*wi*Nr);return Math.log(Math.sqrt(Zo*Zo+1)-Zo)}function tn(so){return(Math.exp(so)-Math.exp(-so))/2}function Ci(so){return(Math.exp(so)+Math.exp(-so))/2}function qi(so){return tn(so)/Ci(so)}var Vi=gn(0),on=function(so){return Ci(Vi)/Ci(Vi+ht*so)},On=function(so){return cr*((Ci(Vi)*qi(Vi+ht*so)-tn(Vi))/wi)/Nr},Ja=(gn(1)-Vi)/ht;if(Math.abs(Nr)<1e-6||!isFinite(Ja)){if(Math.abs(cr-br)<1e-6)return this.easeTo(q,K);var co=brq.maxDuration&&(q.duration=0),this._zooming=!0,this._rotating=ft!==Ve,this._pitching=et!==Zt,this._padding=!we.isPaddingEqual(at),this._prepareEase(K,!1),this._ease(function(so){var Zo=so*Ja,ys=1/on(Zo);we.zoom=so===1?qt:Ue+we.scaleZoom(ys),de._rotating&&(we.bearing=i.number(ft,Ve,so)),de._pitching&&(we.pitch=i.number(Zt,et,so)),de._padding&&(we.interpolatePadding(hr,at,so),It=we.centerPoint.add(Ot));var su=so===1?Rt:we.unproject(mt.add(Pt.mult(On(Zo))).mult(ys));we.setLocationAtPoint(we.renderWorldCopies?su.wrap():su,It),de._fireMoveEvents(K)},function(){return de._afterEase(K)},q),this},D.prototype.isEasing=function(){return!!this._easeFrameId},D.prototype.stop=function(){return this._stop()},D.prototype._stop=function(q,K){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var de=this._onEaseEnd;delete this._onEaseEnd,de.call(this,K)}if(!q){var ne=this.handlers;ne&&ne.stop(!1)}return this},D.prototype._ease=function(q,K,de){de.animate===!1||de.duration===0?(q(1),K()):(this._easeStart=i.browser.now(),this._easeOptions=de,this._onEaseFrame=q,this._onEaseEnd=K,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},D.prototype._renderFrameCallback=function(){var q=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(q)),q<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},D.prototype._normalizeBearing=function(q,K){q=i.wrap(q,-180,180);var de=Math.abs(q-K);return Math.abs(q-360-K)180?-360:de<-180?360:0}},D}(i.Evented),Qi=function(D){D===void 0&&(D={}),this.options=D,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Qi.prototype.getDefaultPosition=function(){return"bottom-right"},Qi.prototype.onAdd=function(D){var J=this.options&&this.options.compact;return this._map=D,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=o.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=o.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),J&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),J===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Qi.prototype.onRemove=function(){o.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Qi.prototype._setElementTitle=function(D,J){var q=this._map._getUIString("AttributionControl."+J);D.title=q,D.setAttribute("aria-label",q)},Qi.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Qi.prototype._updateEditLink=function(){var D=this._editLink;D||(D=this._editLink=this._container.querySelector(".mapbox-improve-map"));var J=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(D){var q=J.reduce(function(K,de,ne){return de.value&&(K+=de.key+"="+de.value+(ne=0)return!1;return!0});var we=D.join(" | ");we!==this._attribHTML&&(this._attribHTML=we,D.length?(this._innerContainer.innerHTML=we,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Qi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var ji=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};ji.prototype.onAdd=function(D){this._map=D,this._container=o.create("div","mapboxgl-ctrl");var J=o.create("a","mapboxgl-ctrl-logo");return J.target="_blank",J.rel="noopener nofollow",J.href="https://www.mapbox.com/",J.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),J.setAttribute("rel","noopener nofollow"),this._container.appendChild(J),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},ji.prototype.onRemove=function(){o.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},ji.prototype.getDefaultPosition=function(){return"bottom-left"},ji.prototype._updateLogo=function(D){(!D||D.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},ji.prototype._logoRequired=function(){if(this._map.style){var D=this._map.style.sourceCaches;for(var J in D){var q=D[J].getSource();if(q.mapbox_logo)return!0}return!1}},ji.prototype._updateCompact=function(){var D=this._container.children;if(D.length){var J=D[0];this._map.getCanvasContainer().offsetWidth<250?J.classList.add("mapboxgl-compact"):J.classList.remove("mapboxgl-compact")}};var si=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};si.prototype.add=function(D){var J=++this._id,q=this._queue;return q.push({callback:D,id:J,cancelled:!1}),J},si.prototype.remove=function(D){for(var J=this._currentlyRunning,q=J?this._queue.concat(J):this._queue,K=0,de=q;Kq.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(q.minPitch!=null&&q.maxPitch!=null&&q.minPitch>q.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(q.minPitch!=null&&q.minPitchqn)throw new Error("maxPitch must be less than or equal to "+qn);var de=new wo(q.minZoom,q.maxZoom,q.minPitch,q.maxPitch,q.renderWorldCopies);if(Y.call(this,de,q),this._interactive=q.interactive,this._maxTileCacheSize=q.maxTileCacheSize,this._failIfMajorPerformanceCaveat=q.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=q.preserveDrawingBuffer,this._antialias=q.antialias,this._trackResize=q.trackResize,this._bearingSnap=q.bearingSnap,this._refreshExpiredTiles=q.refreshExpiredTiles,this._fadeDuration=q.fadeDuration,this._crossSourceCollisions=q.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=q.collectResourceTiming,this._renderTaskQueue=new si,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},Mr,q.locale),this._clickTolerance=q.clickTolerance,this._requestManager=new i.RequestManager(q.transformRequest,q.accessToken),typeof q.container=="string"){if(this._container=i.window.document.getElementById(q.container),!this._container)throw new Error("Container '"+q.container+"' not found.")}else if(q.container instanceof xi)this._container=q.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(q.maxBounds&&this.setMaxBounds(q.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return K._update(!1)}),this.on("moveend",function(){return K._update(!1)}),this.on("zoom",function(){return K._update(!0)}),typeof i.window!="undefined"&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Mi(this,q);var ne=typeof q.hash=="string"&&q.hash||void 0;this._hash=q.hash&&new Nl(ne).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:q.center,zoom:q.zoom,bearing:q.bearing,pitch:q.pitch}),q.bounds&&(this.resize(),this.fitBounds(q.bounds,i.extend({},q.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=q.localIdeographFontFamily,q.style&&this.setStyle(q.style,{localIdeographFontFamily:q.localIdeographFontFamily}),q.attributionControl&&this.addControl(new Qi({customAttribution:q.customAttribution})),this.addControl(new ji,q.logoPosition),this.on("style.load",function(){K.transform.unmodified&&K.jumpTo(K.style.stylesheet)}),this.on("data",function(we){K._update(we.dataType==="style"),K.fire(new i.Event(we.dataType+"data",we))}),this.on("dataloading",function(we){K.fire(new i.Event(we.dataType+"dataloading",we))})}Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D;var J={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return D.prototype._getMapId=function(){return this._mapId},D.prototype.addControl=function(K,de){if(de===void 0&&(K.getDefaultPosition?de=K.getDefaultPosition():de="top-right"),!K||!K.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var ne=K.onAdd(this);this._controls.push(K);var we=this._controlPositions[de];return de.indexOf("bottom")!==-1?we.insertBefore(ne,we.firstChild):we.appendChild(ne),this},D.prototype.removeControl=function(K){if(!K||!K.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var de=this._controls.indexOf(K);return de>-1&&this._controls.splice(de,1),K.onRemove(this),this},D.prototype.hasControl=function(K){return this._controls.indexOf(K)>-1},D.prototype.resize=function(K){var de=this._containerDimensions(),ne=de[0],we=de[1];this._resizeCanvas(ne,we),this.transform.resize(ne,we),this.painter.resize(ne,we);var Ue=!this._moving;return Ue&&(this.stop(),this.fire(new i.Event("movestart",K)).fire(new i.Event("move",K))),this.fire(new i.Event("resize",K)),Ue&&this.fire(new i.Event("moveend",K)),this},D.prototype.getBounds=function(){return this.transform.getBounds()},D.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},D.prototype.setMaxBounds=function(K){return this.transform.setMaxBounds(i.LngLatBounds.convert(K)),this._update()},D.prototype.setMinZoom=function(K){if(K=K==null?ci:K,K>=ci&&K<=this.transform.maxZoom)return this.transform.minZoom=K,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=K,this._update(),this.getZoom()>K&&this.setZoom(K),this;throw new Error("maxZoom must be greater than the current minZoom")},D.prototype.getMaxZoom=function(){return this.transform.maxZoom},D.prototype.setMinPitch=function(K){if(K=K==null?Xi:K,K=Xi&&K<=this.transform.maxPitch)return this.transform.minPitch=K,this._update(),this.getPitch()qn)throw new Error("maxPitch must be less than or equal to "+qn);if(K>=this.transform.minPitch)return this.transform.maxPitch=K,this._update(),this.getPitch()>K&&this.setPitch(K),this;throw new Error("maxPitch must be greater than the current minPitch")},D.prototype.getMaxPitch=function(){return this.transform.maxPitch},D.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},D.prototype.setRenderWorldCopies=function(K){return this.transform.renderWorldCopies=K,this._update()},D.prototype.project=function(K){return this.transform.locationPoint(i.LngLat.convert(K))},D.prototype.unproject=function(K){return this.transform.pointLocation(i.Point.convert(K))},D.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},D.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},D.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},D.prototype._createDelegatedListener=function(K,de,ne){var we=this,Ue;if(K==="mouseenter"||K==="mouseover"){var ft=!1,Zt=function(kt){var Ot=we.getLayer(de)?we.queryRenderedFeatures(kt.point,{layers:[de]}):[];Ot.length?ft||(ft=!0,ne.call(we,new se(K,we,kt.originalEvent,{features:Ot}))):ft=!1},hr=function(){ft=!1};return{layer:de,listener:ne,delegates:{mousemove:Zt,mouseout:hr}}}else if(K==="mouseleave"||K==="mouseout"){var qt=!1,Ve=function(kt){var Ot=we.getLayer(de)?we.queryRenderedFeatures(kt.point,{layers:[de]}):[];Ot.length?qt=!0:qt&&(qt=!1,ne.call(we,new se(K,we,kt.originalEvent)))},et=function(kt){qt&&(qt=!1,ne.call(we,new se(K,we,kt.originalEvent)))};return{layer:de,listener:ne,delegates:{mousemove:Ve,mouseout:et}}}else{var at=function(kt){var Ot=we.getLayer(de)?we.queryRenderedFeatures(kt.point,{layers:[de]}):[];Ot.length&&(kt.features=Ot,ne.call(we,kt),delete kt.features)};return{layer:de,listener:ne,delegates:(Ue={},Ue[K]=at,Ue)}}},D.prototype.on=function(K,de,ne){if(ne===void 0)return Y.prototype.on.call(this,K,de);var we=this._createDelegatedListener(K,de,ne);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[K]=this._delegatedListeners[K]||[],this._delegatedListeners[K].push(we);for(var Ue in we.delegates)this.on(Ue,we.delegates[Ue]);return this},D.prototype.once=function(K,de,ne){if(ne===void 0)return Y.prototype.once.call(this,K,de);var we=this._createDelegatedListener(K,de,ne);for(var Ue in we.delegates)this.once(Ue,we.delegates[Ue]);return this},D.prototype.off=function(K,de,ne){var we=this;if(ne===void 0)return Y.prototype.off.call(this,K,de);var Ue=function(ft){for(var Zt=ft[K],hr=0;hr180;){var ne=J.locationPoint(Y);if(ne.x>=0&&ne.y>=0&&ne.x<=J.width&&ne.y<=J.height)break;Y.lng>J.center.lng?Y.lng-=360:Y.lng+=360}return Y}var Un={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function na(Y,D,J){var q=Y.classList;for(var K in Un)q.remove("mapboxgl-"+J+"-anchor-"+K);q.add("mapboxgl-"+J+"-anchor-"+D)}var Yi=function(Y){function D(J,q){if(Y.call(this),(J instanceof i.window.HTMLElement||q)&&(J=i.extend({element:J},q)),i.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=J&&J.anchor||"center",this._color=J&&J.color||"#3FB1CE",this._scale=J&&J.scale||1,this._draggable=J&&J.draggable||!1,this._clickTolerance=J&&J.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=J&&J.rotation||0,this._rotationAlignment=J&&J.rotationAlignment||"auto",this._pitchAlignment=J&&J.pitchAlignment&&J.pitchAlignment!=="auto"?J.pitchAlignment:this._rotationAlignment,!J||!J.element){this._defaultMarker=!0,this._element=o.create("div"),this._element.setAttribute("aria-label","Map marker");var K=o.createNS("http://www.w3.org/2000/svg","svg"),de=41,ne=27;K.setAttributeNS(null,"display","block"),K.setAttributeNS(null,"height",de+"px"),K.setAttributeNS(null,"width",ne+"px"),K.setAttributeNS(null,"viewBox","0 0 "+ne+" "+de);var we=o.createNS("http://www.w3.org/2000/svg","g");we.setAttributeNS(null,"stroke","none"),we.setAttributeNS(null,"stroke-width","1"),we.setAttributeNS(null,"fill","none"),we.setAttributeNS(null,"fill-rule","evenodd");var Ue=o.createNS("http://www.w3.org/2000/svg","g");Ue.setAttributeNS(null,"fill-rule","nonzero");var ft=o.createNS("http://www.w3.org/2000/svg","g");ft.setAttributeNS(null,"transform","translate(3.0, 29.0)"),ft.setAttributeNS(null,"fill","#000000");for(var Zt=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],hr=0,qt=Zt;hr=K}this._isDragging&&(this._pos=q.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},D.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},D.prototype._addDragHandler=function(q){this._element.contains(q.originalEvent.target)&&(q.preventDefault(),this._positionDelta=q.point.sub(this._pos).add(this._offset),this._pointerdownPos=q.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},D.prototype.setDraggable=function(q){return this._draggable=!!q,this._map&&(q?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},D.prototype.isDraggable=function(){return this._draggable},D.prototype.setRotation=function(q){return this._rotation=q||0,this._update(),this},D.prototype.getRotation=function(){return this._rotation},D.prototype.setRotationAlignment=function(q){return this._rotationAlignment=q||"auto",this._update(),this},D.prototype.getRotationAlignment=function(){return this._rotationAlignment},D.prototype.setPitchAlignment=function(q){return this._pitchAlignment=q&&q!=="auto"?q:this._rotationAlignment,this._update(),this},D.prototype.getPitchAlignment=function(){return this._pitchAlignment},D}(i.Evented),Ln={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},ra;function oa(Y){ra!==void 0?Y(ra):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(D){ra=D.state!=="denied",Y(ra)}):(ra=!!i.window.navigator.geolocation,Y(ra))}var wa=0,ns=!1,Ys=function(Y){function D(J){Y.call(this),this.options=i.extend({},Ln,J),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.onAdd=function(q){return this._map=q,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),oa(this._setupUI),this._container},D.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),o.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,wa=0,ns=!1},D.prototype._isOutOfMapMaxBounds=function(q){var K=this._map.getMaxBounds(),de=q.coords;return K&&(de.longitudeK.getEast()||de.latitudeK.getNorth())},D.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},D.prototype._onSuccess=function(q){if(this._map){if(this._isOutOfMapMaxBounds(q)){this._setErrorState(),this.fire(new i.Event("outofmaxbounds",q)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=q,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(q),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(q),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",q)),this._finish()}},D.prototype._updateCamera=function(q){var K=new i.LngLat(q.coords.longitude,q.coords.latitude),de=q.coords.accuracy,ne=this._map.getBearing(),we=i.extend({bearing:ne},this.options.fitBoundsOptions);this._map.fitBounds(K.toBounds(de),we,{geolocateSource:!0})},D.prototype._updateMarker=function(q){if(q){var K=new i.LngLat(q.coords.longitude,q.coords.latitude);this._accuracyCircleMarker.setLngLat(K).addTo(this._map),this._userLocationDotMarker.setLngLat(K).addTo(this._map),this._accuracy=q.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},D.prototype._updateCircleRadius=function(){var q=this._map._container.clientHeight/2,K=this._map.unproject([0,q]),de=this._map.unproject([1,q]),ne=K.distanceTo(de),we=Math.ceil(2*this._accuracy/ne);this._circleElement.style.width=we+"px",this._circleElement.style.height=we+"px"},D.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},D.prototype._onError=function(q){if(this._map){if(this.options.trackUserLocation)if(q.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var K=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=K,this._geolocateButton.setAttribute("aria-label",K),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(q.code===3&&ns)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",q)),this._finish()}},D.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},D.prototype._setupUI=function(q){var K=this;if(this._container.addEventListener("contextmenu",function(we){return we.preventDefault()}),this._geolocateButton=o.create("button","mapboxgl-ctrl-geolocate",this._container),o.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",q===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var de=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=de,this._geolocateButton.setAttribute("aria-label",de)}else{var ne=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=ne,this._geolocateButton.setAttribute("aria-label",ne)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=o.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Yi(this._dotElement),this._circleElement=o.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Yi({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(we){var Ue=we.originalEvent&&we.originalEvent.type==="resize";!we.geolocateSource&&K._watchState==="ACTIVE_LOCK"&&!Ue&&(K._watchState="BACKGROUND",K._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),K._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),K.fire(new i.Event("trackuserlocationend")))})},D.prototype.trigger=function(){if(!this._setup)return i.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":wa--,ns=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),wa++;var q;wa>1?(q={maximumAge:6e5,timeout:0},ns=!0):(q=this.options.positionOptions,ns=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,q)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},D.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},D}(i.Evented),Va={maxWidth:100,unit:"metric"},Ml=function(D){this.options=i.extend({},Va,D),i.bindAll(["_onMove","setUnit"],this)};Ml.prototype.getDefaultPosition=function(){return"bottom-left"},Ml.prototype._onMove=function(){zo(this._map,this._container,this.options)},Ml.prototype.onAdd=function(D){return this._map=D,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",D.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Ml.prototype.onRemove=function(){o.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Ml.prototype.setUnit=function(D){this.options.unit=D,zo(this._map,this._container,this.options)};function zo(Y,D,J){var q=J&&J.maxWidth||100,K=Y._container.clientHeight/2,de=Y.unproject([0,K]),ne=Y.unproject([q,K]),we=de.distanceTo(ne);if(J&&J.unit==="imperial"){var Ue=3.2808*we;if(Ue>5280){var ft=Ue/5280;el(D,q,ft,Y._getUIString("ScaleControl.Miles"))}else el(D,q,Ue,Y._getUIString("ScaleControl.Feet"))}else if(J&&J.unit==="nautical"){var Zt=we/1852;el(D,q,Zt,Y._getUIString("ScaleControl.NauticalMiles"))}else we>=1e3?el(D,q,we/1e3,Y._getUIString("ScaleControl.Kilometers")):el(D,q,we,Y._getUIString("ScaleControl.Meters"))}function el(Y,D,J,q){var K=Ul(J),de=K/J;Y.style.width=D*de+"px",Y.innerHTML=K+" "+q}function ol(Y){var D=Math.pow(10,Math.ceil(-Math.log(Y)/Math.LN10));return Math.round(Y*D)/D}function Ul(Y){var D=Math.pow(10,(""+Math.floor(Y)).length-1),J=Y/D;return J=J>=10?10:J>=5?5:J>=3?3:J>=2?2:J>=1?1:ol(J),D*J}var ls=function(D){this._fullscreen=!1,D&&D.container&&(D.container instanceof i.window.HTMLElement?this._container=D.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};ls.prototype.onAdd=function(D){return this._map=D,this._container||(this._container=this._map.getContainer()),this._controlContainer=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},ls.prototype.onRemove=function(){o.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},ls.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},ls.prototype._setupUI=function(){var D=this._fullscreenButton=o.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);o.create("span","mapboxgl-ctrl-icon",D).setAttribute("aria-hidden",!0),D.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},ls.prototype._updateTitle=function(){var D=this._getTitle();this._fullscreenButton.setAttribute("aria-label",D),this._fullscreenButton.title=D},ls.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},ls.prototype._isFullscreen=function(){return this._fullscreen},ls.prototype._changeIcon=function(){var D=i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement;D===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},ls.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Gs={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Ks=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Ta=function(Y){function D(J){Y.call(this),this.options=i.extend(Object.create(Gs),J),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.addTo=function(q){return this._map&&this.remove(),this._map=q,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},D.prototype.isOpen=function(){return!!this._map},D.prototype.remove=function(){return this._content&&o.remove(this._content),this._container&&(o.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new i.Event("close")),this},D.prototype.getLngLat=function(){return this._lngLat},D.prototype.setLngLat=function(q){return this._lngLat=i.LngLat.convert(q),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},D.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},D.prototype.getElement=function(){return this._container},D.prototype.setText=function(q){return this.setDOMContent(i.window.document.createTextNode(q))},D.prototype.setHTML=function(q){var K=i.window.document.createDocumentFragment(),de=i.window.document.createElement("body"),ne;for(de.innerHTML=q;ne=de.firstChild,!!ne;)K.appendChild(ne);return this.setDOMContent(K)},D.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},D.prototype.setMaxWidth=function(q){return this.options.maxWidth=q,this._update(),this},D.prototype.setDOMContent=function(q){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=o.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(q),this._createCloseButton(),this._update(),this._focusFirstElement(),this},D.prototype.addClassName=function(q){this._container&&this._container.classList.add(q)},D.prototype.removeClassName=function(q){this._container&&this._container.classList.remove(q)},D.prototype.setOffset=function(q){return this.options.offset=q,this._update(),this},D.prototype.toggleClassName=function(q){if(this._container)return this._container.classList.toggle(q)},D.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=o.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},D.prototype._onMouseUp=function(q){this._update(q.point)},D.prototype._onMouseMove=function(q){this._update(q.point)},D.prototype._onDrag=function(q){this._update(q.point)},D.prototype._update=function(q){var K=this,de=this._lngLat||this._trackPointer;if(!(!this._map||!de||!this._content)&&(this._container||(this._container=o.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=o.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Ve){return K._container.classList.add(Ve)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=vn(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!q))){var ne=this._pos=this._trackPointer&&q?q:this._map.project(this._lngLat),we=this.options.anchor,Ue=sl(this.options.offset);if(!we){var ft=this._container.offsetWidth,Zt=this._container.offsetHeight,hr;ne.y+Ue.bottom.ythis._map.transform.height-Zt?hr=["bottom"]:hr=[],ne.xthis._map.transform.width-ft/2&&hr.push("right"),hr.length===0?we="bottom":we=hr.join("-")}var qt=ne.add(Ue[we]).round();o.setTransform(this._container,Un[we]+" translate("+qt.x+"px,"+qt.y+"px)"),na(this._container,we,"popup")}},D.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var q=this._container.querySelector(Ks);q&&q.focus()}},D.prototype._onClose=function(){this.remove()},D}(i.Evented);function sl(Y){if(Y)if(typeof Y=="number"){var D=Math.round(Math.sqrt(.5*Math.pow(Y,2)));return{center:new i.Point(0,0),top:new i.Point(0,Y),"top-left":new i.Point(D,D),"top-right":new i.Point(-D,D),bottom:new i.Point(0,-Y),"bottom-left":new i.Point(D,-D),"bottom-right":new i.Point(-D,-D),left:new i.Point(Y,0),right:new i.Point(-Y,0)}}else if(Y instanceof i.Point||Array.isArray(Y)){var J=i.Point.convert(Y);return{center:J,top:J,"top-left":J,"top-right":J,bottom:J,"bottom-left":J,"bottom-right":J,left:J,right:J}}else return{center:i.Point.convert(Y.center||[0,0]),top:i.Point.convert(Y.top||[0,0]),"top-left":i.Point.convert(Y["top-left"]||[0,0]),"top-right":i.Point.convert(Y["top-right"]||[0,0]),bottom:i.Point.convert(Y.bottom||[0,0]),"bottom-left":i.Point.convert(Y["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(Y["bottom-right"]||[0,0]),left:i.Point.convert(Y.left||[0,0]),right:i.Point.convert(Y.right||[0,0])};else return sl(new i.Point(0,0))}var io={version:i.version,supported:a,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:li,NavigationControl:Ui,GeolocateControl:Ys,AttributionControl:Qi,ScaleControl:Ml,FullscreenControl:ls,Popup:Ta,Marker:Yi,Style:yu,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:la,clearPrewarmedResources:ma,get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(Y){i.config.ACCESS_TOKEN=Y},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(Y){i.config.API_URL=Y},get workerCount(){return cn.workerCount},set workerCount(Y){cn.workerCount=Y},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(Y){i.config.MAX_PARALLEL_IMAGE_REQUESTS=Y},clearStorage:function(D){i.clearTileCache(D)},workerUrl:""};return io}),r})});var WVe=ye((__r,jVe)=>{"use strict";var tw=Dr(),WHt=iu().sanitizeHTML,XHt=eJ(),VVe=c1();function GVe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=VVe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var ig=GVe.prototype;ig.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=Zz(t)};ig.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};ig.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};ig.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};ig.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};ig.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapboxLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};ig.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!Zz(e)){var r=ZHt(e);t.addSource(this.idSource,r)}};ig.findFollowingMapboxLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function HVe(e){var t={},r={};switch(e.type){case"circle":tw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":tw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":tw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=XHt(n.textposition,n.iconsize);tw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),tw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":tw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function ZHt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=WHt(e.sourceattribution)),n}jVe.exports=function(t,r,n){var i=new GVe(t,r);return i.update(n),i}});var tGe=ye((x_r,eGe)=>{"use strict";var sJ=oJ(),lJ=Dr(),KVe=nx(),XVe=qa(),YHt=ho(),KHt=gv(),Yz=vf(),JVe=Sg(),JHt=JVe.drawMode,$Ht=JVe.selectMode,QHt=zf().prepSelect,ejt=zf().clearOutline,tjt=zf().clearSelectionsCache,rjt=zf().selectOnClick,_x=c1(),ijt=WVe();function $Ve(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var qh=$Ve.prototype;qh.plot=function(e,t,r){var n=this,i=t[n.id];n.map&&i.accesstoken!==n.accessToken&&(n.map.remove(),n.map=null,n.styleObj=null,n.traceHash={},n.layerList=[]);var a;n.map?a=new Promise(function(o,s){n.updateMap(e,t,o,s)}):a=new Promise(function(o,s){n.createMap(e,t,o,s)}),r.push(a)};qh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=QVe(a.style,t);i.accessToken=a.accesstoken;var s=a.bounds,l=s?[[s.west,s.south],[s.east,s.north]]:null,u=i.map=new sJ.Map({container:i.div,style:o.style,center:uJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:l,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new sJ.AttributionControl({compact:!0}));u._canvas.style.left="0px",u._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var c=[];c.push(new Promise(function(f){u.once("load",f)})),c=c.concat(KVe.fetchTraceGeoData(e)),Promise.all(c).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};qh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],l=QVe(o.style,t);JSON.stringify(i.styleObj)!==JSON.stringify(l)&&(i.styleObj=l,a.setStyle(l.style),i.traceHash={},s.push(new Promise(function(u){a.once("styledata",u)}))),s=s.concat(KVe.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};qh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&rjt(l.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&Yz.click(n,l.originalEvent)}}};qh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(l){var u=t.map.unproject(l);return[u.lng,u.lat]}var a=e.dragmode,o;o=function(l,u){if(u.isRect){var c=l.range={};c[t.id]=[i([u.xmin,u.ymin]),i([u.xmax,u.ymax])]}else{var f=l.lassoPoints={};f[t.id]=u.map(i)}};var s=t.dragOptions;t.dragOptions=lJ.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),$Ht(a)||JHt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){QHt(l,u,c,t.dragOptions,a)},KHt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};qh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};qh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var cJ=Dr(),njt=k_(),ajt=Yd(),rGe=qC();iGe.exports=function(t,r,n){njt(t,r,n,{type:"mapbox",attributes:rGe,handleDefaults:ojt,partition:"y",accessToken:r._mapboxAccessToken})};function ojt(e,t,r,n){r("accesstoken",n.accessToken),r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var i=r("bounds.west"),a=r("bounds.east"),o=r("bounds.south"),s=r("bounds.north");(i===void 0||a===void 0||o===void 0||s===void 0)&&delete t.bounds,ajt(e,t,{name:"layers",handleItemDefaults:sjt}),t._input=e}function sjt(e,t){function r(l,u){return cJ.coerce(e,t,rGe.layers,l,u)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",cJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),cJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var Kz=ye(Bp=>{"use strict";var aGe=oJ(),tm=Dr(),fJ=tm.strTranslate,ljt=tm.strScale,ujt=Id().getSubplotCalcData,cjt=Wp(),fjt=Oa(),oGe=So(),hjt=iu(),djt=tGe(),xx="mapbox",Qm=Bp.constants=c1();Bp.name=xx;Bp.attr="subplot";Bp.idRoot=xx;Bp.idRegex=Bp.attrRegex=tm.counterRegex(xx);var vjt=["mapbox subplots and traces are deprecated!","Please consider switching to `map` subplots and traces.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");Bp.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}};Bp.layoutAttributes=qC();Bp.supplyLayoutDefaults=nGe();var sGe=!0;Bp.plot=function(t){sGe&&(sGe=!1,tm.warn(vjt));var r=t._fullLayout,n=t.calcdata,i=r._subplots[xx];if(aGe.version!==Qm.requiredVersion)throw new Error(Qm.wrongVersionErrorMsg);var a=pjt(t,i);aGe.accessToken=a;for(var o=0;op/2){var C=d.split("|").join("
");_.text(C).attr("data-unformatted",C).call(hjt.convertToTspans,e),b=oGe.bBox(_.node())}_.attr("transform",fJ(-3,-b.height+8)),v.insert("rect",".static-attribution").attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:"rgba(255, 255, 255, 0.75)"});var E=1;b.width+6>p&&(E=p/(b.width+6));var A=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];v.attr("transform",fJ(A[0],A[1])+ljt(E))}};function pjt(e,t){var r=e._fullLayout,n=e._context;if(n.mapboxAccessToken==="")return"";for(var i=[],a=[],o=!1,s=!1,l=0;l1&&tm.warn(Qm.multipleTokensErrorMsg),i[0]):(a.length&&tm.log(["Listed mapbox access token(s)",a.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function lGe(e){return typeof e=="string"&&(Qm.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}Bp.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[xx],n=0;n{"use strict";var T_r=["*scattermapbox* trace is deprecated!","Please consider switching to the *scattermap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");uGe.exports={attributes:Vz(),supplyDefaults:bVe(),colorbar:$d(),formatLabels:QK(),calc:cF(),plot:FVe(),hoverPoints:Xz().hoverPoints,eventData:BVe(),selectPoints:UVe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:Kz(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var hGe=ye((S_r,fGe)=>{"use strict";fGe.exports=cGe()});var hJ=ye((M_r,dGe)=>{"use strict";var f1=JA(),gjt=Tu(),mjt=Qo().hovertemplateAttrs,yjt=Vl(),bx=Ao().extendFlat;dGe.exports=bx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:bx({},f1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:f1.text,hovertext:f1.hovertext,marker:{line:{color:bx({},f1.marker.line.color,{editType:"plot"}),width:bx({},f1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:bx({},f1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:bx({},f1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:bx({},f1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:f1.hoverinfo,hovertemplate:mjt({},{keys:["properties"]}),showlegend:bx({},yjt.showlegend,{dflt:!1})},gjt("",{cLetter:"z",editTypeOverride:"calc"}))});var pGe=ye((E_r,vGe)=>{"use strict";var VC=Dr(),_jt=Jh(),xjt=hJ();vGe.exports=function(t,r,n,i){function a(c,f){return VC.coerce(t,r,xjt,c,f)}var o=a("locations"),s=a("z"),l=a("geojson");if(!VC.isArrayOrTypedArray(o)||!o.length||!VC.isArrayOrTypedArray(s)||!s.length||!(typeof l=="string"&&l!==""||VC.isPlainObject(l))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate");var u=a("marker.line.width");u&&a("marker.line.color"),a("marker.opacity"),_jt(t,r,i,a,{prefix:"",cLetter:"z"}),VC.coerceSelectionMarkerOpacity(r,a)}});var dJ=ye((C_r,yGe)=>{"use strict";var bjt=Eo(),h1=Dr(),wjt=tc(),Tjt=So(),Ajt=rx().makeBlank,gGe=nx();function Sjt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:Ajt()};if(!r)return a;var o=gGe.extractTraceFeature(e);if(!o)return a;var s=wjt.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;h1.isArrayOrTypedArray(l.opacity)&&(c=function(C){var E=C.mo;return bjt(E)?+h1.constrain(E,0,1):0});var f;h1.isArrayOrTypedArray(u.color)&&(f=function(C){return C.mlc});var h;h1.isArrayOrTypedArray(u.width)&&(h=function(C){return C.mlw});for(var d=0;d{"use strict";var xGe=dJ().convert,Mjt=dJ().convertOnSelect,_Ge=c1().traceLayerPrefix;function bGe(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",_Ge+t+"-fill"],["line",_Ge+t+"-line"]],this.below=null}var T5=bGe.prototype;T5.update=function(e){this._update(xGe(e)),e[0].trace._glTrace=this};T5.updateOnSelect=function(e){this._update(Mjt(e))};T5._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};T5.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};wGe.exports=function(t,r){var n=r[0].trace,i=new bGe(t,n.uid),a=i.sourceId,o=xGe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var SGe=ye((P_r,AGe)=>{"use strict";var L_r=["*choroplethmapbox* trace is deprecated!","Please consider switching to the *choroplethmap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");AGe.exports={attributes:hJ(),supplyDefaults:pGe(),colorbar:M_(),calc:IF(),plot:TGe(),hoverPoints:DF(),eventData:FF(),selectPoints:zF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";MGe.exports=SGe()});var pJ=ye((R_r,kGe)=>{"use strict";var Ejt=Tu(),Cjt=Qo().hovertemplateAttrs,CGe=Vl(),Jz=Vz(),vJ=Ao().extendFlat;kGe.exports=vJ({lon:Jz.lon,lat:Jz.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:Jz.text,hovertext:Jz.hovertext,hoverinfo:vJ({},CGe.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:Cjt(),showlegend:vJ({},CGe.showlegend,{dflt:!1})},Ejt("",{cLetter:"z",editTypeOverride:"calc"}))});var PGe=ye((D_r,LGe)=>{"use strict";var kjt=Dr(),Ljt=Jh(),Pjt=pJ();LGe.exports=function(t,r,n,i){function a(u,c){return kjt.coerce(t,r,Pjt,u,c)}var o=a("lon")||[],s=a("lat")||[],l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),Ljt(t,r,i,a,{prefix:"",cLetter:"z"})}});var DGe=ye((F_r,RGe)=>{"use strict";var gJ=Eo(),Ijt=Dr().isArrayOrTypedArray,mJ=hs().BADNUM,Rjt=Fv(),IGe=Dr()._;RGe.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=Ijt(a)&&a.length,s=0;s{"use strict";var Djt=Eo(),yJ=Dr(),FGe=Ca(),zGe=tc(),OGe=hs().BADNUM,Fjt=rx().makeBlank;qGe.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:Fjt()};if(!n)return a;var o=[],s,l=r.z,u=r.radius,c=yJ.isArrayOrTypedArray(l)&&l.length,f=yJ.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:v})}}var b=zGe.extractOpts(r),p=b.reversescale?zGe.flipScale(b.colorscale):b.colorscale,C=p[0][1],E=FGe.opacity(C)<1?C:FGe.addOpacity(C,0),A=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var NGe=BGe(),zjt=c1().traceLayerPrefix;function UGe(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",zjt+t+"-heatmap"]],this.below=null}var $z=UGe.prototype;$z.update=function(e){var t=this.subplot,r=this.layerList,n=NGe(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};$z.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};VGe.exports=function(t,r){var n=r[0].trace,i=new UGe(t,n.uid),a=i.sourceId,o=NGe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var jGe=ye((q_r,HGe)=>{"use strict";var Ojt=ho(),qjt=Xz().hoverPoints,Bjt=Xz().getExtraText;HGe.exports=function(t,r,n){var i=qjt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,l=o[a.index];if(delete a.color,"z"in l){var u=a.subplot.mockAxis;a.z=l.z,a.zLabel=Ojt.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=Bjt(s,l,o[0].t.labels),[a]}}});var XGe=ye((B_r,WGe)=>{"use strict";WGe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var YGe=ye((U_r,ZGe)=>{"use strict";var N_r=["*densitymapbox* trace is deprecated!","Please consider switching to the *densitymap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");ZGe.exports={attributes:pJ(),supplyDefaults:PGe(),colorbar:M_(),formatLabels:QK(),calc:DGe(),plot:GGe(),hoverPoints:jGe(),eventData:XGe(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";KGe.exports=YGe()});var QGe=ye((G_r,$Ge)=>{$Ge.exports={version:8,name:"orto",metadata:{"maputnik:renderer":"mlgljs"},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}},{id:"waterway_tunnel",type:"line",source:"openmaptiles","source-layer":"waterway",minzoom:14,filter:["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]},"line-dasharray":[2,4]}},{id:"waterway-other",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["!in","class","canal","river","stream"],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,2]]}}},{id:"waterway-stream-canal",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["in","class","canal","stream"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]}}},{id:"waterway-river",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["==","class","river"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.2,stops:[[10,.8],[20,4]]},"line-opacity":.5}},{id:"water-offset",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",maxzoom:8,filter:["==","$type","Polygon"],layout:{visibility:"visible"},paint:{"fill-opacity":0,"fill-color":"#a0c8f0","fill-translate":{base:1,stops:[[6,[2,0]],[8,[0,0]]]}}},{id:"water",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0}},{id:"water-pattern",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-translate":[0,2.5],"fill-pattern":"wave","fill-opacity":1}},{id:"landcover-ice-shelf",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"landcover",filter:["==","subclass","ice_shelf"],layout:{visibility:"visible"},paint:{"fill-color":"#fff","fill-opacity":{base:1,stops:[[0,.9],[10,.3]]}}},{id:"tunnel-service-track-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[15,1],[16,4],[20,11]]}}},{id:"tunnel-minor-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,1]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"tunnel-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"tunnel-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.7}},{id:"tunnel-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"tunnel-path",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"tunnel-service-track",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-width":{base:1.2,stops:[[15.5,0],[16,2],[20,7.5]]}}},{id:"tunnel-minor",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor_road"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-opacity":1,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"tunnel-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,10]]}}},{id:"tunnel-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-motorway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#ffdaa6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-railway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]},"line-dasharray":[2,2]}},{id:"ferry",type:"line",source:"openmaptiles","source-layer":"transportation",filter:["all",["in","class","ferry"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(108, 159, 182, 1)","line-width":1.1,"line-dasharray":[2,2]}},{id:"aeroway-taxiway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","taxiway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,2],[17,12]]},"line-opacity":1}},{id:"aeroway-runway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","runway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,5],[17,55]]},"line-opacity":1}},{id:"aeroway-taxiway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","taxiway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,1],[17,10]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"aeroway-runway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","runway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,4],[17,50]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"highway-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-minor-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,0]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"highway-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":.5,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"highway-primary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[7,0],[8,.6]]},"line-width":{base:1.2,stops:[[7,0],[8,.6],[9,1.5],[20,22]]}}},{id:"highway-trunk-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[5,0],[6,.5]]},"line-width":{base:1.2,stops:[[5,0],[6,.6],[7,1.5],[20,22]]}}},{id:"highway-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:4,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[4,0],[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":{stops:[[4,0],[5,.5]]}}},{id:"highway-path",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"highway-motorway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-minor",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fff","line-opacity":.5,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"highway-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[8,.5],[20,13]]},"line-opacity":.5}},{id:"highway-primary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[8.5,0],[9,.5],[20,18]]},"line-opacity":0}},{id:"highway-trunk",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"highway-motorway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"railway-transit",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-transit-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway-service",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-service-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"railway-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"bridge-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,28]]}}},{id:"bridge-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"hsl(28, 76%, 67%)","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,26]]}}},{id:"bridge-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"bridge-path-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#f8f4f0","line-width":{base:1.2,stops:[[15,1.2],[20,18]]}}},{id:"bridge-path",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#cba","line-width":{base:1.2,stops:[[15,1.2],[20,4]]},"line-dasharray":[1.5,.75]}},{id:"bridge-motorway-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,20]]}}},{id:"bridge-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]}}},{id:"bridge-motorway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"bridge-railway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"bridge-railway-hatching",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"cablecar",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,1],[19,2.5]]}}},{id:"cablecar-dash",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,3],[19,5.5]]},"line-dasharray":[2,3]}},{id:"boundary-land-level-4",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],layout:{"line-join":"round"},paint:{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{base:1.4,stops:[[4,.4],[5,1],[12,3]]},"line-opacity":.6}},{id:"boundary-land-level-2",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 66%)","line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,2]]}}},{id:"boundary-land-disputed",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["!=","maritime",1],["==","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,8]]}}},{id:"boundary-water",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["in","admin_level",2,4],["==","maritime",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"rgba(154, 189, 214, 1)","line-width":{base:1,stops:[[0,.6],[4,1],[5,1],[12,1]]},"line-opacity":{stops:[[6,0],[10,0]]}}},{id:"waterway-name",type:"symbol",source:"openmaptiles","source-layer":"waterway",minzoom:13,filter:["all",["==","$type","LineString"],["has","name"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin} {name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","text-letter-spacing":.2,"symbol-spacing":350},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-lakeline",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["==","$type","LineString"],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-ocean",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["==","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-other",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["!in","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":{stops:[[0,10],[6,14]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2,visibility:"visible"},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"poi-level-3",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:16,filter:["all",["==","$type","Point"],[">=","rank",25]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} {name:nonlatin}`,"text-offset":[0,.6],"text-size":12,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"poi-level-2",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:15,filter:["all",["==","$type","Point"],["<=","rank",24],[">=","rank",15]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} @@ -3222,10 +3222,10 @@ uniform `+Zt+" "+hr+" u_"+Bt+`; {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(10, 9, 9, 0.8)"}},{id:"place-town",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["==","class","town"],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[10,14],[15,24]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(22, 22, 22, 0.8)"}},{id:"place-city",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["!=","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(0, 0, 0, 1)","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-city-capital",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin} -{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}});var eHe=ye((N_r,QGe)=>{QGe.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}});var wx=ye((U_r,aHe)=>{"use strict";var Fjt=Y1(),zjt=$Ge(),Ojt=eHe(),qjt='\xA9 OpenStreetMap contributors',tHe="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",rHe="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",Qz="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",Bjt="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",Njt="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",Ujt="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",nHe={basic:Qz,streets:Qz,outdoors:Qz,light:tHe,dark:rHe,satellite:Ojt,"satellite-streets":zjt,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:qjt,tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":tHe,"carto-darkmatter":rHe,"carto-voyager":Qz,"carto-positron-nolabels":Bjt,"carto-darkmatter-nolabels":Njt,"carto-voyager-nolabels":Ujt},iHe=Fjt(nHe);aHe.exports={styleValueDflt:"basic",stylesMap:nHe,styleValuesMap:iHe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",iHe.join(", "),"or use a tile service."].join(` -`),mapOnErrorMsg:"Map error."}});var NC=ye((V_r,cHe)=>{"use strict";var oHe=Dr(),sHe=Ca().defaultLine,Vjt=kc().attributes,Gjt=ec(),Hjt=vf().textposition,jjt=mc().overrideAll,Wjt=pl().templatedArray,lHe=wx(),uHe=Gjt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});uHe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var Xjt=cHe.exports=jjt({_arrayAttrRegexps:[oHe.counterRegex("map",".layers",!0)],domain:Vjt({name:"map"}),style:{valType:"any",values:lHe.styleValuesMap,dflt:lHe.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:Wjt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:sHe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:sHe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:uHe,textposition:oHe.extendFlat({},Hjt,{arrayOk:!1})}})},"plot","from-root");Xjt.uirevision={valType:"any",editType:"none"}});var e7=ye((G_r,dHe)=>{"use strict";var Zjt=rs().hovertemplateAttrs,Yjt=rs().texttemplateAttrs,Kjt=Eg(),UC=G2(),A5=vf(),fHe=NC(),Jjt=Vl(),$jt=Tu(),rw=Ao().extendFlat,Qjt=mc().overrideAll,eWt=NC(),hHe=UC.line,S5=UC.marker;dHe.exports=Qjt({lon:UC.lon,lat:UC.lat,cluster:{enabled:{valType:"boolean"},maxzoom:rw({},eWt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:rw({},S5.opacity,{dflt:1})},mode:rw({},A5.mode,{dflt:"markers"}),text:rw({},A5.text,{}),texttemplate:Yjt({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:rw({},A5.hovertext,{}),line:{color:hHe.color,width:hHe.width},connectgaps:A5.connectgaps,marker:rw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:S5.opacity,size:S5.size,sizeref:S5.sizeref,sizemin:S5.sizemin,sizemode:S5.sizemode},$jt("marker")),fill:UC.fill,fillcolor:Kjt(),textfont:fHe.layers.symbol.textfont,textposition:fHe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:A5.selected.marker},unselected:{marker:A5.unselected.marker},hoverinfo:rw({},Jjt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:Zjt()},"calc","nested")});var yJ=ye((H_r,vHe)=>{"use strict";var tWt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];vHe.exports={isSupportedFont:function(e){return tWt.indexOf(e)!==-1}}});var mHe=ye((j_r,gHe)=>{"use strict";var VC=Dr(),_J=Ru(),rWt=$p(),iWt=R0(),nWt=D0(),aWt=Ig(),pHe=e7(),oWt=yJ().isSupportedFont;gHe.exports=function(t,r,n,i){function a(p,C){return VC.coerce(t,r,pHe,p,C)}function o(p,C){return VC.coerce2(t,r,pHe,p,C)}var s=sWt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("hovertext"),a("hovertemplate"),a("mode"),a("below"),_J.hasMarkers(r)){rWt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var l=r.marker;l.symbol!=="circle"&&(VC.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),VC.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}_J.hasLines(r)&&(iWt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var u=o("cluster.maxzoom"),c=o("cluster.step"),f=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),v=u!==!1||c!==!1||f!==!1||h!==!1||d!==!1,x=a("cluster.enabled",v);if(x||_J.hasText(r)){var b=i.font.family;nWt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:oWt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&aWt(t,r,n,a),VC.coerceSelectionMarkerOpacity(r,a)};function sWt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var xJ=ye((W_r,_He)=>{"use strict";var yHe=ho();_He.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=yHe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=yHe.tickText(o,o.c2l(s[1]),!0).text,i}});var bJ=ye((X_r,bHe)=>{"use strict";var xHe=Dr();bHe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=xHe.isArrayOrTypedArray(r)?xHe.mean(r):r,s=.5+o/100,l=1.5+o/100,u=["",""],c=[0,0];switch(i){case"top":u[0]="top",c[1]=-l;break;case"bottom":u[0]="bottom",c[1]=l;break}switch(a){case"left":u[1]="right",c[0]=-s;break;case"right":u[1]="left",c[0]=s;break}var f;return u[0]&&u[1]?f=u.join("-"):u[0]?f=u[0]:u[1]?f=u[1]:f="center",{anchor:f,offset:c}}});var EHe=ye((Z_r,MHe)=>{"use strict";var AHe=Eo(),ov=Dr(),lWt=hs().BADNUM,r7=rx(),wHe=tc(),uWt=So(),cWt=S3(),i7=Ru(),fWt=yJ().isSupportedFont,hWt=bJ(),dWt=rp().appendArrayPointValue,vWt=iu().NEWLINES,pWt=iu().BR_TAG_ALL;MHe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=i7.hasLines(n),s=i7.hasMarkers(n),l=i7.hasText(n),u=s&&n.marker.symbol==="circle",c=s&&n.marker.symbol!=="circle",f=n.cluster&&n.cluster.enabled,h=t7("fill"),d=t7("line"),v=t7("circle"),x=t7("symbol"),b={fill:h,line:d,circle:v,symbol:x};if(!i)return b;var p;if((a||o)&&(p=r7.calcTraceToLineCoords(r)),a&&(h.geojson=r7.makePolygon(p),h.layout.visibility="visible",ov.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=r7.makeLine(p),d.layout.visibility="visible",ov.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),u){var C=gWt(r);v.geojson=C.geojson,v.layout.visibility="visible",f&&(v.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":TJ(n.cluster.color,n.cluster.step),"circle-radius":TJ(n.cluster.size,n.cluster.step),"circle-opacity":TJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":THe(n),"text-size":12}}),ov.extendFlat(v.paint,{"circle-color":C.mcc,"circle-radius":C.mrc,"circle-opacity":C.mo})}if(u&&f&&(v.filter=["!",["has","point_count"]]),(c||l)&&(x.geojson=mWt(r,t),ov.extendFlat(x.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),c&&(ov.extendFlat(x.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&ov.extendFlat(x.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),x.layout["icon-allow-overlap"]=n.marker.allowoverlap,ov.extendFlat(x.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),l)){var E=(n.marker||{}).size,A=hWt(n.textposition,E);ov.extendFlat(x.layout,{"text-size":n.textfont.size,"text-anchor":A.anchor,"text-offset":A.offset,"text-font":THe(n)}),ov.extendFlat(x.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function t7(e){return{type:e,geojson:r7.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function gWt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=ov.isArrayOrTypedArray(r.color),a=ov.isArrayOrTypedArray(r.size),o=ov.isArrayOrTypedArray(r.opacity),s;function l(E){return t.opacity*E}function u(E){return E/2}var c;i&&(wHe.hasColorscale(t,"marker")?c=wHe.makeColorScaleFuncFromTrace(r):c=ov.identity);var f;a&&(f=cWt(t));var h;o&&(h=function(E){var A=AHe(E)?+ov.constrain(E,0,1):0;return l(A)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),fWt(s)||(s=r);var l=s.split(", ");return l}});var PHe=ye((Y_r,LHe)=>{"use strict";var yWt=Dr(),CHe=EHe(),M5=wx().traceLayerPrefix,ng={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function kHe(e,t,r,n){this.type="scattermap",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:M5+t+"-fill",line:M5+t+"-line",circle:M5+t+"-circle",symbol:M5+t+"-symbol",cluster:M5+t+"-cluster",clusterCount:M5+t+"-cluster-count"},this.below=null}var GC=kHe.prototype;GC.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&yWt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};GC.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};GC.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var _=A[L];i.removeLayer(u.layerIds[_])}E||i.removeSource(u.sourceIds.circle)}function h(E){for(var A=ng.nonCluster,L=0;L=0;L--){var _=A[L];i.removeLayer(u.layerIds[_]),E||i.removeSource(u.sourceIds[_])}}function v(E){l?f(E):d(E)}function x(E){s?c(E):h(E)}function b(){for(var E=s?ng.cluster:ng.nonCluster,A=0;A=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};LHe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new kHe(t,n.uid,i,a),s=CHe(t.gd,r),l=o.below=t.belowLookup["trace-"+n.uid],u,c,f;if(i)for(o.addSource("circle",s.circle,n.cluster),u=0;u{"use strict";var _Wt=df(),AJ=Dr(),xWt=oT(),bWt=AJ.fillText,wWt=hs().BADNUM,TWt=wx().traceLayerPrefix;function AWt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=TWt+i.uid+"-circle",c=i.cluster&&i.cluster.enabled;if(c){var f=s.map.queryRenderedFeatures(null,{layers:[u]});l=f.map(function(M){return M.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,v=t-d;function x(M){var g=M.lonlat;if(g[0]===wWt||c&&l.indexOf(M.i+1)===-1)return 1/0;var P=AJ.modHalf(g[0],360),T=g[1],z=s.project([P,T]),O=z.x-a.c2p([v,T]),V=z.y-o.c2p([P,r]),G=Math.max(3,M.mrc||0);return Math.max(Math.sqrt(O*O+V*V)-G,1-3/G)}if(_Wt.getClosest(n,x,e),e.index!==!1){var b=n[e.index],p=b.lonlat,C=[AJ.modHalf(p[0],360)+d,p[1]],E=a.c2p(C),A=o.c2p(C),L=b.mrc||1;e.x0=E-L,e.x1=E+L,e.y0=A-L,e.y1=A+L;var _={};_[i.subplot]={_subplot:s};var k=i._module.formatLabels(b,i,_);return e.lonLabel=k.lonLabel,e.latLabel=k.latLabel,e.color=xWt(i,b),e.extraText=IHe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function IHe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,l=t.lonlat,u=[];function c(f){return f+"\xB0"}return a||o&&s?u.push("("+c(l[1])+", "+c(l[0])+")"):o?u.push(r.lon+c(l[0])):s&&u.push(r.lat+c(l[1])),(a||i.indexOf("text")!==-1)&&bWt(t,e,u),u.join("
")}RHe.exports={hoverPoints:AWt,getExtraText:IHe}});var FHe=ye((J_r,DHe)=>{"use strict";DHe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var OHe=ye(($_r,zHe)=>{"use strict";var SWt=Dr(),MWt=Ru(),EWt=hs().BADNUM;zHe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l;if(!MWt.hasMarkers(s))return[];if(r===!1)for(l=0;l{(function(e,t){typeof SJ=="object"&&typeof MJ!="undefined"?MJ.exports=t():(e=typeof globalThis!="undefined"?globalThis:e||self,e.maplibregl=t())})(SJ,function(){"use strict";var e={},t={};function r(i,a,o){if(t[i]=o,i==="index"){var s="var sharedModule = {}; ("+t.shared+")(sharedModule); ("+t.worker+")(sharedModule);",l={};return t.shared(l),t.index(e,l),typeof window!="undefined"&&e.setWorkerUrl(window.URL.createObjectURL(new Blob([s],{type:"text/javascript"}))),e}}r("shared",["exports"],function(i){"use strict";function a(R,S,F,W){return new(F||(F=Promise))(function(te,fe){function pe(ct){try{Ke(W.next(ct))}catch(Lt){fe(Lt)}}function ze(ct){try{Ke(W.throw(ct))}catch(Lt){fe(Lt)}}function Ke(ct){var Lt;ct.done?te(ct.value):(Lt=ct.value,Lt instanceof F?Lt:new F(function(Qt){Qt(Lt)})).then(pe,ze)}Ke((W=W.apply(R,S||[])).next())})}function o(R){return R&&R.__esModule&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R}typeof SuppressedError=="function"&&SuppressedError;var s=l;function l(R,S){this.x=R,this.y=S}l.prototype={clone:function(){return new l(this.x,this.y)},add:function(R){return this.clone()._add(R)},sub:function(R){return this.clone()._sub(R)},multByPoint:function(R){return this.clone()._multByPoint(R)},divByPoint:function(R){return this.clone()._divByPoint(R)},mult:function(R){return this.clone()._mult(R)},div:function(R){return this.clone()._div(R)},rotate:function(R){return this.clone()._rotate(R)},rotateAround:function(R,S){return this.clone()._rotateAround(R,S)},matMult:function(R){return this.clone()._matMult(R)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(R){return this.x===R.x&&this.y===R.y},dist:function(R){return Math.sqrt(this.distSqr(R))},distSqr:function(R){var S=R.x-this.x,F=R.y-this.y;return S*S+F*F},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(R){return Math.atan2(this.y-R.y,this.x-R.x)},angleWith:function(R){return this.angleWithSep(R.x,R.y)},angleWithSep:function(R,S){return Math.atan2(this.x*S-this.y*R,this.x*R+this.y*S)},_matMult:function(R){var S=R[2]*this.x+R[3]*this.y;return this.x=R[0]*this.x+R[1]*this.y,this.y=S,this},_add:function(R){return this.x+=R.x,this.y+=R.y,this},_sub:function(R){return this.x-=R.x,this.y-=R.y,this},_mult:function(R){return this.x*=R,this.y*=R,this},_div:function(R){return this.x/=R,this.y/=R,this},_multByPoint:function(R){return this.x*=R.x,this.y*=R.y,this},_divByPoint:function(R){return this.x/=R.x,this.y/=R.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var R=this.y;return this.y=this.x,this.x=-R,this},_rotate:function(R){var S=Math.cos(R),F=Math.sin(R),W=F*this.x+S*this.y;return this.x=S*this.x-F*this.y,this.y=W,this},_rotateAround:function(R,S){var F=Math.cos(R),W=Math.sin(R),te=S.y+W*(this.x-S.x)+F*(this.y-S.y);return this.x=S.x+F*(this.x-S.x)-W*(this.y-S.y),this.y=te,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},l.convert=function(R){return R instanceof l?R:Array.isArray(R)?new l(R[0],R[1]):R};var u=o(s),c=f;function f(R,S,F,W){this.cx=3*R,this.bx=3*(F-R)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*S,this.by=3*(W-S)-this.cy,this.ay=1-this.cy-this.by,this.p1x=R,this.p1y=S,this.p2x=F,this.p2y=W}f.prototype={sampleCurveX:function(R){return((this.ax*R+this.bx)*R+this.cx)*R},sampleCurveY:function(R){return((this.ay*R+this.by)*R+this.cy)*R},sampleCurveDerivativeX:function(R){return(3*this.ax*R+2*this.bx)*R+this.cx},solveCurveX:function(R,S){if(S===void 0&&(S=1e-6),R<0)return 0;if(R>1)return 1;for(var F=R,W=0;W<8;W++){var te=this.sampleCurveX(F)-R;if(Math.abs(te)te?pe=F:ze=F,F=.5*(ze-pe)+pe;return F},solve:function(R,S){return this.sampleCurveY(this.solveCurveX(R,S))}};var h=o(c);let d,v;function x(){return d==null&&(d=typeof OffscreenCanvas!="undefined"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),d}function b(){if(v==null&&(v=!1,x())){let S=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(S){for(let W=0;W<5*5;W++){let te=4*W;S.fillStyle=`rgb(${te},${te+1},${te+2})`,S.fillRect(W%5,Math.floor(W/5),1,1)}let F=S.getImageData(0,0,5,5).data;for(let W=0;W<5*5*4;W++)if(W%4!=3&&F[W]!==W){v=!0;break}}}return v||!1}function p(R,S,F,W){let te=new h(R,S,F,W);return fe=>te.solve(fe)}let C=p(.25,.1,.25,1);function E(R,S,F){return Math.min(F,Math.max(S,R))}function A(R,S,F){let W=F-S,te=((R-S)%W+W)%W+S;return te===S?F:te}function L(R,...S){for(let F of S)for(let W in F)R[W]=F[W];return R}let _=1;function k(R,S,F){let W={};for(let te in R)W[te]=S.call(this,R[te],te,R);return W}function M(R,S,F){let W={};for(let te in R)S.call(this,R[te],te,R)&&(W[te]=R[te]);return W}function g(R){return Array.isArray(R)?R.map(g):typeof R=="object"&&R?k(R,g):R}let P={};function T(R){P[R]||(typeof console!="undefined"&&console.warn(R),P[R]=!0)}function z(R,S,F){return(F.y-R.y)*(S.x-R.x)>(S.y-R.y)*(F.x-R.x)}function O(R){return typeof WorkerGlobalScope!="undefined"&&R!==void 0&&R instanceof WorkerGlobalScope}let V=null;function G(R){return typeof ImageBitmap!="undefined"&&R instanceof ImageBitmap}let Z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function H(R,S,F,W,te){return a(this,void 0,void 0,function*(){if(typeof VideoFrame=="undefined")throw new Error("VideoFrame not supported");let fe=new VideoFrame(R,{timestamp:0});try{let pe=fe==null?void 0:fe.format;if(!pe||!pe.startsWith("BGR")&&!pe.startsWith("RGB"))throw new Error(`Unrecognized format ${pe}`);let ze=pe.startsWith("BGR"),Ke=new Uint8ClampedArray(W*te*4);if(yield fe.copyTo(Ke,function(ct,Lt,Qt,fr,mr){let Pr=4*Math.max(-Lt,0),zr=(Math.max(0,Qt)-Qt)*fr*4+Pr,ui=4*fr,yi=Math.max(0,Lt),dn=Math.max(0,Qt);return{rect:{x:yi,y:dn,width:Math.min(ct.width,Lt+fr)-yi,height:Math.min(ct.height,Qt+mr)-dn},layout:[{offset:zr,stride:ui}]}}(R,S,F,W,te)),ze)for(let ct=0;ctO(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,Se=function(R,S){if(/:\/\//.test(R.url)&&!/^https?:|^file:/.test(R.url)){let W=Me(R.url);if(W)return W(R,S);if(O(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:R,targetMapId:ke},S)}if(!(/^file:/.test(F=R.url)||/^file:/.test(ie())&&!/^\w+:/.test(F))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return function(W,te){return a(this,void 0,void 0,function*(){let fe=new Request(W.url,{method:W.method||"GET",body:W.body,credentials:W.credentials,headers:W.headers,cache:W.cache,referrer:ie(),signal:te.signal});W.type!=="json"||fe.headers.has("Accept")||fe.headers.set("Accept","application/json");let pe=yield fetch(fe);if(!pe.ok){let ct=yield pe.blob();throw new me(pe.status,pe.statusText,W.url,ct)}let ze;ze=W.type==="arrayBuffer"||W.type==="image"?pe.arrayBuffer():W.type==="json"?pe.json():pe.text();let Ke=yield ze;if(te.signal.aborted)throw oe();return{data:Ke,cacheControl:pe.headers.get("Cache-Control"),expires:pe.headers.get("Expires")}})}(R,S);if(O(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:R,mustQueue:!0,targetMapId:ke},S)}var F;return function(W,te){return new Promise((fe,pe)=>{var ze;let Ke=new XMLHttpRequest;Ke.open(W.method||"GET",W.url,!0),W.type!=="arrayBuffer"&&W.type!=="image"||(Ke.responseType="arraybuffer");for(let ct in W.headers)Ke.setRequestHeader(ct,W.headers[ct]);W.type==="json"&&(Ke.responseType="text",!((ze=W.headers)===null||ze===void 0)&&ze.Accept||Ke.setRequestHeader("Accept","application/json")),Ke.withCredentials=W.credentials==="include",Ke.onerror=()=>{pe(new Error(Ke.statusText))},Ke.onload=()=>{if(!te.signal.aborted)if((Ke.status>=200&&Ke.status<300||Ke.status===0)&&Ke.response!==null){let ct=Ke.response;if(W.type==="json")try{ct=JSON.parse(Ke.response)}catch(Lt){return void pe(Lt)}fe({data:ct,cacheControl:Ke.getResponseHeader("Cache-Control"),expires:Ke.getResponseHeader("Expires")})}else{let ct=new Blob([Ke.response],{type:Ke.getResponseHeader("Content-Type")});pe(new me(Ke.status,Ke.statusText,W.url,ct))}},te.signal.addEventListener("abort",()=>{Ke.abort(),pe(oe())}),Ke.send(W.body)})}(R,S)};function Le(R){if(!R||R.indexOf("://")<=0||R.indexOf("data:image/")===0||R.indexOf("blob:")===0)return!0;let S=new URL(R),F=window.location;return S.protocol===F.protocol&&S.host===F.host}function Ae(R,S,F){F[R]&&F[R].indexOf(S)!==-1||(F[R]=F[R]||[],F[R].push(S))}function Fe(R,S,F){if(F&&F[R]){let W=F[R].indexOf(S);W!==-1&&F[R].splice(W,1)}}class Pe{constructor(S,F={}){L(this,F),this.type=S}}class ge extends Pe{constructor(S,F={}){super("error",L({error:S},F))}}class De{on(S,F){return this._listeners=this._listeners||{},Ae(S,F,this._listeners),this}off(S,F){return Fe(S,F,this._listeners),Fe(S,F,this._oneTimeListeners),this}once(S,F){return F?(this._oneTimeListeners=this._oneTimeListeners||{},Ae(S,F,this._oneTimeListeners),this):new Promise(W=>this.once(S,W))}fire(S,F){typeof S=="string"&&(S=new Pe(S,F||{}));let W=S.type;if(this.listens(W)){S.target=this;let te=this._listeners&&this._listeners[W]?this._listeners[W].slice():[];for(let ze of te)ze.call(this,S);let fe=this._oneTimeListeners&&this._oneTimeListeners[W]?this._oneTimeListeners[W].slice():[];for(let ze of fe)Fe(W,ze,this._oneTimeListeners),ze.call(this,S);let pe=this._eventedParent;pe&&(L(S,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),pe.fire(S))}else S instanceof ge&&console.error(S.error);return this}listens(S){return this._listeners&&this._listeners[S]&&this._listeners[S].length>0||this._oneTimeListeners&&this._oneTimeListeners[S]&&this._oneTimeListeners[S].length>0||this._eventedParent&&this._eventedParent.listens(S)}setEventedParent(S,F){return this._eventedParent=S,this._eventedParentData=F,this}}var ce={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"enum",default:"mercator",values:{mercator:{},globe:{}}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};let Ze=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function ut(R,S){let F={};for(let W in R)W!=="ref"&&(F[W]=R[W]);return Ze.forEach(W=>{W in S&&(F[W]=S[W])}),F}function gt(R,S){if(Array.isArray(R)){if(!Array.isArray(S)||R.length!==S.length)return!1;for(let F=0;F`:R.itemType.kind==="value"?"array":`array<${S}>`}return R.kind}let je=[Vt,It,Ot,bt,rr,Kr,lr,Ge(wr),Gr,Yr,dt];function Je(R,S){if(S.kind==="error")return null;if(R.kind==="array"){if(S.kind==="array"&&(S.N===0&&S.itemType.kind==="value"||!Je(R.itemType,S.itemType))&&(typeof R.N!="number"||R.N===S.N))return null}else{if(R.kind===S.kind)return null;if(R.kind==="value"){for(let F of je)if(!Je(F,S))return null}}return`Expected ${Qe(R)} but found ${Qe(S)} instead.`}function xt(R,S){return S.some(F=>F.kind===R.kind)}function Ie(R,S){return S.some(F=>F==="null"?R===null:F==="array"?Array.isArray(R):F==="object"?R&&!Array.isArray(R)&&typeof R=="object":F===typeof R)}function xe(R,S){return R.kind==="array"&&S.kind==="array"?R.itemType.kind===S.itemType.kind&&typeof R.N=="number":R.kind===S.kind}let Ce=.96422,pt=.82521,nr=4/29,ir=6/29,vr=3*ir*ir,si=ir*ir*ir,mi=Math.PI/180,ei=180/Math.PI;function vi(R){return(R%=360)<0&&(R+=360),R}function ji([R,S,F,W]){let te,fe,pe=wn((.2225045*(R=Rn(R))+.7168786*(S=Rn(S))+.0606169*(F=Rn(F)))/1);R===S&&S===F?te=fe=pe:(te=wn((.4360747*R+.3850649*S+.1430804*F)/Ce),fe=wn((.0139322*R+.0971045*S+.7141733*F)/pt));let ze=116*pe-16;return[ze<0?0:ze,500*(te-pe),200*(pe-fe),W]}function Rn(R){return R<=.04045?R/12.92:Math.pow((R+.055)/1.055,2.4)}function wn(R){return R>si?Math.pow(R,1/3):R/vr+nr}function pn([R,S,F,W]){let te=(R+16)/116,fe=isNaN(S)?te:te+S/500,pe=isNaN(F)?te:te-F/200;return te=1*kn(te),fe=Ce*kn(fe),pe=pt*kn(pe),[Vn(3.1338561*fe-1.6168667*te-.4906146*pe),Vn(-.9787684*fe+1.9161415*te+.033454*pe),Vn(.0719453*fe-.2289914*te+1.4052427*pe),W]}function Vn(R){return(R=R<=.00304?12.92*R:1.055*Math.pow(R,1/2.4)-.055)<0?0:R>1?1:R}function kn(R){return R>ir?R*R*R:vr*(R-nr)}function ea(R){return parseInt(R.padEnd(2,R),16)/255}function ua(R,S){return Ht(S?R/100:R,0,1)}function Ht(R,S,F){return Math.min(Math.max(S,R),F)}function yt(R){return!R.some(Number.isNaN)}let er={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class ar{constructor(S,F,W,te=1,fe=!0){this.r=S,this.g=F,this.b=W,this.a=te,fe||(this.r*=te,this.g*=te,this.b*=te,te||this.overwriteGetter("rgb",[S,F,W,te]))}static parse(S){if(S instanceof ar)return S;if(typeof S!="string")return;let F=function(W){if((W=W.toLowerCase().trim())==="transparent")return[0,0,0,0];let te=er[W];if(te){let[pe,ze,Ke]=te;return[pe/255,ze/255,Ke/255,1]}if(W.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(W)){let pe=W.length<6?1:2,ze=1;return[ea(W.slice(ze,ze+=pe)),ea(W.slice(ze,ze+=pe)),ea(W.slice(ze,ze+=pe)),ea(W.slice(ze,ze+pe)||"ff")]}if(W.startsWith("rgb")){let pe=W.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(pe){let[ze,Ke,ct,Lt,Qt,fr,mr,Pr,zr,ui,yi,dn]=pe,Fi=[Lt||" ",mr||" ",ui].join("");if(Fi===" "||Fi===" /"||Fi===",,"||Fi===",,,"){let ln=[ct,fr,zr].join(""),An=ln==="%%%"?100:ln===""?255:0;if(An){let pa=[Ht(+Ke/An,0,1),Ht(+Qt/An,0,1),Ht(+Pr/An,0,1),yi?ua(+yi,dn):1];if(yt(pa))return pa}}return}}let fe=W.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(fe){let[pe,ze,Ke,ct,Lt,Qt,fr,mr,Pr]=fe,zr=[Ke||" ",Lt||" ",fr].join("");if(zr===" "||zr===" /"||zr===",,"||zr===",,,"){let ui=[+ze,Ht(+ct,0,100),Ht(+Qt,0,100),mr?ua(+mr,Pr):1];if(yt(ui))return function([yi,dn,Fi,ln]){function An(pa){let ro=(pa+yi/30)%12,Vo=dn*Math.min(Fi,1-Fi);return Fi-Vo*Math.max(-1,Math.min(ro-3,9-ro,1))}return yi=vi(yi),dn/=100,Fi/=100,[An(0),An(8),An(4),ln]}(ui)}}}(S);return F?new ar(...F,!1):void 0}get rgb(){let{r:S,g:F,b:W,a:te}=this,fe=te||1/0;return this.overwriteGetter("rgb",[S/fe,F/fe,W/fe,te])}get hcl(){return this.overwriteGetter("hcl",function(S){let[F,W,te,fe]=ji(S),pe=Math.sqrt(W*W+te*te);return[Math.round(1e4*pe)?vi(Math.atan2(te,W)*ei):NaN,pe,F,fe]}(this.rgb))}get lab(){return this.overwriteGetter("lab",ji(this.rgb))}overwriteGetter(S,F){return Object.defineProperty(this,S,{value:F}),F}toString(){let[S,F,W,te]=this.rgb;return`rgba(${[S,F,W].map(fe=>Math.round(255*fe)).join(",")},${te})`}}ar.black=new ar(0,0,0,1),ar.white=new ar(1,1,1,1),ar.transparent=new ar(0,0,0,0),ar.red=new ar(1,0,0,1);class Er{constructor(S,F,W){this.sensitivity=S?F?"variant":"case":F?"accent":"base",this.locale=W,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(S,F){return this.collator.compare(S,F)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Xr{constructor(S,F,W,te,fe){this.text=S,this.image=F,this.scale=W,this.fontStack=te,this.textColor=fe}}class ri{constructor(S){this.sections=S}static fromString(S){return new ri([new Xr(S,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(S=>S.text.length!==0||S.image&&S.image.name.length!==0)}static factory(S){return S instanceof ri?S:ri.fromString(S)}toString(){return this.sections.length===0?"":this.sections.map(S=>S.text).join("")}}class $r{constructor(S){this.values=S.slice()}static parse(S){if(S instanceof $r)return S;if(typeof S=="number")return new $r([S,S,S,S]);if(Array.isArray(S)&&!(S.length<1||S.length>4)){for(let F of S)if(typeof F!="number")return;switch(S.length){case 1:S=[S[0],S[0],S[0],S[0]];break;case 2:S=[S[0],S[1],S[0],S[1]];break;case 3:S=[S[0],S[1],S[2],S[1]]}return new $r(S)}}toString(){return JSON.stringify(this.values)}}let zi=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class Ji{constructor(S){this.values=S.slice()}static parse(S){if(S instanceof Ji)return S;if(Array.isArray(S)&&!(S.length<1)&&S.length%2==0){for(let F=0;F=0&&R<=255&&typeof S=="number"&&S>=0&&S<=255&&typeof F=="number"&&F>=0&&F<=255?W===void 0||typeof W=="number"&&W>=0&&W<=1?null:`Invalid rgba value [${[R,S,F,W].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof W=="number"?[R,S,F,W]:[R,S,F]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function yn(R){if(R===null||typeof R=="string"||typeof R=="boolean"||typeof R=="number"||R instanceof ar||R instanceof Er||R instanceof ri||R instanceof $r||R instanceof Ji||R instanceof en)return!0;if(Array.isArray(R)){for(let S of R)if(!yn(S))return!1;return!0}if(typeof R=="object"){for(let S in R)if(!yn(R[S]))return!1;return!0}return!1}function Mn(R){if(R===null)return Vt;if(typeof R=="string")return Ot;if(typeof R=="boolean")return bt;if(typeof R=="number")return It;if(R instanceof ar)return rr;if(R instanceof Er)return Cr;if(R instanceof ri)return Kr;if(R instanceof $r)return Gr;if(R instanceof Ji)return dt;if(R instanceof en)return Yr;if(Array.isArray(R)){let S=R.length,F;for(let W of R){let te=Mn(W);if(F){if(F===te)continue;F=wr;break}F=te}return Ge(F||wr,S)}return lr}function Ba(R){let S=typeof R;return R===null?"":S==="string"||S==="number"||S==="boolean"?String(R):R instanceof ar||R instanceof ri||R instanceof $r||R instanceof Ji||R instanceof en?R.toString():JSON.stringify(R)}class la{constructor(S,F){this.type=S,this.value=F}static parse(S,F){if(S.length!==2)return F.error(`'literal' expression requires exactly one argument, but found ${S.length-1} instead.`);if(!yn(S[1]))return F.error("invalid value");let W=S[1],te=Mn(W),fe=F.expectedType;return te.kind!=="array"||te.N!==0||!fe||fe.kind!=="array"||typeof fe.N=="number"&&fe.N!==0||(te=fe),new la(te,W)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class ma{constructor(S){this.name="ExpressionEvaluationError",this.message=S}toJSON(){return this.message}}let Wa={string:Ot,number:It,boolean:bt,object:lr};class Fa{constructor(S,F){this.type=S,this.args=F}static parse(S,F){if(S.length<2)return F.error("Expected at least one argument.");let W,te=1,fe=S[0];if(fe==="array"){let ze,Ke;if(S.length>2){let ct=S[1];if(typeof ct!="string"||!(ct in Wa)||ct==="object")return F.error('The item type argument of "array" must be one of string, number, boolean',1);ze=Wa[ct],te++}else ze=wr;if(S.length>3){if(S[2]!==null&&(typeof S[2]!="number"||S[2]<0||S[2]!==Math.floor(S[2])))return F.error('The length argument to "array" must be a positive integer literal',2);Ke=S[2],te++}W=Ge(ze,Ke)}else{if(!Wa[fe])throw new Error(`Types doesn't contain name = ${fe}`);W=Wa[fe]}let pe=[];for(;teS.outputDefined())}}let Wo={"to-boolean":bt,"to-color":rr,"to-number":It,"to-string":Ot};class da{constructor(S,F){this.type=S,this.args=F}static parse(S,F){if(S.length<2)return F.error("Expected at least one argument.");let W=S[0];if(!Wo[W])throw new Error(`Can't parse ${W} as it is not part of the known types`);if((W==="to-boolean"||W==="to-string")&&S.length!==2)return F.error("Expected one argument.");let te=Wo[W],fe=[];for(let pe=1;pe4?`Invalid rbga value ${JSON.stringify(F)}: expected an array containing either three or four numeric values.`:cn(F[0],F[1],F[2],F[3]),!W))return new ar(F[0]/255,F[1]/255,F[2]/255,F[3])}throw new ma(W||`Could not parse color from value '${typeof F=="string"?F:JSON.stringify(F)}'`)}case"padding":{let F;for(let W of this.args){F=W.evaluate(S);let te=$r.parse(F);if(te)return te}throw new ma(`Could not parse padding from value '${typeof F=="string"?F:JSON.stringify(F)}'`)}case"variableAnchorOffsetCollection":{let F;for(let W of this.args){F=W.evaluate(S);let te=Ji.parse(F);if(te)return te}throw new ma(`Could not parse variableAnchorOffsetCollection from value '${typeof F=="string"?F:JSON.stringify(F)}'`)}case"number":{let F=null;for(let W of this.args){if(F=W.evaluate(S),F===null)return 0;let te=Number(F);if(!isNaN(te))return te}throw new ma(`Could not convert ${JSON.stringify(F)} to number.`)}case"formatted":return ri.fromString(Ba(this.args[0].evaluate(S)));case"resolvedImage":return en.fromString(Ba(this.args[0].evaluate(S)));default:return Ba(this.args[0].evaluate(S))}}eachChild(S){this.args.forEach(S)}outputDefined(){return this.args.every(S=>S.outputDefined())}}let Wn=["Unknown","Point","LineString","Polygon"];class Ga{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Wn[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(S){let F=this._parseColorCache[S];return F||(F=this._parseColorCache[S]=ar.parse(S)),F}}class vo{constructor(S,F,W=[],te,fe=new Ct,pe=[]){this.registry=S,this.path=W,this.key=W.map(ze=>`[${ze}]`).join(""),this.scope=fe,this.errors=pe,this.expectedType=te,this._isConstant=F}parse(S,F,W,te,fe={}){return F?this.concat(F,W,te)._parse(S,fe):this._parse(S,fe)}_parse(S,F){function W(te,fe,pe){return pe==="assert"?new Fa(fe,[te]):pe==="coerce"?new da(fe,[te]):te}if(S!==null&&typeof S!="string"&&typeof S!="boolean"&&typeof S!="number"||(S=["literal",S]),Array.isArray(S)){if(S.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let te=S[0];if(typeof te!="string")return this.error(`Expression name must be a string, but found ${typeof te} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let fe=this.registry[te];if(fe){let pe=fe.parse(S,this);if(!pe)return null;if(this.expectedType){let ze=this.expectedType,Ke=pe.type;if(ze.kind!=="string"&&ze.kind!=="number"&&ze.kind!=="boolean"&&ze.kind!=="object"&&ze.kind!=="array"||Ke.kind!=="value")if(ze.kind!=="color"&&ze.kind!=="formatted"&&ze.kind!=="resolvedImage"||Ke.kind!=="value"&&Ke.kind!=="string")if(ze.kind!=="padding"||Ke.kind!=="value"&&Ke.kind!=="number"&&Ke.kind!=="array")if(ze.kind!=="variableAnchorOffsetCollection"||Ke.kind!=="value"&&Ke.kind!=="array"){if(this.checkSubtype(ze,Ke))return null}else pe=W(pe,ze,F.typeAnnotation||"coerce");else pe=W(pe,ze,F.typeAnnotation||"coerce");else pe=W(pe,ze,F.typeAnnotation||"coerce");else pe=W(pe,ze,F.typeAnnotation||"assert")}if(!(pe instanceof la)&&pe.type.kind!=="resolvedImage"&&this._isConstant(pe)){let ze=new Ga;try{pe=new la(pe.type,pe.evaluate(ze))}catch(Ke){return this.error(Ke.message),null}}return pe}return this.error(`Unknown expression "${te}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(S===void 0?"'undefined' value invalid. Use null instead.":typeof S=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof S} instead.`)}concat(S,F,W){let te=typeof S=="number"?this.path.concat(S):this.path,fe=W?this.scope.concat(W):this.scope;return new vo(this.registry,this._isConstant,te,F||null,fe,this.errors)}error(S,...F){let W=`${this.key}${F.map(te=>`[${te}]`).join("")}`;this.errors.push(new Mt(W,S))}checkSubtype(S,F){let W=Je(S,F);return W&&this.error(W),W}}class jn{constructor(S,F){this.type=F.type,this.bindings=[].concat(S),this.result=F}evaluate(S){return this.result.evaluate(S)}eachChild(S){for(let F of this.bindings)S(F[1]);S(this.result)}static parse(S,F){if(S.length<4)return F.error(`Expected at least 3 arguments, but found ${S.length-1} instead.`);let W=[];for(let fe=1;fe=W.length)throw new ma(`Array index out of bounds: ${F} > ${W.length-1}.`);if(F!==Math.floor(F))throw new ma(`Array index must be an integer, but found ${F} instead.`);return W[F]}eachChild(S){S(this.index),S(this.input)}outputDefined(){return!1}}class Qr{constructor(S,F){this.type=bt,this.needle=S,this.haystack=F}static parse(S,F){if(S.length!==3)return F.error(`Expected 2 arguments, but found ${S.length-1} instead.`);let W=F.parse(S[1],1,wr),te=F.parse(S[2],2,wr);return W&&te?xt(W.type,[bt,Ot,It,Vt,wr])?new Qr(W,te):F.error(`Expected first argument to be of type boolean, string, number or null, but found ${Qe(W.type)} instead`):null}evaluate(S){let F=this.needle.evaluate(S),W=this.haystack.evaluate(S);if(!W)return!1;if(!Ie(F,["boolean","string","number","null"]))throw new ma(`Expected first argument to be of type boolean, string, number or null, but found ${Qe(Mn(F))} instead.`);if(!Ie(W,["string","array"]))throw new ma(`Expected second argument to be of type array or string, but found ${Qe(Mn(W))} instead.`);return W.indexOf(F)>=0}eachChild(S){S(this.needle),S(this.haystack)}outputDefined(){return!0}}class di{constructor(S,F,W){this.type=It,this.needle=S,this.haystack=F,this.fromIndex=W}static parse(S,F){if(S.length<=2||S.length>=5)return F.error(`Expected 3 or 4 arguments, but found ${S.length-1} instead.`);let W=F.parse(S[1],1,wr),te=F.parse(S[2],2,wr);if(!W||!te)return null;if(!xt(W.type,[bt,Ot,It,Vt,wr]))return F.error(`Expected first argument to be of type boolean, string, number or null, but found ${Qe(W.type)} instead`);if(S.length===4){let fe=F.parse(S[3],3,It);return fe?new di(W,te,fe):null}return new di(W,te)}evaluate(S){let F=this.needle.evaluate(S),W=this.haystack.evaluate(S);if(!Ie(F,["boolean","string","number","null"]))throw new ma(`Expected first argument to be of type boolean, string, number or null, but found ${Qe(Mn(F))} instead.`);let te;if(this.fromIndex&&(te=this.fromIndex.evaluate(S)),Ie(W,["string"])){let fe=W.indexOf(F,te);return fe===-1?-1:[...W.slice(0,fe)].length}if(Ie(W,["array"]))return W.indexOf(F,te);throw new ma(`Expected second argument to be of type array or string, but found ${Qe(Mn(W))} instead.`)}eachChild(S){S(this.needle),S(this.haystack),this.fromIndex&&S(this.fromIndex)}outputDefined(){return!1}}class fn{constructor(S,F,W,te,fe,pe){this.inputType=S,this.type=F,this.input=W,this.cases=te,this.outputs=fe,this.otherwise=pe}static parse(S,F){if(S.length<5)return F.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if(S.length%2!=1)return F.error("Expected an even number of arguments.");let W,te;F.expectedType&&F.expectedType.kind!=="value"&&(te=F.expectedType);let fe={},pe=[];for(let ct=2;ctNumber.MAX_SAFE_INTEGER)return fr.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof Pr=="number"&&Math.floor(Pr)!==Pr)return fr.error("Numeric branch labels must be integer values.");if(W){if(fr.checkSubtype(W,Mn(Pr)))return null}else W=Mn(Pr);if(fe[String(Pr)]!==void 0)return fr.error("Branch labels must be unique.");fe[String(Pr)]=pe.length}let mr=F.parse(Qt,ct,te);if(!mr)return null;te=te||mr.type,pe.push(mr)}let ze=F.parse(S[1],1,wr);if(!ze)return null;let Ke=F.parse(S[S.length-1],S.length-1,te);return Ke?ze.type.kind!=="value"&&F.concat(1).checkSubtype(W,ze.type)?null:new fn(W,te,ze,fe,pe,Ke):null}evaluate(S){let F=this.input.evaluate(S);return(Mn(F)===this.inputType&&this.outputs[this.cases[F]]||this.otherwise).evaluate(S)}eachChild(S){S(this.input),this.outputs.forEach(S),S(this.otherwise)}outputDefined(){return this.outputs.every(S=>S.outputDefined())&&this.otherwise.outputDefined()}}class Sn{constructor(S,F,W){this.type=S,this.branches=F,this.otherwise=W}static parse(S,F){if(S.length<4)return F.error(`Expected at least 3 arguments, but found only ${S.length-1}.`);if(S.length%2!=0)return F.error("Expected an odd number of arguments.");let W;F.expectedType&&F.expectedType.kind!=="value"&&(W=F.expectedType);let te=[];for(let pe=1;peF.outputDefined())&&this.otherwise.outputDefined()}}class En{constructor(S,F,W,te){this.type=S,this.input=F,this.beginIndex=W,this.endIndex=te}static parse(S,F){if(S.length<=2||S.length>=5)return F.error(`Expected 3 or 4 arguments, but found ${S.length-1} instead.`);let W=F.parse(S[1],1,wr),te=F.parse(S[2],2,It);if(!W||!te)return null;if(!xt(W.type,[Ge(wr),Ot,wr]))return F.error(`Expected first argument to be of type array or string, but found ${Qe(W.type)} instead`);if(S.length===4){let fe=F.parse(S[3],3,It);return fe?new En(W.type,W,te,fe):null}return new En(W.type,W,te)}evaluate(S){let F=this.input.evaluate(S),W=this.beginIndex.evaluate(S),te;if(this.endIndex&&(te=this.endIndex.evaluate(S)),Ie(F,["string"]))return[...F].slice(W,te).join("");if(Ie(F,["array"]))return F.slice(W,te);throw new ma(`Expected first argument to be of type array or string, but found ${Qe(Mn(F))} instead.`)}eachChild(S){S(this.input),S(this.beginIndex),this.endIndex&&S(this.endIndex)}outputDefined(){return!1}}function ki(R,S){let F=R.length-1,W,te,fe=0,pe=F,ze=0;for(;fe<=pe;)if(ze=Math.floor((fe+pe)/2),W=R[ze],te=R[ze+1],W<=S){if(ze===F||SS))throw new ma("Input is not a number.");pe=ze-1}return 0}class _n{constructor(S,F,W){this.type=S,this.input=F,this.labels=[],this.outputs=[];for(let[te,fe]of W)this.labels.push(te),this.outputs.push(fe)}static parse(S,F){if(S.length-1<4)return F.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if((S.length-1)%2!=0)return F.error("Expected an even number of arguments.");let W=F.parse(S[1],1,It);if(!W)return null;let te=[],fe=null;F.expectedType&&F.expectedType.kind!=="value"&&(fe=F.expectedType);for(let pe=1;pe=ze)return F.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',ct);let Qt=F.parse(Ke,Lt,fe);if(!Qt)return null;fe=fe||Qt.type,te.push([ze,Qt])}return new _n(fe,W,te)}evaluate(S){let F=this.labels,W=this.outputs;if(F.length===1)return W[0].evaluate(S);let te=this.input.evaluate(S);if(te<=F[0])return W[0].evaluate(S);let fe=F.length;return te>=F[fe-1]?W[fe-1].evaluate(S):W[ki(F,te)].evaluate(S)}eachChild(S){S(this.input);for(let F of this.outputs)S(F)}outputDefined(){return this.outputs.every(S=>S.outputDefined())}}function ya(R){return R&&R.__esModule&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R}var Jn=Ma;function Ma(R,S,F,W){this.cx=3*R,this.bx=3*(F-R)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*S,this.by=3*(W-S)-this.cy,this.ay=1-this.cy-this.by,this.p1x=R,this.p1y=S,this.p2x=F,this.p2y=W}Ma.prototype={sampleCurveX:function(R){return((this.ax*R+this.bx)*R+this.cx)*R},sampleCurveY:function(R){return((this.ay*R+this.by)*R+this.cy)*R},sampleCurveDerivativeX:function(R){return(3*this.ax*R+2*this.bx)*R+this.cx},solveCurveX:function(R,S){if(S===void 0&&(S=1e-6),R<0)return 0;if(R>1)return 1;for(var F=R,W=0;W<8;W++){var te=this.sampleCurveX(F)-R;if(Math.abs(te)te?pe=F:ze=F,F=.5*(ze-pe)+pe;return F},solve:function(R,S){return this.sampleCurveY(this.solveCurveX(R,S))}};var _o=ya(Jn);function No(R,S,F){return R+F*(S-R)}function po(R,S,F){return R.map((W,te)=>No(W,S[te],F))}let Lo={number:No,color:function(R,S,F,W="rgb"){switch(W){case"rgb":{let[te,fe,pe,ze]=po(R.rgb,S.rgb,F);return new ar(te,fe,pe,ze,!1)}case"hcl":{let[te,fe,pe,ze]=R.hcl,[Ke,ct,Lt,Qt]=S.hcl,fr,mr;if(isNaN(te)||isNaN(Ke))isNaN(te)?isNaN(Ke)?fr=NaN:(fr=Ke,pe!==1&&pe!==0||(mr=ct)):(fr=te,Lt!==1&&Lt!==0||(mr=fe));else{let dn=Ke-te;Ke>te&&dn>180?dn-=360:Ke180&&(dn+=360),fr=te+F*dn}let[Pr,zr,ui,yi]=function([dn,Fi,ln,An]){return dn=isNaN(dn)?0:dn*mi,pn([ln,Math.cos(dn)*Fi,Math.sin(dn)*Fi,An])}([fr,mr!=null?mr:No(fe,ct,F),No(pe,Lt,F),No(ze,Qt,F)]);return new ar(Pr,zr,ui,yi,!1)}case"lab":{let[te,fe,pe,ze]=pn(po(R.lab,S.lab,F));return new ar(te,fe,pe,ze,!1)}}},array:po,padding:function(R,S,F){return new $r(po(R.values,S.values,F))},variableAnchorOffsetCollection:function(R,S,F){let W=R.values,te=S.values;if(W.length!==te.length)throw new ma(`Cannot interpolate values of different length. from: ${R.toString()}, to: ${S.toString()}`);let fe=[];for(let pe=0;petypeof Lt!="number"||Lt<0||Lt>1))return F.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);te={name:"cubic-bezier",controlPoints:ct}}}if(S.length-1<4)return F.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if((S.length-1)%2!=0)return F.error("Expected an even number of arguments.");if(fe=F.parse(fe,2,It),!fe)return null;let ze=[],Ke=null;W==="interpolate-hcl"||W==="interpolate-lab"?Ke=rr:F.expectedType&&F.expectedType.kind!=="value"&&(Ke=F.expectedType);for(let ct=0;ct=Lt)return F.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',fr);let Pr=F.parse(Qt,mr,Ke);if(!Pr)return null;Ke=Ke||Pr.type,ze.push([Lt,Pr])}return xe(Ke,It)||xe(Ke,rr)||xe(Ke,Gr)||xe(Ke,dt)||xe(Ke,Ge(It))?new Co(Ke,W,te,fe,ze):F.error(`Type ${Qe(Ke)} is not interpolatable.`)}evaluate(S){let F=this.labels,W=this.outputs;if(F.length===1)return W[0].evaluate(S);let te=this.input.evaluate(S);if(te<=F[0])return W[0].evaluate(S);let fe=F.length;if(te>=F[fe-1])return W[fe-1].evaluate(S);let pe=ki(F,te),ze=Co.interpolationFactor(this.interpolation,te,F[pe],F[pe+1]),Ke=W[pe].evaluate(S),ct=W[pe+1].evaluate(S);switch(this.operator){case"interpolate":return Lo[this.type.kind](Ke,ct,ze);case"interpolate-hcl":return Lo.color(Ke,ct,ze,"hcl");case"interpolate-lab":return Lo.color(Ke,ct,ze,"lab")}}eachChild(S){S(this.input);for(let F of this.outputs)S(F)}outputDefined(){return this.outputs.every(S=>S.outputDefined())}}function Fs(R,S,F,W){let te=W-F,fe=R-F;return te===0?0:S===1?fe/te:(Math.pow(S,fe)-1)/(Math.pow(S,te)-1)}class zs{constructor(S,F){this.type=S,this.args=F}static parse(S,F){if(S.length<2)return F.error("Expectected at least one argument.");let W=null,te=F.expectedType;te&&te.kind!=="value"&&(W=te);let fe=[];for(let ze of S.slice(1)){let Ke=F.parse(ze,1+fe.length,W,void 0,{typeAnnotation:"omit"});if(!Ke)return null;W=W||Ke.type,fe.push(Ke)}if(!W)throw new Error("No output type");let pe=te&&fe.some(ze=>Je(te,ze.type));return new zs(pe?wr:W,fe)}evaluate(S){let F,W=null,te=0;for(let fe of this.args)if(te++,W=fe.evaluate(S),W&&W instanceof en&&!W.available&&(F||(F=W.name),W=null,te===this.args.length&&(W=F)),W!==null)break;return W}eachChild(S){this.args.forEach(S)}outputDefined(){return this.args.every(S=>S.outputDefined())}}function ul(R,S){return R==="=="||R==="!="?S.kind==="boolean"||S.kind==="string"||S.kind==="number"||S.kind==="null"||S.kind==="value":S.kind==="string"||S.kind==="number"||S.kind==="value"}function cl(R,S,F,W){return W.compare(S,F)===0}function Fl(R,S,F){let W=R!=="=="&&R!=="!=";return class qHe{constructor(fe,pe,ze){this.type=bt,this.lhs=fe,this.rhs=pe,this.collator=ze,this.hasUntypedArgument=fe.type.kind==="value"||pe.type.kind==="value"}static parse(fe,pe){if(fe.length!==3&&fe.length!==4)return pe.error("Expected two or three arguments.");let ze=fe[0],Ke=pe.parse(fe[1],1,wr);if(!Ke)return null;if(!ul(ze,Ke.type))return pe.concat(1).error(`"${ze}" comparisons are not supported for type '${Qe(Ke.type)}'.`);let ct=pe.parse(fe[2],2,wr);if(!ct)return null;if(!ul(ze,ct.type))return pe.concat(2).error(`"${ze}" comparisons are not supported for type '${Qe(ct.type)}'.`);if(Ke.type.kind!==ct.type.kind&&Ke.type.kind!=="value"&&ct.type.kind!=="value")return pe.error(`Cannot compare types '${Qe(Ke.type)}' and '${Qe(ct.type)}'.`);W&&(Ke.type.kind==="value"&&ct.type.kind!=="value"?Ke=new Fa(ct.type,[Ke]):Ke.type.kind!=="value"&&ct.type.kind==="value"&&(ct=new Fa(Ke.type,[ct])));let Lt=null;if(fe.length===4){if(Ke.type.kind!=="string"&&ct.type.kind!=="string"&&Ke.type.kind!=="value"&&ct.type.kind!=="value")return pe.error("Cannot use collator to compare non-string types.");if(Lt=pe.parse(fe[3],3,Cr),!Lt)return null}return new qHe(Ke,ct,Lt)}evaluate(fe){let pe=this.lhs.evaluate(fe),ze=this.rhs.evaluate(fe);if(W&&this.hasUntypedArgument){let Ke=Mn(pe),ct=Mn(ze);if(Ke.kind!==ct.kind||Ke.kind!=="string"&&Ke.kind!=="number")throw new ma(`Expected arguments for "${R}" to be (string, string) or (number, number), but found (${Ke.kind}, ${ct.kind}) instead.`)}if(this.collator&&!W&&this.hasUntypedArgument){let Ke=Mn(pe),ct=Mn(ze);if(Ke.kind!=="string"||ct.kind!=="string")return S(fe,pe,ze)}return this.collator?F(fe,pe,ze,this.collator.evaluate(fe)):S(fe,pe,ze)}eachChild(fe){fe(this.lhs),fe(this.rhs),this.collator&&fe(this.collator)}outputDefined(){return!0}}}let cs=Fl("==",function(R,S,F){return S===F},cl),nl=Fl("!=",function(R,S,F){return S!==F},function(R,S,F,W){return!cl(0,S,F,W)}),Ss=Fl("<",function(R,S,F){return S",function(R,S,F){return S>F},function(R,S,F,W){return W.compare(S,F)>0}),Js=Fl("<=",function(R,S,F){return S<=F},function(R,S,F,W){return W.compare(S,F)<=0}),Os=Fl(">=",function(R,S,F){return S>=F},function(R,S,F,W){return W.compare(S,F)>=0});class Io{constructor(S,F,W){this.type=Cr,this.locale=W,this.caseSensitive=S,this.diacriticSensitive=F}static parse(S,F){if(S.length!==2)return F.error("Expected one argument.");let W=S[1];if(typeof W!="object"||Array.isArray(W))return F.error("Collator options argument must be an object.");let te=F.parse(W["case-sensitive"]!==void 0&&W["case-sensitive"],1,bt);if(!te)return null;let fe=F.parse(W["diacritic-sensitive"]!==void 0&&W["diacritic-sensitive"],1,bt);if(!fe)return null;let pe=null;return W.locale&&(pe=F.parse(W.locale,1,Ot),!pe)?null:new Io(te,fe,pe)}evaluate(S){return new Er(this.caseSensitive.evaluate(S),this.diacriticSensitive.evaluate(S),this.locale?this.locale.evaluate(S):null)}eachChild(S){S(this.caseSensitive),S(this.diacriticSensitive),this.locale&&S(this.locale)}outputDefined(){return!1}}class us{constructor(S,F,W,te,fe){this.type=Ot,this.number=S,this.locale=F,this.currency=W,this.minFractionDigits=te,this.maxFractionDigits=fe}static parse(S,F){if(S.length!==3)return F.error("Expected two arguments.");let W=F.parse(S[1],1,It);if(!W)return null;let te=S[2];if(typeof te!="object"||Array.isArray(te))return F.error("NumberFormat options argument must be an object.");let fe=null;if(te.locale&&(fe=F.parse(te.locale,1,Ot),!fe))return null;let pe=null;if(te.currency&&(pe=F.parse(te.currency,1,Ot),!pe))return null;let ze=null;if(te["min-fraction-digits"]&&(ze=F.parse(te["min-fraction-digits"],1,It),!ze))return null;let Ke=null;return te["max-fraction-digits"]&&(Ke=F.parse(te["max-fraction-digits"],1,It),!Ke)?null:new us(W,fe,pe,ze,Ke)}evaluate(S){return new Intl.NumberFormat(this.locale?this.locale.evaluate(S):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(S):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(S):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(S):void 0}).format(this.number.evaluate(S))}eachChild(S){S(this.number),this.locale&&S(this.locale),this.currency&&S(this.currency),this.minFractionDigits&&S(this.minFractionDigits),this.maxFractionDigits&&S(this.maxFractionDigits)}outputDefined(){return!1}}class Zl{constructor(S){this.type=Kr,this.sections=S}static parse(S,F){if(S.length<2)return F.error("Expected at least one argument.");let W=S[1];if(!Array.isArray(W)&&typeof W=="object")return F.error("First argument must be an image or text section.");let te=[],fe=!1;for(let pe=1;pe<=S.length-1;++pe){let ze=S[pe];if(fe&&typeof ze=="object"&&!Array.isArray(ze)){fe=!1;let Ke=null;if(ze["font-scale"]&&(Ke=F.parse(ze["font-scale"],1,It),!Ke))return null;let ct=null;if(ze["text-font"]&&(ct=F.parse(ze["text-font"],1,Ge(Ot)),!ct))return null;let Lt=null;if(ze["text-color"]&&(Lt=F.parse(ze["text-color"],1,rr),!Lt))return null;let Qt=te[te.length-1];Qt.scale=Ke,Qt.font=ct,Qt.textColor=Lt}else{let Ke=F.parse(S[pe],1,wr);if(!Ke)return null;let ct=Ke.type.kind;if(ct!=="string"&&ct!=="value"&&ct!=="null"&&ct!=="resolvedImage")return F.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");fe=!0,te.push({content:Ke,scale:null,font:null,textColor:null})}}return new Zl(te)}evaluate(S){return new ri(this.sections.map(F=>{let W=F.content.evaluate(S);return Mn(W)===Yr?new Xr("",W,null,null,null):new Xr(Ba(W),null,F.scale?F.scale.evaluate(S):null,F.font?F.font.evaluate(S).join(","):null,F.textColor?F.textColor.evaluate(S):null)}))}eachChild(S){for(let F of this.sections)S(F.content),F.scale&&S(F.scale),F.font&&S(F.font),F.textColor&&S(F.textColor)}outputDefined(){return!1}}class Su{constructor(S){this.type=Yr,this.input=S}static parse(S,F){if(S.length!==2)return F.error("Expected two arguments.");let W=F.parse(S[1],1,Ot);return W?new Su(W):F.error("No image name provided.")}evaluate(S){let F=this.input.evaluate(S),W=en.fromString(F);return W&&S.availableImages&&(W.available=S.availableImages.indexOf(F)>-1),W}eachChild(S){S(this.input)}outputDefined(){return!1}}class nc{constructor(S){this.type=It,this.input=S}static parse(S,F){if(S.length!==2)return F.error(`Expected 1 argument, but found ${S.length-1} instead.`);let W=F.parse(S[1],1);return W?W.type.kind!=="array"&&W.type.kind!=="string"&&W.type.kind!=="value"?F.error(`Expected argument of type string or array, but found ${Qe(W.type)} instead.`):new nc(W):null}evaluate(S){let F=this.input.evaluate(S);if(typeof F=="string")return[...F].length;if(Array.isArray(F))return F.length;throw new ma(`Expected value to be of type string or array, but found ${Qe(Mn(F))} instead.`)}eachChild(S){S(this.input)}outputDefined(){return!1}}let ws=8192;function Fn(R,S){let F=(180+R[0])/360,W=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+R[1]*Math.PI/360)))/360,te=Math.pow(2,S.z);return[Math.round(F*te*ws),Math.round(W*te*ws)]}function _a(R,S){let F=Math.pow(2,S.z);return[(te=(R[0]/ws+S.x)/F,360*te-180),(W=(R[1]/ws+S.y)/F,360/Math.PI*Math.atan(Math.exp((180-360*W)*Math.PI/180))-90)];var W,te}function Vu(R,S){R[0]=Math.min(R[0],S[0]),R[1]=Math.min(R[1],S[1]),R[2]=Math.max(R[2],S[0]),R[3]=Math.max(R[3],S[1])}function zl(R,S){return!(R[0]<=S[0]||R[2]>=S[2]||R[1]<=S[1]||R[3]>=S[3])}function xo(R,S,F){let W=R[0]-S[0],te=R[1]-S[1],fe=R[0]-F[0],pe=R[1]-F[1];return W*pe-fe*te==0&&W*fe<=0&&te*pe<=0}function Yl(R,S,F,W){return(te=[W[0]-F[0],W[1]-F[1]])[0]*(fe=[S[0]-R[0],S[1]-R[1]])[1]-te[1]*fe[0]!=0&&!(!qo(R,S,F,W)||!qo(F,W,R,S));var te,fe}function Us(R,S,F){for(let W of F)for(let te=0;te(te=R)[1]!=(pe=ze[Ke+1])[1]>te[1]&&te[0]<(pe[0]-fe[0])*(te[1]-fe[1])/(pe[1]-fe[1])+fe[0]&&(W=!W)}var te,fe,pe;return W}function ac(R,S){for(let F of S)if(Hl(R,F))return!0;return!1}function aa(R,S){for(let F of R)if(!Hl(F,S))return!1;for(let F=0;F0&&ze<0||pe<0&&ze>0}function Ol(R,S,F){let W=[];for(let te=0;teF[2]){let te=.5*W,fe=R[0]-F[0]>te?-W:F[0]-R[0]>te?W:0;fe===0&&(fe=R[0]-F[2]>te?-W:F[2]-R[0]>te?W:0),R[0]+=fe}Vu(S,R)}function tf(R,S,F,W){let te=Math.pow(2,W.z)*ws,fe=[W.x*ws,W.y*ws],pe=[];for(let ze of R)for(let Ke of ze){let ct=[Ke.x+fe[0],Ke.y+fe[1]];Do(ct,S,F,te),pe.push(ct)}return pe}function Nf(R,S,F,W){let te=Math.pow(2,W.z)*ws,fe=[W.x*ws,W.y*ws],pe=[];for(let Ke of R){let ct=[];for(let Lt of Ke){let Qt=[Lt.x+fe[0],Lt.y+fe[1]];Vu(S,Qt),ct.push(Qt)}pe.push(ct)}if(S[2]-S[0]<=te/2){(ze=S)[0]=ze[1]=1/0,ze[2]=ze[3]=-1/0;for(let Ke of pe)for(let ct of Ke)Do(ct,S,F,te)}var ze;return pe}class ml{constructor(S,F){this.type=bt,this.geojson=S,this.geometries=F}static parse(S,F){if(S.length!==2)return F.error(`'within' expression requires exactly one argument, but found ${S.length-1} instead.`);if(yn(S[1])){let W=S[1];if(W.type==="FeatureCollection"){let te=[];for(let fe of W.features){let{type:pe,coordinates:ze}=fe.geometry;pe==="Polygon"&&te.push(ze),pe==="MultiPolygon"&&te.push(...ze)}if(te.length)return new ml(W,{type:"MultiPolygon",coordinates:te})}else if(W.type==="Feature"){let te=W.geometry.type;if(te==="Polygon"||te==="MultiPolygon")return new ml(W,W.geometry)}else if(W.type==="Polygon"||W.type==="MultiPolygon")return new ml(W,W)}return F.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(S){if(S.geometry()!=null&&S.canonicalID()!=null){if(S.geometryType()==="Point")return function(F,W){let te=[1/0,1/0,-1/0,-1/0],fe=[1/0,1/0,-1/0,-1/0],pe=F.canonicalID();if(W.type==="Polygon"){let ze=Ol(W.coordinates,fe,pe),Ke=tf(F.geometry(),te,fe,pe);if(!zl(te,fe))return!1;for(let ct of Ke)if(!Hl(ct,ze))return!1}if(W.type==="MultiPolygon"){let ze=Pc(W.coordinates,fe,pe),Ke=tf(F.geometry(),te,fe,pe);if(!zl(te,fe))return!1;for(let ct of Ke)if(!ac(ct,ze))return!1}return!0}(S,this.geometries);if(S.geometryType()==="LineString")return function(F,W){let te=[1/0,1/0,-1/0,-1/0],fe=[1/0,1/0,-1/0,-1/0],pe=F.canonicalID();if(W.type==="Polygon"){let ze=Ol(W.coordinates,fe,pe),Ke=Nf(F.geometry(),te,fe,pe);if(!zl(te,fe))return!1;for(let ct of Ke)if(!aa(ct,ze))return!1}if(W.type==="MultiPolygon"){let ze=Pc(W.coordinates,fe,pe),Ke=Nf(F.geometry(),te,fe,pe);if(!zl(te,fe))return!1;for(let ct of Ke)if(!Oo(ct,ze))return!1}return!0}(S,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let Zc=class{constructor(R=[],S=(F,W)=>FW?1:0){if(this.data=R,this.length=this.data.length,this.compare=S,this.length>0)for(let F=(this.length>>1)-1;F>=0;F--)this._down(F)}push(R){this.data.push(R),this._up(this.length++)}pop(){if(this.length===0)return;let R=this.data[0],S=this.data.pop();return--this.length>0&&(this.data[0]=S,this._down(0)),R}peek(){return this.data[0]}_up(R){let{data:S,compare:F}=this,W=S[R];for(;R>0;){let te=R-1>>1,fe=S[te];if(F(W,fe)>=0)break;S[R]=fe,R=te}S[R]=W}_down(R){let{data:S,compare:F}=this,W=this.length>>1,te=S[R];for(;R=0)break;S[R]=S[fe],R=fe}S[R]=te}};function Kl(R,S,F,W,te){qs(R,S,F,W||R.length-1,te||oc)}function qs(R,S,F,W,te){for(;W>F;){if(W-F>600){var fe=W-F+1,pe=S-F+1,ze=Math.log(fe),Ke=.5*Math.exp(2*ze/3),ct=.5*Math.sqrt(ze*Ke*(fe-Ke)/fe)*(pe-fe/2<0?-1:1);qs(R,S,Math.max(F,Math.floor(S-pe*Ke/fe+ct)),Math.min(W,Math.floor(S+(fe-pe)*Ke/fe+ct)),te)}var Lt=R[S],Qt=F,fr=W;for(yu(R,F,S),te(R[W],Lt)>0&&yu(R,F,W);Qt0;)fr--}te(R[F],Lt)===0?yu(R,F,fr):yu(R,++fr,W),fr<=S&&(F=fr+1),S<=fr&&(W=fr-1)}}function yu(R,S,F){var W=R[S];R[S]=R[F],R[F]=W}function oc(R,S){return RS?1:0}function Cf(R,S){if(R.length<=1)return[R];let F=[],W,te;for(let fe of R){let pe=Nh(fe);pe!==0&&(fe.area=Math.abs(pe),te===void 0&&(te=pe<0),te===pe<0?(W&&F.push(W),W=[fe]):W.push(fe))}if(W&&F.push(W),S>1)for(let fe=0;fe1?(ct=S[Ke+1][0],Lt=S[Ke+1][1]):mr>0&&(ct+=Qt/this.kx*mr,Lt+=fr/this.ky*mr)),Qt=this.wrap(F[0]-ct)*this.kx,fr=(F[1]-Lt)*this.ky;let Pr=Qt*Qt+fr*fr;Pr180;)S-=360;return S}}function Jl(R,S){return S[0]-R[0]}function hl(R){return R[1]-R[0]+1}function lc(R,S){return R[1]>=R[0]&&R[1]R[1])return[null,null];let F=hl(R);if(S){if(F===2)return[R,null];let te=Math.floor(F/2);return[[R[0],R[0]+te],[R[0]+te,R[1]]]}if(F===1)return[R,null];let W=Math.floor(F/2)-1;return[[R[0],R[0]+W],[R[0]+W+1,R[1]]]}function Cs(R,S){if(!lc(S,R.length))return[1/0,1/0,-1/0,-1/0];let F=[1/0,1/0,-1/0,-1/0];for(let W=S[0];W<=S[1];++W)Vu(F,R[W]);return F}function js(R){let S=[1/0,1/0,-1/0,-1/0];for(let F of R)for(let W of F)Vu(S,W);return S}function Go(R){return R[0]!==-1/0&&R[1]!==-1/0&&R[2]!==1/0&&R[3]!==1/0}function gs(R,S,F){if(!Go(R)||!Go(S))return NaN;let W=0,te=0;return R[2]S[2]&&(W=R[0]-S[2]),R[1]>S[3]&&(te=R[1]-S[3]),R[3]=W)return W;if(zl(te,fe)){if(od(R,S))return 0}else if(od(S,R))return 0;let pe=1/0;for(let ze of R)for(let Ke=0,ct=ze.length,Lt=ct-1;Ke0;){let Ke=pe.pop();if(Ke[0]>=fe)continue;let ct=Ke[1],Lt=S?50:100;if(hl(ct)<=Lt){if(!lc(ct,R.length))return NaN;if(S){let Qt=Po(R,ct,F,W);if(isNaN(Qt)||Qt===0)return Qt;fe=Math.min(fe,Qt)}else for(let Qt=ct[0];Qt<=ct[1];++Qt){let fr=ad(R[Qt],F,W);if(fe=Math.min(fe,fr),fe===0)return 0}}else{let Qt=Fu(ct,S);Pa(pe,fe,W,R,ze,Qt[0]),Pa(pe,fe,W,R,ze,Qt[1])}}return fe}function bl(R,S,F,W,te,fe=1/0){let pe=Math.min(fe,te.distance(R[0],F[0]));if(pe===0)return pe;let ze=new Zc([[0,[0,R.length-1],[0,F.length-1]]],Jl);for(;ze.length>0;){let Ke=ze.pop();if(Ke[0]>=pe)continue;let ct=Ke[1],Lt=Ke[2],Qt=S?50:100,fr=W?50:100;if(hl(ct)<=Qt&&hl(Lt)<=fr){if(!lc(ct,R.length)&&lc(Lt,F.length))return NaN;let mr;if(S&&W)mr=Gu(R,ct,F,Lt,te),pe=Math.min(pe,mr);else if(S&&!W){let Pr=R.slice(ct[0],ct[1]+1);for(let zr=Lt[0];zr<=Lt[1];++zr)if(mr=uc(F[zr],Pr,te),pe=Math.min(pe,mr),pe===0)return pe}else if(!S&&W){let Pr=F.slice(Lt[0],Lt[1]+1);for(let zr=ct[0];zr<=ct[1];++zr)if(mr=uc(R[zr],Pr,te),pe=Math.min(pe,mr),pe===0)return pe}else mr=Bs(R,ct,F,Lt,te),pe=Math.min(pe,mr)}else{let mr=Fu(ct,S),Pr=Fu(Lt,W);nf(ze,pe,te,R,F,mr[0],Pr[0]),nf(ze,pe,te,R,F,mr[0],Pr[1]),nf(ze,pe,te,R,F,mr[1],Pr[0]),nf(ze,pe,te,R,F,mr[1],Pr[1])}}return pe}function Vf(R){return R.type==="MultiPolygon"?R.coordinates.map(S=>({type:"Polygon",coordinates:S})):R.type==="MultiLineString"?R.coordinates.map(S=>({type:"LineString",coordinates:S})):R.type==="MultiPoint"?R.coordinates.map(S=>({type:"Point",coordinates:S})):[R]}class Ic{constructor(S,F){this.type=It,this.geojson=S,this.geometries=F}static parse(S,F){if(S.length!==2)return F.error(`'distance' expression requires exactly one argument, but found ${S.length-1} instead.`);if(yn(S[1])){let W=S[1];if(W.type==="FeatureCollection")return new Ic(W,W.features.map(te=>Vf(te.geometry)).flat());if(W.type==="Feature")return new Ic(W,Vf(W.geometry));if("type"in W&&"coordinates"in W)return new Ic(W,Vf(W))}return F.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(S){if(S.geometry()!=null&&S.canonicalID()!=null){if(S.geometryType()==="Point")return function(F,W){let te=F.geometry(),fe=te.flat().map(Ke=>_a([Ke.x,Ke.y],F.canonical));if(te.length===0)return NaN;let pe=new Uf(fe[0][1]),ze=1/0;for(let Ke of W){switch(Ke.type){case"Point":ze=Math.min(ze,bl(fe,!1,[Ke.coordinates],!1,pe,ze));break;case"LineString":ze=Math.min(ze,bl(fe,!1,Ke.coordinates,!0,pe,ze));break;case"Polygon":ze=Math.min(ze,Hu(fe,!1,Ke.coordinates,pe,ze))}if(ze===0)return ze}return ze}(S,this.geometries);if(S.geometryType()==="LineString")return function(F,W){let te=F.geometry(),fe=te.flat().map(Ke=>_a([Ke.x,Ke.y],F.canonical));if(te.length===0)return NaN;let pe=new Uf(fe[0][1]),ze=1/0;for(let Ke of W){switch(Ke.type){case"Point":ze=Math.min(ze,bl(fe,!0,[Ke.coordinates],!1,pe,ze));break;case"LineString":ze=Math.min(ze,bl(fe,!0,Ke.coordinates,!0,pe,ze));break;case"Polygon":ze=Math.min(ze,Hu(fe,!0,Ke.coordinates,pe,ze))}if(ze===0)return ze}return ze}(S,this.geometries);if(S.geometryType()==="Polygon")return function(F,W){let te=F.geometry();if(te.length===0||te[0].length===0)return NaN;let fe=Cf(te,0).map(Ke=>Ke.map(ct=>ct.map(Lt=>_a([Lt.x,Lt.y],F.canonical)))),pe=new Uf(fe[0][0][0][1]),ze=1/0;for(let Ke of W)for(let ct of fe){switch(Ke.type){case"Point":ze=Math.min(ze,Hu([Ke.coordinates],!1,ct,pe,ze));break;case"LineString":ze=Math.min(ze,Hu(Ke.coordinates,!0,ct,pe,ze));break;case"Polygon":ze=Math.min(ze,Yo(ct,Ke.coordinates,pe,ze))}if(ze===0)return ze}return ze}(S,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}let gf={"==":cs,"!=":nl,">":fl,"<":Ss,">=":Os,"<=":Js,array:Fa,at:kr,boolean:Fa,case:Sn,coalesce:zs,collator:Io,format:Zl,image:Su,in:Qr,"index-of":di,interpolate:Co,"interpolate-hcl":Co,"interpolate-lab":Co,length:nc,let:jn,literal:la,match:fn,number:Fa,"number-format":us,object:Fa,slice:En,step:_n,string:Fa,"to-boolean":da,"to-color":da,"to-number":da,"to-string":da,var:At,within:ml,distance:Ic};class ql{constructor(S,F,W,te){this.name=S,this.type=F,this._evaluate=W,this.args=te}evaluate(S){return this._evaluate(S,this.args)}eachChild(S){this.args.forEach(S)}outputDefined(){return!1}static parse(S,F){let W=S[0],te=ql.definitions[W];if(!te)return F.error(`Unknown expression "${W}". If you wanted a literal array, use ["literal", [...]].`,0);let fe=Array.isArray(te)?te[0]:te.type,pe=Array.isArray(te)?[[te[1],te[2]]]:te.overloads,ze=pe.filter(([ct])=>!Array.isArray(ct)||ct.length===S.length-1),Ke=null;for(let[ct,Lt]of ze){Ke=new vo(F.registry,eh,F.path,null,F.scope);let Qt=[],fr=!1;for(let mr=1;mr{return fr=Qt,Array.isArray(fr)?`(${fr.map(Qe).join(", ")})`:`(${Qe(fr.type)}...)`;var fr}).join(" | "),Lt=[];for(let Qt=1;Qt{F=S?F&&eh(W):F&&W instanceof la}),!!F&&th(R)&&Gf(R,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function th(R){if(R instanceof ql&&(R.name==="get"&&R.args.length===1||R.name==="feature-state"||R.name==="has"&&R.args.length===1||R.name==="properties"||R.name==="geometry-type"||R.name==="id"||/^filter-/.test(R.name))||R instanceof ml||R instanceof Ic)return!1;let S=!0;return R.eachChild(F=>{S&&!th(F)&&(S=!1)}),S}function ju(R){if(R instanceof ql&&R.name==="feature-state")return!1;let S=!0;return R.eachChild(F=>{S&&!ju(F)&&(S=!1)}),S}function Gf(R,S){if(R instanceof ql&&S.indexOf(R.name)>=0)return!1;let F=!0;return R.eachChild(W=>{F&&!Gf(W,S)&&(F=!1)}),F}function cc(R){return{result:"success",value:R}}function af(R){return{result:"error",value:R}}function Bl(R){return R["property-type"]==="data-driven"||R["property-type"]==="cross-faded-data-driven"}function Kc(R){return!!R.expression&&R.expression.parameters.indexOf("zoom")>-1}function Rc(R){return!!R.expression&&R.expression.interpolated}function ms(R){return R instanceof Number?"number":R instanceof String?"string":R instanceof Boolean?"boolean":Array.isArray(R)?"array":R===null?"null":typeof R}function Hf(R){return typeof R=="object"&&R!==null&&!Array.isArray(R)}function Uh(R){return R}function rh(R,S){let F=S.type==="color",W=R.stops&&typeof R.stops[0][0]=="object",te=W||!(W||R.property!==void 0),fe=R.type||(Rc(S)?"exponential":"interval");if(F||S.type==="padding"){let Lt=F?ar.parse:$r.parse;(R=$e({},R)).stops&&(R.stops=R.stops.map(Qt=>[Qt[0],Lt(Qt[1])])),R.default=Lt(R.default?R.default:S.default)}if(R.colorSpace&&(pe=R.colorSpace)!=="rgb"&&pe!=="hcl"&&pe!=="lab")throw new Error(`Unknown color space: "${R.colorSpace}"`);var pe;let ze,Ke,ct;if(fe==="exponential")ze=ih;else if(fe==="interval")ze=Mu;else if(fe==="categorical"){ze=xh,Ke=Object.create(null);for(let Lt of R.stops)Ke[Lt[0]]=Lt[1];ct=typeof R.stops[0][0]}else{if(fe!=="identity")throw new Error(`Unknown function type "${fe}"`);ze=Ws}if(W){let Lt={},Qt=[];for(let Pr=0;PrPr[0]),evaluate:({zoom:Pr},zr)=>ih({stops:fr,base:R.base},S,Pr).evaluate(Pr,zr)}}if(te){let Lt=fe==="exponential"?{name:"exponential",base:R.base!==void 0?R.base:1}:null;return{kind:"camera",interpolationType:Lt,interpolationFactor:Co.interpolationFactor.bind(void 0,Lt),zoomStops:R.stops.map(Qt=>Qt[0]),evaluate:({zoom:Qt})=>ze(R,S,Qt,Ke,ct)}}return{kind:"source",evaluate(Lt,Qt){let fr=Qt&&Qt.properties?Qt.properties[R.property]:void 0;return fr===void 0?of(R.default,S.default):ze(R,S,fr,Ke,ct)}}}function of(R,S,F){return R!==void 0?R:S!==void 0?S:F!==void 0?F:void 0}function xh(R,S,F,W,te){return of(typeof F===te?W[F]:void 0,R.default,S.default)}function Mu(R,S,F){if(ms(F)!=="number")return of(R.default,S.default);let W=R.stops.length;if(W===1||F<=R.stops[0][0])return R.stops[0][1];if(F>=R.stops[W-1][0])return R.stops[W-1][1];let te=ki(R.stops.map(fe=>fe[0]),F);return R.stops[te][1]}function ih(R,S,F){let W=R.base!==void 0?R.base:1;if(ms(F)!=="number")return of(R.default,S.default);let te=R.stops.length;if(te===1||F<=R.stops[0][0])return R.stops[0][1];if(F>=R.stops[te-1][0])return R.stops[te-1][1];let fe=ki(R.stops.map(Lt=>Lt[0]),F),pe=function(Lt,Qt,fr,mr){let Pr=mr-fr,zr=Lt-fr;return Pr===0?0:Qt===1?zr/Pr:(Math.pow(Qt,zr)-1)/(Math.pow(Qt,Pr)-1)}(F,W,R.stops[fe][0],R.stops[fe+1][0]),ze=R.stops[fe][1],Ke=R.stops[fe+1][1],ct=Lo[S.type]||Uh;return typeof ze.evaluate=="function"?{evaluate(...Lt){let Qt=ze.evaluate.apply(void 0,Lt),fr=Ke.evaluate.apply(void 0,Lt);if(Qt!==void 0&&fr!==void 0)return ct(Qt,fr,pe,R.colorSpace)}}:ct(ze,Ke,pe,R.colorSpace)}function Ws(R,S,F){switch(S.type){case"color":F=ar.parse(F);break;case"formatted":F=ri.fromString(F.toString());break;case"resolvedImage":F=en.fromString(F.toString());break;case"padding":F=$r.parse(F);break;default:ms(F)===S.type||S.type==="enum"&&S.values[F]||(F=void 0)}return of(F,R.default,S.default)}ql.register(gf,{error:[{kind:"error"},[Ot],(R,[S])=>{throw new ma(S.evaluate(R))}],typeof:[Ot,[wr],(R,[S])=>Qe(Mn(S.evaluate(R)))],"to-rgba":[Ge(It,4),[rr],(R,[S])=>{let[F,W,te,fe]=S.evaluate(R).rgb;return[255*F,255*W,255*te,fe]}],rgb:[rr,[It,It,It],_h],rgba:[rr,[It,It,It,It],_h],has:{type:bt,overloads:[[[Ot],(R,[S])=>Qf(S.evaluate(R),R.properties())],[[Ot,lr],(R,[S,F])=>Qf(S.evaluate(R),F.evaluate(R))]]},get:{type:wr,overloads:[[[Ot],(R,[S])=>mf(S.evaluate(R),R.properties())],[[Ot,lr],(R,[S,F])=>mf(S.evaluate(R),F.evaluate(R))]]},"feature-state":[wr,[Ot],(R,[S])=>mf(S.evaluate(R),R.featureState||{})],properties:[lr,[],R=>R.properties()],"geometry-type":[Ot,[],R=>R.geometryType()],id:[wr,[],R=>R.id()],zoom:[It,[],R=>R.globals.zoom],"heatmap-density":[It,[],R=>R.globals.heatmapDensity||0],"line-progress":[It,[],R=>R.globals.lineProgress||0],accumulated:[wr,[],R=>R.globals.accumulated===void 0?null:R.globals.accumulated],"+":[It,Yc(It),(R,S)=>{let F=0;for(let W of S)F+=W.evaluate(R);return F}],"*":[It,Yc(It),(R,S)=>{let F=1;for(let W of S)F*=W.evaluate(R);return F}],"-":{type:It,overloads:[[[It,It],(R,[S,F])=>S.evaluate(R)-F.evaluate(R)],[[It],(R,[S])=>-S.evaluate(R)]]},"/":[It,[It,It],(R,[S,F])=>S.evaluate(R)/F.evaluate(R)],"%":[It,[It,It],(R,[S,F])=>S.evaluate(R)%F.evaluate(R)],ln2:[It,[],()=>Math.LN2],pi:[It,[],()=>Math.PI],e:[It,[],()=>Math.E],"^":[It,[It,It],(R,[S,F])=>Math.pow(S.evaluate(R),F.evaluate(R))],sqrt:[It,[It],(R,[S])=>Math.sqrt(S.evaluate(R))],log10:[It,[It],(R,[S])=>Math.log(S.evaluate(R))/Math.LN10],ln:[It,[It],(R,[S])=>Math.log(S.evaluate(R))],log2:[It,[It],(R,[S])=>Math.log(S.evaluate(R))/Math.LN2],sin:[It,[It],(R,[S])=>Math.sin(S.evaluate(R))],cos:[It,[It],(R,[S])=>Math.cos(S.evaluate(R))],tan:[It,[It],(R,[S])=>Math.tan(S.evaluate(R))],asin:[It,[It],(R,[S])=>Math.asin(S.evaluate(R))],acos:[It,[It],(R,[S])=>Math.acos(S.evaluate(R))],atan:[It,[It],(R,[S])=>Math.atan(S.evaluate(R))],min:[It,Yc(It),(R,S)=>Math.min(...S.map(F=>F.evaluate(R)))],max:[It,Yc(It),(R,S)=>Math.max(...S.map(F=>F.evaluate(R)))],abs:[It,[It],(R,[S])=>Math.abs(S.evaluate(R))],round:[It,[It],(R,[S])=>{let F=S.evaluate(R);return F<0?-Math.round(-F):Math.round(F)}],floor:[It,[It],(R,[S])=>Math.floor(S.evaluate(R))],ceil:[It,[It],(R,[S])=>Math.ceil(S.evaluate(R))],"filter-==":[bt,[Ot,wr],(R,[S,F])=>R.properties()[S.value]===F.value],"filter-id-==":[bt,[wr],(R,[S])=>R.id()===S.value],"filter-type-==":[bt,[Ot],(R,[S])=>R.geometryType()===S.value],"filter-<":[bt,[Ot,wr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W{let F=R.id(),W=S.value;return typeof F==typeof W&&F":[bt,[Ot,wr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W>te}],"filter-id->":[bt,[wr],(R,[S])=>{let F=R.id(),W=S.value;return typeof F==typeof W&&F>W}],"filter-<=":[bt,[Ot,wr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W<=te}],"filter-id-<=":[bt,[wr],(R,[S])=>{let F=R.id(),W=S.value;return typeof F==typeof W&&F<=W}],"filter->=":[bt,[Ot,wr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W>=te}],"filter-id->=":[bt,[wr],(R,[S])=>{let F=R.id(),W=S.value;return typeof F==typeof W&&F>=W}],"filter-has":[bt,[wr],(R,[S])=>S.value in R.properties()],"filter-has-id":[bt,[],R=>R.id()!==null&&R.id()!==void 0],"filter-type-in":[bt,[Ge(Ot)],(R,[S])=>S.value.indexOf(R.geometryType())>=0],"filter-id-in":[bt,[Ge(wr)],(R,[S])=>S.value.indexOf(R.id())>=0],"filter-in-small":[bt,[Ot,Ge(wr)],(R,[S,F])=>F.value.indexOf(R.properties()[S.value])>=0],"filter-in-large":[bt,[Ot,Ge(wr)],(R,[S,F])=>function(W,te,fe,pe){for(;fe<=pe;){let ze=fe+pe>>1;if(te[ze]===W)return!0;te[ze]>W?pe=ze-1:fe=ze+1}return!1}(R.properties()[S.value],F.value,0,F.value.length-1)],all:{type:bt,overloads:[[[bt,bt],(R,[S,F])=>S.evaluate(R)&&F.evaluate(R)],[Yc(bt),(R,S)=>{for(let F of S)if(!F.evaluate(R))return!1;return!0}]]},any:{type:bt,overloads:[[[bt,bt],(R,[S,F])=>S.evaluate(R)||F.evaluate(R)],[Yc(bt),(R,S)=>{for(let F of S)if(F.evaluate(R))return!0;return!1}]]},"!":[bt,[bt],(R,[S])=>!S.evaluate(R)],"is-supported-script":[bt,[Ot],(R,[S])=>{let F=R.globals&&R.globals.isSupportedScript;return!F||F(S.evaluate(R))}],upcase:[Ot,[Ot],(R,[S])=>S.evaluate(R).toUpperCase()],downcase:[Ot,[Ot],(R,[S])=>S.evaluate(R).toLowerCase()],concat:[Ot,Yc(wr),(R,S)=>S.map(F=>Ba(F.evaluate(R))).join("")],"resolved-locale":[Ot,[Cr],(R,[S])=>S.evaluate(R).resolvedLocale()]});class Eu{constructor(S,F){var W;this.expression=S,this._warningHistory={},this._evaluator=new Ga,this._defaultValue=F?(W=F).type==="color"&&Hf(W.default)?new ar(0,0,0,0):W.type==="color"?ar.parse(W.default)||null:W.type==="padding"?$r.parse(W.default)||null:W.type==="variableAnchorOffsetCollection"?Ji.parse(W.default)||null:W.default===void 0?null:W.default:null,this._enumValues=F&&F.type==="enum"?F.values:null}evaluateWithoutErrorHandling(S,F,W,te,fe,pe){return this._evaluator.globals=S,this._evaluator.feature=F,this._evaluator.featureState=W,this._evaluator.canonical=te,this._evaluator.availableImages=fe||null,this._evaluator.formattedSection=pe,this.expression.evaluate(this._evaluator)}evaluate(S,F,W,te,fe,pe){this._evaluator.globals=S,this._evaluator.feature=F||null,this._evaluator.featureState=W||null,this._evaluator.canonical=te,this._evaluator.availableImages=fe||null,this._evaluator.formattedSection=pe||null;try{let ze=this.expression.evaluate(this._evaluator);if(ze==null||typeof ze=="number"&&ze!=ze)return this._defaultValue;if(this._enumValues&&!(ze in this._enumValues))throw new ma(`Expected value to be one of ${Object.keys(this._enumValues).map(Ke=>JSON.stringify(Ke)).join(", ")}, but found ${JSON.stringify(ze)} instead.`);return ze}catch(ze){return this._warningHistory[ze.message]||(this._warningHistory[ze.message]=!0,typeof console!="undefined"&&console.warn(ze.message)),this._defaultValue}}}function Dc(R){return Array.isArray(R)&&R.length>0&&typeof R[0]=="string"&&R[0]in gf}function ks(R,S){let F=new vo(gf,eh,[],S?function(te){let fe={color:rr,string:Ot,number:It,enum:Ot,boolean:bt,formatted:Kr,padding:Gr,resolvedImage:Yr,variableAnchorOffsetCollection:dt};return te.type==="array"?Ge(fe[te.value]||wr,te.length):fe[te.type]}(S):void 0),W=F.parse(R,void 0,void 0,void 0,S&&S.type==="string"?{typeAnnotation:"coerce"}:void 0);return W?cc(new Eu(W,S)):af(F.errors)}class bc{constructor(S,F){this.kind=S,this._styleExpression=F,this.isStateDependent=S!=="constant"&&!ju(F.expression)}evaluateWithoutErrorHandling(S,F,W,te,fe,pe){return this._styleExpression.evaluateWithoutErrorHandling(S,F,W,te,fe,pe)}evaluate(S,F,W,te,fe,pe){return this._styleExpression.evaluate(S,F,W,te,fe,pe)}}class du{constructor(S,F,W,te){this.kind=S,this.zoomStops=W,this._styleExpression=F,this.isStateDependent=S!=="camera"&&!ju(F.expression),this.interpolationType=te}evaluateWithoutErrorHandling(S,F,W,te,fe,pe){return this._styleExpression.evaluateWithoutErrorHandling(S,F,W,te,fe,pe)}evaluate(S,F,W,te,fe,pe){return this._styleExpression.evaluate(S,F,W,te,fe,pe)}interpolationFactor(S,F,W){return this.interpolationType?Co.interpolationFactor(this.interpolationType,S,F,W):0}}function _u(R,S){let F=ks(R,S);if(F.result==="error")return F;let W=F.value.expression,te=th(W);if(!te&&!Bl(S))return af([new Mt("","data expressions not supported")]);let fe=Gf(W,["zoom"]);if(!fe&&!Kc(S))return af([new Mt("","zoom expressions not supported")]);let pe=nh(W);return pe||fe?pe instanceof Mt?af([pe]):pe instanceof Co&&!Rc(S)?af([new Mt("",'"interpolate" expressions cannot be used with this property')]):cc(pe?new du(te?"camera":"composite",F.value,pe.labels,pe instanceof Co?pe.interpolation:void 0):new bc(te?"constant":"source",F.value)):af([new Mt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class al{constructor(S,F){this._parameters=S,this._specification=F,$e(this,rh(this._parameters,this._specification))}static deserialize(S){return new al(S._parameters,S._specification)}static serialize(S){return{_parameters:S._parameters,_specification:S._specification}}}function nh(R){let S=null;if(R instanceof jn)S=nh(R.result);else if(R instanceof zs){for(let F of R.args)if(S=nh(F),S)break}else(R instanceof _n||R instanceof Co)&&R.input instanceof ql&&R.input.name==="zoom"&&(S=R);return S instanceof Mt||R.eachChild(F=>{let W=nh(F);W instanceof Mt?S=W:!S&&W?S=new Mt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):S&&W&&S!==W&&(S=new Mt("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),S}function bh(R){if(R===!0||R===!1)return!0;if(!Array.isArray(R)||R.length===0)return!1;switch(R[0]){case"has":return R.length>=2&&R[1]!=="$id"&&R[1]!=="$type";case"in":return R.length>=3&&(typeof R[1]!="string"||Array.isArray(R[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return R.length!==3||Array.isArray(R[1])||Array.isArray(R[2]);case"any":case"all":for(let S of R.slice(1))if(!bh(S)&&typeof S!="boolean")return!1;return!0;default:return!0}}let zu={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Fc(R){if(R==null)return{filter:()=>!0,needGeometry:!1};bh(R)||(R=yf(R));let S=ks(R,zu);if(S.result==="error")throw new Error(S.value.map(F=>`${F.key}: ${F.message}`).join(", "));return{filter:(F,W,te)=>S.value.evaluate(F,W,{},te),needGeometry:bd(R)}}function wc(R,S){return RS?1:0}function bd(R){if(!Array.isArray(R))return!1;if(R[0]==="within"||R[0]==="distance")return!0;for(let S=1;S"||S==="<="||S===">="?Lf(R[1],R[2],S):S==="any"?(F=R.slice(1),["any"].concat(F.map(yf))):S==="all"?["all"].concat(R.slice(1).map(yf)):S==="none"?["all"].concat(R.slice(1).map(yf).map(jl)):S==="in"?Ou(R[1],R.slice(2)):S==="!in"?jl(Ou(R[1],R.slice(2))):S==="has"?_f(R[1]):S!=="!has"||jl(_f(R[1]));var F}function Lf(R,S,F){switch(R){case"$type":return[`filter-type-${F}`,S];case"$id":return[`filter-id-${F}`,S];default:return[`filter-${F}`,R,S]}}function Ou(R,S){if(S.length===0)return!1;switch(R){case"$type":return["filter-type-in",["literal",S]];case"$id":return["filter-id-in",["literal",S]];default:return S.length>200&&!S.some(F=>typeof F!=typeof S[0])?["filter-in-large",R,["literal",S.sort(wc)]]:["filter-in-small",R,["literal",S]]}}function _f(R){switch(R){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",R]}}function jl(R){return["!",R]}function sf(R){let S=typeof R;if(S==="number"||S==="boolean"||S==="string"||R==null)return JSON.stringify(R);if(Array.isArray(R)){let te="[";for(let fe of R)te+=`${sf(fe)},`;return`${te}]`}let F=Object.keys(R).sort(),W="{";for(let te=0;teW.maximum?[new ur(S,F,`${F} is greater than the maximum value ${W.maximum}`)]:[]}function xf(R){let S=R.valueSpec,F=Ls(R.value.type),W,te,fe,pe={},ze=F!=="categorical"&&R.value.property===void 0,Ke=!ze,ct=ms(R.value.stops)==="array"&&ms(R.value.stops[0])==="array"&&ms(R.value.stops[0][0])==="object",Lt=Cu({key:R.key,value:R.value,valueSpec:R.styleSpec.function,validateSpec:R.validateSpec,style:R.style,styleSpec:R.styleSpec,objectElementValidators:{stops:function(mr){if(F==="identity")return[new ur(mr.key,mr.value,'identity function may not have a "stops" property')];let Pr=[],zr=mr.value;return Pr=Pr.concat(jf({key:mr.key,value:zr,valueSpec:mr.valueSpec,validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec,arrayElementValidator:Qt})),ms(zr)==="array"&&zr.length===0&&Pr.push(new ur(mr.key,zr,"array must have at least one stop")),Pr},default:function(mr){return mr.validateSpec({key:mr.key,value:mr.value,valueSpec:S,validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec})}}});return F==="identity"&&ze&&Lt.push(new ur(R.key,R.value,'missing required property "property"')),F==="identity"||R.value.stops||Lt.push(new ur(R.key,R.value,'missing required property "stops"')),F==="exponential"&&R.valueSpec.expression&&!Rc(R.valueSpec)&&Lt.push(new ur(R.key,R.value,"exponential functions not supported")),R.styleSpec.$version>=8&&(Ke&&!Bl(R.valueSpec)?Lt.push(new ur(R.key,R.value,"property functions not supported")):ze&&!Kc(R.valueSpec)&&Lt.push(new ur(R.key,R.value,"zoom functions not supported"))),F!=="categorical"&&!ct||R.value.property!==void 0||Lt.push(new ur(R.key,R.value,'"property" property is required')),Lt;function Qt(mr){let Pr=[],zr=mr.value,ui=mr.key;if(ms(zr)!=="array")return[new ur(ui,zr,`array expected, ${ms(zr)} found`)];if(zr.length!==2)return[new ur(ui,zr,`array length 2 expected, length ${zr.length} found`)];if(ct){if(ms(zr[0])!=="object")return[new ur(ui,zr,`object expected, ${ms(zr[0])} found`)];if(zr[0].zoom===void 0)return[new ur(ui,zr,"object stop key must have zoom")];if(zr[0].value===void 0)return[new ur(ui,zr,"object stop key must have value")];if(fe&&fe>Ls(zr[0].zoom))return[new ur(ui,zr[0].zoom,"stop zoom values must appear in ascending order")];Ls(zr[0].zoom)!==fe&&(fe=Ls(zr[0].zoom),te=void 0,pe={}),Pr=Pr.concat(Cu({key:`${ui}[0]`,value:zr[0],valueSpec:{zoom:{}},validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec,objectElementValidators:{zoom:Vs,value:fr}}))}else Pr=Pr.concat(fr({key:`${ui}[0]`,value:zr[0],valueSpec:{},validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec},zr));return Dc(vu(zr[1]))?Pr.concat([new ur(`${ui}[1]`,zr[1],"expressions are not allowed in function stops.")]):Pr.concat(mr.validateSpec({key:`${ui}[1]`,value:zr[1],valueSpec:S,validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec}))}function fr(mr,Pr){let zr=ms(mr.value),ui=Ls(mr.value),yi=mr.value!==null?mr.value:Pr;if(W){if(zr!==W)return[new ur(mr.key,yi,`${zr} stop domain type must match previous stop domain type ${W}`)]}else W=zr;if(zr!=="number"&&zr!=="string"&&zr!=="boolean")return[new ur(mr.key,yi,"stop domain value must be a number, string, or boolean")];if(zr!=="number"&&F!=="categorical"){let dn=`number expected, ${zr} found`;return Bl(S)&&F===void 0&&(dn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new ur(mr.key,yi,dn)]}return F!=="categorical"||zr!=="number"||isFinite(ui)&&Math.floor(ui)===ui?F!=="categorical"&&zr==="number"&&te!==void 0&&uinew ur(`${R.key}${W.key}`,R.value,W.message));let F=S.value.expression||S.value._styleExpression.expression;if(R.expressionContext==="property"&&R.propertyKey==="text-font"&&!F.outputDefined())return[new ur(R.key,R.value,`Invalid data expression for "${R.propertyKey}". Output values must be contained as literals within the expression.`)];if(R.expressionContext==="property"&&R.propertyType==="layout"&&!ju(F))return[new ur(R.key,R.value,'"feature-state" data expressions are not supported with layout properties.')];if(R.expressionContext==="filter"&&!ju(F))return[new ur(R.key,R.value,'"feature-state" data expressions are not supported with filters.')];if(R.expressionContext&&R.expressionContext.indexOf("cluster")===0){if(!Gf(F,["zoom","feature-state"]))return[new ur(R.key,R.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(R.expressionContext==="cluster-initial"&&!th(F))return[new ur(R.key,R.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Wu(R){let S=R.key,F=R.value,W=R.valueSpec,te=[];return Array.isArray(W.values)?W.values.indexOf(Ls(F))===-1&&te.push(new ur(S,F,`expected one of [${W.values.join(", ")}], ${JSON.stringify(F)} found`)):Object.keys(W.values).indexOf(Ls(F))===-1&&te.push(new ur(S,F,`expected one of [${Object.keys(W.values).join(", ")}], ${JSON.stringify(F)} found`)),te}function If(R){return bh(vu(R.value))?zc($e({},R,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Xu(R)}function Xu(R){let S=R.value,F=R.key;if(ms(S)!=="array")return[new ur(F,S,`array expected, ${ms(S)} found`)];let W=R.styleSpec,te,fe=[];if(S.length<1)return[new ur(F,S,"filter array must have at least 1 element")];switch(fe=fe.concat(Wu({key:`${F}[0]`,value:S[0],valueSpec:W.filter_operator,style:R.style,styleSpec:R.styleSpec})),Ls(S[0])){case"<":case"<=":case">":case">=":S.length>=2&&Ls(S[1])==="$type"&&fe.push(new ur(F,S,`"$type" cannot be use with operator "${S[0]}"`));case"==":case"!=":S.length!==3&&fe.push(new ur(F,S,`filter array for operator "${S[0]}" must have 3 elements`));case"in":case"!in":S.length>=2&&(te=ms(S[1]),te!=="string"&&fe.push(new ur(`${F}[1]`,S[1],`string expected, ${te} found`)));for(let pe=2;pe{ct in F&&S.push(new ur(W,F[ct],`"${ct}" is prohibited for ref layers`))}),te.layers.forEach(ct=>{Ls(ct.id)===ze&&(Ke=ct)}),Ke?Ke.ref?S.push(new ur(W,F.ref,"ref cannot reference another ref layer")):pe=Ls(Ke.type):S.push(new ur(W,F.ref,`ref layer "${ze}" not found`))}else if(pe!=="background")if(F.source){let Ke=te.sources&&te.sources[F.source],ct=Ke&&Ls(Ke.type);Ke?ct==="vector"&&pe==="raster"?S.push(new ur(W,F.source,`layer "${F.id}" requires a raster source`)):ct!=="raster-dem"&&pe==="hillshade"?S.push(new ur(W,F.source,`layer "${F.id}" requires a raster-dem source`)):ct==="raster"&&pe!=="raster"?S.push(new ur(W,F.source,`layer "${F.id}" requires a vector source`)):ct!=="vector"||F["source-layer"]?ct==="raster-dem"&&pe!=="hillshade"?S.push(new ur(W,F.source,"raster-dem source can only be used with layer type 'hillshade'.")):pe!=="line"||!F.paint||!F.paint["line-gradient"]||ct==="geojson"&&Ke.lineMetrics||S.push(new ur(W,F,`layer "${F.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):S.push(new ur(W,F,`layer "${F.id}" must specify a "source-layer"`)):S.push(new ur(W,F.source,`source "${F.source}" not found`))}else S.push(new ur(W,F,'missing required property "source"'));return S=S.concat(Cu({key:W,value:F,valueSpec:fe.layer,style:R.style,styleSpec:R.styleSpec,validateSpec:R.validateSpec,objectElementValidators:{"*":()=>[],type:()=>R.validateSpec({key:`${W}.type`,value:F.type,valueSpec:fe.layer.type,style:R.style,styleSpec:R.styleSpec,validateSpec:R.validateSpec,object:F,objectKey:"type"}),filter:If,layout:Ke=>Cu({layer:F,key:Ke.key,value:Ke.value,style:Ke.style,styleSpec:Ke.styleSpec,validateSpec:Ke.validateSpec,objectElementValidators:{"*":ct=>Wl($e({layerType:pe},ct))}}),paint:Ke=>Cu({layer:F,key:Ke.key,value:Ke.value,style:Ke.style,styleSpec:Ke.styleSpec,validateSpec:Ke.validateSpec,objectElementValidators:{"*":ct=>Wf($e({layerType:pe},ct))}})}})),S}function Zu(R){let S=R.value,F=R.key,W=ms(S);return W!=="string"?[new ur(F,S,`string expected, ${W} found`)]:[]}let Oc={promoteId:function({key:R,value:S}){if(ms(S)==="string")return Zu({key:R,value:S});{let F=[];for(let W in S)F.push(...Zu({key:`${R}.${W}`,value:S[W]}));return F}}};function Tc(R){let S=R.value,F=R.key,W=R.styleSpec,te=R.style,fe=R.validateSpec;if(!S.type)return[new ur(F,S,'"type" is required')];let pe=Ls(S.type),ze;switch(pe){case"vector":case"raster":return ze=Cu({key:F,value:S,valueSpec:W[`source_${pe.replace("-","_")}`],style:R.style,styleSpec:W,objectElementValidators:Oc,validateSpec:fe}),ze;case"raster-dem":return ze=function(Ke){var ct;let Lt=(ct=Ke.sourceName)!==null&&ct!==void 0?ct:"",Qt=Ke.value,fr=Ke.styleSpec,mr=fr.source_raster_dem,Pr=Ke.style,zr=[],ui=ms(Qt);if(Qt===void 0)return zr;if(ui!=="object")return zr.push(new ur("source_raster_dem",Qt,`object expected, ${ui} found`)),zr;let yi=Ls(Qt.encoding)==="custom",dn=["redFactor","greenFactor","blueFactor","baseShift"],Fi=Ke.value.encoding?`"${Ke.value.encoding}"`:"Default";for(let ln in Qt)!yi&&dn.includes(ln)?zr.push(new ur(ln,Qt[ln],`In "${Lt}": "${ln}" is only valid when "encoding" is set to "custom". ${Fi} encoding found`)):mr[ln]?zr=zr.concat(Ke.validateSpec({key:ln,value:Qt[ln],valueSpec:mr[ln],validateSpec:Ke.validateSpec,style:Pr,styleSpec:fr})):zr.push(new ur(ln,Qt[ln],`unknown property "${ln}"`));return zr}({sourceName:F,value:S,style:R.style,styleSpec:W,validateSpec:fe}),ze;case"geojson":if(ze=Cu({key:F,value:S,valueSpec:W.source_geojson,style:te,styleSpec:W,validateSpec:fe,objectElementValidators:Oc}),S.cluster)for(let Ke in S.clusterProperties){let[ct,Lt]=S.clusterProperties[Ke],Qt=typeof ct=="string"?[ct,["accumulated"],["get",Ke]]:ct;ze.push(...zc({key:`${F}.${Ke}.map`,value:Lt,validateSpec:fe,expressionContext:"cluster-map"})),ze.push(...zc({key:`${F}.${Ke}.reduce`,value:Qt,validateSpec:fe,expressionContext:"cluster-reduce"}))}return ze;case"video":return Cu({key:F,value:S,valueSpec:W.source_video,style:te,validateSpec:fe,styleSpec:W});case"image":return Cu({key:F,value:S,valueSpec:W.source_image,style:te,validateSpec:fe,styleSpec:W});case"canvas":return[new ur(F,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Wu({key:`${F}.type`,value:S.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:te,validateSpec:fe,styleSpec:W})}}function wl(R){let S=R.value,F=R.styleSpec,W=F.light,te=R.style,fe=[],pe=ms(S);if(S===void 0)return fe;if(pe!=="object")return fe=fe.concat([new ur("light",S,`object expected, ${pe} found`)]),fe;for(let ze in S){let Ke=ze.match(/^(.*)-transition$/);fe=fe.concat(Ke&&W[Ke[1]]&&W[Ke[1]].transition?R.validateSpec({key:ze,value:S[ze],valueSpec:F.transition,validateSpec:R.validateSpec,style:te,styleSpec:F}):W[ze]?R.validateSpec({key:ze,value:S[ze],valueSpec:W[ze],validateSpec:R.validateSpec,style:te,styleSpec:F}):[new ur(ze,S[ze],`unknown property "${ze}"`)])}return fe}function pu(R){let S=R.value,F=R.styleSpec,W=F.sky,te=R.style,fe=ms(S);if(S===void 0)return[];if(fe!=="object")return[new ur("sky",S,`object expected, ${fe} found`)];let pe=[];for(let ze in S)pe=pe.concat(W[ze]?R.validateSpec({key:ze,value:S[ze],valueSpec:W[ze],style:te,styleSpec:F}):[new ur(ze,S[ze],`unknown property "${ze}"`)]);return pe}function qc(R){let S=R.value,F=R.styleSpec,W=F.terrain,te=R.style,fe=[],pe=ms(S);if(S===void 0)return fe;if(pe!=="object")return fe=fe.concat([new ur("terrain",S,`object expected, ${pe} found`)]),fe;for(let ze in S)fe=fe.concat(W[ze]?R.validateSpec({key:ze,value:S[ze],valueSpec:W[ze],validateSpec:R.validateSpec,style:te,styleSpec:F}):[new ur(ze,S[ze],`unknown property "${ze}"`)]);return fe}function uf(R){let S=[],F=R.value,W=R.key;if(Array.isArray(F)){let te=[],fe=[];for(let pe in F)F[pe].id&&te.includes(F[pe].id)&&S.push(new ur(W,F,`all the sprites' ids must be unique, but ${F[pe].id} is duplicated`)),te.push(F[pe].id),F[pe].url&&fe.includes(F[pe].url)&&S.push(new ur(W,F,`all the sprites' URLs must be unique, but ${F[pe].url} is duplicated`)),fe.push(F[pe].url),S=S.concat(Cu({key:`${W}[${pe}]`,value:F[pe],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:R.validateSpec}));return S}return Zu({key:W,value:F})}let fc={"*":()=>[],array:jf,boolean:function(R){let S=R.value,F=R.key,W=ms(S);return W!=="boolean"?[new ur(F,S,`boolean expected, ${W} found`)]:[]},number:Vs,color:function(R){let S=R.key,F=R.value,W=ms(F);return W!=="string"?[new ur(S,F,`color expected, ${W} found`)]:ar.parse(String(F))?[]:[new ur(S,F,`color expected, "${F}" found`)]},constants:Pf,enum:Wu,filter:If,function:xf,layer:ah,object:Cu,source:Tc,light:wl,sky:pu,terrain:qc,projection:function(R){let S=R.value,F=R.styleSpec,W=F.projection,te=R.style,fe=ms(S);if(S===void 0)return[];if(fe!=="object")return[new ur("projection",S,`object expected, ${fe} found`)];let pe=[];for(let ze in S)pe=pe.concat(W[ze]?R.validateSpec({key:ze,value:S[ze],valueSpec:W[ze],style:te,styleSpec:F}):[new ur(ze,S[ze],`unknown property "${ze}"`)]);return pe},string:Zu,formatted:function(R){return Zu(R).length===0?[]:zc(R)},resolvedImage:function(R){return Zu(R).length===0?[]:zc(R)},padding:function(R){let S=R.key,F=R.value;if(ms(F)==="array"){if(F.length<1||F.length>4)return[new ur(S,F,`padding requires 1 to 4 values; ${F.length} values found`)];let W={type:"number"},te=[];for(let fe=0;fe[]}})),R.constants&&(F=F.concat(Pf({key:"constants",value:R.constants,style:R,styleSpec:S,validateSpec:Bc}))),Ar(F)}function Lr(R){return function(S){return R(see(oee({},S),{validateSpec:Bc}))}}function Ar(R){return[].concat(R).sort((S,F)=>S.line-F.line)}function Jr(R){return function(...S){return Ar(R.apply(this,S))}}Xt.source=Jr(Lr(Tc)),Xt.sprite=Jr(Lr(uf)),Xt.glyphs=Jr(Lr(Tt)),Xt.light=Jr(Lr(wl)),Xt.sky=Jr(Lr(pu)),Xt.terrain=Jr(Lr(qc)),Xt.layer=Jr(Lr(ah)),Xt.filter=Jr(Lr(If)),Xt.paintProperty=Jr(Lr(Wf)),Xt.layoutProperty=Jr(Lr(Wl));let Ei=Xt,Wi=Ei.light,hn=Ei.sky,Tn=Ei.paintProperty,Bn=Ei.layoutProperty;function Zi(R,S){let F=!1;if(S&&S.length)for(let W of S)R.fire(new ge(new Error(W.message))),F=!0;return F}class $i{constructor(S,F,W){let te=this.cells=[];if(S instanceof ArrayBuffer){this.arrayBuffer=S;let pe=new Int32Array(this.arrayBuffer);S=pe[0],this.d=(F=pe[1])+2*(W=pe[2]);for(let Ke=0;Ke=Qt[Pr+0]&&te>=Qt[Pr+1])?(ze[mr]=!0,pe.push(Lt[mr])):ze[mr]=!1}}}}_forEachCell(S,F,W,te,fe,pe,ze,Ke){let ct=this._convertToCellCoord(S),Lt=this._convertToCellCoord(F),Qt=this._convertToCellCoord(W),fr=this._convertToCellCoord(te);for(let mr=ct;mr<=Qt;mr++)for(let Pr=Lt;Pr<=fr;Pr++){let zr=this.d*Pr+mr;if((!Ke||Ke(this._convertFromCellCoord(mr),this._convertFromCellCoord(Pr),this._convertFromCellCoord(mr+1),this._convertFromCellCoord(Pr+1)))&&fe.call(this,S,F,W,te,zr,pe,ze,Ke))return}}_convertFromCellCoord(S){return(S-this.padding)/this.scale}_convertToCellCoord(S){return Math.max(0,Math.min(this.d-1,Math.floor(S*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let S=this.cells,F=3+this.cells.length+1+1,W=0;for(let pe=0;pe=0)continue;let pe=R[fe];te[fe]=an[F].shallow.indexOf(fe)>=0?pe:La(pe,S)}R instanceof Error&&(te.message=R.message)}if(te.$name)throw new Error("$name property is reserved for worker serialization logic.");return F!=="Object"&&(te.$name=F),te}function Na(R){if(Ra(R))return R;if(Array.isArray(R))return R.map(Na);if(typeof R!="object")throw new Error("can't deserialize object of type "+typeof R);let S=ka(R)||"Object";if(!an[S])throw new Error(`can't deserialize unregistered class ${S}`);let{klass:F}=an[S];if(!F)throw new Error(`can't deserialize unregistered class ${S}`);if(F.deserialize)return F.deserialize(R);let W=Object.create(F.prototype);for(let te of Object.keys(R)){if(te==="$name")continue;let fe=R[te];W[te]=an[S].shallow.indexOf(te)>=0?fe:Na(fe)}return W}class Yn{constructor(){this.first=!0}update(S,F){let W=Math.floor(S);return this.first?(this.first=!1,this.lastIntegerZoom=W,this.lastIntegerZoomTime=0,this.lastZoom=S,this.lastFloorZoom=W,!0):(this.lastFloorZoom>W?(this.lastIntegerZoom=W+1,this.lastIntegerZoomTime=F):this.lastFloorZoomR>=128&&R<=255,"Hangul Jamo":R=>R>=4352&&R<=4607,Khmer:R=>R>=6016&&R<=6143,"General Punctuation":R=>R>=8192&&R<=8303,"Letterlike Symbols":R=>R>=8448&&R<=8527,"Number Forms":R=>R>=8528&&R<=8591,"Miscellaneous Technical":R=>R>=8960&&R<=9215,"Control Pictures":R=>R>=9216&&R<=9279,"Optical Character Recognition":R=>R>=9280&&R<=9311,"Enclosed Alphanumerics":R=>R>=9312&&R<=9471,"Geometric Shapes":R=>R>=9632&&R<=9727,"Miscellaneous Symbols":R=>R>=9728&&R<=9983,"Miscellaneous Symbols and Arrows":R=>R>=11008&&R<=11263,"Ideographic Description Characters":R=>R>=12272&&R<=12287,"CJK Symbols and Punctuation":R=>R>=12288&&R<=12351,Katakana:R=>R>=12448&&R<=12543,Kanbun:R=>R>=12688&&R<=12703,"CJK Strokes":R=>R>=12736&&R<=12783,"Enclosed CJK Letters and Months":R=>R>=12800&&R<=13055,"CJK Compatibility":R=>R>=13056&&R<=13311,"Yijing Hexagram Symbols":R=>R>=19904&&R<=19967,"Private Use Area":R=>R>=57344&&R<=63743,"Vertical Forms":R=>R>=65040&&R<=65055,"CJK Compatibility Forms":R=>R>=65072&&R<=65103,"Small Form Variants":R=>R>=65104&&R<=65135,"Halfwidth and Fullwidth Forms":R=>R>=65280&&R<=65519};function Ka(R){for(let S of R)if(Ho(S.charCodeAt(0)))return!0;return!1}function bo(R){for(let S of R)if(!os(S.charCodeAt(0)))return!1;return!0}function Xo(R){let S=R.map(F=>{try{return new RegExp(`\\p{sc=${F}}`,"u").source}catch(W){return null}}).filter(F=>F);return new RegExp(S.join("|"),"u")}let Ms=Xo(["Arab","Dupl","Mong","Ougr","Syrc"]);function os(R){return!Ms.test(String.fromCodePoint(R))}let Ts=Xo(["Bopo","Hani","Hira","Kana","Kits","Nshu","Tang","Yiii"]);function Ho(R){return!(R!==746&&R!==747&&(R<4352||!(zn["CJK Compatibility Forms"](R)&&!(R>=65097&&R<=65103)||zn["CJK Compatibility"](R)||zn["CJK Strokes"](R)||!(!zn["CJK Symbols and Punctuation"](R)||R>=12296&&R<=12305||R>=12308&&R<=12319||R===12336)||zn["Enclosed CJK Letters and Months"](R)||zn["Ideographic Description Characters"](R)||zn.Kanbun(R)||zn.Katakana(R)&&R!==12540||!(!zn["Halfwidth and Fullwidth Forms"](R)||R===65288||R===65289||R===65293||R>=65306&&R<=65310||R===65339||R===65341||R===65343||R>=65371&&R<=65503||R===65507||R>=65512&&R<=65519)||!(!zn["Small Form Variants"](R)||R>=65112&&R<=65118||R>=65123&&R<=65126)||zn["Vertical Forms"](R)||zn["Yijing Hexagram Symbols"](R)||new RegExp("\\p{sc=Cans}","u").test(String.fromCodePoint(R))||new RegExp("\\p{sc=Hang}","u").test(String.fromCodePoint(R))||Ts.test(String.fromCodePoint(R)))))}function yl(R){return!(Ho(R)||function(S){return!!(zn["Latin-1 Supplement"](S)&&(S===167||S===169||S===174||S===177||S===188||S===189||S===190||S===215||S===247)||zn["General Punctuation"](S)&&(S===8214||S===8224||S===8225||S===8240||S===8241||S===8251||S===8252||S===8258||S===8263||S===8264||S===8265||S===8273)||zn["Letterlike Symbols"](S)||zn["Number Forms"](S)||zn["Miscellaneous Technical"](S)&&(S>=8960&&S<=8967||S>=8972&&S<=8991||S>=8996&&S<=9e3||S===9003||S>=9085&&S<=9114||S>=9150&&S<=9165||S===9167||S>=9169&&S<=9179||S>=9186&&S<=9215)||zn["Control Pictures"](S)&&S!==9251||zn["Optical Character Recognition"](S)||zn["Enclosed Alphanumerics"](S)||zn["Geometric Shapes"](S)||zn["Miscellaneous Symbols"](S)&&!(S>=9754&&S<=9759)||zn["Miscellaneous Symbols and Arrows"](S)&&(S>=11026&&S<=11055||S>=11088&&S<=11097||S>=11192&&S<=11243)||zn["CJK Symbols and Punctuation"](S)||zn.Katakana(S)||zn["Private Use Area"](S)||zn["CJK Compatibility Forms"](S)||zn["Small Form Variants"](S)||zn["Halfwidth and Fullwidth Forms"](S)||S===8734||S===8756||S===8757||S>=9984&&S<=10087||S>=10102&&S<=10131||S===65532||S===65533)}(R))}let Xs=Xo(["Adlm","Arab","Armi","Avst","Chrs","Cprt","Egyp","Elym","Gara","Hatr","Hebr","Hung","Khar","Lydi","Mand","Mani","Mend","Merc","Mero","Narb","Nbat","Nkoo","Orkh","Palm","Phli","Phlp","Phnx","Prti","Rohg","Samr","Sarb","Sogo","Syrc","Thaa","Todr","Yezi"]);function Ps(R){return Xs.test(String.fromCodePoint(R))}function va(R,S){return!(!S&&Ps(R)||R>=2304&&R<=3583||R>=3840&&R<=4255||zn.Khmer(R))}function no(R){for(let S of R)if(Ps(S.charCodeAt(0)))return!0;return!1}let _s=new class{constructor(){this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null}setState(R){this.pluginStatus=R.pluginStatus,this.pluginURL=R.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(R){this.applyArabicShaping=R.applyArabicShaping,this.processBidirectionalText=R.processBidirectionalText,this.processStyledBidirectionalText=R.processStyledBidirectionalText}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getPluginURL(){return this.pluginURL}getRTLTextPluginStatus(){return this.pluginStatus}};class is{constructor(S,F){this.zoom=S,F?(this.now=F.now,this.fadeDuration=F.fadeDuration,this.zoomHistory=F.zoomHistory,this.transition=F.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Yn,this.transition={})}isSupportedScript(S){return function(F,W){for(let te of F)if(!va(te.charCodeAt(0),W))return!1;return!0}(S,_s.getRTLTextPluginStatus()==="loaded")}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let S=this.zoom,F=S-Math.floor(S),W=this.crossFadingFactor();return S>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:F+(1-F)*W}:{fromScale:.5,toScale:1,t:1-(1-W)*F}}}class $l{constructor(S,F){this.property=S,this.value=F,this.expression=function(W,te){if(Hf(W))return new al(W,te);if(Dc(W)){let fe=_u(W,te);if(fe.result==="error")throw new Error(fe.value.map(pe=>`${pe.key}: ${pe.message}`).join(", "));return fe.value}{let fe=W;return te.type==="color"&&typeof W=="string"?fe=ar.parse(W):te.type!=="padding"||typeof W!="number"&&!Array.isArray(W)?te.type==="variableAnchorOffsetCollection"&&Array.isArray(W)&&(fe=Ji.parse(W)):fe=$r.parse(W),{kind:"constant",evaluate:()=>fe}}}(F===void 0?S.specification.default:F,S.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(S,F,W){return this.property.possiblyEvaluate(this,S,F,W)}}class ku{constructor(S){this.property=S,this.value=new $l(S,void 0)}transitioned(S,F){return new Nc(this.property,this.value,F,L({},S.transition,this.transition),S.now)}untransitioned(){return new Nc(this.property,this.value,null,{},0)}}class Yu{constructor(S){this._properties=S,this._values=Object.create(S.defaultTransitionablePropertyValues)}getValue(S){return g(this._values[S].value.value)}setValue(S,F){Object.prototype.hasOwnProperty.call(this._values,S)||(this._values[S]=new ku(this._values[S].property)),this._values[S].value=new $l(this._values[S].property,F===null?void 0:g(F))}getTransition(S){return g(this._values[S].transition)}setTransition(S,F){Object.prototype.hasOwnProperty.call(this._values,S)||(this._values[S]=new ku(this._values[S].property)),this._values[S].transition=g(F)||void 0}serialize(){let S={};for(let F of Object.keys(this._values)){let W=this.getValue(F);W!==void 0&&(S[F]=W);let te=this.getTransition(F);te!==void 0&&(S[`${F}-transition`]=te)}return S}transitioned(S,F){let W=new gu(this._properties);for(let te of Object.keys(this._values))W._values[te]=this._values[te].transitioned(S,F._values[te]);return W}untransitioned(){let S=new gu(this._properties);for(let F of Object.keys(this._values))S._values[F]=this._values[F].untransitioned();return S}}class Nc{constructor(S,F,W,te,fe){this.property=S,this.value=F,this.begin=fe+te.delay||0,this.end=this.begin+te.duration||0,S.specification.transition&&(te.delay||te.duration)&&(this.prior=W)}possiblyEvaluate(S,F,W){let te=S.now||0,fe=this.value.possiblyEvaluate(S,F,W),pe=this.prior;if(pe){if(te>this.end)return this.prior=null,fe;if(this.value.isDataDriven())return this.prior=null,fe;if(te=1)return 1;let ct=Ke*Ke,Lt=ct*Ke;return 4*(Ke<.5?Lt:3*(Ke-ct)+Lt-.75)}(ze))}}return fe}}class gu{constructor(S){this._properties=S,this._values=Object.create(S.defaultTransitioningPropertyValues)}possiblyEvaluate(S,F,W){let te=new Ac(this._properties);for(let fe of Object.keys(this._values))te._values[fe]=this._values[fe].possiblyEvaluate(S,F,W);return te}hasTransition(){for(let S of Object.keys(this._values))if(this._values[S].prior)return!0;return!1}}class Uc{constructor(S){this._properties=S,this._values=Object.create(S.defaultPropertyValues)}hasValue(S){return this._values[S].value!==void 0}getValue(S){return g(this._values[S].value)}setValue(S,F){this._values[S]=new $l(this._values[S].property,F===null?void 0:g(F))}serialize(){let S={};for(let F of Object.keys(this._values)){let W=this.getValue(F);W!==void 0&&(S[F]=W)}return S}possiblyEvaluate(S,F,W){let te=new Ac(this._properties);for(let fe of Object.keys(this._values))te._values[fe]=this._values[fe].possiblyEvaluate(S,F,W);return te}}class xu{constructor(S,F,W){this.property=S,this.value=F,this.parameters=W}isConstant(){return this.value.kind==="constant"}constantOr(S){return this.value.kind==="constant"?this.value.value:S}evaluate(S,F,W,te){return this.property.evaluate(this.value,this.parameters,S,F,W,te)}}class Ac{constructor(S){this._properties=S,this._values=Object.create(S.defaultPossiblyEvaluatedValues)}get(S){return this._values[S]}}class Ua{constructor(S){this.specification=S}possiblyEvaluate(S,F){if(S.isDataDriven())throw new Error("Value should not be data driven");return S.expression.evaluate(F)}interpolate(S,F,W){let te=Lo[this.specification.type];return te?te(S,F,W):S}}class oo{constructor(S,F){this.specification=S,this.overrides=F}possiblyEvaluate(S,F,W,te){return new xu(this,S.expression.kind==="constant"||S.expression.kind==="camera"?{kind:"constant",value:S.expression.evaluate(F,null,{},W,te)}:S.expression,F)}interpolate(S,F,W){if(S.value.kind!=="constant"||F.value.kind!=="constant")return S;if(S.value.value===void 0||F.value.value===void 0)return new xu(this,{kind:"constant",value:void 0},S.parameters);let te=Lo[this.specification.type];if(te){let fe=te(S.value.value,F.value.value,W);return new xu(this,{kind:"constant",value:fe},S.parameters)}return S}evaluate(S,F,W,te,fe,pe){return S.kind==="constant"?S.value:S.evaluate(F,W,te,fe,pe)}}class Vc extends oo{possiblyEvaluate(S,F,W,te){if(S.value===void 0)return new xu(this,{kind:"constant",value:void 0},F);if(S.expression.kind==="constant"){let fe=S.expression.evaluate(F,null,{},W,te),pe=S.property.specification.type==="resolvedImage"&&typeof fe!="string"?fe.name:fe,ze=this._calculate(pe,pe,pe,F);return new xu(this,{kind:"constant",value:ze},F)}if(S.expression.kind==="camera"){let fe=this._calculate(S.expression.evaluate({zoom:F.zoom-1}),S.expression.evaluate({zoom:F.zoom}),S.expression.evaluate({zoom:F.zoom+1}),F);return new xu(this,{kind:"constant",value:fe},F)}return new xu(this,S.expression,F)}evaluate(S,F,W,te,fe,pe){if(S.kind==="source"){let ze=S.evaluate(F,W,te,fe,pe);return this._calculate(ze,ze,ze,F)}return S.kind==="composite"?this._calculate(S.evaluate({zoom:Math.floor(F.zoom)-1},W,te),S.evaluate({zoom:Math.floor(F.zoom)},W,te),S.evaluate({zoom:Math.floor(F.zoom)+1},W,te),F):S.value}_calculate(S,F,W,te){return te.zoom>te.zoomHistory.lastIntegerZoom?{from:S,to:F}:{from:W,to:F}}interpolate(S){return S}}class hc{constructor(S){this.specification=S}possiblyEvaluate(S,F,W,te){if(S.value!==void 0){if(S.expression.kind==="constant"){let fe=S.expression.evaluate(F,null,{},W,te);return this._calculate(fe,fe,fe,F)}return this._calculate(S.expression.evaluate(new is(Math.floor(F.zoom-1),F)),S.expression.evaluate(new is(Math.floor(F.zoom),F)),S.expression.evaluate(new is(Math.floor(F.zoom+1),F)),F)}}_calculate(S,F,W,te){return te.zoom>te.zoomHistory.lastIntegerZoom?{from:S,to:F}:{from:W,to:F}}interpolate(S){return S}}class Ku{constructor(S){this.specification=S}possiblyEvaluate(S,F,W,te){return!!S.expression.evaluate(F,null,{},W,te)}interpolate(){return!1}}class ue{constructor(S){this.properties=S,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let F in S){let W=S[F];W.specification.overridable&&this.overridableProperties.push(F);let te=this.defaultPropertyValues[F]=new $l(W,void 0),fe=this.defaultTransitionablePropertyValues[F]=new ku(W);this.defaultTransitioningPropertyValues[F]=fe.untransitioned(),this.defaultPossiblyEvaluatedValues[F]=te.possiblyEvaluate({})}}}Di("DataDrivenProperty",oo),Di("DataConstantProperty",Ua),Di("CrossFadedDataDrivenProperty",Vc),Di("CrossFadedProperty",hc),Di("ColorRampProperty",Ku);let w="-transition";class B extends De{constructor(S,F){if(super(),this.id=S.id,this.type=S.type,this._featureFilter={filter:()=>!0,needGeometry:!1},S.type!=="custom"&&(this.metadata=S.metadata,this.minzoom=S.minzoom,this.maxzoom=S.maxzoom,S.type!=="background"&&(this.source=S.source,this.sourceLayer=S["source-layer"],this.filter=S.filter),F.layout&&(this._unevaluatedLayout=new Uc(F.layout)),F.paint)){this._transitionablePaint=new Yu(F.paint);for(let W in S.paint)this.setPaintProperty(W,S.paint[W],{validate:!1});for(let W in S.layout)this.setLayoutProperty(W,S.layout[W],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Ac(F.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(S){return S==="visibility"?this.visibility:this._unevaluatedLayout.getValue(S)}setLayoutProperty(S,F,W={}){F!=null&&this._validate(Bn,`layers.${this.id}.layout.${S}`,S,F,W)||(S!=="visibility"?this._unevaluatedLayout.setValue(S,F):this.visibility=F)}getPaintProperty(S){return S.endsWith(w)?this._transitionablePaint.getTransition(S.slice(0,-11)):this._transitionablePaint.getValue(S)}setPaintProperty(S,F,W={}){if(F!=null&&this._validate(Tn,`layers.${this.id}.paint.${S}`,S,F,W))return!1;if(S.endsWith(w))return this._transitionablePaint.setTransition(S.slice(0,-11),F||void 0),!1;{let te=this._transitionablePaint._values[S],fe=te.property.specification["property-type"]==="cross-faded-data-driven",pe=te.value.isDataDriven(),ze=te.value;this._transitionablePaint.setValue(S,F),this._handleSpecialPaintPropertyUpdate(S);let Ke=this._transitionablePaint._values[S].value;return Ke.isDataDriven()||pe||fe||this._handleOverridablePaintPropertyUpdate(S,ze,Ke)}}_handleSpecialPaintPropertyUpdate(S){}_handleOverridablePaintPropertyUpdate(S,F,W){return!1}isHidden(S){return!!(this.minzoom&&S=this.maxzoom)||this.visibility==="none"}updateTransitions(S){this._transitioningPaint=this._transitionablePaint.transitioned(S,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(S,F){S.getCrossfadeParameters&&(this._crossfadeParameters=S.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(S,void 0,F)),this.paint=this._transitioningPaint.possiblyEvaluate(S,void 0,F)}serialize(){let S={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(S.layout=S.layout||{},S.layout.visibility=this.visibility),M(S,(F,W)=>!(F===void 0||W==="layout"&&!Object.keys(F).length||W==="paint"&&!Object.keys(F).length))}_validate(S,F,W,te,fe={}){return(!fe||fe.validate!==!1)&&Zi(this,S.call(Ei,{key:F,layerType:this.type,objectKey:W,value:te,styleSpec:ce,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let S in this.paint._values){let F=this.paint.get(S);if(F instanceof xu&&Bl(F.property.specification)&&(F.value.kind==="source"||F.value.kind==="composite")&&F.value.isStateDependent)return!0}return!1}}let Q={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class ee{constructor(S,F){this._structArray=S,this._pos1=F*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class le{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(S,F){return S._trim(),F&&(S.isTransferred=!0,F.push(S.arrayBuffer)),{length:S.length,arrayBuffer:S.arrayBuffer}}static deserialize(S){let F=Object.create(this.prototype);return F.arrayBuffer=S.arrayBuffer,F.length=S.length,F.capacity=S.arrayBuffer.byteLength/F.bytesPerElement,F._refreshViews(),F}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(S){this.reserve(S),this.length=S}reserve(S){if(S>this.capacity){this.capacity=Math.max(S,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let F=this.uint8;this._refreshViews(),F&&this.uint8.set(F)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function qe(R,S=1){let F=0,W=0;return{members:R.map(te=>{let fe=Q[te.type].BYTES_PER_ELEMENT,pe=F=Xe(F,Math.max(S,fe)),ze=te.components||1;return W=Math.max(W,fe),F+=fe*ze,{name:te.name,type:te.type,components:ze,offset:pe}}),size:Xe(F,Math.max(W,S)),alignment:S}}function Xe(R,S){return Math.ceil(R/S)*S}class ot extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F){let W=this.length;return this.resize(W+1),this.emplace(W,S,F)}emplace(S,F,W){let te=2*S;return this.int16[te+0]=F,this.int16[te+1]=W,S}}ot.prototype.bytesPerElement=4,Di("StructArrayLayout2i4",ot);class wt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.int16[fe+0]=F,this.int16[fe+1]=W,this.int16[fe+2]=te,S}}wt.prototype.bytesPerElement=6,Di("StructArrayLayout3i6",wt);class Yt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te){let fe=this.length;return this.resize(fe+1),this.emplace(fe,S,F,W,te)}emplace(S,F,W,te,fe){let pe=4*S;return this.int16[pe+0]=F,this.int16[pe+1]=W,this.int16[pe+2]=te,this.int16[pe+3]=fe,S}}Yt.prototype.bytesPerElement=8,Di("StructArrayLayout4i8",Yt);class Jt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let ze=this.length;return this.resize(ze+1),this.emplace(ze,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,ze){let Ke=6*S;return this.int16[Ke+0]=F,this.int16[Ke+1]=W,this.int16[Ke+2]=te,this.int16[Ke+3]=fe,this.int16[Ke+4]=pe,this.int16[Ke+5]=ze,S}}Jt.prototype.bytesPerElement=12,Di("StructArrayLayout2i4i12",Jt);class xr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let ze=this.length;return this.resize(ze+1),this.emplace(ze,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,ze){let Ke=4*S,ct=8*S;return this.int16[Ke+0]=F,this.int16[Ke+1]=W,this.uint8[ct+4]=te,this.uint8[ct+5]=fe,this.uint8[ct+6]=pe,this.uint8[ct+7]=ze,S}}xr.prototype.bytesPerElement=8,Di("StructArrayLayout2i4ub8",xr);class Ir extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F){let W=this.length;return this.resize(W+1),this.emplace(W,S,F)}emplace(S,F,W){let te=2*S;return this.float32[te+0]=F,this.float32[te+1]=W,S}}Ir.prototype.bytesPerElement=8,Di("StructArrayLayout2f8",Ir);class ve extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,ze,Ke,ct,Lt){let Qt=this.length;return this.resize(Qt+1),this.emplace(Qt,S,F,W,te,fe,pe,ze,Ke,ct,Lt)}emplace(S,F,W,te,fe,pe,ze,Ke,ct,Lt,Qt){let fr=10*S;return this.uint16[fr+0]=F,this.uint16[fr+1]=W,this.uint16[fr+2]=te,this.uint16[fr+3]=fe,this.uint16[fr+4]=pe,this.uint16[fr+5]=ze,this.uint16[fr+6]=Ke,this.uint16[fr+7]=ct,this.uint16[fr+8]=Lt,this.uint16[fr+9]=Qt,S}}ve.prototype.bytesPerElement=20,Di("StructArrayLayout10ui20",ve);class be extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,ze,Ke,ct,Lt,Qt,fr){let mr=this.length;return this.resize(mr+1),this.emplace(mr,S,F,W,te,fe,pe,ze,Ke,ct,Lt,Qt,fr)}emplace(S,F,W,te,fe,pe,ze,Ke,ct,Lt,Qt,fr,mr){let Pr=12*S;return this.int16[Pr+0]=F,this.int16[Pr+1]=W,this.int16[Pr+2]=te,this.int16[Pr+3]=fe,this.uint16[Pr+4]=pe,this.uint16[Pr+5]=ze,this.uint16[Pr+6]=Ke,this.uint16[Pr+7]=ct,this.int16[Pr+8]=Lt,this.int16[Pr+9]=Qt,this.int16[Pr+10]=fr,this.int16[Pr+11]=mr,S}}be.prototype.bytesPerElement=24,Di("StructArrayLayout4i4ui4i24",be);class Re extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.float32[fe+0]=F,this.float32[fe+1]=W,this.float32[fe+2]=te,S}}Re.prototype.bytesPerElement=12,Di("StructArrayLayout3f12",Re);class Be extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(S){let F=this.length;return this.resize(F+1),this.emplace(F,S)}emplace(S,F){return this.uint32[1*S+0]=F,S}}Be.prototype.bytesPerElement=4,Di("StructArrayLayout1ul4",Be);class tt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,ze,Ke,ct){let Lt=this.length;return this.resize(Lt+1),this.emplace(Lt,S,F,W,te,fe,pe,ze,Ke,ct)}emplace(S,F,W,te,fe,pe,ze,Ke,ct,Lt){let Qt=10*S,fr=5*S;return this.int16[Qt+0]=F,this.int16[Qt+1]=W,this.int16[Qt+2]=te,this.int16[Qt+3]=fe,this.int16[Qt+4]=pe,this.int16[Qt+5]=ze,this.uint32[fr+3]=Ke,this.uint16[Qt+8]=ct,this.uint16[Qt+9]=Lt,S}}tt.prototype.bytesPerElement=20,Di("StructArrayLayout6i1ul2ui20",tt);class We extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let ze=this.length;return this.resize(ze+1),this.emplace(ze,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,ze){let Ke=6*S;return this.int16[Ke+0]=F,this.int16[Ke+1]=W,this.int16[Ke+2]=te,this.int16[Ke+3]=fe,this.int16[Ke+4]=pe,this.int16[Ke+5]=ze,S}}We.prototype.bytesPerElement=12,Di("StructArrayLayout2i2i2i12",We);class it extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe){let pe=this.length;return this.resize(pe+1),this.emplace(pe,S,F,W,te,fe)}emplace(S,F,W,te,fe,pe){let ze=4*S,Ke=8*S;return this.float32[ze+0]=F,this.float32[ze+1]=W,this.float32[ze+2]=te,this.int16[Ke+6]=fe,this.int16[Ke+7]=pe,S}}it.prototype.bytesPerElement=16,Di("StructArrayLayout2f1f2i16",it);class Ft extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let ze=this.length;return this.resize(ze+1),this.emplace(ze,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,ze){let Ke=16*S,ct=4*S,Lt=8*S;return this.uint8[Ke+0]=F,this.uint8[Ke+1]=W,this.float32[ct+1]=te,this.float32[ct+2]=fe,this.int16[Lt+6]=pe,this.int16[Lt+7]=ze,S}}Ft.prototype.bytesPerElement=16,Di("StructArrayLayout2ub2f2i16",Ft);class jt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.uint16[fe+0]=F,this.uint16[fe+1]=W,this.uint16[fe+2]=te,S}}jt.prototype.bytesPerElement=6,Di("StructArrayLayout3ui6",jt);class tr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,ze,Ke,ct,Lt,Qt,fr,mr,Pr,zr,ui,yi){let dn=this.length;return this.resize(dn+1),this.emplace(dn,S,F,W,te,fe,pe,ze,Ke,ct,Lt,Qt,fr,mr,Pr,zr,ui,yi)}emplace(S,F,W,te,fe,pe,ze,Ke,ct,Lt,Qt,fr,mr,Pr,zr,ui,yi,dn){let Fi=24*S,ln=12*S,An=48*S;return this.int16[Fi+0]=F,this.int16[Fi+1]=W,this.uint16[Fi+2]=te,this.uint16[Fi+3]=fe,this.uint32[ln+2]=pe,this.uint32[ln+3]=ze,this.uint32[ln+4]=Ke,this.uint16[Fi+10]=ct,this.uint16[Fi+11]=Lt,this.uint16[Fi+12]=Qt,this.float32[ln+7]=fr,this.float32[ln+8]=mr,this.uint8[An+36]=Pr,this.uint8[An+37]=zr,this.uint8[An+38]=ui,this.uint32[ln+10]=yi,this.int16[Fi+22]=dn,S}}tr.prototype.bytesPerElement=48,Di("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",tr);class dr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,ze,Ke,ct,Lt,Qt,fr,mr,Pr,zr,ui,yi,dn,Fi,ln,An,pa,ro,Vo,Xa,sa,Mo,fo){let lo=this.length;return this.resize(lo+1),this.emplace(lo,S,F,W,te,fe,pe,ze,Ke,ct,Lt,Qt,fr,mr,Pr,zr,ui,yi,dn,Fi,ln,An,pa,ro,Vo,Xa,sa,Mo,fo)}emplace(S,F,W,te,fe,pe,ze,Ke,ct,Lt,Qt,fr,mr,Pr,zr,ui,yi,dn,Fi,ln,An,pa,ro,Vo,Xa,sa,Mo,fo,lo){let Xn=32*S,Ro=16*S;return this.int16[Xn+0]=F,this.int16[Xn+1]=W,this.int16[Xn+2]=te,this.int16[Xn+3]=fe,this.int16[Xn+4]=pe,this.int16[Xn+5]=ze,this.int16[Xn+6]=Ke,this.int16[Xn+7]=ct,this.uint16[Xn+8]=Lt,this.uint16[Xn+9]=Qt,this.uint16[Xn+10]=fr,this.uint16[Xn+11]=mr,this.uint16[Xn+12]=Pr,this.uint16[Xn+13]=zr,this.uint16[Xn+14]=ui,this.uint16[Xn+15]=yi,this.uint16[Xn+16]=dn,this.uint16[Xn+17]=Fi,this.uint16[Xn+18]=ln,this.uint16[Xn+19]=An,this.uint16[Xn+20]=pa,this.uint16[Xn+21]=ro,this.uint16[Xn+22]=Vo,this.uint32[Ro+12]=Xa,this.float32[Ro+13]=sa,this.float32[Ro+14]=Mo,this.uint16[Xn+30]=fo,this.uint16[Xn+31]=lo,S}}dr.prototype.bytesPerElement=64,Di("StructArrayLayout8i15ui1ul2f2ui64",dr);class Sr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S){let F=this.length;return this.resize(F+1),this.emplace(F,S)}emplace(S,F){return this.float32[1*S+0]=F,S}}Sr.prototype.bytesPerElement=4,Di("StructArrayLayout1f4",Sr);class Or extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.uint16[6*S+0]=F,this.float32[fe+1]=W,this.float32[fe+2]=te,S}}Or.prototype.bytesPerElement=12,Di("StructArrayLayout1ui2f12",Or);class jr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=4*S;return this.uint32[2*S+0]=F,this.uint16[fe+2]=W,this.uint16[fe+3]=te,S}}jr.prototype.bytesPerElement=8,Di("StructArrayLayout1ul2ui8",jr);class ii extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F){let W=this.length;return this.resize(W+1),this.emplace(W,S,F)}emplace(S,F,W){let te=2*S;return this.uint16[te+0]=F,this.uint16[te+1]=W,S}}ii.prototype.bytesPerElement=4,Di("StructArrayLayout2ui4",ii);class Li extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S){let F=this.length;return this.resize(F+1),this.emplace(F,S)}emplace(S,F){return this.uint16[1*S+0]=F,S}}Li.prototype.bytesPerElement=2,Di("StructArrayLayout1ui2",Li);class un extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W,te){let fe=this.length;return this.resize(fe+1),this.emplace(fe,S,F,W,te)}emplace(S,F,W,te,fe){let pe=4*S;return this.float32[pe+0]=F,this.float32[pe+1]=W,this.float32[pe+2]=te,this.float32[pe+3]=fe,S}}un.prototype.bytesPerElement=16,Di("StructArrayLayout4f16",un);class sn extends ee{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new u(this.anchorPointX,this.anchorPointY)}}sn.prototype.size=20;class Pn extends tt{get(S){return new sn(this,S)}}Di("CollisionBoxArray",Pn);class Kn extends ee{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(S){this._structArray.uint8[this._pos1+37]=S}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(S){this._structArray.uint8[this._pos1+38]=S}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(S){this._structArray.uint32[this._pos4+10]=S}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}Kn.prototype.size=48;class Aa extends tr{get(S){return new Kn(this,S)}}Di("PlacedSymbolArray",Aa);class fa extends ee{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(S){this._structArray.uint32[this._pos4+12]=S}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}fa.prototype.size=64;class $a extends dr{get(S){return new fa(this,S)}}Di("SymbolInstanceArray",$a);class ko extends Sr{getoffsetX(S){return this.float32[1*S+0]}}Di("GlyphOffsetArray",ko);class Qa extends wt{getx(S){return this.int16[3*S+0]}gety(S){return this.int16[3*S+1]}gettileUnitDistanceFromAnchor(S){return this.int16[3*S+2]}}Di("SymbolLineVertexArray",Qa);class mo extends ee{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}mo.prototype.size=12;class Bo extends Or{get(S){return new mo(this,S)}}Di("TextAnchorOffsetArray",Bo);class Is extends ee{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}Is.prototype.size=8;class As extends jr{get(S){return new Is(this,S)}}Di("FeatureIndexArray",As);class wo extends ot{}class To extends ot{}class dl extends ot{}class Nl extends Jt{}class Lu extends xr{}class ou extends Ir{}class $s extends ve{}class Ql extends be{}class dc extends Re{}class Tl extends Be{}class Al extends We{}class X extends Ft{}class se extends jt{}class Te extends ii{}let Ne=qe([{name:"a_pos",components:2,type:"Int16"}],4),{members:He}=Ne;class Ye{constructor(S=[]){this.segments=S}prepareSegment(S,F,W,te){let fe=this.segments[this.segments.length-1];return S>Ye.MAX_VERTEX_ARRAY_LENGTH&&T(`Max vertices per segment is ${Ye.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${S}`),(!fe||fe.vertexLength+S>Ye.MAX_VERTEX_ARRAY_LENGTH||fe.sortKey!==te)&&(fe={vertexOffset:F.length,primitiveOffset:W.length,vertexLength:0,primitiveLength:0},te!==void 0&&(fe.sortKey=te),this.segments.push(fe)),fe}get(){return this.segments}destroy(){for(let S of this.segments)for(let F in S.vaos)S.vaos[F].destroy()}static simpleSegment(S,F,W,te){return new Ye([{vertexOffset:S,primitiveOffset:F,vertexLength:W,primitiveLength:te,vaos:{},sortKey:0}])}}function Et(R,S){return 256*(R=E(Math.floor(R),0,255))+E(Math.floor(S),0,255)}Ye.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Di("SegmentVector",Ye);let nt=qe([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var Wt={exports:{}},gr={exports:{}};gr.exports=function(R,S){var F,W,te,fe,pe,ze,Ke,ct;for(W=R.length-(F=3&R.length),te=S,pe=3432918353,ze=461845907,ct=0;ct>>16)*pe&65535)<<16)&4294967295)<<15|Ke>>>17))*ze+(((Ke>>>16)*ze&65535)<<16)&4294967295)<<13|te>>>19))+((5*(te>>>16)&65535)<<16)&4294967295))+((58964+(fe>>>16)&65535)<<16);switch(Ke=0,F){case 3:Ke^=(255&R.charCodeAt(ct+2))<<16;case 2:Ke^=(255&R.charCodeAt(ct+1))<<8;case 1:te^=Ke=(65535&(Ke=(Ke=(65535&(Ke^=255&R.charCodeAt(ct)))*pe+(((Ke>>>16)*pe&65535)<<16)&4294967295)<<15|Ke>>>17))*ze+(((Ke>>>16)*ze&65535)<<16)&4294967295}return te^=R.length,te=2246822507*(65535&(te^=te>>>16))+((2246822507*(te>>>16)&65535)<<16)&4294967295,te=3266489909*(65535&(te^=te>>>13))+((3266489909*(te>>>16)&65535)<<16)&4294967295,(te^=te>>>16)>>>0};var yr=gr.exports,Vr={exports:{}};Vr.exports=function(R,S){for(var F,W=R.length,te=S^W,fe=0;W>=4;)F=1540483477*(65535&(F=255&R.charCodeAt(fe)|(255&R.charCodeAt(++fe))<<8|(255&R.charCodeAt(++fe))<<16|(255&R.charCodeAt(++fe))<<24))+((1540483477*(F>>>16)&65535)<<16),te=1540483477*(65535&te)+((1540483477*(te>>>16)&65535)<<16)^(F=1540483477*(65535&(F^=F>>>24))+((1540483477*(F>>>16)&65535)<<16)),W-=4,++fe;switch(W){case 3:te^=(255&R.charCodeAt(fe+2))<<16;case 2:te^=(255&R.charCodeAt(fe+1))<<8;case 1:te=1540483477*(65535&(te^=255&R.charCodeAt(fe)))+((1540483477*(te>>>16)&65535)<<16)}return te=1540483477*(65535&(te^=te>>>13))+((1540483477*(te>>>16)&65535)<<16),(te^=te>>>15)>>>0};var qr=yr,_i=Vr.exports;Wt.exports=qr,Wt.exports.murmur3=qr,Wt.exports.murmur2=_i;var bi=o(Wt.exports);class Wr{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(S,F,W,te){this.ids.push(ni(S)),this.positions.push(F,W,te)}getPositions(S){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");let F=ni(S),W=0,te=this.ids.length-1;for(;W>1;this.ids[pe]>=F?te=pe:W=pe+1}let fe=[];for(;this.ids[W]===F;)fe.push({index:this.positions[3*W],start:this.positions[3*W+1],end:this.positions[3*W+2]}),W++;return fe}static serialize(S,F){let W=new Float64Array(S.ids),te=new Uint32Array(S.positions);return pi(W,te,0,W.length-1),F&&F.push(W.buffer,te.buffer),{ids:W,positions:te}}static deserialize(S){let F=new Wr;return F.ids=S.ids,F.positions=S.positions,F.indexed=!0,F}}function ni(R){let S=+R;return!isNaN(S)&&S<=Number.MAX_SAFE_INTEGER?S:bi(String(R))}function pi(R,S,F,W){for(;F>1],fe=F-1,pe=W+1;for(;;){do fe++;while(R[fe]te);if(fe>=pe)break;Pi(R,fe,pe),Pi(S,3*fe,3*pe),Pi(S,3*fe+1,3*pe+1),Pi(S,3*fe+2,3*pe+2)}pe-F`u_${te}`),this.type=W}setUniform(S,F,W){S.set(W.constantOr(this.value))}getBinding(S,F,W){return this.type==="color"?new Cn(S,F):new ti(S,F)}}class Ia{constructor(S,F){this.uniformNames=F.map(W=>`u_${W}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(S,F){this.pixelRatioFrom=F.pixelRatio,this.pixelRatioTo=S.pixelRatio,this.patternFrom=F.tlbr,this.patternTo=S.tlbr}setUniform(S,F,W,te){let fe=te==="u_pattern_to"?this.patternTo:te==="u_pattern_from"?this.patternFrom:te==="u_pixel_ratio_to"?this.pixelRatioTo:te==="u_pixel_ratio_from"?this.pixelRatioFrom:null;fe&&S.set(fe)}getBinding(S,F,W){return W.substr(0,9)==="u_pattern"?new In(S,F):new ti(S,F)}}class yo{constructor(S,F,W,te){this.expression=S,this.type=W,this.maxValue=0,this.paintVertexAttributes=F.map(fe=>({name:`a_${fe}`,type:"Float32",components:W==="color"?2:1,offset:0})),this.paintVertexArray=new te}populatePaintArray(S,F,W,te,fe){let pe=this.paintVertexArray.length,ze=this.expression.evaluate(new is(0),F,{},te,[],fe);this.paintVertexArray.resize(S),this._setPaintValue(pe,S,ze)}updatePaintArray(S,F,W,te){let fe=this.expression.evaluate({zoom:0},W,te);this._setPaintValue(S,F,fe)}_setPaintValue(S,F,W){if(this.type==="color"){let te=ia(W);for(let fe=S;fe`u_${ze}_t`),this.type=W,this.useIntegerZoom=te,this.zoom=fe,this.maxValue=0,this.paintVertexAttributes=F.map(ze=>({name:`a_${ze}`,type:"Float32",components:W==="color"?4:2,offset:0})),this.paintVertexArray=new pe}populatePaintArray(S,F,W,te,fe){let pe=this.expression.evaluate(new is(this.zoom),F,{},te,[],fe),ze=this.expression.evaluate(new is(this.zoom+1),F,{},te,[],fe),Ke=this.paintVertexArray.length;this.paintVertexArray.resize(S),this._setPaintValue(Ke,S,pe,ze)}updatePaintArray(S,F,W,te){let fe=this.expression.evaluate({zoom:this.zoom},W,te),pe=this.expression.evaluate({zoom:this.zoom+1},W,te);this._setPaintValue(S,F,fe,pe)}_setPaintValue(S,F,W,te){if(this.type==="color"){let fe=ia(W),pe=ia(te);for(let ze=S;ze`#define HAS_UNIFORM_${te}`))}return S}getBinderAttributes(){let S=[];for(let F in this.binders){let W=this.binders[F];if(W instanceof yo||W instanceof Da)for(let te=0;te!0){this.programConfigurations={};for(let te of S)this.programConfigurations[te.id]=new Rs(te,F,W);this.needsUpload=!1,this._featureMap=new Wr,this._bufferOffset=0}populatePaintArrays(S,F,W,te,fe,pe){for(let ze in this.programConfigurations)this.programConfigurations[ze].populatePaintArrays(S,F,te,fe,pe);F.id!==void 0&&this._featureMap.add(F.id,W,this._bufferOffset,S),this._bufferOffset=S,this.needsUpload=!0}updatePaintArrays(S,F,W,te){for(let fe of W)this.needsUpload=this.programConfigurations[fe.id].updatePaintArrays(S,this._featureMap,F,fe,te)||this.needsUpload}get(S){return this.programConfigurations[S]}upload(S){if(this.needsUpload){for(let F in this.programConfigurations)this.programConfigurations[F].upload(S);this.needsUpload=!1}}destroy(){for(let S in this.programConfigurations)this.programConfigurations[S].destroy()}}function Zs(R,S){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[R]||[R.replace(`${S}-`,"").replace(/-/g,"_")]}function Gn(R,S,F){let W={color:{source:Ir,composite:un},number:{source:Sr,composite:Ir}},te=function(fe){return{"line-pattern":{source:$s,composite:$s},"fill-pattern":{source:$s,composite:$s},"fill-extrusion-pattern":{source:$s,composite:$s}}[fe]}(R);return te&&te[F]||W[S][F]}Di("ConstantBinder",Ea),Di("CrossFadedConstantBinder",Ia),Di("SourceExpressionBinder",yo),Di("CrossFadedCompositeBinder",go),Di("CompositeExpressionBinder",Da),Di("ProgramConfiguration",Rs,{omit:["_buffers"]}),Di("ProgramConfigurationSet",Es);let Ha=8192,Fo=Math.pow(2,14)-1,Uo=-Fo-1;function Qs(R){let S=Ha/R.extent,F=R.loadGeometry();for(let W=0;Wpe.x+1||Kepe.y+1)&&T("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return F}function Sl(R,S){return{type:R.type,id:R.id,properties:R.properties,geometry:S?Qs(R):[]}}function bu(R,S,F,W,te){R.emplaceBack(2*S+(W+1)/2,2*F+(te+1)/2)}class vl{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(F=>F.id),this.index=S.index,this.hasPattern=!1,this.layoutVertexArray=new To,this.indexArray=new se,this.segments=new Ye,this.programConfigurations=new Es(S.layers,S.zoom),this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){let te=this.layers[0],fe=[],pe=null,ze=!1;te.type==="circle"&&(pe=te.layout.get("circle-sort-key"),ze=!pe.isConstant());for(let{feature:Ke,id:ct,index:Lt,sourceLayerIndex:Qt}of S){let fr=this.layers[0]._featureFilter.needGeometry,mr=Sl(Ke,fr);if(!this.layers[0]._featureFilter.filter(new is(this.zoom),mr,W))continue;let Pr=ze?pe.evaluate(mr,{},W):void 0,zr={id:ct,properties:Ke.properties,type:Ke.type,sourceLayerIndex:Qt,index:Lt,geometry:fr?mr.geometry:Qs(Ke),patterns:{},sortKey:Pr};fe.push(zr)}ze&&fe.sort((Ke,ct)=>Ke.sortKey-ct.sortKey);for(let Ke of fe){let{geometry:ct,index:Lt,sourceLayerIndex:Qt}=Ke,fr=S[Lt].feature;this.addFeature(Ke,ct,Lt,W),F.featureIndex.insert(fr,ct,Lt,Qt,this.index)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,He),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(S,F,W,te){for(let fe of F)for(let pe of fe){let ze=pe.x,Ke=pe.y;if(ze<0||ze>=Ha||Ke<0||Ke>=Ha)continue;let ct=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,S.sortKey),Lt=ct.vertexLength;bu(this.layoutVertexArray,ze,Ke,-1,-1),bu(this.layoutVertexArray,ze,Ke,1,-1),bu(this.layoutVertexArray,ze,Ke,1,1),bu(this.layoutVertexArray,ze,Ke,-1,1),this.indexArray.emplaceBack(Lt,Lt+1,Lt+2),this.indexArray.emplaceBack(Lt,Lt+3,Lt+2),ct.vertexLength+=4,ct.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,S,W,{},te)}}function Sc(R,S){for(let F=0;F1){if(Rr(R,S))return!0;for(let W=0;W1?F:F.sub(S)._mult(te)._add(S))}function gi(R,S){let F,W,te,fe=!1;for(let pe=0;peS.y!=te.y>S.y&&S.x<(te.x-W.x)*(S.y-W.y)/(te.y-W.y)+W.x&&(fe=!fe)}return fe}function Ni(R,S){let F=!1;for(let W=0,te=R.length-1;WS.y!=pe.y>S.y&&S.x<(pe.x-fe.x)*(S.y-fe.y)/(pe.y-fe.y)+fe.x&&(F=!F)}return F}function Oi(R,S,F){let W=F[0],te=F[2];if(R.xte.x&&S.x>te.x||R.yte.y&&S.y>te.y)return!1;let fe=z(R,S,F[0]);return fe!==z(R,S,F[1])||fe!==z(R,S,F[2])||fe!==z(R,S,F[3])}function Mi(R,S,F){let W=S.paint.get(R).value;return W.kind==="constant"?W.value:F.programConfigurations.get(S.id).getMaxValue(R)}function Hn(R){return Math.sqrt(R[0]*R[0]+R[1]*R[1])}function Qi(R,S,F,W,te){if(!S[0]&&!S[1])return R;let fe=u.convert(S)._mult(te);F==="viewport"&&fe._rotate(-W);let pe=[];for(let ze=0;zeli(ui,zr))}(ct,Ke),mr=Qt?Lt*ze:Lt;for(let Pr of te)for(let zr of Pr){let ui=Qt?zr:li(zr,Ke),yi=mr,dn=qn([],[zr.x,zr.y,0,1],Ke);if(this.paint.get("circle-pitch-scale")==="viewport"&&this.paint.get("circle-pitch-alignment")==="map"?yi*=dn[3]/pe.cameraToCenterDistance:this.paint.get("circle-pitch-scale")==="map"&&this.paint.get("circle-pitch-alignment")==="viewport"&&(yi*=pe.cameraToCenterDistance/dn[3]),Ee(fr,ui,yi))return!0}return!1}}function li(R,S){let F=qn([],[R.x,R.y,0,1],S);return new u(F[0]/F[3],F[1]/F[3])}class mn extends vl{}let Ki;Di("HeatmapBucket",mn,{omit:["layers"]});var Ui={get paint(){return Ki=Ki||new ue({"heatmap-radius":new oo(ce.paint_heatmap["heatmap-radius"]),"heatmap-weight":new oo(ce.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Ua(ce.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Ku(ce.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Ua(ce.paint_heatmap["heatmap-opacity"])})}};function Bi(R,{width:S,height:F},W,te){if(te){if(te instanceof Uint8ClampedArray)te=new Uint8Array(te.buffer);else if(te.length!==S*F*W)throw new RangeError(`mismatched image size. expected: ${te.length} but got: ${S*F*W}`)}else te=new Uint8Array(S*F*W);return R.width=S,R.height=F,R.data=te,R}function vn(R,{width:S,height:F},W){if(S===R.width&&F===R.height)return;let te=Bi({},{width:S,height:F},W);Un(R,te,{x:0,y:0},{x:0,y:0},{width:Math.min(R.width,S),height:Math.min(R.height,F)},W),R.width=S,R.height=F,R.data=te.data}function Un(R,S,F,W,te,fe){if(te.width===0||te.height===0)return S;if(te.width>R.width||te.height>R.height||F.x>R.width-te.width||F.y>R.height-te.height)throw new RangeError("out of range source coordinates for image copy");if(te.width>S.width||te.height>S.height||W.x>S.width-te.width||W.y>S.height-te.height)throw new RangeError("out of range destination coordinates for image copy");let pe=R.data,ze=S.data;if(pe===ze)throw new Error("srcData equals dstData, so image is already copied");for(let Ke=0;Ke{S[R.evaluationKey]=Ke;let ct=R.expression.evaluate(S);te.data[pe+ze+0]=Math.floor(255*ct.r/ct.a),te.data[pe+ze+1]=Math.floor(255*ct.g/ct.a),te.data[pe+ze+2]=Math.floor(255*ct.b/ct.a),te.data[pe+ze+3]=Math.floor(255*ct.a)};if(R.clips)for(let pe=0,ze=0;pe80*F){ze=1/0,Ke=1/0;let Lt=-1/0,Qt=-1/0;for(let fr=F;frLt&&(Lt=mr),Pr>Qt&&(Qt=Pr)}ct=Math.max(Lt-ze,Qt-Ke),ct=ct!==0?32767/ct:0}return Ul(fe,pe,F,ze,Ke,ct,0),pe}function el(R,S,F,W,te){let fe;if(te===function(pe,ze,Ke,ct){let Lt=0;for(let Qt=ze,fr=Ke-ct;Qt0)for(let pe=S;pe=S;pe-=W)fe=Bt(pe/W|0,R[pe],R[pe+1],fe);return fe&&ne(fe,fe.next)&&(Ve(fe),fe=fe.next),fe}function ol(R,S){if(!R)return R;S||(S=R);let F,W=R;do if(F=!1,W.steiner||!ne(W,W.next)&&de(W.prev,W,W.next)!==0)W=W.next;else{if(Ve(W),W=S=W.prev,W===W.next)break;F=!0}while(F||W!==S);return S}function Ul(R,S,F,W,te,fe,pe){if(!R)return;!pe&&fe&&function(Ke,ct,Lt,Qt){let fr=Ke;do fr.z===0&&(fr.z=D(fr.x,fr.y,ct,Lt,Qt)),fr.prevZ=fr.prev,fr.nextZ=fr.next,fr=fr.next;while(fr!==Ke);fr.prevZ.nextZ=null,fr.prevZ=null,function(mr){let Pr,zr=1;do{let ui,yi=mr;mr=null;let dn=null;for(Pr=0;yi;){Pr++;let Fi=yi,ln=0;for(let pa=0;pa0||An>0&&Fi;)ln!==0&&(An===0||!Fi||yi.z<=Fi.z)?(ui=yi,yi=yi.nextZ,ln--):(ui=Fi,Fi=Fi.nextZ,An--),dn?dn.nextZ=ui:mr=ui,ui.prevZ=dn,dn=ui;yi=Fi}dn.nextZ=null,zr*=2}while(Pr>1)}(fr)}(R,W,te,fe);let ze=R;for(;R.prev!==R.next;){let Ke=R.prev,ct=R.next;if(fe?Gs(R,W,te,fe):ss(R))S.push(Ke.i,R.i,ct.i),Ve(R),R=ct.next,ze=ct.next;else if((R=ct)===ze){pe?pe===1?Ul(R=Ks(ol(R),S),S,F,W,te,fe,2):pe===2&&Ta(R,S,F,W,te,fe):Ul(ol(R),S,F,W,te,fe,1);break}}}function ss(R){let S=R.prev,F=R,W=R.next;if(de(S,F,W)>=0)return!1;let te=S.x,fe=F.x,pe=W.x,ze=S.y,Ke=F.y,ct=W.y,Lt=tefe?te>pe?te:pe:fe>pe?fe:pe,mr=ze>Ke?ze>ct?ze:ct:Ke>ct?Ke:ct,Pr=W.next;for(;Pr!==S;){if(Pr.x>=Lt&&Pr.x<=fr&&Pr.y>=Qt&&Pr.y<=mr&&q(te,ze,fe,Ke,pe,ct,Pr.x,Pr.y)&&de(Pr.prev,Pr,Pr.next)>=0)return!1;Pr=Pr.next}return!0}function Gs(R,S,F,W){let te=R.prev,fe=R,pe=R.next;if(de(te,fe,pe)>=0)return!1;let ze=te.x,Ke=fe.x,ct=pe.x,Lt=te.y,Qt=fe.y,fr=pe.y,mr=zeKe?ze>ct?ze:ct:Ke>ct?Ke:ct,ui=Lt>Qt?Lt>fr?Lt:fr:Qt>fr?Qt:fr,yi=D(mr,Pr,S,F,W),dn=D(zr,ui,S,F,W),Fi=R.prevZ,ln=R.nextZ;for(;Fi&&Fi.z>=yi&&ln&&ln.z<=dn;){if(Fi.x>=mr&&Fi.x<=zr&&Fi.y>=Pr&&Fi.y<=ui&&Fi!==te&&Fi!==pe&&q(ze,Lt,Ke,Qt,ct,fr,Fi.x,Fi.y)&&de(Fi.prev,Fi,Fi.next)>=0||(Fi=Fi.prevZ,ln.x>=mr&&ln.x<=zr&&ln.y>=Pr&&ln.y<=ui&&ln!==te&&ln!==pe&&q(ze,Lt,Ke,Qt,ct,fr,ln.x,ln.y)&&de(ln.prev,ln,ln.next)>=0))return!1;ln=ln.nextZ}for(;Fi&&Fi.z>=yi;){if(Fi.x>=mr&&Fi.x<=zr&&Fi.y>=Pr&&Fi.y<=ui&&Fi!==te&&Fi!==pe&&q(ze,Lt,Ke,Qt,ct,fr,Fi.x,Fi.y)&&de(Fi.prev,Fi,Fi.next)>=0)return!1;Fi=Fi.prevZ}for(;ln&&ln.z<=dn;){if(ln.x>=mr&&ln.x<=zr&&ln.y>=Pr&&ln.y<=ui&&ln!==te&&ln!==pe&&q(ze,Lt,Ke,Qt,ct,fr,ln.x,ln.y)&&de(ln.prev,ln,ln.next)>=0)return!1;ln=ln.nextZ}return!0}function Ks(R,S){let F=R;do{let W=F.prev,te=F.next.next;!ne(W,te)&&we(W,F,F.next,te)&&Zt(W,te)&&Zt(te,W)&&(S.push(W.i,F.i,te.i),Ve(F),Ve(F.next),F=R=te),F=F.next}while(F!==R);return ol(F)}function Ta(R,S,F,W,te,fe){let pe=R;do{let ze=pe.next.next;for(;ze!==pe.prev;){if(pe.i!==ze.i&&K(pe,ze)){let Ke=hr(pe,ze);return pe=ol(pe,pe.next),Ke=ol(Ke,Ke.next),Ul(pe,S,F,W,te,fe,0),void Ul(Ke,S,F,W,te,fe,0)}ze=ze.next}pe=pe.next}while(pe!==R)}function sl(R,S){return R.x-S.x}function io(R,S){let F=function(te,fe){let pe=fe,ze=te.x,Ke=te.y,ct,Lt=-1/0;do{if(Ke<=pe.y&&Ke>=pe.next.y&&pe.next.y!==pe.y){let zr=pe.x+(Ke-pe.y)*(pe.next.x-pe.x)/(pe.next.y-pe.y);if(zr<=ze&&zr>Lt&&(Lt=zr,ct=pe.x=pe.x&&pe.x>=fr&&ze!==pe.x&&q(Kect.x||pe.x===ct.x&&Y(ct,pe)))&&(ct=pe,Pr=zr)}pe=pe.next}while(pe!==Qt);return ct}(R,S);if(!F)return S;let W=hr(F,R);return ol(W,W.next),ol(F,F.next)}function Y(R,S){return de(R.prev,R,S.prev)<0&&de(S.next,R,R.next)<0}function D(R,S,F,W,te){return(R=1431655765&((R=858993459&((R=252645135&((R=16711935&((R=(R-F)*te|0)|R<<8))|R<<4))|R<<2))|R<<1))|(S=1431655765&((S=858993459&((S=252645135&((S=16711935&((S=(S-W)*te|0)|S<<8))|S<<4))|S<<2))|S<<1))<<1}function J(R){let S=R,F=R;do(S.x=(R-pe)*(fe-ze)&&(R-pe)*(W-ze)>=(F-pe)*(S-ze)&&(F-pe)*(fe-ze)>=(te-pe)*(W-ze)}function K(R,S){return R.next.i!==S.i&&R.prev.i!==S.i&&!function(F,W){let te=F;do{if(te.i!==F.i&&te.next.i!==F.i&&te.i!==W.i&&te.next.i!==W.i&&we(te,te.next,F,W))return!0;te=te.next}while(te!==F);return!1}(R,S)&&(Zt(R,S)&&Zt(S,R)&&function(F,W){let te=F,fe=!1,pe=(F.x+W.x)/2,ze=(F.y+W.y)/2;do te.y>ze!=te.next.y>ze&&te.next.y!==te.y&&pe<(te.next.x-te.x)*(ze-te.y)/(te.next.y-te.y)+te.x&&(fe=!fe),te=te.next;while(te!==F);return fe}(R,S)&&(de(R.prev,R,S.prev)||de(R,S.prev,S))||ne(R,S)&&de(R.prev,R,R.next)>0&&de(S.prev,S,S.next)>0)}function de(R,S,F){return(S.y-R.y)*(F.x-S.x)-(S.x-R.x)*(F.y-S.y)}function ne(R,S){return R.x===S.x&&R.y===S.y}function we(R,S,F,W){let te=ft(de(R,S,F)),fe=ft(de(R,S,W)),pe=ft(de(F,W,R)),ze=ft(de(F,W,S));return te!==fe&&pe!==ze||!(te!==0||!Ue(R,F,S))||!(fe!==0||!Ue(R,W,S))||!(pe!==0||!Ue(F,R,W))||!(ze!==0||!Ue(F,S,W))}function Ue(R,S,F){return S.x<=Math.max(R.x,F.x)&&S.x>=Math.min(R.x,F.x)&&S.y<=Math.max(R.y,F.y)&&S.y>=Math.min(R.y,F.y)}function ft(R){return R>0?1:R<0?-1:0}function Zt(R,S){return de(R.prev,R,R.next)<0?de(R,S,R.next)>=0&&de(R,R.prev,S)>=0:de(R,S,R.prev)<0||de(R,R.next,S)<0}function hr(R,S){let F=et(R.i,R.x,R.y),W=et(S.i,S.x,S.y),te=R.next,fe=S.prev;return R.next=S,S.prev=R,F.next=te,te.prev=F,W.next=F,F.prev=W,fe.next=W,W.prev=fe,W}function Bt(R,S,F,W){let te=et(R,S,F);return W?(te.next=W.next,te.prev=W,W.next.prev=te,W.next=te):(te.prev=te,te.next=te),te}function Ve(R){R.next.prev=R.prev,R.prev.next=R.next,R.prevZ&&(R.prevZ.nextZ=R.nextZ),R.nextZ&&(R.nextZ.prevZ=R.prevZ)}function et(R,S,F){return{i:R,x:S,y:F,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function at(R,S,F){let W=F.patternDependencies,te=!1;for(let fe of S){let pe=fe.paint.get(`${R}-pattern`);pe.isConstant()||(te=!0);let ze=pe.constantOr(null);ze&&(te=!0,W[ze.to]=!0,W[ze.from]=!0)}return te}function kt(R,S,F,W,te){let fe=te.patternDependencies;for(let pe of S){let ze=pe.paint.get(`${R}-pattern`).value;if(ze.kind!=="constant"){let Ke=ze.evaluate({zoom:W-1},F,{},te.availableImages),ct=ze.evaluate({zoom:W},F,{},te.availableImages),Lt=ze.evaluate({zoom:W+1},F,{},te.availableImages);Ke=Ke&&Ke.name?Ke.name:Ke,ct=ct&&ct.name?ct.name:ct,Lt=Lt&&Lt.name?Lt.name:Lt,fe[Ke]=!0,fe[ct]=!0,fe[Lt]=!0,F.patterns[pe.id]={min:Ke,mid:ct,max:Lt}}}return F}class qt{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(F=>F.id),this.index=S.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new dl,this.indexArray=new se,this.indexArray2=new Te,this.programConfigurations=new Es(S.layers,S.zoom),this.segments=new Ye,this.segments2=new Ye,this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){this.hasPattern=at("fill",this.layers,F);let te=this.layers[0].layout.get("fill-sort-key"),fe=!te.isConstant(),pe=[];for(let{feature:ze,id:Ke,index:ct,sourceLayerIndex:Lt}of S){let Qt=this.layers[0]._featureFilter.needGeometry,fr=Sl(ze,Qt);if(!this.layers[0]._featureFilter.filter(new is(this.zoom),fr,W))continue;let mr=fe?te.evaluate(fr,{},W,F.availableImages):void 0,Pr={id:Ke,properties:ze.properties,type:ze.type,sourceLayerIndex:Lt,index:ct,geometry:Qt?fr.geometry:Qs(ze),patterns:{},sortKey:mr};pe.push(Pr)}fe&&pe.sort((ze,Ke)=>ze.sortKey-Ke.sortKey);for(let ze of pe){let{geometry:Ke,index:ct,sourceLayerIndex:Lt}=ze;if(this.hasPattern){let Qt=kt("fill",this.layers,ze,this.zoom,F);this.patternFeatures.push(Qt)}else this.addFeature(ze,Ke,ct,W,{});F.featureIndex.insert(S[ct].feature,Ke,ct,Lt,this.index)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}addFeatures(S,F,W){for(let te of this.patternFeatures)this.addFeature(te,te.geometry,te.index,F,W)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,Ml),this.indexBuffer=S.createIndexBuffer(this.indexArray),this.indexBuffer2=S.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(S,F,W,te,fe){for(let pe of Cf(F,500)){let ze=0;for(let mr of pe)ze+=mr.length;let Ke=this.segments.prepareSegment(ze,this.layoutVertexArray,this.indexArray),ct=Ke.vertexLength,Lt=[],Qt=[];for(let mr of pe){if(mr.length===0)continue;mr!==pe[0]&&Qt.push(Lt.length/2);let Pr=this.segments2.prepareSegment(mr.length,this.layoutVertexArray,this.indexArray2),zr=Pr.vertexLength;this.layoutVertexArray.emplaceBack(mr[0].x,mr[0].y),this.indexArray2.emplaceBack(zr+mr.length-1,zr),Lt.push(mr[0].x),Lt.push(mr[0].y);for(let ui=1;ui>3}if(te--,W===1||W===2)fe+=R.readSVarint(),pe+=R.readSVarint(),W===1&&(S&&ze.push(S),S=[]),S.push(new Nr(fe,pe));else{if(W!==7)throw new Error("unknown command "+W);S&&S.push(S[0].clone())}}return S&&ze.push(S),ze},fi.prototype.bbox=function(){var R=this._pbf;R.pos=this._geometry;for(var S=R.readVarint()+R.pos,F=1,W=0,te=0,fe=0,pe=1/0,ze=-1/0,Ke=1/0,ct=-1/0;R.pos>3}if(W--,F===1||F===2)(te+=R.readSVarint())ze&&(ze=te),(fe+=R.readSVarint())ct&&(ct=fe);else if(F!==7)throw new Error("unknown command "+F)}return[pe,Ke,ze,ct]},fi.prototype.toGeoJSON=function(R,S,F){var W,te,fe=this.extent*Math.pow(2,F),pe=this.extent*R,ze=this.extent*S,Ke=this.loadGeometry(),ct=fi.types[this.type];function Lt(mr){for(var Pr=0;Pr>3;te=pe===1?W.readString():pe===2?W.readFloat():pe===3?W.readDouble():pe===4?W.readVarint64():pe===5?W.readVarint():pe===6?W.readSVarint():pe===7?W.readBoolean():null}return te}(F))}qi.prototype.feature=function(R){if(R<0||R>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[R];var S=this._pbf.readVarint()+this._pbf.pos;return new tn(this._pbf,S,this.extent,this._keys,this._values)};var on=Ci;function On(R,S,F){if(R===3){var W=new on(F,F.readVarint()+F.pos);W.length&&(S[W.name]=W)}}br.VectorTile=function(R,S){this.layers=R.readFields(On,{},S)},br.VectorTileFeature=Ri,br.VectorTileLayer=Ci;let Ja=br.VectorTileFeature.types,co=Math.pow(2,13);function ts(R,S,F,W,te,fe,pe,ze){R.emplaceBack(S,F,2*Math.floor(W*co)+pe,te*co*2,fe*co*2,Math.round(ze))}class so{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(F=>F.id),this.index=S.index,this.hasPattern=!1,this.layoutVertexArray=new Nl,this.centroidVertexArray=new wo,this.indexArray=new se,this.programConfigurations=new Es(S.layers,S.zoom),this.segments=new Ye,this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){this.features=[],this.hasPattern=at("fill-extrusion",this.layers,F);for(let{feature:te,id:fe,index:pe,sourceLayerIndex:ze}of S){let Ke=this.layers[0]._featureFilter.needGeometry,ct=Sl(te,Ke);if(!this.layers[0]._featureFilter.filter(new is(this.zoom),ct,W))continue;let Lt={id:fe,sourceLayerIndex:ze,index:pe,geometry:Ke?ct.geometry:Qs(te),properties:te.properties,type:te.type,patterns:{}};this.hasPattern?this.features.push(kt("fill-extrusion",this.layers,Lt,this.zoom,F)):this.addFeature(Lt,Lt.geometry,pe,W,{}),F.featureIndex.insert(te,Lt.geometry,pe,ze,this.index,!0)}}addFeatures(S,F,W){for(let te of this.features){let{geometry:fe}=te;this.addFeature(te,fe,te.index,F,W)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,cr),this.centroidVertexBuffer=S.createVertexBuffer(this.centroidVertexArray,ht.members,!0),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(S,F,W,te,fe){for(let pe of Cf(F,500)){let ze={x:0,y:0,vertexCount:0},Ke=0;for(let Pr of pe)Ke+=Pr.length;let ct=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(let Pr of pe){if(Pr.length===0||ys(Pr))continue;let zr=0;for(let ui=0;ui=1){let dn=Pr[ui-1];if(!Zo(yi,dn)){ct.vertexLength+4>Ye.MAX_VERTEX_ARRAY_LENGTH&&(ct=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let Fi=yi.sub(dn)._perp()._unit(),ln=dn.dist(yi);zr+ln>32768&&(zr=0),ts(this.layoutVertexArray,yi.x,yi.y,Fi.x,Fi.y,0,0,zr),ts(this.layoutVertexArray,yi.x,yi.y,Fi.x,Fi.y,0,1,zr),ze.x+=2*yi.x,ze.y+=2*yi.y,ze.vertexCount+=2,zr+=ln,ts(this.layoutVertexArray,dn.x,dn.y,Fi.x,Fi.y,0,0,zr),ts(this.layoutVertexArray,dn.x,dn.y,Fi.x,Fi.y,0,1,zr),ze.x+=2*dn.x,ze.y+=2*dn.y,ze.vertexCount+=2;let An=ct.vertexLength;this.indexArray.emplaceBack(An,An+2,An+1),this.indexArray.emplaceBack(An+1,An+2,An+3),ct.vertexLength+=4,ct.primitiveLength+=2}}}}if(ct.vertexLength+Ke>Ye.MAX_VERTEX_ARRAY_LENGTH&&(ct=this.segments.prepareSegment(Ke,this.layoutVertexArray,this.indexArray)),Ja[S.type]!=="Polygon")continue;let Lt=[],Qt=[],fr=ct.vertexLength;for(let Pr of pe)if(Pr.length!==0){Pr!==pe[0]&&Qt.push(Lt.length/2);for(let zr=0;zrHa)||R.y===S.y&&(R.y<0||R.y>Ha)}function ys(R){return R.every(S=>S.x<0)||R.every(S=>S.x>Ha)||R.every(S=>S.y<0)||R.every(S=>S.y>Ha)}let su;Di("FillExtrusionBucket",so,{omit:["layers","features"]});var Mv={get paint(){return su=su||new ue({"fill-extrusion-opacity":new Ua(ce["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new oo(ce["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Ua(ce["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Ua(ce["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Vc(ce["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new oo(ce["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new oo(ce["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Ua(ce["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class Ev extends B{constructor(S){super(S,Mv)}createBucket(S){return new so(S)}queryRadius(){return Hn(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(S,F,W,te,fe,pe,ze,Ke){let ct=Qi(S,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),pe.angle,ze),Lt=this.paint.get("fill-extrusion-height").evaluate(F,W),Qt=this.paint.get("fill-extrusion-base").evaluate(F,W),fr=function(Pr,zr,ui,yi){let dn=[];for(let Fi of Pr){let ln=[Fi.x,Fi.y,0,1];qn(ln,ln,zr),dn.push(new u(ln[0]/ln[3],ln[1]/ln[3]))}return dn}(ct,Ke),mr=function(Pr,zr,ui,yi){let dn=[],Fi=[],ln=yi[8]*zr,An=yi[9]*zr,pa=yi[10]*zr,ro=yi[11]*zr,Vo=yi[8]*ui,Xa=yi[9]*ui,sa=yi[10]*ui,Mo=yi[11]*ui;for(let fo of Pr){let lo=[],Xn=[];for(let Ro of fo){let uo=Ro.x,Jo=Ro.y,Ju=yi[0]*uo+yi[4]*Jo+yi[12],qu=yi[1]*uo+yi[5]*Jo+yi[13],Th=yi[2]*uo+yi[6]*Jo+yi[14],$v=yi[3]*uo+yi[7]*Jo+yi[15],ld=Th+pa,Ah=$v+ro,Gd=Ju+Vo,Hd=qu+Xa,jd=Th+sa,wf=$v+Mo,Sh=new u((Ju+ln)/Ah,(qu+An)/Ah);Sh.z=ld/Ah,lo.push(Sh);let Ed=new u(Gd/wf,Hd/wf);Ed.z=jd/wf,Xn.push(Ed)}dn.push(lo),Fi.push(Xn)}return[dn,Fi]}(te,Qt,Lt,Ke);return function(Pr,zr,ui){let yi=1/0;_t(ui,zr)&&(yi=Yv(ui,zr[0]));for(let dn=0;dnF.id),this.index=S.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(F=>{this.gradients[F.id]={}}),this.layoutVertexArray=new Lu,this.layoutVertexArray2=new ou,this.indexArray=new se,this.programConfigurations=new Es(S.layers,S.zoom),this.segments=new Ye,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){this.hasPattern=at("line",this.layers,F);let te=this.layers[0].layout.get("line-sort-key"),fe=!te.isConstant(),pe=[];for(let{feature:ze,id:Ke,index:ct,sourceLayerIndex:Lt}of S){let Qt=this.layers[0]._featureFilter.needGeometry,fr=Sl(ze,Qt);if(!this.layers[0]._featureFilter.filter(new is(this.zoom),fr,W))continue;let mr=fe?te.evaluate(fr,{},W):void 0,Pr={id:Ke,properties:ze.properties,type:ze.type,sourceLayerIndex:Lt,index:ct,geometry:Qt?fr.geometry:Qs(ze),patterns:{},sortKey:mr};pe.push(Pr)}fe&&pe.sort((ze,Ke)=>ze.sortKey-Ke.sortKey);for(let ze of pe){let{geometry:Ke,index:ct,sourceLayerIndex:Lt}=ze;if(this.hasPattern){let Qt=kt("line",this.layers,ze,this.zoom,F);this.patternFeatures.push(Qt)}else this.addFeature(ze,Ke,ct,W,{});F.featureIndex.insert(S[ct].feature,Ke,ct,Lt,this.index)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}addFeatures(S,F,W){for(let te of this.patternFeatures)this.addFeature(te,te.geometry,te.index,F,W)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=S.createVertexBuffer(this.layoutVertexArray2,vp)),this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,dp),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(S){if(S.properties&&Object.prototype.hasOwnProperty.call(S.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(S.properties,"mapbox_clip_end"))return{start:+S.properties.mapbox_clip_start,end:+S.properties.mapbox_clip_end}}addFeature(S,F,W,te,fe){let pe=this.layers[0].layout,ze=pe.get("line-join").evaluate(S,{}),Ke=pe.get("line-cap"),ct=pe.get("line-miter-limit"),Lt=pe.get("line-round-limit");this.lineClips=this.lineFeatureClips(S);for(let Qt of F)this.addLine(Qt,S,ze,Ke,ct,Lt);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,S,W,fe,te)}addLine(S,F,W,te,fe,pe){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let yi=0;yi=2&&S[Ke-1].equals(S[Ke-2]);)Ke--;let ct=0;for(;ct0;if(ro&&yi>ct){let Mo=fr.dist(mr);if(Mo>2*Lt){let fo=fr.sub(fr.sub(mr)._mult(Lt/Mo)._round());this.updateDistance(mr,fo),this.addCurrentVertex(fo,zr,0,0,Qt),mr=fo}}let Xa=mr&&Pr,sa=Xa?W:ze?"butt":te;if(Xa&&sa==="round"&&(Anfe&&(sa="bevel"),sa==="bevel"&&(An>2&&(sa="flipbevel"),An100)dn=ui.mult(-1);else{let Mo=An*zr.add(ui).mag()/zr.sub(ui).mag();dn._perp()._mult(Mo*(Vo?-1:1))}this.addCurrentVertex(fr,dn,0,0,Qt),this.addCurrentVertex(fr,dn.mult(-1),0,0,Qt)}else if(sa==="bevel"||sa==="fakeround"){let Mo=-Math.sqrt(An*An-1),fo=Vo?Mo:0,lo=Vo?0:Mo;if(mr&&this.addCurrentVertex(fr,zr,fo,lo,Qt),sa==="fakeround"){let Xn=Math.round(180*pa/Math.PI/20);for(let Ro=1;Ro2*Lt){let fo=fr.add(Pr.sub(fr)._mult(Lt/Mo)._round());this.updateDistance(fr,fo),this.addCurrentVertex(fo,ui,0,0,Qt),fr=fo}}}}addCurrentVertex(S,F,W,te,fe,pe=!1){let ze=F.y*te-F.x,Ke=-F.y-F.x*te;this.addHalfVertex(S,F.x+F.y*W,F.y-F.x*W,pe,!1,W,fe),this.addHalfVertex(S,ze,Ke,pe,!0,-te,fe),this.distance>Cv/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(S,F,W,te,fe,pe))}addHalfVertex({x:S,y:F},W,te,fe,pe,ze,Ke){let ct=.5*(this.lineClips?this.scaledDistance*(Cv-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((S<<1)+(fe?1:0),(F<<1)+(pe?1:0),Math.round(63*W)+128,Math.round(63*te)+128,1+(ze===0?0:ze<0?-1:1)|(63&ct)<<2,ct>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);let Lt=Ke.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Lt),Ke.primitiveLength++),pe?this.e2=Lt:this.e1=Lt}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(S,F){this.distance+=S.dist(F),this.updateScaledDistance()}}let kv,ny;Di("LineBucket",Kv,{omit:["layers","patternFeatures"]});var fg={get paint(){return ny=ny||new ue({"line-opacity":new oo(ce.paint_line["line-opacity"]),"line-color":new oo(ce.paint_line["line-color"]),"line-translate":new Ua(ce.paint_line["line-translate"]),"line-translate-anchor":new Ua(ce.paint_line["line-translate-anchor"]),"line-width":new oo(ce.paint_line["line-width"]),"line-gap-width":new oo(ce.paint_line["line-gap-width"]),"line-offset":new oo(ce.paint_line["line-offset"]),"line-blur":new oo(ce.paint_line["line-blur"]),"line-dasharray":new hc(ce.paint_line["line-dasharray"]),"line-pattern":new Vc(ce.paint_line["line-pattern"]),"line-gradient":new Ku(ce.paint_line["line-gradient"])})},get layout(){return kv=kv||new ue({"line-cap":new Ua(ce.layout_line["line-cap"]),"line-join":new oo(ce.layout_line["line-join"]),"line-miter-limit":new Ua(ce.layout_line["line-miter-limit"]),"line-round-limit":new Ua(ce.layout_line["line-round-limit"]),"line-sort-key":new oo(ce.layout_line["line-sort-key"])})}};class oh extends oo{possiblyEvaluate(S,F){return F=new is(Math.floor(F.zoom),{now:F.now,fadeDuration:F.fadeDuration,zoomHistory:F.zoomHistory,transition:F.transition}),super.possiblyEvaluate(S,F)}evaluate(S,F,W,te){return F=L({},F,{zoom:Math.floor(F.zoom)}),super.evaluate(S,F,W,te)}}let hg;class ay extends B{constructor(S){super(S,fg),this.gradientVersion=0,hg||(hg=new oh(fg.paint.properties["line-width"].specification),hg.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(S){if(S==="line-gradient"){let F=this.gradientExpression();this.stepInterpolant=!!function(W){return W._styleExpression!==void 0}(F)&&F._styleExpression.expression instanceof _n,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(S,F){super.recalculate(S,F),this.paint._values["line-floorwidth"]=hg.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,S)}createBucket(S){return new Kv(S)}queryRadius(S){let F=S,W=Gh(Mi("line-width",this,F),Mi("line-gap-width",this,F)),te=Mi("line-offset",this,F);return W/2+Math.abs(te)+Hn(this.paint.get("line-translate"))}queryIntersectsFeature(S,F,W,te,fe,pe,ze){let Ke=Qi(S,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),pe.angle,ze),ct=ze/2*Gh(this.paint.get("line-width").evaluate(F,W),this.paint.get("line-gap-width").evaluate(F,W)),Lt=this.paint.get("line-offset").evaluate(F,W);return Lt&&(te=function(Qt,fr){let mr=[];for(let Pr=0;Pr=3){for(let ui=0;ui0?S+2*R:R}let rm=qe([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),w1=qe([{name:"a_projected_pos",components:3,type:"Float32"}],4);qe([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);let T1=qe([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);qe([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);let oy=qe([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),im=qe([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function nm(R,S,F){return R.sections.forEach(W=>{W.text=function(te,fe,pe){let ze=fe.layout.get("text-transform").evaluate(pe,{});return ze==="uppercase"?te=te.toLocaleUpperCase():ze==="lowercase"&&(te=te.toLocaleLowerCase()),_s.applyArabicShaping&&(te=_s.applyArabicShaping(te)),te}(W.text,S,F)}),R}qe([{name:"triangle",components:3,type:"Uint16"}]),qe([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),qe([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"}]),qe([{type:"Float32",name:"offsetX"}]),qe([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),qe([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);let vc={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};var eu=24,Sd=wu,sy=function(R,S,F,W,te){var fe,pe,ze=8*te-W-1,Ke=(1<>1,Lt=-7,Qt=F?te-1:0,fr=F?-1:1,mr=R[S+Qt];for(Qt+=fr,fe=mr&(1<<-Lt)-1,mr>>=-Lt,Lt+=ze;Lt>0;fe=256*fe+R[S+Qt],Qt+=fr,Lt-=8);for(pe=fe&(1<<-Lt)-1,fe>>=-Lt,Lt+=W;Lt>0;pe=256*pe+R[S+Qt],Qt+=fr,Lt-=8);if(fe===0)fe=1-ct;else{if(fe===Ke)return pe?NaN:1/0*(mr?-1:1);pe+=Math.pow(2,W),fe-=ct}return(mr?-1:1)*pe*Math.pow(2,fe-W)},A1=function(R,S,F,W,te,fe){var pe,ze,Ke,ct=8*fe-te-1,Lt=(1<>1,fr=te===23?Math.pow(2,-24)-Math.pow(2,-77):0,mr=W?0:fe-1,Pr=W?1:-1,zr=S<0||S===0&&1/S<0?1:0;for(S=Math.abs(S),isNaN(S)||S===1/0?(ze=isNaN(S)?1:0,pe=Lt):(pe=Math.floor(Math.log(S)/Math.LN2),S*(Ke=Math.pow(2,-pe))<1&&(pe--,Ke*=2),(S+=pe+Qt>=1?fr/Ke:fr*Math.pow(2,1-Qt))*Ke>=2&&(pe++,Ke/=2),pe+Qt>=Lt?(ze=0,pe=Lt):pe+Qt>=1?(ze=(S*Ke-1)*Math.pow(2,te),pe+=Qt):(ze=S*Math.pow(2,Qt-1)*Math.pow(2,te),pe=0));te>=8;R[F+mr]=255&ze,mr+=Pr,ze/=256,te-=8);for(pe=pe<0;R[F+mr]=255&pe,mr+=Pr,pe/=256,ct-=8);R[F+mr-Pr]|=128*zr};function wu(R){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(R)?R:new Uint8Array(R||0),this.pos=0,this.type=0,this.length=this.buf.length}wu.Varint=0,wu.Fixed64=1,wu.Bytes=2,wu.Fixed32=5;var Nx=4294967296,am=1/Nx,Mw=typeof TextDecoder=="undefined"?null:new TextDecoder("utf-8");function Lv(R){return R.type===wu.Bytes?R.readVarint()+R.pos:R.pos+1}function om(R,S,F){return F?4294967296*S+(R>>>0):4294967296*(S>>>0)+(R>>>0)}function Ew(R,S,F){var W=S<=16383?1:S<=2097151?2:S<=268435455?3:Math.floor(Math.log(S)/(7*Math.LN2));F.realloc(W);for(var te=F.pos-1;te>=R;te--)F.buf[te+W]=F.buf[te]}function Ux(R,S){for(var F=0;F>>8,R[F+2]=S>>>16,R[F+3]=S>>>24}function hk(R,S){return(R[S]|R[S+1]<<8|R[S+2]<<16)+(R[S+3]<<24)}wu.prototype={destroy:function(){this.buf=null},readFields:function(R,S,F){for(F=F||this.length;this.pos>3,fe=this.pos;this.type=7&W,R(te,S,this),this.pos===fe&&this.skip(W)}return S},readMessage:function(R,S){return this.readFields(R,S,this.readVarint()+this.pos)},readFixed32:function(){var R=ly(this.buf,this.pos);return this.pos+=4,R},readSFixed32:function(){var R=hk(this.buf,this.pos);return this.pos+=4,R},readFixed64:function(){var R=ly(this.buf,this.pos)+ly(this.buf,this.pos+4)*Nx;return this.pos+=8,R},readSFixed64:function(){var R=ly(this.buf,this.pos)+hk(this.buf,this.pos+4)*Nx;return this.pos+=8,R},readFloat:function(){var R=sy(this.buf,this.pos,!0,23,4);return this.pos+=4,R},readDouble:function(){var R=sy(this.buf,this.pos,!0,52,8);return this.pos+=8,R},readVarint:function(R){var S,F,W=this.buf;return S=127&(F=W[this.pos++]),F<128?S:(S|=(127&(F=W[this.pos++]))<<7,F<128?S:(S|=(127&(F=W[this.pos++]))<<14,F<128?S:(S|=(127&(F=W[this.pos++]))<<21,F<128?S:function(te,fe,pe){var ze,Ke,ct=pe.buf;if(ze=(112&(Ke=ct[pe.pos++]))>>4,Ke<128||(ze|=(127&(Ke=ct[pe.pos++]))<<3,Ke<128)||(ze|=(127&(Ke=ct[pe.pos++]))<<10,Ke<128)||(ze|=(127&(Ke=ct[pe.pos++]))<<17,Ke<128)||(ze|=(127&(Ke=ct[pe.pos++]))<<24,Ke<128)||(ze|=(1&(Ke=ct[pe.pos++]))<<31,Ke<128))return om(te,ze,fe);throw new Error("Expected varint not more than 10 bytes")}(S|=(15&(F=W[this.pos]))<<28,R,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var R=this.readVarint();return R%2==1?(R+1)/-2:R/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var R=this.readVarint()+this.pos,S=this.pos;return this.pos=R,R-S>=12&&Mw?function(F,W,te){return Mw.decode(F.subarray(W,te))}(this.buf,S,R):function(F,W,te){for(var fe="",pe=W;pe239?4:Lt>223?3:Lt>191?2:1;if(pe+fr>te)break;fr===1?Lt<128&&(Qt=Lt):fr===2?(192&(ze=F[pe+1]))==128&&(Qt=(31&Lt)<<6|63&ze)<=127&&(Qt=null):fr===3?(Ke=F[pe+2],(192&(ze=F[pe+1]))==128&&(192&Ke)==128&&((Qt=(15&Lt)<<12|(63&ze)<<6|63&Ke)<=2047||Qt>=55296&&Qt<=57343)&&(Qt=null)):fr===4&&(Ke=F[pe+2],ct=F[pe+3],(192&(ze=F[pe+1]))==128&&(192&Ke)==128&&(192&ct)==128&&((Qt=(15&Lt)<<18|(63&ze)<<12|(63&Ke)<<6|63&ct)<=65535||Qt>=1114112)&&(Qt=null)),Qt===null?(Qt=65533,fr=1):Qt>65535&&(Qt-=65536,fe+=String.fromCharCode(Qt>>>10&1023|55296),Qt=56320|1023&Qt),fe+=String.fromCharCode(Qt),pe+=fr}return fe}(this.buf,S,R)},readBytes:function(){var R=this.readVarint()+this.pos,S=this.buf.subarray(this.pos,R);return this.pos=R,S},readPackedVarint:function(R,S){if(this.type!==wu.Bytes)return R.push(this.readVarint(S));var F=Lv(this);for(R=R||[];this.pos127;);else if(S===wu.Bytes)this.pos=this.readVarint()+this.pos;else if(S===wu.Fixed32)this.pos+=4;else{if(S!==wu.Fixed64)throw new Error("Unimplemented type: "+S);this.pos+=8}},writeTag:function(R,S){this.writeVarint(R<<3|S)},realloc:function(R){for(var S=this.length||16;S268435455||R<0?function(S,F){var W,te;if(S>=0?(W=S%4294967296|0,te=S/4294967296|0):(te=~(-S/4294967296),4294967295^(W=~(-S%4294967296))?W=W+1|0:(W=0,te=te+1|0)),S>=18446744073709552e3||S<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");F.realloc(10),function(fe,pe,ze){ze.buf[ze.pos++]=127&fe|128,fe>>>=7,ze.buf[ze.pos++]=127&fe|128,fe>>>=7,ze.buf[ze.pos++]=127&fe|128,fe>>>=7,ze.buf[ze.pos++]=127&fe|128,ze.buf[ze.pos]=127&(fe>>>=7)}(W,0,F),function(fe,pe){var ze=(7&fe)<<4;pe.buf[pe.pos++]|=ze|((fe>>>=3)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe)))))}(te,F)}(R,this):(this.realloc(4),this.buf[this.pos++]=127&R|(R>127?128:0),R<=127||(this.buf[this.pos++]=127&(R>>>=7)|(R>127?128:0),R<=127||(this.buf[this.pos++]=127&(R>>>=7)|(R>127?128:0),R<=127||(this.buf[this.pos++]=R>>>7&127))))},writeSVarint:function(R){this.writeVarint(R<0?2*-R-1:2*R)},writeBoolean:function(R){this.writeVarint(!!R)},writeString:function(R){R=String(R),this.realloc(4*R.length),this.pos++;var S=this.pos;this.pos=function(W,te,fe){for(var pe,ze,Ke=0;Ke55295&&pe<57344){if(!ze){pe>56319||Ke+1===te.length?(W[fe++]=239,W[fe++]=191,W[fe++]=189):ze=pe;continue}if(pe<56320){W[fe++]=239,W[fe++]=191,W[fe++]=189,ze=pe;continue}pe=ze-55296<<10|pe-56320|65536,ze=null}else ze&&(W[fe++]=239,W[fe++]=191,W[fe++]=189,ze=null);pe<128?W[fe++]=pe:(pe<2048?W[fe++]=pe>>6|192:(pe<65536?W[fe++]=pe>>12|224:(W[fe++]=pe>>18|240,W[fe++]=pe>>12&63|128),W[fe++]=pe>>6&63|128),W[fe++]=63&pe|128)}return fe}(this.buf,R,this.pos);var F=this.pos-S;F>=128&&Ew(S,F,this),this.pos=S-1,this.writeVarint(F),this.pos+=F},writeFloat:function(R){this.realloc(4),A1(this.buf,R,this.pos,!0,23,4),this.pos+=4},writeDouble:function(R){this.realloc(8),A1(this.buf,R,this.pos,!0,52,8),this.pos+=8},writeBytes:function(R){var S=R.length;this.writeVarint(S),this.realloc(S);for(var F=0;F=128&&Ew(F,W,this),this.pos=F-1,this.writeVarint(W),this.pos+=W},writeMessage:function(R,S,F){this.writeTag(R,wu.Bytes),this.writeRawMessage(S,F)},writePackedVarint:function(R,S){S.length&&this.writeMessage(R,Ux,S)},writePackedSVarint:function(R,S){S.length&&this.writeMessage(R,D9,S)},writePackedBoolean:function(R,S){S.length&&this.writeMessage(R,O9,S)},writePackedFloat:function(R,S){S.length&&this.writeMessage(R,F9,S)},writePackedDouble:function(R,S){S.length&&this.writeMessage(R,z9,S)},writePackedFixed32:function(R,S){S.length&&this.writeMessage(R,MQ,S)},writePackedSFixed32:function(R,S){S.length&&this.writeMessage(R,q9,S)},writePackedFixed64:function(R,S){S.length&&this.writeMessage(R,B9,S)},writePackedSFixed64:function(R,S){S.length&&this.writeMessage(R,N9,S)},writeBytesField:function(R,S){this.writeTag(R,wu.Bytes),this.writeBytes(S)},writeFixed32Field:function(R,S){this.writeTag(R,wu.Fixed32),this.writeFixed32(S)},writeSFixed32Field:function(R,S){this.writeTag(R,wu.Fixed32),this.writeSFixed32(S)},writeFixed64Field:function(R,S){this.writeTag(R,wu.Fixed64),this.writeFixed64(S)},writeSFixed64Field:function(R,S){this.writeTag(R,wu.Fixed64),this.writeSFixed64(S)},writeVarintField:function(R,S){this.writeTag(R,wu.Varint),this.writeVarint(S)},writeSVarintField:function(R,S){this.writeTag(R,wu.Varint),this.writeSVarint(S)},writeStringField:function(R,S){this.writeTag(R,wu.Bytes),this.writeString(S)},writeFloatField:function(R,S){this.writeTag(R,wu.Fixed32),this.writeFloat(S)},writeDoubleField:function(R,S){this.writeTag(R,wu.Fixed64),this.writeDouble(S)},writeBooleanField:function(R,S){this.writeVarintField(R,!!S)}};var tS=o(Sd);let rS=3;function EQ(R,S,F){R===1&&F.readMessage(U9,S)}function U9(R,S,F){if(R===3){let{id:W,bitmap:te,width:fe,height:pe,left:ze,top:Ke,advance:ct}=F.readMessage(dk,{});S.push({id:W,bitmap:new na({width:fe+2*rS,height:pe+2*rS},te),metrics:{width:fe,height:pe,left:ze,top:Ke,advance:ct}})}}function dk(R,S,F){R===1?S.id=F.readVarint():R===2?S.bitmap=F.readBytes():R===3?S.width=F.readVarint():R===4?S.height=F.readVarint():R===5?S.left=F.readSVarint():R===6?S.top=F.readSVarint():R===7&&(S.advance=F.readVarint())}let vk=rS;function iS(R){let S=0,F=0;for(let pe of R)S+=pe.w*pe.h,F=Math.max(F,pe.w);R.sort((pe,ze)=>ze.h-pe.h);let W=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(S/.95)),F),h:1/0}],te=0,fe=0;for(let pe of R)for(let ze=W.length-1;ze>=0;ze--){let Ke=W[ze];if(!(pe.w>Ke.w||pe.h>Ke.h)){if(pe.x=Ke.x,pe.y=Ke.y,fe=Math.max(fe,pe.y+pe.h),te=Math.max(te,pe.x+pe.w),pe.w===Ke.w&&pe.h===Ke.h){let ct=W.pop();ze=0&&W>=S&&Lw[this.text.charCodeAt(W)];W--)F--;this.text=this.text.substring(S,F),this.sectionIndex=this.sectionIndex.slice(S,F)}substring(S,F){let W=new S1;return W.text=this.text.substring(S,F),W.sectionIndex=this.sectionIndex.slice(S,F),W.sections=this.sections,W}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((S,F)=>Math.max(S,this.sections[F].scale),0)}addTextSection(S,F){this.text+=S.text,this.sections.push(Gx.forText(S.scale,S.fontStack||F));let W=this.sections.length-1;for(let te=0;te=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Hx(R,S,F,W,te,fe,pe,ze,Ke,ct,Lt,Qt,fr,mr,Pr){let zr=S1.fromFeature(R,te),ui;Qt===i.ah.vertical&&zr.verticalizePunctuation();let{processBidirectionalText:yi,processStyledBidirectionalText:dn}=_s;if(yi&&zr.sections.length===1){ui=[];let An=yi(zr.toString(),M1(zr,ct,fe,S,W,mr));for(let pa of An){let ro=new S1;ro.text=pa,ro.sections=zr.sections;for(let Vo=0;Vo0&&ep>Rf&&(Rf=ep)}else{let Gc=ro[tu.fontStack],Xf=Gc&&Gc[$u];if(Xf&&Xf.rect)I1=Xf.rect,cf=Xf.metrics;else{let ep=pa[tu.fontStack],gg=ep&&ep[$u];if(!gg)continue;cf=gg.metrics}Rv=(Sh-tu.scale)*eu}Qv?(An.verticalizable=!0,Hh.push({glyph:$u,imageName:p0,x:Jo,y:Ju+Rv,vertical:Qv,scale:tu.scale,fontStack:tu.fontStack,sectionIndex:pc,metrics:cf,rect:I1}),Jo+=Gp*tu.scale+Xn):(Hh.push({glyph:$u,imageName:p0,x:Jo,y:Ju+Rv,vertical:Qv,scale:tu.scale,fontStack:tu.fontStack,sectionIndex:pc,metrics:cf,rect:I1}),Jo+=cf.advance*tu.scale+Xn)}Hh.length!==0&&(qu=Math.max(Jo-Xn,qu),sm(Hh,0,Hh.length-1,$v,Rf)),Jo=0;let Iv=sa*Sh+Rf;ud.lineOffset=Math.max(Rf,Ed),Ju+=Iv,Th=Math.max(Iv,Th),++ld}var Ah;let Gd=Ju-wh,{horizontalAlign:Hd,verticalAlign:jd}=Iw(Mo);(function(wf,Sh,Ed,ud,Hh,Rf,Iv,lv,tu){let pc=(Sh-Ed)*Hh,$u=0;$u=Rf!==Iv?-lv*ud-wh:(-ud*tu+.5)*Iv;for(let Rv of wf)for(let cf of Rv.positionedGlyphs)cf.x+=pc,cf.y+=$u})(An.positionedLines,$v,Hd,jd,qu,Th,sa,Gd,Xa.length),An.top+=-jd*Gd,An.bottom=An.top+Gd,An.left+=-Hd*qu,An.right=An.left+qu}(ln,S,F,W,ui,pe,ze,Ke,Qt,ct,fr,Pr),!function(An){for(let pa of An)if(pa.positionedGlyphs.length!==0)return!1;return!0}(Fi)&&ln}let Lw={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},V9={10:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},G9={40:!0};function pk(R,S,F,W,te,fe){if(S.imageName){let pe=W[S.imageName];return pe?pe.displaySize[0]*S.scale*eu/fe+te:0}{let pe=F[S.fontStack],ze=pe&&pe[R];return ze?ze.metrics.advance*S.scale+te:0}}function gk(R,S,F,W){let te=Math.pow(R-S,2);return W?R=0,ct=0;for(let Qt=0;Qtct){let Lt=Math.ceil(fe/ct);te*=Lt/pe,pe=Lt}return{x1:W,y1:te,x2:W+fe,y2:te+pe}}function _k(R,S,F,W,te,fe){let pe=R.image,ze;if(pe.content){let ui=pe.content,yi=pe.pixelRatio||1;ze=[ui[0]/yi,ui[1]/yi,pe.displaySize[0]-ui[2]/yi,pe.displaySize[1]-ui[3]/yi]}let Ke=S.left*fe,ct=S.right*fe,Lt,Qt,fr,mr;F==="width"||F==="both"?(mr=te[0]+Ke-W[3],Qt=te[0]+ct+W[1]):(mr=te[0]+(Ke+ct-pe.displaySize[0])/2,Qt=mr+pe.displaySize[0]);let Pr=S.top*fe,zr=S.bottom*fe;return F==="height"||F==="both"?(Lt=te[1]+Pr-W[0],fr=te[1]+zr+W[2]):(Lt=te[1]+(Pr+zr-pe.displaySize[1])/2,fr=Lt+pe.displaySize[1]),{image:pe,top:Lt,right:Qt,bottom:fr,left:mr,collisionPadding:ze}}let Wx=255,v0=128,lm=Wx*v0;function xk(R,S){let{expression:F}=S;if(F.kind==="constant")return{kind:"constant",layoutSize:F.evaluate(new is(R+1))};if(F.kind==="source")return{kind:"source"};{let{zoomStops:W,interpolationType:te}=F,fe=0;for(;fepe.id),this.index=S.index,this.pixelRatio=S.pixelRatio,this.sourceLayerIndex=S.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=Ii([]),this.placementViewportMatrix=Ii([]);let F=this.layers[0]._unevaluatedLayout._values;this.textSizeData=xk(this.zoom,F["text-size"]),this.iconSizeData=xk(this.zoom,F["icon-size"]);let W=this.layers[0].layout,te=W.get("symbol-sort-key"),fe=W.get("symbol-z-order");this.canOverlap=nS(W,"text-overlap","text-allow-overlap")!=="never"||nS(W,"icon-overlap","icon-allow-overlap")!=="never"||W.get("text-ignore-placement")||W.get("icon-ignore-placement"),this.sortFeaturesByKey=fe!=="viewport-y"&&!te.isConstant(),this.sortFeaturesByY=(fe==="viewport-y"||fe==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,W.get("symbol-placement")==="point"&&(this.writingModes=W.get("text-writing-mode").map(pe=>i.ah[pe])),this.stateDependentLayerIds=this.layers.filter(pe=>pe.isStateDependent()).map(pe=>pe.id),this.sourceID=S.sourceID}createArrays(){this.text=new sS(new Es(this.layers,this.zoom,S=>/^text/.test(S))),this.icon=new sS(new Es(this.layers,this.zoom,S=>/^icon/.test(S))),this.glyphOffsetArray=new ko,this.lineVertexArray=new Qa,this.symbolInstances=new $a,this.textAnchorOffsets=new Bo}calculateGlyphDependencies(S,F,W,te,fe){for(let pe=0;pe0)&&(pe.value.kind!=="constant"||pe.value.value.length>0),Lt=Ke.value.kind!=="constant"||!!Ke.value.value||Object.keys(Ke.parameters).length>0,Qt=fe.get("symbol-sort-key");if(this.features=[],!ct&&!Lt)return;let fr=F.iconDependencies,mr=F.glyphDependencies,Pr=F.availableImages,zr=new is(this.zoom);for(let{feature:ui,id:yi,index:dn,sourceLayerIndex:Fi}of S){let ln=te._featureFilter.needGeometry,An=Sl(ui,ln);if(!te._featureFilter.filter(zr,An,W))continue;let pa,ro;if(ln||(An.geometry=Qs(ui)),ct){let Xa=te.getValueAndResolveTokens("text-field",An,W,Pr),sa=ri.factory(Xa),Mo=this.hasRTLText=this.hasRTLText||oS(sa);(!Mo||_s.getRTLTextPluginStatus()==="unavailable"||Mo&&_s.isParsed())&&(pa=nm(sa,te,An))}if(Lt){let Xa=te.getValueAndResolveTokens("icon-image",An,W,Pr);ro=Xa instanceof en?Xa:en.fromString(Xa)}if(!pa&&!ro)continue;let Vo=this.sortFeaturesByKey?Qt.evaluate(An,{},W):void 0;if(this.features.push({id:yi,text:pa,icon:ro,index:dn,sourceLayerIndex:Fi,geometry:An.geometry,properties:ui.properties,type:j9[ui.type],sortKey:Vo}),ro&&(fr[ro.name]=!0),pa){let Xa=pe.evaluate(An,{},W).join(","),sa=fe.get("text-rotation-alignment")!=="viewport"&&fe.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(i.ah.vertical)>=0;for(let Mo of pa.sections)if(Mo.image)fr[Mo.image.name]=!0;else{let fo=Ka(pa.toString()),lo=Mo.fontStack||Xa,Xn=mr[lo]=mr[lo]||{};this.calculateGlyphDependencies(Mo.text,Xn,sa,this.allowVerticalPlacement,fo)}}}fe.get("symbol-placement")==="line"&&(this.features=function(ui){let yi={},dn={},Fi=[],ln=0;function An(Xa){Fi.push(ui[Xa]),ln++}function pa(Xa,sa,Mo){let fo=dn[Xa];return delete dn[Xa],dn[sa]=fo,Fi[fo].geometry[0].pop(),Fi[fo].geometry[0]=Fi[fo].geometry[0].concat(Mo[0]),fo}function ro(Xa,sa,Mo){let fo=yi[sa];return delete yi[sa],yi[Xa]=fo,Fi[fo].geometry[0].shift(),Fi[fo].geometry[0]=Mo[0].concat(Fi[fo].geometry[0]),fo}function Vo(Xa,sa,Mo){let fo=Mo?sa[0][sa[0].length-1]:sa[0][0];return`${Xa}:${fo.x}:${fo.y}`}for(let Xa=0;XaXa.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((ui,yi)=>ui.sortKey-yi.sortKey)}update(S,F,W){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(S,F,this.layers,W),this.icon.programConfigurations.updatePaintArrays(S,F,this.layers,W))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(S){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(S),this.iconCollisionBox.upload(S)),this.text.upload(S,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(S,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(S,F){let W=this.lineVertexArray.length;if(S.segment!==void 0){let te=S.dist(F[S.segment+1]),fe=S.dist(F[S.segment]),pe={};for(let ze=S.segment+1;ze=0;ze--)pe[ze]={x:F[ze].x,y:F[ze].y,tileUnitDistanceFromAnchor:fe},ze>0&&(fe+=F[ze-1].dist(F[ze]));for(let ze=0;ze0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(S,F){let W=S.placedSymbolArray.get(F),te=W.vertexStartIndex+4*W.numGlyphs;for(let fe=W.vertexStartIndex;fete[ze]-te[Ke]||fe[Ke]-fe[ze]),pe}addToSortKeyRanges(S,F){let W=this.sortKeyRanges[this.sortKeyRanges.length-1];W&&W.sortKey===F?W.symbolInstanceEnd=S+1:this.sortKeyRanges.push({sortKey:F,symbolInstanceStart:S,symbolInstanceEnd:S+1})}sortFeatures(S){if(this.sortFeaturesByY&&this.sortedAngle!==S&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(S),this.sortedAngle=S,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let F of this.symbolInstanceIndexes){let W=this.symbolInstances.get(F);this.featureSortOrder.push(W.featureIndex),[W.rightJustifiedTextSymbolIndex,W.centerJustifiedTextSymbolIndex,W.leftJustifiedTextSymbolIndex].forEach((te,fe,pe)=>{te>=0&&pe.indexOf(te)===fe&&this.addIndicesForPlacedSymbol(this.text,te)}),W.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,W.verticalPlacedTextSymbolIndex),W.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,W.placedIconSymbolIndex),W.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,W.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let bf,Xx;Di("SymbolBucket",E1,{omit:["layers","collisionBoxArray","features","compareText"]}),E1.MAX_GLYPHS=65535,E1.addDynamicAttributes=aS;var Dw={get paint(){return Xx=Xx||new ue({"icon-opacity":new oo(ce.paint_symbol["icon-opacity"]),"icon-color":new oo(ce.paint_symbol["icon-color"]),"icon-halo-color":new oo(ce.paint_symbol["icon-halo-color"]),"icon-halo-width":new oo(ce.paint_symbol["icon-halo-width"]),"icon-halo-blur":new oo(ce.paint_symbol["icon-halo-blur"]),"icon-translate":new Ua(ce.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ua(ce.paint_symbol["icon-translate-anchor"]),"text-opacity":new oo(ce.paint_symbol["text-opacity"]),"text-color":new oo(ce.paint_symbol["text-color"],{runtimeType:rr,getOverride:R=>R.textColor,hasOverride:R=>!!R.textColor}),"text-halo-color":new oo(ce.paint_symbol["text-halo-color"]),"text-halo-width":new oo(ce.paint_symbol["text-halo-width"]),"text-halo-blur":new oo(ce.paint_symbol["text-halo-blur"]),"text-translate":new Ua(ce.paint_symbol["text-translate"]),"text-translate-anchor":new Ua(ce.paint_symbol["text-translate-anchor"])})},get layout(){return bf=bf||new ue({"symbol-placement":new Ua(ce.layout_symbol["symbol-placement"]),"symbol-spacing":new Ua(ce.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ua(ce.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new oo(ce.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Ua(ce.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Ua(ce.layout_symbol["icon-allow-overlap"]),"icon-overlap":new Ua(ce.layout_symbol["icon-overlap"]),"icon-ignore-placement":new Ua(ce.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ua(ce.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ua(ce.layout_symbol["icon-rotation-alignment"]),"icon-size":new oo(ce.layout_symbol["icon-size"]),"icon-text-fit":new Ua(ce.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Ua(ce.layout_symbol["icon-text-fit-padding"]),"icon-image":new oo(ce.layout_symbol["icon-image"]),"icon-rotate":new oo(ce.layout_symbol["icon-rotate"]),"icon-padding":new oo(ce.layout_symbol["icon-padding"]),"icon-keep-upright":new Ua(ce.layout_symbol["icon-keep-upright"]),"icon-offset":new oo(ce.layout_symbol["icon-offset"]),"icon-anchor":new oo(ce.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Ua(ce.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ua(ce.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ua(ce.layout_symbol["text-rotation-alignment"]),"text-field":new oo(ce.layout_symbol["text-field"]),"text-font":new oo(ce.layout_symbol["text-font"]),"text-size":new oo(ce.layout_symbol["text-size"]),"text-max-width":new oo(ce.layout_symbol["text-max-width"]),"text-line-height":new Ua(ce.layout_symbol["text-line-height"]),"text-letter-spacing":new oo(ce.layout_symbol["text-letter-spacing"]),"text-justify":new oo(ce.layout_symbol["text-justify"]),"text-radial-offset":new oo(ce.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Ua(ce.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new oo(ce.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new oo(ce.layout_symbol["text-anchor"]),"text-max-angle":new Ua(ce.layout_symbol["text-max-angle"]),"text-writing-mode":new Ua(ce.layout_symbol["text-writing-mode"]),"text-rotate":new oo(ce.layout_symbol["text-rotate"]),"text-padding":new Ua(ce.layout_symbol["text-padding"]),"text-keep-upright":new Ua(ce.layout_symbol["text-keep-upright"]),"text-transform":new oo(ce.layout_symbol["text-transform"]),"text-offset":new oo(ce.layout_symbol["text-offset"]),"text-allow-overlap":new Ua(ce.layout_symbol["text-allow-overlap"]),"text-overlap":new Ua(ce.layout_symbol["text-overlap"]),"text-ignore-placement":new Ua(ce.layout_symbol["text-ignore-placement"]),"text-optional":new Ua(ce.layout_symbol["text-optional"])})}};class Zx{constructor(S){if(S.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=S.property.overrides?S.property.overrides.runtimeType:Vt,this.defaultValue=S}evaluate(S){if(S.formattedSection){let F=this.defaultValue.property.overrides;if(F&&F.hasOverride(S.formattedSection))return F.getOverride(S.formattedSection)}return S.feature&&S.featureState?this.defaultValue.evaluate(S.feature,S.featureState):this.defaultValue.property.specification.default}eachChild(S){this.defaultValue.isConstant()||S(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Di("FormatSectionOverride",Zx,{omit:["defaultValue"]});class uy extends B{constructor(S){super(S,Dw)}recalculate(S,F){if(super.recalculate(S,F),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){let W=this.layout.get("text-writing-mode");if(W){let te=[];for(let fe of W)te.indexOf(fe)<0&&te.push(fe);this.layout._values["text-writing-mode"]=te}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(S,F,W,te){let fe=this.layout.get(S).evaluate(F,{},W,te),pe=this._unevaluatedLayout._values[S];return pe.isDataDriven()||Dc(pe.value)||!fe?fe:function(ze,Ke){return Ke.replace(/{([^{}]+)}/g,(ct,Lt)=>ze&&Lt in ze?String(ze[Lt]):"")}(F.properties,fe)}createBucket(S){return new E1(S)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let S of Dw.paint.overridableProperties){if(!uy.hasPaintOverride(this.layout,S))continue;let F=this.paint.get(S),W=new Zx(F),te=new Eu(W,F.property.specification),fe=null;fe=F.value.kind==="constant"||F.value.kind==="source"?new bc("source",te):new du("composite",te,F.value.zoomStops),this.paint._values[S]=new xu(F.property,fe,F.parameters)}}_handleOverridablePaintPropertyUpdate(S,F,W){return!(!this.layout||F.isDataDriven()||W.isDataDriven())&&uy.hasPaintOverride(this.layout,S)}static hasPaintOverride(S,F){let W=S.get("text-field"),te=Dw.paint.properties[F],fe=!1,pe=ze=>{for(let Ke of ze)if(te.overrides&&te.overrides.hasOverride(Ke))return void(fe=!0)};if(W.value.kind==="constant"&&W.value.value instanceof ri)pe(W.value.value.sections);else if(W.value.kind==="source"){let ze=ct=>{fe||(ct instanceof la&&Mn(ct.value)===Kr?pe(ct.value.sections):ct instanceof Zl?pe(ct.sections):ct.eachChild(ze))},Ke=W.value;Ke._styleExpression&&ze(Ke._styleExpression.expression)}return fe}}let bk;var Yx={get paint(){return bk=bk||new ue({"background-color":new Ua(ce.paint_background["background-color"]),"background-pattern":new hc(ce.paint_background["background-pattern"]),"background-opacity":new Ua(ce.paint_background["background-opacity"])})}};class X9 extends B{constructor(S){super(S,Yx)}}let lS;var wk={get paint(){return lS=lS||new ue({"raster-opacity":new Ua(ce.paint_raster["raster-opacity"]),"raster-hue-rotate":new Ua(ce.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Ua(ce.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Ua(ce.paint_raster["raster-brightness-max"]),"raster-saturation":new Ua(ce.paint_raster["raster-saturation"]),"raster-contrast":new Ua(ce.paint_raster["raster-contrast"]),"raster-resampling":new Ua(ce.paint_raster["raster-resampling"]),"raster-fade-duration":new Ua(ce.paint_raster["raster-fade-duration"])})}};class Kx extends B{constructor(S){super(S,wk)}}class uS extends B{constructor(S){super(S,{}),this.onAdd=F=>{this.implementation.onAdd&&this.implementation.onAdd(F,F.painter.context.gl)},this.onRemove=F=>{this.implementation.onRemove&&this.implementation.onRemove(F,F.painter.context.gl)},this.implementation=S}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class cS{constructor(S){this._methodToThrottle=S,this._triggered=!1,typeof MessageChannel!="undefined"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._methodToThrottle()},0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}}let fS=63710088e-1;class dg{constructor(S,F){if(isNaN(S)||isNaN(F))throw new Error(`Invalid LngLat object: (${S}, ${F})`);if(this.lng=+S,this.lat=+F,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new dg(A(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(S){let F=Math.PI/180,W=this.lat*F,te=S.lat*F,fe=Math.sin(W)*Math.sin(te)+Math.cos(W)*Math.cos(te)*Math.cos((S.lng-this.lng)*F);return fS*Math.acos(Math.min(fe,1))}static convert(S){if(S instanceof dg)return S;if(Array.isArray(S)&&(S.length===2||S.length===3))return new dg(Number(S[0]),Number(S[1]));if(!Array.isArray(S)&&typeof S=="object"&&S!==null)return new dg(Number("lng"in S?S.lng:S.lon),Number(S.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}let C1=2*Math.PI*fS;function Tk(R){return C1*Math.cos(R*Math.PI/180)}function Fw(R){return(180+R)/360}function Ak(R){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+R*Math.PI/360)))/360}function zw(R,S){return R/Tk(S)}function Jx(R){return 360/Math.PI*Math.atan(Math.exp((180-360*R)*Math.PI/180))-90}class $x{constructor(S,F,W=0){this.x=+S,this.y=+F,this.z=+W}static fromLngLat(S,F=0){let W=dg.convert(S);return new $x(Fw(W.lng),Ak(W.lat),zw(F,W.lat))}toLngLat(){return new dg(360*this.x-180,Jx(this.y))}toAltitude(){return this.z*Tk(Jx(this.y))}meterInMercatorCoordinateUnits(){return 1/C1*(S=Jx(this.y),1/Math.cos(S*Math.PI/180));var S}}function pp(R,S,F){var W=2*Math.PI*6378137/256/Math.pow(2,F);return[R*W-2*Math.PI*6378137/2,S*W-2*Math.PI*6378137/2]}class hS{constructor(S,F,W){if(!function(te,fe,pe){return!(te<0||te>25||pe<0||pe>=Math.pow(2,te)||fe<0||fe>=Math.pow(2,te))}(S,F,W))throw new Error(`x=${F}, y=${W}, z=${S} outside of bounds. 0<=x<${Math.pow(2,S)}, 0<=y<${Math.pow(2,S)} 0<=z<=25 `);this.z=S,this.x=F,this.y=W,this.key=Qx(0,S,S,F,W)}equals(S){return this.z===S.z&&this.x===S.x&&this.y===S.y}url(S,F,W){let te=(pe=this.y,ze=this.z,Ke=pp(256*(fe=this.x),256*(pe=Math.pow(2,ze)-pe-1),ze),ct=pp(256*(fe+1),256*(pe+1),ze),Ke[0]+","+Ke[1]+","+ct[0]+","+ct[1]);var fe,pe,ze,Ke,ct;let Lt=function(Qt,fr,mr){let Pr,zr="";for(let ui=Qt;ui>0;ui--)Pr=1<1?"@2x":"").replace(/{quadkey}/g,Lt).replace(/{bbox-epsg-3857}/g,te)}isChildOf(S){let F=this.z-S.z;return F>0&&S.x===this.x>>F&&S.y===this.y>>F}getTilePoint(S){let F=Math.pow(2,this.z);return new u((S.x*F-this.x)*Ha,(S.y*F-this.y)*Ha)}toString(){return`${this.z}/${this.x}/${this.y}`}}class Sk{constructor(S,F){this.wrap=S,this.canonical=F,this.key=Qx(S,F.z,F.z,F.x,F.y)}}class Jv{constructor(S,F,W,te,fe){if(S= z; overscaledZ = ${S}; z = ${W}`);this.overscaledZ=S,this.wrap=F,this.canonical=new hS(W,+te,+fe),this.key=Qx(F,S,W,te,fe)}clone(){return new Jv(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(S){return this.overscaledZ===S.overscaledZ&&this.wrap===S.wrap&&this.canonical.equals(S.canonical)}scaledTo(S){if(S>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${S}; overscaledZ = ${this.overscaledZ}`);let F=this.canonical.z-S;return S>this.canonical.z?new Jv(S,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Jv(S,this.wrap,S,this.canonical.x>>F,this.canonical.y>>F)}calculateScaledKey(S,F){if(S>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${S}; overscaledZ = ${this.overscaledZ}`);let W=this.canonical.z-S;return S>this.canonical.z?Qx(this.wrap*+F,S,this.canonical.z,this.canonical.x,this.canonical.y):Qx(this.wrap*+F,S,S,this.canonical.x>>W,this.canonical.y>>W)}isChildOf(S){if(S.wrap!==this.wrap)return!1;let F=this.canonical.z-S.canonical.z;return S.overscaledZ===0||S.overscaledZ>F&&S.canonical.y===this.canonical.y>>F}children(S){if(this.overscaledZ>=S)return[new Jv(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let F=this.canonical.z+1,W=2*this.canonical.x,te=2*this.canonical.y;return[new Jv(F,this.wrap,F,W,te),new Jv(F,this.wrap,F,W+1,te),new Jv(F,this.wrap,F,W,te+1),new Jv(F,this.wrap,F,W+1,te+1)]}isLessThan(S){return this.wrapS.wrap)&&(this.overscaledZS.overscaledZ)&&(this.canonical.xS.canonical.x)&&this.canonical.ythis.max&&(this.max=Qt),Qt=this.dim+1||F<-1||F>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(F+1)*this.stride+(S+1)}unpack(S,F,W){return S*this.redFactor+F*this.greenFactor+W*this.blueFactor-this.baseShift}getPixels(){return new Yi({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(S,F,W){if(this.dim!==S.dim)throw new Error("dem dimension mismatch");let te=F*this.dim,fe=F*this.dim+this.dim,pe=W*this.dim,ze=W*this.dim+this.dim;switch(F){case-1:te=fe-1;break;case 1:fe=te+1}switch(W){case-1:pe=ze-1;break;case 1:ze=pe+1}let Ke=-F*this.dim,ct=-W*this.dim;for(let Lt=pe;Lt=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${S} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[S]}}class dS{constructor(S,F,W,te,fe){this.type="Feature",this._vectorTileFeature=S,S._z=F,S._x=W,S._y=te,this.properties=S.properties,this.id=fe}get geometry(){return this._geometry===void 0&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(S){this._geometry=S}toJSON(){let S={geometry:this.geometry};for(let F in this)F!=="_geometry"&&F!=="_vectorTileFeature"&&(S[F]=this[F]);return S}}class cy{constructor(S,F){this.tileID=S,this.x=S.canonical.x,this.y=S.canonical.y,this.z=S.canonical.z,this.grid=new $i(Ha,16,0),this.grid3D=new $i(Ha,16,0),this.featureIndexArray=new As,this.promoteId=F}insert(S,F,W,te,fe,pe){let ze=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(W,te,fe);let Ke=pe?this.grid3D:this.grid;for(let ct=0;ct=0&&Qt[3]>=0&&Ke.insert(ze,Qt[0],Qt[1],Qt[2],Qt[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new br.VectorTile(new tS(this.rawTileData)).layers,this.sourceLayerCoder=new Ek(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(S,F,W,te){this.loadVTLayers();let fe=S.params||{},pe=Ha/S.tileSize/S.scale,ze=Fc(fe.filter),Ke=S.queryGeometry,ct=S.queryPadding*pe,Lt=kk(Ke),Qt=this.grid.query(Lt.minX-ct,Lt.minY-ct,Lt.maxX+ct,Lt.maxY+ct),fr=kk(S.cameraQueryGeometry),mr=this.grid3D.query(fr.minX-ct,fr.minY-ct,fr.maxX+ct,fr.maxY+ct,(ui,yi,dn,Fi)=>function(ln,An,pa,ro,Vo){for(let sa of ln)if(An<=sa.x&&pa<=sa.y&&ro>=sa.x&&Vo>=sa.y)return!0;let Xa=[new u(An,pa),new u(An,Vo),new u(ro,Vo),new u(ro,pa)];if(ln.length>2){for(let sa of Xa)if(Ni(ln,sa))return!0}for(let sa=0;sa(Fi||(Fi=Qs(ln)),An.queryIntersectsFeature(Ke,ln,pa,Fi,this.z,S.transform,pe,S.pixelPosMatrix)))}return Pr}loadMatchingFeature(S,F,W,te,fe,pe,ze,Ke,ct,Lt,Qt){let fr=this.bucketLayerIDs[F];if(pe&&!function(ui,yi){for(let dn=0;dn=0)return!0;return!1}(pe,fr))return;let mr=this.sourceLayerCoder.decode(W),Pr=this.vtLayers[mr].feature(te);if(fe.needGeometry){let ui=Sl(Pr,!0);if(!fe.filter(new is(this.tileID.overscaledZ),ui,this.tileID.canonical))return}else if(!fe.filter(new is(this.tileID.overscaledZ),Pr))return;let zr=this.getId(Pr,mr);for(let ui=0;ui{let ze=S instanceof Ac?S.get(pe):null;return ze&&ze.evaluate?ze.evaluate(F,W,te):ze})}function kk(R){let S=1/0,F=1/0,W=-1/0,te=-1/0;for(let fe of R)S=Math.min(S,fe.x),F=Math.min(F,fe.y),W=Math.max(W,fe.x),te=Math.max(te,fe.y);return{minX:S,minY:F,maxX:W,maxY:te}}function Z9(R,S){return S-R}function Lk(R,S,F,W,te){let fe=[];for(let pe=0;pe=W&&Qt.x>=W||(Lt.x>=W?Lt=new u(W,Lt.y+(W-Lt.x)/(Qt.x-Lt.x)*(Qt.y-Lt.y))._round():Qt.x>=W&&(Qt=new u(W,Lt.y+(W-Lt.x)/(Qt.x-Lt.x)*(Qt.y-Lt.y))._round()),Lt.y>=te&&Qt.y>=te||(Lt.y>=te?Lt=new u(Lt.x+(te-Lt.y)/(Qt.y-Lt.y)*(Qt.x-Lt.x),te)._round():Qt.y>=te&&(Qt=new u(Lt.x+(te-Lt.y)/(Qt.y-Lt.y)*(Qt.x-Lt.x),te)._round()),Ke&&Lt.equals(Ke[Ke.length-1])||(Ke=[Lt],fe.push(Ke)),Ke.push(Qt)))))}}return fe}Di("FeatureIndex",cy,{omit:["rawTileData","sourceLayerCoder"]});class vg extends u{constructor(S,F,W,te){super(S,F),this.angle=W,te!==void 0&&(this.segment=te)}clone(){return new vg(this.x,this.y,this.angle,this.segment)}}function vS(R,S,F,W,te){if(S.segment===void 0||F===0)return!0;let fe=S,pe=S.segment+1,ze=0;for(;ze>-F/2;){if(pe--,pe<0)return!1;ze-=R[pe].dist(fe),fe=R[pe]}ze+=R[pe].dist(R[pe+1]),pe++;let Ke=[],ct=0;for(;zeW;)ct-=Ke.shift().angleDelta;if(ct>te)return!1;pe++,ze+=Lt.dist(Qt)}return!0}function Pk(R){let S=0;for(let F=0;Fct){let Pr=(ct-Ke)/mr,zr=Lo.number(Qt.x,fr.x,Pr),ui=Lo.number(Qt.y,fr.y,Pr),yi=new vg(zr,ui,fr.angleTo(Qt),Lt);return yi._round(),!pe||vS(R,yi,ze,pe,S)?yi:void 0}Ke+=mr}}function K9(R,S,F,W,te,fe,pe,ze,Ke){let ct=Ik(W,fe,pe),Lt=Rk(W,te),Qt=Lt*pe,fr=R[0].x===0||R[0].x===Ke||R[0].y===0||R[0].y===Ke;return S-Qt=0&&ln=0&&An=0&&fr+ct<=Lt){let pa=new vg(ln,An,dn,Pr);pa._round(),W&&!vS(R,pa,fe,W,te)||mr.push(pa)}}Qt+=yi}return ze||mr.length||pe||(mr=Dk(R,Qt/2,F,W,te,fe,pe,!0,Ke)),mr}Di("Anchor",vg);let k1=Md;function Fk(R,S,F,W){let te=[],fe=R.image,pe=fe.pixelRatio,ze=fe.paddedRect.w-2*k1,Ke=fe.paddedRect.h-2*k1,ct={x1:R.left,y1:R.top,x2:R.right,y2:R.bottom},Lt=fe.stretchX||[[0,ze]],Qt=fe.stretchY||[[0,Ke]],fr=(Xn,Ro)=>Xn+Ro[1]-Ro[0],mr=Lt.reduce(fr,0),Pr=Qt.reduce(fr,0),zr=ze-mr,ui=Ke-Pr,yi=0,dn=mr,Fi=0,ln=Pr,An=0,pa=zr,ro=0,Vo=ui;if(fe.content&&W){let Xn=fe.content,Ro=Xn[2]-Xn[0],uo=Xn[3]-Xn[1];(fe.textFitWidth||fe.textFitHeight)&&(ct=yk(R)),yi=pg(Lt,0,Xn[0]),Fi=pg(Qt,0,Xn[1]),dn=pg(Lt,Xn[0],Xn[2]),ln=pg(Qt,Xn[1],Xn[3]),An=Xn[0]-yi,ro=Xn[1]-Fi,pa=Ro-dn,Vo=uo-ln}let Xa=ct.x1,sa=ct.y1,Mo=ct.x2-Xa,fo=ct.y2-sa,lo=(Xn,Ro,uo,Jo)=>{let Ju=Ow(Xn.stretch-yi,dn,Mo,Xa),qu=L1(Xn.fixed-An,pa,Xn.stretch,mr),Th=Ow(Ro.stretch-Fi,ln,fo,sa),$v=L1(Ro.fixed-ro,Vo,Ro.stretch,Pr),ld=Ow(uo.stretch-yi,dn,Mo,Xa),Ah=L1(uo.fixed-An,pa,uo.stretch,mr),Gd=Ow(Jo.stretch-Fi,ln,fo,sa),Hd=L1(Jo.fixed-ro,Vo,Jo.stretch,Pr),jd=new u(Ju,Th),wf=new u(ld,Th),Sh=new u(ld,Gd),Ed=new u(Ju,Gd),ud=new u(qu/pe,$v/pe),Hh=new u(Ah/pe,Hd/pe),Rf=S*Math.PI/180;if(Rf){let tu=Math.sin(Rf),pc=Math.cos(Rf),$u=[pc,-tu,tu,pc];jd._matMult($u),wf._matMult($u),Ed._matMult($u),Sh._matMult($u)}let Iv=Xn.stretch+Xn.fixed,lv=Ro.stretch+Ro.fixed;return{tl:jd,tr:wf,bl:Ed,br:Sh,tex:{x:fe.paddedRect.x+k1+Iv,y:fe.paddedRect.y+k1+lv,w:uo.stretch+uo.fixed-Iv,h:Jo.stretch+Jo.fixed-lv},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:ud,pixelOffsetBR:Hh,minFontScaleX:pa/pe/Mo,minFontScaleY:Vo/pe/fo,isSDF:F}};if(W&&(fe.stretchX||fe.stretchY)){let Xn=zk(Lt,zr,mr),Ro=zk(Qt,ui,Pr);for(let uo=0;uo0&&(zr=Math.max(10,zr),this.circleDiameter=zr)}else{let fr=!((Qt=pe.image)===null||Qt===void 0)&&Qt.content&&(pe.image.textFitWidth||pe.image.textFitHeight)?yk(pe):{x1:pe.left,y1:pe.top,x2:pe.right,y2:pe.bottom};fr.y1=fr.y1*ze-Ke[0],fr.y2=fr.y2*ze+Ke[2],fr.x1=fr.x1*ze-Ke[3],fr.x2=fr.x2*ze+Ke[1];let mr=pe.collisionPadding;if(mr&&(fr.x1-=mr[0]*ze,fr.y1-=mr[1]*ze,fr.x2+=mr[2]*ze,fr.y2+=mr[3]*ze),Lt){let Pr=new u(fr.x1,fr.y1),zr=new u(fr.x2,fr.y1),ui=new u(fr.x1,fr.y2),yi=new u(fr.x2,fr.y2),dn=Lt*Math.PI/180;Pr._rotate(dn),zr._rotate(dn),ui._rotate(dn),yi._rotate(dn),fr.x1=Math.min(Pr.x,zr.x,ui.x,yi.x),fr.x2=Math.max(Pr.x,zr.x,ui.x,yi.x),fr.y1=Math.min(Pr.y,zr.y,ui.y,yi.y),fr.y2=Math.max(Pr.y,zr.y,ui.y,yi.y)}S.emplaceBack(F.x,F.y,fr.x1,fr.y1,fr.x2,fr.y2,W,te,fe)}this.boxEndIndex=S.length}}class Vp{constructor(S=[],F=(W,te)=>Wte?1:0){if(this.data=S,this.length=this.data.length,this.compare=F,this.length>0)for(let W=(this.length>>1)-1;W>=0;W--)this._down(W)}push(S){this.data.push(S),this._up(this.length++)}pop(){if(this.length===0)return;let S=this.data[0],F=this.data.pop();return--this.length>0&&(this.data[0]=F,this._down(0)),S}peek(){return this.data[0]}_up(S){let{data:F,compare:W}=this,te=F[S];for(;S>0;){let fe=S-1>>1,pe=F[fe];if(W(te,pe)>=0)break;F[S]=pe,S=fe}F[S]=te}_down(S){let{data:F,compare:W}=this,te=this.length>>1,fe=F[S];for(;S=0)break;F[S]=F[pe],S=pe}F[S]=fe}}function J9(R,S=1,F=!1){let W=1/0,te=1/0,fe=-1/0,pe=-1/0,ze=R[0];for(let mr=0;mrfe)&&(fe=Pr.x),(!mr||Pr.y>pe)&&(pe=Pr.y)}let Ke=Math.min(fe-W,pe-te),ct=Ke/2,Lt=new Vp([],$9);if(Ke===0)return new u(W,te);for(let mr=W;mrQt.d||!Qt.d)&&(Qt=mr,F&&console.log("found best %d after %d probes",Math.round(1e4*mr.d)/1e4,fr)),mr.max-Qt.d<=S||(ct=mr.h/2,Lt.push(new P1(mr.p.x-ct,mr.p.y-ct,ct,R)),Lt.push(new P1(mr.p.x+ct,mr.p.y-ct,ct,R)),Lt.push(new P1(mr.p.x-ct,mr.p.y+ct,ct,R)),Lt.push(new P1(mr.p.x+ct,mr.p.y+ct,ct,R)),fr+=4)}return F&&(console.log(`num probes: ${fr}`),console.log(`best distance: ${Qt.d}`)),Qt.p}function $9(R,S){return S.max-R.max}function P1(R,S,F,W){this.p=new u(R,S),this.h=F,this.d=function(te,fe){let pe=!1,ze=1/0;for(let Ke=0;Kete.y!=Pr.y>te.y&&te.x<(Pr.x-mr.x)*(te.y-mr.y)/(Pr.y-mr.y)+mr.x&&(pe=!pe),ze=Math.min(ze,Ur(te,mr,Pr))}}return(pe?1:-1)*Math.sqrt(ze)}(this.p,W),this.max=this.d+this.h*Math.SQRT2}var sd;i.aq=void 0,(sd=i.aq||(i.aq={}))[sd.center=1]="center",sd[sd.left=2]="left",sd[sd.right=3]="right",sd[sd.top=4]="top",sd[sd.bottom=5]="bottom",sd[sd["top-left"]=6]="top-left",sd[sd["top-right"]=7]="top-right",sd[sd["bottom-left"]=8]="bottom-left",sd[sd["bottom-right"]=9]="bottom-right";let fm=7,fy=Number.POSITIVE_INFINITY;function pS(R,S){return S[1]!==fy?function(F,W,te){let fe=0,pe=0;switch(W=Math.abs(W),te=Math.abs(te),F){case"top-right":case"top-left":case"top":pe=te-fm;break;case"bottom-right":case"bottom-left":case"bottom":pe=-te+fm}switch(F){case"top-right":case"bottom-right":case"right":fe=-W;break;case"top-left":case"bottom-left":case"left":fe=W}return[fe,pe]}(R,S[0],S[1]):function(F,W){let te=0,fe=0;W<0&&(W=0);let pe=W/Math.SQRT2;switch(F){case"top-right":case"top-left":fe=pe-fm;break;case"bottom-right":case"bottom-left":fe=-pe+fm;break;case"bottom":fe=-W+fm;break;case"top":fe=W-fm}switch(F){case"top-right":case"bottom-right":te=-pe;break;case"top-left":case"bottom-left":te=pe;break;case"left":te=W;break;case"right":te=-W}return[te,fe]}(R,S[0])}function Ok(R,S,F){var W;let te=R.layout,fe=(W=te.get("text-variable-anchor-offset"))===null||W===void 0?void 0:W.evaluate(S,{},F);if(fe){let ze=fe.values,Ke=[];for(let ct=0;ctfr*eu);Lt.startsWith("top")?Qt[1]-=fm:Lt.startsWith("bottom")&&(Qt[1]+=fm),Ke[ct+1]=Qt}return new Ji(Ke)}let pe=te.get("text-variable-anchor");if(pe){let ze;ze=R._unevaluatedLayout.getValue("text-radial-offset")!==void 0?[te.get("text-radial-offset").evaluate(S,{},F)*eu,fy]:te.get("text-offset").evaluate(S,{},F).map(ct=>ct*eu);let Ke=[];for(let ct of pe)Ke.push(ct,pS(ct,ze));return new Ji(Ke)}return null}function gS(R){switch(R){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Q9(R,S,F,W,te,fe,pe,ze,Ke,ct,Lt){let Qt=fe.textMaxSize.evaluate(S,{});Qt===void 0&&(Qt=pe);let fr=R.layers[0].layout,mr=fr.get("icon-offset").evaluate(S,{},Lt),Pr=Bk(F.horizontal),zr=pe/24,ui=R.tilePixelRatio*zr,yi=R.tilePixelRatio*Qt/24,dn=R.tilePixelRatio*ze,Fi=R.tilePixelRatio*fr.get("symbol-spacing"),ln=fr.get("text-padding")*R.tilePixelRatio,An=function(Xn,Ro,uo,Jo=1){let Ju=Xn.get("icon-padding").evaluate(Ro,{},uo),qu=Ju&&Ju.values;return[qu[0]*Jo,qu[1]*Jo,qu[2]*Jo,qu[3]*Jo]}(fr,S,Lt,R.tilePixelRatio),pa=fr.get("text-max-angle")/180*Math.PI,ro=fr.get("text-rotation-alignment")!=="viewport"&&fr.get("symbol-placement")!=="point",Vo=fr.get("icon-rotation-alignment")==="map"&&fr.get("symbol-placement")!=="point",Xa=fr.get("symbol-placement"),sa=Fi/2,Mo=fr.get("icon-text-fit"),fo;W&&Mo!=="none"&&(R.allowVerticalPlacement&&F.vertical&&(fo=_k(W,F.vertical,Mo,fr.get("icon-text-fit-padding"),mr,zr)),Pr&&(W=_k(W,Pr,Mo,fr.get("icon-text-fit-padding"),mr,zr)));let lo=(Xn,Ro)=>{Ro.x<0||Ro.x>=Ha||Ro.y<0||Ro.y>=Ha||function(uo,Jo,Ju,qu,Th,$v,ld,Ah,Gd,Hd,jd,wf,Sh,Ed,ud,Hh,Rf,Iv,lv,tu,pc,$u,Rv,cf,I1){let p0=uo.addToLineVertexArray(Jo,Ju),Gp,Qv,Gc,Xf,ep=0,gg=0,uv=0,R1=0,bS=-1,Uw=-1,g0={},hy=bi("");if(uo.allowVerticalPlacement&&qu.vertical){let Cd=Ah.layout.get("text-rotate").evaluate(pc,{},cf)+90;Gc=new cm(Gd,Jo,Hd,jd,wf,qu.vertical,Sh,Ed,ud,Cd),ld&&(Xf=new cm(Gd,Jo,Hd,jd,wf,ld,Rf,Iv,ud,Cd))}if(Th){let Cd=Ah.layout.get("icon-rotate").evaluate(pc,{}),tp=Ah.layout.get("icon-text-fit")!=="none",hm=Fk(Th,Cd,Rv,tp),Wd=ld?Fk(ld,Cd,Rv,tp):void 0;Qv=new cm(Gd,Jo,Hd,jd,wf,Th,Rf,Iv,!1,Cd),ep=4*hm.length;let kd=uo.iconSizeData,mp=null;kd.kind==="source"?(mp=[v0*Ah.layout.get("icon-size").evaluate(pc,{})],mp[0]>lm&&T(`${uo.layerIds[0]}: Value for "icon-size" is >= ${Wx}. Reduce your "icon-size".`)):kd.kind==="composite"&&(mp=[v0*$u.compositeIconSizes[0].evaluate(pc,{},cf),v0*$u.compositeIconSizes[1].evaluate(pc,{},cf)],(mp[0]>lm||mp[1]>lm)&&T(`${uo.layerIds[0]}: Value for "icon-size" is >= ${Wx}. Reduce your "icon-size".`)),uo.addSymbols(uo.icon,hm,mp,tu,lv,pc,i.ah.none,Jo,p0.lineStartIndex,p0.lineLength,-1,cf),bS=uo.icon.placedSymbolArray.length-1,Wd&&(gg=4*Wd.length,uo.addSymbols(uo.icon,Wd,mp,tu,lv,pc,i.ah.vertical,Jo,p0.lineStartIndex,p0.lineLength,-1,cf),Uw=uo.icon.placedSymbolArray.length-1)}let jh=Object.keys(qu.horizontal);for(let Cd of jh){let tp=qu.horizontal[Cd];if(!Gp){hy=bi(tp.text);let Wd=Ah.layout.get("text-rotate").evaluate(pc,{},cf);Gp=new cm(Gd,Jo,Hd,jd,wf,tp,Sh,Ed,ud,Wd)}let hm=tp.positionedLines.length===1;if(uv+=qk(uo,Jo,tp,$v,Ah,ud,pc,Hh,p0,qu.vertical?i.ah.horizontal:i.ah.horizontalOnly,hm?jh:[Cd],g0,bS,$u,cf),hm)break}qu.vertical&&(R1+=qk(uo,Jo,qu.vertical,$v,Ah,ud,pc,Hh,p0,i.ah.vertical,["vertical"],g0,Uw,$u,cf));let rO=Gp?Gp.boxStartIndex:uo.collisionBoxArray.length,Vw=Gp?Gp.boxEndIndex:uo.collisionBoxArray.length,m0=Gc?Gc.boxStartIndex:uo.collisionBoxArray.length,cv=Gc?Gc.boxEndIndex:uo.collisionBoxArray.length,Gk=Qv?Qv.boxStartIndex:uo.collisionBoxArray.length,iO=Qv?Qv.boxEndIndex:uo.collisionBoxArray.length,Hk=Xf?Xf.boxStartIndex:uo.collisionBoxArray.length,nO=Xf?Xf.boxEndIndex:uo.collisionBoxArray.length,gp=-1,rb=(Cd,tp)=>Cd&&Cd.circleDiameter?Math.max(Cd.circleDiameter,tp):tp;gp=rb(Gp,gp),gp=rb(Gc,gp),gp=rb(Qv,gp),gp=rb(Xf,gp);let Gw=gp>-1?1:0;Gw&&(gp*=I1/eu),uo.glyphOffsetArray.length>=E1.MAX_GLYPHS&&T("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),pc.sortKey!==void 0&&uo.addToSortKeyRanges(uo.symbolInstances.length,pc.sortKey);let wS=Ok(Ah,pc,cf),[aO,oO]=function(Cd,tp){let hm=Cd.length,Wd=tp==null?void 0:tp.values;if((Wd==null?void 0:Wd.length)>0)for(let kd=0;kd=0?g0.right:-1,g0.center>=0?g0.center:-1,g0.left>=0?g0.left:-1,g0.vertical||-1,bS,Uw,hy,rO,Vw,m0,cv,Gk,iO,Hk,nO,Hd,uv,R1,ep,gg,Gw,0,Sh,gp,aO,oO)}(R,Ro,Xn,F,W,te,fo,R.layers[0],R.collisionBoxArray,S.index,S.sourceLayerIndex,R.index,ui,[ln,ln,ln,ln],ro,Ke,dn,An,Vo,mr,S,fe,ct,Lt,pe)};if(Xa==="line")for(let Xn of Lk(S.geometry,0,0,Ha,Ha)){let Ro=K9(Xn,Fi,pa,F.vertical||Pr,W,24,yi,R.overscaling,Ha);for(let uo of Ro)Pr&&eO(R,Pr.text,sa,uo)||lo(Xn,uo)}else if(Xa==="line-center"){for(let Xn of S.geometry)if(Xn.length>1){let Ro=Y9(Xn,pa,F.vertical||Pr,W,24,yi);Ro&&lo(Xn,Ro)}}else if(S.type==="Polygon")for(let Xn of Cf(S.geometry,0)){let Ro=J9(Xn,16);lo(Xn[0],new vg(Ro.x,Ro.y,0))}else if(S.type==="LineString")for(let Xn of S.geometry)lo(Xn,new vg(Xn[0].x,Xn[0].y,0));else if(S.type==="Point")for(let Xn of S.geometry)for(let Ro of Xn)lo([Ro],new vg(Ro.x,Ro.y,0))}function qk(R,S,F,W,te,fe,pe,ze,Ke,ct,Lt,Qt,fr,mr,Pr){let zr=function(dn,Fi,ln,An,pa,ro,Vo,Xa){let sa=An.layout.get("text-rotate").evaluate(ro,{})*Math.PI/180,Mo=[];for(let fo of Fi.positionedLines)for(let lo of fo.positionedGlyphs){if(!lo.rect)continue;let Xn=lo.rect||{},Ro=vk+1,uo=!0,Jo=1,Ju=0,qu=(pa||Xa)&&lo.vertical,Th=lo.metrics.advance*lo.scale/2;if(Xa&&Fi.verticalizable&&(Ju=fo.lineOffset/2-(lo.imageName?-(eu-lo.metrics.width*lo.scale)/2:(lo.scale-1)*eu)),lo.imageName){let tu=Vo[lo.imageName];uo=tu.sdf,Jo=tu.pixelRatio,Ro=Md/Jo}let $v=pa?[lo.x+Th,lo.y]:[0,0],ld=pa?[0,0]:[lo.x+Th+ln[0],lo.y+ln[1]-Ju],Ah=[0,0];qu&&(Ah=ld,ld=[0,0]);let Gd=lo.metrics.isDoubleResolution?2:1,Hd=(lo.metrics.left-Ro)*lo.scale-Th+ld[0],jd=(-lo.metrics.top-Ro)*lo.scale+ld[1],wf=Hd+Xn.w/Gd*lo.scale/Jo,Sh=jd+Xn.h/Gd*lo.scale/Jo,Ed=new u(Hd,jd),ud=new u(wf,jd),Hh=new u(Hd,Sh),Rf=new u(wf,Sh);if(qu){let tu=new u(-Th,Th-wh),pc=-Math.PI/2,$u=eu/2-Th,Rv=new u(5-wh-$u,-(lo.imageName?$u:0)),cf=new u(...Ah);Ed._rotateAround(pc,tu)._add(Rv)._add(cf),ud._rotateAround(pc,tu)._add(Rv)._add(cf),Hh._rotateAround(pc,tu)._add(Rv)._add(cf),Rf._rotateAround(pc,tu)._add(Rv)._add(cf)}if(sa){let tu=Math.sin(sa),pc=Math.cos(sa),$u=[pc,-tu,tu,pc];Ed._matMult($u),ud._matMult($u),Hh._matMult($u),Rf._matMult($u)}let Iv=new u(0,0),lv=new u(0,0);Mo.push({tl:Ed,tr:ud,bl:Hh,br:Rf,tex:Xn,writingMode:Fi.writingMode,glyphOffset:$v,sectionIndex:lo.sectionIndex,isSDF:uo,pixelOffsetTL:Iv,pixelOffsetBR:lv,minFontScaleX:0,minFontScaleY:0})}return Mo}(0,F,ze,te,fe,pe,W,R.allowVerticalPlacement),ui=R.textSizeData,yi=null;ui.kind==="source"?(yi=[v0*te.layout.get("text-size").evaluate(pe,{})],yi[0]>lm&&T(`${R.layerIds[0]}: Value for "text-size" is >= ${Wx}. Reduce your "text-size".`)):ui.kind==="composite"&&(yi=[v0*mr.compositeTextSizes[0].evaluate(pe,{},Pr),v0*mr.compositeTextSizes[1].evaluate(pe,{},Pr)],(yi[0]>lm||yi[1]>lm)&&T(`${R.layerIds[0]}: Value for "text-size" is >= ${Wx}. Reduce your "text-size".`)),R.addSymbols(R.text,zr,yi,ze,fe,pe,ct,S,Ke.lineStartIndex,Ke.lineLength,fr,Pr);for(let dn of Lt)Qt[dn]=R.text.placedSymbolArray.length-1;return 4*zr.length}function Bk(R){for(let S in R)return R[S];return null}function eO(R,S,F,W){let te=R.compareText;if(S in te){let fe=te[S];for(let pe=fe.length-1;pe>=0;pe--)if(W.dist(fe[pe])>4;if(te!==1)throw new Error(`Got v${te} data when expected v1.`);let fe=Nk[15&W];if(!fe)throw new Error("Unrecognized array type.");let[pe]=new Uint16Array(S,2,1),[ze]=new Uint32Array(S,4,1);return new mS(ze,pe,fe,S)}constructor(S,F=64,W=Float64Array,te){if(isNaN(S)||S<0)throw new Error(`Unpexpected numItems value: ${S}.`);this.numItems=+S,this.nodeSize=Math.min(Math.max(+F,2),65535),this.ArrayType=W,this.IndexArrayType=S<65536?Uint16Array:Uint32Array;let fe=Nk.indexOf(this.ArrayType),pe=2*S*this.ArrayType.BYTES_PER_ELEMENT,ze=S*this.IndexArrayType.BYTES_PER_ELEMENT,Ke=(8-ze%8)%8;if(fe<0)throw new Error(`Unexpected typed array class: ${W}.`);te&&te instanceof ArrayBuffer?(this.data=te,this.ids=new this.IndexArrayType(this.data,8,S),this.coords=new this.ArrayType(this.data,8+ze+Ke,2*S),this._pos=2*S,this._finished=!0):(this.data=new ArrayBuffer(8+pe+ze+Ke),this.ids=new this.IndexArrayType(this.data,8,S),this.coords=new this.ArrayType(this.data,8+ze+Ke,2*S),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+fe]),new Uint16Array(this.data,2,1)[0]=F,new Uint32Array(this.data,4,1)[0]=S)}add(S,F){let W=this._pos>>1;return this.ids[W]=W,this.coords[this._pos++]=S,this.coords[this._pos++]=F,W}finish(){let S=this._pos>>1;if(S!==this.numItems)throw new Error(`Added ${S} items when expected ${this.numItems}.`);return qw(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(S,F,W,te){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:fe,coords:pe,nodeSize:ze}=this,Ke=[0,fe.length-1,0],ct=[];for(;Ke.length;){let Lt=Ke.pop()||0,Qt=Ke.pop()||0,fr=Ke.pop()||0;if(Qt-fr<=ze){for(let ui=fr;ui<=Qt;ui++){let yi=pe[2*ui],dn=pe[2*ui+1];yi>=S&&yi<=W&&dn>=F&&dn<=te&&ct.push(fe[ui])}continue}let mr=fr+Qt>>1,Pr=pe[2*mr],zr=pe[2*mr+1];Pr>=S&&Pr<=W&&zr>=F&&zr<=te&&ct.push(fe[mr]),(Lt===0?S<=Pr:F<=zr)&&(Ke.push(fr),Ke.push(mr-1),Ke.push(1-Lt)),(Lt===0?W>=Pr:te>=zr)&&(Ke.push(mr+1),Ke.push(Qt),Ke.push(1-Lt))}return ct}within(S,F,W){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:te,coords:fe,nodeSize:pe}=this,ze=[0,te.length-1,0],Ke=[],ct=W*W;for(;ze.length;){let Lt=ze.pop()||0,Qt=ze.pop()||0,fr=ze.pop()||0;if(Qt-fr<=pe){for(let ui=fr;ui<=Qt;ui++)Vk(fe[2*ui],fe[2*ui+1],S,F)<=ct&&Ke.push(te[ui]);continue}let mr=fr+Qt>>1,Pr=fe[2*mr],zr=fe[2*mr+1];Vk(Pr,zr,S,F)<=ct&&Ke.push(te[mr]),(Lt===0?S-W<=Pr:F-W<=zr)&&(ze.push(fr),ze.push(mr-1),ze.push(1-Lt)),(Lt===0?S+W>=Pr:F+W>=zr)&&(ze.push(mr+1),ze.push(Qt),ze.push(1-Lt))}return Ke}}function qw(R,S,F,W,te,fe){if(te-W<=F)return;let pe=W+te>>1;Uk(R,S,pe,W,te,fe),qw(R,S,F,W,pe-1,1-fe),qw(R,S,F,pe+1,te,1-fe)}function Uk(R,S,F,W,te,fe){for(;te>W;){if(te-W>600){let ct=te-W+1,Lt=F-W+1,Qt=Math.log(ct),fr=.5*Math.exp(2*Qt/3),mr=.5*Math.sqrt(Qt*fr*(ct-fr)/ct)*(Lt-ct/2<0?-1:1);Uk(R,S,F,Math.max(W,Math.floor(F-Lt*fr/ct+mr)),Math.min(te,Math.floor(F+(ct-Lt)*fr/ct+mr)),fe)}let pe=S[2*F+fe],ze=W,Ke=te;for(eb(R,S,W,F),S[2*te+fe]>pe&&eb(R,S,W,te);zepe;)Ke--}S[2*W+fe]===pe?eb(R,S,W,Ke):(Ke++,eb(R,S,Ke,te)),Ke<=F&&(W=Ke+1),F<=Ke&&(te=Ke-1)}}function eb(R,S,F,W){yS(R,F,W),yS(S,2*F,2*W),yS(S,2*F+1,2*W+1)}function yS(R,S,F){let W=R[S];R[S]=R[F],R[F]=W}function Vk(R,S,F,W){let te=R-F,fe=S-W;return te*te+fe*fe}var Bw;i.bg=void 0,(Bw=i.bg||(i.bg={})).create="create",Bw.load="load",Bw.fullLoad="fullLoad";let tb=null,sh=[],_S=1e3/60,xS="loadTime",Nw="fullLoadTime",tO={mark(R){performance.mark(R)},frame(R){let S=R;tb!=null&&sh.push(S-tb),tb=S},clearMetrics(){tb=null,sh=[],performance.clearMeasures(xS),performance.clearMeasures(Nw);for(let R in i.bg)performance.clearMarks(i.bg[R])},getPerformanceMetrics(){performance.measure(xS,i.bg.create,i.bg.load),performance.measure(Nw,i.bg.create,i.bg.fullLoad);let R=performance.getEntriesByName(xS)[0].duration,S=performance.getEntriesByName(Nw)[0].duration,F=sh.length,W=1/(sh.reduce((fe,pe)=>fe+pe,0)/F/1e3),te=sh.filter(fe=>fe>_S).reduce((fe,pe)=>fe+(pe-_S)/_S,0);return{loadTime:R,fullLoadTime:S,fps:W,percentDroppedFrames:te/(F+te)*100,totalFrames:F}}};i.$=class extends Yt{},i.A=xi,i.B=hn,i.C=function(R){if(V==null){let S=R.navigator?R.navigator.userAgent:null;V=!!R.safari||!(!S||!(/\b(iPad|iPhone|iPod)\b/.test(S)||S.match("Safari")&&!S.match("Chrome")))}return V},i.D=Ua,i.E=De,i.F=class{constructor(R,S){this.target=R,this.mapId=S,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new cS(()=>this.process()),this.subscription=function(F,W,te,fe){return F.addEventListener(W,te,!1),{unsubscribe:()=>{F.removeEventListener(W,te,!1)}}}(this.target,"message",F=>this.receive(F)),this.globalScope=O(self)?R:window}registerMessageHandler(R,S){this.messageHandlers[R]=S}sendAsync(R,S){return new Promise((F,W)=>{let te=Math.round(1e18*Math.random()).toString(36).substring(0,10);this.resolveRejects[te]={resolve:F,reject:W},S&&S.signal.addEventListener("abort",()=>{delete this.resolveRejects[te];let ze={id:te,type:"",origin:location.origin,targetMapId:R.targetMapId,sourceMapId:this.mapId};this.target.postMessage(ze)},{once:!0});let fe=[],pe=Object.assign(Object.assign({},R),{id:te,sourceMapId:this.mapId,origin:location.origin,data:La(R.data,fe)});this.target.postMessage(pe,{transfer:fe})})}receive(R){let S=R.data,F=S.id;if(!(S.origin!=="file://"&&location.origin!=="file://"&&S.origin!=="resource://android"&&location.origin!=="resource://android"&&S.origin!==location.origin||S.targetMapId&&this.mapId!==S.targetMapId)){if(S.type===""){delete this.tasks[F];let W=this.abortControllers[F];return delete this.abortControllers[F],void(W&&W.abort())}if(O(self)||S.mustQueue)return this.tasks[F]=S,this.taskQueue.push(F),void this.invoker.trigger();this.processTask(F,S)}}process(){if(this.taskQueue.length===0)return;let R=this.taskQueue.shift(),S=this.tasks[R];delete this.tasks[R],this.taskQueue.length>0&&this.invoker.trigger(),S&&this.processTask(R,S)}processTask(R,S){return a(this,void 0,void 0,function*(){if(S.type===""){let te=this.resolveRejects[R];return delete this.resolveRejects[R],te?void(S.error?te.reject(Na(S.error)):te.resolve(Na(S.data))):void 0}if(!this.messageHandlers[S.type])return void this.completeTask(R,new Error(`Could not find a registered handler for ${S.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));let F=Na(S.data),W=new AbortController;this.abortControllers[R]=W;try{let te=yield this.messageHandlers[S.type](S.sourceMapId,F,W);this.completeTask(R,null,te)}catch(te){this.completeTask(R,te)}})}completeTask(R,S,F){let W=[];delete this.abortControllers[R];let te={id:R,type:"",sourceMapId:this.mapId,origin:location.origin,error:S?La(S):null,data:La(F,W)};this.target.postMessage(te,{transfer:W})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},i.G=ke,i.H=function(){var R=new xi(16);return xi!=Float32Array&&(R[1]=0,R[2]=0,R[3]=0,R[4]=0,R[6]=0,R[7]=0,R[8]=0,R[9]=0,R[11]=0,R[12]=0,R[13]=0,R[14]=0),R[0]=1,R[5]=1,R[10]=1,R[15]=1,R},i.I=Cw,i.J=function(R,S,F){var W,te,fe,pe,ze,Ke,ct,Lt,Qt,fr,mr,Pr,zr=F[0],ui=F[1],yi=F[2];return S===R?(R[12]=S[0]*zr+S[4]*ui+S[8]*yi+S[12],R[13]=S[1]*zr+S[5]*ui+S[9]*yi+S[13],R[14]=S[2]*zr+S[6]*ui+S[10]*yi+S[14],R[15]=S[3]*zr+S[7]*ui+S[11]*yi+S[15]):(te=S[1],fe=S[2],pe=S[3],ze=S[4],Ke=S[5],ct=S[6],Lt=S[7],Qt=S[8],fr=S[9],mr=S[10],Pr=S[11],R[0]=W=S[0],R[1]=te,R[2]=fe,R[3]=pe,R[4]=ze,R[5]=Ke,R[6]=ct,R[7]=Lt,R[8]=Qt,R[9]=fr,R[10]=mr,R[11]=Pr,R[12]=W*zr+ze*ui+Qt*yi+S[12],R[13]=te*zr+Ke*ui+fr*yi+S[13],R[14]=fe*zr+ct*ui+mr*yi+S[14],R[15]=pe*zr+Lt*ui+Pr*yi+S[15]),R},i.K=function(R,S,F){var W=F[0],te=F[1],fe=F[2];return R[0]=S[0]*W,R[1]=S[1]*W,R[2]=S[2]*W,R[3]=S[3]*W,R[4]=S[4]*te,R[5]=S[5]*te,R[6]=S[6]*te,R[7]=S[7]*te,R[8]=S[8]*fe,R[9]=S[9]*fe,R[10]=S[10]*fe,R[11]=S[11]*fe,R[12]=S[12],R[13]=S[13],R[14]=S[14],R[15]=S[15],R},i.L=ci,i.M=function(R,S){let F={};for(let W=0;W{let S=window.document.createElement("video");return S.muted=!0,new Promise(F=>{S.onloadstart=()=>{F(S)};for(let W of R){let te=window.document.createElement("source");Le(W)||(S.crossOrigin="Anonymous"),te.src=W,S.appendChild(te)}})},i.a4=function(){return _++},i.a5=Pn,i.a6=E1,i.a7=Fc,i.a8=Sl,i.a9=dS,i.aA=function(R){if(R.type==="custom")return new uS(R);switch(R.type){case"background":return new X9(R);case"circle":return new hi(R);case"fill":return new mt(R);case"fill-extrusion":return new Ev(R);case"heatmap":return new oa(R);case"hillshade":return new Ys(R);case"line":return new ay(R);case"raster":return new Kx(R);case"symbol":return new uy(R)}},i.aB=g,i.aC=function(R,S){if(!R)return[{command:"setStyle",args:[S]}];let F=[];try{if(!gt(R.version,S.version))return[{command:"setStyle",args:[S]}];gt(R.center,S.center)||F.push({command:"setCenter",args:[S.center]}),gt(R.zoom,S.zoom)||F.push({command:"setZoom",args:[S.zoom]}),gt(R.bearing,S.bearing)||F.push({command:"setBearing",args:[S.bearing]}),gt(R.pitch,S.pitch)||F.push({command:"setPitch",args:[S.pitch]}),gt(R.sprite,S.sprite)||F.push({command:"setSprite",args:[S.sprite]}),gt(R.glyphs,S.glyphs)||F.push({command:"setGlyphs",args:[S.glyphs]}),gt(R.transition,S.transition)||F.push({command:"setTransition",args:[S.transition]}),gt(R.light,S.light)||F.push({command:"setLight",args:[S.light]}),gt(R.terrain,S.terrain)||F.push({command:"setTerrain",args:[S.terrain]}),gt(R.sky,S.sky)||F.push({command:"setSky",args:[S.sky]}),gt(R.projection,S.projection)||F.push({command:"setProjection",args:[S.projection]});let W={},te=[];(function(pe,ze,Ke,ct){let Lt;for(Lt in ze=ze||{},pe=pe||{})Object.prototype.hasOwnProperty.call(pe,Lt)&&(Object.prototype.hasOwnProperty.call(ze,Lt)||lt(Lt,Ke,ct));for(Lt in ze)Object.prototype.hasOwnProperty.call(ze,Lt)&&(Object.prototype.hasOwnProperty.call(pe,Lt)?gt(pe[Lt],ze[Lt])||(pe[Lt].type==="geojson"&&ze[Lt].type==="geojson"&&Ut(pe,ze,Lt)?Kt(Ke,{command:"setGeoJSONSourceData",args:[Lt,ze[Lt].data]}):Gt(Lt,ze,Ke,ct)):st(Lt,ze,Ke))})(R.sources,S.sources,te,W);let fe=[];R.layers&&R.layers.forEach(pe=>{"source"in pe&&W[pe.source]?F.push({command:"removeLayer",args:[pe.id]}):fe.push(pe)}),F=F.concat(te),function(pe,ze,Ke){ze=ze||[];let ct=(pe=pe||[]).map(sr),Lt=ze.map(sr),Qt=pe.reduce(Tr,{}),fr=ze.reduce(Tr,{}),mr=ct.slice(),Pr=Object.create(null),zr,ui,yi,dn,Fi;for(let ln=0,An=0;ln@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(F,W,te,fe)=>{let pe=te||fe;return S[W]=!pe||pe.toLowerCase(),""}),S["max-age"]){let F=parseInt(S["max-age"],10);isNaN(F)?delete S["max-age"]:S["max-age"]=F}return S},i.ab=function(R,S){let F=[];for(let W in R)W in S||F.push(W);return F},i.ac=E,i.ad=function(R,S,F){var W=Math.sin(F),te=Math.cos(F),fe=S[0],pe=S[1],ze=S[2],Ke=S[3],ct=S[4],Lt=S[5],Qt=S[6],fr=S[7];return S!==R&&(R[8]=S[8],R[9]=S[9],R[10]=S[10],R[11]=S[11],R[12]=S[12],R[13]=S[13],R[14]=S[14],R[15]=S[15]),R[0]=fe*te+ct*W,R[1]=pe*te+Lt*W,R[2]=ze*te+Qt*W,R[3]=Ke*te+fr*W,R[4]=ct*te-fe*W,R[5]=Lt*te-pe*W,R[6]=Qt*te-ze*W,R[7]=fr*te-Ke*W,R},i.ae=function(R){var S=new xi(16);return S[0]=R[0],S[1]=R[1],S[2]=R[2],S[3]=R[3],S[4]=R[4],S[5]=R[5],S[6]=R[6],S[7]=R[7],S[8]=R[8],S[9]=R[9],S[10]=R[10],S[11]=R[11],S[12]=R[12],S[13]=R[13],S[14]=R[14],S[15]=R[15],S},i.af=qn,i.ag=function(R,S){let F=0,W=0;if(R.kind==="constant")W=R.layoutSize;else if(R.kind!=="source"){let{interpolationType:te,minZoom:fe,maxZoom:pe}=R,ze=te?E(Co.interpolationFactor(te,S,fe,pe),0,1):0;R.kind==="camera"?W=Lo.number(R.minSize,R.maxSize,ze):F=ze}return{uSizeT:F,uSize:W}},i.ai=function(R,{uSize:S,uSizeT:F},{lowerSize:W,upperSize:te}){return R.kind==="source"?W/v0:R.kind==="composite"?Lo.number(W/v0,te/v0,F):S},i.aj=aS,i.ak=function(R,S,F,W){let te=S.y-R.y,fe=S.x-R.x,pe=W.y-F.y,ze=W.x-F.x,Ke=pe*fe-ze*te;if(Ke===0)return null;let ct=(ze*(R.y-F.y)-pe*(R.x-F.x))/Ke;return new u(R.x+ct*fe,R.y+ct*te)},i.al=Lk,i.am=Sc,i.an=Ii,i.ao=function(R){let S=1/0,F=1/0,W=-1/0,te=-1/0;for(let fe of R)S=Math.min(S,fe.x),F=Math.min(F,fe.y),W=Math.max(W,fe.x),te=Math.max(te,fe.y);return[S,F,W,te]},i.ap=eu,i.ar=nS,i.as=function(R,S){var F=S[0],W=S[1],te=S[2],fe=S[3],pe=S[4],ze=S[5],Ke=S[6],ct=S[7],Lt=S[8],Qt=S[9],fr=S[10],mr=S[11],Pr=S[12],zr=S[13],ui=S[14],yi=S[15],dn=F*ze-W*pe,Fi=F*Ke-te*pe,ln=F*ct-fe*pe,An=W*Ke-te*ze,pa=W*ct-fe*ze,ro=te*ct-fe*Ke,Vo=Lt*zr-Qt*Pr,Xa=Lt*ui-fr*Pr,sa=Lt*yi-mr*Pr,Mo=Qt*ui-fr*zr,fo=Qt*yi-mr*zr,lo=fr*yi-mr*ui,Xn=dn*lo-Fi*fo+ln*Mo+An*sa-pa*Xa+ro*Vo;return Xn?(R[0]=(ze*lo-Ke*fo+ct*Mo)*(Xn=1/Xn),R[1]=(te*fo-W*lo-fe*Mo)*Xn,R[2]=(zr*ro-ui*pa+yi*An)*Xn,R[3]=(fr*pa-Qt*ro-mr*An)*Xn,R[4]=(Ke*sa-pe*lo-ct*Xa)*Xn,R[5]=(F*lo-te*sa+fe*Xa)*Xn,R[6]=(ui*ln-Pr*ro-yi*Fi)*Xn,R[7]=(Lt*ro-fr*ln+mr*Fi)*Xn,R[8]=(pe*fo-ze*sa+ct*Vo)*Xn,R[9]=(W*sa-F*fo-fe*Vo)*Xn,R[10]=(Pr*pa-zr*ln+yi*dn)*Xn,R[11]=(Qt*ln-Lt*pa-mr*dn)*Xn,R[12]=(ze*Xa-pe*Mo-Ke*Vo)*Xn,R[13]=(F*Mo-W*Xa+te*Vo)*Xn,R[14]=(zr*Fi-Pr*An-ui*dn)*Xn,R[15]=(Lt*An-Qt*Fi+fr*dn)*Xn,R):null},i.at=gS,i.au=Iw,i.av=mS,i.aw=function(){let R={},S=ce.$version;for(let F in ce.$root){let W=ce.$root[F];if(W.required){let te=null;te=F==="version"?S:W.type==="array"?[]:{},te!=null&&(R[F]=te)}}return R},i.ax=Yn,i.ay=ie,i.az=function(R){R=R.slice();let S=Object.create(null);for(let F=0;F25||W<0||W>=1||F<0||F>=1)},i.bc=function(R,S){return R[0]=S[0],R[1]=0,R[2]=0,R[3]=0,R[4]=0,R[5]=S[1],R[6]=0,R[7]=0,R[8]=0,R[9]=0,R[10]=S[2],R[11]=0,R[12]=0,R[13]=0,R[14]=0,R[15]=1,R},i.bd=class extends wt{},i.be=fS,i.bf=tO,i.bh=me,i.bi=function(R,S){_e.REGISTERED_PROTOCOLS[R]=S},i.bj=function(R){delete _e.REGISTERED_PROTOCOLS[R]},i.bk=function(R,S){let F={};for(let te=0;telo*eu)}let Xa=pe?"center":F.get("text-justify").evaluate(ct,{},R.canonical),sa=F.get("symbol-placement")==="point"?F.get("text-max-width").evaluate(ct,{},R.canonical)*eu:1/0,Mo=()=>{R.bucket.allowVerticalPlacement&&Ka(ln)&&(Pr.vertical=Hx(zr,R.glyphMap,R.glyphPositions,R.imagePositions,Lt,sa,fe,ro,"left",pa,yi,i.ah.vertical,!0,fr,Qt))};if(!pe&&Vo){let fo=new Set;if(Xa==="auto")for(let Xn=0;Xna(void 0,void 0,void 0,function*(){if(R.byteLength===0)return createImageBitmap(new ImageData(1,1));let S=new Blob([new Uint8Array(R)],{type:"image/png"});try{return createImageBitmap(S)}catch(F){throw new Error(`Could not load image because of ${F.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}}),i.e=L,i.f=R=>new Promise((S,F)=>{let W=new Image;W.onload=()=>{S(W),URL.revokeObjectURL(W.src),W.onload=null,window.requestAnimationFrame(()=>{W.src=Z})},W.onerror=()=>F(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));let te=new Blob([new Uint8Array(R)],{type:"image/png"});W.src=R.byteLength?URL.createObjectURL(te):Z}),i.g=Me,i.h=(R,S)=>Se(L(R,{type:"json"}),S),i.i=O,i.j=ge,i.k=Pe,i.l=(R,S)=>Se(L(R,{type:"arrayBuffer"}),S),i.m=Se,i.n=function(R){return new tS(R).readFields(EQ,[])},i.o=na,i.p=iS,i.q=ue,i.r=Wi,i.s=Le,i.t=Zi,i.u=Ei,i.v=ce,i.w=T,i.x=function([R,S,F]){return S+=90,S*=Math.PI/180,F*=Math.PI/180,{x:R*Math.cos(S)*Math.sin(F),y:R*Math.sin(S)*Math.sin(F),z:R*Math.cos(F)}},i.y=Lo,i.z=is}),r("worker",["./shared"],function(i){"use strict";class a{constructor(Ge){this.keyCache={},Ge&&this.replace(Ge)}replace(Ge){this._layerConfigs={},this._layers={},this.update(Ge,[])}update(Ge,Qe){for(let Je of Ge){this._layerConfigs[Je.id]=Je;let xt=this._layers[Je.id]=i.aA(Je);xt._featureFilter=i.a7(xt.filter),this.keyCache[Je.id]&&delete this.keyCache[Je.id]}for(let Je of Qe)delete this.keyCache[Je],delete this._layerConfigs[Je],delete this._layers[Je];this.familiesBySource={};let je=i.bk(Object.values(this._layerConfigs),this.keyCache);for(let Je of je){let xt=Je.map(ir=>this._layers[ir.id]),Ie=xt[0];if(Ie.visibility==="none")continue;let xe=Ie.source||"",Ce=this.familiesBySource[xe];Ce||(Ce=this.familiesBySource[xe]={});let pt=Ie.sourceLayer||"_geojsonTileLayer",nr=Ce[pt];nr||(nr=Ce[pt]=[]),nr.push(xt)}}}class o{constructor(Ge){let Qe={},je=[];for(let xe in Ge){let Ce=Ge[xe],pt=Qe[xe]={};for(let nr in Ce){let ir=Ce[+nr];if(!ir||ir.bitmap.width===0||ir.bitmap.height===0)continue;let vr={x:0,y:0,w:ir.bitmap.width+2,h:ir.bitmap.height+2};je.push(vr),pt[nr]={rect:vr,metrics:ir.metrics}}}let{w:Je,h:xt}=i.p(je),Ie=new i.o({width:Je||1,height:xt||1});for(let xe in Ge){let Ce=Ge[xe];for(let pt in Ce){let nr=Ce[+pt];if(!nr||nr.bitmap.width===0||nr.bitmap.height===0)continue;let ir=Qe[xe][pt].rect;i.o.copy(nr.bitmap,Ie,{x:0,y:0},{x:ir.x+1,y:ir.y+1},nr.bitmap)}}this.image=Ie,this.positions=Qe}}i.bl("GlyphAtlas",o);class s{constructor(Ge){this.tileID=new i.S(Ge.tileID.overscaledZ,Ge.tileID.wrap,Ge.tileID.canonical.z,Ge.tileID.canonical.x,Ge.tileID.canonical.y),this.uid=Ge.uid,this.zoom=Ge.zoom,this.pixelRatio=Ge.pixelRatio,this.tileSize=Ge.tileSize,this.source=Ge.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=Ge.showCollisionBoxes,this.collectResourceTiming=!!Ge.collectResourceTiming,this.returnDependencies=!!Ge.returnDependencies,this.promoteId=Ge.promoteId,this.inFlightDependencies=[]}parse(Ge,Qe,je,Je){return i._(this,void 0,void 0,function*(){this.status="parsing",this.data=Ge,this.collisionBoxArray=new i.a5;let xt=new i.bm(Object.keys(Ge.layers).sort()),Ie=new i.bn(this.tileID,this.promoteId);Ie.bucketLayerIDs=[];let xe={},Ce={featureIndex:Ie,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:je},pt=Qe.familiesBySource[this.source];for(let Vn in pt){let kn=Ge.layers[Vn];if(!kn)continue;kn.version===1&&i.w(`Vector tile source "${this.source}" layer "${Vn}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let ea=xt.encode(Vn),ua=[];for(let Ht=0;Ht=yt.maxzoom||yt.visibility!=="none"&&(l(Ht,this.zoom,je),(xe[yt.id]=yt.createBucket({index:Ie.bucketLayerIDs.length,layers:Ht,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:ea,sourceID:this.source})).populate(ua,Ce,this.tileID.canonical),Ie.bucketLayerIDs.push(Ht.map(er=>er.id)))}}let nr=i.aF(Ce.glyphDependencies,Vn=>Object.keys(Vn).map(Number));this.inFlightDependencies.forEach(Vn=>Vn==null?void 0:Vn.abort()),this.inFlightDependencies=[];let ir=Promise.resolve({});if(Object.keys(nr).length){let Vn=new AbortController;this.inFlightDependencies.push(Vn),ir=Je.sendAsync({type:"GG",data:{stacks:nr,source:this.source,tileID:this.tileID,type:"glyphs"}},Vn)}let vr=Object.keys(Ce.iconDependencies),si=Promise.resolve({});if(vr.length){let Vn=new AbortController;this.inFlightDependencies.push(Vn),si=Je.sendAsync({type:"GI",data:{icons:vr,source:this.source,tileID:this.tileID,type:"icons"}},Vn)}let mi=Object.keys(Ce.patternDependencies),ei=Promise.resolve({});if(mi.length){let Vn=new AbortController;this.inFlightDependencies.push(Vn),ei=Je.sendAsync({type:"GI",data:{icons:mi,source:this.source,tileID:this.tileID,type:"patterns"}},Vn)}let[vi,ji,Rn]=yield Promise.all([ir,si,ei]),wn=new o(vi),pn=new i.bo(ji,Rn);for(let Vn in xe){let kn=xe[Vn];kn instanceof i.a6?(l(kn.layers,this.zoom,je),i.bp({bucket:kn,glyphMap:vi,glyphPositions:wn.positions,imageMap:ji,imagePositions:pn.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):kn.hasPattern&&(kn instanceof i.bq||kn instanceof i.br||kn instanceof i.bs)&&(l(kn.layers,this.zoom,je),kn.addFeatures(Ce,this.tileID.canonical,pn.patternPositions))}return this.status="done",{buckets:Object.values(xe).filter(Vn=>!Vn.isEmpty()),featureIndex:Ie,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:wn.image,imageAtlas:pn,glyphMap:this.returnDependencies?vi:null,iconMap:this.returnDependencies?ji:null,glyphPositions:this.returnDependencies?wn.positions:null}})}}function l(dt,Ge,Qe){let je=new i.z(Ge);for(let Je of dt)Je.recalculate(je,Qe)}class u{constructor(Ge,Qe,je){this.actor=Ge,this.layerIndex=Qe,this.availableImages=je,this.fetching={},this.loading={},this.loaded={}}loadVectorTile(Ge,Qe){return i._(this,void 0,void 0,function*(){let je=yield i.l(Ge.request,Qe);try{return{vectorTile:new i.bt.VectorTile(new i.bu(je.data)),rawData:je.data,cacheControl:je.cacheControl,expires:je.expires}}catch(Je){let xt=new Uint8Array(je.data),Ie=`Unable to parse the tile at ${Ge.request.url}, `;throw Ie+=xt[0]===31&&xt[1]===139?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${Je.message}`,new Error(Ie)}})}loadTile(Ge){return i._(this,void 0,void 0,function*(){let Qe=Ge.uid,je=!!(Ge&&Ge.request&&Ge.request.collectResourceTiming)&&new i.bv(Ge.request),Je=new s(Ge);this.loading[Qe]=Je;let xt=new AbortController;Je.abort=xt;try{let Ie=yield this.loadVectorTile(Ge,xt);if(delete this.loading[Qe],!Ie)return null;let xe=Ie.rawData,Ce={};Ie.expires&&(Ce.expires=Ie.expires),Ie.cacheControl&&(Ce.cacheControl=Ie.cacheControl);let pt={};if(je){let ir=je.finish();ir&&(pt.resourceTiming=JSON.parse(JSON.stringify(ir)))}Je.vectorTile=Ie.vectorTile;let nr=Je.parse(Ie.vectorTile,this.layerIndex,this.availableImages,this.actor);this.loaded[Qe]=Je,this.fetching[Qe]={rawTileData:xe,cacheControl:Ce,resourceTiming:pt};try{let ir=yield nr;return i.e({rawTileData:xe.slice(0)},ir,Ce,pt)}finally{delete this.fetching[Qe]}}catch(Ie){throw delete this.loading[Qe],Je.status="done",this.loaded[Qe]=Je,Ie}})}reloadTile(Ge){return i._(this,void 0,void 0,function*(){let Qe=Ge.uid;if(!this.loaded||!this.loaded[Qe])throw new Error("Should not be trying to reload a tile that was never loaded or has been removed");let je=this.loaded[Qe];if(je.showCollisionBoxes=Ge.showCollisionBoxes,je.status==="parsing"){let Je=yield je.parse(je.vectorTile,this.layerIndex,this.availableImages,this.actor),xt;if(this.fetching[Qe]){let{rawTileData:Ie,cacheControl:xe,resourceTiming:Ce}=this.fetching[Qe];delete this.fetching[Qe],xt=i.e({rawTileData:Ie.slice(0)},Je,xe,Ce)}else xt=Je;return xt}if(je.status==="done"&&je.vectorTile)return je.parse(je.vectorTile,this.layerIndex,this.availableImages,this.actor)})}abortTile(Ge){return i._(this,void 0,void 0,function*(){let Qe=this.loading,je=Ge.uid;Qe&&Qe[je]&&Qe[je].abort&&(Qe[je].abort.abort(),delete Qe[je])})}removeTile(Ge){return i._(this,void 0,void 0,function*(){this.loaded&&this.loaded[Ge.uid]&&delete this.loaded[Ge.uid]})}}class c{constructor(){this.loaded={}}loadTile(Ge){return i._(this,void 0,void 0,function*(){let{uid:Qe,encoding:je,rawImageData:Je,redFactor:xt,greenFactor:Ie,blueFactor:xe,baseShift:Ce}=Ge,pt=Je.width+2,nr=Je.height+2,ir=i.b(Je)?new i.R({width:pt,height:nr},yield i.bw(Je,-1,-1,pt,nr)):Je,vr=new i.bx(Qe,ir,je,xt,Ie,xe,Ce);return this.loaded=this.loaded||{},this.loaded[Qe]=vr,vr})}removeTile(Ge){let Qe=this.loaded,je=Ge.uid;Qe&&Qe[je]&&delete Qe[je]}}function f(dt,Ge){if(dt.length!==0){h(dt[0],Ge);for(var Qe=1;Qe=Math.abs(xe)?Qe-Ce+xe:xe-Ce+Qe,Qe=Ce}Qe+je>=0!=!!Ge&&dt.reverse()}var d=i.by(function dt(Ge,Qe){var je,Je=Ge&&Ge.type;if(Je==="FeatureCollection")for(je=0;je>31}function O(dt,Ge){for(var Qe=dt.loadGeometry(),je=dt.type,Je=0,xt=0,Ie=Qe.length,xe=0;xedt},H=Math.fround||(N=new Float32Array(1),dt=>(N[0]=+dt,N[0]));var N;let j=3,re=5,oe=6;class _e{constructor(Ge){this.options=Object.assign(Object.create(Z),Ge),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(Ge){let{log:Qe,minZoom:je,maxZoom:Je}=this.options;Qe&&console.time("total time");let xt=`prepare ${Ge.length} points`;Qe&&console.time(xt),this.points=Ge;let Ie=[];for(let Ce=0;Ce=je;Ce--){let pt=+Date.now();xe=this.trees[Ce]=this._createTree(this._cluster(xe,Ce)),Qe&&console.log("z%d: %d clusters in %dms",Ce,xe.numItems,+Date.now()-pt)}return Qe&&console.timeEnd("total time"),this}getClusters(Ge,Qe){let je=((Ge[0]+180)%360+360)%360-180,Je=Math.max(-90,Math.min(90,Ge[1])),xt=Ge[2]===180?180:((Ge[2]+180)%360+360)%360-180,Ie=Math.max(-90,Math.min(90,Ge[3]));if(Ge[2]-Ge[0]>=360)je=-180,xt=180;else if(je>xt){let ir=this.getClusters([je,Je,180,Ie],Qe),vr=this.getClusters([-180,Je,xt,Ie],Qe);return ir.concat(vr)}let xe=this.trees[this._limitZoom(Qe)],Ce=xe.range(me(je),ie(Ie),me(xt),ie(Je)),pt=xe.data,nr=[];for(let ir of Ce){let vr=this.stride*ir;nr.push(pt[vr+re]>1?Me(pt,vr,this.clusterProps):this.points[pt[vr+j]])}return nr}getChildren(Ge){let Qe=this._getOriginId(Ge),je=this._getOriginZoom(Ge),Je="No cluster with the specified id.",xt=this.trees[je];if(!xt)throw new Error(Je);let Ie=xt.data;if(Qe*this.stride>=Ie.length)throw new Error(Je);let xe=this.options.radius/(this.options.extent*Math.pow(2,je-1)),Ce=xt.within(Ie[Qe*this.stride],Ie[Qe*this.stride+1],xe),pt=[];for(let nr of Ce){let ir=nr*this.stride;Ie[ir+4]===Ge&&pt.push(Ie[ir+re]>1?Me(Ie,ir,this.clusterProps):this.points[Ie[ir+j]])}if(pt.length===0)throw new Error(Je);return pt}getLeaves(Ge,Qe,je){let Je=[];return this._appendLeaves(Je,Ge,Qe=Qe||10,je=je||0,0),Je}getTile(Ge,Qe,je){let Je=this.trees[this._limitZoom(Ge)],xt=Math.pow(2,Ge),{extent:Ie,radius:xe}=this.options,Ce=xe/Ie,pt=(je-Ce)/xt,nr=(je+1+Ce)/xt,ir={features:[]};return this._addTileFeatures(Je.range((Qe-Ce)/xt,pt,(Qe+1+Ce)/xt,nr),Je.data,Qe,je,xt,ir),Qe===0&&this._addTileFeatures(Je.range(1-Ce/xt,pt,1,nr),Je.data,xt,je,xt,ir),Qe===xt-1&&this._addTileFeatures(Je.range(0,pt,Ce/xt,nr),Je.data,-1,je,xt,ir),ir.features.length?ir:null}getClusterExpansionZoom(Ge){let Qe=this._getOriginZoom(Ge)-1;for(;Qe<=this.options.maxZoom;){let je=this.getChildren(Ge);if(Qe++,je.length!==1)break;Ge=je[0].properties.cluster_id}return Qe}_appendLeaves(Ge,Qe,je,Je,xt){let Ie=this.getChildren(Qe);for(let xe of Ie){let Ce=xe.properties;if(Ce&&Ce.cluster?xt+Ce.point_count<=Je?xt+=Ce.point_count:xt=this._appendLeaves(Ge,Ce.cluster_id,je,Je,xt):xt1,nr,ir,vr;if(pt)nr=ke(Qe,Ce,this.clusterProps),ir=Qe[Ce],vr=Qe[Ce+1];else{let ei=this.points[Qe[Ce+j]];nr=ei.properties;let[vi,ji]=ei.geometry.coordinates;ir=me(vi),vr=ie(ji)}let si={type:1,geometry:[[Math.round(this.options.extent*(ir*xt-je)),Math.round(this.options.extent*(vr*xt-Je))]],tags:nr},mi;mi=pt||this.options.generateId?Qe[Ce+j]:this.points[Qe[Ce+j]].id,mi!==void 0&&(si.id=mi),Ie.features.push(si)}}_limitZoom(Ge){return Math.max(this.options.minZoom,Math.min(Math.floor(+Ge),this.options.maxZoom+1))}_cluster(Ge,Qe){let{radius:je,extent:Je,reduce:xt,minPoints:Ie}=this.options,xe=je/(Je*Math.pow(2,Qe)),Ce=Ge.data,pt=[],nr=this.stride;for(let ir=0;irQe&&(vi+=Ce[Rn+re])}if(vi>ei&&vi>=Ie){let ji,Rn=vr*ei,wn=si*ei,pn=-1,Vn=((ir/nr|0)<<5)+(Qe+1)+this.points.length;for(let kn of mi){let ea=kn*nr;if(Ce[ea+2]<=Qe)continue;Ce[ea+2]=Qe;let ua=Ce[ea+re];Rn+=Ce[ea]*ua,wn+=Ce[ea+1]*ua,Ce[ea+4]=Vn,xt&&(ji||(ji=this._map(Ce,ir,!0),pn=this.clusterProps.length,this.clusterProps.push(ji)),xt(ji,this._map(Ce,ea)))}Ce[ir+4]=Vn,pt.push(Rn/vi,wn/vi,1/0,Vn,-1,vi),xt&&pt.push(pn)}else{for(let ji=0;ji1)for(let ji of mi){let Rn=ji*nr;if(!(Ce[Rn+2]<=Qe)){Ce[Rn+2]=Qe;for(let wn=0;wn>5}_getOriginZoom(Ge){return(Ge-this.points.length)%32}_map(Ge,Qe,je){if(Ge[Qe+re]>1){let Ie=this.clusterProps[Ge[Qe+oe]];return je?Object.assign({},Ie):Ie}let Je=this.points[Ge[Qe+j]].properties,xt=this.options.map(Je);return je&&xt===Je?Object.assign({},xt):xt}}function Me(dt,Ge,Qe){return{type:"Feature",id:dt[Ge+j],properties:ke(dt,Ge,Qe),geometry:{type:"Point",coordinates:[(je=dt[Ge],360*(je-.5)),Se(dt[Ge+1])]}};var je}function ke(dt,Ge,Qe){let je=dt[Ge+re],Je=je>=1e4?`${Math.round(je/1e3)}k`:je>=1e3?Math.round(je/100)/10+"k":je,xt=dt[Ge+oe],Ie=xt===-1?{}:Object.assign({},Qe[xt]);return Object.assign(Ie,{cluster:!0,cluster_id:dt[Ge+j],point_count:je,point_count_abbreviated:Je})}function me(dt){return dt/360+.5}function ie(dt){let Ge=Math.sin(dt*Math.PI/180),Qe=.5-.25*Math.log((1+Ge)/(1-Ge))/Math.PI;return Qe<0?0:Qe>1?1:Qe}function Se(dt){let Ge=(180-360*dt)*Math.PI/180;return 360*Math.atan(Math.exp(Ge))/Math.PI-90}function Le(dt,Ge,Qe,je){let Je=je,xt=Ge+(Qe-Ge>>1),Ie,xe=Qe-Ge,Ce=dt[Ge],pt=dt[Ge+1],nr=dt[Qe],ir=dt[Qe+1];for(let vr=Ge+3;vrJe)Ie=vr,Je=si;else if(si===Je){let mi=Math.abs(vr-xt);mije&&(Ie-Ge>3&&Le(dt,Ge,Ie,je),dt[Ie+2]=Je,Qe-Ie>3&&Le(dt,Ie,Qe,je))}function Ae(dt,Ge,Qe,je,Je,xt){let Ie=Je-Qe,xe=xt-je;if(Ie!==0||xe!==0){let Ce=((dt-Qe)*Ie+(Ge-je)*xe)/(Ie*Ie+xe*xe);Ce>1?(Qe=Je,je=xt):Ce>0&&(Qe+=Ie*Ce,je+=xe*Ce)}return Ie=dt-Qe,xe=Ge-je,Ie*Ie+xe*xe}function Fe(dt,Ge,Qe,je){let Je={id:dt==null?null:dt,type:Ge,geometry:Qe,tags:je,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if(Ge==="Point"||Ge==="MultiPoint"||Ge==="LineString")Pe(Je,Qe);else if(Ge==="Polygon")Pe(Je,Qe[0]);else if(Ge==="MultiLineString")for(let xt of Qe)Pe(Je,xt);else if(Ge==="MultiPolygon")for(let xt of Qe)Pe(Je,xt[0]);return Je}function Pe(dt,Ge){for(let Qe=0;Qe0&&(Ie+=je?(Je*nr-pt*xt)/2:Math.sqrt(Math.pow(pt-Je,2)+Math.pow(nr-xt,2))),Je=pt,xt=nr}let xe=Ge.length-3;Ge[2]=1,Le(Ge,0,xe,Qe),Ge[xe+2]=1,Ge.size=Math.abs(Ie),Ge.start=0,Ge.end=Ge.size}function Ze(dt,Ge,Qe,je){for(let Je=0;Je1?1:Qe}function Kt(dt,Ge,Qe,je,Je,xt,Ie,xe){if(je/=Ge,xt>=(Qe/=Ge)&&Ie=je)return null;let Ce=[];for(let pt of dt){let nr=pt.geometry,ir=pt.type,vr=Je===0?pt.minX:pt.minY,si=Je===0?pt.maxX:pt.maxY;if(vr>=Qe&&si=je)continue;let mi=[];if(ir==="Point"||ir==="MultiPoint")st(nr,mi,Qe,je,Je);else if(ir==="LineString")lt(nr,mi,Qe,je,Je,!1,xe.lineMetrics);else if(ir==="MultiLineString")Ut(nr,mi,Qe,je,Je,!1);else if(ir==="Polygon")Ut(nr,mi,Qe,je,Je,!0);else if(ir==="MultiPolygon")for(let ei of nr){let vi=[];Ut(ei,vi,Qe,je,Je,!0),vi.length&&mi.push(vi)}if(mi.length){if(xe.lineMetrics&&ir==="LineString"){for(let ei of mi)Ce.push(Fe(pt.id,ir,ei,pt.tags));continue}ir!=="LineString"&&ir!=="MultiLineString"||(mi.length===1?(ir="LineString",mi=mi[0]):ir="MultiLineString"),ir!=="Point"&&ir!=="MultiPoint"||(ir=mi.length===3?"Point":"MultiPoint"),Ce.push(Fe(pt.id,ir,mi,pt.tags))}}return Ce.length?Ce:null}function st(dt,Ge,Qe,je,Je){for(let xt=0;xt=Qe&&Ie<=je&&$t(Ge,dt[xt],dt[xt+1],dt[xt+2])}}function lt(dt,Ge,Qe,je,Je,xt,Ie){let xe=Gt(dt),Ce=Je===0?sr:Tr,pt,nr,ir=dt.start;for(let vi=0;viQe&&(nr=Ce(xe,ji,Rn,pn,Vn,Qe),Ie&&(xe.start=ir+pt*nr)):kn>je?ea=Qe&&(nr=Ce(xe,ji,Rn,pn,Vn,Qe),ua=!0),ea>je&&kn<=je&&(nr=Ce(xe,ji,Rn,pn,Vn,je),ua=!0),!xt&&ua&&(Ie&&(xe.end=ir+pt*nr),Ge.push(xe),xe=Gt(dt)),Ie&&(ir+=pt)}let vr=dt.length-3,si=dt[vr],mi=dt[vr+1],ei=Je===0?si:mi;ei>=Qe&&ei<=je&&$t(xe,si,mi,dt[vr+2]),vr=xe.length-3,xt&&vr>=3&&(xe[vr]!==xe[0]||xe[vr+1]!==xe[1])&&$t(xe,xe[0],xe[1],xe[2]),xe.length&&Ge.push(xe)}function Gt(dt){let Ge=[];return Ge.size=dt.size,Ge.start=dt.start,Ge.end=dt.end,Ge}function Ut(dt,Ge,Qe,je,Je,xt){for(let Ie of dt)lt(Ie,Ge,Qe,je,Je,xt,!1)}function $t(dt,Ge,Qe,je){dt.push(Ge,Qe,je)}function sr(dt,Ge,Qe,je,Je,xt){let Ie=(xt-Ge)/(je-Ge);return $t(dt,xt,Qe+(Je-Qe)*Ie,1),Ie}function Tr(dt,Ge,Qe,je,Je,xt){let Ie=(xt-Qe)/(Je-Qe);return $t(dt,Ge+(je-Ge)*Ie,xt,1),Ie}function ur(dt,Ge){let Qe=[];for(let je=0;je0&&Ge.size<(Je?Ie:je))return void(Qe.numPoints+=Ge.length/3);let xe=[];for(let Ce=0;CeIe)&&(Qe.numSimplified++,xe.push(Ge[Ce],Ge[Ce+1])),Qe.numPoints++;Je&&function(Ce,pt){let nr=0;for(let ir=0,vr=Ce.length,si=vr-2;ir0===pt)for(let ir=0,vr=Ce.length;ir24)throw new Error("maxZoom should be in the 0-24 range");if(Qe.promoteId&&Qe.generateId)throw new Error("promoteId and generateId cannot be used together.");let Je=function(xt,Ie){let xe=[];if(xt.type==="FeatureCollection")for(let Ce=0;Ce1&&console.time("creation"),si=this.tiles[vr]=Vt(Ge,Qe,je,Je,pt),this.tileCoords.push({z:Qe,x:je,y:Je}),nr)){nr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Qe,je,Je,si.numFeatures,si.numPoints,si.numSimplified),console.timeEnd("creation"));let ua=`z${Qe}`;this.stats[ua]=(this.stats[ua]||0)+1,this.total++}if(si.source=Ge,xt==null){if(Qe===pt.indexMaxZoom||si.numPoints<=pt.indexMaxPoints)continue}else{if(Qe===pt.maxZoom||Qe===xt)continue;if(xt!=null){let ua=xt-Qe;if(je!==Ie>>ua||Je!==xe>>ua)continue}}if(si.source=null,Ge.length===0)continue;nr>1&&console.time("clipping");let mi=.5*pt.buffer/pt.extent,ei=.5-mi,vi=.5+mi,ji=1+mi,Rn=null,wn=null,pn=null,Vn=null,kn=Kt(Ge,ir,je-mi,je+vi,0,si.minX,si.maxX,pt),ea=Kt(Ge,ir,je+ei,je+ji,0,si.minX,si.maxX,pt);Ge=null,kn&&(Rn=Kt(kn,ir,Je-mi,Je+vi,1,si.minY,si.maxY,pt),wn=Kt(kn,ir,Je+ei,Je+ji,1,si.minY,si.maxY,pt),kn=null),ea&&(pn=Kt(ea,ir,Je-mi,Je+vi,1,si.minY,si.maxY,pt),Vn=Kt(ea,ir,Je+ei,Je+ji,1,si.minY,si.maxY,pt),ea=null),nr>1&&console.timeEnd("clipping"),Ce.push(Rn||[],Qe+1,2*je,2*Je),Ce.push(wn||[],Qe+1,2*je,2*Je+1),Ce.push(pn||[],Qe+1,2*je+1,2*Je),Ce.push(Vn||[],Qe+1,2*je+1,2*Je+1)}}getTile(Ge,Qe,je){Ge=+Ge,Qe=+Qe,je=+je;let Je=this.options,{extent:xt,debug:Ie}=Je;if(Ge<0||Ge>24)return null;let xe=1<1&&console.log("drilling down to z%d-%d-%d",Ge,Qe,je);let pt,nr=Ge,ir=Qe,vr=je;for(;!pt&&nr>0;)nr--,ir>>=1,vr>>=1,pt=this.tiles[lr(nr,ir,vr)];return pt&&pt.source?(Ie>1&&(console.log("found parent tile z%d-%d-%d",nr,ir,vr),console.time("drilling down")),this.splitTile(pt.source,nr,ir,vr,Ge,Qe,je),Ie>1&&console.timeEnd("drilling down"),this.tiles[Ce]?Mt(this.tiles[Ce],xt):null):null}}function lr(dt,Ge,Qe){return 32*((1<{ir.properties=si;let mi={};for(let ei of vr)mi[ei]=Ce[ei].evaluate(nr,ir);return mi},Ie.reduce=(si,mi)=>{ir.properties=mi;for(let ei of vr)nr.accumulated=si[ei],si[ei]=pt[ei].evaluate(nr,ir)},Ie}(Ge)).load((yield this._pendingData).features):(Je=yield this._pendingData,new rr(Je,Ge.geojsonVtOptions)),this.loaded={};let xt={};if(je){let Ie=je.finish();Ie&&(xt.resourceTiming={},xt.resourceTiming[Ge.source]=JSON.parse(JSON.stringify(Ie)))}return xt}catch(xt){if(delete this._pendingRequest,i.bB(xt))return{abandoned:!0};throw xt}var Je})}getData(){return i._(this,void 0,void 0,function*(){return this._pendingData})}reloadTile(Ge){let Qe=this.loaded;return Qe&&Qe[Ge.uid]?super.reloadTile(Ge):this.loadTile(Ge)}loadAndProcessGeoJSON(Ge,Qe){return i._(this,void 0,void 0,function*(){let je=yield this.loadGeoJSON(Ge,Qe);if(delete this._pendingRequest,typeof je!="object")throw new Error(`Input data given to '${Ge.source}' is not a valid GeoJSON object.`);if(d(je,!0),Ge.filter){let Je=i.bC(Ge.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(Je.result==="error")throw new Error(Je.value.map(Ie=>`${Ie.key}: ${Ie.message}`).join(", "));je={type:"FeatureCollection",features:je.features.filter(Ie=>Je.value.evaluate({zoom:0},Ie))}}return je})}loadGeoJSON(Ge,Qe){return i._(this,void 0,void 0,function*(){let{promoteId:je}=Ge;if(Ge.request){let Je=yield i.h(Ge.request,Qe);return this._dataUpdateable=Cr(Je.data,je)?Kr(Je.data,je):void 0,Je.data}if(typeof Ge.data=="string")try{let Je=JSON.parse(Ge.data);return this._dataUpdateable=Cr(Je,je)?Kr(Je,je):void 0,Je}catch(Je){throw new Error(`Input data given to '${Ge.source}' is not a valid GeoJSON object.`)}if(!Ge.dataDiff)throw new Error(`Input data given to '${Ge.source}' is not a valid GeoJSON object.`);if(!this._dataUpdateable)throw new Error(`Cannot update existing geojson data in ${Ge.source}`);return function(Je,xt,Ie){var xe,Ce,pt,nr;if(xt.removeAll&&Je.clear(),xt.remove)for(let ir of xt.remove)Je.delete(ir);if(xt.add)for(let ir of xt.add){let vr=wr(ir,Ie);vr!=null&&Je.set(vr,ir)}if(xt.update)for(let ir of xt.update){let vr=Je.get(ir.id);if(vr==null)continue;let si=!ir.removeAllProperties&&(((xe=ir.removeProperties)===null||xe===void 0?void 0:xe.length)>0||((Ce=ir.addOrUpdateProperties)===null||Ce===void 0?void 0:Ce.length)>0);if((ir.newGeometry||ir.removeAllProperties||si)&&(vr=Object.assign({},vr),Je.set(ir.id,vr),si&&(vr.properties=Object.assign({},vr.properties))),ir.newGeometry&&(vr.geometry=ir.newGeometry),ir.removeAllProperties)vr.properties={};else if(((pt=ir.removeProperties)===null||pt===void 0?void 0:pt.length)>0)for(let mi of ir.removeProperties)Object.prototype.hasOwnProperty.call(vr.properties,mi)&&delete vr.properties[mi];if(((nr=ir.addOrUpdateProperties)===null||nr===void 0?void 0:nr.length)>0)for(let{key:mi,value:ei}of ir.addOrUpdateProperties)vr.properties[mi]=ei}}(this._dataUpdateable,Ge.dataDiff,je),{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())}})}removeSource(Ge){return i._(this,void 0,void 0,function*(){this._pendingRequest&&this._pendingRequest.abort()})}getClusterExpansionZoom(Ge){return this._geoJSONIndex.getClusterExpansionZoom(Ge.clusterId)}getClusterChildren(Ge){return this._geoJSONIndex.getChildren(Ge.clusterId)}getClusterLeaves(Ge){return this._geoJSONIndex.getLeaves(Ge.clusterId,Ge.limit,Ge.offset)}}class Yr{constructor(Ge){this.self=Ge,this.actor=new i.F(Ge),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.self.registerWorkerSource=(Qe,je)=>{if(this.externalWorkerSourceTypes[Qe])throw new Error(`Worker source with name "${Qe}" already registered.`);this.externalWorkerSourceTypes[Qe]=je},this.self.addProtocol=i.bi,this.self.removeProtocol=i.bj,this.self.registerRTLTextPlugin=Qe=>{if(i.bD.isParsed())throw new Error("RTL text plugin already registered.");i.bD.setMethods(Qe)},this.actor.registerMessageHandler("LDT",(Qe,je)=>this._getDEMWorkerSource(Qe,je.source).loadTile(je)),this.actor.registerMessageHandler("RDT",(Qe,je)=>i._(this,void 0,void 0,function*(){this._getDEMWorkerSource(Qe,je.source).removeTile(je)})),this.actor.registerMessageHandler("GCEZ",(Qe,je)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Qe,je.type,je.source).getClusterExpansionZoom(je)})),this.actor.registerMessageHandler("GCC",(Qe,je)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Qe,je.type,je.source).getClusterChildren(je)})),this.actor.registerMessageHandler("GCL",(Qe,je)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Qe,je.type,je.source).getClusterLeaves(je)})),this.actor.registerMessageHandler("LD",(Qe,je)=>this._getWorkerSource(Qe,je.type,je.source).loadData(je)),this.actor.registerMessageHandler("GD",(Qe,je)=>this._getWorkerSource(Qe,je.type,je.source).getData()),this.actor.registerMessageHandler("LT",(Qe,je)=>this._getWorkerSource(Qe,je.type,je.source).loadTile(je)),this.actor.registerMessageHandler("RT",(Qe,je)=>this._getWorkerSource(Qe,je.type,je.source).reloadTile(je)),this.actor.registerMessageHandler("AT",(Qe,je)=>this._getWorkerSource(Qe,je.type,je.source).abortTile(je)),this.actor.registerMessageHandler("RMT",(Qe,je)=>this._getWorkerSource(Qe,je.type,je.source).removeTile(je)),this.actor.registerMessageHandler("RS",(Qe,je)=>i._(this,void 0,void 0,function*(){if(!this.workerSources[Qe]||!this.workerSources[Qe][je.type]||!this.workerSources[Qe][je.type][je.source])return;let Je=this.workerSources[Qe][je.type][je.source];delete this.workerSources[Qe][je.type][je.source],Je.removeSource!==void 0&&Je.removeSource(je)})),this.actor.registerMessageHandler("RM",Qe=>i._(this,void 0,void 0,function*(){delete this.layerIndexes[Qe],delete this.availableImages[Qe],delete this.workerSources[Qe],delete this.demWorkerSources[Qe]})),this.actor.registerMessageHandler("SR",(Qe,je)=>i._(this,void 0,void 0,function*(){this.referrer=je})),this.actor.registerMessageHandler("SRPS",(Qe,je)=>this._syncRTLPluginState(Qe,je)),this.actor.registerMessageHandler("IS",(Qe,je)=>i._(this,void 0,void 0,function*(){this.self.importScripts(je)})),this.actor.registerMessageHandler("SI",(Qe,je)=>this._setImages(Qe,je)),this.actor.registerMessageHandler("UL",(Qe,je)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Qe).update(je.layers,je.removedIds)})),this.actor.registerMessageHandler("SL",(Qe,je)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Qe).replace(je)}))}_setImages(Ge,Qe){return i._(this,void 0,void 0,function*(){this.availableImages[Ge]=Qe;for(let je in this.workerSources[Ge]){let Je=this.workerSources[Ge][je];for(let xt in Je)Je[xt].availableImages=Qe}})}_syncRTLPluginState(Ge,Qe){return i._(this,void 0,void 0,function*(){if(i.bD.isParsed())return i.bD.getState();if(Qe.pluginStatus!=="loading")return i.bD.setState(Qe),Qe;let je=Qe.pluginURL;if(this.self.importScripts(je),i.bD.isParsed()){let Je={pluginStatus:"loaded",pluginURL:je};return i.bD.setState(Je),Je}throw i.bD.setState({pluginStatus:"error",pluginURL:""}),new Error(`RTL Text Plugin failed to import scripts from ${je}`)})}_getAvailableImages(Ge){let Qe=this.availableImages[Ge];return Qe||(Qe=[]),Qe}_getLayerIndex(Ge){let Qe=this.layerIndexes[Ge];return Qe||(Qe=this.layerIndexes[Ge]=new a),Qe}_getWorkerSource(Ge,Qe,je){if(this.workerSources[Ge]||(this.workerSources[Ge]={}),this.workerSources[Ge][Qe]||(this.workerSources[Ge][Qe]={}),!this.workerSources[Ge][Qe][je]){let Je={sendAsync:(xt,Ie)=>(xt.targetMapId=Ge,this.actor.sendAsync(xt,Ie))};switch(Qe){case"vector":this.workerSources[Ge][Qe][je]=new u(Je,this._getLayerIndex(Ge),this._getAvailableImages(Ge));break;case"geojson":this.workerSources[Ge][Qe][je]=new Gr(Je,this._getLayerIndex(Ge),this._getAvailableImages(Ge));break;default:this.workerSources[Ge][Qe][je]=new this.externalWorkerSourceTypes[Qe](Je,this._getLayerIndex(Ge),this._getAvailableImages(Ge))}}return this.workerSources[Ge][Qe][je]}_getDEMWorkerSource(Ge,Qe){return this.demWorkerSources[Ge]||(this.demWorkerSources[Ge]={}),this.demWorkerSources[Ge][Qe]||(this.demWorkerSources[Ge][Qe]=new c),this.demWorkerSources[Ge][Qe]}}return i.i(self)&&(self.worker=new Yr(self)),Yr}),r("index",["exports","./shared"],function(i,a){"use strict";var o="4.7.1";let s,l,u={now:typeof performance!="undefined"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frameAsync:ue=>new Promise((w,B)=>{let Q=requestAnimationFrame(w);ue.signal.addEventListener("abort",()=>{cancelAnimationFrame(Q),B(a.c())})}),getImageData(ue,w=0){return this.getImageCanvasContext(ue).getImageData(-w,-w,ue.width+2*w,ue.height+2*w)},getImageCanvasContext(ue){let w=window.document.createElement("canvas"),B=w.getContext("2d",{willReadFrequently:!0});if(!B)throw new Error("failed to create canvas 2d context");return w.width=ue.width,w.height=ue.height,B.drawImage(ue,0,0,ue.width,ue.height),B},resolveURL:ue=>(s||(s=document.createElement("a")),s.href=ue,s.href),hardwareConcurrency:typeof navigator!="undefined"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(l==null&&(l=matchMedia("(prefers-reduced-motion: reduce)")),l.matches)}};class c{static testProp(w){if(!c.docStyle)return w[0];for(let B=0;B{window.removeEventListener("click",c.suppressClickInternal,!0)},0)}static getScale(w){let B=w.getBoundingClientRect();return{x:B.width/w.offsetWidth||1,y:B.height/w.offsetHeight||1,boundingClientRect:B}}static getPoint(w,B,Q){let ee=B.boundingClientRect;return new a.P((Q.clientX-ee.left)/B.x-w.clientLeft,(Q.clientY-ee.top)/B.y-w.clientTop)}static mousePos(w,B){let Q=c.getScale(w);return c.getPoint(w,Q,B)}static touchPos(w,B){let Q=[],ee=c.getScale(w);for(let le=0;le{h&&b(h),h=null,x=!0},d.onerror=()=>{v=!0,h=null},d.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="),function(ue){let w,B,Q,ee;ue.resetRequestQueue=()=>{w=[],B=0,Q=0,ee={}},ue.addThrottleControl=ot=>{let wt=Q++;return ee[wt]=ot,wt},ue.removeThrottleControl=ot=>{delete ee[ot],qe()},ue.getImage=(ot,wt,Yt=!0)=>new Promise((Jt,xr)=>{f.supported&&(ot.headers||(ot.headers={}),ot.headers.accept="image/webp,*/*"),a.e(ot,{type:"image"}),w.push({abortController:wt,requestParameters:ot,supportImageRefresh:Yt,state:"queued",onError:Ir=>{xr(Ir)},onSuccess:Ir=>{Jt(Ir)}}),qe()});let le=ot=>a._(this,void 0,void 0,function*(){ot.state="running";let{requestParameters:wt,supportImageRefresh:Yt,onError:Jt,onSuccess:xr,abortController:Ir}=ot,ve=Yt===!1&&!a.i(self)&&!a.g(wt.url)&&(!wt.headers||Object.keys(wt.headers).reduce((Be,tt)=>Be&&tt==="accept",!0));B++;let be=ve?Xe(wt,Ir):a.m(wt,Ir);try{let Be=yield be;delete ot.abortController,ot.state="completed",Be.data instanceof HTMLImageElement||a.b(Be.data)?xr(Be):Be.data&&xr({data:yield(Re=Be.data,typeof createImageBitmap=="function"?a.d(Re):a.f(Re)),cacheControl:Be.cacheControl,expires:Be.expires})}catch(Be){delete ot.abortController,Jt(Be)}finally{B--,qe()}var Re}),qe=()=>{let ot=(()=>{for(let wt of Object.keys(ee))if(ee[wt]())return!0;return!1})()?a.a.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:a.a.MAX_PARALLEL_IMAGE_REQUESTS;for(let wt=B;wt0;wt++){let Yt=w.shift();Yt.abortController.signal.aborted?wt--:le(Yt)}},Xe=(ot,wt)=>new Promise((Yt,Jt)=>{let xr=new Image,Ir=ot.url,ve=ot.credentials;ve&&ve==="include"?xr.crossOrigin="use-credentials":(ve&&ve==="same-origin"||!a.s(Ir))&&(xr.crossOrigin="anonymous"),wt.signal.addEventListener("abort",()=>{xr.src="",Jt(a.c())}),xr.fetchPriority="high",xr.onload=()=>{xr.onerror=xr.onload=null,Yt({data:xr})},xr.onerror=()=>{xr.onerror=xr.onload=null,wt.signal.aborted||Jt(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))},xr.src=Ir})}(p||(p={})),p.resetRequestQueue();class C{constructor(w){this._transformRequestFn=w}transformRequest(w,B){return this._transformRequestFn&&this._transformRequestFn(w,B)||{url:w}}setTransformRequest(w){this._transformRequestFn=w}}function E(ue){var w=new a.A(3);return w[0]=ue[0],w[1]=ue[1],w[2]=ue[2],w}var A,L=function(ue,w,B){return ue[0]=w[0]-B[0],ue[1]=w[1]-B[1],ue[2]=w[2]-B[2],ue};A=new a.A(3),a.A!=Float32Array&&(A[0]=0,A[1]=0,A[2]=0);var _=function(ue){var w=ue[0],B=ue[1];return w*w+B*B};function k(ue){let w=[];if(typeof ue=="string")w.push({id:"default",url:ue});else if(ue&&ue.length>0){let B=[];for(let{id:Q,url:ee}of ue){let le=`${Q}${ee}`;B.indexOf(le)===-1&&(B.push(le),w.push({id:Q,url:ee}))}}return w}function M(ue,w,B){let Q=ue.split("?");return Q[0]+=`${w}${B}`,Q.join("?")}(function(){var ue=new a.A(2);a.A!=Float32Array&&(ue[0]=0,ue[1]=0)})();class g{constructor(w,B,Q,ee){this.context=w,this.format=Q,this.texture=w.gl.createTexture(),this.update(B,ee)}update(w,B,Q){let{width:ee,height:le}=w,qe=!(this.size&&this.size[0]===ee&&this.size[1]===le||Q),{context:Xe}=this,{gl:ot}=Xe;if(this.useMipmap=!!(B&&B.useMipmap),ot.bindTexture(ot.TEXTURE_2D,this.texture),Xe.pixelStoreUnpackFlipY.set(!1),Xe.pixelStoreUnpack.set(1),Xe.pixelStoreUnpackPremultiplyAlpha.set(this.format===ot.RGBA&&(!B||B.premultiply!==!1)),qe)this.size=[ee,le],w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?ot.texImage2D(ot.TEXTURE_2D,0,this.format,this.format,ot.UNSIGNED_BYTE,w):ot.texImage2D(ot.TEXTURE_2D,0,this.format,ee,le,0,this.format,ot.UNSIGNED_BYTE,w.data);else{let{x:wt,y:Yt}=Q||{x:0,y:0};w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?ot.texSubImage2D(ot.TEXTURE_2D,0,wt,Yt,ot.RGBA,ot.UNSIGNED_BYTE,w):ot.texSubImage2D(ot.TEXTURE_2D,0,wt,Yt,ee,le,ot.RGBA,ot.UNSIGNED_BYTE,w.data)}this.useMipmap&&this.isSizePowerOfTwo()&&ot.generateMipmap(ot.TEXTURE_2D)}bind(w,B,Q){let{context:ee}=this,{gl:le}=ee;le.bindTexture(le.TEXTURE_2D,this.texture),Q!==le.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(Q=le.LINEAR),w!==this.filter&&(le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MAG_FILTER,w),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MIN_FILTER,Q||w),this.filter=w),B!==this.wrap&&(le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_S,B),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_T,B),this.wrap=B)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){let{gl:w}=this.context;w.deleteTexture(this.texture),this.texture=null}}function P(ue){let{userImage:w}=ue;return!!(w&&w.render&&w.render())&&(ue.data.replace(new Uint8Array(w.data.buffer)),!0)}class T extends a.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new a.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(w){if(this.loaded!==w&&(this.loaded=w,w)){for(let{ids:B,promiseResolve:Q}of this.requestors)Q(this._getImagesForIds(B));this.requestors=[]}}getImage(w){let B=this.images[w];if(B&&!B.data&&B.spriteData){let Q=B.spriteData;B.data=new a.R({width:Q.width,height:Q.height},Q.context.getImageData(Q.x,Q.y,Q.width,Q.height).data),B.spriteData=null}return B}addImage(w,B){if(this.images[w])throw new Error(`Image id ${w} already exist, use updateImage instead`);this._validate(w,B)&&(this.images[w]=B)}_validate(w,B){let Q=!0,ee=B.data||B.spriteData;return this._validateStretch(B.stretchX,ee&&ee.width)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchX" value`))),Q=!1),this._validateStretch(B.stretchY,ee&&ee.height)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchY" value`))),Q=!1),this._validateContent(B.content,B)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "content" value`))),Q=!1),Q}_validateStretch(w,B){if(!w)return!0;let Q=0;for(let ee of w){if(ee[0]{let ee=!0;if(!this.isLoaded())for(let le of w)this.images[le]||(ee=!1);this.isLoaded()||ee?B(this._getImagesForIds(w)):this.requestors.push({ids:w,promiseResolve:B})})}_getImagesForIds(w){let B={};for(let Q of w){let ee=this.getImage(Q);ee||(this.fire(new a.k("styleimagemissing",{id:Q})),ee=this.getImage(Q)),ee?B[Q]={data:ee.data.clone(),pixelRatio:ee.pixelRatio,sdf:ee.sdf,version:ee.version,stretchX:ee.stretchX,stretchY:ee.stretchY,content:ee.content,textFitWidth:ee.textFitWidth,textFitHeight:ee.textFitHeight,hasRenderCallback:!!(ee.userImage&&ee.userImage.render)}:a.w(`Image "${Q}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}return B}getPixelSize(){let{width:w,height:B}=this.atlasImage;return{width:w,height:B}}getPattern(w){let B=this.patterns[w],Q=this.getImage(w);if(!Q)return null;if(B&&B.position.version===Q.version)return B.position;if(B)B.position.version=Q.version;else{let ee={w:Q.data.width+2,h:Q.data.height+2,x:0,y:0},le=new a.I(ee,Q);this.patterns[w]={bin:ee,position:le}}return this._updatePatternAtlas(),this.patterns[w].position}bind(w){let B=w.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new g(w,this.atlasImage,B.RGBA),this.atlasTexture.bind(B.LINEAR,B.CLAMP_TO_EDGE)}_updatePatternAtlas(){let w=[];for(let le in this.patterns)w.push(this.patterns[le].bin);let{w:B,h:Q}=a.p(w),ee=this.atlasImage;ee.resize({width:B||1,height:Q||1});for(let le in this.patterns){let{bin:qe}=this.patterns[le],Xe=qe.x+1,ot=qe.y+1,wt=this.getImage(le).data,Yt=wt.width,Jt=wt.height;a.R.copy(wt,ee,{x:0,y:0},{x:Xe,y:ot},{width:Yt,height:Jt}),a.R.copy(wt,ee,{x:0,y:Jt-1},{x:Xe,y:ot-1},{width:Yt,height:1}),a.R.copy(wt,ee,{x:0,y:0},{x:Xe,y:ot+Jt},{width:Yt,height:1}),a.R.copy(wt,ee,{x:Yt-1,y:0},{x:Xe-1,y:ot},{width:1,height:Jt}),a.R.copy(wt,ee,{x:0,y:0},{x:Xe+Yt,y:ot},{width:1,height:Jt})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(w){for(let B of w){if(this.callbackDispatchedThisFrame[B])continue;this.callbackDispatchedThisFrame[B]=!0;let Q=this.getImage(B);Q||a.w(`Image with ID: "${B}" was not found`),P(Q)&&this.updateImage(B,Q)}}}let z=1e20;function O(ue,w,B,Q,ee,le,qe,Xe,ot){for(let wt=w;wt-1);ot++,le[ot]=Xe,qe[ot]=wt,qe[ot+1]=z}for(let Xe=0,ot=0;Xe65535)throw new Error("glyphs > 65535 not supported");if(Q.ranges[le])return{stack:w,id:B,glyph:ee};if(!this.url)throw new Error("glyphsUrl is not set");if(!Q.requests[le]){let Xe=G.loadGlyphRange(w,le,this.url,this.requestManager);Q.requests[le]=Xe}let qe=yield Q.requests[le];for(let Xe in qe)this._doesCharSupportLocalGlyph(+Xe)||(Q.glyphs[+Xe]=qe[+Xe]);return Q.ranges[le]=!0,{stack:w,id:B,glyph:qe[B]||null}})}_doesCharSupportLocalGlyph(w){return!!this.localIdeographFontFamily&&new RegExp("\\p{Ideo}|\\p{sc=Hang}|\\p{sc=Hira}|\\p{sc=Kana}","u").test(String.fromCodePoint(w))}_tinySDF(w,B,Q){let ee=this.localIdeographFontFamily;if(!ee||!this._doesCharSupportLocalGlyph(Q))return;let le=w.tinySDF;if(!le){let Xe="400";/bold/i.test(B)?Xe="900":/medium/i.test(B)?Xe="500":/light/i.test(B)&&(Xe="200"),le=w.tinySDF=new G.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:ee,fontWeight:Xe})}let qe=le.draw(String.fromCharCode(Q));return{id:Q,bitmap:new a.o({width:qe.width||60,height:qe.height||60},qe.data),metrics:{width:qe.glyphWidth/2||24,height:qe.glyphHeight/2||24,left:qe.glyphLeft/2+.5||0,top:qe.glyphTop/2-27.5||-8,advance:qe.glyphAdvance/2||24,isDoubleResolution:!0}}}}G.loadGlyphRange=function(ue,w,B,Q){return a._(this,void 0,void 0,function*(){let ee=256*w,le=ee+255,qe=Q.transformRequest(B.replace("{fontstack}",ue).replace("{range}",`${ee}-${le}`),"Glyphs"),Xe=yield a.l(qe,new AbortController);if(!Xe||!Xe.data)throw new Error(`Could not load glyph range. range: ${w}, ${ee}-${le}`);let ot={};for(let wt of a.n(Xe.data))ot[wt.id]=wt;return ot})},G.TinySDF=class{constructor({fontSize:ue=24,buffer:w=3,radius:B=8,cutoff:Q=.25,fontFamily:ee="sans-serif",fontWeight:le="normal",fontStyle:qe="normal"}={}){this.buffer=w,this.cutoff=Q,this.radius=B;let Xe=this.size=ue+4*w,ot=this._createCanvas(Xe),wt=this.ctx=ot.getContext("2d",{willReadFrequently:!0});wt.font=`${qe} ${le} ${ue}px ${ee}`,wt.textBaseline="alphabetic",wt.textAlign="left",wt.fillStyle="black",this.gridOuter=new Float64Array(Xe*Xe),this.gridInner=new Float64Array(Xe*Xe),this.f=new Float64Array(Xe),this.z=new Float64Array(Xe+1),this.v=new Uint16Array(Xe)}_createCanvas(ue){let w=document.createElement("canvas");return w.width=w.height=ue,w}draw(ue){let{width:w,actualBoundingBoxAscent:B,actualBoundingBoxDescent:Q,actualBoundingBoxLeft:ee,actualBoundingBoxRight:le}=this.ctx.measureText(ue),qe=Math.ceil(B),Xe=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(le-ee))),ot=Math.min(this.size-this.buffer,qe+Math.ceil(Q)),wt=Xe+2*this.buffer,Yt=ot+2*this.buffer,Jt=Math.max(wt*Yt,0),xr=new Uint8ClampedArray(Jt),Ir={data:xr,width:wt,height:Yt,glyphWidth:Xe,glyphHeight:ot,glyphTop:qe,glyphLeft:0,glyphAdvance:w};if(Xe===0||ot===0)return Ir;let{ctx:ve,buffer:be,gridInner:Re,gridOuter:Be}=this;ve.clearRect(be,be,Xe,ot),ve.fillText(ue,be,be+qe);let tt=ve.getImageData(be,be,Xe,ot);Be.fill(z,0,Jt),Re.fill(0,0,Jt);for(let We=0;We0?tr*tr:0,Re[jt]=tr<0?tr*tr:0}}O(Be,0,0,wt,Yt,wt,this.f,this.v,this.z),O(Re,be,be,Xe,ot,wt,this.f,this.v,this.z);for(let We=0;We1&&(ot=w[++Xe]);let Yt=Math.abs(wt-ot.left),Jt=Math.abs(wt-ot.right),xr=Math.min(Yt,Jt),Ir,ve=le/Q*(ee+1);if(ot.isDash){let be=ee-Math.abs(ve);Ir=Math.sqrt(xr*xr+be*be)}else Ir=ee-Math.sqrt(xr*xr+ve*ve);this.data[qe+wt]=Math.max(0,Math.min(255,Ir+128))}}}addRegularDash(w){for(let Xe=w.length-1;Xe>=0;--Xe){let ot=w[Xe],wt=w[Xe+1];ot.zeroLength?w.splice(Xe,1):wt&&wt.isDash===ot.isDash&&(wt.left=ot.left,w.splice(Xe,1))}let B=w[0],Q=w[w.length-1];B.isDash===Q.isDash&&(B.left=Q.left-this.width,Q.right=B.right+this.width);let ee=this.width*this.nextRow,le=0,qe=w[le];for(let Xe=0;Xe1&&(qe=w[++le]);let ot=Math.abs(Xe-qe.left),wt=Math.abs(Xe-qe.right),Yt=Math.min(ot,wt);this.data[ee+Xe]=Math.max(0,Math.min(255,(qe.isDash?Yt:-Yt)+128))}}addDash(w,B){let Q=B?7:0,ee=2*Q+1;if(this.nextRow+ee>this.height)return a.w("LineAtlas out of space"),null;let le=0;for(let Xe=0;Xe{B.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[_e]}numActive(){return Object.keys(this.active).length}}let ke=Math.floor(u.hardwareConcurrency/2),me,ie;function Se(){return me||(me=new Me),me}Me.workerCount=a.C(globalThis)?Math.max(Math.min(ke,3),1):1;class Le{constructor(w,B){this.workerPool=w,this.actors=[],this.currentActor=0,this.id=B;let Q=this.workerPool.acquire(B);for(let ee=0;ee{B.remove()}),this.actors=[],w&&this.workerPool.release(this.id)}registerMessageHandler(w,B){for(let Q of this.actors)Q.registerMessageHandler(w,B)}}function Ae(){return ie||(ie=new Le(Se(),a.G),ie.registerMessageHandler("GR",(ue,w,B)=>a.m(w,B))),ie}function Fe(ue,w){let B=a.H();return a.J(B,B,[1,1,0]),a.K(B,B,[.5*ue.width,.5*ue.height,1]),a.L(B,B,ue.calculatePosMatrix(w.toUnwrapped()))}function Pe(ue,w,B,Q,ee,le){let qe=function(Jt,xr,Ir){if(Jt)for(let ve of Jt){let be=xr[ve];if(be&&be.source===Ir&&be.type==="fill-extrusion")return!0}else for(let ve in xr){let be=xr[ve];if(be.source===Ir&&be.type==="fill-extrusion")return!0}return!1}(ee&&ee.layers,w,ue.id),Xe=le.maxPitchScaleFactor(),ot=ue.tilesIn(Q,Xe,qe);ot.sort(ge);let wt=[];for(let Jt of ot)wt.push({wrappedTileID:Jt.tileID.wrapped().key,queryResults:Jt.tile.queryRenderedFeatures(w,B,ue._state,Jt.queryGeometry,Jt.cameraQueryGeometry,Jt.scale,ee,le,Xe,Fe(ue.transform,Jt.tileID))});let Yt=function(Jt){let xr={},Ir={};for(let ve of Jt){let be=ve.queryResults,Re=ve.wrappedTileID,Be=Ir[Re]=Ir[Re]||{};for(let tt in be){let We=be[tt],it=Be[tt]=Be[tt]||{},Ft=xr[tt]=xr[tt]||[];for(let jt of We)it[jt.featureIndex]||(it[jt.featureIndex]=!0,Ft.push(jt))}}return xr}(wt);for(let Jt in Yt)Yt[Jt].forEach(xr=>{let Ir=xr.feature,ve=ue.getFeatureState(Ir.layer["source-layer"],Ir.id);Ir.source=Ir.layer.source,Ir.layer["source-layer"]&&(Ir.sourceLayer=Ir.layer["source-layer"]),Ir.state=ve});return Yt}function ge(ue,w){let B=ue.tileID,Q=w.tileID;return B.overscaledZ-Q.overscaledZ||B.canonical.y-Q.canonical.y||B.wrap-Q.wrap||B.canonical.x-Q.canonical.x}function De(ue,w,B){return a._(this,void 0,void 0,function*(){let Q=ue;if(ue.url?Q=(yield a.h(w.transformRequest(ue.url,"Source"),B)).data:yield u.frameAsync(B),!Q)return null;let ee=a.M(a.e(Q,ue),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in Q&&Q.vector_layers&&(ee.vectorLayerIds=Q.vector_layers.map(le=>le.id)),ee})}class ce{constructor(w,B){w&&(B?this.setSouthWest(w).setNorthEast(B):Array.isArray(w)&&(w.length===4?this.setSouthWest([w[0],w[1]]).setNorthEast([w[2],w[3]]):this.setSouthWest(w[0]).setNorthEast(w[1])))}setNorthEast(w){return this._ne=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}setSouthWest(w){return this._sw=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}extend(w){let B=this._sw,Q=this._ne,ee,le;if(w instanceof a.N)ee=w,le=w;else{if(!(w instanceof ce))return Array.isArray(w)?w.length===4||w.every(Array.isArray)?this.extend(ce.convert(w)):this.extend(a.N.convert(w)):w&&("lng"in w||"lon"in w)&&"lat"in w?this.extend(a.N.convert(w)):this;if(ee=w._sw,le=w._ne,!ee||!le)return this}return B||Q?(B.lng=Math.min(ee.lng,B.lng),B.lat=Math.min(ee.lat,B.lat),Q.lng=Math.max(le.lng,Q.lng),Q.lat=Math.max(le.lat,Q.lat)):(this._sw=new a.N(ee.lng,ee.lat),this._ne=new a.N(le.lng,le.lat)),this}getCenter(){return new a.N((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new a.N(this.getWest(),this.getNorth())}getSouthEast(){return new a.N(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(w){let{lng:B,lat:Q}=a.N.convert(w),ee=this._sw.lng<=B&&B<=this._ne.lng;return this._sw.lng>this._ne.lng&&(ee=this._sw.lng>=B&&B>=this._ne.lng),this._sw.lat<=Q&&Q<=this._ne.lat&&ee}static convert(w){return w instanceof ce?w:w&&new ce(w)}static fromLngLat(w,B=0){let Q=360*B/40075017,ee=Q/Math.cos(Math.PI/180*w.lat);return new ce(new a.N(w.lng-ee,w.lat-Q),new a.N(w.lng+ee,w.lat+Q))}adjustAntiMeridian(){let w=new a.N(this._sw.lng,this._sw.lat),B=new a.N(this._ne.lng,this._ne.lat);return new ce(w,w.lng>B.lng?new a.N(B.lng+360,B.lat):B)}}class Ze{constructor(w,B,Q){this.bounds=ce.convert(this.validateBounds(w)),this.minzoom=B||0,this.maxzoom=Q||24}validateBounds(w){return Array.isArray(w)&&w.length===4?[Math.max(-180,w[0]),Math.max(-90,w[1]),Math.min(180,w[2]),Math.min(90,w[3])]:[-180,-90,180,90]}contains(w){let B=Math.pow(2,w.z),Q=Math.floor(a.O(this.bounds.getWest())*B),ee=Math.floor(a.Q(this.bounds.getNorth())*B),le=Math.ceil(a.O(this.bounds.getEast())*B),qe=Math.ceil(a.Q(this.bounds.getSouth())*B);return w.x>=Q&&w.x=ee&&w.y{this._options.tiles=w}),this}setUrl(w){return this.setSourceProperty(()=>{this.url=w,this._options.url=w}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}serialize(){return a.e({},this._options)}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q={request:this.map._requestManager.transformRequest(B,"Tile"),uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,tileSize:this.tileSize*w.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};Q.request.collectResourceTiming=this._collectResourceTiming;let ee="RT";if(w.actor&&w.state!=="expired"){if(w.state==="loading")return new Promise((le,qe)=>{w.reloadPromise={resolve:le,reject:qe}})}else w.actor=this.dispatcher.getActor(),ee="LT";w.abortController=new AbortController;try{let le=yield w.actor.sendAsync({type:ee,data:Q},w.abortController);if(delete w.abortController,w.aborted)return;this._afterTileLoadWorkerResponse(w,le)}catch(le){if(delete w.abortController,w.aborted)return;if(le&&le.status!==404)throw le;this._afterTileLoadWorkerResponse(w,null)}})}_afterTileLoadWorkerResponse(w,B){if(B&&B.resourceTiming&&(w.resourceTiming=B.resourceTiming),B&&this.map._refreshExpiredTiles&&w.setExpiryData(B),w.loadVectorData(B,this.map.painter),w.reloadPromise){let Q=w.reloadPromise;w.reloadPromise=null,this.loadTile(w).then(Q.resolve).catch(Q.reject)}}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.actor&&(yield w.actor.sendAsync({type:"AT",data:{uid:w.uid,type:this.type,source:this.id}}))})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.unloadVectorData(),w.actor&&(yield w.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}}))})}hasTransition(){return!1}}class gt extends a.E{constructor(w,B,Q,ee){super(),this.id=w,this.dispatcher=Q,this.setEventedParent(ee),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=a.e({type:"raster"},B),a.e(this,a.M(B,["url","scheme","tileSize"]))}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{let w=yield De(this._options,this.map._requestManager,this._tileJSONRequest);this._tileJSONRequest=null,this._loaded=!0,w&&(a.e(this,w),w.bounds&&(this.tileBounds=new Ze(w.bounds,this.minzoom,this.maxzoom)),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})))}catch(w){this._tileJSONRequest=null,this.fire(new a.j(w))}})}loaded(){return this._loaded}onAdd(w){this.map=w,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}setSourceProperty(w){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null),w(),this.load()}setTiles(w){return this.setSourceProperty(()=>{this._options.tiles=w}),this}setUrl(w){return this.setSourceProperty(()=>{this.url=w,this._options.url=w}),this}serialize(){return a.e({},this._options)}hasTile(w){return!this.tileBounds||this.tileBounds.contains(w.canonical)}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);w.abortController=new AbortController;try{let Q=yield p.getImage(this.map._requestManager.transformRequest(B,"Tile"),w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(Q&&Q.data){this.map._refreshExpiredTiles&&Q.cacheControl&&Q.expires&&w.setExpiryData({cacheControl:Q.cacheControl,expires:Q.expires});let ee=this.map.painter.context,le=ee.gl,qe=Q.data;w.texture=this.map.painter.getTileTexture(qe.width),w.texture?w.texture.update(qe,{useMipmap:!0}):(w.texture=new g(ee,qe,le.RGBA,{useMipmap:!0}),w.texture.bind(le.LINEAR,le.CLAMP_TO_EDGE,le.LINEAR_MIPMAP_NEAREST)),w.state="loaded"}}catch(Q){if(delete w.abortController,w.aborted)w.state="unloaded";else if(Q)throw w.state="errored",Q}})}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController)})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.texture&&this.map.painter.saveTileTexture(w.texture)})}hasTransition(){return!1}}class Kt extends gt{constructor(w,B,Q,ee){super(w,B,Q,ee),this.type="raster-dem",this.maxzoom=22,this._options=a.e({type:"raster-dem"},B),this.encoding=B.encoding||"mapbox",this.redFactor=B.redFactor,this.greenFactor=B.greenFactor,this.blueFactor=B.blueFactor,this.baseShift=B.baseShift}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q=this.map._requestManager.transformRequest(B,"Tile");w.neighboringTiles=this._getNeighboringTiles(w.tileID),w.abortController=new AbortController;try{let ee=yield p.getImage(Q,w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(ee&&ee.data){let le=ee.data;this.map._refreshExpiredTiles&&ee.cacheControl&&ee.expires&&w.setExpiryData({cacheControl:ee.cacheControl,expires:ee.expires});let qe=a.b(le)&&a.U()?le:yield this.readImageNow(le),Xe={type:this.type,uid:w.uid,source:this.id,rawImageData:qe,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(!w.actor||w.state==="expired"){w.actor=this.dispatcher.getActor();let ot=yield w.actor.sendAsync({type:"LDT",data:Xe});w.dem=ot,w.needsHillshadePrepare=!0,w.needsTerrainPrepare=!0,w.state="loaded"}}}catch(ee){if(delete w.abortController,w.aborted)w.state="unloaded";else if(ee)throw w.state="errored",ee}})}readImageNow(w){return a._(this,void 0,void 0,function*(){if(typeof VideoFrame!="undefined"&&a.V()){let B=w.width+2,Q=w.height+2;try{return new a.R({width:B,height:Q},yield a.W(w,-1,-1,B,Q))}catch(ee){}}return u.getImageData(w,1)})}_getNeighboringTiles(w){let B=w.canonical,Q=Math.pow(2,B.z),ee=(B.x-1+Q)%Q,le=B.x===0?w.wrap-1:w.wrap,qe=(B.x+1+Q)%Q,Xe=B.x+1===Q?w.wrap+1:w.wrap,ot={};return ot[new a.S(w.overscaledZ,le,B.z,ee,B.y).key]={backfilled:!1},ot[new a.S(w.overscaledZ,Xe,B.z,qe,B.y).key]={backfilled:!1},B.y>0&&(ot[new a.S(w.overscaledZ,le,B.z,ee,B.y-1).key]={backfilled:!1},ot[new a.S(w.overscaledZ,w.wrap,B.z,B.x,B.y-1).key]={backfilled:!1},ot[new a.S(w.overscaledZ,Xe,B.z,qe,B.y-1).key]={backfilled:!1}),B.y+10&&a.e(le,{resourceTiming:ee}),this.fire(new a.k("data",Object.assign(Object.assign({},le),{sourceDataType:"metadata"}))),this.fire(new a.k("data",Object.assign(Object.assign({},le),{sourceDataType:"content"})))}catch(Q){if(this._pendingLoads--,this._removed)return void this.fire(new a.k("dataabort",{dataType:"source"}));this.fire(new a.j(Q))}})}loaded(){return this._pendingLoads===0}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.actor?"RT":"LT";w.actor=this.actor;let Q={type:this.type,uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};w.abortController=new AbortController;let ee=yield this.actor.sendAsync({type:B,data:Q},w.abortController);delete w.abortController,w.unloadVectorData(),w.aborted||w.loadVectorData(ee,this.map.painter,B==="RT")})}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.aborted=!0})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.unloadVectorData(),yield this.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}})})}onRemove(){this._removed=!0,this.actor.sendAsync({type:"RS",data:{type:this.type,source:this.id}})}serialize(){return a.e({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}}var lt=a.Y([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class Gt extends a.E{constructor(w,B,Q,ee){super(),this.id=w,this.dispatcher=Q,this.coordinates=B.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ee),this.options=B}load(w){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=new AbortController;try{let B=yield p.getImage(this.map._requestManager.transformRequest(this.url,"Image"),this._request);this._request=null,this._loaded=!0,B&&B.data&&(this.image=B.data,w&&(this.coordinates=w),this._finishLoading())}catch(B){this._request=null,this._loaded=!0,this.fire(new a.j(B))}})}loaded(){return this._loaded}updateImage(w){return w.url?(this._request&&(this._request.abort(),this._request=null),this.options.url=w.url,this.load(w.coordinates).finally(()=>{this.texture=null}),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(w){this.map=w,this.load()}onRemove(){this._request&&(this._request.abort(),this._request=null)}setCoordinates(w){this.coordinates=w;let B=w.map(a.Z.fromLngLat);this.tileID=function(ee){let le=1/0,qe=1/0,Xe=-1/0,ot=-1/0;for(let xr of ee)le=Math.min(le,xr.x),qe=Math.min(qe,xr.y),Xe=Math.max(Xe,xr.x),ot=Math.max(ot,xr.y);let wt=Math.max(Xe-le,ot-qe),Yt=Math.max(0,Math.floor(-Math.log(wt)/Math.LN2)),Jt=Math.pow(2,Yt);return new a.a1(Yt,Math.floor((le+Xe)/2*Jt),Math.floor((qe+ot)/2*Jt))}(B),this.minzoom=this.maxzoom=this.tileID.z;let Q=B.map(ee=>this.tileID.getTilePoint(ee)._round());return this._boundsArray=new a.$,this._boundsArray.emplaceBack(Q[0].x,Q[0].y,0,0),this._boundsArray.emplaceBack(Q[1].x,Q[1].y,a.X,0),this._boundsArray.emplaceBack(Q[3].x,Q[3].y,0,a.X),this._boundsArray.emplaceBack(Q[2].x,Q[2].y,a.X,a.X),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;let w=this.map.painter.context,B=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,lt.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture||(this.texture=new g(w,this.image,B.RGBA),this.texture.bind(B.LINEAR,B.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let le=this.tiles[ee];le.state!=="loaded"&&(le.state="loaded",le.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}loadTile(w){return a._(this,void 0,void 0,function*(){this.tileID&&this.tileID.equals(w.tileID.canonical)?(this.tiles[String(w.tileID.wrap)]=w,w.buckets={}):w.state="errored"})}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}class Ut extends Gt{constructor(w,B,Q,ee){super(w,B,Q,ee),this.roundZoom=!0,this.type="video",this.options=B}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1;let w=this.options;this.urls=[];for(let B of w.urls)this.urls.push(this.map._requestManager.transformRequest(B,"Source").url);try{let B=yield a.a3(this.urls);if(this._loaded=!0,!B)return;this.video=B,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading()}catch(B){this.fire(new a.j(B))}})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(w){if(this.video){let B=this.video.seekable;wB.end(0)?this.fire(new a.j(new a.a2(`sources.${this.id}`,null,`Playback for this video can be set only between the ${B.start(0)} and ${B.end(0)}-second mark.`))):this.video.currentTime=w}}getVideo(){return this.video}onAdd(w){this.map||(this.map=w,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let w=this.map.painter.context,B=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,lt.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(B.LINEAR,B.CLAMP_TO_EDGE),B.texSubImage2D(B.TEXTURE_2D,0,0,0,B.RGBA,B.UNSIGNED_BYTE,this.video)):(this.texture=new g(w,this.video,B.RGBA),this.texture.bind(B.LINEAR,B.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let le=this.tiles[ee];le.state!=="loaded"&&(le.state="loaded",le.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class $t extends Gt{constructor(w,B,Q,ee){super(w,B,Q,ee),B.coordinates?Array.isArray(B.coordinates)&&B.coordinates.length===4&&!B.coordinates.some(le=>!Array.isArray(le)||le.length!==2||le.some(qe=>typeof qe!="number"))||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "coordinates"'))),B.animate&&typeof B.animate!="boolean"&&this.fire(new a.j(new a.a2(`sources.${w}`,null,'optional "animate" property must be a boolean value'))),B.canvas?typeof B.canvas=="string"||B.canvas instanceof HTMLCanvasElement||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "canvas"'))),this.options=B,this.animate=B.animate===void 0||B.animate}load(){return a._(this,void 0,void 0,function*(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new a.j(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())})}getCanvas(){return this.canvas}onAdd(w){this.map=w,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let w=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,w=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,w=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let B=this.map.painter.context,Q=B.gl;this.boundsBuffer||(this.boundsBuffer=B.createVertexBuffer(this._boundsArray,lt.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?(w||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new g(B,this.canvas,Q.RGBA,{premultiply:!0});let ee=!1;for(let le in this.tiles){let qe=this.tiles[le];qe.state!=="loaded"&&(qe.state="loaded",qe.texture=this.texture,ee=!0)}ee&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let w of[this.canvas.width,this.canvas.height])if(isNaN(w)||w<=0)return!0;return!1}}let sr={},Tr=ue=>{switch(ue){case"geojson":return st;case"image":return Gt;case"raster":return gt;case"raster-dem":return Kt;case"vector":return ut;case"video":return Ut;case"canvas":return $t}return sr[ue]},ur="RTLPluginLoaded";class $e extends a.E{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=Ae()}_syncState(w){return this.status=w,this.dispatcher.broadcast("SRPS",{pluginStatus:w,pluginURL:this.url}).catch(B=>{throw this.status="error",B})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(w){return a._(this,arguments,void 0,function*(B,Q=!1){if(this.url)throw new Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=u.resolveURL(B),!this.url)throw new Error(`requested url ${B} is invalid`);if(this.status==="unavailable"){if(!Q)return this._requestImport();this.status="deferred",this._syncState(this.status)}else if(this.status==="requested")return this._requestImport()})}_requestImport(){return a._(this,void 0,void 0,function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new a.k(ur))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}}let Mt=null;function Ct(){return Mt||(Mt=new $e),Mt}class Vt{constructor(w,B){this.timeAdded=0,this.fadeEndTime=0,this.tileID=w,this.uid=a.a4(),this.uses=0,this.tileSize=B,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(w){let B=w+this.timeAdded;Ble.getLayer(wt)).filter(Boolean);if(ot.length!==0){Xe.layers=ot,Xe.stateDependentLayerIds&&(Xe.stateDependentLayers=Xe.stateDependentLayerIds.map(wt=>ot.filter(Yt=>Yt.id===wt)[0]));for(let wt of ot)qe[wt.id]=Xe}}return qe}(w.buckets,B.style),this.hasSymbolBuckets=!1;for(let ee in this.buckets){let le=this.buckets[ee];if(le instanceof a.a6){if(this.hasSymbolBuckets=!0,!Q)break;le.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let ee in this.buckets){let le=this.buckets[ee];if(le instanceof a.a6&&le.hasRTLText){this.hasRTLText=!0,Ct().lazyLoad();break}}this.queryPadding=0;for(let ee in this.buckets){let le=this.buckets[ee];this.queryPadding=Math.max(this.queryPadding,B.style.getLayer(ee).queryRadius(le))}w.imageAtlas&&(this.imageAtlas=w.imageAtlas),w.glyphAtlasImage&&(this.glyphAtlasImage=w.glyphAtlasImage)}else this.collisionBoxArray=new a.a5}unloadVectorData(){for(let w in this.buckets)this.buckets[w].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(w){return this.buckets[w.id]}upload(w){for(let Q in this.buckets){let ee=this.buckets[Q];ee.uploadPending()&&ee.upload(w)}let B=w.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new g(w,this.imageAtlas.image,B.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new g(w,this.glyphAtlasImage,B.ALPHA),this.glyphAtlasImage=null)}prepare(w){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(w,this.imageAtlasTexture)}queryRenderedFeatures(w,B,Q,ee,le,qe,Xe,ot,wt,Yt){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:ee,cameraQueryGeometry:le,scale:qe,tileSize:this.tileSize,pixelPosMatrix:Yt,transform:ot,params:Xe,queryPadding:this.queryPadding*wt},w,B,Q):{}}querySourceFeatures(w,B){let Q=this.latestFeatureIndex;if(!Q||!Q.rawTileData)return;let ee=Q.loadVTLayers(),le=B&&B.sourceLayer?B.sourceLayer:"",qe=ee._geojsonTileLayer||ee[le];if(!qe)return;let Xe=a.a7(B&&B.filter),{z:ot,x:wt,y:Yt}=this.tileID.canonical,Jt={z:ot,x:wt,y:Yt};for(let xr=0;xrQ)ee=!1;else if(B)if(this.expirationTime{this.remove(w,le)},Q)),this.data[ee].push(le),this.order.push(ee),this.order.length>this.max){let qe=this._getAndRemoveByKey(this.order[0]);qe&&this.onRemove(qe)}return this}has(w){return w.wrapped().key in this.data}getAndRemove(w){return this.has(w)?this._getAndRemoveByKey(w.wrapped().key):null}_getAndRemoveByKey(w){let B=this.data[w].shift();return B.timeout&&clearTimeout(B.timeout),this.data[w].length===0&&delete this.data[w],this.order.splice(this.order.indexOf(w),1),B.value}getByKey(w){let B=this.data[w];return B?B[0].value:null}get(w){return this.has(w)?this.data[w.wrapped().key][0].value:null}remove(w,B){if(!this.has(w))return this;let Q=w.wrapped().key,ee=B===void 0?0:this.data[Q].indexOf(B),le=this.data[Q][ee];return this.data[Q].splice(ee,1),le.timeout&&clearTimeout(le.timeout),this.data[Q].length===0&&delete this.data[Q],this.onRemove(le.value),this.order.splice(this.order.indexOf(Q),1),this}setMaxSize(w){for(this.max=w;this.order.length>this.max;){let B=this._getAndRemoveByKey(this.order[0]);B&&this.onRemove(B)}return this}filter(w){let B=[];for(let Q in this.data)for(let ee of this.data[Q])w(ee.value)||B.push(ee);for(let Q of B)this.remove(Q.value.tileID,Q)}}class Ot{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(w,B,Q){let ee=String(B);if(this.stateChanges[w]=this.stateChanges[w]||{},this.stateChanges[w][ee]=this.stateChanges[w][ee]||{},a.e(this.stateChanges[w][ee],Q),this.deletedStates[w]===null){this.deletedStates[w]={};for(let le in this.state[w])le!==ee&&(this.deletedStates[w][le]=null)}else if(this.deletedStates[w]&&this.deletedStates[w][ee]===null){this.deletedStates[w][ee]={};for(let le in this.state[w][ee])Q[le]||(this.deletedStates[w][ee][le]=null)}else for(let le in Q)this.deletedStates[w]&&this.deletedStates[w][ee]&&this.deletedStates[w][ee][le]===null&&delete this.deletedStates[w][ee][le]}removeFeatureState(w,B,Q){if(this.deletedStates[w]===null)return;let ee=String(B);if(this.deletedStates[w]=this.deletedStates[w]||{},Q&&B!==void 0)this.deletedStates[w][ee]!==null&&(this.deletedStates[w][ee]=this.deletedStates[w][ee]||{},this.deletedStates[w][ee][Q]=null);else if(B!==void 0)if(this.stateChanges[w]&&this.stateChanges[w][ee])for(Q in this.deletedStates[w][ee]={},this.stateChanges[w][ee])this.deletedStates[w][ee][Q]=null;else this.deletedStates[w][ee]=null;else this.deletedStates[w]=null}getState(w,B){let Q=String(B),ee=a.e({},(this.state[w]||{})[Q],(this.stateChanges[w]||{})[Q]);if(this.deletedStates[w]===null)return{};if(this.deletedStates[w]){let le=this.deletedStates[w][B];if(le===null)return{};for(let qe in le)delete ee[qe]}return ee}initializeTileState(w,B){w.setFeatureState(this.state,B)}coalesceChanges(w,B){let Q={};for(let ee in this.stateChanges){this.state[ee]=this.state[ee]||{};let le={};for(let qe in this.stateChanges[ee])this.state[ee][qe]||(this.state[ee][qe]={}),a.e(this.state[ee][qe],this.stateChanges[ee][qe]),le[qe]=this.state[ee][qe];Q[ee]=le}for(let ee in this.deletedStates){this.state[ee]=this.state[ee]||{};let le={};if(this.deletedStates[ee]===null)for(let qe in this.state[ee])le[qe]={},this.state[ee][qe]={};else for(let qe in this.deletedStates[ee]){if(this.deletedStates[ee][qe]===null)this.state[ee][qe]={};else for(let Xe of Object.keys(this.deletedStates[ee][qe]))delete this.state[ee][qe][Xe];le[qe]=this.state[ee][qe]}Q[ee]=Q[ee]||{},a.e(Q[ee],le)}if(this.stateChanges={},this.deletedStates={},Object.keys(Q).length!==0)for(let ee in w)w[ee].setFeatureState(Q,B)}}class bt extends a.E{constructor(w,B,Q){super(),this.id=w,this.dispatcher=Q,this.on("data",ee=>this._dataHandler(ee)),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=((ee,le,qe,Xe)=>{let ot=new(Tr(le.type))(ee,le,qe,Xe);if(ot.id!==ee)throw new Error(`Expected Source id to be ${ee} instead of ${ot.id}`);return ot})(w,B,Q,this),this._tiles={},this._cache=new It(0,ee=>this._unloadTile(ee)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new Ot,this._didEmitContent=!1,this._updated=!1}onAdd(w){this.map=w,this._maxTileCacheSize=w?w._maxTileCacheSize:null,this._maxTileCacheZoomLevels=w?w._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(w)}onRemove(w){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(w)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(this.used===void 0&&this.usedForTerrain===void 0||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(let w in this._tiles){let B=this._tiles[w];if(B.state!=="loaded"&&B.state!=="errored")return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;let w=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,w&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(w,B,Q){return a._(this,void 0,void 0,function*(){try{yield this._source.loadTile(w),this._tileLoaded(w,B,Q)}catch(ee){w.state="errored",ee.status!==404?this._source.fire(new a.j(ee,{tile:w})):this.update(this.transform,this.terrain)}})}_unloadTile(w){this._source.unloadTile&&this._source.unloadTile(w)}_abortTile(w){this._source.abortTile&&this._source.abortTile(w),this._source.fire(new a.k("dataabort",{tile:w,coord:w.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(w){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(let B in this._tiles){let Q=this._tiles[B];Q.upload(w),Q.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map(w=>w.tileID).sort(rr).map(w=>w.key)}getRenderableIds(w){let B=[];for(let Q in this._tiles)this._isIdRenderable(Q,w)&&B.push(this._tiles[Q]);return w?B.sort((Q,ee)=>{let le=Q.tileID,qe=ee.tileID,Xe=new a.P(le.canonical.x,le.canonical.y)._rotate(this.transform.angle),ot=new a.P(qe.canonical.x,qe.canonical.y)._rotate(this.transform.angle);return le.overscaledZ-qe.overscaledZ||ot.y-Xe.y||ot.x-Xe.x}).map(Q=>Q.tileID.key):B.map(Q=>Q.tileID).sort(rr).map(Q=>Q.key)}hasRenderableParent(w){let B=this.findLoadedParent(w,0);return!!B&&this._isIdRenderable(B.tileID.key)}_isIdRenderable(w,B){return this._tiles[w]&&this._tiles[w].hasData()&&!this._coveredTiles[w]&&(B||!this._tiles[w].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(let w in this._tiles)this._tiles[w].state!=="errored"&&this._reloadTile(w,"reloading")}}_reloadTile(w,B){return a._(this,void 0,void 0,function*(){let Q=this._tiles[w];Q&&(Q.state!=="loading"&&(Q.state=B),yield this._loadTile(Q,w,B))})}_tileLoaded(w,B,Q){w.timeAdded=u.now(),Q==="expired"&&(w.refreshedUponExpiration=!0),this._setTileReloadTimer(B,w),this.getSource().type==="raster-dem"&&w.dem&&this._backfillDEM(w),this._state.initializeTileState(w,this.map?this.map.painter:null),w.aborted||this._source.fire(new a.k("data",{dataType:"source",tile:w,coord:w.tileID}))}_backfillDEM(w){let B=this.getRenderableIds();for(let ee=0;ee1||(Math.abs(qe)>1&&(Math.abs(qe+ot)===1?qe+=ot:Math.abs(qe-ot)===1&&(qe-=ot)),le.dem&&ee.dem&&(ee.dem.backfillBorder(le.dem,qe,Xe),ee.neighboringTiles&&ee.neighboringTiles[wt]&&(ee.neighboringTiles[wt].backfilled=!0)))}}getTile(w){return this.getTileByID(w.key)}getTileByID(w){return this._tiles[w]}_retainLoadedChildren(w,B,Q,ee){for(let le in this._tiles){let qe=this._tiles[le];if(ee[le]||!qe.hasData()||qe.tileID.overscaledZ<=B||qe.tileID.overscaledZ>Q)continue;let Xe=qe.tileID;for(;qe&&qe.tileID.overscaledZ>B+1;){let wt=qe.tileID.scaledTo(qe.tileID.overscaledZ-1);qe=this._tiles[wt.key],qe&&qe.hasData()&&(Xe=wt)}let ot=Xe;for(;ot.overscaledZ>B;)if(ot=ot.scaledTo(ot.overscaledZ-1),w[ot.key]){ee[Xe.key]=Xe;break}}}findLoadedParent(w,B){if(w.key in this._loadedParentTiles){let Q=this._loadedParentTiles[w.key];return Q&&Q.tileID.overscaledZ>=B?Q:null}for(let Q=w.overscaledZ-1;Q>=B;Q--){let ee=w.scaledTo(Q),le=this._getLoadedTile(ee);if(le)return le}}findLoadedSibling(w){return this._getLoadedTile(w)}_getLoadedTile(w){let B=this._tiles[w.key];return B&&B.hasData()?B:this._cache.getByKey(w.wrapped().key)}updateCacheSize(w){let B=Math.ceil(w.width/this._source.tileSize)+1,Q=Math.ceil(w.height/this._source.tileSize)+1,ee=Math.floor(B*Q*(this._maxTileCacheZoomLevels===null?a.a.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),le=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ee):ee;this._cache.setMaxSize(le)}handleWrapJump(w){let B=Math.round((w-(this._prevLng===void 0?w:this._prevLng))/360);if(this._prevLng=w,B){let Q={};for(let ee in this._tiles){let le=this._tiles[ee];le.tileID=le.tileID.unwrapTo(le.tileID.wrap+B),Q[le.tileID.key]=le}this._tiles=Q;for(let ee in this._timers)clearTimeout(this._timers[ee]),delete this._timers[ee];for(let ee in this._tiles)this._setTileReloadTimer(ee,this._tiles[ee])}}_updateCoveredAndRetainedTiles(w,B,Q,ee,le,qe){let Xe={},ot={},wt=Object.keys(w),Yt=u.now();for(let Jt of wt){let xr=w[Jt],Ir=this._tiles[Jt];if(!Ir||Ir.fadeEndTime!==0&&Ir.fadeEndTime<=Yt)continue;let ve=this.findLoadedParent(xr,B),be=this.findLoadedSibling(xr),Re=ve||be||null;Re&&(this._addTile(Re.tileID),Xe[Re.tileID.key]=Re.tileID),ot[Jt]=xr}this._retainLoadedChildren(ot,ee,Q,w);for(let Jt in Xe)w[Jt]||(this._coveredTiles[Jt]=!0,w[Jt]=Xe[Jt]);if(qe){let Jt={},xr={};for(let Ir of le)this._tiles[Ir.key].hasData()?Jt[Ir.key]=Ir:xr[Ir.key]=Ir;for(let Ir in xr){let ve=xr[Ir].children(this._source.maxzoom);this._tiles[ve[0].key]&&this._tiles[ve[1].key]&&this._tiles[ve[2].key]&&this._tiles[ve[3].key]&&(Jt[ve[0].key]=w[ve[0].key]=ve[0],Jt[ve[1].key]=w[ve[1].key]=ve[1],Jt[ve[2].key]=w[ve[2].key]=ve[2],Jt[ve[3].key]=w[ve[3].key]=ve[3],delete xr[Ir])}for(let Ir in xr){let ve=xr[Ir],be=this.findLoadedParent(ve,this._source.minzoom),Re=this.findLoadedSibling(ve),Be=be||Re||null;if(Be){Jt[Be.tileID.key]=w[Be.tileID.key]=Be.tileID;for(let tt in Jt)Jt[tt].isChildOf(Be.tileID)&&delete Jt[tt]}}for(let Ir in this._tiles)Jt[Ir]||(this._coveredTiles[Ir]=!0)}}update(w,B){if(!this._sourceLoaded||this._paused)return;let Q;this.transform=w,this.terrain=B,this.updateCacheSize(w),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?Q=w.getVisibleUnwrappedCoordinates(this._source.tileID).map(Yt=>new a.S(Yt.canonical.z,Yt.wrap,Yt.canonical.z,Yt.canonical.x,Yt.canonical.y)):(Q=w.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:B}),this._source.hasTile&&(Q=Q.filter(Yt=>this._source.hasTile(Yt)))):Q=[];let ee=w.coveringZoomLevel(this._source),le=Math.max(ee-bt.maxOverzooming,this._source.minzoom),qe=Math.max(ee+bt.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){let Yt={};for(let Jt of Q)if(Jt.canonical.z>this._source.minzoom){let xr=Jt.scaledTo(Jt.canonical.z-1);Yt[xr.key]=xr;let Ir=Jt.scaledTo(Math.max(this._source.minzoom,Math.min(Jt.canonical.z,5)));Yt[Ir.key]=Ir}Q=Q.concat(Object.values(Yt))}let Xe=Q.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,Xe&&this.fire(new a.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));let ot=this._updateRetainedTiles(Q,ee);lr(this._source.type)&&this._updateCoveredAndRetainedTiles(ot,le,qe,ee,Q,B);for(let Yt in ot)this._tiles[Yt].clearFadeHold();let wt=a.ab(this._tiles,ot);for(let Yt of wt){let Jt=this._tiles[Yt];Jt.hasSymbolBuckets&&!Jt.holdingForFade()?Jt.setHoldDuration(this.map._fadeDuration):Jt.hasSymbolBuckets&&!Jt.symbolFadeFinished()||this._removeTile(Yt)}this._updateLoadedParentTileCache(),this._updateLoadedSiblingTileCache()}releaseSymbolFadeTiles(){for(let w in this._tiles)this._tiles[w].holdingForFade()&&this._removeTile(w)}_updateRetainedTiles(w,B){var Q;let ee={},le={},qe=Math.max(B-bt.maxOverzooming,this._source.minzoom),Xe=Math.max(B+bt.maxUnderzooming,this._source.minzoom),ot={};for(let wt of w){let Yt=this._addTile(wt);ee[wt.key]=wt,Yt.hasData()||Bthis._source.maxzoom){let xr=wt.children(this._source.maxzoom)[0],Ir=this.getTile(xr);if(Ir&&Ir.hasData()){ee[xr.key]=xr;continue}}else{let xr=wt.children(this._source.maxzoom);if(ee[xr[0].key]&&ee[xr[1].key]&&ee[xr[2].key]&&ee[xr[3].key])continue}let Jt=Yt.wasRequested();for(let xr=wt.overscaledZ-1;xr>=qe;--xr){let Ir=wt.scaledTo(xr);if(le[Ir.key])break;if(le[Ir.key]=!0,Yt=this.getTile(Ir),!Yt&&Jt&&(Yt=this._addTile(Ir)),Yt){let ve=Yt.hasData();if((ve||!(!((Q=this.map)===null||Q===void 0)&&Q.cancelPendingTileRequestsWhileZooming)||Jt)&&(ee[Ir.key]=Ir),Jt=Yt.wasRequested(),ve)break}}}return ee}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(let w in this._tiles){let B=[],Q,ee=this._tiles[w].tileID;for(;ee.overscaledZ>0;){if(ee.key in this._loadedParentTiles){Q=this._loadedParentTiles[ee.key];break}B.push(ee.key);let le=ee.scaledTo(ee.overscaledZ-1);if(Q=this._getLoadedTile(le),Q)break;ee=le}for(let le of B)this._loadedParentTiles[le]=Q}}_updateLoadedSiblingTileCache(){this._loadedSiblingTiles={};for(let w in this._tiles){let B=this._tiles[w].tileID,Q=this._getLoadedTile(B);this._loadedSiblingTiles[B.key]=Q}}_addTile(w){let B=this._tiles[w.key];if(B)return B;B=this._cache.getAndRemove(w),B&&(this._setTileReloadTimer(w.key,B),B.tileID=w,this._state.initializeTileState(B,this.map?this.map.painter:null),this._cacheTimers[w.key]&&(clearTimeout(this._cacheTimers[w.key]),delete this._cacheTimers[w.key],this._setTileReloadTimer(w.key,B)));let Q=B;return B||(B=new Vt(w,this._source.tileSize*w.overscaleFactor()),this._loadTile(B,w.key,B.state)),B.uses++,this._tiles[w.key]=B,Q||this._source.fire(new a.k("dataloading",{tile:B,coord:B.tileID,dataType:"source"})),B}_setTileReloadTimer(w,B){w in this._timers&&(clearTimeout(this._timers[w]),delete this._timers[w]);let Q=B.getExpiryTimeout();Q&&(this._timers[w]=setTimeout(()=>{this._reloadTile(w,"expired"),delete this._timers[w]},Q))}_removeTile(w){let B=this._tiles[w];B&&(B.uses--,delete this._tiles[w],this._timers[w]&&(clearTimeout(this._timers[w]),delete this._timers[w]),B.uses>0||(B.hasData()&&B.state!=="reloading"?this._cache.add(B.tileID,B,B.getExpiryTimeout()):(B.aborted=!0,this._abortTile(B),this._unloadTile(B))))}_dataHandler(w){let B=w.sourceDataType;w.dataType==="source"&&B==="metadata"&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&w.dataType==="source"&&B==="content"&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(let w in this._tiles)this._removeTile(w);this._cache.reset()}tilesIn(w,B,Q){let ee=[],le=this.transform;if(!le)return ee;let qe=Q?le.getCameraQueryGeometry(w):w,Xe=w.map(ve=>le.pointCoordinate(ve,this.terrain)),ot=qe.map(ve=>le.pointCoordinate(ve,this.terrain)),wt=this.getIds(),Yt=1/0,Jt=1/0,xr=-1/0,Ir=-1/0;for(let ve of ot)Yt=Math.min(Yt,ve.x),Jt=Math.min(Jt,ve.y),xr=Math.max(xr,ve.x),Ir=Math.max(Ir,ve.y);for(let ve=0;ve=0&&We[1].y+tt>=0){let it=Xe.map(jt=>Re.getTilePoint(jt)),Ft=ot.map(jt=>Re.getTilePoint(jt));ee.push({tile:be,tileID:Re,queryGeometry:it,cameraQueryGeometry:Ft,scale:Be})}}return ee}getVisibleCoordinates(w){let B=this.getRenderableIds(w).map(Q=>this._tiles[Q].tileID);for(let Q of B)Q.posMatrix=this.transform.calculatePosMatrix(Q.toUnwrapped());return B}hasTransition(){if(this._source.hasTransition())return!0;if(lr(this._source.type)){let w=u.now();for(let B in this._tiles)if(this._tiles[B].fadeEndTime>=w)return!0}return!1}setFeatureState(w,B,Q){this._state.updateState(w=w||"_geojsonTileLayer",B,Q)}removeFeatureState(w,B,Q){this._state.removeFeatureState(w=w||"_geojsonTileLayer",B,Q)}getFeatureState(w,B){return this._state.getState(w=w||"_geojsonTileLayer",B)}setDependencies(w,B,Q){let ee=this._tiles[w];ee&&ee.setDependencies(B,Q)}reloadTilesForDependencies(w,B){for(let Q in this._tiles)this._tiles[Q].hasDependency(w,B)&&this._reloadTile(Q,"reloading");this._cache.filter(Q=>!Q.hasDependency(w,B))}}function rr(ue,w){let B=Math.abs(2*ue.wrap)-+(ue.wrap<0),Q=Math.abs(2*w.wrap)-+(w.wrap<0);return ue.overscaledZ-w.overscaledZ||Q-B||w.canonical.y-ue.canonical.y||w.canonical.x-ue.canonical.x}function lr(ue){return ue==="raster"||ue==="image"||ue==="video"}bt.maxOverzooming=10,bt.maxUnderzooming=3;class wr{constructor(w,B){this.reset(w,B)}reset(w,B){this.points=w||[],this._distances=[0];for(let Q=1;Q0?(ee-qe)/Xe:0;return this.points[le].mult(1-ot).add(this.points[B].mult(ot))}}function Cr(ue,w){let B=!0;return ue==="always"||ue!=="never"&&w!=="never"||(B=!1),B}class Kr{constructor(w,B,Q){let ee=this.boxCells=[],le=this.circleCells=[];this.xCellCount=Math.ceil(w/Q),this.yCellCount=Math.ceil(B/Q);for(let qe=0;qethis.width||ee<0||B>this.height)return[];let ot=[];if(w<=0&&B<=0&&this.width<=Q&&this.height<=ee){if(le)return[{key:null,x1:w,y1:B,x2:Q,y2:ee}];for(let wt=0;wt0}hitTestCircle(w,B,Q,ee,le){let qe=w-Q,Xe=w+Q,ot=B-Q,wt=B+Q;if(Xe<0||qe>this.width||wt<0||ot>this.height)return!1;let Yt=[];return this._forEachCell(qe,ot,Xe,wt,this._queryCellCircle,Yt,{hitTest:!0,overlapMode:ee,circle:{x:w,y:B,radius:Q},seenUids:{box:{},circle:{}}},le),Yt.length>0}_queryCell(w,B,Q,ee,le,qe,Xe,ot){let{seenUids:wt,hitTest:Yt,overlapMode:Jt}=Xe,xr=this.boxCells[le];if(xr!==null){let ve=this.bboxes;for(let be of xr)if(!wt.box[be]){wt.box[be]=!0;let Re=4*be,Be=this.boxKeys[be];if(w<=ve[Re+2]&&B<=ve[Re+3]&&Q>=ve[Re+0]&&ee>=ve[Re+1]&&(!ot||ot(Be))&&(!Yt||!Cr(Jt,Be.overlapMode))&&(qe.push({key:Be,x1:ve[Re],y1:ve[Re+1],x2:ve[Re+2],y2:ve[Re+3]}),Yt))return!0}}let Ir=this.circleCells[le];if(Ir!==null){let ve=this.circles;for(let be of Ir)if(!wt.circle[be]){wt.circle[be]=!0;let Re=3*be,Be=this.circleKeys[be];if(this._circleAndRectCollide(ve[Re],ve[Re+1],ve[Re+2],w,B,Q,ee)&&(!ot||ot(Be))&&(!Yt||!Cr(Jt,Be.overlapMode))){let tt=ve[Re],We=ve[Re+1],it=ve[Re+2];if(qe.push({key:Be,x1:tt-it,y1:We-it,x2:tt+it,y2:We+it}),Yt)return!0}}}return!1}_queryCellCircle(w,B,Q,ee,le,qe,Xe,ot){let{circle:wt,seenUids:Yt,overlapMode:Jt}=Xe,xr=this.boxCells[le];if(xr!==null){let ve=this.bboxes;for(let be of xr)if(!Yt.box[be]){Yt.box[be]=!0;let Re=4*be,Be=this.boxKeys[be];if(this._circleAndRectCollide(wt.x,wt.y,wt.radius,ve[Re+0],ve[Re+1],ve[Re+2],ve[Re+3])&&(!ot||ot(Be))&&!Cr(Jt,Be.overlapMode))return qe.push(!0),!0}}let Ir=this.circleCells[le];if(Ir!==null){let ve=this.circles;for(let be of Ir)if(!Yt.circle[be]){Yt.circle[be]=!0;let Re=3*be,Be=this.circleKeys[be];if(this._circlesCollide(ve[Re],ve[Re+1],ve[Re+2],wt.x,wt.y,wt.radius)&&(!ot||ot(Be))&&!Cr(Jt,Be.overlapMode))return qe.push(!0),!0}}}_forEachCell(w,B,Q,ee,le,qe,Xe,ot){let wt=this._convertToXCellCoord(w),Yt=this._convertToYCellCoord(B),Jt=this._convertToXCellCoord(Q),xr=this._convertToYCellCoord(ee);for(let Ir=wt;Ir<=Jt;Ir++)for(let ve=Yt;ve<=xr;ve++)if(le.call(this,w,B,Q,ee,this.xCellCount*ve+Ir,qe,Xe,ot))return}_convertToXCellCoord(w){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(w*this.xScale)))}_convertToYCellCoord(w){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(w*this.yScale)))}_circlesCollide(w,B,Q,ee,le,qe){let Xe=ee-w,ot=le-B,wt=Q+qe;return wt*wt>Xe*Xe+ot*ot}_circleAndRectCollide(w,B,Q,ee,le,qe,Xe){let ot=(qe-ee)/2,wt=Math.abs(w-(ee+ot));if(wt>ot+Q)return!1;let Yt=(Xe-le)/2,Jt=Math.abs(B-(le+Yt));if(Jt>Yt+Q)return!1;if(wt<=ot||Jt<=Yt)return!0;let xr=wt-ot,Ir=Jt-Yt;return xr*xr+Ir*Ir<=Q*Q}}function Gr(ue,w,B,Q,ee){let le=a.H();return w?(a.K(le,le,[1/ee,1/ee,1]),B||a.ad(le,le,Q.angle)):a.L(le,Q.labelPlaneMatrix,ue),le}function Yr(ue,w,B,Q,ee){if(w){let le=a.ae(ue);return a.K(le,le,[ee,ee,1]),B||a.ad(le,le,-Q.angle),le}return Q.glCoordMatrix}function dt(ue,w,B,Q){let ee;Q?(ee=[ue,w,Q(ue,w),1],a.af(ee,ee,B)):(ee=[ue,w,0,1],ei(ee,ee,B));let le=ee[3];return{point:new a.P(ee[0]/le,ee[1]/le),signedDistanceFromCamera:le,isOccluded:!1}}function Ge(ue,w){return .5+ue/w*.5}function Qe(ue,w){return ue.x>=-w[0]&&ue.x<=w[0]&&ue.y>=-w[1]&&ue.y<=w[1]}function je(ue,w,B,Q,ee,le,qe,Xe,ot,wt,Yt,Jt,xr,Ir,ve){let be=Q?ue.textSizeData:ue.iconSizeData,Re=a.ag(be,B.transform.zoom),Be=[256/B.width*2+1,256/B.height*2+1],tt=Q?ue.text.dynamicLayoutVertexArray:ue.icon.dynamicLayoutVertexArray;tt.clear();let We=ue.lineVertexArray,it=Q?ue.text.placedSymbolArray:ue.icon.placedSymbolArray,Ft=B.transform.width/B.transform.height,jt=!1;for(let tr=0;trMath.abs(B.x-w.x)*Q?{useVertical:!0}:(ue===a.ah.vertical?w.yB.x)?{needsFlipping:!0}:null}function Ie(ue,w,B,Q,ee,le,qe,Xe,ot,wt,Yt){let Jt=B/24,xr=w.lineOffsetX*Jt,Ir=w.lineOffsetY*Jt,ve;if(w.numGlyphs>1){let be=w.glyphStartIndex+w.numGlyphs,Re=w.lineStartIndex,Be=w.lineStartIndex+w.lineLength,tt=Je(Jt,Xe,xr,Ir,Q,w,Yt,ue);if(!tt)return{notEnoughRoom:!0};let We=dt(tt.first.point.x,tt.first.point.y,qe,ue.getElevation).point,it=dt(tt.last.point.x,tt.last.point.y,qe,ue.getElevation).point;if(ee&&!Q){let Ft=xt(w.writingMode,We,it,wt);if(Ft)return Ft}ve=[tt.first];for(let Ft=w.glyphStartIndex+1;Ft0?We.point:function(jt,tr,dr,Sr,Or,jr){return xe(jt,tr,dr,1,Or,jr)}(ue.tileAnchorPoint,tt,Re,0,le,ue),Ft=xt(w.writingMode,Re,it,wt);if(Ft)return Ft}let be=vr(Jt*Xe.getoffsetX(w.glyphStartIndex),xr,Ir,Q,w.segment,w.lineStartIndex,w.lineStartIndex+w.lineLength,ue,Yt);if(!be||ue.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};ve=[be]}for(let be of ve)a.aj(ot,be.point,be.angle);return{}}function xe(ue,w,B,Q,ee,le){let qe=ue.add(ue.sub(w)._unit()),Xe=ee!==void 0?dt(qe.x,qe.y,ee,le.getElevation).point:pt(qe.x,qe.y,le).point,ot=B.sub(Xe);return B.add(ot._mult(Q/ot.mag()))}function Ce(ue,w,B){let Q=w.projectionCache;if(Q.projections[ue])return Q.projections[ue];let ee=new a.P(w.lineVertexArray.getx(ue),w.lineVertexArray.gety(ue)),le=pt(ee.x,ee.y,w);if(le.signedDistanceFromCamera>0)return Q.projections[ue]=le.point,Q.anyProjectionOccluded=Q.anyProjectionOccluded||le.isOccluded,le.point;let qe=ue-B.direction;return function(Xe,ot,wt,Yt,Jt){return xe(Xe,ot,wt,Yt,void 0,Jt)}(B.distanceFromAnchor===0?w.tileAnchorPoint:new a.P(w.lineVertexArray.getx(qe),w.lineVertexArray.gety(qe)),ee,B.previousVertex,B.absOffsetX-B.distanceFromAnchor+1,w)}function pt(ue,w,B){let Q=ue+B.translation[0],ee=w+B.translation[1],le;return!B.pitchWithMap&&B.projection.useSpecialProjectionForSymbols?(le=B.projection.projectTileCoordinates(Q,ee,B.unwrappedTileID,B.getElevation),le.point.x=(.5*le.point.x+.5)*B.width,le.point.y=(.5*-le.point.y+.5)*B.height):(le=dt(Q,ee,B.labelPlaneMatrix,B.getElevation),le.isOccluded=!1),le}function nr(ue,w,B){return ue._unit()._perp()._mult(w*B)}function ir(ue,w,B,Q,ee,le,qe,Xe,ot){if(Xe.projectionCache.offsets[ue])return Xe.projectionCache.offsets[ue];let wt=B.add(w);if(ue+ot.direction=ee)return Xe.projectionCache.offsets[ue]=wt,wt;let Yt=Ce(ue+ot.direction,Xe,ot),Jt=nr(Yt.sub(B),qe,ot.direction),xr=B.add(Jt),Ir=Yt.add(Jt);return Xe.projectionCache.offsets[ue]=a.ak(le,wt,xr,Ir)||wt,Xe.projectionCache.offsets[ue]}function vr(ue,w,B,Q,ee,le,qe,Xe,ot){let wt=Q?ue-w:ue+w,Yt=wt>0?1:-1,Jt=0;Q&&(Yt*=-1,Jt=Math.PI),Yt<0&&(Jt+=Math.PI);let xr,Ir=Yt>0?le+ee:le+ee+1;Xe.projectionCache.cachedAnchorPoint?xr=Xe.projectionCache.cachedAnchorPoint:(xr=pt(Xe.tileAnchorPoint.x,Xe.tileAnchorPoint.y,Xe).point,Xe.projectionCache.cachedAnchorPoint=xr);let ve,be,Re=xr,Be=xr,tt=0,We=0,it=Math.abs(wt),Ft=[],jt;for(;tt+We<=it;){if(Ir+=Yt,Ir=qe)return null;tt+=We,Be=Re,be=ve;let Sr={absOffsetX:it,direction:Yt,distanceFromAnchor:tt,previousVertex:Be};if(Re=Ce(Ir,Xe,Sr),B===0)Ft.push(Be),jt=Re.sub(Be);else{let Or,jr=Re.sub(Be);Or=jr.mag()===0?nr(Ce(Ir+Yt,Xe,Sr).sub(Re),B,Yt):nr(jr,B,Yt),be||(be=Be.add(Or)),ve=ir(Ir,Or,Re,le,qe,be,B,Xe,Sr),Ft.push(be),jt=ve.sub(be)}We=jt.mag()}let tr=jt._mult((it-tt)/We)._add(be||Be),dr=Jt+Math.atan2(Re.y-Be.y,Re.x-Be.x);return Ft.push(tr),{point:tr,angle:ot?dr:0,path:Ft}}let si=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function mi(ue,w){for(let B=0;B=1;fa--)Pn.push(un.path[fa]);for(let fa=1;fa$a.signedDistanceFromCamera<=0)?[]:fa.map($a=>$a.point)}let Aa=[];if(Pn.length>0){let fa=Pn[0].clone(),$a=Pn[0].clone();for(let ko=1;ko=jr.x&&$a.x<=ii.x&&fa.y>=jr.y&&$a.y<=ii.y?[Pn]:$a.xii.x||$a.yii.y?[]:a.al([Pn],jr.x,jr.y,ii.x,ii.y)}for(let fa of Aa){Li.reset(fa,.25*Or);let $a=0;$a=Li.length<=.5*Or?1:Math.ceil(Li.paddedLength/Kn)+1;for(let ko=0;ko<$a;ko++){let Qa=ko/Math.max($a-1,1),mo=Li.lerp(Qa),Bo=mo.x+vi,Is=mo.y+vi;Be.push(Bo,Is,Or,0);let As=Bo-Or,wo=Is-Or,To=Bo+Or,dl=Is+Or;if(Sr=Sr&&this.isOffscreen(As,wo,To,dl),dr=dr||this.isInsideGrid(As,wo,To,dl),w!=="always"&&this.grid.hitTestCircle(Bo,Is,Or,w,xr)&&(tr=!0,!Yt))return{circles:[],offscreen:!1,collisionDetected:tr}}}}return{circles:!Yt&&tr||!dr||Wedt(ee.x,ee.y,Q,B.getElevation))}queryRenderedSymbols(w){if(w.length===0||this.grid.keysLength()===0&&this.ignoredGrid.keysLength()===0)return{};let B=[],Q=1/0,ee=1/0,le=-1/0,qe=-1/0;for(let Yt of w){let Jt=new a.P(Yt.x+vi,Yt.y+vi);Q=Math.min(Q,Jt.x),ee=Math.min(ee,Jt.y),le=Math.max(le,Jt.x),qe=Math.max(qe,Jt.y),B.push(Jt)}let Xe=this.grid.query(Q,ee,le,qe).concat(this.ignoredGrid.query(Q,ee,le,qe)),ot={},wt={};for(let Yt of Xe){let Jt=Yt.key;if(ot[Jt.bucketInstanceId]===void 0&&(ot[Jt.bucketInstanceId]={}),ot[Jt.bucketInstanceId][Jt.featureIndex])continue;let xr=[new a.P(Yt.x1,Yt.y1),new a.P(Yt.x2,Yt.y1),new a.P(Yt.x2,Yt.y2),new a.P(Yt.x1,Yt.y2)];a.am(B,xr)&&(ot[Jt.bucketInstanceId][Jt.featureIndex]=!0,wt[Jt.bucketInstanceId]===void 0&&(wt[Jt.bucketInstanceId]=[]),wt[Jt.bucketInstanceId].push(Jt.featureIndex))}return wt}insertCollisionBox(w,B,Q,ee,le,qe){(Q?this.ignoredGrid:this.grid).insert({bucketInstanceId:ee,featureIndex:le,collisionGroupID:qe,overlapMode:B},w[0],w[1],w[2],w[3])}insertCollisionCircles(w,B,Q,ee,le,qe){let Xe=Q?this.ignoredGrid:this.grid,ot={bucketInstanceId:ee,featureIndex:le,collisionGroupID:qe,overlapMode:B};for(let wt=0;wt=this.screenRightBoundary||eethis.screenBottomBoundary}isInsideGrid(w,B,Q,ee){return Q>=0&&w=0&&Bthis.projectAndGetPerspectiveRatio(Q,Or.x,Or.y,ee,wt));dr=Sr.some(Or=>!Or.isOccluded),tr=Sr.map(Or=>Or.point)}else dr=!0;return{box:a.ao(tr),allPointsOccluded:!dr}}}function Rn(ue,w,B){return w*(a.X/(ue.tileSize*Math.pow(2,B-ue.tileID.overscaledZ)))}class wn{constructor(w,B,Q,ee){this.opacity=w?Math.max(0,Math.min(1,w.opacity+(w.placed?B:-B))):ee&&Q?1:0,this.placed=Q}isHidden(){return this.opacity===0&&!this.placed}}class pn{constructor(w,B,Q,ee,le){this.text=new wn(w?w.text:null,B,Q,le),this.icon=new wn(w?w.icon:null,B,ee,le)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class Vn{constructor(w,B,Q){this.text=w,this.icon=B,this.skipFade=Q}}class kn{constructor(){this.invProjMatrix=a.H(),this.viewportMatrix=a.H(),this.circles=[]}}class ea{constructor(w,B,Q,ee,le){this.bucketInstanceId=w,this.featureIndex=B,this.sourceLayerIndex=Q,this.bucketIndex=ee,this.tileID=le}}class ua{constructor(w){this.crossSourceCollisions=w,this.maxGroupID=0,this.collisionGroups={}}get(w){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[w]){let B=++this.maxGroupID;this.collisionGroups[w]={ID:B,predicate:Q=>Q.collisionGroupID===B}}return this.collisionGroups[w]}}function Ht(ue,w,B,Q,ee){let{horizontalAlign:le,verticalAlign:qe}=a.au(ue);return new a.P(-(le-.5)*w+Q[0]*ee,-(qe-.5)*B+Q[1]*ee)}class yt{constructor(w,B,Q,ee,le,qe){this.transform=w.clone(),this.terrain=Q,this.collisionIndex=new ji(this.transform,B),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=ee,this.retainedQueryData={},this.collisionGroups=new ua(le),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=qe,qe&&(qe.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(w){let B=this.terrain;return B?(Q,ee)=>B.getElevation(w,Q,ee):null}getBucketParts(w,B,Q,ee){let le=Q.getBucket(B),qe=Q.latestFeatureIndex;if(!le||!qe||B.id!==le.layerIds[0])return;let Xe=Q.collisionBoxArray,ot=le.layers[0].layout,wt=le.layers[0].paint,Yt=Math.pow(2,this.transform.zoom-Q.tileID.overscaledZ),Jt=Q.tileSize/a.X,xr=Q.tileID.toUnwrapped(),Ir=this.transform.calculatePosMatrix(xr),ve=ot.get("text-pitch-alignment")==="map",be=ot.get("text-rotation-alignment")==="map",Re=Rn(Q,1,this.transform.zoom),Be=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,wt.get("text-translate"),wt.get("text-translate-anchor")),tt=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,wt.get("icon-translate"),wt.get("icon-translate-anchor")),We=Gr(Ir,ve,be,this.transform,Re),it=null;if(ve){let jt=Yr(Ir,ve,be,this.transform,Re);it=a.L([],this.transform.labelPlaneMatrix,jt)}this.retainedQueryData[le.bucketInstanceId]=new ea(le.bucketInstanceId,qe,le.sourceLayerIndex,le.index,Q.tileID);let Ft={bucket:le,layout:ot,translationText:Be,translationIcon:tt,posMatrix:Ir,unwrappedTileID:xr,textLabelPlaneMatrix:We,labelToScreenMatrix:it,scale:Yt,textPixelRatio:Jt,holdingForFade:Q.holdingForFade(),collisionBoxArray:Xe,partiallyEvaluatedTextSize:a.ag(le.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(le.sourceID)};if(ee)for(let jt of le.sortKeyRanges){let{sortKey:tr,symbolInstanceStart:dr,symbolInstanceEnd:Sr}=jt;w.push({sortKey:tr,symbolInstanceStart:dr,symbolInstanceEnd:Sr,parameters:Ft})}else w.push({symbolInstanceStart:0,symbolInstanceEnd:le.symbolInstances.length,parameters:Ft})}attemptAnchorPlacement(w,B,Q,ee,le,qe,Xe,ot,wt,Yt,Jt,xr,Ir,ve,be,Re,Be,tt,We){let it=a.aq[w.textAnchor],Ft=[w.textOffset0,w.textOffset1],jt=Ht(it,Q,ee,Ft,le),tr=this.collisionIndex.placeCollisionBox(B,xr,ot,wt,Yt,Xe,qe,Re,Jt.predicate,We,jt);if((!tt||this.collisionIndex.placeCollisionBox(tt,xr,ot,wt,Yt,Xe,qe,Be,Jt.predicate,We,jt).placeable)&&tr.placeable){let dr;if(this.prevPlacement&&this.prevPlacement.variableOffsets[Ir.crossTileID]&&this.prevPlacement.placements[Ir.crossTileID]&&this.prevPlacement.placements[Ir.crossTileID].text&&(dr=this.prevPlacement.variableOffsets[Ir.crossTileID].anchor),Ir.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[Ir.crossTileID]={textOffset:Ft,width:Q,height:ee,anchor:it,textBoxScale:le,prevAnchor:dr},this.markUsedJustification(ve,it,Ir,be),ve.allowVerticalPlacement&&(this.markUsedOrientation(ve,be,Ir),this.placedOrientations[Ir.crossTileID]=be),{shift:jt,placedGlyphBoxes:tr}}}placeLayerBucketPart(w,B,Q){let{bucket:ee,layout:le,translationText:qe,translationIcon:Xe,posMatrix:ot,unwrappedTileID:wt,textLabelPlaneMatrix:Yt,labelToScreenMatrix:Jt,textPixelRatio:xr,holdingForFade:Ir,collisionBoxArray:ve,partiallyEvaluatedTextSize:be,collisionGroup:Re}=w.parameters,Be=le.get("text-optional"),tt=le.get("icon-optional"),We=a.ar(le,"text-overlap","text-allow-overlap"),it=We==="always",Ft=a.ar(le,"icon-overlap","icon-allow-overlap"),jt=Ft==="always",tr=le.get("text-rotation-alignment")==="map",dr=le.get("text-pitch-alignment")==="map",Sr=le.get("icon-text-fit")!=="none",Or=le.get("symbol-z-order")==="viewport-y",jr=it&&(jt||!ee.hasIconData()||tt),ii=jt&&(it||!ee.hasTextData()||Be);!ee.collisionArrays&&ve&&ee.deserializeCollisionBoxes(ve);let Li=this._getTerrainElevationFunc(this.retainedQueryData[ee.bucketInstanceId].tileID),un=(sn,Pn,Kn)=>{var Aa,fa;if(B[sn.crossTileID])return;if(Ir)return void(this.placements[sn.crossTileID]=new Vn(!1,!1,!1));let $a=!1,ko=!1,Qa=!0,mo=null,Bo={box:null,placeable:!1,offscreen:null},Is={box:null,placeable:!1,offscreen:null},As=null,wo=null,To=null,dl=0,Nl=0,Lu=0;Pn.textFeatureIndex?dl=Pn.textFeatureIndex:sn.useRuntimeCollisionCircles&&(dl=sn.featureIndex),Pn.verticalTextFeatureIndex&&(Nl=Pn.verticalTextFeatureIndex);let ou=Pn.textBox;if(ou){let Tl=Te=>{let Ne=a.ah.horizontal;if(ee.allowVerticalPlacement&&!Te&&this.prevPlacement){let He=this.prevPlacement.placedOrientations[sn.crossTileID];He&&(this.placedOrientations[sn.crossTileID]=He,Ne=He,this.markUsedOrientation(ee,Ne,sn))}return Ne},Al=(Te,Ne)=>{if(ee.allowVerticalPlacement&&sn.numVerticalGlyphVertices>0&&Pn.verticalTextBox){for(let He of ee.writingModes)if(He===a.ah.vertical?(Bo=Ne(),Is=Bo):Bo=Te(),Bo&&Bo.placeable)break}else Bo=Te()},X=sn.textAnchorOffsetStartIndex,se=sn.textAnchorOffsetEndIndex;if(se===X){let Te=(Ne,He)=>{let Ye=this.collisionIndex.placeCollisionBox(Ne,We,xr,ot,wt,dr,tr,qe,Re.predicate,Li);return Ye&&Ye.placeable&&(this.markUsedOrientation(ee,He,sn),this.placedOrientations[sn.crossTileID]=He),Ye};Al(()=>Te(ou,a.ah.horizontal),()=>{let Ne=Pn.verticalTextBox;return ee.allowVerticalPlacement&&sn.numVerticalGlyphVertices>0&&Ne?Te(Ne,a.ah.vertical):{box:null,offscreen:null}}),Tl(Bo&&Bo.placeable)}else{let Te=a.aq[(fa=(Aa=this.prevPlacement)===null||Aa===void 0?void 0:Aa.variableOffsets[sn.crossTileID])===null||fa===void 0?void 0:fa.anchor],Ne=(Ye,Et,nt)=>{let Wt=Ye.x2-Ye.x1,gr=Ye.y2-Ye.y1,yr=sn.textBoxScale,Vr=Sr&&Ft==="never"?Et:null,qr=null,_i=We==="never"?1:2,bi="never";Te&&_i++;for(let Wr=0;Wr<_i;Wr++){for(let ni=X;niNe(ou,Pn.iconBox,a.ah.horizontal),()=>{let Ye=Pn.verticalTextBox;return ee.allowVerticalPlacement&&(!Bo||!Bo.placeable)&&sn.numVerticalGlyphVertices>0&&Ye?Ne(Ye,Pn.verticalIconBox,a.ah.vertical):{box:null,occluded:!0,offscreen:null}}),Bo&&($a=Bo.placeable,Qa=Bo.offscreen);let He=Tl(Bo&&Bo.placeable);if(!$a&&this.prevPlacement){let Ye=this.prevPlacement.variableOffsets[sn.crossTileID];Ye&&(this.variableOffsets[sn.crossTileID]=Ye,this.markUsedJustification(ee,Ye.anchor,sn,He))}}}if(As=Bo,$a=As&&As.placeable,Qa=As&&As.offscreen,sn.useRuntimeCollisionCircles){let Tl=ee.text.placedSymbolArray.get(sn.centerJustifiedTextSymbolIndex),Al=a.ai(ee.textSizeData,be,Tl),X=le.get("text-padding");wo=this.collisionIndex.placeCollisionCircles(We,Tl,ee.lineVertexArray,ee.glyphOffsetArray,Al,ot,wt,Yt,Jt,Q,dr,Re.predicate,sn.collisionCircleDiameter,X,qe,Li),wo.circles.length&&wo.collisionDetected&&!Q&&a.w("Collisions detected, but collision boxes are not shown"),$a=it||wo.circles.length>0&&!wo.collisionDetected,Qa=Qa&&wo.offscreen}if(Pn.iconFeatureIndex&&(Lu=Pn.iconFeatureIndex),Pn.iconBox){let Tl=Al=>this.collisionIndex.placeCollisionBox(Al,Ft,xr,ot,wt,dr,tr,Xe,Re.predicate,Li,Sr&&mo?mo:void 0);Is&&Is.placeable&&Pn.verticalIconBox?(To=Tl(Pn.verticalIconBox),ko=To.placeable):(To=Tl(Pn.iconBox),ko=To.placeable),Qa=Qa&&To.offscreen}let $s=Be||sn.numHorizontalGlyphVertices===0&&sn.numVerticalGlyphVertices===0,Ql=tt||sn.numIconVertices===0;$s||Ql?Ql?$s||(ko=ko&&$a):$a=ko&&$a:ko=$a=ko&&$a;let dc=ko&&To.placeable;if($a&&As.placeable&&this.collisionIndex.insertCollisionBox(As.box,We,le.get("text-ignore-placement"),ee.bucketInstanceId,Is&&Is.placeable&&Nl?Nl:dl,Re.ID),dc&&this.collisionIndex.insertCollisionBox(To.box,Ft,le.get("icon-ignore-placement"),ee.bucketInstanceId,Lu,Re.ID),wo&&$a&&this.collisionIndex.insertCollisionCircles(wo.circles,We,le.get("text-ignore-placement"),ee.bucketInstanceId,dl,Re.ID),Q&&this.storeCollisionData(ee.bucketInstanceId,Kn,Pn,As,To,wo),sn.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");if(ee.bucketInstanceId===0)throw new Error("bucket.bucketInstanceId can't be 0");this.placements[sn.crossTileID]=new Vn($a||jr,ko||ii,Qa||ee.justReloaded),B[sn.crossTileID]=!0};if(Or){if(w.symbolInstanceStart!==0)throw new Error("bucket.bucketInstanceId should be 0");let sn=ee.getSortedSymbolIndexes(this.transform.angle);for(let Pn=sn.length-1;Pn>=0;--Pn){let Kn=sn[Pn];un(ee.symbolInstances.get(Kn),ee.collisionArrays[Kn],Kn)}}else for(let sn=w.symbolInstanceStart;sn=0&&(w.text.placedSymbolArray.get(Xe).crossTileID=le>=0&&Xe!==le?0:Q.crossTileID)}markUsedOrientation(w,B,Q){let ee=B===a.ah.horizontal||B===a.ah.horizontalOnly?B:0,le=B===a.ah.vertical?B:0,qe=[Q.leftJustifiedTextSymbolIndex,Q.centerJustifiedTextSymbolIndex,Q.rightJustifiedTextSymbolIndex];for(let Xe of qe)w.text.placedSymbolArray.get(Xe).placedOrientation=ee;Q.verticalPlacedTextSymbolIndex&&(w.text.placedSymbolArray.get(Q.verticalPlacedTextSymbolIndex).placedOrientation=le)}commit(w){this.commitTime=w,this.zoomAtLastRecencyCheck=this.transform.zoom;let B=this.prevPlacement,Q=!1;this.prevZoomAdjustment=B?B.zoomAdjustment(this.transform.zoom):0;let ee=B?B.symbolFadeChange(w):1,le=B?B.opacities:{},qe=B?B.variableOffsets:{},Xe=B?B.placedOrientations:{};for(let ot in this.placements){let wt=this.placements[ot],Yt=le[ot];Yt?(this.opacities[ot]=new pn(Yt,ee,wt.text,wt.icon),Q=Q||wt.text!==Yt.text.placed||wt.icon!==Yt.icon.placed):(this.opacities[ot]=new pn(null,ee,wt.text,wt.icon,wt.skipFade),Q=Q||wt.text||wt.icon)}for(let ot in le){let wt=le[ot];if(!this.opacities[ot]){let Yt=new pn(wt,ee,!1,!1);Yt.isHidden()||(this.opacities[ot]=Yt,Q=Q||wt.text.placed||wt.icon.placed)}}for(let ot in qe)this.variableOffsets[ot]||!this.opacities[ot]||this.opacities[ot].isHidden()||(this.variableOffsets[ot]=qe[ot]);for(let ot in Xe)this.placedOrientations[ot]||!this.opacities[ot]||this.opacities[ot].isHidden()||(this.placedOrientations[ot]=Xe[ot]);if(B&&B.lastPlacementChangeTime===void 0)throw new Error("Last placement time for previous placement is not defined");Q?this.lastPlacementChangeTime=w:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=B?B.lastPlacementChangeTime:w)}updateLayerOpacities(w,B){let Q={};for(let ee of B){let le=ee.getBucket(w);le&&ee.latestFeatureIndex&&w.id===le.layerIds[0]&&this.updateBucketOpacities(le,ee.tileID,Q,ee.collisionBoxArray)}}updateBucketOpacities(w,B,Q,ee){w.hasTextData()&&(w.text.opacityVertexArray.clear(),w.text.hasVisibleVertices=!1),w.hasIconData()&&(w.icon.opacityVertexArray.clear(),w.icon.hasVisibleVertices=!1),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexArray.clear(),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexArray.clear();let le=w.layers[0],qe=le.layout,Xe=new pn(null,0,!1,!1,!0),ot=qe.get("text-allow-overlap"),wt=qe.get("icon-allow-overlap"),Yt=le._unevaluatedLayout.hasValue("text-variable-anchor")||le._unevaluatedLayout.hasValue("text-variable-anchor-offset"),Jt=qe.get("text-rotation-alignment")==="map",xr=qe.get("text-pitch-alignment")==="map",Ir=qe.get("icon-text-fit")!=="none",ve=new pn(null,0,ot&&(wt||!w.hasIconData()||qe.get("icon-optional")),wt&&(ot||!w.hasTextData()||qe.get("text-optional")),!0);!w.collisionArrays&&ee&&(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData())&&w.deserializeCollisionBoxes(ee);let be=(Be,tt,We)=>{for(let it=0;it0,dr=this.placedOrientations[tt.crossTileID],Sr=dr===a.ah.vertical,Or=dr===a.ah.horizontal||dr===a.ah.horizontalOnly;if(We>0||it>0){let ii=en(jt.text);be(w.text,We,Sr?cn:ii),be(w.text,it,Or?cn:ii);let Li=jt.text.isHidden();[tt.rightJustifiedTextSymbolIndex,tt.centerJustifiedTextSymbolIndex,tt.leftJustifiedTextSymbolIndex].forEach(Pn=>{Pn>=0&&(w.text.placedSymbolArray.get(Pn).hidden=Li||Sr?1:0)}),tt.verticalPlacedTextSymbolIndex>=0&&(w.text.placedSymbolArray.get(tt.verticalPlacedTextSymbolIndex).hidden=Li||Or?1:0);let un=this.variableOffsets[tt.crossTileID];un&&this.markUsedJustification(w,un.anchor,tt,dr);let sn=this.placedOrientations[tt.crossTileID];sn&&(this.markUsedJustification(w,"left",tt,sn),this.markUsedOrientation(w,sn,tt))}if(tr){let ii=en(jt.icon),Li=!(Ir&&tt.verticalPlacedIconSymbolIndex&&Sr);tt.placedIconSymbolIndex>=0&&(be(w.icon,tt.numIconVertices,Li?ii:cn),w.icon.placedSymbolArray.get(tt.placedIconSymbolIndex).hidden=jt.icon.isHidden()),tt.verticalPlacedIconSymbolIndex>=0&&(be(w.icon,tt.numVerticalIconVertices,Li?cn:ii),w.icon.placedSymbolArray.get(tt.verticalPlacedIconSymbolIndex).hidden=jt.icon.isHidden())}let jr=Re&&Re.has(Be)?Re.get(Be):{text:null,icon:null};if(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData()){let ii=w.collisionArrays[Be];if(ii){let Li=new a.P(0,0);if(ii.textBox||ii.verticalTextBox){let un=!0;if(Yt){let sn=this.variableOffsets[Ft];sn?(Li=Ht(sn.anchor,sn.width,sn.height,sn.textOffset,sn.textBoxScale),Jt&&Li._rotate(xr?this.transform.angle:-this.transform.angle)):un=!1}if(ii.textBox||ii.verticalTextBox){let sn;ii.textBox&&(sn=Sr),ii.verticalTextBox&&(sn=Or),er(w.textCollisionBox.collisionVertexArray,jt.text.placed,!un||sn,jr.text,Li.x,Li.y)}}if(ii.iconBox||ii.verticalIconBox){let un=!!(!Or&&ii.verticalIconBox),sn;ii.iconBox&&(sn=un),ii.verticalIconBox&&(sn=!un),er(w.iconCollisionBox.collisionVertexArray,jt.icon.placed,sn,jr.icon,Ir?Li.x:0,Ir?Li.y:0)}}}}if(w.sortFeatures(this.transform.angle),this.retainedQueryData[w.bucketInstanceId]&&(this.retainedQueryData[w.bucketInstanceId].featureSortOrder=w.featureSortOrder),w.hasTextData()&&w.text.opacityVertexBuffer&&w.text.opacityVertexBuffer.updateData(w.text.opacityVertexArray),w.hasIconData()&&w.icon.opacityVertexBuffer&&w.icon.opacityVertexBuffer.updateData(w.icon.opacityVertexArray),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexBuffer&&w.iconCollisionBox.collisionVertexBuffer.updateData(w.iconCollisionBox.collisionVertexArray),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexBuffer&&w.textCollisionBox.collisionVertexBuffer.updateData(w.textCollisionBox.collisionVertexArray),w.text.opacityVertexArray.length!==w.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${w.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${w.text.layoutVertexArray.length}) / 4`);if(w.icon.opacityVertexArray.length!==w.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${w.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${w.icon.layoutVertexArray.length}) / 4`);if(w.bucketInstanceId in this.collisionCircleArrays){let Be=this.collisionCircleArrays[w.bucketInstanceId];w.placementInvProjMatrix=Be.invProjMatrix,w.placementViewportMatrix=Be.viewportMatrix,w.collisionCircleArray=Be.circles,delete this.collisionCircleArrays[w.bucketInstanceId]}}symbolFadeChange(w){return this.fadeDuration===0?1:(w-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(w){return Math.max(0,(this.transform.zoom-w)/1.5)}hasTransitions(w){return this.stale||w-this.lastPlacementChangeTimew}setStale(){this.stale=!0}}function er(ue,w,B,Q,ee,le){Q&&Q.length!==0||(Q=[0,0,0,0]);let qe=Q[0]-vi,Xe=Q[1]-vi,ot=Q[2]-vi,wt=Q[3]-vi;ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,qe,Xe),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,ot,Xe),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,ot,wt),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,qe,wt)}let ar=Math.pow(2,25),Er=Math.pow(2,24),Xr=Math.pow(2,17),ri=Math.pow(2,16),$r=Math.pow(2,9),zi=Math.pow(2,8),Ji=Math.pow(2,1);function en(ue){if(ue.opacity===0&&!ue.placed)return 0;if(ue.opacity===1&&ue.placed)return 4294967295;let w=ue.placed?1:0,B=Math.floor(127*ue.opacity);return B*ar+w*Er+B*Xr+w*ri+B*$r+w*zi+B*Ji+w}let cn=0;function yn(){return{isOccluded:(ue,w,B)=>!1,getPitchedTextCorrection:(ue,w,B)=>1,get useSpecialProjectionForSymbols(){return!1},projectTileCoordinates(ue,w,B,Q){throw new Error("Not implemented.")},translatePosition:(ue,w,B,Q)=>function(ee,le,qe,Xe,ot=!1){if(!qe[0]&&!qe[1])return[0,0];let wt=ot?Xe==="map"?ee.angle:0:Xe==="viewport"?-ee.angle:0;if(wt){let Yt=Math.sin(wt),Jt=Math.cos(wt);qe=[qe[0]*Jt-qe[1]*Yt,qe[0]*Yt+qe[1]*Jt]}return[ot?qe[0]:Rn(le,qe[0],ee.zoom),ot?qe[1]:Rn(le,qe[1],ee.zoom)]}(ue,w,B,Q),getCircleRadiusCorrection:ue=>1}}class Mn{constructor(w){this._sortAcrossTiles=w.layout.get("symbol-z-order")!=="viewport-y"&&!w.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(w,B,Q,ee,le){let qe=this._bucketParts;for(;this._currentTileIndexXe.sortKey-ot.sortKey));this._currentPartIndex!this._forceFullPlacement&&u.now()-ee>2;for(;this._currentPlacementIndex>=0;){let qe=B[w[this._currentPlacementIndex]],Xe=this.placement.collisionIndex.transform.zoom;if(qe.type==="symbol"&&(!qe.minzoom||qe.minzoom<=Xe)&&(!qe.maxzoom||qe.maxzoom>Xe)){if(this._inProgressLayer||(this._inProgressLayer=new Mn(qe)),this._inProgressLayer.continuePlacement(Q[qe.source],this.placement,this._showCollisionBoxes,qe,le))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(w){return this.placement.commit(w),this.placement}}let la=512/a.X/2;class ma{constructor(w,B,Q){this.tileID=w,this.bucketInstanceId=Q,this._symbolsByKey={};let ee=new Map;for(let le=0;le({x:Math.floor(ot.anchorX*la),y:Math.floor(ot.anchorY*la)})),crossTileIDs:qe.map(ot=>ot.crossTileID)};if(Xe.positions.length>128){let ot=new a.av(Xe.positions.length,16,Uint16Array);for(let{x:wt,y:Yt}of Xe.positions)ot.add(wt,Yt);ot.finish(),delete Xe.positions,Xe.index=ot}this._symbolsByKey[le]=Xe}}getScaledCoordinates(w,B){let{x:Q,y:ee,z:le}=this.tileID.canonical,{x:qe,y:Xe,z:ot}=B.canonical,wt=la/Math.pow(2,ot-le),Yt=(Xe*a.X+w.anchorY)*wt,Jt=ee*a.X*la;return{x:Math.floor((qe*a.X+w.anchorX)*wt-Q*a.X*la),y:Math.floor(Yt-Jt)}}findMatches(w,B,Q){let ee=this.tileID.canonical.zw)}}class Wa{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Fa{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(w){let B=Math.round((w-this.lng)/360);if(B!==0)for(let Q in this.indexes){let ee=this.indexes[Q],le={};for(let qe in ee){let Xe=ee[qe];Xe.tileID=Xe.tileID.unwrapTo(Xe.tileID.wrap+B),le[Xe.tileID.key]=Xe}this.indexes[Q]=le}this.lng=w}addBucket(w,B,Q){if(this.indexes[w.overscaledZ]&&this.indexes[w.overscaledZ][w.key]){if(this.indexes[w.overscaledZ][w.key].bucketInstanceId===B.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(w.overscaledZ,this.indexes[w.overscaledZ][w.key])}for(let le=0;lew.overscaledZ)for(let Xe in qe){let ot=qe[Xe];ot.tileID.isChildOf(w)&&ot.findMatches(B.symbolInstances,w,ee)}else{let Xe=qe[w.scaledTo(Number(le)).key];Xe&&Xe.findMatches(B.symbolInstances,w,ee)}}for(let le=0;le{B[Q]=!0});for(let Q in this.layerIndexes)B[Q]||delete this.layerIndexes[Q]}}let da=(ue,w)=>a.t(ue,w&&w.filter(B=>B.identifier!=="source.canvas")),Wn=a.aw();class Ga extends a.E{constructor(w,B={}){super(),this._rtlPluginLoaded=()=>{for(let Q in this.sourceCaches){let ee=this.sourceCaches[Q].getSource().type;ee!=="vector"&&ee!=="geojson"||this.sourceCaches[Q].reload()}},this.map=w,this.dispatcher=new Le(Se(),w._getMapId()),this.dispatcher.registerMessageHandler("GG",(Q,ee)=>this.getGlyphs(Q,ee)),this.dispatcher.registerMessageHandler("GI",(Q,ee)=>this.getImages(Q,ee)),this.imageManager=new T,this.imageManager.setEventedParent(this),this.glyphManager=new G(w._requestManager,B.localIdeographFontFamily),this.lineAtlas=new oe(256,512),this.crossTileSymbolIndex=new Wo,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new a.ax,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("SR",a.ay()),Ct().on(ur,this._rtlPluginLoaded),this.on("data",Q=>{if(Q.dataType!=="source"||Q.sourceDataType!=="metadata")return;let ee=this.sourceCaches[Q.sourceId];if(!ee)return;let le=ee.getSource();if(le&&le.vectorLayerIds)for(let qe in this._layers){let Xe=this._layers[qe];Xe.source===le.id&&this._validateLayer(Xe)}})}loadURL(w,B={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),B.validate=typeof B.validate!="boolean"||B.validate;let ee=this.map._requestManager.transformRequest(w,"Style");this._loadStyleRequest=new AbortController;let le=this._loadStyleRequest;a.h(ee,this._loadStyleRequest).then(qe=>{this._loadStyleRequest=null,this._load(qe.data,B,Q)}).catch(qe=>{this._loadStyleRequest=null,qe&&!le.signal.aborted&&this.fire(new a.j(qe))})}loadJSON(w,B={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),this._frameRequest=new AbortController,u.frameAsync(this._frameRequest).then(()=>{this._frameRequest=null,B.validate=B.validate!==!1,this._load(w,B,Q)}).catch(()=>{})}loadEmpty(){this.fire(new a.k("dataloading",{dataType:"style"})),this._load(Wn,{validate:!1})}_load(w,B,Q){var ee;let le=B.transformStyle?B.transformStyle(Q,w):w;if(!B.validate||!da(this,a.u(le))){this._loaded=!0,this.stylesheet=le;for(let qe in le.sources)this.addSource(qe,le.sources[qe],{validate:!1});le.sprite?this._loadSprite(le.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(le.glyphs),this._createLayers(),this.light=new N(this.stylesheet.light),this.sky=new re(this.stylesheet.sky),this.map.setTerrain((ee=this.stylesheet.terrain)!==null&&ee!==void 0?ee:null),this.fire(new a.k("data",{dataType:"style"})),this.fire(new a.k("style.load"))}}_createLayers(){let w=a.az(this.stylesheet.layers);this.dispatcher.broadcast("SL",w),this._order=w.map(B=>B.id),this._layers={},this._serializedLayers=null;for(let B of w){let Q=a.aA(B);Q.setEventedParent(this,{layer:{id:B.id}}),this._layers[B.id]=Q}}_loadSprite(w,B=!1,Q=void 0){let ee;this.imageManager.setLoaded(!1),this._spriteRequest=new AbortController,function(le,qe,Xe,ot){return a._(this,void 0,void 0,function*(){let wt=k(le),Yt=Xe>1?"@2x":"",Jt={},xr={};for(let{id:Ir,url:ve}of wt){let be=qe.transformRequest(M(ve,Yt,".json"),"SpriteJSON");Jt[Ir]=a.h(be,ot);let Re=qe.transformRequest(M(ve,Yt,".png"),"SpriteImage");xr[Ir]=p.getImage(Re,ot)}return yield Promise.all([...Object.values(Jt),...Object.values(xr)]),function(Ir,ve){return a._(this,void 0,void 0,function*(){let be={};for(let Re in Ir){be[Re]={};let Be=u.getImageCanvasContext((yield ve[Re]).data),tt=(yield Ir[Re]).data;for(let We in tt){let{width:it,height:Ft,x:jt,y:tr,sdf:dr,pixelRatio:Sr,stretchX:Or,stretchY:jr,content:ii,textFitWidth:Li,textFitHeight:un}=tt[We];be[Re][We]={data:null,pixelRatio:Sr,sdf:dr,stretchX:Or,stretchY:jr,content:ii,textFitWidth:Li,textFitHeight:un,spriteData:{width:it,height:Ft,x:jt,y:tr,context:Be}}}}return be})}(Jt,xr)})}(w,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then(le=>{if(this._spriteRequest=null,le)for(let qe in le){this._spritesImagesIds[qe]=[];let Xe=this._spritesImagesIds[qe]?this._spritesImagesIds[qe].filter(ot=>!(ot in le)):[];for(let ot of Xe)this.imageManager.removeImage(ot),this._changedImages[ot]=!0;for(let ot in le[qe]){let wt=qe==="default"?ot:`${qe}:${ot}`;this._spritesImagesIds[qe].push(wt),wt in this.imageManager.images?this.imageManager.updateImage(wt,le[qe][ot],!1):this.imageManager.addImage(wt,le[qe][ot]),B&&(this._changedImages[wt]=!0)}}}).catch(le=>{this._spriteRequest=null,ee=le,this.fire(new a.j(ee))}).finally(()=>{this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),B&&(this._changed=!0),this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"})),Q&&Q(ee)})}_unloadSprite(){for(let w of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(w),this._changedImages[w]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}_validateLayer(w){let B=this.sourceCaches[w.source];if(!B)return;let Q=w.sourceLayer;if(!Q)return;let ee=B.getSource();(ee.type==="geojson"||ee.vectorLayerIds&&ee.vectorLayerIds.indexOf(Q)===-1)&&this.fire(new a.j(new Error(`Source layer "${Q}" does not exist on source "${ee.id}" as specified by style layer "${w.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let w in this.sourceCaches)if(!this.sourceCaches[w].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(w,B=!1){let Q=this._serializedAllLayers();if(!w||w.length===0)return Object.values(B?a.aB(Q):Q);let ee=[];for(let le of w)if(Q[le]){let qe=B?a.aB(Q[le]):Q[le];ee.push(qe)}return ee}_serializedAllLayers(){let w=this._serializedLayers;if(w)return w;w=this._serializedLayers={};let B=Object.keys(this._layers);for(let Q of B){let ee=this._layers[Q];ee.type!=="custom"&&(w[Q]=ee.serialize())}return w}hasTransitions(){if(this.light&&this.light.hasTransition()||this.sky&&this.sky.hasTransition())return!0;for(let w in this.sourceCaches)if(this.sourceCaches[w].hasTransition())return!0;for(let w in this._layers)if(this._layers[w].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(w){if(!this._loaded)return;let B=this._changed;if(B){let ee=Object.keys(this._updatedLayers),le=Object.keys(this._removedLayers);(ee.length||le.length)&&this._updateWorkerLayers(ee,le);for(let qe in this._updatedSources){let Xe=this._updatedSources[qe];if(Xe==="reload")this._reloadSource(qe);else{if(Xe!=="clear")throw new Error(`Invalid action ${Xe}`);this._clearSource(qe)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let qe in this._updatedPaintProps)this._layers[qe].updateTransitions(w);this.light.updateTransitions(w),this.sky.updateTransitions(w),this._resetUpdates()}let Q={};for(let ee in this.sourceCaches){let le=this.sourceCaches[ee];Q[ee]=le.used,le.used=!1}for(let ee of this._order){let le=this._layers[ee];le.recalculate(w,this._availableImages),!le.isHidden(w.zoom)&&le.source&&(this.sourceCaches[le.source].used=!0)}for(let ee in Q){let le=this.sourceCaches[ee];!!Q[ee]!=!!le.used&&le.fire(new a.k("data",{sourceDataType:"visibility",dataType:"source",sourceId:ee}))}this.light.recalculate(w),this.sky.recalculate(w),this.z=w.zoom,B&&this.fire(new a.k("data",{dataType:"style"}))}_updateTilesForChangedImages(){let w=Object.keys(this._changedImages);if(w.length){for(let B in this.sourceCaches)this.sourceCaches[B].reloadTilesForDependencies(["icons","patterns"],w);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let w in this.sourceCaches)this.sourceCaches[w].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(w,B){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(w,!1),removedIds:B})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(w,B={}){var Q;this._checkLoaded();let ee=this.serialize();if(w=B.transformStyle?B.transformStyle(ee,w):w,((Q=B.validate)===null||Q===void 0||Q)&&da(this,a.u(w)))return!1;(w=a.aB(w)).layers=a.az(w.layers);let le=a.aC(ee,w),qe=this._getOperationsToPerform(le);if(qe.unimplemented.length>0)throw new Error(`Unimplemented: ${qe.unimplemented.join(", ")}.`);if(qe.operations.length===0)return!1;for(let Xe of qe.operations)Xe();return this.stylesheet=w,this._serializedLayers=null,!0}_getOperationsToPerform(w){let B=[],Q=[];for(let ee of w)switch(ee.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":continue;case"addLayer":B.push(()=>this.addLayer.apply(this,ee.args));break;case"removeLayer":B.push(()=>this.removeLayer.apply(this,ee.args));break;case"setPaintProperty":B.push(()=>this.setPaintProperty.apply(this,ee.args));break;case"setLayoutProperty":B.push(()=>this.setLayoutProperty.apply(this,ee.args));break;case"setFilter":B.push(()=>this.setFilter.apply(this,ee.args));break;case"addSource":B.push(()=>this.addSource.apply(this,ee.args));break;case"removeSource":B.push(()=>this.removeSource.apply(this,ee.args));break;case"setLayerZoomRange":B.push(()=>this.setLayerZoomRange.apply(this,ee.args));break;case"setLight":B.push(()=>this.setLight.apply(this,ee.args));break;case"setGeoJSONSourceData":B.push(()=>this.setGeoJSONSourceData.apply(this,ee.args));break;case"setGlyphs":B.push(()=>this.setGlyphs.apply(this,ee.args));break;case"setSprite":B.push(()=>this.setSprite.apply(this,ee.args));break;case"setSky":B.push(()=>this.setSky.apply(this,ee.args));break;case"setTerrain":B.push(()=>this.map.setTerrain.apply(this,ee.args));break;case"setTransition":B.push(()=>{});break;default:Q.push(ee.command)}return{operations:B,unimplemented:Q}}addImage(w,B){if(this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" already exists.`)));this.imageManager.addImage(w,B),this._afterImageUpdated(w)}updateImage(w,B){this.imageManager.updateImage(w,B)}getImage(w){return this.imageManager.getImage(w)}removeImage(w){if(!this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" does not exist.`)));this.imageManager.removeImage(w),this._afterImageUpdated(w)}_afterImageUpdated(w){this._availableImages=this.imageManager.listImages(),this._changedImages[w]=!0,this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(w,B,Q={}){if(this._checkLoaded(),this.sourceCaches[w]!==void 0)throw new Error(`Source "${w}" already exists.`);if(!B.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(B).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(B.type)>=0&&this._validate(a.u.source,`sources.${w}`,B,null,Q))return;this.map&&this.map._collectResourceTiming&&(B.collectResourceTiming=!0);let ee=this.sourceCaches[w]=new bt(w,B,this.dispatcher);ee.style=this,ee.setEventedParent(this,()=>({isSourceLoaded:ee.loaded(),source:ee.serialize(),sourceId:w})),ee.onAdd(this.map),this._changed=!0}removeSource(w){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error("There is no source with this ID");for(let Q in this._layers)if(this._layers[Q].source===w)return this.fire(new a.j(new Error(`Source "${w}" cannot be removed while layer "${Q}" is using it.`)));let B=this.sourceCaches[w];delete this.sourceCaches[w],delete this._updatedSources[w],B.fire(new a.k("data",{sourceDataType:"metadata",dataType:"source",sourceId:w})),B.setEventedParent(null),B.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(w,B){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error(`There is no source with this ID=${w}`);let Q=this.sourceCaches[w].getSource();if(Q.type!=="geojson")throw new Error(`geojsonSource.type is ${Q.type}, which is !== 'geojson`);Q.setData(B),this._changed=!0}getSource(w){return this.sourceCaches[w]&&this.sourceCaches[w].getSource()}addLayer(w,B,Q={}){this._checkLoaded();let ee=w.id;if(this.getLayer(ee))return void this.fire(new a.j(new Error(`Layer "${ee}" already exists on this map.`)));let le;if(w.type==="custom"){if(da(this,a.aD(w)))return;le=a.aA(w)}else{if("source"in w&&typeof w.source=="object"&&(this.addSource(ee,w.source),w=a.aB(w),w=a.e(w,{source:ee})),this._validate(a.u.layer,`layers.${ee}`,w,{arrayIndex:-1},Q))return;le=a.aA(w),this._validateLayer(le),le.setEventedParent(this,{layer:{id:ee}})}let qe=B?this._order.indexOf(B):this._order.length;if(B&&qe===-1)this.fire(new a.j(new Error(`Cannot add layer "${ee}" before non-existing layer "${B}".`)));else{if(this._order.splice(qe,0,ee),this._layerOrderChanged=!0,this._layers[ee]=le,this._removedLayers[ee]&&le.source&&le.type!=="custom"){let Xe=this._removedLayers[ee];delete this._removedLayers[ee],Xe.type!==le.type?this._updatedSources[le.source]="clear":(this._updatedSources[le.source]="reload",this.sourceCaches[le.source].pause())}this._updateLayer(le),le.onAdd&&le.onAdd(this.map)}}moveLayer(w,B){if(this._checkLoaded(),this._changed=!0,!this._layers[w])return void this.fire(new a.j(new Error(`The layer '${w}' does not exist in the map's style and cannot be moved.`)));if(w===B)return;let Q=this._order.indexOf(w);this._order.splice(Q,1);let ee=B?this._order.indexOf(B):this._order.length;B&&ee===-1?this.fire(new a.j(new Error(`Cannot move layer "${w}" before non-existing layer "${B}".`))):(this._order.splice(ee,0,w),this._layerOrderChanged=!0)}removeLayer(w){this._checkLoaded();let B=this._layers[w];if(!B)return void this.fire(new a.j(new Error(`Cannot remove non-existing layer "${w}".`)));B.setEventedParent(null);let Q=this._order.indexOf(w);this._order.splice(Q,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[w]=B,delete this._layers[w],this._serializedLayers&&delete this._serializedLayers[w],delete this._updatedLayers[w],delete this._updatedPaintProps[w],B.onRemove&&B.onRemove(this.map)}getLayer(w){return this._layers[w]}getLayersOrder(){return[...this._order]}hasLayer(w){return w in this._layers}setLayerZoomRange(w,B,Q){this._checkLoaded();let ee=this.getLayer(w);ee?ee.minzoom===B&&ee.maxzoom===Q||(B!=null&&(ee.minzoom=B),Q!=null&&(ee.maxzoom=Q),this._updateLayer(ee)):this.fire(new a.j(new Error(`Cannot set the zoom range of non-existing layer "${w}".`)))}setFilter(w,B,Q={}){this._checkLoaded();let ee=this.getLayer(w);if(ee){if(!a.aE(ee.filter,B))return B==null?(ee.filter=void 0,void this._updateLayer(ee)):void(this._validate(a.u.filter,`layers.${ee.id}.filter`,B,null,Q)||(ee.filter=a.aB(B),this._updateLayer(ee)))}else this.fire(new a.j(new Error(`Cannot filter non-existing layer "${w}".`)))}getFilter(w){return a.aB(this.getLayer(w).filter)}setLayoutProperty(w,B,Q,ee={}){this._checkLoaded();let le=this.getLayer(w);le?a.aE(le.getLayoutProperty(B),Q)||(le.setLayoutProperty(B,Q,ee),this._updateLayer(le)):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getLayoutProperty(w,B){let Q=this.getLayer(w);if(Q)return Q.getLayoutProperty(B);this.fire(new a.j(new Error(`Cannot get style of non-existing layer "${w}".`)))}setPaintProperty(w,B,Q,ee={}){this._checkLoaded();let le=this.getLayer(w);le?a.aE(le.getPaintProperty(B),Q)||(le.setPaintProperty(B,Q,ee)&&this._updateLayer(le),this._changed=!0,this._updatedPaintProps[w]=!0,this._serializedLayers=null):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getPaintProperty(w,B){return this.getLayer(w).getPaintProperty(B)}setFeatureState(w,B){this._checkLoaded();let Q=w.source,ee=w.sourceLayer,le=this.sourceCaches[Q];if(le===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let qe=le.getSource().type;qe==="geojson"&&ee?this.fire(new a.j(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):qe!=="vector"||ee?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),le.setFeatureState(ee,w.id,B)):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(w,B){this._checkLoaded();let Q=w.source,ee=this.sourceCaches[Q];if(ee===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let le=ee.getSource().type,qe=le==="vector"?w.sourceLayer:void 0;le!=="vector"||qe?B&&typeof w.id!="string"&&typeof w.id!="number"?this.fire(new a.j(new Error("A feature id is required to remove its specific state property."))):ee.removeFeatureState(qe,w.id,B):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(w){this._checkLoaded();let B=w.source,Q=w.sourceLayer,ee=this.sourceCaches[B];if(ee!==void 0)return ee.getSource().type!=="vector"||Q?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),ee.getFeatureState(Q,w.id)):void this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new a.j(new Error(`The source '${B}' does not exist in the map's style.`)))}getTransition(){return a.e({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;let w=a.aF(this.sourceCaches,le=>le.serialize()),B=this._serializeByIds(this._order,!0),Q=this.map.getTerrain()||void 0,ee=this.stylesheet;return a.aG({version:ee.version,name:ee.name,metadata:ee.metadata,light:ee.light,sky:ee.sky,center:ee.center,zoom:ee.zoom,bearing:ee.bearing,pitch:ee.pitch,sprite:ee.sprite,glyphs:ee.glyphs,transition:ee.transition,sources:w,layers:B,terrain:Q},le=>le!==void 0)}_updateLayer(w){this._updatedLayers[w.id]=!0,w.source&&!this._updatedSources[w.source]&&this.sourceCaches[w.source].getSource().type!=="raster"&&(this._updatedSources[w.source]="reload",this.sourceCaches[w.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(w){let B=qe=>this._layers[qe].type==="fill-extrusion",Q={},ee=[];for(let qe=this._order.length-1;qe>=0;qe--){let Xe=this._order[qe];if(B(Xe)){Q[Xe]=qe;for(let ot of w){let wt=ot[Xe];if(wt)for(let Yt of wt)ee.push(Yt)}}}ee.sort((qe,Xe)=>Xe.intersectionZ-qe.intersectionZ);let le=[];for(let qe=this._order.length-1;qe>=0;qe--){let Xe=this._order[qe];if(B(Xe))for(let ot=ee.length-1;ot>=0;ot--){let wt=ee[ot].feature;if(Q[wt.layer.id]{let dr=Be.featureSortOrder;if(dr){let Sr=dr.indexOf(jt.featureIndex);return dr.indexOf(tr.featureIndex)-Sr}return tr.featureIndex-jt.featureIndex});for(let jt of Ft)it.push(jt)}}for(let Be in ve)ve[Be].forEach(tt=>{let We=tt.feature,it=wt[Xe[Be].source].getFeatureState(We.layer["source-layer"],We.id);We.source=We.layer.source,We.layer["source-layer"]&&(We.sourceLayer=We.layer["source-layer"]),We.state=it});return ve}(this._layers,qe,this.sourceCaches,w,B,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(le)}querySourceFeatures(w,B){B&&B.filter&&this._validate(a.u.filter,"querySourceFeatures.filter",B.filter,null,B);let Q=this.sourceCaches[w];return Q?function(ee,le){let qe=ee.getRenderableIds().map(wt=>ee.getTileByID(wt)),Xe=[],ot={};for(let wt=0;wtxr.getTileByID(Ir)).sort((Ir,ve)=>ve.tileID.overscaledZ-Ir.tileID.overscaledZ||(Ir.tileID.isLessThan(ve.tileID)?-1:1))}let Jt=this.crossTileSymbolIndex.addLayer(Yt,ot[Yt.source],w.center.lng);qe=qe||Jt}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((le=le||this._layerOrderChanged||Q===0)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(u.now(),w.zoom))&&(this.pauseablePlacement=new Ba(w,this.map.terrain,this._order,le,B,Q,ee,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,ot),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(u.now()),Xe=!0),qe&&this.pauseablePlacement.placement.setStale()),Xe||qe)for(let wt of this._order){let Yt=this._layers[wt];Yt.type==="symbol"&&this.placement.updateLayerOpacities(Yt,ot[Yt.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(u.now())}_releaseSymbolFadeTiles(){for(let w in this.sourceCaches)this.sourceCaches[w].releaseSymbolFadeTiles()}getImages(w,B){return a._(this,void 0,void 0,function*(){let Q=yield this.imageManager.getImages(B.icons);this._updateTilesForChangedImages();let ee=this.sourceCaches[B.source];return ee&&ee.setDependencies(B.tileID.key,B.type,B.icons),Q})}getGlyphs(w,B){return a._(this,void 0,void 0,function*(){let Q=yield this.glyphManager.getGlyphs(B.stacks),ee=this.sourceCaches[B.source];return ee&&ee.setDependencies(B.tileID.key,B.type,[""]),Q})}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(w,B={}){this._checkLoaded(),w&&this._validate(a.u.glyphs,"glyphs",w,null,B)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=w,this.glyphManager.entries={},this.glyphManager.setURL(w))}addSprite(w,B,Q={},ee){this._checkLoaded();let le=[{id:w,url:B}],qe=[...k(this.stylesheet.sprite),...le];this._validate(a.u.sprite,"sprite",qe,null,Q)||(this.stylesheet.sprite=qe,this._loadSprite(le,!0,ee))}removeSprite(w){this._checkLoaded();let B=k(this.stylesheet.sprite);if(B.find(Q=>Q.id===w)){if(this._spritesImagesIds[w])for(let Q of this._spritesImagesIds[w])this.imageManager.removeImage(Q),this._changedImages[Q]=!0;B.splice(B.findIndex(Q=>Q.id===w),1),this.stylesheet.sprite=B.length>0?B:void 0,delete this._spritesImagesIds[w],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}else this.fire(new a.j(new Error(`Sprite "${w}" doesn't exists on this map.`)))}getSprite(){return k(this.stylesheet.sprite)}setSprite(w,B={},Q){this._checkLoaded(),w&&this._validate(a.u.sprite,"sprite",w,null,B)||(this.stylesheet.sprite=w,w?this._loadSprite(w,!0,Q):(this._unloadSprite(),Q&&Q(null)))}}var vo=a.Y([{name:"a_pos",type:"Int16",components:2}]);let jn={prelude:At(`#ifdef GL_ES +{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}});var tHe=ye((H_r,eHe)=>{eHe.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}});var wx=ye((j_r,oHe)=>{"use strict";var Njt=Y1(),Ujt=QGe(),Vjt=tHe(),Gjt='\xA9 OpenStreetMap contributors',rHe="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",iHe="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",Qz="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",Hjt="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",jjt="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",Wjt="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",aHe={basic:Qz,streets:Qz,outdoors:Qz,light:rHe,dark:iHe,satellite:Vjt,"satellite-streets":Ujt,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:Gjt,tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":rHe,"carto-darkmatter":iHe,"carto-voyager":Qz,"carto-positron-nolabels":Hjt,"carto-darkmatter-nolabels":jjt,"carto-voyager-nolabels":Wjt},nHe=Njt(aHe);oHe.exports={styleValueDflt:"basic",stylesMap:aHe,styleValuesMap:nHe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",nHe.join(", "),"or use a tile service."].join(` +`),mapOnErrorMsg:"Map error."}});var GC=ye((W_r,fHe)=>{"use strict";var sHe=Dr(),lHe=Ca().defaultLine,Xjt=kc().attributes,Zjt=ec(),Yjt=pf().textposition,Kjt=mc().overrideAll,Jjt=pl().templatedArray,uHe=wx(),cHe=Zjt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});cHe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var $jt=fHe.exports=Kjt({_arrayAttrRegexps:[sHe.counterRegex("map",".layers",!0)],domain:Xjt({name:"map"}),style:{valType:"any",values:uHe.styleValuesMap,dflt:uHe.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:Jjt("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:lHe},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:lHe}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:cHe,textposition:sHe.extendFlat({},Yjt,{arrayOk:!1})}})},"plot","from-root");$jt.uirevision={valType:"any",editType:"none"}});var e7=ye((X_r,vHe)=>{"use strict";var Qjt=Qo().hovertemplateAttrs,eWt=Qo().texttemplateAttrs,tWt=Eg(),HC=G2(),A5=pf(),hHe=GC(),rWt=Vl(),iWt=Tu(),rw=Ao().extendFlat,nWt=mc().overrideAll,aWt=GC(),dHe=HC.line,S5=HC.marker;vHe.exports=nWt({lon:HC.lon,lat:HC.lat,cluster:{enabled:{valType:"boolean"},maxzoom:rw({},aWt.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:rw({},S5.opacity,{dflt:1})},mode:rw({},A5.mode,{dflt:"markers"}),text:rw({},A5.text,{}),texttemplate:eWt({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:rw({},A5.hovertext,{}),line:{color:dHe.color,width:dHe.width},connectgaps:A5.connectgaps,marker:rw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:S5.opacity,size:S5.size,sizeref:S5.sizeref,sizemin:S5.sizemin,sizemode:S5.sizemode},iWt("marker")),fill:HC.fill,fillcolor:tWt(),textfont:hHe.layers.symbol.textfont,textposition:hHe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:A5.selected.marker},unselected:{marker:A5.unselected.marker},hoverinfo:rw({},rWt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:Qjt()},"calc","nested")});var _J=ye((Z_r,pHe)=>{"use strict";var oWt=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];pHe.exports={isSupportedFont:function(e){return oWt.indexOf(e)!==-1}}});var yHe=ye((Y_r,mHe)=>{"use strict";var jC=Dr(),xJ=Ru(),sWt=$p(),lWt=R0(),uWt=D0(),cWt=Ig(),gHe=e7(),fWt=_J().isSupportedFont;mHe.exports=function(t,r,n,i){function a(p,C){return jC.coerce(t,r,gHe,p,C)}function o(p,C){return jC.coerce2(t,r,gHe,p,C)}var s=hWt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("hovertext"),a("hovertemplate"),a("mode"),a("below"),xJ.hasMarkers(r)){sWt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var l=r.marker;l.symbol!=="circle"&&(jC.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),jC.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}xJ.hasLines(r)&&(lWt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var u=o("cluster.maxzoom"),c=o("cluster.step"),f=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),v=u!==!1||c!==!1||f!==!1||h!==!1||d!==!1,_=a("cluster.enabled",v);if(_||xJ.hasText(r)){var b=i.font.family;uWt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:fWt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&cWt(t,r,n,a),jC.coerceSelectionMarkerOpacity(r,a)};function hWt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var bJ=ye((K_r,xHe)=>{"use strict";var _He=ho();xHe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=_He.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=_He.tickText(o,o.c2l(s[1]),!0).text,i}});var wJ=ye((J_r,wHe)=>{"use strict";var bHe=Dr();wHe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=bHe.isArrayOrTypedArray(r)?bHe.mean(r):r,s=.5+o/100,l=1.5+o/100,u=["",""],c=[0,0];switch(i){case"top":u[0]="top",c[1]=-l;break;case"bottom":u[0]="bottom",c[1]=l;break}switch(a){case"left":u[1]="right",c[0]=-s;break;case"right":u[1]="left",c[0]=s;break}var f;return u[0]&&u[1]?f=u.join("-"):u[0]?f=u[0]:u[1]?f=u[1]:f="center",{anchor:f,offset:c}}});var CHe=ye(($_r,EHe)=>{"use strict";var SHe=Eo(),ov=Dr(),dWt=hs().BADNUM,r7=rx(),THe=tc(),vWt=So(),pWt=S3(),i7=Ru(),gWt=_J().isSupportedFont,mWt=wJ(),yWt=rp().appendArrayPointValue,_Wt=iu().NEWLINES,xWt=iu().BR_TAG_ALL;EHe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=i7.hasLines(n),s=i7.hasMarkers(n),l=i7.hasText(n),u=s&&n.marker.symbol==="circle",c=s&&n.marker.symbol!=="circle",f=n.cluster&&n.cluster.enabled,h=t7("fill"),d=t7("line"),v=t7("circle"),_=t7("symbol"),b={fill:h,line:d,circle:v,symbol:_};if(!i)return b;var p;if((a||o)&&(p=r7.calcTraceToLineCoords(r)),a&&(h.geojson=r7.makePolygon(p),h.layout.visibility="visible",ov.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=r7.makeLine(p),d.layout.visibility="visible",ov.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),u){var C=bWt(r);v.geojson=C.geojson,v.layout.visibility="visible",f&&(v.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":AJ(n.cluster.color,n.cluster.step),"circle-radius":AJ(n.cluster.size,n.cluster.step),"circle-opacity":AJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":AHe(n),"text-size":12}}),ov.extendFlat(v.paint,{"circle-color":C.mcc,"circle-radius":C.mrc,"circle-opacity":C.mo})}if(u&&f&&(v.filter=["!",["has","point_count"]]),(c||l)&&(_.geojson=wWt(r,t),ov.extendFlat(_.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),c&&(ov.extendFlat(_.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&ov.extendFlat(_.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),_.layout["icon-allow-overlap"]=n.marker.allowoverlap,ov.extendFlat(_.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),l)){var E=(n.marker||{}).size,A=mWt(n.textposition,E);ov.extendFlat(_.layout,{"text-size":n.textfont.size,"text-anchor":A.anchor,"text-offset":A.offset,"text-font":AHe(n)}),ov.extendFlat(_.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function t7(e){return{type:e,geojson:r7.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function bWt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=ov.isArrayOrTypedArray(r.color),a=ov.isArrayOrTypedArray(r.size),o=ov.isArrayOrTypedArray(r.opacity),s;function l(E){return t.opacity*E}function u(E){return E/2}var c;i&&(THe.hasColorscale(t,"marker")?c=THe.makeColorScaleFuncFromTrace(r):c=ov.identity);var f;a&&(f=pWt(t));var h;o&&(h=function(E){var A=SHe(E)?+ov.constrain(E,0,1):0;return l(A)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),gWt(s)||(s=r);var l=s.split(", ");return l}});var IHe=ye((Q_r,PHe)=>{"use strict";var TWt=Dr(),kHe=CHe(),M5=wx().traceLayerPrefix,ng={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function LHe(e,t,r,n){this.type="scattermap",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:M5+t+"-fill",line:M5+t+"-line",circle:M5+t+"-circle",symbol:M5+t+"-symbol",cluster:M5+t+"-cluster",clusterCount:M5+t+"-cluster-count"},this.below=null}var WC=LHe.prototype;WC.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&TWt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};WC.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};WC.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var x=A[L];i.removeLayer(u.layerIds[x])}E||i.removeSource(u.sourceIds.circle)}function h(E){for(var A=ng.nonCluster,L=0;L=0;L--){var x=A[L];i.removeLayer(u.layerIds[x]),E||i.removeSource(u.sourceIds[x])}}function v(E){l?f(E):d(E)}function _(E){s?c(E):h(E)}function b(){for(var E=s?ng.cluster:ng.nonCluster,A=0;A=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};PHe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new LHe(t,n.uid,i,a),s=kHe(t.gd,r),l=o.below=t.belowLookup["trace-"+n.uid],u,c,f;if(i)for(o.addSource("circle",s.circle,n.cluster),u=0;u{"use strict";var AWt=vf(),SJ=Dr(),SWt=oT(),MWt=SJ.fillText,EWt=hs().BADNUM,CWt=wx().traceLayerPrefix;function kWt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=CWt+i.uid+"-circle",c=i.cluster&&i.cluster.enabled;if(c){var f=s.map.queryRenderedFeatures(null,{layers:[u]});l=f.map(function(M){return M.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,v=t-d;function _(M){var g=M.lonlat;if(g[0]===EWt||c&&l.indexOf(M.i+1)===-1)return 1/0;var P=SJ.modHalf(g[0],360),T=g[1],z=s.project([P,T]),O=z.x-a.c2p([v,T]),V=z.y-o.c2p([P,r]),G=Math.max(3,M.mrc||0);return Math.max(Math.sqrt(O*O+V*V)-G,1-3/G)}if(AWt.getClosest(n,_,e),e.index!==!1){var b=n[e.index],p=b.lonlat,C=[SJ.modHalf(p[0],360)+d,p[1]],E=a.c2p(C),A=o.c2p(C),L=b.mrc||1;e.x0=E-L,e.x1=E+L,e.y0=A-L,e.y1=A+L;var x={};x[i.subplot]={_subplot:s};var k=i._module.formatLabels(b,i,x);return e.lonLabel=k.lonLabel,e.latLabel=k.latLabel,e.color=SWt(i,b),e.extraText=RHe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function RHe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,l=t.lonlat,u=[];function c(f){return f+"\xB0"}return a||o&&s?u.push("("+c(l[1])+", "+c(l[0])+")"):o?u.push(r.lon+c(l[0])):s&&u.push(r.lat+c(l[1])),(a||i.indexOf("text")!==-1)&&MWt(t,e,u),u.join("
")}DHe.exports={hoverPoints:kWt,getExtraText:RHe}});var zHe=ye((txr,FHe)=>{"use strict";FHe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var qHe=ye((rxr,OHe)=>{"use strict";var LWt=Dr(),PWt=Ru(),IWt=hs().BADNUM;OHe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l;if(!PWt.hasMarkers(s))return[];if(r===!1)for(l=0;l{(function(e,t){typeof MJ=="object"&&typeof EJ!="undefined"?EJ.exports=t():(e=typeof globalThis!="undefined"?globalThis:e||self,e.maplibregl=t())})(MJ,function(){"use strict";var e={},t={};function r(i,a,o){if(t[i]=o,i==="index"){var s="var sharedModule = {}; ("+t.shared+")(sharedModule); ("+t.worker+")(sharedModule);",l={};return t.shared(l),t.index(e,l),typeof window!="undefined"&&e.setWorkerUrl(window.URL.createObjectURL(new Blob([s],{type:"text/javascript"}))),e}}r("shared",["exports"],function(i){"use strict";function a(R,S,F,W){return new(F||(F=Promise))(function(te,fe){function pe(ut){try{Ke(W.next(ut))}catch(Lt){fe(Lt)}}function ze(ut){try{Ke(W.throw(ut))}catch(Lt){fe(Lt)}}function Ke(ut){var Lt;ut.done?te(ut.value):(Lt=ut.value,Lt instanceof F?Lt:new F(function(Qt){Qt(Lt)})).then(pe,ze)}Ke((W=W.apply(R,S||[])).next())})}function o(R){return R&&R.__esModule&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R}typeof SuppressedError=="function"&&SuppressedError;var s=l;function l(R,S){this.x=R,this.y=S}l.prototype={clone:function(){return new l(this.x,this.y)},add:function(R){return this.clone()._add(R)},sub:function(R){return this.clone()._sub(R)},multByPoint:function(R){return this.clone()._multByPoint(R)},divByPoint:function(R){return this.clone()._divByPoint(R)},mult:function(R){return this.clone()._mult(R)},div:function(R){return this.clone()._div(R)},rotate:function(R){return this.clone()._rotate(R)},rotateAround:function(R,S){return this.clone()._rotateAround(R,S)},matMult:function(R){return this.clone()._matMult(R)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(R){return this.x===R.x&&this.y===R.y},dist:function(R){return Math.sqrt(this.distSqr(R))},distSqr:function(R){var S=R.x-this.x,F=R.y-this.y;return S*S+F*F},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(R){return Math.atan2(this.y-R.y,this.x-R.x)},angleWith:function(R){return this.angleWithSep(R.x,R.y)},angleWithSep:function(R,S){return Math.atan2(this.x*S-this.y*R,this.x*R+this.y*S)},_matMult:function(R){var S=R[2]*this.x+R[3]*this.y;return this.x=R[0]*this.x+R[1]*this.y,this.y=S,this},_add:function(R){return this.x+=R.x,this.y+=R.y,this},_sub:function(R){return this.x-=R.x,this.y-=R.y,this},_mult:function(R){return this.x*=R,this.y*=R,this},_div:function(R){return this.x/=R,this.y/=R,this},_multByPoint:function(R){return this.x*=R.x,this.y*=R.y,this},_divByPoint:function(R){return this.x/=R.x,this.y/=R.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var R=this.y;return this.y=this.x,this.x=-R,this},_rotate:function(R){var S=Math.cos(R),F=Math.sin(R),W=F*this.x+S*this.y;return this.x=S*this.x-F*this.y,this.y=W,this},_rotateAround:function(R,S){var F=Math.cos(R),W=Math.sin(R),te=S.y+W*(this.x-S.x)+F*(this.y-S.y);return this.x=S.x+F*(this.x-S.x)-W*(this.y-S.y),this.y=te,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},l.convert=function(R){return R instanceof l?R:Array.isArray(R)?new l(R[0],R[1]):R};var u=o(s),c=f;function f(R,S,F,W){this.cx=3*R,this.bx=3*(F-R)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*S,this.by=3*(W-S)-this.cy,this.ay=1-this.cy-this.by,this.p1x=R,this.p1y=S,this.p2x=F,this.p2y=W}f.prototype={sampleCurveX:function(R){return((this.ax*R+this.bx)*R+this.cx)*R},sampleCurveY:function(R){return((this.ay*R+this.by)*R+this.cy)*R},sampleCurveDerivativeX:function(R){return(3*this.ax*R+2*this.bx)*R+this.cx},solveCurveX:function(R,S){if(S===void 0&&(S=1e-6),R<0)return 0;if(R>1)return 1;for(var F=R,W=0;W<8;W++){var te=this.sampleCurveX(F)-R;if(Math.abs(te)te?pe=F:ze=F,F=.5*(ze-pe)+pe;return F},solve:function(R,S){return this.sampleCurveY(this.solveCurveX(R,S))}};var h=o(c);let d,v;function _(){return d==null&&(d=typeof OffscreenCanvas!="undefined"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),d}function b(){if(v==null&&(v=!1,_())){let S=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(S){for(let W=0;W<5*5;W++){let te=4*W;S.fillStyle=`rgb(${te},${te+1},${te+2})`,S.fillRect(W%5,Math.floor(W/5),1,1)}let F=S.getImageData(0,0,5,5).data;for(let W=0;W<5*5*4;W++)if(W%4!=3&&F[W]!==W){v=!0;break}}}return v||!1}function p(R,S,F,W){let te=new h(R,S,F,W);return fe=>te.solve(fe)}let C=p(.25,.1,.25,1);function E(R,S,F){return Math.min(F,Math.max(S,R))}function A(R,S,F){let W=F-S,te=((R-S)%W+W)%W+S;return te===S?F:te}function L(R,...S){for(let F of S)for(let W in F)R[W]=F[W];return R}let x=1;function k(R,S,F){let W={};for(let te in R)W[te]=S.call(this,R[te],te,R);return W}function M(R,S,F){let W={};for(let te in R)S.call(this,R[te],te,R)&&(W[te]=R[te]);return W}function g(R){return Array.isArray(R)?R.map(g):typeof R=="object"&&R?k(R,g):R}let P={};function T(R){P[R]||(typeof console!="undefined"&&console.warn(R),P[R]=!0)}function z(R,S,F){return(F.y-R.y)*(S.x-R.x)>(S.y-R.y)*(F.x-R.x)}function O(R){return typeof WorkerGlobalScope!="undefined"&&R!==void 0&&R instanceof WorkerGlobalScope}let V=null;function G(R){return typeof ImageBitmap!="undefined"&&R instanceof ImageBitmap}let Z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function H(R,S,F,W,te){return a(this,void 0,void 0,function*(){if(typeof VideoFrame=="undefined")throw new Error("VideoFrame not supported");let fe=new VideoFrame(R,{timestamp:0});try{let pe=fe==null?void 0:fe.format;if(!pe||!pe.startsWith("BGR")&&!pe.startsWith("RGB"))throw new Error(`Unrecognized format ${pe}`);let ze=pe.startsWith("BGR"),Ke=new Uint8ClampedArray(W*te*4);if(yield fe.copyTo(Ke,function(ut,Lt,Qt,fr,mr){let Lr=4*Math.max(-Lt,0),zr=(Math.max(0,Qt)-Qt)*fr*4+Lr,ui=4*fr,yi=Math.max(0,Lt),dn=Math.max(0,Qt);return{rect:{x:yi,y:dn,width:Math.min(ut.width,Lt+fr)-yi,height:Math.min(ut.height,Qt+mr)-dn},layout:[{offset:zr,stride:ui}]}}(R,S,F,W,te)),ze)for(let ut=0;utO(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,Se=function(R,S){if(/:\/\//.test(R.url)&&!/^https?:|^file:/.test(R.url)){let W=Me(R.url);if(W)return W(R,S);if(O(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:R,targetMapId:ke},S)}if(!(/^file:/.test(F=R.url)||/^file:/.test(ie())&&!/^\w+:/.test(F))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return function(W,te){return a(this,void 0,void 0,function*(){let fe=new Request(W.url,{method:W.method||"GET",body:W.body,credentials:W.credentials,headers:W.headers,cache:W.cache,referrer:ie(),signal:te.signal});W.type!=="json"||fe.headers.has("Accept")||fe.headers.set("Accept","application/json");let pe=yield fetch(fe);if(!pe.ok){let ut=yield pe.blob();throw new me(pe.status,pe.statusText,W.url,ut)}let ze;ze=W.type==="arrayBuffer"||W.type==="image"?pe.arrayBuffer():W.type==="json"?pe.json():pe.text();let Ke=yield ze;if(te.signal.aborted)throw oe();return{data:Ke,cacheControl:pe.headers.get("Cache-Control"),expires:pe.headers.get("Expires")}})}(R,S);if(O(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:R,mustQueue:!0,targetMapId:ke},S)}var F;return function(W,te){return new Promise((fe,pe)=>{var ze;let Ke=new XMLHttpRequest;Ke.open(W.method||"GET",W.url,!0),W.type!=="arrayBuffer"&&W.type!=="image"||(Ke.responseType="arraybuffer");for(let ut in W.headers)Ke.setRequestHeader(ut,W.headers[ut]);W.type==="json"&&(Ke.responseType="text",!((ze=W.headers)===null||ze===void 0)&&ze.Accept||Ke.setRequestHeader("Accept","application/json")),Ke.withCredentials=W.credentials==="include",Ke.onerror=()=>{pe(new Error(Ke.statusText))},Ke.onload=()=>{if(!te.signal.aborted)if((Ke.status>=200&&Ke.status<300||Ke.status===0)&&Ke.response!==null){let ut=Ke.response;if(W.type==="json")try{ut=JSON.parse(Ke.response)}catch(Lt){return void pe(Lt)}fe({data:ut,cacheControl:Ke.getResponseHeader("Cache-Control"),expires:Ke.getResponseHeader("Expires")})}else{let ut=new Blob([Ke.response],{type:Ke.getResponseHeader("Content-Type")});pe(new me(Ke.status,Ke.statusText,W.url,ut))}},te.signal.addEventListener("abort",()=>{Ke.abort(),pe(oe())}),Ke.send(W.body)})}(R,S)};function Le(R){if(!R||R.indexOf("://")<=0||R.indexOf("data:image/")===0||R.indexOf("blob:")===0)return!0;let S=new URL(R),F=window.location;return S.protocol===F.protocol&&S.host===F.host}function Ae(R,S,F){F[R]&&F[R].indexOf(S)!==-1||(F[R]=F[R]||[],F[R].push(S))}function De(R,S,F){if(F&&F[R]){let W=F[R].indexOf(S);W!==-1&&F[R].splice(W,1)}}class Pe{constructor(S,F={}){L(this,F),this.type=S}}class ge extends Pe{constructor(S,F={}){super("error",L({error:S},F))}}class Fe{on(S,F){return this._listeners=this._listeners||{},Ae(S,F,this._listeners),this}off(S,F){return De(S,F,this._listeners),De(S,F,this._oneTimeListeners),this}once(S,F){return F?(this._oneTimeListeners=this._oneTimeListeners||{},Ae(S,F,this._oneTimeListeners),this):new Promise(W=>this.once(S,W))}fire(S,F){typeof S=="string"&&(S=new Pe(S,F||{}));let W=S.type;if(this.listens(W)){S.target=this;let te=this._listeners&&this._listeners[W]?this._listeners[W].slice():[];for(let ze of te)ze.call(this,S);let fe=this._oneTimeListeners&&this._oneTimeListeners[W]?this._oneTimeListeners[W].slice():[];for(let ze of fe)De(W,ze,this._oneTimeListeners),ze.call(this,S);let pe=this._eventedParent;pe&&(L(S,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),pe.fire(S))}else S instanceof ge&&console.error(S.error);return this}listens(S){return this._listeners&&this._listeners[S]&&this._listeners[S].length>0||this._oneTimeListeners&&this._oneTimeListeners[S]&&this._oneTimeListeners[S].length>0||this._eventedParent&&this._eventedParent.listens(S)}setEventedParent(S,F){return this._eventedParent=S,this._eventedParentData=F,this}}var ce={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"enum",default:"mercator",values:{mercator:{},globe:{}}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};let Ye=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function ct(R,S){let F={};for(let W in R)W!=="ref"&&(F[W]=R[W]);return Ye.forEach(W=>{W in S&&(F[W]=S[W])}),F}function pt(R,S){if(Array.isArray(R)){if(!Array.isArray(S)||R.length!==S.length)return!1;for(let F=0;F`:R.itemType.kind==="value"?"array":`array<${S}>`}return R.kind}let je=[Ut,Ft,bt,yt,Yt,ei,lr,Ge(Tr),Wr,Ur,dt];function $e(R,S){if(S.kind==="error")return null;if(R.kind==="array"){if(S.kind==="array"&&(S.N===0&&S.itemType.kind==="value"||!$e(R.itemType,S.itemType))&&(typeof R.N!="number"||R.N===S.N))return null}else{if(R.kind===S.kind)return null;if(R.kind==="value"){for(let F of je)if(!$e(F,S))return null}}return`Expected ${Je(R)} but found ${Je(S)} instead.`}function wt(R,S){return S.some(F=>F.kind===R.kind)}function Ie(R,S){return S.some(F=>F==="null"?R===null:F==="array"?Array.isArray(R):F==="object"?R&&!Array.isArray(R)&&typeof R=="object":F===typeof R)}function xe(R,S){return R.kind==="array"&&S.kind==="array"?R.itemType.kind===S.itemType.kind&&typeof R.N=="number":R.kind===S.kind}let Ce=.96422,vt=.82521,nr=4/29,ir=6/29,pr=3*ir*ir,oi=ir*ir*ir,di=Math.PI/180,Jr=180/Math.PI;function fi(R){return(R%=360)<0&&(R+=360),R}function Hi([R,S,F,W]){let te,fe,pe=wn((.2225045*(R=Pn(R))+.7168786*(S=Pn(S))+.0606169*(F=Pn(F)))/1);R===S&&S===F?te=fe=pe:(te=wn((.4360747*R+.3850649*S+.1430804*F)/Ce),fe=wn((.0139322*R+.0971045*S+.7141733*F)/vt));let ze=116*pe-16;return[ze<0?0:ze,500*(te-pe),200*(pe-fe),W]}function Pn(R){return R<=.04045?R/12.92:Math.pow((R+.055)/1.055,2.4)}function wn(R){return R>oi?Math.pow(R,1/3):R/pr+nr}function pn([R,S,F,W]){let te=(R+16)/116,fe=isNaN(S)?te:te+S/500,pe=isNaN(F)?te:te-F/200;return te=1*kn(te),fe=Ce*kn(fe),pe=vt*kn(pe),[Vn(3.1338561*fe-1.6168667*te-.4906146*pe),Vn(-.9787684*fe+1.9161415*te+.033454*pe),Vn(.0719453*fe-.2289914*te+1.4052427*pe),W]}function Vn(R){return(R=R<=.00304?12.92*R:1.055*Math.pow(R,1/2.4)-.055)<0?0:R>1?1:R}function kn(R){return R>ir?R*R*R:pr*(R-nr)}function ea(R){return parseInt(R.padEnd(2,R),16)/255}function ua(R,S){return Vt(S?R/100:R,0,1)}function Vt(R,S,F){return Math.min(Math.max(S,R),F)}function _t(R){return!R.some(Number.isNaN)}let tr={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class ar{constructor(S,F,W,te=1,fe=!0){this.r=S,this.g=F,this.b=W,this.a=te,fe||(this.r*=te,this.g*=te,this.b*=te,te||this.overwriteGetter("rgb",[S,F,W,te]))}static parse(S){if(S instanceof ar)return S;if(typeof S!="string")return;let F=function(W){if((W=W.toLowerCase().trim())==="transparent")return[0,0,0,0];let te=tr[W];if(te){let[pe,ze,Ke]=te;return[pe/255,ze/255,Ke/255,1]}if(W.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(W)){let pe=W.length<6?1:2,ze=1;return[ea(W.slice(ze,ze+=pe)),ea(W.slice(ze,ze+=pe)),ea(W.slice(ze,ze+=pe)),ea(W.slice(ze,ze+pe)||"ff")]}if(W.startsWith("rgb")){let pe=W.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(pe){let[ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi,dn]=pe,Fi=[Lt||" ",mr||" ",ui].join("");if(Fi===" "||Fi===" /"||Fi===",,"||Fi===",,,"){let ln=[ut,fr,zr].join(""),An=ln==="%%%"?100:ln===""?255:0;if(An){let pa=[Vt(+Ke/An,0,1),Vt(+Qt/An,0,1),Vt(+Lr/An,0,1),yi?ua(+yi,dn):1];if(_t(pa))return pa}}return}}let fe=W.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(fe){let[pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr]=fe,zr=[Ke||" ",Lt||" ",fr].join("");if(zr===" "||zr===" /"||zr===",,"||zr===",,,"){let ui=[+ze,Vt(+ut,0,100),Vt(+Qt,0,100),mr?ua(+mr,Lr):1];if(_t(ui))return function([yi,dn,Fi,ln]){function An(pa){let ro=(pa+yi/30)%12,Vo=dn*Math.min(Fi,1-Fi);return Fi-Vo*Math.max(-1,Math.min(ro-3,9-ro,1))}return yi=fi(yi),dn/=100,Fi/=100,[An(0),An(8),An(4),ln]}(ui)}}}(S);return F?new ar(...F,!1):void 0}get rgb(){let{r:S,g:F,b:W,a:te}=this,fe=te||1/0;return this.overwriteGetter("rgb",[S/fe,F/fe,W/fe,te])}get hcl(){return this.overwriteGetter("hcl",function(S){let[F,W,te,fe]=Hi(S),pe=Math.sqrt(W*W+te*te);return[Math.round(1e4*pe)?fi(Math.atan2(te,W)*Jr):NaN,pe,F,fe]}(this.rgb))}get lab(){return this.overwriteGetter("lab",Hi(this.rgb))}overwriteGetter(S,F){return Object.defineProperty(this,S,{value:F}),F}toString(){let[S,F,W,te]=this.rgb;return`rgba(${[S,F,W].map(fe=>Math.round(255*fe)).join(",")},${te})`}}ar.black=new ar(0,0,0,1),ar.white=new ar(1,1,1,1),ar.transparent=new ar(0,0,0,0),ar.red=new ar(1,0,0,1);class Er{constructor(S,F,W){this.sensitivity=S?F?"variant":"case":F?"accent":"base",this.locale=W,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(S,F){return this.collator.compare(S,F)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Zr{constructor(S,F,W,te,fe){this.text=S,this.image=F,this.scale=W,this.fontStack=te,this.textColor=fe}}class ri{constructor(S){this.sections=S}static fromString(S){return new ri([new Zr(S,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(S=>S.text.length!==0||S.image&&S.image.name.length!==0)}static factory(S){return S instanceof ri?S:ri.fromString(S)}toString(){return this.sections.length===0?"":this.sections.map(S=>S.text).join("")}}class $r{constructor(S){this.values=S.slice()}static parse(S){if(S instanceof $r)return S;if(typeof S=="number")return new $r([S,S,S,S]);if(Array.isArray(S)&&!(S.length<1||S.length>4)){for(let F of S)if(typeof F!="number")return;switch(S.length){case 1:S=[S[0],S[0],S[0],S[0]];break;case 2:S=[S[0],S[1],S[0],S[1]];break;case 3:S=[S[0],S[1],S[2],S[1]]}return new $r(S)}}toString(){return JSON.stringify(this.values)}}let zi=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class Ji{constructor(S){this.values=S.slice()}static parse(S){if(S instanceof Ji)return S;if(Array.isArray(S)&&!(S.length<1)&&S.length%2==0){for(let F=0;F=0&&R<=255&&typeof S=="number"&&S>=0&&S<=255&&typeof F=="number"&&F>=0&&F<=255?W===void 0||typeof W=="number"&&W>=0&&W<=1?null:`Invalid rgba value [${[R,S,F,W].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof W=="number"?[R,S,F,W]:[R,S,F]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function yn(R){if(R===null||typeof R=="string"||typeof R=="boolean"||typeof R=="number"||R instanceof ar||R instanceof Er||R instanceof ri||R instanceof $r||R instanceof Ji||R instanceof en)return!0;if(Array.isArray(R)){for(let S of R)if(!yn(S))return!1;return!0}if(typeof R=="object"){for(let S in R)if(!yn(R[S]))return!1;return!0}return!1}function Mn(R){if(R===null)return Ut;if(typeof R=="string")return bt;if(typeof R=="boolean")return yt;if(typeof R=="number")return Ft;if(R instanceof ar)return Yt;if(R instanceof Er)return Rr;if(R instanceof ri)return ei;if(R instanceof $r)return Wr;if(R instanceof Ji)return dt;if(R instanceof en)return Ur;if(Array.isArray(R)){let S=R.length,F;for(let W of R){let te=Mn(W);if(F){if(F===te)continue;F=Tr;break}F=te}return Ge(F||Tr,S)}return lr}function Ba(R){let S=typeof R;return R===null?"":S==="string"||S==="number"||S==="boolean"?String(R):R instanceof ar||R instanceof ri||R instanceof $r||R instanceof Ji||R instanceof en?R.toString():JSON.stringify(R)}class la{constructor(S,F){this.type=S,this.value=F}static parse(S,F){if(S.length!==2)return F.error(`'literal' expression requires exactly one argument, but found ${S.length-1} instead.`);if(!yn(S[1]))return F.error("invalid value");let W=S[1],te=Mn(W),fe=F.expectedType;return te.kind!=="array"||te.N!==0||!fe||fe.kind!=="array"||typeof fe.N=="number"&&fe.N!==0||(te=fe),new la(te,W)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class ma{constructor(S){this.name="ExpressionEvaluationError",this.message=S}toJSON(){return this.message}}let Wa={string:bt,number:Ft,boolean:yt,object:lr};class Fa{constructor(S,F){this.type=S,this.args=F}static parse(S,F){if(S.length<2)return F.error("Expected at least one argument.");let W,te=1,fe=S[0];if(fe==="array"){let ze,Ke;if(S.length>2){let ut=S[1];if(typeof ut!="string"||!(ut in Wa)||ut==="object")return F.error('The item type argument of "array" must be one of string, number, boolean',1);ze=Wa[ut],te++}else ze=Tr;if(S.length>3){if(S[2]!==null&&(typeof S[2]!="number"||S[2]<0||S[2]!==Math.floor(S[2])))return F.error('The length argument to "array" must be a positive integer literal',2);Ke=S[2],te++}W=Ge(ze,Ke)}else{if(!Wa[fe])throw new Error(`Types doesn't contain name = ${fe}`);W=Wa[fe]}let pe=[];for(;teS.outputDefined())}}let Wo={"to-boolean":yt,"to-color":Yt,"to-number":Ft,"to-string":bt};class da{constructor(S,F){this.type=S,this.args=F}static parse(S,F){if(S.length<2)return F.error("Expected at least one argument.");let W=S[0];if(!Wo[W])throw new Error(`Can't parse ${W} as it is not part of the known types`);if((W==="to-boolean"||W==="to-string")&&S.length!==2)return F.error("Expected one argument.");let te=Wo[W],fe=[];for(let pe=1;pe4?`Invalid rbga value ${JSON.stringify(F)}: expected an array containing either three or four numeric values.`:cn(F[0],F[1],F[2],F[3]),!W))return new ar(F[0]/255,F[1]/255,F[2]/255,F[3])}throw new ma(W||`Could not parse color from value '${typeof F=="string"?F:JSON.stringify(F)}'`)}case"padding":{let F;for(let W of this.args){F=W.evaluate(S);let te=$r.parse(F);if(te)return te}throw new ma(`Could not parse padding from value '${typeof F=="string"?F:JSON.stringify(F)}'`)}case"variableAnchorOffsetCollection":{let F;for(let W of this.args){F=W.evaluate(S);let te=Ji.parse(F);if(te)return te}throw new ma(`Could not parse variableAnchorOffsetCollection from value '${typeof F=="string"?F:JSON.stringify(F)}'`)}case"number":{let F=null;for(let W of this.args){if(F=W.evaluate(S),F===null)return 0;let te=Number(F);if(!isNaN(te))return te}throw new ma(`Could not convert ${JSON.stringify(F)} to number.`)}case"formatted":return ri.fromString(Ba(this.args[0].evaluate(S)));case"resolvedImage":return en.fromString(Ba(this.args[0].evaluate(S)));default:return Ba(this.args[0].evaluate(S))}}eachChild(S){this.args.forEach(S)}outputDefined(){return this.args.every(S=>S.outputDefined())}}let Wn=["Unknown","Point","LineString","Polygon"];class Ga{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Wn[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(S){let F=this._parseColorCache[S];return F||(F=this._parseColorCache[S]=ar.parse(S)),F}}class vo{constructor(S,F,W=[],te,fe=new er,pe=[]){this.registry=S,this.path=W,this.key=W.map(ze=>`[${ze}]`).join(""),this.scope=fe,this.errors=pe,this.expectedType=te,this._isConstant=F}parse(S,F,W,te,fe={}){return F?this.concat(F,W,te)._parse(S,fe):this._parse(S,fe)}_parse(S,F){function W(te,fe,pe){return pe==="assert"?new Fa(fe,[te]):pe==="coerce"?new da(fe,[te]):te}if(S!==null&&typeof S!="string"&&typeof S!="boolean"&&typeof S!="number"||(S=["literal",S]),Array.isArray(S)){if(S.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let te=S[0];if(typeof te!="string")return this.error(`Expression name must be a string, but found ${typeof te} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let fe=this.registry[te];if(fe){let pe=fe.parse(S,this);if(!pe)return null;if(this.expectedType){let ze=this.expectedType,Ke=pe.type;if(ze.kind!=="string"&&ze.kind!=="number"&&ze.kind!=="boolean"&&ze.kind!=="object"&&ze.kind!=="array"||Ke.kind!=="value")if(ze.kind!=="color"&&ze.kind!=="formatted"&&ze.kind!=="resolvedImage"||Ke.kind!=="value"&&Ke.kind!=="string")if(ze.kind!=="padding"||Ke.kind!=="value"&&Ke.kind!=="number"&&Ke.kind!=="array")if(ze.kind!=="variableAnchorOffsetCollection"||Ke.kind!=="value"&&Ke.kind!=="array"){if(this.checkSubtype(ze,Ke))return null}else pe=W(pe,ze,F.typeAnnotation||"coerce");else pe=W(pe,ze,F.typeAnnotation||"coerce");else pe=W(pe,ze,F.typeAnnotation||"coerce");else pe=W(pe,ze,F.typeAnnotation||"assert")}if(!(pe instanceof la)&&pe.type.kind!=="resolvedImage"&&this._isConstant(pe)){let ze=new Ga;try{pe=new la(pe.type,pe.evaluate(ze))}catch(Ke){return this.error(Ke.message),null}}return pe}return this.error(`Unknown expression "${te}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(S===void 0?"'undefined' value invalid. Use null instead.":typeof S=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof S} instead.`)}concat(S,F,W){let te=typeof S=="number"?this.path.concat(S):this.path,fe=W?this.scope.concat(W):this.scope;return new vo(this.registry,this._isConstant,te,F||null,fe,this.errors)}error(S,...F){let W=`${this.key}${F.map(te=>`[${te}]`).join("")}`;this.errors.push(new Et(W,S))}checkSubtype(S,F){let W=$e(S,F);return W&&this.error(W),W}}class jn{constructor(S,F){this.type=F.type,this.bindings=[].concat(S),this.result=F}evaluate(S){return this.result.evaluate(S)}eachChild(S){for(let F of this.bindings)S(F[1]);S(this.result)}static parse(S,F){if(S.length<4)return F.error(`Expected at least 3 arguments, but found ${S.length-1} instead.`);let W=[];for(let fe=1;fe=W.length)throw new ma(`Array index out of bounds: ${F} > ${W.length-1}.`);if(F!==Math.floor(F))throw new ma(`Array index must be an integer, but found ${F} instead.`);return W[F]}eachChild(S){S(this.index),S(this.input)}outputDefined(){return!1}}class Qr{constructor(S,F){this.type=yt,this.needle=S,this.haystack=F}static parse(S,F){if(S.length!==3)return F.error(`Expected 2 arguments, but found ${S.length-1} instead.`);let W=F.parse(S[1],1,Tr),te=F.parse(S[2],2,Tr);return W&&te?wt(W.type,[yt,bt,Ft,Ut,Tr])?new Qr(W,te):F.error(`Expected first argument to be of type boolean, string, number or null, but found ${Je(W.type)} instead`):null}evaluate(S){let F=this.needle.evaluate(S),W=this.haystack.evaluate(S);if(!W)return!1;if(!Ie(F,["boolean","string","number","null"]))throw new ma(`Expected first argument to be of type boolean, string, number or null, but found ${Je(Mn(F))} instead.`);if(!Ie(W,["string","array"]))throw new ma(`Expected second argument to be of type array or string, but found ${Je(Mn(W))} instead.`);return W.indexOf(F)>=0}eachChild(S){S(this.needle),S(this.haystack)}outputDefined(){return!0}}class pi{constructor(S,F,W){this.type=Ft,this.needle=S,this.haystack=F,this.fromIndex=W}static parse(S,F){if(S.length<=2||S.length>=5)return F.error(`Expected 3 or 4 arguments, but found ${S.length-1} instead.`);let W=F.parse(S[1],1,Tr),te=F.parse(S[2],2,Tr);if(!W||!te)return null;if(!wt(W.type,[yt,bt,Ft,Ut,Tr]))return F.error(`Expected first argument to be of type boolean, string, number or null, but found ${Je(W.type)} instead`);if(S.length===4){let fe=F.parse(S[3],3,Ft);return fe?new pi(W,te,fe):null}return new pi(W,te)}evaluate(S){let F=this.needle.evaluate(S),W=this.haystack.evaluate(S);if(!Ie(F,["boolean","string","number","null"]))throw new ma(`Expected first argument to be of type boolean, string, number or null, but found ${Je(Mn(F))} instead.`);let te;if(this.fromIndex&&(te=this.fromIndex.evaluate(S)),Ie(W,["string"])){let fe=W.indexOf(F,te);return fe===-1?-1:[...W.slice(0,fe)].length}if(Ie(W,["array"]))return W.indexOf(F,te);throw new ma(`Expected second argument to be of type array or string, but found ${Je(Mn(W))} instead.`)}eachChild(S){S(this.needle),S(this.haystack),this.fromIndex&&S(this.fromIndex)}outputDefined(){return!1}}class fn{constructor(S,F,W,te,fe,pe){this.inputType=S,this.type=F,this.input=W,this.cases=te,this.outputs=fe,this.otherwise=pe}static parse(S,F){if(S.length<5)return F.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if(S.length%2!=1)return F.error("Expected an even number of arguments.");let W,te;F.expectedType&&F.expectedType.kind!=="value"&&(te=F.expectedType);let fe={},pe=[];for(let ut=2;utNumber.MAX_SAFE_INTEGER)return fr.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof Lr=="number"&&Math.floor(Lr)!==Lr)return fr.error("Numeric branch labels must be integer values.");if(W){if(fr.checkSubtype(W,Mn(Lr)))return null}else W=Mn(Lr);if(fe[String(Lr)]!==void 0)return fr.error("Branch labels must be unique.");fe[String(Lr)]=pe.length}let mr=F.parse(Qt,ut,te);if(!mr)return null;te=te||mr.type,pe.push(mr)}let ze=F.parse(S[1],1,Tr);if(!ze)return null;let Ke=F.parse(S[S.length-1],S.length-1,te);return Ke?ze.type.kind!=="value"&&F.concat(1).checkSubtype(W,ze.type)?null:new fn(W,te,ze,fe,pe,Ke):null}evaluate(S){let F=this.input.evaluate(S);return(Mn(F)===this.inputType&&this.outputs[this.cases[F]]||this.otherwise).evaluate(S)}eachChild(S){S(this.input),this.outputs.forEach(S),S(this.otherwise)}outputDefined(){return this.outputs.every(S=>S.outputDefined())&&this.otherwise.outputDefined()}}class Sn{constructor(S,F,W){this.type=S,this.branches=F,this.otherwise=W}static parse(S,F){if(S.length<4)return F.error(`Expected at least 3 arguments, but found only ${S.length-1}.`);if(S.length%2!=0)return F.error("Expected an odd number of arguments.");let W;F.expectedType&&F.expectedType.kind!=="value"&&(W=F.expectedType);let te=[];for(let pe=1;peF.outputDefined())&&this.otherwise.outputDefined()}}class En{constructor(S,F,W,te){this.type=S,this.input=F,this.beginIndex=W,this.endIndex=te}static parse(S,F){if(S.length<=2||S.length>=5)return F.error(`Expected 3 or 4 arguments, but found ${S.length-1} instead.`);let W=F.parse(S[1],1,Tr),te=F.parse(S[2],2,Ft);if(!W||!te)return null;if(!wt(W.type,[Ge(Tr),bt,Tr]))return F.error(`Expected first argument to be of type array or string, but found ${Je(W.type)} instead`);if(S.length===4){let fe=F.parse(S[3],3,Ft);return fe?new En(W.type,W,te,fe):null}return new En(W.type,W,te)}evaluate(S){let F=this.input.evaluate(S),W=this.beginIndex.evaluate(S),te;if(this.endIndex&&(te=this.endIndex.evaluate(S)),Ie(F,["string"]))return[...F].slice(W,te).join("");if(Ie(F,["array"]))return F.slice(W,te);throw new ma(`Expected first argument to be of type array or string, but found ${Je(Mn(F))} instead.`)}eachChild(S){S(this.input),S(this.beginIndex),this.endIndex&&S(this.endIndex)}outputDefined(){return!1}}function ki(R,S){let F=R.length-1,W,te,fe=0,pe=F,ze=0;for(;fe<=pe;)if(ze=Math.floor((fe+pe)/2),W=R[ze],te=R[ze+1],W<=S){if(ze===F||SS))throw new ma("Input is not a number.");pe=ze-1}return 0}class _n{constructor(S,F,W){this.type=S,this.input=F,this.labels=[],this.outputs=[];for(let[te,fe]of W)this.labels.push(te),this.outputs.push(fe)}static parse(S,F){if(S.length-1<4)return F.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if((S.length-1)%2!=0)return F.error("Expected an even number of arguments.");let W=F.parse(S[1],1,Ft);if(!W)return null;let te=[],fe=null;F.expectedType&&F.expectedType.kind!=="value"&&(fe=F.expectedType);for(let pe=1;pe=ze)return F.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',ut);let Qt=F.parse(Ke,Lt,fe);if(!Qt)return null;fe=fe||Qt.type,te.push([ze,Qt])}return new _n(fe,W,te)}evaluate(S){let F=this.labels,W=this.outputs;if(F.length===1)return W[0].evaluate(S);let te=this.input.evaluate(S);if(te<=F[0])return W[0].evaluate(S);let fe=F.length;return te>=F[fe-1]?W[fe-1].evaluate(S):W[ki(F,te)].evaluate(S)}eachChild(S){S(this.input);for(let F of this.outputs)S(F)}outputDefined(){return this.outputs.every(S=>S.outputDefined())}}function ya(R){return R&&R.__esModule&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R}var Jn=Ma;function Ma(R,S,F,W){this.cx=3*R,this.bx=3*(F-R)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*S,this.by=3*(W-S)-this.cy,this.ay=1-this.cy-this.by,this.p1x=R,this.p1y=S,this.p2x=F,this.p2y=W}Ma.prototype={sampleCurveX:function(R){return((this.ax*R+this.bx)*R+this.cx)*R},sampleCurveY:function(R){return((this.ay*R+this.by)*R+this.cy)*R},sampleCurveDerivativeX:function(R){return(3*this.ax*R+2*this.bx)*R+this.cx},solveCurveX:function(R,S){if(S===void 0&&(S=1e-6),R<0)return 0;if(R>1)return 1;for(var F=R,W=0;W<8;W++){var te=this.sampleCurveX(F)-R;if(Math.abs(te)te?pe=F:ze=F,F=.5*(ze-pe)+pe;return F},solve:function(R,S){return this.sampleCurveY(this.solveCurveX(R,S))}};var _o=ya(Jn);function No(R,S,F){return R+F*(S-R)}function po(R,S,F){return R.map((W,te)=>No(W,S[te],F))}let Lo={number:No,color:function(R,S,F,W="rgb"){switch(W){case"rgb":{let[te,fe,pe,ze]=po(R.rgb,S.rgb,F);return new ar(te,fe,pe,ze,!1)}case"hcl":{let[te,fe,pe,ze]=R.hcl,[Ke,ut,Lt,Qt]=S.hcl,fr,mr;if(isNaN(te)||isNaN(Ke))isNaN(te)?isNaN(Ke)?fr=NaN:(fr=Ke,pe!==1&&pe!==0||(mr=ut)):(fr=te,Lt!==1&&Lt!==0||(mr=fe));else{let dn=Ke-te;Ke>te&&dn>180?dn-=360:Ke180&&(dn+=360),fr=te+F*dn}let[Lr,zr,ui,yi]=function([dn,Fi,ln,An]){return dn=isNaN(dn)?0:dn*di,pn([ln,Math.cos(dn)*Fi,Math.sin(dn)*Fi,An])}([fr,mr!=null?mr:No(fe,ut,F),No(pe,Lt,F),No(ze,Qt,F)]);return new ar(Lr,zr,ui,yi,!1)}case"lab":{let[te,fe,pe,ze]=pn(po(R.lab,S.lab,F));return new ar(te,fe,pe,ze,!1)}}},array:po,padding:function(R,S,F){return new $r(po(R.values,S.values,F))},variableAnchorOffsetCollection:function(R,S,F){let W=R.values,te=S.values;if(W.length!==te.length)throw new ma(`Cannot interpolate values of different length. from: ${R.toString()}, to: ${S.toString()}`);let fe=[];for(let pe=0;petypeof Lt!="number"||Lt<0||Lt>1))return F.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);te={name:"cubic-bezier",controlPoints:ut}}}if(S.length-1<4)return F.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if((S.length-1)%2!=0)return F.error("Expected an even number of arguments.");if(fe=F.parse(fe,2,Ft),!fe)return null;let ze=[],Ke=null;W==="interpolate-hcl"||W==="interpolate-lab"?Ke=Yt:F.expectedType&&F.expectedType.kind!=="value"&&(Ke=F.expectedType);for(let ut=0;ut=Lt)return F.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',fr);let Lr=F.parse(Qt,mr,Ke);if(!Lr)return null;Ke=Ke||Lr.type,ze.push([Lt,Lr])}return xe(Ke,Ft)||xe(Ke,Yt)||xe(Ke,Wr)||xe(Ke,dt)||xe(Ke,Ge(Ft))?new Co(Ke,W,te,fe,ze):F.error(`Type ${Je(Ke)} is not interpolatable.`)}evaluate(S){let F=this.labels,W=this.outputs;if(F.length===1)return W[0].evaluate(S);let te=this.input.evaluate(S);if(te<=F[0])return W[0].evaluate(S);let fe=F.length;if(te>=F[fe-1])return W[fe-1].evaluate(S);let pe=ki(F,te),ze=Co.interpolationFactor(this.interpolation,te,F[pe],F[pe+1]),Ke=W[pe].evaluate(S),ut=W[pe+1].evaluate(S);switch(this.operator){case"interpolate":return Lo[this.type.kind](Ke,ut,ze);case"interpolate-hcl":return Lo.color(Ke,ut,ze,"hcl");case"interpolate-lab":return Lo.color(Ke,ut,ze,"lab")}}eachChild(S){S(this.input);for(let F of this.outputs)S(F)}outputDefined(){return this.outputs.every(S=>S.outputDefined())}}function Fs(R,S,F,W){let te=W-F,fe=R-F;return te===0?0:S===1?fe/te:(Math.pow(S,fe)-1)/(Math.pow(S,te)-1)}class zs{constructor(S,F){this.type=S,this.args=F}static parse(S,F){if(S.length<2)return F.error("Expectected at least one argument.");let W=null,te=F.expectedType;te&&te.kind!=="value"&&(W=te);let fe=[];for(let ze of S.slice(1)){let Ke=F.parse(ze,1+fe.length,W,void 0,{typeAnnotation:"omit"});if(!Ke)return null;W=W||Ke.type,fe.push(Ke)}if(!W)throw new Error("No output type");let pe=te&&fe.some(ze=>$e(te,ze.type));return new zs(pe?Tr:W,fe)}evaluate(S){let F,W=null,te=0;for(let fe of this.args)if(te++,W=fe.evaluate(S),W&&W instanceof en&&!W.available&&(F||(F=W.name),W=null,te===this.args.length&&(W=F)),W!==null)break;return W}eachChild(S){this.args.forEach(S)}outputDefined(){return this.args.every(S=>S.outputDefined())}}function ul(R,S){return R==="=="||R==="!="?S.kind==="boolean"||S.kind==="string"||S.kind==="number"||S.kind==="null"||S.kind==="value":S.kind==="string"||S.kind==="number"||S.kind==="value"}function cl(R,S,F,W){return W.compare(S,F)===0}function Fl(R,S,F){let W=R!=="=="&&R!=="!=";return class BHe{constructor(fe,pe,ze){this.type=yt,this.lhs=fe,this.rhs=pe,this.collator=ze,this.hasUntypedArgument=fe.type.kind==="value"||pe.type.kind==="value"}static parse(fe,pe){if(fe.length!==3&&fe.length!==4)return pe.error("Expected two or three arguments.");let ze=fe[0],Ke=pe.parse(fe[1],1,Tr);if(!Ke)return null;if(!ul(ze,Ke.type))return pe.concat(1).error(`"${ze}" comparisons are not supported for type '${Je(Ke.type)}'.`);let ut=pe.parse(fe[2],2,Tr);if(!ut)return null;if(!ul(ze,ut.type))return pe.concat(2).error(`"${ze}" comparisons are not supported for type '${Je(ut.type)}'.`);if(Ke.type.kind!==ut.type.kind&&Ke.type.kind!=="value"&&ut.type.kind!=="value")return pe.error(`Cannot compare types '${Je(Ke.type)}' and '${Je(ut.type)}'.`);W&&(Ke.type.kind==="value"&&ut.type.kind!=="value"?Ke=new Fa(ut.type,[Ke]):Ke.type.kind!=="value"&&ut.type.kind==="value"&&(ut=new Fa(Ke.type,[ut])));let Lt=null;if(fe.length===4){if(Ke.type.kind!=="string"&&ut.type.kind!=="string"&&Ke.type.kind!=="value"&&ut.type.kind!=="value")return pe.error("Cannot use collator to compare non-string types.");if(Lt=pe.parse(fe[3],3,Rr),!Lt)return null}return new BHe(Ke,ut,Lt)}evaluate(fe){let pe=this.lhs.evaluate(fe),ze=this.rhs.evaluate(fe);if(W&&this.hasUntypedArgument){let Ke=Mn(pe),ut=Mn(ze);if(Ke.kind!==ut.kind||Ke.kind!=="string"&&Ke.kind!=="number")throw new ma(`Expected arguments for "${R}" to be (string, string) or (number, number), but found (${Ke.kind}, ${ut.kind}) instead.`)}if(this.collator&&!W&&this.hasUntypedArgument){let Ke=Mn(pe),ut=Mn(ze);if(Ke.kind!=="string"||ut.kind!=="string")return S(fe,pe,ze)}return this.collator?F(fe,pe,ze,this.collator.evaluate(fe)):S(fe,pe,ze)}eachChild(fe){fe(this.lhs),fe(this.rhs),this.collator&&fe(this.collator)}outputDefined(){return!0}}}let cs=Fl("==",function(R,S,F){return S===F},cl),nl=Fl("!=",function(R,S,F){return S!==F},function(R,S,F,W){return!cl(0,S,F,W)}),Ss=Fl("<",function(R,S,F){return S",function(R,S,F){return S>F},function(R,S,F,W){return W.compare(S,F)>0}),Js=Fl("<=",function(R,S,F){return S<=F},function(R,S,F,W){return W.compare(S,F)<=0}),Os=Fl(">=",function(R,S,F){return S>=F},function(R,S,F,W){return W.compare(S,F)>=0});class Io{constructor(S,F,W){this.type=Rr,this.locale=W,this.caseSensitive=S,this.diacriticSensitive=F}static parse(S,F){if(S.length!==2)return F.error("Expected one argument.");let W=S[1];if(typeof W!="object"||Array.isArray(W))return F.error("Collator options argument must be an object.");let te=F.parse(W["case-sensitive"]!==void 0&&W["case-sensitive"],1,yt);if(!te)return null;let fe=F.parse(W["diacritic-sensitive"]!==void 0&&W["diacritic-sensitive"],1,yt);if(!fe)return null;let pe=null;return W.locale&&(pe=F.parse(W.locale,1,bt),!pe)?null:new Io(te,fe,pe)}evaluate(S){return new Er(this.caseSensitive.evaluate(S),this.diacriticSensitive.evaluate(S),this.locale?this.locale.evaluate(S):null)}eachChild(S){S(this.caseSensitive),S(this.diacriticSensitive),this.locale&&S(this.locale)}outputDefined(){return!1}}class us{constructor(S,F,W,te,fe){this.type=bt,this.number=S,this.locale=F,this.currency=W,this.minFractionDigits=te,this.maxFractionDigits=fe}static parse(S,F){if(S.length!==3)return F.error("Expected two arguments.");let W=F.parse(S[1],1,Ft);if(!W)return null;let te=S[2];if(typeof te!="object"||Array.isArray(te))return F.error("NumberFormat options argument must be an object.");let fe=null;if(te.locale&&(fe=F.parse(te.locale,1,bt),!fe))return null;let pe=null;if(te.currency&&(pe=F.parse(te.currency,1,bt),!pe))return null;let ze=null;if(te["min-fraction-digits"]&&(ze=F.parse(te["min-fraction-digits"],1,Ft),!ze))return null;let Ke=null;return te["max-fraction-digits"]&&(Ke=F.parse(te["max-fraction-digits"],1,Ft),!Ke)?null:new us(W,fe,pe,ze,Ke)}evaluate(S){return new Intl.NumberFormat(this.locale?this.locale.evaluate(S):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(S):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(S):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(S):void 0}).format(this.number.evaluate(S))}eachChild(S){S(this.number),this.locale&&S(this.locale),this.currency&&S(this.currency),this.minFractionDigits&&S(this.minFractionDigits),this.maxFractionDigits&&S(this.maxFractionDigits)}outputDefined(){return!1}}class Zl{constructor(S){this.type=ei,this.sections=S}static parse(S,F){if(S.length<2)return F.error("Expected at least one argument.");let W=S[1];if(!Array.isArray(W)&&typeof W=="object")return F.error("First argument must be an image or text section.");let te=[],fe=!1;for(let pe=1;pe<=S.length-1;++pe){let ze=S[pe];if(fe&&typeof ze=="object"&&!Array.isArray(ze)){fe=!1;let Ke=null;if(ze["font-scale"]&&(Ke=F.parse(ze["font-scale"],1,Ft),!Ke))return null;let ut=null;if(ze["text-font"]&&(ut=F.parse(ze["text-font"],1,Ge(bt)),!ut))return null;let Lt=null;if(ze["text-color"]&&(Lt=F.parse(ze["text-color"],1,Yt),!Lt))return null;let Qt=te[te.length-1];Qt.scale=Ke,Qt.font=ut,Qt.textColor=Lt}else{let Ke=F.parse(S[pe],1,Tr);if(!Ke)return null;let ut=Ke.type.kind;if(ut!=="string"&&ut!=="value"&&ut!=="null"&&ut!=="resolvedImage")return F.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");fe=!0,te.push({content:Ke,scale:null,font:null,textColor:null})}}return new Zl(te)}evaluate(S){return new ri(this.sections.map(F=>{let W=F.content.evaluate(S);return Mn(W)===Ur?new Zr("",W,null,null,null):new Zr(Ba(W),null,F.scale?F.scale.evaluate(S):null,F.font?F.font.evaluate(S).join(","):null,F.textColor?F.textColor.evaluate(S):null)}))}eachChild(S){for(let F of this.sections)S(F.content),F.scale&&S(F.scale),F.font&&S(F.font),F.textColor&&S(F.textColor)}outputDefined(){return!1}}class Su{constructor(S){this.type=Ur,this.input=S}static parse(S,F){if(S.length!==2)return F.error("Expected two arguments.");let W=F.parse(S[1],1,bt);return W?new Su(W):F.error("No image name provided.")}evaluate(S){let F=this.input.evaluate(S),W=en.fromString(F);return W&&S.availableImages&&(W.available=S.availableImages.indexOf(F)>-1),W}eachChild(S){S(this.input)}outputDefined(){return!1}}class nc{constructor(S){this.type=Ft,this.input=S}static parse(S,F){if(S.length!==2)return F.error(`Expected 1 argument, but found ${S.length-1} instead.`);let W=F.parse(S[1],1);return W?W.type.kind!=="array"&&W.type.kind!=="string"&&W.type.kind!=="value"?F.error(`Expected argument of type string or array, but found ${Je(W.type)} instead.`):new nc(W):null}evaluate(S){let F=this.input.evaluate(S);if(typeof F=="string")return[...F].length;if(Array.isArray(F))return F.length;throw new ma(`Expected value to be of type string or array, but found ${Je(Mn(F))} instead.`)}eachChild(S){S(this.input)}outputDefined(){return!1}}let ws=8192;function Fn(R,S){let F=(180+R[0])/360,W=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+R[1]*Math.PI/360)))/360,te=Math.pow(2,S.z);return[Math.round(F*te*ws),Math.round(W*te*ws)]}function _a(R,S){let F=Math.pow(2,S.z);return[(te=(R[0]/ws+S.x)/F,360*te-180),(W=(R[1]/ws+S.y)/F,360/Math.PI*Math.atan(Math.exp((180-360*W)*Math.PI/180))-90)];var W,te}function Vu(R,S){R[0]=Math.min(R[0],S[0]),R[1]=Math.min(R[1],S[1]),R[2]=Math.max(R[2],S[0]),R[3]=Math.max(R[3],S[1])}function zl(R,S){return!(R[0]<=S[0]||R[2]>=S[2]||R[1]<=S[1]||R[3]>=S[3])}function xo(R,S,F){let W=R[0]-S[0],te=R[1]-S[1],fe=R[0]-F[0],pe=R[1]-F[1];return W*pe-fe*te==0&&W*fe<=0&&te*pe<=0}function Yl(R,S,F,W){return(te=[W[0]-F[0],W[1]-F[1]])[0]*(fe=[S[0]-R[0],S[1]-R[1]])[1]-te[1]*fe[0]!=0&&!(!qo(R,S,F,W)||!qo(F,W,R,S));var te,fe}function Us(R,S,F){for(let W of F)for(let te=0;te(te=R)[1]!=(pe=ze[Ke+1])[1]>te[1]&&te[0]<(pe[0]-fe[0])*(te[1]-fe[1])/(pe[1]-fe[1])+fe[0]&&(W=!W)}var te,fe,pe;return W}function ac(R,S){for(let F of S)if(Hl(R,F))return!0;return!1}function aa(R,S){for(let F of R)if(!Hl(F,S))return!1;for(let F=0;F0&&ze<0||pe<0&&ze>0}function Ol(R,S,F){let W=[];for(let te=0;teF[2]){let te=.5*W,fe=R[0]-F[0]>te?-W:F[0]-R[0]>te?W:0;fe===0&&(fe=R[0]-F[2]>te?-W:F[2]-R[0]>te?W:0),R[0]+=fe}Vu(S,R)}function rf(R,S,F,W){let te=Math.pow(2,W.z)*ws,fe=[W.x*ws,W.y*ws],pe=[];for(let ze of R)for(let Ke of ze){let ut=[Ke.x+fe[0],Ke.y+fe[1]];Do(ut,S,F,te),pe.push(ut)}return pe}function Uf(R,S,F,W){let te=Math.pow(2,W.z)*ws,fe=[W.x*ws,W.y*ws],pe=[];for(let Ke of R){let ut=[];for(let Lt of Ke){let Qt=[Lt.x+fe[0],Lt.y+fe[1]];Vu(S,Qt),ut.push(Qt)}pe.push(ut)}if(S[2]-S[0]<=te/2){(ze=S)[0]=ze[1]=1/0,ze[2]=ze[3]=-1/0;for(let Ke of pe)for(let ut of Ke)Do(ut,S,F,te)}var ze;return pe}class ml{constructor(S,F){this.type=yt,this.geojson=S,this.geometries=F}static parse(S,F){if(S.length!==2)return F.error(`'within' expression requires exactly one argument, but found ${S.length-1} instead.`);if(yn(S[1])){let W=S[1];if(W.type==="FeatureCollection"){let te=[];for(let fe of W.features){let{type:pe,coordinates:ze}=fe.geometry;pe==="Polygon"&&te.push(ze),pe==="MultiPolygon"&&te.push(...ze)}if(te.length)return new ml(W,{type:"MultiPolygon",coordinates:te})}else if(W.type==="Feature"){let te=W.geometry.type;if(te==="Polygon"||te==="MultiPolygon")return new ml(W,W.geometry)}else if(W.type==="Polygon"||W.type==="MultiPolygon")return new ml(W,W)}return F.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(S){if(S.geometry()!=null&&S.canonicalID()!=null){if(S.geometryType()==="Point")return function(F,W){let te=[1/0,1/0,-1/0,-1/0],fe=[1/0,1/0,-1/0,-1/0],pe=F.canonicalID();if(W.type==="Polygon"){let ze=Ol(W.coordinates,fe,pe),Ke=rf(F.geometry(),te,fe,pe);if(!zl(te,fe))return!1;for(let ut of Ke)if(!Hl(ut,ze))return!1}if(W.type==="MultiPolygon"){let ze=Pc(W.coordinates,fe,pe),Ke=rf(F.geometry(),te,fe,pe);if(!zl(te,fe))return!1;for(let ut of Ke)if(!ac(ut,ze))return!1}return!0}(S,this.geometries);if(S.geometryType()==="LineString")return function(F,W){let te=[1/0,1/0,-1/0,-1/0],fe=[1/0,1/0,-1/0,-1/0],pe=F.canonicalID();if(W.type==="Polygon"){let ze=Ol(W.coordinates,fe,pe),Ke=Uf(F.geometry(),te,fe,pe);if(!zl(te,fe))return!1;for(let ut of Ke)if(!aa(ut,ze))return!1}if(W.type==="MultiPolygon"){let ze=Pc(W.coordinates,fe,pe),Ke=Uf(F.geometry(),te,fe,pe);if(!zl(te,fe))return!1;for(let ut of Ke)if(!Oo(ut,ze))return!1}return!0}(S,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let Zc=class{constructor(R=[],S=(F,W)=>FW?1:0){if(this.data=R,this.length=this.data.length,this.compare=S,this.length>0)for(let F=(this.length>>1)-1;F>=0;F--)this._down(F)}push(R){this.data.push(R),this._up(this.length++)}pop(){if(this.length===0)return;let R=this.data[0],S=this.data.pop();return--this.length>0&&(this.data[0]=S,this._down(0)),R}peek(){return this.data[0]}_up(R){let{data:S,compare:F}=this,W=S[R];for(;R>0;){let te=R-1>>1,fe=S[te];if(F(W,fe)>=0)break;S[R]=fe,R=te}S[R]=W}_down(R){let{data:S,compare:F}=this,W=this.length>>1,te=S[R];for(;R=0)break;S[R]=S[fe],R=fe}S[R]=te}};function Kl(R,S,F,W,te){qs(R,S,F,W||R.length-1,te||oc)}function qs(R,S,F,W,te){for(;W>F;){if(W-F>600){var fe=W-F+1,pe=S-F+1,ze=Math.log(fe),Ke=.5*Math.exp(2*ze/3),ut=.5*Math.sqrt(ze*Ke*(fe-Ke)/fe)*(pe-fe/2<0?-1:1);qs(R,S,Math.max(F,Math.floor(S-pe*Ke/fe+ut)),Math.min(W,Math.floor(S+(fe-pe)*Ke/fe+ut)),te)}var Lt=R[S],Qt=F,fr=W;for(yu(R,F,S),te(R[W],Lt)>0&&yu(R,F,W);Qt0;)fr--}te(R[F],Lt)===0?yu(R,F,fr):yu(R,++fr,W),fr<=S&&(F=fr+1),S<=fr&&(W=fr-1)}}function yu(R,S,F){var W=R[S];R[S]=R[F],R[F]=W}function oc(R,S){return RS?1:0}function Cf(R,S){if(R.length<=1)return[R];let F=[],W,te;for(let fe of R){let pe=Nh(fe);pe!==0&&(fe.area=Math.abs(pe),te===void 0&&(te=pe<0),te===pe<0?(W&&F.push(W),W=[fe]):W.push(fe))}if(W&&F.push(W),S>1)for(let fe=0;fe1?(ut=S[Ke+1][0],Lt=S[Ke+1][1]):mr>0&&(ut+=Qt/this.kx*mr,Lt+=fr/this.ky*mr)),Qt=this.wrap(F[0]-ut)*this.kx,fr=(F[1]-Lt)*this.ky;let Lr=Qt*Qt+fr*fr;Lr180;)S-=360;return S}}function Jl(R,S){return S[0]-R[0]}function hl(R){return R[1]-R[0]+1}function lc(R,S){return R[1]>=R[0]&&R[1]R[1])return[null,null];let F=hl(R);if(S){if(F===2)return[R,null];let te=Math.floor(F/2);return[[R[0],R[0]+te],[R[0]+te,R[1]]]}if(F===1)return[R,null];let W=Math.floor(F/2)-1;return[[R[0],R[0]+W],[R[0]+W+1,R[1]]]}function Cs(R,S){if(!lc(S,R.length))return[1/0,1/0,-1/0,-1/0];let F=[1/0,1/0,-1/0,-1/0];for(let W=S[0];W<=S[1];++W)Vu(F,R[W]);return F}function js(R){let S=[1/0,1/0,-1/0,-1/0];for(let F of R)for(let W of F)Vu(S,W);return S}function Go(R){return R[0]!==-1/0&&R[1]!==-1/0&&R[2]!==1/0&&R[3]!==1/0}function gs(R,S,F){if(!Go(R)||!Go(S))return NaN;let W=0,te=0;return R[2]S[2]&&(W=R[0]-S[2]),R[1]>S[3]&&(te=R[1]-S[3]),R[3]=W)return W;if(zl(te,fe)){if(od(R,S))return 0}else if(od(S,R))return 0;let pe=1/0;for(let ze of R)for(let Ke=0,ut=ze.length,Lt=ut-1;Ke0;){let Ke=pe.pop();if(Ke[0]>=fe)continue;let ut=Ke[1],Lt=S?50:100;if(hl(ut)<=Lt){if(!lc(ut,R.length))return NaN;if(S){let Qt=Po(R,ut,F,W);if(isNaN(Qt)||Qt===0)return Qt;fe=Math.min(fe,Qt)}else for(let Qt=ut[0];Qt<=ut[1];++Qt){let fr=ad(R[Qt],F,W);if(fe=Math.min(fe,fr),fe===0)return 0}}else{let Qt=Fu(ut,S);Pa(pe,fe,W,R,ze,Qt[0]),Pa(pe,fe,W,R,ze,Qt[1])}}return fe}function bl(R,S,F,W,te,fe=1/0){let pe=Math.min(fe,te.distance(R[0],F[0]));if(pe===0)return pe;let ze=new Zc([[0,[0,R.length-1],[0,F.length-1]]],Jl);for(;ze.length>0;){let Ke=ze.pop();if(Ke[0]>=pe)continue;let ut=Ke[1],Lt=Ke[2],Qt=S?50:100,fr=W?50:100;if(hl(ut)<=Qt&&hl(Lt)<=fr){if(!lc(ut,R.length)&&lc(Lt,F.length))return NaN;let mr;if(S&&W)mr=Gu(R,ut,F,Lt,te),pe=Math.min(pe,mr);else if(S&&!W){let Lr=R.slice(ut[0],ut[1]+1);for(let zr=Lt[0];zr<=Lt[1];++zr)if(mr=uc(F[zr],Lr,te),pe=Math.min(pe,mr),pe===0)return pe}else if(!S&&W){let Lr=F.slice(Lt[0],Lt[1]+1);for(let zr=ut[0];zr<=ut[1];++zr)if(mr=uc(R[zr],Lr,te),pe=Math.min(pe,mr),pe===0)return pe}else mr=Bs(R,ut,F,Lt,te),pe=Math.min(pe,mr)}else{let mr=Fu(ut,S),Lr=Fu(Lt,W);af(ze,pe,te,R,F,mr[0],Lr[0]),af(ze,pe,te,R,F,mr[0],Lr[1]),af(ze,pe,te,R,F,mr[1],Lr[0]),af(ze,pe,te,R,F,mr[1],Lr[1])}}return pe}function Gf(R){return R.type==="MultiPolygon"?R.coordinates.map(S=>({type:"Polygon",coordinates:S})):R.type==="MultiLineString"?R.coordinates.map(S=>({type:"LineString",coordinates:S})):R.type==="MultiPoint"?R.coordinates.map(S=>({type:"Point",coordinates:S})):[R]}class Ic{constructor(S,F){this.type=Ft,this.geojson=S,this.geometries=F}static parse(S,F){if(S.length!==2)return F.error(`'distance' expression requires exactly one argument, but found ${S.length-1} instead.`);if(yn(S[1])){let W=S[1];if(W.type==="FeatureCollection")return new Ic(W,W.features.map(te=>Gf(te.geometry)).flat());if(W.type==="Feature")return new Ic(W,Gf(W.geometry));if("type"in W&&"coordinates"in W)return new Ic(W,Gf(W))}return F.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(S){if(S.geometry()!=null&&S.canonicalID()!=null){if(S.geometryType()==="Point")return function(F,W){let te=F.geometry(),fe=te.flat().map(Ke=>_a([Ke.x,Ke.y],F.canonical));if(te.length===0)return NaN;let pe=new Vf(fe[0][1]),ze=1/0;for(let Ke of W){switch(Ke.type){case"Point":ze=Math.min(ze,bl(fe,!1,[Ke.coordinates],!1,pe,ze));break;case"LineString":ze=Math.min(ze,bl(fe,!1,Ke.coordinates,!0,pe,ze));break;case"Polygon":ze=Math.min(ze,Hu(fe,!1,Ke.coordinates,pe,ze))}if(ze===0)return ze}return ze}(S,this.geometries);if(S.geometryType()==="LineString")return function(F,W){let te=F.geometry(),fe=te.flat().map(Ke=>_a([Ke.x,Ke.y],F.canonical));if(te.length===0)return NaN;let pe=new Vf(fe[0][1]),ze=1/0;for(let Ke of W){switch(Ke.type){case"Point":ze=Math.min(ze,bl(fe,!0,[Ke.coordinates],!1,pe,ze));break;case"LineString":ze=Math.min(ze,bl(fe,!0,Ke.coordinates,!0,pe,ze));break;case"Polygon":ze=Math.min(ze,Hu(fe,!0,Ke.coordinates,pe,ze))}if(ze===0)return ze}return ze}(S,this.geometries);if(S.geometryType()==="Polygon")return function(F,W){let te=F.geometry();if(te.length===0||te[0].length===0)return NaN;let fe=Cf(te,0).map(Ke=>Ke.map(ut=>ut.map(Lt=>_a([Lt.x,Lt.y],F.canonical)))),pe=new Vf(fe[0][0][0][1]),ze=1/0;for(let Ke of W)for(let ut of fe){switch(Ke.type){case"Point":ze=Math.min(ze,Hu([Ke.coordinates],!1,ut,pe,ze));break;case"LineString":ze=Math.min(ze,Hu(Ke.coordinates,!0,ut,pe,ze));break;case"Polygon":ze=Math.min(ze,Yo(ut,Ke.coordinates,pe,ze))}if(ze===0)return ze}return ze}(S,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}let mf={"==":cs,"!=":nl,">":fl,"<":Ss,">=":Os,"<=":Js,array:Fa,at:Cr,boolean:Fa,case:Sn,coalesce:zs,collator:Io,format:Zl,image:Su,in:Qr,"index-of":pi,interpolate:Co,"interpolate-hcl":Co,"interpolate-lab":Co,length:nc,let:jn,literal:la,match:fn,number:Fa,"number-format":us,object:Fa,slice:En,step:_n,string:Fa,"to-boolean":da,"to-color":da,"to-number":da,"to-string":da,var:St,within:ml,distance:Ic};class ql{constructor(S,F,W,te){this.name=S,this.type=F,this._evaluate=W,this.args=te}evaluate(S){return this._evaluate(S,this.args)}eachChild(S){this.args.forEach(S)}outputDefined(){return!1}static parse(S,F){let W=S[0],te=ql.definitions[W];if(!te)return F.error(`Unknown expression "${W}". If you wanted a literal array, use ["literal", [...]].`,0);let fe=Array.isArray(te)?te[0]:te.type,pe=Array.isArray(te)?[[te[1],te[2]]]:te.overloads,ze=pe.filter(([ut])=>!Array.isArray(ut)||ut.length===S.length-1),Ke=null;for(let[ut,Lt]of ze){Ke=new vo(F.registry,eh,F.path,null,F.scope);let Qt=[],fr=!1;for(let mr=1;mr{return fr=Qt,Array.isArray(fr)?`(${fr.map(Je).join(", ")})`:`(${Je(fr.type)}...)`;var fr}).join(" | "),Lt=[];for(let Qt=1;Qt{F=S?F&&eh(W):F&&W instanceof la}),!!F&&th(R)&&Hf(R,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function th(R){if(R instanceof ql&&(R.name==="get"&&R.args.length===1||R.name==="feature-state"||R.name==="has"&&R.args.length===1||R.name==="properties"||R.name==="geometry-type"||R.name==="id"||/^filter-/.test(R.name))||R instanceof ml||R instanceof Ic)return!1;let S=!0;return R.eachChild(F=>{S&&!th(F)&&(S=!1)}),S}function ju(R){if(R instanceof ql&&R.name==="feature-state")return!1;let S=!0;return R.eachChild(F=>{S&&!ju(F)&&(S=!1)}),S}function Hf(R,S){if(R instanceof ql&&S.indexOf(R.name)>=0)return!1;let F=!0;return R.eachChild(W=>{F&&!Hf(W,S)&&(F=!1)}),F}function cc(R){return{result:"success",value:R}}function of(R){return{result:"error",value:R}}function Bl(R){return R["property-type"]==="data-driven"||R["property-type"]==="cross-faded-data-driven"}function Kc(R){return!!R.expression&&R.expression.parameters.indexOf("zoom")>-1}function Rc(R){return!!R.expression&&R.expression.interpolated}function ms(R){return R instanceof Number?"number":R instanceof String?"string":R instanceof Boolean?"boolean":Array.isArray(R)?"array":R===null?"null":typeof R}function jf(R){return typeof R=="object"&&R!==null&&!Array.isArray(R)}function Uh(R){return R}function rh(R,S){let F=S.type==="color",W=R.stops&&typeof R.stops[0][0]=="object",te=W||!(W||R.property!==void 0),fe=R.type||(Rc(S)?"exponential":"interval");if(F||S.type==="padding"){let Lt=F?ar.parse:$r.parse;(R=Qe({},R)).stops&&(R.stops=R.stops.map(Qt=>[Qt[0],Lt(Qt[1])])),R.default=Lt(R.default?R.default:S.default)}if(R.colorSpace&&(pe=R.colorSpace)!=="rgb"&&pe!=="hcl"&&pe!=="lab")throw new Error(`Unknown color space: "${R.colorSpace}"`);var pe;let ze,Ke,ut;if(fe==="exponential")ze=ih;else if(fe==="interval")ze=Mu;else if(fe==="categorical"){ze=xh,Ke=Object.create(null);for(let Lt of R.stops)Ke[Lt[0]]=Lt[1];ut=typeof R.stops[0][0]}else{if(fe!=="identity")throw new Error(`Unknown function type "${fe}"`);ze=Ws}if(W){let Lt={},Qt=[];for(let Lr=0;LrLr[0]),evaluate:({zoom:Lr},zr)=>ih({stops:fr,base:R.base},S,Lr).evaluate(Lr,zr)}}if(te){let Lt=fe==="exponential"?{name:"exponential",base:R.base!==void 0?R.base:1}:null;return{kind:"camera",interpolationType:Lt,interpolationFactor:Co.interpolationFactor.bind(void 0,Lt),zoomStops:R.stops.map(Qt=>Qt[0]),evaluate:({zoom:Qt})=>ze(R,S,Qt,Ke,ut)}}return{kind:"source",evaluate(Lt,Qt){let fr=Qt&&Qt.properties?Qt.properties[R.property]:void 0;return fr===void 0?sf(R.default,S.default):ze(R,S,fr,Ke,ut)}}}function sf(R,S,F){return R!==void 0?R:S!==void 0?S:F!==void 0?F:void 0}function xh(R,S,F,W,te){return sf(typeof F===te?W[F]:void 0,R.default,S.default)}function Mu(R,S,F){if(ms(F)!=="number")return sf(R.default,S.default);let W=R.stops.length;if(W===1||F<=R.stops[0][0])return R.stops[0][1];if(F>=R.stops[W-1][0])return R.stops[W-1][1];let te=ki(R.stops.map(fe=>fe[0]),F);return R.stops[te][1]}function ih(R,S,F){let W=R.base!==void 0?R.base:1;if(ms(F)!=="number")return sf(R.default,S.default);let te=R.stops.length;if(te===1||F<=R.stops[0][0])return R.stops[0][1];if(F>=R.stops[te-1][0])return R.stops[te-1][1];let fe=ki(R.stops.map(Lt=>Lt[0]),F),pe=function(Lt,Qt,fr,mr){let Lr=mr-fr,zr=Lt-fr;return Lr===0?0:Qt===1?zr/Lr:(Math.pow(Qt,zr)-1)/(Math.pow(Qt,Lr)-1)}(F,W,R.stops[fe][0],R.stops[fe+1][0]),ze=R.stops[fe][1],Ke=R.stops[fe+1][1],ut=Lo[S.type]||Uh;return typeof ze.evaluate=="function"?{evaluate(...Lt){let Qt=ze.evaluate.apply(void 0,Lt),fr=Ke.evaluate.apply(void 0,Lt);if(Qt!==void 0&&fr!==void 0)return ut(Qt,fr,pe,R.colorSpace)}}:ut(ze,Ke,pe,R.colorSpace)}function Ws(R,S,F){switch(S.type){case"color":F=ar.parse(F);break;case"formatted":F=ri.fromString(F.toString());break;case"resolvedImage":F=en.fromString(F.toString());break;case"padding":F=$r.parse(F);break;default:ms(F)===S.type||S.type==="enum"&&S.values[F]||(F=void 0)}return sf(F,R.default,S.default)}ql.register(mf,{error:[{kind:"error"},[bt],(R,[S])=>{throw new ma(S.evaluate(R))}],typeof:[bt,[Tr],(R,[S])=>Je(Mn(S.evaluate(R)))],"to-rgba":[Ge(Ft,4),[Yt],(R,[S])=>{let[F,W,te,fe]=S.evaluate(R).rgb;return[255*F,255*W,255*te,fe]}],rgb:[Yt,[Ft,Ft,Ft],_h],rgba:[Yt,[Ft,Ft,Ft,Ft],_h],has:{type:yt,overloads:[[[bt],(R,[S])=>Qf(S.evaluate(R),R.properties())],[[bt,lr],(R,[S,F])=>Qf(S.evaluate(R),F.evaluate(R))]]},get:{type:Tr,overloads:[[[bt],(R,[S])=>yf(S.evaluate(R),R.properties())],[[bt,lr],(R,[S,F])=>yf(S.evaluate(R),F.evaluate(R))]]},"feature-state":[Tr,[bt],(R,[S])=>yf(S.evaluate(R),R.featureState||{})],properties:[lr,[],R=>R.properties()],"geometry-type":[bt,[],R=>R.geometryType()],id:[Tr,[],R=>R.id()],zoom:[Ft,[],R=>R.globals.zoom],"heatmap-density":[Ft,[],R=>R.globals.heatmapDensity||0],"line-progress":[Ft,[],R=>R.globals.lineProgress||0],accumulated:[Tr,[],R=>R.globals.accumulated===void 0?null:R.globals.accumulated],"+":[Ft,Yc(Ft),(R,S)=>{let F=0;for(let W of S)F+=W.evaluate(R);return F}],"*":[Ft,Yc(Ft),(R,S)=>{let F=1;for(let W of S)F*=W.evaluate(R);return F}],"-":{type:Ft,overloads:[[[Ft,Ft],(R,[S,F])=>S.evaluate(R)-F.evaluate(R)],[[Ft],(R,[S])=>-S.evaluate(R)]]},"/":[Ft,[Ft,Ft],(R,[S,F])=>S.evaluate(R)/F.evaluate(R)],"%":[Ft,[Ft,Ft],(R,[S,F])=>S.evaluate(R)%F.evaluate(R)],ln2:[Ft,[],()=>Math.LN2],pi:[Ft,[],()=>Math.PI],e:[Ft,[],()=>Math.E],"^":[Ft,[Ft,Ft],(R,[S,F])=>Math.pow(S.evaluate(R),F.evaluate(R))],sqrt:[Ft,[Ft],(R,[S])=>Math.sqrt(S.evaluate(R))],log10:[Ft,[Ft],(R,[S])=>Math.log(S.evaluate(R))/Math.LN10],ln:[Ft,[Ft],(R,[S])=>Math.log(S.evaluate(R))],log2:[Ft,[Ft],(R,[S])=>Math.log(S.evaluate(R))/Math.LN2],sin:[Ft,[Ft],(R,[S])=>Math.sin(S.evaluate(R))],cos:[Ft,[Ft],(R,[S])=>Math.cos(S.evaluate(R))],tan:[Ft,[Ft],(R,[S])=>Math.tan(S.evaluate(R))],asin:[Ft,[Ft],(R,[S])=>Math.asin(S.evaluate(R))],acos:[Ft,[Ft],(R,[S])=>Math.acos(S.evaluate(R))],atan:[Ft,[Ft],(R,[S])=>Math.atan(S.evaluate(R))],min:[Ft,Yc(Ft),(R,S)=>Math.min(...S.map(F=>F.evaluate(R)))],max:[Ft,Yc(Ft),(R,S)=>Math.max(...S.map(F=>F.evaluate(R)))],abs:[Ft,[Ft],(R,[S])=>Math.abs(S.evaluate(R))],round:[Ft,[Ft],(R,[S])=>{let F=S.evaluate(R);return F<0?-Math.round(-F):Math.round(F)}],floor:[Ft,[Ft],(R,[S])=>Math.floor(S.evaluate(R))],ceil:[Ft,[Ft],(R,[S])=>Math.ceil(S.evaluate(R))],"filter-==":[yt,[bt,Tr],(R,[S,F])=>R.properties()[S.value]===F.value],"filter-id-==":[yt,[Tr],(R,[S])=>R.id()===S.value],"filter-type-==":[yt,[bt],(R,[S])=>R.geometryType()===S.value],"filter-<":[yt,[bt,Tr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W{let F=R.id(),W=S.value;return typeof F==typeof W&&F":[yt,[bt,Tr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W>te}],"filter-id->":[yt,[Tr],(R,[S])=>{let F=R.id(),W=S.value;return typeof F==typeof W&&F>W}],"filter-<=":[yt,[bt,Tr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W<=te}],"filter-id-<=":[yt,[Tr],(R,[S])=>{let F=R.id(),W=S.value;return typeof F==typeof W&&F<=W}],"filter->=":[yt,[bt,Tr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W>=te}],"filter-id->=":[yt,[Tr],(R,[S])=>{let F=R.id(),W=S.value;return typeof F==typeof W&&F>=W}],"filter-has":[yt,[Tr],(R,[S])=>S.value in R.properties()],"filter-has-id":[yt,[],R=>R.id()!==null&&R.id()!==void 0],"filter-type-in":[yt,[Ge(bt)],(R,[S])=>S.value.indexOf(R.geometryType())>=0],"filter-id-in":[yt,[Ge(Tr)],(R,[S])=>S.value.indexOf(R.id())>=0],"filter-in-small":[yt,[bt,Ge(Tr)],(R,[S,F])=>F.value.indexOf(R.properties()[S.value])>=0],"filter-in-large":[yt,[bt,Ge(Tr)],(R,[S,F])=>function(W,te,fe,pe){for(;fe<=pe;){let ze=fe+pe>>1;if(te[ze]===W)return!0;te[ze]>W?pe=ze-1:fe=ze+1}return!1}(R.properties()[S.value],F.value,0,F.value.length-1)],all:{type:yt,overloads:[[[yt,yt],(R,[S,F])=>S.evaluate(R)&&F.evaluate(R)],[Yc(yt),(R,S)=>{for(let F of S)if(!F.evaluate(R))return!1;return!0}]]},any:{type:yt,overloads:[[[yt,yt],(R,[S,F])=>S.evaluate(R)||F.evaluate(R)],[Yc(yt),(R,S)=>{for(let F of S)if(F.evaluate(R))return!0;return!1}]]},"!":[yt,[yt],(R,[S])=>!S.evaluate(R)],"is-supported-script":[yt,[bt],(R,[S])=>{let F=R.globals&&R.globals.isSupportedScript;return!F||F(S.evaluate(R))}],upcase:[bt,[bt],(R,[S])=>S.evaluate(R).toUpperCase()],downcase:[bt,[bt],(R,[S])=>S.evaluate(R).toLowerCase()],concat:[bt,Yc(Tr),(R,S)=>S.map(F=>Ba(F.evaluate(R))).join("")],"resolved-locale":[bt,[Rr],(R,[S])=>S.evaluate(R).resolvedLocale()]});class Eu{constructor(S,F){var W;this.expression=S,this._warningHistory={},this._evaluator=new Ga,this._defaultValue=F?(W=F).type==="color"&&jf(W.default)?new ar(0,0,0,0):W.type==="color"?ar.parse(W.default)||null:W.type==="padding"?$r.parse(W.default)||null:W.type==="variableAnchorOffsetCollection"?Ji.parse(W.default)||null:W.default===void 0?null:W.default:null,this._enumValues=F&&F.type==="enum"?F.values:null}evaluateWithoutErrorHandling(S,F,W,te,fe,pe){return this._evaluator.globals=S,this._evaluator.feature=F,this._evaluator.featureState=W,this._evaluator.canonical=te,this._evaluator.availableImages=fe||null,this._evaluator.formattedSection=pe,this.expression.evaluate(this._evaluator)}evaluate(S,F,W,te,fe,pe){this._evaluator.globals=S,this._evaluator.feature=F||null,this._evaluator.featureState=W||null,this._evaluator.canonical=te,this._evaluator.availableImages=fe||null,this._evaluator.formattedSection=pe||null;try{let ze=this.expression.evaluate(this._evaluator);if(ze==null||typeof ze=="number"&&ze!=ze)return this._defaultValue;if(this._enumValues&&!(ze in this._enumValues))throw new ma(`Expected value to be one of ${Object.keys(this._enumValues).map(Ke=>JSON.stringify(Ke)).join(", ")}, but found ${JSON.stringify(ze)} instead.`);return ze}catch(ze){return this._warningHistory[ze.message]||(this._warningHistory[ze.message]=!0,typeof console!="undefined"&&console.warn(ze.message)),this._defaultValue}}}function Dc(R){return Array.isArray(R)&&R.length>0&&typeof R[0]=="string"&&R[0]in mf}function ks(R,S){let F=new vo(mf,eh,[],S?function(te){let fe={color:Yt,string:bt,number:Ft,enum:bt,boolean:yt,formatted:ei,padding:Wr,resolvedImage:Ur,variableAnchorOffsetCollection:dt};return te.type==="array"?Ge(fe[te.value]||Tr,te.length):fe[te.type]}(S):void 0),W=F.parse(R,void 0,void 0,void 0,S&&S.type==="string"?{typeAnnotation:"coerce"}:void 0);return W?cc(new Eu(W,S)):of(F.errors)}class bc{constructor(S,F){this.kind=S,this._styleExpression=F,this.isStateDependent=S!=="constant"&&!ju(F.expression)}evaluateWithoutErrorHandling(S,F,W,te,fe,pe){return this._styleExpression.evaluateWithoutErrorHandling(S,F,W,te,fe,pe)}evaluate(S,F,W,te,fe,pe){return this._styleExpression.evaluate(S,F,W,te,fe,pe)}}class du{constructor(S,F,W,te){this.kind=S,this.zoomStops=W,this._styleExpression=F,this.isStateDependent=S!=="camera"&&!ju(F.expression),this.interpolationType=te}evaluateWithoutErrorHandling(S,F,W,te,fe,pe){return this._styleExpression.evaluateWithoutErrorHandling(S,F,W,te,fe,pe)}evaluate(S,F,W,te,fe,pe){return this._styleExpression.evaluate(S,F,W,te,fe,pe)}interpolationFactor(S,F,W){return this.interpolationType?Co.interpolationFactor(this.interpolationType,S,F,W):0}}function _u(R,S){let F=ks(R,S);if(F.result==="error")return F;let W=F.value.expression,te=th(W);if(!te&&!Bl(S))return of([new Et("","data expressions not supported")]);let fe=Hf(W,["zoom"]);if(!fe&&!Kc(S))return of([new Et("","zoom expressions not supported")]);let pe=nh(W);return pe||fe?pe instanceof Et?of([pe]):pe instanceof Co&&!Rc(S)?of([new Et("",'"interpolate" expressions cannot be used with this property')]):cc(pe?new du(te?"camera":"composite",F.value,pe.labels,pe instanceof Co?pe.interpolation:void 0):new bc(te?"constant":"source",F.value)):of([new Et("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class al{constructor(S,F){this._parameters=S,this._specification=F,Qe(this,rh(this._parameters,this._specification))}static deserialize(S){return new al(S._parameters,S._specification)}static serialize(S){return{_parameters:S._parameters,_specification:S._specification}}}function nh(R){let S=null;if(R instanceof jn)S=nh(R.result);else if(R instanceof zs){for(let F of R.args)if(S=nh(F),S)break}else(R instanceof _n||R instanceof Co)&&R.input instanceof ql&&R.input.name==="zoom"&&(S=R);return S instanceof Et||R.eachChild(F=>{let W=nh(F);W instanceof Et?S=W:!S&&W?S=new Et("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):S&&W&&S!==W&&(S=new Et("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),S}function bh(R){if(R===!0||R===!1)return!0;if(!Array.isArray(R)||R.length===0)return!1;switch(R[0]){case"has":return R.length>=2&&R[1]!=="$id"&&R[1]!=="$type";case"in":return R.length>=3&&(typeof R[1]!="string"||Array.isArray(R[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return R.length!==3||Array.isArray(R[1])||Array.isArray(R[2]);case"any":case"all":for(let S of R.slice(1))if(!bh(S)&&typeof S!="boolean")return!1;return!0;default:return!0}}let zu={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Fc(R){if(R==null)return{filter:()=>!0,needGeometry:!1};bh(R)||(R=_f(R));let S=ks(R,zu);if(S.result==="error")throw new Error(S.value.map(F=>`${F.key}: ${F.message}`).join(", "));return{filter:(F,W,te)=>S.value.evaluate(F,W,{},te),needGeometry:bd(R)}}function wc(R,S){return RS?1:0}function bd(R){if(!Array.isArray(R))return!1;if(R[0]==="within"||R[0]==="distance")return!0;for(let S=1;S"||S==="<="||S===">="?Lf(R[1],R[2],S):S==="any"?(F=R.slice(1),["any"].concat(F.map(_f))):S==="all"?["all"].concat(R.slice(1).map(_f)):S==="none"?["all"].concat(R.slice(1).map(_f).map(jl)):S==="in"?Ou(R[1],R.slice(2)):S==="!in"?jl(Ou(R[1],R.slice(2))):S==="has"?xf(R[1]):S!=="!has"||jl(xf(R[1]));var F}function Lf(R,S,F){switch(R){case"$type":return[`filter-type-${F}`,S];case"$id":return[`filter-id-${F}`,S];default:return[`filter-${F}`,R,S]}}function Ou(R,S){if(S.length===0)return!1;switch(R){case"$type":return["filter-type-in",["literal",S]];case"$id":return["filter-id-in",["literal",S]];default:return S.length>200&&!S.some(F=>typeof F!=typeof S[0])?["filter-in-large",R,["literal",S.sort(wc)]]:["filter-in-small",R,["literal",S]]}}function xf(R){switch(R){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",R]}}function jl(R){return["!",R]}function lf(R){let S=typeof R;if(S==="number"||S==="boolean"||S==="string"||R==null)return JSON.stringify(R);if(Array.isArray(R)){let te="[";for(let fe of R)te+=`${lf(fe)},`;return`${te}]`}let F=Object.keys(R).sort(),W="{";for(let te=0;teW.maximum?[new ur(S,F,`${F} is greater than the maximum value ${W.maximum}`)]:[]}function bf(R){let S=R.valueSpec,F=Ls(R.value.type),W,te,fe,pe={},ze=F!=="categorical"&&R.value.property===void 0,Ke=!ze,ut=ms(R.value.stops)==="array"&&ms(R.value.stops[0])==="array"&&ms(R.value.stops[0][0])==="object",Lt=Cu({key:R.key,value:R.value,valueSpec:R.styleSpec.function,validateSpec:R.validateSpec,style:R.style,styleSpec:R.styleSpec,objectElementValidators:{stops:function(mr){if(F==="identity")return[new ur(mr.key,mr.value,'identity function may not have a "stops" property')];let Lr=[],zr=mr.value;return Lr=Lr.concat(Wf({key:mr.key,value:zr,valueSpec:mr.valueSpec,validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec,arrayElementValidator:Qt})),ms(zr)==="array"&&zr.length===0&&Lr.push(new ur(mr.key,zr,"array must have at least one stop")),Lr},default:function(mr){return mr.validateSpec({key:mr.key,value:mr.value,valueSpec:S,validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec})}}});return F==="identity"&&ze&&Lt.push(new ur(R.key,R.value,'missing required property "property"')),F==="identity"||R.value.stops||Lt.push(new ur(R.key,R.value,'missing required property "stops"')),F==="exponential"&&R.valueSpec.expression&&!Rc(R.valueSpec)&&Lt.push(new ur(R.key,R.value,"exponential functions not supported")),R.styleSpec.$version>=8&&(Ke&&!Bl(R.valueSpec)?Lt.push(new ur(R.key,R.value,"property functions not supported")):ze&&!Kc(R.valueSpec)&&Lt.push(new ur(R.key,R.value,"zoom functions not supported"))),F!=="categorical"&&!ut||R.value.property!==void 0||Lt.push(new ur(R.key,R.value,'"property" property is required')),Lt;function Qt(mr){let Lr=[],zr=mr.value,ui=mr.key;if(ms(zr)!=="array")return[new ur(ui,zr,`array expected, ${ms(zr)} found`)];if(zr.length!==2)return[new ur(ui,zr,`array length 2 expected, length ${zr.length} found`)];if(ut){if(ms(zr[0])!=="object")return[new ur(ui,zr,`object expected, ${ms(zr[0])} found`)];if(zr[0].zoom===void 0)return[new ur(ui,zr,"object stop key must have zoom")];if(zr[0].value===void 0)return[new ur(ui,zr,"object stop key must have value")];if(fe&&fe>Ls(zr[0].zoom))return[new ur(ui,zr[0].zoom,"stop zoom values must appear in ascending order")];Ls(zr[0].zoom)!==fe&&(fe=Ls(zr[0].zoom),te=void 0,pe={}),Lr=Lr.concat(Cu({key:`${ui}[0]`,value:zr[0],valueSpec:{zoom:{}},validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec,objectElementValidators:{zoom:Vs,value:fr}}))}else Lr=Lr.concat(fr({key:`${ui}[0]`,value:zr[0],valueSpec:{},validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec},zr));return Dc(vu(zr[1]))?Lr.concat([new ur(`${ui}[1]`,zr[1],"expressions are not allowed in function stops.")]):Lr.concat(mr.validateSpec({key:`${ui}[1]`,value:zr[1],valueSpec:S,validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec}))}function fr(mr,Lr){let zr=ms(mr.value),ui=Ls(mr.value),yi=mr.value!==null?mr.value:Lr;if(W){if(zr!==W)return[new ur(mr.key,yi,`${zr} stop domain type must match previous stop domain type ${W}`)]}else W=zr;if(zr!=="number"&&zr!=="string"&&zr!=="boolean")return[new ur(mr.key,yi,"stop domain value must be a number, string, or boolean")];if(zr!=="number"&&F!=="categorical"){let dn=`number expected, ${zr} found`;return Bl(S)&&F===void 0&&(dn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new ur(mr.key,yi,dn)]}return F!=="categorical"||zr!=="number"||isFinite(ui)&&Math.floor(ui)===ui?F!=="categorical"&&zr==="number"&&te!==void 0&&uinew ur(`${R.key}${W.key}`,R.value,W.message));let F=S.value.expression||S.value._styleExpression.expression;if(R.expressionContext==="property"&&R.propertyKey==="text-font"&&!F.outputDefined())return[new ur(R.key,R.value,`Invalid data expression for "${R.propertyKey}". Output values must be contained as literals within the expression.`)];if(R.expressionContext==="property"&&R.propertyType==="layout"&&!ju(F))return[new ur(R.key,R.value,'"feature-state" data expressions are not supported with layout properties.')];if(R.expressionContext==="filter"&&!ju(F))return[new ur(R.key,R.value,'"feature-state" data expressions are not supported with filters.')];if(R.expressionContext&&R.expressionContext.indexOf("cluster")===0){if(!Hf(F,["zoom","feature-state"]))return[new ur(R.key,R.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(R.expressionContext==="cluster-initial"&&!th(F))return[new ur(R.key,R.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Wu(R){let S=R.key,F=R.value,W=R.valueSpec,te=[];return Array.isArray(W.values)?W.values.indexOf(Ls(F))===-1&&te.push(new ur(S,F,`expected one of [${W.values.join(", ")}], ${JSON.stringify(F)} found`)):Object.keys(W.values).indexOf(Ls(F))===-1&&te.push(new ur(S,F,`expected one of [${Object.keys(W.values).join(", ")}], ${JSON.stringify(F)} found`)),te}function If(R){return bh(vu(R.value))?zc(Qe({},R,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Xu(R)}function Xu(R){let S=R.value,F=R.key;if(ms(S)!=="array")return[new ur(F,S,`array expected, ${ms(S)} found`)];let W=R.styleSpec,te,fe=[];if(S.length<1)return[new ur(F,S,"filter array must have at least 1 element")];switch(fe=fe.concat(Wu({key:`${F}[0]`,value:S[0],valueSpec:W.filter_operator,style:R.style,styleSpec:R.styleSpec})),Ls(S[0])){case"<":case"<=":case">":case">=":S.length>=2&&Ls(S[1])==="$type"&&fe.push(new ur(F,S,`"$type" cannot be use with operator "${S[0]}"`));case"==":case"!=":S.length!==3&&fe.push(new ur(F,S,`filter array for operator "${S[0]}" must have 3 elements`));case"in":case"!in":S.length>=2&&(te=ms(S[1]),te!=="string"&&fe.push(new ur(`${F}[1]`,S[1],`string expected, ${te} found`)));for(let pe=2;pe{ut in F&&S.push(new ur(W,F[ut],`"${ut}" is prohibited for ref layers`))}),te.layers.forEach(ut=>{Ls(ut.id)===ze&&(Ke=ut)}),Ke?Ke.ref?S.push(new ur(W,F.ref,"ref cannot reference another ref layer")):pe=Ls(Ke.type):S.push(new ur(W,F.ref,`ref layer "${ze}" not found`))}else if(pe!=="background")if(F.source){let Ke=te.sources&&te.sources[F.source],ut=Ke&&Ls(Ke.type);Ke?ut==="vector"&&pe==="raster"?S.push(new ur(W,F.source,`layer "${F.id}" requires a raster source`)):ut!=="raster-dem"&&pe==="hillshade"?S.push(new ur(W,F.source,`layer "${F.id}" requires a raster-dem source`)):ut==="raster"&&pe!=="raster"?S.push(new ur(W,F.source,`layer "${F.id}" requires a vector source`)):ut!=="vector"||F["source-layer"]?ut==="raster-dem"&&pe!=="hillshade"?S.push(new ur(W,F.source,"raster-dem source can only be used with layer type 'hillshade'.")):pe!=="line"||!F.paint||!F.paint["line-gradient"]||ut==="geojson"&&Ke.lineMetrics||S.push(new ur(W,F,`layer "${F.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):S.push(new ur(W,F,`layer "${F.id}" must specify a "source-layer"`)):S.push(new ur(W,F.source,`source "${F.source}" not found`))}else S.push(new ur(W,F,'missing required property "source"'));return S=S.concat(Cu({key:W,value:F,valueSpec:fe.layer,style:R.style,styleSpec:R.styleSpec,validateSpec:R.validateSpec,objectElementValidators:{"*":()=>[],type:()=>R.validateSpec({key:`${W}.type`,value:F.type,valueSpec:fe.layer.type,style:R.style,styleSpec:R.styleSpec,validateSpec:R.validateSpec,object:F,objectKey:"type"}),filter:If,layout:Ke=>Cu({layer:F,key:Ke.key,value:Ke.value,style:Ke.style,styleSpec:Ke.styleSpec,validateSpec:Ke.validateSpec,objectElementValidators:{"*":ut=>Wl(Qe({layerType:pe},ut))}}),paint:Ke=>Cu({layer:F,key:Ke.key,value:Ke.value,style:Ke.style,styleSpec:Ke.styleSpec,validateSpec:Ke.validateSpec,objectElementValidators:{"*":ut=>Xf(Qe({layerType:pe},ut))}})}})),S}function Zu(R){let S=R.value,F=R.key,W=ms(S);return W!=="string"?[new ur(F,S,`string expected, ${W} found`)]:[]}let Oc={promoteId:function({key:R,value:S}){if(ms(S)==="string")return Zu({key:R,value:S});{let F=[];for(let W in S)F.push(...Zu({key:`${R}.${W}`,value:S[W]}));return F}}};function Tc(R){let S=R.value,F=R.key,W=R.styleSpec,te=R.style,fe=R.validateSpec;if(!S.type)return[new ur(F,S,'"type" is required')];let pe=Ls(S.type),ze;switch(pe){case"vector":case"raster":return ze=Cu({key:F,value:S,valueSpec:W[`source_${pe.replace("-","_")}`],style:R.style,styleSpec:W,objectElementValidators:Oc,validateSpec:fe}),ze;case"raster-dem":return ze=function(Ke){var ut;let Lt=(ut=Ke.sourceName)!==null&&ut!==void 0?ut:"",Qt=Ke.value,fr=Ke.styleSpec,mr=fr.source_raster_dem,Lr=Ke.style,zr=[],ui=ms(Qt);if(Qt===void 0)return zr;if(ui!=="object")return zr.push(new ur("source_raster_dem",Qt,`object expected, ${ui} found`)),zr;let yi=Ls(Qt.encoding)==="custom",dn=["redFactor","greenFactor","blueFactor","baseShift"],Fi=Ke.value.encoding?`"${Ke.value.encoding}"`:"Default";for(let ln in Qt)!yi&&dn.includes(ln)?zr.push(new ur(ln,Qt[ln],`In "${Lt}": "${ln}" is only valid when "encoding" is set to "custom". ${Fi} encoding found`)):mr[ln]?zr=zr.concat(Ke.validateSpec({key:ln,value:Qt[ln],valueSpec:mr[ln],validateSpec:Ke.validateSpec,style:Lr,styleSpec:fr})):zr.push(new ur(ln,Qt[ln],`unknown property "${ln}"`));return zr}({sourceName:F,value:S,style:R.style,styleSpec:W,validateSpec:fe}),ze;case"geojson":if(ze=Cu({key:F,value:S,valueSpec:W.source_geojson,style:te,styleSpec:W,validateSpec:fe,objectElementValidators:Oc}),S.cluster)for(let Ke in S.clusterProperties){let[ut,Lt]=S.clusterProperties[Ke],Qt=typeof ut=="string"?[ut,["accumulated"],["get",Ke]]:ut;ze.push(...zc({key:`${F}.${Ke}.map`,value:Lt,validateSpec:fe,expressionContext:"cluster-map"})),ze.push(...zc({key:`${F}.${Ke}.reduce`,value:Qt,validateSpec:fe,expressionContext:"cluster-reduce"}))}return ze;case"video":return Cu({key:F,value:S,valueSpec:W.source_video,style:te,validateSpec:fe,styleSpec:W});case"image":return Cu({key:F,value:S,valueSpec:W.source_image,style:te,validateSpec:fe,styleSpec:W});case"canvas":return[new ur(F,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Wu({key:`${F}.type`,value:S.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:te,validateSpec:fe,styleSpec:W})}}function wl(R){let S=R.value,F=R.styleSpec,W=F.light,te=R.style,fe=[],pe=ms(S);if(S===void 0)return fe;if(pe!=="object")return fe=fe.concat([new ur("light",S,`object expected, ${pe} found`)]),fe;for(let ze in S){let Ke=ze.match(/^(.*)-transition$/);fe=fe.concat(Ke&&W[Ke[1]]&&W[Ke[1]].transition?R.validateSpec({key:ze,value:S[ze],valueSpec:F.transition,validateSpec:R.validateSpec,style:te,styleSpec:F}):W[ze]?R.validateSpec({key:ze,value:S[ze],valueSpec:W[ze],validateSpec:R.validateSpec,style:te,styleSpec:F}):[new ur(ze,S[ze],`unknown property "${ze}"`)])}return fe}function pu(R){let S=R.value,F=R.styleSpec,W=F.sky,te=R.style,fe=ms(S);if(S===void 0)return[];if(fe!=="object")return[new ur("sky",S,`object expected, ${fe} found`)];let pe=[];for(let ze in S)pe=pe.concat(W[ze]?R.validateSpec({key:ze,value:S[ze],valueSpec:W[ze],style:te,styleSpec:F}):[new ur(ze,S[ze],`unknown property "${ze}"`)]);return pe}function qc(R){let S=R.value,F=R.styleSpec,W=F.terrain,te=R.style,fe=[],pe=ms(S);if(S===void 0)return fe;if(pe!=="object")return fe=fe.concat([new ur("terrain",S,`object expected, ${pe} found`)]),fe;for(let ze in S)fe=fe.concat(W[ze]?R.validateSpec({key:ze,value:S[ze],valueSpec:W[ze],validateSpec:R.validateSpec,style:te,styleSpec:F}):[new ur(ze,S[ze],`unknown property "${ze}"`)]);return fe}function cf(R){let S=[],F=R.value,W=R.key;if(Array.isArray(F)){let te=[],fe=[];for(let pe in F)F[pe].id&&te.includes(F[pe].id)&&S.push(new ur(W,F,`all the sprites' ids must be unique, but ${F[pe].id} is duplicated`)),te.push(F[pe].id),F[pe].url&&fe.includes(F[pe].url)&&S.push(new ur(W,F,`all the sprites' URLs must be unique, but ${F[pe].url} is duplicated`)),fe.push(F[pe].url),S=S.concat(Cu({key:`${W}[${pe}]`,value:F[pe],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:R.validateSpec}));return S}return Zu({key:W,value:F})}let fc={"*":()=>[],array:Wf,boolean:function(R){let S=R.value,F=R.key,W=ms(S);return W!=="boolean"?[new ur(F,S,`boolean expected, ${W} found`)]:[]},number:Vs,color:function(R){let S=R.key,F=R.value,W=ms(F);return W!=="string"?[new ur(S,F,`color expected, ${W} found`)]:ar.parse(String(F))?[]:[new ur(S,F,`color expected, "${F}" found`)]},constants:Pf,enum:Wu,filter:If,function:bf,layer:ah,object:Cu,source:Tc,light:wl,sky:pu,terrain:qc,projection:function(R){let S=R.value,F=R.styleSpec,W=F.projection,te=R.style,fe=ms(S);if(S===void 0)return[];if(fe!=="object")return[new ur("projection",S,`object expected, ${fe} found`)];let pe=[];for(let ze in S)pe=pe.concat(W[ze]?R.validateSpec({key:ze,value:S[ze],valueSpec:W[ze],style:te,styleSpec:F}):[new ur(ze,S[ze],`unknown property "${ze}"`)]);return pe},string:Zu,formatted:function(R){return Zu(R).length===0?[]:zc(R)},resolvedImage:function(R){return Zu(R).length===0?[]:zc(R)},padding:function(R){let S=R.key,F=R.value;if(ms(F)==="array"){if(F.length<1||F.length>4)return[new ur(S,F,`padding requires 1 to 4 values; ${F.length} values found`)];let W={type:"number"},te=[];for(let fe=0;fe[]}})),R.constants&&(F=F.concat(Pf({key:"constants",value:R.constants,style:R,styleSpec:S,validateSpec:Bc}))),Ar(F)}function kr(R){return function(S){return R(lee(see({},S),{validateSpec:Bc}))}}function Ar(R){return[].concat(R).sort((S,F)=>S.line-F.line)}function Kr(R){return function(...S){return Ar(R.apply(this,S))}}Xt.source=Kr(kr(Tc)),Xt.sprite=Kr(kr(cf)),Xt.glyphs=Kr(kr(At)),Xt.light=Kr(kr(wl)),Xt.sky=Kr(kr(pu)),Xt.terrain=Kr(kr(qc)),Xt.layer=Kr(kr(ah)),Xt.filter=Kr(kr(If)),Xt.paintProperty=Kr(kr(Xf)),Xt.layoutProperty=Kr(kr(Wl));let Ei=Xt,Wi=Ei.light,hn=Ei.sky,Tn=Ei.paintProperty,Bn=Ei.layoutProperty;function Zi(R,S){let F=!1;if(S&&S.length)for(let W of S)R.fire(new ge(new Error(W.message))),F=!0;return F}class $i{constructor(S,F,W){let te=this.cells=[];if(S instanceof ArrayBuffer){this.arrayBuffer=S;let pe=new Int32Array(this.arrayBuffer);S=pe[0],this.d=(F=pe[1])+2*(W=pe[2]);for(let Ke=0;Ke=Qt[Lr+0]&&te>=Qt[Lr+1])?(ze[mr]=!0,pe.push(Lt[mr])):ze[mr]=!1}}}}_forEachCell(S,F,W,te,fe,pe,ze,Ke){let ut=this._convertToCellCoord(S),Lt=this._convertToCellCoord(F),Qt=this._convertToCellCoord(W),fr=this._convertToCellCoord(te);for(let mr=ut;mr<=Qt;mr++)for(let Lr=Lt;Lr<=fr;Lr++){let zr=this.d*Lr+mr;if((!Ke||Ke(this._convertFromCellCoord(mr),this._convertFromCellCoord(Lr),this._convertFromCellCoord(mr+1),this._convertFromCellCoord(Lr+1)))&&fe.call(this,S,F,W,te,zr,pe,ze,Ke))return}}_convertFromCellCoord(S){return(S-this.padding)/this.scale}_convertToCellCoord(S){return Math.max(0,Math.min(this.d-1,Math.floor(S*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let S=this.cells,F=3+this.cells.length+1+1,W=0;for(let pe=0;pe=0)continue;let pe=R[fe];te[fe]=an[F].shallow.indexOf(fe)>=0?pe:La(pe,S)}R instanceof Error&&(te.message=R.message)}if(te.$name)throw new Error("$name property is reserved for worker serialization logic.");return F!=="Object"&&(te.$name=F),te}function Na(R){if(Ra(R))return R;if(Array.isArray(R))return R.map(Na);if(typeof R!="object")throw new Error("can't deserialize object of type "+typeof R);let S=ka(R)||"Object";if(!an[S])throw new Error(`can't deserialize unregistered class ${S}`);let{klass:F}=an[S];if(!F)throw new Error(`can't deserialize unregistered class ${S}`);if(F.deserialize)return F.deserialize(R);let W=Object.create(F.prototype);for(let te of Object.keys(R)){if(te==="$name")continue;let fe=R[te];W[te]=an[S].shallow.indexOf(te)>=0?fe:Na(fe)}return W}class Yn{constructor(){this.first=!0}update(S,F){let W=Math.floor(S);return this.first?(this.first=!1,this.lastIntegerZoom=W,this.lastIntegerZoomTime=0,this.lastZoom=S,this.lastFloorZoom=W,!0):(this.lastFloorZoom>W?(this.lastIntegerZoom=W+1,this.lastIntegerZoomTime=F):this.lastFloorZoomR>=128&&R<=255,"Hangul Jamo":R=>R>=4352&&R<=4607,Khmer:R=>R>=6016&&R<=6143,"General Punctuation":R=>R>=8192&&R<=8303,"Letterlike Symbols":R=>R>=8448&&R<=8527,"Number Forms":R=>R>=8528&&R<=8591,"Miscellaneous Technical":R=>R>=8960&&R<=9215,"Control Pictures":R=>R>=9216&&R<=9279,"Optical Character Recognition":R=>R>=9280&&R<=9311,"Enclosed Alphanumerics":R=>R>=9312&&R<=9471,"Geometric Shapes":R=>R>=9632&&R<=9727,"Miscellaneous Symbols":R=>R>=9728&&R<=9983,"Miscellaneous Symbols and Arrows":R=>R>=11008&&R<=11263,"Ideographic Description Characters":R=>R>=12272&&R<=12287,"CJK Symbols and Punctuation":R=>R>=12288&&R<=12351,Katakana:R=>R>=12448&&R<=12543,Kanbun:R=>R>=12688&&R<=12703,"CJK Strokes":R=>R>=12736&&R<=12783,"Enclosed CJK Letters and Months":R=>R>=12800&&R<=13055,"CJK Compatibility":R=>R>=13056&&R<=13311,"Yijing Hexagram Symbols":R=>R>=19904&&R<=19967,"Private Use Area":R=>R>=57344&&R<=63743,"Vertical Forms":R=>R>=65040&&R<=65055,"CJK Compatibility Forms":R=>R>=65072&&R<=65103,"Small Form Variants":R=>R>=65104&&R<=65135,"Halfwidth and Fullwidth Forms":R=>R>=65280&&R<=65519};function Ka(R){for(let S of R)if(Ho(S.charCodeAt(0)))return!0;return!1}function bo(R){for(let S of R)if(!os(S.charCodeAt(0)))return!1;return!0}function Xo(R){let S=R.map(F=>{try{return new RegExp(`\\p{sc=${F}}`,"u").source}catch(W){return null}}).filter(F=>F);return new RegExp(S.join("|"),"u")}let Ms=Xo(["Arab","Dupl","Mong","Ougr","Syrc"]);function os(R){return!Ms.test(String.fromCodePoint(R))}let Ts=Xo(["Bopo","Hani","Hira","Kana","Kits","Nshu","Tang","Yiii"]);function Ho(R){return!(R!==746&&R!==747&&(R<4352||!(zn["CJK Compatibility Forms"](R)&&!(R>=65097&&R<=65103)||zn["CJK Compatibility"](R)||zn["CJK Strokes"](R)||!(!zn["CJK Symbols and Punctuation"](R)||R>=12296&&R<=12305||R>=12308&&R<=12319||R===12336)||zn["Enclosed CJK Letters and Months"](R)||zn["Ideographic Description Characters"](R)||zn.Kanbun(R)||zn.Katakana(R)&&R!==12540||!(!zn["Halfwidth and Fullwidth Forms"](R)||R===65288||R===65289||R===65293||R>=65306&&R<=65310||R===65339||R===65341||R===65343||R>=65371&&R<=65503||R===65507||R>=65512&&R<=65519)||!(!zn["Small Form Variants"](R)||R>=65112&&R<=65118||R>=65123&&R<=65126)||zn["Vertical Forms"](R)||zn["Yijing Hexagram Symbols"](R)||new RegExp("\\p{sc=Cans}","u").test(String.fromCodePoint(R))||new RegExp("\\p{sc=Hang}","u").test(String.fromCodePoint(R))||Ts.test(String.fromCodePoint(R)))))}function yl(R){return!(Ho(R)||function(S){return!!(zn["Latin-1 Supplement"](S)&&(S===167||S===169||S===174||S===177||S===188||S===189||S===190||S===215||S===247)||zn["General Punctuation"](S)&&(S===8214||S===8224||S===8225||S===8240||S===8241||S===8251||S===8252||S===8258||S===8263||S===8264||S===8265||S===8273)||zn["Letterlike Symbols"](S)||zn["Number Forms"](S)||zn["Miscellaneous Technical"](S)&&(S>=8960&&S<=8967||S>=8972&&S<=8991||S>=8996&&S<=9e3||S===9003||S>=9085&&S<=9114||S>=9150&&S<=9165||S===9167||S>=9169&&S<=9179||S>=9186&&S<=9215)||zn["Control Pictures"](S)&&S!==9251||zn["Optical Character Recognition"](S)||zn["Enclosed Alphanumerics"](S)||zn["Geometric Shapes"](S)||zn["Miscellaneous Symbols"](S)&&!(S>=9754&&S<=9759)||zn["Miscellaneous Symbols and Arrows"](S)&&(S>=11026&&S<=11055||S>=11088&&S<=11097||S>=11192&&S<=11243)||zn["CJK Symbols and Punctuation"](S)||zn.Katakana(S)||zn["Private Use Area"](S)||zn["CJK Compatibility Forms"](S)||zn["Small Form Variants"](S)||zn["Halfwidth and Fullwidth Forms"](S)||S===8734||S===8756||S===8757||S>=9984&&S<=10087||S>=10102&&S<=10131||S===65532||S===65533)}(R))}let Xs=Xo(["Adlm","Arab","Armi","Avst","Chrs","Cprt","Egyp","Elym","Gara","Hatr","Hebr","Hung","Khar","Lydi","Mand","Mani","Mend","Merc","Mero","Narb","Nbat","Nkoo","Orkh","Palm","Phli","Phlp","Phnx","Prti","Rohg","Samr","Sarb","Sogo","Syrc","Thaa","Todr","Yezi"]);function Ps(R){return Xs.test(String.fromCodePoint(R))}function va(R,S){return!(!S&&Ps(R)||R>=2304&&R<=3583||R>=3840&&R<=4255||zn.Khmer(R))}function no(R){for(let S of R)if(Ps(S.charCodeAt(0)))return!0;return!1}let _s=new class{constructor(){this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null}setState(R){this.pluginStatus=R.pluginStatus,this.pluginURL=R.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(R){this.applyArabicShaping=R.applyArabicShaping,this.processBidirectionalText=R.processBidirectionalText,this.processStyledBidirectionalText=R.processStyledBidirectionalText}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getPluginURL(){return this.pluginURL}getRTLTextPluginStatus(){return this.pluginStatus}};class is{constructor(S,F){this.zoom=S,F?(this.now=F.now,this.fadeDuration=F.fadeDuration,this.zoomHistory=F.zoomHistory,this.transition=F.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Yn,this.transition={})}isSupportedScript(S){return function(F,W){for(let te of F)if(!va(te.charCodeAt(0),W))return!1;return!0}(S,_s.getRTLTextPluginStatus()==="loaded")}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let S=this.zoom,F=S-Math.floor(S),W=this.crossFadingFactor();return S>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:F+(1-F)*W}:{fromScale:.5,toScale:1,t:1-(1-W)*F}}}class $l{constructor(S,F){this.property=S,this.value=F,this.expression=function(W,te){if(jf(W))return new al(W,te);if(Dc(W)){let fe=_u(W,te);if(fe.result==="error")throw new Error(fe.value.map(pe=>`${pe.key}: ${pe.message}`).join(", "));return fe.value}{let fe=W;return te.type==="color"&&typeof W=="string"?fe=ar.parse(W):te.type!=="padding"||typeof W!="number"&&!Array.isArray(W)?te.type==="variableAnchorOffsetCollection"&&Array.isArray(W)&&(fe=Ji.parse(W)):fe=$r.parse(W),{kind:"constant",evaluate:()=>fe}}}(F===void 0?S.specification.default:F,S.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(S,F,W){return this.property.possiblyEvaluate(this,S,F,W)}}class ku{constructor(S){this.property=S,this.value=new $l(S,void 0)}transitioned(S,F){return new Nc(this.property,this.value,F,L({},S.transition,this.transition),S.now)}untransitioned(){return new Nc(this.property,this.value,null,{},0)}}class Yu{constructor(S){this._properties=S,this._values=Object.create(S.defaultTransitionablePropertyValues)}getValue(S){return g(this._values[S].value.value)}setValue(S,F){Object.prototype.hasOwnProperty.call(this._values,S)||(this._values[S]=new ku(this._values[S].property)),this._values[S].value=new $l(this._values[S].property,F===null?void 0:g(F))}getTransition(S){return g(this._values[S].transition)}setTransition(S,F){Object.prototype.hasOwnProperty.call(this._values,S)||(this._values[S]=new ku(this._values[S].property)),this._values[S].transition=g(F)||void 0}serialize(){let S={};for(let F of Object.keys(this._values)){let W=this.getValue(F);W!==void 0&&(S[F]=W);let te=this.getTransition(F);te!==void 0&&(S[`${F}-transition`]=te)}return S}transitioned(S,F){let W=new gu(this._properties);for(let te of Object.keys(this._values))W._values[te]=this._values[te].transitioned(S,F._values[te]);return W}untransitioned(){let S=new gu(this._properties);for(let F of Object.keys(this._values))S._values[F]=this._values[F].untransitioned();return S}}class Nc{constructor(S,F,W,te,fe){this.property=S,this.value=F,this.begin=fe+te.delay||0,this.end=this.begin+te.duration||0,S.specification.transition&&(te.delay||te.duration)&&(this.prior=W)}possiblyEvaluate(S,F,W){let te=S.now||0,fe=this.value.possiblyEvaluate(S,F,W),pe=this.prior;if(pe){if(te>this.end)return this.prior=null,fe;if(this.value.isDataDriven())return this.prior=null,fe;if(te=1)return 1;let ut=Ke*Ke,Lt=ut*Ke;return 4*(Ke<.5?Lt:3*(Ke-ut)+Lt-.75)}(ze))}}return fe}}class gu{constructor(S){this._properties=S,this._values=Object.create(S.defaultTransitioningPropertyValues)}possiblyEvaluate(S,F,W){let te=new Ac(this._properties);for(let fe of Object.keys(this._values))te._values[fe]=this._values[fe].possiblyEvaluate(S,F,W);return te}hasTransition(){for(let S of Object.keys(this._values))if(this._values[S].prior)return!0;return!1}}class Uc{constructor(S){this._properties=S,this._values=Object.create(S.defaultPropertyValues)}hasValue(S){return this._values[S].value!==void 0}getValue(S){return g(this._values[S].value)}setValue(S,F){this._values[S]=new $l(this._values[S].property,F===null?void 0:g(F))}serialize(){let S={};for(let F of Object.keys(this._values)){let W=this.getValue(F);W!==void 0&&(S[F]=W)}return S}possiblyEvaluate(S,F,W){let te=new Ac(this._properties);for(let fe of Object.keys(this._values))te._values[fe]=this._values[fe].possiblyEvaluate(S,F,W);return te}}class xu{constructor(S,F,W){this.property=S,this.value=F,this.parameters=W}isConstant(){return this.value.kind==="constant"}constantOr(S){return this.value.kind==="constant"?this.value.value:S}evaluate(S,F,W,te){return this.property.evaluate(this.value,this.parameters,S,F,W,te)}}class Ac{constructor(S){this._properties=S,this._values=Object.create(S.defaultPossiblyEvaluatedValues)}get(S){return this._values[S]}}class Ua{constructor(S){this.specification=S}possiblyEvaluate(S,F){if(S.isDataDriven())throw new Error("Value should not be data driven");return S.expression.evaluate(F)}interpolate(S,F,W){let te=Lo[this.specification.type];return te?te(S,F,W):S}}class oo{constructor(S,F){this.specification=S,this.overrides=F}possiblyEvaluate(S,F,W,te){return new xu(this,S.expression.kind==="constant"||S.expression.kind==="camera"?{kind:"constant",value:S.expression.evaluate(F,null,{},W,te)}:S.expression,F)}interpolate(S,F,W){if(S.value.kind!=="constant"||F.value.kind!=="constant")return S;if(S.value.value===void 0||F.value.value===void 0)return new xu(this,{kind:"constant",value:void 0},S.parameters);let te=Lo[this.specification.type];if(te){let fe=te(S.value.value,F.value.value,W);return new xu(this,{kind:"constant",value:fe},S.parameters)}return S}evaluate(S,F,W,te,fe,pe){return S.kind==="constant"?S.value:S.evaluate(F,W,te,fe,pe)}}class Vc extends oo{possiblyEvaluate(S,F,W,te){if(S.value===void 0)return new xu(this,{kind:"constant",value:void 0},F);if(S.expression.kind==="constant"){let fe=S.expression.evaluate(F,null,{},W,te),pe=S.property.specification.type==="resolvedImage"&&typeof fe!="string"?fe.name:fe,ze=this._calculate(pe,pe,pe,F);return new xu(this,{kind:"constant",value:ze},F)}if(S.expression.kind==="camera"){let fe=this._calculate(S.expression.evaluate({zoom:F.zoom-1}),S.expression.evaluate({zoom:F.zoom}),S.expression.evaluate({zoom:F.zoom+1}),F);return new xu(this,{kind:"constant",value:fe},F)}return new xu(this,S.expression,F)}evaluate(S,F,W,te,fe,pe){if(S.kind==="source"){let ze=S.evaluate(F,W,te,fe,pe);return this._calculate(ze,ze,ze,F)}return S.kind==="composite"?this._calculate(S.evaluate({zoom:Math.floor(F.zoom)-1},W,te),S.evaluate({zoom:Math.floor(F.zoom)},W,te),S.evaluate({zoom:Math.floor(F.zoom)+1},W,te),F):S.value}_calculate(S,F,W,te){return te.zoom>te.zoomHistory.lastIntegerZoom?{from:S,to:F}:{from:W,to:F}}interpolate(S){return S}}class hc{constructor(S){this.specification=S}possiblyEvaluate(S,F,W,te){if(S.value!==void 0){if(S.expression.kind==="constant"){let fe=S.expression.evaluate(F,null,{},W,te);return this._calculate(fe,fe,fe,F)}return this._calculate(S.expression.evaluate(new is(Math.floor(F.zoom-1),F)),S.expression.evaluate(new is(Math.floor(F.zoom),F)),S.expression.evaluate(new is(Math.floor(F.zoom+1),F)),F)}}_calculate(S,F,W,te){return te.zoom>te.zoomHistory.lastIntegerZoom?{from:S,to:F}:{from:W,to:F}}interpolate(S){return S}}class Ku{constructor(S){this.specification=S}possiblyEvaluate(S,F,W,te){return!!S.expression.evaluate(F,null,{},W,te)}interpolate(){return!1}}class ue{constructor(S){this.properties=S,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let F in S){let W=S[F];W.specification.overridable&&this.overridableProperties.push(F);let te=this.defaultPropertyValues[F]=new $l(W,void 0),fe=this.defaultTransitionablePropertyValues[F]=new ku(W);this.defaultTransitioningPropertyValues[F]=fe.untransitioned(),this.defaultPossiblyEvaluatedValues[F]=te.possiblyEvaluate({})}}}Di("DataDrivenProperty",oo),Di("DataConstantProperty",Ua),Di("CrossFadedDataDrivenProperty",Vc),Di("CrossFadedProperty",hc),Di("ColorRampProperty",Ku);let w="-transition";class B extends Fe{constructor(S,F){if(super(),this.id=S.id,this.type=S.type,this._featureFilter={filter:()=>!0,needGeometry:!1},S.type!=="custom"&&(this.metadata=S.metadata,this.minzoom=S.minzoom,this.maxzoom=S.maxzoom,S.type!=="background"&&(this.source=S.source,this.sourceLayer=S["source-layer"],this.filter=S.filter),F.layout&&(this._unevaluatedLayout=new Uc(F.layout)),F.paint)){this._transitionablePaint=new Yu(F.paint);for(let W in S.paint)this.setPaintProperty(W,S.paint[W],{validate:!1});for(let W in S.layout)this.setLayoutProperty(W,S.layout[W],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Ac(F.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(S){return S==="visibility"?this.visibility:this._unevaluatedLayout.getValue(S)}setLayoutProperty(S,F,W={}){F!=null&&this._validate(Bn,`layers.${this.id}.layout.${S}`,S,F,W)||(S!=="visibility"?this._unevaluatedLayout.setValue(S,F):this.visibility=F)}getPaintProperty(S){return S.endsWith(w)?this._transitionablePaint.getTransition(S.slice(0,-11)):this._transitionablePaint.getValue(S)}setPaintProperty(S,F,W={}){if(F!=null&&this._validate(Tn,`layers.${this.id}.paint.${S}`,S,F,W))return!1;if(S.endsWith(w))return this._transitionablePaint.setTransition(S.slice(0,-11),F||void 0),!1;{let te=this._transitionablePaint._values[S],fe=te.property.specification["property-type"]==="cross-faded-data-driven",pe=te.value.isDataDriven(),ze=te.value;this._transitionablePaint.setValue(S,F),this._handleSpecialPaintPropertyUpdate(S);let Ke=this._transitionablePaint._values[S].value;return Ke.isDataDriven()||pe||fe||this._handleOverridablePaintPropertyUpdate(S,ze,Ke)}}_handleSpecialPaintPropertyUpdate(S){}_handleOverridablePaintPropertyUpdate(S,F,W){return!1}isHidden(S){return!!(this.minzoom&&S=this.maxzoom)||this.visibility==="none"}updateTransitions(S){this._transitioningPaint=this._transitionablePaint.transitioned(S,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(S,F){S.getCrossfadeParameters&&(this._crossfadeParameters=S.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(S,void 0,F)),this.paint=this._transitioningPaint.possiblyEvaluate(S,void 0,F)}serialize(){let S={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(S.layout=S.layout||{},S.layout.visibility=this.visibility),M(S,(F,W)=>!(F===void 0||W==="layout"&&!Object.keys(F).length||W==="paint"&&!Object.keys(F).length))}_validate(S,F,W,te,fe={}){return(!fe||fe.validate!==!1)&&Zi(this,S.call(Ei,{key:F,layerType:this.type,objectKey:W,value:te,styleSpec:ce,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let S in this.paint._values){let F=this.paint.get(S);if(F instanceof xu&&Bl(F.property.specification)&&(F.value.kind==="source"||F.value.kind==="composite")&&F.value.isStateDependent)return!0}return!1}}let Q={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class ee{constructor(S,F){this._structArray=S,this._pos1=F*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class le{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(S,F){return S._trim(),F&&(S.isTransferred=!0,F.push(S.arrayBuffer)),{length:S.length,arrayBuffer:S.arrayBuffer}}static deserialize(S){let F=Object.create(this.prototype);return F.arrayBuffer=S.arrayBuffer,F.length=S.length,F.capacity=S.arrayBuffer.byteLength/F.bytesPerElement,F._refreshViews(),F}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(S){this.reserve(S),this.length=S}reserve(S){if(S>this.capacity){this.capacity=Math.max(S,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let F=this.uint8;this._refreshViews(),F&&this.uint8.set(F)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function qe(R,S=1){let F=0,W=0;return{members:R.map(te=>{let fe=Q[te.type].BYTES_PER_ELEMENT,pe=F=Xe(F,Math.max(S,fe)),ze=te.components||1;return W=Math.max(W,fe),F+=fe*ze,{name:te.name,type:te.type,components:ze,offset:pe}}),size:Xe(F,Math.max(W,S)),alignment:S}}function Xe(R,S){return Math.ceil(R/S)*S}class ot extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F){let W=this.length;return this.resize(W+1),this.emplace(W,S,F)}emplace(S,F,W){let te=2*S;return this.int16[te+0]=F,this.int16[te+1]=W,S}}ot.prototype.bytesPerElement=4,Di("StructArrayLayout2i4",ot);class Tt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.int16[fe+0]=F,this.int16[fe+1]=W,this.int16[fe+2]=te,S}}Tt.prototype.bytesPerElement=6,Di("StructArrayLayout3i6",Tt);class Kt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te){let fe=this.length;return this.resize(fe+1),this.emplace(fe,S,F,W,te)}emplace(S,F,W,te,fe){let pe=4*S;return this.int16[pe+0]=F,this.int16[pe+1]=W,this.int16[pe+2]=te,this.int16[pe+3]=fe,S}}Kt.prototype.bytesPerElement=8,Di("StructArrayLayout4i8",Kt);class Jt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let ze=this.length;return this.resize(ze+1),this.emplace(ze,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,ze){let Ke=6*S;return this.int16[Ke+0]=F,this.int16[Ke+1]=W,this.int16[Ke+2]=te,this.int16[Ke+3]=fe,this.int16[Ke+4]=pe,this.int16[Ke+5]=ze,S}}Jt.prototype.bytesPerElement=12,Di("StructArrayLayout2i4i12",Jt);class xr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let ze=this.length;return this.resize(ze+1),this.emplace(ze,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,ze){let Ke=4*S,ut=8*S;return this.int16[Ke+0]=F,this.int16[Ke+1]=W,this.uint8[ut+4]=te,this.uint8[ut+5]=fe,this.uint8[ut+6]=pe,this.uint8[ut+7]=ze,S}}xr.prototype.bytesPerElement=8,Di("StructArrayLayout2i4ub8",xr);class Pr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F){let W=this.length;return this.resize(W+1),this.emplace(W,S,F)}emplace(S,F,W){let te=2*S;return this.float32[te+0]=F,this.float32[te+1]=W,S}}Pr.prototype.bytesPerElement=8,Di("StructArrayLayout2f8",Pr);class ve extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,ze,Ke,ut,Lt){let Qt=this.length;return this.resize(Qt+1),this.emplace(Qt,S,F,W,te,fe,pe,ze,Ke,ut,Lt)}emplace(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt){let fr=10*S;return this.uint16[fr+0]=F,this.uint16[fr+1]=W,this.uint16[fr+2]=te,this.uint16[fr+3]=fe,this.uint16[fr+4]=pe,this.uint16[fr+5]=ze,this.uint16[fr+6]=Ke,this.uint16[fr+7]=ut,this.uint16[fr+8]=Lt,this.uint16[fr+9]=Qt,S}}ve.prototype.bytesPerElement=20,Di("StructArrayLayout10ui20",ve);class be extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr){let mr=this.length;return this.resize(mr+1),this.emplace(mr,S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr)}emplace(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr){let Lr=12*S;return this.int16[Lr+0]=F,this.int16[Lr+1]=W,this.int16[Lr+2]=te,this.int16[Lr+3]=fe,this.uint16[Lr+4]=pe,this.uint16[Lr+5]=ze,this.uint16[Lr+6]=Ke,this.uint16[Lr+7]=ut,this.int16[Lr+8]=Lt,this.int16[Lr+9]=Qt,this.int16[Lr+10]=fr,this.int16[Lr+11]=mr,S}}be.prototype.bytesPerElement=24,Di("StructArrayLayout4i4ui4i24",be);class Re extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.float32[fe+0]=F,this.float32[fe+1]=W,this.float32[fe+2]=te,S}}Re.prototype.bytesPerElement=12,Di("StructArrayLayout3f12",Re);class Be extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(S){let F=this.length;return this.resize(F+1),this.emplace(F,S)}emplace(S,F){return this.uint32[1*S+0]=F,S}}Be.prototype.bytesPerElement=4,Di("StructArrayLayout1ul4",Be);class tt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,ze,Ke,ut){let Lt=this.length;return this.resize(Lt+1),this.emplace(Lt,S,F,W,te,fe,pe,ze,Ke,ut)}emplace(S,F,W,te,fe,pe,ze,Ke,ut,Lt){let Qt=10*S,fr=5*S;return this.int16[Qt+0]=F,this.int16[Qt+1]=W,this.int16[Qt+2]=te,this.int16[Qt+3]=fe,this.int16[Qt+4]=pe,this.int16[Qt+5]=ze,this.uint32[fr+3]=Ke,this.uint16[Qt+8]=ut,this.uint16[Qt+9]=Lt,S}}tt.prototype.bytesPerElement=20,Di("StructArrayLayout6i1ul2ui20",tt);class We extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let ze=this.length;return this.resize(ze+1),this.emplace(ze,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,ze){let Ke=6*S;return this.int16[Ke+0]=F,this.int16[Ke+1]=W,this.int16[Ke+2]=te,this.int16[Ke+3]=fe,this.int16[Ke+4]=pe,this.int16[Ke+5]=ze,S}}We.prototype.bytesPerElement=12,Di("StructArrayLayout2i2i2i12",We);class it extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe){let pe=this.length;return this.resize(pe+1),this.emplace(pe,S,F,W,te,fe)}emplace(S,F,W,te,fe,pe){let ze=4*S,Ke=8*S;return this.float32[ze+0]=F,this.float32[ze+1]=W,this.float32[ze+2]=te,this.int16[Ke+6]=fe,this.int16[Ke+7]=pe,S}}it.prototype.bytesPerElement=16,Di("StructArrayLayout2f1f2i16",it);class Dt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let ze=this.length;return this.resize(ze+1),this.emplace(ze,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,ze){let Ke=16*S,ut=4*S,Lt=8*S;return this.uint8[Ke+0]=F,this.uint8[Ke+1]=W,this.float32[ut+1]=te,this.float32[ut+2]=fe,this.int16[Lt+6]=pe,this.int16[Lt+7]=ze,S}}Dt.prototype.bytesPerElement=16,Di("StructArrayLayout2ub2f2i16",Dt);class Ht extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.uint16[fe+0]=F,this.uint16[fe+1]=W,this.uint16[fe+2]=te,S}}Ht.prototype.bytesPerElement=6,Di("StructArrayLayout3ui6",Ht);class rr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi){let dn=this.length;return this.resize(dn+1),this.emplace(dn,S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi)}emplace(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi,dn){let Fi=24*S,ln=12*S,An=48*S;return this.int16[Fi+0]=F,this.int16[Fi+1]=W,this.uint16[Fi+2]=te,this.uint16[Fi+3]=fe,this.uint32[ln+2]=pe,this.uint32[ln+3]=ze,this.uint32[ln+4]=Ke,this.uint16[Fi+10]=ut,this.uint16[Fi+11]=Lt,this.uint16[Fi+12]=Qt,this.float32[ln+7]=fr,this.float32[ln+8]=mr,this.uint8[An+36]=Lr,this.uint8[An+37]=zr,this.uint8[An+38]=ui,this.uint32[ln+10]=yi,this.int16[Fi+22]=dn,S}}rr.prototype.bytesPerElement=48,Di("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",rr);class dr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi,dn,Fi,ln,An,pa,ro,Vo,Xa,sa,Mo,fo){let lo=this.length;return this.resize(lo+1),this.emplace(lo,S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi,dn,Fi,ln,An,pa,ro,Vo,Xa,sa,Mo,fo)}emplace(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi,dn,Fi,ln,An,pa,ro,Vo,Xa,sa,Mo,fo,lo){let Xn=32*S,Ro=16*S;return this.int16[Xn+0]=F,this.int16[Xn+1]=W,this.int16[Xn+2]=te,this.int16[Xn+3]=fe,this.int16[Xn+4]=pe,this.int16[Xn+5]=ze,this.int16[Xn+6]=Ke,this.int16[Xn+7]=ut,this.uint16[Xn+8]=Lt,this.uint16[Xn+9]=Qt,this.uint16[Xn+10]=fr,this.uint16[Xn+11]=mr,this.uint16[Xn+12]=Lr,this.uint16[Xn+13]=zr,this.uint16[Xn+14]=ui,this.uint16[Xn+15]=yi,this.uint16[Xn+16]=dn,this.uint16[Xn+17]=Fi,this.uint16[Xn+18]=ln,this.uint16[Xn+19]=An,this.uint16[Xn+20]=pa,this.uint16[Xn+21]=ro,this.uint16[Xn+22]=Vo,this.uint32[Ro+12]=Xa,this.float32[Ro+13]=sa,this.float32[Ro+14]=Mo,this.uint16[Xn+30]=fo,this.uint16[Xn+31]=lo,S}}dr.prototype.bytesPerElement=64,Di("StructArrayLayout8i15ui1ul2f2ui64",dr);class Sr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S){let F=this.length;return this.resize(F+1),this.emplace(F,S)}emplace(S,F){return this.float32[1*S+0]=F,S}}Sr.prototype.bytesPerElement=4,Di("StructArrayLayout1f4",Sr);class Or extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.uint16[6*S+0]=F,this.float32[fe+1]=W,this.float32[fe+2]=te,S}}Or.prototype.bytesPerElement=12,Di("StructArrayLayout1ui2f12",Or);class jr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=4*S;return this.uint32[2*S+0]=F,this.uint16[fe+2]=W,this.uint16[fe+3]=te,S}}jr.prototype.bytesPerElement=8,Di("StructArrayLayout1ul2ui8",jr);class ii extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F){let W=this.length;return this.resize(W+1),this.emplace(W,S,F)}emplace(S,F,W){let te=2*S;return this.uint16[te+0]=F,this.uint16[te+1]=W,S}}ii.prototype.bytesPerElement=4,Di("StructArrayLayout2ui4",ii);class Li extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S){let F=this.length;return this.resize(F+1),this.emplace(F,S)}emplace(S,F){return this.uint16[1*S+0]=F,S}}Li.prototype.bytesPerElement=2,Di("StructArrayLayout1ui2",Li);class un extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W,te){let fe=this.length;return this.resize(fe+1),this.emplace(fe,S,F,W,te)}emplace(S,F,W,te,fe){let pe=4*S;return this.float32[pe+0]=F,this.float32[pe+1]=W,this.float32[pe+2]=te,this.float32[pe+3]=fe,S}}un.prototype.bytesPerElement=16,Di("StructArrayLayout4f16",un);class sn extends ee{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new u(this.anchorPointX,this.anchorPointY)}}sn.prototype.size=20;class In extends tt{get(S){return new sn(this,S)}}Di("CollisionBoxArray",In);class Kn extends ee{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(S){this._structArray.uint8[this._pos1+37]=S}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(S){this._structArray.uint8[this._pos1+38]=S}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(S){this._structArray.uint32[this._pos4+10]=S}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}Kn.prototype.size=48;class Aa extends rr{get(S){return new Kn(this,S)}}Di("PlacedSymbolArray",Aa);class fa extends ee{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(S){this._structArray.uint32[this._pos4+12]=S}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}fa.prototype.size=64;class $a extends dr{get(S){return new fa(this,S)}}Di("SymbolInstanceArray",$a);class ko extends Sr{getoffsetX(S){return this.float32[1*S+0]}}Di("GlyphOffsetArray",ko);class Qa extends Tt{getx(S){return this.int16[3*S+0]}gety(S){return this.int16[3*S+1]}gettileUnitDistanceFromAnchor(S){return this.int16[3*S+2]}}Di("SymbolLineVertexArray",Qa);class mo extends ee{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}mo.prototype.size=12;class Bo extends Or{get(S){return new mo(this,S)}}Di("TextAnchorOffsetArray",Bo);class Is extends ee{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}Is.prototype.size=8;class As extends jr{get(S){return new Is(this,S)}}Di("FeatureIndexArray",As);class wo extends ot{}class To extends ot{}class dl extends ot{}class Nl extends Jt{}class Lu extends xr{}class ou extends Pr{}class $s extends ve{}class Ql extends be{}class dc extends Re{}class Tl extends Be{}class Al extends We{}class X extends Dt{}class se extends Ht{}class Te extends ii{}let Ne=qe([{name:"a_pos",components:2,type:"Int16"}],4),{members:He}=Ne;class Ze{constructor(S=[]){this.segments=S}prepareSegment(S,F,W,te){let fe=this.segments[this.segments.length-1];return S>Ze.MAX_VERTEX_ARRAY_LENGTH&&T(`Max vertices per segment is ${Ze.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${S}`),(!fe||fe.vertexLength+S>Ze.MAX_VERTEX_ARRAY_LENGTH||fe.sortKey!==te)&&(fe={vertexOffset:F.length,primitiveOffset:W.length,vertexLength:0,primitiveLength:0},te!==void 0&&(fe.sortKey=te),this.segments.push(fe)),fe}get(){return this.segments}destroy(){for(let S of this.segments)for(let F in S.vaos)S.vaos[F].destroy()}static simpleSegment(S,F,W,te){return new Ze([{vertexOffset:S,primitiveOffset:F,vertexLength:W,primitiveLength:te,vaos:{},sortKey:0}])}}function Ct(R,S){return 256*(R=E(Math.floor(R),0,255))+E(Math.floor(S),0,255)}Ze.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Di("SegmentVector",Ze);let nt=qe([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var jt={exports:{}},gr={exports:{}};gr.exports=function(R,S){var F,W,te,fe,pe,ze,Ke,ut;for(W=R.length-(F=3&R.length),te=S,pe=3432918353,ze=461845907,ut=0;ut>>16)*pe&65535)<<16)&4294967295)<<15|Ke>>>17))*ze+(((Ke>>>16)*ze&65535)<<16)&4294967295)<<13|te>>>19))+((5*(te>>>16)&65535)<<16)&4294967295))+((58964+(fe>>>16)&65535)<<16);switch(Ke=0,F){case 3:Ke^=(255&R.charCodeAt(ut+2))<<16;case 2:Ke^=(255&R.charCodeAt(ut+1))<<8;case 1:te^=Ke=(65535&(Ke=(Ke=(65535&(Ke^=255&R.charCodeAt(ut)))*pe+(((Ke>>>16)*pe&65535)<<16)&4294967295)<<15|Ke>>>17))*ze+(((Ke>>>16)*ze&65535)<<16)&4294967295}return te^=R.length,te=2246822507*(65535&(te^=te>>>16))+((2246822507*(te>>>16)&65535)<<16)&4294967295,te=3266489909*(65535&(te^=te>>>13))+((3266489909*(te>>>16)&65535)<<16)&4294967295,(te^=te>>>16)>>>0};var yr=gr.exports,Gr={exports:{}};Gr.exports=function(R,S){for(var F,W=R.length,te=S^W,fe=0;W>=4;)F=1540483477*(65535&(F=255&R.charCodeAt(fe)|(255&R.charCodeAt(++fe))<<8|(255&R.charCodeAt(++fe))<<16|(255&R.charCodeAt(++fe))<<24))+((1540483477*(F>>>16)&65535)<<16),te=1540483477*(65535&te)+((1540483477*(te>>>16)&65535)<<16)^(F=1540483477*(65535&(F^=F>>>24))+((1540483477*(F>>>16)&65535)<<16)),W-=4,++fe;switch(W){case 3:te^=(255&R.charCodeAt(fe+2))<<16;case 2:te^=(255&R.charCodeAt(fe+1))<<8;case 1:te=1540483477*(65535&(te^=255&R.charCodeAt(fe)))+((1540483477*(te>>>16)&65535)<<16)}return te=1540483477*(65535&(te^=te>>>13))+((1540483477*(te>>>16)&65535)<<16),(te^=te>>>15)>>>0};var qr=yr,_i=Gr.exports;jt.exports=qr,jt.exports.murmur3=qr,jt.exports.murmur2=_i;var bi=o(jt.exports);class Xr{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(S,F,W,te){this.ids.push(ni(S)),this.positions.push(F,W,te)}getPositions(S){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");let F=ni(S),W=0,te=this.ids.length-1;for(;W>1;this.ids[pe]>=F?te=pe:W=pe+1}let fe=[];for(;this.ids[W]===F;)fe.push({index:this.positions[3*W],start:this.positions[3*W+1],end:this.positions[3*W+2]}),W++;return fe}static serialize(S,F){let W=new Float64Array(S.ids),te=new Uint32Array(S.positions);return gi(W,te,0,W.length-1),F&&F.push(W.buffer,te.buffer),{ids:W,positions:te}}static deserialize(S){let F=new Xr;return F.ids=S.ids,F.positions=S.positions,F.indexed=!0,F}}function ni(R){let S=+R;return!isNaN(S)&&S<=Number.MAX_SAFE_INTEGER?S:bi(String(R))}function gi(R,S,F,W){for(;F>1],fe=F-1,pe=W+1;for(;;){do fe++;while(R[fe]te);if(fe>=pe)break;Pi(R,fe,pe),Pi(S,3*fe,3*pe),Pi(S,3*fe+1,3*pe+1),Pi(S,3*fe+2,3*pe+2)}pe-F`u_${te}`),this.type=W}setUniform(S,F,W){S.set(W.constantOr(this.value))}getBinding(S,F,W){return this.type==="color"?new Cn(S,F):new ti(S,F)}}class Ia{constructor(S,F){this.uniformNames=F.map(W=>`u_${W}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(S,F){this.pixelRatioFrom=F.pixelRatio,this.pixelRatioTo=S.pixelRatio,this.patternFrom=F.tlbr,this.patternTo=S.tlbr}setUniform(S,F,W,te){let fe=te==="u_pattern_to"?this.patternTo:te==="u_pattern_from"?this.patternFrom:te==="u_pixel_ratio_to"?this.pixelRatioTo:te==="u_pixel_ratio_from"?this.pixelRatioFrom:null;fe&&S.set(fe)}getBinding(S,F,W){return W.substr(0,9)==="u_pattern"?new Rn(S,F):new ti(S,F)}}class yo{constructor(S,F,W,te){this.expression=S,this.type=W,this.maxValue=0,this.paintVertexAttributes=F.map(fe=>({name:`a_${fe}`,type:"Float32",components:W==="color"?2:1,offset:0})),this.paintVertexArray=new te}populatePaintArray(S,F,W,te,fe){let pe=this.paintVertexArray.length,ze=this.expression.evaluate(new is(0),F,{},te,[],fe);this.paintVertexArray.resize(S),this._setPaintValue(pe,S,ze)}updatePaintArray(S,F,W,te){let fe=this.expression.evaluate({zoom:0},W,te);this._setPaintValue(S,F,fe)}_setPaintValue(S,F,W){if(this.type==="color"){let te=ia(W);for(let fe=S;fe`u_${ze}_t`),this.type=W,this.useIntegerZoom=te,this.zoom=fe,this.maxValue=0,this.paintVertexAttributes=F.map(ze=>({name:`a_${ze}`,type:"Float32",components:W==="color"?4:2,offset:0})),this.paintVertexArray=new pe}populatePaintArray(S,F,W,te,fe){let pe=this.expression.evaluate(new is(this.zoom),F,{},te,[],fe),ze=this.expression.evaluate(new is(this.zoom+1),F,{},te,[],fe),Ke=this.paintVertexArray.length;this.paintVertexArray.resize(S),this._setPaintValue(Ke,S,pe,ze)}updatePaintArray(S,F,W,te){let fe=this.expression.evaluate({zoom:this.zoom},W,te),pe=this.expression.evaluate({zoom:this.zoom+1},W,te);this._setPaintValue(S,F,fe,pe)}_setPaintValue(S,F,W,te){if(this.type==="color"){let fe=ia(W),pe=ia(te);for(let ze=S;ze`#define HAS_UNIFORM_${te}`))}return S}getBinderAttributes(){let S=[];for(let F in this.binders){let W=this.binders[F];if(W instanceof yo||W instanceof Da)for(let te=0;te!0){this.programConfigurations={};for(let te of S)this.programConfigurations[te.id]=new Rs(te,F,W);this.needsUpload=!1,this._featureMap=new Xr,this._bufferOffset=0}populatePaintArrays(S,F,W,te,fe,pe){for(let ze in this.programConfigurations)this.programConfigurations[ze].populatePaintArrays(S,F,te,fe,pe);F.id!==void 0&&this._featureMap.add(F.id,W,this._bufferOffset,S),this._bufferOffset=S,this.needsUpload=!0}updatePaintArrays(S,F,W,te){for(let fe of W)this.needsUpload=this.programConfigurations[fe.id].updatePaintArrays(S,this._featureMap,F,fe,te)||this.needsUpload}get(S){return this.programConfigurations[S]}upload(S){if(this.needsUpload){for(let F in this.programConfigurations)this.programConfigurations[F].upload(S);this.needsUpload=!1}}destroy(){for(let S in this.programConfigurations)this.programConfigurations[S].destroy()}}function Zs(R,S){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[R]||[R.replace(`${S}-`,"").replace(/-/g,"_")]}function Gn(R,S,F){let W={color:{source:Pr,composite:un},number:{source:Sr,composite:Pr}},te=function(fe){return{"line-pattern":{source:$s,composite:$s},"fill-pattern":{source:$s,composite:$s},"fill-extrusion-pattern":{source:$s,composite:$s}}[fe]}(R);return te&&te[F]||W[S][F]}Di("ConstantBinder",Ea),Di("CrossFadedConstantBinder",Ia),Di("SourceExpressionBinder",yo),Di("CrossFadedCompositeBinder",go),Di("CompositeExpressionBinder",Da),Di("ProgramConfiguration",Rs,{omit:["_buffers"]}),Di("ProgramConfigurationSet",Es);let Ha=8192,Fo=Math.pow(2,14)-1,Uo=-Fo-1;function Qs(R){let S=Ha/R.extent,F=R.loadGeometry();for(let W=0;Wpe.x+1||Kepe.y+1)&&T("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return F}function Sl(R,S){return{type:R.type,id:R.id,properties:R.properties,geometry:S?Qs(R):[]}}function bu(R,S,F,W,te){R.emplaceBack(2*S+(W+1)/2,2*F+(te+1)/2)}class vl{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(F=>F.id),this.index=S.index,this.hasPattern=!1,this.layoutVertexArray=new To,this.indexArray=new se,this.segments=new Ze,this.programConfigurations=new Es(S.layers,S.zoom),this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){let te=this.layers[0],fe=[],pe=null,ze=!1;te.type==="circle"&&(pe=te.layout.get("circle-sort-key"),ze=!pe.isConstant());for(let{feature:Ke,id:ut,index:Lt,sourceLayerIndex:Qt}of S){let fr=this.layers[0]._featureFilter.needGeometry,mr=Sl(Ke,fr);if(!this.layers[0]._featureFilter.filter(new is(this.zoom),mr,W))continue;let Lr=ze?pe.evaluate(mr,{},W):void 0,zr={id:ut,properties:Ke.properties,type:Ke.type,sourceLayerIndex:Qt,index:Lt,geometry:fr?mr.geometry:Qs(Ke),patterns:{},sortKey:Lr};fe.push(zr)}ze&&fe.sort((Ke,ut)=>Ke.sortKey-ut.sortKey);for(let Ke of fe){let{geometry:ut,index:Lt,sourceLayerIndex:Qt}=Ke,fr=S[Lt].feature;this.addFeature(Ke,ut,Lt,W),F.featureIndex.insert(fr,ut,Lt,Qt,this.index)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,He),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(S,F,W,te){for(let fe of F)for(let pe of fe){let ze=pe.x,Ke=pe.y;if(ze<0||ze>=Ha||Ke<0||Ke>=Ha)continue;let ut=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,S.sortKey),Lt=ut.vertexLength;bu(this.layoutVertexArray,ze,Ke,-1,-1),bu(this.layoutVertexArray,ze,Ke,1,-1),bu(this.layoutVertexArray,ze,Ke,1,1),bu(this.layoutVertexArray,ze,Ke,-1,1),this.indexArray.emplaceBack(Lt,Lt+1,Lt+2),this.indexArray.emplaceBack(Lt,Lt+3,Lt+2),ut.vertexLength+=4,ut.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,S,W,{},te)}}function Sc(R,S){for(let F=0;F1){if(Ir(R,S))return!0;for(let W=0;W1?F:F.sub(S)._mult(te)._add(S))}function mi(R,S){let F,W,te,fe=!1;for(let pe=0;peS.y!=te.y>S.y&&S.x<(te.x-W.x)*(S.y-W.y)/(te.y-W.y)+W.x&&(fe=!fe)}return fe}function Ni(R,S){let F=!1;for(let W=0,te=R.length-1;WS.y!=pe.y>S.y&&S.x<(pe.x-fe.x)*(S.y-fe.y)/(pe.y-fe.y)+fe.x&&(F=!F)}return F}function Oi(R,S,F){let W=F[0],te=F[2];if(R.xte.x&&S.x>te.x||R.yte.y&&S.y>te.y)return!1;let fe=z(R,S,F[0]);return fe!==z(R,S,F[1])||fe!==z(R,S,F[2])||fe!==z(R,S,F[3])}function Mi(R,S,F){let W=S.paint.get(R).value;return W.kind==="constant"?W.value:F.programConfigurations.get(S.id).getMaxValue(R)}function Hn(R){return Math.sqrt(R[0]*R[0]+R[1]*R[1])}function Qi(R,S,F,W,te){if(!S[0]&&!S[1])return R;let fe=u.convert(S)._mult(te);F==="viewport"&&fe._rotate(-W);let pe=[];for(let ze=0;zeli(ui,zr))}(ut,Ke),mr=Qt?Lt*ze:Lt;for(let Lr of te)for(let zr of Lr){let ui=Qt?zr:li(zr,Ke),yi=mr,dn=qn([],[zr.x,zr.y,0,1],Ke);if(this.paint.get("circle-pitch-scale")==="viewport"&&this.paint.get("circle-pitch-alignment")==="map"?yi*=dn[3]/pe.cameraToCenterDistance:this.paint.get("circle-pitch-scale")==="map"&&this.paint.get("circle-pitch-alignment")==="viewport"&&(yi*=pe.cameraToCenterDistance/dn[3]),Ee(fr,ui,yi))return!0}return!1}}function li(R,S){let F=qn([],[R.x,R.y,0,1],S);return new u(F[0]/F[3],F[1]/F[3])}class mn extends vl{}let Ki;Di("HeatmapBucket",mn,{omit:["layers"]});var Ui={get paint(){return Ki=Ki||new ue({"heatmap-radius":new oo(ce.paint_heatmap["heatmap-radius"]),"heatmap-weight":new oo(ce.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Ua(ce.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Ku(ce.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Ua(ce.paint_heatmap["heatmap-opacity"])})}};function Bi(R,{width:S,height:F},W,te){if(te){if(te instanceof Uint8ClampedArray)te=new Uint8Array(te.buffer);else if(te.length!==S*F*W)throw new RangeError(`mismatched image size. expected: ${te.length} but got: ${S*F*W}`)}else te=new Uint8Array(S*F*W);return R.width=S,R.height=F,R.data=te,R}function vn(R,{width:S,height:F},W){if(S===R.width&&F===R.height)return;let te=Bi({},{width:S,height:F},W);Un(R,te,{x:0,y:0},{x:0,y:0},{width:Math.min(R.width,S),height:Math.min(R.height,F)},W),R.width=S,R.height=F,R.data=te.data}function Un(R,S,F,W,te,fe){if(te.width===0||te.height===0)return S;if(te.width>R.width||te.height>R.height||F.x>R.width-te.width||F.y>R.height-te.height)throw new RangeError("out of range source coordinates for image copy");if(te.width>S.width||te.height>S.height||W.x>S.width-te.width||W.y>S.height-te.height)throw new RangeError("out of range destination coordinates for image copy");let pe=R.data,ze=S.data;if(pe===ze)throw new Error("srcData equals dstData, so image is already copied");for(let Ke=0;Ke{S[R.evaluationKey]=Ke;let ut=R.expression.evaluate(S);te.data[pe+ze+0]=Math.floor(255*ut.r/ut.a),te.data[pe+ze+1]=Math.floor(255*ut.g/ut.a),te.data[pe+ze+2]=Math.floor(255*ut.b/ut.a),te.data[pe+ze+3]=Math.floor(255*ut.a)};if(R.clips)for(let pe=0,ze=0;pe80*F){ze=1/0,Ke=1/0;let Lt=-1/0,Qt=-1/0;for(let fr=F;frLt&&(Lt=mr),Lr>Qt&&(Qt=Lr)}ut=Math.max(Lt-ze,Qt-Ke),ut=ut!==0?32767/ut:0}return Ul(fe,pe,F,ze,Ke,ut,0),pe}function el(R,S,F,W,te){let fe;if(te===function(pe,ze,Ke,ut){let Lt=0;for(let Qt=ze,fr=Ke-ut;Qt0)for(let pe=S;pe=S;pe-=W)fe=qt(pe/W|0,R[pe],R[pe+1],fe);return fe&&ne(fe,fe.next)&&(Ve(fe),fe=fe.next),fe}function ol(R,S){if(!R)return R;S||(S=R);let F,W=R;do if(F=!1,W.steiner||!ne(W,W.next)&&de(W.prev,W,W.next)!==0)W=W.next;else{if(Ve(W),W=S=W.prev,W===W.next)break;F=!0}while(F||W!==S);return S}function Ul(R,S,F,W,te,fe,pe){if(!R)return;!pe&&fe&&function(Ke,ut,Lt,Qt){let fr=Ke;do fr.z===0&&(fr.z=D(fr.x,fr.y,ut,Lt,Qt)),fr.prevZ=fr.prev,fr.nextZ=fr.next,fr=fr.next;while(fr!==Ke);fr.prevZ.nextZ=null,fr.prevZ=null,function(mr){let Lr,zr=1;do{let ui,yi=mr;mr=null;let dn=null;for(Lr=0;yi;){Lr++;let Fi=yi,ln=0;for(let pa=0;pa0||An>0&&Fi;)ln!==0&&(An===0||!Fi||yi.z<=Fi.z)?(ui=yi,yi=yi.nextZ,ln--):(ui=Fi,Fi=Fi.nextZ,An--),dn?dn.nextZ=ui:mr=ui,ui.prevZ=dn,dn=ui;yi=Fi}dn.nextZ=null,zr*=2}while(Lr>1)}(fr)}(R,W,te,fe);let ze=R;for(;R.prev!==R.next;){let Ke=R.prev,ut=R.next;if(fe?Gs(R,W,te,fe):ls(R))S.push(Ke.i,R.i,ut.i),Ve(R),R=ut.next,ze=ut.next;else if((R=ut)===ze){pe?pe===1?Ul(R=Ks(ol(R),S),S,F,W,te,fe,2):pe===2&&Ta(R,S,F,W,te,fe):Ul(ol(R),S,F,W,te,fe,1);break}}}function ls(R){let S=R.prev,F=R,W=R.next;if(de(S,F,W)>=0)return!1;let te=S.x,fe=F.x,pe=W.x,ze=S.y,Ke=F.y,ut=W.y,Lt=tefe?te>pe?te:pe:fe>pe?fe:pe,mr=ze>Ke?ze>ut?ze:ut:Ke>ut?Ke:ut,Lr=W.next;for(;Lr!==S;){if(Lr.x>=Lt&&Lr.x<=fr&&Lr.y>=Qt&&Lr.y<=mr&&q(te,ze,fe,Ke,pe,ut,Lr.x,Lr.y)&&de(Lr.prev,Lr,Lr.next)>=0)return!1;Lr=Lr.next}return!0}function Gs(R,S,F,W){let te=R.prev,fe=R,pe=R.next;if(de(te,fe,pe)>=0)return!1;let ze=te.x,Ke=fe.x,ut=pe.x,Lt=te.y,Qt=fe.y,fr=pe.y,mr=zeKe?ze>ut?ze:ut:Ke>ut?Ke:ut,ui=Lt>Qt?Lt>fr?Lt:fr:Qt>fr?Qt:fr,yi=D(mr,Lr,S,F,W),dn=D(zr,ui,S,F,W),Fi=R.prevZ,ln=R.nextZ;for(;Fi&&Fi.z>=yi&&ln&&ln.z<=dn;){if(Fi.x>=mr&&Fi.x<=zr&&Fi.y>=Lr&&Fi.y<=ui&&Fi!==te&&Fi!==pe&&q(ze,Lt,Ke,Qt,ut,fr,Fi.x,Fi.y)&&de(Fi.prev,Fi,Fi.next)>=0||(Fi=Fi.prevZ,ln.x>=mr&&ln.x<=zr&&ln.y>=Lr&&ln.y<=ui&&ln!==te&&ln!==pe&&q(ze,Lt,Ke,Qt,ut,fr,ln.x,ln.y)&&de(ln.prev,ln,ln.next)>=0))return!1;ln=ln.nextZ}for(;Fi&&Fi.z>=yi;){if(Fi.x>=mr&&Fi.x<=zr&&Fi.y>=Lr&&Fi.y<=ui&&Fi!==te&&Fi!==pe&&q(ze,Lt,Ke,Qt,ut,fr,Fi.x,Fi.y)&&de(Fi.prev,Fi,Fi.next)>=0)return!1;Fi=Fi.prevZ}for(;ln&&ln.z<=dn;){if(ln.x>=mr&&ln.x<=zr&&ln.y>=Lr&&ln.y<=ui&&ln!==te&&ln!==pe&&q(ze,Lt,Ke,Qt,ut,fr,ln.x,ln.y)&&de(ln.prev,ln,ln.next)>=0)return!1;ln=ln.nextZ}return!0}function Ks(R,S){let F=R;do{let W=F.prev,te=F.next.next;!ne(W,te)&&we(W,F,F.next,te)&&Zt(W,te)&&Zt(te,W)&&(S.push(W.i,F.i,te.i),Ve(F),Ve(F.next),F=R=te),F=F.next}while(F!==R);return ol(F)}function Ta(R,S,F,W,te,fe){let pe=R;do{let ze=pe.next.next;for(;ze!==pe.prev;){if(pe.i!==ze.i&&K(pe,ze)){let Ke=hr(pe,ze);return pe=ol(pe,pe.next),Ke=ol(Ke,Ke.next),Ul(pe,S,F,W,te,fe,0),void Ul(Ke,S,F,W,te,fe,0)}ze=ze.next}pe=pe.next}while(pe!==R)}function sl(R,S){return R.x-S.x}function io(R,S){let F=function(te,fe){let pe=fe,ze=te.x,Ke=te.y,ut,Lt=-1/0;do{if(Ke<=pe.y&&Ke>=pe.next.y&&pe.next.y!==pe.y){let zr=pe.x+(Ke-pe.y)*(pe.next.x-pe.x)/(pe.next.y-pe.y);if(zr<=ze&&zr>Lt&&(Lt=zr,ut=pe.x=pe.x&&pe.x>=fr&&ze!==pe.x&&q(Keut.x||pe.x===ut.x&&Y(ut,pe)))&&(ut=pe,Lr=zr)}pe=pe.next}while(pe!==Qt);return ut}(R,S);if(!F)return S;let W=hr(F,R);return ol(W,W.next),ol(F,F.next)}function Y(R,S){return de(R.prev,R,S.prev)<0&&de(S.next,R,R.next)<0}function D(R,S,F,W,te){return(R=1431655765&((R=858993459&((R=252645135&((R=16711935&((R=(R-F)*te|0)|R<<8))|R<<4))|R<<2))|R<<1))|(S=1431655765&((S=858993459&((S=252645135&((S=16711935&((S=(S-W)*te|0)|S<<8))|S<<4))|S<<2))|S<<1))<<1}function J(R){let S=R,F=R;do(S.x=(R-pe)*(fe-ze)&&(R-pe)*(W-ze)>=(F-pe)*(S-ze)&&(F-pe)*(fe-ze)>=(te-pe)*(W-ze)}function K(R,S){return R.next.i!==S.i&&R.prev.i!==S.i&&!function(F,W){let te=F;do{if(te.i!==F.i&&te.next.i!==F.i&&te.i!==W.i&&te.next.i!==W.i&&we(te,te.next,F,W))return!0;te=te.next}while(te!==F);return!1}(R,S)&&(Zt(R,S)&&Zt(S,R)&&function(F,W){let te=F,fe=!1,pe=(F.x+W.x)/2,ze=(F.y+W.y)/2;do te.y>ze!=te.next.y>ze&&te.next.y!==te.y&&pe<(te.next.x-te.x)*(ze-te.y)/(te.next.y-te.y)+te.x&&(fe=!fe),te=te.next;while(te!==F);return fe}(R,S)&&(de(R.prev,R,S.prev)||de(R,S.prev,S))||ne(R,S)&&de(R.prev,R,R.next)>0&&de(S.prev,S,S.next)>0)}function de(R,S,F){return(S.y-R.y)*(F.x-S.x)-(S.x-R.x)*(F.y-S.y)}function ne(R,S){return R.x===S.x&&R.y===S.y}function we(R,S,F,W){let te=ft(de(R,S,F)),fe=ft(de(R,S,W)),pe=ft(de(F,W,R)),ze=ft(de(F,W,S));return te!==fe&&pe!==ze||!(te!==0||!Ue(R,F,S))||!(fe!==0||!Ue(R,W,S))||!(pe!==0||!Ue(F,R,W))||!(ze!==0||!Ue(F,S,W))}function Ue(R,S,F){return S.x<=Math.max(R.x,F.x)&&S.x>=Math.min(R.x,F.x)&&S.y<=Math.max(R.y,F.y)&&S.y>=Math.min(R.y,F.y)}function ft(R){return R>0?1:R<0?-1:0}function Zt(R,S){return de(R.prev,R,R.next)<0?de(R,S,R.next)>=0&&de(R,R.prev,S)>=0:de(R,S,R.prev)<0||de(R,R.next,S)<0}function hr(R,S){let F=et(R.i,R.x,R.y),W=et(S.i,S.x,S.y),te=R.next,fe=S.prev;return R.next=S,S.prev=R,F.next=te,te.prev=F,W.next=F,F.prev=W,fe.next=W,W.prev=fe,W}function qt(R,S,F,W){let te=et(R,S,F);return W?(te.next=W.next,te.prev=W,W.next.prev=te,W.next=te):(te.prev=te,te.next=te),te}function Ve(R){R.next.prev=R.prev,R.prev.next=R.next,R.prevZ&&(R.prevZ.nextZ=R.nextZ),R.nextZ&&(R.nextZ.prevZ=R.prevZ)}function et(R,S,F){return{i:R,x:S,y:F,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function at(R,S,F){let W=F.patternDependencies,te=!1;for(let fe of S){let pe=fe.paint.get(`${R}-pattern`);pe.isConstant()||(te=!0);let ze=pe.constantOr(null);ze&&(te=!0,W[ze.to]=!0,W[ze.from]=!0)}return te}function kt(R,S,F,W,te){let fe=te.patternDependencies;for(let pe of S){let ze=pe.paint.get(`${R}-pattern`).value;if(ze.kind!=="constant"){let Ke=ze.evaluate({zoom:W-1},F,{},te.availableImages),ut=ze.evaluate({zoom:W},F,{},te.availableImages),Lt=ze.evaluate({zoom:W+1},F,{},te.availableImages);Ke=Ke&&Ke.name?Ke.name:Ke,ut=ut&&ut.name?ut.name:ut,Lt=Lt&&Lt.name?Lt.name:Lt,fe[Ke]=!0,fe[ut]=!0,fe[Lt]=!0,F.patterns[pe.id]={min:Ke,mid:ut,max:Lt}}}return F}class Ot{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(F=>F.id),this.index=S.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new dl,this.indexArray=new se,this.indexArray2=new Te,this.programConfigurations=new Es(S.layers,S.zoom),this.segments=new Ze,this.segments2=new Ze,this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){this.hasPattern=at("fill",this.layers,F);let te=this.layers[0].layout.get("fill-sort-key"),fe=!te.isConstant(),pe=[];for(let{feature:ze,id:Ke,index:ut,sourceLayerIndex:Lt}of S){let Qt=this.layers[0]._featureFilter.needGeometry,fr=Sl(ze,Qt);if(!this.layers[0]._featureFilter.filter(new is(this.zoom),fr,W))continue;let mr=fe?te.evaluate(fr,{},W,F.availableImages):void 0,Lr={id:Ke,properties:ze.properties,type:ze.type,sourceLayerIndex:Lt,index:ut,geometry:Qt?fr.geometry:Qs(ze),patterns:{},sortKey:mr};pe.push(Lr)}fe&&pe.sort((ze,Ke)=>ze.sortKey-Ke.sortKey);for(let ze of pe){let{geometry:Ke,index:ut,sourceLayerIndex:Lt}=ze;if(this.hasPattern){let Qt=kt("fill",this.layers,ze,this.zoom,F);this.patternFeatures.push(Qt)}else this.addFeature(ze,Ke,ut,W,{});F.featureIndex.insert(S[ut].feature,Ke,ut,Lt,this.index)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}addFeatures(S,F,W){for(let te of this.patternFeatures)this.addFeature(te,te.geometry,te.index,F,W)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,Ml),this.indexBuffer=S.createIndexBuffer(this.indexArray),this.indexBuffer2=S.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(S,F,W,te,fe){for(let pe of Cf(F,500)){let ze=0;for(let mr of pe)ze+=mr.length;let Ke=this.segments.prepareSegment(ze,this.layoutVertexArray,this.indexArray),ut=Ke.vertexLength,Lt=[],Qt=[];for(let mr of pe){if(mr.length===0)continue;mr!==pe[0]&&Qt.push(Lt.length/2);let Lr=this.segments2.prepareSegment(mr.length,this.layoutVertexArray,this.indexArray2),zr=Lr.vertexLength;this.layoutVertexArray.emplaceBack(mr[0].x,mr[0].y),this.indexArray2.emplaceBack(zr+mr.length-1,zr),Lt.push(mr[0].x),Lt.push(mr[0].y);for(let ui=1;ui>3}if(te--,W===1||W===2)fe+=R.readSVarint(),pe+=R.readSVarint(),W===1&&(S&&ze.push(S),S=[]),S.push(new Nr(fe,pe));else{if(W!==7)throw new Error("unknown command "+W);S&&S.push(S[0].clone())}}return S&&ze.push(S),ze},hi.prototype.bbox=function(){var R=this._pbf;R.pos=this._geometry;for(var S=R.readVarint()+R.pos,F=1,W=0,te=0,fe=0,pe=1/0,ze=-1/0,Ke=1/0,ut=-1/0;R.pos>3}if(W--,F===1||F===2)(te+=R.readSVarint())ze&&(ze=te),(fe+=R.readSVarint())ut&&(ut=fe);else if(F!==7)throw new Error("unknown command "+F)}return[pe,Ke,ze,ut]},hi.prototype.toGeoJSON=function(R,S,F){var W,te,fe=this.extent*Math.pow(2,F),pe=this.extent*R,ze=this.extent*S,Ke=this.loadGeometry(),ut=hi.types[this.type];function Lt(mr){for(var Lr=0;Lr>3;te=pe===1?W.readString():pe===2?W.readFloat():pe===3?W.readDouble():pe===4?W.readVarint64():pe===5?W.readVarint():pe===6?W.readSVarint():pe===7?W.readBoolean():null}return te}(F))}qi.prototype.feature=function(R){if(R<0||R>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[R];var S=this._pbf.readVarint()+this._pbf.pos;return new tn(this._pbf,S,this.extent,this._keys,this._values)};var on=Ci;function On(R,S,F){if(R===3){var W=new on(F,F.readVarint()+F.pos);W.length&&(S[W.name]=W)}}br.VectorTile=function(R,S){this.layers=R.readFields(On,{},S)},br.VectorTileFeature=Ri,br.VectorTileLayer=Ci;let Ja=br.VectorTileFeature.types,co=Math.pow(2,13);function rs(R,S,F,W,te,fe,pe,ze){R.emplaceBack(S,F,2*Math.floor(W*co)+pe,te*co*2,fe*co*2,Math.round(ze))}class so{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(F=>F.id),this.index=S.index,this.hasPattern=!1,this.layoutVertexArray=new Nl,this.centroidVertexArray=new wo,this.indexArray=new se,this.programConfigurations=new Es(S.layers,S.zoom),this.segments=new Ze,this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){this.features=[],this.hasPattern=at("fill-extrusion",this.layers,F);for(let{feature:te,id:fe,index:pe,sourceLayerIndex:ze}of S){let Ke=this.layers[0]._featureFilter.needGeometry,ut=Sl(te,Ke);if(!this.layers[0]._featureFilter.filter(new is(this.zoom),ut,W))continue;let Lt={id:fe,sourceLayerIndex:ze,index:pe,geometry:Ke?ut.geometry:Qs(te),properties:te.properties,type:te.type,patterns:{}};this.hasPattern?this.features.push(kt("fill-extrusion",this.layers,Lt,this.zoom,F)):this.addFeature(Lt,Lt.geometry,pe,W,{}),F.featureIndex.insert(te,Lt.geometry,pe,ze,this.index,!0)}}addFeatures(S,F,W){for(let te of this.features){let{geometry:fe}=te;this.addFeature(te,fe,te.index,F,W)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,cr),this.centroidVertexBuffer=S.createVertexBuffer(this.centroidVertexArray,ht.members,!0),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(S,F,W,te,fe){for(let pe of Cf(F,500)){let ze={x:0,y:0,vertexCount:0},Ke=0;for(let Lr of pe)Ke+=Lr.length;let ut=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(let Lr of pe){if(Lr.length===0||ys(Lr))continue;let zr=0;for(let ui=0;ui=1){let dn=Lr[ui-1];if(!Zo(yi,dn)){ut.vertexLength+4>Ze.MAX_VERTEX_ARRAY_LENGTH&&(ut=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let Fi=yi.sub(dn)._perp()._unit(),ln=dn.dist(yi);zr+ln>32768&&(zr=0),rs(this.layoutVertexArray,yi.x,yi.y,Fi.x,Fi.y,0,0,zr),rs(this.layoutVertexArray,yi.x,yi.y,Fi.x,Fi.y,0,1,zr),ze.x+=2*yi.x,ze.y+=2*yi.y,ze.vertexCount+=2,zr+=ln,rs(this.layoutVertexArray,dn.x,dn.y,Fi.x,Fi.y,0,0,zr),rs(this.layoutVertexArray,dn.x,dn.y,Fi.x,Fi.y,0,1,zr),ze.x+=2*dn.x,ze.y+=2*dn.y,ze.vertexCount+=2;let An=ut.vertexLength;this.indexArray.emplaceBack(An,An+2,An+1),this.indexArray.emplaceBack(An+1,An+2,An+3),ut.vertexLength+=4,ut.primitiveLength+=2}}}}if(ut.vertexLength+Ke>Ze.MAX_VERTEX_ARRAY_LENGTH&&(ut=this.segments.prepareSegment(Ke,this.layoutVertexArray,this.indexArray)),Ja[S.type]!=="Polygon")continue;let Lt=[],Qt=[],fr=ut.vertexLength;for(let Lr of pe)if(Lr.length!==0){Lr!==pe[0]&&Qt.push(Lt.length/2);for(let zr=0;zrHa)||R.y===S.y&&(R.y<0||R.y>Ha)}function ys(R){return R.every(S=>S.x<0)||R.every(S=>S.x>Ha)||R.every(S=>S.y<0)||R.every(S=>S.y>Ha)}let su;Di("FillExtrusionBucket",so,{omit:["layers","features"]});var Mv={get paint(){return su=su||new ue({"fill-extrusion-opacity":new Ua(ce["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new oo(ce["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Ua(ce["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Ua(ce["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Vc(ce["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new oo(ce["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new oo(ce["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Ua(ce["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class Ev extends B{constructor(S){super(S,Mv)}createBucket(S){return new so(S)}queryRadius(){return Hn(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(S,F,W,te,fe,pe,ze,Ke){let ut=Qi(S,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),pe.angle,ze),Lt=this.paint.get("fill-extrusion-height").evaluate(F,W),Qt=this.paint.get("fill-extrusion-base").evaluate(F,W),fr=function(Lr,zr,ui,yi){let dn=[];for(let Fi of Lr){let ln=[Fi.x,Fi.y,0,1];qn(ln,ln,zr),dn.push(new u(ln[0]/ln[3],ln[1]/ln[3]))}return dn}(ut,Ke),mr=function(Lr,zr,ui,yi){let dn=[],Fi=[],ln=yi[8]*zr,An=yi[9]*zr,pa=yi[10]*zr,ro=yi[11]*zr,Vo=yi[8]*ui,Xa=yi[9]*ui,sa=yi[10]*ui,Mo=yi[11]*ui;for(let fo of Lr){let lo=[],Xn=[];for(let Ro of fo){let uo=Ro.x,$o=Ro.y,Ju=yi[0]*uo+yi[4]*$o+yi[12],qu=yi[1]*uo+yi[5]*$o+yi[13],Th=yi[2]*uo+yi[6]*$o+yi[14],$v=yi[3]*uo+yi[7]*$o+yi[15],ld=Th+pa,Ah=$v+ro,Gd=Ju+Vo,Hd=qu+Xa,jd=Th+sa,Tf=$v+Mo,Sh=new u((Ju+ln)/Ah,(qu+An)/Ah);Sh.z=ld/Ah,lo.push(Sh);let Ed=new u(Gd/Tf,Hd/Tf);Ed.z=jd/Tf,Xn.push(Ed)}dn.push(lo),Fi.push(Xn)}return[dn,Fi]}(te,Qt,Lt,Ke);return function(Lr,zr,ui){let yi=1/0;xt(ui,zr)&&(yi=Yv(ui,zr[0]));for(let dn=0;dnF.id),this.index=S.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(F=>{this.gradients[F.id]={}}),this.layoutVertexArray=new Lu,this.layoutVertexArray2=new ou,this.indexArray=new se,this.programConfigurations=new Es(S.layers,S.zoom),this.segments=new Ze,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){this.hasPattern=at("line",this.layers,F);let te=this.layers[0].layout.get("line-sort-key"),fe=!te.isConstant(),pe=[];for(let{feature:ze,id:Ke,index:ut,sourceLayerIndex:Lt}of S){let Qt=this.layers[0]._featureFilter.needGeometry,fr=Sl(ze,Qt);if(!this.layers[0]._featureFilter.filter(new is(this.zoom),fr,W))continue;let mr=fe?te.evaluate(fr,{},W):void 0,Lr={id:Ke,properties:ze.properties,type:ze.type,sourceLayerIndex:Lt,index:ut,geometry:Qt?fr.geometry:Qs(ze),patterns:{},sortKey:mr};pe.push(Lr)}fe&&pe.sort((ze,Ke)=>ze.sortKey-Ke.sortKey);for(let ze of pe){let{geometry:Ke,index:ut,sourceLayerIndex:Lt}=ze;if(this.hasPattern){let Qt=kt("line",this.layers,ze,this.zoom,F);this.patternFeatures.push(Qt)}else this.addFeature(ze,Ke,ut,W,{});F.featureIndex.insert(S[ut].feature,Ke,ut,Lt,this.index)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}addFeatures(S,F,W){for(let te of this.patternFeatures)this.addFeature(te,te.geometry,te.index,F,W)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=S.createVertexBuffer(this.layoutVertexArray2,vp)),this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,dp),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(S){if(S.properties&&Object.prototype.hasOwnProperty.call(S.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(S.properties,"mapbox_clip_end"))return{start:+S.properties.mapbox_clip_start,end:+S.properties.mapbox_clip_end}}addFeature(S,F,W,te,fe){let pe=this.layers[0].layout,ze=pe.get("line-join").evaluate(S,{}),Ke=pe.get("line-cap"),ut=pe.get("line-miter-limit"),Lt=pe.get("line-round-limit");this.lineClips=this.lineFeatureClips(S);for(let Qt of F)this.addLine(Qt,S,ze,Ke,ut,Lt);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,S,W,fe,te)}addLine(S,F,W,te,fe,pe){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let yi=0;yi=2&&S[Ke-1].equals(S[Ke-2]);)Ke--;let ut=0;for(;ut0;if(ro&&yi>ut){let Mo=fr.dist(mr);if(Mo>2*Lt){let fo=fr.sub(fr.sub(mr)._mult(Lt/Mo)._round());this.updateDistance(mr,fo),this.addCurrentVertex(fo,zr,0,0,Qt),mr=fo}}let Xa=mr&&Lr,sa=Xa?W:ze?"butt":te;if(Xa&&sa==="round"&&(Anfe&&(sa="bevel"),sa==="bevel"&&(An>2&&(sa="flipbevel"),An100)dn=ui.mult(-1);else{let Mo=An*zr.add(ui).mag()/zr.sub(ui).mag();dn._perp()._mult(Mo*(Vo?-1:1))}this.addCurrentVertex(fr,dn,0,0,Qt),this.addCurrentVertex(fr,dn.mult(-1),0,0,Qt)}else if(sa==="bevel"||sa==="fakeround"){let Mo=-Math.sqrt(An*An-1),fo=Vo?Mo:0,lo=Vo?0:Mo;if(mr&&this.addCurrentVertex(fr,zr,fo,lo,Qt),sa==="fakeround"){let Xn=Math.round(180*pa/Math.PI/20);for(let Ro=1;Ro2*Lt){let fo=fr.add(Lr.sub(fr)._mult(Lt/Mo)._round());this.updateDistance(fr,fo),this.addCurrentVertex(fo,ui,0,0,Qt),fr=fo}}}}addCurrentVertex(S,F,W,te,fe,pe=!1){let ze=F.y*te-F.x,Ke=-F.y-F.x*te;this.addHalfVertex(S,F.x+F.y*W,F.y-F.x*W,pe,!1,W,fe),this.addHalfVertex(S,ze,Ke,pe,!0,-te,fe),this.distance>Cv/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(S,F,W,te,fe,pe))}addHalfVertex({x:S,y:F},W,te,fe,pe,ze,Ke){let ut=.5*(this.lineClips?this.scaledDistance*(Cv-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((S<<1)+(fe?1:0),(F<<1)+(pe?1:0),Math.round(63*W)+128,Math.round(63*te)+128,1+(ze===0?0:ze<0?-1:1)|(63&ut)<<2,ut>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);let Lt=Ke.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Lt),Ke.primitiveLength++),pe?this.e2=Lt:this.e1=Lt}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(S,F){this.distance+=S.dist(F),this.updateScaledDistance()}}let kv,ny;Di("LineBucket",Kv,{omit:["layers","patternFeatures"]});var fg={get paint(){return ny=ny||new ue({"line-opacity":new oo(ce.paint_line["line-opacity"]),"line-color":new oo(ce.paint_line["line-color"]),"line-translate":new Ua(ce.paint_line["line-translate"]),"line-translate-anchor":new Ua(ce.paint_line["line-translate-anchor"]),"line-width":new oo(ce.paint_line["line-width"]),"line-gap-width":new oo(ce.paint_line["line-gap-width"]),"line-offset":new oo(ce.paint_line["line-offset"]),"line-blur":new oo(ce.paint_line["line-blur"]),"line-dasharray":new hc(ce.paint_line["line-dasharray"]),"line-pattern":new Vc(ce.paint_line["line-pattern"]),"line-gradient":new Ku(ce.paint_line["line-gradient"])})},get layout(){return kv=kv||new ue({"line-cap":new Ua(ce.layout_line["line-cap"]),"line-join":new oo(ce.layout_line["line-join"]),"line-miter-limit":new Ua(ce.layout_line["line-miter-limit"]),"line-round-limit":new Ua(ce.layout_line["line-round-limit"]),"line-sort-key":new oo(ce.layout_line["line-sort-key"])})}};class oh extends oo{possiblyEvaluate(S,F){return F=new is(Math.floor(F.zoom),{now:F.now,fadeDuration:F.fadeDuration,zoomHistory:F.zoomHistory,transition:F.transition}),super.possiblyEvaluate(S,F)}evaluate(S,F,W,te){return F=L({},F,{zoom:Math.floor(F.zoom)}),super.evaluate(S,F,W,te)}}let hg;class ay extends B{constructor(S){super(S,fg),this.gradientVersion=0,hg||(hg=new oh(fg.paint.properties["line-width"].specification),hg.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(S){if(S==="line-gradient"){let F=this.gradientExpression();this.stepInterpolant=!!function(W){return W._styleExpression!==void 0}(F)&&F._styleExpression.expression instanceof _n,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(S,F){super.recalculate(S,F),this.paint._values["line-floorwidth"]=hg.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,S)}createBucket(S){return new Kv(S)}queryRadius(S){let F=S,W=Gh(Mi("line-width",this,F),Mi("line-gap-width",this,F)),te=Mi("line-offset",this,F);return W/2+Math.abs(te)+Hn(this.paint.get("line-translate"))}queryIntersectsFeature(S,F,W,te,fe,pe,ze){let Ke=Qi(S,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),pe.angle,ze),ut=ze/2*Gh(this.paint.get("line-width").evaluate(F,W),this.paint.get("line-gap-width").evaluate(F,W)),Lt=this.paint.get("line-offset").evaluate(F,W);return Lt&&(te=function(Qt,fr){let mr=[];for(let Lr=0;Lr=3){for(let ui=0;ui0?S+2*R:R}let rm=qe([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),w1=qe([{name:"a_projected_pos",components:3,type:"Float32"}],4);qe([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);let T1=qe([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);qe([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);let oy=qe([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),im=qe([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function nm(R,S,F){return R.sections.forEach(W=>{W.text=function(te,fe,pe){let ze=fe.layout.get("text-transform").evaluate(pe,{});return ze==="uppercase"?te=te.toLocaleUpperCase():ze==="lowercase"&&(te=te.toLocaleLowerCase()),_s.applyArabicShaping&&(te=_s.applyArabicShaping(te)),te}(W.text,S,F)}),R}qe([{name:"triangle",components:3,type:"Uint16"}]),qe([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),qe([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"}]),qe([{type:"Float32",name:"offsetX"}]),qe([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),qe([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);let vc={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};var eu=24,Sd=wu,sy=function(R,S,F,W,te){var fe,pe,ze=8*te-W-1,Ke=(1<>1,Lt=-7,Qt=F?te-1:0,fr=F?-1:1,mr=R[S+Qt];for(Qt+=fr,fe=mr&(1<<-Lt)-1,mr>>=-Lt,Lt+=ze;Lt>0;fe=256*fe+R[S+Qt],Qt+=fr,Lt-=8);for(pe=fe&(1<<-Lt)-1,fe>>=-Lt,Lt+=W;Lt>0;pe=256*pe+R[S+Qt],Qt+=fr,Lt-=8);if(fe===0)fe=1-ut;else{if(fe===Ke)return pe?NaN:1/0*(mr?-1:1);pe+=Math.pow(2,W),fe-=ut}return(mr?-1:1)*pe*Math.pow(2,fe-W)},A1=function(R,S,F,W,te,fe){var pe,ze,Ke,ut=8*fe-te-1,Lt=(1<>1,fr=te===23?Math.pow(2,-24)-Math.pow(2,-77):0,mr=W?0:fe-1,Lr=W?1:-1,zr=S<0||S===0&&1/S<0?1:0;for(S=Math.abs(S),isNaN(S)||S===1/0?(ze=isNaN(S)?1:0,pe=Lt):(pe=Math.floor(Math.log(S)/Math.LN2),S*(Ke=Math.pow(2,-pe))<1&&(pe--,Ke*=2),(S+=pe+Qt>=1?fr/Ke:fr*Math.pow(2,1-Qt))*Ke>=2&&(pe++,Ke/=2),pe+Qt>=Lt?(ze=0,pe=Lt):pe+Qt>=1?(ze=(S*Ke-1)*Math.pow(2,te),pe+=Qt):(ze=S*Math.pow(2,Qt-1)*Math.pow(2,te),pe=0));te>=8;R[F+mr]=255&ze,mr+=Lr,ze/=256,te-=8);for(pe=pe<0;R[F+mr]=255&pe,mr+=Lr,pe/=256,ut-=8);R[F+mr-Lr]|=128*zr};function wu(R){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(R)?R:new Uint8Array(R||0),this.pos=0,this.type=0,this.length=this.buf.length}wu.Varint=0,wu.Fixed64=1,wu.Bytes=2,wu.Fixed32=5;var Nx=4294967296,am=1/Nx,Mw=typeof TextDecoder=="undefined"?null:new TextDecoder("utf-8");function Lv(R){return R.type===wu.Bytes?R.readVarint()+R.pos:R.pos+1}function om(R,S,F){return F?4294967296*S+(R>>>0):4294967296*(S>>>0)+(R>>>0)}function Ew(R,S,F){var W=S<=16383?1:S<=2097151?2:S<=268435455?3:Math.floor(Math.log(S)/(7*Math.LN2));F.realloc(W);for(var te=F.pos-1;te>=R;te--)F.buf[te+W]=F.buf[te]}function Ux(R,S){for(var F=0;F>>8,R[F+2]=S>>>16,R[F+3]=S>>>24}function pk(R,S){return(R[S]|R[S+1]<<8|R[S+2]<<16)+(R[S+3]<<24)}wu.prototype={destroy:function(){this.buf=null},readFields:function(R,S,F){for(F=F||this.length;this.pos>3,fe=this.pos;this.type=7&W,R(te,S,this),this.pos===fe&&this.skip(W)}return S},readMessage:function(R,S){return this.readFields(R,S,this.readVarint()+this.pos)},readFixed32:function(){var R=ly(this.buf,this.pos);return this.pos+=4,R},readSFixed32:function(){var R=pk(this.buf,this.pos);return this.pos+=4,R},readFixed64:function(){var R=ly(this.buf,this.pos)+ly(this.buf,this.pos+4)*Nx;return this.pos+=8,R},readSFixed64:function(){var R=ly(this.buf,this.pos)+pk(this.buf,this.pos+4)*Nx;return this.pos+=8,R},readFloat:function(){var R=sy(this.buf,this.pos,!0,23,4);return this.pos+=4,R},readDouble:function(){var R=sy(this.buf,this.pos,!0,52,8);return this.pos+=8,R},readVarint:function(R){var S,F,W=this.buf;return S=127&(F=W[this.pos++]),F<128?S:(S|=(127&(F=W[this.pos++]))<<7,F<128?S:(S|=(127&(F=W[this.pos++]))<<14,F<128?S:(S|=(127&(F=W[this.pos++]))<<21,F<128?S:function(te,fe,pe){var ze,Ke,ut=pe.buf;if(ze=(112&(Ke=ut[pe.pos++]))>>4,Ke<128||(ze|=(127&(Ke=ut[pe.pos++]))<<3,Ke<128)||(ze|=(127&(Ke=ut[pe.pos++]))<<10,Ke<128)||(ze|=(127&(Ke=ut[pe.pos++]))<<17,Ke<128)||(ze|=(127&(Ke=ut[pe.pos++]))<<24,Ke<128)||(ze|=(1&(Ke=ut[pe.pos++]))<<31,Ke<128))return om(te,ze,fe);throw new Error("Expected varint not more than 10 bytes")}(S|=(15&(F=W[this.pos]))<<28,R,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var R=this.readVarint();return R%2==1?(R+1)/-2:R/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var R=this.readVarint()+this.pos,S=this.pos;return this.pos=R,R-S>=12&&Mw?function(F,W,te){return Mw.decode(F.subarray(W,te))}(this.buf,S,R):function(F,W,te){for(var fe="",pe=W;pe239?4:Lt>223?3:Lt>191?2:1;if(pe+fr>te)break;fr===1?Lt<128&&(Qt=Lt):fr===2?(192&(ze=F[pe+1]))==128&&(Qt=(31&Lt)<<6|63&ze)<=127&&(Qt=null):fr===3?(Ke=F[pe+2],(192&(ze=F[pe+1]))==128&&(192&Ke)==128&&((Qt=(15&Lt)<<12|(63&ze)<<6|63&Ke)<=2047||Qt>=55296&&Qt<=57343)&&(Qt=null)):fr===4&&(Ke=F[pe+2],ut=F[pe+3],(192&(ze=F[pe+1]))==128&&(192&Ke)==128&&(192&ut)==128&&((Qt=(15&Lt)<<18|(63&ze)<<12|(63&Ke)<<6|63&ut)<=65535||Qt>=1114112)&&(Qt=null)),Qt===null?(Qt=65533,fr=1):Qt>65535&&(Qt-=65536,fe+=String.fromCharCode(Qt>>>10&1023|55296),Qt=56320|1023&Qt),fe+=String.fromCharCode(Qt),pe+=fr}return fe}(this.buf,S,R)},readBytes:function(){var R=this.readVarint()+this.pos,S=this.buf.subarray(this.pos,R);return this.pos=R,S},readPackedVarint:function(R,S){if(this.type!==wu.Bytes)return R.push(this.readVarint(S));var F=Lv(this);for(R=R||[];this.pos127;);else if(S===wu.Bytes)this.pos=this.readVarint()+this.pos;else if(S===wu.Fixed32)this.pos+=4;else{if(S!==wu.Fixed64)throw new Error("Unimplemented type: "+S);this.pos+=8}},writeTag:function(R,S){this.writeVarint(R<<3|S)},realloc:function(R){for(var S=this.length||16;S268435455||R<0?function(S,F){var W,te;if(S>=0?(W=S%4294967296|0,te=S/4294967296|0):(te=~(-S/4294967296),4294967295^(W=~(-S%4294967296))?W=W+1|0:(W=0,te=te+1|0)),S>=18446744073709552e3||S<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");F.realloc(10),function(fe,pe,ze){ze.buf[ze.pos++]=127&fe|128,fe>>>=7,ze.buf[ze.pos++]=127&fe|128,fe>>>=7,ze.buf[ze.pos++]=127&fe|128,fe>>>=7,ze.buf[ze.pos++]=127&fe|128,ze.buf[ze.pos]=127&(fe>>>=7)}(W,0,F),function(fe,pe){var ze=(7&fe)<<4;pe.buf[pe.pos++]|=ze|((fe>>>=3)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe)))))}(te,F)}(R,this):(this.realloc(4),this.buf[this.pos++]=127&R|(R>127?128:0),R<=127||(this.buf[this.pos++]=127&(R>>>=7)|(R>127?128:0),R<=127||(this.buf[this.pos++]=127&(R>>>=7)|(R>127?128:0),R<=127||(this.buf[this.pos++]=R>>>7&127))))},writeSVarint:function(R){this.writeVarint(R<0?2*-R-1:2*R)},writeBoolean:function(R){this.writeVarint(!!R)},writeString:function(R){R=String(R),this.realloc(4*R.length),this.pos++;var S=this.pos;this.pos=function(W,te,fe){for(var pe,ze,Ke=0;Ke55295&&pe<57344){if(!ze){pe>56319||Ke+1===te.length?(W[fe++]=239,W[fe++]=191,W[fe++]=189):ze=pe;continue}if(pe<56320){W[fe++]=239,W[fe++]=191,W[fe++]=189,ze=pe;continue}pe=ze-55296<<10|pe-56320|65536,ze=null}else ze&&(W[fe++]=239,W[fe++]=191,W[fe++]=189,ze=null);pe<128?W[fe++]=pe:(pe<2048?W[fe++]=pe>>6|192:(pe<65536?W[fe++]=pe>>12|224:(W[fe++]=pe>>18|240,W[fe++]=pe>>12&63|128),W[fe++]=pe>>6&63|128),W[fe++]=63&pe|128)}return fe}(this.buf,R,this.pos);var F=this.pos-S;F>=128&&Ew(S,F,this),this.pos=S-1,this.writeVarint(F),this.pos+=F},writeFloat:function(R){this.realloc(4),A1(this.buf,R,this.pos,!0,23,4),this.pos+=4},writeDouble:function(R){this.realloc(8),A1(this.buf,R,this.pos,!0,52,8),this.pos+=8},writeBytes:function(R){var S=R.length;this.writeVarint(S),this.realloc(S);for(var F=0;F=128&&Ew(F,W,this),this.pos=F-1,this.writeVarint(W),this.pos+=W},writeMessage:function(R,S,F){this.writeTag(R,wu.Bytes),this.writeRawMessage(S,F)},writePackedVarint:function(R,S){S.length&&this.writeMessage(R,Ux,S)},writePackedSVarint:function(R,S){S.length&&this.writeMessage(R,D9,S)},writePackedBoolean:function(R,S){S.length&&this.writeMessage(R,O9,S)},writePackedFloat:function(R,S){S.length&&this.writeMessage(R,F9,S)},writePackedDouble:function(R,S){S.length&&this.writeMessage(R,z9,S)},writePackedFixed32:function(R,S){S.length&&this.writeMessage(R,EQ,S)},writePackedSFixed32:function(R,S){S.length&&this.writeMessage(R,q9,S)},writePackedFixed64:function(R,S){S.length&&this.writeMessage(R,B9,S)},writePackedSFixed64:function(R,S){S.length&&this.writeMessage(R,N9,S)},writeBytesField:function(R,S){this.writeTag(R,wu.Bytes),this.writeBytes(S)},writeFixed32Field:function(R,S){this.writeTag(R,wu.Fixed32),this.writeFixed32(S)},writeSFixed32Field:function(R,S){this.writeTag(R,wu.Fixed32),this.writeSFixed32(S)},writeFixed64Field:function(R,S){this.writeTag(R,wu.Fixed64),this.writeFixed64(S)},writeSFixed64Field:function(R,S){this.writeTag(R,wu.Fixed64),this.writeSFixed64(S)},writeVarintField:function(R,S){this.writeTag(R,wu.Varint),this.writeVarint(S)},writeSVarintField:function(R,S){this.writeTag(R,wu.Varint),this.writeSVarint(S)},writeStringField:function(R,S){this.writeTag(R,wu.Bytes),this.writeString(S)},writeFloatField:function(R,S){this.writeTag(R,wu.Fixed32),this.writeFloat(S)},writeDoubleField:function(R,S){this.writeTag(R,wu.Fixed64),this.writeDouble(S)},writeBooleanField:function(R,S){this.writeVarintField(R,!!S)}};var tS=o(Sd);let rS=3;function CQ(R,S,F){R===1&&F.readMessage(U9,S)}function U9(R,S,F){if(R===3){let{id:W,bitmap:te,width:fe,height:pe,left:ze,top:Ke,advance:ut}=F.readMessage(gk,{});S.push({id:W,bitmap:new na({width:fe+2*rS,height:pe+2*rS},te),metrics:{width:fe,height:pe,left:ze,top:Ke,advance:ut}})}}function gk(R,S,F){R===1?S.id=F.readVarint():R===2?S.bitmap=F.readBytes():R===3?S.width=F.readVarint():R===4?S.height=F.readVarint():R===5?S.left=F.readSVarint():R===6?S.top=F.readSVarint():R===7&&(S.advance=F.readVarint())}let mk=rS;function iS(R){let S=0,F=0;for(let pe of R)S+=pe.w*pe.h,F=Math.max(F,pe.w);R.sort((pe,ze)=>ze.h-pe.h);let W=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(S/.95)),F),h:1/0}],te=0,fe=0;for(let pe of R)for(let ze=W.length-1;ze>=0;ze--){let Ke=W[ze];if(!(pe.w>Ke.w||pe.h>Ke.h)){if(pe.x=Ke.x,pe.y=Ke.y,fe=Math.max(fe,pe.y+pe.h),te=Math.max(te,pe.x+pe.w),pe.w===Ke.w&&pe.h===Ke.h){let ut=W.pop();ze=0&&W>=S&&Lw[this.text.charCodeAt(W)];W--)F--;this.text=this.text.substring(S,F),this.sectionIndex=this.sectionIndex.slice(S,F)}substring(S,F){let W=new S1;return W.text=this.text.substring(S,F),W.sectionIndex=this.sectionIndex.slice(S,F),W.sections=this.sections,W}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((S,F)=>Math.max(S,this.sections[F].scale),0)}addTextSection(S,F){this.text+=S.text,this.sections.push(Gx.forText(S.scale,S.fontStack||F));let W=this.sections.length-1;for(let te=0;te=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Hx(R,S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr){let zr=S1.fromFeature(R,te),ui;Qt===i.ah.vertical&&zr.verticalizePunctuation();let{processBidirectionalText:yi,processStyledBidirectionalText:dn}=_s;if(yi&&zr.sections.length===1){ui=[];let An=yi(zr.toString(),M1(zr,ut,fe,S,W,mr));for(let pa of An){let ro=new S1;ro.text=pa,ro.sections=zr.sections;for(let Vo=0;Vo0&&ep>Rf&&(Rf=ep)}else{let Gc=ro[tu.fontStack],Zf=Gc&&Gc[$u];if(Zf&&Zf.rect)I1=Zf.rect,ff=Zf.metrics;else{let ep=pa[tu.fontStack],gg=ep&&ep[$u];if(!gg)continue;ff=gg.metrics}Rv=(Sh-tu.scale)*eu}Qv?(An.verticalizable=!0,Hh.push({glyph:$u,imageName:p0,x:$o,y:Ju+Rv,vertical:Qv,scale:tu.scale,fontStack:tu.fontStack,sectionIndex:pc,metrics:ff,rect:I1}),$o+=Gp*tu.scale+Xn):(Hh.push({glyph:$u,imageName:p0,x:$o,y:Ju+Rv,vertical:Qv,scale:tu.scale,fontStack:tu.fontStack,sectionIndex:pc,metrics:ff,rect:I1}),$o+=ff.advance*tu.scale+Xn)}Hh.length!==0&&(qu=Math.max($o-Xn,qu),sm(Hh,0,Hh.length-1,$v,Rf)),$o=0;let Iv=sa*Sh+Rf;ud.lineOffset=Math.max(Rf,Ed),Ju+=Iv,Th=Math.max(Iv,Th),++ld}var Ah;let Gd=Ju-wh,{horizontalAlign:Hd,verticalAlign:jd}=Iw(Mo);(function(Tf,Sh,Ed,ud,Hh,Rf,Iv,lv,tu){let pc=(Sh-Ed)*Hh,$u=0;$u=Rf!==Iv?-lv*ud-wh:(-ud*tu+.5)*Iv;for(let Rv of Tf)for(let ff of Rv.positionedGlyphs)ff.x+=pc,ff.y+=$u})(An.positionedLines,$v,Hd,jd,qu,Th,sa,Gd,Xa.length),An.top+=-jd*Gd,An.bottom=An.top+Gd,An.left+=-Hd*qu,An.right=An.left+qu}(ln,S,F,W,ui,pe,ze,Ke,Qt,ut,fr,Lr),!function(An){for(let pa of An)if(pa.positionedGlyphs.length!==0)return!1;return!0}(Fi)&&ln}let Lw={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},V9={10:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},G9={40:!0};function yk(R,S,F,W,te,fe){if(S.imageName){let pe=W[S.imageName];return pe?pe.displaySize[0]*S.scale*eu/fe+te:0}{let pe=F[S.fontStack],ze=pe&&pe[R];return ze?ze.metrics.advance*S.scale+te:0}}function _k(R,S,F,W){let te=Math.pow(R-S,2);return W?R=0,ut=0;for(let Qt=0;Qtut){let Lt=Math.ceil(fe/ut);te*=Lt/pe,pe=Lt}return{x1:W,y1:te,x2:W+fe,y2:te+pe}}function wk(R,S,F,W,te,fe){let pe=R.image,ze;if(pe.content){let ui=pe.content,yi=pe.pixelRatio||1;ze=[ui[0]/yi,ui[1]/yi,pe.displaySize[0]-ui[2]/yi,pe.displaySize[1]-ui[3]/yi]}let Ke=S.left*fe,ut=S.right*fe,Lt,Qt,fr,mr;F==="width"||F==="both"?(mr=te[0]+Ke-W[3],Qt=te[0]+ut+W[1]):(mr=te[0]+(Ke+ut-pe.displaySize[0])/2,Qt=mr+pe.displaySize[0]);let Lr=S.top*fe,zr=S.bottom*fe;return F==="height"||F==="both"?(Lt=te[1]+Lr-W[0],fr=te[1]+zr+W[2]):(Lt=te[1]+(Lr+zr-pe.displaySize[1])/2,fr=Lt+pe.displaySize[1]),{image:pe,top:Lt,right:Qt,bottom:fr,left:mr,collisionPadding:ze}}let Wx=255,v0=128,lm=Wx*v0;function Tk(R,S){let{expression:F}=S;if(F.kind==="constant")return{kind:"constant",layoutSize:F.evaluate(new is(R+1))};if(F.kind==="source")return{kind:"source"};{let{zoomStops:W,interpolationType:te}=F,fe=0;for(;fepe.id),this.index=S.index,this.pixelRatio=S.pixelRatio,this.sourceLayerIndex=S.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=Ii([]),this.placementViewportMatrix=Ii([]);let F=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Tk(this.zoom,F["text-size"]),this.iconSizeData=Tk(this.zoom,F["icon-size"]);let W=this.layers[0].layout,te=W.get("symbol-sort-key"),fe=W.get("symbol-z-order");this.canOverlap=nS(W,"text-overlap","text-allow-overlap")!=="never"||nS(W,"icon-overlap","icon-allow-overlap")!=="never"||W.get("text-ignore-placement")||W.get("icon-ignore-placement"),this.sortFeaturesByKey=fe!=="viewport-y"&&!te.isConstant(),this.sortFeaturesByY=(fe==="viewport-y"||fe==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,W.get("symbol-placement")==="point"&&(this.writingModes=W.get("text-writing-mode").map(pe=>i.ah[pe])),this.stateDependentLayerIds=this.layers.filter(pe=>pe.isStateDependent()).map(pe=>pe.id),this.sourceID=S.sourceID}createArrays(){this.text=new sS(new Es(this.layers,this.zoom,S=>/^text/.test(S))),this.icon=new sS(new Es(this.layers,this.zoom,S=>/^icon/.test(S))),this.glyphOffsetArray=new ko,this.lineVertexArray=new Qa,this.symbolInstances=new $a,this.textAnchorOffsets=new Bo}calculateGlyphDependencies(S,F,W,te,fe){for(let pe=0;pe0)&&(pe.value.kind!=="constant"||pe.value.value.length>0),Lt=Ke.value.kind!=="constant"||!!Ke.value.value||Object.keys(Ke.parameters).length>0,Qt=fe.get("symbol-sort-key");if(this.features=[],!ut&&!Lt)return;let fr=F.iconDependencies,mr=F.glyphDependencies,Lr=F.availableImages,zr=new is(this.zoom);for(let{feature:ui,id:yi,index:dn,sourceLayerIndex:Fi}of S){let ln=te._featureFilter.needGeometry,An=Sl(ui,ln);if(!te._featureFilter.filter(zr,An,W))continue;let pa,ro;if(ln||(An.geometry=Qs(ui)),ut){let Xa=te.getValueAndResolveTokens("text-field",An,W,Lr),sa=ri.factory(Xa),Mo=this.hasRTLText=this.hasRTLText||oS(sa);(!Mo||_s.getRTLTextPluginStatus()==="unavailable"||Mo&&_s.isParsed())&&(pa=nm(sa,te,An))}if(Lt){let Xa=te.getValueAndResolveTokens("icon-image",An,W,Lr);ro=Xa instanceof en?Xa:en.fromString(Xa)}if(!pa&&!ro)continue;let Vo=this.sortFeaturesByKey?Qt.evaluate(An,{},W):void 0;if(this.features.push({id:yi,text:pa,icon:ro,index:dn,sourceLayerIndex:Fi,geometry:An.geometry,properties:ui.properties,type:j9[ui.type],sortKey:Vo}),ro&&(fr[ro.name]=!0),pa){let Xa=pe.evaluate(An,{},W).join(","),sa=fe.get("text-rotation-alignment")!=="viewport"&&fe.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(i.ah.vertical)>=0;for(let Mo of pa.sections)if(Mo.image)fr[Mo.image.name]=!0;else{let fo=Ka(pa.toString()),lo=Mo.fontStack||Xa,Xn=mr[lo]=mr[lo]||{};this.calculateGlyphDependencies(Mo.text,Xn,sa,this.allowVerticalPlacement,fo)}}}fe.get("symbol-placement")==="line"&&(this.features=function(ui){let yi={},dn={},Fi=[],ln=0;function An(Xa){Fi.push(ui[Xa]),ln++}function pa(Xa,sa,Mo){let fo=dn[Xa];return delete dn[Xa],dn[sa]=fo,Fi[fo].geometry[0].pop(),Fi[fo].geometry[0]=Fi[fo].geometry[0].concat(Mo[0]),fo}function ro(Xa,sa,Mo){let fo=yi[sa];return delete yi[sa],yi[Xa]=fo,Fi[fo].geometry[0].shift(),Fi[fo].geometry[0]=Mo[0].concat(Fi[fo].geometry[0]),fo}function Vo(Xa,sa,Mo){let fo=Mo?sa[0][sa[0].length-1]:sa[0][0];return`${Xa}:${fo.x}:${fo.y}`}for(let Xa=0;XaXa.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((ui,yi)=>ui.sortKey-yi.sortKey)}update(S,F,W){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(S,F,this.layers,W),this.icon.programConfigurations.updatePaintArrays(S,F,this.layers,W))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(S){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(S),this.iconCollisionBox.upload(S)),this.text.upload(S,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(S,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(S,F){let W=this.lineVertexArray.length;if(S.segment!==void 0){let te=S.dist(F[S.segment+1]),fe=S.dist(F[S.segment]),pe={};for(let ze=S.segment+1;ze=0;ze--)pe[ze]={x:F[ze].x,y:F[ze].y,tileUnitDistanceFromAnchor:fe},ze>0&&(fe+=F[ze-1].dist(F[ze]));for(let ze=0;ze0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(S,F){let W=S.placedSymbolArray.get(F),te=W.vertexStartIndex+4*W.numGlyphs;for(let fe=W.vertexStartIndex;fete[ze]-te[Ke]||fe[Ke]-fe[ze]),pe}addToSortKeyRanges(S,F){let W=this.sortKeyRanges[this.sortKeyRanges.length-1];W&&W.sortKey===F?W.symbolInstanceEnd=S+1:this.sortKeyRanges.push({sortKey:F,symbolInstanceStart:S,symbolInstanceEnd:S+1})}sortFeatures(S){if(this.sortFeaturesByY&&this.sortedAngle!==S&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(S),this.sortedAngle=S,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let F of this.symbolInstanceIndexes){let W=this.symbolInstances.get(F);this.featureSortOrder.push(W.featureIndex),[W.rightJustifiedTextSymbolIndex,W.centerJustifiedTextSymbolIndex,W.leftJustifiedTextSymbolIndex].forEach((te,fe,pe)=>{te>=0&&pe.indexOf(te)===fe&&this.addIndicesForPlacedSymbol(this.text,te)}),W.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,W.verticalPlacedTextSymbolIndex),W.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,W.placedIconSymbolIndex),W.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,W.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let wf,Xx;Di("SymbolBucket",E1,{omit:["layers","collisionBoxArray","features","compareText"]}),E1.MAX_GLYPHS=65535,E1.addDynamicAttributes=aS;var Dw={get paint(){return Xx=Xx||new ue({"icon-opacity":new oo(ce.paint_symbol["icon-opacity"]),"icon-color":new oo(ce.paint_symbol["icon-color"]),"icon-halo-color":new oo(ce.paint_symbol["icon-halo-color"]),"icon-halo-width":new oo(ce.paint_symbol["icon-halo-width"]),"icon-halo-blur":new oo(ce.paint_symbol["icon-halo-blur"]),"icon-translate":new Ua(ce.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ua(ce.paint_symbol["icon-translate-anchor"]),"text-opacity":new oo(ce.paint_symbol["text-opacity"]),"text-color":new oo(ce.paint_symbol["text-color"],{runtimeType:Yt,getOverride:R=>R.textColor,hasOverride:R=>!!R.textColor}),"text-halo-color":new oo(ce.paint_symbol["text-halo-color"]),"text-halo-width":new oo(ce.paint_symbol["text-halo-width"]),"text-halo-blur":new oo(ce.paint_symbol["text-halo-blur"]),"text-translate":new Ua(ce.paint_symbol["text-translate"]),"text-translate-anchor":new Ua(ce.paint_symbol["text-translate-anchor"])})},get layout(){return wf=wf||new ue({"symbol-placement":new Ua(ce.layout_symbol["symbol-placement"]),"symbol-spacing":new Ua(ce.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ua(ce.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new oo(ce.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Ua(ce.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Ua(ce.layout_symbol["icon-allow-overlap"]),"icon-overlap":new Ua(ce.layout_symbol["icon-overlap"]),"icon-ignore-placement":new Ua(ce.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ua(ce.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ua(ce.layout_symbol["icon-rotation-alignment"]),"icon-size":new oo(ce.layout_symbol["icon-size"]),"icon-text-fit":new Ua(ce.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Ua(ce.layout_symbol["icon-text-fit-padding"]),"icon-image":new oo(ce.layout_symbol["icon-image"]),"icon-rotate":new oo(ce.layout_symbol["icon-rotate"]),"icon-padding":new oo(ce.layout_symbol["icon-padding"]),"icon-keep-upright":new Ua(ce.layout_symbol["icon-keep-upright"]),"icon-offset":new oo(ce.layout_symbol["icon-offset"]),"icon-anchor":new oo(ce.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Ua(ce.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ua(ce.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ua(ce.layout_symbol["text-rotation-alignment"]),"text-field":new oo(ce.layout_symbol["text-field"]),"text-font":new oo(ce.layout_symbol["text-font"]),"text-size":new oo(ce.layout_symbol["text-size"]),"text-max-width":new oo(ce.layout_symbol["text-max-width"]),"text-line-height":new Ua(ce.layout_symbol["text-line-height"]),"text-letter-spacing":new oo(ce.layout_symbol["text-letter-spacing"]),"text-justify":new oo(ce.layout_symbol["text-justify"]),"text-radial-offset":new oo(ce.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Ua(ce.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new oo(ce.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new oo(ce.layout_symbol["text-anchor"]),"text-max-angle":new Ua(ce.layout_symbol["text-max-angle"]),"text-writing-mode":new Ua(ce.layout_symbol["text-writing-mode"]),"text-rotate":new oo(ce.layout_symbol["text-rotate"]),"text-padding":new Ua(ce.layout_symbol["text-padding"]),"text-keep-upright":new Ua(ce.layout_symbol["text-keep-upright"]),"text-transform":new oo(ce.layout_symbol["text-transform"]),"text-offset":new oo(ce.layout_symbol["text-offset"]),"text-allow-overlap":new Ua(ce.layout_symbol["text-allow-overlap"]),"text-overlap":new Ua(ce.layout_symbol["text-overlap"]),"text-ignore-placement":new Ua(ce.layout_symbol["text-ignore-placement"]),"text-optional":new Ua(ce.layout_symbol["text-optional"])})}};class Zx{constructor(S){if(S.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=S.property.overrides?S.property.overrides.runtimeType:Ut,this.defaultValue=S}evaluate(S){if(S.formattedSection){let F=this.defaultValue.property.overrides;if(F&&F.hasOverride(S.formattedSection))return F.getOverride(S.formattedSection)}return S.feature&&S.featureState?this.defaultValue.evaluate(S.feature,S.featureState):this.defaultValue.property.specification.default}eachChild(S){this.defaultValue.isConstant()||S(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Di("FormatSectionOverride",Zx,{omit:["defaultValue"]});class uy extends B{constructor(S){super(S,Dw)}recalculate(S,F){if(super.recalculate(S,F),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){let W=this.layout.get("text-writing-mode");if(W){let te=[];for(let fe of W)te.indexOf(fe)<0&&te.push(fe);this.layout._values["text-writing-mode"]=te}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(S,F,W,te){let fe=this.layout.get(S).evaluate(F,{},W,te),pe=this._unevaluatedLayout._values[S];return pe.isDataDriven()||Dc(pe.value)||!fe?fe:function(ze,Ke){return Ke.replace(/{([^{}]+)}/g,(ut,Lt)=>ze&&Lt in ze?String(ze[Lt]):"")}(F.properties,fe)}createBucket(S){return new E1(S)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let S of Dw.paint.overridableProperties){if(!uy.hasPaintOverride(this.layout,S))continue;let F=this.paint.get(S),W=new Zx(F),te=new Eu(W,F.property.specification),fe=null;fe=F.value.kind==="constant"||F.value.kind==="source"?new bc("source",te):new du("composite",te,F.value.zoomStops),this.paint._values[S]=new xu(F.property,fe,F.parameters)}}_handleOverridablePaintPropertyUpdate(S,F,W){return!(!this.layout||F.isDataDriven()||W.isDataDriven())&&uy.hasPaintOverride(this.layout,S)}static hasPaintOverride(S,F){let W=S.get("text-field"),te=Dw.paint.properties[F],fe=!1,pe=ze=>{for(let Ke of ze)if(te.overrides&&te.overrides.hasOverride(Ke))return void(fe=!0)};if(W.value.kind==="constant"&&W.value.value instanceof ri)pe(W.value.value.sections);else if(W.value.kind==="source"){let ze=ut=>{fe||(ut instanceof la&&Mn(ut.value)===ei?pe(ut.value.sections):ut instanceof Zl?pe(ut.sections):ut.eachChild(ze))},Ke=W.value;Ke._styleExpression&&ze(Ke._styleExpression.expression)}return fe}}let Ak;var Yx={get paint(){return Ak=Ak||new ue({"background-color":new Ua(ce.paint_background["background-color"]),"background-pattern":new hc(ce.paint_background["background-pattern"]),"background-opacity":new Ua(ce.paint_background["background-opacity"])})}};class X9 extends B{constructor(S){super(S,Yx)}}let lS;var Sk={get paint(){return lS=lS||new ue({"raster-opacity":new Ua(ce.paint_raster["raster-opacity"]),"raster-hue-rotate":new Ua(ce.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Ua(ce.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Ua(ce.paint_raster["raster-brightness-max"]),"raster-saturation":new Ua(ce.paint_raster["raster-saturation"]),"raster-contrast":new Ua(ce.paint_raster["raster-contrast"]),"raster-resampling":new Ua(ce.paint_raster["raster-resampling"]),"raster-fade-duration":new Ua(ce.paint_raster["raster-fade-duration"])})}};class Kx extends B{constructor(S){super(S,Sk)}}class uS extends B{constructor(S){super(S,{}),this.onAdd=F=>{this.implementation.onAdd&&this.implementation.onAdd(F,F.painter.context.gl)},this.onRemove=F=>{this.implementation.onRemove&&this.implementation.onRemove(F,F.painter.context.gl)},this.implementation=S}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class cS{constructor(S){this._methodToThrottle=S,this._triggered=!1,typeof MessageChannel!="undefined"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._methodToThrottle()},0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}}let fS=63710088e-1;class dg{constructor(S,F){if(isNaN(S)||isNaN(F))throw new Error(`Invalid LngLat object: (${S}, ${F})`);if(this.lng=+S,this.lat=+F,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new dg(A(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(S){let F=Math.PI/180,W=this.lat*F,te=S.lat*F,fe=Math.sin(W)*Math.sin(te)+Math.cos(W)*Math.cos(te)*Math.cos((S.lng-this.lng)*F);return fS*Math.acos(Math.min(fe,1))}static convert(S){if(S instanceof dg)return S;if(Array.isArray(S)&&(S.length===2||S.length===3))return new dg(Number(S[0]),Number(S[1]));if(!Array.isArray(S)&&typeof S=="object"&&S!==null)return new dg(Number("lng"in S?S.lng:S.lon),Number(S.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}let C1=2*Math.PI*fS;function Mk(R){return C1*Math.cos(R*Math.PI/180)}function Fw(R){return(180+R)/360}function Ek(R){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+R*Math.PI/360)))/360}function zw(R,S){return R/Mk(S)}function Jx(R){return 360/Math.PI*Math.atan(Math.exp((180-360*R)*Math.PI/180))-90}class $x{constructor(S,F,W=0){this.x=+S,this.y=+F,this.z=+W}static fromLngLat(S,F=0){let W=dg.convert(S);return new $x(Fw(W.lng),Ek(W.lat),zw(F,W.lat))}toLngLat(){return new dg(360*this.x-180,Jx(this.y))}toAltitude(){return this.z*Mk(Jx(this.y))}meterInMercatorCoordinateUnits(){return 1/C1*(S=Jx(this.y),1/Math.cos(S*Math.PI/180));var S}}function pp(R,S,F){var W=2*Math.PI*6378137/256/Math.pow(2,F);return[R*W-2*Math.PI*6378137/2,S*W-2*Math.PI*6378137/2]}class hS{constructor(S,F,W){if(!function(te,fe,pe){return!(te<0||te>25||pe<0||pe>=Math.pow(2,te)||fe<0||fe>=Math.pow(2,te))}(S,F,W))throw new Error(`x=${F}, y=${W}, z=${S} outside of bounds. 0<=x<${Math.pow(2,S)}, 0<=y<${Math.pow(2,S)} 0<=z<=25 `);this.z=S,this.x=F,this.y=W,this.key=Qx(0,S,S,F,W)}equals(S){return this.z===S.z&&this.x===S.x&&this.y===S.y}url(S,F,W){let te=(pe=this.y,ze=this.z,Ke=pp(256*(fe=this.x),256*(pe=Math.pow(2,ze)-pe-1),ze),ut=pp(256*(fe+1),256*(pe+1),ze),Ke[0]+","+Ke[1]+","+ut[0]+","+ut[1]);var fe,pe,ze,Ke,ut;let Lt=function(Qt,fr,mr){let Lr,zr="";for(let ui=Qt;ui>0;ui--)Lr=1<1?"@2x":"").replace(/{quadkey}/g,Lt).replace(/{bbox-epsg-3857}/g,te)}isChildOf(S){let F=this.z-S.z;return F>0&&S.x===this.x>>F&&S.y===this.y>>F}getTilePoint(S){let F=Math.pow(2,this.z);return new u((S.x*F-this.x)*Ha,(S.y*F-this.y)*Ha)}toString(){return`${this.z}/${this.x}/${this.y}`}}class Ck{constructor(S,F){this.wrap=S,this.canonical=F,this.key=Qx(S,F.z,F.z,F.x,F.y)}}class Jv{constructor(S,F,W,te,fe){if(S= z; overscaledZ = ${S}; z = ${W}`);this.overscaledZ=S,this.wrap=F,this.canonical=new hS(W,+te,+fe),this.key=Qx(F,S,W,te,fe)}clone(){return new Jv(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(S){return this.overscaledZ===S.overscaledZ&&this.wrap===S.wrap&&this.canonical.equals(S.canonical)}scaledTo(S){if(S>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${S}; overscaledZ = ${this.overscaledZ}`);let F=this.canonical.z-S;return S>this.canonical.z?new Jv(S,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Jv(S,this.wrap,S,this.canonical.x>>F,this.canonical.y>>F)}calculateScaledKey(S,F){if(S>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${S}; overscaledZ = ${this.overscaledZ}`);let W=this.canonical.z-S;return S>this.canonical.z?Qx(this.wrap*+F,S,this.canonical.z,this.canonical.x,this.canonical.y):Qx(this.wrap*+F,S,S,this.canonical.x>>W,this.canonical.y>>W)}isChildOf(S){if(S.wrap!==this.wrap)return!1;let F=this.canonical.z-S.canonical.z;return S.overscaledZ===0||S.overscaledZ>F&&S.canonical.y===this.canonical.y>>F}children(S){if(this.overscaledZ>=S)return[new Jv(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let F=this.canonical.z+1,W=2*this.canonical.x,te=2*this.canonical.y;return[new Jv(F,this.wrap,F,W,te),new Jv(F,this.wrap,F,W+1,te),new Jv(F,this.wrap,F,W,te+1),new Jv(F,this.wrap,F,W+1,te+1)]}isLessThan(S){return this.wrapS.wrap)&&(this.overscaledZS.overscaledZ)&&(this.canonical.xS.canonical.x)&&this.canonical.ythis.max&&(this.max=Qt),Qt=this.dim+1||F<-1||F>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(F+1)*this.stride+(S+1)}unpack(S,F,W){return S*this.redFactor+F*this.greenFactor+W*this.blueFactor-this.baseShift}getPixels(){return new Yi({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(S,F,W){if(this.dim!==S.dim)throw new Error("dem dimension mismatch");let te=F*this.dim,fe=F*this.dim+this.dim,pe=W*this.dim,ze=W*this.dim+this.dim;switch(F){case-1:te=fe-1;break;case 1:fe=te+1}switch(W){case-1:pe=ze-1;break;case 1:ze=pe+1}let Ke=-F*this.dim,ut=-W*this.dim;for(let Lt=pe;Lt=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${S} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[S]}}class dS{constructor(S,F,W,te,fe){this.type="Feature",this._vectorTileFeature=S,S._z=F,S._x=W,S._y=te,this.properties=S.properties,this.id=fe}get geometry(){return this._geometry===void 0&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(S){this._geometry=S}toJSON(){let S={geometry:this.geometry};for(let F in this)F!=="_geometry"&&F!=="_vectorTileFeature"&&(S[F]=this[F]);return S}}class cy{constructor(S,F){this.tileID=S,this.x=S.canonical.x,this.y=S.canonical.y,this.z=S.canonical.z,this.grid=new $i(Ha,16,0),this.grid3D=new $i(Ha,16,0),this.featureIndexArray=new As,this.promoteId=F}insert(S,F,W,te,fe,pe){let ze=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(W,te,fe);let Ke=pe?this.grid3D:this.grid;for(let ut=0;ut=0&&Qt[3]>=0&&Ke.insert(ze,Qt[0],Qt[1],Qt[2],Qt[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new br.VectorTile(new tS(this.rawTileData)).layers,this.sourceLayerCoder=new Lk(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(S,F,W,te){this.loadVTLayers();let fe=S.params||{},pe=Ha/S.tileSize/S.scale,ze=Fc(fe.filter),Ke=S.queryGeometry,ut=S.queryPadding*pe,Lt=Ik(Ke),Qt=this.grid.query(Lt.minX-ut,Lt.minY-ut,Lt.maxX+ut,Lt.maxY+ut),fr=Ik(S.cameraQueryGeometry),mr=this.grid3D.query(fr.minX-ut,fr.minY-ut,fr.maxX+ut,fr.maxY+ut,(ui,yi,dn,Fi)=>function(ln,An,pa,ro,Vo){for(let sa of ln)if(An<=sa.x&&pa<=sa.y&&ro>=sa.x&&Vo>=sa.y)return!0;let Xa=[new u(An,pa),new u(An,Vo),new u(ro,Vo),new u(ro,pa)];if(ln.length>2){for(let sa of Xa)if(Ni(ln,sa))return!0}for(let sa=0;sa(Fi||(Fi=Qs(ln)),An.queryIntersectsFeature(Ke,ln,pa,Fi,this.z,S.transform,pe,S.pixelPosMatrix)))}return Lr}loadMatchingFeature(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt){let fr=this.bucketLayerIDs[F];if(pe&&!function(ui,yi){for(let dn=0;dn=0)return!0;return!1}(pe,fr))return;let mr=this.sourceLayerCoder.decode(W),Lr=this.vtLayers[mr].feature(te);if(fe.needGeometry){let ui=Sl(Lr,!0);if(!fe.filter(new is(this.tileID.overscaledZ),ui,this.tileID.canonical))return}else if(!fe.filter(new is(this.tileID.overscaledZ),Lr))return;let zr=this.getId(Lr,mr);for(let ui=0;ui{let ze=S instanceof Ac?S.get(pe):null;return ze&&ze.evaluate?ze.evaluate(F,W,te):ze})}function Ik(R){let S=1/0,F=1/0,W=-1/0,te=-1/0;for(let fe of R)S=Math.min(S,fe.x),F=Math.min(F,fe.y),W=Math.max(W,fe.x),te=Math.max(te,fe.y);return{minX:S,minY:F,maxX:W,maxY:te}}function Z9(R,S){return S-R}function Rk(R,S,F,W,te){let fe=[];for(let pe=0;pe=W&&Qt.x>=W||(Lt.x>=W?Lt=new u(W,Lt.y+(W-Lt.x)/(Qt.x-Lt.x)*(Qt.y-Lt.y))._round():Qt.x>=W&&(Qt=new u(W,Lt.y+(W-Lt.x)/(Qt.x-Lt.x)*(Qt.y-Lt.y))._round()),Lt.y>=te&&Qt.y>=te||(Lt.y>=te?Lt=new u(Lt.x+(te-Lt.y)/(Qt.y-Lt.y)*(Qt.x-Lt.x),te)._round():Qt.y>=te&&(Qt=new u(Lt.x+(te-Lt.y)/(Qt.y-Lt.y)*(Qt.x-Lt.x),te)._round()),Ke&&Lt.equals(Ke[Ke.length-1])||(Ke=[Lt],fe.push(Ke)),Ke.push(Qt)))))}}return fe}Di("FeatureIndex",cy,{omit:["rawTileData","sourceLayerCoder"]});class vg extends u{constructor(S,F,W,te){super(S,F),this.angle=W,te!==void 0&&(this.segment=te)}clone(){return new vg(this.x,this.y,this.angle,this.segment)}}function vS(R,S,F,W,te){if(S.segment===void 0||F===0)return!0;let fe=S,pe=S.segment+1,ze=0;for(;ze>-F/2;){if(pe--,pe<0)return!1;ze-=R[pe].dist(fe),fe=R[pe]}ze+=R[pe].dist(R[pe+1]),pe++;let Ke=[],ut=0;for(;zeW;)ut-=Ke.shift().angleDelta;if(ut>te)return!1;pe++,ze+=Lt.dist(Qt)}return!0}function Dk(R){let S=0;for(let F=0;Fut){let Lr=(ut-Ke)/mr,zr=Lo.number(Qt.x,fr.x,Lr),ui=Lo.number(Qt.y,fr.y,Lr),yi=new vg(zr,ui,fr.angleTo(Qt),Lt);return yi._round(),!pe||vS(R,yi,ze,pe,S)?yi:void 0}Ke+=mr}}function K9(R,S,F,W,te,fe,pe,ze,Ke){let ut=Fk(W,fe,pe),Lt=zk(W,te),Qt=Lt*pe,fr=R[0].x===0||R[0].x===Ke||R[0].y===0||R[0].y===Ke;return S-Qt=0&&ln=0&&An=0&&fr+ut<=Lt){let pa=new vg(ln,An,dn,Lr);pa._round(),W&&!vS(R,pa,fe,W,te)||mr.push(pa)}}Qt+=yi}return ze||mr.length||pe||(mr=Ok(R,Qt/2,F,W,te,fe,pe,!0,Ke)),mr}Di("Anchor",vg);let k1=Md;function qk(R,S,F,W){let te=[],fe=R.image,pe=fe.pixelRatio,ze=fe.paddedRect.w-2*k1,Ke=fe.paddedRect.h-2*k1,ut={x1:R.left,y1:R.top,x2:R.right,y2:R.bottom},Lt=fe.stretchX||[[0,ze]],Qt=fe.stretchY||[[0,Ke]],fr=(Xn,Ro)=>Xn+Ro[1]-Ro[0],mr=Lt.reduce(fr,0),Lr=Qt.reduce(fr,0),zr=ze-mr,ui=Ke-Lr,yi=0,dn=mr,Fi=0,ln=Lr,An=0,pa=zr,ro=0,Vo=ui;if(fe.content&&W){let Xn=fe.content,Ro=Xn[2]-Xn[0],uo=Xn[3]-Xn[1];(fe.textFitWidth||fe.textFitHeight)&&(ut=bk(R)),yi=pg(Lt,0,Xn[0]),Fi=pg(Qt,0,Xn[1]),dn=pg(Lt,Xn[0],Xn[2]),ln=pg(Qt,Xn[1],Xn[3]),An=Xn[0]-yi,ro=Xn[1]-Fi,pa=Ro-dn,Vo=uo-ln}let Xa=ut.x1,sa=ut.y1,Mo=ut.x2-Xa,fo=ut.y2-sa,lo=(Xn,Ro,uo,$o)=>{let Ju=Ow(Xn.stretch-yi,dn,Mo,Xa),qu=L1(Xn.fixed-An,pa,Xn.stretch,mr),Th=Ow(Ro.stretch-Fi,ln,fo,sa),$v=L1(Ro.fixed-ro,Vo,Ro.stretch,Lr),ld=Ow(uo.stretch-yi,dn,Mo,Xa),Ah=L1(uo.fixed-An,pa,uo.stretch,mr),Gd=Ow($o.stretch-Fi,ln,fo,sa),Hd=L1($o.fixed-ro,Vo,$o.stretch,Lr),jd=new u(Ju,Th),Tf=new u(ld,Th),Sh=new u(ld,Gd),Ed=new u(Ju,Gd),ud=new u(qu/pe,$v/pe),Hh=new u(Ah/pe,Hd/pe),Rf=S*Math.PI/180;if(Rf){let tu=Math.sin(Rf),pc=Math.cos(Rf),$u=[pc,-tu,tu,pc];jd._matMult($u),Tf._matMult($u),Ed._matMult($u),Sh._matMult($u)}let Iv=Xn.stretch+Xn.fixed,lv=Ro.stretch+Ro.fixed;return{tl:jd,tr:Tf,bl:Ed,br:Sh,tex:{x:fe.paddedRect.x+k1+Iv,y:fe.paddedRect.y+k1+lv,w:uo.stretch+uo.fixed-Iv,h:$o.stretch+$o.fixed-lv},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:ud,pixelOffsetBR:Hh,minFontScaleX:pa/pe/Mo,minFontScaleY:Vo/pe/fo,isSDF:F}};if(W&&(fe.stretchX||fe.stretchY)){let Xn=Bk(Lt,zr,mr),Ro=Bk(Qt,ui,Lr);for(let uo=0;uo0&&(zr=Math.max(10,zr),this.circleDiameter=zr)}else{let fr=!((Qt=pe.image)===null||Qt===void 0)&&Qt.content&&(pe.image.textFitWidth||pe.image.textFitHeight)?bk(pe):{x1:pe.left,y1:pe.top,x2:pe.right,y2:pe.bottom};fr.y1=fr.y1*ze-Ke[0],fr.y2=fr.y2*ze+Ke[2],fr.x1=fr.x1*ze-Ke[3],fr.x2=fr.x2*ze+Ke[1];let mr=pe.collisionPadding;if(mr&&(fr.x1-=mr[0]*ze,fr.y1-=mr[1]*ze,fr.x2+=mr[2]*ze,fr.y2+=mr[3]*ze),Lt){let Lr=new u(fr.x1,fr.y1),zr=new u(fr.x2,fr.y1),ui=new u(fr.x1,fr.y2),yi=new u(fr.x2,fr.y2),dn=Lt*Math.PI/180;Lr._rotate(dn),zr._rotate(dn),ui._rotate(dn),yi._rotate(dn),fr.x1=Math.min(Lr.x,zr.x,ui.x,yi.x),fr.x2=Math.max(Lr.x,zr.x,ui.x,yi.x),fr.y1=Math.min(Lr.y,zr.y,ui.y,yi.y),fr.y2=Math.max(Lr.y,zr.y,ui.y,yi.y)}S.emplaceBack(F.x,F.y,fr.x1,fr.y1,fr.x2,fr.y2,W,te,fe)}this.boxEndIndex=S.length}}class Vp{constructor(S=[],F=(W,te)=>Wte?1:0){if(this.data=S,this.length=this.data.length,this.compare=F,this.length>0)for(let W=(this.length>>1)-1;W>=0;W--)this._down(W)}push(S){this.data.push(S),this._up(this.length++)}pop(){if(this.length===0)return;let S=this.data[0],F=this.data.pop();return--this.length>0&&(this.data[0]=F,this._down(0)),S}peek(){return this.data[0]}_up(S){let{data:F,compare:W}=this,te=F[S];for(;S>0;){let fe=S-1>>1,pe=F[fe];if(W(te,pe)>=0)break;F[S]=pe,S=fe}F[S]=te}_down(S){let{data:F,compare:W}=this,te=this.length>>1,fe=F[S];for(;S=0)break;F[S]=F[pe],S=pe}F[S]=fe}}function J9(R,S=1,F=!1){let W=1/0,te=1/0,fe=-1/0,pe=-1/0,ze=R[0];for(let mr=0;mrfe)&&(fe=Lr.x),(!mr||Lr.y>pe)&&(pe=Lr.y)}let Ke=Math.min(fe-W,pe-te),ut=Ke/2,Lt=new Vp([],$9);if(Ke===0)return new u(W,te);for(let mr=W;mrQt.d||!Qt.d)&&(Qt=mr,F&&console.log("found best %d after %d probes",Math.round(1e4*mr.d)/1e4,fr)),mr.max-Qt.d<=S||(ut=mr.h/2,Lt.push(new P1(mr.p.x-ut,mr.p.y-ut,ut,R)),Lt.push(new P1(mr.p.x+ut,mr.p.y-ut,ut,R)),Lt.push(new P1(mr.p.x-ut,mr.p.y+ut,ut,R)),Lt.push(new P1(mr.p.x+ut,mr.p.y+ut,ut,R)),fr+=4)}return F&&(console.log(`num probes: ${fr}`),console.log(`best distance: ${Qt.d}`)),Qt.p}function $9(R,S){return S.max-R.max}function P1(R,S,F,W){this.p=new u(R,S),this.h=F,this.d=function(te,fe){let pe=!1,ze=1/0;for(let Ke=0;Kete.y!=Lr.y>te.y&&te.x<(Lr.x-mr.x)*(te.y-mr.y)/(Lr.y-mr.y)+mr.x&&(pe=!pe),ze=Math.min(ze,Vr(te,mr,Lr))}}return(pe?1:-1)*Math.sqrt(ze)}(this.p,W),this.max=this.d+this.h*Math.SQRT2}var sd;i.aq=void 0,(sd=i.aq||(i.aq={}))[sd.center=1]="center",sd[sd.left=2]="left",sd[sd.right=3]="right",sd[sd.top=4]="top",sd[sd.bottom=5]="bottom",sd[sd["top-left"]=6]="top-left",sd[sd["top-right"]=7]="top-right",sd[sd["bottom-left"]=8]="bottom-left",sd[sd["bottom-right"]=9]="bottom-right";let fm=7,fy=Number.POSITIVE_INFINITY;function pS(R,S){return S[1]!==fy?function(F,W,te){let fe=0,pe=0;switch(W=Math.abs(W),te=Math.abs(te),F){case"top-right":case"top-left":case"top":pe=te-fm;break;case"bottom-right":case"bottom-left":case"bottom":pe=-te+fm}switch(F){case"top-right":case"bottom-right":case"right":fe=-W;break;case"top-left":case"bottom-left":case"left":fe=W}return[fe,pe]}(R,S[0],S[1]):function(F,W){let te=0,fe=0;W<0&&(W=0);let pe=W/Math.SQRT2;switch(F){case"top-right":case"top-left":fe=pe-fm;break;case"bottom-right":case"bottom-left":fe=-pe+fm;break;case"bottom":fe=-W+fm;break;case"top":fe=W-fm}switch(F){case"top-right":case"bottom-right":te=-pe;break;case"top-left":case"bottom-left":te=pe;break;case"left":te=W;break;case"right":te=-W}return[te,fe]}(R,S[0])}function Nk(R,S,F){var W;let te=R.layout,fe=(W=te.get("text-variable-anchor-offset"))===null||W===void 0?void 0:W.evaluate(S,{},F);if(fe){let ze=fe.values,Ke=[];for(let ut=0;utfr*eu);Lt.startsWith("top")?Qt[1]-=fm:Lt.startsWith("bottom")&&(Qt[1]+=fm),Ke[ut+1]=Qt}return new Ji(Ke)}let pe=te.get("text-variable-anchor");if(pe){let ze;ze=R._unevaluatedLayout.getValue("text-radial-offset")!==void 0?[te.get("text-radial-offset").evaluate(S,{},F)*eu,fy]:te.get("text-offset").evaluate(S,{},F).map(ut=>ut*eu);let Ke=[];for(let ut of pe)Ke.push(ut,pS(ut,ze));return new Ji(Ke)}return null}function gS(R){switch(R){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Q9(R,S,F,W,te,fe,pe,ze,Ke,ut,Lt){let Qt=fe.textMaxSize.evaluate(S,{});Qt===void 0&&(Qt=pe);let fr=R.layers[0].layout,mr=fr.get("icon-offset").evaluate(S,{},Lt),Lr=Vk(F.horizontal),zr=pe/24,ui=R.tilePixelRatio*zr,yi=R.tilePixelRatio*Qt/24,dn=R.tilePixelRatio*ze,Fi=R.tilePixelRatio*fr.get("symbol-spacing"),ln=fr.get("text-padding")*R.tilePixelRatio,An=function(Xn,Ro,uo,$o=1){let Ju=Xn.get("icon-padding").evaluate(Ro,{},uo),qu=Ju&&Ju.values;return[qu[0]*$o,qu[1]*$o,qu[2]*$o,qu[3]*$o]}(fr,S,Lt,R.tilePixelRatio),pa=fr.get("text-max-angle")/180*Math.PI,ro=fr.get("text-rotation-alignment")!=="viewport"&&fr.get("symbol-placement")!=="point",Vo=fr.get("icon-rotation-alignment")==="map"&&fr.get("symbol-placement")!=="point",Xa=fr.get("symbol-placement"),sa=Fi/2,Mo=fr.get("icon-text-fit"),fo;W&&Mo!=="none"&&(R.allowVerticalPlacement&&F.vertical&&(fo=wk(W,F.vertical,Mo,fr.get("icon-text-fit-padding"),mr,zr)),Lr&&(W=wk(W,Lr,Mo,fr.get("icon-text-fit-padding"),mr,zr)));let lo=(Xn,Ro)=>{Ro.x<0||Ro.x>=Ha||Ro.y<0||Ro.y>=Ha||function(uo,$o,Ju,qu,Th,$v,ld,Ah,Gd,Hd,jd,Tf,Sh,Ed,ud,Hh,Rf,Iv,lv,tu,pc,$u,Rv,ff,I1){let p0=uo.addToLineVertexArray($o,Ju),Gp,Qv,Gc,Zf,ep=0,gg=0,uv=0,R1=0,bS=-1,Uw=-1,g0={},hy=bi("");if(uo.allowVerticalPlacement&&qu.vertical){let Cd=Ah.layout.get("text-rotate").evaluate(pc,{},ff)+90;Gc=new cm(Gd,$o,Hd,jd,Tf,qu.vertical,Sh,Ed,ud,Cd),ld&&(Zf=new cm(Gd,$o,Hd,jd,Tf,ld,Rf,Iv,ud,Cd))}if(Th){let Cd=Ah.layout.get("icon-rotate").evaluate(pc,{}),tp=Ah.layout.get("icon-text-fit")!=="none",hm=qk(Th,Cd,Rv,tp),Wd=ld?qk(ld,Cd,Rv,tp):void 0;Qv=new cm(Gd,$o,Hd,jd,Tf,Th,Rf,Iv,!1,Cd),ep=4*hm.length;let kd=uo.iconSizeData,mp=null;kd.kind==="source"?(mp=[v0*Ah.layout.get("icon-size").evaluate(pc,{})],mp[0]>lm&&T(`${uo.layerIds[0]}: Value for "icon-size" is >= ${Wx}. Reduce your "icon-size".`)):kd.kind==="composite"&&(mp=[v0*$u.compositeIconSizes[0].evaluate(pc,{},ff),v0*$u.compositeIconSizes[1].evaluate(pc,{},ff)],(mp[0]>lm||mp[1]>lm)&&T(`${uo.layerIds[0]}: Value for "icon-size" is >= ${Wx}. Reduce your "icon-size".`)),uo.addSymbols(uo.icon,hm,mp,tu,lv,pc,i.ah.none,$o,p0.lineStartIndex,p0.lineLength,-1,ff),bS=uo.icon.placedSymbolArray.length-1,Wd&&(gg=4*Wd.length,uo.addSymbols(uo.icon,Wd,mp,tu,lv,pc,i.ah.vertical,$o,p0.lineStartIndex,p0.lineLength,-1,ff),Uw=uo.icon.placedSymbolArray.length-1)}let jh=Object.keys(qu.horizontal);for(let Cd of jh){let tp=qu.horizontal[Cd];if(!Gp){hy=bi(tp.text);let Wd=Ah.layout.get("text-rotate").evaluate(pc,{},ff);Gp=new cm(Gd,$o,Hd,jd,Tf,tp,Sh,Ed,ud,Wd)}let hm=tp.positionedLines.length===1;if(uv+=Uk(uo,$o,tp,$v,Ah,ud,pc,Hh,p0,qu.vertical?i.ah.horizontal:i.ah.horizontalOnly,hm?jh:[Cd],g0,bS,$u,ff),hm)break}qu.vertical&&(R1+=Uk(uo,$o,qu.vertical,$v,Ah,ud,pc,Hh,p0,i.ah.vertical,["vertical"],g0,Uw,$u,ff));let rO=Gp?Gp.boxStartIndex:uo.collisionBoxArray.length,Vw=Gp?Gp.boxEndIndex:uo.collisionBoxArray.length,m0=Gc?Gc.boxStartIndex:uo.collisionBoxArray.length,cv=Gc?Gc.boxEndIndex:uo.collisionBoxArray.length,Wk=Qv?Qv.boxStartIndex:uo.collisionBoxArray.length,iO=Qv?Qv.boxEndIndex:uo.collisionBoxArray.length,Xk=Zf?Zf.boxStartIndex:uo.collisionBoxArray.length,nO=Zf?Zf.boxEndIndex:uo.collisionBoxArray.length,gp=-1,rb=(Cd,tp)=>Cd&&Cd.circleDiameter?Math.max(Cd.circleDiameter,tp):tp;gp=rb(Gp,gp),gp=rb(Gc,gp),gp=rb(Qv,gp),gp=rb(Zf,gp);let Gw=gp>-1?1:0;Gw&&(gp*=I1/eu),uo.glyphOffsetArray.length>=E1.MAX_GLYPHS&&T("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),pc.sortKey!==void 0&&uo.addToSortKeyRanges(uo.symbolInstances.length,pc.sortKey);let wS=Nk(Ah,pc,ff),[aO,oO]=function(Cd,tp){let hm=Cd.length,Wd=tp==null?void 0:tp.values;if((Wd==null?void 0:Wd.length)>0)for(let kd=0;kd=0?g0.right:-1,g0.center>=0?g0.center:-1,g0.left>=0?g0.left:-1,g0.vertical||-1,bS,Uw,hy,rO,Vw,m0,cv,Wk,iO,Xk,nO,Hd,uv,R1,ep,gg,Gw,0,Sh,gp,aO,oO)}(R,Ro,Xn,F,W,te,fo,R.layers[0],R.collisionBoxArray,S.index,S.sourceLayerIndex,R.index,ui,[ln,ln,ln,ln],ro,Ke,dn,An,Vo,mr,S,fe,ut,Lt,pe)};if(Xa==="line")for(let Xn of Rk(S.geometry,0,0,Ha,Ha)){let Ro=K9(Xn,Fi,pa,F.vertical||Lr,W,24,yi,R.overscaling,Ha);for(let uo of Ro)Lr&&eO(R,Lr.text,sa,uo)||lo(Xn,uo)}else if(Xa==="line-center"){for(let Xn of S.geometry)if(Xn.length>1){let Ro=Y9(Xn,pa,F.vertical||Lr,W,24,yi);Ro&&lo(Xn,Ro)}}else if(S.type==="Polygon")for(let Xn of Cf(S.geometry,0)){let Ro=J9(Xn,16);lo(Xn[0],new vg(Ro.x,Ro.y,0))}else if(S.type==="LineString")for(let Xn of S.geometry)lo(Xn,new vg(Xn[0].x,Xn[0].y,0));else if(S.type==="Point")for(let Xn of S.geometry)for(let Ro of Xn)lo([Ro],new vg(Ro.x,Ro.y,0))}function Uk(R,S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr){let zr=function(dn,Fi,ln,An,pa,ro,Vo,Xa){let sa=An.layout.get("text-rotate").evaluate(ro,{})*Math.PI/180,Mo=[];for(let fo of Fi.positionedLines)for(let lo of fo.positionedGlyphs){if(!lo.rect)continue;let Xn=lo.rect||{},Ro=mk+1,uo=!0,$o=1,Ju=0,qu=(pa||Xa)&&lo.vertical,Th=lo.metrics.advance*lo.scale/2;if(Xa&&Fi.verticalizable&&(Ju=fo.lineOffset/2-(lo.imageName?-(eu-lo.metrics.width*lo.scale)/2:(lo.scale-1)*eu)),lo.imageName){let tu=Vo[lo.imageName];uo=tu.sdf,$o=tu.pixelRatio,Ro=Md/$o}let $v=pa?[lo.x+Th,lo.y]:[0,0],ld=pa?[0,0]:[lo.x+Th+ln[0],lo.y+ln[1]-Ju],Ah=[0,0];qu&&(Ah=ld,ld=[0,0]);let Gd=lo.metrics.isDoubleResolution?2:1,Hd=(lo.metrics.left-Ro)*lo.scale-Th+ld[0],jd=(-lo.metrics.top-Ro)*lo.scale+ld[1],Tf=Hd+Xn.w/Gd*lo.scale/$o,Sh=jd+Xn.h/Gd*lo.scale/$o,Ed=new u(Hd,jd),ud=new u(Tf,jd),Hh=new u(Hd,Sh),Rf=new u(Tf,Sh);if(qu){let tu=new u(-Th,Th-wh),pc=-Math.PI/2,$u=eu/2-Th,Rv=new u(5-wh-$u,-(lo.imageName?$u:0)),ff=new u(...Ah);Ed._rotateAround(pc,tu)._add(Rv)._add(ff),ud._rotateAround(pc,tu)._add(Rv)._add(ff),Hh._rotateAround(pc,tu)._add(Rv)._add(ff),Rf._rotateAround(pc,tu)._add(Rv)._add(ff)}if(sa){let tu=Math.sin(sa),pc=Math.cos(sa),$u=[pc,-tu,tu,pc];Ed._matMult($u),ud._matMult($u),Hh._matMult($u),Rf._matMult($u)}let Iv=new u(0,0),lv=new u(0,0);Mo.push({tl:Ed,tr:ud,bl:Hh,br:Rf,tex:Xn,writingMode:Fi.writingMode,glyphOffset:$v,sectionIndex:lo.sectionIndex,isSDF:uo,pixelOffsetTL:Iv,pixelOffsetBR:lv,minFontScaleX:0,minFontScaleY:0})}return Mo}(0,F,ze,te,fe,pe,W,R.allowVerticalPlacement),ui=R.textSizeData,yi=null;ui.kind==="source"?(yi=[v0*te.layout.get("text-size").evaluate(pe,{})],yi[0]>lm&&T(`${R.layerIds[0]}: Value for "text-size" is >= ${Wx}. Reduce your "text-size".`)):ui.kind==="composite"&&(yi=[v0*mr.compositeTextSizes[0].evaluate(pe,{},Lr),v0*mr.compositeTextSizes[1].evaluate(pe,{},Lr)],(yi[0]>lm||yi[1]>lm)&&T(`${R.layerIds[0]}: Value for "text-size" is >= ${Wx}. Reduce your "text-size".`)),R.addSymbols(R.text,zr,yi,ze,fe,pe,ut,S,Ke.lineStartIndex,Ke.lineLength,fr,Lr);for(let dn of Lt)Qt[dn]=R.text.placedSymbolArray.length-1;return 4*zr.length}function Vk(R){for(let S in R)return R[S];return null}function eO(R,S,F,W){let te=R.compareText;if(S in te){let fe=te[S];for(let pe=fe.length-1;pe>=0;pe--)if(W.dist(fe[pe])>4;if(te!==1)throw new Error(`Got v${te} data when expected v1.`);let fe=Gk[15&W];if(!fe)throw new Error("Unrecognized array type.");let[pe]=new Uint16Array(S,2,1),[ze]=new Uint32Array(S,4,1);return new mS(ze,pe,fe,S)}constructor(S,F=64,W=Float64Array,te){if(isNaN(S)||S<0)throw new Error(`Unpexpected numItems value: ${S}.`);this.numItems=+S,this.nodeSize=Math.min(Math.max(+F,2),65535),this.ArrayType=W,this.IndexArrayType=S<65536?Uint16Array:Uint32Array;let fe=Gk.indexOf(this.ArrayType),pe=2*S*this.ArrayType.BYTES_PER_ELEMENT,ze=S*this.IndexArrayType.BYTES_PER_ELEMENT,Ke=(8-ze%8)%8;if(fe<0)throw new Error(`Unexpected typed array class: ${W}.`);te&&te instanceof ArrayBuffer?(this.data=te,this.ids=new this.IndexArrayType(this.data,8,S),this.coords=new this.ArrayType(this.data,8+ze+Ke,2*S),this._pos=2*S,this._finished=!0):(this.data=new ArrayBuffer(8+pe+ze+Ke),this.ids=new this.IndexArrayType(this.data,8,S),this.coords=new this.ArrayType(this.data,8+ze+Ke,2*S),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+fe]),new Uint16Array(this.data,2,1)[0]=F,new Uint32Array(this.data,4,1)[0]=S)}add(S,F){let W=this._pos>>1;return this.ids[W]=W,this.coords[this._pos++]=S,this.coords[this._pos++]=F,W}finish(){let S=this._pos>>1;if(S!==this.numItems)throw new Error(`Added ${S} items when expected ${this.numItems}.`);return qw(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(S,F,W,te){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:fe,coords:pe,nodeSize:ze}=this,Ke=[0,fe.length-1,0],ut=[];for(;Ke.length;){let Lt=Ke.pop()||0,Qt=Ke.pop()||0,fr=Ke.pop()||0;if(Qt-fr<=ze){for(let ui=fr;ui<=Qt;ui++){let yi=pe[2*ui],dn=pe[2*ui+1];yi>=S&&yi<=W&&dn>=F&&dn<=te&&ut.push(fe[ui])}continue}let mr=fr+Qt>>1,Lr=pe[2*mr],zr=pe[2*mr+1];Lr>=S&&Lr<=W&&zr>=F&&zr<=te&&ut.push(fe[mr]),(Lt===0?S<=Lr:F<=zr)&&(Ke.push(fr),Ke.push(mr-1),Ke.push(1-Lt)),(Lt===0?W>=Lr:te>=zr)&&(Ke.push(mr+1),Ke.push(Qt),Ke.push(1-Lt))}return ut}within(S,F,W){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:te,coords:fe,nodeSize:pe}=this,ze=[0,te.length-1,0],Ke=[],ut=W*W;for(;ze.length;){let Lt=ze.pop()||0,Qt=ze.pop()||0,fr=ze.pop()||0;if(Qt-fr<=pe){for(let ui=fr;ui<=Qt;ui++)jk(fe[2*ui],fe[2*ui+1],S,F)<=ut&&Ke.push(te[ui]);continue}let mr=fr+Qt>>1,Lr=fe[2*mr],zr=fe[2*mr+1];jk(Lr,zr,S,F)<=ut&&Ke.push(te[mr]),(Lt===0?S-W<=Lr:F-W<=zr)&&(ze.push(fr),ze.push(mr-1),ze.push(1-Lt)),(Lt===0?S+W>=Lr:F+W>=zr)&&(ze.push(mr+1),ze.push(Qt),ze.push(1-Lt))}return Ke}}function qw(R,S,F,W,te,fe){if(te-W<=F)return;let pe=W+te>>1;Hk(R,S,pe,W,te,fe),qw(R,S,F,W,pe-1,1-fe),qw(R,S,F,pe+1,te,1-fe)}function Hk(R,S,F,W,te,fe){for(;te>W;){if(te-W>600){let ut=te-W+1,Lt=F-W+1,Qt=Math.log(ut),fr=.5*Math.exp(2*Qt/3),mr=.5*Math.sqrt(Qt*fr*(ut-fr)/ut)*(Lt-ut/2<0?-1:1);Hk(R,S,F,Math.max(W,Math.floor(F-Lt*fr/ut+mr)),Math.min(te,Math.floor(F+(ut-Lt)*fr/ut+mr)),fe)}let pe=S[2*F+fe],ze=W,Ke=te;for(eb(R,S,W,F),S[2*te+fe]>pe&&eb(R,S,W,te);zepe;)Ke--}S[2*W+fe]===pe?eb(R,S,W,Ke):(Ke++,eb(R,S,Ke,te)),Ke<=F&&(W=Ke+1),F<=Ke&&(te=Ke-1)}}function eb(R,S,F,W){yS(R,F,W),yS(S,2*F,2*W),yS(S,2*F+1,2*W+1)}function yS(R,S,F){let W=R[S];R[S]=R[F],R[F]=W}function jk(R,S,F,W){let te=R-F,fe=S-W;return te*te+fe*fe}var Bw;i.bg=void 0,(Bw=i.bg||(i.bg={})).create="create",Bw.load="load",Bw.fullLoad="fullLoad";let tb=null,sh=[],_S=1e3/60,xS="loadTime",Nw="fullLoadTime",tO={mark(R){performance.mark(R)},frame(R){let S=R;tb!=null&&sh.push(S-tb),tb=S},clearMetrics(){tb=null,sh=[],performance.clearMeasures(xS),performance.clearMeasures(Nw);for(let R in i.bg)performance.clearMarks(i.bg[R])},getPerformanceMetrics(){performance.measure(xS,i.bg.create,i.bg.load),performance.measure(Nw,i.bg.create,i.bg.fullLoad);let R=performance.getEntriesByName(xS)[0].duration,S=performance.getEntriesByName(Nw)[0].duration,F=sh.length,W=1/(sh.reduce((fe,pe)=>fe+pe,0)/F/1e3),te=sh.filter(fe=>fe>_S).reduce((fe,pe)=>fe+(pe-_S)/_S,0);return{loadTime:R,fullLoadTime:S,fps:W,percentDroppedFrames:te/(F+te)*100,totalFrames:F}}};i.$=class extends Kt{},i.A=xi,i.B=hn,i.C=function(R){if(V==null){let S=R.navigator?R.navigator.userAgent:null;V=!!R.safari||!(!S||!(/\b(iPad|iPhone|iPod)\b/.test(S)||S.match("Safari")&&!S.match("Chrome")))}return V},i.D=Ua,i.E=Fe,i.F=class{constructor(R,S){this.target=R,this.mapId=S,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new cS(()=>this.process()),this.subscription=function(F,W,te,fe){return F.addEventListener(W,te,!1),{unsubscribe:()=>{F.removeEventListener(W,te,!1)}}}(this.target,"message",F=>this.receive(F)),this.globalScope=O(self)?R:window}registerMessageHandler(R,S){this.messageHandlers[R]=S}sendAsync(R,S){return new Promise((F,W)=>{let te=Math.round(1e18*Math.random()).toString(36).substring(0,10);this.resolveRejects[te]={resolve:F,reject:W},S&&S.signal.addEventListener("abort",()=>{delete this.resolveRejects[te];let ze={id:te,type:"",origin:location.origin,targetMapId:R.targetMapId,sourceMapId:this.mapId};this.target.postMessage(ze)},{once:!0});let fe=[],pe=Object.assign(Object.assign({},R),{id:te,sourceMapId:this.mapId,origin:location.origin,data:La(R.data,fe)});this.target.postMessage(pe,{transfer:fe})})}receive(R){let S=R.data,F=S.id;if(!(S.origin!=="file://"&&location.origin!=="file://"&&S.origin!=="resource://android"&&location.origin!=="resource://android"&&S.origin!==location.origin||S.targetMapId&&this.mapId!==S.targetMapId)){if(S.type===""){delete this.tasks[F];let W=this.abortControllers[F];return delete this.abortControllers[F],void(W&&W.abort())}if(O(self)||S.mustQueue)return this.tasks[F]=S,this.taskQueue.push(F),void this.invoker.trigger();this.processTask(F,S)}}process(){if(this.taskQueue.length===0)return;let R=this.taskQueue.shift(),S=this.tasks[R];delete this.tasks[R],this.taskQueue.length>0&&this.invoker.trigger(),S&&this.processTask(R,S)}processTask(R,S){return a(this,void 0,void 0,function*(){if(S.type===""){let te=this.resolveRejects[R];return delete this.resolveRejects[R],te?void(S.error?te.reject(Na(S.error)):te.resolve(Na(S.data))):void 0}if(!this.messageHandlers[S.type])return void this.completeTask(R,new Error(`Could not find a registered handler for ${S.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));let F=Na(S.data),W=new AbortController;this.abortControllers[R]=W;try{let te=yield this.messageHandlers[S.type](S.sourceMapId,F,W);this.completeTask(R,null,te)}catch(te){this.completeTask(R,te)}})}completeTask(R,S,F){let W=[];delete this.abortControllers[R];let te={id:R,type:"",sourceMapId:this.mapId,origin:location.origin,error:S?La(S):null,data:La(F,W)};this.target.postMessage(te,{transfer:W})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},i.G=ke,i.H=function(){var R=new xi(16);return xi!=Float32Array&&(R[1]=0,R[2]=0,R[3]=0,R[4]=0,R[6]=0,R[7]=0,R[8]=0,R[9]=0,R[11]=0,R[12]=0,R[13]=0,R[14]=0),R[0]=1,R[5]=1,R[10]=1,R[15]=1,R},i.I=Cw,i.J=function(R,S,F){var W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr=F[0],ui=F[1],yi=F[2];return S===R?(R[12]=S[0]*zr+S[4]*ui+S[8]*yi+S[12],R[13]=S[1]*zr+S[5]*ui+S[9]*yi+S[13],R[14]=S[2]*zr+S[6]*ui+S[10]*yi+S[14],R[15]=S[3]*zr+S[7]*ui+S[11]*yi+S[15]):(te=S[1],fe=S[2],pe=S[3],ze=S[4],Ke=S[5],ut=S[6],Lt=S[7],Qt=S[8],fr=S[9],mr=S[10],Lr=S[11],R[0]=W=S[0],R[1]=te,R[2]=fe,R[3]=pe,R[4]=ze,R[5]=Ke,R[6]=ut,R[7]=Lt,R[8]=Qt,R[9]=fr,R[10]=mr,R[11]=Lr,R[12]=W*zr+ze*ui+Qt*yi+S[12],R[13]=te*zr+Ke*ui+fr*yi+S[13],R[14]=fe*zr+ut*ui+mr*yi+S[14],R[15]=pe*zr+Lt*ui+Lr*yi+S[15]),R},i.K=function(R,S,F){var W=F[0],te=F[1],fe=F[2];return R[0]=S[0]*W,R[1]=S[1]*W,R[2]=S[2]*W,R[3]=S[3]*W,R[4]=S[4]*te,R[5]=S[5]*te,R[6]=S[6]*te,R[7]=S[7]*te,R[8]=S[8]*fe,R[9]=S[9]*fe,R[10]=S[10]*fe,R[11]=S[11]*fe,R[12]=S[12],R[13]=S[13],R[14]=S[14],R[15]=S[15],R},i.L=ci,i.M=function(R,S){let F={};for(let W=0;W{let S=window.document.createElement("video");return S.muted=!0,new Promise(F=>{S.onloadstart=()=>{F(S)};for(let W of R){let te=window.document.createElement("source");Le(W)||(S.crossOrigin="Anonymous"),te.src=W,S.appendChild(te)}})},i.a4=function(){return x++},i.a5=In,i.a6=E1,i.a7=Fc,i.a8=Sl,i.a9=dS,i.aA=function(R){if(R.type==="custom")return new uS(R);switch(R.type){case"background":return new X9(R);case"circle":return new vi(R);case"fill":return new mt(R);case"fill-extrusion":return new Ev(R);case"heatmap":return new oa(R);case"hillshade":return new Ys(R);case"line":return new ay(R);case"raster":return new Kx(R);case"symbol":return new uy(R)}},i.aB=g,i.aC=function(R,S){if(!R)return[{command:"setStyle",args:[S]}];let F=[];try{if(!pt(R.version,S.version))return[{command:"setStyle",args:[S]}];pt(R.center,S.center)||F.push({command:"setCenter",args:[S.center]}),pt(R.zoom,S.zoom)||F.push({command:"setZoom",args:[S.zoom]}),pt(R.bearing,S.bearing)||F.push({command:"setBearing",args:[S.bearing]}),pt(R.pitch,S.pitch)||F.push({command:"setPitch",args:[S.pitch]}),pt(R.sprite,S.sprite)||F.push({command:"setSprite",args:[S.sprite]}),pt(R.glyphs,S.glyphs)||F.push({command:"setGlyphs",args:[S.glyphs]}),pt(R.transition,S.transition)||F.push({command:"setTransition",args:[S.transition]}),pt(R.light,S.light)||F.push({command:"setLight",args:[S.light]}),pt(R.terrain,S.terrain)||F.push({command:"setTerrain",args:[S.terrain]}),pt(R.sky,S.sky)||F.push({command:"setSky",args:[S.sky]}),pt(R.projection,S.projection)||F.push({command:"setProjection",args:[S.projection]});let W={},te=[];(function(pe,ze,Ke,ut){let Lt;for(Lt in ze=ze||{},pe=pe||{})Object.prototype.hasOwnProperty.call(pe,Lt)&&(Object.prototype.hasOwnProperty.call(ze,Lt)||lt(Lt,Ke,ut));for(Lt in ze)Object.prototype.hasOwnProperty.call(ze,Lt)&&(Object.prototype.hasOwnProperty.call(pe,Lt)?pt(pe[Lt],ze[Lt])||(pe[Lt].type==="geojson"&&ze[Lt].type==="geojson"&&Nt(pe,ze,Lt)?Wt(Ke,{command:"setGeoJSONSourceData",args:[Lt,ze[Lt].data]}):Gt(Lt,ze,Ke,ut)):st(Lt,ze,Ke))})(R.sources,S.sources,te,W);let fe=[];R.layers&&R.layers.forEach(pe=>{"source"in pe&&W[pe.source]?F.push({command:"removeLayer",args:[pe.id]}):fe.push(pe)}),F=F.concat(te),function(pe,ze,Ke){ze=ze||[];let ut=(pe=pe||[]).map(sr),Lt=ze.map(sr),Qt=pe.reduce(wr,{}),fr=ze.reduce(wr,{}),mr=ut.slice(),Lr=Object.create(null),zr,ui,yi,dn,Fi;for(let ln=0,An=0;ln@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(F,W,te,fe)=>{let pe=te||fe;return S[W]=!pe||pe.toLowerCase(),""}),S["max-age"]){let F=parseInt(S["max-age"],10);isNaN(F)?delete S["max-age"]:S["max-age"]=F}return S},i.ab=function(R,S){let F=[];for(let W in R)W in S||F.push(W);return F},i.ac=E,i.ad=function(R,S,F){var W=Math.sin(F),te=Math.cos(F),fe=S[0],pe=S[1],ze=S[2],Ke=S[3],ut=S[4],Lt=S[5],Qt=S[6],fr=S[7];return S!==R&&(R[8]=S[8],R[9]=S[9],R[10]=S[10],R[11]=S[11],R[12]=S[12],R[13]=S[13],R[14]=S[14],R[15]=S[15]),R[0]=fe*te+ut*W,R[1]=pe*te+Lt*W,R[2]=ze*te+Qt*W,R[3]=Ke*te+fr*W,R[4]=ut*te-fe*W,R[5]=Lt*te-pe*W,R[6]=Qt*te-ze*W,R[7]=fr*te-Ke*W,R},i.ae=function(R){var S=new xi(16);return S[0]=R[0],S[1]=R[1],S[2]=R[2],S[3]=R[3],S[4]=R[4],S[5]=R[5],S[6]=R[6],S[7]=R[7],S[8]=R[8],S[9]=R[9],S[10]=R[10],S[11]=R[11],S[12]=R[12],S[13]=R[13],S[14]=R[14],S[15]=R[15],S},i.af=qn,i.ag=function(R,S){let F=0,W=0;if(R.kind==="constant")W=R.layoutSize;else if(R.kind!=="source"){let{interpolationType:te,minZoom:fe,maxZoom:pe}=R,ze=te?E(Co.interpolationFactor(te,S,fe,pe),0,1):0;R.kind==="camera"?W=Lo.number(R.minSize,R.maxSize,ze):F=ze}return{uSizeT:F,uSize:W}},i.ai=function(R,{uSize:S,uSizeT:F},{lowerSize:W,upperSize:te}){return R.kind==="source"?W/v0:R.kind==="composite"?Lo.number(W/v0,te/v0,F):S},i.aj=aS,i.ak=function(R,S,F,W){let te=S.y-R.y,fe=S.x-R.x,pe=W.y-F.y,ze=W.x-F.x,Ke=pe*fe-ze*te;if(Ke===0)return null;let ut=(ze*(R.y-F.y)-pe*(R.x-F.x))/Ke;return new u(R.x+ut*fe,R.y+ut*te)},i.al=Rk,i.am=Sc,i.an=Ii,i.ao=function(R){let S=1/0,F=1/0,W=-1/0,te=-1/0;for(let fe of R)S=Math.min(S,fe.x),F=Math.min(F,fe.y),W=Math.max(W,fe.x),te=Math.max(te,fe.y);return[S,F,W,te]},i.ap=eu,i.ar=nS,i.as=function(R,S){var F=S[0],W=S[1],te=S[2],fe=S[3],pe=S[4],ze=S[5],Ke=S[6],ut=S[7],Lt=S[8],Qt=S[9],fr=S[10],mr=S[11],Lr=S[12],zr=S[13],ui=S[14],yi=S[15],dn=F*ze-W*pe,Fi=F*Ke-te*pe,ln=F*ut-fe*pe,An=W*Ke-te*ze,pa=W*ut-fe*ze,ro=te*ut-fe*Ke,Vo=Lt*zr-Qt*Lr,Xa=Lt*ui-fr*Lr,sa=Lt*yi-mr*Lr,Mo=Qt*ui-fr*zr,fo=Qt*yi-mr*zr,lo=fr*yi-mr*ui,Xn=dn*lo-Fi*fo+ln*Mo+An*sa-pa*Xa+ro*Vo;return Xn?(R[0]=(ze*lo-Ke*fo+ut*Mo)*(Xn=1/Xn),R[1]=(te*fo-W*lo-fe*Mo)*Xn,R[2]=(zr*ro-ui*pa+yi*An)*Xn,R[3]=(fr*pa-Qt*ro-mr*An)*Xn,R[4]=(Ke*sa-pe*lo-ut*Xa)*Xn,R[5]=(F*lo-te*sa+fe*Xa)*Xn,R[6]=(ui*ln-Lr*ro-yi*Fi)*Xn,R[7]=(Lt*ro-fr*ln+mr*Fi)*Xn,R[8]=(pe*fo-ze*sa+ut*Vo)*Xn,R[9]=(W*sa-F*fo-fe*Vo)*Xn,R[10]=(Lr*pa-zr*ln+yi*dn)*Xn,R[11]=(Qt*ln-Lt*pa-mr*dn)*Xn,R[12]=(ze*Xa-pe*Mo-Ke*Vo)*Xn,R[13]=(F*Mo-W*Xa+te*Vo)*Xn,R[14]=(zr*Fi-Lr*An-ui*dn)*Xn,R[15]=(Lt*An-Qt*Fi+fr*dn)*Xn,R):null},i.at=gS,i.au=Iw,i.av=mS,i.aw=function(){let R={},S=ce.$version;for(let F in ce.$root){let W=ce.$root[F];if(W.required){let te=null;te=F==="version"?S:W.type==="array"?[]:{},te!=null&&(R[F]=te)}}return R},i.ax=Yn,i.ay=ie,i.az=function(R){R=R.slice();let S=Object.create(null);for(let F=0;F25||W<0||W>=1||F<0||F>=1)},i.bc=function(R,S){return R[0]=S[0],R[1]=0,R[2]=0,R[3]=0,R[4]=0,R[5]=S[1],R[6]=0,R[7]=0,R[8]=0,R[9]=0,R[10]=S[2],R[11]=0,R[12]=0,R[13]=0,R[14]=0,R[15]=1,R},i.bd=class extends Tt{},i.be=fS,i.bf=tO,i.bh=me,i.bi=function(R,S){_e.REGISTERED_PROTOCOLS[R]=S},i.bj=function(R){delete _e.REGISTERED_PROTOCOLS[R]},i.bk=function(R,S){let F={};for(let te=0;telo*eu)}let Xa=pe?"center":F.get("text-justify").evaluate(ut,{},R.canonical),sa=F.get("symbol-placement")==="point"?F.get("text-max-width").evaluate(ut,{},R.canonical)*eu:1/0,Mo=()=>{R.bucket.allowVerticalPlacement&&Ka(ln)&&(Lr.vertical=Hx(zr,R.glyphMap,R.glyphPositions,R.imagePositions,Lt,sa,fe,ro,"left",pa,yi,i.ah.vertical,!0,fr,Qt))};if(!pe&&Vo){let fo=new Set;if(Xa==="auto")for(let Xn=0;Xna(void 0,void 0,void 0,function*(){if(R.byteLength===0)return createImageBitmap(new ImageData(1,1));let S=new Blob([new Uint8Array(R)],{type:"image/png"});try{return createImageBitmap(S)}catch(F){throw new Error(`Could not load image because of ${F.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}}),i.e=L,i.f=R=>new Promise((S,F)=>{let W=new Image;W.onload=()=>{S(W),URL.revokeObjectURL(W.src),W.onload=null,window.requestAnimationFrame(()=>{W.src=Z})},W.onerror=()=>F(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));let te=new Blob([new Uint8Array(R)],{type:"image/png"});W.src=R.byteLength?URL.createObjectURL(te):Z}),i.g=Me,i.h=(R,S)=>Se(L(R,{type:"json"}),S),i.i=O,i.j=ge,i.k=Pe,i.l=(R,S)=>Se(L(R,{type:"arrayBuffer"}),S),i.m=Se,i.n=function(R){return new tS(R).readFields(CQ,[])},i.o=na,i.p=iS,i.q=ue,i.r=Wi,i.s=Le,i.t=Zi,i.u=Ei,i.v=ce,i.w=T,i.x=function([R,S,F]){return S+=90,S*=Math.PI/180,F*=Math.PI/180,{x:R*Math.cos(S)*Math.sin(F),y:R*Math.sin(S)*Math.sin(F),z:R*Math.cos(F)}},i.y=Lo,i.z=is}),r("worker",["./shared"],function(i){"use strict";class a{constructor(Ge){this.keyCache={},Ge&&this.replace(Ge)}replace(Ge){this._layerConfigs={},this._layers={},this.update(Ge,[])}update(Ge,Je){for(let $e of Ge){this._layerConfigs[$e.id]=$e;let wt=this._layers[$e.id]=i.aA($e);wt._featureFilter=i.a7(wt.filter),this.keyCache[$e.id]&&delete this.keyCache[$e.id]}for(let $e of Je)delete this.keyCache[$e],delete this._layerConfigs[$e],delete this._layers[$e];this.familiesBySource={};let je=i.bk(Object.values(this._layerConfigs),this.keyCache);for(let $e of je){let wt=$e.map(ir=>this._layers[ir.id]),Ie=wt[0];if(Ie.visibility==="none")continue;let xe=Ie.source||"",Ce=this.familiesBySource[xe];Ce||(Ce=this.familiesBySource[xe]={});let vt=Ie.sourceLayer||"_geojsonTileLayer",nr=Ce[vt];nr||(nr=Ce[vt]=[]),nr.push(wt)}}}class o{constructor(Ge){let Je={},je=[];for(let xe in Ge){let Ce=Ge[xe],vt=Je[xe]={};for(let nr in Ce){let ir=Ce[+nr];if(!ir||ir.bitmap.width===0||ir.bitmap.height===0)continue;let pr={x:0,y:0,w:ir.bitmap.width+2,h:ir.bitmap.height+2};je.push(pr),vt[nr]={rect:pr,metrics:ir.metrics}}}let{w:$e,h:wt}=i.p(je),Ie=new i.o({width:$e||1,height:wt||1});for(let xe in Ge){let Ce=Ge[xe];for(let vt in Ce){let nr=Ce[+vt];if(!nr||nr.bitmap.width===0||nr.bitmap.height===0)continue;let ir=Je[xe][vt].rect;i.o.copy(nr.bitmap,Ie,{x:0,y:0},{x:ir.x+1,y:ir.y+1},nr.bitmap)}}this.image=Ie,this.positions=Je}}i.bl("GlyphAtlas",o);class s{constructor(Ge){this.tileID=new i.S(Ge.tileID.overscaledZ,Ge.tileID.wrap,Ge.tileID.canonical.z,Ge.tileID.canonical.x,Ge.tileID.canonical.y),this.uid=Ge.uid,this.zoom=Ge.zoom,this.pixelRatio=Ge.pixelRatio,this.tileSize=Ge.tileSize,this.source=Ge.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=Ge.showCollisionBoxes,this.collectResourceTiming=!!Ge.collectResourceTiming,this.returnDependencies=!!Ge.returnDependencies,this.promoteId=Ge.promoteId,this.inFlightDependencies=[]}parse(Ge,Je,je,$e){return i._(this,void 0,void 0,function*(){this.status="parsing",this.data=Ge,this.collisionBoxArray=new i.a5;let wt=new i.bm(Object.keys(Ge.layers).sort()),Ie=new i.bn(this.tileID,this.promoteId);Ie.bucketLayerIDs=[];let xe={},Ce={featureIndex:Ie,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:je},vt=Je.familiesBySource[this.source];for(let Vn in vt){let kn=Ge.layers[Vn];if(!kn)continue;kn.version===1&&i.w(`Vector tile source "${this.source}" layer "${Vn}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let ea=wt.encode(Vn),ua=[];for(let Vt=0;Vt=_t.maxzoom||_t.visibility!=="none"&&(l(Vt,this.zoom,je),(xe[_t.id]=_t.createBucket({index:Ie.bucketLayerIDs.length,layers:Vt,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:ea,sourceID:this.source})).populate(ua,Ce,this.tileID.canonical),Ie.bucketLayerIDs.push(Vt.map(tr=>tr.id)))}}let nr=i.aF(Ce.glyphDependencies,Vn=>Object.keys(Vn).map(Number));this.inFlightDependencies.forEach(Vn=>Vn==null?void 0:Vn.abort()),this.inFlightDependencies=[];let ir=Promise.resolve({});if(Object.keys(nr).length){let Vn=new AbortController;this.inFlightDependencies.push(Vn),ir=$e.sendAsync({type:"GG",data:{stacks:nr,source:this.source,tileID:this.tileID,type:"glyphs"}},Vn)}let pr=Object.keys(Ce.iconDependencies),oi=Promise.resolve({});if(pr.length){let Vn=new AbortController;this.inFlightDependencies.push(Vn),oi=$e.sendAsync({type:"GI",data:{icons:pr,source:this.source,tileID:this.tileID,type:"icons"}},Vn)}let di=Object.keys(Ce.patternDependencies),Jr=Promise.resolve({});if(di.length){let Vn=new AbortController;this.inFlightDependencies.push(Vn),Jr=$e.sendAsync({type:"GI",data:{icons:di,source:this.source,tileID:this.tileID,type:"patterns"}},Vn)}let[fi,Hi,Pn]=yield Promise.all([ir,oi,Jr]),wn=new o(fi),pn=new i.bo(Hi,Pn);for(let Vn in xe){let kn=xe[Vn];kn instanceof i.a6?(l(kn.layers,this.zoom,je),i.bp({bucket:kn,glyphMap:fi,glyphPositions:wn.positions,imageMap:Hi,imagePositions:pn.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):kn.hasPattern&&(kn instanceof i.bq||kn instanceof i.br||kn instanceof i.bs)&&(l(kn.layers,this.zoom,je),kn.addFeatures(Ce,this.tileID.canonical,pn.patternPositions))}return this.status="done",{buckets:Object.values(xe).filter(Vn=>!Vn.isEmpty()),featureIndex:Ie,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:wn.image,imageAtlas:pn,glyphMap:this.returnDependencies?fi:null,iconMap:this.returnDependencies?Hi:null,glyphPositions:this.returnDependencies?wn.positions:null}})}}function l(dt,Ge,Je){let je=new i.z(Ge);for(let $e of dt)$e.recalculate(je,Je)}class u{constructor(Ge,Je,je){this.actor=Ge,this.layerIndex=Je,this.availableImages=je,this.fetching={},this.loading={},this.loaded={}}loadVectorTile(Ge,Je){return i._(this,void 0,void 0,function*(){let je=yield i.l(Ge.request,Je);try{return{vectorTile:new i.bt.VectorTile(new i.bu(je.data)),rawData:je.data,cacheControl:je.cacheControl,expires:je.expires}}catch($e){let wt=new Uint8Array(je.data),Ie=`Unable to parse the tile at ${Ge.request.url}, `;throw Ie+=wt[0]===31&&wt[1]===139?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${$e.message}`,new Error(Ie)}})}loadTile(Ge){return i._(this,void 0,void 0,function*(){let Je=Ge.uid,je=!!(Ge&&Ge.request&&Ge.request.collectResourceTiming)&&new i.bv(Ge.request),$e=new s(Ge);this.loading[Je]=$e;let wt=new AbortController;$e.abort=wt;try{let Ie=yield this.loadVectorTile(Ge,wt);if(delete this.loading[Je],!Ie)return null;let xe=Ie.rawData,Ce={};Ie.expires&&(Ce.expires=Ie.expires),Ie.cacheControl&&(Ce.cacheControl=Ie.cacheControl);let vt={};if(je){let ir=je.finish();ir&&(vt.resourceTiming=JSON.parse(JSON.stringify(ir)))}$e.vectorTile=Ie.vectorTile;let nr=$e.parse(Ie.vectorTile,this.layerIndex,this.availableImages,this.actor);this.loaded[Je]=$e,this.fetching[Je]={rawTileData:xe,cacheControl:Ce,resourceTiming:vt};try{let ir=yield nr;return i.e({rawTileData:xe.slice(0)},ir,Ce,vt)}finally{delete this.fetching[Je]}}catch(Ie){throw delete this.loading[Je],$e.status="done",this.loaded[Je]=$e,Ie}})}reloadTile(Ge){return i._(this,void 0,void 0,function*(){let Je=Ge.uid;if(!this.loaded||!this.loaded[Je])throw new Error("Should not be trying to reload a tile that was never loaded or has been removed");let je=this.loaded[Je];if(je.showCollisionBoxes=Ge.showCollisionBoxes,je.status==="parsing"){let $e=yield je.parse(je.vectorTile,this.layerIndex,this.availableImages,this.actor),wt;if(this.fetching[Je]){let{rawTileData:Ie,cacheControl:xe,resourceTiming:Ce}=this.fetching[Je];delete this.fetching[Je],wt=i.e({rawTileData:Ie.slice(0)},$e,xe,Ce)}else wt=$e;return wt}if(je.status==="done"&&je.vectorTile)return je.parse(je.vectorTile,this.layerIndex,this.availableImages,this.actor)})}abortTile(Ge){return i._(this,void 0,void 0,function*(){let Je=this.loading,je=Ge.uid;Je&&Je[je]&&Je[je].abort&&(Je[je].abort.abort(),delete Je[je])})}removeTile(Ge){return i._(this,void 0,void 0,function*(){this.loaded&&this.loaded[Ge.uid]&&delete this.loaded[Ge.uid]})}}class c{constructor(){this.loaded={}}loadTile(Ge){return i._(this,void 0,void 0,function*(){let{uid:Je,encoding:je,rawImageData:$e,redFactor:wt,greenFactor:Ie,blueFactor:xe,baseShift:Ce}=Ge,vt=$e.width+2,nr=$e.height+2,ir=i.b($e)?new i.R({width:vt,height:nr},yield i.bw($e,-1,-1,vt,nr)):$e,pr=new i.bx(Je,ir,je,wt,Ie,xe,Ce);return this.loaded=this.loaded||{},this.loaded[Je]=pr,pr})}removeTile(Ge){let Je=this.loaded,je=Ge.uid;Je&&Je[je]&&delete Je[je]}}function f(dt,Ge){if(dt.length!==0){h(dt[0],Ge);for(var Je=1;Je=Math.abs(xe)?Je-Ce+xe:xe-Ce+Je,Je=Ce}Je+je>=0!=!!Ge&&dt.reverse()}var d=i.by(function dt(Ge,Je){var je,$e=Ge&&Ge.type;if($e==="FeatureCollection")for(je=0;je>31}function O(dt,Ge){for(var Je=dt.loadGeometry(),je=dt.type,$e=0,wt=0,Ie=Je.length,xe=0;xedt},H=Math.fround||(N=new Float32Array(1),dt=>(N[0]=+dt,N[0]));var N;let j=3,re=5,oe=6;class _e{constructor(Ge){this.options=Object.assign(Object.create(Z),Ge),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(Ge){let{log:Je,minZoom:je,maxZoom:$e}=this.options;Je&&console.time("total time");let wt=`prepare ${Ge.length} points`;Je&&console.time(wt),this.points=Ge;let Ie=[];for(let Ce=0;Ce=je;Ce--){let vt=+Date.now();xe=this.trees[Ce]=this._createTree(this._cluster(xe,Ce)),Je&&console.log("z%d: %d clusters in %dms",Ce,xe.numItems,+Date.now()-vt)}return Je&&console.timeEnd("total time"),this}getClusters(Ge,Je){let je=((Ge[0]+180)%360+360)%360-180,$e=Math.max(-90,Math.min(90,Ge[1])),wt=Ge[2]===180?180:((Ge[2]+180)%360+360)%360-180,Ie=Math.max(-90,Math.min(90,Ge[3]));if(Ge[2]-Ge[0]>=360)je=-180,wt=180;else if(je>wt){let ir=this.getClusters([je,$e,180,Ie],Je),pr=this.getClusters([-180,$e,wt,Ie],Je);return ir.concat(pr)}let xe=this.trees[this._limitZoom(Je)],Ce=xe.range(me(je),ie(Ie),me(wt),ie($e)),vt=xe.data,nr=[];for(let ir of Ce){let pr=this.stride*ir;nr.push(vt[pr+re]>1?Me(vt,pr,this.clusterProps):this.points[vt[pr+j]])}return nr}getChildren(Ge){let Je=this._getOriginId(Ge),je=this._getOriginZoom(Ge),$e="No cluster with the specified id.",wt=this.trees[je];if(!wt)throw new Error($e);let Ie=wt.data;if(Je*this.stride>=Ie.length)throw new Error($e);let xe=this.options.radius/(this.options.extent*Math.pow(2,je-1)),Ce=wt.within(Ie[Je*this.stride],Ie[Je*this.stride+1],xe),vt=[];for(let nr of Ce){let ir=nr*this.stride;Ie[ir+4]===Ge&&vt.push(Ie[ir+re]>1?Me(Ie,ir,this.clusterProps):this.points[Ie[ir+j]])}if(vt.length===0)throw new Error($e);return vt}getLeaves(Ge,Je,je){let $e=[];return this._appendLeaves($e,Ge,Je=Je||10,je=je||0,0),$e}getTile(Ge,Je,je){let $e=this.trees[this._limitZoom(Ge)],wt=Math.pow(2,Ge),{extent:Ie,radius:xe}=this.options,Ce=xe/Ie,vt=(je-Ce)/wt,nr=(je+1+Ce)/wt,ir={features:[]};return this._addTileFeatures($e.range((Je-Ce)/wt,vt,(Je+1+Ce)/wt,nr),$e.data,Je,je,wt,ir),Je===0&&this._addTileFeatures($e.range(1-Ce/wt,vt,1,nr),$e.data,wt,je,wt,ir),Je===wt-1&&this._addTileFeatures($e.range(0,vt,Ce/wt,nr),$e.data,-1,je,wt,ir),ir.features.length?ir:null}getClusterExpansionZoom(Ge){let Je=this._getOriginZoom(Ge)-1;for(;Je<=this.options.maxZoom;){let je=this.getChildren(Ge);if(Je++,je.length!==1)break;Ge=je[0].properties.cluster_id}return Je}_appendLeaves(Ge,Je,je,$e,wt){let Ie=this.getChildren(Je);for(let xe of Ie){let Ce=xe.properties;if(Ce&&Ce.cluster?wt+Ce.point_count<=$e?wt+=Ce.point_count:wt=this._appendLeaves(Ge,Ce.cluster_id,je,$e,wt):wt<$e?wt++:Ge.push(xe),Ge.length===je)break}return wt}_createTree(Ge){let Je=new i.av(Ge.length/this.stride|0,this.options.nodeSize,Float32Array);for(let je=0;je1,nr,ir,pr;if(vt)nr=ke(Je,Ce,this.clusterProps),ir=Je[Ce],pr=Je[Ce+1];else{let Jr=this.points[Je[Ce+j]];nr=Jr.properties;let[fi,Hi]=Jr.geometry.coordinates;ir=me(fi),pr=ie(Hi)}let oi={type:1,geometry:[[Math.round(this.options.extent*(ir*wt-je)),Math.round(this.options.extent*(pr*wt-$e))]],tags:nr},di;di=vt||this.options.generateId?Je[Ce+j]:this.points[Je[Ce+j]].id,di!==void 0&&(oi.id=di),Ie.features.push(oi)}}_limitZoom(Ge){return Math.max(this.options.minZoom,Math.min(Math.floor(+Ge),this.options.maxZoom+1))}_cluster(Ge,Je){let{radius:je,extent:$e,reduce:wt,minPoints:Ie}=this.options,xe=je/($e*Math.pow(2,Je)),Ce=Ge.data,vt=[],nr=this.stride;for(let ir=0;irJe&&(fi+=Ce[Pn+re])}if(fi>Jr&&fi>=Ie){let Hi,Pn=pr*Jr,wn=oi*Jr,pn=-1,Vn=((ir/nr|0)<<5)+(Je+1)+this.points.length;for(let kn of di){let ea=kn*nr;if(Ce[ea+2]<=Je)continue;Ce[ea+2]=Je;let ua=Ce[ea+re];Pn+=Ce[ea]*ua,wn+=Ce[ea+1]*ua,Ce[ea+4]=Vn,wt&&(Hi||(Hi=this._map(Ce,ir,!0),pn=this.clusterProps.length,this.clusterProps.push(Hi)),wt(Hi,this._map(Ce,ea)))}Ce[ir+4]=Vn,vt.push(Pn/fi,wn/fi,1/0,Vn,-1,fi),wt&&vt.push(pn)}else{for(let Hi=0;Hi1)for(let Hi of di){let Pn=Hi*nr;if(!(Ce[Pn+2]<=Je)){Ce[Pn+2]=Je;for(let wn=0;wn>5}_getOriginZoom(Ge){return(Ge-this.points.length)%32}_map(Ge,Je,je){if(Ge[Je+re]>1){let Ie=this.clusterProps[Ge[Je+oe]];return je?Object.assign({},Ie):Ie}let $e=this.points[Ge[Je+j]].properties,wt=this.options.map($e);return je&&wt===$e?Object.assign({},wt):wt}}function Me(dt,Ge,Je){return{type:"Feature",id:dt[Ge+j],properties:ke(dt,Ge,Je),geometry:{type:"Point",coordinates:[(je=dt[Ge],360*(je-.5)),Se(dt[Ge+1])]}};var je}function ke(dt,Ge,Je){let je=dt[Ge+re],$e=je>=1e4?`${Math.round(je/1e3)}k`:je>=1e3?Math.round(je/100)/10+"k":je,wt=dt[Ge+oe],Ie=wt===-1?{}:Object.assign({},Je[wt]);return Object.assign(Ie,{cluster:!0,cluster_id:dt[Ge+j],point_count:je,point_count_abbreviated:$e})}function me(dt){return dt/360+.5}function ie(dt){let Ge=Math.sin(dt*Math.PI/180),Je=.5-.25*Math.log((1+Ge)/(1-Ge))/Math.PI;return Je<0?0:Je>1?1:Je}function Se(dt){let Ge=(180-360*dt)*Math.PI/180;return 360*Math.atan(Math.exp(Ge))/Math.PI-90}function Le(dt,Ge,Je,je){let $e=je,wt=Ge+(Je-Ge>>1),Ie,xe=Je-Ge,Ce=dt[Ge],vt=dt[Ge+1],nr=dt[Je],ir=dt[Je+1];for(let pr=Ge+3;pr$e)Ie=pr,$e=oi;else if(oi===$e){let di=Math.abs(pr-wt);dije&&(Ie-Ge>3&&Le(dt,Ge,Ie,je),dt[Ie+2]=$e,Je-Ie>3&&Le(dt,Ie,Je,je))}function Ae(dt,Ge,Je,je,$e,wt){let Ie=$e-Je,xe=wt-je;if(Ie!==0||xe!==0){let Ce=((dt-Je)*Ie+(Ge-je)*xe)/(Ie*Ie+xe*xe);Ce>1?(Je=$e,je=wt):Ce>0&&(Je+=Ie*Ce,je+=xe*Ce)}return Ie=dt-Je,xe=Ge-je,Ie*Ie+xe*xe}function De(dt,Ge,Je,je){let $e={id:dt==null?null:dt,type:Ge,geometry:Je,tags:je,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if(Ge==="Point"||Ge==="MultiPoint"||Ge==="LineString")Pe($e,Je);else if(Ge==="Polygon")Pe($e,Je[0]);else if(Ge==="MultiLineString")for(let wt of Je)Pe($e,wt);else if(Ge==="MultiPolygon")for(let wt of Je)Pe($e,wt[0]);return $e}function Pe(dt,Ge){for(let Je=0;Je0&&(Ie+=je?($e*nr-vt*wt)/2:Math.sqrt(Math.pow(vt-$e,2)+Math.pow(nr-wt,2))),$e=vt,wt=nr}let xe=Ge.length-3;Ge[2]=1,Le(Ge,0,xe,Je),Ge[xe+2]=1,Ge.size=Math.abs(Ie),Ge.start=0,Ge.end=Ge.size}function Ye(dt,Ge,Je,je){for(let $e=0;$e1?1:Je}function Wt(dt,Ge,Je,je,$e,wt,Ie,xe){if(je/=Ge,wt>=(Je/=Ge)&&Ie=je)return null;let Ce=[];for(let vt of dt){let nr=vt.geometry,ir=vt.type,pr=$e===0?vt.minX:vt.minY,oi=$e===0?vt.maxX:vt.maxY;if(pr>=Je&&oi=je)continue;let di=[];if(ir==="Point"||ir==="MultiPoint")st(nr,di,Je,je,$e);else if(ir==="LineString")lt(nr,di,Je,je,$e,!1,xe.lineMetrics);else if(ir==="MultiLineString")Nt(nr,di,Je,je,$e,!1);else if(ir==="Polygon")Nt(nr,di,Je,je,$e,!0);else if(ir==="MultiPolygon")for(let Jr of nr){let fi=[];Nt(Jr,fi,Je,je,$e,!0),fi.length&&di.push(fi)}if(di.length){if(xe.lineMetrics&&ir==="LineString"){for(let Jr of di)Ce.push(De(vt.id,ir,Jr,vt.tags));continue}ir!=="LineString"&&ir!=="MultiLineString"||(di.length===1?(ir="LineString",di=di[0]):ir="MultiLineString"),ir!=="Point"&&ir!=="MultiPoint"||(ir=di.length===3?"Point":"MultiPoint"),Ce.push(De(vt.id,ir,di,vt.tags))}}return Ce.length?Ce:null}function st(dt,Ge,Je,je,$e){for(let wt=0;wt=Je&&Ie<=je&&$t(Ge,dt[wt],dt[wt+1],dt[wt+2])}}function lt(dt,Ge,Je,je,$e,wt,Ie){let xe=Gt(dt),Ce=$e===0?sr:wr,vt,nr,ir=dt.start;for(let fi=0;fiJe&&(nr=Ce(xe,Hi,Pn,pn,Vn,Je),Ie&&(xe.start=ir+vt*nr)):kn>je?ea=Je&&(nr=Ce(xe,Hi,Pn,pn,Vn,Je),ua=!0),ea>je&&kn<=je&&(nr=Ce(xe,Hi,Pn,pn,Vn,je),ua=!0),!wt&&ua&&(Ie&&(xe.end=ir+vt*nr),Ge.push(xe),xe=Gt(dt)),Ie&&(ir+=vt)}let pr=dt.length-3,oi=dt[pr],di=dt[pr+1],Jr=$e===0?oi:di;Jr>=Je&&Jr<=je&&$t(xe,oi,di,dt[pr+2]),pr=xe.length-3,wt&&pr>=3&&(xe[pr]!==xe[0]||xe[pr+1]!==xe[1])&&$t(xe,xe[0],xe[1],xe[2]),xe.length&&Ge.push(xe)}function Gt(dt){let Ge=[];return Ge.size=dt.size,Ge.start=dt.start,Ge.end=dt.end,Ge}function Nt(dt,Ge,Je,je,$e,wt){for(let Ie of dt)lt(Ie,Ge,Je,je,$e,wt,!1)}function $t(dt,Ge,Je,je){dt.push(Ge,Je,je)}function sr(dt,Ge,Je,je,$e,wt){let Ie=(wt-Ge)/(je-Ge);return $t(dt,wt,Je+($e-Je)*Ie,1),Ie}function wr(dt,Ge,Je,je,$e,wt){let Ie=(wt-Je)/($e-Je);return $t(dt,Ge+(je-Ge)*Ie,wt,1),Ie}function ur(dt,Ge){let Je=[];for(let je=0;je0&&Ge.size<($e?Ie:je))return void(Je.numPoints+=Ge.length/3);let xe=[];for(let Ce=0;CeIe)&&(Je.numSimplified++,xe.push(Ge[Ce],Ge[Ce+1])),Je.numPoints++;$e&&function(Ce,vt){let nr=0;for(let ir=0,pr=Ce.length,oi=pr-2;ir0===vt)for(let ir=0,pr=Ce.length;ir24)throw new Error("maxZoom should be in the 0-24 range");if(Je.promoteId&&Je.generateId)throw new Error("promoteId and generateId cannot be used together.");let $e=function(wt,Ie){let xe=[];if(wt.type==="FeatureCollection")for(let Ce=0;Ce1&&console.time("creation"),oi=this.tiles[pr]=Ut(Ge,Je,je,$e,vt),this.tileCoords.push({z:Je,x:je,y:$e}),nr)){nr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Je,je,$e,oi.numFeatures,oi.numPoints,oi.numSimplified),console.timeEnd("creation"));let ua=`z${Je}`;this.stats[ua]=(this.stats[ua]||0)+1,this.total++}if(oi.source=Ge,wt==null){if(Je===vt.indexMaxZoom||oi.numPoints<=vt.indexMaxPoints)continue}else{if(Je===vt.maxZoom||Je===wt)continue;if(wt!=null){let ua=wt-Je;if(je!==Ie>>ua||$e!==xe>>ua)continue}}if(oi.source=null,Ge.length===0)continue;nr>1&&console.time("clipping");let di=.5*vt.buffer/vt.extent,Jr=.5-di,fi=.5+di,Hi=1+di,Pn=null,wn=null,pn=null,Vn=null,kn=Wt(Ge,ir,je-di,je+fi,0,oi.minX,oi.maxX,vt),ea=Wt(Ge,ir,je+Jr,je+Hi,0,oi.minX,oi.maxX,vt);Ge=null,kn&&(Pn=Wt(kn,ir,$e-di,$e+fi,1,oi.minY,oi.maxY,vt),wn=Wt(kn,ir,$e+Jr,$e+Hi,1,oi.minY,oi.maxY,vt),kn=null),ea&&(pn=Wt(ea,ir,$e-di,$e+fi,1,oi.minY,oi.maxY,vt),Vn=Wt(ea,ir,$e+Jr,$e+Hi,1,oi.minY,oi.maxY,vt),ea=null),nr>1&&console.timeEnd("clipping"),Ce.push(Pn||[],Je+1,2*je,2*$e),Ce.push(wn||[],Je+1,2*je,2*$e+1),Ce.push(pn||[],Je+1,2*je+1,2*$e),Ce.push(Vn||[],Je+1,2*je+1,2*$e+1)}}getTile(Ge,Je,je){Ge=+Ge,Je=+Je,je=+je;let $e=this.options,{extent:wt,debug:Ie}=$e;if(Ge<0||Ge>24)return null;let xe=1<1&&console.log("drilling down to z%d-%d-%d",Ge,Je,je);let vt,nr=Ge,ir=Je,pr=je;for(;!vt&&nr>0;)nr--,ir>>=1,pr>>=1,vt=this.tiles[lr(nr,ir,pr)];return vt&&vt.source?(Ie>1&&(console.log("found parent tile z%d-%d-%d",nr,ir,pr),console.time("drilling down")),this.splitTile(vt.source,nr,ir,pr,Ge,Je,je),Ie>1&&console.timeEnd("drilling down"),this.tiles[Ce]?Et(this.tiles[Ce],wt):null):null}}function lr(dt,Ge,Je){return 32*((1<{ir.properties=oi;let di={};for(let Jr of pr)di[Jr]=Ce[Jr].evaluate(nr,ir);return di},Ie.reduce=(oi,di)=>{ir.properties=di;for(let Jr of pr)nr.accumulated=oi[Jr],oi[Jr]=vt[Jr].evaluate(nr,ir)},Ie}(Ge)).load((yield this._pendingData).features):($e=yield this._pendingData,new Yt($e,Ge.geojsonVtOptions)),this.loaded={};let wt={};if(je){let Ie=je.finish();Ie&&(wt.resourceTiming={},wt.resourceTiming[Ge.source]=JSON.parse(JSON.stringify(Ie)))}return wt}catch(wt){if(delete this._pendingRequest,i.bB(wt))return{abandoned:!0};throw wt}var $e})}getData(){return i._(this,void 0,void 0,function*(){return this._pendingData})}reloadTile(Ge){let Je=this.loaded;return Je&&Je[Ge.uid]?super.reloadTile(Ge):this.loadTile(Ge)}loadAndProcessGeoJSON(Ge,Je){return i._(this,void 0,void 0,function*(){let je=yield this.loadGeoJSON(Ge,Je);if(delete this._pendingRequest,typeof je!="object")throw new Error(`Input data given to '${Ge.source}' is not a valid GeoJSON object.`);if(d(je,!0),Ge.filter){let $e=i.bC(Ge.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if($e.result==="error")throw new Error($e.value.map(Ie=>`${Ie.key}: ${Ie.message}`).join(", "));je={type:"FeatureCollection",features:je.features.filter(Ie=>$e.value.evaluate({zoom:0},Ie))}}return je})}loadGeoJSON(Ge,Je){return i._(this,void 0,void 0,function*(){let{promoteId:je}=Ge;if(Ge.request){let $e=yield i.h(Ge.request,Je);return this._dataUpdateable=Rr($e.data,je)?ei($e.data,je):void 0,$e.data}if(typeof Ge.data=="string")try{let $e=JSON.parse(Ge.data);return this._dataUpdateable=Rr($e,je)?ei($e,je):void 0,$e}catch($e){throw new Error(`Input data given to '${Ge.source}' is not a valid GeoJSON object.`)}if(!Ge.dataDiff)throw new Error(`Input data given to '${Ge.source}' is not a valid GeoJSON object.`);if(!this._dataUpdateable)throw new Error(`Cannot update existing geojson data in ${Ge.source}`);return function($e,wt,Ie){var xe,Ce,vt,nr;if(wt.removeAll&&$e.clear(),wt.remove)for(let ir of wt.remove)$e.delete(ir);if(wt.add)for(let ir of wt.add){let pr=Tr(ir,Ie);pr!=null&&$e.set(pr,ir)}if(wt.update)for(let ir of wt.update){let pr=$e.get(ir.id);if(pr==null)continue;let oi=!ir.removeAllProperties&&(((xe=ir.removeProperties)===null||xe===void 0?void 0:xe.length)>0||((Ce=ir.addOrUpdateProperties)===null||Ce===void 0?void 0:Ce.length)>0);if((ir.newGeometry||ir.removeAllProperties||oi)&&(pr=Object.assign({},pr),$e.set(ir.id,pr),oi&&(pr.properties=Object.assign({},pr.properties))),ir.newGeometry&&(pr.geometry=ir.newGeometry),ir.removeAllProperties)pr.properties={};else if(((vt=ir.removeProperties)===null||vt===void 0?void 0:vt.length)>0)for(let di of ir.removeProperties)Object.prototype.hasOwnProperty.call(pr.properties,di)&&delete pr.properties[di];if(((nr=ir.addOrUpdateProperties)===null||nr===void 0?void 0:nr.length)>0)for(let{key:di,value:Jr}of ir.addOrUpdateProperties)pr.properties[di]=Jr}}(this._dataUpdateable,Ge.dataDiff,je),{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())}})}removeSource(Ge){return i._(this,void 0,void 0,function*(){this._pendingRequest&&this._pendingRequest.abort()})}getClusterExpansionZoom(Ge){return this._geoJSONIndex.getClusterExpansionZoom(Ge.clusterId)}getClusterChildren(Ge){return this._geoJSONIndex.getChildren(Ge.clusterId)}getClusterLeaves(Ge){return this._geoJSONIndex.getLeaves(Ge.clusterId,Ge.limit,Ge.offset)}}class Ur{constructor(Ge){this.self=Ge,this.actor=new i.F(Ge),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.self.registerWorkerSource=(Je,je)=>{if(this.externalWorkerSourceTypes[Je])throw new Error(`Worker source with name "${Je}" already registered.`);this.externalWorkerSourceTypes[Je]=je},this.self.addProtocol=i.bi,this.self.removeProtocol=i.bj,this.self.registerRTLTextPlugin=Je=>{if(i.bD.isParsed())throw new Error("RTL text plugin already registered.");i.bD.setMethods(Je)},this.actor.registerMessageHandler("LDT",(Je,je)=>this._getDEMWorkerSource(Je,je.source).loadTile(je)),this.actor.registerMessageHandler("RDT",(Je,je)=>i._(this,void 0,void 0,function*(){this._getDEMWorkerSource(Je,je.source).removeTile(je)})),this.actor.registerMessageHandler("GCEZ",(Je,je)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Je,je.type,je.source).getClusterExpansionZoom(je)})),this.actor.registerMessageHandler("GCC",(Je,je)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Je,je.type,je.source).getClusterChildren(je)})),this.actor.registerMessageHandler("GCL",(Je,je)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Je,je.type,je.source).getClusterLeaves(je)})),this.actor.registerMessageHandler("LD",(Je,je)=>this._getWorkerSource(Je,je.type,je.source).loadData(je)),this.actor.registerMessageHandler("GD",(Je,je)=>this._getWorkerSource(Je,je.type,je.source).getData()),this.actor.registerMessageHandler("LT",(Je,je)=>this._getWorkerSource(Je,je.type,je.source).loadTile(je)),this.actor.registerMessageHandler("RT",(Je,je)=>this._getWorkerSource(Je,je.type,je.source).reloadTile(je)),this.actor.registerMessageHandler("AT",(Je,je)=>this._getWorkerSource(Je,je.type,je.source).abortTile(je)),this.actor.registerMessageHandler("RMT",(Je,je)=>this._getWorkerSource(Je,je.type,je.source).removeTile(je)),this.actor.registerMessageHandler("RS",(Je,je)=>i._(this,void 0,void 0,function*(){if(!this.workerSources[Je]||!this.workerSources[Je][je.type]||!this.workerSources[Je][je.type][je.source])return;let $e=this.workerSources[Je][je.type][je.source];delete this.workerSources[Je][je.type][je.source],$e.removeSource!==void 0&&$e.removeSource(je)})),this.actor.registerMessageHandler("RM",Je=>i._(this,void 0,void 0,function*(){delete this.layerIndexes[Je],delete this.availableImages[Je],delete this.workerSources[Je],delete this.demWorkerSources[Je]})),this.actor.registerMessageHandler("SR",(Je,je)=>i._(this,void 0,void 0,function*(){this.referrer=je})),this.actor.registerMessageHandler("SRPS",(Je,je)=>this._syncRTLPluginState(Je,je)),this.actor.registerMessageHandler("IS",(Je,je)=>i._(this,void 0,void 0,function*(){this.self.importScripts(je)})),this.actor.registerMessageHandler("SI",(Je,je)=>this._setImages(Je,je)),this.actor.registerMessageHandler("UL",(Je,je)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Je).update(je.layers,je.removedIds)})),this.actor.registerMessageHandler("SL",(Je,je)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Je).replace(je)}))}_setImages(Ge,Je){return i._(this,void 0,void 0,function*(){this.availableImages[Ge]=Je;for(let je in this.workerSources[Ge]){let $e=this.workerSources[Ge][je];for(let wt in $e)$e[wt].availableImages=Je}})}_syncRTLPluginState(Ge,Je){return i._(this,void 0,void 0,function*(){if(i.bD.isParsed())return i.bD.getState();if(Je.pluginStatus!=="loading")return i.bD.setState(Je),Je;let je=Je.pluginURL;if(this.self.importScripts(je),i.bD.isParsed()){let $e={pluginStatus:"loaded",pluginURL:je};return i.bD.setState($e),$e}throw i.bD.setState({pluginStatus:"error",pluginURL:""}),new Error(`RTL Text Plugin failed to import scripts from ${je}`)})}_getAvailableImages(Ge){let Je=this.availableImages[Ge];return Je||(Je=[]),Je}_getLayerIndex(Ge){let Je=this.layerIndexes[Ge];return Je||(Je=this.layerIndexes[Ge]=new a),Je}_getWorkerSource(Ge,Je,je){if(this.workerSources[Ge]||(this.workerSources[Ge]={}),this.workerSources[Ge][Je]||(this.workerSources[Ge][Je]={}),!this.workerSources[Ge][Je][je]){let $e={sendAsync:(wt,Ie)=>(wt.targetMapId=Ge,this.actor.sendAsync(wt,Ie))};switch(Je){case"vector":this.workerSources[Ge][Je][je]=new u($e,this._getLayerIndex(Ge),this._getAvailableImages(Ge));break;case"geojson":this.workerSources[Ge][Je][je]=new Wr($e,this._getLayerIndex(Ge),this._getAvailableImages(Ge));break;default:this.workerSources[Ge][Je][je]=new this.externalWorkerSourceTypes[Je]($e,this._getLayerIndex(Ge),this._getAvailableImages(Ge))}}return this.workerSources[Ge][Je][je]}_getDEMWorkerSource(Ge,Je){return this.demWorkerSources[Ge]||(this.demWorkerSources[Ge]={}),this.demWorkerSources[Ge][Je]||(this.demWorkerSources[Ge][Je]=new c),this.demWorkerSources[Ge][Je]}}return i.i(self)&&(self.worker=new Ur(self)),Ur}),r("index",["exports","./shared"],function(i,a){"use strict";var o="4.7.1";let s,l,u={now:typeof performance!="undefined"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frameAsync:ue=>new Promise((w,B)=>{let Q=requestAnimationFrame(w);ue.signal.addEventListener("abort",()=>{cancelAnimationFrame(Q),B(a.c())})}),getImageData(ue,w=0){return this.getImageCanvasContext(ue).getImageData(-w,-w,ue.width+2*w,ue.height+2*w)},getImageCanvasContext(ue){let w=window.document.createElement("canvas"),B=w.getContext("2d",{willReadFrequently:!0});if(!B)throw new Error("failed to create canvas 2d context");return w.width=ue.width,w.height=ue.height,B.drawImage(ue,0,0,ue.width,ue.height),B},resolveURL:ue=>(s||(s=document.createElement("a")),s.href=ue,s.href),hardwareConcurrency:typeof navigator!="undefined"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(l==null&&(l=matchMedia("(prefers-reduced-motion: reduce)")),l.matches)}};class c{static testProp(w){if(!c.docStyle)return w[0];for(let B=0;B{window.removeEventListener("click",c.suppressClickInternal,!0)},0)}static getScale(w){let B=w.getBoundingClientRect();return{x:B.width/w.offsetWidth||1,y:B.height/w.offsetHeight||1,boundingClientRect:B}}static getPoint(w,B,Q){let ee=B.boundingClientRect;return new a.P((Q.clientX-ee.left)/B.x-w.clientLeft,(Q.clientY-ee.top)/B.y-w.clientTop)}static mousePos(w,B){let Q=c.getScale(w);return c.getPoint(w,Q,B)}static touchPos(w,B){let Q=[],ee=c.getScale(w);for(let le=0;le{h&&b(h),h=null,_=!0},d.onerror=()=>{v=!0,h=null},d.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="),function(ue){let w,B,Q,ee;ue.resetRequestQueue=()=>{w=[],B=0,Q=0,ee={}},ue.addThrottleControl=ot=>{let Tt=Q++;return ee[Tt]=ot,Tt},ue.removeThrottleControl=ot=>{delete ee[ot],qe()},ue.getImage=(ot,Tt,Kt=!0)=>new Promise((Jt,xr)=>{f.supported&&(ot.headers||(ot.headers={}),ot.headers.accept="image/webp,*/*"),a.e(ot,{type:"image"}),w.push({abortController:Tt,requestParameters:ot,supportImageRefresh:Kt,state:"queued",onError:Pr=>{xr(Pr)},onSuccess:Pr=>{Jt(Pr)}}),qe()});let le=ot=>a._(this,void 0,void 0,function*(){ot.state="running";let{requestParameters:Tt,supportImageRefresh:Kt,onError:Jt,onSuccess:xr,abortController:Pr}=ot,ve=Kt===!1&&!a.i(self)&&!a.g(Tt.url)&&(!Tt.headers||Object.keys(Tt.headers).reduce((Be,tt)=>Be&&tt==="accept",!0));B++;let be=ve?Xe(Tt,Pr):a.m(Tt,Pr);try{let Be=yield be;delete ot.abortController,ot.state="completed",Be.data instanceof HTMLImageElement||a.b(Be.data)?xr(Be):Be.data&&xr({data:yield(Re=Be.data,typeof createImageBitmap=="function"?a.d(Re):a.f(Re)),cacheControl:Be.cacheControl,expires:Be.expires})}catch(Be){delete ot.abortController,Jt(Be)}finally{B--,qe()}var Re}),qe=()=>{let ot=(()=>{for(let Tt of Object.keys(ee))if(ee[Tt]())return!0;return!1})()?a.a.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:a.a.MAX_PARALLEL_IMAGE_REQUESTS;for(let Tt=B;Tt0;Tt++){let Kt=w.shift();Kt.abortController.signal.aborted?Tt--:le(Kt)}},Xe=(ot,Tt)=>new Promise((Kt,Jt)=>{let xr=new Image,Pr=ot.url,ve=ot.credentials;ve&&ve==="include"?xr.crossOrigin="use-credentials":(ve&&ve==="same-origin"||!a.s(Pr))&&(xr.crossOrigin="anonymous"),Tt.signal.addEventListener("abort",()=>{xr.src="",Jt(a.c())}),xr.fetchPriority="high",xr.onload=()=>{xr.onerror=xr.onload=null,Kt({data:xr})},xr.onerror=()=>{xr.onerror=xr.onload=null,Tt.signal.aborted||Jt(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))},xr.src=Pr})}(p||(p={})),p.resetRequestQueue();class C{constructor(w){this._transformRequestFn=w}transformRequest(w,B){return this._transformRequestFn&&this._transformRequestFn(w,B)||{url:w}}setTransformRequest(w){this._transformRequestFn=w}}function E(ue){var w=new a.A(3);return w[0]=ue[0],w[1]=ue[1],w[2]=ue[2],w}var A,L=function(ue,w,B){return ue[0]=w[0]-B[0],ue[1]=w[1]-B[1],ue[2]=w[2]-B[2],ue};A=new a.A(3),a.A!=Float32Array&&(A[0]=0,A[1]=0,A[2]=0);var x=function(ue){var w=ue[0],B=ue[1];return w*w+B*B};function k(ue){let w=[];if(typeof ue=="string")w.push({id:"default",url:ue});else if(ue&&ue.length>0){let B=[];for(let{id:Q,url:ee}of ue){let le=`${Q}${ee}`;B.indexOf(le)===-1&&(B.push(le),w.push({id:Q,url:ee}))}}return w}function M(ue,w,B){let Q=ue.split("?");return Q[0]+=`${w}${B}`,Q.join("?")}(function(){var ue=new a.A(2);a.A!=Float32Array&&(ue[0]=0,ue[1]=0)})();class g{constructor(w,B,Q,ee){this.context=w,this.format=Q,this.texture=w.gl.createTexture(),this.update(B,ee)}update(w,B,Q){let{width:ee,height:le}=w,qe=!(this.size&&this.size[0]===ee&&this.size[1]===le||Q),{context:Xe}=this,{gl:ot}=Xe;if(this.useMipmap=!!(B&&B.useMipmap),ot.bindTexture(ot.TEXTURE_2D,this.texture),Xe.pixelStoreUnpackFlipY.set(!1),Xe.pixelStoreUnpack.set(1),Xe.pixelStoreUnpackPremultiplyAlpha.set(this.format===ot.RGBA&&(!B||B.premultiply!==!1)),qe)this.size=[ee,le],w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?ot.texImage2D(ot.TEXTURE_2D,0,this.format,this.format,ot.UNSIGNED_BYTE,w):ot.texImage2D(ot.TEXTURE_2D,0,this.format,ee,le,0,this.format,ot.UNSIGNED_BYTE,w.data);else{let{x:Tt,y:Kt}=Q||{x:0,y:0};w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?ot.texSubImage2D(ot.TEXTURE_2D,0,Tt,Kt,ot.RGBA,ot.UNSIGNED_BYTE,w):ot.texSubImage2D(ot.TEXTURE_2D,0,Tt,Kt,ee,le,ot.RGBA,ot.UNSIGNED_BYTE,w.data)}this.useMipmap&&this.isSizePowerOfTwo()&&ot.generateMipmap(ot.TEXTURE_2D)}bind(w,B,Q){let{context:ee}=this,{gl:le}=ee;le.bindTexture(le.TEXTURE_2D,this.texture),Q!==le.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(Q=le.LINEAR),w!==this.filter&&(le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MAG_FILTER,w),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MIN_FILTER,Q||w),this.filter=w),B!==this.wrap&&(le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_S,B),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_T,B),this.wrap=B)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){let{gl:w}=this.context;w.deleteTexture(this.texture),this.texture=null}}function P(ue){let{userImage:w}=ue;return!!(w&&w.render&&w.render())&&(ue.data.replace(new Uint8Array(w.data.buffer)),!0)}class T extends a.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new a.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(w){if(this.loaded!==w&&(this.loaded=w,w)){for(let{ids:B,promiseResolve:Q}of this.requestors)Q(this._getImagesForIds(B));this.requestors=[]}}getImage(w){let B=this.images[w];if(B&&!B.data&&B.spriteData){let Q=B.spriteData;B.data=new a.R({width:Q.width,height:Q.height},Q.context.getImageData(Q.x,Q.y,Q.width,Q.height).data),B.spriteData=null}return B}addImage(w,B){if(this.images[w])throw new Error(`Image id ${w} already exist, use updateImage instead`);this._validate(w,B)&&(this.images[w]=B)}_validate(w,B){let Q=!0,ee=B.data||B.spriteData;return this._validateStretch(B.stretchX,ee&&ee.width)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchX" value`))),Q=!1),this._validateStretch(B.stretchY,ee&&ee.height)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchY" value`))),Q=!1),this._validateContent(B.content,B)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "content" value`))),Q=!1),Q}_validateStretch(w,B){if(!w)return!0;let Q=0;for(let ee of w){if(ee[0]{let ee=!0;if(!this.isLoaded())for(let le of w)this.images[le]||(ee=!1);this.isLoaded()||ee?B(this._getImagesForIds(w)):this.requestors.push({ids:w,promiseResolve:B})})}_getImagesForIds(w){let B={};for(let Q of w){let ee=this.getImage(Q);ee||(this.fire(new a.k("styleimagemissing",{id:Q})),ee=this.getImage(Q)),ee?B[Q]={data:ee.data.clone(),pixelRatio:ee.pixelRatio,sdf:ee.sdf,version:ee.version,stretchX:ee.stretchX,stretchY:ee.stretchY,content:ee.content,textFitWidth:ee.textFitWidth,textFitHeight:ee.textFitHeight,hasRenderCallback:!!(ee.userImage&&ee.userImage.render)}:a.w(`Image "${Q}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}return B}getPixelSize(){let{width:w,height:B}=this.atlasImage;return{width:w,height:B}}getPattern(w){let B=this.patterns[w],Q=this.getImage(w);if(!Q)return null;if(B&&B.position.version===Q.version)return B.position;if(B)B.position.version=Q.version;else{let ee={w:Q.data.width+2,h:Q.data.height+2,x:0,y:0},le=new a.I(ee,Q);this.patterns[w]={bin:ee,position:le}}return this._updatePatternAtlas(),this.patterns[w].position}bind(w){let B=w.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new g(w,this.atlasImage,B.RGBA),this.atlasTexture.bind(B.LINEAR,B.CLAMP_TO_EDGE)}_updatePatternAtlas(){let w=[];for(let le in this.patterns)w.push(this.patterns[le].bin);let{w:B,h:Q}=a.p(w),ee=this.atlasImage;ee.resize({width:B||1,height:Q||1});for(let le in this.patterns){let{bin:qe}=this.patterns[le],Xe=qe.x+1,ot=qe.y+1,Tt=this.getImage(le).data,Kt=Tt.width,Jt=Tt.height;a.R.copy(Tt,ee,{x:0,y:0},{x:Xe,y:ot},{width:Kt,height:Jt}),a.R.copy(Tt,ee,{x:0,y:Jt-1},{x:Xe,y:ot-1},{width:Kt,height:1}),a.R.copy(Tt,ee,{x:0,y:0},{x:Xe,y:ot+Jt},{width:Kt,height:1}),a.R.copy(Tt,ee,{x:Kt-1,y:0},{x:Xe-1,y:ot},{width:1,height:Jt}),a.R.copy(Tt,ee,{x:0,y:0},{x:Xe+Kt,y:ot},{width:1,height:Jt})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(w){for(let B of w){if(this.callbackDispatchedThisFrame[B])continue;this.callbackDispatchedThisFrame[B]=!0;let Q=this.getImage(B);Q||a.w(`Image with ID: "${B}" was not found`),P(Q)&&this.updateImage(B,Q)}}}let z=1e20;function O(ue,w,B,Q,ee,le,qe,Xe,ot){for(let Tt=w;Tt-1);ot++,le[ot]=Xe,qe[ot]=Tt,qe[ot+1]=z}for(let Xe=0,ot=0;Xe65535)throw new Error("glyphs > 65535 not supported");if(Q.ranges[le])return{stack:w,id:B,glyph:ee};if(!this.url)throw new Error("glyphsUrl is not set");if(!Q.requests[le]){let Xe=G.loadGlyphRange(w,le,this.url,this.requestManager);Q.requests[le]=Xe}let qe=yield Q.requests[le];for(let Xe in qe)this._doesCharSupportLocalGlyph(+Xe)||(Q.glyphs[+Xe]=qe[+Xe]);return Q.ranges[le]=!0,{stack:w,id:B,glyph:qe[B]||null}})}_doesCharSupportLocalGlyph(w){return!!this.localIdeographFontFamily&&new RegExp("\\p{Ideo}|\\p{sc=Hang}|\\p{sc=Hira}|\\p{sc=Kana}","u").test(String.fromCodePoint(w))}_tinySDF(w,B,Q){let ee=this.localIdeographFontFamily;if(!ee||!this._doesCharSupportLocalGlyph(Q))return;let le=w.tinySDF;if(!le){let Xe="400";/bold/i.test(B)?Xe="900":/medium/i.test(B)?Xe="500":/light/i.test(B)&&(Xe="200"),le=w.tinySDF=new G.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:ee,fontWeight:Xe})}let qe=le.draw(String.fromCharCode(Q));return{id:Q,bitmap:new a.o({width:qe.width||60,height:qe.height||60},qe.data),metrics:{width:qe.glyphWidth/2||24,height:qe.glyphHeight/2||24,left:qe.glyphLeft/2+.5||0,top:qe.glyphTop/2-27.5||-8,advance:qe.glyphAdvance/2||24,isDoubleResolution:!0}}}}G.loadGlyphRange=function(ue,w,B,Q){return a._(this,void 0,void 0,function*(){let ee=256*w,le=ee+255,qe=Q.transformRequest(B.replace("{fontstack}",ue).replace("{range}",`${ee}-${le}`),"Glyphs"),Xe=yield a.l(qe,new AbortController);if(!Xe||!Xe.data)throw new Error(`Could not load glyph range. range: ${w}, ${ee}-${le}`);let ot={};for(let Tt of a.n(Xe.data))ot[Tt.id]=Tt;return ot})},G.TinySDF=class{constructor({fontSize:ue=24,buffer:w=3,radius:B=8,cutoff:Q=.25,fontFamily:ee="sans-serif",fontWeight:le="normal",fontStyle:qe="normal"}={}){this.buffer=w,this.cutoff=Q,this.radius=B;let Xe=this.size=ue+4*w,ot=this._createCanvas(Xe),Tt=this.ctx=ot.getContext("2d",{willReadFrequently:!0});Tt.font=`${qe} ${le} ${ue}px ${ee}`,Tt.textBaseline="alphabetic",Tt.textAlign="left",Tt.fillStyle="black",this.gridOuter=new Float64Array(Xe*Xe),this.gridInner=new Float64Array(Xe*Xe),this.f=new Float64Array(Xe),this.z=new Float64Array(Xe+1),this.v=new Uint16Array(Xe)}_createCanvas(ue){let w=document.createElement("canvas");return w.width=w.height=ue,w}draw(ue){let{width:w,actualBoundingBoxAscent:B,actualBoundingBoxDescent:Q,actualBoundingBoxLeft:ee,actualBoundingBoxRight:le}=this.ctx.measureText(ue),qe=Math.ceil(B),Xe=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(le-ee))),ot=Math.min(this.size-this.buffer,qe+Math.ceil(Q)),Tt=Xe+2*this.buffer,Kt=ot+2*this.buffer,Jt=Math.max(Tt*Kt,0),xr=new Uint8ClampedArray(Jt),Pr={data:xr,width:Tt,height:Kt,glyphWidth:Xe,glyphHeight:ot,glyphTop:qe,glyphLeft:0,glyphAdvance:w};if(Xe===0||ot===0)return Pr;let{ctx:ve,buffer:be,gridInner:Re,gridOuter:Be}=this;ve.clearRect(be,be,Xe,ot),ve.fillText(ue,be,be+qe);let tt=ve.getImageData(be,be,Xe,ot);Be.fill(z,0,Jt),Re.fill(0,0,Jt);for(let We=0;We0?rr*rr:0,Re[Ht]=rr<0?rr*rr:0}}O(Be,0,0,Tt,Kt,Tt,this.f,this.v,this.z),O(Re,be,be,Xe,ot,Tt,this.f,this.v,this.z);for(let We=0;We1&&(ot=w[++Xe]);let Kt=Math.abs(Tt-ot.left),Jt=Math.abs(Tt-ot.right),xr=Math.min(Kt,Jt),Pr,ve=le/Q*(ee+1);if(ot.isDash){let be=ee-Math.abs(ve);Pr=Math.sqrt(xr*xr+be*be)}else Pr=ee-Math.sqrt(xr*xr+ve*ve);this.data[qe+Tt]=Math.max(0,Math.min(255,Pr+128))}}}addRegularDash(w){for(let Xe=w.length-1;Xe>=0;--Xe){let ot=w[Xe],Tt=w[Xe+1];ot.zeroLength?w.splice(Xe,1):Tt&&Tt.isDash===ot.isDash&&(Tt.left=ot.left,w.splice(Xe,1))}let B=w[0],Q=w[w.length-1];B.isDash===Q.isDash&&(B.left=Q.left-this.width,Q.right=B.right+this.width);let ee=this.width*this.nextRow,le=0,qe=w[le];for(let Xe=0;Xe1&&(qe=w[++le]);let ot=Math.abs(Xe-qe.left),Tt=Math.abs(Xe-qe.right),Kt=Math.min(ot,Tt);this.data[ee+Xe]=Math.max(0,Math.min(255,(qe.isDash?Kt:-Kt)+128))}}addDash(w,B){let Q=B?7:0,ee=2*Q+1;if(this.nextRow+ee>this.height)return a.w("LineAtlas out of space"),null;let le=0;for(let Xe=0;Xe{B.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[_e]}numActive(){return Object.keys(this.active).length}}let ke=Math.floor(u.hardwareConcurrency/2),me,ie;function Se(){return me||(me=new Me),me}Me.workerCount=a.C(globalThis)?Math.max(Math.min(ke,3),1):1;class Le{constructor(w,B){this.workerPool=w,this.actors=[],this.currentActor=0,this.id=B;let Q=this.workerPool.acquire(B);for(let ee=0;ee{B.remove()}),this.actors=[],w&&this.workerPool.release(this.id)}registerMessageHandler(w,B){for(let Q of this.actors)Q.registerMessageHandler(w,B)}}function Ae(){return ie||(ie=new Le(Se(),a.G),ie.registerMessageHandler("GR",(ue,w,B)=>a.m(w,B))),ie}function De(ue,w){let B=a.H();return a.J(B,B,[1,1,0]),a.K(B,B,[.5*ue.width,.5*ue.height,1]),a.L(B,B,ue.calculatePosMatrix(w.toUnwrapped()))}function Pe(ue,w,B,Q,ee,le){let qe=function(Jt,xr,Pr){if(Jt)for(let ve of Jt){let be=xr[ve];if(be&&be.source===Pr&&be.type==="fill-extrusion")return!0}else for(let ve in xr){let be=xr[ve];if(be.source===Pr&&be.type==="fill-extrusion")return!0}return!1}(ee&&ee.layers,w,ue.id),Xe=le.maxPitchScaleFactor(),ot=ue.tilesIn(Q,Xe,qe);ot.sort(ge);let Tt=[];for(let Jt of ot)Tt.push({wrappedTileID:Jt.tileID.wrapped().key,queryResults:Jt.tile.queryRenderedFeatures(w,B,ue._state,Jt.queryGeometry,Jt.cameraQueryGeometry,Jt.scale,ee,le,Xe,De(ue.transform,Jt.tileID))});let Kt=function(Jt){let xr={},Pr={};for(let ve of Jt){let be=ve.queryResults,Re=ve.wrappedTileID,Be=Pr[Re]=Pr[Re]||{};for(let tt in be){let We=be[tt],it=Be[tt]=Be[tt]||{},Dt=xr[tt]=xr[tt]||[];for(let Ht of We)it[Ht.featureIndex]||(it[Ht.featureIndex]=!0,Dt.push(Ht))}}return xr}(Tt);for(let Jt in Kt)Kt[Jt].forEach(xr=>{let Pr=xr.feature,ve=ue.getFeatureState(Pr.layer["source-layer"],Pr.id);Pr.source=Pr.layer.source,Pr.layer["source-layer"]&&(Pr.sourceLayer=Pr.layer["source-layer"]),Pr.state=ve});return Kt}function ge(ue,w){let B=ue.tileID,Q=w.tileID;return B.overscaledZ-Q.overscaledZ||B.canonical.y-Q.canonical.y||B.wrap-Q.wrap||B.canonical.x-Q.canonical.x}function Fe(ue,w,B){return a._(this,void 0,void 0,function*(){let Q=ue;if(ue.url?Q=(yield a.h(w.transformRequest(ue.url,"Source"),B)).data:yield u.frameAsync(B),!Q)return null;let ee=a.M(a.e(Q,ue),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in Q&&Q.vector_layers&&(ee.vectorLayerIds=Q.vector_layers.map(le=>le.id)),ee})}class ce{constructor(w,B){w&&(B?this.setSouthWest(w).setNorthEast(B):Array.isArray(w)&&(w.length===4?this.setSouthWest([w[0],w[1]]).setNorthEast([w[2],w[3]]):this.setSouthWest(w[0]).setNorthEast(w[1])))}setNorthEast(w){return this._ne=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}setSouthWest(w){return this._sw=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}extend(w){let B=this._sw,Q=this._ne,ee,le;if(w instanceof a.N)ee=w,le=w;else{if(!(w instanceof ce))return Array.isArray(w)?w.length===4||w.every(Array.isArray)?this.extend(ce.convert(w)):this.extend(a.N.convert(w)):w&&("lng"in w||"lon"in w)&&"lat"in w?this.extend(a.N.convert(w)):this;if(ee=w._sw,le=w._ne,!ee||!le)return this}return B||Q?(B.lng=Math.min(ee.lng,B.lng),B.lat=Math.min(ee.lat,B.lat),Q.lng=Math.max(le.lng,Q.lng),Q.lat=Math.max(le.lat,Q.lat)):(this._sw=new a.N(ee.lng,ee.lat),this._ne=new a.N(le.lng,le.lat)),this}getCenter(){return new a.N((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new a.N(this.getWest(),this.getNorth())}getSouthEast(){return new a.N(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(w){let{lng:B,lat:Q}=a.N.convert(w),ee=this._sw.lng<=B&&B<=this._ne.lng;return this._sw.lng>this._ne.lng&&(ee=this._sw.lng>=B&&B>=this._ne.lng),this._sw.lat<=Q&&Q<=this._ne.lat&&ee}static convert(w){return w instanceof ce?w:w&&new ce(w)}static fromLngLat(w,B=0){let Q=360*B/40075017,ee=Q/Math.cos(Math.PI/180*w.lat);return new ce(new a.N(w.lng-ee,w.lat-Q),new a.N(w.lng+ee,w.lat+Q))}adjustAntiMeridian(){let w=new a.N(this._sw.lng,this._sw.lat),B=new a.N(this._ne.lng,this._ne.lat);return new ce(w,w.lng>B.lng?new a.N(B.lng+360,B.lat):B)}}class Ye{constructor(w,B,Q){this.bounds=ce.convert(this.validateBounds(w)),this.minzoom=B||0,this.maxzoom=Q||24}validateBounds(w){return Array.isArray(w)&&w.length===4?[Math.max(-180,w[0]),Math.max(-90,w[1]),Math.min(180,w[2]),Math.min(90,w[3])]:[-180,-90,180,90]}contains(w){let B=Math.pow(2,w.z),Q=Math.floor(a.O(this.bounds.getWest())*B),ee=Math.floor(a.Q(this.bounds.getNorth())*B),le=Math.ceil(a.O(this.bounds.getEast())*B),qe=Math.ceil(a.Q(this.bounds.getSouth())*B);return w.x>=Q&&w.x=ee&&w.y{this._options.tiles=w}),this}setUrl(w){return this.setSourceProperty(()=>{this.url=w,this._options.url=w}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}serialize(){return a.e({},this._options)}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q={request:this.map._requestManager.transformRequest(B,"Tile"),uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,tileSize:this.tileSize*w.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};Q.request.collectResourceTiming=this._collectResourceTiming;let ee="RT";if(w.actor&&w.state!=="expired"){if(w.state==="loading")return new Promise((le,qe)=>{w.reloadPromise={resolve:le,reject:qe}})}else w.actor=this.dispatcher.getActor(),ee="LT";w.abortController=new AbortController;try{let le=yield w.actor.sendAsync({type:ee,data:Q},w.abortController);if(delete w.abortController,w.aborted)return;this._afterTileLoadWorkerResponse(w,le)}catch(le){if(delete w.abortController,w.aborted)return;if(le&&le.status!==404)throw le;this._afterTileLoadWorkerResponse(w,null)}})}_afterTileLoadWorkerResponse(w,B){if(B&&B.resourceTiming&&(w.resourceTiming=B.resourceTiming),B&&this.map._refreshExpiredTiles&&w.setExpiryData(B),w.loadVectorData(B,this.map.painter),w.reloadPromise){let Q=w.reloadPromise;w.reloadPromise=null,this.loadTile(w).then(Q.resolve).catch(Q.reject)}}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.actor&&(yield w.actor.sendAsync({type:"AT",data:{uid:w.uid,type:this.type,source:this.id}}))})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.unloadVectorData(),w.actor&&(yield w.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}}))})}hasTransition(){return!1}}class pt extends a.E{constructor(w,B,Q,ee){super(),this.id=w,this.dispatcher=Q,this.setEventedParent(ee),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=a.e({type:"raster"},B),a.e(this,a.M(B,["url","scheme","tileSize"]))}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{let w=yield Fe(this._options,this.map._requestManager,this._tileJSONRequest);this._tileJSONRequest=null,this._loaded=!0,w&&(a.e(this,w),w.bounds&&(this.tileBounds=new Ye(w.bounds,this.minzoom,this.maxzoom)),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})))}catch(w){this._tileJSONRequest=null,this.fire(new a.j(w))}})}loaded(){return this._loaded}onAdd(w){this.map=w,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}setSourceProperty(w){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null),w(),this.load()}setTiles(w){return this.setSourceProperty(()=>{this._options.tiles=w}),this}setUrl(w){return this.setSourceProperty(()=>{this.url=w,this._options.url=w}),this}serialize(){return a.e({},this._options)}hasTile(w){return!this.tileBounds||this.tileBounds.contains(w.canonical)}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);w.abortController=new AbortController;try{let Q=yield p.getImage(this.map._requestManager.transformRequest(B,"Tile"),w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(Q&&Q.data){this.map._refreshExpiredTiles&&Q.cacheControl&&Q.expires&&w.setExpiryData({cacheControl:Q.cacheControl,expires:Q.expires});let ee=this.map.painter.context,le=ee.gl,qe=Q.data;w.texture=this.map.painter.getTileTexture(qe.width),w.texture?w.texture.update(qe,{useMipmap:!0}):(w.texture=new g(ee,qe,le.RGBA,{useMipmap:!0}),w.texture.bind(le.LINEAR,le.CLAMP_TO_EDGE,le.LINEAR_MIPMAP_NEAREST)),w.state="loaded"}}catch(Q){if(delete w.abortController,w.aborted)w.state="unloaded";else if(Q)throw w.state="errored",Q}})}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController)})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.texture&&this.map.painter.saveTileTexture(w.texture)})}hasTransition(){return!1}}class Wt extends pt{constructor(w,B,Q,ee){super(w,B,Q,ee),this.type="raster-dem",this.maxzoom=22,this._options=a.e({type:"raster-dem"},B),this.encoding=B.encoding||"mapbox",this.redFactor=B.redFactor,this.greenFactor=B.greenFactor,this.blueFactor=B.blueFactor,this.baseShift=B.baseShift}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q=this.map._requestManager.transformRequest(B,"Tile");w.neighboringTiles=this._getNeighboringTiles(w.tileID),w.abortController=new AbortController;try{let ee=yield p.getImage(Q,w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(ee&&ee.data){let le=ee.data;this.map._refreshExpiredTiles&&ee.cacheControl&&ee.expires&&w.setExpiryData({cacheControl:ee.cacheControl,expires:ee.expires});let qe=a.b(le)&&a.U()?le:yield this.readImageNow(le),Xe={type:this.type,uid:w.uid,source:this.id,rawImageData:qe,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(!w.actor||w.state==="expired"){w.actor=this.dispatcher.getActor();let ot=yield w.actor.sendAsync({type:"LDT",data:Xe});w.dem=ot,w.needsHillshadePrepare=!0,w.needsTerrainPrepare=!0,w.state="loaded"}}}catch(ee){if(delete w.abortController,w.aborted)w.state="unloaded";else if(ee)throw w.state="errored",ee}})}readImageNow(w){return a._(this,void 0,void 0,function*(){if(typeof VideoFrame!="undefined"&&a.V()){let B=w.width+2,Q=w.height+2;try{return new a.R({width:B,height:Q},yield a.W(w,-1,-1,B,Q))}catch(ee){}}return u.getImageData(w,1)})}_getNeighboringTiles(w){let B=w.canonical,Q=Math.pow(2,B.z),ee=(B.x-1+Q)%Q,le=B.x===0?w.wrap-1:w.wrap,qe=(B.x+1+Q)%Q,Xe=B.x+1===Q?w.wrap+1:w.wrap,ot={};return ot[new a.S(w.overscaledZ,le,B.z,ee,B.y).key]={backfilled:!1},ot[new a.S(w.overscaledZ,Xe,B.z,qe,B.y).key]={backfilled:!1},B.y>0&&(ot[new a.S(w.overscaledZ,le,B.z,ee,B.y-1).key]={backfilled:!1},ot[new a.S(w.overscaledZ,w.wrap,B.z,B.x,B.y-1).key]={backfilled:!1},ot[new a.S(w.overscaledZ,Xe,B.z,qe,B.y-1).key]={backfilled:!1}),B.y+10&&a.e(le,{resourceTiming:ee}),this.fire(new a.k("data",Object.assign(Object.assign({},le),{sourceDataType:"metadata"}))),this.fire(new a.k("data",Object.assign(Object.assign({},le),{sourceDataType:"content"})))}catch(Q){if(this._pendingLoads--,this._removed)return void this.fire(new a.k("dataabort",{dataType:"source"}));this.fire(new a.j(Q))}})}loaded(){return this._pendingLoads===0}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.actor?"RT":"LT";w.actor=this.actor;let Q={type:this.type,uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};w.abortController=new AbortController;let ee=yield this.actor.sendAsync({type:B,data:Q},w.abortController);delete w.abortController,w.unloadVectorData(),w.aborted||w.loadVectorData(ee,this.map.painter,B==="RT")})}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.aborted=!0})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.unloadVectorData(),yield this.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}})})}onRemove(){this._removed=!0,this.actor.sendAsync({type:"RS",data:{type:this.type,source:this.id}})}serialize(){return a.e({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}}var lt=a.Y([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class Gt extends a.E{constructor(w,B,Q,ee){super(),this.id=w,this.dispatcher=Q,this.coordinates=B.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ee),this.options=B}load(w){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=new AbortController;try{let B=yield p.getImage(this.map._requestManager.transformRequest(this.url,"Image"),this._request);this._request=null,this._loaded=!0,B&&B.data&&(this.image=B.data,w&&(this.coordinates=w),this._finishLoading())}catch(B){this._request=null,this._loaded=!0,this.fire(new a.j(B))}})}loaded(){return this._loaded}updateImage(w){return w.url?(this._request&&(this._request.abort(),this._request=null),this.options.url=w.url,this.load(w.coordinates).finally(()=>{this.texture=null}),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(w){this.map=w,this.load()}onRemove(){this._request&&(this._request.abort(),this._request=null)}setCoordinates(w){this.coordinates=w;let B=w.map(a.Z.fromLngLat);this.tileID=function(ee){let le=1/0,qe=1/0,Xe=-1/0,ot=-1/0;for(let xr of ee)le=Math.min(le,xr.x),qe=Math.min(qe,xr.y),Xe=Math.max(Xe,xr.x),ot=Math.max(ot,xr.y);let Tt=Math.max(Xe-le,ot-qe),Kt=Math.max(0,Math.floor(-Math.log(Tt)/Math.LN2)),Jt=Math.pow(2,Kt);return new a.a1(Kt,Math.floor((le+Xe)/2*Jt),Math.floor((qe+ot)/2*Jt))}(B),this.minzoom=this.maxzoom=this.tileID.z;let Q=B.map(ee=>this.tileID.getTilePoint(ee)._round());return this._boundsArray=new a.$,this._boundsArray.emplaceBack(Q[0].x,Q[0].y,0,0),this._boundsArray.emplaceBack(Q[1].x,Q[1].y,a.X,0),this._boundsArray.emplaceBack(Q[3].x,Q[3].y,0,a.X),this._boundsArray.emplaceBack(Q[2].x,Q[2].y,a.X,a.X),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;let w=this.map.painter.context,B=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,lt.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture||(this.texture=new g(w,this.image,B.RGBA),this.texture.bind(B.LINEAR,B.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let le=this.tiles[ee];le.state!=="loaded"&&(le.state="loaded",le.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}loadTile(w){return a._(this,void 0,void 0,function*(){this.tileID&&this.tileID.equals(w.tileID.canonical)?(this.tiles[String(w.tileID.wrap)]=w,w.buckets={}):w.state="errored"})}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}class Nt extends Gt{constructor(w,B,Q,ee){super(w,B,Q,ee),this.roundZoom=!0,this.type="video",this.options=B}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1;let w=this.options;this.urls=[];for(let B of w.urls)this.urls.push(this.map._requestManager.transformRequest(B,"Source").url);try{let B=yield a.a3(this.urls);if(this._loaded=!0,!B)return;this.video=B,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading()}catch(B){this.fire(new a.j(B))}})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(w){if(this.video){let B=this.video.seekable;wB.end(0)?this.fire(new a.j(new a.a2(`sources.${this.id}`,null,`Playback for this video can be set only between the ${B.start(0)} and ${B.end(0)}-second mark.`))):this.video.currentTime=w}}getVideo(){return this.video}onAdd(w){this.map||(this.map=w,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let w=this.map.painter.context,B=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,lt.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(B.LINEAR,B.CLAMP_TO_EDGE),B.texSubImage2D(B.TEXTURE_2D,0,0,0,B.RGBA,B.UNSIGNED_BYTE,this.video)):(this.texture=new g(w,this.video,B.RGBA),this.texture.bind(B.LINEAR,B.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let le=this.tiles[ee];le.state!=="loaded"&&(le.state="loaded",le.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class $t extends Gt{constructor(w,B,Q,ee){super(w,B,Q,ee),B.coordinates?Array.isArray(B.coordinates)&&B.coordinates.length===4&&!B.coordinates.some(le=>!Array.isArray(le)||le.length!==2||le.some(qe=>typeof qe!="number"))||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "coordinates"'))),B.animate&&typeof B.animate!="boolean"&&this.fire(new a.j(new a.a2(`sources.${w}`,null,'optional "animate" property must be a boolean value'))),B.canvas?typeof B.canvas=="string"||B.canvas instanceof HTMLCanvasElement||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "canvas"'))),this.options=B,this.animate=B.animate===void 0||B.animate}load(){return a._(this,void 0,void 0,function*(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new a.j(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())})}getCanvas(){return this.canvas}onAdd(w){this.map=w,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let w=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,w=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,w=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let B=this.map.painter.context,Q=B.gl;this.boundsBuffer||(this.boundsBuffer=B.createVertexBuffer(this._boundsArray,lt.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?(w||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new g(B,this.canvas,Q.RGBA,{premultiply:!0});let ee=!1;for(let le in this.tiles){let qe=this.tiles[le];qe.state!=="loaded"&&(qe.state="loaded",qe.texture=this.texture,ee=!0)}ee&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let w of[this.canvas.width,this.canvas.height])if(isNaN(w)||w<=0)return!0;return!1}}let sr={},wr=ue=>{switch(ue){case"geojson":return st;case"image":return Gt;case"raster":return pt;case"raster-dem":return Wt;case"vector":return ct;case"video":return Nt;case"canvas":return $t}return sr[ue]},ur="RTLPluginLoaded";class Qe extends a.E{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=Ae()}_syncState(w){return this.status=w,this.dispatcher.broadcast("SRPS",{pluginStatus:w,pluginURL:this.url}).catch(B=>{throw this.status="error",B})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(w){return a._(this,arguments,void 0,function*(B,Q=!1){if(this.url)throw new Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=u.resolveURL(B),!this.url)throw new Error(`requested url ${B} is invalid`);if(this.status==="unavailable"){if(!Q)return this._requestImport();this.status="deferred",this._syncState(this.status)}else if(this.status==="requested")return this._requestImport()})}_requestImport(){return a._(this,void 0,void 0,function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new a.k(ur))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}}let Et=null;function er(){return Et||(Et=new Qe),Et}class Ut{constructor(w,B){this.timeAdded=0,this.fadeEndTime=0,this.tileID=w,this.uid=a.a4(),this.uses=0,this.tileSize=B,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(w){let B=w+this.timeAdded;Ble.getLayer(Tt)).filter(Boolean);if(ot.length!==0){Xe.layers=ot,Xe.stateDependentLayerIds&&(Xe.stateDependentLayers=Xe.stateDependentLayerIds.map(Tt=>ot.filter(Kt=>Kt.id===Tt)[0]));for(let Tt of ot)qe[Tt.id]=Xe}}return qe}(w.buckets,B.style),this.hasSymbolBuckets=!1;for(let ee in this.buckets){let le=this.buckets[ee];if(le instanceof a.a6){if(this.hasSymbolBuckets=!0,!Q)break;le.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let ee in this.buckets){let le=this.buckets[ee];if(le instanceof a.a6&&le.hasRTLText){this.hasRTLText=!0,er().lazyLoad();break}}this.queryPadding=0;for(let ee in this.buckets){let le=this.buckets[ee];this.queryPadding=Math.max(this.queryPadding,B.style.getLayer(ee).queryRadius(le))}w.imageAtlas&&(this.imageAtlas=w.imageAtlas),w.glyphAtlasImage&&(this.glyphAtlasImage=w.glyphAtlasImage)}else this.collisionBoxArray=new a.a5}unloadVectorData(){for(let w in this.buckets)this.buckets[w].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(w){return this.buckets[w.id]}upload(w){for(let Q in this.buckets){let ee=this.buckets[Q];ee.uploadPending()&&ee.upload(w)}let B=w.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new g(w,this.imageAtlas.image,B.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new g(w,this.glyphAtlasImage,B.ALPHA),this.glyphAtlasImage=null)}prepare(w){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(w,this.imageAtlasTexture)}queryRenderedFeatures(w,B,Q,ee,le,qe,Xe,ot,Tt,Kt){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:ee,cameraQueryGeometry:le,scale:qe,tileSize:this.tileSize,pixelPosMatrix:Kt,transform:ot,params:Xe,queryPadding:this.queryPadding*Tt},w,B,Q):{}}querySourceFeatures(w,B){let Q=this.latestFeatureIndex;if(!Q||!Q.rawTileData)return;let ee=Q.loadVTLayers(),le=B&&B.sourceLayer?B.sourceLayer:"",qe=ee._geojsonTileLayer||ee[le];if(!qe)return;let Xe=a.a7(B&&B.filter),{z:ot,x:Tt,y:Kt}=this.tileID.canonical,Jt={z:ot,x:Tt,y:Kt};for(let xr=0;xrQ)ee=!1;else if(B)if(this.expirationTime{this.remove(w,le)},Q)),this.data[ee].push(le),this.order.push(ee),this.order.length>this.max){let qe=this._getAndRemoveByKey(this.order[0]);qe&&this.onRemove(qe)}return this}has(w){return w.wrapped().key in this.data}getAndRemove(w){return this.has(w)?this._getAndRemoveByKey(w.wrapped().key):null}_getAndRemoveByKey(w){let B=this.data[w].shift();return B.timeout&&clearTimeout(B.timeout),this.data[w].length===0&&delete this.data[w],this.order.splice(this.order.indexOf(w),1),B.value}getByKey(w){let B=this.data[w];return B?B[0].value:null}get(w){return this.has(w)?this.data[w.wrapped().key][0].value:null}remove(w,B){if(!this.has(w))return this;let Q=w.wrapped().key,ee=B===void 0?0:this.data[Q].indexOf(B),le=this.data[Q][ee];return this.data[Q].splice(ee,1),le.timeout&&clearTimeout(le.timeout),this.data[Q].length===0&&delete this.data[Q],this.onRemove(le.value),this.order.splice(this.order.indexOf(Q),1),this}setMaxSize(w){for(this.max=w;this.order.length>this.max;){let B=this._getAndRemoveByKey(this.order[0]);B&&this.onRemove(B)}return this}filter(w){let B=[];for(let Q in this.data)for(let ee of this.data[Q])w(ee.value)||B.push(ee);for(let Q of B)this.remove(Q.value.tileID,Q)}}class bt{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(w,B,Q){let ee=String(B);if(this.stateChanges[w]=this.stateChanges[w]||{},this.stateChanges[w][ee]=this.stateChanges[w][ee]||{},a.e(this.stateChanges[w][ee],Q),this.deletedStates[w]===null){this.deletedStates[w]={};for(let le in this.state[w])le!==ee&&(this.deletedStates[w][le]=null)}else if(this.deletedStates[w]&&this.deletedStates[w][ee]===null){this.deletedStates[w][ee]={};for(let le in this.state[w][ee])Q[le]||(this.deletedStates[w][ee][le]=null)}else for(let le in Q)this.deletedStates[w]&&this.deletedStates[w][ee]&&this.deletedStates[w][ee][le]===null&&delete this.deletedStates[w][ee][le]}removeFeatureState(w,B,Q){if(this.deletedStates[w]===null)return;let ee=String(B);if(this.deletedStates[w]=this.deletedStates[w]||{},Q&&B!==void 0)this.deletedStates[w][ee]!==null&&(this.deletedStates[w][ee]=this.deletedStates[w][ee]||{},this.deletedStates[w][ee][Q]=null);else if(B!==void 0)if(this.stateChanges[w]&&this.stateChanges[w][ee])for(Q in this.deletedStates[w][ee]={},this.stateChanges[w][ee])this.deletedStates[w][ee][Q]=null;else this.deletedStates[w][ee]=null;else this.deletedStates[w]=null}getState(w,B){let Q=String(B),ee=a.e({},(this.state[w]||{})[Q],(this.stateChanges[w]||{})[Q]);if(this.deletedStates[w]===null)return{};if(this.deletedStates[w]){let le=this.deletedStates[w][B];if(le===null)return{};for(let qe in le)delete ee[qe]}return ee}initializeTileState(w,B){w.setFeatureState(this.state,B)}coalesceChanges(w,B){let Q={};for(let ee in this.stateChanges){this.state[ee]=this.state[ee]||{};let le={};for(let qe in this.stateChanges[ee])this.state[ee][qe]||(this.state[ee][qe]={}),a.e(this.state[ee][qe],this.stateChanges[ee][qe]),le[qe]=this.state[ee][qe];Q[ee]=le}for(let ee in this.deletedStates){this.state[ee]=this.state[ee]||{};let le={};if(this.deletedStates[ee]===null)for(let qe in this.state[ee])le[qe]={},this.state[ee][qe]={};else for(let qe in this.deletedStates[ee]){if(this.deletedStates[ee][qe]===null)this.state[ee][qe]={};else for(let Xe of Object.keys(this.deletedStates[ee][qe]))delete this.state[ee][qe][Xe];le[qe]=this.state[ee][qe]}Q[ee]=Q[ee]||{},a.e(Q[ee],le)}if(this.stateChanges={},this.deletedStates={},Object.keys(Q).length!==0)for(let ee in w)w[ee].setFeatureState(Q,B)}}class yt extends a.E{constructor(w,B,Q){super(),this.id=w,this.dispatcher=Q,this.on("data",ee=>this._dataHandler(ee)),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=((ee,le,qe,Xe)=>{let ot=new(wr(le.type))(ee,le,qe,Xe);if(ot.id!==ee)throw new Error(`Expected Source id to be ${ee} instead of ${ot.id}`);return ot})(w,B,Q,this),this._tiles={},this._cache=new Ft(0,ee=>this._unloadTile(ee)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new bt,this._didEmitContent=!1,this._updated=!1}onAdd(w){this.map=w,this._maxTileCacheSize=w?w._maxTileCacheSize:null,this._maxTileCacheZoomLevels=w?w._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(w)}onRemove(w){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(w)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(this.used===void 0&&this.usedForTerrain===void 0||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(let w in this._tiles){let B=this._tiles[w];if(B.state!=="loaded"&&B.state!=="errored")return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;let w=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,w&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(w,B,Q){return a._(this,void 0,void 0,function*(){try{yield this._source.loadTile(w),this._tileLoaded(w,B,Q)}catch(ee){w.state="errored",ee.status!==404?this._source.fire(new a.j(ee,{tile:w})):this.update(this.transform,this.terrain)}})}_unloadTile(w){this._source.unloadTile&&this._source.unloadTile(w)}_abortTile(w){this._source.abortTile&&this._source.abortTile(w),this._source.fire(new a.k("dataabort",{tile:w,coord:w.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(w){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(let B in this._tiles){let Q=this._tiles[B];Q.upload(w),Q.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map(w=>w.tileID).sort(Yt).map(w=>w.key)}getRenderableIds(w){let B=[];for(let Q in this._tiles)this._isIdRenderable(Q,w)&&B.push(this._tiles[Q]);return w?B.sort((Q,ee)=>{let le=Q.tileID,qe=ee.tileID,Xe=new a.P(le.canonical.x,le.canonical.y)._rotate(this.transform.angle),ot=new a.P(qe.canonical.x,qe.canonical.y)._rotate(this.transform.angle);return le.overscaledZ-qe.overscaledZ||ot.y-Xe.y||ot.x-Xe.x}).map(Q=>Q.tileID.key):B.map(Q=>Q.tileID).sort(Yt).map(Q=>Q.key)}hasRenderableParent(w){let B=this.findLoadedParent(w,0);return!!B&&this._isIdRenderable(B.tileID.key)}_isIdRenderable(w,B){return this._tiles[w]&&this._tiles[w].hasData()&&!this._coveredTiles[w]&&(B||!this._tiles[w].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(let w in this._tiles)this._tiles[w].state!=="errored"&&this._reloadTile(w,"reloading")}}_reloadTile(w,B){return a._(this,void 0,void 0,function*(){let Q=this._tiles[w];Q&&(Q.state!=="loading"&&(Q.state=B),yield this._loadTile(Q,w,B))})}_tileLoaded(w,B,Q){w.timeAdded=u.now(),Q==="expired"&&(w.refreshedUponExpiration=!0),this._setTileReloadTimer(B,w),this.getSource().type==="raster-dem"&&w.dem&&this._backfillDEM(w),this._state.initializeTileState(w,this.map?this.map.painter:null),w.aborted||this._source.fire(new a.k("data",{dataType:"source",tile:w,coord:w.tileID}))}_backfillDEM(w){let B=this.getRenderableIds();for(let ee=0;ee1||(Math.abs(qe)>1&&(Math.abs(qe+ot)===1?qe+=ot:Math.abs(qe-ot)===1&&(qe-=ot)),le.dem&&ee.dem&&(ee.dem.backfillBorder(le.dem,qe,Xe),ee.neighboringTiles&&ee.neighboringTiles[Tt]&&(ee.neighboringTiles[Tt].backfilled=!0)))}}getTile(w){return this.getTileByID(w.key)}getTileByID(w){return this._tiles[w]}_retainLoadedChildren(w,B,Q,ee){for(let le in this._tiles){let qe=this._tiles[le];if(ee[le]||!qe.hasData()||qe.tileID.overscaledZ<=B||qe.tileID.overscaledZ>Q)continue;let Xe=qe.tileID;for(;qe&&qe.tileID.overscaledZ>B+1;){let Tt=qe.tileID.scaledTo(qe.tileID.overscaledZ-1);qe=this._tiles[Tt.key],qe&&qe.hasData()&&(Xe=Tt)}let ot=Xe;for(;ot.overscaledZ>B;)if(ot=ot.scaledTo(ot.overscaledZ-1),w[ot.key]){ee[Xe.key]=Xe;break}}}findLoadedParent(w,B){if(w.key in this._loadedParentTiles){let Q=this._loadedParentTiles[w.key];return Q&&Q.tileID.overscaledZ>=B?Q:null}for(let Q=w.overscaledZ-1;Q>=B;Q--){let ee=w.scaledTo(Q),le=this._getLoadedTile(ee);if(le)return le}}findLoadedSibling(w){return this._getLoadedTile(w)}_getLoadedTile(w){let B=this._tiles[w.key];return B&&B.hasData()?B:this._cache.getByKey(w.wrapped().key)}updateCacheSize(w){let B=Math.ceil(w.width/this._source.tileSize)+1,Q=Math.ceil(w.height/this._source.tileSize)+1,ee=Math.floor(B*Q*(this._maxTileCacheZoomLevels===null?a.a.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),le=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ee):ee;this._cache.setMaxSize(le)}handleWrapJump(w){let B=Math.round((w-(this._prevLng===void 0?w:this._prevLng))/360);if(this._prevLng=w,B){let Q={};for(let ee in this._tiles){let le=this._tiles[ee];le.tileID=le.tileID.unwrapTo(le.tileID.wrap+B),Q[le.tileID.key]=le}this._tiles=Q;for(let ee in this._timers)clearTimeout(this._timers[ee]),delete this._timers[ee];for(let ee in this._tiles)this._setTileReloadTimer(ee,this._tiles[ee])}}_updateCoveredAndRetainedTiles(w,B,Q,ee,le,qe){let Xe={},ot={},Tt=Object.keys(w),Kt=u.now();for(let Jt of Tt){let xr=w[Jt],Pr=this._tiles[Jt];if(!Pr||Pr.fadeEndTime!==0&&Pr.fadeEndTime<=Kt)continue;let ve=this.findLoadedParent(xr,B),be=this.findLoadedSibling(xr),Re=ve||be||null;Re&&(this._addTile(Re.tileID),Xe[Re.tileID.key]=Re.tileID),ot[Jt]=xr}this._retainLoadedChildren(ot,ee,Q,w);for(let Jt in Xe)w[Jt]||(this._coveredTiles[Jt]=!0,w[Jt]=Xe[Jt]);if(qe){let Jt={},xr={};for(let Pr of le)this._tiles[Pr.key].hasData()?Jt[Pr.key]=Pr:xr[Pr.key]=Pr;for(let Pr in xr){let ve=xr[Pr].children(this._source.maxzoom);this._tiles[ve[0].key]&&this._tiles[ve[1].key]&&this._tiles[ve[2].key]&&this._tiles[ve[3].key]&&(Jt[ve[0].key]=w[ve[0].key]=ve[0],Jt[ve[1].key]=w[ve[1].key]=ve[1],Jt[ve[2].key]=w[ve[2].key]=ve[2],Jt[ve[3].key]=w[ve[3].key]=ve[3],delete xr[Pr])}for(let Pr in xr){let ve=xr[Pr],be=this.findLoadedParent(ve,this._source.minzoom),Re=this.findLoadedSibling(ve),Be=be||Re||null;if(Be){Jt[Be.tileID.key]=w[Be.tileID.key]=Be.tileID;for(let tt in Jt)Jt[tt].isChildOf(Be.tileID)&&delete Jt[tt]}}for(let Pr in this._tiles)Jt[Pr]||(this._coveredTiles[Pr]=!0)}}update(w,B){if(!this._sourceLoaded||this._paused)return;let Q;this.transform=w,this.terrain=B,this.updateCacheSize(w),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?Q=w.getVisibleUnwrappedCoordinates(this._source.tileID).map(Kt=>new a.S(Kt.canonical.z,Kt.wrap,Kt.canonical.z,Kt.canonical.x,Kt.canonical.y)):(Q=w.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:B}),this._source.hasTile&&(Q=Q.filter(Kt=>this._source.hasTile(Kt)))):Q=[];let ee=w.coveringZoomLevel(this._source),le=Math.max(ee-yt.maxOverzooming,this._source.minzoom),qe=Math.max(ee+yt.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){let Kt={};for(let Jt of Q)if(Jt.canonical.z>this._source.minzoom){let xr=Jt.scaledTo(Jt.canonical.z-1);Kt[xr.key]=xr;let Pr=Jt.scaledTo(Math.max(this._source.minzoom,Math.min(Jt.canonical.z,5)));Kt[Pr.key]=Pr}Q=Q.concat(Object.values(Kt))}let Xe=Q.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,Xe&&this.fire(new a.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));let ot=this._updateRetainedTiles(Q,ee);lr(this._source.type)&&this._updateCoveredAndRetainedTiles(ot,le,qe,ee,Q,B);for(let Kt in ot)this._tiles[Kt].clearFadeHold();let Tt=a.ab(this._tiles,ot);for(let Kt of Tt){let Jt=this._tiles[Kt];Jt.hasSymbolBuckets&&!Jt.holdingForFade()?Jt.setHoldDuration(this.map._fadeDuration):Jt.hasSymbolBuckets&&!Jt.symbolFadeFinished()||this._removeTile(Kt)}this._updateLoadedParentTileCache(),this._updateLoadedSiblingTileCache()}releaseSymbolFadeTiles(){for(let w in this._tiles)this._tiles[w].holdingForFade()&&this._removeTile(w)}_updateRetainedTiles(w,B){var Q;let ee={},le={},qe=Math.max(B-yt.maxOverzooming,this._source.minzoom),Xe=Math.max(B+yt.maxUnderzooming,this._source.minzoom),ot={};for(let Tt of w){let Kt=this._addTile(Tt);ee[Tt.key]=Tt,Kt.hasData()||Bthis._source.maxzoom){let xr=Tt.children(this._source.maxzoom)[0],Pr=this.getTile(xr);if(Pr&&Pr.hasData()){ee[xr.key]=xr;continue}}else{let xr=Tt.children(this._source.maxzoom);if(ee[xr[0].key]&&ee[xr[1].key]&&ee[xr[2].key]&&ee[xr[3].key])continue}let Jt=Kt.wasRequested();for(let xr=Tt.overscaledZ-1;xr>=qe;--xr){let Pr=Tt.scaledTo(xr);if(le[Pr.key])break;if(le[Pr.key]=!0,Kt=this.getTile(Pr),!Kt&&Jt&&(Kt=this._addTile(Pr)),Kt){let ve=Kt.hasData();if((ve||!(!((Q=this.map)===null||Q===void 0)&&Q.cancelPendingTileRequestsWhileZooming)||Jt)&&(ee[Pr.key]=Pr),Jt=Kt.wasRequested(),ve)break}}}return ee}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(let w in this._tiles){let B=[],Q,ee=this._tiles[w].tileID;for(;ee.overscaledZ>0;){if(ee.key in this._loadedParentTiles){Q=this._loadedParentTiles[ee.key];break}B.push(ee.key);let le=ee.scaledTo(ee.overscaledZ-1);if(Q=this._getLoadedTile(le),Q)break;ee=le}for(let le of B)this._loadedParentTiles[le]=Q}}_updateLoadedSiblingTileCache(){this._loadedSiblingTiles={};for(let w in this._tiles){let B=this._tiles[w].tileID,Q=this._getLoadedTile(B);this._loadedSiblingTiles[B.key]=Q}}_addTile(w){let B=this._tiles[w.key];if(B)return B;B=this._cache.getAndRemove(w),B&&(this._setTileReloadTimer(w.key,B),B.tileID=w,this._state.initializeTileState(B,this.map?this.map.painter:null),this._cacheTimers[w.key]&&(clearTimeout(this._cacheTimers[w.key]),delete this._cacheTimers[w.key],this._setTileReloadTimer(w.key,B)));let Q=B;return B||(B=new Ut(w,this._source.tileSize*w.overscaleFactor()),this._loadTile(B,w.key,B.state)),B.uses++,this._tiles[w.key]=B,Q||this._source.fire(new a.k("dataloading",{tile:B,coord:B.tileID,dataType:"source"})),B}_setTileReloadTimer(w,B){w in this._timers&&(clearTimeout(this._timers[w]),delete this._timers[w]);let Q=B.getExpiryTimeout();Q&&(this._timers[w]=setTimeout(()=>{this._reloadTile(w,"expired"),delete this._timers[w]},Q))}_removeTile(w){let B=this._tiles[w];B&&(B.uses--,delete this._tiles[w],this._timers[w]&&(clearTimeout(this._timers[w]),delete this._timers[w]),B.uses>0||(B.hasData()&&B.state!=="reloading"?this._cache.add(B.tileID,B,B.getExpiryTimeout()):(B.aborted=!0,this._abortTile(B),this._unloadTile(B))))}_dataHandler(w){let B=w.sourceDataType;w.dataType==="source"&&B==="metadata"&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&w.dataType==="source"&&B==="content"&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(let w in this._tiles)this._removeTile(w);this._cache.reset()}tilesIn(w,B,Q){let ee=[],le=this.transform;if(!le)return ee;let qe=Q?le.getCameraQueryGeometry(w):w,Xe=w.map(ve=>le.pointCoordinate(ve,this.terrain)),ot=qe.map(ve=>le.pointCoordinate(ve,this.terrain)),Tt=this.getIds(),Kt=1/0,Jt=1/0,xr=-1/0,Pr=-1/0;for(let ve of ot)Kt=Math.min(Kt,ve.x),Jt=Math.min(Jt,ve.y),xr=Math.max(xr,ve.x),Pr=Math.max(Pr,ve.y);for(let ve=0;ve=0&&We[1].y+tt>=0){let it=Xe.map(Ht=>Re.getTilePoint(Ht)),Dt=ot.map(Ht=>Re.getTilePoint(Ht));ee.push({tile:be,tileID:Re,queryGeometry:it,cameraQueryGeometry:Dt,scale:Be})}}return ee}getVisibleCoordinates(w){let B=this.getRenderableIds(w).map(Q=>this._tiles[Q].tileID);for(let Q of B)Q.posMatrix=this.transform.calculatePosMatrix(Q.toUnwrapped());return B}hasTransition(){if(this._source.hasTransition())return!0;if(lr(this._source.type)){let w=u.now();for(let B in this._tiles)if(this._tiles[B].fadeEndTime>=w)return!0}return!1}setFeatureState(w,B,Q){this._state.updateState(w=w||"_geojsonTileLayer",B,Q)}removeFeatureState(w,B,Q){this._state.removeFeatureState(w=w||"_geojsonTileLayer",B,Q)}getFeatureState(w,B){return this._state.getState(w=w||"_geojsonTileLayer",B)}setDependencies(w,B,Q){let ee=this._tiles[w];ee&&ee.setDependencies(B,Q)}reloadTilesForDependencies(w,B){for(let Q in this._tiles)this._tiles[Q].hasDependency(w,B)&&this._reloadTile(Q,"reloading");this._cache.filter(Q=>!Q.hasDependency(w,B))}}function Yt(ue,w){let B=Math.abs(2*ue.wrap)-+(ue.wrap<0),Q=Math.abs(2*w.wrap)-+(w.wrap<0);return ue.overscaledZ-w.overscaledZ||Q-B||w.canonical.y-ue.canonical.y||w.canonical.x-ue.canonical.x}function lr(ue){return ue==="raster"||ue==="image"||ue==="video"}yt.maxOverzooming=10,yt.maxUnderzooming=3;class Tr{constructor(w,B){this.reset(w,B)}reset(w,B){this.points=w||[],this._distances=[0];for(let Q=1;Q0?(ee-qe)/Xe:0;return this.points[le].mult(1-ot).add(this.points[B].mult(ot))}}function Rr(ue,w){let B=!0;return ue==="always"||ue!=="never"&&w!=="never"||(B=!1),B}class ei{constructor(w,B,Q){let ee=this.boxCells=[],le=this.circleCells=[];this.xCellCount=Math.ceil(w/Q),this.yCellCount=Math.ceil(B/Q);for(let qe=0;qethis.width||ee<0||B>this.height)return[];let ot=[];if(w<=0&&B<=0&&this.width<=Q&&this.height<=ee){if(le)return[{key:null,x1:w,y1:B,x2:Q,y2:ee}];for(let Tt=0;Tt0}hitTestCircle(w,B,Q,ee,le){let qe=w-Q,Xe=w+Q,ot=B-Q,Tt=B+Q;if(Xe<0||qe>this.width||Tt<0||ot>this.height)return!1;let Kt=[];return this._forEachCell(qe,ot,Xe,Tt,this._queryCellCircle,Kt,{hitTest:!0,overlapMode:ee,circle:{x:w,y:B,radius:Q},seenUids:{box:{},circle:{}}},le),Kt.length>0}_queryCell(w,B,Q,ee,le,qe,Xe,ot){let{seenUids:Tt,hitTest:Kt,overlapMode:Jt}=Xe,xr=this.boxCells[le];if(xr!==null){let ve=this.bboxes;for(let be of xr)if(!Tt.box[be]){Tt.box[be]=!0;let Re=4*be,Be=this.boxKeys[be];if(w<=ve[Re+2]&&B<=ve[Re+3]&&Q>=ve[Re+0]&&ee>=ve[Re+1]&&(!ot||ot(Be))&&(!Kt||!Rr(Jt,Be.overlapMode))&&(qe.push({key:Be,x1:ve[Re],y1:ve[Re+1],x2:ve[Re+2],y2:ve[Re+3]}),Kt))return!0}}let Pr=this.circleCells[le];if(Pr!==null){let ve=this.circles;for(let be of Pr)if(!Tt.circle[be]){Tt.circle[be]=!0;let Re=3*be,Be=this.circleKeys[be];if(this._circleAndRectCollide(ve[Re],ve[Re+1],ve[Re+2],w,B,Q,ee)&&(!ot||ot(Be))&&(!Kt||!Rr(Jt,Be.overlapMode))){let tt=ve[Re],We=ve[Re+1],it=ve[Re+2];if(qe.push({key:Be,x1:tt-it,y1:We-it,x2:tt+it,y2:We+it}),Kt)return!0}}}return!1}_queryCellCircle(w,B,Q,ee,le,qe,Xe,ot){let{circle:Tt,seenUids:Kt,overlapMode:Jt}=Xe,xr=this.boxCells[le];if(xr!==null){let ve=this.bboxes;for(let be of xr)if(!Kt.box[be]){Kt.box[be]=!0;let Re=4*be,Be=this.boxKeys[be];if(this._circleAndRectCollide(Tt.x,Tt.y,Tt.radius,ve[Re+0],ve[Re+1],ve[Re+2],ve[Re+3])&&(!ot||ot(Be))&&!Rr(Jt,Be.overlapMode))return qe.push(!0),!0}}let Pr=this.circleCells[le];if(Pr!==null){let ve=this.circles;for(let be of Pr)if(!Kt.circle[be]){Kt.circle[be]=!0;let Re=3*be,Be=this.circleKeys[be];if(this._circlesCollide(ve[Re],ve[Re+1],ve[Re+2],Tt.x,Tt.y,Tt.radius)&&(!ot||ot(Be))&&!Rr(Jt,Be.overlapMode))return qe.push(!0),!0}}}_forEachCell(w,B,Q,ee,le,qe,Xe,ot){let Tt=this._convertToXCellCoord(w),Kt=this._convertToYCellCoord(B),Jt=this._convertToXCellCoord(Q),xr=this._convertToYCellCoord(ee);for(let Pr=Tt;Pr<=Jt;Pr++)for(let ve=Kt;ve<=xr;ve++)if(le.call(this,w,B,Q,ee,this.xCellCount*ve+Pr,qe,Xe,ot))return}_convertToXCellCoord(w){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(w*this.xScale)))}_convertToYCellCoord(w){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(w*this.yScale)))}_circlesCollide(w,B,Q,ee,le,qe){let Xe=ee-w,ot=le-B,Tt=Q+qe;return Tt*Tt>Xe*Xe+ot*ot}_circleAndRectCollide(w,B,Q,ee,le,qe,Xe){let ot=(qe-ee)/2,Tt=Math.abs(w-(ee+ot));if(Tt>ot+Q)return!1;let Kt=(Xe-le)/2,Jt=Math.abs(B-(le+Kt));if(Jt>Kt+Q)return!1;if(Tt<=ot||Jt<=Kt)return!0;let xr=Tt-ot,Pr=Jt-Kt;return xr*xr+Pr*Pr<=Q*Q}}function Wr(ue,w,B,Q,ee){let le=a.H();return w?(a.K(le,le,[1/ee,1/ee,1]),B||a.ad(le,le,Q.angle)):a.L(le,Q.labelPlaneMatrix,ue),le}function Ur(ue,w,B,Q,ee){if(w){let le=a.ae(ue);return a.K(le,le,[ee,ee,1]),B||a.ad(le,le,-Q.angle),le}return Q.glCoordMatrix}function dt(ue,w,B,Q){let ee;Q?(ee=[ue,w,Q(ue,w),1],a.af(ee,ee,B)):(ee=[ue,w,0,1],Jr(ee,ee,B));let le=ee[3];return{point:new a.P(ee[0]/le,ee[1]/le),signedDistanceFromCamera:le,isOccluded:!1}}function Ge(ue,w){return .5+ue/w*.5}function Je(ue,w){return ue.x>=-w[0]&&ue.x<=w[0]&&ue.y>=-w[1]&&ue.y<=w[1]}function je(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,Pr,ve){let be=Q?ue.textSizeData:ue.iconSizeData,Re=a.ag(be,B.transform.zoom),Be=[256/B.width*2+1,256/B.height*2+1],tt=Q?ue.text.dynamicLayoutVertexArray:ue.icon.dynamicLayoutVertexArray;tt.clear();let We=ue.lineVertexArray,it=Q?ue.text.placedSymbolArray:ue.icon.placedSymbolArray,Dt=B.transform.width/B.transform.height,Ht=!1;for(let rr=0;rrMath.abs(B.x-w.x)*Q?{useVertical:!0}:(ue===a.ah.vertical?w.yB.x)?{needsFlipping:!0}:null}function Ie(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt){let Jt=B/24,xr=w.lineOffsetX*Jt,Pr=w.lineOffsetY*Jt,ve;if(w.numGlyphs>1){let be=w.glyphStartIndex+w.numGlyphs,Re=w.lineStartIndex,Be=w.lineStartIndex+w.lineLength,tt=$e(Jt,Xe,xr,Pr,Q,w,Kt,ue);if(!tt)return{notEnoughRoom:!0};let We=dt(tt.first.point.x,tt.first.point.y,qe,ue.getElevation).point,it=dt(tt.last.point.x,tt.last.point.y,qe,ue.getElevation).point;if(ee&&!Q){let Dt=wt(w.writingMode,We,it,Tt);if(Dt)return Dt}ve=[tt.first];for(let Dt=w.glyphStartIndex+1;Dt0?We.point:function(Ht,rr,dr,Sr,Or,jr){return xe(Ht,rr,dr,1,Or,jr)}(ue.tileAnchorPoint,tt,Re,0,le,ue),Dt=wt(w.writingMode,Re,it,Tt);if(Dt)return Dt}let be=pr(Jt*Xe.getoffsetX(w.glyphStartIndex),xr,Pr,Q,w.segment,w.lineStartIndex,w.lineStartIndex+w.lineLength,ue,Kt);if(!be||ue.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};ve=[be]}for(let be of ve)a.aj(ot,be.point,be.angle);return{}}function xe(ue,w,B,Q,ee,le){let qe=ue.add(ue.sub(w)._unit()),Xe=ee!==void 0?dt(qe.x,qe.y,ee,le.getElevation).point:vt(qe.x,qe.y,le).point,ot=B.sub(Xe);return B.add(ot._mult(Q/ot.mag()))}function Ce(ue,w,B){let Q=w.projectionCache;if(Q.projections[ue])return Q.projections[ue];let ee=new a.P(w.lineVertexArray.getx(ue),w.lineVertexArray.gety(ue)),le=vt(ee.x,ee.y,w);if(le.signedDistanceFromCamera>0)return Q.projections[ue]=le.point,Q.anyProjectionOccluded=Q.anyProjectionOccluded||le.isOccluded,le.point;let qe=ue-B.direction;return function(Xe,ot,Tt,Kt,Jt){return xe(Xe,ot,Tt,Kt,void 0,Jt)}(B.distanceFromAnchor===0?w.tileAnchorPoint:new a.P(w.lineVertexArray.getx(qe),w.lineVertexArray.gety(qe)),ee,B.previousVertex,B.absOffsetX-B.distanceFromAnchor+1,w)}function vt(ue,w,B){let Q=ue+B.translation[0],ee=w+B.translation[1],le;return!B.pitchWithMap&&B.projection.useSpecialProjectionForSymbols?(le=B.projection.projectTileCoordinates(Q,ee,B.unwrappedTileID,B.getElevation),le.point.x=(.5*le.point.x+.5)*B.width,le.point.y=(.5*-le.point.y+.5)*B.height):(le=dt(Q,ee,B.labelPlaneMatrix,B.getElevation),le.isOccluded=!1),le}function nr(ue,w,B){return ue._unit()._perp()._mult(w*B)}function ir(ue,w,B,Q,ee,le,qe,Xe,ot){if(Xe.projectionCache.offsets[ue])return Xe.projectionCache.offsets[ue];let Tt=B.add(w);if(ue+ot.direction=ee)return Xe.projectionCache.offsets[ue]=Tt,Tt;let Kt=Ce(ue+ot.direction,Xe,ot),Jt=nr(Kt.sub(B),qe,ot.direction),xr=B.add(Jt),Pr=Kt.add(Jt);return Xe.projectionCache.offsets[ue]=a.ak(le,Tt,xr,Pr)||Tt,Xe.projectionCache.offsets[ue]}function pr(ue,w,B,Q,ee,le,qe,Xe,ot){let Tt=Q?ue-w:ue+w,Kt=Tt>0?1:-1,Jt=0;Q&&(Kt*=-1,Jt=Math.PI),Kt<0&&(Jt+=Math.PI);let xr,Pr=Kt>0?le+ee:le+ee+1;Xe.projectionCache.cachedAnchorPoint?xr=Xe.projectionCache.cachedAnchorPoint:(xr=vt(Xe.tileAnchorPoint.x,Xe.tileAnchorPoint.y,Xe).point,Xe.projectionCache.cachedAnchorPoint=xr);let ve,be,Re=xr,Be=xr,tt=0,We=0,it=Math.abs(Tt),Dt=[],Ht;for(;tt+We<=it;){if(Pr+=Kt,Pr=qe)return null;tt+=We,Be=Re,be=ve;let Sr={absOffsetX:it,direction:Kt,distanceFromAnchor:tt,previousVertex:Be};if(Re=Ce(Pr,Xe,Sr),B===0)Dt.push(Be),Ht=Re.sub(Be);else{let Or,jr=Re.sub(Be);Or=jr.mag()===0?nr(Ce(Pr+Kt,Xe,Sr).sub(Re),B,Kt):nr(jr,B,Kt),be||(be=Be.add(Or)),ve=ir(Pr,Or,Re,le,qe,be,B,Xe,Sr),Dt.push(be),Ht=ve.sub(be)}We=Ht.mag()}let rr=Ht._mult((it-tt)/We)._add(be||Be),dr=Jt+Math.atan2(Re.y-Be.y,Re.x-Be.x);return Dt.push(rr),{point:rr,angle:ot?dr:0,path:Dt}}let oi=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function di(ue,w){for(let B=0;B=1;fa--)In.push(un.path[fa]);for(let fa=1;fa$a.signedDistanceFromCamera<=0)?[]:fa.map($a=>$a.point)}let Aa=[];if(In.length>0){let fa=In[0].clone(),$a=In[0].clone();for(let ko=1;ko=jr.x&&$a.x<=ii.x&&fa.y>=jr.y&&$a.y<=ii.y?[In]:$a.xii.x||$a.yii.y?[]:a.al([In],jr.x,jr.y,ii.x,ii.y)}for(let fa of Aa){Li.reset(fa,.25*Or);let $a=0;$a=Li.length<=.5*Or?1:Math.ceil(Li.paddedLength/Kn)+1;for(let ko=0;ko<$a;ko++){let Qa=ko/Math.max($a-1,1),mo=Li.lerp(Qa),Bo=mo.x+fi,Is=mo.y+fi;Be.push(Bo,Is,Or,0);let As=Bo-Or,wo=Is-Or,To=Bo+Or,dl=Is+Or;if(Sr=Sr&&this.isOffscreen(As,wo,To,dl),dr=dr||this.isInsideGrid(As,wo,To,dl),w!=="always"&&this.grid.hitTestCircle(Bo,Is,Or,w,xr)&&(rr=!0,!Kt))return{circles:[],offscreen:!1,collisionDetected:rr}}}}return{circles:!Kt&&rr||!dr||Wedt(ee.x,ee.y,Q,B.getElevation))}queryRenderedSymbols(w){if(w.length===0||this.grid.keysLength()===0&&this.ignoredGrid.keysLength()===0)return{};let B=[],Q=1/0,ee=1/0,le=-1/0,qe=-1/0;for(let Kt of w){let Jt=new a.P(Kt.x+fi,Kt.y+fi);Q=Math.min(Q,Jt.x),ee=Math.min(ee,Jt.y),le=Math.max(le,Jt.x),qe=Math.max(qe,Jt.y),B.push(Jt)}let Xe=this.grid.query(Q,ee,le,qe).concat(this.ignoredGrid.query(Q,ee,le,qe)),ot={},Tt={};for(let Kt of Xe){let Jt=Kt.key;if(ot[Jt.bucketInstanceId]===void 0&&(ot[Jt.bucketInstanceId]={}),ot[Jt.bucketInstanceId][Jt.featureIndex])continue;let xr=[new a.P(Kt.x1,Kt.y1),new a.P(Kt.x2,Kt.y1),new a.P(Kt.x2,Kt.y2),new a.P(Kt.x1,Kt.y2)];a.am(B,xr)&&(ot[Jt.bucketInstanceId][Jt.featureIndex]=!0,Tt[Jt.bucketInstanceId]===void 0&&(Tt[Jt.bucketInstanceId]=[]),Tt[Jt.bucketInstanceId].push(Jt.featureIndex))}return Tt}insertCollisionBox(w,B,Q,ee,le,qe){(Q?this.ignoredGrid:this.grid).insert({bucketInstanceId:ee,featureIndex:le,collisionGroupID:qe,overlapMode:B},w[0],w[1],w[2],w[3])}insertCollisionCircles(w,B,Q,ee,le,qe){let Xe=Q?this.ignoredGrid:this.grid,ot={bucketInstanceId:ee,featureIndex:le,collisionGroupID:qe,overlapMode:B};for(let Tt=0;Tt=this.screenRightBoundary||eethis.screenBottomBoundary}isInsideGrid(w,B,Q,ee){return Q>=0&&w=0&&Bthis.projectAndGetPerspectiveRatio(Q,Or.x,Or.y,ee,Tt));dr=Sr.some(Or=>!Or.isOccluded),rr=Sr.map(Or=>Or.point)}else dr=!0;return{box:a.ao(rr),allPointsOccluded:!dr}}}function Pn(ue,w,B){return w*(a.X/(ue.tileSize*Math.pow(2,B-ue.tileID.overscaledZ)))}class wn{constructor(w,B,Q,ee){this.opacity=w?Math.max(0,Math.min(1,w.opacity+(w.placed?B:-B))):ee&&Q?1:0,this.placed=Q}isHidden(){return this.opacity===0&&!this.placed}}class pn{constructor(w,B,Q,ee,le){this.text=new wn(w?w.text:null,B,Q,le),this.icon=new wn(w?w.icon:null,B,ee,le)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class Vn{constructor(w,B,Q){this.text=w,this.icon=B,this.skipFade=Q}}class kn{constructor(){this.invProjMatrix=a.H(),this.viewportMatrix=a.H(),this.circles=[]}}class ea{constructor(w,B,Q,ee,le){this.bucketInstanceId=w,this.featureIndex=B,this.sourceLayerIndex=Q,this.bucketIndex=ee,this.tileID=le}}class ua{constructor(w){this.crossSourceCollisions=w,this.maxGroupID=0,this.collisionGroups={}}get(w){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[w]){let B=++this.maxGroupID;this.collisionGroups[w]={ID:B,predicate:Q=>Q.collisionGroupID===B}}return this.collisionGroups[w]}}function Vt(ue,w,B,Q,ee){let{horizontalAlign:le,verticalAlign:qe}=a.au(ue);return new a.P(-(le-.5)*w+Q[0]*ee,-(qe-.5)*B+Q[1]*ee)}class _t{constructor(w,B,Q,ee,le,qe){this.transform=w.clone(),this.terrain=Q,this.collisionIndex=new Hi(this.transform,B),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=ee,this.retainedQueryData={},this.collisionGroups=new ua(le),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=qe,qe&&(qe.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(w){let B=this.terrain;return B?(Q,ee)=>B.getElevation(w,Q,ee):null}getBucketParts(w,B,Q,ee){let le=Q.getBucket(B),qe=Q.latestFeatureIndex;if(!le||!qe||B.id!==le.layerIds[0])return;let Xe=Q.collisionBoxArray,ot=le.layers[0].layout,Tt=le.layers[0].paint,Kt=Math.pow(2,this.transform.zoom-Q.tileID.overscaledZ),Jt=Q.tileSize/a.X,xr=Q.tileID.toUnwrapped(),Pr=this.transform.calculatePosMatrix(xr),ve=ot.get("text-pitch-alignment")==="map",be=ot.get("text-rotation-alignment")==="map",Re=Pn(Q,1,this.transform.zoom),Be=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Tt.get("text-translate"),Tt.get("text-translate-anchor")),tt=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Tt.get("icon-translate"),Tt.get("icon-translate-anchor")),We=Wr(Pr,ve,be,this.transform,Re),it=null;if(ve){let Ht=Ur(Pr,ve,be,this.transform,Re);it=a.L([],this.transform.labelPlaneMatrix,Ht)}this.retainedQueryData[le.bucketInstanceId]=new ea(le.bucketInstanceId,qe,le.sourceLayerIndex,le.index,Q.tileID);let Dt={bucket:le,layout:ot,translationText:Be,translationIcon:tt,posMatrix:Pr,unwrappedTileID:xr,textLabelPlaneMatrix:We,labelToScreenMatrix:it,scale:Kt,textPixelRatio:Jt,holdingForFade:Q.holdingForFade(),collisionBoxArray:Xe,partiallyEvaluatedTextSize:a.ag(le.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(le.sourceID)};if(ee)for(let Ht of le.sortKeyRanges){let{sortKey:rr,symbolInstanceStart:dr,symbolInstanceEnd:Sr}=Ht;w.push({sortKey:rr,symbolInstanceStart:dr,symbolInstanceEnd:Sr,parameters:Dt})}else w.push({symbolInstanceStart:0,symbolInstanceEnd:le.symbolInstances.length,parameters:Dt})}attemptAnchorPlacement(w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,Pr,ve,be,Re,Be,tt,We){let it=a.aq[w.textAnchor],Dt=[w.textOffset0,w.textOffset1],Ht=Vt(it,Q,ee,Dt,le),rr=this.collisionIndex.placeCollisionBox(B,xr,ot,Tt,Kt,Xe,qe,Re,Jt.predicate,We,Ht);if((!tt||this.collisionIndex.placeCollisionBox(tt,xr,ot,Tt,Kt,Xe,qe,Be,Jt.predicate,We,Ht).placeable)&&rr.placeable){let dr;if(this.prevPlacement&&this.prevPlacement.variableOffsets[Pr.crossTileID]&&this.prevPlacement.placements[Pr.crossTileID]&&this.prevPlacement.placements[Pr.crossTileID].text&&(dr=this.prevPlacement.variableOffsets[Pr.crossTileID].anchor),Pr.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[Pr.crossTileID]={textOffset:Dt,width:Q,height:ee,anchor:it,textBoxScale:le,prevAnchor:dr},this.markUsedJustification(ve,it,Pr,be),ve.allowVerticalPlacement&&(this.markUsedOrientation(ve,be,Pr),this.placedOrientations[Pr.crossTileID]=be),{shift:Ht,placedGlyphBoxes:rr}}}placeLayerBucketPart(w,B,Q){let{bucket:ee,layout:le,translationText:qe,translationIcon:Xe,posMatrix:ot,unwrappedTileID:Tt,textLabelPlaneMatrix:Kt,labelToScreenMatrix:Jt,textPixelRatio:xr,holdingForFade:Pr,collisionBoxArray:ve,partiallyEvaluatedTextSize:be,collisionGroup:Re}=w.parameters,Be=le.get("text-optional"),tt=le.get("icon-optional"),We=a.ar(le,"text-overlap","text-allow-overlap"),it=We==="always",Dt=a.ar(le,"icon-overlap","icon-allow-overlap"),Ht=Dt==="always",rr=le.get("text-rotation-alignment")==="map",dr=le.get("text-pitch-alignment")==="map",Sr=le.get("icon-text-fit")!=="none",Or=le.get("symbol-z-order")==="viewport-y",jr=it&&(Ht||!ee.hasIconData()||tt),ii=Ht&&(it||!ee.hasTextData()||Be);!ee.collisionArrays&&ve&&ee.deserializeCollisionBoxes(ve);let Li=this._getTerrainElevationFunc(this.retainedQueryData[ee.bucketInstanceId].tileID),un=(sn,In,Kn)=>{var Aa,fa;if(B[sn.crossTileID])return;if(Pr)return void(this.placements[sn.crossTileID]=new Vn(!1,!1,!1));let $a=!1,ko=!1,Qa=!0,mo=null,Bo={box:null,placeable:!1,offscreen:null},Is={box:null,placeable:!1,offscreen:null},As=null,wo=null,To=null,dl=0,Nl=0,Lu=0;In.textFeatureIndex?dl=In.textFeatureIndex:sn.useRuntimeCollisionCircles&&(dl=sn.featureIndex),In.verticalTextFeatureIndex&&(Nl=In.verticalTextFeatureIndex);let ou=In.textBox;if(ou){let Tl=Te=>{let Ne=a.ah.horizontal;if(ee.allowVerticalPlacement&&!Te&&this.prevPlacement){let He=this.prevPlacement.placedOrientations[sn.crossTileID];He&&(this.placedOrientations[sn.crossTileID]=He,Ne=He,this.markUsedOrientation(ee,Ne,sn))}return Ne},Al=(Te,Ne)=>{if(ee.allowVerticalPlacement&&sn.numVerticalGlyphVertices>0&&In.verticalTextBox){for(let He of ee.writingModes)if(He===a.ah.vertical?(Bo=Ne(),Is=Bo):Bo=Te(),Bo&&Bo.placeable)break}else Bo=Te()},X=sn.textAnchorOffsetStartIndex,se=sn.textAnchorOffsetEndIndex;if(se===X){let Te=(Ne,He)=>{let Ze=this.collisionIndex.placeCollisionBox(Ne,We,xr,ot,Tt,dr,rr,qe,Re.predicate,Li);return Ze&&Ze.placeable&&(this.markUsedOrientation(ee,He,sn),this.placedOrientations[sn.crossTileID]=He),Ze};Al(()=>Te(ou,a.ah.horizontal),()=>{let Ne=In.verticalTextBox;return ee.allowVerticalPlacement&&sn.numVerticalGlyphVertices>0&&Ne?Te(Ne,a.ah.vertical):{box:null,offscreen:null}}),Tl(Bo&&Bo.placeable)}else{let Te=a.aq[(fa=(Aa=this.prevPlacement)===null||Aa===void 0?void 0:Aa.variableOffsets[sn.crossTileID])===null||fa===void 0?void 0:fa.anchor],Ne=(Ze,Ct,nt)=>{let jt=Ze.x2-Ze.x1,gr=Ze.y2-Ze.y1,yr=sn.textBoxScale,Gr=Sr&&Dt==="never"?Ct:null,qr=null,_i=We==="never"?1:2,bi="never";Te&&_i++;for(let Xr=0;Xr<_i;Xr++){for(let ni=X;niNe(ou,In.iconBox,a.ah.horizontal),()=>{let Ze=In.verticalTextBox;return ee.allowVerticalPlacement&&(!Bo||!Bo.placeable)&&sn.numVerticalGlyphVertices>0&&Ze?Ne(Ze,In.verticalIconBox,a.ah.vertical):{box:null,occluded:!0,offscreen:null}}),Bo&&($a=Bo.placeable,Qa=Bo.offscreen);let He=Tl(Bo&&Bo.placeable);if(!$a&&this.prevPlacement){let Ze=this.prevPlacement.variableOffsets[sn.crossTileID];Ze&&(this.variableOffsets[sn.crossTileID]=Ze,this.markUsedJustification(ee,Ze.anchor,sn,He))}}}if(As=Bo,$a=As&&As.placeable,Qa=As&&As.offscreen,sn.useRuntimeCollisionCircles){let Tl=ee.text.placedSymbolArray.get(sn.centerJustifiedTextSymbolIndex),Al=a.ai(ee.textSizeData,be,Tl),X=le.get("text-padding");wo=this.collisionIndex.placeCollisionCircles(We,Tl,ee.lineVertexArray,ee.glyphOffsetArray,Al,ot,Tt,Kt,Jt,Q,dr,Re.predicate,sn.collisionCircleDiameter,X,qe,Li),wo.circles.length&&wo.collisionDetected&&!Q&&a.w("Collisions detected, but collision boxes are not shown"),$a=it||wo.circles.length>0&&!wo.collisionDetected,Qa=Qa&&wo.offscreen}if(In.iconFeatureIndex&&(Lu=In.iconFeatureIndex),In.iconBox){let Tl=Al=>this.collisionIndex.placeCollisionBox(Al,Dt,xr,ot,Tt,dr,rr,Xe,Re.predicate,Li,Sr&&mo?mo:void 0);Is&&Is.placeable&&In.verticalIconBox?(To=Tl(In.verticalIconBox),ko=To.placeable):(To=Tl(In.iconBox),ko=To.placeable),Qa=Qa&&To.offscreen}let $s=Be||sn.numHorizontalGlyphVertices===0&&sn.numVerticalGlyphVertices===0,Ql=tt||sn.numIconVertices===0;$s||Ql?Ql?$s||(ko=ko&&$a):$a=ko&&$a:ko=$a=ko&&$a;let dc=ko&&To.placeable;if($a&&As.placeable&&this.collisionIndex.insertCollisionBox(As.box,We,le.get("text-ignore-placement"),ee.bucketInstanceId,Is&&Is.placeable&&Nl?Nl:dl,Re.ID),dc&&this.collisionIndex.insertCollisionBox(To.box,Dt,le.get("icon-ignore-placement"),ee.bucketInstanceId,Lu,Re.ID),wo&&$a&&this.collisionIndex.insertCollisionCircles(wo.circles,We,le.get("text-ignore-placement"),ee.bucketInstanceId,dl,Re.ID),Q&&this.storeCollisionData(ee.bucketInstanceId,Kn,In,As,To,wo),sn.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");if(ee.bucketInstanceId===0)throw new Error("bucket.bucketInstanceId can't be 0");this.placements[sn.crossTileID]=new Vn($a||jr,ko||ii,Qa||ee.justReloaded),B[sn.crossTileID]=!0};if(Or){if(w.symbolInstanceStart!==0)throw new Error("bucket.bucketInstanceId should be 0");let sn=ee.getSortedSymbolIndexes(this.transform.angle);for(let In=sn.length-1;In>=0;--In){let Kn=sn[In];un(ee.symbolInstances.get(Kn),ee.collisionArrays[Kn],Kn)}}else for(let sn=w.symbolInstanceStart;sn=0&&(w.text.placedSymbolArray.get(Xe).crossTileID=le>=0&&Xe!==le?0:Q.crossTileID)}markUsedOrientation(w,B,Q){let ee=B===a.ah.horizontal||B===a.ah.horizontalOnly?B:0,le=B===a.ah.vertical?B:0,qe=[Q.leftJustifiedTextSymbolIndex,Q.centerJustifiedTextSymbolIndex,Q.rightJustifiedTextSymbolIndex];for(let Xe of qe)w.text.placedSymbolArray.get(Xe).placedOrientation=ee;Q.verticalPlacedTextSymbolIndex&&(w.text.placedSymbolArray.get(Q.verticalPlacedTextSymbolIndex).placedOrientation=le)}commit(w){this.commitTime=w,this.zoomAtLastRecencyCheck=this.transform.zoom;let B=this.prevPlacement,Q=!1;this.prevZoomAdjustment=B?B.zoomAdjustment(this.transform.zoom):0;let ee=B?B.symbolFadeChange(w):1,le=B?B.opacities:{},qe=B?B.variableOffsets:{},Xe=B?B.placedOrientations:{};for(let ot in this.placements){let Tt=this.placements[ot],Kt=le[ot];Kt?(this.opacities[ot]=new pn(Kt,ee,Tt.text,Tt.icon),Q=Q||Tt.text!==Kt.text.placed||Tt.icon!==Kt.icon.placed):(this.opacities[ot]=new pn(null,ee,Tt.text,Tt.icon,Tt.skipFade),Q=Q||Tt.text||Tt.icon)}for(let ot in le){let Tt=le[ot];if(!this.opacities[ot]){let Kt=new pn(Tt,ee,!1,!1);Kt.isHidden()||(this.opacities[ot]=Kt,Q=Q||Tt.text.placed||Tt.icon.placed)}}for(let ot in qe)this.variableOffsets[ot]||!this.opacities[ot]||this.opacities[ot].isHidden()||(this.variableOffsets[ot]=qe[ot]);for(let ot in Xe)this.placedOrientations[ot]||!this.opacities[ot]||this.opacities[ot].isHidden()||(this.placedOrientations[ot]=Xe[ot]);if(B&&B.lastPlacementChangeTime===void 0)throw new Error("Last placement time for previous placement is not defined");Q?this.lastPlacementChangeTime=w:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=B?B.lastPlacementChangeTime:w)}updateLayerOpacities(w,B){let Q={};for(let ee of B){let le=ee.getBucket(w);le&&ee.latestFeatureIndex&&w.id===le.layerIds[0]&&this.updateBucketOpacities(le,ee.tileID,Q,ee.collisionBoxArray)}}updateBucketOpacities(w,B,Q,ee){w.hasTextData()&&(w.text.opacityVertexArray.clear(),w.text.hasVisibleVertices=!1),w.hasIconData()&&(w.icon.opacityVertexArray.clear(),w.icon.hasVisibleVertices=!1),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexArray.clear(),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexArray.clear();let le=w.layers[0],qe=le.layout,Xe=new pn(null,0,!1,!1,!0),ot=qe.get("text-allow-overlap"),Tt=qe.get("icon-allow-overlap"),Kt=le._unevaluatedLayout.hasValue("text-variable-anchor")||le._unevaluatedLayout.hasValue("text-variable-anchor-offset"),Jt=qe.get("text-rotation-alignment")==="map",xr=qe.get("text-pitch-alignment")==="map",Pr=qe.get("icon-text-fit")!=="none",ve=new pn(null,0,ot&&(Tt||!w.hasIconData()||qe.get("icon-optional")),Tt&&(ot||!w.hasTextData()||qe.get("text-optional")),!0);!w.collisionArrays&&ee&&(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData())&&w.deserializeCollisionBoxes(ee);let be=(Be,tt,We)=>{for(let it=0;it0,dr=this.placedOrientations[tt.crossTileID],Sr=dr===a.ah.vertical,Or=dr===a.ah.horizontal||dr===a.ah.horizontalOnly;if(We>0||it>0){let ii=en(Ht.text);be(w.text,We,Sr?cn:ii),be(w.text,it,Or?cn:ii);let Li=Ht.text.isHidden();[tt.rightJustifiedTextSymbolIndex,tt.centerJustifiedTextSymbolIndex,tt.leftJustifiedTextSymbolIndex].forEach(In=>{In>=0&&(w.text.placedSymbolArray.get(In).hidden=Li||Sr?1:0)}),tt.verticalPlacedTextSymbolIndex>=0&&(w.text.placedSymbolArray.get(tt.verticalPlacedTextSymbolIndex).hidden=Li||Or?1:0);let un=this.variableOffsets[tt.crossTileID];un&&this.markUsedJustification(w,un.anchor,tt,dr);let sn=this.placedOrientations[tt.crossTileID];sn&&(this.markUsedJustification(w,"left",tt,sn),this.markUsedOrientation(w,sn,tt))}if(rr){let ii=en(Ht.icon),Li=!(Pr&&tt.verticalPlacedIconSymbolIndex&&Sr);tt.placedIconSymbolIndex>=0&&(be(w.icon,tt.numIconVertices,Li?ii:cn),w.icon.placedSymbolArray.get(tt.placedIconSymbolIndex).hidden=Ht.icon.isHidden()),tt.verticalPlacedIconSymbolIndex>=0&&(be(w.icon,tt.numVerticalIconVertices,Li?cn:ii),w.icon.placedSymbolArray.get(tt.verticalPlacedIconSymbolIndex).hidden=Ht.icon.isHidden())}let jr=Re&&Re.has(Be)?Re.get(Be):{text:null,icon:null};if(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData()){let ii=w.collisionArrays[Be];if(ii){let Li=new a.P(0,0);if(ii.textBox||ii.verticalTextBox){let un=!0;if(Kt){let sn=this.variableOffsets[Dt];sn?(Li=Vt(sn.anchor,sn.width,sn.height,sn.textOffset,sn.textBoxScale),Jt&&Li._rotate(xr?this.transform.angle:-this.transform.angle)):un=!1}if(ii.textBox||ii.verticalTextBox){let sn;ii.textBox&&(sn=Sr),ii.verticalTextBox&&(sn=Or),tr(w.textCollisionBox.collisionVertexArray,Ht.text.placed,!un||sn,jr.text,Li.x,Li.y)}}if(ii.iconBox||ii.verticalIconBox){let un=!!(!Or&&ii.verticalIconBox),sn;ii.iconBox&&(sn=un),ii.verticalIconBox&&(sn=!un),tr(w.iconCollisionBox.collisionVertexArray,Ht.icon.placed,sn,jr.icon,Pr?Li.x:0,Pr?Li.y:0)}}}}if(w.sortFeatures(this.transform.angle),this.retainedQueryData[w.bucketInstanceId]&&(this.retainedQueryData[w.bucketInstanceId].featureSortOrder=w.featureSortOrder),w.hasTextData()&&w.text.opacityVertexBuffer&&w.text.opacityVertexBuffer.updateData(w.text.opacityVertexArray),w.hasIconData()&&w.icon.opacityVertexBuffer&&w.icon.opacityVertexBuffer.updateData(w.icon.opacityVertexArray),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexBuffer&&w.iconCollisionBox.collisionVertexBuffer.updateData(w.iconCollisionBox.collisionVertexArray),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexBuffer&&w.textCollisionBox.collisionVertexBuffer.updateData(w.textCollisionBox.collisionVertexArray),w.text.opacityVertexArray.length!==w.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${w.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${w.text.layoutVertexArray.length}) / 4`);if(w.icon.opacityVertexArray.length!==w.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${w.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${w.icon.layoutVertexArray.length}) / 4`);if(w.bucketInstanceId in this.collisionCircleArrays){let Be=this.collisionCircleArrays[w.bucketInstanceId];w.placementInvProjMatrix=Be.invProjMatrix,w.placementViewportMatrix=Be.viewportMatrix,w.collisionCircleArray=Be.circles,delete this.collisionCircleArrays[w.bucketInstanceId]}}symbolFadeChange(w){return this.fadeDuration===0?1:(w-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(w){return Math.max(0,(this.transform.zoom-w)/1.5)}hasTransitions(w){return this.stale||w-this.lastPlacementChangeTimew}setStale(){this.stale=!0}}function tr(ue,w,B,Q,ee,le){Q&&Q.length!==0||(Q=[0,0,0,0]);let qe=Q[0]-fi,Xe=Q[1]-fi,ot=Q[2]-fi,Tt=Q[3]-fi;ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,qe,Xe),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,ot,Xe),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,ot,Tt),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,qe,Tt)}let ar=Math.pow(2,25),Er=Math.pow(2,24),Zr=Math.pow(2,17),ri=Math.pow(2,16),$r=Math.pow(2,9),zi=Math.pow(2,8),Ji=Math.pow(2,1);function en(ue){if(ue.opacity===0&&!ue.placed)return 0;if(ue.opacity===1&&ue.placed)return 4294967295;let w=ue.placed?1:0,B=Math.floor(127*ue.opacity);return B*ar+w*Er+B*Zr+w*ri+B*$r+w*zi+B*Ji+w}let cn=0;function yn(){return{isOccluded:(ue,w,B)=>!1,getPitchedTextCorrection:(ue,w,B)=>1,get useSpecialProjectionForSymbols(){return!1},projectTileCoordinates(ue,w,B,Q){throw new Error("Not implemented.")},translatePosition:(ue,w,B,Q)=>function(ee,le,qe,Xe,ot=!1){if(!qe[0]&&!qe[1])return[0,0];let Tt=ot?Xe==="map"?ee.angle:0:Xe==="viewport"?-ee.angle:0;if(Tt){let Kt=Math.sin(Tt),Jt=Math.cos(Tt);qe=[qe[0]*Jt-qe[1]*Kt,qe[0]*Kt+qe[1]*Jt]}return[ot?qe[0]:Pn(le,qe[0],ee.zoom),ot?qe[1]:Pn(le,qe[1],ee.zoom)]}(ue,w,B,Q),getCircleRadiusCorrection:ue=>1}}class Mn{constructor(w){this._sortAcrossTiles=w.layout.get("symbol-z-order")!=="viewport-y"&&!w.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(w,B,Q,ee,le){let qe=this._bucketParts;for(;this._currentTileIndexXe.sortKey-ot.sortKey));this._currentPartIndex!this._forceFullPlacement&&u.now()-ee>2;for(;this._currentPlacementIndex>=0;){let qe=B[w[this._currentPlacementIndex]],Xe=this.placement.collisionIndex.transform.zoom;if(qe.type==="symbol"&&(!qe.minzoom||qe.minzoom<=Xe)&&(!qe.maxzoom||qe.maxzoom>Xe)){if(this._inProgressLayer||(this._inProgressLayer=new Mn(qe)),this._inProgressLayer.continuePlacement(Q[qe.source],this.placement,this._showCollisionBoxes,qe,le))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(w){return this.placement.commit(w),this.placement}}let la=512/a.X/2;class ma{constructor(w,B,Q){this.tileID=w,this.bucketInstanceId=Q,this._symbolsByKey={};let ee=new Map;for(let le=0;le({x:Math.floor(ot.anchorX*la),y:Math.floor(ot.anchorY*la)})),crossTileIDs:qe.map(ot=>ot.crossTileID)};if(Xe.positions.length>128){let ot=new a.av(Xe.positions.length,16,Uint16Array);for(let{x:Tt,y:Kt}of Xe.positions)ot.add(Tt,Kt);ot.finish(),delete Xe.positions,Xe.index=ot}this._symbolsByKey[le]=Xe}}getScaledCoordinates(w,B){let{x:Q,y:ee,z:le}=this.tileID.canonical,{x:qe,y:Xe,z:ot}=B.canonical,Tt=la/Math.pow(2,ot-le),Kt=(Xe*a.X+w.anchorY)*Tt,Jt=ee*a.X*la;return{x:Math.floor((qe*a.X+w.anchorX)*Tt-Q*a.X*la),y:Math.floor(Kt-Jt)}}findMatches(w,B,Q){let ee=this.tileID.canonical.zw)}}class Wa{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Fa{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(w){let B=Math.round((w-this.lng)/360);if(B!==0)for(let Q in this.indexes){let ee=this.indexes[Q],le={};for(let qe in ee){let Xe=ee[qe];Xe.tileID=Xe.tileID.unwrapTo(Xe.tileID.wrap+B),le[Xe.tileID.key]=Xe}this.indexes[Q]=le}this.lng=w}addBucket(w,B,Q){if(this.indexes[w.overscaledZ]&&this.indexes[w.overscaledZ][w.key]){if(this.indexes[w.overscaledZ][w.key].bucketInstanceId===B.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(w.overscaledZ,this.indexes[w.overscaledZ][w.key])}for(let le=0;lew.overscaledZ)for(let Xe in qe){let ot=qe[Xe];ot.tileID.isChildOf(w)&&ot.findMatches(B.symbolInstances,w,ee)}else{let Xe=qe[w.scaledTo(Number(le)).key];Xe&&Xe.findMatches(B.symbolInstances,w,ee)}}for(let le=0;le{B[Q]=!0});for(let Q in this.layerIndexes)B[Q]||delete this.layerIndexes[Q]}}let da=(ue,w)=>a.t(ue,w&&w.filter(B=>B.identifier!=="source.canvas")),Wn=a.aw();class Ga extends a.E{constructor(w,B={}){super(),this._rtlPluginLoaded=()=>{for(let Q in this.sourceCaches){let ee=this.sourceCaches[Q].getSource().type;ee!=="vector"&&ee!=="geojson"||this.sourceCaches[Q].reload()}},this.map=w,this.dispatcher=new Le(Se(),w._getMapId()),this.dispatcher.registerMessageHandler("GG",(Q,ee)=>this.getGlyphs(Q,ee)),this.dispatcher.registerMessageHandler("GI",(Q,ee)=>this.getImages(Q,ee)),this.imageManager=new T,this.imageManager.setEventedParent(this),this.glyphManager=new G(w._requestManager,B.localIdeographFontFamily),this.lineAtlas=new oe(256,512),this.crossTileSymbolIndex=new Wo,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new a.ax,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("SR",a.ay()),er().on(ur,this._rtlPluginLoaded),this.on("data",Q=>{if(Q.dataType!=="source"||Q.sourceDataType!=="metadata")return;let ee=this.sourceCaches[Q.sourceId];if(!ee)return;let le=ee.getSource();if(le&&le.vectorLayerIds)for(let qe in this._layers){let Xe=this._layers[qe];Xe.source===le.id&&this._validateLayer(Xe)}})}loadURL(w,B={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),B.validate=typeof B.validate!="boolean"||B.validate;let ee=this.map._requestManager.transformRequest(w,"Style");this._loadStyleRequest=new AbortController;let le=this._loadStyleRequest;a.h(ee,this._loadStyleRequest).then(qe=>{this._loadStyleRequest=null,this._load(qe.data,B,Q)}).catch(qe=>{this._loadStyleRequest=null,qe&&!le.signal.aborted&&this.fire(new a.j(qe))})}loadJSON(w,B={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),this._frameRequest=new AbortController,u.frameAsync(this._frameRequest).then(()=>{this._frameRequest=null,B.validate=B.validate!==!1,this._load(w,B,Q)}).catch(()=>{})}loadEmpty(){this.fire(new a.k("dataloading",{dataType:"style"})),this._load(Wn,{validate:!1})}_load(w,B,Q){var ee;let le=B.transformStyle?B.transformStyle(Q,w):w;if(!B.validate||!da(this,a.u(le))){this._loaded=!0,this.stylesheet=le;for(let qe in le.sources)this.addSource(qe,le.sources[qe],{validate:!1});le.sprite?this._loadSprite(le.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(le.glyphs),this._createLayers(),this.light=new N(this.stylesheet.light),this.sky=new re(this.stylesheet.sky),this.map.setTerrain((ee=this.stylesheet.terrain)!==null&&ee!==void 0?ee:null),this.fire(new a.k("data",{dataType:"style"})),this.fire(new a.k("style.load"))}}_createLayers(){let w=a.az(this.stylesheet.layers);this.dispatcher.broadcast("SL",w),this._order=w.map(B=>B.id),this._layers={},this._serializedLayers=null;for(let B of w){let Q=a.aA(B);Q.setEventedParent(this,{layer:{id:B.id}}),this._layers[B.id]=Q}}_loadSprite(w,B=!1,Q=void 0){let ee;this.imageManager.setLoaded(!1),this._spriteRequest=new AbortController,function(le,qe,Xe,ot){return a._(this,void 0,void 0,function*(){let Tt=k(le),Kt=Xe>1?"@2x":"",Jt={},xr={};for(let{id:Pr,url:ve}of Tt){let be=qe.transformRequest(M(ve,Kt,".json"),"SpriteJSON");Jt[Pr]=a.h(be,ot);let Re=qe.transformRequest(M(ve,Kt,".png"),"SpriteImage");xr[Pr]=p.getImage(Re,ot)}return yield Promise.all([...Object.values(Jt),...Object.values(xr)]),function(Pr,ve){return a._(this,void 0,void 0,function*(){let be={};for(let Re in Pr){be[Re]={};let Be=u.getImageCanvasContext((yield ve[Re]).data),tt=(yield Pr[Re]).data;for(let We in tt){let{width:it,height:Dt,x:Ht,y:rr,sdf:dr,pixelRatio:Sr,stretchX:Or,stretchY:jr,content:ii,textFitWidth:Li,textFitHeight:un}=tt[We];be[Re][We]={data:null,pixelRatio:Sr,sdf:dr,stretchX:Or,stretchY:jr,content:ii,textFitWidth:Li,textFitHeight:un,spriteData:{width:it,height:Dt,x:Ht,y:rr,context:Be}}}}return be})}(Jt,xr)})}(w,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then(le=>{if(this._spriteRequest=null,le)for(let qe in le){this._spritesImagesIds[qe]=[];let Xe=this._spritesImagesIds[qe]?this._spritesImagesIds[qe].filter(ot=>!(ot in le)):[];for(let ot of Xe)this.imageManager.removeImage(ot),this._changedImages[ot]=!0;for(let ot in le[qe]){let Tt=qe==="default"?ot:`${qe}:${ot}`;this._spritesImagesIds[qe].push(Tt),Tt in this.imageManager.images?this.imageManager.updateImage(Tt,le[qe][ot],!1):this.imageManager.addImage(Tt,le[qe][ot]),B&&(this._changedImages[Tt]=!0)}}}).catch(le=>{this._spriteRequest=null,ee=le,this.fire(new a.j(ee))}).finally(()=>{this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),B&&(this._changed=!0),this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"})),Q&&Q(ee)})}_unloadSprite(){for(let w of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(w),this._changedImages[w]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}_validateLayer(w){let B=this.sourceCaches[w.source];if(!B)return;let Q=w.sourceLayer;if(!Q)return;let ee=B.getSource();(ee.type==="geojson"||ee.vectorLayerIds&&ee.vectorLayerIds.indexOf(Q)===-1)&&this.fire(new a.j(new Error(`Source layer "${Q}" does not exist on source "${ee.id}" as specified by style layer "${w.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let w in this.sourceCaches)if(!this.sourceCaches[w].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(w,B=!1){let Q=this._serializedAllLayers();if(!w||w.length===0)return Object.values(B?a.aB(Q):Q);let ee=[];for(let le of w)if(Q[le]){let qe=B?a.aB(Q[le]):Q[le];ee.push(qe)}return ee}_serializedAllLayers(){let w=this._serializedLayers;if(w)return w;w=this._serializedLayers={};let B=Object.keys(this._layers);for(let Q of B){let ee=this._layers[Q];ee.type!=="custom"&&(w[Q]=ee.serialize())}return w}hasTransitions(){if(this.light&&this.light.hasTransition()||this.sky&&this.sky.hasTransition())return!0;for(let w in this.sourceCaches)if(this.sourceCaches[w].hasTransition())return!0;for(let w in this._layers)if(this._layers[w].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(w){if(!this._loaded)return;let B=this._changed;if(B){let ee=Object.keys(this._updatedLayers),le=Object.keys(this._removedLayers);(ee.length||le.length)&&this._updateWorkerLayers(ee,le);for(let qe in this._updatedSources){let Xe=this._updatedSources[qe];if(Xe==="reload")this._reloadSource(qe);else{if(Xe!=="clear")throw new Error(`Invalid action ${Xe}`);this._clearSource(qe)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let qe in this._updatedPaintProps)this._layers[qe].updateTransitions(w);this.light.updateTransitions(w),this.sky.updateTransitions(w),this._resetUpdates()}let Q={};for(let ee in this.sourceCaches){let le=this.sourceCaches[ee];Q[ee]=le.used,le.used=!1}for(let ee of this._order){let le=this._layers[ee];le.recalculate(w,this._availableImages),!le.isHidden(w.zoom)&&le.source&&(this.sourceCaches[le.source].used=!0)}for(let ee in Q){let le=this.sourceCaches[ee];!!Q[ee]!=!!le.used&&le.fire(new a.k("data",{sourceDataType:"visibility",dataType:"source",sourceId:ee}))}this.light.recalculate(w),this.sky.recalculate(w),this.z=w.zoom,B&&this.fire(new a.k("data",{dataType:"style"}))}_updateTilesForChangedImages(){let w=Object.keys(this._changedImages);if(w.length){for(let B in this.sourceCaches)this.sourceCaches[B].reloadTilesForDependencies(["icons","patterns"],w);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let w in this.sourceCaches)this.sourceCaches[w].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(w,B){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(w,!1),removedIds:B})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(w,B={}){var Q;this._checkLoaded();let ee=this.serialize();if(w=B.transformStyle?B.transformStyle(ee,w):w,((Q=B.validate)===null||Q===void 0||Q)&&da(this,a.u(w)))return!1;(w=a.aB(w)).layers=a.az(w.layers);let le=a.aC(ee,w),qe=this._getOperationsToPerform(le);if(qe.unimplemented.length>0)throw new Error(`Unimplemented: ${qe.unimplemented.join(", ")}.`);if(qe.operations.length===0)return!1;for(let Xe of qe.operations)Xe();return this.stylesheet=w,this._serializedLayers=null,!0}_getOperationsToPerform(w){let B=[],Q=[];for(let ee of w)switch(ee.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":continue;case"addLayer":B.push(()=>this.addLayer.apply(this,ee.args));break;case"removeLayer":B.push(()=>this.removeLayer.apply(this,ee.args));break;case"setPaintProperty":B.push(()=>this.setPaintProperty.apply(this,ee.args));break;case"setLayoutProperty":B.push(()=>this.setLayoutProperty.apply(this,ee.args));break;case"setFilter":B.push(()=>this.setFilter.apply(this,ee.args));break;case"addSource":B.push(()=>this.addSource.apply(this,ee.args));break;case"removeSource":B.push(()=>this.removeSource.apply(this,ee.args));break;case"setLayerZoomRange":B.push(()=>this.setLayerZoomRange.apply(this,ee.args));break;case"setLight":B.push(()=>this.setLight.apply(this,ee.args));break;case"setGeoJSONSourceData":B.push(()=>this.setGeoJSONSourceData.apply(this,ee.args));break;case"setGlyphs":B.push(()=>this.setGlyphs.apply(this,ee.args));break;case"setSprite":B.push(()=>this.setSprite.apply(this,ee.args));break;case"setSky":B.push(()=>this.setSky.apply(this,ee.args));break;case"setTerrain":B.push(()=>this.map.setTerrain.apply(this,ee.args));break;case"setTransition":B.push(()=>{});break;default:Q.push(ee.command)}return{operations:B,unimplemented:Q}}addImage(w,B){if(this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" already exists.`)));this.imageManager.addImage(w,B),this._afterImageUpdated(w)}updateImage(w,B){this.imageManager.updateImage(w,B)}getImage(w){return this.imageManager.getImage(w)}removeImage(w){if(!this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" does not exist.`)));this.imageManager.removeImage(w),this._afterImageUpdated(w)}_afterImageUpdated(w){this._availableImages=this.imageManager.listImages(),this._changedImages[w]=!0,this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(w,B,Q={}){if(this._checkLoaded(),this.sourceCaches[w]!==void 0)throw new Error(`Source "${w}" already exists.`);if(!B.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(B).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(B.type)>=0&&this._validate(a.u.source,`sources.${w}`,B,null,Q))return;this.map&&this.map._collectResourceTiming&&(B.collectResourceTiming=!0);let ee=this.sourceCaches[w]=new yt(w,B,this.dispatcher);ee.style=this,ee.setEventedParent(this,()=>({isSourceLoaded:ee.loaded(),source:ee.serialize(),sourceId:w})),ee.onAdd(this.map),this._changed=!0}removeSource(w){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error("There is no source with this ID");for(let Q in this._layers)if(this._layers[Q].source===w)return this.fire(new a.j(new Error(`Source "${w}" cannot be removed while layer "${Q}" is using it.`)));let B=this.sourceCaches[w];delete this.sourceCaches[w],delete this._updatedSources[w],B.fire(new a.k("data",{sourceDataType:"metadata",dataType:"source",sourceId:w})),B.setEventedParent(null),B.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(w,B){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error(`There is no source with this ID=${w}`);let Q=this.sourceCaches[w].getSource();if(Q.type!=="geojson")throw new Error(`geojsonSource.type is ${Q.type}, which is !== 'geojson`);Q.setData(B),this._changed=!0}getSource(w){return this.sourceCaches[w]&&this.sourceCaches[w].getSource()}addLayer(w,B,Q={}){this._checkLoaded();let ee=w.id;if(this.getLayer(ee))return void this.fire(new a.j(new Error(`Layer "${ee}" already exists on this map.`)));let le;if(w.type==="custom"){if(da(this,a.aD(w)))return;le=a.aA(w)}else{if("source"in w&&typeof w.source=="object"&&(this.addSource(ee,w.source),w=a.aB(w),w=a.e(w,{source:ee})),this._validate(a.u.layer,`layers.${ee}`,w,{arrayIndex:-1},Q))return;le=a.aA(w),this._validateLayer(le),le.setEventedParent(this,{layer:{id:ee}})}let qe=B?this._order.indexOf(B):this._order.length;if(B&&qe===-1)this.fire(new a.j(new Error(`Cannot add layer "${ee}" before non-existing layer "${B}".`)));else{if(this._order.splice(qe,0,ee),this._layerOrderChanged=!0,this._layers[ee]=le,this._removedLayers[ee]&&le.source&&le.type!=="custom"){let Xe=this._removedLayers[ee];delete this._removedLayers[ee],Xe.type!==le.type?this._updatedSources[le.source]="clear":(this._updatedSources[le.source]="reload",this.sourceCaches[le.source].pause())}this._updateLayer(le),le.onAdd&&le.onAdd(this.map)}}moveLayer(w,B){if(this._checkLoaded(),this._changed=!0,!this._layers[w])return void this.fire(new a.j(new Error(`The layer '${w}' does not exist in the map's style and cannot be moved.`)));if(w===B)return;let Q=this._order.indexOf(w);this._order.splice(Q,1);let ee=B?this._order.indexOf(B):this._order.length;B&&ee===-1?this.fire(new a.j(new Error(`Cannot move layer "${w}" before non-existing layer "${B}".`))):(this._order.splice(ee,0,w),this._layerOrderChanged=!0)}removeLayer(w){this._checkLoaded();let B=this._layers[w];if(!B)return void this.fire(new a.j(new Error(`Cannot remove non-existing layer "${w}".`)));B.setEventedParent(null);let Q=this._order.indexOf(w);this._order.splice(Q,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[w]=B,delete this._layers[w],this._serializedLayers&&delete this._serializedLayers[w],delete this._updatedLayers[w],delete this._updatedPaintProps[w],B.onRemove&&B.onRemove(this.map)}getLayer(w){return this._layers[w]}getLayersOrder(){return[...this._order]}hasLayer(w){return w in this._layers}setLayerZoomRange(w,B,Q){this._checkLoaded();let ee=this.getLayer(w);ee?ee.minzoom===B&&ee.maxzoom===Q||(B!=null&&(ee.minzoom=B),Q!=null&&(ee.maxzoom=Q),this._updateLayer(ee)):this.fire(new a.j(new Error(`Cannot set the zoom range of non-existing layer "${w}".`)))}setFilter(w,B,Q={}){this._checkLoaded();let ee=this.getLayer(w);if(ee){if(!a.aE(ee.filter,B))return B==null?(ee.filter=void 0,void this._updateLayer(ee)):void(this._validate(a.u.filter,`layers.${ee.id}.filter`,B,null,Q)||(ee.filter=a.aB(B),this._updateLayer(ee)))}else this.fire(new a.j(new Error(`Cannot filter non-existing layer "${w}".`)))}getFilter(w){return a.aB(this.getLayer(w).filter)}setLayoutProperty(w,B,Q,ee={}){this._checkLoaded();let le=this.getLayer(w);le?a.aE(le.getLayoutProperty(B),Q)||(le.setLayoutProperty(B,Q,ee),this._updateLayer(le)):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getLayoutProperty(w,B){let Q=this.getLayer(w);if(Q)return Q.getLayoutProperty(B);this.fire(new a.j(new Error(`Cannot get style of non-existing layer "${w}".`)))}setPaintProperty(w,B,Q,ee={}){this._checkLoaded();let le=this.getLayer(w);le?a.aE(le.getPaintProperty(B),Q)||(le.setPaintProperty(B,Q,ee)&&this._updateLayer(le),this._changed=!0,this._updatedPaintProps[w]=!0,this._serializedLayers=null):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getPaintProperty(w,B){return this.getLayer(w).getPaintProperty(B)}setFeatureState(w,B){this._checkLoaded();let Q=w.source,ee=w.sourceLayer,le=this.sourceCaches[Q];if(le===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let qe=le.getSource().type;qe==="geojson"&&ee?this.fire(new a.j(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):qe!=="vector"||ee?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),le.setFeatureState(ee,w.id,B)):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(w,B){this._checkLoaded();let Q=w.source,ee=this.sourceCaches[Q];if(ee===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let le=ee.getSource().type,qe=le==="vector"?w.sourceLayer:void 0;le!=="vector"||qe?B&&typeof w.id!="string"&&typeof w.id!="number"?this.fire(new a.j(new Error("A feature id is required to remove its specific state property."))):ee.removeFeatureState(qe,w.id,B):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(w){this._checkLoaded();let B=w.source,Q=w.sourceLayer,ee=this.sourceCaches[B];if(ee!==void 0)return ee.getSource().type!=="vector"||Q?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),ee.getFeatureState(Q,w.id)):void this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new a.j(new Error(`The source '${B}' does not exist in the map's style.`)))}getTransition(){return a.e({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;let w=a.aF(this.sourceCaches,le=>le.serialize()),B=this._serializeByIds(this._order,!0),Q=this.map.getTerrain()||void 0,ee=this.stylesheet;return a.aG({version:ee.version,name:ee.name,metadata:ee.metadata,light:ee.light,sky:ee.sky,center:ee.center,zoom:ee.zoom,bearing:ee.bearing,pitch:ee.pitch,sprite:ee.sprite,glyphs:ee.glyphs,transition:ee.transition,sources:w,layers:B,terrain:Q},le=>le!==void 0)}_updateLayer(w){this._updatedLayers[w.id]=!0,w.source&&!this._updatedSources[w.source]&&this.sourceCaches[w.source].getSource().type!=="raster"&&(this._updatedSources[w.source]="reload",this.sourceCaches[w.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(w){let B=qe=>this._layers[qe].type==="fill-extrusion",Q={},ee=[];for(let qe=this._order.length-1;qe>=0;qe--){let Xe=this._order[qe];if(B(Xe)){Q[Xe]=qe;for(let ot of w){let Tt=ot[Xe];if(Tt)for(let Kt of Tt)ee.push(Kt)}}}ee.sort((qe,Xe)=>Xe.intersectionZ-qe.intersectionZ);let le=[];for(let qe=this._order.length-1;qe>=0;qe--){let Xe=this._order[qe];if(B(Xe))for(let ot=ee.length-1;ot>=0;ot--){let Tt=ee[ot].feature;if(Q[Tt.layer.id]{let dr=Be.featureSortOrder;if(dr){let Sr=dr.indexOf(Ht.featureIndex);return dr.indexOf(rr.featureIndex)-Sr}return rr.featureIndex-Ht.featureIndex});for(let Ht of Dt)it.push(Ht)}}for(let Be in ve)ve[Be].forEach(tt=>{let We=tt.feature,it=Tt[Xe[Be].source].getFeatureState(We.layer["source-layer"],We.id);We.source=We.layer.source,We.layer["source-layer"]&&(We.sourceLayer=We.layer["source-layer"]),We.state=it});return ve}(this._layers,qe,this.sourceCaches,w,B,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(le)}querySourceFeatures(w,B){B&&B.filter&&this._validate(a.u.filter,"querySourceFeatures.filter",B.filter,null,B);let Q=this.sourceCaches[w];return Q?function(ee,le){let qe=ee.getRenderableIds().map(Tt=>ee.getTileByID(Tt)),Xe=[],ot={};for(let Tt=0;Ttxr.getTileByID(Pr)).sort((Pr,ve)=>ve.tileID.overscaledZ-Pr.tileID.overscaledZ||(Pr.tileID.isLessThan(ve.tileID)?-1:1))}let Jt=this.crossTileSymbolIndex.addLayer(Kt,ot[Kt.source],w.center.lng);qe=qe||Jt}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((le=le||this._layerOrderChanged||Q===0)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(u.now(),w.zoom))&&(this.pauseablePlacement=new Ba(w,this.map.terrain,this._order,le,B,Q,ee,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,ot),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(u.now()),Xe=!0),qe&&this.pauseablePlacement.placement.setStale()),Xe||qe)for(let Tt of this._order){let Kt=this._layers[Tt];Kt.type==="symbol"&&this.placement.updateLayerOpacities(Kt,ot[Kt.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(u.now())}_releaseSymbolFadeTiles(){for(let w in this.sourceCaches)this.sourceCaches[w].releaseSymbolFadeTiles()}getImages(w,B){return a._(this,void 0,void 0,function*(){let Q=yield this.imageManager.getImages(B.icons);this._updateTilesForChangedImages();let ee=this.sourceCaches[B.source];return ee&&ee.setDependencies(B.tileID.key,B.type,B.icons),Q})}getGlyphs(w,B){return a._(this,void 0,void 0,function*(){let Q=yield this.glyphManager.getGlyphs(B.stacks),ee=this.sourceCaches[B.source];return ee&&ee.setDependencies(B.tileID.key,B.type,[""]),Q})}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(w,B={}){this._checkLoaded(),w&&this._validate(a.u.glyphs,"glyphs",w,null,B)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=w,this.glyphManager.entries={},this.glyphManager.setURL(w))}addSprite(w,B,Q={},ee){this._checkLoaded();let le=[{id:w,url:B}],qe=[...k(this.stylesheet.sprite),...le];this._validate(a.u.sprite,"sprite",qe,null,Q)||(this.stylesheet.sprite=qe,this._loadSprite(le,!0,ee))}removeSprite(w){this._checkLoaded();let B=k(this.stylesheet.sprite);if(B.find(Q=>Q.id===w)){if(this._spritesImagesIds[w])for(let Q of this._spritesImagesIds[w])this.imageManager.removeImage(Q),this._changedImages[Q]=!0;B.splice(B.findIndex(Q=>Q.id===w),1),this.stylesheet.sprite=B.length>0?B:void 0,delete this._spritesImagesIds[w],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}else this.fire(new a.j(new Error(`Sprite "${w}" doesn't exists on this map.`)))}getSprite(){return k(this.stylesheet.sprite)}setSprite(w,B={},Q){this._checkLoaded(),w&&this._validate(a.u.sprite,"sprite",w,null,B)||(this.stylesheet.sprite=w,w?this._loadSprite(w,!0,Q):(this._unloadSprite(),Q&&Q(null)))}}var vo=a.Y([{name:"a_pos",type:"Int16",components:2}]);let jn={prelude:St(`#ifdef GL_ES precision mediump float; #else #if !defined(lowp) @@ -3280,15 +3280,15 @@ vec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=frac #else return 0.0; #endif -}`),background:At(`uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity; +}`),background:St(`uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,"attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),backgroundPattern:At(`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity; +}`,"attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),backgroundPattern:St(`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:At(`varying vec3 v_data;varying float v_visibility; +}`,"uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:St(`varying vec3 v_data;varying float v_visibility; #pragma mapbox: define highp vec4 color #pragma mapbox: define mediump float radius #pragma mapbox: define lowp float blur @@ -3324,7 +3324,7 @@ void main(void) { #pragma mapbox: initialize highp vec4 stroke_color #pragma mapbox: initialize mediump float stroke_width #pragma mapbox: initialize lowp float stroke_opacity -vec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);float ele=get_elevation(circle_center);v_visibility=calculate_visibility(u_matrix*vec4(circle_center,ele,1.0));if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,ele,1);} else {gl_Position=u_matrix*vec4(circle_center,ele,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`),clippingMask:At("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:At(`uniform highp float u_intensity;varying vec2 v_extrude; +vec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);float ele=get_elevation(circle_center);v_visibility=calculate_visibility(u_matrix*vec4(circle_center,ele,1.0));if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,ele,1);} else {gl_Position=u_matrix*vec4(circle_center,ele,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`),clippingMask:St("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:St(`uniform highp float u_intensity;varying vec2 v_extrude; #pragma mapbox: define highp float weight #define GAUSS_COEF 0.3989422804014327 void main() { @@ -3341,11 +3341,11 @@ const highp float ZERO=1.0/255.0/16.0; void main(void) { #pragma mapbox: initialize highp float weight #pragma mapbox: initialize mediump float radius -vec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,get_elevation(floor(a_pos*0.5)),1);gl_Position=u_matrix*pos;}`),heatmapTexture:At(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity; +vec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,get_elevation(floor(a_pos*0.5)),1);gl_Position=u_matrix*pos;}`),heatmapTexture:St(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(0.0); #endif -}`,"uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:At("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_anchor_pos;attribute vec2 a_placed;attribute vec2 a_box_real;uniform mat4 u_matrix;uniform vec2 u_pixel_extrude_scale;varying float v_placed;varying float v_notUsed;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:At("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:At("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,get_elevation(a_pos),1);}"),fill:At(`#pragma mapbox: define highp vec4 color +}`,"uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:St("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_anchor_pos;attribute vec2 a_placed;attribute vec2 a_box_real;uniform mat4 u_matrix;uniform vec2 u_pixel_extrude_scale;varying float v_placed;varying float v_notUsed;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:St("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:St("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,get_elevation(a_pos),1);}"),fill:St(`#pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize highp vec4 color @@ -3360,7 +3360,7 @@ gl_FragColor=vec4(1.0); void main() { #pragma mapbox: initialize highp vec4 color #pragma mapbox: initialize lowp float opacity -gl_Position=u_matrix*vec4(a_pos,0,1);}`),fillOutline:At(`varying vec2 v_pos; +gl_Position=u_matrix*vec4(a_pos,0,1);}`),fillOutline:St(`varying vec2 v_pos; #pragma mapbox: define highp vec4 outline_color #pragma mapbox: define lowp float opacity void main() { @@ -3376,7 +3376,7 @@ gl_FragColor=vec4(1.0); void main() { #pragma mapbox: initialize highp vec4 outline_color #pragma mapbox: initialize lowp float opacity -gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),fillOutlinePattern:At(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; +gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),fillOutlinePattern:St(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to @@ -3400,7 +3400,7 @@ void main() { #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),fillPattern:At(`#ifdef GL_ES +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),fillPattern:St(`#ifdef GL_ES precision highp float; #endif uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b; @@ -3427,7 +3427,7 @@ void main() { #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:At(`varying vec4 v_color;void main() {gl_FragColor=v_color; +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:St(`varying vec4 v_color;void main() {gl_FragColor=v_color; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif @@ -3449,7 +3449,7 @@ float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_off #else float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0; #endif -base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:At(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:St(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; #pragma mapbox: define lowp float base #pragma mapbox: define lowp float height #pragma mapbox: define lowp vec4 pattern_from @@ -3493,20 +3493,20 @@ float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0; #endif base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 ? a_pos -: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),hillshadePrepare:At(`#ifdef GL_ES +: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),hillshadePrepare:St(`#ifdef GL_ES precision highp float; #endif uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:At(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; +}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:St(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; #define PI 3.141592653589793 void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),line:At(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; +}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),line:St(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity @@ -3540,7 +3540,7 @@ v_gamma_scale=1.0; #else float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; #endif -v_width2=vec2(outset,inset);}`),lineGradient:At(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; +v_width2=vec2(outset,inset);}`),lineGradient:St(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity void main() { @@ -3570,7 +3570,7 @@ v_gamma_scale=1.0; #else float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; #endif -v_width2=vec2(outset,inset);}`),linePattern:At(`#ifdef GL_ES +v_width2=vec2(outset,inset);}`),linePattern:St(`#ifdef GL_ES precision highp float; #endif uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; @@ -3622,7 +3622,7 @@ v_gamma_scale=1.0; #else float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; #endif -v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:At(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:St(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity @@ -3663,11 +3663,11 @@ v_gamma_scale=1.0; #else float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; #endif -v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),raster:At(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); +v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),raster:St(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),symbolIcon:At(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; +}`,"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),symbolIcon:St(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize lowp float opacity @@ -3681,7 +3681,7 @@ void main() { #pragma mapbox: initialize lowp float opacity vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}`),symbolSDF:At(`#define SDF_PX 8.0 +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}`),symbolSDF:St(`#define SDF_PX 8.0 uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1; #pragma mapbox: define highp vec4 fill_color #pragma mapbox: define highp vec4 halo_color @@ -3712,7 +3712,7 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),symbolTextAndIcon:At(`#define SDF_PX 8.0 +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),symbolTextAndIcon:St(`#define SDF_PX 8.0 #define SDF 1.0 #define ICON 0.0 uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1; @@ -3749,58 +3749,58 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:At("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;varying vec2 v_texture_pos;varying float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture2D(u_texture,v_texture_pos);if (v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);gl_FragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {gl_FragColor=surface_color;}}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform mat4 u_fog_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:At("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:At("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);}"),sky:At("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform float u_horizon;uniform float u_sky_horizon_blend;void main() {float y=gl_FragCoord.y;if (y > u_horizon) {float blend=y-u_horizon;if (blend < u_sky_horizon_blend) {gl_FragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {gl_FragColor=u_sky_color;}}}","attribute vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function At(ue,w){let B=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,Q=w.match(/attribute ([\w]+) ([\w]+)/g),ee=ue.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),le=w.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),qe=le?le.concat(ee):ee,Xe={};return{fragmentSource:ue=ue.replace(B,(ot,wt,Yt,Jt,xr)=>(Xe[xr]=!0,wt==="define"?` +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:St("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;varying vec2 v_texture_pos;varying float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture2D(u_texture,v_texture_pos);if (v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);gl_FragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {gl_FragColor=surface_color;}}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform mat4 u_fog_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:St("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:St("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);}"),sky:St("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform float u_horizon;uniform float u_sky_horizon_blend;void main() {float y=gl_FragCoord.y;if (y > u_horizon) {float blend=y-u_horizon;if (blend < u_sky_horizon_blend) {gl_FragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {gl_FragColor=u_sky_color;}}}","attribute vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function St(ue,w){let B=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,Q=w.match(/attribute ([\w]+) ([\w]+)/g),ee=ue.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),le=w.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),qe=le?le.concat(ee):ee,Xe={};return{fragmentSource:ue=ue.replace(B,(ot,Tt,Kt,Jt,xr)=>(Xe[xr]=!0,Tt==="define"?` #ifndef HAS_UNIFORM_u_${xr} -varying ${Yt} ${Jt} ${xr}; +varying ${Kt} ${Jt} ${xr}; #else -uniform ${Yt} ${Jt} u_${xr}; +uniform ${Kt} ${Jt} u_${xr}; #endif `:` #ifdef HAS_UNIFORM_u_${xr} - ${Yt} ${Jt} ${xr} = u_${xr}; + ${Kt} ${Jt} ${xr} = u_${xr}; #endif -`)),vertexSource:w=w.replace(B,(ot,wt,Yt,Jt,xr)=>{let Ir=Jt==="float"?"vec2":"vec4",ve=xr.match(/color/)?"color":Ir;return Xe[xr]?wt==="define"?` +`)),vertexSource:w=w.replace(B,(ot,Tt,Kt,Jt,xr)=>{let Pr=Jt==="float"?"vec2":"vec4",ve=xr.match(/color/)?"color":Pr;return Xe[xr]?Tt==="define"?` #ifndef HAS_UNIFORM_u_${xr} uniform lowp float u_${xr}_t; -attribute ${Yt} ${Ir} a_${xr}; -varying ${Yt} ${Jt} ${xr}; +attribute ${Kt} ${Pr} a_${xr}; +varying ${Kt} ${Jt} ${xr}; #else -uniform ${Yt} ${Jt} u_${xr}; +uniform ${Kt} ${Jt} u_${xr}; #endif `:ve==="vec4"?` #ifndef HAS_UNIFORM_u_${xr} ${xr} = a_${xr}; #else - ${Yt} ${Jt} ${xr} = u_${xr}; + ${Kt} ${Jt} ${xr} = u_${xr}; #endif `:` #ifndef HAS_UNIFORM_u_${xr} ${xr} = unpack_mix_${ve}(a_${xr}, u_${xr}_t); #else - ${Yt} ${Jt} ${xr} = u_${xr}; + ${Kt} ${Jt} ${xr} = u_${xr}; #endif -`:wt==="define"?` +`:Tt==="define"?` #ifndef HAS_UNIFORM_u_${xr} uniform lowp float u_${xr}_t; -attribute ${Yt} ${Ir} a_${xr}; +attribute ${Kt} ${Pr} a_${xr}; #else -uniform ${Yt} ${Jt} u_${xr}; +uniform ${Kt} ${Jt} u_${xr}; #endif `:ve==="vec4"?` #ifndef HAS_UNIFORM_u_${xr} - ${Yt} ${Jt} ${xr} = a_${xr}; + ${Kt} ${Jt} ${xr} = a_${xr}; #else - ${Yt} ${Jt} ${xr} = u_${xr}; + ${Kt} ${Jt} ${xr} = u_${xr}; #endif `:` #ifndef HAS_UNIFORM_u_${xr} - ${Yt} ${Jt} ${xr} = unpack_mix_${ve}(a_${xr}, u_${xr}_t); + ${Kt} ${Jt} ${xr} = unpack_mix_${ve}(a_${xr}, u_${xr}_t); #else - ${Yt} ${Jt} ${xr} = u_${xr}; + ${Kt} ${Jt} ${xr} = u_${xr}; #endif -`}),staticAttributes:Q,staticUniforms:qe}}class kr{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(w,B,Q,ee,le,qe,Xe,ot,wt){this.context=w;let Yt=this.boundPaintVertexBuffers.length!==ee.length;for(let Jt=0;!Yt&&Jt({u_matrix:ue,u_texture:0,u_ele_delta:w,u_fog_matrix:B,u_fog_color:Q?Q.properties.get("fog-color"):a.aM.white,u_fog_ground_blend:Q?Q.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:Q?Q.calculateFogBlendOpacity(ee):0,u_horizon_color:Q?Q.properties.get("horizon-color"):a.aM.white,u_horizon_fog_blend:Q?Q.properties.get("horizon-fog-blend"):1});function di(ue){let w=[];for(let B=0;B({u_matrix:ue,u_texture:0,u_ele_delta:w,u_fog_matrix:B,u_fog_color:Q?Q.properties.get("fog-color"):a.aM.white,u_fog_ground_blend:Q?Q.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:Q?Q.calculateFogBlendOpacity(ee):0,u_horizon_color:Q?Q.properties.get("horizon-color"):a.aM.white,u_horizon_fog_blend:Q?Q.properties.get("horizon-fog-blend"):1});function pi(ue){let w=[];for(let B=0;B({u_depth:new a.aH(jt,tr.u_depth),u_terrain:new a.aH(jt,tr.u_terrain),u_terrain_dim:new a.aI(jt,tr.u_terrain_dim),u_terrain_matrix:new a.aJ(jt,tr.u_terrain_matrix),u_terrain_unpack:new a.aK(jt,tr.u_terrain_unpack),u_terrain_exaggeration:new a.aI(jt,tr.u_terrain_exaggeration)}))(w,Ft),this.binderUniforms=Q?Q.getUniforms(w,Ft):[]}draw(w,B,Q,ee,le,qe,Xe,ot,wt,Yt,Jt,xr,Ir,ve,be,Re,Be,tt){let We=w.gl;if(this.failedToCreate)return;if(w.program.set(this.program),w.setDepthMode(Q),w.setStencilMode(ee),w.setColorMode(le),w.setCullFace(qe),ot){w.activeTexture.set(We.TEXTURE2),We.bindTexture(We.TEXTURE_2D,ot.depthTexture),w.activeTexture.set(We.TEXTURE3),We.bindTexture(We.TEXTURE_2D,ot.texture);for(let Ft in this.terrainUniforms)this.terrainUniforms[Ft].set(ot[Ft])}for(let Ft in this.fixedUniforms)this.fixedUniforms[Ft].set(Xe[Ft]);be&&be.setUniforms(w,this.binderUniforms,Ir,{zoom:ve});let it=0;switch(B){case We.LINES:it=2;break;case We.TRIANGLES:it=3;break;case We.LINE_STRIP:it=1}for(let Ft of xr.get()){let jt=Ft.vaos||(Ft.vaos={});(jt[wt]||(jt[wt]=new kr)).bind(w,this,Yt,be?be.getPaintVertexBuffers():[],Jt,Ft.vertexOffset,Re,Be,tt),We.drawElements(B,Ft.primitiveLength*it,We.UNSIGNED_SHORT,Ft.primitiveOffset*it*2)}}}function Sn(ue,w,B){let Q=1/Rn(B,1,w.transform.tileZoom),ee=Math.pow(2,B.tileID.overscaledZ),le=B.tileSize*Math.pow(2,w.transform.tileZoom)/ee,qe=le*(B.tileID.canonical.x+B.tileID.wrap*ee),Xe=le*B.tileID.canonical.y;return{u_image:0,u_texsize:B.imageAtlasTexture.size,u_scale:[Q,ue.fromScale,ue.toScale],u_fade:ue.t,u_pixel_coord_upper:[qe>>16,Xe>>16],u_pixel_coord_lower:[65535&qe,65535&Xe]}}let En=(ue,w,B,Q)=>{let ee=w.style.light,le=ee.properties.get("position"),qe=[le.x,le.y,le.z],Xe=function(){var wt=new a.A(9);return a.A!=Float32Array&&(wt[1]=0,wt[2]=0,wt[3]=0,wt[5]=0,wt[6]=0,wt[7]=0),wt[0]=1,wt[4]=1,wt[8]=1,wt}();ee.properties.get("anchor")==="viewport"&&function(wt,Yt){var Jt=Math.sin(Yt),xr=Math.cos(Yt);wt[0]=xr,wt[1]=Jt,wt[2]=0,wt[3]=-Jt,wt[4]=xr,wt[5]=0,wt[6]=0,wt[7]=0,wt[8]=1}(Xe,-w.transform.angle),function(wt,Yt,Jt){var xr=Yt[0],Ir=Yt[1],ve=Yt[2];wt[0]=xr*Jt[0]+Ir*Jt[3]+ve*Jt[6],wt[1]=xr*Jt[1]+Ir*Jt[4]+ve*Jt[7],wt[2]=xr*Jt[2]+Ir*Jt[5]+ve*Jt[8]}(qe,qe,Xe);let ot=ee.properties.get("color");return{u_matrix:ue,u_lightpos:qe,u_lightintensity:ee.properties.get("intensity"),u_lightcolor:[ot.r,ot.g,ot.b],u_vertical_gradient:+B,u_opacity:Q}},ki=(ue,w,B,Q,ee,le,qe)=>a.e(En(ue,w,B,Q),Sn(le,w,qe),{u_height_factor:-Math.pow(2,ee.overscaledZ)/qe.tileSize/8}),_n=ue=>({u_matrix:ue}),ya=(ue,w,B,Q)=>a.e(_n(ue),Sn(B,w,Q)),Jn=(ue,w)=>({u_matrix:ue,u_world:w}),Ma=(ue,w,B,Q,ee)=>a.e(ya(ue,w,B,Q),{u_world:ee}),_o=(ue,w,B,Q)=>{let ee=ue.transform,le,qe;if(Q.paint.get("circle-pitch-alignment")==="map"){let Xe=Rn(B,1,ee.zoom);le=!0,qe=[Xe,Xe]}else le=!1,qe=ee.pixelsToGLUnits;return{u_camera_to_center_distance:ee.cameraToCenterDistance,u_scale_with_map:+(Q.paint.get("circle-pitch-scale")==="map"),u_matrix:ue.translatePosMatrix(w.posMatrix,B,Q.paint.get("circle-translate"),Q.paint.get("circle-translate-anchor")),u_pitch_with_map:+le,u_device_pixel_ratio:ue.pixelRatio,u_extrude_scale:qe}},No=(ue,w,B)=>({u_matrix:ue,u_inv_matrix:w,u_camera_to_center_distance:B.cameraToCenterDistance,u_viewport_size:[B.width,B.height]}),po=(ue,w,B=1)=>({u_matrix:ue,u_color:w,u_overlay:0,u_overlay_scale:B}),Lo=ue=>({u_matrix:ue}),Co=(ue,w,B,Q)=>({u_matrix:ue,u_extrude_scale:Rn(w,1,B),u_intensity:Q}),Fs=(ue,w,B,Q)=>{let ee=a.H();a.aP(ee,0,ue.width,ue.height,0,0,1);let le=ue.context.gl;return{u_matrix:ee,u_world:[le.drawingBufferWidth,le.drawingBufferHeight],u_image:B,u_color_ramp:Q,u_opacity:w.paint.get("heatmap-opacity")}};function zs(ue,w){let B=Math.pow(2,w.canonical.z),Q=w.canonical.y;return[new a.Z(0,Q/B).toLngLat().lat,new a.Z(0,(Q+1)/B).toLngLat().lat]}let ul=(ue,w,B,Q)=>{let ee=ue.transform;return{u_matrix:Ss(ue,w,B,Q),u_ratio:1/Rn(w,1,ee.zoom),u_device_pixel_ratio:ue.pixelRatio,u_units_to_pixels:[1/ee.pixelsToGLUnits[0],1/ee.pixelsToGLUnits[1]]}},cl=(ue,w,B,Q,ee)=>a.e(ul(ue,w,B,ee),{u_image:0,u_image_height:Q}),Fl=(ue,w,B,Q,ee)=>{let le=ue.transform,qe=nl(w,le);return{u_matrix:Ss(ue,w,B,ee),u_texsize:w.imageAtlasTexture.size,u_ratio:1/Rn(w,1,le.zoom),u_device_pixel_ratio:ue.pixelRatio,u_image:0,u_scale:[qe,Q.fromScale,Q.toScale],u_fade:Q.t,u_units_to_pixels:[1/le.pixelsToGLUnits[0],1/le.pixelsToGLUnits[1]]}},cs=(ue,w,B,Q,ee,le)=>{let qe=ue.lineAtlas,Xe=nl(w,ue.transform),ot=B.layout.get("line-cap")==="round",wt=qe.getDash(Q.from,ot),Yt=qe.getDash(Q.to,ot),Jt=wt.width*ee.fromScale,xr=Yt.width*ee.toScale;return a.e(ul(ue,w,B,le),{u_patternscale_a:[Xe/Jt,-wt.height/2],u_patternscale_b:[Xe/xr,-Yt.height/2],u_sdfgamma:qe.width/(256*Math.min(Jt,xr)*ue.pixelRatio)/2,u_image:0,u_tex_y_a:wt.y,u_tex_y_b:Yt.y,u_mix:ee.t})};function nl(ue,w){return 1/Rn(ue,1,w.tileZoom)}function Ss(ue,w,B,Q){return ue.translatePosMatrix(Q?Q.posMatrix:w.tileID.posMatrix,w,B.paint.get("line-translate"),B.paint.get("line-translate-anchor"))}let fl=(ue,w,B,Q,ee)=>{return{u_matrix:ue,u_tl_parent:w,u_scale_parent:B,u_buffer_scale:1,u_fade_t:Q.mix,u_opacity:Q.opacity*ee.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:ee.paint.get("raster-brightness-min"),u_brightness_high:ee.paint.get("raster-brightness-max"),u_saturation_factor:(qe=ee.paint.get("raster-saturation"),qe>0?1-1/(1.001-qe):-qe),u_contrast_factor:(le=ee.paint.get("raster-contrast"),le>0?1/(1-le):1+le),u_spin_weights:Js(ee.paint.get("raster-hue-rotate"))};var le,qe};function Js(ue){ue*=Math.PI/180;let w=Math.sin(ue),B=Math.cos(ue);return[(2*B+1)/3,(-Math.sqrt(3)*w-B+1)/3,(Math.sqrt(3)*w-B+1)/3]}let Os=(ue,w,B,Q,ee,le,qe,Xe,ot,wt,Yt,Jt,xr,Ir)=>{let ve=qe.transform;return{u_is_size_zoom_constant:+(ue==="constant"||ue==="source"),u_is_size_feature_constant:+(ue==="constant"||ue==="camera"),u_size_t:w?w.uSizeT:0,u_size:w?w.uSize:0,u_camera_to_center_distance:ve.cameraToCenterDistance,u_pitch:ve.pitch/360*2*Math.PI,u_rotate_symbol:+B,u_aspect_ratio:ve.width/ve.height,u_fade_change:qe.options.fadeDuration?qe.symbolFadeChange:1,u_matrix:Xe,u_label_plane_matrix:ot,u_coord_matrix:wt,u_is_text:+Jt,u_pitch_with_map:+Q,u_is_along_line:ee,u_is_variable_anchor:le,u_texsize:xr,u_texture:0,u_translation:Yt,u_pitched_scale:Ir}},Io=(ue,w,B,Q,ee,le,qe,Xe,ot,wt,Yt,Jt,xr,Ir,ve)=>{let be=qe.transform;return a.e(Os(ue,w,B,Q,ee,le,qe,Xe,ot,wt,Yt,Jt,xr,ve),{u_gamma_scale:Q?Math.cos(be._pitch)*be.cameraToCenterDistance:1,u_device_pixel_ratio:qe.pixelRatio,u_is_halo:+Ir})},us=(ue,w,B,Q,ee,le,qe,Xe,ot,wt,Yt,Jt,xr,Ir)=>a.e(Io(ue,w,B,Q,ee,le,qe,Xe,ot,wt,Yt,!0,Jt,!0,Ir),{u_texsize_icon:xr,u_texture_icon:1}),Zl=(ue,w,B)=>({u_matrix:ue,u_opacity:w,u_color:B}),Su=(ue,w,B,Q,ee,le)=>a.e(function(qe,Xe,ot,wt){let Yt=ot.imageManager.getPattern(qe.from.toString()),Jt=ot.imageManager.getPattern(qe.to.toString()),{width:xr,height:Ir}=ot.imageManager.getPixelSize(),ve=Math.pow(2,wt.tileID.overscaledZ),be=wt.tileSize*Math.pow(2,ot.transform.tileZoom)/ve,Re=be*(wt.tileID.canonical.x+wt.tileID.wrap*ve),Be=be*wt.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:Yt.tl,u_pattern_br_a:Yt.br,u_pattern_tl_b:Jt.tl,u_pattern_br_b:Jt.br,u_texsize:[xr,Ir],u_mix:Xe.t,u_pattern_size_a:Yt.displaySize,u_pattern_size_b:Jt.displaySize,u_scale_a:Xe.fromScale,u_scale_b:Xe.toScale,u_tile_units_to_pixels:1/Rn(wt,1,ot.transform.tileZoom),u_pixel_coord_upper:[Re>>16,Be>>16],u_pixel_coord_lower:[65535&Re,65535&Be]}}(Q,le,B,ee),{u_matrix:ue,u_opacity:w}),nc={fillExtrusion:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_lightpos:new a.aN(ue,w.u_lightpos),u_lightintensity:new a.aI(ue,w.u_lightintensity),u_lightcolor:new a.aN(ue,w.u_lightcolor),u_vertical_gradient:new a.aI(ue,w.u_vertical_gradient),u_opacity:new a.aI(ue,w.u_opacity)}),fillExtrusionPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_lightpos:new a.aN(ue,w.u_lightpos),u_lightintensity:new a.aI(ue,w.u_lightintensity),u_lightcolor:new a.aN(ue,w.u_lightcolor),u_vertical_gradient:new a.aI(ue,w.u_vertical_gradient),u_height_factor:new a.aI(ue,w.u_height_factor),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade),u_opacity:new a.aI(ue,w.u_opacity)}),fill:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix)}),fillPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),fillOutline:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world)}),fillOutlinePattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),circle:(ue,w)=>({u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_scale_with_map:new a.aH(ue,w.u_scale_with_map),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_extrude_scale:new a.aO(ue,w.u_extrude_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_matrix:new a.aJ(ue,w.u_matrix)}),collisionBox:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_pixel_extrude_scale:new a.aO(ue,w.u_pixel_extrude_scale)}),collisionCircle:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_inv_matrix:new a.aJ(ue,w.u_inv_matrix),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_viewport_size:new a.aO(ue,w.u_viewport_size)}),debug:(ue,w)=>({u_color:new a.aL(ue,w.u_color),u_matrix:new a.aJ(ue,w.u_matrix),u_overlay:new a.aH(ue,w.u_overlay),u_overlay_scale:new a.aI(ue,w.u_overlay_scale)}),clippingMask:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix)}),heatmap:(ue,w)=>({u_extrude_scale:new a.aI(ue,w.u_extrude_scale),u_intensity:new a.aI(ue,w.u_intensity),u_matrix:new a.aJ(ue,w.u_matrix)}),heatmapTexture:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world),u_image:new a.aH(ue,w.u_image),u_color_ramp:new a.aH(ue,w.u_color_ramp),u_opacity:new a.aI(ue,w.u_opacity)}),hillshade:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_latrange:new a.aO(ue,w.u_latrange),u_light:new a.aO(ue,w.u_light),u_shadow:new a.aL(ue,w.u_shadow),u_highlight:new a.aL(ue,w.u_highlight),u_accent:new a.aL(ue,w.u_accent)}),hillshadePrepare:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_dimension:new a.aO(ue,w.u_dimension),u_zoom:new a.aI(ue,w.u_zoom),u_unpack:new a.aK(ue,w.u_unpack)}),line:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels)}),lineGradient:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_image:new a.aH(ue,w.u_image),u_image_height:new a.aI(ue,w.u_image_height)}),linePattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texsize:new a.aO(ue,w.u_texsize),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_image:new a.aH(ue,w.u_image),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),lineSDF:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_patternscale_a:new a.aO(ue,w.u_patternscale_a),u_patternscale_b:new a.aO(ue,w.u_patternscale_b),u_sdfgamma:new a.aI(ue,w.u_sdfgamma),u_image:new a.aH(ue,w.u_image),u_tex_y_a:new a.aI(ue,w.u_tex_y_a),u_tex_y_b:new a.aI(ue,w.u_tex_y_b),u_mix:new a.aI(ue,w.u_mix)}),raster:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_tl_parent:new a.aO(ue,w.u_tl_parent),u_scale_parent:new a.aI(ue,w.u_scale_parent),u_buffer_scale:new a.aI(ue,w.u_buffer_scale),u_fade_t:new a.aI(ue,w.u_fade_t),u_opacity:new a.aI(ue,w.u_opacity),u_image0:new a.aH(ue,w.u_image0),u_image1:new a.aH(ue,w.u_image1),u_brightness_low:new a.aI(ue,w.u_brightness_low),u_brightness_high:new a.aI(ue,w.u_brightness_high),u_saturation_factor:new a.aI(ue,w.u_saturation_factor),u_contrast_factor:new a.aI(ue,w.u_contrast_factor),u_spin_weights:new a.aN(ue,w.u_spin_weights)}),symbolIcon:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texture:new a.aH(ue,w.u_texture),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),symbolSDF:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texture:new a.aH(ue,w.u_texture),u_gamma_scale:new a.aI(ue,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_is_halo:new a.aH(ue,w.u_is_halo),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),symbolTextAndIcon:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texsize_icon:new a.aO(ue,w.u_texsize_icon),u_texture:new a.aH(ue,w.u_texture),u_texture_icon:new a.aH(ue,w.u_texture_icon),u_gamma_scale:new a.aI(ue,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_is_halo:new a.aH(ue,w.u_is_halo),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),background:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_opacity:new a.aI(ue,w.u_opacity),u_color:new a.aL(ue,w.u_color)}),backgroundPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_opacity:new a.aI(ue,w.u_opacity),u_image:new a.aH(ue,w.u_image),u_pattern_tl_a:new a.aO(ue,w.u_pattern_tl_a),u_pattern_br_a:new a.aO(ue,w.u_pattern_br_a),u_pattern_tl_b:new a.aO(ue,w.u_pattern_tl_b),u_pattern_br_b:new a.aO(ue,w.u_pattern_br_b),u_texsize:new a.aO(ue,w.u_texsize),u_mix:new a.aI(ue,w.u_mix),u_pattern_size_a:new a.aO(ue,w.u_pattern_size_a),u_pattern_size_b:new a.aO(ue,w.u_pattern_size_b),u_scale_a:new a.aI(ue,w.u_scale_a),u_scale_b:new a.aI(ue,w.u_scale_b),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_tile_units_to_pixels:new a.aI(ue,w.u_tile_units_to_pixels)}),terrain:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texture:new a.aH(ue,w.u_texture),u_ele_delta:new a.aI(ue,w.u_ele_delta),u_fog_matrix:new a.aJ(ue,w.u_fog_matrix),u_fog_color:new a.aL(ue,w.u_fog_color),u_fog_ground_blend:new a.aI(ue,w.u_fog_ground_blend),u_fog_ground_blend_opacity:new a.aI(ue,w.u_fog_ground_blend_opacity),u_horizon_color:new a.aL(ue,w.u_horizon_color),u_horizon_fog_blend:new a.aI(ue,w.u_horizon_fog_blend)}),terrainDepth:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ele_delta:new a.aI(ue,w.u_ele_delta)}),terrainCoords:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texture:new a.aH(ue,w.u_texture),u_terrain_coords_id:new a.aI(ue,w.u_terrain_coords_id),u_ele_delta:new a.aI(ue,w.u_ele_delta)}),sky:(ue,w)=>({u_sky_color:new a.aL(ue,w.u_sky_color),u_horizon_color:new a.aL(ue,w.u_horizon_color),u_horizon:new a.aI(ue,w.u_horizon),u_sky_horizon_blend:new a.aI(ue,w.u_sky_horizon_blend)})};class ws{constructor(w,B,Q){this.context=w;let ee=w.gl;this.buffer=ee.createBuffer(),this.dynamicDraw=!!Q,this.context.unbindVAO(),w.bindElementBuffer.set(this.buffer),ee.bufferData(ee.ELEMENT_ARRAY_BUFFER,B.arrayBuffer,this.dynamicDraw?ee.DYNAMIC_DRAW:ee.STATIC_DRAW),this.dynamicDraw||delete B.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(w){let B=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),B.bufferSubData(B.ELEMENT_ARRAY_BUFFER,0,w.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}let Fn={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class _a{constructor(w,B,Q,ee){this.length=B.length,this.attributes=Q,this.itemSize=B.bytesPerElement,this.dynamicDraw=ee,this.context=w;let le=w.gl;this.buffer=le.createBuffer(),w.bindVertexBuffer.set(this.buffer),le.bufferData(le.ARRAY_BUFFER,B.arrayBuffer,this.dynamicDraw?le.DYNAMIC_DRAW:le.STATIC_DRAW),this.dynamicDraw||delete B.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(w){if(w.length!==this.length)throw new Error(`Length of new data is ${w.length}, which doesn't match current length of ${this.length}`);let B=this.context.gl;this.bind(),B.bufferSubData(B.ARRAY_BUFFER,0,w.arrayBuffer)}enableAttributes(w,B){for(let Q=0;Q0){let jt=a.H();a.aQ(jt,We.placementInvProjMatrix,ue.transform.glCoordMatrix),a.aQ(jt,jt,We.placementViewportMatrix),ot.push({circleArray:Ft,circleOffset:Yt,transform:tt.posMatrix,invTransform:jt,coord:tt}),wt+=Ft.length/4,Yt=wt}it&&Xe.draw(le,qe.LINES,Po.disabled,Yo.disabled,ue.colorModeForRenderPass(),Pa.disabled,{u_matrix:tt.posMatrix,u_pixel_extrude_scale:[1/(Jt=ue.transform).width,1/Jt.height]},ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(tt),B.id,it.layoutVertexBuffer,it.indexBuffer,it.segments,null,ue.transform.zoom,null,null,it.collisionVertexBuffer)}var Jt;if(!ee||!ot.length)return;let xr=ue.useProgram("collisionCircle"),Ir=new a.aR;Ir.resize(4*wt),Ir._trim();let ve=0;for(let Be of ot)for(let tt=0;tt=0&&(Be[We.associatedIconIndex]={shiftedAnchor:Kn,angle:Aa})}else mi(We.numGlyphs,be)}if(wt){Re.clear();let tt=ue.icon.placedSymbolArray;for(let We=0;Weue.style.map.terrain.getElevation(jr,nt,Wt):null,Et=B.layout.get("text-rotation-alignment")==="map";je(Li,jr.posMatrix,ue,ee,Nl,ou,Be,wt,Et,be,jr.toUnwrapped(),ve.width,ve.height,$s,Ye)}let Tl=jr.posMatrix,Al=ee&&dr||dc,X=tt||Al?bl:Nl,se=Lu,Te=Pn&&B.paint.get(ee?"text-halo-width":"icon-halo-width").constantOr(1)!==0,Ne;Ne=Pn?Li.iconsInText?us(Kn.kind,$a,We,Be,tt,Al,ue,Tl,X,se,$s,Qa,As,Or):Io(Kn.kind,$a,We,Be,tt,Al,ue,Tl,X,se,$s,ee,Qa,!0,Or):Os(Kn.kind,$a,We,Be,tt,Al,ue,Tl,X,se,$s,ee,Qa,Or);let He={program:fa,buffers:un,uniformValues:Ne,atlasTexture:mo,atlasTextureIcon:wo,atlasInterpolation:Bo,atlasInterpolationIcon:Is,isSDF:Pn,hasHalo:Te};if(Ft&&Li.canOverlap){jt=!0;let Ye=un.segments.get();for(let Et of Ye)Sr.push({segments:new a.a0([Et]),sortKey:Et.sortKey,state:He,terrainData:ko})}else Sr.push({segments:un.segments,sortKey:0,state:He,terrainData:ko})}jt&&Sr.sort((jr,ii)=>jr.sortKey-ii.sortKey);for(let jr of Sr){let ii=jr.state;if(xr.activeTexture.set(Ir.TEXTURE0),ii.atlasTexture.bind(ii.atlasInterpolation,Ir.CLAMP_TO_EDGE),ii.atlasTextureIcon&&(xr.activeTexture.set(Ir.TEXTURE1),ii.atlasTextureIcon&&ii.atlasTextureIcon.bind(ii.atlasInterpolationIcon,Ir.CLAMP_TO_EDGE)),ii.isSDF){let Li=ii.uniformValues;ii.hasHalo&&(Li.u_is_halo=1,Qf(ii.buffers,jr.segments,B,ue,ii.program,tr,Yt,Jt,Li,jr.terrainData)),Li.u_is_halo=0}Qf(ii.buffers,jr.segments,B,ue,ii.program,tr,Yt,Jt,ii.uniformValues,jr.terrainData)}}function Qf(ue,w,B,Q,ee,le,qe,Xe,ot,wt){let Yt=Q.context;ee.draw(Yt,Yt.gl.TRIANGLES,le,qe,Xe,Pa.disabled,ot,wt,B.id,ue.layoutVertexBuffer,ue.indexBuffer,w,B.paint,Q.transform.zoom,ue.programConfigurations.get(B.id),ue.dynamicLayoutVertexBuffer,ue.opacityVertexBuffer)}function mf(ue,w,B,Q){let ee=ue.context,le=ee.gl,qe=Yo.disabled,Xe=new Bs([le.ONE,le.ONE],a.aM.transparent,[!0,!0,!0,!0]),ot=w.getBucket(B);if(!ot)return;let wt=Q.key,Yt=B.heatmapFbos.get(wt);Yt||(Yt=eh(ee,w.tileSize,w.tileSize),B.heatmapFbos.set(wt,Yt)),ee.bindFramebuffer.set(Yt.framebuffer),ee.viewport.set([0,0,w.tileSize,w.tileSize]),ee.clear({color:a.aM.transparent});let Jt=ot.programConfigurations.get(B.id),xr=ue.useProgram("heatmap",Jt),Ir=ue.style.map.terrain.getTerrainData(Q);xr.draw(ee,le.TRIANGLES,Po.disabled,qe,Xe,Pa.disabled,Co(Q.posMatrix,w,ue.transform.zoom,B.paint.get("heatmap-intensity")),Ir,B.id,ot.layoutVertexBuffer,ot.indexBuffer,ot.segments,B.paint,ue.transform.zoom,Jt)}function Yc(ue,w,B){let Q=ue.context,ee=Q.gl;Q.setColorMode(ue.colorModeForRenderPass());let le=th(Q,w),qe=B.key,Xe=w.heatmapFbos.get(qe);Xe&&(Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,Xe.colorAttachment.get()),Q.activeTexture.set(ee.TEXTURE1),le.bind(ee.LINEAR,ee.CLAMP_TO_EDGE),ue.useProgram("heatmapTexture").draw(Q,ee.TRIANGLES,Po.disabled,Yo.disabled,ue.colorModeForRenderPass(),Pa.disabled,Fs(ue,w,0,1),null,w.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments,w.paint,ue.transform.zoom),Xe.destroy(),w.heatmapFbos.delete(qe))}function eh(ue,w,B){var Q,ee;let le=ue.gl,qe=le.createTexture();le.bindTexture(le.TEXTURE_2D,qe),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_S,le.CLAMP_TO_EDGE),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_T,le.CLAMP_TO_EDGE),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MIN_FILTER,le.LINEAR),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MAG_FILTER,le.LINEAR);let Xe=(Q=ue.HALF_FLOAT)!==null&&Q!==void 0?Q:le.UNSIGNED_BYTE,ot=(ee=ue.RGBA16F)!==null&&ee!==void 0?ee:le.RGBA;le.texImage2D(le.TEXTURE_2D,0,ot,w,B,0,le.RGBA,Xe,null);let wt=ue.createFramebuffer(w,B,!1,!1);return wt.colorAttachment.set(qe),wt}function th(ue,w){return w.colorRampTexture||(w.colorRampTexture=new g(ue,w.colorRamp,ue.gl.RGBA)),w.colorRampTexture}function ju(ue,w,B,Q,ee){if(!B||!Q||!Q.imageAtlas)return;let le=Q.imageAtlas.patternPositions,qe=le[B.to.toString()],Xe=le[B.from.toString()];if(!qe&&Xe&&(qe=Xe),!Xe&&qe&&(Xe=qe),!qe||!Xe){let ot=ee.getPaintProperty(w);qe=le[ot],Xe=le[ot]}qe&&Xe&&ue.setConstantPatternPositions(qe,Xe)}function Gf(ue,w,B,Q,ee,le,qe){let Xe=ue.context.gl,ot="fill-pattern",wt=B.paint.get(ot),Yt=wt&&wt.constantOr(1),Jt=B.getCrossfadeParameters(),xr,Ir,ve,be,Re;qe?(Ir=Yt&&!B.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",xr=Xe.LINES):(Ir=Yt?"fillPattern":"fill",xr=Xe.TRIANGLES);let Be=wt.constantOr(null);for(let tt of Q){let We=w.getTile(tt);if(Yt&&!We.patternsLoaded())continue;let it=We.getBucket(B);if(!it)continue;let Ft=it.programConfigurations.get(B.id),jt=ue.useProgram(Ir,Ft),tr=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(tt);Yt&&(ue.context.activeTexture.set(Xe.TEXTURE0),We.imageAtlasTexture.bind(Xe.LINEAR,Xe.CLAMP_TO_EDGE),Ft.updatePaintBuffers(Jt)),ju(Ft,ot,Be,We,B);let dr=tr?tt:null,Sr=ue.translatePosMatrix(dr?dr.posMatrix:tt.posMatrix,We,B.paint.get("fill-translate"),B.paint.get("fill-translate-anchor"));if(qe){be=it.indexBuffer2,Re=it.segments2;let Or=[Xe.drawingBufferWidth,Xe.drawingBufferHeight];ve=Ir==="fillOutlinePattern"&&Yt?Ma(Sr,ue,Jt,We,Or):Jn(Sr,Or)}else be=it.indexBuffer,Re=it.segments,ve=Yt?ya(Sr,ue,Jt,We):_n(Sr);jt.draw(ue.context,xr,ee,ue.stencilModeForClipping(tt),le,Pa.disabled,ve,tr,B.id,it.layoutVertexBuffer,be,Re,B.paint,ue.transform.zoom,Ft)}}function cc(ue,w,B,Q,ee,le,qe){let Xe=ue.context,ot=Xe.gl,wt="fill-extrusion-pattern",Yt=B.paint.get(wt),Jt=Yt.constantOr(1),xr=B.getCrossfadeParameters(),Ir=B.paint.get("fill-extrusion-opacity"),ve=Yt.constantOr(null);for(let be of Q){let Re=w.getTile(be),Be=Re.getBucket(B);if(!Be)continue;let tt=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(be),We=Be.programConfigurations.get(B.id),it=ue.useProgram(Jt?"fillExtrusionPattern":"fillExtrusion",We);Jt&&(ue.context.activeTexture.set(ot.TEXTURE0),Re.imageAtlasTexture.bind(ot.LINEAR,ot.CLAMP_TO_EDGE),We.updatePaintBuffers(xr)),ju(We,wt,ve,Re,B);let Ft=ue.translatePosMatrix(be.posMatrix,Re,B.paint.get("fill-extrusion-translate"),B.paint.get("fill-extrusion-translate-anchor")),jt=B.paint.get("fill-extrusion-vertical-gradient"),tr=Jt?ki(Ft,ue,jt,Ir,be,xr,Re):En(Ft,ue,jt,Ir);it.draw(Xe,Xe.gl.TRIANGLES,ee,le,qe,Pa.backCCW,tr,tt,B.id,Be.layoutVertexBuffer,Be.indexBuffer,Be.segments,B.paint,ue.transform.zoom,We,ue.style.map.terrain&&Be.centroidVertexBuffer)}}function af(ue,w,B,Q,ee,le,qe){let Xe=ue.context,ot=Xe.gl,wt=B.fbo;if(!wt)return;let Yt=ue.useProgram("hillshade"),Jt=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(w);Xe.activeTexture.set(ot.TEXTURE0),ot.bindTexture(ot.TEXTURE_2D,wt.colorAttachment.get()),Yt.draw(Xe,ot.TRIANGLES,ee,le,qe,Pa.disabled,((xr,Ir,ve,be)=>{let Re=ve.paint.get("hillshade-shadow-color"),Be=ve.paint.get("hillshade-highlight-color"),tt=ve.paint.get("hillshade-accent-color"),We=ve.paint.get("hillshade-illumination-direction")*(Math.PI/180);ve.paint.get("hillshade-illumination-anchor")==="viewport"&&(We-=xr.transform.angle);let it=!xr.options.moving;return{u_matrix:be?be.posMatrix:xr.transform.calculatePosMatrix(Ir.tileID.toUnwrapped(),it),u_image:0,u_latrange:zs(0,Ir.tileID),u_light:[ve.paint.get("hillshade-exaggeration"),We],u_shadow:Re,u_highlight:Be,u_accent:tt}})(ue,B,Q,Jt?w:null),Jt,Q.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments)}function Bl(ue,w,B,Q,ee,le){let qe=ue.context,Xe=qe.gl,ot=w.dem;if(ot&&ot.data){let wt=ot.dim,Yt=ot.stride,Jt=ot.getPixels();if(qe.activeTexture.set(Xe.TEXTURE1),qe.pixelStoreUnpackPremultiplyAlpha.set(!1),w.demTexture=w.demTexture||ue.getTileTexture(Yt),w.demTexture){let Ir=w.demTexture;Ir.update(Jt,{premultiply:!1}),Ir.bind(Xe.NEAREST,Xe.CLAMP_TO_EDGE)}else w.demTexture=new g(qe,Jt,Xe.RGBA,{premultiply:!1}),w.demTexture.bind(Xe.NEAREST,Xe.CLAMP_TO_EDGE);qe.activeTexture.set(Xe.TEXTURE0);let xr=w.fbo;if(!xr){let Ir=new g(qe,{width:wt,height:wt,data:null},Xe.RGBA);Ir.bind(Xe.LINEAR,Xe.CLAMP_TO_EDGE),xr=w.fbo=qe.createFramebuffer(wt,wt,!0,!1),xr.colorAttachment.set(Ir.texture)}qe.bindFramebuffer.set(xr.framebuffer),qe.viewport.set([0,0,wt,wt]),ue.useProgram("hillshadePrepare").draw(qe,Xe.TRIANGLES,Q,ee,le,Pa.disabled,((Ir,ve)=>{let be=ve.stride,Re=a.H();return a.aP(Re,0,a.X,-a.X,0,0,1),a.J(Re,Re,[0,-a.X,0]),{u_matrix:Re,u_image:1,u_dimension:[be,be],u_zoom:Ir.overscaledZ,u_unpack:ve.getUnpackVector()}})(w.tileID,ot),null,B.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments),w.needsHillshadePrepare=!1}}function Kc(ue,w,B,Q,ee,le){let qe=Q.paint.get("raster-fade-duration");if(!le&&qe>0){let Xe=u.now(),ot=(Xe-ue.timeAdded)/qe,wt=w?(Xe-w.timeAdded)/qe:-1,Yt=B.getSource(),Jt=ee.coveringZoomLevel({tileSize:Yt.tileSize,roundZoom:Yt.roundZoom}),xr=!w||Math.abs(w.tileID.overscaledZ-Jt)>Math.abs(ue.tileID.overscaledZ-Jt),Ir=xr&&ue.refreshedUponExpiration?1:a.ac(xr?ot:1-wt,0,1);return ue.refreshedUponExpiration&&ot>=1&&(ue.refreshedUponExpiration=!1),w?{opacity:1,mix:1-Ir}:{opacity:Ir,mix:0}}return{opacity:1,mix:0}}let Rc=new a.aM(1,0,0,1),ms=new a.aM(0,1,0,1),Hf=new a.aM(0,0,1,1),Uh=new a.aM(1,0,1,1),rh=new a.aM(0,1,1,1);function of(ue,w,B,Q){Mu(ue,0,w+B/2,ue.transform.width,B,Q)}function xh(ue,w,B,Q){Mu(ue,w-B/2,0,B,ue.transform.height,Q)}function Mu(ue,w,B,Q,ee,le){let qe=ue.context,Xe=qe.gl;Xe.enable(Xe.SCISSOR_TEST),Xe.scissor(w*ue.pixelRatio,B*ue.pixelRatio,Q*ue.pixelRatio,ee*ue.pixelRatio),qe.clear({color:le}),Xe.disable(Xe.SCISSOR_TEST)}function ih(ue,w,B){let Q=ue.context,ee=Q.gl,le=B.posMatrix,qe=ue.useProgram("debug"),Xe=Po.disabled,ot=Yo.disabled,wt=ue.colorModeForRenderPass(),Yt="$debug",Jt=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(B);Q.activeTexture.set(ee.TEXTURE0);let xr=w.getTileByID(B.key).latestRawTileData,Ir=Math.floor((xr&&xr.byteLength||0)/1024),ve=w.getTile(B).tileSize,be=512/Math.min(ve,512)*(B.overscaledZ/ue.transform.zoom)*.5,Re=B.canonical.toString();B.overscaledZ!==B.canonical.z&&(Re+=` => ${B.overscaledZ}`),function(Be,tt){Be.initDebugOverlayCanvas();let We=Be.debugOverlayCanvas,it=Be.context.gl,Ft=Be.debugOverlayCanvas.getContext("2d");Ft.clearRect(0,0,We.width,We.height),Ft.shadowColor="white",Ft.shadowBlur=2,Ft.lineWidth=1.5,Ft.strokeStyle="white",Ft.textBaseline="top",Ft.font="bold 36px Open Sans, sans-serif",Ft.fillText(tt,5,5),Ft.strokeText(tt,5,5),Be.debugOverlayTexture.update(We),Be.debugOverlayTexture.bind(it.LINEAR,it.CLAMP_TO_EDGE)}(ue,`${Re} ${Ir}kB`),qe.draw(Q,ee.TRIANGLES,Xe,ot,Bs.alphaBlended,Pa.disabled,po(le,a.aM.transparent,be),null,Yt,ue.debugBuffer,ue.quadTriangleIndexBuffer,ue.debugSegments),qe.draw(Q,ee.LINE_STRIP,Xe,ot,wt,Pa.disabled,po(le,a.aM.red),Jt,Yt,ue.debugBuffer,ue.tileBorderIndexBuffer,ue.debugSegments)}function Ws(ue,w,B){let Q=ue.context,ee=Q.gl,le=ue.colorModeForRenderPass(),qe=new Po(ee.LEQUAL,Po.ReadWrite,ue.depthRangeFor3D),Xe=ue.useProgram("terrain"),ot=w.getTerrainMesh();Q.bindFramebuffer.set(null),Q.viewport.set([0,0,ue.width,ue.height]);for(let wt of B){let Yt=ue.renderToTexture.getTexture(wt),Jt=w.getTerrainData(wt.tileID);Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,Yt.texture);let xr=ue.transform.calculatePosMatrix(wt.tileID.toUnwrapped()),Ir=w.getMeshFrameDelta(ue.transform.zoom),ve=ue.transform.calculateFogMatrix(wt.tileID.toUnwrapped()),be=Qr(xr,Ir,ve,ue.style.sky,ue.transform.pitch);Xe.draw(Q,ee.TRIANGLES,qe,Yo.disabled,le,Pa.backCCW,be,Jt,"terrain",ot.vertexBuffer,ot.indexBuffer,ot.segments)}}class Eu{constructor(w,B,Q){this.vertexBuffer=w,this.indexBuffer=B,this.segments=Q}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}class Dc{constructor(w,B){this.context=new ad(w),this.transform=B,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:a.an(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=bt.maxUnderzooming+bt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Wo}resize(w,B,Q){if(this.width=Math.floor(w*Q),this.height=Math.floor(B*Q),this.pixelRatio=Q,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let ee of this.style._order)this.style._layers[ee].resize()}setup(){let w=this.context,B=new a.aX;B.emplaceBack(0,0),B.emplaceBack(a.X,0),B.emplaceBack(0,a.X),B.emplaceBack(a.X,a.X),this.tileExtentBuffer=w.createVertexBuffer(B,vo.members),this.tileExtentSegments=a.a0.simpleSegment(0,0,4,2);let Q=new a.aX;Q.emplaceBack(0,0),Q.emplaceBack(a.X,0),Q.emplaceBack(0,a.X),Q.emplaceBack(a.X,a.X),this.debugBuffer=w.createVertexBuffer(Q,vo.members),this.debugSegments=a.a0.simpleSegment(0,0,4,5);let ee=new a.$;ee.emplaceBack(0,0,0,0),ee.emplaceBack(a.X,0,a.X,0),ee.emplaceBack(0,a.X,0,a.X),ee.emplaceBack(a.X,a.X,a.X,a.X),this.rasterBoundsBuffer=w.createVertexBuffer(ee,lt.members),this.rasterBoundsSegments=a.a0.simpleSegment(0,0,4,2);let le=new a.aX;le.emplaceBack(0,0),le.emplaceBack(1,0),le.emplaceBack(0,1),le.emplaceBack(1,1),this.viewportBuffer=w.createVertexBuffer(le,vo.members),this.viewportSegments=a.a0.simpleSegment(0,0,4,2);let qe=new a.aZ;qe.emplaceBack(0),qe.emplaceBack(1),qe.emplaceBack(3),qe.emplaceBack(2),qe.emplaceBack(0),this.tileBorderIndexBuffer=w.createIndexBuffer(qe);let Xe=new a.aY;Xe.emplaceBack(0,1,2),Xe.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=w.createIndexBuffer(Xe);let ot=this.context.gl;this.stencilClearMode=new Yo({func:ot.ALWAYS,mask:0},0,255,ot.ZERO,ot.ZERO,ot.ZERO)}clearStencil(){let w=this.context,B=w.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let Q=a.H();a.aP(Q,0,this.width,this.height,0,0,1),a.K(Q,Q,[B.drawingBufferWidth,B.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(w,B.TRIANGLES,Po.disabled,this.stencilClearMode,Bs.disabled,Pa.disabled,Lo(Q),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(w,B){if(this.currentStencilSource===w.source||!w.isTileClipped()||!B||!B.length)return;this.currentStencilSource=w.source;let Q=this.context,ee=Q.gl;this.nextStencilID+B.length>256&&this.clearStencil(),Q.setColorMode(Bs.disabled),Q.setDepthMode(Po.disabled);let le=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(let qe of B){let Xe=this._tileClippingMaskIDs[qe.key]=this.nextStencilID++,ot=this.style.map.terrain&&this.style.map.terrain.getTerrainData(qe);le.draw(Q,ee.TRIANGLES,Po.disabled,new Yo({func:ee.ALWAYS,mask:0},Xe,255,ee.KEEP,ee.KEEP,ee.REPLACE),Bs.disabled,Pa.disabled,Lo(qe.posMatrix),ot,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let w=this.nextStencilID++,B=this.context.gl;return new Yo({func:B.NOTEQUAL,mask:255},w,255,B.KEEP,B.KEEP,B.REPLACE)}stencilModeForClipping(w){let B=this.context.gl;return new Yo({func:B.EQUAL,mask:255},this._tileClippingMaskIDs[w.key],0,B.KEEP,B.KEEP,B.REPLACE)}stencilConfigForOverlap(w){let B=this.context.gl,Q=w.sort((qe,Xe)=>Xe.overscaledZ-qe.overscaledZ),ee=Q[Q.length-1].overscaledZ,le=Q[0].overscaledZ-ee+1;if(le>1){this.currentStencilSource=void 0,this.nextStencilID+le>256&&this.clearStencil();let qe={};for(let Xe=0;Xe({u_sky_color:Be.properties.get("sky-color"),u_horizon_color:Be.properties.get("horizon-color"),u_horizon:(tt.height/2+tt.getHorizon())*We,u_sky_horizon_blend:Be.properties.get("sky-horizon-blend")*tt.height/2*We}))(wt,ot.style.map.transform,ot.pixelRatio),Ir=new Po(Jt.LEQUAL,Po.ReadWrite,[0,1]),ve=Yo.disabled,be=ot.colorModeForRenderPass(),Re=ot.useProgram("sky");if(!wt.mesh){let Be=new a.aX;Be.emplaceBack(-1,-1),Be.emplaceBack(1,-1),Be.emplaceBack(1,1),Be.emplaceBack(-1,1);let tt=new a.aY;tt.emplaceBack(0,1,2),tt.emplaceBack(0,2,3),wt.mesh=new Eu(Yt.createVertexBuffer(Be,vo.members),Yt.createIndexBuffer(tt),a.a0.simpleSegment(0,0,Be.length,tt.length))}Re.draw(Yt,Jt.TRIANGLES,Ir,ve,be,Pa.disabled,xr,void 0,"sky",wt.mesh.vertexBuffer,wt.mesh.indexBuffer,wt.mesh.segments)}(this,this.style.sky),this._showOverdrawInspector=B.showOverdrawInspector,this.depthRangeFor3D=[0,1-(w._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(this.renderPass="opaque",this.currentLayer=Q.length-1;this.currentLayer>=0;this.currentLayer--){let ot=this.style._layers[Q[this.currentLayer]],wt=ee[ot.source],Yt=le[ot.source];this._renderTileClippingMasks(ot,Yt),this.renderLayer(this,wt,ot,Yt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayerRe.source&&!Re.isHidden(Yt)?[wt.sourceCaches[Re.source]]:[]),Ir=xr.filter(Re=>Re.getSource().type==="vector"),ve=xr.filter(Re=>Re.getSource().type!=="vector"),be=Re=>{(!Jt||Jt.getSource().maxzoombe(Re)),Jt||ve.forEach(Re=>be(Re)),Jt}(this.style,this.transform.zoom);ot&&function(wt,Yt,Jt){for(let xr=0;xr0),ee&&(a.b0(B,Q),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,function(le,qe){let Xe=le.context,ot=Xe.gl,wt=Bs.unblended,Yt=new Po(ot.LEQUAL,Po.ReadWrite,[0,1]),Jt=qe.getTerrainMesh(),xr=qe.sourceCache.getRenderableTiles(),Ir=le.useProgram("terrainDepth");Xe.bindFramebuffer.set(qe.getFramebuffer("depth").framebuffer),Xe.viewport.set([0,0,le.width/devicePixelRatio,le.height/devicePixelRatio]),Xe.clear({color:a.aM.transparent,depth:1});for(let ve of xr){let be=qe.getTerrainData(ve.tileID),Re={u_matrix:le.transform.calculatePosMatrix(ve.tileID.toUnwrapped()),u_ele_delta:qe.getMeshFrameDelta(le.transform.zoom)};Ir.draw(Xe,ot.TRIANGLES,Yt,Yo.disabled,wt,Pa.backCCW,Re,be,"terrain",Jt.vertexBuffer,Jt.indexBuffer,Jt.segments)}Xe.bindFramebuffer.set(null),Xe.viewport.set([0,0,le.width,le.height])}(this,this.style.map.terrain),function(le,qe){let Xe=le.context,ot=Xe.gl,wt=Bs.unblended,Yt=new Po(ot.LEQUAL,Po.ReadWrite,[0,1]),Jt=qe.getTerrainMesh(),xr=qe.getCoordsTexture(),Ir=qe.sourceCache.getRenderableTiles(),ve=le.useProgram("terrainCoords");Xe.bindFramebuffer.set(qe.getFramebuffer("coords").framebuffer),Xe.viewport.set([0,0,le.width/devicePixelRatio,le.height/devicePixelRatio]),Xe.clear({color:a.aM.transparent,depth:1}),qe.coordsIndex=[];for(let be of Ir){let Re=qe.getTerrainData(be.tileID);Xe.activeTexture.set(ot.TEXTURE0),ot.bindTexture(ot.TEXTURE_2D,xr.texture);let Be={u_matrix:le.transform.calculatePosMatrix(be.tileID.toUnwrapped()),u_terrain_coords_id:(255-qe.coordsIndex.length)/255,u_texture:0,u_ele_delta:qe.getMeshFrameDelta(le.transform.zoom)};ve.draw(Xe,ot.TRIANGLES,Yt,Yo.disabled,wt,Pa.backCCW,Be,Re,"terrain",Jt.vertexBuffer,Jt.indexBuffer,Jt.segments),qe.coordsIndex.push(be.tileID.key)}Xe.bindFramebuffer.set(null),Xe.viewport.set([0,0,le.width,le.height])}(this,this.style.map.terrain))}renderLayer(w,B,Q,ee){if(!Q.isHidden(this.transform.zoom)&&(Q.type==="background"||Q.type==="custom"||(ee||[]).length))switch(this.id=Q.id,Q.type){case"symbol":(function(le,qe,Xe,ot,wt){if(le.renderPass!=="translucent")return;let Yt=Yo.disabled,Jt=le.colorModeForRenderPass();(Xe._unevaluatedLayout.hasValue("text-variable-anchor")||Xe._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&function(xr,Ir,ve,be,Re,Be,tt,We,it){let Ft=Ir.transform,jt=yn(),tr=Re==="map",dr=Be==="map";for(let Sr of xr){let Or=be.getTile(Sr),jr=Or.getBucket(ve);if(!jr||!jr.text||!jr.text.segments.get().length)continue;let ii=a.ag(jr.textSizeData,Ft.zoom),Li=Rn(Or,1,Ir.transform.zoom),un=Gr(Sr.posMatrix,dr,tr,Ir.transform,Li),sn=ve.layout.get("icon-text-fit")!=="none"&&jr.hasIconData();if(ii){let Pn=Math.pow(2,Ft.zoom-Or.tileID.overscaledZ),Kn=Ir.style.map.terrain?(fa,$a)=>Ir.style.map.terrain.getElevation(Sr,fa,$a):null,Aa=jt.translatePosition(Ft,Or,tt,We);gf(jr,tr,dr,it,Ft,un,Sr.posMatrix,Pn,ii,sn,jt,Aa,Sr.toUnwrapped(),Kn)}}}(ot,le,Xe,qe,Xe.layout.get("text-rotation-alignment"),Xe.layout.get("text-pitch-alignment"),Xe.paint.get("text-translate"),Xe.paint.get("text-translate-anchor"),wt),Xe.paint.get("icon-opacity").constantOr(1)!==0&&_h(le,qe,Xe,ot,!1,Xe.paint.get("icon-translate"),Xe.paint.get("icon-translate-anchor"),Xe.layout.get("icon-rotation-alignment"),Xe.layout.get("icon-pitch-alignment"),Xe.layout.get("icon-keep-upright"),Yt,Jt),Xe.paint.get("text-opacity").constantOr(1)!==0&&_h(le,qe,Xe,ot,!0,Xe.paint.get("text-translate"),Xe.paint.get("text-translate-anchor"),Xe.layout.get("text-rotation-alignment"),Xe.layout.get("text-pitch-alignment"),Xe.layout.get("text-keep-upright"),Yt,Jt),qe.map.showCollisionBoxes&&(Hu(le,qe,Xe,ot,!0),Hu(le,qe,Xe,ot,!1))})(w,B,Q,ee,this.style.placement.variableOffsets);break;case"circle":(function(le,qe,Xe,ot){if(le.renderPass!=="translucent")return;let wt=Xe.paint.get("circle-opacity"),Yt=Xe.paint.get("circle-stroke-width"),Jt=Xe.paint.get("circle-stroke-opacity"),xr=!Xe.layout.get("circle-sort-key").isConstant();if(wt.constantOr(1)===0&&(Yt.constantOr(1)===0||Jt.constantOr(1)===0))return;let Ir=le.context,ve=Ir.gl,be=le.depthModeForSublayer(0,Po.ReadOnly),Re=Yo.disabled,Be=le.colorModeForRenderPass(),tt=[];for(let We=0;WeWe.sortKey-it.sortKey);for(let We of tt){let{programConfiguration:it,program:Ft,layoutVertexBuffer:jt,indexBuffer:tr,uniformValues:dr,terrainData:Sr}=We.state;Ft.draw(Ir,ve.TRIANGLES,be,Re,Be,Pa.disabled,dr,Sr,Xe.id,jt,tr,We.segments,Xe.paint,le.transform.zoom,it)}})(w,B,Q,ee);break;case"heatmap":(function(le,qe,Xe,ot){if(Xe.paint.get("heatmap-opacity")===0)return;let wt=le.context;if(le.style.map.terrain){for(let Yt of ot){let Jt=qe.getTile(Yt);qe.hasRenderableParent(Yt)||(le.renderPass==="offscreen"?mf(le,Jt,Xe,Yt):le.renderPass==="translucent"&&Yc(le,Xe,Yt))}wt.viewport.set([0,0,le.width,le.height])}else le.renderPass==="offscreen"?function(Yt,Jt,xr,Ir){let ve=Yt.context,be=ve.gl,Re=Yo.disabled,Be=new Bs([be.ONE,be.ONE],a.aM.transparent,[!0,!0,!0,!0]);(function(tt,We,it){let Ft=tt.gl;tt.activeTexture.set(Ft.TEXTURE1),tt.viewport.set([0,0,We.width/4,We.height/4]);let jt=it.heatmapFbos.get(a.aU);jt?(Ft.bindTexture(Ft.TEXTURE_2D,jt.colorAttachment.get()),tt.bindFramebuffer.set(jt.framebuffer)):(jt=eh(tt,We.width/4,We.height/4),it.heatmapFbos.set(a.aU,jt))})(ve,Yt,xr),ve.clear({color:a.aM.transparent});for(let tt=0;tt20&&Yt.texParameterf(Yt.TEXTURE_2D,wt.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,wt.extTextureFilterAnisotropicMax);let jr=le.style.map.terrain&&le.style.map.terrain.getTerrainData(tt),ii=jr?tt:null,Li=ii?ii.posMatrix:le.transform.calculatePosMatrix(tt.toUnwrapped(),Be),un=fl(Li,Sr||[0,0],dr||1,tr,Xe);Jt instanceof Gt?xr.draw(wt,Yt.TRIANGLES,We,Yo.disabled,Ir,Pa.disabled,un,jr,Xe.id,Jt.boundsBuffer,le.quadTriangleIndexBuffer,Jt.boundsSegments):xr.draw(wt,Yt.TRIANGLES,We,ve[tt.overscaledZ],Ir,Pa.disabled,un,jr,Xe.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments)}})(w,B,Q,ee);break;case"background":(function(le,qe,Xe,ot){let wt=Xe.paint.get("background-color"),Yt=Xe.paint.get("background-opacity");if(Yt===0)return;let Jt=le.context,xr=Jt.gl,Ir=le.transform,ve=Ir.tileSize,be=Xe.paint.get("background-pattern");if(le.isPatternMissing(be))return;let Re=!be&&wt.a===1&&Yt===1&&le.opaquePassEnabledForLayer()?"opaque":"translucent";if(le.renderPass!==Re)return;let Be=Yo.disabled,tt=le.depthModeForSublayer(0,Re==="opaque"?Po.ReadWrite:Po.ReadOnly),We=le.colorModeForRenderPass(),it=le.useProgram(be?"backgroundPattern":"background"),Ft=ot||Ir.coveringTiles({tileSize:ve,terrain:le.style.map.terrain});be&&(Jt.activeTexture.set(xr.TEXTURE0),le.imageManager.bind(le.context));let jt=Xe.getCrossfadeParameters();for(let tr of Ft){let dr=ot?tr.posMatrix:le.transform.calculatePosMatrix(tr.toUnwrapped()),Sr=be?Su(dr,Yt,le,be,{tileID:tr,tileSize:ve},jt):Zl(dr,Yt,wt),Or=le.style.map.terrain&&le.style.map.terrain.getTerrainData(tr);it.draw(Jt,xr.TRIANGLES,tt,Be,We,Pa.disabled,Sr,Or,Xe.id,le.tileExtentBuffer,le.quadTriangleIndexBuffer,le.tileExtentSegments)}})(w,0,Q,ee);break;case"custom":(function(le,qe,Xe){let ot=le.context,wt=Xe.implementation;if(le.renderPass==="offscreen"){let Yt=wt.prerender;Yt&&(le.setCustomLayerDefaults(),ot.setColorMode(le.colorModeForRenderPass()),Yt.call(wt,ot.gl,le.transform.customLayerMatrix()),ot.setDirty(),le.setBaseState())}else if(le.renderPass==="translucent"){le.setCustomLayerDefaults(),ot.setColorMode(le.colorModeForRenderPass()),ot.setStencilMode(Yo.disabled);let Yt=wt.renderingMode==="3d"?new Po(le.context.gl.LEQUAL,Po.ReadWrite,le.depthRangeFor3D):le.depthModeForSublayer(0,Po.ReadOnly);ot.setDepthMode(Yt),wt.render(ot.gl,le.transform.customLayerMatrix(),{farZ:le.transform.farZ,nearZ:le.transform.nearZ,fov:le.transform._fov,modelViewProjectionMatrix:le.transform.modelViewProjectionMatrix,projectionMatrix:le.transform.projectionMatrix}),ot.setDirty(),le.setBaseState(),ot.bindFramebuffer.set(null)}})(w,0,Q)}}translatePosMatrix(w,B,Q,ee,le){if(!Q[0]&&!Q[1])return w;let qe=le?ee==="map"?this.transform.angle:0:ee==="viewport"?-this.transform.angle:0;if(qe){let wt=Math.sin(qe),Yt=Math.cos(qe);Q=[Q[0]*Yt-Q[1]*wt,Q[0]*wt+Q[1]*Yt]}let Xe=[le?Q[0]:Rn(B,Q[0],this.transform.zoom),le?Q[1]:Rn(B,Q[1],this.transform.zoom),0],ot=new Float32Array(16);return a.J(ot,w,Xe),ot}saveTileTexture(w){let B=this._tileTextures[w.size[0]];B?B.push(w):this._tileTextures[w.size[0]]=[w]}getTileTexture(w){let B=this._tileTextures[w];return B&&B.length>0?B.pop():null}isPatternMissing(w){if(!w)return!1;if(!w.from||!w.to)return!0;let B=this.imageManager.getPattern(w.from.toString()),Q=this.imageManager.getPattern(w.to.toString());return!B||!Q}useProgram(w,B){this.cache=this.cache||{};let Q=w+(B?B.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[Q]||(this.cache[Q]=new fn(this.context,jn[w],B,nc[w],this._showOverdrawInspector,this.style.map.terrain)),this.cache[Q]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){let w=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(w.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new g(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){let{drawingBufferWidth:w,drawingBufferHeight:B}=this.context.gl;return this.width!==w||this.height!==B}}class ks{constructor(w,B){this.points=w,this.planes=B}static fromInvProjectionMatrix(w,B,Q){let ee=Math.pow(2,Q),le=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(Xe=>{let ot=1/(Xe=a.af([],Xe,w))[3]/B*ee;return a.b1(Xe,Xe,[ot,ot,1/Xe[3],ot])}),qe=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(Xe=>{let ot=function(xr,Ir){var ve=Ir[0],be=Ir[1],Re=Ir[2],Be=ve*ve+be*be+Re*Re;return Be>0&&(Be=1/Math.sqrt(Be)),xr[0]=Ir[0]*Be,xr[1]=Ir[1]*Be,xr[2]=Ir[2]*Be,xr}([],function(xr,Ir,ve){var be=Ir[0],Re=Ir[1],Be=Ir[2],tt=ve[0],We=ve[1],it=ve[2];return xr[0]=Re*it-Be*We,xr[1]=Be*tt-be*it,xr[2]=be*We-Re*tt,xr}([],L([],le[Xe[0]],le[Xe[1]]),L([],le[Xe[2]],le[Xe[1]]))),wt=-((Yt=ot)[0]*(Jt=le[Xe[1]])[0]+Yt[1]*Jt[1]+Yt[2]*Jt[2]);var Yt,Jt;return ot.concat(wt)});return new ks(le,qe)}}class bc{constructor(w,B){this.min=w,this.max=B,this.center=function(Q,ee,le){return Q[0]=.5*ee[0],Q[1]=.5*ee[1],Q[2]=.5*ee[2],Q}([],function(Q,ee,le){return Q[0]=ee[0]+le[0],Q[1]=ee[1]+le[1],Q[2]=ee[2]+le[2],Q}([],this.min,this.max))}quadrant(w){let B=[w%2==0,w<2],Q=E(this.min),ee=E(this.max);for(let le=0;le=0&&qe++;if(qe===0)return 0;qe!==B.length&&(Q=!1)}if(Q)return 2;for(let ee=0;ee<3;ee++){let le=Number.MAX_VALUE,qe=-Number.MAX_VALUE;for(let Xe=0;Xethis.max[ee]-this.min[ee])return 0}return 1}}class du{constructor(w=0,B=0,Q=0,ee=0){if(isNaN(w)||w<0||isNaN(B)||B<0||isNaN(Q)||Q<0||isNaN(ee)||ee<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=w,this.bottom=B,this.left=Q,this.right=ee}interpolate(w,B,Q){return B.top!=null&&w.top!=null&&(this.top=a.y.number(w.top,B.top,Q)),B.bottom!=null&&w.bottom!=null&&(this.bottom=a.y.number(w.bottom,B.bottom,Q)),B.left!=null&&w.left!=null&&(this.left=a.y.number(w.left,B.left,Q)),B.right!=null&&w.right!=null&&(this.right=a.y.number(w.right,B.right,Q)),this}getCenter(w,B){let Q=a.ac((this.left+w-this.right)/2,0,w),ee=a.ac((this.top+B-this.bottom)/2,0,B);return new a.P(Q,ee)}equals(w){return this.top===w.top&&this.bottom===w.bottom&&this.left===w.left&&this.right===w.right}clone(){return new du(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}let _u=85.051129;class al{constructor(w,B,Q,ee,le){this.tileSize=512,this._renderWorldCopies=le===void 0||!!le,this._minZoom=w||0,this._maxZoom=B||22,this._minPitch=Q==null?0:Q,this._maxPitch=ee==null?60:ee,this.setMaxBounds(),this.width=0,this.height=0,this._center=new a.N(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new du,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={},this.minElevationForCurrentTile=0}clone(){let w=new al(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return w.apply(this),w}apply(w){this.tileSize=w.tileSize,this.latRange=w.latRange,this.lngRange=w.lngRange,this.width=w.width,this.height=w.height,this._center=w._center,this._elevation=w._elevation,this.minElevationForCurrentTile=w.minElevationForCurrentTile,this.zoom=w.zoom,this.angle=w.angle,this._fov=w._fov,this._pitch=w._pitch,this._unmodified=w._unmodified,this._edgeInsets=w._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(w){this._minZoom!==w&&(this._minZoom=w,this.zoom=Math.max(this.zoom,w))}get maxZoom(){return this._maxZoom}set maxZoom(w){this._maxZoom!==w&&(this._maxZoom=w,this.zoom=Math.min(this.zoom,w))}get minPitch(){return this._minPitch}set minPitch(w){this._minPitch!==w&&(this._minPitch=w,this.pitch=Math.max(this.pitch,w))}get maxPitch(){return this._maxPitch}set maxPitch(w){this._maxPitch!==w&&(this._maxPitch=w,this.pitch=Math.min(this.pitch,w))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(w){w===void 0?w=!0:w===null&&(w=!1),this._renderWorldCopies=w}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new a.P(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(w){let B=-a.b3(w,-180,180)*Math.PI/180;this.angle!==B&&(this._unmodified=!1,this.angle=B,this._calcMatrices(),this.rotationMatrix=function(){var Q=new a.A(4);return a.A!=Float32Array&&(Q[1]=0,Q[2]=0),Q[0]=1,Q[3]=1,Q}(),function(Q,ee,le){var qe=ee[0],Xe=ee[1],ot=ee[2],wt=ee[3],Yt=Math.sin(le),Jt=Math.cos(le);Q[0]=qe*Jt+ot*Yt,Q[1]=Xe*Jt+wt*Yt,Q[2]=qe*-Yt+ot*Jt,Q[3]=Xe*-Yt+wt*Jt}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(w){let B=a.ac(w,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==B&&(this._unmodified=!1,this._pitch=B,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(w){w=Math.max(.01,Math.min(60,w)),this._fov!==w&&(this._unmodified=!1,this._fov=w/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(w){let B=Math.min(Math.max(w,this.minZoom),this.maxZoom);this._zoom!==B&&(this._unmodified=!1,this._zoom=B,this.tileZoom=Math.max(0,Math.floor(B)),this.scale=this.zoomScale(B),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(w){w.lat===this._center.lat&&w.lng===this._center.lng||(this._unmodified=!1,this._center=w,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(w){w!==this._elevation&&(this._elevation=w,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(w){this._edgeInsets.equals(w)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,w,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(w){return this._edgeInsets.equals(w)}interpolatePadding(w,B,Q){this._unmodified=!1,this._edgeInsets.interpolate(w,B,Q),this._constrain(),this._calcMatrices()}coveringZoomLevel(w){let B=(w.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/w.tileSize));return Math.max(0,B)}getVisibleUnwrappedCoordinates(w){let B=[new a.b4(0,w)];if(this._renderWorldCopies){let Q=this.pointCoordinate(new a.P(0,0)),ee=this.pointCoordinate(new a.P(this.width,0)),le=this.pointCoordinate(new a.P(this.width,this.height)),qe=this.pointCoordinate(new a.P(0,this.height)),Xe=Math.floor(Math.min(Q.x,ee.x,le.x,qe.x)),ot=Math.floor(Math.max(Q.x,ee.x,le.x,qe.x)),wt=1;for(let Yt=Xe-wt;Yt<=ot+wt;Yt++)Yt!==0&&B.push(new a.b4(Yt,w))}return B}coveringTiles(w){var B,Q;let ee=this.coveringZoomLevel(w),le=ee;if(w.minzoom!==void 0&&eew.maxzoom&&(ee=w.maxzoom);let qe=this.pointCoordinate(this.getCameraPoint()),Xe=a.Z.fromLngLat(this.center),ot=Math.pow(2,ee),wt=[ot*qe.x,ot*qe.y,0],Yt=[ot*Xe.x,ot*Xe.y,0],Jt=ks.fromInvProjectionMatrix(this.invModelViewProjectionMatrix,this.worldSize,ee),xr=w.minzoom||0;!w.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(xr=ee);let Ir=w.terrain?2/Math.min(this.tileSize,w.tileSize)*this.tileSize:3,ve=We=>({aabb:new bc([We*ot,0,0],[(We+1)*ot,ot,0]),zoom:0,x:0,y:0,wrap:We,fullyVisible:!1}),be=[],Re=[],Be=ee,tt=w.reparseOverscaled?le:ee;if(this._renderWorldCopies)for(let We=1;We<=3;We++)be.push(ve(-We)),be.push(ve(We));for(be.push(ve(0));be.length>0;){let We=be.pop(),it=We.x,Ft=We.y,jt=We.fullyVisible;if(!jt){let jr=We.aabb.intersects(Jt);if(jr===0)continue;jt=jr===2}let tr=w.terrain?wt:Yt,dr=We.aabb.distanceX(tr),Sr=We.aabb.distanceY(tr),Or=Math.max(Math.abs(dr),Math.abs(Sr));if(We.zoom===Be||Or>Ir+(1<=xr){let jr=Be-We.zoom,ii=wt[0]-.5-(it<>1),un=We.zoom+1,sn=We.aabb.quadrant(jr);if(w.terrain){let Pn=new a.S(un,We.wrap,un,ii,Li),Kn=w.terrain.getMinMaxElevation(Pn),Aa=(B=Kn.minElevation)!==null&&B!==void 0?B:this.elevation,fa=(Q=Kn.maxElevation)!==null&&Q!==void 0?Q:this.elevation;sn=new bc([sn.min[0],sn.min[1],Aa],[sn.max[0],sn.max[1],fa])}be.push({aabb:sn,zoom:un,x:ii,y:Li,wrap:We.wrap,fullyVisible:jt})}}return Re.sort((We,it)=>We.distanceSq-it.distanceSq).map(We=>We.tileID)}resize(w,B){this.width=w,this.height=B,this.pixelsToGLUnits=[2/w,-2/B],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(w){return Math.pow(2,w)}scaleZoom(w){return Math.log(w)/Math.LN2}project(w){let B=a.ac(w.lat,-85.051129,_u);return new a.P(a.O(w.lng)*this.worldSize,a.Q(B)*this.worldSize)}unproject(w){return new a.Z(w.x/this.worldSize,w.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){return{lngLat:this.pointLocation(this.getCameraPoint()),altitude:Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter+this.elevation}}recalculateZoom(w){let B=this.elevation,Q=Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter,ee=this.pointLocation(this.centerPoint,w),le=w.getElevationForLngLatZoom(ee,this.tileZoom);if(!(this.elevation-le))return;let qe=Q+B-le,Xe=Math.cos(this._pitch)*this.cameraToCenterDistance/qe/a.b5(1,ee.lat),ot=this.scaleZoom(Xe/this.tileSize);this._elevation=le,this._center=ee,this.zoom=ot}setLocationAtPoint(w,B){let Q=this.pointCoordinate(B),ee=this.pointCoordinate(this.centerPoint),le=this.locationCoordinate(w),qe=new a.Z(le.x-(Q.x-ee.x),le.y-(Q.y-ee.y));this.center=this.coordinateLocation(qe),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(w,B){return B?this.coordinatePoint(this.locationCoordinate(w),B.getElevationForLngLatZoom(w,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(w))}pointLocation(w,B){return this.coordinateLocation(this.pointCoordinate(w,B))}locationCoordinate(w){return a.Z.fromLngLat(w)}coordinateLocation(w){return w&&w.toLngLat()}pointCoordinate(w,B){if(B){let xr=B.pointCoordinate(w);if(xr!=null)return xr}let Q=[w.x,w.y,0,1],ee=[w.x,w.y,1,1];a.af(Q,Q,this.pixelMatrixInverse),a.af(ee,ee,this.pixelMatrixInverse);let le=Q[3],qe=ee[3],Xe=Q[1]/le,ot=ee[1]/qe,wt=Q[2]/le,Yt=ee[2]/qe,Jt=wt===Yt?0:(0-wt)/(Yt-wt);return new a.Z(a.y.number(Q[0]/le,ee[0]/qe,Jt)/this.worldSize,a.y.number(Xe,ot,Jt)/this.worldSize)}coordinatePoint(w,B=0,Q=this.pixelMatrix){let ee=[w.x*this.worldSize,w.y*this.worldSize,B,1];return a.af(ee,ee,Q),new a.P(ee[0]/ee[3],ee[1]/ee[3])}getBounds(){let w=Math.max(0,this.height/2-this.getHorizon());return new ce().extend(this.pointLocation(new a.P(0,w))).extend(this.pointLocation(new a.P(this.width,w))).extend(this.pointLocation(new a.P(this.width,this.height))).extend(this.pointLocation(new a.P(0,this.height)))}getMaxBounds(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new ce([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(w){w?(this.lngRange=[w.getWest(),w.getEast()],this.latRange=[w.getSouth(),w.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-85.051129,_u])}calculateTileMatrix(w){let B=w.canonical,Q=this.worldSize/this.zoomScale(B.z),ee=B.x+Math.pow(2,B.z)*w.wrap,le=a.an(new Float64Array(16));return a.J(le,le,[ee*Q,B.y*Q,0]),a.K(le,le,[Q/a.X,Q/a.X,1]),le}calculatePosMatrix(w,B=!1){let Q=w.key,ee=B?this._alignedPosMatrixCache:this._posMatrixCache;if(ee[Q])return ee[Q];let le=this.calculateTileMatrix(w);return a.L(le,B?this.alignedModelViewProjectionMatrix:this.modelViewProjectionMatrix,le),ee[Q]=new Float32Array(le),ee[Q]}calculateFogMatrix(w){let B=w.key,Q=this._fogMatrixCache;if(Q[B])return Q[B];let ee=this.calculateTileMatrix(w);return a.L(ee,this.fogMatrix,ee),Q[B]=new Float32Array(ee),Q[B]}customLayerMatrix(){return this.mercatorMatrix.slice()}getConstrained(w,B){B=a.ac(+B,this.minZoom,this.maxZoom);let Q={center:new a.N(w.lng,w.lat),zoom:B},ee=this.lngRange;if(!this._renderWorldCopies&&ee===null){let We=179.9999999999;ee=[-We,We]}let le=this.tileSize*this.zoomScale(Q.zoom),qe=0,Xe=le,ot=0,wt=le,Yt=0,Jt=0,{x:xr,y:Ir}=this.size;if(this.latRange){let We=this.latRange;qe=a.Q(We[1])*le,Xe=a.Q(We[0])*le,Xe-qeXe&&(Be=Xe-We)}if(ee){let We=(ot+wt)/2,it=ve;this._renderWorldCopies&&(it=a.b3(ve,We-le/2,We+le/2));let Ft=xr/2;it-Ftwt&&(Re=wt-Ft)}if(Re!==void 0||Be!==void 0){let We=new a.P(Re!=null?Re:ve,Be!=null?Be:be);Q.center=this.unproject.call({worldSize:le},We).wrap()}return Q}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let w=this._unmodified,{center:B,zoom:Q}=this.getConstrained(this.center,this.zoom);this.center=B,this.zoom=Q,this._unmodified=w,this._constraining=!1}_calcMatrices(){if(!this.height)return;let w=this.centerOffset,B=this.point.x,Q=this.point.y;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height,this._pixelPerMeter=a.b5(1,this.center.lat)*this.worldSize;let ee=a.an(new Float64Array(16));a.K(ee,ee,[this.width/2,-this.height/2,1]),a.J(ee,ee,[1,-1,0]),this.labelPlaneMatrix=ee,ee=a.an(new Float64Array(16)),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[-1,-1,0]),a.K(ee,ee,[2/this.width,2/this.height,1]),this.glCoordMatrix=ee;let le=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),qe=Math.min(this.elevation,this.minElevationForCurrentTile),Xe=le-qe*this._pixelPerMeter/Math.cos(this._pitch),ot=qe<0?Xe:le,wt=Math.PI/2+this._pitch,Yt=this._fov*(.5+w.y/this.height),Jt=Math.sin(Yt)*ot/Math.sin(a.ac(Math.PI-wt-Yt,.01,Math.PI-.01)),xr=this.getHorizon(),Ir=2*Math.atan(xr/this.cameraToCenterDistance)*(.5+w.y/(2*xr)),ve=Math.sin(Ir)*ot/Math.sin(a.ac(Math.PI-wt-Ir,.01,Math.PI-.01)),be=Math.min(Jt,ve);this.farZ=1.01*(Math.cos(Math.PI/2-this._pitch)*be+ot),this.nearZ=this.height/50,ee=new Float64Array(16),a.b6(ee,this._fov,this.width/this.height,this.nearZ,this.farZ),ee[8]=2*-w.x/this.width,ee[9]=2*w.y/this.height,this.projectionMatrix=a.ae(ee),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[0,0,-this.cameraToCenterDistance]),a.b7(ee,ee,this._pitch),a.ad(ee,ee,this.angle),a.J(ee,ee,[-B,-Q,0]),this.mercatorMatrix=a.K([],ee,[this.worldSize,this.worldSize,this.worldSize]),a.K(ee,ee,[1,1,this._pixelPerMeter]),this.pixelMatrix=a.L(new Float64Array(16),this.labelPlaneMatrix,ee),a.J(ee,ee,[0,0,-this.elevation]),this.modelViewProjectionMatrix=ee,this.invModelViewProjectionMatrix=a.as([],ee),this.fogMatrix=new Float64Array(16),a.b6(this.fogMatrix,this._fov,this.width/this.height,le,this.farZ),this.fogMatrix[8]=2*-w.x/this.width,this.fogMatrix[9]=2*w.y/this.height,a.K(this.fogMatrix,this.fogMatrix,[1,-1,1]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.cameraToCenterDistance]),a.b7(this.fogMatrix,this.fogMatrix,this._pitch),a.ad(this.fogMatrix,this.fogMatrix,this.angle),a.J(this.fogMatrix,this.fogMatrix,[-B,-Q,0]),a.K(this.fogMatrix,this.fogMatrix,[1,1,this._pixelPerMeter]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.elevation]),this.pixelMatrix3D=a.L(new Float64Array(16),this.labelPlaneMatrix,ee);let Re=this.width%2/2,Be=this.height%2/2,tt=Math.cos(this.angle),We=Math.sin(this.angle),it=B-Math.round(B)+tt*Re+We*Be,Ft=Q-Math.round(Q)+tt*Be+We*Re,jt=new Float64Array(ee);if(a.J(jt,jt,[it>.5?it-1:it,Ft>.5?Ft-1:Ft,0]),this.alignedModelViewProjectionMatrix=jt,ee=a.as(new Float64Array(16),this.pixelMatrix),!ee)throw new Error("failed to invert matrix");this.pixelMatrixInverse=ee,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;let w=this.pointCoordinate(new a.P(0,0)),B=[w.x*this.worldSize,w.y*this.worldSize,0,1];return a.af(B,B,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){let w=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.P(0,w))}getCameraQueryGeometry(w){let B=this.getCameraPoint();if(w.length===1)return[w[0],B];{let Q=B.x,ee=B.y,le=B.x,qe=B.y;for(let Xe of w)Q=Math.min(Q,Xe.x),ee=Math.min(ee,Xe.y),le=Math.max(le,Xe.x),qe=Math.max(qe,Xe.y);return[new a.P(Q,ee),new a.P(le,ee),new a.P(le,qe),new a.P(Q,qe),new a.P(Q,ee)]}}lngLatToCameraDepth(w,B){let Q=this.locationCoordinate(w),ee=[Q.x*this.worldSize,Q.y*this.worldSize,B,1];return a.af(ee,ee,this.modelViewProjectionMatrix),ee[2]/ee[3]}}function nh(ue,w){let B,Q=!1,ee=null,le=null,qe=()=>{ee=null,Q&&(ue.apply(le,B),ee=setTimeout(qe,w),Q=!1)};return(...Xe)=>(Q=!0,le=this,B=Xe,ee||qe(),ee)}class bh{constructor(w){this._getCurrentHash=()=>{let B=window.location.hash.replace("#","");if(this._hashName){let Q;return B.split("&").map(ee=>ee.split("=")).forEach(ee=>{ee[0]===this._hashName&&(Q=ee)}),(Q&&Q[1]||"").split("/")}return B.split("/")},this._onHashChange=()=>{let B=this._getCurrentHash();if(B.length>=3&&!B.some(Q=>isNaN(Q))){let Q=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(B[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+B[2],+B[1]],zoom:+B[0],bearing:Q,pitch:+(B[4]||0)}),!0}return!1},this._updateHashUnthrottled=()=>{let B=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,B)},this._removeHash=()=>{let B=this._getCurrentHash();if(B.length===0)return;let Q=B.join("/"),ee=Q;ee.split("&").length>0&&(ee=ee.split("&")[0]),this._hashName&&(ee=`${this._hashName}=${Q}`);let le=window.location.hash.replace(ee,"");le.startsWith("#&")?le=le.slice(0,1)+le.slice(2):le==="#"&&(le="");let qe=window.location.href.replace(/(#.+)?$/,le);qe=qe.replace("&&","&"),window.history.replaceState(window.history.state,null,qe)},this._updateHash=nh(this._updateHashUnthrottled,300),this._hashName=w&&encodeURIComponent(w)}addTo(w){return this._map=w,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(w){let B=this._map.getCenter(),Q=Math.round(100*this._map.getZoom())/100,ee=Math.ceil((Q*Math.LN2+Math.log(512/360/.5))/Math.LN10),le=Math.pow(10,ee),qe=Math.round(B.lng*le)/le,Xe=Math.round(B.lat*le)/le,ot=this._map.getBearing(),wt=this._map.getPitch(),Yt="";if(Yt+=w?`/${qe}/${Xe}/${Q}`:`${Q}/${Xe}/${qe}`,(ot||wt)&&(Yt+="/"+Math.round(10*ot)/10),wt&&(Yt+=`/${Math.round(wt)}`),this._hashName){let Jt=this._hashName,xr=!1,Ir=window.location.hash.slice(1).split("&").map(ve=>{let be=ve.split("=")[0];return be===Jt?(xr=!0,`${be}=${Yt}`):ve}).filter(ve=>ve);return xr||Ir.push(`${Jt}=${Yt}`),`#${Ir.join("&")}`}return`#${Yt}`}}let zu={linearity:.3,easing:a.b8(0,0,.3,1)},Fc=a.e({deceleration:2500,maxSpeed:1400},zu),wc=a.e({deceleration:20,maxSpeed:1400},zu),bd=a.e({deceleration:1e3,maxSpeed:360},zu),yf=a.e({deceleration:1e3,maxSpeed:90},zu);class Lf{constructor(w){this._map=w,this.clear()}clear(){this._inertiaBuffer=[]}record(w){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:u.now(),settings:w})}_drainInertiaBuffer(){let w=this._inertiaBuffer,B=u.now();for(;w.length>0&&B-w[0].time>160;)w.shift()}_onMoveEnd(w){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;let B={zoom:0,bearing:0,pitch:0,pan:new a.P(0,0),pinchAround:void 0,around:void 0};for(let{settings:le}of this._inertiaBuffer)B.zoom+=le.zoomDelta||0,B.bearing+=le.bearingDelta||0,B.pitch+=le.pitchDelta||0,le.panDelta&&B.pan._add(le.panDelta),le.around&&(B.around=le.around),le.pinchAround&&(B.pinchAround=le.pinchAround);let Q=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,ee={};if(B.pan.mag()){let le=_f(B.pan.mag(),Q,a.e({},Fc,w||{}));ee.offset=B.pan.mult(le.amount/B.pan.mag()),ee.center=this._map.transform.center,Ou(ee,le)}if(B.zoom){let le=_f(B.zoom,Q,wc);ee.zoom=this._map.transform.zoom+le.amount,Ou(ee,le)}if(B.bearing){let le=_f(B.bearing,Q,bd);ee.bearing=this._map.transform.bearing+a.ac(le.amount,-179,179),Ou(ee,le)}if(B.pitch){let le=_f(B.pitch,Q,yf);ee.pitch=this._map.transform.pitch+le.amount,Ou(ee,le)}if(ee.zoom||ee.bearing){let le=B.pinchAround===void 0?B.around:B.pinchAround;ee.around=le?this._map.unproject(le):this._map.getCenter()}return this.clear(),a.e(ee,{noMoveStart:!0})}}function Ou(ue,w){(!ue.duration||ue.durationB.unproject(ot)),Xe=le.reduce((ot,wt,Yt,Jt)=>ot.add(wt.div(Jt.length)),new a.P(0,0));super(w,{points:le,point:Xe,lngLats:qe,lngLat:B.unproject(Xe),originalEvent:Q}),this._defaultPrevented=!1}}class Vh extends a.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(w,B,Q){super(w,{originalEvent:Q}),this._defaultPrevented=!1}}class Pf{constructor(w,B){this._map=w,this._clickTolerance=B.clickTolerance}reset(){delete this._mousedownPos}wheel(w){return this._firePreventable(new Vh(w.type,this._map,w))}mousedown(w,B){return this._mousedownPos=B,this._firePreventable(new jl(w.type,this._map,w))}mouseup(w){this._map.fire(new jl(w.type,this._map,w))}click(w,B){this._mousedownPos&&this._mousedownPos.dist(B)>=this._clickTolerance||this._map.fire(new jl(w.type,this._map,w))}dblclick(w){return this._firePreventable(new jl(w.type,this._map,w))}mouseover(w){this._map.fire(new jl(w.type,this._map,w))}mouseout(w){this._map.fire(new jl(w.type,this._map,w))}touchstart(w){return this._firePreventable(new sf(w.type,this._map,w))}touchmove(w){this._map.fire(new sf(w.type,this._map,w))}touchend(w){this._map.fire(new sf(w.type,this._map,w))}touchcancel(w){this._map.fire(new sf(w.type,this._map,w))}_firePreventable(w){if(this._map.fire(w),w.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Ls{constructor(w){this._map=w}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(w){this._map.fire(new jl(w.type,this._map,w))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new jl("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(w){this._delayContextMenu?this._contextMenuEvent=w:this._ignoreContextMenu||this._map.fire(new jl(w.type,this._map,w)),this._map.listens("contextmenu")&&w.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class vu{constructor(w){this._map=w}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(w){return this.transform.pointLocation(a.P.convert(w),this._map.terrain)}}class Cu{constructor(w,B){this._map=w,this._tr=new vu(w),this._el=w.getCanvasContainer(),this._container=w.getContainer(),this._clickTolerance=B.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(w,B){this.isEnabled()&&w.shiftKey&&w.button===0&&(c.disableDrag(),this._startPos=this._lastPos=B,this._active=!0)}mousemoveWindow(w,B){if(!this._active)return;let Q=B;if(this._lastPos.equals(Q)||!this._box&&Q.dist(this._startPos)le.fitScreenCoordinates(Q,ee,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",w)}keydown(w){this._active&&w.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",w))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(c.remove(this._box),this._box=null),c.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(w,B){return this._map.fire(new a.k(w,{originalEvent:B}))}}function jf(ue,w){if(ue.length!==w.length)throw new Error(`The number of touches and points are not equal - touches ${ue.length}, points ${w.length}`);let B={};for(let Q=0;Qthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=w.timeStamp),Q.length===this.numTouches&&(this.centroid=function(ee){let le=new a.P(0,0);for(let qe of ee)le._add(qe);return le.div(ee.length)}(B),this.touches=jf(Q,B)))}touchmove(w,B,Q){if(this.aborted||!this.centroid)return;let ee=jf(Q,B);for(let le in this.touches){let qe=ee[le];(!qe||qe.dist(this.touches[le])>30)&&(this.aborted=!0)}}touchend(w,B,Q){if((!this.centroid||w.timeStamp-this.startTime>500)&&(this.aborted=!0),Q.length===0){let ee=!this.aborted&&this.centroid;if(this.reset(),ee)return ee}}}class xf{constructor(w){this.singleTap=new Vs(w),this.numTaps=w.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(w,B,Q){this.singleTap.touchstart(w,B,Q)}touchmove(w,B,Q){this.singleTap.touchmove(w,B,Q)}touchend(w,B,Q){let ee=this.singleTap.touchend(w,B,Q);if(ee){let le=w.timeStamp-this.lastTime<500,qe=!this.lastTap||this.lastTap.dist(ee)<30;if(le&&qe||this.reset(),this.count++,this.lastTime=w.timeStamp,this.lastTap=ee,this.count===this.numTaps)return this.reset(),ee}}}class zc{constructor(w){this._tr=new vu(w),this._zoomIn=new xf({numTouches:1,numTaps:2}),this._zoomOut=new xf({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(w,B,Q){this._zoomIn.touchstart(w,B,Q),this._zoomOut.touchstart(w,B,Q)}touchmove(w,B,Q){this._zoomIn.touchmove(w,B,Q),this._zoomOut.touchmove(w,B,Q)}touchend(w,B,Q){let ee=this._zoomIn.touchend(w,B,Q),le=this._zoomOut.touchend(w,B,Q),qe=this._tr;return ee?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:Xe=>Xe.easeTo({duration:300,zoom:qe.zoom+1,around:qe.unproject(ee)},{originalEvent:w})}):le?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:Xe=>Xe.easeTo({duration:300,zoom:qe.zoom-1,around:qe.unproject(le)},{originalEvent:w})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Wu{constructor(w){this._enabled=!!w.enable,this._moveStateManager=w.moveStateManager,this._clickTolerance=w.clickTolerance||1,this._moveFunction=w.move,this._activateOnStart=!!w.activateOnStart,w.assignEvents(this),this.reset()}reset(w){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(w)}_move(...w){let B=this._moveFunction(...w);if(B.bearingDelta||B.pitchDelta||B.around||B.panDelta)return this._active=!0,B}dragStart(w,B){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(w)&&(this._moveStateManager.startMove(w),this._lastPoint=B.length?B[0]:B,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(w,B){if(!this.isEnabled())return;let Q=this._lastPoint;if(!Q)return;if(w.preventDefault(),!this._moveStateManager.isValidMoveEvent(w))return void this.reset(w);let ee=B.length?B[0]:B;return!this._moved&&ee.dist(Q){ue.mousedown=ue.dragStart,ue.mousemoveWindow=ue.dragMove,ue.mouseup=ue.dragEnd,ue.contextmenu=w=>{w.preventDefault()}},Wl=({enable:ue,clickTolerance:w,bearingDegreesPerPixelMoved:B=.8})=>{let Q=new Xu({checkCorrectEvent:ee=>c.mouseButton(ee)===0&&ee.ctrlKey||c.mouseButton(ee)===2});return new Wu({clickTolerance:w,move:(ee,le)=>({bearingDelta:(le.x-ee.x)*B}),moveStateManager:Q,enable:ue,assignEvents:Wf})},ah=({enable:ue,clickTolerance:w,pitchDegreesPerPixelMoved:B=-.5})=>{let Q=new Xu({checkCorrectEvent:ee=>c.mouseButton(ee)===0&&ee.ctrlKey||c.mouseButton(ee)===2});return new Wu({clickTolerance:w,move:(ee,le)=>({pitchDelta:(le.y-ee.y)*B}),moveStateManager:Q,enable:ue,assignEvents:Wf})};class Zu{constructor(w,B){this._clickTolerance=w.clickTolerance||1,this._map=B,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new a.P(0,0)}_shouldBePrevented(w){return w<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(w,B,Q){return this._calculateTransform(w,B,Q)}touchmove(w,B,Q){if(this._active){if(!this._shouldBePrevented(Q.length))return w.preventDefault(),this._calculateTransform(w,B,Q);this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",w)}}touchend(w,B,Q){this._calculateTransform(w,B,Q),this._active&&this._shouldBePrevented(Q.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(w,B,Q){Q.length>0&&(this._active=!0);let ee=jf(Q,B),le=new a.P(0,0),qe=new a.P(0,0),Xe=0;for(let wt in ee){let Yt=ee[wt],Jt=this._touches[wt];Jt&&(le._add(Yt),qe._add(Yt.sub(Jt)),Xe++,ee[wt]=Yt)}if(this._touches=ee,this._shouldBePrevented(Xe)||!qe.mag())return;let ot=qe.div(Xe);return this._sum._add(ot),this._sum.mag()Math.abs(ue.x)}class Bc extends Oc{constructor(w){super(),this._currentTouchCount=0,this._map=w}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(w,B,Q){super.touchstart(w,B,Q),this._currentTouchCount=Q.length}_start(w){this._lastPoints=w,fc(w[0].sub(w[1]))&&(this._valid=!1)}_move(w,B,Q){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;let ee=w[0].sub(this._lastPoints[0]),le=w[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(ee,le,Q.timeStamp),this._valid?(this._lastPoints=w,this._active=!0,{pitchDelta:(ee.y+le.y)/2*-.5}):void 0}gestureBeginsVertically(w,B,Q){if(this._valid!==void 0)return this._valid;let ee=w.mag()>=2,le=B.mag()>=2;if(!ee&&!le)return;if(!ee||!le)return this._firstMove===void 0&&(this._firstMove=Q),Q-this._firstMove<100&&void 0;let qe=w.y>0==B.y>0;return fc(w)&&fc(B)&&qe}}let Tt={panStep:100,bearingStep:15,pitchStep:10};class Xt{constructor(w){this._tr=new vu(w);let B=Tt;this._panStep=B.panStep,this._bearingStep=B.bearingStep,this._pitchStep=B.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(w){if(w.altKey||w.ctrlKey||w.metaKey)return;let B=0,Q=0,ee=0,le=0,qe=0;switch(w.keyCode){case 61:case 107:case 171:case 187:B=1;break;case 189:case 109:case 173:B=-1;break;case 37:w.shiftKey?Q=-1:(w.preventDefault(),le=-1);break;case 39:w.shiftKey?Q=1:(w.preventDefault(),le=1);break;case 38:w.shiftKey?ee=1:(w.preventDefault(),qe=-1);break;case 40:w.shiftKey?ee=-1:(w.preventDefault(),qe=1);break;default:return}return this._rotationDisabled&&(Q=0,ee=0),{cameraAnimation:Xe=>{let ot=this._tr;Xe.easeTo({duration:300,easeId:"keyboardHandler",easing:Lr,zoom:B?Math.round(ot.zoom)+B*(w.shiftKey?2:1):ot.zoom,bearing:ot.bearing+Q*this._bearingStep,pitch:ot.pitch+ee*this._pitchStep,offset:[-le*this._panStep,-qe*this._panStep],center:ot.center},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function Lr(ue){return ue*(2-ue)}let Ar=4.000244140625;class Jr{constructor(w,B){this._onTimeout=Q=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(Q)},this._map=w,this._tr=new vu(w),this._triggerRenderFrame=B,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(w){this._defaultZoomRate=w}setWheelZoomRate(w){this._wheelZoomRate=w}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(w){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!w&&w.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(w){return!!this._map.cooperativeGestures.isEnabled()&&!(w.ctrlKey||this._map.cooperativeGestures.isBypassed(w))}wheel(w){if(!this.isEnabled())return;if(this._shouldBePrevented(w))return void this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",w);let B=w.deltaMode===WheelEvent.DOM_DELTA_LINE?40*w.deltaY:w.deltaY,Q=u.now(),ee=Q-(this._lastWheelEventTime||0);this._lastWheelEventTime=Q,B!==0&&B%Ar==0?this._type="wheel":B!==0&&Math.abs(B)<4?this._type="trackpad":ee>400?(this._type=null,this._lastValue=B,this._timeout=setTimeout(this._onTimeout,40,w)):this._type||(this._type=Math.abs(ee*B)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,B+=this._lastValue)),w.shiftKey&&B&&(B/=4),this._type&&(this._lastWheelEvent=w,this._delta-=B,this._active||this._start(w)),w.preventDefault()}_start(w){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let B=c.mousePos(this._map.getCanvas(),w),Q=this._tr;this._around=B.y>Q.transform.height/2-Q.transform.getHorizon()?a.N.convert(this._aroundCenter?Q.center:Q.unproject(B)):a.N.convert(Q.center),this._aroundPoint=Q.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;let w=this._tr.transform;if(this._delta!==0){let ot=this._type==="wheel"&&Math.abs(this._delta)>Ar?this._wheelZoomRate:this._defaultZoomRate,wt=2/(1+Math.exp(-Math.abs(this._delta*ot)));this._delta<0&&wt!==0&&(wt=1/wt);let Yt=typeof this._targetZoom=="number"?w.zoomScale(this._targetZoom):w.scale;this._targetZoom=Math.min(w.maxZoom,Math.max(w.minZoom,w.scaleZoom(Yt*wt))),this._type==="wheel"&&(this._startZoom=w.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let B=typeof this._targetZoom=="number"?this._targetZoom:w.zoom,Q=this._startZoom,ee=this._easing,le,qe=!1,Xe=u.now()-this._lastWheelEventTime;if(this._type==="wheel"&&Q&&ee&&Xe){let ot=Math.min(Xe/200,1),wt=ee(ot);le=a.y.number(Q,B,wt),ot<1?this._frameId||(this._frameId=!0):qe=!0}else le=B,qe=!0;return this._active=!0,qe&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!qe,zoomDelta:le-w.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(w){let B=a.b9;if(this._prevEase){let Q=this._prevEase,ee=(u.now()-Q.start)/Q.duration,le=Q.easing(ee+.01)-Q.easing(ee),qe=.27/Math.sqrt(le*le+1e-4)*.01,Xe=Math.sqrt(.0729-qe*qe);B=a.b8(qe,Xe,.25,1)}return this._prevEase={start:u.now(),duration:w,easing:B},B}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class Ei{constructor(w,B){this._clickZoom=w,this._tapZoom=B}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Wi{constructor(w){this._tr=new vu(w),this.reset()}reset(){this._active=!1}dblclick(w,B){return w.preventDefault(),{cameraAnimation:Q=>{Q.easeTo({duration:300,zoom:this._tr.zoom+(w.shiftKey?-1:1),around:this._tr.unproject(B)},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class hn{constructor(){this._tap=new xf({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(w,B,Q){if(!this._swipePoint)if(this._tapTime){let ee=B[0],le=w.timeStamp-this._tapTime<500,qe=this._tapPoint.dist(ee)<30;le&&qe?Q.length>0&&(this._swipePoint=ee,this._swipeTouch=Q[0].identifier):this.reset()}else this._tap.touchstart(w,B,Q)}touchmove(w,B,Q){if(this._tapTime){if(this._swipePoint){if(Q[0].identifier!==this._swipeTouch)return;let ee=B[0],le=ee.y-this._swipePoint.y;return this._swipePoint=ee,w.preventDefault(),this._active=!0,{zoomDelta:le/128}}}else this._tap.touchmove(w,B,Q)}touchend(w,B,Q){if(this._tapTime)this._swipePoint&&Q.length===0&&this.reset();else{let ee=this._tap.touchend(w,B,Q);ee&&(this._tapTime=w.timeStamp,this._tapPoint=ee)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Tn{constructor(w,B,Q){this._el=w,this._mousePan=B,this._touchPan=Q}enable(w){this._inertiaOptions=w||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Bn{constructor(w,B,Q){this._pitchWithRotate=w.pitchWithRotate,this._mouseRotate=B,this._mousePitch=Q}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Zi{constructor(w,B,Q,ee){this._el=w,this._touchZoom=B,this._touchRotate=Q,this._tapDragZoom=ee,this._rotationDisabled=!1,this._enabled=!0}enable(w){this._touchZoom.enable(w),this._rotationDisabled||this._touchRotate.enable(w),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}class $i{constructor(w,B){this._bypassKey=navigator.userAgent.indexOf("Mac")!==-1?"metaKey":"ctrlKey",this._map=w,this._options=B,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let w=this._map.getCanvasContainer();w.classList.add("maplibregl-cooperative-gestures"),this._container=c.create("div","maplibregl-cooperative-gesture-screen",w);let B=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(B=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let Q=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),ee=document.createElement("div");ee.className="maplibregl-desktop-message",ee.textContent=B,this._container.appendChild(ee);let le=document.createElement("div");le.className="maplibregl-mobile-message",le.textContent=Q,this._container.appendChild(le),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(c.remove(this._container),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(w){return w[this._bypassKey]}notifyGestureBlocked(w,B){this._enabled&&(this._map.fire(new a.k("cooperativegestureprevented",{gestureType:w,originalEvent:B})),this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}}let an=ue=>ue.zoom||ue.drag||ue.pitch||ue.rotate;class Di extends a.k{}function $n(ue){return ue.panDelta&&ue.panDelta.mag()||ue.zoomDelta||ue.bearingDelta||ue.pitchDelta}class ka{constructor(w,B){this.handleWindowEvent=ee=>{this.handleEvent(ee,`${ee.type}Window`)},this.handleEvent=(ee,le)=>{if(ee.type==="blur")return void this.stop(!0);this._updatingCamera=!0;let qe=ee.type==="renderFrame"?void 0:ee,Xe={needsRenderFrame:!1},ot={},wt={},Yt=ee.touches,Jt=Yt?this._getMapTouches(Yt):void 0,xr=Jt?c.touchPos(this._map.getCanvas(),Jt):c.mousePos(this._map.getCanvas(),ee);for(let{handlerName:be,handler:Re,allowed:Be}of this._handlers){if(!Re.isEnabled())continue;let tt;this._blockedByActive(wt,Be,be)?Re.reset():Re[le||ee.type]&&(tt=Re[le||ee.type](ee,xr,Jt),this.mergeHandlerResult(Xe,ot,tt,be,qe),tt&&tt.needsRenderFrame&&this._triggerRenderFrame()),(tt||Re.isActive())&&(wt[be]=Re)}let Ir={};for(let be in this._previousActiveHandlers)wt[be]||(Ir[be]=qe);this._previousActiveHandlers=wt,(Object.keys(Ir).length||$n(Xe))&&(this._changes.push([Xe,ot,Ir]),this._triggerRenderFrame()),(Object.keys(wt).length||$n(Xe))&&this._map._stop(!0),this._updatingCamera=!1;let{cameraAnimation:ve}=Xe;ve&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],ve(this._map))},this._map=w,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Lf(w),this._bearingSnap=B.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(B);let Q=this._el;this._listeners=[[Q,"touchstart",{passive:!0}],[Q,"touchmove",{passive:!1}],[Q,"touchend",void 0],[Q,"touchcancel",void 0],[Q,"mousedown",void 0],[Q,"mousemove",void 0],[Q,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[Q,"mouseover",void 0],[Q,"mouseout",void 0],[Q,"dblclick",void 0],[Q,"click",void 0],[Q,"keydown",{capture:!1}],[Q,"keyup",void 0],[Q,"wheel",{passive:!1}],[Q,"contextmenu",void 0],[window,"blur",void 0]];for(let[ee,le,qe]of this._listeners)c.addEventListener(ee,le,ee===document?this.handleWindowEvent:this.handleEvent,qe)}destroy(){for(let[w,B,Q]of this._listeners)c.removeEventListener(w,B,w===document?this.handleWindowEvent:this.handleEvent,Q)}_addDefaultHandlers(w){let B=this._map,Q=B.getCanvasContainer();this._add("mapEvent",new Pf(B,w));let ee=B.boxZoom=new Cu(B,w);this._add("boxZoom",ee),w.interactive&&w.boxZoom&&ee.enable();let le=B.cooperativeGestures=new $i(B,w.cooperativeGestures);this._add("cooperativeGestures",le),w.cooperativeGestures&&le.enable();let qe=new zc(B),Xe=new Wi(B);B.doubleClickZoom=new Ei(Xe,qe),this._add("tapZoom",qe),this._add("clickZoom",Xe),w.interactive&&w.doubleClickZoom&&B.doubleClickZoom.enable();let ot=new hn;this._add("tapDragZoom",ot);let wt=B.touchPitch=new Bc(B);this._add("touchPitch",wt),w.interactive&&w.touchPitch&&B.touchPitch.enable(w.touchPitch);let Yt=Wl(w),Jt=ah(w);B.dragRotate=new Bn(w,Yt,Jt),this._add("mouseRotate",Yt,["mousePitch"]),this._add("mousePitch",Jt,["mouseRotate"]),w.interactive&&w.dragRotate&&B.dragRotate.enable();let xr=(({enable:tt,clickTolerance:We})=>{let it=new Xu({checkCorrectEvent:Ft=>c.mouseButton(Ft)===0&&!Ft.ctrlKey});return new Wu({clickTolerance:We,move:(Ft,jt)=>({around:jt,panDelta:jt.sub(Ft)}),activateOnStart:!0,moveStateManager:it,enable:tt,assignEvents:Wf})})(w),Ir=new Zu(w,B);B.dragPan=new Tn(Q,xr,Ir),this._add("mousePan",xr),this._add("touchPan",Ir,["touchZoom","touchRotate"]),w.interactive&&w.dragPan&&B.dragPan.enable(w.dragPan);let ve=new uf,be=new pu;B.touchZoomRotate=new Zi(Q,be,ve,ot),this._add("touchRotate",ve,["touchPan","touchZoom"]),this._add("touchZoom",be,["touchPan","touchRotate"]),w.interactive&&w.touchZoomRotate&&B.touchZoomRotate.enable(w.touchZoomRotate);let Re=B.scrollZoom=new Jr(B,()=>this._triggerRenderFrame());this._add("scrollZoom",Re,["mousePan"]),w.interactive&&w.scrollZoom&&B.scrollZoom.enable(w.scrollZoom);let Be=B.keyboard=new Xt(B);this._add("keyboard",Be),w.interactive&&w.keyboard&&B.keyboard.enable(),this._add("blockableMapEvent",new Ls(B))}_add(w,B,Q){this._handlers.push({handlerName:w,handler:B,allowed:Q}),this._handlersById[w]=B}stop(w){if(!this._updatingCamera){for(let{handler:B}of this._handlers)B.reset();this._inertia.clear(),this._fireEvents({},{},w),this._changes=[]}}isActive(){for(let{handler:w}of this._handlers)if(w.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!an(this._eventsInProgress)||this.isZooming()}_blockedByActive(w,B,Q){for(let ee in w)if(ee!==Q&&(!B||B.indexOf(ee)<0))return!0;return!1}_getMapTouches(w){let B=[];for(let Q of w)this._el.contains(Q.target)&&B.push(Q);return B}mergeHandlerResult(w,B,Q,ee,le){if(!Q)return;a.e(w,Q);let qe={handlerName:ee,originalEvent:Q.originalEvent||le};Q.zoomDelta!==void 0&&(B.zoom=qe),Q.panDelta!==void 0&&(B.drag=qe),Q.pitchDelta!==void 0&&(B.pitch=qe),Q.bearingDelta!==void 0&&(B.rotate=qe)}_applyChanges(){let w={},B={},Q={};for(let[ee,le,qe]of this._changes)ee.panDelta&&(w.panDelta=(w.panDelta||new a.P(0,0))._add(ee.panDelta)),ee.zoomDelta&&(w.zoomDelta=(w.zoomDelta||0)+ee.zoomDelta),ee.bearingDelta&&(w.bearingDelta=(w.bearingDelta||0)+ee.bearingDelta),ee.pitchDelta&&(w.pitchDelta=(w.pitchDelta||0)+ee.pitchDelta),ee.around!==void 0&&(w.around=ee.around),ee.pinchAround!==void 0&&(w.pinchAround=ee.pinchAround),ee.noInertia&&(w.noInertia=ee.noInertia),a.e(B,le),a.e(Q,qe);this._updateMapTransform(w,B,Q),this._changes=[]}_updateMapTransform(w,B,Q){let ee=this._map,le=ee._getTransformForUpdate(),qe=ee.terrain;if(!($n(w)||qe&&this._terrainMovement))return this._fireEvents(B,Q,!0);let{panDelta:Xe,zoomDelta:ot,bearingDelta:wt,pitchDelta:Yt,around:Jt,pinchAround:xr}=w;xr!==void 0&&(Jt=xr),ee._stop(!0),Jt=Jt||ee.transform.centerPoint;let Ir=le.pointLocation(Xe?Jt.sub(Xe):Jt);wt&&(le.bearing+=wt),Yt&&(le.pitch+=Yt),ot&&(le.zoom+=ot),qe?this._terrainMovement||!B.drag&&!B.zoom?B.drag&&this._terrainMovement?le.center=le.pointLocation(le.centerPoint.sub(Xe)):le.setLocationAtPoint(Ir,Jt):(this._terrainMovement=!0,this._map._elevationFreeze=!0,le.setLocationAtPoint(Ir,Jt)):le.setLocationAtPoint(Ir,Jt),ee._applyUpdatedTransform(le),this._map._update(),w.noInertia||this._inertia.record(w),this._fireEvents(B,Q,!0)}_fireEvents(w,B,Q){let ee=an(this._eventsInProgress),le=an(w),qe={};for(let Jt in w){let{originalEvent:xr}=w[Jt];this._eventsInProgress[Jt]||(qe[`${Jt}start`]=xr),this._eventsInProgress[Jt]=w[Jt]}!ee&&le&&this._fireEvent("movestart",le.originalEvent);for(let Jt in qe)this._fireEvent(Jt,qe[Jt]);le&&this._fireEvent("move",le.originalEvent);for(let Jt in w){let{originalEvent:xr}=w[Jt];this._fireEvent(Jt,xr)}let Xe={},ot;for(let Jt in this._eventsInProgress){let{handlerName:xr,originalEvent:Ir}=this._eventsInProgress[Jt];this._handlersById[xr].isActive()||(delete this._eventsInProgress[Jt],ot=B[xr]||Ir,Xe[`${Jt}end`]=ot)}for(let Jt in Xe)this._fireEvent(Jt,Xe[Jt]);let wt=an(this._eventsInProgress),Yt=(ee||le)&&!wt;if(Yt&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;let Jt=this._map._getTransformForUpdate();Jt.recalculateZoom(this._map.terrain),this._map._applyUpdatedTransform(Jt)}if(Q&&Yt){this._updatingCamera=!0;let Jt=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),xr=Ir=>Ir!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new Di("renderFrame",{timeStamp:w})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}class Ra extends a.E{constructor(w,B){super(),this._renderFrameCallback=()=>{let Q=Math.min((u.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(Q)),Q<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=w,this._bearingSnap=B.bearingSnap,this.on("moveend",()=>{delete this._requestedCameraState})}getCenter(){return new a.N(this.transform.center.lng,this.transform.center.lat)}setCenter(w,B){return this.jumpTo({center:w},B)}panBy(w,B,Q){return w=a.P.convert(w).mult(-1),this.panTo(this.transform.center,a.e({offset:w},B),Q)}panTo(w,B,Q){return this.easeTo(a.e({center:w},B),Q)}getZoom(){return this.transform.zoom}setZoom(w,B){return this.jumpTo({zoom:w},B),this}zoomTo(w,B,Q){return this.easeTo(a.e({zoom:w},B),Q)}zoomIn(w,B){return this.zoomTo(this.getZoom()+1,w,B),this}zoomOut(w,B){return this.zoomTo(this.getZoom()-1,w,B),this}getBearing(){return this.transform.bearing}setBearing(w,B){return this.jumpTo({bearing:w},B),this}getPadding(){return this.transform.padding}setPadding(w,B){return this.jumpTo({padding:w},B),this}rotateTo(w,B,Q){return this.easeTo(a.e({bearing:w},B),Q)}resetNorth(w,B){return this.rotateTo(0,a.e({duration:1e3},w),B),this}resetNorthPitch(w,B){return this.easeTo(a.e({bearing:0,pitch:0,duration:1e3},w),B),this}snapToNorth(w,B){return Math.abs(this.getBearing()){if(this._zooming&&(ee.zoom=a.y.number(le,Re,tr)),this._rotating&&(ee.bearing=a.y.number(qe,wt,tr)),this._pitching&&(ee.pitch=a.y.number(Xe,Yt,tr)),this._padding&&(ee.interpolatePadding(ot,Jt,tr),Ir=ee.centerPoint.add(xr)),this.terrain&&!w.freezeElevation&&this._updateElevation(tr),it)ee.setLocationAtPoint(it,Ft);else{let dr=ee.zoomScale(ee.zoom-le),Sr=Re>le?Math.min(2,We):Math.max(.5,We),Or=Math.pow(Sr,1-tr),jr=ee.unproject(Be.add(tt.mult(tr*Or)).mult(dr));ee.setLocationAtPoint(ee.renderWorldCopies?jr.wrap():jr,Ir)}this._applyUpdatedTransform(ee),this._fireMoveEvents(B)},tr=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(B,tr)},w),this}_prepareEase(w,B,Q={}){this._moving=!0,B||Q.moving||this.fire(new a.k("movestart",w)),this._zooming&&!Q.zooming&&this.fire(new a.k("zoomstart",w)),this._rotating&&!Q.rotating&&this.fire(new a.k("rotatestart",w)),this._pitching&&!Q.pitching&&this.fire(new a.k("pitchstart",w))}_prepareElevation(w){this._elevationCenter=w,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(w,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(w){this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);let B=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(w<1&&B!==this._elevationTarget){let Q=this._elevationTarget-this._elevationStart;this._elevationStart+=w*(Q-(B-(Q*w+this._elevationStart))/(1-w)),this._elevationTarget=B}this.transform.elevation=a.y.number(this._elevationStart,this._elevationTarget,w)}_finalizeElevation(){this._elevationFreeze=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate||this.terrain?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_elevateCameraIfInsideTerrain(w){let B=w.getCameraPosition(),Q=this.terrain.getElevationForLngLatZoom(B.lngLat,w.zoom);if(B.altitudethis._elevateCameraIfInsideTerrain(ee)),this.transformCameraUpdate&&B.push(ee=>this.transformCameraUpdate(ee)),!B.length)return;let Q=w.clone();for(let ee of B){let le=Q.clone(),{center:qe,zoom:Xe,pitch:ot,bearing:wt,elevation:Yt}=ee(le);qe&&(le.center=qe),Xe!==void 0&&(le.zoom=Xe),ot!==void 0&&(le.pitch=ot),wt!==void 0&&(le.bearing=wt),Yt!==void 0&&(le.elevation=Yt),Q.apply(le)}this.transform.apply(Q)}_fireMoveEvents(w){this.fire(new a.k("move",w)),this._zooming&&this.fire(new a.k("zoom",w)),this._rotating&&this.fire(new a.k("rotate",w)),this._pitching&&this.fire(new a.k("pitch",w))}_afterEase(w,B){if(this._easeId&&B&&this._easeId===B)return;delete this._easeId;let Q=this._zooming,ee=this._rotating,le=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Q&&this.fire(new a.k("zoomend",w)),ee&&this.fire(new a.k("rotateend",w)),le&&this.fire(new a.k("pitchend",w)),this.fire(new a.k("moveend",w))}flyTo(w,B){var Q;if(!w.essential&&u.prefersReducedMotion){let Pn=a.M(w,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Pn,B)}this.stop(),w=a.e({offset:[0,0],speed:1.2,curve:1.42,easing:a.b9},w);let ee=this._getTransformForUpdate(),le=ee.zoom,qe=ee.bearing,Xe=ee.pitch,ot=ee.padding,wt="bearing"in w?this._normalizeBearing(w.bearing,qe):qe,Yt="pitch"in w?+w.pitch:Xe,Jt="padding"in w?w.padding:ee.padding,xr=a.P.convert(w.offset),Ir=ee.centerPoint.add(xr),ve=ee.pointLocation(Ir),{center:be,zoom:Re}=ee.getConstrained(a.N.convert(w.center||ve),(Q=w.zoom)!==null&&Q!==void 0?Q:le);this._normalizeCenter(be,ee);let Be=ee.zoomScale(Re-le),tt=ee.project(ve),We=ee.project(be).sub(tt),it=w.curve,Ft=Math.max(ee.width,ee.height),jt=Ft/Be,tr=We.mag();if("minZoom"in w){let Pn=a.ac(Math.min(w.minZoom,le,Re),ee.minZoom,ee.maxZoom),Kn=Ft/ee.zoomScale(Pn-le);it=Math.sqrt(Kn/tr*2)}let dr=it*it;function Sr(Pn){let Kn=(jt*jt-Ft*Ft+(Pn?-1:1)*dr*dr*tr*tr)/(2*(Pn?jt:Ft)*dr*tr);return Math.log(Math.sqrt(Kn*Kn+1)-Kn)}function Or(Pn){return(Math.exp(Pn)-Math.exp(-Pn))/2}function jr(Pn){return(Math.exp(Pn)+Math.exp(-Pn))/2}let ii=Sr(!1),Li=function(Pn){return jr(ii)/jr(ii+it*Pn)},un=function(Pn){return Ft*((jr(ii)*(Or(Kn=ii+it*Pn)/jr(Kn))-Or(ii))/dr)/tr;var Kn},sn=(Sr(!0)-ii)/it;if(Math.abs(tr)<1e-6||!isFinite(sn)){if(Math.abs(Ft-jt)<1e-6)return this.easeTo(w,B);let Pn=jt0,Li=Kn=>Math.exp(Pn*it*Kn)}return w.duration="duration"in w?+w.duration:1e3*sn/("screenSpeed"in w?+w.screenSpeed/it:+w.speed),w.maxDuration&&w.duration>w.maxDuration&&(w.duration=0),this._zooming=!0,this._rotating=qe!==wt,this._pitching=Yt!==Xe,this._padding=!ee.isPaddingEqual(Jt),this._prepareEase(B,!1),this.terrain&&this._prepareElevation(be),this._ease(Pn=>{let Kn=Pn*sn,Aa=1/Li(Kn);ee.zoom=Pn===1?Re:le+ee.scaleZoom(Aa),this._rotating&&(ee.bearing=a.y.number(qe,wt,Pn)),this._pitching&&(ee.pitch=a.y.number(Xe,Yt,Pn)),this._padding&&(ee.interpolatePadding(ot,Jt,Pn),Ir=ee.centerPoint.add(xr)),this.terrain&&!w.freezeElevation&&this._updateElevation(Pn);let fa=Pn===1?be:ee.unproject(tt.add(We.mult(un(Kn))).mult(Aa));ee.setLocationAtPoint(ee.renderWorldCopies?fa.wrap():fa,Ir),this._applyUpdatedTransform(ee),this._fireMoveEvents(B)},()=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(B)},w),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(w,B){var Q;if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let ee=this._onEaseEnd;delete this._onEaseEnd,ee.call(this,B)}return w||(Q=this.handlers)===null||Q===void 0||Q.stop(!1),this}_ease(w,B,Q){Q.animate===!1||Q.duration===0?(w(1),B()):(this._easeStart=u.now(),this._easeOptions=Q,this._onEaseFrame=w,this._onEaseEnd=B,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(w,B){w=a.b3(w,-180,180);let Q=Math.abs(w-B);return Math.abs(w-360-B)180?-360:Q<-180?360:0}queryTerrainElevation(w){return this.terrain?this.terrain.getElevationForLngLatZoom(a.N.convert(w),this.transform.tileZoom)-this.transform.elevation:null}}let La={compact:!0,customAttribution:'MapLibre'};class Na{constructor(w=La){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=B=>{!B||B.sourceDataType!=="metadata"&&B.sourceDataType!=="visibility"&&B.dataType!=="style"&&B.type!=="terrain"||this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=w}getDefaultPosition(){return"bottom-right"}onAdd(w){return this._map=w,this._compact=this.options.compact,this._container=c.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=c.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=c.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){c.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(w,B){let Q=this._map._getUIString(`AttributionControl.${B}`);w.title=Q,w.setAttribute("aria-label",Q)}_updateAttributions(){if(!this._map.style)return;let w=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?w=w.concat(this.options.customAttribution.map(ee=>typeof ee!="string"?"":ee)):typeof this.options.customAttribution=="string"&&w.push(this.options.customAttribution)),this._map.style.stylesheet){let ee=this._map.style.stylesheet;this.styleOwner=ee.owner,this.styleId=ee.id}let B=this._map.style.sourceCaches;for(let ee in B){let le=B[ee];if(le.used||le.usedForTerrain){let qe=le.getSource();qe.attribution&&w.indexOf(qe.attribution)<0&&w.push(qe.attribution)}}w=w.filter(ee=>String(ee).trim()),w.sort((ee,le)=>ee.length-le.length),w=w.filter((ee,le)=>{for(let qe=le+1;qe=0)return!1;return!0});let Q=w.join(" | ");Q!==this._attribHTML&&(this._attribHTML=Q,w.length?(this._innerContainer.innerHTML=Q,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class Yn{constructor(w={}){this._updateCompact=()=>{let B=this._container.children;if(B.length){let Q=B[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&Q.classList.add("maplibregl-compact"):Q.classList.remove("maplibregl-compact")}},this.options=w}getDefaultPosition(){return"bottom-left"}onAdd(w){this._map=w,this._compact=this.options&&this.options.compact,this._container=c.create("div","maplibregl-ctrl");let B=c.create("a","maplibregl-ctrl-logo");return B.target="_blank",B.rel="noopener nofollow",B.href="https://maplibre.org/",B.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),B.setAttribute("rel","noopener nofollow"),this._container.appendChild(B),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){c.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class zn{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(w){let B=++this._id;return this._queue.push({callback:w,id:B,cancelled:!1}),B}remove(w){let B=this._currentlyRunning,Q=B?this._queue.concat(B):this._queue;for(let ee of Q)if(ee.id===w)return void(ee.cancelled=!0)}run(w=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");let B=this._currentlyRunning=this._queue;this._queue=[];for(let Q of B)if(!Q.cancelled&&(Q.callback(w),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}var Ka=a.Y([{name:"a_pos3d",type:"Int16",components:3}]);class bo extends a.E{constructor(w){super(),this.sourceCache=w,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,w.usedForTerrain=!0,w.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(w,B){this.sourceCache.update(w,B),this._renderableTilesKeys=[];let Q={};for(let ee of w.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:B}))Q[ee.key]=!0,this._renderableTilesKeys.push(ee.key),this._tiles[ee.key]||(ee.posMatrix=new Float64Array(16),a.aP(ee.posMatrix,0,a.X,0,a.X,0,1),this._tiles[ee.key]=new Vt(ee,this.tileSize));for(let ee in this._tiles)Q[ee]||delete this._tiles[ee]}freeRtt(w){for(let B in this._tiles){let Q=this._tiles[B];(!w||Q.tileID.equals(w)||Q.tileID.isChildOf(w)||w.isChildOf(Q.tileID))&&(Q.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map(w=>this.getTileByID(w))}getTileByID(w){return this._tiles[w]}getTerrainCoords(w){let B={};for(let Q of this._renderableTilesKeys){let ee=this._tiles[Q].tileID;if(ee.canonical.equals(w.canonical)){let le=w.clone();le.posMatrix=new Float64Array(16),a.aP(le.posMatrix,0,a.X,0,a.X,0,1),B[Q]=le}else if(ee.canonical.isChildOf(w.canonical)){let le=w.clone();le.posMatrix=new Float64Array(16);let qe=ee.canonical.z-w.canonical.z,Xe=ee.canonical.x-(ee.canonical.x>>qe<>qe<>qe;a.aP(le.posMatrix,0,wt,0,wt,0,1),a.J(le.posMatrix,le.posMatrix,[-Xe*wt,-ot*wt,0]),B[Q]=le}else if(w.canonical.isChildOf(ee.canonical)){let le=w.clone();le.posMatrix=new Float64Array(16);let qe=w.canonical.z-ee.canonical.z,Xe=w.canonical.x-(w.canonical.x>>qe<>qe<>qe;a.aP(le.posMatrix,0,a.X,0,a.X,0,1),a.J(le.posMatrix,le.posMatrix,[Xe*wt,ot*wt,0]),a.K(le.posMatrix,le.posMatrix,[1/2**qe,1/2**qe,0]),B[Q]=le}}return B}getSourceTile(w,B){let Q=this.sourceCache._source,ee=w.overscaledZ-this.deltaZoom;if(ee>Q.maxzoom&&(ee=Q.maxzoom),ee=Q.minzoom&&(!le||!le.dem);)le=this.sourceCache.getTileByID(w.scaledTo(ee--).key);return le}tilesAfterTime(w=Date.now()){return Object.values(this._tiles).filter(B=>B.timeAdded>=w)}}class Xo{constructor(w,B,Q){this.painter=w,this.sourceCache=new bo(B),this.options=Q,this.exaggeration=typeof Q.exaggeration=="number"?Q.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(w,B,Q,ee=a.X){var le;if(!(B>=0&&B=0&&Qw.canonical.z&&(w.canonical.z>=ee?le=w.canonical.z-ee:a.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));let qe=w.canonical.x-(w.canonical.x>>le<>le<>8<<4|le>>8,B[qe+3]=0;let Q=new a.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(B.buffer)),ee=new g(w,Q,w.gl.RGBA,{premultiply:!1});return ee.bind(w.gl.NEAREST,w.gl.CLAMP_TO_EDGE),this._coordsTexture=ee,ee}pointCoordinate(w){this.painter.maybeDrawDepthAndCoords(!0);let B=new Uint8Array(4),Q=this.painter.context,ee=Q.gl,le=Math.round(w.x*this.painter.pixelRatio/devicePixelRatio),qe=Math.round(w.y*this.painter.pixelRatio/devicePixelRatio),Xe=Math.round(this.painter.height/devicePixelRatio);Q.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),ee.readPixels(le,Xe-qe-1,1,1,ee.RGBA,ee.UNSIGNED_BYTE,B),Q.bindFramebuffer.set(null);let ot=B[0]+(B[2]>>4<<8),wt=B[1]+((15&B[2])<<8),Yt=this.coordsIndex[255-B[3]],Jt=Yt&&this.sourceCache.getTileByID(Yt);if(!Jt)return null;let xr=this._coordsTextureSize,Ir=(1<w.id!==B),this._recentlyUsed.push(w.id)}stampObject(w){w.stamp=++this._stamp}getOrCreateFreeObject(){for(let B of this._recentlyUsed)if(!this._objects[B].inUse)return this._objects[B];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");let w=this._createObject(this._objects.length);return this._objects.push(w),w}freeObject(w){w.inUse=!1}freeAllObjects(){for(let w of this._objects)this.freeObject(w)}isFull(){return!(this._objects.length!w.inUse)===!1}}let os={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class Ts{constructor(w,B){this.painter=w,this.terrain=B,this.pool=new Ms(w.context,30,B.sourceCache.tileSize*B.qualityFactor)}destruct(){this.pool.destruct()}getTexture(w){return this.pool.getObjectForId(w.rtt[this._stacks.length-1].id).texture}prepareForRender(w,B){this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=w._order.filter(Q=>!w._layers[Q].isHidden(B)),this._coordsDescendingInv={};for(let Q in w.sourceCaches){this._coordsDescendingInv[Q]={};let ee=w.sourceCaches[Q].getVisibleCoordinates();for(let le of ee){let qe=this.terrain.sourceCache.getTerrainCoords(le);for(let Xe in qe)this._coordsDescendingInv[Q][Xe]||(this._coordsDescendingInv[Q][Xe]=[]),this._coordsDescendingInv[Q][Xe].push(qe[Xe])}}this._coordsDescendingInvStr={};for(let Q of w._order){let ee=w._layers[Q],le=ee.source;if(os[ee.type]&&!this._coordsDescendingInvStr[le]){this._coordsDescendingInvStr[le]={};for(let qe in this._coordsDescendingInv[le])this._coordsDescendingInvStr[le][qe]=this._coordsDescendingInv[le][qe].map(Xe=>Xe.key).sort().join()}}for(let Q of this._renderableTiles)for(let ee in this._coordsDescendingInvStr){let le=this._coordsDescendingInvStr[ee][Q.tileID.key];le&&le!==Q.rttCoords[ee]&&(Q.rtt=[])}}renderLayer(w){if(w.isHidden(this.painter.transform.zoom))return!1;let B=w.type,Q=this.painter,ee=this._renderableLayerIds[this._renderableLayerIds.length-1]===w.id;if(os[B]&&(this._prevType&&os[this._prevType]||this._stacks.push([]),this._prevType=B,this._stacks[this._stacks.length-1].push(w.id),!ee))return!0;if(os[this._prevType]||os[B]&&ee){this._prevType=B;let le=this._stacks.length-1,qe=this._stacks[le]||[];for(let Xe of this._renderableTiles){if(this.pool.isFull()&&(Ws(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(Xe),Xe.rtt[le]){let wt=this.pool.getObjectForId(Xe.rtt[le].id);if(wt.stamp===Xe.rtt[le].stamp){this.pool.useObject(wt);continue}}let ot=this.pool.getOrCreateFreeObject();this.pool.useObject(ot),this.pool.stampObject(ot),Xe.rtt[le]={id:ot.id,stamp:ot.stamp},Q.context.bindFramebuffer.set(ot.fbo.framebuffer),Q.context.clear({color:a.aM.transparent,stencil:0}),Q.currentStencilSource=void 0;for(let wt=0;wt{ue.touchstart=ue.dragStart,ue.touchmoveWindow=ue.dragMove,ue.touchend=ue.dragEnd},va={showCompass:!0,showZoom:!0,visualizePitch:!1};class no{constructor(w,B,Q=!1){this.mousedown=qe=>{this.startMouse(a.e({},qe,{ctrlKey:!0,preventDefault:()=>qe.preventDefault()}),c.mousePos(this.element,qe)),c.addEventListener(window,"mousemove",this.mousemove),c.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=qe=>{this.moveMouse(qe,c.mousePos(this.element,qe))},this.mouseup=qe=>{this.mouseRotate.dragEnd(qe),this.mousePitch&&this.mousePitch.dragEnd(qe),this.offTemp()},this.touchstart=qe=>{qe.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=c.touchPos(this.element,qe.targetTouches)[0],this.startTouch(qe,this._startPos),c.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.addEventListener(window,"touchend",this.touchend))},this.touchmove=qe=>{qe.targetTouches.length!==1?this.reset():(this._lastPos=c.touchPos(this.element,qe.targetTouches)[0],this.moveTouch(qe,this._lastPos))},this.touchend=qe=>{qe.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),this.touchRotate.reset(),this.touchPitch&&this.touchPitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10;let ee=w.dragRotate._mouseRotate.getClickTolerance(),le=w.dragRotate._mousePitch.getClickTolerance();this.element=B,this.mouseRotate=Wl({clickTolerance:ee,enable:!0}),this.touchRotate=(({enable:qe,clickTolerance:Xe,bearingDegreesPerPixelMoved:ot=.8})=>{let wt=new lf;return new Wu({clickTolerance:Xe,move:(Yt,Jt)=>({bearingDelta:(Jt.x-Yt.x)*ot}),moveStateManager:wt,enable:qe,assignEvents:Ps})})({clickTolerance:ee,enable:!0}),this.map=w,Q&&(this.mousePitch=ah({clickTolerance:le,enable:!0}),this.touchPitch=(({enable:qe,clickTolerance:Xe,pitchDegreesPerPixelMoved:ot=-.5})=>{let wt=new lf;return new Wu({clickTolerance:Xe,move:(Yt,Jt)=>({pitchDelta:(Jt.y-Yt.y)*ot}),moveStateManager:wt,enable:qe,assignEvents:Ps})})({clickTolerance:le,enable:!0})),c.addEventListener(B,"mousedown",this.mousedown),c.addEventListener(B,"touchstart",this.touchstart,{passive:!1}),c.addEventListener(B,"touchcancel",this.reset)}startMouse(w,B){this.mouseRotate.dragStart(w,B),this.mousePitch&&this.mousePitch.dragStart(w,B),c.disableDrag()}startTouch(w,B){this.touchRotate.dragStart(w,B),this.touchPitch&&this.touchPitch.dragStart(w,B),c.disableDrag()}moveMouse(w,B){let Q=this.map,{bearingDelta:ee}=this.mouseRotate.dragMove(w,B)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.mousePitch){let{pitchDelta:le}=this.mousePitch.dragMove(w,B)||{};le&&Q.setPitch(Q.getPitch()+le)}}moveTouch(w,B){let Q=this.map,{bearingDelta:ee}=this.touchRotate.dragMove(w,B)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.touchPitch){let{pitchDelta:le}=this.touchPitch.dragMove(w,B)||{};le&&Q.setPitch(Q.getPitch()+le)}}off(){let w=this.element;c.removeEventListener(w,"mousedown",this.mousedown),c.removeEventListener(w,"touchstart",this.touchstart,{passive:!1}),c.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.removeEventListener(window,"touchend",this.touchend),c.removeEventListener(w,"touchcancel",this.reset),this.offTemp()}offTemp(){c.enableDrag(),c.removeEventListener(window,"mousemove",this.mousemove),c.removeEventListener(window,"mouseup",this.mouseup),c.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.removeEventListener(window,"touchend",this.touchend)}}let _s;function is(ue,w,B){let Q=new a.N(ue.lng,ue.lat);if(ue=new a.N(ue.lng,ue.lat),w){let ee=new a.N(ue.lng-360,ue.lat),le=new a.N(ue.lng+360,ue.lat),qe=B.locationPoint(ue).distSqr(w);B.locationPoint(ee).distSqr(w)180;){let ee=B.locationPoint(ue);if(ee.x>=0&&ee.y>=0&&ee.x<=B.width&&ee.y<=B.height)break;ue.lng>B.center.lng?ue.lng-=360:ue.lng+=360}return ue.lng!==Q.lng&&B.locationPoint(ue).y>B.height/2-B.getHorizon()?ue:Q}let $l={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function ku(ue,w,B){let Q=ue.classList;for(let ee in $l)Q.remove(`maplibregl-${B}-anchor-${ee}`);Q.add(`maplibregl-${B}-anchor-${w}`)}class Yu extends a.E{constructor(w){if(super(),this._onKeyPress=B=>{let Q=B.code,ee=B.charCode||B.keyCode;Q!=="Space"&&Q!=="Enter"&&ee!==32&&ee!==13||this.togglePopup()},this._onMapClick=B=>{let Q=B.originalEvent.target,ee=this._element;this._popup&&(Q===ee||ee.contains(Q))&&this.togglePopup()},this._update=B=>{var Q;if(!this._map)return;let ee=this._map.loaded()&&!this._map.isMoving();((B==null?void 0:B.type)==="terrain"||(B==null?void 0:B.type)==="render"&&!ee)&&this._map.once("render",this._update),this._lngLat=this._map.transform.renderWorldCopies?is(this._lngLat,this._flatPos,this._map.transform):(Q=this._lngLat)===null||Q===void 0?void 0:Q.wrap(),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map.transform.locationPoint(this._lngLat)._add(this._offset));let le="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?le=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(le=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let qe="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?qe="rotateX(0deg)":this._pitchAlignment==="map"&&(qe=`rotateX(${this._map.getPitch()}deg)`),this._subpixelPositioning||B&&B.type!=="moveend"||(this._pos=this._pos.round()),c.setTransform(this._element,`${$l[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${qe} ${le}`),u.frameAsync(new AbortController).then(()=>{this._updateOpacity(B&&B.type==="moveend")}).catch(()=>{})},this._onMove=B=>{if(!this._isDragging){let Q=this._clickTolerance||this._map._clickTolerance;this._isDragging=B.point.dist(this._pointerdownPos)>=Q}this._isDragging&&(this._pos=B.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new a.k("dragstart"))),this.fire(new a.k("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new a.k("dragend")),this._state="inactive"},this._addDragHandler=B=>{this._element.contains(B.originalEvent.target)&&(B.preventDefault(),this._positionDelta=B.point.sub(this._pos).add(this._offset),this._pointerdownPos=B.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},this._anchor=w&&w.anchor||"center",this._color=w&&w.color||"#3FB1CE",this._scale=w&&w.scale||1,this._draggable=w&&w.draggable||!1,this._clickTolerance=w&&w.clickTolerance||0,this._subpixelPositioning=w&&w.subpixelPositioning||!1,this._isDragging=!1,this._state="inactive",this._rotation=w&&w.rotation||0,this._rotationAlignment=w&&w.rotationAlignment||"auto",this._pitchAlignment=w&&w.pitchAlignment&&w.pitchAlignment!=="auto"?w.pitchAlignment:this._rotationAlignment,this.setOpacity(),this.setOpacity(w==null?void 0:w.opacity,w==null?void 0:w.opacityWhenCovered),w&&w.element)this._element=w.element,this._offset=a.P.convert(w&&w.offset||[0,0]);else{this._defaultMarker=!0,this._element=c.create("div");let B=c.createNS("http://www.w3.org/2000/svg","svg"),Q=41,ee=27;B.setAttributeNS(null,"display","block"),B.setAttributeNS(null,"height",`${Q}px`),B.setAttributeNS(null,"width",`${ee}px`),B.setAttributeNS(null,"viewBox",`0 0 ${ee} ${Q}`);let le=c.createNS("http://www.w3.org/2000/svg","g");le.setAttributeNS(null,"stroke","none"),le.setAttributeNS(null,"stroke-width","1"),le.setAttributeNS(null,"fill","none"),le.setAttributeNS(null,"fill-rule","evenodd");let qe=c.createNS("http://www.w3.org/2000/svg","g");qe.setAttributeNS(null,"fill-rule","nonzero");let Xe=c.createNS("http://www.w3.org/2000/svg","g");Xe.setAttributeNS(null,"transform","translate(3.0, 29.0)"),Xe.setAttributeNS(null,"fill","#000000");let ot=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(let Be of ot){let tt=c.createNS("http://www.w3.org/2000/svg","ellipse");tt.setAttributeNS(null,"opacity","0.04"),tt.setAttributeNS(null,"cx","10.5"),tt.setAttributeNS(null,"cy","5.80029008"),tt.setAttributeNS(null,"rx",Be.rx),tt.setAttributeNS(null,"ry",Be.ry),Xe.appendChild(tt)}let wt=c.createNS("http://www.w3.org/2000/svg","g");wt.setAttributeNS(null,"fill",this._color);let Yt=c.createNS("http://www.w3.org/2000/svg","path");Yt.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),wt.appendChild(Yt);let Jt=c.createNS("http://www.w3.org/2000/svg","g");Jt.setAttributeNS(null,"opacity","0.25"),Jt.setAttributeNS(null,"fill","#000000");let xr=c.createNS("http://www.w3.org/2000/svg","path");xr.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),Jt.appendChild(xr);let Ir=c.createNS("http://www.w3.org/2000/svg","g");Ir.setAttributeNS(null,"transform","translate(6.0, 7.0)"),Ir.setAttributeNS(null,"fill","#FFFFFF");let ve=c.createNS("http://www.w3.org/2000/svg","g");ve.setAttributeNS(null,"transform","translate(8.0, 8.0)");let be=c.createNS("http://www.w3.org/2000/svg","circle");be.setAttributeNS(null,"fill","#000000"),be.setAttributeNS(null,"opacity","0.25"),be.setAttributeNS(null,"cx","5.5"),be.setAttributeNS(null,"cy","5.5"),be.setAttributeNS(null,"r","5.4999962");let Re=c.createNS("http://www.w3.org/2000/svg","circle");Re.setAttributeNS(null,"fill","#FFFFFF"),Re.setAttributeNS(null,"cx","5.5"),Re.setAttributeNS(null,"cy","5.5"),Re.setAttributeNS(null,"r","5.4999962"),ve.appendChild(be),ve.appendChild(Re),qe.appendChild(Xe),qe.appendChild(wt),qe.appendChild(Jt),qe.appendChild(Ir),qe.appendChild(ve),B.appendChild(qe),B.setAttributeNS(null,"height",Q*this._scale+"px"),B.setAttributeNS(null,"width",ee*this._scale+"px"),this._element.appendChild(B),this._offset=a.P.convert(w&&w.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",B=>{B.preventDefault()}),this._element.addEventListener("mousedown",B=>{B.preventDefault()}),ku(this._element,this._anchor,"marker"),w&&w.className)for(let B of w.className.split(" "))this._element.classList.add(B);this._popup=null}addTo(w){return this.remove(),this._map=w,this._element.setAttribute("aria-label",w._getUIString("Marker.Title")),w.getCanvasContainer().appendChild(this._element),w.on("move",this._update),w.on("moveend",this._update),w.on("terrain",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),c.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(w){return this._lngLat=a.N.convert(w),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(w){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),w){if(!("offset"in w.options)){let ee=Math.abs(13.5)/Math.SQRT2;w.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[ee,-1*(38.1-13.5+ee)],"bottom-right":[-ee,-1*(38.1-13.5+ee)],left:[13.5,-1*(38.1-13.5)],right:[-13.5,-1*(38.1-13.5)]}:this._offset}this._popup=w,this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}setSubpixelPositioning(w){return this._subpixelPositioning=w,this}getPopup(){return this._popup}togglePopup(){let w=this._popup;return this._element.style.opacity===this._opacityWhenCovered?this:w?(w.isOpen()?w.remove():(w.setLngLat(this._lngLat),w.addTo(this._map)),this):this}_updateOpacity(w=!1){var B,Q;if(!(!((B=this._map)===null||B===void 0)&&B.terrain))return void(this._element.style.opacity!==this._opacity&&(this._element.style.opacity=this._opacity));if(w)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout(()=>{this._opacityTimeout=null},100)}let ee=this._map,le=ee.terrain.depthAtPoint(this._pos),qe=ee.terrain.getElevationForLngLatZoom(this._lngLat,ee.transform.tileZoom);if(ee.transform.lngLatToCameraDepth(this._lngLat,qe)-le<.006)return void(this._element.style.opacity=this._opacity);let Xe=-this._offset.y/ee.transform._pixelPerMeter,ot=Math.sin(ee.getPitch()*Math.PI/180)*Xe,wt=ee.terrain.depthAtPoint(new a.P(this._pos.x,this._pos.y-this._offset.y)),Yt=ee.transform.lngLatToCameraDepth(this._lngLat,qe+ot)-wt>.006;!((Q=this._popup)===null||Q===void 0)&&Q.isOpen()&&Yt&&this._popup.remove(),this._element.style.opacity=Yt?this._opacityWhenCovered:this._opacity}getOffset(){return this._offset}setOffset(w){return this._offset=a.P.convert(w),this._update(),this}addClassName(w){this._element.classList.add(w)}removeClassName(w){this._element.classList.remove(w)}toggleClassName(w){return this._element.classList.toggle(w)}setDraggable(w){return this._draggable=!!w,this._map&&(w?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(w){return this._rotation=w||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(w){return this._rotationAlignment=w||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(w){return this._pitchAlignment=w&&w!=="auto"?w:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(w,B){return w===void 0&&B===void 0&&(this._opacity="1",this._opacityWhenCovered="0.2"),w!==void 0&&(this._opacity=w),B!==void 0&&(this._opacityWhenCovered=B),this._map&&this._updateOpacity(!0),this}}let Nc={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},gu=0,Uc=!1,xu={maxWidth:100,unit:"metric"};function Ac(ue,w,B){let Q=B&&B.maxWidth||100,ee=ue._container.clientHeight/2,le=ue.unproject([0,ee]),qe=ue.unproject([Q,ee]),Xe=le.distanceTo(qe);if(B&&B.unit==="imperial"){let ot=3.2808*Xe;ot>5280?Ua(w,Q,ot/5280,ue._getUIString("ScaleControl.Miles")):Ua(w,Q,ot,ue._getUIString("ScaleControl.Feet"))}else B&&B.unit==="nautical"?Ua(w,Q,Xe/1852,ue._getUIString("ScaleControl.NauticalMiles")):Xe>=1e3?Ua(w,Q,Xe/1e3,ue._getUIString("ScaleControl.Kilometers")):Ua(w,Q,Xe,ue._getUIString("ScaleControl.Meters"))}function Ua(ue,w,B,Q){let ee=function(le){let qe=Math.pow(10,`${Math.floor(le)}`.length-1),Xe=le/qe;return Xe=Xe>=10?10:Xe>=5?5:Xe>=3?3:Xe>=2?2:Xe>=1?1:function(ot){let wt=Math.pow(10,Math.ceil(-Math.log(ot)/Math.LN10));return Math.round(ot*wt)/wt}(Xe),qe*Xe}(B);ue.style.width=w*(ee/B)+"px",ue.innerHTML=`${ee} ${Q}`}let oo={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1},Vc=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function hc(ue){if(ue){if(typeof ue=="number"){let w=Math.round(Math.abs(ue)/Math.SQRT2);return{center:new a.P(0,0),top:new a.P(0,ue),"top-left":new a.P(w,w),"top-right":new a.P(-w,w),bottom:new a.P(0,-ue),"bottom-left":new a.P(w,-w),"bottom-right":new a.P(-w,-w),left:new a.P(ue,0),right:new a.P(-ue,0)}}if(ue instanceof a.P||Array.isArray(ue)){let w=a.P.convert(ue);return{center:w,top:w,"top-left":w,"top-right":w,bottom:w,"bottom-left":w,"bottom-right":w,left:w,right:w}}return{center:a.P.convert(ue.center||[0,0]),top:a.P.convert(ue.top||[0,0]),"top-left":a.P.convert(ue["top-left"]||[0,0]),"top-right":a.P.convert(ue["top-right"]||[0,0]),bottom:a.P.convert(ue.bottom||[0,0]),"bottom-left":a.P.convert(ue["bottom-left"]||[0,0]),"bottom-right":a.P.convert(ue["bottom-right"]||[0,0]),left:a.P.convert(ue.left||[0,0]),right:a.P.convert(ue.right||[0,0])}}return hc(new a.P(0,0))}let Ku=o;i.AJAXError=a.bh,i.Evented=a.E,i.LngLat=a.N,i.MercatorCoordinate=a.Z,i.Point=a.P,i.addProtocol=a.bi,i.config=a.a,i.removeProtocol=a.bj,i.AttributionControl=Na,i.BoxZoomHandler=Cu,i.CanvasSource=$t,i.CooperativeGesturesHandler=$i,i.DoubleClickZoomHandler=Ei,i.DragPanHandler=Tn,i.DragRotateHandler=Bn,i.EdgeInsets=du,i.FullscreenControl=class extends a.E{constructor(ue={}){super(),this._onFullscreenChange=()=>{var w;let B=window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement;for(;!((w=B==null?void 0:B.shadowRoot)===null||w===void 0)&&w.fullscreenElement;)B=B.shadowRoot.fullscreenElement;B===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,ue&&ue.container&&(ue.container instanceof HTMLElement?this._container=ue.container:a.w("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(ue){return this._map=ue,this._container||(this._container=this._map.getContainer()),this._controlContainer=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){c.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let ue=this._fullscreenButton=c.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);c.create("span","maplibregl-ctrl-icon",ue).setAttribute("aria-hidden","true"),ue.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let ue=this._getTitle();this._fullscreenButton.setAttribute("aria-label",ue),this._fullscreenButton.title=ue}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new a.k("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new a.k("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},i.GeoJSONSource=st,i.GeolocateControl=class extends a.E{constructor(ue){super(),this._onSuccess=w=>{if(this._map){if(this._isOutOfMapMaxBounds(w))return this._setErrorState(),this.fire(new a.k("outofmaxbounds",w)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=w,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(w),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(w),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new a.k("geolocate",w)),this._finish()}},this._updateCamera=w=>{let B=new a.N(w.coords.longitude,w.coords.latitude),Q=w.coords.accuracy,ee=this._map.getBearing(),le=a.e({bearing:ee},this.options.fitBoundsOptions),qe=ce.fromLngLat(B,Q);this._map.fitBounds(qe,le,{geolocateSource:!0})},this._updateMarker=w=>{if(w){let B=new a.N(w.coords.longitude,w.coords.latitude);this._accuracyCircleMarker.setLngLat(B).addTo(this._map),this._userLocationDotMarker.setLngLat(B).addTo(this._map),this._accuracy=w.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onZoom=()=>{this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},this._onError=w=>{if(this._map){if(this.options.trackUserLocation)if(w.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let B=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=B,this._geolocateButton.setAttribute("aria-label",B),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(w.code===3&&Uc)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new a.k("error",w)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",w=>w.preventDefault()),this._geolocateButton=c.create("button","maplibregl-ctrl-geolocate",this._container),c.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=w=>{if(this._map){if(w===!1){a.w("Geolocation support is not available so the GeolocateControl will be disabled.");let B=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=B,this._geolocateButton.setAttribute("aria-label",B)}else{let B=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=B,this._geolocateButton.setAttribute("aria-label",B)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=c.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new Yu({element:this._dotElement}),this._circleElement=c.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Yu({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",B=>{B.geolocateSource||this._watchState!=="ACTIVE_LOCK"||B.originalEvent&&B.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new a.k("trackuserlocationend")),this.fire(new a.k("userlocationlostfocus")))})}},this.options=a.e({},Nc,ue)}onAdd(ue){return this._map=ue,this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),function(){return a._(this,arguments,void 0,function*(w=!1){if(_s!==void 0&&!w)return _s;if(window.navigator.permissions===void 0)return _s=!!window.navigator.geolocation,_s;try{_s=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch(B){_s=!!window.navigator.geolocation}return _s})}().then(w=>this._finishSetupUI(w)),this._container}onRemove(){this._geolocationWatchID!==void 0&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),c.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,gu=0,Uc=!1}_isOutOfMapMaxBounds(ue){let w=this._map.getMaxBounds(),B=ue.coords;return w&&(B.longitudew.getEast()||B.latitudew.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadius(){let ue=this._map.getBounds(),w=ue.getSouthEast(),B=ue.getNorthEast(),Q=w.distanceTo(B),ee=Math.ceil(this._accuracy/(Q/this._map._container.clientHeight)*2);this._circleElement.style.width=`${ee}px`,this._circleElement.style.height=`${ee}px`}trigger(){if(!this._setup)return a.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new a.k("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":gu--,Uc=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new a.k("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new a.k("trackuserlocationstart")),this.fire(new a.k("userlocationfocus"));break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let ue;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),gu++,gu>1?(ue={maximumAge:6e5,timeout:0},Uc=!0):(ue=this.options.positionOptions,Uc=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,ue)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},i.Hash=bh,i.ImageSource=Gt,i.KeyboardHandler=Xt,i.LngLatBounds=ce,i.LogoControl=Yn,i.Map=class extends Ra{constructor(ue){a.bf.mark(a.bg.create);let w=Object.assign(Object.assign({},Xs),ue);if(w.minZoom!=null&&w.maxZoom!=null&&w.minZoom>w.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(w.minPitch!=null&&w.maxPitch!=null&&w.minPitch>w.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(w.minPitch!=null&&w.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(w.maxPitch!=null&&w.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new al(w.minZoom,w.maxZoom,w.minPitch,w.maxPitch,w.renderWorldCopies),{bearingSnap:w.bearingSnap}),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new zn,this._controls=[],this._mapId=a.a4(),this._contextLost=B=>{B.preventDefault(),this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this.fire(new a.k("webglcontextlost",{originalEvent:B}))},this._contextRestored=B=>{this._setupPainter(),this.resize(),this._update(),this.fire(new a.k("webglcontextrestored",{originalEvent:B}))},this._onMapScroll=B=>{if(B.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=w.interactive,this._maxTileCacheSize=w.maxTileCacheSize,this._maxTileCacheZoomLevels=w.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=w.failIfMajorPerformanceCaveat===!0,this._preserveDrawingBuffer=w.preserveDrawingBuffer===!0,this._antialias=w.antialias===!0,this._trackResize=w.trackResize===!0,this._bearingSnap=w.bearingSnap,this._refreshExpiredTiles=w.refreshExpiredTiles===!0,this._fadeDuration=w.fadeDuration,this._crossSourceCollisions=w.crossSourceCollisions===!0,this._collectResourceTiming=w.collectResourceTiming===!0,this._locale=Object.assign(Object.assign({},Ho),w.locale),this._clickTolerance=w.clickTolerance,this._overridePixelRatio=w.pixelRatio,this._maxCanvasSize=w.maxCanvasSize,this.transformCameraUpdate=w.transformCameraUpdate,this.cancelPendingTileRequestsWhileZooming=w.cancelPendingTileRequestsWhileZooming===!0,this._imageQueueHandle=p.addThrottleControl(()=>this.isMoving()),this._requestManager=new C(w.transformRequest),typeof w.container=="string"){if(this._container=document.getElementById(w.container),!this._container)throw new Error(`Container '${w.container}' not found.`)}else{if(!(w.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=w.container}if(w.maxBounds&&this.setMaxBounds(w.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",()=>this._update(!1)).on("moveend",()=>this._update(!1)).on("zoom",()=>this._update(!0)).on("terrain",()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)}).once("idle",()=>{this._idleTriggered=!0}),typeof window!="undefined"){addEventListener("online",this._onWindowOnline,!1);let B=!1,Q=nh(ee=>{this._trackResize&&!this._removed&&(this.resize(ee),this.redraw())},50);this._resizeObserver=new ResizeObserver(ee=>{B?Q(ee):B=!0}),this._resizeObserver.observe(this._container)}this.handlers=new ka(this,w),this._hash=w.hash&&new bh(typeof w.hash=="string"&&w.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:w.center,zoom:w.zoom,bearing:w.bearing,pitch:w.pitch}),w.bounds&&(this.resize(),this.fitBounds(w.bounds,a.e({},w.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=w.localIdeographFontFamily,this._validateStyle=w.validateStyle,w.style&&this.setStyle(w.style,{localIdeographFontFamily:w.localIdeographFontFamily}),w.attributionControl&&this.addControl(new Na(typeof w.attributionControl=="boolean"?void 0:w.attributionControl)),w.maplibreLogo&&this.addControl(new Yn,w.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",B=>{this._update(B.dataType==="style"),this.fire(new a.k(`${B.dataType}data`,B))}),this.on("dataloading",B=>{this.fire(new a.k(`${B.dataType}dataloading`,B))}),this.on("dataabort",B=>{this.fire(new a.k("sourcedataabort",B))})}_getMapId(){return this._mapId}addControl(ue,w){if(w===void 0&&(w=ue.getDefaultPosition?ue.getDefaultPosition():"top-right"),!ue||!ue.onAdd)return this.fire(new a.j(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let B=ue.onAdd(this);this._controls.push(ue);let Q=this._controlPositions[w];return w.indexOf("bottom")!==-1?Q.insertBefore(B,Q.firstChild):Q.appendChild(B),this}removeControl(ue){if(!ue||!ue.onRemove)return this.fire(new a.j(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let w=this._controls.indexOf(ue);return w>-1&&this._controls.splice(w,1),ue.onRemove(this),this}hasControl(ue){return this._controls.indexOf(ue)>-1}calculateCameraOptionsFromTo(ue,w,B,Q){return Q==null&&this.terrain&&(Q=this.terrain.getElevationForLngLatZoom(B,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(ue,w,B,Q)}resize(ue){var w;let B=this._containerDimensions(),Q=B[0],ee=B[1],le=this._getClampedPixelRatio(Q,ee);if(this._resizeCanvas(Q,ee,le),this.painter.resize(Q,ee,le),this.painter.overLimit()){let Xe=this.painter.context.gl;this._maxCanvasSize=[Xe.drawingBufferWidth,Xe.drawingBufferHeight];let ot=this._getClampedPixelRatio(Q,ee);this._resizeCanvas(Q,ee,ot),this.painter.resize(Q,ee,ot)}this.transform.resize(Q,ee),(w=this._requestedCameraState)===null||w===void 0||w.resize(Q,ee);let qe=!this._moving;return qe&&(this.stop(),this.fire(new a.k("movestart",ue)).fire(new a.k("move",ue))),this.fire(new a.k("resize",ue)),qe&&this.fire(new a.k("moveend",ue)),this}_getClampedPixelRatio(ue,w){let{0:B,1:Q}=this._maxCanvasSize,ee=this.getPixelRatio(),le=ue*ee,qe=w*ee;return Math.min(le>B?B/le:1,qe>Q?Q/qe:1)*ee}getPixelRatio(){var ue;return(ue=this._overridePixelRatio)!==null&&ue!==void 0?ue:devicePixelRatio}setPixelRatio(ue){this._overridePixelRatio=ue,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(ue){return this.transform.setMaxBounds(ce.convert(ue)),this._update()}setMinZoom(ue){if((ue=ue==null?-2:ue)>=-2&&ue<=this.transform.maxZoom)return this.transform.minZoom=ue,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=ue,this._update(),this.getZoom()>ue&&this.setZoom(ue),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(ue){if((ue=ue==null?0:ue)<0)throw new Error("minPitch must be greater than or equal to 0");if(ue>=0&&ue<=this.transform.maxPitch)return this.transform.minPitch=ue,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(ue>=this.transform.minPitch)return this.transform.maxPitch=ue,this._update(),this.getPitch()>ue&&this.setPitch(ue),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(ue){return this.transform.renderWorldCopies=ue,this._update()}project(ue){return this.transform.locationPoint(a.N.convert(ue),this.style&&this.terrain)}unproject(ue){return this.transform.pointLocation(a.P.convert(ue),this.terrain)}isMoving(){var ue;return this._moving||((ue=this.handlers)===null||ue===void 0?void 0:ue.isMoving())}isZooming(){var ue;return this._zooming||((ue=this.handlers)===null||ue===void 0?void 0:ue.isZooming())}isRotating(){var ue;return this._rotating||((ue=this.handlers)===null||ue===void 0?void 0:ue.isRotating())}_createDelegatedListener(ue,w,B){if(ue==="mouseenter"||ue==="mouseover"){let Q=!1;return{layers:w,listener:B,delegates:{mousemove:le=>{let qe=w.filter(ot=>this.getLayer(ot)),Xe=qe.length!==0?this.queryRenderedFeatures(le.point,{layers:qe}):[];Xe.length?Q||(Q=!0,B.call(this,new jl(ue,this,le.originalEvent,{features:Xe}))):Q=!1},mouseout:()=>{Q=!1}}}}if(ue==="mouseleave"||ue==="mouseout"){let Q=!1;return{layers:w,listener:B,delegates:{mousemove:qe=>{let Xe=w.filter(ot=>this.getLayer(ot));(Xe.length!==0?this.queryRenderedFeatures(qe.point,{layers:Xe}):[]).length?Q=!0:Q&&(Q=!1,B.call(this,new jl(ue,this,qe.originalEvent)))},mouseout:qe=>{Q&&(Q=!1,B.call(this,new jl(ue,this,qe.originalEvent)))}}}}{let Q=ee=>{let le=w.filter(Xe=>this.getLayer(Xe)),qe=le.length!==0?this.queryRenderedFeatures(ee.point,{layers:le}):[];qe.length&&(ee.features=qe,B.call(this,ee),delete ee.features)};return{layers:w,listener:B,delegates:{[ue]:Q}}}}_saveDelegatedListener(ue,w){this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[ue]=this._delegatedListeners[ue]||[],this._delegatedListeners[ue].push(w)}_removeDelegatedListener(ue,w,B){if(!this._delegatedListeners||!this._delegatedListeners[ue])return;let Q=this._delegatedListeners[ue];for(let ee=0;eew.includes(qe))){for(let qe in le.delegates)this.off(qe,le.delegates[qe]);return void Q.splice(ee,1)}}}on(ue,w,B){if(B===void 0)return super.on(ue,w);let Q=this._createDelegatedListener(ue,typeof w=="string"?[w]:w,B);this._saveDelegatedListener(ue,Q);for(let ee in Q.delegates)this.on(ee,Q.delegates[ee]);return this}once(ue,w,B){if(B===void 0)return super.once(ue,w);let Q=typeof w=="string"?[w]:w,ee=this._createDelegatedListener(ue,Q,B);for(let le in ee.delegates){let qe=ee.delegates[le];ee.delegates[le]=(...Xe)=>{this._removeDelegatedListener(ue,Q,B),qe(...Xe)}}this._saveDelegatedListener(ue,ee);for(let le in ee.delegates)this.once(le,ee.delegates[le]);return this}off(ue,w,B){return B===void 0?super.off(ue,w):(this._removeDelegatedListener(ue,typeof w=="string"?[w]:w,B),this)}queryRenderedFeatures(ue,w){if(!this.style)return[];let B,Q=ue instanceof a.P||Array.isArray(ue),ee=Q?ue:[[0,0],[this.transform.width,this.transform.height]];if(w=w||(Q?{}:ue)||{},ee instanceof a.P||typeof ee[0]=="number")B=[a.P.convert(ee)];else{let le=a.P.convert(ee[0]),qe=a.P.convert(ee[1]);B=[le,new a.P(qe.x,le.y),qe,new a.P(le.x,qe.y),le]}return this.style.queryRenderedFeatures(B,w,this.transform)}querySourceFeatures(ue,w){return this.style.querySourceFeatures(ue,w)}setStyle(ue,w){return(w=a.e({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},w)).diff!==!1&&w.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&ue?(this._diffStyle(ue,w),this):(this._localIdeographFontFamily=w.localIdeographFontFamily,this._updateStyle(ue,w))}setTransformRequest(ue){return this._requestManager.setTransformRequest(ue),this}_getUIString(ue){let w=this._locale[ue];if(w==null)throw new Error(`Missing UI string '${ue}'`);return w}_updateStyle(ue,w){if(w.transformStyle&&this.style&&!this.style._loaded)return void this.style.once("style.load",()=>this._updateStyle(ue,w));let B=this.style&&w.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!ue)),ue?(this.style=new Ga(this,w||{}),this.style.setEventedParent(this,{style:this.style}),typeof ue=="string"?this.style.loadURL(ue,w,B):this.style.loadJSON(ue,w,B),this):(delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new Ga(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(ue,w){if(typeof ue=="string"){let B=this._requestManager.transformRequest(ue,"Style");a.h(B,new AbortController).then(Q=>{this._updateDiff(Q.data,w)}).catch(Q=>{Q&&this.fire(new a.j(Q))})}else typeof ue=="object"&&this._updateDiff(ue,w)}_updateDiff(ue,w){try{this.style.setState(ue,w)&&this._update(!0)}catch(B){a.w(`Unable to perform style diff: ${B.message||B.error||B}. Rebuilding the style from scratch.`),this._updateStyle(ue,w)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():a.w("There is no style added to the map.")}addSource(ue,w){return this._lazyInitEmptyStyle(),this.style.addSource(ue,w),this._update(!0)}isSourceLoaded(ue){let w=this.style&&this.style.sourceCaches[ue];if(w!==void 0)return w.loaded();this.fire(new a.j(new Error(`There is no source with ID '${ue}'`)))}setTerrain(ue){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),ue){let w=this.style.sourceCaches[ue.source];if(!w)throw new Error(`cannot load terrain, because there exists no source with ID: ${ue.source}`);this.terrain===null&&w.reload();for(let B in this.style._layers){let Q=this.style._layers[B];Q.type==="hillshade"&&Q.source===ue.source&&a.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new Xo(this.painter,w,ue),this.painter.renderToTexture=new Ts(this.painter,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=B=>{B.dataType==="style"?this.terrain.sourceCache.freeRtt():B.dataType==="source"&&B.tile&&(B.sourceId!==ue.source||this._elevationFreeze||(this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.terrain.sourceCache.freeRtt(B.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform.minElevationForCurrentTile=0,this.transform.elevation=0;return this.fire(new a.k("terrain",{terrain:ue})),this}getTerrain(){var ue,w;return(w=(ue=this.terrain)===null||ue===void 0?void 0:ue.options)!==null&&w!==void 0?w:null}areTilesLoaded(){let ue=this.style&&this.style.sourceCaches;for(let w in ue){let B=ue[w]._tiles;for(let Q in B){let ee=B[Q];if(ee.state!=="loaded"&&ee.state!=="errored")return!1}}return!0}removeSource(ue){return this.style.removeSource(ue),this._update(!0)}getSource(ue){return this.style.getSource(ue)}addImage(ue,w,B={}){let{pixelRatio:Q=1,sdf:ee=!1,stretchX:le,stretchY:qe,content:Xe,textFitWidth:ot,textFitHeight:wt}=B;if(this._lazyInitEmptyStyle(),!(w instanceof HTMLImageElement||a.b(w))){if(w.width===void 0||w.height===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{let{width:Yt,height:Jt,data:xr}=w,Ir=w;return this.style.addImage(ue,{data:new a.R({width:Yt,height:Jt},new Uint8Array(xr)),pixelRatio:Q,stretchX:le,stretchY:qe,content:Xe,textFitWidth:ot,textFitHeight:wt,sdf:ee,version:0,userImage:Ir}),Ir.onAdd&&Ir.onAdd(this,ue),this}}{let{width:Yt,height:Jt,data:xr}=u.getImageData(w);this.style.addImage(ue,{data:new a.R({width:Yt,height:Jt},xr),pixelRatio:Q,stretchX:le,stretchY:qe,content:Xe,textFitWidth:ot,textFitHeight:wt,sdf:ee,version:0})}}updateImage(ue,w){let B=this.style.getImage(ue);if(!B)return this.fire(new a.j(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let Q=w instanceof HTMLImageElement||a.b(w)?u.getImageData(w):w,{width:ee,height:le,data:qe}=Q;if(ee===void 0||le===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(ee!==B.data.width||le!==B.data.height)return this.fire(new a.j(new Error("The width and height of the updated image must be that same as the previous version of the image")));let Xe=!(w instanceof HTMLImageElement||a.b(w));return B.data.replace(qe,Xe),this.style.updateImage(ue,B),this}getImage(ue){return this.style.getImage(ue)}hasImage(ue){return ue?!!this.style.getImage(ue):(this.fire(new a.j(new Error("Missing required image id"))),!1)}removeImage(ue){this.style.removeImage(ue)}loadImage(ue){return p.getImage(this._requestManager.transformRequest(ue,"Image"),new AbortController)}listImages(){return this.style.listImages()}addLayer(ue,w){return this._lazyInitEmptyStyle(),this.style.addLayer(ue,w),this._update(!0)}moveLayer(ue,w){return this.style.moveLayer(ue,w),this._update(!0)}removeLayer(ue){return this.style.removeLayer(ue),this._update(!0)}getLayer(ue){return this.style.getLayer(ue)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(ue,w,B){return this.style.setLayerZoomRange(ue,w,B),this._update(!0)}setFilter(ue,w,B={}){return this.style.setFilter(ue,w,B),this._update(!0)}getFilter(ue){return this.style.getFilter(ue)}setPaintProperty(ue,w,B,Q={}){return this.style.setPaintProperty(ue,w,B,Q),this._update(!0)}getPaintProperty(ue,w){return this.style.getPaintProperty(ue,w)}setLayoutProperty(ue,w,B,Q={}){return this.style.setLayoutProperty(ue,w,B,Q),this._update(!0)}getLayoutProperty(ue,w){return this.style.getLayoutProperty(ue,w)}setGlyphs(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(ue,w),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(ue,w,B={}){return this._lazyInitEmptyStyle(),this.style.addSprite(ue,w,B,Q=>{Q||this._update(!0)}),this}removeSprite(ue){return this._lazyInitEmptyStyle(),this.style.removeSprite(ue),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setSprite(ue,w,B=>{B||this._update(!0)}),this}setLight(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setLight(ue,w),this._update(!0)}getLight(){return this.style.getLight()}setSky(ue){return this._lazyInitEmptyStyle(),this.style.setSky(ue),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(ue,w){return this.style.setFeatureState(ue,w),this._update()}removeFeatureState(ue,w){return this.style.removeFeatureState(ue,w),this._update()}getFeatureState(ue){return this.style.getFeatureState(ue)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let ue=0,w=0;return this._container&&(ue=this._container.clientWidth||400,w=this._container.clientHeight||300),[ue,w]}_setupContainer(){let ue=this._container;ue.classList.add("maplibregl-map");let w=this._canvasContainer=c.create("div","maplibregl-canvas-container",ue);this._interactive&&w.classList.add("maplibregl-interactive"),this._canvas=c.create("canvas","maplibregl-canvas",w),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region");let B=this._containerDimensions(),Q=this._getClampedPixelRatio(B[0],B[1]);this._resizeCanvas(B[0],B[1],Q);let ee=this._controlContainer=c.create("div","maplibregl-control-container",ue),le=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(qe=>{le[qe]=c.create("div",`maplibregl-ctrl-${qe} `,ee)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(ue,w,B){this._canvas.width=Math.floor(B*ue),this._canvas.height=Math.floor(B*w),this._canvas.style.width=`${ue}px`,this._canvas.style.height=`${w}px`}_setupPainter(){let ue={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1},w=null;this._canvas.addEventListener("webglcontextcreationerror",Q=>{w={requestedAttributes:ue},Q&&(w.statusMessage=Q.statusMessage,w.type=Q.type)},{once:!0});let B=this._canvas.getContext("webgl2",ue)||this._canvas.getContext("webgl",ue);if(!B){let Q="Failed to initialize WebGL";throw w?(w.message=Q,new Error(JSON.stringify(w))):new Error(Q)}this.painter=new Dc(B,this.transform),f.testSupport(B)}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(ue){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||ue,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(ue){return this._update(),this._renderTaskQueue.add(ue)}_cancelRenderFrame(ue){this._renderTaskQueue.remove(ue)}_render(ue){let w=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(ue),this._removed)return;let B=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let ee=this.transform.zoom,le=u.now();this.style.zoomHistory.update(ee,le);let qe=new a.z(ee,{now:le,fadeDuration:w,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),Xe=qe.crossFadingFactor();Xe===1&&Xe===this._crossFadingFactor||(B=!0,this._crossFadingFactor=Xe),this.style.update(qe)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform.minElevationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,w,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:w,showPadding:this.showPadding}),this.fire(new a.k("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,a.bf.mark(a.bg.load),this.fire(new a.k("load"))),this.style&&(this.style.hasTransitions()||B)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let Q=this._sourcesDirty||this._styleDirty||this._placementDirty;return Q||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new a.k("idle")),!this._loaded||this._fullyLoaded||Q||(this._fullyLoaded=!0,a.bf.mark(a.bg.fullLoad)),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._render(0)),this}remove(){var ue;this._hash&&this._hash.remove();for(let B of this._controls)B.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window!="undefined"&&removeEventListener("online",this._onWindowOnline,!1),p.removeThrottleControl(this._imageQueueHandle),(ue=this._resizeObserver)===null||ue===void 0||ue.disconnect();let w=this.painter.context.gl.getExtension("WEBGL_lose_context");w!=null&&w.loseContext&&w.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),c.remove(this._canvasContainer),c.remove(this._controlContainer),this._container.classList.remove("maplibregl-map"),a.bf.clearMetrics(),this._removed=!0,this.fire(new a.k("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,u.frameAsync(this._frameRequest).then(ue=>{a.bf.frame(ue),this._frameRequest=null,this._render(ue)}).catch(()=>{}))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(ue){this._showTileBoundaries!==ue&&(this._showTileBoundaries=ue,this._update())}get showPadding(){return!!this._showPadding}set showPadding(ue){this._showPadding!==ue&&(this._showPadding=ue,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(ue){this._showCollisionBoxes!==ue&&(this._showCollisionBoxes=ue,ue?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(ue){this._showOverdrawInspector!==ue&&(this._showOverdrawInspector=ue,this._update())}get repaint(){return!!this._repaint}set repaint(ue){this._repaint!==ue&&(this._repaint=ue,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(ue){this._vertices=ue,this._update()}get version(){return yl}getCameraTargetElevation(){return this.transform.elevation}},i.MapMouseEvent=jl,i.MapTouchEvent=sf,i.MapWheelEvent=Vh,i.Marker=Yu,i.NavigationControl=class{constructor(ue){this._updateZoomButtons=()=>{let w=this._map.getZoom(),B=w===this._map.getMaxZoom(),Q=w===this._map.getMinZoom();this._zoomInButton.disabled=B,this._zoomOutButton.disabled=Q,this._zoomInButton.setAttribute("aria-disabled",B.toString()),this._zoomOutButton.setAttribute("aria-disabled",Q.toString())},this._rotateCompassArrow=()=>{let w=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=w},this._setButtonTitle=(w,B)=>{let Q=this._map._getUIString(`NavigationControl.${B}`);w.title=Q,w.setAttribute("aria-label",Q)},this.options=a.e({},va,ue),this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",w=>w.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",w=>this._map.zoomIn({},{originalEvent:w})),c.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",w=>this._map.zoomOut({},{originalEvent:w})),c.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",w=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:w}):this._map.resetNorth({},{originalEvent:w})}),this._compassIcon=c.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(ue){return this._map=ue,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new no(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){c.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(ue,w){let B=c.create("button",ue,this._container);return B.type="button",B.addEventListener("click",w),B}},i.Popup=class extends a.E{constructor(ue){super(),this.remove=()=>(this._content&&c.remove(this._content),this._container&&(c.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new a.k("close"))),this),this._onMouseUp=w=>{this._update(w.point)},this._onMouseMove=w=>{this._update(w.point)},this._onDrag=w=>{this._update(w.point)},this._update=w=>{var B;if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=c.create("div","maplibregl-popup",this._map.getContainer()),this._tip=c.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let Xe of this.options.className.split(" "))this._container.classList.add(Xe);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=this._map.transform.renderWorldCopies&&!this._trackPointer?is(this._lngLat,this._flatPos,this._map.transform):(B=this._lngLat)===null||B===void 0?void 0:B.wrap(),this._trackPointer&&!w)return;let Q=this._flatPos=this._pos=this._trackPointer&&w?w:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&w?w:this._map.transform.locationPoint(this._lngLat));let ee=this.options.anchor,le=hc(this.options.offset);if(!ee){let Xe=this._container.offsetWidth,ot=this._container.offsetHeight,wt;wt=Q.y+le.bottom.ythis._map.transform.height-ot?["bottom"]:[],Q.xthis._map.transform.width-Xe/2&&wt.push("right"),ee=wt.length===0?"bottom":wt.join("-")}let qe=Q.add(le[ee]);this.options.subpixelPositioning||(qe=qe.round()),c.setTransform(this._container,`${$l[ee]} translate(${qe.x}px,${qe.y}px)`),ku(this._container,ee,"popup")},this._onClose=()=>{this.remove()},this.options=a.e(Object.create(oo),ue)}addTo(ue){return this._map&&this.remove(),this._map=ue,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new a.k("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(ue){return this._lngLat=a.N.convert(ue),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(ue){return this.setDOMContent(document.createTextNode(ue))}setHTML(ue){let w=document.createDocumentFragment(),B=document.createElement("body"),Q;for(B.innerHTML=ue;Q=B.firstChild,Q;)w.appendChild(Q);return this.setDOMContent(w)}getMaxWidth(){var ue;return(ue=this._container)===null||ue===void 0?void 0:ue.style.maxWidth}setMaxWidth(ue){return this.options.maxWidth=ue,this._update(),this}setDOMContent(ue){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=c.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(ue),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(ue){return this._container&&this._container.classList.add(ue),this}removeClassName(ue){return this._container&&this._container.classList.remove(ue),this}setOffset(ue){return this.options.offset=ue,this._update(),this}toggleClassName(ue){if(this._container)return this._container.classList.toggle(ue)}setSubpixelPositioning(ue){this.options.subpixelPositioning=ue}_createCloseButton(){this.options.closeButton&&(this._closeButton=c.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let ue=this._container.querySelector(Vc);ue&&ue.focus()}},i.RasterDEMTileSource=Kt,i.RasterTileSource=gt,i.ScaleControl=class{constructor(ue){this._onMove=()=>{Ac(this._map,this._container,this.options)},this.setUnit=w=>{this.options.unit=w,Ac(this._map,this._container,this.options)},this.options=Object.assign(Object.assign({},xu),ue)}getDefaultPosition(){return"bottom-left"}onAdd(ue){return this._map=ue,this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-scale",ue.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){c.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}},i.ScrollZoomHandler=Jr,i.Style=Ga,i.TerrainControl=class{constructor(ue){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=ue}onAdd(ue){return this._map=ue,this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=c.create("button","maplibregl-ctrl-terrain",this._container),c.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){c.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},i.TwoFingersTouchPitchHandler=Bc,i.TwoFingersTouchRotateHandler=uf,i.TwoFingersTouchZoomHandler=pu,i.TwoFingersTouchZoomRotateHandler=Zi,i.VectorTileSource=ut,i.VideoSource=Ut,i.addSourceType=(ue,w)=>a._(void 0,void 0,void 0,function*(){if(Tr(ue))throw new Error(`A source type called "${ue}" already exists.`);((B,Q)=>{sr[B]=Q})(ue,w)}),i.clearPrewarmedResources=function(){let ue=me;ue&&(ue.isPreloaded()&&ue.numActive()===1?(ue.release(_e),me=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},i.getMaxParallelImageRequests=function(){return a.a.MAX_PARALLEL_IMAGE_REQUESTS},i.getRTLTextPluginStatus=function(){return Ct().getRTLTextPluginStatus()},i.getVersion=function(){return Ku},i.getWorkerCount=function(){return Me.workerCount},i.getWorkerUrl=function(){return a.a.WORKER_URL},i.importScriptInWorkers=function(ue){return Ae().broadcast("IS",ue)},i.prewarm=function(){Se().acquire(_e)},i.setMaxParallelImageRequests=function(ue){a.a.MAX_PARALLEL_IMAGE_REQUESTS=ue},i.setRTLTextPlugin=function(ue,w){return Ct().setRTLTextPlugin(ue,w)},i.setWorkerCount=function(ue){Me.workerCount=ue},i.setWorkerUrl=function(ue){a.a.WORKER_URL=ue}});var n=e;return n})});var HHe=ye((Txr,GHe)=>{"use strict";var iw=Dr(),CWt=iu().sanitizeHTML,kWt=bJ(),NHe=wx();function UHe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=NHe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var ag=UHe.prototype;ag.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=o7(t)};ag.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};ag.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};ag.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};ag.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};ag.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};ag.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!o7(e)){var r=LWt(e);t.addSource(this.idSource,r)}};ag.findFollowingMapLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function VHe(e){var t={},r={};switch(e.type){case"circle":iw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":iw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":iw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=kWt(n.textposition,n.iconsize);iw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),iw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":iw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function LWt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=CWt(e.sourceattribution)),n}GHe.exports=function(t,r,n){var i=new UHe(t,r);return i.update(n),i}});var $He=ye((Axr,JHe)=>{"use strict";var EJ=BHe(),CJ=Dr(),XHe=nx(),jHe=qa(),PWt=ho(),IWt=gv(),s7=df(),ZHe=Sg(),RWt=ZHe.drawMode,DWt=ZHe.selectMode,FWt=Ff().prepSelect,zWt=Ff().clearOutline,OWt=Ff().clearSelectionsCache,qWt=Ff().selectOnClick,nw=wx(),BWt=HHe();function YHe(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Bh=YHe.prototype;Bh.plot=function(e,t,r){var n=this,i;n.map?i=new Promise(function(a,o){n.updateMap(e,t,a,o)}):i=new Promise(function(a,o){n.createMap(e,t,a,o)}),r.push(i)};Bh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=KHe(a.style),s=a.bounds,l=s?[[s.west,s.south],[s.east,s.north]]:null,u=i.map=new EJ.Map({container:i.div,style:o.style,center:kJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:l,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new EJ.AttributionControl({compact:!0})),c={};u.on("styleimagemissing",function(h){var d=h.id;if(!c[d]&&d.includes("-15")){c[d]=!0;var v=new Image(15,15);v.onload=function(){u.addImage(d,v)},v.crossOrigin="Anonymous",v.src="https://unpkg.com/maki@2.1.0/icons/"+d+".svg"}}),u.setTransformRequest(function(h){return h=h.replace("https://fonts.openmaptiles.org/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://tiles.basemaps.cartocdn.com/fonts/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular","https://fonts.openmaptiles.org/Klokantech Noto Sans Regular"),{url:h}}),u._canvas.style.left="0px",u._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var f=[];f.push(new Promise(function(h){u.once("load",h)})),f=f.concat(XHe.fetchTraceGeoData(e)),Promise.all(f).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Bh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],l=KHe(o.style);JSON.stringify(i.styleObj)!==JSON.stringify(l)&&(i.styleObj=l,a.setStyle(l.style),i.traceHash={},s.push(new Promise(function(u){a.once("styledata",u)}))),s=s.concat(XHe.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Bh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&qWt(l.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&s7.click(n,l.originalEvent)}}};Bh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(l){var u=t.map.unproject(l);return[u.lng,u.lat]}var a=e.dragmode,o;o=function(l,u){if(u.isRect){var c=l.range={};c[t.id]=[i([u.xmin,u.ymin]),i([u.xmax,u.ymax])]}else{var f=l.lassoPoints={};f[t.id]=u.map(i)}};var s=t.dragOptions;t.dragOptions=CJ.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),DWt(a)||RWt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){FWt(l,u,c,t.dragOptions,a)},IWt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Bh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Bh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var LJ=Dr(),UWt=k_(),VWt=Yd(),QHe=NC();eje.exports=function(t,r,n){UWt(t,r,n,{type:"map",attributes:QHe,handleDefaults:GWt,partition:"y"})};function GWt(e,t,r){r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var n=r("bounds.west"),i=r("bounds.east"),a=r("bounds.south"),o=r("bounds.north");(n===void 0||i===void 0||a===void 0||o===void 0)&&delete t.bounds,VWt(e,t,{name:"layers",handleItemDefaults:HWt}),t._input=e}function HWt(e,t){function r(l,u){return LJ.coerce(e,t,QHe.layers,l,u)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",LJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),LJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var u7=ye(l0=>{"use strict";var l7=Dr(),rje=l7.strTranslate,jWt=l7.strScale,WWt=Id().getSubplotCalcData,XWt=Wp(),ZWt=Oa(),ije=So(),YWt=iu(),KWt=$He(),Tx="map";l0.name=Tx;l0.attr="subplot";l0.idRoot=Tx;l0.idRegex=l0.attrRegex=l7.counterRegex(Tx);l0.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}};l0.layoutAttributes=NC();l0.supplyLayoutDefaults=tje();l0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[Tx],a=0;ax/2){var b=f.split("|").join("
");d.text(b).attr("data-unformatted",b).call(YWt.convertToTspans,e),v=ije.bBox(d.node())}d.attr("transform",rje(-3,-v.height+8)),h.insert("rect",".static-attribution").attr({x:-v.width-6,y:-v.height-3,width:v.width+6,height:v.height+3,fill:"rgba(255, 255, 255, 0.75)"});var p=1;v.width+6>x&&(p=x/(v.width+6));var C=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];h.attr("transform",rje(C[0],C[1])+jWt(p))}};l0.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[Tx],n=0;n{"use strict";nje.exports={attributes:e7(),supplyDefaults:mHe(),colorbar:$d(),formatLabels:xJ(),calc:cF(),plot:PHe(),hoverPoints:a7().hoverPoints,eventData:FHe(),selectPoints:OHe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermap",basePlotModule:u7(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}});var sje=ye((Cxr,oje)=>{"use strict";oje.exports=aje()});var PJ=ye((kxr,lje)=>{"use strict";var d1=JA(),JWt=Tu(),$Wt=rs().hovertemplateAttrs,QWt=Vl(),Ax=Ao().extendFlat;lje.exports=Ax({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Ax({},d1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:d1.text,hovertext:d1.hovertext,marker:{line:{color:Ax({},d1.marker.line.color,{editType:"plot"}),width:Ax({},d1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Ax({},d1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Ax({},d1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Ax({},d1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:d1.hoverinfo,hovertemplate:$Wt({},{keys:["properties"]}),showlegend:Ax({},QWt.showlegend,{dflt:!1})},JWt("",{cLetter:"z",editTypeOverride:"calc"}))});var cje=ye((Lxr,uje)=>{"use strict";var HC=Dr(),eXt=Jh(),tXt=PJ();uje.exports=function(t,r,n,i){function a(c,f){return HC.coerce(t,r,tXt,c,f)}var o=a("locations"),s=a("z"),l=a("geojson");if(!HC.isArrayOrTypedArray(o)||!o.length||!HC.isArrayOrTypedArray(s)||!s.length||!(typeof l=="string"&&l!==""||HC.isPlainObject(l))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate");var u=a("marker.line.width");u&&a("marker.line.color"),a("marker.opacity"),eXt(t,r,i,a,{prefix:"",cLetter:"z"}),HC.coerceSelectionMarkerOpacity(r,a)}});var IJ=ye((Pxr,dje)=>{"use strict";var rXt=Eo(),v1=Dr(),iXt=tc(),nXt=So(),aXt=rx().makeBlank,fje=nx();function oXt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:aXt()};if(!r)return a;var o=fje.extractTraceFeature(e);if(!o)return a;var s=iXt.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;v1.isArrayOrTypedArray(l.opacity)&&(c=function(C){var E=C.mo;return rXt(E)?+v1.constrain(E,0,1):0});var f;v1.isArrayOrTypedArray(u.color)&&(f=function(C){return C.mlc});var h;v1.isArrayOrTypedArray(u.width)&&(h=function(C){return C.mlw});for(var d=0;d{"use strict";var pje=IJ().convert,sXt=IJ().convertOnSelect,vje=wx().traceLayerPrefix;function gje(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",vje+t+"-fill"],["line",vje+t+"-line"]],this.below=null}var E5=gje.prototype;E5.update=function(e){this._update(pje(e)),e[0].trace._glTrace=this};E5.updateOnSelect=function(e){this._update(sXt(e))};E5._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};E5.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};mje.exports=function(t,r){var n=r[0].trace,i=new gje(t,n.uid),a=i.sourceId,o=pje(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var xje=ye((Rxr,_je)=>{"use strict";_je.exports={attributes:PJ(),supplyDefaults:cje(),colorbar:M_(),calc:IF(),plot:yje(),hoverPoints:DF(),eventData:FF(),selectPoints:zF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";bje.exports=xje()});var DJ=ye((Fxr,Aje)=>{"use strict";var lXt=Tu(),uXt=rs().hovertemplateAttrs,Tje=Vl(),c7=e7(),RJ=Ao().extendFlat;Aje.exports=RJ({lon:c7.lon,lat:c7.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:c7.text,hovertext:c7.hovertext,hoverinfo:RJ({},Tje.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:uXt(),showlegend:RJ({},Tje.showlegend,{dflt:!1})},lXt("",{cLetter:"z",editTypeOverride:"calc"}))});var Mje=ye((zxr,Sje)=>{"use strict";var cXt=Dr(),fXt=Jh(),hXt=DJ();Sje.exports=function(t,r,n,i){function a(u,c){return cXt.coerce(t,r,hXt,u,c)}var o=a("lon")||[],s=a("lat")||[],l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),fXt(t,r,i,a,{prefix:"",cLetter:"z"})}});var kje=ye((Oxr,Cje)=>{"use strict";var FJ=Eo(),dXt=Dr().isArrayOrTypedArray,zJ=hs().BADNUM,vXt=Fv(),Eje=Dr()._;Cje.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=dXt(a)&&a.length,s=0;s{"use strict";var pXt=Eo(),OJ=Dr(),Lje=Ca(),Pje=tc(),Ije=hs().BADNUM,gXt=rx().makeBlank;Rje.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:gXt()};if(!n)return a;var o=[],s,l=r.z,u=r.radius,c=OJ.isArrayOrTypedArray(l)&&l.length,f=OJ.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:v})}}var b=Pje.extractOpts(r),p=b.reversescale?Pje.flipScale(b.colorscale):b.colorscale,C=p[0][1],E=Lje.opacity(C)<1?C:Lje.addOpacity(C,0),A=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var Fje=Dje(),mXt=wx().traceLayerPrefix;function zje(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",mXt+t+"-heatmap"]],this.below=null}var f7=zje.prototype;f7.update=function(e){var t=this.subplot,r=this.layerList,n=Fje(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};f7.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};Oje.exports=function(t,r){var n=r[0].trace,i=new zje(t,n.uid),a=i.sourceId,o=Fje(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var Nje=ye((Nxr,Bje)=>{"use strict";var yXt=ho(),_Xt=a7().hoverPoints,xXt=a7().getExtraText;Bje.exports=function(t,r,n){var i=_Xt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,l=o[a.index];if(delete a.color,"z"in l){var u=a.subplot.mockAxis;a.z=l.z,a.zLabel=yXt.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=xXt(s,l,o[0].t.labels),[a]}}});var Vje=ye((Uxr,Uje)=>{"use strict";Uje.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var Hje=ye((Vxr,Gje)=>{"use strict";Gje.exports={attributes:DJ(),supplyDefaults:Mje(),colorbar:M_(),formatLabels:xJ(),calc:kje(),plot:qje(),hoverPoints:Nje(),eventData:Vje(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";jje.exports=Hje()});var BJ=ye((jxr,Kje)=>{"use strict";var bXt=ec(),wXt=Vl(),Xje=Eh(),qJ=i3(),TXt=kc().attributes,Zje=rs().hovertemplateAttrs,AXt=Tu(),SXt=pl().templatedArray,MXt=ff().descriptionOnlyNumbers,Yje=Ao().extendFlat,EXt=mc().overrideAll,Hxr=Kje.exports=EXt({hoverinfo:Yje({},wXt.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:qJ.hoverlabel,domain:TXt({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},valueformat:{valType:"string",dflt:".3s",description:MXt("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:bXt({autoShadowDflt:!0}),customdata:void 0,node:{label:{valType:"data_array",dflt:[]},groups:{valType:"info_array",impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:"number",editType:"calc"}},x:{valType:"data_array",dflt:[]},y:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Xje.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:.5,arrayOk:!0}},pad:{valType:"number",arrayOk:!1,min:0,dflt:20},thickness:{valType:"number",arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:qJ.hoverlabel,hovertemplate:Zje({},{keys:["value","label"]}),align:{valType:"enumerated",values:["justify","left","right","center"],dflt:"justify"}},link:{arrowlen:{valType:"number",min:0,dflt:0},label:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},hovercolor:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Xje.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:0,arrayOk:!0}},source:{valType:"data_array",dflt:[]},target:{valType:"data_array",dflt:[]},value:{valType:"data_array",dflt:[]},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:qJ.hoverlabel,hovertemplate:Zje({},{keys:["value","label"]}),colorscales:SXt("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:Yje(AXt().colorscale,{dflt:[[0,"white"],[1,"black"]]})})}},"calc","nested")});var tWe=ye((Wxr,eWe)=>{"use strict";var C5=Dr(),h7=BJ(),CXt=Ca(),Jje=cd(),kXt=kc().defaults,$je=sM(),Qje=pl(),LXt=Yd();eWe.exports=function(t,r,n,i){function a(A,L){return C5.coerce(t,r,h7,A,L)}var o=C5.extendDeep(i.hoverlabel,t.hoverlabel),s=t.node,l=Qje.newContainer(r,"node");function u(A,L){return C5.coerce(s,l,h7.node,A,L)}u("label"),u("groups"),u("x"),u("y"),u("pad"),u("thickness"),u("line.color"),u("line.width"),u("hoverinfo",t.hoverinfo),$je(s,l,u,o),u("hovertemplate"),u("align");var c=i.colorway,f=function(A){return c[A%c.length]};u("color",l.label.map(function(A,L){return CXt.addOpacity(f(L),.8)})),u("customdata");var h=t.link||{},d=Qje.newContainer(r,"link");function v(A,L){return C5.coerce(h,d,h7.link,A,L)}v("label"),v("arrowlen"),v("source"),v("target"),v("value"),v("line.color"),v("line.width"),v("hoverinfo",t.hoverinfo),$je(h,d,v,o),v("hovertemplate");var x=Jje(i.paper_bgcolor).getLuminance()<.333,b=x?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",p=v("color",b);function C(A){var L=Jje(A);if(!L.isValid())return A;var _=L.getAlpha();return _<=.8?L.setAlpha(_+.2):L=x?L.brighten():L.darken(),L.toRgbString()}v("hovercolor",Array.isArray(p)?p.map(C):C(p)),v("customdata"),LXt(h,d,{name:"colorscales",handleItemDefaults:PXt}),kXt(r,i,a),a("orientation"),a("valueformat"),a("valuesuffix");var E;l.x.length&&l.y.length&&(E="freeform"),a("arrangement",E),C5.coerceFont(a,"textfont",i.font,{autoShadowDflt:!0}),r._length=null};function PXt(e,t){function r(n,i){return C5.coerce(e,t,h7.link.colorscales,n,i)}r("label"),r("cmin"),r("cmax"),r("colorscale")}});var NJ=ye((Xxr,rWe)=>{"use strict";rWe.exports=IXt;function IXt(e){for(var t=e.length,r=new Array(t),n=new Array(t),i=new Array(t),a=new Array(t),o=new Array(t),s=new Array(t),l=0;l0;){b=C[C.length-1];var E=e[b];if(a[b]=0&&s[b].push(o[L])}a[b]=A}else{if(n[b]===r[b]){for(var _=[],k=[],M=0,A=p.length-1;A>=0;--A){var g=p[A];if(i[g]=!1,_.push(g),k.push(s[g]),M+=s[g].length,o[g]=c.length,g===b){p.length=A;break}}c.push(_);for(var P=new Array(M),A=0;A{"use strict";var RXt=NJ(),k5=Dr(),DXt=Km().wrap,jC=k5.isArrayOrTypedArray,iWe=k5.isIndex,nWe=tc();function FXt(e){var t=e.node,r=e.link,n=[],i=jC(r.color),a=jC(r.hovercolor),o=jC(r.customdata),s={},l={},u=r.colorscales.length,c;for(c=0;cv&&(v=r.source[c]),r.target[c]>v&&(v=r.target[c]);var x=v+1;e.node._count=x;var b,p=e.node.groups,C={};for(c=0;c0&&iWe(M,x)&&iWe(g,x)&&!(C.hasOwnProperty(M)&&C.hasOwnProperty(g)&&C[M]===C[g])){C.hasOwnProperty(g)&&(g=C[g]),C.hasOwnProperty(M)&&(M=C[M]),M=+M,g=+g,s[M]=s[g]=!0;var P="";r.label&&r.label[c]&&(P=r.label[c]);var T=null;P&&l.hasOwnProperty(P)&&(T=l[P]),n.push({pointNumber:c,label:P,color:i?r.color[c]:r.color,hovercolor:a?r.hovercolor[c]:r.hovercolor,customdata:o?r.customdata[c]:r.customdata,concentrationscale:T,source:M,target:g,value:+k}),_.source.push(M),_.target.push(g)}}var z=x+p.length,O=jC(t.color),V=jC(t.customdata),G=[];for(c=0;cx-1,childrenNodes:[],pointNumber:c,label:Z,color:O?t.color[c]:t.color,customdata:V?t.customdata[c]:t.customdata})}var H=!1;return zXt(z,_.source,_.target)&&(H=!0),{circular:H,links:n,nodes:G,groups:p,groupLookup:C}}function zXt(e,t,r){for(var n=k5.init2dArray(e,0),i=0;i1})}aWe.exports=function(t,r){var n=FXt(r);return DXt({circular:n.circular,_nodes:n.nodes,_links:n.links,_groups:n.groups,_groupLookup:n.groupLookup})}});var lWe=ye((d7,sWe)=>{(function(e,t){typeof d7=="object"&&typeof sWe!="undefined"?t(d7):(e=e||self,t(e.d3=e.d3||{}))})(d7,function(e){"use strict";function t(k){var M=+this._x.call(null,k),g=+this._y.call(null,k);return r(this.cover(M,g),M,g,k)}function r(k,M,g,P){if(isNaN(M)||isNaN(g))return k;var T,z=k._root,O={data:P},V=k._x0,G=k._y0,Z=k._x1,H=k._y1,N,j,re,oe,_e,Me,ke,me;if(!z)return k._root=O,k;for(;z.length;)if((_e=M>=(N=(V+Z)/2))?V=N:Z=N,(Me=g>=(j=(G+H)/2))?G=j:H=j,T=z,!(z=z[ke=Me<<1|_e]))return T[ke]=O,k;if(re=+k._x.call(null,z.data),oe=+k._y.call(null,z.data),M===re&&g===oe)return O.next=z,T?T[ke]=O:k._root=O,k;do T=T?T[ke]=new Array(4):k._root=new Array(4),(_e=M>=(N=(V+Z)/2))?V=N:Z=N,(Me=g>=(j=(G+H)/2))?G=j:H=j;while((ke=Me<<1|_e)===(me=(oe>=j)<<1|re>=N));return T[me]=z,T[ke]=O,k}function n(k){var M,g,P=k.length,T,z,O=new Array(P),V=new Array(P),G=1/0,Z=1/0,H=-1/0,N=-1/0;for(g=0;gH&&(H=T),zN&&(N=z));if(G>H||Z>N)return this;for(this.cover(G,Z).cover(H,N),g=0;gk||k>=T||P>M||M>=z;)switch(Z=(MH||(V=oe.y0)>N||(G=oe.x1)=ke)<<1|k>=Me)&&(oe=j[j.length-1],j[j.length-1]=j[j.length-1-_e],j[j.length-1-_e]=oe)}else{var me=k-+this._x.call(null,re.data),ie=M-+this._y.call(null,re.data),Se=me*me+ie*ie;if(Se=(j=(O+G)/2))?O=j:G=j,(_e=N>=(re=(V+Z)/2))?V=re:Z=re,M=g,!(g=g[Me=_e<<1|oe]))return this;if(!g.length)break;(M[Me+1&3]||M[Me+2&3]||M[Me+3&3])&&(P=M,ke=Me)}for(;g.data!==k;)if(T=g,!(g=g.next))return this;return(z=g.next)&&delete g.next,T?(z?T.next=z:delete T.next,this):M?(z?M[Me]=z:delete M[Me],(g=M[0]||M[1]||M[2]||M[3])&&g===(M[3]||M[2]||M[1]||M[0])&&!g.length&&(P?P[ke]=g:this._root=g),this):(this._root=z,this)}function c(k){for(var M=0,g=k.length;M{(function(e,t){t(typeof v7=="object"&&typeof uWe!="undefined"?v7:e.d3=e.d3||{})})(v7,function(e){"use strict";var t="$";function r(){}r.prototype=n.prototype={constructor:r,has:function(x){return t+x in this},get:function(x){return this[t+x]},set:function(x,b){return this[t+x]=b,this},remove:function(x){var b=t+x;return b in this&&delete this[b]},clear:function(){for(var x in this)x[0]===t&&delete this[x]},keys:function(){var x=[];for(var b in this)b[0]===t&&x.push(b.slice(1));return x},values:function(){var x=[];for(var b in this)b[0]===t&&x.push(this[b]);return x},entries:function(){var x=[];for(var b in this)b[0]===t&&x.push({key:b.slice(1),value:this[b]});return x},size:function(){var x=0;for(var b in this)b[0]===t&&++x;return x},empty:function(){for(var x in this)if(x[0]===t)return!1;return!0},each:function(x){for(var b in this)b[0]===t&&x(this[b],b.slice(1),this)}};function n(x,b){var p=new r;if(x instanceof r)x.each(function(_,k){p.set(k,_)});else if(Array.isArray(x)){var C=-1,E=x.length,A;if(b==null)for(;++C=x.length)return p!=null&&_.sort(p),C!=null?C(_):_;for(var P=-1,T=_.length,z=x[k++],O,V,G=n(),Z,H=M();++Px.length)return _;var M,g=b[k-1];return C!=null&&k>=x.length?M=_.entries():(M=[],_.each(function(P,T){M.push({key:T,values:L(P,k)})})),g!=null?M.sort(function(P,T){return g(P.key,T.key)}):M}return E={object:function(_){return A(_,0,a,o)},map:function(_){return A(_,0,s,l)},entries:function(_){return L(A(_,0,s,l),0)},key:function(_){return x.push(_),E},sortKeys:function(_){return b[x.length-1]=_,E},sortValues:function(_){return p=_,E},rollup:function(_){return C=_,E}}}function a(){return{}}function o(x,b,p){x[b]=p}function s(){return n()}function l(x,b,p){x.set(b,p)}function u(){}var c=n.prototype;u.prototype=f.prototype={constructor:u,has:c.has,add:function(x){return x+="",this[t+x]=x,this},remove:c.remove,clear:c.clear,values:c.keys,size:c.size,empty:c.empty,each:c.each};function f(x,b){var p=new u;if(x instanceof u)x.each(function(A){p.add(A)});else if(x){var C=-1,E=x.length;if(b==null)for(;++C{(function(e,t){typeof g7=="object"&&typeof cWe!="undefined"?t(g7):(e=e||self,t(e.d3=e.d3||{}))})(g7,function(e){"use strict";var t={value:function(){}};function r(){for(var s=0,l=arguments.length,u={},c;s=0&&(c=u.slice(f+1),u=u.slice(0,f)),u&&!l.hasOwnProperty(u))throw new Error("unknown type: "+u);return{type:u,name:c}})}n.prototype=r.prototype={constructor:n,on:function(s,l){var u=this._,c=i(s+"",u),f,h=-1,d=c.length;if(arguments.length<2){for(;++h0)for(var u=new Array(f),c=0,f,h;c{(function(e,t){typeof m7=="object"&&typeof hWe!="undefined"?t(m7):(e=e||self,t(e.d3=e.d3||{}))})(m7,function(e){"use strict";var t=0,r=0,n=0,i=1e3,a,o,s=0,l=0,u=0,c=typeof performance=="object"&&performance.now?performance:Date,f=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(k){setTimeout(k,17)};function h(){return l||(f(d),l=c.now()+u)}function d(){l=0}function v(){this._call=this._time=this._next=null}v.prototype=x.prototype={constructor:v,restart:function(k,M,g){if(typeof k!="function")throw new TypeError("callback is not a function");g=(g==null?h():+g)+(M==null?0:+M),!this._next&&o!==this&&(o?o._next=this:a=this,o=this),this._call=k,this._time=g,A()},stop:function(){this._call&&(this._call=null,this._time=1/0,A())}};function x(k,M,g){var P=new v;return P.restart(k,M,g),P}function b(){h(),++t;for(var k=a,M;k;)(M=l-k._time)>=0&&k._call.call(null,M),k=k._next;--t}function p(){l=(s=c.now())+u,t=r=0;try{b()}finally{t=0,E(),l=0}}function C(){var k=c.now(),M=k-s;M>i&&(u-=M,s=k)}function E(){for(var k,M=a,g,P=1/0;M;)M._call?(P>M._time&&(P=M._time),k=M,M=M._next):(g=M._next,M._next=null,M=k?k._next=g:a=g);o=k,A(P)}function A(k){if(!t){r&&(r=clearTimeout(r));var M=k-l;M>24?(k<1/0&&(r=setTimeout(p,k-c.now()-u)),n&&(n=clearInterval(n))):(n||(s=c.now(),n=setInterval(C,i)),t=1,f(p))}}function L(k,M,g){var P=new v;return M=M==null?0:+M,P.restart(function(T){P.stop(),k(T+M)},M,g),P}function _(k,M,g){var P=new v,T=M;return M==null?(P.restart(k,M,g),P):(M=+M,g=g==null?h():+g,P.restart(function z(O){O+=T,P.restart(z,T+=M,g),k(O)},M,g),P)}e.interval=_,e.now=h,e.timeout=L,e.timer=x,e.timerFlush=b,Object.defineProperty(e,"__esModule",{value:!0})})});var pWe=ye((y7,vWe)=>{(function(e,t){typeof y7=="object"&&typeof vWe!="undefined"?t(y7,lWe(),p7(),fWe(),dWe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,e.d3)})(y7,function(e,t,r,n,i){"use strict";function a(k,M){var g;k==null&&(k=0),M==null&&(M=0);function P(){var T,z=g.length,O,V=0,G=0;for(T=0;TN.index){var De=j-Fe.x-Fe.vx,ce=re-Fe.y-Fe.vy,Ze=De*De+ce*ce;Zej+ge||Lere+ge||AeG.r&&(G.r=G[Z].r)}function V(){if(M){var G,Z=M.length,H;for(g=new Array(Z),G=0;G1?(_e==null?V.remove(oe):V.set(oe,re(_e)),M):V.get(oe)},find:function(oe,_e,Me){var ke=0,me=k.length,ie,Se,Le,Ae,Fe;for(Me==null?Me=1/0:Me*=Me,ke=0;ke1?(Z.on(oe,_e),M):Z.on(oe)}}}function E(){var k,M,g,P=o(-30),T,z=1,O=1/0,V=.81;function G(j){var re,oe=k.length,_e=t.quadtree(k,v,x).visitAfter(H);for(g=j,re=0;re=O)return;(j.data!==M||j.next)&&(Me===0&&(Me=s(),ie+=Me*Me),ke===0&&(ke=s(),ie+=ke*ke),ie{(function(e,t){typeof _7=="object"&&typeof gWe!="undefined"?t(_7):(e=e||self,t(e.d3=e.d3||{}))})(_7,function(e){"use strict";var t=Math.PI,r=2*t,n=1e-6,i=r-n;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new a}a.prototype=o.prototype={constructor:a,moveTo:function(s,l){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(s,l){this._+="L"+(this._x1=+s)+","+(this._y1=+l)},quadraticCurveTo:function(s,l,u,c){this._+="Q"+ +s+","+ +l+","+(this._x1=+u)+","+(this._y1=+c)},bezierCurveTo:function(s,l,u,c,f,h){this._+="C"+ +s+","+ +l+","+ +u+","+ +c+","+(this._x1=+f)+","+(this._y1=+h)},arcTo:function(s,l,u,c,f){s=+s,l=+l,u=+u,c=+c,f=+f;var h=this._x1,d=this._y1,v=u-s,x=c-l,b=h-s,p=d-l,C=b*b+p*p;if(f<0)throw new Error("negative radius: "+f);if(this._x1===null)this._+="M"+(this._x1=s)+","+(this._y1=l);else if(C>n)if(!(Math.abs(p*v-x*b)>n)||!f)this._+="L"+(this._x1=s)+","+(this._y1=l);else{var E=u-h,A=c-d,L=v*v+x*x,_=E*E+A*A,k=Math.sqrt(L),M=Math.sqrt(C),g=f*Math.tan((t-Math.acos((L+C-_)/(2*k*M)))/2),P=g/M,T=g/k;Math.abs(P-1)>n&&(this._+="L"+(s+P*b)+","+(l+P*p)),this._+="A"+f+","+f+",0,0,"+ +(p*E>b*A)+","+(this._x1=s+T*v)+","+(this._y1=l+T*x)}},arc:function(s,l,u,c,f,h){s=+s,l=+l,u=+u,h=!!h;var d=u*Math.cos(c),v=u*Math.sin(c),x=s+d,b=l+v,p=1^h,C=h?c-f:f-c;if(u<0)throw new Error("negative radius: "+u);this._x1===null?this._+="M"+x+","+b:(Math.abs(this._x1-x)>n||Math.abs(this._y1-b)>n)&&(this._+="L"+x+","+b),u&&(C<0&&(C=C%r+r),C>i?this._+="A"+u+","+u+",0,1,"+p+","+(s-d)+","+(l-v)+"A"+u+","+u+",0,1,"+p+","+(this._x1=x)+","+(this._y1=b):C>n&&(this._+="A"+u+","+u+",0,"+ +(C>=t)+","+p+","+(this._x1=s+u*Math.cos(f))+","+(this._y1=l+u*Math.sin(f))))},rect:function(s,l,u,c){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)+"h"+ +u+"v"+ +c+"h"+-u+"Z"},toString:function(){return this._}},e.path=o,Object.defineProperty(e,"__esModule",{value:!0})})});var UJ=ye((x7,yWe)=>{(function(e,t){typeof x7=="object"&&typeof yWe!="undefined"?t(x7,mWe()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(x7,function(e,t){"use strict";function r(At){return function(){return At}}var n=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,l=Math.sin,u=Math.sqrt,c=1e-12,f=Math.PI,h=f/2,d=2*f;function v(At){return At>1?0:At<-1?f:Math.acos(At)}function x(At){return At>=1?h:At<=-1?-h:Math.asin(At)}function b(At){return At.innerRadius}function p(At){return At.outerRadius}function C(At){return At.startAngle}function E(At){return At.endAngle}function A(At){return At&&At.padAngle}function L(At,kr,Qr,di,fn,Sn,En,ki){var _n=Qr-At,ya=di-kr,Jn=En-fn,Ma=ki-Sn,_o=Ma*_n-Jn*ya;if(!(_o*_oZl*Zl+Su*Su&&(Ss=Js,fl=Os),{cx:Ss,cy:fl,x01:-Jn,y01:-Ma,x11:Ss*(fn/Fl-1),y11:fl*(fn/Fl-1)}}function k(){var At=b,kr=p,Qr=r(0),di=null,fn=C,Sn=E,En=A,ki=null;function _n(){var ya,Jn,Ma=+At.apply(this,arguments),_o=+kr.apply(this,arguments),No=fn.apply(this,arguments)-h,po=Sn.apply(this,arguments)-h,Lo=n(po-No),Co=po>No;if(ki||(ki=ya=t.path()),_oc))ki.moveTo(0,0);else if(Lo>d-c)ki.moveTo(_o*a(No),_o*l(No)),ki.arc(0,0,_o,No,po,!Co),Ma>c&&(ki.moveTo(Ma*a(po),Ma*l(po)),ki.arc(0,0,Ma,po,No,Co));else{var Fs=No,zs=po,ul=No,cl=po,Fl=Lo,cs=Lo,nl=En.apply(this,arguments)/2,Ss=nl>c&&(di?+di.apply(this,arguments):u(Ma*Ma+_o*_o)),fl=s(n(_o-Ma)/2,+Qr.apply(this,arguments)),Js=fl,Os=fl,Io,us;if(Ss>c){var Zl=x(Ss/Ma*l(nl)),Su=x(Ss/_o*l(nl));(Fl-=Zl*2)>c?(Zl*=Co?1:-1,ul+=Zl,cl-=Zl):(Fl=0,ul=cl=(No+po)/2),(cs-=Su*2)>c?(Su*=Co?1:-1,Fs+=Su,zs-=Su):(cs=0,Fs=zs=(No+po)/2)}var nc=_o*a(Fs),ws=_o*l(Fs),Fn=Ma*a(cl),_a=Ma*l(cl);if(fl>c){var Vu=_o*a(zs),zl=_o*l(zs),xo=Ma*a(ul),Yl=Ma*l(ul),Us;if(Loc?Os>c?(Io=_(xo,Yl,nc,ws,_o,Os,Co),us=_(Vu,zl,Fn,_a,_o,Os,Co),ki.moveTo(Io.cx+Io.x01,Io.cy+Io.y01),Osc)||!(Fl>c)?ki.lineTo(Fn,_a):Js>c?(Io=_(Fn,_a,Vu,zl,Ma,-Js,Co),us=_(nc,ws,xo,Yl,Ma,-Js,Co),ki.lineTo(Io.cx+Io.x01,Io.cy+Io.y01),Js=_o;--No)ki.point(zs[No],ul[No]);ki.lineEnd(),ki.areaEnd()}Co&&(zs[Ma]=+At(Lo,Ma,Jn),ul[Ma]=+Qr(Lo,Ma,Jn),ki.point(kr?+kr(Lo,Ma,Jn):zs[Ma],di?+di(Lo,Ma,Jn):ul[Ma]))}if(Fs)return ki=null,Fs+""||null}function ya(){return z().defined(fn).curve(En).context(Sn)}return _n.x=function(Jn){return arguments.length?(At=typeof Jn=="function"?Jn:r(+Jn),kr=null,_n):At},_n.x0=function(Jn){return arguments.length?(At=typeof Jn=="function"?Jn:r(+Jn),_n):At},_n.x1=function(Jn){return arguments.length?(kr=Jn==null?null:typeof Jn=="function"?Jn:r(+Jn),_n):kr},_n.y=function(Jn){return arguments.length?(Qr=typeof Jn=="function"?Jn:r(+Jn),di=null,_n):Qr},_n.y0=function(Jn){return arguments.length?(Qr=typeof Jn=="function"?Jn:r(+Jn),_n):Qr},_n.y1=function(Jn){return arguments.length?(di=Jn==null?null:typeof Jn=="function"?Jn:r(+Jn),_n):di},_n.lineX0=_n.lineY0=function(){return ya().x(At).y(Qr)},_n.lineY1=function(){return ya().x(At).y(di)},_n.lineX1=function(){return ya().x(kr).y(Qr)},_n.defined=function(Jn){return arguments.length?(fn=typeof Jn=="function"?Jn:r(!!Jn),_n):fn},_n.curve=function(Jn){return arguments.length?(En=Jn,Sn!=null&&(ki=En(Sn)),_n):En},_n.context=function(Jn){return arguments.length?(Jn==null?Sn=ki=null:ki=En(Sn=Jn),_n):Sn},_n}function V(At,kr){return krAt?1:kr>=At?0:NaN}function G(At){return At}function Z(){var At=G,kr=V,Qr=null,di=r(0),fn=r(d),Sn=r(0);function En(ki){var _n,ya=ki.length,Jn,Ma,_o=0,No=new Array(ya),po=new Array(ya),Lo=+di.apply(this,arguments),Co=Math.min(d,Math.max(-d,fn.apply(this,arguments)-Lo)),Fs,zs=Math.min(Math.abs(Co)/ya,Sn.apply(this,arguments)),ul=zs*(Co<0?-1:1),cl;for(_n=0;_n0&&(_o+=cl);for(kr!=null?No.sort(function(Fl,cs){return kr(po[Fl],po[cs])}):Qr!=null&&No.sort(function(Fl,cs){return Qr(ki[Fl],ki[cs])}),_n=0,Ma=_o?(Co-ya*ul)/_o:0;_n0?cl*Ma:0)+ul,po[Jn]={data:ki[Jn],index:_n,value:cl,startAngle:Lo,endAngle:Fs,padAngle:zs};return po}return En.value=function(ki){return arguments.length?(At=typeof ki=="function"?ki:r(+ki),En):At},En.sortValues=function(ki){return arguments.length?(kr=ki,Qr=null,En):kr},En.sort=function(ki){return arguments.length?(Qr=ki,kr=null,En):Qr},En.startAngle=function(ki){return arguments.length?(di=typeof ki=="function"?ki:r(+ki),En):di},En.endAngle=function(ki){return arguments.length?(fn=typeof ki=="function"?ki:r(+ki),En):fn},En.padAngle=function(ki){return arguments.length?(Sn=typeof ki=="function"?ki:r(+ki),En):Sn},En}var H=j(g);function N(At){this._curve=At}N.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(At,kr){this._curve.point(kr*Math.sin(At),kr*-Math.cos(At))}};function j(At){function kr(Qr){return new N(At(Qr))}return kr._curve=At,kr}function re(At){var kr=At.curve;return At.angle=At.x,delete At.x,At.radius=At.y,delete At.y,At.curve=function(Qr){return arguments.length?kr(j(Qr)):kr()._curve},At}function oe(){return re(z().curve(H))}function _e(){var At=O().curve(H),kr=At.curve,Qr=At.lineX0,di=At.lineX1,fn=At.lineY0,Sn=At.lineY1;return At.angle=At.x,delete At.x,At.startAngle=At.x0,delete At.x0,At.endAngle=At.x1,delete At.x1,At.radius=At.y,delete At.y,At.innerRadius=At.y0,delete At.y0,At.outerRadius=At.y1,delete At.y1,At.lineStartAngle=function(){return re(Qr())},delete At.lineX0,At.lineEndAngle=function(){return re(di())},delete At.lineX1,At.lineInnerRadius=function(){return re(fn())},delete At.lineY0,At.lineOuterRadius=function(){return re(Sn())},delete At.lineY1,At.curve=function(En){return arguments.length?kr(j(En)):kr()._curve},At}function Me(At,kr){return[(kr=+kr)*Math.cos(At-=Math.PI/2),kr*Math.sin(At)]}var ke=Array.prototype.slice;function me(At){return At.source}function ie(At){return At.target}function Se(At){var kr=me,Qr=ie,di=P,fn=T,Sn=null;function En(){var ki,_n=ke.call(arguments),ya=kr.apply(this,_n),Jn=Qr.apply(this,_n);if(Sn||(Sn=ki=t.path()),At(Sn,+di.apply(this,(_n[0]=ya,_n)),+fn.apply(this,_n),+di.apply(this,(_n[0]=Jn,_n)),+fn.apply(this,_n)),ki)return Sn=null,ki+""||null}return En.source=function(ki){return arguments.length?(kr=ki,En):kr},En.target=function(ki){return arguments.length?(Qr=ki,En):Qr},En.x=function(ki){return arguments.length?(di=typeof ki=="function"?ki:r(+ki),En):di},En.y=function(ki){return arguments.length?(fn=typeof ki=="function"?ki:r(+ki),En):fn},En.context=function(ki){return arguments.length?(Sn=ki==null?null:ki,En):Sn},En}function Le(At,kr,Qr,di,fn){At.moveTo(kr,Qr),At.bezierCurveTo(kr=(kr+di)/2,Qr,kr,fn,di,fn)}function Ae(At,kr,Qr,di,fn){At.moveTo(kr,Qr),At.bezierCurveTo(kr,Qr=(Qr+fn)/2,di,Qr,di,fn)}function Fe(At,kr,Qr,di,fn){var Sn=Me(kr,Qr),En=Me(kr,Qr=(Qr+fn)/2),ki=Me(di,Qr),_n=Me(di,fn);At.moveTo(Sn[0],Sn[1]),At.bezierCurveTo(En[0],En[1],ki[0],ki[1],_n[0],_n[1])}function Pe(){return Se(Le)}function ge(){return Se(Ae)}function De(){var At=Se(Fe);return At.angle=At.x,delete At.x,At.radius=At.y,delete At.y,At}var ce={draw:function(At,kr){var Qr=Math.sqrt(kr/f);At.moveTo(Qr,0),At.arc(0,0,Qr,0,d)}},Ze={draw:function(At,kr){var Qr=Math.sqrt(kr/5)/2;At.moveTo(-3*Qr,-Qr),At.lineTo(-Qr,-Qr),At.lineTo(-Qr,-3*Qr),At.lineTo(Qr,-3*Qr),At.lineTo(Qr,-Qr),At.lineTo(3*Qr,-Qr),At.lineTo(3*Qr,Qr),At.lineTo(Qr,Qr),At.lineTo(Qr,3*Qr),At.lineTo(-Qr,3*Qr),At.lineTo(-Qr,Qr),At.lineTo(-3*Qr,Qr),At.closePath()}},ut=Math.sqrt(1/3),gt=ut*2,Kt={draw:function(At,kr){var Qr=Math.sqrt(kr/gt),di=Qr*ut;At.moveTo(0,-Qr),At.lineTo(di,0),At.lineTo(0,Qr),At.lineTo(-di,0),At.closePath()}},st=.8908130915292852,lt=Math.sin(f/10)/Math.sin(7*f/10),Gt=Math.sin(d/10)*lt,Ut=-Math.cos(d/10)*lt,$t={draw:function(At,kr){var Qr=Math.sqrt(kr*st),di=Gt*Qr,fn=Ut*Qr;At.moveTo(0,-Qr),At.lineTo(di,fn);for(var Sn=1;Sn<5;++Sn){var En=d*Sn/5,ki=Math.cos(En),_n=Math.sin(En);At.lineTo(_n*Qr,-ki*Qr),At.lineTo(ki*di-_n*fn,_n*di+ki*fn)}At.closePath()}},sr={draw:function(At,kr){var Qr=Math.sqrt(kr),di=-Qr/2;At.rect(di,di,Qr,Qr)}},Tr=Math.sqrt(3),ur={draw:function(At,kr){var Qr=-Math.sqrt(kr/(Tr*3));At.moveTo(0,Qr*2),At.lineTo(-Tr*Qr,-Qr),At.lineTo(Tr*Qr,-Qr),At.closePath()}},$e=-.5,Mt=Math.sqrt(3)/2,Ct=1/Math.sqrt(12),Vt=(Ct/2+1)*3,It={draw:function(At,kr){var Qr=Math.sqrt(kr/Vt),di=Qr/2,fn=Qr*Ct,Sn=di,En=Qr*Ct+Qr,ki=-Sn,_n=En;At.moveTo(di,fn),At.lineTo(Sn,En),At.lineTo(ki,_n),At.lineTo($e*di-Mt*fn,Mt*di+$e*fn),At.lineTo($e*Sn-Mt*En,Mt*Sn+$e*En),At.lineTo($e*ki-Mt*_n,Mt*ki+$e*_n),At.lineTo($e*di+Mt*fn,$e*fn-Mt*di),At.lineTo($e*Sn+Mt*En,$e*En-Mt*Sn),At.lineTo($e*ki+Mt*_n,$e*_n-Mt*ki),At.closePath()}},Ot=[ce,Ze,Kt,sr,$t,ur,It];function bt(){var At=r(ce),kr=r(64),Qr=null;function di(){var fn;if(Qr||(Qr=fn=t.path()),At.apply(this,arguments).draw(Qr,+kr.apply(this,arguments)),fn)return Qr=null,fn+""||null}return di.type=function(fn){return arguments.length?(At=typeof fn=="function"?fn:r(fn),di):At},di.size=function(fn){return arguments.length?(kr=typeof fn=="function"?fn:r(+fn),di):kr},di.context=function(fn){return arguments.length?(Qr=fn==null?null:fn,di):Qr},di}function rr(){}function lr(At,kr,Qr){At._context.bezierCurveTo((2*At._x0+At._x1)/3,(2*At._y0+At._y1)/3,(At._x0+2*At._x1)/3,(At._y0+2*At._y1)/3,(At._x0+4*At._x1+kr)/6,(At._y0+4*At._y1+Qr)/6)}function wr(At){this._context=At}wr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:lr(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(At,kr){switch(At=+At,kr=+kr,this._point){case 0:this._point=1,this._line?this._context.lineTo(At,kr):this._context.moveTo(At,kr);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:lr(this,At,kr);break}this._x0=this._x1,this._x1=At,this._y0=this._y1,this._y1=kr}};function Cr(At){return new wr(At)}function Kr(At){this._context=At}Kr.prototype={areaStart:rr,areaEnd:rr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(At,kr){switch(At=+At,kr=+kr,this._point){case 0:this._point=1,this._x2=At,this._y2=kr;break;case 1:this._point=2,this._x3=At,this._y3=kr;break;case 2:this._point=3,this._x4=At,this._y4=kr,this._context.moveTo((this._x0+4*this._x1+At)/6,(this._y0+4*this._y1+kr)/6);break;default:lr(this,At,kr);break}this._x0=this._x1,this._x1=At,this._y0=this._y1,this._y1=kr}};function Gr(At){return new Kr(At)}function Yr(At){this._context=At}Yr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(At,kr){switch(At=+At,kr=+kr,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var Qr=(this._x0+4*this._x1+At)/6,di=(this._y0+4*this._y1+kr)/6;this._line?this._context.lineTo(Qr,di):this._context.moveTo(Qr,di);break;case 3:this._point=4;default:lr(this,At,kr);break}this._x0=this._x1,this._x1=At,this._y0=this._y1,this._y1=kr}};function dt(At){return new Yr(At)}function Ge(At,kr){this._basis=new wr(At),this._beta=kr}Ge.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var At=this._x,kr=this._y,Qr=At.length-1;if(Qr>0)for(var di=At[0],fn=kr[0],Sn=At[Qr]-di,En=kr[Qr]-fn,ki=-1,_n;++ki<=Qr;)_n=ki/Qr,this._basis.point(this._beta*At[ki]+(1-this._beta)*(di+_n*Sn),this._beta*kr[ki]+(1-this._beta)*(fn+_n*En));this._x=this._y=null,this._basis.lineEnd()},point:function(At,kr){this._x.push(+At),this._y.push(+kr)}};var Qe=function At(kr){function Qr(di){return kr===1?new wr(di):new Ge(di,kr)}return Qr.beta=function(di){return At(+di)},Qr}(.85);function je(At,kr,Qr){At._context.bezierCurveTo(At._x1+At._k*(At._x2-At._x0),At._y1+At._k*(At._y2-At._y0),At._x2+At._k*(At._x1-kr),At._y2+At._k*(At._y1-Qr),At._x2,At._y2)}function Je(At,kr){this._context=At,this._k=(1-kr)/6}Je.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:je(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(At,kr){switch(At=+At,kr=+kr,this._point){case 0:this._point=1,this._line?this._context.lineTo(At,kr):this._context.moveTo(At,kr);break;case 1:this._point=2,this._x1=At,this._y1=kr;break;case 2:this._point=3;default:je(this,At,kr);break}this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=kr}};var xt=function At(kr){function Qr(di){return new Je(di,kr)}return Qr.tension=function(di){return At(+di)},Qr}(0);function Ie(At,kr){this._context=At,this._k=(1-kr)/6}Ie.prototype={areaStart:rr,areaEnd:rr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(At,kr){switch(At=+At,kr=+kr,this._point){case 0:this._point=1,this._x3=At,this._y3=kr;break;case 1:this._point=2,this._context.moveTo(this._x4=At,this._y4=kr);break;case 2:this._point=3,this._x5=At,this._y5=kr;break;default:je(this,At,kr);break}this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=kr}};var xe=function At(kr){function Qr(di){return new Ie(di,kr)}return Qr.tension=function(di){return At(+di)},Qr}(0);function Ce(At,kr){this._context=At,this._k=(1-kr)/6}Ce.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(At,kr){switch(At=+At,kr=+kr,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:je(this,At,kr);break}this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=kr}};var pt=function At(kr){function Qr(di){return new Ce(di,kr)}return Qr.tension=function(di){return At(+di)},Qr}(0);function nr(At,kr,Qr){var di=At._x1,fn=At._y1,Sn=At._x2,En=At._y2;if(At._l01_a>c){var ki=2*At._l01_2a+3*At._l01_a*At._l12_a+At._l12_2a,_n=3*At._l01_a*(At._l01_a+At._l12_a);di=(di*ki-At._x0*At._l12_2a+At._x2*At._l01_2a)/_n,fn=(fn*ki-At._y0*At._l12_2a+At._y2*At._l01_2a)/_n}if(At._l23_a>c){var ya=2*At._l23_2a+3*At._l23_a*At._l12_a+At._l12_2a,Jn=3*At._l23_a*(At._l23_a+At._l12_a);Sn=(Sn*ya+At._x1*At._l23_2a-kr*At._l12_2a)/Jn,En=(En*ya+At._y1*At._l23_2a-Qr*At._l12_2a)/Jn}At._context.bezierCurveTo(di,fn,Sn,En,At._x2,At._y2)}function ir(At,kr){this._context=At,this._alpha=kr}ir.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(At,kr){if(At=+At,kr=+kr,this._point){var Qr=this._x2-At,di=this._y2-kr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Qr*Qr+di*di,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(At,kr):this._context.moveTo(At,kr);break;case 1:this._point=2;break;case 2:this._point=3;default:nr(this,At,kr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=kr}};var vr=function At(kr){function Qr(di){return kr?new ir(di,kr):new Je(di,0)}return Qr.alpha=function(di){return At(+di)},Qr}(.5);function si(At,kr){this._context=At,this._alpha=kr}si.prototype={areaStart:rr,areaEnd:rr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(At,kr){if(At=+At,kr=+kr,this._point){var Qr=this._x2-At,di=this._y2-kr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Qr*Qr+di*di,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=At,this._y3=kr;break;case 1:this._point=2,this._context.moveTo(this._x4=At,this._y4=kr);break;case 2:this._point=3,this._x5=At,this._y5=kr;break;default:nr(this,At,kr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=kr}};var mi=function At(kr){function Qr(di){return kr?new si(di,kr):new Ie(di,0)}return Qr.alpha=function(di){return At(+di)},Qr}(.5);function ei(At,kr){this._context=At,this._alpha=kr}ei.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(At,kr){if(At=+At,kr=+kr,this._point){var Qr=this._x2-At,di=this._y2-kr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Qr*Qr+di*di,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:nr(this,At,kr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=kr}};var vi=function At(kr){function Qr(di){return kr?new ei(di,kr):new Ce(di,0)}return Qr.alpha=function(di){return At(+di)},Qr}(.5);function ji(At){this._context=At}ji.prototype={areaStart:rr,areaEnd:rr,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(At,kr){At=+At,kr=+kr,this._point?this._context.lineTo(At,kr):(this._point=1,this._context.moveTo(At,kr))}};function Rn(At){return new ji(At)}function wn(At){return At<0?-1:1}function pn(At,kr,Qr){var di=At._x1-At._x0,fn=kr-At._x1,Sn=(At._y1-At._y0)/(di||fn<0&&-0),En=(Qr-At._y1)/(fn||di<0&&-0),ki=(Sn*fn+En*di)/(di+fn);return(wn(Sn)+wn(En))*Math.min(Math.abs(Sn),Math.abs(En),.5*Math.abs(ki))||0}function Vn(At,kr){var Qr=At._x1-At._x0;return Qr?(3*(At._y1-At._y0)/Qr-kr)/2:kr}function kn(At,kr,Qr){var di=At._x0,fn=At._y0,Sn=At._x1,En=At._y1,ki=(Sn-di)/3;At._context.bezierCurveTo(di+ki,fn+ki*kr,Sn-ki,En-ki*Qr,Sn,En)}function ea(At){this._context=At}ea.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:kn(this,this._t0,Vn(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(At,kr){var Qr=NaN;if(At=+At,kr=+kr,!(At===this._x1&&kr===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(At,kr):this._context.moveTo(At,kr);break;case 1:this._point=2;break;case 2:this._point=3,kn(this,Vn(this,Qr=pn(this,At,kr)),Qr);break;default:kn(this,this._t0,Qr=pn(this,At,kr));break}this._x0=this._x1,this._x1=At,this._y0=this._y1,this._y1=kr,this._t0=Qr}}};function ua(At){this._context=new Ht(At)}(ua.prototype=Object.create(ea.prototype)).point=function(At,kr){ea.prototype.point.call(this,kr,At)};function Ht(At){this._context=At}Ht.prototype={moveTo:function(At,kr){this._context.moveTo(kr,At)},closePath:function(){this._context.closePath()},lineTo:function(At,kr){this._context.lineTo(kr,At)},bezierCurveTo:function(At,kr,Qr,di,fn,Sn){this._context.bezierCurveTo(kr,At,di,Qr,Sn,fn)}};function yt(At){return new ea(At)}function er(At){return new ua(At)}function ar(At){this._context=At}ar.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var At=this._x,kr=this._y,Qr=At.length;if(Qr)if(this._line?this._context.lineTo(At[0],kr[0]):this._context.moveTo(At[0],kr[0]),Qr===2)this._context.lineTo(At[1],kr[1]);else for(var di=Er(At),fn=Er(kr),Sn=0,En=1;En=0;--kr)fn[kr]=(En[kr]-fn[kr+1])/Sn[kr];for(Sn[Qr-1]=(At[Qr]+fn[Qr-1])/2,kr=0;kr=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(At,kr){switch(At=+At,kr=+kr,this._point){case 0:this._point=1,this._line?this._context.lineTo(At,kr):this._context.moveTo(At,kr);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,kr),this._context.lineTo(At,kr);else{var Qr=this._x*(1-this._t)+At*this._t;this._context.lineTo(Qr,this._y),this._context.lineTo(Qr,kr)}break}}this._x=At,this._y=kr}};function $r(At){return new ri(At,.5)}function zi(At){return new ri(At,0)}function Ji(At){return new ri(At,1)}function en(At,kr){if((En=At.length)>1)for(var Qr=1,di,fn,Sn=At[kr[0]],En,ki=Sn.length;Qr=0;)Qr[kr]=kr;return Qr}function yn(At,kr){return At[kr]}function Mn(){var At=r([]),kr=cn,Qr=en,di=yn;function fn(Sn){var En=At.apply(this,arguments),ki,_n=Sn.length,ya=En.length,Jn=new Array(ya),Ma;for(ki=0;ki0){for(var Qr,di,fn=0,Sn=At[0].length,En;fn0)for(var Qr,di=0,fn,Sn,En,ki,_n,ya=At[kr[0]].length;di0?(fn[0]=En,fn[1]=En+=Sn):Sn<0?(fn[1]=ki,fn[0]=ki+=Sn):(fn[0]=0,fn[1]=Sn)}function ma(At,kr){if((fn=At.length)>0){for(var Qr=0,di=At[kr[0]],fn,Sn=di.length;Qr0)||!((Sn=(fn=At[kr[0]]).length)>0))){for(var Qr=0,di=1,fn,Sn,En;diSn&&(Sn=fn,Qr=kr);return Qr}function da(At){var kr=At.map(Wn);return cn(At).sort(function(Qr,di){return kr[Qr]-kr[di]})}function Wn(At){for(var kr=0,Qr=-1,di=At.length,fn;++Qr{(function(e,t){typeof b7=="object"&&typeof _We!="undefined"?t(b7,eC(),p7(),UJ()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3)})(b7,function(e,t,r,n){"use strict";function i(g){return g.target.depth}function a(g){return g.depth}function o(g,P){return P-1-g.height}function s(g,P){return g.sourceLinks.length?g.depth:P-1}function l(g){return g.targetLinks.length?g.depth:g.sourceLinks.length?t.min(g.sourceLinks,i)-1:0}function u(g){return function(){return g}}function c(g,P){return h(g.source,P.source)||g.index-P.index}function f(g,P){return h(g.target,P.target)||g.index-P.index}function h(g,P){return g.y0-P.y0}function d(g){return g.value}function v(g){return(g.y0+g.y1)/2}function x(g){return v(g.source)*g.value}function b(g){return v(g.target)*g.value}function p(g){return g.index}function C(g){return g.nodes}function E(g){return g.links}function A(g,P){var T=g.get(P);if(!T)throw new Error("missing: "+P);return T}var L=function(){var g=0,P=0,T=1,z=1,O=24,V=8,G=p,Z=s,H=C,N=E,j=32,re=2/3;function oe(){var Se={nodes:H.apply(null,arguments),links:N.apply(null,arguments)};return _e(Se),Me(Se),ke(Se),me(Se,j),ie(Se),Se}oe.update=function(Se){return ie(Se),Se},oe.nodeId=function(Se){return arguments.length?(G=typeof Se=="function"?Se:u(Se),oe):G},oe.nodeAlign=function(Se){return arguments.length?(Z=typeof Se=="function"?Se:u(Se),oe):Z},oe.nodeWidth=function(Se){return arguments.length?(O=+Se,oe):O},oe.nodePadding=function(Se){return arguments.length?(V=+Se,oe):V},oe.nodes=function(Se){return arguments.length?(H=typeof Se=="function"?Se:u(Se),oe):H},oe.links=function(Se){return arguments.length?(N=typeof Se=="function"?Se:u(Se),oe):N},oe.size=function(Se){return arguments.length?(g=P=0,T=+Se[0],z=+Se[1],oe):[T-g,z-P]},oe.extent=function(Se){return arguments.length?(g=+Se[0][0],T=+Se[1][0],P=+Se[0][1],z=+Se[1][1],oe):[[g,P],[T,z]]},oe.iterations=function(Se){return arguments.length?(j=+Se,oe):j};function _e(Se){Se.nodes.forEach(function(Ae,Fe){Ae.index=Fe,Ae.sourceLinks=[],Ae.targetLinks=[]});var Le=r.map(Se.nodes,G);Se.links.forEach(function(Ae,Fe){Ae.index=Fe;var Pe=Ae.source,ge=Ae.target;typeof Pe!="object"&&(Pe=Ae.source=A(Le,Pe)),typeof ge!="object"&&(ge=Ae.target=A(Le,ge)),Pe.sourceLinks.push(Ae),ge.targetLinks.push(Ae)})}function Me(Se){Se.nodes.forEach(function(Le){Le.value=Math.max(t.sum(Le.sourceLinks,d),t.sum(Le.targetLinks,d))})}function ke(Se){var Le,Ae,Fe;for(Le=Se.nodes,Ae=[],Fe=0;Le.length;++Fe,Le=Ae,Ae=[])Le.forEach(function(ge){ge.depth=Fe,ge.sourceLinks.forEach(function(De){Ae.indexOf(De.target)<0&&Ae.push(De.target)})});for(Le=Se.nodes,Ae=[],Fe=0;Le.length;++Fe,Le=Ae,Ae=[])Le.forEach(function(ge){ge.height=Fe,ge.targetLinks.forEach(function(De){Ae.indexOf(De.source)<0&&Ae.push(De.source)})});var Pe=(T-g-O)/(Fe-1);Se.nodes.forEach(function(ge){ge.x1=(ge.x0=g+Math.max(0,Math.min(Fe-1,Math.floor(Z.call(null,ge,Fe))))*Pe)+O})}function me(Se){var Le=r.nest().key(function(Ze){return Ze.x0}).sortKeys(t.ascending).entries(Se.nodes).map(function(Ze){return Ze.values});Pe(),ce();for(var Ae=1,Fe=j;Fe>0;--Fe)De(Ae*=.99),ce(),ge(Ae),ce();function Pe(){var Ze=t.max(Le,function(Kt){return Kt.length}),ut=re*(z-P)/(Ze-1);V>ut&&(V=ut);var gt=t.min(Le,function(Kt){return(z-P-(Kt.length-1)*V)/t.sum(Kt,d)});Le.forEach(function(Kt){Kt.forEach(function(st,lt){st.y1=(st.y0=lt)+st.value*gt})}),Se.links.forEach(function(Kt){Kt.width=Kt.value*gt})}function ge(Ze){Le.forEach(function(ut){ut.forEach(function(gt){if(gt.targetLinks.length){var Kt=(t.sum(gt.targetLinks,x)/t.sum(gt.targetLinks,d)-v(gt))*Ze;gt.y0+=Kt,gt.y1+=Kt}})})}function De(Ze){Le.slice().reverse().forEach(function(ut){ut.forEach(function(gt){if(gt.sourceLinks.length){var Kt=(t.sum(gt.sourceLinks,b)/t.sum(gt.sourceLinks,d)-v(gt))*Ze;gt.y0+=Kt,gt.y1+=Kt}})})}function ce(){Le.forEach(function(Ze){var ut,gt,Kt=P,st=Ze.length,lt;for(Ze.sort(h),lt=0;lt0&&(ut.y0+=gt,ut.y1+=gt),Kt=ut.y1+V;if(gt=Kt-V-z,gt>0)for(Kt=ut.y0-=gt,ut.y1-=gt,lt=st-2;lt>=0;--lt)ut=Ze[lt],gt=ut.y1+V-Kt,gt>0&&(ut.y0-=gt,ut.y1-=gt),Kt=ut.y0})}}function ie(Se){Se.nodes.forEach(function(Le){Le.sourceLinks.sort(f),Le.targetLinks.sort(c)}),Se.nodes.forEach(function(Le){var Ae=Le.y0,Fe=Ae;Le.sourceLinks.forEach(function(Pe){Pe.y0=Ae+Pe.width/2,Ae+=Pe.width}),Le.targetLinks.forEach(function(Pe){Pe.y1=Fe+Pe.width/2,Fe+=Pe.width})})}return oe};function _(g){return[g.source.x1,g.y0]}function k(g){return[g.target.x0,g.y1]}var M=function(){return n.linkHorizontal().source(_).target(k)};e.sankey=L,e.sankeyCenter=l,e.sankeyLeft=a,e.sankeyRight=o,e.sankeyJustify=s,e.sankeyLinkHorizontal=M,Object.defineProperty(e,"__esModule",{value:!0})})});var wWe=ye((Yxr,bWe)=>{var OXt=NJ();bWe.exports=function(t,r){var n=[],i=[],a=[],o={},s=[],l;function u(E){a[E]=!1,o.hasOwnProperty(E)&&Object.keys(o[E]).forEach(function(A){delete o[E][A],a[A]&&u(A)})}function c(E){var A=!1;i.push(E),a[E]=!0;var L,_;for(L=0;L=E})}function d(E){h(E);for(var A=t,L=OXt(A),_=L.components.filter(function(O){return O.length>1}),k=1/0,M,g=0;g<_.length;g++)for(var P=0;P<_[g].length;P++)_[g][P]{(function(e,t){typeof w7=="object"&&typeof TWe!="undefined"?t(w7,eC(),p7(),UJ(),wWe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,null)})(w7,function(e,t,r,n,i){"use strict";i=i&&i.hasOwnProperty("default")?i.default:i;function a(st){return st.target.depth}function o(st){return st.depth}function s(st,lt){return lt-1-st.height}function l(st,lt){return st.sourceLinks.length?st.depth:lt-1}function u(st){return st.targetLinks.length?st.depth:st.sourceLinks.length?t.min(st.sourceLinks,a)-1:0}function c(st){return function(){return st}}var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(st){return typeof st}:function(st){return st&&typeof Symbol=="function"&&st.constructor===Symbol&&st!==Symbol.prototype?"symbol":typeof st};function h(st,lt){return v(st.source,lt.source)||st.index-lt.index}function d(st,lt){return v(st.target,lt.target)||st.index-lt.index}function v(st,lt){return st.partOfCycle===lt.partOfCycle?st.y0-lt.y0:st.circularLinkType==="top"||lt.circularLinkType==="bottom"?-1:1}function x(st){return st.value}function b(st){return(st.y0+st.y1)/2}function p(st){return b(st.source)}function C(st){return b(st.target)}function E(st){return st.index}function A(st){return st.nodes}function L(st){return st.links}function _(st,lt){var Gt=st.get(lt);if(!Gt)throw new Error("missing: "+lt);return Gt}function k(st,lt){return lt(st)}var M=25,g=10,P=.3;function T(){var st=0,lt=0,Gt=1,Ut=1,$t=24,sr,Tr=E,ur=l,$e=A,Mt=L,Ct=32,Vt=2,It,Ot=null;function bt(){var dt={nodes:$e.apply(null,arguments),links:Mt.apply(null,arguments)};rr(dt),z(dt,Tr,Ot),lr(dt),Kr(dt),O(dt,Tr),Gr(dt,Ct,Tr),Yr(dt);for(var Ge=4,Qe=0;Qe0?Ge+M+g:Ge,Qe=Qe>0?Qe+M+g:Qe,je=je>0?je+M+g:je,Je=Je>0?Je+M+g:Je,{top:Ge,bottom:Qe,left:Je,right:je}}function Cr(dt,Ge){var Qe=t.max(dt.nodes,function(pt){return pt.column}),je=Gt-st,Je=Ut-lt,xt=je+Ge.right+Ge.left,Ie=Je+Ge.top+Ge.bottom,xe=je/xt,Ce=Je/Ie;return st=st*xe+Ge.left,Gt=Ge.right==0?Gt:Gt*xe,lt=lt*Ce+Ge.top,Ut=Ut*Ce,dt.nodes.forEach(function(pt){pt.x0=st+pt.column*((Gt-st-$t)/Qe),pt.x1=pt.x0+$t}),Ce}function Kr(dt){var Ge,Qe,je;for(Ge=dt.nodes,Qe=[],je=0;Ge.length;++je,Ge=Qe,Qe=[])Ge.forEach(function(Je){Je.depth=je,Je.sourceLinks.forEach(function(xt){Qe.indexOf(xt.target)<0&&!xt.circular&&Qe.push(xt.target)})});for(Ge=dt.nodes,Qe=[],je=0;Ge.length;++je,Ge=Qe,Qe=[])Ge.forEach(function(Je){Je.height=je,Je.targetLinks.forEach(function(xt){Qe.indexOf(xt.source)<0&&!xt.circular&&Qe.push(xt.source)})});dt.nodes.forEach(function(Je){Je.column=Math.floor(ur.call(null,Je,je))})}function Gr(dt,Ge,Qe){var je=r.nest().key(function(pt){return pt.column}).sortKeys(t.ascending).entries(dt.nodes).map(function(pt){return pt.values});Ie(Qe),Ce();for(var Je=1,xt=Ge;xt>0;--xt)xe(Je*=.99,Qe),Ce();function Ie(pt){if(It){var nr=1/0;je.forEach(function(mi){var ei=Ut*It/(mi.length+1);nr=ei0))if(mi==0&&si==1)vi=ei.y1-ei.y0,ei.y0=Ut/2-vi/2,ei.y1=Ut/2+vi/2;else if(mi==ir-1&&si==1)vi=ei.y1-ei.y0,ei.y0=Ut/2-vi/2,ei.y1=Ut/2+vi/2;else{var ji=0,Rn=t.mean(ei.sourceLinks,C),wn=t.mean(ei.targetLinks,p);Rn&&wn?ji=(Rn+wn)/2:ji=Rn||wn;var pn=(ji-b(ei))*pt;ei.y0+=pn,ei.y1+=pn}})})}function Ce(){je.forEach(function(pt){var nr,ir,vr=lt,si=pt.length,mi;for(pt.sort(v),mi=0;mi0&&(nr.y0+=ir,nr.y1+=ir),vr=nr.y1+sr;if(ir=vr-sr-Ut,ir>0)for(vr=nr.y0-=ir,nr.y1-=ir,mi=si-2;mi>=0;--mi)nr=pt[mi],ir=nr.y1+sr-vr,ir>0&&(nr.y0-=ir,nr.y1-=ir),vr=nr.y0})}}function Yr(dt){dt.nodes.forEach(function(Ge){Ge.sourceLinks.sort(d),Ge.targetLinks.sort(h)}),dt.nodes.forEach(function(Ge){var Qe=Ge.y0,je=Qe,Je=Ge.y1,xt=Je;Ge.sourceLinks.forEach(function(Ie){Ie.circular?(Ie.y0=Je-Ie.width/2,Je=Je-Ie.width):(Ie.y0=Qe+Ie.width/2,Qe+=Ie.width)}),Ge.targetLinks.forEach(function(Ie){Ie.circular?(Ie.y1=xt-Ie.width/2,xt=xt-Ie.width):(Ie.y1=je+Ie.width/2,je+=Ie.width)})})}return bt}function z(st,lt,Gt){var Ut=0;if(Gt===null){for(var $t=[],sr=0;srlt.source.column)}function Z(st,lt){var Gt=0;st.sourceLinks.forEach(function($t){Gt=$t.circular&&!gt($t,lt)?Gt+1:Gt});var Ut=0;return st.targetLinks.forEach(function($t){Ut=$t.circular&&!gt($t,lt)?Ut+1:Ut}),Gt+Ut}function H(st){var lt=st.source.sourceLinks,Gt=0;lt.forEach(function(sr){Gt=sr.circular?Gt+1:Gt});var Ut=st.target.targetLinks,$t=0;return Ut.forEach(function(sr){$t=sr.circular?$t+1:$t}),!(Gt>1||$t>1)}function N(st,lt,Gt){return st.sort(oe),st.forEach(function(Ut,$t){var sr=0;if(gt(Ut,Gt)&&H(Ut))Ut.circularPathData.verticalBuffer=sr+Ut.width/2;else{var Tr=0;for(Tr;Tr<$t;Tr++)if(G(st[$t],st[Tr])){var ur=st[Tr].circularPathData.verticalBuffer+st[Tr].width/2+lt;sr=ur>sr?ur:sr}Ut.circularPathData.verticalBuffer=sr+Ut.width/2}}),st}function j(st,lt,Gt,Ut){var $t=5,sr=t.min(st.links,function($e){return $e.source.y0});st.links.forEach(function($e){$e.circular&&($e.circularPathData={})});var Tr=st.links.filter(function($e){return $e.circularLinkType=="top"});N(Tr,lt,Ut);var ur=st.links.filter(function($e){return $e.circularLinkType=="bottom"});N(ur,lt,Ut),st.links.forEach(function($e){if($e.circular){if($e.circularPathData.arcRadius=$e.width+g,$e.circularPathData.leftNodeBuffer=$t,$e.circularPathData.rightNodeBuffer=$t,$e.circularPathData.sourceWidth=$e.source.x1-$e.source.x0,$e.circularPathData.sourceX=$e.source.x0+$e.circularPathData.sourceWidth,$e.circularPathData.targetX=$e.target.x0,$e.circularPathData.sourceY=$e.y0,$e.circularPathData.targetY=$e.y1,gt($e,Ut)&&H($e))$e.circularPathData.leftSmallArcRadius=g+$e.width/2,$e.circularPathData.leftLargeArcRadius=g+$e.width/2,$e.circularPathData.rightSmallArcRadius=g+$e.width/2,$e.circularPathData.rightLargeArcRadius=g+$e.width/2,$e.circularLinkType=="bottom"?($e.circularPathData.verticalFullExtent=$e.source.y1+M+$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.rightLargeArcRadius):($e.circularPathData.verticalFullExtent=$e.source.y0-M-$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.rightLargeArcRadius);else{var Mt=$e.source.column,Ct=$e.circularLinkType,Vt=st.links.filter(function(bt){return bt.source.column==Mt&&bt.circularLinkType==Ct});$e.circularLinkType=="bottom"?Vt.sort(Me):Vt.sort(_e);var It=0;Vt.forEach(function(bt,rr){bt.circularLinkID==$e.circularLinkID&&($e.circularPathData.leftSmallArcRadius=g+$e.width/2+It,$e.circularPathData.leftLargeArcRadius=g+$e.width/2+rr*lt+It),It=It+bt.width}),Mt=$e.target.column,Vt=st.links.filter(function(bt){return bt.target.column==Mt&&bt.circularLinkType==Ct}),$e.circularLinkType=="bottom"?Vt.sort(me):Vt.sort(ke),It=0,Vt.forEach(function(bt,rr){bt.circularLinkID==$e.circularLinkID&&($e.circularPathData.rightSmallArcRadius=g+$e.width/2+It,$e.circularPathData.rightLargeArcRadius=g+$e.width/2+rr*lt+It),It=It+bt.width}),$e.circularLinkType=="bottom"?($e.circularPathData.verticalFullExtent=Math.max(Gt,$e.source.y1,$e.target.y1)+M+$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent-$e.circularPathData.rightLargeArcRadius):($e.circularPathData.verticalFullExtent=sr-M-$e.circularPathData.verticalBuffer,$e.circularPathData.verticalLeftInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.leftLargeArcRadius,$e.circularPathData.verticalRightInnerExtent=$e.circularPathData.verticalFullExtent+$e.circularPathData.rightLargeArcRadius)}$e.circularPathData.leftInnerExtent=$e.circularPathData.sourceX+$e.circularPathData.leftNodeBuffer,$e.circularPathData.rightInnerExtent=$e.circularPathData.targetX-$e.circularPathData.rightNodeBuffer,$e.circularPathData.leftFullExtent=$e.circularPathData.sourceX+$e.circularPathData.leftLargeArcRadius+$e.circularPathData.leftNodeBuffer,$e.circularPathData.rightFullExtent=$e.circularPathData.targetX-$e.circularPathData.rightLargeArcRadius-$e.circularPathData.rightNodeBuffer}if($e.circular)$e.path=re($e);else{var Ot=n.linkHorizontal().source(function(bt){var rr=bt.source.x0+(bt.source.x1-bt.source.x0),lr=bt.y0;return[rr,lr]}).target(function(bt){var rr=bt.target.x0,lr=bt.y1;return[rr,lr]});$e.path=Ot($e)}})}function re(st){var lt="";return st.circularLinkType=="top"?lt="M"+st.circularPathData.sourceX+" "+st.circularPathData.sourceY+" L"+st.circularPathData.leftInnerExtent+" "+st.circularPathData.sourceY+" A"+st.circularPathData.leftLargeArcRadius+" "+st.circularPathData.leftSmallArcRadius+" 0 0 0 "+st.circularPathData.leftFullExtent+" "+(st.circularPathData.sourceY-st.circularPathData.leftSmallArcRadius)+" L"+st.circularPathData.leftFullExtent+" "+st.circularPathData.verticalLeftInnerExtent+" A"+st.circularPathData.leftLargeArcRadius+" "+st.circularPathData.leftLargeArcRadius+" 0 0 0 "+st.circularPathData.leftInnerExtent+" "+st.circularPathData.verticalFullExtent+" L"+st.circularPathData.rightInnerExtent+" "+st.circularPathData.verticalFullExtent+" A"+st.circularPathData.rightLargeArcRadius+" "+st.circularPathData.rightLargeArcRadius+" 0 0 0 "+st.circularPathData.rightFullExtent+" "+st.circularPathData.verticalRightInnerExtent+" L"+st.circularPathData.rightFullExtent+" "+(st.circularPathData.targetY-st.circularPathData.rightSmallArcRadius)+" A"+st.circularPathData.rightLargeArcRadius+" "+st.circularPathData.rightSmallArcRadius+" 0 0 0 "+st.circularPathData.rightInnerExtent+" "+st.circularPathData.targetY+" L"+st.circularPathData.targetX+" "+st.circularPathData.targetY:lt="M"+st.circularPathData.sourceX+" "+st.circularPathData.sourceY+" L"+st.circularPathData.leftInnerExtent+" "+st.circularPathData.sourceY+" A"+st.circularPathData.leftLargeArcRadius+" "+st.circularPathData.leftSmallArcRadius+" 0 0 1 "+st.circularPathData.leftFullExtent+" "+(st.circularPathData.sourceY+st.circularPathData.leftSmallArcRadius)+" L"+st.circularPathData.leftFullExtent+" "+st.circularPathData.verticalLeftInnerExtent+" A"+st.circularPathData.leftLargeArcRadius+" "+st.circularPathData.leftLargeArcRadius+" 0 0 1 "+st.circularPathData.leftInnerExtent+" "+st.circularPathData.verticalFullExtent+" L"+st.circularPathData.rightInnerExtent+" "+st.circularPathData.verticalFullExtent+" A"+st.circularPathData.rightLargeArcRadius+" "+st.circularPathData.rightLargeArcRadius+" 0 0 1 "+st.circularPathData.rightFullExtent+" "+st.circularPathData.verticalRightInnerExtent+" L"+st.circularPathData.rightFullExtent+" "+(st.circularPathData.targetY+st.circularPathData.rightSmallArcRadius)+" A"+st.circularPathData.rightLargeArcRadius+" "+st.circularPathData.rightSmallArcRadius+" 0 0 1 "+st.circularPathData.rightInnerExtent+" "+st.circularPathData.targetY+" L"+st.circularPathData.targetX+" "+st.circularPathData.targetY,lt}function oe(st,lt){return ie(st)==ie(lt)?st.circularLinkType=="bottom"?Me(st,lt):_e(st,lt):ie(lt)-ie(st)}function _e(st,lt){return st.y0-lt.y0}function Me(st,lt){return lt.y0-st.y0}function ke(st,lt){return st.y1-lt.y1}function me(st,lt){return lt.y1-st.y1}function ie(st){return st.target.column-st.source.column}function Se(st){return st.target.x0-st.source.x1}function Le(st,lt){var Gt=V(st),Ut=Se(lt)/Math.tan(Gt),$t=ut(st)=="up"?st.y1+Ut:st.y1-Ut;return $t}function Ae(st,lt){var Gt=V(st),Ut=Se(lt)/Math.tan(Gt),$t=ut(st)=="up"?st.y1-Ut:st.y1+Ut;return $t}function Fe(st,lt,Gt,Ut){st.links.forEach(function($t){if(!$t.circular&&$t.target.column-$t.source.column>1){var sr=$t.source.column+1,Tr=$t.target.column-1,ur=1,$e=Tr-sr+1;for(ur=1;sr<=Tr;sr++,ur++)st.nodes.forEach(function(Mt){if(Mt.column==sr){var Ct=ur/($e+1),Vt=Math.pow(1-Ct,3),It=3*Ct*Math.pow(1-Ct,2),Ot=3*Math.pow(Ct,2)*(1-Ct),bt=Math.pow(Ct,3),rr=Vt*$t.y0+It*$t.y0+Ot*$t.y1+bt*$t.y1,lr=rr-$t.width/2,wr=rr+$t.width/2,Cr;lr>Mt.y0&&lrMt.y0&&wrMt.y1&&ge(Kr,Cr,lt,Gt)})):lrMt.y1&&(Cr=wr-Mt.y0+10,Mt=ge(Mt,Cr,lt,Gt),st.nodes.forEach(function(Kr){k(Kr,Ut)==k(Mt,Ut)||Kr.column!=Mt.column||Kr.y0Mt.y1&&ge(Kr,Cr,lt,Gt)}))}})}})}function Pe(st,lt){return st.y0>lt.y0&&st.y0lt.y0&&st.y1lt.y1}function ge(st,lt,Gt,Ut){return st.y0+lt>=Gt&&st.y1+lt<=Ut&&(st.y0=st.y0+lt,st.y1=st.y1+lt,st.targetLinks.forEach(function($t){$t.y1=$t.y1+lt}),st.sourceLinks.forEach(function($t){$t.y0=$t.y0+lt})),st}function De(st,lt,Gt,Ut){st.nodes.forEach(function($t){Ut&&$t.y+($t.y1-$t.y0)>lt&&($t.y=$t.y-($t.y+($t.y1-$t.y0)-lt));var sr=st.links.filter(function($e){return k($e.source,Gt)==k($t,Gt)}),Tr=sr.length;Tr>1&&sr.sort(function($e,Mt){if(!$e.circular&&!Mt.circular){if($e.target.column==Mt.target.column)return $e.y1-Mt.y1;if(Ze($e,Mt)){if($e.target.column>Mt.target.column){var Ct=Ae(Mt,$e);return $e.y1-Ct}if(Mt.target.column>$e.target.column){var Vt=Ae($e,Mt);return Vt-Mt.y1}}else return $e.y1-Mt.y1}if($e.circular&&!Mt.circular)return $e.circularLinkType=="top"?-1:1;if(Mt.circular&&!$e.circular)return Mt.circularLinkType=="top"?1:-1;if($e.circular&&Mt.circular)return $e.circularLinkType===Mt.circularLinkType&&$e.circularLinkType=="top"?$e.target.column===Mt.target.column?$e.target.y1-Mt.target.y1:Mt.target.column-$e.target.column:$e.circularLinkType===Mt.circularLinkType&&$e.circularLinkType=="bottom"?$e.target.column===Mt.target.column?Mt.target.y1-$e.target.y1:$e.target.column-Mt.target.column:$e.circularLinkType=="top"?-1:1});var ur=$t.y0;sr.forEach(function($e){$e.y0=ur+$e.width/2,ur=ur+$e.width}),sr.forEach(function($e,Mt){if($e.circularLinkType=="bottom"){var Ct=Mt+1,Vt=0;for(Ct;Ct1&&$t.sort(function(ur,$e){if(!ur.circular&&!$e.circular){if(ur.source.column==$e.source.column)return ur.y0-$e.y0;if(Ze(ur,$e)){if($e.source.column0?"up":"down"}function gt(st,lt){return k(st.source,lt)==k(st.target,lt)}function Kt(st,lt,Gt){var Ut=st.nodes,$t=st.links,sr=!1,Tr=!1;if($t.forEach(function(It){It.circularLinkType=="top"?sr=!0:It.circularLinkType=="bottom"&&(Tr=!0)}),sr==!1||Tr==!1){var ur=t.min(Ut,function(It){return It.y0}),$e=t.max(Ut,function(It){return It.y1}),Mt=$e-ur,Ct=Gt-lt,Vt=Ct/Mt;Ut.forEach(function(It){var Ot=(It.y1-It.y0)*Vt;It.y0=(It.y0-ur)*Vt,It.y1=It.y0+Ot}),$t.forEach(function(It){It.y0=(It.y0-ur)*Vt,It.y1=(It.y1-ur)*Vt,It.width=It.width*Vt})}}e.sankeyCircular=T,e.sankeyCenter=u,e.sankeyLeft=o,e.sankeyRight=s,e.sankeyJustify=l,Object.defineProperty(e,"__esModule",{value:!0})})});var VJ=ye((Kxr,SWe)=>{"use strict";SWe.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}});var qWe=ye((Jxr,OWe)=>{"use strict";var MWe=pWe(),qXt=(R2(),B1(I2)).interpolateNumber,L5=Oa(),WC=xWe(),BXt=AWe(),Nu=VJ(),P5=cd(),aw=Ca(),NXt=So(),p1=Dr(),jJ=p1.strTranslate,UXt=p1.strRotate,WJ=Km(),XC=WJ.keyFun,T7=WJ.repeat,IWe=WJ.unwrap,EWe=iu(),VXt=qa(),RWe=Kh(),GXt=RWe.CAP_SHIFT,HXt=RWe.LINE_SPACING,jXt=3;function WXt(e,t,r){var n=IWe(t),i=n.trace,a=i.domain,o=i.orientation==="h",s=i.node.pad,l=i.node.thickness,u={justify:WC.sankeyJustify,left:WC.sankeyLeft,right:WC.sankeyRight,center:WC.sankeyCenter}[i.node.align],c=e.width*(a.x[1]-a.x[0]),f=e.height*(a.y[1]-a.y[0]),h=n._nodes,d=n._links,v=n.circular,x;v?x=BXt.sankeyCircular().circularLinkGap(0):x=WC.sankey(),x.iterations(Nu.sankeyIterations).size(o?[c,f]:[f,c]).nodeWidth(l).nodePadding(s).nodeId(function(V){return V.pointNumber}).nodeAlign(u).nodes(h).links(d);var b=x();x.nodePadding()=N||(H=N-Z.y0,H>1e-6&&(Z.y0+=H,Z.y1+=H)),N=Z.y1+s})}function P(V){var G=V.map(function(_e,Me){return{x0:_e.x0,index:Me}}).sort(function(_e,Me){return _e.x0-Me.x0}),Z=[],H=-1,N,j=-1/0,re;for(p=0;pj+l&&(H+=1,N=oe.x0),j=oe.x0,Z[H]||(Z[H]=[]),Z[H].push(oe),re=N-oe.x0,oe.x0+=re,oe.x1+=re}return Z}if(i.node.x.length&&i.node.y.length){for(p=0;p0?" L "+i.targetX+" "+i.targetY:"")+"Z"):(r="M "+(i.targetX-t)+" "+(i.targetY-n)+" L "+(i.rightInnerExtent-t)+" "+(i.targetY-n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightSmallArcRadius+n)+" 0 0 0 "+(i.rightFullExtent-n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" L "+(i.rightFullExtent-n-t)+" "+i.verticalRightInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-n-t)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent+n-t-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:a?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent-t-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.leftFullExtent+n+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent+n)+" L "+i.leftInnerExtent+" "+(i.verticalFullExtent+n)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent,r+=" L "+(i.leftFullExtent+n)+" "+(i.sourceY+i.leftSmallArcRadius)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftSmallArcRadius+n)+" 0 0 0 "+i.leftInnerExtent+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY+n)+" L "+i.leftInnerExtent+" "+(i.sourceY+n)+" A "+(i.leftLargeArcRadius-n)+" "+(i.leftSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n)+" "+(i.sourceY+i.leftSmallArcRadius)+" L "+(i.leftFullExtent-n)+" "+i.verticalLeftInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.rightFullExtent+n-t+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:a?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent-t-n)+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:r+=" A "+(i.leftLargeArcRadius-n)+" "+(i.leftLargeArcRadius-n)+" 0 0 1 "+i.leftInnerExtent+" "+(i.verticalFullExtent-n)+" L "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightLargeArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent,r+=" L "+(i.rightFullExtent+n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightInnerExtent-t)+" "+(i.targetY+n)+" L "+(i.targetX-t)+" "+(i.targetY+n)+(t>0?" L "+i.targetX+" "+i.targetY:"")+"Z"),r}function XJ(){var e=.5;function t(r){var n=r.linkArrowLength;if(r.link.circular)return ZXt(r.link,n);var i=Math.abs((r.link.target.x0-r.link.source.x1)/2);n>i&&(n=i);var a=r.link.source.x1,o=r.link.target.x0-n,s=qXt(a,o),l=s(e),u=s(1-e),c=r.link.y0-r.link.width/2,f=r.link.y0+r.link.width/2,h=r.link.y1-r.link.width/2,d=r.link.y1+r.link.width/2,v="M"+a+","+c,x="C"+l+","+c+" "+u+","+h+" "+o+","+h,b="C"+u+","+d+" "+l+","+f+" "+a+","+f,p=n>0?"L"+(o+n)+","+(h+r.link.width/2):"";return p+="L"+o+","+d,v+x+p+b+"Z"}return t}function YXt(e,t){var r=P5(t.color),n=Nu.nodePadAcross,i=e.nodePad/2;t.dx=t.x1-t.x0,t.dy=t.y1-t.y0;var a=t.dx,o=Math.max(.5,t.dy),s="node_"+t.pointNumber;return t.group&&(s=p1.randstr()),t.trace=e.trace,t.curveNumber=e.trace.index,{index:t.pointNumber,key:s,partOfGroup:t.partOfGroup||!1,group:t.group,traceId:e.key,trace:e.trace,node:t,nodePad:e.nodePad,nodeLineColor:e.nodeLineColor,nodeLineWidth:e.nodeLineWidth,textFont:e.textFont,size:e.horizontal?e.height:e.width,visibleWidth:Math.ceil(a),visibleHeight:o,zoneX:-n,zoneY:-i,zoneWidth:a+2*n,zoneHeight:o+2*i,labelY:e.horizontal?t.dy/2+1:t.dx/2+1,left:t.originalLayer===1,sizeAcross:e.width,forceLayouts:e.forceLayouts,horizontal:e.horizontal,darkBackground:r.getBrightness()<=128,tinyColorHue:aw.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,graph:e.graph,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,s].join("_"),interactionState:e.interactionState,figure:e}}function HJ(e){e.attr("transform",function(t){return jJ(t.node.x0.toFixed(3),t.node.y0.toFixed(3))})}function KXt(e){e.call(HJ)}function DWe(e,t){e.call(KXt),t.attr("d",XJ())}function CWe(e){e.attr("width",function(t){return t.node.x1-t.node.x0}).attr("height",function(t){return t.visibleHeight})}function GJ(e){return e.link.width>1||e.linkLineWidth>0}function kWe(e){var t=jJ(e.translateX,e.translateY);return t+(e.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function LWe(e,t,r){e.on(".basic",null).on("mouseover.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.hover(this,n,t),n.interactionState.hovered=[this,n])}).on("mousemove.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.follow(this,n),n.interactionState.hovered=[this,n])}).on("mouseout.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.unhover(this,n,t),n.interactionState.hovered=!1)}).on("click.basic",function(n){n.interactionState.hovered&&(r.unhover(this,n,t),n.interactionState.hovered=!1),!n.interactionState.dragInProgress&&!n.partOfGroup&&r.select(this,n,t)})}function JXt(e,t,r,n){var i=L5.behavior.drag().origin(function(a){return{x:a.node.x0+a.visibleWidth/2,y:a.node.y0+a.visibleHeight/2}}).on("dragstart",function(a){if(a.arrangement!=="fixed"&&(p1.ensureSingle(n._fullLayout._infolayer,"g","dragcover",function(s){n._fullLayout._dragCover=s}),p1.raiseToTop(this),a.interactionState.dragInProgress=a.node,PWe(a.node),a.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,a.interactionState.hovered),a.interactionState.hovered=!1),a.arrangement==="snap")){var o=a.traceId+"|"+a.key;a.forceLayouts[o]?a.forceLayouts[o].alpha(1):$Xt(e,o,a,n),QXt(e,t,a,o,n)}}).on("drag",function(a){if(a.arrangement!=="fixed"){var o=L5.event.x,s=L5.event.y;a.arrangement==="snap"?(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2,a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2):(a.arrangement==="freeform"&&(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2),s=Math.max(0,Math.min(a.size-a.visibleHeight/2,s)),a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2),PWe(a.node),a.arrangement!=="snap"&&(a.sankey.update(a.graph),DWe(e.filter(zWe(a)),t))}}).on("dragend",function(a){if(a.arrangement!=="fixed"){a.interactionState.dragInProgress=!1;for(var o=0;o0)window.requestAnimationFrame(a);else{var l=r.node.originalX;r.node.x0=l-r.visibleWidth/2,r.node.x1=l+r.visibleWidth/2,FWe(r,i)}})}function eZt(e,t,r,n){return function(){for(var a=0,o=0;o0&&n.forceLayouts[t].alpha(0)}}function FWe(e,t){for(var r=[],n=[],i=0;i{"use strict";var Xv=Oa(),YJ=Dr(),A7=YJ.numberFormat,nZt=qWe(),I5=df(),aZt=Ca(),Sx=VJ().cn,ZC=YJ._;function BWe(e){return e!==""}function R5(e,t){return e.filter(function(r){return r.key===t.traceId})}function NWe(e,t){Xv.select(e).select("path").style("fill-opacity",t),Xv.select(e).select("rect").style("fill-opacity",t)}function UWe(e){Xv.select(e).select("text.name").style("fill","black")}function VWe(e){return function(t){return e.node.sourceLinks.indexOf(t.link)!==-1||e.node.targetLinks.indexOf(t.link)!==-1}}function GWe(e){return function(t){return t.node.sourceLinks.indexOf(e.link)!==-1||t.node.targetLinks.indexOf(e.link)!==-1}}function HWe(e,t,r){t&&r&&R5(r,t).selectAll("."+Sx.sankeyLink).filter(VWe(t)).call(jWe.bind(0,t,r,!1))}function ZJ(e,t,r){t&&r&&R5(r,t).selectAll("."+Sx.sankeyLink).filter(VWe(t)).call(WWe.bind(0,t,r,!1))}function jWe(e,t,r,n){n.style("fill",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverHue}).style("fill-opacity",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverAlpha}),n.each(function(i){var a=i.link.label;a!==""&&R5(t,e).selectAll("."+Sx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverHue}).style("fill-opacity",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverAlpha})}),r&&R5(t,e).selectAll("."+Sx.sankeyNode).filter(GWe(e)).call(HWe)}function WWe(e,t,r,n){n.style("fill",function(i){return i.tinyColorHue}).style("fill-opacity",function(i){return i.tinyColorAlpha}),n.each(function(i){var a=i.link.label;a!==""&&R5(t,e).selectAll("."+Sx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){return o.tinyColorHue}).style("fill-opacity",function(o){return o.tinyColorAlpha})}),r&&R5(t,e).selectAll(Sx.sankeyNode).filter(GWe(e)).call(ZJ)}function Ef(e,t){var r=e.hoverlabel||{},n=YJ.nestedProperty(r,t).get();return Array.isArray(n)?!1:n}XWe.exports=function(t,r){for(var n=t._fullLayout,i=n._paper,a=n._size,o=0;o"),color:Ef(k,"bgcolor")||aZt.addOpacity(z.color,1),borderColor:Ef(k,"bordercolor"),fontFamily:Ef(k,"font.family"),fontSize:Ef(k,"font.size"),fontColor:Ef(k,"font.color"),fontWeight:Ef(k,"font.weight"),fontStyle:Ef(k,"font.style"),fontVariant:Ef(k,"font.variant"),fontTextcase:Ef(k,"font.textcase"),fontLineposition:Ef(k,"font.lineposition"),fontShadow:Ef(k,"font.shadow"),nameLength:Ef(k,"namelength"),textAlign:Ef(k,"align"),idealAlign:Xv.event.x"),color:Ef(k,"bgcolor")||_.tinyColorHue,borderColor:Ef(k,"bordercolor"),fontFamily:Ef(k,"font.family"),fontSize:Ef(k,"font.size"),fontColor:Ef(k,"font.color"),fontWeight:Ef(k,"font.weight"),fontStyle:Ef(k,"font.style"),fontVariant:Ef(k,"font.variant"),fontTextcase:Ef(k,"font.textcase"),fontLineposition:Ef(k,"font.lineposition"),fontShadow:Ef(k,"font.shadow"),nameLength:Ef(k,"namelength"),textAlign:Ef(k,"align"),idealAlign:"left",hovertemplate:k.hovertemplate,hovertemplateLabels:V,eventData:[_.node]},{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:t});NWe(H,.85),UWe(H)}}},A=function(L,_,k){t._fullLayout.hovermode!==!1&&(Xv.select(L).call(ZJ,_,k),_.node.trace.node.hoverinfo!=="skip"&&(_.node.fullData=_.node.trace,t.emit("plotly_unhover",{event:Xv.event,points:[_.node]})),I5.loneUnhover(n._hoverlayer.node()))};nZt(t,i,r,{width:a.w,height:a.h,margin:{t:a.t,r:a.r,b:a.b,l:a.l}},{linkEvents:{hover:u,follow:x,unhover:b,select:l},nodeEvents:{hover:C,follow:E,unhover:A,select:p}})}});var ZWe=ye(ow=>{"use strict";var oZt=mc().overrideAll,sZt=Id().getModuleCalcData,lZt=KJ(),uZt=N1(),cZt=Tg(),fZt=gv(),hZt=Ff().prepSelect,JJ=Dr(),dZt=qa(),S7="sankey";ow.name=S7;ow.baseLayoutAttrOverrides=oZt({hoverlabel:uZt.hoverlabel},"plot","nested");ow.plot=function(e){var t=sZt(e.calcdata,S7)[0];lZt(e,t),ow.updateFx(e)};ow.clean=function(e,t,r,n){var i=n._has&&n._has(S7),a=t._has&&t._has(S7);i&&!a&&(n._paperdiv.selectAll(".sankey").remove(),n._paperdiv.selectAll(".bgsankey").remove())};ow.updateFx=function(e){for(var t=0;t{"use strict";YWe.exports=function(t,r){for(var n=t.cd,i=[],a=n[0].trace,o=a._sankey.graph.nodes,s=0;s{"use strict";JWe.exports={attributes:BJ(),supplyDefaults:tWe(),calc:oWe(),plot:KJ(),moduleType:"trace",name:"sankey",basePlotModule:ZWe(),selectPoints:KWe(),categories:["noOpacity"],meta:{}}});var eXe=ye((rbr,QWe)=>{"use strict";QWe.exports=$We()});var rXe=ye(D5=>{"use strict";var tXe=Mc();D5.name="indicator";D5.plot=function(e,t,r,n){tXe.plotBasePlot(D5.name,e,t,r,n)};D5.clean=function(e,t,r,n){tXe.cleanBasePlot(D5.name,e,t,r,n)}});var QJ=ye((nbr,lXe)=>{"use strict";var Mx=Ao().extendFlat,nXe=Ao().extendDeep,pZt=mc().overrideAll,aXe=ec(),oXe=Eh(),gZt=kc().attributes,qf=Rd(),mZt=pl().templatedArray,M7=GT(),iXe=ff().descriptionOnlyNumbers,$J=aXe({editType:"plot",colorEditType:"plot"}),YC={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:oXe.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},sXe={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},yZt=mZt("step",nXe({},YC,{range:sXe}));lXe.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:gZt({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:Mx({},$J,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:iXe("value")},font:Mx({},$J,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:iXe("value")},increasing:{symbol:{valType:"string",dflt:M7.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:M7.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:M7.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:M7.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:Mx({},$J,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:nXe({},YC,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:oXe.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:pZt({range:sXe,visible:Mx({},qf.visible,{dflt:!0}),tickmode:qf.minor.tickmode,nticks:qf.nticks,tick0:qf.tick0,dtick:qf.dtick,tickvals:qf.tickvals,ticktext:qf.ticktext,ticks:Mx({},qf.ticks,{dflt:"outside"}),ticklen:qf.ticklen,tickwidth:qf.tickwidth,tickcolor:qf.tickcolor,ticklabelstep:qf.ticklabelstep,showticklabels:qf.showticklabels,labelalias:qf.labelalias,tickfont:aXe({}),tickangle:qf.tickangle,tickformat:qf.tickformat,tickformatstops:qf.tickformatstops,tickprefix:qf.tickprefix,showtickprefix:qf.showtickprefix,ticksuffix:qf.ticksuffix,showticksuffix:qf.showticksuffix,separatethousands:qf.separatethousands,exponentformat:qf.exponentformat,minexponent:qf.minexponent,showexponent:qf.showexponent,editType:"plot"},"plot"),steps:yZt,threshold:{line:{color:Mx({},YC.line.color,{}),width:Mx({},YC.line.width,{dflt:1}),editType:"plot"},thickness:Mx({},YC.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var e$=ye((abr,uXe)=>{"use strict";uXe.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var hXe=ye((obr,fXe)=>{"use strict";var ey=Dr(),C7=QJ(),_Zt=kc().defaults,cXe=pl(),xZt=Yd(),E7=e$(),bZt=xb(),wZt=T3(),TZt=t_(),AZt=r_();function SZt(e,t,r,n){function i(_,k){return ey.coerce(e,t,C7,_,k)}_Zt(t,n,i),i("mode"),t._hasNumber=t.mode.indexOf("number")!==-1,t._hasDelta=t.mode.indexOf("delta")!==-1,t._hasGauge=t.mode.indexOf("gauge")!==-1;var a=i("value");t._range=[0,typeof a=="number"?1.5*a:1];var o=new Array(2),s;if(t._hasNumber){i("number.valueformat");var l=ey.extendFlat({},n.font);l.size=void 0,ey.coerceFont(i,"number.font",l),t.number.font.size===void 0&&(t.number.font.size=E7.defaultNumberFontSize,o[0]=!0),i("number.prefix"),i("number.suffix"),s=t.number.font.size}var u;if(t._hasDelta){var c=ey.extendFlat({},n.font);c.size=void 0,ey.coerceFont(i,"delta.font",c),t.delta.font.size===void 0&&(t.delta.font.size=(t._hasNumber?.5:1)*(s||E7.defaultNumberFontSize),o[1]=!0),i("delta.reference",t.value),i("delta.relative"),i("delta.valueformat",t.delta.relative?"2%":""),i("delta.increasing.symbol"),i("delta.increasing.color"),i("delta.decreasing.symbol"),i("delta.decreasing.color"),i("delta.position"),i("delta.prefix"),i("delta.suffix"),u=t.delta.font.size}t._scaleNumbers=(!t._hasNumber||o[0])&&(!t._hasDelta||o[1])||!1;var f=ey.extendFlat({},n.font);f.size=.25*(s||u||E7.defaultNumberFontSize),ey.coerceFont(i,"title.font",f),i("title.text");var h,d,v,x;function b(_,k){return ey.coerce(h,d,C7.gauge,_,k)}function p(_,k){return ey.coerce(v,x,C7.gauge.axis,_,k)}if(t._hasGauge){h=e.gauge,h||(h={}),d=cXe.newContainer(t,"gauge"),b("shape");var C=t._isBullet=t.gauge.shape==="bullet";C||i("title.align","center");var E=t._isAngular=t.gauge.shape==="angular";E||i("align","center"),b("bgcolor",n.paper_bgcolor),b("borderwidth"),b("bordercolor"),b("bar.color"),b("bar.line.color"),b("bar.line.width");var A=E7.valueThickness*(t.gauge.shape==="bullet"?.5:1);b("bar.thickness",A),xZt(h,d,{name:"steps",handleItemDefaults:MZt}),b("threshold.value"),b("threshold.thickness"),b("threshold.line.width"),b("threshold.line.color"),v={},h&&(v=h.axis||{}),x=cXe.newContainer(d,"axis"),p("visible"),t._range=p("range",t._range);var L={font:n.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};bZt(v,x,p,"linear"),AZt(v,x,p,"linear",L),TZt(v,x,p,"linear",L),wZt(v,x,p,L)}else i("title.align","center"),i("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function MZt(e,t){function r(n,i){return ey.coerce(e,t,C7.gauge.steps,n,i)}r("color"),r("line.color"),r("line.width"),r("range"),r("thickness")}fXe.exports={supplyDefaults:SZt}});var vXe=ye((sbr,dXe)=>{"use strict";function EZt(e,t){var r=[],n=t.value;typeof t._lastValue!="number"&&(t._lastValue=t.value);var i=t._lastValue,a=i;return t._hasDelta&&typeof t.delta.reference=="number"&&(a=t.delta.reference),r[0]={y:n,lastY:i,delta:n-a,relativeDelta:(n-a)/a},r}dXe.exports={calc:EZt}});var xXe=ye((lbr,_Xe)=>{"use strict";var fw=Oa(),CZt=(R2(),B1(I2)).interpolate,pXe=(R2(),B1(I2)).interpolateNumber,Ex=Dr(),kZt=Ex.strScale,JC=Ex.strTranslate,LZt=Ex.rad2deg,PZt=Kh().MID_SHIFT,cw=So(),sw=e$(),L7=iu(),sv=ho(),IZt=$M(),RZt=aI(),DZt=Rd(),F5=Ca(),t$={left:"start",center:"middle",right:"end"},lw={left:0,center:.5,right:1},gXe=/[yzafpnµmkMGTPEZY]/;function $C(e){return e&&e.duration>0}_Xe.exports=function(t,r,n,i){var a=t._fullLayout,o;$C(n)&&i&&(o=i()),Ex.makeTraceGroups(a._indicatorlayer,r,"trace").each(function(s){var l=s[0],u=l.trace,c=fw.select(this),f=u._hasGauge,h=u._isAngular,d=u._isBullet,v=u.domain,x={w:a._size.w*(v.x[1]-v.x[0]),h:a._size.h*(v.y[1]-v.y[0]),l:a._size.l+a._size.w*v.x[0],r:a._size.r+a._size.w*(1-v.x[1]),t:a._size.t+a._size.h*(1-v.y[1]),b:a._size.b+a._size.h*v.y[0]},b=x.l+x.w/2,p=x.t+x.h/2,C=Math.min(x.w/2,x.h),E=sw.innerRadius*C,A,L,_,k=u.align||"center";if(L=p,!f)A=x.l+lw[k]*x.w,_=function(H){return mXe(H,x.w,x.h)};else if(h&&(A=b,L=p+C/2,_=function(H){return BZt(H,.9*E)}),d){var M=sw.bulletPadding,g=1-sw.bulletNumberDomainSize+M;A=x.l+(g+(1-g)*lw[k])*x.w,_=function(H){return mXe(H,(sw.bulletNumberDomainSize-M)*x.w,x.h)}}OZt(t,c,s,{numbersX:A,numbersY:L,numbersScaler:_,transitionOpts:n,onComplete:o});var P,T;f&&(P={range:u.gauge.axis.range,color:u.gauge.bgcolor,line:{color:u.gauge.bordercolor,width:0},thickness:1},T={range:u.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:u.gauge.bordercolor,width:u.gauge.borderwidth},thickness:1});var z=c.selectAll("g.angular").data(h?s:[]);z.exit().remove();var O=c.selectAll("g.angularaxis").data(h?s:[]);O.exit().remove(),h&&zZt(t,c,s,{radius:C,innerRadius:E,gauge:z,layer:O,size:x,gaugeBg:P,gaugeOutline:T,transitionOpts:n,onComplete:o});var V=c.selectAll("g.bullet").data(d?s:[]);V.exit().remove();var G=c.selectAll("g.bulletaxis").data(d?s:[]);G.exit().remove(),d&&FZt(t,c,s,{gauge:V,layer:G,size:x,gaugeBg:P,gaugeOutline:T,transitionOpts:n,onComplete:o});var Z=c.selectAll("text.title").data(s);Z.exit().remove(),Z.enter().append("text").classed("title",!0),Z.attr("text-anchor",function(){return d?t$.right:t$[u.title.align]}).text(u.title.text).call(cw.font,u.title.font).call(L7.convertToTspans,t),Z.attr("transform",function(){var H=x.l+x.w*lw[u.title.align],N,j=sw.titlePadding,re=cw.bBox(Z.node());if(f){if(h)if(u.gauge.axis.visible){var oe=cw.bBox(O.node());N=oe.top-j-re.bottom}else N=x.t+x.h/2-C/2-re.bottom-j;d&&(N=L-(re.top+re.bottom)/2,H=x.l-sw.bulletPadding*x.w)}else N=u._numbersTop-j-re.bottom;return JC(H,N)})})};function FZt(e,t,r,n){var i=r[0].trace,a=n.gauge,o=n.layer,s=n.gaugeBg,l=n.gaugeOutline,u=n.size,c=i.domain,f=n.transitionOpts,h=n.onComplete,d,v,x,b,p;a.enter().append("g").classed("bullet",!0),a.attr("transform",JC(u.l,u.t)),o.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),o.selectAll("g.xbulletaxistick,path,text").remove();var C=u.h,E=i.gauge.bar.thickness*C,A=c.x[0],L=c.x[0]+(c.x[1]-c.x[0])*(i._hasNumber||i._hasDelta?1-sw.bulletNumberDomainSize:1);d=KC(e,i.gauge.axis),d._id="xbulletaxis",d.domain=[A,L],d.setScale(),v=sv.calcTicks(d),x=sv.makeTransTickFn(d),b=sv.getTickSigns(d)[2],p=u.t+u.h,d.visible&&(sv.drawTicks(e,d,{vals:d.ticks==="inside"?sv.clipEnds(d,v):v,layer:o,path:sv.makeTickPath(d,p,b),transFn:x}),sv.drawLabels(e,d,{vals:v,layer:o,transFn:x,labelFns:sv.makeLabelFns(d,p)}));function _(O){O.attr("width",function(V){return Math.max(0,d.c2p(V.range[1])-d.c2p(V.range[0]))}).attr("x",function(V){return d.c2p(V.range[0])}).attr("y",function(V){return .5*(1-V.thickness)*C}).attr("height",function(V){return V.thickness*C})}var k=[s].concat(i.gauge.steps),M=a.selectAll("g.bg-bullet").data(k);M.enter().append("g").classed("bg-bullet",!0).append("rect"),M.select("rect").call(_).call(uw),M.exit().remove();var g=a.selectAll("g.value-bullet").data([i.gauge.bar]);g.enter().append("g").classed("value-bullet",!0).append("rect"),g.select("rect").attr("height",E).attr("y",(C-E)/2).call(uw),$C(f)?g.select("rect").transition().duration(f.duration).ease(f.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()}).attr("width",Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y)))):g.select("rect").attr("width",typeof r[0].y=="number"?Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y))):0),g.exit().remove();var P=r.filter(function(){return i.gauge.threshold.value||i.gauge.threshold.value===0}),T=a.selectAll("g.threshold-bullet").data(P);T.enter().append("g").classed("threshold-bullet",!0).append("line"),T.select("line").attr("x1",d.c2p(i.gauge.threshold.value)).attr("x2",d.c2p(i.gauge.threshold.value)).attr("y1",(1-i.gauge.threshold.thickness)/2*C).attr("y2",(1-(1-i.gauge.threshold.thickness)/2)*C).call(F5.stroke,i.gauge.threshold.line.color).style("stroke-width",i.gauge.threshold.line.width),T.exit().remove();var z=a.selectAll("g.gauge-outline").data([l]);z.enter().append("g").classed("gauge-outline",!0).append("rect"),z.select("rect").call(_).call(uw),z.exit().remove()}function zZt(e,t,r,n){var i=r[0].trace,a=n.size,o=n.radius,s=n.innerRadius,l=n.gaugeBg,u=n.gaugeOutline,c=[a.l+a.w/2,a.t+a.h/2+o/2],f=n.gauge,h=n.layer,d=n.transitionOpts,v=n.onComplete,x=Math.PI/2;function b(_e){var Me=i.gauge.axis.range[0],ke=i.gauge.axis.range[1],me=(_e-Me)/(ke-Me)*Math.PI-x;return me<-x?-x:me>x?x:me}function p(_e){return fw.svg.arc().innerRadius((s+o)/2-_e/2*(o-s)).outerRadius((s+o)/2+_e/2*(o-s)).startAngle(-x)}function C(_e){_e.attr("d",function(Me){return p(Me.thickness).startAngle(b(Me.range[0])).endAngle(b(Me.range[1]))()})}var E,A,L,_;f.enter().append("g").classed("angular",!0),f.attr("transform",JC(c[0],c[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),E=KC(e,i.gauge.axis),E.type="linear",E.range=i.gauge.axis.range,E._id="xangularaxis",E.ticklabeloverflow="allow",E.setScale();var k=function(_e){return(E.range[0]-_e.x)/(E.range[1]-E.range[0])*Math.PI+Math.PI},M={},g=sv.makeLabelFns(E,0),P=g.labelStandoff;M.xFn=function(_e){var Me=k(_e);return Math.cos(Me)*P},M.yFn=function(_e){var Me=k(_e),ke=Math.sin(Me)>0?.2:1;return-Math.sin(Me)*(P+_e.fontSize*ke)+Math.abs(Math.cos(Me))*(_e.fontSize*PZt)},M.anchorFn=function(_e){var Me=k(_e),ke=Math.cos(Me);return Math.abs(ke)<.1?"middle":ke>0?"start":"end"},M.heightFn=function(_e,Me,ke){var me=k(_e);return-.5*(1+Math.sin(me))*ke};var T=function(_e){return JC(c[0]+o*Math.cos(_e),c[1]-o*Math.sin(_e))};L=function(_e){return T(k(_e))};var z=function(_e){var Me=k(_e);return T(Me)+"rotate("+-LZt(Me)+")"};if(A=sv.calcTicks(E),_=sv.getTickSigns(E)[2],E.visible){_=E.ticks==="inside"?-1:1;var O=(E.linewidth||1)/2;sv.drawTicks(e,E,{vals:A,layer:h,path:"M"+_*O+",0h"+_*E.ticklen,transFn:z}),sv.drawLabels(e,E,{vals:A,layer:h,transFn:L,labelFns:M})}var V=[l].concat(i.gauge.steps),G=f.selectAll("g.bg-arc").data(V);G.enter().append("g").classed("bg-arc",!0).append("path"),G.select("path").call(C).call(uw),G.exit().remove();var Z=p(i.gauge.bar.thickness),H=f.selectAll("g.value-arc").data([i.gauge.bar]);H.enter().append("g").classed("value-arc",!0).append("path");var N=H.select("path");$C(d)?(N.transition().duration(d.duration).ease(d.easing).each("end",function(){v&&v()}).each("interrupt",function(){v&&v()}).attrTween("d",qZt(Z,b(r[0].lastY),b(r[0].y))),i._lastValue=r[0].y):N.attr("d",typeof r[0].y=="number"?Z.endAngle(b(r[0].y)):"M0,0Z"),N.call(uw),H.exit().remove(),V=[];var j=i.gauge.threshold.value;(j||j===0)&&V.push({range:[j,j],color:i.gauge.threshold.color,line:{color:i.gauge.threshold.line.color,width:i.gauge.threshold.line.width},thickness:i.gauge.threshold.thickness});var re=f.selectAll("g.threshold-arc").data(V);re.enter().append("g").classed("threshold-arc",!0).append("path"),re.select("path").call(C).call(uw),re.exit().remove();var oe=f.selectAll("g.gauge-outline").data([u]);oe.enter().append("g").classed("gauge-outline",!0).append("path"),oe.select("path").call(C).call(uw),oe.exit().remove()}function OZt(e,t,r,n){var i=r[0].trace,a=n.numbersX,o=n.numbersY,s=i.align||"center",l=t$[s],u=n.transitionOpts,c=n.onComplete,f=Ex.ensureSingle(t,"g","numbers"),h,d,v,x=[];i._hasNumber&&x.push("number"),i._hasDelta&&(x.push("delta"),i.delta.position==="left"&&x.reverse());var b=f.selectAll("text").data(x);b.enter().append("text"),b.attr("text-anchor",function(){return l}).attr("class",function(T){return T}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),b.exit().remove();function p(T,z,O,V){if(T.match("s")&&O>=0!=V>=0&&!z(O).slice(-1).match(gXe)&&!z(V).slice(-1).match(gXe)){var G=T.slice().replace("s","f").replace(/\d+/,function(H){return parseInt(H)-1}),Z=KC(e,{tickformat:G});return function(H){return Math.abs(H)<1?sv.tickText(Z,H).text:z(H)}}else return z}function C(){var T=KC(e,{tickformat:i.number.valueformat},i._range);T.setScale(),sv.prepTicks(T);var z=function(H){return sv.tickText(T,H).text},O=i.number.suffix,V=i.number.prefix,G=f.select("text.number");function Z(){var H=typeof r[0].y=="number"?V+z(r[0].y)+O:"-";G.text(H).call(cw.font,i.number.font).call(L7.convertToTspans,e)}return $C(u)?G.transition().duration(u.duration).ease(u.easing).each("end",function(){Z(),c&&c()}).each("interrupt",function(){Z(),c&&c()}).attrTween("text",function(){var H=fw.select(this),N=pXe(r[0].lastY,r[0].y);i._lastValue=r[0].y;var j=p(i.number.valueformat,z,r[0].lastY,r[0].y);return function(re){H.text(V+j(N(re))+O)}}):Z(),h=yXe(V+z(r[0].y)+O,i.number.font,l,e),G}function E(){var T=KC(e,{tickformat:i.delta.valueformat},i._range);T.setScale(),sv.prepTicks(T);var z=function(re){return sv.tickText(T,re).text},O=i.delta.suffix,V=i.delta.prefix,G=function(re){var oe=i.delta.relative?re.relativeDelta:re.delta;return oe},Z=function(re,oe){return re===0||typeof re!="number"||isNaN(re)?"-":(re>0?i.delta.increasing.symbol:i.delta.decreasing.symbol)+V+oe(re)+O},H=function(re){return re.delta>=0?i.delta.increasing.color:i.delta.decreasing.color};i._deltaLastValue===void 0&&(i._deltaLastValue=G(r[0]));var N=f.select("text.delta");N.call(cw.font,i.delta.font).call(F5.fill,H({delta:i._deltaLastValue}));function j(){N.text(Z(G(r[0]),z)).call(F5.fill,H(r[0])).call(L7.convertToTspans,e)}return $C(u)?N.transition().duration(u.duration).ease(u.easing).tween("text",function(){var re=fw.select(this),oe=G(r[0]),_e=i._deltaLastValue,Me=p(i.delta.valueformat,z,_e,oe),ke=pXe(_e,oe);return i._deltaLastValue=oe,function(me){re.text(Z(ke(me),Me)),re.call(F5.fill,H({delta:ke(me)}))}}).each("end",function(){j(),c&&c()}).each("interrupt",function(){j(),c&&c()}):j(),d=yXe(Z(G(r[0]),z),i.delta.font,l,e),N}var A=i.mode+i.align,L;if(i._hasDelta&&(L=E(),A+=i.delta.position+i.delta.font.size+i.delta.font.family+i.delta.valueformat,A+=i.delta.increasing.symbol+i.delta.decreasing.symbol,v=d),i._hasNumber&&(C(),A+=i.number.font.size+i.number.font.family+i.number.valueformat+i.number.suffix+i.number.prefix,v=h),i._hasDelta&&i._hasNumber){var _=[(h.left+h.right)/2,(h.top+h.bottom)/2],k=[(d.left+d.right)/2,(d.top+d.bottom)/2],M,g,P=.75*i.delta.font.size;i.delta.position==="left"&&(M=k7(i,"deltaPos",0,-1*(h.width*lw[i.align]+d.width*(1-lw[i.align])+P),A,Math.min),g=_[1]-k[1],v={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:d.left+M,right:h.right,top:Math.min(h.top,d.top+g),bottom:Math.max(h.bottom,d.bottom+g)}),i.delta.position==="right"&&(M=k7(i,"deltaPos",0,h.width*(1-lw[i.align])+d.width*lw[i.align]+P,A,Math.max),g=_[1]-k[1],v={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:h.left,right:d.right+M,top:Math.min(h.top,d.top+g),bottom:Math.max(h.bottom,d.bottom+g)}),i.delta.position==="bottom"&&(M=null,g=d.height,v={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height,bottom:h.bottom+d.height}),i.delta.position==="top"&&(M=null,g=h.top,v={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height-d.height,bottom:h.bottom}),L.attr({dx:M,dy:g})}(i._hasNumber||i._hasDelta)&&f.attr("transform",function(){var T=n.numbersScaler(v);A+=T[2];var z=k7(i,"numbersScale",1,T[0],A,Math.min),O;i._scaleNumbers||(z=1),i._isAngular?O=o-z*v.bottom:O=o-z*(v.top+v.bottom)/2,i._numbersTop=z*v.top+O;var V=v[s];s==="center"&&(V=(v.left+v.right)/2);var G=a-z*V;return G=k7(i,"numbersTranslate",0,G,A,Math.max),JC(G,O)+kZt(z)})}function uw(e){e.each(function(t){F5.stroke(fw.select(this),t.line.color)}).each(function(t){F5.fill(fw.select(this),t.color)}).style("stroke-width",function(t){return t.line.width})}function qZt(e,t,r){return function(){var n=CZt(t,r);return function(i){return e.endAngle(n(i))()}}}function KC(e,t,r){var n=e._fullLayout,i=Ex.extendFlat({type:"linear",ticks:"outside",range:r,showline:!0},t),a={type:"linear",_id:"x"+t._id},o={letter:"x",font:n.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function s(l,u){return Ex.coerce(i,a,DZt,l,u)}return IZt(i,a,s,o,n),RZt(i,a,s,o),a}function mXe(e,t,r){var n=Math.min(t/e.width,r/e.height);return[n,e,t+"x"+r]}function BZt(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),n=t/r;return[n,e,t]}function yXe(e,t,r,n){var i=document.createElementNS("http://www.w3.org/2000/svg","text"),a=fw.select(i);return a.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call(L7.convertToTspans,n).call(cw.font,t),cw.bBox(a.node())}function k7(e,t,r,n,i,a){var o="_cache"+t;e[o]&&e[o].key===i||(e[o]={key:i,value:r});var s=Ex.aggNums(a,null,[e[o].value,n],2);return e[o].value=s,s}});var wXe=ye((ubr,bXe)=>{"use strict";bXe.exports={moduleType:"trace",name:"indicator",basePlotModule:rXe(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:QJ(),supplyDefaults:hXe().supplyDefaults,calc:vXe().calc,plot:xXe(),meta:{}}});var AXe=ye((cbr,TXe)=>{"use strict";TXe.exports=wXe()});var r$=ye((hbr,CXe)=>{"use strict";var SXe=Nb(),P7=Ao().extendFlat,NZt=mc().overrideAll,MXe=ec(),UZt=kc().attributes,EXe=ff().descriptionOnlyNumbers,fbr=CXe.exports=NZt({domain:UZt({name:"table",trace:!0}),columnwidth:{valType:"number",arrayOk:!0,dflt:null},columnorder:{valType:"data_array"},header:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:EXe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:P7({},SXe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:P7({},MXe({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:EXe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:P7({},SXe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:P7({},MXe({arrayOk:!0}))}},"calc","from-root")});var LXe=ye((dbr,kXe)=>{"use strict";var i$=Dr(),VZt=r$(),GZt=kc().defaults;function HZt(e,t){for(var r=e.columnorder||[],n=e.header.values.length,i=r.slice(0,n),a=i.slice().sort(function(l,u){return l-u}),o=i.map(function(l){return a.indexOf(l)}),s=o.length;s{"use strict";var jZt=Km().wrap;PXe.exports=function(){return jZt({})}});var n$=ye((pbr,RXe)=>{"use strict";RXe.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:"
",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}});var VXe=ye((gbr,UXe)=>{"use strict";var DXe=n$(),o$=Ao().extendFlat,WZt=Eo(),XZt=vv().isTypedArray,I7=vv().isArrayOrTypedArray;UXe.exports=function(t,r){var n=a$(r.cells.values),i=function(g){return g.slice(r.header.values.length,g.length)},a=a$(r.header.values);a.length&&!a[0].length&&(a[0]=[""],a=a$(a));var o=a.concat(i(n).map(function(){return NXe((a[0]||[""]).length)})),s=r.domain,l=Math.floor(t._fullLayout._size.w*(s.x[1]-s.x[0])),u=Math.floor(t._fullLayout._size.h*(s.y[1]-s.y[0])),c=r.header.values.length?o[0].map(function(){return r.header.height}):[DXe.emptyHeaderHeight],f=n.length?n[0].map(function(){return r.cells.height}):[],h=c.reduce(FXe,0),d=u-h,v=d+DXe.uplift,x=qXe(f,v),b=qXe(c,h),p=OXe(b,[]),C=OXe(x,p),E={},A=r._fullInput.columnorder;I7(A)&&(A=Array.from(A)),A=A.concat(i(n.map(function(g,P){return P})));var L=o.map(function(g,P){var T=I7(r.columnwidth)?r.columnwidth[Math.min(P,r.columnwidth.length-1)]:r.columnwidth;return WZt(T)?Number(T):1}),_=L.reduce(FXe,0);L=L.map(function(g){return g/_*l});var k=Math.max(s$(r.header.line.width),s$(r.cells.line.width)),M={key:r.uid+t._context.staticPlot,translateX:s.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-s.y[1]),size:t._fullLayout._size,width:l,maxLineWidth:k,height:u,columnOrder:A,groupHeight:u,rowBlocks:C,headerRowBlocks:p,scrollY:0,cells:o$({},r.cells,{values:n}),headerCells:o$({},r.header,{values:o}),gdColumns:o.map(function(g){return g[0]}),gdColumnsOriginalOrder:o.map(function(g){return g[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:o.map(function(g,P){var T=E[g];E[g]=(T||0)+1;var z=g+"__"+E[g];return{key:z,label:g,specIndex:P,xIndex:A[P],xScale:zXe,x:void 0,calcdata:void 0,columnWidth:L[P]}})};return M.columns.forEach(function(g){g.calcdata=M,g.x=zXe(g)}),M};function s$(e){if(I7(e)){for(var t=0,r=0;r=t||u===e.length-1)&&(r[i]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=u,o=BXe(),i+=a,s=u+1,a=0);return r}function BXe(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}});var GXe=ye(l$=>{"use strict";var R7=Ao().extendFlat;l$.splitToPanels=function(e){var t=[0,0],r=R7({},e,{key:"header",type:"header",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!0,values:e.calcdata.headerCells.values[e.specIndex],rowBlocks:e.calcdata.headerRowBlocks,calcdata:R7({},e.calcdata,{cells:e.calcdata.headerCells})}),n=R7({},e,{key:"cells1",type:"cells",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks}),i=R7({},e,{key:"cells2",type:"cells",page:1,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks});return[n,i,r]};l$.splitToCells=function(e){var t=ZZt(e);return(e.values||[]).slice(t[0],t[1]).map(function(r,n){var i=typeof r=="string"&&r.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:n+i,key:t[0]+n,column:e,calcdata:e.calcdata,page:e.page,rowBlocks:e.rowBlocks,value:r}})};function ZZt(e){var t=e.rowBlocks[e.page],r=t?t.rows[0].rowIndex:0,n=t?r+t.rows.length:0;return[r,n]}});var y$=ye((ybr,eZe)=>{"use strict";var Ya=n$(),ef=Oa(),u$=Dr(),YZt=u$.numberFormat,Uu=Km(),c$=So(),KZt=iu(),JZt=Dr().raiseToTop,og=Dr().strTranslate,$Zt=Dr().cancelTransition,QZt=VXe(),KXe=GXe(),HXe=Ca();eZe.exports=function(t,r){var n=!t._context.staticPlot,i=t._fullLayout._paper.selectAll("."+Ya.cn.table).data(r.map(function(C){var E=Uu.unwrap(C),A=E.trace;return QZt(t,A)}),Uu.keyFun);i.exit().remove(),i.enter().append("g").classed(Ya.cn.table,!0).attr("overflow","visible").style("box-sizing","content-box").style("position","absolute").style("left",0).style("overflow","visible").style("shape-rendering","crispEdges").style("pointer-events","all"),i.attr("width",function(C){return C.width+C.size.l+C.size.r}).attr("height",function(C){return C.height+C.size.t+C.size.b}).attr("transform",function(C){return og(C.translateX,C.translateY)});var a=i.selectAll("."+Ya.cn.tableControlView).data(Uu.repeat,Uu.keyFun),o=a.enter().append("g").classed(Ya.cn.tableControlView,!0).style("box-sizing","content-box");if(n){var s="onwheel"in document?"wheel":"mousewheel";o.on("mousemove",function(C){a.filter(function(E){return C===E}).call(QC,t)}).on(s,function(C){if(!C.scrollbarState.wheeling){C.scrollbarState.wheeling=!0;var E=C.scrollY+ef.event.deltaY,A=F7(t,a,null,E)(C);A||(ef.event.stopPropagation(),ef.event.preventDefault()),C.scrollbarState.wheeling=!1}}).call(QC,t,!0)}a.attr("transform",function(C){return og(C.size.l,C.size.t)});var l=a.selectAll("."+Ya.cn.scrollBackground).data(Uu.repeat,Uu.keyFun);l.enter().append("rect").classed(Ya.cn.scrollBackground,!0).attr("fill","none"),l.attr("width",function(C){return C.width}).attr("height",function(C){return C.height}),a.each(function(C){c$.setClipUrl(ef.select(this),jXe(t,C),t)});var u=a.selectAll("."+Ya.cn.yColumn).data(function(C){return C.columns},Uu.keyFun);u.enter().append("g").classed(Ya.cn.yColumn,!0),u.exit().remove(),u.attr("transform",function(C){return og(C.x,0)}),n&&u.call(ef.behavior.drag().origin(function(C){var E=ef.select(this);return ZXe(E,C,-Ya.uplift),JZt(this),C.calcdata.columnDragInProgress=!0,QC(a.filter(function(A){return C.calcdata.key===A.key}),t),C}).on("drag",function(C){var E=ef.select(this),A=function(k){return(C===k?ef.event.x:k.x)+k.columnWidth/2};C.x=Math.max(-Ya.overdrag,Math.min(C.calcdata.width+Ya.overdrag-C.columnWidth,ef.event.x));var L=JXe(u).filter(function(k){return k.calcdata.key===C.calcdata.key}),_=L.sort(function(k,M){return A(k)-A(M)});_.forEach(function(k,M){k.xIndex=M,k.x=C===k?k.x:k.xScale(k)}),u.filter(function(k){return C!==k}).transition().ease(Ya.transitionEase).duration(Ya.transitionDuration).attr("transform",function(k){return og(k.x,0)}),E.call($Zt).attr("transform",og(C.x,-Ya.uplift))}).on("dragend",function(C){var E=ef.select(this),A=C.calcdata;C.x=C.xScale(C),C.calcdata.columnDragInProgress=!1,ZXe(E,C,0),uYt(t,A,A.columns.map(function(L){return L.xIndex}))})),u.each(function(C){c$.setClipUrl(ef.select(this),WXe(t,C),t)});var c=u.selectAll("."+Ya.cn.columnBlock).data(KXe.splitToPanels,Uu.keyFun);c.enter().append("g").classed(Ya.cn.columnBlock,!0).attr("id",function(C){return C.key}),c.style("cursor",function(C){return C.dragHandle?"ew-resize":C.calcdata.scrollbarState.barWiggleRoom?"ns-resize":"default"});var f=c.filter(cYt),h=c.filter(p$);n&&h.call(ef.behavior.drag().origin(function(C){return ef.event.stopPropagation(),C}).on("drag",F7(t,a,-1)).on("dragend",function(){})),f$(t,a,f,c),f$(t,a,h,c);var d=a.selectAll("."+Ya.cn.scrollAreaClip).data(Uu.repeat,Uu.keyFun);d.enter().append("clipPath").classed(Ya.cn.scrollAreaClip,!0).attr("id",function(C){return jXe(t,C)});var v=d.selectAll("."+Ya.cn.scrollAreaClipRect).data(Uu.repeat,Uu.keyFun);v.enter().append("rect").classed(Ya.cn.scrollAreaClipRect,!0).attr("x",-Ya.overdrag).attr("y",-Ya.uplift).attr("fill","none"),v.attr("width",function(C){return C.width+2*Ya.overdrag}).attr("height",function(C){return C.height+Ya.uplift});var x=u.selectAll("."+Ya.cn.columnBoundary).data(Uu.repeat,Uu.keyFun);x.enter().append("g").classed(Ya.cn.columnBoundary,!0);var b=u.selectAll("."+Ya.cn.columnBoundaryClippath).data(Uu.repeat,Uu.keyFun);b.enter().append("clipPath").classed(Ya.cn.columnBoundaryClippath,!0),b.attr("id",function(C){return WXe(t,C)});var p=b.selectAll("."+Ya.cn.columnBoundaryRect).data(Uu.repeat,Uu.keyFun);p.enter().append("rect").classed(Ya.cn.columnBoundaryRect,!0).attr("fill","none"),p.attr("width",function(C){return C.columnWidth+2*D7(C)}).attr("height",function(C){return C.calcdata.height+2*D7(C)+Ya.uplift}).attr("x",function(C){return-D7(C)}).attr("y",function(C){return-D7(C)}),g$(null,h,a)};function D7(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function jXe(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function WXe(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function JXe(e){return[].concat.apply([],e.map(function(t){return t})).map(function(t){return t.__data__})}function QC(e,t,r){function n(u){var c=u.rowBlocks;return d$(c,c.length-1)+(c.length?z7(c[c.length-1],1/0):1)}var i=e.selectAll("."+Ya.cn.scrollbarKit).data(Uu.repeat,Uu.keyFun);i.enter().append("g").classed(Ya.cn.scrollbarKit,!0).style("shape-rendering","geometricPrecision"),i.each(function(u){var c=u.scrollbarState;c.totalHeight=n(u),c.scrollableAreaHeight=u.groupHeight-h$(u),c.currentlyVisibleHeight=Math.min(c.totalHeight,c.scrollableAreaHeight),c.ratio=c.currentlyVisibleHeight/c.totalHeight,c.barLength=Math.max(c.ratio*c.currentlyVisibleHeight,Ya.goldenRatio*Ya.scrollbarWidth),c.barWiggleRoom=c.currentlyVisibleHeight-c.barLength,c.wiggleRoom=Math.max(0,c.totalHeight-c.scrollableAreaHeight),c.topY=c.barWiggleRoom===0?0:u.scrollY/c.wiggleRoom*c.barWiggleRoom,c.bottomY=c.topY+c.barLength,c.dragMultiplier=c.wiggleRoom/c.barWiggleRoom}).attr("transform",function(u){var c=u.width+Ya.scrollbarWidth/2+Ya.scrollbarOffset;return og(c,h$(u))});var a=i.selectAll("."+Ya.cn.scrollbar).data(Uu.repeat,Uu.keyFun);a.enter().append("g").classed(Ya.cn.scrollbar,!0);var o=a.selectAll("."+Ya.cn.scrollbarSlider).data(Uu.repeat,Uu.keyFun);o.enter().append("g").classed(Ya.cn.scrollbarSlider,!0),o.attr("transform",function(u){return og(0,u.scrollbarState.topY||0)});var s=o.selectAll("."+Ya.cn.scrollbarGlyph).data(Uu.repeat,Uu.keyFun);s.enter().append("line").classed(Ya.cn.scrollbarGlyph,!0).attr("stroke","black").attr("stroke-width",Ya.scrollbarWidth).attr("stroke-linecap","round").attr("y1",Ya.scrollbarWidth/2),s.attr("y2",function(u){return u.scrollbarState.barLength-Ya.scrollbarWidth/2}).attr("stroke-opacity",function(u){return u.columnDragInProgress||!u.scrollbarState.barWiggleRoom||r?0:.4}),s.transition().delay(0).duration(0),s.transition().delay(Ya.scrollbarHideDelay).duration(Ya.scrollbarHideDuration).attr("stroke-opacity",0);var l=a.selectAll("."+Ya.cn.scrollbarCaptureZone).data(Uu.repeat,Uu.keyFun);l.enter().append("line").classed(Ya.cn.scrollbarCaptureZone,!0).attr("stroke","white").attr("stroke-opacity",.01).attr("stroke-width",Ya.scrollbarCaptureWidth).attr("stroke-linecap","butt").attr("y1",0).on("mousedown",function(u){var c=ef.event.y,f=this.getBoundingClientRect(),h=u.scrollbarState,d=c-f.top,v=ef.scale.linear().domain([0,h.scrollableAreaHeight]).range([0,h.totalHeight]).clamp(!0);h.topY<=d&&d<=h.bottomY||F7(t,e,null,v(d-h.barLength/2))(u)}).call(ef.behavior.drag().origin(function(u){return ef.event.stopPropagation(),u.scrollbarState.scrollbarScrollInProgress=!0,u}).on("drag",F7(t,e)).on("dragend",function(){})),l.attr("y2",function(u){return u.scrollbarState.scrollableAreaHeight}),t._context.staticPlot&&(s.remove(),l.remove())}function f$(e,t,r,n){var i=eYt(r),a=tYt(i);aYt(a);var o=rYt(a);sYt(o);var s=nYt(a),l=iYt(s);oYt(l),$Xe(l,t,n,e),m$(a)}function eYt(e){var t=e.selectAll("."+Ya.cn.columnCells).data(Uu.repeat,Uu.keyFun);return t.enter().append("g").classed(Ya.cn.columnCells,!0),t.exit().remove(),t}function tYt(e){var t=e.selectAll("."+Ya.cn.columnCell).data(KXe.splitToCells,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(Ya.cn.columnCell,!0),t.exit().remove(),t}function rYt(e){var t=e.selectAll("."+Ya.cn.cellRect).data(Uu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("rect").classed(Ya.cn.cellRect,!0),t}function iYt(e){var t=e.selectAll("."+Ya.cn.cellText).data(Uu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("text").classed(Ya.cn.cellText,!0).style("cursor",function(){return"auto"}).on("mousedown",function(){ef.event.stopPropagation()}),t}function nYt(e){var t=e.selectAll("."+Ya.cn.cellTextHolder).data(Uu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(Ya.cn.cellTextHolder,!0).style("shape-rendering","geometricPrecision"),t}function aYt(e){e.each(function(t,r){var n=t.calcdata.cells.font,i=t.column.specIndex,a={size:Zv(n.size,i,r),color:Zv(n.color,i,r),family:Zv(n.family,i,r),weight:Zv(n.weight,i,r),style:Zv(n.style,i,r),variant:Zv(n.variant,i,r),textcase:Zv(n.textcase,i,r),lineposition:Zv(n.lineposition,i,r),shadow:Zv(n.shadow,i,r)};t.rowNumber=t.key,t.align=Zv(t.calcdata.cells.align,i,r),t.cellBorderWidth=Zv(t.calcdata.cells.line.width,i,r),t.font=a})}function oYt(e){e.each(function(t){c$.font(ef.select(this),t.font)})}function sYt(e){e.attr("width",function(t){return t.column.columnWidth}).attr("stroke-width",function(t){return t.cellBorderWidth}).each(function(t){var r=ef.select(this);HXe.stroke(r,Zv(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),HXe.fill(r,Zv(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function $Xe(e,t,r,n){e.text(function(i){var a=i.column.specIndex,o=i.rowNumber,s=i.value,l=typeof s=="string",u=l&&s.match(/
/i),c=!l||u;i.mayHaveMarkup=l&&s.match(/[<&>]/);var f=lYt(s);i.latex=f;var h=f?"":Zv(i.calcdata.cells.prefix,a,o)||"",d=f?"":Zv(i.calcdata.cells.suffix,a,o)||"",v=f?null:Zv(i.calcdata.cells.format,a,o)||null,x=h+(v?YZt(v)(i.value):i.value)+d,b;i.wrappingNeeded=!i.wrapped&&!c&&!f&&(b=XXe(x)),i.cellHeightMayIncrease=u||f||i.mayHaveMarkup||(b===void 0?XXe(x):b),i.needsConvertToTspans=i.mayHaveMarkup||i.wrappingNeeded||i.latex;var p;if(i.wrappingNeeded){var C=Ya.wrapSplitCharacter===" "?x.replace(/i&&n.push(a),i+=l}return n}function g$(e,t,r){var n=JXe(t)[0];if(n!==void 0){var i=n.rowBlocks,a=n.calcdata,o=d$(i,i.length),s=n.calcdata.groupHeight-h$(n),l=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),u=fYt(i,l,s);u.length===1&&(u[0]===i.length-1?u.unshift(u[0]-1):u.push(u[0]+1)),u[0]%2&&u.reverse(),t.each(function(c,f){c.page=u[f],c.scrollY=l}),t.attr("transform",function(c){var f=d$(c.rowBlocks,c.page)-c.scrollY;return og(0,f)}),e&&(YXe(e,r,t,u,n.prevPages,n,0),YXe(e,r,t,u,n.prevPages,n,1),QC(r,e))}}function F7(e,t,r,n){return function(a){var o=a.calcdata?a.calcdata:a,s=t.filter(function(f){return o.key===f.key}),l=r||o.scrollbarState.dragMultiplier,u=o.scrollY;o.scrollY=n===void 0?o.scrollY+l*ef.event.dy:n;var c=s.selectAll("."+Ya.cn.yColumn).selectAll("."+Ya.cn.columnBlock).filter(p$);return g$(e,c,s),o.scrollY===u}}function YXe(e,t,r,n,i,a,o){var s=n[o]!==i[o];s&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout(function(){var l=r.filter(function(u,c){return c===o&&n[c]!==i[c]});f$(e,t,l,r),i[o]=n[o]}))}function hYt(e,t,r,n){return function(){var a=ef.select(t.parentNode);a.each(function(o){var s=o.fragments;a.selectAll("tspan.line").each(function(x,b){s[b].width=this.getComputedTextLength()});var l=s[s.length-1].width,u=s.slice(0,-1),c=[],f,h,d=0,v=o.column.columnWidth-2*Ya.cellPad;for(o.value="";u.length;)f=u.shift(),h=f.width+l,d+h>v&&(o.value+=c.join(Ya.wrapSpacer)+Ya.lineBreaker,c=[],d=0),c.push(f.text),d+=h;d&&(o.value+=c.join(Ya.wrapSpacer)),o.wrapped=!0}),a.selectAll("tspan.line").remove(),$Xe(a.select("."+Ya.cn.cellText),r,e,n),ef.select(t.parentNode.parentNode).call(m$)}}function dYt(e,t,r,n,i){return function(){if(!i.settledY){var o=ef.select(t.parentNode),s=v$(i),l=i.key-s.firstRowIndex,u=s.rows[l].rowHeight,c=i.cellHeightMayIncrease?t.parentNode.getBoundingClientRect().height+2*Ya.cellPad:u,f=Math.max(c,u),h=f-s.rows[l].rowHeight;h&&(s.rows[l].rowHeight=f,e.selectAll("."+Ya.cn.columnCell).call(m$),g$(null,e.filter(p$),0),QC(r,n,!0)),o.attr("transform",function(){var d=this,v=d.parentNode,x=v.getBoundingClientRect(),b=ef.select(d.parentNode).select("."+Ya.cn.cellRect).node().getBoundingClientRect(),p=d.transform.baseVal.consolidate(),C=b.top-x.top+(p?p.matrix.f:Ya.cellPad);return og(QXe(i,ef.select(d.parentNode).select("."+Ya.cn.cellTextHolder).node().getBoundingClientRect().width),C)}),i.settledY=!0}}}function QXe(e,t){switch(e.align){case"left":return Ya.cellPad;case"right":return e.column.columnWidth-(t||0)-Ya.cellPad;case"center":return(e.column.columnWidth-(t||0))/2;default:return Ya.cellPad}}function m$(e){e.attr("transform",function(t){var r=t.rowBlocks[0].auxiliaryBlocks.reduce(function(o,s){return o+z7(s,1/0)},0),n=v$(t),i=z7(n,t.key),a=i+r;return og(0,a)}).selectAll("."+Ya.cn.cellRect).attr("height",function(t){return pYt(v$(t),t.key).rowHeight})}function d$(e,t){for(var r=0,n=t-1;n>=0;n--)r+=vYt(e[n]);return r}function z7(e,t){for(var r=0,n=0;n{"use strict";var gYt=Id().getModuleCalcData,mYt=y$(),O7="table";q7.name=O7;q7.plot=function(e){var t=gYt(e.calcdata,O7)[0];t.length&&mYt(e,t)};q7.clean=function(e,t,r,n){var i=n._has&&n._has(O7),a=t._has&&t._has(O7);i&&!a&&n._paperdiv.selectAll(".table").remove()}});var iZe=ye((xbr,rZe)=>{"use strict";rZe.exports={attributes:r$(),supplyDefaults:LXe(),calc:IXe(),plot:y$(),moduleType:"trace",name:"table",basePlotModule:tZe(),categories:["noOpacity"],meta:{}}});var aZe=ye((bbr,nZe)=>{"use strict";nZe.exports=iZe()});var cZe=ye((wbr,uZe)=>{"use strict";var oZe=ec(),sZe=Eh(),_$=Rd(),yYt=ff().descriptionWithDates,_Yt=mc().overrideAll,lZe=Pd().dash,x$=Ao().extendFlat;uZe.exports={color:{valType:"color",editType:"calc"},smoothing:{valType:"number",dflt:1,min:0,max:1.3,editType:"calc"},title:{text:{valType:"string",dflt:"",editType:"calc"},font:oZe({editType:"calc"}),offset:{valType:"number",dflt:10,editType:"calc"},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc"},autotypenumbers:_$.autotypenumbers,autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"calc"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"calc"},range:{valType:"info_array",editType:"calc",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}]},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},cheatertype:{valType:"enumerated",values:["index","value"],dflt:"value",editType:"calc"},tickmode:{valType:"enumerated",values:["linear","array"],dflt:"array",editType:"calc"},nticks:{valType:"integer",min:0,dflt:0,editType:"calc"},tickvals:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},showticklabels:{valType:"enumerated",values:["start","end","both","none"],dflt:"start",editType:"calc"},labelalias:x$({},_$.labelalias,{editType:"calc"}),tickfont:oZe({editType:"calc"}),tickangle:{valType:"angle",dflt:"auto",editType:"calc"},tickprefix:{valType:"string",dflt:"",editType:"calc"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},ticksuffix:{valType:"string",dflt:"",editType:"calc"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"calc"},minexponent:{valType:"number",dflt:3,min:0,editType:"calc"},separatethousands:{valType:"boolean",dflt:!1,editType:"calc"},tickformat:{valType:"string",dflt:"",editType:"calc",description:yYt("tick label")},tickformatstops:_Yt(_$.tickformatstops,"calc","from-root"),categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},labelpadding:{valType:"integer",dflt:10,editType:"calc"},labelprefix:{valType:"string",editType:"calc"},labelsuffix:{valType:"string",dflt:"",editType:"calc"},showline:{valType:"boolean",dflt:!1,editType:"calc"},linecolor:{valType:"color",dflt:sZe.defaultLine,editType:"calc"},linewidth:{valType:"number",min:0,dflt:1,editType:"calc"},gridcolor:{valType:"color",editType:"calc"},gridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},griddash:x$({},lZe,{editType:"calc"}),showgrid:{valType:"boolean",dflt:!0,editType:"calc"},minorgridcount:{valType:"integer",min:0,dflt:0,editType:"calc"},minorgridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},minorgriddash:x$({},lZe,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:sZe.lightLine,editType:"calc"},startline:{valType:"boolean",editType:"calc"},startlinecolor:{valType:"color",editType:"calc"},startlinewidth:{valType:"number",dflt:1,editType:"calc"},endline:{valType:"boolean",editType:"calc"},endlinewidth:{valType:"number",dflt:1,editType:"calc"},endlinecolor:{valType:"color",editType:"calc"},tick0:{valType:"number",min:0,dflt:0,editType:"calc"},dtick:{valType:"number",min:0,dflt:1,editType:"calc"},arraytick0:{valType:"integer",min:0,dflt:0,editType:"calc"},arraydtick:{valType:"integer",min:1,dflt:1,editType:"calc"},editType:"calc"}});var N7=ye((Tbr,dZe)=>{"use strict";var xYt=ec(),fZe=cZe(),hZe=Eh(),B7=xYt({editType:"calc"}),bYt=vf().zorder;B7.family.dflt='"Open Sans", verdana, arial, sans-serif';B7.size.dflt=12;B7.color.dflt=hZe.defaultLine;dZe.exports={carpet:{valType:"string",editType:"calc"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},a:{valType:"data_array",editType:"calc"},a0:{valType:"number",dflt:0,editType:"calc"},da:{valType:"number",dflt:1,editType:"calc"},b:{valType:"data_array",editType:"calc"},b0:{valType:"number",dflt:0,editType:"calc"},db:{valType:"number",dflt:1,editType:"calc"},cheaterslope:{valType:"number",dflt:1,editType:"calc"},aaxis:fZe,baxis:fZe,font:B7,color:{valType:"color",dflt:hZe.defaultLine,editType:"plot"},zorder:bYt}});var gZe=ye((Abr,pZe)=>{"use strict";var vZe=Dr().isArray1D;pZe.exports=function(t,r,n){var i=n("x"),a=i&&i.length,o=n("y"),s=o&&o.length;if(!a&&!s)return!1;if(r._cheater=!i,(!a||vZe(i))&&(!s||vZe(o))){var l=a?i.length:1/0;s&&(l=Math.min(l,o.length)),r.a&&r.a.length&&(l=Math.min(l,r.a.length)),r.b&&r.b.length&&(l=Math.min(l,r.b.length)),r._length=l}else r._length=null;return!0}});var _Ze=ye((Sbr,yZe)=>{"use strict";var wYt=N7(),mZe=Ca().addOpacity,TYt=qa(),ek=Dr(),AYt=xb(),SYt=t_(),MYt=r_(),EYt=rI(),CYt=ym(),kYt=L3();yZe.exports=function(t,r,n){var i=n.letter,a=n.font||{},o=wYt[i+"axis"];function s(g,P){return ek.coerce(t,r,o,g,P)}function l(g,P){return ek.coerce2(t,r,o,g,P)}n.name&&(r._name=n.name,r._id=n.name),s("autotypenumbers",n.autotypenumbersDflt);var u=s("type");if(u==="-"&&(n.data&&LYt(r,n.data),r.type==="-"?r.type="linear":u=t.type=r.type),s("smoothing"),s("cheatertype"),s("showticklabels"),s("labelprefix",i+" = "),s("labelsuffix"),s("showtickprefix"),s("showticksuffix"),s("separatethousands"),s("tickformat"),s("exponentformat"),s("minexponent"),s("showexponent"),s("categoryorder"),s("tickmode"),s("tickvals"),s("ticktext"),s("tick0"),s("dtick"),r.tickmode==="array"&&(s("arraytick0"),s("arraydtick")),s("labelpadding"),r._hovertitle=i,u==="date"){var c=TYt.getComponentMethod("calendars","handleDefaults");c(t,r,"calendar",n.calendar)}CYt(r,n.fullLayout),r.c2p=ek.identity;var f=s("color",n.dfltColor),h=f===t.color?f:a.color,d=s("title.text");d&&(ek.coerceFont(s,"title.font",a,{overrideDflt:{size:ek.bigFont(a.size),color:h}}),s("title.offset")),s("tickangle");var v=s("autorange",!r.isValidRange(t.range));v&&s("rangemode"),s("range"),r.cleanRange(),s("fixedrange"),AYt(t,r,s,u),MYt(t,r,s,u,n),SYt(t,r,s,u,n),EYt(t,r,s,{data:n.data,dataAttr:i});var x=l("gridcolor",mZe(f,.3)),b=l("gridwidth"),p=l("griddash"),C=s("showgrid");C||(delete r.gridcolor,delete r.gridwidth,delete r.griddash);var E=l("startlinecolor",f),A=l("startlinewidth",b),L=s("startline",r.showgrid||!!E||!!A);L||(delete r.startlinecolor,delete r.startlinewidth);var _=l("endlinecolor",f),k=l("endlinewidth",b),M=s("endline",r.showgrid||!!_||!!k);return M||(delete r.endlinecolor,delete r.endlinewidth),C?(s("minorgridcount"),s("minorgridwidth",b),s("minorgriddash",p),s("minorgridcolor",mZe(x,.06)),r.minorgridcount||(delete r.minorgridwidth,delete r.minorgriddash,delete r.minorgridcolor)):(delete r.gridcolor,delete r.gridwidth,delete r.griddash),r.showticklabels==="none"&&(delete r.tickfont,delete r.tickangle,delete r.showexponent,delete r.exponentformat,delete r.minexponent,delete r.tickformat,delete r.showticksuffix,delete r.showtickprefix),r.showticksuffix||delete r.ticksuffix,r.showtickprefix||delete r.tickprefix,s("tickmode"),r};function LYt(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i=n+"calendar",a=e[i];e.type=kYt(t,a,{autotypenumbers:e.autotypenumbers})}}});var bZe=ye((Mbr,xZe)=>{"use strict";var PYt=_Ze(),IYt=pl();xZe.exports=function(t,r,n,i,a){var o=i("a");o||(i("da"),i("a0"));var s=i("b");s||(i("db"),i("b0")),RYt(t,r,n,a)};function RYt(e,t,r,n){var i=["aaxis","baxis"];i.forEach(function(a){var o=a.charAt(0),s=e[a]||{},l=IYt.newContainer(t,a),u={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,tickfont:"x",id:o+"axis",letter:o,font:t.font,name:a,data:e[o],calendar:t.calendar,dfltColor:n,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};PYt(s,l,u),l._categories=l._categories||[],!e[a]&&s.type!=="-"&&(e[a]={type:s.type})})}});var AZe=ye((Ebr,TZe)=>{"use strict";var wZe=Dr(),DYt=gZe(),FYt=bZe(),zYt=N7(),OYt=Eh();TZe.exports=function(t,r,n,i){function a(l,u){return wZe.coerce(t,r,zYt,l,u)}r._clipPathId="clip"+r.uid+"carpet";var o=a("color",OYt.defaultLine);if(wZe.coerceFont(a,"font",i.font),a("carpet"),FYt(t,r,i,a,o),!r.a||!r.b){r.visible=!1;return}r.a.length<3&&(r.aaxis.smoothing=0),r.b.length<3&&(r.baxis.smoothing=0);var s=DYt(t,r,a);s||(r.visible=!1),r._cheater&&a("cheaterslope"),a("zorder")}});var b$=ye((Cbr,SZe)=>{"use strict";var qYt=Dr().isArrayOrTypedArray;SZe.exports=function(t,r,n){var i;for(qYt(t)?t.length>r.length&&(t=t.slice(0,r.length)):t=[],i=0;i{"use strict";MZe.exports=function(t,r,n){if(t.length===0)return"";var i,a=[],o=n?3:1;for(i=0;i{"use strict";EZe.exports=function(t,r,n,i,a,o){var s=a[0]*t.dpdx(r),l=a[1]*t.dpdy(n),u=1,c=1;if(o){var f=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=Math.sqrt(o[0]*o[0]+o[1]*o[1]),d=(a[0]*o[0]+a[1]*o[1])/f/h;c=Math.max(0,d)}var v=Math.atan2(l,s)*180/Math.PI;return v<-90?(v+=180,u=-u):v>90&&(v-=180,u=-u),{angle:v,flip:u,p:t.c2p(i,r,n),offsetMultplier:c}}});var zZe=ye((Pbr,FZe)=>{"use strict";var H7=Oa(),U7=So(),V7=b$(),PZe=w$(),tk=CZe(),T$=iu(),Np=Dr(),IZe=Np.strRotate,G7=Np.strTranslate,RZe=Kh();FZe.exports=function(t,r,n,i){var a=t._context.staticPlot,o=r.xaxis,s=r.yaxis,l=t._fullLayout,u=l._clips;Np.makeTraceGroups(i,n,"trace").each(function(c){var f=H7.select(this),h=c[0],d=h.trace,v=d.aaxis,x=d.baxis,b=Np.ensureSingle(f,"g","minorlayer"),p=Np.ensureSingle(f,"g","majorlayer"),C=Np.ensureSingle(f,"g","boundarylayer"),E=Np.ensureSingle(f,"g","labellayer");f.style("opacity",d.opacity),z5(o,s,p,v,"a",v._gridlines,!0,a),z5(o,s,p,x,"b",x._gridlines,!0,a),z5(o,s,b,v,"a",v._minorgridlines,!0,a),z5(o,s,b,x,"b",x._minorgridlines,!0,a),z5(o,s,C,v,"a-boundary",v._boundarylines,a),z5(o,s,C,x,"b-boundary",x._boundarylines,a);var A=kZe(t,o,s,d,h,E,v._labels,"a-label"),L=kZe(t,o,s,d,h,E,x._labels,"b-label");NYt(t,E,d,h,o,s,A,L),BYt(d,h,u,o,s)})};function BYt(e,t,r,n,i){var a,o,s,l,u=r.select("#"+e._clipPathId);u.size()||(u=r.append("clipPath").classed("carpetclip",!0));var c=Np.ensureSingle(u,"path","carpetboundary"),f=t.clipsegments,h=[];for(l=0;l0?"start":"end","data-notex":1}).call(U7.font,f.font).text(f.text).call(T$.convertToTspans,e),p=U7.bBox(this);b.attr("transform",G7(d.p[0],d.p[1])+IZe(d.angle)+G7(f.axis.labelpadding*x,p.height*.3)),u=Math.max(u,p.width+f.axis.labelpadding)}),l.exit().remove(),c.maxExtent=u,c}function NYt(e,t,r,n,i,a,o,s){var l,u,c,f,h=Np.aggNums(Math.min,null,r.a),d=Np.aggNums(Math.max,null,r.a),v=Np.aggNums(Math.min,null,r.b),x=Np.aggNums(Math.max,null,r.b);l=.5*(h+d),u=v,c=r.ab2xy(l,u,!0),f=r.dxyda_rough(l,u),o.angle===void 0&&Np.extendFlat(o,tk(r,i,a,c,r.dxydb_rough(l,u))),LZe(e,t,r,n,c,f,r.aaxis,i,a,o,"a-title"),l=h,u=.5*(v+x),c=r.ab2xy(l,u,!0),f=r.dxydb_rough(l,u),s.angle===void 0&&Np.extendFlat(s,tk(r,i,a,c,r.dxyda_rough(l,u))),LZe(e,t,r,n,c,f,r.baxis,i,a,s,"b-title")}var DZe=RZe.LINE_SPACING,UYt=(1-RZe.MID_SHIFT)/DZe+1;function LZe(e,t,r,n,i,a,o,s,l,u,c){var f=[];o.title.text&&f.push(o.title.text);var h=t.selectAll("text."+c).data(f),d=u.maxExtent;h.enter().append("text").classed(c,!0),h.each(function(){var v=tk(r,s,l,i,a);["start","both"].indexOf(o.showticklabels)===-1&&(d=0);var x=o.title.font.size;d+=x+o.title.offset;var b=u.angle+(u.flip<0?180:0),p=(b-v.angle+450)%360,C=p>90&&p<270,E=H7.select(this);E.text(o.title.text).call(T$.convertToTspans,e),C&&(d=(-T$.lineCount(E)+UYt)*DZe*x-d),E.attr("transform",G7(v.p[0],v.p[1])+IZe(v.angle)+G7(0,d)).attr("text-anchor","middle").call(U7.font,o.title.font)}),h.exit().remove()}});var qZe=ye((Ibr,OZe)=>{"use strict";var j7=Dr().isArrayOrTypedArray;OZe.exports=function(e,t,r){var n,i,a,o,s,l,u=[],c=j7(e)?e.length:e,f=j7(t)?t.length:t,h=j7(e)?e:null,d=j7(t)?t:null;h&&(a=(h.length-1)/(h[h.length-1]-h[0])/(c-1)),d&&(o=(d.length-1)/(d[d.length-1]-d[0])/(f-1));var v,x=1/0,b=-1/0;for(i=0;i{"use strict";var BZe=Dr().isArrayOrTypedArray;UZe.exports=function(e){return NZe(e,0)};function NZe(e,t){if(!BZe(e)||t>=10)return null;for(var r=1/0,n=-1/0,i=e.length,a=0;a{"use strict";var VYt=ho(),Cx=Ao().extendFlat;GZe.exports=function(t,r,n){var i,a,o,s,l,u,c,f,h,d,v,x,b,p,C=t["_"+r],E=t[r+"axis"],A=E._gridlines=[],L=E._minorgridlines=[],_=E._boundarylines=[],k=t["_"+n],M=t[n+"axis"];E.tickmode==="array"&&(E.tickvals=C.slice());var g=t._xctrl,P=t._yctrl,T=g[0].length,z=g.length,O=t._a.length,V=t._b.length;VYt.prepTicks(E),E.tickmode==="array"&&delete E.tickvals;var G=E.smoothing?3:1;function Z(N){var j,re,oe,_e,Me,ke,me,ie,Se,Le,Ae,Fe,Pe=[],ge=[],De={};if(r==="b")for(re=t.b2j(N),oe=Math.floor(Math.max(0,Math.min(V-2,re))),_e=re-oe,De.length=V,De.crossLength=O,De.xy=function(ce){return t.evalxy([],ce,re)},De.dxy=function(ce,Ze){return t.dxydi([],ce,oe,Ze,_e)},j=0;j0&&(Se=t.dxydi([],j-1,oe,0,_e),Pe.push(Me[0]+Se[0]/3),ge.push(Me[1]+Se[1]/3),Le=t.dxydi([],j-1,oe,1,_e),Pe.push(ie[0]-Le[0]/3),ge.push(ie[1]-Le[1]/3)),Pe.push(ie[0]),ge.push(ie[1]),Me=ie;else for(j=t.a2i(N),ke=Math.floor(Math.max(0,Math.min(O-2,j))),me=j-ke,De.length=O,De.crossLength=V,De.xy=function(ce){return t.evalxy([],j,ce)},De.dxy=function(ce,Ze){return t.dxydj([],ke,ce,me,Ze)},re=0;re0&&(Ae=t.dxydj([],ke,re-1,me,0),Pe.push(Me[0]+Ae[0]/3),ge.push(Me[1]+Ae[1]/3),Fe=t.dxydj([],ke,re-1,me,1),Pe.push(ie[0]-Fe[0]/3),ge.push(ie[1]-Fe[1]/3)),Pe.push(ie[0]),ge.push(ie[1]),Me=ie;return De.axisLetter=r,De.axis=E,De.crossAxis=M,De.value=N,De.constvar=n,De.index=f,De.x=Pe,De.y=ge,De.smoothing=M.smoothing,De}function H(N){var j,re,oe,_e,Me,ke=[],me=[],ie={};if(ie.length=C.length,ie.crossLength=k.length,r==="b")for(oe=Math.max(0,Math.min(V-2,N)),Me=Math.min(1,Math.max(0,N-oe)),ie.xy=function(Se){return t.evalxy([],Se,N)},ie.dxy=function(Se,Le){return t.dxydi([],Se,oe,Le,Me)},j=0;jC.length-1)&&A.push(Cx(H(a),{color:E.gridcolor,width:E.gridwidth,dash:E.griddash}));for(f=u;fC.length-1)&&!(v<0||v>C.length-1))for(x=C[o],b=C[v],i=0;iC[C.length-1])&&L.push(Cx(Z(d),{color:E.minorgridcolor,width:E.minorgridwidth,dash:E.minorgriddash})));E.startline&&_.push(Cx(H(0),{color:E.startlinecolor,width:E.startlinewidth})),E.endline&&_.push(Cx(H(C.length-1),{color:E.endlinecolor,width:E.endlinewidth}))}else{for(s=5e-15,l=[Math.floor((C[C.length-1]-E.tick0)/E.dtick*(1+s)),Math.ceil((C[0]-E.tick0)/E.dtick/(1+s))].sort(function(N,j){return N-j}),u=l[0],c=l[1],f=u;f<=c;f++)h=E.tick0+E.dtick*f,A.push(Cx(Z(h),{color:E.gridcolor,width:E.gridwidth,dash:E.griddash}));for(f=u-1;fC[C.length-1])&&L.push(Cx(Z(d),{color:E.minorgridcolor,width:E.minorgridwidth,dash:E.minorgriddash}));E.startline&&_.push(Cx(Z(C[0]),{color:E.startlinecolor,width:E.startlinewidth})),E.endline&&_.push(Cx(Z(C[C.length-1]),{color:E.endlinecolor,width:E.endlinewidth}))}}});var ZZe=ye((Fbr,XZe)=>{"use strict";var jZe=ho(),WZe=Ao().extendFlat;XZe.exports=function(t,r){var n,i,a,o,s,l=r._labels=[],u=r._gridlines;for(n=0;n{"use strict";YZe.exports=function(t,r,n,i){var a,o,s,l=[],u=!!n.smoothing,c=!!i.smoothing,f=t[0].length-1,h=t.length-1;for(a=0,o=[],s=[];a<=f;a++)o[a]=t[0][a],s[a]=r[0][a];for(l.push({x:o,y:s,bicubic:u}),a=0,o=[],s=[];a<=h;a++)o[a]=t[a][f],s[a]=r[a][f];for(l.push({x:o,y:s,bicubic:c}),a=f,o=[],s=[];a>=0;a--)o[f-a]=t[h][a],s[f-a]=r[h][a];for(l.push({x:o,y:s,bicubic:u}),a=h,o=[],s=[];a>=0;a--)o[h-a]=t[a][0],s[h-a]=r[a][0];return l.push({x:o,y:s,bicubic:c}),l}});var $Ze=ye((Obr,JZe)=>{"use strict";var GYt=Dr();JZe.exports=function(t,r,n){var i,a,o,s=[],l=[],u=t[0].length,c=t.length;function f(oe,_e){var Me=0,ke,me=0;return oe>0&&(ke=t[_e][oe-1])!==void 0&&(me++,Me+=ke),oe0&&(ke=t[_e-1][oe])!==void 0&&(me++,Me+=ke),_e0&&a0&&iM);return GYt.log("Smoother converged to",g,"after",T,"iterations"),t}});var eYe=ye((qbr,QZe)=>{"use strict";QZe.exports={RELATIVE_CULL_TOLERANCE:1e-6}});var iYe=ye((Bbr,rYe)=>{"use strict";var tYe=.5;rYe.exports=function(t,r,n,i){var a=t[0]-r[0],o=t[1]-r[1],s=n[0]-r[0],l=n[1]-r[1],u=Math.pow(a*a+o*o,tYe/2),c=Math.pow(s*s+l*l,tYe/2),f=(c*c*a-u*u*s)*i,h=(c*c*o-u*u*l)*i,d=c*(u+c)*3,v=u*(u+c)*3;return[[r[0]+(d&&f/d),r[1]+(d&&h/d)],[r[0]-(v&&f/v),r[1]-(v&&h/v)]]}});var aYe=ye((Nbr,nYe)=>{"use strict";var A$=iYe(),W7=Dr().ensureArray;function O5(e,t,r){var n=-.5*r[0]+1.5*t[0],i=-.5*r[1]+1.5*t[1];return[(2*n+e[0])/3,(2*i+e[1])/3]}nYe.exports=function(t,r,n,i,a,o){var s,l,u,c,f,h,d,v,x,b,p=n[0].length,C=n.length,E=a?3*p-2:p,A=o?3*C-2:C;for(t=W7(t,A),r=W7(r,A),u=0;u{"use strict";oYe.exports=function(e,t,r,n,i){var a=t-2,o=r-2;return n&&i?function(s,l,u){s||(s=[]);var c,f,h,d,v,x,b=Math.max(0,Math.min(Math.floor(l),a)),p=Math.max(0,Math.min(Math.floor(u),o)),C=Math.max(0,Math.min(1,l-b)),E=Math.max(0,Math.min(1,u-p));b*=3,p*=3;var A=C*C,L=A*C,_=1-C,k=_*_,M=k*_,g=E*E,P=g*E,T=1-E,z=T*T,O=z*T;for(x=0;x{"use strict";lYe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var l,u,c,f,h,d;i*=3,a*=3;var v=o*o,x=1-o,b=x*x,p=x*o*2,C=-3*b,E=3*(b-p),A=3*(p-v),L=3*v,_=s*s,k=_*s,M=1-s,g=M*M,P=g*M;for(d=0;d{"use strict";cYe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var l,u,c,f,h,d;i*=3,a*=3;var v=o*o,x=v*o,b=1-o,p=b*b,C=p*b,E=s*s,A=1-s,L=A*A,_=A*s*2,k=-3*L,M=3*(L-_),g=3*(_-E),P=3*E;for(d=0;d{"use strict";var hYe=eYe(),dYe=L6().findBin,HYt=aYe(),jYt=sYe(),WYt=uYe(),XYt=fYe();vYe.exports=function(t){var r=t._a,n=t._b,i=r.length,a=n.length,o=t.aaxis,s=t.baxis,l=r[0],u=r[i-1],c=n[0],f=n[a-1],h=r[r.length-1]-r[0],d=n[n.length-1]-n[0],v=h*hYe.RELATIVE_CULL_TOLERANCE,x=d*hYe.RELATIVE_CULL_TOLERANCE;l-=v,u+=v,c-=x,f+=x,t.isVisible=function(b,p){return b>l&&bc&&pu||pf},t.setScale=function(){var b=t._x,p=t._y,C=HYt(t._xctrl,t._yctrl,b,p,o.smoothing,s.smoothing);t._xctrl=C[0],t._yctrl=C[1],t.evalxy=jYt([t._xctrl,t._yctrl],i,a,o.smoothing,s.smoothing),t.dxydi=WYt([t._xctrl,t._yctrl],o.smoothing,s.smoothing),t.dxydj=XYt([t._xctrl,t._yctrl],o.smoothing,s.smoothing)},t.i2a=function(b){var p=Math.max(0,Math.floor(b[0]),i-2),C=b[0]-p;return(1-C)*r[p]+C*r[p+1]},t.j2b=function(b){var p=Math.max(0,Math.floor(b[1]),i-2),C=b[1]-p;return(1-C)*n[p]+C*n[p+1]},t.ij2ab=function(b){return[t.i2a(b[0]),t.j2b(b[1])]},t.a2i=function(b){var p=Math.max(0,Math.min(dYe(b,r),i-2)),C=r[p],E=r[p+1];return Math.max(0,Math.min(i-1,p+(b-C)/(E-C)))},t.b2j=function(b){var p=Math.max(0,Math.min(dYe(b,n),a-2)),C=n[p],E=n[p+1];return Math.max(0,Math.min(a-1,p+(b-C)/(E-C)))},t.ab2ij=function(b){return[t.a2i(b[0]),t.b2j(b[1])]},t.i2c=function(b,p){return t.evalxy([],b,p)},t.ab2xy=function(b,p,C){if(!C&&(br[i-1]|pn[a-1]))return[!1,!1];var E=t.a2i(b),A=t.b2j(p),L=t.evalxy([],E,A);if(C){var _=0,k=0,M=[],g,P,T,z;br[i-1]?(g=i-2,P=1,_=(b-r[i-1])/(r[i-1]-r[i-2])):(g=Math.max(0,Math.min(i-2,Math.floor(E))),P=E-g),pn[a-1]?(T=a-2,z=1,k=(p-n[a-1])/(n[a-1]-n[a-2])):(T=Math.max(0,Math.min(a-2,Math.floor(A))),z=A-T),_&&(t.dxydi(M,g,T,P,z),L[0]+=M[0]*_,L[1]+=M[1]*_),k&&(t.dxydj(M,g,T,P,z),L[0]+=M[0]*k,L[1]+=M[1]*k)}return L},t.c2p=function(b,p,C){return[p.c2p(b[0]),C.c2p(b[1])]},t.p2x=function(b,p,C){return[p.p2c(b[0]),C.p2c(b[1])]},t.dadi=function(b){var p=Math.max(0,Math.min(r.length-2,b));return r[p+1]-r[p]},t.dbdj=function(b){var p=Math.max(0,Math.min(n.length-2,b));return n[p+1]-n[p]},t.dxyda=function(b,p,C,E){var A=t.dxydi(null,b,p,C,E),L=t.dadi(b,C);return[A[0]/L,A[1]/L]},t.dxydb=function(b,p,C,E){var A=t.dxydj(null,b,p,C,E),L=t.dbdj(p,E);return[A[0]/L,A[1]/L]},t.dxyda_rough=function(b,p,C){var E=h*(C||.1),A=t.ab2xy(b+E,p,!0),L=t.ab2xy(b-E,p,!0);return[(A[0]-L[0])*.5/E,(A[1]-L[1])*.5/E]},t.dxydb_rough=function(b,p,C){var E=d*(C||.1),A=t.ab2xy(b,p+E,!0),L=t.ab2xy(b,p-E,!0);return[(A[0]-L[0])*.5/E,(A[1]-L[1])*.5/E]},t.dpdx=function(b){return b._m},t.dpdy=function(b){return b._m}}});var TYe=ye((jbr,wYe)=>{"use strict";var X7=ho(),gYe=Dr().isArray1D,ZYt=qZe(),mYe=VZe(),yYe=HZe(),_Ye=ZZe(),YYt=KZe(),xYe=t8(),bYe=$Ze(),KYt=QI(),JYt=pYe();wYe.exports=function(t,r){var n=X7.getFromId(t,r.xaxis),i=X7.getFromId(t,r.yaxis),a=r.aaxis,o=r.baxis,s=r.x,l=r.y,u=[];s&&gYe(s)&&u.push("x"),l&&gYe(l)&&u.push("y"),u.length&&KYt(r,a,o,"a","b",u);var c=r._a=r._a||r.a,f=r._b=r._b||r.b;s=r._x||r.x,l=r._y||r.y;var h={};if(r._cheater){var d=a.cheatertype==="index"?c.length:c,v=o.cheatertype==="index"?f.length:f;s=ZYt(d,v,r.cheaterslope)}r._x=s=xYe(s),r._y=l=xYe(l),bYe(s,c,f),bYe(l,c,f),JYt(r),r.setScale();var x=mYe(s),b=mYe(l),p=.5*(x[1]-x[0]),C=.5*(x[1]+x[0]),E=.5*(b[1]-b[0]),A=.5*(b[1]+b[0]),L=1.3;return x=[C-p*L,C+p*L],b=[A-E*L,A+E*L],r._extremes[n._id]=X7.findExtremes(n,x,{padded:!0}),r._extremes[i._id]=X7.findExtremes(i,b,{padded:!0}),yYe(r,"a","b"),yYe(r,"b","a"),_Ye(r,a),_Ye(r,o),h.clipsegments=YYt(r._xctrl,r._yctrl,a,o),h.x=s,h.y=l,h.a=c,h.b=f,[h]}});var SYe=ye((Wbr,AYe)=>{"use strict";AYe.exports={attributes:N7(),supplyDefaults:AZe(),plot:zZe(),calc:TYe(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:vh(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}});var EYe=ye((Xbr,MYe)=>{"use strict";MYe.exports=SYe()});var S$=ye((Zbr,kYe)=>{"use strict";var $Yt=Eg(),u0=vf(),QYt=Vl(),eKt=rs().hovertemplateAttrs,tKt=rs().texttemplateAttrs,CYe=Tu(),kx=Ao().extendFlat,sg=u0.marker,q5=u0.line,rKt=sg.line;kYe.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:kx({},u0.mode,{dflt:"markers"}),text:kx({},u0.text,{}),texttemplate:tKt({editType:"plot"},{keys:["a","b","text"]}),hovertext:kx({},u0.hovertext,{}),line:{color:q5.color,width:q5.width,dash:q5.dash,backoff:q5.backoff,shape:kx({},q5.shape,{values:["linear","spline"]}),smoothing:q5.smoothing,editType:"calc"},connectgaps:u0.connectgaps,fill:kx({},u0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:$Yt(),marker:kx({symbol:sg.symbol,opacity:sg.opacity,maxdisplayed:sg.maxdisplayed,angle:sg.angle,angleref:sg.angleref,standoff:sg.standoff,size:sg.size,sizeref:sg.sizeref,sizemin:sg.sizemin,sizemode:sg.sizemode,line:kx({width:rKt.width,editType:"calc"},CYe("marker.line")),gradient:sg.gradient,editType:"calc"},CYe("marker")),textfont:u0.textfont,textposition:u0.textposition,selected:u0.selected,unselected:u0.unselected,hoverinfo:kx({},QYt.hoverinfo,{flags:["a","b","text","name"]}),hoveron:u0.hoveron,hovertemplate:eKt(),zorder:u0.zorder}});var RYe=ye((Ybr,IYe)=>{"use strict";var LYe=Dr(),iKt=Sm(),B5=Ru(),nKt=$p(),aKt=R0(),PYe=J3(),oKt=D0(),sKt=Ig(),lKt=S$();IYe.exports=function(t,r,n,i){function a(h,d){return LYe.coerce(t,r,lKt,h,d)}a("carpet"),r.xaxis="x",r.yaxis="y";var o=a("a"),s=a("b"),l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("text"),a("texttemplate"),a("hovertext");var u=l{"use strict";DYe.exports=function(t,r){var n={},i=r._carpet,a=i.ab2ij([t.a,t.b]),o=Math.floor(a[0]),s=a[0]-o,l=Math.floor(a[1]),u=a[1]-l,c=i.evalxy([],o,l,s,u);return n.yLabel=c[1].toFixed(3),n}});var Z7=ye((Jbr,zYe)=>{"use strict";zYe.exports=function(e,t){for(var r=e._fullData.length,n,i=0;i{"use strict";var OYe=Eo(),uKt=F0(),cKt=Cm(),fKt=z0(),hKt=O0().calcMarkerSize,dKt=Z7();qYe.exports=function(t,r){var n=r._carpetTrace=dKt(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){var i;r.xaxis=n.xaxis,r.yaxis=n.yaxis;var a=r._length,o=new Array(a),s,l,u=!1;for(i=0;i{"use strict";var vKt=iT(),NYe=ho(),pKt=So();UYe.exports=function(t,r,n,i){var a,o,s,l=n[0][0].carpet,u=NYe.getFromId(t,l.xaxis||"x"),c=NYe.getFromId(t,l.yaxis||"y"),f={xaxis:u,yaxis:c,plot:r.plot};for(a=0;a{"use strict";var gKt=sT(),mKt=Dr().fillText;GYe.exports=function(t,r,n,i){var a=gKt(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,l=t.xa._length,u=l*s/2,c=l-u;return o.x0=Math.max(Math.min(o.x0,c),u),o.x1=Math.max(Math.min(o.x1,c),u),a}var f=o.cd[o.index];o.a=f.a,o.b=f.b,o.xLabelVal=void 0,o.yLabelVal=void 0;var h=o.trace,d=h._carpet,v=h._module.formatLabels(f,h);o.yLabel=v.yLabel,delete o.text;var x=[];function b(E,A){var L;E.labelprefix&&E.labelprefix.length>0?L=E.labelprefix.replace(/ = $/,""):L=E._hovertitle,x.push(L+": "+A.toFixed(3)+E.labelsuffix)}if(!h.hovertemplate){var p=f.hi||h.hoverinfo,C=p.split("+");C.indexOf("all")!==-1&&(C=["a","b","text"]),C.indexOf("a")!==-1&&b(d.aaxis,f.a),C.indexOf("b")!==-1&&b(d.baxis,f.b),x.push("y: "+o.yLabel),C.indexOf("text")!==-1&&mKt(f,h,x),o.extraText=x.join("
")}return a}});var WYe=ye((t2r,jYe)=>{"use strict";jYe.exports=function(t,r,n,i,a){var o=i[a];return t.a=o.a,t.b=o.b,t.y=o.y,t}});var ZYe=ye((r2r,XYe)=>{"use strict";XYe.exports={attributes:S$(),supplyDefaults:RYe(),colorbar:$d(),formatLabels:FYe(),calc:BYe(),plot:VYe(),style:ap().style,styleOnSelect:ap().styleOnSelect,hoverPoints:HYe(),selectPoints:lT(),eventData:WYe(),moduleType:"trace",name:"scattercarpet",basePlotModule:vh(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}});var KYe=ye((i2r,YYe)=>{"use strict";YYe.exports=ZYe()});var M$=ye((n2r,JYe)=>{"use strict";var lg=ET(),g1=A4(),yKt=Tu(),_Kt=Ao().extendFlat,ty=g1.contours;JYe.exports=_Kt({carpet:{valType:"string",editType:"calc"},z:lg.z,a:lg.x,a0:lg.x0,da:lg.dx,b:lg.y,b0:lg.y0,db:lg.dy,text:lg.text,hovertext:lg.hovertext,transpose:lg.transpose,atype:lg.xtype,btype:lg.ytype,fillcolor:g1.fillcolor,autocontour:g1.autocontour,ncontours:g1.ncontours,contours:{type:ty.type,start:ty.start,end:ty.end,size:ty.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:ty.showlines,showlabels:ty.showlabels,labelfont:ty.labelfont,labelformat:ty.labelformat,operation:ty.operation,value:ty.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:g1.line.color,width:g1.line.width,dash:g1.line.dash,smoothing:g1.line.smoothing,editType:"plot"},zorder:g1.zorder},yKt("",{cLetter:"z",autoColorDflt:!1}))});var E$=ye((a2r,eKe)=>{"use strict";var $Ye=Dr(),xKt=KI(),QYe=M$(),bKt=wG(),wKt=x8(),TKt=b8();eKe.exports=function(t,r,n,i){function a(u,c){return $Ye.coerce(t,r,QYe,u,c)}function o(u){return $Ye.coerce2(t,r,QYe,u)}if(a("carpet"),t.a&&t.b){var s=xKt(t,r,a,i,"a","b");if(!s){r.visible=!1;return}a("text");var l=a("contours.type")==="constraint";l?bKt(t,r,a,i,n,{hasHover:!1}):(wKt(t,r,a,o),TKt(t,r,a,i,{hasHover:!1}))}else r._defaultColor=n,r._length=null;a("zorder")}});var nKe=ye((o2r,iKe)=>{"use strict";var AKt=Fv(),tKe=Dr(),SKt=QI(),MKt=t8(),EKt=r8(),CKt=i8(),rKe=WV(),kKt=E$(),LKt=Z7(),PKt=cG();iKe.exports=function(t,r){var n=r._carpetTrace=LKt(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){if(!r.a||!r.b){var i=t.data[n.index],a=t.data[r.index];a.a||(a.a=i.a),a.b||(a.b=i.b),kKt(a,r,r._defaultColor,t._fullLayout)}var o=IKt(t,r);return PKt(r,r._z),o}};function IKt(e,t){var r=t._carpetTrace,n=r.aaxis,i=r.baxis,a,o,s,l,u,c,f;n._minDtick=0,i._minDtick=0,tKe.isArray1D(t.z)&&SKt(t,n,i,"a","b",["z"]),a=t._a=t._a||t.a,l=t._b=t._b||t.b,a=a?n.makeCalcdata(t,"_a"):[],l=l?i.makeCalcdata(t,"_b"):[],o=t.a0||0,s=t.da||1,u=t.b0||0,c=t.db||1,f=t._z=MKt(t._z||t.z,t.transpose),t._emptypoints=CKt(f),EKt(f,t._emptypoints);var h=tKe.maxRowLength(f),d=t.xtype==="scaled"?"":a,v=rKe(t,d,o,s,h,n),x=t.ytype==="scaled"?"":l,b=rKe(t,x,u,c,f.length,i),p={a:v,b,z:f};return t.contours.type==="levels"&&t.contours.coloring!=="none"&&AKt(e,t,{vals:f,containerStr:"",cLetter:"z"}),[p]}});var oKe=ye((s2r,aKe)=>{"use strict";var RKt=Dr().isArrayOrTypedArray;aKe.exports=function(e,t,r,n){var i,a,o,s,l,u,c,f,h,d,v,x,b,p=RKt(r)?"a":"b",C=p==="a"?e.aaxis:e.baxis,E=C.smoothing,A=p==="a"?e.a2i:e.b2j,L=p==="a"?r:n,_=p==="a"?n:r,k=p==="a"?t.a.length:t.b.length,M=p==="a"?t.b.length:t.a.length,g=Math.floor(p==="a"?e.b2j(_):e.a2i(_)),P=p==="a"?function(_e){return e.evalxy([],_e,g)}:function(_e){return e.evalxy([],g,_e)};E&&(o=Math.max(0,Math.min(M-2,g)),s=g-o,a=p==="a"?function(_e,Me){return e.dxydi([],_e,o,Me,s)}:function(_e,Me){return e.dxydj([],o,_e,s,Me)});var T=A(L[0]),z=A(L[1]),O=T0?Math.floor:Math.ceil,Z=O>0?Math.ceil:Math.floor,H=O>0?Math.min:Math.max,N=O>0?Math.max:Math.min,j=G(T+V),re=Z(z-V);c=P(T);var oe=[[c]];for(i=j;i*O{"use strict";var K7=Oa(),J7=b$(),fKe=w$(),rk=So(),m1=Dr(),DKt=hG(),FKt=dG(),hw=A8(),Y7=M4(),zKt=mG(),OKt=gG(),qKt=yG(),BKt=Z7(),sKe=oKe();hKe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;m1.makeTraceGroups(i,n,"contour").each(function(s){var l=K7.select(this),u=s[0],c=u.trace,f=c._carpetTrace=BKt(t,c),h=t.calcdata[f.index][0];if(!f.visible||f.visible==="legendonly")return;var d=u.a,v=u.b,x=c.contours,b=OKt(x,r,u),p=x.type==="constraint",C=x._operation,E=p?C==="="?"lines":"fill":x.coloring;function A(G){var Z=f.ab2xy(G[0],G[1],!0);return[a.c2p(Z[0]),o.c2p(Z[1])]}var L=[[d[0],v[v.length-1]],[d[d.length-1],v[v.length-1]],[d[d.length-1],v[0]],[d[0],v[0]]];DKt(b);var _=(d[d.length-1]-d[0])*1e-8,k=(v[v.length-1]-v[0])*1e-8;FKt(b,_,k);var M=b;x.type==="constraint"&&(M=zKt(b,C)),NKt(b,A);var g,P,T,z,O=[];for(z=h.clipsegments.length-1;z>=0;z--)g=h.clipsegments[z],P=J7([],g.x,a.c2p),T=J7([],g.y,o.c2p),P.reverse(),T.reverse(),O.push(fKe(P,T,g.bicubic));var V="M"+O.join("L")+"Z";GKt(l,h.clipsegments,a,o,p,E),HKt(c,l,a,o,M,L,A,f,h,E,V),UKt(l,b,t,u,x,r,f),rk.setClipUrl(l,f._clipPathId,t)})};function NKt(e,t){var r,n,i,a,o,s,l,u,c;for(r=0;rb&&(n.max=b),n.len=n.max-n.min}function lKe(e,t,r){var n=e.getPointAtLength(t),i=e.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function uKe(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function cKe(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]),n=Math.sqrt(1-r*r);return n/r}function GKt(e,t,r,n,i,a){var o,s,l,u,c=m1.ensureSingle(e,"g","contourbg"),f=c.selectAll("path").data(a==="fill"&&!i?[0]:[]);f.enter().append("path"),f.exit().remove();var h=[];for(u=0;u=0&&(d=P,x=b):Math.abs(h[1]-d[1])=0&&(d=P,x=b):m1.log("endpt to newendpt is not vert. or horz.",h,d,P)}if(x>=0)break;u+=M(h,d),h=d}if(x===t.edgepaths.length){m1.log("unclosed perimeter path");break}l=x,f=c.indexOf(l)===-1,f&&(l=c[0],u+=M(h,d)+"Z",h=null)}for(l=0;l{"use strict";vKe.exports={attributes:M$(),supplyDefaults:E$(),colorbar:E8(),calc:nKe(),plot:dKe(),style:M8(),moduleType:"trace",name:"contourcarpet",basePlotModule:vh(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}});var mKe=ye((c2r,gKe)=>{"use strict";gKe.exports=pKe()});var Q7=ye((f2r,wKe)=>{"use strict";var $7=Dr().extendFlat,ik=vf(),yKe=ff().axisHoverFormat,xKe=Pd().dash,WKt=i3(),bKe=GT(),XKt=bKe.INCREASING.COLOR,ZKt=bKe.DECREASING.COLOR,C$=ik.line;function _Ke(e){return{line:{color:$7({},C$.color,{dflt:e}),width:C$.width,dash:xKe,editType:"style"},editType:"style"}}wKe.exports={xperiod:ik.xperiod,xperiod0:ik.xperiod0,xperiodalignment:ik.xperiodalignment,xhoverformat:yKe("x"),yhoverformat:yKe("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:$7({},C$.width,{}),dash:$7({},xKe,{}),editType:"style"},increasing:_Ke(XKt),decreasing:_Ke(ZKt),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:$7({},WKt.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:ik.zorder}});var k$=ye((h2r,TKe)=>{"use strict";var YKt=qa(),KKt=Dr();TKe.exports=function(t,r,n,i){var a=n("x"),o=n("open"),s=n("high"),l=n("low"),u=n("close");n("hoverlabel.split");var c=YKt.getComponentMethod("calendars","handleTraceDefaults");if(c(t,r,["x"],i),!!(o&&s&&l&&u)){var f=Math.min(o.length,s.length,l.length,u.length);return a&&(f=Math.min(f,KKt.minRowLength(a))),r._length=f,f}}});var MKe=ye((d2r,SKe)=>{"use strict";var JKt=Dr(),$Kt=k$(),QKt=Pg(),eJt=Q7();SKe.exports=function(t,r,n,i){function a(s,l){return JKt.coerce(t,r,eJt,s,l)}var o=$Kt(t,r,a,i);if(!o){r.visible=!1;return}QKt(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),a("line.dash"),AKe(t,r,a,"increasing"),AKe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("tickwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function AKe(e,t,r,n){r(n+".line.color"),r(n+".line.width",t.line.width),r(n+".line.dash",t.line.dash)}});var L$=ye((v2r,CKe)=>{"use strict";var N5=Dr(),e9=N5._,t9=ho(),tJt=Rg(),nk=hs().BADNUM;function rJt(e,t){var r=t9.getFromId(e,t.xaxis),n=t9.getFromId(e,t.yaxis),i=nJt(e,r,t),a=t._minDiff;t._minDiff=null;var o=t._origX;t._origX=null;var s=t._xcalc;t._xcalc=null;var l=EKe(e,t,o,s,n,iJt);return t._extremes[r._id]=t9.findExtremes(r,s,{vpad:a/2}),l.length?(N5.extendFlat(l[0].t,{wHover:a/2,tickLen:i}),l):[{t:{empty:!0}}]}function iJt(e,t,r,n){return{o:e,h:t,l:r,c:n}}function EKe(e,t,r,n,i,a){for(var o=i.makeCalcdata(t,"open"),s=i.makeCalcdata(t,"high"),l=i.makeCalcdata(t,"low"),u=i.makeCalcdata(t,"close"),c=N5.isArrayOrTypedArray(t.text),f=N5.isArrayOrTypedArray(t.hovertext),h=!0,d=null,v=!!t.xperiodalignment,x=[],b=0;bd):h=L>C,d=L;var _=a(C,E,A,L);_.pos=p,_.yc=(C+L)/2,_.i=b,_.dir=h?"increasing":"decreasing",_.x=_.pos,_.y=[A,E],v&&(_.orig_p=r[b]),c&&(_.tx=t.text[b]),f&&(_.htx=t.hovertext[b]),x.push(_)}else x.push({pos:p,empty:!0})}return t._extremes[i._id]=t9.findExtremes(i,N5.concat(l,s),{padded:!0}),x.length&&(x[0].t={labels:{open:e9(e,"open:")+" ",high:e9(e,"high:")+" ",low:e9(e,"low:")+" ",close:e9(e,"close:")+" "}}),x}function nJt(e,t,r){var n=r._minDiff;if(!n){var i=e._fullData,a=[];n=1/0;var o;for(o=0;o{"use strict";var aJt=Oa(),kKe=Dr();LKe.exports=function(t,r,n,i){var a=r.yaxis,o=r.xaxis,s=!!o.rangebreaks;kKe.makeTraceGroups(i,n,"trace ohlc").each(function(l){var u=aJt.select(this),c=l[0],f=c.t,h=c.trace;if(h.visible!==!0||f.empty){u.remove();return}var d=f.tickLen,v=u.selectAll("path").data(kKe.identity);v.enter().append("path"),v.exit().remove(),v.attr("d",function(x){if(x.empty)return"M0,0Z";var b=o.c2p(x.pos-d,!0),p=o.c2p(x.pos+d,!0),C=s?(b+p)/2:o.c2p(x.pos,!0),E=a.c2p(x.o,!0),A=a.c2p(x.h,!0),L=a.c2p(x.l,!0),_=a.c2p(x.c,!0);return"M"+b+","+E+"H"+C+"M"+C+","+A+"V"+L+"M"+p+","+_+"H"+C})})}});var RKe=ye((g2r,IKe)=>{"use strict";var P$=Oa(),oJt=So(),sJt=Ca();IKe.exports=function(t,r,n){var i=n||P$.select(t).selectAll("g.ohlclayer").selectAll("g.trace");i.style("opacity",function(a){return a[0].trace.opacity}),i.each(function(a){var o=a[0].trace;P$.select(this).selectAll("path").each(function(s){if(!s.empty){var l=o[s.dir].line;P$.select(this).style("fill","none").call(sJt.stroke,l.color).call(oJt.dashLine,l.dash,l.width).style("opacity",o.selectedpoints&&!s.selected?.3:1)}})})}});var R$=ye((m2r,qKe)=>{"use strict";var I$=ho(),lJt=Dr(),r9=df(),uJt=Ca(),cJt=Dr().fillText,DKe=GT(),fJt={increasing:DKe.INCREASING.SYMBOL,decreasing:DKe.DECREASING.SYMBOL};function hJt(e,t,r,n){var i=e.cd,a=i[0].trace;return a.hoverlabel.split?zKe(e,t,r,n):OKe(e,t,r,n)}function FKe(e,t,r,n){var i=e.cd,a=e.xa,o=i[0].trace,s=i[0].t,l=o.type,u=l==="ohlc"?"l":"min",c=l==="ohlc"?"h":"max",f,h,d=s.bPos||0,v=function(P){return P.pos+d-t},x=s.bdPos||s.tickLen,b=s.wHover,p=Math.min(1,x/Math.abs(a.r2c(a.range[1])-a.r2c(a.range[0])));f=e.maxHoverDistance-p,h=e.maxSpikeDistance-p;function C(P){var T=v(P);return r9.inbox(T-b,T+b,f)}function E(P){var T=P[u],z=P[c];return T===z||r9.inbox(T-r,z-r,f)}function A(P){return(C(P)+E(P))/2}var L=r9.getDistanceFunction(n,C,E,A);if(r9.getClosest(i,L,e),e.index===!1)return null;var _=i[e.index];if(_.empty)return null;var k=_.dir,M=o[k],g=M.line.color;return uJt.opacity(g)&&M.line.width?e.color=g:e.color=M.fillcolor,e.x0=a.c2p(_.pos+d-x,!0),e.x1=a.c2p(_.pos+d+x,!0),e.xLabelVal=_.orig_p!==void 0?_.orig_p:_.pos,e.spikeDistance=A(_)*h/f,e.xSpike=a.c2p(_.pos,!0),e}function zKe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,l=[],u=FKe(e,t,r,n);if(!u)return[];var c=u.index,f=i[c],h=f.hi||o.hoverinfo,d=h.split("+"),v=h==="all",x=v||d.indexOf("y")!==-1;if(!x)return[];for(var b=["high","open","close","low"],p={},C=0;C"+s.labels[E]+I$.hoverLabelText(a,A,o.yhoverformat)):(_=lJt.extendFlat({},u),_.y0=_.y1=L,_.yLabelVal=A,_.yLabel=s.labels[E]+I$.hoverLabelText(a,A,o.yhoverformat),_.name="",l.push(_),p[A]=_)}return l}function OKe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,l=FKe(e,t,r,n);if(!l)return[];var u=l.index,c=i[u],f=l.index=c.i,h=c.dir;function d(A){return s.labels[A]+I$.hoverLabelText(a,o[A][f],o.yhoverformat)}var v=c.hi||o.hoverinfo,x=v.split("+"),b=v==="all",p=b||x.indexOf("y")!==-1,C=b||x.indexOf("text")!==-1,E=p?[d("open"),d("high"),d("low"),d("close")+" "+fJt[h]]:[];return C&&cJt(c,o,E),l.extraText=E.join("
"),l.y0=l.y1=a.c2p(c.yc,!0),[l]}qKe.exports={hoverPoints:hJt,hoverSplit:zKe,hoverOnPoints:OKe}});var D$=ye((y2r,BKe)=>{"use strict";BKe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l=n[0].t.bPos||0;if(r===!1)for(s=0;s{"use strict";NKe.exports={moduleType:"trace",name:"ohlc",basePlotModule:vh(),categories:["cartesian","svg","showLegend"],meta:{},attributes:Q7(),supplyDefaults:MKe(),calc:L$().calc,plot:PKe(),style:RKe(),hoverPoints:R$().hoverPoints,selectPoints:D$()}});var GKe=ye((x2r,VKe)=>{"use strict";VKe.exports=UKe()});var z$=ye((b2r,WKe)=>{"use strict";var F$=Dr().extendFlat,HKe=ff().axisHoverFormat,c0=Q7(),U5=p4();function jKe(e){return{line:{color:F$({},U5.line.color,{dflt:e}),width:U5.line.width,editType:"style"},fillcolor:U5.fillcolor,editType:"style"}}WKe.exports={xperiod:c0.xperiod,xperiod0:c0.xperiod0,xperiodalignment:c0.xperiodalignment,xhoverformat:HKe("x"),yhoverformat:HKe("y"),x:c0.x,open:c0.open,high:c0.high,low:c0.low,close:c0.close,line:{width:F$({},U5.line.width,{}),editType:"style"},increasing:jKe(c0.increasing.line.color.dflt),decreasing:jKe(c0.decreasing.line.color.dflt),text:c0.text,hovertext:c0.hovertext,whiskerwidth:F$({},U5.whiskerwidth,{dflt:0}),hoverlabel:c0.hoverlabel,zorder:U5.zorder}});var YKe=ye((w2r,ZKe)=>{"use strict";var dJt=Dr(),vJt=Ca(),pJt=k$(),gJt=Pg(),mJt=z$();ZKe.exports=function(t,r,n,i){function a(s,l){return dJt.coerce(t,r,mJt,s,l)}var o=pJt(t,r,a,i);if(!o){r.visible=!1;return}gJt(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),XKe(t,r,a,"increasing"),XKe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("whiskerwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function XKe(e,t,r,n){var i=r(n+".line.color");r(n+".line.width",t.line.width),r(n+".fillcolor",vJt.addOpacity(i,.5))}});var QKe=ye((T2r,$Ke)=>{"use strict";var KKe=Dr(),JKe=ho(),yJt=Rg(),_Jt=L$().calcCommon;$Ke.exports=function(e,t){var r=e._fullLayout,n=JKe.getFromId(e,t.xaxis),i=JKe.getFromId(e,t.yaxis),a=n.makeCalcdata(t,"x"),o=yJt(t,n,"x",a).vals,s=_Jt(e,t,a,o,i,xJt);return s.length?(KKe.extendFlat(s[0].t,{num:r._numBoxes,dPos:KKe.distinctVals(o).minDiff/2,posLetter:"x",valLetter:"y"}),r._numBoxes++,s):[{t:{empty:!0}}]};function xJt(e,t,r,n){return{min:r,q1:Math.min(e,n),med:n,q3:Math.max(e,n),max:t}}});var tJe=ye((A2r,eJe)=>{"use strict";eJe.exports={moduleType:"trace",name:"candlestick",basePlotModule:vh(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:z$(),layoutAttributes:g4(),supplyLayoutDefaults:HI().supplyLayoutDefaults,crossTraceCalc:WI().crossTraceCalc,supplyDefaults:YKe(),calc:QKe(),plot:XI().plot,layerName:"boxlayer",style:ZI().style,hoverPoints:R$().hoverPoints,selectPoints:D$()}});var iJe=ye((S2r,rJe)=>{"use strict";rJe.exports=tJe()});var q$=ye((M2r,nJe)=>{"use strict";var n9=Dr(),bJt=ym(),i9=n9.deg2rad,O$=n9.rad2deg;nJe.exports=function(t,r,n){switch(bJt(t,n),t._id){case"x":case"radialaxis":wJt(t,r);break;case"angularaxis":SJt(t,r);break}};function wJt(e,t){var r=t._subplot;e.setGeometry=function(){var n=e._rl[0],i=e._rl[1],a=r.innerRadius,o=(r.radius-a)/(i-n),s=a/o,l=n>i?function(u){return u<=0}:function(u){return u>=0};e.c2g=function(u){var c=e.c2l(u)-n;return(l(c)?c:0)+s},e.g2c=function(u){return e.l2c(u+n-s)},e.g2p=function(u){return u*o},e.c2p=function(u){return e.g2p(e.c2g(u))}}}function TJt(e,t){return t==="degrees"?i9(e):e}function AJt(e,t){return t==="degrees"?O$(e):e}function SJt(e,t){var r=e.type;if(r==="linear"){var n=e.d2c,i=e.c2d;e.d2c=function(a,o){return TJt(n(a),o)},e.c2d=function(a,o){return i(AJt(a,o))}}e.makeCalcdata=function(a,o){var s=a[o],l=a._length,u,c,f=function(b){return e.d2c(b,a.thetaunit)};if(s)for(u=new Array(l),c=0;c{"use strict";aJe.exports={attr:"subplot",name:"polar",axisNames:["angularaxis","radialaxis"],axisName2dataArray:{angularaxis:"theta",radialaxis:"r"},layerNames:["draglayer","plotbg","backplot","angular-grid","radial-grid","frontplot","angular-line","radial-line","angular-axis","radial-axis"],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}});var s9=ye((C2r,cJe)=>{"use strict";var dw=Dr(),oJe=TM().tester,B$=dw.findIndexOfMin,lJe=dw.isAngleInsideSector,MJt=dw.angleDelta,sJe=dw.angleDist;function EJt(e,t,r,n,i){if(!lJe(t,n))return!1;var a,o;r[0]0?o:1/0},n=B$(t,r),i=dw.mod(n+1,t.length);return[t[n],t[i]]}function o9(e){return Math.abs(e)>1e-10?e:0}function N$(e,t,r){t=t||0,r=r||0;for(var n=e.length,i=new Array(n),a=0;a{"use strict";function fJe(e){return e<0?-1:e>0?1:0}function G5(e){var t=e[0],r=e[1];if(!isFinite(t)||!isFinite(r))return[1,0];var n=(t+1)*(t+1)+r*r;return[(t*t+r*r-1)/n,2*r/n]}function H5(e,t){var r=t[0],n=t[1];return[r*e.radius+e.cx,-n*e.radius+e.cy]}function hJe(e,t){return t*e.radius}function FJt(e,t,r,n){var i=H5(e,G5([r,t])),a=i[0],o=i[1],s=H5(e,G5([n,t])),l=s[0],u=s[1];if(t===0)return["M"+a+","+o,"L"+l+","+u].join(" ");var c=hJe(e,1/Math.abs(t));return["M"+a+","+o,"A"+c+","+c+" 0 0,"+(t<0?1:0)+" "+l+","+u].join(" ")}function zJt(e,t,r,n){var i=hJe(e,1/(t+1)),a=H5(e,G5([t,r])),o=a[0],s=a[1],l=H5(e,G5([t,n])),u=l[0],c=l[1];if(fJe(r)!==fJe(n)){var f=H5(e,G5([t,0])),h=f[0],d=f[1];return["M"+o+","+s,"A"+i+","+i+" 0 0,"+(0{"use strict";var vw=Oa(),OJt=cd(),gw=qa(),Xc=Dr(),ry=Xc.strRotate,xd=Xc.strTranslate,V$=Ca(),ak=So(),qJt=Mc(),hp=ho(),BJt=ym(),NJt=q$(),UJt=wg().doAutoRange,y1=ON(),c9=gv(),vJe=df(),VJt=Mb(),GJt=Ff().prepSelect,HJt=Ff().selectOnClick,G$=Ff().clearOutline,pJe=Tg(),gJe=uM(),mJe=mM().redrawReglTraces,jJt=Kh().MID_SHIFT,Lx=a9(),_1=s9(),f9=U$(),l9=f9.smith,WJt=f9.reactanceArc,XJt=f9.resistanceArc,u9=f9.smithTransform,ZJt=Xc._,yJe=Xc.mod,Px=Xc.deg2rad,pw=Xc.rad2deg;function _Je(e,t,r){this.isSmith=r||!1,this.id=t,this.gd=e,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var n=e._fullLayout,i="clip"+n._uid+t;this.clipIds.forTraces=i+"-for-traces",this.clipPaths.forTraces=n._clips.append("clipPath").attr("id",this.clipIds.forTraces),this.clipPaths.forTraces.append("path"),this.framework=n["_"+(r?"smith":"polar")+"layer"].append("g").attr("class",t),this.getHole=function(a){return this.isSmith?0:a.hole},this.getSector=function(a){return this.isSmith?[0,360]:a.sector},this.getRadial=function(a){return this.isSmith?a.realaxis:a.radialaxis},this.getAngular=function(a){return this.isSmith?a.imaginaryaxis:a.angularaxis},r||(this.radialTickLayout=null,this.angularTickLayout=null)}var Nd=_Je.prototype;wJe.exports=function(t,r,n){return new _Je(t,r,n)};Nd.plot=function(e,t){for(var r=this,n=t[r.id],i=!1,a=0;ab?(p=u,C=u*b,L=(c-C)/i.h/2,E=[s[0],s[1]],A=[l[0]+L,l[1]-L]):(p=c/b,C=c,L=(u-p)/i.w/2,E=[s[0]+L,s[1]-L],A=[l[0],l[1]]),r.xLength2=p,r.yLength2=C,r.xDomain2=E,r.yDomain2=A;var _=r.xOffset2=i.l+i.w*E[0],k=r.yOffset2=i.t+i.h*(1-A[1]),M=r.radius=p/d,g=r.innerRadius=r.getHole(t)*M,P=r.cx=_-M*h[0],T=r.cy=k+M*h[3],z=r.cxx=P-_,O=r.cyy=T-k,V=a.side,G;V==="counterclockwise"?(G=V,V="top"):V==="clockwise"&&(G=V,V="bottom"),r.radialAxis=r.mockAxis(e,t,a,{_id:"x",side:V,_trueSide:G,domain:[g/i.w,M/i.w]}),r.angularAxis=r.mockAxis(e,t,o,{side:"right",domain:[0,Math.PI],autorange:!1}),r.doAutoRange(e,t),r.updateAngularAxis(e,t),r.updateRadialAxis(e,t),r.updateRadialAxisTitle(e,t),r.xaxis=r.mockCartesianAxis(e,t,{_id:"x",domain:E}),r.yaxis=r.mockCartesianAxis(e,t,{_id:"y",domain:A});var Z=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",Z).attr("transform",xd(z,O)),n.frontplot.attr("transform",xd(_,k)).call(ak.setClipUrl,r._hasClipOnAxisFalse?null:r.clipIds.forTraces,r.gd),n.bg.attr("d",Z).attr("transform",xd(P,T)).call(V$.fill,t.bgcolor)};Nd.mockAxis=function(e,t,r,n){var i=Xc.extendFlat({},r,n);return NJt(i,t,e),i};Nd.mockCartesianAxis=function(e,t,r){var n=this,i=n.isSmith,a=r._id,o=Xc.extendFlat({type:"linear"},r);BJt(o,e);var s={x:[0,2],y:[1,3]};return o.setRange=function(){var l=n.sectorBBox,u=s[a],c=n.radialAxis._rl,f=(c[1]-c[0])/(1-n.getHole(t));o.range=[l[u[0]]*f,l[u[1]]*f]},o.isPtWithinRange=a==="x"&&!i?function(l){return n.isPtInside(l)}:function(){return!0},o.setRange(),o.setScale(),o};Nd.doAutoRange=function(e,t){var r=this,n=r.gd,i=r.radialAxis,a=r.getRadial(t);UJt(n,i);var o=i.range;if(a.range=o.slice(),a._input.range=o.slice(),i._rl=[i.r2l(o[0],null,"gregorian"),i.r2l(o[1],null,"gregorian")],i.minallowed!==void 0){var s=i.r2l(i.minallowed);i._rl[0]>i._rl[1]?i._rl[1]=Math.max(i._rl[1],s):i._rl[0]=Math.max(i._rl[0],s)}if(i.maxallowed!==void 0){var l=i.r2l(i.maxallowed);i._rl[0]90&&c<=270&&(f.tickangle=180);var v=d?function(M){var g=u9(r,l9([M.x,0]));return xd(g[0]-s,g[1]-l)}:function(M){return xd(f.l2p(M.x)+o,0)},x=d?function(M){return XJt(r,M.x,-1/0,1/0)}:function(M){return r.pathArc(f.r2p(M.x)+o)},b=xJe(u);if(r.radialTickLayout!==b&&(i["radial-axis"].selectAll(".xtick").remove(),r.radialTickLayout=b),h){f.setScale();var p=0,C=d?(f.tickvals||[]).filter(function(M){return M>=0}).map(function(M){return hp.tickText(f,M,!0,!1)}):hp.calcTicks(f),E=d?C:hp.clipEnds(f,C),A=hp.getTickSigns(f)[2];d&&((f.ticks==="top"&&f.side==="bottom"||f.ticks==="bottom"&&f.side==="top")&&(A=-A),f.ticks==="top"&&f.side==="top"&&(p=-f.ticklen),f.ticks==="bottom"&&f.side==="bottom"&&(p=f.ticklen)),hp.drawTicks(n,f,{vals:C,layer:i["radial-axis"],path:hp.makeTickPath(f,0,A),transFn:v,crisp:!1}),hp.drawGrid(n,f,{vals:E,layer:i["radial-grid"],path:x,transFn:Xc.noop,crisp:!1}),hp.drawLabels(n,f,{vals:C,layer:i["radial-axis"],transFn:v,labelFns:hp.makeLabelFns(f,p)})}var L=r.radialAxisAngle=r.vangles?pw(bJe(Px(u.angle),r.vangles)):u.angle,_=xd(s,l),k=_+ry(-L);ok(i["radial-axis"],h&&(u.showticklabels||u.ticks),{transform:k}),ok(i["radial-grid"],h&&u.showgrid,{transform:d?"":_}),ok(i["radial-line"].select("line"),h&&u.showline,{x1:d?-a:o,y1:0,x2:a,y2:0,transform:k}).attr("stroke-width",u.linewidth).call(V$.stroke,u.linecolor)};Nd.updateRadialAxisTitle=function(e,t,r){if(!this.isSmith){var n=this,i=n.gd,a=n.radius,o=n.cx,s=n.cy,l=n.getRadial(t),u=n.id+"title",c=0;if(l.title){var f=ak.bBox(n.layers["radial-axis"].node()).height,h=l.title.font.size,d=l.side;c=d==="top"?h:d==="counterclockwise"?-(f+h*.4):f+h*.8}var v=r!==void 0?r:n.radialAxisAngle,x=Px(v),b=Math.cos(x),p=Math.sin(x),C=o+a/2*b+c*p,E=s-a/2*p+c*b;n.layers["radial-axis-title"]=VJt.draw(i,u,{propContainer:l,propName:n.id+".radialaxis.title",placeholder:ZJt(i,"Click to enter radial axis title"),attributes:{x:C,y:E,"text-anchor":"middle"},transform:{rotate:-v}})}};Nd.updateAngularAxis=function(e,t){var r=this,n=r.gd,i=r.layers,a=r.radius,o=r.innerRadius,s=r.cx,l=r.cy,u=r.getAngular(t),c=r.angularAxis,f=r.isSmith;f||(r.fillViewInitialKey("angularaxis.rotation",u.rotation),c.setGeometry(),c.setScale());var h=f?function(g){var P=u9(r,l9([0,g.x]));return Math.atan2(P[0]-s,P[1]-l)-Math.PI/2}:function(g){return c.t2g(g.x)};c.type==="linear"&&c.thetaunit==="radians"&&(c.tick0=pw(c.tick0),c.dtick=pw(c.dtick));var d=function(g){return xd(s+a*Math.cos(g),l-a*Math.sin(g))},v=f?function(g){var P=u9(r,l9([0,g.x]));return xd(P[0],P[1])}:function(g){return d(h(g))},x=f?function(g){var P=u9(r,l9([0,g.x])),T=Math.atan2(P[0]-s,P[1]-l)-Math.PI/2;return xd(P[0],P[1])+ry(-pw(T))}:function(g){var P=h(g);return d(P)+ry(-pw(P))},b=f?function(g){return WJt(r,g.x,0,1/0)}:function(g){var P=h(g),T=Math.cos(P),z=Math.sin(P);return"M"+[s+o*T,l-o*z]+"L"+[s+a*T,l-a*z]},p=hp.makeLabelFns(c,0),C=p.labelStandoff,E={};E.xFn=function(g){var P=h(g);return Math.cos(P)*C},E.yFn=function(g){var P=h(g),T=Math.sin(P)>0?.2:1;return-Math.sin(P)*(C+g.fontSize*T)+Math.abs(Math.cos(P))*(g.fontSize*jJt)},E.anchorFn=function(g){var P=h(g),T=Math.cos(P);return Math.abs(T)<.1?"middle":T>0?"start":"end"},E.heightFn=function(g,P,T){var z=h(g);return-.5*(1+Math.sin(z))*T};var A=xJe(u);r.angularTickLayout!==A&&(i["angular-axis"].selectAll("."+c._id+"tick").remove(),r.angularTickLayout=A);var L=f?[1/0].concat(c.tickvals||[]).map(function(g){return hp.tickText(c,g,!0,!1)}):hp.calcTicks(c);f&&(L[0].text="\u221E",L[0].fontSize*=1.75);var _;if(t.gridshape==="linear"?(_=L.map(h),Xc.angleDelta(_[0],_[1])<0&&(_=_.slice().reverse())):_=null,r.vangles=_,c.type==="category"&&(L=L.filter(function(g){return Xc.isAngleInsideSector(h(g),r.sectorInRad)})),c.visible){var k=c.ticks==="inside"?-1:1,M=(c.linewidth||1)/2;hp.drawTicks(n,c,{vals:L,layer:i["angular-axis"],path:"M"+k*M+",0h"+k*c.ticklen,transFn:x,crisp:!1}),hp.drawGrid(n,c,{vals:L,layer:i["angular-grid"],path:b,transFn:Xc.noop,crisp:!1}),hp.drawLabels(n,c,{vals:L,layer:i["angular-axis"],repositionOnUpdate:!0,transFn:v,labelFns:E})}ok(i["angular-line"].select("path"),u.showline,{d:r.pathSubplot(),transform:xd(s,l)}).attr("stroke-width",u.linewidth).call(V$.stroke,u.linecolor)};Nd.updateFx=function(e,t){if(!this.gd._context.staticPlot){var r=!this.isSmith;r&&(this.updateAngularDrag(e),this.updateRadialDrag(e,t,0),this.updateRadialDrag(e,t,1)),this.updateHoverAndMainDrag(e)}};Nd.updateHoverAndMainDrag=function(e){var t=this,r=t.isSmith,n=t.gd,i=t.layers,a=e._zoomlayer,o=Lx.MINZOOM,s=Lx.OFFEDGE,l=t.radius,u=t.innerRadius,c=t.cx,f=t.cy,h=t.cxx,d=t.cyy,v=t.sectorInRad,x=t.vangles,b=t.radialAxis,p=_1.clampTiny,C=_1.findXYatLength,E=_1.findEnclosingVertexAngles,A=Lx.cornerHalfWidth,L=Lx.cornerLen/2,_,k,M=y1.makeDragger(i,"path","maindrag",e.dragmode===!1?"none":"crosshair");vw.select(M).attr("d",t.pathSubplot()).attr("transform",xd(c,f)),M.onmousemove=function(ce){vJe.hover(n,ce,t.id),n._fullLayout._lasthover=M,n._fullLayout._hoversubplot=t.id},M.onmouseout=function(ce){n._dragging||c9.unhover(n,ce)};var g={element:M,gd:n,subplot:t.id,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis},xaxes:[t.xaxis],yaxes:[t.yaxis]},P,T,z,O,V,G,Z,H,N;function j(ce,Ze){return Math.sqrt(ce*ce+Ze*Ze)}function re(ce,Ze){return j(ce-h,Ze-d)}function oe(ce,Ze){return Math.atan2(d-Ze,ce-h)}function _e(ce,Ze){return[ce*Math.cos(Ze),ce*Math.sin(-Ze)]}function Me(ce,Ze){if(ce===0)return t.pathSector(2*A);var ut=L/ce,gt=Ze-ut,Kt=Ze+ut,st=Math.max(0,Math.min(ce,l)),lt=st-A,Gt=st+A;return"M"+_e(lt,gt)+"A"+[lt,lt]+" 0,0,0 "+_e(lt,Kt)+"L"+_e(Gt,Kt)+"A"+[Gt,Gt]+" 0,0,1 "+_e(Gt,gt)+"Z"}function ke(ce,Ze,ut){if(ce===0)return t.pathSector(2*A);var gt=_e(ce,Ze),Kt=_e(ce,ut),st=p((gt[0]+Kt[0])/2),lt=p((gt[1]+Kt[1])/2),Gt,Ut;if(st&<){var $t=lt/st,sr=-1/$t,Tr=C(A,$t,st,lt);Gt=C(L,sr,Tr[0][0],Tr[0][1]),Ut=C(L,sr,Tr[1][0],Tr[1][1])}else{var ur,$e;lt?(ur=L,$e=A):(ur=A,$e=L),Gt=[[st-ur,lt-$e],[st+ur,lt-$e]],Ut=[[st-ur,lt+$e],[st+ur,lt+$e]]}return"M"+Gt.join("L")+"L"+Ut.reverse().join("L")+"Z"}function me(){z=null,O=null,V=t.pathSubplot(),G=!1;var ce=n._fullLayout[t.id];Z=OJt(ce.bgcolor).getLuminance(),H=y1.makeZoombox(a,Z,c,f,V),H.attr("fill-rule","evenodd"),N=y1.makeCorners(a,c,f),G$(n)}function ie(ce,Ze){return Ze=Math.max(Math.min(Ze,l),u),ceo?(ce-1&&ce===1&&HJt(Ze,n,[t.xaxis],[t.yaxis],t.id,g),ut.indexOf("event")>-1&&vJe.click(n,Ze,t.id)}g.prepFn=function(ce,Ze,ut){var gt=n._fullLayout.dragmode,Kt=M.getBoundingClientRect();n._fullLayout._calcInverseTransform(n);var st=n._fullLayout._invTransform;_=n._fullLayout._invScaleX,k=n._fullLayout._invScaleY;var lt=Xc.apply3DTransform(st)(Ze-Kt.left,ut-Kt.top);if(P=lt[0],T=lt[1],x){var Gt=_1.findPolygonOffset(l,v[0],v[1],x);P+=h+Gt[0],T+=d+Gt[1]}switch(gt){case"zoom":g.clickFn=De,r||(x?g.moveFn=Fe:g.moveFn=Le,g.doneFn=Pe,me(ce,Ze,ut));break;case"select":case"lasso":GJt(ce,Ze,ut,g,gt);break}},c9.init(g)};Nd.updateRadialDrag=function(e,t,r){var n=this,i=n.gd,a=n.layers,o=n.radius,s=n.innerRadius,l=n.cx,u=n.cy,c=n.radialAxis,f=Lx.radialDragBoxSize,h=f/2;if(!c.visible)return;var d=Px(n.radialAxisAngle),v=c._rl,x=v[0],b=v[1],p=v[r],C=.75*(v[1]-v[0])/(1-n.getHole(t))/o,E,A,L;r?(E=l+(o+h)*Math.cos(d),A=u-(o+h)*Math.sin(d),L="radialdrag"):(E=l+(s-h)*Math.cos(d),A=u-(s-h)*Math.sin(d),L="radialdrag-inner");var _=y1.makeRectDragger(a,L,"crosshair",-h,-h,f,f),k={element:_,gd:i};e.dragmode===!1&&(k.dragmode=!1),ok(vw.select(_),c.visible&&s0!=(r?P>x:P=90||i>90&&a>=450?d=1:s<=0&&u<=0?d=0:d=Math.max(s,u),i<=180&&a>=180||i>180&&a>=540?c=-1:o>=0&&l>=0?c=0:c=Math.min(o,l),i<=270&&a>=270||i>270&&a>=630?f=-1:s>=0&&u>=0?f=0:f=Math.min(s,u),a>=360?h=1:o<=0&&l<=0?h=0:h=Math.max(o,l),[c,f,h,d]}function bJe(e,t){var r=function(i){return Xc.angleDist(e,i)},n=Xc.findIndexOfMin(t,r);return t[n]}function ok(e,t,r){return t?(e.attr("display",null),e.attr(r)):e&&e.attr("display","none"),e}});var j$=ye((P2r,CJe)=>{"use strict";var KJt=Eh(),ls=Rd(),JJt=kc().attributes,f0=Dr().extendFlat,TJe=mc().overrideAll,AJe=TJe({color:ls.color,showline:f0({},ls.showline,{dflt:!0}),linecolor:ls.linecolor,linewidth:ls.linewidth,showgrid:f0({},ls.showgrid,{dflt:!0}),gridcolor:ls.gridcolor,gridwidth:ls.gridwidth,griddash:ls.griddash},"plot","from-root"),SJe=TJe({tickmode:ls.minor.tickmode,nticks:ls.nticks,tick0:ls.tick0,dtick:ls.dtick,tickvals:ls.tickvals,ticktext:ls.ticktext,ticks:ls.ticks,ticklen:ls.ticklen,tickwidth:ls.tickwidth,tickcolor:ls.tickcolor,ticklabelstep:ls.ticklabelstep,showticklabels:ls.showticklabels,labelalias:ls.labelalias,showtickprefix:ls.showtickprefix,tickprefix:ls.tickprefix,showticksuffix:ls.showticksuffix,ticksuffix:ls.ticksuffix,showexponent:ls.showexponent,exponentformat:ls.exponentformat,minexponent:ls.minexponent,separatethousands:ls.separatethousands,tickfont:ls.tickfont,tickangle:ls.tickangle,tickformat:ls.tickformat,tickformatstops:ls.tickformatstops,layer:ls.layer},"plot","from-root"),MJe={visible:f0({},ls.visible,{dflt:!0}),type:f0({},ls.type,{values:["-","linear","log","date","category"]}),autotypenumbers:ls.autotypenumbers,autorangeoptions:{minallowed:ls.autorangeoptions.minallowed,maxallowed:ls.autorangeoptions.maxallowed,clipmin:ls.autorangeoptions.clipmin,clipmax:ls.autorangeoptions.clipmax,include:ls.autorangeoptions.include,editType:"plot"},autorange:f0({},ls.autorange,{editType:"plot"}),rangemode:{valType:"enumerated",values:["tozero","nonnegative","normal"],dflt:"tozero",editType:"calc"},minallowed:f0({},ls.minallowed,{editType:"plot"}),maxallowed:f0({},ls.maxallowed,{editType:"plot"}),range:f0({},ls.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],editType:"plot"}),categoryorder:ls.categoryorder,categoryarray:ls.categoryarray,angle:{valType:"angle",editType:"plot"},autotickangles:ls.autotickangles,side:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"clockwise",editType:"plot"},title:{text:f0({},ls.title.text,{editType:"plot",dflt:""}),font:f0({},ls.title.font,{editType:"plot"}),editType:"plot"},hoverformat:ls.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};f0(MJe,AJe,SJe);var EJe={visible:f0({},ls.visible,{dflt:!0}),type:{valType:"enumerated",values:["-","linear","category"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:ls.autotypenumbers,categoryorder:ls.categoryorder,categoryarray:ls.categoryarray,thetaunit:{valType:"enumerated",values:["radians","degrees"],dflt:"degrees",editType:"calc"},period:{valType:"number",editType:"calc",min:0},direction:{valType:"enumerated",values:["counterclockwise","clockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",editType:"calc"},hoverformat:ls.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};f0(EJe,AJe,SJe);CJe.exports={domain:JJt({name:"polar",editType:"plot"}),sector:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],dflt:[0,360],editType:"plot"},hole:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},bgcolor:{valType:"color",editType:"plot",dflt:KJt.background},radialaxis:MJe,angularaxis:EJe,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var IJe=ye((I2r,PJe)=>{"use strict";var h9=Dr(),$Jt=Ca(),QJt=pl(),e$t=k_(),t$t=Id().getSubplotData,r$t=xb(),i$t=T3(),n$t=t_(),a$t=r_(),o$t=rI(),s$t=KM(),l$t=pB(),u$t=L3(),LJe=j$(),c$t=q$(),d9=a9(),kJe=d9.axisNames;function f$t(e,t,r,n){var i=r("bgcolor");n.bgColor=$Jt.combine(i,n.paper_bgcolor);var a=r("sector");r("hole");var o=t$t(n.fullData,d9.name,n.id),s=n.layoutOut,l;function u(H,N){return r(l+"."+H,N)}for(var c=0;c{"use strict";var d$t=Id().getSubplotCalcData,v$t=Dr().counterRegex,p$t=H$(),DJe=a9(),FJe=DJe.attr,mw=DJe.name,RJe=v$t(mw),zJe={};zJe[FJe]={valType:"subplotid",dflt:mw,editType:"calc"};function g$t(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[mw],i=0;i{"use strict";var y$t=rs().hovertemplateAttrs,_$t=rs().texttemplateAttrs,p9=Ao().extendFlat,x$t=Eg(),h0=vf(),b$t=Vl(),j5=h0.line;qJe.exports={mode:h0.mode,r:{valType:"data_array",editType:"calc+clearAxisTypes"},theta:{valType:"data_array",editType:"calc+clearAxisTypes"},r0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dr:{valType:"number",dflt:1,editType:"calc"},theta0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dtheta:{valType:"number",editType:"calc"},thetaunit:{valType:"enumerated",values:["radians","degrees","gradians"],dflt:"degrees",editType:"calc+clearAxisTypes"},text:h0.text,texttemplate:_$t({editType:"plot"},{keys:["r","theta","text"]}),hovertext:h0.hovertext,line:{color:j5.color,width:j5.width,dash:j5.dash,backoff:j5.backoff,shape:p9({},j5.shape,{values:["linear","spline"]}),smoothing:j5.smoothing,editType:"calc"},connectgaps:h0.connectgaps,marker:h0.marker,cliponaxis:p9({},h0.cliponaxis,{dflt:!1}),textposition:h0.textposition,textfont:h0.textfont,fill:p9({},h0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:x$t(),hoverinfo:p9({},b$t.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:h0.hoveron,hovertemplate:y$t(),selected:h0.selected,unselected:h0.unselected}});var m9=ye((F2r,UJe)=>{"use strict";var g9=Dr(),W5=Ru(),w$t=$p(),T$t=R0(),BJe=J3(),A$t=D0(),S$t=Ig(),M$t=Sm().PTS_LINESONLY,E$t=sk();function C$t(e,t,r,n){function i(s,l){return g9.coerce(e,t,E$t,s,l)}var a=NJe(e,t,n,i);if(!a){t.visible=!1;return}i("thetaunit"),i("mode",a{"use strict";var k$t=Dr(),VJe=ho();GJe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o,s;a?(o=a.radialAxis,s=a.angularAxis):(a=n[r.subplot],o=a.radialaxis,s=a.angularaxis);var l=o.c2l(t.r);i.rLabel=VJe.tickText(o,l,!0).text;var u=s.thetaunit==="degrees"?k$t.rad2deg(t.theta):t.theta;return i.thetaLabel=VJe.tickText(s,u,!0).text,i}});var WJe=ye((O2r,jJe)=>{"use strict";var HJe=Eo(),L$t=hs().BADNUM,P$t=ho(),I$t=F0(),R$t=Cm(),D$t=z0(),F$t=O0().calcMarkerSize;jJe.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=a.makeCalcdata(r,"r"),l=o.makeCalcdata(r,"theta"),u=r._length,c=new Array(u),f=0;f{"use strict";var z$t=iT(),XJe=hs().BADNUM;ZJe.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},l=r.radialAxis,u=r.angularAxis,c=0;c{"use strict";var O$t=sT();function q$t(e,t,r,n){var i=O$t(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],l=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,KJe(s,l,o,a),a.hovertemplate=l.hovertemplate,i}}function KJe(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="r",a._hovertitle="\u03B8";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var l=e.hi||t.hoverinfo,u=[];function c(h,d){u.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var f=l.split("+");f.indexOf("all")!==-1&&(f=["r","theta","text"]),f.indexOf("r")!==-1&&c(i,n.rLabel),f.indexOf("theta")!==-1&&c(a,n.thetaLabel),f.indexOf("text")!==-1&&n.text&&(u.push(n.text),delete n.text),n.extraText=u.join("
")}}JJe.exports={hoverPoints:q$t,makeHoverPointText:KJe}});var QJe=ye((N2r,$Je)=>{"use strict";$Je.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:v9(),categories:["polar","symbols","showLegend","scatter-like"],attributes:sk(),supplyDefaults:m9().supplyDefaults,colorbar:$d(),formatLabels:y9(),calc:WJe(),plot:YJe(),style:ap().style,styleOnSelect:ap().styleOnSelect,hoverPoints:_9().hoverPoints,selectPoints:lT(),meta:{}}});var t$e=ye((U2r,e$e)=>{"use strict";e$e.exports=QJe()});var W$=ye((V2r,r$e)=>{"use strict";var Up=sk(),x1=iC(),B$t=rs().texttemplateAttrs;r$e.exports={mode:Up.mode,r:Up.r,theta:Up.theta,r0:Up.r0,dr:Up.dr,theta0:Up.theta0,dtheta:Up.dtheta,thetaunit:Up.thetaunit,text:Up.text,texttemplate:B$t({editType:"plot"},{keys:["r","theta","text"]}),hovertext:Up.hovertext,hovertemplate:Up.hovertemplate,line:{color:x1.line.color,width:x1.line.width,dash:x1.line.dash,editType:"calc"},connectgaps:x1.connectgaps,marker:x1.marker,fill:x1.fill,fillcolor:x1.fillcolor,textposition:x1.textposition,textfont:x1.textfont,hoverinfo:Up.hoverinfo,selected:Up.selected,unselected:Up.unselected}});var a$e=ye((G2r,n$e)=>{"use strict";var i$e=Dr(),X$=Ru(),N$t=m9().handleRThetaDefaults,U$t=$p(),V$t=R0(),G$t=D0(),H$t=Ig(),j$t=Sm().PTS_LINESONLY,W$t=W$();n$e.exports=function(t,r,n,i){function a(s,l){return i$e.coerce(t,r,W$t,s,l)}var o=N$t(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("mode",o{"use strict";var X$t=y9();o$e.exports=function(t,r,n){var i=t.i;return"r"in t||(t.r=r._r[i]),"theta"in t||(t.theta=r._theta[i]),X$t(t,r,n)}});var u$e=ye((j2r,l$e)=>{"use strict";var Z$t=F0(),Y$t=O0().calcMarkerSize,K$t=Y2(),J$t=ho(),$$t=sx().TOO_MANY_POINTS;l$e.exports=function(t,r){var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=r._r=a.makeCalcdata(r,"r"),l=r._theta=o.makeCalcdata(r,"theta"),u=r._length,c={};u{"use strict";var Q$t=OF(),eQt=_9().makeHoverPointText;function tQt(e,t,r,n){var i=e.cd,a=i[0].t,o=a.r,s=a.theta,l=Q$t.hoverPoints(e,t,r,n);if(!(!l||l[0].index===!1)){var u=l[0];if(u.index===void 0)return l;var c=e.subplot,f=u.cd[u.index],h=u.trace;if(f.r=o[u.index],f.theta=s[u.index],!!c.isPtInside(f))return u.xLabelVal=void 0,u.yLabelVal=void 0,eQt(f,h,c,u),l}}c$e.exports={hoverPoints:tQt}});var d$e=ye((X2r,h$e)=>{"use strict";h$e.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:v9(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:W$(),supplyDefaults:a$e(),colorbar:$d(),formatLabels:s$e(),calc:u$e(),hoverPoints:f$e().hoverPoints,selectPoints:aY(),meta:{}}});var v$e=ye((Z2r,Z$)=>{"use strict";var rQt=NF(),iQt=Eo(),nQt=uK(),aQt=rY(),x9=Y2(),b9=Dr(),oQt=sx().TOO_MANY_POINTS,sQt={};Z$.exports=function(t,r,n){if(n.length){var i=r.radialAxis,a=r.angularAxis,o=aQt(t,r);return n.forEach(function(s){if(!(!s||!s[0]||!s[0].trace)){var l=s[0],u=l.trace,c=l.t,f=u._length,h=c.r,d=c.theta,v=c.opts,x,b=h.slice(),p=d.slice();for(x=0;x=oQt&&(v.marker.cluster=c.tree),v.marker&&(v.markerSel.positions=v.markerUnsel.positions=v.marker.positions=C),v.line&&C.length>1&&b9.extendFlat(v.line,x9.linePositions(t,u,C)),v.text&&(b9.extendFlat(v.text,{positions:C},x9.textPosition(t,u,v.text,v.marker)),b9.extendFlat(v.textSel,{positions:C},x9.textPosition(t,u,v.text,v.markerSel)),b9.extendFlat(v.textUnsel,{positions:C},x9.textPosition(t,u,v.text,v.markerUnsel))),v.fill&&!o.fill2d&&(o.fill2d=!0),v.marker&&!o.scatter2d&&(o.scatter2d=!0),v.line&&!o.line2d&&(o.line2d=!0),v.text&&!o.glText&&(o.glText=!0),o.lineOptions.push(v.line),o.fillOptions.push(v.fill),o.markerOptions.push(v.marker),o.markerSelectedOptions.push(v.markerSel),o.markerUnselectedOptions.push(v.markerUnsel),o.textOptions.push(v.text),o.textSelectedOptions.push(v.textSel),o.textUnselectedOptions.push(v.textUnsel),o.selectBatch.push([]),o.unselectBatch.push([]),c.x=E,c.y=A,c.rawx=E,c.rawy=A,c.r=h,c.theta=d,c.positions=C,c._scene=o,c.index=o.count,o.count++}}),nQt(t,r,n)}};Z$.exports.reglPrecompiled=sQt});var m$e=ye((Y2r,g$e)=>{"use strict";var p$e=d$e();p$e.plot=v$e();g$e.exports=p$e});var _$e=ye((K2r,y$e)=>{"use strict";y$e.exports=m$e()});var Y$=ye((J2r,x$e)=>{"use strict";var lQt=rs().hovertemplateAttrs,X5=Ao().extendFlat,Ix=sk(),Rx=Lm();x$e.exports={r:Ix.r,theta:Ix.theta,r0:Ix.r0,dr:Ix.dr,theta0:Ix.theta0,dtheta:Ix.dtheta,thetaunit:Ix.thetaunit,base:X5({},Rx.base,{}),offset:X5({},Rx.offset,{}),width:X5({},Rx.width,{}),text:X5({},Rx.text,{}),hovertext:X5({},Rx.hovertext,{}),marker:uQt(),hoverinfo:Ix.hoverinfo,hovertemplate:lQt(),selected:Rx.selected,unselected:Rx.unselected};function uQt(){var e=X5({},Rx.marker);return delete e.cornerradius,e}});var K$=ye(($2r,b$e)=>{"use strict";b$e.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}});var A$e=ye((Q2r,T$e)=>{"use strict";var w$e=Dr(),cQt=m9().handleRThetaDefaults,fQt=qI(),hQt=Y$();T$e.exports=function(t,r,n,i){function a(s,l){return w$e.coerce(t,r,hQt,s,l)}var o=cQt(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("base"),a("offset"),a("width"),a("text"),a("hovertext"),a("hovertemplate"),fQt(t,r,a,n,i),w$e.coerceSelectionMarkerOpacity(r,a)}});var M$e=ye((ewr,S$e)=>{"use strict";var dQt=Dr(),vQt=K$();S$e.exports=function(e,t,r){var n={},i;function a(l,u){return dQt.coerce(e[i]||{},t[i],vQt,l,u)}for(var o=0;o{"use strict";var E$e=Dv().hasColorscale,C$e=Fv(),pQt=Dr().isArrayOrTypedArray,gQt=f4(),mQt=Hb().setGroupPositions,yQt=z0(),_Qt=qa().traceIs,xQt=Dr().extendFlat;function bQt(e,t){for(var r=e._fullLayout,n=t.subplot,i=r[n].radialaxis,a=r[n].angularaxis,o=i.makeCalcdata(t,"r"),s=a.makeCalcdata(t,"theta"),l=t._length,u=new Array(l),c=o,f=s,h=0;h{"use strict";var L$e=Oa(),w9=Eo(),Z5=Dr(),TQt=So(),$$=s9();P$e.exports=function(t,r,n){var i=t._context.staticPlot,a=r.xaxis,o=r.yaxis,s=r.radialAxis,l=r.angularAxis,u=AQt(r),c=r.layers.frontplot.select("g.barlayer");Z5.makeTraceGroups(c,n,"trace bars").each(function(){var f=L$e.select(this),h=Z5.ensureSingle(f,"g","points"),d=h.selectAll("g.point").data(Z5.identity);d.enter().append("g").style("vector-effect",i?"none":"non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),d.exit().remove(),d.each(function(v){var x=L$e.select(this),b=v.rp0=s.c2p(v.s0),p=v.rp1=s.c2p(v.s1),C=v.thetag0=l.c2g(v.p0),E=v.thetag1=l.c2g(v.p1),A;if(!w9(b)||!w9(p)||!w9(C)||!w9(E)||b===p||C===E)A="M0,0Z";else{var L=s.c2g(v.s1),_=(C+E)/2;v.ct=[a.c2p(L*Math.cos(_)),o.c2p(L*Math.sin(_))],A=u(b,p,C,E)}Z5.ensureSingle(x,"path").attr("d",A)}),TQt.setClipUrl(f,r._hasClipOnAxisFalse?r.clipIds.forTraces:null,t)})};function AQt(e){var t=e.cxx,r=e.cyy;return e.vangles?function(n,i,a,o){var s,l;Z5.angleDelta(a,o)>0?(s=a,l=o):(s=o,l=a);var u=$$.findEnclosingVertexAngles(s,e.vangles)[0],c=$$.findEnclosingVertexAngles(l,e.vangles)[1],f=[u,(s+l)/2,c];return $$.pathPolygonAnnulus(n,i,s,l,f,t,r)}:function(n,i,a,o){return Z5.pathAnnulus(n,i,a,o,t,r)}}});var D$e=ye((iwr,R$e)=>{"use strict";var SQt=df(),Q$=Dr(),MQt=TT().getTraceColor,EQt=Q$.fillText,CQt=_9().makeHoverPointText,kQt=s9().isPtInsidePolygon;R$e.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s=o.radialAxis,l=o.angularAxis,u=o.vangles,c=u?kQt:Q$.isPtInsideSector,f=t.maxHoverDistance,h=l._period||2*Math.PI,d=Math.abs(s.g2p(Math.sqrt(r*r+n*n))),v=Math.atan2(n,r);s.range[0]>s.range[1]&&(v+=Math.PI);var x=function(E){return c(d,v,[E.rp0,E.rp1],[E.thetag0,E.thetag1],u)?f+Math.min(1,Math.abs(E.thetag1-E.thetag0)/h)-1+(E.rp1-d)/(E.rp1-E.rp0)-1:1/0};if(SQt.getClosest(i,x,t),t.index!==!1){var b=t.index,p=i[b];t.x0=t.x1=p.ct[0],t.y0=t.y1=p.ct[1];var C=Q$.extendFlat({},p,{r:p.s,theta:p.p});return EQt(p,a,t),CQt(C,a,o,t),t.hovertemplate=a.hovertemplate,t.color=MQt(a,p),t.xLabelVal=t.yLabelVal=void 0,p.s<0&&(t.idealAlign="left"),[t]}}});var z$e=ye((nwr,F$e)=>{"use strict";F$e.exports={moduleType:"trace",name:"barpolar",basePlotModule:v9(),categories:["polar","bar","showLegend"],attributes:Y$(),layoutAttributes:K$(),supplyDefaults:A$e(),supplyLayoutDefaults:M$e(),calc:J$().calc,crossTraceCalc:J$().crossTraceCalc,plot:I$e(),colorbar:$d(),formatLabels:y9(),style:N0().style,styleOnSelect:N0().styleOnSelect,hoverPoints:D$e(),selectPoints:AT(),meta:{}}});var q$e=ye((awr,O$e)=>{"use strict";O$e.exports=z$e()});var eQ=ye((owr,B$e)=>{"use strict";B$e.exports={attr:"subplot",name:"smith",axisNames:["realaxis","imaginaryaxis"],axisName2dataArray:{imaginaryaxis:"imag",realaxis:"real"}}});var tQ=ye((swr,G$e)=>{"use strict";var LQt=Eh(),Bf=Rd(),PQt=kc().attributes,Dx=Dr().extendFlat,N$e=mc().overrideAll,U$e=N$e({color:Bf.color,showline:Dx({},Bf.showline,{dflt:!0}),linecolor:Bf.linecolor,linewidth:Bf.linewidth,showgrid:Dx({},Bf.showgrid,{dflt:!0}),gridcolor:Bf.gridcolor,gridwidth:Bf.gridwidth,griddash:Bf.griddash},"plot","from-root"),V$e=N$e({ticklen:Bf.ticklen,tickwidth:Dx({},Bf.tickwidth,{dflt:2}),tickcolor:Bf.tickcolor,showticklabels:Bf.showticklabels,labelalias:Bf.labelalias,showtickprefix:Bf.showtickprefix,tickprefix:Bf.tickprefix,showticksuffix:Bf.showticksuffix,ticksuffix:Bf.ticksuffix,tickfont:Bf.tickfont,tickformat:Bf.tickformat,hoverformat:Bf.hoverformat,layer:Bf.layer},"plot","from-root"),IQt=Dx({visible:Dx({},Bf.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:Dx({},Bf.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},U$e,V$e),RQt=Dx({visible:Dx({},Bf.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:Bf.ticks,editType:"calc"},U$e,V$e);G$e.exports={domain:PQt({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:LQt.background},realaxis:IQt,imaginaryaxis:RQt,editType:"calc"}});var W$e=ye((lwr,j$e)=>{"use strict";var Y5=Dr(),DQt=Ca(),FQt=pl(),zQt=k_(),OQt=Id().getSubplotData,qQt=r_(),BQt=t_(),NQt=KM(),UQt=ym(),K5=tQ(),rQ=eQ(),H$e=rQ.axisNames,VQt=HQt(function(e){return Y5.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(t){return-t}).concat([0]).concat(e)},String);function GQt(e,t,r,n){var i=r("bgcolor");n.bgColor=DQt.combine(i,n.paper_bgcolor);var a=OQt(n.fullData,rQ.name,n.id),o=n.layoutOut,s;function l(L,_){return r(s+"."+L,_)}for(var u=0;u{"use strict";var jQt=Id().getSubplotCalcData,WQt=Dr().counterRegex,XQt=H$(),Z$e=eQ(),Y$e=Z$e.attr,yw=Z$e.name,X$e=WQt(yw),K$e={};K$e[Y$e]={valType:"subplotid",dflt:yw,editType:"calc"};function ZQt(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[yw],i=0;i{"use strict";var KQt=rs().hovertemplateAttrs,JQt=rs().texttemplateAttrs,T9=Ao().extendFlat,$Qt=Eg(),d0=vf(),QQt=Vl(),J5=d0.line;Q$e.exports={mode:d0.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:d0.text,texttemplate:JQt({editType:"plot"},{keys:["real","imag","text"]}),hovertext:d0.hovertext,line:{color:J5.color,width:J5.width,dash:J5.dash,backoff:J5.backoff,shape:T9({},J5.shape,{values:["linear","spline"]}),smoothing:J5.smoothing,editType:"calc"},connectgaps:d0.connectgaps,marker:d0.marker,cliponaxis:T9({},d0.cliponaxis,{dflt:!1}),textposition:d0.textposition,textfont:d0.textfont,fill:T9({},d0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:$Qt(),hoverinfo:T9({},QQt.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:d0.hoveron,hovertemplate:KQt(),selected:d0.selected,unselected:d0.unselected}});var rQe=ye((fwr,tQe)=>{"use strict";var A9=Dr(),$5=Ru(),eer=$p(),ter=R0(),eQe=J3(),rer=D0(),ier=Ig(),ner=Sm().PTS_LINESONLY,aer=iQ();tQe.exports=function(t,r,n,i){function a(l,u){return A9.coerce(t,r,aer,l,u)}var o=oer(t,r,i,a);if(!o){r.visible=!1;return}a("mode",o{"use strict";var iQe=ho();nQe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.realLabel=iQe.tickText(a.radialAxis,t.real,!0).text,i.imagLabel=iQe.tickText(a.angularAxis,t.imag,!0).text,i}});var lQe=ye((dwr,sQe)=>{"use strict";var oQe=Eo(),ser=hs().BADNUM,ler=F0(),uer=Cm(),cer=z0(),fer=O0().calcMarkerSize;sQe.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].realaxis,o=n[i].imaginaryaxis,s=a.makeCalcdata(r,"real"),l=o.makeCalcdata(r,"imag"),u=r._length,c=new Array(u),f=0;f{"use strict";var her=iT(),uQe=hs().BADNUM,der=U$(),ver=der.smith;cQe.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},l=0;l{"use strict";var per=sT();function ger(e,t,r,n){var i=per(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],l=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,hQe(s,l,o,a),a.hovertemplate=l.hovertemplate,i}}function hQe(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="real",a._hovertitle="imag";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.realLabel=s.realLabel,n.imagLabel=s.imagLabel;var l=e.hi||t.hoverinfo,u=[];function c(h,d){u.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var f=l.split("+");f.indexOf("all")!==-1&&(f=["real","imag","text"]),f.indexOf("real")!==-1&&c(i,n.realLabel),f.indexOf("imag")!==-1&&c(a,n.imagLabel),f.indexOf("text")!==-1&&n.text&&(u.push(n.text),delete n.text),n.extraText=u.join("
")}}dQe.exports={hoverPoints:ger,makeHoverPointText:hQe}});var gQe=ye((gwr,pQe)=>{"use strict";pQe.exports={moduleType:"trace",name:"scattersmith",basePlotModule:$$e(),categories:["smith","symbols","showLegend","scatter-like"],attributes:iQ(),supplyDefaults:rQe(),colorbar:$d(),formatLabels:aQe(),calc:lQe(),plot:fQe(),style:ap().style,styleOnSelect:ap().styleOnSelect,hoverPoints:vQe().hoverPoints,selectPoints:lT(),meta:{}}});var yQe=ye((mwr,mQe)=>{"use strict";mQe.exports=gQe()});var Sv=ye((ywr,xQe)=>{var M9=Fh();function _Qe(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}M9(_Qe.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,n,i){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,i):n)||this.instance(),n.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var n="",i=0;r>0;){var a=r%10;n=(a===0?"":e[a]+t[i])+n,i++,r=Math.floor(r/10)}return n.indexOf(e[1]+t[1])===0&&(n=n.substr(1)),n||e[0]}}});function nQ(e,t,r,n){if(this._calendar=e,this._year=t,this._month=r,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function S9(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}M9(nQ.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Hs.local.differentCalendars||Hs.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+S9(Math.abs(this.year()),4)+"-"+S9(this.month(),2)+"-"+S9(this.day(),2)}});function aQ(){this.shortYearCutoff="+10"}M9(aQ.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new nQ(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,Hs.local.invalidYear||Hs.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Hs.local.invalidYear||Hs.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+S9(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Hs.local.invalidYear||Hs.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,Hs.local.invalidMonth||Hs.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,Hs.local.invalidMonth||Hs.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Hs.local.invalidYear||Hs.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var n=this._validate(e,t,r,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var n=e.toJD()+t*(r==="w"?this.daysInWeek():1),i=e.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=e.year()+(r==="y"?t:0),o=e.monthOfYear()+(r==="m"?t:0),i=e.day(),s=function(c){for(;of-1+c.minMonth;)a++,o-=f,f=c.monthsInYear(a)};r==="y"?(e.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):r==="m"&&(s(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var l=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,l}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,t,r,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var i={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],a=r<0?-1:1;t=this._add(e,r*i[0]+a*i[1],i[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate);var n=r==="y"?t:e.year(),i=r==="m"?t:e.month(),a=r==="d"?t:e.day();return(r==="y"||r==="m")&&(a=Math.min(a,this.daysInMonth(n,i))),e.date(n,i,a)},isValid:function(e,t,r){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var i=this.newDate(e,t,this.minDay);n=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),u=i-(l>2.5?4716:4715);return u<=0&&u--,this.newDate(u,l,s)},toJSDate:function(e,t,r){var n=this._validate(e,t,r,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()>12?i.getHours()+2:0),i},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Hs=xQe.exports=new _Qe;Hs.cdate=nQ;Hs.baseCalendar=aQ;Hs.calendars.gregorian=oQ});var bQe=ye(()=>{var sQ=Fh(),Ud=Sv();sQ(Ud.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Ud.local=Ud.regionalOptions[""];sQ(Ud.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});sQ(Ud.baseCalendar.prototype,{UNIX_EPOCH:Ud.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Ud.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw Ud.local.invalidFormat||Ud.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var n=r.dayNamesShort||this.local.dayNamesShort,i=r.dayNames||this.local.dayNames,a=r.monthNumbers||this.local.monthNumbers,o=r.monthNamesShort||this.local.monthNamesShort,s=r.monthNames||this.local.monthNames,l=r.calculateWeek||this.local.calculateWeek,u=function(A,L){for(var _=1;E+_1},c=function(A,L,_,k){var M=""+L;if(u(A,k))for(;M.length<_;)M="0"+M;return M},f=function(A,L,_,k){return u(A)?k[L]:_[L]},h=this,d=function(A){return typeof a=="function"?a.call(h,A,u("m")):b(c("m",A.month(),2))},v=function(A,L){return L?typeof s=="function"?s.call(h,A):s[A.month()-h.minMonth]:typeof o=="function"?o.call(h,A):o[A.month()-h.minMonth]},x=this.local.digits,b=function(A){return r.localNumbers&&x?x(A):A},p="",C=!1,E=0;E1},C=function(z,O){var V=p(z,O),G=[2,3,V?4:2,V?4:2,10,11,20]["oyYJ@!".indexOf(z)+1],Z=new RegExp("^-?\\d{1,"+G+"}"),H=t.substring(M).match(Z);if(!H)throw(Ud.local.missingNumberAt||Ud.regionalOptions[""].missingNumberAt).replace(/\{0\}/,M);return M+=H[0].length,parseInt(H[0],10)},E=this,A=function(){if(typeof s=="function"){p("m");var z=s.call(E,t.substring(M));return M+=z.length,z}return C("m")},L=function(z,O,V,G){for(var Z=p(z,G)?V:O,H=0;H-1){h=1,d=v;for(var T=this.daysInMonth(f,h);d>T;T=this.daysInMonth(f,h))h++,d-=T}return c>-1?this.fromJD(c):this.newDate(f,h,d)},determineDate:function(e,t,r,n,i){r&&typeof r!="object"&&(i=n,n=r,r=null),typeof n!="string"&&(i=n,n="");var a=this,o=function(s){try{return a.parseDate(n,s,i)}catch(f){}s=s.toLowerCase();for(var l=(s.match(/^c/)&&r?r.newDate():null)||a.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,c=u.exec(s);c;)l.add(parseInt(c[1],10),c[2]||"d"),c=u.exec(s);return l};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:a.today().add(e,"d"):a.newDate(e),e}})});var wQe=ye(()=>{var Fx=Sv(),mer=Fh(),lQ=Fx.instance();function E9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}E9.prototype=new Fx.baseCalendar;mer(E9.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(_er);return r?r[0]:""}var n=this._validateYear(e),i=e.month(),a=""+this.toChineseMonth(n,i);return t&&a.length<2&&(a="0"+a),this.isIntercalaryMonth(n,i)&&(a+="i"),a},monthNames:function(e){if(typeof e=="string"){var t=e.match(xer);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(ber);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),n;if(isNaN(r))t[0]==="\u95F0"&&(n=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var i=t[t.length-1];n=i==="i"||i==="I"}var a=this.toMonthIndex(e,r,n);return a},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var n=this.intercalaryMonth(e),i=r&&t!==n;if(i||t<1||t>12)throw Fx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return n?!r&&t<=n?a=t-1:a=t:a=t-1,a},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),n=r?12:11;if(t<0||t>n)throw Fx.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var n=this._validateYear(e,Fx.local.invalidyear),i=Ox[n-Ox[0]],a=i>>9&4095,o=i>>5&15,s=i&31,l;l=lQ.newDate(a,o,s),l.add(4-(l.dayOfWeek()||7),"d");var u=this.toJD(e,t,r)-l.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=zx[e-zx[0]],n=r>>13,i=n?12:11;if(t>i)throw Fx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a=r&1<<12-t?30:29;return a},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,a,r,Fx.local.invalidDate);e=this._validateYear(n.year()),t=n.month(),r=n.day();var i=this.isIntercalaryMonth(e,t),a=this.toChineseMonth(e,t),o=Ter(e,a,r,i);return lQ.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=lQ.fromJD(e),r=wer(t.year(),t.month(),t.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(e){var t=e.match(yer),r=this._validateYear(+t[1]),n=+t[2],i=!!t[3],a=this.toMonthIndex(r,n,i),o=+t[4];return this.newDate(r,a,o)},add:function(e,t,r){var n=e.year(),i=e.month(),a=this.isIntercalaryMonth(n,i),o=this.toChineseMonth(n,i),s=Object.getPrototypeOf(E9.prototype).add.call(this,e,t,r);if(r==="y"){var l=s.year(),u=s.month(),c=this.isIntercalaryMonth(l,o),f=a&&c?this.toMonthIndex(l,o,!0):this.toMonthIndex(l,o,!1);f!==u&&s.month(f)}return s}});var yer=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,_er=/^\d?\d[iI]?/m,xer=/^闰?十?[一二三四五六七八九]?月/m,ber=/^闰?十?[一二三四五六七八九]?/m;Fx.calendars.chinese=E9;var zx=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Ox=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function wer(e,t,r,n){var i,a;if(typeof e=="object")i=e,a=t||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var s=typeof t=="number"&&t>=1&&t<=12;if(!s)throw new Error("Solar month outside range 1 - 12");var l=typeof r=="number"&&r>=1&&r<=31;if(!l)throw new Error("Solar day outside range 1 - 31");i={year:e,month:t,day:r},a=n||{}}var u=Ox[i.year-Ox[0]],c=i.year<<9|i.month<<5|i.day;a.year=c>=u?i.year:i.year-1,u=Ox[a.year-Ox[0]];var f=u>>9&4095,h=u>>5&15,d=u&31,v,x=new Date(f,h-1,d),b=new Date(i.year,i.month-1,i.day);v=Math.round((b-x)/(24*3600*1e3));var p=zx[a.year-zx[0]],C;for(C=0;C<13;C++){var E=p&1<<12-C?30:29;if(v>13;return!A||C=1888&&e<=2111;if(!s)throw new Error("Lunar year outside range 1888-2111");var l=typeof t=="number"&&t>=1&&t<=12;if(!l)throw new Error("Lunar month outside range 1 - 12");var u=typeof r=="number"&&r>=1&&r<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var c;typeof n=="object"?(c=!1,a=n):(c=!!n,a=i||{}),o={year:e,month:t,day:r,isIntercalary:c}}var f;f=o.day-1;var h=zx[o.year-zx[0]],d=h>>13,v;d&&(o.month>d||o.isIntercalary)?v=o.month:v=o.month-1;for(var x=0;x>9&4095,E=p>>5&15,A=p&31,L=new Date(C,E-1,A+f);return a.year=L.getFullYear(),a.month=1+L.getMonth(),a.day=L.getDate(),a}});var TQe=ye(()=>{var _w=Sv(),Aer=Fh();function uQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}uQ.prototype=new _w.baseCalendar;Aer(uQ.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,_w.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,_w.local.invalidYear||_w.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,_w.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,_w.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});_w.calendars.coptic=uQ});var AQe=ye(()=>{var b1=Sv(),Ser=Fh();function cQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}cQ.prototype=new b1.baseCalendar;Ser(cQ.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),400},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,b1.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,t,r){var n=this.dayOfWeek(e,t,r);return n>=2&&n<=6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return{century:Mer[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return e=n.year()+(n.year()<0?1:0),t=n.month(),r=n.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,n=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,n)}});var Mer={20:"Fruitbat",21:"Anchovy"};b1.calendars.discworld=cQ});var SQe=ye(()=>{var xw=Sv(),Eer=Fh();function fQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fQ.prototype=new xw.baseCalendar;Eer(fQ.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,xw.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,xw.local.invalidYear||xw.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,xw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,xw.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});xw.calendars.ethiopian=fQ});var MQe=ye(()=>{var qx=Sv(),Cer=Fh();function hQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}hQ.prototype=new qx.baseCalendar;Cer(hQ.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,qx.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,C9(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,qx.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,qx.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,qx.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&C9(this.daysInYear(e),10)===5?30:t===9&&C9(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,qx.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,t,r){var n=this._validate(e,t,r,qx.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=e<=0?e+1:e,a=this.jdEpoch+this._delay1(i)+this._delay2(i)+r+1;if(t<7){for(var o=7;o<=this.monthsInYear(e);o++)a+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});function C9(e,t){return e-t*Math.floor(e/t)}qx.calendars.hebrew=hQ});var EQe=ye(()=>{var lk=Sv(),ker=Fh();function dQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}dQ.prototype=new lk.baseCalendar;ker(dQ.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,lk.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,lk.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,lk.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});lk.calendars.islamic=dQ});var CQe=ye(()=>{var uk=Sv(),Ler=Fh();function vQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}vQ.prototype=new uk.baseCalendar;Ler(vQ.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,uk.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,uk.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,uk.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,n=Math.floor((r-122.1)/365.25),i=Math.floor(365.25*n),a=Math.floor((r-i)/30.6001),o=a-Math.floor(a<14?1:13),s=n-Math.floor(o>2?4716:4715),l=r-i-Math.floor(30.6001*a);return s<=0&&s--,this.newDate(s,o,l)}});uk.calendars.julian=vQ});var LQe=ye(()=>{var ug=Sv(),Per=Fh();function gQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}gQ.prototype=new ug.baseCalendar;Per(gQ.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,ug.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ug.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return r+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&n<0)throw"Invalid Mayan year";t=t*20+n}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ug.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,ug.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ug.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,ug.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,ug.local.invalidDate);return n.day()},weekDay:function(e,t,r){return this._validate(e,t,r,ug.local.invalidDate),!0},extraInfo:function(e,t,r){var n=this._validate(e,t,r,ug.local.invalidDate),i=n.toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=pQ(e+8+17*20,365);return[Math.floor(t/20)+1,pQ(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[kQe(e+20,20),kQe(e+4,13)]},toJD:function(e,t,r){var n=this._validate(e,t,r,ug.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),n=e%20;return this.newDate(t,r,n)}});function pQ(e,t){return e-t*Math.floor(e/t)}function kQe(e,t){return pQ(e-1,t)+1}ug.calendars.mayan=gQ});var IQe=ye(()=>{var bw=Sv(),Ier=Fh();function mQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}mQ.prototype=new bw.baseCalendar;var PQe=bw.instance("gregorian");Ier(mQ.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,bw.local.invalidYear||bw.regionalOptions[""].invalidYear);return PQe.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,bw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,bw.local.invalidMonth),i=n.year();i<0&&i++;for(var a=n.day(),o=1;o=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,n=1;r>this.daysInMonth(t,n);)r-=this.daysInMonth(t,n),n++;return this.newDate(t,n,r)}});bw.calendars.nanakshahi=mQ});var RQe=ye(()=>{var ww=Sv(),Rer=Fh();function yQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}yQ.prototype=new ww.baseCalendar;Rer(yQ.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ww.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,n=this.minMonth;n<=12;n++)r+=this.NEPALI_CALENDAR_DATA[e][n];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,ww.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var n=this._validate(e,t,r,ww.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=ww.instance(),a=0,o=t,s=e;this._createMissingCalendarData(e);var l=e-(o>9||o===9&&r>=this.NEPALI_CALENDAR_DATA[s][0]?56:57);for(t!==9&&(a=r,o--);o!==9;)o<=0&&(o=12,s--),a+=this.NEPALI_CALENDAR_DATA[s][o],o--;return t===9?(a+=r-this.NEPALI_CALENDAR_DATA[s][0],a<0&&(a+=i.daysInYear(l))):a+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],i.newDate(l,1,1).add(a,"d").toJD()},fromJD:function(e){var t=ww.instance(),r=t.fromJD(e),n=r.year(),i=r.dayOfYear(),a=n+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i>l;)o++,o>12&&(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var u=this.NEPALI_CALENDAR_DATA[a][o]-(l-i);return this.newDate(a,o,u)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var Q5=Sv(),Der=Fh();function L9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function k9(e){var t=e-475;e<0&&t++;var r=.242197,n=r*t,i=r*(t+1),a=n-Math.floor(n),o=i-Math.floor(i);return a>o}L9.prototype=new Q5.baseCalendar;Der(L9.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Q5.local.invalidYear);return k9(t.year())},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Q5.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,Q5.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=0;if(e>0)for(var a=1;a0?e-1:e)*365+i+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=475+(e-this.toJD(475,1,1))/365.242197,r=Math.floor(t);r<=0&&r--,e>this.toJD(r,12,k9(r)?30:29)&&(r++,r===0&&r++);var n=e-this.toJD(r,1,1)+1,i=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),a=e-this.toJD(r,i,1)+1;return this.newDate(r,i,a)}});Q5.calendars.persian=L9;Q5.calendars.jalali=L9});var FQe=ye(()=>{var Tw=Sv(),Fer=Fh(),P9=Tw.instance();function _Q(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_Q.prototype=new Tw.baseCalendar;Fer(_Q.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Tw.local.invalidYear),r=this._t2gYear(t.year());return P9.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Tw.local.invalidYear),i=this._t2gYear(n.year());return P9.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Tw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Tw.local.invalidDate),i=this._t2gYear(n.year());return P9.toJD(i,n.month(),n.day())},fromJD:function(e){var t=P9.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Tw.calendars.taiwan=_Q});var zQe=ye(()=>{var Aw=Sv(),zer=Fh(),I9=Aw.instance();function xQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}xQ.prototype=new Aw.baseCalendar;zer(xQ.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Aw.local.invalidYear),r=this._t2gYear(t.year());return I9.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Aw.local.invalidYear),i=this._t2gYear(n.year());return I9.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Aw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Aw.local.invalidDate),i=this._t2gYear(n.year());return I9.toJD(i,n.month(),n.day())},fromJD:function(e){var t=I9.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Aw.calendars.thai=xQ});var OQe=ye(()=>{var Sw=Sv(),Oer=Fh();function bQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}bQ.prototype=new Sw.baseCalendar;Oer(bQ.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Sw.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,Sw.local.invalidMonth),n=r.toJD()-24e5+.5,i=0,a=0;an)return Bx[i]-Bx[i-1];i++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,Sw.local.invalidDate),i=12*(n.year()-1)+n.month()-15292,a=n.day()+Bx[i-1]-1;return a+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,n=0;nt);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),o=a+1,s=i-12*a,l=t-Bx[r-1]+1;return this.newDate(o,s,l)},isValid:function(e,t,r){var n=Sw.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,t,r,n){var i=Sw.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw n.replace(/\{0\}/,this.local.name);return i}});Sw.calendars.ummalqura=bQ;var Bx=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var BQe=ye((Ywr,qQe)=>{"use strict";qQe.exports=Sv();bQe();wQe();TQe();AQe();SQe();MQe();EQe();CQe();LQe();IQe();RQe();DQe();FQe();zQe();OQe()});var WQe=ye((Kwr,jQe)=>{"use strict";var UQe=BQe(),ck=Dr(),VQe=hs(),qer=VQe.EPOCHJD,Ber=VQe.ONEDAY,AQ={valType:"enumerated",values:ck.sortObjectKeys(UQe.calendars),editType:"calc",dflt:"gregorian"},GQe=function(e,t,r,n){var i={};return i[r]=AQ,ck.coerce(e,t,i,r,n)},Ner=function(e,t,r,n){for(var i=0;i{"use strict";XQe.exports=WQe()});var Wer=ye(($wr,KQe)=>{var YQe=eye();YQe.register([r1e(),G1e(),txe(),bxe(),Dxe(),Lbe(),Gbe(),k2e(),nwe(),Bwe(),S3e(),OEe(),SCe(),p6e(),rLe(),ILe(),tPe(),SIe(),HIe(),l8e(),x8e(),D8e(),Y8e(),fRe(),qDe(),nFe(),bBe(),bNe(),PUe(),rVe(),fGe(),MGe(),KGe(),sje(),wje(),Wje(),eXe(),AXe(),aZe(),EYe(),KYe(),mKe(),GKe(),iJe(),t$e(),_$e(),q$e(),yQe(),ZQe()]);KQe.exports=YQe});return Wer();})(); +`),We=Xe.createShader(Xe.FRAGMENT_SHADER);if(Xe.isContextLost())return void(this.failedToCreate=!0);if(Xe.shaderSource(We,Be),Xe.compileShader(We),!Xe.getShaderParameter(We,Xe.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${Xe.getShaderInfoLog(We)}`);Xe.attachShader(this.program,We);let it=Xe.createShader(Xe.VERTEX_SHADER);if(Xe.isContextLost())return void(this.failedToCreate=!0);if(Xe.shaderSource(it,tt),Xe.compileShader(it),!Xe.getShaderParameter(it,Xe.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${Xe.getShaderInfoLog(it)}`);Xe.attachShader(this.program,it),this.attributes={};let Dt={};this.numAttributes=Kt.length;for(let Ht=0;Ht({u_depth:new a.aH(Ht,rr.u_depth),u_terrain:new a.aH(Ht,rr.u_terrain),u_terrain_dim:new a.aI(Ht,rr.u_terrain_dim),u_terrain_matrix:new a.aJ(Ht,rr.u_terrain_matrix),u_terrain_unpack:new a.aK(Ht,rr.u_terrain_unpack),u_terrain_exaggeration:new a.aI(Ht,rr.u_terrain_exaggeration)}))(w,Dt),this.binderUniforms=Q?Q.getUniforms(w,Dt):[]}draw(w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,Pr,ve,be,Re,Be,tt){let We=w.gl;if(this.failedToCreate)return;if(w.program.set(this.program),w.setDepthMode(Q),w.setStencilMode(ee),w.setColorMode(le),w.setCullFace(qe),ot){w.activeTexture.set(We.TEXTURE2),We.bindTexture(We.TEXTURE_2D,ot.depthTexture),w.activeTexture.set(We.TEXTURE3),We.bindTexture(We.TEXTURE_2D,ot.texture);for(let Dt in this.terrainUniforms)this.terrainUniforms[Dt].set(ot[Dt])}for(let Dt in this.fixedUniforms)this.fixedUniforms[Dt].set(Xe[Dt]);be&&be.setUniforms(w,this.binderUniforms,Pr,{zoom:ve});let it=0;switch(B){case We.LINES:it=2;break;case We.TRIANGLES:it=3;break;case We.LINE_STRIP:it=1}for(let Dt of xr.get()){let Ht=Dt.vaos||(Dt.vaos={});(Ht[Tt]||(Ht[Tt]=new Cr)).bind(w,this,Kt,be?be.getPaintVertexBuffers():[],Jt,Dt.vertexOffset,Re,Be,tt),We.drawElements(B,Dt.primitiveLength*it,We.UNSIGNED_SHORT,Dt.primitiveOffset*it*2)}}}function Sn(ue,w,B){let Q=1/Pn(B,1,w.transform.tileZoom),ee=Math.pow(2,B.tileID.overscaledZ),le=B.tileSize*Math.pow(2,w.transform.tileZoom)/ee,qe=le*(B.tileID.canonical.x+B.tileID.wrap*ee),Xe=le*B.tileID.canonical.y;return{u_image:0,u_texsize:B.imageAtlasTexture.size,u_scale:[Q,ue.fromScale,ue.toScale],u_fade:ue.t,u_pixel_coord_upper:[qe>>16,Xe>>16],u_pixel_coord_lower:[65535&qe,65535&Xe]}}let En=(ue,w,B,Q)=>{let ee=w.style.light,le=ee.properties.get("position"),qe=[le.x,le.y,le.z],Xe=function(){var Tt=new a.A(9);return a.A!=Float32Array&&(Tt[1]=0,Tt[2]=0,Tt[3]=0,Tt[5]=0,Tt[6]=0,Tt[7]=0),Tt[0]=1,Tt[4]=1,Tt[8]=1,Tt}();ee.properties.get("anchor")==="viewport"&&function(Tt,Kt){var Jt=Math.sin(Kt),xr=Math.cos(Kt);Tt[0]=xr,Tt[1]=Jt,Tt[2]=0,Tt[3]=-Jt,Tt[4]=xr,Tt[5]=0,Tt[6]=0,Tt[7]=0,Tt[8]=1}(Xe,-w.transform.angle),function(Tt,Kt,Jt){var xr=Kt[0],Pr=Kt[1],ve=Kt[2];Tt[0]=xr*Jt[0]+Pr*Jt[3]+ve*Jt[6],Tt[1]=xr*Jt[1]+Pr*Jt[4]+ve*Jt[7],Tt[2]=xr*Jt[2]+Pr*Jt[5]+ve*Jt[8]}(qe,qe,Xe);let ot=ee.properties.get("color");return{u_matrix:ue,u_lightpos:qe,u_lightintensity:ee.properties.get("intensity"),u_lightcolor:[ot.r,ot.g,ot.b],u_vertical_gradient:+B,u_opacity:Q}},ki=(ue,w,B,Q,ee,le,qe)=>a.e(En(ue,w,B,Q),Sn(le,w,qe),{u_height_factor:-Math.pow(2,ee.overscaledZ)/qe.tileSize/8}),_n=ue=>({u_matrix:ue}),ya=(ue,w,B,Q)=>a.e(_n(ue),Sn(B,w,Q)),Jn=(ue,w)=>({u_matrix:ue,u_world:w}),Ma=(ue,w,B,Q,ee)=>a.e(ya(ue,w,B,Q),{u_world:ee}),_o=(ue,w,B,Q)=>{let ee=ue.transform,le,qe;if(Q.paint.get("circle-pitch-alignment")==="map"){let Xe=Pn(B,1,ee.zoom);le=!0,qe=[Xe,Xe]}else le=!1,qe=ee.pixelsToGLUnits;return{u_camera_to_center_distance:ee.cameraToCenterDistance,u_scale_with_map:+(Q.paint.get("circle-pitch-scale")==="map"),u_matrix:ue.translatePosMatrix(w.posMatrix,B,Q.paint.get("circle-translate"),Q.paint.get("circle-translate-anchor")),u_pitch_with_map:+le,u_device_pixel_ratio:ue.pixelRatio,u_extrude_scale:qe}},No=(ue,w,B)=>({u_matrix:ue,u_inv_matrix:w,u_camera_to_center_distance:B.cameraToCenterDistance,u_viewport_size:[B.width,B.height]}),po=(ue,w,B=1)=>({u_matrix:ue,u_color:w,u_overlay:0,u_overlay_scale:B}),Lo=ue=>({u_matrix:ue}),Co=(ue,w,B,Q)=>({u_matrix:ue,u_extrude_scale:Pn(w,1,B),u_intensity:Q}),Fs=(ue,w,B,Q)=>{let ee=a.H();a.aP(ee,0,ue.width,ue.height,0,0,1);let le=ue.context.gl;return{u_matrix:ee,u_world:[le.drawingBufferWidth,le.drawingBufferHeight],u_image:B,u_color_ramp:Q,u_opacity:w.paint.get("heatmap-opacity")}};function zs(ue,w){let B=Math.pow(2,w.canonical.z),Q=w.canonical.y;return[new a.Z(0,Q/B).toLngLat().lat,new a.Z(0,(Q+1)/B).toLngLat().lat]}let ul=(ue,w,B,Q)=>{let ee=ue.transform;return{u_matrix:Ss(ue,w,B,Q),u_ratio:1/Pn(w,1,ee.zoom),u_device_pixel_ratio:ue.pixelRatio,u_units_to_pixels:[1/ee.pixelsToGLUnits[0],1/ee.pixelsToGLUnits[1]]}},cl=(ue,w,B,Q,ee)=>a.e(ul(ue,w,B,ee),{u_image:0,u_image_height:Q}),Fl=(ue,w,B,Q,ee)=>{let le=ue.transform,qe=nl(w,le);return{u_matrix:Ss(ue,w,B,ee),u_texsize:w.imageAtlasTexture.size,u_ratio:1/Pn(w,1,le.zoom),u_device_pixel_ratio:ue.pixelRatio,u_image:0,u_scale:[qe,Q.fromScale,Q.toScale],u_fade:Q.t,u_units_to_pixels:[1/le.pixelsToGLUnits[0],1/le.pixelsToGLUnits[1]]}},cs=(ue,w,B,Q,ee,le)=>{let qe=ue.lineAtlas,Xe=nl(w,ue.transform),ot=B.layout.get("line-cap")==="round",Tt=qe.getDash(Q.from,ot),Kt=qe.getDash(Q.to,ot),Jt=Tt.width*ee.fromScale,xr=Kt.width*ee.toScale;return a.e(ul(ue,w,B,le),{u_patternscale_a:[Xe/Jt,-Tt.height/2],u_patternscale_b:[Xe/xr,-Kt.height/2],u_sdfgamma:qe.width/(256*Math.min(Jt,xr)*ue.pixelRatio)/2,u_image:0,u_tex_y_a:Tt.y,u_tex_y_b:Kt.y,u_mix:ee.t})};function nl(ue,w){return 1/Pn(ue,1,w.tileZoom)}function Ss(ue,w,B,Q){return ue.translatePosMatrix(Q?Q.posMatrix:w.tileID.posMatrix,w,B.paint.get("line-translate"),B.paint.get("line-translate-anchor"))}let fl=(ue,w,B,Q,ee)=>{return{u_matrix:ue,u_tl_parent:w,u_scale_parent:B,u_buffer_scale:1,u_fade_t:Q.mix,u_opacity:Q.opacity*ee.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:ee.paint.get("raster-brightness-min"),u_brightness_high:ee.paint.get("raster-brightness-max"),u_saturation_factor:(qe=ee.paint.get("raster-saturation"),qe>0?1-1/(1.001-qe):-qe),u_contrast_factor:(le=ee.paint.get("raster-contrast"),le>0?1/(1-le):1+le),u_spin_weights:Js(ee.paint.get("raster-hue-rotate"))};var le,qe};function Js(ue){ue*=Math.PI/180;let w=Math.sin(ue),B=Math.cos(ue);return[(2*B+1)/3,(-Math.sqrt(3)*w-B+1)/3,(Math.sqrt(3)*w-B+1)/3]}let Os=(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,Pr)=>{let ve=qe.transform;return{u_is_size_zoom_constant:+(ue==="constant"||ue==="source"),u_is_size_feature_constant:+(ue==="constant"||ue==="camera"),u_size_t:w?w.uSizeT:0,u_size:w?w.uSize:0,u_camera_to_center_distance:ve.cameraToCenterDistance,u_pitch:ve.pitch/360*2*Math.PI,u_rotate_symbol:+B,u_aspect_ratio:ve.width/ve.height,u_fade_change:qe.options.fadeDuration?qe.symbolFadeChange:1,u_matrix:Xe,u_label_plane_matrix:ot,u_coord_matrix:Tt,u_is_text:+Jt,u_pitch_with_map:+Q,u_is_along_line:ee,u_is_variable_anchor:le,u_texsize:xr,u_texture:0,u_translation:Kt,u_pitched_scale:Pr}},Io=(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,Pr,ve)=>{let be=qe.transform;return a.e(Os(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,ve),{u_gamma_scale:Q?Math.cos(be._pitch)*be.cameraToCenterDistance:1,u_device_pixel_ratio:qe.pixelRatio,u_is_halo:+Pr})},us=(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,Pr)=>a.e(Io(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,!0,Jt,!0,Pr),{u_texsize_icon:xr,u_texture_icon:1}),Zl=(ue,w,B)=>({u_matrix:ue,u_opacity:w,u_color:B}),Su=(ue,w,B,Q,ee,le)=>a.e(function(qe,Xe,ot,Tt){let Kt=ot.imageManager.getPattern(qe.from.toString()),Jt=ot.imageManager.getPattern(qe.to.toString()),{width:xr,height:Pr}=ot.imageManager.getPixelSize(),ve=Math.pow(2,Tt.tileID.overscaledZ),be=Tt.tileSize*Math.pow(2,ot.transform.tileZoom)/ve,Re=be*(Tt.tileID.canonical.x+Tt.tileID.wrap*ve),Be=be*Tt.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:Kt.tl,u_pattern_br_a:Kt.br,u_pattern_tl_b:Jt.tl,u_pattern_br_b:Jt.br,u_texsize:[xr,Pr],u_mix:Xe.t,u_pattern_size_a:Kt.displaySize,u_pattern_size_b:Jt.displaySize,u_scale_a:Xe.fromScale,u_scale_b:Xe.toScale,u_tile_units_to_pixels:1/Pn(Tt,1,ot.transform.tileZoom),u_pixel_coord_upper:[Re>>16,Be>>16],u_pixel_coord_lower:[65535&Re,65535&Be]}}(Q,le,B,ee),{u_matrix:ue,u_opacity:w}),nc={fillExtrusion:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_lightpos:new a.aN(ue,w.u_lightpos),u_lightintensity:new a.aI(ue,w.u_lightintensity),u_lightcolor:new a.aN(ue,w.u_lightcolor),u_vertical_gradient:new a.aI(ue,w.u_vertical_gradient),u_opacity:new a.aI(ue,w.u_opacity)}),fillExtrusionPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_lightpos:new a.aN(ue,w.u_lightpos),u_lightintensity:new a.aI(ue,w.u_lightintensity),u_lightcolor:new a.aN(ue,w.u_lightcolor),u_vertical_gradient:new a.aI(ue,w.u_vertical_gradient),u_height_factor:new a.aI(ue,w.u_height_factor),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade),u_opacity:new a.aI(ue,w.u_opacity)}),fill:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix)}),fillPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),fillOutline:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world)}),fillOutlinePattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),circle:(ue,w)=>({u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_scale_with_map:new a.aH(ue,w.u_scale_with_map),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_extrude_scale:new a.aO(ue,w.u_extrude_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_matrix:new a.aJ(ue,w.u_matrix)}),collisionBox:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_pixel_extrude_scale:new a.aO(ue,w.u_pixel_extrude_scale)}),collisionCircle:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_inv_matrix:new a.aJ(ue,w.u_inv_matrix),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_viewport_size:new a.aO(ue,w.u_viewport_size)}),debug:(ue,w)=>({u_color:new a.aL(ue,w.u_color),u_matrix:new a.aJ(ue,w.u_matrix),u_overlay:new a.aH(ue,w.u_overlay),u_overlay_scale:new a.aI(ue,w.u_overlay_scale)}),clippingMask:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix)}),heatmap:(ue,w)=>({u_extrude_scale:new a.aI(ue,w.u_extrude_scale),u_intensity:new a.aI(ue,w.u_intensity),u_matrix:new a.aJ(ue,w.u_matrix)}),heatmapTexture:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world),u_image:new a.aH(ue,w.u_image),u_color_ramp:new a.aH(ue,w.u_color_ramp),u_opacity:new a.aI(ue,w.u_opacity)}),hillshade:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_latrange:new a.aO(ue,w.u_latrange),u_light:new a.aO(ue,w.u_light),u_shadow:new a.aL(ue,w.u_shadow),u_highlight:new a.aL(ue,w.u_highlight),u_accent:new a.aL(ue,w.u_accent)}),hillshadePrepare:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_dimension:new a.aO(ue,w.u_dimension),u_zoom:new a.aI(ue,w.u_zoom),u_unpack:new a.aK(ue,w.u_unpack)}),line:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels)}),lineGradient:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_image:new a.aH(ue,w.u_image),u_image_height:new a.aI(ue,w.u_image_height)}),linePattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texsize:new a.aO(ue,w.u_texsize),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_image:new a.aH(ue,w.u_image),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),lineSDF:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_patternscale_a:new a.aO(ue,w.u_patternscale_a),u_patternscale_b:new a.aO(ue,w.u_patternscale_b),u_sdfgamma:new a.aI(ue,w.u_sdfgamma),u_image:new a.aH(ue,w.u_image),u_tex_y_a:new a.aI(ue,w.u_tex_y_a),u_tex_y_b:new a.aI(ue,w.u_tex_y_b),u_mix:new a.aI(ue,w.u_mix)}),raster:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_tl_parent:new a.aO(ue,w.u_tl_parent),u_scale_parent:new a.aI(ue,w.u_scale_parent),u_buffer_scale:new a.aI(ue,w.u_buffer_scale),u_fade_t:new a.aI(ue,w.u_fade_t),u_opacity:new a.aI(ue,w.u_opacity),u_image0:new a.aH(ue,w.u_image0),u_image1:new a.aH(ue,w.u_image1),u_brightness_low:new a.aI(ue,w.u_brightness_low),u_brightness_high:new a.aI(ue,w.u_brightness_high),u_saturation_factor:new a.aI(ue,w.u_saturation_factor),u_contrast_factor:new a.aI(ue,w.u_contrast_factor),u_spin_weights:new a.aN(ue,w.u_spin_weights)}),symbolIcon:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texture:new a.aH(ue,w.u_texture),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),symbolSDF:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texture:new a.aH(ue,w.u_texture),u_gamma_scale:new a.aI(ue,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_is_halo:new a.aH(ue,w.u_is_halo),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),symbolTextAndIcon:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texsize_icon:new a.aO(ue,w.u_texsize_icon),u_texture:new a.aH(ue,w.u_texture),u_texture_icon:new a.aH(ue,w.u_texture_icon),u_gamma_scale:new a.aI(ue,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_is_halo:new a.aH(ue,w.u_is_halo),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),background:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_opacity:new a.aI(ue,w.u_opacity),u_color:new a.aL(ue,w.u_color)}),backgroundPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_opacity:new a.aI(ue,w.u_opacity),u_image:new a.aH(ue,w.u_image),u_pattern_tl_a:new a.aO(ue,w.u_pattern_tl_a),u_pattern_br_a:new a.aO(ue,w.u_pattern_br_a),u_pattern_tl_b:new a.aO(ue,w.u_pattern_tl_b),u_pattern_br_b:new a.aO(ue,w.u_pattern_br_b),u_texsize:new a.aO(ue,w.u_texsize),u_mix:new a.aI(ue,w.u_mix),u_pattern_size_a:new a.aO(ue,w.u_pattern_size_a),u_pattern_size_b:new a.aO(ue,w.u_pattern_size_b),u_scale_a:new a.aI(ue,w.u_scale_a),u_scale_b:new a.aI(ue,w.u_scale_b),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_tile_units_to_pixels:new a.aI(ue,w.u_tile_units_to_pixels)}),terrain:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texture:new a.aH(ue,w.u_texture),u_ele_delta:new a.aI(ue,w.u_ele_delta),u_fog_matrix:new a.aJ(ue,w.u_fog_matrix),u_fog_color:new a.aL(ue,w.u_fog_color),u_fog_ground_blend:new a.aI(ue,w.u_fog_ground_blend),u_fog_ground_blend_opacity:new a.aI(ue,w.u_fog_ground_blend_opacity),u_horizon_color:new a.aL(ue,w.u_horizon_color),u_horizon_fog_blend:new a.aI(ue,w.u_horizon_fog_blend)}),terrainDepth:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ele_delta:new a.aI(ue,w.u_ele_delta)}),terrainCoords:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texture:new a.aH(ue,w.u_texture),u_terrain_coords_id:new a.aI(ue,w.u_terrain_coords_id),u_ele_delta:new a.aI(ue,w.u_ele_delta)}),sky:(ue,w)=>({u_sky_color:new a.aL(ue,w.u_sky_color),u_horizon_color:new a.aL(ue,w.u_horizon_color),u_horizon:new a.aI(ue,w.u_horizon),u_sky_horizon_blend:new a.aI(ue,w.u_sky_horizon_blend)})};class ws{constructor(w,B,Q){this.context=w;let ee=w.gl;this.buffer=ee.createBuffer(),this.dynamicDraw=!!Q,this.context.unbindVAO(),w.bindElementBuffer.set(this.buffer),ee.bufferData(ee.ELEMENT_ARRAY_BUFFER,B.arrayBuffer,this.dynamicDraw?ee.DYNAMIC_DRAW:ee.STATIC_DRAW),this.dynamicDraw||delete B.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(w){let B=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),B.bufferSubData(B.ELEMENT_ARRAY_BUFFER,0,w.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}let Fn={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class _a{constructor(w,B,Q,ee){this.length=B.length,this.attributes=Q,this.itemSize=B.bytesPerElement,this.dynamicDraw=ee,this.context=w;let le=w.gl;this.buffer=le.createBuffer(),w.bindVertexBuffer.set(this.buffer),le.bufferData(le.ARRAY_BUFFER,B.arrayBuffer,this.dynamicDraw?le.DYNAMIC_DRAW:le.STATIC_DRAW),this.dynamicDraw||delete B.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(w){if(w.length!==this.length)throw new Error(`Length of new data is ${w.length}, which doesn't match current length of ${this.length}`);let B=this.context.gl;this.bind(),B.bufferSubData(B.ARRAY_BUFFER,0,w.arrayBuffer)}enableAttributes(w,B){for(let Q=0;Q0){let Ht=a.H();a.aQ(Ht,We.placementInvProjMatrix,ue.transform.glCoordMatrix),a.aQ(Ht,Ht,We.placementViewportMatrix),ot.push({circleArray:Dt,circleOffset:Kt,transform:tt.posMatrix,invTransform:Ht,coord:tt}),Tt+=Dt.length/4,Kt=Tt}it&&Xe.draw(le,qe.LINES,Po.disabled,Yo.disabled,ue.colorModeForRenderPass(),Pa.disabled,{u_matrix:tt.posMatrix,u_pixel_extrude_scale:[1/(Jt=ue.transform).width,1/Jt.height]},ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(tt),B.id,it.layoutVertexBuffer,it.indexBuffer,it.segments,null,ue.transform.zoom,null,null,it.collisionVertexBuffer)}var Jt;if(!ee||!ot.length)return;let xr=ue.useProgram("collisionCircle"),Pr=new a.aR;Pr.resize(4*Tt),Pr._trim();let ve=0;for(let Be of ot)for(let tt=0;tt=0&&(Be[We.associatedIconIndex]={shiftedAnchor:Kn,angle:Aa})}else di(We.numGlyphs,be)}if(Tt){Re.clear();let tt=ue.icon.placedSymbolArray;for(let We=0;Weue.style.map.terrain.getElevation(jr,nt,jt):null,Ct=B.layout.get("text-rotation-alignment")==="map";je(Li,jr.posMatrix,ue,ee,Nl,ou,Be,Tt,Ct,be,jr.toUnwrapped(),ve.width,ve.height,$s,Ze)}let Tl=jr.posMatrix,Al=ee&&dr||dc,X=tt||Al?bl:Nl,se=Lu,Te=In&&B.paint.get(ee?"text-halo-width":"icon-halo-width").constantOr(1)!==0,Ne;Ne=In?Li.iconsInText?us(Kn.kind,$a,We,Be,tt,Al,ue,Tl,X,se,$s,Qa,As,Or):Io(Kn.kind,$a,We,Be,tt,Al,ue,Tl,X,se,$s,ee,Qa,!0,Or):Os(Kn.kind,$a,We,Be,tt,Al,ue,Tl,X,se,$s,ee,Qa,Or);let He={program:fa,buffers:un,uniformValues:Ne,atlasTexture:mo,atlasTextureIcon:wo,atlasInterpolation:Bo,atlasInterpolationIcon:Is,isSDF:In,hasHalo:Te};if(Dt&&Li.canOverlap){Ht=!0;let Ze=un.segments.get();for(let Ct of Ze)Sr.push({segments:new a.a0([Ct]),sortKey:Ct.sortKey,state:He,terrainData:ko})}else Sr.push({segments:un.segments,sortKey:0,state:He,terrainData:ko})}Ht&&Sr.sort((jr,ii)=>jr.sortKey-ii.sortKey);for(let jr of Sr){let ii=jr.state;if(xr.activeTexture.set(Pr.TEXTURE0),ii.atlasTexture.bind(ii.atlasInterpolation,Pr.CLAMP_TO_EDGE),ii.atlasTextureIcon&&(xr.activeTexture.set(Pr.TEXTURE1),ii.atlasTextureIcon&&ii.atlasTextureIcon.bind(ii.atlasInterpolationIcon,Pr.CLAMP_TO_EDGE)),ii.isSDF){let Li=ii.uniformValues;ii.hasHalo&&(Li.u_is_halo=1,Qf(ii.buffers,jr.segments,B,ue,ii.program,rr,Kt,Jt,Li,jr.terrainData)),Li.u_is_halo=0}Qf(ii.buffers,jr.segments,B,ue,ii.program,rr,Kt,Jt,ii.uniformValues,jr.terrainData)}}function Qf(ue,w,B,Q,ee,le,qe,Xe,ot,Tt){let Kt=Q.context;ee.draw(Kt,Kt.gl.TRIANGLES,le,qe,Xe,Pa.disabled,ot,Tt,B.id,ue.layoutVertexBuffer,ue.indexBuffer,w,B.paint,Q.transform.zoom,ue.programConfigurations.get(B.id),ue.dynamicLayoutVertexBuffer,ue.opacityVertexBuffer)}function yf(ue,w,B,Q){let ee=ue.context,le=ee.gl,qe=Yo.disabled,Xe=new Bs([le.ONE,le.ONE],a.aM.transparent,[!0,!0,!0,!0]),ot=w.getBucket(B);if(!ot)return;let Tt=Q.key,Kt=B.heatmapFbos.get(Tt);Kt||(Kt=eh(ee,w.tileSize,w.tileSize),B.heatmapFbos.set(Tt,Kt)),ee.bindFramebuffer.set(Kt.framebuffer),ee.viewport.set([0,0,w.tileSize,w.tileSize]),ee.clear({color:a.aM.transparent});let Jt=ot.programConfigurations.get(B.id),xr=ue.useProgram("heatmap",Jt),Pr=ue.style.map.terrain.getTerrainData(Q);xr.draw(ee,le.TRIANGLES,Po.disabled,qe,Xe,Pa.disabled,Co(Q.posMatrix,w,ue.transform.zoom,B.paint.get("heatmap-intensity")),Pr,B.id,ot.layoutVertexBuffer,ot.indexBuffer,ot.segments,B.paint,ue.transform.zoom,Jt)}function Yc(ue,w,B){let Q=ue.context,ee=Q.gl;Q.setColorMode(ue.colorModeForRenderPass());let le=th(Q,w),qe=B.key,Xe=w.heatmapFbos.get(qe);Xe&&(Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,Xe.colorAttachment.get()),Q.activeTexture.set(ee.TEXTURE1),le.bind(ee.LINEAR,ee.CLAMP_TO_EDGE),ue.useProgram("heatmapTexture").draw(Q,ee.TRIANGLES,Po.disabled,Yo.disabled,ue.colorModeForRenderPass(),Pa.disabled,Fs(ue,w,0,1),null,w.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments,w.paint,ue.transform.zoom),Xe.destroy(),w.heatmapFbos.delete(qe))}function eh(ue,w,B){var Q,ee;let le=ue.gl,qe=le.createTexture();le.bindTexture(le.TEXTURE_2D,qe),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_S,le.CLAMP_TO_EDGE),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_T,le.CLAMP_TO_EDGE),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MIN_FILTER,le.LINEAR),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MAG_FILTER,le.LINEAR);let Xe=(Q=ue.HALF_FLOAT)!==null&&Q!==void 0?Q:le.UNSIGNED_BYTE,ot=(ee=ue.RGBA16F)!==null&&ee!==void 0?ee:le.RGBA;le.texImage2D(le.TEXTURE_2D,0,ot,w,B,0,le.RGBA,Xe,null);let Tt=ue.createFramebuffer(w,B,!1,!1);return Tt.colorAttachment.set(qe),Tt}function th(ue,w){return w.colorRampTexture||(w.colorRampTexture=new g(ue,w.colorRamp,ue.gl.RGBA)),w.colorRampTexture}function ju(ue,w,B,Q,ee){if(!B||!Q||!Q.imageAtlas)return;let le=Q.imageAtlas.patternPositions,qe=le[B.to.toString()],Xe=le[B.from.toString()];if(!qe&&Xe&&(qe=Xe),!Xe&&qe&&(Xe=qe),!qe||!Xe){let ot=ee.getPaintProperty(w);qe=le[ot],Xe=le[ot]}qe&&Xe&&ue.setConstantPatternPositions(qe,Xe)}function Hf(ue,w,B,Q,ee,le,qe){let Xe=ue.context.gl,ot="fill-pattern",Tt=B.paint.get(ot),Kt=Tt&&Tt.constantOr(1),Jt=B.getCrossfadeParameters(),xr,Pr,ve,be,Re;qe?(Pr=Kt&&!B.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",xr=Xe.LINES):(Pr=Kt?"fillPattern":"fill",xr=Xe.TRIANGLES);let Be=Tt.constantOr(null);for(let tt of Q){let We=w.getTile(tt);if(Kt&&!We.patternsLoaded())continue;let it=We.getBucket(B);if(!it)continue;let Dt=it.programConfigurations.get(B.id),Ht=ue.useProgram(Pr,Dt),rr=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(tt);Kt&&(ue.context.activeTexture.set(Xe.TEXTURE0),We.imageAtlasTexture.bind(Xe.LINEAR,Xe.CLAMP_TO_EDGE),Dt.updatePaintBuffers(Jt)),ju(Dt,ot,Be,We,B);let dr=rr?tt:null,Sr=ue.translatePosMatrix(dr?dr.posMatrix:tt.posMatrix,We,B.paint.get("fill-translate"),B.paint.get("fill-translate-anchor"));if(qe){be=it.indexBuffer2,Re=it.segments2;let Or=[Xe.drawingBufferWidth,Xe.drawingBufferHeight];ve=Pr==="fillOutlinePattern"&&Kt?Ma(Sr,ue,Jt,We,Or):Jn(Sr,Or)}else be=it.indexBuffer,Re=it.segments,ve=Kt?ya(Sr,ue,Jt,We):_n(Sr);Ht.draw(ue.context,xr,ee,ue.stencilModeForClipping(tt),le,Pa.disabled,ve,rr,B.id,it.layoutVertexBuffer,be,Re,B.paint,ue.transform.zoom,Dt)}}function cc(ue,w,B,Q,ee,le,qe){let Xe=ue.context,ot=Xe.gl,Tt="fill-extrusion-pattern",Kt=B.paint.get(Tt),Jt=Kt.constantOr(1),xr=B.getCrossfadeParameters(),Pr=B.paint.get("fill-extrusion-opacity"),ve=Kt.constantOr(null);for(let be of Q){let Re=w.getTile(be),Be=Re.getBucket(B);if(!Be)continue;let tt=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(be),We=Be.programConfigurations.get(B.id),it=ue.useProgram(Jt?"fillExtrusionPattern":"fillExtrusion",We);Jt&&(ue.context.activeTexture.set(ot.TEXTURE0),Re.imageAtlasTexture.bind(ot.LINEAR,ot.CLAMP_TO_EDGE),We.updatePaintBuffers(xr)),ju(We,Tt,ve,Re,B);let Dt=ue.translatePosMatrix(be.posMatrix,Re,B.paint.get("fill-extrusion-translate"),B.paint.get("fill-extrusion-translate-anchor")),Ht=B.paint.get("fill-extrusion-vertical-gradient"),rr=Jt?ki(Dt,ue,Ht,Pr,be,xr,Re):En(Dt,ue,Ht,Pr);it.draw(Xe,Xe.gl.TRIANGLES,ee,le,qe,Pa.backCCW,rr,tt,B.id,Be.layoutVertexBuffer,Be.indexBuffer,Be.segments,B.paint,ue.transform.zoom,We,ue.style.map.terrain&&Be.centroidVertexBuffer)}}function of(ue,w,B,Q,ee,le,qe){let Xe=ue.context,ot=Xe.gl,Tt=B.fbo;if(!Tt)return;let Kt=ue.useProgram("hillshade"),Jt=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(w);Xe.activeTexture.set(ot.TEXTURE0),ot.bindTexture(ot.TEXTURE_2D,Tt.colorAttachment.get()),Kt.draw(Xe,ot.TRIANGLES,ee,le,qe,Pa.disabled,((xr,Pr,ve,be)=>{let Re=ve.paint.get("hillshade-shadow-color"),Be=ve.paint.get("hillshade-highlight-color"),tt=ve.paint.get("hillshade-accent-color"),We=ve.paint.get("hillshade-illumination-direction")*(Math.PI/180);ve.paint.get("hillshade-illumination-anchor")==="viewport"&&(We-=xr.transform.angle);let it=!xr.options.moving;return{u_matrix:be?be.posMatrix:xr.transform.calculatePosMatrix(Pr.tileID.toUnwrapped(),it),u_image:0,u_latrange:zs(0,Pr.tileID),u_light:[ve.paint.get("hillshade-exaggeration"),We],u_shadow:Re,u_highlight:Be,u_accent:tt}})(ue,B,Q,Jt?w:null),Jt,Q.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments)}function Bl(ue,w,B,Q,ee,le){let qe=ue.context,Xe=qe.gl,ot=w.dem;if(ot&&ot.data){let Tt=ot.dim,Kt=ot.stride,Jt=ot.getPixels();if(qe.activeTexture.set(Xe.TEXTURE1),qe.pixelStoreUnpackPremultiplyAlpha.set(!1),w.demTexture=w.demTexture||ue.getTileTexture(Kt),w.demTexture){let Pr=w.demTexture;Pr.update(Jt,{premultiply:!1}),Pr.bind(Xe.NEAREST,Xe.CLAMP_TO_EDGE)}else w.demTexture=new g(qe,Jt,Xe.RGBA,{premultiply:!1}),w.demTexture.bind(Xe.NEAREST,Xe.CLAMP_TO_EDGE);qe.activeTexture.set(Xe.TEXTURE0);let xr=w.fbo;if(!xr){let Pr=new g(qe,{width:Tt,height:Tt,data:null},Xe.RGBA);Pr.bind(Xe.LINEAR,Xe.CLAMP_TO_EDGE),xr=w.fbo=qe.createFramebuffer(Tt,Tt,!0,!1),xr.colorAttachment.set(Pr.texture)}qe.bindFramebuffer.set(xr.framebuffer),qe.viewport.set([0,0,Tt,Tt]),ue.useProgram("hillshadePrepare").draw(qe,Xe.TRIANGLES,Q,ee,le,Pa.disabled,((Pr,ve)=>{let be=ve.stride,Re=a.H();return a.aP(Re,0,a.X,-a.X,0,0,1),a.J(Re,Re,[0,-a.X,0]),{u_matrix:Re,u_image:1,u_dimension:[be,be],u_zoom:Pr.overscaledZ,u_unpack:ve.getUnpackVector()}})(w.tileID,ot),null,B.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments),w.needsHillshadePrepare=!1}}function Kc(ue,w,B,Q,ee,le){let qe=Q.paint.get("raster-fade-duration");if(!le&&qe>0){let Xe=u.now(),ot=(Xe-ue.timeAdded)/qe,Tt=w?(Xe-w.timeAdded)/qe:-1,Kt=B.getSource(),Jt=ee.coveringZoomLevel({tileSize:Kt.tileSize,roundZoom:Kt.roundZoom}),xr=!w||Math.abs(w.tileID.overscaledZ-Jt)>Math.abs(ue.tileID.overscaledZ-Jt),Pr=xr&&ue.refreshedUponExpiration?1:a.ac(xr?ot:1-Tt,0,1);return ue.refreshedUponExpiration&&ot>=1&&(ue.refreshedUponExpiration=!1),w?{opacity:1,mix:1-Pr}:{opacity:Pr,mix:0}}return{opacity:1,mix:0}}let Rc=new a.aM(1,0,0,1),ms=new a.aM(0,1,0,1),jf=new a.aM(0,0,1,1),Uh=new a.aM(1,0,1,1),rh=new a.aM(0,1,1,1);function sf(ue,w,B,Q){Mu(ue,0,w+B/2,ue.transform.width,B,Q)}function xh(ue,w,B,Q){Mu(ue,w-B/2,0,B,ue.transform.height,Q)}function Mu(ue,w,B,Q,ee,le){let qe=ue.context,Xe=qe.gl;Xe.enable(Xe.SCISSOR_TEST),Xe.scissor(w*ue.pixelRatio,B*ue.pixelRatio,Q*ue.pixelRatio,ee*ue.pixelRatio),qe.clear({color:le}),Xe.disable(Xe.SCISSOR_TEST)}function ih(ue,w,B){let Q=ue.context,ee=Q.gl,le=B.posMatrix,qe=ue.useProgram("debug"),Xe=Po.disabled,ot=Yo.disabled,Tt=ue.colorModeForRenderPass(),Kt="$debug",Jt=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(B);Q.activeTexture.set(ee.TEXTURE0);let xr=w.getTileByID(B.key).latestRawTileData,Pr=Math.floor((xr&&xr.byteLength||0)/1024),ve=w.getTile(B).tileSize,be=512/Math.min(ve,512)*(B.overscaledZ/ue.transform.zoom)*.5,Re=B.canonical.toString();B.overscaledZ!==B.canonical.z&&(Re+=` => ${B.overscaledZ}`),function(Be,tt){Be.initDebugOverlayCanvas();let We=Be.debugOverlayCanvas,it=Be.context.gl,Dt=Be.debugOverlayCanvas.getContext("2d");Dt.clearRect(0,0,We.width,We.height),Dt.shadowColor="white",Dt.shadowBlur=2,Dt.lineWidth=1.5,Dt.strokeStyle="white",Dt.textBaseline="top",Dt.font="bold 36px Open Sans, sans-serif",Dt.fillText(tt,5,5),Dt.strokeText(tt,5,5),Be.debugOverlayTexture.update(We),Be.debugOverlayTexture.bind(it.LINEAR,it.CLAMP_TO_EDGE)}(ue,`${Re} ${Pr}kB`),qe.draw(Q,ee.TRIANGLES,Xe,ot,Bs.alphaBlended,Pa.disabled,po(le,a.aM.transparent,be),null,Kt,ue.debugBuffer,ue.quadTriangleIndexBuffer,ue.debugSegments),qe.draw(Q,ee.LINE_STRIP,Xe,ot,Tt,Pa.disabled,po(le,a.aM.red),Jt,Kt,ue.debugBuffer,ue.tileBorderIndexBuffer,ue.debugSegments)}function Ws(ue,w,B){let Q=ue.context,ee=Q.gl,le=ue.colorModeForRenderPass(),qe=new Po(ee.LEQUAL,Po.ReadWrite,ue.depthRangeFor3D),Xe=ue.useProgram("terrain"),ot=w.getTerrainMesh();Q.bindFramebuffer.set(null),Q.viewport.set([0,0,ue.width,ue.height]);for(let Tt of B){let Kt=ue.renderToTexture.getTexture(Tt),Jt=w.getTerrainData(Tt.tileID);Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,Kt.texture);let xr=ue.transform.calculatePosMatrix(Tt.tileID.toUnwrapped()),Pr=w.getMeshFrameDelta(ue.transform.zoom),ve=ue.transform.calculateFogMatrix(Tt.tileID.toUnwrapped()),be=Qr(xr,Pr,ve,ue.style.sky,ue.transform.pitch);Xe.draw(Q,ee.TRIANGLES,qe,Yo.disabled,le,Pa.backCCW,be,Jt,"terrain",ot.vertexBuffer,ot.indexBuffer,ot.segments)}}class Eu{constructor(w,B,Q){this.vertexBuffer=w,this.indexBuffer=B,this.segments=Q}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}class Dc{constructor(w,B){this.context=new ad(w),this.transform=B,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:a.an(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=yt.maxUnderzooming+yt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Wo}resize(w,B,Q){if(this.width=Math.floor(w*Q),this.height=Math.floor(B*Q),this.pixelRatio=Q,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let ee of this.style._order)this.style._layers[ee].resize()}setup(){let w=this.context,B=new a.aX;B.emplaceBack(0,0),B.emplaceBack(a.X,0),B.emplaceBack(0,a.X),B.emplaceBack(a.X,a.X),this.tileExtentBuffer=w.createVertexBuffer(B,vo.members),this.tileExtentSegments=a.a0.simpleSegment(0,0,4,2);let Q=new a.aX;Q.emplaceBack(0,0),Q.emplaceBack(a.X,0),Q.emplaceBack(0,a.X),Q.emplaceBack(a.X,a.X),this.debugBuffer=w.createVertexBuffer(Q,vo.members),this.debugSegments=a.a0.simpleSegment(0,0,4,5);let ee=new a.$;ee.emplaceBack(0,0,0,0),ee.emplaceBack(a.X,0,a.X,0),ee.emplaceBack(0,a.X,0,a.X),ee.emplaceBack(a.X,a.X,a.X,a.X),this.rasterBoundsBuffer=w.createVertexBuffer(ee,lt.members),this.rasterBoundsSegments=a.a0.simpleSegment(0,0,4,2);let le=new a.aX;le.emplaceBack(0,0),le.emplaceBack(1,0),le.emplaceBack(0,1),le.emplaceBack(1,1),this.viewportBuffer=w.createVertexBuffer(le,vo.members),this.viewportSegments=a.a0.simpleSegment(0,0,4,2);let qe=new a.aZ;qe.emplaceBack(0),qe.emplaceBack(1),qe.emplaceBack(3),qe.emplaceBack(2),qe.emplaceBack(0),this.tileBorderIndexBuffer=w.createIndexBuffer(qe);let Xe=new a.aY;Xe.emplaceBack(0,1,2),Xe.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=w.createIndexBuffer(Xe);let ot=this.context.gl;this.stencilClearMode=new Yo({func:ot.ALWAYS,mask:0},0,255,ot.ZERO,ot.ZERO,ot.ZERO)}clearStencil(){let w=this.context,B=w.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let Q=a.H();a.aP(Q,0,this.width,this.height,0,0,1),a.K(Q,Q,[B.drawingBufferWidth,B.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(w,B.TRIANGLES,Po.disabled,this.stencilClearMode,Bs.disabled,Pa.disabled,Lo(Q),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(w,B){if(this.currentStencilSource===w.source||!w.isTileClipped()||!B||!B.length)return;this.currentStencilSource=w.source;let Q=this.context,ee=Q.gl;this.nextStencilID+B.length>256&&this.clearStencil(),Q.setColorMode(Bs.disabled),Q.setDepthMode(Po.disabled);let le=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(let qe of B){let Xe=this._tileClippingMaskIDs[qe.key]=this.nextStencilID++,ot=this.style.map.terrain&&this.style.map.terrain.getTerrainData(qe);le.draw(Q,ee.TRIANGLES,Po.disabled,new Yo({func:ee.ALWAYS,mask:0},Xe,255,ee.KEEP,ee.KEEP,ee.REPLACE),Bs.disabled,Pa.disabled,Lo(qe.posMatrix),ot,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let w=this.nextStencilID++,B=this.context.gl;return new Yo({func:B.NOTEQUAL,mask:255},w,255,B.KEEP,B.KEEP,B.REPLACE)}stencilModeForClipping(w){let B=this.context.gl;return new Yo({func:B.EQUAL,mask:255},this._tileClippingMaskIDs[w.key],0,B.KEEP,B.KEEP,B.REPLACE)}stencilConfigForOverlap(w){let B=this.context.gl,Q=w.sort((qe,Xe)=>Xe.overscaledZ-qe.overscaledZ),ee=Q[Q.length-1].overscaledZ,le=Q[0].overscaledZ-ee+1;if(le>1){this.currentStencilSource=void 0,this.nextStencilID+le>256&&this.clearStencil();let qe={};for(let Xe=0;Xe({u_sky_color:Be.properties.get("sky-color"),u_horizon_color:Be.properties.get("horizon-color"),u_horizon:(tt.height/2+tt.getHorizon())*We,u_sky_horizon_blend:Be.properties.get("sky-horizon-blend")*tt.height/2*We}))(Tt,ot.style.map.transform,ot.pixelRatio),Pr=new Po(Jt.LEQUAL,Po.ReadWrite,[0,1]),ve=Yo.disabled,be=ot.colorModeForRenderPass(),Re=ot.useProgram("sky");if(!Tt.mesh){let Be=new a.aX;Be.emplaceBack(-1,-1),Be.emplaceBack(1,-1),Be.emplaceBack(1,1),Be.emplaceBack(-1,1);let tt=new a.aY;tt.emplaceBack(0,1,2),tt.emplaceBack(0,2,3),Tt.mesh=new Eu(Kt.createVertexBuffer(Be,vo.members),Kt.createIndexBuffer(tt),a.a0.simpleSegment(0,0,Be.length,tt.length))}Re.draw(Kt,Jt.TRIANGLES,Pr,ve,be,Pa.disabled,xr,void 0,"sky",Tt.mesh.vertexBuffer,Tt.mesh.indexBuffer,Tt.mesh.segments)}(this,this.style.sky),this._showOverdrawInspector=B.showOverdrawInspector,this.depthRangeFor3D=[0,1-(w._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(this.renderPass="opaque",this.currentLayer=Q.length-1;this.currentLayer>=0;this.currentLayer--){let ot=this.style._layers[Q[this.currentLayer]],Tt=ee[ot.source],Kt=le[ot.source];this._renderTileClippingMasks(ot,Kt),this.renderLayer(this,Tt,ot,Kt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayerRe.source&&!Re.isHidden(Kt)?[Tt.sourceCaches[Re.source]]:[]),Pr=xr.filter(Re=>Re.getSource().type==="vector"),ve=xr.filter(Re=>Re.getSource().type!=="vector"),be=Re=>{(!Jt||Jt.getSource().maxzoombe(Re)),Jt||ve.forEach(Re=>be(Re)),Jt}(this.style,this.transform.zoom);ot&&function(Tt,Kt,Jt){for(let xr=0;xr0),ee&&(a.b0(B,Q),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,function(le,qe){let Xe=le.context,ot=Xe.gl,Tt=Bs.unblended,Kt=new Po(ot.LEQUAL,Po.ReadWrite,[0,1]),Jt=qe.getTerrainMesh(),xr=qe.sourceCache.getRenderableTiles(),Pr=le.useProgram("terrainDepth");Xe.bindFramebuffer.set(qe.getFramebuffer("depth").framebuffer),Xe.viewport.set([0,0,le.width/devicePixelRatio,le.height/devicePixelRatio]),Xe.clear({color:a.aM.transparent,depth:1});for(let ve of xr){let be=qe.getTerrainData(ve.tileID),Re={u_matrix:le.transform.calculatePosMatrix(ve.tileID.toUnwrapped()),u_ele_delta:qe.getMeshFrameDelta(le.transform.zoom)};Pr.draw(Xe,ot.TRIANGLES,Kt,Yo.disabled,Tt,Pa.backCCW,Re,be,"terrain",Jt.vertexBuffer,Jt.indexBuffer,Jt.segments)}Xe.bindFramebuffer.set(null),Xe.viewport.set([0,0,le.width,le.height])}(this,this.style.map.terrain),function(le,qe){let Xe=le.context,ot=Xe.gl,Tt=Bs.unblended,Kt=new Po(ot.LEQUAL,Po.ReadWrite,[0,1]),Jt=qe.getTerrainMesh(),xr=qe.getCoordsTexture(),Pr=qe.sourceCache.getRenderableTiles(),ve=le.useProgram("terrainCoords");Xe.bindFramebuffer.set(qe.getFramebuffer("coords").framebuffer),Xe.viewport.set([0,0,le.width/devicePixelRatio,le.height/devicePixelRatio]),Xe.clear({color:a.aM.transparent,depth:1}),qe.coordsIndex=[];for(let be of Pr){let Re=qe.getTerrainData(be.tileID);Xe.activeTexture.set(ot.TEXTURE0),ot.bindTexture(ot.TEXTURE_2D,xr.texture);let Be={u_matrix:le.transform.calculatePosMatrix(be.tileID.toUnwrapped()),u_terrain_coords_id:(255-qe.coordsIndex.length)/255,u_texture:0,u_ele_delta:qe.getMeshFrameDelta(le.transform.zoom)};ve.draw(Xe,ot.TRIANGLES,Kt,Yo.disabled,Tt,Pa.backCCW,Be,Re,"terrain",Jt.vertexBuffer,Jt.indexBuffer,Jt.segments),qe.coordsIndex.push(be.tileID.key)}Xe.bindFramebuffer.set(null),Xe.viewport.set([0,0,le.width,le.height])}(this,this.style.map.terrain))}renderLayer(w,B,Q,ee){if(!Q.isHidden(this.transform.zoom)&&(Q.type==="background"||Q.type==="custom"||(ee||[]).length))switch(this.id=Q.id,Q.type){case"symbol":(function(le,qe,Xe,ot,Tt){if(le.renderPass!=="translucent")return;let Kt=Yo.disabled,Jt=le.colorModeForRenderPass();(Xe._unevaluatedLayout.hasValue("text-variable-anchor")||Xe._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&function(xr,Pr,ve,be,Re,Be,tt,We,it){let Dt=Pr.transform,Ht=yn(),rr=Re==="map",dr=Be==="map";for(let Sr of xr){let Or=be.getTile(Sr),jr=Or.getBucket(ve);if(!jr||!jr.text||!jr.text.segments.get().length)continue;let ii=a.ag(jr.textSizeData,Dt.zoom),Li=Pn(Or,1,Pr.transform.zoom),un=Wr(Sr.posMatrix,dr,rr,Pr.transform,Li),sn=ve.layout.get("icon-text-fit")!=="none"&&jr.hasIconData();if(ii){let In=Math.pow(2,Dt.zoom-Or.tileID.overscaledZ),Kn=Pr.style.map.terrain?(fa,$a)=>Pr.style.map.terrain.getElevation(Sr,fa,$a):null,Aa=Ht.translatePosition(Dt,Or,tt,We);mf(jr,rr,dr,it,Dt,un,Sr.posMatrix,In,ii,sn,Ht,Aa,Sr.toUnwrapped(),Kn)}}}(ot,le,Xe,qe,Xe.layout.get("text-rotation-alignment"),Xe.layout.get("text-pitch-alignment"),Xe.paint.get("text-translate"),Xe.paint.get("text-translate-anchor"),Tt),Xe.paint.get("icon-opacity").constantOr(1)!==0&&_h(le,qe,Xe,ot,!1,Xe.paint.get("icon-translate"),Xe.paint.get("icon-translate-anchor"),Xe.layout.get("icon-rotation-alignment"),Xe.layout.get("icon-pitch-alignment"),Xe.layout.get("icon-keep-upright"),Kt,Jt),Xe.paint.get("text-opacity").constantOr(1)!==0&&_h(le,qe,Xe,ot,!0,Xe.paint.get("text-translate"),Xe.paint.get("text-translate-anchor"),Xe.layout.get("text-rotation-alignment"),Xe.layout.get("text-pitch-alignment"),Xe.layout.get("text-keep-upright"),Kt,Jt),qe.map.showCollisionBoxes&&(Hu(le,qe,Xe,ot,!0),Hu(le,qe,Xe,ot,!1))})(w,B,Q,ee,this.style.placement.variableOffsets);break;case"circle":(function(le,qe,Xe,ot){if(le.renderPass!=="translucent")return;let Tt=Xe.paint.get("circle-opacity"),Kt=Xe.paint.get("circle-stroke-width"),Jt=Xe.paint.get("circle-stroke-opacity"),xr=!Xe.layout.get("circle-sort-key").isConstant();if(Tt.constantOr(1)===0&&(Kt.constantOr(1)===0||Jt.constantOr(1)===0))return;let Pr=le.context,ve=Pr.gl,be=le.depthModeForSublayer(0,Po.ReadOnly),Re=Yo.disabled,Be=le.colorModeForRenderPass(),tt=[];for(let We=0;WeWe.sortKey-it.sortKey);for(let We of tt){let{programConfiguration:it,program:Dt,layoutVertexBuffer:Ht,indexBuffer:rr,uniformValues:dr,terrainData:Sr}=We.state;Dt.draw(Pr,ve.TRIANGLES,be,Re,Be,Pa.disabled,dr,Sr,Xe.id,Ht,rr,We.segments,Xe.paint,le.transform.zoom,it)}})(w,B,Q,ee);break;case"heatmap":(function(le,qe,Xe,ot){if(Xe.paint.get("heatmap-opacity")===0)return;let Tt=le.context;if(le.style.map.terrain){for(let Kt of ot){let Jt=qe.getTile(Kt);qe.hasRenderableParent(Kt)||(le.renderPass==="offscreen"?yf(le,Jt,Xe,Kt):le.renderPass==="translucent"&&Yc(le,Xe,Kt))}Tt.viewport.set([0,0,le.width,le.height])}else le.renderPass==="offscreen"?function(Kt,Jt,xr,Pr){let ve=Kt.context,be=ve.gl,Re=Yo.disabled,Be=new Bs([be.ONE,be.ONE],a.aM.transparent,[!0,!0,!0,!0]);(function(tt,We,it){let Dt=tt.gl;tt.activeTexture.set(Dt.TEXTURE1),tt.viewport.set([0,0,We.width/4,We.height/4]);let Ht=it.heatmapFbos.get(a.aU);Ht?(Dt.bindTexture(Dt.TEXTURE_2D,Ht.colorAttachment.get()),tt.bindFramebuffer.set(Ht.framebuffer)):(Ht=eh(tt,We.width/4,We.height/4),it.heatmapFbos.set(a.aU,Ht))})(ve,Kt,xr),ve.clear({color:a.aM.transparent});for(let tt=0;tt20&&Kt.texParameterf(Kt.TEXTURE_2D,Tt.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Tt.extTextureFilterAnisotropicMax);let jr=le.style.map.terrain&&le.style.map.terrain.getTerrainData(tt),ii=jr?tt:null,Li=ii?ii.posMatrix:le.transform.calculatePosMatrix(tt.toUnwrapped(),Be),un=fl(Li,Sr||[0,0],dr||1,rr,Xe);Jt instanceof Gt?xr.draw(Tt,Kt.TRIANGLES,We,Yo.disabled,Pr,Pa.disabled,un,jr,Xe.id,Jt.boundsBuffer,le.quadTriangleIndexBuffer,Jt.boundsSegments):xr.draw(Tt,Kt.TRIANGLES,We,ve[tt.overscaledZ],Pr,Pa.disabled,un,jr,Xe.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments)}})(w,B,Q,ee);break;case"background":(function(le,qe,Xe,ot){let Tt=Xe.paint.get("background-color"),Kt=Xe.paint.get("background-opacity");if(Kt===0)return;let Jt=le.context,xr=Jt.gl,Pr=le.transform,ve=Pr.tileSize,be=Xe.paint.get("background-pattern");if(le.isPatternMissing(be))return;let Re=!be&&Tt.a===1&&Kt===1&&le.opaquePassEnabledForLayer()?"opaque":"translucent";if(le.renderPass!==Re)return;let Be=Yo.disabled,tt=le.depthModeForSublayer(0,Re==="opaque"?Po.ReadWrite:Po.ReadOnly),We=le.colorModeForRenderPass(),it=le.useProgram(be?"backgroundPattern":"background"),Dt=ot||Pr.coveringTiles({tileSize:ve,terrain:le.style.map.terrain});be&&(Jt.activeTexture.set(xr.TEXTURE0),le.imageManager.bind(le.context));let Ht=Xe.getCrossfadeParameters();for(let rr of Dt){let dr=ot?rr.posMatrix:le.transform.calculatePosMatrix(rr.toUnwrapped()),Sr=be?Su(dr,Kt,le,be,{tileID:rr,tileSize:ve},Ht):Zl(dr,Kt,Tt),Or=le.style.map.terrain&&le.style.map.terrain.getTerrainData(rr);it.draw(Jt,xr.TRIANGLES,tt,Be,We,Pa.disabled,Sr,Or,Xe.id,le.tileExtentBuffer,le.quadTriangleIndexBuffer,le.tileExtentSegments)}})(w,0,Q,ee);break;case"custom":(function(le,qe,Xe){let ot=le.context,Tt=Xe.implementation;if(le.renderPass==="offscreen"){let Kt=Tt.prerender;Kt&&(le.setCustomLayerDefaults(),ot.setColorMode(le.colorModeForRenderPass()),Kt.call(Tt,ot.gl,le.transform.customLayerMatrix()),ot.setDirty(),le.setBaseState())}else if(le.renderPass==="translucent"){le.setCustomLayerDefaults(),ot.setColorMode(le.colorModeForRenderPass()),ot.setStencilMode(Yo.disabled);let Kt=Tt.renderingMode==="3d"?new Po(le.context.gl.LEQUAL,Po.ReadWrite,le.depthRangeFor3D):le.depthModeForSublayer(0,Po.ReadOnly);ot.setDepthMode(Kt),Tt.render(ot.gl,le.transform.customLayerMatrix(),{farZ:le.transform.farZ,nearZ:le.transform.nearZ,fov:le.transform._fov,modelViewProjectionMatrix:le.transform.modelViewProjectionMatrix,projectionMatrix:le.transform.projectionMatrix}),ot.setDirty(),le.setBaseState(),ot.bindFramebuffer.set(null)}})(w,0,Q)}}translatePosMatrix(w,B,Q,ee,le){if(!Q[0]&&!Q[1])return w;let qe=le?ee==="map"?this.transform.angle:0:ee==="viewport"?-this.transform.angle:0;if(qe){let Tt=Math.sin(qe),Kt=Math.cos(qe);Q=[Q[0]*Kt-Q[1]*Tt,Q[0]*Tt+Q[1]*Kt]}let Xe=[le?Q[0]:Pn(B,Q[0],this.transform.zoom),le?Q[1]:Pn(B,Q[1],this.transform.zoom),0],ot=new Float32Array(16);return a.J(ot,w,Xe),ot}saveTileTexture(w){let B=this._tileTextures[w.size[0]];B?B.push(w):this._tileTextures[w.size[0]]=[w]}getTileTexture(w){let B=this._tileTextures[w];return B&&B.length>0?B.pop():null}isPatternMissing(w){if(!w)return!1;if(!w.from||!w.to)return!0;let B=this.imageManager.getPattern(w.from.toString()),Q=this.imageManager.getPattern(w.to.toString());return!B||!Q}useProgram(w,B){this.cache=this.cache||{};let Q=w+(B?B.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[Q]||(this.cache[Q]=new fn(this.context,jn[w],B,nc[w],this._showOverdrawInspector,this.style.map.terrain)),this.cache[Q]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){let w=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(w.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new g(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){let{drawingBufferWidth:w,drawingBufferHeight:B}=this.context.gl;return this.width!==w||this.height!==B}}class ks{constructor(w,B){this.points=w,this.planes=B}static fromInvProjectionMatrix(w,B,Q){let ee=Math.pow(2,Q),le=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(Xe=>{let ot=1/(Xe=a.af([],Xe,w))[3]/B*ee;return a.b1(Xe,Xe,[ot,ot,1/Xe[3],ot])}),qe=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(Xe=>{let ot=function(xr,Pr){var ve=Pr[0],be=Pr[1],Re=Pr[2],Be=ve*ve+be*be+Re*Re;return Be>0&&(Be=1/Math.sqrt(Be)),xr[0]=Pr[0]*Be,xr[1]=Pr[1]*Be,xr[2]=Pr[2]*Be,xr}([],function(xr,Pr,ve){var be=Pr[0],Re=Pr[1],Be=Pr[2],tt=ve[0],We=ve[1],it=ve[2];return xr[0]=Re*it-Be*We,xr[1]=Be*tt-be*it,xr[2]=be*We-Re*tt,xr}([],L([],le[Xe[0]],le[Xe[1]]),L([],le[Xe[2]],le[Xe[1]]))),Tt=-((Kt=ot)[0]*(Jt=le[Xe[1]])[0]+Kt[1]*Jt[1]+Kt[2]*Jt[2]);var Kt,Jt;return ot.concat(Tt)});return new ks(le,qe)}}class bc{constructor(w,B){this.min=w,this.max=B,this.center=function(Q,ee,le){return Q[0]=.5*ee[0],Q[1]=.5*ee[1],Q[2]=.5*ee[2],Q}([],function(Q,ee,le){return Q[0]=ee[0]+le[0],Q[1]=ee[1]+le[1],Q[2]=ee[2]+le[2],Q}([],this.min,this.max))}quadrant(w){let B=[w%2==0,w<2],Q=E(this.min),ee=E(this.max);for(let le=0;le=0&&qe++;if(qe===0)return 0;qe!==B.length&&(Q=!1)}if(Q)return 2;for(let ee=0;ee<3;ee++){let le=Number.MAX_VALUE,qe=-Number.MAX_VALUE;for(let Xe=0;Xethis.max[ee]-this.min[ee])return 0}return 1}}class du{constructor(w=0,B=0,Q=0,ee=0){if(isNaN(w)||w<0||isNaN(B)||B<0||isNaN(Q)||Q<0||isNaN(ee)||ee<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=w,this.bottom=B,this.left=Q,this.right=ee}interpolate(w,B,Q){return B.top!=null&&w.top!=null&&(this.top=a.y.number(w.top,B.top,Q)),B.bottom!=null&&w.bottom!=null&&(this.bottom=a.y.number(w.bottom,B.bottom,Q)),B.left!=null&&w.left!=null&&(this.left=a.y.number(w.left,B.left,Q)),B.right!=null&&w.right!=null&&(this.right=a.y.number(w.right,B.right,Q)),this}getCenter(w,B){let Q=a.ac((this.left+w-this.right)/2,0,w),ee=a.ac((this.top+B-this.bottom)/2,0,B);return new a.P(Q,ee)}equals(w){return this.top===w.top&&this.bottom===w.bottom&&this.left===w.left&&this.right===w.right}clone(){return new du(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}let _u=85.051129;class al{constructor(w,B,Q,ee,le){this.tileSize=512,this._renderWorldCopies=le===void 0||!!le,this._minZoom=w||0,this._maxZoom=B||22,this._minPitch=Q==null?0:Q,this._maxPitch=ee==null?60:ee,this.setMaxBounds(),this.width=0,this.height=0,this._center=new a.N(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new du,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={},this.minElevationForCurrentTile=0}clone(){let w=new al(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return w.apply(this),w}apply(w){this.tileSize=w.tileSize,this.latRange=w.latRange,this.lngRange=w.lngRange,this.width=w.width,this.height=w.height,this._center=w._center,this._elevation=w._elevation,this.minElevationForCurrentTile=w.minElevationForCurrentTile,this.zoom=w.zoom,this.angle=w.angle,this._fov=w._fov,this._pitch=w._pitch,this._unmodified=w._unmodified,this._edgeInsets=w._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(w){this._minZoom!==w&&(this._minZoom=w,this.zoom=Math.max(this.zoom,w))}get maxZoom(){return this._maxZoom}set maxZoom(w){this._maxZoom!==w&&(this._maxZoom=w,this.zoom=Math.min(this.zoom,w))}get minPitch(){return this._minPitch}set minPitch(w){this._minPitch!==w&&(this._minPitch=w,this.pitch=Math.max(this.pitch,w))}get maxPitch(){return this._maxPitch}set maxPitch(w){this._maxPitch!==w&&(this._maxPitch=w,this.pitch=Math.min(this.pitch,w))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(w){w===void 0?w=!0:w===null&&(w=!1),this._renderWorldCopies=w}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new a.P(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(w){let B=-a.b3(w,-180,180)*Math.PI/180;this.angle!==B&&(this._unmodified=!1,this.angle=B,this._calcMatrices(),this.rotationMatrix=function(){var Q=new a.A(4);return a.A!=Float32Array&&(Q[1]=0,Q[2]=0),Q[0]=1,Q[3]=1,Q}(),function(Q,ee,le){var qe=ee[0],Xe=ee[1],ot=ee[2],Tt=ee[3],Kt=Math.sin(le),Jt=Math.cos(le);Q[0]=qe*Jt+ot*Kt,Q[1]=Xe*Jt+Tt*Kt,Q[2]=qe*-Kt+ot*Jt,Q[3]=Xe*-Kt+Tt*Jt}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(w){let B=a.ac(w,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==B&&(this._unmodified=!1,this._pitch=B,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(w){w=Math.max(.01,Math.min(60,w)),this._fov!==w&&(this._unmodified=!1,this._fov=w/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(w){let B=Math.min(Math.max(w,this.minZoom),this.maxZoom);this._zoom!==B&&(this._unmodified=!1,this._zoom=B,this.tileZoom=Math.max(0,Math.floor(B)),this.scale=this.zoomScale(B),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(w){w.lat===this._center.lat&&w.lng===this._center.lng||(this._unmodified=!1,this._center=w,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(w){w!==this._elevation&&(this._elevation=w,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(w){this._edgeInsets.equals(w)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,w,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(w){return this._edgeInsets.equals(w)}interpolatePadding(w,B,Q){this._unmodified=!1,this._edgeInsets.interpolate(w,B,Q),this._constrain(),this._calcMatrices()}coveringZoomLevel(w){let B=(w.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/w.tileSize));return Math.max(0,B)}getVisibleUnwrappedCoordinates(w){let B=[new a.b4(0,w)];if(this._renderWorldCopies){let Q=this.pointCoordinate(new a.P(0,0)),ee=this.pointCoordinate(new a.P(this.width,0)),le=this.pointCoordinate(new a.P(this.width,this.height)),qe=this.pointCoordinate(new a.P(0,this.height)),Xe=Math.floor(Math.min(Q.x,ee.x,le.x,qe.x)),ot=Math.floor(Math.max(Q.x,ee.x,le.x,qe.x)),Tt=1;for(let Kt=Xe-Tt;Kt<=ot+Tt;Kt++)Kt!==0&&B.push(new a.b4(Kt,w))}return B}coveringTiles(w){var B,Q;let ee=this.coveringZoomLevel(w),le=ee;if(w.minzoom!==void 0&&eew.maxzoom&&(ee=w.maxzoom);let qe=this.pointCoordinate(this.getCameraPoint()),Xe=a.Z.fromLngLat(this.center),ot=Math.pow(2,ee),Tt=[ot*qe.x,ot*qe.y,0],Kt=[ot*Xe.x,ot*Xe.y,0],Jt=ks.fromInvProjectionMatrix(this.invModelViewProjectionMatrix,this.worldSize,ee),xr=w.minzoom||0;!w.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(xr=ee);let Pr=w.terrain?2/Math.min(this.tileSize,w.tileSize)*this.tileSize:3,ve=We=>({aabb:new bc([We*ot,0,0],[(We+1)*ot,ot,0]),zoom:0,x:0,y:0,wrap:We,fullyVisible:!1}),be=[],Re=[],Be=ee,tt=w.reparseOverscaled?le:ee;if(this._renderWorldCopies)for(let We=1;We<=3;We++)be.push(ve(-We)),be.push(ve(We));for(be.push(ve(0));be.length>0;){let We=be.pop(),it=We.x,Dt=We.y,Ht=We.fullyVisible;if(!Ht){let jr=We.aabb.intersects(Jt);if(jr===0)continue;Ht=jr===2}let rr=w.terrain?Tt:Kt,dr=We.aabb.distanceX(rr),Sr=We.aabb.distanceY(rr),Or=Math.max(Math.abs(dr),Math.abs(Sr));if(We.zoom===Be||Or>Pr+(1<=xr){let jr=Be-We.zoom,ii=Tt[0]-.5-(it<>1),un=We.zoom+1,sn=We.aabb.quadrant(jr);if(w.terrain){let In=new a.S(un,We.wrap,un,ii,Li),Kn=w.terrain.getMinMaxElevation(In),Aa=(B=Kn.minElevation)!==null&&B!==void 0?B:this.elevation,fa=(Q=Kn.maxElevation)!==null&&Q!==void 0?Q:this.elevation;sn=new bc([sn.min[0],sn.min[1],Aa],[sn.max[0],sn.max[1],fa])}be.push({aabb:sn,zoom:un,x:ii,y:Li,wrap:We.wrap,fullyVisible:Ht})}}return Re.sort((We,it)=>We.distanceSq-it.distanceSq).map(We=>We.tileID)}resize(w,B){this.width=w,this.height=B,this.pixelsToGLUnits=[2/w,-2/B],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(w){return Math.pow(2,w)}scaleZoom(w){return Math.log(w)/Math.LN2}project(w){let B=a.ac(w.lat,-85.051129,_u);return new a.P(a.O(w.lng)*this.worldSize,a.Q(B)*this.worldSize)}unproject(w){return new a.Z(w.x/this.worldSize,w.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){return{lngLat:this.pointLocation(this.getCameraPoint()),altitude:Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter+this.elevation}}recalculateZoom(w){let B=this.elevation,Q=Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter,ee=this.pointLocation(this.centerPoint,w),le=w.getElevationForLngLatZoom(ee,this.tileZoom);if(!(this.elevation-le))return;let qe=Q+B-le,Xe=Math.cos(this._pitch)*this.cameraToCenterDistance/qe/a.b5(1,ee.lat),ot=this.scaleZoom(Xe/this.tileSize);this._elevation=le,this._center=ee,this.zoom=ot}setLocationAtPoint(w,B){let Q=this.pointCoordinate(B),ee=this.pointCoordinate(this.centerPoint),le=this.locationCoordinate(w),qe=new a.Z(le.x-(Q.x-ee.x),le.y-(Q.y-ee.y));this.center=this.coordinateLocation(qe),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(w,B){return B?this.coordinatePoint(this.locationCoordinate(w),B.getElevationForLngLatZoom(w,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(w))}pointLocation(w,B){return this.coordinateLocation(this.pointCoordinate(w,B))}locationCoordinate(w){return a.Z.fromLngLat(w)}coordinateLocation(w){return w&&w.toLngLat()}pointCoordinate(w,B){if(B){let xr=B.pointCoordinate(w);if(xr!=null)return xr}let Q=[w.x,w.y,0,1],ee=[w.x,w.y,1,1];a.af(Q,Q,this.pixelMatrixInverse),a.af(ee,ee,this.pixelMatrixInverse);let le=Q[3],qe=ee[3],Xe=Q[1]/le,ot=ee[1]/qe,Tt=Q[2]/le,Kt=ee[2]/qe,Jt=Tt===Kt?0:(0-Tt)/(Kt-Tt);return new a.Z(a.y.number(Q[0]/le,ee[0]/qe,Jt)/this.worldSize,a.y.number(Xe,ot,Jt)/this.worldSize)}coordinatePoint(w,B=0,Q=this.pixelMatrix){let ee=[w.x*this.worldSize,w.y*this.worldSize,B,1];return a.af(ee,ee,Q),new a.P(ee[0]/ee[3],ee[1]/ee[3])}getBounds(){let w=Math.max(0,this.height/2-this.getHorizon());return new ce().extend(this.pointLocation(new a.P(0,w))).extend(this.pointLocation(new a.P(this.width,w))).extend(this.pointLocation(new a.P(this.width,this.height))).extend(this.pointLocation(new a.P(0,this.height)))}getMaxBounds(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new ce([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(w){w?(this.lngRange=[w.getWest(),w.getEast()],this.latRange=[w.getSouth(),w.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-85.051129,_u])}calculateTileMatrix(w){let B=w.canonical,Q=this.worldSize/this.zoomScale(B.z),ee=B.x+Math.pow(2,B.z)*w.wrap,le=a.an(new Float64Array(16));return a.J(le,le,[ee*Q,B.y*Q,0]),a.K(le,le,[Q/a.X,Q/a.X,1]),le}calculatePosMatrix(w,B=!1){let Q=w.key,ee=B?this._alignedPosMatrixCache:this._posMatrixCache;if(ee[Q])return ee[Q];let le=this.calculateTileMatrix(w);return a.L(le,B?this.alignedModelViewProjectionMatrix:this.modelViewProjectionMatrix,le),ee[Q]=new Float32Array(le),ee[Q]}calculateFogMatrix(w){let B=w.key,Q=this._fogMatrixCache;if(Q[B])return Q[B];let ee=this.calculateTileMatrix(w);return a.L(ee,this.fogMatrix,ee),Q[B]=new Float32Array(ee),Q[B]}customLayerMatrix(){return this.mercatorMatrix.slice()}getConstrained(w,B){B=a.ac(+B,this.minZoom,this.maxZoom);let Q={center:new a.N(w.lng,w.lat),zoom:B},ee=this.lngRange;if(!this._renderWorldCopies&&ee===null){let We=179.9999999999;ee=[-We,We]}let le=this.tileSize*this.zoomScale(Q.zoom),qe=0,Xe=le,ot=0,Tt=le,Kt=0,Jt=0,{x:xr,y:Pr}=this.size;if(this.latRange){let We=this.latRange;qe=a.Q(We[1])*le,Xe=a.Q(We[0])*le,Xe-qeXe&&(Be=Xe-We)}if(ee){let We=(ot+Tt)/2,it=ve;this._renderWorldCopies&&(it=a.b3(ve,We-le/2,We+le/2));let Dt=xr/2;it-DtTt&&(Re=Tt-Dt)}if(Re!==void 0||Be!==void 0){let We=new a.P(Re!=null?Re:ve,Be!=null?Be:be);Q.center=this.unproject.call({worldSize:le},We).wrap()}return Q}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let w=this._unmodified,{center:B,zoom:Q}=this.getConstrained(this.center,this.zoom);this.center=B,this.zoom=Q,this._unmodified=w,this._constraining=!1}_calcMatrices(){if(!this.height)return;let w=this.centerOffset,B=this.point.x,Q=this.point.y;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height,this._pixelPerMeter=a.b5(1,this.center.lat)*this.worldSize;let ee=a.an(new Float64Array(16));a.K(ee,ee,[this.width/2,-this.height/2,1]),a.J(ee,ee,[1,-1,0]),this.labelPlaneMatrix=ee,ee=a.an(new Float64Array(16)),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[-1,-1,0]),a.K(ee,ee,[2/this.width,2/this.height,1]),this.glCoordMatrix=ee;let le=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),qe=Math.min(this.elevation,this.minElevationForCurrentTile),Xe=le-qe*this._pixelPerMeter/Math.cos(this._pitch),ot=qe<0?Xe:le,Tt=Math.PI/2+this._pitch,Kt=this._fov*(.5+w.y/this.height),Jt=Math.sin(Kt)*ot/Math.sin(a.ac(Math.PI-Tt-Kt,.01,Math.PI-.01)),xr=this.getHorizon(),Pr=2*Math.atan(xr/this.cameraToCenterDistance)*(.5+w.y/(2*xr)),ve=Math.sin(Pr)*ot/Math.sin(a.ac(Math.PI-Tt-Pr,.01,Math.PI-.01)),be=Math.min(Jt,ve);this.farZ=1.01*(Math.cos(Math.PI/2-this._pitch)*be+ot),this.nearZ=this.height/50,ee=new Float64Array(16),a.b6(ee,this._fov,this.width/this.height,this.nearZ,this.farZ),ee[8]=2*-w.x/this.width,ee[9]=2*w.y/this.height,this.projectionMatrix=a.ae(ee),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[0,0,-this.cameraToCenterDistance]),a.b7(ee,ee,this._pitch),a.ad(ee,ee,this.angle),a.J(ee,ee,[-B,-Q,0]),this.mercatorMatrix=a.K([],ee,[this.worldSize,this.worldSize,this.worldSize]),a.K(ee,ee,[1,1,this._pixelPerMeter]),this.pixelMatrix=a.L(new Float64Array(16),this.labelPlaneMatrix,ee),a.J(ee,ee,[0,0,-this.elevation]),this.modelViewProjectionMatrix=ee,this.invModelViewProjectionMatrix=a.as([],ee),this.fogMatrix=new Float64Array(16),a.b6(this.fogMatrix,this._fov,this.width/this.height,le,this.farZ),this.fogMatrix[8]=2*-w.x/this.width,this.fogMatrix[9]=2*w.y/this.height,a.K(this.fogMatrix,this.fogMatrix,[1,-1,1]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.cameraToCenterDistance]),a.b7(this.fogMatrix,this.fogMatrix,this._pitch),a.ad(this.fogMatrix,this.fogMatrix,this.angle),a.J(this.fogMatrix,this.fogMatrix,[-B,-Q,0]),a.K(this.fogMatrix,this.fogMatrix,[1,1,this._pixelPerMeter]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.elevation]),this.pixelMatrix3D=a.L(new Float64Array(16),this.labelPlaneMatrix,ee);let Re=this.width%2/2,Be=this.height%2/2,tt=Math.cos(this.angle),We=Math.sin(this.angle),it=B-Math.round(B)+tt*Re+We*Be,Dt=Q-Math.round(Q)+tt*Be+We*Re,Ht=new Float64Array(ee);if(a.J(Ht,Ht,[it>.5?it-1:it,Dt>.5?Dt-1:Dt,0]),this.alignedModelViewProjectionMatrix=Ht,ee=a.as(new Float64Array(16),this.pixelMatrix),!ee)throw new Error("failed to invert matrix");this.pixelMatrixInverse=ee,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;let w=this.pointCoordinate(new a.P(0,0)),B=[w.x*this.worldSize,w.y*this.worldSize,0,1];return a.af(B,B,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){let w=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.P(0,w))}getCameraQueryGeometry(w){let B=this.getCameraPoint();if(w.length===1)return[w[0],B];{let Q=B.x,ee=B.y,le=B.x,qe=B.y;for(let Xe of w)Q=Math.min(Q,Xe.x),ee=Math.min(ee,Xe.y),le=Math.max(le,Xe.x),qe=Math.max(qe,Xe.y);return[new a.P(Q,ee),new a.P(le,ee),new a.P(le,qe),new a.P(Q,qe),new a.P(Q,ee)]}}lngLatToCameraDepth(w,B){let Q=this.locationCoordinate(w),ee=[Q.x*this.worldSize,Q.y*this.worldSize,B,1];return a.af(ee,ee,this.modelViewProjectionMatrix),ee[2]/ee[3]}}function nh(ue,w){let B,Q=!1,ee=null,le=null,qe=()=>{ee=null,Q&&(ue.apply(le,B),ee=setTimeout(qe,w),Q=!1)};return(...Xe)=>(Q=!0,le=this,B=Xe,ee||qe(),ee)}class bh{constructor(w){this._getCurrentHash=()=>{let B=window.location.hash.replace("#","");if(this._hashName){let Q;return B.split("&").map(ee=>ee.split("=")).forEach(ee=>{ee[0]===this._hashName&&(Q=ee)}),(Q&&Q[1]||"").split("/")}return B.split("/")},this._onHashChange=()=>{let B=this._getCurrentHash();if(B.length>=3&&!B.some(Q=>isNaN(Q))){let Q=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(B[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+B[2],+B[1]],zoom:+B[0],bearing:Q,pitch:+(B[4]||0)}),!0}return!1},this._updateHashUnthrottled=()=>{let B=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,B)},this._removeHash=()=>{let B=this._getCurrentHash();if(B.length===0)return;let Q=B.join("/"),ee=Q;ee.split("&").length>0&&(ee=ee.split("&")[0]),this._hashName&&(ee=`${this._hashName}=${Q}`);let le=window.location.hash.replace(ee,"");le.startsWith("#&")?le=le.slice(0,1)+le.slice(2):le==="#"&&(le="");let qe=window.location.href.replace(/(#.+)?$/,le);qe=qe.replace("&&","&"),window.history.replaceState(window.history.state,null,qe)},this._updateHash=nh(this._updateHashUnthrottled,300),this._hashName=w&&encodeURIComponent(w)}addTo(w){return this._map=w,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(w){let B=this._map.getCenter(),Q=Math.round(100*this._map.getZoom())/100,ee=Math.ceil((Q*Math.LN2+Math.log(512/360/.5))/Math.LN10),le=Math.pow(10,ee),qe=Math.round(B.lng*le)/le,Xe=Math.round(B.lat*le)/le,ot=this._map.getBearing(),Tt=this._map.getPitch(),Kt="";if(Kt+=w?`/${qe}/${Xe}/${Q}`:`${Q}/${Xe}/${qe}`,(ot||Tt)&&(Kt+="/"+Math.round(10*ot)/10),Tt&&(Kt+=`/${Math.round(Tt)}`),this._hashName){let Jt=this._hashName,xr=!1,Pr=window.location.hash.slice(1).split("&").map(ve=>{let be=ve.split("=")[0];return be===Jt?(xr=!0,`${be}=${Kt}`):ve}).filter(ve=>ve);return xr||Pr.push(`${Jt}=${Kt}`),`#${Pr.join("&")}`}return`#${Kt}`}}let zu={linearity:.3,easing:a.b8(0,0,.3,1)},Fc=a.e({deceleration:2500,maxSpeed:1400},zu),wc=a.e({deceleration:20,maxSpeed:1400},zu),bd=a.e({deceleration:1e3,maxSpeed:360},zu),_f=a.e({deceleration:1e3,maxSpeed:90},zu);class Lf{constructor(w){this._map=w,this.clear()}clear(){this._inertiaBuffer=[]}record(w){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:u.now(),settings:w})}_drainInertiaBuffer(){let w=this._inertiaBuffer,B=u.now();for(;w.length>0&&B-w[0].time>160;)w.shift()}_onMoveEnd(w){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;let B={zoom:0,bearing:0,pitch:0,pan:new a.P(0,0),pinchAround:void 0,around:void 0};for(let{settings:le}of this._inertiaBuffer)B.zoom+=le.zoomDelta||0,B.bearing+=le.bearingDelta||0,B.pitch+=le.pitchDelta||0,le.panDelta&&B.pan._add(le.panDelta),le.around&&(B.around=le.around),le.pinchAround&&(B.pinchAround=le.pinchAround);let Q=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,ee={};if(B.pan.mag()){let le=xf(B.pan.mag(),Q,a.e({},Fc,w||{}));ee.offset=B.pan.mult(le.amount/B.pan.mag()),ee.center=this._map.transform.center,Ou(ee,le)}if(B.zoom){let le=xf(B.zoom,Q,wc);ee.zoom=this._map.transform.zoom+le.amount,Ou(ee,le)}if(B.bearing){let le=xf(B.bearing,Q,bd);ee.bearing=this._map.transform.bearing+a.ac(le.amount,-179,179),Ou(ee,le)}if(B.pitch){let le=xf(B.pitch,Q,_f);ee.pitch=this._map.transform.pitch+le.amount,Ou(ee,le)}if(ee.zoom||ee.bearing){let le=B.pinchAround===void 0?B.around:B.pinchAround;ee.around=le?this._map.unproject(le):this._map.getCenter()}return this.clear(),a.e(ee,{noMoveStart:!0})}}function Ou(ue,w){(!ue.duration||ue.durationB.unproject(ot)),Xe=le.reduce((ot,Tt,Kt,Jt)=>ot.add(Tt.div(Jt.length)),new a.P(0,0));super(w,{points:le,point:Xe,lngLats:qe,lngLat:B.unproject(Xe),originalEvent:Q}),this._defaultPrevented=!1}}class Vh extends a.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(w,B,Q){super(w,{originalEvent:Q}),this._defaultPrevented=!1}}class Pf{constructor(w,B){this._map=w,this._clickTolerance=B.clickTolerance}reset(){delete this._mousedownPos}wheel(w){return this._firePreventable(new Vh(w.type,this._map,w))}mousedown(w,B){return this._mousedownPos=B,this._firePreventable(new jl(w.type,this._map,w))}mouseup(w){this._map.fire(new jl(w.type,this._map,w))}click(w,B){this._mousedownPos&&this._mousedownPos.dist(B)>=this._clickTolerance||this._map.fire(new jl(w.type,this._map,w))}dblclick(w){return this._firePreventable(new jl(w.type,this._map,w))}mouseover(w){this._map.fire(new jl(w.type,this._map,w))}mouseout(w){this._map.fire(new jl(w.type,this._map,w))}touchstart(w){return this._firePreventable(new lf(w.type,this._map,w))}touchmove(w){this._map.fire(new lf(w.type,this._map,w))}touchend(w){this._map.fire(new lf(w.type,this._map,w))}touchcancel(w){this._map.fire(new lf(w.type,this._map,w))}_firePreventable(w){if(this._map.fire(w),w.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Ls{constructor(w){this._map=w}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(w){this._map.fire(new jl(w.type,this._map,w))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new jl("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(w){this._delayContextMenu?this._contextMenuEvent=w:this._ignoreContextMenu||this._map.fire(new jl(w.type,this._map,w)),this._map.listens("contextmenu")&&w.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class vu{constructor(w){this._map=w}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(w){return this.transform.pointLocation(a.P.convert(w),this._map.terrain)}}class Cu{constructor(w,B){this._map=w,this._tr=new vu(w),this._el=w.getCanvasContainer(),this._container=w.getContainer(),this._clickTolerance=B.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(w,B){this.isEnabled()&&w.shiftKey&&w.button===0&&(c.disableDrag(),this._startPos=this._lastPos=B,this._active=!0)}mousemoveWindow(w,B){if(!this._active)return;let Q=B;if(this._lastPos.equals(Q)||!this._box&&Q.dist(this._startPos)le.fitScreenCoordinates(Q,ee,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",w)}keydown(w){this._active&&w.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",w))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(c.remove(this._box),this._box=null),c.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(w,B){return this._map.fire(new a.k(w,{originalEvent:B}))}}function Wf(ue,w){if(ue.length!==w.length)throw new Error(`The number of touches and points are not equal - touches ${ue.length}, points ${w.length}`);let B={};for(let Q=0;Qthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=w.timeStamp),Q.length===this.numTouches&&(this.centroid=function(ee){let le=new a.P(0,0);for(let qe of ee)le._add(qe);return le.div(ee.length)}(B),this.touches=Wf(Q,B)))}touchmove(w,B,Q){if(this.aborted||!this.centroid)return;let ee=Wf(Q,B);for(let le in this.touches){let qe=ee[le];(!qe||qe.dist(this.touches[le])>30)&&(this.aborted=!0)}}touchend(w,B,Q){if((!this.centroid||w.timeStamp-this.startTime>500)&&(this.aborted=!0),Q.length===0){let ee=!this.aborted&&this.centroid;if(this.reset(),ee)return ee}}}class bf{constructor(w){this.singleTap=new Vs(w),this.numTaps=w.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(w,B,Q){this.singleTap.touchstart(w,B,Q)}touchmove(w,B,Q){this.singleTap.touchmove(w,B,Q)}touchend(w,B,Q){let ee=this.singleTap.touchend(w,B,Q);if(ee){let le=w.timeStamp-this.lastTime<500,qe=!this.lastTap||this.lastTap.dist(ee)<30;if(le&&qe||this.reset(),this.count++,this.lastTime=w.timeStamp,this.lastTap=ee,this.count===this.numTaps)return this.reset(),ee}}}class zc{constructor(w){this._tr=new vu(w),this._zoomIn=new bf({numTouches:1,numTaps:2}),this._zoomOut=new bf({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(w,B,Q){this._zoomIn.touchstart(w,B,Q),this._zoomOut.touchstart(w,B,Q)}touchmove(w,B,Q){this._zoomIn.touchmove(w,B,Q),this._zoomOut.touchmove(w,B,Q)}touchend(w,B,Q){let ee=this._zoomIn.touchend(w,B,Q),le=this._zoomOut.touchend(w,B,Q),qe=this._tr;return ee?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:Xe=>Xe.easeTo({duration:300,zoom:qe.zoom+1,around:qe.unproject(ee)},{originalEvent:w})}):le?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:Xe=>Xe.easeTo({duration:300,zoom:qe.zoom-1,around:qe.unproject(le)},{originalEvent:w})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Wu{constructor(w){this._enabled=!!w.enable,this._moveStateManager=w.moveStateManager,this._clickTolerance=w.clickTolerance||1,this._moveFunction=w.move,this._activateOnStart=!!w.activateOnStart,w.assignEvents(this),this.reset()}reset(w){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(w)}_move(...w){let B=this._moveFunction(...w);if(B.bearingDelta||B.pitchDelta||B.around||B.panDelta)return this._active=!0,B}dragStart(w,B){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(w)&&(this._moveStateManager.startMove(w),this._lastPoint=B.length?B[0]:B,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(w,B){if(!this.isEnabled())return;let Q=this._lastPoint;if(!Q)return;if(w.preventDefault(),!this._moveStateManager.isValidMoveEvent(w))return void this.reset(w);let ee=B.length?B[0]:B;return!this._moved&&ee.dist(Q){ue.mousedown=ue.dragStart,ue.mousemoveWindow=ue.dragMove,ue.mouseup=ue.dragEnd,ue.contextmenu=w=>{w.preventDefault()}},Wl=({enable:ue,clickTolerance:w,bearingDegreesPerPixelMoved:B=.8})=>{let Q=new Xu({checkCorrectEvent:ee=>c.mouseButton(ee)===0&&ee.ctrlKey||c.mouseButton(ee)===2});return new Wu({clickTolerance:w,move:(ee,le)=>({bearingDelta:(le.x-ee.x)*B}),moveStateManager:Q,enable:ue,assignEvents:Xf})},ah=({enable:ue,clickTolerance:w,pitchDegreesPerPixelMoved:B=-.5})=>{let Q=new Xu({checkCorrectEvent:ee=>c.mouseButton(ee)===0&&ee.ctrlKey||c.mouseButton(ee)===2});return new Wu({clickTolerance:w,move:(ee,le)=>({pitchDelta:(le.y-ee.y)*B}),moveStateManager:Q,enable:ue,assignEvents:Xf})};class Zu{constructor(w,B){this._clickTolerance=w.clickTolerance||1,this._map=B,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new a.P(0,0)}_shouldBePrevented(w){return w<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(w,B,Q){return this._calculateTransform(w,B,Q)}touchmove(w,B,Q){if(this._active){if(!this._shouldBePrevented(Q.length))return w.preventDefault(),this._calculateTransform(w,B,Q);this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",w)}}touchend(w,B,Q){this._calculateTransform(w,B,Q),this._active&&this._shouldBePrevented(Q.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(w,B,Q){Q.length>0&&(this._active=!0);let ee=Wf(Q,B),le=new a.P(0,0),qe=new a.P(0,0),Xe=0;for(let Tt in ee){let Kt=ee[Tt],Jt=this._touches[Tt];Jt&&(le._add(Kt),qe._add(Kt.sub(Jt)),Xe++,ee[Tt]=Kt)}if(this._touches=ee,this._shouldBePrevented(Xe)||!qe.mag())return;let ot=qe.div(Xe);return this._sum._add(ot),this._sum.mag()Math.abs(ue.x)}class Bc extends Oc{constructor(w){super(),this._currentTouchCount=0,this._map=w}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(w,B,Q){super.touchstart(w,B,Q),this._currentTouchCount=Q.length}_start(w){this._lastPoints=w,fc(w[0].sub(w[1]))&&(this._valid=!1)}_move(w,B,Q){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;let ee=w[0].sub(this._lastPoints[0]),le=w[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(ee,le,Q.timeStamp),this._valid?(this._lastPoints=w,this._active=!0,{pitchDelta:(ee.y+le.y)/2*-.5}):void 0}gestureBeginsVertically(w,B,Q){if(this._valid!==void 0)return this._valid;let ee=w.mag()>=2,le=B.mag()>=2;if(!ee&&!le)return;if(!ee||!le)return this._firstMove===void 0&&(this._firstMove=Q),Q-this._firstMove<100&&void 0;let qe=w.y>0==B.y>0;return fc(w)&&fc(B)&&qe}}let At={panStep:100,bearingStep:15,pitchStep:10};class Xt{constructor(w){this._tr=new vu(w);let B=At;this._panStep=B.panStep,this._bearingStep=B.bearingStep,this._pitchStep=B.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(w){if(w.altKey||w.ctrlKey||w.metaKey)return;let B=0,Q=0,ee=0,le=0,qe=0;switch(w.keyCode){case 61:case 107:case 171:case 187:B=1;break;case 189:case 109:case 173:B=-1;break;case 37:w.shiftKey?Q=-1:(w.preventDefault(),le=-1);break;case 39:w.shiftKey?Q=1:(w.preventDefault(),le=1);break;case 38:w.shiftKey?ee=1:(w.preventDefault(),qe=-1);break;case 40:w.shiftKey?ee=-1:(w.preventDefault(),qe=1);break;default:return}return this._rotationDisabled&&(Q=0,ee=0),{cameraAnimation:Xe=>{let ot=this._tr;Xe.easeTo({duration:300,easeId:"keyboardHandler",easing:kr,zoom:B?Math.round(ot.zoom)+B*(w.shiftKey?2:1):ot.zoom,bearing:ot.bearing+Q*this._bearingStep,pitch:ot.pitch+ee*this._pitchStep,offset:[-le*this._panStep,-qe*this._panStep],center:ot.center},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function kr(ue){return ue*(2-ue)}let Ar=4.000244140625;class Kr{constructor(w,B){this._onTimeout=Q=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(Q)},this._map=w,this._tr=new vu(w),this._triggerRenderFrame=B,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(w){this._defaultZoomRate=w}setWheelZoomRate(w){this._wheelZoomRate=w}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(w){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!w&&w.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(w){return!!this._map.cooperativeGestures.isEnabled()&&!(w.ctrlKey||this._map.cooperativeGestures.isBypassed(w))}wheel(w){if(!this.isEnabled())return;if(this._shouldBePrevented(w))return void this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",w);let B=w.deltaMode===WheelEvent.DOM_DELTA_LINE?40*w.deltaY:w.deltaY,Q=u.now(),ee=Q-(this._lastWheelEventTime||0);this._lastWheelEventTime=Q,B!==0&&B%Ar==0?this._type="wheel":B!==0&&Math.abs(B)<4?this._type="trackpad":ee>400?(this._type=null,this._lastValue=B,this._timeout=setTimeout(this._onTimeout,40,w)):this._type||(this._type=Math.abs(ee*B)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,B+=this._lastValue)),w.shiftKey&&B&&(B/=4),this._type&&(this._lastWheelEvent=w,this._delta-=B,this._active||this._start(w)),w.preventDefault()}_start(w){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let B=c.mousePos(this._map.getCanvas(),w),Q=this._tr;this._around=B.y>Q.transform.height/2-Q.transform.getHorizon()?a.N.convert(this._aroundCenter?Q.center:Q.unproject(B)):a.N.convert(Q.center),this._aroundPoint=Q.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;let w=this._tr.transform;if(this._delta!==0){let ot=this._type==="wheel"&&Math.abs(this._delta)>Ar?this._wheelZoomRate:this._defaultZoomRate,Tt=2/(1+Math.exp(-Math.abs(this._delta*ot)));this._delta<0&&Tt!==0&&(Tt=1/Tt);let Kt=typeof this._targetZoom=="number"?w.zoomScale(this._targetZoom):w.scale;this._targetZoom=Math.min(w.maxZoom,Math.max(w.minZoom,w.scaleZoom(Kt*Tt))),this._type==="wheel"&&(this._startZoom=w.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let B=typeof this._targetZoom=="number"?this._targetZoom:w.zoom,Q=this._startZoom,ee=this._easing,le,qe=!1,Xe=u.now()-this._lastWheelEventTime;if(this._type==="wheel"&&Q&&ee&&Xe){let ot=Math.min(Xe/200,1),Tt=ee(ot);le=a.y.number(Q,B,Tt),ot<1?this._frameId||(this._frameId=!0):qe=!0}else le=B,qe=!0;return this._active=!0,qe&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!qe,zoomDelta:le-w.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(w){let B=a.b9;if(this._prevEase){let Q=this._prevEase,ee=(u.now()-Q.start)/Q.duration,le=Q.easing(ee+.01)-Q.easing(ee),qe=.27/Math.sqrt(le*le+1e-4)*.01,Xe=Math.sqrt(.0729-qe*qe);B=a.b8(qe,Xe,.25,1)}return this._prevEase={start:u.now(),duration:w,easing:B},B}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class Ei{constructor(w,B){this._clickZoom=w,this._tapZoom=B}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Wi{constructor(w){this._tr=new vu(w),this.reset()}reset(){this._active=!1}dblclick(w,B){return w.preventDefault(),{cameraAnimation:Q=>{Q.easeTo({duration:300,zoom:this._tr.zoom+(w.shiftKey?-1:1),around:this._tr.unproject(B)},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class hn{constructor(){this._tap=new bf({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(w,B,Q){if(!this._swipePoint)if(this._tapTime){let ee=B[0],le=w.timeStamp-this._tapTime<500,qe=this._tapPoint.dist(ee)<30;le&&qe?Q.length>0&&(this._swipePoint=ee,this._swipeTouch=Q[0].identifier):this.reset()}else this._tap.touchstart(w,B,Q)}touchmove(w,B,Q){if(this._tapTime){if(this._swipePoint){if(Q[0].identifier!==this._swipeTouch)return;let ee=B[0],le=ee.y-this._swipePoint.y;return this._swipePoint=ee,w.preventDefault(),this._active=!0,{zoomDelta:le/128}}}else this._tap.touchmove(w,B,Q)}touchend(w,B,Q){if(this._tapTime)this._swipePoint&&Q.length===0&&this.reset();else{let ee=this._tap.touchend(w,B,Q);ee&&(this._tapTime=w.timeStamp,this._tapPoint=ee)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Tn{constructor(w,B,Q){this._el=w,this._mousePan=B,this._touchPan=Q}enable(w){this._inertiaOptions=w||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Bn{constructor(w,B,Q){this._pitchWithRotate=w.pitchWithRotate,this._mouseRotate=B,this._mousePitch=Q}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Zi{constructor(w,B,Q,ee){this._el=w,this._touchZoom=B,this._touchRotate=Q,this._tapDragZoom=ee,this._rotationDisabled=!1,this._enabled=!0}enable(w){this._touchZoom.enable(w),this._rotationDisabled||this._touchRotate.enable(w),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}class $i{constructor(w,B){this._bypassKey=navigator.userAgent.indexOf("Mac")!==-1?"metaKey":"ctrlKey",this._map=w,this._options=B,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let w=this._map.getCanvasContainer();w.classList.add("maplibregl-cooperative-gestures"),this._container=c.create("div","maplibregl-cooperative-gesture-screen",w);let B=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(B=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let Q=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),ee=document.createElement("div");ee.className="maplibregl-desktop-message",ee.textContent=B,this._container.appendChild(ee);let le=document.createElement("div");le.className="maplibregl-mobile-message",le.textContent=Q,this._container.appendChild(le),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(c.remove(this._container),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(w){return w[this._bypassKey]}notifyGestureBlocked(w,B){this._enabled&&(this._map.fire(new a.k("cooperativegestureprevented",{gestureType:w,originalEvent:B})),this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}}let an=ue=>ue.zoom||ue.drag||ue.pitch||ue.rotate;class Di extends a.k{}function $n(ue){return ue.panDelta&&ue.panDelta.mag()||ue.zoomDelta||ue.bearingDelta||ue.pitchDelta}class ka{constructor(w,B){this.handleWindowEvent=ee=>{this.handleEvent(ee,`${ee.type}Window`)},this.handleEvent=(ee,le)=>{if(ee.type==="blur")return void this.stop(!0);this._updatingCamera=!0;let qe=ee.type==="renderFrame"?void 0:ee,Xe={needsRenderFrame:!1},ot={},Tt={},Kt=ee.touches,Jt=Kt?this._getMapTouches(Kt):void 0,xr=Jt?c.touchPos(this._map.getCanvas(),Jt):c.mousePos(this._map.getCanvas(),ee);for(let{handlerName:be,handler:Re,allowed:Be}of this._handlers){if(!Re.isEnabled())continue;let tt;this._blockedByActive(Tt,Be,be)?Re.reset():Re[le||ee.type]&&(tt=Re[le||ee.type](ee,xr,Jt),this.mergeHandlerResult(Xe,ot,tt,be,qe),tt&&tt.needsRenderFrame&&this._triggerRenderFrame()),(tt||Re.isActive())&&(Tt[be]=Re)}let Pr={};for(let be in this._previousActiveHandlers)Tt[be]||(Pr[be]=qe);this._previousActiveHandlers=Tt,(Object.keys(Pr).length||$n(Xe))&&(this._changes.push([Xe,ot,Pr]),this._triggerRenderFrame()),(Object.keys(Tt).length||$n(Xe))&&this._map._stop(!0),this._updatingCamera=!1;let{cameraAnimation:ve}=Xe;ve&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],ve(this._map))},this._map=w,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Lf(w),this._bearingSnap=B.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(B);let Q=this._el;this._listeners=[[Q,"touchstart",{passive:!0}],[Q,"touchmove",{passive:!1}],[Q,"touchend",void 0],[Q,"touchcancel",void 0],[Q,"mousedown",void 0],[Q,"mousemove",void 0],[Q,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[Q,"mouseover",void 0],[Q,"mouseout",void 0],[Q,"dblclick",void 0],[Q,"click",void 0],[Q,"keydown",{capture:!1}],[Q,"keyup",void 0],[Q,"wheel",{passive:!1}],[Q,"contextmenu",void 0],[window,"blur",void 0]];for(let[ee,le,qe]of this._listeners)c.addEventListener(ee,le,ee===document?this.handleWindowEvent:this.handleEvent,qe)}destroy(){for(let[w,B,Q]of this._listeners)c.removeEventListener(w,B,w===document?this.handleWindowEvent:this.handleEvent,Q)}_addDefaultHandlers(w){let B=this._map,Q=B.getCanvasContainer();this._add("mapEvent",new Pf(B,w));let ee=B.boxZoom=new Cu(B,w);this._add("boxZoom",ee),w.interactive&&w.boxZoom&&ee.enable();let le=B.cooperativeGestures=new $i(B,w.cooperativeGestures);this._add("cooperativeGestures",le),w.cooperativeGestures&&le.enable();let qe=new zc(B),Xe=new Wi(B);B.doubleClickZoom=new Ei(Xe,qe),this._add("tapZoom",qe),this._add("clickZoom",Xe),w.interactive&&w.doubleClickZoom&&B.doubleClickZoom.enable();let ot=new hn;this._add("tapDragZoom",ot);let Tt=B.touchPitch=new Bc(B);this._add("touchPitch",Tt),w.interactive&&w.touchPitch&&B.touchPitch.enable(w.touchPitch);let Kt=Wl(w),Jt=ah(w);B.dragRotate=new Bn(w,Kt,Jt),this._add("mouseRotate",Kt,["mousePitch"]),this._add("mousePitch",Jt,["mouseRotate"]),w.interactive&&w.dragRotate&&B.dragRotate.enable();let xr=(({enable:tt,clickTolerance:We})=>{let it=new Xu({checkCorrectEvent:Dt=>c.mouseButton(Dt)===0&&!Dt.ctrlKey});return new Wu({clickTolerance:We,move:(Dt,Ht)=>({around:Ht,panDelta:Ht.sub(Dt)}),activateOnStart:!0,moveStateManager:it,enable:tt,assignEvents:Xf})})(w),Pr=new Zu(w,B);B.dragPan=new Tn(Q,xr,Pr),this._add("mousePan",xr),this._add("touchPan",Pr,["touchZoom","touchRotate"]),w.interactive&&w.dragPan&&B.dragPan.enable(w.dragPan);let ve=new cf,be=new pu;B.touchZoomRotate=new Zi(Q,be,ve,ot),this._add("touchRotate",ve,["touchPan","touchZoom"]),this._add("touchZoom",be,["touchPan","touchRotate"]),w.interactive&&w.touchZoomRotate&&B.touchZoomRotate.enable(w.touchZoomRotate);let Re=B.scrollZoom=new Kr(B,()=>this._triggerRenderFrame());this._add("scrollZoom",Re,["mousePan"]),w.interactive&&w.scrollZoom&&B.scrollZoom.enable(w.scrollZoom);let Be=B.keyboard=new Xt(B);this._add("keyboard",Be),w.interactive&&w.keyboard&&B.keyboard.enable(),this._add("blockableMapEvent",new Ls(B))}_add(w,B,Q){this._handlers.push({handlerName:w,handler:B,allowed:Q}),this._handlersById[w]=B}stop(w){if(!this._updatingCamera){for(let{handler:B}of this._handlers)B.reset();this._inertia.clear(),this._fireEvents({},{},w),this._changes=[]}}isActive(){for(let{handler:w}of this._handlers)if(w.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!an(this._eventsInProgress)||this.isZooming()}_blockedByActive(w,B,Q){for(let ee in w)if(ee!==Q&&(!B||B.indexOf(ee)<0))return!0;return!1}_getMapTouches(w){let B=[];for(let Q of w)this._el.contains(Q.target)&&B.push(Q);return B}mergeHandlerResult(w,B,Q,ee,le){if(!Q)return;a.e(w,Q);let qe={handlerName:ee,originalEvent:Q.originalEvent||le};Q.zoomDelta!==void 0&&(B.zoom=qe),Q.panDelta!==void 0&&(B.drag=qe),Q.pitchDelta!==void 0&&(B.pitch=qe),Q.bearingDelta!==void 0&&(B.rotate=qe)}_applyChanges(){let w={},B={},Q={};for(let[ee,le,qe]of this._changes)ee.panDelta&&(w.panDelta=(w.panDelta||new a.P(0,0))._add(ee.panDelta)),ee.zoomDelta&&(w.zoomDelta=(w.zoomDelta||0)+ee.zoomDelta),ee.bearingDelta&&(w.bearingDelta=(w.bearingDelta||0)+ee.bearingDelta),ee.pitchDelta&&(w.pitchDelta=(w.pitchDelta||0)+ee.pitchDelta),ee.around!==void 0&&(w.around=ee.around),ee.pinchAround!==void 0&&(w.pinchAround=ee.pinchAround),ee.noInertia&&(w.noInertia=ee.noInertia),a.e(B,le),a.e(Q,qe);this._updateMapTransform(w,B,Q),this._changes=[]}_updateMapTransform(w,B,Q){let ee=this._map,le=ee._getTransformForUpdate(),qe=ee.terrain;if(!($n(w)||qe&&this._terrainMovement))return this._fireEvents(B,Q,!0);let{panDelta:Xe,zoomDelta:ot,bearingDelta:Tt,pitchDelta:Kt,around:Jt,pinchAround:xr}=w;xr!==void 0&&(Jt=xr),ee._stop(!0),Jt=Jt||ee.transform.centerPoint;let Pr=le.pointLocation(Xe?Jt.sub(Xe):Jt);Tt&&(le.bearing+=Tt),Kt&&(le.pitch+=Kt),ot&&(le.zoom+=ot),qe?this._terrainMovement||!B.drag&&!B.zoom?B.drag&&this._terrainMovement?le.center=le.pointLocation(le.centerPoint.sub(Xe)):le.setLocationAtPoint(Pr,Jt):(this._terrainMovement=!0,this._map._elevationFreeze=!0,le.setLocationAtPoint(Pr,Jt)):le.setLocationAtPoint(Pr,Jt),ee._applyUpdatedTransform(le),this._map._update(),w.noInertia||this._inertia.record(w),this._fireEvents(B,Q,!0)}_fireEvents(w,B,Q){let ee=an(this._eventsInProgress),le=an(w),qe={};for(let Jt in w){let{originalEvent:xr}=w[Jt];this._eventsInProgress[Jt]||(qe[`${Jt}start`]=xr),this._eventsInProgress[Jt]=w[Jt]}!ee&&le&&this._fireEvent("movestart",le.originalEvent);for(let Jt in qe)this._fireEvent(Jt,qe[Jt]);le&&this._fireEvent("move",le.originalEvent);for(let Jt in w){let{originalEvent:xr}=w[Jt];this._fireEvent(Jt,xr)}let Xe={},ot;for(let Jt in this._eventsInProgress){let{handlerName:xr,originalEvent:Pr}=this._eventsInProgress[Jt];this._handlersById[xr].isActive()||(delete this._eventsInProgress[Jt],ot=B[xr]||Pr,Xe[`${Jt}end`]=ot)}for(let Jt in Xe)this._fireEvent(Jt,Xe[Jt]);let Tt=an(this._eventsInProgress),Kt=(ee||le)&&!Tt;if(Kt&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;let Jt=this._map._getTransformForUpdate();Jt.recalculateZoom(this._map.terrain),this._map._applyUpdatedTransform(Jt)}if(Q&&Kt){this._updatingCamera=!0;let Jt=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),xr=Pr=>Pr!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new Di("renderFrame",{timeStamp:w})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}class Ra extends a.E{constructor(w,B){super(),this._renderFrameCallback=()=>{let Q=Math.min((u.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(Q)),Q<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=w,this._bearingSnap=B.bearingSnap,this.on("moveend",()=>{delete this._requestedCameraState})}getCenter(){return new a.N(this.transform.center.lng,this.transform.center.lat)}setCenter(w,B){return this.jumpTo({center:w},B)}panBy(w,B,Q){return w=a.P.convert(w).mult(-1),this.panTo(this.transform.center,a.e({offset:w},B),Q)}panTo(w,B,Q){return this.easeTo(a.e({center:w},B),Q)}getZoom(){return this.transform.zoom}setZoom(w,B){return this.jumpTo({zoom:w},B),this}zoomTo(w,B,Q){return this.easeTo(a.e({zoom:w},B),Q)}zoomIn(w,B){return this.zoomTo(this.getZoom()+1,w,B),this}zoomOut(w,B){return this.zoomTo(this.getZoom()-1,w,B),this}getBearing(){return this.transform.bearing}setBearing(w,B){return this.jumpTo({bearing:w},B),this}getPadding(){return this.transform.padding}setPadding(w,B){return this.jumpTo({padding:w},B),this}rotateTo(w,B,Q){return this.easeTo(a.e({bearing:w},B),Q)}resetNorth(w,B){return this.rotateTo(0,a.e({duration:1e3},w),B),this}resetNorthPitch(w,B){return this.easeTo(a.e({bearing:0,pitch:0,duration:1e3},w),B),this}snapToNorth(w,B){return Math.abs(this.getBearing()){if(this._zooming&&(ee.zoom=a.y.number(le,Re,rr)),this._rotating&&(ee.bearing=a.y.number(qe,Tt,rr)),this._pitching&&(ee.pitch=a.y.number(Xe,Kt,rr)),this._padding&&(ee.interpolatePadding(ot,Jt,rr),Pr=ee.centerPoint.add(xr)),this.terrain&&!w.freezeElevation&&this._updateElevation(rr),it)ee.setLocationAtPoint(it,Dt);else{let dr=ee.zoomScale(ee.zoom-le),Sr=Re>le?Math.min(2,We):Math.max(.5,We),Or=Math.pow(Sr,1-rr),jr=ee.unproject(Be.add(tt.mult(rr*Or)).mult(dr));ee.setLocationAtPoint(ee.renderWorldCopies?jr.wrap():jr,Pr)}this._applyUpdatedTransform(ee),this._fireMoveEvents(B)},rr=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(B,rr)},w),this}_prepareEase(w,B,Q={}){this._moving=!0,B||Q.moving||this.fire(new a.k("movestart",w)),this._zooming&&!Q.zooming&&this.fire(new a.k("zoomstart",w)),this._rotating&&!Q.rotating&&this.fire(new a.k("rotatestart",w)),this._pitching&&!Q.pitching&&this.fire(new a.k("pitchstart",w))}_prepareElevation(w){this._elevationCenter=w,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(w,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(w){this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);let B=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(w<1&&B!==this._elevationTarget){let Q=this._elevationTarget-this._elevationStart;this._elevationStart+=w*(Q-(B-(Q*w+this._elevationStart))/(1-w)),this._elevationTarget=B}this.transform.elevation=a.y.number(this._elevationStart,this._elevationTarget,w)}_finalizeElevation(){this._elevationFreeze=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate||this.terrain?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_elevateCameraIfInsideTerrain(w){let B=w.getCameraPosition(),Q=this.terrain.getElevationForLngLatZoom(B.lngLat,w.zoom);if(B.altitudethis._elevateCameraIfInsideTerrain(ee)),this.transformCameraUpdate&&B.push(ee=>this.transformCameraUpdate(ee)),!B.length)return;let Q=w.clone();for(let ee of B){let le=Q.clone(),{center:qe,zoom:Xe,pitch:ot,bearing:Tt,elevation:Kt}=ee(le);qe&&(le.center=qe),Xe!==void 0&&(le.zoom=Xe),ot!==void 0&&(le.pitch=ot),Tt!==void 0&&(le.bearing=Tt),Kt!==void 0&&(le.elevation=Kt),Q.apply(le)}this.transform.apply(Q)}_fireMoveEvents(w){this.fire(new a.k("move",w)),this._zooming&&this.fire(new a.k("zoom",w)),this._rotating&&this.fire(new a.k("rotate",w)),this._pitching&&this.fire(new a.k("pitch",w))}_afterEase(w,B){if(this._easeId&&B&&this._easeId===B)return;delete this._easeId;let Q=this._zooming,ee=this._rotating,le=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Q&&this.fire(new a.k("zoomend",w)),ee&&this.fire(new a.k("rotateend",w)),le&&this.fire(new a.k("pitchend",w)),this.fire(new a.k("moveend",w))}flyTo(w,B){var Q;if(!w.essential&&u.prefersReducedMotion){let In=a.M(w,["center","zoom","bearing","pitch","around"]);return this.jumpTo(In,B)}this.stop(),w=a.e({offset:[0,0],speed:1.2,curve:1.42,easing:a.b9},w);let ee=this._getTransformForUpdate(),le=ee.zoom,qe=ee.bearing,Xe=ee.pitch,ot=ee.padding,Tt="bearing"in w?this._normalizeBearing(w.bearing,qe):qe,Kt="pitch"in w?+w.pitch:Xe,Jt="padding"in w?w.padding:ee.padding,xr=a.P.convert(w.offset),Pr=ee.centerPoint.add(xr),ve=ee.pointLocation(Pr),{center:be,zoom:Re}=ee.getConstrained(a.N.convert(w.center||ve),(Q=w.zoom)!==null&&Q!==void 0?Q:le);this._normalizeCenter(be,ee);let Be=ee.zoomScale(Re-le),tt=ee.project(ve),We=ee.project(be).sub(tt),it=w.curve,Dt=Math.max(ee.width,ee.height),Ht=Dt/Be,rr=We.mag();if("minZoom"in w){let In=a.ac(Math.min(w.minZoom,le,Re),ee.minZoom,ee.maxZoom),Kn=Dt/ee.zoomScale(In-le);it=Math.sqrt(Kn/rr*2)}let dr=it*it;function Sr(In){let Kn=(Ht*Ht-Dt*Dt+(In?-1:1)*dr*dr*rr*rr)/(2*(In?Ht:Dt)*dr*rr);return Math.log(Math.sqrt(Kn*Kn+1)-Kn)}function Or(In){return(Math.exp(In)-Math.exp(-In))/2}function jr(In){return(Math.exp(In)+Math.exp(-In))/2}let ii=Sr(!1),Li=function(In){return jr(ii)/jr(ii+it*In)},un=function(In){return Dt*((jr(ii)*(Or(Kn=ii+it*In)/jr(Kn))-Or(ii))/dr)/rr;var Kn},sn=(Sr(!0)-ii)/it;if(Math.abs(rr)<1e-6||!isFinite(sn)){if(Math.abs(Dt-Ht)<1e-6)return this.easeTo(w,B);let In=Ht0,Li=Kn=>Math.exp(In*it*Kn)}return w.duration="duration"in w?+w.duration:1e3*sn/("screenSpeed"in w?+w.screenSpeed/it:+w.speed),w.maxDuration&&w.duration>w.maxDuration&&(w.duration=0),this._zooming=!0,this._rotating=qe!==Tt,this._pitching=Kt!==Xe,this._padding=!ee.isPaddingEqual(Jt),this._prepareEase(B,!1),this.terrain&&this._prepareElevation(be),this._ease(In=>{let Kn=In*sn,Aa=1/Li(Kn);ee.zoom=In===1?Re:le+ee.scaleZoom(Aa),this._rotating&&(ee.bearing=a.y.number(qe,Tt,In)),this._pitching&&(ee.pitch=a.y.number(Xe,Kt,In)),this._padding&&(ee.interpolatePadding(ot,Jt,In),Pr=ee.centerPoint.add(xr)),this.terrain&&!w.freezeElevation&&this._updateElevation(In);let fa=In===1?be:ee.unproject(tt.add(We.mult(un(Kn))).mult(Aa));ee.setLocationAtPoint(ee.renderWorldCopies?fa.wrap():fa,Pr),this._applyUpdatedTransform(ee),this._fireMoveEvents(B)},()=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(B)},w),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(w,B){var Q;if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let ee=this._onEaseEnd;delete this._onEaseEnd,ee.call(this,B)}return w||(Q=this.handlers)===null||Q===void 0||Q.stop(!1),this}_ease(w,B,Q){Q.animate===!1||Q.duration===0?(w(1),B()):(this._easeStart=u.now(),this._easeOptions=Q,this._onEaseFrame=w,this._onEaseEnd=B,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(w,B){w=a.b3(w,-180,180);let Q=Math.abs(w-B);return Math.abs(w-360-B)180?-360:Q<-180?360:0}queryTerrainElevation(w){return this.terrain?this.terrain.getElevationForLngLatZoom(a.N.convert(w),this.transform.tileZoom)-this.transform.elevation:null}}let La={compact:!0,customAttribution:'
MapLibre'};class Na{constructor(w=La){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=B=>{!B||B.sourceDataType!=="metadata"&&B.sourceDataType!=="visibility"&&B.dataType!=="style"&&B.type!=="terrain"||this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=w}getDefaultPosition(){return"bottom-right"}onAdd(w){return this._map=w,this._compact=this.options.compact,this._container=c.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=c.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=c.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){c.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(w,B){let Q=this._map._getUIString(`AttributionControl.${B}`);w.title=Q,w.setAttribute("aria-label",Q)}_updateAttributions(){if(!this._map.style)return;let w=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?w=w.concat(this.options.customAttribution.map(ee=>typeof ee!="string"?"":ee)):typeof this.options.customAttribution=="string"&&w.push(this.options.customAttribution)),this._map.style.stylesheet){let ee=this._map.style.stylesheet;this.styleOwner=ee.owner,this.styleId=ee.id}let B=this._map.style.sourceCaches;for(let ee in B){let le=B[ee];if(le.used||le.usedForTerrain){let qe=le.getSource();qe.attribution&&w.indexOf(qe.attribution)<0&&w.push(qe.attribution)}}w=w.filter(ee=>String(ee).trim()),w.sort((ee,le)=>ee.length-le.length),w=w.filter((ee,le)=>{for(let qe=le+1;qe=0)return!1;return!0});let Q=w.join(" | ");Q!==this._attribHTML&&(this._attribHTML=Q,w.length?(this._innerContainer.innerHTML=Q,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class Yn{constructor(w={}){this._updateCompact=()=>{let B=this._container.children;if(B.length){let Q=B[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&Q.classList.add("maplibregl-compact"):Q.classList.remove("maplibregl-compact")}},this.options=w}getDefaultPosition(){return"bottom-left"}onAdd(w){this._map=w,this._compact=this.options&&this.options.compact,this._container=c.create("div","maplibregl-ctrl");let B=c.create("a","maplibregl-ctrl-logo");return B.target="_blank",B.rel="noopener nofollow",B.href="https://maplibre.org/",B.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),B.setAttribute("rel","noopener nofollow"),this._container.appendChild(B),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){c.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class zn{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(w){let B=++this._id;return this._queue.push({callback:w,id:B,cancelled:!1}),B}remove(w){let B=this._currentlyRunning,Q=B?this._queue.concat(B):this._queue;for(let ee of Q)if(ee.id===w)return void(ee.cancelled=!0)}run(w=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");let B=this._currentlyRunning=this._queue;this._queue=[];for(let Q of B)if(!Q.cancelled&&(Q.callback(w),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}var Ka=a.Y([{name:"a_pos3d",type:"Int16",components:3}]);class bo extends a.E{constructor(w){super(),this.sourceCache=w,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,w.usedForTerrain=!0,w.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(w,B){this.sourceCache.update(w,B),this._renderableTilesKeys=[];let Q={};for(let ee of w.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:B}))Q[ee.key]=!0,this._renderableTilesKeys.push(ee.key),this._tiles[ee.key]||(ee.posMatrix=new Float64Array(16),a.aP(ee.posMatrix,0,a.X,0,a.X,0,1),this._tiles[ee.key]=new Ut(ee,this.tileSize));for(let ee in this._tiles)Q[ee]||delete this._tiles[ee]}freeRtt(w){for(let B in this._tiles){let Q=this._tiles[B];(!w||Q.tileID.equals(w)||Q.tileID.isChildOf(w)||w.isChildOf(Q.tileID))&&(Q.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map(w=>this.getTileByID(w))}getTileByID(w){return this._tiles[w]}getTerrainCoords(w){let B={};for(let Q of this._renderableTilesKeys){let ee=this._tiles[Q].tileID;if(ee.canonical.equals(w.canonical)){let le=w.clone();le.posMatrix=new Float64Array(16),a.aP(le.posMatrix,0,a.X,0,a.X,0,1),B[Q]=le}else if(ee.canonical.isChildOf(w.canonical)){let le=w.clone();le.posMatrix=new Float64Array(16);let qe=ee.canonical.z-w.canonical.z,Xe=ee.canonical.x-(ee.canonical.x>>qe<>qe<>qe;a.aP(le.posMatrix,0,Tt,0,Tt,0,1),a.J(le.posMatrix,le.posMatrix,[-Xe*Tt,-ot*Tt,0]),B[Q]=le}else if(w.canonical.isChildOf(ee.canonical)){let le=w.clone();le.posMatrix=new Float64Array(16);let qe=w.canonical.z-ee.canonical.z,Xe=w.canonical.x-(w.canonical.x>>qe<>qe<>qe;a.aP(le.posMatrix,0,a.X,0,a.X,0,1),a.J(le.posMatrix,le.posMatrix,[Xe*Tt,ot*Tt,0]),a.K(le.posMatrix,le.posMatrix,[1/2**qe,1/2**qe,0]),B[Q]=le}}return B}getSourceTile(w,B){let Q=this.sourceCache._source,ee=w.overscaledZ-this.deltaZoom;if(ee>Q.maxzoom&&(ee=Q.maxzoom),ee=Q.minzoom&&(!le||!le.dem);)le=this.sourceCache.getTileByID(w.scaledTo(ee--).key);return le}tilesAfterTime(w=Date.now()){return Object.values(this._tiles).filter(B=>B.timeAdded>=w)}}class Xo{constructor(w,B,Q){this.painter=w,this.sourceCache=new bo(B),this.options=Q,this.exaggeration=typeof Q.exaggeration=="number"?Q.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(w,B,Q,ee=a.X){var le;if(!(B>=0&&B=0&&Qw.canonical.z&&(w.canonical.z>=ee?le=w.canonical.z-ee:a.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));let qe=w.canonical.x-(w.canonical.x>>le<>le<>8<<4|le>>8,B[qe+3]=0;let Q=new a.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(B.buffer)),ee=new g(w,Q,w.gl.RGBA,{premultiply:!1});return ee.bind(w.gl.NEAREST,w.gl.CLAMP_TO_EDGE),this._coordsTexture=ee,ee}pointCoordinate(w){this.painter.maybeDrawDepthAndCoords(!0);let B=new Uint8Array(4),Q=this.painter.context,ee=Q.gl,le=Math.round(w.x*this.painter.pixelRatio/devicePixelRatio),qe=Math.round(w.y*this.painter.pixelRatio/devicePixelRatio),Xe=Math.round(this.painter.height/devicePixelRatio);Q.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),ee.readPixels(le,Xe-qe-1,1,1,ee.RGBA,ee.UNSIGNED_BYTE,B),Q.bindFramebuffer.set(null);let ot=B[0]+(B[2]>>4<<8),Tt=B[1]+((15&B[2])<<8),Kt=this.coordsIndex[255-B[3]],Jt=Kt&&this.sourceCache.getTileByID(Kt);if(!Jt)return null;let xr=this._coordsTextureSize,Pr=(1<w.id!==B),this._recentlyUsed.push(w.id)}stampObject(w){w.stamp=++this._stamp}getOrCreateFreeObject(){for(let B of this._recentlyUsed)if(!this._objects[B].inUse)return this._objects[B];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");let w=this._createObject(this._objects.length);return this._objects.push(w),w}freeObject(w){w.inUse=!1}freeAllObjects(){for(let w of this._objects)this.freeObject(w)}isFull(){return!(this._objects.length!w.inUse)===!1}}let os={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class Ts{constructor(w,B){this.painter=w,this.terrain=B,this.pool=new Ms(w.context,30,B.sourceCache.tileSize*B.qualityFactor)}destruct(){this.pool.destruct()}getTexture(w){return this.pool.getObjectForId(w.rtt[this._stacks.length-1].id).texture}prepareForRender(w,B){this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=w._order.filter(Q=>!w._layers[Q].isHidden(B)),this._coordsDescendingInv={};for(let Q in w.sourceCaches){this._coordsDescendingInv[Q]={};let ee=w.sourceCaches[Q].getVisibleCoordinates();for(let le of ee){let qe=this.terrain.sourceCache.getTerrainCoords(le);for(let Xe in qe)this._coordsDescendingInv[Q][Xe]||(this._coordsDescendingInv[Q][Xe]=[]),this._coordsDescendingInv[Q][Xe].push(qe[Xe])}}this._coordsDescendingInvStr={};for(let Q of w._order){let ee=w._layers[Q],le=ee.source;if(os[ee.type]&&!this._coordsDescendingInvStr[le]){this._coordsDescendingInvStr[le]={};for(let qe in this._coordsDescendingInv[le])this._coordsDescendingInvStr[le][qe]=this._coordsDescendingInv[le][qe].map(Xe=>Xe.key).sort().join()}}for(let Q of this._renderableTiles)for(let ee in this._coordsDescendingInvStr){let le=this._coordsDescendingInvStr[ee][Q.tileID.key];le&&le!==Q.rttCoords[ee]&&(Q.rtt=[])}}renderLayer(w){if(w.isHidden(this.painter.transform.zoom))return!1;let B=w.type,Q=this.painter,ee=this._renderableLayerIds[this._renderableLayerIds.length-1]===w.id;if(os[B]&&(this._prevType&&os[this._prevType]||this._stacks.push([]),this._prevType=B,this._stacks[this._stacks.length-1].push(w.id),!ee))return!0;if(os[this._prevType]||os[B]&&ee){this._prevType=B;let le=this._stacks.length-1,qe=this._stacks[le]||[];for(let Xe of this._renderableTiles){if(this.pool.isFull()&&(Ws(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(Xe),Xe.rtt[le]){let Tt=this.pool.getObjectForId(Xe.rtt[le].id);if(Tt.stamp===Xe.rtt[le].stamp){this.pool.useObject(Tt);continue}}let ot=this.pool.getOrCreateFreeObject();this.pool.useObject(ot),this.pool.stampObject(ot),Xe.rtt[le]={id:ot.id,stamp:ot.stamp},Q.context.bindFramebuffer.set(ot.fbo.framebuffer),Q.context.clear({color:a.aM.transparent,stencil:0}),Q.currentStencilSource=void 0;for(let Tt=0;Tt{ue.touchstart=ue.dragStart,ue.touchmoveWindow=ue.dragMove,ue.touchend=ue.dragEnd},va={showCompass:!0,showZoom:!0,visualizePitch:!1};class no{constructor(w,B,Q=!1){this.mousedown=qe=>{this.startMouse(a.e({},qe,{ctrlKey:!0,preventDefault:()=>qe.preventDefault()}),c.mousePos(this.element,qe)),c.addEventListener(window,"mousemove",this.mousemove),c.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=qe=>{this.moveMouse(qe,c.mousePos(this.element,qe))},this.mouseup=qe=>{this.mouseRotate.dragEnd(qe),this.mousePitch&&this.mousePitch.dragEnd(qe),this.offTemp()},this.touchstart=qe=>{qe.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=c.touchPos(this.element,qe.targetTouches)[0],this.startTouch(qe,this._startPos),c.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.addEventListener(window,"touchend",this.touchend))},this.touchmove=qe=>{qe.targetTouches.length!==1?this.reset():(this._lastPos=c.touchPos(this.element,qe.targetTouches)[0],this.moveTouch(qe,this._lastPos))},this.touchend=qe=>{qe.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),this.touchRotate.reset(),this.touchPitch&&this.touchPitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10;let ee=w.dragRotate._mouseRotate.getClickTolerance(),le=w.dragRotate._mousePitch.getClickTolerance();this.element=B,this.mouseRotate=Wl({clickTolerance:ee,enable:!0}),this.touchRotate=(({enable:qe,clickTolerance:Xe,bearingDegreesPerPixelMoved:ot=.8})=>{let Tt=new uf;return new Wu({clickTolerance:Xe,move:(Kt,Jt)=>({bearingDelta:(Jt.x-Kt.x)*ot}),moveStateManager:Tt,enable:qe,assignEvents:Ps})})({clickTolerance:ee,enable:!0}),this.map=w,Q&&(this.mousePitch=ah({clickTolerance:le,enable:!0}),this.touchPitch=(({enable:qe,clickTolerance:Xe,pitchDegreesPerPixelMoved:ot=-.5})=>{let Tt=new uf;return new Wu({clickTolerance:Xe,move:(Kt,Jt)=>({pitchDelta:(Jt.y-Kt.y)*ot}),moveStateManager:Tt,enable:qe,assignEvents:Ps})})({clickTolerance:le,enable:!0})),c.addEventListener(B,"mousedown",this.mousedown),c.addEventListener(B,"touchstart",this.touchstart,{passive:!1}),c.addEventListener(B,"touchcancel",this.reset)}startMouse(w,B){this.mouseRotate.dragStart(w,B),this.mousePitch&&this.mousePitch.dragStart(w,B),c.disableDrag()}startTouch(w,B){this.touchRotate.dragStart(w,B),this.touchPitch&&this.touchPitch.dragStart(w,B),c.disableDrag()}moveMouse(w,B){let Q=this.map,{bearingDelta:ee}=this.mouseRotate.dragMove(w,B)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.mousePitch){let{pitchDelta:le}=this.mousePitch.dragMove(w,B)||{};le&&Q.setPitch(Q.getPitch()+le)}}moveTouch(w,B){let Q=this.map,{bearingDelta:ee}=this.touchRotate.dragMove(w,B)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.touchPitch){let{pitchDelta:le}=this.touchPitch.dragMove(w,B)||{};le&&Q.setPitch(Q.getPitch()+le)}}off(){let w=this.element;c.removeEventListener(w,"mousedown",this.mousedown),c.removeEventListener(w,"touchstart",this.touchstart,{passive:!1}),c.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.removeEventListener(window,"touchend",this.touchend),c.removeEventListener(w,"touchcancel",this.reset),this.offTemp()}offTemp(){c.enableDrag(),c.removeEventListener(window,"mousemove",this.mousemove),c.removeEventListener(window,"mouseup",this.mouseup),c.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.removeEventListener(window,"touchend",this.touchend)}}let _s;function is(ue,w,B){let Q=new a.N(ue.lng,ue.lat);if(ue=new a.N(ue.lng,ue.lat),w){let ee=new a.N(ue.lng-360,ue.lat),le=new a.N(ue.lng+360,ue.lat),qe=B.locationPoint(ue).distSqr(w);B.locationPoint(ee).distSqr(w)180;){let ee=B.locationPoint(ue);if(ee.x>=0&&ee.y>=0&&ee.x<=B.width&&ee.y<=B.height)break;ue.lng>B.center.lng?ue.lng-=360:ue.lng+=360}return ue.lng!==Q.lng&&B.locationPoint(ue).y>B.height/2-B.getHorizon()?ue:Q}let $l={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function ku(ue,w,B){let Q=ue.classList;for(let ee in $l)Q.remove(`maplibregl-${B}-anchor-${ee}`);Q.add(`maplibregl-${B}-anchor-${w}`)}class Yu extends a.E{constructor(w){if(super(),this._onKeyPress=B=>{let Q=B.code,ee=B.charCode||B.keyCode;Q!=="Space"&&Q!=="Enter"&&ee!==32&&ee!==13||this.togglePopup()},this._onMapClick=B=>{let Q=B.originalEvent.target,ee=this._element;this._popup&&(Q===ee||ee.contains(Q))&&this.togglePopup()},this._update=B=>{var Q;if(!this._map)return;let ee=this._map.loaded()&&!this._map.isMoving();((B==null?void 0:B.type)==="terrain"||(B==null?void 0:B.type)==="render"&&!ee)&&this._map.once("render",this._update),this._lngLat=this._map.transform.renderWorldCopies?is(this._lngLat,this._flatPos,this._map.transform):(Q=this._lngLat)===null||Q===void 0?void 0:Q.wrap(),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map.transform.locationPoint(this._lngLat)._add(this._offset));let le="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?le=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(le=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let qe="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?qe="rotateX(0deg)":this._pitchAlignment==="map"&&(qe=`rotateX(${this._map.getPitch()}deg)`),this._subpixelPositioning||B&&B.type!=="moveend"||(this._pos=this._pos.round()),c.setTransform(this._element,`${$l[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${qe} ${le}`),u.frameAsync(new AbortController).then(()=>{this._updateOpacity(B&&B.type==="moveend")}).catch(()=>{})},this._onMove=B=>{if(!this._isDragging){let Q=this._clickTolerance||this._map._clickTolerance;this._isDragging=B.point.dist(this._pointerdownPos)>=Q}this._isDragging&&(this._pos=B.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new a.k("dragstart"))),this.fire(new a.k("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new a.k("dragend")),this._state="inactive"},this._addDragHandler=B=>{this._element.contains(B.originalEvent.target)&&(B.preventDefault(),this._positionDelta=B.point.sub(this._pos).add(this._offset),this._pointerdownPos=B.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},this._anchor=w&&w.anchor||"center",this._color=w&&w.color||"#3FB1CE",this._scale=w&&w.scale||1,this._draggable=w&&w.draggable||!1,this._clickTolerance=w&&w.clickTolerance||0,this._subpixelPositioning=w&&w.subpixelPositioning||!1,this._isDragging=!1,this._state="inactive",this._rotation=w&&w.rotation||0,this._rotationAlignment=w&&w.rotationAlignment||"auto",this._pitchAlignment=w&&w.pitchAlignment&&w.pitchAlignment!=="auto"?w.pitchAlignment:this._rotationAlignment,this.setOpacity(),this.setOpacity(w==null?void 0:w.opacity,w==null?void 0:w.opacityWhenCovered),w&&w.element)this._element=w.element,this._offset=a.P.convert(w&&w.offset||[0,0]);else{this._defaultMarker=!0,this._element=c.create("div");let B=c.createNS("http://www.w3.org/2000/svg","svg"),Q=41,ee=27;B.setAttributeNS(null,"display","block"),B.setAttributeNS(null,"height",`${Q}px`),B.setAttributeNS(null,"width",`${ee}px`),B.setAttributeNS(null,"viewBox",`0 0 ${ee} ${Q}`);let le=c.createNS("http://www.w3.org/2000/svg","g");le.setAttributeNS(null,"stroke","none"),le.setAttributeNS(null,"stroke-width","1"),le.setAttributeNS(null,"fill","none"),le.setAttributeNS(null,"fill-rule","evenodd");let qe=c.createNS("http://www.w3.org/2000/svg","g");qe.setAttributeNS(null,"fill-rule","nonzero");let Xe=c.createNS("http://www.w3.org/2000/svg","g");Xe.setAttributeNS(null,"transform","translate(3.0, 29.0)"),Xe.setAttributeNS(null,"fill","#000000");let ot=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(let Be of ot){let tt=c.createNS("http://www.w3.org/2000/svg","ellipse");tt.setAttributeNS(null,"opacity","0.04"),tt.setAttributeNS(null,"cx","10.5"),tt.setAttributeNS(null,"cy","5.80029008"),tt.setAttributeNS(null,"rx",Be.rx),tt.setAttributeNS(null,"ry",Be.ry),Xe.appendChild(tt)}let Tt=c.createNS("http://www.w3.org/2000/svg","g");Tt.setAttributeNS(null,"fill",this._color);let Kt=c.createNS("http://www.w3.org/2000/svg","path");Kt.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),Tt.appendChild(Kt);let Jt=c.createNS("http://www.w3.org/2000/svg","g");Jt.setAttributeNS(null,"opacity","0.25"),Jt.setAttributeNS(null,"fill","#000000");let xr=c.createNS("http://www.w3.org/2000/svg","path");xr.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),Jt.appendChild(xr);let Pr=c.createNS("http://www.w3.org/2000/svg","g");Pr.setAttributeNS(null,"transform","translate(6.0, 7.0)"),Pr.setAttributeNS(null,"fill","#FFFFFF");let ve=c.createNS("http://www.w3.org/2000/svg","g");ve.setAttributeNS(null,"transform","translate(8.0, 8.0)");let be=c.createNS("http://www.w3.org/2000/svg","circle");be.setAttributeNS(null,"fill","#000000"),be.setAttributeNS(null,"opacity","0.25"),be.setAttributeNS(null,"cx","5.5"),be.setAttributeNS(null,"cy","5.5"),be.setAttributeNS(null,"r","5.4999962");let Re=c.createNS("http://www.w3.org/2000/svg","circle");Re.setAttributeNS(null,"fill","#FFFFFF"),Re.setAttributeNS(null,"cx","5.5"),Re.setAttributeNS(null,"cy","5.5"),Re.setAttributeNS(null,"r","5.4999962"),ve.appendChild(be),ve.appendChild(Re),qe.appendChild(Xe),qe.appendChild(Tt),qe.appendChild(Jt),qe.appendChild(Pr),qe.appendChild(ve),B.appendChild(qe),B.setAttributeNS(null,"height",Q*this._scale+"px"),B.setAttributeNS(null,"width",ee*this._scale+"px"),this._element.appendChild(B),this._offset=a.P.convert(w&&w.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",B=>{B.preventDefault()}),this._element.addEventListener("mousedown",B=>{B.preventDefault()}),ku(this._element,this._anchor,"marker"),w&&w.className)for(let B of w.className.split(" "))this._element.classList.add(B);this._popup=null}addTo(w){return this.remove(),this._map=w,this._element.setAttribute("aria-label",w._getUIString("Marker.Title")),w.getCanvasContainer().appendChild(this._element),w.on("move",this._update),w.on("moveend",this._update),w.on("terrain",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),c.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(w){return this._lngLat=a.N.convert(w),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(w){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),w){if(!("offset"in w.options)){let ee=Math.abs(13.5)/Math.SQRT2;w.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[ee,-1*(38.1-13.5+ee)],"bottom-right":[-ee,-1*(38.1-13.5+ee)],left:[13.5,-1*(38.1-13.5)],right:[-13.5,-1*(38.1-13.5)]}:this._offset}this._popup=w,this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}setSubpixelPositioning(w){return this._subpixelPositioning=w,this}getPopup(){return this._popup}togglePopup(){let w=this._popup;return this._element.style.opacity===this._opacityWhenCovered?this:w?(w.isOpen()?w.remove():(w.setLngLat(this._lngLat),w.addTo(this._map)),this):this}_updateOpacity(w=!1){var B,Q;if(!(!((B=this._map)===null||B===void 0)&&B.terrain))return void(this._element.style.opacity!==this._opacity&&(this._element.style.opacity=this._opacity));if(w)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout(()=>{this._opacityTimeout=null},100)}let ee=this._map,le=ee.terrain.depthAtPoint(this._pos),qe=ee.terrain.getElevationForLngLatZoom(this._lngLat,ee.transform.tileZoom);if(ee.transform.lngLatToCameraDepth(this._lngLat,qe)-le<.006)return void(this._element.style.opacity=this._opacity);let Xe=-this._offset.y/ee.transform._pixelPerMeter,ot=Math.sin(ee.getPitch()*Math.PI/180)*Xe,Tt=ee.terrain.depthAtPoint(new a.P(this._pos.x,this._pos.y-this._offset.y)),Kt=ee.transform.lngLatToCameraDepth(this._lngLat,qe+ot)-Tt>.006;!((Q=this._popup)===null||Q===void 0)&&Q.isOpen()&&Kt&&this._popup.remove(),this._element.style.opacity=Kt?this._opacityWhenCovered:this._opacity}getOffset(){return this._offset}setOffset(w){return this._offset=a.P.convert(w),this._update(),this}addClassName(w){this._element.classList.add(w)}removeClassName(w){this._element.classList.remove(w)}toggleClassName(w){return this._element.classList.toggle(w)}setDraggable(w){return this._draggable=!!w,this._map&&(w?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(w){return this._rotation=w||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(w){return this._rotationAlignment=w||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(w){return this._pitchAlignment=w&&w!=="auto"?w:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(w,B){return w===void 0&&B===void 0&&(this._opacity="1",this._opacityWhenCovered="0.2"),w!==void 0&&(this._opacity=w),B!==void 0&&(this._opacityWhenCovered=B),this._map&&this._updateOpacity(!0),this}}let Nc={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},gu=0,Uc=!1,xu={maxWidth:100,unit:"metric"};function Ac(ue,w,B){let Q=B&&B.maxWidth||100,ee=ue._container.clientHeight/2,le=ue.unproject([0,ee]),qe=ue.unproject([Q,ee]),Xe=le.distanceTo(qe);if(B&&B.unit==="imperial"){let ot=3.2808*Xe;ot>5280?Ua(w,Q,ot/5280,ue._getUIString("ScaleControl.Miles")):Ua(w,Q,ot,ue._getUIString("ScaleControl.Feet"))}else B&&B.unit==="nautical"?Ua(w,Q,Xe/1852,ue._getUIString("ScaleControl.NauticalMiles")):Xe>=1e3?Ua(w,Q,Xe/1e3,ue._getUIString("ScaleControl.Kilometers")):Ua(w,Q,Xe,ue._getUIString("ScaleControl.Meters"))}function Ua(ue,w,B,Q){let ee=function(le){let qe=Math.pow(10,`${Math.floor(le)}`.length-1),Xe=le/qe;return Xe=Xe>=10?10:Xe>=5?5:Xe>=3?3:Xe>=2?2:Xe>=1?1:function(ot){let Tt=Math.pow(10,Math.ceil(-Math.log(ot)/Math.LN10));return Math.round(ot*Tt)/Tt}(Xe),qe*Xe}(B);ue.style.width=w*(ee/B)+"px",ue.innerHTML=`${ee} ${Q}`}let oo={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1},Vc=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function hc(ue){if(ue){if(typeof ue=="number"){let w=Math.round(Math.abs(ue)/Math.SQRT2);return{center:new a.P(0,0),top:new a.P(0,ue),"top-left":new a.P(w,w),"top-right":new a.P(-w,w),bottom:new a.P(0,-ue),"bottom-left":new a.P(w,-w),"bottom-right":new a.P(-w,-w),left:new a.P(ue,0),right:new a.P(-ue,0)}}if(ue instanceof a.P||Array.isArray(ue)){let w=a.P.convert(ue);return{center:w,top:w,"top-left":w,"top-right":w,bottom:w,"bottom-left":w,"bottom-right":w,left:w,right:w}}return{center:a.P.convert(ue.center||[0,0]),top:a.P.convert(ue.top||[0,0]),"top-left":a.P.convert(ue["top-left"]||[0,0]),"top-right":a.P.convert(ue["top-right"]||[0,0]),bottom:a.P.convert(ue.bottom||[0,0]),"bottom-left":a.P.convert(ue["bottom-left"]||[0,0]),"bottom-right":a.P.convert(ue["bottom-right"]||[0,0]),left:a.P.convert(ue.left||[0,0]),right:a.P.convert(ue.right||[0,0])}}return hc(new a.P(0,0))}let Ku=o;i.AJAXError=a.bh,i.Evented=a.E,i.LngLat=a.N,i.MercatorCoordinate=a.Z,i.Point=a.P,i.addProtocol=a.bi,i.config=a.a,i.removeProtocol=a.bj,i.AttributionControl=Na,i.BoxZoomHandler=Cu,i.CanvasSource=$t,i.CooperativeGesturesHandler=$i,i.DoubleClickZoomHandler=Ei,i.DragPanHandler=Tn,i.DragRotateHandler=Bn,i.EdgeInsets=du,i.FullscreenControl=class extends a.E{constructor(ue={}){super(),this._onFullscreenChange=()=>{var w;let B=window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement;for(;!((w=B==null?void 0:B.shadowRoot)===null||w===void 0)&&w.fullscreenElement;)B=B.shadowRoot.fullscreenElement;B===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,ue&&ue.container&&(ue.container instanceof HTMLElement?this._container=ue.container:a.w("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(ue){return this._map=ue,this._container||(this._container=this._map.getContainer()),this._controlContainer=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){c.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let ue=this._fullscreenButton=c.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);c.create("span","maplibregl-ctrl-icon",ue).setAttribute("aria-hidden","true"),ue.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let ue=this._getTitle();this._fullscreenButton.setAttribute("aria-label",ue),this._fullscreenButton.title=ue}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new a.k("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new a.k("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},i.GeoJSONSource=st,i.GeolocateControl=class extends a.E{constructor(ue){super(),this._onSuccess=w=>{if(this._map){if(this._isOutOfMapMaxBounds(w))return this._setErrorState(),this.fire(new a.k("outofmaxbounds",w)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=w,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(w),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(w),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new a.k("geolocate",w)),this._finish()}},this._updateCamera=w=>{let B=new a.N(w.coords.longitude,w.coords.latitude),Q=w.coords.accuracy,ee=this._map.getBearing(),le=a.e({bearing:ee},this.options.fitBoundsOptions),qe=ce.fromLngLat(B,Q);this._map.fitBounds(qe,le,{geolocateSource:!0})},this._updateMarker=w=>{if(w){let B=new a.N(w.coords.longitude,w.coords.latitude);this._accuracyCircleMarker.setLngLat(B).addTo(this._map),this._userLocationDotMarker.setLngLat(B).addTo(this._map),this._accuracy=w.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onZoom=()=>{this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},this._onError=w=>{if(this._map){if(this.options.trackUserLocation)if(w.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let B=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=B,this._geolocateButton.setAttribute("aria-label",B),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(w.code===3&&Uc)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new a.k("error",w)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",w=>w.preventDefault()),this._geolocateButton=c.create("button","maplibregl-ctrl-geolocate",this._container),c.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=w=>{if(this._map){if(w===!1){a.w("Geolocation support is not available so the GeolocateControl will be disabled.");let B=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=B,this._geolocateButton.setAttribute("aria-label",B)}else{let B=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=B,this._geolocateButton.setAttribute("aria-label",B)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=c.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new Yu({element:this._dotElement}),this._circleElement=c.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Yu({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",B=>{B.geolocateSource||this._watchState!=="ACTIVE_LOCK"||B.originalEvent&&B.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new a.k("trackuserlocationend")),this.fire(new a.k("userlocationlostfocus")))})}},this.options=a.e({},Nc,ue)}onAdd(ue){return this._map=ue,this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),function(){return a._(this,arguments,void 0,function*(w=!1){if(_s!==void 0&&!w)return _s;if(window.navigator.permissions===void 0)return _s=!!window.navigator.geolocation,_s;try{_s=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch(B){_s=!!window.navigator.geolocation}return _s})}().then(w=>this._finishSetupUI(w)),this._container}onRemove(){this._geolocationWatchID!==void 0&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),c.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,gu=0,Uc=!1}_isOutOfMapMaxBounds(ue){let w=this._map.getMaxBounds(),B=ue.coords;return w&&(B.longitudew.getEast()||B.latitudew.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadius(){let ue=this._map.getBounds(),w=ue.getSouthEast(),B=ue.getNorthEast(),Q=w.distanceTo(B),ee=Math.ceil(this._accuracy/(Q/this._map._container.clientHeight)*2);this._circleElement.style.width=`${ee}px`,this._circleElement.style.height=`${ee}px`}trigger(){if(!this._setup)return a.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new a.k("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":gu--,Uc=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new a.k("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new a.k("trackuserlocationstart")),this.fire(new a.k("userlocationfocus"));break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let ue;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),gu++,gu>1?(ue={maximumAge:6e5,timeout:0},Uc=!0):(ue=this.options.positionOptions,Uc=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,ue)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},i.Hash=bh,i.ImageSource=Gt,i.KeyboardHandler=Xt,i.LngLatBounds=ce,i.LogoControl=Yn,i.Map=class extends Ra{constructor(ue){a.bf.mark(a.bg.create);let w=Object.assign(Object.assign({},Xs),ue);if(w.minZoom!=null&&w.maxZoom!=null&&w.minZoom>w.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(w.minPitch!=null&&w.maxPitch!=null&&w.minPitch>w.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(w.minPitch!=null&&w.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(w.maxPitch!=null&&w.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new al(w.minZoom,w.maxZoom,w.minPitch,w.maxPitch,w.renderWorldCopies),{bearingSnap:w.bearingSnap}),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new zn,this._controls=[],this._mapId=a.a4(),this._contextLost=B=>{B.preventDefault(),this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this.fire(new a.k("webglcontextlost",{originalEvent:B}))},this._contextRestored=B=>{this._setupPainter(),this.resize(),this._update(),this.fire(new a.k("webglcontextrestored",{originalEvent:B}))},this._onMapScroll=B=>{if(B.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=w.interactive,this._maxTileCacheSize=w.maxTileCacheSize,this._maxTileCacheZoomLevels=w.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=w.failIfMajorPerformanceCaveat===!0,this._preserveDrawingBuffer=w.preserveDrawingBuffer===!0,this._antialias=w.antialias===!0,this._trackResize=w.trackResize===!0,this._bearingSnap=w.bearingSnap,this._refreshExpiredTiles=w.refreshExpiredTiles===!0,this._fadeDuration=w.fadeDuration,this._crossSourceCollisions=w.crossSourceCollisions===!0,this._collectResourceTiming=w.collectResourceTiming===!0,this._locale=Object.assign(Object.assign({},Ho),w.locale),this._clickTolerance=w.clickTolerance,this._overridePixelRatio=w.pixelRatio,this._maxCanvasSize=w.maxCanvasSize,this.transformCameraUpdate=w.transformCameraUpdate,this.cancelPendingTileRequestsWhileZooming=w.cancelPendingTileRequestsWhileZooming===!0,this._imageQueueHandle=p.addThrottleControl(()=>this.isMoving()),this._requestManager=new C(w.transformRequest),typeof w.container=="string"){if(this._container=document.getElementById(w.container),!this._container)throw new Error(`Container '${w.container}' not found.`)}else{if(!(w.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=w.container}if(w.maxBounds&&this.setMaxBounds(w.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",()=>this._update(!1)).on("moveend",()=>this._update(!1)).on("zoom",()=>this._update(!0)).on("terrain",()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)}).once("idle",()=>{this._idleTriggered=!0}),typeof window!="undefined"){addEventListener("online",this._onWindowOnline,!1);let B=!1,Q=nh(ee=>{this._trackResize&&!this._removed&&(this.resize(ee),this.redraw())},50);this._resizeObserver=new ResizeObserver(ee=>{B?Q(ee):B=!0}),this._resizeObserver.observe(this._container)}this.handlers=new ka(this,w),this._hash=w.hash&&new bh(typeof w.hash=="string"&&w.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:w.center,zoom:w.zoom,bearing:w.bearing,pitch:w.pitch}),w.bounds&&(this.resize(),this.fitBounds(w.bounds,a.e({},w.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=w.localIdeographFontFamily,this._validateStyle=w.validateStyle,w.style&&this.setStyle(w.style,{localIdeographFontFamily:w.localIdeographFontFamily}),w.attributionControl&&this.addControl(new Na(typeof w.attributionControl=="boolean"?void 0:w.attributionControl)),w.maplibreLogo&&this.addControl(new Yn,w.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",B=>{this._update(B.dataType==="style"),this.fire(new a.k(`${B.dataType}data`,B))}),this.on("dataloading",B=>{this.fire(new a.k(`${B.dataType}dataloading`,B))}),this.on("dataabort",B=>{this.fire(new a.k("sourcedataabort",B))})}_getMapId(){return this._mapId}addControl(ue,w){if(w===void 0&&(w=ue.getDefaultPosition?ue.getDefaultPosition():"top-right"),!ue||!ue.onAdd)return this.fire(new a.j(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let B=ue.onAdd(this);this._controls.push(ue);let Q=this._controlPositions[w];return w.indexOf("bottom")!==-1?Q.insertBefore(B,Q.firstChild):Q.appendChild(B),this}removeControl(ue){if(!ue||!ue.onRemove)return this.fire(new a.j(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let w=this._controls.indexOf(ue);return w>-1&&this._controls.splice(w,1),ue.onRemove(this),this}hasControl(ue){return this._controls.indexOf(ue)>-1}calculateCameraOptionsFromTo(ue,w,B,Q){return Q==null&&this.terrain&&(Q=this.terrain.getElevationForLngLatZoom(B,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(ue,w,B,Q)}resize(ue){var w;let B=this._containerDimensions(),Q=B[0],ee=B[1],le=this._getClampedPixelRatio(Q,ee);if(this._resizeCanvas(Q,ee,le),this.painter.resize(Q,ee,le),this.painter.overLimit()){let Xe=this.painter.context.gl;this._maxCanvasSize=[Xe.drawingBufferWidth,Xe.drawingBufferHeight];let ot=this._getClampedPixelRatio(Q,ee);this._resizeCanvas(Q,ee,ot),this.painter.resize(Q,ee,ot)}this.transform.resize(Q,ee),(w=this._requestedCameraState)===null||w===void 0||w.resize(Q,ee);let qe=!this._moving;return qe&&(this.stop(),this.fire(new a.k("movestart",ue)).fire(new a.k("move",ue))),this.fire(new a.k("resize",ue)),qe&&this.fire(new a.k("moveend",ue)),this}_getClampedPixelRatio(ue,w){let{0:B,1:Q}=this._maxCanvasSize,ee=this.getPixelRatio(),le=ue*ee,qe=w*ee;return Math.min(le>B?B/le:1,qe>Q?Q/qe:1)*ee}getPixelRatio(){var ue;return(ue=this._overridePixelRatio)!==null&&ue!==void 0?ue:devicePixelRatio}setPixelRatio(ue){this._overridePixelRatio=ue,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(ue){return this.transform.setMaxBounds(ce.convert(ue)),this._update()}setMinZoom(ue){if((ue=ue==null?-2:ue)>=-2&&ue<=this.transform.maxZoom)return this.transform.minZoom=ue,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=ue,this._update(),this.getZoom()>ue&&this.setZoom(ue),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(ue){if((ue=ue==null?0:ue)<0)throw new Error("minPitch must be greater than or equal to 0");if(ue>=0&&ue<=this.transform.maxPitch)return this.transform.minPitch=ue,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(ue>=this.transform.minPitch)return this.transform.maxPitch=ue,this._update(),this.getPitch()>ue&&this.setPitch(ue),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(ue){return this.transform.renderWorldCopies=ue,this._update()}project(ue){return this.transform.locationPoint(a.N.convert(ue),this.style&&this.terrain)}unproject(ue){return this.transform.pointLocation(a.P.convert(ue),this.terrain)}isMoving(){var ue;return this._moving||((ue=this.handlers)===null||ue===void 0?void 0:ue.isMoving())}isZooming(){var ue;return this._zooming||((ue=this.handlers)===null||ue===void 0?void 0:ue.isZooming())}isRotating(){var ue;return this._rotating||((ue=this.handlers)===null||ue===void 0?void 0:ue.isRotating())}_createDelegatedListener(ue,w,B){if(ue==="mouseenter"||ue==="mouseover"){let Q=!1;return{layers:w,listener:B,delegates:{mousemove:le=>{let qe=w.filter(ot=>this.getLayer(ot)),Xe=qe.length!==0?this.queryRenderedFeatures(le.point,{layers:qe}):[];Xe.length?Q||(Q=!0,B.call(this,new jl(ue,this,le.originalEvent,{features:Xe}))):Q=!1},mouseout:()=>{Q=!1}}}}if(ue==="mouseleave"||ue==="mouseout"){let Q=!1;return{layers:w,listener:B,delegates:{mousemove:qe=>{let Xe=w.filter(ot=>this.getLayer(ot));(Xe.length!==0?this.queryRenderedFeatures(qe.point,{layers:Xe}):[]).length?Q=!0:Q&&(Q=!1,B.call(this,new jl(ue,this,qe.originalEvent)))},mouseout:qe=>{Q&&(Q=!1,B.call(this,new jl(ue,this,qe.originalEvent)))}}}}{let Q=ee=>{let le=w.filter(Xe=>this.getLayer(Xe)),qe=le.length!==0?this.queryRenderedFeatures(ee.point,{layers:le}):[];qe.length&&(ee.features=qe,B.call(this,ee),delete ee.features)};return{layers:w,listener:B,delegates:{[ue]:Q}}}}_saveDelegatedListener(ue,w){this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[ue]=this._delegatedListeners[ue]||[],this._delegatedListeners[ue].push(w)}_removeDelegatedListener(ue,w,B){if(!this._delegatedListeners||!this._delegatedListeners[ue])return;let Q=this._delegatedListeners[ue];for(let ee=0;eew.includes(qe))){for(let qe in le.delegates)this.off(qe,le.delegates[qe]);return void Q.splice(ee,1)}}}on(ue,w,B){if(B===void 0)return super.on(ue,w);let Q=this._createDelegatedListener(ue,typeof w=="string"?[w]:w,B);this._saveDelegatedListener(ue,Q);for(let ee in Q.delegates)this.on(ee,Q.delegates[ee]);return this}once(ue,w,B){if(B===void 0)return super.once(ue,w);let Q=typeof w=="string"?[w]:w,ee=this._createDelegatedListener(ue,Q,B);for(let le in ee.delegates){let qe=ee.delegates[le];ee.delegates[le]=(...Xe)=>{this._removeDelegatedListener(ue,Q,B),qe(...Xe)}}this._saveDelegatedListener(ue,ee);for(let le in ee.delegates)this.once(le,ee.delegates[le]);return this}off(ue,w,B){return B===void 0?super.off(ue,w):(this._removeDelegatedListener(ue,typeof w=="string"?[w]:w,B),this)}queryRenderedFeatures(ue,w){if(!this.style)return[];let B,Q=ue instanceof a.P||Array.isArray(ue),ee=Q?ue:[[0,0],[this.transform.width,this.transform.height]];if(w=w||(Q?{}:ue)||{},ee instanceof a.P||typeof ee[0]=="number")B=[a.P.convert(ee)];else{let le=a.P.convert(ee[0]),qe=a.P.convert(ee[1]);B=[le,new a.P(qe.x,le.y),qe,new a.P(le.x,qe.y),le]}return this.style.queryRenderedFeatures(B,w,this.transform)}querySourceFeatures(ue,w){return this.style.querySourceFeatures(ue,w)}setStyle(ue,w){return(w=a.e({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},w)).diff!==!1&&w.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&ue?(this._diffStyle(ue,w),this):(this._localIdeographFontFamily=w.localIdeographFontFamily,this._updateStyle(ue,w))}setTransformRequest(ue){return this._requestManager.setTransformRequest(ue),this}_getUIString(ue){let w=this._locale[ue];if(w==null)throw new Error(`Missing UI string '${ue}'`);return w}_updateStyle(ue,w){if(w.transformStyle&&this.style&&!this.style._loaded)return void this.style.once("style.load",()=>this._updateStyle(ue,w));let B=this.style&&w.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!ue)),ue?(this.style=new Ga(this,w||{}),this.style.setEventedParent(this,{style:this.style}),typeof ue=="string"?this.style.loadURL(ue,w,B):this.style.loadJSON(ue,w,B),this):(delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new Ga(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(ue,w){if(typeof ue=="string"){let B=this._requestManager.transformRequest(ue,"Style");a.h(B,new AbortController).then(Q=>{this._updateDiff(Q.data,w)}).catch(Q=>{Q&&this.fire(new a.j(Q))})}else typeof ue=="object"&&this._updateDiff(ue,w)}_updateDiff(ue,w){try{this.style.setState(ue,w)&&this._update(!0)}catch(B){a.w(`Unable to perform style diff: ${B.message||B.error||B}. Rebuilding the style from scratch.`),this._updateStyle(ue,w)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():a.w("There is no style added to the map.")}addSource(ue,w){return this._lazyInitEmptyStyle(),this.style.addSource(ue,w),this._update(!0)}isSourceLoaded(ue){let w=this.style&&this.style.sourceCaches[ue];if(w!==void 0)return w.loaded();this.fire(new a.j(new Error(`There is no source with ID '${ue}'`)))}setTerrain(ue){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),ue){let w=this.style.sourceCaches[ue.source];if(!w)throw new Error(`cannot load terrain, because there exists no source with ID: ${ue.source}`);this.terrain===null&&w.reload();for(let B in this.style._layers){let Q=this.style._layers[B];Q.type==="hillshade"&&Q.source===ue.source&&a.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new Xo(this.painter,w,ue),this.painter.renderToTexture=new Ts(this.painter,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=B=>{B.dataType==="style"?this.terrain.sourceCache.freeRtt():B.dataType==="source"&&B.tile&&(B.sourceId!==ue.source||this._elevationFreeze||(this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.terrain.sourceCache.freeRtt(B.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform.minElevationForCurrentTile=0,this.transform.elevation=0;return this.fire(new a.k("terrain",{terrain:ue})),this}getTerrain(){var ue,w;return(w=(ue=this.terrain)===null||ue===void 0?void 0:ue.options)!==null&&w!==void 0?w:null}areTilesLoaded(){let ue=this.style&&this.style.sourceCaches;for(let w in ue){let B=ue[w]._tiles;for(let Q in B){let ee=B[Q];if(ee.state!=="loaded"&&ee.state!=="errored")return!1}}return!0}removeSource(ue){return this.style.removeSource(ue),this._update(!0)}getSource(ue){return this.style.getSource(ue)}addImage(ue,w,B={}){let{pixelRatio:Q=1,sdf:ee=!1,stretchX:le,stretchY:qe,content:Xe,textFitWidth:ot,textFitHeight:Tt}=B;if(this._lazyInitEmptyStyle(),!(w instanceof HTMLImageElement||a.b(w))){if(w.width===void 0||w.height===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{let{width:Kt,height:Jt,data:xr}=w,Pr=w;return this.style.addImage(ue,{data:new a.R({width:Kt,height:Jt},new Uint8Array(xr)),pixelRatio:Q,stretchX:le,stretchY:qe,content:Xe,textFitWidth:ot,textFitHeight:Tt,sdf:ee,version:0,userImage:Pr}),Pr.onAdd&&Pr.onAdd(this,ue),this}}{let{width:Kt,height:Jt,data:xr}=u.getImageData(w);this.style.addImage(ue,{data:new a.R({width:Kt,height:Jt},xr),pixelRatio:Q,stretchX:le,stretchY:qe,content:Xe,textFitWidth:ot,textFitHeight:Tt,sdf:ee,version:0})}}updateImage(ue,w){let B=this.style.getImage(ue);if(!B)return this.fire(new a.j(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let Q=w instanceof HTMLImageElement||a.b(w)?u.getImageData(w):w,{width:ee,height:le,data:qe}=Q;if(ee===void 0||le===void 0)return this.fire(new a.j(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(ee!==B.data.width||le!==B.data.height)return this.fire(new a.j(new Error("The width and height of the updated image must be that same as the previous version of the image")));let Xe=!(w instanceof HTMLImageElement||a.b(w));return B.data.replace(qe,Xe),this.style.updateImage(ue,B),this}getImage(ue){return this.style.getImage(ue)}hasImage(ue){return ue?!!this.style.getImage(ue):(this.fire(new a.j(new Error("Missing required image id"))),!1)}removeImage(ue){this.style.removeImage(ue)}loadImage(ue){return p.getImage(this._requestManager.transformRequest(ue,"Image"),new AbortController)}listImages(){return this.style.listImages()}addLayer(ue,w){return this._lazyInitEmptyStyle(),this.style.addLayer(ue,w),this._update(!0)}moveLayer(ue,w){return this.style.moveLayer(ue,w),this._update(!0)}removeLayer(ue){return this.style.removeLayer(ue),this._update(!0)}getLayer(ue){return this.style.getLayer(ue)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(ue,w,B){return this.style.setLayerZoomRange(ue,w,B),this._update(!0)}setFilter(ue,w,B={}){return this.style.setFilter(ue,w,B),this._update(!0)}getFilter(ue){return this.style.getFilter(ue)}setPaintProperty(ue,w,B,Q={}){return this.style.setPaintProperty(ue,w,B,Q),this._update(!0)}getPaintProperty(ue,w){return this.style.getPaintProperty(ue,w)}setLayoutProperty(ue,w,B,Q={}){return this.style.setLayoutProperty(ue,w,B,Q),this._update(!0)}getLayoutProperty(ue,w){return this.style.getLayoutProperty(ue,w)}setGlyphs(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(ue,w),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(ue,w,B={}){return this._lazyInitEmptyStyle(),this.style.addSprite(ue,w,B,Q=>{Q||this._update(!0)}),this}removeSprite(ue){return this._lazyInitEmptyStyle(),this.style.removeSprite(ue),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setSprite(ue,w,B=>{B||this._update(!0)}),this}setLight(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setLight(ue,w),this._update(!0)}getLight(){return this.style.getLight()}setSky(ue){return this._lazyInitEmptyStyle(),this.style.setSky(ue),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(ue,w){return this.style.setFeatureState(ue,w),this._update()}removeFeatureState(ue,w){return this.style.removeFeatureState(ue,w),this._update()}getFeatureState(ue){return this.style.getFeatureState(ue)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let ue=0,w=0;return this._container&&(ue=this._container.clientWidth||400,w=this._container.clientHeight||300),[ue,w]}_setupContainer(){let ue=this._container;ue.classList.add("maplibregl-map");let w=this._canvasContainer=c.create("div","maplibregl-canvas-container",ue);this._interactive&&w.classList.add("maplibregl-interactive"),this._canvas=c.create("canvas","maplibregl-canvas",w),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region");let B=this._containerDimensions(),Q=this._getClampedPixelRatio(B[0],B[1]);this._resizeCanvas(B[0],B[1],Q);let ee=this._controlContainer=c.create("div","maplibregl-control-container",ue),le=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(qe=>{le[qe]=c.create("div",`maplibregl-ctrl-${qe} `,ee)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(ue,w,B){this._canvas.width=Math.floor(B*ue),this._canvas.height=Math.floor(B*w),this._canvas.style.width=`${ue}px`,this._canvas.style.height=`${w}px`}_setupPainter(){let ue={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1},w=null;this._canvas.addEventListener("webglcontextcreationerror",Q=>{w={requestedAttributes:ue},Q&&(w.statusMessage=Q.statusMessage,w.type=Q.type)},{once:!0});let B=this._canvas.getContext("webgl2",ue)||this._canvas.getContext("webgl",ue);if(!B){let Q="Failed to initialize WebGL";throw w?(w.message=Q,new Error(JSON.stringify(w))):new Error(Q)}this.painter=new Dc(B,this.transform),f.testSupport(B)}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(ue){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||ue,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(ue){return this._update(),this._renderTaskQueue.add(ue)}_cancelRenderFrame(ue){this._renderTaskQueue.remove(ue)}_render(ue){let w=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(ue),this._removed)return;let B=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let ee=this.transform.zoom,le=u.now();this.style.zoomHistory.update(ee,le);let qe=new a.z(ee,{now:le,fadeDuration:w,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),Xe=qe.crossFadingFactor();Xe===1&&Xe===this._crossFadingFactor||(B=!0,this._crossFadingFactor=Xe),this.style.update(qe)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform.minElevationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,w,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:w,showPadding:this.showPadding}),this.fire(new a.k("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,a.bf.mark(a.bg.load),this.fire(new a.k("load"))),this.style&&(this.style.hasTransitions()||B)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let Q=this._sourcesDirty||this._styleDirty||this._placementDirty;return Q||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new a.k("idle")),!this._loaded||this._fullyLoaded||Q||(this._fullyLoaded=!0,a.bf.mark(a.bg.fullLoad)),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._render(0)),this}remove(){var ue;this._hash&&this._hash.remove();for(let B of this._controls)B.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window!="undefined"&&removeEventListener("online",this._onWindowOnline,!1),p.removeThrottleControl(this._imageQueueHandle),(ue=this._resizeObserver)===null||ue===void 0||ue.disconnect();let w=this.painter.context.gl.getExtension("WEBGL_lose_context");w!=null&&w.loseContext&&w.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),c.remove(this._canvasContainer),c.remove(this._controlContainer),this._container.classList.remove("maplibregl-map"),a.bf.clearMetrics(),this._removed=!0,this.fire(new a.k("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,u.frameAsync(this._frameRequest).then(ue=>{a.bf.frame(ue),this._frameRequest=null,this._render(ue)}).catch(()=>{}))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(ue){this._showTileBoundaries!==ue&&(this._showTileBoundaries=ue,this._update())}get showPadding(){return!!this._showPadding}set showPadding(ue){this._showPadding!==ue&&(this._showPadding=ue,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(ue){this._showCollisionBoxes!==ue&&(this._showCollisionBoxes=ue,ue?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(ue){this._showOverdrawInspector!==ue&&(this._showOverdrawInspector=ue,this._update())}get repaint(){return!!this._repaint}set repaint(ue){this._repaint!==ue&&(this._repaint=ue,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(ue){this._vertices=ue,this._update()}get version(){return yl}getCameraTargetElevation(){return this.transform.elevation}},i.MapMouseEvent=jl,i.MapTouchEvent=lf,i.MapWheelEvent=Vh,i.Marker=Yu,i.NavigationControl=class{constructor(ue){this._updateZoomButtons=()=>{let w=this._map.getZoom(),B=w===this._map.getMaxZoom(),Q=w===this._map.getMinZoom();this._zoomInButton.disabled=B,this._zoomOutButton.disabled=Q,this._zoomInButton.setAttribute("aria-disabled",B.toString()),this._zoomOutButton.setAttribute("aria-disabled",Q.toString())},this._rotateCompassArrow=()=>{let w=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=w},this._setButtonTitle=(w,B)=>{let Q=this._map._getUIString(`NavigationControl.${B}`);w.title=Q,w.setAttribute("aria-label",Q)},this.options=a.e({},va,ue),this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",w=>w.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",w=>this._map.zoomIn({},{originalEvent:w})),c.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",w=>this._map.zoomOut({},{originalEvent:w})),c.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",w=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:w}):this._map.resetNorth({},{originalEvent:w})}),this._compassIcon=c.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(ue){return this._map=ue,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new no(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){c.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(ue,w){let B=c.create("button",ue,this._container);return B.type="button",B.addEventListener("click",w),B}},i.Popup=class extends a.E{constructor(ue){super(),this.remove=()=>(this._content&&c.remove(this._content),this._container&&(c.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new a.k("close"))),this),this._onMouseUp=w=>{this._update(w.point)},this._onMouseMove=w=>{this._update(w.point)},this._onDrag=w=>{this._update(w.point)},this._update=w=>{var B;if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=c.create("div","maplibregl-popup",this._map.getContainer()),this._tip=c.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let Xe of this.options.className.split(" "))this._container.classList.add(Xe);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=this._map.transform.renderWorldCopies&&!this._trackPointer?is(this._lngLat,this._flatPos,this._map.transform):(B=this._lngLat)===null||B===void 0?void 0:B.wrap(),this._trackPointer&&!w)return;let Q=this._flatPos=this._pos=this._trackPointer&&w?w:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&w?w:this._map.transform.locationPoint(this._lngLat));let ee=this.options.anchor,le=hc(this.options.offset);if(!ee){let Xe=this._container.offsetWidth,ot=this._container.offsetHeight,Tt;Tt=Q.y+le.bottom.ythis._map.transform.height-ot?["bottom"]:[],Q.xthis._map.transform.width-Xe/2&&Tt.push("right"),ee=Tt.length===0?"bottom":Tt.join("-")}let qe=Q.add(le[ee]);this.options.subpixelPositioning||(qe=qe.round()),c.setTransform(this._container,`${$l[ee]} translate(${qe.x}px,${qe.y}px)`),ku(this._container,ee,"popup")},this._onClose=()=>{this.remove()},this.options=a.e(Object.create(oo),ue)}addTo(ue){return this._map&&this.remove(),this._map=ue,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new a.k("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(ue){return this._lngLat=a.N.convert(ue),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(ue){return this.setDOMContent(document.createTextNode(ue))}setHTML(ue){let w=document.createDocumentFragment(),B=document.createElement("body"),Q;for(B.innerHTML=ue;Q=B.firstChild,Q;)w.appendChild(Q);return this.setDOMContent(w)}getMaxWidth(){var ue;return(ue=this._container)===null||ue===void 0?void 0:ue.style.maxWidth}setMaxWidth(ue){return this.options.maxWidth=ue,this._update(),this}setDOMContent(ue){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=c.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(ue),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(ue){return this._container&&this._container.classList.add(ue),this}removeClassName(ue){return this._container&&this._container.classList.remove(ue),this}setOffset(ue){return this.options.offset=ue,this._update(),this}toggleClassName(ue){if(this._container)return this._container.classList.toggle(ue)}setSubpixelPositioning(ue){this.options.subpixelPositioning=ue}_createCloseButton(){this.options.closeButton&&(this._closeButton=c.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let ue=this._container.querySelector(Vc);ue&&ue.focus()}},i.RasterDEMTileSource=Wt,i.RasterTileSource=pt,i.ScaleControl=class{constructor(ue){this._onMove=()=>{Ac(this._map,this._container,this.options)},this.setUnit=w=>{this.options.unit=w,Ac(this._map,this._container,this.options)},this.options=Object.assign(Object.assign({},xu),ue)}getDefaultPosition(){return"bottom-left"}onAdd(ue){return this._map=ue,this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-scale",ue.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){c.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}},i.ScrollZoomHandler=Kr,i.Style=Ga,i.TerrainControl=class{constructor(ue){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=ue}onAdd(ue){return this._map=ue,this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=c.create("button","maplibregl-ctrl-terrain",this._container),c.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){c.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},i.TwoFingersTouchPitchHandler=Bc,i.TwoFingersTouchRotateHandler=cf,i.TwoFingersTouchZoomHandler=pu,i.TwoFingersTouchZoomRotateHandler=Zi,i.VectorTileSource=ct,i.VideoSource=Nt,i.addSourceType=(ue,w)=>a._(void 0,void 0,void 0,function*(){if(wr(ue))throw new Error(`A source type called "${ue}" already exists.`);((B,Q)=>{sr[B]=Q})(ue,w)}),i.clearPrewarmedResources=function(){let ue=me;ue&&(ue.isPreloaded()&&ue.numActive()===1?(ue.release(_e),me=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},i.getMaxParallelImageRequests=function(){return a.a.MAX_PARALLEL_IMAGE_REQUESTS},i.getRTLTextPluginStatus=function(){return er().getRTLTextPluginStatus()},i.getVersion=function(){return Ku},i.getWorkerCount=function(){return Me.workerCount},i.getWorkerUrl=function(){return a.a.WORKER_URL},i.importScriptInWorkers=function(ue){return Ae().broadcast("IS",ue)},i.prewarm=function(){Se().acquire(_e)},i.setMaxParallelImageRequests=function(ue){a.a.MAX_PARALLEL_IMAGE_REQUESTS=ue},i.setRTLTextPlugin=function(ue,w){return er().setRTLTextPlugin(ue,w)},i.setWorkerCount=function(ue){Me.workerCount=ue},i.setWorkerUrl=function(ue){a.a.WORKER_URL=ue}});var n=e;return n})});var jHe=ye((Exr,HHe)=>{"use strict";var iw=Dr(),RWt=iu().sanitizeHTML,DWt=wJ(),UHe=wx();function VHe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=UHe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var ag=VHe.prototype;ag.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=o7(t)};ag.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};ag.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};ag.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};ag.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};ag.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};ag.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!o7(e)){var r=FWt(e);t.addSource(this.idSource,r)}};ag.findFollowingMapLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function GHe(e){var t={},r={};switch(e.type){case"circle":iw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":iw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":iw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=DWt(n.textposition,n.iconsize);iw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),iw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":iw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function FWt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=RWt(e.sourceattribution)),n}HHe.exports=function(t,r,n){var i=new VHe(t,r);return i.update(n),i}});var QHe=ye((Cxr,$He)=>{"use strict";var CJ=NHe(),kJ=Dr(),ZHe=nx(),WHe=qa(),zWt=ho(),OWt=gv(),s7=vf(),YHe=Sg(),qWt=YHe.drawMode,BWt=YHe.selectMode,NWt=zf().prepSelect,UWt=zf().clearOutline,VWt=zf().clearSelectionsCache,GWt=zf().selectOnClick,nw=wx(),HWt=jHe();function KHe(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Bh=KHe.prototype;Bh.plot=function(e,t,r){var n=this,i;n.map?i=new Promise(function(a,o){n.updateMap(e,t,a,o)}):i=new Promise(function(a,o){n.createMap(e,t,a,o)}),r.push(i)};Bh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=JHe(a.style),s=a.bounds,l=s?[[s.west,s.south],[s.east,s.north]]:null,u=i.map=new CJ.Map({container:i.div,style:o.style,center:LJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:l,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new CJ.AttributionControl({compact:!0})),c={};u.on("styleimagemissing",function(h){var d=h.id;if(!c[d]&&d.includes("-15")){c[d]=!0;var v=new Image(15,15);v.onload=function(){u.addImage(d,v)},v.crossOrigin="Anonymous",v.src="https://unpkg.com/maki@2.1.0/icons/"+d+".svg"}}),u.setTransformRequest(function(h){return h=h.replace("https://fonts.openmaptiles.org/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://tiles.basemaps.cartocdn.com/fonts/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular","https://fonts.openmaptiles.org/Klokantech Noto Sans Regular"),{url:h}}),u._canvas.style.left="0px",u._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var f=[];f.push(new Promise(function(h){u.once("load",h)})),f=f.concat(ZHe.fetchTraceGeoData(e)),Promise.all(f).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Bh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],l=JHe(o.style);JSON.stringify(i.styleObj)!==JSON.stringify(l)&&(i.styleObj=l,a.setStyle(l.style),i.traceHash={},s.push(new Promise(function(u){a.once("styledata",u)}))),s=s.concat(ZHe.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Bh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&GWt(l.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&s7.click(n,l.originalEvent)}}};Bh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(l){var u=t.map.unproject(l);return[u.lng,u.lat]}var a=e.dragmode,o;o=function(l,u){if(u.isRect){var c=l.range={};c[t.id]=[i([u.xmin,u.ymin]),i([u.xmax,u.ymax])]}else{var f=l.lassoPoints={};f[t.id]=u.map(i)}};var s=t.dragOptions;t.dragOptions=kJ.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),BWt(a)||qWt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){NWt(l,u,c,t.dragOptions,a)},OWt.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Bh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Bh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var PJ=Dr(),WWt=k_(),XWt=Yd(),eje=GC();tje.exports=function(t,r,n){WWt(t,r,n,{type:"map",attributes:eje,handleDefaults:ZWt,partition:"y"})};function ZWt(e,t,r){r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var n=r("bounds.west"),i=r("bounds.east"),a=r("bounds.south"),o=r("bounds.north");(n===void 0||i===void 0||a===void 0||o===void 0)&&delete t.bounds,XWt(e,t,{name:"layers",handleItemDefaults:YWt}),t._input=e}function YWt(e,t){function r(l,u){return PJ.coerce(e,t,eje.layers,l,u)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",PJ.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),PJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var u7=ye(l0=>{"use strict";var l7=Dr(),ije=l7.strTranslate,KWt=l7.strScale,JWt=Id().getSubplotCalcData,$Wt=Wp(),QWt=Oa(),nje=So(),eXt=iu(),tXt=QHe(),Tx="map";l0.name=Tx;l0.attr="subplot";l0.idRoot=Tx;l0.idRegex=l0.attrRegex=l7.counterRegex(Tx);l0.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}};l0.layoutAttributes=GC();l0.supplyLayoutDefaults=rje();l0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[Tx],a=0;a_/2){var b=f.split("|").join("
");d.text(b).attr("data-unformatted",b).call(eXt.convertToTspans,e),v=nje.bBox(d.node())}d.attr("transform",ije(-3,-v.height+8)),h.insert("rect",".static-attribution").attr({x:-v.width-6,y:-v.height-3,width:v.width+6,height:v.height+3,fill:"rgba(255, 255, 255, 0.75)"});var p=1;v.width+6>_&&(p=_/(v.width+6));var C=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];h.attr("transform",ije(C[0],C[1])+KWt(p))}};l0.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[Tx],n=0;n{"use strict";aje.exports={attributes:e7(),supplyDefaults:yHe(),colorbar:$d(),formatLabels:bJ(),calc:cF(),plot:IHe(),hoverPoints:a7().hoverPoints,eventData:zHe(),selectPoints:qHe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermap",basePlotModule:u7(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}});var lje=ye((Ixr,sje)=>{"use strict";sje.exports=oje()});var IJ=ye((Rxr,uje)=>{"use strict";var d1=JA(),rXt=Tu(),iXt=Qo().hovertemplateAttrs,nXt=Vl(),Ax=Ao().extendFlat;uje.exports=Ax({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Ax({},d1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:d1.text,hovertext:d1.hovertext,marker:{line:{color:Ax({},d1.marker.line.color,{editType:"plot"}),width:Ax({},d1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Ax({},d1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Ax({},d1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Ax({},d1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:d1.hoverinfo,hovertemplate:iXt({},{keys:["properties"]}),showlegend:Ax({},nXt.showlegend,{dflt:!1})},rXt("",{cLetter:"z",editTypeOverride:"calc"}))});var fje=ye((Dxr,cje)=>{"use strict";var XC=Dr(),aXt=Jh(),oXt=IJ();cje.exports=function(t,r,n,i){function a(c,f){return XC.coerce(t,r,oXt,c,f)}var o=a("locations"),s=a("z"),l=a("geojson");if(!XC.isArrayOrTypedArray(o)||!o.length||!XC.isArrayOrTypedArray(s)||!s.length||!(typeof l=="string"&&l!==""||XC.isPlainObject(l))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate");var u=a("marker.line.width");u&&a("marker.line.color"),a("marker.opacity"),aXt(t,r,i,a,{prefix:"",cLetter:"z"}),XC.coerceSelectionMarkerOpacity(r,a)}});var RJ=ye((Fxr,vje)=>{"use strict";var sXt=Eo(),v1=Dr(),lXt=tc(),uXt=So(),cXt=rx().makeBlank,hje=nx();function fXt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:cXt()};if(!r)return a;var o=hje.extractTraceFeature(e);if(!o)return a;var s=lXt.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;v1.isArrayOrTypedArray(l.opacity)&&(c=function(C){var E=C.mo;return sXt(E)?+v1.constrain(E,0,1):0});var f;v1.isArrayOrTypedArray(u.color)&&(f=function(C){return C.mlc});var h;v1.isArrayOrTypedArray(u.width)&&(h=function(C){return C.mlw});for(var d=0;d{"use strict";var gje=RJ().convert,hXt=RJ().convertOnSelect,pje=wx().traceLayerPrefix;function mje(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",pje+t+"-fill"],["line",pje+t+"-line"]],this.below=null}var E5=mje.prototype;E5.update=function(e){this._update(gje(e)),e[0].trace._glTrace=this};E5.updateOnSelect=function(e){this._update(hXt(e))};E5._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};E5.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};yje.exports=function(t,r){var n=r[0].trace,i=new mje(t,n.uid),a=i.sourceId,o=gje(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var bje=ye((Oxr,xje)=>{"use strict";xje.exports={attributes:IJ(),supplyDefaults:fje(),colorbar:M_(),calc:IF(),plot:_je(),hoverPoints:DF(),eventData:FF(),selectPoints:zF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";wje.exports=bje()});var FJ=ye((Bxr,Sje)=>{"use strict";var dXt=Tu(),vXt=Qo().hovertemplateAttrs,Aje=Vl(),c7=e7(),DJ=Ao().extendFlat;Sje.exports=DJ({lon:c7.lon,lat:c7.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:c7.text,hovertext:c7.hovertext,hoverinfo:DJ({},Aje.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:vXt(),showlegend:DJ({},Aje.showlegend,{dflt:!1})},dXt("",{cLetter:"z",editTypeOverride:"calc"}))});var Eje=ye((Nxr,Mje)=>{"use strict";var pXt=Dr(),gXt=Jh(),mXt=FJ();Mje.exports=function(t,r,n,i){function a(u,c){return pXt.coerce(t,r,mXt,u,c)}var o=a("lon")||[],s=a("lat")||[],l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),gXt(t,r,i,a,{prefix:"",cLetter:"z"})}});var Lje=ye((Uxr,kje)=>{"use strict";var zJ=Eo(),yXt=Dr().isArrayOrTypedArray,OJ=hs().BADNUM,_Xt=Fv(),Cje=Dr()._;kje.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=yXt(a)&&a.length,s=0;s{"use strict";var xXt=Eo(),qJ=Dr(),Pje=Ca(),Ije=tc(),Rje=hs().BADNUM,bXt=rx().makeBlank;Dje.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:bXt()};if(!n)return a;var o=[],s,l=r.z,u=r.radius,c=qJ.isArrayOrTypedArray(l)&&l.length,f=qJ.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:v})}}var b=Ije.extractOpts(r),p=b.reversescale?Ije.flipScale(b.colorscale):b.colorscale,C=p[0][1],E=Pje.opacity(C)<1?C:Pje.addOpacity(C,0),A=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var zje=Fje(),wXt=wx().traceLayerPrefix;function Oje(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",wXt+t+"-heatmap"]],this.below=null}var f7=Oje.prototype;f7.update=function(e){var t=this.subplot,r=this.layerList,n=zje(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};f7.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};qje.exports=function(t,r){var n=r[0].trace,i=new Oje(t,n.uid),a=i.sourceId,o=zje(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var Uje=ye((Hxr,Nje)=>{"use strict";var TXt=ho(),AXt=a7().hoverPoints,SXt=a7().getExtraText;Nje.exports=function(t,r,n){var i=AXt(t,r,n);if(i){var a=i[0],o=a.cd,s=o[0].trace,l=o[a.index];if(delete a.color,"z"in l){var u=a.subplot.mockAxis;a.z=l.z,a.zLabel=TXt.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=SXt(s,l,o[0].t.labels),[a]}}});var Gje=ye((jxr,Vje)=>{"use strict";Vje.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var jje=ye((Wxr,Hje)=>{"use strict";Hje.exports={attributes:FJ(),supplyDefaults:Eje(),colorbar:M_(),formatLabels:bJ(),calc:Lje(),plot:Bje(),hoverPoints:Uje(),eventData:Gje(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";Wje.exports=jje()});var NJ=ye((Yxr,Jje)=>{"use strict";var MXt=ec(),EXt=Vl(),Zje=Eh(),BJ=i3(),CXt=kc().attributes,Yje=Qo().hovertemplateAttrs,kXt=Tu(),LXt=pl().templatedArray,PXt=df().descriptionOnlyNumbers,Kje=Ao().extendFlat,IXt=mc().overrideAll,Zxr=Jje.exports=IXt({hoverinfo:Kje({},EXt.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:BJ.hoverlabel,domain:CXt({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},valueformat:{valType:"string",dflt:".3s",description:PXt("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:MXt({autoShadowDflt:!0}),customdata:void 0,node:{label:{valType:"data_array",dflt:[]},groups:{valType:"info_array",impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:"number",editType:"calc"}},x:{valType:"data_array",dflt:[]},y:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Zje.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:.5,arrayOk:!0}},pad:{valType:"number",arrayOk:!1,min:0,dflt:20},thickness:{valType:"number",arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:BJ.hoverlabel,hovertemplate:Yje({},{keys:["value","label"]}),align:{valType:"enumerated",values:["justify","left","right","center"],dflt:"justify"}},link:{arrowlen:{valType:"number",min:0,dflt:0},label:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},hovercolor:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Zje.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:0,arrayOk:!0}},source:{valType:"data_array",dflt:[]},target:{valType:"data_array",dflt:[]},value:{valType:"data_array",dflt:[]},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:BJ.hoverlabel,hovertemplate:Yje({},{keys:["value","label"]}),colorscales:LXt("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:Kje(kXt().colorscale,{dflt:[[0,"white"],[1,"black"]]})})}},"calc","nested")});var rWe=ye((Kxr,tWe)=>{"use strict";var C5=Dr(),h7=NJ(),RXt=Ca(),$je=cd(),DXt=kc().defaults,Qje=cM(),eWe=pl(),FXt=Yd();tWe.exports=function(t,r,n,i){function a(A,L){return C5.coerce(t,r,h7,A,L)}var o=C5.extendDeep(i.hoverlabel,t.hoverlabel),s=t.node,l=eWe.newContainer(r,"node");function u(A,L){return C5.coerce(s,l,h7.node,A,L)}u("label"),u("groups"),u("x"),u("y"),u("pad"),u("thickness"),u("line.color"),u("line.width"),u("hoverinfo",t.hoverinfo),Qje(s,l,u,o),u("hovertemplate"),u("align");var c=i.colorway,f=function(A){return c[A%c.length]};u("color",l.label.map(function(A,L){return RXt.addOpacity(f(L),.8)})),u("customdata");var h=t.link||{},d=eWe.newContainer(r,"link");function v(A,L){return C5.coerce(h,d,h7.link,A,L)}v("label"),v("arrowlen"),v("source"),v("target"),v("value"),v("line.color"),v("line.width"),v("hoverinfo",t.hoverinfo),Qje(h,d,v,o),v("hovertemplate");var _=$je(i.paper_bgcolor).getLuminance()<.333,b=_?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",p=v("color",b);function C(A){var L=$je(A);if(!L.isValid())return A;var x=L.getAlpha();return x<=.8?L.setAlpha(x+.2):L=_?L.brighten():L.darken(),L.toRgbString()}v("hovercolor",Array.isArray(p)?p.map(C):C(p)),v("customdata"),FXt(h,d,{name:"colorscales",handleItemDefaults:zXt}),DXt(r,i,a),a("orientation"),a("valueformat"),a("valuesuffix");var E;l.x.length&&l.y.length&&(E="freeform"),a("arrangement",E),C5.coerceFont(a,"textfont",i.font,{autoShadowDflt:!0}),r._length=null};function zXt(e,t){function r(n,i){return C5.coerce(e,t,h7.link.colorscales,n,i)}r("label"),r("cmin"),r("cmax"),r("colorscale")}});var UJ=ye((Jxr,iWe)=>{"use strict";iWe.exports=OXt;function OXt(e){for(var t=e.length,r=new Array(t),n=new Array(t),i=new Array(t),a=new Array(t),o=new Array(t),s=new Array(t),l=0;l0;){b=C[C.length-1];var E=e[b];if(a[b]=0&&s[b].push(o[L])}a[b]=A}else{if(n[b]===r[b]){for(var x=[],k=[],M=0,A=p.length-1;A>=0;--A){var g=p[A];if(i[g]=!1,x.push(g),k.push(s[g]),M+=s[g].length,o[g]=c.length,g===b){p.length=A;break}}c.push(x);for(var P=new Array(M),A=0;A{"use strict";var qXt=UJ(),k5=Dr(),BXt=Km().wrap,ZC=k5.isArrayOrTypedArray,nWe=k5.isIndex,aWe=tc();function NXt(e){var t=e.node,r=e.link,n=[],i=ZC(r.color),a=ZC(r.hovercolor),o=ZC(r.customdata),s={},l={},u=r.colorscales.length,c;for(c=0;cv&&(v=r.source[c]),r.target[c]>v&&(v=r.target[c]);var _=v+1;e.node._count=_;var b,p=e.node.groups,C={};for(c=0;c0&&nWe(M,_)&&nWe(g,_)&&!(C.hasOwnProperty(M)&&C.hasOwnProperty(g)&&C[M]===C[g])){C.hasOwnProperty(g)&&(g=C[g]),C.hasOwnProperty(M)&&(M=C[M]),M=+M,g=+g,s[M]=s[g]=!0;var P="";r.label&&r.label[c]&&(P=r.label[c]);var T=null;P&&l.hasOwnProperty(P)&&(T=l[P]),n.push({pointNumber:c,label:P,color:i?r.color[c]:r.color,hovercolor:a?r.hovercolor[c]:r.hovercolor,customdata:o?r.customdata[c]:r.customdata,concentrationscale:T,source:M,target:g,value:+k}),x.source.push(M),x.target.push(g)}}var z=_+p.length,O=ZC(t.color),V=ZC(t.customdata),G=[];for(c=0;c_-1,childrenNodes:[],pointNumber:c,label:Z,color:O?t.color[c]:t.color,customdata:V?t.customdata[c]:t.customdata})}var H=!1;return UXt(z,x.source,x.target)&&(H=!0),{circular:H,links:n,nodes:G,groups:p,groupLookup:C}}function UXt(e,t,r){for(var n=k5.init2dArray(e,0),i=0;i1})}oWe.exports=function(t,r){var n=NXt(r);return BXt({circular:n.circular,_nodes:n.nodes,_links:n.links,_groups:n.groups,_groupLookup:n.groupLookup})}});var uWe=ye((d7,lWe)=>{(function(e,t){typeof d7=="object"&&typeof lWe!="undefined"?t(d7):(e=e||self,t(e.d3=e.d3||{}))})(d7,function(e){"use strict";function t(k){var M=+this._x.call(null,k),g=+this._y.call(null,k);return r(this.cover(M,g),M,g,k)}function r(k,M,g,P){if(isNaN(M)||isNaN(g))return k;var T,z=k._root,O={data:P},V=k._x0,G=k._y0,Z=k._x1,H=k._y1,N,j,re,oe,_e,Me,ke,me;if(!z)return k._root=O,k;for(;z.length;)if((_e=M>=(N=(V+Z)/2))?V=N:Z=N,(Me=g>=(j=(G+H)/2))?G=j:H=j,T=z,!(z=z[ke=Me<<1|_e]))return T[ke]=O,k;if(re=+k._x.call(null,z.data),oe=+k._y.call(null,z.data),M===re&&g===oe)return O.next=z,T?T[ke]=O:k._root=O,k;do T=T?T[ke]=new Array(4):k._root=new Array(4),(_e=M>=(N=(V+Z)/2))?V=N:Z=N,(Me=g>=(j=(G+H)/2))?G=j:H=j;while((ke=Me<<1|_e)===(me=(oe>=j)<<1|re>=N));return T[me]=z,T[ke]=O,k}function n(k){var M,g,P=k.length,T,z,O=new Array(P),V=new Array(P),G=1/0,Z=1/0,H=-1/0,N=-1/0;for(g=0;gH&&(H=T),zN&&(N=z));if(G>H||Z>N)return this;for(this.cover(G,Z).cover(H,N),g=0;gk||k>=T||P>M||M>=z;)switch(Z=(MH||(V=oe.y0)>N||(G=oe.x1)=ke)<<1|k>=Me)&&(oe=j[j.length-1],j[j.length-1]=j[j.length-1-_e],j[j.length-1-_e]=oe)}else{var me=k-+this._x.call(null,re.data),ie=M-+this._y.call(null,re.data),Se=me*me+ie*ie;if(Se=(j=(O+G)/2))?O=j:G=j,(_e=N>=(re=(V+Z)/2))?V=re:Z=re,M=g,!(g=g[Me=_e<<1|oe]))return this;if(!g.length)break;(M[Me+1&3]||M[Me+2&3]||M[Me+3&3])&&(P=M,ke=Me)}for(;g.data!==k;)if(T=g,!(g=g.next))return this;return(z=g.next)&&delete g.next,T?(z?T.next=z:delete T.next,this):M?(z?M[Me]=z:delete M[Me],(g=M[0]||M[1]||M[2]||M[3])&&g===(M[3]||M[2]||M[1]||M[0])&&!g.length&&(P?P[ke]=g:this._root=g),this):(this._root=z,this)}function c(k){for(var M=0,g=k.length;M{(function(e,t){t(typeof v7=="object"&&typeof cWe!="undefined"?v7:e.d3=e.d3||{})})(v7,function(e){"use strict";var t="$";function r(){}r.prototype=n.prototype={constructor:r,has:function(_){return t+_ in this},get:function(_){return this[t+_]},set:function(_,b){return this[t+_]=b,this},remove:function(_){var b=t+_;return b in this&&delete this[b]},clear:function(){for(var _ in this)_[0]===t&&delete this[_]},keys:function(){var _=[];for(var b in this)b[0]===t&&_.push(b.slice(1));return _},values:function(){var _=[];for(var b in this)b[0]===t&&_.push(this[b]);return _},entries:function(){var _=[];for(var b in this)b[0]===t&&_.push({key:b.slice(1),value:this[b]});return _},size:function(){var _=0;for(var b in this)b[0]===t&&++_;return _},empty:function(){for(var _ in this)if(_[0]===t)return!1;return!0},each:function(_){for(var b in this)b[0]===t&&_(this[b],b.slice(1),this)}};function n(_,b){var p=new r;if(_ instanceof r)_.each(function(x,k){p.set(k,x)});else if(Array.isArray(_)){var C=-1,E=_.length,A;if(b==null)for(;++C=_.length)return p!=null&&x.sort(p),C!=null?C(x):x;for(var P=-1,T=x.length,z=_[k++],O,V,G=n(),Z,H=M();++P_.length)return x;var M,g=b[k-1];return C!=null&&k>=_.length?M=x.entries():(M=[],x.each(function(P,T){M.push({key:T,values:L(P,k)})})),g!=null?M.sort(function(P,T){return g(P.key,T.key)}):M}return E={object:function(x){return A(x,0,a,o)},map:function(x){return A(x,0,s,l)},entries:function(x){return L(A(x,0,s,l),0)},key:function(x){return _.push(x),E},sortKeys:function(x){return b[_.length-1]=x,E},sortValues:function(x){return p=x,E},rollup:function(x){return C=x,E}}}function a(){return{}}function o(_,b,p){_[b]=p}function s(){return n()}function l(_,b,p){_.set(b,p)}function u(){}var c=n.prototype;u.prototype=f.prototype={constructor:u,has:c.has,add:function(_){return _+="",this[t+_]=_,this},remove:c.remove,clear:c.clear,values:c.keys,size:c.size,empty:c.empty,each:c.each};function f(_,b){var p=new u;if(_ instanceof u)_.each(function(A){p.add(A)});else if(_){var C=-1,E=_.length;if(b==null)for(;++C{(function(e,t){typeof g7=="object"&&typeof fWe!="undefined"?t(g7):(e=e||self,t(e.d3=e.d3||{}))})(g7,function(e){"use strict";var t={value:function(){}};function r(){for(var s=0,l=arguments.length,u={},c;s=0&&(c=u.slice(f+1),u=u.slice(0,f)),u&&!l.hasOwnProperty(u))throw new Error("unknown type: "+u);return{type:u,name:c}})}n.prototype=r.prototype={constructor:n,on:function(s,l){var u=this._,c=i(s+"",u),f,h=-1,d=c.length;if(arguments.length<2){for(;++h0)for(var u=new Array(f),c=0,f,h;c{(function(e,t){typeof m7=="object"&&typeof dWe!="undefined"?t(m7):(e=e||self,t(e.d3=e.d3||{}))})(m7,function(e){"use strict";var t=0,r=0,n=0,i=1e3,a,o,s=0,l=0,u=0,c=typeof performance=="object"&&performance.now?performance:Date,f=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(k){setTimeout(k,17)};function h(){return l||(f(d),l=c.now()+u)}function d(){l=0}function v(){this._call=this._time=this._next=null}v.prototype=_.prototype={constructor:v,restart:function(k,M,g){if(typeof k!="function")throw new TypeError("callback is not a function");g=(g==null?h():+g)+(M==null?0:+M),!this._next&&o!==this&&(o?o._next=this:a=this,o=this),this._call=k,this._time=g,A()},stop:function(){this._call&&(this._call=null,this._time=1/0,A())}};function _(k,M,g){var P=new v;return P.restart(k,M,g),P}function b(){h(),++t;for(var k=a,M;k;)(M=l-k._time)>=0&&k._call.call(null,M),k=k._next;--t}function p(){l=(s=c.now())+u,t=r=0;try{b()}finally{t=0,E(),l=0}}function C(){var k=c.now(),M=k-s;M>i&&(u-=M,s=k)}function E(){for(var k,M=a,g,P=1/0;M;)M._call?(P>M._time&&(P=M._time),k=M,M=M._next):(g=M._next,M._next=null,M=k?k._next=g:a=g);o=k,A(P)}function A(k){if(!t){r&&(r=clearTimeout(r));var M=k-l;M>24?(k<1/0&&(r=setTimeout(p,k-c.now()-u)),n&&(n=clearInterval(n))):(n||(s=c.now(),n=setInterval(C,i)),t=1,f(p))}}function L(k,M,g){var P=new v;return M=M==null?0:+M,P.restart(function(T){P.stop(),k(T+M)},M,g),P}function x(k,M,g){var P=new v,T=M;return M==null?(P.restart(k,M,g),P):(M=+M,g=g==null?h():+g,P.restart(function z(O){O+=T,P.restart(z,T+=M,g),k(O)},M,g),P)}e.interval=x,e.now=h,e.timeout=L,e.timer=_,e.timerFlush=b,Object.defineProperty(e,"__esModule",{value:!0})})});var gWe=ye((y7,pWe)=>{(function(e,t){typeof y7=="object"&&typeof pWe!="undefined"?t(y7,uWe(),p7(),hWe(),vWe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,e.d3)})(y7,function(e,t,r,n,i){"use strict";function a(k,M){var g;k==null&&(k=0),M==null&&(M=0);function P(){var T,z=g.length,O,V=0,G=0;for(T=0;TN.index){var Fe=j-De.x-De.vx,ce=re-De.y-De.vy,Ye=Fe*Fe+ce*ce;Yej+ge||Lere+ge||AeG.r&&(G.r=G[Z].r)}function V(){if(M){var G,Z=M.length,H;for(g=new Array(Z),G=0;G1?(_e==null?V.remove(oe):V.set(oe,re(_e)),M):V.get(oe)},find:function(oe,_e,Me){var ke=0,me=k.length,ie,Se,Le,Ae,De;for(Me==null?Me=1/0:Me*=Me,ke=0;ke1?(Z.on(oe,_e),M):Z.on(oe)}}}function E(){var k,M,g,P=o(-30),T,z=1,O=1/0,V=.81;function G(j){var re,oe=k.length,_e=t.quadtree(k,v,_).visitAfter(H);for(g=j,re=0;re=O)return;(j.data!==M||j.next)&&(Me===0&&(Me=s(),ie+=Me*Me),ke===0&&(ke=s(),ie+=ke*ke),ie{(function(e,t){typeof _7=="object"&&typeof mWe!="undefined"?t(_7):(e=e||self,t(e.d3=e.d3||{}))})(_7,function(e){"use strict";var t=Math.PI,r=2*t,n=1e-6,i=r-n;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new a}a.prototype=o.prototype={constructor:a,moveTo:function(s,l){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(s,l){this._+="L"+(this._x1=+s)+","+(this._y1=+l)},quadraticCurveTo:function(s,l,u,c){this._+="Q"+ +s+","+ +l+","+(this._x1=+u)+","+(this._y1=+c)},bezierCurveTo:function(s,l,u,c,f,h){this._+="C"+ +s+","+ +l+","+ +u+","+ +c+","+(this._x1=+f)+","+(this._y1=+h)},arcTo:function(s,l,u,c,f){s=+s,l=+l,u=+u,c=+c,f=+f;var h=this._x1,d=this._y1,v=u-s,_=c-l,b=h-s,p=d-l,C=b*b+p*p;if(f<0)throw new Error("negative radius: "+f);if(this._x1===null)this._+="M"+(this._x1=s)+","+(this._y1=l);else if(C>n)if(!(Math.abs(p*v-_*b)>n)||!f)this._+="L"+(this._x1=s)+","+(this._y1=l);else{var E=u-h,A=c-d,L=v*v+_*_,x=E*E+A*A,k=Math.sqrt(L),M=Math.sqrt(C),g=f*Math.tan((t-Math.acos((L+C-x)/(2*k*M)))/2),P=g/M,T=g/k;Math.abs(P-1)>n&&(this._+="L"+(s+P*b)+","+(l+P*p)),this._+="A"+f+","+f+",0,0,"+ +(p*E>b*A)+","+(this._x1=s+T*v)+","+(this._y1=l+T*_)}},arc:function(s,l,u,c,f,h){s=+s,l=+l,u=+u,h=!!h;var d=u*Math.cos(c),v=u*Math.sin(c),_=s+d,b=l+v,p=1^h,C=h?c-f:f-c;if(u<0)throw new Error("negative radius: "+u);this._x1===null?this._+="M"+_+","+b:(Math.abs(this._x1-_)>n||Math.abs(this._y1-b)>n)&&(this._+="L"+_+","+b),u&&(C<0&&(C=C%r+r),C>i?this._+="A"+u+","+u+",0,1,"+p+","+(s-d)+","+(l-v)+"A"+u+","+u+",0,1,"+p+","+(this._x1=_)+","+(this._y1=b):C>n&&(this._+="A"+u+","+u+",0,"+ +(C>=t)+","+p+","+(this._x1=s+u*Math.cos(f))+","+(this._y1=l+u*Math.sin(f))))},rect:function(s,l,u,c){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)+"h"+ +u+"v"+ +c+"h"+-u+"Z"},toString:function(){return this._}},e.path=o,Object.defineProperty(e,"__esModule",{value:!0})})});var VJ=ye((x7,_We)=>{(function(e,t){typeof x7=="object"&&typeof _We!="undefined"?t(x7,yWe()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(x7,function(e,t){"use strict";function r(St){return function(){return St}}var n=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,l=Math.sin,u=Math.sqrt,c=1e-12,f=Math.PI,h=f/2,d=2*f;function v(St){return St>1?0:St<-1?f:Math.acos(St)}function _(St){return St>=1?h:St<=-1?-h:Math.asin(St)}function b(St){return St.innerRadius}function p(St){return St.outerRadius}function C(St){return St.startAngle}function E(St){return St.endAngle}function A(St){return St&&St.padAngle}function L(St,Cr,Qr,pi,fn,Sn,En,ki){var _n=Qr-St,ya=pi-Cr,Jn=En-fn,Ma=ki-Sn,_o=Ma*_n-Jn*ya;if(!(_o*_oZl*Zl+Su*Su&&(Ss=Js,fl=Os),{cx:Ss,cy:fl,x01:-Jn,y01:-Ma,x11:Ss*(fn/Fl-1),y11:fl*(fn/Fl-1)}}function k(){var St=b,Cr=p,Qr=r(0),pi=null,fn=C,Sn=E,En=A,ki=null;function _n(){var ya,Jn,Ma=+St.apply(this,arguments),_o=+Cr.apply(this,arguments),No=fn.apply(this,arguments)-h,po=Sn.apply(this,arguments)-h,Lo=n(po-No),Co=po>No;if(ki||(ki=ya=t.path()),_oc))ki.moveTo(0,0);else if(Lo>d-c)ki.moveTo(_o*a(No),_o*l(No)),ki.arc(0,0,_o,No,po,!Co),Ma>c&&(ki.moveTo(Ma*a(po),Ma*l(po)),ki.arc(0,0,Ma,po,No,Co));else{var Fs=No,zs=po,ul=No,cl=po,Fl=Lo,cs=Lo,nl=En.apply(this,arguments)/2,Ss=nl>c&&(pi?+pi.apply(this,arguments):u(Ma*Ma+_o*_o)),fl=s(n(_o-Ma)/2,+Qr.apply(this,arguments)),Js=fl,Os=fl,Io,us;if(Ss>c){var Zl=_(Ss/Ma*l(nl)),Su=_(Ss/_o*l(nl));(Fl-=Zl*2)>c?(Zl*=Co?1:-1,ul+=Zl,cl-=Zl):(Fl=0,ul=cl=(No+po)/2),(cs-=Su*2)>c?(Su*=Co?1:-1,Fs+=Su,zs-=Su):(cs=0,Fs=zs=(No+po)/2)}var nc=_o*a(Fs),ws=_o*l(Fs),Fn=Ma*a(cl),_a=Ma*l(cl);if(fl>c){var Vu=_o*a(zs),zl=_o*l(zs),xo=Ma*a(ul),Yl=Ma*l(ul),Us;if(Loc?Os>c?(Io=x(xo,Yl,nc,ws,_o,Os,Co),us=x(Vu,zl,Fn,_a,_o,Os,Co),ki.moveTo(Io.cx+Io.x01,Io.cy+Io.y01),Osc)||!(Fl>c)?ki.lineTo(Fn,_a):Js>c?(Io=x(Fn,_a,Vu,zl,Ma,-Js,Co),us=x(nc,ws,xo,Yl,Ma,-Js,Co),ki.lineTo(Io.cx+Io.x01,Io.cy+Io.y01),Js=_o;--No)ki.point(zs[No],ul[No]);ki.lineEnd(),ki.areaEnd()}Co&&(zs[Ma]=+St(Lo,Ma,Jn),ul[Ma]=+Qr(Lo,Ma,Jn),ki.point(Cr?+Cr(Lo,Ma,Jn):zs[Ma],pi?+pi(Lo,Ma,Jn):ul[Ma]))}if(Fs)return ki=null,Fs+""||null}function ya(){return z().defined(fn).curve(En).context(Sn)}return _n.x=function(Jn){return arguments.length?(St=typeof Jn=="function"?Jn:r(+Jn),Cr=null,_n):St},_n.x0=function(Jn){return arguments.length?(St=typeof Jn=="function"?Jn:r(+Jn),_n):St},_n.x1=function(Jn){return arguments.length?(Cr=Jn==null?null:typeof Jn=="function"?Jn:r(+Jn),_n):Cr},_n.y=function(Jn){return arguments.length?(Qr=typeof Jn=="function"?Jn:r(+Jn),pi=null,_n):Qr},_n.y0=function(Jn){return arguments.length?(Qr=typeof Jn=="function"?Jn:r(+Jn),_n):Qr},_n.y1=function(Jn){return arguments.length?(pi=Jn==null?null:typeof Jn=="function"?Jn:r(+Jn),_n):pi},_n.lineX0=_n.lineY0=function(){return ya().x(St).y(Qr)},_n.lineY1=function(){return ya().x(St).y(pi)},_n.lineX1=function(){return ya().x(Cr).y(Qr)},_n.defined=function(Jn){return arguments.length?(fn=typeof Jn=="function"?Jn:r(!!Jn),_n):fn},_n.curve=function(Jn){return arguments.length?(En=Jn,Sn!=null&&(ki=En(Sn)),_n):En},_n.context=function(Jn){return arguments.length?(Jn==null?Sn=ki=null:ki=En(Sn=Jn),_n):Sn},_n}function V(St,Cr){return CrSt?1:Cr>=St?0:NaN}function G(St){return St}function Z(){var St=G,Cr=V,Qr=null,pi=r(0),fn=r(d),Sn=r(0);function En(ki){var _n,ya=ki.length,Jn,Ma,_o=0,No=new Array(ya),po=new Array(ya),Lo=+pi.apply(this,arguments),Co=Math.min(d,Math.max(-d,fn.apply(this,arguments)-Lo)),Fs,zs=Math.min(Math.abs(Co)/ya,Sn.apply(this,arguments)),ul=zs*(Co<0?-1:1),cl;for(_n=0;_n0&&(_o+=cl);for(Cr!=null?No.sort(function(Fl,cs){return Cr(po[Fl],po[cs])}):Qr!=null&&No.sort(function(Fl,cs){return Qr(ki[Fl],ki[cs])}),_n=0,Ma=_o?(Co-ya*ul)/_o:0;_n0?cl*Ma:0)+ul,po[Jn]={data:ki[Jn],index:_n,value:cl,startAngle:Lo,endAngle:Fs,padAngle:zs};return po}return En.value=function(ki){return arguments.length?(St=typeof ki=="function"?ki:r(+ki),En):St},En.sortValues=function(ki){return arguments.length?(Cr=ki,Qr=null,En):Cr},En.sort=function(ki){return arguments.length?(Qr=ki,Cr=null,En):Qr},En.startAngle=function(ki){return arguments.length?(pi=typeof ki=="function"?ki:r(+ki),En):pi},En.endAngle=function(ki){return arguments.length?(fn=typeof ki=="function"?ki:r(+ki),En):fn},En.padAngle=function(ki){return arguments.length?(Sn=typeof ki=="function"?ki:r(+ki),En):Sn},En}var H=j(g);function N(St){this._curve=St}N.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(St,Cr){this._curve.point(Cr*Math.sin(St),Cr*-Math.cos(St))}};function j(St){function Cr(Qr){return new N(St(Qr))}return Cr._curve=St,Cr}function re(St){var Cr=St.curve;return St.angle=St.x,delete St.x,St.radius=St.y,delete St.y,St.curve=function(Qr){return arguments.length?Cr(j(Qr)):Cr()._curve},St}function oe(){return re(z().curve(H))}function _e(){var St=O().curve(H),Cr=St.curve,Qr=St.lineX0,pi=St.lineX1,fn=St.lineY0,Sn=St.lineY1;return St.angle=St.x,delete St.x,St.startAngle=St.x0,delete St.x0,St.endAngle=St.x1,delete St.x1,St.radius=St.y,delete St.y,St.innerRadius=St.y0,delete St.y0,St.outerRadius=St.y1,delete St.y1,St.lineStartAngle=function(){return re(Qr())},delete St.lineX0,St.lineEndAngle=function(){return re(pi())},delete St.lineX1,St.lineInnerRadius=function(){return re(fn())},delete St.lineY0,St.lineOuterRadius=function(){return re(Sn())},delete St.lineY1,St.curve=function(En){return arguments.length?Cr(j(En)):Cr()._curve},St}function Me(St,Cr){return[(Cr=+Cr)*Math.cos(St-=Math.PI/2),Cr*Math.sin(St)]}var ke=Array.prototype.slice;function me(St){return St.source}function ie(St){return St.target}function Se(St){var Cr=me,Qr=ie,pi=P,fn=T,Sn=null;function En(){var ki,_n=ke.call(arguments),ya=Cr.apply(this,_n),Jn=Qr.apply(this,_n);if(Sn||(Sn=ki=t.path()),St(Sn,+pi.apply(this,(_n[0]=ya,_n)),+fn.apply(this,_n),+pi.apply(this,(_n[0]=Jn,_n)),+fn.apply(this,_n)),ki)return Sn=null,ki+""||null}return En.source=function(ki){return arguments.length?(Cr=ki,En):Cr},En.target=function(ki){return arguments.length?(Qr=ki,En):Qr},En.x=function(ki){return arguments.length?(pi=typeof ki=="function"?ki:r(+ki),En):pi},En.y=function(ki){return arguments.length?(fn=typeof ki=="function"?ki:r(+ki),En):fn},En.context=function(ki){return arguments.length?(Sn=ki==null?null:ki,En):Sn},En}function Le(St,Cr,Qr,pi,fn){St.moveTo(Cr,Qr),St.bezierCurveTo(Cr=(Cr+pi)/2,Qr,Cr,fn,pi,fn)}function Ae(St,Cr,Qr,pi,fn){St.moveTo(Cr,Qr),St.bezierCurveTo(Cr,Qr=(Qr+fn)/2,pi,Qr,pi,fn)}function De(St,Cr,Qr,pi,fn){var Sn=Me(Cr,Qr),En=Me(Cr,Qr=(Qr+fn)/2),ki=Me(pi,Qr),_n=Me(pi,fn);St.moveTo(Sn[0],Sn[1]),St.bezierCurveTo(En[0],En[1],ki[0],ki[1],_n[0],_n[1])}function Pe(){return Se(Le)}function ge(){return Se(Ae)}function Fe(){var St=Se(De);return St.angle=St.x,delete St.x,St.radius=St.y,delete St.y,St}var ce={draw:function(St,Cr){var Qr=Math.sqrt(Cr/f);St.moveTo(Qr,0),St.arc(0,0,Qr,0,d)}},Ye={draw:function(St,Cr){var Qr=Math.sqrt(Cr/5)/2;St.moveTo(-3*Qr,-Qr),St.lineTo(-Qr,-Qr),St.lineTo(-Qr,-3*Qr),St.lineTo(Qr,-3*Qr),St.lineTo(Qr,-Qr),St.lineTo(3*Qr,-Qr),St.lineTo(3*Qr,Qr),St.lineTo(Qr,Qr),St.lineTo(Qr,3*Qr),St.lineTo(-Qr,3*Qr),St.lineTo(-Qr,Qr),St.lineTo(-3*Qr,Qr),St.closePath()}},ct=Math.sqrt(1/3),pt=ct*2,Wt={draw:function(St,Cr){var Qr=Math.sqrt(Cr/pt),pi=Qr*ct;St.moveTo(0,-Qr),St.lineTo(pi,0),St.lineTo(0,Qr),St.lineTo(-pi,0),St.closePath()}},st=.8908130915292852,lt=Math.sin(f/10)/Math.sin(7*f/10),Gt=Math.sin(d/10)*lt,Nt=-Math.cos(d/10)*lt,$t={draw:function(St,Cr){var Qr=Math.sqrt(Cr*st),pi=Gt*Qr,fn=Nt*Qr;St.moveTo(0,-Qr),St.lineTo(pi,fn);for(var Sn=1;Sn<5;++Sn){var En=d*Sn/5,ki=Math.cos(En),_n=Math.sin(En);St.lineTo(_n*Qr,-ki*Qr),St.lineTo(ki*pi-_n*fn,_n*pi+ki*fn)}St.closePath()}},sr={draw:function(St,Cr){var Qr=Math.sqrt(Cr),pi=-Qr/2;St.rect(pi,pi,Qr,Qr)}},wr=Math.sqrt(3),ur={draw:function(St,Cr){var Qr=-Math.sqrt(Cr/(wr*3));St.moveTo(0,Qr*2),St.lineTo(-wr*Qr,-Qr),St.lineTo(wr*Qr,-Qr),St.closePath()}},Qe=-.5,Et=Math.sqrt(3)/2,er=1/Math.sqrt(12),Ut=(er/2+1)*3,Ft={draw:function(St,Cr){var Qr=Math.sqrt(Cr/Ut),pi=Qr/2,fn=Qr*er,Sn=pi,En=Qr*er+Qr,ki=-Sn,_n=En;St.moveTo(pi,fn),St.lineTo(Sn,En),St.lineTo(ki,_n),St.lineTo(Qe*pi-Et*fn,Et*pi+Qe*fn),St.lineTo(Qe*Sn-Et*En,Et*Sn+Qe*En),St.lineTo(Qe*ki-Et*_n,Et*ki+Qe*_n),St.lineTo(Qe*pi+Et*fn,Qe*fn-Et*pi),St.lineTo(Qe*Sn+Et*En,Qe*En-Et*Sn),St.lineTo(Qe*ki+Et*_n,Qe*_n-Et*ki),St.closePath()}},bt=[ce,Ye,Wt,sr,$t,ur,Ft];function yt(){var St=r(ce),Cr=r(64),Qr=null;function pi(){var fn;if(Qr||(Qr=fn=t.path()),St.apply(this,arguments).draw(Qr,+Cr.apply(this,arguments)),fn)return Qr=null,fn+""||null}return pi.type=function(fn){return arguments.length?(St=typeof fn=="function"?fn:r(fn),pi):St},pi.size=function(fn){return arguments.length?(Cr=typeof fn=="function"?fn:r(+fn),pi):Cr},pi.context=function(fn){return arguments.length?(Qr=fn==null?null:fn,pi):Qr},pi}function Yt(){}function lr(St,Cr,Qr){St._context.bezierCurveTo((2*St._x0+St._x1)/3,(2*St._y0+St._y1)/3,(St._x0+2*St._x1)/3,(St._y0+2*St._y1)/3,(St._x0+4*St._x1+Cr)/6,(St._y0+4*St._y1+Qr)/6)}function Tr(St){this._context=St}Tr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:lr(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1,this._line?this._context.lineTo(St,Cr):this._context.moveTo(St,Cr);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:lr(this,St,Cr);break}this._x0=this._x1,this._x1=St,this._y0=this._y1,this._y1=Cr}};function Rr(St){return new Tr(St)}function ei(St){this._context=St}ei.prototype={areaStart:Yt,areaEnd:Yt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1,this._x2=St,this._y2=Cr;break;case 1:this._point=2,this._x3=St,this._y3=Cr;break;case 2:this._point=3,this._x4=St,this._y4=Cr,this._context.moveTo((this._x0+4*this._x1+St)/6,(this._y0+4*this._y1+Cr)/6);break;default:lr(this,St,Cr);break}this._x0=this._x1,this._x1=St,this._y0=this._y1,this._y1=Cr}};function Wr(St){return new ei(St)}function Ur(St){this._context=St}Ur.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var Qr=(this._x0+4*this._x1+St)/6,pi=(this._y0+4*this._y1+Cr)/6;this._line?this._context.lineTo(Qr,pi):this._context.moveTo(Qr,pi);break;case 3:this._point=4;default:lr(this,St,Cr);break}this._x0=this._x1,this._x1=St,this._y0=this._y1,this._y1=Cr}};function dt(St){return new Ur(St)}function Ge(St,Cr){this._basis=new Tr(St),this._beta=Cr}Ge.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var St=this._x,Cr=this._y,Qr=St.length-1;if(Qr>0)for(var pi=St[0],fn=Cr[0],Sn=St[Qr]-pi,En=Cr[Qr]-fn,ki=-1,_n;++ki<=Qr;)_n=ki/Qr,this._basis.point(this._beta*St[ki]+(1-this._beta)*(pi+_n*Sn),this._beta*Cr[ki]+(1-this._beta)*(fn+_n*En));this._x=this._y=null,this._basis.lineEnd()},point:function(St,Cr){this._x.push(+St),this._y.push(+Cr)}};var Je=function St(Cr){function Qr(pi){return Cr===1?new Tr(pi):new Ge(pi,Cr)}return Qr.beta=function(pi){return St(+pi)},Qr}(.85);function je(St,Cr,Qr){St._context.bezierCurveTo(St._x1+St._k*(St._x2-St._x0),St._y1+St._k*(St._y2-St._y0),St._x2+St._k*(St._x1-Cr),St._y2+St._k*(St._y1-Qr),St._x2,St._y2)}function $e(St,Cr){this._context=St,this._k=(1-Cr)/6}$e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:je(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1,this._line?this._context.lineTo(St,Cr):this._context.moveTo(St,Cr);break;case 1:this._point=2,this._x1=St,this._y1=Cr;break;case 2:this._point=3;default:je(this,St,Cr);break}this._x0=this._x1,this._x1=this._x2,this._x2=St,this._y0=this._y1,this._y1=this._y2,this._y2=Cr}};var wt=function St(Cr){function Qr(pi){return new $e(pi,Cr)}return Qr.tension=function(pi){return St(+pi)},Qr}(0);function Ie(St,Cr){this._context=St,this._k=(1-Cr)/6}Ie.prototype={areaStart:Yt,areaEnd:Yt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1,this._x3=St,this._y3=Cr;break;case 1:this._point=2,this._context.moveTo(this._x4=St,this._y4=Cr);break;case 2:this._point=3,this._x5=St,this._y5=Cr;break;default:je(this,St,Cr);break}this._x0=this._x1,this._x1=this._x2,this._x2=St,this._y0=this._y1,this._y1=this._y2,this._y2=Cr}};var xe=function St(Cr){function Qr(pi){return new Ie(pi,Cr)}return Qr.tension=function(pi){return St(+pi)},Qr}(0);function Ce(St,Cr){this._context=St,this._k=(1-Cr)/6}Ce.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:je(this,St,Cr);break}this._x0=this._x1,this._x1=this._x2,this._x2=St,this._y0=this._y1,this._y1=this._y2,this._y2=Cr}};var vt=function St(Cr){function Qr(pi){return new Ce(pi,Cr)}return Qr.tension=function(pi){return St(+pi)},Qr}(0);function nr(St,Cr,Qr){var pi=St._x1,fn=St._y1,Sn=St._x2,En=St._y2;if(St._l01_a>c){var ki=2*St._l01_2a+3*St._l01_a*St._l12_a+St._l12_2a,_n=3*St._l01_a*(St._l01_a+St._l12_a);pi=(pi*ki-St._x0*St._l12_2a+St._x2*St._l01_2a)/_n,fn=(fn*ki-St._y0*St._l12_2a+St._y2*St._l01_2a)/_n}if(St._l23_a>c){var ya=2*St._l23_2a+3*St._l23_a*St._l12_a+St._l12_2a,Jn=3*St._l23_a*(St._l23_a+St._l12_a);Sn=(Sn*ya+St._x1*St._l23_2a-Cr*St._l12_2a)/Jn,En=(En*ya+St._y1*St._l23_2a-Qr*St._l12_2a)/Jn}St._context.bezierCurveTo(pi,fn,Sn,En,St._x2,St._y2)}function ir(St,Cr){this._context=St,this._alpha=Cr}ir.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(St,Cr){if(St=+St,Cr=+Cr,this._point){var Qr=this._x2-St,pi=this._y2-Cr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Qr*Qr+pi*pi,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(St,Cr):this._context.moveTo(St,Cr);break;case 1:this._point=2;break;case 2:this._point=3;default:nr(this,St,Cr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=St,this._y0=this._y1,this._y1=this._y2,this._y2=Cr}};var pr=function St(Cr){function Qr(pi){return Cr?new ir(pi,Cr):new $e(pi,0)}return Qr.alpha=function(pi){return St(+pi)},Qr}(.5);function oi(St,Cr){this._context=St,this._alpha=Cr}oi.prototype={areaStart:Yt,areaEnd:Yt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(St,Cr){if(St=+St,Cr=+Cr,this._point){var Qr=this._x2-St,pi=this._y2-Cr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Qr*Qr+pi*pi,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=St,this._y3=Cr;break;case 1:this._point=2,this._context.moveTo(this._x4=St,this._y4=Cr);break;case 2:this._point=3,this._x5=St,this._y5=Cr;break;default:nr(this,St,Cr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=St,this._y0=this._y1,this._y1=this._y2,this._y2=Cr}};var di=function St(Cr){function Qr(pi){return Cr?new oi(pi,Cr):new Ie(pi,0)}return Qr.alpha=function(pi){return St(+pi)},Qr}(.5);function Jr(St,Cr){this._context=St,this._alpha=Cr}Jr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(St,Cr){if(St=+St,Cr=+Cr,this._point){var Qr=this._x2-St,pi=this._y2-Cr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Qr*Qr+pi*pi,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:nr(this,St,Cr);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=St,this._y0=this._y1,this._y1=this._y2,this._y2=Cr}};var fi=function St(Cr){function Qr(pi){return Cr?new Jr(pi,Cr):new Ce(pi,0)}return Qr.alpha=function(pi){return St(+pi)},Qr}(.5);function Hi(St){this._context=St}Hi.prototype={areaStart:Yt,areaEnd:Yt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(St,Cr){St=+St,Cr=+Cr,this._point?this._context.lineTo(St,Cr):(this._point=1,this._context.moveTo(St,Cr))}};function Pn(St){return new Hi(St)}function wn(St){return St<0?-1:1}function pn(St,Cr,Qr){var pi=St._x1-St._x0,fn=Cr-St._x1,Sn=(St._y1-St._y0)/(pi||fn<0&&-0),En=(Qr-St._y1)/(fn||pi<0&&-0),ki=(Sn*fn+En*pi)/(pi+fn);return(wn(Sn)+wn(En))*Math.min(Math.abs(Sn),Math.abs(En),.5*Math.abs(ki))||0}function Vn(St,Cr){var Qr=St._x1-St._x0;return Qr?(3*(St._y1-St._y0)/Qr-Cr)/2:Cr}function kn(St,Cr,Qr){var pi=St._x0,fn=St._y0,Sn=St._x1,En=St._y1,ki=(Sn-pi)/3;St._context.bezierCurveTo(pi+ki,fn+ki*Cr,Sn-ki,En-ki*Qr,Sn,En)}function ea(St){this._context=St}ea.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:kn(this,this._t0,Vn(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(St,Cr){var Qr=NaN;if(St=+St,Cr=+Cr,!(St===this._x1&&Cr===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(St,Cr):this._context.moveTo(St,Cr);break;case 1:this._point=2;break;case 2:this._point=3,kn(this,Vn(this,Qr=pn(this,St,Cr)),Qr);break;default:kn(this,this._t0,Qr=pn(this,St,Cr));break}this._x0=this._x1,this._x1=St,this._y0=this._y1,this._y1=Cr,this._t0=Qr}}};function ua(St){this._context=new Vt(St)}(ua.prototype=Object.create(ea.prototype)).point=function(St,Cr){ea.prototype.point.call(this,Cr,St)};function Vt(St){this._context=St}Vt.prototype={moveTo:function(St,Cr){this._context.moveTo(Cr,St)},closePath:function(){this._context.closePath()},lineTo:function(St,Cr){this._context.lineTo(Cr,St)},bezierCurveTo:function(St,Cr,Qr,pi,fn,Sn){this._context.bezierCurveTo(Cr,St,pi,Qr,Sn,fn)}};function _t(St){return new ea(St)}function tr(St){return new ua(St)}function ar(St){this._context=St}ar.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var St=this._x,Cr=this._y,Qr=St.length;if(Qr)if(this._line?this._context.lineTo(St[0],Cr[0]):this._context.moveTo(St[0],Cr[0]),Qr===2)this._context.lineTo(St[1],Cr[1]);else for(var pi=Er(St),fn=Er(Cr),Sn=0,En=1;En=0;--Cr)fn[Cr]=(En[Cr]-fn[Cr+1])/Sn[Cr];for(Sn[Qr-1]=(St[Qr]+fn[Qr-1])/2,Cr=0;Cr=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1,this._line?this._context.lineTo(St,Cr):this._context.moveTo(St,Cr);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,Cr),this._context.lineTo(St,Cr);else{var Qr=this._x*(1-this._t)+St*this._t;this._context.lineTo(Qr,this._y),this._context.lineTo(Qr,Cr)}break}}this._x=St,this._y=Cr}};function $r(St){return new ri(St,.5)}function zi(St){return new ri(St,0)}function Ji(St){return new ri(St,1)}function en(St,Cr){if((En=St.length)>1)for(var Qr=1,pi,fn,Sn=St[Cr[0]],En,ki=Sn.length;Qr=0;)Qr[Cr]=Cr;return Qr}function yn(St,Cr){return St[Cr]}function Mn(){var St=r([]),Cr=cn,Qr=en,pi=yn;function fn(Sn){var En=St.apply(this,arguments),ki,_n=Sn.length,ya=En.length,Jn=new Array(ya),Ma;for(ki=0;ki0){for(var Qr,pi,fn=0,Sn=St[0].length,En;fn0)for(var Qr,pi=0,fn,Sn,En,ki,_n,ya=St[Cr[0]].length;pi0?(fn[0]=En,fn[1]=En+=Sn):Sn<0?(fn[1]=ki,fn[0]=ki+=Sn):(fn[0]=0,fn[1]=Sn)}function ma(St,Cr){if((fn=St.length)>0){for(var Qr=0,pi=St[Cr[0]],fn,Sn=pi.length;Qr0)||!((Sn=(fn=St[Cr[0]]).length)>0))){for(var Qr=0,pi=1,fn,Sn,En;piSn&&(Sn=fn,Qr=Cr);return Qr}function da(St){var Cr=St.map(Wn);return cn(St).sort(function(Qr,pi){return Cr[Qr]-Cr[pi]})}function Wn(St){for(var Cr=0,Qr=-1,pi=St.length,fn;++Qr{(function(e,t){typeof b7=="object"&&typeof xWe!="undefined"?t(b7,iC(),p7(),VJ()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3)})(b7,function(e,t,r,n){"use strict";function i(g){return g.target.depth}function a(g){return g.depth}function o(g,P){return P-1-g.height}function s(g,P){return g.sourceLinks.length?g.depth:P-1}function l(g){return g.targetLinks.length?g.depth:g.sourceLinks.length?t.min(g.sourceLinks,i)-1:0}function u(g){return function(){return g}}function c(g,P){return h(g.source,P.source)||g.index-P.index}function f(g,P){return h(g.target,P.target)||g.index-P.index}function h(g,P){return g.y0-P.y0}function d(g){return g.value}function v(g){return(g.y0+g.y1)/2}function _(g){return v(g.source)*g.value}function b(g){return v(g.target)*g.value}function p(g){return g.index}function C(g){return g.nodes}function E(g){return g.links}function A(g,P){var T=g.get(P);if(!T)throw new Error("missing: "+P);return T}var L=function(){var g=0,P=0,T=1,z=1,O=24,V=8,G=p,Z=s,H=C,N=E,j=32,re=2/3;function oe(){var Se={nodes:H.apply(null,arguments),links:N.apply(null,arguments)};return _e(Se),Me(Se),ke(Se),me(Se,j),ie(Se),Se}oe.update=function(Se){return ie(Se),Se},oe.nodeId=function(Se){return arguments.length?(G=typeof Se=="function"?Se:u(Se),oe):G},oe.nodeAlign=function(Se){return arguments.length?(Z=typeof Se=="function"?Se:u(Se),oe):Z},oe.nodeWidth=function(Se){return arguments.length?(O=+Se,oe):O},oe.nodePadding=function(Se){return arguments.length?(V=+Se,oe):V},oe.nodes=function(Se){return arguments.length?(H=typeof Se=="function"?Se:u(Se),oe):H},oe.links=function(Se){return arguments.length?(N=typeof Se=="function"?Se:u(Se),oe):N},oe.size=function(Se){return arguments.length?(g=P=0,T=+Se[0],z=+Se[1],oe):[T-g,z-P]},oe.extent=function(Se){return arguments.length?(g=+Se[0][0],T=+Se[1][0],P=+Se[0][1],z=+Se[1][1],oe):[[g,P],[T,z]]},oe.iterations=function(Se){return arguments.length?(j=+Se,oe):j};function _e(Se){Se.nodes.forEach(function(Ae,De){Ae.index=De,Ae.sourceLinks=[],Ae.targetLinks=[]});var Le=r.map(Se.nodes,G);Se.links.forEach(function(Ae,De){Ae.index=De;var Pe=Ae.source,ge=Ae.target;typeof Pe!="object"&&(Pe=Ae.source=A(Le,Pe)),typeof ge!="object"&&(ge=Ae.target=A(Le,ge)),Pe.sourceLinks.push(Ae),ge.targetLinks.push(Ae)})}function Me(Se){Se.nodes.forEach(function(Le){Le.value=Math.max(t.sum(Le.sourceLinks,d),t.sum(Le.targetLinks,d))})}function ke(Se){var Le,Ae,De;for(Le=Se.nodes,Ae=[],De=0;Le.length;++De,Le=Ae,Ae=[])Le.forEach(function(ge){ge.depth=De,ge.sourceLinks.forEach(function(Fe){Ae.indexOf(Fe.target)<0&&Ae.push(Fe.target)})});for(Le=Se.nodes,Ae=[],De=0;Le.length;++De,Le=Ae,Ae=[])Le.forEach(function(ge){ge.height=De,ge.targetLinks.forEach(function(Fe){Ae.indexOf(Fe.source)<0&&Ae.push(Fe.source)})});var Pe=(T-g-O)/(De-1);Se.nodes.forEach(function(ge){ge.x1=(ge.x0=g+Math.max(0,Math.min(De-1,Math.floor(Z.call(null,ge,De))))*Pe)+O})}function me(Se){var Le=r.nest().key(function(Ye){return Ye.x0}).sortKeys(t.ascending).entries(Se.nodes).map(function(Ye){return Ye.values});Pe(),ce();for(var Ae=1,De=j;De>0;--De)Fe(Ae*=.99),ce(),ge(Ae),ce();function Pe(){var Ye=t.max(Le,function(Wt){return Wt.length}),ct=re*(z-P)/(Ye-1);V>ct&&(V=ct);var pt=t.min(Le,function(Wt){return(z-P-(Wt.length-1)*V)/t.sum(Wt,d)});Le.forEach(function(Wt){Wt.forEach(function(st,lt){st.y1=(st.y0=lt)+st.value*pt})}),Se.links.forEach(function(Wt){Wt.width=Wt.value*pt})}function ge(Ye){Le.forEach(function(ct){ct.forEach(function(pt){if(pt.targetLinks.length){var Wt=(t.sum(pt.targetLinks,_)/t.sum(pt.targetLinks,d)-v(pt))*Ye;pt.y0+=Wt,pt.y1+=Wt}})})}function Fe(Ye){Le.slice().reverse().forEach(function(ct){ct.forEach(function(pt){if(pt.sourceLinks.length){var Wt=(t.sum(pt.sourceLinks,b)/t.sum(pt.sourceLinks,d)-v(pt))*Ye;pt.y0+=Wt,pt.y1+=Wt}})})}function ce(){Le.forEach(function(Ye){var ct,pt,Wt=P,st=Ye.length,lt;for(Ye.sort(h),lt=0;lt0&&(ct.y0+=pt,ct.y1+=pt),Wt=ct.y1+V;if(pt=Wt-V-z,pt>0)for(Wt=ct.y0-=pt,ct.y1-=pt,lt=st-2;lt>=0;--lt)ct=Ye[lt],pt=ct.y1+V-Wt,pt>0&&(ct.y0-=pt,ct.y1-=pt),Wt=ct.y0})}}function ie(Se){Se.nodes.forEach(function(Le){Le.sourceLinks.sort(f),Le.targetLinks.sort(c)}),Se.nodes.forEach(function(Le){var Ae=Le.y0,De=Ae;Le.sourceLinks.forEach(function(Pe){Pe.y0=Ae+Pe.width/2,Ae+=Pe.width}),Le.targetLinks.forEach(function(Pe){Pe.y1=De+Pe.width/2,De+=Pe.width})})}return oe};function x(g){return[g.source.x1,g.y0]}function k(g){return[g.target.x0,g.y1]}var M=function(){return n.linkHorizontal().source(x).target(k)};e.sankey=L,e.sankeyCenter=l,e.sankeyLeft=a,e.sankeyRight=o,e.sankeyJustify=s,e.sankeyLinkHorizontal=M,Object.defineProperty(e,"__esModule",{value:!0})})});var TWe=ye((Qxr,wWe)=>{var VXt=UJ();wWe.exports=function(t,r){var n=[],i=[],a=[],o={},s=[],l;function u(E){a[E]=!1,o.hasOwnProperty(E)&&Object.keys(o[E]).forEach(function(A){delete o[E][A],a[A]&&u(A)})}function c(E){var A=!1;i.push(E),a[E]=!0;var L,x;for(L=0;L=E})}function d(E){h(E);for(var A=t,L=VXt(A),x=L.components.filter(function(O){return O.length>1}),k=1/0,M,g=0;g{(function(e,t){typeof w7=="object"&&typeof AWe!="undefined"?t(w7,iC(),p7(),VJ(),TWe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,null)})(w7,function(e,t,r,n,i){"use strict";i=i&&i.hasOwnProperty("default")?i.default:i;function a(st){return st.target.depth}function o(st){return st.depth}function s(st,lt){return lt-1-st.height}function l(st,lt){return st.sourceLinks.length?st.depth:lt-1}function u(st){return st.targetLinks.length?st.depth:st.sourceLinks.length?t.min(st.sourceLinks,a)-1:0}function c(st){return function(){return st}}var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(st){return typeof st}:function(st){return st&&typeof Symbol=="function"&&st.constructor===Symbol&&st!==Symbol.prototype?"symbol":typeof st};function h(st,lt){return v(st.source,lt.source)||st.index-lt.index}function d(st,lt){return v(st.target,lt.target)||st.index-lt.index}function v(st,lt){return st.partOfCycle===lt.partOfCycle?st.y0-lt.y0:st.circularLinkType==="top"||lt.circularLinkType==="bottom"?-1:1}function _(st){return st.value}function b(st){return(st.y0+st.y1)/2}function p(st){return b(st.source)}function C(st){return b(st.target)}function E(st){return st.index}function A(st){return st.nodes}function L(st){return st.links}function x(st,lt){var Gt=st.get(lt);if(!Gt)throw new Error("missing: "+lt);return Gt}function k(st,lt){return lt(st)}var M=25,g=10,P=.3;function T(){var st=0,lt=0,Gt=1,Nt=1,$t=24,sr,wr=E,ur=l,Qe=A,Et=L,er=32,Ut=2,Ft,bt=null;function yt(){var dt={nodes:Qe.apply(null,arguments),links:Et.apply(null,arguments)};Yt(dt),z(dt,wr,bt),lr(dt),ei(dt),O(dt,wr),Wr(dt,er,wr),Ur(dt);for(var Ge=4,Je=0;Je0?Ge+M+g:Ge,Je=Je>0?Je+M+g:Je,je=je>0?je+M+g:je,$e=$e>0?$e+M+g:$e,{top:Ge,bottom:Je,left:$e,right:je}}function Rr(dt,Ge){var Je=t.max(dt.nodes,function(vt){return vt.column}),je=Gt-st,$e=Nt-lt,wt=je+Ge.right+Ge.left,Ie=$e+Ge.top+Ge.bottom,xe=je/wt,Ce=$e/Ie;return st=st*xe+Ge.left,Gt=Ge.right==0?Gt:Gt*xe,lt=lt*Ce+Ge.top,Nt=Nt*Ce,dt.nodes.forEach(function(vt){vt.x0=st+vt.column*((Gt-st-$t)/Je),vt.x1=vt.x0+$t}),Ce}function ei(dt){var Ge,Je,je;for(Ge=dt.nodes,Je=[],je=0;Ge.length;++je,Ge=Je,Je=[])Ge.forEach(function($e){$e.depth=je,$e.sourceLinks.forEach(function(wt){Je.indexOf(wt.target)<0&&!wt.circular&&Je.push(wt.target)})});for(Ge=dt.nodes,Je=[],je=0;Ge.length;++je,Ge=Je,Je=[])Ge.forEach(function($e){$e.height=je,$e.targetLinks.forEach(function(wt){Je.indexOf(wt.source)<0&&!wt.circular&&Je.push(wt.source)})});dt.nodes.forEach(function($e){$e.column=Math.floor(ur.call(null,$e,je))})}function Wr(dt,Ge,Je){var je=r.nest().key(function(vt){return vt.column}).sortKeys(t.ascending).entries(dt.nodes).map(function(vt){return vt.values});Ie(Je),Ce();for(var $e=1,wt=Ge;wt>0;--wt)xe($e*=.99,Je),Ce();function Ie(vt){if(Ft){var nr=1/0;je.forEach(function(di){var Jr=Nt*Ft/(di.length+1);nr=Jr0))if(di==0&&oi==1)fi=Jr.y1-Jr.y0,Jr.y0=Nt/2-fi/2,Jr.y1=Nt/2+fi/2;else if(di==ir-1&&oi==1)fi=Jr.y1-Jr.y0,Jr.y0=Nt/2-fi/2,Jr.y1=Nt/2+fi/2;else{var Hi=0,Pn=t.mean(Jr.sourceLinks,C),wn=t.mean(Jr.targetLinks,p);Pn&&wn?Hi=(Pn+wn)/2:Hi=Pn||wn;var pn=(Hi-b(Jr))*vt;Jr.y0+=pn,Jr.y1+=pn}})})}function Ce(){je.forEach(function(vt){var nr,ir,pr=lt,oi=vt.length,di;for(vt.sort(v),di=0;di0&&(nr.y0+=ir,nr.y1+=ir),pr=nr.y1+sr;if(ir=pr-sr-Nt,ir>0)for(pr=nr.y0-=ir,nr.y1-=ir,di=oi-2;di>=0;--di)nr=vt[di],ir=nr.y1+sr-pr,ir>0&&(nr.y0-=ir,nr.y1-=ir),pr=nr.y0})}}function Ur(dt){dt.nodes.forEach(function(Ge){Ge.sourceLinks.sort(d),Ge.targetLinks.sort(h)}),dt.nodes.forEach(function(Ge){var Je=Ge.y0,je=Je,$e=Ge.y1,wt=$e;Ge.sourceLinks.forEach(function(Ie){Ie.circular?(Ie.y0=$e-Ie.width/2,$e=$e-Ie.width):(Ie.y0=Je+Ie.width/2,Je+=Ie.width)}),Ge.targetLinks.forEach(function(Ie){Ie.circular?(Ie.y1=wt-Ie.width/2,wt=wt-Ie.width):(Ie.y1=je+Ie.width/2,je+=Ie.width)})})}return yt}function z(st,lt,Gt){var Nt=0;if(Gt===null){for(var $t=[],sr=0;srlt.source.column)}function Z(st,lt){var Gt=0;st.sourceLinks.forEach(function($t){Gt=$t.circular&&!pt($t,lt)?Gt+1:Gt});var Nt=0;return st.targetLinks.forEach(function($t){Nt=$t.circular&&!pt($t,lt)?Nt+1:Nt}),Gt+Nt}function H(st){var lt=st.source.sourceLinks,Gt=0;lt.forEach(function(sr){Gt=sr.circular?Gt+1:Gt});var Nt=st.target.targetLinks,$t=0;return Nt.forEach(function(sr){$t=sr.circular?$t+1:$t}),!(Gt>1||$t>1)}function N(st,lt,Gt){return st.sort(oe),st.forEach(function(Nt,$t){var sr=0;if(pt(Nt,Gt)&&H(Nt))Nt.circularPathData.verticalBuffer=sr+Nt.width/2;else{var wr=0;for(wr;wr<$t;wr++)if(G(st[$t],st[wr])){var ur=st[wr].circularPathData.verticalBuffer+st[wr].width/2+lt;sr=ur>sr?ur:sr}Nt.circularPathData.verticalBuffer=sr+Nt.width/2}}),st}function j(st,lt,Gt,Nt){var $t=5,sr=t.min(st.links,function(Qe){return Qe.source.y0});st.links.forEach(function(Qe){Qe.circular&&(Qe.circularPathData={})});var wr=st.links.filter(function(Qe){return Qe.circularLinkType=="top"});N(wr,lt,Nt);var ur=st.links.filter(function(Qe){return Qe.circularLinkType=="bottom"});N(ur,lt,Nt),st.links.forEach(function(Qe){if(Qe.circular){if(Qe.circularPathData.arcRadius=Qe.width+g,Qe.circularPathData.leftNodeBuffer=$t,Qe.circularPathData.rightNodeBuffer=$t,Qe.circularPathData.sourceWidth=Qe.source.x1-Qe.source.x0,Qe.circularPathData.sourceX=Qe.source.x0+Qe.circularPathData.sourceWidth,Qe.circularPathData.targetX=Qe.target.x0,Qe.circularPathData.sourceY=Qe.y0,Qe.circularPathData.targetY=Qe.y1,pt(Qe,Nt)&&H(Qe))Qe.circularPathData.leftSmallArcRadius=g+Qe.width/2,Qe.circularPathData.leftLargeArcRadius=g+Qe.width/2,Qe.circularPathData.rightSmallArcRadius=g+Qe.width/2,Qe.circularPathData.rightLargeArcRadius=g+Qe.width/2,Qe.circularLinkType=="bottom"?(Qe.circularPathData.verticalFullExtent=Qe.source.y1+M+Qe.circularPathData.verticalBuffer,Qe.circularPathData.verticalLeftInnerExtent=Qe.circularPathData.verticalFullExtent-Qe.circularPathData.leftLargeArcRadius,Qe.circularPathData.verticalRightInnerExtent=Qe.circularPathData.verticalFullExtent-Qe.circularPathData.rightLargeArcRadius):(Qe.circularPathData.verticalFullExtent=Qe.source.y0-M-Qe.circularPathData.verticalBuffer,Qe.circularPathData.verticalLeftInnerExtent=Qe.circularPathData.verticalFullExtent+Qe.circularPathData.leftLargeArcRadius,Qe.circularPathData.verticalRightInnerExtent=Qe.circularPathData.verticalFullExtent+Qe.circularPathData.rightLargeArcRadius);else{var Et=Qe.source.column,er=Qe.circularLinkType,Ut=st.links.filter(function(yt){return yt.source.column==Et&&yt.circularLinkType==er});Qe.circularLinkType=="bottom"?Ut.sort(Me):Ut.sort(_e);var Ft=0;Ut.forEach(function(yt,Yt){yt.circularLinkID==Qe.circularLinkID&&(Qe.circularPathData.leftSmallArcRadius=g+Qe.width/2+Ft,Qe.circularPathData.leftLargeArcRadius=g+Qe.width/2+Yt*lt+Ft),Ft=Ft+yt.width}),Et=Qe.target.column,Ut=st.links.filter(function(yt){return yt.target.column==Et&&yt.circularLinkType==er}),Qe.circularLinkType=="bottom"?Ut.sort(me):Ut.sort(ke),Ft=0,Ut.forEach(function(yt,Yt){yt.circularLinkID==Qe.circularLinkID&&(Qe.circularPathData.rightSmallArcRadius=g+Qe.width/2+Ft,Qe.circularPathData.rightLargeArcRadius=g+Qe.width/2+Yt*lt+Ft),Ft=Ft+yt.width}),Qe.circularLinkType=="bottom"?(Qe.circularPathData.verticalFullExtent=Math.max(Gt,Qe.source.y1,Qe.target.y1)+M+Qe.circularPathData.verticalBuffer,Qe.circularPathData.verticalLeftInnerExtent=Qe.circularPathData.verticalFullExtent-Qe.circularPathData.leftLargeArcRadius,Qe.circularPathData.verticalRightInnerExtent=Qe.circularPathData.verticalFullExtent-Qe.circularPathData.rightLargeArcRadius):(Qe.circularPathData.verticalFullExtent=sr-M-Qe.circularPathData.verticalBuffer,Qe.circularPathData.verticalLeftInnerExtent=Qe.circularPathData.verticalFullExtent+Qe.circularPathData.leftLargeArcRadius,Qe.circularPathData.verticalRightInnerExtent=Qe.circularPathData.verticalFullExtent+Qe.circularPathData.rightLargeArcRadius)}Qe.circularPathData.leftInnerExtent=Qe.circularPathData.sourceX+Qe.circularPathData.leftNodeBuffer,Qe.circularPathData.rightInnerExtent=Qe.circularPathData.targetX-Qe.circularPathData.rightNodeBuffer,Qe.circularPathData.leftFullExtent=Qe.circularPathData.sourceX+Qe.circularPathData.leftLargeArcRadius+Qe.circularPathData.leftNodeBuffer,Qe.circularPathData.rightFullExtent=Qe.circularPathData.targetX-Qe.circularPathData.rightLargeArcRadius-Qe.circularPathData.rightNodeBuffer}if(Qe.circular)Qe.path=re(Qe);else{var bt=n.linkHorizontal().source(function(yt){var Yt=yt.source.x0+(yt.source.x1-yt.source.x0),lr=yt.y0;return[Yt,lr]}).target(function(yt){var Yt=yt.target.x0,lr=yt.y1;return[Yt,lr]});Qe.path=bt(Qe)}})}function re(st){var lt="";return st.circularLinkType=="top"?lt="M"+st.circularPathData.sourceX+" "+st.circularPathData.sourceY+" L"+st.circularPathData.leftInnerExtent+" "+st.circularPathData.sourceY+" A"+st.circularPathData.leftLargeArcRadius+" "+st.circularPathData.leftSmallArcRadius+" 0 0 0 "+st.circularPathData.leftFullExtent+" "+(st.circularPathData.sourceY-st.circularPathData.leftSmallArcRadius)+" L"+st.circularPathData.leftFullExtent+" "+st.circularPathData.verticalLeftInnerExtent+" A"+st.circularPathData.leftLargeArcRadius+" "+st.circularPathData.leftLargeArcRadius+" 0 0 0 "+st.circularPathData.leftInnerExtent+" "+st.circularPathData.verticalFullExtent+" L"+st.circularPathData.rightInnerExtent+" "+st.circularPathData.verticalFullExtent+" A"+st.circularPathData.rightLargeArcRadius+" "+st.circularPathData.rightLargeArcRadius+" 0 0 0 "+st.circularPathData.rightFullExtent+" "+st.circularPathData.verticalRightInnerExtent+" L"+st.circularPathData.rightFullExtent+" "+(st.circularPathData.targetY-st.circularPathData.rightSmallArcRadius)+" A"+st.circularPathData.rightLargeArcRadius+" "+st.circularPathData.rightSmallArcRadius+" 0 0 0 "+st.circularPathData.rightInnerExtent+" "+st.circularPathData.targetY+" L"+st.circularPathData.targetX+" "+st.circularPathData.targetY:lt="M"+st.circularPathData.sourceX+" "+st.circularPathData.sourceY+" L"+st.circularPathData.leftInnerExtent+" "+st.circularPathData.sourceY+" A"+st.circularPathData.leftLargeArcRadius+" "+st.circularPathData.leftSmallArcRadius+" 0 0 1 "+st.circularPathData.leftFullExtent+" "+(st.circularPathData.sourceY+st.circularPathData.leftSmallArcRadius)+" L"+st.circularPathData.leftFullExtent+" "+st.circularPathData.verticalLeftInnerExtent+" A"+st.circularPathData.leftLargeArcRadius+" "+st.circularPathData.leftLargeArcRadius+" 0 0 1 "+st.circularPathData.leftInnerExtent+" "+st.circularPathData.verticalFullExtent+" L"+st.circularPathData.rightInnerExtent+" "+st.circularPathData.verticalFullExtent+" A"+st.circularPathData.rightLargeArcRadius+" "+st.circularPathData.rightLargeArcRadius+" 0 0 1 "+st.circularPathData.rightFullExtent+" "+st.circularPathData.verticalRightInnerExtent+" L"+st.circularPathData.rightFullExtent+" "+(st.circularPathData.targetY+st.circularPathData.rightSmallArcRadius)+" A"+st.circularPathData.rightLargeArcRadius+" "+st.circularPathData.rightSmallArcRadius+" 0 0 1 "+st.circularPathData.rightInnerExtent+" "+st.circularPathData.targetY+" L"+st.circularPathData.targetX+" "+st.circularPathData.targetY,lt}function oe(st,lt){return ie(st)==ie(lt)?st.circularLinkType=="bottom"?Me(st,lt):_e(st,lt):ie(lt)-ie(st)}function _e(st,lt){return st.y0-lt.y0}function Me(st,lt){return lt.y0-st.y0}function ke(st,lt){return st.y1-lt.y1}function me(st,lt){return lt.y1-st.y1}function ie(st){return st.target.column-st.source.column}function Se(st){return st.target.x0-st.source.x1}function Le(st,lt){var Gt=V(st),Nt=Se(lt)/Math.tan(Gt),$t=ct(st)=="up"?st.y1+Nt:st.y1-Nt;return $t}function Ae(st,lt){var Gt=V(st),Nt=Se(lt)/Math.tan(Gt),$t=ct(st)=="up"?st.y1-Nt:st.y1+Nt;return $t}function De(st,lt,Gt,Nt){st.links.forEach(function($t){if(!$t.circular&&$t.target.column-$t.source.column>1){var sr=$t.source.column+1,wr=$t.target.column-1,ur=1,Qe=wr-sr+1;for(ur=1;sr<=wr;sr++,ur++)st.nodes.forEach(function(Et){if(Et.column==sr){var er=ur/(Qe+1),Ut=Math.pow(1-er,3),Ft=3*er*Math.pow(1-er,2),bt=3*Math.pow(er,2)*(1-er),yt=Math.pow(er,3),Yt=Ut*$t.y0+Ft*$t.y0+bt*$t.y1+yt*$t.y1,lr=Yt-$t.width/2,Tr=Yt+$t.width/2,Rr;lr>Et.y0&&lrEt.y0&&TrEt.y1&&ge(ei,Rr,lt,Gt)})):lrEt.y1&&(Rr=Tr-Et.y0+10,Et=ge(Et,Rr,lt,Gt),st.nodes.forEach(function(ei){k(ei,Nt)==k(Et,Nt)||ei.column!=Et.column||ei.y0Et.y1&&ge(ei,Rr,lt,Gt)}))}})}})}function Pe(st,lt){return st.y0>lt.y0&&st.y0lt.y0&&st.y1lt.y1}function ge(st,lt,Gt,Nt){return st.y0+lt>=Gt&&st.y1+lt<=Nt&&(st.y0=st.y0+lt,st.y1=st.y1+lt,st.targetLinks.forEach(function($t){$t.y1=$t.y1+lt}),st.sourceLinks.forEach(function($t){$t.y0=$t.y0+lt})),st}function Fe(st,lt,Gt,Nt){st.nodes.forEach(function($t){Nt&&$t.y+($t.y1-$t.y0)>lt&&($t.y=$t.y-($t.y+($t.y1-$t.y0)-lt));var sr=st.links.filter(function(Qe){return k(Qe.source,Gt)==k($t,Gt)}),wr=sr.length;wr>1&&sr.sort(function(Qe,Et){if(!Qe.circular&&!Et.circular){if(Qe.target.column==Et.target.column)return Qe.y1-Et.y1;if(Ye(Qe,Et)){if(Qe.target.column>Et.target.column){var er=Ae(Et,Qe);return Qe.y1-er}if(Et.target.column>Qe.target.column){var Ut=Ae(Qe,Et);return Ut-Et.y1}}else return Qe.y1-Et.y1}if(Qe.circular&&!Et.circular)return Qe.circularLinkType=="top"?-1:1;if(Et.circular&&!Qe.circular)return Et.circularLinkType=="top"?1:-1;if(Qe.circular&&Et.circular)return Qe.circularLinkType===Et.circularLinkType&&Qe.circularLinkType=="top"?Qe.target.column===Et.target.column?Qe.target.y1-Et.target.y1:Et.target.column-Qe.target.column:Qe.circularLinkType===Et.circularLinkType&&Qe.circularLinkType=="bottom"?Qe.target.column===Et.target.column?Et.target.y1-Qe.target.y1:Qe.target.column-Et.target.column:Qe.circularLinkType=="top"?-1:1});var ur=$t.y0;sr.forEach(function(Qe){Qe.y0=ur+Qe.width/2,ur=ur+Qe.width}),sr.forEach(function(Qe,Et){if(Qe.circularLinkType=="bottom"){var er=Et+1,Ut=0;for(er;er1&&$t.sort(function(ur,Qe){if(!ur.circular&&!Qe.circular){if(ur.source.column==Qe.source.column)return ur.y0-Qe.y0;if(Ye(ur,Qe)){if(Qe.source.column0?"up":"down"}function pt(st,lt){return k(st.source,lt)==k(st.target,lt)}function Wt(st,lt,Gt){var Nt=st.nodes,$t=st.links,sr=!1,wr=!1;if($t.forEach(function(Ft){Ft.circularLinkType=="top"?sr=!0:Ft.circularLinkType=="bottom"&&(wr=!0)}),sr==!1||wr==!1){var ur=t.min(Nt,function(Ft){return Ft.y0}),Qe=t.max(Nt,function(Ft){return Ft.y1}),Et=Qe-ur,er=Gt-lt,Ut=er/Et;Nt.forEach(function(Ft){var bt=(Ft.y1-Ft.y0)*Ut;Ft.y0=(Ft.y0-ur)*Ut,Ft.y1=Ft.y0+bt}),$t.forEach(function(Ft){Ft.y0=(Ft.y0-ur)*Ut,Ft.y1=(Ft.y1-ur)*Ut,Ft.width=Ft.width*Ut})}}e.sankeyCircular=T,e.sankeyCenter=u,e.sankeyLeft=o,e.sankeyRight=s,e.sankeyJustify=l,Object.defineProperty(e,"__esModule",{value:!0})})});var GJ=ye((ebr,MWe)=>{"use strict";MWe.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}});var BWe=ye((tbr,qWe)=>{"use strict";var EWe=gWe(),GXt=(R2(),B1(I2)).interpolateNumber,L5=Oa(),YC=bWe(),HXt=SWe(),Nu=GJ(),P5=cd(),aw=Ca(),jXt=So(),p1=Dr(),WJ=p1.strTranslate,WXt=p1.strRotate,XJ=Km(),KC=XJ.keyFun,T7=XJ.repeat,RWe=XJ.unwrap,CWe=iu(),XXt=qa(),DWe=Kh(),ZXt=DWe.CAP_SHIFT,YXt=DWe.LINE_SPACING,KXt=3;function JXt(e,t,r){var n=RWe(t),i=n.trace,a=i.domain,o=i.orientation==="h",s=i.node.pad,l=i.node.thickness,u={justify:YC.sankeyJustify,left:YC.sankeyLeft,right:YC.sankeyRight,center:YC.sankeyCenter}[i.node.align],c=e.width*(a.x[1]-a.x[0]),f=e.height*(a.y[1]-a.y[0]),h=n._nodes,d=n._links,v=n.circular,_;v?_=HXt.sankeyCircular().circularLinkGap(0):_=YC.sankey(),_.iterations(Nu.sankeyIterations).size(o?[c,f]:[f,c]).nodeWidth(l).nodePadding(s).nodeId(function(V){return V.pointNumber}).nodeAlign(u).nodes(h).links(d);var b=_();_.nodePadding()=N||(H=N-Z.y0,H>1e-6&&(Z.y0+=H,Z.y1+=H)),N=Z.y1+s})}function P(V){var G=V.map(function(_e,Me){return{x0:_e.x0,index:Me}}).sort(function(_e,Me){return _e.x0-Me.x0}),Z=[],H=-1,N,j=-1/0,re;for(p=0;pj+l&&(H+=1,N=oe.x0),j=oe.x0,Z[H]||(Z[H]=[]),Z[H].push(oe),re=N-oe.x0,oe.x0+=re,oe.x1+=re}return Z}if(i.node.x.length&&i.node.y.length){for(p=0;p0?" L "+i.targetX+" "+i.targetY:"")+"Z"):(r="M "+(i.targetX-t)+" "+(i.targetY-n)+" L "+(i.rightInnerExtent-t)+" "+(i.targetY-n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightSmallArcRadius+n)+" 0 0 0 "+(i.rightFullExtent-n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" L "+(i.rightFullExtent-n-t)+" "+i.verticalRightInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-n-t)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent+n-t-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:a?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent-t-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.leftFullExtent+n+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent+n)+" L "+i.leftInnerExtent+" "+(i.verticalFullExtent+n)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent,r+=" L "+(i.leftFullExtent+n)+" "+(i.sourceY+i.leftSmallArcRadius)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftSmallArcRadius+n)+" 0 0 0 "+i.leftInnerExtent+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY+n)+" L "+i.leftInnerExtent+" "+(i.sourceY+n)+" A "+(i.leftLargeArcRadius-n)+" "+(i.leftSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n)+" "+(i.sourceY+i.leftSmallArcRadius)+" L "+(i.leftFullExtent-n)+" "+i.verticalLeftInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.rightFullExtent+n-t+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:a?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent-t-n)+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:r+=" A "+(i.leftLargeArcRadius-n)+" "+(i.leftLargeArcRadius-n)+" 0 0 1 "+i.leftInnerExtent+" "+(i.verticalFullExtent-n)+" L "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightLargeArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent,r+=" L "+(i.rightFullExtent+n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightInnerExtent-t)+" "+(i.targetY+n)+" L "+(i.targetX-t)+" "+(i.targetY+n)+(t>0?" L "+i.targetX+" "+i.targetY:"")+"Z"),r}function ZJ(){var e=.5;function t(r){var n=r.linkArrowLength;if(r.link.circular)return QXt(r.link,n);var i=Math.abs((r.link.target.x0-r.link.source.x1)/2);n>i&&(n=i);var a=r.link.source.x1,o=r.link.target.x0-n,s=GXt(a,o),l=s(e),u=s(1-e),c=r.link.y0-r.link.width/2,f=r.link.y0+r.link.width/2,h=r.link.y1-r.link.width/2,d=r.link.y1+r.link.width/2,v="M"+a+","+c,_="C"+l+","+c+" "+u+","+h+" "+o+","+h,b="C"+u+","+d+" "+l+","+f+" "+a+","+f,p=n>0?"L"+(o+n)+","+(h+r.link.width/2):"";return p+="L"+o+","+d,v+_+p+b+"Z"}return t}function eZt(e,t){var r=P5(t.color),n=Nu.nodePadAcross,i=e.nodePad/2;t.dx=t.x1-t.x0,t.dy=t.y1-t.y0;var a=t.dx,o=Math.max(.5,t.dy),s="node_"+t.pointNumber;return t.group&&(s=p1.randstr()),t.trace=e.trace,t.curveNumber=e.trace.index,{index:t.pointNumber,key:s,partOfGroup:t.partOfGroup||!1,group:t.group,traceId:e.key,trace:e.trace,node:t,nodePad:e.nodePad,nodeLineColor:e.nodeLineColor,nodeLineWidth:e.nodeLineWidth,textFont:e.textFont,size:e.horizontal?e.height:e.width,visibleWidth:Math.ceil(a),visibleHeight:o,zoneX:-n,zoneY:-i,zoneWidth:a+2*n,zoneHeight:o+2*i,labelY:e.horizontal?t.dy/2+1:t.dx/2+1,left:t.originalLayer===1,sizeAcross:e.width,forceLayouts:e.forceLayouts,horizontal:e.horizontal,darkBackground:r.getBrightness()<=128,tinyColorHue:aw.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,graph:e.graph,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,s].join("_"),interactionState:e.interactionState,figure:e}}function jJ(e){e.attr("transform",function(t){return WJ(t.node.x0.toFixed(3),t.node.y0.toFixed(3))})}function tZt(e){e.call(jJ)}function FWe(e,t){e.call(tZt),t.attr("d",ZJ())}function kWe(e){e.attr("width",function(t){return t.node.x1-t.node.x0}).attr("height",function(t){return t.visibleHeight})}function HJ(e){return e.link.width>1||e.linkLineWidth>0}function LWe(e){var t=WJ(e.translateX,e.translateY);return t+(e.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function PWe(e,t,r){e.on(".basic",null).on("mouseover.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.hover(this,n,t),n.interactionState.hovered=[this,n])}).on("mousemove.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.follow(this,n),n.interactionState.hovered=[this,n])}).on("mouseout.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.unhover(this,n,t),n.interactionState.hovered=!1)}).on("click.basic",function(n){n.interactionState.hovered&&(r.unhover(this,n,t),n.interactionState.hovered=!1),!n.interactionState.dragInProgress&&!n.partOfGroup&&r.select(this,n,t)})}function rZt(e,t,r,n){var i=L5.behavior.drag().origin(function(a){return{x:a.node.x0+a.visibleWidth/2,y:a.node.y0+a.visibleHeight/2}}).on("dragstart",function(a){if(a.arrangement!=="fixed"&&(p1.ensureSingle(n._fullLayout._infolayer,"g","dragcover",function(s){n._fullLayout._dragCover=s}),p1.raiseToTop(this),a.interactionState.dragInProgress=a.node,IWe(a.node),a.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,a.interactionState.hovered),a.interactionState.hovered=!1),a.arrangement==="snap")){var o=a.traceId+"|"+a.key;a.forceLayouts[o]?a.forceLayouts[o].alpha(1):iZt(e,o,a,n),nZt(e,t,a,o,n)}}).on("drag",function(a){if(a.arrangement!=="fixed"){var o=L5.event.x,s=L5.event.y;a.arrangement==="snap"?(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2,a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2):(a.arrangement==="freeform"&&(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2),s=Math.max(0,Math.min(a.size-a.visibleHeight/2,s)),a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2),IWe(a.node),a.arrangement!=="snap"&&(a.sankey.update(a.graph),FWe(e.filter(OWe(a)),t))}}).on("dragend",function(a){if(a.arrangement!=="fixed"){a.interactionState.dragInProgress=!1;for(var o=0;o0)window.requestAnimationFrame(a);else{var l=r.node.originalX;r.node.x0=l-r.visibleWidth/2,r.node.x1=l+r.visibleWidth/2,zWe(r,i)}})}function aZt(e,t,r,n){return function(){for(var a=0,o=0;o0&&n.forceLayouts[t].alpha(0)}}function zWe(e,t){for(var r=[],n=[],i=0;i{"use strict";var Xv=Oa(),KJ=Dr(),A7=KJ.numberFormat,uZt=BWe(),I5=vf(),cZt=Ca(),Sx=GJ().cn,JC=KJ._;function NWe(e){return e!==""}function R5(e,t){return e.filter(function(r){return r.key===t.traceId})}function UWe(e,t){Xv.select(e).select("path").style("fill-opacity",t),Xv.select(e).select("rect").style("fill-opacity",t)}function VWe(e){Xv.select(e).select("text.name").style("fill","black")}function GWe(e){return function(t){return e.node.sourceLinks.indexOf(t.link)!==-1||e.node.targetLinks.indexOf(t.link)!==-1}}function HWe(e){return function(t){return t.node.sourceLinks.indexOf(e.link)!==-1||t.node.targetLinks.indexOf(e.link)!==-1}}function jWe(e,t,r){t&&r&&R5(r,t).selectAll("."+Sx.sankeyLink).filter(GWe(t)).call(WWe.bind(0,t,r,!1))}function YJ(e,t,r){t&&r&&R5(r,t).selectAll("."+Sx.sankeyLink).filter(GWe(t)).call(XWe.bind(0,t,r,!1))}function WWe(e,t,r,n){n.style("fill",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverHue}).style("fill-opacity",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverAlpha}),n.each(function(i){var a=i.link.label;a!==""&&R5(t,e).selectAll("."+Sx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverHue}).style("fill-opacity",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverAlpha})}),r&&R5(t,e).selectAll("."+Sx.sankeyNode).filter(HWe(e)).call(jWe)}function XWe(e,t,r,n){n.style("fill",function(i){return i.tinyColorHue}).style("fill-opacity",function(i){return i.tinyColorAlpha}),n.each(function(i){var a=i.link.label;a!==""&&R5(t,e).selectAll("."+Sx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){return o.tinyColorHue}).style("fill-opacity",function(o){return o.tinyColorAlpha})}),r&&R5(t,e).selectAll(Sx.sankeyNode).filter(HWe(e)).call(YJ)}function Ef(e,t){var r=e.hoverlabel||{},n=KJ.nestedProperty(r,t).get();return Array.isArray(n)?!1:n}ZWe.exports=function(t,r){for(var n=t._fullLayout,i=n._paper,a=n._size,o=0;o"),color:Ef(k,"bgcolor")||cZt.addOpacity(z.color,1),borderColor:Ef(k,"bordercolor"),fontFamily:Ef(k,"font.family"),fontSize:Ef(k,"font.size"),fontColor:Ef(k,"font.color"),fontWeight:Ef(k,"font.weight"),fontStyle:Ef(k,"font.style"),fontVariant:Ef(k,"font.variant"),fontTextcase:Ef(k,"font.textcase"),fontLineposition:Ef(k,"font.lineposition"),fontShadow:Ef(k,"font.shadow"),nameLength:Ef(k,"namelength"),textAlign:Ef(k,"align"),idealAlign:Xv.event.x"),color:Ef(k,"bgcolor")||x.tinyColorHue,borderColor:Ef(k,"bordercolor"),fontFamily:Ef(k,"font.family"),fontSize:Ef(k,"font.size"),fontColor:Ef(k,"font.color"),fontWeight:Ef(k,"font.weight"),fontStyle:Ef(k,"font.style"),fontVariant:Ef(k,"font.variant"),fontTextcase:Ef(k,"font.textcase"),fontLineposition:Ef(k,"font.lineposition"),fontShadow:Ef(k,"font.shadow"),nameLength:Ef(k,"namelength"),textAlign:Ef(k,"align"),idealAlign:"left",hovertemplate:k.hovertemplate,hovertemplateLabels:V,eventData:[x.node]},{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:t});UWe(H,.85),VWe(H)}}},A=function(L,x,k){t._fullLayout.hovermode!==!1&&(Xv.select(L).call(YJ,x,k),x.node.trace.node.hoverinfo!=="skip"&&(x.node.fullData=x.node.trace,t.emit("plotly_unhover",{event:Xv.event,points:[x.node]})),I5.loneUnhover(n._hoverlayer.node()))};uZt(t,i,r,{width:a.w,height:a.h,margin:{t:a.t,r:a.r,b:a.b,l:a.l}},{linkEvents:{hover:u,follow:_,unhover:b,select:l},nodeEvents:{hover:C,follow:E,unhover:A,select:p}})}});var YWe=ye(ow=>{"use strict";var fZt=mc().overrideAll,hZt=Id().getModuleCalcData,dZt=JJ(),vZt=N1(),pZt=Tg(),gZt=gv(),mZt=zf().prepSelect,$J=Dr(),yZt=qa(),S7="sankey";ow.name=S7;ow.baseLayoutAttrOverrides=fZt({hoverlabel:vZt.hoverlabel},"plot","nested");ow.plot=function(e){var t=hZt(e.calcdata,S7)[0];dZt(e,t),ow.updateFx(e)};ow.clean=function(e,t,r,n){var i=n._has&&n._has(S7),a=t._has&&t._has(S7);i&&!a&&(n._paperdiv.selectAll(".sankey").remove(),n._paperdiv.selectAll(".bgsankey").remove())};ow.updateFx=function(e){for(var t=0;t{"use strict";KWe.exports=function(t,r){for(var n=t.cd,i=[],a=n[0].trace,o=a._sankey.graph.nodes,s=0;s{"use strict";$We.exports={attributes:NJ(),supplyDefaults:rWe(),calc:sWe(),plot:JJ(),moduleType:"trace",name:"sankey",basePlotModule:YWe(),selectPoints:JWe(),categories:["noOpacity"],meta:{}}});var tXe=ye((obr,eXe)=>{"use strict";eXe.exports=QWe()});var iXe=ye(D5=>{"use strict";var rXe=Mc();D5.name="indicator";D5.plot=function(e,t,r,n){rXe.plotBasePlot(D5.name,e,t,r,n)};D5.clean=function(e,t,r,n){rXe.cleanBasePlot(D5.name,e,t,r,n)}});var e$=ye((lbr,uXe)=>{"use strict";var Mx=Ao().extendFlat,aXe=Ao().extendDeep,xZt=mc().overrideAll,oXe=ec(),sXe=Eh(),bZt=kc().attributes,Bf=Rd(),wZt=pl().templatedArray,M7=GT(),nXe=df().descriptionOnlyNumbers,QJ=oXe({editType:"plot",colorEditType:"plot"}),$C={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:sXe.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},lXe={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},TZt=wZt("step",aXe({},$C,{range:lXe}));uXe.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:bZt({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:Mx({},QJ,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:nXe("value")},font:Mx({},QJ,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot",description:nXe("value")},increasing:{symbol:{valType:"string",dflt:M7.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:M7.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:M7.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:M7.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:Mx({},QJ,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:aXe({},$C,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:sXe.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:xZt({range:lXe,visible:Mx({},Bf.visible,{dflt:!0}),tickmode:Bf.minor.tickmode,nticks:Bf.nticks,tick0:Bf.tick0,dtick:Bf.dtick,tickvals:Bf.tickvals,ticktext:Bf.ticktext,ticks:Mx({},Bf.ticks,{dflt:"outside"}),ticklen:Bf.ticklen,tickwidth:Bf.tickwidth,tickcolor:Bf.tickcolor,ticklabelstep:Bf.ticklabelstep,showticklabels:Bf.showticklabels,labelalias:Bf.labelalias,tickfont:oXe({}),tickangle:Bf.tickangle,tickformat:Bf.tickformat,tickformatstops:Bf.tickformatstops,tickprefix:Bf.tickprefix,showtickprefix:Bf.showtickprefix,ticksuffix:Bf.ticksuffix,showticksuffix:Bf.showticksuffix,separatethousands:Bf.separatethousands,exponentformat:Bf.exponentformat,minexponent:Bf.minexponent,showexponent:Bf.showexponent,editType:"plot"},"plot"),steps:TZt,threshold:{line:{color:Mx({},$C.line.color,{}),width:Mx({},$C.line.width,{dflt:1}),editType:"plot"},thickness:Mx({},$C.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var t$=ye((ubr,cXe)=>{"use strict";cXe.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var dXe=ye((cbr,hXe)=>{"use strict";var ey=Dr(),C7=e$(),AZt=kc().defaults,fXe=pl(),SZt=Yd(),E7=t$(),MZt=xb(),EZt=T3(),CZt=t_(),kZt=r_();function LZt(e,t,r,n){function i(x,k){return ey.coerce(e,t,C7,x,k)}AZt(t,n,i),i("mode"),t._hasNumber=t.mode.indexOf("number")!==-1,t._hasDelta=t.mode.indexOf("delta")!==-1,t._hasGauge=t.mode.indexOf("gauge")!==-1;var a=i("value");t._range=[0,typeof a=="number"?1.5*a:1];var o=new Array(2),s;if(t._hasNumber){i("number.valueformat");var l=ey.extendFlat({},n.font);l.size=void 0,ey.coerceFont(i,"number.font",l),t.number.font.size===void 0&&(t.number.font.size=E7.defaultNumberFontSize,o[0]=!0),i("number.prefix"),i("number.suffix"),s=t.number.font.size}var u;if(t._hasDelta){var c=ey.extendFlat({},n.font);c.size=void 0,ey.coerceFont(i,"delta.font",c),t.delta.font.size===void 0&&(t.delta.font.size=(t._hasNumber?.5:1)*(s||E7.defaultNumberFontSize),o[1]=!0),i("delta.reference",t.value),i("delta.relative"),i("delta.valueformat",t.delta.relative?"2%":""),i("delta.increasing.symbol"),i("delta.increasing.color"),i("delta.decreasing.symbol"),i("delta.decreasing.color"),i("delta.position"),i("delta.prefix"),i("delta.suffix"),u=t.delta.font.size}t._scaleNumbers=(!t._hasNumber||o[0])&&(!t._hasDelta||o[1])||!1;var f=ey.extendFlat({},n.font);f.size=.25*(s||u||E7.defaultNumberFontSize),ey.coerceFont(i,"title.font",f),i("title.text");var h,d,v,_;function b(x,k){return ey.coerce(h,d,C7.gauge,x,k)}function p(x,k){return ey.coerce(v,_,C7.gauge.axis,x,k)}if(t._hasGauge){h=e.gauge,h||(h={}),d=fXe.newContainer(t,"gauge"),b("shape");var C=t._isBullet=t.gauge.shape==="bullet";C||i("title.align","center");var E=t._isAngular=t.gauge.shape==="angular";E||i("align","center"),b("bgcolor",n.paper_bgcolor),b("borderwidth"),b("bordercolor"),b("bar.color"),b("bar.line.color"),b("bar.line.width");var A=E7.valueThickness*(t.gauge.shape==="bullet"?.5:1);b("bar.thickness",A),SZt(h,d,{name:"steps",handleItemDefaults:PZt}),b("threshold.value"),b("threshold.thickness"),b("threshold.line.width"),b("threshold.line.color"),v={},h&&(v=h.axis||{}),_=fXe.newContainer(d,"axis"),p("visible"),t._range=p("range",t._range);var L={font:n.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};MZt(v,_,p,"linear"),kZt(v,_,p,"linear",L),CZt(v,_,p,"linear",L),EZt(v,_,p,L)}else i("title.align","center"),i("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function PZt(e,t){function r(n,i){return ey.coerce(e,t,C7.gauge.steps,n,i)}r("color"),r("line.color"),r("line.width"),r("range"),r("thickness")}hXe.exports={supplyDefaults:LZt}});var pXe=ye((fbr,vXe)=>{"use strict";function IZt(e,t){var r=[],n=t.value;typeof t._lastValue!="number"&&(t._lastValue=t.value);var i=t._lastValue,a=i;return t._hasDelta&&typeof t.delta.reference=="number"&&(a=t.delta.reference),r[0]={y:n,lastY:i,delta:n-a,relativeDelta:(n-a)/a},r}vXe.exports={calc:IZt}});var bXe=ye((hbr,xXe)=>{"use strict";var fw=Oa(),RZt=(R2(),B1(I2)).interpolate,gXe=(R2(),B1(I2)).interpolateNumber,Ex=Dr(),DZt=Ex.strScale,ek=Ex.strTranslate,FZt=Ex.rad2deg,zZt=Kh().MID_SHIFT,cw=So(),sw=t$(),L7=iu(),sv=ho(),OZt=t4(),qZt=aI(),BZt=Rd(),F5=Ca(),r$={left:"start",center:"middle",right:"end"},lw={left:0,center:.5,right:1},mXe=/[yzafpnµmkMGTPEZY]/;function tk(e){return e&&e.duration>0}xXe.exports=function(t,r,n,i){var a=t._fullLayout,o;tk(n)&&i&&(o=i()),Ex.makeTraceGroups(a._indicatorlayer,r,"trace").each(function(s){var l=s[0],u=l.trace,c=fw.select(this),f=u._hasGauge,h=u._isAngular,d=u._isBullet,v=u.domain,_={w:a._size.w*(v.x[1]-v.x[0]),h:a._size.h*(v.y[1]-v.y[0]),l:a._size.l+a._size.w*v.x[0],r:a._size.r+a._size.w*(1-v.x[1]),t:a._size.t+a._size.h*(1-v.y[1]),b:a._size.b+a._size.h*v.y[0]},b=_.l+_.w/2,p=_.t+_.h/2,C=Math.min(_.w/2,_.h),E=sw.innerRadius*C,A,L,x,k=u.align||"center";if(L=p,!f)A=_.l+lw[k]*_.w,x=function(H){return yXe(H,_.w,_.h)};else if(h&&(A=b,L=p+C/2,x=function(H){return HZt(H,.9*E)}),d){var M=sw.bulletPadding,g=1-sw.bulletNumberDomainSize+M;A=_.l+(g+(1-g)*lw[k])*_.w,x=function(H){return yXe(H,(sw.bulletNumberDomainSize-M)*_.w,_.h)}}VZt(t,c,s,{numbersX:A,numbersY:L,numbersScaler:x,transitionOpts:n,onComplete:o});var P,T;f&&(P={range:u.gauge.axis.range,color:u.gauge.bgcolor,line:{color:u.gauge.bordercolor,width:0},thickness:1},T={range:u.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:u.gauge.bordercolor,width:u.gauge.borderwidth},thickness:1});var z=c.selectAll("g.angular").data(h?s:[]);z.exit().remove();var O=c.selectAll("g.angularaxis").data(h?s:[]);O.exit().remove(),h&&UZt(t,c,s,{radius:C,innerRadius:E,gauge:z,layer:O,size:_,gaugeBg:P,gaugeOutline:T,transitionOpts:n,onComplete:o});var V=c.selectAll("g.bullet").data(d?s:[]);V.exit().remove();var G=c.selectAll("g.bulletaxis").data(d?s:[]);G.exit().remove(),d&&NZt(t,c,s,{gauge:V,layer:G,size:_,gaugeBg:P,gaugeOutline:T,transitionOpts:n,onComplete:o});var Z=c.selectAll("text.title").data(s);Z.exit().remove(),Z.enter().append("text").classed("title",!0),Z.attr("text-anchor",function(){return d?r$.right:r$[u.title.align]}).text(u.title.text).call(cw.font,u.title.font).call(L7.convertToTspans,t),Z.attr("transform",function(){var H=_.l+_.w*lw[u.title.align],N,j=sw.titlePadding,re=cw.bBox(Z.node());if(f){if(h)if(u.gauge.axis.visible){var oe=cw.bBox(O.node());N=oe.top-j-re.bottom}else N=_.t+_.h/2-C/2-re.bottom-j;d&&(N=L-(re.top+re.bottom)/2,H=_.l-sw.bulletPadding*_.w)}else N=u._numbersTop-j-re.bottom;return ek(H,N)})})};function NZt(e,t,r,n){var i=r[0].trace,a=n.gauge,o=n.layer,s=n.gaugeBg,l=n.gaugeOutline,u=n.size,c=i.domain,f=n.transitionOpts,h=n.onComplete,d,v,_,b,p;a.enter().append("g").classed("bullet",!0),a.attr("transform",ek(u.l,u.t)),o.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),o.selectAll("g.xbulletaxistick,path,text").remove();var C=u.h,E=i.gauge.bar.thickness*C,A=c.x[0],L=c.x[0]+(c.x[1]-c.x[0])*(i._hasNumber||i._hasDelta?1-sw.bulletNumberDomainSize:1);d=QC(e,i.gauge.axis),d._id="xbulletaxis",d.domain=[A,L],d.setScale(),v=sv.calcTicks(d),_=sv.makeTransTickFn(d),b=sv.getTickSigns(d)[2],p=u.t+u.h,d.visible&&(sv.drawTicks(e,d,{vals:d.ticks==="inside"?sv.clipEnds(d,v):v,layer:o,path:sv.makeTickPath(d,p,b),transFn:_}),sv.drawLabels(e,d,{vals:v,layer:o,transFn:_,labelFns:sv.makeLabelFns(d,p)}));function x(O){O.attr("width",function(V){return Math.max(0,d.c2p(V.range[1])-d.c2p(V.range[0]))}).attr("x",function(V){return d.c2p(V.range[0])}).attr("y",function(V){return .5*(1-V.thickness)*C}).attr("height",function(V){return V.thickness*C})}var k=[s].concat(i.gauge.steps),M=a.selectAll("g.bg-bullet").data(k);M.enter().append("g").classed("bg-bullet",!0).append("rect"),M.select("rect").call(x).call(uw),M.exit().remove();var g=a.selectAll("g.value-bullet").data([i.gauge.bar]);g.enter().append("g").classed("value-bullet",!0).append("rect"),g.select("rect").attr("height",E).attr("y",(C-E)/2).call(uw),tk(f)?g.select("rect").transition().duration(f.duration).ease(f.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()}).attr("width",Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y)))):g.select("rect").attr("width",typeof r[0].y=="number"?Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y))):0),g.exit().remove();var P=r.filter(function(){return i.gauge.threshold.value||i.gauge.threshold.value===0}),T=a.selectAll("g.threshold-bullet").data(P);T.enter().append("g").classed("threshold-bullet",!0).append("line"),T.select("line").attr("x1",d.c2p(i.gauge.threshold.value)).attr("x2",d.c2p(i.gauge.threshold.value)).attr("y1",(1-i.gauge.threshold.thickness)/2*C).attr("y2",(1-(1-i.gauge.threshold.thickness)/2)*C).call(F5.stroke,i.gauge.threshold.line.color).style("stroke-width",i.gauge.threshold.line.width),T.exit().remove();var z=a.selectAll("g.gauge-outline").data([l]);z.enter().append("g").classed("gauge-outline",!0).append("rect"),z.select("rect").call(x).call(uw),z.exit().remove()}function UZt(e,t,r,n){var i=r[0].trace,a=n.size,o=n.radius,s=n.innerRadius,l=n.gaugeBg,u=n.gaugeOutline,c=[a.l+a.w/2,a.t+a.h/2+o/2],f=n.gauge,h=n.layer,d=n.transitionOpts,v=n.onComplete,_=Math.PI/2;function b(_e){var Me=i.gauge.axis.range[0],ke=i.gauge.axis.range[1],me=(_e-Me)/(ke-Me)*Math.PI-_;return me<-_?-_:me>_?_:me}function p(_e){return fw.svg.arc().innerRadius((s+o)/2-_e/2*(o-s)).outerRadius((s+o)/2+_e/2*(o-s)).startAngle(-_)}function C(_e){_e.attr("d",function(Me){return p(Me.thickness).startAngle(b(Me.range[0])).endAngle(b(Me.range[1]))()})}var E,A,L,x;f.enter().append("g").classed("angular",!0),f.attr("transform",ek(c[0],c[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),E=QC(e,i.gauge.axis),E.type="linear",E.range=i.gauge.axis.range,E._id="xangularaxis",E.ticklabeloverflow="allow",E.setScale();var k=function(_e){return(E.range[0]-_e.x)/(E.range[1]-E.range[0])*Math.PI+Math.PI},M={},g=sv.makeLabelFns(E,0),P=g.labelStandoff;M.xFn=function(_e){var Me=k(_e);return Math.cos(Me)*P},M.yFn=function(_e){var Me=k(_e),ke=Math.sin(Me)>0?.2:1;return-Math.sin(Me)*(P+_e.fontSize*ke)+Math.abs(Math.cos(Me))*(_e.fontSize*zZt)},M.anchorFn=function(_e){var Me=k(_e),ke=Math.cos(Me);return Math.abs(ke)<.1?"middle":ke>0?"start":"end"},M.heightFn=function(_e,Me,ke){var me=k(_e);return-.5*(1+Math.sin(me))*ke};var T=function(_e){return ek(c[0]+o*Math.cos(_e),c[1]-o*Math.sin(_e))};L=function(_e){return T(k(_e))};var z=function(_e){var Me=k(_e);return T(Me)+"rotate("+-FZt(Me)+")"};if(A=sv.calcTicks(E),x=sv.getTickSigns(E)[2],E.visible){x=E.ticks==="inside"?-1:1;var O=(E.linewidth||1)/2;sv.drawTicks(e,E,{vals:A,layer:h,path:"M"+x*O+",0h"+x*E.ticklen,transFn:z}),sv.drawLabels(e,E,{vals:A,layer:h,transFn:L,labelFns:M})}var V=[l].concat(i.gauge.steps),G=f.selectAll("g.bg-arc").data(V);G.enter().append("g").classed("bg-arc",!0).append("path"),G.select("path").call(C).call(uw),G.exit().remove();var Z=p(i.gauge.bar.thickness),H=f.selectAll("g.value-arc").data([i.gauge.bar]);H.enter().append("g").classed("value-arc",!0).append("path");var N=H.select("path");tk(d)?(N.transition().duration(d.duration).ease(d.easing).each("end",function(){v&&v()}).each("interrupt",function(){v&&v()}).attrTween("d",GZt(Z,b(r[0].lastY),b(r[0].y))),i._lastValue=r[0].y):N.attr("d",typeof r[0].y=="number"?Z.endAngle(b(r[0].y)):"M0,0Z"),N.call(uw),H.exit().remove(),V=[];var j=i.gauge.threshold.value;(j||j===0)&&V.push({range:[j,j],color:i.gauge.threshold.color,line:{color:i.gauge.threshold.line.color,width:i.gauge.threshold.line.width},thickness:i.gauge.threshold.thickness});var re=f.selectAll("g.threshold-arc").data(V);re.enter().append("g").classed("threshold-arc",!0).append("path"),re.select("path").call(C).call(uw),re.exit().remove();var oe=f.selectAll("g.gauge-outline").data([u]);oe.enter().append("g").classed("gauge-outline",!0).append("path"),oe.select("path").call(C).call(uw),oe.exit().remove()}function VZt(e,t,r,n){var i=r[0].trace,a=n.numbersX,o=n.numbersY,s=i.align||"center",l=r$[s],u=n.transitionOpts,c=n.onComplete,f=Ex.ensureSingle(t,"g","numbers"),h,d,v,_=[];i._hasNumber&&_.push("number"),i._hasDelta&&(_.push("delta"),i.delta.position==="left"&&_.reverse());var b=f.selectAll("text").data(_);b.enter().append("text"),b.attr("text-anchor",function(){return l}).attr("class",function(T){return T}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),b.exit().remove();function p(T,z,O,V){if(T.match("s")&&O>=0!=V>=0&&!z(O).slice(-1).match(mXe)&&!z(V).slice(-1).match(mXe)){var G=T.slice().replace("s","f").replace(/\d+/,function(H){return parseInt(H)-1}),Z=QC(e,{tickformat:G});return function(H){return Math.abs(H)<1?sv.tickText(Z,H).text:z(H)}}else return z}function C(){var T=QC(e,{tickformat:i.number.valueformat},i._range);T.setScale(),sv.prepTicks(T);var z=function(H){return sv.tickText(T,H).text},O=i.number.suffix,V=i.number.prefix,G=f.select("text.number");function Z(){var H=typeof r[0].y=="number"?V+z(r[0].y)+O:"-";G.text(H).call(cw.font,i.number.font).call(L7.convertToTspans,e)}return tk(u)?G.transition().duration(u.duration).ease(u.easing).each("end",function(){Z(),c&&c()}).each("interrupt",function(){Z(),c&&c()}).attrTween("text",function(){var H=fw.select(this),N=gXe(r[0].lastY,r[0].y);i._lastValue=r[0].y;var j=p(i.number.valueformat,z,r[0].lastY,r[0].y);return function(re){H.text(V+j(N(re))+O)}}):Z(),h=_Xe(V+z(r[0].y)+O,i.number.font,l,e),G}function E(){var T=QC(e,{tickformat:i.delta.valueformat},i._range);T.setScale(),sv.prepTicks(T);var z=function(re){return sv.tickText(T,re).text},O=i.delta.suffix,V=i.delta.prefix,G=function(re){var oe=i.delta.relative?re.relativeDelta:re.delta;return oe},Z=function(re,oe){return re===0||typeof re!="number"||isNaN(re)?"-":(re>0?i.delta.increasing.symbol:i.delta.decreasing.symbol)+V+oe(re)+O},H=function(re){return re.delta>=0?i.delta.increasing.color:i.delta.decreasing.color};i._deltaLastValue===void 0&&(i._deltaLastValue=G(r[0]));var N=f.select("text.delta");N.call(cw.font,i.delta.font).call(F5.fill,H({delta:i._deltaLastValue}));function j(){N.text(Z(G(r[0]),z)).call(F5.fill,H(r[0])).call(L7.convertToTspans,e)}return tk(u)?N.transition().duration(u.duration).ease(u.easing).tween("text",function(){var re=fw.select(this),oe=G(r[0]),_e=i._deltaLastValue,Me=p(i.delta.valueformat,z,_e,oe),ke=gXe(_e,oe);return i._deltaLastValue=oe,function(me){re.text(Z(ke(me),Me)),re.call(F5.fill,H({delta:ke(me)}))}}).each("end",function(){j(),c&&c()}).each("interrupt",function(){j(),c&&c()}):j(),d=_Xe(Z(G(r[0]),z),i.delta.font,l,e),N}var A=i.mode+i.align,L;if(i._hasDelta&&(L=E(),A+=i.delta.position+i.delta.font.size+i.delta.font.family+i.delta.valueformat,A+=i.delta.increasing.symbol+i.delta.decreasing.symbol,v=d),i._hasNumber&&(C(),A+=i.number.font.size+i.number.font.family+i.number.valueformat+i.number.suffix+i.number.prefix,v=h),i._hasDelta&&i._hasNumber){var x=[(h.left+h.right)/2,(h.top+h.bottom)/2],k=[(d.left+d.right)/2,(d.top+d.bottom)/2],M,g,P=.75*i.delta.font.size;i.delta.position==="left"&&(M=k7(i,"deltaPos",0,-1*(h.width*lw[i.align]+d.width*(1-lw[i.align])+P),A,Math.min),g=x[1]-k[1],v={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:d.left+M,right:h.right,top:Math.min(h.top,d.top+g),bottom:Math.max(h.bottom,d.bottom+g)}),i.delta.position==="right"&&(M=k7(i,"deltaPos",0,h.width*(1-lw[i.align])+d.width*lw[i.align]+P,A,Math.max),g=x[1]-k[1],v={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:h.left,right:d.right+M,top:Math.min(h.top,d.top+g),bottom:Math.max(h.bottom,d.bottom+g)}),i.delta.position==="bottom"&&(M=null,g=d.height,v={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height,bottom:h.bottom+d.height}),i.delta.position==="top"&&(M=null,g=h.top,v={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height-d.height,bottom:h.bottom}),L.attr({dx:M,dy:g})}(i._hasNumber||i._hasDelta)&&f.attr("transform",function(){var T=n.numbersScaler(v);A+=T[2];var z=k7(i,"numbersScale",1,T[0],A,Math.min),O;i._scaleNumbers||(z=1),i._isAngular?O=o-z*v.bottom:O=o-z*(v.top+v.bottom)/2,i._numbersTop=z*v.top+O;var V=v[s];s==="center"&&(V=(v.left+v.right)/2);var G=a-z*V;return G=k7(i,"numbersTranslate",0,G,A,Math.max),ek(G,O)+DZt(z)})}function uw(e){e.each(function(t){F5.stroke(fw.select(this),t.line.color)}).each(function(t){F5.fill(fw.select(this),t.color)}).style("stroke-width",function(t){return t.line.width})}function GZt(e,t,r){return function(){var n=RZt(t,r);return function(i){return e.endAngle(n(i))()}}}function QC(e,t,r){var n=e._fullLayout,i=Ex.extendFlat({type:"linear",ticks:"outside",range:r,showline:!0},t),a={type:"linear",_id:"x"+t._id},o={letter:"x",font:n.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function s(l,u){return Ex.coerce(i,a,BZt,l,u)}return OZt(i,a,s,o,n),qZt(i,a,s,o),a}function yXe(e,t,r){var n=Math.min(t/e.width,r/e.height);return[n,e,t+"x"+r]}function HZt(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),n=t/r;return[n,e,t]}function _Xe(e,t,r,n){var i=document.createElementNS("http://www.w3.org/2000/svg","text"),a=fw.select(i);return a.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call(L7.convertToTspans,n).call(cw.font,t),cw.bBox(a.node())}function k7(e,t,r,n,i,a){var o="_cache"+t;e[o]&&e[o].key===i||(e[o]={key:i,value:r});var s=Ex.aggNums(a,null,[e[o].value,n],2);return e[o].value=s,s}});var TXe=ye((dbr,wXe)=>{"use strict";wXe.exports={moduleType:"trace",name:"indicator",basePlotModule:iXe(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:e$(),supplyDefaults:dXe().supplyDefaults,calc:pXe().calc,plot:bXe(),meta:{}}});var SXe=ye((vbr,AXe)=>{"use strict";AXe.exports=TXe()});var i$=ye((gbr,kXe)=>{"use strict";var MXe=Nb(),P7=Ao().extendFlat,jZt=mc().overrideAll,EXe=ec(),WZt=kc().attributes,CXe=df().descriptionOnlyNumbers,pbr=kXe.exports=jZt({domain:WZt({name:"table",trace:!0}),columnwidth:{valType:"number",arrayOk:!0,dflt:null},columnorder:{valType:"data_array"},header:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:CXe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:P7({},MXe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:P7({},EXe({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:CXe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:P7({},MXe.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:P7({},EXe({arrayOk:!0}))}},"calc","from-root")});var PXe=ye((mbr,LXe)=>{"use strict";var n$=Dr(),XZt=i$(),ZZt=kc().defaults;function YZt(e,t){for(var r=e.columnorder||[],n=e.header.values.length,i=r.slice(0,n),a=i.slice().sort(function(l,u){return l-u}),o=i.map(function(l){return a.indexOf(l)}),s=o.length;s{"use strict";var KZt=Km().wrap;IXe.exports=function(){return KZt({})}});var a$=ye((_br,DXe)=>{"use strict";DXe.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:"
",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}});var GXe=ye((xbr,VXe)=>{"use strict";var FXe=a$(),s$=Ao().extendFlat,JZt=Eo(),$Zt=vv().isTypedArray,I7=vv().isArrayOrTypedArray;VXe.exports=function(t,r){var n=o$(r.cells.values),i=function(g){return g.slice(r.header.values.length,g.length)},a=o$(r.header.values);a.length&&!a[0].length&&(a[0]=[""],a=o$(a));var o=a.concat(i(n).map(function(){return UXe((a[0]||[""]).length)})),s=r.domain,l=Math.floor(t._fullLayout._size.w*(s.x[1]-s.x[0])),u=Math.floor(t._fullLayout._size.h*(s.y[1]-s.y[0])),c=r.header.values.length?o[0].map(function(){return r.header.height}):[FXe.emptyHeaderHeight],f=n.length?n[0].map(function(){return r.cells.height}):[],h=c.reduce(zXe,0),d=u-h,v=d+FXe.uplift,_=BXe(f,v),b=BXe(c,h),p=qXe(b,[]),C=qXe(_,p),E={},A=r._fullInput.columnorder;I7(A)&&(A=Array.from(A)),A=A.concat(i(n.map(function(g,P){return P})));var L=o.map(function(g,P){var T=I7(r.columnwidth)?r.columnwidth[Math.min(P,r.columnwidth.length-1)]:r.columnwidth;return JZt(T)?Number(T):1}),x=L.reduce(zXe,0);L=L.map(function(g){return g/x*l});var k=Math.max(l$(r.header.line.width),l$(r.cells.line.width)),M={key:r.uid+t._context.staticPlot,translateX:s.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-s.y[1]),size:t._fullLayout._size,width:l,maxLineWidth:k,height:u,columnOrder:A,groupHeight:u,rowBlocks:C,headerRowBlocks:p,scrollY:0,cells:s$({},r.cells,{values:n}),headerCells:s$({},r.header,{values:o}),gdColumns:o.map(function(g){return g[0]}),gdColumnsOriginalOrder:o.map(function(g){return g[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:o.map(function(g,P){var T=E[g];E[g]=(T||0)+1;var z=g+"__"+E[g];return{key:z,label:g,specIndex:P,xIndex:A[P],xScale:OXe,x:void 0,calcdata:void 0,columnWidth:L[P]}})};return M.columns.forEach(function(g){g.calcdata=M,g.x=OXe(g)}),M};function l$(e){if(I7(e)){for(var t=0,r=0;r=t||u===e.length-1)&&(r[i]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=u,o=NXe(),i+=a,s=u+1,a=0);return r}function NXe(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}});var HXe=ye(u$=>{"use strict";var R7=Ao().extendFlat;u$.splitToPanels=function(e){var t=[0,0],r=R7({},e,{key:"header",type:"header",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!0,values:e.calcdata.headerCells.values[e.specIndex],rowBlocks:e.calcdata.headerRowBlocks,calcdata:R7({},e.calcdata,{cells:e.calcdata.headerCells})}),n=R7({},e,{key:"cells1",type:"cells",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks}),i=R7({},e,{key:"cells2",type:"cells",page:1,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks});return[n,i,r]};u$.splitToCells=function(e){var t=QZt(e);return(e.values||[]).slice(t[0],t[1]).map(function(r,n){var i=typeof r=="string"&&r.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:n+i,key:t[0]+n,column:e,calcdata:e.calcdata,page:e.page,rowBlocks:e.rowBlocks,value:r}})};function QZt(e){var t=e.rowBlocks[e.page],r=t?t.rows[0].rowIndex:0,n=t?r+t.rows.length:0;return[r,n]}});var _$=ye((wbr,tZe)=>{"use strict";var Ya=a$(),tf=Oa(),c$=Dr(),eYt=c$.numberFormat,Uu=Km(),f$=So(),tYt=iu(),rYt=Dr().raiseToTop,og=Dr().strTranslate,iYt=Dr().cancelTransition,nYt=GXe(),JXe=HXe(),jXe=Ca();tZe.exports=function(t,r){var n=!t._context.staticPlot,i=t._fullLayout._paper.selectAll("."+Ya.cn.table).data(r.map(function(C){var E=Uu.unwrap(C),A=E.trace;return nYt(t,A)}),Uu.keyFun);i.exit().remove(),i.enter().append("g").classed(Ya.cn.table,!0).attr("overflow","visible").style("box-sizing","content-box").style("position","absolute").style("left",0).style("overflow","visible").style("shape-rendering","crispEdges").style("pointer-events","all"),i.attr("width",function(C){return C.width+C.size.l+C.size.r}).attr("height",function(C){return C.height+C.size.t+C.size.b}).attr("transform",function(C){return og(C.translateX,C.translateY)});var a=i.selectAll("."+Ya.cn.tableControlView).data(Uu.repeat,Uu.keyFun),o=a.enter().append("g").classed(Ya.cn.tableControlView,!0).style("box-sizing","content-box");if(n){var s="onwheel"in document?"wheel":"mousewheel";o.on("mousemove",function(C){a.filter(function(E){return C===E}).call(rk,t)}).on(s,function(C){if(!C.scrollbarState.wheeling){C.scrollbarState.wheeling=!0;var E=C.scrollY+tf.event.deltaY,A=F7(t,a,null,E)(C);A||(tf.event.stopPropagation(),tf.event.preventDefault()),C.scrollbarState.wheeling=!1}}).call(rk,t,!0)}a.attr("transform",function(C){return og(C.size.l,C.size.t)});var l=a.selectAll("."+Ya.cn.scrollBackground).data(Uu.repeat,Uu.keyFun);l.enter().append("rect").classed(Ya.cn.scrollBackground,!0).attr("fill","none"),l.attr("width",function(C){return C.width}).attr("height",function(C){return C.height}),a.each(function(C){f$.setClipUrl(tf.select(this),WXe(t,C),t)});var u=a.selectAll("."+Ya.cn.yColumn).data(function(C){return C.columns},Uu.keyFun);u.enter().append("g").classed(Ya.cn.yColumn,!0),u.exit().remove(),u.attr("transform",function(C){return og(C.x,0)}),n&&u.call(tf.behavior.drag().origin(function(C){var E=tf.select(this);return YXe(E,C,-Ya.uplift),rYt(this),C.calcdata.columnDragInProgress=!0,rk(a.filter(function(A){return C.calcdata.key===A.key}),t),C}).on("drag",function(C){var E=tf.select(this),A=function(k){return(C===k?tf.event.x:k.x)+k.columnWidth/2};C.x=Math.max(-Ya.overdrag,Math.min(C.calcdata.width+Ya.overdrag-C.columnWidth,tf.event.x));var L=$Xe(u).filter(function(k){return k.calcdata.key===C.calcdata.key}),x=L.sort(function(k,M){return A(k)-A(M)});x.forEach(function(k,M){k.xIndex=M,k.x=C===k?k.x:k.xScale(k)}),u.filter(function(k){return C!==k}).transition().ease(Ya.transitionEase).duration(Ya.transitionDuration).attr("transform",function(k){return og(k.x,0)}),E.call(iYt).attr("transform",og(C.x,-Ya.uplift))}).on("dragend",function(C){var E=tf.select(this),A=C.calcdata;C.x=C.xScale(C),C.calcdata.columnDragInProgress=!1,YXe(E,C,0),vYt(t,A,A.columns.map(function(L){return L.xIndex}))})),u.each(function(C){f$.setClipUrl(tf.select(this),XXe(t,C),t)});var c=u.selectAll("."+Ya.cn.columnBlock).data(JXe.splitToPanels,Uu.keyFun);c.enter().append("g").classed(Ya.cn.columnBlock,!0).attr("id",function(C){return C.key}),c.style("cursor",function(C){return C.dragHandle?"ew-resize":C.calcdata.scrollbarState.barWiggleRoom?"ns-resize":"default"});var f=c.filter(pYt),h=c.filter(g$);n&&h.call(tf.behavior.drag().origin(function(C){return tf.event.stopPropagation(),C}).on("drag",F7(t,a,-1)).on("dragend",function(){})),h$(t,a,f,c),h$(t,a,h,c);var d=a.selectAll("."+Ya.cn.scrollAreaClip).data(Uu.repeat,Uu.keyFun);d.enter().append("clipPath").classed(Ya.cn.scrollAreaClip,!0).attr("id",function(C){return WXe(t,C)});var v=d.selectAll("."+Ya.cn.scrollAreaClipRect).data(Uu.repeat,Uu.keyFun);v.enter().append("rect").classed(Ya.cn.scrollAreaClipRect,!0).attr("x",-Ya.overdrag).attr("y",-Ya.uplift).attr("fill","none"),v.attr("width",function(C){return C.width+2*Ya.overdrag}).attr("height",function(C){return C.height+Ya.uplift});var _=u.selectAll("."+Ya.cn.columnBoundary).data(Uu.repeat,Uu.keyFun);_.enter().append("g").classed(Ya.cn.columnBoundary,!0);var b=u.selectAll("."+Ya.cn.columnBoundaryClippath).data(Uu.repeat,Uu.keyFun);b.enter().append("clipPath").classed(Ya.cn.columnBoundaryClippath,!0),b.attr("id",function(C){return XXe(t,C)});var p=b.selectAll("."+Ya.cn.columnBoundaryRect).data(Uu.repeat,Uu.keyFun);p.enter().append("rect").classed(Ya.cn.columnBoundaryRect,!0).attr("fill","none"),p.attr("width",function(C){return C.columnWidth+2*D7(C)}).attr("height",function(C){return C.calcdata.height+2*D7(C)+Ya.uplift}).attr("x",function(C){return-D7(C)}).attr("y",function(C){return-D7(C)}),m$(null,h,a)};function D7(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function WXe(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function XXe(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function $Xe(e){return[].concat.apply([],e.map(function(t){return t})).map(function(t){return t.__data__})}function rk(e,t,r){function n(u){var c=u.rowBlocks;return v$(c,c.length-1)+(c.length?z7(c[c.length-1],1/0):1)}var i=e.selectAll("."+Ya.cn.scrollbarKit).data(Uu.repeat,Uu.keyFun);i.enter().append("g").classed(Ya.cn.scrollbarKit,!0).style("shape-rendering","geometricPrecision"),i.each(function(u){var c=u.scrollbarState;c.totalHeight=n(u),c.scrollableAreaHeight=u.groupHeight-d$(u),c.currentlyVisibleHeight=Math.min(c.totalHeight,c.scrollableAreaHeight),c.ratio=c.currentlyVisibleHeight/c.totalHeight,c.barLength=Math.max(c.ratio*c.currentlyVisibleHeight,Ya.goldenRatio*Ya.scrollbarWidth),c.barWiggleRoom=c.currentlyVisibleHeight-c.barLength,c.wiggleRoom=Math.max(0,c.totalHeight-c.scrollableAreaHeight),c.topY=c.barWiggleRoom===0?0:u.scrollY/c.wiggleRoom*c.barWiggleRoom,c.bottomY=c.topY+c.barLength,c.dragMultiplier=c.wiggleRoom/c.barWiggleRoom}).attr("transform",function(u){var c=u.width+Ya.scrollbarWidth/2+Ya.scrollbarOffset;return og(c,d$(u))});var a=i.selectAll("."+Ya.cn.scrollbar).data(Uu.repeat,Uu.keyFun);a.enter().append("g").classed(Ya.cn.scrollbar,!0);var o=a.selectAll("."+Ya.cn.scrollbarSlider).data(Uu.repeat,Uu.keyFun);o.enter().append("g").classed(Ya.cn.scrollbarSlider,!0),o.attr("transform",function(u){return og(0,u.scrollbarState.topY||0)});var s=o.selectAll("."+Ya.cn.scrollbarGlyph).data(Uu.repeat,Uu.keyFun);s.enter().append("line").classed(Ya.cn.scrollbarGlyph,!0).attr("stroke","black").attr("stroke-width",Ya.scrollbarWidth).attr("stroke-linecap","round").attr("y1",Ya.scrollbarWidth/2),s.attr("y2",function(u){return u.scrollbarState.barLength-Ya.scrollbarWidth/2}).attr("stroke-opacity",function(u){return u.columnDragInProgress||!u.scrollbarState.barWiggleRoom||r?0:.4}),s.transition().delay(0).duration(0),s.transition().delay(Ya.scrollbarHideDelay).duration(Ya.scrollbarHideDuration).attr("stroke-opacity",0);var l=a.selectAll("."+Ya.cn.scrollbarCaptureZone).data(Uu.repeat,Uu.keyFun);l.enter().append("line").classed(Ya.cn.scrollbarCaptureZone,!0).attr("stroke","white").attr("stroke-opacity",.01).attr("stroke-width",Ya.scrollbarCaptureWidth).attr("stroke-linecap","butt").attr("y1",0).on("mousedown",function(u){var c=tf.event.y,f=this.getBoundingClientRect(),h=u.scrollbarState,d=c-f.top,v=tf.scale.linear().domain([0,h.scrollableAreaHeight]).range([0,h.totalHeight]).clamp(!0);h.topY<=d&&d<=h.bottomY||F7(t,e,null,v(d-h.barLength/2))(u)}).call(tf.behavior.drag().origin(function(u){return tf.event.stopPropagation(),u.scrollbarState.scrollbarScrollInProgress=!0,u}).on("drag",F7(t,e)).on("dragend",function(){})),l.attr("y2",function(u){return u.scrollbarState.scrollableAreaHeight}),t._context.staticPlot&&(s.remove(),l.remove())}function h$(e,t,r,n){var i=aYt(r),a=oYt(i);cYt(a);var o=sYt(a);hYt(o);var s=uYt(a),l=lYt(s);fYt(l),QXe(l,t,n,e),y$(a)}function aYt(e){var t=e.selectAll("."+Ya.cn.columnCells).data(Uu.repeat,Uu.keyFun);return t.enter().append("g").classed(Ya.cn.columnCells,!0),t.exit().remove(),t}function oYt(e){var t=e.selectAll("."+Ya.cn.columnCell).data(JXe.splitToCells,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(Ya.cn.columnCell,!0),t.exit().remove(),t}function sYt(e){var t=e.selectAll("."+Ya.cn.cellRect).data(Uu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("rect").classed(Ya.cn.cellRect,!0),t}function lYt(e){var t=e.selectAll("."+Ya.cn.cellText).data(Uu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("text").classed(Ya.cn.cellText,!0).style("cursor",function(){return"auto"}).on("mousedown",function(){tf.event.stopPropagation()}),t}function uYt(e){var t=e.selectAll("."+Ya.cn.cellTextHolder).data(Uu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(Ya.cn.cellTextHolder,!0).style("shape-rendering","geometricPrecision"),t}function cYt(e){e.each(function(t,r){var n=t.calcdata.cells.font,i=t.column.specIndex,a={size:Zv(n.size,i,r),color:Zv(n.color,i,r),family:Zv(n.family,i,r),weight:Zv(n.weight,i,r),style:Zv(n.style,i,r),variant:Zv(n.variant,i,r),textcase:Zv(n.textcase,i,r),lineposition:Zv(n.lineposition,i,r),shadow:Zv(n.shadow,i,r)};t.rowNumber=t.key,t.align=Zv(t.calcdata.cells.align,i,r),t.cellBorderWidth=Zv(t.calcdata.cells.line.width,i,r),t.font=a})}function fYt(e){e.each(function(t){f$.font(tf.select(this),t.font)})}function hYt(e){e.attr("width",function(t){return t.column.columnWidth}).attr("stroke-width",function(t){return t.cellBorderWidth}).each(function(t){var r=tf.select(this);jXe.stroke(r,Zv(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),jXe.fill(r,Zv(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function QXe(e,t,r,n){e.text(function(i){var a=i.column.specIndex,o=i.rowNumber,s=i.value,l=typeof s=="string",u=l&&s.match(/
/i),c=!l||u;i.mayHaveMarkup=l&&s.match(/[<&>]/);var f=dYt(s);i.latex=f;var h=f?"":Zv(i.calcdata.cells.prefix,a,o)||"",d=f?"":Zv(i.calcdata.cells.suffix,a,o)||"",v=f?null:Zv(i.calcdata.cells.format,a,o)||null,_=h+(v?eYt(v)(i.value):i.value)+d,b;i.wrappingNeeded=!i.wrapped&&!c&&!f&&(b=ZXe(_)),i.cellHeightMayIncrease=u||f||i.mayHaveMarkup||(b===void 0?ZXe(_):b),i.needsConvertToTspans=i.mayHaveMarkup||i.wrappingNeeded||i.latex;var p;if(i.wrappingNeeded){var C=Ya.wrapSplitCharacter===" "?_.replace(/i&&n.push(a),i+=l}return n}function m$(e,t,r){var n=$Xe(t)[0];if(n!==void 0){var i=n.rowBlocks,a=n.calcdata,o=v$(i,i.length),s=n.calcdata.groupHeight-d$(n),l=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),u=gYt(i,l,s);u.length===1&&(u[0]===i.length-1?u.unshift(u[0]-1):u.push(u[0]+1)),u[0]%2&&u.reverse(),t.each(function(c,f){c.page=u[f],c.scrollY=l}),t.attr("transform",function(c){var f=v$(c.rowBlocks,c.page)-c.scrollY;return og(0,f)}),e&&(KXe(e,r,t,u,n.prevPages,n,0),KXe(e,r,t,u,n.prevPages,n,1),rk(r,e))}}function F7(e,t,r,n){return function(a){var o=a.calcdata?a.calcdata:a,s=t.filter(function(f){return o.key===f.key}),l=r||o.scrollbarState.dragMultiplier,u=o.scrollY;o.scrollY=n===void 0?o.scrollY+l*tf.event.dy:n;var c=s.selectAll("."+Ya.cn.yColumn).selectAll("."+Ya.cn.columnBlock).filter(g$);return m$(e,c,s),o.scrollY===u}}function KXe(e,t,r,n,i,a,o){var s=n[o]!==i[o];s&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout(function(){var l=r.filter(function(u,c){return c===o&&n[c]!==i[c]});h$(e,t,l,r),i[o]=n[o]}))}function mYt(e,t,r,n){return function(){var a=tf.select(t.parentNode);a.each(function(o){var s=o.fragments;a.selectAll("tspan.line").each(function(_,b){s[b].width=this.getComputedTextLength()});var l=s[s.length-1].width,u=s.slice(0,-1),c=[],f,h,d=0,v=o.column.columnWidth-2*Ya.cellPad;for(o.value="";u.length;)f=u.shift(),h=f.width+l,d+h>v&&(o.value+=c.join(Ya.wrapSpacer)+Ya.lineBreaker,c=[],d=0),c.push(f.text),d+=h;d&&(o.value+=c.join(Ya.wrapSpacer)),o.wrapped=!0}),a.selectAll("tspan.line").remove(),QXe(a.select("."+Ya.cn.cellText),r,e,n),tf.select(t.parentNode.parentNode).call(y$)}}function yYt(e,t,r,n,i){return function(){if(!i.settledY){var o=tf.select(t.parentNode),s=p$(i),l=i.key-s.firstRowIndex,u=s.rows[l].rowHeight,c=i.cellHeightMayIncrease?t.parentNode.getBoundingClientRect().height+2*Ya.cellPad:u,f=Math.max(c,u),h=f-s.rows[l].rowHeight;h&&(s.rows[l].rowHeight=f,e.selectAll("."+Ya.cn.columnCell).call(y$),m$(null,e.filter(g$),0),rk(r,n,!0)),o.attr("transform",function(){var d=this,v=d.parentNode,_=v.getBoundingClientRect(),b=tf.select(d.parentNode).select("."+Ya.cn.cellRect).node().getBoundingClientRect(),p=d.transform.baseVal.consolidate(),C=b.top-_.top+(p?p.matrix.f:Ya.cellPad);return og(eZe(i,tf.select(d.parentNode).select("."+Ya.cn.cellTextHolder).node().getBoundingClientRect().width),C)}),i.settledY=!0}}}function eZe(e,t){switch(e.align){case"left":return Ya.cellPad;case"right":return e.column.columnWidth-(t||0)-Ya.cellPad;case"center":return(e.column.columnWidth-(t||0))/2;default:return Ya.cellPad}}function y$(e){e.attr("transform",function(t){var r=t.rowBlocks[0].auxiliaryBlocks.reduce(function(o,s){return o+z7(s,1/0)},0),n=p$(t),i=z7(n,t.key),a=i+r;return og(0,a)}).selectAll("."+Ya.cn.cellRect).attr("height",function(t){return xYt(p$(t),t.key).rowHeight})}function v$(e,t){for(var r=0,n=t-1;n>=0;n--)r+=_Yt(e[n]);return r}function z7(e,t){for(var r=0,n=0;n{"use strict";var bYt=Id().getModuleCalcData,wYt=_$(),O7="table";q7.name=O7;q7.plot=function(e){var t=bYt(e.calcdata,O7)[0];t.length&&wYt(e,t)};q7.clean=function(e,t,r,n){var i=n._has&&n._has(O7),a=t._has&&t._has(O7);i&&!a&&n._paperdiv.selectAll(".table").remove()}});var nZe=ye((Abr,iZe)=>{"use strict";iZe.exports={attributes:i$(),supplyDefaults:PXe(),calc:RXe(),plot:_$(),moduleType:"trace",name:"table",basePlotModule:rZe(),categories:["noOpacity"],meta:{}}});var oZe=ye((Sbr,aZe)=>{"use strict";aZe.exports=nZe()});var fZe=ye((Mbr,cZe)=>{"use strict";var sZe=ec(),lZe=Eh(),x$=Rd(),TYt=df().descriptionWithDates,AYt=mc().overrideAll,uZe=Pd().dash,b$=Ao().extendFlat;cZe.exports={color:{valType:"color",editType:"calc"},smoothing:{valType:"number",dflt:1,min:0,max:1.3,editType:"calc"},title:{text:{valType:"string",dflt:"",editType:"calc"},font:sZe({editType:"calc"}),offset:{valType:"number",dflt:10,editType:"calc"},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc"},autotypenumbers:x$.autotypenumbers,autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"calc"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"calc"},range:{valType:"info_array",editType:"calc",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}]},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},cheatertype:{valType:"enumerated",values:["index","value"],dflt:"value",editType:"calc"},tickmode:{valType:"enumerated",values:["linear","array"],dflt:"array",editType:"calc"},nticks:{valType:"integer",min:0,dflt:0,editType:"calc"},tickvals:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},showticklabels:{valType:"enumerated",values:["start","end","both","none"],dflt:"start",editType:"calc"},labelalias:b$({},x$.labelalias,{editType:"calc"}),tickfont:sZe({editType:"calc"}),tickangle:{valType:"angle",dflt:"auto",editType:"calc"},tickprefix:{valType:"string",dflt:"",editType:"calc"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},ticksuffix:{valType:"string",dflt:"",editType:"calc"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"calc"},minexponent:{valType:"number",dflt:3,min:0,editType:"calc"},separatethousands:{valType:"boolean",dflt:!1,editType:"calc"},tickformat:{valType:"string",dflt:"",editType:"calc",description:TYt("tick label")},tickformatstops:AYt(x$.tickformatstops,"calc","from-root"),categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},labelpadding:{valType:"integer",dflt:10,editType:"calc"},labelprefix:{valType:"string",editType:"calc"},labelsuffix:{valType:"string",dflt:"",editType:"calc"},showline:{valType:"boolean",dflt:!1,editType:"calc"},linecolor:{valType:"color",dflt:lZe.defaultLine,editType:"calc"},linewidth:{valType:"number",min:0,dflt:1,editType:"calc"},gridcolor:{valType:"color",editType:"calc"},gridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},griddash:b$({},uZe,{editType:"calc"}),showgrid:{valType:"boolean",dflt:!0,editType:"calc"},minorgridcount:{valType:"integer",min:0,dflt:0,editType:"calc"},minorgridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},minorgriddash:b$({},uZe,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:lZe.lightLine,editType:"calc"},startline:{valType:"boolean",editType:"calc"},startlinecolor:{valType:"color",editType:"calc"},startlinewidth:{valType:"number",dflt:1,editType:"calc"},endline:{valType:"boolean",editType:"calc"},endlinewidth:{valType:"number",dflt:1,editType:"calc"},endlinecolor:{valType:"color",editType:"calc"},tick0:{valType:"number",min:0,dflt:0,editType:"calc"},dtick:{valType:"number",min:0,dflt:1,editType:"calc"},arraytick0:{valType:"integer",min:0,dflt:0,editType:"calc"},arraydtick:{valType:"integer",min:1,dflt:1,editType:"calc"},editType:"calc"}});var N7=ye((Ebr,vZe)=>{"use strict";var SYt=ec(),hZe=fZe(),dZe=Eh(),B7=SYt({editType:"calc"}),MYt=pf().zorder;B7.family.dflt='"Open Sans", verdana, arial, sans-serif';B7.size.dflt=12;B7.color.dflt=dZe.defaultLine;vZe.exports={carpet:{valType:"string",editType:"calc"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},a:{valType:"data_array",editType:"calc"},a0:{valType:"number",dflt:0,editType:"calc"},da:{valType:"number",dflt:1,editType:"calc"},b:{valType:"data_array",editType:"calc"},b0:{valType:"number",dflt:0,editType:"calc"},db:{valType:"number",dflt:1,editType:"calc"},cheaterslope:{valType:"number",dflt:1,editType:"calc"},aaxis:hZe,baxis:hZe,font:B7,color:{valType:"color",dflt:dZe.defaultLine,editType:"plot"},zorder:MYt}});var mZe=ye((Cbr,gZe)=>{"use strict";var pZe=Dr().isArray1D;gZe.exports=function(t,r,n){var i=n("x"),a=i&&i.length,o=n("y"),s=o&&o.length;if(!a&&!s)return!1;if(r._cheater=!i,(!a||pZe(i))&&(!s||pZe(o))){var l=a?i.length:1/0;s&&(l=Math.min(l,o.length)),r.a&&r.a.length&&(l=Math.min(l,r.a.length)),r.b&&r.b.length&&(l=Math.min(l,r.b.length)),r._length=l}else r._length=null;return!0}});var xZe=ye((kbr,_Ze)=>{"use strict";var EYt=N7(),yZe=Ca().addOpacity,CYt=qa(),ik=Dr(),kYt=xb(),LYt=t_(),PYt=r_(),IYt=rI(),RYt=ym(),DYt=L3();_Ze.exports=function(t,r,n){var i=n.letter,a=n.font||{},o=EYt[i+"axis"];function s(g,P){return ik.coerce(t,r,o,g,P)}function l(g,P){return ik.coerce2(t,r,o,g,P)}n.name&&(r._name=n.name,r._id=n.name),s("autotypenumbers",n.autotypenumbersDflt);var u=s("type");if(u==="-"&&(n.data&&FYt(r,n.data),r.type==="-"?r.type="linear":u=t.type=r.type),s("smoothing"),s("cheatertype"),s("showticklabels"),s("labelprefix",i+" = "),s("labelsuffix"),s("showtickprefix"),s("showticksuffix"),s("separatethousands"),s("tickformat"),s("exponentformat"),s("minexponent"),s("showexponent"),s("categoryorder"),s("tickmode"),s("tickvals"),s("ticktext"),s("tick0"),s("dtick"),r.tickmode==="array"&&(s("arraytick0"),s("arraydtick")),s("labelpadding"),r._hovertitle=i,u==="date"){var c=CYt.getComponentMethod("calendars","handleDefaults");c(t,r,"calendar",n.calendar)}RYt(r,n.fullLayout),r.c2p=ik.identity;var f=s("color",n.dfltColor),h=f===t.color?f:a.color,d=s("title.text");d&&(ik.coerceFont(s,"title.font",a,{overrideDflt:{size:ik.bigFont(a.size),color:h}}),s("title.offset")),s("tickangle");var v=s("autorange",!r.isValidRange(t.range));v&&s("rangemode"),s("range"),r.cleanRange(),s("fixedrange"),kYt(t,r,s,u),PYt(t,r,s,u,n),LYt(t,r,s,u,n),IYt(t,r,s,{data:n.data,dataAttr:i});var _=l("gridcolor",yZe(f,.3)),b=l("gridwidth"),p=l("griddash"),C=s("showgrid");C||(delete r.gridcolor,delete r.gridwidth,delete r.griddash);var E=l("startlinecolor",f),A=l("startlinewidth",b),L=s("startline",r.showgrid||!!E||!!A);L||(delete r.startlinecolor,delete r.startlinewidth);var x=l("endlinecolor",f),k=l("endlinewidth",b),M=s("endline",r.showgrid||!!x||!!k);return M||(delete r.endlinecolor,delete r.endlinewidth),C?(s("minorgridcount"),s("minorgridwidth",b),s("minorgriddash",p),s("minorgridcolor",yZe(_,.06)),r.minorgridcount||(delete r.minorgridwidth,delete r.minorgriddash,delete r.minorgridcolor)):(delete r.gridcolor,delete r.gridwidth,delete r.griddash),r.showticklabels==="none"&&(delete r.tickfont,delete r.tickangle,delete r.showexponent,delete r.exponentformat,delete r.minexponent,delete r.tickformat,delete r.showticksuffix,delete r.showtickprefix),r.showticksuffix||delete r.ticksuffix,r.showtickprefix||delete r.tickprefix,s("tickmode"),r};function FYt(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i=n+"calendar",a=e[i];e.type=DYt(t,a,{autotypenumbers:e.autotypenumbers})}}});var wZe=ye((Lbr,bZe)=>{"use strict";var zYt=xZe(),OYt=pl();bZe.exports=function(t,r,n,i,a){var o=i("a");o||(i("da"),i("a0"));var s=i("b");s||(i("db"),i("b0")),qYt(t,r,n,a)};function qYt(e,t,r,n){var i=["aaxis","baxis"];i.forEach(function(a){var o=a.charAt(0),s=e[a]||{},l=OYt.newContainer(t,a),u={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,tickfont:"x",id:o+"axis",letter:o,font:t.font,name:a,data:e[o],calendar:t.calendar,dfltColor:n,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};zYt(s,l,u),l._categories=l._categories||[],!e[a]&&s.type!=="-"&&(e[a]={type:s.type})})}});var SZe=ye((Pbr,AZe)=>{"use strict";var TZe=Dr(),BYt=mZe(),NYt=wZe(),UYt=N7(),VYt=Eh();AZe.exports=function(t,r,n,i){function a(l,u){return TZe.coerce(t,r,UYt,l,u)}r._clipPathId="clip"+r.uid+"carpet";var o=a("color",VYt.defaultLine);if(TZe.coerceFont(a,"font",i.font),a("carpet"),NYt(t,r,i,a,o),!r.a||!r.b){r.visible=!1;return}r.a.length<3&&(r.aaxis.smoothing=0),r.b.length<3&&(r.baxis.smoothing=0);var s=BYt(t,r,a);s||(r.visible=!1),r._cheater&&a("cheaterslope"),a("zorder")}});var w$=ye((Ibr,MZe)=>{"use strict";var GYt=Dr().isArrayOrTypedArray;MZe.exports=function(t,r,n){var i;for(GYt(t)?t.length>r.length&&(t=t.slice(0,r.length)):t=[],i=0;i{"use strict";EZe.exports=function(t,r,n){if(t.length===0)return"";var i,a=[],o=n?3:1;for(i=0;i{"use strict";CZe.exports=function(t,r,n,i,a,o){var s=a[0]*t.dpdx(r),l=a[1]*t.dpdy(n),u=1,c=1;if(o){var f=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=Math.sqrt(o[0]*o[0]+o[1]*o[1]),d=(a[0]*o[0]+a[1]*o[1])/f/h;c=Math.max(0,d)}var v=Math.atan2(l,s)*180/Math.PI;return v<-90?(v+=180,u=-u):v>90&&(v-=180,u=-u),{angle:v,flip:u,p:t.c2p(i,r,n),offsetMultplier:c}}});var OZe=ye((Fbr,zZe)=>{"use strict";var H7=Oa(),U7=So(),V7=w$(),IZe=T$(),nk=kZe(),A$=iu(),Np=Dr(),RZe=Np.strRotate,G7=Np.strTranslate,DZe=Kh();zZe.exports=function(t,r,n,i){var a=t._context.staticPlot,o=r.xaxis,s=r.yaxis,l=t._fullLayout,u=l._clips;Np.makeTraceGroups(i,n,"trace").each(function(c){var f=H7.select(this),h=c[0],d=h.trace,v=d.aaxis,_=d.baxis,b=Np.ensureSingle(f,"g","minorlayer"),p=Np.ensureSingle(f,"g","majorlayer"),C=Np.ensureSingle(f,"g","boundarylayer"),E=Np.ensureSingle(f,"g","labellayer");f.style("opacity",d.opacity),z5(o,s,p,v,"a",v._gridlines,!0,a),z5(o,s,p,_,"b",_._gridlines,!0,a),z5(o,s,b,v,"a",v._minorgridlines,!0,a),z5(o,s,b,_,"b",_._minorgridlines,!0,a),z5(o,s,C,v,"a-boundary",v._boundarylines,a),z5(o,s,C,_,"b-boundary",_._boundarylines,a);var A=LZe(t,o,s,d,h,E,v._labels,"a-label"),L=LZe(t,o,s,d,h,E,_._labels,"b-label");jYt(t,E,d,h,o,s,A,L),HYt(d,h,u,o,s)})};function HYt(e,t,r,n,i){var a,o,s,l,u=r.select("#"+e._clipPathId);u.size()||(u=r.append("clipPath").classed("carpetclip",!0));var c=Np.ensureSingle(u,"path","carpetboundary"),f=t.clipsegments,h=[];for(l=0;l0?"start":"end","data-notex":1}).call(U7.font,f.font).text(f.text).call(A$.convertToTspans,e),p=U7.bBox(this);b.attr("transform",G7(d.p[0],d.p[1])+RZe(d.angle)+G7(f.axis.labelpadding*_,p.height*.3)),u=Math.max(u,p.width+f.axis.labelpadding)}),l.exit().remove(),c.maxExtent=u,c}function jYt(e,t,r,n,i,a,o,s){var l,u,c,f,h=Np.aggNums(Math.min,null,r.a),d=Np.aggNums(Math.max,null,r.a),v=Np.aggNums(Math.min,null,r.b),_=Np.aggNums(Math.max,null,r.b);l=.5*(h+d),u=v,c=r.ab2xy(l,u,!0),f=r.dxyda_rough(l,u),o.angle===void 0&&Np.extendFlat(o,nk(r,i,a,c,r.dxydb_rough(l,u))),PZe(e,t,r,n,c,f,r.aaxis,i,a,o,"a-title"),l=h,u=.5*(v+_),c=r.ab2xy(l,u,!0),f=r.dxydb_rough(l,u),s.angle===void 0&&Np.extendFlat(s,nk(r,i,a,c,r.dxyda_rough(l,u))),PZe(e,t,r,n,c,f,r.baxis,i,a,s,"b-title")}var FZe=DZe.LINE_SPACING,WYt=(1-DZe.MID_SHIFT)/FZe+1;function PZe(e,t,r,n,i,a,o,s,l,u,c){var f=[];o.title.text&&f.push(o.title.text);var h=t.selectAll("text."+c).data(f),d=u.maxExtent;h.enter().append("text").classed(c,!0),h.each(function(){var v=nk(r,s,l,i,a);["start","both"].indexOf(o.showticklabels)===-1&&(d=0);var _=o.title.font.size;d+=_+o.title.offset;var b=u.angle+(u.flip<0?180:0),p=(b-v.angle+450)%360,C=p>90&&p<270,E=H7.select(this);E.text(o.title.text).call(A$.convertToTspans,e),C&&(d=(-A$.lineCount(E)+WYt)*FZe*_-d),E.attr("transform",G7(v.p[0],v.p[1])+RZe(v.angle)+G7(0,d)).attr("text-anchor","middle").call(U7.font,o.title.font)}),h.exit().remove()}});var BZe=ye((zbr,qZe)=>{"use strict";var j7=Dr().isArrayOrTypedArray;qZe.exports=function(e,t,r){var n,i,a,o,s,l,u=[],c=j7(e)?e.length:e,f=j7(t)?t.length:t,h=j7(e)?e:null,d=j7(t)?t:null;h&&(a=(h.length-1)/(h[h.length-1]-h[0])/(c-1)),d&&(o=(d.length-1)/(d[d.length-1]-d[0])/(f-1));var v,_=1/0,b=-1/0;for(i=0;i{"use strict";var NZe=Dr().isArrayOrTypedArray;VZe.exports=function(e){return UZe(e,0)};function UZe(e,t){if(!NZe(e)||t>=10)return null;for(var r=1/0,n=-1/0,i=e.length,a=0;a{"use strict";var XYt=ho(),Cx=Ao().extendFlat;HZe.exports=function(t,r,n){var i,a,o,s,l,u,c,f,h,d,v,_,b,p,C=t["_"+r],E=t[r+"axis"],A=E._gridlines=[],L=E._minorgridlines=[],x=E._boundarylines=[],k=t["_"+n],M=t[n+"axis"];E.tickmode==="array"&&(E.tickvals=C.slice());var g=t._xctrl,P=t._yctrl,T=g[0].length,z=g.length,O=t._a.length,V=t._b.length;XYt.prepTicks(E),E.tickmode==="array"&&delete E.tickvals;var G=E.smoothing?3:1;function Z(N){var j,re,oe,_e,Me,ke,me,ie,Se,Le,Ae,De,Pe=[],ge=[],Fe={};if(r==="b")for(re=t.b2j(N),oe=Math.floor(Math.max(0,Math.min(V-2,re))),_e=re-oe,Fe.length=V,Fe.crossLength=O,Fe.xy=function(ce){return t.evalxy([],ce,re)},Fe.dxy=function(ce,Ye){return t.dxydi([],ce,oe,Ye,_e)},j=0;j0&&(Se=t.dxydi([],j-1,oe,0,_e),Pe.push(Me[0]+Se[0]/3),ge.push(Me[1]+Se[1]/3),Le=t.dxydi([],j-1,oe,1,_e),Pe.push(ie[0]-Le[0]/3),ge.push(ie[1]-Le[1]/3)),Pe.push(ie[0]),ge.push(ie[1]),Me=ie;else for(j=t.a2i(N),ke=Math.floor(Math.max(0,Math.min(O-2,j))),me=j-ke,Fe.length=O,Fe.crossLength=V,Fe.xy=function(ce){return t.evalxy([],j,ce)},Fe.dxy=function(ce,Ye){return t.dxydj([],ke,ce,me,Ye)},re=0;re0&&(Ae=t.dxydj([],ke,re-1,me,0),Pe.push(Me[0]+Ae[0]/3),ge.push(Me[1]+Ae[1]/3),De=t.dxydj([],ke,re-1,me,1),Pe.push(ie[0]-De[0]/3),ge.push(ie[1]-De[1]/3)),Pe.push(ie[0]),ge.push(ie[1]),Me=ie;return Fe.axisLetter=r,Fe.axis=E,Fe.crossAxis=M,Fe.value=N,Fe.constvar=n,Fe.index=f,Fe.x=Pe,Fe.y=ge,Fe.smoothing=M.smoothing,Fe}function H(N){var j,re,oe,_e,Me,ke=[],me=[],ie={};if(ie.length=C.length,ie.crossLength=k.length,r==="b")for(oe=Math.max(0,Math.min(V-2,N)),Me=Math.min(1,Math.max(0,N-oe)),ie.xy=function(Se){return t.evalxy([],Se,N)},ie.dxy=function(Se,Le){return t.dxydi([],Se,oe,Le,Me)},j=0;jC.length-1)&&A.push(Cx(H(a),{color:E.gridcolor,width:E.gridwidth,dash:E.griddash}));for(f=u;fC.length-1)&&!(v<0||v>C.length-1))for(_=C[o],b=C[v],i=0;iC[C.length-1])&&L.push(Cx(Z(d),{color:E.minorgridcolor,width:E.minorgridwidth,dash:E.minorgriddash})));E.startline&&x.push(Cx(H(0),{color:E.startlinecolor,width:E.startlinewidth})),E.endline&&x.push(Cx(H(C.length-1),{color:E.endlinecolor,width:E.endlinewidth}))}else{for(s=5e-15,l=[Math.floor((C[C.length-1]-E.tick0)/E.dtick*(1+s)),Math.ceil((C[0]-E.tick0)/E.dtick/(1+s))].sort(function(N,j){return N-j}),u=l[0],c=l[1],f=u;f<=c;f++)h=E.tick0+E.dtick*f,A.push(Cx(Z(h),{color:E.gridcolor,width:E.gridwidth,dash:E.griddash}));for(f=u-1;fC[C.length-1])&&L.push(Cx(Z(d),{color:E.minorgridcolor,width:E.minorgridwidth,dash:E.minorgriddash}));E.startline&&x.push(Cx(Z(C[0]),{color:E.startlinecolor,width:E.startlinewidth})),E.endline&&x.push(Cx(Z(C[C.length-1]),{color:E.endlinecolor,width:E.endlinewidth}))}}});var YZe=ye((Bbr,ZZe)=>{"use strict";var WZe=ho(),XZe=Ao().extendFlat;ZZe.exports=function(t,r){var n,i,a,o,s,l=r._labels=[],u=r._gridlines;for(n=0;n{"use strict";KZe.exports=function(t,r,n,i){var a,o,s,l=[],u=!!n.smoothing,c=!!i.smoothing,f=t[0].length-1,h=t.length-1;for(a=0,o=[],s=[];a<=f;a++)o[a]=t[0][a],s[a]=r[0][a];for(l.push({x:o,y:s,bicubic:u}),a=0,o=[],s=[];a<=h;a++)o[a]=t[a][f],s[a]=r[a][f];for(l.push({x:o,y:s,bicubic:c}),a=f,o=[],s=[];a>=0;a--)o[f-a]=t[h][a],s[f-a]=r[h][a];for(l.push({x:o,y:s,bicubic:u}),a=h,o=[],s=[];a>=0;a--)o[h-a]=t[a][0],s[h-a]=r[a][0];return l.push({x:o,y:s,bicubic:c}),l}});var QZe=ye((Ubr,$Ze)=>{"use strict";var ZYt=Dr();$Ze.exports=function(t,r,n){var i,a,o,s=[],l=[],u=t[0].length,c=t.length;function f(oe,_e){var Me=0,ke,me=0;return oe>0&&(ke=t[_e][oe-1])!==void 0&&(me++,Me+=ke),oe0&&(ke=t[_e-1][oe])!==void 0&&(me++,Me+=ke),_e0&&a0&&iM);return ZYt.log("Smoother converged to",g,"after",T,"iterations"),t}});var tYe=ye((Vbr,eYe)=>{"use strict";eYe.exports={RELATIVE_CULL_TOLERANCE:1e-6}});var nYe=ye((Gbr,iYe)=>{"use strict";var rYe=.5;iYe.exports=function(t,r,n,i){var a=t[0]-r[0],o=t[1]-r[1],s=n[0]-r[0],l=n[1]-r[1],u=Math.pow(a*a+o*o,rYe/2),c=Math.pow(s*s+l*l,rYe/2),f=(c*c*a-u*u*s)*i,h=(c*c*o-u*u*l)*i,d=c*(u+c)*3,v=u*(u+c)*3;return[[r[0]+(d&&f/d),r[1]+(d&&h/d)],[r[0]-(v&&f/v),r[1]-(v&&h/v)]]}});var oYe=ye((Hbr,aYe)=>{"use strict";var S$=nYe(),W7=Dr().ensureArray;function O5(e,t,r){var n=-.5*r[0]+1.5*t[0],i=-.5*r[1]+1.5*t[1];return[(2*n+e[0])/3,(2*i+e[1])/3]}aYe.exports=function(t,r,n,i,a,o){var s,l,u,c,f,h,d,v,_,b,p=n[0].length,C=n.length,E=a?3*p-2:p,A=o?3*C-2:C;for(t=W7(t,A),r=W7(r,A),u=0;u{"use strict";sYe.exports=function(e,t,r,n,i){var a=t-2,o=r-2;return n&&i?function(s,l,u){s||(s=[]);var c,f,h,d,v,_,b=Math.max(0,Math.min(Math.floor(l),a)),p=Math.max(0,Math.min(Math.floor(u),o)),C=Math.max(0,Math.min(1,l-b)),E=Math.max(0,Math.min(1,u-p));b*=3,p*=3;var A=C*C,L=A*C,x=1-C,k=x*x,M=k*x,g=E*E,P=g*E,T=1-E,z=T*T,O=z*T;for(_=0;_{"use strict";uYe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var l,u,c,f,h,d;i*=3,a*=3;var v=o*o,_=1-o,b=_*_,p=_*o*2,C=-3*b,E=3*(b-p),A=3*(p-v),L=3*v,x=s*s,k=x*s,M=1-s,g=M*M,P=g*M;for(d=0;d{"use strict";fYe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var l,u,c,f,h,d;i*=3,a*=3;var v=o*o,_=v*o,b=1-o,p=b*b,C=p*b,E=s*s,A=1-s,L=A*A,x=A*s*2,k=-3*L,M=3*(L-x),g=3*(x-E),P=3*E;for(d=0;d{"use strict";var dYe=tYe(),vYe=L6().findBin,YYt=oYe(),KYt=lYe(),JYt=cYe(),$Yt=hYe();pYe.exports=function(t){var r=t._a,n=t._b,i=r.length,a=n.length,o=t.aaxis,s=t.baxis,l=r[0],u=r[i-1],c=n[0],f=n[a-1],h=r[r.length-1]-r[0],d=n[n.length-1]-n[0],v=h*dYe.RELATIVE_CULL_TOLERANCE,_=d*dYe.RELATIVE_CULL_TOLERANCE;l-=v,u+=v,c-=_,f+=_,t.isVisible=function(b,p){return b>l&&bc&&pu||pf},t.setScale=function(){var b=t._x,p=t._y,C=YYt(t._xctrl,t._yctrl,b,p,o.smoothing,s.smoothing);t._xctrl=C[0],t._yctrl=C[1],t.evalxy=KYt([t._xctrl,t._yctrl],i,a,o.smoothing,s.smoothing),t.dxydi=JYt([t._xctrl,t._yctrl],o.smoothing,s.smoothing),t.dxydj=$Yt([t._xctrl,t._yctrl],o.smoothing,s.smoothing)},t.i2a=function(b){var p=Math.max(0,Math.floor(b[0]),i-2),C=b[0]-p;return(1-C)*r[p]+C*r[p+1]},t.j2b=function(b){var p=Math.max(0,Math.floor(b[1]),i-2),C=b[1]-p;return(1-C)*n[p]+C*n[p+1]},t.ij2ab=function(b){return[t.i2a(b[0]),t.j2b(b[1])]},t.a2i=function(b){var p=Math.max(0,Math.min(vYe(b,r),i-2)),C=r[p],E=r[p+1];return Math.max(0,Math.min(i-1,p+(b-C)/(E-C)))},t.b2j=function(b){var p=Math.max(0,Math.min(vYe(b,n),a-2)),C=n[p],E=n[p+1];return Math.max(0,Math.min(a-1,p+(b-C)/(E-C)))},t.ab2ij=function(b){return[t.a2i(b[0]),t.b2j(b[1])]},t.i2c=function(b,p){return t.evalxy([],b,p)},t.ab2xy=function(b,p,C){if(!C&&(br[i-1]|pn[a-1]))return[!1,!1];var E=t.a2i(b),A=t.b2j(p),L=t.evalxy([],E,A);if(C){var x=0,k=0,M=[],g,P,T,z;br[i-1]?(g=i-2,P=1,x=(b-r[i-1])/(r[i-1]-r[i-2])):(g=Math.max(0,Math.min(i-2,Math.floor(E))),P=E-g),pn[a-1]?(T=a-2,z=1,k=(p-n[a-1])/(n[a-1]-n[a-2])):(T=Math.max(0,Math.min(a-2,Math.floor(A))),z=A-T),x&&(t.dxydi(M,g,T,P,z),L[0]+=M[0]*x,L[1]+=M[1]*x),k&&(t.dxydj(M,g,T,P,z),L[0]+=M[0]*k,L[1]+=M[1]*k)}return L},t.c2p=function(b,p,C){return[p.c2p(b[0]),C.c2p(b[1])]},t.p2x=function(b,p,C){return[p.p2c(b[0]),C.p2c(b[1])]},t.dadi=function(b){var p=Math.max(0,Math.min(r.length-2,b));return r[p+1]-r[p]},t.dbdj=function(b){var p=Math.max(0,Math.min(n.length-2,b));return n[p+1]-n[p]},t.dxyda=function(b,p,C,E){var A=t.dxydi(null,b,p,C,E),L=t.dadi(b,C);return[A[0]/L,A[1]/L]},t.dxydb=function(b,p,C,E){var A=t.dxydj(null,b,p,C,E),L=t.dbdj(p,E);return[A[0]/L,A[1]/L]},t.dxyda_rough=function(b,p,C){var E=h*(C||.1),A=t.ab2xy(b+E,p,!0),L=t.ab2xy(b-E,p,!0);return[(A[0]-L[0])*.5/E,(A[1]-L[1])*.5/E]},t.dxydb_rough=function(b,p,C){var E=d*(C||.1),A=t.ab2xy(b,p+E,!0),L=t.ab2xy(b,p-E,!0);return[(A[0]-L[0])*.5/E,(A[1]-L[1])*.5/E]},t.dpdx=function(b){return b._m},t.dpdy=function(b){return b._m}}});var AYe=ye((Ybr,TYe)=>{"use strict";var X7=ho(),mYe=Dr().isArray1D,QYt=BZe(),yYe=GZe(),_Ye=jZe(),xYe=YZe(),eKt=JZe(),bYe=t8(),wYe=QZe(),tKt=QI(),rKt=gYe();TYe.exports=function(t,r){var n=X7.getFromId(t,r.xaxis),i=X7.getFromId(t,r.yaxis),a=r.aaxis,o=r.baxis,s=r.x,l=r.y,u=[];s&&mYe(s)&&u.push("x"),l&&mYe(l)&&u.push("y"),u.length&&tKt(r,a,o,"a","b",u);var c=r._a=r._a||r.a,f=r._b=r._b||r.b;s=r._x||r.x,l=r._y||r.y;var h={};if(r._cheater){var d=a.cheatertype==="index"?c.length:c,v=o.cheatertype==="index"?f.length:f;s=QYt(d,v,r.cheaterslope)}r._x=s=bYe(s),r._y=l=bYe(l),wYe(s,c,f),wYe(l,c,f),rKt(r),r.setScale();var _=yYe(s),b=yYe(l),p=.5*(_[1]-_[0]),C=.5*(_[1]+_[0]),E=.5*(b[1]-b[0]),A=.5*(b[1]+b[0]),L=1.3;return _=[C-p*L,C+p*L],b=[A-E*L,A+E*L],r._extremes[n._id]=X7.findExtremes(n,_,{padded:!0}),r._extremes[i._id]=X7.findExtremes(i,b,{padded:!0}),_Ye(r,"a","b"),_Ye(r,"b","a"),xYe(r,a),xYe(r,o),h.clipsegments=eKt(r._xctrl,r._yctrl,a,o),h.x=s,h.y=l,h.a=c,h.b=f,[h]}});var MYe=ye((Kbr,SYe)=>{"use strict";SYe.exports={attributes:N7(),supplyDefaults:SZe(),plot:OZe(),calc:AYe(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:vh(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}});var CYe=ye((Jbr,EYe)=>{"use strict";EYe.exports=MYe()});var M$=ye(($br,LYe)=>{"use strict";var iKt=Eg(),u0=pf(),nKt=Vl(),aKt=Qo().hovertemplateAttrs,oKt=Qo().texttemplateAttrs,kYe=Tu(),kx=Ao().extendFlat,sg=u0.marker,q5=u0.line,sKt=sg.line;LYe.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:kx({},u0.mode,{dflt:"markers"}),text:kx({},u0.text,{}),texttemplate:oKt({editType:"plot"},{keys:["a","b","text"]}),hovertext:kx({},u0.hovertext,{}),line:{color:q5.color,width:q5.width,dash:q5.dash,backoff:q5.backoff,shape:kx({},q5.shape,{values:["linear","spline"]}),smoothing:q5.smoothing,editType:"calc"},connectgaps:u0.connectgaps,fill:kx({},u0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:iKt(),marker:kx({symbol:sg.symbol,opacity:sg.opacity,maxdisplayed:sg.maxdisplayed,angle:sg.angle,angleref:sg.angleref,standoff:sg.standoff,size:sg.size,sizeref:sg.sizeref,sizemin:sg.sizemin,sizemode:sg.sizemode,line:kx({width:sKt.width,editType:"calc"},kYe("marker.line")),gradient:sg.gradient,editType:"calc"},kYe("marker")),textfont:u0.textfont,textposition:u0.textposition,selected:u0.selected,unselected:u0.unselected,hoverinfo:kx({},nKt.hoverinfo,{flags:["a","b","text","name"]}),hoveron:u0.hoveron,hovertemplate:aKt(),zorder:u0.zorder}});var DYe=ye((Qbr,RYe)=>{"use strict";var PYe=Dr(),lKt=Sm(),B5=Ru(),uKt=$p(),cKt=R0(),IYe=J3(),fKt=D0(),hKt=Ig(),dKt=M$();RYe.exports=function(t,r,n,i){function a(h,d){return PYe.coerce(t,r,dKt,h,d)}a("carpet"),r.xaxis="x",r.yaxis="y";var o=a("a"),s=a("b"),l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("text"),a("texttemplate"),a("hovertext");var u=l{"use strict";FYe.exports=function(t,r){var n={},i=r._carpet,a=i.ab2ij([t.a,t.b]),o=Math.floor(a[0]),s=a[0]-o,l=Math.floor(a[1]),u=a[1]-l,c=i.evalxy([],o,l,s,u);return n.yLabel=c[1].toFixed(3),n}});var Z7=ye((t2r,OYe)=>{"use strict";OYe.exports=function(e,t){for(var r=e._fullData.length,n,i=0;i{"use strict";var qYe=Eo(),vKt=F0(),pKt=Cm(),gKt=z0(),mKt=O0().calcMarkerSize,yKt=Z7();BYe.exports=function(t,r){var n=r._carpetTrace=yKt(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){var i;r.xaxis=n.xaxis,r.yaxis=n.yaxis;var a=r._length,o=new Array(a),s,l,u=!1;for(i=0;i{"use strict";var _Kt=iT(),UYe=ho(),xKt=So();VYe.exports=function(t,r,n,i){var a,o,s,l=n[0][0].carpet,u=UYe.getFromId(t,l.xaxis||"x"),c=UYe.getFromId(t,l.yaxis||"y"),f={xaxis:u,yaxis:c,plot:r.plot};for(a=0;a{"use strict";var bKt=sT(),wKt=Dr().fillText;HYe.exports=function(t,r,n,i){var a=bKt(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,l=t.xa._length,u=l*s/2,c=l-u;return o.x0=Math.max(Math.min(o.x0,c),u),o.x1=Math.max(Math.min(o.x1,c),u),a}var f=o.cd[o.index];o.a=f.a,o.b=f.b,o.xLabelVal=void 0,o.yLabelVal=void 0;var h=o.trace,d=h._carpet,v=h._module.formatLabels(f,h);o.yLabel=v.yLabel,delete o.text;var _=[];function b(E,A){var L;E.labelprefix&&E.labelprefix.length>0?L=E.labelprefix.replace(/ = $/,""):L=E._hovertitle,_.push(L+": "+A.toFixed(3)+E.labelsuffix)}if(!h.hovertemplate){var p=f.hi||h.hoverinfo,C=p.split("+");C.indexOf("all")!==-1&&(C=["a","b","text"]),C.indexOf("a")!==-1&&b(d.aaxis,f.a),C.indexOf("b")!==-1&&b(d.baxis,f.b),_.push("y: "+o.yLabel),C.indexOf("text")!==-1&&wKt(f,h,_),o.extraText=_.join("
")}return a}});var XYe=ye((a2r,WYe)=>{"use strict";WYe.exports=function(t,r,n,i,a){var o=i[a];return t.a=o.a,t.b=o.b,t.y=o.y,t}});var YYe=ye((o2r,ZYe)=>{"use strict";ZYe.exports={attributes:M$(),supplyDefaults:DYe(),colorbar:$d(),formatLabels:zYe(),calc:NYe(),plot:GYe(),style:ap().style,styleOnSelect:ap().styleOnSelect,hoverPoints:jYe(),selectPoints:lT(),eventData:XYe(),moduleType:"trace",name:"scattercarpet",basePlotModule:vh(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}});var JYe=ye((s2r,KYe)=>{"use strict";KYe.exports=YYe()});var E$=ye((l2r,$Ye)=>{"use strict";var lg=ET(),g1=E4(),TKt=Tu(),AKt=Ao().extendFlat,ty=g1.contours;$Ye.exports=AKt({carpet:{valType:"string",editType:"calc"},z:lg.z,a:lg.x,a0:lg.x0,da:lg.dx,b:lg.y,b0:lg.y0,db:lg.dy,text:lg.text,hovertext:lg.hovertext,transpose:lg.transpose,atype:lg.xtype,btype:lg.ytype,fillcolor:g1.fillcolor,autocontour:g1.autocontour,ncontours:g1.ncontours,contours:{type:ty.type,start:ty.start,end:ty.end,size:ty.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:ty.showlines,showlabels:ty.showlabels,labelfont:ty.labelfont,labelformat:ty.labelformat,operation:ty.operation,value:ty.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:g1.line.color,width:g1.line.width,dash:g1.line.dash,smoothing:g1.line.smoothing,editType:"plot"},zorder:g1.zorder},TKt("",{cLetter:"z",autoColorDflt:!1}))});var C$=ye((u2r,tKe)=>{"use strict";var QYe=Dr(),SKt=KI(),eKe=E$(),MKt=TG(),EKt=x8(),CKt=b8();tKe.exports=function(t,r,n,i){function a(u,c){return QYe.coerce(t,r,eKe,u,c)}function o(u){return QYe.coerce2(t,r,eKe,u)}if(a("carpet"),t.a&&t.b){var s=SKt(t,r,a,i,"a","b");if(!s){r.visible=!1;return}a("text");var l=a("contours.type")==="constraint";l?MKt(t,r,a,i,n,{hasHover:!1}):(EKt(t,r,a,o),CKt(t,r,a,i,{hasHover:!1}))}else r._defaultColor=n,r._length=null;a("zorder")}});var aKe=ye((c2r,nKe)=>{"use strict";var kKt=Fv(),rKe=Dr(),LKt=QI(),PKt=t8(),IKt=r8(),RKt=i8(),iKe=WV(),DKt=C$(),FKt=Z7(),zKt=fG();nKe.exports=function(t,r){var n=r._carpetTrace=FKt(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){if(!r.a||!r.b){var i=t.data[n.index],a=t.data[r.index];a.a||(a.a=i.a),a.b||(a.b=i.b),DKt(a,r,r._defaultColor,t._fullLayout)}var o=OKt(t,r);return zKt(r,r._z),o}};function OKt(e,t){var r=t._carpetTrace,n=r.aaxis,i=r.baxis,a,o,s,l,u,c,f;n._minDtick=0,i._minDtick=0,rKe.isArray1D(t.z)&&LKt(t,n,i,"a","b",["z"]),a=t._a=t._a||t.a,l=t._b=t._b||t.b,a=a?n.makeCalcdata(t,"_a"):[],l=l?i.makeCalcdata(t,"_b"):[],o=t.a0||0,s=t.da||1,u=t.b0||0,c=t.db||1,f=t._z=PKt(t._z||t.z,t.transpose),t._emptypoints=RKt(f),IKt(f,t._emptypoints);var h=rKe.maxRowLength(f),d=t.xtype==="scaled"?"":a,v=iKe(t,d,o,s,h,n),_=t.ytype==="scaled"?"":l,b=iKe(t,_,u,c,f.length,i),p={a:v,b,z:f};return t.contours.type==="levels"&&t.contours.coloring!=="none"&&kKt(e,t,{vals:f,containerStr:"",cLetter:"z"}),[p]}});var sKe=ye((f2r,oKe)=>{"use strict";var qKt=Dr().isArrayOrTypedArray;oKe.exports=function(e,t,r,n){var i,a,o,s,l,u,c,f,h,d,v,_,b,p=qKt(r)?"a":"b",C=p==="a"?e.aaxis:e.baxis,E=C.smoothing,A=p==="a"?e.a2i:e.b2j,L=p==="a"?r:n,x=p==="a"?n:r,k=p==="a"?t.a.length:t.b.length,M=p==="a"?t.b.length:t.a.length,g=Math.floor(p==="a"?e.b2j(x):e.a2i(x)),P=p==="a"?function(_e){return e.evalxy([],_e,g)}:function(_e){return e.evalxy([],g,_e)};E&&(o=Math.max(0,Math.min(M-2,g)),s=g-o,a=p==="a"?function(_e,Me){return e.dxydi([],_e,o,Me,s)}:function(_e,Me){return e.dxydj([],o,_e,s,Me)});var T=A(L[0]),z=A(L[1]),O=T0?Math.floor:Math.ceil,Z=O>0?Math.ceil:Math.floor,H=O>0?Math.min:Math.max,N=O>0?Math.max:Math.min,j=G(T+V),re=Z(z-V);c=P(T);var oe=[[c]];for(i=j;i*O{"use strict";var K7=Oa(),J7=w$(),hKe=T$(),ak=So(),m1=Dr(),BKt=dG(),NKt=vG(),hw=A8(),Y7=k4(),UKt=yG(),VKt=mG(),GKt=_G(),HKt=Z7(),lKe=sKe();dKe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;m1.makeTraceGroups(i,n,"contour").each(function(s){var l=K7.select(this),u=s[0],c=u.trace,f=c._carpetTrace=HKt(t,c),h=t.calcdata[f.index][0];if(!f.visible||f.visible==="legendonly")return;var d=u.a,v=u.b,_=c.contours,b=VKt(_,r,u),p=_.type==="constraint",C=_._operation,E=p?C==="="?"lines":"fill":_.coloring;function A(G){var Z=f.ab2xy(G[0],G[1],!0);return[a.c2p(Z[0]),o.c2p(Z[1])]}var L=[[d[0],v[v.length-1]],[d[d.length-1],v[v.length-1]],[d[d.length-1],v[0]],[d[0],v[0]]];BKt(b);var x=(d[d.length-1]-d[0])*1e-8,k=(v[v.length-1]-v[0])*1e-8;NKt(b,x,k);var M=b;_.type==="constraint"&&(M=UKt(b,C)),jKt(b,A);var g,P,T,z,O=[];for(z=h.clipsegments.length-1;z>=0;z--)g=h.clipsegments[z],P=J7([],g.x,a.c2p),T=J7([],g.y,o.c2p),P.reverse(),T.reverse(),O.push(hKe(P,T,g.bicubic));var V="M"+O.join("L")+"Z";ZKt(l,h.clipsegments,a,o,p,E),YKt(c,l,a,o,M,L,A,f,h,E,V),WKt(l,b,t,u,_,r,f),ak.setClipUrl(l,f._clipPathId,t)})};function jKt(e,t){var r,n,i,a,o,s,l,u,c;for(r=0;rb&&(n.max=b),n.len=n.max-n.min}function uKe(e,t,r){var n=e.getPointAtLength(t),i=e.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function cKe(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function fKe(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]),n=Math.sqrt(1-r*r);return n/r}function ZKt(e,t,r,n,i,a){var o,s,l,u,c=m1.ensureSingle(e,"g","contourbg"),f=c.selectAll("path").data(a==="fill"&&!i?[0]:[]);f.enter().append("path"),f.exit().remove();var h=[];for(u=0;u=0&&(d=P,_=b):Math.abs(h[1]-d[1])=0&&(d=P,_=b):m1.log("endpt to newendpt is not vert. or horz.",h,d,P)}if(_>=0)break;u+=M(h,d),h=d}if(_===t.edgepaths.length){m1.log("unclosed perimeter path");break}l=_,f=c.indexOf(l)===-1,f&&(l=c[0],u+=M(h,d)+"Z",h=null)}for(l=0;l{"use strict";pKe.exports={attributes:E$(),supplyDefaults:C$(),colorbar:E8(),calc:aKe(),plot:vKe(),style:M8(),moduleType:"trace",name:"contourcarpet",basePlotModule:vh(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}});var yKe=ye((v2r,mKe)=>{"use strict";mKe.exports=gKe()});var Q7=ye((p2r,TKe)=>{"use strict";var $7=Dr().extendFlat,ok=pf(),_Ke=df().axisHoverFormat,bKe=Pd().dash,JKt=i3(),wKe=GT(),$Kt=wKe.INCREASING.COLOR,QKt=wKe.DECREASING.COLOR,k$=ok.line;function xKe(e){return{line:{color:$7({},k$.color,{dflt:e}),width:k$.width,dash:bKe,editType:"style"},editType:"style"}}TKe.exports={xperiod:ok.xperiod,xperiod0:ok.xperiod0,xperiodalignment:ok.xperiodalignment,xhoverformat:_Ke("x"),yhoverformat:_Ke("y"),x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:$7({},k$.width,{}),dash:$7({},bKe,{}),editType:"style"},increasing:xKe($Kt),decreasing:xKe(QKt),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:$7({},JKt.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:ok.zorder}});var L$=ye((g2r,AKe)=>{"use strict";var eJt=qa(),tJt=Dr();AKe.exports=function(t,r,n,i){var a=n("x"),o=n("open"),s=n("high"),l=n("low"),u=n("close");n("hoverlabel.split");var c=eJt.getComponentMethod("calendars","handleTraceDefaults");if(c(t,r,["x"],i),!!(o&&s&&l&&u)){var f=Math.min(o.length,s.length,l.length,u.length);return a&&(f=Math.min(f,tJt.minRowLength(a))),r._length=f,f}}});var EKe=ye((m2r,MKe)=>{"use strict";var rJt=Dr(),iJt=L$(),nJt=Pg(),aJt=Q7();MKe.exports=function(t,r,n,i){function a(s,l){return rJt.coerce(t,r,aJt,s,l)}var o=iJt(t,r,a,i);if(!o){r.visible=!1;return}nJt(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),a("line.dash"),SKe(t,r,a,"increasing"),SKe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("tickwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function SKe(e,t,r,n){r(n+".line.color"),r(n+".line.width",t.line.width),r(n+".line.dash",t.line.dash)}});var P$=ye((y2r,kKe)=>{"use strict";var N5=Dr(),e9=N5._,t9=ho(),oJt=Rg(),sk=hs().BADNUM;function sJt(e,t){var r=t9.getFromId(e,t.xaxis),n=t9.getFromId(e,t.yaxis),i=uJt(e,r,t),a=t._minDiff;t._minDiff=null;var o=t._origX;t._origX=null;var s=t._xcalc;t._xcalc=null;var l=CKe(e,t,o,s,n,lJt);return t._extremes[r._id]=t9.findExtremes(r,s,{vpad:a/2}),l.length?(N5.extendFlat(l[0].t,{wHover:a/2,tickLen:i}),l):[{t:{empty:!0}}]}function lJt(e,t,r,n){return{o:e,h:t,l:r,c:n}}function CKe(e,t,r,n,i,a){for(var o=i.makeCalcdata(t,"open"),s=i.makeCalcdata(t,"high"),l=i.makeCalcdata(t,"low"),u=i.makeCalcdata(t,"close"),c=N5.isArrayOrTypedArray(t.text),f=N5.isArrayOrTypedArray(t.hovertext),h=!0,d=null,v=!!t.xperiodalignment,_=[],b=0;bd):h=L>C,d=L;var x=a(C,E,A,L);x.pos=p,x.yc=(C+L)/2,x.i=b,x.dir=h?"increasing":"decreasing",x.x=x.pos,x.y=[A,E],v&&(x.orig_p=r[b]),c&&(x.tx=t.text[b]),f&&(x.htx=t.hovertext[b]),_.push(x)}else _.push({pos:p,empty:!0})}return t._extremes[i._id]=t9.findExtremes(i,N5.concat(l,s),{padded:!0}),_.length&&(_[0].t={labels:{open:e9(e,"open:")+" ",high:e9(e,"high:")+" ",low:e9(e,"low:")+" ",close:e9(e,"close:")+" "}}),_}function uJt(e,t,r){var n=r._minDiff;if(!n){var i=e._fullData,a=[];n=1/0;var o;for(o=0;o{"use strict";var cJt=Oa(),LKe=Dr();PKe.exports=function(t,r,n,i){var a=r.yaxis,o=r.xaxis,s=!!o.rangebreaks;LKe.makeTraceGroups(i,n,"trace ohlc").each(function(l){var u=cJt.select(this),c=l[0],f=c.t,h=c.trace;if(h.visible!==!0||f.empty){u.remove();return}var d=f.tickLen,v=u.selectAll("path").data(LKe.identity);v.enter().append("path"),v.exit().remove(),v.attr("d",function(_){if(_.empty)return"M0,0Z";var b=o.c2p(_.pos-d,!0),p=o.c2p(_.pos+d,!0),C=s?(b+p)/2:o.c2p(_.pos,!0),E=a.c2p(_.o,!0),A=a.c2p(_.h,!0),L=a.c2p(_.l,!0),x=a.c2p(_.c,!0);return"M"+b+","+E+"H"+C+"M"+C+","+A+"V"+L+"M"+p+","+x+"H"+C})})}});var DKe=ye((x2r,RKe)=>{"use strict";var I$=Oa(),fJt=So(),hJt=Ca();RKe.exports=function(t,r,n){var i=n||I$.select(t).selectAll("g.ohlclayer").selectAll("g.trace");i.style("opacity",function(a){return a[0].trace.opacity}),i.each(function(a){var o=a[0].trace;I$.select(this).selectAll("path").each(function(s){if(!s.empty){var l=o[s.dir].line;I$.select(this).style("fill","none").call(hJt.stroke,l.color).call(fJt.dashLine,l.dash,l.width).style("opacity",o.selectedpoints&&!s.selected?.3:1)}})})}});var D$=ye((b2r,BKe)=>{"use strict";var R$=ho(),dJt=Dr(),r9=vf(),vJt=Ca(),pJt=Dr().fillText,FKe=GT(),gJt={increasing:FKe.INCREASING.SYMBOL,decreasing:FKe.DECREASING.SYMBOL};function mJt(e,t,r,n){var i=e.cd,a=i[0].trace;return a.hoverlabel.split?OKe(e,t,r,n):qKe(e,t,r,n)}function zKe(e,t,r,n){var i=e.cd,a=e.xa,o=i[0].trace,s=i[0].t,l=o.type,u=l==="ohlc"?"l":"min",c=l==="ohlc"?"h":"max",f,h,d=s.bPos||0,v=function(P){return P.pos+d-t},_=s.bdPos||s.tickLen,b=s.wHover,p=Math.min(1,_/Math.abs(a.r2c(a.range[1])-a.r2c(a.range[0])));f=e.maxHoverDistance-p,h=e.maxSpikeDistance-p;function C(P){var T=v(P);return r9.inbox(T-b,T+b,f)}function E(P){var T=P[u],z=P[c];return T===z||r9.inbox(T-r,z-r,f)}function A(P){return(C(P)+E(P))/2}var L=r9.getDistanceFunction(n,C,E,A);if(r9.getClosest(i,L,e),e.index===!1)return null;var x=i[e.index];if(x.empty)return null;var k=x.dir,M=o[k],g=M.line.color;return vJt.opacity(g)&&M.line.width?e.color=g:e.color=M.fillcolor,e.x0=a.c2p(x.pos+d-_,!0),e.x1=a.c2p(x.pos+d+_,!0),e.xLabelVal=x.orig_p!==void 0?x.orig_p:x.pos,e.spikeDistance=A(x)*h/f,e.xSpike=a.c2p(x.pos,!0),e}function OKe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,l=[],u=zKe(e,t,r,n);if(!u)return[];var c=u.index,f=i[c],h=f.hi||o.hoverinfo,d=h.split("+"),v=h==="all",_=v||d.indexOf("y")!==-1;if(!_)return[];for(var b=["high","open","close","low"],p={},C=0;C"+s.labels[E]+R$.hoverLabelText(a,A,o.yhoverformat)):(x=dJt.extendFlat({},u),x.y0=x.y1=L,x.yLabelVal=A,x.yLabel=s.labels[E]+R$.hoverLabelText(a,A,o.yhoverformat),x.name="",l.push(x),p[A]=x)}return l}function qKe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,l=zKe(e,t,r,n);if(!l)return[];var u=l.index,c=i[u],f=l.index=c.i,h=c.dir;function d(A){return s.labels[A]+R$.hoverLabelText(a,o[A][f],o.yhoverformat)}var v=c.hi||o.hoverinfo,_=v.split("+"),b=v==="all",p=b||_.indexOf("y")!==-1,C=b||_.indexOf("text")!==-1,E=p?[d("open"),d("high"),d("low"),d("close")+" "+gJt[h]]:[];return C&&pJt(c,o,E),l.extraText=E.join("
"),l.y0=l.y1=a.c2p(c.yc,!0),[l]}BKe.exports={hoverPoints:mJt,hoverSplit:OKe,hoverOnPoints:qKe}});var F$=ye((w2r,NKe)=>{"use strict";NKe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l=n[0].t.bPos||0;if(r===!1)for(s=0;s{"use strict";UKe.exports={moduleType:"trace",name:"ohlc",basePlotModule:vh(),categories:["cartesian","svg","showLegend"],meta:{},attributes:Q7(),supplyDefaults:EKe(),calc:P$().calc,plot:IKe(),style:DKe(),hoverPoints:D$().hoverPoints,selectPoints:F$()}});var HKe=ye((A2r,GKe)=>{"use strict";GKe.exports=VKe()});var O$=ye((S2r,XKe)=>{"use strict";var z$=Dr().extendFlat,jKe=df().axisHoverFormat,c0=Q7(),U5=y4();function WKe(e){return{line:{color:z$({},U5.line.color,{dflt:e}),width:U5.line.width,editType:"style"},fillcolor:U5.fillcolor,editType:"style"}}XKe.exports={xperiod:c0.xperiod,xperiod0:c0.xperiod0,xperiodalignment:c0.xperiodalignment,xhoverformat:jKe("x"),yhoverformat:jKe("y"),x:c0.x,open:c0.open,high:c0.high,low:c0.low,close:c0.close,line:{width:z$({},U5.line.width,{}),editType:"style"},increasing:WKe(c0.increasing.line.color.dflt),decreasing:WKe(c0.decreasing.line.color.dflt),text:c0.text,hovertext:c0.hovertext,whiskerwidth:z$({},U5.whiskerwidth,{dflt:0}),hoverlabel:c0.hoverlabel,zorder:U5.zorder}});var KKe=ye((M2r,YKe)=>{"use strict";var yJt=Dr(),_Jt=Ca(),xJt=L$(),bJt=Pg(),wJt=O$();YKe.exports=function(t,r,n,i){function a(s,l){return yJt.coerce(t,r,wJt,s,l)}var o=xJt(t,r,a,i);if(!o){r.visible=!1;return}bJt(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),ZKe(t,r,a,"increasing"),ZKe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("whiskerwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function ZKe(e,t,r,n){var i=r(n+".line.color");r(n+".line.width",t.line.width),r(n+".fillcolor",_Jt.addOpacity(i,.5))}});var eJe=ye((E2r,QKe)=>{"use strict";var JKe=Dr(),$Ke=ho(),TJt=Rg(),AJt=P$().calcCommon;QKe.exports=function(e,t){var r=e._fullLayout,n=$Ke.getFromId(e,t.xaxis),i=$Ke.getFromId(e,t.yaxis),a=n.makeCalcdata(t,"x"),o=TJt(t,n,"x",a).vals,s=AJt(e,t,a,o,i,SJt);return s.length?(JKe.extendFlat(s[0].t,{num:r._numBoxes,dPos:JKe.distinctVals(o).minDiff/2,posLetter:"x",valLetter:"y"}),r._numBoxes++,s):[{t:{empty:!0}}]};function SJt(e,t,r,n){return{min:r,q1:Math.min(e,n),med:n,q3:Math.max(e,n),max:t}}});var rJe=ye((C2r,tJe)=>{"use strict";tJe.exports={moduleType:"trace",name:"candlestick",basePlotModule:vh(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:O$(),layoutAttributes:_4(),supplyLayoutDefaults:HI().supplyLayoutDefaults,crossTraceCalc:WI().crossTraceCalc,supplyDefaults:KKe(),calc:eJe(),plot:XI().plot,layerName:"boxlayer",style:ZI().style,hoverPoints:D$().hoverPoints,selectPoints:F$()}});var nJe=ye((k2r,iJe)=>{"use strict";iJe.exports=rJe()});var B$=ye((L2r,aJe)=>{"use strict";var n9=Dr(),MJt=ym(),i9=n9.deg2rad,q$=n9.rad2deg;aJe.exports=function(t,r,n){switch(MJt(t,n),t._id){case"x":case"radialaxis":EJt(t,r);break;case"angularaxis":LJt(t,r);break}};function EJt(e,t){var r=t._subplot;e.setGeometry=function(){var n=e._rl[0],i=e._rl[1],a=r.innerRadius,o=(r.radius-a)/(i-n),s=a/o,l=n>i?function(u){return u<=0}:function(u){return u>=0};e.c2g=function(u){var c=e.c2l(u)-n;return(l(c)?c:0)+s},e.g2c=function(u){return e.l2c(u+n-s)},e.g2p=function(u){return u*o},e.c2p=function(u){return e.g2p(e.c2g(u))}}}function CJt(e,t){return t==="degrees"?i9(e):e}function kJt(e,t){return t==="degrees"?q$(e):e}function LJt(e,t){var r=e.type;if(r==="linear"){var n=e.d2c,i=e.c2d;e.d2c=function(a,o){return CJt(n(a),o)},e.c2d=function(a,o){return i(kJt(a,o))}}e.makeCalcdata=function(a,o){var s=a[o],l=a._length,u,c,f=function(b){return e.d2c(b,a.thetaunit)};if(s)for(u=new Array(l),c=0;c{"use strict";oJe.exports={attr:"subplot",name:"polar",axisNames:["angularaxis","radialaxis"],axisName2dataArray:{angularaxis:"theta",radialaxis:"r"},layerNames:["draglayer","plotbg","backplot","angular-grid","radial-grid","frontplot","angular-line","radial-line","angular-axis","radial-axis"],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}});var s9=ye((I2r,fJe)=>{"use strict";var dw=Dr(),sJe=MM().tester,N$=dw.findIndexOfMin,uJe=dw.isAngleInsideSector,PJt=dw.angleDelta,lJe=dw.angleDist;function IJt(e,t,r,n,i){if(!uJe(t,n))return!1;var a,o;r[0]0?o:1/0},n=N$(t,r),i=dw.mod(n+1,t.length);return[t[n],t[i]]}function o9(e){return Math.abs(e)>1e-10?e:0}function U$(e,t,r){t=t||0,r=r||0;for(var n=e.length,i=new Array(n),a=0;a{"use strict";function hJe(e){return e<0?-1:e>0?1:0}function G5(e){var t=e[0],r=e[1];if(!isFinite(t)||!isFinite(r))return[1,0];var n=(t+1)*(t+1)+r*r;return[(t*t+r*r-1)/n,2*r/n]}function H5(e,t){var r=t[0],n=t[1];return[r*e.radius+e.cx,-n*e.radius+e.cy]}function dJe(e,t){return t*e.radius}function NJt(e,t,r,n){var i=H5(e,G5([r,t])),a=i[0],o=i[1],s=H5(e,G5([n,t])),l=s[0],u=s[1];if(t===0)return["M"+a+","+o,"L"+l+","+u].join(" ");var c=dJe(e,1/Math.abs(t));return["M"+a+","+o,"A"+c+","+c+" 0 0,"+(t<0?1:0)+" "+l+","+u].join(" ")}function UJt(e,t,r,n){var i=dJe(e,1/(t+1)),a=H5(e,G5([t,r])),o=a[0],s=a[1],l=H5(e,G5([t,n])),u=l[0],c=l[1];if(hJe(r)!==hJe(n)){var f=H5(e,G5([t,0])),h=f[0],d=f[1];return["M"+o+","+s,"A"+i+","+i+" 0 0,"+(0{"use strict";var vw=Oa(),VJt=cd(),gw=qa(),Xc=Dr(),ry=Xc.strRotate,xd=Xc.strTranslate,G$=Ca(),lk=So(),GJt=Mc(),hp=ho(),HJt=ym(),jJt=B$(),WJt=wg().doAutoRange,y1=ON(),c9=gv(),pJe=vf(),XJt=Mb(),ZJt=zf().prepSelect,YJt=zf().selectOnClick,H$=zf().clearOutline,gJe=Tg(),mJe=hM(),yJe=xM().redrawReglTraces,KJt=Kh().MID_SHIFT,Lx=a9(),_1=s9(),f9=V$(),l9=f9.smith,JJt=f9.reactanceArc,$Jt=f9.resistanceArc,u9=f9.smithTransform,QJt=Xc._,_Je=Xc.mod,Px=Xc.deg2rad,pw=Xc.rad2deg;function xJe(e,t,r){this.isSmith=r||!1,this.id=t,this.gd=e,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var n=e._fullLayout,i="clip"+n._uid+t;this.clipIds.forTraces=i+"-for-traces",this.clipPaths.forTraces=n._clips.append("clipPath").attr("id",this.clipIds.forTraces),this.clipPaths.forTraces.append("path"),this.framework=n["_"+(r?"smith":"polar")+"layer"].append("g").attr("class",t),this.getHole=function(a){return this.isSmith?0:a.hole},this.getSector=function(a){return this.isSmith?[0,360]:a.sector},this.getRadial=function(a){return this.isSmith?a.realaxis:a.radialaxis},this.getAngular=function(a){return this.isSmith?a.imaginaryaxis:a.angularaxis},r||(this.radialTickLayout=null,this.angularTickLayout=null)}var Nd=xJe.prototype;TJe.exports=function(t,r,n){return new xJe(t,r,n)};Nd.plot=function(e,t){for(var r=this,n=t[r.id],i=!1,a=0;ab?(p=u,C=u*b,L=(c-C)/i.h/2,E=[s[0],s[1]],A=[l[0]+L,l[1]-L]):(p=c/b,C=c,L=(u-p)/i.w/2,E=[s[0]+L,s[1]-L],A=[l[0],l[1]]),r.xLength2=p,r.yLength2=C,r.xDomain2=E,r.yDomain2=A;var x=r.xOffset2=i.l+i.w*E[0],k=r.yOffset2=i.t+i.h*(1-A[1]),M=r.radius=p/d,g=r.innerRadius=r.getHole(t)*M,P=r.cx=x-M*h[0],T=r.cy=k+M*h[3],z=r.cxx=P-x,O=r.cyy=T-k,V=a.side,G;V==="counterclockwise"?(G=V,V="top"):V==="clockwise"&&(G=V,V="bottom"),r.radialAxis=r.mockAxis(e,t,a,{_id:"x",side:V,_trueSide:G,domain:[g/i.w,M/i.w]}),r.angularAxis=r.mockAxis(e,t,o,{side:"right",domain:[0,Math.PI],autorange:!1}),r.doAutoRange(e,t),r.updateAngularAxis(e,t),r.updateRadialAxis(e,t),r.updateRadialAxisTitle(e,t),r.xaxis=r.mockCartesianAxis(e,t,{_id:"x",domain:E}),r.yaxis=r.mockCartesianAxis(e,t,{_id:"y",domain:A});var Z=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",Z).attr("transform",xd(z,O)),n.frontplot.attr("transform",xd(x,k)).call(lk.setClipUrl,r._hasClipOnAxisFalse?null:r.clipIds.forTraces,r.gd),n.bg.attr("d",Z).attr("transform",xd(P,T)).call(G$.fill,t.bgcolor)};Nd.mockAxis=function(e,t,r,n){var i=Xc.extendFlat({},r,n);return jJt(i,t,e),i};Nd.mockCartesianAxis=function(e,t,r){var n=this,i=n.isSmith,a=r._id,o=Xc.extendFlat({type:"linear"},r);HJt(o,e);var s={x:[0,2],y:[1,3]};return o.setRange=function(){var l=n.sectorBBox,u=s[a],c=n.radialAxis._rl,f=(c[1]-c[0])/(1-n.getHole(t));o.range=[l[u[0]]*f,l[u[1]]*f]},o.isPtWithinRange=a==="x"&&!i?function(l){return n.isPtInside(l)}:function(){return!0},o.setRange(),o.setScale(),o};Nd.doAutoRange=function(e,t){var r=this,n=r.gd,i=r.radialAxis,a=r.getRadial(t);WJt(n,i);var o=i.range;if(a.range=o.slice(),a._input.range=o.slice(),i._rl=[i.r2l(o[0],null,"gregorian"),i.r2l(o[1],null,"gregorian")],i.minallowed!==void 0){var s=i.r2l(i.minallowed);i._rl[0]>i._rl[1]?i._rl[1]=Math.max(i._rl[1],s):i._rl[0]=Math.max(i._rl[0],s)}if(i.maxallowed!==void 0){var l=i.r2l(i.maxallowed);i._rl[0]90&&c<=270&&(f.tickangle=180);var v=d?function(M){var g=u9(r,l9([M.x,0]));return xd(g[0]-s,g[1]-l)}:function(M){return xd(f.l2p(M.x)+o,0)},_=d?function(M){return $Jt(r,M.x,-1/0,1/0)}:function(M){return r.pathArc(f.r2p(M.x)+o)},b=bJe(u);if(r.radialTickLayout!==b&&(i["radial-axis"].selectAll(".xtick").remove(),r.radialTickLayout=b),h){f.setScale();var p=0,C=d?(f.tickvals||[]).filter(function(M){return M>=0}).map(function(M){return hp.tickText(f,M,!0,!1)}):hp.calcTicks(f),E=d?C:hp.clipEnds(f,C),A=hp.getTickSigns(f)[2];d&&((f.ticks==="top"&&f.side==="bottom"||f.ticks==="bottom"&&f.side==="top")&&(A=-A),f.ticks==="top"&&f.side==="top"&&(p=-f.ticklen),f.ticks==="bottom"&&f.side==="bottom"&&(p=f.ticklen)),hp.drawTicks(n,f,{vals:C,layer:i["radial-axis"],path:hp.makeTickPath(f,0,A),transFn:v,crisp:!1}),hp.drawGrid(n,f,{vals:E,layer:i["radial-grid"],path:_,transFn:Xc.noop,crisp:!1}),hp.drawLabels(n,f,{vals:C,layer:i["radial-axis"],transFn:v,labelFns:hp.makeLabelFns(f,p)})}var L=r.radialAxisAngle=r.vangles?pw(wJe(Px(u.angle),r.vangles)):u.angle,x=xd(s,l),k=x+ry(-L);uk(i["radial-axis"],h&&(u.showticklabels||u.ticks),{transform:k}),uk(i["radial-grid"],h&&u.showgrid,{transform:d?"":x}),uk(i["radial-line"].select("line"),h&&u.showline,{x1:d?-a:o,y1:0,x2:a,y2:0,transform:k}).attr("stroke-width",u.linewidth).call(G$.stroke,u.linecolor)};Nd.updateRadialAxisTitle=function(e,t,r){if(!this.isSmith){var n=this,i=n.gd,a=n.radius,o=n.cx,s=n.cy,l=n.getRadial(t),u=n.id+"title",c=0;if(l.title){var f=lk.bBox(n.layers["radial-axis"].node()).height,h=l.title.font.size,d=l.side;c=d==="top"?h:d==="counterclockwise"?-(f+h*.4):f+h*.8}var v=r!==void 0?r:n.radialAxisAngle,_=Px(v),b=Math.cos(_),p=Math.sin(_),C=o+a/2*b+c*p,E=s-a/2*p+c*b;n.layers["radial-axis-title"]=XJt.draw(i,u,{propContainer:l,propName:n.id+".radialaxis.title",placeholder:QJt(i,"Click to enter radial axis title"),attributes:{x:C,y:E,"text-anchor":"middle"},transform:{rotate:-v}})}};Nd.updateAngularAxis=function(e,t){var r=this,n=r.gd,i=r.layers,a=r.radius,o=r.innerRadius,s=r.cx,l=r.cy,u=r.getAngular(t),c=r.angularAxis,f=r.isSmith;f||(r.fillViewInitialKey("angularaxis.rotation",u.rotation),c.setGeometry(),c.setScale());var h=f?function(g){var P=u9(r,l9([0,g.x]));return Math.atan2(P[0]-s,P[1]-l)-Math.PI/2}:function(g){return c.t2g(g.x)};c.type==="linear"&&c.thetaunit==="radians"&&(c.tick0=pw(c.tick0),c.dtick=pw(c.dtick));var d=function(g){return xd(s+a*Math.cos(g),l-a*Math.sin(g))},v=f?function(g){var P=u9(r,l9([0,g.x]));return xd(P[0],P[1])}:function(g){return d(h(g))},_=f?function(g){var P=u9(r,l9([0,g.x])),T=Math.atan2(P[0]-s,P[1]-l)-Math.PI/2;return xd(P[0],P[1])+ry(-pw(T))}:function(g){var P=h(g);return d(P)+ry(-pw(P))},b=f?function(g){return JJt(r,g.x,0,1/0)}:function(g){var P=h(g),T=Math.cos(P),z=Math.sin(P);return"M"+[s+o*T,l-o*z]+"L"+[s+a*T,l-a*z]},p=hp.makeLabelFns(c,0),C=p.labelStandoff,E={};E.xFn=function(g){var P=h(g);return Math.cos(P)*C},E.yFn=function(g){var P=h(g),T=Math.sin(P)>0?.2:1;return-Math.sin(P)*(C+g.fontSize*T)+Math.abs(Math.cos(P))*(g.fontSize*KJt)},E.anchorFn=function(g){var P=h(g),T=Math.cos(P);return Math.abs(T)<.1?"middle":T>0?"start":"end"},E.heightFn=function(g,P,T){var z=h(g);return-.5*(1+Math.sin(z))*T};var A=bJe(u);r.angularTickLayout!==A&&(i["angular-axis"].selectAll("."+c._id+"tick").remove(),r.angularTickLayout=A);var L=f?[1/0].concat(c.tickvals||[]).map(function(g){return hp.tickText(c,g,!0,!1)}):hp.calcTicks(c);f&&(L[0].text="\u221E",L[0].fontSize*=1.75);var x;if(t.gridshape==="linear"?(x=L.map(h),Xc.angleDelta(x[0],x[1])<0&&(x=x.slice().reverse())):x=null,r.vangles=x,c.type==="category"&&(L=L.filter(function(g){return Xc.isAngleInsideSector(h(g),r.sectorInRad)})),c.visible){var k=c.ticks==="inside"?-1:1,M=(c.linewidth||1)/2;hp.drawTicks(n,c,{vals:L,layer:i["angular-axis"],path:"M"+k*M+",0h"+k*c.ticklen,transFn:_,crisp:!1}),hp.drawGrid(n,c,{vals:L,layer:i["angular-grid"],path:b,transFn:Xc.noop,crisp:!1}),hp.drawLabels(n,c,{vals:L,layer:i["angular-axis"],repositionOnUpdate:!0,transFn:v,labelFns:E})}uk(i["angular-line"].select("path"),u.showline,{d:r.pathSubplot(),transform:xd(s,l)}).attr("stroke-width",u.linewidth).call(G$.stroke,u.linecolor)};Nd.updateFx=function(e,t){if(!this.gd._context.staticPlot){var r=!this.isSmith;r&&(this.updateAngularDrag(e),this.updateRadialDrag(e,t,0),this.updateRadialDrag(e,t,1)),this.updateHoverAndMainDrag(e)}};Nd.updateHoverAndMainDrag=function(e){var t=this,r=t.isSmith,n=t.gd,i=t.layers,a=e._zoomlayer,o=Lx.MINZOOM,s=Lx.OFFEDGE,l=t.radius,u=t.innerRadius,c=t.cx,f=t.cy,h=t.cxx,d=t.cyy,v=t.sectorInRad,_=t.vangles,b=t.radialAxis,p=_1.clampTiny,C=_1.findXYatLength,E=_1.findEnclosingVertexAngles,A=Lx.cornerHalfWidth,L=Lx.cornerLen/2,x,k,M=y1.makeDragger(i,"path","maindrag",e.dragmode===!1?"none":"crosshair");vw.select(M).attr("d",t.pathSubplot()).attr("transform",xd(c,f)),M.onmousemove=function(ce){pJe.hover(n,ce,t.id),n._fullLayout._lasthover=M,n._fullLayout._hoversubplot=t.id},M.onmouseout=function(ce){n._dragging||c9.unhover(n,ce)};var g={element:M,gd:n,subplot:t.id,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis},xaxes:[t.xaxis],yaxes:[t.yaxis]},P,T,z,O,V,G,Z,H,N;function j(ce,Ye){return Math.sqrt(ce*ce+Ye*Ye)}function re(ce,Ye){return j(ce-h,Ye-d)}function oe(ce,Ye){return Math.atan2(d-Ye,ce-h)}function _e(ce,Ye){return[ce*Math.cos(Ye),ce*Math.sin(-Ye)]}function Me(ce,Ye){if(ce===0)return t.pathSector(2*A);var ct=L/ce,pt=Ye-ct,Wt=Ye+ct,st=Math.max(0,Math.min(ce,l)),lt=st-A,Gt=st+A;return"M"+_e(lt,pt)+"A"+[lt,lt]+" 0,0,0 "+_e(lt,Wt)+"L"+_e(Gt,Wt)+"A"+[Gt,Gt]+" 0,0,1 "+_e(Gt,pt)+"Z"}function ke(ce,Ye,ct){if(ce===0)return t.pathSector(2*A);var pt=_e(ce,Ye),Wt=_e(ce,ct),st=p((pt[0]+Wt[0])/2),lt=p((pt[1]+Wt[1])/2),Gt,Nt;if(st&<){var $t=lt/st,sr=-1/$t,wr=C(A,$t,st,lt);Gt=C(L,sr,wr[0][0],wr[0][1]),Nt=C(L,sr,wr[1][0],wr[1][1])}else{var ur,Qe;lt?(ur=L,Qe=A):(ur=A,Qe=L),Gt=[[st-ur,lt-Qe],[st+ur,lt-Qe]],Nt=[[st-ur,lt+Qe],[st+ur,lt+Qe]]}return"M"+Gt.join("L")+"L"+Nt.reverse().join("L")+"Z"}function me(){z=null,O=null,V=t.pathSubplot(),G=!1;var ce=n._fullLayout[t.id];Z=VJt(ce.bgcolor).getLuminance(),H=y1.makeZoombox(a,Z,c,f,V),H.attr("fill-rule","evenodd"),N=y1.makeCorners(a,c,f),H$(n)}function ie(ce,Ye){return Ye=Math.max(Math.min(Ye,l),u),ceo?(ce-1&&ce===1&&YJt(Ye,n,[t.xaxis],[t.yaxis],t.id,g),ct.indexOf("event")>-1&&pJe.click(n,Ye,t.id)}g.prepFn=function(ce,Ye,ct){var pt=n._fullLayout.dragmode,Wt=M.getBoundingClientRect();n._fullLayout._calcInverseTransform(n);var st=n._fullLayout._invTransform;x=n._fullLayout._invScaleX,k=n._fullLayout._invScaleY;var lt=Xc.apply3DTransform(st)(Ye-Wt.left,ct-Wt.top);if(P=lt[0],T=lt[1],_){var Gt=_1.findPolygonOffset(l,v[0],v[1],_);P+=h+Gt[0],T+=d+Gt[1]}switch(pt){case"zoom":g.clickFn=Fe,r||(_?g.moveFn=De:g.moveFn=Le,g.doneFn=Pe,me(ce,Ye,ct));break;case"select":case"lasso":ZJt(ce,Ye,ct,g,pt);break}},c9.init(g)};Nd.updateRadialDrag=function(e,t,r){var n=this,i=n.gd,a=n.layers,o=n.radius,s=n.innerRadius,l=n.cx,u=n.cy,c=n.radialAxis,f=Lx.radialDragBoxSize,h=f/2;if(!c.visible)return;var d=Px(n.radialAxisAngle),v=c._rl,_=v[0],b=v[1],p=v[r],C=.75*(v[1]-v[0])/(1-n.getHole(t))/o,E,A,L;r?(E=l+(o+h)*Math.cos(d),A=u-(o+h)*Math.sin(d),L="radialdrag"):(E=l+(s-h)*Math.cos(d),A=u-(s-h)*Math.sin(d),L="radialdrag-inner");var x=y1.makeRectDragger(a,L,"crosshair",-h,-h,f,f),k={element:x,gd:i};e.dragmode===!1&&(k.dragmode=!1),uk(vw.select(x),c.visible&&s0!=(r?P>_:P=90||i>90&&a>=450?d=1:s<=0&&u<=0?d=0:d=Math.max(s,u),i<=180&&a>=180||i>180&&a>=540?c=-1:o>=0&&l>=0?c=0:c=Math.min(o,l),i<=270&&a>=270||i>270&&a>=630?f=-1:s>=0&&u>=0?f=0:f=Math.min(s,u),a>=360?h=1:o<=0&&l<=0?h=0:h=Math.max(o,l),[c,f,h,d]}function wJe(e,t){var r=function(i){return Xc.angleDist(e,i)},n=Xc.findIndexOfMin(t,r);return t[n]}function uk(e,t,r){return t?(e.attr("display",null),e.attr(r)):e&&e.attr("display","none"),e}});var W$=ye((F2r,kJe)=>{"use strict";var t$t=Eh(),ss=Rd(),r$t=kc().attributes,f0=Dr().extendFlat,AJe=mc().overrideAll,SJe=AJe({color:ss.color,showline:f0({},ss.showline,{dflt:!0}),linecolor:ss.linecolor,linewidth:ss.linewidth,showgrid:f0({},ss.showgrid,{dflt:!0}),gridcolor:ss.gridcolor,gridwidth:ss.gridwidth,griddash:ss.griddash},"plot","from-root"),MJe=AJe({tickmode:ss.minor.tickmode,nticks:ss.nticks,tick0:ss.tick0,dtick:ss.dtick,tickvals:ss.tickvals,ticktext:ss.ticktext,ticks:ss.ticks,ticklen:ss.ticklen,tickwidth:ss.tickwidth,tickcolor:ss.tickcolor,ticklabelstep:ss.ticklabelstep,showticklabels:ss.showticklabels,labelalias:ss.labelalias,minorloglabels:ss.minorloglabels,showtickprefix:ss.showtickprefix,tickprefix:ss.tickprefix,showticksuffix:ss.showticksuffix,ticksuffix:ss.ticksuffix,showexponent:ss.showexponent,exponentformat:ss.exponentformat,minexponent:ss.minexponent,separatethousands:ss.separatethousands,tickfont:ss.tickfont,tickangle:ss.tickangle,tickformat:ss.tickformat,tickformatstops:ss.tickformatstops,layer:ss.layer},"plot","from-root"),EJe={visible:f0({},ss.visible,{dflt:!0}),type:f0({},ss.type,{values:["-","linear","log","date","category"]}),autotypenumbers:ss.autotypenumbers,autorangeoptions:{minallowed:ss.autorangeoptions.minallowed,maxallowed:ss.autorangeoptions.maxallowed,clipmin:ss.autorangeoptions.clipmin,clipmax:ss.autorangeoptions.clipmax,include:ss.autorangeoptions.include,editType:"plot"},autorange:f0({},ss.autorange,{editType:"plot"}),rangemode:{valType:"enumerated",values:["tozero","nonnegative","normal"],dflt:"tozero",editType:"calc"},minallowed:f0({},ss.minallowed,{editType:"plot"}),maxallowed:f0({},ss.maxallowed,{editType:"plot"}),range:f0({},ss.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],editType:"plot"}),categoryorder:ss.categoryorder,categoryarray:ss.categoryarray,angle:{valType:"angle",editType:"plot"},autotickangles:ss.autotickangles,side:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"clockwise",editType:"plot"},title:{text:f0({},ss.title.text,{editType:"plot",dflt:""}),font:f0({},ss.title.font,{editType:"plot"}),editType:"plot"},hoverformat:ss.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};f0(EJe,SJe,MJe);var CJe={visible:f0({},ss.visible,{dflt:!0}),type:{valType:"enumerated",values:["-","linear","category"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:ss.autotypenumbers,categoryorder:ss.categoryorder,categoryarray:ss.categoryarray,thetaunit:{valType:"enumerated",values:["radians","degrees"],dflt:"degrees",editType:"calc"},period:{valType:"number",editType:"calc",min:0},direction:{valType:"enumerated",values:["counterclockwise","clockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",editType:"calc"},hoverformat:ss.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};f0(CJe,SJe,MJe);kJe.exports={domain:r$t({name:"polar",editType:"plot"}),sector:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],dflt:[0,360],editType:"plot"},hole:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},bgcolor:{valType:"color",editType:"plot",dflt:t$t.background},radialaxis:EJe,angularaxis:CJe,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var RJe=ye((z2r,IJe)=>{"use strict";var h9=Dr(),i$t=Ca(),n$t=pl(),a$t=k_(),o$t=Id().getSubplotData,s$t=xb(),l$t=T3(),u$t=t_(),c$t=r_(),f$t=rI(),h$t=QM(),d$t=pB(),v$t=L3(),PJe=W$(),p$t=B$(),d9=a9(),LJe=d9.axisNames;function g$t(e,t,r,n){var i=r("bgcolor");n.bgColor=i$t.combine(i,n.paper_bgcolor);var a=r("sector");r("hole");var o=o$t(n.fullData,d9.name,n.id),s=n.layoutOut,l;function u(H,N){return r(l+"."+H,N)}for(var c=0;c{"use strict";var y$t=Id().getSubplotCalcData,_$t=Dr().counterRegex,x$t=j$(),FJe=a9(),zJe=FJe.attr,mw=FJe.name,DJe=_$t(mw),OJe={};OJe[zJe]={valType:"subplotid",dflt:mw,editType:"calc"};function b$t(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[mw],i=0;i{"use strict";var T$t=Qo().hovertemplateAttrs,A$t=Qo().texttemplateAttrs,p9=Ao().extendFlat,S$t=Eg(),h0=pf(),M$t=Vl(),j5=h0.line;BJe.exports={mode:h0.mode,r:{valType:"data_array",editType:"calc+clearAxisTypes"},theta:{valType:"data_array",editType:"calc+clearAxisTypes"},r0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dr:{valType:"number",dflt:1,editType:"calc"},theta0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dtheta:{valType:"number",editType:"calc"},thetaunit:{valType:"enumerated",values:["radians","degrees","gradians"],dflt:"degrees",editType:"calc+clearAxisTypes"},text:h0.text,texttemplate:A$t({editType:"plot"},{keys:["r","theta","text"]}),hovertext:h0.hovertext,line:{color:j5.color,width:j5.width,dash:j5.dash,backoff:j5.backoff,shape:p9({},j5.shape,{values:["linear","spline"]}),smoothing:j5.smoothing,editType:"calc"},connectgaps:h0.connectgaps,marker:h0.marker,cliponaxis:p9({},h0.cliponaxis,{dflt:!1}),textposition:h0.textposition,textfont:h0.textfont,fill:p9({},h0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:S$t(),hoverinfo:p9({},M$t.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:h0.hoveron,hovertemplate:T$t(),selected:h0.selected,unselected:h0.unselected}});var m9=ye((B2r,VJe)=>{"use strict";var g9=Dr(),W5=Ru(),E$t=$p(),C$t=R0(),NJe=J3(),k$t=D0(),L$t=Ig(),P$t=Sm().PTS_LINESONLY,I$t=ck();function R$t(e,t,r,n){function i(s,l){return g9.coerce(e,t,I$t,s,l)}var a=UJe(e,t,n,i);if(!a){t.visible=!1;return}i("thetaunit"),i("mode",a{"use strict";var D$t=Dr(),GJe=ho();HJe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o,s;a?(o=a.radialAxis,s=a.angularAxis):(a=n[r.subplot],o=a.radialaxis,s=a.angularaxis);var l=o.c2l(t.r);i.rLabel=GJe.tickText(o,l,!0).text;var u=s.thetaunit==="degrees"?D$t.rad2deg(t.theta):t.theta;return i.thetaLabel=GJe.tickText(s,u,!0).text,i}});var XJe=ye((U2r,WJe)=>{"use strict";var jJe=Eo(),F$t=hs().BADNUM,z$t=ho(),O$t=F0(),q$t=Cm(),B$t=z0(),N$t=O0().calcMarkerSize;WJe.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=a.makeCalcdata(r,"r"),l=o.makeCalcdata(r,"theta"),u=r._length,c=new Array(u),f=0;f{"use strict";var U$t=iT(),ZJe=hs().BADNUM;YJe.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},l=r.radialAxis,u=r.angularAxis,c=0;c{"use strict";var V$t=sT();function G$t(e,t,r,n){var i=V$t(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],l=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,JJe(s,l,o,a),a.hovertemplate=l.hovertemplate,i}}function JJe(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="r",a._hovertitle="\u03B8";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var l=e.hi||t.hoverinfo,u=[];function c(h,d){u.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var f=l.split("+");f.indexOf("all")!==-1&&(f=["r","theta","text"]),f.indexOf("r")!==-1&&c(i,n.rLabel),f.indexOf("theta")!==-1&&c(a,n.thetaLabel),f.indexOf("text")!==-1&&n.text&&(u.push(n.text),delete n.text),n.extraText=u.join("
")}}$Je.exports={hoverPoints:G$t,makeHoverPointText:JJe}});var e$e=ye((H2r,QJe)=>{"use strict";QJe.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:v9(),categories:["polar","symbols","showLegend","scatter-like"],attributes:ck(),supplyDefaults:m9().supplyDefaults,colorbar:$d(),formatLabels:y9(),calc:XJe(),plot:KJe(),style:ap().style,styleOnSelect:ap().styleOnSelect,hoverPoints:_9().hoverPoints,selectPoints:lT(),meta:{}}});var r$e=ye((j2r,t$e)=>{"use strict";t$e.exports=e$e()});var X$=ye((W2r,i$e)=>{"use strict";var Up=ck(),x1=oC(),H$t=Qo().texttemplateAttrs;i$e.exports={mode:Up.mode,r:Up.r,theta:Up.theta,r0:Up.r0,dr:Up.dr,theta0:Up.theta0,dtheta:Up.dtheta,thetaunit:Up.thetaunit,text:Up.text,texttemplate:H$t({editType:"plot"},{keys:["r","theta","text"]}),hovertext:Up.hovertext,hovertemplate:Up.hovertemplate,line:{color:x1.line.color,width:x1.line.width,dash:x1.line.dash,editType:"calc"},connectgaps:x1.connectgaps,marker:x1.marker,fill:x1.fill,fillcolor:x1.fillcolor,textposition:x1.textposition,textfont:x1.textfont,hoverinfo:Up.hoverinfo,selected:Up.selected,unselected:Up.unselected}});var o$e=ye((X2r,a$e)=>{"use strict";var n$e=Dr(),Z$=Ru(),j$t=m9().handleRThetaDefaults,W$t=$p(),X$t=R0(),Z$t=D0(),Y$t=Ig(),K$t=Sm().PTS_LINESONLY,J$t=X$();a$e.exports=function(t,r,n,i){function a(s,l){return n$e.coerce(t,r,J$t,s,l)}var o=j$t(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("mode",o{"use strict";var $$t=y9();s$e.exports=function(t,r,n){var i=t.i;return"r"in t||(t.r=r._r[i]),"theta"in t||(t.theta=r._theta[i]),$$t(t,r,n)}});var c$e=ye((Y2r,u$e)=>{"use strict";var Q$t=F0(),eQt=O0().calcMarkerSize,tQt=Y2(),rQt=ho(),iQt=sx().TOO_MANY_POINTS;u$e.exports=function(t,r){var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=r._r=a.makeCalcdata(r,"r"),l=r._theta=o.makeCalcdata(r,"theta"),u=r._length,c={};u{"use strict";var nQt=OF(),aQt=_9().makeHoverPointText;function oQt(e,t,r,n){var i=e.cd,a=i[0].t,o=a.r,s=a.theta,l=nQt.hoverPoints(e,t,r,n);if(!(!l||l[0].index===!1)){var u=l[0];if(u.index===void 0)return l;var c=e.subplot,f=u.cd[u.index],h=u.trace;if(f.r=o[u.index],f.theta=s[u.index],!!c.isPtInside(f))return u.xLabelVal=void 0,u.yLabelVal=void 0,aQt(f,h,c,u),l}}f$e.exports={hoverPoints:oQt}});var v$e=ye((J2r,d$e)=>{"use strict";d$e.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:v9(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:X$(),supplyDefaults:o$e(),colorbar:$d(),formatLabels:l$e(),calc:c$e(),hoverPoints:h$e().hoverPoints,selectPoints:oY(),meta:{}}});var p$e=ye(($2r,Y$)=>{"use strict";var sQt=NF(),lQt=Eo(),uQt=cK(),cQt=iY(),x9=Y2(),b9=Dr(),fQt=sx().TOO_MANY_POINTS,hQt={};Y$.exports=function(t,r,n){if(n.length){var i=r.radialAxis,a=r.angularAxis,o=cQt(t,r);return n.forEach(function(s){if(!(!s||!s[0]||!s[0].trace)){var l=s[0],u=l.trace,c=l.t,f=u._length,h=c.r,d=c.theta,v=c.opts,_,b=h.slice(),p=d.slice();for(_=0;_=fQt&&(v.marker.cluster=c.tree),v.marker&&(v.markerSel.positions=v.markerUnsel.positions=v.marker.positions=C),v.line&&C.length>1&&b9.extendFlat(v.line,x9.linePositions(t,u,C)),v.text&&(b9.extendFlat(v.text,{positions:C},x9.textPosition(t,u,v.text,v.marker)),b9.extendFlat(v.textSel,{positions:C},x9.textPosition(t,u,v.text,v.markerSel)),b9.extendFlat(v.textUnsel,{positions:C},x9.textPosition(t,u,v.text,v.markerUnsel))),v.fill&&!o.fill2d&&(o.fill2d=!0),v.marker&&!o.scatter2d&&(o.scatter2d=!0),v.line&&!o.line2d&&(o.line2d=!0),v.text&&!o.glText&&(o.glText=!0),o.lineOptions.push(v.line),o.fillOptions.push(v.fill),o.markerOptions.push(v.marker),o.markerSelectedOptions.push(v.markerSel),o.markerUnselectedOptions.push(v.markerUnsel),o.textOptions.push(v.text),o.textSelectedOptions.push(v.textSel),o.textUnselectedOptions.push(v.textUnsel),o.selectBatch.push([]),o.unselectBatch.push([]),c.x=E,c.y=A,c.rawx=E,c.rawy=A,c.r=h,c.theta=d,c.positions=C,c._scene=o,c.index=o.count,o.count++}}),uQt(t,r,n)}};Y$.exports.reglPrecompiled=hQt});var y$e=ye((Q2r,m$e)=>{"use strict";var g$e=v$e();g$e.plot=p$e();m$e.exports=g$e});var x$e=ye((ewr,_$e)=>{"use strict";_$e.exports=y$e()});var K$=ye((twr,b$e)=>{"use strict";var dQt=Qo().hovertemplateAttrs,X5=Ao().extendFlat,Ix=ck(),Rx=Lm();b$e.exports={r:Ix.r,theta:Ix.theta,r0:Ix.r0,dr:Ix.dr,theta0:Ix.theta0,dtheta:Ix.dtheta,thetaunit:Ix.thetaunit,base:X5({},Rx.base,{}),offset:X5({},Rx.offset,{}),width:X5({},Rx.width,{}),text:X5({},Rx.text,{}),hovertext:X5({},Rx.hovertext,{}),marker:vQt(),hoverinfo:Ix.hoverinfo,hovertemplate:dQt(),selected:Rx.selected,unselected:Rx.unselected};function vQt(){var e=X5({},Rx.marker);return delete e.cornerradius,e}});var J$=ye((rwr,w$e)=>{"use strict";w$e.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}});var S$e=ye((iwr,A$e)=>{"use strict";var T$e=Dr(),pQt=m9().handleRThetaDefaults,gQt=qI(),mQt=K$();A$e.exports=function(t,r,n,i){function a(s,l){return T$e.coerce(t,r,mQt,s,l)}var o=pQt(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("base"),a("offset"),a("width"),a("text"),a("hovertext"),a("hovertemplate"),gQt(t,r,a,n,i),T$e.coerceSelectionMarkerOpacity(r,a)}});var E$e=ye((nwr,M$e)=>{"use strict";var yQt=Dr(),_Qt=J$();M$e.exports=function(e,t,r){var n={},i;function a(l,u){return yQt.coerce(e[i]||{},t[i],_Qt,l,u)}for(var o=0;o{"use strict";var C$e=Dv().hasColorscale,k$e=Fv(),xQt=Dr().isArrayOrTypedArray,bQt=v4(),wQt=Hb().setGroupPositions,TQt=z0(),AQt=qa().traceIs,SQt=Dr().extendFlat;function MQt(e,t){for(var r=e._fullLayout,n=t.subplot,i=r[n].radialaxis,a=r[n].angularaxis,o=i.makeCalcdata(t,"r"),s=a.makeCalcdata(t,"theta"),l=t._length,u=new Array(l),c=o,f=s,h=0;h{"use strict";var P$e=Oa(),w9=Eo(),Z5=Dr(),CQt=So(),Q$=s9();I$e.exports=function(t,r,n){var i=t._context.staticPlot,a=r.xaxis,o=r.yaxis,s=r.radialAxis,l=r.angularAxis,u=kQt(r),c=r.layers.frontplot.select("g.barlayer");Z5.makeTraceGroups(c,n,"trace bars").each(function(){var f=P$e.select(this),h=Z5.ensureSingle(f,"g","points"),d=h.selectAll("g.point").data(Z5.identity);d.enter().append("g").style("vector-effect",i?"none":"non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),d.exit().remove(),d.each(function(v){var _=P$e.select(this),b=v.rp0=s.c2p(v.s0),p=v.rp1=s.c2p(v.s1),C=v.thetag0=l.c2g(v.p0),E=v.thetag1=l.c2g(v.p1),A;if(!w9(b)||!w9(p)||!w9(C)||!w9(E)||b===p||C===E)A="M0,0Z";else{var L=s.c2g(v.s1),x=(C+E)/2;v.ct=[a.c2p(L*Math.cos(x)),o.c2p(L*Math.sin(x))],A=u(b,p,C,E)}Z5.ensureSingle(_,"path").attr("d",A)}),CQt.setClipUrl(f,r._hasClipOnAxisFalse?r.clipIds.forTraces:null,t)})};function kQt(e){var t=e.cxx,r=e.cyy;return e.vangles?function(n,i,a,o){var s,l;Z5.angleDelta(a,o)>0?(s=a,l=o):(s=o,l=a);var u=Q$.findEnclosingVertexAngles(s,e.vangles)[0],c=Q$.findEnclosingVertexAngles(l,e.vangles)[1],f=[u,(s+l)/2,c];return Q$.pathPolygonAnnulus(n,i,s,l,f,t,r)}:function(n,i,a,o){return Z5.pathAnnulus(n,i,a,o,t,r)}}});var F$e=ye((swr,D$e)=>{"use strict";var LQt=vf(),eQ=Dr(),PQt=TT().getTraceColor,IQt=eQ.fillText,RQt=_9().makeHoverPointText,DQt=s9().isPtInsidePolygon;D$e.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s=o.radialAxis,l=o.angularAxis,u=o.vangles,c=u?DQt:eQ.isPtInsideSector,f=t.maxHoverDistance,h=l._period||2*Math.PI,d=Math.abs(s.g2p(Math.sqrt(r*r+n*n))),v=Math.atan2(n,r);s.range[0]>s.range[1]&&(v+=Math.PI);var _=function(E){return c(d,v,[E.rp0,E.rp1],[E.thetag0,E.thetag1],u)?f+Math.min(1,Math.abs(E.thetag1-E.thetag0)/h)-1+(E.rp1-d)/(E.rp1-E.rp0)-1:1/0};if(LQt.getClosest(i,_,t),t.index!==!1){var b=t.index,p=i[b];t.x0=t.x1=p.ct[0],t.y0=t.y1=p.ct[1];var C=eQ.extendFlat({},p,{r:p.s,theta:p.p});return IQt(p,a,t),RQt(C,a,o,t),t.hovertemplate=a.hovertemplate,t.color=PQt(a,p),t.xLabelVal=t.yLabelVal=void 0,p.s<0&&(t.idealAlign="left"),[t]}}});var O$e=ye((lwr,z$e)=>{"use strict";z$e.exports={moduleType:"trace",name:"barpolar",basePlotModule:v9(),categories:["polar","bar","showLegend"],attributes:K$(),layoutAttributes:J$(),supplyDefaults:S$e(),supplyLayoutDefaults:E$e(),calc:$$().calc,crossTraceCalc:$$().crossTraceCalc,plot:R$e(),colorbar:$d(),formatLabels:y9(),style:N0().style,styleOnSelect:N0().styleOnSelect,hoverPoints:F$e(),selectPoints:AT(),meta:{}}});var B$e=ye((uwr,q$e)=>{"use strict";q$e.exports=O$e()});var tQ=ye((cwr,N$e)=>{"use strict";N$e.exports={attr:"subplot",name:"smith",axisNames:["realaxis","imaginaryaxis"],axisName2dataArray:{imaginaryaxis:"imag",realaxis:"real"}}});var rQ=ye((fwr,H$e)=>{"use strict";var FQt=Eh(),Nf=Rd(),zQt=kc().attributes,Dx=Dr().extendFlat,U$e=mc().overrideAll,V$e=U$e({color:Nf.color,showline:Dx({},Nf.showline,{dflt:!0}),linecolor:Nf.linecolor,linewidth:Nf.linewidth,showgrid:Dx({},Nf.showgrid,{dflt:!0}),gridcolor:Nf.gridcolor,gridwidth:Nf.gridwidth,griddash:Nf.griddash},"plot","from-root"),G$e=U$e({ticklen:Nf.ticklen,tickwidth:Dx({},Nf.tickwidth,{dflt:2}),tickcolor:Nf.tickcolor,showticklabels:Nf.showticklabels,labelalias:Nf.labelalias,showtickprefix:Nf.showtickprefix,tickprefix:Nf.tickprefix,showticksuffix:Nf.showticksuffix,ticksuffix:Nf.ticksuffix,tickfont:Nf.tickfont,tickformat:Nf.tickformat,hoverformat:Nf.hoverformat,layer:Nf.layer},"plot","from-root"),OQt=Dx({visible:Dx({},Nf.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:Dx({},Nf.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},V$e,G$e),qQt=Dx({visible:Dx({},Nf.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:Nf.ticks,editType:"calc"},V$e,G$e);H$e.exports={domain:zQt({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:FQt.background},realaxis:OQt,imaginaryaxis:qQt,editType:"calc"}});var X$e=ye((hwr,W$e)=>{"use strict";var Y5=Dr(),BQt=Ca(),NQt=pl(),UQt=k_(),VQt=Id().getSubplotData,GQt=r_(),HQt=t_(),jQt=QM(),WQt=ym(),K5=rQ(),iQ=tQ(),j$e=iQ.axisNames,XQt=YQt(function(e){return Y5.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(t){return-t}).concat([0]).concat(e)},String);function ZQt(e,t,r,n){var i=r("bgcolor");n.bgColor=BQt.combine(i,n.paper_bgcolor);var a=VQt(n.fullData,iQ.name,n.id),o=n.layoutOut,s;function l(L,x){return r(s+"."+L,x)}for(var u=0;u{"use strict";var KQt=Id().getSubplotCalcData,JQt=Dr().counterRegex,$Qt=j$(),Y$e=tQ(),K$e=Y$e.attr,yw=Y$e.name,Z$e=JQt(yw),J$e={};J$e[K$e]={valType:"subplotid",dflt:yw,editType:"calc"};function QQt(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[yw],i=0;i{"use strict";var ter=Qo().hovertemplateAttrs,rer=Qo().texttemplateAttrs,T9=Ao().extendFlat,ier=Eg(),d0=pf(),ner=Vl(),J5=d0.line;eQe.exports={mode:d0.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:d0.text,texttemplate:rer({editType:"plot"},{keys:["real","imag","text"]}),hovertext:d0.hovertext,line:{color:J5.color,width:J5.width,dash:J5.dash,backoff:J5.backoff,shape:T9({},J5.shape,{values:["linear","spline"]}),smoothing:J5.smoothing,editType:"calc"},connectgaps:d0.connectgaps,marker:d0.marker,cliponaxis:T9({},d0.cliponaxis,{dflt:!1}),textposition:d0.textposition,textfont:d0.textfont,fill:T9({},d0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:ier(),hoverinfo:T9({},ner.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:d0.hoveron,hovertemplate:ter(),selected:d0.selected,unselected:d0.unselected}});var iQe=ye((pwr,rQe)=>{"use strict";var A9=Dr(),$5=Ru(),aer=$p(),oer=R0(),tQe=J3(),ser=D0(),ler=Ig(),uer=Sm().PTS_LINESONLY,cer=nQ();rQe.exports=function(t,r,n,i){function a(l,u){return A9.coerce(t,r,cer,l,u)}var o=fer(t,r,i,a);if(!o){r.visible=!1;return}a("mode",o{"use strict";var nQe=ho();aQe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.realLabel=nQe.tickText(a.radialAxis,t.real,!0).text,i.imagLabel=nQe.tickText(a.angularAxis,t.imag,!0).text,i}});var uQe=ye((mwr,lQe)=>{"use strict";var sQe=Eo(),her=hs().BADNUM,der=F0(),ver=Cm(),per=z0(),ger=O0().calcMarkerSize;lQe.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].realaxis,o=n[i].imaginaryaxis,s=a.makeCalcdata(r,"real"),l=o.makeCalcdata(r,"imag"),u=r._length,c=new Array(u),f=0;f{"use strict";var mer=iT(),cQe=hs().BADNUM,yer=V$(),_er=yer.smith;fQe.exports=function(t,r,n){for(var i=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},l=0;l{"use strict";var xer=sT();function ber(e,t,r,n){var i=xer(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;var o=e.subplot,s=a.cd[a.index],l=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,dQe(s,l,o,a),a.hovertemplate=l.hovertemplate,i}}function dQe(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="real",a._hovertitle="imag";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.realLabel=s.realLabel,n.imagLabel=s.imagLabel;var l=e.hi||t.hoverinfo,u=[];function c(h,d){u.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var f=l.split("+");f.indexOf("all")!==-1&&(f=["real","imag","text"]),f.indexOf("real")!==-1&&c(i,n.realLabel),f.indexOf("imag")!==-1&&c(a,n.imagLabel),f.indexOf("text")!==-1&&n.text&&(u.push(n.text),delete n.text),n.extraText=u.join("
")}}vQe.exports={hoverPoints:ber,makeHoverPointText:dQe}});var mQe=ye((xwr,gQe)=>{"use strict";gQe.exports={moduleType:"trace",name:"scattersmith",basePlotModule:Q$e(),categories:["smith","symbols","showLegend","scatter-like"],attributes:nQ(),supplyDefaults:iQe(),colorbar:$d(),formatLabels:oQe(),calc:uQe(),plot:hQe(),style:ap().style,styleOnSelect:ap().styleOnSelect,hoverPoints:pQe().hoverPoints,selectPoints:lT(),meta:{}}});var _Qe=ye((bwr,yQe)=>{"use strict";yQe.exports=mQe()});var Sv=ye((wwr,bQe)=>{var M9=Fh();function xQe(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}M9(xQe.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,n,i){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,i):n)||this.instance(),n.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var n="",i=0;r>0;){var a=r%10;n=(a===0?"":e[a]+t[i])+n,i++,r=Math.floor(r/10)}return n.indexOf(e[1]+t[1])===0&&(n=n.substr(1)),n||e[0]}}});function aQ(e,t,r,n){if(this._calendar=e,this._year=t,this._month=r,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function S9(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}M9(aQ.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Hs.local.differentCalendars||Hs.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+S9(Math.abs(this.year()),4)+"-"+S9(this.month(),2)+"-"+S9(this.day(),2)}});function oQ(){this.shortYearCutoff="+10"}M9(oQ.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new aQ(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,Hs.local.invalidYear||Hs.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Hs.local.invalidYear||Hs.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+S9(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Hs.local.invalidYear||Hs.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,Hs.local.invalidMonth||Hs.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,Hs.local.invalidMonth||Hs.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Hs.local.invalidYear||Hs.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var n=this._validate(e,t,r,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var n=e.toJD()+t*(r==="w"?this.daysInWeek():1),i=e.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=e.year()+(r==="y"?t:0),o=e.monthOfYear()+(r==="m"?t:0),i=e.day(),s=function(c){for(;of-1+c.minMonth;)a++,o-=f,f=c.monthsInYear(a)};r==="y"?(e.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):r==="m"&&(s(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var l=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,l}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,t,r,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var i={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],a=r<0?-1:1;t=this._add(e,r*i[0]+a*i[1],i[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate);var n=r==="y"?t:e.year(),i=r==="m"?t:e.month(),a=r==="d"?t:e.day();return(r==="y"||r==="m")&&(a=Math.min(a,this.daysInMonth(n,i))),e.date(n,i,a)},isValid:function(e,t,r){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var i=this.newDate(e,t,this.minDay);n=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),u=i-(l>2.5?4716:4715);return u<=0&&u--,this.newDate(u,l,s)},toJSDate:function(e,t,r){var n=this._validate(e,t,r,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()>12?i.getHours()+2:0),i},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Hs=bQe.exports=new xQe;Hs.cdate=aQ;Hs.baseCalendar=oQ;Hs.calendars.gregorian=sQ});var wQe=ye(()=>{var lQ=Fh(),Ud=Sv();lQ(Ud.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"});Ud.local=Ud.regionalOptions[""];lQ(Ud.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});lQ(Ud.baseCalendar.prototype,{UNIX_EPOCH:Ud.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Ud.instance().jdEpoch,TICKS_PER_DAY:24*60*60*1e7,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw Ud.local.invalidFormat||Ud.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var n=r.dayNamesShort||this.local.dayNamesShort,i=r.dayNames||this.local.dayNames,a=r.monthNumbers||this.local.monthNumbers,o=r.monthNamesShort||this.local.monthNamesShort,s=r.monthNames||this.local.monthNames,l=r.calculateWeek||this.local.calculateWeek,u=function(A,L){for(var x=1;E+x1},c=function(A,L,x,k){var M=""+L;if(u(A,k))for(;M.length1},C=function(z,O){var V=p(z,O),G=[2,3,V?4:2,V?4:2,10,11,20]["oyYJ@!".indexOf(z)+1],Z=new RegExp("^-?\\d{1,"+G+"}"),H=t.substring(M).match(Z);if(!H)throw(Ud.local.missingNumberAt||Ud.regionalOptions[""].missingNumberAt).replace(/\{0\}/,M);return M+=H[0].length,parseInt(H[0],10)},E=this,A=function(){if(typeof s=="function"){p("m");var z=s.call(E,t.substring(M));return M+=z.length,z}return C("m")},L=function(z,O,V,G){for(var Z=p(z,G)?V:O,H=0;H-1){h=1,d=v;for(var T=this.daysInMonth(f,h);d>T;T=this.daysInMonth(f,h))h++,d-=T}return c>-1?this.fromJD(c):this.newDate(f,h,d)},determineDate:function(e,t,r,n,i){r&&typeof r!="object"&&(i=n,n=r,r=null),typeof n!="string"&&(i=n,n="");var a=this,o=function(s){try{return a.parseDate(n,s,i)}catch(f){}s=s.toLowerCase();for(var l=(s.match(/^c/)&&r?r.newDate():null)||a.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,c=u.exec(s);c;)l.add(parseInt(c[1],10),c[2]||"d"),c=u.exec(s);return l};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:a.today().add(e,"d"):a.newDate(e),e}})});var TQe=ye(()=>{var Fx=Sv(),wer=Fh(),uQ=Fx.instance();function E9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}E9.prototype=new Fx.baseCalendar;wer(E9.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(Aer);return r?r[0]:""}var n=this._validateYear(e),i=e.month(),a=""+this.toChineseMonth(n,i);return t&&a.length<2&&(a="0"+a),this.isIntercalaryMonth(n,i)&&(a+="i"),a},monthNames:function(e){if(typeof e=="string"){var t=e.match(Ser);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(Mer);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),n;if(isNaN(r))t[0]==="\u95F0"&&(n=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var i=t[t.length-1];n=i==="i"||i==="I"}var a=this.toMonthIndex(e,r,n);return a},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var n=this.intercalaryMonth(e),i=r&&t!==n;if(i||t<1||t>12)throw Fx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return n?!r&&t<=n?a=t-1:a=t:a=t-1,a},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),n=r?12:11;if(t<0||t>n)throw Fx.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var n=this._validateYear(e,Fx.local.invalidyear),i=Ox[n-Ox[0]],a=i>>9&4095,o=i>>5&15,s=i&31,l;l=uQ.newDate(a,o,s),l.add(4-(l.dayOfWeek()||7),"d");var u=this.toJD(e,t,r)-l.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=zx[e-zx[0]],n=r>>13,i=n?12:11;if(t>i)throw Fx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a=r&1<<12-t?30:29;return a},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,a,r,Fx.local.invalidDate);e=this._validateYear(n.year()),t=n.month(),r=n.day();var i=this.isIntercalaryMonth(e,t),a=this.toChineseMonth(e,t),o=Cer(e,a,r,i);return uQ.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=uQ.fromJD(e),r=Eer(t.year(),t.month(),t.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(e){var t=e.match(Ter),r=this._validateYear(+t[1]),n=+t[2],i=!!t[3],a=this.toMonthIndex(r,n,i),o=+t[4];return this.newDate(r,a,o)},add:function(e,t,r){var n=e.year(),i=e.month(),a=this.isIntercalaryMonth(n,i),o=this.toChineseMonth(n,i),s=Object.getPrototypeOf(E9.prototype).add.call(this,e,t,r);if(r==="y"){var l=s.year(),u=s.month(),c=this.isIntercalaryMonth(l,o),f=a&&c?this.toMonthIndex(l,o,!0):this.toMonthIndex(l,o,!1);f!==u&&s.month(f)}return s}});var Ter=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Aer=/^\d?\d[iI]?/m,Ser=/^闰?十?[一二三四五六七八九]?月/m,Mer=/^闰?十?[一二三四五六七八九]?/m;Fx.calendars.chinese=E9;var zx=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],Ox=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function Eer(e,t,r,n){var i,a;if(typeof e=="object")i=e,a=t||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var s=typeof t=="number"&&t>=1&&t<=12;if(!s)throw new Error("Solar month outside range 1 - 12");var l=typeof r=="number"&&r>=1&&r<=31;if(!l)throw new Error("Solar day outside range 1 - 31");i={year:e,month:t,day:r},a=n||{}}var u=Ox[i.year-Ox[0]],c=i.year<<9|i.month<<5|i.day;a.year=c>=u?i.year:i.year-1,u=Ox[a.year-Ox[0]];var f=u>>9&4095,h=u>>5&15,d=u&31,v,_=new Date(f,h-1,d),b=new Date(i.year,i.month-1,i.day);v=Math.round((b-_)/(24*3600*1e3));var p=zx[a.year-zx[0]],C;for(C=0;C<13;C++){var E=p&1<<12-C?30:29;if(v>13;return!A||C=1888&&e<=2111;if(!s)throw new Error("Lunar year outside range 1888-2111");var l=typeof t=="number"&&t>=1&&t<=12;if(!l)throw new Error("Lunar month outside range 1 - 12");var u=typeof r=="number"&&r>=1&&r<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var c;typeof n=="object"?(c=!1,a=n):(c=!!n,a=i||{}),o={year:e,month:t,day:r,isIntercalary:c}}var f;f=o.day-1;var h=zx[o.year-zx[0]],d=h>>13,v;d&&(o.month>d||o.isIntercalary)?v=o.month:v=o.month-1;for(var _=0;_>9&4095,E=p>>5&15,A=p&31,L=new Date(C,E-1,A+f);return a.year=L.getFullYear(),a.month=1+L.getMonth(),a.day=L.getDate(),a}});var AQe=ye(()=>{var _w=Sv(),ker=Fh();function cQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}cQ.prototype=new _w.baseCalendar;ker(cQ.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,_w.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,_w.local.invalidYear||_w.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,_w.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,_w.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});_w.calendars.coptic=cQ});var SQe=ye(()=>{var b1=Sv(),Ler=Fh();function fQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fQ.prototype=new b1.baseCalendar;Ler(fQ.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),400},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,b1.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,t,r){var n=this.dayOfWeek(e,t,r);return n>=2&&n<=6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return{century:Per[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return e=n.year()+(n.year()<0?1:0),t=n.month(),r=n.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,n=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,n)}});var Per={20:"Fruitbat",21:"Anchovy"};b1.calendars.discworld=fQ});var MQe=ye(()=>{var xw=Sv(),Ier=Fh();function hQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}hQ.prototype=new xw.baseCalendar;Ier(hQ.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,xw.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,xw.local.invalidYear||xw.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,xw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,xw.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});xw.calendars.ethiopian=hQ});var EQe=ye(()=>{var qx=Sv(),Rer=Fh();function dQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}dQ.prototype=new qx.baseCalendar;Rer(dQ.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,qx.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,C9(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,qx.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,qx.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,qx.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&C9(this.daysInYear(e),10)===5?30:t===9&&C9(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,qx.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,t,r){var n=this._validate(e,t,r,qx.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=e<=0?e+1:e,a=this.jdEpoch+this._delay1(i)+this._delay2(i)+r+1;if(t<7){for(var o=7;o<=this.monthsInYear(e);o++)a+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});function C9(e,t){return e-t*Math.floor(e/t)}qx.calendars.hebrew=dQ});var CQe=ye(()=>{var fk=Sv(),Der=Fh();function vQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}vQ.prototype=new fk.baseCalendar;Der(vQ.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-kham\u012Bs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,fk.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,fk.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,fk.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});fk.calendars.islamic=vQ});var kQe=ye(()=>{var hk=Sv(),Fer=Fh();function pQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}pQ.prototype=new hk.baseCalendar;Fer(pQ.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,hk.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,hk.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,t,r,hk.local.invalidDate);return e=n.year(),t=n.month(),r=n.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,n=Math.floor((r-122.1)/365.25),i=Math.floor(365.25*n),a=Math.floor((r-i)/30.6001),o=a-Math.floor(a<14?1:13),s=n-Math.floor(o>2?4716:4715),l=r-i-Math.floor(30.6001*a);return s<=0&&s--,this.newDate(s,o,l)}});hk.calendars.julian=pQ});var PQe=ye(()=>{var ug=Sv(),zer=Fh();function mQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}mQ.prototype=new ug.baseCalendar;zer(mQ.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,ug.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ug.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return r+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&n<0)throw"Invalid Mayan year";t=t*20+n}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ug.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,ug.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ug.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,ug.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,ug.local.invalidDate);return n.day()},weekDay:function(e,t,r){return this._validate(e,t,r,ug.local.invalidDate),!0},extraInfo:function(e,t,r){var n=this._validate(e,t,r,ug.local.invalidDate),i=n.toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=gQ(e+8+17*20,365);return[Math.floor(t/20)+1,gQ(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[LQe(e+20,20),LQe(e+4,13)]},toJD:function(e,t,r){var n=this._validate(e,t,r,ug.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),n=e%20;return this.newDate(t,r,n)}});function gQ(e,t){return e-t*Math.floor(e/t)}function LQe(e,t){return gQ(e-1,t)+1}ug.calendars.mayan=mQ});var RQe=ye(()=>{var bw=Sv(),Oer=Fh();function yQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}yQ.prototype=new bw.baseCalendar;var IQe=bw.instance("gregorian");Oer(yQ.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,bw.local.invalidYear||bw.regionalOptions[""].invalidYear);return IQe.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,bw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,bw.local.invalidMonth),i=n.year();i<0&&i++;for(var a=n.day(),o=1;o=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,n=1;r>this.daysInMonth(t,n);)r-=this.daysInMonth(t,n),n++;return this.newDate(t,n,r)}});bw.calendars.nanakshahi=yQ});var DQe=ye(()=>{var ww=Sv(),qer=Fh();function _Q(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_Q.prototype=new ww.baseCalendar;qer(_Q.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ww.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,n=this.minMonth;n<=12;n++)r+=this.NEPALI_CALENDAR_DATA[e][n];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,ww.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var n=this._validate(e,t,r,ww.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=ww.instance(),a=0,o=t,s=e;this._createMissingCalendarData(e);var l=e-(o>9||o===9&&r>=this.NEPALI_CALENDAR_DATA[s][0]?56:57);for(t!==9&&(a=r,o--);o!==9;)o<=0&&(o=12,s--),a+=this.NEPALI_CALENDAR_DATA[s][o],o--;return t===9?(a+=r-this.NEPALI_CALENDAR_DATA[s][0],a<0&&(a+=i.daysInYear(l))):a+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],i.newDate(l,1,1).add(a,"d").toJD()},fromJD:function(e){var t=ww.instance(),r=t.fromJD(e),n=r.year(),i=r.dayOfYear(),a=n+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i>l;)o++,o>12&&(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var u=this.NEPALI_CALENDAR_DATA[a][o]-(l-i);return this.newDate(a,o,u)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var Q5=Sv(),Ber=Fh();function L9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function k9(e){var t=e-475;e<0&&t++;var r=.242197,n=r*t,i=r*(t+1),a=n-Math.floor(n),o=i-Math.floor(i);return a>o}L9.prototype=new Q5.baseCalendar;Ber(L9.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Q5.local.invalidYear);return k9(t.year())},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Q5.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,Q5.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=0;if(e>0)for(var a=1;a0?e-1:e)*365+i+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=475+(e-this.toJD(475,1,1))/365.242197,r=Math.floor(t);r<=0&&r--,e>this.toJD(r,12,k9(r)?30:29)&&(r++,r===0&&r++);var n=e-this.toJD(r,1,1)+1,i=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),a=e-this.toJD(r,i,1)+1;return this.newDate(r,i,a)}});Q5.calendars.persian=L9;Q5.calendars.jalali=L9});var zQe=ye(()=>{var Tw=Sv(),Ner=Fh(),P9=Tw.instance();function xQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}xQ.prototype=new Tw.baseCalendar;Ner(xQ.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Tw.local.invalidYear),r=this._t2gYear(t.year());return P9.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Tw.local.invalidYear),i=this._t2gYear(n.year());return P9.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Tw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Tw.local.invalidDate),i=this._t2gYear(n.year());return P9.toJD(i,n.month(),n.day())},fromJD:function(e){var t=P9.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Tw.calendars.taiwan=xQ});var OQe=ye(()=>{var Aw=Sv(),Uer=Fh(),I9=Aw.instance();function bQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}bQ.prototype=new Aw.baseCalendar;Uer(bQ.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(r){var t=this._validate(r,this.minMonth,this.minDay,Aw.local.invalidYear),r=this._t2gYear(t.year());return I9.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Aw.local.invalidYear),i=this._t2gYear(n.year());return I9.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Aw.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(i,t,r){var n=this._validate(i,t,r,Aw.local.invalidDate),i=this._t2gYear(n.year());return I9.toJD(i,n.month(),n.day())},fromJD:function(e){var t=I9.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Aw.calendars.thai=bQ});var qQe=ye(()=>{var Sw=Sv(),Ver=Fh();function wQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wQ.prototype=new Sw.baseCalendar;Ver(wQ.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thal\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Sw.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,Sw.local.invalidMonth),n=r.toJD()-24e5+.5,i=0,a=0;an)return Bx[i]-Bx[i-1];i++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,Sw.local.invalidDate),i=12*(n.year()-1)+n.month()-15292,a=n.day()+Bx[i-1]-1;return a+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,n=0;nt);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),o=a+1,s=i-12*a,l=t-Bx[r-1]+1;return this.newDate(o,s,l)},isValid:function(e,t,r){var n=Sw.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,t,r,n){var i=Sw.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw n.replace(/\{0\}/,this.local.name);return i}});Sw.calendars.ummalqura=wQ;var Bx=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]});var NQe=ye((Qwr,BQe)=>{"use strict";BQe.exports=Sv();wQe();TQe();AQe();SQe();MQe();EQe();CQe();kQe();PQe();RQe();DQe();FQe();zQe();OQe();qQe()});var XQe=ye((e3r,WQe)=>{"use strict";var VQe=NQe(),dk=Dr(),GQe=hs(),Ger=GQe.EPOCHJD,Her=GQe.ONEDAY,SQ={valType:"enumerated",values:dk.sortObjectKeys(VQe.calendars),editType:"calc",dflt:"gregorian"},HQe=function(e,t,r,n){var i={};return i[r]=SQ,dk.coerce(e,t,i,r,n)},jer=function(e,t,r,n){for(var i=0;i{"use strict";ZQe.exports=XQe()});var Jer=ye((r3r,JQe)=>{var KQe=rye();KQe.register([n1e(),j1e(),rxe(),wxe(),Fxe(),Pbe(),Hbe(),L2e(),awe(),Nwe(),M3e(),qEe(),MCe(),g6e(),iLe(),RLe(),rPe(),MIe(),jIe(),u8e(),b8e(),F8e(),K8e(),hRe(),BDe(),aFe(),wBe(),wNe(),IUe(),iVe(),hGe(),EGe(),JGe(),lje(),Tje(),Xje(),tXe(),SXe(),oZe(),CYe(),JYe(),yKe(),HKe(),nJe(),r$e(),x$e(),B$e(),_Qe(),YQe()]);JQe.exports=KQe});return Jer();})(); /*! * The buffer module from node.js, for the browser. * diff --git a/dist/translation-keys.txt b/dist/translation-keys.txt index 9aa67302441..607e44c3ac0 100644 --- a/dist/translation-keys.txt +++ b/dist/translation-keys.txt @@ -22,22 +22,22 @@ Draw rectangle // components/modebar/but Edit in Chart Studio // components/modebar/buttons.js:72 Erase active shape // components/modebar/buttons.js:175 Lasso Select // components/modebar/buttons.js:121 -Orbital rotation // components/modebar/buttons.js:341 +Orbital rotation // components/modebar/buttons.js:344 Pan // components/modebar/buttons.js:101 -Produced with Plotly.js // components/modebar/modebar.js:324 -Reset // components/modebar/buttons.js:514 +Produced with Plotly.js // components/modebar/modebar.js:329 +Reset // components/modebar/buttons.js:517 Reset axes // components/modebar/buttons.js:213 -Reset camera to default // components/modebar/buttons.js:380 -Reset camera to last save // components/modebar/buttons.js:389 -Reset view // components/modebar/buttons.js:586 -Reset views // components/modebar/buttons.js:624 +Reset camera to default // components/modebar/buttons.js:383 +Reset camera to last save // components/modebar/buttons.js:392 +Reset view // components/modebar/buttons.js:589 +Reset views // components/modebar/buttons.js:627 Show closest data on hover // components/modebar/buttons.js:223 Snapshot succeeded // components/modebar/buttons.js:62 Sorry, there was a problem downloading your snapshot! // components/modebar/buttons.js:65 Taking snapshot - this may take a few seconds // components/modebar/buttons.js:52 -Toggle Spike Lines // components/modebar/buttons.js:644 -Toggle show closest data on hover // components/modebar/buttons.js:439 -Turntable rotation // components/modebar/buttons.js:350 +Toggle Spike Lines // components/modebar/buttons.js:647 +Toggle show closest data on hover // components/modebar/buttons.js:442 +Turntable rotation // components/modebar/buttons.js:353 Zoom // components/modebar/buttons.js:91 Zoom in // components/modebar/buttons.js:183 Zoom out // components/modebar/buttons.js:193 diff --git a/draftlogs/7358_add.md b/draftlogs/7358_add.md deleted file mode 100644 index 4904806795e..00000000000 --- a/draftlogs/7358_add.md +++ /dev/null @@ -1 +0,0 @@ -- 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)] diff --git a/draftlogs/7417_fix.md b/draftlogs/7417_fix.md deleted file mode 100644 index 62aef9598f7..00000000000 --- a/draftlogs/7417_fix.md +++ /dev/null @@ -1 +0,0 @@ -- Fix hidden ticklabels taking up plot space [[#7417](https://github.com/plotly/plotly.js/pull/7417)] diff --git a/draftlogs/7439_add.md b/draftlogs/7439_add.md deleted file mode 100644 index a99fb4a8115..00000000000 --- a/draftlogs/7439_add.md +++ /dev/null @@ -1 +0,0 @@ - - Add `unifiedhovertitle.text` to format unified hover titles [[#7439](https://github.com/plotly/plotly.js/pull/7439)] diff --git a/draftlogs/7451_add.md b/draftlogs/7451_add.md deleted file mode 100644 index cac0f4747ec..00000000000 --- a/draftlogs/7451_add.md +++ /dev/null @@ -1 +0,0 @@ -- 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)] diff --git a/draftlogs/7468_add.md b/draftlogs/7468_add.md deleted file mode 100644 index bd0e23a8599..00000000000 --- a/draftlogs/7468_add.md +++ /dev/null @@ -1 +0,0 @@ - - Add `minorloglabels` to cartesian axes [#7468](https://github.com/plotly/plotly.js/pull/7468) diff --git a/draftlogs/7470_fix.md b/draftlogs/7470_fix.md deleted file mode 100644 index 9fdd75cc41a..00000000000 --- a/draftlogs/7470_fix.md +++ /dev/null @@ -1,2 +0,0 @@ -- 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! \ No newline at end of file diff --git a/draftlogs/7474_fix.md b/draftlogs/7474_fix.md deleted file mode 100644 index 7c8e11859ee..00000000000 --- a/draftlogs/7474_fix.md +++ /dev/null @@ -1 +0,0 @@ -- Fix scroll wheel zoom for geo subplots in Safari [#7474](https://github.com/plotly/plotly.js/pull/7474) diff --git a/draftlogs/7479_fix.md b/draftlogs/7479_fix.md deleted file mode 100644 index 6c77da50c99..00000000000 --- a/draftlogs/7479_fix.md +++ /dev/null @@ -1 +0,0 @@ -- Add method to check for WebKit WebView user agent string [[#7479](https://github.com/plotly/plotly.js/pull/7479)] diff --git a/draftlogs/7481_change.md b/draftlogs/7481_change.md deleted file mode 100644 index 7692eab51a2..00000000000 --- a/draftlogs/7481_change.md +++ /dev/null @@ -1 +0,0 @@ -- Refactor files related to UN topojson [[#7481](https://github.com/plotly/plotly.js/pull/7481)] diff --git a/draftlogs/7487_fix.md b/draftlogs/7487_fix.md deleted file mode 100644 index b7375bd7efd..00000000000 --- a/draftlogs/7487_fix.md +++ /dev/null @@ -1 +0,0 @@ - - Fix edit colorbar title [7487](https://github.com/plotly/plotly.js/pull/7487) diff --git a/draftlogs/7492_add.md b/draftlogs/7492_add.md deleted file mode 100644 index 73c2540552a..00000000000 --- a/draftlogs/7492_add.md +++ /dev/null @@ -1 +0,0 @@ -- Make modebar keyboard-accessible via tabbing [[#7492](https://github.com/plotly/plotly.js/pull/7492)], with thanks to @davidangarita1 for the contribution! diff --git a/package-lock.json b/package-lock.json index 28ec49a399c..69a4d237494 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "plotly.js", - "version": "3.1.0-rc.0", + "version": "3.1.0-rc.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "plotly.js", - "version": "3.1.0-rc.0", + "version": "3.1.0-rc.1", "license": "MIT", "dependencies": { "@plotly/d3": "3.8.2", diff --git a/package.json b/package.json index 175dbaf673a..2ca45d1e63c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plotly.js", - "version": "3.1.0-rc.0", + "version": "3.1.0-rc.1", "description": "The open source javascript graphing library that powers plotly", "license": "MIT", "main": "./lib/index.js", @@ -182,4 +182,4 @@ "acorn": "^8.1.1" } } -} \ No newline at end of file +} diff --git a/src/version.js b/src/version.js index 7e86dea9d83..dcb63b467e4 100644 --- a/src/version.js +++ b/src/version.js @@ -1,4 +1,4 @@ 'use strict'; // package version injected by `npm run preprocess` -exports.version = '3.1.0-rc.0'; +exports.version = '3.1.0-rc.1';